skyflow-js 1.37.1 → 1.38.0

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.
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see index.js.LICENSE.txt */
2
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Skyflow",[],t):"object"==typeof exports?exports.Skyflow=t():e.Skyflow=t()}(this,(()=>(()=>{var e={9684:e=>{"use strict";e.exports=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}},9282:(e,t,n)=>{"use strict";var r=n(4155),o=n(5108);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,a=function(e,t){if("object"!==i(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===i(a)?a:String(a)),r)}var o,a}function c(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var l,s,p=n(2136).codes,u=p.ERR_AMBIGUOUS_ARGUMENT,E=p.ERR_INVALID_ARG_TYPE,d=p.ERR_INVALID_ARG_VALUE,f=p.ERR_INVALID_RETURN_VALUE,_=p.ERR_MISSING_ARGS,I=n(5961),m=n(9539).inspect,v=n(9539).types,y=v.isPromise,T=v.isRegExp,O=n(8162)(),N=n(5624)(),L=n(1924)("RegExp.prototype.test");new Map;function g(){var e=n(9158);l=e.isDeepEqual,s=e.isDeepStrictEqual}var h=!1,A=e.exports=S,R={};function b(e){if(e.message instanceof Error)throw e.message;throw new I(e)}function w(e,t,n,r){if(!n){var o=!1;if(0===t)o=!0,r="No value argument passed to `assert.ok()`";else if(r instanceof Error)throw r;var i=new I({actual:n,expected:!0,message:r,operator:"==",stackStartFn:e});throw i.generatedMessage=o,i}}function S(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];w.apply(void 0,[S,t.length].concat(t))}A.fail=function e(t,n,i,a,c){var l,s=arguments.length;if(0===s)l="Failed";else if(1===s)i=t,t=void 0;else{if(!1===h)h=!0,(r.emitWarning?r.emitWarning:o.warn.bind(o))("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094");2===s&&(a="!=")}if(i instanceof Error)throw i;var p={actual:t,expected:n,operator:void 0===a?"fail":a,stackStartFn:c||e};void 0!==i&&(p.message=i);var u=new I(p);throw l&&(u.message=l,u.generatedMessage=!0),u},A.AssertionError=I,A.ok=S,A.equal=function e(t,n,r){if(arguments.length<2)throw new _("actual","expected");t!=n&&b({actual:t,expected:n,message:r,operator:"==",stackStartFn:e})},A.notEqual=function e(t,n,r){if(arguments.length<2)throw new _("actual","expected");t==n&&b({actual:t,expected:n,message:r,operator:"!=",stackStartFn:e})},A.deepEqual=function e(t,n,r){if(arguments.length<2)throw new _("actual","expected");void 0===l&&g(),l(t,n)||b({actual:t,expected:n,message:r,operator:"deepEqual",stackStartFn:e})},A.notDeepEqual=function e(t,n,r){if(arguments.length<2)throw new _("actual","expected");void 0===l&&g(),l(t,n)&&b({actual:t,expected:n,message:r,operator:"notDeepEqual",stackStartFn:e})},A.deepStrictEqual=function e(t,n,r){if(arguments.length<2)throw new _("actual","expected");void 0===l&&g(),s(t,n)||b({actual:t,expected:n,message:r,operator:"deepStrictEqual",stackStartFn:e})},A.notDeepStrictEqual=function e(t,n,r){if(arguments.length<2)throw new _("actual","expected");void 0===l&&g();s(t,n)&&b({actual:t,expected:n,message:r,operator:"notDeepStrictEqual",stackStartFn:e})},A.strictEqual=function e(t,n,r){if(arguments.length<2)throw new _("actual","expected");N(t,n)||b({actual:t,expected:n,message:r,operator:"strictEqual",stackStartFn:e})},A.notStrictEqual=function e(t,n,r){if(arguments.length<2)throw new _("actual","expected");N(t,n)&&b({actual:t,expected:n,message:r,operator:"notStrictEqual",stackStartFn:e})};var D=c((function e(t,n,r){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n.forEach((function(e){e in t&&(void 0!==r&&"string"==typeof r[e]&&T(t[e])&&L(t[e],r[e])?o[e]=r[e]:o[e]=t[e])}))}));function x(e,t,n,r){if("function"!=typeof t){if(T(t))return L(t,e);if(2===arguments.length)throw new E("expected",["Function","RegExp"],t);if("object"!==i(e)||null===e){var o=new I({actual:e,expected:t,message:n,operator:"deepStrictEqual",stackStartFn:r});throw o.operator=r.name,o}var a=Object.keys(t);if(t instanceof Error)a.push("name","message");else if(0===a.length)throw new d("error",t,"may not be an empty object");return void 0===l&&g(),a.forEach((function(o){"string"==typeof e[o]&&T(t[o])&&L(t[o],e[o])||function(e,t,n,r,o,i){if(!(n in e)||!s(e[n],t[n])){if(!r){var a=new D(e,o),c=new D(t,o,e),l=new I({actual:a,expected:c,operator:"deepStrictEqual",stackStartFn:i});throw l.actual=e,l.expected=t,l.operator=i.name,l}b({actual:e,expected:t,message:r,operator:i.name,stackStartFn:i})}}(e,t,o,n,a,r)})),!0}return void 0!==t.prototype&&e instanceof t||!Error.isPrototypeOf(t)&&!0===t.call({},e)}function M(e){if("function"!=typeof e)throw new E("fn","Function",e);try{e()}catch(e){return e}return R}function P(e){return y(e)||null!==e&&"object"===i(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function C(e){return Promise.resolve().then((function(){var t;if("function"==typeof e){if(!P(t=e()))throw new f("instance of Promise","promiseFn",t)}else{if(!P(e))throw new E("promiseFn",["Function","Promise"],e);t=e}return Promise.resolve().then((function(){return t})).then((function(){return R})).catch((function(e){return e}))}))}function j(e,t,n,r){if("string"==typeof n){if(4===arguments.length)throw new E("error",["Object","Error","Function","RegExp"],n);if("object"===i(t)&&null!==t){if(t.message===n)throw new u("error/message",'The error message "'.concat(t.message,'" is identical to the message.'))}else if(t===n)throw new u("error/message",'The error "'.concat(t,'" is identical to the message.'));r=n,n=void 0}else if(null!=n&&"object"!==i(n)&&"function"!=typeof n)throw new E("error",["Object","Error","Function","RegExp"],n);if(t===R){var o="";n&&n.name&&(o+=" (".concat(n.name,")")),o+=r?": ".concat(r):".";var a="rejects"===e.name?"rejection":"exception";b({actual:void 0,expected:n,operator:e.name,message:"Missing expected ".concat(a).concat(o),stackStartFn:e})}if(n&&!x(t,n,r,e))throw t}function U(e,t,n,r){if(t!==R){if("string"==typeof n&&(r=n,n=void 0),!n||x(t,n)){var o=r?": ".concat(r):".",i="doesNotReject"===e.name?"rejection":"exception";b({actual:t,expected:n,operator:e.name,message:"Got unwanted ".concat(i).concat(o,"\n")+'Actual message: "'.concat(t&&t.message,'"'),stackStartFn:e})}throw t}}function k(e,t,n,r,o){if(!T(t))throw new E("regexp","RegExp",t);var a="match"===o;if("string"!=typeof e||L(t,e)!==a){if(n instanceof Error)throw n;var c=!n;n=n||("string"!=typeof e?'The "string" argument must be of type string. Received type '+"".concat(i(e)," (").concat(m(e),")"):(a?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(m(t),". Input:\n\n").concat(m(e),"\n"));var l=new I({actual:e,expected:t,message:n,operator:o,stackStartFn:r});throw l.generatedMessage=c,l}}function V(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];w.apply(void 0,[V,t.length].concat(t))}A.throws=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];j.apply(void 0,[e,M(t)].concat(r))},A.rejects=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return C(t).then((function(t){return j.apply(void 0,[e,t].concat(r))}))},A.doesNotThrow=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];U.apply(void 0,[e,M(t)].concat(r))},A.doesNotReject=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return C(t).then((function(t){return U.apply(void 0,[e,t].concat(r))}))},A.ifError=function e(t){if(null!=t){var n="ifError got unwanted exception: ";"object"===i(t)&&"string"==typeof t.message?0===t.message.length&&t.constructor?n+=t.constructor.name:n+=t.message:n+=m(t);var r=new I({actual:t,expected:null,operator:"ifError",message:n,stackStartFn:e}),o=t.stack;if("string"==typeof o){var a=o.split("\n");a.shift();for(var c=r.stack.split("\n"),l=0;l<a.length;l++){var s=c.indexOf(a[l]);if(-1!==s){c=c.slice(0,s);break}}r.stack="".concat(c.join("\n"),"\n").concat(a.join("\n"))}throw r}},A.match=function e(t,n,r){k(t,n,r,e,"match")},A.doesNotMatch=function e(t,n,r){k(t,n,r,e,"doesNotMatch")},A.strict=O(V,A,{equal:A.strictEqual,deepEqual:A.deepStrictEqual,notEqual:A.notStrictEqual,notDeepEqual:A.notDeepStrictEqual}),A.strict.strict=A.strict},5961:(e,t,n)=>{"use strict";var r=n(4155);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t,n){return(t=l(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,l(r.key),r)}}function l(e){var t=function(e,t){if("object"!==I(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==I(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===I(t)?t:String(t)}function s(e,t){if(t&&("object"===I(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return p(e)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){var t="function"==typeof Map?new Map:void 0;return u=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return E(e,arguments,_(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),f(r,e)},u(e)}function E(e,t,n){return E=d()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&f(o,n.prototype),o},E.apply(null,arguments)}function d(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}function I(e){return I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},I(e)}var m=n(9539).inspect,v=n(2136).codes.ERR_INVALID_ARG_TYPE;function y(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}var T="",O="",N="",L="",g={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function h(e){var t=Object.keys(e),n=Object.create(Object.getPrototypeOf(e));return t.forEach((function(t){n[t]=e[t]})),Object.defineProperty(n,"message",{value:e.message}),n}function A(e){return m(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function R(e,t,n){var o="",i="",a=0,c="",l=!1,s=A(e),p=s.split("\n"),u=A(t).split("\n"),E=0,d="";if("strictEqual"===n&&"object"===I(e)&&"object"===I(t)&&null!==e&&null!==t&&(n="strictEqualObject"),1===p.length&&1===u.length&&p[0]!==u[0]){var f=p[0].length+u[0].length;if(f<=10){if(!("object"===I(e)&&null!==e||"object"===I(t)&&null!==t||0===e&&0===t))return"".concat(g[n],"\n\n")+"".concat(p[0]," !== ").concat(u[0],"\n")}else if("strictEqualObject"!==n){if(f<(r.stderr&&r.stderr.isTTY?r.stderr.columns:80)){for(;p[0][E]===u[0][E];)E++;E>2&&(d="\n ".concat(function(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var n=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,n-e.length)}(" ",E),"^"),E=0)}}}for(var _=p[p.length-1],m=u[u.length-1];_===m&&(E++<2?c="\n ".concat(_).concat(c):o=_,p.pop(),u.pop(),0!==p.length&&0!==u.length);)_=p[p.length-1],m=u[u.length-1];var v=Math.max(p.length,u.length);if(0===v){var h=s.split("\n");if(h.length>30)for(h[26]="".concat(T,"...").concat(L);h.length>27;)h.pop();return"".concat(g.notIdentical,"\n\n").concat(h.join("\n"),"\n")}E>3&&(c="\n".concat(T,"...").concat(L).concat(c),l=!0),""!==o&&(c="\n ".concat(o).concat(c),o="");var R=0,b=g[n]+"\n".concat(O,"+ actual").concat(L," ").concat(N,"- expected").concat(L),w=" ".concat(T,"...").concat(L," Lines skipped");for(E=0;E<v;E++){var S=E-a;if(p.length<E+1)S>1&&E>2&&(S>4?(i+="\n".concat(T,"...").concat(L),l=!0):S>3&&(i+="\n ".concat(u[E-2]),R++),i+="\n ".concat(u[E-1]),R++),a=E,o+="\n".concat(N,"-").concat(L," ").concat(u[E]),R++;else if(u.length<E+1)S>1&&E>2&&(S>4?(i+="\n".concat(T,"...").concat(L),l=!0):S>3&&(i+="\n ".concat(p[E-2]),R++),i+="\n ".concat(p[E-1]),R++),a=E,i+="\n".concat(O,"+").concat(L," ").concat(p[E]),R++;else{var D=u[E],x=p[E],M=x!==D&&(!y(x,",")||x.slice(0,-1)!==D);M&&y(D,",")&&D.slice(0,-1)===x&&(M=!1,x+=","),M?(S>1&&E>2&&(S>4?(i+="\n".concat(T,"...").concat(L),l=!0):S>3&&(i+="\n ".concat(p[E-2]),R++),i+="\n ".concat(p[E-1]),R++),a=E,i+="\n".concat(O,"+").concat(L," ").concat(x),o+="\n".concat(N,"-").concat(L," ").concat(D),R+=2):(i+=o,o="",1!==S&&0!==E||(i+="\n ".concat(x),R++))}if(R>20&&E<v-2)return"".concat(b).concat(w,"\n").concat(i,"\n").concat(T,"...").concat(L).concat(o,"\n")+"".concat(T,"...").concat(L)}return"".concat(b).concat(l?w:"","\n").concat(i).concat(o).concat(c).concat(d)}var b=function(e,t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(y,e);var n,o,a,l,u,E=(n=y,o=d(),function(){var e,t=_(n);if(o){var r=_(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return s(this,e)});function y(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y),"object"!==I(e)||null===e)throw new v("options","Object",e);var n=e.message,o=e.operator,i=e.stackStartFn,a=e.actual,c=e.expected,l=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=n)t=E.call(this,String(n));else if(r.stderr&&r.stderr.isTTY&&(r.stderr&&r.stderr.getColorDepth&&1!==r.stderr.getColorDepth()?(T="",O="",L="",N=""):(T="",O="",L="",N="")),"object"===I(a)&&null!==a&&"object"===I(c)&&null!==c&&"stack"in a&&a instanceof Error&&"stack"in c&&c instanceof Error&&(a=h(a),c=h(c)),"deepStrictEqual"===o||"strictEqual"===o)t=E.call(this,R(a,c,o));else if("notDeepStrictEqual"===o||"notStrictEqual"===o){var u=g[o],d=A(a).split("\n");if("notStrictEqual"===o&&"object"===I(a)&&null!==a&&(u=g.notStrictEqualObject),d.length>30)for(d[26]="".concat(T,"...").concat(L);d.length>27;)d.pop();t=1===d.length?E.call(this,"".concat(u," ").concat(d[0])):E.call(this,"".concat(u,"\n\n").concat(d.join("\n"),"\n"))}else{var f=A(a),_="",m=g[o];"notDeepEqual"===o||"notEqual"===o?(f="".concat(g[o],"\n\n").concat(f)).length>1024&&(f="".concat(f.slice(0,1021),"...")):(_="".concat(A(c)),f.length>512&&(f="".concat(f.slice(0,509),"...")),_.length>512&&(_="".concat(_.slice(0,509),"...")),"deepEqual"===o||"equal"===o?f="".concat(m,"\n\n").concat(f,"\n\nshould equal\n\n"):_=" ".concat(o," ").concat(_)),t=E.call(this,"".concat(f).concat(_))}return Error.stackTraceLimit=l,t.generatedMessage=!n,Object.defineProperty(p(t),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),t.code="ERR_ASSERTION",t.actual=a,t.expected=c,t.operator=o,Error.captureStackTrace&&Error.captureStackTrace(p(t),i),t.stack,t.name="AssertionError",s(t)}return a=y,(l=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:t,value:function(e,t){return m(this,i(i({},t),{},{customInspect:!1,depth:0}))}}])&&c(a.prototype,l),u&&c(a,u),Object.defineProperty(a,"prototype",{writable:!1}),y}(u(Error),m.custom);e.exports=b},2136:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(i=o.key,a=void 0,a=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i,"string"),"symbol"===r(a)?a:String(a)),o)}var i,a}function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=c(e);if(t){var i=c(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}var l,s,p={};function u(e,t,n){n||(n=Error);var r=function(n){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t)}(p,n);var r,c,l,s=a(p);function p(n,r,o){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),i=s.call(this,function(e,n,r){return"string"==typeof t?t:t(e,n,r)}(n,r,o)),i.code=e,i}return r=p,c&&o(r.prototype,c),l&&o(r,l),Object.defineProperty(r,"prototype",{writable:!1}),r}(n);p[e]=r}function E(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(e){return String(e)})),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}u("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),u("ERR_INVALID_ARG_TYPE",(function(e,t,o){var i,a,c,s;if(void 0===l&&(l=n(9282)),l("string"==typeof e,"'name' must be a string"),"string"==typeof t&&(a="not ",t.substr(!c||c<0?0:+c,a.length)===a)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))s="The ".concat(e," ").concat(i," ").concat(E(t,"type"));else{var p=function(e,t,n){return"number"!=typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}(e,".")?"property":"argument";s='The "'.concat(e,'" ').concat(p," ").concat(i," ").concat(E(t,"type"))}return s+=". Received type ".concat(r(o))}),TypeError),u("ERR_INVALID_ARG_VALUE",(function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===s&&(s=n(9539));var o=s.inspect(t);return o.length>128&&(o="".concat(o.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(r,". Received ").concat(o)}),TypeError,RangeError),u("ERR_INVALID_RETURN_VALUE",(function(e,t,n){var o;return o=n&&n.constructor&&n.constructor.name?"instance of ".concat(n.constructor.name):"type ".concat(r(n)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(o,".")}),TypeError),u("ERR_MISSING_ARGS",(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];void 0===l&&(l=n(9282)),l(t.length>0,"At least one arg needs to be specified");var o="The ",i=t.length;switch(t=t.map((function(e){return'"'.concat(e,'"')})),i){case 1:o+="".concat(t[0]," argument");break;case 2:o+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:o+=t.slice(0,i-1).join(", "),o+=", and ".concat(t[i-1]," arguments")}return"".concat(o," must be specified")}),TypeError),e.exports.codes=p},9158:(e,t,n)=>{"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var a=void 0!==/a/g.flags,c=function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t},l=function(e){var t=[];return e.forEach((function(e,n){return t.push([n,e])})),t},s=Object.is?Object.is:n(609),p=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},u=Number.isNaN?Number.isNaN:n(360);function E(e){return e.call.bind(e)}var d=E(Object.prototype.hasOwnProperty),f=E(Object.prototype.propertyIsEnumerable),_=E(Object.prototype.toString),I=n(9539).types,m=I.isAnyArrayBuffer,v=I.isArrayBufferView,y=I.isDate,T=I.isMap,O=I.isRegExp,N=I.isSet,L=I.isNativeError,g=I.isBoxedPrimitive,h=I.isNumberObject,A=I.isStringObject,R=I.isBooleanObject,b=I.isBigIntObject,w=I.isSymbolObject,S=I.isFloat32Array,D=I.isFloat64Array;function x(e){if(0===e.length||e.length>10)return!0;for(var t=0;t<e.length;t++){var n=e.charCodeAt(t);if(n<48||n>57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function M(e){return Object.keys(e).filter(x).concat(p(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function P(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0}var C=0,j=1,U=2,k=3;function V(e,t,n,r){if(e===t)return 0!==e||(!n||s(e,t));if(n){if("object"!==i(e))return"number"==typeof e&&u(e)&&u(t);if("object"!==i(t)||null===e||null===t)return!1;if(Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1}else{if(null===e||"object"!==i(e))return(null===t||"object"!==i(t))&&e==t;if(null===t||"object"!==i(t))return!1}var o,c,l,p,E=_(e);if(E!==_(t))return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;var d=M(e),f=M(t);return d.length===f.length&&F(e,t,n,r,j,d)}if("[object Object]"===E&&(!T(e)&&T(t)||!N(e)&&N(t)))return!1;if(y(e)){if(!y(t)||Date.prototype.getTime.call(e)!==Date.prototype.getTime.call(t))return!1}else if(O(e)){if(!O(t)||(l=e,p=t,!(a?l.source===p.source&&l.flags===p.flags:RegExp.prototype.toString.call(l)===RegExp.prototype.toString.call(p))))return!1}else if(L(e)||e instanceof Error){if(e.message!==t.message||e.name!==t.name)return!1}else{if(v(e)){if(n||!S(e)&&!D(e)){if(!function(e,t){return e.byteLength===t.byteLength&&0===P(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}(e,t))return!1}else if(!function(e,t){if(e.byteLength!==t.byteLength)return!1;for(var n=0;n<e.byteLength;n++)if(e[n]!==t[n])return!1;return!0}(e,t))return!1;var I=M(e),x=M(t);return I.length===x.length&&F(e,t,n,r,C,I)}if(N(e))return!(!N(t)||e.size!==t.size)&&F(e,t,n,r,U);if(T(e))return!(!T(t)||e.size!==t.size)&&F(e,t,n,r,k);if(m(e)){if(c=t,(o=e).byteLength!==c.byteLength||0!==P(new Uint8Array(o),new Uint8Array(c)))return!1}else if(g(e)&&!function(e,t){return h(e)?h(t)&&s(Number.prototype.valueOf.call(e),Number.prototype.valueOf.call(t)):A(e)?A(t)&&String.prototype.valueOf.call(e)===String.prototype.valueOf.call(t):R(e)?R(t)&&Boolean.prototype.valueOf.call(e)===Boolean.prototype.valueOf.call(t):b(e)?b(t)&&BigInt.prototype.valueOf.call(e)===BigInt.prototype.valueOf.call(t):w(t)&&Symbol.prototype.valueOf.call(e)===Symbol.prototype.valueOf.call(t)}(e,t))return!1}return F(e,t,n,r,C)}function Y(e,t){return t.filter((function(t){return f(e,t)}))}function F(e,t,n,o,a,s){if(5===arguments.length){s=Object.keys(e);var u=Object.keys(t);if(s.length!==u.length)return!1}for(var E=0;E<s.length;E++)if(!d(t,s[E]))return!1;if(n&&5===arguments.length){var _=p(e);if(0!==_.length){var I=0;for(E=0;E<_.length;E++){var m=_[E];if(f(e,m)){if(!f(t,m))return!1;s.push(m),I++}else if(f(t,m))return!1}var v=p(t);if(_.length!==v.length&&Y(t,v).length!==I)return!1}else{var y=p(t);if(0!==y.length&&0!==Y(t,y).length)return!1}}if(0===s.length&&(a===C||a===j&&0===e.length||0===e.size))return!0;if(void 0===o)o={val1:new Map,val2:new Map,position:0};else{var T=o.val1.get(e);if(void 0!==T){var O=o.val2.get(t);if(void 0!==O)return T===O}o.position++}o.val1.set(e,o.position),o.val2.set(t,o.position);var N=function(e,t,n,o,a,s){var p=0;if(s===U){if(!function(e,t,n,r){for(var o=null,a=c(e),l=0;l<a.length;l++){var s=a[l];if("object"===i(s)&&null!==s)null===o&&(o=new Set),o.add(s);else if(!t.has(s)){if(n)return!1;if(!X(e,t,s))return!1;null===o&&(o=new Set),o.add(s)}}if(null!==o){for(var p=c(t),u=0;u<p.length;u++){var E=p[u];if("object"===i(E)&&null!==E){if(!G(o,E,n,r))return!1}else if(!n&&!e.has(E)&&!G(o,E,n,r))return!1}return 0===o.size}return!0}(e,t,n,a))return!1}else if(s===k){if(!function(e,t,n,o){for(var a=null,c=l(e),s=0;s<c.length;s++){var p=r(c[s],2),u=p[0],E=p[1];if("object"===i(u)&&null!==u)null===a&&(a=new Set),a.add(u);else{var d=t.get(u);if(void 0===d&&!t.has(u)||!V(E,d,n,o)){if(n)return!1;if(!K(e,t,u,E,o))return!1;null===a&&(a=new Set),a.add(u)}}}if(null!==a){for(var f=l(t),_=0;_<f.length;_++){var I=r(f[_],2),m=I[0],v=I[1];if("object"===i(m)&&null!==m){if(!W(a,e,m,v,n,o))return!1}else if(!(n||e.has(m)&&V(e.get(m),v,!1,o)||W(a,e,m,v,!1,o)))return!1}return 0===a.size}return!0}(e,t,n,a))return!1}else if(s===j)for(;p<e.length;p++){if(!d(e,p)){if(d(t,p))return!1;for(var u=Object.keys(e);p<u.length;p++){var E=u[p];if(!d(t,E)||!V(e[E],t[E],n,a))return!1}return u.length===Object.keys(t).length}if(!d(t,p)||!V(e[p],t[p],n,a))return!1}for(p=0;p<o.length;p++){var f=o[p];if(!V(e[f],t[f],n,a))return!1}return!0}(e,t,n,s,o,a);return o.val1.delete(e),o.val2.delete(t),N}function G(e,t,n,r){for(var o=c(e),i=0;i<o.length;i++){var a=o[i];if(V(t,a,n,r))return e.delete(a),!0}return!1}function B(e){switch(i(e)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":e=+e;case"number":if(u(e))return!1}return!0}function X(e,t,n){var r=B(n);return null!=r?r:t.has(r)&&!e.has(r)}function K(e,t,n,r,o){var i=B(n);if(null!=i)return i;var a=t.get(i);return!(void 0===a&&!t.has(i)||!V(r,a,!1,o))&&(!e.has(i)&&V(r,a,!1,o))}function W(e,t,n,r,o,i){for(var a=c(e),l=0;l<a.length;l++){var s=a[l];if(V(n,s,o,i)&&V(r,t.get(s),o,i))return e.delete(s),!0}return!1}e.exports={isDeepEqual:function(e,t){return V(e,t,false)},isDeepStrictEqual:function(e,t){return V(e,t,true)}}},1924:(e,t,n)=>{"use strict";var r=n(210),o=n(5559),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?o(n):n}},5559:(e,t,n)=>{"use strict";var r=n(8612),o=n(210),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||r.call(a,i),l=o("%Object.getOwnPropertyDescriptor%",!0),s=o("%Object.defineProperty%",!0),p=o("%Math.max%");if(s)try{s({},"a",{value:1})}catch(e){s=null}e.exports=function(e){var t=c(r,a,arguments);l&&s&&(l(t,"length").configurable&&s(t,"length",{value:1+p(0,e.length-(arguments.length-1))}));return t};var u=function(){return c(r,i,arguments)};s?s(e.exports,"apply",{value:u}):e.exports.apply=u},5108:(e,t,n)=>{var r=n(9539),o=n(9282);function i(){return(new Date).getTime()}var a,c=Array.prototype.slice,l={};a=void 0!==n.g&&n.g.console?n.g.console:"undefined"!=typeof window&&window.console?window.console:{};for(var s=[[function(){},"log"],[function(){a.log.apply(a,arguments)},"info"],[function(){a.log.apply(a,arguments)},"warn"],[function(){a.warn.apply(a,arguments)},"error"],[function(e){l[e]=i()},"time"],[function(e){var t=l[e];if(!t)throw new Error("No such label: "+e);delete l[e];var n=i()-t;a.log(e+": "+n+"ms")},"timeEnd"],[function(){var e=new Error;e.name="Trace",e.message=r.format.apply(null,arguments),a.error(e.stack)},"trace"],[function(e){a.log(r.inspect(e)+"\n")},"dir"],[function(e){if(!e){var t=c.call(arguments,1);o.ok(!1,r.format.apply(null,t))}},"assert"]],p=0;p<s.length;p++){var u=s[p],E=u[0],d=u[1];a[d]||(a[d]=E)}e.exports=a},2296:(e,t,n)=>{"use strict";var r=n(1044)(),o=n(210),i=r&&o("%Object.defineProperty%",!0),a=o("%SyntaxError%"),c=o("%TypeError%"),l=n(7296);e.exports=function(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new c("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new c("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new c("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new c("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new c("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new c("`loose`, if provided, must be a boolean");var r=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,p=arguments.length>6&&arguments[6],u=!!l&&l(e,t);if(i)i(e,t,{configurable:null===s&&u?u.configurable:!s,enumerable:null===r&&u?u.enumerable:!r,value:n,writable:null===o&&u?u.writable:!o});else{if(!p&&(r||o||s))throw new a("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},4289:(e,t,n)=>{"use strict";var r=n(2215),o="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),i=Object.prototype.toString,a=Array.prototype.concat,c=n(2296),l=n(1044)(),s=function(e,t,n,r){if(t in e)if(!0===r){if(e[t]===n)return}else if("function"!=typeof(o=r)||"[object Function]"!==i.call(o)||!r())return;var o;l?c(e,t,n,!0):c(e,t,n)},p=function(e,t){var n=arguments.length>2?arguments[2]:{},i=r(t);o&&(i=a.call(i,Object.getOwnPropertySymbols(t)));for(var c=0;c<i.length;c+=1)s(e,i[c],t[i[c]],n[i[c]])};p.supportsDescriptors=!!l,e.exports=p},4029:(e,t,n)=>{"use strict";var r=n(5320),o=Object.prototype.toString,i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){if(!r(t))throw new TypeError("iterator must be a function");var a;arguments.length>=3&&(a=n),"[object Array]"===o.call(e)?function(e,t,n){for(var r=0,o=e.length;r<o;r++)i.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(e,t,a):"string"==typeof e?function(e,t,n){for(var r=0,o=e.length;r<o;r++)null==n?t(e.charAt(r),r,e):t.call(n,e.charAt(r),r,e)}(e,t,a):function(e,t,n){for(var r in e)i.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(e,t,a)}},4791:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Framebus=void 0;var r=n(2729),o=n(791),i=n(6620),a=n(3965),c=n(9889),l=function(){function e(e){void 0===e&&(e="*"),this.origin=e}return e.target=function(t){return void 0===t&&(t="*"),new e(t)},e.prototype.include=function(e){return null!=e&&(null!=e.Window&&(e.constructor===e.Window&&(c.childWindows.push(e),!0)))},e.prototype.target=function(t){return e.target(t)},e.prototype.emit=function(e,t,n){var o=this.origin;if(r.isntString(e))return!1;if(r.isntString(o))return!1;"function"==typeof t&&(n=t,t=void 0);var c=a.packagePayload(e,o,t,n);return!!c&&(i.broadcast(window.top||window.self,c,o),!0)},e.prototype.on=function(e,t){var n=this.origin;return!o.subscriptionArgsInvalid(e,t,n)&&(c.subscribers[n]=c.subscribers[n]||{},c.subscribers[n][e]=c.subscribers[n][e]||[],c.subscribers[n][e].push(t),!0)},e.prototype.off=function(e,t){var n=this.origin;if(o.subscriptionArgsInvalid(e,t,n))return!1;var r=c.subscribers[n]&&c.subscribers[n][e];if(!r)return!1;for(var i=0;i<r.length;i++)if(r[i]===t)return r.splice(i,1),!0;return!1},e}();t.Framebus=l},6135:(e,t,n)=>{"use strict";var r=n(5119),o=new(n(4791).Framebus);r.attach(),e.exports=o},5119:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.detach=t.attach=void 0;var r=n(1883),o=!1;t.attach=function(){o||"undefined"==typeof window||(o=!0,window.addEventListener("message",r.onmessage,!1))},t.detach=function(){o=!1,window.removeEventListener("message",r.onmessage,!1)}},1449:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.broadcastToChildWindows=void 0;var r=n(6620),o=n(9889);t.broadcastToChildWindows=function(e,t,n){for(var i=o.childWindows.length-1;i>=0;i--){var a=o.childWindows[i];a.closed?o.childWindows.splice(i,1):n!==a&&r.broadcast(a.top,e,t)}}},6620:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.broadcast=void 0;var r=n(9065);t.broadcast=function e(t,n,o){var i,a=0;try{for(t.postMessage(n,o),r.hasOpener(t)&&e(t.opener.top,n,o);i=t.frames[a];)e(i,n,o),a++}catch(e){}}},9889:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.subscribers=t.childWindows=t.prefix=void 0,t.prefix="/*framebus*/",t.childWindows=[],t.subscribers={}},4286:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dispatch=void 0;var r=n(9889);t.dispatch=function(e,t,n,o,i){if(r.subscribers[e]&&r.subscribers[e][t]){var a=[];n&&a.push(n),o&&a.push(o);for(var c=0;c<r.subscribers[e][t].length;c++)r.subscribers[e][t][c].apply(i,a)}}},9065:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasOpener=void 0,t.hasOpener=function(e){return e.top===e&&(null!=e.opener&&(e.opener!==e&&!0!==e.opener.closed))}},2729:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isntString=void 0,t.isntString=function(e){return"string"!=typeof e}},1883:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.onmessage=void 0;var r=n(2729),o=n(2310),i=n(4286),a=n(1449);t.onmessage=function(e){if(!r.isntString(e.data)){var t=o.unpackPayload(e);if(t){var n=t.eventData,c=t.reply;i.dispatch("*",t.event,n,c,e),i.dispatch(e.origin,t.event,n,c,e),a.broadcastToChildWindows(e.data,t.origin,e.source)}}}},3965:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packagePayload=void 0;var r=n(1085),o=n(9889);t.packagePayload=function(e,t,n,i){var a,c={event:e,origin:t};"function"==typeof i&&(c.reply=r.subscribeReplier(i,t)),c.eventData=n;try{a=o.prefix+JSON.stringify(c)}catch(e){throw new Error("Could not stringify event: "+e.message)}return a}},1085:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.subscribeReplier=void 0;var o=n(4791),i=r(n(9684));t.subscribeReplier=function(e,t){var n=i.default();return o.Framebus.target(t).on(n,(function r(i,a){e(i,a),o.Framebus.target(t).off(n,r)})),n}},791:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.subscriptionArgsInvalid=void 0;var r=n(2729);t.subscriptionArgsInvalid=function(e,t,n){return!!r.isntString(e)||("function"!=typeof t||r.isntString(n))}},2310:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unpackPayload=void 0;var r=n(9889),o=n(3965);t.unpackPayload=function(e){var t;if(e.data.slice(0,r.prefix.length)!==r.prefix)return!1;try{t=JSON.parse(e.data.slice(r.prefix.length))}catch(e){return!1}if(t.reply){var n=e.origin,i=e.source,a=t.reply;t.reply=function(e){if(i){var t=o.packagePayload(a,n,e);t&&i.postMessage(t,n)}}}return t}},7648:e=>{"use strict";var t=Array.prototype.slice,n=Object.prototype.toString;e.exports=function(e){var r=this;if("function"!=typeof r||"[object Function]"!==n.call(r))throw new TypeError("Function.prototype.bind called on incompatible "+r);for(var o,i=t.call(arguments,1),a=Math.max(0,r.length-i.length),c=[],l=0;l<a;l++)c.push("$"+l);if(o=Function("binder","return function ("+c.join(",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof o){var n=r.apply(this,i.concat(t.call(arguments)));return Object(n)===n?n:this}return r.apply(e,i.concat(t.call(arguments)))})),r.prototype){var s=function(){};s.prototype=r.prototype,o.prototype=new s,s.prototype=null}return o}},8612:(e,t,n)=>{"use strict";var r=n(7648);e.exports=Function.prototype.bind||r},210:(e,t,n)=>{"use strict";var r,o=SyntaxError,i=Function,a=TypeError,c=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(e){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(e){l=null}var s=function(){throw new a},p=l?function(){try{return s}catch(e){try{return l(arguments,"callee").get}catch(e){return s}}}():s,u=n(1405)(),E=n(8185)(),d=Object.getPrototypeOf||(E?function(e){return e.__proto__}:null),f={},_="undefined"!=typeof Uint8Array&&d?d(Uint8Array):r,I={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":u&&d?d([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":f,"%AsyncGenerator%":f,"%AsyncGeneratorFunction%":f,"%AsyncIteratorPrototype%":f,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":f,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":u&&d?d(d([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&u&&d?d((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&u&&d?d((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":u&&d?d(""[Symbol.iterator]()):r,"%Symbol%":u?Symbol:r,"%SyntaxError%":o,"%ThrowTypeError%":p,"%TypedArray%":_,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(d)try{null.error}catch(e){var m=d(d(e));I["%Error.prototype%"]=m}var v=function e(t){var n;if("%AsyncFunction%"===t)n=c("async function () {}");else if("%GeneratorFunction%"===t)n=c("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=c("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&d&&(n=d(o.prototype))}return I[t]=n,n},y={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},T=n(8612),O=n(7642),N=T.call(Function.call,Array.prototype.concat),L=T.call(Function.apply,Array.prototype.splice),g=T.call(Function.call,String.prototype.replace),h=T.call(Function.call,String.prototype.slice),A=T.call(Function.call,RegExp.prototype.exec),R=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,b=/\\(\\)?/g,w=function(e,t){var n,r=e;if(O(y,r)&&(r="%"+(n=y[r])[0]+"%"),O(I,r)){var i=I[r];if(i===f&&(i=v(r)),void 0===i&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new o("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===A(/^%?[^%]*%?$/,e))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=h(e,0,1),n=h(e,-1);if("%"===t&&"%"!==n)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new o("invalid intrinsic syntax, expected opening `%`");var r=[];return g(e,R,(function(e,t,n,o){r[r.length]=n?g(o,b,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",i=w("%"+r+"%",t),c=i.name,s=i.value,p=!1,u=i.alias;u&&(r=u[0],L(n,N([0,1],u)));for(var E=1,d=!0;E<n.length;E+=1){var f=n[E],_=h(f,0,1),m=h(f,-1);if(('"'===_||"'"===_||"`"===_||'"'===m||"'"===m||"`"===m)&&_!==m)throw new o("property names with quotes must have matching quotes");if("constructor"!==f&&d||(p=!0),O(I,c="%"+(r+="."+f)+"%"))s=I[c];else if(null!=s){if(!(f in s)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(l&&E+1>=n.length){var v=l(s,f);s=(d=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:s[f]}else d=O(s,f),s=s[f];d&&!p&&(I[c]=s)}}return s}},7296:(e,t,n)=>{"use strict";var r=n(210)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(e){r=null}e.exports=r},1044:(e,t,n)=>{"use strict";var r=n(210)("%Object.defineProperty%",!0),o=function(){if(r)try{return r({},"a",{value:1}),!0}catch(e){return!1}return!1};o.hasArrayLengthDefineBug=function(){if(!o())return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},8185:e=>{"use strict";var t={foo:{}},n=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!({__proto__:null}instanceof n)}},1405:(e,t,n)=>{"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(5419);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},5419:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},6410:(e,t,n)=>{"use strict";var r=n(5419);e.exports=function(){return r()&&!!Symbol.toStringTag}},7642:(e,t,n)=>{"use strict";var r=n(8612);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},5717:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},2584:(e,t,n)=>{"use strict";var r=n(6410)(),o=n(1924)("Object.prototype.toString"),i=function(e){return!(r&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===o(e)},a=function(e){return!!i(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==o(e)&&"[object Function]"===o(e.callee)},c=function(){return i(arguments)}();i.isLegacyArguments=a,e.exports=c?i:a},5320:e=>{"use strict";var t,n,r=Function.prototype.toString,o="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof o&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw n}}),n={},o((function(){throw 42}),null,t)}catch(e){e!==n&&(o=null)}else o=null;var i=/^\s*class\b/,a=function(e){try{var t=r.call(e);return i.test(t)}catch(e){return!1}},c=function(e){try{return!a(e)&&(r.call(e),!0)}catch(e){return!1}},l=Object.prototype.toString,s="function"==typeof Symbol&&!!Symbol.toStringTag,p=!(0 in[,]),u=function(){return!1};if("object"==typeof document){var E=document.all;l.call(E)===l.call(document.all)&&(u=function(e){if((p||!e)&&(void 0===e||"object"==typeof e))try{var t=l.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=o?function(e){if(u(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;try{o(e,null,t)}catch(e){if(e!==n)return!1}return!a(e)&&c(e)}:function(e){if(u(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(s)return c(e);if(a(e))return!1;var t=l.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&c(e)}},8662:(e,t,n)=>{"use strict";var r,o=Object.prototype.toString,i=Function.prototype.toString,a=/^\s*(?:function)?\*/,c=n(6410)(),l=Object.getPrototypeOf;e.exports=function(e){if("function"!=typeof e)return!1;if(a.test(i.call(e)))return!0;if(!c)return"[object GeneratorFunction]"===o.call(e);if(!l)return!1;if(void 0===r){var t=function(){if(!c)return!1;try{return Function("return function*() {}")()}catch(e){}}();r=!!t&&l(t)}return l(e)===r}},8611:e=>{"use strict";e.exports=function(e){return e!=e}},360:(e,t,n)=>{"use strict";var r=n(5559),o=n(4289),i=n(8611),a=n(9415),c=n(3194),l=r(a(),Number);o(l,{getPolyfill:a,implementation:i,shim:c}),e.exports=l},9415:(e,t,n)=>{"use strict";var r=n(8611);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:r}},3194:(e,t,n)=>{"use strict";var r=n(4289),o=n(9415);e.exports=function(){var e=o();return r(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},5692:(e,t,n)=>{"use strict";var r=n(6430);e.exports=function(e){return!!r(e)}},7762:e=>{e.exports=function(e,t){for(var n,r=-1,o=e.length;++r<o;){var i=t(e[r]);void 0!==i&&(n=void 0===n?i:n+i)}return n}},6557:e=>{e.exports=function(e){return e}},2297:(e,t,n)=>{var r=n(7762),o=n(6557);e.exports=function(e){return e&&e.length?r(e,o):0}},9146:e=>{"use strict";function t(){this._types=Object.create(null),this._extensions=Object.create(null);for(let e=0;e<arguments.length;e++)this.define(arguments[e]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}t.prototype.define=function(e,t){for(let n in e){let r=e[n].map((function(e){return e.toLowerCase()}));n=n.toLowerCase();for(let e=0;e<r.length;e++){const o=r[e];if("*"!==o[0]){if(!t&&o in this._types)throw new Error('Attempt to change mapping for "'+o+'" extension from "'+this._types[o]+'" to "'+n+'". Pass `force=true` to allow this, otherwise remove "'+o+'" from the list of extensions for "'+n+'".');this._types[o]=n}}if(t||!this._extensions[n]){const e=r[0];this._extensions[n]="*"!==e[0]?e:e.substr(1)}}},t.prototype.getType=function(e){let t=(e=String(e)).replace(/^.*[/\\]/,"").toLowerCase(),n=t.replace(/^.*\./,"").toLowerCase(),r=t.length<e.length;return(n.length<t.length-1||!r)&&this._types[n]||null},t.prototype.getExtension=function(e){return(e=/^\s*([^;\s]*)/.test(e)&&RegExp.$1)&&this._extensions[e.toLowerCase()]||null},e.exports=t},3893:(e,t,n)=>{"use strict";let r=n(9146);e.exports=new r(n(4415),n(3014))},3014:e=>{e.exports={"application/prs.cww":["cww"],"application/vnd.1000minds.decision-model+xml":["1km"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["xfdf"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.keynote":["key"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.numbers":["numbers"],"application/vnd.apple.pages":["pages"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.balsamiq.bmml+xml":["bmml"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.citationstyles.style+xml":["csl"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dbf":["dbf"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mapbox-vector-tile":["mvt"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["*stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["mpp","mpt"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.ac+xml":["*ac"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openblox.game+xml":["obgx"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openstreetmap.data+xml":["osm"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.rar":["rar"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.software602.filler.form+xml":["fo"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.syncml.dmddf+xml":["ddf"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":["*dmg"],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":["*bdoc"],"application/x-bittorrent":["torrent"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["*deb","udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-iso9660-image":["*iso"],"application/x-iwork-keynote-sffkey":["*key"],"application/x-iwork-numbers-sffnumbers":["*numbers"],"application/x-iwork-pages-sffpages":["*pages"],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-keepass2":["kdbx"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":["*exe"],"application/x-msdownload":["*exe","*dll","com","bat","*msi"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["*wmf","*wmz","*emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":["*prc","*pdb"],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["*rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["*obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["*xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":["*m4a"],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":["*ra"],"audio/x-wav":["*wav"],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif"],"image/prs.pti":["pti"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.airzip.accelerator.azv":["azv"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":["*sub"],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.microsoft.icon":["ico"],"image/vnd.ms-dds":["dds"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.pco.b16":["b16"],"image/vnd.tencent.tap":["tap"],"image/vnd.valve.source.texture":["vtf"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/vnd.zbrush.pcx":["pcx"],"image/x-3ds":["3ds"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["*ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":["*bmp"],"image/x-pcx":["*pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"message/vnd.wfa.wsc":["wsc"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["mts"],"model/vnd.opengex":["ogex"],"model/vnd.parasolid.transmit.binary":["x_b"],"model/vnd.parasolid.transmit.text":["x_t"],"model/vnd.sap.vds":["vds"],"model/vnd.usdz+zip":["usdz"],"model/vnd.valve.source.compiled-map":["bsp"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":["*org"],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]}},4415:e=>{e.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["es","ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avif":["avif"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}},4244:e=>{"use strict";var t=function(e){return e!=e};e.exports=function(e,n){return 0===e&&0===n?1/e==1/n:e===n||!(!t(e)||!t(n))}},609:(e,t,n)=>{"use strict";var r=n(4289),o=n(5559),i=n(4244),a=n(5624),c=n(2281),l=o(a(),Object);r(l,{getPolyfill:a,implementation:i,shim:c}),e.exports=l},5624:(e,t,n)=>{"use strict";var r=n(4244);e.exports=function(){return"function"==typeof Object.is?Object.is:r}},2281:(e,t,n)=>{"use strict";var r=n(5624),o=n(4289);e.exports=function(){var e=r();return o(Object,{is:e},{is:function(){return Object.is!==e}}),e}},8987:(e,t,n)=>{"use strict";var r;if(!Object.keys){var o=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=n(1414),c=Object.prototype.propertyIsEnumerable,l=!c.call({toString:null},"toString"),s=c.call((function(){}),"prototype"),p=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],u=function(e){var t=e.constructor;return t&&t.prototype===e},E={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},d=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!E["$"+e]&&o.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{u(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();r=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===i.call(e),r=a(e),c=t&&"[object String]"===i.call(e),E=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var f=s&&n;if(c&&e.length>0&&!o.call(e,0))for(var _=0;_<e.length;++_)E.push(String(_));if(r&&e.length>0)for(var I=0;I<e.length;++I)E.push(String(I));else for(var m in e)f&&"prototype"===m||!o.call(e,m)||E.push(String(m));if(l)for(var v=function(e){if("undefined"==typeof window||!d)return u(e);try{return u(e)}catch(e){return!1}}(e),y=0;y<p.length;++y)v&&"constructor"===p[y]||!o.call(e,p[y])||E.push(p[y]);return E}}e.exports=r},2215:(e,t,n)=>{"use strict";var r=Array.prototype.slice,o=n(1414),i=Object.keys,a=i?function(e){return i(e)}:n(8987),c=Object.keys;a.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return o(e)?c(r.call(e)):c(e)})}else Object.keys=a;return Object.keys||a},e.exports=a},1414:e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){var n=t.call(e),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),r}},2837:(e,t,n)=>{"use strict";var r=n(2215),o=n(5419)(),i=n(1924),a=Object,c=i("Array.prototype.push"),l=i("Object.prototype.propertyIsEnumerable"),s=o?Object.getOwnPropertySymbols:null;e.exports=function(e,t){if(null==e)throw new TypeError("target must be an object");var n=a(e);if(1===arguments.length)return n;for(var i=1;i<arguments.length;++i){var p=a(arguments[i]),u=r(p),E=o&&(Object.getOwnPropertySymbols||s);if(E)for(var d=E(p),f=0;f<d.length;++f){var _=d[f];l(p,_)&&c(u,_)}for(var I=0;I<u.length;++I){var m=u[I];if(l(p,m)){var v=p[m];n[m]=v}}}return n}},8162:(e,t,n)=>{"use strict";var r=n(2837);e.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),n={},r=0;r<t.length;++r)n[t[r]]=t[r];var o=Object.assign({},n),i="";for(var a in o)i+=a;return e!==i}()||function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch(t){return"y"===e[1]}return!1}()?r:Object.assign:r}},4155:e=>{var t,n,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var c,l=[],s=!1,p=-1;function u(){s&&c&&(s=!1,c.length?l=c.concat(l):p=-1,l.length&&E())}function E(){if(!s){var e=a(u);s=!0;for(var t=l.length;t;){for(c=l,l=[];++p<t;)c&&c[p].run();p=-1,t=l.length}c=null,s=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function d(e,t){this.fun=e,this.array=t}function f(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new d(e,t)),1!==l.length||s||a(E)},d.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=f,r.addListener=f,r.once=f,r.off=f,r.removeListener=f,r.removeAllListeners=f,r.emit=f,r.prependListener=f,r.prependOnceListener=f,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},384:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},5955:(e,t,n)=>{"use strict";var r=n(2584),o=n(8662),i=n(6430),a=n(5692);function c(e){return e.call.bind(e)}var l="undefined"!=typeof BigInt,s="undefined"!=typeof Symbol,p=c(Object.prototype.toString),u=c(Number.prototype.valueOf),E=c(String.prototype.valueOf),d=c(Boolean.prototype.valueOf);if(l)var f=c(BigInt.prototype.valueOf);if(s)var _=c(Symbol.prototype.valueOf);function I(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function m(e){return"[object Map]"===p(e)}function v(e){return"[object Set]"===p(e)}function y(e){return"[object WeakMap]"===p(e)}function T(e){return"[object WeakSet]"===p(e)}function O(e){return"[object ArrayBuffer]"===p(e)}function N(e){return"undefined"!=typeof ArrayBuffer&&(O.working?O(e):e instanceof ArrayBuffer)}function L(e){return"[object DataView]"===p(e)}function g(e){return"undefined"!=typeof DataView&&(L.working?L(e):e instanceof DataView)}t.isArgumentsObject=r,t.isGeneratorFunction=o,t.isTypedArray=a,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||g(e)},t.isUint8Array=function(e){return"Uint8Array"===i(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===i(e)},t.isUint16Array=function(e){return"Uint16Array"===i(e)},t.isUint32Array=function(e){return"Uint32Array"===i(e)},t.isInt8Array=function(e){return"Int8Array"===i(e)},t.isInt16Array=function(e){return"Int16Array"===i(e)},t.isInt32Array=function(e){return"Int32Array"===i(e)},t.isFloat32Array=function(e){return"Float32Array"===i(e)},t.isFloat64Array=function(e){return"Float64Array"===i(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===i(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===i(e)},m.working="undefined"!=typeof Map&&m(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(m.working?m(e):e instanceof Map)},v.working="undefined"!=typeof Set&&v(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(v.working?v(e):e instanceof Set)},y.working="undefined"!=typeof WeakMap&&y(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(y.working?y(e):e instanceof WeakMap)},T.working="undefined"!=typeof WeakSet&&T(new WeakSet),t.isWeakSet=function(e){return T(e)},O.working="undefined"!=typeof ArrayBuffer&&O(new ArrayBuffer),t.isArrayBuffer=N,L.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&L(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=g;var h="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function A(e){return"[object SharedArrayBuffer]"===p(e)}function R(e){return void 0!==h&&(void 0===A.working&&(A.working=A(new h)),A.working?A(e):e instanceof h)}function b(e){return I(e,u)}function w(e){return I(e,E)}function S(e){return I(e,d)}function D(e){return l&&I(e,f)}function x(e){return s&&I(e,_)}t.isSharedArrayBuffer=R,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===p(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===p(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===p(e)},t.isGeneratorObject=function(e){return"[object Generator]"===p(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===p(e)},t.isNumberObject=b,t.isStringObject=w,t.isBooleanObject=S,t.isBigIntObject=D,t.isSymbolObject=x,t.isBoxedPrimitive=function(e){return b(e)||w(e)||S(e)||D(e)||x(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(N(e)||R(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))},9539:(e,t,n)=>{var r=n(4155),o=n(5108),i=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},a=/%[sdj%]/g;t.format=function(e){if(!T(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(p(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,o=r.length,i=String(e).replace(a,(function(e){if("%%"===e)return"%";if(n>=o)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),c=r[n];n<o;c=r[++n])v(c)||!L(c)?i+=" "+c:i+=" "+p(c);return i},t.deprecate=function(e,n){if(void 0!==r&&!0===r.noDeprecation)return e;if(void 0===r)return function(){return t.deprecate(e,n).apply(this,arguments)};var i=!1;return function(){if(!i){if(r.throwDeprecation)throw new Error(n);r.traceDeprecation?o.trace(n):o.error(n),i=!0}return e.apply(this,arguments)}};var c={},l=/^$/;if({IFRAME_SECURE_SITE:"https://js.skyflow.com/v1/elements/index.html",IFRAME_SECURE_ORGIN:"https://js.skyflow.com"}.NODE_DEBUG){var s={IFRAME_SECURE_SITE:"https://js.skyflow.com/v1/elements/index.html",IFRAME_SECURE_ORGIN:"https://js.skyflow.com"}.NODE_DEBUG;s=s.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),l=new RegExp("^"+s+"$","i")}function p(e,n){var r={seen:[],stylize:E};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),m(n)?r.showHidden=n:n&&t._extend(r,n),O(r.showHidden)&&(r.showHidden=!1),O(r.depth)&&(r.depth=2),O(r.colors)&&(r.colors=!1),O(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=u),d(r,e,r.depth)}function u(e,t){var n=p.styles[t];return n?"["+p.colors[n][0]+"m"+e+"["+p.colors[n][1]+"m":e}function E(e,t){return e}function d(e,n,r){if(e.customInspect&&n&&A(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,e);return T(o)||(o=d(e,o,r)),o}var i=function(e,t){if(O(t))return e.stylize("undefined","undefined");if(T(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(y(t))return e.stylize(""+t,"number");if(m(t))return e.stylize(""+t,"boolean");if(v(t))return e.stylize("null","null")}(e,n);if(i)return i;var a=Object.keys(n),c=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),h(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return f(n);if(0===a.length){if(A(n)){var l=n.name?": "+n.name:"";return e.stylize("[Function"+l+"]","special")}if(N(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(g(n))return e.stylize(Date.prototype.toString.call(n),"date");if(h(n))return f(n)}var s,p="",u=!1,E=["{","}"];(I(n)&&(u=!0,E=["[","]"]),A(n))&&(p=" [Function"+(n.name?": "+n.name:"")+"]");return N(n)&&(p=" "+RegExp.prototype.toString.call(n)),g(n)&&(p=" "+Date.prototype.toUTCString.call(n)),h(n)&&(p=" "+f(n)),0!==a.length||u&&0!=n.length?r<0?N(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),s=u?function(e,t,n,r,o){for(var i=[],a=0,c=t.length;a<c;++a)S(t,String(a))?i.push(_(e,t,n,r,String(a),!0)):i.push("");return o.forEach((function(o){o.match(/^\d+$/)||i.push(_(e,t,n,r,o,!0))})),i}(e,n,r,c,a):a.map((function(t){return _(e,n,r,c,t,u)})),e.seen.pop(),function(e,t,n){var r=e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);if(r>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(s,p,E)):E[0]+p+E[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function _(e,t,n,r,o,i){var a,c,l;if((l=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?c=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(c=e.stylize("[Setter]","special")),S(r,o)||(a="["+o+"]"),c||(e.seen.indexOf(l.value)<0?(c=v(n)?d(e,l.value,null):d(e,l.value,n-1)).indexOf("\n")>-1&&(c=i?c.split("\n").map((function(e){return" "+e})).join("\n").slice(2):"\n"+c.split("\n").map((function(e){return" "+e})).join("\n")):c=e.stylize("[Circular]","special")),O(a)){if(i&&o.match(/^\d+$/))return c;(a=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+c}function I(e){return Array.isArray(e)}function m(e){return"boolean"==typeof e}function v(e){return null===e}function y(e){return"number"==typeof e}function T(e){return"string"==typeof e}function O(e){return void 0===e}function N(e){return L(e)&&"[object RegExp]"===R(e)}function L(e){return"object"==typeof e&&null!==e}function g(e){return L(e)&&"[object Date]"===R(e)}function h(e){return L(e)&&("[object Error]"===R(e)||e instanceof Error)}function A(e){return"function"==typeof e}function R(e){return Object.prototype.toString.call(e)}function b(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!c[e])if(l.test(e)){var n=r.pid;c[e]=function(){var r=t.format.apply(t,arguments);o.error("%s %d: %s",e,n,r)}}else c[e]=function(){};return c[e]},t.inspect=p,p.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},p.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=n(5955),t.isArray=I,t.isBoolean=m,t.isNull=v,t.isNullOrUndefined=function(e){return null==e},t.isNumber=y,t.isString=T,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=O,t.isRegExp=N,t.types.isRegExp=N,t.isObject=L,t.isDate=g,t.types.isDate=g,t.isError=h,t.types.isNativeError=h,t.isFunction=A,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(384);var w=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function S(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,n;o.log("%s - %s",(e=new Date,n=[b(e.getHours()),b(e.getMinutes()),b(e.getSeconds())].join(":"),[e.getDate(),w[e.getMonth()],n].join(" ")),t.format.apply(t,arguments))},t.inherits=n(5717),t._extend=function(e,t){if(!t||!L(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var D="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function x(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(D&&e[D]){var t;if("function"!=typeof(t=e[D]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,D,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),o=[],i=0;i<arguments.length;i++)o.push(arguments[i]);o.push((function(e,r){e?n(e):t(r)}));try{e.apply(this,o)}catch(e){n(e)}return r}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),D&&Object.defineProperty(t,D,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,i(e))},t.promisify.custom=D,t.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n]);var o=t.pop();if("function"!=typeof o)throw new TypeError("The last argument must be of type Function");var i=this,a=function(){return o.apply(i,arguments)};e.apply(this,t).then((function(e){r.nextTick(a.bind(null,null,e))}),(function(e){r.nextTick(x.bind(null,e,a))}))}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,i(e)),t}},6430:(e,t,n)=>{"use strict";var r=n(4029),o=n(3083),i=n(5559),a=n(1924),c=n(7296),l=a("Object.prototype.toString"),s=n(6410)(),p="undefined"==typeof globalThis?n.g:globalThis,u=o(),E=a("String.prototype.slice"),d=Object.getPrototypeOf,f=a("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n<e.length;n+=1)if(e[n]===t)return n;return-1},_={__proto__:null};r(u,s&&c&&d?function(e){var t=new p[e];if(Symbol.toStringTag in t){var n=d(t),r=c(n,Symbol.toStringTag);if(!r){var o=d(n);r=c(o,Symbol.toStringTag)}_["$"+e]=i(r.get)}}:function(e){var t=new p[e];_["$"+e]=i(t.slice)});e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!s){var t=E(l(e),8,-1);return f(u,t)>-1?t:"Object"===t&&function(e){var t=!1;return r(_,(function(n,r){if(!t)try{n(e),t=E(r,1)}catch(e){}})),t}(e)}return c?function(e){var t=!1;return r(_,(function(n,r){if(!t)try{"$"+n(e)===r&&(t=E(r,1))}catch(e){}})),t}(e):null}},7061:(e,t,n)=>{var r=n(8698).default;function o(){"use strict";e.exports=o=function(){return n},e.exports.__esModule=!0,e.exports.default=e.exports;var t,n={},i=Object.prototype,a=i.hasOwnProperty,c=Object.defineProperty||function(e,t,n){e[t]=n.value},l="function"==typeof Symbol?Symbol:{},s=l.iterator||"@@iterator",p=l.asyncIterator||"@@asyncIterator",u=l.toStringTag||"@@toStringTag";function E(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{E({},"")}catch(t){E=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var o=t&&t.prototype instanceof T?t:T,i=Object.create(o.prototype),a=new M(r||[]);return c(i,"_invoke",{value:w(e,n,a)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=d;var _="suspendedStart",I="suspendedYield",m="executing",v="completed",y={};function T(){}function O(){}function N(){}var L={};E(L,s,(function(){return this}));var g=Object.getPrototypeOf,h=g&&g(g(P([])));h&&h!==i&&a.call(h,s)&&(L=h);var A=N.prototype=T.prototype=Object.create(L);function R(e){["next","throw","return"].forEach((function(t){E(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(o,i,c,l){var s=f(e[o],e,i);if("throw"!==s.type){var p=s.arg,u=p.value;return u&&"object"==r(u)&&a.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,c,l)}),(function(e){n("throw",e,c,l)})):t.resolve(u).then((function(e){p.value=e,c(p)}),(function(e){return n("throw",e,c,l)}))}l(s.arg)}var o;c(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}})}function w(e,n,r){var o=_;return function(i,a){if(o===m)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var l=S(c,r);if(l){if(l===y)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===_)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var s=f(e,n,r);if("normal"===s.type){if(o=r.done?v:I,s.arg===y)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=v,r.method="throw",r.arg=s.arg)}}}function S(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,S(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function P(e){if(e||""===e){var n=e[s];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(a.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(r(e)+" is not iterable")}return O.prototype=N,c(A,"constructor",{value:N,configurable:!0}),c(N,"constructor",{value:O,configurable:!0}),O.displayName=E(N,u,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===O||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,N):(e.__proto__=N,E(e,u,"GeneratorFunction")),e.prototype=Object.create(A),e},n.awrap=function(e){return{__await:e}},R(b.prototype),E(b.prototype,p,(function(){return this})),n.AsyncIterator=b,n.async=function(e,t,r,o,i){void 0===i&&(i=Promise);var a=new b(d(e,t,r,o),i);return n.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},R(A),E(A,u,"Generator"),E(A,s,(function(){return this})),E(A,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},n.values=P,M.prototype={constructor:M,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(x),!e)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,o){return c.type="throw",c.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],c=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=a.call(i,"catchLoc"),s=a.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),x(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},n}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},8698:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4687:(e,t,n)=>{var r=n(7061)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},3083:(e,t,n)=>{"use strict";var r=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],o="undefined"==typeof globalThis?n.g:globalThis;e.exports=function(){for(var e=[],t=0;t<r.length;t++)"function"==typeof o[r[t]]&&(e[e.length]=r[t]);return e}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.p="";var r={};return(()=>{"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(t){var n=function(t,n){if("object"!==e(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,n||"default");if("object"!==e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"===e(n)?n:String(n)}function o(e,n,r){return(n=t(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,t(o.key),o)}}function c(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function l(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function s(e,t,n){return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,l(e,t,"set"),n),n}function p(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,l(e,t,"get"))}n.r(r),n.d(r,{default:()=>Fo});var u=n(6135),E=n.n(u);function d(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=crypto.getRandomValues(new Uint32Array(1))[0]/Math.pow(2,32)*16|0;return("x"===e?t:3&t|8).toString(16)}))}const f=n.p+"2afb5d11fb02e9292eaf.svg",_=n.p+"5408d9cd30b616684aa0.svg",I=n.p+"a9431336dd9f3e17b880.svg",m=n.p+"9b996d698afd3d404564.svg",v=n.p+"404966085770d8ec21ca.svg",y=n.p+"8062a86943450f142966.svg",T=n.p+"407dfd9c3fd800945b74.svg",O=n.p+"08ad88dee7d4519954ec.svg",N=n.p+"d418de915d45f039ac22.svg",L=n.p+"cbee67fb3d652dad9e25.svg",g=(n.p,n.p,n.p,n.p+"bcd5969a8a86792c2995.svg");const h={infoLogs:{INITIALIZE_CLIENT:"%s1 - Initializing skyflow client.",CLIENT_INITIALIZED:"%s1 - Initialized skyflow client successfully.",CREATE_COLLECT_CONTAINER:"%s1 - Creating Collect container.",COLLECT_CONTAINER_CREATED:"%s1 - Created Collect container successfully.",CREATE_REVEAL_CONTAINER:"%s1 - Creating Reveal container.",REVEAL_CONTAINER_CREATED:"%s1 - Created Reveal container successfully.",VALIDATE_RECORDS:"%s1 - Validating insert records.",VALIDATE_DETOKENIZE_INPUT:"%s1 - Validating detokenize input.",VALIDATE_GET_INPUT:"%s1 - Validating get input.",VALIDATE_DELETE_INPUT:"%s1 - Validating delete input.",VALIDATE_COLLECT_RECORDS:"%s1 - Validating collect element input.",VALIDATE_REVEAL_RECORDS:"%s1 - Validating reveal element input.",VALIDATE_RENDER_RECORDS:"%s1 - Validating file render element input.",CREATED_ELEMENT:"%s1 - Created %s2 element.",ELEMENT_MOUNTED:"%s1 - %s2 Element mounted.",ELEMENT_REVEALED:"%s1 - %s2 Element revealed.",FILE_RENDERED:"%s1 - %s2 File rendered.",COLLECT_SUBMIT_SUCCESS:"%s1 - Data has been collected successfully.",REVEAL_SUBMIT_SUCCESS:"%s1 - Data has been revealed successfully.",RENDER_SUBMIT_SUCCESS:"%s1 - File download URL has been fetched successfully.",INSERT_DATA_SUCCESS:"%s1 - Data has been inserted successfully.",DETOKENIZE_SUCCESS:"%s1 - Data has been revealed successfully.",GET_SUCCESS:"%s1 - Data has been revealed successfully.",DELETE_SUCCESS:"%s1 - Data has been deleted successfully.",BEARER_TOKEN_LISTENER:"%s1 - Get bearer token listener added.",CAPTURED_BEARER_TOKEN_EVENT:"%s1 - Captured bearer token event.",BEARER_TOKEN_RESOLVED:"%s1 - GetBearerToken promise resolved successfully.",REUSE_BEARER_TOKEN:"%s1 - Reusing the bearer token.",PUREJS_CONTROLLER_INITIALIZED:"%s1 - SkyflowController initialized.",PUREJS_LISTENER_READY:"%s1 - Purejs listener ready.",EMIT_PURE_JS_CONTROLLER:"%s1 - Emitted Skyflow controller event.",INSERT_TRIGGERED:"%s1 - Insert method triggered.",DETOKENIZE_TRIGGERED:"%s1 - Detokenize method triggered.",GET_TRIGGERED:"%s1 - Get method triggered.",GET_BY_ID_TRIGGERED:"%s1 - Get method triggered.",DELETE_TRIGGERED:"%s1 - Delete method triggered.",EMIT_PURE_JS_REQUEST:"%s1 - Emitted %s2 request.",CAPTURE_PURE_JS_REQUEST:"%s1 - Captured %s2 event.",LISTEN_PURE_JS_REQUEST:"%s1 - Listening to %s2 event.",CAPTURE_PUREJS_FRAME:"%s1 - Captured SkyflowController frame ready event.",FETCH_RECORDS_RESOLVED:"%s1 - Detokenize request is resolved.",INSERT_RECORDS_RESOLVED:"%s1 - Insert request is resolved.",GET_RESOLVED:"%s1 - Get request is resolved.",GET_BY_SKYFLOWID_RESOLVED:"%s1 - GetById request is resolved.",DELETE_RESOLVED:"%s1 - Delete request is resolved",EMIT_EVENT:"%s1 - %s2 event emitted",CAPTURE_EVENT:"%s1 - Captured event %s2",METRIC_CAPTURE_EVENT:"Metric event captured Successfully",UNKNOWN_METRIC_CAPTURE_EVENT:"Metric event capturing Failed with %s1",UNKNOWN_RESPONSE_FROM_METRIC_EVENT:"Metric event Captured with Unknown Response",LISTEN_COLLECT_FRAME_READY:"%s1 - Listening to collect FRAME_READY event",EMIT_COLLECT_ELEMENT_FRAME_READY:"%s1 - Emitting collect element %s2 FRAME_READY event",ENTERED_COLLECT_FRAME_READY_CB:"%s1 - In IFrameForm constructor, Entered FRAME_READY callback",EXECUTE_COLLECT_ELEMENT_FRAME_READY_CB:"%s1 - In IFrameForm, executing collect element, %s2 FRAME_READY callback",CLIENT_METADATA_NOT_SET:"%s1 - Client metadata not set",EXECUTE_COLLECT_ELEMENT_INIT:"%s1 - calling Collect element init",INSIDE__COLLECT_ELEMENT_INIT:"%s1 - Inside Collect element init for %s2",CREATING_COLLECT_ELEMENT_FORM:"%s1 - Start, creating iframe form for %s2",COLLECT_FRAME_READY_CB:"%s1 - In FrameElements, executing collect element FRAME_READY cb for %s2, sending metadata",INSIDE_FRAME_ELEMENTS_CONSTRUCOTR:"%s1 - Inside FrameElements constructor",SETUP_IN_START:"%s1 - Inside FrameElements start(), calling setup",SETUP_IN_CONSTRUCTOR:"%s1 - Inside FrameElements constructor, calling setup",COLLECT_ELEMET_START:"%s1 - %s2, Collect Element start",COLLECT_CONTROLLER_START:"%s1 - %s2, Collect Controller start",REVEAL_ELEMENT_START:"%s1 - %s2, Reveal Element start",EMIT_COLLECT_FRAME_CONTROLLER_EVENT:"%s1 - Emit collect FrameController FRAME_READY event",EXECUTE_COLLECT_CONTROLLER_READY_CB:"%s1 - Executing collect FrameController FRAME_READY callback, set client metadata",IFRAMEFORM_CONSTRUCTOR_FRAME_READY_LISTNER:"%s1 - In IFrameForm constructor, Adding listner for FRAME_READY event",IFRAMEFORM_CONSTRUCTOR_TOKENIZATION_LISTNER:"%s1 - In IFrameForm constructor, Adding listner for TOKENIZATION_REQUEST event",CURRENT_ENV:"%s1 - Client Env is %s2",CURRENT_LOG_LEVEL:"%s1 - Client LogLevel is %s2",VALIDATE_GET_BY_ID_INPUT:"%s1 - Validating getByID input."},errorLogs:{INVALID_FILE_NAMES:"Invalid File Name. Only alphanumeric characters and !-_.*() are allowed.",INVALID_FILE_NAME:"Interface: collect element - Invalid File Name. Only alphanumeric characters and !-_.*() are allowed.",CLIENT_CONNECTION:"Interface: collect container - client connection not established. client info has not reached iframes",INVALID_BEARER_TOKEN:"Interface: init - Invalid token is generated from getBearerToken callback",BEARER_TOKEN_REJECTED:"Interface: init - GetBearerToken promise got rejected.",VAULTID_IS_REQUIRED:"Interface: init - Invalid client credentials. vaultID is required.",EMPTY_VAULTID_IN_INIT:"Interface: init - Invalid client credentials. vaultID cannot be empty.",VAULTURL_IS_REQUIRED:"Interface: init - Invalid client credentials. vaultURL is required.",EMPTY_VAULTURL_IN_INIT:"Interface: init - Invalid client credentials. vaultURL cannot be empty.",INVALID_VAULTURL_IN_INIT:"Interface: init - Invalid client credentials. Expecting https://XYZ for vaultURL",GET_BEARER_TOKEN_IS_REQUIRED:"Interface: init - Invalid client credentials. getBearerToken is required.",EMPTY_CONTAINER_TYPE:"Interface: client {containerType} container - Invalid container type. Container object cannot be empty.",INVALID_CONTAINER_TYPE:"Interface: client {containerType} container - Invalid container type. Invalid container object.",INVALID_COLLECT_VALUE:"Invalid value",INVALID_COLLECT_VALUE_WITH_LABEL:"Invalid %s1",REQUIRED_COLLECT_VALUE:"%s1 is required",DEFAULT_REQUIRED_COLLECT_VALUE:"Field is required",RECORDS_KEY_NOT_FOUND:"Interface: client insert - records object is required.",INVALID_RECORDS_IN_INSERT:"Interface: client insert - Invalid records. records object should be an array.",EMPTY_RECORDS_IN_INSERT:"Interface: client insert - records array cannot be empty.",MISSING_TABLE_IN_INSERT:'Interface: client insert - "table" key is required in records array at index %s1',EMPTY_TABLE_IN_INSERT:"Interface: client insert - table cannot be empty in records array at index %s1",INVALID_TABLE_IN_INSERT:"Interface: client insert - table of type string is required at index %s1 in records array.",EMPTY_FIELDS_IN_INSERT:"Interface: client insert - fields cannot be empty in records array at index %s1",MISSING_FIELDS_IN_INSERT:'Interface: client insert - "fields" key is required in records array at index %s1',INVALID_FIELDS_IN_INSERT:"Interface: client insert - fields of type object is required at index %s1 in records array.",INVALID_TOKENS_IN_INSERT:"Interface: client insert - Invalid tokens in options. tokens of type boolean is required.",RECORDS_KEY_NOT_FOUND_DELETE:"Interface: client delete - records object is required.",INVALID_RECORDS_IN_DELETE:"Interface: client delete - Invalid records. records object should be an array.",EMPTY_RECORDS_IN_DELETE:"Interface: client delete - records array cannot be empty.",MISSING_TABLE_IN_DELETE:'Interface: client delete - "table" key is required in records array at index %s1',EMPTY_TABLE_IN_DELETE:"Interface: client delete - table cannot be empty in records array at index %s1",INVALID_TABLE_IN_DELETE:"Interface: client delete - table of type string is required at index %s1 in records array.",MISSING_ID_IN_DELETE:'Interface: client delete - "id" key is required in records array at index %s1',EMPTY_ID_IN_DELETE:"Interface: client delete - id cannot be empty in records array at index %s1",INVALID_ID_IN_DELETE:"Interface: client delete - id of type string is required at index %s1 in records array.",DELETE_RECORDS_REJECTED:"Interface: client delete - delete request is rejected.",INVALID_TOKENS_IN_COLLECT:"Interface: collect container - Invalid tokens. tokens of type boolean is required.",RECORDS_KEY_NOT_FOUND_IN_ADDITIONAL_FIELDS:'Interface: collect container - "records" key not found in additionalFields',INVALID_RECORDS_IN_ADDITIONAL_FIELDS:"Interface: collect container - records should be an array inside additionalFields",EMPTY_RECORDS_IN_ADDITIONAL_FIELDS:"Interface: collect container - records object cannot be empty in additionalFields",MISSING_TABLE_IN_ADDITIONAL_FIELDS:'Interface: collect container - "table" key not found in additionalFields records at index %s1',INVALID_TABLE_IN_ADDITIONAL_FIELDS:"Interface: collect container - Provide valid table name in additionalFields records at index %s1",INVALID_SKYFLOW_ID_IN_ADDITIONAL_FIELDS:"Interface: collect container - Provide valid skyflow id in additionalFields records at index %s1",MISSING_FIELDS_IN_ADDITIONAL_FIELDS:'Interface: collect container - "fields" key not found in additionalFields records at index %s1',INVALID_FIELDS_IN_ADDITIONAL_FIELDS:"Interface: collect container - Provide valid fields in additionalFields records at index %s1",RECORDS_KEY_NOT_FOUND_DETOKENIZE:"Interface: client detokenize - records object is required.",EMPTY_RECORDS_DETOKENIZE:"Interface: client detokenize - records array cannot be empty.",INVALID_RECORDS_IN_DETOKENIZE:"Interface: client detokenize - Invalid records. records object should be an array.",MISSING_TOKEN_IN_DETOKENIZE:'Interface: client detokenize - "token" key is required in records array at index %s1 ',INVALID_TOKEN_IN_DETOKENIZE:"Interface: client detokenize - Invalid token. token of type string is required at index %s1 in records array.",RECORDS_KEY_NOT_FOUND_GET:"Interface: client get - records object is required.",INVALID_RECORDS_IN_GET:"Interface: client get - Invalid records. records object should be an array.",EMPTY_RECORDS_GET:"Interface: client get - records array cannot be empty.",MISSING_IDS_IN_GET:'Interface: client get - "ids" key is required in records array at index %s1',INVALID_IDS_IN_GET:"Interface: client get - Invalid ids. ids object should be an array.",INVALID_COLUMN_VALUES_IN_GET:"Interface: client get - Invalid column values. column values object should be an array.",EMPTY_IDS_IN_GET:"Interface: client get - ids array cannot be empty at index %s1",INVALID_SKYFLOWID_TYPE_IN_GET:"Interface: client get - Invalid skyflowId in ids array at index %s1",MISSING_TABLE_IN_GET:'Interface: client get - "table" key is required in records array at index %s1',INVALID_TABLE_IN_GET:"Interface: client get - table of type string is required at index %s1 in records array.",MISSING_REDACTION_IN_GET:'Interface: client get - "redaction" key is required in records array at index %s1',INVALID_REDACTION_TYPE_IN_GET:"Interface: client get - Invalid redaction type in records array at index %s1",INVALID_TOKENS_IN_GET:"Interface: client get - Invalid tokens in options. tokens of type boolean is required.",TOKENS_GET_COLUMN_NOT_SUPPORTED:"Interface: client get - column_name or column_values cannot be used with tokens in options.",REDACTION_WITH_TOKENS_NOT_SUPPORTED:"Interface: client get - redaction cannot be used when tokens are true in options.",INVALID_REDACTION_TYPE_IN_DETOKENIZE:"Interface: client get - Invalid redaction type in records array at index %s1",EMPTY_RECORDS_REVEAL:"Interface: reveal container - cannot invoke reveal method before creating reveal elements",MISSING_TOKEN_KEY_REVEAL:"Interface: RevealElement - token key is required ",MISSING_SKYFLOWID_KEY_REVEAL:"Interface: FileRenderElement - skyflowID key is required ",MISSING_TABLE_KEY_REVEAL:"Interface: FileRenderElement - table key is required ",MISSING_COLUMN_KEY_REVEAL:"Interface: FileRenderElement - column key is required ",INVALID_SKYFLOW_ID_REVEAL:"Interface: FileRenderElement - skyflowID is invalid. skyflowID of type string is required",INVALID_TABLE_REVEAL:"Interface: FileRenderElement - table is invalid. table of type string is required",INVALID_COLUMN_NAME_REVEAL:"Interface: FileRenderElement - column name is invalid. column of type string is required",EMPTY_SKYFLOW_ID_REVEAL:"Interface: FileRenderElement - skyflowID is empty.",EMPTY_TABLE_REVEAL:"Interface: FileRenderElement - table is empty.",EMPTY_COLUMN_NAME_REVEAL:"Interface: FIleRenderElement - column is empty.",INVALID_TOKEN_ID_REVEAL:"Interface: RevealElement - token is invalid. token of type string is required",INVALID_LABEL_REVEAL:"Interface: RevealElement - label is invalid.",INVALID_ALT_TEXT_REVEAL:"Interface: RevealElement - Invalid altText.",INVALID_ALT_TEXT_RENDER:"Interface: RevealElement - Invalid altText.",INVALID_FORMAT_REVEAL:"Interface: RevealElement - Invalid format type.",EMPTY_FORMAT_REVEAL:"Interface: RevealElement - Empty format value provided.",INVALID_FORMAT_VALUE_REVEAL:"Interface: RevealElement - Invalid format value provided.",INVALID_REDACTION_TYPE_REVEAL:"Interface: RevealElement - Invalid Redaction type.",ELEMENTS_NOT_MOUNTED_REVEAL:"Interface: reveal container - Cannot invoke reveal before mounting the elements",ELEMENT_NOT_MOUNTED_RENDER:"Interface: render container - Cannot invoke renderFile before mounting the elements",EMPTY_TABLE_IN_ADDITIONAL_FIELDS:"Interface: collect container - table cannot be empty in additionalFields at index %s1",EMPTY_FIELDS_IN_ADDITIONAL_FIELDS:"Interface: collect container - fields cannot be empty in additionalFields at index %s1",EMPTY_TOKEN_IN_DETOKENIZE:"Interface: client detokenize - token cannot be empty in records array at index %s1",EMPTY_SKYFLOWID_IN_GET:"Interface: client get - id cannot be empty in records array at index %s1",EMPTY_TABLE_IN_GET:"Interface: client get - table cannot be empty in records array at index %s1",EMPTY_REDACTION_TYPE_IN_GET:"Interface: client get - redaction cannot be empty in records array at index %s1",EMPTY_TOKEN_ID_REVEAL:"Interface: RevealElement - token cannot be empty",FETCH_RECORDS_REJECTED:"Interface: client detokenize - detokenize request is rejected.",INSERT_RECORDS_REJECTED:"Interface: client insert - insert request is rejected.",GET_REJECTED:"Interface: client get - get request is rejected.",FAILED_REVEAL:"Interface: reveal container - Failed to reveal data",FAILED_RENDER:"Interface: reveal container - Failed to render file",SKYFLOW_IDS_AND_TOKEN_BOTH_SPECIFIED:"Interface: FileRenderElement: skyflowID and token can not be specified together.",MISSING_TABLE_IN_COLLECT:'Interface: collect element - "table" key is required.',EMPTY_TABLE_IN_COLLECT:"Interface: collect element - table cannot be empty.",EMPTY_SKYFLOW_ID_IN_ADDITIONAL_FIELDS:"Interface: collect element - id cannot be empty.",INVALID_TABLE_IN_COLLECT:"Interface: collect element - Invalid table. table of type string is required",INVALID_SKYFLOWID_IN_COLLECT:"Interface: collect element - Invalid id. id of type string is required",MISSING_COLUMN_IN_COLLECT:'Interface: collect element - "column" key is required.',MISSING_SKYFLOWID_IN_COLLECT:'Interface: collect element - "skyflowID" key is required in file type element',EMPTY_COLUMN_IN_COLLECT:"Interface: collect element - column cannot be empty.",INVALID_COLUMN_IN_COLLECT:"Interface: collect element - Invalid column. column of type string is required",UNIQUE_ELEMENT_NAME:"The element name has to be unique: %s1",ELEMENTS_NOT_MOUNTED:"Interface: collect container - Elements should be mounted before invoking collect",DUPLICATE_ELEMENT:"Interface: collect container - Duplicate column %s1 found in %s2.",DUPLICATE_ELEMENT_ADDITIONAL_FIELDS:"Interface: collect container - Duplicate column %s1 found in %s2 in additional fields",MISSING_ELEMENT_TYPE:'Interface:container element with type {TYPE} - Invalid element type. "type" key is required.',EMPTY_ELEMENT_TYPE:"Interface:container element with type {TYPE} - Invalid element type. type cannot be empty.",INVALID_ELEMENT_TYPE:"Interface:container element with type {TYPE} - invalid element type. type not found",INVALID_ELEMENT_SELECTOR:"Interface: container element with type {TYPE} - Div cannot be found.",CANNOT_CHANGE_ELEMENT:"Element can't be changed.",INVALID_IFRAME:"Error occured while creating an iframe",INVALID_FIELD:"Invalid Field.",FRAME_NOT_FOUND:"Interface: collect element - %s1 frame not found:",COMPLETE_AND_VALID_INPUTS:"Interface: collect container - Provide complete and valid inputs for %s1",REQUIRED_PARAMS_NOT_PROVIDED:"Interface: collect element - Required params are not provided.",INVALID_EVENT_TYPE:"Interface: collect element - Provide a valid event type.",INVALID_EVENT_LISTENER:'Interface: "on" on CollectElement - Provide valid event listener.',MISSING_HANDLER_IN_EVENT_LISTENER:'Interface: "on" on CollectElement - Second argument is missing. handler cannot be empty.',INVALID_HANDLER_IN_EVENT_LISTENER:'Interface: "on" on CollectElement - Invalid handler. handler should be of type function.',UNKNOWN_ERROR:"Unknown Error.",NETWORK_ERROR:"A network error occurred. This could be a CORS issue or a dropped internet connection. It is not possible for us to know. Please reach out to skyflow if you see this error",CONNECTION_ERROR:"Error while initializing the connection.",ERROR_OCCURED:"Error occurred.",INVALID_VALIDATIONS_TYPE:"Interface: collect element - Invalid validations type.",MISSING_VALIDATION_RULE_TYPE:"Interface: collect element - Type is missing in validationRule at index %s1 in validations array",INVALID_VALIDATION_RULE_TYPE:"Interface: collect element - Invalid ValidationRuleType at index %s1 in validations array",MISSING_VALIDATION_RULE_PARAMS:"Interface: collect element - params are missing in validationRule at index %s1 in validations array",INVALID_VALIDATION_RULE_PARAMS:"Interface: collect element - Invalid ValidationRule params at index %s1 in validations array",MISSING_REGEX_IN_REGEX_MATCH_RULE:"Interface: collect element - Missing regex in ValidationRule params at index %s1 in validations array",INVALID_REGEX_IN_REGEX_MATCH_RULE:"Interface: collect element - Invalid regex in ValidationRule params at index %s1 in validations array",MISSING_MIN_AND_MAX_IN_LENGTH_MATCH_RULE:"Interface: collect element - Either min or max is required in ValidationRule params at index %s1 in validations array",MISSING_ELEMENT_IN_ELEMENT_MATCH_RULE:"Interface: collect element - Missing element in ValidationRule params at index %s1 in validations array",INVALID_ELEMENT_IN_ELEMENT_MATCH_RULE:"Interface: collect element - Invalid collect element in ValidationRule params at index %s1 in validations array",ELEMENT_NOT_MOUNTED_IN_ELEMENT_MATCH_RULE:"Interface: collect element - collect element is not mounted in ValidationRule params at index %s1 in validations array",EMPTY_ELEMENT_IN_MOUNT:"Interface: mount element with type %s1 - Mount cannot be empty.",VALIDATION_FAILED:"Validation failed",REVEAL_ELEMENT_ERROR_STATE:"unable to reveal, since one or more element(s) have setError",INVALID_FILE_TYPE:"Interface: collect element - Invalid File Type",INVALID_FILE_SIZE:"Interface: collect element - Invalid File Size",NO_FILE_SELECTED:"Interface: collect element - No File Selected",INVALID_UPSERT_OPTION_TYPE:"Invalid upsert option, should be an array",EMPTY_UPSERT_OPTIONS_ARRAY:"upsert option cannot be an empty array, atleast one object of table and column is required.",INVALID_UPSERT_OPTION_OBJECT_TYPE:"Invalid upsert object at index %s1, an object of table and column is required.",MISSING_TABLE_IN_UPSERT_OPTION:'"table" key is required in upsert options object at index %s1',MISSING_COLUMN_IN_UPSERT_OPTION:'"column" key is required in upsert option at index %s1',INVALID_TABLE_IN_UPSERT_OPTION:"Invalid table in upsert object at index %s1, table of type non empty string is required",INVALID_COLUMN_IN_UPSERT_OPTION:"Invalid column in upsert object at index %s1, column of type non empty string is required",INVALID_RECORD_COLUMN_VALUE:"Invalid Record Column value.",MISSING_RECORD_COLUMN_VALUE:"Column Values is required when Column Name is specified.",MISSING_RECORD_COLUMN_NAME:"Column Name is required when Column Values are specified.",INVALID_RECORD_COLUMN_VALUE_TYPE:"Invalid Type of Records Column Values.",INVALID_COLUMN_VALUES_TYPE:"Invalid column values type, should be an Array.",EMPTY_RECORD_COLUMN_VALUES:"Record column values cannot be empty.",EMPTY_COLUMN_VALUE:"Column Value is empty.",MISSING_IDS_OR_COLUMN_VALUES_IN_GET:'Interface: client get - "ids" key or "columnValues" key is missing.',SKYFLOW_IDS_AND_COLUMN_NAME_BOTH_SPECIFIED:"ids and columnName can not be specified together.",GET_BY_SKYFLOWID_RESOLVED:"%s1 - GetById request is resolved.",RECORDS_KEY_NOT_FOUND_GETBYID:"Interface: client getById - records object is required.",INVALID_RECORDS_IN_GETBYID:"Interface: client getById - Invalid records. records object should be an array.",EMPTY_RECORDS_GETBYID:"Interface: client getById - records array cannot be empty.",MISSING_IDS_IN_GETBYID:'Interface: client getById - "ids" key is required in records array at index %s1',INVALID_IDS_IN_GETBYID:"Interface: client getById - Invalid ids. ids object should be an array.",EMPTY_IDS_IN_GETBYID:"Interface: client getById - ids array cannot be empty at index %s1",INVALID_SKYFLOWID_TYPE_IN_GETBYID:"Interface: client getById - Invalid skyflowId in ids array at index %s1",MISSING_TABLE_IN_GETBYID:'Interface: client getById - "table" key is required in records array at index %s1',INVALID_TABLE_IN_GETBYID:"Interface: client getById - table of type string is required at index %s1 in records array.",MISSING_REDACTION_IN_GETBYID:'Interface: client getById - "redaction" key is required in records array at index %s1',INVALID_REDACTION_TYPE_IN_GETBYID:"Interface: client getById - Invalid redaction type in records array at index %s1",EMPTY_SKYFLOWID_IN_GETBYID:"Interface: client getById - id cannot be empty in records array at index %s1",EMPTY_TABLE_IN_GETBYID:"Interface: client getById - table cannot be empty in records array at index %s1",EMPTY_REDACTION_TYPE_IN_GETBYID:"Interface: client getById - redaction cannot be empty in records array at index %s1",GET_BY_SKYFLOWID_REJECTED:"Interface: client getById - getById request is rejected.",MISSING_COMPOSABLE_LAYOUT_KEY:"Interface: client container - layout is required in composable container options.",EMPTY_COMPOSABLE_LAYOUT_ARRAY:"Interface: client container - layout array cannot be empty in composable container options.",INVALID_COMPOSABLE_LAYOUT_TYPE:"Interface: client container - invalid layout value, layout should be of type array of numbers in composable container options.",NEGATIVE_VALUES_COMPOSABLE_LAYOUT:"Interface: client container - layout array should only have postive numbers in composable container options.",MISMATCH_ELEMENT_COUNT_LAYOUT_SUM:"Interface: composable container mount - created elements count should be equal to sum of layout values.",MISSING_COMPOSABLE_CONTAINER_OPTIONS:"Interface: client composable container - options object is required for composable container.",INVALID_COMPOSABLE_CONTAINER_OPTIONS:"Interface: client composable container - invalid options value, should be an object type.",COMPOSABLE_CONTAINER_NOT_MOUNTED:"Interface: composable collect - container should be mounted before invoking collect.",INVALID_BOOLEAN_OPTIONS:"Interface: container create - Invaild %s1 in options, %s1 of type boolean is required.",INVALID_INPUT_OPTIONS_FORMAT:"Interface: container create - Invalid type, format must be of non-empty string type.",INVALID_INPUT_OPTIONS_TRANSLATION:"Interface: container create - Invalid type, translation must be of non-empty object type.",EMPTY_COLLECT_CUSTOM_FORMAT:"Interface: container create - %s1 cannot be empty object.",INVALID_ALLOWED_OPTIONS:"Interface: collect element - Invalid options, allowedFileType must be of string array type.",EMPTY_ALLOWED_OPTIONS_ARRAY:"Interface: collect element - Invalid options value, allowedFileType array is empty.",INVALID_ALLOWED_FILETYPE_ARRAY:"Interface: collect element - Invalid options value, allowedFileType array must contain only string elements.",INVALID_OPTION_CARD_METADATA:"Interface: container create - Invalid type, cardMetadata must be of non-empty object type.",INVALID_OPTION_CARD_SCHEME:"Interface: container create - Invalid options, scheme must be of string array type."},warnLogs:{INVALID_EXPIRATION_DATE_FORMAT:"EXPIRATION_DATE format must be in one of %s1, the format is set to default MM/YY",INVALID_EXPIRATION_YEAR_FORMAT:"EXPIRATION_YEAR format must be in one of %s1, the format is set to default YY",UNABLE_TO_SET_VALUE_IN_PROD_ENV:"%s1 setValue() cannot invoked while in PROD env. It is Not Recommeded",UNABLE_TO_CLEAR_VALUE_IN_PROD_ENV:"%s1 clearValue() cannot invoked while in PROD env. It is Not Recommeded",COLLECT_ALT_TEXT_DEPERECATED:"altText is DEPERECATED, passing altText will not have any effect",GET_BY_ID_DEPRECATED:"getById is deprecated, use new get method",INPUT_FORMATTING_NOT_SUPPROTED:"format or translation are not supported on %s1 element type.",INVALID_INPUT_TRANSLATION:"invalid or unsupported translation provided for %s1 element type."}};var A,R,b,w,S,D,x,M,P="collect_controller",C="reveal_controller",j="element",U={COLLECT:"COLLECT",REVEAL:"REVEAL",COMPOSE:"COMPOSABLE"},k={MOUNTED:"MOUNTED",READY:"FRAME_READY"},V={ELEMENT_ID:"element_id",ELEMENT_TYPE:U,ELEMENT_TYPE_KEY:"element_type",DIV_ID:"div_id",CONTAINER_ID:"container_id",CONTAINER_NAME:"container_name",SESSION_ID:"session_id",VAULT_ID:"vault_id",VAULT_URL:"vault_url",EVENTS:k,EVENTS_KEY:"events",CREATED_AT:"created_at",REGION:"region",MOUNT_START_TIME:"mount_start_time",MOUNT_END_TIME:"mount_end_time",ERROR:"error",LATENCY:"latency",STATUS:{SUCCESS:"SUCCESS",INITIALIZED:"INITIALIZED",PARTIAL_RENDER:"PARTIAL_RENDER",FAILED:"FAILED"}},Y="INSERT",F="DETOKENIZE",G="GET_BY_SKYFLOWID",B="GET",X="DELETE",K={CHANGE:"CHANGE",READY:"READY",FOCUS:"FOCUS",BLUR:"BLUR",ESCAPE:"ESCAPE",CLICK:"CLICK",ERROR:"ERROR",SUCCESS:"SUCCESS",SUBMIT:"SUBMIT",CREATED:"CREATED",MOUNTED:"MOUNTED",HEIGHT:"HEIGHT"},W={FRAME_READY:"FRAME_READY",READY_FOR_CLIENT:"READY_FOR_CLIENT",TOKENIZATION_REQUEST:"TOKENIZATION_REQUEST",INPUT_EVENT:"INPUT_EVENT",DESTROY_FRAME:"DESTROY FRAME",SET_VALUE:"SET_VALUE",CLIENT_REQUEST:"CLIENT_REQUEST",GET_ACCESS_TOKEN:"GET_ACCESS_TOKEN",REVEAL_REQUEST:"REVEAL_REQUEST",REVEAL_RESPONSE_READY:"REVEAL_RESPONSE_READY",REVEAL_FRAME_READY:"REVEAL_FRAME_READY",REVEAL_GET_ACCESS_TOKEN:"REVEAL_GET_ACCESS_TOKEN",PUREJS_REQUEST:"PUREJS_REQUEST",PUREJS_FRAME_READY:"PUREJS_FRAME_READY",PUREJS_GET_ACCESS_TOKEN:"PUREJS_GET_ACCESS_TOKEN",GET_BEARER_TOKEN:"GET_BEARER_TOKEN",GET_COLLECT_ELEMENT:"GET_COLLECT_ELEMENT",GET_REVEAL_ELEMENT:"GET_REVEAL_ELEMENT",COLLECT_ELEMENT_SET_ERROR:"COLLECT_ELEMENT_SET_ERROR",COLLECT_ELEMENT_SET_ERROR_OVERRIDE:"COLLECT_ELEMENT_SET_ERROR_OVERRIDE",REVEAL_ELEMENT_SET_ERROR:"REVEAL_ELEMENT_SET_ERROR",REVEAL_ELEMENT_UPDATE_OPTIONS:"REVEAL_ELEMENT_UPDATE_OPTIONS",FILE_UPLOAD:"FILE_UPLOAD",COMPOSABLE_UPDATE_OPTIONS:"COMPOSABLE_UPDATE_OPTIONS",RENDER_FILE_RESPONSE_READY:"RENDER_FILE_RESPONSE_READY",RENDER_FILE_REQUEST:"RENDER_FILE_REQUEST",PUSH_EVENT:"PUSH_EVENT"},q="TOKEN",z="ALT_TEXT",H="ELEMENT_PROPS",J="ELEMENT_MOUNTED",Q="ALL_ELEMENTS_MOUNTED",Z="COMPOSABLE_CONTAINER_MOUNTED",$="COLLECT_CONTAINER_MOUNTED",ee="REVEAL_CONTAINER_MOUNTED",te=function(e){return e.CVV="CVV",e.EXPIRATION_DATE="EXPIRATION_DATE",e.CARD_NUMBER="CARD_NUMBER",e.CARDHOLDER_NAME="CARDHOLDER_NAME",e.INPUT_FIELD="INPUT_FIELD",e.PIN="PIN",e.EXPIRATION_MONTH="EXPIRATION_MONTH",e.EXPIRATION_YEAR="EXPIRATION_YEAR",e.FILE_INPUT="FILE_INPUT",e}({}),ne=function(e){return e.VISA="VISA",e.MASTERCARD="MASTERCARD",e.AMEX="AMEX",e.DINERS_CLUB="DINERS_CLUB",e.DISCOVER="DISCOVER",e.JCB="JCB",e.MAESTRO="MAESTRO",e.UNIONPAY="UNIONPAY",e.HIPERCARD="HIPERCARD",e.DEFAULT="DEFAULT",e.UNKNOWN="UNKNOWN",e.CARTES_BANCAIRES="CARTES BANCAIRES",e}({}),re=(o(A={},ne.VISA,"Visa"),o(A,ne.MASTERCARD,"Mastercard"),o(A,ne.AMEX,"Amex"),o(A,ne.DINERS_CLUB,"DinersClub"),o(A,ne.DISCOVER,"Discover"),o(A,ne.JCB,"Jcb"),o(A,ne.MAESTRO,"Maestro"),o(A,ne.UNIONPAY,"Unionpay"),o(A,ne.HIPERCARD,"Hipercard"),o(A,ne.DEFAULT,"Default"),o(A,ne.UNKNOWN,"Unknown"),o(A,ne.CARTES_BANCAIRES,"Cartes Bancaires"),o(R={},ne.AMEX,["XXXX XXXXXX XXXXX",{X:"[0-9]"}]),o(R,ne.VISA,["XXXX XXXX XXXX XXXX",{X:"[0-9]"}]),o(R,ne.MASTERCARD,["XXXX XXXX XXXX XXXX",{X:"[0-9]"}]),o(R,ne.DISCOVER,["XXXX XXXX XXXX XXXX XXX",{X:"[0-9]"}]),o(R,ne.DINERS_CLUB,["XXXX XXXXXX XXXXXX",{X:"[0-9]"}]),o(R,ne.JCB,["XXXX XXXX XXXX XXXX XXX",{X:"[0-9]"}]),o(R,ne.MAESTRO,["XXXX XXXX XXXX XXXX XXX",{X:"[0-9]"}]),o(R,ne.UNIONPAY,["XXXX XXXX XXXX XXXX XXX",{X:"[0-9]"}]),o(R,ne.HIPERCARD,["XXXX XXXX XXXX XXXX XXX",{X:"[0-9]"}]),o(R,ne.DEFAULT,["XXXX XXXX XXXX XXXX XXX",{X:"[0-9]"}]),o(R,ne.UNKNOWN,["XXXX XXXX XXXX XXXX XXX",{X:"[0-9]"}]),R),oe=(o(b={textarea:{name:"textarea",attributes:{type:"textarea"},sensitive:!1},checkbox:{name:"checkbox",attributes:{type:"checkbox"},sensitive:!1},radio:{name:"radio",attributes:{type:"radio"},sensitive:!1},dropdown:{name:"dropdown",attributes:{type:"select"},sensitive:!1}},te.CARDHOLDER_NAME,{name:"cardHolderName",attributes:{type:"text",autocomplete:"cc-name"},sensitive:!0,regex:/^([a-zA-Z\\ \\,\\.\\-\\']{2,})$/}),o(b,te.CARD_NUMBER,{name:"CARD_NUMBER",attributes:{type:"text",autocomplete:"cc-number",inputmode:"numeric"},sensitive:!0,mask:re[ne.DEFAULT],regex:/$|^[\s]*?([0-9]{2,6}[ -]?){3,5}[\s]*/}),o(b,te.EXPIRATION_DATE,{name:"EXPIRATION_DATE",attributes:{type:"text",autocomplete:"cc-exp",inputmode:"numeric"},sensitive:!0}),o(b,te.EXPIRATION_MONTH,{name:"EXPIRATION_MONTH",attributes:{maxLength:2,type:"text",inputmode:"numeric",autocomplete:"cc-exp-month"},sensitive:!0,mask:["XX",{X:"[0-9]"}]}),o(b,te.EXPIRATION_YEAR,{name:"EXPIRATION_YEAR",attributes:{type:"text",inputmode:"numeric",autocomplete:"cc-exp-year"},sensitive:!0}),o(b,te.CVV,{name:"CVV",attributes:{type:"text",inputmode:"numeric",maxLength:4},sensitive:!0,regex:/^$|^[0-9]{3,4}$/}),o(b,te.INPUT_FIELD,{name:"INPUT_FIELD",sensitive:!0,attributes:{type:"text"}}),o(b,te.PIN,{name:"PIN",attributes:{type:"text",inputmode:"numeric",maxLength:12,minLength:4},sensitive:!0,regex:/^$|^[0-9]{4,12}$/}),o(b,te.FILE_INPUT,{name:"FILE_INPUT",sensitive:!0,attributes:{type:"file"}}),b),ie="XXXX-XXXX-XXXX-XXXX",ae={height:"100%",width:"100%",margin:0,padding:0,border:0,position:"absolute",top:0,left:0,"user-select":"none"},ce={position:"absolute",top:0,width:0,height:0,visibility:"hidden",left:"-99999999px","user-select":"none"},le={width:"100%",height:"100%",border:"0",padding:"0",margin:"0",outline:"none"},se={WEBPACKAUTOFILL:"-webkit-autofill",BASE:"base",FOCUS:"focus",COMPLETE:"complete",EMPTY:"empty",INVALID:"invalid",GLOBAL:"global",REQUIRED_ASTERISK:"requiredAsterisk"},pe=(o({},se.BASE,{maxHeight:"100%",maxWidth:"100%"}),o({},se.BASE,{"margin-bottom":"4px"}),o({},se.BASE,{"margin-bottom":"4px",display:"flex",flexDirection:"column",justifyContent:"space-between"}),o({},se.BASE,{marginTop:"4px"}),o(w={},se.BASE,{marginBottom:"4px"}),o(w,se.REQUIRED_ASTERISK,{display:"inline",color:"red"}),o(S={},ne.VISA,{regex:/^4\d*/,maxCardLength:19,cardLengthRange:[13,16]}),o(S,ne.MASTERCARD,{regex:/^(5[1-5]|222[1-9]|22[3-9]|2[3-6]|27[0-1]|2720)\d*/,maxCardLength:16,cardLengthRange:[16]}),o(S,ne.AMEX,{regex:/^3[47]\d*/,maxCardLength:15,cardLengthRange:[15]}),o(S,ne.DINERS_CLUB,{regex:/^(36|38|30[0-5])\d*/,maxCardLength:16,cardLengthRange:[14,15,16,17,18,19]}),o(S,ne.DISCOVER,{regex:/^(6011|65|64[4-9]|622)\d*/,maxCardLength:16,cardLengthRange:[16,17,18,19]}),o(S,ne.JCB,{regex:/^35\d*/,maxCardLength:19,cardLengthRange:[16,17,18,19]}),o(S,ne.HIPERCARD,{regex:/^606282\d*/,maxCardLength:19,cardLengthRange:[14,15,16,17,18,19]}),o(S,ne.UNIONPAY,{regex:/^62\d*/,maxCardLength:19,cardLengthRange:[16,17,18,19]}),o(S,ne.MAESTRO,{regex:/^(5018|5020|5038|5043|5[6-9]|6020|6304|6703|6759|676[1-3])\d*/,maxCardLength:19,cardLengthRange:[12,13,14,15,16,17,18,19]}),S),ue=(o(D={},ne.DEFAULT,f),o(D,ne.AMEX,_),o(D,ne.CARTES_BANCAIRES,g),o(D,ne.DINERS_CLUB,I),o(D,ne.DISCOVER,m),o(D,ne.HIPERCARD,v),o(D,ne.JCB,y),o(D,ne.MAESTRO,T),o(D,ne.MASTERCARD,O),o(D,ne.UNIONPAY,N),o(D,ne.VISA,L),"MM/YY"),Ee=[ue,"YYYY/MM","YY/MM","MM/YYYY"],de=["YY","YYYY"],fe=function(e){return e.APPLICATIONORJSON="application/json",e.TEXTORPLAIN="text/plain",e.TEXTORXML="text/xml",e.FORMURLENCODED="application/x-www-form-urlencoded",e.FORMDATA="multipart/form-data",e}({}),_e=(te.CARD_NUMBER,te.EXPIRATION_DATE,te.EXPIRATION_MONTH,te.EXPIRATION_YEAR,o(x={},te.CVV,"Invalid cvv"),o(x,te.EXPIRATION_DATE,"Invalid expiration date"),o(x,te.CARD_NUMBER,"Invalid card number"),o(x,te.CARDHOLDER_NAME,"Invalid cardholder name"),o(x,te.INPUT_FIELD,h.errorLogs.INVALID_COLLECT_VALUE),o(x,te.PIN,"Invalid pin"),o(x,te.EXPIRATION_MONTH,"Invalid expiration month"),o(x,te.EXPIRATION_YEAR,"Invalid expiration year"),o(x,te.FILE_INPUT,h.errorLogs.INVALID_COLLECT_VALUE),o(M={},te.CVV,"cvv is required"),o(M,te.EXPIRATION_DATE,"expiration date is required"),o(M,te.CARD_NUMBER,"card number is required"),o(M,te.CARDHOLDER_NAME,"cardholder name is required"),o(M,te.INPUT_FIELD,h.errorLogs.DEFAULT_REQUIRED_COLLECT_VALUE),o(M,te.PIN,"pin is required"),o(M,te.EXPIRATION_MONTH,"expiration month is required"),o(M,te.EXPIRATION_YEAR,"expiration year is required"),o(M,te.FILE_INPUT,h.errorLogs.DEFAULT_REQUIRED_COLLECT_VALUE),[te.CARDHOLDER_NAME,te.EXPIRATION_MONTH,te.FILE_INPUT,te.PIN,te.CVV]),Ie={X:"[0-9]"};function me(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ve(e,t){if(e){if("string"==typeof e)return me(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?me(e,t):void 0}}function ye(e){return function(e){if(Array.isArray(e))return me(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ve(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Te(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Oe(e,t){return Oe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Oe(e,t)}function Ne(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Oe(e,t)}function Le(t,n){if(n&&("object"===e(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return Te(t)}function ge(e){return ge=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ge(e)}function he(e,t,n){return he=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&Oe(o,n.prototype),o},he.apply(null,arguments)}function Ae(e){var t="function"==typeof Map?new Map:void 0;return Ae=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return he(e,arguments,ge(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Oe(r,e)},Ae(e)}var Re=function(e){return e.DEFAULT="DEFAULT",e.PLAIN_TEXT="PLAIN_TEXT",e.MASKED="MASKED",e.REDACTED="REDACTED",e}({}),be=function(e){return e.GET="GET",e.POST="POST",e.PUT="PUT",e.PATCH="PATCH",e.DELETE="DELETE",e}({}),we=function(e){return e.CHANGE="CHANGE",e.READY="READY",e.FOCUS="FOCUS",e.BLUR="BLUR",e.SUBMIT="SUBMIT",e}({}),Se=function(e){return e.WARN="WARN",e.INFO="INFO",e.DEBUG="DEBUG",e.ERROR="ERROR",e}({}),De=function(e){return e.DEV="DEV",e.PROD="PROD",e}({}),xe=function(e){return e.LOG="LOG",e.WARN="WARN",e.ERROR="ERROR",e}({}),Me=function(e){return e.REGEX_MATCH_RULE="REGEX_MATCH_RULE",e.LENGTH_MATCH_RULE="LENGTH_MATCH_RULE",e.ELEMENT_VALUE_MATCH_RULE="ELEMENT_VALUE_MATCH_RULE",e}({}),Pe=n(5108),Ce={DEBUG:{showDebugLogs:!0,showInfoLogs:!0,showWarnLogs:!0,showErrorLogs:!0},INFO:{showDebugLogs:!1,showInfoLogs:!0,showWarnLogs:!0,showErrorLogs:!0},WARN:{showDebugLogs:!1,showInfoLogs:!1,showWarnLogs:!0,showErrorLogs:!0},ERROR:{showDebugLogs:!1,showInfoLogs:!1,showWarnLogs:!1,showErrorLogs:!0}},je={PROD:{doesReturnValue:!1},DEV:{doesReturnValue:!0}},Ue="[Skyflow]",ke=function(e,t,n){if(n&&Ce[n]){var r=Ce[n],o=r.showDebugLogs,i=r.showInfoLogs,a=r.showWarnLogs,c=r.showErrorLogs;t===xe.LOG&&o?Pe.log("".concat(Se.DEBUG,": ").concat(Ue," ").concat(e)):t===xe.LOG&&i?Pe.log("".concat(Se.INFO,": ").concat(Ue," ").concat(e)):t===xe.WARN&&a?Pe.warn("".concat(Se.WARN,": ").concat(Ue," ").concat(e)):t===xe.ERROR&&c&&Pe.error("".concat(Se.ERROR,": ").concat(Ue," ").concat(e))}},Ve=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t.filter((function(e,t){return 0!==t}));return r?r.replace(/%s[0-9]+/g,(function(e){var t=e.replace("%s","")-1;return o[t]})):""},Ye=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split(":");if("group"===e[1])return"composable container";var t=atob(e[2]);return-1!==t.indexOf(":")&&(t=t.substring(0,t.indexOf(":"))),t};function Fe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ge(e);if(t){var o=ge(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Le(this,n)}}var Ge=function(e){Ne(n,e);var t=Fe(n);function n(e,r){var a,c=arguments.length>2&&void 0!==arguments[2]&&arguments[2];i(this,n);var l={code:e.code,description:r&&(null==r?void 0:r.length)>0?Ve.apply(void 0,[e.description].concat(ye(r))):e.description};return o(Te(a=t.call(this,l.description)),"error",void 0),o(Te(a),"errors",void 0),c?a.error=l:a.errors=[l],a}return c(n)}(Ae(Error));const Be={INVALID_FILE_NAME:{code:400,description:h.errorLogs.INVALID_FILE_NAME},INVALID_FIELD:{code:400,description:h.errorLogs.INVALID_FIELD},VAULTID_IS_REQUIRED:{code:400,description:h.errorLogs.VAULTID_IS_REQUIRED},EMPTY_VAULTID_IN_INIT:{code:400,description:h.errorLogs.EMPTY_VAULTID_IN_INIT},VAULTURL_IS_REQUIRED:{code:400,description:h.errorLogs.VAULTURL_IS_REQUIRED},EMPTY_VAULTURL_IN_INIT:{code:400,description:h.errorLogs.EMPTY_VAULTURL_IN_INIT},INVALID_VAULTURL_IN_INIT:{code:400,description:h.errorLogs.INVALID_VAULTURL_IN_INIT},GET_BEARER_TOKEN_IS_REQUIRED:{code:400,description:h.errorLogs.GET_BEARER_TOKEN_IS_REQUIRED},EMPTY_CONTAINER_TYPE:{code:400,description:h.errorLogs.EMPTY_CONTAINER_TYPE},INVALID_CONTAINER_TYPE:{code:400,description:h.errorLogs.INVALID_CONTAINER_TYPE},UNIQUE_ELEMENT_NAME:{code:400,description:h.errorLogs.UNIQUE_ELEMENT_NAME},ELEMENTS_NOT_MOUNTED:{code:400,description:h.errorLogs.ELEMENTS_NOT_MOUNTED},MISSING_TABLE_IN_COLLECT:{code:400,description:h.errorLogs.MISSING_TABLE_IN_COLLECT},MISSING_SKYFLOWID_KEY_REVEAL:{code:400,description:h.errorLogs.MISSING_SKYFLOWID_KEY_REVEAL},EMPTY_TABLE_IN_COLLECT:{code:400,description:h.errorLogs.EMPTY_TABLE_IN_COLLECT},EMPTY_SKYFLOW_ID_IN_ADDITIONAL_FIELDS:{code:400,description:h.errorLogs.EMPTY_SKYFLOW_ID_IN_ADDITIONAL_FIELDS},INVALID_TABLE_IN_COLLECT:{code:400,description:h.errorLogs.INVALID_TABLE_IN_COLLECT},INVALID_SKYFLOWID_IN_COLLECT:{code:400,description:h.errorLogs.INVALID_SKYFLOWID_IN_COLLECT},MISSING_COLUMN_IN_COLLECT:{code:400,description:h.errorLogs.MISSING_COLUMN_IN_COLLECT},MISSING_SKYFLOWID_IN_COLLECT:{code:400,description:h.errorLogs.MISSING_SKYFLOWID_IN_COLLECT},EMPTY_COLUMN_IN_COLLECT:{code:400,description:h.errorLogs.EMPTY_TABLE_IN_COLLECT},INVALID_COLUMN_IN_COLLECT:{code:400,description:h.errorLogs.INVALID_COLUMN_IN_COLLECT},CLIENT_CONNECTION:{code:400,description:h.errorLogs.CLIENT_CONNECTION},RECORDS_KEY_NOT_FOUND:{code:404,description:h.errorLogs.RECORDS_KEY_NOT_FOUND},EMPTY_RECORDS_IN_INSERT:{code:400,description:h.errorLogs.EMPTY_RECORDS_IN_INSERT},INVALID_RECORDS_IN_INSERT:{code:404,description:h.errorLogs.INVALID_RECORDS_IN_INSERT},INVALID_TABLE_IN_INSERT:{code:400,description:h.errorLogs.INVALID_TABLE_IN_INSERT},EMPTY_TABLE_IN_INSERT:{code:400,description:h.errorLogs.EMPTY_TABLE_IN_INSERT},MISSING_TABLE_IN_INSERT:{code:400,description:h.errorLogs.MISSING_TABLE_IN_INSERT},EMPTY_FIELDS_IN_INSERT:{code:400,description:h.errorLogs.EMPTY_FIELDS_IN_INSERT},MISSING_FIELDS_IN_INSERT:{code:404,description:h.errorLogs.MISSING_FIELDS_IN_INSERT},INVALID_FIELDS_IN_INSERT:{code:404,description:h.errorLogs.INVALID_FIELDS_IN_INSERT},INVALID_TOKENS_IN_INSERT:{code:404,description:h.errorLogs.INVALID_TOKENS_IN_INSERT},RECORDS_KEY_NOT_FOUND_DETOKENIZE:{code:404,description:h.errorLogs.RECORDS_KEY_NOT_FOUND_DETOKENIZE},EMPTY_RECORDS_DETOKENIZE:{code:400,description:h.errorLogs.EMPTY_RECORDS_DETOKENIZE},INVALID_RECORDS_IN_DETOKENIZE:{code:404,description:h.errorLogs.INVALID_RECORDS_IN_DETOKENIZE},MISSING_TOKEN_IN_DETOKENIZE:{code:400,description:h.errorLogs.MISSING_TOKEN_IN_DETOKENIZE},INVALID_TOKEN_IN_DETOKENIZE:{code:400,description:h.errorLogs.INVALID_TOKEN_IN_DETOKENIZE},RECORDS_KEY_NOT_FOUND_GET:{code:400,description:h.errorLogs.RECORDS_KEY_NOT_FOUND_GET},INVALID_RECORDS_IN_GET:{code:400,description:h.errorLogs.INVALID_RECORDS_IN_GET},EMPTY_RECORDS_GET:{code:400,description:h.errorLogs.EMPTY_RECORDS_GET},MISSING_IDS_IN_GET:{code:400,description:h.errorLogs.MISSING_IDS_IN_GET},INVALID_IDS_IN_GET:{code:400,description:h.errorLogs.INVALID_IDS_IN_GET},INVALID_COLUMN_VALUES_IN_GET:{code:400,description:h.errorLogs.INVALID_COLUMN_VALUES_IN_GET},EMPTY_IDS_IN_GET:{code:400,description:h.errorLogs.EMPTY_IDS_IN_GET},INVALID_SKYFLOWID_TYPE_IN_GET:{code:400,description:h.errorLogs.INVALID_SKYFLOWID_TYPE_IN_GET},MISSING_TABLE_IN_GET:{code:400,description:h.errorLogs.MISSING_TABLE_IN_GET},INVALID_TABLE_IN_GET:{code:400,description:h.errorLogs.INVALID_TABLE_IN_GET},MISSING_REDACTION_IN_GET:{code:400,description:h.errorLogs.MISSING_REDACTION_IN_GET},INVALID_REDACTION_TYPE_IN_GET:{code:400,description:h.errorLogs.INVALID_REDACTION_TYPE_IN_GET},INVALID_TOKENS_IN_GET:{code:400,description:h.errorLogs.INVALID_TOKENS_IN_GET},TOKENS_GET_COLUMN_NOT_SUPPORTED:{code:400,description:h.errorLogs.TOKENS_GET_COLUMN_NOT_SUPPORTED},REDACTION_WITH_TOKENS_NOT_SUPPORTED:{code:400,description:h.errorLogs.REDACTION_WITH_TOKENS_NOT_SUPPORTED},INVALID_REDACTION_TYPE_IN_DETOKENIZE:{code:400,description:h.errorLogs.INVALID_REDACTION_TYPE_IN_DETOKENIZE},INVALID_TOKENS_IN_COLLECT:{code:404,description:h.errorLogs.INVALID_TOKENS_IN_COLLECT},RECORDS_KEY_NOT_FOUND_IN_ADDITIONAL_FIELDS:{code:404,description:h.errorLogs.RECORDS_KEY_NOT_FOUND_IN_ADDITIONAL_FIELDS},INVALID_RECORDS_IN_ADDITIONAL_FIELDS:{code:404,description:h.errorLogs.INVALID_RECORDS_IN_ADDITIONAL_FIELDS},EMPTY_RECORDS_IN_ADDITIONAL_FIELDS:{code:400,description:h.errorLogs.EMPTY_RECORDS_IN_ADDITIONAL_FIELDS},MISSING_TABLE_IN_ADDITIONAL_FIELDS:{code:400,description:h.errorLogs.MISSING_TABLE_IN_ADDITIONAL_FIELDS},INVALID_TABLE_IN_ADDITIONAL_FIELDS:{code:400,description:h.errorLogs.INVALID_TABLE_IN_ADDITIONAL_FIELDS},INVALID_SKYFLOW_ID_IN_ADDITIONAL_FIELDS:{code:400,description:h.errorLogs.INVALID_SKYFLOW_ID_IN_ADDITIONAL_FIELDS},MISSING_FIELDS_IN_ADDITIONAL_FIELDS:{code:400,description:h.errorLogs.MISSING_FIELDS_IN_ADDITIONAL_FIELDS},INVALID_FIELDS_IN_ADDITIONAL_FIELDS:{code:400,description:h.errorLogs.INVALID_FIELDS_IN_ADDITIONAL_FIELDS},RECORDS_KEY_NOT_FOUND_DELETE:{code:400,description:h.errorLogs.RECORDS_KEY_NOT_FOUND_DELETE},EMPTY_RECORDS_IN_DELETE:{code:400,description:h.errorLogs.EMPTY_RECORDS_IN_DELETE},INVALID_RECORDS_IN_DELETE:{code:404,description:h.errorLogs.INVALID_RECORDS_IN_DELETE},INVALID_TABLE_IN_DELETE:{code:400,description:h.errorLogs.INVALID_TABLE_IN_DELETE},EMPTY_TABLE_IN_DELETE:{code:400,description:h.errorLogs.EMPTY_TABLE_IN_DELETE},MISSING_TABLE_IN_DELETE:{code:400,description:h.errorLogs.MISSING_TABLE_IN_DELETE},EMPTY_ID_IN_DELETE:{code:400,description:h.errorLogs.EMPTY_ID_IN_DELETE},MISSING_ID_IN_DELETE:{code:404,description:h.errorLogs.MISSING_ID_IN_DELETE},INVALID_ID_IN_DELETE:{code:404,description:h.errorLogs.INVALID_ID_IN_DELETE},EMPTY_RECORDS_REVEAL:{code:400,description:h.errorLogs.EMPTY_RECORDS_REVEAL},MISSING_TOKEN_KEY_REVEAL:{code:400,description:h.errorLogs.MISSING_TOKEN_KEY_REVEAL},INVALID_TOKEN_ID_REVEAL:{code:400,description:h.errorLogs.INVALID_TOKEN_ID_REVEAL},INVALID_LABEL_REVEAL:{code:400,description:h.errorLogs.INVALID_LABEL_REVEAL},INVALID_ALT_TEXT_REVEAL:{code:400,description:h.errorLogs.INVALID_ALT_TEXT_REVEAL},INVALID_ALT_TEXT_RENDER:{code:400,description:h.errorLogs.INVALID_ALT_TEXT_RENDER},INVALID_FORMAT_REVEAL:{code:400,description:h.errorLogs.INVALID_FORMAT_REVEAL},EMPTY_FORMAT_REVEAL:{code:400,description:h.errorLogs.EMPTY_FORMAT_REVEAL},INVALID_FORMAT_VALUE_REVEAL:{code:400,description:h.errorLogs.INVALID_FORMAT_VALUE_REVEAL},INVALID_REDACTION_TYPE_REVEAL:{code:400,description:h.errorLogs.INVALID_REDACTION_TYPE_REVEAL},EMPTY_TABLE_IN_ADDITIONAL_FIELDS:{code:400,description:h.errorLogs.EMPTY_TABLE_IN_ADDITIONAL_FIELDS},EMPTY_FIELDS_IN_ADDITIONAL_FIELDS:{code:400,description:h.errorLogs.EMPTY_FIELDS_IN_ADDITIONAL_FIELDS},EMPTY_TOKEN_IN_DETOKENIZE:{code:400,description:h.errorLogs.EMPTY_TOKEN_IN_DETOKENIZE},EMPTY_SKYFLOWID_IN_GET:{code:400,description:h.errorLogs.EMPTY_SKYFLOWID_IN_GET},EMPTY_TABLE_IN_GET:{code:400,description:h.errorLogs.EMPTY_TABLE_IN_GET},EMPTY_REDACTION_TYPE_IN_GET:{code:400,description:h.errorLogs.EMPTY_REDACTION_TYPE_IN_GET},EMPTY_TOKEN_ID_REVEAL:{code:400,description:h.errorLogs.EMPTY_TOKEN_ID_REVEAL},DUPLICATE_ELEMENT:{code:400,description:h.errorLogs.DUPLICATE_ELEMENT},DUPLICATE_ELEMENT_ADDITIONAL_FIELDS:{code:400,description:h.errorLogs.DUPLICATE_ELEMENT_ADDITIONAL_FIELDS},MISSING_ELEMENT_TYPE:{code:400,description:h.errorLogs.MISSING_ELEMENT_TYPE},EMPTY_ELEMENT_TYPE:{code:400,description:h.errorLogs.EMPTY_ELEMENT_TYPE},INVALID_ALLOWED_OPTIONS:{code:400,description:h.errorLogs.INVALID_ALLOWED_OPTIONS},EMPTY_ALLOWED_OPTIONS_ARRAY:{code:400,description:h.errorLogs.EMPTY_ALLOWED_OPTIONS_ARRAY},INVALID_ALLOWED_FILETYPE_ARRAY:{code:400,description:h.errorLogs.INVALID_ALLOWED_FILETYPE_ARRAY},INVALID_ELEMENT_TYPE:{code:400,description:h.errorLogs.INVALID_ELEMENT_TYPE},INVALID_ELEMENT_SELECTOR:{code:400,description:h.errorLogs.INVALID_ELEMENT_SELECTOR},FRAME_NOT_FOUND:{code:400,description:h.errorLogs.FRAME_NOT_FOUND},REQUIRED_PARAMS_NOT_PROVIDED:{code:400,description:h.errorLogs.REQUIRED_PARAMS_NOT_PROVIDED},INVALID_RECORD_COLUMN_VALUE:{code:400,description:h.errorLogs.INVALID_RECORD_COLUMN_VALUE},MISSING_RECORD_COLUMN_VALUE:{code:400,description:h.errorLogs.MISSING_RECORD_COLUMN_VALUE},MISSING_RECORD_COLUMN_NAME:{code:400,description:h.errorLogs.MISSING_RECORD_COLUMN_NAME},INVALID_EVENT_TYPE:{code:400,description:h.errorLogs.INVALID_EVENT_TYPE},INVALID_EVENT_LISTENER:{code:400,description:h.errorLogs.INVALID_EVENT_LISTENER},MISSING_HANDLER_IN_EVENT_LISTENER:{code:400,description:h.errorLogs.MISSING_HANDLER_IN_EVENT_LISTENER},INVALID_HANDLER_IN_EVENT_LISTENER:{code:400,description:h.errorLogs.INVALID_HANDLER_IN_EVENT_LISTENER},UNKNOWN_ERROR:{code:400,description:h.errorLogs.UNKNOWN_ERROR},CONNECTION_ERROR:{code:400,description:h.errorLogs.CONNECTION_ERROR},NETWORK_ERROR:{code:500,description:h.errorLogs.NETWORK_ERROR},COMPLETE_AND_VALID_INPUTS:{code:400,description:h.errorLogs.COMPLETE_AND_VALID_INPUTS},INVALID_VALIDATIONS_TYPE:{code:400,description:h.errorLogs.INVALID_VALIDATIONS_TYPE},MISSING_VALIDATION_RULE_TYPE:{code:400,description:h.errorLogs.MISSING_VALIDATION_RULE_TYPE},INVALID_VALIDATION_RULE_TYPE:{code:400,description:h.errorLogs.INVALID_VALIDATION_RULE_TYPE},MISSING_VALIDATION_RULE_PARAMS:{code:400,description:h.errorLogs.MISSING_VALIDATION_RULE_PARAMS},INVALID_VALIDATION_RULE_PARAMS:{code:400,description:h.errorLogs.INVALID_VALIDATION_RULE_PARAMS},MISSING_REGEX_IN_REGEX_MATCH_RULE:{code:400,description:h.errorLogs.MISSING_REGEX_IN_REGEX_MATCH_RULE},INVALID_REGEX_IN_REGEX_MATCH_RULE:{code:400,description:h.errorLogs.INVALID_REGEX_IN_REGEX_MATCH_RULE},MISSING_MIN_AND_MAX_IN_LENGTH_MATCH_RULE:{code:400,description:h.errorLogs.MISSING_MIN_AND_MAX_IN_LENGTH_MATCH_RULE},MISSING_ELEMENT_IN_ELEMENT_MATCH_RULE:{code:400,description:h.errorLogs.MISSING_ELEMENT_IN_ELEMENT_MATCH_RULE},INVALID_ELEMENT_IN_ELEMENT_MATCH_RULE:{code:400,description:h.errorLogs.INVALID_ELEMENT_IN_ELEMENT_MATCH_RULE},ELEMENT_NOT_MOUNTED_IN_ELEMENT_MATCH_RULE:{code:400,description:h.errorLogs.ELEMENT_NOT_MOUNTED_IN_ELEMENT_MATCH_RULE},EMPTY_ELEMENT_IN_MOUNT:{code:400,description:h.errorLogs.EMPTY_ELEMENT_IN_MOUNT},REVEAL_ELEMENT_ERROR_STATE:{code:400,description:h.errorLogs.REVEAL_ELEMENT_ERROR_STATE},INVALID_FILE_TYPE:{code:400,description:h.errorLogs.INVALID_FILE_TYPE},INVALID_FILE_SIZE:{code:400,description:h.errorLogs.INVALID_FILE_SIZE},NO_FILE_SELECTED:{code:400,description:h.errorLogs.NO_FILE_SELECTED},INVALID_TABLE_IN_UPSERT_OPTION:{code:400,description:h.errorLogs.INVALID_TABLE_IN_UPSERT_OPTION},INVALID_COLUMN_IN_UPSERT_OPTION:{code:400,description:h.errorLogs.INVALID_COLUMN_IN_UPSERT_OPTION},INVALID_UPSERT_OPTION_TYPE:{code:400,description:h.errorLogs.INVALID_UPSERT_OPTION_TYPE},EMPTY_UPSERT_OPTIONS_ARRAY:{code:400,description:h.errorLogs.EMPTY_UPSERT_OPTIONS_ARRAY},INVALID_UPSERT_OPTION_OBJECT_TYPE:{code:400,description:h.errorLogs.INVALID_UPSERT_OPTION_OBJECT_TYPE},MISSING_TABLE_IN_UPSERT_OPTION:{code:400,description:h.errorLogs.MISSING_TABLE_IN_UPSERT_OPTION},MISSING_COLUMN_IN_UPSERT_OPTION:{code:400,description:h.errorLogs.MISSING_COLUMN_IN_UPSERT_OPTION},INVALID_RECORD_COLUMN_VALUE_TYPE:{code:400,description:h.errorLogs.INVALID_RECORD_COLUMN_VALUE_TYPE},INVALID_COLUMN_VALUES_TYPE:{code:400,description:h.errorLogs.INVALID_COLUMN_VALUES_TYPE},EMPTY_RECORD_COLUMN_VALUES:{code:400,description:h.errorLogs.EMPTY_RECORD_COLUMN_VALUES},EMPTY_COLUMN_VALUE:{code:400,description:h.errorLogs.EMPTY_COLUMN_VALUE},MISSING_IDS_OR_COLUMN_VALUES_IN_GET:{code:400,description:h.errorLogs.MISSING_IDS_OR_COLUMN_VALUES_IN_GET},SKYFLOW_IDS_AND_COLUMN_NAME_BOTH_SPECIFIED:{code:400,description:h.errorLogs.SKYFLOW_IDS_AND_COLUMN_NAME_BOTH_SPECIFIED},SKYFLOW_IDS_AND_TOKEN_BOTH_SPECIFIED:{code:400,description:h.errorLogs.SKYFLOW_IDS_AND_TOKEN_BOTH_SPECIFIED},MISSING_TABLE_KEY_REVEAL:{code:400,description:h.errorLogs.MISSING_TABLE_KEY_REVEAL},MISSING_COLUMN_KEY_REVEAL:{code:400,description:h.errorLogs.MISSING_COLUMN_KEY_REVEAL},INVALID_SKYFLOW_ID_REVEAL:{code:400,description:h.errorLogs.INVALID_SKYFLOW_ID_REVEAL},INVALID_TABLE_REVEAL:{code:400,description:h.errorLogs.INVALID_TABLE_REVEAL},INVALID_COLUMN_NAME_REVEAL:{code:400,description:h.errorLogs.INVALID_COLUMN_NAME_REVEAL},EMPTY_SKYFLOW_ID_REVEAL:{code:400,description:h.errorLogs.EMPTY_SKYFLOW_ID_REVEAL},EMPTY_TABLE_REVEAL:{code:400,description:h.errorLogs.EMPTY_TABLE_REVEAL},EMPTY_COLUMN_NAME_REVEAL:{code:400,description:h.errorLogs.EMPTY_COLUMN_NAME_REVEAL},RECORDS_KEY_NOT_FOUND_GETBYID:{code:400,description:h.errorLogs.RECORDS_KEY_NOT_FOUND_GETBYID},INVALID_RECORDS_IN_GETBYID:{code:400,description:h.errorLogs.INVALID_RECORDS_IN_GETBYID},EMPTY_RECORDS_GETBYID:{code:400,description:h.errorLogs.EMPTY_RECORDS_GETBYID},MISSING_IDS_IN_GETBYID:{code:400,description:h.errorLogs.MISSING_IDS_IN_GETBYID},INVALID_IDS_IN_GETBYID:{code:400,description:h.errorLogs.INVALID_IDS_IN_GETBYID},EMPTY_IDS_IN_GETBYID:{code:400,description:h.errorLogs.EMPTY_IDS_IN_GETBYID},INVALID_SKYFLOWID_TYPE_IN_GETBYID:{code:400,description:h.errorLogs.INVALID_SKYFLOWID_TYPE_IN_GETBYID},MISSING_TABLE_IN_GETBYID:{code:400,description:h.errorLogs.MISSING_TABLE_IN_GETBYID},INVALID_TABLE_IN_GETBYID:{code:400,description:h.errorLogs.INVALID_TABLE_IN_GETBYID},MISSING_REDACTION_IN_GETBYID:{code:400,description:h.errorLogs.MISSING_REDACTION_IN_GETBYID},INVALID_REDACTION_TYPE_IN_GETBYID:{code:400,description:h.errorLogs.INVALID_REDACTION_TYPE_IN_GETBYID},EMPTY_SKYFLOWID_IN_GETBYID:{code:400,description:h.errorLogs.EMPTY_SKYFLOWID_IN_GETBYID},EMPTY_TABLE_IN_GETBYID:{code:400,description:h.errorLogs.EMPTY_TABLE_IN_GETBYID},EMPTY_REDACTION_TYPE_IN_GETBYID:{code:400,description:h.errorLogs.EMPTY_REDACTION_TYPE_IN_GETBYID},MISSING_COMPOSABLE_LAYOUT_KEY:{code:400,description:h.errorLogs.MISSING_COMPOSABLE_LAYOUT_KEY},EMPTY_COMPOSABLE_LAYOUT_ARRAY:{code:400,description:h.errorLogs.EMPTY_COMPOSABLE_LAYOUT_ARRAY},INVALID_COMPOSABLE_LAYOUT_TYPE:{code:400,description:h.errorLogs.INVALID_COMPOSABLE_LAYOUT_TYPE},NEGATIVE_VALUES_COMPOSABLE_LAYOUT:{code:400,description:h.errorLogs.NEGATIVE_VALUES_COMPOSABLE_LAYOUT},MISMATCH_ELEMENT_COUNT_LAYOUT_SUM:{code:400,description:h.errorLogs.MISMATCH_ELEMENT_COUNT_LAYOUT_SUM},MISSING_COMPOSABLE_CONTAINER_OPTIONS:{code:400,description:h.errorLogs.MISSING_COMPOSABLE_CONTAINER_OPTIONS},INVALID_COMPOSABLE_CONTAINER_OPTIONS:{code:400,description:h.errorLogs.INVALID_COMPOSABLE_CONTAINER_OPTIONS},COMPOSABLE_CONTAINER_NOT_MOUNTED:{code:400,description:h.errorLogs.COMPOSABLE_CONTAINER_NOT_MOUNTED},INVALID_BOOLEAN_OPTIONS:{code:400,description:h.errorLogs.INVALID_BOOLEAN_OPTIONS},EMPTY_COLLECT_CUSTOM_FORMAT:{code:400,description:h.errorLogs.EMPTY_COLLECT_CUSTOM_FORMAT},INVALID_INPUT_OPTIONS_FORMAT:{code:400,description:h.errorLogs.INVALID_INPUT_OPTIONS_FORMAT},INVALID_INPUT_OPTIONS_TRANSLATION:{code:400,description:h.errorLogs.INVALID_INPUT_OPTIONS_TRANSLATION},INVALID_OPTION_CARD_METADATA:{code:400,description:h.errorLogs.INVALID_OPTION_CARD_METADATA},INVALID_OPTION_CARD_SCHEME:{code:400,description:h.errorLogs.INVALID_OPTION_CARD_SCHEME}},Xe=JSON.parse('{"name":"skyflow-js","preferGlobal":true,"analyze":false,"version":"1.37.1","author":"Skyflow","description":"Skyflow JavaScript SDK","homepage":"https://github.com/skyflowapi/skyflow-js","main":"./dist/sdkNodeBuild/index.js","types":"./types/index-node.d.ts","files":["dist/sdkNodeBuild","types"],"license":"MIT","keywords":["client","sdk","javascript"],"scripts":{"type-check":"tsc --noEmit","type-check:watch":"npm run type-check -- --watch","build:types":"tsc --emitDeclarationOnly","dev":"webpack serve --config=webpack.dev.js --open --hot ","build-browser-sdk":"webpack --config=webpack.skyflow-browser.js","build-node-sdk":"webpack --config=webpack.skyflow-node.js","build-iframe":"webpack --config=webpack.iframe.js","test":"jest --config=jest.config.json"},"repository":{"type":"git","url":"https://github.com/skyflowapi/skyflow-js.git"},"dependencies":{"core-js":"^3.6.5","framebus":"^4.0.0","inject-stylesheet":"^2.0.0","jquery":"^3.5.1","jquery-mask-plugin":"^1.14.16","jss":"^10.7.1","jss-preset-default":"^10.7.1","jwt-decode":"^3.1.2","lodash":"^4.17.21","mime":"3.0.0","regex-parser":"^2.2.11","set-value":"^4.0.1"},"engines":{"node":">=12.0","npm":">=6.0"},"devDependencies":{"@babel/core":"^7.23.2","@babel/plugin-proposal-class-properties":"^7.10.1","@babel/plugin-proposal-decorators":"^7.10.1","@babel/plugin-proposal-object-rest-spread":"^7.10.1","@babel/plugin-transform-runtime":"^7.10.1","@babel/preset-env":"^7.9.6","@babel/preset-typescript":"^7.10.1","@babel/runtime":"^7.10.2","@types/jest":"^27.0.1","@types/jquery-mask-plugin":"^1.14.3","@types/mime":"^3.0.4","@types/node":"^14.0.5","@typescript-eslint/eslint-plugin":"^4.31.2","@typescript-eslint/parser":"^4.31.2","babel-loader":"^9.1.2","clean-webpack-plugin":"^4.0.0-alpha.0","compression-webpack-plugin":"^8.0.1","eslint":"^7.32.0","eslint-config-airbnb-base":"^14.2.1","eslint-config-airbnb-typescript":"^14.0.0","eslint-plugin-import":"^2.26.0","fork-ts-checker-webpack-plugin":"^6.3.2","html-webpack-plugin":"^5.5.0","jest":"^27.2.1","node-polyfill-webpack-plugin":"^2.0.1","typescript":"^4.6.3","webpack":"^5.88.2","webpack-bundle-analyzer":"^4.4.2","webpack-cli":"^4.8.0","webpack-dev-server":"^4.7.4","webpack-manifest-plugin":"^4.0.2","webpack-merge":"^5.8.0"}}');function Ke(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(e,t)||ve(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var We=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(/[\s-]/g,""),t=ne.DEFAULT;return Object.entries(pe).forEach((function(n){var r=Ke(n,2),o=r[0];r[1].regex.test(e)&&(t=o)})),t},qe=function(t,n){if(!t||!Object.prototype.hasOwnProperty.call(t,"records"))throw new Ge(Be.RECORDS_KEY_NOT_FOUND,[],!0);var r=t.records;if(!r||!Array.isArray(r))throw new Ge(Be.INVALID_RECORDS_IN_INSERT,[],!0);if(0===r.length)throw new Ge(Be.EMPTY_RECORDS_IN_INSERT,[],!0);if(r.forEach((function(t,n){if(!t||!Object.prototype.hasOwnProperty.call(t,"table"))throw new Ge(Be.MISSING_TABLE_IN_INSERT,["".concat(n)],!0);if(!t.table)throw new Ge(Be.EMPTY_TABLE_IN_INSERT,["".concat(n)],!0);if(!("string"==typeof t.table||t.table instanceof String))throw new Ge(Be.INVALID_TABLE_IN_INSERT,["".concat(n)],!0);if(!Object.prototype.hasOwnProperty.call(t,"fields"))throw new Ge(Be.MISSING_FIELDS_IN_INSERT,["".concat(n)],!0);if(!t.fields)throw new Ge(Be.EMPTY_FIELDS_IN_INSERT,["".concat(n)],!0);if("object"!==e(t.fields)||Array.isArray(t.fields))throw new Ge(Be.INVALID_FIELDS_IN_INSERT,["".concat(n)],!0)})),n&&n.tokens&&"boolean"!=typeof n.tokens)throw new Ge(Be.INVALID_TOKENS_IN_INSERT,[],!0)},ze=function(t){if(!t||!Object.prototype.hasOwnProperty.call(t,"records"))throw new Ge(Be.RECORDS_KEY_NOT_FOUND_IN_ADDITIONAL_FIELDS,[],!0);var n=t.records;if(!n||!Array.isArray(n))throw new Ge(Be.INVALID_RECORDS_IN_ADDITIONAL_FIELDS,[],!0);if(0===n.length)throw new Ge(Be.EMPTY_RECORDS_IN_ADDITIONAL_FIELDS,[],!0);n.forEach((function(t,n){var r;if(!t||!Object.prototype.hasOwnProperty.call(t,"table"))throw new Ge(Be.MISSING_TABLE_IN_ADDITIONAL_FIELDS,["".concat(n)],!0);if(!t.table)throw new Ge(Be.EMPTY_TABLE_IN_ADDITIONAL_FIELDS,["".concat(n)],!0);if(void 0!==(null===(r=t.fields)||void 0===r?void 0:r.skyflowID)){var o,i,a;if(null===(o=t.fields)||void 0===o||!o.skyflowID)throw new Ge(Be.EMPTY_SKYFLOW_ID_IN_ADDITIONAL_FIELDS,["".concat(n)],!0);if(!("string"==typeof(null===(i=t.fields)||void 0===i?void 0:i.skyflowID)||(null===(a=t.fields)||void 0===a?void 0:a.skyflowID)instanceof String))throw new Ge(Be.INVALID_SKYFLOW_ID_IN_ADDITIONAL_FIELDS,["".concat(n)],!0)}if(!("string"==typeof t.table||t.table instanceof String))throw new Ge(Be.INVALID_TABLE_IN_ADDITIONAL_FIELDS,["".concat(n)],!0);if(!Object.prototype.hasOwnProperty.call(t,"fields"))throw new Ge(Be.MISSING_FIELDS_IN_ADDITIONAL_FIELDS,["".concat(n)],!0);if(!t.fields)throw new Ge(Be.EMPTY_FIELDS_IN_ADDITIONAL_FIELDS,["".concat(n)],!0);if("object"!==e(t.fields)||Array.isArray(t.fields))throw new Ge(Be.INVALID_FIELDS_IN_ADDITIONAL_FIELDS,["".concat(n)],!0)}))},He=function(e){if(!e||!Object.prototype.hasOwnProperty.call(e,"records"))throw new Ge(Be.RECORDS_KEY_NOT_FOUND_DETOKENIZE);var t=e.records;if(!t||!Array.isArray(t))throw new Ge(Be.INVALID_RECORDS_IN_DETOKENIZE);if(0===t.length)throw new Ge(Be.EMPTY_RECORDS_DETOKENIZE);t.forEach((function(e,t){if(!e||!Object.prototype.hasOwnProperty.call(e,"token"))throw new Ge(Be.MISSING_TOKEN_IN_DETOKENIZE,["".concat(t)]);if(!e.token)throw new Ge(Be.EMPTY_TOKEN_IN_DETOKENIZE,["".concat(t)]);if(!("string"==typeof e.token||e.token instanceof String))throw new Ge(Be.INVALID_TOKEN_IN_DETOKENIZE,["".concat(t)]);var n=e.redaction;if(n&&!Object.values(Re).includes(n))throw new Ge(Be.INVALID_REDACTION_TYPE_IN_DETOKENIZE,["".concat(t)])}))},Je=function(e,t){if(!e||!Object.prototype.hasOwnProperty.call(e,"records"))throw new Ge(Be.RECORDS_KEY_NOT_FOUND_GET);var n=e.records;if(!n||!Array.isArray(n))throw new Ge(Be.INVALID_RECORDS_IN_GET,[]);if(0===n.length)throw new Ge(Be.EMPTY_RECORDS_GET);if(t&&Object.prototype.hasOwnProperty.call(t,"tokens")&&"boolean"!=typeof(null==t?void 0:t.tokens))throw new Ge(Be.INVALID_TOKENS_IN_GET);n.forEach((function(e,n){var r,o,i;if(0===Object.keys(e).length)throw new Ge(Be.EMPTY_RECORDS_GET);if(0===(null===(r=e.ids)||void 0===r?void 0:r.length))throw new Ge(Be.EMPTY_IDS_IN_GET,["".concat(n)]);if(!(null==e.ids||e.ids&&Array.isArray(e.ids)))throw new Ge(Be.INVALID_IDS_IN_GET,["".concat(n)]);if(null===(o=e.ids)||void 0===o||o.forEach((function(e){if(!e)throw new Ge(Be.EMPTY_SKYFLOWID_IN_GET,["".concat(n)]);if(!("string"==typeof e||e instanceof String))throw new Ge(Be.INVALID_SKYFLOWID_TYPE_IN_GET,["".concat(n)])})),!Object.prototype.hasOwnProperty.call(e,"table"))throw new Ge(Be.MISSING_TABLE_IN_GET,["".concat(n)]);if(!e.table)throw new Ge(Be.EMPTY_TABLE_IN_GET,["".concat(n)]);if(!("string"==typeof e.table||e.table instanceof String))throw new Ge(Be.INVALID_TABLE_IN_GET,["".concat(n)]);if(!t||!Object.prototype.hasOwnProperty.call(t,"tokens")||!0!==(null==t?void 0:t.tokens)){if(!Object.prototype.hasOwnProperty.call(e,"redaction"))throw new Ge(Be.MISSING_REDACTION_IN_GET,["".concat(n)]);if(!e.redaction)throw new Ge(Be.EMPTY_REDACTION_TYPE_IN_GET,["".concat(n)]);if(!Object.values(Re).includes(e.redaction))throw new Ge(Be.INVALID_REDACTION_TYPE_IN_GET,["".concat(n)])}if(!0===Object.prototype.hasOwnProperty.call(e,"ids")&&!0===Object.prototype.hasOwnProperty.call(e,"columnName"))throw new Ge(Be.SKYFLOW_IDS_AND_COLUMN_NAME_BOTH_SPECIFIED,["".concat(n)]);if(Object.prototype.hasOwnProperty.call(e,"columnName")){if(!Object.prototype.hasOwnProperty.call(e,"columnName")||!Object.prototype.hasOwnProperty.call(e,"columnValues"))throw new Ge(Be.MISSING_RECORD_COLUMN_VALUE,["".concat(n)])}else if(!1===Object.prototype.hasOwnProperty.call(e,"ids")&&!1===Object.prototype.hasOwnProperty.call(e,"columnValues"))throw new Ge(Be.MISSING_IDS_OR_COLUMN_VALUES_IN_GET,["".concat(n)]);if(0===(null===(i=e.columnValues)||void 0===i?void 0:i.length))throw new Ge(Be.EMPTY_RECORD_COLUMN_VALUES,["".concat(n)]);if(!(null==e.columnValues||e.columnValues&&Array.isArray(e.columnValues)))throw new Ge(Be.INVALID_COLUMN_VALUES_IN_GET,["".concat(n)]);if(void 0!==e.columnName&&void 0===e.columnValues)throw new Ge(Be.MISSING_RECORD_COLUMN_VALUE,["".concat(n)]);if(void 0===e.columnName&&void 0!==e.columnValues)throw new Ge(Be.MISSING_RECORD_COLUMN_NAME,["".concat(n)]);var a=e.columnName;if(null!=a&&"string"!=typeof a)throw new Ge(Be.INVALID_RECORD_COLUMN_VALUE,["".concat(n)]);var c=e.columnValues;if(null!=c){if(0===c.length||null===c)throw new Ge(Be.EMPTY_RECORD_COLUMN_VALUES,["".concat(n)]);c.forEach((function(e){if(""===e||null===e)throw new Ge(Be.EMPTY_COLUMN_VALUE,["".concat(n)]);if("string"!=typeof e)throw new Ge(Be.INVALID_RECORD_COLUMN_VALUE_TYPE,["".concat(n)])}))}if(t&&Object.prototype.hasOwnProperty.call(t,"tokens")&&!0===(null==t?void 0:t.tokens)){if(a||c)throw new Ge(Be.TOKENS_GET_COLUMN_NOT_SUPPORTED);if(e.redaction)throw new Ge(Be.REDACTION_WITH_TOKENS_NOT_SUPPORTED)}}))},Qe=function(e){if(!e||!Object.prototype.hasOwnProperty.call(e,"records"))throw new Ge(Be.RECORDS_KEY_NOT_FOUND_GETBYID);var t=e.records;if(!t||!Array.isArray(t))throw new Ge(Be.INVALID_RECORDS_IN_GETBYID,[]);if(0===t.length)throw new Ge(Be.EMPTY_RECORDS_GETBYID);t.forEach((function(e,t){if(!e||!Object.prototype.hasOwnProperty.call(e,"ids"))throw new Ge(Be.MISSING_IDS_IN_GETBYID,["".concat(t)]);if(!e.ids||!Array.isArray(e.ids))throw new Ge(Be.INVALID_IDS_IN_GETBYID,["".concat(t)]);if(0===e.ids.length)throw new Ge(Be.EMPTY_IDS_IN_GETBYID,["".concat(t)]);if(e.ids.forEach((function(e){if(!e)throw new Ge(Be.EMPTY_SKYFLOWID_IN_GETBYID,["".concat(t)]);if(!("string"==typeof e||e instanceof String))throw new Ge(Be.INVALID_SKYFLOWID_TYPE_IN_GETBYID,["".concat(t)])})),!Object.prototype.hasOwnProperty.call(e,"table"))throw new Ge(Be.MISSING_TABLE_IN_GETBYID,["".concat(t)]);if(!e.table)throw new Ge(Be.EMPTY_TABLE_IN_GETBYID,["".concat(t)]);if(!("string"==typeof e.table||e.table instanceof String))throw new Ge(Be.INVALID_TABLE_IN_GETBYID,["".concat(t)]);if(!Object.prototype.hasOwnProperty.call(e,"redaction"))throw new Ge(Be.MISSING_REDACTION_IN_GETBYID,["".concat(t)]);if(!e.redaction)throw new Ge(Be.EMPTY_REDACTION_TYPE_IN_GETBYID,["".concat(t)]);if(!Object.values(Re).includes(e.redaction))throw new Ge(Be.INVALID_REDACTION_TYPE_IN_GETBYID,["".concat(t)])}))},Ze=function(e,t){if(!e||!Object.prototype.hasOwnProperty.call(e,"records"))throw new Ge(Be.RECORDS_KEY_NOT_FOUND_DELETE,[],!0);var n=e.records;if(!n||!Array.isArray(n))throw new Ge(Be.INVALID_RECORDS_IN_DELETE,[],!0);if(0===n.length)throw new Ge(Be.EMPTY_RECORDS_IN_DELETE,[],!0);n.forEach((function(e,t){if(!e||!Object.prototype.hasOwnProperty.call(e,"table"))throw new Ge(Be.MISSING_TABLE_IN_DELETE,["".concat(t)],!0);if(!e.table)throw new Ge(Be.EMPTY_TABLE_IN_DELETE,["".concat(t)],!0);if(!("string"==typeof e.table||e.table instanceof String))throw new Ge(Be.INVALID_TABLE_IN_DELETE,["".concat(t)],!0);if(!Object.prototype.hasOwnProperty.call(e,"id"))throw new Ge(Be.MISSING_ID_IN_DELETE,["".concat(t)],!0);if(!e.id)throw new Ge(Be.EMPTY_ID_IN_DELETE,["".concat(t)],!0);if(!("string"==typeof e.id||e.id instanceof String))throw new Ge(Be.INVALID_ID_IN_DELETE,["".concat(t)],!0)}))},$e=function(e){if(0===e.length)throw new Ge(Be.EMPTY_RECORDS_REVEAL);e.forEach((function(e){if(!e||!Object.prototype.hasOwnProperty.call(e,"skyflowID")){if(!e||!Object.prototype.hasOwnProperty.call(e,"token"))throw new Ge(Be.MISSING_TOKEN_KEY_REVEAL);if(!e.token)throw new Ge(Be.EMPTY_TOKEN_ID_REVEAL);if(!("string"==typeof e.token||e.token instanceof String))throw new Ge(Be.INVALID_TOKEN_ID_REVEAL)}var t=e.redaction;if(t&&!Object.values(Re).includes(t))throw new Ge(Be.INVALID_REDACTION_TYPE_REVEAL);if(Object.prototype.hasOwnProperty.call(e,"label")&&"string"!=typeof e.label)throw new Ge(Be.INVALID_LABEL_REVEAL);if(Object.prototype.hasOwnProperty.call(e,"altText")&&"string"!=typeof e.altText)throw new Ge(Be.INVALID_ALT_TEXT_REVEAL);if(Object.prototype.hasOwnProperty.call(e,"format")&&"string"!=typeof e.format)throw new Ge(Be.INVALID_FORMAT_REVEAL);if(Object.prototype.hasOwnProperty.call(e,"format")&&""===e.format)throw new Ge(Be.EMPTY_FORMAT_REVEAL)}))},et=function(e){if(!e||!Object.prototype.hasOwnProperty.call(e,"skyflowID"))throw new Ge(Be.MISSING_SKYFLOWID_KEY_REVEAL);if(!e.skyflowID)throw new Ge(Be.EMPTY_SKYFLOW_ID_REVEAL);if(Object.prototype.hasOwnProperty.call(e,"skyflowID")&&"string"!=typeof e.skyflowID)throw new Ge(Be.INVALID_SKYFLOW_ID_REVEAL);if(Object.prototype.hasOwnProperty.call(e,"skyflowID")&&Object.prototype.hasOwnProperty.call(e,"token"))throw new Ge(Be.SKYFLOW_IDS_AND_TOKEN_BOTH_SPECIFIED);if(!e||!Object.prototype.hasOwnProperty.call(e,"column"))throw new Ge(Be.MISSING_COLUMN_KEY_REVEAL);if(!e.column)throw new Ge(Be.EMPTY_COLUMN_NAME_REVEAL);if(Object.prototype.hasOwnProperty.call(e,"column")&&"string"!=typeof e.column)throw new Ge(Be.INVALID_COLUMN_NAME_REVEAL);if(!e||!Object.prototype.hasOwnProperty.call(e,"table"))throw new Ge(Be.MISSING_TABLE_KEY_REVEAL);if(!e.table)throw new Ge(Be.EMPTY_TABLE_REVEAL);if(Object.prototype.hasOwnProperty.call(e,"table")&&"string"!=typeof e.table)throw new Ge(Be.INVALID_TABLE_REVEAL);if(Object.prototype.hasOwnProperty.call(e,"altText")&&"string"!=typeof e.altText)throw new Ge(Be.INVALID_ALT_TEXT_RENDER)},tt=function(e){if(!e||"https"!==e.substring(0,5).toLowerCase())return!1;try{if(new URL(e))return!0}catch(e){return!1}return!0},nt=function(e){var t=!0;try{new RegExp(e)}catch(e){t=!1}return t},rt=function(e){if(!Object.prototype.hasOwnProperty.call(e,"vaultID"))throw new Ge(Be.VAULTID_IS_REQUIRED,[],!0);if(!e.vaultID)throw new Ge(Be.EMPTY_VAULTID_IN_INIT,[],!0);if(!Object.prototype.hasOwnProperty.call(e,"vaultURL"))throw new Ge(Be.VAULTURL_IS_REQUIRED,[],!0);if(!e.vaultURL)throw new Ge(Be.EMPTY_VAULTURL_IN_INIT,[],!0);if(e.vaultURL&&!tt(e.vaultURL))throw new Ge(Be.INVALID_VAULTURL_IN_INIT,[],!0);if(!Object.prototype.hasOwnProperty.call(e,"getBearerToken"))throw new Ge(Be.GET_BEARER_TOKEN_IS_REQUIRED,[],!0)},ot=function(e,t){if(!Object.prototype.hasOwnProperty.call(e,"type"))throw new Ge(Be.MISSING_ELEMENT_TYPE,[],!0);if(!e.type)throw new Ge(Be.EMPTY_ELEMENT_TYPE,[],!0);if(Object.prototype.hasOwnProperty.call(e,"altText")&&ke(h.warnLogs.COLLECT_ALT_TEXT_DEPERECATED,xe.WARN,t),Object.prototype.hasOwnProperty.call(e,"skyflowID")&&"string"!=typeof e.skyflowID)throw new Ge(Be.INVALID_SKYFLOWID_IN_COLLECT,[],!0);if(e.type===te.FILE_INPUT&&!Object.keys(e).includes("skyflowID"))throw new Ge(Be.MISSING_SKYFLOWID_IN_COLLECT,[],!0)},it=function(t){if(!t||!Array.isArray(t))throw new Ge(Be.INVALID_UPSERT_OPTION_TYPE,[],!0);if(!t.length)throw new Ge(Be.EMPTY_UPSERT_OPTIONS_ARRAY,[],!0);t.forEach((function(t,n){if(!t||"object"!==e(t))throw new Ge(Be.INVALID_UPSERT_OPTION_OBJECT_TYPE,[n],!0);if(!Object.prototype.hasOwnProperty.call(t,"table"))throw new Ge(Be.MISSING_TABLE_IN_UPSERT_OPTION,[n],!0);if(!t.table||"string"!=typeof t.table||!t.table.length)throw new Ge(Be.INVALID_TABLE_IN_UPSERT_OPTION,[n],!0);if(!Object.prototype.hasOwnProperty.call(t,"column"))throw new Ge(Be.MISSING_COLUMN_IN_UPSERT_OPTION,[n],!0);if(!t.column||"string"!=typeof t.column||!t.column.length)throw new Ge(Be.INVALID_COLUMN_IN_UPSERT_OPTION,[n],!0)}))},at=function(e){return"boolean"==typeof e},ct=function(t){if(t){if(Object.prototype.hasOwnProperty.call(t,"format")&&"string"!=typeof t.format)throw new Ge(Be.INVALID_INPUT_OPTIONS_FORMAT,[],!0);if(Object.prototype.hasOwnProperty.call(t,"translation")&&("object"!==e(t.translation)||"[object Object]"!==Object.prototype.toString.call(t.translation)))throw new Ge(Be.INVALID_INPUT_OPTIONS_TRANSLATION,[],!0)}};const lt={IFRAME_SECURE_SITE:"https://js.skyflow.com/v1/elements/index.html",IFRAME_SECURE_ORGIN:"https://js.skyflow.com"};function st(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?st(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):st(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}n(3893).getType;function ut(e){var t=e.split(":");return t.length>2?"".concat(t[0],":").concat(t[1],":").concat(t[2]):""}function Et(e,t,n){var r,o,i,a,c,l,s={sdkName:e.name,sdkVersion:e.version},p=function(e,t){return e&&""!==e?"".concat(e):"".concat(t.sdkName,"@").concat(t.sdkVersion)}(null==t?void 0:t.sdkVersion,s),u=function(e){var t,n,r=null,o=null;if(/Windows/.test(e))r="Windows",o=null!==(t=null===(n=/Windows NT (\d+\.\d+)/.exec(e))||void 0===n?void 0:n[1])&&void 0!==t?t:null;else if(/Android/.test(e)){var i,a;r="Android",o=null!==(i=null===(a=/Android (\d+\.\d+)/.exec(e))||void 0===a?void 0:a[1])&&void 0!==i?i:null}else if(/iOS/.test(e)||/iPhone/.test(e)){var c,l;r="iOS",o=null!==(c=null===(l=/OS (\d+[._]\d+[._]?\d*)/.exec(e))||void 0===l||null===(l=l[1])||void 0===l?void 0:l.replace(/_/g,"."))&&void 0!==c?c:null}else if(/Mac OS X/.test(e)){var s,p;r="Mac OS X",o=null!==(s=null===(p=/Mac OS X (\d+([._]\d+)*)/.exec(e))||void 0===p||null===(p=p[1])||void 0===p?void 0:p.replace(/_/g,"."))&&void 0!==s?s:null}else if(/Linux/.test(e)){var u,E;r="Linux",o=null!==(u=null===(E=/Linux( \w+)*?\/([\w.]+)/.exec(e))||void 0===E?void 0:E[2])&&void 0!==u?u:null}return{os:r,version:o}}(n.userAgent),E=function(e){var t="",n="";if(-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")){t="Internet Explorer";var r=e.match(/(MSIE|rv:)\s?([\d.]+)/);r&&(n=r[2])}else if(-1!==e.indexOf("Edge")){t="Microsoft Edge";var o=e.match(/Edge\/([\d.]+)/);o&&(n=o[1])}else if(-1!==e.indexOf("Chrome")){t="Google Chrome";var i=e.match(/Chrome\/([\d.]+)/);i&&(n=i[1])}else if(-1!==e.indexOf("Firefox")){t="Mozilla Firefox";var a=e.match(/Firefox\/([\d.]+)/);a&&(n=a[1])}else if(-1!==e.indexOf("Safari")){t="Apple Safari";var c=e.match(/Version\/([\d.]+)/);c&&(n=c[1])}return{browserName:t,browserVersion:n}}(n.userAgent);return{sdk_name_version:p,sdk_client_device_model:(l=n.userAgent,/(ipad|tablet)/gi.test(l)?"tablet":/Mobile|iP(hone|od)|Android|BlackBerry|IEMobile/.test(l)?"mobile":"desktop"),sdk_os_version:null!==(r=n.platform)&&void 0!==r?r:"".concat(null!==(o=u.os)&&void 0!==o?o:""," ").concat(null!==(i=u.version)&&void 0!==i?i:""),sdk_runtime_details:"".concat(null!==(a=E.browserName)&&void 0!==a?a:""," ").concat(null!==(c=E.browserVersion)&&void 0!==c?c:"")}}function dt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ft(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var _t=new WeakMap,It=function(){function e(t,n){var r=this;i(this,e),o(this,"config",void 0),ft(this,_t,{writable:!0,value:void 0}),o(this,"request",(function(e){return new Promise((function(t,n){var i,a,c=new XMLHttpRequest;if(c){if(c.open(e.requestMethod,e.url),e.headers){var l=Et(Xe,p(r,_t),navigator);e.headers["sky-metadata"]=JSON.stringify(l);var s=e.headers;Object.keys(e.headers).forEach((function(e){"content-type"===e&&s[e]&&s[e].includes(fe.FORMDATA)||c.setRequestHeader(e,s[e])}))}null!==(i=e.headers)&&void 0!==i&&null!==(i=i["content-type"])&&void 0!==i&&i.includes(fe.FORMURLENCODED)||null!==(a=e.headers)&&void 0!==a&&null!==(a=a["content-type"])&&void 0!==a&&a.includes(fe.FORMDATA)?c.send(e.body):c.send(JSON.stringify(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dt(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e.body))),c.onload=function(){var e=c.getAllResponseHeaders().trim().split(/[\r\n]+/),r={};e.forEach((function(e){var t=e.split(": "),n=t.shift()||"",o=t.join(": ");r[n]=o}));var o=r["content-type"],i=r["x-request-id"];if(c.status<200||c.status>=400)if(o&&o.includes("application/json")){var a,l,s,p=JSON.parse(c.response);if(null!==(a=p)&&void 0!==a&&null!==(a=a.error)&&void 0!==a&&a.message)p=i?"".concat(null===(l=p)||void 0===l||null===(l=l.error)||void 0===l?void 0:l.message," - requestId: ").concat(i):null===(s=p)||void 0===s||null===(s=s.error)||void 0===s?void 0:s.message;n(new Ge({code:c.status,description:p},[],!0))}else o&&o.includes("text/plain")?n(new Ge({code:c.status,description:i?"".concat(c.response," - requestId: ").concat(i):c.response},[],!0)):n(new Ge({code:c.status,description:i?"".concat(h.errorLogs.ERROR_OCCURED," - requestId: ").concat(i):h.errorLogs.ERROR_OCCURED},[],!0));o&&o.includes("application/json")&&t(JSON.parse(c.response)),t(c.response)},c.onerror=function(){n(new Ge(Be.NETWORK_ERROR,[],!0))}}else n(new Ge(Be.CONNECTION_ERROR,[],!0))}))})),this.config=t,s(this,_t,n)}return c(e,[{key:"toJSON",value:function(){return{config:this.config,metaData:p(this,_t)}}}],[{key:"fromJSON",value:function(t){return new e(t.config,t.metaData)}}]),e}();const mt=It;const vt=function(){function e(){i(this,e),o(this,"events",void 0),this.events={}}return c(e,[{key:"on",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.events[e]?this.events[e].push({priority:n,callback:t}):this.events[e]=[{priority:n,callback:t}]}},{key:"off",value:function(e,t){var n=this.events[e];if(n){var r=n.findIndex((function(e){return e.callback===t}));n.splice(r,1)}}},{key:"_emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=this.events[e];o&&o.forEach((function(e){e.callback.apply(e,n)}))}},{key:"hasListener",value:function(e){var t=this.events[e];return!!t&&t.length>0}},{key:"resetEvents",value:function(){var e=this,t={};Object.keys(this.events).forEach((function(n){var r=e.events[n];if(r&&r.length>0){var o=[];r.forEach((function(e){e.priority&&o.push(e)})),t[n]=o}})),this.events=t}}],[{key:"createChild",value:function(t){t.prototype=Object.create(e.prototype,{constructor:t})}}]),e}();function yt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Tt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yt(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ot={src:"about:blank",frameBorder:0,allowtransparency:!0,scrolling:"no",style:"width: 100%;",allow:"clipboard-read; clipboard-write"},Nt=function(e,t){Object.keys(t).forEach((function(n){if(Object.prototype.hasOwnProperty.call(t,n)){var r=t[n];null==r?e.removeAttribute(n):e.setAttribute(n,r)}}))};const Lt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=document.createElement("iframe"),n=Tt(Tt({},Ot),e);return Object.assign(t.style,ae),Nt(t,n),t.getAttribute("id")||(t.id=t.name),t};var gt=function(){return lt.IFRAME_SECURE_SITE},ht=function(e,t){Object.keys(t).forEach((function(n){Object.prototype.hasOwnProperty.call(t,n)&&(e.style[n]=t[n])}))};const At=c((function e(){i(this,e)}));function Rt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rt(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var wt={records:[]};function St(e,t){var n,r,o,i=Et(Xe,e,navigator),a={element_id:t,element_type:[],div_id:"",container_name:"",container_id:(null==e?void 0:e.uuid)||"",session_id:(null==e?void 0:e.session_id)||"",vault_id:(null==e||null===(n=e.clientJSON)||void 0===n||null===(n=n.config)||void 0===n?void 0:n.vaultID)||"",vault_url:(null==e||null===(r=e.clientJSON)||void 0===r||null===(r=r.config)||void 0===r?void 0:r.vaultURL)||"",events:[],created_at:Date.now(),region:(null===(o=Intl)||void 0===o||null===(o=o.DateTimeFormat())||void 0===o||null===(o=o.resolvedOptions())||void 0===o?void 0:o.timeZone)||"",status:V.STATUS.INITIALIZED,sdk_name_version:i.sdk_name_version,sdk_client_device_model:i.sdk_client_device_model||"",sdk_client_os_details:i.sdk_os_version||"",sdk_runtime_details:i.sdk_runtime_details||""};wt.records.push(a)}function Dt(e,t,n){wt.records.forEach((function(r){r.element_id===e&&(t===V.EVENTS_KEY||t===V.ELEMENT_TYPE_KEY?r[t].push(n):t===V.MOUNT_END_TIME&&r.mount_start_time?(r[t]=n,r.latency=n-r.mount_start_time):r[t]=n)}))}function xt(e){var t=wt.records.filter((function(t){return t.element_id===e}));if(t&&t[0]){var n=t[0];n.status=function(e){var t=e.status;return e.events&&e.events.filter((function(e){return e.includes(k.MOUNTED)})).length>0?t=V.STATUS.SUCCESS:e.events.length>0?t=V.STATUS.PARTIAL_RENDER:(0===e.events.length||e.error)&&(t=V.STATUS.FAILED),t}(n);var r=bt(bt({},n),{},{time:Math.floor(Date.now()/1e3)});""!==n.vault_id&&""!==n.vault_url&&E().emit(W.PUSH_EVENT+n.container_id,{event:r})}}function Mt(e){setTimeout((function(){xt(e)}),2e4)}var Pt=n(5108),Ct=c((function e(t,n,r,a){var c=this;i(this,e),o(this,"name",void 0),o(this,"metadata",void 0),o(this,"iframe",void 0),o(this,"container",void 0),o(this,"mount",(function(e,t){var n;c.unmount();try{if("string"==typeof e){if(c.container=document.querySelector(e)||void 0,!c.container)throw new Ge(Be.INVALID_ELEMENT_SELECTOR,[],!0)}else{if(!(e instanceof HTMLElement))throw new Ge(Be.INVALID_ELEMENT_SELECTOR,[],!0);c.container=e}}catch(e){Pt.error(e),t&&Dt(t,V.ERROR,e.message)}Nt(c.iframe,{src:gt()}),null===(n=c.container)||void 0===n||n.appendChild(c.iframe)})),o(this,"setIframeHeight",(function(e){c.iframe.getAttribute("height")!==e&&c.iframe.setAttribute("height","".concat(e,"px"))})),o(this,"unmount",(function(){c.iframe.remove()}));var l=n.clientDomain||"";this.name="".concat(t,":").concat(r,":").concat(a,":").concat(btoa(l)),this.metadata=n,this.iframe=Lt({name:this.name,referrer:l})}));const jt=c((function e(){i(this,e)}));n(4687);var Ut=function(e,t){return e.fields?{success:{skyflow_id:e.fields.skyflow_id,column:t}}:e};function kt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kt(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Yt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ge(e);if(t){var o=ge(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Le(this,n)}}function Ft(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var Gt="RevealElement",Bt=new WeakMap,Xt=new WeakMap,Kt=new WeakMap,Wt=new WeakMap,qt=new WeakMap,zt=new WeakMap,Ht=new WeakMap,Jt=new WeakMap,Qt=new WeakMap,Zt=new WeakMap,$t=new WeakMap,en=new WeakMap,tn=new WeakMap,nn=function(e){Ne(n,e);var t=Yt(n);function n(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2?arguments[2]:void 0,c=arguments.length>3?arguments[3]:void 0,l=arguments.length>4?arguments[4]:void 0,u=arguments.length>5?arguments[5]:void 0;return i(this,n),Ft(Te(r=t.call(this)),Bt,{writable:!0,value:void 0}),Ft(Te(r),Xt,{writable:!0,value:void 0}),Ft(Te(r),Kt,{writable:!0,value:void 0}),Ft(Te(r),Wt,{writable:!0,value:void 0}),Ft(Te(r),qt,{writable:!0,value:!1}),Ft(Te(r),zt,{writable:!0,value:!1}),Ft(Te(r),Ht,{writable:!0,value:void 0}),Ft(Te(r),Jt,{writable:!0,value:void 0}),Ft(Te(r),Qt,{writable:!0,value:!1}),Ft(Te(r),Zt,{writable:!0,value:void 0}),Ft(Te(r),$t,{writable:!0,value:void 0}),Ft(Te(r),en,{writable:!0,value:void 0}),Ft(Te(r),tn,{writable:!0,value:void 0}),s(Te(r),Jt,l),s(Te(r),Xt,a),s(Te(r),tn,p(Te(r),Xt).uuid),s(Te(r),Kt,Vt(Vt({},e),function(e){var t={};if(e){if(t=pt({},e),Object.prototype.hasOwnProperty.call(t,"enableCopy")&&!at(t.enableCopy))throw new Ge(Be.INVALID_BOOLEAN_OPTIONS,["enableCopy"],!0);if(Object.prototype.hasOwnProperty.call(t,"format")||Object.prototype.hasOwnProperty.call(t,"translation")){var n,r,o=[];t.format&&o.push(t.format),o.push(null),t.translation?o.push(t.translation):t.format&&o.push(Ie),null===(n=t=pt(pt({},t),3===o.length?{mask:o}:{}))||void 0===n||delete n.format,null===(r=t)||void 0===r||delete r.translation}}return t}(o))),s(Te(r),Wt,c.containerId),s(Te(r),Qt,c.isMounted),s(Te(r),Zt,c.eventEmitter),s(Te(r),Ht,u),St(a,l),Dt(p(Te(r),Jt),V.ELEMENT_TYPE_KEY,U.REVEAL),Dt(p(Te(r),Jt),V.CONTAINER_NAME,U.REVEAL),s(Te(r),Bt,new Ct("".concat("reveal",":").concat(btoa(d())),a,p(Te(r),Wt),p(Te(r),Ht).logLevel)),s(Te(r),en,""),s(Te(r),$t,!1),p(Te(r),Qt)||p(Te(r),Zt).on(ee,(function(e){(null==e?void 0:e.containerId)===p(Te(r),Wt)&&s(Te(r),Qt,!0)})),E().on(K.HEIGHT+p(Te(r),Bt).name,(function(e){p(Te(r),Bt).setIframeHeight(e.height)})),r}return c(n,[{key:"getID",value:function(){return p(this,Jt)}},{key:"mount",value:function(e){var t,n,r,o=this;if(!e)throw new Ge(Be.EMPTY_ELEMENT_IN_MOUNT,["RevealElement"],!0);Dt(p(this,Jt),V.DIV_ID,e),null!==(t=p(this,Xt))&&void 0!==t&&null!==(t=t.clientJSON)&&void 0!==t&&null!==(t=t.config)&&void 0!==t&&null!==(t=t.options)&&void 0!==t&&t.trackMetrics&&null!==(n=p(this,Xt).clientJSON.config)&&void 0!==n&&null!==(n=n.options)&&void 0!==n&&n.trackingKey&&Mt(p(this,Jt));var i=function e(t,n){t.name===p(o,Bt).name&&(n(Vt(Vt({},p(o,Xt)),{},{record:p(o,Kt),context:p(o,Ht)})),E().off(W.REVEAL_FRAME_READY,e),p(o,Kt).skyflowID?(E().emit(J+p(o,Wt),{skyflowID:p(o,Kt).skyflowID,containerId:p(o,Wt)}),Dt(p(o,Jt),V.MOUNT_END_TIME,Date.now()),Dt(p(o,Jt),V.EVENTS_KEY,k.MOUNTED)):(E().emit(J+p(o,Wt),{id:p(o,Kt).token,containerId:p(o,Wt)}),Dt(p(o,Jt),V.MOUNT_END_TIME,Date.now()),Dt(p(o,Jt),V.EVENTS_KEY,k.MOUNTED)),s(o,qt,!0),Object.prototype.hasOwnProperty.call(p(o,Kt),"skyflowID")&&E().emit(K.HEIGHT+p(o,Bt).name,{},(function(e){p(o,Bt).setIframeHeight(e.height)})))};if(p(this,Qt))return p(this,Bt).mount(e),E().target(lt.IFRAME_SECURE_ORGIN).on(W.REVEAL_FRAME_READY,i),Dt(p(this,Jt),V.EVENTS_KEY,k.READY),void Dt(p(this,Jt),V.MOUNT_START_TIME,Date.now());null===(r=p(this,Zt))||void 0===r||r.on(ee,(function(t){(null==t?void 0:t.containerId)===p(o,Wt)&&(p(o,Bt).mount(e),E().target(lt.IFRAME_SECURE_ORGIN).on(W.REVEAL_FRAME_READY,i),Dt(p(o,Jt),V.EVENTS_KEY,k.READY),Dt(p(o,Jt),V.MOUNT_START_TIME,Date.now()))}))}},{key:"renderFile",value:function(){var e=this,t="";return Object.prototype.hasOwnProperty.call(p(this,Kt),"altText")&&(t=p(this,Kt).altText),this.setAltText("loading..."),p(this,qt)?new Promise((function(n,r){try{p(e,Xt).skyflowContainer.renderFile(p(e,Kt),p(e,Xt),p(e,Wt),p(e,Bt).name).then((function(t){ke(Ve(h.infoLogs.RENDER_SUBMIT_SUCCESS,Gt),xe.LOG,p(e,Ht).logLevel),ke(Ve(h.infoLogs.FILE_RENDERED,Gt,p(e,Kt).skyflowID),xe.LOG,p(e,Ht).logLevel),n(Ut(t,p(e,Kt).column))}),(function(n){ke(h.errorLogs.FAILED_RENDER,xe.ERROR,p(e,Ht).logLevel),Object.prototype.hasOwnProperty.call(p(e,Kt),"altText")&&e.setAltText(t),r(n)}))}catch(t){ke("Error: ".concat(t.message),xe.ERROR,p(e,Ht).logLevel),r(t)}})):new Promise((function(n,r){try{E().on(J+p(e,Wt),(function(){p(e,Xt).skyflowContainer.renderFile(p(e,Kt),p(e,Xt),p(e,Wt),p(e,Bt).name).then((function(t){ke(Ve(h.infoLogs.RENDER_SUBMIT_SUCCESS,Gt),xe.LOG,p(e,Ht).logLevel),ke(Ve(h.infoLogs.FILE_RENDERED,Gt,p(e,Kt).skyflowID),xe.LOG,p(e,Ht).logLevel),n(Ut(t,p(e,Kt).column))}),(function(n){ke(h.errorLogs.FAILED_RENDER,xe.ERROR,p(e,Ht).logLevel),Object.prototype.hasOwnProperty.call(p(e,Kt),"altText")&&e.setAltText(t),r(n)}))}))}catch(t){ke("Error: ".concat(t.message),xe.ERROR,p(e,Ht).logLevel),r(t)}}))}},{key:"iframeName",value:function(){return p(this,Bt).name}},{key:"isMounted",value:function(){return p(this,qt)}},{key:"hasToken",value:function(){return!!p(this,Kt).token}},{key:"isClientSetError",value:function(){return p(this,zt)}},{key:"getRecordData",value:function(){return p(this,Kt)}},{key:"setErrorOverride",value:function(e){E().emit(W.REVEAL_ELEMENT_SET_ERROR,{name:p(this,Bt).name,isTriggerError:!0,clientErrorText:e}),s(this,zt,!0)}},{key:"setError",value:function(e){E().emit(W.REVEAL_ELEMENT_SET_ERROR,{name:p(this,Bt).name,isTriggerError:!0,clientErrorText:e}),s(this,zt,!0)}},{key:"resetError",value:function(){E().emit(W.REVEAL_ELEMENT_SET_ERROR,{name:p(this,Bt).name,isTriggerError:!1}),s(this,zt,!1)}},{key:"setAltText",value:function(e){E().emit(W.REVEAL_ELEMENT_UPDATE_OPTIONS,{name:p(this,Bt).name,updateType:z,updatedValue:e})}},{key:"clearAltText",value:function(){E().emit(W.REVEAL_ELEMENT_UPDATE_OPTIONS,{name:p(this,Bt).name,updateType:z,updatedValue:null})}},{key:"setToken",value:function(e){s(this,Kt,Vt(Vt({},p(this,Kt)),{},{token:e})),E().emit(W.REVEAL_ELEMENT_UPDATE_OPTIONS,{name:p(this,Bt).name,updateType:q,updatedValue:e})}},{key:"unmount",value:function(){var e;p(this,Kt).skyflowID&&(s(this,qt,!1),null===(e=p(this,Bt).container)||void 0===e||e.remove());p(this,Bt).unmount()}},{key:"update",value:function(e){s(this,Kt,Vt(Vt({},p(this,Kt)),e)),E().emit(W.REVEAL_ELEMENT_UPDATE_OPTIONS,{name:p(this,Bt).name,updateType:H,updatedValue:e})}}]),n}(jt);const rn=nn;function on(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function an(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?on(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):on(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ge(e);if(t){var o=ge(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Le(this,n)}}function ln(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var sn="RevealContainer",pn=new WeakMap,un=new WeakMap,En=new WeakMap,dn=new WeakMap,fn=new WeakMap,_n=new WeakMap,In=new WeakMap,mn=new WeakMap,vn=new WeakMap,yn=new WeakMap,Tn=new WeakMap;const On=function(e){Ne(n,e);var t=cn(n);function n(e,r,a){var c,l,u,f=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};i(this,n),ln(Te(u=t.call(this)),pn,{writable:!0,value:[]}),ln(Te(u),un,{writable:!0,value:[]}),ln(Te(u),En,{writable:!0,value:[]}),ln(Te(u),dn,{writable:!0,value:void 0}),ln(Te(u),fn,{writable:!0,value:void 0}),ln(Te(u),_n,{writable:!0,value:void 0}),ln(Te(u),In,{writable:!0,value:!1}),ln(Te(u),mn,{writable:!0,value:!1}),ln(Te(u),vn,{writable:!0,value:void 0}),ln(Te(u),yn,{writable:!0,value:void 0}),ln(Te(u),Tn,{writable:!0,value:void 0}),o(Te(u),"type",wo.REVEAL),s(Te(u),dn,an(an({},e),{},{clientJSON:an(an({},e.clientJSON),{},{config:an(an({},null===(c=e.clientJSON)||void 0===c?void 0:c.config),{},{options:an(an({},null===(l=e.clientJSON)||void 0===l||null===(l=l.config)||void 0===l?void 0:l.options),f)})})})),s(Te(u),yn,r),s(Te(u),fn,d()),s(Te(u),_n,new vt),s(Te(u),vn,a);var _=p(Te(u),dn).clientDomain||"",I=Lt({name:"".concat(C,":").concat(p(Te(u),fn),":").concat(btoa(_)),referrer:_});Nt(I,{src:gt()}),ht(I,an({},ce)),ke(Ve(h.infoLogs.CREATE_REVEAL_CONTAINER,sn),xe.LOG,p(Te(u),vn).logLevel);return E().target(lt.IFRAME_SECURE_ORGIN).on(W.REVEAL_FRAME_READY+p(Te(u),fn),(function t(n,r){var o;n.name===C&&(r(an(an({},e),{},{clientJSON:an(an({},e.clientJSON),{},{config:an({},null===(o=e.clientJSON)||void 0===o?void 0:o.config),context:a})})),s(Te(u),Tn,!0),p(Te(u),_n)._emit(ee,{containerId:p(Te(u),fn)}),E().target(lt.IFRAME_SECURE_ORGIN).off(W.REVEAL_FRAME_READY+p(Te(u),fn),t))})),document.body.append(I),E().target(window.location.origin).on(J+p(Te(u),fn),(function(e){e.skyflowID||p(Te(u),En).push(e);var t=0;p(Te(u),un).forEach((function(e){e.getRecordData().skyflowID||(t+=1)})),s(Te(u),mn,p(Te(u),En).length===t),p(Te(u),In)&&p(Te(u),mn)&&p(Te(u),_n)._emit(Q+p(Te(u),fn),{containerId:p(Te(u),fn)})})),u}return c(n,[{key:"create",value:function(e,t){var n=d();ct(t);var r=new rn(e,t,p(this,dn),{containerId:p(this,fn),isMounted:p(this,Tn),eventEmitter:p(this,_n)},n,p(this,vn));return p(this,un).push(r),p(this,yn)[n]=r,r}},{key:"reveal",value:function(){var e=this;return s(this,In,!0),p(this,mn)?new Promise((function(t,n){try{rt(p(e,dn).clientJSON.config),ke(Ve(h.infoLogs.VALIDATE_REVEAL_RECORDS,sn),xe.LOG,p(e,vn).logLevel),p(e,un).forEach((function(t){if(t.isClientSetError())throw new Ge(Be.REVEAL_ELEMENT_ERROR_STATE);t.getRecordData().skyflowID||p(e,pn).push(t.getRecordData())})),$e(p(e,pn)),E().emit(W.REVEAL_REQUEST+p(e,fn),{records:p(e,pn)},(function(r){s(e,En,[]),s(e,pn,[]),r.error?(ke(h.errorLogs.FAILED_REVEAL,xe.ERROR,p(e,vn).logLevel),n(r.error)):(ke(Ve(h.infoLogs.REVEAL_SUBMIT_SUCCESS,sn),xe.LOG,p(e,vn).logLevel),t(r))})),ke(Ve(h.infoLogs.EMIT_EVENT,sn,W.REVEAL_REQUEST),xe.LOG,p(e,vn).logLevel)}catch(t){ke("Error: ".concat(t.message),xe.ERROR,p(e,vn).logLevel),n(t)}})):new Promise((function(t,n){try{rt(p(e,dn).clientJSON.config),ke(Ve(h.infoLogs.VALIDATE_REVEAL_RECORDS,sn),xe.LOG,p(e,vn).logLevel);var r=setTimeout((function(){ke(h.errorLogs.ELEMENTS_NOT_MOUNTED_REVEAL,xe.ERROR,p(e,vn).logLevel),n(h.errorLogs.ELEMENTS_NOT_MOUNTED_REVEAL)}),3e4);p(e,un).forEach((function(t){if(t.isClientSetError())throw clearTimeout(r),new Ge(Be.REVEAL_ELEMENT_ERROR_STATE);t.getRecordData().skyflowID||p(e,pn).push(t.getRecordData())})),$e(p(e,pn)),p(e,_n).on(Q+p(e,fn),(function(){clearTimeout(r),E().emit(W.REVEAL_REQUEST+p(e,fn),{records:p(e,pn)},(function(r){s(e,pn,[]),s(e,En,[]),r.error?(ke(h.errorLogs.FAILED_REVEAL,xe.ERROR,p(e,vn).logLevel),n(r.error)):(ke(Ve(h.infoLogs.REVEAL_SUBMIT_SUCCESS,sn),xe.LOG,p(e,vn).logLevel),t(r))}))}))}catch(t){ke(t.message,xe.ERROR,p(e,vn).logLevel),n(t)}}))}}]),n}(At);function Nn(e){return JSON.parse(JSON.stringify(e))}function Ln(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const gn=function(){function e(){i(this,e),o(this,"listeners",void 0),o(this,"isDestroyed",void 0),this.listeners=[],this.isDestroyed=!1}return c(e,[{key:"on",value:function(e,t){E().on(e,t),this.listeners.push({eventName:e,callback:t})}},{key:"off",value:function(e,t){E().off(e,t);var n=this.listeners.findIndex((function(t){return t.eventName===e}));-1!==n&&this.listeners.splice(n,1)}},{key:"emit",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;E().emit(e,t,n)}},{key:"hasListener",value:function(e){return-1!==this.listeners.findIndex((function(t){return t.eventName===e}))}},{key:"teardown",value:function(){this.listeners.forEach((function(e){E().off(e.eventName,e.handler)})),this.listeners=[]}}]),e}();var hn=["name"];function An(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?An(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):An(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ge(e);if(t){var o=ge(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Le(this,n)}}function wn(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var Sn="Element",Dn=new WeakMap,xn=new WeakMap,Mn=new WeakMap,Pn=new WeakMap,Cn=new WeakMap,jn=new WeakMap,Un=new WeakMap,kn=new WeakMap,Vn=new WeakMap,Yn=new WeakMap,Fn=new WeakMap,Gn=new WeakMap,Bn=new WeakMap,Xn=new WeakMap,Kn=new WeakMap,Wn=new WeakMap,qn=new WeakMap,zn=new WeakMap,Hn=new WeakMap,Jn=new WeakMap,Qn=new WeakMap,Zn=new WeakMap,$n=function(e){Ne(n,e);var t=bn(n);function n(e,r,a,c){var l,u,E=arguments.length>4&&void 0!==arguments[4]&&arguments[4],d=arguments.length>5?arguments[5]:void 0,f=arguments.length>6?arguments[6]:void 0,_=arguments.length>7?arguments[7]:void 0,I=arguments.length>8?arguments[8]:void 0;return i(this,n),o(Te(u=t.call(this)),"elementType",void 0),o(Te(u),"type",wo.COLLECT),wn(Te(u),Dn,{writable:!0,value:void 0}),o(Te(u),"containerId",void 0),wn(Te(u),xn,{writable:!0,value:!1}),wn(Te(u),Mn,{writable:!0,value:void 0}),wn(Te(u),Pn,{writable:!0,value:void 0}),o(Te(u),"resizeObserver",void 0),wn(Te(u),Cn,{writable:!0,value:{isEmpty:!0,isComplete:!1,isValid:!1,isFocused:!1,value:void 0,isRequired:!1,selectedCardScheme:""}}),wn(Te(u),jn,{writable:!0,value:void 0}),wn(Te(u),Un,{writable:!0,value:void 0}),wn(Te(u),kn,{writable:!0,value:new vt}),wn(Te(u),Vn,{writable:!0,value:void 0}),wn(Te(u),Yn,{writable:!0,value:new gn}),wn(Te(u),Fn,{writable:!0,value:void 0}),wn(Te(u),Gn,{writable:!0,value:[]}),wn(Te(u),Bn,{writable:!0,value:!1}),wn(Te(u),Xn,{writable:!0,value:void 0}),wn(Te(u),Kn,{writable:!0,value:void 0}),wn(Te(u),Wn,{writable:!0,value:!1}),wn(Te(u),qn,{writable:!0,value:!1}),o(Te(u),"getID",(function(){return p(Te(u),Dn)})),o(Te(u),"mount",(function(e){var t;if(!e)throw new Ge(Be.EMPTY_ELEMENT_IN_MOUNT,["CollectElement"],!0);u.resizeObserver=new ResizeObserver((function(){p(Te(u),Yn).emit(K.HEIGHT+p(Te(u),Fn).name,{},(function(e){p(Te(u),Fn).setIframeHeight(e.height)}))})),Dt(p(Te(u),Dn),V.DIV_ID,e),null!==(t=p(Te(u),Un))&&void 0!==t&&null!==(t=t.clientJSON)&&void 0!==t&&null!==(t=t.config)&&void 0!==t&&null!==(t=t.options)&&void 0!==t&&t.trackMetrics&&p(Te(u),Un).clientJSON.config.options.trackingKey&&Mt(p(Te(u),Dn));var n=function e(t,n){if(t.name===p(Te(u),Fn).name){n(p(Te(u),jn)),p(Te(u),Zn).call(Te(u));var r=p(Te(u),Mn)[0],o=(r.name,Ln(r,hn));p(Te(u),Pn).length>1?p(Te(u),Pn).forEach((function(e,t){p(Te(u),Vn)&&(p(Te(u),Vn)._emit("".concat(K.READY,":").concat(e.elementName),Rn(Rn({},p(Te(u),Mn)[t]),{},{elementType:e.elementType})),Dt(p(Te(u),Dn),V.EVENTS_KEY,"".concat(e.elementType,"_").concat(V.EVENTS.READY)))})):(p(Te(u),kn)._emit(K.READY,Rn({},o)),Dt(p(Te(u),Dn),V.EVENTS_KEY,k.READY)),p(Te(u),Yn).off(W.FRAME_READY+u.containerId,e),ke("".concat(Ve(h.infoLogs.ELEMENT_MOUNTED,Sn,Ye(p(Te(u),Fn).name))," "),xe.LOG,p(Te(u),Xn).logLevel),p(Te(u),Gn).forEach((function(e){return e()})),s(Te(u),Gn,[])}};if(p(Te(u),Pn).length>1)p(Te(u),Fn).mount(e,p(Te(u),Dn)),p(Te(u),Yn).on(W.FRAME_READY+u.containerId,n),Dt(p(Te(u),Dn),V.MOUNT_START_TIME,Date.now());else{var r;if(p(Te(u),Wn))return p(Te(u),Fn).mount(e,p(Te(u),Dn)),p(Te(u),Yn).on(W.FRAME_READY+u.containerId,n),void Dt(p(Te(u),Dn),V.MOUNT_START_TIME,Date.now());null===(r=p(Te(u),Vn))||void 0===r||r.on($,(function(t){(null==t?void 0:t.containerId)===u.containerId&&(Dt(p(Te(u),Dn),V.MOUNT_START_TIME,Date.now()),p(Te(u),Fn).mount(e,p(Te(u),Dn)),p(Te(u),Yn).on(W.FRAME_READY+u.containerId,n))}))}if("string"==typeof e){var o,i=document.querySelector(e);if(i)null===(o=u.resizeObserver)||void 0===o||o.observe(i)}else if(e instanceof HTMLElement){var a;null===(a=u.resizeObserver)||void 0===a||a.observe(e)}})),o(Te(u),"unmount",(function(){var e;(p(Te(u),Fn).unmount(),u.resizeObserver)&&(null===(e=u.resizeObserver)||void 0===e||e.disconnect())})),o(Te(u),"updateElementGroup",(function(e){var t=Nn(e),n=function(){p(Te(u),xn)&&(t={rows:[{elements:[Rn({},t)]}]}),s(Te(u),jn,dr(p(Te(u),jn),t)),s(Te(u),Pn,fr(p(Te(u),jn))),p(Te(u),xn)?p(Te(u),Yn).emit(W.SET_VALUE,{name:p(Te(u),Fn).name,options:p(Te(u),Pn)[0],isSingleElementAPI:!0}):(p(Te(u),Pn).forEach((function(e){p(Te(u),Yn).emit(W.SET_VALUE,{name:e.elementName,options:e,isSingleElementAPI:!0})})),p(Te(u),Yn).emit(W.SET_VALUE,{name:p(Te(u),Fn).name,options:p(Te(u),jn),isSingleElementAPI:!1})),p(Te(u),Zn).call(Te(u))};p(Te(u),Bn)?n():p(Te(u),Gn).push(n)})),wn(Te(u),zn,{writable:!0,value:function(e){p(Te(u),xn)||p(Te(u),kn).on(W.SET_VALUE,(function(){e(p(Te(u),Pn))}),!0)}}),o(Te(u),"updateElement",(function(e){p(Te(u),Yn).emit(W.SET_VALUE,{name:e.elementName,options:e,isSingleElementAPI:!0})})),o(Te(u),"update",(function(e){s(Te(u),qn,!0),p(Te(u),Bn)?(e.validations=_r(e.validations),u.updateElement(Rn({elementName:p(Te(u),jn).elementName},e)),s(Te(u),qn,!1)):p(Te(u),qn)&&p(Te(u),kn).on("".concat(we.READY,":").concat(p(Te(u),Dn)),(function(){e.validations=_r(e.validations),u.updateElement(Rn({elementName:p(Te(u),jn).elementName},e)),s(Te(u),Bn,!0),s(Te(u),qn,!1)}))})),wn(Te(u),Hn,{writable:!0,value:function(){p(Te(u),Mn).forEach((function(e,t){if(0===t){p(Te(u),Cn).isEmpty=e.isEmpty,p(Te(u),Cn).isComplete=e.isComplete,p(Te(u),Cn).isValid=e.isValid,p(Te(u),Cn).isFocused=e.isFocused,p(Te(u),Cn).isRequired=e.isRequired,p(Te(u),Cn).value={},p(Te(u),Cn).selectedCardScheme="";var n=p(Te(u),Pn)[t].elementName,r=e.value&&function(e,t,n){if("string"!=typeof e)return e;if(t===te.CARD_NUMBER){if(e=e&&e.replace(/\s/g,""),!n){var r,o=We(e),i=o!==ne.DEFAULT&&o===ne.AMEX?6:8;return e.length>i?e.replace(new RegExp(".(?=.{0,".concat((null===(r=e)||void 0===r?void 0:r.length)-i-1,"}$)"),"g"),"X"):e}return e}return n?e:void 0}(e.value,e.elementType,p(Te(u),Kn));p(Te(u),xn)?p(Te(u),Cn).value=r:p(Te(u),Cn).value[n]=r}else p(Te(u),Cn).isEmpty=p(Te(u),Cn).isEmpty||e.isEmpty,p(Te(u),Cn).isComplete=p(Te(u),Cn).isComplete&&e.isComplete,p(Te(u),Cn).isValid=p(Te(u),Cn).isValid&&e.isValid,p(Te(u),Cn).isFocused=p(Te(u),Cn).isFocused||e.isFocused,p(Te(u),Cn).isRequired=p(Te(u),Cn).isRequired||e.isRequired,p(Te(u),Cn).selectedCardScheme=p(Te(u),Cn).selectedCardScheme||e.selectedCardScheme,p(Te(u),Cn).value||(p(Te(u),Cn).value={}),p(Te(u),Pn)[t].sensitive||(p(Te(u),Cn).value[p(Te(u),Pn)[t].elementName]=e.value||"")}))}}),o(Te(u),"getState",(function(){return{isEmpty:p(Te(u),Cn).isEmpty,isComplete:p(Te(u),Cn).isComplete,isValid:p(Te(u),Cn).isValid,isFocused:p(Te(u),Cn).isFocused,value:p(Te(u),Cn).value,required:p(Te(u),Cn).isRequired,selectedCardScheme:""}})),o(Te(u),"getOptions",(function(){var e=Nn(p(Te(u),jn));return p(Te(u),xn)?e=e.rows[0].elements[0]:e.rows.forEach((function(e){e.elements.forEach((function(e){delete e.elementName}))})),delete e.elementName,e})),wn(Te(u),Jn,{writable:!0,value:function(e){p(Te(u),kn).on(W.DESTROY_FRAME,(function(){var t=p(Te(u),Pn).map((function(e){return e.elementName}));p(Te(u),xn)||t.push(p(Te(u),Fn).name),e(t)}),!0)}}),wn(Te(u),Qn,{writable:!0,value:function(){p(Te(u),Yn).on(W.INPUT_EVENT,(function(e){if(p(Te(u),xn)&&e.event===K.READY&&e.name===p(Te(u),Fn).name)p(Te(u),kn)._emit(K.READY);else{var t=p(Te(u),Pn).length>1;p(Te(u),Pn).forEach((function(n,r){var o;if(e.name===n.elementName){var i,a="";switch(e.event){case K.FOCUS:a=K.FOCUS;break;case K.BLUR:a=K.BLUR;break;case K.CHANGE:a=K.CHANGE;break;case K.READY:a=K.READY;break;case K.SUBMIT:return void(null===(o=p(Te(u),Vn))||void 0===o||o._emit(K.SUBMIT));default:throw new Ge(Be.INVALID_EVENT_TYPE,[],!0)}p(Te(u),Mn)[r].isEmpty=e.value.isEmpty,p(Te(u),Mn)[r].isValid=e.value.isValid,p(Te(u),Mn)[r].isComplete=e.value.isComplete,p(Te(u),Mn)[r].isFocused=e.value.isFocused,p(Te(u),Mn)[r].isRequired=e.value.isRequired,p(Te(u),Mn)[r].selectedCardScheme=(null==e||null===(i=e.value)||void 0===i?void 0:i.selectedCardScheme)||"",Object.prototype.hasOwnProperty.call(e.value,"value")?p(Te(u),Mn)[r].value=e.value.value:p(Te(u),Mn)[r].value=void 0,a=t?"".concat(a,":").concat(e.name):a,p(Te(u),Yn).emit(K.HEIGHT+p(Te(u),Fn).name,{},(function(e){p(Te(u),Fn).setIframeHeight(e.height)})),p(Te(u),Hn).call(Te(u));var c=Rn(Rn({},p(Te(u),Mn)[r]),{},{elementType:n.elementType});t&&p(Te(u),Vn)?p(Te(u),Vn)._emit(a,c):p(Te(u),kn)._emit(a,c)}}))}}))}}),wn(Te(u),Zn,{writable:!0,value:function(){p(Te(u),jn).rows.forEach((function(e){e.elements.forEach((function(e){e.elementType!==oe.radio.name&&e.elementType!==oe.checkbox.name&&(e.value=void 0)}))})),s(Te(u),Pn,fr(p(Te(u),jn)))}}),u.containerId=c.containerId,s(Te(u),Dn,e),s(Te(u),Xn,_),s(Te(u),Un,a),s(Te(u),jn,dr(r)),s(Te(u),Pn,fr(r)),s(Te(u),xn,E),u.resizeObserver=null,I&&s(Te(u),Vn,I),s(Te(u),Kn,je[p(Te(u),Xn).env].doesReturnValue),u.elementType=p(Te(u),xn)?p(Te(u),Pn)[0].elementType:"group",St(a,e),s(Te(u),Mn,[]),p(Te(u),Pn).forEach((function(e){Dt(p(Te(u),Dn),V.ELEMENT_TYPE_KEY,e.elementType),p(Te(u),Mn).push({isEmpty:!0,isComplete:!1,isValid:!e.required&&p(Te(u),Cn).isEmpty,isFocused:!1,value:p(Te(u),Kn)?"":void 0,elementType:e.elementType,name:e.elementName,isRequired:e.required,selectedCardScheme:""})})),p(Te(u),Pn)&&p(Te(u),Pn).length&&p(Te(u),Pn).length>1?Dt(p(Te(u),Dn),V.CONTAINER_NAME,U.COMPOSE):Dt(p(Te(u),Dn),V.CONTAINER_NAME,U.COLLECT),s(Te(u),Fn,new Ct(p(Te(u),jn).elementName,a,u.containerId,p(Te(u),Xn).logLevel)),p(Te(u),Qn).call(Te(u)),p(Te(u),Jn).call(Te(u),d),p(Te(u),zn).call(Te(u),f),ke(Ve(h.infoLogs.CREATED_ELEMENT,Sn,Ye(p(Te(u),Fn).name)),xe.LOG,p(Te(u),Xn).logLevel),s(Te(u),Wn,c.isMounted),null===(l=p(Te(u),Vn))||void 0===l||l.on($,(function(e){(null==e?void 0:e.containerId)===u.containerId&&s(Te(u),Wn,!0)})),p(Te(u),Yn).on(K.MOUNTED,(function(e){c.type===wo.COMPOSABLE?(Dt(p(Te(u),Dn),V.MOUNT_END_TIME,Date.now()),p(Te(u),Pn).forEach((function(t){e.name===t.elementName&&(Dt(p(Te(u),Dn),V.EVENTS_KEY,"".concat(t.elementType,"_").concat(V.EVENTS.MOUNTED)),t.isMounted=!0,s(Te(u),Bn,!0))}))):e.name===p(Te(u),Pn)[0].elementName&&(Dt(p(Te(u),Dn),V.MOUNT_END_TIME,Date.now()),Dt(p(Te(u),Dn),V.EVENTS_KEY,k.MOUNTED),p(Te(u),Pn)[0].isMounted=!0,s(Te(u),Bn,!0)),p(Te(u),Yn).emit(K.HEIGHT+p(Te(u),Fn).name,{},(function(e){p(Te(u),Fn).setIframeHeight(e.height)}))})),u}return c(n,[{key:"on",value:function(e,t){if(!Object.values(K).includes(e))throw new Ge(Be.INVALID_EVENT_LISTENER,[],!0);if(!t)throw new Ge(Be.MISSING_HANDLER_IN_EVENT_LISTENER,[],!0);if("function"!=typeof t)throw new Ge(Be.INVALID_HANDLER_IN_EVENT_LISTENER,[],!0);p(this,kn).on(e,(function(e){void 0===e.value&&(e.value=""),e.elementType!==te.CARD_NUMBER&&delete e.selectedCardScheme,delete e.isComplete,delete e.name,t(e)}))}},{key:"iframeName",value:function(){return p(this,Fn).name}},{key:"isMounted",value:function(){return p(this,Bn)}},{key:"isUpdateCalled",value:function(){return p(this,qn)}},{key:"isValidElement",value:function(){for(var e=0;e<p(this,Pn).length;e+=1){if(!Object.prototype.hasOwnProperty.call(p(this,Pn)[e],"table"))throw new Ge(Be.MISSING_TABLE_IN_COLLECT,[],!0);if(!p(this,Pn)[e].table)throw new Ge(Be.EMPTY_TABLE_IN_COLLECT,[],!0);if(!("string"==typeof p(this,Pn)[e].table||p(this,Pn)[e].table instanceof String))throw new Ge(Be.INVALID_TABLE_IN_COLLECT,[],!0);if(!Object.prototype.hasOwnProperty.call(p(this,Pn)[e],"column"))throw new Ge(Be.MISSING_COLUMN_IN_COLLECT,[],!0);if(!p(this,Pn)[e].column)throw new Ge(Be.EMPTY_COLUMN_IN_COLLECT,[],!0);if(!("string"==typeof p(this,Pn)[e].column||p(this,Pn)[e].column instanceof String))throw new Ge(Be.INVALID_COLUMN_IN_COLLECT,[],!0);if(void 0!==p(this,Pn)[e].skyflowID&&!p(this,Pn)[e].skyflowID)throw new Ge(Be.EMPTY_SKYFLOW_ID_IN_ADDITIONAL_FIELDS,[],!0)}return!0}},{key:"setErrorOverride",value:function(e){p(this,Yn).emit(W.COLLECT_ELEMENT_SET_ERROR_OVERRIDE,{name:ut(p(this,Fn).name),customErrorText:e})}},{key:"setError",value:function(e){p(this,Yn).emit(W.COLLECT_ELEMENT_SET_ERROR,{name:ut(p(this,Fn).name),isTriggerError:!0,clientErrorText:e})}},{key:"resetError",value:function(){p(this,Yn).emit(W.COLLECT_ELEMENT_SET_ERROR,{name:ut(p(this,Fn).name),isTriggerError:!1})}},{key:"setValue",value:function(e){p(this,Xn).env!==De.PROD?p(this,xn)&&p(this,Yn).emit(W.SET_VALUE,{name:p(this,Fn).name,options:Rn(Rn({},p(this,Pn)[0]),{},{value:e}),isSingleElementAPI:!0}):ke(Ve(h.warnLogs.UNABLE_TO_SET_VALUE_IN_PROD_ENV,p(this,Pn)[0].elementType),xe.WARN,p(this,Xn).logLevel)}},{key:"clearValue",value:function(){p(this,Xn).env!==De.PROD?p(this,xn)&&p(this,Yn).emit(W.SET_VALUE,{name:p(this,Fn).name,options:Rn(Rn({},p(this,Pn)[0]),{},{value:""}),isSingleElementAPI:!0}):ke(Ve(h.warnLogs.UNABLE_TO_CLEAR_VALUE_IN_PROD_ENV,p(this,Pn)[0].elementType),xe.WARN,p(this,Xn).logLevel)}}]),n}(jt);const er=$n;function tr(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var nr=new WeakMap,rr=new WeakMap,or=new WeakMap,ir=new WeakMap,ar=new WeakMap;const cr=function(){function e(t,n,r){var a=this;i(this,e),tr(this,nr,{writable:!0,value:void 0}),tr(this,rr,{writable:!0,value:void 0}),tr(this,or,{writable:!0,value:void 0}),o(this,"type",wo.COMPOSABLE),tr(this,ir,{writable:!0,value:!1}),tr(this,ar,{writable:!0,value:!1}),o(this,"update",(function(e){s(a,ar,!0),p(a,ir)?(e.validations=_r(e.validations),p(a,rr)._emit(W.COMPOSABLE_UPDATE_OPTIONS,{elementName:p(a,nr),elementOptions:e}),s(a,ar,!1)):p(a,ar)&&p(a,rr).on("".concat(we.READY,":").concat(p(a,nr)),(function(){e.validations=_r(e.validations),p(a,rr)._emit(W.COMPOSABLE_UPDATE_OPTIONS,{elementName:p(a,nr),elementOptions:e}),s(a,ir,!0),s(a,ar,!1)}))})),s(this,nr,t),s(this,or,r),s(this,rr,n),p(this,rr).on("".concat(we.READY,":").concat(p(this,nr)),(function(){s(a,ir,!0)}))}return c(e,[{key:"on",value:function(e,t){if(!Object.values(K).includes(e))throw new Ge(Be.INVALID_EVENT_LISTENER,[],!0);if(!t)throw new Ge(Be.MISSING_HANDLER_IN_EVENT_LISTENER,[],!0);if("function"!=typeof t)throw new Ge(Be.INVALID_HANDLER_IN_EVENT_LISTENER,[],!0);p(this,rr).on("".concat(e,":").concat(p(this,nr)),(function(e){void 0===e.value&&(e.value=""),e.elementType!==te.CARD_NUMBER&&delete e.selectedCardScheme,delete e.isComplete,delete e.name,t(e)}))}},{key:"iframeName",value:function(){return p(this,or)}},{key:"getID",value:function(){return p(this,nr)}}]),e}();function lr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lr(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ur(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pr(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Er(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("group"!==t&&!Object.prototype.hasOwnProperty.call(oe,t))throw new Ge(Be.INVALID_ELEMENT_TYPE,[],!0);if(Object.prototype.hasOwnProperty.call(n,"validations")){if(!Array.isArray(n.validations))throw new Ge(Be.INVALID_VALIDATIONS_TYPE,[],!0);n.validations.forEach((function(t,n){if(!Object.prototype.hasOwnProperty.call(t,"type"))throw new Ge(Be.MISSING_VALIDATION_RULE_TYPE,["".concat(n)],!0);if(!Object.values(Me).includes(t.type))throw new Ge(Be.INVALID_VALIDATION_RULE_TYPE,["".concat(n)],!0);if(!Object.prototype.hasOwnProperty.call(t,"params"))throw new Ge(Be.MISSING_VALIDATION_RULE_PARAMS,["".concat(n)],!0);if("object"!==e(t.params)||Array.isArray(t.params)||null===t.params)throw new Ge(Be.INVALID_VALIDATION_RULE_PARAMS,["".concat(n)],!0);if(t.type===Me.REGEX_MATCH_RULE){if(!Object.prototype.hasOwnProperty.call(t.params,"regex"))throw new Ge(Be.MISSING_REGEX_IN_REGEX_MATCH_RULE,["".concat(n)],!0)}else if(t.type===Me.LENGTH_MATCH_RULE&&!Object.prototype.hasOwnProperty.call(t.params,"min")&&!Object.prototype.hasOwnProperty.call(t.params,"max"))throw new Ge(Be.MISSING_MIN_AND_MAX_IN_LENGTH_MATCH_RULE,["".concat(n)],!0)}))}if(Object.prototype.hasOwnProperty.call(r,"name")&&r.name!==n.name)throw new Error("Name attribute can't be updated");if((r=ur(ur({},n),r)).mask||r.replacePattern){var o=oe[t].attributes.type;"text"===o&&"textarea"===o&&"email"===o||(delete r.mask,delete r.replacePattern)}if(void 0===!r.mask&&!Array.isArray(r.mask))throw new Error("mask option has to be array or undefined");if(Array.isArray(r.mask)){var i=r.mask;if("string"!=typeof i[0]||i[1]&&"object"!==e(i[1]))throw new Error("mask array values has to be string")}if(Array.isArray(r.replacePattern)){var a=r.replacePattern;if("string"!=typeof a[0]||a[1]&&"string"!=typeof a[1])throw new Error("replacePatterns array values has to be string")}if((t===oe.radio.name||t===oe.checkbox.name)&&!r.value)throw new Error("Elements radio and checkbox requires value attribute");if(!(t!==oe.dropdown.name||r.options&&Array.isArray(r.options)&&0!==r.options.length))throw new Error("Element dropdown requires options attribute with an array of objects containing value and text attributes")}function dr(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return(n=ur(ur({},t),n)).rows.forEach((function(o,i){var a=o,c=t.rows[i];n.rows[i]=ur(ur({},c),a),a.elements.forEach((function(t,n){var o,i,l=c.elements[n],s=t;if(s.elementType&&l.elementType!==s.elementType&&l.elementName&&l.elementName!==s.elementName)throw new Error(h.errorLogs.CANNOT_CHANGE_ELEMENT);Er(l.elementType,l,s),a.elements[n]=ur(ur(ur({},l),s),{},{elementName:l.elementName});var p=s.classes||{},u=s.styles||{};u.base=ur(ur({},le),u.base),s.classes=p,s.styles=u;var E=(null==s||null===(o=s.labelStyles)||void 0===o?void 0:o.classes)||{},d=(null==s||null===(i=s.labelStyles)||void 0===i?void 0:i.styles)||{};r&&function(t,n){Object.values(se).forEach((function(e){if(t[e]||n[e])switch(e){case se.BASE:n[e]=sr({},n[e]);break;case se.FOCUS:n[se.BASE]=sr(sr({},n[se.BASE]),{},{":focus":sr({},n[se.BASE]&&n[se.BASE][":focus"])});break;case se.WEBPACKAUTOFILL:n[se.BASE]=sr(sr({},n[se.BASE]),{},{":-webkit-autofill":sr({},n[se.BASE]&&n[se.BASE][":-webkit-autofill"])});break;default:n[e]=sr(sr({},n[se.BASE]),n[e])}})),Object.keys(n).forEach((function(t){var r=n[t][":-webkit-autofill"];"object"===e(r)&&Object.keys(r).forEach((function(e){r[e]&&!r[e].includes("!important")&&(r[e]="".concat(r[e]," !important"))}))}))}(E,d),s.labelStyles={labelClasses:E},s.labelStyles.styles=d}))})),n}var fr=function(e){var t=e.rows,n=[];return t.forEach((function(e){e.elements.forEach((function(e){n.push(e)}))})),n},_r=function(e){return e&&Array.isArray(e)&&e.length>0&&e.forEach((function(e,t){if(e&&e.type===Me.ELEMENT_VALUE_MATCH_RULE){if(e.params&&!Object.prototype.hasOwnProperty.call(e.params,"element"))throw new Ge(Be.MISSING_ELEMENT_IN_ELEMENT_MATCH_RULE,["".concat(t)],!0);if(e.params&&(null==e.params.element||!(e.params.element instanceof er||cr)))throw new Ge(Be.INVALID_ELEMENT_IN_ELEMENT_MATCH_RULE,["".concat(t)],!0);e.params&&e.params.element&&(e.params.element instanceof er||cr)&&(e.params.elementID=e.params.element.getID(),e.params.element=e.params.element.iframeName())}else if(e&&e.type===Me.REGEX_MATCH_RULE){if(e.params&&e.params.regex&&!nt(e.params.regex))throw new Ge(Be.INVALID_REGEX_IN_REGEX_MATCH_RULE,["".concat(t)],!0);e.params&&e.params.regex&&nt(e.params.regex)&&(e.params.regex=e.params.regex.toString())}})),e},Ir=function(t,n,r){var o,i,a,c=ur({required:!1},n);if(Object.prototype.hasOwnProperty.call(c,"format")||Object.prototype.hasOwnProperty.call(c,"translation"))if(_e.includes(t))ke(Ve(h.warnLogs.INPUT_FORMATTING_NOT_SUPPROTED,t),xe.WARN,r),null===(o=c)||void 0===o||delete o.format,null===(i=c)||void 0===i||delete i.translation;else if(t===oe.INPUT_FIELD.name){var l,s;ct(n),null===(l=c=ur(ur({},c),{},{mask:[c.format,c.translation?c.translation:Ie]}))||void 0===l||delete l.format,null===(s=c)||void 0===s||delete s.translation}switch(t){case oe.CARD_NUMBER.name:var p,u,E;Object.prototype.hasOwnProperty.call(c,"enableCardIcon")||(c=ur(ur({},c),{},{enableCardIcon:!0}));var d=" ";if((null===(p=c)||void 0===p?void 0:p.format)===ie&&(d="-"),null===(u=c=ur(ur({},c),{},{cardSeperator:d}))||void 0===u||delete u.format,null===(E=c)||void 0===E||delete E.translation,Object.prototype.hasOwnProperty.call(c,"cardMetadata")){if("object"!==e(c.cardMetadata)||"[object Object]"!==Object.prototype.toString.call(c.cardMetadata))throw new Ge(Be.INVALID_OPTION_CARD_METADATA,[],!0);if(Object.prototype.hasOwnProperty.call(c.cardMetadata,"scheme")&&("object"!==e(c.cardMetadata.scheme)||"[object Array]"!==Object.prototype.toString.call(c.cardMetadata.scheme)))throw new Ge(Be.INVALID_OPTION_CARD_SCHEME,[],!0)}break;case oe.EXPIRATION_DATE.name:var f,_=!1;c.format&&((_=!!(a=c.format.toUpperCase())&&Ee.includes(a))||ke(Ve(h.warnLogs.INVALID_EXPIRATION_DATE_FORMAT,Ee.toString()),xe.WARN,r)),null===(f=c=ur(ur({},c),{},{format:_?c.format.toUpperCase():ue}))||void 0===f||delete f.translation;break;case oe.EXPIRATION_YEAR.name:var I,m=!1;c.format&&(m=function(e){return!!e&&de.includes(e)}(c.format.toUpperCase()),m||ke(Ve(h.warnLogs.INVALID_EXPIRATION_YEAR_FORMAT,de.toString()),xe.WARN,r)),null===(I=c=ur(ur({},c),{},{format:m?c.format.toUpperCase():"YY"}))||void 0===I||delete I.translation;break;case oe.FILE_INPUT.name:Object.prototype.hasOwnProperty.call(c,"preserveFileName")||(c=ur(ur({},c),{},{preserveFileName:!0}))}if(Object.prototype.hasOwnProperty.call(c,"enableCardIcon")&&!at(c.enableCardIcon))throw new Ge(Be.INVALID_BOOLEAN_OPTIONS,["enableCardIcon"],!0);if(Object.prototype.hasOwnProperty.call(c,"enableCopy")&&!at(c.enableCopy))throw new Ge(Be.INVALID_BOOLEAN_OPTIONS,["enableCopy"],!0);if(Object.prototype.hasOwnProperty.call(c,"required")&&!at(c.required))throw new Ge(Be.INVALID_BOOLEAN_OPTIONS,["required"],!0);if(Object.prototype.hasOwnProperty.call(c,"preserveFileName")&&!at(c.preserveFileName))throw new Ge(Be.INVALID_BOOLEAN_OPTIONS,["preserveFileName"],!0);if(t===oe.FILE_INPUT.name){if(n.allowedFileType){if(!Array.isArray(n.allowedFileType))throw new Ge(Be.INVALID_ALLOWED_OPTIONS,[],!0);if(n.allowedFileType.length<=0)throw new Ge(Be.EMPTY_ALLOWED_OPTIONS_ARRAY,[],!0);if(!n.allowedFileType.every((function(e){return"string"==typeof e})))throw new Ge(Be.INVALID_ALLOWED_FILETYPE_ARRAY,[],!0)}Object.prototype.hasOwnProperty.call(n,"allowedFileType")&&(c=ur(ur({},c),{},{allowedFileType:n.allowedFileType}))}return c};function mr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mr(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ge(e);if(t){var o=ge(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Le(this,n)}}function Tr(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var Or="CollectContainer",Nr=new WeakMap,Lr=new WeakMap,gr=new WeakMap,hr=new WeakMap,Ar=new WeakMap,Rr=new WeakMap,br=new WeakMap,wr=new WeakMap,Sr=new WeakMap,Dr=new WeakMap,xr=new WeakMap,Mr=new WeakMap,Pr=function(e){Ne(n,e);var t=yr(n);function n(e,r,a,c){var l,u;i(this,n),Tr(Te(u=t.call(this)),Nr,{writable:!0,value:void 0}),Tr(Te(u),Lr,{writable:!0,value:{}}),Tr(Te(u),gr,{writable:!0,value:void 0}),Tr(Te(u),hr,{writable:!0,value:void 0}),Tr(Te(u),Ar,{writable:!0,value:void 0}),o(Te(u),"type",wo.COLLECT),Tr(Te(u),Rr,{writable:!0,value:void 0}),Tr(Te(u),br,{writable:!0,value:!1}),o(Te(u),"create",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{required:!1};ot(e,p(Te(u),hr).logLevel);var n=_r(e.validations),r=Ir(e.type,t,p(Te(u),hr).logLevel),o={rows:[{elements:[vr(vr(vr({elementType:e.type,name:e.column,accept:t.allowedFileType},e),r),{},{validations:n})]}]};return p(Te(u),wr).call(Te(u),o,!0)})),Tr(Te(u),wr,{writable:!0,value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[],r=Nn(e);if(r.rows.forEach((function(e){e.elements.forEach((function(e){var t=e,r=t.elementType;Er(r,t),t.sensitive=t.sensitive||oe[r].sensitive,t.replacePattern=t.replacePattern||oe[r].replacePattern,t.mask=t.mask||oe[r].mask,t.isMounted=!1,t.elementType!==oe.radio.name&&t.elementType!==oe.checkbox.name||(t.elementName="".concat(t.elementName,":").concat(btoa(t.value))),t.elementName="".concat(j,":").concat(t.elementType,":").concat(btoa(d())),t.label=e.label,t.skyflowID=e.skyflowID,n.push(t)}))})),r.elementName=t?n[0].elementName:"".concat(j,":group:").concat(btoa(r.name)),t&&!p(Te(u),Lr)[n[0].elementName]&&p(Te(u),Mr).call(Te(u),n[0].name))throw new Ge(Be.UNIQUE_ELEMENT_NAME,["".concat(n[0].name)],!0);var o=p(Te(u),Lr)[r.elementName];if(o)t?o.updateElementGroup(n[0]):o.updateElementGroup(r);else{var i=d();o=new er(i,r,p(Te(u),gr),{containerId:p(Te(u),Nr),isMounted:p(Te(u),br),type:u.type},t,p(Te(u),Dr),p(Te(u),xr),p(Te(u),hr),p(Te(u),Rr)),p(Te(u),Lr)[r.elementName]=o,p(Te(u),Ar)[i]=o}return t||n.forEach((function(e){var t=e.elementName;p(Te(u),Lr)[t]?p(Te(u),Lr)[t].updateElementGroup(e):p(Te(u),Lr)[t]=u.create(e.elementType,o)})),o}}),Tr(Te(u),Sr,{writable:!0,value:function(e){Object.keys(p(Te(u),Lr)).forEach((function(t){t===e&&delete p(Te(u),Lr)[t]}))}}),Tr(Te(u),Dr,{writable:!0,value:function(e){e.forEach((function(e){p(Te(u),Sr).call(Te(u),e)}))}}),Tr(Te(u),xr,{writable:!0,value:function(e){e.forEach((function(e){p(Te(u),Lr)[e.elementName]&&p(Te(u),Lr)[e.elementName].updateElementGroup(e)}))}}),Tr(Te(u),Mr,{writable:!0,value:function(e){for(var t=Object.keys(p(Te(u),Lr)),n=0;n<t.length;n+=1)if(atob(t[n].split(":")[2])===e)return!0;return!1}}),o(Te(u),"collect",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{tokens:!0};return new Promise((function(t,n){try{if(rt(p(Te(u),gr).clientJSON.config),Object.values(p(Te(u),Lr)).forEach((function(e){if(!e.isMounted())throw new Ge(Be.ELEMENTS_NOT_MOUNTED,[],!0);e.isValidElement()})),Object.prototype.hasOwnProperty.call(e,"tokens")&&!at(e.tokens))throw new Ge(Be.INVALID_TOKENS_IN_COLLECT,[],!0);null!=e&&e.additionalFields&&ze(e.additionalFields),null!=e&&e.upsert&&it(null==e?void 0:e.upsert),E().emit(W.TOKENIZATION_REQUEST+p(Te(u),Nr),vr(vr({},e),{},{tokens:void 0===(null==e?void 0:e.tokens)||e.tokens}),(function(e){!e||null!=e&&e.error?(ke("".concat(JSON.stringify(null==e?void 0:e.error)),xe.ERROR,p(Te(u),hr).logLevel),n(null==e?void 0:e.error)):(ke(Ve(h.infoLogs.COLLECT_SUBMIT_SUCCESS,Or),xe.LOG,p(Te(u),hr).logLevel),t(e))})),ke(Ve(h.infoLogs.EMIT_EVENT,Or,W.TOKENIZATION_REQUEST),xe.LOG,p(Te(u),hr).logLevel)}catch(e){ke("".concat(e.message),xe.ERROR,p(Te(u),hr).logLevel),n(e)}}))})),o(Te(u),"uploadFiles",(function(e){return new Promise((function(t,n){try{rt(p(Te(u),gr).clientJSON.config),Object.values(p(Te(u),Lr)).forEach((function(e){if(!e.isMounted())throw new Ge(Be.ELEMENTS_NOT_MOUNTED,[],!0);e.isValidElement()})),E().emit(W.FILE_UPLOAD+p(Te(u),Nr),vr({},e),(function(e){!e||null!=e&&e.error?(ke("".concat(JSON.stringify(null==e?void 0:e.error)),xe.ERROR,p(Te(u),hr).logLevel),n(null==e?void 0:e.error)):(ke(Ve(h.infoLogs.COLLECT_SUBMIT_SUCCESS,Or),xe.LOG,p(Te(u),hr).logLevel),t(e))})),ke(Ve(h.infoLogs.EMIT_EVENT,Or,W.FILE_UPLOAD),xe.LOG,p(Te(u),hr).logLevel)}catch(e){ke("".concat(e.message),xe.ERROR,p(Te(u),hr).logLevel),n(e)}}))})),s(Te(u),Nr,d()),s(Te(u),gr,vr(vr({},r),{},{clientJSON:vr(vr({},r.clientJSON),{},{config:vr(vr({},r.clientJSON.config),{},{options:vr(vr({},null===(l=r.clientJSON.config)||void 0===l?void 0:l.options),e)})})})),s(Te(u),Ar,a),s(Te(u),hr,c),s(Te(u),Rr,new vt);var f=p(Te(u),gr).clientDomain||"",_=Lt({name:"".concat(P,":").concat(p(Te(u),Nr),":").concat(p(Te(u),hr).logLevel,":").concat(btoa(f)),referrer:f});Nt(_,{src:gt()}),ht(_,vr({},ce)),ke(Ve(h.infoLogs.CREATE_COLLECT_CONTAINER,Or),xe.LOG,p(Te(u),hr).logLevel);return E().target(lt.IFRAME_SECURE_ORGIN).on(W.FRAME_READY+p(Te(u),Nr),(function e(t,n){t.name===P+p(Te(u),Nr)&&(n(vr(vr({},r),{},{clientJSON:vr(vr({},r.clientJSON),{},{config:vr({},r.clientJSON.config)}),context:c})),s(Te(u),br,!0),p(Te(u),Rr)._emit($,{containerId:p(Te(u),Nr)}),E().target(lt.IFRAME_SECURE_ORGIN).off(W.FRAME_READY+p(Te(u),Nr),e))})),document.body.append(_),u}return c(n)}(At);const Cr=Pr;function jr(e){this.message=e}jr.prototype=new Error,jr.prototype.name="InvalidCharacterError";var Ur="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new jr("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,r,o=0,i=0,a="";r=t.charAt(i++);~r&&(n=o%4?64*n+r:r,o++%4)?a+=String.fromCharCode(255&n>>(-2*o&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return a};function kr(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(Ur(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return Ur(t)}}function Vr(e){this.message=e}Vr.prototype=new Error,Vr.prototype.name="InvalidTokenError";const Yr=function(e,t){if("string"!=typeof e)throw new Vr("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(kr(e.split(".")[n]))}catch(e){throw new Vr("Invalid token specified: "+e.message)}};const Fr=function(e){try{if(!e)return!1;if(i=e,"[object String]"!==Object.prototype.toString.call(i))return!1;var t=!1,n=Yr(e),r=(new Date).getTime()/1e3,o=n.exp;return o&&r>o&&(t=!0),!t}catch(e){return!1}var i};function Gr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Br(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gr(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xr(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var Kr="SkyflowContainer",Wr=new WeakMap,qr=new WeakMap,zr=new WeakMap,Hr=new WeakMap,Jr=function(){function e(t,n){var r,o,a=this;i(this,e),Xr(this,Wr,{writable:!0,value:void 0}),Xr(this,qr,{writable:!0,value:void 0}),Xr(this,zr,{writable:!0,value:!1}),Xr(this,Hr,{writable:!0,value:void 0}),s(this,qr,t),s(this,Wr,(null===(r=p(this,qr).toJSON())||void 0===r||null===(r=r.metaData)||void 0===r?void 0:r.uuid)||""),s(this,Hr,n);var c=window.location.origin||"",l=Lt({name:"".concat("skyflow_controller",":").concat(p(this,Wr),":").concat(btoa(c),":").concat(!(null===(o=p(this,qr).toJSON())||void 0===o||null===(o=o.config)||void 0===o||null===(o=o.options)||void 0===o||!o.trackingKey)),referrer:c});Nt(l,{src:gt()}),ht(l,Br({},ce)),document.body.append(l),E().target(lt.IFRAME_SECURE_ORGIN).on(W.PUREJS_FRAME_READY+p(this,Wr),(function(e,t){ke(Ve(h.infoLogs.CAPTURE_PUREJS_FRAME,Kr),xe.LOG,p(a,Hr).logLevel),t({client:p(a,qr),context:n}),s(a,zr,!0)})),ke(Ve(h.infoLogs.PUREJS_CONTROLLER_INITIALIZED,Kr),xe.LOG,p(this,Hr).logLevel)}return c(e,[{key:"detokenize",value:function(e){var t=this;return p(this,zr)?new Promise((function(n,r){try{rt(p(t,qr).config),ke(Ve(h.infoLogs.VALIDATE_DETOKENIZE_INPUT,Kr),xe.LOG,p(t,Hr).logLevel),He(e),E().emit(W.PUREJS_REQUEST+p(t,Wr),{type:F,records:e.records},(function(e){e.error?r(e.error):n(e)})),ke(Ve(h.infoLogs.EMIT_PURE_JS_REQUEST,Kr,F),xe.LOG,p(t,Hr).logLevel)}catch(e){ke(e.message,xe.ERROR,p(t,Hr).logLevel),r(e)}})):new Promise((function(n,r){try{rt(p(t,qr).config),ke(Ve(h.infoLogs.VALIDATE_DETOKENIZE_INPUT,Kr),xe.LOG,p(t,Hr).logLevel),He(e),E().target(lt.IFRAME_SECURE_ORGIN).on(W.PUREJS_FRAME_READY+p(t,Wr),(function(){E().emit(W.PUREJS_REQUEST+p(t,Wr),{type:F,records:e.records},(function(e){e.error?r(e.error):n(e)}))})),ke(Ve(h.infoLogs.EMIT_PURE_JS_REQUEST,Kr,F),xe.LOG,p(t,Hr).logLevel)}catch(e){ke(e.message,xe.ERROR,p(t,Hr).logLevel),r(e)}}))}},{key:"insert",value:function(e,t){var n=this;return p(this,zr)?new Promise((function(r,o){rt(p(n,qr).config);try{var i,a;if(ke(Ve(h.infoLogs.VALIDATE_RECORDS,Kr),xe.LOG,p(n,Hr).logLevel),t)t=Br(Br({},t),{},{tokens:void 0===(null===(a=t)||void 0===a?void 0:a.tokens)||t.tokens});else t={tokens:!0};null!==(i=t)&&void 0!==i&&i.upsert&&it(t.upsert),qe(e,t),E().emit(W.PUREJS_REQUEST+p(n,Wr),{type:Y,records:e,options:t},(function(e){e.error?(ke("".concat(JSON.stringify(e.error)),xe.ERROR,p(n,Hr).logLevel),o(e.error)):r(e)})),ke(Ve(h.infoLogs.EMIT_PURE_JS_REQUEST,Kr,Y),xe.LOG,p(n,Hr).logLevel)}catch(e){ke(e.message,xe.ERROR,p(n,Hr).logLevel),o(e)}})):new Promise((function(r,o){try{var i,a;if(rt(p(n,qr).config),ke(Ve(h.infoLogs.VALIDATE_RECORDS,Kr),xe.LOG,p(n,Hr).logLevel),t)t=Br(Br({},t),{},{tokens:void 0===(null===(a=t)||void 0===a?void 0:a.tokens)||t.tokens});else t={tokens:!0};null!==(i=t)&&void 0!==i&&i.upsert&&it(t.upsert),qe(e,t),E().target(lt.IFRAME_SECURE_ORGIN).on(W.PUREJS_FRAME_READY+p(n,Wr),(function(){E().emit(W.PUREJS_REQUEST+p(n,Wr),{type:Y,records:e,options:t},(function(e){e.error?(ke("".concat(JSON.stringify(e.error)),xe.ERROR,p(n,Hr).logLevel),o(e.error)):r(e)}))})),ke(Ve(h.infoLogs.EMIT_PURE_JS_REQUEST,Kr,Y),xe.LOG,p(n,Hr).logLevel)}catch(e){ke(e.message,xe.ERROR,p(n,Hr).logLevel),o(e)}}))}},{key:"getById",value:function(e){var t=this;return p(this,zr)?new Promise((function(n,r){rt(p(t,qr).config);try{ke(Ve(h.infoLogs.VALIDATE_GET_BY_ID_INPUT,Kr),xe.LOG,p(t,Hr).logLevel),Qe(e),E().emit(W.PUREJS_REQUEST+p(t,Wr),{type:G,records:e.records},(function(e){e.error?r(e.error):n(e)})),ke(Ve(h.infoLogs.EMIT_PURE_JS_REQUEST,Kr,G),xe.LOG,p(t,Hr).logLevel)}catch(e){ke(e.message,xe.ERROR,p(t,Hr).logLevel),r(e)}})):new Promise((function(n,r){try{rt(p(t,qr).config),ke(Ve(h.infoLogs.VALIDATE_GET_BY_ID_INPUT,Kr),xe.LOG,p(t,Hr).logLevel),Qe(e),E().target(lt.IFRAME_SECURE_ORGIN).on(W.PUREJS_FRAME_READY+p(t,Wr),(function(){E().emit(W.PUREJS_REQUEST+p(t,Wr),{type:G,records:e.records},(function(e){e.error?r(e.error):n(e)}))})),ke(Ve(h.infoLogs.EMIT_PURE_JS_REQUEST,Kr,G),xe.LOG,p(t,Hr).logLevel)}catch(e){ke(e.message,xe.ERROR,p(t,Hr).logLevel),r(e)}}))}},{key:"get",value:function(e,t){var n=this;return p(this,zr)?new Promise((function(r,o){rt(p(n,qr).config);try{ke(Ve(h.infoLogs.VALIDATE_GET_INPUT,Kr),xe.LOG,p(n,Hr).logLevel),Je(e,t),E().emit(W.PUREJS_REQUEST+p(n,Wr),{type:B,records:e.records,options:t},(function(e){e.error?o(e.error):r(e)})),ke(Ve(h.infoLogs.EMIT_PURE_JS_REQUEST,Kr,B),xe.LOG,p(n,Hr).logLevel)}catch(e){ke(e.message,xe.ERROR,p(n,Hr).logLevel),o(e)}})):new Promise((function(r,o){try{rt(p(n,qr).config),ke(Ve(h.infoLogs.VALIDATE_GET_INPUT,Kr),xe.LOG,p(n,Hr).logLevel),Je(e,t),E().target(lt.IFRAME_SECURE_ORGIN).on(W.PUREJS_FRAME_READY+p(n,Wr),(function(){E().emit(W.PUREJS_REQUEST+p(n,Wr),{type:B,records:e.records,options:t},(function(e){e.error?o(e.error):r(e)}))})),ke(Ve(h.infoLogs.EMIT_PURE_JS_REQUEST,Kr,B),xe.LOG,p(n,Hr).logLevel)}catch(e){ke(e.message,xe.ERROR,p(n,Hr).logLevel),o(e)}}))}},{key:"delete",value:function(e,t){var n=this;return p(this,zr)?new Promise((function(r,o){rt(p(n,qr).config);try{ke(Ve(h.infoLogs.VALIDATE_DELETE_INPUT,Kr),xe.LOG,p(n,Hr).logLevel),Ze(e),E().emit(W.PUREJS_REQUEST+p(n,Wr),{type:X,records:e,options:t},(function(e){e.error?(ke("".concat(JSON.stringify(e.error)),xe.ERROR,p(n,Hr).logLevel),o(e.error)):r(e)})),ke(Ve(h.infoLogs.EMIT_PURE_JS_REQUEST,Kr,X),xe.LOG,p(n,Hr).logLevel)}catch(e){ke(e.message,xe.ERROR,p(n,Hr).logLevel),o(e)}})):new Promise((function(r,o){try{rt(p(n,qr).config),ke(Ve(h.infoLogs.VALIDATE_RECORDS,Kr),xe.LOG,p(n,Hr).logLevel),Ze(e),E().target(lt.IFRAME_SECURE_ORGIN).on(W.PUREJS_FRAME_READY+p(n,Wr),(function(){E().emit(W.PUREJS_REQUEST+p(n,Wr),{type:X,records:e,options:t},(function(e){e.error?(ke("".concat(JSON.stringify(e.error)),xe.ERROR,p(n,Hr).logLevel),o(e.error)):r(e)}))})),ke(Ve(h.infoLogs.EMIT_PURE_JS_REQUEST,Kr,X),xe.LOG,p(n,Hr).logLevel)}catch(e){ke(e.message,xe.ERROR,p(n,Hr).logLevel),o(e)}}))}},{key:"renderFile",value:function(e,t,n,r){var o=this;return p(this,zr)?new Promise((function(t,i){try{rt(p(o,qr).config),ke(Ve(h.infoLogs.VALIDATE_RENDER_RECORDS,Kr),xe.LOG,p(o,Hr).logLevel),et(e),E().emit(W.RENDER_FILE_REQUEST+p(o,Wr),{records:e,containerId:n,iframeName:r},(function(n){n.errors?i(Ut(n,e.column)):t(n)})),ke(Ve(h.infoLogs.EMIT_EVENT,Kr,W.RENDER_FILE_REQUEST),xe.LOG,p(o,Hr).logLevel)}catch(e){ke("Error: ".concat(e.message),xe.ERROR,p(o,Hr).logLevel),i(e)}})):new Promise((function(i,a){try{rt(t.clientJSON.config),ke(Ve(h.infoLogs.VALIDATE_RENDER_RECORDS,Kr),xe.LOG,p(o,Hr).logLevel),et(e),E().target(lt.IFRAME_SECURE_ORGIN).on(W.PUREJS_FRAME_READY+p(o,Wr),(function(){E().emit(W.RENDER_FILE_REQUEST+p(o,Wr),{records:e,containerId:n,iframeName:r},(function(t){t.errors?a(Ut(t,e.column)):i(t)})),ke(Ve(h.infoLogs.EMIT_EVENT,Kr,W.RENDER_FILE_REQUEST),xe.LOG,p(o,Hr).logLevel)})),ke(Ve(h.infoLogs.EMIT_EVENT,Kr,W.RENDER_FILE_REQUEST),xe.LOG,p(o,Hr).logLevel)}catch(e){ke("Error: ".concat(e.message),xe.ERROR,p(o,Hr).logLevel),a(e)}}))}}]),e}();const Qr=Jr;var Zr=n(2297),$r=n.n(Zr);function eo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function to(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eo(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function no(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ge(e);if(t){var o=ge(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Le(this,n)}}function ro(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var oo="CollectContainer",io=new WeakMap,ao=new WeakMap,co=new WeakMap,lo=new WeakMap,so=new WeakMap,po=new WeakMap,uo=new WeakMap,Eo=new WeakMap,fo=new WeakMap,_o=new WeakMap,Io=new WeakMap,mo=new WeakMap,vo=new WeakMap,yo=new WeakMap,To=new WeakMap,Oo=new WeakMap,No=new WeakMap,Lo=new WeakMap,go=new WeakMap;const ho=function(e){Ne(n,e);var t=no(n);function n(e,r,a,c){var l,u;i(this,n),ro(Te(u=t.call(this)),io,{writable:!0,value:void 0}),ro(Te(u),ao,{writable:!0,value:{}}),ro(Te(u),co,{writable:!0,value:void 0}),ro(Te(u),lo,{writable:!0,value:{rows:[]}}),ro(Te(u),so,{writable:!0,value:[]}),ro(Te(u),po,{writable:!0,value:void 0}),ro(Te(u),uo,{writable:!0,value:void 0}),ro(Te(u),Eo,{writable:!0,value:void 0}),ro(Te(u),fo,{writable:!0,value:!1}),ro(Te(u),_o,{writable:!0,value:void 0}),ro(Te(u),Io,{writable:!0,value:void 0}),o(Te(u),"type",wo.COMPOSABLE),ro(Te(u),mo,{writable:!0,value:!1}),ro(Te(u),vo,{writable:!0,value:{}}),o(Te(u),"create",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{required:!1};ot(e,p(Te(u),po).logLevel);var n=_r(e.validations),r=Ir(e.type,t,p(Te(u),po).logLevel),o="".concat(j,":").concat(e.type,":").concat(btoa(d()));p(Te(u),so).push(to(to(to({elementType:e.type,name:e.column},e),r),{},{validations:n,elementName:o}));var i="".concat(j,":group:").concat(btoa(p(Te(u),vo)),":").concat(p(Te(u),io),":").concat(p(Te(u),po).logLevel);return new cr(o,p(Te(u),Eo),i)})),ro(Te(u),yo,{writable:!0,value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[];if(s(Te(u),vo,Nn(e)),p(Te(u),vo).rows.forEach((function(e){e.elements.forEach((function(e){var t=e,r=t.elementType;Er(r,t),t.sensitive=t.sensitive||oe[r].sensitive,t.replacePattern=t.replacePattern||oe[r].replacePattern,t.mask=t.mask||oe[r].mask,t.isMounted=!1,t.label=e.label,t.skyflowID=e.skyflowID,n.push(t)}))})),p(Te(u),vo).elementName=t?n[0].elementName:"".concat(j,":group:").concat(btoa(p(Te(u),vo))),t&&!p(Te(u),ao)[n[0].elementName]&&p(Te(u),Lo).call(Te(u),n[0].name))throw new Ge(Be.UNIQUE_ELEMENT_NAME,["".concat(n[0].name)],!0);var r=p(Te(u),ao)[p(Te(u),vo).elementName];if(r)t?r.update(n[0]):r.update(p(Te(u),vo));else{var o=d();r=new er(o,p(Te(u),vo),p(Te(u),co),{containerId:p(Te(u),io),isMounted:p(Te(u),mo),type:u.type},!0,p(Te(u),Oo),p(Te(u),No),p(Te(u),po),p(Te(u),Eo)),p(Te(u),ao)[p(Te(u),vo).elementName]=r,p(Te(u),uo)[o]=r}return r}}),ro(Te(u),To,{writable:!0,value:function(e){Object.keys(p(Te(u),ao)).forEach((function(t){t===e&&delete p(Te(u),ao)[t]}))}}),ro(Te(u),Oo,{writable:!0,value:function(e){e.forEach((function(e){p(Te(u),To).call(Te(u),e)}))}}),ro(Te(u),No,{writable:!0,value:function(e){e.forEach((function(e){p(Te(u),ao)[e.elementName]&&p(Te(u),ao)[e.elementName].update(e)}))}}),ro(Te(u),Lo,{writable:!0,value:function(e){for(var t=Object.keys(p(Te(u),ao)),n=0;n<t.length;n+=1)if(atob(t[n].split(":")[2])===e)return!0;return!1}}),o(Te(u),"on",(function(e,t){if(!Object.values(K).includes(e))throw new Ge(Be.INVALID_EVENT_LISTENER,[],!0);if(!t)throw new Ge(Be.MISSING_HANDLER_IN_EVENT_LISTENER,[],!0);if("function"!=typeof t)throw new Ge(Be.INVALID_HANDLER_IN_EVENT_LISTENER,[],!0);p(Te(u),Eo).on(K.SUBMIT,(function(){t()}))})),o(Te(u),"mount",(function(e){if(!e)throw new Ge(Be.EMPTY_ELEMENT_IN_MOUNT,["CollectElement"],!0);var t=p(Te(u),_o).layout;if($r()(t)!==p(Te(u),so).length)throw new Ge(Be.MISMATCH_ELEMENT_COUNT_LAYOUT_SUM,[],!0);var n=0;if(t.forEach((function(e,t){p(Te(u),lo).rows=[].concat(ye(p(Te(u),lo).rows),[{elements:[]}]);for(var r=0;r<e;r++)p(Te(u),lo).rows[t].elements.push(p(Te(u),so)[n]),n++})),p(Te(u),_o).styles&&(p(Te(u),lo).styles=to({},p(Te(u),_o).styles)),p(Te(u),_o).errorTextStyles&&(p(Te(u),lo).errorTextStyles=to({},p(Te(u),_o).errorTextStyles)),p(Te(u),mo))return s(Te(u),Io,p(Te(u),yo).call(Te(u),p(Te(u),lo),!1)),p(Te(u),Io).mount(e),void s(Te(u),fo,!0);p(Te(u),Eo).on(Z+p(Te(u),io),(function(){s(Te(u),Io,p(Te(u),yo).call(Te(u),p(Te(u),lo),!1)),p(Te(u),Io).mount(e),s(Te(u),fo,!0)}))})),o(Te(u),"unmount",(function(){p(Te(u),Io).unmount()})),o(Te(u),"collect",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{tokens:!0};return new Promise((function(t,n){try{if(rt(p(Te(u),co).clientJSON.config),!p(Te(u),fo))throw new Ge(Be.COMPOSABLE_CONTAINER_NOT_MOUNTED,[],!0);if(fr(p(Te(u),vo)).forEach((function(e){if(null==e||!e.isMounted)throw new Ge(Be.ELEMENTS_NOT_MOUNTED,[],!0)})),Object.values(p(Te(u),ao)).forEach((function(e){e.isValidElement()})),e&&e.tokens&&"boolean"!=typeof e.tokens)throw new Ge(Be.INVALID_TOKENS_IN_COLLECT,[],!0);null!=e&&e.additionalFields&&ze(e.additionalFields),null!=e&&e.upsert&&it(null==e?void 0:e.upsert),E().emit(W.TOKENIZATION_REQUEST+p(Te(u),io),to(to({},e),{},{tokens:void 0===(null==e?void 0:e.tokens)||e.tokens}),(function(e){!e||null!=e&&e.error?(ke("".concat(JSON.stringify(null==e?void 0:e.error)),xe.ERROR,p(Te(u),po).logLevel),n(null==e?void 0:e.error)):(ke(Ve(h.infoLogs.COLLECT_SUBMIT_SUCCESS,oo),xe.LOG,p(Te(u),po).logLevel),t(e))})),ke(Ve(h.infoLogs.EMIT_EVENT,oo,W.TOKENIZATION_REQUEST),xe.LOG,p(Te(u),po).logLevel)}catch(e){ke("".concat(e.message),xe.ERROR,p(Te(u),po).logLevel),n(e)}}))})),ro(Te(u),go,{writable:!0,value:function(){p(Te(u),Eo).on(W.COMPOSABLE_UPDATE_OPTIONS,(function(e){var t,n=p(Te(u),so).map((function(n,r){return n.elementName===e.elementName?(t=r,to({elementName:n.elementName},e.elementOptions)):n}));p(Te(u),Io)&&p(Te(u),Io).updateElement(to({},n[t]))}))}}),s(Te(u),io,d()),s(Te(u),co,to(to({},r),{},{clientJSON:to(to({},r.clientJSON),{},{config:to(to({},r.clientJSON.config),{},{options:to(to({},null===(l=r.clientJSON.config)||void 0===l?void 0:l.options),e)})})})),s(Te(u),uo,a),s(Te(u),po,c),s(Te(u),_o,e),s(Te(u),Eo,new vt);var f=p(Te(u),co).clientDomain||"",_=Lt({name:"".concat(P,":").concat(p(Te(u),io),":").concat(p(Te(u),po).logLevel,":").concat(btoa(f)),referrer:f});Nt(_,{src:gt()}),ht(_,to({},ce)),ke(Ve(h.infoLogs.CREATE_COLLECT_CONTAINER,oo),xe.LOG,p(Te(u),po).logLevel);return E().target(lt.IFRAME_SECURE_ORGIN).on(W.FRAME_READY+p(Te(u),io),(function e(t,n){t.name===P+p(Te(u),io)&&(n(to(to({},r),{},{clientJSON:to(to({},r.clientJSON),{},{config:to({},r.clientJSON.config)}),context:c})),s(Te(u),mo,!0),p(Te(u),Eo)._emit(Z+p(Te(u),io),{containerId:p(Te(u),io)}),E().target(lt.IFRAME_SECURE_ORGIN).off(W.FRAME_READY+p(Te(u),io),e))})),document.body.append(_),p(Te(u),go).call(Te(u)),u}return c(n)}(At);function Ao(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ro(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ao(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ao(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bo(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var wo=function(e){return e.COLLECT="COLLECT",e.REVEAL="REVEAL",e.COMPOSABLE="COMPOSABLE",e}({}),So="Skyflow",Do=new WeakMap,xo=new WeakMap,Mo=new WeakMap,Po=new WeakMap,Co=new WeakMap,jo=new WeakMap,Uo=new WeakMap,ko=new WeakMap,Vo=new WeakMap,Yo=function(){function t(e){var n,r,o=this;i(this,t),bo(this,Do,{writable:!0,value:void 0}),bo(this,xo,{writable:!0,value:d()}),bo(this,Mo,{writable:!0,value:{uuid:p(this,xo),clientDomain:window.location.origin}}),bo(this,Po,{writable:!0,value:void 0}),bo(this,Co,{writable:!0,value:""}),bo(this,jo,{writable:!0,value:void 0}),bo(this,Uo,{writable:!0,value:void 0}),bo(this,ko,{writable:!0,value:void 0}),bo(this,Vo,{writable:!0,value:void 0});var a=localStorage.getItem("sdk_version")||"";p(this,Mo).sdkVersion=a,p(this,Mo).session_id=d(),s(this,Do,new mt(Ro({},e),p(this,Mo))),s(this,Uo,(null==e||null===(n=e.options)||void 0===n?void 0:n.logLevel)||Se.ERROR),s(this,ko,(null==e||null===(r=e.options)||void 0===r?void 0:r.env)||De.PROD),s(this,Vo,{}),s(this,Po,new Qr(p(this,Do),{logLevel:p(this,Uo),env:p(this,ko)}));E().target(lt.IFRAME_SECURE_ORGIN).on(W.GET_BEARER_TOKEN+p(this,xo),(function(e,t){ke(Ve(h.infoLogs.CAPTURED_BEARER_TOKEN_EVENT,So),xe.LOG,p(o,Uo)),!p(o,Do).config.getBearerToken||p(o,Co)&&Fr(p(o,Co))?(ke(Ve(h.infoLogs.REUSE_BEARER_TOKEN,So),xe.LOG,p(o,Uo)),t({authToken:p(o,Co)})):p(o,Do).config.getBearerToken().then((function(e){Fr(e)?(ke(Ve(h.infoLogs.BEARER_TOKEN_RESOLVED,So),xe.LOG,p(o,Uo)),s(o,Co,e),t({authToken:p(o,Co)})):(ke(h.errorLogs.INVALID_BEARER_TOKEN,xe.ERROR,p(o,Uo)),t({error:h.errorLogs.INVALID_BEARER_TOKEN}))})).catch((function(e){ke(h.errorLogs.BEARER_TOKEN_REJECTED,xe.ERROR,p(o,Uo)),t({error:e})}))})),ke(Ve(h.infoLogs.BEARER_TOKEN_LISTENER,So),xe.LOG,p(this,Uo)),ke(Ve(h.infoLogs.CURRENT_ENV,So,p(this,ko)),xe.LOG,p(this,Uo)),ke(Ve(h.infoLogs.CURRENT_LOG_LEVEL,So,p(this,Uo)),xe.LOG,p(this,Uo))}return c(t,[{key:"container",value:function(t,n){switch(t){case wo.COLLECT:var r=new Cr(n,Ro(Ro({},p(this,Mo)),{},{clientJSON:p(this,Do).toJSON(),containerType:t}),p(this,Vo),{logLevel:p(this,Uo),env:p(this,ko)});return ke(Ve(h.infoLogs.COLLECT_CONTAINER_CREATED,So),xe.LOG,p(this,Uo)),r;case wo.REVEAL:var o=new On(Ro(Ro({},p(this,Mo)),{},{clientJSON:p(this,Do).toJSON(),containerType:t,skyflowContainer:p(this,Po)}),p(this,Vo),{logLevel:p(this,Uo)},n);return ke(Ve(h.infoLogs.REVEAL_CONTAINER_CREATED,So),xe.LOG,p(this,Uo)),o;case wo.COMPOSABLE:!function(t){if(!t)throw new Ge(Be.MISSING_COMPOSABLE_CONTAINER_OPTIONS,[],!0);if("object"!==e(t))throw new Ge(Be.INVALID_COMPOSABLE_CONTAINER_OPTIONS,[],!0);if(!Object.prototype.hasOwnProperty.call(t,"layout"))throw new Ge(Be.MISSING_COMPOSABLE_LAYOUT_KEY,[],!0);if(!t.layout)throw new Ge(Be.INVALID_COMPOSABLE_LAYOUT_TYPE,[],!0);if(!Array.isArray(t.layout))throw new Ge(Be.INVALID_COMPOSABLE_LAYOUT_TYPE,[],!0);if(0===t.layout.length)throw new Ge(Be.EMPTY_COMPOSABLE_LAYOUT_ARRAY,[],!0);t.layout.forEach((function(e){if("number"!=typeof e)throw new Ge(Be.INVALID_COMPOSABLE_LAYOUT_TYPE,[],!0);if(e<0)throw new Ge(Be.NEGATIVE_VALUES_COMPOSABLE_LAYOUT,[],!0)}))}(n);var i=new ho(n,Ro(Ro({},p(this,Mo)),{},{clientJSON:p(this,Do).toJSON(),containerType:t}),p(this,Vo),{logLevel:p(this,Uo),env:p(this,ko)});return ke(Ve(h.infoLogs.COLLECT_CONTAINER_CREATED,So),xe.LOG,p(this,Uo)),i;default:if(!t)throw new Ge(Be.EMPTY_CONTAINER_TYPE,[],!0);throw new Ge(Be.INVALID_CONTAINER_TYPE,[],!0)}}},{key:"insert",value:function(e,t){return ke(Ve(h.infoLogs.INSERT_TRIGGERED,So),xe.LOG,p(this,Uo)),p(this,Po).insert(e,t)}},{key:"detokenize",value:function(e){return ke(Ve(h.infoLogs.DETOKENIZE_TRIGGERED,So),xe.LOG,p(this,Uo)),p(this,Po).detokenize(e)}},{key:"getById",value:function(e){return ke(h.warnLogs.GET_BY_ID_DEPRECATED,xe.WARN,p(this,Uo)),ke(Ve(h.infoLogs.GET_BY_ID_TRIGGERED,So),xe.LOG,p(this,Uo)),p(this,Po).getById(e)}},{key:"get",value:function(e,t){return ke(Ve(h.infoLogs.GET_TRIGGERED,So),xe.LOG,p(this,Uo)),p(this,Po).get(e,t)}},{key:"delete",value:function(e,t){return ke(Ve(h.infoLogs.DELETE_TRIGGERED,So),xe.LOG,p(this,Uo)),p(this,Po).delete(e,t)}}],[{key:"init",value:function(e){var n,r=(null==e||null===(n=e.options)||void 0===n?void 0:n.logLevel)||Se.ERROR;!function(e){var t,n;if(null!=e&&null!==(t=e.options)&&void 0!==t&&t.customElementsURL&&tt(null==e||null===(n=e.options)||void 0===n?void 0:n.customElementsURL)){var r,o,i=null==e||null===(r=e.options)||void 0===r?void 0:r.customElementsURL,a=new URL(i),c=a.protocol,l=a.hostname,s="".concat(c,"//").concat(l);lt.IFRAME_SECURE_ORGIN=s,lt.IFRAME_SECURE_SITE=null==e||null===(o=e.options)||void 0===o?void 0:o.customElementsURL}}(e),ke(Ve(h.infoLogs.INITIALIZE_CLIENT,So),xe.LOG,r);var o,i=e;i.vaultURL="string"!=typeof(o=e.vaultURL)?o:"/"===(null==o?void 0:o.trim().slice(-1))?o.slice(0,-1):o.trim();var a=new t(i);return ke(Ve(h.infoLogs.CLIENT_INITIALIZED,So),xe.LOG,r),a}},{key:"ContainerType",get:function(){return wo}},{key:"ElementType",get:function(){return te}},{key:"RedactionType",get:function(){return Re}},{key:"RequestMethod",get:function(){return be}},{key:"LogLevel",get:function(){return Se}},{key:"EventName",get:function(){return we}},{key:"Env",get:function(){return De}},{key:"ValidationRuleType",get:function(){return Me}},{key:"CardType",get:function(){return ne}},{key:"Error",get:function(){return Ge}}]),t}();const Fo=Yo})(),r})()));
2
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Skyflow",[],t):"object"==typeof exports?exports.Skyflow=t():e.Skyflow=t()}(this,(()=>(()=>{var e={9684:e=>{"use strict";e.exports=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}},9282:(e,t,n)=>{"use strict";var r=n(4155),o=n(5108);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,a=void 0,a=function(e,t){if("object"!==i(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===i(a)?a:String(a)),r)}var o,a}function c(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var l,s,p=n(2136).codes,u=p.ERR_AMBIGUOUS_ARGUMENT,E=p.ERR_INVALID_ARG_TYPE,d=p.ERR_INVALID_ARG_VALUE,f=p.ERR_INVALID_RETURN_VALUE,_=p.ERR_MISSING_ARGS,m=n(5961),v=n(9539).inspect,I=n(9539).types,y=I.isPromise,T=I.isRegExp,O=n(8162)(),N=n(5624)(),L=n(1924)("RegExp.prototype.test");new Map;function g(){var e=n(9158);l=e.isDeepEqual,s=e.isDeepStrictEqual}var h=!1,A=e.exports=w,R={};function b(e){if(e.message instanceof Error)throw e.message;throw new m(e)}function S(e,t,n,r){if(!n){var o=!1;if(0===t)o=!0,r="No value argument passed to `assert.ok()`";else if(r instanceof Error)throw r;var i=new m({actual:n,expected:!0,message:r,operator:"==",stackStartFn:e});throw i.generatedMessage=o,i}}function w(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];S.apply(void 0,[w,t.length].concat(t))}A.fail=function e(t,n,i,a,c){var l,s=arguments.length;if(0===s)l="Failed";else if(1===s)i=t,t=void 0;else{if(!1===h)h=!0,(r.emitWarning?r.emitWarning:o.warn.bind(o))("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094");2===s&&(a="!=")}if(i instanceof Error)throw i;var p={actual:t,expected:n,operator:void 0===a?"fail":a,stackStartFn:c||e};void 0!==i&&(p.message=i);var u=new m(p);throw l&&(u.message=l,u.generatedMessage=!0),u},A.AssertionError=m,A.ok=w,A.equal=function e(t,n,r){if(arguments.length<2)throw new _("actual","expected");t!=n&&b({actual:t,expected:n,message:r,operator:"==",stackStartFn:e})},A.notEqual=function e(t,n,r){if(arguments.length<2)throw new _("actual","expected");t==n&&b({actual:t,expected:n,message:r,operator:"!=",stackStartFn:e})},A.deepEqual=function e(t,n,r){if(arguments.length<2)throw new _("actual","expected");void 0===l&&g(),l(t,n)||b({actual:t,expected:n,message:r,operator:"deepEqual",stackStartFn:e})},A.notDeepEqual=function e(t,n,r){if(arguments.length<2)throw new _("actual","expected");void 0===l&&g(),l(t,n)&&b({actual:t,expected:n,message:r,operator:"notDeepEqual",stackStartFn:e})},A.deepStrictEqual=function e(t,n,r){if(arguments.length<2)throw new _("actual","expected");void 0===l&&g(),s(t,n)||b({actual:t,expected:n,message:r,operator:"deepStrictEqual",stackStartFn:e})},A.notDeepStrictEqual=function e(t,n,r){if(arguments.length<2)throw new _("actual","expected");void 0===l&&g();s(t,n)&&b({actual:t,expected:n,message:r,operator:"notDeepStrictEqual",stackStartFn:e})},A.strictEqual=function e(t,n,r){if(arguments.length<2)throw new _("actual","expected");N(t,n)||b({actual:t,expected:n,message:r,operator:"strictEqual",stackStartFn:e})},A.notStrictEqual=function e(t,n,r){if(arguments.length<2)throw new _("actual","expected");N(t,n)&&b({actual:t,expected:n,message:r,operator:"notStrictEqual",stackStartFn:e})};var D=c((function e(t,n,r){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n.forEach((function(e){e in t&&(void 0!==r&&"string"==typeof r[e]&&T(t[e])&&L(t[e],r[e])?o[e]=r[e]:o[e]=t[e])}))}));function x(e,t,n,r){if("function"!=typeof t){if(T(t))return L(t,e);if(2===arguments.length)throw new E("expected",["Function","RegExp"],t);if("object"!==i(e)||null===e){var o=new m({actual:e,expected:t,message:n,operator:"deepStrictEqual",stackStartFn:r});throw o.operator=r.name,o}var a=Object.keys(t);if(t instanceof Error)a.push("name","message");else if(0===a.length)throw new d("error",t,"may not be an empty object");return void 0===l&&g(),a.forEach((function(o){"string"==typeof e[o]&&T(t[o])&&L(t[o],e[o])||function(e,t,n,r,o,i){if(!(n in e)||!s(e[n],t[n])){if(!r){var a=new D(e,o),c=new D(t,o,e),l=new m({actual:a,expected:c,operator:"deepStrictEqual",stackStartFn:i});throw l.actual=e,l.expected=t,l.operator=i.name,l}b({actual:e,expected:t,message:r,operator:i.name,stackStartFn:i})}}(e,t,o,n,a,r)})),!0}return void 0!==t.prototype&&e instanceof t||!Error.isPrototypeOf(t)&&!0===t.call({},e)}function M(e){if("function"!=typeof e)throw new E("fn","Function",e);try{e()}catch(e){return e}return R}function P(e){return y(e)||null!==e&&"object"===i(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function C(e){return Promise.resolve().then((function(){var t;if("function"==typeof e){if(!P(t=e()))throw new f("instance of Promise","promiseFn",t)}else{if(!P(e))throw new E("promiseFn",["Function","Promise"],e);t=e}return Promise.resolve().then((function(){return t})).then((function(){return R})).catch((function(e){return e}))}))}function k(e,t,n,r){if("string"==typeof n){if(4===arguments.length)throw new E("error",["Object","Error","Function","RegExp"],n);if("object"===i(t)&&null!==t){if(t.message===n)throw new u("error/message",'The error message "'.concat(t.message,'" is identical to the message.'))}else if(t===n)throw new u("error/message",'The error "'.concat(t,'" is identical to the message.'));r=n,n=void 0}else if(null!=n&&"object"!==i(n)&&"function"!=typeof n)throw new E("error",["Object","Error","Function","RegExp"],n);if(t===R){var o="";n&&n.name&&(o+=" (".concat(n.name,")")),o+=r?": ".concat(r):".";var a="rejects"===e.name?"rejection":"exception";b({actual:void 0,expected:n,operator:e.name,message:"Missing expected ".concat(a).concat(o),stackStartFn:e})}if(n&&!x(t,n,r,e))throw t}function V(e,t,n,r){if(t!==R){if("string"==typeof n&&(r=n,n=void 0),!n||x(t,n)){var o=r?": ".concat(r):".",i="doesNotReject"===e.name?"rejection":"exception";b({actual:t,expected:n,operator:e.name,message:"Got unwanted ".concat(i).concat(o,"\n")+'Actual message: "'.concat(t&&t.message,'"'),stackStartFn:e})}throw t}}function U(e,t,n,r,o){if(!T(t))throw new E("regexp","RegExp",t);var a="match"===o;if("string"!=typeof e||L(t,e)!==a){if(n instanceof Error)throw n;var c=!n;n=n||("string"!=typeof e?'The "string" argument must be of type string. Received type '+"".concat(i(e)," (").concat(v(e),")"):(a?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(v(t),". Input:\n\n").concat(v(e),"\n"));var l=new m({actual:e,expected:t,message:n,operator:o,stackStartFn:r});throw l.generatedMessage=c,l}}function j(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];S.apply(void 0,[j,t.length].concat(t))}A.throws=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];k.apply(void 0,[e,M(t)].concat(r))},A.rejects=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return C(t).then((function(t){return k.apply(void 0,[e,t].concat(r))}))},A.doesNotThrow=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];V.apply(void 0,[e,M(t)].concat(r))},A.doesNotReject=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return C(t).then((function(t){return V.apply(void 0,[e,t].concat(r))}))},A.ifError=function e(t){if(null!=t){var n="ifError got unwanted exception: ";"object"===i(t)&&"string"==typeof t.message?0===t.message.length&&t.constructor?n+=t.constructor.name:n+=t.message:n+=v(t);var r=new m({actual:t,expected:null,operator:"ifError",message:n,stackStartFn:e}),o=t.stack;if("string"==typeof o){var a=o.split("\n");a.shift();for(var c=r.stack.split("\n"),l=0;l<a.length;l++){var s=c.indexOf(a[l]);if(-1!==s){c=c.slice(0,s);break}}r.stack="".concat(c.join("\n"),"\n").concat(a.join("\n"))}throw r}},A.match=function e(t,n,r){U(t,n,r,e,"match")},A.doesNotMatch=function e(t,n,r){U(t,n,r,e,"doesNotMatch")},A.strict=O(j,A,{equal:A.strictEqual,deepEqual:A.deepStrictEqual,notEqual:A.notStrictEqual,notDeepEqual:A.notDeepStrictEqual}),A.strict.strict=A.strict},5961:(e,t,n)=>{"use strict";var r=n(4155);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t,n){return(t=l(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,l(r.key),r)}}function l(e){var t=function(e,t){if("object"!==m(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==m(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===m(t)?t:String(t)}function s(e,t){if(t&&("object"===m(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return p(e)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){var t="function"==typeof Map?new Map:void 0;return u=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return E(e,arguments,_(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),f(r,e)},u(e)}function E(e,t,n){return E=d()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&f(o,n.prototype),o},E.apply(null,arguments)}function d(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}var v=n(9539).inspect,I=n(2136).codes.ERR_INVALID_ARG_TYPE;function y(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}var T="",O="",N="",L="",g={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function h(e){var t=Object.keys(e),n=Object.create(Object.getPrototypeOf(e));return t.forEach((function(t){n[t]=e[t]})),Object.defineProperty(n,"message",{value:e.message}),n}function A(e){return v(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function R(e,t,n){var o="",i="",a=0,c="",l=!1,s=A(e),p=s.split("\n"),u=A(t).split("\n"),E=0,d="";if("strictEqual"===n&&"object"===m(e)&&"object"===m(t)&&null!==e&&null!==t&&(n="strictEqualObject"),1===p.length&&1===u.length&&p[0]!==u[0]){var f=p[0].length+u[0].length;if(f<=10){if(!("object"===m(e)&&null!==e||"object"===m(t)&&null!==t||0===e&&0===t))return"".concat(g[n],"\n\n")+"".concat(p[0]," !== ").concat(u[0],"\n")}else if("strictEqualObject"!==n){if(f<(r.stderr&&r.stderr.isTTY?r.stderr.columns:80)){for(;p[0][E]===u[0][E];)E++;E>2&&(d="\n ".concat(function(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var n=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,n-e.length)}(" ",E),"^"),E=0)}}}for(var _=p[p.length-1],v=u[u.length-1];_===v&&(E++<2?c="\n ".concat(_).concat(c):o=_,p.pop(),u.pop(),0!==p.length&&0!==u.length);)_=p[p.length-1],v=u[u.length-1];var I=Math.max(p.length,u.length);if(0===I){var h=s.split("\n");if(h.length>30)for(h[26]="".concat(T,"...").concat(L);h.length>27;)h.pop();return"".concat(g.notIdentical,"\n\n").concat(h.join("\n"),"\n")}E>3&&(c="\n".concat(T,"...").concat(L).concat(c),l=!0),""!==o&&(c="\n ".concat(o).concat(c),o="");var R=0,b=g[n]+"\n".concat(O,"+ actual").concat(L," ").concat(N,"- expected").concat(L),S=" ".concat(T,"...").concat(L," Lines skipped");for(E=0;E<I;E++){var w=E-a;if(p.length<E+1)w>1&&E>2&&(w>4?(i+="\n".concat(T,"...").concat(L),l=!0):w>3&&(i+="\n ".concat(u[E-2]),R++),i+="\n ".concat(u[E-1]),R++),a=E,o+="\n".concat(N,"-").concat(L," ").concat(u[E]),R++;else if(u.length<E+1)w>1&&E>2&&(w>4?(i+="\n".concat(T,"...").concat(L),l=!0):w>3&&(i+="\n ".concat(p[E-2]),R++),i+="\n ".concat(p[E-1]),R++),a=E,i+="\n".concat(O,"+").concat(L," ").concat(p[E]),R++;else{var D=u[E],x=p[E],M=x!==D&&(!y(x,",")||x.slice(0,-1)!==D);M&&y(D,",")&&D.slice(0,-1)===x&&(M=!1,x+=","),M?(w>1&&E>2&&(w>4?(i+="\n".concat(T,"...").concat(L),l=!0):w>3&&(i+="\n ".concat(p[E-2]),R++),i+="\n ".concat(p[E-1]),R++),a=E,i+="\n".concat(O,"+").concat(L," ").concat(x),o+="\n".concat(N,"-").concat(L," ").concat(D),R+=2):(i+=o,o="",1!==w&&0!==E||(i+="\n ".concat(x),R++))}if(R>20&&E<I-2)return"".concat(b).concat(S,"\n").concat(i,"\n").concat(T,"...").concat(L).concat(o,"\n")+"".concat(T,"...").concat(L)}return"".concat(b).concat(l?S:"","\n").concat(i).concat(o).concat(c).concat(d)}var b=function(e,t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(y,e);var n,o,a,l,u,E=(n=y,o=d(),function(){var e,t=_(n);if(o){var r=_(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return s(this,e)});function y(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y),"object"!==m(e)||null===e)throw new I("options","Object",e);var n=e.message,o=e.operator,i=e.stackStartFn,a=e.actual,c=e.expected,l=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=n)t=E.call(this,String(n));else if(r.stderr&&r.stderr.isTTY&&(r.stderr&&r.stderr.getColorDepth&&1!==r.stderr.getColorDepth()?(T="",O="",L="",N=""):(T="",O="",L="",N="")),"object"===m(a)&&null!==a&&"object"===m(c)&&null!==c&&"stack"in a&&a instanceof Error&&"stack"in c&&c instanceof Error&&(a=h(a),c=h(c)),"deepStrictEqual"===o||"strictEqual"===o)t=E.call(this,R(a,c,o));else if("notDeepStrictEqual"===o||"notStrictEqual"===o){var u=g[o],d=A(a).split("\n");if("notStrictEqual"===o&&"object"===m(a)&&null!==a&&(u=g.notStrictEqualObject),d.length>30)for(d[26]="".concat(T,"...").concat(L);d.length>27;)d.pop();t=1===d.length?E.call(this,"".concat(u," ").concat(d[0])):E.call(this,"".concat(u,"\n\n").concat(d.join("\n"),"\n"))}else{var f=A(a),_="",v=g[o];"notDeepEqual"===o||"notEqual"===o?(f="".concat(g[o],"\n\n").concat(f)).length>1024&&(f="".concat(f.slice(0,1021),"...")):(_="".concat(A(c)),f.length>512&&(f="".concat(f.slice(0,509),"...")),_.length>512&&(_="".concat(_.slice(0,509),"...")),"deepEqual"===o||"equal"===o?f="".concat(v,"\n\n").concat(f,"\n\nshould equal\n\n"):_=" ".concat(o," ").concat(_)),t=E.call(this,"".concat(f).concat(_))}return Error.stackTraceLimit=l,t.generatedMessage=!n,Object.defineProperty(p(t),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),t.code="ERR_ASSERTION",t.actual=a,t.expected=c,t.operator=o,Error.captureStackTrace&&Error.captureStackTrace(p(t),i),t.stack,t.name="AssertionError",s(t)}return a=y,(l=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:t,value:function(e,t){return v(this,i(i({},t),{},{customInspect:!1,depth:0}))}}])&&c(a.prototype,l),u&&c(a,u),Object.defineProperty(a,"prototype",{writable:!1}),y}(u(Error),v.custom);e.exports=b},2136:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(i=o.key,a=void 0,a=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i,"string"),"symbol"===r(a)?a:String(a)),o)}var i,a}function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=c(e);if(t){var i=c(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}var l,s,p={};function u(e,t,n){n||(n=Error);var r=function(n){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t)}(p,n);var r,c,l,s=a(p);function p(n,r,o){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),i=s.call(this,function(e,n,r){return"string"==typeof t?t:t(e,n,r)}(n,r,o)),i.code=e,i}return r=p,c&&o(r.prototype,c),l&&o(r,l),Object.defineProperty(r,"prototype",{writable:!1}),r}(n);p[e]=r}function E(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(e){return String(e)})),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}u("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),u("ERR_INVALID_ARG_TYPE",(function(e,t,o){var i,a,c,s;if(void 0===l&&(l=n(9282)),l("string"==typeof e,"'name' must be a string"),"string"==typeof t&&(a="not ",t.substr(!c||c<0?0:+c,a.length)===a)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))s="The ".concat(e," ").concat(i," ").concat(E(t,"type"));else{var p=function(e,t,n){return"number"!=typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}(e,".")?"property":"argument";s='The "'.concat(e,'" ').concat(p," ").concat(i," ").concat(E(t,"type"))}return s+=". Received type ".concat(r(o))}),TypeError),u("ERR_INVALID_ARG_VALUE",(function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===s&&(s=n(9539));var o=s.inspect(t);return o.length>128&&(o="".concat(o.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(r,". Received ").concat(o)}),TypeError,RangeError),u("ERR_INVALID_RETURN_VALUE",(function(e,t,n){var o;return o=n&&n.constructor&&n.constructor.name?"instance of ".concat(n.constructor.name):"type ".concat(r(n)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(o,".")}),TypeError),u("ERR_MISSING_ARGS",(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];void 0===l&&(l=n(9282)),l(t.length>0,"At least one arg needs to be specified");var o="The ",i=t.length;switch(t=t.map((function(e){return'"'.concat(e,'"')})),i){case 1:o+="".concat(t[0]," argument");break;case 2:o+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:o+=t.slice(0,i-1).join(", "),o+=", and ".concat(t[i-1]," arguments")}return"".concat(o," must be specified")}),TypeError),e.exports.codes=p},9158:(e,t,n)=>{"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var a=void 0!==/a/g.flags,c=function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t},l=function(e){var t=[];return e.forEach((function(e,n){return t.push([n,e])})),t},s=Object.is?Object.is:n(609),p=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},u=Number.isNaN?Number.isNaN:n(360);function E(e){return e.call.bind(e)}var d=E(Object.prototype.hasOwnProperty),f=E(Object.prototype.propertyIsEnumerable),_=E(Object.prototype.toString),m=n(9539).types,v=m.isAnyArrayBuffer,I=m.isArrayBufferView,y=m.isDate,T=m.isMap,O=m.isRegExp,N=m.isSet,L=m.isNativeError,g=m.isBoxedPrimitive,h=m.isNumberObject,A=m.isStringObject,R=m.isBooleanObject,b=m.isBigIntObject,S=m.isSymbolObject,w=m.isFloat32Array,D=m.isFloat64Array;function x(e){if(0===e.length||e.length>10)return!0;for(var t=0;t<e.length;t++){var n=e.charCodeAt(t);if(n<48||n>57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function M(e){return Object.keys(e).filter(x).concat(p(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function P(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0}var C=0,k=1,V=2,U=3;function j(e,t,n,r){if(e===t)return 0!==e||(!n||s(e,t));if(n){if("object"!==i(e))return"number"==typeof e&&u(e)&&u(t);if("object"!==i(t)||null===e||null===t)return!1;if(Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1}else{if(null===e||"object"!==i(e))return(null===t||"object"!==i(t))&&e==t;if(null===t||"object"!==i(t))return!1}var o,c,l,p,E=_(e);if(E!==_(t))return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;var d=M(e),f=M(t);return d.length===f.length&&F(e,t,n,r,k,d)}if("[object Object]"===E&&(!T(e)&&T(t)||!N(e)&&N(t)))return!1;if(y(e)){if(!y(t)||Date.prototype.getTime.call(e)!==Date.prototype.getTime.call(t))return!1}else if(O(e)){if(!O(t)||(l=e,p=t,!(a?l.source===p.source&&l.flags===p.flags:RegExp.prototype.toString.call(l)===RegExp.prototype.toString.call(p))))return!1}else if(L(e)||e instanceof Error){if(e.message!==t.message||e.name!==t.name)return!1}else{if(I(e)){if(n||!w(e)&&!D(e)){if(!function(e,t){return e.byteLength===t.byteLength&&0===P(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}(e,t))return!1}else if(!function(e,t){if(e.byteLength!==t.byteLength)return!1;for(var n=0;n<e.byteLength;n++)if(e[n]!==t[n])return!1;return!0}(e,t))return!1;var m=M(e),x=M(t);return m.length===x.length&&F(e,t,n,r,C,m)}if(N(e))return!(!N(t)||e.size!==t.size)&&F(e,t,n,r,V);if(T(e))return!(!T(t)||e.size!==t.size)&&F(e,t,n,r,U);if(v(e)){if(c=t,(o=e).byteLength!==c.byteLength||0!==P(new Uint8Array(o),new Uint8Array(c)))return!1}else if(g(e)&&!function(e,t){return h(e)?h(t)&&s(Number.prototype.valueOf.call(e),Number.prototype.valueOf.call(t)):A(e)?A(t)&&String.prototype.valueOf.call(e)===String.prototype.valueOf.call(t):R(e)?R(t)&&Boolean.prototype.valueOf.call(e)===Boolean.prototype.valueOf.call(t):b(e)?b(t)&&BigInt.prototype.valueOf.call(e)===BigInt.prototype.valueOf.call(t):S(t)&&Symbol.prototype.valueOf.call(e)===Symbol.prototype.valueOf.call(t)}(e,t))return!1}return F(e,t,n,r,C)}function Y(e,t){return t.filter((function(t){return f(e,t)}))}function F(e,t,n,o,a,s){if(5===arguments.length){s=Object.keys(e);var u=Object.keys(t);if(s.length!==u.length)return!1}for(var E=0;E<s.length;E++)if(!d(t,s[E]))return!1;if(n&&5===arguments.length){var _=p(e);if(0!==_.length){var m=0;for(E=0;E<_.length;E++){var v=_[E];if(f(e,v)){if(!f(t,v))return!1;s.push(v),m++}else if(f(t,v))return!1}var I=p(t);if(_.length!==I.length&&Y(t,I).length!==m)return!1}else{var y=p(t);if(0!==y.length&&0!==Y(t,y).length)return!1}}if(0===s.length&&(a===C||a===k&&0===e.length||0===e.size))return!0;if(void 0===o)o={val1:new Map,val2:new Map,position:0};else{var T=o.val1.get(e);if(void 0!==T){var O=o.val2.get(t);if(void 0!==O)return T===O}o.position++}o.val1.set(e,o.position),o.val2.set(t,o.position);var N=function(e,t,n,o,a,s){var p=0;if(s===V){if(!function(e,t,n,r){for(var o=null,a=c(e),l=0;l<a.length;l++){var s=a[l];if("object"===i(s)&&null!==s)null===o&&(o=new Set),o.add(s);else if(!t.has(s)){if(n)return!1;if(!X(e,t,s))return!1;null===o&&(o=new Set),o.add(s)}}if(null!==o){for(var p=c(t),u=0;u<p.length;u++){var E=p[u];if("object"===i(E)&&null!==E){if(!G(o,E,n,r))return!1}else if(!n&&!e.has(E)&&!G(o,E,n,r))return!1}return 0===o.size}return!0}(e,t,n,a))return!1}else if(s===U){if(!function(e,t,n,o){for(var a=null,c=l(e),s=0;s<c.length;s++){var p=r(c[s],2),u=p[0],E=p[1];if("object"===i(u)&&null!==u)null===a&&(a=new Set),a.add(u);else{var d=t.get(u);if(void 0===d&&!t.has(u)||!j(E,d,n,o)){if(n)return!1;if(!K(e,t,u,E,o))return!1;null===a&&(a=new Set),a.add(u)}}}if(null!==a){for(var f=l(t),_=0;_<f.length;_++){var m=r(f[_],2),v=m[0],I=m[1];if("object"===i(v)&&null!==v){if(!W(a,e,v,I,n,o))return!1}else if(!(n||e.has(v)&&j(e.get(v),I,!1,o)||W(a,e,v,I,!1,o)))return!1}return 0===a.size}return!0}(e,t,n,a))return!1}else if(s===k)for(;p<e.length;p++){if(!d(e,p)){if(d(t,p))return!1;for(var u=Object.keys(e);p<u.length;p++){var E=u[p];if(!d(t,E)||!j(e[E],t[E],n,a))return!1}return u.length===Object.keys(t).length}if(!d(t,p)||!j(e[p],t[p],n,a))return!1}for(p=0;p<o.length;p++){var f=o[p];if(!j(e[f],t[f],n,a))return!1}return!0}(e,t,n,s,o,a);return o.val1.delete(e),o.val2.delete(t),N}function G(e,t,n,r){for(var o=c(e),i=0;i<o.length;i++){var a=o[i];if(j(t,a,n,r))return e.delete(a),!0}return!1}function B(e){switch(i(e)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":e=+e;case"number":if(u(e))return!1}return!0}function X(e,t,n){var r=B(n);return null!=r?r:t.has(r)&&!e.has(r)}function K(e,t,n,r,o){var i=B(n);if(null!=i)return i;var a=t.get(i);return!(void 0===a&&!t.has(i)||!j(r,a,!1,o))&&(!e.has(i)&&j(r,a,!1,o))}function W(e,t,n,r,o,i){for(var a=c(e),l=0;l<a.length;l++){var s=a[l];if(j(n,s,o,i)&&j(r,t.get(s),o,i))return e.delete(s),!0}return!1}e.exports={isDeepEqual:function(e,t){return j(e,t,false)},isDeepStrictEqual:function(e,t){return j(e,t,true)}}},1924:(e,t,n)=>{"use strict";var r=n(210),o=n(5559),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?o(n):n}},5559:(e,t,n)=>{"use strict";var r=n(8612),o=n(210),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||r.call(a,i),l=o("%Object.getOwnPropertyDescriptor%",!0),s=o("%Object.defineProperty%",!0),p=o("%Math.max%");if(s)try{s({},"a",{value:1})}catch(e){s=null}e.exports=function(e){var t=c(r,a,arguments);l&&s&&(l(t,"length").configurable&&s(t,"length",{value:1+p(0,e.length-(arguments.length-1))}));return t};var u=function(){return c(r,i,arguments)};s?s(e.exports,"apply",{value:u}):e.exports.apply=u},5108:(e,t,n)=>{var r=n(9539),o=n(9282);function i(){return(new Date).getTime()}var a,c=Array.prototype.slice,l={};a=void 0!==n.g&&n.g.console?n.g.console:"undefined"!=typeof window&&window.console?window.console:{};for(var s=[[function(){},"log"],[function(){a.log.apply(a,arguments)},"info"],[function(){a.log.apply(a,arguments)},"warn"],[function(){a.warn.apply(a,arguments)},"error"],[function(e){l[e]=i()},"time"],[function(e){var t=l[e];if(!t)throw new Error("No such label: "+e);delete l[e];var n=i()-t;a.log(e+": "+n+"ms")},"timeEnd"],[function(){var e=new Error;e.name="Trace",e.message=r.format.apply(null,arguments),a.error(e.stack)},"trace"],[function(e){a.log(r.inspect(e)+"\n")},"dir"],[function(e){if(!e){var t=c.call(arguments,1);o.ok(!1,r.format.apply(null,t))}},"assert"]],p=0;p<s.length;p++){var u=s[p],E=u[0],d=u[1];a[d]||(a[d]=E)}e.exports=a},2296:(e,t,n)=>{"use strict";var r=n(1044)(),o=n(210),i=r&&o("%Object.defineProperty%",!0),a=o("%SyntaxError%"),c=o("%TypeError%"),l=n(7296);e.exports=function(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new c("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new c("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new c("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new c("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new c("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new c("`loose`, if provided, must be a boolean");var r=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,p=arguments.length>6&&arguments[6],u=!!l&&l(e,t);if(i)i(e,t,{configurable:null===s&&u?u.configurable:!s,enumerable:null===r&&u?u.enumerable:!r,value:n,writable:null===o&&u?u.writable:!o});else{if(!p&&(r||o||s))throw new a("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},4289:(e,t,n)=>{"use strict";var r=n(2215),o="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),i=Object.prototype.toString,a=Array.prototype.concat,c=n(2296),l=n(1044)(),s=function(e,t,n,r){if(t in e)if(!0===r){if(e[t]===n)return}else if("function"!=typeof(o=r)||"[object Function]"!==i.call(o)||!r())return;var o;l?c(e,t,n,!0):c(e,t,n)},p=function(e,t){var n=arguments.length>2?arguments[2]:{},i=r(t);o&&(i=a.call(i,Object.getOwnPropertySymbols(t)));for(var c=0;c<i.length;c+=1)s(e,i[c],t[i[c]],n[i[c]])};p.supportsDescriptors=!!l,e.exports=p},4029:(e,t,n)=>{"use strict";var r=n(5320),o=Object.prototype.toString,i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){if(!r(t))throw new TypeError("iterator must be a function");var a;arguments.length>=3&&(a=n),"[object Array]"===o.call(e)?function(e,t,n){for(var r=0,o=e.length;r<o;r++)i.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(e,t,a):"string"==typeof e?function(e,t,n){for(var r=0,o=e.length;r<o;r++)null==n?t(e.charAt(r),r,e):t.call(n,e.charAt(r),r,e)}(e,t,a):function(e,t,n){for(var r in e)i.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(e,t,a)}},4791:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Framebus=void 0;var r=n(2729),o=n(791),i=n(6620),a=n(3965),c=n(9889),l=function(){function e(e){void 0===e&&(e="*"),this.origin=e}return e.target=function(t){return void 0===t&&(t="*"),new e(t)},e.prototype.include=function(e){return null!=e&&(null!=e.Window&&(e.constructor===e.Window&&(c.childWindows.push(e),!0)))},e.prototype.target=function(t){return e.target(t)},e.prototype.emit=function(e,t,n){var o=this.origin;if(r.isntString(e))return!1;if(r.isntString(o))return!1;"function"==typeof t&&(n=t,t=void 0);var c=a.packagePayload(e,o,t,n);return!!c&&(i.broadcast(window.top||window.self,c,o),!0)},e.prototype.on=function(e,t){var n=this.origin;return!o.subscriptionArgsInvalid(e,t,n)&&(c.subscribers[n]=c.subscribers[n]||{},c.subscribers[n][e]=c.subscribers[n][e]||[],c.subscribers[n][e].push(t),!0)},e.prototype.off=function(e,t){var n=this.origin;if(o.subscriptionArgsInvalid(e,t,n))return!1;var r=c.subscribers[n]&&c.subscribers[n][e];if(!r)return!1;for(var i=0;i<r.length;i++)if(r[i]===t)return r.splice(i,1),!0;return!1},e}();t.Framebus=l},6135:(e,t,n)=>{"use strict";var r=n(5119),o=new(n(4791).Framebus);r.attach(),e.exports=o},5119:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.detach=t.attach=void 0;var r=n(1883),o=!1;t.attach=function(){o||"undefined"==typeof window||(o=!0,window.addEventListener("message",r.onmessage,!1))},t.detach=function(){o=!1,window.removeEventListener("message",r.onmessage,!1)}},1449:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.broadcastToChildWindows=void 0;var r=n(6620),o=n(9889);t.broadcastToChildWindows=function(e,t,n){for(var i=o.childWindows.length-1;i>=0;i--){var a=o.childWindows[i];a.closed?o.childWindows.splice(i,1):n!==a&&r.broadcast(a.top,e,t)}}},6620:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.broadcast=void 0;var r=n(9065);t.broadcast=function e(t,n,o){var i,a=0;try{for(t.postMessage(n,o),r.hasOpener(t)&&e(t.opener.top,n,o);i=t.frames[a];)e(i,n,o),a++}catch(e){}}},9889:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.subscribers=t.childWindows=t.prefix=void 0,t.prefix="/*framebus*/",t.childWindows=[],t.subscribers={}},4286:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dispatch=void 0;var r=n(9889);t.dispatch=function(e,t,n,o,i){if(r.subscribers[e]&&r.subscribers[e][t]){var a=[];n&&a.push(n),o&&a.push(o);for(var c=0;c<r.subscribers[e][t].length;c++)r.subscribers[e][t][c].apply(i,a)}}},9065:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasOpener=void 0,t.hasOpener=function(e){return e.top===e&&(null!=e.opener&&(e.opener!==e&&!0!==e.opener.closed))}},2729:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isntString=void 0,t.isntString=function(e){return"string"!=typeof e}},1883:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.onmessage=void 0;var r=n(2729),o=n(2310),i=n(4286),a=n(1449);t.onmessage=function(e){if(!r.isntString(e.data)){var t=o.unpackPayload(e);if(t){var n=t.eventData,c=t.reply;i.dispatch("*",t.event,n,c,e),i.dispatch(e.origin,t.event,n,c,e),a.broadcastToChildWindows(e.data,t.origin,e.source)}}}},3965:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packagePayload=void 0;var r=n(1085),o=n(9889);t.packagePayload=function(e,t,n,i){var a,c={event:e,origin:t};"function"==typeof i&&(c.reply=r.subscribeReplier(i,t)),c.eventData=n;try{a=o.prefix+JSON.stringify(c)}catch(e){throw new Error("Could not stringify event: "+e.message)}return a}},1085:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.subscribeReplier=void 0;var o=n(4791),i=r(n(9684));t.subscribeReplier=function(e,t){var n=i.default();return o.Framebus.target(t).on(n,(function r(i,a){e(i,a),o.Framebus.target(t).off(n,r)})),n}},791:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.subscriptionArgsInvalid=void 0;var r=n(2729);t.subscriptionArgsInvalid=function(e,t,n){return!!r.isntString(e)||("function"!=typeof t||r.isntString(n))}},2310:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unpackPayload=void 0;var r=n(9889),o=n(3965);t.unpackPayload=function(e){var t;if(e.data.slice(0,r.prefix.length)!==r.prefix)return!1;try{t=JSON.parse(e.data.slice(r.prefix.length))}catch(e){return!1}if(t.reply){var n=e.origin,i=e.source,a=t.reply;t.reply=function(e){if(i){var t=o.packagePayload(a,n,e);t&&i.postMessage(t,n)}}}return t}},7648:e=>{"use strict";var t=Array.prototype.slice,n=Object.prototype.toString;e.exports=function(e){var r=this;if("function"!=typeof r||"[object Function]"!==n.call(r))throw new TypeError("Function.prototype.bind called on incompatible "+r);for(var o,i=t.call(arguments,1),a=Math.max(0,r.length-i.length),c=[],l=0;l<a;l++)c.push("$"+l);if(o=Function("binder","return function ("+c.join(",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof o){var n=r.apply(this,i.concat(t.call(arguments)));return Object(n)===n?n:this}return r.apply(e,i.concat(t.call(arguments)))})),r.prototype){var s=function(){};s.prototype=r.prototype,o.prototype=new s,s.prototype=null}return o}},8612:(e,t,n)=>{"use strict";var r=n(7648);e.exports=Function.prototype.bind||r},210:(e,t,n)=>{"use strict";var r,o=SyntaxError,i=Function,a=TypeError,c=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(e){}},l=Object.getOwnPropertyDescriptor;if(l)try{l({},"")}catch(e){l=null}var s=function(){throw new a},p=l?function(){try{return s}catch(e){try{return l(arguments,"callee").get}catch(e){return s}}}():s,u=n(1405)(),E=n(8185)(),d=Object.getPrototypeOf||(E?function(e){return e.__proto__}:null),f={},_="undefined"!=typeof Uint8Array&&d?d(Uint8Array):r,m={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":u&&d?d([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":f,"%AsyncGenerator%":f,"%AsyncGeneratorFunction%":f,"%AsyncIteratorPrototype%":f,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":f,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":u&&d?d(d([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&u&&d?d((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&u&&d?d((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":u&&d?d(""[Symbol.iterator]()):r,"%Symbol%":u?Symbol:r,"%SyntaxError%":o,"%ThrowTypeError%":p,"%TypedArray%":_,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(d)try{null.error}catch(e){var v=d(d(e));m["%Error.prototype%"]=v}var I=function e(t){var n;if("%AsyncFunction%"===t)n=c("async function () {}");else if("%GeneratorFunction%"===t)n=c("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=c("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&d&&(n=d(o.prototype))}return m[t]=n,n},y={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},T=n(8612),O=n(7642),N=T.call(Function.call,Array.prototype.concat),L=T.call(Function.apply,Array.prototype.splice),g=T.call(Function.call,String.prototype.replace),h=T.call(Function.call,String.prototype.slice),A=T.call(Function.call,RegExp.prototype.exec),R=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,b=/\\(\\)?/g,S=function(e,t){var n,r=e;if(O(y,r)&&(r="%"+(n=y[r])[0]+"%"),O(m,r)){var i=m[r];if(i===f&&(i=I(r)),void 0===i&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new o("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===A(/^%?[^%]*%?$/,e))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=h(e,0,1),n=h(e,-1);if("%"===t&&"%"!==n)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new o("invalid intrinsic syntax, expected opening `%`");var r=[];return g(e,R,(function(e,t,n,o){r[r.length]=n?g(o,b,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",i=S("%"+r+"%",t),c=i.name,s=i.value,p=!1,u=i.alias;u&&(r=u[0],L(n,N([0,1],u)));for(var E=1,d=!0;E<n.length;E+=1){var f=n[E],_=h(f,0,1),v=h(f,-1);if(('"'===_||"'"===_||"`"===_||'"'===v||"'"===v||"`"===v)&&_!==v)throw new o("property names with quotes must have matching quotes");if("constructor"!==f&&d||(p=!0),O(m,c="%"+(r+="."+f)+"%"))s=m[c];else if(null!=s){if(!(f in s)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(l&&E+1>=n.length){var I=l(s,f);s=(d=!!I)&&"get"in I&&!("originalValue"in I.get)?I.get:s[f]}else d=O(s,f),s=s[f];d&&!p&&(m[c]=s)}}return s}},7296:(e,t,n)=>{"use strict";var r=n(210)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(e){r=null}e.exports=r},1044:(e,t,n)=>{"use strict";var r=n(210)("%Object.defineProperty%",!0),o=function(){if(r)try{return r({},"a",{value:1}),!0}catch(e){return!1}return!1};o.hasArrayLengthDefineBug=function(){if(!o())return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},8185:e=>{"use strict";var t={foo:{}},n=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!({__proto__:null}instanceof n)}},1405:(e,t,n)=>{"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(5419);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},5419:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},6410:(e,t,n)=>{"use strict";var r=n(5419);e.exports=function(){return r()&&!!Symbol.toStringTag}},7642:(e,t,n)=>{"use strict";var r=n(8612);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},5717:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},2584:(e,t,n)=>{"use strict";var r=n(6410)(),o=n(1924)("Object.prototype.toString"),i=function(e){return!(r&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===o(e)},a=function(e){return!!i(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==o(e)&&"[object Function]"===o(e.callee)},c=function(){return i(arguments)}();i.isLegacyArguments=a,e.exports=c?i:a},5320:e=>{"use strict";var t,n,r=Function.prototype.toString,o="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof o&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw n}}),n={},o((function(){throw 42}),null,t)}catch(e){e!==n&&(o=null)}else o=null;var i=/^\s*class\b/,a=function(e){try{var t=r.call(e);return i.test(t)}catch(e){return!1}},c=function(e){try{return!a(e)&&(r.call(e),!0)}catch(e){return!1}},l=Object.prototype.toString,s="function"==typeof Symbol&&!!Symbol.toStringTag,p=!(0 in[,]),u=function(){return!1};if("object"==typeof document){var E=document.all;l.call(E)===l.call(document.all)&&(u=function(e){if((p||!e)&&(void 0===e||"object"==typeof e))try{var t=l.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=o?function(e){if(u(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;try{o(e,null,t)}catch(e){if(e!==n)return!1}return!a(e)&&c(e)}:function(e){if(u(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(s)return c(e);if(a(e))return!1;var t=l.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&c(e)}},8662:(e,t,n)=>{"use strict";var r,o=Object.prototype.toString,i=Function.prototype.toString,a=/^\s*(?:function)?\*/,c=n(6410)(),l=Object.getPrototypeOf;e.exports=function(e){if("function"!=typeof e)return!1;if(a.test(i.call(e)))return!0;if(!c)return"[object GeneratorFunction]"===o.call(e);if(!l)return!1;if(void 0===r){var t=function(){if(!c)return!1;try{return Function("return function*() {}")()}catch(e){}}();r=!!t&&l(t)}return l(e)===r}},8611:e=>{"use strict";e.exports=function(e){return e!=e}},360:(e,t,n)=>{"use strict";var r=n(5559),o=n(4289),i=n(8611),a=n(9415),c=n(3194),l=r(a(),Number);o(l,{getPolyfill:a,implementation:i,shim:c}),e.exports=l},9415:(e,t,n)=>{"use strict";var r=n(8611);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:r}},3194:(e,t,n)=>{"use strict";var r=n(4289),o=n(9415);e.exports=function(){var e=o();return r(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},5692:(e,t,n)=>{"use strict";var r=n(6430);e.exports=function(e){return!!r(e)}},7762:e=>{e.exports=function(e,t){for(var n,r=-1,o=e.length;++r<o;){var i=t(e[r]);void 0!==i&&(n=void 0===n?i:n+i)}return n}},6557:e=>{e.exports=function(e){return e}},2297:(e,t,n)=>{var r=n(7762),o=n(6557);e.exports=function(e){return e&&e.length?r(e,o):0}},9146:e=>{"use strict";function t(){this._types=Object.create(null),this._extensions=Object.create(null);for(let e=0;e<arguments.length;e++)this.define(arguments[e]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}t.prototype.define=function(e,t){for(let n in e){let r=e[n].map((function(e){return e.toLowerCase()}));n=n.toLowerCase();for(let e=0;e<r.length;e++){const o=r[e];if("*"!==o[0]){if(!t&&o in this._types)throw new Error('Attempt to change mapping for "'+o+'" extension from "'+this._types[o]+'" to "'+n+'". Pass `force=true` to allow this, otherwise remove "'+o+'" from the list of extensions for "'+n+'".');this._types[o]=n}}if(t||!this._extensions[n]){const e=r[0];this._extensions[n]="*"!==e[0]?e:e.substr(1)}}},t.prototype.getType=function(e){let t=(e=String(e)).replace(/^.*[/\\]/,"").toLowerCase(),n=t.replace(/^.*\./,"").toLowerCase(),r=t.length<e.length;return(n.length<t.length-1||!r)&&this._types[n]||null},t.prototype.getExtension=function(e){return(e=/^\s*([^;\s]*)/.test(e)&&RegExp.$1)&&this._extensions[e.toLowerCase()]||null},e.exports=t},3893:(e,t,n)=>{"use strict";let r=n(9146);e.exports=new r(n(4415),n(3014))},3014:e=>{e.exports={"application/prs.cww":["cww"],"application/vnd.1000minds.decision-model+xml":["1km"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["xfdf"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.keynote":["key"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.numbers":["numbers"],"application/vnd.apple.pages":["pages"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.balsamiq.bmml+xml":["bmml"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.citationstyles.style+xml":["csl"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dbf":["dbf"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mapbox-vector-tile":["mvt"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["*stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["mpp","mpt"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.ac+xml":["*ac"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openblox.game+xml":["obgx"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openstreetmap.data+xml":["osm"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.rar":["rar"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.software602.filler.form+xml":["fo"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.syncml.dmddf+xml":["ddf"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":["*dmg"],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":["*bdoc"],"application/x-bittorrent":["torrent"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["*deb","udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-iso9660-image":["*iso"],"application/x-iwork-keynote-sffkey":["*key"],"application/x-iwork-numbers-sffnumbers":["*numbers"],"application/x-iwork-pages-sffpages":["*pages"],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-keepass2":["kdbx"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":["*exe"],"application/x-msdownload":["*exe","*dll","com","bat","*msi"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["*wmf","*wmz","*emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":["*prc","*pdb"],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["*rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["*obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["*xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":["*m4a"],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":["*ra"],"audio/x-wav":["*wav"],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif"],"image/prs.pti":["pti"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.airzip.accelerator.azv":["azv"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":["*sub"],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.microsoft.icon":["ico"],"image/vnd.ms-dds":["dds"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.pco.b16":["b16"],"image/vnd.tencent.tap":["tap"],"image/vnd.valve.source.texture":["vtf"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/vnd.zbrush.pcx":["pcx"],"image/x-3ds":["3ds"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["*ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":["*bmp"],"image/x-pcx":["*pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"message/vnd.wfa.wsc":["wsc"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["mts"],"model/vnd.opengex":["ogex"],"model/vnd.parasolid.transmit.binary":["x_b"],"model/vnd.parasolid.transmit.text":["x_t"],"model/vnd.sap.vds":["vds"],"model/vnd.usdz+zip":["usdz"],"model/vnd.valve.source.compiled-map":["bsp"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":["*org"],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]}},4415:e=>{e.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["es","ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avif":["avif"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}},4244:e=>{"use strict";var t=function(e){return e!=e};e.exports=function(e,n){return 0===e&&0===n?1/e==1/n:e===n||!(!t(e)||!t(n))}},609:(e,t,n)=>{"use strict";var r=n(4289),o=n(5559),i=n(4244),a=n(5624),c=n(2281),l=o(a(),Object);r(l,{getPolyfill:a,implementation:i,shim:c}),e.exports=l},5624:(e,t,n)=>{"use strict";var r=n(4244);e.exports=function(){return"function"==typeof Object.is?Object.is:r}},2281:(e,t,n)=>{"use strict";var r=n(5624),o=n(4289);e.exports=function(){var e=r();return o(Object,{is:e},{is:function(){return Object.is!==e}}),e}},8987:(e,t,n)=>{"use strict";var r;if(!Object.keys){var o=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=n(1414),c=Object.prototype.propertyIsEnumerable,l=!c.call({toString:null},"toString"),s=c.call((function(){}),"prototype"),p=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],u=function(e){var t=e.constructor;return t&&t.prototype===e},E={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},d=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!E["$"+e]&&o.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{u(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();r=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===i.call(e),r=a(e),c=t&&"[object String]"===i.call(e),E=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var f=s&&n;if(c&&e.length>0&&!o.call(e,0))for(var _=0;_<e.length;++_)E.push(String(_));if(r&&e.length>0)for(var m=0;m<e.length;++m)E.push(String(m));else for(var v in e)f&&"prototype"===v||!o.call(e,v)||E.push(String(v));if(l)for(var I=function(e){if("undefined"==typeof window||!d)return u(e);try{return u(e)}catch(e){return!1}}(e),y=0;y<p.length;++y)I&&"constructor"===p[y]||!o.call(e,p[y])||E.push(p[y]);return E}}e.exports=r},2215:(e,t,n)=>{"use strict";var r=Array.prototype.slice,o=n(1414),i=Object.keys,a=i?function(e){return i(e)}:n(8987),c=Object.keys;a.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return o(e)?c(r.call(e)):c(e)})}else Object.keys=a;return Object.keys||a},e.exports=a},1414:e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){var n=t.call(e),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),r}},2837:(e,t,n)=>{"use strict";var r=n(2215),o=n(5419)(),i=n(1924),a=Object,c=i("Array.prototype.push"),l=i("Object.prototype.propertyIsEnumerable"),s=o?Object.getOwnPropertySymbols:null;e.exports=function(e,t){if(null==e)throw new TypeError("target must be an object");var n=a(e);if(1===arguments.length)return n;for(var i=1;i<arguments.length;++i){var p=a(arguments[i]),u=r(p),E=o&&(Object.getOwnPropertySymbols||s);if(E)for(var d=E(p),f=0;f<d.length;++f){var _=d[f];l(p,_)&&c(u,_)}for(var m=0;m<u.length;++m){var v=u[m];if(l(p,v)){var I=p[v];n[v]=I}}}return n}},8162:(e,t,n)=>{"use strict";var r=n(2837);e.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),n={},r=0;r<t.length;++r)n[t[r]]=t[r];var o=Object.assign({},n),i="";for(var a in o)i+=a;return e!==i}()||function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch(t){return"y"===e[1]}return!1}()?r:Object.assign:r}},4155:e=>{var t,n,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var c,l=[],s=!1,p=-1;function u(){s&&c&&(s=!1,c.length?l=c.concat(l):p=-1,l.length&&E())}function E(){if(!s){var e=a(u);s=!0;for(var t=l.length;t;){for(c=l,l=[];++p<t;)c&&c[p].run();p=-1,t=l.length}c=null,s=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function d(e,t){this.fun=e,this.array=t}function f(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new d(e,t)),1!==l.length||s||a(E)},d.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=f,r.addListener=f,r.once=f,r.off=f,r.removeListener=f,r.removeAllListeners=f,r.emit=f,r.prependListener=f,r.prependOnceListener=f,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},384:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},5955:(e,t,n)=>{"use strict";var r=n(2584),o=n(8662),i=n(6430),a=n(5692);function c(e){return e.call.bind(e)}var l="undefined"!=typeof BigInt,s="undefined"!=typeof Symbol,p=c(Object.prototype.toString),u=c(Number.prototype.valueOf),E=c(String.prototype.valueOf),d=c(Boolean.prototype.valueOf);if(l)var f=c(BigInt.prototype.valueOf);if(s)var _=c(Symbol.prototype.valueOf);function m(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function v(e){return"[object Map]"===p(e)}function I(e){return"[object Set]"===p(e)}function y(e){return"[object WeakMap]"===p(e)}function T(e){return"[object WeakSet]"===p(e)}function O(e){return"[object ArrayBuffer]"===p(e)}function N(e){return"undefined"!=typeof ArrayBuffer&&(O.working?O(e):e instanceof ArrayBuffer)}function L(e){return"[object DataView]"===p(e)}function g(e){return"undefined"!=typeof DataView&&(L.working?L(e):e instanceof DataView)}t.isArgumentsObject=r,t.isGeneratorFunction=o,t.isTypedArray=a,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||g(e)},t.isUint8Array=function(e){return"Uint8Array"===i(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===i(e)},t.isUint16Array=function(e){return"Uint16Array"===i(e)},t.isUint32Array=function(e){return"Uint32Array"===i(e)},t.isInt8Array=function(e){return"Int8Array"===i(e)},t.isInt16Array=function(e){return"Int16Array"===i(e)},t.isInt32Array=function(e){return"Int32Array"===i(e)},t.isFloat32Array=function(e){return"Float32Array"===i(e)},t.isFloat64Array=function(e){return"Float64Array"===i(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===i(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===i(e)},v.working="undefined"!=typeof Map&&v(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(v.working?v(e):e instanceof Map)},I.working="undefined"!=typeof Set&&I(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(I.working?I(e):e instanceof Set)},y.working="undefined"!=typeof WeakMap&&y(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(y.working?y(e):e instanceof WeakMap)},T.working="undefined"!=typeof WeakSet&&T(new WeakSet),t.isWeakSet=function(e){return T(e)},O.working="undefined"!=typeof ArrayBuffer&&O(new ArrayBuffer),t.isArrayBuffer=N,L.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&L(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=g;var h="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function A(e){return"[object SharedArrayBuffer]"===p(e)}function R(e){return void 0!==h&&(void 0===A.working&&(A.working=A(new h)),A.working?A(e):e instanceof h)}function b(e){return m(e,u)}function S(e){return m(e,E)}function w(e){return m(e,d)}function D(e){return l&&m(e,f)}function x(e){return s&&m(e,_)}t.isSharedArrayBuffer=R,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===p(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===p(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===p(e)},t.isGeneratorObject=function(e){return"[object Generator]"===p(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===p(e)},t.isNumberObject=b,t.isStringObject=S,t.isBooleanObject=w,t.isBigIntObject=D,t.isSymbolObject=x,t.isBoxedPrimitive=function(e){return b(e)||S(e)||w(e)||D(e)||x(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(N(e)||R(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))},9539:(e,t,n)=>{var r=n(4155),o=n(5108),i=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},a=/%[sdj%]/g;t.format=function(e){if(!T(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(p(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,o=r.length,i=String(e).replace(a,(function(e){if("%%"===e)return"%";if(n>=o)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),c=r[n];n<o;c=r[++n])I(c)||!L(c)?i+=" "+c:i+=" "+p(c);return i},t.deprecate=function(e,n){if(void 0!==r&&!0===r.noDeprecation)return e;if(void 0===r)return function(){return t.deprecate(e,n).apply(this,arguments)};var i=!1;return function(){if(!i){if(r.throwDeprecation)throw new Error(n);r.traceDeprecation?o.trace(n):o.error(n),i=!0}return e.apply(this,arguments)}};var c={},l=/^$/;if({IFRAME_SECURE_SITE:"https://js.skyflow.com/v1/elements/index.html",IFRAME_SECURE_ORGIN:"https://js.skyflow.com"}.NODE_DEBUG){var s={IFRAME_SECURE_SITE:"https://js.skyflow.com/v1/elements/index.html",IFRAME_SECURE_ORGIN:"https://js.skyflow.com"}.NODE_DEBUG;s=s.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),l=new RegExp("^"+s+"$","i")}function p(e,n){var r={seen:[],stylize:E};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),v(n)?r.showHidden=n:n&&t._extend(r,n),O(r.showHidden)&&(r.showHidden=!1),O(r.depth)&&(r.depth=2),O(r.colors)&&(r.colors=!1),O(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=u),d(r,e,r.depth)}function u(e,t){var n=p.styles[t];return n?"["+p.colors[n][0]+"m"+e+"["+p.colors[n][1]+"m":e}function E(e,t){return e}function d(e,n,r){if(e.customInspect&&n&&A(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,e);return T(o)||(o=d(e,o,r)),o}var i=function(e,t){if(O(t))return e.stylize("undefined","undefined");if(T(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(y(t))return e.stylize(""+t,"number");if(v(t))return e.stylize(""+t,"boolean");if(I(t))return e.stylize("null","null")}(e,n);if(i)return i;var a=Object.keys(n),c=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),h(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return f(n);if(0===a.length){if(A(n)){var l=n.name?": "+n.name:"";return e.stylize("[Function"+l+"]","special")}if(N(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(g(n))return e.stylize(Date.prototype.toString.call(n),"date");if(h(n))return f(n)}var s,p="",u=!1,E=["{","}"];(m(n)&&(u=!0,E=["[","]"]),A(n))&&(p=" [Function"+(n.name?": "+n.name:"")+"]");return N(n)&&(p=" "+RegExp.prototype.toString.call(n)),g(n)&&(p=" "+Date.prototype.toUTCString.call(n)),h(n)&&(p=" "+f(n)),0!==a.length||u&&0!=n.length?r<0?N(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),s=u?function(e,t,n,r,o){for(var i=[],a=0,c=t.length;a<c;++a)w(t,String(a))?i.push(_(e,t,n,r,String(a),!0)):i.push("");return o.forEach((function(o){o.match(/^\d+$/)||i.push(_(e,t,n,r,o,!0))})),i}(e,n,r,c,a):a.map((function(t){return _(e,n,r,c,t,u)})),e.seen.pop(),function(e,t,n){var r=e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);if(r>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(s,p,E)):E[0]+p+E[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function _(e,t,n,r,o,i){var a,c,l;if((l=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?c=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(c=e.stylize("[Setter]","special")),w(r,o)||(a="["+o+"]"),c||(e.seen.indexOf(l.value)<0?(c=I(n)?d(e,l.value,null):d(e,l.value,n-1)).indexOf("\n")>-1&&(c=i?c.split("\n").map((function(e){return" "+e})).join("\n").slice(2):"\n"+c.split("\n").map((function(e){return" "+e})).join("\n")):c=e.stylize("[Circular]","special")),O(a)){if(i&&o.match(/^\d+$/))return c;(a=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+c}function m(e){return Array.isArray(e)}function v(e){return"boolean"==typeof e}function I(e){return null===e}function y(e){return"number"==typeof e}function T(e){return"string"==typeof e}function O(e){return void 0===e}function N(e){return L(e)&&"[object RegExp]"===R(e)}function L(e){return"object"==typeof e&&null!==e}function g(e){return L(e)&&"[object Date]"===R(e)}function h(e){return L(e)&&("[object Error]"===R(e)||e instanceof Error)}function A(e){return"function"==typeof e}function R(e){return Object.prototype.toString.call(e)}function b(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!c[e])if(l.test(e)){var n=r.pid;c[e]=function(){var r=t.format.apply(t,arguments);o.error("%s %d: %s",e,n,r)}}else c[e]=function(){};return c[e]},t.inspect=p,p.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},p.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=n(5955),t.isArray=m,t.isBoolean=v,t.isNull=I,t.isNullOrUndefined=function(e){return null==e},t.isNumber=y,t.isString=T,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=O,t.isRegExp=N,t.types.isRegExp=N,t.isObject=L,t.isDate=g,t.types.isDate=g,t.isError=h,t.types.isNativeError=h,t.isFunction=A,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(384);var S=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function w(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,n;o.log("%s - %s",(e=new Date,n=[b(e.getHours()),b(e.getMinutes()),b(e.getSeconds())].join(":"),[e.getDate(),S[e.getMonth()],n].join(" ")),t.format.apply(t,arguments))},t.inherits=n(5717),t._extend=function(e,t){if(!t||!L(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var D="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function x(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(D&&e[D]){var t;if("function"!=typeof(t=e[D]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,D,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),o=[],i=0;i<arguments.length;i++)o.push(arguments[i]);o.push((function(e,r){e?n(e):t(r)}));try{e.apply(this,o)}catch(e){n(e)}return r}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),D&&Object.defineProperty(t,D,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,i(e))},t.promisify.custom=D,t.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n]);var o=t.pop();if("function"!=typeof o)throw new TypeError("The last argument must be of type Function");var i=this,a=function(){return o.apply(i,arguments)};e.apply(this,t).then((function(e){r.nextTick(a.bind(null,null,e))}),(function(e){r.nextTick(x.bind(null,e,a))}))}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,i(e)),t}},6430:(e,t,n)=>{"use strict";var r=n(4029),o=n(3083),i=n(5559),a=n(1924),c=n(7296),l=a("Object.prototype.toString"),s=n(6410)(),p="undefined"==typeof globalThis?n.g:globalThis,u=o(),E=a("String.prototype.slice"),d=Object.getPrototypeOf,f=a("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n<e.length;n+=1)if(e[n]===t)return n;return-1},_={__proto__:null};r(u,s&&c&&d?function(e){var t=new p[e];if(Symbol.toStringTag in t){var n=d(t),r=c(n,Symbol.toStringTag);if(!r){var o=d(n);r=c(o,Symbol.toStringTag)}_["$"+e]=i(r.get)}}:function(e){var t=new p[e];_["$"+e]=i(t.slice)});e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!s){var t=E(l(e),8,-1);return f(u,t)>-1?t:"Object"===t&&function(e){var t=!1;return r(_,(function(n,r){if(!t)try{n(e),t=E(r,1)}catch(e){}})),t}(e)}return c?function(e){var t=!1;return r(_,(function(n,r){if(!t)try{"$"+n(e)===r&&(t=E(r,1))}catch(e){}})),t}(e):null}},7061:(e,t,n)=>{var r=n(8698).default;function o(){"use strict";e.exports=o=function(){return n},e.exports.__esModule=!0,e.exports.default=e.exports;var t,n={},i=Object.prototype,a=i.hasOwnProperty,c=Object.defineProperty||function(e,t,n){e[t]=n.value},l="function"==typeof Symbol?Symbol:{},s=l.iterator||"@@iterator",p=l.asyncIterator||"@@asyncIterator",u=l.toStringTag||"@@toStringTag";function E(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{E({},"")}catch(t){E=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var o=t&&t.prototype instanceof T?t:T,i=Object.create(o.prototype),a=new M(r||[]);return c(i,"_invoke",{value:S(e,n,a)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=d;var _="suspendedStart",m="suspendedYield",v="executing",I="completed",y={};function T(){}function O(){}function N(){}var L={};E(L,s,(function(){return this}));var g=Object.getPrototypeOf,h=g&&g(g(P([])));h&&h!==i&&a.call(h,s)&&(L=h);var A=N.prototype=T.prototype=Object.create(L);function R(e){["next","throw","return"].forEach((function(t){E(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){function n(o,i,c,l){var s=f(e[o],e,i);if("throw"!==s.type){var p=s.arg,u=p.value;return u&&"object"==r(u)&&a.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,c,l)}),(function(e){n("throw",e,c,l)})):t.resolve(u).then((function(e){p.value=e,c(p)}),(function(e){return n("throw",e,c,l)}))}l(s.arg)}var o;c(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}})}function S(e,n,r){var o=_;return function(i,a){if(o===v)throw new Error("Generator is already running");if(o===I){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var l=w(c,r);if(l){if(l===y)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===_)throw o=I,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=v;var s=f(e,n,r);if("normal"===s.type){if(o=r.done?I:m,s.arg===y)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=I,r.method="throw",r.arg=s.arg)}}}function w(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,w(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function P(e){if(e||""===e){var n=e[s];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(a.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(r(e)+" is not iterable")}return O.prototype=N,c(A,"constructor",{value:N,configurable:!0}),c(N,"constructor",{value:O,configurable:!0}),O.displayName=E(N,u,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===O||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,N):(e.__proto__=N,E(e,u,"GeneratorFunction")),e.prototype=Object.create(A),e},n.awrap=function(e){return{__await:e}},R(b.prototype),E(b.prototype,p,(function(){return this})),n.AsyncIterator=b,n.async=function(e,t,r,o,i){void 0===i&&(i=Promise);var a=new b(d(e,t,r,o),i);return n.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},R(A),E(A,u,"Generator"),E(A,s,(function(){return this})),E(A,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},n.values=P,M.prototype={constructor:M,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(x),!e)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,o){return c.type="throw",c.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],c=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=a.call(i,"catchLoc"),s=a.call(i,"finallyLoc");if(l&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),x(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},n}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},8698:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4687:(e,t,n)=>{var r=n(7061)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},3083:(e,t,n)=>{"use strict";var r=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],o="undefined"==typeof globalThis?n.g:globalThis;e.exports=function(){for(var e=[],t=0;t<r.length;t++)"function"==typeof o[r[t]]&&(e[e.length]=r[t]);return e}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.p="";var r={};return(()=>{"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(t){var n=function(t,n){if("object"!==e(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,n||"default");if("object"!==e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"===e(n)?n:String(n)}function o(e,n,r){return(n=t(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,t(o.key),o)}}function c(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function l(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function s(e,t,n){return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,l(e,t,"set"),n),n}function p(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,l(e,t,"get"))}n.r(r),n.d(r,{default:()=>Go});var u=n(6135),E=n.n(u);function d(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=crypto.getRandomValues(new Uint32Array(1))[0]/Math.pow(2,32)*16|0;return("x"===e?t:3&t|8).toString(16)}))}const f=n.p+"2afb5d11fb02e9292eaf.svg",_=n.p+"5408d9cd30b616684aa0.svg",m=n.p+"a9431336dd9f3e17b880.svg",v=n.p+"9b996d698afd3d404564.svg",I=n.p+"404966085770d8ec21ca.svg",y=n.p+"8062a86943450f142966.svg",T=n.p+"407dfd9c3fd800945b74.svg",O=n.p+"08ad88dee7d4519954ec.svg",N=n.p+"d418de915d45f039ac22.svg",L=n.p+"cbee67fb3d652dad9e25.svg",g=(n.p,n.p,n.p,n.p+"bcd5969a8a86792c2995.svg");const h={infoLogs:{INITIALIZE_CLIENT:"%s1 - Initializing skyflow client.",CLIENT_INITIALIZED:"%s1 - Initialized skyflow client successfully.",CREATE_COLLECT_CONTAINER:"%s1 - Creating Collect container.",COLLECT_CONTAINER_CREATED:"%s1 - Created Collect container successfully.",CREATE_REVEAL_CONTAINER:"%s1 - Creating Reveal container.",REVEAL_CONTAINER_CREATED:"%s1 - Created Reveal container successfully.",VALIDATE_RECORDS:"%s1 - Validating insert records.",VALIDATE_DETOKENIZE_INPUT:"%s1 - Validating detokenize input.",VALIDATE_GET_INPUT:"%s1 - Validating get input.",VALIDATE_DELETE_INPUT:"%s1 - Validating delete input.",VALIDATE_COLLECT_RECORDS:"%s1 - Validating collect element input.",VALIDATE_REVEAL_RECORDS:"%s1 - Validating reveal element input.",VALIDATE_RENDER_RECORDS:"%s1 - Validating file render element input.",CREATED_ELEMENT:"%s1 - Created %s2 element.",ELEMENT_MOUNTED:"%s1 - %s2 Element mounted.",ELEMENT_REVEALED:"%s1 - %s2 Element revealed.",FILE_RENDERED:"%s1 - %s2 File rendered.",COLLECT_SUBMIT_SUCCESS:"%s1 - Data has been collected successfully.",REVEAL_SUBMIT_SUCCESS:"%s1 - Data has been revealed successfully.",RENDER_SUBMIT_SUCCESS:"%s1 - File download URL has been fetched successfully.",INSERT_DATA_SUCCESS:"%s1 - Data has been inserted successfully.",DETOKENIZE_SUCCESS:"%s1 - Data has been revealed successfully.",GET_SUCCESS:"%s1 - Data has been revealed successfully.",DELETE_SUCCESS:"%s1 - Data has been deleted successfully.",BEARER_TOKEN_LISTENER:"%s1 - Get bearer token listener added.",CAPTURED_BEARER_TOKEN_EVENT:"%s1 - Captured bearer token event.",BEARER_TOKEN_RESOLVED:"%s1 - GetBearerToken promise resolved successfully.",REUSE_BEARER_TOKEN:"%s1 - Reusing the bearer token.",PUREJS_CONTROLLER_INITIALIZED:"%s1 - SkyflowController initialized.",PUREJS_LISTENER_READY:"%s1 - Purejs listener ready.",EMIT_PURE_JS_CONTROLLER:"%s1 - Emitted Skyflow controller event.",INSERT_TRIGGERED:"%s1 - Insert method triggered.",DETOKENIZE_TRIGGERED:"%s1 - Detokenize method triggered.",GET_TRIGGERED:"%s1 - Get method triggered.",GET_BY_ID_TRIGGERED:"%s1 - Get method triggered.",DELETE_TRIGGERED:"%s1 - Delete method triggered.",EMIT_PURE_JS_REQUEST:"%s1 - Emitted %s2 request.",CAPTURE_PURE_JS_REQUEST:"%s1 - Captured %s2 event.",LISTEN_PURE_JS_REQUEST:"%s1 - Listening to %s2 event.",CAPTURE_PUREJS_FRAME:"%s1 - Captured SkyflowController frame ready event.",FETCH_RECORDS_RESOLVED:"%s1 - Detokenize request is resolved.",INSERT_RECORDS_RESOLVED:"%s1 - Insert request is resolved.",GET_RESOLVED:"%s1 - Get request is resolved.",GET_BY_SKYFLOWID_RESOLVED:"%s1 - GetById request is resolved.",DELETE_RESOLVED:"%s1 - Delete request is resolved",EMIT_EVENT:"%s1 - %s2 event emitted",CAPTURE_EVENT:"%s1 - Captured event %s2",METRIC_CAPTURE_EVENT:"Metric event captured Successfully",UNKNOWN_METRIC_CAPTURE_EVENT:"Metric event capturing Failed with %s1",UNKNOWN_RESPONSE_FROM_METRIC_EVENT:"Metric event Captured with Unknown Response",LISTEN_COLLECT_FRAME_READY:"%s1 - Listening to collect FRAME_READY event",EMIT_COLLECT_ELEMENT_FRAME_READY:"%s1 - Emitting collect element %s2 FRAME_READY event",ENTERED_COLLECT_FRAME_READY_CB:"%s1 - In IFrameForm constructor, Entered FRAME_READY callback",EXECUTE_COLLECT_ELEMENT_FRAME_READY_CB:"%s1 - In IFrameForm, executing collect element, %s2 FRAME_READY callback",CLIENT_METADATA_NOT_SET:"%s1 - Client metadata not set",EXECUTE_COLLECT_ELEMENT_INIT:"%s1 - calling Collect element init",INSIDE__COLLECT_ELEMENT_INIT:"%s1 - Inside Collect element init for %s2",CREATING_COLLECT_ELEMENT_FORM:"%s1 - Start, creating iframe form for %s2",COLLECT_FRAME_READY_CB:"%s1 - In FrameElements, executing collect element FRAME_READY cb for %s2, sending metadata",INSIDE_FRAME_ELEMENTS_CONSTRUCOTR:"%s1 - Inside FrameElements constructor",SETUP_IN_START:"%s1 - Inside FrameElements start(), calling setup",SETUP_IN_CONSTRUCTOR:"%s1 - Inside FrameElements constructor, calling setup",COLLECT_ELEMET_START:"%s1 - %s2, Collect Element start",COLLECT_CONTROLLER_START:"%s1 - %s2, Collect Controller start",REVEAL_ELEMENT_START:"%s1 - %s2, Reveal Element start",EMIT_COLLECT_FRAME_CONTROLLER_EVENT:"%s1 - Emit collect FrameController FRAME_READY event",EXECUTE_COLLECT_CONTROLLER_READY_CB:"%s1 - Executing collect FrameController FRAME_READY callback, set client metadata",IFRAMEFORM_CONSTRUCTOR_FRAME_READY_LISTNER:"%s1 - In IFrameForm constructor, Adding listener for FRAME_READY event",IFRAMEFORM_CONSTRUCTOR_TOKENIZATION_LISTNER:"%s1 - In IFrameForm constructor, Adding listener for TOKENIZATION_REQUEST event",CURRENT_ENV:"%s1 - Client Env is %s2",CURRENT_LOG_LEVEL:"%s1 - Client LogLevel is %s2",VALIDATE_GET_BY_ID_INPUT:"%s1 - Validating getByID input."},errorLogs:{INVALID_FILE_NAMES:"Invalid File Name. Only alphanumeric characters and !-_.*() are allowed.",INVALID_FILE_NAME:"Invalid File Name. Only alphanumeric characters and !-_.*() are allowed.",CLIENT_CONNECTION:"client connection not established. client info has not reached iframes",INVALID_BEARER_TOKEN:"Token generated from 'getBearerToken' callback function is invalid. Make sure the implementation of 'getBearerToken' is correct.",BEARER_TOKEN_REJECTED:"'getBearerToken' callback function call failed with rejected promise. Make sure the implementation of 'getBearerToken' is correct.",VAULTID_IS_REQUIRED:"Initialization failed. Invalid credentials. Specify a valid 'vaultID'.",EMPTY_VAULTID_IN_INIT:"Initialization failed. Invalid credentials. Specify a valid 'vaultID'.",VAULTURL_IS_REQUIRED:"Initialization failed. Invalid credentials. Specify a valid 'vaultURL'",EMPTY_VAULTURL_IN_INIT:"Initialization failed. Invalid credentials. Specify a valid 'vaultURL'",INVALID_VAULTURL_IN_INIT:"Initialization failed. Invalid client credentials. 'vaultURL' must be begin with 'https://.'",GET_BEARER_TOKEN_IS_REQUIRED:"Initialization failed. Invalid client credentials. Specify a valid bearer token.",EMPTY_CONTAINER_TYPE:"Container creation failed. 'containerType' is invalid. Specify a valid container type.",INVALID_CONTAINER_TYPE:"Container creation failed. '%s1' is invalid. Specify a valid container type.",INVALID_COLLECT_VALUE:"Invalid value",INVALID_COLLECT_VALUE_WITH_LABEL:"Invalid %s1",REQUIRED_COLLECT_VALUE:"%s1 is required",DEFAULT_REQUIRED_COLLECT_VALUE:"Field is required",RECORDS_KEY_NOT_FOUND:"Validation error. Invalid 'records' key found. Specify a value of type array instead.",INVALID_RECORDS_IN_INSERT:"Validation error. Invalid records. Specify a value of type array instead.",EMPTY_RECORDS_IN_INSERT:"Validation error. 'records' key cannot be empty. Provide a non-empty value instead.",MISSING_TABLE_IN_INSERT:"Validation error. Missing 'table' key in records at index %s1. Provide a valid 'table' key.",EMPTY_TABLE_IN_INSERT:"Validation error. 'table' key cannot be empty in records at index %s1. Specify a non-empty value instead.",INVALID_TABLE_IN_INSERT:"Validation error. Invalid 'table' key in records at index %s1. Specify a value of type string instead.",EMPTY_FIELDS_IN_INSERT:"Validation error. Missing 'fields' key in records at index %s1. Provide a valid 'fields' key.",MISSING_FIELDS_IN_INSERT:"Validation error. 'fields' key cannot be empty in records at index %s1. Specify a non-empty value instead.",INVALID_FIELDS_IN_INSERT:"Validation error. Invalid 'fields' key in records at index %s1. Specify a value of type object instead.",INVALID_TOKENS_IN_INSERT:"Validation error.Invalid 'tokens' key in insert options. Specify a boolean value for tokens.",RECORDS_KEY_NOT_FOUND_DELETE:"Validation error. Missing 'records' key. Provide a valid 'records' key.",INVALID_RECORDS_IN_DELETE:"Validation error. Invalid 'records' key found. Specify a value of type array instead.",EMPTY_RECORDS_IN_DELETE:"Validation error. 'records' key cannot be empty. Provide a non-empty value instead.",MISSING_TABLE_IN_DELETE:"Validation error. Missing 'table' key in records at index %s1. Provide a valid 'table' key.",EMPTY_TABLE_IN_DELETE:"Validation error. 'table' key cannot be empty in records at index %s1. Specify a non-empty value instead.",INVALID_TABLE_IN_DELETE:"Validation error. Invalid 'table' key in records at index %s1. Specify a value of type string instead.",MISSING_ID_IN_DELETE:"Validation error. Missing 'id' key in records at index %s1. Provide a valid 'id' key.",EMPTY_ID_IN_DELETE:"Validation error. 'id' key cannot be empty in records at index %s1. Specify a non-empty value instead.",INVALID_ID_IN_DELETE:"Validation error. Invalid 'id' key in records at index %s1. Specify a value of type string instead.",DELETE_RECORDS_REJECTED:"Delete failed. Delete request is rejected.",INVALID_TOKENS_IN_COLLECT:"Validation error. Invalid tokens. Specify a boolean value for tokens.",RECORDS_KEY_NOT_FOUND_IN_ADDITIONAL_FIELDS:"Validation error.records key not found in additionalFields. Specify a records key in addtionalFields.",INVALID_RECORDS_IN_ADDITIONAL_FIELDS:"Validation error.'records' must be an array within additionalFields.",EMPTY_RECORDS_IN_ADDITIONAL_FIELDS:"Validation error. 'records' object cannot be empty within additionalFields. Specify a non-empty value instead.",MISSING_TABLE_IN_ADDITIONAL_FIELDS:"Validation error. 'table' key not found in additionalFields record at index %s1",INVALID_TABLE_IN_ADDITIONAL_FIELDS:"Validation error.Invalid table key value in additionalFields record at index %s1. Specify a value of type string for table key.",INVALID_SKYFLOW_ID_IN_ADDITIONAL_FIELDS:"Validation error.Invalid 'skyflow_id' key value in additionalFields record at index %s1. Specify a valid value for 'skyflow_id' key.",MISSING_FIELDS_IN_ADDITIONAL_FIELDS:"Validation error.'fields' key not found in additionalFields record at index %s1. Specify a 'fields' key in additionalFields record at index %s1.",INVALID_FIELDS_IN_ADDITIONAL_FIELDS:"Validation error.invaid 'fields' key value in additionalFields record at index %s1. Specify a value of type array for 'fields' key.",RECORDS_KEY_NOT_FOUND_DETOKENIZE:"Delete failed. Delete request is rejected.",EMPTY_RECORDS_DETOKENIZE:"Validation error. Invalid 'records' key found. Specify a value of type array instead.",INVALID_RECORDS_IN_DETOKENIZE:"Validation error. 'records' key cannot be empty. Provide a non-empty value instead.",MISSING_TOKEN_IN_DETOKENIZE:"Validation error. Missing 'token' key in records at index %s1. Provide a valid 'token' key.",INVALID_TOKEN_IN_DETOKENIZE:"Validation error. Invalid 'token' key in records at index %s1. Specify a value of type string instead.",RECORDS_KEY_NOT_FOUND_GET:"Validation error. Missing 'records' key. Provide a valid 'records' key.",INVALID_RECORDS_IN_GET:"Validation error. Invalid 'records' key found. Specify a value of type array instead.",EMPTY_RECORDS_GET:"Validation error. 'records' key cannot be empty. Provide a non-empty value instead.",MISSING_IDS_IN_GET:"Validation error. Missing 'ids' key in records at index %s1. Provide a valid 'ids' key.",INVALID_IDS_IN_GET:"Validation error. Invalid 'ids' key found. Specify a value of type array instead.",INVALID_COLUMN_VALUES_IN_GET:"Validation error. Invalid 'columnValues' key found. Specify a value of type array instead.",EMPTY_IDS_IN_GET:"Validation error. 'ids' key cannot be an array of empty strings in records at index %s1. Specify non-empty values instead.",INVALID_SKYFLOWID_TYPE_IN_GET:"Validation error. Invalid 'id' found in 'ids' array in 'records' at index %s1 . Specify a value of type string instead.",MISSING_TABLE_IN_GET:"Validation error. Missing 'table' key in records at index %s1. Provide a valid 'table' key.",INVALID_TABLE_IN_GET:"Validation error. Invalid 'table' key in records at index %s1. Specify a value of type string instead.",MISSING_REDACTION_IN_GET:"Validation error. Missing 'redaction' key in records at index %s1. Provide a valid 'redaction' key.",INVALID_REDACTION_TYPE_IN_GET:"Validation error. Invalid 'redaction' key in records at index %s1. Specify a valid redaction type.",INVALID_TOKENS_IN_GET:"Validation error. Invalid tokens in get options. Specify a boolean value for tokens.",TOKENS_GET_COLUMN_NOT_SUPPORTED:"Validation error. 'columnName' and 'columnValues' cannot be used when 'tokens' are set to true in get options. Either set 'tokens' to false or use 'ids' instead.",REDACTION_WITH_TOKENS_NOT_SUPPORTED:"Get failed. Redaction cannot be applied when 'tokens' are set to true in get options. Either remove redaction or set 'tokens' to false.",INVALID_REDACTION_TYPE_IN_DETOKENIZE:"Validation error. Invalid 'redaction' key in records at index %s1. Specify a valid redaction type.",EMPTY_RECORDS_REVEAL:"Validation error. 'records' key cannot be empty. Provide a non-empty value instead.",MISSING_TOKEN_KEY_REVEAL:"Validation error. Missing 'token' key for reveal element. Specify a valid value for token.",MISSING_SKYFLOWID_KEY_REVEAL:"Validation error. Missing 'skyflowID' key for file render element. Provide a valid 'skyflowID' key.",MISSING_TABLE_KEY_REVEAL:"Validation error.'table' key not found for file render element. Specify a valid value for 'table' key.",MISSING_COLUMN_KEY_REVEAL:"Validation error.'column' key not found for file render element. Specify a valid value for 'column' key.",INVALID_SKYFLOW_ID_REVEAL:"Validation error. Invalid 'skyflowID' key for file render element. Specify a value of type string instead.",INVALID_TABLE_REVEAL:"Validation error. Invalid 'table' key for file render element. Specify a value of type string instead.",INVALID_COLUMN_NAME_REVEAL:"Validation error. Invalid 'column' key for file render element. Specify a value of type string instead.",EMPTY_SKYFLOW_ID_REVEAL:"Validation error. 'skyflowID' key cannot be empty for file render element. Specify a non-empty value instead.",EMPTY_TABLE_REVEAL:"Validation error. 'table' key cannot be empty for file render element. Specify a non-empty value instead.",EMPTY_COLUMN_NAME_REVEAL:"Validation error. 'column' key cannot be empty for file render element. Specify a non-empty value instead.",INVALID_TOKEN_ID_REVEAL:"Validation error. Invalid 'token' key found for reveal element. Specify a value of type string instead.",INVALID_LABEL_REVEAL:"Validation error. Invalid 'label' key found for reveal element. Specify a value of type string instead.",INVALID_ALT_TEXT_REVEAL:"Validation error. Invalid 'altText' key found for reveal element. Specify a value of type string instead.",INVALID_ALT_TEXT_RENDER:"Validation error. Invalid 'altText' key found for reveal element. Specify a value of type string instead.",INVALID_FORMAT_REVEAL:"Validation error. Invalid 'format' key found for reveal element. Specify a value of type string instead.",EMPTY_FORMAT_REVEAL:"Validation error. 'format' key cannot be empty for reveal element. Specify a non-empty value instead.",INVALID_FORMAT_VALUE_REVEAL:"Validation error. Invalid 'format' key found for reveal element. Specify a value of type string instead.",INVALID_REDACTION_TYPE_REVEAL:"Validation error. Invalid 'redaction' key found for reveal element. Specify a valid redaction type.",ELEMENTS_NOT_MOUNTED_REVEAL:"Reveal failed. Make sure to mount all elements before invoking 'reveal' function.",EMPTY_TABLE_IN_ADDITIONAL_FIELDS:"Validation error.'table' field cannot be empty in additionalFields record at index %s1. Specify a non-empty value instead.",EMPTY_FIELDS_IN_ADDITIONAL_FIELDS:"Validation error.'fields' object cannot be empty in additionalFields record at index %s1. Specify a non-empty value instead.",EMPTY_TOKEN_IN_DETOKENIZE:"Validation error. 'token' key cannot be empty in records at index %s1. Specify a non-empty value instead.",EMPTY_SKYFLOWID_IN_GET:"Validation error. 'id' cannot be empty in 'ids' array in 'records' at index %s1. Specify non-empty values instead.",EMPTY_TABLE_IN_GET:"Validation error. 'table' key cannot be empty in records at index %s1. Specify a non-empty value instead.",EMPTY_REDACTION_TYPE_IN_GET:"Validation error. 'redaction' key cannot be empty in records at index %s1. Specify a non-empty value instead.",EMPTY_TOKEN_ID_REVEAL:"Validation error. 'token' key cannot be empty for reveal element. Specify a non-empty value instead.",FETCH_RECORDS_REJECTED:"Detokenize failed. Detokenize request is rejected.",INSERT_RECORDS_REJECTED:"Insert failed. Insert request is rejected.",GET_REJECTED:"Get failed. Get request is rejected.",FAILED_REVEAL:"Reveal failed. Some errors were encountered.",FAILED_RENDER:"Failed to render file. Some errors were encountered.",SKYFLOW_IDS_AND_TOKEN_BOTH_SPECIFIED:"Validation error. skyflowID and token can not be specified together.",MISSING_TABLE_IN_COLLECT:"Validation error.'table' key not found for collect element. Specify a valid value for 'table' key.",EMPTY_TABLE_IN_COLLECT:"Validation error.'table' cannot be empty for collect element. Specify a non-empty value for 'table'.",EMPTY_SKYFLOW_ID_IN_ADDITIONAL_FIELDS:"Validation error.'id' cannot be empty in addtionalFields record at index %s1. Specify a non-empty value for 'id'.",EMPTY_SKYFLOW_ID_COLLECT:"Validation error.'skyflowID' cannot be empty for collect element. Specify a non-empty value for 'skyflowID'.",INVALID_TABLE_IN_COLLECT:"Validation error. Invalid type for 'table' key value for collect element. Specify a value of type string instead.",INVALID_SKYFLOWID_IN_COLLECT:"Validation error. Invalid type for 'skyflowID' key value for collect element. Specify a value of type string instead.",MISSING_COLUMN_IN_COLLECT:"Validation error. 'column' key not found for collect element. Specify a valid column.",MISSING_SKYFLOWID_IN_COLLECT:"Validation error. 'skyflow_id' key not found for collect element. Specify a valid skyflowID.",EMPTY_COLUMN_IN_COLLECT:"Validation error. 'column' key cannot be empty for collect element. Specify a non-empty value instead.",INVALID_COLUMN_IN_COLLECT:"Validation error. Invalid type for 'column' key for collect element. Specify a value of type string instead.",UNIQUE_ELEMENT_NAME:"Validation error.Element name must be unique: %s1. Please enter a unique element name.",ELEMENTS_NOT_MOUNTED:"Collect failed. Make sure all elements are mounted before calling 'collect' on the container.",DUPLICATE_ELEMENT:"Mount failed.'%s1' appeared multiple times in '%s2'. Make sure each column in a record is unique.",DUPLICATE_ELEMENT_ADDITIONAL_FIELDS:"Mount failed. '%s1' appeared in record index '%s2' in the additional fields. Make sure each column in a record is unique.",MISSING_ELEMENT_TYPE:"Mount failed. Invalid element type. Specify a valid 'type'.",EMPTY_ELEMENT_TYPE:"Mount failed. Invalid element type. Specify a valid 'type'",INVALID_ELEMENT_TYPE:"Mount failed. Invalid element type. Specify a valid 'type'",INVALID_ELEMENT_SELECTOR:"Mount failed. 'div' element not found. Specify a valid 'div'.",CANNOT_CHANGE_ELEMENT:"Element can't be changed.",INVALID_IFRAME:"Error occured while creating an iframe",INVALID_FIELD:"Invalid Field.",FRAME_NOT_FOUND:"Frame %s1 not found. Could not initialise element.",COMPLETE_AND_VALID_INPUTS:"Mount failed. Incomplete inputs for '%s1'. Make sure all inputs are complete and valid.",REQUIRED_PARAMS_NOT_PROVIDED:"Initialisation error. Couldn't find iframe name for element.",INVALID_EVENT_TYPE:"Invalid event type. Specify a valid event type.",INVALID_EVENT_LISTENER:" Invalid event listener. Please specify a valid event listener.",MISSING_HANDLER_IN_EVENT_LISTENER:"Event handler callback is missing. Provide a valid event handler callback function.",INVALID_HANDLER_IN_EVENT_LISTENER:"Validation error. Invalid type for 'validations' key. Specify a value of type array instead.",UNKNOWN_ERROR:"Unknown Error.",NETWORK_ERROR:"A network error occurred. This could be a CORS issue or a dropped internet connection. It is not possible for us to know. Please reach out to skyflow if you see this error",CONNECTION_ERROR:"Error while initializing the connection.",ERROR_OCCURED:"Error occurred.",INVALID_VALIDATIONS_TYPE:"Validation error. Invalid validations type.",MISSING_VALIDATION_RULE_TYPE:"Validation error. 'type' for validation rule missing in validations array at index %s1. Specify a valid 'type' for each rule in validations array.",INVALID_VALIDATION_RULE_TYPE:"Validation error. Invalid 'type' for validation rule found in validations array at index %s1 . Specify a valid rule type for validation rule.",MISSING_VALIDATION_RULE_PARAMS:"Validation error. 'params' for validation rule missing in validations array at index %s1. Specify valid 'params' for each rule in validations array.",INVALID_VALIDATION_RULE_PARAMS:"Validation error. Invalid 'params' for validation rule found in validations array at index %s1 . Specify valid params for validation rule.",MISSING_REGEX_IN_REGEX_MATCH_RULE:"Validation error. Missing 'regex' param in validations array at index %s1. Specify a valid value for regex param.",INVALID_REGEX_IN_REGEX_MATCH_RULE:"Validation error. Invalid value for 'regex' param found for regex in validations array at index %s1. Provide a valid value regular expression for regex param.",MISSING_MIN_AND_MAX_IN_LENGTH_MATCH_RULE:"Validation error. Missing both 'min' and 'max' params in validations array at index %s1. Specify either one or both params.",MISSING_ELEMENT_IN_ELEMENT_MATCH_RULE:"Validation error. Missing 'element' param in validations array at index %s1. Specify a valid value for element param. ",INVALID_ELEMENT_IN_ELEMENT_MATCH_RULE:"Validation error. Invalid 'element' provided in validations array at index %s1. Specify a value of type collect element instead.",ELEMENT_NOT_MOUNTED_IN_ELEMENT_MATCH_RULE:"Validation error. Element provided in validations array at index %s1 is not mounted. Make sure the element is mounted.",EMPTY_ELEMENT_IN_MOUNT:"mount element with type %s1 - Mount cannot be empty.",VALIDATION_FAILED:"Validation failed",REVEAL_ELEMENT_ERROR_STATE:"Reveal failed. 'setError' is invoked on one or more elements. Make sure to reset any custom errors on all elements before invoking 'reveal' function.",INVALID_FILE_TYPE:"Invalid File Type.",INVALID_FILE_SIZE:"Invalid File Size",NO_FILE_SELECTED:"No File Selected",INVALID_UPSERT_OPTION_TYPE:"Validation error. Invalid 'upsert' key in insert options. Specify a value of type array instead",EMPTY_UPSERT_OPTIONS_ARRAY:"Validation error. 'upsert' key cannot be an empty array in insert options. Make sure to add atleast one table column object in upsert array.",INVALID_UPSERT_OPTION_OBJECT_TYPE:"Validation error. Invalid value in upsert array at index %s1 in insert options. Specify objects with 'table' and 'column' keys instead.",MISSING_TABLE_IN_UPSERT_OPTION:"Validation error. Missing 'table' key in upsert array at index %s1. Provide a valid 'table' key.",MISSING_COLUMN_IN_UPSERT_OPTION:"Validation error. Missing 'column' key in upsert array at index %s1. Provide a valid 'column' key",INVALID_TABLE_IN_UPSERT_OPTION:"Validation error. Invalid 'table' key in upsert array at index %s1. Specify a value of type string instead.",INVALID_COLUMN_IN_UPSERT_OPTION:"Validation error. Invalid 'column' key in upsert array at index %s1. Specify a value of type string instead.",INVALID_RECORD_COLUMN_VALUE:"Validation error. Invalid 'column' key. Specify a value of type string instead.",MISSING_RECORD_COLUMN_VALUE:"Validation error. Column Values is required when Column Name is specified.",MISSING_RECORD_COLUMN_NAME:"Validation error. Column Name is required when Column Values are specified.",INVALID_RECORD_COLUMN_VALUE_TYPE:"Validation error. Invalid Type of Records Column Values in records at index %s1",INVALID_COLUMN_VALUES_TYPE:"Validation error. Invalid column values type, should be an Array.",EMPTY_RECORD_COLUMN_VALUES:"Validation error. Record column values cannot be empty in records at index %s1",EMPTY_COLUMN_VALUE:"Validation error. Column Value is empty in records at index %s1",MISSING_IDS_OR_COLUMN_VALUES_IN_GET:"Validation error. Both 'ids' or 'columnValues' keys are missing. Either provide 'ids' or 'columnValues' with 'columnName' to fetch records.",SKYFLOW_IDS_AND_COLUMN_NAME_BOTH_SPECIFIED:"Validation error. ids and columnName can not be specified together.",GET_BY_SKYFLOWID_RESOLVED:"%s1 - GetById request is resolved.",RECORDS_KEY_NOT_FOUND_GETBYID:"Validation error. Missing 'records' key. Provide a valid 'records' key.",INVALID_RECORDS_IN_GETBYID:"Validation error. Invalid 'records' key found. Specify a value of type array instead.",EMPTY_RECORDS_GETBYID:"Validation error. 'records' key cannot be empty. Provide a non-empty value instead.",MISSING_IDS_IN_GETBYID:"Validation error. Missing 'ids' key in records at index %s1. Provide a valid 'ids' key.",INVALID_IDS_IN_GETBYID:"Validation error. Invalid 'ids' key in records at index %s1. ids object should be an array.",EMPTY_IDS_IN_GETBYID:"Validation error. 'ids' key cannot be an empty array in records at index %s1. Make sure to provide atleast one id in array.",INVALID_SKYFLOWID_TYPE_IN_GETBYID:"Validation error. Invalid value in ids array in records at index %s1. Specify a value of type string instead.",MISSING_TABLE_IN_GETBYID:"Validation error. Missing 'table' key in records at index %s1. Provide a valid 'table' key.",INVALID_TABLE_IN_GETBYID:"Validation error. Invalid 'table' key in records at index %s1. Specify a value of type string instead.",MISSING_REDACTION_IN_GETBYID:"Validation error. Missing 'redaction' key in records at index %s1. Provide a valid 'redaction' key.",INVALID_REDACTION_TYPE_IN_GETBYID:"Validation error. Invalid 'redaction' key in records at index %s1. Specify a valid redaction type.",EMPTY_SKYFLOWID_IN_GETBYID:"Validation error. 'ids' key cannot be an array of empty strings in records at index %s1. Specify non-empty values instead.",EMPTY_TABLE_IN_GETBYID:"Validation error. 'table' key cannot be empty in records at index %s1. Specify a non-empty value instead.",EMPTY_REDACTION_TYPE_IN_GETBYID:"Validation error. 'redaction' key cannot be empty in records at index %s1. Specify a non-empty value instead.",GET_BY_SKYFLOWID_REJECTED:"GetById failed. GetById request is rejected.",MISSING_COMPOSABLE_LAYOUT_KEY:"Mount failed. Layout is not specified in composable container options. Specify a valid layout.",EMPTY_COMPOSABLE_LAYOUT_ARRAY:"Mount failed. Layout array is empty in composable container options. Specify a valid layout array.",INVALID_COMPOSABLE_LAYOUT_TYPE:"Mount failed. Invalid layout array values. Make sure all values in the layout array are positive numbers.",NEGATIVE_VALUES_COMPOSABLE_LAYOUT:"Mount failed. layout array should only have positive numbers in composable container options.",MISMATCH_ELEMENT_COUNT_LAYOUT_SUM:"Mount failed. Invalid layout array values. Make sure all values in the layout array are positive numbers.",MISSING_COMPOSABLE_CONTAINER_OPTIONS:"Mount failed. An options object is required for composable containers. Specify a valid options object.",INVALID_COMPOSABLE_CONTAINER_OPTIONS:"Mount failed. Invalid options object. Specify a valid options object.",COMPOSABLE_CONTAINER_NOT_MOUNTED:"Mount elements first. Make sure all elements are mounted before calling 'collect' on the container.",INVALID_BOOLEAN_OPTIONS:"Validation error. Invalid %s1 found in collect options. Specify a value of type boolean instead.",INVALID_INPUT_OPTIONS_FORMAT:"Mount failed. Format must be a non-empty string. Specify a valid format.",INVALID_INPUT_OPTIONS_TRANSLATION:"Mount failed. Translation must be a non-empty object. Specify a valid translation.",EMPTY_COLLECT_CUSTOM_FORMAT:"Mount failed. '%s1' can not be an empty object. Specify a valid object.",INVALID_ALLOWED_OPTIONS:"Validation error. Invalid options, allowedFileType must be of string array type.",EMPTY_ALLOWED_OPTIONS_ARRAY:"Validation error. Invalid options value, allowedFileType array is empty.",INVALID_ALLOWED_FILETYPE_ARRAY:"Validation error. Invalid options value, allowedFileType array must contain only string elements.",INVALID_OPTION_CARD_METADATA:"Validation error. container create - Invalid type, cardMetadata must be of non-empty object type.",INVALID_OPTION_CARD_SCHEME:"Validation error. container create - Invalid options, scheme must be of string array type."},warnLogs:{INVALID_EXPIRATION_DATE_FORMAT:"EXPIRATION_DATE format must be in one of %s1, the format is set to default MM/YY",INVALID_EXPIRATION_YEAR_FORMAT:"EXPIRATION_YEAR format must be in one of %s1, the format is set to default YY",UNABLE_TO_SET_VALUE_IN_PROD_ENV:"%s1 setValue() cannot invoked while in PROD env. It is Not Recommeded",UNABLE_TO_CLEAR_VALUE_IN_PROD_ENV:"%s1 clearValue() cannot invoked while in PROD env. It is Not Recommeded",COLLECT_ALT_TEXT_DEPERECATED:"altText is DEPERECATED, passing altText will not have any effect",GET_BY_ID_DEPRECATED:"getById is deprecated, use new get method",INPUT_FORMATTING_NOT_SUPPROTED:"format or translation are not supported on %s1 element type.",INVALID_INPUT_TRANSLATION:"invalid or unsupported translation provided for %s1 element type."}};var A,R,b,S,w,D,x,M,P="collect_controller",C="reveal_controller",k="element",V={COLLECT:"COLLECT",REVEAL:"REVEAL",COMPOSE:"COMPOSABLE"},U={MOUNTED:"MOUNTED",READY:"FRAME_READY"},j={ELEMENT_ID:"element_id",ELEMENT_TYPE:V,ELEMENT_TYPE_KEY:"element_type",DIV_ID:"div_id",CONTAINER_ID:"container_id",CONTAINER_NAME:"container_name",SESSION_ID:"session_id",VAULT_ID:"vault_id",VAULT_URL:"vault_url",EVENTS:U,EVENTS_KEY:"events",CREATED_AT:"created_at",REGION:"region",MOUNT_START_TIME:"mount_start_time",MOUNT_END_TIME:"mount_end_time",ERROR:"error",LATENCY:"latency",STATUS:{SUCCESS:"SUCCESS",INITIALIZED:"INITIALIZED",PARTIAL_RENDER:"PARTIAL_RENDER",FAILED:"FAILED"}},Y="INSERT",F="DETOKENIZE",G="GET_BY_SKYFLOWID",B="GET",X="DELETE",K={CHANGE:"CHANGE",READY:"READY",FOCUS:"FOCUS",BLUR:"BLUR",ESCAPE:"ESCAPE",CLICK:"CLICK",ERROR:"ERROR",SUCCESS:"SUCCESS",SUBMIT:"SUBMIT",CREATED:"CREATED",MOUNTED:"MOUNTED",HEIGHT:"HEIGHT"},W={FRAME_READY:"FRAME_READY",READY_FOR_CLIENT:"READY_FOR_CLIENT",TOKENIZATION_REQUEST:"TOKENIZATION_REQUEST",INPUT_EVENT:"INPUT_EVENT",DESTROY_FRAME:"DESTROY FRAME",SET_VALUE:"SET_VALUE",CLIENT_REQUEST:"CLIENT_REQUEST",GET_ACCESS_TOKEN:"GET_ACCESS_TOKEN",REVEAL_REQUEST:"REVEAL_REQUEST",REVEAL_RESPONSE_READY:"REVEAL_RESPONSE_READY",REVEAL_FRAME_READY:"REVEAL_FRAME_READY",REVEAL_GET_ACCESS_TOKEN:"REVEAL_GET_ACCESS_TOKEN",PUREJS_REQUEST:"PUREJS_REQUEST",PUREJS_FRAME_READY:"PUREJS_FRAME_READY",PUREJS_GET_ACCESS_TOKEN:"PUREJS_GET_ACCESS_TOKEN",GET_BEARER_TOKEN:"GET_BEARER_TOKEN",GET_COLLECT_ELEMENT:"GET_COLLECT_ELEMENT",GET_REVEAL_ELEMENT:"GET_REVEAL_ELEMENT",COLLECT_ELEMENT_SET_ERROR:"COLLECT_ELEMENT_SET_ERROR",COLLECT_ELEMENT_SET_ERROR_OVERRIDE:"COLLECT_ELEMENT_SET_ERROR_OVERRIDE",REVEAL_ELEMENT_SET_ERROR:"REVEAL_ELEMENT_SET_ERROR",REVEAL_ELEMENT_UPDATE_OPTIONS:"REVEAL_ELEMENT_UPDATE_OPTIONS",FILE_UPLOAD:"FILE_UPLOAD",COMPOSABLE_UPDATE_OPTIONS:"COMPOSABLE_UPDATE_OPTIONS",RENDER_FILE_RESPONSE_READY:"RENDER_FILE_RESPONSE_READY",RENDER_FILE_REQUEST:"RENDER_FILE_REQUEST",PUSH_EVENT:"PUSH_EVENT"},q="TOKEN",z="ALT_TEXT",H="ELEMENT_PROPS",J="ELEMENT_MOUNTED",Q="ALL_ELEMENTS_MOUNTED",Z="COMPOSABLE_CONTAINER_MOUNTED",$="COLLECT_CONTAINER_MOUNTED",ee="REVEAL_CONTAINER_MOUNTED",te=function(e){return e.CVV="CVV",e.EXPIRATION_DATE="EXPIRATION_DATE",e.CARD_NUMBER="CARD_NUMBER",e.CARDHOLDER_NAME="CARDHOLDER_NAME",e.INPUT_FIELD="INPUT_FIELD",e.PIN="PIN",e.EXPIRATION_MONTH="EXPIRATION_MONTH",e.EXPIRATION_YEAR="EXPIRATION_YEAR",e.FILE_INPUT="FILE_INPUT",e}({}),ne=function(e){return e.VISA="VISA",e.MASTERCARD="MASTERCARD",e.AMEX="AMEX",e.DINERS_CLUB="DINERS_CLUB",e.DISCOVER="DISCOVER",e.JCB="JCB",e.MAESTRO="MAESTRO",e.UNIONPAY="UNIONPAY",e.HIPERCARD="HIPERCARD",e.DEFAULT="DEFAULT",e.UNKNOWN="UNKNOWN",e.CARTES_BANCAIRES="CARTES BANCAIRES",e}({}),re=(o(A={},ne.VISA,"Visa"),o(A,ne.MASTERCARD,"Mastercard"),o(A,ne.AMEX,"Amex"),o(A,ne.DINERS_CLUB,"DinersClub"),o(A,ne.DISCOVER,"Discover"),o(A,ne.JCB,"Jcb"),o(A,ne.MAESTRO,"Maestro"),o(A,ne.UNIONPAY,"Unionpay"),o(A,ne.HIPERCARD,"Hipercard"),o(A,ne.DEFAULT,"Default"),o(A,ne.UNKNOWN,"Unknown"),o(A,ne.CARTES_BANCAIRES,"Cartes Bancaires"),o(R={},ne.AMEX,["XXXX XXXXXX XXXXX",{X:"[0-9]"}]),o(R,ne.VISA,["XXXX XXXX XXXX XXXX",{X:"[0-9]"}]),o(R,ne.MASTERCARD,["XXXX XXXX XXXX XXXX",{X:"[0-9]"}]),o(R,ne.DISCOVER,["XXXX XXXX XXXX XXXX XXX",{X:"[0-9]"}]),o(R,ne.DINERS_CLUB,["XXXX XXXXXX XXXXXX",{X:"[0-9]"}]),o(R,ne.JCB,["XXXX XXXX XXXX XXXX XXX",{X:"[0-9]"}]),o(R,ne.MAESTRO,["XXXX XXXX XXXX XXXX XXX",{X:"[0-9]"}]),o(R,ne.UNIONPAY,["XXXX XXXX XXXX XXXX XXX",{X:"[0-9]"}]),o(R,ne.HIPERCARD,["XXXX XXXX XXXX XXXX XXX",{X:"[0-9]"}]),o(R,ne.DEFAULT,["XXXX XXXX XXXX XXXX XXX",{X:"[0-9]"}]),o(R,ne.UNKNOWN,["XXXX XXXX XXXX XXXX XXX",{X:"[0-9]"}]),R),oe=(o(b={textarea:{name:"textarea",attributes:{type:"textarea"},sensitive:!1},checkbox:{name:"checkbox",attributes:{type:"checkbox"},sensitive:!1},radio:{name:"radio",attributes:{type:"radio"},sensitive:!1},dropdown:{name:"dropdown",attributes:{type:"select"},sensitive:!1}},te.CARDHOLDER_NAME,{name:"cardHolderName",attributes:{type:"text",autocomplete:"cc-name"},sensitive:!0,regex:/^([a-zA-Z\\ \\,\\.\\-\\']{2,})$/}),o(b,te.CARD_NUMBER,{name:"CARD_NUMBER",attributes:{type:"text",autocomplete:"cc-number",inputmode:"numeric"},sensitive:!0,mask:re[ne.DEFAULT],regex:/$|^[\s]*?([0-9]{2,6}[ -]?){3,5}[\s]*/}),o(b,te.EXPIRATION_DATE,{name:"EXPIRATION_DATE",attributes:{type:"text",autocomplete:"cc-exp",inputmode:"numeric"},sensitive:!0}),o(b,te.EXPIRATION_MONTH,{name:"EXPIRATION_MONTH",attributes:{maxLength:2,type:"text",inputmode:"numeric",autocomplete:"cc-exp-month"},sensitive:!0,mask:["XX",{X:"[0-9]"}]}),o(b,te.EXPIRATION_YEAR,{name:"EXPIRATION_YEAR",attributes:{type:"text",inputmode:"numeric",autocomplete:"cc-exp-year"},sensitive:!0}),o(b,te.CVV,{name:"CVV",attributes:{type:"text",inputmode:"numeric",maxLength:4},sensitive:!0,regex:/^$|^[0-9]{3,4}$/}),o(b,te.INPUT_FIELD,{name:"INPUT_FIELD",sensitive:!0,attributes:{type:"text"}}),o(b,te.PIN,{name:"PIN",attributes:{type:"text",inputmode:"numeric",maxLength:12,minLength:4},sensitive:!0,regex:/^$|^[0-9]{4,12}$/}),o(b,te.FILE_INPUT,{name:"FILE_INPUT",sensitive:!0,attributes:{type:"file"}}),b),ie="XXXX-XXXX-XXXX-XXXX",ae={height:"100%",width:"100%",margin:0,padding:0,border:0,position:"absolute",top:0,left:0,"user-select":"none"},ce={position:"absolute",top:0,width:0,height:0,visibility:"hidden",left:"-99999999px","user-select":"none"},le={width:"100%",height:"100%",border:"0",padding:"0",margin:"0",outline:"none"},se={WEBPACKAUTOFILL:"-webkit-autofill",BASE:"base",FOCUS:"focus",COMPLETE:"complete",EMPTY:"empty",INVALID:"invalid",GLOBAL:"global",REQUIRED_ASTERISK:"requiredAsterisk"},pe=(o({},se.BASE,{maxHeight:"100%",maxWidth:"100%"}),o({},se.BASE,{"margin-bottom":"4px"}),o({},se.BASE,{"margin-bottom":"4px",display:"flex",flexDirection:"column",justifyContent:"space-between"}),o({},se.BASE,{marginTop:"4px"}),o(S={},se.BASE,{marginBottom:"4px"}),o(S,se.REQUIRED_ASTERISK,{display:"inline",color:"red"}),o(w={},ne.VISA,{regex:/^4\d*/,maxCardLength:19,cardLengthRange:[13,16]}),o(w,ne.MASTERCARD,{regex:/^(5[1-5]|222[1-9]|22[3-9]|2[3-6]|27[0-1]|2720)\d*/,maxCardLength:16,cardLengthRange:[16]}),o(w,ne.AMEX,{regex:/^3[47]\d*/,maxCardLength:15,cardLengthRange:[15]}),o(w,ne.DINERS_CLUB,{regex:/^(36|38|30[0-5])\d*/,maxCardLength:16,cardLengthRange:[14,15,16,17,18,19]}),o(w,ne.DISCOVER,{regex:/^(6011|65|64[4-9]|622)\d*/,maxCardLength:16,cardLengthRange:[16,17,18,19]}),o(w,ne.JCB,{regex:/^35\d*/,maxCardLength:19,cardLengthRange:[16,17,18,19]}),o(w,ne.HIPERCARD,{regex:/^606282\d*/,maxCardLength:19,cardLengthRange:[14,15,16,17,18,19]}),o(w,ne.UNIONPAY,{regex:/^62\d*/,maxCardLength:19,cardLengthRange:[16,17,18,19]}),o(w,ne.MAESTRO,{regex:/^(5018|5020|5038|5043|5[6-9]|6020|6304|6703|6759|676[1-3])\d*/,maxCardLength:19,cardLengthRange:[12,13,14,15,16,17,18,19]}),w),ue=(o(D={},ne.DEFAULT,f),o(D,ne.AMEX,_),o(D,ne.CARTES_BANCAIRES,g),o(D,ne.DINERS_CLUB,m),o(D,ne.DISCOVER,v),o(D,ne.HIPERCARD,I),o(D,ne.JCB,y),o(D,ne.MAESTRO,T),o(D,ne.MASTERCARD,O),o(D,ne.UNIONPAY,N),o(D,ne.VISA,L),"MM/YY"),Ee=[ue,"YYYY/MM","YY/MM","MM/YYYY"],de=["YY","YYYY"],fe=function(e){return e.APPLICATIONORJSON="application/json",e.TEXTORPLAIN="text/plain",e.TEXTORXML="text/xml",e.FORMURLENCODED="application/x-www-form-urlencoded",e.FORMDATA="multipart/form-data",e}({}),_e=(te.CARD_NUMBER,te.EXPIRATION_DATE,te.EXPIRATION_MONTH,te.EXPIRATION_YEAR,o(x={},te.CVV,"Invalid cvv"),o(x,te.EXPIRATION_DATE,"Invalid expiration date"),o(x,te.CARD_NUMBER,"Invalid card number"),o(x,te.CARDHOLDER_NAME,"Invalid cardholder name"),o(x,te.INPUT_FIELD,h.errorLogs.INVALID_COLLECT_VALUE),o(x,te.PIN,"Invalid pin"),o(x,te.EXPIRATION_MONTH,"Invalid expiration month"),o(x,te.EXPIRATION_YEAR,"Invalid expiration year"),o(x,te.FILE_INPUT,h.errorLogs.INVALID_COLLECT_VALUE),o(M={},te.CVV,"cvv is required"),o(M,te.EXPIRATION_DATE,"expiration date is required"),o(M,te.CARD_NUMBER,"card number is required"),o(M,te.CARDHOLDER_NAME,"cardholder name is required"),o(M,te.INPUT_FIELD,h.errorLogs.DEFAULT_REQUIRED_COLLECT_VALUE),o(M,te.PIN,"pin is required"),o(M,te.EXPIRATION_MONTH,"expiration month is required"),o(M,te.EXPIRATION_YEAR,"expiration year is required"),o(M,te.FILE_INPUT,h.errorLogs.DEFAULT_REQUIRED_COLLECT_VALUE),[te.CARDHOLDER_NAME,te.EXPIRATION_MONTH,te.FILE_INPUT,te.PIN,te.CVV]),me={X:"[0-9]"};function ve(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ie(e,t){if(e){if("string"==typeof e)return ve(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ve(e,t):void 0}}function ye(e){return function(e){if(Array.isArray(e))return ve(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ie(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Te(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Oe(e,t){return Oe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Oe(e,t)}function Ne(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Oe(e,t)}function Le(t,n){if(n&&("object"===e(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return Te(t)}function ge(e){return ge=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ge(e)}function he(e,t,n){return he=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&Oe(o,n.prototype),o},he.apply(null,arguments)}function Ae(e){var t="function"==typeof Map?new Map:void 0;return Ae=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return he(e,arguments,ge(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Oe(r,e)},Ae(e)}var Re=function(e){return e.DEFAULT="DEFAULT",e.PLAIN_TEXT="PLAIN_TEXT",e.MASKED="MASKED",e.REDACTED="REDACTED",e}({}),be=function(e){return e.GET="GET",e.POST="POST",e.PUT="PUT",e.PATCH="PATCH",e.DELETE="DELETE",e}({}),Se=function(e){return e.CHANGE="CHANGE",e.READY="READY",e.FOCUS="FOCUS",e.BLUR="BLUR",e.SUBMIT="SUBMIT",e}({}),we=function(e){return e.WARN="WARN",e.INFO="INFO",e.DEBUG="DEBUG",e.ERROR="ERROR",e}({}),De=function(e){return e.DEV="DEV",e.PROD="PROD",e}({}),xe=function(e){return e.LOG="LOG",e.WARN="WARN",e.ERROR="ERROR",e}({}),Me=function(e){return e.REGEX_MATCH_RULE="REGEX_MATCH_RULE",e.LENGTH_MATCH_RULE="LENGTH_MATCH_RULE",e.ELEMENT_VALUE_MATCH_RULE="ELEMENT_VALUE_MATCH_RULE",e}({});const Pe={INVALID_FILE_NAME:{code:400,description:h.errorLogs.INVALID_FILE_NAME},INVALID_FIELD:{code:400,description:h.errorLogs.INVALID_FIELD},VAULTID_IS_REQUIRED:{code:400,description:h.errorLogs.VAULTID_IS_REQUIRED},EMPTY_VAULTID_IN_INIT:{code:400,description:h.errorLogs.EMPTY_VAULTID_IN_INIT},VAULTURL_IS_REQUIRED:{code:400,description:h.errorLogs.VAULTURL_IS_REQUIRED},EMPTY_VAULTURL_IN_INIT:{code:400,description:h.errorLogs.EMPTY_VAULTURL_IN_INIT},INVALID_VAULTURL_IN_INIT:{code:400,description:h.errorLogs.INVALID_VAULTURL_IN_INIT},GET_BEARER_TOKEN_IS_REQUIRED:{code:400,description:h.errorLogs.GET_BEARER_TOKEN_IS_REQUIRED},EMPTY_CONTAINER_TYPE:{code:400,description:h.errorLogs.EMPTY_CONTAINER_TYPE},INVALID_CONTAINER_TYPE:{code:400,description:h.errorLogs.INVALID_CONTAINER_TYPE},UNIQUE_ELEMENT_NAME:{code:400,description:h.errorLogs.UNIQUE_ELEMENT_NAME},ELEMENTS_NOT_MOUNTED:{code:400,description:h.errorLogs.ELEMENTS_NOT_MOUNTED},MISSING_TABLE_IN_COLLECT:{code:400,description:h.errorLogs.MISSING_TABLE_IN_COLLECT},MISSING_SKYFLOWID_KEY_REVEAL:{code:400,description:h.errorLogs.MISSING_SKYFLOWID_KEY_REVEAL},EMPTY_TABLE_IN_COLLECT:{code:400,description:h.errorLogs.EMPTY_TABLE_IN_COLLECT},EMPTY_SKYFLOW_ID_IN_ADDITIONAL_FIELDS:{code:400,description:h.errorLogs.EMPTY_SKYFLOW_ID_IN_ADDITIONAL_FIELDS},EMPTY_SKYFLOW_ID_COLLECT:{code:400,description:h.errorLogs.EMPTY_SKYFLOW_ID_COLLECT},INVALID_TABLE_IN_COLLECT:{code:400,description:h.errorLogs.INVALID_TABLE_IN_COLLECT},INVALID_SKYFLOWID_IN_COLLECT:{code:400,description:h.errorLogs.INVALID_SKYFLOWID_IN_COLLECT},MISSING_COLUMN_IN_COLLECT:{code:400,description:h.errorLogs.MISSING_COLUMN_IN_COLLECT},MISSING_SKYFLOWID_IN_COLLECT:{code:400,description:h.errorLogs.MISSING_SKYFLOWID_IN_COLLECT},EMPTY_COLUMN_IN_COLLECT:{code:400,description:h.errorLogs.EMPTY_TABLE_IN_COLLECT},INVALID_COLUMN_IN_COLLECT:{code:400,description:h.errorLogs.INVALID_COLUMN_IN_COLLECT},CLIENT_CONNECTION:{code:400,description:h.errorLogs.CLIENT_CONNECTION},RECORDS_KEY_NOT_FOUND:{code:404,description:h.errorLogs.RECORDS_KEY_NOT_FOUND},EMPTY_RECORDS_IN_INSERT:{code:400,description:h.errorLogs.EMPTY_RECORDS_IN_INSERT},INVALID_RECORDS_IN_INSERT:{code:404,description:h.errorLogs.INVALID_RECORDS_IN_INSERT},INVALID_TABLE_IN_INSERT:{code:400,description:h.errorLogs.INVALID_TABLE_IN_INSERT},EMPTY_TABLE_IN_INSERT:{code:400,description:h.errorLogs.EMPTY_TABLE_IN_INSERT},MISSING_TABLE_IN_INSERT:{code:400,description:h.errorLogs.MISSING_TABLE_IN_INSERT},EMPTY_FIELDS_IN_INSERT:{code:400,description:h.errorLogs.EMPTY_FIELDS_IN_INSERT},MISSING_FIELDS_IN_INSERT:{code:404,description:h.errorLogs.MISSING_FIELDS_IN_INSERT},INVALID_FIELDS_IN_INSERT:{code:404,description:h.errorLogs.INVALID_FIELDS_IN_INSERT},INVALID_TOKENS_IN_INSERT:{code:404,description:h.errorLogs.INVALID_TOKENS_IN_INSERT},RECORDS_KEY_NOT_FOUND_DETOKENIZE:{code:404,description:h.errorLogs.RECORDS_KEY_NOT_FOUND_DETOKENIZE},EMPTY_RECORDS_DETOKENIZE:{code:400,description:h.errorLogs.EMPTY_RECORDS_DETOKENIZE},INVALID_RECORDS_IN_DETOKENIZE:{code:404,description:h.errorLogs.INVALID_RECORDS_IN_DETOKENIZE},MISSING_TOKEN_IN_DETOKENIZE:{code:400,description:h.errorLogs.MISSING_TOKEN_IN_DETOKENIZE},INVALID_TOKEN_IN_DETOKENIZE:{code:400,description:h.errorLogs.INVALID_TOKEN_IN_DETOKENIZE},RECORDS_KEY_NOT_FOUND_GET:{code:400,description:h.errorLogs.RECORDS_KEY_NOT_FOUND_GET},INVALID_RECORDS_IN_GET:{code:400,description:h.errorLogs.INVALID_RECORDS_IN_GET},EMPTY_RECORDS_GET:{code:400,description:h.errorLogs.EMPTY_RECORDS_GET},MISSING_IDS_IN_GET:{code:400,description:h.errorLogs.MISSING_IDS_IN_GET},INVALID_IDS_IN_GET:{code:400,description:h.errorLogs.INVALID_IDS_IN_GET},INVALID_COLUMN_VALUES_IN_GET:{code:400,description:h.errorLogs.INVALID_COLUMN_VALUES_IN_GET},EMPTY_IDS_IN_GET:{code:400,description:h.errorLogs.EMPTY_IDS_IN_GET},INVALID_SKYFLOWID_TYPE_IN_GET:{code:400,description:h.errorLogs.INVALID_SKYFLOWID_TYPE_IN_GET},MISSING_TABLE_IN_GET:{code:400,description:h.errorLogs.MISSING_TABLE_IN_GET},INVALID_TABLE_IN_GET:{code:400,description:h.errorLogs.INVALID_TABLE_IN_GET},MISSING_REDACTION_IN_GET:{code:400,description:h.errorLogs.MISSING_REDACTION_IN_GET},INVALID_REDACTION_TYPE_IN_GET:{code:400,description:h.errorLogs.INVALID_REDACTION_TYPE_IN_GET},INVALID_TOKENS_IN_GET:{code:400,description:h.errorLogs.INVALID_TOKENS_IN_GET},TOKENS_GET_COLUMN_NOT_SUPPORTED:{code:400,description:h.errorLogs.TOKENS_GET_COLUMN_NOT_SUPPORTED},REDACTION_WITH_TOKENS_NOT_SUPPORTED:{code:400,description:h.errorLogs.REDACTION_WITH_TOKENS_NOT_SUPPORTED},INVALID_REDACTION_TYPE_IN_DETOKENIZE:{code:400,description:h.errorLogs.INVALID_REDACTION_TYPE_IN_DETOKENIZE},INVALID_TOKENS_IN_COLLECT:{code:404,description:h.errorLogs.INVALID_TOKENS_IN_COLLECT},RECORDS_KEY_NOT_FOUND_IN_ADDITIONAL_FIELDS:{code:404,description:h.errorLogs.RECORDS_KEY_NOT_FOUND_IN_ADDITIONAL_FIELDS},INVALID_RECORDS_IN_ADDITIONAL_FIELDS:{code:404,description:h.errorLogs.INVALID_RECORDS_IN_ADDITIONAL_FIELDS},EMPTY_RECORDS_IN_ADDITIONAL_FIELDS:{code:400,description:h.errorLogs.EMPTY_RECORDS_IN_ADDITIONAL_FIELDS},MISSING_TABLE_IN_ADDITIONAL_FIELDS:{code:400,description:h.errorLogs.MISSING_TABLE_IN_ADDITIONAL_FIELDS},INVALID_TABLE_IN_ADDITIONAL_FIELDS:{code:400,description:h.errorLogs.INVALID_TABLE_IN_ADDITIONAL_FIELDS},INVALID_SKYFLOW_ID_IN_ADDITIONAL_FIELDS:{code:400,description:h.errorLogs.INVALID_SKYFLOW_ID_IN_ADDITIONAL_FIELDS},MISSING_FIELDS_IN_ADDITIONAL_FIELDS:{code:400,description:h.errorLogs.MISSING_FIELDS_IN_ADDITIONAL_FIELDS},INVALID_FIELDS_IN_ADDITIONAL_FIELDS:{code:400,description:h.errorLogs.INVALID_FIELDS_IN_ADDITIONAL_FIELDS},RECORDS_KEY_NOT_FOUND_DELETE:{code:400,description:h.errorLogs.RECORDS_KEY_NOT_FOUND_DELETE},EMPTY_RECORDS_IN_DELETE:{code:400,description:h.errorLogs.EMPTY_RECORDS_IN_DELETE},INVALID_RECORDS_IN_DELETE:{code:404,description:h.errorLogs.INVALID_RECORDS_IN_DELETE},INVALID_TABLE_IN_DELETE:{code:400,description:h.errorLogs.INVALID_TABLE_IN_DELETE},EMPTY_TABLE_IN_DELETE:{code:400,description:h.errorLogs.EMPTY_TABLE_IN_DELETE},MISSING_TABLE_IN_DELETE:{code:400,description:h.errorLogs.MISSING_TABLE_IN_DELETE},EMPTY_ID_IN_DELETE:{code:400,description:h.errorLogs.EMPTY_ID_IN_DELETE},MISSING_ID_IN_DELETE:{code:404,description:h.errorLogs.MISSING_ID_IN_DELETE},INVALID_ID_IN_DELETE:{code:404,description:h.errorLogs.INVALID_ID_IN_DELETE},EMPTY_RECORDS_REVEAL:{code:400,description:h.errorLogs.EMPTY_RECORDS_REVEAL},MISSING_TOKEN_KEY_REVEAL:{code:400,description:h.errorLogs.MISSING_TOKEN_KEY_REVEAL},INVALID_TOKEN_ID_REVEAL:{code:400,description:h.errorLogs.INVALID_TOKEN_ID_REVEAL},INVALID_LABEL_REVEAL:{code:400,description:h.errorLogs.INVALID_LABEL_REVEAL},INVALID_ALT_TEXT_REVEAL:{code:400,description:h.errorLogs.INVALID_ALT_TEXT_REVEAL},INVALID_ALT_TEXT_RENDER:{code:400,description:h.errorLogs.INVALID_ALT_TEXT_RENDER},INVALID_FORMAT_REVEAL:{code:400,description:h.errorLogs.INVALID_FORMAT_REVEAL},EMPTY_FORMAT_REVEAL:{code:400,description:h.errorLogs.EMPTY_FORMAT_REVEAL},INVALID_FORMAT_VALUE_REVEAL:{code:400,description:h.errorLogs.INVALID_FORMAT_VALUE_REVEAL},INVALID_REDACTION_TYPE_REVEAL:{code:400,description:h.errorLogs.INVALID_REDACTION_TYPE_REVEAL},EMPTY_TABLE_IN_ADDITIONAL_FIELDS:{code:400,description:h.errorLogs.EMPTY_TABLE_IN_ADDITIONAL_FIELDS},EMPTY_FIELDS_IN_ADDITIONAL_FIELDS:{code:400,description:h.errorLogs.EMPTY_FIELDS_IN_ADDITIONAL_FIELDS},EMPTY_TOKEN_IN_DETOKENIZE:{code:400,description:h.errorLogs.EMPTY_TOKEN_IN_DETOKENIZE},EMPTY_SKYFLOWID_IN_GET:{code:400,description:h.errorLogs.EMPTY_SKYFLOWID_IN_GET},EMPTY_TABLE_IN_GET:{code:400,description:h.errorLogs.EMPTY_TABLE_IN_GET},EMPTY_REDACTION_TYPE_IN_GET:{code:400,description:h.errorLogs.EMPTY_REDACTION_TYPE_IN_GET},EMPTY_TOKEN_ID_REVEAL:{code:400,description:h.errorLogs.EMPTY_TOKEN_ID_REVEAL},DUPLICATE_ELEMENT:{code:400,description:h.errorLogs.DUPLICATE_ELEMENT},DUPLICATE_ELEMENT_ADDITIONAL_FIELDS:{code:400,description:h.errorLogs.DUPLICATE_ELEMENT_ADDITIONAL_FIELDS},MISSING_ELEMENT_TYPE:{code:400,description:h.errorLogs.MISSING_ELEMENT_TYPE},EMPTY_ELEMENT_TYPE:{code:400,description:h.errorLogs.EMPTY_ELEMENT_TYPE},INVALID_ALLOWED_OPTIONS:{code:400,description:h.errorLogs.INVALID_ALLOWED_OPTIONS},EMPTY_ALLOWED_OPTIONS_ARRAY:{code:400,description:h.errorLogs.EMPTY_ALLOWED_OPTIONS_ARRAY},INVALID_ALLOWED_FILETYPE_ARRAY:{code:400,description:h.errorLogs.INVALID_ALLOWED_FILETYPE_ARRAY},INVALID_ELEMENT_TYPE:{code:400,description:h.errorLogs.INVALID_ELEMENT_TYPE},INVALID_ELEMENT_SELECTOR:{code:400,description:h.errorLogs.INVALID_ELEMENT_SELECTOR},FRAME_NOT_FOUND:{code:400,description:h.errorLogs.FRAME_NOT_FOUND},REQUIRED_PARAMS_NOT_PROVIDED:{code:400,description:h.errorLogs.REQUIRED_PARAMS_NOT_PROVIDED},INVALID_RECORD_COLUMN_VALUE:{code:400,description:h.errorLogs.INVALID_RECORD_COLUMN_VALUE},MISSING_RECORD_COLUMN_VALUE:{code:400,description:h.errorLogs.MISSING_RECORD_COLUMN_VALUE},MISSING_RECORD_COLUMN_NAME:{code:400,description:h.errorLogs.MISSING_RECORD_COLUMN_NAME},INVALID_EVENT_TYPE:{code:400,description:h.errorLogs.INVALID_EVENT_TYPE},INVALID_EVENT_LISTENER:{code:400,description:h.errorLogs.INVALID_EVENT_LISTENER},MISSING_HANDLER_IN_EVENT_LISTENER:{code:400,description:h.errorLogs.MISSING_HANDLER_IN_EVENT_LISTENER},INVALID_HANDLER_IN_EVENT_LISTENER:{code:400,description:h.errorLogs.INVALID_HANDLER_IN_EVENT_LISTENER},UNKNOWN_ERROR:{code:400,description:h.errorLogs.UNKNOWN_ERROR},CONNECTION_ERROR:{code:400,description:h.errorLogs.CONNECTION_ERROR},NETWORK_ERROR:{code:500,description:h.errorLogs.NETWORK_ERROR},COMPLETE_AND_VALID_INPUTS:{code:400,description:h.errorLogs.COMPLETE_AND_VALID_INPUTS},INVALID_VALIDATIONS_TYPE:{code:400,description:h.errorLogs.INVALID_VALIDATIONS_TYPE},MISSING_VALIDATION_RULE_TYPE:{code:400,description:h.errorLogs.MISSING_VALIDATION_RULE_TYPE},INVALID_VALIDATION_RULE_TYPE:{code:400,description:h.errorLogs.INVALID_VALIDATION_RULE_TYPE},MISSING_VALIDATION_RULE_PARAMS:{code:400,description:h.errorLogs.MISSING_VALIDATION_RULE_PARAMS},INVALID_VALIDATION_RULE_PARAMS:{code:400,description:h.errorLogs.INVALID_VALIDATION_RULE_PARAMS},MISSING_REGEX_IN_REGEX_MATCH_RULE:{code:400,description:h.errorLogs.MISSING_REGEX_IN_REGEX_MATCH_RULE},INVALID_REGEX_IN_REGEX_MATCH_RULE:{code:400,description:h.errorLogs.INVALID_REGEX_IN_REGEX_MATCH_RULE},MISSING_MIN_AND_MAX_IN_LENGTH_MATCH_RULE:{code:400,description:h.errorLogs.MISSING_MIN_AND_MAX_IN_LENGTH_MATCH_RULE},MISSING_ELEMENT_IN_ELEMENT_MATCH_RULE:{code:400,description:h.errorLogs.MISSING_ELEMENT_IN_ELEMENT_MATCH_RULE},INVALID_ELEMENT_IN_ELEMENT_MATCH_RULE:{code:400,description:h.errorLogs.INVALID_ELEMENT_IN_ELEMENT_MATCH_RULE},ELEMENT_NOT_MOUNTED_IN_ELEMENT_MATCH_RULE:{code:400,description:h.errorLogs.ELEMENT_NOT_MOUNTED_IN_ELEMENT_MATCH_RULE},EMPTY_ELEMENT_IN_MOUNT:{code:400,description:h.errorLogs.EMPTY_ELEMENT_IN_MOUNT},REVEAL_ELEMENT_ERROR_STATE:{code:400,description:h.errorLogs.REVEAL_ELEMENT_ERROR_STATE},INVALID_FILE_TYPE:{code:400,description:h.errorLogs.INVALID_FILE_TYPE},INVALID_FILE_SIZE:{code:400,description:h.errorLogs.INVALID_FILE_SIZE},NO_FILE_SELECTED:{code:400,description:h.errorLogs.NO_FILE_SELECTED},INVALID_TABLE_IN_UPSERT_OPTION:{code:400,description:h.errorLogs.INVALID_TABLE_IN_UPSERT_OPTION},INVALID_COLUMN_IN_UPSERT_OPTION:{code:400,description:h.errorLogs.INVALID_COLUMN_IN_UPSERT_OPTION},INVALID_UPSERT_OPTION_TYPE:{code:400,description:h.errorLogs.INVALID_UPSERT_OPTION_TYPE},EMPTY_UPSERT_OPTIONS_ARRAY:{code:400,description:h.errorLogs.EMPTY_UPSERT_OPTIONS_ARRAY},INVALID_UPSERT_OPTION_OBJECT_TYPE:{code:400,description:h.errorLogs.INVALID_UPSERT_OPTION_OBJECT_TYPE},MISSING_TABLE_IN_UPSERT_OPTION:{code:400,description:h.errorLogs.MISSING_TABLE_IN_UPSERT_OPTION},MISSING_COLUMN_IN_UPSERT_OPTION:{code:400,description:h.errorLogs.MISSING_COLUMN_IN_UPSERT_OPTION},INVALID_RECORD_COLUMN_VALUE_TYPE:{code:400,description:h.errorLogs.INVALID_RECORD_COLUMN_VALUE_TYPE},INVALID_COLUMN_VALUES_TYPE:{code:400,description:h.errorLogs.INVALID_COLUMN_VALUES_TYPE},EMPTY_RECORD_COLUMN_VALUES:{code:400,description:h.errorLogs.EMPTY_RECORD_COLUMN_VALUES},EMPTY_COLUMN_VALUE:{code:400,description:h.errorLogs.EMPTY_COLUMN_VALUE},MISSING_IDS_OR_COLUMN_VALUES_IN_GET:{code:400,description:h.errorLogs.MISSING_IDS_OR_COLUMN_VALUES_IN_GET},SKYFLOW_IDS_AND_COLUMN_NAME_BOTH_SPECIFIED:{code:400,description:h.errorLogs.SKYFLOW_IDS_AND_COLUMN_NAME_BOTH_SPECIFIED},SKYFLOW_IDS_AND_TOKEN_BOTH_SPECIFIED:{code:400,description:h.errorLogs.SKYFLOW_IDS_AND_TOKEN_BOTH_SPECIFIED},MISSING_TABLE_KEY_REVEAL:{code:400,description:h.errorLogs.MISSING_TABLE_KEY_REVEAL},MISSING_COLUMN_KEY_REVEAL:{code:400,description:h.errorLogs.MISSING_COLUMN_KEY_REVEAL},INVALID_SKYFLOW_ID_REVEAL:{code:400,description:h.errorLogs.INVALID_SKYFLOW_ID_REVEAL},INVALID_TABLE_REVEAL:{code:400,description:h.errorLogs.INVALID_TABLE_REVEAL},INVALID_COLUMN_NAME_REVEAL:{code:400,description:h.errorLogs.INVALID_COLUMN_NAME_REVEAL},EMPTY_SKYFLOW_ID_REVEAL:{code:400,description:h.errorLogs.EMPTY_SKYFLOW_ID_REVEAL},EMPTY_TABLE_REVEAL:{code:400,description:h.errorLogs.EMPTY_TABLE_REVEAL},EMPTY_COLUMN_NAME_REVEAL:{code:400,description:h.errorLogs.EMPTY_COLUMN_NAME_REVEAL},RECORDS_KEY_NOT_FOUND_GETBYID:{code:400,description:h.errorLogs.RECORDS_KEY_NOT_FOUND_GETBYID},INVALID_RECORDS_IN_GETBYID:{code:400,description:h.errorLogs.INVALID_RECORDS_IN_GETBYID},EMPTY_RECORDS_GETBYID:{code:400,description:h.errorLogs.EMPTY_RECORDS_GETBYID},MISSING_IDS_IN_GETBYID:{code:400,description:h.errorLogs.MISSING_IDS_IN_GETBYID},INVALID_IDS_IN_GETBYID:{code:400,description:h.errorLogs.INVALID_IDS_IN_GETBYID},EMPTY_IDS_IN_GETBYID:{code:400,description:h.errorLogs.EMPTY_IDS_IN_GETBYID},INVALID_SKYFLOWID_TYPE_IN_GETBYID:{code:400,description:h.errorLogs.INVALID_SKYFLOWID_TYPE_IN_GETBYID},MISSING_TABLE_IN_GETBYID:{code:400,description:h.errorLogs.MISSING_TABLE_IN_GETBYID},INVALID_TABLE_IN_GETBYID:{code:400,description:h.errorLogs.INVALID_TABLE_IN_GETBYID},MISSING_REDACTION_IN_GETBYID:{code:400,description:h.errorLogs.MISSING_REDACTION_IN_GETBYID},INVALID_REDACTION_TYPE_IN_GETBYID:{code:400,description:h.errorLogs.INVALID_REDACTION_TYPE_IN_GETBYID},EMPTY_SKYFLOWID_IN_GETBYID:{code:400,description:h.errorLogs.EMPTY_SKYFLOWID_IN_GETBYID},EMPTY_TABLE_IN_GETBYID:{code:400,description:h.errorLogs.EMPTY_TABLE_IN_GETBYID},EMPTY_REDACTION_TYPE_IN_GETBYID:{code:400,description:h.errorLogs.EMPTY_REDACTION_TYPE_IN_GETBYID},MISSING_COMPOSABLE_LAYOUT_KEY:{code:400,description:h.errorLogs.MISSING_COMPOSABLE_LAYOUT_KEY},EMPTY_COMPOSABLE_LAYOUT_ARRAY:{code:400,description:h.errorLogs.EMPTY_COMPOSABLE_LAYOUT_ARRAY},INVALID_COMPOSABLE_LAYOUT_TYPE:{code:400,description:h.errorLogs.INVALID_COMPOSABLE_LAYOUT_TYPE},NEGATIVE_VALUES_COMPOSABLE_LAYOUT:{code:400,description:h.errorLogs.NEGATIVE_VALUES_COMPOSABLE_LAYOUT},MISMATCH_ELEMENT_COUNT_LAYOUT_SUM:{code:400,description:h.errorLogs.MISMATCH_ELEMENT_COUNT_LAYOUT_SUM},MISSING_COMPOSABLE_CONTAINER_OPTIONS:{code:400,description:h.errorLogs.MISSING_COMPOSABLE_CONTAINER_OPTIONS},INVALID_COMPOSABLE_CONTAINER_OPTIONS:{code:400,description:h.errorLogs.INVALID_COMPOSABLE_CONTAINER_OPTIONS},COMPOSABLE_CONTAINER_NOT_MOUNTED:{code:400,description:h.errorLogs.COMPOSABLE_CONTAINER_NOT_MOUNTED},INVALID_BOOLEAN_OPTIONS:{code:400,description:h.errorLogs.INVALID_BOOLEAN_OPTIONS},EMPTY_COLLECT_CUSTOM_FORMAT:{code:400,description:h.errorLogs.EMPTY_COLLECT_CUSTOM_FORMAT},INVALID_INPUT_OPTIONS_FORMAT:{code:400,description:h.errorLogs.INVALID_INPUT_OPTIONS_FORMAT},INVALID_INPUT_OPTIONS_TRANSLATION:{code:400,description:h.errorLogs.INVALID_INPUT_OPTIONS_TRANSLATION},INVALID_OPTION_CARD_METADATA:{code:400,description:h.errorLogs.INVALID_OPTION_CARD_METADATA},INVALID_OPTION_CARD_SCHEME:{code:400,description:h.errorLogs.INVALID_OPTION_CARD_SCHEME}};function Ce(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],l=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(e,t)||Ie(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var ke=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(/[\s-]/g,""),t=ne.DEFAULT;return Object.entries(pe).forEach((function(n){var r=Ce(n,2),o=r[0];r[1].regex.test(e)&&(t=o)})),t},Ve=function(t,n){if(!t||!Object.prototype.hasOwnProperty.call(t,"records"))throw new dt(Pe.RECORDS_KEY_NOT_FOUND,[],!0);var r=t.records;if(!r||!Array.isArray(r))throw new dt(Pe.INVALID_RECORDS_IN_INSERT,[],!0);if(0===r.length)throw new dt(Pe.EMPTY_RECORDS_IN_INSERT,[],!0);if(r.forEach((function(t,n){if(!t||!Object.prototype.hasOwnProperty.call(t,"table"))throw new dt(Pe.MISSING_TABLE_IN_INSERT,["".concat(n)],!0);if(!t.table)throw new dt(Pe.EMPTY_TABLE_IN_INSERT,["".concat(n)],!0);if(!("string"==typeof t.table||t.table instanceof String))throw new dt(Pe.INVALID_TABLE_IN_INSERT,["".concat(n)],!0);if(!Object.prototype.hasOwnProperty.call(t,"fields"))throw new dt(Pe.MISSING_FIELDS_IN_INSERT,["".concat(n)],!0);if(!t.fields)throw new dt(Pe.EMPTY_FIELDS_IN_INSERT,["".concat(n)],!0);if("object"!==e(t.fields)||Array.isArray(t.fields))throw new dt(Pe.INVALID_FIELDS_IN_INSERT,["".concat(n)],!0)})),n&&n.tokens&&"boolean"!=typeof n.tokens)throw new dt(Pe.INVALID_TOKENS_IN_INSERT,[],!0)},Ue=function(t){if(!t||!Object.prototype.hasOwnProperty.call(t,"records"))throw new dt(Pe.RECORDS_KEY_NOT_FOUND_IN_ADDITIONAL_FIELDS,[],!0);var n=t.records;if(!n||!Array.isArray(n))throw new dt(Pe.INVALID_RECORDS_IN_ADDITIONAL_FIELDS,[],!0);if(0===n.length)throw new dt(Pe.EMPTY_RECORDS_IN_ADDITIONAL_FIELDS,[],!0);n.forEach((function(t,n){var r;if(!t||!Object.prototype.hasOwnProperty.call(t,"table"))throw new dt(Pe.MISSING_TABLE_IN_ADDITIONAL_FIELDS,["".concat(n)],!0);if(!t.table)throw new dt(Pe.EMPTY_TABLE_IN_ADDITIONAL_FIELDS,["".concat(n)],!0);if(void 0!==(null===(r=t.fields)||void 0===r?void 0:r.skyflowID)){var o,i,a;if(null===(o=t.fields)||void 0===o||!o.skyflowID)throw new dt(Pe.EMPTY_SKYFLOW_ID_IN_ADDITIONAL_FIELDS,["".concat(n)],!0);if(!("string"==typeof(null===(i=t.fields)||void 0===i?void 0:i.skyflowID)||(null===(a=t.fields)||void 0===a?void 0:a.skyflowID)instanceof String))throw new dt(Pe.INVALID_SKYFLOW_ID_IN_ADDITIONAL_FIELDS,["".concat(n)],!0)}if(!("string"==typeof t.table||t.table instanceof String))throw new dt(Pe.INVALID_TABLE_IN_ADDITIONAL_FIELDS,["".concat(n)],!0);if(!Object.prototype.hasOwnProperty.call(t,"fields"))throw new dt(Pe.MISSING_FIELDS_IN_ADDITIONAL_FIELDS,["".concat(n)],!0);if(!t.fields)throw new dt(Pe.EMPTY_FIELDS_IN_ADDITIONAL_FIELDS,["".concat(n)],!0);if("object"!==e(t.fields)||Array.isArray(t.fields))throw new dt(Pe.INVALID_FIELDS_IN_ADDITIONAL_FIELDS,["".concat(n)],!0)}))},je=function(e){if(!e||!Object.prototype.hasOwnProperty.call(e,"records"))throw new dt(Pe.RECORDS_KEY_NOT_FOUND_DETOKENIZE,[]);var t=e.records;if(!t||!Array.isArray(t))throw new dt(Pe.INVALID_RECORDS_IN_DETOKENIZE,[]);if(0===t.length)throw new dt(Pe.EMPTY_RECORDS_DETOKENIZE,[]);t.forEach((function(e,t){if(!e||!Object.prototype.hasOwnProperty.call(e,"token"))throw new dt(Pe.MISSING_TOKEN_IN_DETOKENIZE,["".concat(t)]);if(!e.token)throw new dt(Pe.EMPTY_TOKEN_IN_DETOKENIZE,["".concat(t)]);if(!("string"==typeof e.token||e.token instanceof String))throw new dt(Pe.INVALID_TOKEN_IN_DETOKENIZE,["".concat(t)]);var n=e.redaction;if(n&&!Object.values(Re).includes(n))throw new dt(Pe.INVALID_REDACTION_TYPE_IN_DETOKENIZE,["".concat(t)])}))},Ye=function(e,t){if(!e||!Object.prototype.hasOwnProperty.call(e,"records"))throw new dt(Pe.RECORDS_KEY_NOT_FOUND_GET,[]);var n=e.records;if(!n||!Array.isArray(n))throw new dt(Pe.INVALID_RECORDS_IN_GET,[]);if(0===n.length)throw new dt(Pe.EMPTY_RECORDS_GET,[]);if(t&&Object.prototype.hasOwnProperty.call(t,"tokens")&&"boolean"!=typeof(null==t?void 0:t.tokens))throw new dt(Pe.INVALID_TOKENS_IN_GET,[]);n.forEach((function(e,n){var r,o,i;if(0===Object.keys(e).length)throw new dt(Pe.EMPTY_RECORDS_GET,[]);if(0===(null===(r=e.ids)||void 0===r?void 0:r.length))throw new dt(Pe.EMPTY_IDS_IN_GET,["".concat(n)]);if(!(null==e.ids||e.ids&&Array.isArray(e.ids)))throw new dt(Pe.INVALID_IDS_IN_GET,["".concat(n)]);if(null===(o=e.ids)||void 0===o||o.forEach((function(e){if(!e)throw new dt(Pe.EMPTY_SKYFLOWID_IN_GET,["".concat(n)]);if(!("string"==typeof e||e instanceof String))throw new dt(Pe.INVALID_SKYFLOWID_TYPE_IN_GET,["".concat(n)])})),!Object.prototype.hasOwnProperty.call(e,"table"))throw new dt(Pe.MISSING_TABLE_IN_GET,["".concat(n)]);if(!e.table)throw new dt(Pe.EMPTY_TABLE_IN_GET,["".concat(n)]);if(!("string"==typeof e.table||e.table instanceof String))throw new dt(Pe.INVALID_TABLE_IN_GET,["".concat(n)]);if(!t||!Object.prototype.hasOwnProperty.call(t,"tokens")||!0!==(null==t?void 0:t.tokens)){if(!Object.prototype.hasOwnProperty.call(e,"redaction"))throw new dt(Pe.MISSING_REDACTION_IN_GET,["".concat(n)]);if(!e.redaction)throw new dt(Pe.EMPTY_REDACTION_TYPE_IN_GET,["".concat(n)]);if(!Object.values(Re).includes(e.redaction))throw new dt(Pe.INVALID_REDACTION_TYPE_IN_GET,["".concat(n)])}if(!0===Object.prototype.hasOwnProperty.call(e,"ids")&&!0===Object.prototype.hasOwnProperty.call(e,"columnName"))throw new dt(Pe.SKYFLOW_IDS_AND_COLUMN_NAME_BOTH_SPECIFIED,["".concat(n)]);if(Object.prototype.hasOwnProperty.call(e,"columnName")){if(!Object.prototype.hasOwnProperty.call(e,"columnName")||!Object.prototype.hasOwnProperty.call(e,"columnValues"))throw new dt(Pe.MISSING_RECORD_COLUMN_VALUE,["".concat(n)])}else if(!1===Object.prototype.hasOwnProperty.call(e,"ids")&&!1===Object.prototype.hasOwnProperty.call(e,"columnValues"))throw new dt(Pe.MISSING_IDS_OR_COLUMN_VALUES_IN_GET,["".concat(n)]);if(0===(null===(i=e.columnValues)||void 0===i?void 0:i.length))throw new dt(Pe.EMPTY_RECORD_COLUMN_VALUES,["".concat(n)]);if(!(null==e.columnValues||e.columnValues&&Array.isArray(e.columnValues)))throw new dt(Pe.INVALID_COLUMN_VALUES_IN_GET,["".concat(n)]);if(void 0!==e.columnName&&void 0===e.columnValues)throw new dt(Pe.MISSING_RECORD_COLUMN_VALUE,["".concat(n)]);if(void 0===e.columnName&&void 0!==e.columnValues)throw new dt(Pe.MISSING_RECORD_COLUMN_NAME,["".concat(n)]);var a=e.columnName;if(null!=a&&"string"!=typeof a)throw new dt(Pe.INVALID_RECORD_COLUMN_VALUE,["".concat(n)]);var c=e.columnValues;if(null!=c){if(0===c.length||null===c)throw new dt(Pe.EMPTY_RECORD_COLUMN_VALUES,["".concat(n)]);c.forEach((function(e){if(""===e||null===e)throw new dt(Pe.EMPTY_COLUMN_VALUE,["".concat(n)]);if("string"!=typeof e)throw new dt(Pe.INVALID_RECORD_COLUMN_VALUE_TYPE,["".concat(n)])}))}if(t&&Object.prototype.hasOwnProperty.call(t,"tokens")&&!0===(null==t?void 0:t.tokens)){if(a||c)throw new dt(Pe.TOKENS_GET_COLUMN_NOT_SUPPORTED,[]);if(e.redaction)throw new dt(Pe.REDACTION_WITH_TOKENS_NOT_SUPPORTED,[])}}))},Fe=function(e){if(!e||!Object.prototype.hasOwnProperty.call(e,"records"))throw new dt(Pe.RECORDS_KEY_NOT_FOUND_GETBYID,[]);var t=e.records;if(!t||!Array.isArray(t))throw new dt(Pe.INVALID_RECORDS_IN_GETBYID,[]);if(0===t.length)throw new dt(Pe.EMPTY_RECORDS_GETBYID,[]);t.forEach((function(e,t){if(!e||!Object.prototype.hasOwnProperty.call(e,"ids"))throw new dt(Pe.MISSING_IDS_IN_GETBYID,["".concat(t)]);if(!e.ids||!Array.isArray(e.ids))throw new dt(Pe.INVALID_IDS_IN_GETBYID,["".concat(t)]);if(0===e.ids.length)throw new dt(Pe.EMPTY_IDS_IN_GETBYID,["".concat(t)]);if(e.ids.forEach((function(e){if(!e)throw new dt(Pe.EMPTY_SKYFLOWID_IN_GETBYID,["".concat(t)]);if(!("string"==typeof e||e instanceof String))throw new dt(Pe.INVALID_SKYFLOWID_TYPE_IN_GETBYID,["".concat(t)])})),!Object.prototype.hasOwnProperty.call(e,"table"))throw new dt(Pe.MISSING_TABLE_IN_GETBYID,["".concat(t)]);if(!e.table)throw new dt(Pe.EMPTY_TABLE_IN_GETBYID,["".concat(t)]);if(!("string"==typeof e.table||e.table instanceof String))throw new dt(Pe.INVALID_TABLE_IN_GETBYID,["".concat(t)]);if(!Object.prototype.hasOwnProperty.call(e,"redaction"))throw new dt(Pe.MISSING_REDACTION_IN_GETBYID,["".concat(t)]);if(!e.redaction)throw new dt(Pe.EMPTY_REDACTION_TYPE_IN_GETBYID,["".concat(t)]);if(!Object.values(Re).includes(e.redaction))throw new dt(Pe.INVALID_REDACTION_TYPE_IN_GETBYID,["".concat(t)])}))},Ge=function(e,t){if(!e||!Object.prototype.hasOwnProperty.call(e,"records"))throw new dt(Pe.RECORDS_KEY_NOT_FOUND_DELETE,[],!0);var n=e.records;if(!n||!Array.isArray(n))throw new dt(Pe.INVALID_RECORDS_IN_DELETE,[],!0);if(0===n.length)throw new dt(Pe.EMPTY_RECORDS_IN_DELETE,[],!0);n.forEach((function(e,t){if(!e||!Object.prototype.hasOwnProperty.call(e,"table"))throw new dt(Pe.MISSING_TABLE_IN_DELETE,["".concat(t)],!0);if(!e.table)throw new dt(Pe.EMPTY_TABLE_IN_DELETE,["".concat(t)],!0);if(!("string"==typeof e.table||e.table instanceof String))throw new dt(Pe.INVALID_TABLE_IN_DELETE,["".concat(t)],!0);if(!Object.prototype.hasOwnProperty.call(e,"id"))throw new dt(Pe.MISSING_ID_IN_DELETE,["".concat(t)],!0);if(!e.id)throw new dt(Pe.EMPTY_ID_IN_DELETE,["".concat(t)],!0);if(!("string"==typeof e.id||e.id instanceof String))throw new dt(Pe.INVALID_ID_IN_DELETE,["".concat(t)],!0)}))},Be=function(e){if(0===e.length)throw new dt(Pe.EMPTY_RECORDS_REVEAL,[]);e.forEach((function(e){if(!e||!Object.prototype.hasOwnProperty.call(e,"skyflowID")){if(!e||!Object.prototype.hasOwnProperty.call(e,"token"))throw new dt(Pe.MISSING_TOKEN_KEY_REVEAL,[]);if(!e.token)throw new dt(Pe.EMPTY_TOKEN_ID_REVEAL,[]);if(!("string"==typeof e.token||e.token instanceof String))throw new dt(Pe.INVALID_TOKEN_ID_REVEAL,[])}var t=e.redaction;if(t&&!Object.values(Re).includes(t))throw new dt(Pe.INVALID_REDACTION_TYPE_REVEAL,[]);if(Object.prototype.hasOwnProperty.call(e,"label")&&"string"!=typeof e.label)throw new dt(Pe.INVALID_LABEL_REVEAL,[]);if(Object.prototype.hasOwnProperty.call(e,"altText")&&"string"!=typeof e.altText)throw new dt(Pe.INVALID_ALT_TEXT_REVEAL,[]);if(Object.prototype.hasOwnProperty.call(e,"format")&&"string"!=typeof e.format)throw new dt(Pe.INVALID_FORMAT_REVEAL,[]);if(Object.prototype.hasOwnProperty.call(e,"format")&&""===e.format)throw new dt(Pe.EMPTY_FORMAT_REVEAL,[])}))},Xe=function(e){if(!e||!Object.prototype.hasOwnProperty.call(e,"skyflowID"))throw new dt(Pe.MISSING_SKYFLOWID_KEY_REVEAL,[]);if(!e.skyflowID)throw new dt(Pe.EMPTY_SKYFLOW_ID_REVEAL,[]);if(Object.prototype.hasOwnProperty.call(e,"skyflowID")&&"string"!=typeof e.skyflowID)throw new dt(Pe.INVALID_SKYFLOW_ID_REVEAL,[]);if(Object.prototype.hasOwnProperty.call(e,"skyflowID")&&Object.prototype.hasOwnProperty.call(e,"token"))throw new dt(Pe.SKYFLOW_IDS_AND_TOKEN_BOTH_SPECIFIED,[]);if(!e||!Object.prototype.hasOwnProperty.call(e,"column"))throw new dt(Pe.MISSING_COLUMN_KEY_REVEAL,[]);if(!e.column)throw new dt(Pe.EMPTY_COLUMN_NAME_REVEAL,[]);if(Object.prototype.hasOwnProperty.call(e,"column")&&"string"!=typeof e.column)throw new dt(Pe.INVALID_COLUMN_NAME_REVEAL,[]);if(!e||!Object.prototype.hasOwnProperty.call(e,"table"))throw new dt(Pe.MISSING_TABLE_KEY_REVEAL,[]);if(!e.table)throw new dt(Pe.EMPTY_TABLE_REVEAL,[]);if(Object.prototype.hasOwnProperty.call(e,"table")&&"string"!=typeof e.table)throw new dt(Pe.INVALID_TABLE_REVEAL,[]);if(Object.prototype.hasOwnProperty.call(e,"altText")&&"string"!=typeof e.altText)throw new dt(Pe.INVALID_ALT_TEXT_RENDER,[])},Ke=function(e){if(!e||"https"!==e.substring(0,5).toLowerCase())return!1;try{if(new URL(e))return!0}catch(e){return!1}return!0},We=function(e){var t=!0;try{new RegExp(e)}catch(e){t=!1}return t},qe=function(e){if(!Object.prototype.hasOwnProperty.call(e,"vaultID"))throw new dt(Pe.VAULTID_IS_REQUIRED,[],!0);if(!e.vaultID)throw new dt(Pe.EMPTY_VAULTID_IN_INIT,[],!0);if(!Object.prototype.hasOwnProperty.call(e,"vaultURL"))throw new dt(Pe.VAULTURL_IS_REQUIRED,[],!0);if(!e.vaultURL)throw new dt(Pe.EMPTY_VAULTURL_IN_INIT,[],!0);if(e.vaultURL&&!Ke(e.vaultURL))throw new dt(Pe.INVALID_VAULTURL_IN_INIT,[],!0);if(!Object.prototype.hasOwnProperty.call(e,"getBearerToken"))throw new dt(Pe.GET_BEARER_TOKEN_IS_REQUIRED,[],!0)},ze=function(e,t){if(!Object.prototype.hasOwnProperty.call(e,"type"))throw new dt(Pe.MISSING_ELEMENT_TYPE,[],!0);if(!e.type)throw new dt(Pe.EMPTY_ELEMENT_TYPE,[],!0);if(Object.prototype.hasOwnProperty.call(e,"altText")&&st(h.warnLogs.COLLECT_ALT_TEXT_DEPERECATED,xe.WARN,t),Object.prototype.hasOwnProperty.call(e,"skyflowID")&&"string"!=typeof e.skyflowID)throw new dt(Pe.INVALID_SKYFLOWID_IN_COLLECT,[],!0);if(e.type===te.FILE_INPUT&&!Object.keys(e).includes("skyflowID"))throw new dt(Pe.MISSING_SKYFLOWID_IN_COLLECT,[],!0)},He=function(t){if(!t||!Array.isArray(t))throw new dt(Pe.INVALID_UPSERT_OPTION_TYPE,[],!0);if(!t.length)throw new dt(Pe.EMPTY_UPSERT_OPTIONS_ARRAY,[],!0);t.forEach((function(t,n){if(!t||"object"!==e(t))throw new dt(Pe.INVALID_UPSERT_OPTION_OBJECT_TYPE,[n],!0);if(!Object.prototype.hasOwnProperty.call(t,"table"))throw new dt(Pe.MISSING_TABLE_IN_UPSERT_OPTION,[n],!0);if(!t.table||"string"!=typeof t.table||!t.table.length)throw new dt(Pe.INVALID_TABLE_IN_UPSERT_OPTION,[n],!0);if(!Object.prototype.hasOwnProperty.call(t,"column"))throw new dt(Pe.MISSING_COLUMN_IN_UPSERT_OPTION,[n],!0);if(!t.column||"string"!=typeof t.column||!t.column.length)throw new dt(Pe.INVALID_COLUMN_IN_UPSERT_OPTION,[n],!0)}))},Je=function(e){return"boolean"==typeof e},Qe=function(t){if(t){if(Object.prototype.hasOwnProperty.call(t,"format")&&"string"!=typeof t.format)throw new dt(Pe.INVALID_INPUT_OPTIONS_FORMAT,[],!0);if(Object.prototype.hasOwnProperty.call(t,"translation")&&("object"!==e(t.translation)||"[object Object]"!==Object.prototype.toString.call(t.translation)))throw new dt(Pe.INVALID_INPUT_OPTIONS_TRANSLATION,[],!0)}};const Ze={IFRAME_SECURE_SITE:"https://js.skyflow.com/v1/elements/index.html",IFRAME_SECURE_ORGIN:"https://js.skyflow.com"},$e=JSON.parse('{"name":"skyflow-js","preferGlobal":true,"analyze":false,"version":"1.38.0","author":"Skyflow","description":"Skyflow JavaScript SDK","homepage":"https://github.com/skyflowapi/skyflow-js","main":"./dist/sdkNodeBuild/index.js","types":"./types/index-node.d.ts","files":["dist/sdkNodeBuild","types"],"license":"MIT","keywords":["client","sdk","javascript"],"scripts":{"type-check":"tsc --noEmit","type-check:watch":"npm run type-check -- --watch","build:types":"tsc --emitDeclarationOnly","dev":"webpack serve --config=webpack.dev.js --open --hot ","build-browser-sdk":"webpack --config=webpack.skyflow-browser.js","build-node-sdk":"webpack --config=webpack.skyflow-node.js","build-iframe":"webpack --config=webpack.iframe.js","test":"jest --config=jest.config.json"},"repository":{"type":"git","url":"https://github.com/skyflowapi/skyflow-js.git"},"dependencies":{"core-js":"^3.6.5","framebus":"^4.0.0","inject-stylesheet":"^2.0.0","jquery":"^3.5.1","jquery-mask-plugin":"^1.14.16","jss":"^10.7.1","jss-preset-default":"^10.7.1","jwt-decode":"^3.1.2","lodash":"^4.17.21","mime":"3.0.0","regex-parser":"^2.2.11","set-value":"^4.0.1"},"engines":{"node":">=12.0","npm":">=6.0"},"devDependencies":{"@babel/core":"^7.23.2","@babel/plugin-proposal-class-properties":"^7.10.1","@babel/plugin-proposal-decorators":"^7.10.1","@babel/plugin-proposal-object-rest-spread":"^7.10.1","@babel/plugin-transform-runtime":"^7.10.1","@babel/preset-env":"^7.9.6","@babel/preset-typescript":"^7.10.1","@babel/runtime":"^7.10.2","@types/jest":"^27.0.1","@types/jquery-mask-plugin":"^1.14.3","@types/mime":"^3.0.4","@types/node":"^14.0.5","@typescript-eslint/eslint-plugin":"^4.31.2","@typescript-eslint/parser":"^4.31.2","babel-loader":"^9.1.2","clean-webpack-plugin":"^4.0.0-alpha.0","compression-webpack-plugin":"^8.0.1","eslint":"^7.32.0","eslint-config-airbnb-base":"^14.2.1","eslint-config-airbnb-typescript":"^14.0.0","eslint-plugin-import":"^2.26.0","fork-ts-checker-webpack-plugin":"^6.3.2","html-webpack-plugin":"^5.5.0","jest":"^27.2.1","node-polyfill-webpack-plugin":"^2.0.1","typescript":"^4.6.3","webpack":"^5.88.2","webpack-bundle-analyzer":"^4.4.2","webpack-cli":"^4.8.0","webpack-dev-server":"^4.7.4","webpack-manifest-plugin":"^4.0.2","webpack-merge":"^5.8.0"}}');function et(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?et(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):et(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}n(3893).getType;function nt(e){var t=e.split(":");return t.length>2?"".concat(t[0],":").concat(t[1],":").concat(t[2]):""}function rt(e,t,n){var r,o,i,a,c,l,s={sdkName:e.name,sdkVersion:e.version},p=function(e,t){return e&&""!==e?"".concat(e):"".concat(t.sdkName,"@").concat(t.sdkVersion)}(null==t?void 0:t.sdkVersion,s),u=function(e){var t,n,r=null,o=null;if(/Windows/.test(e))r="Windows",o=null!==(t=null===(n=/Windows NT (\d+\.\d+)/.exec(e))||void 0===n?void 0:n[1])&&void 0!==t?t:null;else if(/Android/.test(e)){var i,a;r="Android",o=null!==(i=null===(a=/Android (\d+\.\d+)/.exec(e))||void 0===a?void 0:a[1])&&void 0!==i?i:null}else if(/iOS/.test(e)||/iPhone/.test(e)){var c,l;r="iOS",o=null!==(c=null===(l=/OS (\d+[._]\d+[._]?\d*)/.exec(e))||void 0===l||null===(l=l[1])||void 0===l?void 0:l.replace(/_/g,"."))&&void 0!==c?c:null}else if(/Mac OS X/.test(e)){var s,p;r="Mac OS X",o=null!==(s=null===(p=/Mac OS X (\d+([._]\d+)*)/.exec(e))||void 0===p||null===(p=p[1])||void 0===p?void 0:p.replace(/_/g,"."))&&void 0!==s?s:null}else if(/Linux/.test(e)){var u,E;r="Linux",o=null!==(u=null===(E=/Linux( \w+)*?\/([\w.]+)/.exec(e))||void 0===E?void 0:E[2])&&void 0!==u?u:null}return{os:r,version:o}}(n.userAgent),E=function(e){var t="",n="";if(-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")){t="Internet Explorer";var r=e.match(/(MSIE|rv:)\s?([\d.]+)/);r&&(n=r[2])}else if(-1!==e.indexOf("Edge")){t="Microsoft Edge";var o=e.match(/Edge\/([\d.]+)/);o&&(n=o[1])}else if(-1!==e.indexOf("Chrome")){t="Google Chrome";var i=e.match(/Chrome\/([\d.]+)/);i&&(n=i[1])}else if(-1!==e.indexOf("Firefox")){t="Mozilla Firefox";var a=e.match(/Firefox\/([\d.]+)/);a&&(n=a[1])}else if(-1!==e.indexOf("Safari")){t="Apple Safari";var c=e.match(/Version\/([\d.]+)/);c&&(n=c[1])}return{browserName:t,browserVersion:n}}(n.userAgent);return{sdk_name_version:p,sdk_client_device_model:(l=n.userAgent,/(ipad|tablet)/gi.test(l)?"tablet":/Mobile|iP(hone|od)|Android|BlackBerry|IEMobile/.test(l)?"mobile":"desktop"),sdk_os_version:null!==(r=n.platform)&&void 0!==r?r:"".concat(null!==(o=u.os)&&void 0!==o?o:""," ").concat(null!==(i=u.version)&&void 0!==i?i:""),sdk_runtime_details:"".concat(null!==(a=E.browserName)&&void 0!==a?a:""," ").concat(null!==(c=E.browserVersion)&&void 0!==c?c:"")}}var ot=function(){var e=function(e){var t={sdkName:$e.name,sdkVersion:$e.version};return e&&""!==e&&e.split("@").length>1&&(t.sdkName=e.split("@")[0],t.sdkVersion=e.split("@")[1]),t}(localStorage.getItem("sdk_version")||""),t="skyflow-js"===e.sdkName?"JS":"React";return{sdkLanguageAndVersion:"".concat(t," SDK v").concat(e.sdkVersion),sdkOwner:"Skyflow"}},it=n(5108),at={DEBUG:{showDebugLogs:!0,showInfoLogs:!0,showWarnLogs:!0,showErrorLogs:!0},INFO:{showDebugLogs:!1,showInfoLogs:!0,showWarnLogs:!0,showErrorLogs:!0},WARN:{showDebugLogs:!1,showInfoLogs:!1,showWarnLogs:!0,showErrorLogs:!0},ERROR:{showDebugLogs:!1,showInfoLogs:!1,showWarnLogs:!1,showErrorLogs:!0}},ct={PROD:{doesReturnValue:!1},DEV:{doesReturnValue:!0}},lt="[Skyflow]",st=function(e,t,n){var r=ot(),o=r.sdkLanguageAndVersion,i=r.sdkOwner;if(n&&at[n]){var a=at[n],c=a.showDebugLogs,l=a.showInfoLogs,s=a.showWarnLogs,p=a.showErrorLogs;t===xe.LOG&&c?it.log("".concat(we.DEBUG,": ").concat(lt," ").concat(e)):t===xe.LOG&&l?it.log("".concat(we.INFO,": ").concat(lt," ").concat(e)):t===xe.WARN&&s?it.warn("".concat(we.WARN,": ").concat(lt," ").concat(e)):t===xe.ERROR&&p&&it.error("".concat(we.ERROR,": ").concat(i," ").concat(o," ").concat(e))}},pt=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t.filter((function(e,t){return 0!==t}));return r?r.replace(/%s[0-9]+/g,(function(e){var t=e.replace("%s","")-1;return o[t]})):""},ut=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split(":");if("group"===e[1])return"composable container";var t=atob(e[2]);return-1!==t.indexOf(":")&&(t=t.substring(0,t.indexOf(":"))),t};function Et(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ge(e);if(t){var o=ge(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Le(this,n)}}var dt=function(e){Ne(n,e);var t=Et(n);function n(e,r){var a,c=arguments.length>2&&void 0!==arguments[2]&&arguments[2];i(this,n);var l={code:e.code,description:r&&(null==r?void 0:r.length)>0?pt.apply(void 0,[e.description].concat(ye(r))):e.description};return o(Te(a=t.call(this,l.description)),"error",void 0),o(Te(a),"errors",void 0),c?a.error=l:a.errors=[l],a}return c(n)}(Ae(Error));function ft(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _t(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var mt=new WeakMap,vt=function(){function e(t,n){var r=this;i(this,e),o(this,"config",void 0),_t(this,mt,{writable:!0,value:void 0}),o(this,"request",(function(e){return new Promise((function(t,n){var i,a,c=new XMLHttpRequest;if(c){if(c.open(e.requestMethod,e.url),e.headers){var l=rt($e,p(r,mt),navigator);e.headers["sky-metadata"]=JSON.stringify(l);var s=e.headers;Object.keys(e.headers).forEach((function(e){"content-type"===e&&s[e]&&s[e].includes(fe.FORMDATA)||c.setRequestHeader(e,s[e])}))}null!==(i=e.headers)&&void 0!==i&&null!==(i=i["content-type"])&&void 0!==i&&i.includes(fe.FORMURLENCODED)||null!==(a=e.headers)&&void 0!==a&&null!==(a=a["content-type"])&&void 0!==a&&a.includes(fe.FORMDATA)?c.send(e.body):c.send(JSON.stringify(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ft(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ft(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e.body))),c.onload=function(){var e=c.getAllResponseHeaders().trim().split(/[\r\n]+/),r={};e.forEach((function(e){var t=e.split(": "),n=t.shift()||"",o=t.join(": ");r[n]=o}));var o=r["content-type"],i=r["x-request-id"];if(c.status<200||c.status>=400)if(o&&o.includes("application/json")){var a,l,s,p=JSON.parse(c.response);if(null!==(a=p)&&void 0!==a&&null!==(a=a.error)&&void 0!==a&&a.message)p=i?"".concat(null===(l=p)||void 0===l||null===(l=l.error)||void 0===l?void 0:l.message," - requestId: ").concat(i):null===(s=p)||void 0===s||null===(s=s.error)||void 0===s?void 0:s.message;n(new dt({code:c.status,description:p},[],!0))}else o&&o.includes("text/plain")?n(new dt({code:c.status,description:i?"".concat(c.response," - requestId: ").concat(i):c.response},[],!0)):n(new dt({code:c.status,description:i?"".concat(h.errorLogs.ERROR_OCCURED," - requestId: ").concat(i):h.errorLogs.ERROR_OCCURED},[],!0));o&&o.includes("application/json")&&t(JSON.parse(c.response)),t(c.response)},c.onerror=function(){n(new dt(Pe.NETWORK_ERROR,[],!0))}}else n(new dt(Pe.CONNECTION_ERROR,[],!0))}))})),this.config=t,s(this,mt,n)}return c(e,[{key:"toJSON",value:function(){return{config:this.config,metaData:p(this,mt)}}}],[{key:"fromJSON",value:function(t){return new e(t.config,t.metaData)}}]),e}();const It=vt;const yt=function(){function e(){i(this,e),o(this,"events",void 0),this.events={}}return c(e,[{key:"on",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.events[e]?this.events[e].push({priority:n,callback:t}):this.events[e]=[{priority:n,callback:t}]}},{key:"off",value:function(e,t){var n=this.events[e];if(n){var r=n.findIndex((function(e){return e.callback===t}));n.splice(r,1)}}},{key:"_emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=this.events[e];o&&o.forEach((function(e){e.callback.apply(e,n)}))}},{key:"hasListener",value:function(e){var t=this.events[e];return!!t&&t.length>0}},{key:"resetEvents",value:function(){var e=this,t={};Object.keys(this.events).forEach((function(n){var r=e.events[n];if(r&&r.length>0){var o=[];r.forEach((function(e){e.priority&&o.push(e)})),t[n]=o}})),this.events=t}}],[{key:"createChild",value:function(t){t.prototype=Object.create(e.prototype,{constructor:t})}}]),e}();function Tt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ot(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tt(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Nt={src:"about:blank",frameBorder:0,allowtransparency:!0,scrolling:"no",style:"width: 100%;",allow:"clipboard-read; clipboard-write"},Lt=function(e,t){Object.keys(t).forEach((function(n){if(Object.prototype.hasOwnProperty.call(t,n)){var r=t[n];null==r?e.removeAttribute(n):e.setAttribute(n,r)}}))};const gt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=document.createElement("iframe"),n=Ot(Ot({},Nt),e);return Object.assign(t.style,ae),Lt(t,n),t.getAttribute("id")||(t.id=t.name),t};var ht=function(){return Ze.IFRAME_SECURE_SITE},At=function(e,t){Object.keys(t).forEach((function(n){Object.prototype.hasOwnProperty.call(t,n)&&(e.style[n]=t[n])}))};const Rt=c((function e(){i(this,e)}));function bt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function St(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bt(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var wt={records:[]};function Dt(e,t){var n,r,o,i=rt($e,e,navigator),a={element_id:t,element_type:[],div_id:"",container_name:"",container_id:(null==e?void 0:e.uuid)||"",session_id:(null==e?void 0:e.session_id)||"",vault_id:(null==e||null===(n=e.clientJSON)||void 0===n||null===(n=n.config)||void 0===n?void 0:n.vaultID)||"",vault_url:(null==e||null===(r=e.clientJSON)||void 0===r||null===(r=r.config)||void 0===r?void 0:r.vaultURL)||"",events:[],created_at:Date.now(),region:(null===(o=Intl)||void 0===o||null===(o=o.DateTimeFormat())||void 0===o||null===(o=o.resolvedOptions())||void 0===o?void 0:o.timeZone)||"",status:j.STATUS.INITIALIZED,sdk_name_version:i.sdk_name_version,sdk_client_device_model:i.sdk_client_device_model||"",sdk_client_os_details:i.sdk_os_version||"",sdk_runtime_details:i.sdk_runtime_details||""};wt.records.push(a)}function xt(e,t,n){wt.records.forEach((function(r){r.element_id===e&&(t===j.EVENTS_KEY||t===j.ELEMENT_TYPE_KEY?r[t].push(n):t===j.MOUNT_END_TIME&&r.mount_start_time?(r[t]=n,r.latency=n-r.mount_start_time):r[t]=n)}))}function Mt(e){var t=wt.records.filter((function(t){return t.element_id===e}));if(t&&t[0]){var n=t[0];n.status=function(e){var t=e.status;return e.events&&e.events.filter((function(e){return e.includes(U.MOUNTED)})).length>0?t=j.STATUS.SUCCESS:e.events.length>0?t=j.STATUS.PARTIAL_RENDER:(0===e.events.length||e.error)&&(t=j.STATUS.FAILED),t}(n);var r=St(St({},n),{},{time:Math.floor(Date.now()/1e3)});""!==n.vault_id&&""!==n.vault_url&&E().emit(W.PUSH_EVENT+n.container_id,{event:r})}}function Pt(e){setTimeout((function(){Mt(e)}),2e4)}var Ct=n(5108),kt=c((function e(t,n,r,a){var c=this;i(this,e),o(this,"name",void 0),o(this,"metadata",void 0),o(this,"iframe",void 0),o(this,"container",void 0),o(this,"mount",(function(e,t){var n;c.unmount();try{if("string"==typeof e){if(c.container=document.querySelector(e)||void 0,!c.container)throw new dt(Pe.INVALID_ELEMENT_SELECTOR,[],!0)}else{if(!(e instanceof HTMLElement))throw new dt(Pe.INVALID_ELEMENT_SELECTOR,[],!0);c.container=e}}catch(e){Ct.error(e),t&&xt(t,j.ERROR,e.message)}Lt(c.iframe,{src:ht()}),null===(n=c.container)||void 0===n||n.appendChild(c.iframe)})),o(this,"setIframeHeight",(function(e){c.iframe.getAttribute("height")!==e&&c.iframe.setAttribute("height","".concat(e,"px"))})),o(this,"unmount",(function(){c.iframe.remove()}));var l=n.clientDomain||"";this.name="".concat(t,":").concat(r,":").concat(a,":").concat(btoa(l)),this.metadata=n,this.iframe=gt({name:this.name,referrer:l})}));const Vt=c((function e(){i(this,e)}));n(4687);var Ut=function(e,t){return e.fields?{success:{skyflow_id:e.fields.skyflow_id,column:t}}:e};function jt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jt(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ft(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ge(e);if(t){var o=ge(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Le(this,n)}}function Gt(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var Bt="RevealElement",Xt=new WeakMap,Kt=new WeakMap,Wt=new WeakMap,qt=new WeakMap,zt=new WeakMap,Ht=new WeakMap,Jt=new WeakMap,Qt=new WeakMap,Zt=new WeakMap,$t=new WeakMap,en=new WeakMap,tn=new WeakMap,nn=new WeakMap,rn=function(e){Ne(n,e);var t=Ft(n);function n(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2?arguments[2]:void 0,c=arguments.length>3?arguments[3]:void 0,l=arguments.length>4?arguments[4]:void 0,u=arguments.length>5?arguments[5]:void 0;return i(this,n),Gt(Te(r=t.call(this)),Xt,{writable:!0,value:void 0}),Gt(Te(r),Kt,{writable:!0,value:void 0}),Gt(Te(r),Wt,{writable:!0,value:void 0}),Gt(Te(r),qt,{writable:!0,value:void 0}),Gt(Te(r),zt,{writable:!0,value:!1}),Gt(Te(r),Ht,{writable:!0,value:!1}),Gt(Te(r),Jt,{writable:!0,value:void 0}),Gt(Te(r),Qt,{writable:!0,value:void 0}),Gt(Te(r),Zt,{writable:!0,value:!1}),Gt(Te(r),$t,{writable:!0,value:void 0}),Gt(Te(r),en,{writable:!0,value:void 0}),Gt(Te(r),tn,{writable:!0,value:void 0}),Gt(Te(r),nn,{writable:!0,value:void 0}),s(Te(r),Qt,l),s(Te(r),Kt,a),s(Te(r),nn,p(Te(r),Kt).uuid),s(Te(r),Wt,Yt(Yt({},e),function(e){var t={};if(e){if(t=tt({},e),Object.prototype.hasOwnProperty.call(t,"enableCopy")&&!Je(t.enableCopy))throw new dt(Pe.INVALID_BOOLEAN_OPTIONS,["enableCopy"],!0);if(Object.prototype.hasOwnProperty.call(t,"format")||Object.prototype.hasOwnProperty.call(t,"translation")){var n,r,o=[];t.format&&o.push(t.format),o.push(null),t.translation?o.push(t.translation):t.format&&o.push(me),null===(n=t=tt(tt({},t),3===o.length?{mask:o}:{}))||void 0===n||delete n.format,null===(r=t)||void 0===r||delete r.translation}}return t}(o))),s(Te(r),qt,c.containerId),s(Te(r),Zt,c.isMounted),s(Te(r),$t,c.eventEmitter),s(Te(r),Jt,u),Dt(a,l),xt(p(Te(r),Qt),j.ELEMENT_TYPE_KEY,V.REVEAL),xt(p(Te(r),Qt),j.CONTAINER_NAME,V.REVEAL),s(Te(r),Xt,new kt("".concat("reveal",":").concat(btoa(d())),a,p(Te(r),qt),p(Te(r),Jt).logLevel)),s(Te(r),tn,""),s(Te(r),en,!1),p(Te(r),Zt)||p(Te(r),$t).on(ee,(function(e){(null==e?void 0:e.containerId)===p(Te(r),qt)&&s(Te(r),Zt,!0)})),E().on(K.HEIGHT+p(Te(r),Xt).name,(function(e){p(Te(r),Xt).setIframeHeight(e.height)})),r}return c(n,[{key:"getID",value:function(){return p(this,Qt)}},{key:"mount",value:function(e){var t,n,r,o=this;if(!e)throw new dt(Pe.EMPTY_ELEMENT_IN_MOUNT,["RevealElement"],!0);xt(p(this,Qt),j.DIV_ID,e),null!==(t=p(this,Kt))&&void 0!==t&&null!==(t=t.clientJSON)&&void 0!==t&&null!==(t=t.config)&&void 0!==t&&null!==(t=t.options)&&void 0!==t&&t.trackMetrics&&null!==(n=p(this,Kt).clientJSON.config)&&void 0!==n&&null!==(n=n.options)&&void 0!==n&&n.trackingKey&&Pt(p(this,Qt));var i=function e(t,n){t.name===p(o,Xt).name&&(n(Yt(Yt({},p(o,Kt)),{},{record:p(o,Wt),context:p(o,Jt)})),E().off(W.REVEAL_FRAME_READY,e),p(o,Wt).skyflowID?(E().emit(J+p(o,qt),{skyflowID:p(o,Wt).skyflowID,containerId:p(o,qt)}),xt(p(o,Qt),j.MOUNT_END_TIME,Date.now()),xt(p(o,Qt),j.EVENTS_KEY,U.MOUNTED)):(E().emit(J+p(o,qt),{id:p(o,Wt).token,containerId:p(o,qt)}),xt(p(o,Qt),j.MOUNT_END_TIME,Date.now()),xt(p(o,Qt),j.EVENTS_KEY,U.MOUNTED)),s(o,zt,!0),Object.prototype.hasOwnProperty.call(p(o,Wt),"skyflowID")&&E().emit(K.HEIGHT+p(o,Xt).name,{},(function(e){p(o,Xt).setIframeHeight(e.height)})))};if(p(this,Zt))return p(this,Xt).mount(e),E().target(Ze.IFRAME_SECURE_ORGIN).on(W.REVEAL_FRAME_READY,i),xt(p(this,Qt),j.EVENTS_KEY,U.READY),void xt(p(this,Qt),j.MOUNT_START_TIME,Date.now());null===(r=p(this,$t))||void 0===r||r.on(ee,(function(t){(null==t?void 0:t.containerId)===p(o,qt)&&(p(o,Xt).mount(e),E().target(Ze.IFRAME_SECURE_ORGIN).on(W.REVEAL_FRAME_READY,i),xt(p(o,Qt),j.EVENTS_KEY,U.READY),xt(p(o,Qt),j.MOUNT_START_TIME,Date.now()))}))}},{key:"renderFile",value:function(){var e=this,t="";return Object.prototype.hasOwnProperty.call(p(this,Wt),"altText")&&(t=p(this,Wt).altText),this.setAltText("loading..."),p(this,zt)?new Promise((function(n,r){try{p(e,Kt).skyflowContainer.renderFile(p(e,Wt),p(e,Kt),p(e,qt),p(e,Xt).name).then((function(t){st(pt(h.infoLogs.RENDER_SUBMIT_SUCCESS,Bt),xe.LOG,p(e,Jt).logLevel),st(pt(h.infoLogs.FILE_RENDERED,Bt,p(e,Wt).skyflowID),xe.LOG,p(e,Jt).logLevel),n(Ut(t,p(e,Wt).column))}),(function(n){st(pt(h.errorLogs.FAILED_RENDER),xe.ERROR,p(e,Jt).logLevel),Object.prototype.hasOwnProperty.call(p(e,Wt),"altText")&&e.setAltText(t),r(n)}))}catch(t){st("Error: ".concat(t.message),xe.ERROR,p(e,Jt).logLevel),r(t)}})):new Promise((function(n,r){try{E().on(J+p(e,qt),(function(){p(e,Kt).skyflowContainer.renderFile(p(e,Wt),p(e,Kt),p(e,qt),p(e,Xt).name).then((function(t){st(pt(h.infoLogs.RENDER_SUBMIT_SUCCESS,Bt),xe.LOG,p(e,Jt).logLevel),st(pt(h.infoLogs.FILE_RENDERED,Bt,p(e,Wt).skyflowID),xe.LOG,p(e,Jt).logLevel),n(Ut(t,p(e,Wt).column))}),(function(n){st(pt(h.errorLogs.FAILED_RENDER),xe.ERROR,p(e,Jt).logLevel),Object.prototype.hasOwnProperty.call(p(e,Wt),"altText")&&e.setAltText(t),r(n)}))}))}catch(t){st("Error: ".concat(t.message),xe.ERROR,p(e,Jt).logLevel),r(t)}}))}},{key:"iframeName",value:function(){return p(this,Xt).name}},{key:"isMounted",value:function(){return p(this,zt)}},{key:"hasToken",value:function(){return!!p(this,Wt).token}},{key:"isClientSetError",value:function(){return p(this,Ht)}},{key:"getRecordData",value:function(){return p(this,Wt)}},{key:"setErrorOverride",value:function(e){E().emit(W.REVEAL_ELEMENT_SET_ERROR,{name:p(this,Xt).name,isTriggerError:!0,clientErrorText:e}),s(this,Ht,!0)}},{key:"setError",value:function(e){E().emit(W.REVEAL_ELEMENT_SET_ERROR,{name:p(this,Xt).name,isTriggerError:!0,clientErrorText:e}),s(this,Ht,!0)}},{key:"resetError",value:function(){E().emit(W.REVEAL_ELEMENT_SET_ERROR,{name:p(this,Xt).name,isTriggerError:!1}),s(this,Ht,!1)}},{key:"setAltText",value:function(e){E().emit(W.REVEAL_ELEMENT_UPDATE_OPTIONS,{name:p(this,Xt).name,updateType:z,updatedValue:e})}},{key:"clearAltText",value:function(){E().emit(W.REVEAL_ELEMENT_UPDATE_OPTIONS,{name:p(this,Xt).name,updateType:z,updatedValue:null})}},{key:"setToken",value:function(e){s(this,Wt,Yt(Yt({},p(this,Wt)),{},{token:e})),E().emit(W.REVEAL_ELEMENT_UPDATE_OPTIONS,{name:p(this,Xt).name,updateType:q,updatedValue:e})}},{key:"unmount",value:function(){var e;p(this,Wt).skyflowID&&(s(this,zt,!1),null===(e=p(this,Xt).container)||void 0===e||e.remove());p(this,Xt).unmount()}},{key:"update",value:function(e){s(this,Wt,Yt(Yt({},p(this,Wt)),e)),E().emit(W.REVEAL_ELEMENT_UPDATE_OPTIONS,{name:p(this,Xt).name,updateType:H,updatedValue:e})}}]),n}(Vt);const on=rn;function an(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?an(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):an(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ln(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ge(e);if(t){var o=ge(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Le(this,n)}}function sn(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var pn="RevealContainer",un=new WeakMap,En=new WeakMap,dn=new WeakMap,fn=new WeakMap,_n=new WeakMap,mn=new WeakMap,vn=new WeakMap,In=new WeakMap,yn=new WeakMap,Tn=new WeakMap,On=new WeakMap;const Nn=function(e){Ne(n,e);var t=ln(n);function n(e,r,a){var c,l,u,f=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};i(this,n),sn(Te(u=t.call(this)),un,{writable:!0,value:[]}),sn(Te(u),En,{writable:!0,value:[]}),sn(Te(u),dn,{writable:!0,value:[]}),sn(Te(u),fn,{writable:!0,value:void 0}),sn(Te(u),_n,{writable:!0,value:void 0}),sn(Te(u),mn,{writable:!0,value:void 0}),sn(Te(u),vn,{writable:!0,value:!1}),sn(Te(u),In,{writable:!0,value:!1}),sn(Te(u),yn,{writable:!0,value:void 0}),sn(Te(u),Tn,{writable:!0,value:void 0}),sn(Te(u),On,{writable:!0,value:void 0}),o(Te(u),"type",wo.REVEAL),s(Te(u),fn,cn(cn({},e),{},{clientJSON:cn(cn({},e.clientJSON),{},{config:cn(cn({},null===(c=e.clientJSON)||void 0===c?void 0:c.config),{},{options:cn(cn({},null===(l=e.clientJSON)||void 0===l||null===(l=l.config)||void 0===l?void 0:l.options),f)})})})),s(Te(u),Tn,r),s(Te(u),_n,d()),s(Te(u),mn,new yt),s(Te(u),yn,a);var _=p(Te(u),fn).clientDomain||"",m=gt({name:"".concat(C,":").concat(p(Te(u),_n),":").concat(btoa(_)),referrer:_});Lt(m,{src:ht()}),At(m,cn({},ce)),st(pt(h.infoLogs.CREATE_REVEAL_CONTAINER,pn),xe.LOG,p(Te(u),yn).logLevel);return E().target(Ze.IFRAME_SECURE_ORGIN).on(W.REVEAL_FRAME_READY+p(Te(u),_n),(function t(n,r){var o;n.name===C&&(r(cn(cn({},e),{},{clientJSON:cn(cn({},e.clientJSON),{},{config:cn({},null===(o=e.clientJSON)||void 0===o?void 0:o.config),context:a})})),s(Te(u),On,!0),p(Te(u),mn)._emit(ee,{containerId:p(Te(u),_n)}),E().target(Ze.IFRAME_SECURE_ORGIN).off(W.REVEAL_FRAME_READY+p(Te(u),_n),t))})),document.body.append(m),E().target(window.location.origin).on(J+p(Te(u),_n),(function(e){e.skyflowID||p(Te(u),dn).push(e);var t=0;p(Te(u),En).forEach((function(e){e.getRecordData().skyflowID||(t+=1)})),s(Te(u),In,p(Te(u),dn).length===t),p(Te(u),vn)&&p(Te(u),In)&&p(Te(u),mn)._emit(Q+p(Te(u),_n),{containerId:p(Te(u),_n)})})),u}return c(n,[{key:"create",value:function(e,t){var n=d();Qe(t);var r=new on(e,t,p(this,fn),{containerId:p(this,_n),isMounted:p(this,On),eventEmitter:p(this,mn)},n,p(this,yn));return p(this,En).push(r),p(this,Tn)[n]=r,r}},{key:"reveal",value:function(){var e=this;return s(this,vn,!0),p(this,In)?new Promise((function(t,n){try{qe(p(e,fn).clientJSON.config),st(pt(h.infoLogs.VALIDATE_REVEAL_RECORDS,pn),xe.LOG,p(e,yn).logLevel),p(e,En).forEach((function(t){if(t.isClientSetError())throw new dt(Pe.REVEAL_ELEMENT_ERROR_STATE);t.getRecordData().skyflowID||p(e,un).push(t.getRecordData())})),Be(p(e,un)),E().emit(W.REVEAL_REQUEST+p(e,_n),{records:p(e,un)},(function(r){s(e,dn,[]),s(e,un,[]),r.error?(st(pt(h.errorLogs.FAILED_REVEAL),xe.ERROR,p(e,yn).logLevel),n(r.error)):(st(pt(h.infoLogs.REVEAL_SUBMIT_SUCCESS,pn),xe.LOG,p(e,yn).logLevel),t(r))})),st(pt(h.infoLogs.EMIT_EVENT,pn,W.REVEAL_REQUEST),xe.LOG,p(e,yn).logLevel)}catch(t){st("Error: ".concat(t.message),xe.ERROR,p(e,yn).logLevel),n(t)}})):new Promise((function(t,n){try{qe(p(e,fn).clientJSON.config),st(pt(h.infoLogs.VALIDATE_REVEAL_RECORDS,pn),xe.LOG,p(e,yn).logLevel);var r=setTimeout((function(){st(h.errorLogs.ELEMENTS_NOT_MOUNTED_REVEAL,xe.ERROR,p(e,yn).logLevel),n(h.errorLogs.ELEMENTS_NOT_MOUNTED_REVEAL)}),3e4);p(e,En).forEach((function(t){if(t.isClientSetError())throw clearTimeout(r),new dt(Pe.REVEAL_ELEMENT_ERROR_STATE);t.getRecordData().skyflowID||p(e,un).push(t.getRecordData())})),Be(p(e,un)),p(e,mn).on(Q+p(e,_n),(function(){clearTimeout(r),E().emit(W.REVEAL_REQUEST+p(e,_n),{records:p(e,un)},(function(r){s(e,un,[]),s(e,dn,[]),r.error?(st(h.errorLogs.FAILED_REVEAL,xe.ERROR,p(e,yn).logLevel),n(r.error)):(st(pt(h.infoLogs.REVEAL_SUBMIT_SUCCESS,pn),xe.LOG,p(e,yn).logLevel),t(r))}))}))}catch(t){st(t.message,xe.ERROR,p(e,yn).logLevel),n(t)}}))}}]),n}(Rt);function Ln(e){return JSON.parse(JSON.stringify(e))}function gn(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const hn=function(){function e(){i(this,e),o(this,"listeners",void 0),o(this,"isDestroyed",void 0),this.listeners=[],this.isDestroyed=!1}return c(e,[{key:"on",value:function(e,t){E().on(e,t),this.listeners.push({eventName:e,callback:t})}},{key:"off",value:function(e,t){E().off(e,t);var n=this.listeners.findIndex((function(t){return t.eventName===e}));-1!==n&&this.listeners.splice(n,1)}},{key:"emit",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;E().emit(e,t,n)}},{key:"hasListener",value:function(e){return-1!==this.listeners.findIndex((function(t){return t.eventName===e}))}},{key:"teardown",value:function(){this.listeners.forEach((function(e){E().off(e.eventName,e.handler)})),this.listeners=[]}}]),e}();var An=["name"];function Rn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rn(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Sn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ge(e);if(t){var o=ge(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Le(this,n)}}function wn(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var Dn="Element",xn=new WeakMap,Mn=new WeakMap,Pn=new WeakMap,Cn=new WeakMap,kn=new WeakMap,Vn=new WeakMap,Un=new WeakMap,jn=new WeakMap,Yn=new WeakMap,Fn=new WeakMap,Gn=new WeakMap,Bn=new WeakMap,Xn=new WeakMap,Kn=new WeakMap,Wn=new WeakMap,qn=new WeakMap,zn=new WeakMap,Hn=new WeakMap,Jn=new WeakMap,Qn=new WeakMap,Zn=new WeakMap,$n=new WeakMap,er=function(e){Ne(n,e);var t=Sn(n);function n(e,r,a,c){var l,u,E=arguments.length>4&&void 0!==arguments[4]&&arguments[4],d=arguments.length>5?arguments[5]:void 0,f=arguments.length>6?arguments[6]:void 0,_=arguments.length>7?arguments[7]:void 0,m=arguments.length>8?arguments[8]:void 0;return i(this,n),o(Te(u=t.call(this)),"elementType",void 0),o(Te(u),"type",wo.COLLECT),wn(Te(u),xn,{writable:!0,value:void 0}),o(Te(u),"containerId",void 0),wn(Te(u),Mn,{writable:!0,value:!1}),wn(Te(u),Pn,{writable:!0,value:void 0}),wn(Te(u),Cn,{writable:!0,value:void 0}),o(Te(u),"resizeObserver",void 0),wn(Te(u),kn,{writable:!0,value:{isEmpty:!0,isComplete:!1,isValid:!1,isFocused:!1,value:void 0,isRequired:!1,selectedCardScheme:""}}),wn(Te(u),Vn,{writable:!0,value:void 0}),wn(Te(u),Un,{writable:!0,value:void 0}),wn(Te(u),jn,{writable:!0,value:new yt}),wn(Te(u),Yn,{writable:!0,value:void 0}),wn(Te(u),Fn,{writable:!0,value:new hn}),wn(Te(u),Gn,{writable:!0,value:void 0}),wn(Te(u),Bn,{writable:!0,value:[]}),wn(Te(u),Xn,{writable:!0,value:!1}),wn(Te(u),Kn,{writable:!0,value:void 0}),wn(Te(u),Wn,{writable:!0,value:void 0}),wn(Te(u),qn,{writable:!0,value:!1}),wn(Te(u),zn,{writable:!0,value:!1}),o(Te(u),"getID",(function(){return p(Te(u),xn)})),o(Te(u),"mount",(function(e){var t;if(!e)throw new dt(Pe.EMPTY_ELEMENT_IN_MOUNT,["CollectElement"],!0);u.resizeObserver=new ResizeObserver((function(){p(Te(u),Fn).emit(K.HEIGHT+p(Te(u),Gn).name,{},(function(e){p(Te(u),Gn).setIframeHeight(e.height)}))})),xt(p(Te(u),xn),j.DIV_ID,e),null!==(t=p(Te(u),Un))&&void 0!==t&&null!==(t=t.clientJSON)&&void 0!==t&&null!==(t=t.config)&&void 0!==t&&null!==(t=t.options)&&void 0!==t&&t.trackMetrics&&p(Te(u),Un).clientJSON.config.options.trackingKey&&Pt(p(Te(u),xn));var n=function e(t,n){if(t.name===p(Te(u),Gn).name){n(p(Te(u),Vn)),p(Te(u),$n).call(Te(u));var r=p(Te(u),Pn)[0],o=(r.name,gn(r,An));p(Te(u),Cn).length>1?p(Te(u),Cn).forEach((function(e,t){p(Te(u),Yn)&&(p(Te(u),Yn)._emit("".concat(K.READY,":").concat(e.elementName),bn(bn({},p(Te(u),Pn)[t]),{},{elementType:e.elementType})),xt(p(Te(u),xn),j.EVENTS_KEY,"".concat(e.elementType,"_").concat(j.EVENTS.READY)))})):(p(Te(u),jn)._emit(K.READY,bn({},o)),xt(p(Te(u),xn),j.EVENTS_KEY,U.READY)),p(Te(u),Fn).off(W.FRAME_READY+u.containerId,e),st("".concat(pt(h.infoLogs.ELEMENT_MOUNTED,Dn,ut(p(Te(u),Gn).name))," "),xe.LOG,p(Te(u),Kn).logLevel),p(Te(u),Bn).forEach((function(e){return e()})),s(Te(u),Bn,[])}};if(p(Te(u),Cn).length>1)p(Te(u),Gn).mount(e,p(Te(u),xn)),p(Te(u),Fn).on(W.FRAME_READY+u.containerId,n),xt(p(Te(u),xn),j.MOUNT_START_TIME,Date.now());else{var r;if(p(Te(u),qn))return p(Te(u),Gn).mount(e,p(Te(u),xn)),p(Te(u),Fn).on(W.FRAME_READY+u.containerId,n),void xt(p(Te(u),xn),j.MOUNT_START_TIME,Date.now());null===(r=p(Te(u),Yn))||void 0===r||r.on($,(function(t){(null==t?void 0:t.containerId)===u.containerId&&(xt(p(Te(u),xn),j.MOUNT_START_TIME,Date.now()),p(Te(u),Gn).mount(e,p(Te(u),xn)),p(Te(u),Fn).on(W.FRAME_READY+u.containerId,n))}))}if("string"==typeof e){var o,i=document.querySelector(e);if(i)null===(o=u.resizeObserver)||void 0===o||o.observe(i)}else if(e instanceof HTMLElement){var a;null===(a=u.resizeObserver)||void 0===a||a.observe(e)}})),o(Te(u),"unmount",(function(){var e;(p(Te(u),Gn).unmount(),u.resizeObserver)&&(null===(e=u.resizeObserver)||void 0===e||e.disconnect())})),o(Te(u),"updateElementGroup",(function(e){var t=Ln(e),n=function(){p(Te(u),Mn)&&(t={rows:[{elements:[bn({},t)]}]}),s(Te(u),Vn,fr(p(Te(u),Vn),t)),s(Te(u),Cn,_r(p(Te(u),Vn))),p(Te(u),Mn)?p(Te(u),Fn).emit(W.SET_VALUE,{name:p(Te(u),Gn).name,options:p(Te(u),Cn)[0],isSingleElementAPI:!0}):(p(Te(u),Cn).forEach((function(e){p(Te(u),Fn).emit(W.SET_VALUE,{name:e.elementName,options:e,isSingleElementAPI:!0})})),p(Te(u),Fn).emit(W.SET_VALUE,{name:p(Te(u),Gn).name,options:p(Te(u),Vn),isSingleElementAPI:!1})),p(Te(u),$n).call(Te(u))};p(Te(u),Xn)?n():p(Te(u),Bn).push(n)})),wn(Te(u),Hn,{writable:!0,value:function(e){p(Te(u),Mn)||p(Te(u),jn).on(W.SET_VALUE,(function(){e(p(Te(u),Cn))}),!0)}}),o(Te(u),"updateElement",(function(e){p(Te(u),Fn).emit(W.SET_VALUE,{name:e.elementName,options:e,isSingleElementAPI:!0})})),o(Te(u),"update",(function(e){s(Te(u),zn,!0),p(Te(u),Xn)?(e.validations=mr(e.validations),u.updateElement(bn({elementName:p(Te(u),Vn).elementName},e)),s(Te(u),zn,!1)):p(Te(u),zn)&&p(Te(u),jn).on("".concat(Se.READY,":").concat(p(Te(u),xn)),(function(){e.validations=mr(e.validations),u.updateElement(bn({elementName:p(Te(u),Vn).elementName},e)),s(Te(u),Xn,!0),s(Te(u),zn,!1)}))})),wn(Te(u),Jn,{writable:!0,value:function(){p(Te(u),Pn).forEach((function(e,t){if(0===t){p(Te(u),kn).isEmpty=e.isEmpty,p(Te(u),kn).isComplete=e.isComplete,p(Te(u),kn).isValid=e.isValid,p(Te(u),kn).isFocused=e.isFocused,p(Te(u),kn).isRequired=e.isRequired,p(Te(u),kn).value={},p(Te(u),kn).selectedCardScheme="";var n=p(Te(u),Cn)[t].elementName,r=e.value&&function(e,t,n){if("string"!=typeof e)return e;if(t===te.CARD_NUMBER){if(e=e&&e.replace(/\s/g,""),!n){var r,o=ke(e),i=o!==ne.DEFAULT&&o===ne.AMEX?6:8;return e.length>i?e.replace(new RegExp(".(?=.{0,".concat((null===(r=e)||void 0===r?void 0:r.length)-i-1,"}$)"),"g"),"X"):e}return e}return n?e:void 0}(e.value,e.elementType,p(Te(u),Wn));p(Te(u),Mn)?p(Te(u),kn).value=r:p(Te(u),kn).value[n]=r}else p(Te(u),kn).isEmpty=p(Te(u),kn).isEmpty||e.isEmpty,p(Te(u),kn).isComplete=p(Te(u),kn).isComplete&&e.isComplete,p(Te(u),kn).isValid=p(Te(u),kn).isValid&&e.isValid,p(Te(u),kn).isFocused=p(Te(u),kn).isFocused||e.isFocused,p(Te(u),kn).isRequired=p(Te(u),kn).isRequired||e.isRequired,p(Te(u),kn).selectedCardScheme=p(Te(u),kn).selectedCardScheme||e.selectedCardScheme,p(Te(u),kn).value||(p(Te(u),kn).value={}),p(Te(u),Cn)[t].sensitive||(p(Te(u),kn).value[p(Te(u),Cn)[t].elementName]=e.value||"")}))}}),o(Te(u),"getState",(function(){return{isEmpty:p(Te(u),kn).isEmpty,isComplete:p(Te(u),kn).isComplete,isValid:p(Te(u),kn).isValid,isFocused:p(Te(u),kn).isFocused,value:p(Te(u),kn).value,required:p(Te(u),kn).isRequired,selectedCardScheme:""}})),o(Te(u),"getOptions",(function(){var e=Ln(p(Te(u),Vn));return p(Te(u),Mn)?e=e.rows[0].elements[0]:e.rows.forEach((function(e){e.elements.forEach((function(e){delete e.elementName}))})),delete e.elementName,e})),wn(Te(u),Qn,{writable:!0,value:function(e){p(Te(u),jn).on(W.DESTROY_FRAME,(function(){var t=p(Te(u),Cn).map((function(e){return e.elementName}));p(Te(u),Mn)||t.push(p(Te(u),Gn).name),e(t)}),!0)}}),wn(Te(u),Zn,{writable:!0,value:function(){p(Te(u),Fn).on(W.INPUT_EVENT,(function(e){if(p(Te(u),Mn)&&e.event===K.READY&&e.name===p(Te(u),Gn).name)p(Te(u),jn)._emit(K.READY);else{var t=p(Te(u),Cn).length>1;p(Te(u),Cn).forEach((function(n,r){var o;if(e.name===n.elementName){var i,a="";switch(e.event){case K.FOCUS:a=K.FOCUS;break;case K.BLUR:a=K.BLUR;break;case K.CHANGE:a=K.CHANGE;break;case K.READY:a=K.READY;break;case K.SUBMIT:return void(null===(o=p(Te(u),Yn))||void 0===o||o._emit(K.SUBMIT));default:throw new dt(Pe.INVALID_EVENT_TYPE,[],!0)}p(Te(u),Pn)[r].isEmpty=e.value.isEmpty,p(Te(u),Pn)[r].isValid=e.value.isValid,p(Te(u),Pn)[r].isComplete=e.value.isComplete,p(Te(u),Pn)[r].isFocused=e.value.isFocused,p(Te(u),Pn)[r].isRequired=e.value.isRequired,p(Te(u),Pn)[r].selectedCardScheme=(null==e||null===(i=e.value)||void 0===i?void 0:i.selectedCardScheme)||"",Object.prototype.hasOwnProperty.call(e.value,"value")?p(Te(u),Pn)[r].value=e.value.value:p(Te(u),Pn)[r].value=void 0,a=t?"".concat(a,":").concat(e.name):a,p(Te(u),Fn).emit(K.HEIGHT+p(Te(u),Gn).name,{},(function(e){p(Te(u),Gn).setIframeHeight(e.height)})),p(Te(u),Jn).call(Te(u));var c=bn(bn({},p(Te(u),Pn)[r]),{},{elementType:n.elementType});t&&p(Te(u),Yn)?p(Te(u),Yn)._emit(a,c):p(Te(u),jn)._emit(a,c)}}))}}))}}),wn(Te(u),$n,{writable:!0,value:function(){p(Te(u),Vn).rows.forEach((function(e){e.elements.forEach((function(e){e.elementType!==oe.radio.name&&e.elementType!==oe.checkbox.name&&(e.value=void 0)}))})),s(Te(u),Cn,_r(p(Te(u),Vn)))}}),u.containerId=c.containerId,s(Te(u),xn,e),s(Te(u),Kn,_),s(Te(u),Un,a),s(Te(u),Vn,fr(r)),s(Te(u),Cn,_r(r)),s(Te(u),Mn,E),u.resizeObserver=null,m&&s(Te(u),Yn,m),s(Te(u),Wn,ct[p(Te(u),Kn).env].doesReturnValue),u.elementType=p(Te(u),Mn)?p(Te(u),Cn)[0].elementType:"group",Dt(a,e),s(Te(u),Pn,[]),p(Te(u),Cn).forEach((function(e){xt(p(Te(u),xn),j.ELEMENT_TYPE_KEY,e.elementType),p(Te(u),Pn).push({isEmpty:!0,isComplete:!1,isValid:!e.required&&p(Te(u),kn).isEmpty,isFocused:!1,value:p(Te(u),Wn)?"":void 0,elementType:e.elementType,name:e.elementName,isRequired:e.required,selectedCardScheme:""})})),p(Te(u),Cn)&&p(Te(u),Cn).length&&p(Te(u),Cn).length>1?xt(p(Te(u),xn),j.CONTAINER_NAME,V.COMPOSE):xt(p(Te(u),xn),j.CONTAINER_NAME,V.COLLECT),s(Te(u),Gn,new kt(p(Te(u),Vn).elementName,a,u.containerId,p(Te(u),Kn).logLevel)),p(Te(u),Zn).call(Te(u)),p(Te(u),Qn).call(Te(u),d),p(Te(u),Hn).call(Te(u),f),st(pt(h.infoLogs.CREATED_ELEMENT,Dn,ut(p(Te(u),Gn).name)),xe.LOG,p(Te(u),Kn).logLevel),s(Te(u),qn,c.isMounted),null===(l=p(Te(u),Yn))||void 0===l||l.on($,(function(e){(null==e?void 0:e.containerId)===u.containerId&&s(Te(u),qn,!0)})),p(Te(u),Fn).on(K.MOUNTED,(function(e){c.type===wo.COMPOSABLE?(xt(p(Te(u),xn),j.MOUNT_END_TIME,Date.now()),p(Te(u),Cn).forEach((function(t){e.name===t.elementName&&(xt(p(Te(u),xn),j.EVENTS_KEY,"".concat(t.elementType,"_").concat(j.EVENTS.MOUNTED)),t.isMounted=!0,s(Te(u),Xn,!0))}))):e.name===p(Te(u),Cn)[0].elementName&&(xt(p(Te(u),xn),j.MOUNT_END_TIME,Date.now()),xt(p(Te(u),xn),j.EVENTS_KEY,U.MOUNTED),p(Te(u),Cn)[0].isMounted=!0,s(Te(u),Xn,!0)),p(Te(u),Fn).emit(K.HEIGHT+p(Te(u),Gn).name,{},(function(e){p(Te(u),Gn).setIframeHeight(e.height)}))})),u}return c(n,[{key:"on",value:function(e,t){if(!Object.values(K).includes(e))throw new dt(Pe.INVALID_EVENT_LISTENER,[],!0);if(!t)throw new dt(Pe.MISSING_HANDLER_IN_EVENT_LISTENER,[],!0);if("function"!=typeof t)throw new dt(Pe.INVALID_HANDLER_IN_EVENT_LISTENER,[],!0);p(this,jn).on(e,(function(e){void 0===e.value&&(e.value=""),e.elementType!==te.CARD_NUMBER&&delete e.selectedCardScheme,delete e.isComplete,delete e.name,t(e)}))}},{key:"iframeName",value:function(){return p(this,Gn).name}},{key:"isMounted",value:function(){return p(this,Xn)}},{key:"isUpdateCalled",value:function(){return p(this,zn)}},{key:"isValidElement",value:function(){for(var e=0;e<p(this,Cn).length;e+=1){if(!Object.prototype.hasOwnProperty.call(p(this,Cn)[e],"table"))throw new dt(Pe.MISSING_TABLE_IN_COLLECT,[],!0);if(!p(this,Cn)[e].table)throw new dt(Pe.EMPTY_TABLE_IN_COLLECT,[],!0);if(!("string"==typeof p(this,Cn)[e].table||p(this,Cn)[e].table instanceof String))throw new dt(Pe.INVALID_TABLE_IN_COLLECT,[],!0);if(!Object.prototype.hasOwnProperty.call(p(this,Cn)[e],"column"))throw new dt(Pe.MISSING_COLUMN_IN_COLLECT,[],!0);if(!p(this,Cn)[e].column)throw new dt(Pe.EMPTY_COLUMN_IN_COLLECT,[],!0);if(!("string"==typeof p(this,Cn)[e].column||p(this,Cn)[e].column instanceof String))throw new dt(Pe.INVALID_COLUMN_IN_COLLECT,[],!0);if(void 0!==p(this,Cn)[e].skyflowID&&!p(this,Cn)[e].skyflowID)throw new dt(Pe.EMPTY_SKYFLOW_ID_COLLECT,[],!0)}return!0}},{key:"setErrorOverride",value:function(e){p(this,Fn).emit(W.COLLECT_ELEMENT_SET_ERROR_OVERRIDE,{name:nt(p(this,Gn).name),customErrorText:e})}},{key:"setError",value:function(e){p(this,Fn).emit(W.COLLECT_ELEMENT_SET_ERROR,{name:nt(p(this,Gn).name),isTriggerError:!0,clientErrorText:e})}},{key:"resetError",value:function(){p(this,Fn).emit(W.COLLECT_ELEMENT_SET_ERROR,{name:nt(p(this,Gn).name),isTriggerError:!1})}},{key:"setValue",value:function(e){p(this,Kn).env!==De.PROD?p(this,Mn)&&p(this,Fn).emit(W.SET_VALUE,{name:p(this,Gn).name,options:bn(bn({},p(this,Cn)[0]),{},{value:e}),isSingleElementAPI:!0}):st(pt(h.warnLogs.UNABLE_TO_SET_VALUE_IN_PROD_ENV,p(this,Cn)[0].elementType),xe.WARN,p(this,Kn).logLevel)}},{key:"clearValue",value:function(){p(this,Kn).env!==De.PROD?p(this,Mn)&&p(this,Fn).emit(W.SET_VALUE,{name:p(this,Gn).name,options:bn(bn({},p(this,Cn)[0]),{},{value:""}),isSingleElementAPI:!0}):st(pt(h.warnLogs.UNABLE_TO_CLEAR_VALUE_IN_PROD_ENV,p(this,Cn)[0].elementType),xe.WARN,p(this,Kn).logLevel)}}]),n}(Vt);const tr=er;function nr(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var rr=new WeakMap,or=new WeakMap,ir=new WeakMap,ar=new WeakMap,cr=new WeakMap;const lr=function(){function e(t,n,r){var a=this;i(this,e),nr(this,rr,{writable:!0,value:void 0}),nr(this,or,{writable:!0,value:void 0}),nr(this,ir,{writable:!0,value:void 0}),o(this,"type",wo.COMPOSABLE),nr(this,ar,{writable:!0,value:!1}),nr(this,cr,{writable:!0,value:!1}),o(this,"update",(function(e){s(a,cr,!0),p(a,ar)?(e.validations=mr(e.validations),p(a,or)._emit(W.COMPOSABLE_UPDATE_OPTIONS,{elementName:p(a,rr),elementOptions:e}),s(a,cr,!1)):p(a,cr)&&p(a,or).on("".concat(Se.READY,":").concat(p(a,rr)),(function(){e.validations=mr(e.validations),p(a,or)._emit(W.COMPOSABLE_UPDATE_OPTIONS,{elementName:p(a,rr),elementOptions:e}),s(a,ar,!0),s(a,cr,!1)}))})),s(this,rr,t),s(this,ir,r),s(this,or,n),p(this,or).on("".concat(Se.READY,":").concat(p(this,rr)),(function(){s(a,ar,!0)}))}return c(e,[{key:"on",value:function(e,t){if(!Object.values(K).includes(e))throw new dt(Pe.INVALID_EVENT_LISTENER,[],!0);if(!t)throw new dt(Pe.MISSING_HANDLER_IN_EVENT_LISTENER,[],!0);if("function"!=typeof t)throw new dt(Pe.INVALID_HANDLER_IN_EVENT_LISTENER,[],!0);p(this,or).on("".concat(e,":").concat(p(this,rr)),(function(e){void 0===e.value&&(e.value=""),e.elementType!==te.CARD_NUMBER&&delete e.selectedCardScheme,delete e.isComplete,delete e.name,t(e)}))}},{key:"iframeName",value:function(){return p(this,ir)}},{key:"getID",value:function(){return p(this,rr)}}]),e}();function sr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sr(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ur(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Er(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ur(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ur(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dr(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("group"!==t&&!Object.prototype.hasOwnProperty.call(oe,t))throw new dt(Pe.INVALID_ELEMENT_TYPE,[],!0);if(Object.prototype.hasOwnProperty.call(n,"validations")){if(!Array.isArray(n.validations))throw new dt(Pe.INVALID_VALIDATIONS_TYPE,[],!0);n.validations.forEach((function(t,n){if(!Object.prototype.hasOwnProperty.call(t,"type"))throw new dt(Pe.MISSING_VALIDATION_RULE_TYPE,["".concat(n)],!0);if(!Object.values(Me).includes(t.type))throw new dt(Pe.INVALID_VALIDATION_RULE_TYPE,["".concat(n)],!0);if(!Object.prototype.hasOwnProperty.call(t,"params"))throw new dt(Pe.MISSING_VALIDATION_RULE_PARAMS,["".concat(n)],!0);if("object"!==e(t.params)||Array.isArray(t.params)||null===t.params)throw new dt(Pe.INVALID_VALIDATION_RULE_PARAMS,["".concat(n)],!0);if(t.type===Me.REGEX_MATCH_RULE){if(!Object.prototype.hasOwnProperty.call(t.params,"regex"))throw new dt(Pe.MISSING_REGEX_IN_REGEX_MATCH_RULE,["".concat(n)],!0)}else if(t.type===Me.LENGTH_MATCH_RULE&&!Object.prototype.hasOwnProperty.call(t.params,"min")&&!Object.prototype.hasOwnProperty.call(t.params,"max"))throw new dt(Pe.MISSING_MIN_AND_MAX_IN_LENGTH_MATCH_RULE,["".concat(n)],!0)}))}if(Object.prototype.hasOwnProperty.call(r,"name")&&r.name!==n.name)throw new Error("Name attribute can't be updated");if((r=Er(Er({},n),r)).mask||r.replacePattern){var o=oe[t].attributes.type;"text"===o&&"textarea"===o&&"email"===o||(delete r.mask,delete r.replacePattern)}if(void 0===!r.mask&&!Array.isArray(r.mask))throw new Error("mask option has to be array or undefined");if(Array.isArray(r.mask)){var i=r.mask;if("string"!=typeof i[0]||i[1]&&"object"!==e(i[1]))throw new Error("mask array values has to be string")}if(Array.isArray(r.replacePattern)){var a=r.replacePattern;if("string"!=typeof a[0]||a[1]&&"string"!=typeof a[1])throw new Error("replacePatterns array values has to be string")}if((t===oe.radio.name||t===oe.checkbox.name)&&!r.value)throw new Error("Elements radio and checkbox requires value attribute");if(!(t!==oe.dropdown.name||r.options&&Array.isArray(r.options)&&0!==r.options.length))throw new Error("Element dropdown requires options attribute with an array of objects containing value and text attributes")}function fr(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return(n=Er(Er({},t),n)).rows.forEach((function(o,i){var a=o,c=t.rows[i];n.rows[i]=Er(Er({},c),a),a.elements.forEach((function(t,n){var o,i,l=c.elements[n],s=t;if(s.elementType&&l.elementType!==s.elementType&&l.elementName&&l.elementName!==s.elementName)throw new Error(pt(h.errorLogs.CANNOT_CHANGE_ELEMENT));dr(l.elementType,l,s),a.elements[n]=Er(Er(Er({},l),s),{},{elementName:l.elementName});var p=s.classes||{},u=s.styles||{};u.base=Er(Er({},le),u.base),s.classes=p,s.styles=u;var E=(null==s||null===(o=s.labelStyles)||void 0===o?void 0:o.classes)||{},d=(null==s||null===(i=s.labelStyles)||void 0===i?void 0:i.styles)||{};r&&function(t,n){Object.values(se).forEach((function(e){if(t[e]||n[e])switch(e){case se.BASE:n[e]=pr({},n[e]);break;case se.FOCUS:n[se.BASE]=pr(pr({},n[se.BASE]),{},{":focus":pr({},n[se.BASE]&&n[se.BASE][":focus"])});break;case se.WEBPACKAUTOFILL:n[se.BASE]=pr(pr({},n[se.BASE]),{},{":-webkit-autofill":pr({},n[se.BASE]&&n[se.BASE][":-webkit-autofill"])});break;default:n[e]=pr(pr({},n[se.BASE]),n[e])}})),Object.keys(n).forEach((function(t){var r=n[t][":-webkit-autofill"];"object"===e(r)&&Object.keys(r).forEach((function(e){r[e]&&!r[e].includes("!important")&&(r[e]="".concat(r[e]," !important"))}))}))}(E,d),s.labelStyles={labelClasses:E},s.labelStyles.styles=d}))})),n}var _r=function(e){var t=e.rows,n=[];return t.forEach((function(e){e.elements.forEach((function(e){n.push(e)}))})),n},mr=function(e){return e&&Array.isArray(e)&&e.length>0&&e.forEach((function(e,t){if(e&&e.type===Me.ELEMENT_VALUE_MATCH_RULE){if(e.params&&!Object.prototype.hasOwnProperty.call(e.params,"element"))throw new dt(Pe.MISSING_ELEMENT_IN_ELEMENT_MATCH_RULE,["".concat(t)],!0);if(e.params&&(null==e.params.element||!(e.params.element instanceof tr||lr)))throw new dt(Pe.INVALID_ELEMENT_IN_ELEMENT_MATCH_RULE,["".concat(t)],!0);e.params&&e.params.element&&(e.params.element instanceof tr||lr)&&(e.params.elementID=e.params.element.getID(),e.params.element=e.params.element.iframeName())}else if(e&&e.type===Me.REGEX_MATCH_RULE){if(e.params&&e.params.regex&&!We(e.params.regex))throw new dt(Pe.INVALID_REGEX_IN_REGEX_MATCH_RULE,["".concat(t)],!0);e.params&&e.params.regex&&We(e.params.regex)&&(e.params.regex=e.params.regex.toString())}})),e},vr=function(t,n,r){var o,i,a,c=Er({required:!1},n);if(Object.prototype.hasOwnProperty.call(c,"format")||Object.prototype.hasOwnProperty.call(c,"translation"))if(_e.includes(t))st(pt(h.warnLogs.INPUT_FORMATTING_NOT_SUPPROTED,t),xe.WARN,r),null===(o=c)||void 0===o||delete o.format,null===(i=c)||void 0===i||delete i.translation;else if(t===oe.INPUT_FIELD.name){var l,s;Qe(n),null===(l=c=Er(Er({},c),{},{mask:[c.format,c.translation?c.translation:me]}))||void 0===l||delete l.format,null===(s=c)||void 0===s||delete s.translation}switch(t){case oe.CARD_NUMBER.name:var p,u,E;Object.prototype.hasOwnProperty.call(c,"enableCardIcon")||(c=Er(Er({},c),{},{enableCardIcon:!0}));var d=" ";if((null===(p=c)||void 0===p?void 0:p.format)===ie&&(d="-"),null===(u=c=Er(Er({},c),{},{cardSeperator:d}))||void 0===u||delete u.format,null===(E=c)||void 0===E||delete E.translation,Object.prototype.hasOwnProperty.call(c,"cardMetadata")){if("object"!==e(c.cardMetadata)||"[object Object]"!==Object.prototype.toString.call(c.cardMetadata))throw new dt(Pe.INVALID_OPTION_CARD_METADATA,[],!0);if(Object.prototype.hasOwnProperty.call(c.cardMetadata,"scheme")&&("object"!==e(c.cardMetadata.scheme)||"[object Array]"!==Object.prototype.toString.call(c.cardMetadata.scheme)))throw new dt(Pe.INVALID_OPTION_CARD_SCHEME,[],!0)}break;case oe.EXPIRATION_DATE.name:var f,_=!1;c.format&&((_=!!(a=c.format.toUpperCase())&&Ee.includes(a))||st(pt(h.warnLogs.INVALID_EXPIRATION_DATE_FORMAT,Ee.toString()),xe.WARN,r)),null===(f=c=Er(Er({},c),{},{format:_?c.format.toUpperCase():ue}))||void 0===f||delete f.translation;break;case oe.EXPIRATION_YEAR.name:var m,v=!1;c.format&&(v=function(e){return!!e&&de.includes(e)}(c.format.toUpperCase()),v||st(pt(h.warnLogs.INVALID_EXPIRATION_YEAR_FORMAT,de.toString()),xe.WARN,r)),null===(m=c=Er(Er({},c),{},{format:v?c.format.toUpperCase():"YY"}))||void 0===m||delete m.translation;break;case oe.FILE_INPUT.name:Object.prototype.hasOwnProperty.call(c,"preserveFileName")||(c=Er(Er({},c),{},{preserveFileName:!0}))}if(Object.prototype.hasOwnProperty.call(c,"enableCardIcon")&&!Je(c.enableCardIcon))throw new dt(Pe.INVALID_BOOLEAN_OPTIONS,["enableCardIcon"],!0);if(Object.prototype.hasOwnProperty.call(c,"enableCopy")&&!Je(c.enableCopy))throw new dt(Pe.INVALID_BOOLEAN_OPTIONS,["enableCopy"],!0);if(Object.prototype.hasOwnProperty.call(c,"required")&&!Je(c.required))throw new dt(Pe.INVALID_BOOLEAN_OPTIONS,["required"],!0);if(Object.prototype.hasOwnProperty.call(c,"preserveFileName")&&!Je(c.preserveFileName))throw new dt(Pe.INVALID_BOOLEAN_OPTIONS,["preserveFileName"],!0);if(t===oe.FILE_INPUT.name){if(n.allowedFileType){if(!Array.isArray(n.allowedFileType))throw new dt(Pe.INVALID_ALLOWED_OPTIONS,[],!0);if(n.allowedFileType.length<=0)throw new dt(Pe.EMPTY_ALLOWED_OPTIONS_ARRAY,[],!0);if(!n.allowedFileType.every((function(e){return"string"==typeof e})))throw new dt(Pe.INVALID_ALLOWED_FILETYPE_ARRAY,[],!0)}Object.prototype.hasOwnProperty.call(n,"allowedFileType")&&(c=Er(Er({},c),{},{allowedFileType:n.allowedFileType}))}return c};function Ir(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ir(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ir(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Tr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ge(e);if(t){var o=ge(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Le(this,n)}}function Or(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var Nr="CollectContainer",Lr=new WeakMap,gr=new WeakMap,hr=new WeakMap,Ar=new WeakMap,Rr=new WeakMap,br=new WeakMap,Sr=new WeakMap,wr=new WeakMap,Dr=new WeakMap,xr=new WeakMap,Mr=new WeakMap,Pr=new WeakMap,Cr=function(e){Ne(n,e);var t=Tr(n);function n(e,r,a,c){var l,u;i(this,n),Or(Te(u=t.call(this)),Lr,{writable:!0,value:void 0}),Or(Te(u),gr,{writable:!0,value:{}}),Or(Te(u),hr,{writable:!0,value:void 0}),Or(Te(u),Ar,{writable:!0,value:void 0}),Or(Te(u),Rr,{writable:!0,value:void 0}),o(Te(u),"type",wo.COLLECT),Or(Te(u),br,{writable:!0,value:void 0}),Or(Te(u),Sr,{writable:!0,value:!1}),o(Te(u),"create",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{required:!1};ze(e,p(Te(u),Ar).logLevel);var n=mr(e.validations),r=vr(e.type,t,p(Te(u),Ar).logLevel),o={rows:[{elements:[yr(yr(yr({elementType:e.type,name:e.column,accept:t.allowedFileType},e),r),{},{validations:n})]}]};return p(Te(u),wr).call(Te(u),o,!0)})),Or(Te(u),wr,{writable:!0,value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[],r=Ln(e);if(r.rows.forEach((function(e){e.elements.forEach((function(e){var t=e,r=t.elementType;dr(r,t),t.sensitive=t.sensitive||oe[r].sensitive,t.replacePattern=t.replacePattern||oe[r].replacePattern,t.mask=t.mask||oe[r].mask,t.isMounted=!1,t.elementType!==oe.radio.name&&t.elementType!==oe.checkbox.name||(t.elementName="".concat(t.elementName,":").concat(btoa(t.value))),t.elementName="".concat(k,":").concat(t.elementType,":").concat(btoa(d())),t.label=e.label,t.skyflowID=e.skyflowID,n.push(t)}))})),r.elementName=t?n[0].elementName:"".concat(k,":group:").concat(btoa(r.name)),t&&!p(Te(u),gr)[n[0].elementName]&&p(Te(u),Pr).call(Te(u),n[0].name))throw new dt(Pe.UNIQUE_ELEMENT_NAME,["".concat(n[0].name)],!0);var o=p(Te(u),gr)[r.elementName];if(o)t?o.updateElementGroup(n[0]):o.updateElementGroup(r);else{var i=d();o=new tr(i,r,p(Te(u),hr),{containerId:p(Te(u),Lr),isMounted:p(Te(u),Sr),type:u.type},t,p(Te(u),xr),p(Te(u),Mr),p(Te(u),Ar),p(Te(u),br)),p(Te(u),gr)[r.elementName]=o,p(Te(u),Rr)[i]=o}return t||n.forEach((function(e){var t=e.elementName;p(Te(u),gr)[t]?p(Te(u),gr)[t].updateElementGroup(e):p(Te(u),gr)[t]=u.create(e.elementType,o)})),o}}),Or(Te(u),Dr,{writable:!0,value:function(e){Object.keys(p(Te(u),gr)).forEach((function(t){t===e&&delete p(Te(u),gr)[t]}))}}),Or(Te(u),xr,{writable:!0,value:function(e){e.forEach((function(e){p(Te(u),Dr).call(Te(u),e)}))}}),Or(Te(u),Mr,{writable:!0,value:function(e){e.forEach((function(e){p(Te(u),gr)[e.elementName]&&p(Te(u),gr)[e.elementName].updateElementGroup(e)}))}}),Or(Te(u),Pr,{writable:!0,value:function(e){for(var t=Object.keys(p(Te(u),gr)),n=0;n<t.length;n+=1)if(atob(t[n].split(":")[2])===e)return!0;return!1}}),o(Te(u),"collect",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{tokens:!0};return new Promise((function(t,n){try{if(qe(p(Te(u),hr).clientJSON.config),Object.values(p(Te(u),gr)).forEach((function(e){if(!e.isMounted())throw new dt(Pe.ELEMENTS_NOT_MOUNTED,[],!0);e.isValidElement()})),Object.prototype.hasOwnProperty.call(e,"tokens")&&!Je(e.tokens))throw new dt(Pe.INVALID_TOKENS_IN_COLLECT,[],!0);null!=e&&e.additionalFields&&Ue(e.additionalFields),null!=e&&e.upsert&&He(null==e?void 0:e.upsert),E().emit(W.TOKENIZATION_REQUEST+p(Te(u),Lr),yr(yr({},e),{},{tokens:void 0===(null==e?void 0:e.tokens)||e.tokens}),(function(e){!e||null!=e&&e.error?(st("".concat(JSON.stringify(null==e?void 0:e.error)),xe.ERROR,p(Te(u),Ar).logLevel),n(null==e?void 0:e.error)):(st(pt(h.infoLogs.COLLECT_SUBMIT_SUCCESS,Nr),xe.LOG,p(Te(u),Ar).logLevel),t(e))})),st(pt(h.infoLogs.EMIT_EVENT,Nr,W.TOKENIZATION_REQUEST),xe.LOG,p(Te(u),Ar).logLevel)}catch(e){st("".concat(e.message),xe.ERROR,p(Te(u),Ar).logLevel),n(e)}}))})),o(Te(u),"uploadFiles",(function(e){return new Promise((function(t,n){try{qe(p(Te(u),hr).clientJSON.config),Object.values(p(Te(u),gr)).forEach((function(e){if(!e.isMounted())throw new dt(Pe.ELEMENTS_NOT_MOUNTED,[],!0);e.isValidElement()})),E().emit(W.FILE_UPLOAD+p(Te(u),Lr),yr({},e),(function(e){!e||null!=e&&e.error?(st("".concat(JSON.stringify(null==e?void 0:e.error)),xe.ERROR,p(Te(u),Ar).logLevel),n(null==e?void 0:e.error)):(st(pt(h.infoLogs.COLLECT_SUBMIT_SUCCESS,Nr),xe.LOG,p(Te(u),Ar).logLevel),t(e))})),st(pt(h.infoLogs.EMIT_EVENT,Nr,W.FILE_UPLOAD),xe.LOG,p(Te(u),Ar).logLevel)}catch(e){st("".concat(e.message),xe.ERROR,p(Te(u),Ar).logLevel),n(e)}}))})),s(Te(u),Lr,d()),s(Te(u),hr,yr(yr({},r),{},{clientJSON:yr(yr({},r.clientJSON),{},{config:yr(yr({},r.clientJSON.config),{},{options:yr(yr({},null===(l=r.clientJSON.config)||void 0===l?void 0:l.options),e)})})})),s(Te(u),Rr,a),s(Te(u),Ar,c),s(Te(u),br,new yt);var f=p(Te(u),hr).clientDomain||"",_=gt({name:"".concat(P,":").concat(p(Te(u),Lr),":").concat(p(Te(u),Ar).logLevel,":").concat(btoa(f)),referrer:f});Lt(_,{src:ht()}),At(_,yr({},ce)),st(pt(h.infoLogs.CREATE_COLLECT_CONTAINER,Nr),xe.LOG,p(Te(u),Ar).logLevel);return E().target(Ze.IFRAME_SECURE_ORGIN).on(W.FRAME_READY+p(Te(u),Lr),(function e(t,n){t.name===P+p(Te(u),Lr)&&(n(yr(yr({},r),{},{clientJSON:yr(yr({},r.clientJSON),{},{config:yr({},r.clientJSON.config)}),context:c})),s(Te(u),Sr,!0),p(Te(u),br)._emit($,{containerId:p(Te(u),Lr)}),E().target(Ze.IFRAME_SECURE_ORGIN).off(W.FRAME_READY+p(Te(u),Lr),e))})),document.body.append(_),u}return c(n)}(Rt);const kr=Cr;function Vr(e){this.message=e}Vr.prototype=new Error,Vr.prototype.name="InvalidCharacterError";var Ur="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new Vr("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,r,o=0,i=0,a="";r=t.charAt(i++);~r&&(n=o%4?64*n+r:r,o++%4)?a+=String.fromCharCode(255&n>>(-2*o&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return a};function jr(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(Ur(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return Ur(t)}}function Yr(e){this.message=e}Yr.prototype=new Error,Yr.prototype.name="InvalidTokenError";const Fr=function(e,t){if("string"!=typeof e)throw new Yr("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(jr(e.split(".")[n]))}catch(e){throw new Yr("Invalid token specified: "+e.message)}};const Gr=function(e){try{if(!e)return!1;if(i=e,"[object String]"!==Object.prototype.toString.call(i))return!1;var t=!1,n=Fr(e),r=(new Date).getTime()/1e3,o=n.exp;return o&&r>o&&(t=!0),!t}catch(e){return!1}var i};function Br(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Br(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Br(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Kr(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var Wr="SkyflowContainer",qr=new WeakMap,zr=new WeakMap,Hr=new WeakMap,Jr=new WeakMap,Qr=function(){function e(t,n){var r,o,a=this;i(this,e),Kr(this,qr,{writable:!0,value:void 0}),Kr(this,zr,{writable:!0,value:void 0}),Kr(this,Hr,{writable:!0,value:!1}),Kr(this,Jr,{writable:!0,value:void 0}),s(this,zr,t),s(this,qr,(null===(r=p(this,zr).toJSON())||void 0===r||null===(r=r.metaData)||void 0===r?void 0:r.uuid)||""),s(this,Jr,n);var c=window.location.origin||"",l=gt({name:"".concat("skyflow_controller",":").concat(p(this,qr),":").concat(btoa(c),":").concat(!(null===(o=p(this,zr).toJSON())||void 0===o||null===(o=o.config)||void 0===o||null===(o=o.options)||void 0===o||!o.trackingKey)),referrer:c});Lt(l,{src:ht()}),At(l,Xr({},ce)),document.body.append(l),E().target(Ze.IFRAME_SECURE_ORGIN).on(W.PUREJS_FRAME_READY+p(this,qr),(function(e,t){st(pt(h.infoLogs.CAPTURE_PUREJS_FRAME,Wr),xe.LOG,p(a,Jr).logLevel),t({client:p(a,zr),context:n}),s(a,Hr,!0)})),st(pt(h.infoLogs.PUREJS_CONTROLLER_INITIALIZED,Wr),xe.LOG,p(this,Jr).logLevel)}return c(e,[{key:"detokenize",value:function(e){var t=this;return p(this,Hr)?new Promise((function(n,r){try{qe(p(t,zr).config),st(pt(h.infoLogs.VALIDATE_DETOKENIZE_INPUT,Wr),xe.LOG,p(t,Jr).logLevel),je(e),E().emit(W.PUREJS_REQUEST+p(t,qr),{type:F,records:e.records},(function(e){e.error?r(e.error):n(e)})),st(pt(h.infoLogs.EMIT_PURE_JS_REQUEST,Wr,F),xe.LOG,p(t,Jr).logLevel)}catch(e){st(e.message,xe.ERROR,p(t,Jr).logLevel),r(e)}})):new Promise((function(n,r){try{qe(p(t,zr).config),st(pt(h.infoLogs.VALIDATE_DETOKENIZE_INPUT,Wr),xe.LOG,p(t,Jr).logLevel),je(e),E().target(Ze.IFRAME_SECURE_ORGIN).on(W.PUREJS_FRAME_READY+p(t,qr),(function(){E().emit(W.PUREJS_REQUEST+p(t,qr),{type:F,records:e.records},(function(e){e.error?r(e.error):n(e)}))})),st(pt(h.infoLogs.EMIT_PURE_JS_REQUEST,Wr,F),xe.LOG,p(t,Jr).logLevel)}catch(e){st(e.message,xe.ERROR,p(t,Jr).logLevel),r(e)}}))}},{key:"insert",value:function(e,t){var n=this;return p(this,Hr)?new Promise((function(r,o){qe(p(n,zr).config);try{var i,a;if(st(pt(h.infoLogs.VALIDATE_RECORDS,Wr),xe.LOG,p(n,Jr).logLevel),t)t=Xr(Xr({},t),{},{tokens:void 0===(null===(a=t)||void 0===a?void 0:a.tokens)||t.tokens});else t={tokens:!0};null!==(i=t)&&void 0!==i&&i.upsert&&He(t.upsert),Ve(e,t),E().emit(W.PUREJS_REQUEST+p(n,qr),{type:Y,records:e,options:t},(function(e){e.error?(st("".concat(JSON.stringify(e.error)),xe.ERROR,p(n,Jr).logLevel),o(e.error)):r(e)})),st(pt(h.infoLogs.EMIT_PURE_JS_REQUEST,Wr,Y),xe.LOG,p(n,Jr).logLevel)}catch(e){st(e.message,xe.ERROR,p(n,Jr).logLevel),o(e)}})):new Promise((function(r,o){try{var i,a;if(qe(p(n,zr).config),st(pt(h.infoLogs.VALIDATE_RECORDS,Wr),xe.LOG,p(n,Jr).logLevel),t)t=Xr(Xr({},t),{},{tokens:void 0===(null===(a=t)||void 0===a?void 0:a.tokens)||t.tokens});else t={tokens:!0};null!==(i=t)&&void 0!==i&&i.upsert&&He(t.upsert),Ve(e,t),E().target(Ze.IFRAME_SECURE_ORGIN).on(W.PUREJS_FRAME_READY+p(n,qr),(function(){E().emit(W.PUREJS_REQUEST+p(n,qr),{type:Y,records:e,options:t},(function(e){e.error?(st("".concat(JSON.stringify(e.error)),xe.ERROR,p(n,Jr).logLevel),o(e.error)):r(e)}))})),st(pt(h.infoLogs.EMIT_PURE_JS_REQUEST,Wr,Y),xe.LOG,p(n,Jr).logLevel)}catch(e){st(e.message,xe.ERROR,p(n,Jr).logLevel),o(e)}}))}},{key:"getById",value:function(e){var t=this;return p(this,Hr)?new Promise((function(n,r){qe(p(t,zr).config);try{st(pt(h.infoLogs.VALIDATE_GET_BY_ID_INPUT,Wr),xe.LOG,p(t,Jr).logLevel),Fe(e),E().emit(W.PUREJS_REQUEST+p(t,qr),{type:G,records:e.records},(function(e){e.error?r(e.error):n(e)})),st(pt(h.infoLogs.EMIT_PURE_JS_REQUEST,Wr,G),xe.LOG,p(t,Jr).logLevel)}catch(e){st(e.message,xe.ERROR,p(t,Jr).logLevel),r(e)}})):new Promise((function(n,r){try{qe(p(t,zr).config),st(pt(h.infoLogs.VALIDATE_GET_BY_ID_INPUT,Wr),xe.LOG,p(t,Jr).logLevel),Fe(e),E().target(Ze.IFRAME_SECURE_ORGIN).on(W.PUREJS_FRAME_READY+p(t,qr),(function(){E().emit(W.PUREJS_REQUEST+p(t,qr),{type:G,records:e.records},(function(e){e.error?r(e.error):n(e)}))})),st(pt(h.infoLogs.EMIT_PURE_JS_REQUEST,Wr,G),xe.LOG,p(t,Jr).logLevel)}catch(e){st(e.message,xe.ERROR,p(t,Jr).logLevel),r(e)}}))}},{key:"get",value:function(e,t){var n=this;return p(this,Hr)?new Promise((function(r,o){qe(p(n,zr).config);try{st(pt(h.infoLogs.VALIDATE_GET_INPUT,Wr),xe.LOG,p(n,Jr).logLevel),Ye(e,t),E().emit(W.PUREJS_REQUEST+p(n,qr),{type:B,records:e.records,options:t},(function(e){e.error?o(e.error):r(e)})),st(pt(h.infoLogs.EMIT_PURE_JS_REQUEST,Wr,B),xe.LOG,p(n,Jr).logLevel)}catch(e){st(e.message,xe.ERROR,p(n,Jr).logLevel),o(e)}})):new Promise((function(r,o){try{qe(p(n,zr).config),st(pt(h.infoLogs.VALIDATE_GET_INPUT,Wr),xe.LOG,p(n,Jr).logLevel),Ye(e,t),E().target(Ze.IFRAME_SECURE_ORGIN).on(W.PUREJS_FRAME_READY+p(n,qr),(function(){E().emit(W.PUREJS_REQUEST+p(n,qr),{type:B,records:e.records,options:t},(function(e){e.error?o(e.error):r(e)}))})),st(pt(h.infoLogs.EMIT_PURE_JS_REQUEST,Wr,B),xe.LOG,p(n,Jr).logLevel)}catch(e){st(e.message,xe.ERROR,p(n,Jr).logLevel),o(e)}}))}},{key:"delete",value:function(e,t){var n=this;return p(this,Hr)?new Promise((function(r,o){qe(p(n,zr).config);try{st(pt(h.infoLogs.VALIDATE_DELETE_INPUT,Wr),xe.LOG,p(n,Jr).logLevel),Ge(e),E().emit(W.PUREJS_REQUEST+p(n,qr),{type:X,records:e,options:t},(function(e){e.error?(st("".concat(JSON.stringify(e.error)),xe.ERROR,p(n,Jr).logLevel),o(e.error)):r(e)})),st(pt(h.infoLogs.EMIT_PURE_JS_REQUEST,Wr,X),xe.LOG,p(n,Jr).logLevel)}catch(e){st(e.message,xe.ERROR,p(n,Jr).logLevel),o(e)}})):new Promise((function(r,o){try{qe(p(n,zr).config),st(pt(h.infoLogs.VALIDATE_RECORDS,Wr),xe.LOG,p(n,Jr).logLevel),Ge(e),E().target(Ze.IFRAME_SECURE_ORGIN).on(W.PUREJS_FRAME_READY+p(n,qr),(function(){E().emit(W.PUREJS_REQUEST+p(n,qr),{type:X,records:e,options:t},(function(e){e.error?(st("".concat(JSON.stringify(e.error)),xe.ERROR,p(n,Jr).logLevel),o(e.error)):r(e)}))})),st(pt(h.infoLogs.EMIT_PURE_JS_REQUEST,Wr,X),xe.LOG,p(n,Jr).logLevel)}catch(e){st(e.message,xe.ERROR,p(n,Jr).logLevel),o(e)}}))}},{key:"renderFile",value:function(e,t,n,r){var o=this;return p(this,Hr)?new Promise((function(t,i){try{qe(p(o,zr).config),st(pt(h.infoLogs.VALIDATE_RENDER_RECORDS,Wr),xe.LOG,p(o,Jr).logLevel),Xe(e),E().emit(W.RENDER_FILE_REQUEST+p(o,qr),{records:e,containerId:n,iframeName:r},(function(n){n.errors?i(Ut(n,e.column)):t(n)})),st(pt(h.infoLogs.EMIT_EVENT,Wr,W.RENDER_FILE_REQUEST),xe.LOG,p(o,Jr).logLevel)}catch(e){st("Error: ".concat(e.message),xe.ERROR,p(o,Jr).logLevel),i(e)}})):new Promise((function(i,a){try{qe(t.clientJSON.config),st(pt(h.infoLogs.VALIDATE_RENDER_RECORDS,Wr),xe.LOG,p(o,Jr).logLevel),Xe(e),E().target(Ze.IFRAME_SECURE_ORGIN).on(W.PUREJS_FRAME_READY+p(o,qr),(function(){E().emit(W.RENDER_FILE_REQUEST+p(o,qr),{records:e,containerId:n,iframeName:r},(function(t){t.errors?a(Ut(t,e.column)):i(t)})),st(pt(h.infoLogs.EMIT_EVENT,Wr,W.RENDER_FILE_REQUEST),xe.LOG,p(o,Jr).logLevel)})),st(pt(h.infoLogs.EMIT_EVENT,Wr,W.RENDER_FILE_REQUEST),xe.LOG,p(o,Jr).logLevel)}catch(e){st("Error: ".concat(e.message),xe.ERROR,p(o,Jr).logLevel),a(e)}}))}}]),e}();const Zr=Qr;var $r=n(2297),eo=n.n($r);function to(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function no(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?to(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):to(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ro(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ge(e);if(t){var o=ge(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Le(this,n)}}function oo(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var io="CollectContainer",ao=new WeakMap,co=new WeakMap,lo=new WeakMap,so=new WeakMap,po=new WeakMap,uo=new WeakMap,Eo=new WeakMap,fo=new WeakMap,_o=new WeakMap,mo=new WeakMap,vo=new WeakMap,Io=new WeakMap,yo=new WeakMap,To=new WeakMap,Oo=new WeakMap,No=new WeakMap,Lo=new WeakMap,go=new WeakMap,ho=new WeakMap;const Ao=function(e){Ne(n,e);var t=ro(n);function n(e,r,a,c){var l,u;i(this,n),oo(Te(u=t.call(this)),ao,{writable:!0,value:void 0}),oo(Te(u),co,{writable:!0,value:{}}),oo(Te(u),lo,{writable:!0,value:void 0}),oo(Te(u),so,{writable:!0,value:{rows:[]}}),oo(Te(u),po,{writable:!0,value:[]}),oo(Te(u),uo,{writable:!0,value:void 0}),oo(Te(u),Eo,{writable:!0,value:void 0}),oo(Te(u),fo,{writable:!0,value:void 0}),oo(Te(u),_o,{writable:!0,value:!1}),oo(Te(u),mo,{writable:!0,value:void 0}),oo(Te(u),vo,{writable:!0,value:void 0}),o(Te(u),"type",wo.COMPOSABLE),oo(Te(u),Io,{writable:!0,value:!1}),oo(Te(u),yo,{writable:!0,value:{}}),o(Te(u),"create",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{required:!1};ze(e,p(Te(u),uo).logLevel);var n=mr(e.validations),r=vr(e.type,t,p(Te(u),uo).logLevel),o="".concat(k,":").concat(e.type,":").concat(btoa(d()));p(Te(u),po).push(no(no(no({elementType:e.type,name:e.column},e),r),{},{validations:n,elementName:o}));var i="".concat(k,":group:").concat(btoa(p(Te(u),yo)),":").concat(p(Te(u),ao),":").concat(p(Te(u),uo).logLevel);return new lr(o,p(Te(u),fo),i)})),oo(Te(u),To,{writable:!0,value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[];if(s(Te(u),yo,Ln(e)),p(Te(u),yo).rows.forEach((function(e){e.elements.forEach((function(e){var t=e,r=t.elementType;dr(r,t),t.sensitive=t.sensitive||oe[r].sensitive,t.replacePattern=t.replacePattern||oe[r].replacePattern,t.mask=t.mask||oe[r].mask,t.isMounted=!1,t.label=e.label,t.skyflowID=e.skyflowID,n.push(t)}))})),p(Te(u),yo).elementName=t?n[0].elementName:"".concat(k,":group:").concat(btoa(p(Te(u),yo))),t&&!p(Te(u),co)[n[0].elementName]&&p(Te(u),go).call(Te(u),n[0].name))throw new dt(Pe.UNIQUE_ELEMENT_NAME,["".concat(n[0].name)],!0);var r=p(Te(u),co)[p(Te(u),yo).elementName];if(r)t?r.update(n[0]):r.update(p(Te(u),yo));else{var o=d();r=new tr(o,p(Te(u),yo),p(Te(u),lo),{containerId:p(Te(u),ao),isMounted:p(Te(u),Io),type:u.type},!0,p(Te(u),No),p(Te(u),Lo),p(Te(u),uo),p(Te(u),fo)),p(Te(u),co)[p(Te(u),yo).elementName]=r,p(Te(u),Eo)[o]=r}return r}}),oo(Te(u),Oo,{writable:!0,value:function(e){Object.keys(p(Te(u),co)).forEach((function(t){t===e&&delete p(Te(u),co)[t]}))}}),oo(Te(u),No,{writable:!0,value:function(e){e.forEach((function(e){p(Te(u),Oo).call(Te(u),e)}))}}),oo(Te(u),Lo,{writable:!0,value:function(e){e.forEach((function(e){p(Te(u),co)[e.elementName]&&p(Te(u),co)[e.elementName].update(e)}))}}),oo(Te(u),go,{writable:!0,value:function(e){for(var t=Object.keys(p(Te(u),co)),n=0;n<t.length;n+=1)if(atob(t[n].split(":")[2])===e)return!0;return!1}}),o(Te(u),"on",(function(e,t){if(!Object.values(K).includes(e))throw new dt(Pe.INVALID_EVENT_LISTENER,[],!0);if(!t)throw new dt(Pe.MISSING_HANDLER_IN_EVENT_LISTENER,[],!0);if("function"!=typeof t)throw new dt(Pe.INVALID_HANDLER_IN_EVENT_LISTENER,[],!0);p(Te(u),fo).on(K.SUBMIT,(function(){t()}))})),o(Te(u),"mount",(function(e){if(!e)throw new dt(Pe.EMPTY_ELEMENT_IN_MOUNT,["CollectElement"],!0);var t=p(Te(u),mo).layout;if(eo()(t)!==p(Te(u),po).length)throw new dt(Pe.MISMATCH_ELEMENT_COUNT_LAYOUT_SUM,[],!0);var n=0;if(t.forEach((function(e,t){p(Te(u),so).rows=[].concat(ye(p(Te(u),so).rows),[{elements:[]}]);for(var r=0;r<e;r++)p(Te(u),so).rows[t].elements.push(p(Te(u),po)[n]),n++})),p(Te(u),mo).styles&&(p(Te(u),so).styles=no({},p(Te(u),mo).styles)),p(Te(u),mo).errorTextStyles&&(p(Te(u),so).errorTextStyles=no({},p(Te(u),mo).errorTextStyles)),p(Te(u),Io))return s(Te(u),vo,p(Te(u),To).call(Te(u),p(Te(u),so),!1)),p(Te(u),vo).mount(e),void s(Te(u),_o,!0);p(Te(u),fo).on(Z+p(Te(u),ao),(function(){s(Te(u),vo,p(Te(u),To).call(Te(u),p(Te(u),so),!1)),p(Te(u),vo).mount(e),s(Te(u),_o,!0)}))})),o(Te(u),"unmount",(function(){p(Te(u),vo).unmount()})),o(Te(u),"collect",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{tokens:!0};return new Promise((function(t,n){try{if(qe(p(Te(u),lo).clientJSON.config),!p(Te(u),_o))throw new dt(Pe.COMPOSABLE_CONTAINER_NOT_MOUNTED,[],!0);if(_r(p(Te(u),yo)).forEach((function(e){if(null==e||!e.isMounted)throw new dt(Pe.ELEMENTS_NOT_MOUNTED,[],!0)})),Object.values(p(Te(u),co)).forEach((function(e){e.isValidElement()})),e&&e.tokens&&"boolean"!=typeof e.tokens)throw new dt(Pe.INVALID_TOKENS_IN_COLLECT,[],!0);null!=e&&e.additionalFields&&Ue(e.additionalFields),null!=e&&e.upsert&&He(null==e?void 0:e.upsert),E().emit(W.TOKENIZATION_REQUEST+p(Te(u),ao),no(no({},e),{},{tokens:void 0===(null==e?void 0:e.tokens)||e.tokens}),(function(e){!e||null!=e&&e.error?(st("".concat(JSON.stringify(null==e?void 0:e.error)),xe.ERROR,p(Te(u),uo).logLevel),n(null==e?void 0:e.error)):(st(pt(h.infoLogs.COLLECT_SUBMIT_SUCCESS,io),xe.LOG,p(Te(u),uo).logLevel),t(e))})),st(pt(h.infoLogs.EMIT_EVENT,io,W.TOKENIZATION_REQUEST),xe.LOG,p(Te(u),uo).logLevel)}catch(e){st("".concat(e.message),xe.ERROR,p(Te(u),uo).logLevel),n(e)}}))})),oo(Te(u),ho,{writable:!0,value:function(){p(Te(u),fo).on(W.COMPOSABLE_UPDATE_OPTIONS,(function(e){var t,n=p(Te(u),po).map((function(n,r){return n.elementName===e.elementName?(t=r,no({elementName:n.elementName},e.elementOptions)):n}));p(Te(u),vo)&&p(Te(u),vo).updateElement(no({},n[t]))}))}}),s(Te(u),ao,d()),s(Te(u),lo,no(no({},r),{},{clientJSON:no(no({},r.clientJSON),{},{config:no(no({},r.clientJSON.config),{},{options:no(no({},null===(l=r.clientJSON.config)||void 0===l?void 0:l.options),e)})})})),s(Te(u),Eo,a),s(Te(u),uo,c),s(Te(u),mo,e),s(Te(u),fo,new yt);var f=p(Te(u),lo).clientDomain||"",_=gt({name:"".concat(P,":").concat(p(Te(u),ao),":").concat(p(Te(u),uo).logLevel,":").concat(btoa(f)),referrer:f});Lt(_,{src:ht()}),At(_,no({},ce)),st(pt(h.infoLogs.CREATE_COLLECT_CONTAINER,io),xe.LOG,p(Te(u),uo).logLevel);return E().target(Ze.IFRAME_SECURE_ORGIN).on(W.FRAME_READY+p(Te(u),ao),(function e(t,n){t.name===P+p(Te(u),ao)&&(n(no(no({},r),{},{clientJSON:no(no({},r.clientJSON),{},{config:no({},r.clientJSON.config)}),context:c})),s(Te(u),Io,!0),p(Te(u),fo)._emit(Z+p(Te(u),ao),{containerId:p(Te(u),ao)}),E().target(Ze.IFRAME_SECURE_ORGIN).off(W.FRAME_READY+p(Te(u),ao),e))})),document.body.append(_),p(Te(u),ho).call(Te(u)),u}return c(n)}(Rt);function Ro(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ro(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ro(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function So(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var wo=function(e){return e.COLLECT="COLLECT",e.REVEAL="REVEAL",e.COMPOSABLE="COMPOSABLE",e}({}),Do="Skyflow",xo=new WeakMap,Mo=new WeakMap,Po=new WeakMap,Co=new WeakMap,ko=new WeakMap,Vo=new WeakMap,Uo=new WeakMap,jo=new WeakMap,Yo=new WeakMap,Fo=function(){function t(e){var n,r,o=this;i(this,t),So(this,xo,{writable:!0,value:void 0}),So(this,Mo,{writable:!0,value:d()}),So(this,Po,{writable:!0,value:{uuid:p(this,Mo),clientDomain:window.location.origin}}),So(this,Co,{writable:!0,value:void 0}),So(this,ko,{writable:!0,value:""}),So(this,Vo,{writable:!0,value:void 0}),So(this,Uo,{writable:!0,value:void 0}),So(this,jo,{writable:!0,value:void 0}),So(this,Yo,{writable:!0,value:void 0});var a=localStorage.getItem("sdk_version")||"";p(this,Po).sdkVersion=a,p(this,Po).session_id=d(),s(this,xo,new It(bo({},e),p(this,Po))),s(this,Uo,(null==e||null===(n=e.options)||void 0===n?void 0:n.logLevel)||we.ERROR),s(this,jo,(null==e||null===(r=e.options)||void 0===r?void 0:r.env)||De.PROD),s(this,Yo,{}),s(this,Co,new Zr(p(this,xo),{logLevel:p(this,Uo),env:p(this,jo)}));E().target(Ze.IFRAME_SECURE_ORGIN).on(W.GET_BEARER_TOKEN+p(this,Mo),(function(e,t){st(pt(h.infoLogs.CAPTURED_BEARER_TOKEN_EVENT,Do),xe.LOG,p(o,Uo)),!p(o,xo).config.getBearerToken||p(o,ko)&&Gr(p(o,ko))?(st(pt(h.infoLogs.REUSE_BEARER_TOKEN,Do),xe.LOG,p(o,Uo)),t({authToken:p(o,ko)})):p(o,xo).config.getBearerToken().then((function(e){Gr(e)?(st(pt(h.infoLogs.BEARER_TOKEN_RESOLVED,Do),xe.LOG,p(o,Uo)),s(o,ko,e),t({authToken:p(o,ko)})):(st(pt(h.errorLogs.INVALID_BEARER_TOKEN),xe.ERROR,p(o,Uo)),t({error:pt(h.errorLogs.INVALID_BEARER_TOKEN)}))})).catch((function(e){st(pt(h.errorLogs.BEARER_TOKEN_REJECTED),xe.ERROR,p(o,Uo)),t({error:e})}))})),st(pt(h.infoLogs.BEARER_TOKEN_LISTENER,Do),xe.LOG,p(this,Uo)),st(pt(h.infoLogs.CURRENT_ENV,Do,p(this,jo)),xe.LOG,p(this,Uo)),st(pt(h.infoLogs.CURRENT_LOG_LEVEL,Do,p(this,Uo)),xe.LOG,p(this,Uo))}return c(t,[{key:"container",value:function(t,n){switch(t){case wo.COLLECT:var r=new kr(n,bo(bo({},p(this,Po)),{},{clientJSON:p(this,xo).toJSON(),containerType:t}),p(this,Yo),{logLevel:p(this,Uo),env:p(this,jo)});return st(pt(h.infoLogs.COLLECT_CONTAINER_CREATED,Do),xe.LOG,p(this,Uo)),r;case wo.REVEAL:var o=new Nn(bo(bo({},p(this,Po)),{},{clientJSON:p(this,xo).toJSON(),containerType:t,skyflowContainer:p(this,Co)}),p(this,Yo),{logLevel:p(this,Uo)},n);return st(pt(h.infoLogs.REVEAL_CONTAINER_CREATED,Do),xe.LOG,p(this,Uo)),o;case wo.COMPOSABLE:!function(t){if(!t)throw new dt(Pe.MISSING_COMPOSABLE_CONTAINER_OPTIONS,[],!0);if("object"!==e(t))throw new dt(Pe.INVALID_COMPOSABLE_CONTAINER_OPTIONS,[],!0);if(!Object.prototype.hasOwnProperty.call(t,"layout"))throw new dt(Pe.MISSING_COMPOSABLE_LAYOUT_KEY,[],!0);if(!t.layout)throw new dt(Pe.INVALID_COMPOSABLE_LAYOUT_TYPE,[],!0);if(!Array.isArray(t.layout))throw new dt(Pe.INVALID_COMPOSABLE_LAYOUT_TYPE,[],!0);if(0===t.layout.length)throw new dt(Pe.EMPTY_COMPOSABLE_LAYOUT_ARRAY,[],!0);t.layout.forEach((function(e){if("number"!=typeof e)throw new dt(Pe.INVALID_COMPOSABLE_LAYOUT_TYPE,[],!0);if(e<0)throw new dt(Pe.NEGATIVE_VALUES_COMPOSABLE_LAYOUT,[],!0)}))}(n);var i=new Ao(n,bo(bo({},p(this,Po)),{},{clientJSON:p(this,xo).toJSON(),containerType:t}),p(this,Yo),{logLevel:p(this,Uo),env:p(this,jo)});return st(pt(h.infoLogs.COLLECT_CONTAINER_CREATED,Do),xe.LOG,p(this,Uo)),i;default:if(!t)throw new dt(Pe.EMPTY_CONTAINER_TYPE,[],!0);throw new dt(Pe.INVALID_CONTAINER_TYPE,[t],!0)}}},{key:"insert",value:function(e,t){return st(pt(h.infoLogs.INSERT_TRIGGERED,Do),xe.LOG,p(this,Uo)),p(this,Co).insert(e,t)}},{key:"detokenize",value:function(e){return st(pt(h.infoLogs.DETOKENIZE_TRIGGERED,Do),xe.LOG,p(this,Uo)),p(this,Co).detokenize(e)}},{key:"getById",value:function(e){return st(h.warnLogs.GET_BY_ID_DEPRECATED,xe.WARN,p(this,Uo)),st(pt(h.infoLogs.GET_BY_ID_TRIGGERED,Do),xe.LOG,p(this,Uo)),p(this,Co).getById(e)}},{key:"get",value:function(e,t){return st(pt(h.infoLogs.GET_TRIGGERED,Do),xe.LOG,p(this,Uo)),p(this,Co).get(e,t)}},{key:"delete",value:function(e,t){return st(pt(h.infoLogs.DELETE_TRIGGERED,Do),xe.LOG,p(this,Uo)),p(this,Co).delete(e,t)}}],[{key:"init",value:function(e){var n,r=(null==e||null===(n=e.options)||void 0===n?void 0:n.logLevel)||we.ERROR;!function(e){var t,n;if(null!=e&&null!==(t=e.options)&&void 0!==t&&t.customElementsURL&&Ke(null==e||null===(n=e.options)||void 0===n?void 0:n.customElementsURL)){var r,o,i=null==e||null===(r=e.options)||void 0===r?void 0:r.customElementsURL,a=new URL(i),c=a.protocol,l=a.hostname,s="".concat(c,"//").concat(l);Ze.IFRAME_SECURE_ORGIN=s,Ze.IFRAME_SECURE_SITE=null==e||null===(o=e.options)||void 0===o?void 0:o.customElementsURL}}(e),st(pt(h.infoLogs.INITIALIZE_CLIENT,Do),xe.LOG,r);var o,i=e;i.vaultURL="string"!=typeof(o=e.vaultURL)?o:"/"===(null==o?void 0:o.trim().slice(-1))?o.slice(0,-1):o.trim();var a=new t(i);return st(pt(h.infoLogs.CLIENT_INITIALIZED,Do),xe.LOG,r),a}},{key:"ContainerType",get:function(){return wo}},{key:"ElementType",get:function(){return te}},{key:"RedactionType",get:function(){return Re}},{key:"RequestMethod",get:function(){return be}},{key:"LogLevel",get:function(){return we}},{key:"EventName",get:function(){return Se}},{key:"Env",get:function(){return De}},{key:"ValidationRuleType",get:function(){return Me}},{key:"CardType",get:function(){return ne}},{key:"Error",get:function(){return dt}}]),t}();const Go=Fo})(),r})()));