@verdocs/web-sdk 6.5.0-beta.28 → 6.5.0-beta.29

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.
Files changed (29) hide show
  1. package/dist/cjs/verdocs-contact-picker.cjs.entry.js +227 -136
  2. package/dist/cjs/verdocs-contact-picker.entry.cjs.js.map +1 -1
  3. package/dist/components/{p-BqX9pHlZ.js → p-D1hacWuH.js} +229 -138
  4. package/dist/components/p-D1hacWuH.js.map +1 -0
  5. package/dist/components/{p-O5qIkOV_.js → p-DE8tttIU.js} +3 -3
  6. package/dist/components/{p-O5qIkOV_.js.map → p-DE8tttIU.js.map} +1 -1
  7. package/dist/components/verdocs-build.js +2 -2
  8. package/dist/components/verdocs-contact-picker.js +1 -1
  9. package/dist/components/verdocs-send.js +1 -1
  10. package/dist/esm/verdocs-contact-picker.entry.js +227 -136
  11. package/dist/esm/verdocs-contact-picker.entry.js.map +1 -1
  12. package/dist/esm-es5/verdocs-contact-picker.entry.js +2 -2
  13. package/dist/esm-es5/verdocs-contact-picker.entry.js.map +1 -1
  14. package/dist/verdocs-web-sdk/p-31d87e8c.system.entry.js +4 -0
  15. package/dist/verdocs-web-sdk/p-31d87e8c.system.entry.js.map +1 -0
  16. package/dist/verdocs-web-sdk/p-B8zpaHu-.system.js +1 -1
  17. package/dist/verdocs-web-sdk/p-a00a2483.entry.js +3 -0
  18. package/dist/verdocs-web-sdk/p-a00a2483.entry.js.map +1 -0
  19. package/dist/verdocs-web-sdk/p-cbHPd-SJ.system.js.map +1 -0
  20. package/dist/verdocs-web-sdk/verdocs-contact-picker.entry.esm.js.map +1 -1
  21. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
  22. package/package.json +2 -2
  23. package/dist/components/p-BqX9pHlZ.js.map +0 -1
  24. package/dist/custom-elements.json +0 -2460
  25. package/dist/verdocs-web-sdk/p-20ca00e4.system.entry.js +0 -4
  26. package/dist/verdocs-web-sdk/p-20ca00e4.system.entry.js.map +0 -1
  27. package/dist/verdocs-web-sdk/p-5bf8bb27.entry.js +0 -3
  28. package/dist/verdocs-web-sdk/p-5bf8bb27.entry.js.map +0 -1
  29. package/dist/verdocs-web-sdk/p-DAdumYIk.system.js.map +0 -1
@@ -1,3 +1,3 @@
1
- var __extends=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,t,r,n){function i(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,a){function o(e){try{s(n.next(e))}catch(e){a(e)}}function u(e){try{s(n["throw"](e))}catch(e){a(e)}}function s(e){e.done?r(e.value):i(e.value).then(o,u)}s((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,o=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return o.next=u(0),o["throw"]=u(1),o["return"]=u(2),typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(e){return function(t){return s([e,t])}}function s(u){if(n)throw new TypeError("Generator is already executing.");while(o&&(o=0,u[0]&&(r=0)),r)try{if(n=1,i&&(a=u[0]&2?i["return"]:u[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;if(i=0,a)u=[u[0]&2,a.value];switch(u[0]){case 0:case 1:a=u;break;case 4:r.label++;return{value:u[1],done:false};case 5:r.label++;i=u[1];u=[0];continue;case 7:u=r.ops.pop();r.trys.pop();continue;default:if(!(a=r.trys,a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){r.label=u[1];break}if(u[0]===6&&r.label<a[1]){r.label=a[1];a=u;break}if(a&&r.label<a[2]){r.label=a[2];r.ops.push(u);break}if(a[2])r.ops.pop();r.trys.pop();continue}u=t.call(e,r)}catch(e){u=[6,e];i=0}finally{n=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};var __asyncValues=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(t){r[t]=e[t]&&function(r){return new Promise((function(n,a){r=e[t](r),i(n,a,r.done,r.value)}))}}function i(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}};var __await=this&&this.__await||function(e){return this instanceof __await?(this.v=e,this):new __await(e)};var __asyncDelegator=this&&this.__asyncDelegator||function(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:__await(e[n](t)),done:false}:i?i(t):t}:i}};var __asyncGenerator=this&&this.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),i,a=[];return i=Object.create((typeof AsyncIterator==="function"?AsyncIterator:Object).prototype),u("next"),u("throw"),u("return",o),i[Symbol.asyncIterator]=function(){return this},i;function o(e){return function(t){return Promise.resolve(t).then(e,l)}}function u(e,t){if(n[e]){i[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||s(e,t)}))};if(t)i[e]=t(i[e])}}function s(e,t){try{c(n[e](t))}catch(e){d(a[0][3],e)}}function c(e){e.value instanceof __await?Promise.resolve(e.value.v).then(f,l):d(a[0][2],e)}function f(e){s("next",e)}function l(e){s("throw",e)}function d(e,t){if(e(t),a.shift(),a.length)s(a[0][0],a[0][1])}};var __spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++){if(a||!(n in t)){if(!a)a=Array.prototype.slice.call(t,0,n);a[n]=t[n]}}return e.concat(a||Array.prototype.slice.call(t))};var __values=this&&this.__values||function(e){var t=typeof Symbol==="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&n>=e.length)e=void 0;return{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};import{r as registerInstance,c as createEvent,h,F as Fragment}from"./index-BIRwgFLv.js";import{VerdocsEndpoint,formatFullName,getActiveEntitlements,isValidEmail}from"@verdocs/js-sdk";import{c as commonjsGlobal,g as getDefaultExportFromCjs}from"./_commonjsHelpers-BFTU3MAI.js";import{B as BETA_ORIGINS}from"./Environment-C_Xku1v2.js";import{e as convertToE164}from"./utils-7DStM5zD.js";import"./index-dzBXqXlK.js";import"./Types-dqxNbm_b.js";
2
- /*! Axios v1.13.4 Copyright (c) 2026 Matt Zabriskie and contributors */var axios_1;var hasRequiredAxios;function requireAxios(){var e=this;if(hasRequiredAxios)return axios_1;hasRequiredAxios=1;function t(e,t){return function r(){return e.apply(t,arguments)}}var r=Object.prototype.toString;var n=Object.getPrototypeOf;var i=Symbol.iterator,a=Symbol.toStringTag;var o=function(e){return function(t){var n=r.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())}}(Object.create(null));var u=function(e){e=e.toLowerCase();return function(t){return o(t)===e}};var s=function(e){return function(t){return typeof t===e}};var c=Array.isArray;var f=s("undefined");function l(e){return e!==null&&!f(e)&&e.constructor!==null&&!f(e.constructor)&&p(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var d=u("ArrayBuffer");function v(e){var t;if(typeof ArrayBuffer!=="undefined"&&ArrayBuffer.isView){t=ArrayBuffer.isView(e)}else{t=e&&e.buffer&&d(e.buffer)}return t}var h=s("string");var p=s("function");var m=s("number");var b=function(e){return e!==null&&typeof e==="object"};var w=function(e){return e===true||e===false};var y=function(e){if(o(e)!=="object"){return false}var t=n(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(a in e)&&!(i in e)};var g=function(e){if(!b(e)||l(e)){return false}try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return false}};var x=u("Date");var _=u("File");var k=u("Blob");var O=u("FileList");var E=function(e){return b(e)&&p(e.pipe)};var R=function(e){var t;return e&&(typeof FormData==="function"&&e instanceof FormData||p(e.append)&&((t=o(e))==="formdata"||t==="object"&&p(e.toString)&&e.toString()==="[object FormData]"))};var S=u("URLSearchParams");var A=["ReadableStream","Request","Response","Headers"].map(u),j=A[0],T=A[1],C=A[2],F=A[3];var P=function(e){return e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")};function N(e,t,r){var n=r===void 0?{}:r,i=n.allOwnKeys,a=i===void 0?false:i;if(e===null||typeof e==="undefined"){return}var o;var u;if(typeof e!=="object"){e=[e]}if(c(e)){for(o=0,u=e.length;o<u;o++){t.call(null,e[o],o,e)}}else{if(l(e)){return}var s=a?Object.getOwnPropertyNames(e):Object.keys(e);var f=s.length;var d=void 0;for(o=0;o<f;o++){d=s[o];t.call(null,e[d],d,e)}}}function I(e,t){if(l(e)){return null}t=t.toLowerCase();var r=Object.keys(e);var n=r.length;var i;while(n-- >0){i=r[n];if(t===i.toLowerCase()){return i}}return null}var B=function(){if(typeof globalThis!=="undefined")return globalThis;return typeof self!=="undefined"?self:typeof window!=="undefined"?window:commonjsGlobal}();var U=function(e){return!f(e)&&e!==B};function D(){var e=U(this)&&this||{},t=e.caseless,r=e.skipUndefined;var n={};var i=function(e,i){var a=t&&I(n,i)||i;if(y(n[a])&&y(e)){n[a]=D(n[a],e)}else if(y(e)){n[a]=D({},e)}else if(c(e)){n[a]=e.slice()}else if(!r||!f(e)){n[a]=e}};for(var a=0,o=arguments.length;a<o;a++){arguments[a]&&N(arguments[a],i)}return n}var M=function(e,r,n,i){var a=i===void 0?{}:i,o=a.allOwnKeys;N(r,(function(r,i){if(n&&p(r)){Object.defineProperty(e,i,{value:t(r,n),writable:true,enumerable:true,configurable:true})}else{Object.defineProperty(e,i,{value:r,writable:true,enumerable:true,configurable:true})}}),{allOwnKeys:o});return e};var L=function(e){if(e.charCodeAt(0)===65279){e=e.slice(1)}return e};var q=function(e,t,r,n){e.prototype=Object.create(t.prototype,n);Object.defineProperty(e.prototype,"constructor",{value:e,writable:true,enumerable:false,configurable:true});Object.defineProperty(e,"super",{value:t.prototype});r&&Object.assign(e.prototype,r)};var z=function(e,t,r,i){var a;var o;var u;var s={};t=t||{};if(e==null)return t;do{a=Object.getOwnPropertyNames(e);o=a.length;while(o-- >0){u=a[o];if((!i||i(u,e,t))&&!s[u]){t[u]=e[u];s[u]=true}}e=r!==false&&n(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t};var H=function(e,t,r){e=String(e);if(r===undefined||r>e.length){r=e.length}r-=t.length;var n=e.indexOf(t,r);return n!==-1&&n===r};var V=function(e){if(!e)return null;if(c(e))return e;var t=e.length;if(!m(t))return null;var r=new Array(t);while(t-- >0){r[t]=e[t]}return r};var K=function(e){return function(t){return e&&t instanceof e}}(typeof Uint8Array!=="undefined"&&n(Uint8Array));var G=function(e,t){var r=e&&e[i];var n=r.call(e);var a;while((a=n.next())&&!a.done){var o=a.value;t.call(e,o[0],o[1])}};var J=function(e,t){var r;var n=[];while((r=e.exec(t))!==null){n.push(r)}return n};var X=u("HTMLFormElement");var W=function(e){return e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function e(t,r,n){return r.toUpperCase()+n}))};var $=function(e){var t=e.hasOwnProperty;return function(e,r){return t.call(e,r)}}(Object.prototype);var Y=u("RegExp");var Z=function(e,t){var r=Object.getOwnPropertyDescriptors(e);var n={};N(r,(function(r,i){var a;if((a=t(r,i,e))!==false){n[i]=a||r}}));Object.defineProperties(e,n)};var Q=function(e){Z(e,(function(t,r){if(p(e)&&["arguments","caller","callee"].indexOf(r)!==-1){return false}var n=e[r];if(!p(n))return;t.enumerable=false;if("writable"in t){t.writable=false;return}if(!t.set){t.set=function(){throw Error("Can not rewrite read-only method '"+r+"'")}}}))};var ee=function(e,t){var r={};var n=function(e){e.forEach((function(e){r[e]=true}))};c(e)?n(e):n(String(e).split(t));return r};var te=function(){};var re=function(e,t){return e!=null&&Number.isFinite(e=+e)?e:t};function ne(e){return!!(e&&p(e.append)&&e[a]==="FormData"&&e[i])}var ie=function(e){var t=new Array(10);var r=function(e,n){if(b(e)){if(t.indexOf(e)>=0){return}if(l(e)){return e}if(!("toJSON"in e)){t[n]=e;var i=c(e)?[]:{};N(e,(function(e,t){var a=r(e,n+1);!f(a)&&(i[t]=a)}));t[n]=undefined;return i}}return e};return r(e,0)};var ae=u("AsyncFunction");var oe=function(e){return e&&(b(e)||p(e))&&p(e.then)&&p(e.catch)};var ue=function(e,t){if(e){return setImmediate}return t?function(e,t){B.addEventListener("message",(function(r){var n=r.source,i=r.data;if(n===B&&i===e){t.length&&t.shift()()}}),false);return function(r){t.push(r);B.postMessage(e,"*")}}("axios@".concat(Math.random()),[]):function(e){return setTimeout(e)}}(typeof setImmediate==="function",p(B.postMessage));var se=typeof queueMicrotask!=="undefined"?queueMicrotask.bind(B):typeof process!=="undefined"&&process.nextTick||ue;var ce=function(e){return e!=null&&p(e[i])};var fe={isArray:c,isArrayBuffer:d,isBuffer:l,isFormData:R,isArrayBufferView:v,isString:h,isNumber:m,isBoolean:w,isObject:b,isPlainObject:y,isEmptyObject:g,isReadableStream:j,isRequest:T,isResponse:C,isHeaders:F,isUndefined:f,isDate:x,isFile:_,isBlob:k,isRegExp:Y,isFunction:p,isStream:E,isURLSearchParams:S,isTypedArray:K,isFileList:O,forEach:N,merge:D,extend:M,trim:P,stripBOM:L,inherits:q,toFlatObject:z,kindOf:o,kindOfTest:u,endsWith:H,toArray:V,forEachEntry:G,matchAll:J,isHTMLForm:X,hasOwnProperty:$,hasOwnProp:$,reduceDescriptors:Z,freezeMethods:Q,toObjectSet:ee,toCamelCase:W,noop:te,toFiniteNumber:re,findKey:I,global:B,isContextDefined:U,isSpecCompliantForm:ne,toJSONObject:ie,isAsyncFn:ae,isThenable:oe,setImmediate:ue,asap:se,isIterable:ce};var le=function(e){__extends(t,e);function t(t,r,n,i,a){var o=e.call(this,t)||this;o.name="AxiosError";o.isAxiosError=true;r&&(o.code=r);n&&(o.config=n);i&&(o.request=i);if(a){o.response=a;o.status=a.status}return o}t.from=function(e,r,n,i,a,o){var u=new t(e.message,r||e.code,n,i,a);u.cause=e;u.name=e.name;o&&Object.assign(u,o);return u};t.prototype.toJSON=function(){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:fe.toJSONObject(this.config),code:this.code,status:this.status}};return t}(Error);le.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";le.ERR_BAD_OPTION="ERR_BAD_OPTION";le.ECONNABORTED="ECONNABORTED";le.ETIMEDOUT="ETIMEDOUT";le.ERR_NETWORK="ERR_NETWORK";le.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";le.ERR_DEPRECATED="ERR_DEPRECATED";le.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";le.ERR_BAD_REQUEST="ERR_BAD_REQUEST";le.ERR_CANCELED="ERR_CANCELED";le.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";le.ERR_INVALID_URL="ERR_INVALID_URL";var de=le;var ve=null;function he(e){return fe.isPlainObject(e)||fe.isArray(e)}function pe(e){return fe.endsWith(e,"[]")?e.slice(0,-2):e}function me(e,t,r){if(!e)return t;return e.concat(t).map((function e(t,n){t=pe(t);return!r&&n?"["+t+"]":t})).join(r?".":"")}function be(e){return fe.isArray(e)&&!e.some(he)}var we=fe.toFlatObject(fe,{},null,(function e(t){return/^is[A-Z]/.test(t)}));function ye(e,t,r){if(!fe.isObject(e)){throw new TypeError("target must be an object")}t=t||new FormData;r=fe.toFlatObject(r,{metaTokens:true,dots:false,indexes:false},false,(function e(t,r){return!fe.isUndefined(r[t])}));var n=r.metaTokens;var i=r.visitor||f;var a=r.dots;var o=r.indexes;var u=r.Blob||typeof Blob!=="undefined"&&Blob;var s=u&&fe.isSpecCompliantForm(t);if(!fe.isFunction(i)){throw new TypeError("visitor must be a function")}function c(e){if(e===null)return"";if(fe.isDate(e)){return e.toISOString()}if(fe.isBoolean(e)){return e.toString()}if(!s&&fe.isBlob(e)){throw new de("Blob is not supported. Use a Buffer instead.")}if(fe.isArrayBuffer(e)||fe.isTypedArray(e)){return s&&typeof Blob==="function"?new Blob([e]):Buffer.from(e)}return e}function f(e,r,i){var u=e;if(e&&!i&&typeof e==="object"){if(fe.endsWith(r,"{}")){r=n?r:r.slice(0,-2);e=JSON.stringify(e)}else if(fe.isArray(e)&&be(e)||(fe.isFileList(e)||fe.endsWith(r,"[]"))&&(u=fe.toArray(e))){r=pe(r);u.forEach((function e(n,i){!(fe.isUndefined(n)||n===null)&&t.append(o===true?me([r],i,a):o===null?r:r+"[]",c(n))}));return false}}if(he(e)){return true}t.append(me(i,r,a),c(e));return false}var l=[];var d=Object.assign(we,{defaultVisitor:f,convertValue:c,isVisitable:he});function v(e,r){if(fe.isUndefined(e))return;if(l.indexOf(e)!==-1){throw Error("Circular reference detected in "+r.join("."))}l.push(e);fe.forEach(e,(function e(n,a){var o=!(fe.isUndefined(n)||n===null)&&i.call(t,n,fe.isString(a)?a.trim():a,r,d);if(o===true){v(n,r?r.concat(a):[a])}}));l.pop()}if(!fe.isObject(e)){throw new TypeError("data must be an object")}v(e);return t}function ge(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function e(r){return t[r]}))}function xe(e,t){this._pairs=[];e&&ye(e,this,t)}var _e=xe.prototype;_e.append=function e(t,r){this._pairs.push([t,r])};_e.toString=function e(t){var r=t?function(e){return t.call(this,e,ge)}:ge;return this._pairs.map((function e(t){return r(t[0])+"="+r(t[1])}),"").join("&")};function ke(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Oe(e,t,r){if(!t){return e}var n=r&&r.encode||ke;var i=fe.isFunction(r)?{serialize:r}:r;var a=i&&i.serialize;var o;if(a){o=a(t,i)}else{o=fe.isURLSearchParams(t)?t.toString():new xe(t,i).toString(n)}if(o){var u=e.indexOf("#");if(u!==-1){e=e.slice(0,u)}e+=(e.indexOf("?")===-1?"?":"&")+o}return e}var Ee=function(){function e(){this.handlers=[]}e.prototype.use=function(e,t,r){this.handlers.push({fulfilled:e,rejected:t,synchronous:r?r.synchronous:false,runWhen:r?r.runWhen:null});return this.handlers.length-1};e.prototype.eject=function(e){if(this.handlers[e]){this.handlers[e]=null}};e.prototype.clear=function(){if(this.handlers){this.handlers=[]}};e.prototype.forEach=function(e){fe.forEach(this.handlers,(function t(r){if(r!==null){e(r)}}))};return e}();var Re=Ee;var Se={silentJSONParsing:true,forcedJSONParsing:true,clarifyTimeoutError:false};var Ae=typeof URLSearchParams!=="undefined"?URLSearchParams:xe;var je=typeof FormData!=="undefined"?FormData:null;var Te=typeof Blob!=="undefined"?Blob:null;var Ce={isBrowser:true,classes:{URLSearchParams:Ae,FormData:je,Blob:Te},protocols:["http","https","file","blob","url","data"]};var Fe=typeof window!=="undefined"&&typeof document!=="undefined";var Pe=typeof navigator==="object"&&navigator||undefined;var Ne=Fe&&(!Pe||["ReactNative","NativeScript","NS"].indexOf(Pe.product)<0);var Ie=function(){return typeof WorkerGlobalScope!=="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts==="function"}();var Be=Fe&&window.location.href||"http://localhost";var Ue=Object.freeze({__proto__:null,hasBrowserEnv:Fe,hasStandardBrowserWebWorkerEnv:Ie,hasStandardBrowserEnv:Ne,navigator:Pe,origin:Be});var De=__assign(__assign({},Ue),Ce);function Me(e,t){return ye(e,new De.classes.URLSearchParams,__assign({visitor:function(e,t,r,n){if(De.isNode&&fe.isBuffer(e)){this.append(t,e.toString("base64"));return false}return n.defaultVisitor.apply(this,arguments)}},t))}function Le(e){return fe.matchAll(/\w+|\[(\w*)]/g,e).map((function(e){return e[0]==="[]"?"":e[1]||e[0]}))}function qe(e){var t={};var r=Object.keys(e);var n;var i=r.length;var a;for(n=0;n<i;n++){a=r[n];t[a]=e[a]}return t}function ze(e){function t(e,r,n,i){var a=e[i++];if(a==="__proto__")return true;var o=Number.isFinite(+a);var u=i>=e.length;a=!a&&fe.isArray(n)?n.length:a;if(u){if(fe.hasOwnProp(n,a)){n[a]=[n[a],r]}else{n[a]=r}return!o}if(!n[a]||!fe.isObject(n[a])){n[a]=[]}var s=t(e,r,n[a],i);if(s&&fe.isArray(n[a])){n[a]=qe(n[a])}return!o}if(fe.isFormData(e)&&fe.isFunction(e.entries)){var r={};fe.forEachEntry(e,(function(e,n){t(Le(e),n,r,0)}));return r}return null}function He(e,t,r){if(fe.isString(e)){try{(0,JSON.parse)(e);return fe.trim(e)}catch(e){if(e.name!=="SyntaxError"){throw e}}}return(r||JSON.stringify)(e)}var Ve={transitional:Se,adapter:["xhr","http","fetch"],transformRequest:[function e(t,r){var n=r.getContentType()||"";var i=n.indexOf("application/json")>-1;var a=fe.isObject(t);if(a&&fe.isHTMLForm(t)){t=new FormData(t)}var o=fe.isFormData(t);if(o){return i?JSON.stringify(ze(t)):t}if(fe.isArrayBuffer(t)||fe.isBuffer(t)||fe.isStream(t)||fe.isFile(t)||fe.isBlob(t)||fe.isReadableStream(t)){return t}if(fe.isArrayBufferView(t)){return t.buffer}if(fe.isURLSearchParams(t)){r.setContentType("application/x-www-form-urlencoded;charset=utf-8",false);return t.toString()}var u;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1){return Me(t,this.formSerializer).toString()}if((u=fe.isFileList(t))||n.indexOf("multipart/form-data")>-1){var s=this.env&&this.env.FormData;return ye(u?{"files[]":t}:t,s&&new s,this.formSerializer)}}if(a||i){r.setContentType("application/json",false);return He(t)}return t}],transformResponse:[function e(t){var r=this.transitional||Ve.transitional;var n=r&&r.forcedJSONParsing;var i=this.responseType==="json";if(fe.isResponse(t)||fe.isReadableStream(t)){return t}if(t&&fe.isString(t)&&(n&&!this.responseType||i)){var a=r&&r.silentJSONParsing;var o=!a&&i;try{return JSON.parse(t,this.parseReviver)}catch(e){if(o){if(e.name==="SyntaxError"){throw de.from(e,de.ERR_BAD_RESPONSE,this,null,this.response)}throw e}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:De.classes.FormData,Blob:De.classes.Blob},validateStatus:function e(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":undefined}}};fe.forEach(["delete","get","head","post","put","patch"],(function(e){Ve.headers[e]={}}));var Ke=Ve;var Ge=fe.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"]);var Je=function(e){var t={};var r;var n;var i;e&&e.split("\n").forEach((function e(a){i=a.indexOf(":");r=a.substring(0,i).trim().toLowerCase();n=a.substring(i+1).trim();if(!r||t[r]&&Ge[r]){return}if(r==="set-cookie"){if(t[r]){t[r].push(n)}else{t[r]=[n]}}else{t[r]=t[r]?t[r]+", "+n:n}}));return t};var Xe=Symbol("internals");function We(e){return e&&String(e).trim().toLowerCase()}function $e(e){if(e===false||e==null){return e}return fe.isArray(e)?e.map($e):String(e)}function Ye(e){var t=Object.create(null);var r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;var n;while(n=r.exec(e)){t[n[1]]=n[2]}return t}var Ze=function(e){return/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())};function Qe(e,t,r,n,i){if(fe.isFunction(n)){return n.call(this,t,r)}if(i){t=r}if(!fe.isString(t))return;if(fe.isString(n)){return t.indexOf(n)!==-1}if(fe.isRegExp(n)){return n.test(t)}}function et(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r}))}function tt(e,t){var r=fe.toCamelCase(" "+t);["get","set","has"].forEach((function(n){Object.defineProperty(e,n+r,{value:function(e,r,i){return this[n].call(this,t,e,r,i)},configurable:true})}))}var rt=function(){function e(e){e&&this.set(e)}e.prototype.set=function(e,t,r){var n=this;function i(e,t,r){var i=We(t);if(!i){throw new Error("header name must be a non-empty string")}var a=fe.findKey(n,i);if(!a||n[a]===undefined||r===true||r===undefined&&n[a]!==false){n[a||t]=$e(e)}}var a=function(e,t){return fe.forEach(e,(function(e,r){return i(e,r,t)}))};if(fe.isPlainObject(e)||e instanceof this.constructor){a(e,t)}else if(fe.isString(e)&&(e=e.trim())&&!Ze(e)){a(Je(e),t)}else if(fe.isObject(e)&&fe.isIterable(e)){var o={},u=void 0,s=void 0;for(var c=0,f=e;c<f.length;c++){var l=f[c];if(!fe.isArray(l)){throw TypeError("Object iterator must return a key-value pair")}o[s=l[0]]=(u=o[s])?fe.isArray(u)?__spreadArray(__spreadArray([],u,true),[l[1]],false):[u,l[1]]:l[1]}a(o,t)}else{e!=null&&i(t,e,r)}return this};e.prototype.get=function(e,t){e=We(e);if(e){var r=fe.findKey(this,e);if(r){var n=this[r];if(!t){return n}if(t===true){return Ye(n)}if(fe.isFunction(t)){return t.call(this,n,r)}if(fe.isRegExp(t)){return t.exec(n)}throw new TypeError("parser must be boolean|regexp|function")}}};e.prototype.has=function(e,t){e=We(e);if(e){var r=fe.findKey(this,e);return!!(r&&this[r]!==undefined&&(!t||Qe(this,this[r],r,t)))}return false};e.prototype.delete=function(e,t){var r=this;var n=false;function i(e){e=We(e);if(e){var i=fe.findKey(r,e);if(i&&(!t||Qe(r,r[i],i,t))){delete r[i];n=true}}}if(fe.isArray(e)){e.forEach(i)}else{i(e)}return n};e.prototype.clear=function(e){var t=Object.keys(this);var r=t.length;var n=false;while(r--){var i=t[r];if(!e||Qe(this,this[i],i,e,true)){delete this[i];n=true}}return n};e.prototype.normalize=function(e){var t=this;var r={};fe.forEach(this,(function(n,i){var a=fe.findKey(r,i);if(a){t[a]=$e(n);delete t[i];return}var o=e?et(i):String(i).trim();if(o!==i){delete t[i]}t[o]=$e(n);r[o]=true}));return this};e.prototype.concat=function(){var e;var t=[];for(var r=0;r<arguments.length;r++){t[r]=arguments[r]}return(e=this.constructor).concat.apply(e,__spreadArray([this],t,false))};e.prototype.toJSON=function(e){var t=Object.create(null);fe.forEach(this,(function(r,n){r!=null&&r!==false&&(t[n]=e&&fe.isArray(r)?r.join(", "):r)}));return t};e.prototype[Symbol.iterator]=function(){return Object.entries(this.toJSON())[Symbol.iterator]()};e.prototype.toString=function(){return Object.entries(this.toJSON()).map((function(e){var t=e[0],r=e[1];return t+": "+r})).join("\n")};e.prototype.getSetCookie=function(){return this.get("set-cookie")||[]};Object.defineProperty(e.prototype,Symbol.toStringTag,{get:function(){return"AxiosHeaders"},enumerable:false,configurable:true});e.from=function(e){return e instanceof this?e:new this(e)};e.concat=function(e){var t=[];for(var r=1;r<arguments.length;r++){t[r-1]=arguments[r]}var n=new this(e);t.forEach((function(e){return n.set(e)}));return n};e.accessor=function(e){var t=this[Xe]=this[Xe]={accessors:{}};var r=t.accessors;var n=this.prototype;function i(e){var t=We(e);if(!r[t]){tt(n,e);r[t]=true}}fe.isArray(e)?e.forEach(i):i(e);return this};return e}();rt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);fe.reduceDescriptors(rt.prototype,(function(e,t){var r=e.value;var n=t[0].toUpperCase()+t.slice(1);return{get:function(){return r},set:function(e){this[n]=e}}}));fe.freezeMethods(rt);var nt=rt;function it(e,t){var r=this||Ke;var n=t||r;var i=nt.from(n.headers);var a=n.data;fe.forEach(e,(function e(n){a=n.call(r,a,i.normalize(),t?t.status:undefined)}));i.normalize();return a}function at(e){return!!(e&&e.__CANCEL__)}var ot=function(e){__extends(t,e);function t(t,r,n){var i=e.call(this,t==null?"canceled":t,de.ERR_CANCELED,r,n)||this;i.name="CanceledError";i.__CANCEL__=true;return i}return t}(de);var ut=ot;function st(e,t,r){var n=r.config.validateStatus;if(!r.status||!n||n(r.status)){e(r)}else{t(new de("Request failed with status code "+r.status,[de.ERR_BAD_REQUEST,de.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}}function ct(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ft(e,t){e=e||10;var r=new Array(e);var n=new Array(e);var i=0;var a=0;var o;t=t!==undefined?t:1e3;return function u(s){var c=Date.now();var f=n[a];if(!o){o=c}r[i]=s;n[i]=c;var l=a;var d=0;while(l!==i){d+=r[l++];l=l%e}i=(i+1)%e;if(i===a){a=(a+1)%e}if(c-o<t){return}var v=f&&c-f;return v?Math.round(d*1e3/v):undefined}}function lt(e,t){var r=0;var n=1e3/t;var i;var a;var o=function(t,n){if(n===void 0){n=Date.now()}r=n;i=null;if(a){clearTimeout(a);a=null}e.apply(void 0,t)};var u=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var u=Date.now();var s=u-r;if(s>=n){o(e,u)}else{i=e;if(!a){a=setTimeout((function(){a=null;o(i)}),n-s)}}};var s=function(){return i&&o(i)};return[u,s]}var dt=function(e,t,r){if(r===void 0){r=3}var n=0;var i=ft(50,250);return lt((function(r){var a;var o=r.loaded;var u=r.lengthComputable?r.total:undefined;var s=o-n;var c=i(s);var f=o<=u;n=o;var l=(a={loaded:o,total:u,progress:u?o/u:undefined,bytes:s,rate:c?c:undefined,estimated:c&&u&&f?(u-o)/c:undefined,event:r,lengthComputable:u!=null},a[t?"download":"upload"]=true,a);e(l)}),r)};var vt=function(e,t){var r=e!=null;return[function(n){return t[0]({lengthComputable:r,total:e,loaded:n})},t[1]]};var ht=function(e){return function(){var t=[];for(var r=0;r<arguments.length;r++){t[r]=arguments[r]}return fe.asap((function(){return e.apply(void 0,t)}))}};var pt=De.hasStandardBrowserEnv?function(e,t){return function(r){r=new URL(r,De.origin);return e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)}}(new URL(De.origin),De.navigator&&/(msie|trident)/i.test(De.navigator.userAgent)):function(){return true};var mt=De.hasStandardBrowserEnv?{write:function(e,t,r,n,i,a,o){if(typeof document==="undefined")return;var u=["".concat(e,"=").concat(encodeURIComponent(t))];if(fe.isNumber(r)){u.push("expires=".concat(new Date(r).toUTCString()))}if(fe.isString(n)){u.push("path=".concat(n))}if(fe.isString(i)){u.push("domain=".concat(i))}if(a===true){u.push("secure")}if(fe.isString(o)){u.push("SameSite=".concat(o))}document.cookie=u.join("; ")},read:function(e){if(typeof document==="undefined")return null;var t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove:function(e){this.write(e,"",Date.now()-864e5,"/")}}:{write:function(){},read:function(){return null},remove:function(){}};function bt(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function wt(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function yt(e,t,r){var n=!bt(t);if(e&&(n||r==false)){return wt(e,t)}return t}var gt=function(e){return e instanceof nt?__assign({},e):e};function xt(e,t){t=t||{};var r={};function n(e,t,r,n){if(fe.isPlainObject(e)&&fe.isPlainObject(t)){return fe.merge.call({caseless:n},e,t)}else if(fe.isPlainObject(t)){return fe.merge({},t)}else if(fe.isArray(t)){return t.slice()}return t}function i(e,t,r,i){if(!fe.isUndefined(t)){return n(e,t,r,i)}else if(!fe.isUndefined(e)){return n(undefined,e,r,i)}}function a(e,t){if(!fe.isUndefined(t)){return n(undefined,t)}}function o(e,t){if(!fe.isUndefined(t)){return n(undefined,t)}else if(!fe.isUndefined(e)){return n(undefined,e)}}function u(r,i,a){if(a in t){return n(r,i)}else if(a in e){return n(undefined,r)}}var s={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:u,headers:function(e,t,r){return i(gt(e),gt(t),r,true)}};fe.forEach(Object.keys(__assign(__assign({},e),t)),(function n(a){var o=s[a]||i;var c=o(e[a],t[a],a);fe.isUndefined(c)&&o!==u||(r[a]=c)}));return r}var _t=function(e){var t=xt({},e);var r=t.data,n=t.withXSRFToken,i=t.xsrfHeaderName,a=t.xsrfCookieName,o=t.headers,u=t.auth;t.headers=o=nt.from(o);t.url=Oe(yt(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer);if(u){o.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):"")))}if(fe.isFormData(r)){if(De.hasStandardBrowserEnv||De.hasStandardBrowserWebWorkerEnv){o.setContentType(undefined)}else if(fe.isFunction(r.getHeaders)){var s=r.getHeaders();var c=["content-type","content-length"];Object.entries(s).forEach((function(e){var t=e[0],r=e[1];if(c.includes(t.toLowerCase())){o.set(t,r)}}))}}if(De.hasStandardBrowserEnv){n&&fe.isFunction(n)&&(n=n(t));if(n||n!==false&&pt(t.url)){var f=i&&a&&mt.read(a);if(f){o.set(i,f)}}}return t};var kt=typeof XMLHttpRequest!=="undefined";var Ot=kt&&function(e){return new Promise((function t(r,n){var i,a;var o=_t(e);var u=o.data;var s=nt.from(o.headers).normalize();var c=o.responseType,f=o.onUploadProgress,l=o.onDownloadProgress;var d;var v,h;var p,m;function b(){p&&p();m&&m();o.cancelToken&&o.cancelToken.unsubscribe(d);o.signal&&o.signal.removeEventListener("abort",d)}var w=new XMLHttpRequest;w.open(o.method.toUpperCase(),o.url,true);w.timeout=o.timeout;function y(){if(!w){return}var t=nt.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders());var i=!c||c==="text"||c==="json"?w.responseText:w.response;var a={data:i,status:w.status,statusText:w.statusText,headers:t,config:e,request:w};st((function e(t){r(t);b()}),(function e(t){n(t);b()}),a);w=null}if("onloadend"in w){w.onloadend=y}else{w.onreadystatechange=function e(){if(!w||w.readyState!==4){return}if(w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)){return}setTimeout(y)}}w.onabort=function t(){if(!w){return}n(new de("Request aborted",de.ECONNABORTED,e,w));w=null};w.onerror=function t(r){var i=r&&r.message?r.message:"Network Error";var a=new de(i,de.ERR_NETWORK,e,w);a.event=r||null;n(a);w=null};w.ontimeout=function t(){var r=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";var i=o.transitional||Se;if(o.timeoutErrorMessage){r=o.timeoutErrorMessage}n(new de(r,i.clarifyTimeoutError?de.ETIMEDOUT:de.ECONNABORTED,e,w));w=null};u===undefined&&s.setContentType(null);if("setRequestHeader"in w){fe.forEach(s.toJSON(),(function e(t,r){w.setRequestHeader(r,t)}))}if(!fe.isUndefined(o.withCredentials)){w.withCredentials=!!o.withCredentials}if(c&&c!=="json"){w.responseType=o.responseType}if(l){i=dt(l,true),h=i[0],m=i[1];w.addEventListener("progress",h)}if(f&&w.upload){a=dt(f),v=a[0],p=a[1];w.upload.addEventListener("progress",v);w.upload.addEventListener("loadend",p)}if(o.cancelToken||o.signal){d=function(t){if(!w){return}n(!t||t.type?new ut(null,e,w):t);w.abort();w=null};o.cancelToken&&o.cancelToken.subscribe(d);if(o.signal){o.signal.aborted?d():o.signal.addEventListener("abort",d)}}var g=ct(o.url);if(g&&De.protocols.indexOf(g)===-1){n(new de("Unsupported protocol "+g+":",de.ERR_BAD_REQUEST,e));return}w.send(u||null)}))};var Et=function(e,t){var r=(e=e?e.filter(Boolean):[]).length;if(t||r){var n=new AbortController;var i;var a=function(e){if(!i){i=true;u();var t=e instanceof Error?e:this.reason;n.abort(t instanceof de?t:new ut(t instanceof Error?t.message:t))}};var o=t&&setTimeout((function(){o=null;a(new de("timeout of ".concat(t,"ms exceeded"),de.ETIMEDOUT))}),t);var u=function(){if(e){o&&clearTimeout(o);o=null;e.forEach((function(e){e.unsubscribe?e.unsubscribe(a):e.removeEventListener("abort",a)}));e=null}};e.forEach((function(e){return e.addEventListener("abort",a)}));var s=n.signal;s.unsubscribe=function(){return fe.asap(u)};return s}};var Rt=Et;var St=function(e,t){var r,n,i;return __generator(this,(function(a){switch(a.label){case 0:r=e.byteLength;if(!(r<t))return[3,2];return[4,e];case 1:a.sent();return[2];case 2:n=0;a.label=3;case 3:if(!(n<r))return[3,5];i=n+t;return[4,e.slice(n,i)];case 4:a.sent();n=i;return[3,3];case 5:return[2]}}))};var At=function(e,t){return __asyncGenerator(this,arguments,(function(){var r,n,i,a,o;var u,s,c,f;return __generator(this,(function(l){switch(l.label){case 0:l.trys.push([0,7,8,13]);r=true,n=__asyncValues(jt(e));l.label=1;case 1:return[4,__await(n.next())];case 2:if(!(i=l.sent(),u=i.done,!u))return[3,6];f=i.value;r=false;a=f;return[5,__values(__asyncDelegator(__asyncValues(St(a,t))))];case 3:return[4,__await.apply(void 0,[l.sent()])];case 4:l.sent();l.label=5;case 5:r=true;return[3,1];case 6:return[3,13];case 7:o=l.sent();s={error:o};return[3,13];case 8:l.trys.push([8,,11,12]);if(!(!r&&!u&&(c=n.return)))return[3,10];return[4,__await(c.call(n))];case 9:l.sent();l.label=10;case 10:return[3,12];case 11:if(s)throw s.error;return[7];case 12:return[7];case 13:return[2]}}))}))};var jt=function(e){return __asyncGenerator(this,arguments,(function(){var t,r,n,i;return __generator(this,(function(a){switch(a.label){case 0:if(!e[Symbol.asyncIterator])return[3,4];return[5,__values(__asyncDelegator(__asyncValues(e)))];case 1:return[4,__await.apply(void 0,[a.sent()])];case 2:a.sent();return[4,__await(void 0)];case 3:return[2,a.sent()];case 4:t=e.getReader();a.label=5;case 5:a.trys.push([5,,12,14]);a.label=6;case 6:return[4,__await(t.read())];case 7:r=a.sent(),n=r.done,i=r.value;if(n){return[3,11]}return[4,__await(i)];case 8:return[4,a.sent()];case 9:a.sent();a.label=10;case 10:return[3,6];case 11:return[3,14];case 12:return[4,__await(t.cancel())];case 13:a.sent();return[7];case 14:return[2]}}))}))};var Tt=function(e,t,r,n){var i=At(e,t);var a=0;var o;var u=function(e){if(!o){o=true;n&&n(e)}};return new ReadableStream({pull:function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,o,s,c,f;return __generator(this,(function(l){switch(l.label){case 0:l.trys.push([0,2,,3]);return[4,i.next()];case 1:t=l.sent(),n=t.done,o=t.value;if(n){u();e.close();return[2]}s=o.byteLength;if(r){c=a+=s;r(c)}e.enqueue(new Uint8Array(o));return[3,3];case 2:f=l.sent();u(f);throw f;case 3:return[2]}}))}))},cancel:function(e){u(e);return i.return()}},{highWaterMark:2})};var Ct=64*1024;var Ft=fe.isFunction;var Pt=function(e){var t=e.Request,r=e.Response;return{Request:t,Response:r}}(fe.global);var Nt=fe.global,It=Nt.ReadableStream,Bt=Nt.TextEncoder;var Ut=function(e){var t=[];for(var r=1;r<arguments.length;r++){t[r-1]=arguments[r]}try{return!!e.apply(void 0,t)}catch(e){return false}};var Dt=function(t){t=fe.merge.call({skipUndefined:true},Pt,t);var r=t.fetch,n=t.Request,i=t.Response;var a=r?Ft(r):typeof fetch==="function";var o=Ft(n);var u=Ft(i);if(!a){return false}var s=a&&Ft(It);var c=a&&(typeof Bt==="function"?function(e){return function(t){return e.encode(t)}}(new Bt):function(t){return __awaiter(e,void 0,void 0,(function(){var e;return __generator(this,(function(r){switch(r.label){case 0:e=Uint8Array.bind;return[4,new n(t).arrayBuffer()];case 1:return[2,new(e.apply(Uint8Array,[void 0,r.sent()]))]}}))}))});var f=o&&s&&Ut((function(){var e=false;var t=new n(De.origin,{body:new It,method:"POST",get duplex(){e=true;return"half"}}).headers.has("Content-Type");return e&&!t}));var l=u&&s&&Ut((function(){return fe.isReadableStream(new i("").body)}));var d={stream:l&&function(e){return e.body}};a&&function(){["text","arrayBuffer","blob","formData","stream"].forEach((function(e){!d[e]&&(d[e]=function(t,r){var n=t&&t[e];if(n){return n.call(t)}throw new de("Response type '".concat(e,"' is not supported"),de.ERR_NOT_SUPPORT,r)})}))}();var v=function(t){return __awaiter(e,void 0,void 0,(function(){var e;return __generator(this,(function(r){switch(r.label){case 0:if(t==null){return[2,0]}if(fe.isBlob(t)){return[2,t.size]}if(!fe.isSpecCompliantForm(t))return[3,2];e=new n(De.origin,{method:"POST",body:t});return[4,e.arrayBuffer()];case 1:return[2,r.sent().byteLength];case 2:if(fe.isArrayBufferView(t)||fe.isArrayBuffer(t)){return[2,t.byteLength]}if(fe.isURLSearchParams(t)){t=t+""}if(!fe.isString(t))return[3,4];return[4,c(t)];case 3:return[2,r.sent().byteLength];case 4:return[2]}}))}))};var h=function(t,r){return __awaiter(e,void 0,void 0,(function(){var e;return __generator(this,(function(n){e=fe.toFiniteNumber(t.getContentLength());return[2,e==null?v(r):e]}))}))};return function(t){return __awaiter(e,void 0,void 0,(function(){var e,a,u,s,c,v,p,m,b,w,y,g,x,_,k,O,E,R,S,A,j,T,C,F,P,N,I,B,U,D,M,L,F,q,z,H;return __generator(this,(function(V){switch(V.label){case 0:e=_t(t),a=e.url,u=e.method,s=e.data,c=e.signal,v=e.cancelToken,p=e.timeout,m=e.onDownloadProgress,b=e.onUploadProgress,w=e.responseType,y=e.headers,g=e.withCredentials,x=g===void 0?"same-origin":g,_=e.fetchOptions;k=r||fetch;w=w?(w+"").toLowerCase():"text";O=Rt([c,v&&v.toAbortSignal()],p);E=null;R=O&&O.unsubscribe&&function(){O.unsubscribe()};V.label=1;case 1:V.trys.push([1,7,,8]);A=b&&f&&u!=="get"&&u!=="head";if(!A)return[3,3];return[4,h(y,s)];case 2:A=(S=V.sent())!==0;V.label=3;case 3:if(A){j=new n(a,{method:"POST",body:s,duplex:"half"});T=void 0;if(fe.isFormData(s)&&(T=j.headers.get("content-type"))){y.setContentType(T)}if(j.body){C=vt(S,dt(ht(b))),F=C[0],P=C[1];s=Tt(j.body,Ct,F,P)}}if(!fe.isString(x)){x=x?"include":"omit"}N=o&&"credentials"in n.prototype;I=__assign(__assign({},_),{signal:O,method:u.toUpperCase(),headers:y.normalize().toJSON(),body:s,duplex:"half",credentials:N?x:undefined});E=o&&new n(a,I);return[4,o?k(E,_):k(a,I)];case 4:B=V.sent();U=l&&(w==="stream"||w==="response");if(l&&(m||U&&R)){D={};["status","statusText","headers"].forEach((function(e){D[e]=B[e]}));M=fe.toFiniteNumber(B.headers.get("content-length"));L=m&&vt(M,dt(ht(m),true))||[],F=L[0],q=L[1];B=new i(Tt(B.body,Ct,F,(function(){q&&q();R&&R()})),D)}w=w||"text";return[4,d[fe.findKey(d,w)||"text"](B,t)];case 5:z=V.sent();!U&&R&&R();return[4,new Promise((function(e,r){st(e,r,{data:z,headers:nt.from(B.headers),status:B.status,statusText:B.statusText,config:t,request:E})}))];case 6:return[2,V.sent()];case 7:H=V.sent();R&&R();if(H&&H.name==="TypeError"&&/Load failed|fetch/i.test(H.message)){throw Object.assign(new de("Network Error",de.ERR_NETWORK,t,E),{cause:H.cause||H})}throw de.from(H,H&&H.code,t,E);case 8:return[2]}}))}))}};var Mt=new Map;var Lt=function(e){var t=e&&e.env||{};var r=t.fetch,n=t.Request,i=t.Response;var a=[n,i,r];var o=a.length,u=o,s,c,f=Mt;while(u--){s=a[u];c=f.get(s);c===undefined&&f.set(s,c=u?new Map:Dt(t));f=c}return c};Lt();var qt={http:ve,xhr:Ot,fetch:{get:Lt}};fe.forEach(qt,(function(e,t){if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));var zt=function(e){return"- ".concat(e)};var Ht=function(e){return fe.isFunction(e)||e===null||e===false};function Vt(e,t){e=fe.isArray(e)?e:[e];var r=e.length;var n;var i;var a={};for(var o=0;o<r;o++){n=e[o];var u=void 0;i=n;if(!Ht(n)){i=qt[(u=String(n)).toLowerCase()];if(i===undefined){throw new de("Unknown adapter '".concat(u,"'"))}}if(i&&(fe.isFunction(i)||(i=i.get(t)))){break}a[u||"#"+o]=i}if(!i){var s=Object.entries(a).map((function(e){var t=e[0],r=e[1];return"adapter ".concat(t," ")+(r===false?"is not supported by the environment":"is not available in the build")}));var c=r?s.length>1?"since :\n"+s.map(zt).join("\n"):" "+zt(s[0]):"as no adapter specified";throw new de("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return i}var Kt={getAdapter:Vt,adapters:qt};function Gt(e){if(e.cancelToken){e.cancelToken.throwIfRequested()}if(e.signal&&e.signal.aborted){throw new ut(null,e)}}function Jt(e){Gt(e);e.headers=nt.from(e.headers);e.data=it.call(e,e.transformRequest);if(["post","put","patch"].indexOf(e.method)!==-1){e.headers.setContentType("application/x-www-form-urlencoded",false)}var t=Kt.getAdapter(e.adapter||Ke.adapter,e);return t(e).then((function t(r){Gt(e);r.data=it.call(e,e.transformResponse,r);r.headers=nt.from(r.headers);return r}),(function t(r){if(!at(r)){Gt(e);if(r&&r.response){r.response.data=it.call(e,e.transformResponse,r.response);r.response.headers=nt.from(r.response.headers)}}return Promise.reject(r)}))}var Xt="1.13.4";var Wt={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){Wt[e]=function r(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var $t={};Wt.transitional=function e(t,r,n){function i(e,t){return"[Axios v"+Xt+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(e,n,a){if(t===false){throw new de(i(n," has been removed"+(r?" in "+r:"")),de.ERR_DEPRECATED)}if(r&&!$t[n]){$t[n]=true;console.warn(i(n," has been deprecated since v"+r+" and will be removed in the near future"))}return t?t(e,n,a):true}};Wt.spelling=function e(t){return function(e,r){console.warn("".concat(r," is likely a misspelling of ").concat(t));return true}};function Yt(e,t,r){if(typeof e!=="object"){throw new de("options must be an object",de.ERR_BAD_OPTION_VALUE)}var n=Object.keys(e);var i=n.length;while(i-- >0){var a=n[i];var o=t[a];if(o){var u=e[a];var s=u===undefined||o(u,a,e);if(s!==true){throw new de("option "+a+" must be "+s,de.ERR_BAD_OPTION_VALUE)}continue}if(r!==true){throw new de("Unknown option "+a,de.ERR_BAD_OPTION)}}}var Zt={assertOptions:Yt,validators:Wt};var Qt=Zt.validators;var er=function(){function e(e){this.defaults=e||{};this.interceptors={request:new Re,response:new Re}}e.prototype.request=function(e,t){return __awaiter(this,void 0,void 0,(function(){var r,n,i;return __generator(this,(function(a){switch(a.label){case 0:a.trys.push([0,2,,3]);return[4,this._request(e,t)];case 1:return[2,a.sent()];case 2:r=a.sent();if(r instanceof Error){n={};Error.captureStackTrace?Error.captureStackTrace(n):n=new Error;i=n.stack?n.stack.replace(/^.+\n/,""):"";try{if(!r.stack){r.stack=i}else if(i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))){r.stack+="\n"+i}}catch(e){}}throw r;case 3:return[2]}}))}))};e.prototype._request=function(e,t){if(typeof e==="string"){t=t||{};t.url=e}else{t=e||{}}t=xt(this.defaults,t);var r=t.transitional,n=t.paramsSerializer,i=t.headers;if(r!==undefined){Zt.assertOptions(r,{silentJSONParsing:Qt.transitional(Qt.boolean),forcedJSONParsing:Qt.transitional(Qt.boolean),clarifyTimeoutError:Qt.transitional(Qt.boolean)},false)}if(n!=null){if(fe.isFunction(n)){t.paramsSerializer={serialize:n}}else{Zt.assertOptions(n,{encode:Qt.function,serialize:Qt.function},true)}}if(t.allowAbsoluteUrls!==undefined);else if(this.defaults.allowAbsoluteUrls!==undefined){t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls}else{t.allowAbsoluteUrls=true}Zt.assertOptions(t,{baseUrl:Qt.spelling("baseURL"),withXsrfToken:Qt.spelling("withXSRFToken")},true);t.method=(t.method||this.defaults.method||"get").toLowerCase();var a=i&&fe.merge(i.common,i[t.method]);i&&fe.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete i[e]}));t.headers=nt.concat(a,i);var o=[];var u=true;this.interceptors.request.forEach((function e(r){if(typeof r.runWhen==="function"&&r.runWhen(t)===false){return}u=u&&r.synchronous;o.unshift(r.fulfilled,r.rejected)}));var s=[];this.interceptors.response.forEach((function e(t){s.push(t.fulfilled,t.rejected)}));var c;var f=0;var l;if(!u){var d=[Jt.bind(this),undefined];d.unshift.apply(d,o);d.push.apply(d,s);l=d.length;c=Promise.resolve(t);while(f<l){c=c.then(d[f++],d[f++])}return c}l=o.length;var v=t;while(f<l){var h=o[f++];var p=o[f++];try{v=h(v)}catch(e){p.call(this,e);break}}try{c=Jt.call(this,v)}catch(e){return Promise.reject(e)}f=0;l=s.length;while(f<l){c=c.then(s[f++],s[f++])}return c};e.prototype.getUri=function(e){e=xt(this.defaults,e);var t=yt(e.baseURL,e.url,e.allowAbsoluteUrls);return Oe(t,e.params,e.paramsSerializer)};return e}();fe.forEach(["delete","get","head","options"],(function e(t){er.prototype[t]=function(e,r){return this.request(xt(r||{},{method:t,url:e,data:(r||{}).data}))}}));fe.forEach(["post","put","patch"],(function e(t){function r(e){return function r(n,i,a){return this.request(xt(a||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}er.prototype[t]=r();er.prototype[t+"Form"]=r(true)}));var tr=er;var rr=function(){function e(e){if(typeof e!=="function"){throw new TypeError("executor must be a function.")}var t;this.promise=new Promise((function e(r){t=r}));var r=this;this.promise.then((function(e){if(!r._listeners)return;var t=r._listeners.length;while(t-- >0){r._listeners[t](e)}r._listeners=null}));this.promise.then=function(e){var t;var n=new Promise((function(e){r.subscribe(e);t=e})).then(e);n.cancel=function e(){r.unsubscribe(t)};return n};e((function e(n,i,a){if(r.reason){return}r.reason=new ut(n,i,a);t(r.reason)}))}e.prototype.throwIfRequested=function(){if(this.reason){throw this.reason}};e.prototype.subscribe=function(e){if(this.reason){e(this.reason);return}if(this._listeners){this._listeners.push(e)}else{this._listeners=[e]}};e.prototype.unsubscribe=function(e){if(!this._listeners){return}var t=this._listeners.indexOf(e);if(t!==-1){this._listeners.splice(t,1)}};e.prototype.toAbortSignal=function(){var e=this;var t=new AbortController;var r=function(e){t.abort(e)};this.subscribe(r);t.signal.unsubscribe=function(){return e.unsubscribe(r)};return t.signal};e.source=function(){var t;var r=new e((function e(r){t=r}));return{token:r,cancel:t}};return e}();var nr=rr;function ir(e){return function t(r){return e.apply(null,r)}}function ar(e){return fe.isObject(e)&&e.isAxiosError===true}var or={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(or).forEach((function(e){var t=e[0],r=e[1];or[r]=t}));var ur=or;function sr(e){var r=new tr(e);var n=t(tr.prototype.request,r);fe.extend(n,tr.prototype,r,{allOwnKeys:true});fe.extend(n,r,null,{allOwnKeys:true});n.create=function t(r){return sr(xt(e,r))};return n}var cr=sr(Ke);cr.Axios=tr;cr.CanceledError=ut;cr.CancelToken=nr;cr.isCancel=at;cr.VERSION=Xt;cr.toFormData=ye;cr.AxiosError=de;cr.Cancel=cr.CanceledError;cr.all=function e(t){return Promise.all(t)};cr.spread=ir;cr.isAxiosError=ar;cr.mergeConfig=xt;cr.AxiosHeaders=nt;cr.formToJSON=function(e){return ze(fe.isHTMLForm(e)?new FormData(e):e)};cr.getAdapter=Kt.getAdapter;cr.HttpStatusCode=ur;cr.default=cr;axios_1=cr;return axios_1}var axiosExports=requireAxios();var axios=getDefaultExportFromCjs(axiosExports);var API_KEY=BETA_ORIGINS.includes(window.location.origin)?"default:development.6348f953f52485d19daf03992f2123a36e9eae59c5ca7f8736dc2b67":"default:production.4808a77b2a149e1796391b480b4fb501d73aa1e11123f60e07809ced";var getFeatureFlags=function(){return axios.get("https://unleash.verdocs.com/api/frontend",{headers:{Accept:"application/json",Authorization:API_KEY}}).then((function(e){return e.data})).catch((function(e){console.log("Unleash: Unable to fetch feature flags",e);throw e}))};var verdocsContactPickerCss='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-contact-picker{display:block;border:1px solid #ebebeb;background-color:#ffffff;font-family:var(--verdocs-primary-font, "Inter", "Barlow", sans-serif);-webkit-box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1);box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1)}verdocs-contact-picker form{gap:12px;width:300px;padding:12px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;background-color:#f5f5fa}verdocs-contact-picker form .row{gap:8px;display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:start;align-items:flex-start}verdocs-contact-picker form .row .option{gap:4px;display:-ms-flexbox;display:flex;padding:5px 8px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;text-wrap:nowrap}verdocs-contact-picker form .names-row{gap:8px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker form .names-row>input{font-size:14px;width:88px}verdocs-contact-picker form .pin-code{gap:8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker form .pin-code>input{-ms-flex:0 0 197px;flex:0 0 197px;font-size:14px}verdocs-contact-picker form .address{gap:8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker form .address>input{-ms-flex:1;flex:1;font-size:14px}verdocs-contact-picker form .zip-code{gap:8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker form .zip-code>input{-ms-flex:1;flex:1;font-size:14px}verdocs-contact-picker form label{display:-ms-flexbox;display:flex;-ms-flex:0 0 80px;flex:0 0 80px;font-size:13px;font-weight:500;color:#5c6575}verdocs-contact-picker form .row.message textarea{width:100%;padding:5px 7px;border-radius:4px;font-family:var(--verdocs-primary-font, "Inter", "Barlow", sans-serif)}verdocs-contact-picker form input{-ms-flex:1;flex:1;padding:6px;font-size:14px;border-radius:3px;border:1px solid rgba(112, 122, 229, 0.3725490196)}verdocs-contact-picker form input:focus{outline:none}verdocs-contact-picker .buttons{display:-ms-flexbox;display:flex;-webkit-column-gap:6px;-moz-column-gap:6px;column-gap:6px;margin-top:16px;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker .buttons .flex-fill{-ms-flex:1;flex:1}verdocs-contact-picker ::-webkit-input-placeholder{color:#aaaaaa}verdocs-contact-picker ::-moz-placeholder{color:#aaaaaa}verdocs-contact-picker :-ms-input-placeholder{color:#aaaaaa}verdocs-contact-picker ::-ms-input-placeholder{color:#aaaaaa}verdocs-contact-picker ::placeholder{color:#aaaaaa}verdocs-contact-picker [data-lastpass-icon-root]{display:none !important}#verdocs-contact-picker-suggestions .dropdown{max-height:225px;overflow-y:scroll;background:#ffffff;font-family:var(--verdocs-primary-font, "Inter", "Barlow", sans-serif);-webkit-box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1);box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1)}#verdocs-contact-picker-suggestions .dropdown .suggestion{display:-ms-flexbox;display:flex;padding:6px 12px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}#verdocs-contact-picker-suggestions .dropdown .suggestion svg{width:32px;height:32px}#verdocs-contact-picker-suggestions .dropdown .suggestion .avatar{width:32px;height:32px;-ms-flex:0 0 32px;flex:0 0 32px;margin-right:8px;border-radius:100%}#verdocs-contact-picker-suggestions .dropdown .suggestion .details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}#verdocs-contact-picker-suggestions .dropdown .suggestion .name{font-size:16px;font-weight:500;margin-bottom:3px;color:#092c4c}#verdocs-contact-picker-suggestions .dropdown .suggestion .destination{font-size:14px;margin-bottom:3px;color:#33364b}#verdocs-contact-picker-suggestions .dropdown .suggestion:hover{background:#eee;cursor:pointer}';var addrBookIcon='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-book-user"><path d="M15 13a3 3 0 1 0-6 0"/><path d="M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"/><circle cx="12" cy="8" r="2"/></svg>';var VerdocsContactPicker=function(){function e(e){registerInstance(this,e);this.searchContacts=createEvent(this,"searchContacts");this.exit=createEvent(this,"exit");this.next=createEvent(this,"next");this.endpoint=VerdocsEndpoint.getDefault();this.templateRole=null;this.contactSuggestions=[];this.showSuggestions=false;this.showMessage=false;this.delegator=false;this.auth_methods=[];this.passcode="";this.firstNameFieldId="verdocs-contact-picker-firstname-".concat(Math.random().toString(36).substring(2,11));this.lastNameFieldId="verdocs-contact-picker-lastname-".concat(Math.random().toString(36).substring(2,11));this.emailFieldId="verdocs-contact-picker-email-".concat(Math.random().toString(36).substring(2,11));this.phoneFieldId="verdocs-contact-picker-phone-".concat(Math.random().toString(36).substring(2,11));this.featureFlags=null;this.activeEntitlements={}}e.prototype.componentWillLoad=function(){var e=this;this.endpoint.loadSession();if(this.templateRole){var t=formatFullName(this.templateRole);var r=t.split(" ");var n=this.templateRole.first_name||r.shift()||"";var i=this.templateRole.last_name||r.join(" ")||"";this.first_name=n;this.last_name=i;this.email=this.templateRole.email||"";this.phone=this.templateRole.phone||"";this.delegator=this.templateRole.delegator||false;this.message=this.templateRole.message||"";this.showMessage=this.message!=="";this.auth_methods=this.templateRole.auth_methods||[];this.passcode=this.templateRole.passcode||""}getActiveEntitlements(this.endpoint).then((function(t){e.activeEntitlements=t;console.log("[CONTACT PICKER] Loaded entitlements",t)})).catch((function(e){return console.log("[CONTACT PICKER] Error loading entitlements, some features may be disabled.",e)}));getFeatureFlags().then((function(t){e.featureFlags=t;console.log("[CONTACT PICKER] Loaded feature flags",t)})).catch((function(e){console.log("[CONTACT PICKER] Unable to fetch feature flags, some features may be disabled.",e)}))};e.prototype.handleFirstNameChange=function(e){var t;this.first_name=e.target.value;(t=this.searchContacts)===null||t===void 0?void 0:t.emit({query:this.first_name})};e.prototype.handleLastNameChange=function(e){var t;this.last_name=e.target.value;(t=this.searchContacts)===null||t===void 0?void 0:t.emit({query:this.last_name})};e.prototype.handleCancel=function(e){var t;e.stopPropagation();this.showSuggestions=false;(t=this.exit)===null||t===void 0?void 0:t.emit()};e.prototype.handleSubmit=function(e){var t;e.stopPropagation();this.showSuggestions=false;(t=this.next)===null||t===void 0?void 0:t.emit({first_name:this.first_name,last_name:this.last_name,email:this.email,phone:this.phone,message:this.message,delegator:this.delegator,auth_methods:this.auth_methods,passcode:this.passcode,address:this.address,zip:this.zip})};e.prototype.handleSelectSuggestion=function(e,t){e.stopPropagation();this.first_name=t.first_name;this.last_name=t.last_name;this.email=t.email;this.phone=t.phone;this.showSuggestions=false};e.prototype.render=function(){var e=this;var t,r,n,i,a,o,u,s,c,f,l,d,v,p,m,b,w,y;var g=this.first_name&&this.last_name&&isValidEmail(this.email);var x=!this.auth_methods.length||this.auth_methods.includes("passcode")&&!!this.passcode||this.auth_methods.includes("kba")&&!!this.first_name&&!!this.last_name||this.auth_methods.includes("email")&&!!this.email||this.auth_methods.includes("sms")&&!!this.phone;var _=g&&x;var k=((n=(r=(t=this.featureFlags)===null||t===void 0?void 0:t.toggles)===null||r===void 0?void 0:r.find((function(e){return e.name==="sms"})))===null||n===void 0?void 0:n.enabled)===true;var O=[];if(((o=(a=(i=this.featureFlags)===null||i===void 0?void 0:i.toggles)===null||a===void 0?void 0:a.find((function(e){return e.name==="passcode-verification"})))===null||o===void 0?void 0:o.enabled)===true){O.push({label:"Passcode",value:"passcode"})}if(((c=(s=(u=this.featureFlags)===null||u===void 0?void 0:u.toggles)===null||s===void 0?void 0:s.find((function(e){return e.name==="email-verification"})))===null||c===void 0?void 0:c.enabled)===true){O.push({label:"Email",value:"email"})}if(k&&((d=(l=(f=this.featureFlags)===null||f===void 0?void 0:f.toggles)===null||l===void 0?void 0:l.find((function(e){return e.name==="sms-verification"})))===null||d===void 0?void 0:d.enabled)===true&&!!this.activeEntitlements.sms_auth){O.push({label:"SMS (One-Time Code)",value:"sms"})}if(((m=(p=(v=this.featureFlags)===null||v===void 0?void 0:v.toggles)===null||p===void 0?void 0:p.find((function(e){return e.name==="kba-verification"})))===null||m===void 0?void 0:m.enabled)===true&&!!this.activeEntitlements.kba_auth){O.push({label:"Knowledge-Based (KBA)",value:"kba"})}if(((y=(w=(b=this.featureFlags)===null||b===void 0?void 0:b.toggles)===null||w===void 0?void 0:w.find((function(e){return e.name==="id-verification"})))===null||y===void 0?void 0:y.enabled)===true&&!!this.activeEntitlements.id_auth){O.push({label:"ID Check",value:"id"})}return h("form",{key:"5b4d4de3ad06d4cb458b92ca6159fadcbb38a89e",onSubmit:function(e){return e.preventDefault()},autocomplete:"off"},h("div",{key:"065bd43ea84a5431f4cb370491147377d0b4ed87",class:"row"},h("label",{key:"48e3ab3a13607b42018e400703910d08f053d7c0",htmlFor:this.firstNameFieldId},"Name:"),h("div",{key:"c1acb5b9cfd0cdbd17edce151e66035826ae3e15",class:"names-row"},h("input",{key:"bfd3f91624725b717df1b27d000924503e0cb0b8",id:this.firstNameFieldId,name:this.firstNameFieldId,type:"text","data-lpignore":"true",autocomplete:"blocked","aria-autocomplete":"none",value:this.first_name,placeholder:"First...",onFocus:function(){setTimeout((function(){var t;e.showSuggestions=((t=e.contactSuggestions)===null||t===void 0?void 0:t.length)>0}),100)},onInput:function(t){return e.handleFirstNameChange(t)}}),h("input",{key:"30ae8e6b5c52c45bad07572a9357c575fd248df1",id:this.lastNameFieldId,name:this.lastNameFieldId,type:"text","data-lpignore":"true",autocomplete:"blocked","aria-autocomplete":"none",value:this.last_name,placeholder:"Last...",onFocus:function(){setTimeout((function(){var t;e.showSuggestions=((t=e.contactSuggestions)===null||t===void 0?void 0:t.length)>0}),100)},onInput:function(t){return e.handleLastNameChange(t)}})),this.showSuggestions&&h("verdocs-portal",{key:"6a03422c1dbe45c1e8a389af0f884f2f4b525aca",anchor:this.firstNameFieldId,onClickAway:function(){e.showSuggestions=false;document.querySelectorAll(".verdocs-portal-wrapper").forEach((function(e){return e.remove()}))},id:"verdocs-contact-picker-suggestions"},h("div",{key:"a9907d3c7b291fde2e86a3a0dd2bfb0f2c1d06b3",class:"dropdown"},this.contactSuggestions.filter((function(t){return!e.first_name||t.first_name.toLowerCase().includes(e.first_name.toLowerCase())})).map((function(t){var r;return h("div",{key:(r=t.id)!==null&&r!==void 0?r:t.email,class:"suggestion",onClick:function(r){return e.handleSelectSuggestion(r,t)}},t.picture?h("img",{alt:"Avatar",class:"avatar",src:t.picture}):h("div",{class:"avatar",innerHTML:addrBookIcon}),h("div",{class:"details"},h("div",{class:"name"},formatFullName(t)),t.email&&h("div",{class:"destination"},t.email),t.phone&&h("div",{class:"destination"},t.phone)))}))))),h("div",{key:"220b7dc0f04eb27279e003aaa196aee58b51ec64",class:"row"},h("label",{key:"7120d789f96a375a3f6237b93a3699866dae5e0e",htmlFor:this.emailFieldId},"Email:"),h("input",{key:"33aa0973927dedcc1d3005411dcdb87c969a65c2",id:this.emailFieldId,name:this.emailFieldId,type:"text","data-lpignore":"true",autoComplete:"blocked","aria-autocomplete":"none",value:this.email,placeholder:"Invite/verify via email...",onFocus:function(){return e.showSuggestions=false},onInput:function(t){return e.email=t.target.value}})),k&&h("div",{key:"8b888dd8490d99235bd1d1b2e6acce6d64fbf5a4",class:"row"},h("label",{key:"702e60156cfbe39cc56c20ca5f9e5b112eb8fbb5",htmlFor:this.phoneFieldId},"Phone:"),h("input",{key:"1f6b416d622b821e63e89bdf75626bc9f97422df",id:this.phoneFieldId,name:this.phoneFieldId,type:"text","data-lpignore":"true",autoComplete:"blocked","aria-autocomplete":"none",value:this.phone,placeholder:"Invite/verify via SMS...",onFocus:function(){return e.showSuggestions=false},onInput:function(t){e.phone=convertToE164(t.target.value)}})),h(Fragment,{key:"60d3ccc50417d1fbe6a815d6edf37619f945b63e"},O.length>0&&h("div",{key:"f1248b2c40c1cfb22cfa577bc1f5c5895362ded2",class:"row pin-code"},h("label",{key:"d782f794fa6a8d2ca18835db9e8d6e510038f212"},"Verification Methods:"),h("div",{key:"51370acfa10be18fa7783ee28849caaf9ad11fcb"},O.map((function(t,r){return h("div",{class:"option"},h("verdocs-checkbox",{size:"small",id:"verdocs-multi-select-opt-".concat(r),value:t.value,checked:e.auth_methods.includes(t.value),onInput:function(r){if(r.target.checked){e.auth_methods=__spreadArray(__spreadArray([],e.auth_methods,true),[t.value],false)}else{e.auth_methods=e.auth_methods.filter((function(e){return e!==t.value}))}}}),h("label",{htmlFor:"verdocs-multi-select-option-".concat(r)},t.label))})))),this.auth_methods.includes("passcode")&&h("div",{key:"37cc47ae07fcee96a90ca0684307b2fa12436fbd",class:"row pin-code"},h("label",{key:"57b9975fcdf609ebcfd709f2cc646f74163eda15",htmlFor:this.phoneFieldId},"Passcode:"),h("input",{key:"5c9f4d7f4757512fa7c87e91adf731fe256050da",id:"verdocs-passcode",name:"verdocs-passcode",type:"text","data-lpignore":"true",autocomplete:"blocked","aria-autocomplete":"none",value:this.passcode,placeholder:"4-8 digits recommended...",onFocus:function(){return e.showSuggestions=false},onInput:function(t){return e.passcode=t.target.value}}))),h("div",{key:"7bed0f7befff14122e821680fce895d64889212c",class:"row pin-code"},h("label",{key:"295f03231ca15e2a25895d8f6dca7b7507fc58fa"},"Delegation:"),h("div",{key:"21d03961df0853b3f1e4a4b3e9445e8a3ecf80ee"},h("div",{key:"1e70e144d4e678e9697039468549ef38606dc3b7",class:"option"},h("verdocs-checkbox",{key:"8f94ea2d0b3f1bc8831c8666d379ebc2a22fbb95",size:"small",id:"verdocs-delegator",checked:this.delegator,onInput:function(t){e.delegator=t.target.checked}}),h("label",{key:"9ea3f9f359f7045aebd80367af0a7431d1e850e4",htmlFor:"verdocs-delegator"},"May delegate signing")))),h("div",{key:"90e07660115c7f41ade3aad5fe4eb93d7d8cb4fd",class:"row message"},h("label",{key:"0268f3ecd123de3c8d0e27b345253385157bfce6",htmlFor:"verdocs-contact-picker-message"},"Message:"),h("textarea",{key:"526671a3e768cc6280e82d04fe4f86d0fd5678bd",id:"verdocs-contact-picker-message",name:"verdocs-contact-picker-message","data-lpignore":"true",autocomplete:"blocked",placeholder:"Optional message to include in invitation...",onFocus:function(){return e.showSuggestions=false},onInput:function(t){return e.message=t.target.value}},this.message)),h("div",{key:"9bfb44085c94a08a9d2957d031e263d398ab170b",class:"buttons"},h("div",{key:"2b21510d850071094dd7005c26de4e8cd14c992d",class:"flex-fill"}),h("verdocs-button",{key:"881527d8167c31490622f3e9f0252cfdd3139d58",variant:"outline",label:"Cancel",size:"small",onClick:function(t){return e.handleCancel(t)}}),h("verdocs-button",{key:"3dbc5efa49eb696eedb2d50c06837b70abea5e80",label:"OK",size:"small",disabled:!_,onClick:!_?function(){}:function(t){return e.handleSubmit(t)}})))};return e}();VerdocsContactPicker.style=verdocsContactPickerCss;export{VerdocsContactPicker as verdocs_contact_picker};
1
+ var __extends=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,t,r,n){function i(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,o){function a(e){try{s(n.next(e))}catch(e){o(e)}}function u(e){try{s(n["throw"](e))}catch(e){o(e)}}function s(e){e.done?r(e.value):i(e.value).then(a,u)}s((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return a.next=u(0),a["throw"]=u(1),a["return"]=u(2),typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(e){return function(t){return s([e,t])}}function s(u){if(n)throw new TypeError("Generator is already executing.");while(a&&(a=0,u[0]&&(r=0)),r)try{if(n=1,i&&(o=u[0]&2?i["return"]:u[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;if(i=0,o)u=[u[0]&2,o.value];switch(u[0]){case 0:case 1:o=u;break;case 4:r.label++;return{value:u[1],done:false};case 5:r.label++;i=u[1];u=[0];continue;case 7:u=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){r.label=u[1];break}if(u[0]===6&&r.label<o[1]){r.label=o[1];o=u;break}if(o&&r.label<o[2]){r.label=o[2];r.ops.push(u);break}if(o[2])r.ops.pop();r.trys.pop();continue}u=t.call(e,r)}catch(e){u=[6,e];i=0}finally{n=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};var __asyncValues=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(t){r[t]=e[t]&&function(r){return new Promise((function(n,o){r=e[t](r),i(n,o,r.done,r.value)}))}}function i(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}};var __await=this&&this.__await||function(e){return this instanceof __await?(this.v=e,this):new __await(e)};var __asyncDelegator=this&&this.__asyncDelegator||function(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:__await(e[n](t)),done:false}:i?i(t):t}:i}};var __asyncGenerator=this&&this.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),i,o=[];return i=Object.create((typeof AsyncIterator==="function"?AsyncIterator:Object).prototype),u("next"),u("throw"),u("return",a),i[Symbol.asyncIterator]=function(){return this},i;function a(e){return function(t){return Promise.resolve(t).then(e,l)}}function u(e,t){if(n[e]){i[e]=function(t){return new Promise((function(r,n){o.push([e,t,r,n])>1||s(e,t)}))};if(t)i[e]=t(i[e])}}function s(e,t){try{c(n[e](t))}catch(e){d(o[0][3],e)}}function c(e){e.value instanceof __await?Promise.resolve(e.value.v).then(f,l):d(o[0][2],e)}function f(e){s("next",e)}function l(e){s("throw",e)}function d(e,t){if(e(t),o.shift(),o.length)s(o[0][0],o[0][1])}};var __spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++){if(o||!(n in t)){if(!o)o=Array.prototype.slice.call(t,0,n);o[n]=t[n]}}return e.concat(o||Array.prototype.slice.call(t))};var __values=this&&this.__values||function(e){var t=typeof Symbol==="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&n>=e.length)e=void 0;return{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};import{r as registerInstance,c as createEvent,h,F as Fragment}from"./index-BIRwgFLv.js";import{VerdocsEndpoint,formatFullName,getActiveEntitlements,isValidEmail}from"@verdocs/js-sdk";import{c as commonjsGlobal,g as getDefaultExportFromCjs}from"./_commonjsHelpers-BFTU3MAI.js";import{B as BETA_ORIGINS}from"./Environment-C_Xku1v2.js";import{e as convertToE164}from"./utils-7DStM5zD.js";import"./index-dzBXqXlK.js";import"./Types-dqxNbm_b.js";
2
+ /*! Axios v1.13.5 Copyright (c) 2026 Matt Zabriskie and contributors */var axios_1;var hasRequiredAxios;function requireAxios(){var e=this;if(hasRequiredAxios)return axios_1;hasRequiredAxios=1;function t(e,t){return function r(){return e.apply(t,arguments)}}var r=Object.prototype.toString;var n=Object.getPrototypeOf;var i=Symbol.iterator,o=Symbol.toStringTag;var a=function(e){return function(t){var n=r.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())}}(Object.create(null));var u=function(e){e=e.toLowerCase();return function(t){return a(t)===e}};var s=function(e){return function(t){return typeof t===e}};var c=Array.isArray;var f=s("undefined");function l(e){return e!==null&&!f(e)&&e.constructor!==null&&!f(e.constructor)&&p(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var d=u("ArrayBuffer");function v(e){var t;if(typeof ArrayBuffer!=="undefined"&&ArrayBuffer.isView){t=ArrayBuffer.isView(e)}else{t=e&&e.buffer&&d(e.buffer)}return t}var h=s("string");var p=s("function");var m=s("number");var b=function(e){return e!==null&&typeof e==="object"};var w=function(e){return e===true||e===false};var y=function(e){if(a(e)!=="object"){return false}var t=n(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(o in e)&&!(i in e)};var g=function(e){if(!b(e)||l(e)){return false}try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return false}};var x=u("Date");var _=u("File");var k=u("Blob");var O=u("FileList");var E=function(e){return b(e)&&p(e.pipe)};var R=function(e){var t;return e&&(typeof FormData==="function"&&e instanceof FormData||p(e.append)&&((t=a(e))==="formdata"||t==="object"&&p(e.toString)&&e.toString()==="[object FormData]"))};var S=u("URLSearchParams");var A=["ReadableStream","Request","Response","Headers"].map(u),j=A[0],T=A[1],C=A[2],F=A[3];var P=function(e){return e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")};function N(e,t,r){var n=r===void 0?{}:r,i=n.allOwnKeys,o=i===void 0?false:i;if(e===null||typeof e==="undefined"){return}var a;var u;if(typeof e!=="object"){e=[e]}if(c(e)){for(a=0,u=e.length;a<u;a++){t.call(null,e[a],a,e)}}else{if(l(e)){return}var s=o?Object.getOwnPropertyNames(e):Object.keys(e);var f=s.length;var d=void 0;for(a=0;a<f;a++){d=s[a];t.call(null,e[d],d,e)}}}function I(e,t){if(l(e)){return null}t=t.toLowerCase();var r=Object.keys(e);var n=r.length;var i;while(n-- >0){i=r[n];if(t===i.toLowerCase()){return i}}return null}var B=function(){if(typeof globalThis!=="undefined")return globalThis;return typeof self!=="undefined"?self:typeof window!=="undefined"?window:commonjsGlobal}();var U=function(e){return!f(e)&&e!==B};function D(){var e=U(this)&&this||{},t=e.caseless,r=e.skipUndefined;var n={};var i=function(e,i){if(i==="__proto__"||i==="constructor"||i==="prototype"){return}var o=t&&I(n,i)||i;if(y(n[o])&&y(e)){n[o]=D(n[o],e)}else if(y(e)){n[o]=D({},e)}else if(c(e)){n[o]=e.slice()}else if(!r||!f(e)){n[o]=e}};for(var o=0,a=arguments.length;o<a;o++){arguments[o]&&N(arguments[o],i)}return n}var M=function(e,r,n,i){var o=i===void 0?{}:i,a=o.allOwnKeys;N(r,(function(r,i){if(n&&p(r)){Object.defineProperty(e,i,{value:t(r,n),writable:true,enumerable:true,configurable:true})}else{Object.defineProperty(e,i,{value:r,writable:true,enumerable:true,configurable:true})}}),{allOwnKeys:a});return e};var q=function(e){if(e.charCodeAt(0)===65279){e=e.slice(1)}return e};var L=function(e,t,r,n){e.prototype=Object.create(t.prototype,n);Object.defineProperty(e.prototype,"constructor",{value:e,writable:true,enumerable:false,configurable:true});Object.defineProperty(e,"super",{value:t.prototype});r&&Object.assign(e.prototype,r)};var z=function(e,t,r,i){var o;var a;var u;var s={};t=t||{};if(e==null)return t;do{o=Object.getOwnPropertyNames(e);a=o.length;while(a-- >0){u=o[a];if((!i||i(u,e,t))&&!s[u]){t[u]=e[u];s[u]=true}}e=r!==false&&n(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t};var H=function(e,t,r){e=String(e);if(r===undefined||r>e.length){r=e.length}r-=t.length;var n=e.indexOf(t,r);return n!==-1&&n===r};var V=function(e){if(!e)return null;if(c(e))return e;var t=e.length;if(!m(t))return null;var r=new Array(t);while(t-- >0){r[t]=e[t]}return r};var K=function(e){return function(t){return e&&t instanceof e}}(typeof Uint8Array!=="undefined"&&n(Uint8Array));var G=function(e,t){var r=e&&e[i];var n=r.call(e);var o;while((o=n.next())&&!o.done){var a=o.value;t.call(e,a[0],a[1])}};var J=function(e,t){var r;var n=[];while((r=e.exec(t))!==null){n.push(r)}return n};var X=u("HTMLFormElement");var W=function(e){return e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function e(t,r,n){return r.toUpperCase()+n}))};var $=function(e){var t=e.hasOwnProperty;return function(e,r){return t.call(e,r)}}(Object.prototype);var Y=u("RegExp");var Z=function(e,t){var r=Object.getOwnPropertyDescriptors(e);var n={};N(r,(function(r,i){var o;if((o=t(r,i,e))!==false){n[i]=o||r}}));Object.defineProperties(e,n)};var Q=function(e){Z(e,(function(t,r){if(p(e)&&["arguments","caller","callee"].indexOf(r)!==-1){return false}var n=e[r];if(!p(n))return;t.enumerable=false;if("writable"in t){t.writable=false;return}if(!t.set){t.set=function(){throw Error("Can not rewrite read-only method '"+r+"'")}}}))};var ee=function(e,t){var r={};var n=function(e){e.forEach((function(e){r[e]=true}))};c(e)?n(e):n(String(e).split(t));return r};var te=function(){};var re=function(e,t){return e!=null&&Number.isFinite(e=+e)?e:t};function ne(e){return!!(e&&p(e.append)&&e[o]==="FormData"&&e[i])}var ie=function(e){var t=new Array(10);var r=function(e,n){if(b(e)){if(t.indexOf(e)>=0){return}if(l(e)){return e}if(!("toJSON"in e)){t[n]=e;var i=c(e)?[]:{};N(e,(function(e,t){var o=r(e,n+1);!f(o)&&(i[t]=o)}));t[n]=undefined;return i}}return e};return r(e,0)};var oe=u("AsyncFunction");var ae=function(e){return e&&(b(e)||p(e))&&p(e.then)&&p(e.catch)};var ue=function(e,t){if(e){return setImmediate}return t?function(e,t){B.addEventListener("message",(function(r){var n=r.source,i=r.data;if(n===B&&i===e){t.length&&t.shift()()}}),false);return function(r){t.push(r);B.postMessage(e,"*")}}("axios@".concat(Math.random()),[]):function(e){return setTimeout(e)}}(typeof setImmediate==="function",p(B.postMessage));var se=typeof queueMicrotask!=="undefined"?queueMicrotask.bind(B):typeof process!=="undefined"&&process.nextTick||ue;var ce=function(e){return e!=null&&p(e[i])};var fe={isArray:c,isArrayBuffer:d,isBuffer:l,isFormData:R,isArrayBufferView:v,isString:h,isNumber:m,isBoolean:w,isObject:b,isPlainObject:y,isEmptyObject:g,isReadableStream:j,isRequest:T,isResponse:C,isHeaders:F,isUndefined:f,isDate:x,isFile:_,isBlob:k,isRegExp:Y,isFunction:p,isStream:E,isURLSearchParams:S,isTypedArray:K,isFileList:O,forEach:N,merge:D,extend:M,trim:P,stripBOM:q,inherits:L,toFlatObject:z,kindOf:a,kindOfTest:u,endsWith:H,toArray:V,forEachEntry:G,matchAll:J,isHTMLForm:X,hasOwnProperty:$,hasOwnProp:$,reduceDescriptors:Z,freezeMethods:Q,toObjectSet:ee,toCamelCase:W,noop:te,toFiniteNumber:re,findKey:I,global:B,isContextDefined:U,isSpecCompliantForm:ne,toJSONObject:ie,isAsyncFn:oe,isThenable:ae,setImmediate:ue,asap:se,isIterable:ce};var le=function(e){__extends(t,e);function t(t,r,n,i,o){var a=e.call(this,t)||this;a.name="AxiosError";a.isAxiosError=true;r&&(a.code=r);n&&(a.config=n);i&&(a.request=i);if(o){a.response=o;a.status=o.status}return a}t.from=function(e,r,n,i,o,a){var u=new t(e.message,r||e.code,n,i,o);u.cause=e;u.name=e.name;a&&Object.assign(u,a);return u};t.prototype.toJSON=function(){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:fe.toJSONObject(this.config),code:this.code,status:this.status}};return t}(Error);le.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";le.ERR_BAD_OPTION="ERR_BAD_OPTION";le.ECONNABORTED="ECONNABORTED";le.ETIMEDOUT="ETIMEDOUT";le.ERR_NETWORK="ERR_NETWORK";le.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";le.ERR_DEPRECATED="ERR_DEPRECATED";le.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";le.ERR_BAD_REQUEST="ERR_BAD_REQUEST";le.ERR_CANCELED="ERR_CANCELED";le.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";le.ERR_INVALID_URL="ERR_INVALID_URL";var de=le;var ve=null;function he(e){return fe.isPlainObject(e)||fe.isArray(e)}function pe(e){return fe.endsWith(e,"[]")?e.slice(0,-2):e}function me(e,t,r){if(!e)return t;return e.concat(t).map((function e(t,n){t=pe(t);return!r&&n?"["+t+"]":t})).join(r?".":"")}function be(e){return fe.isArray(e)&&!e.some(he)}var we=fe.toFlatObject(fe,{},null,(function e(t){return/^is[A-Z]/.test(t)}));function ye(e,t,r){if(!fe.isObject(e)){throw new TypeError("target must be an object")}t=t||new FormData;r=fe.toFlatObject(r,{metaTokens:true,dots:false,indexes:false},false,(function e(t,r){return!fe.isUndefined(r[t])}));var n=r.metaTokens;var i=r.visitor||f;var o=r.dots;var a=r.indexes;var u=r.Blob||typeof Blob!=="undefined"&&Blob;var s=u&&fe.isSpecCompliantForm(t);if(!fe.isFunction(i)){throw new TypeError("visitor must be a function")}function c(e){if(e===null)return"";if(fe.isDate(e)){return e.toISOString()}if(fe.isBoolean(e)){return e.toString()}if(!s&&fe.isBlob(e)){throw new de("Blob is not supported. Use a Buffer instead.")}if(fe.isArrayBuffer(e)||fe.isTypedArray(e)){return s&&typeof Blob==="function"?new Blob([e]):Buffer.from(e)}return e}function f(e,r,i){var u=e;if(e&&!i&&typeof e==="object"){if(fe.endsWith(r,"{}")){r=n?r:r.slice(0,-2);e=JSON.stringify(e)}else if(fe.isArray(e)&&be(e)||(fe.isFileList(e)||fe.endsWith(r,"[]"))&&(u=fe.toArray(e))){r=pe(r);u.forEach((function e(n,i){!(fe.isUndefined(n)||n===null)&&t.append(a===true?me([r],i,o):a===null?r:r+"[]",c(n))}));return false}}if(he(e)){return true}t.append(me(i,r,o),c(e));return false}var l=[];var d=Object.assign(we,{defaultVisitor:f,convertValue:c,isVisitable:he});function v(e,r){if(fe.isUndefined(e))return;if(l.indexOf(e)!==-1){throw Error("Circular reference detected in "+r.join("."))}l.push(e);fe.forEach(e,(function e(n,o){var a=!(fe.isUndefined(n)||n===null)&&i.call(t,n,fe.isString(o)?o.trim():o,r,d);if(a===true){v(n,r?r.concat(o):[o])}}));l.pop()}if(!fe.isObject(e)){throw new TypeError("data must be an object")}v(e);return t}function ge(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function e(r){return t[r]}))}function xe(e,t){this._pairs=[];e&&ye(e,this,t)}var _e=xe.prototype;_e.append=function e(t,r){this._pairs.push([t,r])};_e.toString=function e(t){var r=t?function(e){return t.call(this,e,ge)}:ge;return this._pairs.map((function e(t){return r(t[0])+"="+r(t[1])}),"").join("&")};function ke(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Oe(e,t,r){if(!t){return e}var n=r&&r.encode||ke;var i=fe.isFunction(r)?{serialize:r}:r;var o=i&&i.serialize;var a;if(o){a=o(t,i)}else{a=fe.isURLSearchParams(t)?t.toString():new xe(t,i).toString(n)}if(a){var u=e.indexOf("#");if(u!==-1){e=e.slice(0,u)}e+=(e.indexOf("?")===-1?"?":"&")+a}return e}var Ee=function(){function e(){this.handlers=[]}e.prototype.use=function(e,t,r){this.handlers.push({fulfilled:e,rejected:t,synchronous:r?r.synchronous:false,runWhen:r?r.runWhen:null});return this.handlers.length-1};e.prototype.eject=function(e){if(this.handlers[e]){this.handlers[e]=null}};e.prototype.clear=function(){if(this.handlers){this.handlers=[]}};e.prototype.forEach=function(e){fe.forEach(this.handlers,(function t(r){if(r!==null){e(r)}}))};return e}();var Re=Ee;var Se={silentJSONParsing:true,forcedJSONParsing:true,clarifyTimeoutError:false,legacyInterceptorReqResOrdering:true};var Ae=typeof URLSearchParams!=="undefined"?URLSearchParams:xe;var je=typeof FormData!=="undefined"?FormData:null;var Te=typeof Blob!=="undefined"?Blob:null;var Ce={isBrowser:true,classes:{URLSearchParams:Ae,FormData:je,Blob:Te},protocols:["http","https","file","blob","url","data"]};var Fe=typeof window!=="undefined"&&typeof document!=="undefined";var Pe=typeof navigator==="object"&&navigator||undefined;var Ne=Fe&&(!Pe||["ReactNative","NativeScript","NS"].indexOf(Pe.product)<0);var Ie=function(){return typeof WorkerGlobalScope!=="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts==="function"}();var Be=Fe&&window.location.href||"http://localhost";var Ue=Object.freeze({__proto__:null,hasBrowserEnv:Fe,hasStandardBrowserWebWorkerEnv:Ie,hasStandardBrowserEnv:Ne,navigator:Pe,origin:Be});var De=__assign(__assign({},Ue),Ce);function Me(e,t){return ye(e,new De.classes.URLSearchParams,__assign({visitor:function(e,t,r,n){if(De.isNode&&fe.isBuffer(e)){this.append(t,e.toString("base64"));return false}return n.defaultVisitor.apply(this,arguments)}},t))}function qe(e){return fe.matchAll(/\w+|\[(\w*)]/g,e).map((function(e){return e[0]==="[]"?"":e[1]||e[0]}))}function Le(e){var t={};var r=Object.keys(e);var n;var i=r.length;var o;for(n=0;n<i;n++){o=r[n];t[o]=e[o]}return t}function ze(e){function t(e,r,n,i){var o=e[i++];if(o==="__proto__")return true;var a=Number.isFinite(+o);var u=i>=e.length;o=!o&&fe.isArray(n)?n.length:o;if(u){if(fe.hasOwnProp(n,o)){n[o]=[n[o],r]}else{n[o]=r}return!a}if(!n[o]||!fe.isObject(n[o])){n[o]=[]}var s=t(e,r,n[o],i);if(s&&fe.isArray(n[o])){n[o]=Le(n[o])}return!a}if(fe.isFormData(e)&&fe.isFunction(e.entries)){var r={};fe.forEachEntry(e,(function(e,n){t(qe(e),n,r,0)}));return r}return null}function He(e,t,r){if(fe.isString(e)){try{(0,JSON.parse)(e);return fe.trim(e)}catch(e){if(e.name!=="SyntaxError"){throw e}}}return(r||JSON.stringify)(e)}var Ve={transitional:Se,adapter:["xhr","http","fetch"],transformRequest:[function e(t,r){var n=r.getContentType()||"";var i=n.indexOf("application/json")>-1;var o=fe.isObject(t);if(o&&fe.isHTMLForm(t)){t=new FormData(t)}var a=fe.isFormData(t);if(a){return i?JSON.stringify(ze(t)):t}if(fe.isArrayBuffer(t)||fe.isBuffer(t)||fe.isStream(t)||fe.isFile(t)||fe.isBlob(t)||fe.isReadableStream(t)){return t}if(fe.isArrayBufferView(t)){return t.buffer}if(fe.isURLSearchParams(t)){r.setContentType("application/x-www-form-urlencoded;charset=utf-8",false);return t.toString()}var u;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1){return Me(t,this.formSerializer).toString()}if((u=fe.isFileList(t))||n.indexOf("multipart/form-data")>-1){var s=this.env&&this.env.FormData;return ye(u?{"files[]":t}:t,s&&new s,this.formSerializer)}}if(o||i){r.setContentType("application/json",false);return He(t)}return t}],transformResponse:[function e(t){var r=this.transitional||Ve.transitional;var n=r&&r.forcedJSONParsing;var i=this.responseType==="json";if(fe.isResponse(t)||fe.isReadableStream(t)){return t}if(t&&fe.isString(t)&&(n&&!this.responseType||i)){var o=r&&r.silentJSONParsing;var a=!o&&i;try{return JSON.parse(t,this.parseReviver)}catch(e){if(a){if(e.name==="SyntaxError"){throw de.from(e,de.ERR_BAD_RESPONSE,this,null,this.response)}throw e}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:De.classes.FormData,Blob:De.classes.Blob},validateStatus:function e(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":undefined}}};fe.forEach(["delete","get","head","post","put","patch"],(function(e){Ve.headers[e]={}}));var Ke=Ve;var Ge=fe.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"]);var Je=function(e){var t={};var r;var n;var i;e&&e.split("\n").forEach((function e(o){i=o.indexOf(":");r=o.substring(0,i).trim().toLowerCase();n=o.substring(i+1).trim();if(!r||t[r]&&Ge[r]){return}if(r==="set-cookie"){if(t[r]){t[r].push(n)}else{t[r]=[n]}}else{t[r]=t[r]?t[r]+", "+n:n}}));return t};var Xe=Symbol("internals");function We(e){return e&&String(e).trim().toLowerCase()}function $e(e){if(e===false||e==null){return e}return fe.isArray(e)?e.map($e):String(e)}function Ye(e){var t=Object.create(null);var r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;var n;while(n=r.exec(e)){t[n[1]]=n[2]}return t}var Ze=function(e){return/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())};function Qe(e,t,r,n,i){if(fe.isFunction(n)){return n.call(this,t,r)}if(i){t=r}if(!fe.isString(t))return;if(fe.isString(n)){return t.indexOf(n)!==-1}if(fe.isRegExp(n)){return n.test(t)}}function et(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(function(e,t,r){return t.toUpperCase()+r}))}function tt(e,t){var r=fe.toCamelCase(" "+t);["get","set","has"].forEach((function(n){Object.defineProperty(e,n+r,{value:function(e,r,i){return this[n].call(this,t,e,r,i)},configurable:true})}))}var rt=function(){function e(e){e&&this.set(e)}e.prototype.set=function(e,t,r){var n=this;function i(e,t,r){var i=We(t);if(!i){throw new Error("header name must be a non-empty string")}var o=fe.findKey(n,i);if(!o||n[o]===undefined||r===true||r===undefined&&n[o]!==false){n[o||t]=$e(e)}}var o=function(e,t){return fe.forEach(e,(function(e,r){return i(e,r,t)}))};if(fe.isPlainObject(e)||e instanceof this.constructor){o(e,t)}else if(fe.isString(e)&&(e=e.trim())&&!Ze(e)){o(Je(e),t)}else if(fe.isObject(e)&&fe.isIterable(e)){var a={},u=void 0,s=void 0;for(var c=0,f=e;c<f.length;c++){var l=f[c];if(!fe.isArray(l)){throw TypeError("Object iterator must return a key-value pair")}a[s=l[0]]=(u=a[s])?fe.isArray(u)?__spreadArray(__spreadArray([],u,true),[l[1]],false):[u,l[1]]:l[1]}o(a,t)}else{e!=null&&i(t,e,r)}return this};e.prototype.get=function(e,t){e=We(e);if(e){var r=fe.findKey(this,e);if(r){var n=this[r];if(!t){return n}if(t===true){return Ye(n)}if(fe.isFunction(t)){return t.call(this,n,r)}if(fe.isRegExp(t)){return t.exec(n)}throw new TypeError("parser must be boolean|regexp|function")}}};e.prototype.has=function(e,t){e=We(e);if(e){var r=fe.findKey(this,e);return!!(r&&this[r]!==undefined&&(!t||Qe(this,this[r],r,t)))}return false};e.prototype.delete=function(e,t){var r=this;var n=false;function i(e){e=We(e);if(e){var i=fe.findKey(r,e);if(i&&(!t||Qe(r,r[i],i,t))){delete r[i];n=true}}}if(fe.isArray(e)){e.forEach(i)}else{i(e)}return n};e.prototype.clear=function(e){var t=Object.keys(this);var r=t.length;var n=false;while(r--){var i=t[r];if(!e||Qe(this,this[i],i,e,true)){delete this[i];n=true}}return n};e.prototype.normalize=function(e){var t=this;var r={};fe.forEach(this,(function(n,i){var o=fe.findKey(r,i);if(o){t[o]=$e(n);delete t[i];return}var a=e?et(i):String(i).trim();if(a!==i){delete t[i]}t[a]=$e(n);r[a]=true}));return this};e.prototype.concat=function(){var e;var t=[];for(var r=0;r<arguments.length;r++){t[r]=arguments[r]}return(e=this.constructor).concat.apply(e,__spreadArray([this],t,false))};e.prototype.toJSON=function(e){var t=Object.create(null);fe.forEach(this,(function(r,n){r!=null&&r!==false&&(t[n]=e&&fe.isArray(r)?r.join(", "):r)}));return t};e.prototype[Symbol.iterator]=function(){return Object.entries(this.toJSON())[Symbol.iterator]()};e.prototype.toString=function(){return Object.entries(this.toJSON()).map((function(e){var t=e[0],r=e[1];return t+": "+r})).join("\n")};e.prototype.getSetCookie=function(){return this.get("set-cookie")||[]};Object.defineProperty(e.prototype,Symbol.toStringTag,{get:function(){return"AxiosHeaders"},enumerable:false,configurable:true});e.from=function(e){return e instanceof this?e:new this(e)};e.concat=function(e){var t=[];for(var r=1;r<arguments.length;r++){t[r-1]=arguments[r]}var n=new this(e);t.forEach((function(e){return n.set(e)}));return n};e.accessor=function(e){var t=this[Xe]=this[Xe]={accessors:{}};var r=t.accessors;var n=this.prototype;function i(e){var t=We(e);if(!r[t]){tt(n,e);r[t]=true}}fe.isArray(e)?e.forEach(i):i(e);return this};return e}();rt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);fe.reduceDescriptors(rt.prototype,(function(e,t){var r=e.value;var n=t[0].toUpperCase()+t.slice(1);return{get:function(){return r},set:function(e){this[n]=e}}}));fe.freezeMethods(rt);var nt=rt;function it(e,t){var r=this||Ke;var n=t||r;var i=nt.from(n.headers);var o=n.data;fe.forEach(e,(function e(n){o=n.call(r,o,i.normalize(),t?t.status:undefined)}));i.normalize();return o}function ot(e){return!!(e&&e.__CANCEL__)}var at=function(e){__extends(t,e);function t(t,r,n){var i=e.call(this,t==null?"canceled":t,de.ERR_CANCELED,r,n)||this;i.name="CanceledError";i.__CANCEL__=true;return i}return t}(de);var ut=at;function st(e,t,r){var n=r.config.validateStatus;if(!r.status||!n||n(r.status)){e(r)}else{t(new de("Request failed with status code "+r.status,[de.ERR_BAD_REQUEST,de.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}}function ct(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ft(e,t){e=e||10;var r=new Array(e);var n=new Array(e);var i=0;var o=0;var a;t=t!==undefined?t:1e3;return function u(s){var c=Date.now();var f=n[o];if(!a){a=c}r[i]=s;n[i]=c;var l=o;var d=0;while(l!==i){d+=r[l++];l=l%e}i=(i+1)%e;if(i===o){o=(o+1)%e}if(c-a<t){return}var v=f&&c-f;return v?Math.round(d*1e3/v):undefined}}function lt(e,t){var r=0;var n=1e3/t;var i;var o;var a=function(t,n){if(n===void 0){n=Date.now()}r=n;i=null;if(o){clearTimeout(o);o=null}e.apply(void 0,t)};var u=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var u=Date.now();var s=u-r;if(s>=n){a(e,u)}else{i=e;if(!o){o=setTimeout((function(){o=null;a(i)}),n-s)}}};var s=function(){return i&&a(i)};return[u,s]}var dt=function(e,t,r){if(r===void 0){r=3}var n=0;var i=ft(50,250);return lt((function(r){var o;var a=r.loaded;var u=r.lengthComputable?r.total:undefined;var s=a-n;var c=i(s);var f=a<=u;n=a;var l=(o={loaded:a,total:u,progress:u?a/u:undefined,bytes:s,rate:c?c:undefined,estimated:c&&u&&f?(u-a)/c:undefined,event:r,lengthComputable:u!=null},o[t?"download":"upload"]=true,o);e(l)}),r)};var vt=function(e,t){var r=e!=null;return[function(n){return t[0]({lengthComputable:r,total:e,loaded:n})},t[1]]};var ht=function(e){return function(){var t=[];for(var r=0;r<arguments.length;r++){t[r]=arguments[r]}return fe.asap((function(){return e.apply(void 0,t)}))}};var pt=De.hasStandardBrowserEnv?function(e,t){return function(r){r=new URL(r,De.origin);return e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)}}(new URL(De.origin),De.navigator&&/(msie|trident)/i.test(De.navigator.userAgent)):function(){return true};var mt=De.hasStandardBrowserEnv?{write:function(e,t,r,n,i,o,a){if(typeof document==="undefined")return;var u=["".concat(e,"=").concat(encodeURIComponent(t))];if(fe.isNumber(r)){u.push("expires=".concat(new Date(r).toUTCString()))}if(fe.isString(n)){u.push("path=".concat(n))}if(fe.isString(i)){u.push("domain=".concat(i))}if(o===true){u.push("secure")}if(fe.isString(a)){u.push("SameSite=".concat(a))}document.cookie=u.join("; ")},read:function(e){if(typeof document==="undefined")return null;var t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove:function(e){this.write(e,"",Date.now()-864e5,"/")}}:{write:function(){},read:function(){return null},remove:function(){}};function bt(e){if(typeof e!=="string"){return false}return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function wt(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function yt(e,t,r){var n=!bt(t);if(e&&(n||r==false)){return wt(e,t)}return t}var gt=function(e){return e instanceof nt?__assign({},e):e};function xt(e,t){t=t||{};var r={};function n(e,t,r,n){if(fe.isPlainObject(e)&&fe.isPlainObject(t)){return fe.merge.call({caseless:n},e,t)}else if(fe.isPlainObject(t)){return fe.merge({},t)}else if(fe.isArray(t)){return t.slice()}return t}function i(e,t,r,i){if(!fe.isUndefined(t)){return n(e,t,r,i)}else if(!fe.isUndefined(e)){return n(undefined,e,r,i)}}function o(e,t){if(!fe.isUndefined(t)){return n(undefined,t)}}function a(e,t){if(!fe.isUndefined(t)){return n(undefined,t)}else if(!fe.isUndefined(e)){return n(undefined,e)}}function u(r,i,o){if(o in t){return n(r,i)}else if(o in e){return n(undefined,r)}}var s={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:u,headers:function(e,t,r){return i(gt(e),gt(t),r,true)}};fe.forEach(Object.keys(__assign(__assign({},e),t)),(function n(o){if(o==="__proto__"||o==="constructor"||o==="prototype")return;var a=fe.hasOwnProp(s,o)?s[o]:i;var c=a(e[o],t[o],o);fe.isUndefined(c)&&a!==u||(r[o]=c)}));return r}var _t=function(e){var t=xt({},e);var r=t.data,n=t.withXSRFToken,i=t.xsrfHeaderName,o=t.xsrfCookieName,a=t.headers,u=t.auth;t.headers=a=nt.from(a);t.url=Oe(yt(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer);if(u){a.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):"")))}if(fe.isFormData(r)){if(De.hasStandardBrowserEnv||De.hasStandardBrowserWebWorkerEnv){a.setContentType(undefined)}else if(fe.isFunction(r.getHeaders)){var s=r.getHeaders();var c=["content-type","content-length"];Object.entries(s).forEach((function(e){var t=e[0],r=e[1];if(c.includes(t.toLowerCase())){a.set(t,r)}}))}}if(De.hasStandardBrowserEnv){n&&fe.isFunction(n)&&(n=n(t));if(n||n!==false&&pt(t.url)){var f=i&&o&&mt.read(o);if(f){a.set(i,f)}}}return t};var kt=typeof XMLHttpRequest!=="undefined";var Ot=kt&&function(e){return new Promise((function t(r,n){var i,o;var a=_t(e);var u=a.data;var s=nt.from(a.headers).normalize();var c=a.responseType,f=a.onUploadProgress,l=a.onDownloadProgress;var d;var v,h;var p,m;function b(){p&&p();m&&m();a.cancelToken&&a.cancelToken.unsubscribe(d);a.signal&&a.signal.removeEventListener("abort",d)}var w=new XMLHttpRequest;w.open(a.method.toUpperCase(),a.url,true);w.timeout=a.timeout;function y(){if(!w){return}var t=nt.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders());var i=!c||c==="text"||c==="json"?w.responseText:w.response;var o={data:i,status:w.status,statusText:w.statusText,headers:t,config:e,request:w};st((function e(t){r(t);b()}),(function e(t){n(t);b()}),o);w=null}if("onloadend"in w){w.onloadend=y}else{w.onreadystatechange=function e(){if(!w||w.readyState!==4){return}if(w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)){return}setTimeout(y)}}w.onabort=function t(){if(!w){return}n(new de("Request aborted",de.ECONNABORTED,e,w));w=null};w.onerror=function t(r){var i=r&&r.message?r.message:"Network Error";var o=new de(i,de.ERR_NETWORK,e,w);o.event=r||null;n(o);w=null};w.ontimeout=function t(){var r=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";var i=a.transitional||Se;if(a.timeoutErrorMessage){r=a.timeoutErrorMessage}n(new de(r,i.clarifyTimeoutError?de.ETIMEDOUT:de.ECONNABORTED,e,w));w=null};u===undefined&&s.setContentType(null);if("setRequestHeader"in w){fe.forEach(s.toJSON(),(function e(t,r){w.setRequestHeader(r,t)}))}if(!fe.isUndefined(a.withCredentials)){w.withCredentials=!!a.withCredentials}if(c&&c!=="json"){w.responseType=a.responseType}if(l){i=dt(l,true),h=i[0],m=i[1];w.addEventListener("progress",h)}if(f&&w.upload){o=dt(f),v=o[0],p=o[1];w.upload.addEventListener("progress",v);w.upload.addEventListener("loadend",p)}if(a.cancelToken||a.signal){d=function(t){if(!w){return}n(!t||t.type?new ut(null,e,w):t);w.abort();w=null};a.cancelToken&&a.cancelToken.subscribe(d);if(a.signal){a.signal.aborted?d():a.signal.addEventListener("abort",d)}}var g=ct(a.url);if(g&&De.protocols.indexOf(g)===-1){n(new de("Unsupported protocol "+g+":",de.ERR_BAD_REQUEST,e));return}w.send(u||null)}))};var Et=function(e,t){var r=(e=e?e.filter(Boolean):[]).length;if(t||r){var n=new AbortController;var i;var o=function(e){if(!i){i=true;u();var t=e instanceof Error?e:this.reason;n.abort(t instanceof de?t:new ut(t instanceof Error?t.message:t))}};var a=t&&setTimeout((function(){a=null;o(new de("timeout of ".concat(t,"ms exceeded"),de.ETIMEDOUT))}),t);var u=function(){if(e){a&&clearTimeout(a);a=null;e.forEach((function(e){e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}));e=null}};e.forEach((function(e){return e.addEventListener("abort",o)}));var s=n.signal;s.unsubscribe=function(){return fe.asap(u)};return s}};var Rt=Et;var St=function(e,t){var r,n,i;return __generator(this,(function(o){switch(o.label){case 0:r=e.byteLength;if(!(r<t))return[3,2];return[4,e];case 1:o.sent();return[2];case 2:n=0;o.label=3;case 3:if(!(n<r))return[3,5];i=n+t;return[4,e.slice(n,i)];case 4:o.sent();n=i;return[3,3];case 5:return[2]}}))};var At=function(e,t){return __asyncGenerator(this,arguments,(function(){var r,n,i,o,a;var u,s,c,f;return __generator(this,(function(l){switch(l.label){case 0:l.trys.push([0,7,8,13]);r=true,n=__asyncValues(jt(e));l.label=1;case 1:return[4,__await(n.next())];case 2:if(!(i=l.sent(),u=i.done,!u))return[3,6];f=i.value;r=false;o=f;return[5,__values(__asyncDelegator(__asyncValues(St(o,t))))];case 3:return[4,__await.apply(void 0,[l.sent()])];case 4:l.sent();l.label=5;case 5:r=true;return[3,1];case 6:return[3,13];case 7:a=l.sent();s={error:a};return[3,13];case 8:l.trys.push([8,,11,12]);if(!(!r&&!u&&(c=n.return)))return[3,10];return[4,__await(c.call(n))];case 9:l.sent();l.label=10;case 10:return[3,12];case 11:if(s)throw s.error;return[7];case 12:return[7];case 13:return[2]}}))}))};var jt=function(e){return __asyncGenerator(this,arguments,(function(){var t,r,n,i;return __generator(this,(function(o){switch(o.label){case 0:if(!e[Symbol.asyncIterator])return[3,4];return[5,__values(__asyncDelegator(__asyncValues(e)))];case 1:return[4,__await.apply(void 0,[o.sent()])];case 2:o.sent();return[4,__await(void 0)];case 3:return[2,o.sent()];case 4:t=e.getReader();o.label=5;case 5:o.trys.push([5,,12,14]);o.label=6;case 6:return[4,__await(t.read())];case 7:r=o.sent(),n=r.done,i=r.value;if(n){return[3,11]}return[4,__await(i)];case 8:return[4,o.sent()];case 9:o.sent();o.label=10;case 10:return[3,6];case 11:return[3,14];case 12:return[4,__await(t.cancel())];case 13:o.sent();return[7];case 14:return[2]}}))}))};var Tt=function(e,t,r,n){var i=At(e,t);var o=0;var a;var u=function(e){if(!a){a=true;n&&n(e)}};return new ReadableStream({pull:function(e){return __awaiter(this,void 0,void 0,(function(){var t,n,a,s,c,f;return __generator(this,(function(l){switch(l.label){case 0:l.trys.push([0,2,,3]);return[4,i.next()];case 1:t=l.sent(),n=t.done,a=t.value;if(n){u();e.close();return[2]}s=a.byteLength;if(r){c=o+=s;r(c)}e.enqueue(new Uint8Array(a));return[3,3];case 2:f=l.sent();u(f);throw f;case 3:return[2]}}))}))},cancel:function(e){u(e);return i.return()}},{highWaterMark:2})};var Ct=64*1024;var Ft=fe.isFunction;var Pt=function(e){var t=e.Request,r=e.Response;return{Request:t,Response:r}}(fe.global);var Nt=fe.global,It=Nt.ReadableStream,Bt=Nt.TextEncoder;var Ut=function(e){var t=[];for(var r=1;r<arguments.length;r++){t[r-1]=arguments[r]}try{return!!e.apply(void 0,t)}catch(e){return false}};var Dt=function(t){t=fe.merge.call({skipUndefined:true},Pt,t);var r=t.fetch,n=t.Request,i=t.Response;var o=r?Ft(r):typeof fetch==="function";var a=Ft(n);var u=Ft(i);if(!o){return false}var s=o&&Ft(It);var c=o&&(typeof Bt==="function"?function(e){return function(t){return e.encode(t)}}(new Bt):function(t){return __awaiter(e,void 0,void 0,(function(){var e;return __generator(this,(function(r){switch(r.label){case 0:e=Uint8Array.bind;return[4,new n(t).arrayBuffer()];case 1:return[2,new(e.apply(Uint8Array,[void 0,r.sent()]))]}}))}))});var f=a&&s&&Ut((function(){var e=false;var t=new n(De.origin,{body:new It,method:"POST",get duplex(){e=true;return"half"}}).headers.has("Content-Type");return e&&!t}));var l=u&&s&&Ut((function(){return fe.isReadableStream(new i("").body)}));var d={stream:l&&function(e){return e.body}};o&&function(){["text","arrayBuffer","blob","formData","stream"].forEach((function(e){!d[e]&&(d[e]=function(t,r){var n=t&&t[e];if(n){return n.call(t)}throw new de("Response type '".concat(e,"' is not supported"),de.ERR_NOT_SUPPORT,r)})}))}();var v=function(t){return __awaiter(e,void 0,void 0,(function(){var e;return __generator(this,(function(r){switch(r.label){case 0:if(t==null){return[2,0]}if(fe.isBlob(t)){return[2,t.size]}if(!fe.isSpecCompliantForm(t))return[3,2];e=new n(De.origin,{method:"POST",body:t});return[4,e.arrayBuffer()];case 1:return[2,r.sent().byteLength];case 2:if(fe.isArrayBufferView(t)||fe.isArrayBuffer(t)){return[2,t.byteLength]}if(fe.isURLSearchParams(t)){t=t+""}if(!fe.isString(t))return[3,4];return[4,c(t)];case 3:return[2,r.sent().byteLength];case 4:return[2]}}))}))};var h=function(t,r){return __awaiter(e,void 0,void 0,(function(){var e;return __generator(this,(function(n){e=fe.toFiniteNumber(t.getContentLength());return[2,e==null?v(r):e]}))}))};return function(t){return __awaiter(e,void 0,void 0,(function(){var e,o,u,s,c,v,p,m,b,w,y,g,x,_,k,O,E,R,S,A,j,T,C,F,P,N,I,B,U,D,M,q,F,L,z,H;return __generator(this,(function(V){switch(V.label){case 0:e=_t(t),o=e.url,u=e.method,s=e.data,c=e.signal,v=e.cancelToken,p=e.timeout,m=e.onDownloadProgress,b=e.onUploadProgress,w=e.responseType,y=e.headers,g=e.withCredentials,x=g===void 0?"same-origin":g,_=e.fetchOptions;k=r||fetch;w=w?(w+"").toLowerCase():"text";O=Rt([c,v&&v.toAbortSignal()],p);E=null;R=O&&O.unsubscribe&&function(){O.unsubscribe()};V.label=1;case 1:V.trys.push([1,7,,8]);A=b&&f&&u!=="get"&&u!=="head";if(!A)return[3,3];return[4,h(y,s)];case 2:A=(S=V.sent())!==0;V.label=3;case 3:if(A){j=new n(o,{method:"POST",body:s,duplex:"half"});T=void 0;if(fe.isFormData(s)&&(T=j.headers.get("content-type"))){y.setContentType(T)}if(j.body){C=vt(S,dt(ht(b))),F=C[0],P=C[1];s=Tt(j.body,Ct,F,P)}}if(!fe.isString(x)){x=x?"include":"omit"}N=a&&"credentials"in n.prototype;I=__assign(__assign({},_),{signal:O,method:u.toUpperCase(),headers:y.normalize().toJSON(),body:s,duplex:"half",credentials:N?x:undefined});E=a&&new n(o,I);return[4,a?k(E,_):k(o,I)];case 4:B=V.sent();U=l&&(w==="stream"||w==="response");if(l&&(m||U&&R)){D={};["status","statusText","headers"].forEach((function(e){D[e]=B[e]}));M=fe.toFiniteNumber(B.headers.get("content-length"));q=m&&vt(M,dt(ht(m),true))||[],F=q[0],L=q[1];B=new i(Tt(B.body,Ct,F,(function(){L&&L();R&&R()})),D)}w=w||"text";return[4,d[fe.findKey(d,w)||"text"](B,t)];case 5:z=V.sent();!U&&R&&R();return[4,new Promise((function(e,r){st(e,r,{data:z,headers:nt.from(B.headers),status:B.status,statusText:B.statusText,config:t,request:E})}))];case 6:return[2,V.sent()];case 7:H=V.sent();R&&R();if(H&&H.name==="TypeError"&&/Load failed|fetch/i.test(H.message)){throw Object.assign(new de("Network Error",de.ERR_NETWORK,t,E,H&&H.response),{cause:H.cause||H})}throw de.from(H,H&&H.code,t,E,H&&H.response);case 8:return[2]}}))}))}};var Mt=new Map;var qt=function(e){var t=e&&e.env||{};var r=t.fetch,n=t.Request,i=t.Response;var o=[n,i,r];var a=o.length,u=a,s,c,f=Mt;while(u--){s=o[u];c=f.get(s);c===undefined&&f.set(s,c=u?new Map:Dt(t));f=c}return c};qt();var Lt={http:ve,xhr:Ot,fetch:{get:qt}};fe.forEach(Lt,(function(e,t){if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));var zt=function(e){return"- ".concat(e)};var Ht=function(e){return fe.isFunction(e)||e===null||e===false};function Vt(e,t){e=fe.isArray(e)?e:[e];var r=e.length;var n;var i;var o={};for(var a=0;a<r;a++){n=e[a];var u=void 0;i=n;if(!Ht(n)){i=Lt[(u=String(n)).toLowerCase()];if(i===undefined){throw new de("Unknown adapter '".concat(u,"'"))}}if(i&&(fe.isFunction(i)||(i=i.get(t)))){break}o[u||"#"+a]=i}if(!i){var s=Object.entries(o).map((function(e){var t=e[0],r=e[1];return"adapter ".concat(t," ")+(r===false?"is not supported by the environment":"is not available in the build")}));var c=r?s.length>1?"since :\n"+s.map(zt).join("\n"):" "+zt(s[0]):"as no adapter specified";throw new de("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return i}var Kt={getAdapter:Vt,adapters:Lt};function Gt(e){if(e.cancelToken){e.cancelToken.throwIfRequested()}if(e.signal&&e.signal.aborted){throw new ut(null,e)}}function Jt(e){Gt(e);e.headers=nt.from(e.headers);e.data=it.call(e,e.transformRequest);if(["post","put","patch"].indexOf(e.method)!==-1){e.headers.setContentType("application/x-www-form-urlencoded",false)}var t=Kt.getAdapter(e.adapter||Ke.adapter,e);return t(e).then((function t(r){Gt(e);r.data=it.call(e,e.transformResponse,r);r.headers=nt.from(r.headers);return r}),(function t(r){if(!ot(r)){Gt(e);if(r&&r.response){r.response.data=it.call(e,e.transformResponse,r.response);r.response.headers=nt.from(r.response.headers)}}return Promise.reject(r)}))}var Xt="1.13.5";var Wt={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){Wt[e]=function r(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var $t={};Wt.transitional=function e(t,r,n){function i(e,t){return"[Axios v"+Xt+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(e,n,o){if(t===false){throw new de(i(n," has been removed"+(r?" in "+r:"")),de.ERR_DEPRECATED)}if(r&&!$t[n]){$t[n]=true;console.warn(i(n," has been deprecated since v"+r+" and will be removed in the near future"))}return t?t(e,n,o):true}};Wt.spelling=function e(t){return function(e,r){console.warn("".concat(r," is likely a misspelling of ").concat(t));return true}};function Yt(e,t,r){if(typeof e!=="object"){throw new de("options must be an object",de.ERR_BAD_OPTION_VALUE)}var n=Object.keys(e);var i=n.length;while(i-- >0){var o=n[i];var a=t[o];if(a){var u=e[o];var s=u===undefined||a(u,o,e);if(s!==true){throw new de("option "+o+" must be "+s,de.ERR_BAD_OPTION_VALUE)}continue}if(r!==true){throw new de("Unknown option "+o,de.ERR_BAD_OPTION)}}}var Zt={assertOptions:Yt,validators:Wt};var Qt=Zt.validators;var er=function(){function e(e){this.defaults=e||{};this.interceptors={request:new Re,response:new Re}}e.prototype.request=function(e,t){return __awaiter(this,void 0,void 0,(function(){var r,n,i;return __generator(this,(function(o){switch(o.label){case 0:o.trys.push([0,2,,3]);return[4,this._request(e,t)];case 1:return[2,o.sent()];case 2:r=o.sent();if(r instanceof Error){n={};Error.captureStackTrace?Error.captureStackTrace(n):n=new Error;i=n.stack?n.stack.replace(/^.+\n/,""):"";try{if(!r.stack){r.stack=i}else if(i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))){r.stack+="\n"+i}}catch(e){}}throw r;case 3:return[2]}}))}))};e.prototype._request=function(e,t){if(typeof e==="string"){t=t||{};t.url=e}else{t=e||{}}t=xt(this.defaults,t);var r=t.transitional,n=t.paramsSerializer,i=t.headers;if(r!==undefined){Zt.assertOptions(r,{silentJSONParsing:Qt.transitional(Qt.boolean),forcedJSONParsing:Qt.transitional(Qt.boolean),clarifyTimeoutError:Qt.transitional(Qt.boolean),legacyInterceptorReqResOrdering:Qt.transitional(Qt.boolean)},false)}if(n!=null){if(fe.isFunction(n)){t.paramsSerializer={serialize:n}}else{Zt.assertOptions(n,{encode:Qt.function,serialize:Qt.function},true)}}if(t.allowAbsoluteUrls!==undefined);else if(this.defaults.allowAbsoluteUrls!==undefined){t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls}else{t.allowAbsoluteUrls=true}Zt.assertOptions(t,{baseUrl:Qt.spelling("baseURL"),withXsrfToken:Qt.spelling("withXSRFToken")},true);t.method=(t.method||this.defaults.method||"get").toLowerCase();var o=i&&fe.merge(i.common,i[t.method]);i&&fe.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete i[e]}));t.headers=nt.concat(o,i);var a=[];var u=true;this.interceptors.request.forEach((function e(r){if(typeof r.runWhen==="function"&&r.runWhen(t)===false){return}u=u&&r.synchronous;var n=t.transitional||Se;var i=n&&n.legacyInterceptorReqResOrdering;if(i){a.unshift(r.fulfilled,r.rejected)}else{a.push(r.fulfilled,r.rejected)}}));var s=[];this.interceptors.response.forEach((function e(t){s.push(t.fulfilled,t.rejected)}));var c;var f=0;var l;if(!u){var d=[Jt.bind(this),undefined];d.unshift.apply(d,a);d.push.apply(d,s);l=d.length;c=Promise.resolve(t);while(f<l){c=c.then(d[f++],d[f++])}return c}l=a.length;var v=t;while(f<l){var h=a[f++];var p=a[f++];try{v=h(v)}catch(e){p.call(this,e);break}}try{c=Jt.call(this,v)}catch(e){return Promise.reject(e)}f=0;l=s.length;while(f<l){c=c.then(s[f++],s[f++])}return c};e.prototype.getUri=function(e){e=xt(this.defaults,e);var t=yt(e.baseURL,e.url,e.allowAbsoluteUrls);return Oe(t,e.params,e.paramsSerializer)};return e}();fe.forEach(["delete","get","head","options"],(function e(t){er.prototype[t]=function(e,r){return this.request(xt(r||{},{method:t,url:e,data:(r||{}).data}))}}));fe.forEach(["post","put","patch"],(function e(t){function r(e){return function r(n,i,o){return this.request(xt(o||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}er.prototype[t]=r();er.prototype[t+"Form"]=r(true)}));var tr=er;var rr=function(){function e(e){if(typeof e!=="function"){throw new TypeError("executor must be a function.")}var t;this.promise=new Promise((function e(r){t=r}));var r=this;this.promise.then((function(e){if(!r._listeners)return;var t=r._listeners.length;while(t-- >0){r._listeners[t](e)}r._listeners=null}));this.promise.then=function(e){var t;var n=new Promise((function(e){r.subscribe(e);t=e})).then(e);n.cancel=function e(){r.unsubscribe(t)};return n};e((function e(n,i,o){if(r.reason){return}r.reason=new ut(n,i,o);t(r.reason)}))}e.prototype.throwIfRequested=function(){if(this.reason){throw this.reason}};e.prototype.subscribe=function(e){if(this.reason){e(this.reason);return}if(this._listeners){this._listeners.push(e)}else{this._listeners=[e]}};e.prototype.unsubscribe=function(e){if(!this._listeners){return}var t=this._listeners.indexOf(e);if(t!==-1){this._listeners.splice(t,1)}};e.prototype.toAbortSignal=function(){var e=this;var t=new AbortController;var r=function(e){t.abort(e)};this.subscribe(r);t.signal.unsubscribe=function(){return e.unsubscribe(r)};return t.signal};e.source=function(){var t;var r=new e((function e(r){t=r}));return{token:r,cancel:t}};return e}();var nr=rr;function ir(e){return function t(r){return e.apply(null,r)}}function or(e){return fe.isObject(e)&&e.isAxiosError===true}var ar={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(ar).forEach((function(e){var t=e[0],r=e[1];ar[r]=t}));var ur=ar;function sr(e){var r=new tr(e);var n=t(tr.prototype.request,r);fe.extend(n,tr.prototype,r,{allOwnKeys:true});fe.extend(n,r,null,{allOwnKeys:true});n.create=function t(r){return sr(xt(e,r))};return n}var cr=sr(Ke);cr.Axios=tr;cr.CanceledError=ut;cr.CancelToken=nr;cr.isCancel=ot;cr.VERSION=Xt;cr.toFormData=ye;cr.AxiosError=de;cr.Cancel=cr.CanceledError;cr.all=function e(t){return Promise.all(t)};cr.spread=ir;cr.isAxiosError=or;cr.mergeConfig=xt;cr.AxiosHeaders=nt;cr.formToJSON=function(e){return ze(fe.isHTMLForm(e)?new FormData(e):e)};cr.getAdapter=Kt.getAdapter;cr.HttpStatusCode=ur;cr.default=cr;axios_1=cr;return axios_1}var axiosExports=requireAxios();var axios=getDefaultExportFromCjs(axiosExports);var API_KEY=BETA_ORIGINS.includes(window.location.origin)?"default:development.6348f953f52485d19daf03992f2123a36e9eae59c5ca7f8736dc2b67":"default:production.4808a77b2a149e1796391b480b4fb501d73aa1e11123f60e07809ced";var getFeatureFlags=function(){return axios.get("https://unleash.verdocs.com/api/frontend",{headers:{Accept:"application/json",Authorization:API_KEY}}).then((function(e){return e.data})).catch((function(e){console.log("Unleash: Unable to fetch feature flags",e);throw e}))};var verdocsContactPickerCss='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-contact-picker{display:block;border:1px solid #ebebeb;background-color:#ffffff;font-family:var(--verdocs-primary-font, "Inter", "Barlow", sans-serif);-webkit-box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1);box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1)}verdocs-contact-picker form{gap:12px;width:300px;padding:12px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;background-color:#f5f5fa}verdocs-contact-picker form .row{gap:8px;display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:start;align-items:flex-start}verdocs-contact-picker form .row .option{gap:4px;display:-ms-flexbox;display:flex;padding:5px 8px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;text-wrap:nowrap}verdocs-contact-picker form .names-row{gap:8px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker form .names-row>input{font-size:14px;width:88px}verdocs-contact-picker form .pin-code{gap:8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker form .pin-code>input{-ms-flex:0 0 197px;flex:0 0 197px;font-size:14px}verdocs-contact-picker form .address{gap:8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker form .address>input{-ms-flex:1;flex:1;font-size:14px}verdocs-contact-picker form .zip-code{gap:8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker form .zip-code>input{-ms-flex:1;flex:1;font-size:14px}verdocs-contact-picker form label{display:-ms-flexbox;display:flex;-ms-flex:0 0 80px;flex:0 0 80px;font-size:13px;font-weight:500;color:#5c6575}verdocs-contact-picker form .row.message textarea{width:100%;padding:5px 7px;border-radius:4px;font-family:var(--verdocs-primary-font, "Inter", "Barlow", sans-serif)}verdocs-contact-picker form input{-ms-flex:1;flex:1;padding:6px;font-size:14px;border-radius:3px;border:1px solid rgba(112, 122, 229, 0.3725490196)}verdocs-contact-picker form input:focus{outline:none}verdocs-contact-picker .buttons{display:-ms-flexbox;display:flex;-webkit-column-gap:6px;-moz-column-gap:6px;column-gap:6px;margin-top:16px;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker .buttons .flex-fill{-ms-flex:1;flex:1}verdocs-contact-picker ::-webkit-input-placeholder{color:#aaaaaa}verdocs-contact-picker ::-moz-placeholder{color:#aaaaaa}verdocs-contact-picker :-ms-input-placeholder{color:#aaaaaa}verdocs-contact-picker ::-ms-input-placeholder{color:#aaaaaa}verdocs-contact-picker ::placeholder{color:#aaaaaa}verdocs-contact-picker [data-lastpass-icon-root]{display:none !important}#verdocs-contact-picker-suggestions .dropdown{max-height:225px;overflow-y:scroll;background:#ffffff;font-family:var(--verdocs-primary-font, "Inter", "Barlow", sans-serif);-webkit-box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1);box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1)}#verdocs-contact-picker-suggestions .dropdown .suggestion{display:-ms-flexbox;display:flex;padding:6px 12px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}#verdocs-contact-picker-suggestions .dropdown .suggestion svg{width:32px;height:32px}#verdocs-contact-picker-suggestions .dropdown .suggestion .avatar{width:32px;height:32px;-ms-flex:0 0 32px;flex:0 0 32px;margin-right:8px;border-radius:100%}#verdocs-contact-picker-suggestions .dropdown .suggestion .details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}#verdocs-contact-picker-suggestions .dropdown .suggestion .name{font-size:16px;font-weight:500;margin-bottom:3px;color:#092c4c}#verdocs-contact-picker-suggestions .dropdown .suggestion .destination{font-size:14px;margin-bottom:3px;color:#33364b}#verdocs-contact-picker-suggestions .dropdown .suggestion:hover{background:#eee;cursor:pointer}';var addrBookIcon='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-book-user"><path d="M15 13a3 3 0 1 0-6 0"/><path d="M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"/><circle cx="12" cy="8" r="2"/></svg>';var VerdocsContactPicker=function(){function e(e){registerInstance(this,e);this.searchContacts=createEvent(this,"searchContacts");this.exit=createEvent(this,"exit");this.next=createEvent(this,"next");this.endpoint=VerdocsEndpoint.getDefault();this.templateRole=null;this.contactSuggestions=[];this.showSuggestions=false;this.showMessage=false;this.delegator=false;this.auth_methods=[];this.passcode="";this.firstNameFieldId="verdocs-contact-picker-firstname-".concat(Math.random().toString(36).substring(2,11));this.lastNameFieldId="verdocs-contact-picker-lastname-".concat(Math.random().toString(36).substring(2,11));this.emailFieldId="verdocs-contact-picker-email-".concat(Math.random().toString(36).substring(2,11));this.phoneFieldId="verdocs-contact-picker-phone-".concat(Math.random().toString(36).substring(2,11));this.featureFlags=null;this.activeEntitlements={}}e.prototype.componentWillLoad=function(){var e=this;this.endpoint.loadSession();if(this.templateRole){var t=formatFullName(this.templateRole);var r=t.split(" ");var n=this.templateRole.first_name||r.shift()||"";var i=this.templateRole.last_name||r.join(" ")||"";this.first_name=n;this.last_name=i;this.email=this.templateRole.email||"";this.phone=this.templateRole.phone||"";this.delegator=this.templateRole.delegator||false;this.message=this.templateRole.message||"";this.showMessage=this.message!=="";this.auth_methods=this.templateRole.auth_methods||[];this.passcode=this.templateRole.passcode||""}getActiveEntitlements(this.endpoint).then((function(t){e.activeEntitlements=t;console.log("[CONTACT PICKER] Loaded entitlements",t)})).catch((function(e){return console.log("[CONTACT PICKER] Error loading entitlements, some features may be disabled.",e)}));getFeatureFlags().then((function(t){e.featureFlags=t;console.log("[CONTACT PICKER] Loaded feature flags",t)})).catch((function(e){console.log("[CONTACT PICKER] Unable to fetch feature flags, some features may be disabled.",e)}))};e.prototype.handleFirstNameChange=function(e){var t;this.first_name=e.target.value;(t=this.searchContacts)===null||t===void 0?void 0:t.emit({query:this.first_name})};e.prototype.handleLastNameChange=function(e){var t;this.last_name=e.target.value;(t=this.searchContacts)===null||t===void 0?void 0:t.emit({query:this.last_name})};e.prototype.handleCancel=function(e){var t;e.stopPropagation();this.showSuggestions=false;(t=this.exit)===null||t===void 0?void 0:t.emit()};e.prototype.handleSubmit=function(e){var t;e.stopPropagation();this.showSuggestions=false;(t=this.next)===null||t===void 0?void 0:t.emit({first_name:this.first_name,last_name:this.last_name,email:this.email,phone:this.phone,message:this.message,delegator:this.delegator,auth_methods:this.auth_methods,passcode:this.passcode,address:this.address,zip:this.zip})};e.prototype.handleSelectSuggestion=function(e,t){e.stopPropagation();this.first_name=t.first_name;this.last_name=t.last_name;this.email=t.email;this.phone=t.phone;this.showSuggestions=false};e.prototype.render=function(){var e=this;var t,r,n,i,o,a,u,s,c,f,l,d,v,p,m,b,w,y;var g=this.first_name&&this.last_name&&isValidEmail(this.email);var x=!this.auth_methods.length||this.auth_methods.includes("passcode")&&!!this.passcode||this.auth_methods.includes("kba")&&!!this.first_name&&!!this.last_name||this.auth_methods.includes("email")&&!!this.email||this.auth_methods.includes("sms")&&!!this.phone;var _=g&&x;var k=((n=(r=(t=this.featureFlags)===null||t===void 0?void 0:t.toggles)===null||r===void 0?void 0:r.find((function(e){return e.name==="sms"})))===null||n===void 0?void 0:n.enabled)===true;var O=[];if(((a=(o=(i=this.featureFlags)===null||i===void 0?void 0:i.toggles)===null||o===void 0?void 0:o.find((function(e){return e.name==="passcode-verification"})))===null||a===void 0?void 0:a.enabled)===true){O.push({label:"Passcode",value:"passcode"})}if(((c=(s=(u=this.featureFlags)===null||u===void 0?void 0:u.toggles)===null||s===void 0?void 0:s.find((function(e){return e.name==="email-verification"})))===null||c===void 0?void 0:c.enabled)===true){O.push({label:"Email",value:"email"})}if(k&&((d=(l=(f=this.featureFlags)===null||f===void 0?void 0:f.toggles)===null||l===void 0?void 0:l.find((function(e){return e.name==="sms-verification"})))===null||d===void 0?void 0:d.enabled)===true&&!!this.activeEntitlements.sms_auth){O.push({label:"SMS (One-Time Code)",value:"sms"})}if(((m=(p=(v=this.featureFlags)===null||v===void 0?void 0:v.toggles)===null||p===void 0?void 0:p.find((function(e){return e.name==="kba-verification"})))===null||m===void 0?void 0:m.enabled)===true&&!!this.activeEntitlements.kba_auth){O.push({label:"Knowledge-Based (KBA)",value:"kba"})}if(((y=(w=(b=this.featureFlags)===null||b===void 0?void 0:b.toggles)===null||w===void 0?void 0:w.find((function(e){return e.name==="id-verification"})))===null||y===void 0?void 0:y.enabled)===true&&!!this.activeEntitlements.id_auth){O.push({label:"ID Check",value:"id"})}return h("form",{key:"5b4d4de3ad06d4cb458b92ca6159fadcbb38a89e",onSubmit:function(e){return e.preventDefault()},autocomplete:"off"},h("div",{key:"065bd43ea84a5431f4cb370491147377d0b4ed87",class:"row"},h("label",{key:"48e3ab3a13607b42018e400703910d08f053d7c0",htmlFor:this.firstNameFieldId},"Name:"),h("div",{key:"c1acb5b9cfd0cdbd17edce151e66035826ae3e15",class:"names-row"},h("input",{key:"bfd3f91624725b717df1b27d000924503e0cb0b8",id:this.firstNameFieldId,name:this.firstNameFieldId,type:"text","data-lpignore":"true",autocomplete:"blocked","aria-autocomplete":"none",value:this.first_name,placeholder:"First...",onFocus:function(){setTimeout((function(){var t;e.showSuggestions=((t=e.contactSuggestions)===null||t===void 0?void 0:t.length)>0}),100)},onInput:function(t){return e.handleFirstNameChange(t)}}),h("input",{key:"30ae8e6b5c52c45bad07572a9357c575fd248df1",id:this.lastNameFieldId,name:this.lastNameFieldId,type:"text","data-lpignore":"true",autocomplete:"blocked","aria-autocomplete":"none",value:this.last_name,placeholder:"Last...",onFocus:function(){setTimeout((function(){var t;e.showSuggestions=((t=e.contactSuggestions)===null||t===void 0?void 0:t.length)>0}),100)},onInput:function(t){return e.handleLastNameChange(t)}})),this.showSuggestions&&h("verdocs-portal",{key:"6a03422c1dbe45c1e8a389af0f884f2f4b525aca",anchor:this.firstNameFieldId,onClickAway:function(){e.showSuggestions=false;document.querySelectorAll(".verdocs-portal-wrapper").forEach((function(e){return e.remove()}))},id:"verdocs-contact-picker-suggestions"},h("div",{key:"a9907d3c7b291fde2e86a3a0dd2bfb0f2c1d06b3",class:"dropdown"},this.contactSuggestions.filter((function(t){return!e.first_name||t.first_name.toLowerCase().includes(e.first_name.toLowerCase())})).map((function(t){var r;return h("div",{key:(r=t.id)!==null&&r!==void 0?r:t.email,class:"suggestion",onClick:function(r){return e.handleSelectSuggestion(r,t)}},t.picture?h("img",{alt:"Avatar",class:"avatar",src:t.picture}):h("div",{class:"avatar",innerHTML:addrBookIcon}),h("div",{class:"details"},h("div",{class:"name"},formatFullName(t)),t.email&&h("div",{class:"destination"},t.email),t.phone&&h("div",{class:"destination"},t.phone)))}))))),h("div",{key:"220b7dc0f04eb27279e003aaa196aee58b51ec64",class:"row"},h("label",{key:"7120d789f96a375a3f6237b93a3699866dae5e0e",htmlFor:this.emailFieldId},"Email:"),h("input",{key:"33aa0973927dedcc1d3005411dcdb87c969a65c2",id:this.emailFieldId,name:this.emailFieldId,type:"text","data-lpignore":"true",autoComplete:"blocked","aria-autocomplete":"none",value:this.email,placeholder:"Invite/verify via email...",onFocus:function(){return e.showSuggestions=false},onInput:function(t){return e.email=t.target.value}})),k&&h("div",{key:"8b888dd8490d99235bd1d1b2e6acce6d64fbf5a4",class:"row"},h("label",{key:"702e60156cfbe39cc56c20ca5f9e5b112eb8fbb5",htmlFor:this.phoneFieldId},"Phone:"),h("input",{key:"1f6b416d622b821e63e89bdf75626bc9f97422df",id:this.phoneFieldId,name:this.phoneFieldId,type:"text","data-lpignore":"true",autoComplete:"blocked","aria-autocomplete":"none",value:this.phone,placeholder:"Invite/verify via SMS...",onFocus:function(){return e.showSuggestions=false},onInput:function(t){e.phone=convertToE164(t.target.value)}})),h(Fragment,{key:"60d3ccc50417d1fbe6a815d6edf37619f945b63e"},O.length>0&&h("div",{key:"f1248b2c40c1cfb22cfa577bc1f5c5895362ded2",class:"row pin-code"},h("label",{key:"d782f794fa6a8d2ca18835db9e8d6e510038f212"},"Verification Methods:"),h("div",{key:"51370acfa10be18fa7783ee28849caaf9ad11fcb"},O.map((function(t,r){return h("div",{class:"option"},h("verdocs-checkbox",{size:"small",id:"verdocs-multi-select-opt-".concat(r),value:t.value,checked:e.auth_methods.includes(t.value),onInput:function(r){if(r.target.checked){e.auth_methods=__spreadArray(__spreadArray([],e.auth_methods,true),[t.value],false)}else{e.auth_methods=e.auth_methods.filter((function(e){return e!==t.value}))}}}),h("label",{htmlFor:"verdocs-multi-select-option-".concat(r)},t.label))})))),this.auth_methods.includes("passcode")&&h("div",{key:"37cc47ae07fcee96a90ca0684307b2fa12436fbd",class:"row pin-code"},h("label",{key:"57b9975fcdf609ebcfd709f2cc646f74163eda15",htmlFor:this.phoneFieldId},"Passcode:"),h("input",{key:"5c9f4d7f4757512fa7c87e91adf731fe256050da",id:"verdocs-passcode",name:"verdocs-passcode",type:"text","data-lpignore":"true",autocomplete:"blocked","aria-autocomplete":"none",value:this.passcode,placeholder:"4-8 digits recommended...",onFocus:function(){return e.showSuggestions=false},onInput:function(t){return e.passcode=t.target.value}}))),h("div",{key:"7bed0f7befff14122e821680fce895d64889212c",class:"row pin-code"},h("label",{key:"295f03231ca15e2a25895d8f6dca7b7507fc58fa"},"Delegation:"),h("div",{key:"21d03961df0853b3f1e4a4b3e9445e8a3ecf80ee"},h("div",{key:"1e70e144d4e678e9697039468549ef38606dc3b7",class:"option"},h("verdocs-checkbox",{key:"8f94ea2d0b3f1bc8831c8666d379ebc2a22fbb95",size:"small",id:"verdocs-delegator",checked:this.delegator,onInput:function(t){e.delegator=t.target.checked}}),h("label",{key:"9ea3f9f359f7045aebd80367af0a7431d1e850e4",htmlFor:"verdocs-delegator"},"May delegate signing")))),h("div",{key:"90e07660115c7f41ade3aad5fe4eb93d7d8cb4fd",class:"row message"},h("label",{key:"0268f3ecd123de3c8d0e27b345253385157bfce6",htmlFor:"verdocs-contact-picker-message"},"Message:"),h("textarea",{key:"526671a3e768cc6280e82d04fe4f86d0fd5678bd",id:"verdocs-contact-picker-message",name:"verdocs-contact-picker-message","data-lpignore":"true",autocomplete:"blocked",placeholder:"Optional message to include in invitation...",onFocus:function(){return e.showSuggestions=false},onInput:function(t){return e.message=t.target.value}},this.message)),h("div",{key:"9bfb44085c94a08a9d2957d031e263d398ab170b",class:"buttons"},h("div",{key:"2b21510d850071094dd7005c26de4e8cd14c992d",class:"flex-fill"}),h("verdocs-button",{key:"881527d8167c31490622f3e9f0252cfdd3139d58",variant:"outline",label:"Cancel",size:"small",onClick:function(t){return e.handleCancel(t)}}),h("verdocs-button",{key:"3dbc5efa49eb696eedb2d50c06837b70abea5e80",label:"OK",size:"small",disabled:!_,onClick:!_?function(){}:function(t){return e.handleSubmit(t)}})))};return e}();VerdocsContactPicker.style=verdocsContactPickerCss;export{VerdocsContactPicker as verdocs_contact_picker};
3
3
  //# sourceMappingURL=verdocs-contact-picker.entry.js.map