@regulaforensics/facesdk-webclient 8.5.884-nightly → 8.5.886-rc
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 +5 -5
- package/dist/index.d.ts +12 -164
- package/dist/index.js +55 -20
- package/package.json +11 -11
package/dist/index.cjs
CHANGED
|
@@ -1,9 +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=>typeof e==`string`&&(e===`__proto__`||e===`constructor`||e===`prototype`),l=(e,t,n)=>e===Object.prototype||!n&&t===null,u=e=>{if(!Object.isExtensible(e))return!1;let t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&t.push(...Object.getOwnPropertySymbols(e)),t.every(t=>{if(c(t))return!1;let n=Object.getOwnPropertyDescriptor(e,t);return!!n&&n.configurable&&n.writable===!0})},d=(e,t)=>{let n=e,r=[];for(;n!=null;){if(r.indexOf(n)!==-1)return!1;r.push(n);let a=i(n);if(l(n,a,n===e))return!1;if(s(n,t))return!0;n=a}return!1},f=(e,t)=>e!=null&&d(e,t)?e[t]:void 0,p=e=>{if(e==null||typeof e!=`object`&&typeof e!=`function`)return e;let t=i(e);if(t===null&&u(e))return e;let n=Object.create(null),r=Object.create(null),a=[],o=e;for(;o!=null&&a.indexOf(o)===-1;){a.push(o);let u=o===e?t:i(o);if(l(o,u,o===e))break;let d=Object.getOwnPropertyNames(o);Object.getOwnPropertySymbols&&d.push(...Object.getOwnPropertySymbols(o));for(let t of d)c(t)||s(r,t)||(n[t]=e[t],r[t]=!0);o=u}return n},m=(e=>t=>{let n=r.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),h=e=>(e=e.toLowerCase(),t=>m(t)===e),g=e=>t=>typeof t===e,{isArray:_}=Array,v=g(`undefined`);function y(e){return e!==null&&!v(e)&&e.constructor!==null&&!v(e.constructor)&&S(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var b=h(`ArrayBuffer`);function x(e){let t;return t=typeof ArrayBuffer<`u`&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&b(e.buffer),t}var ee=g(`string`),S=g(`function`),C=g(`number`),w=e=>typeof e==`object`&&!!e,te=e=>e===!0||e===!1,T=e=>{if(!w(e))return!1;let t=i(e);return(t===null||t===Object.prototype||i(t)===null)&&!d(e,o)&&!d(e,a)},ne=e=>{if(!w(e)||y(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},re=h(`Date`),ie=h(`File`),E=e=>!!(e&&e.uri!==void 0),D=e=>e&&e.getParts!==void 0,O=h(`Blob`),ae=h(`FileList`),oe=h(`Set`),se=e=>w(e)&&S(e.pipe);function ce(){return typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{}}var k=ce(),A=k.FormData===void 0?void 0:k.FormData,j=e=>{if(!e)return!1;if(A&&e instanceof A)return!0;let t=i(e);if(!t||t===Object.prototype||!S(e.append))return!1;let n=m(e);return n===`formdata`||n===`object`&&S(e.toString)&&e.toString()===`[object FormData]`},le=h(`URLSearchParams`),[ue,M,de,fe]=[`ReadableStream`,`Request`,`Response`,`Headers`].map(h),pe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``);function me(e,t,{allOwnKeys:n=!1}={}){if(e==null)return;let r,i;if(typeof e!=`object`&&(e=[e]),_(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(y(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 he(e,t){if(y(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 N=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:global,ge=e=>!v(e)&&e!==N;function _e(...e){let{caseless:t,skipUndefined:n}=ge(this)&&this||{},r={},i=(e,i)=>{if(i===`__proto__`||i===`constructor`||i===`prototype`)return;let a=t&&typeof i==`string`&&he(r,i)||i,o=s(r,a)?r[a]:void 0;T(o)&&T(e)?r[a]=_e(o,e):T(e)?r[a]=_e({},e):_(e)?r[a]=e.slice():(!n||!v(e))&&(r[a]=e)};for(let t=0,n=e.length;t<n;t++){let n=e[t];if(!n||y(n)||(me(n,i),typeof n!=`object`||_(n)))continue;let r=Object.getOwnPropertySymbols(n);for(let e=0;e<r.length;e++){let t=r[e];ke.call(n,t)&&i(n[t],t)}}return r}var ve=(e,t,r,{allOwnKeys:i}={})=>(me(t,(t,i)=>{r&&S(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),ye=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),be=(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)},xe=(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},Se=(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},Ce=e=>{if(!e)return null;if(_(e))return e;let t=e.length;if(!C(t))return null;let n=Array(t);for(;t-->0;)n[t]=e[t];return n},we=(e=>t=>e&&t instanceof e)(typeof Uint8Array<`u`&&i(Uint8Array)),Te=(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])}},Ee=(e,t)=>{let n,r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},De=h(`HTMLFormElement`),Oe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),{propertyIsEnumerable:ke}=Object.prototype,Ae=h(`RegExp`),je=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};me(n,(n,i)=>{let a;(a=t(n,i,e))!==!1&&(r[i]=a||n)}),Object.defineProperties(e,r)},Me=e=>{je(e,(t,n)=>{if(S(e)&&[`arguments`,`caller`,`callee`].includes(n))return!1;let r=e[n];S(r)
|
|
2
|
-
`).forEach(function(e){i=e.indexOf(`:`),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim();let a=P.hasOwnProp(t,n);!n||a&&P.hasOwnProp(Ue,n)||(n===`set-cookie`?a?t[n].push(r):t[n]=[r]:t[n]=a?t[n]+`, `+r:r)}),t};function Ge(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 Ke=RegExp(`[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+`,`g`),qe=RegExp(`[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+`,`g`);function Je(e,t){return P.isArray(e)?e.map(e=>Je(e,t)):Ge(String(e).replace(t,``))}var Ye=e=>Je(e,Ke),Xe=e=>Je(e,qe);function Ze(e){let t=Object.create(null);return P.forEach(e.toJSON(),(e,n)=>{t[n]=Xe(e)}),t}var Qe=Symbol(`internals`);function $e(e){return e&&String(e).trim().toLowerCase()}function et(e){return e===!1||e==null?e:P.isArray(e)?e.map(et):Ye(String(e))}function tt(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 nt=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function rt(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)}function it(e){let t=e.length-1;if(t<1||e.charCodeAt(0)!==34||e.charCodeAt(t)!==34)return e;let n=``;for(let r=1;r<t;r++){let i=e.charCodeAt(r);if(i===34||i===92&&(r+=1,r>=t))return e;n+=e[r]}return n}function at(e){let t=Object.create(null),n=String(e),r=0,i=!1,a=!1;function o(e){let i=rt(n.slice(r,e)),a=i.indexOf(`=`);if(a<1)return;let o=rt(i.slice(0,a));if(!nt.test(o))return;let s=o.toLowerCase();if(s===`__proto__`||s===`constructor`||s===`prototype`)return;let c=rt(i.slice(a+1));t[s]=it(c)}for(let e=0;e<n.length;e++){let t=n.charCodeAt(e);i?a?a=!1:t===92?a=!0:t===34&&(i=!1):t===34?i=!0:(t===44||t===59)&&(o(e),r=e+1)}return o(n.length),t}var ot=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function st(e,t,n,r,i){if(P.isFunction(r))return r.call(this,t,n);if(i&&(t=n),P.isString(t)){if(P.isString(r))return t.indexOf(r)!==-1;if(P.isRegExp(r))return r.test(t)}}function ct(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function lt(e,t){let n=P.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 F=class{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function i(e,t,n){let i=$e(t);if(!i)return;let a=P.findKey(r,i);(!a||r[a]===void 0||n===!0||n===void 0&&r[a]!==!1)&&(r[a||t]=et(e))}let a=(e,t)=>P.forEach(e,(e,n)=>i(e,n,t));if(P.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(P.isString(e)&&(e=e.trim())&&!ot(e))a(We(e),t);else if(P.isObject(e)&&P.isSafeIterable(e)){let n=Object.create(null),r,i;for(let t of e){if(!P.isArray(t))throw TypeError(`Object iterator must return a key-value pair`);i=t[0],P.hasOwnProp(n,i)?(r=n[i],n[i]=P.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=$e(e),e){let n=P.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(t===!0)return tt(e);if(P.isFunction(t))return t.call(this,e,n);if(P.isRegExp(t))return t.exec(e);throw TypeError(`parser must be boolean|regexp|function`)}}}has(e,t){if(e=$e(e),e){let n=P.findKey(this,e);return
|
|
3
|
-
`)}getSetCookie(){let e=this.get(`set-cookie`);return P.isArray(e)?e:e==null||e===!1?[]:[e]}get[Symbol.toStringTag](){return`AxiosHeaders`}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return at(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[Qe]=this[Qe]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=$e(e);t[r]||(lt(n,e),t[r]=!0)}return P.isArray(e)?e.forEach(r):r(e),this}};F.accessor([`Content-Type`,`Content-Length`,`Accept`,`Accept-Encoding`,`User-Agent`,`Authorization`]),P.reduceDescriptors(F.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),P.freezeMethods(F);var ut=`[REDACTED ****]`;function dt(e){if(P.hasOwnProp(e,`toJSON`))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(P.hasOwnProp(t,`toJSON`))return!0;t=Object.getPrototypeOf(t)}return!1}function ft(e,t){let n=new Set(t.map(e=>String(e).toLowerCase())),r=[],i=e=>{if(typeof e!=`object`||!e||P.isBuffer(e))return e;if(r.indexOf(e)!==-1)return;e instanceof F&&(e=e.toJSON()),r.push(e);let t;if(P.isArray(e))t=[],e.forEach((e,n)=>{let r=i(e);P.isUndefined(r)||(t[n]=r)});else{if(!P.isPlainObject(e)&&dt(e))return r.pop(),e;t=Object.create(null);for(let[r,a]of Object.entries(e)){let e=n.has(r.toLowerCase())?ut:i(a);P.isUndefined(e)||(t[r]=e)}}return r.pop(),t};return i(e)}function pt(e){try{return String(e)}catch{return``}}function mt(e){return e.errors.map(e=>{try{return e&&e.message?pt(e.message):pt(e)}catch{return``}}).filter(Boolean).join(`; `)||e.name||`AggregateError`}var I=class e extends Error{static from(t,n,r,i,a,o){let s=t.message;!s&&P.isArray(t.errors)&&t.errors.length&&(s=mt(t));let c=new e(s,n||t.code,r,i,a);return Object.defineProperty(c,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),c.name=t.name,t.status!=null&&c.status==null&&(c.status=t.status),o&&Object.assign(c,o),c}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&&P.hasOwnProp(e,`redact`)?e.redact:void 0,n=P.isArray(t)&&t.length>0?ft(e,t):P.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}}};I.ERR_BAD_OPTION_VALUE=`ERR_BAD_OPTION_VALUE`,I.ERR_BAD_OPTION=`ERR_BAD_OPTION`,I.ECONNABORTED=`ECONNABORTED`,I.ETIMEDOUT=`ETIMEDOUT`,I.ECONNREFUSED=`ECONNREFUSED`,I.ERR_NETWORK=`ERR_NETWORK`,I.ERR_FR_TOO_MANY_REDIRECTS=`ERR_FR_TOO_MANY_REDIRECTS`,I.ERR_DEPRECATED=`ERR_DEPRECATED`,I.ERR_BAD_RESPONSE=`ERR_BAD_RESPONSE`,I.ERR_BAD_REQUEST=`ERR_BAD_REQUEST`,I.ERR_CANCELED=`ERR_CANCELED`,I.ERR_NOT_SUPPORT=`ERR_NOT_SUPPORT`,I.ERR_INVALID_URL=`ERR_INVALID_URL`,I.ERR_FORM_DATA_DEPTH_EXCEEDED=`ERR_FORM_DATA_DEPTH_EXCEEDED`;function ht(e){return P.isPlainObject(e)||P.isArray(e)}function gt(e){return P.endsWith(e,`[]`)?e.slice(0,-2):e}function _t(e,t,n){return e?e.concat(t).map(function(e,t){return e=gt(e),!n&&t?`[`+e+`]`:e}).join(n?`.`:``):t}function vt(e){return P.isArray(e)&&!e.some(ht)}var yt=P.toFlatObject(P,{},null,function(e){return/^is[A-Z]/.test(e)});function bt(e,t,n){if(!P.isObject(e))throw TypeError(`target must be an object`);t||=new FormData;let r=(e,t)=>{let r=P.getSafeProp(n,e);return P.isUndefined(r)?t:r},i=r(`metaTokens`,!0),a=r(`visitor`)||h,o=r(`dots`,!1),s=r(`indexes`,!1),c=r(`Blob`)||typeof Blob<`u`&&Blob,l=r(`maxDepth`,100),u=c&&P.isSpecCompliantForm(t),d=[];if(!P.isFunction(a))throw TypeError(`visitor must be a function`);function f(e){if(e===null)return``;if(P.isDate(e))return e.toISOString();if(P.isBoolean(e))return e.toString();if(!u&&P.isBlob(e))throw new I(`Blob is not supported. Use a Buffer instead.`);if(P.isArrayBuffer(e)||P.isTypedArray(e)){if(u&&typeof c==`function`)return new c([e]);throw new I(`Blob is not supported. Use a Buffer instead.`,I.ERR_NOT_SUPPORT)}return e}function p(e){if(e>l)throw new I(`Object is too deeply nested (`+e+` levels). Max depth: `+l,I.ERR_FORM_DATA_DEPTH_EXCEEDED)}function m(e,t){if(l===1/0)return JSON.stringify(e);let n=[];return JSON.stringify(e,function(e,r){if(!P.isObject(r))return r;for(;n.length&&n[n.length-1]!==this;)n.pop();return n.push(r),p(t+n.length-1),r})}function h(e,n,r){let a=e;if(P.isReactNative(t)&&P.isReactNativeBlob(e))return t.append(_t(r,n,o),f(e)),!1;if(e&&!r&&typeof e==`object`){if(P.endsWith(n,`{}`))n=i?n:n.slice(0,-2),e=m(e,1);else if(P.isArray(e)&&vt(e)||(P.isFileList(e)||P.endsWith(n,`[]`))&&(a=P.toArray(e)))return n=gt(n),a.forEach(function(e,r){!(P.isUndefined(e)||e===null)&&t.append(s===!0?_t([n],r,o):s===null?n:n+`[]`,f(e))}),!1}return ht(e)?!0:(t.append(_t(r,n,o),f(e)),!1)}let g=Object.assign(yt,{defaultVisitor:h,convertValue:f,isVisitable:ht});function _(e,n,r=0){if(!P.isUndefined(e)){if(p(r),d.indexOf(e)!==-1)throw Error(`Circular reference detected in `+n.join(`.`));d.push(e),P.forEach(e,function(e,i){(!(P.isUndefined(e)||e===null)&&a.call(t,e,P.isString(i)?i.trim():i,n,g))===!0&&_(e,n?n.concat(i):[i],r+1)}),d.pop()}}if(!P.isObject(e))throw TypeError(`data must be an object`);return _(e),t}function xt(e){let t={"!":`%21`,"'":`%27`,"(":`%28`,")":`%29`,"~":`%7E`,"%20":`+`};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function St(e,t){this._pairs=[],e&&bt(e,this,t)}var Ct=St.prototype;Ct.append=function(e,t){this._pairs.push([e,t])},Ct.toString=function(e){let t=e?t=>e.call(this,t,xt):xt;return this._pairs.map(function(e){return t(e[0])+`=`+t(e[1])},``).join(`&`)};function wt(e){return encodeURIComponent(e).replace(/%3A/gi,`:`).replace(/%24/g,`$`).replace(/%2C/gi,`,`).replace(/%20/g,`+`)}function Tt(e,t,n){if(!t)return e;e||=``;let r=P.isFunction(n)?{serialize:n}:n,i=P.getSafeProp(r,`encode`)||wt,a=P.getSafeProp(r,`serialize`),o;if(o=a?a(t,r):P.isURLSearchParams(t)?t.toString():new St(t,r).toString(i),o){let t=e.indexOf(`#`);t!==-1&&(e=e.slice(0,t)),e+=(e.indexOf(`?`)===-1?`?`:`&`)+o}return e}var Et=Symbol(`internals`);function Dt(e){return e?e.length:0}function Ot(e){if(e)for(;e.length&&e[e.length-1]===null;)e.pop()}function kt(e,t){let n=e.handlers,r=Dt(n);n===t.handlersRef?r!==t.handlersLength&&(r?t.handlerEntries.forEach(function(e,r){n[e.index]!==e.handler&&t.handlerEntries.delete(r)}):t.handlerEntries.clear()):(t.handlersRef=n,t.handlerEntries.clear()),t.handlersLength=r}var At=class{constructor(){this.handlers=[],this[Et]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(e,t,n){let r={fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null},i=this[Et];this.handlers??=[],kt(this,i);let a=i.nextId++;return this.handlers.push(r),i.handlerEntries.set(a,{handler:r,index:this.handlers.length-1}),i.handlersLength=this.handlers.length,a}eject(e){let t=this[Et];kt(this,t);let n=t.handlerEntries.get(e);if(n){if(t.handlerEntries.delete(e),this.handlers[n.index]!==n.handler)return;this.handlers[n.index]=null,t.iterationDepth||(Ot(this.handlers),t.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],kt(this,this[Et]))}forEach(e){let t=this[Et];kt(this,t),t.iterationDepth++;try{P.forEach(this.handlers,function(t){t!==null&&e(t)})}finally{--t.iterationDepth||(kt(this,t),Ot(this.handlers),t.handlersLength=Dt(this.handlers))}}},jt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},Mt={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<`u`?URLSearchParams:St,FormData:typeof FormData<`u`?FormData:null,Blob:typeof Blob<`u`?Blob:null},protocols:[`http`,`https`,`file`,`blob`,`url`,`data`]},Nt=t({hasBrowserEnv:()=>Pt,hasStandardBrowserEnv:()=>It,hasStandardBrowserWebWorkerEnv:()=>Lt,navigator:()=>Ft,origin:()=>Rt}),Pt=typeof window<`u`&&typeof document<`u`,Ft=typeof navigator==`object`&&navigator||void 0,It=Pt&&(!Ft||[`ReactNative`,`NativeScript`,`NS`].indexOf(Ft.product)<0),Lt=typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope&&typeof self.importScripts==`function`,Rt=Pt&&window.location.href||`http://localhost`,L={...Nt,...Mt};function zt(e,t){return bt(e,new L.classes.URLSearchParams,{visitor:function(e,t,n,r){return L.isNode&&P.isBuffer(e)?(this.append(t,e.toString(`base64`)),!1):r.defaultVisitor.apply(this,arguments)},...t})}var Bt=100;function Vt(e){if(e>Bt)throw new I(`FormData field is too deeply nested (`+e+` levels). Max depth: `+Bt,I.ERR_FORM_DATA_DEPTH_EXCEEDED)}function Ht(e){let t=[],n=/[^.[\]]+|\[([^.[\]]*)]/g,r;for(;(r=n.exec(e))!==null;)Vt(t.length),t.push(r[0]===`[]`?``:r[1]||r[0]);return t}function Ut(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 Wt(e){function t(e,n,r,i){Vt(i);let a=e[i++];if(a===`__proto__`)return!0;let o=Number.isFinite(+a),s=i>=e.length;return a=!a&&P.isArray(r)?r.length:a,s?(P.hasOwnProp(r,a)?r[a]=P.isArray(r[a])?r[a].concat(n):[r[a],n]:r[a]=n,!o):((!P.hasOwnProp(r,a)||!P.isObject(r[a]))&&(r[a]=[]),t(e,n,r[a],i)&&P.isArray(r[a])&&(r[a]=Ut(r[a])),!o)}if(P.isFormData(e)&&P.isFunction(e.entries)){let n={};return P.forEachEntry(e,(e,r)=>{t(Ht(e),r,n,0)}),n}return null}var Gt=Object.freeze([`get`,`delete`,`head`,`options`,`post`,`put`,`patch`,`purge`,`link`,`unlink`,`query`]),R=(e,t)=>e!=null&&P.hasOwnProp(e,t)?e[t]:void 0;function Kt(e,t,n){if(P.isString(e))try{return(t||JSON.parse)(e),P.trim(e)}catch(e){if(e.name!==`SyntaxError`)throw e}return(n||JSON.stringify)(e)}var qt={transitional:jt,adapter:[`xhr`,`http`,`fetch`],transformRequest:[function(e,t){let n=t.getContentType()||``,r=n.indexOf(`application/json`)>-1,i=P.isObject(e);if(i&&P.isHTMLForm(e)&&(e=new FormData(e)),P.isFormData(e))return r?JSON.stringify(Wt(e)):e;if(P.isArrayBuffer(e)||P.isBuffer(e)||P.isStream(e)||P.isFile(e)||P.isBlob(e)||P.isReadableStream(e))return e;if(P.isArrayBufferView(e))return e.buffer;if(P.isURLSearchParams(e))return t.setContentType(`application/x-www-form-urlencoded;charset=utf-8`,!1),e.toString();let a;if(i){let t=R(this,`formSerializer`);if(n.indexOf(`application/x-www-form-urlencoded`)>-1)return zt(e,t).toString();if((a=P.isFileList(e))||n.indexOf(`multipart/form-data`)>-1){let n=R(this,`env`),r=n&&n.FormData;return bt(a?{"files[]":e}:e,r&&new r,t)}}return i||r?(t.setContentType(`application/json`,!1),Kt(e)):e}],transformResponse:[function(e){let t=R(this,`transitional`)||qt.transitional,n=t&&t.forcedJSONParsing,r=R(this,`responseType`),i=r===`json`;if(P.isResponse(e)||P.isReadableStream(e))return e;if(e&&P.isString(e)&&(n&&!r||i)){let n=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e,R(this,`parseReviver`))}catch(e){if(n)throw e.name===`SyntaxError`?I.from(e,I.ERR_BAD_RESPONSE,this,null,R(this,`response`)):e}}return e}],timeout:0,xsrfCookieName:`XSRF-TOKEN`,xsrfHeaderName:`X-XSRF-TOKEN`,maxContentLength:-1,maxBodyLength:-1,env:{FormData:L.classes.FormData,Blob:L.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:`application/json, text/plain, */*`,"Content-Type":void 0}}};P.forEach(Gt,e=>{qt.headers[e]={}});function Jt(e,t){let n=this||qt,r=t||n,i=F.from(r.headers),a=r.data;return P.forEach(e,function(e){a=e.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function Yt(e){return!!(e&&e.__CANCEL__)}var Xt=class extends I{constructor(e,t,n){super(e??`canceled`,I.ERR_CANCELED,t,n),this.name=`CanceledError`,this.__CANCEL__=!0}};function Zt(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new I(`Request failed with status code `+n.status,n.status>=400&&n.status<500?I.ERR_BAD_REQUEST:I.ERR_BAD_RESPONSE,n.config,n.request,n))}var Qt=/[\t\n\r]/g;function $t(e){if(typeof e!=`string`)return e;let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t).replace(Qt,``)}function en(e){let t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||``}function tn(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 nn(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),(...e)=>o(e)]}var rn=(e,t,n=3)=>{let r=0,i=tn(50,250);return nn(n=>{if(!n||!P.isNumber(n.loaded))return;let a=n.loaded,o=n.lengthComputable?n.total:void 0,s=Math.max(0,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)},an=(e,t)=>{let n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},on=(e,t=P.asap)=>(...n)=>t(()=>e(...n)),sn=L.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,L.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(L.origin),L.navigator&&/(msie|trident)/i.test(L.navigator.userAgent)):()=>!0,cn=L.hasStandardBrowserEnv?{write(e,t,n,r,i,a,o){if(typeof document>`u`)return;let s=[`${e}=${encodeURIComponent(t)}`];P.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),P.isString(r)&&s.push(`path=${r}`),P.isString(i)&&s.push(`domain=${i}`),a===!0&&s.push(`secure`),P.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)try{return decodeURIComponent(r.slice(i+1))}catch{return r.slice(i+1)}}return null},remove(e){this.write(e,``,Date.now()-864e5,`/`)}}:{write(){},read(){return null},remove(){}};function ln(e){return typeof e==`string`&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function un(e,t){if(!t)return e;let n=e.length;for(;n>0&&e.charCodeAt(n-1)===47;)n--;return e.slice(0,n)+`/`+t.replace(/^\/+/,``)}var dn=/^https?:(?!\/\/)/i;function fn(e){return e&&e.replace(/(^|&)([^=&]*=)?[^&]+/g,(e,t,n=``)=>`${t}${n}${ut}`)}function pn(e){let t=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${ut}@`),n=t.indexOf(`#`),r=(n===-1?t:t.slice(0,n)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${ut}`);return n===-1?r:`${r}#${fn(t.slice(n+1))}`}function mn(e,t){if(typeof e==`string`){let n=$t(e);if(dn.test(n))throw new I(`Invalid URL ${JSON.stringify(pn(n))}: missing "//" after protocol`,I.ERR_INVALID_URL,t)}}function hn(e,t,n,r){mn(t,r);let i=!ln(t);return e&&(i||n===!1)?(mn(e,r),un(e,t)):t}var gn=e=>e instanceof F?{...e}:e,_n=e=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(e).concat(Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable)):Object.keys(e);function z(e,t){e||={},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 P.isPlainObject(e)&&P.isPlainObject(t)?P.merge.call({caseless:r},e,t):P.isPlainObject(t)?P.merge({},t):P.isArray(t)?t.slice():t}function i(e,t,n,i){if(!P.isUndefined(t))return r(e,t,n,i);if(!P.isUndefined(e))return r(void 0,e,n,i)}function a(e,t){if(!P.isUndefined(t))return r(void 0,t)}function o(e,t){if(!P.isUndefined(t))return r(void 0,t);if(!P.isUndefined(e))return r(void 0,e)}function s(n){let r=P.hasOwnProp(t,`transitional`)?t.transitional:void 0;if(!P.isUndefined(r)){if(P.isPlainObject(r)){if(P.hasOwnProp(r,n))return r[n]}else return}let i=P.hasOwnProp(e,`transitional`)?e.transitional:void 0;if(P.isPlainObject(i)&&P.hasOwnProp(i,n))return i[n]}function c(n,i,a){if(P.hasOwnProp(t,a))return r(n,i);if(P.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,timeoutErrorMessage: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(gn(e),gn(t),n,!0)};return P.forEach(_n({...e,...t}),function(r){if(r===`__proto__`||r===`constructor`||r===`prototype`)return;let a=P.hasOwnProp(l,r)?l[r]:i,o=a(P.hasOwnProp(e,r)?e[r]:void 0,P.hasOwnProp(t,r)?t[r]:void 0,r);P.isUndefined(o)&&a!==c||(n[r]=o)}),P.hasOwnProp(t,`validateStatus`)&&P.isUndefined(t.validateStatus)&&s(`validateStatusUndefinedResolves`)===!1&&(P.hasOwnProp(e,`validateStatus`)?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}var vn=[`content-type`,`content-length`];function yn(e,t,n){n===`content-only`?Object.entries(t||{}).forEach(([t,n])=>{vn.includes(t.toLowerCase())&&e.set(t,n)}):e.set(t)}var bn=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16)));function xn(e){let t=z({},e),n=e=>P.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=F.from(s),t.url=Tt(hn(l,d,u,t),n(`params`),n(`paramsSerializer`)),c){let t=P.getSafeProp(c,`username`)||``,n=P.getSafeProp(c,`password`)||``;try{s.set(`Authorization`,`Basic `+btoa(t+`:`+(n?bn(n):``)))}catch(t){throw I.from(t,I.ERR_BAD_OPTION_VALUE,e)}}if(P.isFormData(r)){let e=P.getSafeProp(r,`getHeaders`);L.hasStandardBrowserEnv||L.hasStandardBrowserWebWorkerEnv||P.isReactNative(r)?s.setContentType(void 0):P.isFunction(e)&&yn(s,e.call(r),n(`formDataHeaderPolicy`))}if(L.hasStandardBrowserEnv&&(P.isFunction(i)&&(i=i(t)),i===!0||i==null&&sn(t.url))){let e=a&&o&&cn.read(o);e&&s.set(a,e)}return t}var Sn=typeof XMLHttpRequest<`u`&&function(e){return new Promise(function(t,n){let r=xn(e),i=r.data,a=F.from(r.headers).normalize(),{responseType:o,onUploadProgress:s,onDownloadProgress:c}=r,l,u,d,f,p,m;function h(){f&&f(),p&&p(),r.cancelToken&&r.cancelToken.unsubscribe(l),r.signal&&r.signal.removeEventListener(`abort`,l)}let g=new XMLHttpRequest;g.open(r.method.toUpperCase(),r.url,!0),g.timeout=r.timeout;function _(i){if(!g)return;if(g.status===0&&(en($t(r.url))||en(L.origin))!==`file`&&!(g.responseURL&&g.responseURL.startsWith(`file:`))){n(new I(`Request aborted`,I.ECONNABORTED,e,g)),h(),g=null;return}try{i?m&&m(i):p&&p()}catch(e){setTimeout(()=>{throw e})}if(!g)return;let a=F.from(`getAllResponseHeaders`in g&&g.getAllResponseHeaders());Zt(function(e){t(e),h()},function(e){n(e),h()},{data:!o||o===`text`||o===`json`?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:a,config:e,request:g}),g=null}`onloadend`in g?g.onloadend=_:g.onreadystatechange=function(){g&&g.readyState===4&&(g.status!==0||g.responseURL&&g.responseURL.startsWith(`file:`))&&setTimeout(_)},g.onabort=function(){g&&=(n(new I(`Request aborted`,I.ECONNABORTED,e,g)),h(),null)},g.onerror=function(t){let r=new I(t&&t.message?t.message:`Network Error`,I.ERR_NETWORK,e,g);r.event=t||null,n(r),h(),g=null},g.ontimeout=function(){let t=r.timeout?`timeout of `+r.timeout+`ms exceeded`:`timeout exceeded`,i=r.transitional||jt;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new I(t,i.clarifyTimeoutError?I.ETIMEDOUT:I.ECONNABORTED,e,g)),h(),g=null},i===void 0&&a.setContentType(null),`setRequestHeader`in g&&P.forEach(Ze(a),function(e,t){g.setRequestHeader(t,e)}),P.isUndefined(r.withCredentials)||(g.withCredentials=!!r.withCredentials),o&&o!==`json`&&(g.responseType=r.responseType),c&&([d,p,m]=rn(c,!0),g.addEventListener(`progress`,d)),s&&g.upload&&([u,f]=rn(s),g.upload.addEventListener(`progress`,u),g.upload.addEventListener(`loadend`,f)),(r.cancelToken||r.signal)&&(l=t=>{g&&=(n(!t||t.type?new Xt(null,e,g):t),g.abort(),h(),null)},r.cancelToken&&r.cancelToken.subscribe(l),r.signal&&(r.signal.aborted?l():r.signal.addEventListener(`abort`,l)));let v=en(r.url);v&&!L.protocols.includes(v)?(n(new I(`Unsupported protocol `+v+`:`,I.ERR_BAD_REQUEST,e)),h()):g.send(i||null)})},Cn=(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 I?t:new Xt(t instanceof Error?t.message:t))}},a=t&&setTimeout(()=>{a=null,i(new I(`timeout of ${t}ms exceeded`,I.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=>{r||(e.aborted?i.call(e):e.addEventListener(`abort`,i,{once:!0}))});let{signal:s}=n;return s.unsubscribe=()=>P.asap(o),s},wn=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},Tn=async function*(e,t){for await(let n of En(e))yield*wn(n,t)},En=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()}},Dn=(e,t,n,r)=>{let i=Tn(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})},On=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,kn=(e,t,n)=>t+2<n&&On(e.charCodeAt(t+1))&&On(e.charCodeAt(t+2)),An=e=>e<=57?e-48:(e&223)-55,jn=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===47||e===45||e===95,Mn=e=>e===9||e===10||e===12||e===13||e===32,Nn=e=>{let t=Math.floor(e/4),n=e%4;return t*3+(n===2?1:n===3?2:0)},Pn=e=>{let t=e.length,n=0;return t>0&&e.charCodeAt(t-1)===61&&(n++,t>1&&e.charCodeAt(t-2)===61&&n++),Math.floor((t-n)*3/4)},Fn=e=>{let t=e.length,n=0,r=0,i=!1;for(let a=0;a<t;a++){let o=e.charCodeAt(a);o===37&&kn(e,a,t)&&(o=An(e.charCodeAt(a+1))*16+An(e.charCodeAt(a+2)),a+=2),!Mn(o)&&(o===61?r++:!jn(o)||r>0?i=!0:n++)}return i||r>2||r>0&&(n+r)%4!=0||n%4==1?Pn(e):Nn(n)},In=(e,t)=>{if(!e||typeof e!=`string`||!e.startsWith(`data:`))return 0;let n=e.indexOf(`,`);if(n<0)return 0;let r=e.slice(5,n),i=e.slice(n+1);if(/;base64/i.test(r))return t(i);let a=0;for(let e=0,t=i.length;e<t;e++){let n=i.charCodeAt(e);if(n===37&&kn(i,e,t))a+=1,e+=2;else if(n<128)a+=1;else if(n<2048)a+=2;else if(n>=55296&&n<=56319&&e+1<t){let t=i.charCodeAt(e+1);t>=56320&&t<=57343?(a+=4,e++):a+=3}else a+=3}return a};function Ln(e){let t=typeof e==`string`?e.indexOf(`#`):-1;return In(t===-1?e:e.slice(0,t),Fn)}var Rn=`1.20.0`,zn=65536,Bn={cache:`default`,redirect:`follow`,referrer:`about:client`,referrerPolicy:``,mode:`cors`,integrity:``,keepalive:!1,priority:`auto`,window:null},{isFunction:Vn}=P,Hn=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))),Un=e=>{if(!P.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},Wn=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Gn=e=>{let t=e.indexOf(`://`),n=e;return t!==-1&&(n=n.slice(t+3)),n.includes(`@`)||n.includes(`:`)},Kn=e=>{let t=P.global!==void 0&&P.global!==null?P.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=P.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);let{fetch:i,Request:a,Response:o}=e,s=i?Vn(i):typeof fetch==`function`,c=Vn(a),l=Vn(o);if(!s)return!1;let u=s&&Vn(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&&Wn(()=>{let e=!1,t=new a(L.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&&Wn(()=>P.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 I(`Response type '${e}' is not supported`,I.ERR_NOT_SUPPORT,n)})});let h=async e=>{if(e==null)return 0;if(P.isBlob(e))return e.size;if(P.isSpecCompliantForm(e))return(await new a(L.origin,{method:`POST`,body:e}).arrayBuffer()).byteLength;if(P.isArrayBufferView(e)||P.isArrayBuffer(e))return e.byteLength;if(P.isURLSearchParams(e)&&(e+=``),P.isString(e))return(await d(e)).byteLength},g=async(e,t)=>P.toFiniteNumber(e.getContentLength())??h(t);return async e=>{let{url:t,method:n,data:s,signal:l,cancelToken:d,timeout:_,onDownloadProgress:v,onUploadProgress:y,responseType:b,headers:x,withCredentials:ee=`same-origin`,fetchOptions:S,maxContentLength:C,maxBodyLength:w,maxRedirects:te}=xn(e),T=P.isNumber(C)&&C>-1,ne=P.isNumber(w)&&w>-1,re=t=>P.hasOwnProp(e,t)?e[t]:void 0,ie=i||fetch;b=b?(b+``).toLowerCase():`text`;let E=Cn([l,d&&d.toAbortSignal()],_),D=null,O=E&&E.unsubscribe&&(()=>{E.unsubscribe()}),ae,oe=null,se=()=>new I(`Request body larger than maxBodyLength limit`,I.ERR_BAD_REQUEST,e,D);try{let i,l=re(`auth`);if(l&&(i={username:P.getSafeProp(l,`username`)||``,password:P.getSafeProp(l,`password`)||``}),Gn(t)){let e=new URL(t,L.origin);!i&&(e.username||e.password)&&(i={username:Un(e.username),password:Un(e.password)}),(e.username||e.password)&&(e.username=``,e.password=``,t=e.href)}if(i&&(x.delete(`authorization`),x.set(`Authorization`,`Basic `+btoa(Hn((i.username||``)+`:`+(i.password||``))))),T&&typeof t==`string`&&t.startsWith(`data:`)&&Ln(t)>C)throw new I(`maxContentLength size of `+C+` exceeded`,I.ERR_BAD_RESPONSE,e,D);if(ne&&n!==`get`&&n!==`head`){let e=await h(s);if(typeof e==`number`&&isFinite(e)&&(ae=e,e>w))throw se()}let d=ne&&(P.isReadableStream(s)||P.isStream(s)),_=(e,t,n)=>Dn(e,zn,e=>{if(ne&&e>w)throw oe=se();t&&t(e)},n);if(f&&n!==`get`&&n!==`head`&&(y||d)){if(ae??=await g(x,s),ae!==0||d){let e=new a(t,{method:`POST`,body:s,duplex:`half`}),n;if(P.isFormData(s)&&(n=e.headers.get(`content-type`))&&x.setContentType(n),e.body){let[t,n]=y&&an(ae,rn(on(y)))||[];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 I(`Stream request bodies are not supported by the current fetch implementation`,I.ERR_NOT_SUPPORT,e,D);P.isString(ee)||(ee=ee?`include`:`omit`);let ce=c&&`credentials`in a.prototype;if(P.isFormData(s)){let e=x.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&x.delete(`content-type`)}x.set(`User-Agent`,`axios/`+Rn,!1);let k=S==null?S:Object.assign(Object.create(null),S);k&&(delete k.body,delete k.headers,delete k.method,delete k.signal,delete k.duplex,delete k.credentials);let A=Object.assign(Object.create(null),k,{signal:E,method:n.toUpperCase(),headers:Ze(x.normalize()),body:s,duplex:`half`,credentials:ce?ee:void 0});c&&(P.forEach(Bn,(e,t)=>{A[t]===void 0&&(A[t]=e)}),A.signal===void 0&&(A.signal=null),A.body===void 0&&(A.body=null)),te===0&&(A.redirect=`manual`,k&&(k.redirect=`manual`)),D=c&&new a(t,A);let j=await(c?ie(D,k):ie(t,A)),le=F.from(j.headers);if(T){let t=P.toFiniteNumber(le.getContentLength());if(t!=null&&t>C)throw new I(`maxContentLength size of `+C+` exceeded`,I.ERR_BAD_RESPONSE,e,D)}let ue=p&&(b===`stream`||b===`response`);if(p&&j.body&&(v||T||ue&&O)){let t={};[`status`,`statusText`,`headers`].forEach(e=>{t[e]=j[e]});let n=P.toFiniteNumber(le.getContentLength()),[r,i]=v&&an(n,rn(on(v),!0))||[],a=0;j=new o(Dn(j.body,zn,t=>{if(T&&(a=t,a>C))throw new I(`maxContentLength size of `+C+` exceeded`,I.ERR_BAD_RESPONSE,e,D);r&&r(t)},()=>{i&&i(),O&&O()}),t)}b||=`text`;let M=await m[P.findKey(m,b)||`text`](j,e);if(T&&!p&&!ue){let t;if(M!=null&&(typeof M.byteLength==`number`?t=M.byteLength:typeof M.size==`number`?t=M.size:typeof M==`string`&&(t=typeof r==`function`?new r().encode(M).byteLength:M.length)),typeof t==`number`&&t>C)throw new I(`maxContentLength size of `+C+` exceeded`,I.ERR_BAD_RESPONSE,e,D)}return!ue&&O&&O(),await new Promise((t,n)=>{Zt(t,n,{data:M,headers:F.from(j.headers),status:j.status,statusText:j.statusText,config:e,request:D})})}catch(t){if(O&&O(),E&&E.aborted&&E.reason instanceof I){let n=E.reason;throw n.config=e,D&&(n.request=D),t!==n&&Object.defineProperty(n,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),n}if(oe)throw D&&!oe.request&&(oe.request=D),oe;if(t instanceof I)throw D&&!t.request&&(t.request=D),t;if(t&&t.name===`TypeError`&&/Load failed|fetch/i.test(t.message)){let n=new I(`Network Error`,I.ERR_NETWORK,e,D,t&&t.response);throw Object.defineProperty(n,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),n}throw I.from(t,t&&t.code,e,D,t&&t.response)}}},qn=new Map,Jn=e=>{let t=e&&e.env||{},{fetch:n,Request:r,Response:i}=t,a=[r,i,n],o=a.length,s,c,l=qn;for(;o--;)s=a[o],c=l.get(s),c===void 0&&l.set(s,c=o?new Map:Kn(t)),l=c;return c};Jn();var Yn={http:null,xhr:Sn,fetch:{get:Jn}};P.forEach(Yn,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});var Xn=e=>`- ${e}`,Zn=e=>P.isFunction(e)||e===null||e===!1;function Qn(e,t){e=P.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,!Zn(r)&&(i=Yn[(n=String(r)).toLowerCase()],i===void 0))throw new I(`Unknown adapter '${n}'`);if(i&&(P.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 I(`There is no suitable adapter to dispatch the request `+(n?e.length>1?`since :
|
|
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=>typeof e==`string`&&(e===`__proto__`||e===`constructor`||e===`prototype`),l=(e,t,n)=>e===Object.prototype||!n&&t===null,u=e=>{if(!Object.isExtensible(e))return!1;let t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&t.push(...Object.getOwnPropertySymbols(e)),t.every(t=>{if(c(t))return!1;let n=Object.getOwnPropertyDescriptor(e,t);return!!n&&n.configurable&&n.writable===!0})},d=(e,t)=>{let n=e,r=[];for(;n!=null;){if(r.indexOf(n)!==-1)return!1;r.push(n);let a=i(n);if(l(n,a,n===e))return!1;if(s(n,t))return!0;n=a}return!1},f=(e,t)=>e!=null&&d(e,t)?e[t]:void 0,p=e=>{if(e==null||typeof e!=`object`&&typeof e!=`function`)return e;let t=i(e);if(t===null&&u(e))return e;let n=Object.create(null),r=Object.create(null),a=[],o=e;for(;o!=null&&a.indexOf(o)===-1;){a.push(o);let u=o===e?t:i(o);if(l(o,u,o===e))break;let d=Object.getOwnPropertyNames(o);Object.getOwnPropertySymbols&&d.push(...Object.getOwnPropertySymbols(o));for(let t of d)c(t)||s(r,t)||(n[t]=e[t],r[t]=!0);o=u}return n},m=(e=>t=>{let n=r.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),h=e=>(e=e.toLowerCase(),t=>m(t)===e),g=e=>t=>typeof t===e,{isArray:_}=Array,v=g(`undefined`);function y(e){return e!==null&&!v(e)&&e.constructor!==null&&!v(e.constructor)&&S(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var b=h(`ArrayBuffer`);function x(e){let t;return t=typeof ArrayBuffer<`u`&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&b(e.buffer),t}var ee=g(`string`),S=g(`function`),C=g(`number`),w=e=>typeof e==`object`&&!!e,te=e=>e===!0||e===!1,T=e=>{if(!w(e))return!1;let t=i(e);return(t===null||t===Object.prototype||i(t)===null)&&!d(e,o)&&!d(e,a)},ne=e=>{if(!w(e)||y(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},re=h(`Date`),ie=h(`File`),E=e=>!!(e&&e.uri!==void 0),D=e=>e&&e.getParts!==void 0,O=h(`Blob`),ae=h(`FileList`),oe=h(`Set`),se=e=>w(e)&&S(e.pipe);function ce(){return typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{}}var k=ce(),A=k.FormData===void 0?void 0:k.FormData,j=e=>{if(!e)return!1;if(A&&e instanceof A)return!0;let t=i(e);if(!t||t===Object.prototype||!S(e.append))return!1;let n=m(e);return n===`formdata`||n===`object`&&S(e.toString)&&e.toString()===`[object FormData]`},le=h(`URLSearchParams`),[ue,M,de,fe]=[`ReadableStream`,`Request`,`Response`,`Headers`].map(h),pe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``);function me(e,t,{allOwnKeys:n=!1}={}){if(e==null)return;let r,i;if(typeof e!=`object`&&(e=[e]),_(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(y(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 he(e,t){if(y(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 N=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:global,ge=e=>!v(e)&&e!==N;function _e(...e){let{caseless:t,skipUndefined:n}=ge(this)&&this||{},r={},i=(e,i)=>{if(i===`__proto__`||i===`constructor`||i===`prototype`)return;let a=t&&typeof i==`string`&&he(r,i)||i,o=s(r,a)?r[a]:void 0;T(o)&&T(e)?r[a]=_e(o,e):T(e)?r[a]=_e({},e):_(e)?r[a]=e.slice():(!n||!v(e))&&(r[a]=e)};for(let t=0,n=e.length;t<n;t++){let n=e[t];if(!n||y(n)||(me(n,i),typeof n!=`object`||_(n)))continue;let r=Object.getOwnPropertySymbols(n);for(let e=0;e<r.length;e++){let t=r[e];ke.call(n,t)&&i(n[t],t)}}return r}var ve=(e,t,r,{allOwnKeys:i}={})=>(me(t,(t,i)=>{r&&S(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),ye=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),be=(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)},xe=(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},Se=(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},Ce=e=>{if(!e)return null;if(_(e))return e;let t=e.length;if(!C(t))return null;let n=Array(t);for(;t-->0;)n[t]=e[t];return n},we=(e=>t=>e&&t instanceof e)(typeof Uint8Array<`u`&&i(Uint8Array)),Te=(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])}},Ee=(e,t)=>{let n,r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},De=h(`HTMLFormElement`),Oe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),{propertyIsEnumerable:ke}=Object.prototype,Ae=h(`RegExp`),je=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};me(n,(n,i)=>{let a;(a=t(n,i,e))!==!1&&(r[i]=a||n)}),Object.defineProperties(e,r)},Me=e=>{je(e,(t,n)=>{if(S(e)&&[`arguments`,`caller`,`callee`].includes(n))return!1;let r=e[n];if(S(r)){if(t.enumerable=!1,`writable`in t){t.writable=!1;return}t.set||=()=>{throw Error(`Can not rewrite read-only method '`+n+`'`)}}})},Ne=(e,t)=>{let n={},r=e=>{e.forEach(e=>{n[e]=!0})};return _(e)?r(e):r(String(e).split(t)),n},Pe=()=>{},Fe=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Ie(e){return!!(e&&S(e.append)&&e[o]===`FormData`&&e[a])}var Le=e=>{let t=new WeakSet,n=e=>{if(w(e)){if(t.has(e))return;if(y(e))return e;if(!(`toJSON`in e)){t.add(e);let r;if(oe(e)){r=[];for(let t of e){let e=n(t);!v(e)&&r.push(e)}}else r=_(e)?[]:{},me(e,(e,t)=>{let i=n(e);!v(i)&&(r[t]=i)});return t.delete(e),r}}return e};return n(e)},Re=h(`AsyncFunction`),ze=e=>e&&(w(e)||S(e))&&S(e.then)&&S(e.catch),Be=((e,t)=>e?setImmediate:t?((e,t)=>(N.addEventListener(`message`,({source:n,data:r})=>{n===N&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),N.postMessage(e,`*`)}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate==`function`,S(N.postMessage)),Ve=typeof queueMicrotask<`u`?queueMicrotask.bind(N):typeof process<`u`&&process.nextTick||Be,He=e=>e!=null&&S(e[a]),P={isArray:_,isArrayBuffer:b,isBuffer:y,isFormData:j,isArrayBufferView:x,isString:ee,isNumber:C,isBoolean:te,isObject:w,isPlainObject:T,isEmptyObject:ne,isReadableStream:ue,isRequest:M,isResponse:de,isHeaders:fe,isUndefined:v,isDate:re,isFile:ie,isReactNativeBlob:E,isReactNative:D,isBlob:O,isRegExp:Ae,isFunction:S,isStream:se,isURLSearchParams:le,isTypedArray:we,isFileList:ae,forEach:me,merge:_e,extend:ve,trim:pe,stripBOM:ye,inherits:be,toFlatObject:xe,kindOf:m,kindOfTest:h,endsWith:Se,toArray:Ce,forEachEntry:Te,matchAll:Ee,isHTMLForm:De,hasOwnProperty:s,hasOwnProp:s,hasOwnInPrototypeChain:d,getSafeProp:f,toSafeFlatObject:p,reduceDescriptors:je,freezeMethods:Me,toObjectSet:Ne,toCamelCase:Oe,noop:Pe,toFiniteNumber:Fe,findKey:he,global:N,isContextDefined:ge,isSpecCompliantForm:Ie,toJSONObject:Le,isAsyncFn:Re,isThenable:ze,setImmediate:Be,asap:Ve,isIterable:He,isSafeIterable:e=>e!=null&&d(e,a)&&He(e)},Ue=P.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`]),We=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();let a=P.hasOwnProp(t,n);!n||a&&P.hasOwnProp(Ue,n)||(n===`set-cookie`?a?t[n].push(r):t[n]=[r]:t[n]=a?t[n]+`, `+r:r)}),t};function Ge(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 Ke=RegExp(`[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+`,`g`),qe=RegExp(`[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+`,`g`);function Je(e,t){return P.isArray(e)?e.map(e=>Je(e,t)):Ge(String(e).replace(t,``))}var Ye=e=>Je(e,Ke),Xe=e=>Je(e,qe);function Ze(e){let t=Object.create(null);return P.forEach(e.toJSON(),(e,n)=>{t[n]=Xe(e)}),t}var Qe=Symbol(`internals`);function $e(e){return e&&String(e).trim().toLowerCase()}function et(e){return e===!1||e==null?e:P.isArray(e)?e.map(et):Ye(String(e))}function tt(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 nt=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function rt(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)}function it(e){let t=e.length-1;if(t<1||e.charCodeAt(0)!==34||e.charCodeAt(t)!==34)return e;let n=``;for(let r=1;r<t;r++){let i=e.charCodeAt(r);if(i===34||i===92&&(r+=1,r>=t))return e;n+=e[r]}return n}function at(e){let t=Object.create(null),n=String(e),r=0,i=!1,a=!1;function o(e){let i=rt(n.slice(r,e)),a=i.indexOf(`=`);if(a<1)return;let o=rt(i.slice(0,a));if(!nt.test(o))return;let s=o.toLowerCase();if(s===`__proto__`||s===`constructor`||s===`prototype`)return;let c=rt(i.slice(a+1));t[s]=it(c)}for(let e=0;e<n.length;e++){let t=n.charCodeAt(e);i?a?a=!1:t===92?a=!0:t===34&&(i=!1):t===34?i=!0:(t===44||t===59)&&(o(e),r=e+1)}return o(n.length),t}var ot=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function st(e,t,n,r,i){if(P.isFunction(r))return r.call(this,t,n);if(i&&(t=n),P.isString(t)){if(P.isString(r))return t.indexOf(r)!==-1;if(P.isRegExp(r))return r.test(t)}}function ct(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function lt(e,t){let n=P.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 F=class{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function i(e,t,n){let i=$e(t);if(!i)return;let a=P.findKey(r,i);(!a||r[a]===void 0||n===!0||n===void 0&&r[a]!==!1)&&(r[a||t]=et(e))}let a=(e,t)=>P.forEach(e,(e,n)=>i(e,n,t));if(P.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(P.isString(e)&&(e=e.trim())&&!ot(e))a(We(e),t);else if(P.isObject(e)&&P.isSafeIterable(e)){let n=Object.create(null),r,i;for(let t of e){if(!P.isArray(t))throw TypeError(`Object iterator must return a key-value pair`);i=t[0],P.hasOwnProp(n,i)?(r=n[i],n[i]=P.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=$e(e),e){let n=P.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(t===!0)return tt(e);if(P.isFunction(t))return t.call(this,e,n);if(P.isRegExp(t))return t.exec(e);throw TypeError(`parser must be boolean|regexp|function`)}}}has(e,t){if(e=$e(e),e){let n=P.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||st(this,this[n],n,t)))}return!1}delete(e,t){let n=this,r=!1;function i(e){if(e=$e(e),e){let i=P.findKey(n,e);i&&(!t||st(n,n[i],i,t))&&(delete n[i],r=!0)}}return P.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||st(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){let t=this,n={};return P.forEach(this,(r,i)=>{let a=P.findKey(n,i);if(a){t[a]=et(r),delete t[i];return}let o=e?ct(i):String(i).trim();o!==i&&delete t[i],t[o]=et(r),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return P.forEach(this,(n,r)=>{n!=null&&n!==!1&&(t[r]=e&&P.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(){let e=this.get(`set-cookie`);return P.isArray(e)?e:e==null||e===!1?[]:[e]}get[Symbol.toStringTag](){return`AxiosHeaders`}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return at(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[Qe]=this[Qe]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=$e(e);t[r]||(lt(n,e),t[r]=!0)}return P.isArray(e)?e.forEach(r):r(e),this}};F.accessor([`Content-Type`,`Content-Length`,`Accept`,`Accept-Encoding`,`User-Agent`,`Authorization`]),P.reduceDescriptors(F.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),P.freezeMethods(F);var ut=`[REDACTED ****]`;function dt(e){if(P.hasOwnProp(e,`toJSON`))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(P.hasOwnProp(t,`toJSON`))return!0;t=Object.getPrototypeOf(t)}return!1}function ft(e,t){let n=new Set(t.map(e=>String(e).toLowerCase())),r=[],i=e=>{if(typeof e!=`object`||!e||P.isBuffer(e))return e;if(r.indexOf(e)!==-1)return;e instanceof F&&(e=e.toJSON()),r.push(e);let t;if(P.isArray(e))t=[],e.forEach((e,n)=>{let r=i(e);P.isUndefined(r)||(t[n]=r)});else{if(!P.isPlainObject(e)&&dt(e))return r.pop(),e;t=Object.create(null);for(let[r,a]of Object.entries(e)){let e=n.has(r.toLowerCase())?ut:i(a);P.isUndefined(e)||(t[r]=e)}}return r.pop(),t};return i(e)}function pt(e){try{return String(e)}catch{return``}}function mt(e){return e.errors.map(e=>{try{return e&&e.message?pt(e.message):pt(e)}catch{return``}}).filter(Boolean).join(`; `)||e.name||`AggregateError`}var I=class e extends Error{static from(t,n,r,i,a,o){let s=t.message;!s&&P.isArray(t.errors)&&t.errors.length&&(s=mt(t));let c=new e(s,n||t.code,r,i,a);return Object.defineProperty(c,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),c.name=t.name,t.status!=null&&c.status==null&&(c.status=t.status),o&&Object.assign(c,o),c}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&&P.hasOwnProp(e,`redact`)?e.redact:void 0,n=P.isArray(t)&&t.length>0?ft(e,t):P.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}}};I.ERR_BAD_OPTION_VALUE=`ERR_BAD_OPTION_VALUE`,I.ERR_BAD_OPTION=`ERR_BAD_OPTION`,I.ECONNABORTED=`ECONNABORTED`,I.ETIMEDOUT=`ETIMEDOUT`,I.ECONNREFUSED=`ECONNREFUSED`,I.ERR_NETWORK=`ERR_NETWORK`,I.ERR_FR_TOO_MANY_REDIRECTS=`ERR_FR_TOO_MANY_REDIRECTS`,I.ERR_DEPRECATED=`ERR_DEPRECATED`,I.ERR_BAD_RESPONSE=`ERR_BAD_RESPONSE`,I.ERR_BAD_REQUEST=`ERR_BAD_REQUEST`,I.ERR_CANCELED=`ERR_CANCELED`,I.ERR_NOT_SUPPORT=`ERR_NOT_SUPPORT`,I.ERR_INVALID_URL=`ERR_INVALID_URL`,I.ERR_FORM_DATA_DEPTH_EXCEEDED=`ERR_FORM_DATA_DEPTH_EXCEEDED`;function ht(e){return P.isPlainObject(e)||P.isArray(e)}function gt(e){return P.endsWith(e,`[]`)?e.slice(0,-2):e}function _t(e,t,n){return e?e.concat(t).map(function(e,t){return e=gt(e),!n&&t?`[`+e+`]`:e}).join(n?`.`:``):t}function vt(e){return P.isArray(e)&&!e.some(ht)}var yt=P.toFlatObject(P,{},null,function(e){return/^is[A-Z]/.test(e)});function bt(e,t,n){if(!P.isObject(e))throw TypeError(`target must be an object`);t||=new FormData;let r=(e,t)=>{let r=P.getSafeProp(n,e);return P.isUndefined(r)?t:r},i=r(`metaTokens`,!0),a=r(`visitor`)||h,o=r(`dots`,!1),s=r(`indexes`,!1),c=r(`Blob`)||typeof Blob<`u`&&Blob,l=r(`maxDepth`,100),u=c&&P.isSpecCompliantForm(t),d=[];if(!P.isFunction(a))throw TypeError(`visitor must be a function`);function f(e){if(e===null)return``;if(P.isDate(e))return e.toISOString();if(P.isBoolean(e))return e.toString();if(!u&&P.isBlob(e))throw new I(`Blob is not supported. Use a Buffer instead.`);if(P.isArrayBuffer(e)||P.isTypedArray(e)){if(u&&typeof c==`function`)return new c([e]);throw new I(`Blob is not supported. Use a Buffer instead.`,I.ERR_NOT_SUPPORT)}return e}function p(e){if(e>l)throw new I(`Object is too deeply nested (`+e+` levels). Max depth: `+l,I.ERR_FORM_DATA_DEPTH_EXCEEDED)}function m(e,t){if(l===1/0)return JSON.stringify(e);let n=[];return JSON.stringify(e,function(e,r){if(!P.isObject(r))return r;for(;n.length&&n[n.length-1]!==this;)n.pop();return n.push(r),p(t+n.length-1),r})}function h(e,n,r){let a=e;if(P.isReactNative(t)&&P.isReactNativeBlob(e))return t.append(_t(r,n,o),f(e)),!1;if(e&&!r&&typeof e==`object`){if(P.endsWith(n,`{}`))n=i?n:n.slice(0,-2),e=m(e,1);else if(P.isArray(e)&&vt(e)||(P.isFileList(e)||P.endsWith(n,`[]`))&&(a=P.toArray(e)))return n=gt(n),a.forEach(function(e,r){!(P.isUndefined(e)||e===null)&&t.append(s===!0?_t([n],r,o):s===null?n:n+`[]`,f(e))}),!1}return ht(e)?!0:(t.append(_t(r,n,o),f(e)),!1)}let g=Object.assign(yt,{defaultVisitor:h,convertValue:f,isVisitable:ht});function _(e,n,r=0){if(!P.isUndefined(e)){if(p(r),d.indexOf(e)!==-1)throw Error(`Circular reference detected in `+n.join(`.`));d.push(e),P.forEach(e,function(e,i){(!(P.isUndefined(e)||e===null)&&a.call(t,e,P.isString(i)?i.trim():i,n,g))===!0&&_(e,n?n.concat(i):[i],r+1)}),d.pop()}}if(!P.isObject(e))throw TypeError(`data must be an object`);return _(e),t}function xt(e){let t={"!":`%21`,"'":`%27`,"(":`%28`,")":`%29`,"~":`%7E`,"%20":`+`};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function St(e,t){this._pairs=[],e&&bt(e,this,t)}var Ct=St.prototype;Ct.append=function(e,t){this._pairs.push([e,t])},Ct.toString=function(e){let t=e?t=>e.call(this,t,xt):xt;return this._pairs.map(function(e){return t(e[0])+`=`+t(e[1])},``).join(`&`)};function wt(e){return encodeURIComponent(e).replace(/%3A/gi,`:`).replace(/%24/g,`$`).replace(/%2C/gi,`,`).replace(/%20/g,`+`)}function Tt(e,t,n){if(!t)return e;e||=``;let r=P.isFunction(n)?{serialize:n}:n,i=P.getSafeProp(r,`encode`)||wt,a=P.getSafeProp(r,`serialize`),o;if(o=a?a(t,r):P.isURLSearchParams(t)?t.toString():new St(t,r).toString(i),o){let t=e.indexOf(`#`);t!==-1&&(e=e.slice(0,t)),e+=(e.indexOf(`?`)===-1?`?`:`&`)+o}return e}var Et=Symbol(`internals`);function Dt(e){return e?e.length:0}function Ot(e){if(e)for(;e.length&&e[e.length-1]===null;)e.pop()}function kt(e,t){let n=e.handlers,r=Dt(n);n===t.handlersRef?r!==t.handlersLength&&(r?t.handlerEntries.forEach(function(e,r){n[e.index]!==e.handler&&t.handlerEntries.delete(r)}):t.handlerEntries.clear()):(t.handlersRef=n,t.handlerEntries.clear()),t.handlersLength=r}var At=class{constructor(){this.handlers=[],this[Et]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(e,t,n){let r={fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null},i=this[Et];this.handlers??=[],kt(this,i);let a=i.nextId++;return this.handlers.push(r),i.handlerEntries.set(a,{handler:r,index:this.handlers.length-1}),i.handlersLength=this.handlers.length,a}eject(e){let t=this[Et];kt(this,t);let n=t.handlerEntries.get(e);if(n){if(t.handlerEntries.delete(e),this.handlers[n.index]!==n.handler)return;this.handlers[n.index]=null,t.iterationDepth||(Ot(this.handlers),t.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],kt(this,this[Et]))}forEach(e){let t=this[Et];kt(this,t),t.iterationDepth++;try{P.forEach(this.handlers,function(t){t!==null&&e(t)})}finally{--t.iterationDepth||(kt(this,t),Ot(this.handlers),t.handlersLength=Dt(this.handlers))}}},jt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},Mt={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<`u`?URLSearchParams:St,FormData:typeof FormData<`u`?FormData:null,Blob:typeof Blob<`u`?Blob:null},protocols:[`http`,`https`,`file`,`blob`,`url`,`data`]},Nt=t({hasBrowserEnv:()=>Pt,hasStandardBrowserEnv:()=>It,hasStandardBrowserWebWorkerEnv:()=>Lt,navigator:()=>Ft,origin:()=>Rt}),Pt=typeof window<`u`&&typeof document<`u`,Ft=typeof navigator==`object`&&navigator||void 0,It=Pt&&(!Ft||[`ReactNative`,`NativeScript`,`NS`].indexOf(Ft.product)<0),Lt=typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope&&typeof self.importScripts==`function`,Rt=Pt&&window.location.href||`http://localhost`,L={...Nt,...Mt};function zt(e,t){return bt(e,new L.classes.URLSearchParams,{visitor:function(e,t,n,r){return L.isNode&&P.isBuffer(e)?(this.append(t,e.toString(`base64`)),!1):r.defaultVisitor.apply(this,arguments)},...t})}var Bt=100;function Vt(e){if(e>Bt)throw new I(`FormData field is too deeply nested (`+e+` levels). Max depth: `+Bt,I.ERR_FORM_DATA_DEPTH_EXCEEDED)}function Ht(e){let t=[],n=/[^.[\]]+|\[([^.[\]]*)]/g,r;for(;(r=n.exec(e))!==null;)Vt(t.length),t.push(r[0]===`[]`?``:r[1]||r[0]);return t}function Ut(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 Wt(e){function t(e,n,r,i){Vt(i);let a=e[i++];if(a===`__proto__`)return!0;let o=Number.isFinite(+a),s=i>=e.length;return a=!a&&P.isArray(r)?r.length:a,s?(P.hasOwnProp(r,a)?r[a]=P.isArray(r[a])?r[a].concat(n):[r[a],n]:r[a]=n,!o):((!P.hasOwnProp(r,a)||!P.isObject(r[a]))&&(r[a]=[]),t(e,n,r[a],i)&&P.isArray(r[a])&&(r[a]=Ut(r[a])),!o)}if(P.isFormData(e)&&P.isFunction(e.entries)){let n={};return P.forEachEntry(e,(e,r)=>{t(Ht(e),r,n,0)}),n}return null}var Gt=Object.freeze([`get`,`delete`,`head`,`options`,`post`,`put`,`patch`,`purge`,`link`,`unlink`,`query`]),R=(e,t)=>e!=null&&P.hasOwnProp(e,t)?e[t]:void 0;function Kt(e,t,n){if(P.isString(e))try{return(t||JSON.parse)(e),P.trim(e)}catch(e){if(e.name!==`SyntaxError`)throw e}return(n||JSON.stringify)(e)}var qt={transitional:jt,adapter:[`xhr`,`http`,`fetch`],transformRequest:[function(e,t){let n=t.getContentType()||``,r=n.indexOf(`application/json`)>-1,i=P.isObject(e);if(i&&P.isHTMLForm(e)&&(e=new FormData(e)),P.isFormData(e))return r?JSON.stringify(Wt(e)):e;if(P.isArrayBuffer(e)||P.isBuffer(e)||P.isStream(e)||P.isFile(e)||P.isBlob(e)||P.isReadableStream(e))return e;if(P.isArrayBufferView(e))return e.buffer;if(P.isURLSearchParams(e))return t.setContentType(`application/x-www-form-urlencoded;charset=utf-8`,!1),e.toString();let a;if(i){let t=R(this,`formSerializer`);if(n.indexOf(`application/x-www-form-urlencoded`)>-1)return zt(e,t).toString();if((a=P.isFileList(e))||n.indexOf(`multipart/form-data`)>-1){let n=R(this,`env`),r=n&&n.FormData;return bt(a?{"files[]":e}:e,r&&new r,t)}}return i||r?(t.setContentType(`application/json`,!1),Kt(e)):e}],transformResponse:[function(e){let t=R(this,`transitional`)||qt.transitional,n=t&&t.forcedJSONParsing,r=R(this,`responseType`),i=r===`json`;if(P.isResponse(e)||P.isReadableStream(e))return e;if(e&&P.isString(e)&&(n&&!r||i)){let n=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e,R(this,`parseReviver`))}catch(e){if(n)throw e.name===`SyntaxError`?I.from(e,I.ERR_BAD_RESPONSE,this,null,R(this,`response`)):e}}return e}],timeout:0,xsrfCookieName:`XSRF-TOKEN`,xsrfHeaderName:`X-XSRF-TOKEN`,maxContentLength:-1,maxBodyLength:-1,env:{FormData:L.classes.FormData,Blob:L.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:`application/json, text/plain, */*`,"Content-Type":void 0}}};P.forEach(Gt,e=>{qt.headers[e]={}});function Jt(e,t){let n=this||qt,r=t||n,i=F.from(r.headers),a=r.data;return P.forEach(e,function(e){a=e.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function Yt(e){return!!(e&&e.__CANCEL__)}var Xt=class extends I{constructor(e,t,n){super(e??`canceled`,I.ERR_CANCELED,t,n),this.name=`CanceledError`,this.__CANCEL__=!0}};function Zt(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new I(`Request failed with status code `+n.status,n.status>=400&&n.status<500?I.ERR_BAD_REQUEST:I.ERR_BAD_RESPONSE,n.config,n.request,n))}var Qt=/[\t\n\r]/g;function $t(e){if(typeof e!=`string`)return e;let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t).replace(Qt,``)}function en(e){let t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||``}function tn(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 nn(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),(...e)=>o(e)]}var rn=(e,t,n=3)=>{let r=0,i=tn(50,250);return nn(n=>{if(!n||!P.isNumber(n.loaded))return;let a=n.loaded,o=n.lengthComputable?n.total:void 0,s=Math.max(0,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)},an=(e,t)=>{let n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},on=(e,t=P.asap)=>(...n)=>t(()=>e(...n)),sn=L.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,L.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(L.origin),L.navigator&&/(msie|trident)/i.test(L.navigator.userAgent)):()=>!0,cn=L.hasStandardBrowserEnv?{write(e,t,n,r,i,a,o){if(typeof document>`u`)return;let s=[`${e}=${encodeURIComponent(t)}`];P.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),P.isString(r)&&s.push(`path=${r}`),P.isString(i)&&s.push(`domain=${i}`),a===!0&&s.push(`secure`),P.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)try{return decodeURIComponent(r.slice(i+1))}catch{return r.slice(i+1)}}return null},remove(e){this.write(e,``,Date.now()-864e5,`/`)}}:{write(){},read(){return null},remove(){}};function ln(e){return typeof e==`string`&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function un(e,t){if(!t)return e;let n=e.length;for(;n>0&&e.charCodeAt(n-1)===47;)n--;return e.slice(0,n)+`/`+t.replace(/^\/+/,``)}var dn=/^https?:(?!\/\/)/i;function fn(e){return e&&e.replace(/(^|&)([^=&]*=)?[^&]+/g,(e,t,n=``)=>`${t}${n}${ut}`)}function pn(e){let t=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${ut}@`),n=t.indexOf(`#`),r=(n===-1?t:t.slice(0,n)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${ut}`);return n===-1?r:`${r}#${fn(t.slice(n+1))}`}function mn(e,t){if(typeof e==`string`){let n=$t(e);if(dn.test(n))throw new I(`Invalid URL ${JSON.stringify(pn(n))}: missing "//" after protocol`,I.ERR_INVALID_URL,t)}}function hn(e,t,n,r){mn(t,r);let i=!ln(t);return e&&(i||n===!1)?(mn(e,r),un(e,t)):t}var gn=e=>e instanceof F?{...e}:e,_n=e=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(e).concat(Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable)):Object.keys(e);function z(e,t){e||={},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 P.isPlainObject(e)&&P.isPlainObject(t)?P.merge.call({caseless:r},e,t):P.isPlainObject(t)?P.merge({},t):P.isArray(t)?t.slice():t}function i(e,t,n,i){if(!P.isUndefined(t))return r(e,t,n,i);if(!P.isUndefined(e))return r(void 0,e,n,i)}function a(e,t){if(!P.isUndefined(t))return r(void 0,t)}function o(e,t){if(!P.isUndefined(t))return r(void 0,t);if(!P.isUndefined(e))return r(void 0,e)}function s(n){let r=P.hasOwnProp(t,`transitional`)?t.transitional:void 0;if(!P.isUndefined(r))if(P.isPlainObject(r)){if(P.hasOwnProp(r,n))return r[n]}else return;let i=P.hasOwnProp(e,`transitional`)?e.transitional:void 0;if(P.isPlainObject(i)&&P.hasOwnProp(i,n))return i[n]}function c(n,i,a){if(P.hasOwnProp(t,a))return r(n,i);if(P.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,timeoutErrorMessage: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(gn(e),gn(t),n,!0)};return P.forEach(_n({...e,...t}),function(r){if(r===`__proto__`||r===`constructor`||r===`prototype`)return;let a=P.hasOwnProp(l,r)?l[r]:i,o=a(P.hasOwnProp(e,r)?e[r]:void 0,P.hasOwnProp(t,r)?t[r]:void 0,r);P.isUndefined(o)&&a!==c||(n[r]=o)}),P.hasOwnProp(t,`validateStatus`)&&P.isUndefined(t.validateStatus)&&s(`validateStatusUndefinedResolves`)===!1&&(P.hasOwnProp(e,`validateStatus`)?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}var vn=[`content-type`,`content-length`];function yn(e,t,n){if(n!==`content-only`){e.set(t);return}Object.entries(t||{}).forEach(([t,n])=>{vn.includes(t.toLowerCase())&&e.set(t,n)})}var bn=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16)));function xn(e){let t=z({},e),n=e=>P.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=F.from(s),t.url=Tt(hn(l,d,u,t),n(`params`),n(`paramsSerializer`)),c){let t=P.getSafeProp(c,`username`)||``,n=P.getSafeProp(c,`password`)||``;try{s.set(`Authorization`,`Basic `+btoa(t+`:`+(n?bn(n):``)))}catch(t){throw I.from(t,I.ERR_BAD_OPTION_VALUE,e)}}if(P.isFormData(r)){let e=P.getSafeProp(r,`getHeaders`);L.hasStandardBrowserEnv||L.hasStandardBrowserWebWorkerEnv||P.isReactNative(r)?s.setContentType(void 0):P.isFunction(e)&&yn(s,e.call(r),n(`formDataHeaderPolicy`))}if(L.hasStandardBrowserEnv&&(P.isFunction(i)&&(i=i(t)),i===!0||i==null&&sn(t.url))){let e=a&&o&&cn.read(o);e&&s.set(a,e)}return t}var Sn=typeof XMLHttpRequest<`u`&&function(e){return new Promise(function(t,n){let r=xn(e),i=r.data,a=F.from(r.headers).normalize(),{responseType:o,onUploadProgress:s,onDownloadProgress:c}=r,l,u,d,f,p,m;function h(){f&&f(),p&&p(),r.cancelToken&&r.cancelToken.unsubscribe(l),r.signal&&r.signal.removeEventListener(`abort`,l)}let g=new XMLHttpRequest;g.open(r.method.toUpperCase(),r.url,!0),g.timeout=r.timeout;function _(i){if(!g)return;if(g.status===0&&(en($t(r.url))||en(L.origin))!==`file`&&!(g.responseURL&&g.responseURL.startsWith(`file:`))){n(new I(`Request aborted`,I.ECONNABORTED,e,g)),h(),g=null;return}try{i?m&&m(i):p&&p()}catch(e){setTimeout(()=>{throw e})}if(!g)return;let a=F.from(`getAllResponseHeaders`in g&&g.getAllResponseHeaders());Zt(function(e){t(e),h()},function(e){n(e),h()},{data:!o||o===`text`||o===`json`?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:a,config:e,request:g}),g=null}`onloadend`in g?g.onloadend=_:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.startsWith(`file:`))||setTimeout(_)},g.onabort=function(){g&&=(n(new I(`Request aborted`,I.ECONNABORTED,e,g)),h(),null)},g.onerror=function(t){let r=new I(t&&t.message?t.message:`Network Error`,I.ERR_NETWORK,e,g);r.event=t||null,n(r),h(),g=null},g.ontimeout=function(){let t=r.timeout?`timeout of `+r.timeout+`ms exceeded`:`timeout exceeded`,i=r.transitional||jt;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new I(t,i.clarifyTimeoutError?I.ETIMEDOUT:I.ECONNABORTED,e,g)),h(),g=null},i===void 0&&a.setContentType(null),`setRequestHeader`in g&&P.forEach(Ze(a),function(e,t){g.setRequestHeader(t,e)}),P.isUndefined(r.withCredentials)||(g.withCredentials=!!r.withCredentials),o&&o!==`json`&&(g.responseType=r.responseType),c&&([d,p,m]=rn(c,!0),g.addEventListener(`progress`,d)),s&&g.upload&&([u,f]=rn(s),g.upload.addEventListener(`progress`,u),g.upload.addEventListener(`loadend`,f)),(r.cancelToken||r.signal)&&(l=t=>{g&&=(n(!t||t.type?new Xt(null,e,g):t),g.abort(),h(),null)},r.cancelToken&&r.cancelToken.subscribe(l),r.signal&&(r.signal.aborted?l():r.signal.addEventListener(`abort`,l)));let v=en(r.url);if(v&&!L.protocols.includes(v)){n(new I(`Unsupported protocol `+v+`:`,I.ERR_BAD_REQUEST,e)),h();return}g.send(i||null)})},Cn=(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 I?t:new Xt(t instanceof Error?t.message:t))}},a=t&&setTimeout(()=>{a=null,i(new I(`timeout of ${t}ms exceeded`,I.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=>{if(!r){if(e.aborted){i.call(e);return}e.addEventListener(`abort`,i,{once:!0})}});let{signal:s}=n;return s.unsubscribe=()=>P.asap(o),s},wn=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},Tn=async function*(e,t){for await(let n of En(e))yield*wn(n,t)},En=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()}},Dn=(e,t,n,r)=>{let i=Tn(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})},On=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,kn=(e,t,n)=>t+2<n&&On(e.charCodeAt(t+1))&&On(e.charCodeAt(t+2)),An=e=>e<=57?e-48:(e&223)-55,jn=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===47||e===45||e===95,Mn=e=>e===9||e===10||e===12||e===13||e===32,Nn=e=>{let t=Math.floor(e/4),n=e%4;return t*3+(n===2?1:n===3?2:0)},Pn=e=>{let t=e.length,n=0;return t>0&&e.charCodeAt(t-1)===61&&(n++,t>1&&e.charCodeAt(t-2)===61&&n++),Math.floor((t-n)*3/4)},Fn=e=>{let t=e.length,n=0,r=0,i=!1;for(let a=0;a<t;a++){let o=e.charCodeAt(a);if(o===37&&kn(e,a,t)&&(o=An(e.charCodeAt(a+1))*16+An(e.charCodeAt(a+2)),a+=2),!Mn(o)){if(o===61){r++;continue}if(!jn(o)||r>0){i=!0;continue}n++}}return i||r>2||r>0&&(n+r)%4!=0||n%4==1?Pn(e):Nn(n)},In=(e,t)=>{if(!e||typeof e!=`string`||!e.startsWith(`data:`))return 0;let n=e.indexOf(`,`);if(n<0)return 0;let r=e.slice(5,n),i=e.slice(n+1);if(/;base64/i.test(r))return t(i);let a=0;for(let e=0,t=i.length;e<t;e++){let n=i.charCodeAt(e);if(n===37&&kn(i,e,t))a+=1,e+=2;else if(n<128)a+=1;else if(n<2048)a+=2;else if(n>=55296&&n<=56319&&e+1<t){let t=i.charCodeAt(e+1);t>=56320&&t<=57343?(a+=4,e++):a+=3}else a+=3}return a};function Ln(e){let t=typeof e==`string`?e.indexOf(`#`):-1;return In(t===-1?e:e.slice(0,t),Fn)}var Rn=`1.20.0`,zn=64*1024,Bn={cache:`default`,redirect:`follow`,referrer:`about:client`,referrerPolicy:``,mode:`cors`,integrity:``,keepalive:!1,priority:`auto`,window:null},{isFunction:Vn}=P,Hn=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))),Un=e=>{if(!P.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},Wn=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Gn=e=>{let t=e.indexOf(`://`),n=e;return t!==-1&&(n=n.slice(t+3)),n.includes(`@`)||n.includes(`:`)},Kn=e=>{let t=P.global!==void 0&&P.global!==null?P.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=P.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);let{fetch:i,Request:a,Response:o}=e,s=i?Vn(i):typeof fetch==`function`,c=Vn(a),l=Vn(o);if(!s)return!1;let u=s&&Vn(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&&Wn(()=>{let e=!1,t=new a(L.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&&Wn(()=>P.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 I(`Response type '${e}' is not supported`,I.ERR_NOT_SUPPORT,n)})});let h=async e=>{if(e==null)return 0;if(P.isBlob(e))return e.size;if(P.isSpecCompliantForm(e))return(await new a(L.origin,{method:`POST`,body:e}).arrayBuffer()).byteLength;if(P.isArrayBufferView(e)||P.isArrayBuffer(e))return e.byteLength;if(P.isURLSearchParams(e)&&(e+=``),P.isString(e))return(await d(e)).byteLength},g=async(e,t)=>P.toFiniteNumber(e.getContentLength())??h(t);return async e=>{let{url:t,method:n,data:s,signal:l,cancelToken:d,timeout:_,onDownloadProgress:v,onUploadProgress:y,responseType:b,headers:x,withCredentials:ee=`same-origin`,fetchOptions:S,maxContentLength:C,maxBodyLength:w,maxRedirects:te}=xn(e),T=P.isNumber(C)&&C>-1,ne=P.isNumber(w)&&w>-1,re=t=>P.hasOwnProp(e,t)?e[t]:void 0,ie=i||fetch;b=b?(b+``).toLowerCase():`text`;let E=Cn([l,d&&d.toAbortSignal()],_),D=null,O=E&&E.unsubscribe&&(()=>{E.unsubscribe()}),ae,oe=null,se=()=>new I(`Request body larger than maxBodyLength limit`,I.ERR_BAD_REQUEST,e,D);try{let i,l=re(`auth`);if(l&&(i={username:P.getSafeProp(l,`username`)||``,password:P.getSafeProp(l,`password`)||``}),Gn(t)){let e=new URL(t,L.origin);!i&&(e.username||e.password)&&(i={username:Un(e.username),password:Un(e.password)}),(e.username||e.password)&&(e.username=``,e.password=``,t=e.href)}if(i&&(x.delete(`authorization`),x.set(`Authorization`,`Basic `+btoa(Hn((i.username||``)+`:`+(i.password||``))))),T&&typeof t==`string`&&t.startsWith(`data:`)&&Ln(t)>C)throw new I(`maxContentLength size of `+C+` exceeded`,I.ERR_BAD_RESPONSE,e,D);if(ne&&n!==`get`&&n!==`head`){let e=await h(s);if(typeof e==`number`&&isFinite(e)&&(ae=e,e>w))throw se()}let d=ne&&(P.isReadableStream(s)||P.isStream(s)),_=(e,t,n)=>Dn(e,zn,e=>{if(ne&&e>w)throw oe=se();t&&t(e)},n);if(f&&n!==`get`&&n!==`head`&&(y||d)){if(ae??=await g(x,s),ae!==0||d){let e=new a(t,{method:`POST`,body:s,duplex:`half`}),n;if(P.isFormData(s)&&(n=e.headers.get(`content-type`))&&x.setContentType(n),e.body){let[t,n]=y&&an(ae,rn(on(y)))||[];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 I(`Stream request bodies are not supported by the current fetch implementation`,I.ERR_NOT_SUPPORT,e,D);P.isString(ee)||(ee=ee?`include`:`omit`);let ce=c&&`credentials`in a.prototype;if(P.isFormData(s)){let e=x.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&x.delete(`content-type`)}x.set(`User-Agent`,`axios/`+Rn,!1);let k=S==null?S:Object.assign(Object.create(null),S);k&&(delete k.body,delete k.headers,delete k.method,delete k.signal,delete k.duplex,delete k.credentials);let A=Object.assign(Object.create(null),k,{signal:E,method:n.toUpperCase(),headers:Ze(x.normalize()),body:s,duplex:`half`,credentials:ce?ee:void 0});c&&(P.forEach(Bn,(e,t)=>{A[t]===void 0&&(A[t]=e)}),A.signal===void 0&&(A.signal=null),A.body===void 0&&(A.body=null)),te===0&&(A.redirect=`manual`,k&&(k.redirect=`manual`)),D=c&&new a(t,A);let j=await(c?ie(D,k):ie(t,A)),le=F.from(j.headers);if(T){let t=P.toFiniteNumber(le.getContentLength());if(t!=null&&t>C)throw new I(`maxContentLength size of `+C+` exceeded`,I.ERR_BAD_RESPONSE,e,D)}let ue=p&&(b===`stream`||b===`response`);if(p&&j.body&&(v||T||ue&&O)){let t={};[`status`,`statusText`,`headers`].forEach(e=>{t[e]=j[e]});let n=P.toFiniteNumber(le.getContentLength()),[r,i]=v&&an(n,rn(on(v),!0))||[],a=0;j=new o(Dn(j.body,zn,t=>{if(T&&(a=t,a>C))throw new I(`maxContentLength size of `+C+` exceeded`,I.ERR_BAD_RESPONSE,e,D);r&&r(t)},()=>{i&&i(),O&&O()}),t)}b||=`text`;let M=await m[P.findKey(m,b)||`text`](j,e);if(T&&!p&&!ue){let t;if(M!=null&&(typeof M.byteLength==`number`?t=M.byteLength:typeof M.size==`number`?t=M.size:typeof M==`string`&&(t=typeof r==`function`?new r().encode(M).byteLength:M.length)),typeof t==`number`&&t>C)throw new I(`maxContentLength size of `+C+` exceeded`,I.ERR_BAD_RESPONSE,e,D)}return!ue&&O&&O(),await new Promise((t,n)=>{Zt(t,n,{data:M,headers:F.from(j.headers),status:j.status,statusText:j.statusText,config:e,request:D})})}catch(t){if(O&&O(),E&&E.aborted&&E.reason instanceof I){let n=E.reason;throw n.config=e,D&&(n.request=D),t!==n&&Object.defineProperty(n,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),n}if(oe)throw D&&!oe.request&&(oe.request=D),oe;if(t instanceof I)throw D&&!t.request&&(t.request=D),t;if(t&&t.name===`TypeError`&&/Load failed|fetch/i.test(t.message)){let n=new I(`Network Error`,I.ERR_NETWORK,e,D,t&&t.response);throw Object.defineProperty(n,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),n}throw I.from(t,t&&t.code,e,D,t&&t.response)}}},qn=new Map,Jn=e=>{let t=e&&e.env||{},{fetch:n,Request:r,Response:i}=t,a=[r,i,n],o=a.length,s,c,l=qn;for(;o--;)s=a[o],c=l.get(s),c===void 0&&l.set(s,c=o?new Map:Kn(t)),l=c;return c};Jn();var Yn={http:null,xhr:Sn,fetch:{get:Jn}};P.forEach(Yn,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});var Xn=e=>`- ${e}`,Zn=e=>P.isFunction(e)||e===null||e===!1;function Qn(e,t){e=P.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,!Zn(r)&&(i=Yn[(n=String(r)).toLowerCase()],i===void 0))throw new I(`Unknown adapter '${n}'`);if(i&&(P.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 I(`There is no suitable adapter to dispatch the request `+(n?e.length>1?`since :
|
|
4
4
|
`+e.map(Xn).join(`
|
|
5
|
-
`):` `+Xn(e[0]):`as no adapter specified`),I.ERR_NOT_SUPPORT)}return i}var $n={getAdapter:Qn,adapters:Yn};function er(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Xt(null,e)}function tr(e){let t=P.toSafeFlatObject(e);return er(t),t.headers=F.from(P.getSafeProp(t,`headers`)),t.data=Jt.call(t,t.transformRequest),[`post`,`put`,`patch`].indexOf(t.method)!==-1&&t.headers.setContentType(`application/x-www-form-urlencoded`,!1),$n.getAdapter(t.adapter||qt.adapter,t)(t).then(function(e){er(t),t.response=e;try{e.data=Jt.call(t,t.transformResponse,e)}finally{delete t.response}return e.headers=F.from(e.headers),e},function(e){if(!Yt(e)&&(er(t),e&&e.response)){t.response=e.response;try{e.response.data=Jt.call(t,t.transformResponse,e.response)}finally{delete t.response}e.response.headers=F.from(e.response.headers)}return Promise.reject(e)})}var nr={};[`object`,`boolean`,`number`,`function`,`string`,`symbol`].forEach((e,t)=>{nr[e]=function(n){return typeof n===e||`a`+(t<1?`n `:` `)+e}});var rr={};nr.transitional=function(e,t,n){function r(e,t){return`[Axios v`+Rn+`] Transitional option '`+e+`'`+t+(n?`. `+n:``)}return(n,i,a)=>{if(e===!1)throw new I(r(i,` has been removed`+(t?` in `+t:``)),I.ERR_DEPRECATED);return t&&!rr[i]&&(rr[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)}},nr.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function ir(e,t,n){if(typeof e!=`object`||!e)throw new I(`options must be an object`,I.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 I(`option `+a+` must be `+n,I.ERR_BAD_OPTION_VALUE)}
|
|
5
|
+
`):` `+Xn(e[0]):`as no adapter specified`),I.ERR_NOT_SUPPORT)}return i}var $n={getAdapter:Qn,adapters:Yn};function er(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Xt(null,e)}function tr(e){let t=P.toSafeFlatObject(e);return er(t),t.headers=F.from(P.getSafeProp(t,`headers`)),t.data=Jt.call(t,t.transformRequest),[`post`,`put`,`patch`].indexOf(t.method)!==-1&&t.headers.setContentType(`application/x-www-form-urlencoded`,!1),$n.getAdapter(t.adapter||qt.adapter,t)(t).then(function(e){er(t),t.response=e;try{e.data=Jt.call(t,t.transformResponse,e)}finally{delete t.response}return e.headers=F.from(e.headers),e},function(e){if(!Yt(e)&&(er(t),e&&e.response)){t.response=e.response;try{e.response.data=Jt.call(t,t.transformResponse,e.response)}finally{delete t.response}e.response.headers=F.from(e.response.headers)}return Promise.reject(e)})}var nr={};[`object`,`boolean`,`number`,`function`,`string`,`symbol`].forEach((e,t)=>{nr[e]=function(n){return typeof n===e||`a`+(t<1?`n `:` `)+e}});var rr={};nr.transitional=function(e,t,n){function r(e,t){return`[Axios v`+Rn+`] Transitional option '`+e+`'`+t+(n?`. `+n:``)}return(n,i,a)=>{if(e===!1)throw new I(r(i,` has been removed`+(t?` in `+t:``)),I.ERR_DEPRECATED);return t&&!rr[i]&&(rr[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)}},nr.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function ir(e,t,n){if(typeof e!=`object`||!e)throw new I(`options must be an object`,I.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 I(`option `+a+` must be `+n,I.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new I(`Unknown option `+a,I.ERR_BAD_OPTION)}}var ar={assertOptions:ir,validators:nr},B=ar.validators,V=class{constructor(e){this.defaults=e||{},this.interceptors={request:new At,response:new At}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error)try{let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=t.stack,r=``;if(typeof n==`string`){let e=n.indexOf(`
|
|
6
6
|
`);r=e===-1?``:n.slice(e+1)}if(!e.stack)e.stack=r;else if(r){let t=r.indexOf(`
|
|
7
7
|
`),n=t===-1?-1:r.indexOf(`
|
|
8
8
|
`,t+1),i=n===-1?``:r.slice(n+1);String(e.stack).endsWith(i)||(e.stack+=`
|
|
9
|
-
`+r)}}catch{}throw e}}_request(e,t){typeof e==`string`?(t||={},t.url=e):t=e||{},t=z(this.defaults,t);let{transitional:n,paramsSerializer:r,headers:i}=t;n!==void 0&&ar.assertOptions(n,{silentJSONParsing:B.transitional(B.boolean),forcedJSONParsing:B.transitional(B.boolean),clarifyTimeoutError:B.transitional(B.boolean),legacyInterceptorReqResOrdering:B.transitional(B.boolean),advertiseZstdAcceptEncoding:B.transitional(B.boolean),validateStatusUndefinedResolves:B.transitional(B.boolean)},!1),r!=null&&(P.isFunction(r)?t.paramsSerializer={serialize:r}:ar.assertOptions(r,{encode:B.function,serialize:B.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls===void 0?t.allowAbsoluteUrls=!0:t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls),ar.assertOptions(t,{baseUrl:B.spelling(`baseURL`),withXsrfToken:B.spelling(`withXSRFToken`)},!0),t.method=(P.getSafeProp(t,`method`)||P.getSafeProp(this.defaults,`method`)||`get`).toLowerCase();let a=i&&P.merge(i.common,i[t.method]);i&&P.forEach(Gt.concat(`common`),e=>{delete i[e]}),t.headers=F.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||jt;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=[tr.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?e(f):f}catch(e){if(!t){l=Promise.reject(e);break}try{let n=t.call(this,e);P.isThenable(n)&&(l=Promise.resolve(n).then(()=>tr.call(this,f)))}catch(e){l=Promise.reject(e)}break}}if(!l)try{l=tr.call(this,f)}catch(e){l=Promise.reject(e)}for(u=0,d=c.length;u<d;)l=l.then(c[u++],c[u++]);return l}getUri(e){return e=z(this.defaults,e),Tt(hn(e.baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}};P.forEach([`delete`,`get`,`head`,`options`],function(e){V.prototype[e]=function(t,n){return this.request(z(n||{},{method:e,url:t,data:n&&P.hasOwnProp(n,`data`)?n.data:void 0}))}}),P.forEach([`post`,`put`,`patch`,`query`],function(e){function t(t){return function(n,r,i){return this.request(z(i||{},{method:e,headers:t?{"Content-Type":`multipart/form-data`}:{},url:n,data:r}))}}V.prototype[e]=t(),e!==`query`&&(V.prototype[e+`Form`]=t(!0))});var or=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 Xt(e,r,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):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 sr(e){return function(t){return e.apply(null,t)}}function cr(e){return P.isObject(e)&&e.isAxiosError===!0}var lr={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,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent: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,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(lr).forEach(([e,t])=>{lr[t]===void 0&&(lr[t]=e)});function ur(e){let t=new V(e),r=n(V.prototype.request,t);return P.extend(r,V.prototype,t,{allOwnKeys:!0}),P.extend(r,t,null,{allOwnKeys:!0}),r.create=function(t){return ur(z(e,t))},r}var H=ur(qt);H.Axios=V,H.CanceledError=Xt,H.CancelToken=or,H.isCancel=Yt,H.VERSION=Rn,H.toFormData=bt,H.AxiosError=I,H.Cancel=H.CanceledError,H.all=function(e){return Promise.all(e)},H.spread=sr,H.isAxiosError=cr,H.mergeConfig=z,H.AxiosHeaders=F,H.formToJSON=e=>Wt(P.isHTMLForm(e)?new FormData(e):e),H.getAdapter=$n.getAdapter,H.HttpStatusCode=lr,H.default=H;var U=`https://faceapi.regulaforensics.com`.replace(/\/+$/,``),W=class{constructor(e,t=U,n=H){this.basePath=t,this.axios=n,e&&(this.configuration=e,this.basePath=e.basePath??t)}},dr=class extends Error{constructor(e,t){super(t),this.field=e,this.name=`RequiredError`}},G={},K=`https://example.com`,q=function(e,t,n){if(n==null)throw new dr(t,`Required parameter ${t} was null or undefined when calling ${e}.`)};function fr(e,t,n=``){t!=null&&(typeof t==`object`?Array.isArray(t)?t.forEach(t=>fr(e,t,n)):Object.keys(t).forEach(r=>fr(e,t[r],`${n}${n===``?``:`.`}${r}`)):e.has(n)?e.append(n,t):e.set(n,t))}for(var J=function(e,...t){let n=new URLSearchParams(e.search);fr(n,t),e.search=n.toString()},Y=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||``},X=function(e){return e.pathname+e.search+e.hash},Z=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)}},pr=function(e){return{detect:async(t,n,r={})=>{q(`detect`,`detectRequest`,t);let i=new URL(`/api/detect`,K),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...r},s={};s[`Content-Type`]=`application/json`,n!=null&&(s[`X-RequestID`]=String(n)),J(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...r.headers},o.data=Y(t,o,e),{url:X(i),options:o}},match:async(t,n,r={})=>{q(`match`,`matchRequest`,t);let i=new URL(`/api/match`,K),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...r},s={};s[`Content-Type`]=`application/json`,n!=null&&(s[`X-RequestID`]=String(n)),J(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...r.headers},o.data=Y(t,o,e),{url:X(i),options:o}},matchAndSearch:async(t,n,r={})=>{q(`matchAndSearch`,`matchAndSearchRequest`,t);let i=new URL(`/api/match_and_search`,K),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...r},s={};s[`Content-Type`]=`application/json`,n!=null&&(s[`X-RequestID`]=String(n)),J(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...r.headers},o.data=Y(t,o,e),{url:X(i),options:o}}}},mr=function(e){let t=pr(e);return{async detect(n,r,i){let a=await t.detect(n,r,i),o=e?.serverIndex??0,s=G[`MatchApi.detect`]?.[o]?.url;return(t,n)=>Z(a,H,U,e)(t,s||n)},async match(n,r,i){let a=await t.match(n,r,i),o=e?.serverIndex??0,s=G[`MatchApi.match`]?.[o]?.url;return(t,n)=>Z(a,H,U,e)(t,s||n)},async matchAndSearch(n,r,i){let a=await t.matchAndSearch(n,r,i),o=e?.serverIndex??0,s=G[`MatchApi.matchAndSearch`]?.[o]?.url;return(t,n)=>Z(a,H,U,e)(t,s||n)}}},hr=class extends W{detect(e,t,n){return mr(this.configuration).detect(e,t,n).then(e=>e(this.axios,this.basePath))}match(e,t,n){return mr(this.configuration).match(e,t,n).then(e=>e(this.axios,this.basePath))}matchAndSearch(e,t,n){return mr(this.configuration).matchAndSearch(e,t,n).then(e=>e(this.axios,this.basePath))}},gr=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}({}),_r=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}({}),vr=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}({}),yr=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}({}),br=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}({}),xr=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}({}),Sr=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}({}),Cr=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[e.FACER_PRINTED_FACE_DETECTED=255]=`FACER_PRINTED_FACE_DETECTED`,e[e.FACER_BLOCKED_REQUEST=256]=`FACER_BLOCKED_REQUEST`,e[e.FACER_CORRUPTED_REQUEST=257]=`FACER_CORRUPTED_REQUEST`,e[e.FACER_GENERAL_CHECK_FAIL_RTD=258]=`FACER_GENERAL_CHECK_FAIL_RTD`,e[e.FACER_BLINK_FAILED=259]=`FACER_BLINK_FAILED`,e[e.FACER_BAD_FACE_QUALITY_LIVENESS_TRANSACTION=260]=`FACER_BAD_FACE_QUALITY_LIVENESS_TRANSACTION`,e[e.FACER_BAD_FRAME_SIZE=261]=`FACER_BAD_FRAME_SIZE`,e}({}),wr=function(e){return e.IN=`in`,e.NOT_IN=`nin`,e}({}),Tr=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}({}),Er=function(e){return e[e.ACTIVE=0]=`ACTIVE`,e[e.PASSIVE=1]=`PASSIVE`,e[e.PASSIVE_WITH_BLINK=2]=`PASSIVE_WITH_BLINK`,e}({}),Dr=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,Or=typeof Uint8Array>`u`?[]:new Uint8Array(256),kr=0;kr<Dr.length;kr++)Or[Dr.charCodeAt(kr)]=kr;var Ar=function(e){var t=new Uint8Array(e),n,r=t.length,i=``;for(n=0;n<r;n+=3)i+=Dr[t[n]>>2],i+=Dr[(t[n]&3)<<4|t[n+1]>>4],i+=Dr[(t[n+1]&15)<<2|t[n+2]>>6],i+=Dr[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},jr=class{constructor(e,t,n){this.superClass=new hr(e,t,n)}async match(e,t,n){for(let t of e.images)t.type||=Tr.LIVE,typeof t.data!=`string`&&t.data&&(t.data=Ar(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=Ar(e.image)),(await this.superClass.detect(e,t,n)).data}async matchAndSearch(e,t,n){if(e.images)for(let t of e.images)t.type||=Tr.LIVE,t.content&&typeof t.content!=`string`&&(t.content=Ar(t.content));return(await this.superClass.matchAndSearch(e,t,n)).data}},Mr=function(e){return{createGroup:async(t,n,r={})=>{q(`createGroup`,`groupToCreate`,t);let i=new URL(`/api/groups`,K),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...r},s={};s[`Content-Type`]=`application/json`,n!=null&&(s[`X-RequestID`]=String(n)),J(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...r.headers},o.data=Y(t,o,e),{url:X(i),options:o}},deleteGroup:async(t,n,r={})=>{q(`deleteGroup`,`groupId`,t);let i=`/api/groups/{groupId}`.replace(`{groupId}`,encodeURIComponent(String(t))),a=new URL(i,K),o;e&&(o=e.baseOptions);let s={method:`DELETE`,...o,...r},c={};n!=null&&(c[`X-RequestID`]=String(n)),J(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},{url:X(a),options:s}},getAllGroups:async(t,n,r,i={})=>{let a=new URL(`/api/groups`,K),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)),J(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...i.headers},{url:X(a),options:s}},getAllPersonsByGroupId:async(t,n,r,i,a={})=>{q(`getAllPersonsByGroupId`,`groupId`,t);let o=`/api/groups/{groupId}/persons`.replace(`{groupId}`,encodeURIComponent(String(t))),s=new URL(o,K),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)),J(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...a.headers},{url:X(s),options:l}},getGroup:async(t,n,r={})=>{q(`getGroup`,`groupId`,t);let i=`/api/groups/{groupId}`.replace(`{groupId}`,encodeURIComponent(String(t))),a=new URL(i,K),o;e&&(o=e.baseOptions);let s={method:`GET`,...o,...r},c={};n!=null&&(c[`X-RequestID`]=String(n)),J(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},{url:X(a),options:s}},updateGroup:async(t,n,r,i={})=>{q(`updateGroup`,`groupId`,t),q(`updateGroup`,`groupToCreate`,n);let a=`/api/groups/{groupId}`.replace(`{groupId}`,encodeURIComponent(String(t))),o=new URL(a,K),s;e&&(s=e.baseOptions);let c={method:`PUT`,...s,...i},l={};l[`Content-Type`]=`application/json`,r!=null&&(l[`X-RequestID`]=String(r)),J(o,{});let u=s&&s.headers?s.headers:{};return c.headers={...l,...u,...i.headers},c.data=Y(n,c,e),{url:X(o),options:c}},updatePersonsInGroup:async(t,n,r,i={})=>{q(`updatePersonsInGroup`,`groupId`,t),q(`updatePersonsInGroup`,`updateGroup`,n);let a=`/api/groups/{groupId}/persons`.replace(`{groupId}`,encodeURIComponent(String(t))),o=new URL(a,K),s;e&&(s=e.baseOptions);let c={method:`PUT`,...s,...i},l={};l[`Content-Type`]=`application/json`,r!=null&&(l[`X-RequestID`]=String(r)),J(o,{});let u=s&&s.headers?s.headers:{};return c.headers={...l,...u,...i.headers},c.data=Y(n,c,e),{url:X(o),options:c}}}},Q=function(e){let t=Mr(e);return{async createGroup(n,r,i){let a=await t.createGroup(n,r,i),o=e?.serverIndex??0,s=G[`GroupApi.createGroup`]?.[o]?.url;return(t,n)=>Z(a,H,U,e)(t,s||n)},async deleteGroup(n,r,i){let a=await t.deleteGroup(n,r,i),o=e?.serverIndex??0,s=G[`GroupApi.deleteGroup`]?.[o]?.url;return(t,n)=>Z(a,H,U,e)(t,s||n)},async getAllGroups(n,r,i,a){let o=await t.getAllGroups(n,r,i,a),s=e?.serverIndex??0,c=G[`GroupApi.getAllGroups`]?.[s]?.url;return(t,n)=>Z(o,H,U,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=G[`GroupApi.getAllPersonsByGroupId`]?.[c]?.url;return(t,n)=>Z(s,H,U,e)(t,l||n)},async getGroup(n,r,i){let a=await t.getGroup(n,r,i),o=e?.serverIndex??0,s=G[`GroupApi.getGroup`]?.[o]?.url;return(t,n)=>Z(a,H,U,e)(t,s||n)},async updateGroup(n,r,i,a){let o=await t.updateGroup(n,r,i,a),s=e?.serverIndex??0,c=G[`GroupApi.updateGroup`]?.[s]?.url;return(t,n)=>Z(o,H,U,e)(t,c||n)},async updatePersonsInGroup(n,r,i,a){let o=await t.updatePersonsInGroup(n,r,i,a),s=e?.serverIndex??0,c=G[`GroupApi.updatePersonsInGroup`]?.[s]?.url;return(t,n)=>Z(o,H,U,e)(t,c||n)}}},Nr=class extends W{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))}},Pr=class{constructor(e,t,n){this.superClass=new Nr(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)}},Fr=function(e){return{addImageToPerson:async(t,n,r,i={})=>{q(`addImageToPerson`,`personId`,t),q(`addImageToPerson`,`addImageToPersonRequest`,n);let a=`/api/persons/{personId}/images`.replace(`{personId}`,encodeURIComponent(String(t))),o=new URL(a,K),s;e&&(s=e.baseOptions);let c={method:`POST`,...s,...i},l={};l[`Content-Type`]=`application/json`,r!=null&&(l[`X-RequestID`]=String(r)),J(o,{});let u=s&&s.headers?s.headers:{};return c.headers={...l,...u,...i.headers},c.data=Y(n,c,e),{url:X(o),options:c}},createPerson:async(t,n,r={})=>{q(`createPerson`,`personFields`,t);let i=new URL(`/api/persons`,K),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...r},s={};s[`Content-Type`]=`application/json`,n!=null&&(s[`X-RequestID`]=String(n)),J(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...r.headers},o.data=Y(t,o,e),{url:X(i),options:o}},deleteImageOfPerson:async(t,n,r,i={})=>{q(`deleteImageOfPerson`,`personId`,t),q(`deleteImageOfPerson`,`imageId`,n);let a=`/api/persons/{personId}/images/{imageId}`.replace(`{personId}`,encodeURIComponent(String(t))).replace(`{imageId}`,encodeURIComponent(String(n))),o=new URL(a,K),s;e&&(s=e.baseOptions);let c={method:`DELETE`,...s,...i},l={};r!=null&&(l[`X-RequestID`]=String(r)),J(o,{});let u=s&&s.headers?s.headers:{};return c.headers={...l,...u,...i.headers},{url:X(o),options:c}},deletePerson:async(t,n,r={})=>{q(`deletePerson`,`personId`,t);let i=`/api/persons/{personId}`.replace(`{personId}`,encodeURIComponent(String(t))),a=new URL(i,K),o;e&&(o=e.baseOptions);let s={method:`DELETE`,...o,...r},c={};n!=null&&(c[`X-RequestID`]=String(n)),J(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},{url:X(a),options:s}},getAllGroupsByPersonId:async(t,n,r,i,a={})=>{q(`getAllGroupsByPersonId`,`personId`,t);let o=`/api/persons/{personId}/groups`.replace(`{personId}`,encodeURIComponent(String(t))),s=new URL(o,K),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)),J(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...a.headers},{url:X(s),options:l}},getAllImagesByPersonId:async(t,n,r,i,a={})=>{q(`getAllImagesByPersonId`,`personId`,t);let o=`/api/persons/{personId}/images`.replace(`{personId}`,encodeURIComponent(String(t))),s=new URL(o,K),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)),J(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...a.headers},{url:X(s),options:l}},getImageOfPerson:async(t,n,r,i={})=>{q(`getImageOfPerson`,`personId`,t),q(`getImageOfPerson`,`imageId`,n);let a=`/api/persons/{personId}/images/{imageId}`.replace(`{personId}`,encodeURIComponent(String(t))).replace(`{imageId}`,encodeURIComponent(String(n))),o=new URL(a,K),s;e&&(s=e.baseOptions);let c={method:`GET`,...s,...i},l={};r!=null&&(l[`X-RequestID`]=String(r)),J(o,{});let u=s&&s.headers?s.headers:{};return c.headers={...l,...u,...i.headers},{url:X(o),options:c}},getPerson:async(t,n,r={})=>{q(`getPerson`,`personId`,t);let i=`/api/persons/{personId}`.replace(`{personId}`,encodeURIComponent(String(t))),a=new URL(i,K),o;e&&(o=e.baseOptions);let s={method:`GET`,...o,...r},c={};n!=null&&(c[`X-RequestID`]=String(n)),J(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},{url:X(a),options:s}},updatePerson:async(t,n,r,i={})=>{q(`updatePerson`,`personId`,t),q(`updatePerson`,`personToUpdateFields`,n);let a=`/api/persons/{personId}`.replace(`{personId}`,encodeURIComponent(String(t))),o=new URL(a,K),s;e&&(s=e.baseOptions);let c={method:`PUT`,...s,...i},l={};l[`Content-Type`]=`application/json`,r!=null&&(l[`X-RequestID`]=String(r)),J(o,{});let u=s&&s.headers?s.headers:{};return c.headers={...l,...u,...i.headers},c.data=Y(n,c,e),{url:X(o),options:c}}}},$=function(e){let t=Fr(e);return{async addImageToPerson(n,r,i,a){let o=await t.addImageToPerson(n,r,i,a),s=e?.serverIndex??0,c=G[`PersonApi.addImageToPerson`]?.[s]?.url;return(t,n)=>Z(o,H,U,e)(t,c||n)},async createPerson(n,r,i){let a=await t.createPerson(n,r,i),o=e?.serverIndex??0,s=G[`PersonApi.createPerson`]?.[o]?.url;return(t,n)=>Z(a,H,U,e)(t,s||n)},async deleteImageOfPerson(n,r,i,a){let o=await t.deleteImageOfPerson(n,r,i,a),s=e?.serverIndex??0,c=G[`PersonApi.deleteImageOfPerson`]?.[s]?.url;return(t,n)=>Z(o,H,U,e)(t,c||n)},async deletePerson(n,r,i){let a=await t.deletePerson(n,r,i),o=e?.serverIndex??0,s=G[`PersonApi.deletePerson`]?.[o]?.url;return(t,n)=>Z(a,H,U,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=G[`PersonApi.getAllGroupsByPersonId`]?.[c]?.url;return(t,n)=>Z(s,H,U,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=G[`PersonApi.getAllImagesByPersonId`]?.[c]?.url;return(t,n)=>Z(s,H,U,e)(t,l||n)},async getImageOfPerson(n,r,i,a){let o=await t.getImageOfPerson(n,r,i,a),s=e?.serverIndex??0,c=G[`PersonApi.getImageOfPerson`]?.[s]?.url;return(t,n)=>Z(o,H,U,e)(t,c||n)},async getPerson(n,r,i){let a=await t.getPerson(n,r,i),o=e?.serverIndex??0,s=G[`PersonApi.getPerson`]?.[o]?.url;return(t,n)=>Z(a,H,U,e)(t,s||n)},async updatePerson(n,r,i,a){let o=await t.updatePerson(n,r,i,a),s=e?.serverIndex??0,c=G[`PersonApi.updatePerson`]?.[s]?.url;return(t,n)=>Z(o,H,U,e)(t,c||n)}}},Ir=class extends W{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))}},Lr=class{constructor(e,t,n){this.superClass=new Ir(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=Ar(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)}},Rr=function(e){return{search:async(t,n,r,i={})=>{q(`search`,`searchRequest`,t);let a=new URL(`/api/search`,K),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)),J(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...i.headers},s.data=Y(t,s,e),{url:X(a),options:s}}}},zr=function(e){let t=Rr(e);return{async search(n,r,i,a){let o=await t.search(n,r,i,a),s=e?.serverIndex??0,c=G[`SearchApi.search`]?.[s]?.url;return(t,n)=>Z(o,H,U,e)(t,c||n)}}},Br=class extends W{search(e,t,n,r){return zr(this.configuration).search(e,t,n,r).then(e=>e(this.axios,this.basePath))}},Vr=class{constructor(e,t,n){this.superClass=new Br(e,t,n)}async search(e,t,n,r){return e?.image?.content&&typeof e.image.content!=`string`&&(e.image.content=Ar(e.image.content)),(await this.superClass.search(e,t,n,r)).data}},Hr=function(e){return{deleteLivenessTransaction:async(t,n,r={})=>{let i=new URL(`/api/v2/liveness`,K),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),J(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...r.headers},{url:X(i),options:o}},getLivenessTransactionInfo:async(t,n={})=>{q(`getLivenessTransactionInfo`,`transactionId`,t);let r=new URL(`/api/v2/liveness`,K),i;e&&(i=e.baseOptions);let a={method:`GET`,...i,...n},o={},s={};t!==void 0&&(s.transactionId=t),J(r,s);let c=i&&i.headers?i.headers:{};return a.headers={...o,...c,...n.headers},{url:X(r),options:a}}}},Ur=function(e){let t=Hr(e);return{async deleteLivenessTransaction(n,r,i){let a=await t.deleteLivenessTransaction(n,r,i),o=e?.serverIndex??0,s=G[`Liveness20Api.deleteLivenessTransaction`]?.[o]?.url;return(t,n)=>Z(a,H,U,e)(t,s||n)},async getLivenessTransactionInfo(n,r){let i=await t.getLivenessTransactionInfo(n,r),a=e?.serverIndex??0,o=G[`Liveness20Api.getLivenessTransactionInfo`]?.[a]?.url;return(t,n)=>Z(i,H,U,e)(t,o||n)}}},Wr=class extends W{deleteLivenessTransaction(e,t,n){return Ur(this.configuration).deleteLivenessTransaction(e,t,n).then(e=>e(this.axios,this.basePath))}getLivenessTransactionInfo(e,t){return Ur(this.configuration).getLivenessTransactionInfo(e,t).then(e=>e(this.axios,this.basePath))}},Gr=class{constructor(e,t,n){this.superClass=new Wr(e,t,n)}async getLivenessTransactionInfo(e,t){return(await this.superClass.getLivenessTransactionInfo(e,t)).data}},Kr=function(e){return{healthz:async(t,n={})=>{let r=new URL(`/api/healthz`,K),i;e&&(i=e.baseOptions);let a={method:`GET`,...i,...n},o={};t!=null&&(o[`X-RequestID`]=String(t)),J(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},{url:X(r),options:a}},readyz:async(t,n={})=>{let r=new URL(`/api/readyz`,K),i;e&&(i=e.baseOptions);let a={method:`GET`,...i,...n},o={};t!=null&&(o[`X-RequestID`]=String(t)),J(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},{url:X(r),options:a}}}},qr=function(e){let t=Kr(e);return{async healthz(n,r){let i=await t.healthz(n,r),a=e?.serverIndex??0,o=G[`HealthcheckApi.healthz`]?.[a]?.url;return(t,n)=>Z(i,H,U,e)(t,o||n)},async readyz(n,r){let i=await t.readyz(n,r),a=e?.serverIndex??0,o=G[`HealthcheckApi.readyz`]?.[a]?.url;return(t,n)=>Z(i,H,U,e)(t,o||n)}}},Jr=class extends W{healthz(e,t){return qr(this.configuration).healthz(e,t).then(e=>e(this.axios,this.basePath))}readyz(e,t){return qr(this.configuration).readyz(e,t).then(e=>e(this.axios,this.basePath))}},Yr=class{constructor(e,t,n){this.superClass=new Jr(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}},Xr=class{constructor(e,t=U,n=H){this.basePath=t,this.axios=n,this.matchApi=new jr(e,t,n),this.groupApi=new Pr(e,t,n),this.personApi=new Lr(e,t,n),this.searchApi=new Vr(e,t,n),this.livenessApi=new Gr(e,t,n),this.healthcheckApi=new Yr(e,t,n)}},Zr=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=Zr,exports.FaceAttribute=gr,exports.FaceImageQualityAlignType=_r,exports.FaceImageQualityGroups=vr,exports.FaceImageQualityGroupsStrings=yr,exports.FaceImageQualityStatus=br,exports.FaceQualityConfigName=xr,exports.FaceQualityScenarios=Sr,exports.FaceSDKResultCode=Cr,exports.FaceSdk=Xr,exports.FilterOp=wr,exports.GroupApi=Pr,exports.HealthcheckApi=Yr,exports.ImageSource=Tr,exports.Liveness20Api=Gr,exports.LivenessType=Er,exports.MatchApi=jr,exports.PersonApi=Lr,exports.SearchApi=Vr;
|
|
9
|
+
`+r)}}catch{}throw e}}_request(e,t){typeof e==`string`?(t||={},t.url=e):t=e||{},t=z(this.defaults,t);let{transitional:n,paramsSerializer:r,headers:i}=t;n!==void 0&&ar.assertOptions(n,{silentJSONParsing:B.transitional(B.boolean),forcedJSONParsing:B.transitional(B.boolean),clarifyTimeoutError:B.transitional(B.boolean),legacyInterceptorReqResOrdering:B.transitional(B.boolean),advertiseZstdAcceptEncoding:B.transitional(B.boolean),validateStatusUndefinedResolves:B.transitional(B.boolean)},!1),r!=null&&(P.isFunction(r)?t.paramsSerializer={serialize:r}:ar.assertOptions(r,{encode:B.function,serialize:B.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls===void 0?t.allowAbsoluteUrls=!0:t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls),ar.assertOptions(t,{baseUrl:B.spelling(`baseURL`),withXsrfToken:B.spelling(`withXSRFToken`)},!0),t.method=(P.getSafeProp(t,`method`)||P.getSafeProp(this.defaults,`method`)||`get`).toLowerCase();let a=i&&P.merge(i.common,i[t.method]);i&&P.forEach(Gt.concat(`common`),e=>{delete i[e]}),t.headers=F.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||jt;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=[tr.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?e(f):f}catch(e){if(!t){l=Promise.reject(e);break}try{let n=t.call(this,e);P.isThenable(n)&&(l=Promise.resolve(n).then(()=>tr.call(this,f)))}catch(e){l=Promise.reject(e)}break}}if(!l)try{l=tr.call(this,f)}catch(e){l=Promise.reject(e)}for(u=0,d=c.length;u<d;)l=l.then(c[u++],c[u++]);return l}getUri(e){return e=z(this.defaults,e),Tt(hn(e.baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}};P.forEach([`delete`,`get`,`head`,`options`],function(e){V.prototype[e]=function(t,n){return this.request(z(n||{},{method:e,url:t,data:n&&P.hasOwnProp(n,`data`)?n.data:void 0}))}}),P.forEach([`post`,`put`,`patch`,`query`],function(e){function t(t){return function(n,r,i){return this.request(z(i||{},{method:e,headers:t?{"Content-Type":`multipart/form-data`}:{},url:n,data:r}))}}V.prototype[e]=t(),e!==`query`&&(V.prototype[e+`Form`]=t(!0))});var or=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 Xt(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 sr(e){return function(t){return e.apply(null,t)}}function cr(e){return P.isObject(e)&&e.isAxiosError===!0}var lr={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,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent: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,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(lr).forEach(([e,t])=>{lr[t]===void 0&&(lr[t]=e)});function ur(e){let t=new V(e),r=n(V.prototype.request,t);return P.extend(r,V.prototype,t,{allOwnKeys:!0}),P.extend(r,t,null,{allOwnKeys:!0}),r.create=function(t){return ur(z(e,t))},r}var H=ur(qt);H.Axios=V,H.CanceledError=Xt,H.CancelToken=or,H.isCancel=Yt,H.VERSION=Rn,H.toFormData=bt,H.AxiosError=I,H.Cancel=H.CanceledError,H.all=function(e){return Promise.all(e)},H.spread=sr,H.isAxiosError=cr,H.mergeConfig=z,H.AxiosHeaders=F,H.formToJSON=e=>Wt(P.isHTMLForm(e)?new FormData(e):e),H.getAdapter=$n.getAdapter,H.HttpStatusCode=lr,H.default=H;var U=`https://faceapi.regulaforensics.com`.replace(/\/+$/,``),W=class{constructor(e,t=U,n=H){this.basePath=t,this.axios=n,e&&(this.configuration=e,this.basePath=e.basePath??t)}},dr=class extends Error{constructor(e,t){super(t),this.field=e,this.name=`RequiredError`}},G={},K=`https://example.com`,q=function(e,t,n){if(n==null)throw new dr(t,`Required parameter ${t} was null or undefined when calling ${e}.`)};function fr(e,t,n=``){t!=null&&(typeof t==`object`?Array.isArray(t)?t.forEach(t=>fr(e,t,n)):Object.keys(t).forEach(r=>fr(e,t[r],`${n}${n===``?``:`.`}${r}`)):e.has(n)?e.append(n,t):e.set(n,t))}for(var J=function(e,...t){let n=new URLSearchParams(e.search);fr(n,t),e.search=n.toString()},Y=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||``},X=function(e){return e.pathname+e.search+e.hash},Z=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)}},pr=function(e){return{detect:async(t,n,r={})=>{q(`detect`,`detectRequest`,t);let i=new URL(`/api/detect`,K),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...r},s={};s[`Content-Type`]=`application/json`,n!=null&&(s[`X-RequestID`]=String(n)),J(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...r.headers},o.data=Y(t,o,e),{url:X(i),options:o}},match:async(t,n,r={})=>{q(`match`,`matchRequest`,t);let i=new URL(`/api/match`,K),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...r},s={};s[`Content-Type`]=`application/json`,n!=null&&(s[`X-RequestID`]=String(n)),J(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...r.headers},o.data=Y(t,o,e),{url:X(i),options:o}},matchAndSearch:async(t,n,r={})=>{q(`matchAndSearch`,`matchAndSearchRequest`,t);let i=new URL(`/api/match_and_search`,K),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...r},s={};s[`Content-Type`]=`application/json`,n!=null&&(s[`X-RequestID`]=String(n)),J(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...r.headers},o.data=Y(t,o,e),{url:X(i),options:o}}}},mr=function(e){let t=pr(e);return{async detect(n,r,i){let a=await t.detect(n,r,i),o=e?.serverIndex??0,s=G[`MatchApi.detect`]?.[o]?.url;return(t,n)=>Z(a,H,U,e)(t,s||n)},async match(n,r,i){let a=await t.match(n,r,i),o=e?.serverIndex??0,s=G[`MatchApi.match`]?.[o]?.url;return(t,n)=>Z(a,H,U,e)(t,s||n)},async matchAndSearch(n,r,i){let a=await t.matchAndSearch(n,r,i),o=e?.serverIndex??0,s=G[`MatchApi.matchAndSearch`]?.[o]?.url;return(t,n)=>Z(a,H,U,e)(t,s||n)}}},hr=class extends W{detect(e,t,n){return mr(this.configuration).detect(e,t,n).then(e=>e(this.axios,this.basePath))}match(e,t,n){return mr(this.configuration).match(e,t,n).then(e=>e(this.axios,this.basePath))}matchAndSearch(e,t,n){return mr(this.configuration).matchAndSearch(e,t,n).then(e=>e(this.axios,this.basePath))}},gr=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}({}),_r=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}({}),vr=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}({}),yr=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}({}),br=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}({}),xr=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}({}),Sr=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}({}),Cr=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}({}),wr=function(e){return e.IN=`in`,e.NOT_IN=`nin`,e}({}),Tr=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}({}),Er=function(e){return e[e.ACTIVE=0]=`ACTIVE`,e[e.PASSIVE=1]=`PASSIVE`,e[e.PASSIVE_WITH_BLINK=2]=`PASSIVE_WITH_BLINK`,e}({}),Dr=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,Or=typeof Uint8Array>`u`?[]:new Uint8Array(256),kr=0;kr<Dr.length;kr++)Or[Dr.charCodeAt(kr)]=kr;var Ar=function(e){var t=new Uint8Array(e),n,r=t.length,i=``;for(n=0;n<r;n+=3)i+=Dr[t[n]>>2],i+=Dr[(t[n]&3)<<4|t[n+1]>>4],i+=Dr[(t[n+1]&15)<<2|t[n+2]>>6],i+=Dr[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},jr=class{constructor(e,t,n){this.superClass=new hr(e,t,n)}async match(e,t,n){for(let t of e.images)t.type||=Tr.LIVE,typeof t.data!=`string`&&(t.data=Ar(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=Ar(e.image)),(await this.superClass.detect(e,t,n)).data}async matchAndSearch(e,t,n){if(e.images)for(let t of e.images)t.type||=Tr.LIVE,t.content&&typeof t.content!=`string`&&(t.content=Ar(t.content));return(await this.superClass.matchAndSearch(e,t,n)).data}},Mr=function(e){return{createGroup:async(t,n,r={})=>{q(`createGroup`,`groupToCreate`,t);let i=new URL(`/api/groups`,K),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...r},s={};s[`Content-Type`]=`application/json`,n!=null&&(s[`X-RequestID`]=String(n)),J(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...r.headers},o.data=Y(t,o,e),{url:X(i),options:o}},deleteGroup:async(t,n,r={})=>{q(`deleteGroup`,`groupId`,t);let i=`/api/groups/{groupId}`.replace(`{groupId}`,encodeURIComponent(String(t))),a=new URL(i,K),o;e&&(o=e.baseOptions);let s={method:`DELETE`,...o,...r},c={};n!=null&&(c[`X-RequestID`]=String(n)),J(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},{url:X(a),options:s}},getAllGroups:async(t,n,r,i={})=>{let a=new URL(`/api/groups`,K),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)),J(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...i.headers},{url:X(a),options:s}},getAllPersonsByGroupId:async(t,n,r,i,a={})=>{q(`getAllPersonsByGroupId`,`groupId`,t);let o=`/api/groups/{groupId}/persons`.replace(`{groupId}`,encodeURIComponent(String(t))),s=new URL(o,K),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)),J(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...a.headers},{url:X(s),options:l}},getGroup:async(t,n,r={})=>{q(`getGroup`,`groupId`,t);let i=`/api/groups/{groupId}`.replace(`{groupId}`,encodeURIComponent(String(t))),a=new URL(i,K),o;e&&(o=e.baseOptions);let s={method:`GET`,...o,...r},c={};n!=null&&(c[`X-RequestID`]=String(n)),J(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},{url:X(a),options:s}},updateGroup:async(t,n,r,i={})=>{q(`updateGroup`,`groupId`,t),q(`updateGroup`,`groupToCreate`,n);let a=`/api/groups/{groupId}`.replace(`{groupId}`,encodeURIComponent(String(t))),o=new URL(a,K),s;e&&(s=e.baseOptions);let c={method:`PUT`,...s,...i},l={};l[`Content-Type`]=`application/json`,r!=null&&(l[`X-RequestID`]=String(r)),J(o,{});let u=s&&s.headers?s.headers:{};return c.headers={...l,...u,...i.headers},c.data=Y(n,c,e),{url:X(o),options:c}},updatePersonsInGroup:async(t,n,r,i={})=>{q(`updatePersonsInGroup`,`groupId`,t),q(`updatePersonsInGroup`,`updateGroup`,n);let a=`/api/groups/{groupId}/persons`.replace(`{groupId}`,encodeURIComponent(String(t))),o=new URL(a,K),s;e&&(s=e.baseOptions);let c={method:`PUT`,...s,...i},l={};l[`Content-Type`]=`application/json`,r!=null&&(l[`X-RequestID`]=String(r)),J(o,{});let u=s&&s.headers?s.headers:{};return c.headers={...l,...u,...i.headers},c.data=Y(n,c,e),{url:X(o),options:c}}}},Q=function(e){let t=Mr(e);return{async createGroup(n,r,i){let a=await t.createGroup(n,r,i),o=e?.serverIndex??0,s=G[`GroupApi.createGroup`]?.[o]?.url;return(t,n)=>Z(a,H,U,e)(t,s||n)},async deleteGroup(n,r,i){let a=await t.deleteGroup(n,r,i),o=e?.serverIndex??0,s=G[`GroupApi.deleteGroup`]?.[o]?.url;return(t,n)=>Z(a,H,U,e)(t,s||n)},async getAllGroups(n,r,i,a){let o=await t.getAllGroups(n,r,i,a),s=e?.serverIndex??0,c=G[`GroupApi.getAllGroups`]?.[s]?.url;return(t,n)=>Z(o,H,U,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=G[`GroupApi.getAllPersonsByGroupId`]?.[c]?.url;return(t,n)=>Z(s,H,U,e)(t,l||n)},async getGroup(n,r,i){let a=await t.getGroup(n,r,i),o=e?.serverIndex??0,s=G[`GroupApi.getGroup`]?.[o]?.url;return(t,n)=>Z(a,H,U,e)(t,s||n)},async updateGroup(n,r,i,a){let o=await t.updateGroup(n,r,i,a),s=e?.serverIndex??0,c=G[`GroupApi.updateGroup`]?.[s]?.url;return(t,n)=>Z(o,H,U,e)(t,c||n)},async updatePersonsInGroup(n,r,i,a){let o=await t.updatePersonsInGroup(n,r,i,a),s=e?.serverIndex??0,c=G[`GroupApi.updatePersonsInGroup`]?.[s]?.url;return(t,n)=>Z(o,H,U,e)(t,c||n)}}},Nr=class extends W{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))}},Pr=class{constructor(e,t,n){this.superClass=new Nr(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)}},Fr=function(e){return{addImageToPerson:async(t,n,r,i={})=>{q(`addImageToPerson`,`personId`,t),q(`addImageToPerson`,`addImageToPersonRequest`,n);let a=`/api/persons/{personId}/images`.replace(`{personId}`,encodeURIComponent(String(t))),o=new URL(a,K),s;e&&(s=e.baseOptions);let c={method:`POST`,...s,...i},l={};l[`Content-Type`]=`application/json`,r!=null&&(l[`X-RequestID`]=String(r)),J(o,{});let u=s&&s.headers?s.headers:{};return c.headers={...l,...u,...i.headers},c.data=Y(n,c,e),{url:X(o),options:c}},createPerson:async(t,n,r={})=>{q(`createPerson`,`personFields`,t);let i=new URL(`/api/persons`,K),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...r},s={};s[`Content-Type`]=`application/json`,n!=null&&(s[`X-RequestID`]=String(n)),J(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...r.headers},o.data=Y(t,o,e),{url:X(i),options:o}},deleteImageOfPerson:async(t,n,r,i={})=>{q(`deleteImageOfPerson`,`personId`,t),q(`deleteImageOfPerson`,`imageId`,n);let a=`/api/persons/{personId}/images/{imageId}`.replace(`{personId}`,encodeURIComponent(String(t))).replace(`{imageId}`,encodeURIComponent(String(n))),o=new URL(a,K),s;e&&(s=e.baseOptions);let c={method:`DELETE`,...s,...i},l={};r!=null&&(l[`X-RequestID`]=String(r)),J(o,{});let u=s&&s.headers?s.headers:{};return c.headers={...l,...u,...i.headers},{url:X(o),options:c}},deletePerson:async(t,n,r={})=>{q(`deletePerson`,`personId`,t);let i=`/api/persons/{personId}`.replace(`{personId}`,encodeURIComponent(String(t))),a=new URL(i,K),o;e&&(o=e.baseOptions);let s={method:`DELETE`,...o,...r},c={};n!=null&&(c[`X-RequestID`]=String(n)),J(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},{url:X(a),options:s}},getAllGroupsByPersonId:async(t,n,r,i,a={})=>{q(`getAllGroupsByPersonId`,`personId`,t);let o=`/api/persons/{personId}/groups`.replace(`{personId}`,encodeURIComponent(String(t))),s=new URL(o,K),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)),J(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...a.headers},{url:X(s),options:l}},getAllImagesByPersonId:async(t,n,r,i,a={})=>{q(`getAllImagesByPersonId`,`personId`,t);let o=`/api/persons/{personId}/images`.replace(`{personId}`,encodeURIComponent(String(t))),s=new URL(o,K),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)),J(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...a.headers},{url:X(s),options:l}},getImageOfPerson:async(t,n,r,i={})=>{q(`getImageOfPerson`,`personId`,t),q(`getImageOfPerson`,`imageId`,n);let a=`/api/persons/{personId}/images/{imageId}`.replace(`{personId}`,encodeURIComponent(String(t))).replace(`{imageId}`,encodeURIComponent(String(n))),o=new URL(a,K),s;e&&(s=e.baseOptions);let c={method:`GET`,...s,...i},l={};r!=null&&(l[`X-RequestID`]=String(r)),J(o,{});let u=s&&s.headers?s.headers:{};return c.headers={...l,...u,...i.headers},{url:X(o),options:c}},getPerson:async(t,n,r={})=>{q(`getPerson`,`personId`,t);let i=`/api/persons/{personId}`.replace(`{personId}`,encodeURIComponent(String(t))),a=new URL(i,K),o;e&&(o=e.baseOptions);let s={method:`GET`,...o,...r},c={};n!=null&&(c[`X-RequestID`]=String(n)),J(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},{url:X(a),options:s}},updatePerson:async(t,n,r,i={})=>{q(`updatePerson`,`personId`,t),q(`updatePerson`,`personToUpdateFields`,n);let a=`/api/persons/{personId}`.replace(`{personId}`,encodeURIComponent(String(t))),o=new URL(a,K),s;e&&(s=e.baseOptions);let c={method:`PUT`,...s,...i},l={};l[`Content-Type`]=`application/json`,r!=null&&(l[`X-RequestID`]=String(r)),J(o,{});let u=s&&s.headers?s.headers:{};return c.headers={...l,...u,...i.headers},c.data=Y(n,c,e),{url:X(o),options:c}}}},$=function(e){let t=Fr(e);return{async addImageToPerson(n,r,i,a){let o=await t.addImageToPerson(n,r,i,a),s=e?.serverIndex??0,c=G[`PersonApi.addImageToPerson`]?.[s]?.url;return(t,n)=>Z(o,H,U,e)(t,c||n)},async createPerson(n,r,i){let a=await t.createPerson(n,r,i),o=e?.serverIndex??0,s=G[`PersonApi.createPerson`]?.[o]?.url;return(t,n)=>Z(a,H,U,e)(t,s||n)},async deleteImageOfPerson(n,r,i,a){let o=await t.deleteImageOfPerson(n,r,i,a),s=e?.serverIndex??0,c=G[`PersonApi.deleteImageOfPerson`]?.[s]?.url;return(t,n)=>Z(o,H,U,e)(t,c||n)},async deletePerson(n,r,i){let a=await t.deletePerson(n,r,i),o=e?.serverIndex??0,s=G[`PersonApi.deletePerson`]?.[o]?.url;return(t,n)=>Z(a,H,U,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=G[`PersonApi.getAllGroupsByPersonId`]?.[c]?.url;return(t,n)=>Z(s,H,U,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=G[`PersonApi.getAllImagesByPersonId`]?.[c]?.url;return(t,n)=>Z(s,H,U,e)(t,l||n)},async getImageOfPerson(n,r,i,a){let o=await t.getImageOfPerson(n,r,i,a),s=e?.serverIndex??0,c=G[`PersonApi.getImageOfPerson`]?.[s]?.url;return(t,n)=>Z(o,H,U,e)(t,c||n)},async getPerson(n,r,i){let a=await t.getPerson(n,r,i),o=e?.serverIndex??0,s=G[`PersonApi.getPerson`]?.[o]?.url;return(t,n)=>Z(a,H,U,e)(t,s||n)},async updatePerson(n,r,i,a){let o=await t.updatePerson(n,r,i,a),s=e?.serverIndex??0,c=G[`PersonApi.updatePerson`]?.[s]?.url;return(t,n)=>Z(o,H,U,e)(t,c||n)}}},Ir=class extends W{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))}},Lr=class{constructor(e,t,n){this.superClass=new Ir(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=Ar(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)}},Rr=function(e){return{search:async(t,n,r,i={})=>{q(`search`,`searchRequest`,t);let a=new URL(`/api/search`,K),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)),J(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...i.headers},s.data=Y(t,s,e),{url:X(a),options:s}}}},zr=function(e){let t=Rr(e);return{async search(n,r,i,a){let o=await t.search(n,r,i,a),s=e?.serverIndex??0,c=G[`SearchApi.search`]?.[s]?.url;return(t,n)=>Z(o,H,U,e)(t,c||n)}}},Br=class extends W{search(e,t,n,r){return zr(this.configuration).search(e,t,n,r).then(e=>e(this.axios,this.basePath))}},Vr=class{constructor(e,t,n){this.superClass=new Br(e,t,n)}async search(e,t,n,r){return e?.image?.content&&typeof e.image.content!=`string`&&(e.image.content=Ar(e.image.content)),(await this.superClass.search(e,t,n,r)).data}},Hr=function(e){return{deleteLivenessTransaction:async(t,n,r={})=>{q(`deleteLivenessTransaction`,`transactionId`,t),q(`deleteLivenessTransaction`,`tag`,n);let i=new URL(`/api/v2/liveness`,K),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),J(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...r.headers},{url:X(i),options:o}},getLivenessTransactionInfo:async(t,n={})=>{q(`getLivenessTransactionInfo`,`transactionId`,t);let r=new URL(`/api/v2/liveness`,K),i;e&&(i=e.baseOptions);let a={method:`GET`,...i,...n},o={},s={};t!==void 0&&(s.transactionId=t),J(r,s);let c=i&&i.headers?i.headers:{};return a.headers={...o,...c,...n.headers},{url:X(r),options:a}}}},Ur=function(e){let t=Hr(e);return{async deleteLivenessTransaction(n,r,i){let a=await t.deleteLivenessTransaction(n,r,i),o=e?.serverIndex??0,s=G[`Liveness20Api.deleteLivenessTransaction`]?.[o]?.url;return(t,n)=>Z(a,H,U,e)(t,s||n)},async getLivenessTransactionInfo(n,r){let i=await t.getLivenessTransactionInfo(n,r),a=e?.serverIndex??0,o=G[`Liveness20Api.getLivenessTransactionInfo`]?.[a]?.url;return(t,n)=>Z(i,H,U,e)(t,o||n)}}},Wr=class extends W{deleteLivenessTransaction(e,t,n){return Ur(this.configuration).deleteLivenessTransaction(e,t,n).then(e=>e(this.axios,this.basePath))}getLivenessTransactionInfo(e,t){return Ur(this.configuration).getLivenessTransactionInfo(e,t).then(e=>e(this.axios,this.basePath))}},Gr=class{constructor(e,t,n){this.superClass=new Wr(e,t,n)}async getLivenessTransactionInfo(e,t){return(await this.superClass.getLivenessTransactionInfo(e,t)).data}},Kr=function(e){return{healthz:async(t,n={})=>{let r=new URL(`/api/healthz`,K),i;e&&(i=e.baseOptions);let a={method:`GET`,...i,...n},o={};t!=null&&(o[`X-RequestID`]=String(t)),J(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},{url:X(r),options:a}},readyz:async(t,n={})=>{let r=new URL(`/api/readyz`,K),i;e&&(i=e.baseOptions);let a={method:`GET`,...i,...n},o={};t!=null&&(o[`X-RequestID`]=String(t)),J(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},{url:X(r),options:a}}}},qr=function(e){let t=Kr(e);return{async healthz(n,r){let i=await t.healthz(n,r),a=e?.serverIndex??0,o=G[`HealthcheckApi.healthz`]?.[a]?.url;return(t,n)=>Z(i,H,U,e)(t,o||n)},async readyz(n,r){let i=await t.readyz(n,r),a=e?.serverIndex??0,o=G[`HealthcheckApi.readyz`]?.[a]?.url;return(t,n)=>Z(i,H,U,e)(t,o||n)}}},Jr=class extends W{healthz(e,t){return qr(this.configuration).healthz(e,t).then(e=>e(this.axios,this.basePath))}readyz(e,t){return qr(this.configuration).readyz(e,t).then(e=>e(this.axios,this.basePath))}},Yr=class{constructor(e,t,n){this.superClass=new Jr(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}},Xr=class{constructor(e,t=U,n=H){this.basePath=t,this.axios=n,this.matchApi=new jr(e,t,n),this.groupApi=new Pr(e,t,n),this.personApi=new Lr(e,t,n),this.searchApi=new Vr(e,t,n),this.livenessApi=new Gr(e,t,n),this.healthcheckApi=new Yr(e,t,n)}},Zr=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=Zr,exports.FaceAttribute=gr,exports.FaceImageQualityAlignType=_r,exports.FaceImageQualityGroups=vr,exports.FaceImageQualityGroupsStrings=yr,exports.FaceImageQualityStatus=br,exports.FaceQualityConfigName=xr,exports.FaceQualityScenarios=Sr,exports.FaceSDKResultCode=Cr,exports.FaceSdk=Xr,exports.FilterOp=wr,exports.GroupApi=Pr,exports.HealthcheckApi=Yr,exports.ImageSource=Tr,exports.Liveness20Api=Gr,exports.LivenessType=Er,exports.MatchApi=jr,exports.PersonApi=Lr,exports.SearchApi=Vr;
|
package/dist/index.d.ts
CHANGED
|
@@ -213,7 +213,7 @@ export declare interface Detection {
|
|
|
213
213
|
'landmarks': Array<Array<number>>;
|
|
214
214
|
'quality'?: DetectionQuality;
|
|
215
215
|
/**
|
|
216
|
-
* The rectangular area of a detected face that is represented by a set of four elements
|
|
216
|
+
* The rectangular area of a detected face that is represented by a set of four elements: the X and Y coordinates of the top-left point, and the width and height dimensions of the rectangle.
|
|
217
217
|
*/
|
|
218
218
|
'roi': Array<number>;
|
|
219
219
|
}
|
|
@@ -255,7 +255,7 @@ export declare interface DetectionFace {
|
|
|
255
255
|
*/
|
|
256
256
|
'rotationAngle'?: number;
|
|
257
257
|
/**
|
|
258
|
-
* The rectangular area of a detected face that is represented by a set of four elements
|
|
258
|
+
* The rectangular area of a detected face that is represented by a set of four elements: the X and Y coordinates of the top-left point, and the width and height dimensions of the rectangle.
|
|
259
259
|
*/
|
|
260
260
|
'roi'?: Array<number>;
|
|
261
261
|
/**
|
|
@@ -588,10 +588,6 @@ export declare class FaceSdk {
|
|
|
588
588
|
|
|
589
589
|
export declare interface FaceSDKResult {
|
|
590
590
|
'code': FaceSDKResultCode;
|
|
591
|
-
/**
|
|
592
|
-
* Transaction identifier
|
|
593
|
-
*/
|
|
594
|
-
'transactionId': string;
|
|
595
591
|
}
|
|
596
592
|
|
|
597
593
|
/**
|
|
@@ -599,201 +595,50 @@ export declare interface FaceSDKResult {
|
|
|
599
595
|
* Do not edit the file manually.
|
|
600
596
|
*/
|
|
601
597
|
/**
|
|
602
|
-
* The result code.
|
|
598
|
+
* The result code, see the [FaceSDKResultCode enum](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/enums/face-sdk-result-code/).
|
|
603
599
|
*/
|
|
604
600
|
export declare enum FaceSDKResultCode {
|
|
605
|
-
/**
|
|
606
|
-
* No issues. The process completed successfully.
|
|
607
|
-
*/
|
|
608
601
|
FACER_OK = 0,
|
|
609
|
-
/**
|
|
610
|
-
* Cannot read image. The file may not be a valid image format or could be corrupted.
|
|
611
|
-
*/
|
|
612
602
|
FR_IMAGE_EMPTY = 1,
|
|
613
|
-
/**
|
|
614
|
-
* Face not detected.
|
|
615
|
-
*/
|
|
616
603
|
FR_FACE_NOT_DETECTED = 2,
|
|
617
|
-
/**
|
|
618
|
-
* Landmarks not detected.
|
|
619
|
-
*/
|
|
620
604
|
FR_LANDMARKS_NOT_DETECTED = 3,
|
|
621
|
-
/**
|
|
622
|
-
* An internal processing error occurred.
|
|
623
|
-
*/
|
|
624
605
|
FR_FACE_ALIGHNER_FAILED = 4,
|
|
625
|
-
/**
|
|
626
|
-
* An internal processing error occurred.
|
|
627
|
-
*/
|
|
628
606
|
FR_DESCRIPTOR_EXTRACTOR_ERROR = 5,
|
|
629
|
-
/**
|
|
630
|
-
* Cannot read image. The image may be corrupted.
|
|
631
|
-
*/
|
|
632
607
|
FR_IMAGE_DECODE_ERROR = 6,
|
|
633
|
-
/**
|
|
634
|
-
* An internal processing error occurred.
|
|
635
|
-
*/
|
|
636
608
|
FR_INTERNAL_ERROR = 7,
|
|
637
|
-
/**
|
|
638
|
-
* An internal processing error occurred.
|
|
639
|
-
*/
|
|
640
609
|
FACER_CONFIG_ERROR = 199,
|
|
641
|
-
/**
|
|
642
|
-
* No appropriate license. Ensure that your license is valid, the required features are enabled, and the environment is configured correctly.
|
|
643
|
-
*/
|
|
644
610
|
FACER_NO_LICENSE = 200,
|
|
645
|
-
/**
|
|
646
|
-
* An internal processing error occurred.
|
|
647
|
-
*/
|
|
648
611
|
FACER_IS_NOT_INITIALIZED = 201,
|
|
649
|
-
/**
|
|
650
|
-
* Incorrect request parameters. Check that the request matches the specification.
|
|
651
|
-
*/
|
|
652
612
|
FACER_COMMAND_IS_NOT_SUPPORTED = 202,
|
|
653
|
-
/**
|
|
654
|
-
* The worker failed because the request parameters are invalid. Check that the request follows the correct format.
|
|
655
|
-
*/
|
|
656
613
|
FACER_COMMAND_PARAMS_READ_ERROR = 203,
|
|
657
|
-
/**
|
|
658
|
-
* While using Match, fewer than two images were provided.
|
|
659
|
-
*/
|
|
660
614
|
FACER_LESS_THAN_TWO_IMAGES_IN_REQUEST = 224,
|
|
661
|
-
/**
|
|
662
|
-
* An internal processing error occurred.
|
|
663
|
-
*/
|
|
664
615
|
FACER_VIDEO_DECODE_ERROR = 227,
|
|
665
|
-
/**
|
|
666
|
-
* An internal processing error occurred.
|
|
667
|
-
*/
|
|
668
616
|
FACER_NOT_ENOUGH_FRAMES = 228,
|
|
669
|
-
/**
|
|
670
|
-
* An internal processing error occurred.
|
|
671
|
-
*/
|
|
672
617
|
FACER_OUTPUT_IS_NOT_DEFINED = 229,
|
|
673
|
-
/**
|
|
674
|
-
* An internal processing error occurred.
|
|
675
|
-
*/
|
|
676
618
|
FACER_CLOSED_EYES_DETECTED = 230,
|
|
677
|
-
/**
|
|
678
|
-
* An internal processing error occurred.
|
|
679
|
-
*/
|
|
680
619
|
FACER_LOW_QUALITY = 231,
|
|
681
|
-
/**
|
|
682
|
-
* An internal processing error occurred.
|
|
683
|
-
*/
|
|
684
620
|
FACER_HIGH_ASYMMETRY = 232,
|
|
685
|
-
/**
|
|
686
|
-
* An internal processing error occurred.
|
|
687
|
-
*/
|
|
688
621
|
FACER_FACE_OVER_EMOTIONAL = 233,
|
|
689
|
-
/**
|
|
690
|
-
* An internal processing error occurred.
|
|
691
|
-
*/
|
|
692
622
|
FACER_SUNGLASSES_DETECTED = 234,
|
|
693
|
-
/**
|
|
694
|
-
* An internal processing error occurred.
|
|
695
|
-
*/
|
|
696
623
|
FACER_SMALL_AGE = 235,
|
|
697
|
-
/**
|
|
698
|
-
* An internal processing error occurred.
|
|
699
|
-
*/
|
|
700
624
|
FACER_HEADDRESS_DETECTED = 236,
|
|
701
|
-
/**
|
|
702
|
-
* Liveness spoofing attempt detected.
|
|
703
|
-
*/
|
|
704
625
|
FACER_FACES_NOT_MATCHED = 237,
|
|
705
|
-
/**
|
|
706
|
-
* For the Match function, only two images of the same type are allowed.
|
|
707
|
-
*/
|
|
708
626
|
FACER_IMAGES_COUNT_LIMIT_EXCEEDED = 238,
|
|
709
|
-
/**
|
|
710
|
-
* An internal processing error occurred.
|
|
711
|
-
*/
|
|
712
627
|
FACER_MEDICINE_MASK_DETECTED = 239,
|
|
713
|
-
/**
|
|
714
|
-
* Liveness spoofing attempt detected.
|
|
715
|
-
*/
|
|
716
628
|
FACER_OCCLUSION_DETECTED = 240,
|
|
717
|
-
/**
|
|
718
|
-
* Liveness spoofing attempt detected.
|
|
719
|
-
*/
|
|
720
629
|
FACER_FOREHEAD_GLASSES_DETECTED = 242,
|
|
721
|
-
/**
|
|
722
|
-
* Liveness spoofing attempt detected.
|
|
723
|
-
*/
|
|
724
630
|
FACER_MOUTH_OPENED = 243,
|
|
725
|
-
/**
|
|
726
|
-
* Liveness spoofing attempt detected.
|
|
727
|
-
*/
|
|
728
631
|
FACER_ART_MASK_DETECTED = 244,
|
|
729
|
-
/**
|
|
730
|
-
* Liveness spoofing attempt detected.
|
|
731
|
-
*/
|
|
732
632
|
FACER_ELECTRONIC_DEVICE_DETECTED = 245,
|
|
733
|
-
/**
|
|
734
|
-
* Liveness spoofing attempt detected.
|
|
735
|
-
*/
|
|
736
633
|
FACER_TRACK_BREAK = 246,
|
|
737
|
-
/**
|
|
738
|
-
* Liveness spoofing attempt detected.
|
|
739
|
-
*/
|
|
740
634
|
FACER_WRONG_GEO = 247,
|
|
741
|
-
/**
|
|
742
|
-
* Liveness spoofing attempt detected.
|
|
743
|
-
*/
|
|
744
635
|
FACER_WRONG_OF = 248,
|
|
745
|
-
/**
|
|
746
|
-
* Liveness spoofing attempt detected.
|
|
747
|
-
*/
|
|
748
636
|
FACER_WRONG_VIEW = 249,
|
|
749
|
-
/**
|
|
750
|
-
* The user did not complete the liveness verification within the allowed time.
|
|
751
|
-
*/
|
|
752
637
|
FACER_TIMEOUT_LIVENESS_TRANSACTION = 250,
|
|
753
|
-
/**
|
|
754
|
-
* A system error occurred during the liveness verification process.
|
|
755
|
-
*/
|
|
756
638
|
FACER_FAILED_LIVENESS_TRANSACTION = 251,
|
|
757
|
-
/**
|
|
758
|
-
* The user aborted the liveness verification process by clicking the Close button or exiting the application.
|
|
759
|
-
*/
|
|
760
639
|
FACER_ABORTED_LIVENESS_TRANSACTION = 252,
|
|
761
|
-
/**
|
|
762
|
-
* Liveness spoofing attempt detected.
|
|
763
|
-
*/
|
|
764
640
|
FACER_GENERAL_ERROR = 253,
|
|
765
|
-
|
|
766
|
-
* Liveness spoofing attempt detected.
|
|
767
|
-
*/
|
|
768
|
-
FACER_PASSIVE_LIVENESS_FAIL = 254,
|
|
769
|
-
/**
|
|
770
|
-
* Liveness spoofing attempt detected.
|
|
771
|
-
*/
|
|
772
|
-
FACER_PRINTED_FACE_DETECTED = 255,
|
|
773
|
-
/**
|
|
774
|
-
* Request processing has been blocked.
|
|
775
|
-
*/
|
|
776
|
-
FACER_BLOCKED_REQUEST = 256,
|
|
777
|
-
/**
|
|
778
|
-
* The request cannot be processed because data integrity was violated during transmission.
|
|
779
|
-
*/
|
|
780
|
-
FACER_CORRUPTED_REQUEST = 257,
|
|
781
|
-
/**
|
|
782
|
-
* Liveness spoofing attempt detected.
|
|
783
|
-
*/
|
|
784
|
-
FACER_GENERAL_CHECK_FAIL_RTD = 258,
|
|
785
|
-
/**
|
|
786
|
-
* Blink check failed on the backend. This error applies only to the liveness mode with blinking enabled.
|
|
787
|
-
*/
|
|
788
|
-
FACER_BLINK_FAILED = 259,
|
|
789
|
-
/**
|
|
790
|
-
* The quality of the captured images is too low to perform reliable detection. The user must pass liveness verification again with better lighting, a clearer background, and a properly positioned camera.
|
|
791
|
-
*/
|
|
792
|
-
FACER_BAD_FACE_QUALITY_LIVENESS_TRANSACTION = 260,
|
|
793
|
-
/**
|
|
794
|
-
* The frame size is below the required minimum. Liveness verification requires at least HD-quality frames.
|
|
795
|
-
*/
|
|
796
|
-
FACER_BAD_FRAME_SIZE = 261
|
|
641
|
+
FACER_PASSIVE_LIVENESS_FAIL = 254
|
|
797
642
|
}
|
|
798
643
|
|
|
799
644
|
/**
|
|
@@ -1168,7 +1013,7 @@ export declare interface MatchImage {
|
|
|
1168
1013
|
/**
|
|
1169
1014
|
* Base64-encoded image.
|
|
1170
1015
|
*/
|
|
1171
|
-
'data'
|
|
1016
|
+
'data': string;
|
|
1172
1017
|
/**
|
|
1173
1018
|
* Whether to detect all faces in the image. If set to `false`, only the most central face is detected.
|
|
1174
1019
|
*/
|
|
@@ -1612,7 +1457,7 @@ export declare interface SearchDetection {
|
|
|
1612
1457
|
*/
|
|
1613
1458
|
'msg'?: string;
|
|
1614
1459
|
/**
|
|
1615
|
-
* The rectangular area of a detected face that is represented by a set of four elements
|
|
1460
|
+
* The rectangular area of a detected face that is represented by a set of four elements: the X and Y coordinates of the top-left point, and the width and height dimensions of the rectangle.
|
|
1616
1461
|
*/
|
|
1617
1462
|
'roi'?: Array<number>;
|
|
1618
1463
|
'versionSDK'?: string;
|
|
@@ -1651,7 +1496,7 @@ export declare interface SearchParametersCreatePerson {
|
|
|
1651
1496
|
/**
|
|
1652
1497
|
* The lifespan of the Person\'s records, seconds. Optional.
|
|
1653
1498
|
*/
|
|
1654
|
-
'ttl'?: number
|
|
1499
|
+
'ttl'?: number;
|
|
1655
1500
|
}
|
|
1656
1501
|
|
|
1657
1502
|
/**
|
|
@@ -1684,11 +1529,14 @@ export declare interface SearchResult {
|
|
|
1684
1529
|
}
|
|
1685
1530
|
|
|
1686
1531
|
export declare interface TransactionInfo {
|
|
1687
|
-
|
|
1532
|
+
/**
|
|
1533
|
+
* Result code, see the [FaceSDKResultCode enum](https://docs.regulaforensics.com/develop/face-sdk/web-service/development/enums/face-sdk-result-code/).
|
|
1534
|
+
*/
|
|
1535
|
+
'code'?: number;
|
|
1688
1536
|
/**
|
|
1689
1537
|
* Whether the liveness detection is confirmed `0` or not `1`.
|
|
1690
1538
|
*/
|
|
1691
|
-
'status'?: number
|
|
1539
|
+
'status'?: number;
|
|
1692
1540
|
/**
|
|
1693
1541
|
* Session identificator, should be unique for each session.
|
|
1694
1542
|
*/
|
package/dist/index.js
CHANGED
|
@@ -196,9 +196,15 @@ var ve = (e, t, r, { allOwnKeys: i } = {}) => (me(t, (t, i) => {
|
|
|
196
196
|
"callee"
|
|
197
197
|
].includes(n)) return !1;
|
|
198
198
|
let r = e[n];
|
|
199
|
-
S(r)
|
|
200
|
-
|
|
201
|
-
|
|
199
|
+
if (S(r)) {
|
|
200
|
+
if (t.enumerable = !1, "writable" in t) {
|
|
201
|
+
t.writable = !1;
|
|
202
|
+
return;
|
|
203
|
+
}
|
|
204
|
+
t.set ||= () => {
|
|
205
|
+
throw Error("Can not rewrite read-only method '" + n + "'");
|
|
206
|
+
};
|
|
207
|
+
}
|
|
202
208
|
});
|
|
203
209
|
}, Ne = (e, t) => {
|
|
204
210
|
let n = {}, r = (e) => {
|
|
@@ -482,7 +488,7 @@ var F = class {
|
|
|
482
488
|
has(e, t) {
|
|
483
489
|
if (e = $e(e), e) {
|
|
484
490
|
let n = P.findKey(this, e);
|
|
485
|
-
return
|
|
491
|
+
return !!(n && this[n] !== void 0 && (!t || st(this, this[n], n, t)));
|
|
486
492
|
}
|
|
487
493
|
return !1;
|
|
488
494
|
}
|
|
@@ -1191,11 +1197,9 @@ function z(e, t) {
|
|
|
1191
1197
|
}
|
|
1192
1198
|
function s(n) {
|
|
1193
1199
|
let r = P.hasOwnProp(t, "transitional") ? t.transitional : void 0;
|
|
1194
|
-
if (!P.isUndefined(r)) {
|
|
1195
|
-
if (P.
|
|
1196
|
-
|
|
1197
|
-
} else return;
|
|
1198
|
-
}
|
|
1200
|
+
if (!P.isUndefined(r)) if (P.isPlainObject(r)) {
|
|
1201
|
+
if (P.hasOwnProp(r, n)) return r[n];
|
|
1202
|
+
} else return;
|
|
1199
1203
|
let i = P.hasOwnProp(e, "transitional") ? e.transitional : void 0;
|
|
1200
1204
|
if (P.isPlainObject(i) && P.hasOwnProp(i, n)) return i[n];
|
|
1201
1205
|
}
|
|
@@ -1248,9 +1252,13 @@ function z(e, t) {
|
|
|
1248
1252
|
//#region node_modules/axios/lib/core/setFormDataHeaders.js
|
|
1249
1253
|
var vn = ["content-type", "content-length"];
|
|
1250
1254
|
function yn(e, t, n) {
|
|
1251
|
-
n
|
|
1255
|
+
if (n !== "content-only") {
|
|
1256
|
+
e.set(t);
|
|
1257
|
+
return;
|
|
1258
|
+
}
|
|
1259
|
+
Object.entries(t || {}).forEach(([t, n]) => {
|
|
1252
1260
|
vn.includes(t.toLowerCase()) && e.set(t, n);
|
|
1253
|
-
})
|
|
1261
|
+
});
|
|
1254
1262
|
}
|
|
1255
1263
|
//#endregion
|
|
1256
1264
|
//#region node_modules/axios/lib/helpers/resolveConfig.js
|
|
@@ -1312,7 +1320,7 @@ var Sn = typeof XMLHttpRequest < "u" && function(e) {
|
|
|
1312
1320
|
}), g = null;
|
|
1313
1321
|
}
|
|
1314
1322
|
"onloadend" in g ? g.onloadend = _ : g.onreadystatechange = function() {
|
|
1315
|
-
g
|
|
1323
|
+
!g || g.readyState !== 4 || g.status === 0 && !(g.responseURL && g.responseURL.startsWith("file:")) || setTimeout(_);
|
|
1316
1324
|
}, g.onabort = function() {
|
|
1317
1325
|
g &&= (n(new I("Request aborted", I.ECONNABORTED, e, g)), h(), null);
|
|
1318
1326
|
}, g.onerror = function(t) {
|
|
@@ -1327,7 +1335,11 @@ var Sn = typeof XMLHttpRequest < "u" && function(e) {
|
|
|
1327
1335
|
g &&= (n(!t || t.type ? new Xt(null, e, g) : t), g.abort(), h(), null);
|
|
1328
1336
|
}, r.cancelToken && r.cancelToken.subscribe(l), r.signal && (r.signal.aborted ? l() : r.signal.addEventListener("abort", l)));
|
|
1329
1337
|
let v = en(r.url);
|
|
1330
|
-
v && !L.protocols.includes(v)
|
|
1338
|
+
if (v && !L.protocols.includes(v)) {
|
|
1339
|
+
n(new I("Unsupported protocol " + v + ":", I.ERR_BAD_REQUEST, e)), h();
|
|
1340
|
+
return;
|
|
1341
|
+
}
|
|
1342
|
+
g.send(i || null);
|
|
1331
1343
|
});
|
|
1332
1344
|
}, Cn = (e, t) => {
|
|
1333
1345
|
if (e = e ? e.filter(Boolean) : [], !t && !e.length) return;
|
|
@@ -1345,7 +1357,13 @@ var Sn = typeof XMLHttpRequest < "u" && function(e) {
|
|
|
1345
1357
|
}), null);
|
|
1346
1358
|
};
|
|
1347
1359
|
e.forEach((e) => {
|
|
1348
|
-
|
|
1360
|
+
if (!r) {
|
|
1361
|
+
if (e.aborted) {
|
|
1362
|
+
i.call(e);
|
|
1363
|
+
return;
|
|
1364
|
+
}
|
|
1365
|
+
e.addEventListener("abort", i, { once: !0 });
|
|
1366
|
+
}
|
|
1349
1367
|
});
|
|
1350
1368
|
let { signal: s } = n;
|
|
1351
1369
|
return s.unsubscribe = () => P.asap(o), s;
|
|
@@ -1406,7 +1424,17 @@ var Sn = typeof XMLHttpRequest < "u" && function(e) {
|
|
|
1406
1424
|
let t = e.length, n = 0, r = 0, i = !1;
|
|
1407
1425
|
for (let a = 0; a < t; a++) {
|
|
1408
1426
|
let o = e.charCodeAt(a);
|
|
1409
|
-
o === 37 && kn(e, a, t) && (o = An(e.charCodeAt(a + 1)) * 16 + An(e.charCodeAt(a + 2)), a += 2), !Mn(o)
|
|
1427
|
+
if (o === 37 && kn(e, a, t) && (o = An(e.charCodeAt(a + 1)) * 16 + An(e.charCodeAt(a + 2)), a += 2), !Mn(o)) {
|
|
1428
|
+
if (o === 61) {
|
|
1429
|
+
r++;
|
|
1430
|
+
continue;
|
|
1431
|
+
}
|
|
1432
|
+
if (!jn(o) || r > 0) {
|
|
1433
|
+
i = !0;
|
|
1434
|
+
continue;
|
|
1435
|
+
}
|
|
1436
|
+
n++;
|
|
1437
|
+
}
|
|
1410
1438
|
}
|
|
1411
1439
|
return i || r > 2 || r > 0 && (n + r) % 4 != 0 || n % 4 == 1 ? Pn(e) : Nn(n);
|
|
1412
1440
|
}, In = (e, t) => {
|
|
@@ -1434,7 +1462,7 @@ function Ln(e) {
|
|
|
1434
1462
|
}
|
|
1435
1463
|
//#endregion
|
|
1436
1464
|
//#region node_modules/axios/lib/env/data.js
|
|
1437
|
-
var Rn = "1.20.0", zn =
|
|
1465
|
+
var Rn = "1.20.0", zn = 64 * 1024, Bn = {
|
|
1438
1466
|
cache: "default",
|
|
1439
1467
|
redirect: "follow",
|
|
1440
1468
|
referrer: "about:client",
|
|
@@ -1746,7 +1774,9 @@ function ir(e, t, n) {
|
|
|
1746
1774
|
if (o) {
|
|
1747
1775
|
let t = e[a], n = t === void 0 || o(t, a, e);
|
|
1748
1776
|
if (n !== !0) throw new I("option " + a + " must be " + n, I.ERR_BAD_OPTION_VALUE);
|
|
1749
|
-
|
|
1777
|
+
continue;
|
|
1778
|
+
}
|
|
1779
|
+
if (n !== !0) throw new I("Unknown option " + a, I.ERR_BAD_OPTION);
|
|
1750
1780
|
}
|
|
1751
1781
|
}
|
|
1752
1782
|
var ar = {
|
|
@@ -1911,7 +1941,11 @@ var or = class e {
|
|
|
1911
1941
|
if (this.reason) throw this.reason;
|
|
1912
1942
|
}
|
|
1913
1943
|
subscribe(e) {
|
|
1914
|
-
|
|
1944
|
+
if (this.reason) {
|
|
1945
|
+
e(this.reason);
|
|
1946
|
+
return;
|
|
1947
|
+
}
|
|
1948
|
+
this._listeners ? this._listeners.push(e) : this._listeners = [e];
|
|
1915
1949
|
}
|
|
1916
1950
|
unsubscribe(e) {
|
|
1917
1951
|
if (!this._listeners) return;
|
|
@@ -2173,7 +2207,7 @@ for (var J = function(e, ...t) {
|
|
|
2173
2207
|
}({}), Sr = /* @__PURE__ */ function(e) {
|
|
2174
2208
|
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;
|
|
2175
2209
|
}({}), Cr = /* @__PURE__ */ function(e) {
|
|
2176
|
-
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
|
|
2210
|
+
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;
|
|
2177
2211
|
}({}), wr = /* @__PURE__ */ function(e) {
|
|
2178
2212
|
return e.IN = "in", e.NOT_IN = "nin", e;
|
|
2179
2213
|
}({}), Tr = /* @__PURE__ */ function(e) {
|
|
@@ -2190,7 +2224,7 @@ var Ar = function(e) {
|
|
|
2190
2224
|
this.superClass = new hr(e, t, n);
|
|
2191
2225
|
}
|
|
2192
2226
|
async match(e, t, n) {
|
|
2193
|
-
for (let t of e.images) t.type ||= Tr.LIVE, typeof t.data != "string" &&
|
|
2227
|
+
for (let t of e.images) t.type ||= Tr.LIVE, typeof t.data != "string" && (t.data = Ar(t.data));
|
|
2194
2228
|
return (await this.superClass.match(e, t, n)).data;
|
|
2195
2229
|
}
|
|
2196
2230
|
async detect(e, t, n) {
|
|
@@ -2752,6 +2786,7 @@ var Ar = function(e) {
|
|
|
2752
2786
|
}, Hr = function(e) {
|
|
2753
2787
|
return {
|
|
2754
2788
|
deleteLivenessTransaction: async (t, n, r = {}) => {
|
|
2789
|
+
q("deleteLivenessTransaction", "transactionId", t), q("deleteLivenessTransaction", "tag", n);
|
|
2755
2790
|
let i = new URL("/api/v2/liveness", K), a;
|
|
2756
2791
|
e && (a = e.baseOptions);
|
|
2757
2792
|
let o = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@regulaforensics/facesdk-webclient",
|
|
3
|
-
"version": "8.5.
|
|
3
|
+
"version": "8.5.886-rc",
|
|
4
4
|
"description": "JS client for facesdk web service",
|
|
5
5
|
"author": "Regula Forensics, Inc.",
|
|
6
6
|
"keywords": [
|
|
@@ -33,23 +33,23 @@
|
|
|
33
33
|
"*.{js,ts}": "eslint --fix"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"axios": "^1.
|
|
36
|
+
"axios": "^1.18.0",
|
|
37
37
|
"base64-arraybuffer": "^1.0.2"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@eslint/js": "^10.0.1",
|
|
41
|
-
"@microsoft/api-extractor": "^7.
|
|
42
|
-
"@types/node": "^
|
|
43
|
-
"eslint": "^10.
|
|
41
|
+
"@microsoft/api-extractor": "^7.58.12",
|
|
42
|
+
"@types/node": "^25.9.3",
|
|
43
|
+
"eslint": "^10.5.0",
|
|
44
44
|
"eslint-config-prettier": "^10.1.8",
|
|
45
|
-
"eslint-plugin-prettier": "^5.5.
|
|
46
|
-
"globals": "^17.
|
|
45
|
+
"eslint-plugin-prettier": "^5.5.6",
|
|
46
|
+
"globals": "^17.6.0",
|
|
47
47
|
"husky": "^9.1.7",
|
|
48
48
|
"lint-staged": "^16.2.7",
|
|
49
|
-
"prettier": "^3.
|
|
49
|
+
"prettier": "^3.8.4",
|
|
50
50
|
"typescript": "^6.0.3",
|
|
51
|
-
"typescript-eslint": "^8.
|
|
52
|
-
"unplugin-dts": "^1.
|
|
53
|
-
"vite": "^8.
|
|
51
|
+
"typescript-eslint": "^8.61.0",
|
|
52
|
+
"unplugin-dts": "^1.0.3",
|
|
53
|
+
"vite": "^8.0.16"
|
|
54
54
|
}
|
|
55
55
|
}
|