@regulaforensics/facesdk-webclient 8.3.690-nightly → 8.3.692-nightly
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/index.cjs +9 -0
- package/dist/index.d.ts +1578 -0
- package/dist/index.js +2687 -0
- package/package.json +1 -1
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.defineProperty,t=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r};function n(e,t){return function(){return e.apply(t,arguments)}}var{toString:r}=Object.prototype,{getPrototypeOf:i}=Object,{iterator:a,toStringTag:o}=Symbol,s=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),c=(e,t)=>{let n=e,r=[];for(;n!=null&&n!==Object.prototype;){if(r.indexOf(n)!==-1)return!1;if(r.push(n),s(n,t))return!0;n=i(n)}return!1},l=(e,t)=>e!=null&&c(e,t)?e[t]:void 0,u=(e=>t=>{let n=r.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),d=e=>(e=e.toLowerCase(),t=>u(t)===e),f=e=>t=>typeof t===e,{isArray:p}=Array,m=f(`undefined`);function h(e){return e!==null&&!m(e)&&e.constructor!==null&&!m(e.constructor)&&v(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var g=d(`ArrayBuffer`);function _(e){let t;return t=typeof ArrayBuffer<`u`&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&g(e.buffer),t}var ee=f(`string`),v=f(`function`),y=f(`number`),b=e=>typeof e==`object`&&!!e,te=e=>e===!0||e===!1,x=e=>{if(!b(e))return!1;let t=i(e);return(t===null||t===Object.prototype||i(t)===null)&&!c(e,o)&&!c(e,a)},S=e=>{if(!b(e)||h(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},ne=d(`Date`),C=d(`File`),re=e=>!!(e&&e.uri!==void 0),ie=e=>e&&e.getParts!==void 0,ae=d(`Blob`),w=d(`FileList`),T=e=>b(e)&&v(e.pipe);function E(){return typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{}}var D=E(),O=D.FormData===void 0?void 0:D.FormData,oe=e=>{if(!e)return!1;if(O&&e instanceof O)return!0;let t=i(e);if(!t||t===Object.prototype||!v(e.append))return!1;let n=u(e);return n===`formdata`||n===`object`&&v(e.toString)&&e.toString()===`[object FormData]`},se=d(`URLSearchParams`),[ce,k,le,ue]=[`ReadableStream`,`Request`,`Response`,`Headers`].map(d),A=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``);function de(e,t,{allOwnKeys:n=!1}={}){if(e==null)return;let r,i;if(typeof e!=`object`&&(e=[e]),p(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(h(e))return;let i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length,o;for(r=0;r<a;r++)o=i[r],t.call(null,e[o],o,e)}}function fe(e,t){if(h(e))return null;t=t.toLowerCase();let n=Object.keys(e),r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}var j=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:global,pe=e=>!m(e)&&e!==j;function me(...e){let{caseless:t,skipUndefined:n}=pe(this)&&this||{},r={},i=(e,i)=>{if(i===`__proto__`||i===`constructor`||i===`prototype`)return;let a=t&&typeof i==`string`&&fe(r,i)||i,o=s(r,a)?r[a]:void 0;x(o)&&x(e)?r[a]=me(o,e):x(e)?r[a]=me({},e):p(e)?r[a]=e.slice():(!n||!m(e))&&(r[a]=e)};for(let t=0,n=e.length;t<n;t++){let n=e[t];if(!n||h(n)||(de(n,i),typeof n!=`object`||p(n)))continue;let r=Object.getOwnPropertySymbols(n);for(let e=0;e<r.length;e++){let t=r[e];Ee.call(n,t)&&i(n[t],t)}}return r}var he=(e,t,r,{allOwnKeys:i}={})=>(de(t,(t,i)=>{r&&v(t)?Object.defineProperty(e,i,{__proto__:null,value:n(t,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,i,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:i}),e),ge=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),_e=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},ve=(e,t,n,r)=>{let a,o,s,c={};if(t||={},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),o=a.length;o-- >0;)s=a[o],(!r||r(s,e,t))&&!c[s]&&(t[s]=e[s],c[s]=!0);e=n!==!1&&i(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},ye=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;let r=e.indexOf(t,n);return r!==-1&&r===n},be=e=>{if(!e)return null;if(p(e))return e;let t=e.length;if(!y(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},xe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<`u`&&i(Uint8Array)),Se=(e,t)=>{let n=(e&&e[a]).call(e),r;for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},Ce=(e,t)=>{let n,r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},we=d(`HTMLFormElement`),Te=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),{propertyIsEnumerable:Ee}=Object.prototype,De=d(`RegExp`),Oe=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};de(n,(n,i)=>{let a;(a=t(n,i,e))!==!1&&(r[i]=a||n)}),Object.defineProperties(e,r)},ke=e=>{Oe(e,(t,n)=>{if(v(e)&&[`arguments`,`caller`,`callee`].includes(n))return!1;let r=e[n];if(v(r)){if(t.enumerable=!1,`writable`in t){t.writable=!1;return}t.set||=()=>{throw Error(`Can not rewrite read-only method '`+n+`'`)}}})},Ae=(e,t)=>{let n={},r=e=>{e.forEach(e=>{n[e]=!0})};return p(e)?r(e):r(String(e).split(t)),n},je=()=>{},Me=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Ne(e){return!!(e&&v(e.append)&&e[o]===`FormData`&&e[a])}var Pe=e=>{let t=new WeakSet,n=e=>{if(b(e)){if(t.has(e))return;if(h(e))return e;if(!(`toJSON`in e)){t.add(e);let r=p(e)?[]:{};return de(e,(e,t)=>{let i=n(e);!m(i)&&(r[t]=i)}),t.delete(e),r}}return e};return n(e)},Fe=d(`AsyncFunction`),Ie=e=>e&&(b(e)||v(e))&&v(e.then)&&v(e.catch),Le=((e,t)=>e?setImmediate:t?((e,t)=>(j.addEventListener(`message`,({source:n,data:r})=>{n===j&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),j.postMessage(e,`*`)}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate==`function`,v(j.postMessage)),Re=typeof queueMicrotask<`u`?queueMicrotask.bind(j):typeof process<`u`&&process.nextTick||Le,ze=e=>e!=null&&v(e[a]),M={isArray:p,isArrayBuffer:g,isBuffer:h,isFormData:oe,isArrayBufferView:_,isString:ee,isNumber:y,isBoolean:te,isObject:b,isPlainObject:x,isEmptyObject:S,isReadableStream:ce,isRequest:k,isResponse:le,isHeaders:ue,isUndefined:m,isDate:ne,isFile:C,isReactNativeBlob:re,isReactNative:ie,isBlob:ae,isRegExp:De,isFunction:v,isStream:T,isURLSearchParams:se,isTypedArray:xe,isFileList:w,forEach:de,merge:me,extend:he,trim:A,stripBOM:ge,inherits:_e,toFlatObject:ve,kindOf:u,kindOfTest:d,endsWith:ye,toArray:be,forEachEntry:Se,matchAll:Ce,isHTMLForm:we,hasOwnProperty:s,hasOwnProp:s,hasOwnInPrototypeChain:c,getSafeProp:l,reduceDescriptors:Oe,freezeMethods:ke,toObjectSet:Ae,toCamelCase:Te,noop:je,toFiniteNumber:Me,findKey:fe,global:j,isContextDefined:pe,isSpecCompliantForm:Ne,toJSONObject:Pe,isAsyncFn:Fe,isThenable:Ie,setImmediate:Le,asap:Re,isIterable:ze,isSafeIterable:e=>e!=null&&c(e,a)&&ze(e)},Be=M.toObjectSet([`age`,`authorization`,`content-length`,`content-type`,`etag`,`expires`,`from`,`host`,`if-modified-since`,`if-unmodified-since`,`last-modified`,`location`,`max-forwards`,`proxy-authorization`,`referer`,`retry-after`,`user-agent`]),Ve=e=>{let t={},n,r,i;return e&&e.split(`
|
|
2
|
+
`).forEach(function(e){i=e.indexOf(`:`),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!(!n||t[n]&&Be[n])&&(n===`set-cookie`?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+`, `+r:r)}),t};function He(e){let t=0,n=e.length;for(;t<n;){let n=e.charCodeAt(t);if(n!==9&&n!==32)break;t+=1}for(;n>t;){let t=e.charCodeAt(n-1);if(t!==9&&t!==32)break;--n}return t===0&&n===e.length?e:e.slice(t,n)}var Ue=RegExp(`[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+`,`g`),We=RegExp(`[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+`,`g`);function Ge(e,t){return M.isArray(e)?e.map(e=>Ge(e,t)):He(String(e).replace(t,``))}var Ke=e=>Ge(e,Ue),qe=e=>Ge(e,We);function Je(e){let t=Object.create(null);return M.forEach(e.toJSON(),(e,n)=>{t[n]=qe(e)}),t}var Ye=Symbol(`internals`);function Xe(e){return e&&String(e).trim().toLowerCase()}function Ze(e){return e===!1||e==null?e:M.isArray(e)?e.map(Ze):Ke(String(e))}function Qe(e){let t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}var $e=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function et(e,t,n,r,i){if(M.isFunction(r))return r.call(this,t,n);if(i&&(t=n),M.isString(t)){if(M.isString(r))return t.indexOf(r)!==-1;if(M.isRegExp(r))return r.test(t)}}function tt(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function nt(e,t){let n=M.toCamelCase(` `+t);[`get`,`set`,`has`].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})})}var N=class{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function i(e,t,n){let i=Xe(t);if(!i)return;let a=M.findKey(r,i);(!a||r[a]===void 0||n===!0||n===void 0&&r[a]!==!1)&&(r[a||t]=Ze(e))}let a=(e,t)=>M.forEach(e,(e,n)=>i(e,n,t));if(M.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(M.isString(e)&&(e=e.trim())&&!$e(e))a(Ve(e),t);else if(M.isObject(e)&&M.isSafeIterable(e)){let n=Object.create(null),r,i;for(let t of e){if(!M.isArray(t))throw TypeError(`Object iterator must return a key-value pair`);i=t[0],M.hasOwnProp(n,i)?(r=n[i],n[i]=M.isArray(r)?[...r,t[1]]:[r,t[1]]):n[i]=t[1]}a(n,t)}else e!=null&&i(t,e,n);return this}get(e,t){if(e=Xe(e),e){let n=M.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(t===!0)return Qe(e);if(M.isFunction(t))return t.call(this,e,n);if(M.isRegExp(t))return t.exec(e);throw TypeError(`parser must be boolean|regexp|function`)}}}has(e,t){if(e=Xe(e),e){let n=M.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||et(this,this[n],n,t)))}return!1}delete(e,t){let n=this,r=!1;function i(e){if(e=Xe(e),e){let i=M.findKey(n,e);i&&(!t||et(n,n[i],i,t))&&(delete n[i],r=!0)}}return M.isArray(e)?e.forEach(i):i(e),r}clear(e){let t=Object.keys(this),n=t.length,r=!1;for(;n--;){let i=t[n];(!e||et(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){let t=this,n={};return M.forEach(this,(r,i)=>{let a=M.findKey(n,i);if(a){t[a]=Ze(r),delete t[i];return}let o=e?tt(i):String(i).trim();o!==i&&delete t[i],t[o]=Ze(r),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return M.forEach(this,(n,r)=>{n!=null&&n!==!1&&(t[r]=e&&M.isArray(n)?n.join(`, `):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+`: `+t).join(`
|
|
3
|
+
`)}getSetCookie(){return this.get(`set-cookie`)||[]}get[Symbol.toStringTag](){return`AxiosHeaders`}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[Ye]=this[Ye]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=Xe(e);t[r]||(nt(n,e),t[r]=!0)}return M.isArray(e)?e.forEach(r):r(e),this}};N.accessor([`Content-Type`,`Content-Length`,`Accept`,`Accept-Encoding`,`User-Agent`,`Authorization`]),M.reduceDescriptors(N.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),M.freezeMethods(N);var rt=`[REDACTED ****]`;function it(e){if(M.hasOwnProp(e,`toJSON`))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(M.hasOwnProp(t,`toJSON`))return!0;t=Object.getPrototypeOf(t)}return!1}function at(e,t){let n=new Set(t.map(e=>String(e).toLowerCase())),r=[],i=e=>{if(typeof e!=`object`||!e||M.isBuffer(e))return e;if(r.indexOf(e)!==-1)return;e instanceof N&&(e=e.toJSON()),r.push(e);let t;if(M.isArray(e))t=[],e.forEach((e,n)=>{let r=i(e);M.isUndefined(r)||(t[n]=r)});else{if(!M.isPlainObject(e)&&it(e))return r.pop(),e;t=Object.create(null);for(let[r,a]of Object.entries(e)){let e=n.has(r.toLowerCase())?rt:i(a);M.isUndefined(e)||(t[r]=e)}}return r.pop(),t};return i(e)}var P=class e extends Error{static from(t,n,r,i,a,o){let s=new e(t.message,n||t.code,r,i,a);return s.cause=t,s.name=t.name,t.status!=null&&s.status==null&&(s.status=t.status),o&&Object.assign(s,o),s}constructor(e,t,n,r,i){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name=`AxiosError`,this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status)}toJSON(){let e=this.config,t=e&&M.hasOwnProp(e,`redact`)?e.redact:void 0,n=M.isArray(t)&&t.length>0?at(e,t):M.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n,code:this.code,status:this.status}}};P.ERR_BAD_OPTION_VALUE=`ERR_BAD_OPTION_VALUE`,P.ERR_BAD_OPTION=`ERR_BAD_OPTION`,P.ECONNABORTED=`ECONNABORTED`,P.ETIMEDOUT=`ETIMEDOUT`,P.ECONNREFUSED=`ECONNREFUSED`,P.ERR_NETWORK=`ERR_NETWORK`,P.ERR_FR_TOO_MANY_REDIRECTS=`ERR_FR_TOO_MANY_REDIRECTS`,P.ERR_DEPRECATED=`ERR_DEPRECATED`,P.ERR_BAD_RESPONSE=`ERR_BAD_RESPONSE`,P.ERR_BAD_REQUEST=`ERR_BAD_REQUEST`,P.ERR_CANCELED=`ERR_CANCELED`,P.ERR_NOT_SUPPORT=`ERR_NOT_SUPPORT`,P.ERR_INVALID_URL=`ERR_INVALID_URL`,P.ERR_FORM_DATA_DEPTH_EXCEEDED=`ERR_FORM_DATA_DEPTH_EXCEEDED`;function ot(e){return M.isPlainObject(e)||M.isArray(e)}function st(e){return M.endsWith(e,`[]`)?e.slice(0,-2):e}function ct(e,t,n){return e?e.concat(t).map(function(e,t){return e=st(e),!n&&t?`[`+e+`]`:e}).join(n?`.`:``):t}function lt(e){return M.isArray(e)&&!e.some(ot)}var ut=M.toFlatObject(M,{},null,function(e){return/^is[A-Z]/.test(e)});function dt(e,t,n){if(!M.isObject(e))throw TypeError(`target must be an object`);t||=new FormData,n=M.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!M.isUndefined(t[e])});let r=n.metaTokens,i=n.visitor||m,a=n.dots,o=n.indexes,s=n.Blob||typeof Blob<`u`&&Blob,c=n.maxDepth===void 0?100:n.maxDepth,l=s&&M.isSpecCompliantForm(t),u=[];if(!M.isFunction(i))throw TypeError(`visitor must be a function`);function d(e){if(e===null)return``;if(M.isDate(e))return e.toISOString();if(M.isBoolean(e))return e.toString();if(!l&&M.isBlob(e))throw new P(`Blob is not supported. Use a Buffer instead.`);return M.isArrayBuffer(e)||M.isTypedArray(e)?l&&typeof Blob==`function`?new Blob([e]):Buffer.from(e):e}function f(e){if(e>c)throw new P(`Object is too deeply nested (`+e+` levels). Max depth: `+c,P.ERR_FORM_DATA_DEPTH_EXCEEDED)}function p(e,t){if(c===1/0)return JSON.stringify(e);let n=[];return JSON.stringify(e,function(e,r){if(!M.isObject(r))return r;for(;n.length&&n[n.length-1]!==this;)n.pop();return n.push(r),f(t+n.length-1),r})}function m(e,n,i){let s=e;if(M.isReactNative(t)&&M.isReactNativeBlob(e))return t.append(ct(i,n,a),d(e)),!1;if(e&&!i&&typeof e==`object`){if(M.endsWith(n,`{}`))n=r?n:n.slice(0,-2),e=p(e,1);else if(M.isArray(e)&<(e)||(M.isFileList(e)||M.endsWith(n,`[]`))&&(s=M.toArray(e)))return n=st(n),s.forEach(function(e,r){!(M.isUndefined(e)||e===null)&&t.append(o===!0?ct([n],r,a):o===null?n:n+`[]`,d(e))}),!1}return ot(e)?!0:(t.append(ct(i,n,a),d(e)),!1)}let h=Object.assign(ut,{defaultVisitor:m,convertValue:d,isVisitable:ot});function g(e,n,r=0){if(!M.isUndefined(e)){if(f(r),u.indexOf(e)!==-1)throw Error(`Circular reference detected in `+n.join(`.`));u.push(e),M.forEach(e,function(e,a){(!(M.isUndefined(e)||e===null)&&i.call(t,e,M.isString(a)?a.trim():a,n,h))===!0&&g(e,n?n.concat(a):[a],r+1)}),u.pop()}}if(!M.isObject(e))throw TypeError(`data must be an object`);return g(e),t}function ft(e){let t={"!":`%21`,"'":`%27`,"(":`%28`,")":`%29`,"~":`%7E`,"%20":`+`};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function pt(e,t){this._pairs=[],e&&dt(e,this,t)}var mt=pt.prototype;mt.append=function(e,t){this._pairs.push([e,t])},mt.toString=function(e){let t=e?function(t){return e.call(this,t,ft)}:ft;return this._pairs.map(function(e){return t(e[0])+`=`+t(e[1])},``).join(`&`)};function ht(e){return encodeURIComponent(e).replace(/%3A/gi,`:`).replace(/%24/g,`$`).replace(/%2C/gi,`,`).replace(/%20/g,`+`)}function gt(e,t,n){if(!t)return e;let r=M.isFunction(n)?{serialize:n}:n,i=M.getSafeProp(r,`encode`)||ht,a=M.getSafeProp(r,`serialize`),o;if(o=a?a(t,r):M.isURLSearchParams(t)?t.toString():new pt(t,r).toString(i),o){let t=e.indexOf(`#`);t!==-1&&(e=e.slice(0,t)),e+=(e.indexOf(`?`)===-1?`?`:`&`)+o}return e}var _t=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&=[]}forEach(e){M.forEach(this.handlers,function(t){t!==null&&e(t)})}},vt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},yt={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<`u`?URLSearchParams:pt,FormData:typeof FormData<`u`?FormData:null,Blob:typeof Blob<`u`?Blob:null},protocols:[`http`,`https`,`file`,`blob`,`url`,`data`]},bt=t({hasBrowserEnv:()=>xt,hasStandardBrowserEnv:()=>Ct,hasStandardBrowserWebWorkerEnv:()=>wt,navigator:()=>St,origin:()=>Tt}),xt=typeof window<`u`&&typeof document<`u`,St=typeof navigator==`object`&&navigator||void 0,Ct=xt&&(!St||[`ReactNative`,`NativeScript`,`NS`].indexOf(St.product)<0),wt=typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope&&typeof self.importScripts==`function`,Tt=xt&&window.location.href||`http://localhost`,F={...bt,...yt};function Et(e,t){return dt(e,new F.classes.URLSearchParams,{visitor:function(e,t,n,r){return F.isNode&&M.isBuffer(e)?(this.append(t,e.toString(`base64`)),!1):r.defaultVisitor.apply(this,arguments)},...t})}var Dt=100;function Ot(e){if(e>Dt)throw new P(`FormData field is too deeply nested (`+e+` levels). Max depth: `+Dt,P.ERR_FORM_DATA_DEPTH_EXCEEDED)}function kt(e){let t=[],n=/\w+|\[(\w*)]/g,r;for(;(r=n.exec(e))!==null;)Ot(t.length),t.push(r[0]===`[]`?``:r[1]||r[0]);return t}function At(e){let t={},n=Object.keys(e),r,i=n.length,a;for(r=0;r<i;r++)a=n[r],t[a]=e[a];return t}function jt(e){function t(e,n,r,i){Ot(i);let a=e[i++];if(a===`__proto__`)return!0;let o=Number.isFinite(+a),s=i>=e.length;return a=!a&&M.isArray(r)?r.length:a,s?(M.hasOwnProp(r,a)?r[a]=M.isArray(r[a])?r[a].concat(n):[r[a],n]:r[a]=n,!o):((!M.hasOwnProp(r,a)||!M.isObject(r[a]))&&(r[a]=[]),t(e,n,r[a],i)&&M.isArray(r[a])&&(r[a]=At(r[a])),!o)}if(M.isFormData(e)&&M.isFunction(e.entries)){let n={};return M.forEachEntry(e,(e,r)=>{t(kt(e),r,n,0)}),n}return null}var I=(e,t)=>e!=null&&M.hasOwnProp(e,t)?e[t]:void 0;function Mt(e,t,n){if(M.isString(e))try{return(t||JSON.parse)(e),M.trim(e)}catch(e){if(e.name!==`SyntaxError`)throw e}return(n||JSON.stringify)(e)}var Nt={transitional:vt,adapter:[`xhr`,`http`,`fetch`],transformRequest:[function(e,t){let n=t.getContentType()||``,r=n.indexOf(`application/json`)>-1,i=M.isObject(e);if(i&&M.isHTMLForm(e)&&(e=new FormData(e)),M.isFormData(e))return r?JSON.stringify(jt(e)):e;if(M.isArrayBuffer(e)||M.isBuffer(e)||M.isStream(e)||M.isFile(e)||M.isBlob(e)||M.isReadableStream(e))return e;if(M.isArrayBufferView(e))return e.buffer;if(M.isURLSearchParams(e))return t.setContentType(`application/x-www-form-urlencoded;charset=utf-8`,!1),e.toString();let a;if(i){let t=I(this,`formSerializer`);if(n.indexOf(`application/x-www-form-urlencoded`)>-1)return Et(e,t).toString();if((a=M.isFileList(e))||n.indexOf(`multipart/form-data`)>-1){let n=I(this,`env`),r=n&&n.FormData;return dt(a?{"files[]":e}:e,r&&new r,t)}}return i||r?(t.setContentType(`application/json`,!1),Mt(e)):e}],transformResponse:[function(e){let t=I(this,`transitional`)||Nt.transitional,n=t&&t.forcedJSONParsing,r=I(this,`responseType`),i=r===`json`;if(M.isResponse(e)||M.isReadableStream(e))return e;if(e&&M.isString(e)&&(n&&!r||i)){let n=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e,I(this,`parseReviver`))}catch(e){if(n)throw e.name===`SyntaxError`?P.from(e,P.ERR_BAD_RESPONSE,this,null,I(this,`response`)):e}}return e}],timeout:0,xsrfCookieName:`XSRF-TOKEN`,xsrfHeaderName:`X-XSRF-TOKEN`,maxContentLength:-1,maxBodyLength:-1,env:{FormData:F.classes.FormData,Blob:F.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:`application/json, text/plain, */*`,"Content-Type":void 0}}};M.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`,`query`],e=>{Nt.headers[e]={}});function Pt(e,t){let n=this||Nt,r=t||n,i=N.from(r.headers),a=r.data;return M.forEach(e,function(e){a=e.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function Ft(e){return!!(e&&e.__CANCEL__)}var L=class extends P{constructor(e,t,n){super(e??`canceled`,P.ERR_CANCELED,t,n),this.name=`CanceledError`,this.__CANCEL__=!0}};function It(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new P(`Request failed with status code `+n.status,n.status>=400&&n.status<500?P.ERR_BAD_REQUEST:P.ERR_BAD_RESPONSE,n.config,n.request,n))}function Lt(e){let t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||``}function Rt(e,t){e||=10;let n=Array(e),r=Array(e),i=0,a=0,o;return t=t===void 0?1e3:t,function(s){let c=Date.now(),l=r[a];o||=c,n[i]=s,r[i]=c;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<t)return;let f=l&&c-l;return f?Math.round(d*1e3/f):void 0}}function zt(e,t){let n=0,r=1e3/t,i,a,o=(t,r=Date.now())=>{n=r,i=null,a&&=(clearTimeout(a),null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-n;s>=r?o(e,t):(i=e,a||=setTimeout(()=>{a=null,o(i)},r-s))},()=>i&&o(i)]}var Bt=(e,t,n=3)=>{let r=0,i=Rt(50,250);return zt(n=>{if(!n||typeof n.loaded!=`number`)return;let a=n.loaded,o=n.lengthComputable?n.total:void 0,s=o==null?a:Math.min(a,o),c=Math.max(0,s-r),l=i(c);r=Math.max(r,s),e({loaded:s,total:o,progress:o?s/o:void 0,bytes:c,rate:l||void 0,estimated:l&&o?(o-s)/l:void 0,event:n,lengthComputable:o!=null,[t?`download`:`upload`]:!0})},n)},Vt=(e,t)=>{let n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ht=e=>(...t)=>M.asap(()=>e(...t)),Ut=F.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,F.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(F.origin),F.navigator&&/(msie|trident)/i.test(F.navigator.userAgent)):()=>!0,Wt=F.hasStandardBrowserEnv?{write(e,t,n,r,i,a,o){if(typeof document>`u`)return;let s=[`${e}=${encodeURIComponent(t)}`];M.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),M.isString(r)&&s.push(`path=${r}`),M.isString(i)&&s.push(`domain=${i}`),a===!0&&s.push(`secure`),M.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join(`; `)},read(e){if(typeof document>`u`)return null;let t=document.cookie.split(`;`);for(let n=0;n<t.length;n++){let r=t[n].replace(/^\s+/,``),i=r.indexOf(`=`);if(i!==-1&&r.slice(0,i)===e)return decodeURIComponent(r.slice(i+1))}return null},remove(e){this.write(e,``,Date.now()-864e5,`/`)}}:{write(){},read(){return null},remove(){}};function Gt(e){return typeof e==`string`?/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e):!1}function Kt(e,t){return t?e.replace(/\/?\/$/,``)+`/`+t.replace(/^\/+/,``):e}var qt=/^https?:(?!\/\/)/i,Jt=/[\t\n\r]/g;function Yt(e){let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}function Xt(e){return Yt(e).replace(Jt,``)}function Zt(e,t){if(typeof e==`string`&&qt.test(Xt(e)))throw new P(`Invalid URL: missing "//" after protocol`,P.ERR_INVALID_URL,t)}function Qt(e,t,n,r){Zt(t,r);let i=!Gt(t);return e&&(i||n===!1)?(Zt(e,r),Kt(e,t)):t}var $t=e=>e instanceof N?{...e}:e;function R(e,t){t||={};let n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(e,t,n,r){return M.isPlainObject(e)&&M.isPlainObject(t)?M.merge.call({caseless:r},e,t):M.isPlainObject(t)?M.merge({},t):M.isArray(t)?t.slice():t}function i(e,t,n,i){if(!M.isUndefined(t))return r(e,t,n,i);if(!M.isUndefined(e))return r(void 0,e,n,i)}function a(e,t){if(!M.isUndefined(t))return r(void 0,t)}function o(e,t){if(!M.isUndefined(t))return r(void 0,t);if(!M.isUndefined(e))return r(void 0,e)}function s(n){let r=M.hasOwnProp(t,`transitional`)?t.transitional:void 0;if(!M.isUndefined(r))if(M.isPlainObject(r)){if(M.hasOwnProp(r,n))return r[n]}else return;let i=M.hasOwnProp(e,`transitional`)?e.transitional:void 0;if(M.isPlainObject(i)&&M.hasOwnProp(i,n))return i[n]}function c(n,i,a){if(M.hasOwnProp(t,a))return r(n,i);if(M.hasOwnProp(e,a))return r(void 0,n)}let l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,allowedSocketPaths:o,responseEncoding:o,validateStatus:c,headers:(e,t,n)=>i($t(e),$t(t),n,!0)};return M.forEach(Object.keys({...e,...t}),function(r){if(r===`__proto__`||r===`constructor`||r===`prototype`)return;let a=M.hasOwnProp(l,r)?l[r]:i,o=a(M.hasOwnProp(e,r)?e[r]:void 0,M.hasOwnProp(t,r)?t[r]:void 0,r);M.isUndefined(o)&&a!==c||(n[r]=o)}),M.hasOwnProp(t,`validateStatus`)&&M.isUndefined(t.validateStatus)&&s(`validateStatusUndefinedResolves`)===!1&&(M.hasOwnProp(e,`validateStatus`)?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}var en=[`content-type`,`content-length`];function tn(e,t,n){if(n!==`content-only`){e.set(t);return}Object.entries(t).forEach(([t,n])=>{en.includes(t.toLowerCase())&&e.set(t,n)})}var nn=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16)));function rn(e){let t=R({},e),n=e=>M.hasOwnProp(t,e)?t[e]:void 0,r=n(`data`),i=n(`withXSRFToken`),a=n(`xsrfHeaderName`),o=n(`xsrfCookieName`),s=n(`headers`),c=n(`auth`),l=n(`baseURL`),u=n(`allowAbsoluteUrls`),d=n(`url`);if(t.headers=s=N.from(s),t.url=gt(Qt(l,d,u,t),n(`params`),n(`paramsSerializer`)),c){let e=M.getSafeProp(c,`username`)||``,t=M.getSafeProp(c,`password`)||``;s.set(`Authorization`,`Basic `+btoa(e+`:`+(t?nn(t):``)))}if(M.isFormData(r)&&(F.hasStandardBrowserEnv||F.hasStandardBrowserWebWorkerEnv||M.isReactNative(r)?s.setContentType(void 0):M.isFunction(r.getHeaders)&&tn(s,r.getHeaders(),n(`formDataHeaderPolicy`))),F.hasStandardBrowserEnv&&(M.isFunction(i)&&(i=i(t)),i===!0||i==null&&Ut(t.url))){let e=a&&o&&Wt.read(o);e&&s.set(a,e)}return t}var an=typeof XMLHttpRequest<`u`&&function(e){return new Promise(function(t,n){let r=rn(e),i=r.data,a=N.from(r.headers).normalize(),{responseType:o,onUploadProgress:s,onDownloadProgress:c}=r,l,u,d,f,p;function m(){f&&f(),p&&p(),r.cancelToken&&r.cancelToken.unsubscribe(l),r.signal&&r.signal.removeEventListener(`abort`,l)}let h=new XMLHttpRequest;h.open(r.method.toUpperCase(),r.url,!0),h.timeout=r.timeout;function g(){if(!h)return;let r=N.from(`getAllResponseHeaders`in h&&h.getAllResponseHeaders());It(function(e){t(e),m()},function(e){n(e),m()},{data:!o||o===`text`||o===`json`?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:r,config:e,request:h}),h=null}`onloadend`in h?h.onloadend=g:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.startsWith(`file:`))||setTimeout(g)},h.onabort=function(){h&&=(n(new P(`Request aborted`,P.ECONNABORTED,e,h)),m(),null)},h.onerror=function(t){let r=new P(t&&t.message?t.message:`Network Error`,P.ERR_NETWORK,e,h);r.event=t||null,n(r),m(),h=null},h.ontimeout=function(){let t=r.timeout?`timeout of `+r.timeout+`ms exceeded`:`timeout exceeded`,i=r.transitional||vt;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new P(t,i.clarifyTimeoutError?P.ETIMEDOUT:P.ECONNABORTED,e,h)),m(),h=null},i===void 0&&a.setContentType(null),`setRequestHeader`in h&&M.forEach(Je(a),function(e,t){h.setRequestHeader(t,e)}),M.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),o&&o!==`json`&&(h.responseType=r.responseType),c&&([d,p]=Bt(c,!0),h.addEventListener(`progress`,d)),s&&h.upload&&([u,f]=Bt(s),h.upload.addEventListener(`progress`,u),h.upload.addEventListener(`loadend`,f)),(r.cancelToken||r.signal)&&(l=t=>{h&&=(n(!t||t.type?new L(null,e,h):t),h.abort(),m(),null)},r.cancelToken&&r.cancelToken.subscribe(l),r.signal&&(r.signal.aborted?l():r.signal.addEventListener(`abort`,l)));let _=Lt(r.url);if(_&&!F.protocols.includes(_)){n(new P(`Unsupported protocol `+_+`:`,P.ERR_BAD_REQUEST,e));return}h.send(i||null)})},on=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let n=new AbortController,r=!1,i=function(e){if(!r){r=!0,o();let t=e instanceof Error?e:this.reason;n.abort(t instanceof P?t:new L(t instanceof Error?t.message:t))}},a=t&&setTimeout(()=>{a=null,i(new P(`timeout of ${t}ms exceeded`,P.ETIMEDOUT))},t),o=()=>{e&&=(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener(`abort`,i)}),null)};e.forEach(e=>e.addEventListener(`abort`,i));let{signal:s}=n;return s.unsubscribe=()=>M.asap(o),s},sn=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},cn=async function*(e,t){for await(let n of ln(e))yield*sn(n,t)},ln=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},un=(e,t,n,r)=>{let i=cn(e,t),a=0,o,s=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{let{done:t,value:r}=await i.next();if(t){s(),e.close();return}let o=r.byteLength;n&&n(a+=o),e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel(e){return s(e),i.return()}},{highWaterMark:2})},dn=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,fn=(e,t,n)=>t+2<n&&dn(e.charCodeAt(t+1))&&dn(e.charCodeAt(t+2));function pn(e){if(!e||typeof e!=`string`||!e.startsWith(`data:`))return 0;let t=e.indexOf(`,`);if(t<0)return 0;let n=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(n)){let e=r.length,t=r.length;for(let n=0;n<t;n++)if(r.charCodeAt(n)===37&&n+2<t){let t=r.charCodeAt(n+1),i=r.charCodeAt(n+2);dn(t)&&dn(i)&&(e-=2,n+=2)}let n=0,i=t-1,a=e=>e>=2&&r.charCodeAt(e-2)===37&&r.charCodeAt(e-1)===51&&(r.charCodeAt(e)===68||r.charCodeAt(e)===100);i>=0&&(r.charCodeAt(i)===61?(n++,i--):a(i)&&(n++,i-=3)),n===1&&i>=0&&(r.charCodeAt(i)===61||a(i))&&n++;let o=Math.floor(e/4)*3-(n||0);return o>0?o:0}let i=0;for(let e=0,t=r.length;e<t;e++){let n=r.charCodeAt(e);if(n===37&&fn(r,e,t))i+=1,e+=2;else if(n<128)i+=1;else if(n<2048)i+=2;else if(n>=55296&&n<=56319&&e+1<t){let t=r.charCodeAt(e+1);t>=56320&&t<=57343?(i+=4,e++):i+=3}else i+=3}return i}var mn=`1.18.0`,hn=64*1024,{isFunction:gn}=M,_n=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))),vn=e=>{if(!M.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},yn=(e,...t)=>{try{return!!e(...t)}catch{return!1}},bn=e=>{let t=e.indexOf(`://`),n=e;return t!==-1&&(n=n.slice(t+3)),n.includes(`@`)||n.includes(`:`)},xn=e=>{let t=M.global!==void 0&&M.global!==null?M.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=M.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);let{fetch:i,Request:a,Response:o}=e,s=i?gn(i):typeof fetch==`function`,c=gn(a),l=gn(o);if(!s)return!1;let u=s&&gn(n),d=s&&(typeof r==`function`?(e=>t=>e.encode(t))(new r):async e=>new Uint8Array(await new a(e).arrayBuffer())),f=c&&u&&yn(()=>{let e=!1,t=new a(F.origin,{body:new n,method:`POST`,get duplex(){return e=!0,`half`}}),r=t.headers.has(`Content-Type`);return t.body!=null&&t.body.cancel(),e&&!r}),p=l&&u&&yn(()=>M.isReadableStream(new o(``).body)),m={stream:p&&(e=>e.body)};s&&[`text`,`arrayBuffer`,`blob`,`formData`,`stream`].forEach(e=>{!m[e]&&(m[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new P(`Response type '${e}' is not supported`,P.ERR_NOT_SUPPORT,n)})});let h=async e=>{if(e==null)return 0;if(M.isBlob(e))return e.size;if(M.isSpecCompliantForm(e))return(await new a(F.origin,{method:`POST`,body:e}).arrayBuffer()).byteLength;if(M.isArrayBufferView(e)||M.isArrayBuffer(e))return e.byteLength;if(M.isURLSearchParams(e)&&(e+=``),M.isString(e))return(await d(e)).byteLength},g=async(e,t)=>M.toFiniteNumber(e.getContentLength())??h(t);return async e=>{let{url:t,method:n,data:s,signal:l,cancelToken:d,timeout:_,onDownloadProgress:ee,onUploadProgress:v,responseType:y,headers:b,withCredentials:te=`same-origin`,fetchOptions:x,maxContentLength:S,maxBodyLength:ne}=rn(e),C=M.isNumber(S)&&S>-1,re=M.isNumber(ne)&&ne>-1,ie=t=>M.hasOwnProp(e,t)?e[t]:void 0,ae=i||fetch;y=y?(y+``).toLowerCase():`text`;let w=on([l,d&&d.toAbortSignal()],_),T=null,E=w&&w.unsubscribe&&(()=>{w.unsubscribe()}),D,O=null,oe=()=>new P(`Request body larger than maxBodyLength limit`,P.ERR_BAD_REQUEST,e,T);try{let i,l=ie(`auth`);if(l&&(i={username:M.getSafeProp(l,`username`)||``,password:M.getSafeProp(l,`password`)||``}),bn(t)){let e=new URL(t,F.origin);!i&&(e.username||e.password)&&(i={username:vn(e.username),password:vn(e.password)}),(e.username||e.password)&&(e.username=``,e.password=``,t=e.href)}if(i&&(b.delete(`authorization`),b.set(`Authorization`,`Basic `+btoa(_n((i.username||``)+`:`+(i.password||``))))),C&&typeof t==`string`&&t.startsWith(`data:`)&&pn(t)>S)throw new P(`maxContentLength size of `+S+` exceeded`,P.ERR_BAD_RESPONSE,e,T);if(re&&n!==`get`&&n!==`head`){let e=await h(s);if(typeof e==`number`&&isFinite(e)&&(D=e,e>ne))throw oe()}let d=re&&(M.isReadableStream(s)||M.isStream(s)),_=(e,t,n)=>un(e,hn,e=>{if(re&&e>ne)throw O=oe();t&&t(e)},n);if(f&&n!==`get`&&n!==`head`&&(v||d)){if(D??=await g(b,s),D!==0||d){let e=new a(t,{method:`POST`,body:s,duplex:`half`}),n;if(M.isFormData(s)&&(n=e.headers.get(`content-type`))&&b.setContentType(n),e.body){let[t,n]=v&&Vt(D,Bt(Ht(v)))||[];s=_(e.body,t,n)}}}else if(d&&!c&&u&&n!==`get`&&n!==`head`)s=_(s);else if(d&&c&&!f&&n!==`get`&&n!==`head`)throw new P(`Stream request bodies are not supported by the current fetch implementation`,P.ERR_NOT_SUPPORT,e,T);M.isString(te)||(te=te?`include`:`omit`);let se=c&&`credentials`in a.prototype;if(M.isFormData(s)){let e=b.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&b.delete(`content-type`)}b.set(`User-Agent`,`axios/`+mn,!1);let ce={...x,signal:w,method:n.toUpperCase(),headers:Je(b.normalize()),body:s,duplex:`half`,credentials:se?te:void 0};T=c&&new a(t,ce);let k=await(c?ae(T,x):ae(t,ce)),le=N.from(k.headers);if(C){let t=M.toFiniteNumber(le.getContentLength());if(t!=null&&t>S)throw new P(`maxContentLength size of `+S+` exceeded`,P.ERR_BAD_RESPONSE,e,T)}let ue=p&&(y===`stream`||y===`response`);if(p&&k.body&&(ee||C||ue&&E)){let t={};[`status`,`statusText`,`headers`].forEach(e=>{t[e]=k[e]});let n=M.toFiniteNumber(le.getContentLength()),[r,i]=ee&&Vt(n,Bt(Ht(ee),!0))||[],a=0;k=new o(un(k.body,hn,t=>{if(C&&(a=t,a>S))throw new P(`maxContentLength size of `+S+` exceeded`,P.ERR_BAD_RESPONSE,e,T);r&&r(t)},()=>{i&&i(),E&&E()}),t)}y||=`text`;let A=await m[M.findKey(m,y)||`text`](k,e);if(C&&!p&&!ue){let t;if(A!=null&&(typeof A.byteLength==`number`?t=A.byteLength:typeof A.size==`number`?t=A.size:typeof A==`string`&&(t=typeof r==`function`?new r().encode(A).byteLength:A.length)),typeof t==`number`&&t>S)throw new P(`maxContentLength size of `+S+` exceeded`,P.ERR_BAD_RESPONSE,e,T)}return!ue&&E&&E(),await new Promise((t,n)=>{It(t,n,{data:A,headers:N.from(k.headers),status:k.status,statusText:k.statusText,config:e,request:T})})}catch(t){if(E&&E(),w&&w.aborted&&w.reason instanceof P){let n=w.reason;throw n.config=e,T&&(n.request=T),t!==n&&(n.cause=t),n}throw O?(T&&!O.request&&(O.request=T),O):t instanceof P?(T&&!t.request&&(t.request=T),t):t&&t.name===`TypeError`&&/Load failed|fetch/i.test(t.message)?Object.assign(new P(`Network Error`,P.ERR_NETWORK,e,T,t&&t.response),{cause:t.cause||t}):P.from(t,t&&t.code,e,T,t&&t.response)}}},Sn=new Map,Cn=e=>{let t=e&&e.env||{},{fetch:n,Request:r,Response:i}=t,a=[r,i,n],o=a.length,s,c,l=Sn;for(;o--;)s=a[o],c=l.get(s),c===void 0&&l.set(s,c=o?new Map:xn(t)),l=c;return c};Cn();var wn={http:null,xhr:an,fetch:{get:Cn}};M.forEach(wn,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});var Tn=e=>`- ${e}`,En=e=>M.isFunction(e)||e===null||e===!1;function Dn(e,t){e=M.isArray(e)?e:[e];let{length:n}=e,r,i,a={};for(let o=0;o<n;o++){r=e[o];let n;if(i=r,!En(r)&&(i=wn[(n=String(r)).toLowerCase()],i===void 0))throw new P(`Unknown adapter '${n}'`);if(i&&(M.isFunction(i)||(i=i.get(t))))break;a[n||`#`+o]=i}if(!i){let e=Object.entries(a).map(([e,t])=>`adapter ${e} `+(t===!1?`is not supported by the environment`:`is not available in the build`));throw new P(`There is no suitable adapter to dispatch the request `+(n?e.length>1?`since :
|
|
4
|
+
`+e.map(Tn).join(`
|
|
5
|
+
`):` `+Tn(e[0]):`as no adapter specified`),`ERR_NOT_SUPPORT`)}return i}var On={getAdapter:Dn,adapters:wn};function kn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new L(null,e)}function An(e){return kn(e),e.headers=N.from(e.headers),e.data=Pt.call(e,e.transformRequest),[`post`,`put`,`patch`].indexOf(e.method)!==-1&&e.headers.setContentType(`application/x-www-form-urlencoded`,!1),On.getAdapter(e.adapter||Nt.adapter,e)(e).then(function(t){kn(e),e.response=t;try{t.data=Pt.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=N.from(t.headers),t},function(t){if(!Ft(t)&&(kn(e),t&&t.response)){e.response=t.response;try{t.response.data=Pt.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=N.from(t.response.headers)}return Promise.reject(t)})}var jn={};[`object`,`boolean`,`number`,`function`,`string`,`symbol`].forEach((e,t)=>{jn[e]=function(n){return typeof n===e||`a`+(t<1?`n `:` `)+e}});var Mn={};jn.transitional=function(e,t,n){function r(e,t){return`[Axios v`+mn+`] Transitional option '`+e+`'`+t+(n?`. `+n:``)}return(n,i,a)=>{if(e===!1)throw new P(r(i,` has been removed`+(t?` in `+t:``)),P.ERR_DEPRECATED);return t&&!Mn[i]&&(Mn[i]=!0,console.warn(r(i,` has been deprecated since v`+t+` and will be removed in the near future`))),e?e(n,i,a):!0}},jn.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function Nn(e,t,n){if(typeof e!=`object`)throw new P(`options must be an object`,P.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),i=r.length;for(;i-- >0;){let a=r[i],o=Object.prototype.hasOwnProperty.call(t,a)?t[a]:void 0;if(o){let t=e[a],n=t===void 0||o(t,a,e);if(n!==!0)throw new P(`option `+a+` must be `+n,P.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new P(`Unknown option `+a,P.ERR_BAD_OPTION)}}var Pn={assertOptions:Nn,validators:jn},z=Pn.validators,B=class{constructor(e){this.defaults=e||{},this.interceptors={request:new _t,response:new _t}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=(()=>{if(!t.stack)return``;let e=t.stack.indexOf(`
|
|
6
|
+
`);return e===-1?``:t.stack.slice(e+1)})();try{if(!e.stack)e.stack=n;else if(n){let t=n.indexOf(`
|
|
7
|
+
`),r=t===-1?-1:n.indexOf(`
|
|
8
|
+
`,t+1),i=r===-1?``:n.slice(r+1);String(e.stack).endsWith(i)||(e.stack+=`
|
|
9
|
+
`+n)}}catch{}}throw e}}_request(e,t){typeof e==`string`?(t||={},t.url=e):t=e||{},t=R(this.defaults,t);let{transitional:n,paramsSerializer:r,headers:i}=t;n!==void 0&&Pn.assertOptions(n,{silentJSONParsing:z.transitional(z.boolean),forcedJSONParsing:z.transitional(z.boolean),clarifyTimeoutError:z.transitional(z.boolean),legacyInterceptorReqResOrdering:z.transitional(z.boolean),advertiseZstdAcceptEncoding:z.transitional(z.boolean),validateStatusUndefinedResolves:z.transitional(z.boolean)},!1),r!=null&&(M.isFunction(r)?t.paramsSerializer={serialize:r}:Pn.assertOptions(r,{encode:z.function,serialize:z.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls===void 0?t.allowAbsoluteUrls=!0:t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls),Pn.assertOptions(t,{baseUrl:z.spelling(`baseURL`),withXsrfToken:z.spelling(`withXSRFToken`)},!0),t.method=(t.method||this.defaults.method||`get`).toLowerCase();let a=i&&M.merge(i.common,i[t.method]);i&&M.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`,`query`,`common`],e=>{delete i[e]}),t.headers=N.concat(a,i);let o=[],s=!0;this.interceptors.request.forEach(function(e){if(typeof e.runWhen==`function`&&e.runWhen(t)===!1)return;s&&=e.synchronous;let n=t.transitional||vt;n&&n.legacyInterceptorReqResOrdering?o.unshift(e.fulfilled,e.rejected):o.push(e.fulfilled,e.rejected)});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l,u=0,d;if(!s){let e=[An.bind(this),void 0];for(e.unshift(...o),e.push(...c),d=e.length,l=Promise.resolve(t);u<d;)l=l.then(e[u++],e[u++]);return l}d=o.length;let f=t;for(;u<d;){let e=o[u++],t=o[u++];try{f=e(f)}catch(e){t.call(this,e);break}}try{l=An.call(this,f)}catch(e){return Promise.reject(e)}for(u=0,d=c.length;u<d;)l=l.then(c[u++],c[u++]);return l}getUri(e){return e=R(this.defaults,e),gt(Qt(e.baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}};M.forEach([`delete`,`get`,`head`,`options`],function(e){B.prototype[e]=function(t,n){return this.request(R(n||{},{method:e,url:t,data:n&&M.hasOwnProp(n,`data`)?n.data:void 0}))}}),M.forEach([`post`,`put`,`patch`,`query`],function(e){function t(t){return function(n,r,i){return this.request(R(i||{},{method:e,headers:t?{"Content-Type":`multipart/form-data`}:{},url:n,data:r}))}}B.prototype[e]=t(),e!==`query`&&(B.prototype[e+`Form`]=t(!0))});var Fn=class e{constructor(e){if(typeof e!=`function`)throw TypeError(`executor must be a function.`);let t;this.promise=new Promise(function(e){t=e});let n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t,r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new L(e,r,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}};function In(e){return function(t){return e.apply(null,t)}}function Ln(e){return M.isObject(e)&&e.isAxiosError===!0}var Rn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Rn).forEach(([e,t])=>{Rn[t]=e});function zn(e){let t=new B(e),r=n(B.prototype.request,t);return M.extend(r,B.prototype,t,{allOwnKeys:!0}),M.extend(r,t,null,{allOwnKeys:!0}),r.create=function(t){return zn(R(e,t))},r}var V=zn(Nt);V.Axios=B,V.CanceledError=L,V.CancelToken=Fn,V.isCancel=Ft,V.VERSION=mn,V.toFormData=dt,V.AxiosError=P,V.Cancel=V.CanceledError,V.all=function(e){return Promise.all(e)},V.spread=In,V.isAxiosError=Ln,V.mergeConfig=R,V.AxiosHeaders=N,V.formToJSON=e=>jt(M.isHTMLForm(e)?new FormData(e):e),V.getAdapter=On.getAdapter,V.HttpStatusCode=Rn,V.default=V;var H=`https://faceapi.regulaforensics.com`.replace(/\/+$/,``),U=class{constructor(e,t=H,n=V){this.basePath=t,this.axios=n,e&&(this.configuration=e,this.basePath=e.basePath??t)}},Bn=class extends Error{constructor(e,t){super(t),this.field=e,this.name=`RequiredError`}},W={},G=`https://example.com`,K=function(e,t,n){if(n==null)throw new Bn(t,`Required parameter ${t} was null or undefined when calling ${e}.`)};function Vn(e,t,n=``){t!=null&&(typeof t==`object`?Array.isArray(t)?t.forEach(t=>Vn(e,t,n)):Object.keys(t).forEach(r=>Vn(e,t[r],`${n}${n===``?``:`.`}${r}`)):e.has(n)?e.append(n,t):e.set(n,t))}for(var q=function(e,...t){let n=new URLSearchParams(e.search);Vn(n,t),e.search=n.toString()},J=function(e,t,n){let r=typeof e!=`string`;return(r&&n&&n.isJsonMime?n.isJsonMime(t.headers[`Content-Type`]):r)?JSON.stringify(e===void 0?{}:e):e||``},Y=function(e){return e.pathname+e.search+e.hash},X=function(e,t,n,r){return(i=t,a=n)=>{let o={...e.options,url:(i.defaults.baseURL?``:r?.basePath??a)+e.url};return i.request(o)}},Hn=function(e){return{detect:async(t,n,r={})=>{K(`detect`,`detectRequest`,t);let i=new URL(`/api/detect`,G),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...r},s={};s[`Content-Type`]=`application/json`,n!=null&&(s[`X-RequestID`]=String(n)),q(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...r.headers},o.data=J(t,o,e),{url:Y(i),options:o}},match:async(t,n,r={})=>{K(`match`,`matchRequest`,t);let i=new URL(`/api/match`,G),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...r},s={};s[`Content-Type`]=`application/json`,n!=null&&(s[`X-RequestID`]=String(n)),q(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...r.headers},o.data=J(t,o,e),{url:Y(i),options:o}},matchAndSearch:async(t,n,r={})=>{K(`matchAndSearch`,`matchAndSearchRequest`,t);let i=new URL(`/api/match_and_search`,G),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...r},s={};s[`Content-Type`]=`application/json`,n!=null&&(s[`X-RequestID`]=String(n)),q(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...r.headers},o.data=J(t,o,e),{url:Y(i),options:o}}}},Un=function(e){let t=Hn(e);return{async detect(n,r,i){let a=await t.detect(n,r,i),o=e?.serverIndex??0,s=W[`MatchApi.detect`]?.[o]?.url;return(t,n)=>X(a,V,H,e)(t,s||n)},async match(n,r,i){let a=await t.match(n,r,i),o=e?.serverIndex??0,s=W[`MatchApi.match`]?.[o]?.url;return(t,n)=>X(a,V,H,e)(t,s||n)},async matchAndSearch(n,r,i){let a=await t.matchAndSearch(n,r,i),o=e?.serverIndex??0,s=W[`MatchApi.matchAndSearch`]?.[o]?.url;return(t,n)=>X(a,V,H,e)(t,s||n)}}},Wn=class extends U{detect(e,t,n){return Un(this.configuration).detect(e,t,n).then(e=>e(this.axios,this.basePath))}match(e,t,n){return Un(this.configuration).match(e,t,n).then(e=>e(this.axios,this.basePath))}matchAndSearch(e,t,n){return Un(this.configuration).matchAndSearch(e,t,n).then(e=>e(this.axios,this.basePath))}},Gn=function(e){return e.AGE=`Age`,e.EMOTION=`Emotion`,e.EYE_LEFT=`EyeLeft`,e.EYE_RIGHT=`EyeRight`,e.SMILE=`Smile`,e.GLASSES=`Glasses`,e.HEAD_COVERING=`HeadCovering`,e.FOREHEAD_COVERING=`ForeheadCovering`,e.MOUTH=`Mouth`,e.MEDICAL_MASK=`MedicalMask`,e.OCCLUSION=`Occlusion`,e.STRONG_MAKEUP=`StrongMakeup`,e.HEADPHONES=`Headphones`,e}({}),Kn=function(e){return e[e.ALIGN_3x4=0]=`ALIGN_3x4`,e[e.ALIGN_4x5=1]=`ALIGN_4x5`,e[e.ALIGN_2x3=2]=`ALIGN_2x3`,e[e.ALIGN_1x1=3]=`ALIGN_1x1`,e[e.ALIGN_7x9=4]=`ALIGN_7x9`,e}({}),qn=function(e){return e[e.IMAGE_CHARACTERISTICS=1]=`IMAGE_CHARACTERISTICS`,e[e.HEAD_SIZE_AND_POSITIONS=2]=`HEAD_SIZE_AND_POSITIONS`,e[e.FACE_QUALITY=3]=`FACE_QUALITY`,e[e.EYES_CHARACTERISTICS=4]=`EYES_CHARACTERISTICS`,e[e.SHADOWS_AND_LIGHTNING=5]=`SHADOWS_AND_LIGHTNING`,e[e.POSE_AND_EXPRESSION=6]=`POSE_AND_EXPRESSION`,e[e.HEAD_OCCLUSION=7]=`HEAD_OCCLUSION`,e[e.BACKGROUND=8]=`BACKGROUND`,e}({}),Jn=function(e){return e.IMAGE_CHARACTERISTICS=`ImageCharacteristics`,e.HEAD_SIZE_AND_POSITIONS=`HeadSizeAndPosition`,e.FACE_QUALITY=`FaceQuality`,e.EYES_CHARACTERISTICS=`EyesCharacteristics`,e.SHADOWS_AND_LIGHTNING=`ShadowsAndLightning`,e.POSE_AND_EXPRESSION=`PoseAndExpression`,e.HEAD_OCCLUSION=`HeadOcclusion`,e.BACKGROUND=`Background`,e}({}),Yn=function(e){return e[e.QUALITY_STATUS_FALSE=0]=`QUALITY_STATUS_FALSE`,e[e.QUALITY_STATUS_TRUE=1]=`QUALITY_STATUS_TRUE`,e[e.QUALITY_STATUS_UNDETERMINED=2]=`QUALITY_STATUS_UNDETERMINED`,e}({}),Xn=function(e){return e.IMAGE_WIDTH=`ImageWidth`,e.IMAGE_HEIGHT=`ImageHeight`,e.IMAGE_WIDTH_TO_HEIGHT=`ImageWidthToHeight`,e.IMAGE_CHANNELS_NUMBER=`ImageChannelsNumber`,e.PADDING_RATIO=`PaddingRatio`,e.FACE_MID_POINT_HORIZONTAL_POSITION=`FaceMidPointHorizontalPosition`,e.FACE_MID_POINT_VERTICAL_POSITION=`FaceMidPointVerticalPosition`,e.HEAD_WIDTH_RATIO=`HeadWidthRatio`,e.HEAD_HEIGHT_RATIO=`HeadHeightRatio`,e.EYES_DISTANCE=`EyesDistance`,e.YAW=`Yaw`,e.PITCH=`Pitch`,e.ROLL=`Roll`,e.BLUR_LEVEL=`BlurLevel`,e.NOISE_LEVEL=`NoiseLevel`,e.EYE_RIGHT_CLOSED=`EyeRightClosed`,e.EYE_LEFT_CLOSED=`EyeLeftClosed`,e.EYE_RIGHT_OCCLUDED=`EyeRightOccluded`,e.EYE_LEFT_OCCLUDED=`EyeLeftOccluded`,e.EYES_RED=`EyesRed`,e.EYE_RIGHT_COVERED_WITH_HAIR=`EyeRightCoveredWithHair`,e.EYE_LEFT_COVERED_WITH_HAIR=`EyeLeftCoveredWithHair`,e.OFF_GAZE=`OffGaze`,e.FACE_DYNAMIC_RANGE=`FaceDynamicRange`,e.UNNATURAL_SKIN_TONE=`UnnaturalSkinTone`,e.TOO_DARK=`TooDark`,e.TOO_LIGHT=`TooLight`,e.FACE_GLARE=`FaceGlare`,e.SHADOWS_ON_FACE=`ShadowsOnFace`,e.DARK_GLASSES=`DarkGlasses`,e.REFLECTION_ON_GLASSES=`ReflectionOnGlasses`,e.FRAMES_TOO_HEAVY=`FramesTooHeavy`,e.FACE_OCCLUDED=`FaceOccluded`,e.HEAD_COVERING=`HeadCovering`,e.BACKGROUND_UNIFORMITY=`BackgroundUniformity`,e.SHADOWS_ON_BACKGROUND=`ShadowsOnBackground`,e.OTHER_FACES=`OtherFaces`,e.SHOULDERS_POSE=`ShouldersPose`,e.EXPRESSION_LEVEL=`ExpressionLevel`,e.MOUTH_OPEN=`MouthOpen`,e.FOREHEAD_COVERING=`ForeheadCovering`,e.SMILE=`Smile`,e.STRONG_MAKEUP=`StrongMakeup`,e.HEADPHONES=`Headphones`,e.MEDICAL_MASK=`MedicalMask`,e.BACKGROUND_COLOR_MATCH=`BackgroundColorMatch`,e.ART_FACE=`ArtFace`,e.CONTACT_LENSES=`ContactLenses`,e}({}),Zn=function(e){return e.OLD_MODE=`OldMode`,e.QUALITY_FULL=`QualityFull`,e.QUALITY_ICAO=`QualityICAO`,e.QUALITY_VISA_SCHENGEN=`QualityVisaSchengen`,e.QUALITY_VISA_USA=`QualityVisaUSA`,e.CROP_CENTRAL_FACE=`CropCentralFace`,e.CROP_ALL_FACES=`CropAllFaces`,e.THUMBNAIL=`Thumbnail`,e.ATTRIBUTES_ALL=`AttributesAll`,e.EMPTY=``,e}({}),Qn=function(e){return e[e.FACER_OK=0]=`FACER_OK`,e[e.FR_IMAGE_EMPTY=1]=`FR_IMAGE_EMPTY`,e[e.FR_FACE_NOT_DETECTED=2]=`FR_FACE_NOT_DETECTED`,e[e.FR_LANDMARKS_NOT_DETECTED=3]=`FR_LANDMARKS_NOT_DETECTED`,e[e.FR_FACE_ALIGHNER_FAILED=4]=`FR_FACE_ALIGHNER_FAILED`,e[e.FR_DESCRIPTOR_EXTRACTOR_ERROR=5]=`FR_DESCRIPTOR_EXTRACTOR_ERROR`,e[e.FR_IMAGE_DECODE_ERROR=6]=`FR_IMAGE_DECODE_ERROR`,e[e.FR_INTERNAL_ERROR=7]=`FR_INTERNAL_ERROR`,e[e.FACER_CONFIG_ERROR=199]=`FACER_CONFIG_ERROR`,e[e.FACER_NO_LICENSE=200]=`FACER_NO_LICENSE`,e[e.FACER_IS_NOT_INITIALIZED=201]=`FACER_IS_NOT_INITIALIZED`,e[e.FACER_COMMAND_IS_NOT_SUPPORTED=202]=`FACER_COMMAND_IS_NOT_SUPPORTED`,e[e.FACER_COMMAND_PARAMS_READ_ERROR=203]=`FACER_COMMAND_PARAMS_READ_ERROR`,e[e.FACER_LESS_THAN_TWO_IMAGES_IN_REQUEST=224]=`FACER_LESS_THAN_TWO_IMAGES_IN_REQUEST`,e[e.FACER_VIDEO_DECODE_ERROR=227]=`FACER_VIDEO_DECODE_ERROR`,e[e.FACER_NOT_ENOUGH_FRAMES=228]=`FACER_NOT_ENOUGH_FRAMES`,e[e.FACER_OUTPUT_IS_NOT_DEFINED=229]=`FACER_OUTPUT_IS_NOT_DEFINED`,e[e.FACER_CLOSED_EYES_DETECTED=230]=`FACER_CLOSED_EYES_DETECTED`,e[e.FACER_LOW_QUALITY=231]=`FACER_LOW_QUALITY`,e[e.FACER_HIGH_ASYMMETRY=232]=`FACER_HIGH_ASYMMETRY`,e[e.FACER_FACE_OVER_EMOTIONAL=233]=`FACER_FACE_OVER_EMOTIONAL`,e[e.FACER_SUNGLASSES_DETECTED=234]=`FACER_SUNGLASSES_DETECTED`,e[e.FACER_SMALL_AGE=235]=`FACER_SMALL_AGE`,e[e.FACER_HEADDRESS_DETECTED=236]=`FACER_HEADDRESS_DETECTED`,e[e.FACER_FACES_NOT_MATCHED=237]=`FACER_FACES_NOT_MATCHED`,e[e.FACER_IMAGES_COUNT_LIMIT_EXCEEDED=238]=`FACER_IMAGES_COUNT_LIMIT_EXCEEDED`,e[e.FACER_MEDICINE_MASK_DETECTED=239]=`FACER_MEDICINE_MASK_DETECTED`,e[e.FACER_OCCLUSION_DETECTED=240]=`FACER_OCCLUSION_DETECTED`,e[e.FACER_FOREHEAD_GLASSES_DETECTED=242]=`FACER_FOREHEAD_GLASSES_DETECTED`,e[e.FACER_MOUTH_OPENED=243]=`FACER_MOUTH_OPENED`,e[e.FACER_ART_MASK_DETECTED=244]=`FACER_ART_MASK_DETECTED`,e[e.FACER_ELECTRONIC_DEVICE_DETECTED=245]=`FACER_ELECTRONIC_DEVICE_DETECTED`,e[e.FACER_TRACK_BREAK=246]=`FACER_TRACK_BREAK`,e[e.FACER_WRONG_GEO=247]=`FACER_WRONG_GEO`,e[e.FACER_WRONG_OF=248]=`FACER_WRONG_OF`,e[e.FACER_WRONG_VIEW=249]=`FACER_WRONG_VIEW`,e[e.FACER_TIMEOUT_LIVENESS_TRANSACTION=250]=`FACER_TIMEOUT_LIVENESS_TRANSACTION`,e[e.FACER_FAILED_LIVENESS_TRANSACTION=251]=`FACER_FAILED_LIVENESS_TRANSACTION`,e[e.FACER_ABORTED_LIVENESS_TRANSACTION=252]=`FACER_ABORTED_LIVENESS_TRANSACTION`,e[e.FACER_GENERAL_ERROR=253]=`FACER_GENERAL_ERROR`,e[e.FACER_PASSIVE_LIVENESS_FAIL=254]=`FACER_PASSIVE_LIVENESS_FAIL`,e}({}),$n=function(e){return e.IN=`in`,e.NOT_IN=`nin`,e}({}),er=function(e){return e[e.DOCUMENT_PRINTED=1]=`DOCUMENT_PRINTED`,e[e.DOCUMENT_RFID=2]=`DOCUMENT_RFID`,e[e.LIVE=3]=`LIVE`,e[e.DOCUMENT_WITH_LIVE=4]=`DOCUMENT_WITH_LIVE`,e[e.EXTERNAL=5]=`EXTERNAL`,e[e.GHOST=6]=`GHOST`,e[e.BARCODE=7]=`BARCODE`,e}({}),tr=function(e){return e[e.ACTIVE=0]=`ACTIVE`,e[e.PASSIVE=1]=`PASSIVE`,e[e.PASSIVE_WITH_BLINK=2]=`PASSIVE_WITH_BLINK`,e}({}),Z=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,nr=typeof Uint8Array>`u`?[]:new Uint8Array(256),rr=0;rr<Z.length;rr++)nr[Z.charCodeAt(rr)]=rr;var ir=function(e){var t=new Uint8Array(e),n,r=t.length,i=``;for(n=0;n<r;n+=3)i+=Z[t[n]>>2],i+=Z[(t[n]&3)<<4|t[n+1]>>4],i+=Z[(t[n+1]&15)<<2|t[n+2]>>6],i+=Z[t[n+2]&63];return r%3==2?i=i.substring(0,i.length-1)+`=`:r%3==1&&(i=i.substring(0,i.length-2)+`==`),i},ar=class{constructor(e,t,n){this.superClass=new Wn(e,t,n)}async match(e,t,n){for(let t of e.images)t.type||=er.LIVE,typeof t.data!=`string`&&(t.data=ir(t.data));return(await this.superClass.match(e,t,n)).data}async detect(e,t,n){return e.image&&typeof e.image!=`string`&&(e.image=ir(e.image)),(await this.superClass.detect(e,t,n)).data}},or=function(e){return{createGroup:async(t,n,r={})=>{K(`createGroup`,`groupToCreate`,t);let i=new URL(`/api/groups`,G),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...r},s={};s[`Content-Type`]=`application/json`,n!=null&&(s[`X-RequestID`]=String(n)),q(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...r.headers},o.data=J(t,o,e),{url:Y(i),options:o}},deleteGroup:async(t,n,r={})=>{K(`deleteGroup`,`groupId`,t);let i=`/api/groups/{groupId}`.replace(`{groupId}`,encodeURIComponent(String(t))),a=new URL(i,G),o;e&&(o=e.baseOptions);let s={method:`DELETE`,...o,...r},c={};n!=null&&(c[`X-RequestID`]=String(n)),q(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},{url:Y(a),options:s}},getAllGroups:async(t,n,r,i={})=>{let a=new URL(`/api/groups`,G),o;e&&(o=e.baseOptions);let s={method:`GET`,...o,...i},c={},l={};n!==void 0&&(l.page=n),r!==void 0&&(l.size=r),t!=null&&(c[`X-RequestID`]=String(t)),q(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...i.headers},{url:Y(a),options:s}},getAllPersonsByGroupId:async(t,n,r,i,a={})=>{K(`getAllPersonsByGroupId`,`groupId`,t);let o=`/api/groups/{groupId}/persons`.replace(`{groupId}`,encodeURIComponent(String(t))),s=new URL(o,G),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...a},u={},d={};r!==void 0&&(d.page=r),i!==void 0&&(d.size=i),n!=null&&(u[`X-RequestID`]=String(n)),q(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...a.headers},{url:Y(s),options:l}},getGroup:async(t,n,r={})=>{K(`getGroup`,`groupId`,t);let i=`/api/groups/{groupId}`.replace(`{groupId}`,encodeURIComponent(String(t))),a=new URL(i,G),o;e&&(o=e.baseOptions);let s={method:`GET`,...o,...r},c={};n!=null&&(c[`X-RequestID`]=String(n)),q(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},{url:Y(a),options:s}},updateGroup:async(t,n,r,i={})=>{K(`updateGroup`,`groupId`,t),K(`updateGroup`,`groupToCreate`,n);let a=`/api/groups/{groupId}`.replace(`{groupId}`,encodeURIComponent(String(t))),o=new URL(a,G),s;e&&(s=e.baseOptions);let c={method:`PUT`,...s,...i},l={};l[`Content-Type`]=`application/json`,r!=null&&(l[`X-RequestID`]=String(r)),q(o,{});let u=s&&s.headers?s.headers:{};return c.headers={...l,...u,...i.headers},c.data=J(n,c,e),{url:Y(o),options:c}},updatePersonsInGroup:async(t,n,r,i={})=>{K(`updatePersonsInGroup`,`groupId`,t),K(`updatePersonsInGroup`,`updateGroup`,n);let a=`/api/groups/{groupId}/persons`.replace(`{groupId}`,encodeURIComponent(String(t))),o=new URL(a,G),s;e&&(s=e.baseOptions);let c={method:`PUT`,...s,...i},l={};l[`Content-Type`]=`application/json`,r!=null&&(l[`X-RequestID`]=String(r)),q(o,{});let u=s&&s.headers?s.headers:{};return c.headers={...l,...u,...i.headers},c.data=J(n,c,e),{url:Y(o),options:c}}}},Q=function(e){let t=or(e);return{async createGroup(n,r,i){let a=await t.createGroup(n,r,i),o=e?.serverIndex??0,s=W[`GroupApi.createGroup`]?.[o]?.url;return(t,n)=>X(a,V,H,e)(t,s||n)},async deleteGroup(n,r,i){let a=await t.deleteGroup(n,r,i),o=e?.serverIndex??0,s=W[`GroupApi.deleteGroup`]?.[o]?.url;return(t,n)=>X(a,V,H,e)(t,s||n)},async getAllGroups(n,r,i,a){let o=await t.getAllGroups(n,r,i,a),s=e?.serverIndex??0,c=W[`GroupApi.getAllGroups`]?.[s]?.url;return(t,n)=>X(o,V,H,e)(t,c||n)},async getAllPersonsByGroupId(n,r,i,a,o){let s=await t.getAllPersonsByGroupId(n,r,i,a,o),c=e?.serverIndex??0,l=W[`GroupApi.getAllPersonsByGroupId`]?.[c]?.url;return(t,n)=>X(s,V,H,e)(t,l||n)},async getGroup(n,r,i){let a=await t.getGroup(n,r,i),o=e?.serverIndex??0,s=W[`GroupApi.getGroup`]?.[o]?.url;return(t,n)=>X(a,V,H,e)(t,s||n)},async updateGroup(n,r,i,a){let o=await t.updateGroup(n,r,i,a),s=e?.serverIndex??0,c=W[`GroupApi.updateGroup`]?.[s]?.url;return(t,n)=>X(o,V,H,e)(t,c||n)},async updatePersonsInGroup(n,r,i,a){let o=await t.updatePersonsInGroup(n,r,i,a),s=e?.serverIndex??0,c=W[`GroupApi.updatePersonsInGroup`]?.[s]?.url;return(t,n)=>X(o,V,H,e)(t,c||n)}}},sr=class extends U{createGroup(e,t,n){return Q(this.configuration).createGroup(e,t,n).then(e=>e(this.axios,this.basePath))}deleteGroup(e,t,n){return Q(this.configuration).deleteGroup(e,t,n).then(e=>e(this.axios,this.basePath))}getAllGroups(e,t,n,r){return Q(this.configuration).getAllGroups(e,t,n,r).then(e=>e(this.axios,this.basePath))}getAllPersonsByGroupId(e,t,n,r,i){return Q(this.configuration).getAllPersonsByGroupId(e,t,n,r,i).then(e=>e(this.axios,this.basePath))}getGroup(e,t,n){return Q(this.configuration).getGroup(e,t,n).then(e=>e(this.axios,this.basePath))}updateGroup(e,t,n,r){return Q(this.configuration).updateGroup(e,t,n,r).then(e=>e(this.axios,this.basePath))}updatePersonsInGroup(e,t,n,r){return Q(this.configuration).updatePersonsInGroup(e,t,n,r).then(e=>e(this.axios,this.basePath))}},cr=class{constructor(e,t,n){this.superClass=new sr(e,t,n)}async createGroup(e,t,n){let r={...e,metadata:e?.metadata?e.metadata:{}};return(await this.superClass.createGroup(r,t,n)).data}async deleteGroup(e,t,n){await this.superClass.deleteGroup(e,t,n)}async getAllGroups(e,t,n,r){return(await this.superClass.getAllGroups(n,e,t,r)).data}async getAllPersonsByGroupId(e,t,n,r,i){return(await this.superClass.getAllPersonsByGroupId(n,r,e,t,i)).data}async getGroup(e,t,n){return(await this.superClass.getGroup(e,t,n)).data}async updateGroup(e,t,n,r){await this.superClass.updateGroup(e,t,n,r)}async updatePersonsInGroup(e,t,n,r){await this.superClass.updatePersonsInGroup(e,t,n,r)}},lr=function(e){return{addImageToPerson:async(t,n,r,i={})=>{K(`addImageToPerson`,`personId`,t),K(`addImageToPerson`,`addImageToPersonRequest`,n);let a=`/api/persons/{personId}/images`.replace(`{personId}`,encodeURIComponent(String(t))),o=new URL(a,G),s;e&&(s=e.baseOptions);let c={method:`POST`,...s,...i},l={};l[`Content-Type`]=`application/json`,r!=null&&(l[`X-RequestID`]=String(r)),q(o,{});let u=s&&s.headers?s.headers:{};return c.headers={...l,...u,...i.headers},c.data=J(n,c,e),{url:Y(o),options:c}},createPerson:async(t,n,r={})=>{K(`createPerson`,`personFields`,t);let i=new URL(`/api/persons`,G),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...r},s={};s[`Content-Type`]=`application/json`,n!=null&&(s[`X-RequestID`]=String(n)),q(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...r.headers},o.data=J(t,o,e),{url:Y(i),options:o}},deleteImageOfPerson:async(t,n,r,i={})=>{K(`deleteImageOfPerson`,`personId`,t),K(`deleteImageOfPerson`,`imageId`,n);let a=`/api/persons/{personId}/images/{imageId}`.replace(`{personId}`,encodeURIComponent(String(t))).replace(`{imageId}`,encodeURIComponent(String(n))),o=new URL(a,G),s;e&&(s=e.baseOptions);let c={method:`DELETE`,...s,...i},l={};r!=null&&(l[`X-RequestID`]=String(r)),q(o,{});let u=s&&s.headers?s.headers:{};return c.headers={...l,...u,...i.headers},{url:Y(o),options:c}},deletePerson:async(t,n,r={})=>{K(`deletePerson`,`personId`,t);let i=`/api/persons/{personId}`.replace(`{personId}`,encodeURIComponent(String(t))),a=new URL(i,G),o;e&&(o=e.baseOptions);let s={method:`DELETE`,...o,...r},c={};n!=null&&(c[`X-RequestID`]=String(n)),q(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},{url:Y(a),options:s}},getAllGroupsByPersonId:async(t,n,r,i,a={})=>{K(`getAllGroupsByPersonId`,`personId`,t);let o=`/api/persons/{personId}/groups`.replace(`{personId}`,encodeURIComponent(String(t))),s=new URL(o,G),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...a},u={},d={};r!==void 0&&(d.page=r),i!==void 0&&(d.size=i),n!=null&&(u[`X-RequestID`]=String(n)),q(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...a.headers},{url:Y(s),options:l}},getAllImagesByPersonId:async(t,n,r,i,a={})=>{K(`getAllImagesByPersonId`,`personId`,t);let o=`/api/persons/{personId}/images`.replace(`{personId}`,encodeURIComponent(String(t))),s=new URL(o,G),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...a},u={},d={};r!==void 0&&(d.page=r),i!==void 0&&(d.size=i),n!=null&&(u[`X-RequestID`]=String(n)),q(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...a.headers},{url:Y(s),options:l}},getImageOfPerson:async(t,n,r,i={})=>{K(`getImageOfPerson`,`personId`,t),K(`getImageOfPerson`,`imageId`,n);let a=`/api/persons/{personId}/images/{imageId}`.replace(`{personId}`,encodeURIComponent(String(t))).replace(`{imageId}`,encodeURIComponent(String(n))),o=new URL(a,G),s;e&&(s=e.baseOptions);let c={method:`GET`,...s,...i},l={};r!=null&&(l[`X-RequestID`]=String(r)),q(o,{});let u=s&&s.headers?s.headers:{};return c.headers={...l,...u,...i.headers},{url:Y(o),options:c}},getPerson:async(t,n,r={})=>{K(`getPerson`,`personId`,t);let i=`/api/persons/{personId}`.replace(`{personId}`,encodeURIComponent(String(t))),a=new URL(i,G),o;e&&(o=e.baseOptions);let s={method:`GET`,...o,...r},c={};n!=null&&(c[`X-RequestID`]=String(n)),q(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},{url:Y(a),options:s}},updatePerson:async(t,n,r,i={})=>{K(`updatePerson`,`personId`,t),K(`updatePerson`,`personToUpdateFields`,n);let a=`/api/persons/{personId}`.replace(`{personId}`,encodeURIComponent(String(t))),o=new URL(a,G),s;e&&(s=e.baseOptions);let c={method:`PUT`,...s,...i},l={};l[`Content-Type`]=`application/json`,r!=null&&(l[`X-RequestID`]=String(r)),q(o,{});let u=s&&s.headers?s.headers:{};return c.headers={...l,...u,...i.headers},c.data=J(n,c,e),{url:Y(o),options:c}}}},$=function(e){let t=lr(e);return{async addImageToPerson(n,r,i,a){let o=await t.addImageToPerson(n,r,i,a),s=e?.serverIndex??0,c=W[`PersonApi.addImageToPerson`]?.[s]?.url;return(t,n)=>X(o,V,H,e)(t,c||n)},async createPerson(n,r,i){let a=await t.createPerson(n,r,i),o=e?.serverIndex??0,s=W[`PersonApi.createPerson`]?.[o]?.url;return(t,n)=>X(a,V,H,e)(t,s||n)},async deleteImageOfPerson(n,r,i,a){let o=await t.deleteImageOfPerson(n,r,i,a),s=e?.serverIndex??0,c=W[`PersonApi.deleteImageOfPerson`]?.[s]?.url;return(t,n)=>X(o,V,H,e)(t,c||n)},async deletePerson(n,r,i){let a=await t.deletePerson(n,r,i),o=e?.serverIndex??0,s=W[`PersonApi.deletePerson`]?.[o]?.url;return(t,n)=>X(a,V,H,e)(t,s||n)},async getAllGroupsByPersonId(n,r,i,a,o){let s=await t.getAllGroupsByPersonId(n,r,i,a,o),c=e?.serverIndex??0,l=W[`PersonApi.getAllGroupsByPersonId`]?.[c]?.url;return(t,n)=>X(s,V,H,e)(t,l||n)},async getAllImagesByPersonId(n,r,i,a,o){let s=await t.getAllImagesByPersonId(n,r,i,a,o),c=e?.serverIndex??0,l=W[`PersonApi.getAllImagesByPersonId`]?.[c]?.url;return(t,n)=>X(s,V,H,e)(t,l||n)},async getImageOfPerson(n,r,i,a){let o=await t.getImageOfPerson(n,r,i,a),s=e?.serverIndex??0,c=W[`PersonApi.getImageOfPerson`]?.[s]?.url;return(t,n)=>X(o,V,H,e)(t,c||n)},async getPerson(n,r,i){let a=await t.getPerson(n,r,i),o=e?.serverIndex??0,s=W[`PersonApi.getPerson`]?.[o]?.url;return(t,n)=>X(a,V,H,e)(t,s||n)},async updatePerson(n,r,i,a){let o=await t.updatePerson(n,r,i,a),s=e?.serverIndex??0,c=W[`PersonApi.updatePerson`]?.[s]?.url;return(t,n)=>X(o,V,H,e)(t,c||n)}}},ur=class extends U{addImageToPerson(e,t,n,r){return $(this.configuration).addImageToPerson(e,t,n,r).then(e=>e(this.axios,this.basePath))}createPerson(e,t,n){return $(this.configuration).createPerson(e,t,n).then(e=>e(this.axios,this.basePath))}deleteImageOfPerson(e,t,n,r){return $(this.configuration).deleteImageOfPerson(e,t,n,r).then(e=>e(this.axios,this.basePath))}deletePerson(e,t,n){return $(this.configuration).deletePerson(e,t,n).then(e=>e(this.axios,this.basePath))}getAllGroupsByPersonId(e,t,n,r,i){return $(this.configuration).getAllGroupsByPersonId(e,t,n,r,i).then(e=>e(this.axios,this.basePath))}getAllImagesByPersonId(e,t,n,r,i){return $(this.configuration).getAllImagesByPersonId(e,t,n,r,i).then(e=>e(this.axios,this.basePath))}getImageOfPerson(e,t,n,r){return $(this.configuration).getImageOfPerson(e,t,n,r).then(e=>e(this.axios,this.basePath))}getPerson(e,t,n){return $(this.configuration).getPerson(e,t,n).then(e=>e(this.axios,this.basePath))}updatePerson(e,t,n,r){return $(this.configuration).updatePerson(e,t,n,r).then(e=>e(this.axios,this.basePath))}},dr=class{constructor(e,t,n){this.superClass=new ur(e,t,n)}async createPerson(e,t,n){let r={...e,metadata:e?.metadata?e.metadata:{}};return(await this.superClass.createPerson(r,t,n)).data}async addImageToPerson(e,t,n,r){return t?.image?.content&&typeof t.image.content!=`string`&&(t.image.content=ir(t.image.content)),(await this.superClass.addImageToPerson(e,t,n,r)).data}async deleteImageOfPerson(e,t,n,r){await this.superClass.deleteImageOfPerson(t,e,n,r)}async deletePerson(e,t,n){await this.superClass.deletePerson(e,t,n)}async getAllGroupsByPersonId(e,t,n,r,i){return(await this.superClass.getAllGroupsByPersonId(n,r,e,t,i)).data}async getAllImagesByPersonId(e,t,n,r,i){return(await this.superClass.getAllImagesByPersonId(n,r,e,t,i)).data}async getImageOfPerson(e,t,n,r){return(await this.superClass.getImageOfPerson(t,e,n,r)).data}async getPerson(e,t,n){return(await this.superClass.getPerson(e,t,n)).data}async updatePerson(e,t,n,r){await this.superClass.updatePerson(e,t,n,r)}},fr=function(e){return{search:async(t,n,r,i={})=>{K(`search`,`searchRequest`,t);let a=new URL(`/api/search`,G),o;e&&(o=e.baseOptions);let s={method:`POST`,...o,...i},c={},l={};r!==void 0&&(l.withImages=r),c[`Content-Type`]=`application/json`,n!=null&&(c[`X-RequestID`]=String(n)),q(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...i.headers},s.data=J(t,s,e),{url:Y(a),options:s}}}},pr=function(e){let t=fr(e);return{async search(n,r,i,a){let o=await t.search(n,r,i,a),s=e?.serverIndex??0,c=W[`SearchApi.search`]?.[s]?.url;return(t,n)=>X(o,V,H,e)(t,c||n)}}},mr=class extends U{search(e,t,n,r){return pr(this.configuration).search(e,t,n,r).then(e=>e(this.axios,this.basePath))}},hr=class{constructor(e,t,n){this.superClass=new mr(e,t,n)}async search(e,t,n,r){return e?.image?.content&&typeof e.image.content!=`string`&&(e.image.content=ir(e.image.content)),(await this.superClass.search(e,t,n,r)).data}},gr=function(e){return{deleteLivenessTransaction:async(t,n,r={})=>{K(`deleteLivenessTransaction`,`transactionId`,t),K(`deleteLivenessTransaction`,`tag`,n);let i=new URL(`/api/v2/liveness`,G),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...r},s={},c={};t!==void 0&&(c.transactionId=t),n!==void 0&&(c.tag=n),q(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...r.headers},{url:Y(i),options:o}},getLivenessTransactionInfo:async(t,n={})=>{K(`getLivenessTransactionInfo`,`transactionId`,t);let r=new URL(`/api/v2/liveness`,G),i;e&&(i=e.baseOptions);let a={method:`GET`,...i,...n},o={},s={};t!==void 0&&(s.transactionId=t),q(r,s);let c=i&&i.headers?i.headers:{};return a.headers={...o,...c,...n.headers},{url:Y(r),options:a}}}},_r=function(e){let t=gr(e);return{async deleteLivenessTransaction(n,r,i){let a=await t.deleteLivenessTransaction(n,r,i),o=e?.serverIndex??0,s=W[`Liveness20Api.deleteLivenessTransaction`]?.[o]?.url;return(t,n)=>X(a,V,H,e)(t,s||n)},async getLivenessTransactionInfo(n,r){let i=await t.getLivenessTransactionInfo(n,r),a=e?.serverIndex??0,o=W[`Liveness20Api.getLivenessTransactionInfo`]?.[a]?.url;return(t,n)=>X(i,V,H,e)(t,o||n)}}},vr=class extends U{deleteLivenessTransaction(e,t,n){return _r(this.configuration).deleteLivenessTransaction(e,t,n).then(e=>e(this.axios,this.basePath))}getLivenessTransactionInfo(e,t){return _r(this.configuration).getLivenessTransactionInfo(e,t).then(e=>e(this.axios,this.basePath))}},yr=class{constructor(e,t,n){this.superClass=new vr(e,t,n)}async getLivenessTransactionInfo(e,t){return(await this.superClass.getLivenessTransactionInfo(e,t)).data}},br=function(e){return{healthz:async(t,n={})=>{let r=new URL(`/api/healthz`,G),i;e&&(i=e.baseOptions);let a={method:`GET`,...i,...n},o={};t!=null&&(o[`X-RequestID`]=String(t)),q(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},{url:Y(r),options:a}},readyz:async(t,n={})=>{let r=new URL(`/api/readyz`,G),i;e&&(i=e.baseOptions);let a={method:`GET`,...i,...n},o={};t!=null&&(o[`X-RequestID`]=String(t)),q(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},{url:Y(r),options:a}}}},xr=function(e){let t=br(e);return{async healthz(n,r){let i=await t.healthz(n,r),a=e?.serverIndex??0,o=W[`HealthcheckApi.healthz`]?.[a]?.url;return(t,n)=>X(i,V,H,e)(t,o||n)},async readyz(n,r){let i=await t.readyz(n,r),a=e?.serverIndex??0,o=W[`HealthcheckApi.readyz`]?.[a]?.url;return(t,n)=>X(i,V,H,e)(t,o||n)}}},Sr=class extends U{healthz(e,t){return xr(this.configuration).healthz(e,t).then(e=>e(this.axios,this.basePath))}readyz(e,t){return xr(this.configuration).readyz(e,t).then(e=>e(this.axios,this.basePath))}},Cr=class{constructor(e,t,n){this.superClass=new Sr(e,t,n)}async healthz(e,t){return(await this.superClass.healthz(e,t)).data}async readyz(e,t){return(await this.superClass.readyz(e,t)).data}},wr=class{constructor(e,t=H,n=V){this.basePath=t,this.axios=n,this.matchApi=new ar(e,t,n),this.groupApi=new cr(e,t,n),this.personApi=new dr(e,t,n),this.searchApi=new hr(e,t,n),this.livenessApi=new yr(e,t,n),this.healthcheckApi=new Cr(e,t,n)}},Tr=class{constructor(e={}){this.apiKey=e.apiKey,this.username=e.username,this.password=e.password,this.accessToken=e.accessToken,this.basePath=e.basePath,this.serverIndex=e.serverIndex,this.baseOptions={...e.baseOptions,headers:{...e.baseOptions?.headers}},this.formDataCtor=e.formDataCtor}isJsonMime(e){return e!==null&&(RegExp(`^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$`,`i`).test(e)||e.toLowerCase()===`application/json-patch+json`)}};exports.Configuration=Tr,exports.FaceAttribute=Gn,exports.FaceImageQualityAlignType=Kn,exports.FaceImageQualityGroups=qn,exports.FaceImageQualityGroupsStrings=Jn,exports.FaceImageQualityStatus=Yn,exports.FaceQualityConfigName=Xn,exports.FaceQualityScenarios=Zn,exports.FaceSDKResultCode=Qn,exports.FaceSdk=wr,exports.FilterOp=$n,exports.GroupApi=cr,exports.HealthcheckApi=Cr,exports.ImageSource=er,exports.Liveness20Api=yr,exports.LivenessType=tr,exports.MatchApi=ar,exports.PersonApi=dr,exports.SearchApi=hr;
|