@incodetech/welcome 1.89.0 → 1.89.1
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/dist/onBoarding.mjs +2 -2
- package/dist/onBoarding.umd.js +1 -1
- package/package.json +1 -1
package/dist/onBoarding.mjs
CHANGED
|
@@ -24750,7 +24750,7 @@ function getWasmWorkflowProfile(Be) {
|
|
|
24750
24750
|
throw new Error(`WasmWorkflowProfile not found for type: ${Be}`);
|
|
24751
24751
|
return Le;
|
|
24752
24752
|
}
|
|
24753
|
-
const wasmVersion = "v2.13.07";
|
|
24753
|
+
const wasmVersion = "v2.13.07-post1";
|
|
24754
24754
|
function generateBundle(Be = !1) {
|
|
24755
24755
|
const Le = getFeatureFlag("id_face_readability"), Ye = getFeatureFlag("id_text_barcode_readability") ? WasmWorkflowProfileName.IdCapture_3_02 : Le ? WasmWorkflowProfileName.IdCapture_2_01_FaceQuality : getFeatureFlag("id_model_hebrew_back_id") ? WasmWorkflowProfileName.IdCapture_2_02 : WasmWorkflowProfileName.IdCapture_2_01, tt = Be ? WasmWorkflowProfileName.OnDeviceSelfieWorkflow : WasmWorkflowProfileName.SelfieWithQualityMetrics, nt = WasmWorkflowProfileName.SelfieVideoSelfie, ft = WasmWorkflowProfileName.IdVideoSelfie_2_01;
|
|
24756
24756
|
return [
|
|
@@ -24784,7 +24784,7 @@ function getInitializationParams(Be = !1) {
|
|
|
24784
24784
|
wasmVersion
|
|
24785
24785
|
};
|
|
24786
24786
|
}
|
|
24787
|
-
const version$4 = "1.89.
|
|
24787
|
+
const version$4 = "1.89.1";
|
|
24788
24788
|
function e$2(Be, Le) {
|
|
24789
24789
|
return function(Ye, tt) {
|
|
24790
24790
|
return Object.prototype.hasOwnProperty.call(Ye, tt);
|
package/dist/onBoarding.umd.js
CHANGED
|
@@ -103,7 +103,7 @@ Check the top-level render call using <`+F0+">.")}return b0}}function ur(R0,b0){
|
|
|
103
103
|
<%s {...props} />
|
|
104
104
|
React keys must be passed directly to JSX without using spread:
|
|
105
105
|
let props = %s;
|
|
106
|
-
<%s key={someKey} {...props} />`,Wa,wr,Ea,wr),Gn[wr+Wa]=!0}}return R0===tt?bn(Kn):Rn(Kn),Kn}}function Fr(R0,b0,F0){return Jn(R0,b0,F0,!0)}function or(R0,b0,F0){return Jn(R0,b0,F0,!1)}var Wn=or,vr=Fr;reactJsxRuntime_development.Fragment=tt,reactJsxRuntime_development.jsx=Wn,reactJsxRuntime_development.jsxs=vr}()),reactJsxRuntime_development}process.env.NODE_ENV==="production"?jsxRuntime.exports=requireReactJsxRuntime_production_min():jsxRuntime.exports=requireReactJsxRuntime_development();var jsxRuntimeExports=jsxRuntime.exports,__spreadArray$1=function(Be,Le,Ye){if(Ye||arguments.length===2)for(var tt=0,nt=Le.length,ft;tt<nt;tt++)(ft||!(tt in Le))&&(ft||(ft=Array.prototype.slice.call(Le,0,tt)),ft[tt]=Le[tt]);return Be.concat(ft||Array.prototype.slice.call(Le))},clipboardEvents=["onCopy","onCut","onPaste"],compositionEvents=["onCompositionEnd","onCompositionStart","onCompositionUpdate"],focusEvents=["onFocus","onBlur"],formEvents=["onInput","onInvalid","onReset","onSubmit"],imageEvents=["onLoad","onError"],keyboardEvents=["onKeyDown","onKeyPress","onKeyUp"],mediaEvents=["onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onError","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting"],mouseEvents=["onClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp"],dragEvents=["onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop"],selectionEvents=["onSelect"],touchEvents=["onTouchCancel","onTouchEnd","onTouchMove","onTouchStart"],pointerEvents=["onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onGotPointerCapture","onLostPointerCapture","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut"],uiEvents=["onScroll"],wheelEvents=["onWheel"],animationEvents=["onAnimationStart","onAnimationEnd","onAnimationIteration"],transitionEvents=["onTransitionEnd"],otherEvents=["onToggle"],changeEvents=["onChange"],allEvents=__spreadArray$1(__spreadArray$1(__spreadArray$1(__spreadArray$1(__spreadArray$1(__spreadArray$1(__spreadArray$1(__spreadArray$1(__spreadArray$1(__spreadArray$1(__spreadArray$1(__spreadArray$1(__spreadArray$1(__spreadArray$1(__spreadArray$1(__spreadArray$1(__spreadArray$1(__spreadArray$1([],clipboardEvents,!0),compositionEvents,!0),focusEvents,!0),formEvents,!0),imageEvents,!0),keyboardEvents,!0),mediaEvents,!0),mouseEvents,!0),dragEvents,!0),selectionEvents,!0),touchEvents,!0),pointerEvents,!0),uiEvents,!0),wheelEvents,!0),animationEvents,!0),transitionEvents,!0),changeEvents,!0),otherEvents,!0);function makeEventProps(Be,Le){var Ye={};return allEvents.forEach(function(tt){var nt=Be[tt];nt&&(Le?Ye[tt]=function(ft){return nt(ft,Le(tt))}:Ye[tt]=nt)}),Ye}function makeCancellablePromise(Be){var Le=!1,Ye=new Promise(function(tt,nt){Be.then(function(ft){return!Le&&tt(ft)}).catch(function(ft){return!Le&&nt(ft)})});return{promise:Ye,cancel:function(){Le=!0}}}function r$4(Be){var Le,Ye,tt="";if(typeof Be=="string"||typeof Be=="number")tt+=Be;else if(typeof Be=="object")if(Array.isArray(Be)){var nt=Be.length;for(Le=0;Le<nt;Le++)Be[Le]&&(Ye=r$4(Be[Le]))&&(tt&&(tt+=" "),tt+=Ye)}else for(Ye in Be)Be[Ye]&&(tt&&(tt+=" "),tt+=Ye);return tt}function clsx$1(){for(var Be,Le,Ye=0,tt="",nt=arguments.length;Ye<nt;Ye++)(Be=arguments[Ye])&&(Le=r$4(Be))&&(tt&&(tt+=" "),tt+=Le);return tt}var isProduction=process.env.NODE_ENV==="production",prefix$1="Invariant failed";function invariant$1(Be,Le){if(!Be){if(isProduction)throw new Error(prefix$1);var Ye=typeof Le=="function"?Le():Le,tt=Ye?"".concat(prefix$1,": ").concat(Ye):prefix$1;throw new Error(tt)}}var __DEV__=process.env.NODE_ENV!=="production",warning$3=function(){};if(__DEV__){var printWarning=function(Le,Ye){var tt=arguments.length;Ye=new Array(tt>1?tt-1:0);for(var nt=1;nt<tt;nt++)Ye[nt-1]=arguments[nt];var ft=0,ht="Warning: "+Le.replace(/%s/g,function(){return Ye[ft++]});typeof console<"u"&&console.error(ht);try{throw new Error(ht)}catch{}};warning$3=function(Be,Le,Ye){var tt=arguments.length;Ye=new Array(tt>2?tt-2:0);for(var nt=2;nt<tt;nt++)Ye[nt-2]=arguments[nt];if(Le===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");Be||printWarning.apply(null,[Le].concat(Ye))}}var warning_1=warning$3;const warning$4=getDefaultExportFromCjs(warning_1);var has$1=Object.prototype.hasOwnProperty;function find$2(Be,Le,Ye){for(Ye of Be.keys())if(dequal(Ye,Le))return Ye}function dequal(Be,Le){var Ye,tt,nt;if(Be===Le)return!0;if(Be&&Le&&(Ye=Be.constructor)===Le.constructor){if(Ye===Date)return Be.getTime()===Le.getTime();if(Ye===RegExp)return Be.toString()===Le.toString();if(Ye===Array){if((tt=Be.length)===Le.length)for(;tt--&&dequal(Be[tt],Le[tt]););return tt===-1}if(Ye===Set){if(Be.size!==Le.size)return!1;for(tt of Be)if(nt=tt,nt&&typeof nt=="object"&&(nt=find$2(Le,nt),!nt)||!Le.has(nt))return!1;return!0}if(Ye===Map){if(Be.size!==Le.size)return!1;for(tt of Be)if(nt=tt[0],nt&&typeof nt=="object"&&(nt=find$2(Le,nt),!nt)||!dequal(tt[1],Le.get(nt)))return!1;return!0}if(Ye===ArrayBuffer)Be=new Uint8Array(Be),Le=new Uint8Array(Le);else if(Ye===DataView){if((tt=Be.byteLength)===Le.byteLength)for(;tt--&&Be.getInt8(tt)===Le.getInt8(tt););return tt===-1}if(ArrayBuffer.isView(Be)){if((tt=Be.byteLength)===Le.byteLength)for(;tt--&&Be[tt]===Le[tt];);return tt===-1}if(!Ye||typeof Be=="object"){tt=0;for(Ye in Be)if(has$1.call(Be,Ye)&&++tt&&!has$1.call(Le,Ye)||!(Ye in Le)||!dequal(Be[Ye],Le[Ye]))return!1;return Object.keys(Le).length===tt}}return Be!==Be&&Le!==Le}const documentContext=React.createContext(null);function Message$5({children:Be,type:Le}){return jsxRuntimeExports.jsx("div",{className:`react-pdf__message react-pdf__message--${Le}`,children:Be})}const DEFAULT_LINK_REL="noopener noreferrer nofollow";class LinkService{constructor(){this.externalLinkEnabled=!0,this.externalLinkRel=void 0,this.externalLinkTarget=void 0,this.isInPresentationMode=!1,this.pdfDocument=void 0,this.pdfViewer=void 0}setDocument(Le){this.pdfDocument=Le}setViewer(Le){this.pdfViewer=Le}setExternalLinkRel(Le){this.externalLinkRel=Le}setExternalLinkTarget(Le){this.externalLinkTarget=Le}setHistory(){}get pagesCount(){return this.pdfDocument?this.pdfDocument.numPages:0}get page(){return invariant$1(this.pdfViewer,"PDF viewer is not initialized."),this.pdfViewer.currentPageNumber||0}set page(Le){invariant$1(this.pdfViewer,"PDF viewer is not initialized."),this.pdfViewer.currentPageNumber=Le}get rotation(){return 0}set rotation(Le){}goToDestination(Le){return new Promise(Ye=>{invariant$1(this.pdfDocument,"PDF document not loaded."),invariant$1(Le,"Destination is not specified."),typeof Le=="string"?this.pdfDocument.getDestination(Le).then(Ye):Array.isArray(Le)?Ye(Le):Le.then(Ye)}).then(Ye=>{invariant$1(Array.isArray(Ye),`"${Ye}" is not a valid destination array.`);const tt=Ye[0];new Promise(nt=>{invariant$1(this.pdfDocument,"PDF document not loaded."),tt instanceof Object?this.pdfDocument.getPageIndex(tt).then(ft=>{nt(ft)}).catch(()=>{invariant$1(!1,`"${tt}" is not a valid page reference.`)}):typeof tt=="number"?nt(tt):invariant$1(!1,`"${tt}" is not a valid destination reference.`)}).then(nt=>{const ft=nt+1;invariant$1(this.pdfViewer,"PDF viewer is not initialized."),invariant$1(ft>=1&&ft<=this.pagesCount,`"${ft}" is not a valid page number.`),this.pdfViewer.scrollPageIntoView({dest:Ye,pageIndex:nt,pageNumber:ft})})})}navigateTo(Le){this.goToDestination(Le)}goToPage(Le){const Ye=Le-1;invariant$1(this.pdfViewer,"PDF viewer is not initialized."),invariant$1(Le>=1&&Le<=this.pagesCount,`"${Le}" is not a valid page number.`),this.pdfViewer.scrollPageIntoView({pageIndex:Ye,pageNumber:Le})}addLinkAttributes(Le,Ye,tt){Le.href=Ye,Le.rel=this.externalLinkRel||DEFAULT_LINK_REL,Le.target=tt?"_blank":this.externalLinkTarget||""}getDestinationHash(){return"#"}getAnchorUrl(){return"#"}setHash(){}executeNamedAction(){}cachePageRef(){}isPageVisible(){return!0}isPageCached(){return!0}executeSetOCGState(){}}const PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2},isBrowser$2=typeof window<"u",isLocalFileSystem=isBrowser$2&&window.location.protocol==="file:";function isDefined$1(Be){return typeof Be<"u"}function isProvided(Be){return isDefined$1(Be)&&Be!==null}function isString$4(Be){return typeof Be=="string"}function isArrayBuffer(Be){return Be instanceof ArrayBuffer}function isBlob(Be){return invariant$1(isBrowser$2,"isBlob can only be used in a browser environment"),Be instanceof Blob}function isDataURI(Be){return isString$4(Be)&&/^data:/.test(Be)}function dataURItoByteString(Be){invariant$1(isDataURI(Be),"Invalid data URI.");const[Le="",Ye=""]=Be.split(",");return Le.split(";").indexOf("base64")!==-1?atob(Ye):unescape(Ye)}function getDevicePixelRatio(){return isBrowser$2&&window.devicePixelRatio||1}const allowFileAccessFromFilesTip="On Chromium based browsers, you can use --allow-file-access-from-files flag for debugging purposes.";function displayCORSWarning(){warning$4(!isLocalFileSystem,`Loading PDF as base64 strings/URLs may not work on protocols other than HTTP/HTTPS. ${allowFileAccessFromFilesTip}`)}function displayWorkerWarning(){warning$4(!isLocalFileSystem,`Loading PDF.js worker may not work on protocols other than HTTP/HTTPS. ${allowFileAccessFromFilesTip}`)}function cancelRunningTask(Be){Be!=null&&Be.cancel&&Be.cancel()}function makePageCallback(Be,Le){return Object.defineProperty(Be,"width",{get(){return this.view[2]*Le},configurable:!0}),Object.defineProperty(Be,"height",{get(){return this.view[3]*Le},configurable:!0}),Object.defineProperty(Be,"originalWidth",{get(){return this.view[2]},configurable:!0}),Object.defineProperty(Be,"originalHeight",{get(){return this.view[3]},configurable:!0}),Be}function isCancelException(Be){return Be.name==="RenderingCancelledException"}function loadFromFile(Be){return new Promise((Le,Ye)=>{const tt=new FileReader;tt.onload=()=>{if(!tt.result)return Ye(new Error("Error while reading a file."));Le(tt.result)},tt.onerror=nt=>{if(!nt.target)return Ye(new Error("Error while reading a file."));const{error:ft}=nt.target;if(!ft)return Ye(new Error("Error while reading a file."));switch(ft.code){case ft.NOT_FOUND_ERR:return Ye(new Error("Error while reading a file: File not found."));case ft.SECURITY_ERR:return Ye(new Error("Error while reading a file: Security error."));case ft.ABORT_ERR:return Ye(new Error("Error while reading a file: Aborted."));default:return Ye(new Error("Error while reading a file."))}},tt.readAsArrayBuffer(Be)})}function reducer$1(Be,Le){switch(Le.type){case"RESOLVE":return{value:Le.value,error:void 0};case"REJECT":return{value:!1,error:Le.error};case"RESET":return{value:void 0,error:void 0};default:return Be}}function useResolver(){return React.useReducer(reducer$1,{value:void 0,error:void 0})}var __awaiter$6=function(Be,Le,Ye,tt){function nt(ft){return ft instanceof Ye?ft:new Ye(function(ht){ht(ft)})}return new(Ye||(Ye=Promise))(function(ft,ht){function gt(kt){try{xt(tt.next(kt))}catch(Ct){ht(Ct)}}function At(kt){try{xt(tt.throw(kt))}catch(Ct){ht(Ct)}}function xt(kt){kt.done?ft(kt.value):nt(kt.value).then(gt,At)}xt((tt=tt.apply(Be,Le||[])).next())})},__rest$2=function(Be,Le){var Ye={};for(var tt in Be)Object.prototype.hasOwnProperty.call(Be,tt)&&Le.indexOf(tt)<0&&(Ye[tt]=Be[tt]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,tt=Object.getOwnPropertySymbols(Be);nt<tt.length;nt++)Le.indexOf(tt[nt])<0&&Object.prototype.propertyIsEnumerable.call(Be,tt[nt])&&(Ye[tt[nt]]=Be[tt[nt]]);return Ye};const{PDFDataRangeTransport}=pdfjs,defaultOnPassword=(Be,Le)=>{switch(Le){case PasswordResponses.NEED_PASSWORD:{const Ye=prompt("Enter the password to open this PDF file.");Be(Ye);break}case PasswordResponses.INCORRECT_PASSWORD:{const Ye=prompt("Invalid password. Please try again.");Be(Ye);break}}};function isParameterObject(Be){return typeof Be=="object"&&Be!==null&&("data"in Be||"range"in Be||"url"in Be)}const Document$1=React.forwardRef(function(Le,Ye){var{children:tt,className:nt,error:ft="Failed to load PDF file.",externalLinkRel:ht,externalLinkTarget:gt,file:At,inputRef:xt,imageResourcesPath:kt,loading:Ct="Loading PDF…",noData:yt="No PDF file specified.",onItemClick:vt,onLoadError:It,onLoadProgress:wt,onLoadSuccess:Bt,onPassword:Rt=defaultOnPassword,onSourceError:Ot,onSourceSuccess:Dt,options:Nt,renderMode:_t,rotate:Mt}=Le,Ft=__rest$2(Le,["children","className","error","externalLinkRel","externalLinkTarget","file","inputRef","imageResourcesPath","loading","noData","onItemClick","onLoadError","onLoadProgress","onLoadSuccess","onPassword","onSourceError","onSourceSuccess","options","renderMode","rotate"]);const[jt,Kt]=useResolver(),{value:qt,error:Zt}=jt,[Yt,Ht]=useResolver(),{value:Vt,error:zt}=Yt,Gt=React.useRef(new LinkService),Qt=React.useRef([]),$t=React.useRef(void 0),r0=React.useRef(void 0);At&&At!==$t.current&&isParameterObject(At)&&(warning$4(!dequal(At,$t.current),`File prop passed to <Document /> changed, but it's equal to previous one. This might result in unnecessary reloads. Consider memoizing the value passed to "file" prop.`),$t.current=At),Nt&&Nt!==r0.current&&(warning$4(!dequal(Nt,r0.current),`Options prop passed to <Document /> changed, but it's equal to previous one. This might result in unnecessary reloads. Consider memoizing the value passed to "options" prop.`),r0.current=Nt);const Xt=React.useRef({scrollPageIntoView:D0=>{const{dest:w0,pageNumber:H0,pageIndex:K0=H0-1}=D0;if(vt){vt({dest:w0,pageIndex:K0,pageNumber:H0});return}const p0=Qt.current[K0];if(p0){p0.scrollIntoView();return}warning$4(!1,`An internal link leading to page ${H0} was clicked, but neither <Document> was provided with onItemClick nor it was able to find the page within itself. Either provide onItemClick to <Document> and handle navigating by yourself or ensure that all pages are rendered within <Document>.`)}});React.useImperativeHandle(Ye,()=>({linkService:Gt,pages:Qt,viewer:Xt}),[]);function a0(){Dt&&Dt()}function h0(){Zt&&(warning$4(!1,Zt.toString()),Ot&&Ot(Zt))}function e0(){Kt({type:"RESET"})}React.useEffect(e0,[At,Kt]);const l0=React.useCallback(()=>__awaiter$6(this,void 0,void 0,function*(){if(!At)return null;if(typeof At=="string")return isDataURI(At)?{data:dataURItoByteString(At)}:(displayCORSWarning(),{url:At});if(At instanceof PDFDataRangeTransport)return{range:At};if(isArrayBuffer(At))return{data:At};if(isBrowser$2&&isBlob(At))return{data:yield loadFromFile(At)};if(invariant$1(typeof At=="object","Invalid parameter in file, need either Uint8Array, string or a parameter object"),invariant$1(isParameterObject(At),"Invalid parameter object: need either .data, .range or .url"),"url"in At&&typeof At.url=="string"){if(isDataURI(At.url)){const{url:D0}=At,w0=__rest$2(At,["url"]),H0=dataURItoByteString(D0);return Object.assign({data:H0},w0)}displayCORSWarning()}return At}),[At]);React.useEffect(()=>{const D0=makeCancellablePromise(l0());return D0.promise.then(w0=>{Kt({type:"RESOLVE",value:w0})}).catch(w0=>{Kt({type:"REJECT",error:w0})}),()=>{cancelRunningTask(D0)}},[l0,Kt]),React.useEffect(()=>{if(!(typeof qt>"u")){if(qt===!1){h0();return}a0()}},[qt]);function i0(){Vt&&(Bt&&Bt(Vt),Qt.current=new Array(Vt.numPages),Gt.current.setDocument(Vt))}function Jt(){zt&&(warning$4(!1,zt.toString()),It&&It(zt))}React.useEffect(function(){Ht({type:"RESET"})},[Ht,qt]),React.useEffect(function(){if(!qt)return;const w0=Nt?Object.assign(Object.assign({},qt),Nt):qt,H0=__webpack_exports__getDocument(w0);wt&&(H0.onProgress=wt),Rt&&(H0.onPassword=Rt);const K0=H0,p0=K0.promise.then(W0=>{Ht({type:"RESOLVE",value:W0})}).catch(W0=>{K0.destroyed||Ht({type:"REJECT",error:W0})});return()=>{p0.finally(()=>K0.destroy())}},[Nt,Ht,qt]),React.useEffect(()=>{if(!(typeof Vt>"u")){if(Vt===!1){Jt();return}i0()}},[Vt]),React.useEffect(function(){Gt.current.setViewer(Xt.current),Gt.current.setExternalLinkRel(ht),Gt.current.setExternalLinkTarget(gt)},[ht,gt]);const c0=React.useCallback((D0,w0)=>{Qt.current[D0]=w0},[]),f0=React.useCallback(D0=>{delete Qt.current[D0]},[]),E0=React.useMemo(()=>({imageResourcesPath:kt,linkService:Gt.current,onItemClick:vt,pdf:Vt,registerPage:c0,renderMode:_t,rotate:Mt,unregisterPage:f0}),[kt,vt,Vt,c0,_t,Mt,f0]),v0=React.useMemo(()=>makeEventProps(Ft,()=>Vt),[Ft,Vt]);function S0(){return jsxRuntimeExports.jsx(documentContext.Provider,{value:E0,children:tt})}function L0(){return At?Vt==null?jsxRuntimeExports.jsx(Message$5,{type:"loading",children:typeof Ct=="function"?Ct():Ct}):Vt===!1?jsxRuntimeExports.jsx(Message$5,{type:"error",children:typeof ft=="function"?ft():ft}):S0():jsxRuntimeExports.jsx(Message$5,{type:"no-data",children:typeof yt=="function"?yt():yt})}return jsxRuntimeExports.jsx("div",Object.assign({className:clsx$1("react-pdf__Document",nt),ref:xt,style:{"--scale-factor":"1"}},v0,{children:L0()}))});function useDocumentContext(){return React.useContext(documentContext)}function mergeRefs$2(){for(var Be=[],Le=0;Le<arguments.length;Le++)Be[Le]=arguments[Le];var Ye=Be.filter(Boolean);if(Ye.length<=1){var tt=Ye[0];return tt||null}return function(ft){Ye.forEach(function(ht){typeof ht=="function"?ht(ft):ht&&(ht.current=ft)})}}const pageContext=React.createContext(null),PDF_ROLE_TO_HTML_ROLE={Document:null,DocumentFragment:null,Part:"group",Sect:"group",Div:"group",Aside:"note",NonStruct:"none",P:null,H:"heading",Title:null,FENote:"note",Sub:"group",Lbl:null,Span:null,Em:null,Strong:null,Link:"link",Annot:"note",Form:"form",Ruby:null,RB:null,RT:null,RP:null,Warichu:null,WT:null,WP:null,L:"list",LI:"listitem",LBody:null,Table:"table",TR:"row",TH:"columnheader",TD:"cell",THead:"columnheader",TBody:null,TFoot:null,Caption:null,Figure:"figure",Formula:null,Artifact:null},HEADING_PATTERN=/^H(\d+)$/;function isPdfRole(Be){return Be in PDF_ROLE_TO_HTML_ROLE}function isStructTreeNode(Be){return"children"in Be}function isStructTreeNodeWithOnlyContentChild(Be){return isStructTreeNode(Be)?Be.children.length===1&&0 in Be.children&&"id"in Be.children[0]:!1}function getRoleAttributes(Be){const Le={};if(isStructTreeNode(Be)){const{role:Ye}=Be,tt=Ye.match(HEADING_PATTERN);if(tt)Le.role="heading",Le["aria-level"]=Number(tt[1]);else if(isPdfRole(Ye)){const nt=PDF_ROLE_TO_HTML_ROLE[Ye];nt&&(Le.role=nt)}}return Le}function getBaseAttributes(Be){const Le={};if(isStructTreeNode(Be)){if(Be.alt!==void 0&&(Le["aria-label"]=Be.alt),Be.lang!==void 0&&(Le.lang=Be.lang),isStructTreeNodeWithOnlyContentChild(Be)){const[Ye]=Be.children;if(Ye){const tt=getBaseAttributes(Ye);return Object.assign(Object.assign({},Le),tt)}}}else"id"in Be&&(Le["aria-owns"]=Be.id);return Le}function getAttributes(Be){return Be?Object.assign(Object.assign({},getRoleAttributes(Be)),getBaseAttributes(Be)):null}function StructTreeItem({className:Be,node:Le}){const Ye=React.useMemo(()=>getAttributes(Le),[Le]),tt=React.useMemo(()=>!isStructTreeNode(Le)||isStructTreeNodeWithOnlyContentChild(Le)?null:Le.children.map((nt,ft)=>jsxRuntimeExports.jsx(StructTreeItem,{node:nt},ft)),[Le]);return jsxRuntimeExports.jsx("span",Object.assign({className:Be},Ye,{children:tt}))}function usePageContext(){return React.useContext(pageContext)}function StructTree(){const Be=usePageContext();invariant$1(Be,"Unable to find Page context.");const{onGetStructTreeError:Le,onGetStructTreeSuccess:Ye}=Be,[tt,nt]=useResolver(),{value:ft,error:ht}=tt,{customTextRenderer:gt,page:At}=Be;function xt(){ft&&Ye&&Ye(ft)}function kt(){ht&&(warning$4(!1,ht.toString()),Le&&Le(ht))}return React.useEffect(function(){nt({type:"RESET"})},[nt,At]),React.useEffect(function(){if(gt||!At)return;const yt=makeCancellablePromise(At.getStructTree()),vt=yt;return yt.promise.then(It=>{nt({type:"RESOLVE",value:It})}).catch(It=>{nt({type:"REJECT",error:It})}),()=>cancelRunningTask(vt)},[gt,At,nt]),React.useEffect(()=>{if(ft!==void 0){if(ft===!1){kt();return}xt()}},[ft]),ft?jsxRuntimeExports.jsx(StructTreeItem,{className:"react-pdf__Page__structTree structTree",node:ft}):null}const ANNOTATION_MODE=__webpack_exports__AnnotationMode;function Canvas$1(Be){const Le=usePageContext();invariant$1(Le,"Unable to find Page context.");const Ye=Object.assign(Object.assign({},Le),Be),{_className:tt,canvasBackground:nt,devicePixelRatio:ft=getDevicePixelRatio(),onRenderError:ht,onRenderSuccess:gt,page:At,renderForms:xt,renderTextLayer:kt,rotate:Ct,scale:yt}=Ye,{canvasRef:vt}=Be;invariant$1(At,"Attempted to render page canvas, but no page was specified.");const It=React.useRef(null);function wt(){At&>&>(makePageCallback(At,yt))}function Bt(Nt){isCancelException(Nt)||(warning$4(!1,Nt.toString()),ht&&ht(Nt))}const Rt=React.useMemo(()=>At.getViewport({scale:yt*ft,rotation:Ct}),[ft,At,Ct,yt]),Ot=React.useMemo(()=>At.getViewport({scale:yt,rotation:Ct}),[At,Ct,yt]);React.useEffect(function(){if(!At)return;At.cleanup();const{current:_t}=It;if(!_t)return;_t.width=Rt.width,_t.height=Rt.height,_t.style.width=`${Math.floor(Ot.width)}px`,_t.style.height=`${Math.floor(Ot.height)}px`,_t.style.visibility="hidden";const Mt={annotationMode:xt?ANNOTATION_MODE.ENABLE_FORMS:ANNOTATION_MODE.ENABLE,canvasContext:_t.getContext("2d",{alpha:!1}),viewport:Rt};nt&&(Mt.background=nt);const Ft=At.render(Mt),jt=Ft;return Ft.promise.then(()=>{_t.style.visibility="",wt()}).catch(Bt),()=>cancelRunningTask(jt)},[nt,At,xt,Rt,Ot]);const Dt=React.useCallback(()=>{const{current:Nt}=It;Nt&&(Nt.width=0,Nt.height=0)},[]);return React.useEffect(()=>Dt,[Dt]),jsxRuntimeExports.jsx("canvas",{className:`${tt}__canvas`,dir:"ltr",ref:mergeRefs$2(vt,It),style:{display:"block",userSelect:"none"},children:kt?jsxRuntimeExports.jsx(StructTree,{}):null})}function isTextItem(Be){return"str"in Be}function TextLayer(){const Be=usePageContext();invariant$1(Be,"Unable to find Page context.");const{customTextRenderer:Le,onGetTextError:Ye,onGetTextSuccess:tt,onRenderTextLayerError:nt,onRenderTextLayerSuccess:ft,page:ht,pageIndex:gt,pageNumber:At,rotate:xt,scale:kt}=Be;invariant$1(ht,"Attempted to load page text content, but no page was specified.");const[Ct,yt]=useResolver(),{value:vt,error:It}=Ct,wt=React.useRef(null);warning$4(Number.parseInt(window.getComputedStyle(document.body).getPropertyValue("--react-pdf-text-layer"),10)===1,"TextLayer styles not found. Read more: https://github.com/wojtekmaj/react-pdf#support-for-text-layer");function Bt(){vt&&tt&&tt(vt)}function Rt(){It&&(warning$4(!1,It.toString()),Ye&&Ye(It))}React.useEffect(function(){yt({type:"RESET"})},[ht,yt]),React.useEffect(function(){if(!ht)return;const jt=makeCancellablePromise(ht.getTextContent()),Kt=jt;return jt.promise.then(qt=>{yt({type:"RESOLVE",value:qt})}).catch(qt=>{yt({type:"REJECT",error:qt})}),()=>cancelRunningTask(Kt)},[ht,yt]),React.useEffect(()=>{if(vt!==void 0){if(vt===!1){Rt();return}Bt()}},[vt]);const Ot=React.useCallback(()=>{ft&&ft()},[ft]),Dt=React.useCallback(Ft=>{warning$4(!1,Ft.toString()),nt&&nt(Ft)},[nt]);function Nt(){const Ft=wt.current;Ft&&Ft.classList.add("selecting")}function _t(){const Ft=wt.current;Ft&&Ft.classList.remove("selecting")}const Mt=React.useMemo(()=>ht.getViewport({scale:kt,rotation:xt}),[ht,xt,kt]);return React.useLayoutEffect(function(){if(!ht||!vt)return;const{current:jt}=wt;if(!jt)return;jt.innerHTML="";const Kt=ht.streamTextContent({includeMarkedContent:!0}),qt={container:jt,textContentSource:Kt,viewport:Mt},Zt=new __webpack_exports__TextLayer(qt),Yt=Zt;return Zt.render().then(()=>{const Ht=document.createElement("div");Ht.className="endOfContent",jt.append(Ht);const Vt=jt.querySelectorAll('[role="presentation"]');if(Le){let zt=0;vt.items.forEach((Gt,Qt)=>{if(!isTextItem(Gt))return;const $t=Vt[zt];if(!$t)return;const r0=Le(Object.assign({pageIndex:gt,pageNumber:At,itemIndex:Qt},Gt));$t.innerHTML=r0,zt+=Gt.str&&Gt.hasEOL?2:1})}Ot()}).catch(Dt),()=>cancelRunningTask(Yt)},[Le,Dt,Ot,ht,gt,At,vt,Mt]),jsxRuntimeExports.jsx("div",{className:clsx$1("react-pdf__Page__textContent","textLayer"),onMouseUp:_t,onMouseDown:Nt,ref:wt})}function AnnotationLayer(){const Be=useDocumentContext(),Le=usePageContext();invariant$1(Le,"Unable to find Page context.");const Ye=Object.assign(Object.assign({},Be),Le),{imageResourcesPath:tt,linkService:nt,onGetAnnotationsError:ft,onGetAnnotationsSuccess:ht,onRenderAnnotationLayerError:gt,onRenderAnnotationLayerSuccess:At,page:xt,pdf:kt,renderForms:Ct,rotate:yt,scale:vt=1}=Ye;invariant$1(kt,"Attempted to load page annotations, but no document was specified. Wrap <Page /> in a <Document /> or pass explicit `pdf` prop."),invariant$1(xt,"Attempted to load page annotations, but no page was specified."),invariant$1(nt,"Attempted to load page annotations, but no linkService was specified.");const[It,wt]=useResolver(),{value:Bt,error:Rt}=It,Ot=React.useRef(null);warning$4(Number.parseInt(window.getComputedStyle(document.body).getPropertyValue("--react-pdf-annotation-layer"),10)===1,"AnnotationLayer styles not found. Read more: https://github.com/wojtekmaj/react-pdf#support-for-annotations");function Dt(){Bt&&ht&&ht(Bt)}function Nt(){Rt&&(warning$4(!1,Rt.toString()),ft&&ft(Rt))}React.useEffect(function(){wt({type:"RESET"})},[wt,xt]),React.useEffect(function(){if(!xt)return;const Kt=makeCancellablePromise(xt.getAnnotations()),qt=Kt;return Kt.promise.then(Zt=>{wt({type:"RESOLVE",value:Zt})}).catch(Zt=>{wt({type:"REJECT",error:Zt})}),()=>{cancelRunningTask(qt)}},[wt,xt]),React.useEffect(()=>{if(Bt!==void 0){if(Bt===!1){Nt();return}Dt()}},[Bt]);function _t(){At&&At()}function Mt(jt){warning$4(!1,`${jt}`),gt&>(jt)}const Ft=React.useMemo(()=>xt.getViewport({scale:vt,rotation:yt}),[xt,yt,vt]);return React.useEffect(function(){if(!kt||!xt||!nt||!Bt)return;const{current:Kt}=Ot;if(!Kt)return;const qt=Ft.clone({dontFlip:!0}),Zt={accessibilityManager:null,annotationCanvasMap:null,annotationEditorUIManager:null,div:Kt,l10n:null,page:xt,structTreeLayer:null,viewport:qt},Yt={annotations:Bt,annotationStorage:kt.annotationStorage,div:Kt,imageResourcesPath:tt,linkService:nt,page:xt,renderForms:Ct,viewport:qt};Kt.innerHTML="";try{new __webpack_exports__AnnotationLayer(Zt).render(Yt),_t()}catch(Ht){Mt(Ht)}return()=>{}},[Bt,tt,nt,xt,kt,Ct,Ft]),jsxRuntimeExports.jsx("div",{className:clsx$1("react-pdf__Page__annotations","annotationLayer"),ref:Ot})}var __rest$1=function(Be,Le){var Ye={};for(var tt in Be)Object.prototype.hasOwnProperty.call(Be,tt)&&Le.indexOf(tt)<0&&(Ye[tt]=Be[tt]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,tt=Object.getOwnPropertySymbols(Be);nt<tt.length;nt++)Le.indexOf(tt[nt])<0&&Object.prototype.propertyIsEnumerable.call(Be,tt[nt])&&(Ye[tt[nt]]=Be[tt[nt]]);return Ye};const defaultScale=1;function Page$1(Be){const Le=useDocumentContext(),Ye=Object.assign(Object.assign({},Le),Be),{_className:tt="react-pdf__Page",_enableRegisterUnregisterPage:nt=!0,canvasBackground:ft,canvasRef:ht,children:gt,className:At,customRenderer:xt,customTextRenderer:kt,devicePixelRatio:Ct,error:yt="Failed to load the page.",height:vt,inputRef:It,loading:wt="Loading page…",noData:Bt="No page specified.",onGetAnnotationsError:Rt,onGetAnnotationsSuccess:Ot,onGetStructTreeError:Dt,onGetStructTreeSuccess:Nt,onGetTextError:_t,onGetTextSuccess:Mt,onLoadError:Ft,onLoadSuccess:jt,onRenderAnnotationLayerError:Kt,onRenderAnnotationLayerSuccess:qt,onRenderError:Zt,onRenderSuccess:Yt,onRenderTextLayerError:Ht,onRenderTextLayerSuccess:Vt,pageIndex:zt,pageNumber:Gt,pdf:Qt,registerPage:$t,renderAnnotationLayer:r0=!0,renderForms:Xt=!1,renderMode:a0="canvas",renderTextLayer:h0=!0,rotate:e0,scale:l0=defaultScale,unregisterPage:i0,width:Jt}=Ye,c0=__rest$1(Ye,["_className","_enableRegisterUnregisterPage","canvasBackground","canvasRef","children","className","customRenderer","customTextRenderer","devicePixelRatio","error","height","inputRef","loading","noData","onGetAnnotationsError","onGetAnnotationsSuccess","onGetStructTreeError","onGetStructTreeSuccess","onGetTextError","onGetTextSuccess","onLoadError","onLoadSuccess","onRenderAnnotationLayerError","onRenderAnnotationLayerSuccess","onRenderError","onRenderSuccess","onRenderTextLayerError","onRenderTextLayerSuccess","pageIndex","pageNumber","pdf","registerPage","renderAnnotationLayer","renderForms","renderMode","renderTextLayer","rotate","scale","unregisterPage","width"]),[f0,E0]=useResolver(),{value:v0,error:S0}=f0,L0=React.useRef(null);invariant$1(Qt,"Attempted to load a page, but no document was specified. Wrap <Page /> in a <Document /> or pass explicit `pdf` prop.");const D0=isProvided(Gt)?Gt-1:zt??null,w0=Gt??(isProvided(zt)?zt+1:null),H0=e0??(v0?v0.rotate:null),K0=React.useMemo(()=>{if(!v0)return null;let N0=1;const U0=l0??defaultScale;if(Jt||vt){const Y0=v0.getViewport({scale:1,rotation:H0});Jt?N0=Jt/Y0.width:vt&&(N0=vt/Y0.height)}return U0*N0},[vt,v0,H0,l0,Jt]);React.useEffect(function(){return()=>{isProvided(D0)&&nt&&i0&&i0(D0)}},[nt,Qt,D0,i0]);function p0(){if(jt){if(!v0||!K0)return;jt(makePageCallback(v0,K0))}if(nt&&$t){if(!isProvided(D0)||!L0.current)return;$t(D0,L0.current)}}function W0(){S0&&(warning$4(!1,S0.toString()),Ft&&Ft(S0))}React.useEffect(function(){E0({type:"RESET"})},[E0,Qt,D0]),React.useEffect(function(){if(!Qt||!w0)return;const U0=makeCancellablePromise(Qt.getPage(w0)),Y0=U0;return U0.promise.then(An=>{E0({type:"RESOLVE",value:An})}).catch(An=>{E0({type:"REJECT",error:An})}),()=>cancelRunningTask(Y0)},[E0,Qt,w0]),React.useEffect(()=>{if(v0!==void 0){if(v0===!1){W0();return}p0()}},[v0,K0]);const n0=React.useMemo(()=>v0&&isProvided(D0)&&w0&&isProvided(H0)&&isProvided(K0)?{_className:tt,canvasBackground:ft,customTextRenderer:kt,devicePixelRatio:Ct,onGetAnnotationsError:Rt,onGetAnnotationsSuccess:Ot,onGetStructTreeError:Dt,onGetStructTreeSuccess:Nt,onGetTextError:_t,onGetTextSuccess:Mt,onRenderAnnotationLayerError:Kt,onRenderAnnotationLayerSuccess:qt,onRenderError:Zt,onRenderSuccess:Yt,onRenderTextLayerError:Ht,onRenderTextLayerSuccess:Vt,page:v0,pageIndex:D0,pageNumber:w0,renderForms:Xt,renderTextLayer:h0,rotate:H0,scale:K0}:null,[tt,ft,kt,Ct,Rt,Ot,Dt,Nt,_t,Mt,Kt,qt,Zt,Yt,Ht,Vt,v0,D0,w0,Xt,h0,H0,K0]),sn=React.useMemo(()=>makeEventProps(c0,()=>v0&&(K0?makePageCallback(v0,K0):void 0)),[c0,v0,K0]),C0=`${D0}@${K0}/${H0}`;function P0(){switch(a0){case"custom":return invariant$1(xt,'renderMode was set to "custom", but no customRenderer was passed.'),jsxRuntimeExports.jsx(xt,{},`${C0}_custom`);case"none":return null;case"canvas":default:return jsxRuntimeExports.jsx(Canvas$1,{canvasRef:ht},`${C0}_canvas`)}}function j0(){return h0?jsxRuntimeExports.jsx(TextLayer,{},`${C0}_text`):null}function $0(){return r0?jsxRuntimeExports.jsx(AnnotationLayer,{},`${C0}_annotations`):null}function _0(){return jsxRuntimeExports.jsxs(pageContext.Provider,{value:n0,children:[P0(),j0(),$0(),gt]})}function y0(){return w0?Qt===null||v0===void 0||v0===null?jsxRuntimeExports.jsx(Message$5,{type:"loading",children:typeof wt=="function"?wt():wt}):Qt===!1||v0===!1?jsxRuntimeExports.jsx(Message$5,{type:"error",children:typeof yt=="function"?yt():yt}):_0():jsxRuntimeExports.jsx(Message$5,{type:"no-data",children:typeof Bt=="function"?Bt():Bt})}return jsxRuntimeExports.jsx("div",Object.assign({className:clsx$1(tt,At),"data-page-number":w0,ref:mergeRefs$2(It,L0),style:{"--scale-factor":`${K0}`,backgroundColor:ft||"white",position:"relative",minWidth:"min-content",minHeight:"min-content"}},sn,{children:y0()}))}displayWorkerWarning(),__webpack_exports__GlobalWorkerOptions.workerSrc="pdf.worker.mjs";let options={darkMode:!1,hostingApp:"Web SDK",unsafeMode:!1,redirectFromUnsupportedBrowsers:!1,recorderProvider:"openVidu",useSha256:!1,maxContentWidth:800,maxContentHeight:840};const setOptions=Be=>(options={...options,...Be},options),tutorialBaseDefault="https://sdk.incode.com/sdk/tutorials",wasmBaseDefault="https://cdn.incodesmile.com/ml-wasm-kit-release",pdfWorkerDefaultBase="//cdnjs.cloudflare.com/ajax/libs/pdf.js",ffmpegBaseDefault="https://cdn.incodesmile.com/ffmpeg-release/",lottieScriptDefault="https://cdn.jsdelivr.net/npm/lottie-web@5.13.0/build/player/lottie_light.min.js",trimTrailingSlash=Be=>Be.endsWith("/")?Be.slice(0,-1):Be,ensureRequiredWhenOffline=(Be,Le)=>{if(options.offline&&!Be)throw new Error(`Missing required offline resource config: ${Le}`);return Be},isOfflineMode=()=>!!options.offline,getWasmBaseUrl=()=>{const Be=ensureRequiredWhenOffline(options.wasmBaseUrl,"wasmBaseUrl");return trimTrailingSlash(Be||wasmBaseDefault)},getPdfWorkerUrl=Be=>ensureRequiredWhenOffline(options.pdfWorkerUrl,"pdfWorkerUrl")||`${pdfWorkerDefaultBase}/${Be}/pdf.worker.min.mjs`,getTutorialsBaseUrl=()=>{const Be=ensureRequiredWhenOffline(options.tutorialsBaseUrl,"tutorialsBaseUrl");return trimTrailingSlash(Be||tutorialBaseDefault)},getTutorialUrl=Be=>`${getTutorialsBaseUrl()}/${Be.replace(/^\//,"")}`,getFfmpegBaseUrl=()=>{const Le=ensureRequiredWhenOffline(options.ffmpegBaseUrl,"ffmpegBaseUrl")||ffmpegBaseDefault;return Le.endsWith("/")?Le:`${Le}/`},getLottieScriptUrl=()=>ensureRequiredWhenOffline(options.lottieScriptUrl,"lottieScriptUrl")||lottieScriptDefault,setPdfWorkerUrl=()=>{__webpack_exports__GlobalWorkerOptions.workerSrc=getPdfWorkerUrl(__webpack_exports__version)},getTranslationsUrl=()=>ensureRequiredWhenOffline(options.translationsUrl,"translationsUrl"),FEATURE_FLAGS=["id_text_barcode_readability","selfie_local_lenses_check_web","id_model_hebrew_back_id","id_face_readability","new_id_capture_ux_least_risky_clients","id_test_aa","id_iou_check","iad_checks","iad_c_checks","new_fingerprint","mp_test_hashed_id","darwinium_profiling","id_quality_backend_validation","id_blur_threshold_03","enable_fps_limit","id_v2_reduced_aggregation_interval"],GLOBAL_FLAGS=["new_fingerprint"],ID_MODULE_FLAGS=["id_face_readability","id_test_aa","iad_c_checks","mp_test_hashed_id","id_model_hebrew_back_id","id_iou_check","iad_checks","new_id_capture_ux_least_risky_clients","id_text_barcode_readability","id_quality_backend_validation","id_blur_threshold_03","enable_fps_limit","id_v2_reduced_aggregation_interval"],SELFIE_MODULE_FLAGS=["selfie_local_lenses_check_web"];function getStatsigEnvironment(Be){return isStageK8sEnv(Be)?{tier:"development"}:isStageEnv(Be)||isDemoEnv(Be)?{tier:"staging"}:isSaasEnv(Be)?{tier:"production"}:{tier:"development"}}const clientApiKey="client-GBTzsiJ99rvyZQdNXDFkftx3ZoMF1TED2rsB3m3IUqc",featureFlagsValues={id_text_barcode_readability:!1,selfie_local_lenses_check_web:!1,id_model_hebrew_back_id:!1,id_face_readability:!1,new_id_capture_ux_least_risky_clients:!1,id_test_aa:!1,iad_checks:!1,iad_c_checks:!1,id_iou_check:!0,new_fingerprint:!1,mp_test_hashed_id:!1,darwinium_profiling:!1,id_quality_backend_validation:!1,id_blur_threshold_03:!1,enable_fps_limit:!1,id_v2_reduced_aggregation_interval:!1},clientExperimentIds={new_id_capture_ux_least_risky_clients:"experimentV2"};let initPromise=null;const initialize=async({flowId:Be,apiKey:Le,sessionIdentifier:Ye,apiURL:tt,clientExperimentId:nt})=>{if(!isOfflineMode()){if(initPromise)return initPromise;initPromise=(async()=>{var gt;const ft={customIDs:{client_api_key:Le,hashed_onboarding_id:Ye,flow_id:Be},custom:{landing_page:(gt=window==null?void 0:window.location)==null?void 0:gt.href}},ht=new src$2.StatsigClient(clientApiKey,ft,{environment:getStatsigEnvironment(tt)});await ht.initializeAsync(),FEATURE_FLAGS.forEach(At=>{if(nt&&clientExperimentIds[At]===nt){featureFlagsValues[At]=!0;return}featureFlagsValues[At]=ht.checkGate(At)})})(),await initPromise}},getFeatureFlag=Be=>featureFlagsValues[Be]??!1,getModuleFeatureFlags=async Be=>{const Le={};GLOBAL_FLAGS.forEach(tt=>{Le[tt]=featureFlagsValues[tt]});const Ye=Be.toLowerCase();return Ye.includes("id")||Ye==="government-validation"?ID_MODULE_FLAGS.forEach(tt=>{Le[tt]=featureFlagsValues[tt]}):(Ye.includes("selfie")||Ye==="face")&&SELFIE_MODULE_FLAGS.forEach(tt=>{Le[tt]=featureFlagsValues[tt]}),Le};function getFramesAggregationInterval(Be){return Be?getFeatureFlag("id_v2_reduced_aggregation_interval")?1500:3e3:2e3}function IdCaptureParamsConfigurator(Be,Le,Ye,tt){Object.assign(Be,{areaDown:25e3,areaUp:55e3,areaIOSPassportUp:3e4,areaIOSPassportDown:2e4,widthIOSUp:160,widthIOSDown:85,widthDown:tt?110:135,widthUp:205,framesAggregationInterval:getFramesAggregationInterval(tt)})}function getSelfieFaceDetectionPipelineParams(){return{frameMinX:0,frameMinY:0,frameMaxX:1,frameMaxY:1,brightnessThreshold:50,blurrinessThreshold:50,tiltRotationAngleThreshold:15,minMagicCropSize:200,headwearThreshold:.86,lensesThreshold:.95,closedEyesThreshold:.9,maskThreshold:.85,minFaceQualityScore:.63,isOcclusionCheckEnabled:!1,faceOcclusionThreshold:.3}}const getWasmWorkflowProfiles=()=>[new WasmWorkflowProfile(WasmWorkflow.IdBlurGlareWorkflow,WasmWorkflowProfileName.IdCapture_2_01,DetectionType.IDCapture,["id_capture_2_01_fp16.ortmodelv2"],{glareThreshold:.3,classificationThreshold:.98,sideThreshold:.8,iouThreshold:.8,sharpnessThreshold:getFeatureFlag("id_blur_threshold_03")?.3:.2,sharpnessChangeThreshold:.2,modelType:IdCaptureModelType.IdCaptureV2x,isIouCheckEnabled:getFeatureFlag("id_iou_check"),isFPSLimitEnabled:getFeatureFlag("enable_fps_limit")},IdCaptureParamsConfigurator,"Current Prod - Id Capture Profile with model https://www.notion.so/ID-cropping-web-2-01-d011d878c6f4406394609cbfbf03c259?pvs=4"),new WasmWorkflowProfile(WasmWorkflow.IdBlurGlareWorkflow,WasmWorkflowProfileName.IdCapture_2_02,DetectionType.IDCapture,["id_capture_2_02_fp16.ortmodelv2"],{glareThreshold:.3,classificationThreshold:.98,sideThreshold:.8,iouThreshold:.8,sharpnessThreshold:getFeatureFlag("id_blur_threshold_03")?.3:.2,sharpnessChangeThreshold:.2,modelType:IdCaptureModelType.IdCaptureV2x,isIouCheckEnabled:getFeatureFlag("id_iou_check"),isFPSLimitEnabled:getFeatureFlag("enable_fps_limit")},IdCaptureParamsConfigurator,"https://www.notion.so/ML-Update-ID-processing-model-to-accept-more-back-ID-types-18c4c3caef49801e95b4fd6bf9b92883?pvs=4"),new WasmWorkflowProfile(WasmWorkflow.IdBarcodeAndTextQualityWorkflow,WasmWorkflowProfileName.IdCapture_3_02,DetectionType.IDCapture,["id_capture_3_02_fp16.ortmodelv2"],{glareThreshold:.3,classificationThreshold:.98,sideThreshold:.8,iouThreshold:.8,sharpnessThreshold:getFeatureFlag("id_blur_threshold_03")?.3:.2,sharpnessChangeThreshold:.2,modelType:IdCaptureModelType.IdCaptureV3x,isIouCheckEnabled:getFeatureFlag("id_iou_check"),isFPSLimitEnabled:!1},IdCaptureParamsConfigurator,"Pipeline with text and barcode quality: https://www.notion.so/Web-Use-Text-Barcode-model-2nd-iteration-1bc4c3caef49805aa9e6d308db9fc6dd?pvs=4"),new WasmWorkflowProfile(WasmWorkflow.IdFaceQualityWorkflow,WasmWorkflowProfileName.IdCapture_2_01_FaceQuality,DetectionType.IDCapture,["id_capture_2_01_fp16.ortmodelv2","id_fiqa_19a81a0b9bf6492eb03b4667f6db4c85_fp16.ortmodelv2","id_facedetector_v2_0_fp16.ortmodelv2"],{glareThreshold:.3,classificationThreshold:.98,sideThreshold:.8,iouThreshold:.8,sharpnessThreshold:getFeatureFlag("id_blur_threshold_03")?.3:.2,sharpnessChangeThreshold:.2,modelType:IdCaptureModelType.IdCaptureV2x,isIouCheckEnabled:getFeatureFlag("id_iou_check"),isFPSLimitEnabled:getFeatureFlag("enable_fps_limit")},IdCaptureParamsConfigurator,"Id Capture with face quality check - IdFaceQualityPipeline with id_capture_2_01 + id_fiqa + id_facedetector models"),new WasmWorkflowProfile(WasmWorkflow.IdVideoSelfieWorkflow,WasmWorkflowProfileName.IdVideoSelfie_2_01,DetectionType.IdVideoSelfie,["id_capture_2_01_fp16.ortmodelv2"],{glareThreshold:.3,classificationThreshold:.98,sideThreshold:.8,iouThreshold:.8,sharpnessThreshold:getFeatureFlag("id_blur_threshold_03")?.3:.2,sharpnessChangeThreshold:.2,modelType:IdCaptureModelType.IdCaptureV2x,isIouCheckEnabled:!0,isFPSLimitEnabled:!1},IdCaptureParamsConfigurator,"Current Prod - Id Videoselfie profile with model https://www.notion.so/ID-cropping-web-2-01-d011d878c6f4406394609cbfbf03c259?pvs=4"),new WasmWorkflowProfile(WasmWorkflow.SelfieWithAggregationMetrics,WasmWorkflowProfileName.SelfieWithAggregationMetrics,DetectionType.Selfie,["selfie_bf_angles_192x192_opset9_fp16.ortmodelv2","face_attributes_v1_3_fp16.ortmodelv2","mls_regressor_4773007c657b4f05a460321456740d0f_fp16.ortmodelv2","face_occlusion_v0_2_fp16.ortmodelv2"],getSelfieFaceDetectionPipelineParams(),null,"Selfie face detection profile with aggregation metrics"),new WasmWorkflowProfile(WasmWorkflow.SelfieWithQualityMetrics,WasmWorkflowProfileName.SelfieWithQualityMetrics,DetectionType.Selfie,["selfie_bf_angles_192x192_opset9_fp16.ortmodelv2","face_attributes_v1_3_fp16.ortmodelv2","mls_regressor_4773007c657b4f05a460321456740d0f_fp16.ortmodelv2","face_occlusion_v0_2_fp16.ortmodelv2"],getSelfieFaceDetectionPipelineParams(),null,"Current Prod - Selfie face detection profile with quality metrics"),new WasmWorkflowProfile(WasmWorkflow.SelfieWithAggregationMetrics,WasmWorkflowProfileName.SelfieVideoSelfie,DetectionType.SelfieVideoSelfie,["selfie_bf_angles_192x192_opset9_fp16.ortmodelv2","face_attributes_v1_3_fp16.ortmodelv2","mls_regressor_4773007c657b4f05a460321456740d0f_fp16.ortmodelv2","face_occlusion_v0_2_fp16.ortmodelv2"],getSelfieFaceDetectionPipelineParams(),null,"VideoSelfie face detection profile"),new WasmWorkflowProfile(WasmWorkflow.OnDeviceSelfieWorkflow,WasmWorkflowProfileName.OnDeviceSelfieWorkflow,DetectionType.OnDeviceSelfie,["selfie_bf_angles_192x192_opset9_fp16.ortmodelv2","face_attributes_v1_3_fp16.ortmodelv2","mls_regressor_4773007c657b4f05a460321456740d0f_fp16.ortmodelv2","face_occlusion_v0_2_fp16.ortmodelv2","ondevice_physical_liveness_v1_2_fp16.ortmodelv2","age_estimation_v2_2_2_fp16.ortmodelv2"],getSelfieFaceDetectionPipelineParams(),null,"On-device selfie workflow with liveness and age estimation")];function getWasmWorkflowProfile(Be){const Le=getWasmWorkflowProfiles().find(Ye=>Ye.name===Be);if(!Le)throw new Error(`WasmWorkflowProfile not found for type: ${Be}`);return Le}const wasmVersion="v2.13.07";function generateBundle(Be=!1){const Le=getFeatureFlag("id_face_readability"),Ye=getFeatureFlag("id_text_barcode_readability")?WasmWorkflowProfileName.IdCapture_3_02:Le?WasmWorkflowProfileName.IdCapture_2_01_FaceQuality:getFeatureFlag("id_model_hebrew_back_id")?WasmWorkflowProfileName.IdCapture_2_02:WasmWorkflowProfileName.IdCapture_2_01,tt=Be?WasmWorkflowProfileName.OnDeviceSelfieWorkflow:WasmWorkflowProfileName.SelfieWithQualityMetrics,nt=WasmWorkflowProfileName.SelfieVideoSelfie,ft=WasmWorkflowProfileName.IdVideoSelfie_2_01;return[Ye,ft,tt,nt]}function getInitializationParams(Be=!1){const Ye=generateBundle(Be),tt=getWasmBaseUrl(),nt=`${tt}/${wasmVersion}/webLib.wasm`,ft=`${tt}/${wasmVersion}/webLibSimd.wasm`,ht=`${tt}/${wasmVersion}/webLib.js`,gt=`${tt}/${wasmVersion}/versions.json`;let At=new Map,xt=new Map;for(const kt of Ye){const Ct=getWasmWorkflowProfile(kt);if(!Ct)throw new Error(`WasmWorkflowProfile not found: ${kt}`);const yt=Ct.modelNames;let vt=[];for(const It of yt)vt.push(`${tt}/${wasmVersion}/models/${It}`);At.set(Ct.wasmWorkflowType,vt),xt.set(Ct.detectionType,Ct)}return{wasmModulePath:nt,wasmSimdModulePath:ft,glueCodePath:ht,versionsFilePath:gt,workflowModels:At,enableSIMD:!0,profiles:xt,wasmVersion}}const version$4="1.89.0";function e$2(Be,Le){return function(Ye,tt){return Object.prototype.hasOwnProperty.call(Ye,tt)}(Be,Le)?Be[Le]:void 0}function t$2(Be,Le,Ye,tt){const nt=document,ft="securitypolicyviolation";let ht;const gt=xt=>{const kt=new URL(Be,location.href),{blockedURI:Ct}=xt;Ct!==kt.href&&Ct!==kt.protocol.slice(0,-1)&&Ct!==kt.origin||(ht=xt,At())};nt.addEventListener(ft,gt);const At=()=>nt.removeEventListener(ft,gt);return Promise.resolve().then(Le).then(xt=>(At(),xt),xt=>new Promise(kt=>{const Ct=new MessageChannel;Ct.port1.onmessage=()=>kt(),Ct.port2.postMessage(null)}).then(()=>{if(At(),ht)return Ye(ht);throw xt}))}function n$2(Be){let Le="";for(let Ye=0;Ye<Be.length;++Ye)if(Ye>0){const tt=Be[Ye].toLowerCase();tt!==Be[Ye]?Le+=` ${tt}`:Le+=Be[Ye]}else Le+=Be[Ye].toUpperCase();return Le}const r$3={default:"endpoint"},o$1={default:"tlsEndpoint"},i$6="Client timeout",R$2="Network connection error",s$3="Network request aborted",a$3="Response cannot be parsed",c$3="Blocked by CSP",E$1="The endpoint parameter is not a valid URL",l$1="Handle on demand agent data error",u$1=n$2("WrongRegion"),d$1=n$2("SubscriptionNotActive"),_$3=n$2("UnsupportedVersion"),O$1=n$2("InstallationMethodRestricted"),p$1=n$2("HostnameRestricted"),I$1=n$2("IntegrationFailed"),f$2=n$2("NetworkRestricted"),N$1=n$2("InvalidProxyIntegrationSecret"),T$1=n$2("InvalidProxyIntegrationHeaders"),h$f=n$2("ProxyIntegrationSecretEnvironmentMismatch"),v$e="API key required",m$2="API key not found",A$1="API key expired",w$f="Request cannot be parsed",P$1="Request failed",D$1="Request failed to process",S$1="Too many requests, rate limit exceeded",y="Not available for this origin",g$1="Not available with restricted header",L$1=v$e,C$1=m$2,U$1=A$1;var b$2="3.12.3";const M$1="Failed to load the JS script of the agent",K="9319";function V(Be,Le){const Ye=[],[tt,nt]=function(gt){const At=function(Ct){const yt=[...Ct];return{current:()=>yt[0],postpone(){const vt=yt.shift();vt!==void 0&&yt.push(vt)},exclude(){yt.shift()}}}(gt),xt=function(Ct,yt){let vt=0;return()=>Math.random()*Math.min(yt,Ct*Math.pow(2,vt++))}(100,3e3),kt=new Set;return[At.current(),(Ct,yt)=>{let vt;const It=yt instanceof Error?yt.message:"";if(It===c$3||It===E$1)At.exclude(),vt=0;else if(It===K)At.exclude();else if(It===M$1){const Bt=Date.now()-Ct.getTime()<50,Rt=At.current();Rt&&Bt&&!kt.has(Rt)&&(kt.add(Rt),vt=0),At.postpone()}else At.postpone();const wt=At.current();return wt===void 0?void 0:[wt,vt??Ct.getTime()+xt()-Date.now()]}]}(Be);let ft;if(tt===void 0)return Promise.reject(new TypeError("The list of script URL patterns is empty"));const ht=gt=>{const At=new Date,xt=Ct=>Ye.push({url:gt,startedAt:At,finishedAt:new Date,error:Ct}),kt=Le(gt);return kt.then(()=>xt(),xt),kt.catch(Ct=>{if(ft!=null||(ft=Ct),Ye.length>=5)throw ft;const yt=nt(At,Ct);if(!yt)throw ft;const[vt,It]=yt;return(wt=It,new Promise(Bt=>setTimeout(Bt,wt))).then(()=>ht(vt));var wt})};return ht(tt).then(gt=>[gt,Ye])}const k$1="https://fpnpmcdn.net/v<version>/<apiKey>/loader_v<loaderVersion>.js",G=k$1;function B$1(Be){var Le,Ye;const{picked:tt,rest:nt}=function(kt,Ct){const yt={},vt={};for(const[It,wt]of Object.entries(kt))Ct.includes(It)?yt[It]=wt:vt[It]=wt;return{picked:yt,rest:vt}}(Be,["scriptUrlPattern","token","apiKey"]),ft=tt.token,ht=(Le=tt.apiKey)!==null&&Le!==void 0?Le:ft,gt=(Ye=e$2(Be,"scriptUrlPattern"))!==null&&Ye!==void 0?Ye:k$1,[At,xt]=function(){const kt=[],Ct=()=>{kt.push({time:new Date,state:document.visibilityState})},yt=function(vt,It,wt,Bt){return vt.addEventListener(It,wt,Bt),()=>vt.removeEventListener(It,wt,Bt)}(document,"visibilitychange",Ct);return Ct(),[kt,yt]}();return Promise.resolve().then(()=>{if(!ht||typeof ht!="string")throw new Error(v$e);const kt=function(Ct,yt){return(Array.isArray(Ct)?Ct:[Ct]).map(vt=>function(It,wt){const Bt=encodeURIComponent;return It.replace(/<[^<>]+>/g,Rt=>Rt==="<version>"?"3":Rt==="<apiKey>"?Bt(wt):Rt==="<loaderVersion>"?Bt(b$2):Rt)}(String(vt),yt))}(gt,ht);return V(kt,F$1)}).catch(kt=>{throw xt(),function(Ct){return Ct instanceof Error&&Ct.message===K?new Error(M$1):Ct}(kt)}).then(([kt,Ct])=>(xt(),kt.load({...nt,ldi:{attempts:Ct,visibilityStates:At}})))}function F$1(Be){return t$2(Be,()=>function(Le){return new Promise((Ye,tt)=>{if(function(gt){if(URL.prototype)try{return new URL(gt,location.href),!1}catch(At){if(At instanceof Error&&At.name==="TypeError")return!0;throw At}}(Le))throw new Error(E$1);const nt=document.createElement("script"),ft=()=>{var gt;return(gt=nt.parentNode)===null||gt===void 0?void 0:gt.removeChild(nt)},ht=document.head||document.getElementsByTagName("head")[0];nt.onload=()=>{ft(),Ye()},nt.onerror=()=>{ft(),tt(new Error(M$1))},nt.async=!0,nt.src=Le,ht.appendChild(nt)})}(Be),()=>{throw new Error(c$3)}).then(x$1)}function x$1(){const Be=window,Le="__fpjs_p_l_b",Ye=Be[Le];if(function(tt,nt){var ft;const ht=(ft=Object.getOwnPropertyDescriptor)===null||ft===void 0?void 0:ft.call(Object,tt,nt);ht!=null&&ht.configurable?delete tt[nt]:ht&&!ht.writable||(tt[nt]=void 0)}(Be,Le),typeof(Ye==null?void 0:Ye.load)!="function")throw new Error(K);return Ye}var H={load:B$1,defaultScriptUrlPattern:G,ERROR_SCRIPT_LOAD_FAIL:M$1,ERROR_API_KEY_EXPIRED:A$1,ERROR_API_KEY_INVALID:m$2,ERROR_API_KEY_MISSING:v$e,ERROR_BAD_REQUEST_FORMAT:w$f,ERROR_BAD_RESPONSE_FORMAT:a$3,ERROR_CLIENT_TIMEOUT:i$6,ERROR_CSP_BLOCK:c$3,ERROR_FORBIDDEN_ENDPOINT:p$1,ERROR_FORBIDDEN_HEADER:g$1,ERROR_FORBIDDEN_ORIGIN:y,ERROR_GENERAL_SERVER_FAILURE:P$1,ERROR_HANDLE_AGENT_DATA:l$1,ERROR_INSTALLATION_METHOD_RESTRICTED:O$1,ERROR_INTEGRATION_FAILURE:I$1,ERROR_INVALID_ENDPOINT:E$1,ERROR_INVALID_PROXY_INTEGRATION_HEADERS:T$1,ERROR_INVALID_PROXY_INTEGRATION_SECRET:N$1,ERROR_NETWORK_ABORT:s$3,ERROR_NETWORK_CONNECTION:R$2,ERROR_NETWORK_RESTRICTED:f$2,ERROR_PROXY_INTEGRATION_SECRET_ENVIRONMENT_MISMATCH:h$f,ERROR_RATE_LIMIT:S$1,ERROR_SERVER_TIMEOUT:D$1,ERROR_SUBSCRIPTION_NOT_ACTIVE:d$1,ERROR_TOKEN_EXPIRED:U$1,ERROR_TOKEN_INVALID:C$1,ERROR_TOKEN_MISSING:L$1,ERROR_UNSUPPORTED_VERSION:_$3,ERROR_WRONG_REGION:u$1,defaultEndpoint:r$3,defaultTlsEndpoint:o$1};function e$1(Be,Le,Ye,tt){return new(Ye||(Ye=Promise))(function(nt,ft){function ht(xt){try{At(tt.next(xt))}catch(kt){ft(kt)}}function gt(xt){try{At(tt.throw(xt))}catch(kt){ft(kt)}}function At(xt){var kt;xt.done?nt(xt.value):(kt=xt.value,kt instanceof Ye?kt:new Ye(function(Ct){Ct(kt)})).then(ht,gt)}At((tt=tt.apply(Be,[])).next())})}function n$1(Be,Le){var Ye,tt,nt,ft,ht={label:0,sent:function(){if(1&nt[0])throw nt[1];return nt[1]},trys:[],ops:[]};return ft={next:gt(0),throw:gt(1),return:gt(2)},typeof Symbol=="function"&&(ft[Symbol.iterator]=function(){return this}),ft;function gt(At){return function(xt){return function(kt){if(Ye)throw new TypeError("Generator is already executing.");for(;ft&&(ft=0,kt[0]&&(ht=0)),ht;)try{if(Ye=1,tt&&(nt=2&kt[0]?tt.return:kt[0]?tt.throw||((nt=tt.return)&&nt.call(tt),0):tt.next)&&!(nt=nt.call(tt,kt[1])).done)return nt;switch(tt=0,nt&&(kt=[2&kt[0],nt.value]),kt[0]){case 0:case 1:nt=kt;break;case 4:return ht.label++,{value:kt[1],done:!1};case 5:ht.label++,tt=kt[1],kt=[0];continue;case 7:kt=ht.ops.pop(),ht.trys.pop();continue;default:if(nt=ht.trys,!((nt=nt.length>0&&nt[nt.length-1])||kt[0]!==6&&kt[0]!==2)){ht=0;continue}if(kt[0]===3&&(!nt||kt[1]>nt[0]&&kt[1]<nt[3])){ht.label=kt[1];break}if(kt[0]===6&&ht.label<nt[1]){ht.label=nt[1],nt=kt;break}if(nt&&ht.label<nt[2]){ht.label=nt[2],ht.ops.push(kt);break}nt[2]&&ht.ops.pop(),ht.trys.pop();continue}kt=Le.call(Be,ht)}catch(Ct){kt=[6,Ct],tt=0}finally{Ye=nt=0}if(5&kt[0])throw kt[1];return{value:kt[0]?kt[1]:void 0,done:!0}}([At,xt])}}}typeof SuppressedError=="function"&&SuppressedError;var r$2={exclude:[],include:[],logging:!0,timeout:1e3},o={},a$2={timeout:"true"},i$5=function(Be,Le){typeof window<"u"&&(o[Be]=Le)},u=function(){return Object.fromEntries(Object.entries(o).filter(function(Be){var Le,Ye=Be[0];return!(!((Le=r$2==null?void 0:r$2.exclude)===null||Le===void 0)&&Le.includes(Ye))}).filter(function(Be){var Le,Ye,tt,nt,ft=Be[0];return!((Le=r$2==null?void 0:r$2.include)===null||Le===void 0)&&Le.some(function(ht){return ht.includes(".")})?(Ye=r$2==null?void 0:r$2.include)===null||Ye===void 0?void 0:Ye.some(function(ht){return ht.startsWith(ft)}):((tt=r$2==null?void 0:r$2.include)===null||tt===void 0?void 0:tt.length)===0||((nt=r$2==null?void 0:r$2.include)===null||nt===void 0?void 0:nt.includes(ft))}).map(function(Be){return[Be[0],(0,Be[1])()]}))};function c$2(Be){return Be^=Be>>>16,Be=Math.imul(Be,2246822507),Be^=Be>>>13,Be=Math.imul(Be,3266489909),(Be^=Be>>>16)>>>0}var s$2=new Uint32Array([597399067,2869860233,951274213,2716044179]);function l(Be,Le){return Be<<Le|Be>>>32-Le}function d(Be,Le){var Ye;if(Le===void 0&&(Le=0),Le=Le?0|Le:0,typeof Be=="string"&&(Ye=Be,Be=new TextEncoder().encode(Ye).buffer),!(Be instanceof ArrayBuffer))throw new TypeError("Expected key to be ArrayBuffer or string");var tt=new Uint32Array([Le,Le,Le,Le]);(function(ft,ht){for(var gt=ft.byteLength/16|0,At=new Uint32Array(ft,0,4*gt),xt=0;xt<gt;xt++){var kt=At.subarray(4*xt,4*(xt+1));kt[0]=Math.imul(kt[0],s$2[0]),kt[0]=l(kt[0],15),kt[0]=Math.imul(kt[0],s$2[1]),ht[0]=ht[0]^kt[0],ht[0]=l(ht[0],19),ht[0]=ht[0]+ht[1],ht[0]=Math.imul(ht[0],5)+1444728091,kt[1]=Math.imul(kt[1],s$2[1]),kt[1]=l(kt[1],16),kt[1]=Math.imul(kt[1],s$2[2]),ht[1]=ht[1]^kt[1],ht[1]=l(ht[1],17),ht[1]=ht[1]+ht[2],ht[1]=Math.imul(ht[1],5)+197830471,kt[2]=Math.imul(kt[2],s$2[2]),kt[2]=l(kt[2],17),kt[2]=Math.imul(kt[2],s$2[3]),ht[2]=ht[2]^kt[2],ht[2]=l(ht[2],15),ht[2]=ht[2]+ht[3],ht[2]=Math.imul(ht[2],5)+2530024501,kt[3]=Math.imul(kt[3],s$2[3]),kt[3]=l(kt[3],18),kt[3]=Math.imul(kt[3],s$2[0]),ht[3]=ht[3]^kt[3],ht[3]=l(ht[3],13),ht[3]=ht[3]+ht[0],ht[3]=Math.imul(ht[3],5)+850148119}})(Be,tt),function(ft,ht){var gt=ft.byteLength/16|0,At=ft.byteLength%16,xt=new Uint32Array(4),kt=new Uint8Array(ft,16*gt,At);switch(At){case 15:xt[3]=xt[3]^kt[14]<<16;case 14:xt[3]=xt[3]^kt[13]<<8;case 13:xt[3]=xt[3]^kt[12],xt[3]=Math.imul(xt[3],s$2[3]),xt[3]=l(xt[3],18),xt[3]=Math.imul(xt[3],s$2[0]),ht[3]=ht[3]^xt[3];case 12:xt[2]=xt[2]^kt[11]<<24;case 11:xt[2]=xt[2]^kt[10]<<16;case 10:xt[2]=xt[2]^kt[9]<<8;case 9:xt[2]=xt[2]^kt[8],xt[2]=Math.imul(xt[2],s$2[2]),xt[2]=l(xt[2],17),xt[2]=Math.imul(xt[2],s$2[3]),ht[2]=ht[2]^xt[2];case 8:xt[1]=xt[1]^kt[7]<<24;case 7:xt[1]=xt[1]^kt[6]<<16;case 6:xt[1]=xt[1]^kt[5]<<8;case 5:xt[1]=xt[1]^kt[4],xt[1]=Math.imul(xt[1],s$2[1]),xt[1]=l(xt[1],16),xt[1]=Math.imul(xt[1],s$2[2]),ht[1]=ht[1]^xt[1];case 4:xt[0]=xt[0]^kt[3]<<24;case 3:xt[0]=xt[0]^kt[2]<<16;case 2:xt[0]=xt[0]^kt[1]<<8;case 1:xt[0]=xt[0]^kt[0],xt[0]=Math.imul(xt[0],s$2[0]),xt[0]=l(xt[0],15),xt[0]=Math.imul(xt[0],s$2[1]),ht[0]=ht[0]^xt[0]}}(Be,tt),function(ft,ht){ht[0]=ht[0]^ft.byteLength,ht[1]=ht[1]^ft.byteLength,ht[2]=ht[2]^ft.byteLength,ht[3]=ht[3]^ft.byteLength,ht[0]=ht[0]+ht[1]|0,ht[0]=ht[0]+ht[2]|0,ht[0]=ht[0]+ht[3]|0,ht[1]=ht[1]+ht[0]|0,ht[2]=ht[2]+ht[0]|0,ht[3]=ht[3]+ht[0]|0,ht[0]=c$2(ht[0]),ht[1]=c$2(ht[1]),ht[2]=c$2(ht[2]),ht[3]=c$2(ht[3]),ht[0]=ht[0]+ht[1]|0,ht[0]=ht[0]+ht[2]|0,ht[0]=ht[0]+ht[3]|0,ht[1]=ht[1]+ht[0]|0,ht[2]=ht[2]+ht[0]|0,ht[3]=ht[3]+ht[0]|0}(Be,tt);var nt=new Uint8Array(tt.buffer);return Array.from(nt).map(function(ft){return ft.toString(16).padStart(2,"0")}).join("")}function f$1(Be,Le){return new Promise(function(Ye){setTimeout(function(){return Ye(Le)},Be)})}function m$1(Be,Le,Ye){return Promise.all(Be.map(function(tt){return Promise.race([tt,f$1(Le,Ye)])}))}function g(){return e$1(this,void 0,void 0,function(){var Be,Le,Ye,tt,nt;return n$1(this,function(ft){switch(ft.label){case 0:return ft.trys.push([0,2,,3]),Be=u(),Le=Object.keys(Be),[4,m$1(Object.values(Be),(r$2==null?void 0:r$2.timeout)||1e3,a$2)];case 1:return Ye=ft.sent(),tt=Ye.filter(function(ht){return ht!==void 0}),nt={},tt.forEach(function(ht,gt){nt[Le[gt]]=ht}),[2,p(nt,r$2.exclude||[],r$2.include||[],"")];case 2:throw ft.sent();case 3:return[2]}})})}function p(Be,Le,Ye,tt){tt===void 0&&(tt="");for(var nt={},ft=function(xt,kt){var Ct=tt+xt+".";if(typeof kt!="object"||Array.isArray(kt)){var yt=Le.some(function(wt){return Ct.startsWith(wt)}),vt=Ye.some(function(wt){return Ct.startsWith(wt)});yt&&!vt||(nt[xt]=kt)}else{var It=p(kt,Le,Ye,Ct);Object.keys(It).length>0&&(nt[xt]=It)}},ht=0,gt=Object.entries(Be);ht<gt.length;ht++){var At=gt[ht];ft(At[0],At[1])}return nt}function w$e(Be){return e$1(this,void 0,void 0,function(){var Le,Ye;return n$1(this,function(tt){switch(tt.label){case 0:return tt.trys.push([0,2,,3]),[4,g()];case 1:return Le=tt.sent(),Ye=d(JSON.stringify(Le)),Math.random()<1e-5&&r$2.logging&&function(nt,ft){e$1(this,void 0,void 0,function(){var ht,gt;return n$1(this,function(At){switch(At.label){case 0:if(ht="https://logging.thumbmarkjs.com/v1/log",gt={thumbmark:nt,components:ft,version:"0.20.6"},sessionStorage.getItem("_tmjs_l"))return[3,4];sessionStorage.setItem("_tmjs_l","1"),At.label=1;case 1:return At.trys.push([1,3,,4]),[4,fetch(ht,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(gt)})];case 2:case 3:return At.sent(),[3,4];case 4:return[2]}})})}(Ye,Le),[2,Ye.toString()];case 2:throw tt.sent();case 3:return[2]}})})}function b$1(){if(typeof navigator>"u")return{name:"unknown",version:"unknown"};for(var Be=navigator.userAgent,Le={edg:"Edge",opr:"Opera",samsung:"SamsungBrowser"},Ye=0,tt=[/(?<name>SamsungBrowser)\/(?<version>\d+(?:\.\d+)?)/,/(?<name>Edge|Edg)\/(?<version>\d+(?:\.\d+)?)/,/(?<name>(?:Chrome|Chromium|OPR|Opera|Vivaldi|Brave))\/(?<version>\d+(?:\.\d+)?)/,/(?<name>(?:Firefox|Waterfox|Iceweasel|IceCat))\/(?<version>\d+(?:\.\d+)?)/,/(?<name>Safari)\/(?<version>\d+(?:\.\d+)?)/,/(?<name>MSIE|Trident|IEMobile).+?(?<version>\d+(?:\.\d+)?)/,/(?<name>samsung).*Version\/(?<version>\d+(?:\.\d+)?)/i,/(?<name>[A-Za-z]+)\/(?<version>\d+(?:\.\d+)?)/];Ye<tt.length;Ye++){var nt=tt[Ye],ft=Be.match(nt);if(ft&&ft.groups)return{name:Le[ft.groups.name.toLowerCase()]||ft.groups.name,version:ft.groups.version}}return{name:"unknown",version:"unknown"}}function S(Be){for(var Le=0,Ye=0;Ye<Be.length;++Ye)Le+=Math.abs(Be[Ye]);return Le}var M=b$1();function E(Be,Le,Ye){for(var tt=[],nt=0;nt<Be[0].data.length;nt++){for(var ft=[],ht=0;ht<Be.length;ht++)ft.push(Be[ht].data[nt]);tt.push(P(ft))}var gt=new Uint8ClampedArray(tt);return new ImageData(gt,Le,Ye)}function P(Be){if(Be.length===0)return 0;for(var Le={},Ye=0,tt=Be;Ye<tt.length;Ye++)Le[ft=tt[Ye]]=(Le[ft]||0)+1;var nt=Be[0];for(var ft in Le)Le[ft]>Le[nt]&&(nt=parseInt(ft,10));return nt}["SamsungBrowser","Safari"].includes(M.name)||i$5("audio",function(){return e$1(this,void 0,void 0,function(){return n$1(this,function(Be){return[2,new Promise(function(Le,Ye){try{var tt=new(window.OfflineAudioContext||window.webkitOfflineAudioContext)(1,5e3,44100),nt=tt.createBufferSource(),ft=tt.createOscillator();ft.frequency.value=1e3;var ht,gt=tt.createDynamicsCompressor();gt.threshold.value=-50,gt.knee.value=40,gt.ratio.value=12,gt.attack.value=0,gt.release.value=.2,ft.connect(gt),gt.connect(tt.destination),ft.start(),tt.oncomplete=function(At){ht=At.renderedBuffer.getChannelData(0),Le({sampleHash:S(ht),oscillator:ft.type,maxChannels:tt.destination.maxChannelCount,channelCountMode:nt.channelCountMode})},tt.startRendering()}catch(At){console.error("Error creating audio fingerprint:",At),Ye(At)}})]})})});var A=b$1(),C=A.name.toLowerCase(),x=A.version.split(".")[0]||"0",T=parseInt(x,10);C==="firefox"||C==="safari"&&T===17||i$5("canvas",function(){return document.createElement("canvas").getContext("2d"),new Promise(function(Be){var Le=Array.from({length:3},function(){return function(){var Ye=document.createElement("canvas"),tt=Ye.getContext("2d");if(!tt)return new ImageData(1,1);Ye.width=280,Ye.height=20;var nt=tt.createLinearGradient(0,0,Ye.width,Ye.height);nt.addColorStop(0,"red"),nt.addColorStop(.16666666666666666,"orange"),nt.addColorStop(.3333333333333333,"yellow"),nt.addColorStop(.5,"green"),nt.addColorStop(.6666666666666666,"blue"),nt.addColorStop(.8333333333333334,"indigo"),nt.addColorStop(1,"violet"),tt.fillStyle=nt,tt.fillRect(0,0,Ye.width,Ye.height);var ft="Random Text WMwmil10Oo";return tt.font="23.123px Arial",tt.fillStyle="black",tt.fillText(ft,-5,15),tt.fillStyle="rgba(0, 0, 255, 0.5)",tt.fillText(ft,-3.3,17.7),tt.beginPath(),tt.moveTo(0,0),tt.lineTo(2*Ye.width/7,Ye.height),tt.strokeStyle="white",tt.lineWidth=2,tt.stroke(),tt.getImageData(0,0,Ye.width,Ye.height)}()});Be({commonImageDataHash:d(E(Le,280,20).data.toString()).toString()})})});var k,I=["Arial","Arial Black","Arial Narrow","Arial Rounded MT","Arimo","Archivo","Barlow","Bebas Neue","Bitter","Bookman","Calibri","Cabin","Candara","Century","Century Gothic","Comic Sans MS","Constantia","Courier","Courier New","Crimson Text","DM Mono","DM Sans","DM Serif Display","DM Serif Text","Dosis","Droid Sans","Exo","Fira Code","Fira Sans","Franklin Gothic Medium","Garamond","Geneva","Georgia","Gill Sans","Helvetica","Impact","Inconsolata","Indie Flower","Inter","Josefin Sans","Karla","Lato","Lexend","Lucida Bright","Lucida Console","Lucida Sans Unicode","Manrope","Merriweather","Merriweather Sans","Montserrat","Myriad","Noto Sans","Nunito","Nunito Sans","Open Sans","Optima","Orbitron","Oswald","Pacifico","Palatino","Perpetua","PT Sans","PT Serif","Poppins","Prompt","Public Sans","Quicksand","Rajdhani","Recursive","Roboto","Roboto Condensed","Rockwell","Rubik","Segoe Print","Segoe Script","Segoe UI","Sora","Source Sans Pro","Space Mono","Tahoma","Taviraj","Times","Times New Roman","Titillium Web","Trebuchet MS","Ubuntu","Varela Round","Verdana","Work Sans"],R$1=["monospace","sans-serif","serif"];function L(Be,Le){if(!Be)throw new Error("Canvas context not supported");return Be.font,Be.font="72px ".concat(Le),Be.measureText("WwMmLli0Oo").width}function _$2(){var Be,Le=document.createElement("canvas"),Ye=(Be=Le.getContext("webgl"))!==null&&Be!==void 0?Be:Le.getContext("experimental-webgl");if(Ye&&"getParameter"in Ye)try{var tt=(Ye.getParameter(Ye.VENDOR)||"").toString(),nt=(Ye.getParameter(Ye.RENDERER)||"").toString(),ft={vendor:tt,renderer:nt,version:(Ye.getParameter(Ye.VERSION)||"").toString(),shadingLanguageVersion:(Ye.getParameter(Ye.SHADING_LANGUAGE_VERSION)||"").toString()};if(!nt.length||!tt.length){var ht=Ye.getExtension("WEBGL_debug_renderer_info");if(ht){var gt=(Ye.getParameter(ht.UNMASKED_VENDOR_WEBGL)||"").toString(),At=(Ye.getParameter(ht.UNMASKED_RENDERER_WEBGL)||"").toString();gt&&(ft.vendorUnmasked=gt),At&&(ft.rendererUnmasked=At)}}return ft}catch{}return"undefined"}function O(){var Be=new Float32Array(1),Le=new Uint8Array(Be.buffer);return Be[0]=1/0,Be[0]=Be[0]-Be[0],Le[3]}function B(Be,Le){var Ye={};return Le.forEach(function(tt){var nt=function(ft){if(ft.length===0)return null;var ht={};ft.forEach(function(xt){var kt=String(xt);ht[kt]=(ht[kt]||0)+1});var gt=ft[0],At=1;return Object.keys(ht).forEach(function(xt){ht[xt]>At&&(gt=xt,At=ht[xt])}),gt}(Be.map(function(ft){return tt in ft?ft[tt]:void 0}).filter(function(ft){return ft!==void 0}));nt&&(Ye[tt]=nt)}),Ye}function D(){var Be=[],Le={"prefers-contrast":["high","more","low","less","forced","no-preference"],"any-hover":["hover","none"],"any-pointer":["none","coarse","fine"],pointer:["none","coarse","fine"],hover:["hover","none"],update:["fast","slow"],"inverted-colors":["inverted","none"],"prefers-reduced-motion":["reduce","no-preference"],"prefers-reduced-transparency":["reduce","no-preference"],scripting:["none","initial-only","enabled"],"forced-colors":["active","none"]};return Object.keys(Le).forEach(function(Ye){Le[Ye].forEach(function(tt){matchMedia("(".concat(Ye,": ").concat(tt,")")).matches&&Be.push("".concat(Ye,": ").concat(tt))})}),Be}b$1().name!="Firefox"&&i$5("fonts",function(){var Be=this;return new Promise(function(Le,Ye){try{(function(tt){var nt;e$1(this,void 0,void 0,function(){var ft,ht,gt;return n$1(this,function(At){switch(At.label){case 0:return document.body?[3,2]:[4,(xt=50,new Promise(function(Ct){return setTimeout(Ct,xt,kt)}))];case 1:return At.sent(),[3,0];case 2:if((ft=document.createElement("iframe")).setAttribute("frameBorder","0"),(ht=ft.style).setProperty("position","fixed"),ht.setProperty("display","block","important"),ht.setProperty("visibility","visible"),ht.setProperty("border","0"),ht.setProperty("opacity","0"),ft.src="about:blank",document.body.appendChild(ft),!(gt=ft.contentDocument||((nt=ft.contentWindow)===null||nt===void 0?void 0:nt.document)))throw new Error("Iframe document is not accessible");return tt({iframe:gt}),setTimeout(function(){document.body.removeChild(ft)},0),[2]}var xt,kt})})})(function(tt){var nt=tt.iframe;return e$1(Be,void 0,void 0,function(){var ft,ht,gt,At;return n$1(this,function(xt){return ft=nt.createElement("canvas"),ht=ft.getContext("2d"),gt=R$1.map(function(kt){return L(ht,kt)}),At={},I.forEach(function(kt){var Ct=L(ht,kt);gt.includes(Ct)||(At[kt]=Ct)}),Le(At),[2]})})})}catch{Ye({error:"unsupported"})}})}),i$5("hardware",function(){return new Promise(function(Be,Le){var Ye=navigator.deviceMemory!==void 0?navigator.deviceMemory:0,tt=window.performance&&window.performance.memory?window.performance.memory:0;Be({videocard:_$2(),architecture:O(),deviceMemory:Ye.toString()||"undefined",jsHeapSizeLimit:tt.jsHeapSizeLimit||0})})}),i$5("locales",function(){return new Promise(function(Be){Be({languages:navigator.language,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone})})}),i$5("permissions",function(){return e$1(this,void 0,void 0,function(){var Be;return n$1(this,function(Le){return k=(r$2==null?void 0:r$2.permissions_to_check)||["accelerometer","accessibility","accessibility-events","ambient-light-sensor","background-fetch","background-sync","bluetooth","camera","clipboard-read","clipboard-write","device-info","display-capture","gyroscope","geolocation","local-fonts","magnetometer","microphone","midi","nfc","notifications","payment-handler","persistent-storage","push","speaker","storage-access","top-level-storage-access","window-management","query"],b$1().name.toLowerCase()==="safari"&&(k=k.filter(function(Ye){return!["camera","geolocation","microphone"].includes(Ye)})),Be=Array.from({length:(r$2==null?void 0:r$2.retries)||3},function(){return function(){return e$1(this,void 0,void 0,function(){var Ye,tt,nt,ft,ht;return n$1(this,function(gt){switch(gt.label){case 0:Ye={},tt=0,nt=k,gt.label=1;case 1:if(!(tt<nt.length))return[3,6];ft=nt[tt],gt.label=2;case 2:return gt.trys.push([2,4,,5]),[4,navigator.permissions.query({name:ft})];case 3:return ht=gt.sent(),Ye[ft]=ht.state.toString(),[3,5];case 4:return gt.sent(),[3,5];case 5:return tt++,[3,1];case 6:return[2,Ye]}})})}()}),[2,Promise.all(Be).then(function(Ye){return B(Ye,k)})]})})}),i$5("plugins",function(){var Be=[];if(navigator.plugins)for(var Le=0;Le<navigator.plugins.length;Le++){var Ye=navigator.plugins[Le];Be.push([Ye.name,Ye.filename,Ye.description].join("|"))}return new Promise(function(tt){tt({plugins:Be})})}),i$5("screen",function(){return new Promise(function(Be){Be({is_touchscreen:navigator.maxTouchPoints>0,maxTouchPoints:navigator.maxTouchPoints,colorDepth:screen.colorDepth,mediaMatches:D()})})}),i$5("system",function(){return new Promise(function(Be){var Le=b$1(),Ye={platform:window.navigator.platform,productSub:navigator.productSub,product:navigator.product,useragent:navigator.userAgent,hardwareConcurrency:navigator.hardwareConcurrency,browser:{name:Le.name,version:Le.version}};Le.name.toLowerCase()!=="safari"&&(Ye.applePayVersion=function(){if(window.location.protocol==="https:"&&typeof window.ApplePaySession=="function")try{for(var tt=window.ApplePaySession.supportsVersion,nt=15;nt>0;nt--)if(tt(nt))return nt}catch{return 0}return 0}(),Ye.cookieEnabled=window.navigator.cookieEnabled),Be(Ye)})});var U,N=b$1().name!=="SamsungBrowser"?1:3,F=null;i$5("webgl",function(){return e$1(this,void 0,void 0,function(){var Be;return n$1(this,function(Le){typeof document<"u"&&((U=document.createElement("canvas")).width=200,U.height=100,F=U.getContext("webgl"));try{if(!F)throw new Error("WebGL not supported");return Be=Array.from({length:N},function(){return function(){try{if(!F)throw new Error("WebGL not supported");var Ye=`
|
|
106
|
+
<%s key={someKey} {...props} />`,Wa,wr,Ea,wr),Gn[wr+Wa]=!0}}return R0===tt?bn(Kn):Rn(Kn),Kn}}function Fr(R0,b0,F0){return Jn(R0,b0,F0,!0)}function or(R0,b0,F0){return Jn(R0,b0,F0,!1)}var Wn=or,vr=Fr;reactJsxRuntime_development.Fragment=tt,reactJsxRuntime_development.jsx=Wn,reactJsxRuntime_development.jsxs=vr}()),reactJsxRuntime_development}process.env.NODE_ENV==="production"?jsxRuntime.exports=requireReactJsxRuntime_production_min():jsxRuntime.exports=requireReactJsxRuntime_development();var jsxRuntimeExports=jsxRuntime.exports,__spreadArray$1=function(Be,Le,Ye){if(Ye||arguments.length===2)for(var tt=0,nt=Le.length,ft;tt<nt;tt++)(ft||!(tt in Le))&&(ft||(ft=Array.prototype.slice.call(Le,0,tt)),ft[tt]=Le[tt]);return Be.concat(ft||Array.prototype.slice.call(Le))},clipboardEvents=["onCopy","onCut","onPaste"],compositionEvents=["onCompositionEnd","onCompositionStart","onCompositionUpdate"],focusEvents=["onFocus","onBlur"],formEvents=["onInput","onInvalid","onReset","onSubmit"],imageEvents=["onLoad","onError"],keyboardEvents=["onKeyDown","onKeyPress","onKeyUp"],mediaEvents=["onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onError","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting"],mouseEvents=["onClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp"],dragEvents=["onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop"],selectionEvents=["onSelect"],touchEvents=["onTouchCancel","onTouchEnd","onTouchMove","onTouchStart"],pointerEvents=["onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onGotPointerCapture","onLostPointerCapture","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut"],uiEvents=["onScroll"],wheelEvents=["onWheel"],animationEvents=["onAnimationStart","onAnimationEnd","onAnimationIteration"],transitionEvents=["onTransitionEnd"],otherEvents=["onToggle"],changeEvents=["onChange"],allEvents=__spreadArray$1(__spreadArray$1(__spreadArray$1(__spreadArray$1(__spreadArray$1(__spreadArray$1(__spreadArray$1(__spreadArray$1(__spreadArray$1(__spreadArray$1(__spreadArray$1(__spreadArray$1(__spreadArray$1(__spreadArray$1(__spreadArray$1(__spreadArray$1(__spreadArray$1(__spreadArray$1([],clipboardEvents,!0),compositionEvents,!0),focusEvents,!0),formEvents,!0),imageEvents,!0),keyboardEvents,!0),mediaEvents,!0),mouseEvents,!0),dragEvents,!0),selectionEvents,!0),touchEvents,!0),pointerEvents,!0),uiEvents,!0),wheelEvents,!0),animationEvents,!0),transitionEvents,!0),changeEvents,!0),otherEvents,!0);function makeEventProps(Be,Le){var Ye={};return allEvents.forEach(function(tt){var nt=Be[tt];nt&&(Le?Ye[tt]=function(ft){return nt(ft,Le(tt))}:Ye[tt]=nt)}),Ye}function makeCancellablePromise(Be){var Le=!1,Ye=new Promise(function(tt,nt){Be.then(function(ft){return!Le&&tt(ft)}).catch(function(ft){return!Le&&nt(ft)})});return{promise:Ye,cancel:function(){Le=!0}}}function r$4(Be){var Le,Ye,tt="";if(typeof Be=="string"||typeof Be=="number")tt+=Be;else if(typeof Be=="object")if(Array.isArray(Be)){var nt=Be.length;for(Le=0;Le<nt;Le++)Be[Le]&&(Ye=r$4(Be[Le]))&&(tt&&(tt+=" "),tt+=Ye)}else for(Ye in Be)Be[Ye]&&(tt&&(tt+=" "),tt+=Ye);return tt}function clsx$1(){for(var Be,Le,Ye=0,tt="",nt=arguments.length;Ye<nt;Ye++)(Be=arguments[Ye])&&(Le=r$4(Be))&&(tt&&(tt+=" "),tt+=Le);return tt}var isProduction=process.env.NODE_ENV==="production",prefix$1="Invariant failed";function invariant$1(Be,Le){if(!Be){if(isProduction)throw new Error(prefix$1);var Ye=typeof Le=="function"?Le():Le,tt=Ye?"".concat(prefix$1,": ").concat(Ye):prefix$1;throw new Error(tt)}}var __DEV__=process.env.NODE_ENV!=="production",warning$3=function(){};if(__DEV__){var printWarning=function(Le,Ye){var tt=arguments.length;Ye=new Array(tt>1?tt-1:0);for(var nt=1;nt<tt;nt++)Ye[nt-1]=arguments[nt];var ft=0,ht="Warning: "+Le.replace(/%s/g,function(){return Ye[ft++]});typeof console<"u"&&console.error(ht);try{throw new Error(ht)}catch{}};warning$3=function(Be,Le,Ye){var tt=arguments.length;Ye=new Array(tt>2?tt-2:0);for(var nt=2;nt<tt;nt++)Ye[nt-2]=arguments[nt];if(Le===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");Be||printWarning.apply(null,[Le].concat(Ye))}}var warning_1=warning$3;const warning$4=getDefaultExportFromCjs(warning_1);var has$1=Object.prototype.hasOwnProperty;function find$2(Be,Le,Ye){for(Ye of Be.keys())if(dequal(Ye,Le))return Ye}function dequal(Be,Le){var Ye,tt,nt;if(Be===Le)return!0;if(Be&&Le&&(Ye=Be.constructor)===Le.constructor){if(Ye===Date)return Be.getTime()===Le.getTime();if(Ye===RegExp)return Be.toString()===Le.toString();if(Ye===Array){if((tt=Be.length)===Le.length)for(;tt--&&dequal(Be[tt],Le[tt]););return tt===-1}if(Ye===Set){if(Be.size!==Le.size)return!1;for(tt of Be)if(nt=tt,nt&&typeof nt=="object"&&(nt=find$2(Le,nt),!nt)||!Le.has(nt))return!1;return!0}if(Ye===Map){if(Be.size!==Le.size)return!1;for(tt of Be)if(nt=tt[0],nt&&typeof nt=="object"&&(nt=find$2(Le,nt),!nt)||!dequal(tt[1],Le.get(nt)))return!1;return!0}if(Ye===ArrayBuffer)Be=new Uint8Array(Be),Le=new Uint8Array(Le);else if(Ye===DataView){if((tt=Be.byteLength)===Le.byteLength)for(;tt--&&Be.getInt8(tt)===Le.getInt8(tt););return tt===-1}if(ArrayBuffer.isView(Be)){if((tt=Be.byteLength)===Le.byteLength)for(;tt--&&Be[tt]===Le[tt];);return tt===-1}if(!Ye||typeof Be=="object"){tt=0;for(Ye in Be)if(has$1.call(Be,Ye)&&++tt&&!has$1.call(Le,Ye)||!(Ye in Le)||!dequal(Be[Ye],Le[Ye]))return!1;return Object.keys(Le).length===tt}}return Be!==Be&&Le!==Le}const documentContext=React.createContext(null);function Message$5({children:Be,type:Le}){return jsxRuntimeExports.jsx("div",{className:`react-pdf__message react-pdf__message--${Le}`,children:Be})}const DEFAULT_LINK_REL="noopener noreferrer nofollow";class LinkService{constructor(){this.externalLinkEnabled=!0,this.externalLinkRel=void 0,this.externalLinkTarget=void 0,this.isInPresentationMode=!1,this.pdfDocument=void 0,this.pdfViewer=void 0}setDocument(Le){this.pdfDocument=Le}setViewer(Le){this.pdfViewer=Le}setExternalLinkRel(Le){this.externalLinkRel=Le}setExternalLinkTarget(Le){this.externalLinkTarget=Le}setHistory(){}get pagesCount(){return this.pdfDocument?this.pdfDocument.numPages:0}get page(){return invariant$1(this.pdfViewer,"PDF viewer is not initialized."),this.pdfViewer.currentPageNumber||0}set page(Le){invariant$1(this.pdfViewer,"PDF viewer is not initialized."),this.pdfViewer.currentPageNumber=Le}get rotation(){return 0}set rotation(Le){}goToDestination(Le){return new Promise(Ye=>{invariant$1(this.pdfDocument,"PDF document not loaded."),invariant$1(Le,"Destination is not specified."),typeof Le=="string"?this.pdfDocument.getDestination(Le).then(Ye):Array.isArray(Le)?Ye(Le):Le.then(Ye)}).then(Ye=>{invariant$1(Array.isArray(Ye),`"${Ye}" is not a valid destination array.`);const tt=Ye[0];new Promise(nt=>{invariant$1(this.pdfDocument,"PDF document not loaded."),tt instanceof Object?this.pdfDocument.getPageIndex(tt).then(ft=>{nt(ft)}).catch(()=>{invariant$1(!1,`"${tt}" is not a valid page reference.`)}):typeof tt=="number"?nt(tt):invariant$1(!1,`"${tt}" is not a valid destination reference.`)}).then(nt=>{const ft=nt+1;invariant$1(this.pdfViewer,"PDF viewer is not initialized."),invariant$1(ft>=1&&ft<=this.pagesCount,`"${ft}" is not a valid page number.`),this.pdfViewer.scrollPageIntoView({dest:Ye,pageIndex:nt,pageNumber:ft})})})}navigateTo(Le){this.goToDestination(Le)}goToPage(Le){const Ye=Le-1;invariant$1(this.pdfViewer,"PDF viewer is not initialized."),invariant$1(Le>=1&&Le<=this.pagesCount,`"${Le}" is not a valid page number.`),this.pdfViewer.scrollPageIntoView({pageIndex:Ye,pageNumber:Le})}addLinkAttributes(Le,Ye,tt){Le.href=Ye,Le.rel=this.externalLinkRel||DEFAULT_LINK_REL,Le.target=tt?"_blank":this.externalLinkTarget||""}getDestinationHash(){return"#"}getAnchorUrl(){return"#"}setHash(){}executeNamedAction(){}cachePageRef(){}isPageVisible(){return!0}isPageCached(){return!0}executeSetOCGState(){}}const PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2},isBrowser$2=typeof window<"u",isLocalFileSystem=isBrowser$2&&window.location.protocol==="file:";function isDefined$1(Be){return typeof Be<"u"}function isProvided(Be){return isDefined$1(Be)&&Be!==null}function isString$4(Be){return typeof Be=="string"}function isArrayBuffer(Be){return Be instanceof ArrayBuffer}function isBlob(Be){return invariant$1(isBrowser$2,"isBlob can only be used in a browser environment"),Be instanceof Blob}function isDataURI(Be){return isString$4(Be)&&/^data:/.test(Be)}function dataURItoByteString(Be){invariant$1(isDataURI(Be),"Invalid data URI.");const[Le="",Ye=""]=Be.split(",");return Le.split(";").indexOf("base64")!==-1?atob(Ye):unescape(Ye)}function getDevicePixelRatio(){return isBrowser$2&&window.devicePixelRatio||1}const allowFileAccessFromFilesTip="On Chromium based browsers, you can use --allow-file-access-from-files flag for debugging purposes.";function displayCORSWarning(){warning$4(!isLocalFileSystem,`Loading PDF as base64 strings/URLs may not work on protocols other than HTTP/HTTPS. ${allowFileAccessFromFilesTip}`)}function displayWorkerWarning(){warning$4(!isLocalFileSystem,`Loading PDF.js worker may not work on protocols other than HTTP/HTTPS. ${allowFileAccessFromFilesTip}`)}function cancelRunningTask(Be){Be!=null&&Be.cancel&&Be.cancel()}function makePageCallback(Be,Le){return Object.defineProperty(Be,"width",{get(){return this.view[2]*Le},configurable:!0}),Object.defineProperty(Be,"height",{get(){return this.view[3]*Le},configurable:!0}),Object.defineProperty(Be,"originalWidth",{get(){return this.view[2]},configurable:!0}),Object.defineProperty(Be,"originalHeight",{get(){return this.view[3]},configurable:!0}),Be}function isCancelException(Be){return Be.name==="RenderingCancelledException"}function loadFromFile(Be){return new Promise((Le,Ye)=>{const tt=new FileReader;tt.onload=()=>{if(!tt.result)return Ye(new Error("Error while reading a file."));Le(tt.result)},tt.onerror=nt=>{if(!nt.target)return Ye(new Error("Error while reading a file."));const{error:ft}=nt.target;if(!ft)return Ye(new Error("Error while reading a file."));switch(ft.code){case ft.NOT_FOUND_ERR:return Ye(new Error("Error while reading a file: File not found."));case ft.SECURITY_ERR:return Ye(new Error("Error while reading a file: Security error."));case ft.ABORT_ERR:return Ye(new Error("Error while reading a file: Aborted."));default:return Ye(new Error("Error while reading a file."))}},tt.readAsArrayBuffer(Be)})}function reducer$1(Be,Le){switch(Le.type){case"RESOLVE":return{value:Le.value,error:void 0};case"REJECT":return{value:!1,error:Le.error};case"RESET":return{value:void 0,error:void 0};default:return Be}}function useResolver(){return React.useReducer(reducer$1,{value:void 0,error:void 0})}var __awaiter$6=function(Be,Le,Ye,tt){function nt(ft){return ft instanceof Ye?ft:new Ye(function(ht){ht(ft)})}return new(Ye||(Ye=Promise))(function(ft,ht){function gt(kt){try{xt(tt.next(kt))}catch(Ct){ht(Ct)}}function At(kt){try{xt(tt.throw(kt))}catch(Ct){ht(Ct)}}function xt(kt){kt.done?ft(kt.value):nt(kt.value).then(gt,At)}xt((tt=tt.apply(Be,Le||[])).next())})},__rest$2=function(Be,Le){var Ye={};for(var tt in Be)Object.prototype.hasOwnProperty.call(Be,tt)&&Le.indexOf(tt)<0&&(Ye[tt]=Be[tt]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,tt=Object.getOwnPropertySymbols(Be);nt<tt.length;nt++)Le.indexOf(tt[nt])<0&&Object.prototype.propertyIsEnumerable.call(Be,tt[nt])&&(Ye[tt[nt]]=Be[tt[nt]]);return Ye};const{PDFDataRangeTransport}=pdfjs,defaultOnPassword=(Be,Le)=>{switch(Le){case PasswordResponses.NEED_PASSWORD:{const Ye=prompt("Enter the password to open this PDF file.");Be(Ye);break}case PasswordResponses.INCORRECT_PASSWORD:{const Ye=prompt("Invalid password. Please try again.");Be(Ye);break}}};function isParameterObject(Be){return typeof Be=="object"&&Be!==null&&("data"in Be||"range"in Be||"url"in Be)}const Document$1=React.forwardRef(function(Le,Ye){var{children:tt,className:nt,error:ft="Failed to load PDF file.",externalLinkRel:ht,externalLinkTarget:gt,file:At,inputRef:xt,imageResourcesPath:kt,loading:Ct="Loading PDF…",noData:yt="No PDF file specified.",onItemClick:vt,onLoadError:It,onLoadProgress:wt,onLoadSuccess:Bt,onPassword:Rt=defaultOnPassword,onSourceError:Ot,onSourceSuccess:Dt,options:Nt,renderMode:_t,rotate:Mt}=Le,Ft=__rest$2(Le,["children","className","error","externalLinkRel","externalLinkTarget","file","inputRef","imageResourcesPath","loading","noData","onItemClick","onLoadError","onLoadProgress","onLoadSuccess","onPassword","onSourceError","onSourceSuccess","options","renderMode","rotate"]);const[jt,Kt]=useResolver(),{value:qt,error:Zt}=jt,[Yt,Ht]=useResolver(),{value:Vt,error:zt}=Yt,Gt=React.useRef(new LinkService),Qt=React.useRef([]),$t=React.useRef(void 0),r0=React.useRef(void 0);At&&At!==$t.current&&isParameterObject(At)&&(warning$4(!dequal(At,$t.current),`File prop passed to <Document /> changed, but it's equal to previous one. This might result in unnecessary reloads. Consider memoizing the value passed to "file" prop.`),$t.current=At),Nt&&Nt!==r0.current&&(warning$4(!dequal(Nt,r0.current),`Options prop passed to <Document /> changed, but it's equal to previous one. This might result in unnecessary reloads. Consider memoizing the value passed to "options" prop.`),r0.current=Nt);const Xt=React.useRef({scrollPageIntoView:D0=>{const{dest:w0,pageNumber:H0,pageIndex:K0=H0-1}=D0;if(vt){vt({dest:w0,pageIndex:K0,pageNumber:H0});return}const p0=Qt.current[K0];if(p0){p0.scrollIntoView();return}warning$4(!1,`An internal link leading to page ${H0} was clicked, but neither <Document> was provided with onItemClick nor it was able to find the page within itself. Either provide onItemClick to <Document> and handle navigating by yourself or ensure that all pages are rendered within <Document>.`)}});React.useImperativeHandle(Ye,()=>({linkService:Gt,pages:Qt,viewer:Xt}),[]);function a0(){Dt&&Dt()}function h0(){Zt&&(warning$4(!1,Zt.toString()),Ot&&Ot(Zt))}function e0(){Kt({type:"RESET"})}React.useEffect(e0,[At,Kt]);const l0=React.useCallback(()=>__awaiter$6(this,void 0,void 0,function*(){if(!At)return null;if(typeof At=="string")return isDataURI(At)?{data:dataURItoByteString(At)}:(displayCORSWarning(),{url:At});if(At instanceof PDFDataRangeTransport)return{range:At};if(isArrayBuffer(At))return{data:At};if(isBrowser$2&&isBlob(At))return{data:yield loadFromFile(At)};if(invariant$1(typeof At=="object","Invalid parameter in file, need either Uint8Array, string or a parameter object"),invariant$1(isParameterObject(At),"Invalid parameter object: need either .data, .range or .url"),"url"in At&&typeof At.url=="string"){if(isDataURI(At.url)){const{url:D0}=At,w0=__rest$2(At,["url"]),H0=dataURItoByteString(D0);return Object.assign({data:H0},w0)}displayCORSWarning()}return At}),[At]);React.useEffect(()=>{const D0=makeCancellablePromise(l0());return D0.promise.then(w0=>{Kt({type:"RESOLVE",value:w0})}).catch(w0=>{Kt({type:"REJECT",error:w0})}),()=>{cancelRunningTask(D0)}},[l0,Kt]),React.useEffect(()=>{if(!(typeof qt>"u")){if(qt===!1){h0();return}a0()}},[qt]);function i0(){Vt&&(Bt&&Bt(Vt),Qt.current=new Array(Vt.numPages),Gt.current.setDocument(Vt))}function Jt(){zt&&(warning$4(!1,zt.toString()),It&&It(zt))}React.useEffect(function(){Ht({type:"RESET"})},[Ht,qt]),React.useEffect(function(){if(!qt)return;const w0=Nt?Object.assign(Object.assign({},qt),Nt):qt,H0=__webpack_exports__getDocument(w0);wt&&(H0.onProgress=wt),Rt&&(H0.onPassword=Rt);const K0=H0,p0=K0.promise.then(W0=>{Ht({type:"RESOLVE",value:W0})}).catch(W0=>{K0.destroyed||Ht({type:"REJECT",error:W0})});return()=>{p0.finally(()=>K0.destroy())}},[Nt,Ht,qt]),React.useEffect(()=>{if(!(typeof Vt>"u")){if(Vt===!1){Jt();return}i0()}},[Vt]),React.useEffect(function(){Gt.current.setViewer(Xt.current),Gt.current.setExternalLinkRel(ht),Gt.current.setExternalLinkTarget(gt)},[ht,gt]);const c0=React.useCallback((D0,w0)=>{Qt.current[D0]=w0},[]),f0=React.useCallback(D0=>{delete Qt.current[D0]},[]),E0=React.useMemo(()=>({imageResourcesPath:kt,linkService:Gt.current,onItemClick:vt,pdf:Vt,registerPage:c0,renderMode:_t,rotate:Mt,unregisterPage:f0}),[kt,vt,Vt,c0,_t,Mt,f0]),v0=React.useMemo(()=>makeEventProps(Ft,()=>Vt),[Ft,Vt]);function S0(){return jsxRuntimeExports.jsx(documentContext.Provider,{value:E0,children:tt})}function L0(){return At?Vt==null?jsxRuntimeExports.jsx(Message$5,{type:"loading",children:typeof Ct=="function"?Ct():Ct}):Vt===!1?jsxRuntimeExports.jsx(Message$5,{type:"error",children:typeof ft=="function"?ft():ft}):S0():jsxRuntimeExports.jsx(Message$5,{type:"no-data",children:typeof yt=="function"?yt():yt})}return jsxRuntimeExports.jsx("div",Object.assign({className:clsx$1("react-pdf__Document",nt),ref:xt,style:{"--scale-factor":"1"}},v0,{children:L0()}))});function useDocumentContext(){return React.useContext(documentContext)}function mergeRefs$2(){for(var Be=[],Le=0;Le<arguments.length;Le++)Be[Le]=arguments[Le];var Ye=Be.filter(Boolean);if(Ye.length<=1){var tt=Ye[0];return tt||null}return function(ft){Ye.forEach(function(ht){typeof ht=="function"?ht(ft):ht&&(ht.current=ft)})}}const pageContext=React.createContext(null),PDF_ROLE_TO_HTML_ROLE={Document:null,DocumentFragment:null,Part:"group",Sect:"group",Div:"group",Aside:"note",NonStruct:"none",P:null,H:"heading",Title:null,FENote:"note",Sub:"group",Lbl:null,Span:null,Em:null,Strong:null,Link:"link",Annot:"note",Form:"form",Ruby:null,RB:null,RT:null,RP:null,Warichu:null,WT:null,WP:null,L:"list",LI:"listitem",LBody:null,Table:"table",TR:"row",TH:"columnheader",TD:"cell",THead:"columnheader",TBody:null,TFoot:null,Caption:null,Figure:"figure",Formula:null,Artifact:null},HEADING_PATTERN=/^H(\d+)$/;function isPdfRole(Be){return Be in PDF_ROLE_TO_HTML_ROLE}function isStructTreeNode(Be){return"children"in Be}function isStructTreeNodeWithOnlyContentChild(Be){return isStructTreeNode(Be)?Be.children.length===1&&0 in Be.children&&"id"in Be.children[0]:!1}function getRoleAttributes(Be){const Le={};if(isStructTreeNode(Be)){const{role:Ye}=Be,tt=Ye.match(HEADING_PATTERN);if(tt)Le.role="heading",Le["aria-level"]=Number(tt[1]);else if(isPdfRole(Ye)){const nt=PDF_ROLE_TO_HTML_ROLE[Ye];nt&&(Le.role=nt)}}return Le}function getBaseAttributes(Be){const Le={};if(isStructTreeNode(Be)){if(Be.alt!==void 0&&(Le["aria-label"]=Be.alt),Be.lang!==void 0&&(Le.lang=Be.lang),isStructTreeNodeWithOnlyContentChild(Be)){const[Ye]=Be.children;if(Ye){const tt=getBaseAttributes(Ye);return Object.assign(Object.assign({},Le),tt)}}}else"id"in Be&&(Le["aria-owns"]=Be.id);return Le}function getAttributes(Be){return Be?Object.assign(Object.assign({},getRoleAttributes(Be)),getBaseAttributes(Be)):null}function StructTreeItem({className:Be,node:Le}){const Ye=React.useMemo(()=>getAttributes(Le),[Le]),tt=React.useMemo(()=>!isStructTreeNode(Le)||isStructTreeNodeWithOnlyContentChild(Le)?null:Le.children.map((nt,ft)=>jsxRuntimeExports.jsx(StructTreeItem,{node:nt},ft)),[Le]);return jsxRuntimeExports.jsx("span",Object.assign({className:Be},Ye,{children:tt}))}function usePageContext(){return React.useContext(pageContext)}function StructTree(){const Be=usePageContext();invariant$1(Be,"Unable to find Page context.");const{onGetStructTreeError:Le,onGetStructTreeSuccess:Ye}=Be,[tt,nt]=useResolver(),{value:ft,error:ht}=tt,{customTextRenderer:gt,page:At}=Be;function xt(){ft&&Ye&&Ye(ft)}function kt(){ht&&(warning$4(!1,ht.toString()),Le&&Le(ht))}return React.useEffect(function(){nt({type:"RESET"})},[nt,At]),React.useEffect(function(){if(gt||!At)return;const yt=makeCancellablePromise(At.getStructTree()),vt=yt;return yt.promise.then(It=>{nt({type:"RESOLVE",value:It})}).catch(It=>{nt({type:"REJECT",error:It})}),()=>cancelRunningTask(vt)},[gt,At,nt]),React.useEffect(()=>{if(ft!==void 0){if(ft===!1){kt();return}xt()}},[ft]),ft?jsxRuntimeExports.jsx(StructTreeItem,{className:"react-pdf__Page__structTree structTree",node:ft}):null}const ANNOTATION_MODE=__webpack_exports__AnnotationMode;function Canvas$1(Be){const Le=usePageContext();invariant$1(Le,"Unable to find Page context.");const Ye=Object.assign(Object.assign({},Le),Be),{_className:tt,canvasBackground:nt,devicePixelRatio:ft=getDevicePixelRatio(),onRenderError:ht,onRenderSuccess:gt,page:At,renderForms:xt,renderTextLayer:kt,rotate:Ct,scale:yt}=Ye,{canvasRef:vt}=Be;invariant$1(At,"Attempted to render page canvas, but no page was specified.");const It=React.useRef(null);function wt(){At&>&>(makePageCallback(At,yt))}function Bt(Nt){isCancelException(Nt)||(warning$4(!1,Nt.toString()),ht&&ht(Nt))}const Rt=React.useMemo(()=>At.getViewport({scale:yt*ft,rotation:Ct}),[ft,At,Ct,yt]),Ot=React.useMemo(()=>At.getViewport({scale:yt,rotation:Ct}),[At,Ct,yt]);React.useEffect(function(){if(!At)return;At.cleanup();const{current:_t}=It;if(!_t)return;_t.width=Rt.width,_t.height=Rt.height,_t.style.width=`${Math.floor(Ot.width)}px`,_t.style.height=`${Math.floor(Ot.height)}px`,_t.style.visibility="hidden";const Mt={annotationMode:xt?ANNOTATION_MODE.ENABLE_FORMS:ANNOTATION_MODE.ENABLE,canvasContext:_t.getContext("2d",{alpha:!1}),viewport:Rt};nt&&(Mt.background=nt);const Ft=At.render(Mt),jt=Ft;return Ft.promise.then(()=>{_t.style.visibility="",wt()}).catch(Bt),()=>cancelRunningTask(jt)},[nt,At,xt,Rt,Ot]);const Dt=React.useCallback(()=>{const{current:Nt}=It;Nt&&(Nt.width=0,Nt.height=0)},[]);return React.useEffect(()=>Dt,[Dt]),jsxRuntimeExports.jsx("canvas",{className:`${tt}__canvas`,dir:"ltr",ref:mergeRefs$2(vt,It),style:{display:"block",userSelect:"none"},children:kt?jsxRuntimeExports.jsx(StructTree,{}):null})}function isTextItem(Be){return"str"in Be}function TextLayer(){const Be=usePageContext();invariant$1(Be,"Unable to find Page context.");const{customTextRenderer:Le,onGetTextError:Ye,onGetTextSuccess:tt,onRenderTextLayerError:nt,onRenderTextLayerSuccess:ft,page:ht,pageIndex:gt,pageNumber:At,rotate:xt,scale:kt}=Be;invariant$1(ht,"Attempted to load page text content, but no page was specified.");const[Ct,yt]=useResolver(),{value:vt,error:It}=Ct,wt=React.useRef(null);warning$4(Number.parseInt(window.getComputedStyle(document.body).getPropertyValue("--react-pdf-text-layer"),10)===1,"TextLayer styles not found. Read more: https://github.com/wojtekmaj/react-pdf#support-for-text-layer");function Bt(){vt&&tt&&tt(vt)}function Rt(){It&&(warning$4(!1,It.toString()),Ye&&Ye(It))}React.useEffect(function(){yt({type:"RESET"})},[ht,yt]),React.useEffect(function(){if(!ht)return;const jt=makeCancellablePromise(ht.getTextContent()),Kt=jt;return jt.promise.then(qt=>{yt({type:"RESOLVE",value:qt})}).catch(qt=>{yt({type:"REJECT",error:qt})}),()=>cancelRunningTask(Kt)},[ht,yt]),React.useEffect(()=>{if(vt!==void 0){if(vt===!1){Rt();return}Bt()}},[vt]);const Ot=React.useCallback(()=>{ft&&ft()},[ft]),Dt=React.useCallback(Ft=>{warning$4(!1,Ft.toString()),nt&&nt(Ft)},[nt]);function Nt(){const Ft=wt.current;Ft&&Ft.classList.add("selecting")}function _t(){const Ft=wt.current;Ft&&Ft.classList.remove("selecting")}const Mt=React.useMemo(()=>ht.getViewport({scale:kt,rotation:xt}),[ht,xt,kt]);return React.useLayoutEffect(function(){if(!ht||!vt)return;const{current:jt}=wt;if(!jt)return;jt.innerHTML="";const Kt=ht.streamTextContent({includeMarkedContent:!0}),qt={container:jt,textContentSource:Kt,viewport:Mt},Zt=new __webpack_exports__TextLayer(qt),Yt=Zt;return Zt.render().then(()=>{const Ht=document.createElement("div");Ht.className="endOfContent",jt.append(Ht);const Vt=jt.querySelectorAll('[role="presentation"]');if(Le){let zt=0;vt.items.forEach((Gt,Qt)=>{if(!isTextItem(Gt))return;const $t=Vt[zt];if(!$t)return;const r0=Le(Object.assign({pageIndex:gt,pageNumber:At,itemIndex:Qt},Gt));$t.innerHTML=r0,zt+=Gt.str&&Gt.hasEOL?2:1})}Ot()}).catch(Dt),()=>cancelRunningTask(Yt)},[Le,Dt,Ot,ht,gt,At,vt,Mt]),jsxRuntimeExports.jsx("div",{className:clsx$1("react-pdf__Page__textContent","textLayer"),onMouseUp:_t,onMouseDown:Nt,ref:wt})}function AnnotationLayer(){const Be=useDocumentContext(),Le=usePageContext();invariant$1(Le,"Unable to find Page context.");const Ye=Object.assign(Object.assign({},Be),Le),{imageResourcesPath:tt,linkService:nt,onGetAnnotationsError:ft,onGetAnnotationsSuccess:ht,onRenderAnnotationLayerError:gt,onRenderAnnotationLayerSuccess:At,page:xt,pdf:kt,renderForms:Ct,rotate:yt,scale:vt=1}=Ye;invariant$1(kt,"Attempted to load page annotations, but no document was specified. Wrap <Page /> in a <Document /> or pass explicit `pdf` prop."),invariant$1(xt,"Attempted to load page annotations, but no page was specified."),invariant$1(nt,"Attempted to load page annotations, but no linkService was specified.");const[It,wt]=useResolver(),{value:Bt,error:Rt}=It,Ot=React.useRef(null);warning$4(Number.parseInt(window.getComputedStyle(document.body).getPropertyValue("--react-pdf-annotation-layer"),10)===1,"AnnotationLayer styles not found. Read more: https://github.com/wojtekmaj/react-pdf#support-for-annotations");function Dt(){Bt&&ht&&ht(Bt)}function Nt(){Rt&&(warning$4(!1,Rt.toString()),ft&&ft(Rt))}React.useEffect(function(){wt({type:"RESET"})},[wt,xt]),React.useEffect(function(){if(!xt)return;const Kt=makeCancellablePromise(xt.getAnnotations()),qt=Kt;return Kt.promise.then(Zt=>{wt({type:"RESOLVE",value:Zt})}).catch(Zt=>{wt({type:"REJECT",error:Zt})}),()=>{cancelRunningTask(qt)}},[wt,xt]),React.useEffect(()=>{if(Bt!==void 0){if(Bt===!1){Nt();return}Dt()}},[Bt]);function _t(){At&&At()}function Mt(jt){warning$4(!1,`${jt}`),gt&>(jt)}const Ft=React.useMemo(()=>xt.getViewport({scale:vt,rotation:yt}),[xt,yt,vt]);return React.useEffect(function(){if(!kt||!xt||!nt||!Bt)return;const{current:Kt}=Ot;if(!Kt)return;const qt=Ft.clone({dontFlip:!0}),Zt={accessibilityManager:null,annotationCanvasMap:null,annotationEditorUIManager:null,div:Kt,l10n:null,page:xt,structTreeLayer:null,viewport:qt},Yt={annotations:Bt,annotationStorage:kt.annotationStorage,div:Kt,imageResourcesPath:tt,linkService:nt,page:xt,renderForms:Ct,viewport:qt};Kt.innerHTML="";try{new __webpack_exports__AnnotationLayer(Zt).render(Yt),_t()}catch(Ht){Mt(Ht)}return()=>{}},[Bt,tt,nt,xt,kt,Ct,Ft]),jsxRuntimeExports.jsx("div",{className:clsx$1("react-pdf__Page__annotations","annotationLayer"),ref:Ot})}var __rest$1=function(Be,Le){var Ye={};for(var tt in Be)Object.prototype.hasOwnProperty.call(Be,tt)&&Le.indexOf(tt)<0&&(Ye[tt]=Be[tt]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,tt=Object.getOwnPropertySymbols(Be);nt<tt.length;nt++)Le.indexOf(tt[nt])<0&&Object.prototype.propertyIsEnumerable.call(Be,tt[nt])&&(Ye[tt[nt]]=Be[tt[nt]]);return Ye};const defaultScale=1;function Page$1(Be){const Le=useDocumentContext(),Ye=Object.assign(Object.assign({},Le),Be),{_className:tt="react-pdf__Page",_enableRegisterUnregisterPage:nt=!0,canvasBackground:ft,canvasRef:ht,children:gt,className:At,customRenderer:xt,customTextRenderer:kt,devicePixelRatio:Ct,error:yt="Failed to load the page.",height:vt,inputRef:It,loading:wt="Loading page…",noData:Bt="No page specified.",onGetAnnotationsError:Rt,onGetAnnotationsSuccess:Ot,onGetStructTreeError:Dt,onGetStructTreeSuccess:Nt,onGetTextError:_t,onGetTextSuccess:Mt,onLoadError:Ft,onLoadSuccess:jt,onRenderAnnotationLayerError:Kt,onRenderAnnotationLayerSuccess:qt,onRenderError:Zt,onRenderSuccess:Yt,onRenderTextLayerError:Ht,onRenderTextLayerSuccess:Vt,pageIndex:zt,pageNumber:Gt,pdf:Qt,registerPage:$t,renderAnnotationLayer:r0=!0,renderForms:Xt=!1,renderMode:a0="canvas",renderTextLayer:h0=!0,rotate:e0,scale:l0=defaultScale,unregisterPage:i0,width:Jt}=Ye,c0=__rest$1(Ye,["_className","_enableRegisterUnregisterPage","canvasBackground","canvasRef","children","className","customRenderer","customTextRenderer","devicePixelRatio","error","height","inputRef","loading","noData","onGetAnnotationsError","onGetAnnotationsSuccess","onGetStructTreeError","onGetStructTreeSuccess","onGetTextError","onGetTextSuccess","onLoadError","onLoadSuccess","onRenderAnnotationLayerError","onRenderAnnotationLayerSuccess","onRenderError","onRenderSuccess","onRenderTextLayerError","onRenderTextLayerSuccess","pageIndex","pageNumber","pdf","registerPage","renderAnnotationLayer","renderForms","renderMode","renderTextLayer","rotate","scale","unregisterPage","width"]),[f0,E0]=useResolver(),{value:v0,error:S0}=f0,L0=React.useRef(null);invariant$1(Qt,"Attempted to load a page, but no document was specified. Wrap <Page /> in a <Document /> or pass explicit `pdf` prop.");const D0=isProvided(Gt)?Gt-1:zt??null,w0=Gt??(isProvided(zt)?zt+1:null),H0=e0??(v0?v0.rotate:null),K0=React.useMemo(()=>{if(!v0)return null;let N0=1;const U0=l0??defaultScale;if(Jt||vt){const Y0=v0.getViewport({scale:1,rotation:H0});Jt?N0=Jt/Y0.width:vt&&(N0=vt/Y0.height)}return U0*N0},[vt,v0,H0,l0,Jt]);React.useEffect(function(){return()=>{isProvided(D0)&&nt&&i0&&i0(D0)}},[nt,Qt,D0,i0]);function p0(){if(jt){if(!v0||!K0)return;jt(makePageCallback(v0,K0))}if(nt&&$t){if(!isProvided(D0)||!L0.current)return;$t(D0,L0.current)}}function W0(){S0&&(warning$4(!1,S0.toString()),Ft&&Ft(S0))}React.useEffect(function(){E0({type:"RESET"})},[E0,Qt,D0]),React.useEffect(function(){if(!Qt||!w0)return;const U0=makeCancellablePromise(Qt.getPage(w0)),Y0=U0;return U0.promise.then(An=>{E0({type:"RESOLVE",value:An})}).catch(An=>{E0({type:"REJECT",error:An})}),()=>cancelRunningTask(Y0)},[E0,Qt,w0]),React.useEffect(()=>{if(v0!==void 0){if(v0===!1){W0();return}p0()}},[v0,K0]);const n0=React.useMemo(()=>v0&&isProvided(D0)&&w0&&isProvided(H0)&&isProvided(K0)?{_className:tt,canvasBackground:ft,customTextRenderer:kt,devicePixelRatio:Ct,onGetAnnotationsError:Rt,onGetAnnotationsSuccess:Ot,onGetStructTreeError:Dt,onGetStructTreeSuccess:Nt,onGetTextError:_t,onGetTextSuccess:Mt,onRenderAnnotationLayerError:Kt,onRenderAnnotationLayerSuccess:qt,onRenderError:Zt,onRenderSuccess:Yt,onRenderTextLayerError:Ht,onRenderTextLayerSuccess:Vt,page:v0,pageIndex:D0,pageNumber:w0,renderForms:Xt,renderTextLayer:h0,rotate:H0,scale:K0}:null,[tt,ft,kt,Ct,Rt,Ot,Dt,Nt,_t,Mt,Kt,qt,Zt,Yt,Ht,Vt,v0,D0,w0,Xt,h0,H0,K0]),sn=React.useMemo(()=>makeEventProps(c0,()=>v0&&(K0?makePageCallback(v0,K0):void 0)),[c0,v0,K0]),C0=`${D0}@${K0}/${H0}`;function P0(){switch(a0){case"custom":return invariant$1(xt,'renderMode was set to "custom", but no customRenderer was passed.'),jsxRuntimeExports.jsx(xt,{},`${C0}_custom`);case"none":return null;case"canvas":default:return jsxRuntimeExports.jsx(Canvas$1,{canvasRef:ht},`${C0}_canvas`)}}function j0(){return h0?jsxRuntimeExports.jsx(TextLayer,{},`${C0}_text`):null}function $0(){return r0?jsxRuntimeExports.jsx(AnnotationLayer,{},`${C0}_annotations`):null}function _0(){return jsxRuntimeExports.jsxs(pageContext.Provider,{value:n0,children:[P0(),j0(),$0(),gt]})}function y0(){return w0?Qt===null||v0===void 0||v0===null?jsxRuntimeExports.jsx(Message$5,{type:"loading",children:typeof wt=="function"?wt():wt}):Qt===!1||v0===!1?jsxRuntimeExports.jsx(Message$5,{type:"error",children:typeof yt=="function"?yt():yt}):_0():jsxRuntimeExports.jsx(Message$5,{type:"no-data",children:typeof Bt=="function"?Bt():Bt})}return jsxRuntimeExports.jsx("div",Object.assign({className:clsx$1(tt,At),"data-page-number":w0,ref:mergeRefs$2(It,L0),style:{"--scale-factor":`${K0}`,backgroundColor:ft||"white",position:"relative",minWidth:"min-content",minHeight:"min-content"}},sn,{children:y0()}))}displayWorkerWarning(),__webpack_exports__GlobalWorkerOptions.workerSrc="pdf.worker.mjs";let options={darkMode:!1,hostingApp:"Web SDK",unsafeMode:!1,redirectFromUnsupportedBrowsers:!1,recorderProvider:"openVidu",useSha256:!1,maxContentWidth:800,maxContentHeight:840};const setOptions=Be=>(options={...options,...Be},options),tutorialBaseDefault="https://sdk.incode.com/sdk/tutorials",wasmBaseDefault="https://cdn.incodesmile.com/ml-wasm-kit-release",pdfWorkerDefaultBase="//cdnjs.cloudflare.com/ajax/libs/pdf.js",ffmpegBaseDefault="https://cdn.incodesmile.com/ffmpeg-release/",lottieScriptDefault="https://cdn.jsdelivr.net/npm/lottie-web@5.13.0/build/player/lottie_light.min.js",trimTrailingSlash=Be=>Be.endsWith("/")?Be.slice(0,-1):Be,ensureRequiredWhenOffline=(Be,Le)=>{if(options.offline&&!Be)throw new Error(`Missing required offline resource config: ${Le}`);return Be},isOfflineMode=()=>!!options.offline,getWasmBaseUrl=()=>{const Be=ensureRequiredWhenOffline(options.wasmBaseUrl,"wasmBaseUrl");return trimTrailingSlash(Be||wasmBaseDefault)},getPdfWorkerUrl=Be=>ensureRequiredWhenOffline(options.pdfWorkerUrl,"pdfWorkerUrl")||`${pdfWorkerDefaultBase}/${Be}/pdf.worker.min.mjs`,getTutorialsBaseUrl=()=>{const Be=ensureRequiredWhenOffline(options.tutorialsBaseUrl,"tutorialsBaseUrl");return trimTrailingSlash(Be||tutorialBaseDefault)},getTutorialUrl=Be=>`${getTutorialsBaseUrl()}/${Be.replace(/^\//,"")}`,getFfmpegBaseUrl=()=>{const Le=ensureRequiredWhenOffline(options.ffmpegBaseUrl,"ffmpegBaseUrl")||ffmpegBaseDefault;return Le.endsWith("/")?Le:`${Le}/`},getLottieScriptUrl=()=>ensureRequiredWhenOffline(options.lottieScriptUrl,"lottieScriptUrl")||lottieScriptDefault,setPdfWorkerUrl=()=>{__webpack_exports__GlobalWorkerOptions.workerSrc=getPdfWorkerUrl(__webpack_exports__version)},getTranslationsUrl=()=>ensureRequiredWhenOffline(options.translationsUrl,"translationsUrl"),FEATURE_FLAGS=["id_text_barcode_readability","selfie_local_lenses_check_web","id_model_hebrew_back_id","id_face_readability","new_id_capture_ux_least_risky_clients","id_test_aa","id_iou_check","iad_checks","iad_c_checks","new_fingerprint","mp_test_hashed_id","darwinium_profiling","id_quality_backend_validation","id_blur_threshold_03","enable_fps_limit","id_v2_reduced_aggregation_interval"],GLOBAL_FLAGS=["new_fingerprint"],ID_MODULE_FLAGS=["id_face_readability","id_test_aa","iad_c_checks","mp_test_hashed_id","id_model_hebrew_back_id","id_iou_check","iad_checks","new_id_capture_ux_least_risky_clients","id_text_barcode_readability","id_quality_backend_validation","id_blur_threshold_03","enable_fps_limit","id_v2_reduced_aggregation_interval"],SELFIE_MODULE_FLAGS=["selfie_local_lenses_check_web"];function getStatsigEnvironment(Be){return isStageK8sEnv(Be)?{tier:"development"}:isStageEnv(Be)||isDemoEnv(Be)?{tier:"staging"}:isSaasEnv(Be)?{tier:"production"}:{tier:"development"}}const clientApiKey="client-GBTzsiJ99rvyZQdNXDFkftx3ZoMF1TED2rsB3m3IUqc",featureFlagsValues={id_text_barcode_readability:!1,selfie_local_lenses_check_web:!1,id_model_hebrew_back_id:!1,id_face_readability:!1,new_id_capture_ux_least_risky_clients:!1,id_test_aa:!1,iad_checks:!1,iad_c_checks:!1,id_iou_check:!0,new_fingerprint:!1,mp_test_hashed_id:!1,darwinium_profiling:!1,id_quality_backend_validation:!1,id_blur_threshold_03:!1,enable_fps_limit:!1,id_v2_reduced_aggregation_interval:!1},clientExperimentIds={new_id_capture_ux_least_risky_clients:"experimentV2"};let initPromise=null;const initialize=async({flowId:Be,apiKey:Le,sessionIdentifier:Ye,apiURL:tt,clientExperimentId:nt})=>{if(!isOfflineMode()){if(initPromise)return initPromise;initPromise=(async()=>{var gt;const ft={customIDs:{client_api_key:Le,hashed_onboarding_id:Ye,flow_id:Be},custom:{landing_page:(gt=window==null?void 0:window.location)==null?void 0:gt.href}},ht=new src$2.StatsigClient(clientApiKey,ft,{environment:getStatsigEnvironment(tt)});await ht.initializeAsync(),FEATURE_FLAGS.forEach(At=>{if(nt&&clientExperimentIds[At]===nt){featureFlagsValues[At]=!0;return}featureFlagsValues[At]=ht.checkGate(At)})})(),await initPromise}},getFeatureFlag=Be=>featureFlagsValues[Be]??!1,getModuleFeatureFlags=async Be=>{const Le={};GLOBAL_FLAGS.forEach(tt=>{Le[tt]=featureFlagsValues[tt]});const Ye=Be.toLowerCase();return Ye.includes("id")||Ye==="government-validation"?ID_MODULE_FLAGS.forEach(tt=>{Le[tt]=featureFlagsValues[tt]}):(Ye.includes("selfie")||Ye==="face")&&SELFIE_MODULE_FLAGS.forEach(tt=>{Le[tt]=featureFlagsValues[tt]}),Le};function getFramesAggregationInterval(Be){return Be?getFeatureFlag("id_v2_reduced_aggregation_interval")?1500:3e3:2e3}function IdCaptureParamsConfigurator(Be,Le,Ye,tt){Object.assign(Be,{areaDown:25e3,areaUp:55e3,areaIOSPassportUp:3e4,areaIOSPassportDown:2e4,widthIOSUp:160,widthIOSDown:85,widthDown:tt?110:135,widthUp:205,framesAggregationInterval:getFramesAggregationInterval(tt)})}function getSelfieFaceDetectionPipelineParams(){return{frameMinX:0,frameMinY:0,frameMaxX:1,frameMaxY:1,brightnessThreshold:50,blurrinessThreshold:50,tiltRotationAngleThreshold:15,minMagicCropSize:200,headwearThreshold:.86,lensesThreshold:.95,closedEyesThreshold:.9,maskThreshold:.85,minFaceQualityScore:.63,isOcclusionCheckEnabled:!1,faceOcclusionThreshold:.3}}const getWasmWorkflowProfiles=()=>[new WasmWorkflowProfile(WasmWorkflow.IdBlurGlareWorkflow,WasmWorkflowProfileName.IdCapture_2_01,DetectionType.IDCapture,["id_capture_2_01_fp16.ortmodelv2"],{glareThreshold:.3,classificationThreshold:.98,sideThreshold:.8,iouThreshold:.8,sharpnessThreshold:getFeatureFlag("id_blur_threshold_03")?.3:.2,sharpnessChangeThreshold:.2,modelType:IdCaptureModelType.IdCaptureV2x,isIouCheckEnabled:getFeatureFlag("id_iou_check"),isFPSLimitEnabled:getFeatureFlag("enable_fps_limit")},IdCaptureParamsConfigurator,"Current Prod - Id Capture Profile with model https://www.notion.so/ID-cropping-web-2-01-d011d878c6f4406394609cbfbf03c259?pvs=4"),new WasmWorkflowProfile(WasmWorkflow.IdBlurGlareWorkflow,WasmWorkflowProfileName.IdCapture_2_02,DetectionType.IDCapture,["id_capture_2_02_fp16.ortmodelv2"],{glareThreshold:.3,classificationThreshold:.98,sideThreshold:.8,iouThreshold:.8,sharpnessThreshold:getFeatureFlag("id_blur_threshold_03")?.3:.2,sharpnessChangeThreshold:.2,modelType:IdCaptureModelType.IdCaptureV2x,isIouCheckEnabled:getFeatureFlag("id_iou_check"),isFPSLimitEnabled:getFeatureFlag("enable_fps_limit")},IdCaptureParamsConfigurator,"https://www.notion.so/ML-Update-ID-processing-model-to-accept-more-back-ID-types-18c4c3caef49801e95b4fd6bf9b92883?pvs=4"),new WasmWorkflowProfile(WasmWorkflow.IdBarcodeAndTextQualityWorkflow,WasmWorkflowProfileName.IdCapture_3_02,DetectionType.IDCapture,["id_capture_3_02_fp16.ortmodelv2"],{glareThreshold:.3,classificationThreshold:.98,sideThreshold:.8,iouThreshold:.8,sharpnessThreshold:getFeatureFlag("id_blur_threshold_03")?.3:.2,sharpnessChangeThreshold:.2,modelType:IdCaptureModelType.IdCaptureV3x,isIouCheckEnabled:getFeatureFlag("id_iou_check"),isFPSLimitEnabled:!1},IdCaptureParamsConfigurator,"Pipeline with text and barcode quality: https://www.notion.so/Web-Use-Text-Barcode-model-2nd-iteration-1bc4c3caef49805aa9e6d308db9fc6dd?pvs=4"),new WasmWorkflowProfile(WasmWorkflow.IdFaceQualityWorkflow,WasmWorkflowProfileName.IdCapture_2_01_FaceQuality,DetectionType.IDCapture,["id_capture_2_01_fp16.ortmodelv2","id_fiqa_19a81a0b9bf6492eb03b4667f6db4c85_fp16.ortmodelv2","id_facedetector_v2_0_fp16.ortmodelv2"],{glareThreshold:.3,classificationThreshold:.98,sideThreshold:.8,iouThreshold:.8,sharpnessThreshold:getFeatureFlag("id_blur_threshold_03")?.3:.2,sharpnessChangeThreshold:.2,modelType:IdCaptureModelType.IdCaptureV2x,isIouCheckEnabled:getFeatureFlag("id_iou_check"),isFPSLimitEnabled:getFeatureFlag("enable_fps_limit")},IdCaptureParamsConfigurator,"Id Capture with face quality check - IdFaceQualityPipeline with id_capture_2_01 + id_fiqa + id_facedetector models"),new WasmWorkflowProfile(WasmWorkflow.IdVideoSelfieWorkflow,WasmWorkflowProfileName.IdVideoSelfie_2_01,DetectionType.IdVideoSelfie,["id_capture_2_01_fp16.ortmodelv2"],{glareThreshold:.3,classificationThreshold:.98,sideThreshold:.8,iouThreshold:.8,sharpnessThreshold:getFeatureFlag("id_blur_threshold_03")?.3:.2,sharpnessChangeThreshold:.2,modelType:IdCaptureModelType.IdCaptureV2x,isIouCheckEnabled:!0,isFPSLimitEnabled:!1},IdCaptureParamsConfigurator,"Current Prod - Id Videoselfie profile with model https://www.notion.so/ID-cropping-web-2-01-d011d878c6f4406394609cbfbf03c259?pvs=4"),new WasmWorkflowProfile(WasmWorkflow.SelfieWithAggregationMetrics,WasmWorkflowProfileName.SelfieWithAggregationMetrics,DetectionType.Selfie,["selfie_bf_angles_192x192_opset9_fp16.ortmodelv2","face_attributes_v1_3_fp16.ortmodelv2","mls_regressor_4773007c657b4f05a460321456740d0f_fp16.ortmodelv2","face_occlusion_v0_2_fp16.ortmodelv2"],getSelfieFaceDetectionPipelineParams(),null,"Selfie face detection profile with aggregation metrics"),new WasmWorkflowProfile(WasmWorkflow.SelfieWithQualityMetrics,WasmWorkflowProfileName.SelfieWithQualityMetrics,DetectionType.Selfie,["selfie_bf_angles_192x192_opset9_fp16.ortmodelv2","face_attributes_v1_3_fp16.ortmodelv2","mls_regressor_4773007c657b4f05a460321456740d0f_fp16.ortmodelv2","face_occlusion_v0_2_fp16.ortmodelv2"],getSelfieFaceDetectionPipelineParams(),null,"Current Prod - Selfie face detection profile with quality metrics"),new WasmWorkflowProfile(WasmWorkflow.SelfieWithAggregationMetrics,WasmWorkflowProfileName.SelfieVideoSelfie,DetectionType.SelfieVideoSelfie,["selfie_bf_angles_192x192_opset9_fp16.ortmodelv2","face_attributes_v1_3_fp16.ortmodelv2","mls_regressor_4773007c657b4f05a460321456740d0f_fp16.ortmodelv2","face_occlusion_v0_2_fp16.ortmodelv2"],getSelfieFaceDetectionPipelineParams(),null,"VideoSelfie face detection profile"),new WasmWorkflowProfile(WasmWorkflow.OnDeviceSelfieWorkflow,WasmWorkflowProfileName.OnDeviceSelfieWorkflow,DetectionType.OnDeviceSelfie,["selfie_bf_angles_192x192_opset9_fp16.ortmodelv2","face_attributes_v1_3_fp16.ortmodelv2","mls_regressor_4773007c657b4f05a460321456740d0f_fp16.ortmodelv2","face_occlusion_v0_2_fp16.ortmodelv2","ondevice_physical_liveness_v1_2_fp16.ortmodelv2","age_estimation_v2_2_2_fp16.ortmodelv2"],getSelfieFaceDetectionPipelineParams(),null,"On-device selfie workflow with liveness and age estimation")];function getWasmWorkflowProfile(Be){const Le=getWasmWorkflowProfiles().find(Ye=>Ye.name===Be);if(!Le)throw new Error(`WasmWorkflowProfile not found for type: ${Be}`);return Le}const wasmVersion="v2.13.07-post1";function generateBundle(Be=!1){const Le=getFeatureFlag("id_face_readability"),Ye=getFeatureFlag("id_text_barcode_readability")?WasmWorkflowProfileName.IdCapture_3_02:Le?WasmWorkflowProfileName.IdCapture_2_01_FaceQuality:getFeatureFlag("id_model_hebrew_back_id")?WasmWorkflowProfileName.IdCapture_2_02:WasmWorkflowProfileName.IdCapture_2_01,tt=Be?WasmWorkflowProfileName.OnDeviceSelfieWorkflow:WasmWorkflowProfileName.SelfieWithQualityMetrics,nt=WasmWorkflowProfileName.SelfieVideoSelfie,ft=WasmWorkflowProfileName.IdVideoSelfie_2_01;return[Ye,ft,tt,nt]}function getInitializationParams(Be=!1){const Ye=generateBundle(Be),tt=getWasmBaseUrl(),nt=`${tt}/${wasmVersion}/webLib.wasm`,ft=`${tt}/${wasmVersion}/webLibSimd.wasm`,ht=`${tt}/${wasmVersion}/webLib.js`,gt=`${tt}/${wasmVersion}/versions.json`;let At=new Map,xt=new Map;for(const kt of Ye){const Ct=getWasmWorkflowProfile(kt);if(!Ct)throw new Error(`WasmWorkflowProfile not found: ${kt}`);const yt=Ct.modelNames;let vt=[];for(const It of yt)vt.push(`${tt}/${wasmVersion}/models/${It}`);At.set(Ct.wasmWorkflowType,vt),xt.set(Ct.detectionType,Ct)}return{wasmModulePath:nt,wasmSimdModulePath:ft,glueCodePath:ht,versionsFilePath:gt,workflowModels:At,enableSIMD:!0,profiles:xt,wasmVersion}}const version$4="1.89.1";function e$2(Be,Le){return function(Ye,tt){return Object.prototype.hasOwnProperty.call(Ye,tt)}(Be,Le)?Be[Le]:void 0}function t$2(Be,Le,Ye,tt){const nt=document,ft="securitypolicyviolation";let ht;const gt=xt=>{const kt=new URL(Be,location.href),{blockedURI:Ct}=xt;Ct!==kt.href&&Ct!==kt.protocol.slice(0,-1)&&Ct!==kt.origin||(ht=xt,At())};nt.addEventListener(ft,gt);const At=()=>nt.removeEventListener(ft,gt);return Promise.resolve().then(Le).then(xt=>(At(),xt),xt=>new Promise(kt=>{const Ct=new MessageChannel;Ct.port1.onmessage=()=>kt(),Ct.port2.postMessage(null)}).then(()=>{if(At(),ht)return Ye(ht);throw xt}))}function n$2(Be){let Le="";for(let Ye=0;Ye<Be.length;++Ye)if(Ye>0){const tt=Be[Ye].toLowerCase();tt!==Be[Ye]?Le+=` ${tt}`:Le+=Be[Ye]}else Le+=Be[Ye].toUpperCase();return Le}const r$3={default:"endpoint"},o$1={default:"tlsEndpoint"},i$6="Client timeout",R$2="Network connection error",s$3="Network request aborted",a$3="Response cannot be parsed",c$3="Blocked by CSP",E$1="The endpoint parameter is not a valid URL",l$1="Handle on demand agent data error",u$1=n$2("WrongRegion"),d$1=n$2("SubscriptionNotActive"),_$3=n$2("UnsupportedVersion"),O$1=n$2("InstallationMethodRestricted"),p$1=n$2("HostnameRestricted"),I$1=n$2("IntegrationFailed"),f$2=n$2("NetworkRestricted"),N$1=n$2("InvalidProxyIntegrationSecret"),T$1=n$2("InvalidProxyIntegrationHeaders"),h$f=n$2("ProxyIntegrationSecretEnvironmentMismatch"),v$e="API key required",m$2="API key not found",A$1="API key expired",w$f="Request cannot be parsed",P$1="Request failed",D$1="Request failed to process",S$1="Too many requests, rate limit exceeded",y="Not available for this origin",g$1="Not available with restricted header",L$1=v$e,C$1=m$2,U$1=A$1;var b$2="3.12.3";const M$1="Failed to load the JS script of the agent",K="9319";function V(Be,Le){const Ye=[],[tt,nt]=function(gt){const At=function(Ct){const yt=[...Ct];return{current:()=>yt[0],postpone(){const vt=yt.shift();vt!==void 0&&yt.push(vt)},exclude(){yt.shift()}}}(gt),xt=function(Ct,yt){let vt=0;return()=>Math.random()*Math.min(yt,Ct*Math.pow(2,vt++))}(100,3e3),kt=new Set;return[At.current(),(Ct,yt)=>{let vt;const It=yt instanceof Error?yt.message:"";if(It===c$3||It===E$1)At.exclude(),vt=0;else if(It===K)At.exclude();else if(It===M$1){const Bt=Date.now()-Ct.getTime()<50,Rt=At.current();Rt&&Bt&&!kt.has(Rt)&&(kt.add(Rt),vt=0),At.postpone()}else At.postpone();const wt=At.current();return wt===void 0?void 0:[wt,vt??Ct.getTime()+xt()-Date.now()]}]}(Be);let ft;if(tt===void 0)return Promise.reject(new TypeError("The list of script URL patterns is empty"));const ht=gt=>{const At=new Date,xt=Ct=>Ye.push({url:gt,startedAt:At,finishedAt:new Date,error:Ct}),kt=Le(gt);return kt.then(()=>xt(),xt),kt.catch(Ct=>{if(ft!=null||(ft=Ct),Ye.length>=5)throw ft;const yt=nt(At,Ct);if(!yt)throw ft;const[vt,It]=yt;return(wt=It,new Promise(Bt=>setTimeout(Bt,wt))).then(()=>ht(vt));var wt})};return ht(tt).then(gt=>[gt,Ye])}const k$1="https://fpnpmcdn.net/v<version>/<apiKey>/loader_v<loaderVersion>.js",G=k$1;function B$1(Be){var Le,Ye;const{picked:tt,rest:nt}=function(kt,Ct){const yt={},vt={};for(const[It,wt]of Object.entries(kt))Ct.includes(It)?yt[It]=wt:vt[It]=wt;return{picked:yt,rest:vt}}(Be,["scriptUrlPattern","token","apiKey"]),ft=tt.token,ht=(Le=tt.apiKey)!==null&&Le!==void 0?Le:ft,gt=(Ye=e$2(Be,"scriptUrlPattern"))!==null&&Ye!==void 0?Ye:k$1,[At,xt]=function(){const kt=[],Ct=()=>{kt.push({time:new Date,state:document.visibilityState})},yt=function(vt,It,wt,Bt){return vt.addEventListener(It,wt,Bt),()=>vt.removeEventListener(It,wt,Bt)}(document,"visibilitychange",Ct);return Ct(),[kt,yt]}();return Promise.resolve().then(()=>{if(!ht||typeof ht!="string")throw new Error(v$e);const kt=function(Ct,yt){return(Array.isArray(Ct)?Ct:[Ct]).map(vt=>function(It,wt){const Bt=encodeURIComponent;return It.replace(/<[^<>]+>/g,Rt=>Rt==="<version>"?"3":Rt==="<apiKey>"?Bt(wt):Rt==="<loaderVersion>"?Bt(b$2):Rt)}(String(vt),yt))}(gt,ht);return V(kt,F$1)}).catch(kt=>{throw xt(),function(Ct){return Ct instanceof Error&&Ct.message===K?new Error(M$1):Ct}(kt)}).then(([kt,Ct])=>(xt(),kt.load({...nt,ldi:{attempts:Ct,visibilityStates:At}})))}function F$1(Be){return t$2(Be,()=>function(Le){return new Promise((Ye,tt)=>{if(function(gt){if(URL.prototype)try{return new URL(gt,location.href),!1}catch(At){if(At instanceof Error&&At.name==="TypeError")return!0;throw At}}(Le))throw new Error(E$1);const nt=document.createElement("script"),ft=()=>{var gt;return(gt=nt.parentNode)===null||gt===void 0?void 0:gt.removeChild(nt)},ht=document.head||document.getElementsByTagName("head")[0];nt.onload=()=>{ft(),Ye()},nt.onerror=()=>{ft(),tt(new Error(M$1))},nt.async=!0,nt.src=Le,ht.appendChild(nt)})}(Be),()=>{throw new Error(c$3)}).then(x$1)}function x$1(){const Be=window,Le="__fpjs_p_l_b",Ye=Be[Le];if(function(tt,nt){var ft;const ht=(ft=Object.getOwnPropertyDescriptor)===null||ft===void 0?void 0:ft.call(Object,tt,nt);ht!=null&&ht.configurable?delete tt[nt]:ht&&!ht.writable||(tt[nt]=void 0)}(Be,Le),typeof(Ye==null?void 0:Ye.load)!="function")throw new Error(K);return Ye}var H={load:B$1,defaultScriptUrlPattern:G,ERROR_SCRIPT_LOAD_FAIL:M$1,ERROR_API_KEY_EXPIRED:A$1,ERROR_API_KEY_INVALID:m$2,ERROR_API_KEY_MISSING:v$e,ERROR_BAD_REQUEST_FORMAT:w$f,ERROR_BAD_RESPONSE_FORMAT:a$3,ERROR_CLIENT_TIMEOUT:i$6,ERROR_CSP_BLOCK:c$3,ERROR_FORBIDDEN_ENDPOINT:p$1,ERROR_FORBIDDEN_HEADER:g$1,ERROR_FORBIDDEN_ORIGIN:y,ERROR_GENERAL_SERVER_FAILURE:P$1,ERROR_HANDLE_AGENT_DATA:l$1,ERROR_INSTALLATION_METHOD_RESTRICTED:O$1,ERROR_INTEGRATION_FAILURE:I$1,ERROR_INVALID_ENDPOINT:E$1,ERROR_INVALID_PROXY_INTEGRATION_HEADERS:T$1,ERROR_INVALID_PROXY_INTEGRATION_SECRET:N$1,ERROR_NETWORK_ABORT:s$3,ERROR_NETWORK_CONNECTION:R$2,ERROR_NETWORK_RESTRICTED:f$2,ERROR_PROXY_INTEGRATION_SECRET_ENVIRONMENT_MISMATCH:h$f,ERROR_RATE_LIMIT:S$1,ERROR_SERVER_TIMEOUT:D$1,ERROR_SUBSCRIPTION_NOT_ACTIVE:d$1,ERROR_TOKEN_EXPIRED:U$1,ERROR_TOKEN_INVALID:C$1,ERROR_TOKEN_MISSING:L$1,ERROR_UNSUPPORTED_VERSION:_$3,ERROR_WRONG_REGION:u$1,defaultEndpoint:r$3,defaultTlsEndpoint:o$1};function e$1(Be,Le,Ye,tt){return new(Ye||(Ye=Promise))(function(nt,ft){function ht(xt){try{At(tt.next(xt))}catch(kt){ft(kt)}}function gt(xt){try{At(tt.throw(xt))}catch(kt){ft(kt)}}function At(xt){var kt;xt.done?nt(xt.value):(kt=xt.value,kt instanceof Ye?kt:new Ye(function(Ct){Ct(kt)})).then(ht,gt)}At((tt=tt.apply(Be,[])).next())})}function n$1(Be,Le){var Ye,tt,nt,ft,ht={label:0,sent:function(){if(1&nt[0])throw nt[1];return nt[1]},trys:[],ops:[]};return ft={next:gt(0),throw:gt(1),return:gt(2)},typeof Symbol=="function"&&(ft[Symbol.iterator]=function(){return this}),ft;function gt(At){return function(xt){return function(kt){if(Ye)throw new TypeError("Generator is already executing.");for(;ft&&(ft=0,kt[0]&&(ht=0)),ht;)try{if(Ye=1,tt&&(nt=2&kt[0]?tt.return:kt[0]?tt.throw||((nt=tt.return)&&nt.call(tt),0):tt.next)&&!(nt=nt.call(tt,kt[1])).done)return nt;switch(tt=0,nt&&(kt=[2&kt[0],nt.value]),kt[0]){case 0:case 1:nt=kt;break;case 4:return ht.label++,{value:kt[1],done:!1};case 5:ht.label++,tt=kt[1],kt=[0];continue;case 7:kt=ht.ops.pop(),ht.trys.pop();continue;default:if(nt=ht.trys,!((nt=nt.length>0&&nt[nt.length-1])||kt[0]!==6&&kt[0]!==2)){ht=0;continue}if(kt[0]===3&&(!nt||kt[1]>nt[0]&&kt[1]<nt[3])){ht.label=kt[1];break}if(kt[0]===6&&ht.label<nt[1]){ht.label=nt[1],nt=kt;break}if(nt&&ht.label<nt[2]){ht.label=nt[2],ht.ops.push(kt);break}nt[2]&&ht.ops.pop(),ht.trys.pop();continue}kt=Le.call(Be,ht)}catch(Ct){kt=[6,Ct],tt=0}finally{Ye=nt=0}if(5&kt[0])throw kt[1];return{value:kt[0]?kt[1]:void 0,done:!0}}([At,xt])}}}typeof SuppressedError=="function"&&SuppressedError;var r$2={exclude:[],include:[],logging:!0,timeout:1e3},o={},a$2={timeout:"true"},i$5=function(Be,Le){typeof window<"u"&&(o[Be]=Le)},u=function(){return Object.fromEntries(Object.entries(o).filter(function(Be){var Le,Ye=Be[0];return!(!((Le=r$2==null?void 0:r$2.exclude)===null||Le===void 0)&&Le.includes(Ye))}).filter(function(Be){var Le,Ye,tt,nt,ft=Be[0];return!((Le=r$2==null?void 0:r$2.include)===null||Le===void 0)&&Le.some(function(ht){return ht.includes(".")})?(Ye=r$2==null?void 0:r$2.include)===null||Ye===void 0?void 0:Ye.some(function(ht){return ht.startsWith(ft)}):((tt=r$2==null?void 0:r$2.include)===null||tt===void 0?void 0:tt.length)===0||((nt=r$2==null?void 0:r$2.include)===null||nt===void 0?void 0:nt.includes(ft))}).map(function(Be){return[Be[0],(0,Be[1])()]}))};function c$2(Be){return Be^=Be>>>16,Be=Math.imul(Be,2246822507),Be^=Be>>>13,Be=Math.imul(Be,3266489909),(Be^=Be>>>16)>>>0}var s$2=new Uint32Array([597399067,2869860233,951274213,2716044179]);function l(Be,Le){return Be<<Le|Be>>>32-Le}function d(Be,Le){var Ye;if(Le===void 0&&(Le=0),Le=Le?0|Le:0,typeof Be=="string"&&(Ye=Be,Be=new TextEncoder().encode(Ye).buffer),!(Be instanceof ArrayBuffer))throw new TypeError("Expected key to be ArrayBuffer or string");var tt=new Uint32Array([Le,Le,Le,Le]);(function(ft,ht){for(var gt=ft.byteLength/16|0,At=new Uint32Array(ft,0,4*gt),xt=0;xt<gt;xt++){var kt=At.subarray(4*xt,4*(xt+1));kt[0]=Math.imul(kt[0],s$2[0]),kt[0]=l(kt[0],15),kt[0]=Math.imul(kt[0],s$2[1]),ht[0]=ht[0]^kt[0],ht[0]=l(ht[0],19),ht[0]=ht[0]+ht[1],ht[0]=Math.imul(ht[0],5)+1444728091,kt[1]=Math.imul(kt[1],s$2[1]),kt[1]=l(kt[1],16),kt[1]=Math.imul(kt[1],s$2[2]),ht[1]=ht[1]^kt[1],ht[1]=l(ht[1],17),ht[1]=ht[1]+ht[2],ht[1]=Math.imul(ht[1],5)+197830471,kt[2]=Math.imul(kt[2],s$2[2]),kt[2]=l(kt[2],17),kt[2]=Math.imul(kt[2],s$2[3]),ht[2]=ht[2]^kt[2],ht[2]=l(ht[2],15),ht[2]=ht[2]+ht[3],ht[2]=Math.imul(ht[2],5)+2530024501,kt[3]=Math.imul(kt[3],s$2[3]),kt[3]=l(kt[3],18),kt[3]=Math.imul(kt[3],s$2[0]),ht[3]=ht[3]^kt[3],ht[3]=l(ht[3],13),ht[3]=ht[3]+ht[0],ht[3]=Math.imul(ht[3],5)+850148119}})(Be,tt),function(ft,ht){var gt=ft.byteLength/16|0,At=ft.byteLength%16,xt=new Uint32Array(4),kt=new Uint8Array(ft,16*gt,At);switch(At){case 15:xt[3]=xt[3]^kt[14]<<16;case 14:xt[3]=xt[3]^kt[13]<<8;case 13:xt[3]=xt[3]^kt[12],xt[3]=Math.imul(xt[3],s$2[3]),xt[3]=l(xt[3],18),xt[3]=Math.imul(xt[3],s$2[0]),ht[3]=ht[3]^xt[3];case 12:xt[2]=xt[2]^kt[11]<<24;case 11:xt[2]=xt[2]^kt[10]<<16;case 10:xt[2]=xt[2]^kt[9]<<8;case 9:xt[2]=xt[2]^kt[8],xt[2]=Math.imul(xt[2],s$2[2]),xt[2]=l(xt[2],17),xt[2]=Math.imul(xt[2],s$2[3]),ht[2]=ht[2]^xt[2];case 8:xt[1]=xt[1]^kt[7]<<24;case 7:xt[1]=xt[1]^kt[6]<<16;case 6:xt[1]=xt[1]^kt[5]<<8;case 5:xt[1]=xt[1]^kt[4],xt[1]=Math.imul(xt[1],s$2[1]),xt[1]=l(xt[1],16),xt[1]=Math.imul(xt[1],s$2[2]),ht[1]=ht[1]^xt[1];case 4:xt[0]=xt[0]^kt[3]<<24;case 3:xt[0]=xt[0]^kt[2]<<16;case 2:xt[0]=xt[0]^kt[1]<<8;case 1:xt[0]=xt[0]^kt[0],xt[0]=Math.imul(xt[0],s$2[0]),xt[0]=l(xt[0],15),xt[0]=Math.imul(xt[0],s$2[1]),ht[0]=ht[0]^xt[0]}}(Be,tt),function(ft,ht){ht[0]=ht[0]^ft.byteLength,ht[1]=ht[1]^ft.byteLength,ht[2]=ht[2]^ft.byteLength,ht[3]=ht[3]^ft.byteLength,ht[0]=ht[0]+ht[1]|0,ht[0]=ht[0]+ht[2]|0,ht[0]=ht[0]+ht[3]|0,ht[1]=ht[1]+ht[0]|0,ht[2]=ht[2]+ht[0]|0,ht[3]=ht[3]+ht[0]|0,ht[0]=c$2(ht[0]),ht[1]=c$2(ht[1]),ht[2]=c$2(ht[2]),ht[3]=c$2(ht[3]),ht[0]=ht[0]+ht[1]|0,ht[0]=ht[0]+ht[2]|0,ht[0]=ht[0]+ht[3]|0,ht[1]=ht[1]+ht[0]|0,ht[2]=ht[2]+ht[0]|0,ht[3]=ht[3]+ht[0]|0}(Be,tt);var nt=new Uint8Array(tt.buffer);return Array.from(nt).map(function(ft){return ft.toString(16).padStart(2,"0")}).join("")}function f$1(Be,Le){return new Promise(function(Ye){setTimeout(function(){return Ye(Le)},Be)})}function m$1(Be,Le,Ye){return Promise.all(Be.map(function(tt){return Promise.race([tt,f$1(Le,Ye)])}))}function g(){return e$1(this,void 0,void 0,function(){var Be,Le,Ye,tt,nt;return n$1(this,function(ft){switch(ft.label){case 0:return ft.trys.push([0,2,,3]),Be=u(),Le=Object.keys(Be),[4,m$1(Object.values(Be),(r$2==null?void 0:r$2.timeout)||1e3,a$2)];case 1:return Ye=ft.sent(),tt=Ye.filter(function(ht){return ht!==void 0}),nt={},tt.forEach(function(ht,gt){nt[Le[gt]]=ht}),[2,p(nt,r$2.exclude||[],r$2.include||[],"")];case 2:throw ft.sent();case 3:return[2]}})})}function p(Be,Le,Ye,tt){tt===void 0&&(tt="");for(var nt={},ft=function(xt,kt){var Ct=tt+xt+".";if(typeof kt!="object"||Array.isArray(kt)){var yt=Le.some(function(wt){return Ct.startsWith(wt)}),vt=Ye.some(function(wt){return Ct.startsWith(wt)});yt&&!vt||(nt[xt]=kt)}else{var It=p(kt,Le,Ye,Ct);Object.keys(It).length>0&&(nt[xt]=It)}},ht=0,gt=Object.entries(Be);ht<gt.length;ht++){var At=gt[ht];ft(At[0],At[1])}return nt}function w$e(Be){return e$1(this,void 0,void 0,function(){var Le,Ye;return n$1(this,function(tt){switch(tt.label){case 0:return tt.trys.push([0,2,,3]),[4,g()];case 1:return Le=tt.sent(),Ye=d(JSON.stringify(Le)),Math.random()<1e-5&&r$2.logging&&function(nt,ft){e$1(this,void 0,void 0,function(){var ht,gt;return n$1(this,function(At){switch(At.label){case 0:if(ht="https://logging.thumbmarkjs.com/v1/log",gt={thumbmark:nt,components:ft,version:"0.20.6"},sessionStorage.getItem("_tmjs_l"))return[3,4];sessionStorage.setItem("_tmjs_l","1"),At.label=1;case 1:return At.trys.push([1,3,,4]),[4,fetch(ht,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(gt)})];case 2:case 3:return At.sent(),[3,4];case 4:return[2]}})})}(Ye,Le),[2,Ye.toString()];case 2:throw tt.sent();case 3:return[2]}})})}function b$1(){if(typeof navigator>"u")return{name:"unknown",version:"unknown"};for(var Be=navigator.userAgent,Le={edg:"Edge",opr:"Opera",samsung:"SamsungBrowser"},Ye=0,tt=[/(?<name>SamsungBrowser)\/(?<version>\d+(?:\.\d+)?)/,/(?<name>Edge|Edg)\/(?<version>\d+(?:\.\d+)?)/,/(?<name>(?:Chrome|Chromium|OPR|Opera|Vivaldi|Brave))\/(?<version>\d+(?:\.\d+)?)/,/(?<name>(?:Firefox|Waterfox|Iceweasel|IceCat))\/(?<version>\d+(?:\.\d+)?)/,/(?<name>Safari)\/(?<version>\d+(?:\.\d+)?)/,/(?<name>MSIE|Trident|IEMobile).+?(?<version>\d+(?:\.\d+)?)/,/(?<name>samsung).*Version\/(?<version>\d+(?:\.\d+)?)/i,/(?<name>[A-Za-z]+)\/(?<version>\d+(?:\.\d+)?)/];Ye<tt.length;Ye++){var nt=tt[Ye],ft=Be.match(nt);if(ft&&ft.groups)return{name:Le[ft.groups.name.toLowerCase()]||ft.groups.name,version:ft.groups.version}}return{name:"unknown",version:"unknown"}}function S(Be){for(var Le=0,Ye=0;Ye<Be.length;++Ye)Le+=Math.abs(Be[Ye]);return Le}var M=b$1();function E(Be,Le,Ye){for(var tt=[],nt=0;nt<Be[0].data.length;nt++){for(var ft=[],ht=0;ht<Be.length;ht++)ft.push(Be[ht].data[nt]);tt.push(P(ft))}var gt=new Uint8ClampedArray(tt);return new ImageData(gt,Le,Ye)}function P(Be){if(Be.length===0)return 0;for(var Le={},Ye=0,tt=Be;Ye<tt.length;Ye++)Le[ft=tt[Ye]]=(Le[ft]||0)+1;var nt=Be[0];for(var ft in Le)Le[ft]>Le[nt]&&(nt=parseInt(ft,10));return nt}["SamsungBrowser","Safari"].includes(M.name)||i$5("audio",function(){return e$1(this,void 0,void 0,function(){return n$1(this,function(Be){return[2,new Promise(function(Le,Ye){try{var tt=new(window.OfflineAudioContext||window.webkitOfflineAudioContext)(1,5e3,44100),nt=tt.createBufferSource(),ft=tt.createOscillator();ft.frequency.value=1e3;var ht,gt=tt.createDynamicsCompressor();gt.threshold.value=-50,gt.knee.value=40,gt.ratio.value=12,gt.attack.value=0,gt.release.value=.2,ft.connect(gt),gt.connect(tt.destination),ft.start(),tt.oncomplete=function(At){ht=At.renderedBuffer.getChannelData(0),Le({sampleHash:S(ht),oscillator:ft.type,maxChannels:tt.destination.maxChannelCount,channelCountMode:nt.channelCountMode})},tt.startRendering()}catch(At){console.error("Error creating audio fingerprint:",At),Ye(At)}})]})})});var A=b$1(),C=A.name.toLowerCase(),x=A.version.split(".")[0]||"0",T=parseInt(x,10);C==="firefox"||C==="safari"&&T===17||i$5("canvas",function(){return document.createElement("canvas").getContext("2d"),new Promise(function(Be){var Le=Array.from({length:3},function(){return function(){var Ye=document.createElement("canvas"),tt=Ye.getContext("2d");if(!tt)return new ImageData(1,1);Ye.width=280,Ye.height=20;var nt=tt.createLinearGradient(0,0,Ye.width,Ye.height);nt.addColorStop(0,"red"),nt.addColorStop(.16666666666666666,"orange"),nt.addColorStop(.3333333333333333,"yellow"),nt.addColorStop(.5,"green"),nt.addColorStop(.6666666666666666,"blue"),nt.addColorStop(.8333333333333334,"indigo"),nt.addColorStop(1,"violet"),tt.fillStyle=nt,tt.fillRect(0,0,Ye.width,Ye.height);var ft="Random Text WMwmil10Oo";return tt.font="23.123px Arial",tt.fillStyle="black",tt.fillText(ft,-5,15),tt.fillStyle="rgba(0, 0, 255, 0.5)",tt.fillText(ft,-3.3,17.7),tt.beginPath(),tt.moveTo(0,0),tt.lineTo(2*Ye.width/7,Ye.height),tt.strokeStyle="white",tt.lineWidth=2,tt.stroke(),tt.getImageData(0,0,Ye.width,Ye.height)}()});Be({commonImageDataHash:d(E(Le,280,20).data.toString()).toString()})})});var k,I=["Arial","Arial Black","Arial Narrow","Arial Rounded MT","Arimo","Archivo","Barlow","Bebas Neue","Bitter","Bookman","Calibri","Cabin","Candara","Century","Century Gothic","Comic Sans MS","Constantia","Courier","Courier New","Crimson Text","DM Mono","DM Sans","DM Serif Display","DM Serif Text","Dosis","Droid Sans","Exo","Fira Code","Fira Sans","Franklin Gothic Medium","Garamond","Geneva","Georgia","Gill Sans","Helvetica","Impact","Inconsolata","Indie Flower","Inter","Josefin Sans","Karla","Lato","Lexend","Lucida Bright","Lucida Console","Lucida Sans Unicode","Manrope","Merriweather","Merriweather Sans","Montserrat","Myriad","Noto Sans","Nunito","Nunito Sans","Open Sans","Optima","Orbitron","Oswald","Pacifico","Palatino","Perpetua","PT Sans","PT Serif","Poppins","Prompt","Public Sans","Quicksand","Rajdhani","Recursive","Roboto","Roboto Condensed","Rockwell","Rubik","Segoe Print","Segoe Script","Segoe UI","Sora","Source Sans Pro","Space Mono","Tahoma","Taviraj","Times","Times New Roman","Titillium Web","Trebuchet MS","Ubuntu","Varela Round","Verdana","Work Sans"],R$1=["monospace","sans-serif","serif"];function L(Be,Le){if(!Be)throw new Error("Canvas context not supported");return Be.font,Be.font="72px ".concat(Le),Be.measureText("WwMmLli0Oo").width}function _$2(){var Be,Le=document.createElement("canvas"),Ye=(Be=Le.getContext("webgl"))!==null&&Be!==void 0?Be:Le.getContext("experimental-webgl");if(Ye&&"getParameter"in Ye)try{var tt=(Ye.getParameter(Ye.VENDOR)||"").toString(),nt=(Ye.getParameter(Ye.RENDERER)||"").toString(),ft={vendor:tt,renderer:nt,version:(Ye.getParameter(Ye.VERSION)||"").toString(),shadingLanguageVersion:(Ye.getParameter(Ye.SHADING_LANGUAGE_VERSION)||"").toString()};if(!nt.length||!tt.length){var ht=Ye.getExtension("WEBGL_debug_renderer_info");if(ht){var gt=(Ye.getParameter(ht.UNMASKED_VENDOR_WEBGL)||"").toString(),At=(Ye.getParameter(ht.UNMASKED_RENDERER_WEBGL)||"").toString();gt&&(ft.vendorUnmasked=gt),At&&(ft.rendererUnmasked=At)}}return ft}catch{}return"undefined"}function O(){var Be=new Float32Array(1),Le=new Uint8Array(Be.buffer);return Be[0]=1/0,Be[0]=Be[0]-Be[0],Le[3]}function B(Be,Le){var Ye={};return Le.forEach(function(tt){var nt=function(ft){if(ft.length===0)return null;var ht={};ft.forEach(function(xt){var kt=String(xt);ht[kt]=(ht[kt]||0)+1});var gt=ft[0],At=1;return Object.keys(ht).forEach(function(xt){ht[xt]>At&&(gt=xt,At=ht[xt])}),gt}(Be.map(function(ft){return tt in ft?ft[tt]:void 0}).filter(function(ft){return ft!==void 0}));nt&&(Ye[tt]=nt)}),Ye}function D(){var Be=[],Le={"prefers-contrast":["high","more","low","less","forced","no-preference"],"any-hover":["hover","none"],"any-pointer":["none","coarse","fine"],pointer:["none","coarse","fine"],hover:["hover","none"],update:["fast","slow"],"inverted-colors":["inverted","none"],"prefers-reduced-motion":["reduce","no-preference"],"prefers-reduced-transparency":["reduce","no-preference"],scripting:["none","initial-only","enabled"],"forced-colors":["active","none"]};return Object.keys(Le).forEach(function(Ye){Le[Ye].forEach(function(tt){matchMedia("(".concat(Ye,": ").concat(tt,")")).matches&&Be.push("".concat(Ye,": ").concat(tt))})}),Be}b$1().name!="Firefox"&&i$5("fonts",function(){var Be=this;return new Promise(function(Le,Ye){try{(function(tt){var nt;e$1(this,void 0,void 0,function(){var ft,ht,gt;return n$1(this,function(At){switch(At.label){case 0:return document.body?[3,2]:[4,(xt=50,new Promise(function(Ct){return setTimeout(Ct,xt,kt)}))];case 1:return At.sent(),[3,0];case 2:if((ft=document.createElement("iframe")).setAttribute("frameBorder","0"),(ht=ft.style).setProperty("position","fixed"),ht.setProperty("display","block","important"),ht.setProperty("visibility","visible"),ht.setProperty("border","0"),ht.setProperty("opacity","0"),ft.src="about:blank",document.body.appendChild(ft),!(gt=ft.contentDocument||((nt=ft.contentWindow)===null||nt===void 0?void 0:nt.document)))throw new Error("Iframe document is not accessible");return tt({iframe:gt}),setTimeout(function(){document.body.removeChild(ft)},0),[2]}var xt,kt})})})(function(tt){var nt=tt.iframe;return e$1(Be,void 0,void 0,function(){var ft,ht,gt,At;return n$1(this,function(xt){return ft=nt.createElement("canvas"),ht=ft.getContext("2d"),gt=R$1.map(function(kt){return L(ht,kt)}),At={},I.forEach(function(kt){var Ct=L(ht,kt);gt.includes(Ct)||(At[kt]=Ct)}),Le(At),[2]})})})}catch{Ye({error:"unsupported"})}})}),i$5("hardware",function(){return new Promise(function(Be,Le){var Ye=navigator.deviceMemory!==void 0?navigator.deviceMemory:0,tt=window.performance&&window.performance.memory?window.performance.memory:0;Be({videocard:_$2(),architecture:O(),deviceMemory:Ye.toString()||"undefined",jsHeapSizeLimit:tt.jsHeapSizeLimit||0})})}),i$5("locales",function(){return new Promise(function(Be){Be({languages:navigator.language,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone})})}),i$5("permissions",function(){return e$1(this,void 0,void 0,function(){var Be;return n$1(this,function(Le){return k=(r$2==null?void 0:r$2.permissions_to_check)||["accelerometer","accessibility","accessibility-events","ambient-light-sensor","background-fetch","background-sync","bluetooth","camera","clipboard-read","clipboard-write","device-info","display-capture","gyroscope","geolocation","local-fonts","magnetometer","microphone","midi","nfc","notifications","payment-handler","persistent-storage","push","speaker","storage-access","top-level-storage-access","window-management","query"],b$1().name.toLowerCase()==="safari"&&(k=k.filter(function(Ye){return!["camera","geolocation","microphone"].includes(Ye)})),Be=Array.from({length:(r$2==null?void 0:r$2.retries)||3},function(){return function(){return e$1(this,void 0,void 0,function(){var Ye,tt,nt,ft,ht;return n$1(this,function(gt){switch(gt.label){case 0:Ye={},tt=0,nt=k,gt.label=1;case 1:if(!(tt<nt.length))return[3,6];ft=nt[tt],gt.label=2;case 2:return gt.trys.push([2,4,,5]),[4,navigator.permissions.query({name:ft})];case 3:return ht=gt.sent(),Ye[ft]=ht.state.toString(),[3,5];case 4:return gt.sent(),[3,5];case 5:return tt++,[3,1];case 6:return[2,Ye]}})})}()}),[2,Promise.all(Be).then(function(Ye){return B(Ye,k)})]})})}),i$5("plugins",function(){var Be=[];if(navigator.plugins)for(var Le=0;Le<navigator.plugins.length;Le++){var Ye=navigator.plugins[Le];Be.push([Ye.name,Ye.filename,Ye.description].join("|"))}return new Promise(function(tt){tt({plugins:Be})})}),i$5("screen",function(){return new Promise(function(Be){Be({is_touchscreen:navigator.maxTouchPoints>0,maxTouchPoints:navigator.maxTouchPoints,colorDepth:screen.colorDepth,mediaMatches:D()})})}),i$5("system",function(){return new Promise(function(Be){var Le=b$1(),Ye={platform:window.navigator.platform,productSub:navigator.productSub,product:navigator.product,useragent:navigator.userAgent,hardwareConcurrency:navigator.hardwareConcurrency,browser:{name:Le.name,version:Le.version}};Le.name.toLowerCase()!=="safari"&&(Ye.applePayVersion=function(){if(window.location.protocol==="https:"&&typeof window.ApplePaySession=="function")try{for(var tt=window.ApplePaySession.supportsVersion,nt=15;nt>0;nt--)if(tt(nt))return nt}catch{return 0}return 0}(),Ye.cookieEnabled=window.navigator.cookieEnabled),Be(Ye)})});var U,N=b$1().name!=="SamsungBrowser"?1:3,F=null;i$5("webgl",function(){return e$1(this,void 0,void 0,function(){var Be;return n$1(this,function(Le){typeof document<"u"&&((U=document.createElement("canvas")).width=200,U.height=100,F=U.getContext("webgl"));try{if(!F)throw new Error("WebGL not supported");return Be=Array.from({length:N},function(){return function(){try{if(!F)throw new Error("WebGL not supported");var Ye=`
|
|
107
107
|
attribute vec2 position;
|
|
108
108
|
void main() {
|
|
109
109
|
gl_Position = vec4(position, 0.0, 1.0);
|