skyflow-js 2.5.0-beta.5 → 2.5.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/sdkNodeBuild/index.js +1 -1
- package/dist/sdkNodeBuild/index.js.gz +0 -0
- package/package.json +1 -1
- package/types/core/constants.d.ts +12 -2
- package/types/core/external/collect/collect-container.d.ts +0 -1
- package/types/core/external/collect/collect-element.d.ts +0 -2
- package/types/core/external/collect/compose-collect-container.d.ts +2 -1
- package/types/core/external/reveal/composable-reveal-container.d.ts +14 -0
- package/types/core/external/reveal/composable-reveal-element.d.ts +10 -0
- package/types/core/external/reveal/composable-reveal-internal.d.ts +29 -0
- package/types/core/external/reveal/reveal-element.d.ts +0 -2
- package/types/core/internal/composable-frame-element-init.d.ts +21 -0
- package/types/core/internal/frame-element-init.d.ts +6 -0
- package/types/core/internal/iframe-form/index.d.ts +0 -27
- package/types/core/internal/index.d.ts +2 -1
- package/types/core/internal/reveal/reveal-frame.d.ts +6 -1
- package/types/core/internal/skyflow-frame/skyflow-frame-controller.d.ts +1 -2
- package/types/core-utils/collect.d.ts +2 -0
- package/types/core-utils/reveal.d.ts +13 -1
- package/types/skyflow.d.ts +4 -1
- package/types/utils/common/index.d.ts +8 -0
- package/types/utils/constants.d.ts +4 -0
- package/types/utils/logs.d.ts +2 -4
|
@@ -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={841: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)}))}},4148:(e,t,n)=>{"use strict";var r=n(5606),o=n(6763);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(9597).codes,u=p.ERR_AMBIGUOUS_ARGUMENT,d=p.ERR_INVALID_ARG_TYPE,f=p.ERR_INVALID_ARG_VALUE,E=p.ERR_INVALID_RETURN_VALUE,_=p.ERR_MISSING_ARGS,m=n(3918),I=n(537).inspect,v=n(537).types,y=v.isPromise,O=v.isRegExp,g=n(1514)(),N=n(9394)(),L=n(8075)("RegExp.prototype.test");new Map;function T(){var e=n(2299);l=e.isDeepEqual,s=e.isDeepStrictEqual}var h=!1,b=e.exports=S,A={};function w(e){if(e.message instanceof Error)throw e.message;throw new m(e)}function R(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 S(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];R.apply(void 0,[S,t.length].concat(t))}b.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},b.AssertionError=m,b.ok=S,b.equal=function e(t,n,r){if(arguments.length<2)throw new _("actual","expected");t!=n&&w({actual:t,expected:n,message:r,operator:"==",stackStartFn:e})},b.notEqual=function e(t,n,r){if(arguments.length<2)throw new _("actual","expected");t==n&&w({actual:t,expected:n,message:r,operator:"!=",stackStartFn:e})},b.deepEqual=function e(t,n,r){if(arguments.length<2)throw new _("actual","expected");void 0===l&&T(),l(t,n)||w({actual:t,expected:n,message:r,operator:"deepEqual",stackStartFn:e})},b.notDeepEqual=function e(t,n,r){if(arguments.length<2)throw new _("actual","expected");void 0===l&&T(),l(t,n)&&w({actual:t,expected:n,message:r,operator:"notDeepEqual",stackStartFn:e})},b.deepStrictEqual=function e(t,n,r){if(arguments.length<2)throw new _("actual","expected");void 0===l&&T(),s(t,n)||w({actual:t,expected:n,message:r,operator:"deepStrictEqual",stackStartFn:e})},b.notDeepStrictEqual=function e(t,n,r){if(arguments.length<2)throw new _("actual","expected");void 0===l&&T();s(t,n)&&w({actual:t,expected:n,message:r,operator:"notDeepStrictEqual",stackStartFn:e})},b.strictEqual=function e(t,n,r){if(arguments.length<2)throw new _("actual","expected");N(t,n)||w({actual:t,expected:n,message:r,operator:"strictEqual",stackStartFn:e})},b.notStrictEqual=function e(t,n,r){if(arguments.length<2)throw new _("actual","expected");N(t,n)&&w({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]&&O(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(O(t))return L(t,e);if(2===arguments.length)throw new d("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 f("error",t,"may not be an empty object");return void 0===l&&T(),a.forEach((function(o){"string"==typeof e[o]&&O(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}w({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 d("fn","Function",e);try{e()}catch(e){return e}return A}function C(e){return y(e)||null!==e&&"object"===i(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function P(e){return Promise.resolve().then((function(){var t;if("function"==typeof e){if(!C(t=e()))throw new E("instance of Promise","promiseFn",t)}else{if(!C(e))throw new d("promiseFn",["Function","Promise"],e);t=e}return Promise.resolve().then((function(){return t})).then((function(){return A})).catch((function(e){return e}))}))}function k(e,t,n,r){if("string"==typeof n){if(4===arguments.length)throw new d("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 d("error",["Object","Error","Function","RegExp"],n);if(t===A){var o="";n&&n.name&&(o+=" (".concat(n.name,")")),o+=r?": ".concat(r):".";var a="rejects"===e.name?"rejection":"exception";w({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!==A){if("string"==typeof n&&(r=n,n=void 0),!n||x(t,n)){var o=r?": ".concat(r):".",i="doesNotReject"===e.name?"rejection":"exception";w({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 j(e,t,n,r,o){if(!O(t))throw new d("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(I(e),")"):(a?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(I(t),". Input:\n\n").concat(I(e),"\n"));var l=new m({actual:e,expected:t,message:n,operator:o,stackStartFn:r});throw l.generatedMessage=c,l}}function U(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];R.apply(void 0,[U,t.length].concat(t))}b.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))},b.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 P(t).then((function(t){return k.apply(void 0,[e,t].concat(r))}))},b.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))},b.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 P(t).then((function(t){return V.apply(void 0,[e,t].concat(r))}))},b.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+=I(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}},b.match=function e(t,n,r){j(t,n,r,e,"match")},b.doesNotMatch=function e(t,n,r){j(t,n,r,e,"doesNotMatch")},b.strict=g(U,b,{equal:b.strictEqual,deepEqual:b.deepStrictEqual,notEqual:b.notStrictEqual,notDeepEqual:b.notDeepStrictEqual}),b.strict.strict=b.strict},3918:(e,t,n)=>{"use strict";var r=n(5606);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 d(e,arguments,_(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),E(r,e)},u(e)}function d(e,t,n){return d=f()?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&&E(o,n.prototype),o},d.apply(null,arguments)}function f(){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 E(e,t){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},E(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 I=n(537).inspect,v=n(9597).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 O="",g="",N="",L="",T={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 b(e){return I(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function A(e,t,n){var o="",i="",a=0,c="",l=!1,s=b(e),p=s.split("\n"),u=b(t).split("\n"),d=0,f="";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 E=p[0].length+u[0].length;if(E<=10){if(!("object"===m(e)&&null!==e||"object"===m(t)&&null!==t||0===e&&0===t))return"".concat(T[n],"\n\n")+"".concat(p[0]," !== ").concat(u[0],"\n")}else if("strictEqualObject"!==n){if(E<(r.stderr&&r.stderr.isTTY?r.stderr.columns:80)){for(;p[0][d]===u[0][d];)d++;d>2&&(f="\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)}(" ",d),"^"),d=0)}}}for(var _=p[p.length-1],I=u[u.length-1];_===I&&(d++<2?c="\n ".concat(_).concat(c):o=_,p.pop(),u.pop(),0!==p.length&&0!==u.length);)_=p[p.length-1],I=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(O,"...").concat(L);h.length>27;)h.pop();return"".concat(T.notIdentical,"\n\n").concat(h.join("\n"),"\n")}d>3&&(c="\n".concat(O,"...").concat(L).concat(c),l=!0),""!==o&&(c="\n ".concat(o).concat(c),o="");var A=0,w=T[n]+"\n".concat(g,"+ actual").concat(L," ").concat(N,"- expected").concat(L),R=" ".concat(O,"...").concat(L," Lines skipped");for(d=0;d<v;d++){var S=d-a;if(p.length<d+1)S>1&&d>2&&(S>4?(i+="\n".concat(O,"...").concat(L),l=!0):S>3&&(i+="\n ".concat(u[d-2]),A++),i+="\n ".concat(u[d-1]),A++),a=d,o+="\n".concat(N,"-").concat(L," ").concat(u[d]),A++;else if(u.length<d+1)S>1&&d>2&&(S>4?(i+="\n".concat(O,"...").concat(L),l=!0):S>3&&(i+="\n ".concat(p[d-2]),A++),i+="\n ".concat(p[d-1]),A++),a=d,i+="\n".concat(g,"+").concat(L," ").concat(p[d]),A++;else{var D=u[d],x=p[d],M=x!==D&&(!y(x,",")||x.slice(0,-1)!==D);M&&y(D,",")&&D.slice(0,-1)===x&&(M=!1,x+=","),M?(S>1&&d>2&&(S>4?(i+="\n".concat(O,"...").concat(L),l=!0):S>3&&(i+="\n ".concat(p[d-2]),A++),i+="\n ".concat(p[d-1]),A++),a=d,i+="\n".concat(g,"+").concat(L," ").concat(x),o+="\n".concat(N,"-").concat(L," ").concat(D),A+=2):(i+=o,o="",1!==S&&0!==d||(i+="\n ".concat(x),A++))}if(A>20&&d<v-2)return"".concat(w).concat(R,"\n").concat(i,"\n").concat(O,"...").concat(L).concat(o,"\n")+"".concat(O,"...").concat(L)}return"".concat(w).concat(l?R:"","\n").concat(i).concat(o).concat(c).concat(f)}var w=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&&E(e,t)}(y,e);var n,o,a,l,u,d=(n=y,o=f(),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 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=d.call(this,String(n));else if(r.stderr&&r.stderr.isTTY&&(r.stderr&&r.stderr.getColorDepth&&1!==r.stderr.getColorDepth()?(O="[34m",g="[32m",L="[39m",N="[31m"):(O="",g="",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=d.call(this,A(a,c,o));else if("notDeepStrictEqual"===o||"notStrictEqual"===o){var u=T[o],f=b(a).split("\n");if("notStrictEqual"===o&&"object"===m(a)&&null!==a&&(u=T.notStrictEqualObject),f.length>30)for(f[26]="".concat(O,"...").concat(L);f.length>27;)f.pop();t=1===f.length?d.call(this,"".concat(u," ").concat(f[0])):d.call(this,"".concat(u,"\n\n").concat(f.join("\n"),"\n"))}else{var E=b(a),_="",I=T[o];"notDeepEqual"===o||"notEqual"===o?(E="".concat(T[o],"\n\n").concat(E)).length>1024&&(E="".concat(E.slice(0,1021),"...")):(_="".concat(b(c)),E.length>512&&(E="".concat(E.slice(0,509),"...")),_.length>512&&(_="".concat(_.slice(0,509),"...")),"deepEqual"===o||"equal"===o?E="".concat(I,"\n\n").concat(E,"\n\nshould equal\n\n"):_=" ".concat(o," ").concat(_)),t=d.call(this,"".concat(E).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 I(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),I.custom);e.exports=w},9597:(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 d(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(4148)),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(d(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(d(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(537));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(4148)),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},2299:(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(7653),p=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},u=Number.isNaN?Number.isNaN:n(4133);function d(e){return e.call.bind(e)}var f=d(Object.prototype.hasOwnProperty),E=d(Object.prototype.propertyIsEnumerable),_=d(Object.prototype.toString),m=n(537).types,I=m.isAnyArrayBuffer,v=m.isArrayBufferView,y=m.isDate,O=m.isMap,g=m.isRegExp,N=m.isSet,L=m.isNativeError,T=m.isBoxedPrimitive,h=m.isNumberObject,b=m.isStringObject,A=m.isBooleanObject,w=m.isBigIntObject,R=m.isSymbolObject,S=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 C(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}function P(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,d=_(e);if(d!==_(t))return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;var f=M(e),E=M(t);return f.length===E.length&&V(e,t,n,r,1,f)}if("[object Object]"===d&&(!O(e)&&O(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(g(e)){if(!g(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===C(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&&V(e,t,n,r,0,m)}if(N(e))return!(!N(t)||e.size!==t.size)&&V(e,t,n,r,2);if(O(e))return!(!O(t)||e.size!==t.size)&&V(e,t,n,r,3);if(I(e)){if(c=t,(o=e).byteLength!==c.byteLength||0!==C(new Uint8Array(o),new Uint8Array(c)))return!1}else if(T(e)&&!function(e,t){return h(e)?h(t)&&s(Number.prototype.valueOf.call(e),Number.prototype.valueOf.call(t)):b(e)?b(t)&&String.prototype.valueOf.call(e)===String.prototype.valueOf.call(t):A(e)?A(t)&&Boolean.prototype.valueOf.call(e)===Boolean.prototype.valueOf.call(t):w(e)?w(t)&&BigInt.prototype.valueOf.call(e)===BigInt.prototype.valueOf.call(t):R(t)&&Symbol.prototype.valueOf.call(e)===Symbol.prototype.valueOf.call(t)}(e,t))return!1}return V(e,t,n,r,0)}function k(e,t){return t.filter((function(t){return E(e,t)}))}function V(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 d=0;d<s.length;d++)if(!f(t,s[d]))return!1;if(n&&5===arguments.length){var _=p(e);if(0!==_.length){var m=0;for(d=0;d<_.length;d++){var I=_[d];if(E(e,I)){if(!E(t,I))return!1;s.push(I),m++}else if(E(t,I))return!1}var v=p(t);if(_.length!==v.length&&k(t,v).length!==m)return!1}else{var y=p(t);if(0!==y.length&&0!==k(t,y).length)return!1}}if(0===s.length&&(0===a||1===a&&0===e.length||0===e.size))return!0;if(void 0===o)o={val1:new Map,val2:new Map,position:0};else{var O=o.val1.get(e);if(void 0!==O){var g=o.val2.get(t);if(void 0!==g)return O===g}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(2===s){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(!F(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 d=p[u];if("object"===i(d)&&null!==d){if(!j(o,d,n,r))return!1}else if(!n&&!e.has(d)&&!j(o,d,n,r))return!1}return 0===o.size}return!0}(e,t,n,a))return!1}else if(3===s){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],d=p[1];if("object"===i(u)&&null!==u)null===a&&(a=new Set),a.add(u);else{var f=t.get(u);if(void 0===f&&!t.has(u)||!P(d,f,n,o)){if(n)return!1;if(!G(e,t,u,d,o))return!1;null===a&&(a=new Set),a.add(u)}}}if(null!==a){for(var E=l(t),_=0;_<E.length;_++){var m=r(E[_],2),I=m[0],v=m[1];if("object"===i(I)&&null!==I){if(!Y(a,e,I,v,n,o))return!1}else if(!(n||e.has(I)&&P(e.get(I),v,!1,o)||Y(a,e,I,v,!1,o)))return!1}return 0===a.size}return!0}(e,t,n,a))return!1}else if(1===s)for(;p<e.length;p++){if(!f(e,p)){if(f(t,p))return!1;for(var u=Object.keys(e);p<u.length;p++){var d=u[p];if(!f(t,d)||!P(e[d],t[d],n,a))return!1}return u.length===Object.keys(t).length}if(!f(t,p)||!P(e[p],t[p],n,a))return!1}for(p=0;p<o.length;p++){var E=o[p];if(!P(e[E],t[E],n,a))return!1}return!0}(e,t,n,s,o,a);return o.val1.delete(e),o.val2.delete(t),N}function j(e,t,n,r){for(var o=c(e),i=0;i<o.length;i++){var a=o[i];if(P(t,a,n,r))return e.delete(a),!0}return!1}function U(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 F(e,t,n){var r=U(n);return null!=r?r:t.has(r)&&!e.has(r)}function G(e,t,n,r,o){var i=U(n);if(null!=i)return i;var a=t.get(i);return!(void 0===a&&!t.has(i)||!P(r,a,!1,o))&&(!e.has(i)&&P(r,a,!1,o))}function Y(e,t,n,r,o,i){for(var a=c(e),l=0;l<a.length;l++){var s=a[l];if(P(n,s,o,i)&&P(r,t.get(s),o,i))return e.delete(s),!0}return!1}e.exports={isDeepEqual:function(e,t){return P(e,t,false)},isDeepStrictEqual:function(e,t){return P(e,t,true)}}},8075:(e,t,n)=>{"use strict";var r=n(453),o=n(487),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}},487:(e,t,n)=>{"use strict";var r=n(6743),o=n(453),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},6763:(e,t,n)=>{var r=n(537),o=n(4148);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],d=u[0],f=u[1];a[f]||(a[f]=d)}e.exports=a},41:(e,t,n)=>{"use strict";var r=n(592)(),o=n(453),i=r&&o("%Object.defineProperty%",!0),a=o("%SyntaxError%"),c=o("%TypeError%"),l=n(5795);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}}},8452:(e,t,n)=>{"use strict";var r=n(1189),o="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),i=Object.prototype.toString,a=Array.prototype.concat,c=n(41),l=n(592)(),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},2682:(e,t,n)=>{"use strict";var r=n(9600),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)}},6096:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Framebus=void 0;var r=n(9275),o=n(2926),i=n(9974),a=n(3678),c=n(6968),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},2281:(e,t,n)=>{"use strict";var r=n(7920),o=new(n(6096).Framebus);r.attach(),e.exports=o},7920:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.detach=t.attach=void 0;var r=n(3610),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)}},1117:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.broadcastToChildWindows=void 0;var r=n(9974),o=n(6968);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)}}},9974:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.broadcast=void 0;var r=n(5213);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){}}},6968:(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={}},9923:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dispatch=void 0;var r=n(6968);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)}}},5213:(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))}},9275:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isntString=void 0,t.isntString=function(e){return"string"!=typeof e}},3610:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.onmessage=void 0;var r=n(9275),o=n(9752),i=n(9923),a=n(1117);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)}}}},3678:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packagePayload=void 0;var r=n(5159),o=n(6968);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}},5159: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(6096),i=r(n(841));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}},2926:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.subscriptionArgsInvalid=void 0;var r=n(9275);t.subscriptionArgsInvalid=function(e,t,n){return!!r.isntString(e)||("function"!=typeof t||r.isntString(n))}},9752:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unpackPayload=void 0;var r=n(6968),o=n(3678);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}},9353: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}},6743:(e,t,n)=>{"use strict";var r=n(9353);e.exports=Function.prototype.bind||r},453:(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(4039)(),d=n(24)(),f=Object.getPrototypeOf||(d?function(e){return e.__proto__}:null),E={},_="undefined"!=typeof Uint8Array&&f?f(Uint8Array):r,m={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":u&&f?f([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":E,"%AsyncGenerator%":E,"%AsyncGeneratorFunction%":E,"%AsyncIteratorPrototype%":E,"%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%":E,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":u&&f?f(f([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&u&&f?f((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&&f?f((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":u&&f?f(""[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(f)try{null.error}catch(e){var I=f(f(e));m["%Error.prototype%"]=I}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&&f&&(n=f(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"]},O=n(6743),g=n(9030),N=O.call(Function.call,Array.prototype.concat),L=O.call(Function.apply,Array.prototype.splice),T=O.call(Function.call,String.prototype.replace),h=O.call(Function.call,String.prototype.slice),b=O.call(Function.call,RegExp.prototype.exec),A=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,w=/\\(\\)?/g,R=function(e,t){var n,r=e;if(g(y,r)&&(r="%"+(n=y[r])[0]+"%"),g(m,r)){var i=m[r];if(i===E&&(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===b(/^%?[^%]*%?$/,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 T(e,A,(function(e,t,n,o){r[r.length]=n?T(o,w,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",i=R("%"+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 d=1,f=!0;d<n.length;d+=1){var E=n[d],_=h(E,0,1),I=h(E,-1);if(('"'===_||"'"===_||"`"===_||'"'===I||"'"===I||"`"===I)&&_!==I)throw new o("property names with quotes must have matching quotes");if("constructor"!==E&&f||(p=!0),g(m,c="%"+(r+="."+E)+"%"))s=m[c];else if(null!=s){if(!(E in s)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(l&&d+1>=n.length){var v=l(s,E);s=(f=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:s[E]}else f=g(s,E),s=s[E];f&&!p&&(m[c]=s)}}return s}},5795:(e,t,n)=>{"use strict";var r=n(453)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(e){r=null}e.exports=r},592:(e,t,n)=>{"use strict";var r=n(453)("%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},24:e=>{"use strict";var t={foo:{}},n=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!({__proto__:null}instanceof n)}},4039:(e,t,n)=>{"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(1333);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},1333: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}},9092:(e,t,n)=>{"use strict";var r=n(1333);e.exports=function(){return r()&&!!Symbol.toStringTag}},9030:(e,t,n)=>{"use strict";var r=n(6743);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},6698: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}}},7244:(e,t,n)=>{"use strict";var r=n(9092)(),o=n(8075)("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},9600: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 d=document.all;l.call(d)===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)}},8184:(e,t,n)=>{"use strict";var r,o=Object.prototype.toString,i=Function.prototype.toString,a=/^\s*(?:function)?\*/,c=n(9092)(),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}},3003:e=>{"use strict";e.exports=function(e){return e!=e}},4133:(e,t,n)=>{"use strict";var r=n(487),o=n(8452),i=n(3003),a=n(6642),c=n(2464),l=r(a(),Number);o(l,{getPolyfill:a,implementation:i,shim:c}),e.exports=l},6642:(e,t,n)=>{"use strict";var r=n(3003);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:r}},2464:(e,t,n)=>{"use strict";var r=n(8452),o=n(6642);e.exports=function(){var e=o();return r(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},5680:(e,t,n)=>{"use strict";var r=n(5767);e.exports=function(e){return!!r(e)}},7721: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}},3488:e=>{e.exports=function(e){return e}},6119:(e,t,n)=>{var r=n(7721),o=n(3488);e.exports=function(e){return e&&e.length?r(e,o):0}},8673: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},125:(e,t,n)=>{"use strict";let r=n(8673);e.exports=new r(n(8446),n(1453))},1453: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"]}},8446: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"]}},9211: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))}},7653:(e,t,n)=>{"use strict";var r=n(8452),o=n(487),i=n(9211),a=n(9394),c=n(6576),l=o(a(),Object);r(l,{getPolyfill:a,implementation:i,shim:c}),e.exports=l},9394:(e,t,n)=>{"use strict";var r=n(9211);e.exports=function(){return"function"==typeof Object.is?Object.is:r}},6576:(e,t,n)=>{"use strict";var r=n(9394),o=n(8452);e.exports=function(){var e=r();return o(Object,{is:e},{is:function(){return Object.is!==e}}),e}},8875:(e,t,n)=>{"use strict";var r;if(!Object.keys){var o=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=n(1093),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},d={$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},f=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!d["$"+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),d=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var E=s&&n;if(c&&e.length>0&&!o.call(e,0))for(var _=0;_<e.length;++_)d.push(String(_));if(r&&e.length>0)for(var m=0;m<e.length;++m)d.push(String(m));else for(var I in e)E&&"prototype"===I||!o.call(e,I)||d.push(String(I));if(l)for(var v=function(e){if("undefined"==typeof window||!f)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])||d.push(p[y]);return d}}e.exports=r},1189:(e,t,n)=>{"use strict";var r=Array.prototype.slice,o=n(1093),i=Object.keys,a=i?function(e){return i(e)}:n(8875),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},1093: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}},8403:(e,t,n)=>{"use strict";var r=n(1189),o=n(1333)(),i=n(8075),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),d=o&&(Object.getOwnPropertySymbols||s);if(d)for(var f=d(p),E=0;E<f.length;++E){var _=f[E];l(p,_)&&c(u,_)}for(var m=0;m<u.length;++m){var I=u[m];if(l(p,I)){var v=p[I];n[I]=v}}}return n}},1514:(e,t,n)=>{"use strict";var r=n(8403);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}},5606: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&&d())}function d(){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 f(e,t){this.fun=e,this.array=t}function E(){}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 f(e,t)),1!==l.length||s||a(d)},f.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=E,r.addListener=E,r.once=E,r.off=E,r.removeListener=E,r.removeAllListeners=E,r.emit=E,r.prependListener=E,r.prependOnceListener=E,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}},1135:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},9032:(e,t,n)=>{"use strict";var r=n(7244),o=n(8184),i=n(5767),a=n(5680);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),d=c(String.prototype.valueOf),f=c(Boolean.prototype.valueOf);if(l)var E=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 I(e){return"[object Map]"===p(e)}function v(e){return"[object Set]"===p(e)}function y(e){return"[object WeakMap]"===p(e)}function O(e){return"[object WeakSet]"===p(e)}function g(e){return"[object ArrayBuffer]"===p(e)}function N(e){return"undefined"!=typeof ArrayBuffer&&(g.working?g(e):e instanceof ArrayBuffer)}function L(e){return"[object DataView]"===p(e)}function T(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)||T(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)},I.working="undefined"!=typeof Map&&I(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(I.working?I(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)},O.working="undefined"!=typeof WeakSet&&O(new WeakSet),t.isWeakSet=function(e){return O(e)},g.working="undefined"!=typeof ArrayBuffer&&g(new ArrayBuffer),t.isArrayBuffer=N,L.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&L(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=T;var h="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function b(e){return"[object SharedArrayBuffer]"===p(e)}function A(e){return void 0!==h&&(void 0===b.working&&(b.working=b(new h)),b.working?b(e):e instanceof h)}function w(e){return m(e,u)}function R(e){return m(e,d)}function S(e){return m(e,f)}function D(e){return l&&m(e,E)}function x(e){return s&&m(e,_)}t.isSharedArrayBuffer=A,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=w,t.isStringObject=R,t.isBooleanObject=S,t.isBigIntObject=D,t.isSymbolObject=x,t.isBoxedPrimitive=function(e){return w(e)||R(e)||S(e)||D(e)||x(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(N(e)||A(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))},537:(e,t,n)=>{var r=n(5606),o=n(6763),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(!O(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:"v2.5.0-beta.5/elements/index.html",IFRAME_SECURE_ORIGIN:"https://js.skyflow-preview.com"}.NODE_DEBUG){var s={IFRAME_SECURE_SITE:"v2.5.0-beta.5/elements/index.html",IFRAME_SECURE_ORIGIN:"https://js.skyflow-preview.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:d};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),I(n)?r.showHidden=n:n&&t._extend(r,n),g(r.showHidden)&&(r.showHidden=!1),g(r.depth)&&(r.depth=2),g(r.colors)&&(r.colors=!1),g(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=u),f(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 d(e,t){return e}function f(e,n,r){if(e.customInspect&&n&&b(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,e);return O(o)||(o=f(e,o,r)),o}var i=function(e,t){if(g(t))return e.stylize("undefined","undefined");if(O(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(I(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 E(n);if(0===a.length){if(b(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(T(n))return e.stylize(Date.prototype.toString.call(n),"date");if(h(n))return E(n)}var s,p="",u=!1,d=["{","}"];(m(n)&&(u=!0,d=["[","]"]),b(n))&&(p=" [Function"+(n.name?": "+n.name:"")+"]");return N(n)&&(p=" "+RegExp.prototype.toString.call(n)),T(n)&&(p=" "+Date.prototype.toUTCString.call(n)),h(n)&&(p=" "+E(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,d)):d[0]+p+d[1]}function E(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)?f(e,l.value,null):f(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")),g(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 I(e){return"boolean"==typeof e}function v(e){return null===e}function y(e){return"number"==typeof e}function O(e){return"string"==typeof e}function g(e){return void 0===e}function N(e){return L(e)&&"[object RegExp]"===A(e)}function L(e){return"object"==typeof e&&null!==e}function T(e){return L(e)&&"[object Date]"===A(e)}function h(e){return L(e)&&("[object Error]"===A(e)||e instanceof Error)}function b(e){return"function"==typeof e}function A(e){return Object.prototype.toString.call(e)}function w(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(9032),t.isArray=m,t.isBoolean=I,t.isNull=v,t.isNullOrUndefined=function(e){return null==e},t.isNumber=y,t.isString=O,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=g,t.isRegExp=N,t.types.isRegExp=N,t.isObject=L,t.isDate=T,t.types.isDate=T,t.isError=h,t.types.isNativeError=h,t.isFunction=b,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(1135);var R=["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=[w(e.getHours()),w(e.getMinutes()),w(e.getSeconds())].join(":"),[e.getDate(),R[e.getMonth()],n].join(" ")),t.format.apply(t,arguments))},t.inherits=n(6698),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}},5767:(e,t,n)=>{"use strict";var r=n(2682),o=n(9209),i=n(487),a=n(8075),c=n(5795),l=a("Object.prototype.toString"),s=n(9092)(),p="undefined"==typeof globalThis?n.g:globalThis,u=o(),d=a("String.prototype.slice"),f=Object.getPrototypeOf,E=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&&f?function(e){var t=new p[e];if(Symbol.toStringTag in t){var n=f(t),r=c(n,Symbol.toStringTag);if(!r){var o=f(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=d(l(e),8,-1);return E(u,t)>-1?t:"Object"===t&&function(e){var t=!1;return r(_,(function(n,r){if(!t)try{n(e),t=d(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=d(r,1))}catch(e){}})),t}(e):null}},4633:(e,t,n)=>{var r=n(3738).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 d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(t){d=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var o=t&&t.prototype instanceof O?t:O,i=Object.create(o.prototype),a=new M(r||[]);return c(i,"_invoke",{value:R(e,n,a)}),i}function E(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=f;var _="suspendedStart",m="suspendedYield",I="executing",v="completed",y={};function O(){}function g(){}function N(){}var L={};d(L,s,(function(){return this}));var T=Object.getPrototypeOf,h=T&&T(T(C([])));h&&h!==i&&a.call(h,s)&&(L=h);var b=N.prototype=O.prototype=Object.create(L);function A(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function n(o,i,c,l){var s=E(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 R(e,n,r){var o=_;return function(i,a){if(o===I)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=I;var s=E(e,n,r);if("normal"===s.type){if(o=r.done?v:m,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=E(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 C(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 g.prototype=N,c(b,"constructor",{value:N,configurable:!0}),c(N,"constructor",{value:g,configurable:!0}),g.displayName=d(N,u,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,N):(e.__proto__=N,d(e,u,"GeneratorFunction")),e.prototype=Object.create(b),e},n.awrap=function(e){return{__await:e}},A(w.prototype),d(w.prototype,p,(function(){return this})),n.AsyncIterator=w,n.async=function(e,t,r,o,i){void 0===i&&(i=Promise);var a=new w(f(e,t,r,o),i);return n.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},A(b),d(b,u,"Generator"),d(b,s,(function(){return this})),d(b,"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=C,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:C(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},3738: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},4756:(e,t,n)=>{var r=n(4633)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},9209:(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";n.r(r),n.d(r,{CardMetadata:()=>e.CardMetadata,CardType:()=>Ce,CollectContainer:()=>Ao,CollectElement:()=>Ur,CollectElementInput:()=>e.CollectElementInput,CollectElementOptions:()=>e.CollectElementOptions,CollectElementUpdateOptions:()=>e.CollectElementUpdateOptions,CollectOptions:()=>e.ICollectOptions,CollectResponse:()=>e.CollectResponse,ComposableContainer:()=>Ii,ComposableElement:()=>Kr,ContainerOptions:()=>e.ContainerOptions,ContainerType:()=>Ri,DeleteOptions:()=>e.IDeleteOptions,DeleteRecord:()=>e.IDeleteRecord,DeleteRequest:()=>e.IDeleteRecordInput,DeleteResponse:()=>e.DeleteResponse,DetokenizeRecord:()=>e.DetokenizeRecord,DetokenizeRequest:()=>e.IDetokenizeInput,DetokenizeResponse:()=>e.DetokenizeResponse,ElementState:()=>e.ElementState,ElementType:()=>Me,Env:()=>st,ErrorTextStyles:()=>e.ErrorTextStyles,EventName:()=>ct,GetByIdRequest:()=>e.IGetByIdInput,GetByIdResponse:()=>e.GetByIdResponse,GetOptions:()=>e.IGetOptions,GetRecord:()=>e.IGetRecord,GetRequest:()=>e.IGetInput,GetResponse:()=>e.GetResponse,InputStyles:()=>e.InputStyles,InsertOptions:()=>e.IInsertOptions,InsertRecord:()=>e.IInsertRecord,InsertRequest:()=>e.IInsertRecordInput,InsertResponse:()=>e.InsertResponse,LabelStyles:()=>e.LabelStyles,LogLevel:()=>lt,RedactionType:()=>it,RenderFileResponse:()=>e.RenderFileResponse,RevealContainer:()=>ar,RevealElement:()=>jn,RevealElementInput:()=>t.IRevealElementInput,RevealElementOptions:()=>t.IRevealElementOptions,RevealRecord:()=>e.IRevealRecord,RevealResponse:()=>e.RevealResponse,SkyflowConfig:()=>i.ISkyflow,ThreeDS:()=>hi,ThreeDSBrowserDetails:()=>o.ThreeDSBrowserDetails,UploadFilesResponse:()=>e.UploadFilesResponse,ValidationRule:()=>e.IValidationRule,ValidationRuleType:()=>ut,default:()=>Yi});var e={};n.r(e),n.d(e,{o9:()=>st,Ur:()=>ct,$b:()=>lt,Go:()=>pt,eb:()=>it,dF:()=>at,UL:()=>ut});var t={};n.r(t),n.d(t,{A:()=>ar});var o={};n.r(o),n.d(o,{A:()=>hi});var i={};function a(e){return a="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},a(e)}function c(e){var t=function(e,t){if("object"!==a(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===a(t)?t:String(t)}function l(e,t,n){return(t=c(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(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,c(r.key),r)}}function u(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function d(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function f(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,d(e,t,"set"),n),n}function E(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,d(e,t,"get"))}n.r(i),n.d(i,{K:()=>Ri,A:()=>Gi});var _=n(2281),m=n.n(_);function I(){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 v=n.p+"2afb5d11fb02e9292eaf.svg",y=n.p+"5408d9cd30b616684aa0.svg",O=n.p+"a9431336dd9f3e17b880.svg",g=n.p+"9b996d698afd3d404564.svg",N=n.p+"404966085770d8ec21ca.svg",L=n.p+"8062a86943450f142966.svg",T=n.p+"407dfd9c3fd800945b74.svg",h=n.p+"08ad88dee7d4519954ec.svg",b=n.p+"d418de915d45f039ac22.svg",A=n.p+"cbee67fb3d652dad9e25.svg",w=(n.p,n.p,n.p,n.p+"bcd5969a8a86792c2995.svg");const R={infoLogs:{TOKENIZE_REQUEST:"%s1 - Creating Tokenization request body.",TOKENIZE_REQUEST_INSERT:"%s1 - Creating Tokenization insert request body.",TOKENIZE_REQUEST_CREATED:"%s1 - Created Tokenization request body successfully.",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:{FRAME_COLLECT_EMIT_TIMEOUT:"Collect frame emit timeout. Make sure to Emit all elements events before invoking 'collect' function.",NO_ELEMENTS_IN_COLLECT:"Validation error. No elements found in collect container",NO_ELEMENTS_IN_COMPOSABLE:"Validation error. No elements found in composable container",NO_ELEMENTS_IN_REVEAL:"Validation error. No elements found in reveal container",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_MASKING_CHARACTER:"Validation error. Invalid masking character. Specify a valid masking character. ",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.",INVALID_FIELD_SHOW_3DS_CHALLEGNGE:"Invalid field '%s1'. Cannot initiate 3DS Challenge. Verify '%s1'"},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 S,D,x,M,C,P,k,V,j="collect_controller",U="element",F={COLLECT:"COLLECT",REVEAL:"REVEAL",COMPOSE:"COMPOSABLE"},G={MOUNTED:"MOUNTED",READY:"FRAME_READY"},Y="element_type",B="div_id",X="container_name",W=G,K="events",q="mount_start_time",z="mount_end_time",H="error",J={SUCCESS:"SUCCESS",INITIALIZED:"INITIALIZED",PARTIAL_RENDER:"PARTIAL_RENDER",FAILED:"FAILED"},Z="INSERT",$="DETOKENIZE",Q="GET_BY_SKYFLOWID",ee="GET",te="DELETE",ne="COLLECT",re="FILE_UPLOAD",oe="REVEAL",ie="RENDER_FILE",ae={CHANGE:"CHANGE",READY:"READY",FOCUS:"FOCUS",BLUR:"BLUR",ESCAPE:"ESCAPE",CLICK:"CLICK",ERROR:"ERROR",SUCCESS:"SUCCESS",SUBMIT:"SUBMIT",CREATED:"CREATED",MOUNTED:"MOUNTED",HEIGHT:"HEIGHT"},ce="COLLECT_INVOKE_REQUEST",le="COLLECT_CALL_REQUESTS",se="REVEAL_CALL_REQUESTS",pe="TOKENIZATION_REQUEST",ue="INPUT_EVENT",de="DESTROY FRAME",fe="SET_VALUE",Ee="PUREJS_REQUEST",_e="PUREJS_FRAME_READY",me="GET_BEARER_TOKEN",Ie="COLLECT_ELEMENT_SET_ERROR",ve="COLLECT_ELEMENT_SET_ERROR_OVERRIDE",ye="REVEAL_ELEMENT_SET_ERROR",Oe="REVEAL_ELEMENT_UPDATE_OPTIONS",ge="FILE_UPLOAD",Ne="COMPOSABLE_UPDATE_OPTIONS",Le="RENDER_FILE_RESPONSE_READY",Te="RENDER_FILE_REQUEST",he="PUSH_EVENT",be="SKYFLOW_FRAME_CONTROLLER_READY",Ae="COLLECT_ELEMENT_READY",we="TOKEN",Re="ALT_TEXT",Se="ELEMENT_PROPS",De="ELEMENT_MOUNTED",xe="ALL_ELEMENTS_MOUNTED",Me=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}({}),Ce=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}({}),Pe=(l(S={},Ce.VISA,"Visa"),l(S,Ce.MASTERCARD,"Mastercard"),l(S,Ce.AMEX,"Amex"),l(S,Ce.DINERS_CLUB,"DinersClub"),l(S,Ce.DISCOVER,"Discover"),l(S,Ce.JCB,"Jcb"),l(S,Ce.MAESTRO,"Maestro"),l(S,Ce.UNIONPAY,"Unionpay"),l(S,Ce.HIPERCARD,"Hipercard"),l(S,Ce.DEFAULT,"Default"),l(S,Ce.UNKNOWN,"Unknown"),l(S,Ce.CARTES_BANCAIRES,"Cartes Bancaires"),l(D={},Ce.AMEX,["XXXX XXXXXX XXXXX",{X:"[0-9]"}]),l(D,Ce.VISA,["XXXX XXXX XXXX XXXX",{X:"[0-9]"}]),l(D,Ce.MASTERCARD,["XXXX XXXX XXXX XXXX",{X:"[0-9]"}]),l(D,Ce.DISCOVER,["XXXX XXXX XXXX XXXX XXX",{X:"[0-9]"}]),l(D,Ce.DINERS_CLUB,["XXXX XXXXXX XXXXXX",{X:"[0-9]"}]),l(D,Ce.JCB,["XXXX XXXX XXXX XXXX XXX",{X:"[0-9]"}]),l(D,Ce.MAESTRO,["XXXX XXXX XXXX XXXX XXX",{X:"[0-9]"}]),l(D,Ce.UNIONPAY,["XXXX XXXX XXXX XXXX XXX",{X:"[0-9]"}]),l(D,Ce.HIPERCARD,["XXXX XXXX XXXX XXXX XXX",{X:"[0-9]"}]),l(D,Ce.DEFAULT,["XXXX XXXX XXXX XXXX XXX",{X:"[0-9]"}]),l(D,Ce.UNKNOWN,["XXXX XXXX XXXX XXXX XXX",{X:"[0-9]"}]),D),ke=(l(x={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}},Me.CARDHOLDER_NAME,{name:"cardHolderName",attributes:{type:"text",autocomplete:"cc-name"},sensitive:!0,regex:/^([a-zA-Z\\ \\,\\.\\-\\']{2,})$/}),l(x,Me.CARD_NUMBER,{name:"CARD_NUMBER",attributes:{type:"text",autocomplete:"cc-number",inputmode:"numeric"},sensitive:!0,mask:Pe[Ce.DEFAULT],regex:/$|^[\s]*?([0-9]{2,6}[ -]?){3,5}[\s]*/}),l(x,Me.EXPIRATION_DATE,{name:"EXPIRATION_DATE",attributes:{type:"text",autocomplete:"cc-exp",inputmode:"numeric"},sensitive:!0}),l(x,Me.EXPIRATION_MONTH,{name:"EXPIRATION_MONTH",attributes:{maxLength:2,type:"text",inputmode:"numeric",autocomplete:"cc-exp-month"},sensitive:!0,mask:["XX",{X:"[0-9]"}]}),l(x,Me.EXPIRATION_YEAR,{name:"EXPIRATION_YEAR",attributes:{type:"text",inputmode:"numeric",autocomplete:"cc-exp-year"},sensitive:!0}),l(x,Me.CVV,{name:"CVV",attributes:{type:"text",inputmode:"numeric",maxLength:4},sensitive:!0,regex:/^$|^[0-9]{3,4}$/}),l(x,Me.INPUT_FIELD,{name:"INPUT_FIELD",sensitive:!0,attributes:{type:"text"}}),l(x,Me.PIN,{name:"PIN",attributes:{type:"text",inputmode:"numeric",maxLength:12,minLength:4},sensitive:!0,regex:/^$|^[0-9]{4,12}$/}),l(x,Me.FILE_INPUT,{name:"FILE_INPUT",sensitive:!0,attributes:{type:"file"}}),x),Ve="XXXX-XXXX-XXXX-XXXX",je={height:"100%",width:"100%",margin:0,padding:0,border:0,position:"absolute",top:0,left:0,"user-select":"none"},Ue={position:"absolute",top:0,width:0,height:0,visibility:"hidden",left:"-99999999px","user-select":"none"},Fe={width:"100%",height:"100%",border:"0",padding:"0",margin:"0",outline:"none"},Ge={WEBPACKAUTOFILL:"-webkit-autofill",BASE:"base",FOCUS:"focus",COMPLETE:"complete",EMPTY:"empty",INVALID:"invalid",GLOBAL:"global",REQUIRED_ASTERISK:"requiredAsterisk"},Ye=(l({},Ge.BASE,{maxHeight:"100%",maxWidth:"100%"}),l({},Ge.BASE,{"margin-bottom":"4px"}),l({},Ge.BASE,{"margin-bottom":"4px",display:"flex",flexDirection:"column",justifyContent:"space-between"}),l({},Ge.BASE,{marginTop:"4px"}),l(M={},Ge.BASE,{marginBottom:"4px"}),l(M,Ge.REQUIRED_ASTERISK,{display:"inline",color:"red"}),l(C={},Ce.VISA,{regex:/^4\d*/,maxCardLength:19,cardLengthRange:[13,16]}),l(C,Ce.MASTERCARD,{regex:/^(5[1-5]|222[1-9]|22[3-9]|2[3-6]|27[0-1]|2720)\d*/,maxCardLength:16,cardLengthRange:[16]}),l(C,Ce.AMEX,{regex:/^3[47]\d*/,maxCardLength:15,cardLengthRange:[15]}),l(C,Ce.DINERS_CLUB,{regex:/^(36|38|30[0-5])\d*/,maxCardLength:16,cardLengthRange:[14,15,16,17,18,19]}),l(C,Ce.DISCOVER,{regex:/^(6011|65|64[4-9]|622)\d*/,maxCardLength:16,cardLengthRange:[16,17,18,19]}),l(C,Ce.JCB,{regex:/^35\d*/,maxCardLength:19,cardLengthRange:[16,17,18,19]}),l(C,Ce.HIPERCARD,{regex:/^606282\d*/,maxCardLength:19,cardLengthRange:[14,15,16,17,18,19]}),l(C,Ce.UNIONPAY,{regex:/^62\d*/,maxCardLength:19,cardLengthRange:[16,17,18,19]}),l(C,Ce.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]}),C),Be=(l(P={},Ce.DEFAULT,v),l(P,Ce.AMEX,y),l(P,Ce.CARTES_BANCAIRES,w),l(P,Ce.DINERS_CLUB,O),l(P,Ce.DISCOVER,g),l(P,Ce.HIPERCARD,N),l(P,Ce.JCB,L),l(P,Ce.MAESTRO,T),l(P,Ce.MASTERCARD,h),l(P,Ce.UNIONPAY,b),l(P,Ce.VISA,A),"MM/YY"),Xe=[Be,"YYYY/MM","YY/MM","MM/YYYY"],We=["YY","YYYY"],Ke=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}({}),qe=(Me.CARD_NUMBER,Me.EXPIRATION_DATE,Me.EXPIRATION_MONTH,Me.EXPIRATION_YEAR,l(k={},Me.CVV,"Invalid cvv"),l(k,Me.EXPIRATION_DATE,"Invalid expiration date"),l(k,Me.CARD_NUMBER,"Invalid card number"),l(k,Me.CARDHOLDER_NAME,"Invalid cardholder name"),l(k,Me.INPUT_FIELD,R.errorLogs.INVALID_COLLECT_VALUE),l(k,Me.PIN,"Invalid pin"),l(k,Me.EXPIRATION_MONTH,"Invalid expiration month"),l(k,Me.EXPIRATION_YEAR,"Invalid expiration year"),l(k,Me.FILE_INPUT,R.errorLogs.INVALID_COLLECT_VALUE),l(V={},Me.CVV,"cvv is required"),l(V,Me.EXPIRATION_DATE,"expiration date is required"),l(V,Me.CARD_NUMBER,"card number is required"),l(V,Me.CARDHOLDER_NAME,"cardholder name is required"),l(V,Me.INPUT_FIELD,R.errorLogs.DEFAULT_REQUIRED_COLLECT_VALUE),l(V,Me.PIN,"pin is required"),l(V,Me.EXPIRATION_MONTH,"expiration month is required"),l(V,Me.EXPIRATION_YEAR,"expiration year is required"),l(V,Me.FILE_INPUT,R.errorLogs.DEFAULT_REQUIRED_COLLECT_VALUE),[Me.CARDHOLDER_NAME,Me.EXPIRATION_MONTH,Me.FILE_INPUT,Me.PIN,Me.CVV]),ze={X:"[0-9]"};function He(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 Je(e,t){if(e){if("string"==typeof e)return He(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)?He(e,t):void 0}}function Ze(e){return function(e){if(Array.isArray(e))return He(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Je(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 $e(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qe(e,t){return Qe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Qe(e,t)}function et(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&&Qe(e,t)}function tt(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return $e(e)}function nt(e){return nt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},nt(e)}function rt(e,t,n){return rt=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&&Qe(o,n.prototype),o},rt.apply(null,arguments)}function ot(e){var t="function"==typeof Map?new Map:void 0;return ot=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 rt(e,arguments,nt(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Qe(r,e)},ot(e)}var it=function(e){return e.DEFAULT="DEFAULT",e.PLAIN_TEXT="PLAIN_TEXT",e.MASKED="MASKED",e.REDACTED="REDACTED",e}({}),at=function(e){return e.GET="GET",e.POST="POST",e.PUT="PUT",e.PATCH="PATCH",e.DELETE="DELETE",e}({}),ct=function(e){return e.CHANGE="CHANGE",e.READY="READY",e.FOCUS="FOCUS",e.BLUR="BLUR",e.SUBMIT="SUBMIT",e}({}),lt=function(e){return e.WARN="WARN",e.INFO="INFO",e.DEBUG="DEBUG",e.ERROR="ERROR",e}({}),st=function(e){return e.DEV="DEV",e.PROD="PROD",e}({}),pt=function(e){return e.LOG="LOG",e.WARN="WARN",e.ERROR="ERROR",e}({}),ut=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 dt={INVALID_FILE_NAME:{code:400,description:R.errorLogs.INVALID_FILE_NAME},INVALID_FIELD:{code:400,description:R.errorLogs.INVALID_FIELD},VAULTID_IS_REQUIRED:{code:400,description:R.errorLogs.VAULTID_IS_REQUIRED},EMPTY_VAULTID_IN_INIT:{code:400,description:R.errorLogs.EMPTY_VAULTID_IN_INIT},VAULTURL_IS_REQUIRED:{code:400,description:R.errorLogs.VAULTURL_IS_REQUIRED},EMPTY_VAULTURL_IN_INIT:{code:400,description:R.errorLogs.EMPTY_VAULTURL_IN_INIT},INVALID_VAULTURL_IN_INIT:{code:400,description:R.errorLogs.INVALID_VAULTURL_IN_INIT},GET_BEARER_TOKEN_IS_REQUIRED:{code:400,description:R.errorLogs.GET_BEARER_TOKEN_IS_REQUIRED},EMPTY_CONTAINER_TYPE:{code:400,description:R.errorLogs.EMPTY_CONTAINER_TYPE},INVALID_CONTAINER_TYPE:{code:400,description:R.errorLogs.INVALID_CONTAINER_TYPE},UNIQUE_ELEMENT_NAME:{code:400,description:R.errorLogs.UNIQUE_ELEMENT_NAME},ELEMENTS_NOT_MOUNTED:{code:400,description:R.errorLogs.ELEMENTS_NOT_MOUNTED},MISSING_TABLE_IN_COLLECT:{code:400,description:R.errorLogs.MISSING_TABLE_IN_COLLECT},MISSING_SKYFLOWID_KEY_REVEAL:{code:400,description:R.errorLogs.MISSING_SKYFLOWID_KEY_REVEAL},EMPTY_TABLE_IN_COLLECT:{code:400,description:R.errorLogs.EMPTY_TABLE_IN_COLLECT},EMPTY_SKYFLOW_ID_IN_ADDITIONAL_FIELDS:{code:400,description:R.errorLogs.EMPTY_SKYFLOW_ID_IN_ADDITIONAL_FIELDS},EMPTY_SKYFLOW_ID_COLLECT:{code:400,description:R.errorLogs.EMPTY_SKYFLOW_ID_COLLECT},INVALID_TABLE_IN_COLLECT:{code:400,description:R.errorLogs.INVALID_TABLE_IN_COLLECT},INVALID_SKYFLOWID_IN_COLLECT:{code:400,description:R.errorLogs.INVALID_SKYFLOWID_IN_COLLECT},MISSING_COLUMN_IN_COLLECT:{code:400,description:R.errorLogs.MISSING_COLUMN_IN_COLLECT},MISSING_SKYFLOWID_IN_COLLECT:{code:400,description:R.errorLogs.MISSING_SKYFLOWID_IN_COLLECT},EMPTY_COLUMN_IN_COLLECT:{code:400,description:R.errorLogs.EMPTY_TABLE_IN_COLLECT},INVALID_COLUMN_IN_COLLECT:{code:400,description:R.errorLogs.INVALID_COLUMN_IN_COLLECT},CLIENT_CONNECTION:{code:400,description:R.errorLogs.CLIENT_CONNECTION},RECORDS_KEY_NOT_FOUND:{code:404,description:R.errorLogs.RECORDS_KEY_NOT_FOUND},EMPTY_RECORDS_IN_INSERT:{code:400,description:R.errorLogs.EMPTY_RECORDS_IN_INSERT},INVALID_RECORDS_IN_INSERT:{code:404,description:R.errorLogs.INVALID_RECORDS_IN_INSERT},INVALID_TABLE_IN_INSERT:{code:400,description:R.errorLogs.INVALID_TABLE_IN_INSERT},EMPTY_TABLE_IN_INSERT:{code:400,description:R.errorLogs.EMPTY_TABLE_IN_INSERT},MISSING_TABLE_IN_INSERT:{code:400,description:R.errorLogs.MISSING_TABLE_IN_INSERT},EMPTY_FIELDS_IN_INSERT:{code:400,description:R.errorLogs.EMPTY_FIELDS_IN_INSERT},MISSING_FIELDS_IN_INSERT:{code:404,description:R.errorLogs.MISSING_FIELDS_IN_INSERT},INVALID_FIELDS_IN_INSERT:{code:404,description:R.errorLogs.INVALID_FIELDS_IN_INSERT},INVALID_TOKENS_IN_INSERT:{code:404,description:R.errorLogs.INVALID_TOKENS_IN_INSERT},RECORDS_KEY_NOT_FOUND_DETOKENIZE:{code:404,description:R.errorLogs.RECORDS_KEY_NOT_FOUND_DETOKENIZE},EMPTY_RECORDS_DETOKENIZE:{code:400,description:R.errorLogs.EMPTY_RECORDS_DETOKENIZE},INVALID_RECORDS_IN_DETOKENIZE:{code:404,description:R.errorLogs.INVALID_RECORDS_IN_DETOKENIZE},MISSING_TOKEN_IN_DETOKENIZE:{code:400,description:R.errorLogs.MISSING_TOKEN_IN_DETOKENIZE},INVALID_TOKEN_IN_DETOKENIZE:{code:400,description:R.errorLogs.INVALID_TOKEN_IN_DETOKENIZE},RECORDS_KEY_NOT_FOUND_GET:{code:400,description:R.errorLogs.RECORDS_KEY_NOT_FOUND_GET},INVALID_RECORDS_IN_GET:{code:400,description:R.errorLogs.INVALID_RECORDS_IN_GET},EMPTY_RECORDS_GET:{code:400,description:R.errorLogs.EMPTY_RECORDS_GET},MISSING_IDS_IN_GET:{code:400,description:R.errorLogs.MISSING_IDS_IN_GET},INVALID_IDS_IN_GET:{code:400,description:R.errorLogs.INVALID_IDS_IN_GET},INVALID_COLUMN_VALUES_IN_GET:{code:400,description:R.errorLogs.INVALID_COLUMN_VALUES_IN_GET},EMPTY_IDS_IN_GET:{code:400,description:R.errorLogs.EMPTY_IDS_IN_GET},INVALID_SKYFLOWID_TYPE_IN_GET:{code:400,description:R.errorLogs.INVALID_SKYFLOWID_TYPE_IN_GET},MISSING_TABLE_IN_GET:{code:400,description:R.errorLogs.MISSING_TABLE_IN_GET},INVALID_TABLE_IN_GET:{code:400,description:R.errorLogs.INVALID_TABLE_IN_GET},MISSING_REDACTION_IN_GET:{code:400,description:R.errorLogs.MISSING_REDACTION_IN_GET},INVALID_REDACTION_TYPE_IN_GET:{code:400,description:R.errorLogs.INVALID_REDACTION_TYPE_IN_GET},INVALID_TOKENS_IN_GET:{code:400,description:R.errorLogs.INVALID_TOKENS_IN_GET},TOKENS_GET_COLUMN_NOT_SUPPORTED:{code:400,description:R.errorLogs.TOKENS_GET_COLUMN_NOT_SUPPORTED},REDACTION_WITH_TOKENS_NOT_SUPPORTED:{code:400,description:R.errorLogs.REDACTION_WITH_TOKENS_NOT_SUPPORTED},INVALID_REDACTION_TYPE_IN_DETOKENIZE:{code:400,description:R.errorLogs.INVALID_REDACTION_TYPE_IN_DETOKENIZE},INVALID_TOKENS_IN_COLLECT:{code:404,description:R.errorLogs.INVALID_TOKENS_IN_COLLECT},RECORDS_KEY_NOT_FOUND_IN_ADDITIONAL_FIELDS:{code:404,description:R.errorLogs.RECORDS_KEY_NOT_FOUND_IN_ADDITIONAL_FIELDS},INVALID_RECORDS_IN_ADDITIONAL_FIELDS:{code:404,description:R.errorLogs.INVALID_RECORDS_IN_ADDITIONAL_FIELDS},EMPTY_RECORDS_IN_ADDITIONAL_FIELDS:{code:400,description:R.errorLogs.EMPTY_RECORDS_IN_ADDITIONAL_FIELDS},MISSING_TABLE_IN_ADDITIONAL_FIELDS:{code:400,description:R.errorLogs.MISSING_TABLE_IN_ADDITIONAL_FIELDS},INVALID_TABLE_IN_ADDITIONAL_FIELDS:{code:400,description:R.errorLogs.INVALID_TABLE_IN_ADDITIONAL_FIELDS},INVALID_SKYFLOW_ID_IN_ADDITIONAL_FIELDS:{code:400,description:R.errorLogs.INVALID_SKYFLOW_ID_IN_ADDITIONAL_FIELDS},MISSING_FIELDS_IN_ADDITIONAL_FIELDS:{code:400,description:R.errorLogs.MISSING_FIELDS_IN_ADDITIONAL_FIELDS},INVALID_FIELDS_IN_ADDITIONAL_FIELDS:{code:400,description:R.errorLogs.INVALID_FIELDS_IN_ADDITIONAL_FIELDS},RECORDS_KEY_NOT_FOUND_DELETE:{code:400,description:R.errorLogs.RECORDS_KEY_NOT_FOUND_DELETE},EMPTY_RECORDS_IN_DELETE:{code:400,description:R.errorLogs.EMPTY_RECORDS_IN_DELETE},INVALID_RECORDS_IN_DELETE:{code:404,description:R.errorLogs.INVALID_RECORDS_IN_DELETE},INVALID_TABLE_IN_DELETE:{code:400,description:R.errorLogs.INVALID_TABLE_IN_DELETE},EMPTY_TABLE_IN_DELETE:{code:400,description:R.errorLogs.EMPTY_TABLE_IN_DELETE},MISSING_TABLE_IN_DELETE:{code:400,description:R.errorLogs.MISSING_TABLE_IN_DELETE},EMPTY_ID_IN_DELETE:{code:400,description:R.errorLogs.EMPTY_ID_IN_DELETE},MISSING_ID_IN_DELETE:{code:404,description:R.errorLogs.MISSING_ID_IN_DELETE},INVALID_ID_IN_DELETE:{code:404,description:R.errorLogs.INVALID_ID_IN_DELETE},EMPTY_RECORDS_REVEAL:{code:400,description:R.errorLogs.EMPTY_RECORDS_REVEAL},MISSING_TOKEN_KEY_REVEAL:{code:400,description:R.errorLogs.MISSING_TOKEN_KEY_REVEAL},INVALID_TOKEN_ID_REVEAL:{code:400,description:R.errorLogs.INVALID_TOKEN_ID_REVEAL},INVALID_LABEL_REVEAL:{code:400,description:R.errorLogs.INVALID_LABEL_REVEAL},INVALID_ALT_TEXT_REVEAL:{code:400,description:R.errorLogs.INVALID_ALT_TEXT_REVEAL},INVALID_ALT_TEXT_RENDER:{code:400,description:R.errorLogs.INVALID_ALT_TEXT_RENDER},INVALID_FORMAT_REVEAL:{code:400,description:R.errorLogs.INVALID_FORMAT_REVEAL},EMPTY_FORMAT_REVEAL:{code:400,description:R.errorLogs.EMPTY_FORMAT_REVEAL},INVALID_FORMAT_VALUE_REVEAL:{code:400,description:R.errorLogs.INVALID_FORMAT_VALUE_REVEAL},INVALID_REDACTION_TYPE_REVEAL:{code:400,description:R.errorLogs.INVALID_REDACTION_TYPE_REVEAL},EMPTY_TABLE_IN_ADDITIONAL_FIELDS:{code:400,description:R.errorLogs.EMPTY_TABLE_IN_ADDITIONAL_FIELDS},EMPTY_FIELDS_IN_ADDITIONAL_FIELDS:{code:400,description:R.errorLogs.EMPTY_FIELDS_IN_ADDITIONAL_FIELDS},EMPTY_TOKEN_IN_DETOKENIZE:{code:400,description:R.errorLogs.EMPTY_TOKEN_IN_DETOKENIZE},EMPTY_SKYFLOWID_IN_GET:{code:400,description:R.errorLogs.EMPTY_SKYFLOWID_IN_GET},EMPTY_TABLE_IN_GET:{code:400,description:R.errorLogs.EMPTY_TABLE_IN_GET},EMPTY_REDACTION_TYPE_IN_GET:{code:400,description:R.errorLogs.EMPTY_REDACTION_TYPE_IN_GET},EMPTY_TOKEN_ID_REVEAL:{code:400,description:R.errorLogs.EMPTY_TOKEN_ID_REVEAL},DUPLICATE_ELEMENT:{code:400,description:R.errorLogs.DUPLICATE_ELEMENT},DUPLICATE_ELEMENT_ADDITIONAL_FIELDS:{code:400,description:R.errorLogs.DUPLICATE_ELEMENT_ADDITIONAL_FIELDS},MISSING_ELEMENT_TYPE:{code:400,description:R.errorLogs.MISSING_ELEMENT_TYPE},EMPTY_ELEMENT_TYPE:{code:400,description:R.errorLogs.EMPTY_ELEMENT_TYPE},INVALID_ALLOWED_OPTIONS:{code:400,description:R.errorLogs.INVALID_ALLOWED_OPTIONS},EMPTY_ALLOWED_OPTIONS_ARRAY:{code:400,description:R.errorLogs.EMPTY_ALLOWED_OPTIONS_ARRAY},INVALID_ALLOWED_FILETYPE_ARRAY:{code:400,description:R.errorLogs.INVALID_ALLOWED_FILETYPE_ARRAY},INVALID_ELEMENT_TYPE:{code:400,description:R.errorLogs.INVALID_ELEMENT_TYPE},INVALID_ELEMENT_SELECTOR:{code:400,description:R.errorLogs.INVALID_ELEMENT_SELECTOR},FRAME_NOT_FOUND:{code:400,description:R.errorLogs.FRAME_NOT_FOUND},REQUIRED_PARAMS_NOT_PROVIDED:{code:400,description:R.errorLogs.REQUIRED_PARAMS_NOT_PROVIDED},INVALID_RECORD_COLUMN_VALUE:{code:400,description:R.errorLogs.INVALID_RECORD_COLUMN_VALUE},MISSING_RECORD_COLUMN_VALUE:{code:400,description:R.errorLogs.MISSING_RECORD_COLUMN_VALUE},MISSING_RECORD_COLUMN_NAME:{code:400,description:R.errorLogs.MISSING_RECORD_COLUMN_NAME},INVALID_EVENT_TYPE:{code:400,description:R.errorLogs.INVALID_EVENT_TYPE},INVALID_EVENT_LISTENER:{code:400,description:R.errorLogs.INVALID_EVENT_LISTENER},MISSING_HANDLER_IN_EVENT_LISTENER:{code:400,description:R.errorLogs.MISSING_HANDLER_IN_EVENT_LISTENER},INVALID_HANDLER_IN_EVENT_LISTENER:{code:400,description:R.errorLogs.INVALID_HANDLER_IN_EVENT_LISTENER},UNKNOWN_ERROR:{code:400,description:R.errorLogs.UNKNOWN_ERROR},CONNECTION_ERROR:{code:400,description:R.errorLogs.CONNECTION_ERROR},NETWORK_ERROR:{code:500,description:R.errorLogs.NETWORK_ERROR},COMPLETE_AND_VALID_INPUTS:{code:400,description:R.errorLogs.COMPLETE_AND_VALID_INPUTS},INVALID_VALIDATIONS_TYPE:{code:400,description:R.errorLogs.INVALID_VALIDATIONS_TYPE},MISSING_VALIDATION_RULE_TYPE:{code:400,description:R.errorLogs.MISSING_VALIDATION_RULE_TYPE},INVALID_VALIDATION_RULE_TYPE:{code:400,description:R.errorLogs.INVALID_VALIDATION_RULE_TYPE},MISSING_VALIDATION_RULE_PARAMS:{code:400,description:R.errorLogs.MISSING_VALIDATION_RULE_PARAMS},INVALID_VALIDATION_RULE_PARAMS:{code:400,description:R.errorLogs.INVALID_VALIDATION_RULE_PARAMS},MISSING_REGEX_IN_REGEX_MATCH_RULE:{code:400,description:R.errorLogs.MISSING_REGEX_IN_REGEX_MATCH_RULE},INVALID_REGEX_IN_REGEX_MATCH_RULE:{code:400,description:R.errorLogs.INVALID_REGEX_IN_REGEX_MATCH_RULE},MISSING_MIN_AND_MAX_IN_LENGTH_MATCH_RULE:{code:400,description:R.errorLogs.MISSING_MIN_AND_MAX_IN_LENGTH_MATCH_RULE},MISSING_ELEMENT_IN_ELEMENT_MATCH_RULE:{code:400,description:R.errorLogs.MISSING_ELEMENT_IN_ELEMENT_MATCH_RULE},INVALID_ELEMENT_IN_ELEMENT_MATCH_RULE:{code:400,description:R.errorLogs.INVALID_ELEMENT_IN_ELEMENT_MATCH_RULE},ELEMENT_NOT_MOUNTED_IN_ELEMENT_MATCH_RULE:{code:400,description:R.errorLogs.ELEMENT_NOT_MOUNTED_IN_ELEMENT_MATCH_RULE},EMPTY_ELEMENT_IN_MOUNT:{code:400,description:R.errorLogs.EMPTY_ELEMENT_IN_MOUNT},REVEAL_ELEMENT_ERROR_STATE:{code:400,description:R.errorLogs.REVEAL_ELEMENT_ERROR_STATE},INVALID_FILE_TYPE:{code:400,description:R.errorLogs.INVALID_FILE_TYPE},INVALID_FILE_SIZE:{code:400,description:R.errorLogs.INVALID_FILE_SIZE},NO_FILE_SELECTED:{code:400,description:R.errorLogs.NO_FILE_SELECTED},INVALID_TABLE_IN_UPSERT_OPTION:{code:400,description:R.errorLogs.INVALID_TABLE_IN_UPSERT_OPTION},INVALID_COLUMN_IN_UPSERT_OPTION:{code:400,description:R.errorLogs.INVALID_COLUMN_IN_UPSERT_OPTION},INVALID_UPSERT_OPTION_TYPE:{code:400,description:R.errorLogs.INVALID_UPSERT_OPTION_TYPE},EMPTY_UPSERT_OPTIONS_ARRAY:{code:400,description:R.errorLogs.EMPTY_UPSERT_OPTIONS_ARRAY},INVALID_UPSERT_OPTION_OBJECT_TYPE:{code:400,description:R.errorLogs.INVALID_UPSERT_OPTION_OBJECT_TYPE},MISSING_TABLE_IN_UPSERT_OPTION:{code:400,description:R.errorLogs.MISSING_TABLE_IN_UPSERT_OPTION},MISSING_COLUMN_IN_UPSERT_OPTION:{code:400,description:R.errorLogs.MISSING_COLUMN_IN_UPSERT_OPTION},INVALID_RECORD_COLUMN_VALUE_TYPE:{code:400,description:R.errorLogs.INVALID_RECORD_COLUMN_VALUE_TYPE},INVALID_COLUMN_VALUES_TYPE:{code:400,description:R.errorLogs.INVALID_COLUMN_VALUES_TYPE},EMPTY_RECORD_COLUMN_VALUES:{code:400,description:R.errorLogs.EMPTY_RECORD_COLUMN_VALUES},EMPTY_COLUMN_VALUE:{code:400,description:R.errorLogs.EMPTY_COLUMN_VALUE},MISSING_IDS_OR_COLUMN_VALUES_IN_GET:{code:400,description:R.errorLogs.MISSING_IDS_OR_COLUMN_VALUES_IN_GET},SKYFLOW_IDS_AND_COLUMN_NAME_BOTH_SPECIFIED:{code:400,description:R.errorLogs.SKYFLOW_IDS_AND_COLUMN_NAME_BOTH_SPECIFIED},SKYFLOW_IDS_AND_TOKEN_BOTH_SPECIFIED:{code:400,description:R.errorLogs.SKYFLOW_IDS_AND_TOKEN_BOTH_SPECIFIED},MISSING_TABLE_KEY_REVEAL:{code:400,description:R.errorLogs.MISSING_TABLE_KEY_REVEAL},MISSING_COLUMN_KEY_REVEAL:{code:400,description:R.errorLogs.MISSING_COLUMN_KEY_REVEAL},INVALID_SKYFLOW_ID_REVEAL:{code:400,description:R.errorLogs.INVALID_SKYFLOW_ID_REVEAL},INVALID_TABLE_REVEAL:{code:400,description:R.errorLogs.INVALID_TABLE_REVEAL},INVALID_COLUMN_NAME_REVEAL:{code:400,description:R.errorLogs.INVALID_COLUMN_NAME_REVEAL},EMPTY_SKYFLOW_ID_REVEAL:{code:400,description:R.errorLogs.EMPTY_SKYFLOW_ID_REVEAL},EMPTY_TABLE_REVEAL:{code:400,description:R.errorLogs.EMPTY_TABLE_REVEAL},EMPTY_COLUMN_NAME_REVEAL:{code:400,description:R.errorLogs.EMPTY_COLUMN_NAME_REVEAL},RECORDS_KEY_NOT_FOUND_GETBYID:{code:400,description:R.errorLogs.RECORDS_KEY_NOT_FOUND_GETBYID},INVALID_RECORDS_IN_GETBYID:{code:400,description:R.errorLogs.INVALID_RECORDS_IN_GETBYID},EMPTY_RECORDS_GETBYID:{code:400,description:R.errorLogs.EMPTY_RECORDS_GETBYID},MISSING_IDS_IN_GETBYID:{code:400,description:R.errorLogs.MISSING_IDS_IN_GETBYID},INVALID_IDS_IN_GETBYID:{code:400,description:R.errorLogs.INVALID_IDS_IN_GETBYID},EMPTY_IDS_IN_GETBYID:{code:400,description:R.errorLogs.EMPTY_IDS_IN_GETBYID},INVALID_SKYFLOWID_TYPE_IN_GETBYID:{code:400,description:R.errorLogs.INVALID_SKYFLOWID_TYPE_IN_GETBYID},MISSING_TABLE_IN_GETBYID:{code:400,description:R.errorLogs.MISSING_TABLE_IN_GETBYID},INVALID_TABLE_IN_GETBYID:{code:400,description:R.errorLogs.INVALID_TABLE_IN_GETBYID},MISSING_REDACTION_IN_GETBYID:{code:400,description:R.errorLogs.MISSING_REDACTION_IN_GETBYID},INVALID_REDACTION_TYPE_IN_GETBYID:{code:400,description:R.errorLogs.INVALID_REDACTION_TYPE_IN_GETBYID},EMPTY_SKYFLOWID_IN_GETBYID:{code:400,description:R.errorLogs.EMPTY_SKYFLOWID_IN_GETBYID},EMPTY_TABLE_IN_GETBYID:{code:400,description:R.errorLogs.EMPTY_TABLE_IN_GETBYID},EMPTY_REDACTION_TYPE_IN_GETBYID:{code:400,description:R.errorLogs.EMPTY_REDACTION_TYPE_IN_GETBYID},MISSING_COMPOSABLE_LAYOUT_KEY:{code:400,description:R.errorLogs.MISSING_COMPOSABLE_LAYOUT_KEY},EMPTY_COMPOSABLE_LAYOUT_ARRAY:{code:400,description:R.errorLogs.EMPTY_COMPOSABLE_LAYOUT_ARRAY},INVALID_COMPOSABLE_LAYOUT_TYPE:{code:400,description:R.errorLogs.INVALID_COMPOSABLE_LAYOUT_TYPE},NEGATIVE_VALUES_COMPOSABLE_LAYOUT:{code:400,description:R.errorLogs.NEGATIVE_VALUES_COMPOSABLE_LAYOUT},MISMATCH_ELEMENT_COUNT_LAYOUT_SUM:{code:400,description:R.errorLogs.MISMATCH_ELEMENT_COUNT_LAYOUT_SUM},MISSING_COMPOSABLE_CONTAINER_OPTIONS:{code:400,description:R.errorLogs.MISSING_COMPOSABLE_CONTAINER_OPTIONS},INVALID_COMPOSABLE_CONTAINER_OPTIONS:{code:400,description:R.errorLogs.INVALID_COMPOSABLE_CONTAINER_OPTIONS},COMPOSABLE_CONTAINER_NOT_MOUNTED:{code:400,description:R.errorLogs.COMPOSABLE_CONTAINER_NOT_MOUNTED},INVALID_BOOLEAN_OPTIONS:{code:400,description:R.errorLogs.INVALID_BOOLEAN_OPTIONS},INVALID_MASKING_CHARACTER:{code:400,description:R.errorLogs.INVALID_MASKING_CHARACTER},EMPTY_COLLECT_CUSTOM_FORMAT:{code:400,description:R.errorLogs.EMPTY_COLLECT_CUSTOM_FORMAT},INVALID_INPUT_OPTIONS_FORMAT:{code:400,description:R.errorLogs.INVALID_INPUT_OPTIONS_FORMAT},INVALID_INPUT_OPTIONS_TRANSLATION:{code:400,description:R.errorLogs.INVALID_INPUT_OPTIONS_TRANSLATION},INVALID_OPTION_CARD_METADATA:{code:400,description:R.errorLogs.INVALID_OPTION_CARD_METADATA},INVALID_OPTION_CARD_SCHEME:{code:400,description:R.errorLogs.INVALID_OPTION_CARD_SCHEME},INVALID_FIELD_SHOW_3DS_CHALLEGNGE:{code:400,description:R.errorLogs.INVALID_FIELD_SHOW_3DS_CHALLEGNGE},NO_ELEMENTS_IN_COLLECT:{code:400,description:R.errorLogs.NO_ELEMENTS_IN_COLLECT},NO_ELEMENTS_IN_COMPOSABLE:{code:400,description:R.errorLogs.NO_ELEMENTS_IN_COMPOSABLE},NO_ELEMENTS_IN_REVEAL:{code:400,description:R.errorLogs.NO_ELEMENTS_IN_REVEAL}};function ft(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)||Je(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 Et=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(/[\s-]/g,""),t=Ce.DEFAULT;return Object.entries(Ye).forEach((function(n){var r=ft(n,2),o=r[0];r[1].regex.test(e)&&(t=o)})),t},_t=function(e,t){if(!e||!Object.prototype.hasOwnProperty.call(e,"records"))throw new Xt(dt.RECORDS_KEY_NOT_FOUND,[],!0);var n=e.records;if(!n||!Array.isArray(n))throw new Xt(dt.INVALID_RECORDS_IN_INSERT,[],!0);if(0===n.length)throw new Xt(dt.EMPTY_RECORDS_IN_INSERT,[],!0);if(n.forEach((function(e,t){if(!e||!Object.prototype.hasOwnProperty.call(e,"table"))throw new Xt(dt.MISSING_TABLE_IN_INSERT,["".concat(t)],!0);if(!e.table)throw new Xt(dt.EMPTY_TABLE_IN_INSERT,["".concat(t)],!0);if(!("string"==typeof e.table||e.table instanceof String))throw new Xt(dt.INVALID_TABLE_IN_INSERT,["".concat(t)],!0);if(!Object.prototype.hasOwnProperty.call(e,"fields"))throw new Xt(dt.MISSING_FIELDS_IN_INSERT,["".concat(t)],!0);if(!e.fields)throw new Xt(dt.EMPTY_FIELDS_IN_INSERT,["".concat(t)],!0);if("object"!==a(e.fields)||Array.isArray(e.fields))throw new Xt(dt.INVALID_FIELDS_IN_INSERT,["".concat(t)],!0)})),t&&t.tokens&&"boolean"!=typeof t.tokens)throw new Xt(dt.INVALID_TOKENS_IN_INSERT,[],!0)},mt=function(e){if(!e||!Object.prototype.hasOwnProperty.call(e,"records"))throw new Xt(dt.RECORDS_KEY_NOT_FOUND_IN_ADDITIONAL_FIELDS,[],!0);var t=e.records;if(!t||!Array.isArray(t))throw new Xt(dt.INVALID_RECORDS_IN_ADDITIONAL_FIELDS,[],!0);if(0===t.length)throw new Xt(dt.EMPTY_RECORDS_IN_ADDITIONAL_FIELDS,[],!0);t.forEach((function(e,t){var n;if(!e||!Object.prototype.hasOwnProperty.call(e,"table"))throw new Xt(dt.MISSING_TABLE_IN_ADDITIONAL_FIELDS,["".concat(t)],!0);if(!e.table)throw new Xt(dt.EMPTY_TABLE_IN_ADDITIONAL_FIELDS,["".concat(t)],!0);if(void 0!==(null===(n=e.fields)||void 0===n?void 0:n.skyflowID)){var r,o,i;if(null===(r=e.fields)||void 0===r||!r.skyflowID)throw new Xt(dt.EMPTY_SKYFLOW_ID_IN_ADDITIONAL_FIELDS,["".concat(t)],!0);if(!("string"==typeof(null===(o=e.fields)||void 0===o?void 0:o.skyflowID)||(null===(i=e.fields)||void 0===i?void 0:i.skyflowID)instanceof String))throw new Xt(dt.INVALID_SKYFLOW_ID_IN_ADDITIONAL_FIELDS,["".concat(t)],!0)}if(!("string"==typeof e.table||e.table instanceof String))throw new Xt(dt.INVALID_TABLE_IN_ADDITIONAL_FIELDS,["".concat(t)],!0);if(!Object.prototype.hasOwnProperty.call(e,"fields"))throw new Xt(dt.MISSING_FIELDS_IN_ADDITIONAL_FIELDS,["".concat(t)],!0);if(!e.fields)throw new Xt(dt.EMPTY_FIELDS_IN_ADDITIONAL_FIELDS,["".concat(t)],!0);if("object"!==a(e.fields)||Array.isArray(e.fields))throw new Xt(dt.INVALID_FIELDS_IN_ADDITIONAL_FIELDS,["".concat(t)],!0)}))},It=function(e){if(!e||!Object.prototype.hasOwnProperty.call(e,"records"))throw new Xt(dt.RECORDS_KEY_NOT_FOUND_DETOKENIZE,[]);var t=e.records;if(!t||!Array.isArray(t))throw new Xt(dt.INVALID_RECORDS_IN_DETOKENIZE,[]);if(0===t.length)throw new Xt(dt.EMPTY_RECORDS_DETOKENIZE,[]);t.forEach((function(e,t){if(!e||!Object.prototype.hasOwnProperty.call(e,"token"))throw new Xt(dt.MISSING_TOKEN_IN_DETOKENIZE,["".concat(t)]);if(!e.token)throw new Xt(dt.EMPTY_TOKEN_IN_DETOKENIZE,["".concat(t)]);if(!("string"==typeof e.token||e.token instanceof String))throw new Xt(dt.INVALID_TOKEN_IN_DETOKENIZE,["".concat(t)]);var n=e.redaction;if(n&&!Object.values(it).includes(n))throw new Xt(dt.INVALID_REDACTION_TYPE_IN_DETOKENIZE,["".concat(t)])}))},vt=function(e,t){if(!e||!Object.prototype.hasOwnProperty.call(e,"records"))throw new Xt(dt.RECORDS_KEY_NOT_FOUND_GET,[]);var n=e.records;if(!n||!Array.isArray(n))throw new Xt(dt.INVALID_RECORDS_IN_GET,[]);if(0===n.length)throw new Xt(dt.EMPTY_RECORDS_GET,[]);if(t&&Object.prototype.hasOwnProperty.call(t,"tokens")&&"boolean"!=typeof(null==t?void 0:t.tokens))throw new Xt(dt.INVALID_TOKENS_IN_GET,[]);n.forEach((function(e,n){var r,o,i;if(0===Object.keys(e).length)throw new Xt(dt.EMPTY_RECORDS_GET,[]);if(0===(null===(r=e.ids)||void 0===r?void 0:r.length))throw new Xt(dt.EMPTY_IDS_IN_GET,["".concat(n)]);if(!(null==e.ids||e.ids&&Array.isArray(e.ids)))throw new Xt(dt.INVALID_IDS_IN_GET,["".concat(n)]);if(null===(o=e.ids)||void 0===o||o.forEach((function(e){if(!e)throw new Xt(dt.EMPTY_SKYFLOWID_IN_GET,["".concat(n)]);if(!("string"==typeof e||e instanceof String))throw new Xt(dt.INVALID_SKYFLOWID_TYPE_IN_GET,["".concat(n)])})),!Object.prototype.hasOwnProperty.call(e,"table"))throw new Xt(dt.MISSING_TABLE_IN_GET,["".concat(n)]);if(!e.table)throw new Xt(dt.EMPTY_TABLE_IN_GET,["".concat(n)]);if(!("string"==typeof e.table||e.table instanceof String))throw new Xt(dt.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 Xt(dt.MISSING_REDACTION_IN_GET,["".concat(n)]);if(!e.redaction)throw new Xt(dt.EMPTY_REDACTION_TYPE_IN_GET,["".concat(n)]);if(!Object.values(it).includes(e.redaction))throw new Xt(dt.INVALID_REDACTION_TYPE_IN_GET,["".concat(n)])}if(!0===Object.prototype.hasOwnProperty.call(e,"ids")&&!0===Object.prototype.hasOwnProperty.call(e,"columnName"))throw new Xt(dt.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 Xt(dt.MISSING_RECORD_COLUMN_VALUE,["".concat(n)])}else if(!1===Object.prototype.hasOwnProperty.call(e,"ids")&&!1===Object.prototype.hasOwnProperty.call(e,"columnValues"))throw new Xt(dt.MISSING_IDS_OR_COLUMN_VALUES_IN_GET,["".concat(n)]);if(0===(null===(i=e.columnValues)||void 0===i?void 0:i.length))throw new Xt(dt.EMPTY_RECORD_COLUMN_VALUES,["".concat(n)]);if(!(null==e.columnValues||e.columnValues&&Array.isArray(e.columnValues)))throw new Xt(dt.INVALID_COLUMN_VALUES_IN_GET,["".concat(n)]);if(void 0!==e.columnName&&void 0===e.columnValues)throw new Xt(dt.MISSING_RECORD_COLUMN_VALUE,["".concat(n)]);if(void 0===e.columnName&&void 0!==e.columnValues)throw new Xt(dt.MISSING_RECORD_COLUMN_NAME,["".concat(n)]);var a=e.columnName;if(null!=a&&"string"!=typeof a)throw new Xt(dt.INVALID_RECORD_COLUMN_VALUE,["".concat(n)]);var c=e.columnValues;if(null!=c){if(0===c.length||null===c)throw new Xt(dt.EMPTY_RECORD_COLUMN_VALUES,["".concat(n)]);c.forEach((function(e){if(""===e||null===e)throw new Xt(dt.EMPTY_COLUMN_VALUE,["".concat(n)]);if("string"!=typeof e)throw new Xt(dt.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 Xt(dt.TOKENS_GET_COLUMN_NOT_SUPPORTED,[]);if(e.redaction)throw new Xt(dt.REDACTION_WITH_TOKENS_NOT_SUPPORTED,[])}}))},yt=function(e){if(!e||!Object.prototype.hasOwnProperty.call(e,"records"))throw new Xt(dt.RECORDS_KEY_NOT_FOUND_GETBYID,[]);var t=e.records;if(!t||!Array.isArray(t))throw new Xt(dt.INVALID_RECORDS_IN_GETBYID,[]);if(0===t.length)throw new Xt(dt.EMPTY_RECORDS_GETBYID,[]);t.forEach((function(e,t){if(!e||!Object.prototype.hasOwnProperty.call(e,"ids"))throw new Xt(dt.MISSING_IDS_IN_GETBYID,["".concat(t)]);if(!e.ids||!Array.isArray(e.ids))throw new Xt(dt.INVALID_IDS_IN_GETBYID,["".concat(t)]);if(0===e.ids.length)throw new Xt(dt.EMPTY_IDS_IN_GETBYID,["".concat(t)]);if(e.ids.forEach((function(e){if(!e)throw new Xt(dt.EMPTY_SKYFLOWID_IN_GETBYID,["".concat(t)]);if(!("string"==typeof e||e instanceof String))throw new Xt(dt.INVALID_SKYFLOWID_TYPE_IN_GETBYID,["".concat(t)])})),!Object.prototype.hasOwnProperty.call(e,"table"))throw new Xt(dt.MISSING_TABLE_IN_GETBYID,["".concat(t)]);if(!e.table)throw new Xt(dt.EMPTY_TABLE_IN_GETBYID,["".concat(t)]);if(!("string"==typeof e.table||e.table instanceof String))throw new Xt(dt.INVALID_TABLE_IN_GETBYID,["".concat(t)]);if(!Object.prototype.hasOwnProperty.call(e,"redaction"))throw new Xt(dt.MISSING_REDACTION_IN_GETBYID,["".concat(t)]);if(!e.redaction)throw new Xt(dt.EMPTY_REDACTION_TYPE_IN_GETBYID,["".concat(t)]);if(!Object.values(it).includes(e.redaction))throw new Xt(dt.INVALID_REDACTION_TYPE_IN_GETBYID,["".concat(t)])}))},Ot=function(e,t){if(!e||!Object.prototype.hasOwnProperty.call(e,"records"))throw new Xt(dt.RECORDS_KEY_NOT_FOUND_DELETE,[],!0);var n=e.records;if(!n||!Array.isArray(n))throw new Xt(dt.INVALID_RECORDS_IN_DELETE,[],!0);if(0===n.length)throw new Xt(dt.EMPTY_RECORDS_IN_DELETE,[],!0);n.forEach((function(e,t){if(!e||!Object.prototype.hasOwnProperty.call(e,"table"))throw new Xt(dt.MISSING_TABLE_IN_DELETE,["".concat(t)],!0);if(!e.table)throw new Xt(dt.EMPTY_TABLE_IN_DELETE,["".concat(t)],!0);if(!("string"==typeof e.table||e.table instanceof String))throw new Xt(dt.INVALID_TABLE_IN_DELETE,["".concat(t)],!0);if(!Object.prototype.hasOwnProperty.call(e,"id"))throw new Xt(dt.MISSING_ID_IN_DELETE,["".concat(t)],!0);if(!e.id)throw new Xt(dt.EMPTY_ID_IN_DELETE,["".concat(t)],!0);if(!("string"==typeof e.id||e.id instanceof String))throw new Xt(dt.INVALID_ID_IN_DELETE,["".concat(t)],!0)}))},gt=function(e){if(0===e.length)throw new Xt(dt.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 Xt(dt.MISSING_TOKEN_KEY_REVEAL,[]);if(!e.token)throw new Xt(dt.EMPTY_TOKEN_ID_REVEAL,[]);if(!("string"==typeof e.token||e.token instanceof String))throw new Xt(dt.INVALID_TOKEN_ID_REVEAL,[])}var t=e.redaction;if(t&&!Object.values(it).includes(t))throw new Xt(dt.INVALID_REDACTION_TYPE_REVEAL,[]);if(Object.prototype.hasOwnProperty.call(e,"label")&&"string"!=typeof e.label)throw new Xt(dt.INVALID_LABEL_REVEAL,[]);if(Object.prototype.hasOwnProperty.call(e,"altText")&&"string"!=typeof e.altText)throw new Xt(dt.INVALID_ALT_TEXT_REVEAL,[]);if(Object.prototype.hasOwnProperty.call(e,"format")&&"string"!=typeof e.format)throw new Xt(dt.INVALID_FORMAT_REVEAL,[]);if(Object.prototype.hasOwnProperty.call(e,"format")&&""===e.format)throw new Xt(dt.EMPTY_FORMAT_REVEAL,[])}))},Nt=function(e){if(!e||!Object.prototype.hasOwnProperty.call(e,"skyflowID"))throw new Xt(dt.MISSING_SKYFLOWID_KEY_REVEAL,[]);if(!e.skyflowID)throw new Xt(dt.EMPTY_SKYFLOW_ID_REVEAL,[]);if(Object.prototype.hasOwnProperty.call(e,"skyflowID")&&"string"!=typeof e.skyflowID)throw new Xt(dt.INVALID_SKYFLOW_ID_REVEAL,[]);if(Object.prototype.hasOwnProperty.call(e,"skyflowID")&&Object.prototype.hasOwnProperty.call(e,"token"))throw new Xt(dt.SKYFLOW_IDS_AND_TOKEN_BOTH_SPECIFIED,[]);if(!e||!Object.prototype.hasOwnProperty.call(e,"column"))throw new Xt(dt.MISSING_COLUMN_KEY_REVEAL,[]);if(!e.column)throw new Xt(dt.EMPTY_COLUMN_NAME_REVEAL,[]);if(Object.prototype.hasOwnProperty.call(e,"column")&&"string"!=typeof e.column)throw new Xt(dt.INVALID_COLUMN_NAME_REVEAL,[]);if(!e||!Object.prototype.hasOwnProperty.call(e,"table"))throw new Xt(dt.MISSING_TABLE_KEY_REVEAL,[]);if(!e.table)throw new Xt(dt.EMPTY_TABLE_REVEAL,[]);if(Object.prototype.hasOwnProperty.call(e,"table")&&"string"!=typeof e.table)throw new Xt(dt.INVALID_TABLE_REVEAL,[]);if(Object.prototype.hasOwnProperty.call(e,"altText")&&"string"!=typeof e.altText)throw new Xt(dt.INVALID_ALT_TEXT_RENDER,[])},Lt=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},Tt=function(e){var t=!0;try{new RegExp(e)}catch(e){t=!1}return t},ht=function(e){if(!Object.prototype.hasOwnProperty.call(e,"vaultID"))throw new Xt(dt.VAULTID_IS_REQUIRED,[],!0);if(!e.vaultID)throw new Xt(dt.EMPTY_VAULTID_IN_INIT,[],!0);if(!Object.prototype.hasOwnProperty.call(e,"vaultURL"))throw new Xt(dt.VAULTURL_IS_REQUIRED,[],!0);if(!e.vaultURL)throw new Xt(dt.EMPTY_VAULTURL_IN_INIT,[],!0);if(e.vaultURL&&!Lt(e.vaultURL))throw new Xt(dt.INVALID_VAULTURL_IN_INIT,[],!0);if(!Object.prototype.hasOwnProperty.call(e,"getBearerToken"))throw new Xt(dt.GET_BEARER_TOKEN_IS_REQUIRED,[],!0)},bt=function(e,t){if(!Object.prototype.hasOwnProperty.call(e,"type"))throw new Xt(dt.MISSING_ELEMENT_TYPE,[],!0);if(!e.type)throw new Xt(dt.EMPTY_ELEMENT_TYPE,[],!0);if(Object.prototype.hasOwnProperty.call(e,"altText")&&Gt(R.warnLogs.COLLECT_ALT_TEXT_DEPERECATED,pt.WARN,t),Object.prototype.hasOwnProperty.call(e,"skyflowID")&&"string"!=typeof e.skyflowID)throw new Xt(dt.INVALID_SKYFLOWID_IN_COLLECT,[],!0);if(e.type===Me.FILE_INPUT&&!Object.keys(e).includes("skyflowID"))throw new Xt(dt.MISSING_SKYFLOWID_IN_COLLECT,[],!0)},At=function(e){if(!e||!Array.isArray(e))throw new Xt(dt.INVALID_UPSERT_OPTION_TYPE,[],!0);if(!e.length)throw new Xt(dt.EMPTY_UPSERT_OPTIONS_ARRAY,[],!0);e.forEach((function(e,t){if(!e||"object"!==a(e))throw new Xt(dt.INVALID_UPSERT_OPTION_OBJECT_TYPE,[t],!0);if(!Object.prototype.hasOwnProperty.call(e,"table"))throw new Xt(dt.MISSING_TABLE_IN_UPSERT_OPTION,[t],!0);if(!e.table||"string"!=typeof e.table||!e.table.length)throw new Xt(dt.INVALID_TABLE_IN_UPSERT_OPTION,[t],!0);if(!Object.prototype.hasOwnProperty.call(e,"column"))throw new Xt(dt.MISSING_COLUMN_IN_UPSERT_OPTION,[t],!0);if(!e.column||"string"!=typeof e.column||!e.column.length)throw new Xt(dt.INVALID_COLUMN_IN_UPSERT_OPTION,[t],!0)}))},wt=function(e){return"boolean"==typeof e},Rt=function(e){if(e){if(Object.prototype.hasOwnProperty.call(e,"format")&&"string"!=typeof e.format)throw new Xt(dt.INVALID_INPUT_OPTIONS_FORMAT,[],!0);if(Object.prototype.hasOwnProperty.call(e,"translation")&&("object"!==a(e.translation)||"[object Object]"!==Object.prototype.toString.call(e.translation)))throw new Xt(dt.INVALID_INPUT_OPTIONS_TRANSLATION,[],!0)}};const St={IFRAME_SECURE_SITE:"".concat("https://js.skyflow-preview.com","/").concat("v2.5.0-beta.5/elements/index.html"),IFRAME_SECURE_ORIGIN:"https://js.skyflow-preview.com"},Dt=JSON.parse('{"name":"skyflow-js","preferGlobal":true,"analyze":false,"version":"2.5.0-beta.5","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.97.1","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 xt(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 Mt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xt(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}n(125).getType;function Ct(e){var t=null==e?void 0:e.split(":");return t&&t.length>2?"".concat(t[0],":").concat(t[1],":").concat(t[2]):""}function Pt(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,d;r="Linux",o=null!==(u=null===(d=/Linux( \w+)*?\/([\w.]+)/.exec(e))||void 0===d?void 0:d[2])&&void 0!==u?u:null}return{os:r,version:o}}(n.userAgent),d=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=d.browserName)&&void 0!==a?a:""," ").concat(null!==(c=d.browserVersion)&&void 0!==c?c:"")}}var kt=function(){var e=function(e){var t={sdkName:Dt.name,sdkVersion:Dt.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"}},Vt=n(6763),jt={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}},Ut={PROD:{doesReturnValue:!1},DEV:{doesReturnValue:!0}},Ft="[Skyflow]",Gt=function(e,t,n){var r=kt(),o=r.sdkLanguageAndVersion,i=r.sdkOwner;if(n&&jt[n]){var a=jt[n],c=a.showDebugLogs,l=a.showInfoLogs,s=a.showWarnLogs,p=a.showErrorLogs;t===pt.LOG&&c?Vt.log("".concat(lt.DEBUG,": ").concat(Ft," ").concat(e)):t===pt.LOG&&l?Vt.log("".concat(lt.INFO,": ").concat(Ft," ").concat(e)):t===pt.WARN&&s?Vt.warn("".concat(lt.WARN,": ").concat(Ft," ").concat(e)):t===pt.ERROR&&p&&Vt.error("".concat(lt.ERROR,": ").concat(i," ").concat(o," ").concat(e))}},Yt=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]})):""};function Bt(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=nt(e);if(t){var o=nt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return tt(this,n)}}var Xt=function(e){et(n,e);var t=Bt(n);function n(e,r){var o,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];s(this,n);var a={code:e.code,description:r&&(null==r?void 0:r.length)>0?Yt.apply(void 0,[e.description].concat(Ze(r))):e.description};return l($e(o=t.call(this,a.description)),"error",void 0),l($e(o),"errors",void 0),i?o.error=a:o.errors=[a],o}return u(n)}(ot(Error));function Wt(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 Kt(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 qt=new WeakMap,zt=function(){function e(t,n){var r=this;s(this,e),l(this,"config",void 0),Kt(this,qt,{writable:!0,value:void 0}),l(this,"request",(function(e){return new Promise((function(t,n){var o,i,a=new XMLHttpRequest;if(a){if(a.open(e.requestMethod,e.url),e.headers){var c=Pt(Dt,E(r,qt),navigator);e.headers["sky-metadata"]=JSON.stringify(c);var s=e.headers;Object.keys(e.headers).forEach((function(e){"content-type"===e&&s[e]&&s[e].includes(Ke.FORMDATA)||a.setRequestHeader(e,s[e])}))}null!==(o=e.headers)&&void 0!==o&&null!==(o=o["content-type"])&&void 0!==o&&o.includes(Ke.FORMURLENCODED)||null!==(i=e.headers)&&void 0!==i&&null!==(i=i["content-type"])&&void 0!==i&&i.includes(Ke.FORMDATA)?a.send(e.body):a.send(JSON.stringify(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wt(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e.body))),a.onload=function(){var e=a.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(a.status<200||a.status>=400)if(o&&o.includes("application/json")){var c,l,s,p=JSON.parse(a.response);if(null!==(c=p)&&void 0!==c&&null!==(c=c.error)&&void 0!==c&&c.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 Xt({code:a.status,description:p},[],!0))}else o&&o.includes("text/plain")?n(new Xt({code:a.status,description:i?"".concat(a.response," - requestId: ").concat(i):a.response},[],!0)):n(new Xt({code:a.status,description:i?"".concat(R.errorLogs.ERROR_OCCURED," - requestId: ").concat(i):R.errorLogs.ERROR_OCCURED},[],!0));o&&o.includes("application/json")&&t(JSON.parse(a.response)),t(a.response)},a.onerror=function(){n(new Xt(dt.NETWORK_ERROR,[],!0))}}else n(new Xt(dt.CONNECTION_ERROR,[],!0))}))})),this.config=t,f(this,qt,n)}return u(e,[{key:"toJSON",value:function(){return{config:this.config,metaData:E(this,qt)}}}],[{key:"fromJSON",value:function(t){return new e(t.config,t.metaData)}}]),e}();const Ht=zt;const Jt=function(){function e(){s(this,e),l(this,"events",void 0),this.events={}}return u(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 Zt(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){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zt(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Qt={src:"about:blank",frameBorder:0,allowtransparency:!0,scrolling:"no",style:"width: 100%;",allow:"clipboard-read; clipboard-write"},en=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 tn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=document.createElement("iframe"),n=$t($t({},Qt),e);return Object.assign(t.style,je),en(t,n),t.getAttribute("id")||(t.id=t.name),t};var nn=function(){return St.IFRAME_SECURE_SITE},rn=function(e,t){Object.keys(t).forEach((function(n){Object.prototype.hasOwnProperty.call(t,n)&&(e.style[n]=t[n])}))};const on=u((function e(){s(this,e)}));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){l(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}var ln={records:[]};function sn(e,t){var n,r,o,i=Pt(Dt,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.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||""};ln.records.push(a)}function pn(e,t,n){ln.records.forEach((function(r){r.element_id===e&&(t===K||t===Y?r[t].push(n):t===z&&r.mount_start_time?(r[t]=n,r.latency=n-r.mount_start_time):r[t]=n)}))}function un(e){var t=ln.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(G.MOUNTED)})).length>0?t=J.SUCCESS:e.events.length>0?t=J.PARTIAL_RENDER:(0===e.events.length||e.error)&&(t=J.FAILED),t}(n);var r=cn(cn({},n),{},{time:Math.floor(Date.now()/1e3)});""!==n.vault_id&&""!==n.vault_url&&m().emit(he+n.container_id,{event:r})}}function dn(e){setTimeout((function(){un(e)}),2e4)}var fn=n(6763),En=u((function e(t,n,r,o){var i=this;s(this,e),l(this,"name",void 0),l(this,"metadata",void 0),l(this,"iframe",void 0),l(this,"container",void 0),l(this,"mount",(function(e,t,n){var r;try{if("string"==typeof e){if(i.container=document.querySelector(e)||void 0,!i.container)throw new Xt(dt.INVALID_ELEMENT_SELECTOR,[],!0)}else{if(!(e instanceof HTMLElement))throw new Xt(dt.INVALID_ELEMENT_SELECTOR,[],!0);i.container=e}}catch(e){fn.error(e),t&&pn(t,H,e.message)}en(i.iframe,{src:"".concat(nn()).concat(n?"?".concat(btoa(null==n?void 0:n.record)):"")}),null===(r=i.container)||void 0===r||r.appendChild(i.iframe)})),l(this,"setIframeHeight",(function(e){i.iframe.getAttribute("height")!==e&&i.iframe.setAttribute("height","".concat(e,"px"))})),l(this,"unmount",(function(){i.iframe.remove()}));var a=n.clientDomain||"";this.name="".concat(t,":").concat(r,":").concat(o,":").concat(btoa(a)),this.metadata=n,this.iframe=tn({name:this.name,referrer:a})}));const _n=u((function e(){s(this,e)}));n(4756);var mn=function(e,t){var n={};if(e.fields){var r={skyflow_id:e.fields.skyflow_id,column:t};n.success=r}else e.errors&&(n.errors={skyflowId:e.errors.skyflowId,column:e.errors.column,error:e.errors.error});return n};function In(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 vn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?In(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):In(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yn(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=nt(e);if(t){var o=nt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return tt(this,n)}}function On(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 gn="RevealElement",Nn=new WeakMap,Ln=new WeakMap,Tn=new WeakMap,hn=new WeakMap,bn=new WeakMap,An=new WeakMap,wn=new WeakMap,Rn=new WeakMap,Sn=new WeakMap,Dn=new WeakMap,xn=new WeakMap,Mn=new WeakMap,Cn=new WeakMap,Pn=new WeakMap,kn=new WeakMap,Vn=function(e){et(n,e);var t=yn(n);function n(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,c=arguments.length>4?arguments[4]:void 0,p=arguments.length>5?arguments[5]:void 0;return s(this,n),On($e(r=t.call(this)),Nn,{writable:!0,value:void 0}),On($e(r),Ln,{writable:!0,value:void 0}),On($e(r),Tn,{writable:!0,value:void 0}),On($e(r),hn,{writable:!0,value:void 0}),On($e(r),bn,{writable:!0,value:!1}),On($e(r),An,{writable:!0,value:!1}),On($e(r),wn,{writable:!0,value:void 0}),On($e(r),Rn,{writable:!0,value:void 0}),On($e(r),Sn,{writable:!0,value:!1}),On($e(r),Dn,{writable:!0,value:void 0}),On($e(r),xn,{writable:!0,value:void 0}),On($e(r),Mn,{writable:!0,value:void 0}),On($e(r),Cn,{writable:!0,value:void 0}),On($e(r),Pn,{writable:!0,value:!1}),On($e(r),kn,{writable:!0,value:null}),l($e(r),"getShadowRoot",(function(){return E($e(r),kn)})),l($e(r),"emitEventFromShadowRoot",(function(e,t){if(E($e(r),kn)){var n=E($e(r),kn).getElementById(E($e(r),Nn).name);null!=n&&n.contentWindow&&n.contentWindow.postMessage(vn({name:e},t),St.IFRAME_SECURE_ORIGIN)}})),f($e(r),Rn,c),f($e(r),Ln,i),f($e(r),Cn,E($e(r),Ln).uuid),f($e(r),Tn,vn(vn({},e),function(e){var t={};if(e){if(t=Mt({},e),Object.prototype.hasOwnProperty.call(t,"enableCopy")&&!wt(t.enableCopy))throw new Xt(dt.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(ze),null===(n=t=Mt(Mt({},t),3===o.length?{mask:o}:{}))||void 0===n||delete n.format,null===(r=t)||void 0===r||delete r.translation}}return t}(o))),f($e(r),hn,a.containerId),f($e(r),Sn,a.isMounted),f($e(r),Dn,a.eventEmitter),f($e(r),wn,p),sn(i,c),pn(E($e(r),Rn),Y,F.REVEAL),pn(E($e(r),Rn),X,F.REVEAL),f($e(r),Nn,new En("".concat("reveal",":").concat(btoa(I())),i,E($e(r),hn),E($e(r),wn).logLevel)),f($e(r),Mn,""),f($e(r),xn,!1),f($e(r),Sn,!0),f($e(r),Pn,i.skyflowContainer.isControllerFrameReady),m().on(ae.HEIGHT+E($e(r),Nn).name,(function(e){E($e(r),Nn).setIframeHeight(e.height)})),r}return u(n,[{key:"getID",value:function(){return E(this,Rn)}},{key:"mount",value:function(e){var t,n,r=this;if(!e)throw new Xt(dt.EMPTY_ELEMENT_IN_MOUNT,["RevealElement"],!0);e instanceof HTMLElement&&e.getRootNode()instanceof ShadowRoot&&f(this,kn,e.getRootNode()),pn(E(this,Rn),B,e),null!==(t=E(this,Ln))&&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=E(this,Ln).clientJSON.config)&&void 0!==n&&null!==(n=n.options)&&void 0!==n&&n.trackingKey&&dn(E(this,Rn)),f(this,Sn,!0),E(this,Sn)&&(E(this,Nn).mount(e,void 0,{record:JSON.stringify(vn(vn({},E(this,Ln)),{},{record:E(this,Tn),context:E(this,wn),containerId:E(this,hn)}))}),m().target(St.IFRAME_SECURE_ORIGIN).on(ae.MOUNTED+E(this,Nn).name,(function(){var e;(f(r,bn,!0),E(r,Tn).skyflowID?(m().emit(De+E(r,hn),{skyflowID:E(r,Tn).skyflowID,containerId:E(r,hn)}),pn(E(r,Rn),z,Date.now()),pn(E(r,Rn),K,G.MOUNTED)):(m().emit(De+E(r,hn),{id:E(r,Tn).token,containerId:E(r,hn)}),pn(E(r,Rn),z,Date.now()),pn(E(r,Rn),K,G.MOUNTED)),Object.prototype.hasOwnProperty.call(E(r,Tn),"skyflowID"))&&m().emit(ae.HEIGHT+E(r,Nn).name,{height:(null===(e=E(r,Nn).container)||void 0===e?void 0:e.scrollHeight)||0,name:E(r,Nn).name},(function(e){E(r,Nn).setIframeHeight(e.height)}))})),pn(E(this,Rn),K,G.READY),pn(E(this,Rn),q,Date.now()))}},{key:"renderFile",value:function(){var e=this;f(this,Pn,E(this,Ln).skyflowContainer.isControllerFrameReady);var t="";Object.prototype.hasOwnProperty.call(E(this,Tn),"altText")&&(t=E(this,Tn).altText),this.setAltText("loading...");var n=E(this,wn).logLevel;return E(this,Pn)?new Promise((function(r,o){try{ht(E(e,Ln).clientJSON.config),Gt(Yt(R.infoLogs.VALIDATE_RENDER_RECORDS,gn),pt.LOG,n),Nt(E(e,Tn)),m().emit(se+E(e,Ln).uuid,{type:ie,records:E(e,Tn),containerId:E(e,hn),iframeName:E(e,Nn).name,shadowRoot:null!==e.getShadowRoot()},(function(n){n.errors?(Gt(Yt(R.errorLogs.FAILED_RENDER),pt.ERROR,E(e,wn).logLevel),Object.prototype.hasOwnProperty.call(E(e,Tn),"altText")&&e.setAltText(t),null!==e.getShadowRoot()&&e.emitEventFromShadowRoot(Le+E(e,Nn).name,{error:"File rendering failed. Please try again later.",iframeName:E(e,Nn).name}),o(mn(n,E(e,Tn).column))):(Gt(Yt(R.infoLogs.RENDER_SUBMIT_SUCCESS,gn),pt.LOG,E(e,wn).logLevel),Gt(Yt(R.infoLogs.FILE_RENDERED,gn,E(e,Tn).skyflowID),pt.LOG,E(e,wn).logLevel),null!==e.getShadowRoot()&&e.emitEventFromShadowRoot(Le+E(e,Nn).name,{iframeName:E(e,Nn).name,url:n.fields[E(e,Tn).column]}),r(mn(n,E(e,Tn).column)))})),Gt(Yt(R.infoLogs.EMIT_EVENT,gn,Te),pt.LOG,n)}catch(e){Gt("Error: ".concat(e.message),pt.ERROR,n),o(e)}})):new Promise((function(r,o){try{ht(E(e,Ln).clientJSON.config),Gt(Yt(R.infoLogs.VALIDATE_RENDER_RECORDS,gn),pt.LOG,n),Nt(E(e,Tn)),m().target(St.IFRAME_SECURE_ORIGIN).on(be+E(e,Ln).uuid,(function(){m().emit(se+E(e,Ln).uuid,{type:ie,records:E(e,Tn),containerId:E(e,hn),iframeName:E(e,Nn).name},(function(n){n.errors?(Gt(Yt(R.errorLogs.FAILED_RENDER),pt.ERROR,E(e,wn).logLevel),Object.prototype.hasOwnProperty.call(E(e,Tn),"altText")&&e.setAltText(t),o(mn(n,E(e,Tn).column))):(Gt(Yt(R.infoLogs.RENDER_SUBMIT_SUCCESS,gn),pt.LOG,E(e,wn).logLevel),Gt(Yt(R.infoLogs.FILE_RENDERED,gn,E(e,Tn).skyflowID),pt.LOG,E(e,wn).logLevel),r(mn(n,E(e,Tn).column)))})),Gt(Yt(R.infoLogs.EMIT_EVENT,gn,Te),pt.LOG,n)})),Gt(Yt(R.infoLogs.EMIT_EVENT,gn,Te),pt.LOG,n)}catch(e){Gt("Error: ".concat(e.message),pt.ERROR,n),o(e)}}))}},{key:"iframeName",value:function(){return E(this,Nn).name}},{key:"isMounted",value:function(){return E(this,bn)}},{key:"hasToken",value:function(){return!!E(this,Tn).token}},{key:"isClientSetError",value:function(){return E(this,An)}},{key:"getRecordData",value:function(){return E(this,Tn)}},{key:"setErrorOverride",value:function(e){var t=this;E(this,bn)?m().emit(ye+E(this,Nn).name,{name:E(this,Nn).name,isTriggerError:!0,clientErrorText:e}):m().target(St.IFRAME_SECURE_ORIGIN).on(ae.MOUNTED+E(this,Nn).name,(function(){m().emit(ye+E(t,Nn).name,{name:E(t,Nn).name,isTriggerError:!0,clientErrorText:e})})),f(this,An,!0)}},{key:"setError",value:function(e){var t=this;E(this,bn)?m().emit(ye+E(this,Nn).name,{name:E(this,Nn).name,isTriggerError:!0,clientErrorText:e}):m().target(St.IFRAME_SECURE_ORIGIN).on(ae.MOUNTED+E(this,Nn).name,(function(){f(t,bn,!0),m().emit(ye+E(t,Nn).name,{name:E(t,Nn).name,isTriggerError:!0,clientErrorText:e})})),f(this,An,!0)}},{key:"resetError",value:function(){var e=this;E(this,bn)?m().emit(ye+E(this,Nn).name,{name:E(this,Nn).name,isTriggerError:!1}):m().target(St.IFRAME_SECURE_ORIGIN).on(ae.MOUNTED+E(this,Nn).name,(function(){f(e,bn,!0),m().emit(ye+E(e,Nn).name,{name:E(e,Nn).name,isTriggerError:!1})})),f(this,An,!1)}},{key:"setAltText",value:function(e){var t=this;E(this,bn)?m().emit(Oe+E(this,Nn).name,{name:E(this,Nn).name,updateType:Re,updatedValue:e}):m().target(St.IFRAME_SECURE_ORIGIN).on(ae.MOUNTED+E(this,Nn).name,(function(){f(t,bn,!0),m().emit(Oe+E(t,Nn).name,{name:E(t,Nn).name,updateType:Re,updatedValue:e})}))}},{key:"clearAltText",value:function(){var e=this;E(this,bn)?m().emit(Oe+E(this,Nn).name,{name:E(this,Nn).name,updateType:Re,updatedValue:null}):m().target(St.IFRAME_SECURE_ORIGIN).on(ae.MOUNTED+E(this,Nn).name,(function(){f(e,bn,!0),m().emit(Oe+E(e,Nn).name,{name:E(e,Nn).name,updateType:Re,updatedValue:null})}))}},{key:"setToken",value:function(e){var t=this;f(this,Tn,vn(vn({},E(this,Tn)),{},{token:e})),E(this,bn)?m().emit(Oe+E(this,Nn).name,{name:E(this,Nn).name,updateType:we,updatedValue:e}):m().target(St.IFRAME_SECURE_ORIGIN).on(ae.MOUNTED+E(this,Nn).name,(function(){f(t,bn,!0),m().emit(Oe+E(t,Nn).name,{name:E(t,Nn).name,updateType:we,updatedValue:e})}))}},{key:"unmount",value:function(){var e;E(this,Tn).skyflowID&&(f(this,bn,!1),null===(e=E(this,Nn).container)||void 0===e||e.remove());f(this,bn,!1),E(this,Nn).unmount()}},{key:"update",value:function(e){var t=this;f(this,Tn,vn(vn({},E(this,Tn)),e)),E(this,bn)?m().emit(Oe+E(this,Nn).name,{name:E(this,Nn).name,updateType:Se,updatedValue:e}):m().target(St.IFRAME_SECURE_ORIGIN).on(ae.MOUNTED+E(this,Nn).name,(function(){f(t,bn,!0),m().emit(Oe+E(t,Nn).name,{name:E(t,Nn).name,updateType:Se,updatedValue:e})}))}}]),n}(_n);const jn=Vn;function Un(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 Fn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Un(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Un(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Gn(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=nt(e);if(t){var o=nt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return tt(this,n)}}function Yn(e,t,n){Bn(e,t),t.set(e,n)}function Bn(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Xn(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}var Wn="RevealContainer",Kn=new WeakMap,qn=new WeakMap,zn=new WeakMap,Hn=new WeakMap,Jn=new WeakMap,Zn=new WeakMap,$n=new WeakMap,Qn=new WeakMap,er=new WeakMap,tr=new WeakMap,nr=new WeakMap,rr=new WeakMap,or=new WeakSet;function ir(e,t){var n=this;m().emit(se+E(this,Hn).uuid,{type:oe,records:E(this,Kn),containerId:E(this,Jn)},(function(r){f(n,zn,[]),r.error?(Gt(Yt(R.errorLogs.FAILED_REVEAL),pt.ERROR,E(n,er).logLevel),t(r.error)):(Gt(Yt(R.infoLogs.REVEAL_SUBMIT_SUCCESS,Wn),pt.LOG,E(n,er).logLevel),e(r))}))}const ar=function(e){et(n,e);var t=Gn(n);function n(e,r,o){var i,a,c,p,u,d=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};s(this,n),c=t.call(this),Bn(p=$e(c),u=or),u.add(p),Yn($e(c),Kn,{writable:!0,value:[]}),Yn($e(c),qn,{writable:!0,value:[]}),Yn($e(c),zn,{writable:!0,value:[]}),Yn($e(c),Hn,{writable:!0,value:void 0}),Yn($e(c),Jn,{writable:!0,value:void 0}),Yn($e(c),Zn,{writable:!0,value:void 0}),Yn($e(c),$n,{writable:!0,value:!1}),Yn($e(c),Qn,{writable:!0,value:!1}),Yn($e(c),er,{writable:!0,value:void 0}),Yn($e(c),tr,{writable:!0,value:void 0}),Yn($e(c),nr,{writable:!0,value:void 0}),l($e(c),"type",Ri.REVEAL),Yn($e(c),rr,{writable:!0,value:!1}),f($e(c),rr,e.skyflowContainer.isControllerFrameReady),f($e(c),Hn,Fn(Fn({},e),{},{clientJSON:Fn(Fn({},e.clientJSON),{},{config:Fn(Fn({},null===(i=e.clientJSON)||void 0===i?void 0:i.config),{},{options:Fn(Fn({},null===(a=e.clientJSON)||void 0===a||null===(a=a.config)||void 0===a?void 0:a.options),d)})})})),f($e(c),tr,r),f($e(c),Jn,I()),f($e(c),Zn,new Jt),f($e(c),er,o);var _=E($e(c),Hn).clientDomain||"",v=tn({name:"".concat("reveal_controller",":").concat(E($e(c),Jn),":").concat(btoa(_)),referrer:_});return en(v,{src:nn()}),rn(v,Fn({},Ue)),Gt(Yt(R.infoLogs.CREATE_REVEAL_CONTAINER,Wn),pt.LOG,E($e(c),er).logLevel),m().target(window.location.origin).on(De+E($e(c),Jn),(function(e){e.skyflowID||E($e(c),zn).push(e);var t=0;E($e(c),qn).forEach((function(e){e.getRecordData().skyflowID||(t+=1)})),f($e(c),Qn,E($e(c),zn).length===t),E($e(c),$n)&&E($e(c),Qn)&&E($e(c),Zn)._emit(xe+E($e(c),Jn),{containerId:E($e(c),Jn)})})),c}return u(n,[{key:"create",value:function(e,t){var n=I();Rt(t);var r=new jn(e,t,E(this,Hn),{containerId:E(this,Jn),isMounted:E(this,nr),eventEmitter:E(this,Zn)},n,E(this,er));return E(this,qn).push(r),E(this,tr)[n]=r,r}},{key:"reveal",value:function(){var e=this;return f(this,$n,!0),f(this,Kn,[]),E(this,Hn).skyflowContainer.isControllerFrameReady?new Promise((function(t,n){try{if(ht(E(e,Hn).clientJSON.config),Gt(Yt(R.infoLogs.VALIDATE_REVEAL_RECORDS,Wn),pt.LOG,E(e,er).logLevel),E(e,qn).forEach((function(t){if(t.isClientSetError())throw new Xt(dt.REVEAL_ELEMENT_ERROR_STATE);t.getRecordData().skyflowID||E(e,Kn).push(t.getRecordData())})),0===E(e,Kn).length)throw new Xt(dt.NO_ELEMENTS_IN_REVEAL,[],!0);if(gt(E(e,Kn)),E(e,Qn))Xn(e,or,ir).call(e,t,n);else{var r=setTimeout((function(){Gt(R.errorLogs.ELEMENTS_NOT_MOUNTED_REVEAL,pt.ERROR,E(e,er).logLevel),n(new Error(R.errorLogs.ELEMENTS_NOT_MOUNTED_REVEAL))}),1e4);E(e,Zn).on(xe+E(e,Jn),(function(){clearTimeout(r),Xn(e,or,ir).call(e,t,n)}))}}catch(t){Gt("Error: ".concat(t.message),pt.ERROR,E(e,er).logLevel),n(t)}})):new Promise((function(t,n){try{if(ht(E(e,Hn).clientJSON.config),Gt(Yt(R.infoLogs.VALIDATE_REVEAL_RECORDS,Wn),pt.LOG,E(e,er).logLevel),E(e,qn).forEach((function(t){if(t.isClientSetError())throw new Xt(dt.REVEAL_ELEMENT_ERROR_STATE);t.getRecordData().skyflowID||E(e,Kn).push(t.getRecordData())})),0===E(e,Kn).length)throw new Xt(dt.NO_ELEMENTS_IN_REVEAL,[],!0);if(gt(E(e,Kn)),E(e,Qn))m().target(St.IFRAME_SECURE_ORIGIN).on(be+E(e,Hn).uuid,(function(){Xn(e,or,ir).call(e,t,n)}));else{var r=setTimeout((function(){Gt(R.errorLogs.ELEMENTS_NOT_MOUNTED_REVEAL,pt.ERROR,E(e,er).logLevel),n(new Error(R.errorLogs.ELEMENTS_NOT_MOUNTED_REVEAL))}),1e4);E(e,Zn).on(xe+E(e,Jn),(function(){clearTimeout(r),E(e,Hn).skyflowContainer.isControllerFrameReady?Xn(e,or,ir).call(e,t,n):m().target(St.IFRAME_SECURE_ORIGIN).on(be+E(e,Hn).uuid,(function(){Xn(e,or,ir).call(e,t,n)}))}))}}catch(t){Gt("Error: ".concat(t.message),pt.ERROR,E(e,er).logLevel),n(t)}}))}}]),n}(on);function cr(e){return JSON.parse(JSON.stringify(e))}function lr(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 sr=function(){function e(){s(this,e),l(this,"listeners",void 0),l(this,"isDestroyed",void 0),this.listeners=[],this.isDestroyed=!1}return u(e,[{key:"on",value:function(e,t){m().on(e,t),this.listeners.push({eventName:e,callback:t})}},{key:"off",value:function(e,t){m().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;m().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){m().off(e.eventName,e.handler)})),this.listeners=[]}}]),e}();var pr=["name"];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 dr(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){l(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 fr(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=nt(e);if(t){var o=nt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return tt(this,n)}}function Er(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 _r=new WeakMap,mr=new WeakMap,Ir=new WeakMap,vr=new WeakMap,yr=new WeakMap,Or=new WeakMap,gr=new WeakMap,Nr=new WeakMap,Lr=new WeakMap,Tr=new WeakMap,hr=new WeakMap,br=new WeakMap,Ar=new WeakMap,wr=new WeakMap,Rr=new WeakMap,Sr=new WeakMap,Dr=new WeakMap,xr=new WeakMap,Mr=new WeakMap,Cr=new WeakMap,Pr=new WeakMap,kr=new WeakMap,Vr=new WeakMap,jr=function(e){et(n,e);var t=fr(n);function n(e,r,o,i){var a,c=arguments.length>4&&void 0!==arguments[4]&&arguments[4],p=arguments.length>5?arguments[5]:void 0,u=arguments.length>6?arguments[6]:void 0,d=arguments.length>7?arguments[7]:void 0,_=arguments.length>8?arguments[8]:void 0;return s(this,n),l($e(a=t.call(this)),"elementType",void 0),l($e(a),"type",Ri.COLLECT),Er($e(a),_r,{writable:!0,value:void 0}),l($e(a),"containerId",void 0),Er($e(a),mr,{writable:!0,value:!1}),Er($e(a),Ir,{writable:!0,value:void 0}),Er($e(a),vr,{writable:!0,value:void 0}),l($e(a),"resizeObserver",void 0),Er($e(a),yr,{writable:!0,value:{isEmpty:!0,isComplete:!1,isValid:!1,isFocused:!1,value:void 0,isRequired:!1,selectedCardScheme:""}}),Er($e(a),Or,{writable:!0,value:void 0}),Er($e(a),gr,{writable:!0,value:void 0}),Er($e(a),Nr,{writable:!0,value:new Jt}),Er($e(a),Lr,{writable:!0,value:void 0}),Er($e(a),Tr,{writable:!0,value:new sr}),Er($e(a),hr,{writable:!0,value:void 0}),Er($e(a),br,{writable:!0,value:[]}),Er($e(a),Ar,{writable:!0,value:!1}),Er($e(a),wr,{writable:!0,value:void 0}),Er($e(a),Rr,{writable:!0,value:void 0}),Er($e(a),Sr,{writable:!0,value:!1}),Er($e(a),Dr,{writable:!0,value:!1}),Er($e(a),xr,{writable:!0,value:null}),l($e(a),"getID",(function(){return E($e(a),_r)})),l($e(a),"mount",(function(e){var t;if(f($e(a),Ar,!0),!e)throw new Xt(dt.EMPTY_ELEMENT_IN_MOUNT,["CollectElement"],!0);if(e instanceof HTMLElement&&e.getRootNode()instanceof ShadowRoot&&f($e(a),xr,e.getRootNode()),a.resizeObserver=new ResizeObserver((function(){E($e(a),Tr).emit(ae.HEIGHT+E($e(a),hr).name,{},(function(e){E($e(a),hr).setIframeHeight(e.height)}))})),pn(E($e(a),_r),B,e),null!==(t=E($e(a),gr))&&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&&E($e(a),gr).clientJSON.config.options.trackingKey&&dn(E($e(a),_r)),"string"==typeof e){var n,r=document.querySelector(e);if(r)null===(n=a.resizeObserver)||void 0===n||n.observe(r)}else if(e instanceof HTMLElement){var o;null===(o=a.resizeObserver)||void 0===o||o.observe(e)}E($e(a),vr).length>1?(E($e(a),hr).mount(e,E($e(a),_r),{record:JSON.stringify({record:E($e(a),Or),containerId:a.containerId,metaData:E($e(a),gr)})}),E($e(a),vr).forEach((function(e,t){E($e(a),Lr)&&(E($e(a),Lr)._emit("".concat(ae.READY,":").concat(e.elementName),dr(dr({},E($e(a),Ir)[t]),{},{elementType:e.elementType})),pn(E($e(a),_r),K,"".concat(e.elementType,"_").concat(W.READY)))})),pn(E($e(a),_r),q,Date.now())):E($e(a),Sr)&&(E($e(a),hr).mount(e,E($e(a),_r),{record:JSON.stringify({record:E($e(a),Or),containerId:a.containerId,metaData:E($e(a),gr)})}),pn(E($e(a),_r),q,Date.now()))})),l($e(a),"getShadowRoot",(function(){return E($e(a),xr)})),l($e(a),"emitEventFromShadowRoot",(function(e,t,n){if(E($e(a),xr)){var r=E($e(a),xr).getElementById(E($e(a),hr).name);null!=r&&r.contentWindow&&r.contentWindow.postMessage(dr({name:e},t),St.IFRAME_SECURE_ORIGIN)}})),l($e(a),"unmount",(function(){var e;(E($e(a),hr).unmount(),a.resizeObserver)&&(null===(e=a.resizeObserver)||void 0===e||e.disconnect())})),l($e(a),"updateElementGroup",(function(e){var t=cr(e),n=function(){E($e(a),mr)&&(t={rows:[{elements:[dr({},t)]}]}),f($e(a),Or,$r(E($e(a),Or),t)),f($e(a),vr,Qr(E($e(a),Or))),E($e(a),mr)?E($e(a),Tr).emit(fe+Ct(E($e(a),hr).name),{name:E($e(a),hr).name,options:E($e(a),vr)[0],isSingleElementAPI:!0}):(E($e(a),vr).forEach((function(e){E($e(a),Tr).emit(fe+Ct(E($e(a),hr).name),{name:e.elementName,options:e,isSingleElementAPI:!0})})),E($e(a),Tr).emit(fe+Ct(E($e(a),hr).name),{name:E($e(a),hr).name,options:E($e(a),Or),isSingleElementAPI:!1})),E($e(a),Vr).call($e(a))};E($e(a),Ar)?n():E($e(a),br).push(n)})),Er($e(a),Mr,{writable:!0,value:function(e){E($e(a),mr)||E($e(a),Nr).on(fe+Ct(E($e(a),hr).name),(function(){e(E($e(a),vr))}),!0)}}),l($e(a),"updateElement",(function(e){E($e(a),Tr).emit(fe+e.elementName,{name:e.elementName,options:e,isSingleElementAPI:!0})})),l($e(a),"update",(function(e){f($e(a),Dr,!0),E($e(a),Ar)?(e.validations=eo(e.validations),a.updateElement(dr({elementName:E($e(a),Or).elementName},e)),f($e(a),Dr,!1)):E($e(a),Dr)&&E($e(a),Nr).on("".concat(ct.READY,":").concat(E($e(a),_r)),(function(){e.validations=eo(e.validations),a.updateElement(dr({elementName:E($e(a),Or).elementName},e)),f($e(a),Ar,!0),f($e(a),Dr,!1)}))})),Er($e(a),Cr,{writable:!0,value:function(){E($e(a),Ir).forEach((function(e,t){if(0===t){E($e(a),yr).isEmpty=e.isEmpty,E($e(a),yr).isComplete=e.isComplete,E($e(a),yr).isValid=e.isValid,E($e(a),yr).isFocused=e.isFocused,E($e(a),yr).isRequired=e.isRequired,E($e(a),yr).value={},E($e(a),yr).selectedCardScheme="";var n=E($e(a),vr)[t].elementName,r=e.value&&function(e,t,n){if("string"!=typeof e)return e;if(t===Me.CARD_NUMBER){if(e=e&&e.replace(/\s/g,""),!n){var r,o=Et(e),i=o!==Ce.DEFAULT&&o===Ce.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,E($e(a),Rr));E($e(a),mr)?E($e(a),yr).value=r:E($e(a),yr).value[n]=r}else E($e(a),yr).isEmpty=E($e(a),yr).isEmpty||e.isEmpty,E($e(a),yr).isComplete=E($e(a),yr).isComplete&&e.isComplete,E($e(a),yr).isValid=E($e(a),yr).isValid&&e.isValid,E($e(a),yr).isFocused=E($e(a),yr).isFocused||e.isFocused,E($e(a),yr).isRequired=E($e(a),yr).isRequired||e.isRequired,E($e(a),yr).selectedCardScheme=E($e(a),yr).selectedCardScheme||e.selectedCardScheme,E($e(a),yr).value||(E($e(a),yr).value={}),E($e(a),vr)[t].sensitive||(E($e(a),yr).value[E($e(a),vr)[t].elementName]=e.value||"")}))}}),l($e(a),"getState",(function(){return{isEmpty:E($e(a),yr).isEmpty,isComplete:E($e(a),yr).isComplete,isValid:E($e(a),yr).isValid,isFocused:E($e(a),yr).isFocused,value:E($e(a),yr).value,required:E($e(a),yr).isRequired,selectedCardScheme:""}})),l($e(a),"getOptions",(function(){var e=cr(E($e(a),Or));return E($e(a),mr)?e=e.rows[0].elements[0]:e.rows.forEach((function(e){e.elements.forEach((function(e){delete e.elementName}))})),delete e.elementName,e})),Er($e(a),Pr,{writable:!0,value:function(e){E($e(a),Nr).on(de,(function(){var t=E($e(a),vr).map((function(e){return e.elementName}));E($e(a),mr)||t.push(E($e(a),hr).name),e(t)}),!0)}}),Er($e(a),kr,{writable:!0,value:function(){E($e(a),Tr).on(Ae,(function(e){if(e.ready&&e.name===a.iframeName()){var t=E($e(a),Ir)[0],n=(t.name,lr(t,pr));E($e(a),Nr)._emit(ae.READY,dr({},n))}})),E($e(a),vr).forEach((function(e){E($e(a),Tr).on(ue+e.elementName,(function(e){if(E($e(a),mr)&&e.event===ae.READY&&e.name===Ct(E($e(a),hr).name))E($e(a),Nr)._emit(ae.READY);else{var t=E($e(a),vr).length>1;E($e(a),vr).forEach((function(n,r){var o;if(e.name===n.elementName){var i,c="";switch(e.event){case ae.FOCUS:c=ae.FOCUS;break;case ae.BLUR:c=ae.BLUR;break;case ae.CHANGE:c=ae.CHANGE;break;case ae.READY:c=ae.READY;break;case ae.SUBMIT:return void(null===(o=E($e(a),Lr))||void 0===o||o._emit(ae.SUBMIT));default:throw new Xt(dt.INVALID_EVENT_TYPE,[],!0)}E($e(a),Ir)[r].isEmpty=e.value.isEmpty,E($e(a),Ir)[r].isValid=e.value.isValid,E($e(a),Ir)[r].isComplete=e.value.isComplete,E($e(a),Ir)[r].isFocused=e.value.isFocused,E($e(a),Ir)[r].isRequired=e.value.isRequired,E($e(a),Ir)[r].selectedCardScheme=(null==e||null===(i=e.value)||void 0===i?void 0:i.selectedCardScheme)||"",Object.prototype.hasOwnProperty.call(e.value,"value")?E($e(a),Ir)[r].value=e.value.value:E($e(a),Ir)[r].value=void 0,c=t?"".concat(c,":").concat(e.name):c,E($e(a),Tr).emit(ae.HEIGHT+E($e(a),hr).name,{},(function(e){E($e(a),hr).setIframeHeight(e.height)})),E($e(a),Cr).call($e(a));var l=dr(dr({},E($e(a),Ir)[r]),{},{elementType:n.elementType});t&&E($e(a),Lr)?E($e(a),Lr)._emit(c,l):E($e(a),Nr)._emit(c,l)}}))}}))}))}}),Er($e(a),Vr,{writable:!0,value:function(){E($e(a),Or).rows.forEach((function(e){e.elements.forEach((function(e){e.elementType!==ke.radio.name&&e.elementType!==ke.checkbox.name&&(e.value=void 0)}))})),f($e(a),vr,Qr(E($e(a),Or)))}}),a.containerId=i.containerId,f($e(a),_r,e),f($e(a),wr,d),f($e(a),gr,o),f($e(a),Or,$r(r)),f($e(a),vr,Qr(r)),f($e(a),mr,c),a.resizeObserver=null,_&&f($e(a),Lr,_),f($e(a),Rr,Ut[E($e(a),wr).env].doesReturnValue),a.elementType=E($e(a),mr)?E($e(a),vr)[0].elementType:"group",sn(o,e),f($e(a),Ir,[]),E($e(a),vr).forEach((function(e){pn(E($e(a),_r),Y,e.elementType),E($e(a),Ir).push({isEmpty:!0,isComplete:!1,isValid:!e.required&&E($e(a),yr).isEmpty,isFocused:!1,value:E($e(a),Rr)?"":void 0,elementType:e.elementType,name:e.elementName,isRequired:e.required,selectedCardScheme:""})})),E($e(a),vr)&&E($e(a),vr).length&&E($e(a),vr).length>1?pn(E($e(a),_r),X,F.COMPOSE):pn(E($e(a),_r),X,F.COLLECT),f($e(a),hr,new En(E($e(a),Or).elementName,o,a.containerId,E($e(a),wr).logLevel)),E($e(a),kr).call($e(a)),E($e(a),Pr).call($e(a),p),E($e(a),Mr).call($e(a),u),Gt(Yt(R.infoLogs.CREATED_ELEMENT,"Element",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}(E($e(a),hr).name)),pt.LOG,E($e(a),wr).logLevel),f($e(a),Sr,i.isMounted),i.type===Ri.COMPOSABLE&&E($e(a),vr).forEach((function(e){E($e(a),Tr).on(ae.MOUNTED+Ct(e.elementName),(function(t){t.name===e.elementName&&(pn(E($e(a),_r),K,"".concat(e.elementType,"_").concat(W.MOUNTED)),e.isMounted=!0,f($e(a),Ar,!0),E($e(a),Tr).emit(ae.HEIGHT+E($e(a),hr).name,{},(function(e){E($e(a),hr).setIframeHeight(e.height)})))}))})),E($e(a),Tr).on(ae.MOUNTED+Ct(E($e(a),hr).name),(function(e){e.name===E($e(a),vr)[0].elementName&&(pn(E($e(a),_r),z,Date.now()),pn(E($e(a),_r),K,G.MOUNTED),E($e(a),vr)[0].isMounted=!0,f($e(a),Ar,!0),E($e(a),Tr).emit(ae.HEIGHT+E($e(a),hr).name,{},(function(e){E($e(a),hr).setIframeHeight(e.height)})))})),a}return u(n,[{key:"on",value:function(e,t){if(!Object.values(ae).includes(e))throw new Xt(dt.INVALID_EVENT_LISTENER,[],!0);if(!t)throw new Xt(dt.MISSING_HANDLER_IN_EVENT_LISTENER,[],!0);if("function"!=typeof t)throw new Xt(dt.INVALID_HANDLER_IN_EVENT_LISTENER,[],!0);E(this,Nr).on(e,(function(e){void 0===e.value&&(e.value=""),e.elementType!==Me.CARD_NUMBER&&delete e.selectedCardScheme,delete e.isComplete,delete e.name,t(e)})),e===ae.READY&&E(this,Tr).emit(Ae,{ready:E(this,Sr),name:this.iframeName()})}},{key:"iframeName",value:function(){return E(this,hr).name}},{key:"isMounted",value:function(){return E(this,Ar)}},{key:"isUpdateCalled",value:function(){return E(this,Dr)}},{key:"isValidElement",value:function(){for(var e=0;e<E(this,vr).length;e+=1){if(!Object.prototype.hasOwnProperty.call(E(this,vr)[e],"table"))throw new Xt(dt.MISSING_TABLE_IN_COLLECT,[],!0);if(!E(this,vr)[e].table)throw new Xt(dt.EMPTY_TABLE_IN_COLLECT,[],!0);if(!("string"==typeof E(this,vr)[e].table||E(this,vr)[e].table instanceof String))throw new Xt(dt.INVALID_TABLE_IN_COLLECT,[],!0);if(!Object.prototype.hasOwnProperty.call(E(this,vr)[e],"column"))throw new Xt(dt.MISSING_COLUMN_IN_COLLECT,[],!0);if(!E(this,vr)[e].column)throw new Xt(dt.EMPTY_COLUMN_IN_COLLECT,[],!0);if(!("string"==typeof E(this,vr)[e].column||E(this,vr)[e].column instanceof String))throw new Xt(dt.INVALID_COLUMN_IN_COLLECT,[],!0);if(void 0!==E(this,vr)[e].skyflowID&&!E(this,vr)[e].skyflowID)throw new Xt(dt.EMPTY_SKYFLOW_ID_COLLECT,[],!0)}return!0}},{key:"setErrorOverride",value:function(e){E(this,Tr).emit(ve+Ct(E(this,hr).name),{name:Ct(E(this,hr).name),customErrorText:e})}},{key:"setError",value:function(e){E(this,Tr).emit(Ie+Ct(E(this,hr).name),{name:Ct(E(this,hr).name),isTriggerError:!0,clientErrorText:e})}},{key:"resetError",value:function(){E(this,Tr).emit(Ie+Ct(E(this,hr).name),{name:Ct(E(this,hr).name),isTriggerError:!1})}},{key:"setValue",value:function(e){E(this,wr).env!==st.PROD?E(this,mr)&&E(this,Tr).emit(fe+Ct(E(this,hr).name),{name:E(this,hr).name,options:dr(dr({},E(this,vr)[0]),{},{value:e},E(this,Or)),isSingleElementAPI:!0}):Gt(Yt(R.warnLogs.UNABLE_TO_SET_VALUE_IN_PROD_ENV,E(this,vr)[0].elementType),pt.WARN,E(this,wr).logLevel)}},{key:"clearValue",value:function(){E(this,wr).env!==st.PROD?E(this,mr)&&E(this,Tr).emit(fe+Ct(E(this,hr).name),{name:E(this,hr).name,options:dr(dr({},E(this,vr)[0]),{},{value:""}),isSingleElementAPI:!0}):Gt(Yt(R.warnLogs.UNABLE_TO_CLEAR_VALUE_IN_PROD_ENV,E(this,vr)[0].elementType),pt.WARN,E(this,wr).logLevel)}}]),n}(_n);const Ur=jr;function Fr(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 Gr=new WeakMap,Yr=new WeakMap,Br=new WeakMap,Xr=new WeakMap,Wr=new WeakMap;const Kr=function(){function e(t,n,r){var o=this;s(this,e),Fr(this,Gr,{writable:!0,value:void 0}),Fr(this,Yr,{writable:!0,value:void 0}),Fr(this,Br,{writable:!0,value:void 0}),l(this,"type",Ri.COMPOSABLE),Fr(this,Xr,{writable:!0,value:!1}),Fr(this,Wr,{writable:!0,value:!1}),l(this,"update",(function(e){f(o,Wr,!0),E(o,Xr)?(e.validations=eo(e.validations),E(o,Yr)._emit(Ne,{elementName:E(o,Gr),elementOptions:e}),f(o,Wr,!1)):E(o,Wr)&&E(o,Yr).on("".concat(ct.READY,":").concat(E(o,Gr)),(function(){e.validations=eo(e.validations),E(o,Yr)._emit(Ne,{elementName:E(o,Gr),elementOptions:e}),f(o,Xr,!0),f(o,Wr,!1)}))})),f(this,Gr,t),f(this,Br,r),f(this,Yr,n),E(this,Yr).on("".concat(ct.READY,":").concat(E(this,Gr)),(function(){f(o,Xr,!0)}))}return u(e,[{key:"on",value:function(e,t){if(!Object.values(ae).includes(e))throw new Xt(dt.INVALID_EVENT_LISTENER,[],!0);if(!t)throw new Xt(dt.MISSING_HANDLER_IN_EVENT_LISTENER,[],!0);if("function"!=typeof t)throw new Xt(dt.INVALID_HANDLER_IN_EVENT_LISTENER,[],!0);E(this,Yr).on("".concat(e,":").concat(E(this,Gr)),(function(e){void 0===e.value&&(e.value=""),e.elementType!==Me.CARD_NUMBER&&delete e.selectedCardScheme,delete e.isComplete,delete e.name,t(e)}))}},{key:"iframeName",value:function(){return E(this,Br)}},{key:"getID",value:function(){return E(this,Gr)}}]),e}();function qr(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 zr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qr(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Hr(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 Jr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hr(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("group"!==e&&!Object.prototype.hasOwnProperty.call(ke,e))throw new Xt(dt.INVALID_ELEMENT_TYPE,[],!0);if(Object.prototype.hasOwnProperty.call(t,"validations")){if(!Array.isArray(t.validations))throw new Xt(dt.INVALID_VALIDATIONS_TYPE,[],!0);t.validations.forEach((function(e,t){if(!Object.prototype.hasOwnProperty.call(e,"type"))throw new Xt(dt.MISSING_VALIDATION_RULE_TYPE,["".concat(t)],!0);if(!Object.values(ut).includes(e.type))throw new Xt(dt.INVALID_VALIDATION_RULE_TYPE,["".concat(t)],!0);if(!Object.prototype.hasOwnProperty.call(e,"params"))throw new Xt(dt.MISSING_VALIDATION_RULE_PARAMS,["".concat(t)],!0);if("object"!==a(e.params)||Array.isArray(e.params)||null===e.params)throw new Xt(dt.INVALID_VALIDATION_RULE_PARAMS,["".concat(t)],!0);if(e.type===ut.REGEX_MATCH_RULE){if(!Object.prototype.hasOwnProperty.call(e.params,"regex"))throw new Xt(dt.MISSING_REGEX_IN_REGEX_MATCH_RULE,["".concat(t)],!0)}else if(e.type===ut.LENGTH_MATCH_RULE&&!Object.prototype.hasOwnProperty.call(e.params,"min")&&!Object.prototype.hasOwnProperty.call(e.params,"max"))throw new Xt(dt.MISSING_MIN_AND_MAX_IN_LENGTH_MATCH_RULE,["".concat(t)],!0)}))}if(Object.prototype.hasOwnProperty.call(n,"name")&&n.name!==t.name)throw new Error("Name attribute can't be updated");if((n=Jr(Jr({},t),n)).mask||n.replacePattern){var r=ke[e].attributes.type;"text"===r&&"textarea"===r&&"email"===r||(delete n.mask,delete n.replacePattern)}if(void 0===!n.mask&&!Array.isArray(n.mask))throw new Error("mask option has to be array or undefined");if(Array.isArray(n.mask)){var o=n.mask;if("string"!=typeof o[0]||o[1]&&"object"!==a(o[1]))throw new Error("mask array values has to be string")}if(Array.isArray(n.replacePattern)){var i=n.replacePattern;if("string"!=typeof i[0]||i[1]&&"string"!=typeof i[1])throw new Error("replacePatterns array values has to be string")}if((e===ke.radio.name||e===ke.checkbox.name)&&!n.value)throw new Error("Elements radio and checkbox requires value attribute");if(!(e!==ke.dropdown.name||n.options&&Array.isArray(n.options)&&0!==n.options.length))throw new Error("Element dropdown requires options attribute with an array of objects containing value and text attributes")}function $r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return(t=Jr(Jr({},e),t)).rows.forEach((function(r,o){var i=r,c=e.rows[o];t.rows[o]=Jr(Jr({},c),i),i.elements.forEach((function(e,t){var r,o,l=c.elements[t],s=e;if(s.elementType&&l.elementType!==s.elementType&&l.elementName&&l.elementName!==s.elementName)throw new Error(Yt(R.errorLogs.CANNOT_CHANGE_ELEMENT));Zr(l.elementType,l,s),i.elements[t]=Jr(Jr(Jr({},l),s),{},{elementName:l.elementName});var p=s.classes||{},u=s.styles||{};u.base=Jr(Jr({},Fe),u.base),s.classes=p,s.styles=u;var d=(null==s||null===(r=s.labelStyles)||void 0===r?void 0:r.classes)||{},f=(null==s||null===(o=s.labelStyles)||void 0===o?void 0:o.styles)||{};n&&function(e,t){Object.values(Ge).forEach((function(n){if(e[n]||t[n])switch(n){case Ge.BASE:t[n]=zr({},t[n]);break;case Ge.FOCUS:t[Ge.BASE]=zr(zr({},t[Ge.BASE]),{},{":focus":zr({},t[Ge.BASE]&&t[Ge.BASE][":focus"])});break;case Ge.WEBPACKAUTOFILL:t[Ge.BASE]=zr(zr({},t[Ge.BASE]),{},{":-webkit-autofill":zr({},t[Ge.BASE]&&t[Ge.BASE][":-webkit-autofill"])});break;default:t[n]=zr(zr({},t[Ge.BASE]),t[n])}})),Object.keys(t).forEach((function(e){var n=t[e][":-webkit-autofill"];"object"===a(n)&&Object.keys(n).forEach((function(e){n[e]&&!n[e].includes("!important")&&(n[e]="".concat(n[e]," !important"))}))}))}(d,f),s.labelStyles={labelClasses:d},s.labelStyles.styles=f}))})),t}var Qr=function(e){var t=e.rows,n=[];return t.forEach((function(e){e.elements.forEach((function(e){n.push(e)}))})),n},eo=function(e){return e&&Array.isArray(e)&&0!==e.length?e.map((function(e,t){if(!e)return e;switch(e.type){case ut.ELEMENT_VALUE_MATCH_RULE:var n=e.params;if(!n||!Object.prototype.hasOwnProperty.call(n,"element"))throw new Xt(dt.MISSING_ELEMENT_IN_ELEMENT_MATCH_RULE,["".concat(t)],!0);var r=n.element;if(!r||!(r instanceof Ur||Kr))throw new Xt(dt.INVALID_ELEMENT_IN_ELEMENT_MATCH_RULE,["".concat(t)],!0);return Jr(Jr({},e),{},{params:Jr(Jr({},n),{},{elementID:r.getID(),element:r.iframeName()})});case ut.REGEX_MATCH_RULE:var o=e.params,i=(o||{}).regex;if(i&&!Tt(i))throw new Xt(dt.INVALID_REGEX_IN_REGEX_MATCH_RULE,["".concat(t)],!0);if(i&&Tt(i))return Jr(Jr({},e),{},{params:Jr(Jr({},o),{},{regex:i.toString()})});break;default:return e}return e})):e},to=function(e,t,n){var r,o,i,c=Jr({required:!1},t);if(Object.prototype.hasOwnProperty.call(c,"format")||Object.prototype.hasOwnProperty.call(c,"translation"))if(qe.includes(e))Gt(Yt(R.warnLogs.INPUT_FORMATTING_NOT_SUPPROTED,e),pt.WARN,n),null===(r=c)||void 0===r||delete r.format,null===(o=c)||void 0===o||delete o.translation;else if(e===ke.INPUT_FIELD.name){var l,s;Rt(t),null===(l=c=Jr(Jr({},c),{},{mask:[c.format,c.translation?c.translation:ze]}))||void 0===l||delete l.format,null===(s=c)||void 0===s||delete s.translation}switch(e){case ke.CARD_NUMBER.name:var p,u,d;Object.prototype.hasOwnProperty.call(c,"enableCardIcon")||(c=Jr(Jr({},c),{},{enableCardIcon:!0}));var f=" ";if((null===(p=c)||void 0===p?void 0:p.format)===Ve&&(f="-"),null===(u=c=Jr(Jr({},c),{},{cardSeperator:f}))||void 0===u||delete u.format,null===(d=c)||void 0===d||delete d.translation,Object.prototype.hasOwnProperty.call(c,"cardMetadata")){if("object"!==a(c.cardMetadata)||"[object Object]"!==Object.prototype.toString.call(c.cardMetadata))throw new Xt(dt.INVALID_OPTION_CARD_METADATA,[],!0);if(Object.prototype.hasOwnProperty.call(c.cardMetadata,"scheme")&&("object"!==a(c.cardMetadata.scheme)||"[object Array]"!==Object.prototype.toString.call(c.cardMetadata.scheme)))throw new Xt(dt.INVALID_OPTION_CARD_SCHEME,[],!0)}break;case ke.EXPIRATION_DATE.name:var E,_=!1;c.format&&((_=!!(i=c.format.toUpperCase())&&Xe.includes(i))||Gt(Yt(R.warnLogs.INVALID_EXPIRATION_DATE_FORMAT,Xe.toString()),pt.WARN,n)),null===(E=c=Jr(Jr({},c),{},{format:_?c.format.toUpperCase():Be}))||void 0===E||delete E.translation;break;case ke.EXPIRATION_YEAR.name:var m,I=!1;c.format&&(I=function(e){return!!e&&We.includes(e)}(c.format.toUpperCase()),I||Gt(Yt(R.warnLogs.INVALID_EXPIRATION_YEAR_FORMAT,We.toString()),pt.WARN,n)),null===(m=c=Jr(Jr({},c),{},{format:I?c.format.toUpperCase():"YY"}))||void 0===m||delete m.translation;break;case ke.FILE_INPUT.name:Object.prototype.hasOwnProperty.call(c,"preserveFileName")||(c=Jr(Jr({},c),{},{preserveFileName:!0}))}if(Object.prototype.hasOwnProperty.call(c,"enableCardIcon")&&!wt(c.enableCardIcon))throw new Xt(dt.INVALID_BOOLEAN_OPTIONS,["enableCardIcon"],!0);if(Object.prototype.hasOwnProperty.call(c,"enableCopy")&&!wt(c.enableCopy))throw new Xt(dt.INVALID_BOOLEAN_OPTIONS,["enableCopy"],!0);if(Object.prototype.hasOwnProperty.call(c,"required")&&!wt(c.required))throw new Xt(dt.INVALID_BOOLEAN_OPTIONS,["required"],!0);if(Object.prototype.hasOwnProperty.call(c,"preserveFileName")&&!wt(c.preserveFileName))throw new Xt(dt.INVALID_BOOLEAN_OPTIONS,["preserveFileName"],!0);if(e===ke.FILE_INPUT.name){if(t.allowedFileType){if(!Array.isArray(t.allowedFileType))throw new Xt(dt.INVALID_ALLOWED_OPTIONS,[],!0);if(t.allowedFileType.length<=0)throw new Xt(dt.EMPTY_ALLOWED_OPTIONS_ARRAY,[],!0);if(!t.allowedFileType.every((function(e){return"string"==typeof e})))throw new Xt(dt.INVALID_ALLOWED_FILETYPE_ARRAY,[],!0)}if(Object.prototype.hasOwnProperty.call(t,"allowedFileType")&&(c=Jr(Jr({},c),{},{allowedFileType:t.allowedFileType})),Object.prototype.hasOwnProperty.call(t,"blockEmptyFiles")&&!wt(t.blockEmptyFiles))throw new Xt(dt.INVALID_BOOLEAN_OPTIONS,["blockEmptyFiles"],!0);Object.prototype.hasOwnProperty.call(t,"blockEmptyFiles")&&(c=Jr(Jr({},c),{},{blockEmptyFiles:c.blockEmptyFiles}))}if(Object.prototype.hasOwnProperty.call(t,"masking")){if(!wt(t.masking))throw new Xt(dt.INVALID_BOOLEAN_OPTIONS,["masking"],!0);if(Object.prototype.hasOwnProperty.call(t,"maskingChar")&&"string"==typeof t.maskingChar&&t.maskingChar.length>1)throw new Xt(dt.INVALID_MASKING_CHARACTER,[],!0);c=Object.prototype.hasOwnProperty.call(t,"maskingChar")&&"string"==typeof t.maskingChar?Jr(Jr({},c),{},{masking:t.masking,maskingChar:t.maskingChar}):Jr(Jr({},c),{},{masking:t.masking,maskingChar:"*"})}return c};function no(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?no(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):no(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oo(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=nt(e);if(t){var o=nt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return tt(this,n)}}function io(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 ao="CollectContainer",co=new WeakMap,lo=new WeakMap,so=new WeakMap,po=new WeakMap,uo=new WeakMap,fo=new WeakMap,Eo=new WeakMap,_o=new WeakMap,mo=new WeakMap,Io=new WeakMap,vo=new WeakMap,yo=new WeakMap,Oo=new WeakMap,go=new WeakMap,No=new WeakMap,Lo=new WeakMap,To=new WeakMap,ho=new WeakMap,bo=function(e){et(n,e);var t=oo(n);function n(e,r,o,i){var a,c;s(this,n),io($e(c=t.call(this)),co,{writable:!0,value:void 0}),io($e(c),lo,{writable:!0,value:{}}),io($e(c),so,{writable:!0,value:void 0}),io($e(c),po,{writable:!0,value:void 0}),io($e(c),uo,{writable:!0,value:void 0}),l($e(c),"type",Ri.COLLECT),io($e(c),fo,{writable:!0,value:void 0}),io($e(c),Eo,{writable:!0,value:!1}),io($e(c),_o,{writable:!0,value:!1}),l($e(c),"create",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{required:!1};bt(e,E($e(c),po).logLevel);var n=eo(e.validations),r=to(e.type,t,E($e(c),po).logLevel),o={rows:[{elements:[ro(ro(ro({elementType:e.type,name:e.column,accept:t.allowedFileType},e),r),{},{validations:n})]}]};return E($e(c),mo).call($e(c),o,!0)})),io($e(c),mo,{writable:!0,value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[],r=cr(e);if(r.rows.forEach((function(e){e.elements.forEach((function(e){var t=e,r=t.elementType;Zr(r,t),t.sensitive=t.sensitive||ke[r].sensitive,t.replacePattern=t.replacePattern||ke[r].replacePattern,t.mask=t.mask||ke[r].mask,t.isMounted=!1,t.elementType!==ke.radio.name&&t.elementType!==ke.checkbox.name||(t.elementName="".concat(t.elementName,":").concat(btoa(t.value))),t.elementName="".concat(U,":").concat(t.elementType,":").concat(btoa(I())),t.label=e.label,t.skyflowID=e.skyflowID,n.push(t)}))})),r.elementName=t?n[0].elementName:"".concat(U,":group:").concat(btoa(r.name)),t&&!E($e(c),lo)[n[0].elementName]&&E($e(c),Oo).call($e(c),n[0].name))throw new Xt(dt.UNIQUE_ELEMENT_NAME,["".concat(n[0].name)],!0);var o=E($e(c),lo)[r.elementName];if(o)t?o.updateElementGroup(n[0]):o.updateElementGroup(r);else{var i=I();o=new Ur(i,r,E($e(c),so),{containerId:E($e(c),co),isMounted:E($e(c),Eo),type:c.type},t,E($e(c),vo),E($e(c),yo),E($e(c),po),E($e(c),fo)),E($e(c),lo)[r.elementName]=o,E($e(c),uo)[i]=o}return t||n.forEach((function(e){var t=e.elementName;E($e(c),lo)[t]?E($e(c),lo)[t].updateElementGroup(e):E($e(c),lo)[t]=c.create(e.elementType,e)})),o}}),io($e(c),Io,{writable:!0,value:function(e){Object.keys(E($e(c),lo)).forEach((function(t){t===e&&delete E($e(c),lo)[t]}))}}),io($e(c),vo,{writable:!0,value:function(e){e.forEach((function(e){E($e(c),Io).call($e(c),e)}))}}),io($e(c),yo,{writable:!0,value:function(e){e.forEach((function(e){E($e(c),lo)[e.elementName]&&E($e(c),lo)[e.elementName].updateElementGroup(e)}))}}),io($e(c),Oo,{writable:!0,value:function(e){for(var t=Object.keys(E($e(c),lo)),n=0;n<t.length;n+=1)if(atob(t[n].split(":")[2])===e)return!0;return!1}}),l($e(c),"collect",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{tokens:!0};f($e(c),_o,E($e(c),so).skyflowContainer.isControllerFrameReady);var t=I();return E($e(c),_o)?new Promise((function(n,r){try{if(ht(E($e(c),so).clientJSON.config),0===Object.keys(E($e(c),lo)).length)throw new Xt(dt.NO_ELEMENTS_IN_COLLECT,[],!0);E($e(c),go).call($e(c));var o=Object.values(E($e(c),lo)),i=Object.keys(E($e(c),lo)).map((function(e,n){return{frameId:e,elementId:e,shadowRoot:null!==o[n].getShadowRoot(),transId:t}}));if(o.forEach((function(e){if(!e.isMounted())throw new Xt(dt.ELEMENTS_NOT_MOUNTED,[],!0);e.isValidElement()})),Object.prototype.hasOwnProperty.call(e,"tokens")&&!wt(e.tokens))throw new Xt(dt.INVALID_TOKENS_IN_COLLECT,[],!0);null!=e&&e.additionalFields&&mt(e.additionalFields),null!=e&&e.upsert&&At(null==e?void 0:e.upsert);var a=o.reduce((function(e,t){return null!==t.getShadowRoot()?e+1:e}),0);if(a>0){var l="req_".concat(Math.random());o.forEach((function(n){null!=n.getShadowRoot()&&n.emitEventFromShadowRoot(ce,ro(ro({shadowRootElementsCount:a,type:ne},e),{},{tokens:void 0===(null==e?void 0:e.tokens)||e.tokens,elementIds:i,containerId:E($e(c),co),requestId:l,transId:t}))})),m().emit(ce,{transId:t,clientId:E($e(c),so).uuid},(function(e){!e||null!=e&&e.error?(Gt("".concat(JSON.stringify(null==e?void 0:e.error)),pt.ERROR,E($e(c),po).logLevel),r(null==e?void 0:e.error)):(Gt(Yt(R.infoLogs.COLLECT_SUBMIT_SUCCESS,ao),pt.LOG,E($e(c),po).logLevel),n(e))}))}else m().emit(le+E($e(c),so).uuid,ro(ro({type:ne},e),{},{tokens:void 0===(null==e?void 0:e.tokens)||e.tokens,elementIds:i,containerId:E($e(c),co)}),(function(e){!e||null!=e&&e.error?(Gt("".concat(JSON.stringify(null==e?void 0:e.error)),pt.ERROR,E($e(c),po).logLevel),r(null==e?void 0:e.error)):(Gt(Yt(R.infoLogs.COLLECT_SUBMIT_SUCCESS,ao),pt.LOG,E($e(c),po).logLevel),n(e))}));Gt(Yt(R.infoLogs.EMIT_EVENT,ao,pe),pt.LOG,E($e(c),po).logLevel)}catch(e){Gt("".concat(e.message),pt.ERROR,E($e(c),po).logLevel),r(e)}})):new Promise((function(n,r){try{if(ht(E($e(c),so).clientJSON.config),0===Object.keys(E($e(c),lo)).length)throw new Xt(dt.NO_ELEMENTS_IN_COLLECT,[],!0);E($e(c),go).call($e(c));var o=Object.values(E($e(c),lo)),i=Object.keys(E($e(c),lo)).map((function(e,n){return{frameId:e,elementId:e,shadowRoot:null!==o[n].getShadowRoot(),transId:t}}));if(o.forEach((function(e){if(!e.isMounted())throw new Xt(dt.ELEMENTS_NOT_MOUNTED,[],!0);e.isValidElement()})),Object.prototype.hasOwnProperty.call(e,"tokens")&&!wt(e.tokens))throw new Xt(dt.INVALID_TOKENS_IN_COLLECT,[],!0);null!=e&&e.additionalFields&&mt(e.additionalFields),null!=e&&e.upsert&&At(null==e?void 0:e.upsert);var a=o.reduce((function(e,t){return null!==t.getShadowRoot()?e+1:e}),0);if(a>0){var l="req_".concat(Math.random());o.forEach((function(n){null!=n.getShadowRoot()&&n.emitEventFromShadowRoot(ce,ro(ro({shadowRootElementsCount:a,type:ne},e),{},{tokens:void 0===(null==e?void 0:e.tokens)||e.tokens,elementIds:i,containerId:E($e(c),co),requestId:l,transId:t}))})),m().target(St.IFRAME_SECURE_ORIGIN).on(be+E($e(c),co),(function(){m().emit(ce,{transId:t,clientId:E($e(c),so).uuid},(function(e){!e||null!=e&&e.error?(Gt("".concat(JSON.stringify(null==e?void 0:e.error)),pt.ERROR,E($e(c),po).logLevel),r(null==e?void 0:e.error)):(Gt(Yt(R.infoLogs.COLLECT_SUBMIT_SUCCESS,ao),pt.LOG,E($e(c),po).logLevel),n(e))}))}))}else m().target(St.IFRAME_SECURE_ORIGIN).on(be+E($e(c),co),(function(){m().emit(le+E($e(c),so).uuid,ro(ro({type:ne},e),{},{tokens:void 0===(null==e?void 0:e.tokens)||e.tokens,elementIds:i,containerId:E($e(c),co)}),(function(e){!e||null!=e&&e.error?(Gt("".concat(JSON.stringify(null==e?void 0:e.error)),pt.ERROR,E($e(c),po).logLevel),r(null==e?void 0:e.error)):(Gt(Yt(R.infoLogs.COLLECT_SUBMIT_SUCCESS,ao),pt.LOG,E($e(c),po).logLevel),n(e))}))}))}catch(e){Gt("".concat(e.message),pt.ERROR,E($e(c),po).logLevel),r(e)}}))})),l($e(c),"uploadFiles",(function(e){f($e(c),_o,E($e(c),so).skyflowContainer.isControllerFrameReady);var t=I();return E($e(c),_o)?new Promise((function(n,r){try{if(ht(E($e(c),so).clientJSON.config),0===Object.keys(E($e(c),lo)).length)throw new Xt(dt.NO_ELEMENTS_IN_COLLECT,[],!0);E($e(c),go).call($e(c));var o=Object.values(E($e(c),lo)),i=Object.keys(E($e(c),lo)).map((function(e,n){return{frameId:e,elementId:e,elementType:o[n].elementType,shadowRoot:null!==o[n].getShadowRoot(),transId:t}}));o.forEach((function(e){if(!e.isMounted())throw new Xt(dt.ELEMENTS_NOT_MOUNTED,[],!0);e.isValidElement()}));var a=o.reduce((function(e,t){return null!==t.getShadowRoot()&&t.elementType===ke.FILE_INPUT.name?e+1:e}),0);if(a>0){var l="req_".concat(Math.random());o.forEach((function(n){null!=n.getShadowRoot()&&n.elementType===ke.FILE_INPUT.name&&n.emitEventFromShadowRoot(ce,ro(ro({shadowRootElementsCount:a,type:re},e),{},{tokens:void 0===(null==e?void 0:e.tokens)||e.tokens,elementIds:i,containerId:E($e(c),co),requestId:l,transId:t}))})),m().emit(ce,ro(ro({transId:t,clientId:E($e(c),so).uuid,type:re},e),{},{elementIds:i,containerId:E($e(c),co)}),(function(e){!e||null!=e&&e.error?(Gt("".concat(JSON.stringify(null==e?void 0:e.error)),pt.ERROR,E($e(c),po).logLevel),r(null==e?void 0:e.error)):!e||e.errorResponse?(Gt("".concat(JSON.stringify(e)),pt.ERROR,E($e(c),po).logLevel),r(e)):(Gt(Yt(R.infoLogs.COLLECT_SUBMIT_SUCCESS,ao),pt.LOG,E($e(c),po).logLevel),n(e))}))}else m().emit(le+E($e(c),so).uuid,ro(ro({type:re},e),{},{elementIds:i,containerId:E($e(c),co)}),(function(e){!e||null!=e&&e.error?(Gt("".concat(JSON.stringify(null==e?void 0:e.error)),pt.ERROR,E($e(c),po).logLevel),r(null==e?void 0:e.error)):(Gt(Yt(R.infoLogs.COLLECT_SUBMIT_SUCCESS,ao),pt.LOG,E($e(c),po).logLevel),n(e))}));Gt(Yt(R.infoLogs.EMIT_EVENT,ao,ge),pt.LOG,E($e(c),po).logLevel)}catch(e){Gt("".concat(e.message),pt.ERROR,E($e(c),po).logLevel),r(e)}})):new Promise((function(n,r){try{if(ht(E($e(c),so).clientJSON.config),0===Object.keys(E($e(c),lo)).length)throw new Xt(dt.NO_ELEMENTS_IN_COLLECT,[],!0);E($e(c),go).call($e(c));var o=Object.values(E($e(c),lo)),i=Object.keys(E($e(c),lo)).map((function(e,n){return{frameId:e,elementId:e,elementType:o[n].elementType,shadowRoot:null!==o[n].getShadowRoot(),transId:t}}));o.forEach((function(e){if(!e.isMounted())throw new Xt(dt.ELEMENTS_NOT_MOUNTED,[],!0);e.isValidElement()}));var a=o.reduce((function(e,t){return null!==t.getShadowRoot()&&t.elementType===ke.FILE_INPUT.name?e+1:e}),0);if(a>0){var l="req_".concat(Math.random());o.forEach((function(n){null!=n.getShadowRoot()&&n.elementType===ke.FILE_INPUT.name&&n.emitEventFromShadowRoot(ce,ro(ro({shadowRootElementsCount:a,type:re},e),{},{tokens:void 0===(null==e?void 0:e.tokens)||e.tokens,elementIds:i,containerId:E($e(c),co),requestId:l,transId:t}))})),m().target(St.IFRAME_SECURE_ORIGIN).on(be+E($e(c),co),(function(){m().emit(ce,ro(ro({transId:t,clientId:E($e(c),so).uuid,type:re},e),{},{elementIds:i,containerId:E($e(c),co)}),(function(e){!e||null!=e&&e.error?(Gt("".concat(JSON.stringify(null==e?void 0:e.error)),pt.ERROR,E($e(c),po).logLevel),r(null==e?void 0:e.error)):e.errorResponse?(Gt("".concat(JSON.stringify(e)),pt.ERROR,E($e(c),po).logLevel),r(e)):(Gt(Yt(R.infoLogs.COLLECT_SUBMIT_SUCCESS,ao),pt.LOG,E($e(c),po).logLevel),n(e))}))}))}else m().target(St.IFRAME_SECURE_ORIGIN).on(be+E($e(c),co),(function(){try{m().emit(le+E($e(c),so).uuid,ro(ro({type:re},e),{},{elementIds:i,containerId:E($e(c),co)}),(function(e){!e||null!=e&&e.error?(Gt("".concat(JSON.stringify(null==e?void 0:e.error)),pt.ERROR,E($e(c),po).logLevel),r(null==e?void 0:e.error)):(Gt(Yt(R.infoLogs.COLLECT_SUBMIT_SUCCESS,ao),pt.LOG,E($e(c),po).logLevel),n(e))})),Gt(Yt(R.infoLogs.EMIT_EVENT,ao,ge),pt.LOG,E($e(c),po).logLevel)}catch(e){Gt("".concat(e.message),pt.ERROR,E($e(c),po).logLevel),r(e)}}))}catch(e){Gt("".concat(e.message),pt.ERROR,E($e(c),po).logLevel),r(e)}}))})),io($e(c),go,{writable:!0,value:function(){try{if(E($e(c),No).call($e(c)))return;var e=E($e(c),Lo).call($e(c));if(!e.length)return;E($e(c),To).call($e(c),e)}catch(e){Gt("".concat(e),pt.LOG,E($e(c),po).logLevel)}}}),io($e(c),No,{writable:!0,value:function(){return 0===Object.keys(E($e(c),lo)).length}}),io($e(c),Lo,{writable:!0,value:function(){var e,t=null===(e=document)||void 0===e?void 0:e.body;if(!t)return[];var n=t.getElementsByTagName("iframe");return null!=n&&n.length?Array.from(n).map((function(e){return e.id})):[]}}),io($e(c),To,{writable:!0,value:function(e){Object.entries(E($e(c),lo)).forEach((function(t){var n=ft(t,2),r=n[0],o=n[1];E($e(c),ho).call($e(c),o,e)&&delete E($e(c),lo)[r]}))}}),io($e(c),ho,{writable:!0,value:function(e,t){return e.isMounted()&&!t.includes(e.iframeName())&&!(null===e.getShadowRoot())&&!c.checkIfFrameExistsInShadowRoot(e.getShadowRoot(),e.iframeName())}}),l($e(c),"checkIfFrameExistsInShadowRoot",(function(e,t){if(!e)return!1;var n=e.querySelectorAll("iframe");return Array.from(n).some((function(e){return e.name===t}))})),f($e(c),_o,r.skyflowContainer.isControllerFrameReady),f($e(c),co,I()),f($e(c),so,ro(ro({},r),{},{clientJSON:ro(ro({},r.clientJSON),{},{config:ro(ro({},r.clientJSON.config),{},{options:ro(ro({},null===(a=r.clientJSON.config)||void 0===a?void 0:a.options),e)})})})),f($e(c),uo,o),f($e(c),po,i),f($e(c),fo,new Jt);var p=E($e(c),so).clientDomain||"",u=tn({name:"".concat(j,":").concat(E($e(c),co),":").concat(E($e(c),po).logLevel,":").concat(btoa(p)),referrer:p});return en(u,{src:nn()}),rn(u,ro({},Ue)),Gt(Yt(R.infoLogs.CREATE_COLLECT_CONTAINER,ao),pt.LOG,E($e(c),po).logLevel),f($e(c),Eo,!0),c}return u(n)}(on);const Ao=bo;function wo(e){this.message=e}wo.prototype=new Error,wo.prototype.name="InvalidCharacterError";var Ro="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new wo("'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 So(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(Ro(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 Ro(t)}}function Do(e){this.message=e}Do.prototype=new Error,Do.prototype.name="InvalidTokenError";const xo=function(e,t){if("string"!=typeof e)throw new Do("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(So(e.split(".")[n]))}catch(e){throw new Do("Invalid token specified: "+e.message)}};const Mo=function(e){try{if(!e)return!1;if(i=e,"[object String]"!==Object.prototype.toString.call(i))return!1;var t=!1,n=xo(e),r=(new Date).getTime()/1e3,o=n.exp;return o&&r>o&&(t=!0),!t}catch(e){return!1}var i};function Co(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 Po(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Co(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Co(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ko(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 Vo="SkyflowContainer",jo=new WeakMap,Uo=new WeakMap,Fo=new WeakMap,Go=function(){function e(t,n){var r,o,i=this;s(this,e),ko(this,jo,{writable:!0,value:void 0}),ko(this,Uo,{writable:!0,value:void 0}),l(this,"isControllerFrameReady",!1),ko(this,Fo,{writable:!0,value:void 0}),f(this,Uo,t),f(this,jo,(null===(r=E(this,Uo).toJSON())||void 0===r||null===(r=r.metaData)||void 0===r?void 0:r.uuid)||""),f(this,Fo,n);var a=window.location.origin||"",c=tn({name:"".concat("skyflow_controller",":").concat(E(this,jo),":").concat(btoa(a),":").concat(!(null===(o=E(this,Uo).toJSON())||void 0===o||null===(o=o.config)||void 0===o||null===(o=o.options)||void 0===o||!o.trackingKey)),referrer:a});en(c,{src:nn()}),rn(c,Po({},Ue)),document.body.append(c),m().target(St.IFRAME_SECURE_ORIGIN).on(_e+E(this,jo),(function(e,t){Gt(Yt(R.infoLogs.CAPTURE_PUREJS_FRAME,Vo),pt.LOG,E(i,Fo).logLevel),t({client:E(i,Uo),context:n}),i.isControllerFrameReady=!0})),Gt(Yt(R.infoLogs.PUREJS_CONTROLLER_INITIALIZED,Vo),pt.LOG,E(this,Fo).logLevel)}return u(e,[{key:"detokenize",value:function(e){var t=this;return this.isControllerFrameReady?new Promise((function(n,r){try{ht(E(t,Uo).config),Gt(Yt(R.infoLogs.VALIDATE_DETOKENIZE_INPUT,Vo),pt.LOG,E(t,Fo).logLevel),It(e),m().emit(Ee+E(t,jo),{type:$,records:e.records},(function(e){e.error?r(e.error):n(e)})),Gt(Yt(R.infoLogs.EMIT_PURE_JS_REQUEST,Vo,$),pt.LOG,E(t,Fo).logLevel)}catch(e){Gt(e.message,pt.ERROR,E(t,Fo).logLevel),r(e)}})):new Promise((function(n,r){try{ht(E(t,Uo).config),Gt(Yt(R.infoLogs.VALIDATE_DETOKENIZE_INPUT,Vo),pt.LOG,E(t,Fo).logLevel),It(e),m().target(St.IFRAME_SECURE_ORIGIN).on(_e+E(t,jo),(function(){m().emit(Ee+E(t,jo),{type:$,records:e.records},(function(e){e.error?r(e.error):n(e)}))})),Gt(Yt(R.infoLogs.EMIT_PURE_JS_REQUEST,Vo,$),pt.LOG,E(t,Fo).logLevel)}catch(e){Gt(e.message,pt.ERROR,E(t,Fo).logLevel),r(e)}}))}},{key:"insert",value:function(e,t){var n=this;return this.isControllerFrameReady?new Promise((function(r,o){ht(E(n,Uo).config);try{var i,a;if(Gt(Yt(R.infoLogs.VALIDATE_RECORDS,Vo),pt.LOG,E(n,Fo).logLevel),t)t=Po(Po({},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&&At(t.upsert),_t(e,t),m().emit(Ee+E(n,jo),{type:Z,records:e,options:t},(function(e){e.error?(Gt("".concat(JSON.stringify(e.error)),pt.ERROR,E(n,Fo).logLevel),o(e.error)):r(e)})),Gt(Yt(R.infoLogs.EMIT_PURE_JS_REQUEST,Vo,Z),pt.LOG,E(n,Fo).logLevel)}catch(e){Gt(e.message,pt.ERROR,E(n,Fo).logLevel),o(e)}})):new Promise((function(r,o){try{var i,a;if(ht(E(n,Uo).config),Gt(Yt(R.infoLogs.VALIDATE_RECORDS,Vo),pt.LOG,E(n,Fo).logLevel),t)t=Po(Po({},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&&At(t.upsert),_t(e,t),m().target(St.IFRAME_SECURE_ORIGIN).on(_e+E(n,jo),(function(){m().emit(Ee+E(n,jo),{type:Z,records:e,options:t},(function(e){e.error?(Gt("".concat(JSON.stringify(e.error)),pt.ERROR,E(n,Fo).logLevel),o(e.error)):r(e)}))})),Gt(Yt(R.infoLogs.EMIT_PURE_JS_REQUEST,Vo,Z),pt.LOG,E(n,Fo).logLevel)}catch(e){Gt(e.message,pt.ERROR,E(n,Fo).logLevel),o(e)}}))}},{key:"getById",value:function(e){var t=this;return this.isControllerFrameReady?new Promise((function(n,r){ht(E(t,Uo).config);try{Gt(Yt(R.infoLogs.VALIDATE_GET_BY_ID_INPUT,Vo),pt.LOG,E(t,Fo).logLevel),yt(e),m().emit(Ee+E(t,jo),{type:Q,records:e.records},(function(e){e.error?r(e.error):n(e)})),Gt(Yt(R.infoLogs.EMIT_PURE_JS_REQUEST,Vo,Q),pt.LOG,E(t,Fo).logLevel)}catch(e){Gt(e.message,pt.ERROR,E(t,Fo).logLevel),r(e)}})):new Promise((function(n,r){try{ht(E(t,Uo).config),Gt(Yt(R.infoLogs.VALIDATE_GET_BY_ID_INPUT,Vo),pt.LOG,E(t,Fo).logLevel),yt(e),m().target(St.IFRAME_SECURE_ORIGIN).on(_e+E(t,jo),(function(){m().emit(Ee+E(t,jo),{type:Q,records:e.records},(function(e){e.error?r(e.error):n(e)}))})),Gt(Yt(R.infoLogs.EMIT_PURE_JS_REQUEST,Vo,Q),pt.LOG,E(t,Fo).logLevel)}catch(e){Gt(e.message,pt.ERROR,E(t,Fo).logLevel),r(e)}}))}},{key:"get",value:function(e,t){var n=this;return this.isControllerFrameReady?new Promise((function(r,o){ht(E(n,Uo).config);try{Gt(Yt(R.infoLogs.VALIDATE_GET_INPUT,Vo),pt.LOG,E(n,Fo).logLevel),vt(e,t),m().emit(Ee+E(n,jo),{type:ee,records:e.records,options:t},(function(e){e.error?o(e.error):r(e)})),Gt(Yt(R.infoLogs.EMIT_PURE_JS_REQUEST,Vo,ee),pt.LOG,E(n,Fo).logLevel)}catch(e){Gt(e.message,pt.ERROR,E(n,Fo).logLevel),o(e)}})):new Promise((function(r,o){try{ht(E(n,Uo).config),Gt(Yt(R.infoLogs.VALIDATE_GET_INPUT,Vo),pt.LOG,E(n,Fo).logLevel),vt(e,t),m().target(St.IFRAME_SECURE_ORIGIN).on(_e+E(n,jo),(function(){m().emit(Ee+E(n,jo),{type:ee,records:e.records,options:t},(function(e){e.error?o(e.error):r(e)}))})),Gt(Yt(R.infoLogs.EMIT_PURE_JS_REQUEST,Vo,ee),pt.LOG,E(n,Fo).logLevel)}catch(e){Gt(e.message,pt.ERROR,E(n,Fo).logLevel),o(e)}}))}},{key:"delete",value:function(e,t){var n=this;return this.isControllerFrameReady?new Promise((function(r,o){ht(E(n,Uo).config);try{Gt(Yt(R.infoLogs.VALIDATE_DELETE_INPUT,Vo),pt.LOG,E(n,Fo).logLevel),Ot(e),m().emit(Ee+E(n,jo),{type:te,records:e,options:t},(function(e){e.error?(Gt("".concat(JSON.stringify(e.error)),pt.ERROR,E(n,Fo).logLevel),o(e.error)):r(e)})),Gt(Yt(R.infoLogs.EMIT_PURE_JS_REQUEST,Vo,te),pt.LOG,E(n,Fo).logLevel)}catch(e){Gt(e.message,pt.ERROR,E(n,Fo).logLevel),o(e)}})):new Promise((function(r,o){try{ht(E(n,Uo).config),Gt(Yt(R.infoLogs.VALIDATE_RECORDS,Vo),pt.LOG,E(n,Fo).logLevel),Ot(e),m().target(St.IFRAME_SECURE_ORIGIN).on(_e+E(n,jo),(function(){m().emit(Ee+E(n,jo),{type:te,records:e,options:t},(function(e){e.error?(Gt("".concat(JSON.stringify(e.error)),pt.ERROR,E(n,Fo).logLevel),o(e.error)):r(e)}))})),Gt(Yt(R.infoLogs.EMIT_PURE_JS_REQUEST,Vo,te),pt.LOG,E(n,Fo).logLevel)}catch(e){Gt(e.message,pt.ERROR,E(n,Fo).logLevel),o(e)}}))}}]),e}();const Yo=Go;var Bo=n(6119),Xo=n.n(Bo);function Wo(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 Ko(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wo(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qo(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=nt(e);if(t){var o=nt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return tt(this,n)}}function zo(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 Ho="CollectContainer",Jo=new WeakMap,Zo=new WeakMap,$o=new WeakMap,Qo=new WeakMap,ei=new WeakMap,ti=new WeakMap,ni=new WeakMap,ri=new WeakMap,oi=new WeakMap,ii=new WeakMap,ai=new WeakMap,ci=new WeakMap,li=new WeakMap,si=new WeakMap,pi=new WeakMap,ui=new WeakMap,di=new WeakMap,fi=new WeakMap,Ei=new WeakMap,_i=new WeakMap,mi=new WeakMap;const Ii=function(e){et(n,e);var t=qo(n);function n(e,r,o,i){var a,c;s(this,n),zo($e(c=t.call(this)),Jo,{writable:!0,value:void 0}),zo($e(c),Zo,{writable:!0,value:{}}),zo($e(c),$o,{writable:!0,value:void 0}),zo($e(c),Qo,{writable:!0,value:{rows:[]}}),zo($e(c),ei,{writable:!0,value:[]}),zo($e(c),ti,{writable:!0,value:void 0}),zo($e(c),ni,{writable:!0,value:void 0}),zo($e(c),ri,{writable:!0,value:void 0}),zo($e(c),oi,{writable:!0,value:!1}),zo($e(c),ii,{writable:!0,value:void 0}),zo($e(c),ai,{writable:!0,value:void 0}),l($e(c),"type",Ri.COMPOSABLE),zo($e(c),ci,{writable:!0,value:!1}),zo($e(c),li,{writable:!0,value:{}}),zo($e(c),si,{writable:!0,value:""}),zo($e(c),pi,{writable:!0,value:!1}),l($e(c),"create",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{required:!1};bt(e,E($e(c),ti).logLevel);var n=eo(e.validations),r=to(e.type,t,E($e(c),ti).logLevel),o="".concat(U,":").concat(e.type,":").concat(btoa(I()));E($e(c),ei).push(Ko(Ko(Ko({elementType:e.type,name:e.column},e),r),{},{validations:n,elementName:o}));var i="".concat(U,":group:").concat(btoa(E($e(c),li)),":").concat(E($e(c),Jo),":").concat(E($e(c),ti).logLevel,":").concat(btoa(E($e(c),si)));return new Kr(o,E($e(c),ri),i)})),zo($e(c),ui,{writable:!0,value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[];if(f($e(c),li,cr(e)),E($e(c),li).rows.forEach((function(e){e.elements.forEach((function(e){var t=e,r=t.elementType;Zr(r,t),t.sensitive=t.sensitive||ke[r].sensitive,t.replacePattern=t.replacePattern||ke[r].replacePattern,t.mask=t.mask||ke[r].mask,t.isMounted=!1,t.label=e.label,t.skyflowID=e.skyflowID,n.push(t)}))})),E($e(c),li).elementName=t?n[0].elementName:"".concat(U,":group:").concat(btoa(E($e(c),li))),t&&!E($e(c),Zo)[n[0].elementName]&&E($e(c),_i).call($e(c),n[0].name))throw new Xt(dt.UNIQUE_ELEMENT_NAME,["".concat(n[0].name)],!0);var r=E($e(c),Zo)[E($e(c),li).elementName];if(r)t?r.update(n[0]):r.update(E($e(c),li));else{var o=I();r=new Ur(o,E($e(c),li),E($e(c),$o),{containerId:E($e(c),Jo),isMounted:E($e(c),ci),type:c.type},!0,E($e(c),fi),E($e(c),Ei),E($e(c),ti),E($e(c),ri)),E($e(c),Zo)[E($e(c),li).elementName]=r,E($e(c),ni)[o]=r}return r}}),zo($e(c),di,{writable:!0,value:function(e){Object.keys(E($e(c),Zo)).forEach((function(t){t===e&&delete E($e(c),Zo)[t]}))}}),zo($e(c),fi,{writable:!0,value:function(e){e.forEach((function(e){E($e(c),di).call($e(c),e)}))}}),zo($e(c),Ei,{writable:!0,value:function(e){e.forEach((function(e){E($e(c),Zo)[e.elementName]&&E($e(c),Zo)[e.elementName].update(e)}))}}),zo($e(c),_i,{writable:!0,value:function(e){for(var t=Object.keys(E($e(c),Zo)),n=0;n<t.length;n+=1)if(atob(t[n].split(":")[2])===e)return!0;return!1}}),l($e(c),"on",(function(e,t){if(!Object.values(ae).includes(e))throw new Xt(dt.INVALID_EVENT_LISTENER,[],!0);if(!t)throw new Xt(dt.MISSING_HANDLER_IN_EVENT_LISTENER,[],!0);if("function"!=typeof t)throw new Xt(dt.INVALID_HANDLER_IN_EVENT_LISTENER,[],!0);E($e(c),ri).on(ae.SUBMIT,(function(){t()}))})),l($e(c),"mount",(function(e){if(!e)throw new Xt(dt.EMPTY_ELEMENT_IN_MOUNT,["CollectElement"],!0);var t=E($e(c),ii).layout;if(Xo()(t)!==E($e(c),ei).length)throw new Xt(dt.MISMATCH_ELEMENT_COUNT_LAYOUT_SUM,[],!0);var n=0;t.forEach((function(e,t){E($e(c),Qo).rows=[].concat(Ze(E($e(c),Qo).rows),[{elements:[]}]);for(var r=0;r<e;r++)E($e(c),Qo).rows[t].elements.push(E($e(c),ei)[n]),n++})),E($e(c),ii).styles&&(E($e(c),Qo).styles=Ko({},E($e(c),ii).styles)),E($e(c),ii).errorTextStyles&&(E($e(c),Qo).errorTextStyles=Ko({},E($e(c),ii).errorTextStyles)),E($e(c),ci)&&(f($e(c),ai,E($e(c),ui).call($e(c),E($e(c),Qo),!1)),E($e(c),ai).mount(e),f($e(c),oi,!0))})),l($e(c),"unmount",(function(){E($e(c),ai).unmount()})),l($e(c),"collect",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{tokens:!0};return f($e(c),pi,E($e(c),$o).skyflowContainer.isControllerFrameReady),E($e(c),pi)?new Promise((function(t,n){try{if(ht(E($e(c),$o).clientJSON.config),!E($e(c),ei)||0===E($e(c),ei).length)throw new Xt(dt.NO_ELEMENTS_IN_COMPOSABLE,[],!0);if(!E($e(c),oi))throw new Xt(dt.COMPOSABLE_CONTAINER_NOT_MOUNTED,[],!0);Qr(E($e(c),li)).forEach((function(e){if(null==e||!e.isMounted)throw new Xt(dt.ELEMENTS_NOT_MOUNTED,[],!0)}));var r=[];if(Object.values(E($e(c),Zo)).forEach((function(e){e.isValidElement()})),e&&e.tokens&&"boolean"!=typeof e.tokens)throw new Xt(dt.INVALID_TOKENS_IN_COLLECT,[],!0);null!=e&&e.additionalFields&&mt(e.additionalFields),null!=e&&e.upsert&&At(null==e?void 0:e.upsert),E($e(c),ei).forEach((function(e){r.push({frameId:E($e(c),li).elementName,elementId:e.elementName})})),m().emit(le+E($e(c),$o).uuid,Ko(Ko({type:ne},e),{},{tokens:void 0===(null==e?void 0:e.tokens)||e.tokens,elementIds:r,containerId:E($e(c),Jo)}),(function(e){!e||null!=e&&e.error?(Gt("".concat(JSON.stringify(null==e?void 0:e.error)),pt.ERROR,E($e(c),ti).logLevel),n(null==e?void 0:e.error)):(Gt(Yt(R.infoLogs.COLLECT_SUBMIT_SUCCESS,Ho),pt.LOG,E($e(c),ti).logLevel),t(e))})),Gt(Yt(R.infoLogs.EMIT_EVENT,Ho,pe),pt.LOG,E($e(c),ti).logLevel)}catch(e){Gt("".concat(e.message),pt.ERROR,E($e(c),ti).logLevel),n(e)}})):new Promise((function(t,n){try{if(ht(E($e(c),$o).clientJSON.config),!E($e(c),ei)||0===E($e(c),ei).length)throw new Xt(dt.NO_ELEMENTS_IN_COMPOSABLE,[],!0);if(!E($e(c),oi))throw new Xt(dt.COMPOSABLE_CONTAINER_NOT_MOUNTED,[],!0);Qr(E($e(c),li)).forEach((function(e){if(null==e||!e.isMounted)throw new Xt(dt.ELEMENTS_NOT_MOUNTED,[],!0)}));var r=[];if(Object.values(E($e(c),Zo)).forEach((function(e){e.isValidElement()})),e&&e.tokens&&"boolean"!=typeof e.tokens)throw new Xt(dt.INVALID_TOKENS_IN_COLLECT,[],!0);null!=e&&e.additionalFields&&mt(e.additionalFields),null!=e&&e.upsert&&At(null==e?void 0:e.upsert),E($e(c),ei).forEach((function(e){r.push({frameId:E($e(c),li).elementName,elementId:e.elementName})})),m().target(St.IFRAME_SECURE_ORIGIN).on(be+E($e(c),Jo),(function(){m().emit(le+E($e(c),$o).uuid,Ko(Ko({type:ne},e),{},{tokens:void 0===(null==e?void 0:e.tokens)||e.tokens,elementIds:r,containerId:E($e(c),Jo)}),(function(e){!e||null!=e&&e.error?(Gt("".concat(JSON.stringify(null==e?void 0:e.error)),pt.ERROR,E($e(c),ti).logLevel),n(null==e?void 0:e.error)):(Gt(Yt(R.infoLogs.COLLECT_SUBMIT_SUCCESS,Ho),pt.LOG,E($e(c),ti).logLevel),t(e))}))})),Gt(Yt(R.infoLogs.EMIT_EVENT,Ho,pe),pt.LOG,E($e(c),ti).logLevel)}catch(e){Gt("".concat(e.message),pt.ERROR,E($e(c),ti).logLevel),n(e)}}))})),zo($e(c),mi,{writable:!0,value:function(){E($e(c),ri).on(Ne,(function(e){var t,n=E($e(c),ei).map((function(n,r){return n.elementName===e.elementName?(t=r,Ko({elementName:n.elementName},e.elementOptions)):n}));E($e(c),ai)&&E($e(c),ai).updateElement(Ko({},n[t]))}))}}),f($e(c),Jo,I()),f($e(c),$o,Ko(Ko({},r),{},{clientJSON:Ko(Ko({},r.clientJSON),{},{config:Ko(Ko({},r.clientJSON.config),{},{options:Ko(Ko({},null===(a=r.clientJSON.config)||void 0===a?void 0:a.options),e)})})})),f($e(c),pi,r.skyflowContainer.isControllerFrameReady),f($e(c),ni,o),f($e(c),ti,i),f($e(c),ii,e),f($e(c),ri,new Jt),f($e(c),si,E($e(c),$o).clientDomain||"");var p=tn({name:"".concat(j,":").concat(E($e(c),Jo),":").concat(E($e(c),ti).logLevel,":").concat(btoa(E($e(c),si))),referrer:E($e(c),si)});return en(p,{src:nn()}),rn(p,Ko({},Ue)),Gt(Yt(R.infoLogs.CREATE_COLLECT_CONTAINER,Ho),pt.LOG,E($e(c),ti).logLevel),f($e(c),ci,!0),E($e(c),mi).call($e(c)),c}return u(n)}(on);var vi;function yi(e,t,n){return function(e,t){if(e!==t)throw new TypeError("Private static access of wrong provenance")}(e,t),function(e,t){if(void 0===e)throw new TypeError("attempted to "+t+" private static field before its declaration")}(n,"get"),function(e,t){if(t.get)return t.get.call(e);return t.value}(e,n)}var Oi=function(){function e(){s(this,e)}return u(e,null,[{key:"getBrowserDetails",value:function(){return{browser_accept_header:"application/json",browser_color_depth:String(window.screen.colorDepth),browser_screen_height:window.screen.height,browser_screen_width:window.screen.width,browser_user_agent:window.navigator.userAgent,browser_java_enabled:window.navigator.javaEnabled(),browser_language:window.navigator.language,browser_tz:(new Date).getTimezoneOffset(),browser_javascript_enabled:!0,accept_language:Ze(navigator.languages)}}}]),e}();vi=Oi,l(Oi,"showChallenge",(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"05",r=arguments.length>3?arguments[3]:void 0;if(!e)throw new Xt(dt.INVALID_FIELD_SHOW_3DS_CHALLEGNGE,["acsUrl"],!0);if(!t)throw new Xt(dt.INVALID_FIELD_SHOW_3DS_CHALLEGNGE,["cReq"],!0);if(r&&!(r instanceof HTMLElement))throw new Xt(dt.INVALID_FIELD_SHOW_3DS_CHALLEGNGE,["container"],!0);var o=yi(vi,vi,gi).call(vi,n),i=yi(vi,vi,Ni).call(vi,r||document.body,"threeDSCReqIFrame","threeDSCReqIframe",o[0],o[1]);return i.sandbox.add("allow-pointer-lock"),yi(vi,vi,Li).call(vi,e,t,i),i}));var gi={writable:!0,value:function(){switch(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"05"){case"01":return["250px","400px"];case"02":return["390px","400px"];case"03":return["500px","600px"];case"04":return["600px","400px"];case"05":return["100%","100%"];default:throw new Xt(dt.INVALID_FIELD_SHOW_3DS_CHALLEGNGE,["challengeWindowSize"],!0)}}},Ni={writable:!0,value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"0",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"0",i=document.createElement("iframe");return i.width=r,i.height=o,i.name=t,i.setAttribute("id",n),i.setAttribute("frameborder","0"),i.setAttribute("border","0"),i.setAttribute("style","overflow:hidden; position:absolute"),i.setAttribute("allowfullscreen","false"),i.setAttribute("allowpaymentrequest","false"),i.setAttribute("allow","payment; publickey-credentials-get"),i.sandbox.add("allow-forms","allow-scripts","allow-same-origin"),e.appendChild(i),i}},Li={writable:!0,value:function(e,t,n){var r=document.createElement("html"),o=document.createElement("body"),i=yi(vi,vi,Ti).call(vi,"challengeRequestForm",e,n.name,"creq",encodeURIComponent(t));return o.appendChild(i),r.appendChild(o),n.appendChild(r),i.submit(),n}},Ti={writable:!0,value:function(e,t,n,r,o){var i=document.createElement("form");i.name=e,i.action=t,i.method="POST",i.target=n,i.enctype="application/x-www-form-urlencoded";var a=document.createElement("input");return a.name=r,a.value=o,i.appendChild(a),i.style.display="none",i}};const hi=Oi;function bi(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 Ai(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bi(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wi(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 Ri=function(e){return e.COLLECT="COLLECT",e.REVEAL="REVEAL",e.COMPOSABLE="COMPOSABLE",e}({}),Si="Skyflow",Di=new WeakMap,xi=new WeakMap,Mi=new WeakMap,Ci=new WeakMap,Pi=new WeakMap,ki=new WeakMap,Vi=new WeakMap,ji=new WeakMap,Ui=new WeakMap,Fi=function(){function e(t){var n,r,o=this;s(this,e),wi(this,Di,{writable:!0,value:void 0}),wi(this,xi,{writable:!0,value:I()}),wi(this,Mi,{writable:!0,value:{uuid:E(this,xi),clientDomain:window.location.origin}}),wi(this,Ci,{writable:!0,value:void 0}),wi(this,Pi,{writable:!0,value:""}),wi(this,ki,{writable:!0,value:void 0}),wi(this,Vi,{writable:!0,value:void 0}),wi(this,ji,{writable:!0,value:void 0}),wi(this,Ui,{writable:!0,value:void 0});var i=localStorage.getItem("sdk_version")||"";E(this,Mi).sdkVersion=i,E(this,Mi).session_id=I(),f(this,Di,new Ht(Ai({},t),E(this,Mi))),f(this,Vi,(null==t||null===(n=t.options)||void 0===n?void 0:n.logLevel)||lt.ERROR),f(this,ji,(null==t||null===(r=t.options)||void 0===r?void 0:r.env)||st.PROD),f(this,Ui,{}),f(this,Ci,new Yo(E(this,Di),{logLevel:E(this,Vi),env:E(this,ji)}));m().target(St.IFRAME_SECURE_ORIGIN).on(me+E(this,xi),(function(e,t){Gt(Yt(R.infoLogs.CAPTURED_BEARER_TOKEN_EVENT,Si),pt.LOG,E(o,Vi)),!E(o,Di).config.getBearerToken||E(o,Pi)&&Mo(E(o,Pi))?(Gt(Yt(R.infoLogs.REUSE_BEARER_TOKEN,Si),pt.LOG,E(o,Vi)),t({authToken:E(o,Pi)})):E(o,Di).config.getBearerToken().then((function(e){Mo(e)?(Gt(Yt(R.infoLogs.BEARER_TOKEN_RESOLVED,Si),pt.LOG,E(o,Vi)),f(o,Pi,e),t({authToken:E(o,Pi)})):(Gt(Yt(R.errorLogs.INVALID_BEARER_TOKEN),pt.ERROR,E(o,Vi)),t({error:Yt(R.errorLogs.INVALID_BEARER_TOKEN)}))})).catch((function(e){Gt(Yt(R.errorLogs.BEARER_TOKEN_REJECTED),pt.ERROR,E(o,Vi)),t({error:e})}))})),Gt(Yt(R.infoLogs.BEARER_TOKEN_LISTENER,Si),pt.LOG,E(this,Vi)),Gt(Yt(R.infoLogs.CURRENT_ENV,Si,E(this,ji)),pt.LOG,E(this,Vi)),Gt(Yt(R.infoLogs.CURRENT_LOG_LEVEL,Si,E(this,Vi)),pt.LOG,E(this,Vi))}return u(e,[{key:"container",value:function(e,t){switch(e){case Ri.COLLECT:var n=new Ao(t,Ai(Ai({},E(this,Mi)),{},{clientJSON:E(this,Di).toJSON(),containerType:e,skyflowContainer:E(this,Ci)}),E(this,Ui),{logLevel:E(this,Vi),env:E(this,ji)});return Gt(Yt(R.infoLogs.COLLECT_CONTAINER_CREATED,Si),pt.LOG,E(this,Vi)),n;case Ri.REVEAL:var r=new ar(Ai(Ai({},E(this,Mi)),{},{clientJSON:E(this,Di).toJSON(),containerType:e,skyflowContainer:E(this,Ci)}),E(this,Ui),{logLevel:E(this,Vi)},t);return Gt(Yt(R.infoLogs.REVEAL_CONTAINER_CREATED,Si),pt.LOG,E(this,Vi)),r;case Ri.COMPOSABLE:!function(e){if(!e)throw new Xt(dt.MISSING_COMPOSABLE_CONTAINER_OPTIONS,[],!0);if("object"!==a(e))throw new Xt(dt.INVALID_COMPOSABLE_CONTAINER_OPTIONS,[],!0);if(!Object.prototype.hasOwnProperty.call(e,"layout"))throw new Xt(dt.MISSING_COMPOSABLE_LAYOUT_KEY,[],!0);if(!e.layout)throw new Xt(dt.INVALID_COMPOSABLE_LAYOUT_TYPE,[],!0);if(!Array.isArray(e.layout))throw new Xt(dt.INVALID_COMPOSABLE_LAYOUT_TYPE,[],!0);if(0===e.layout.length)throw new Xt(dt.EMPTY_COMPOSABLE_LAYOUT_ARRAY,[],!0);e.layout.forEach((function(e){if("number"!=typeof e)throw new Xt(dt.INVALID_COMPOSABLE_LAYOUT_TYPE,[],!0);if(e<0)throw new Xt(dt.NEGATIVE_VALUES_COMPOSABLE_LAYOUT,[],!0)}))}(t);var o=new Ii(t,Ai(Ai({},E(this,Mi)),{},{clientJSON:E(this,Di).toJSON(),containerType:e,skyflowContainer:E(this,Ci)}),E(this,Ui),{logLevel:E(this,Vi),env:E(this,ji)});return Gt(Yt(R.infoLogs.COLLECT_CONTAINER_CREATED,Si),pt.LOG,E(this,Vi)),o;default:if(!e)throw new Xt(dt.EMPTY_CONTAINER_TYPE,[],!0);throw new Xt(dt.INVALID_CONTAINER_TYPE,[e],!0)}}},{key:"insert",value:function(e,t){return Gt(Yt(R.infoLogs.INSERT_TRIGGERED,Si),pt.LOG,E(this,Vi)),E(this,Ci).insert(e,t)}},{key:"detokenize",value:function(e){return Gt(Yt(R.infoLogs.DETOKENIZE_TRIGGERED,Si),pt.LOG,E(this,Vi)),E(this,Ci).detokenize(e)}},{key:"getById",value:function(e){return Gt(R.warnLogs.GET_BY_ID_DEPRECATED,pt.WARN,E(this,Vi)),Gt(Yt(R.infoLogs.GET_BY_ID_TRIGGERED,Si),pt.LOG,E(this,Vi)),E(this,Ci).getById(e)}},{key:"get",value:function(e,t){return Gt(Yt(R.infoLogs.GET_TRIGGERED,Si),pt.LOG,E(this,Vi)),E(this,Ci).get(e,t)}},{key:"delete",value:function(e,t){return Gt(Yt(R.infoLogs.DELETE_TRIGGERED,Si),pt.LOG,E(this,Vi)),E(this,Ci).delete(e,t)}}],[{key:"init",value:function(t){var n,r=(null==t||null===(n=t.options)||void 0===n?void 0:n.logLevel)||lt.ERROR;!function(e){var t,n;if(null!=e&&null!==(t=e.options)&&void 0!==t&&t.customElementsURL&&Lt(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);St.IFRAME_SECURE_ORIGIN=s,St.IFRAME_SECURE_SITE=null==e||null===(o=e.options)||void 0===o?void 0:o.customElementsURL}}(t),Gt(Yt(R.infoLogs.INITIALIZE_CLIENT,Si),pt.LOG,r);var o,i=t;i.vaultURL="string"!=typeof(o=t.vaultURL)?o:"/"===(null==o?void 0:o.trim().slice(-1))?o.slice(0,-1):o.trim();var a=new e(i);return Gt(Yt(R.infoLogs.CLIENT_INITIALIZED,Si),pt.LOG,r),a}},{key:"ContainerType",get:function(){return Ri}},{key:"ElementType",get:function(){return Me}},{key:"RedactionType",get:function(){return it}},{key:"RequestMethod",get:function(){return at}},{key:"LogLevel",get:function(){return lt}},{key:"EventName",get:function(){return ct}},{key:"Env",get:function(){return st}},{key:"ValidationRuleType",get:function(){return ut}},{key:"CardType",get:function(){return Ce}},{key:"Error",get:function(){return Xt}},{key:"ThreeDS",get:function(){return hi}}]),e}();const Gi=Fi,Yi=Fi})(),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={841: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)}))}},4148:(e,t,n)=>{"use strict";var o=n(5606),r=n(6763);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 o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(r=o.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 o=n.call(e,t||"default");if("object"!==i(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(r,"string"),"symbol"===i(a)?a:String(a)),o)}var r,a}function l(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var c,s,p=n(9597).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,v=n(3918),m=n(537).inspect,I=n(537).types,y=I.isPromise,O=I.isRegExp,L=n(1514)(),N=n(9394)(),T=n(8075)("RegExp.prototype.test");new Map;function g(){var e=n(2299);c=e.isDeepEqual,s=e.isDeepStrictEqual}var h=!1,R=e.exports=b,A={};function S(e){if(e.message instanceof Error)throw e.message;throw new v(e)}function w(e,t,n,o){if(!n){var r=!1;if(0===t)r=!0,o="No value argument passed to `assert.ok()`";else if(o instanceof Error)throw o;var i=new v({actual:n,expected:!0,message:o,operator:"==",stackStartFn:e});throw i.generatedMessage=r,i}}function b(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];w.apply(void 0,[b,t.length].concat(t))}R.fail=function e(t,n,i,a,l){var c,s=arguments.length;if(0===s)c="Failed";else if(1===s)i=t,t=void 0;else{if(!1===h)h=!0,(o.emitWarning?o.emitWarning:r.warn.bind(r))("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:l||e};void 0!==i&&(p.message=i);var u=new v(p);throw c&&(u.message=c,u.generatedMessage=!0),u},R.AssertionError=v,R.ok=b,R.equal=function e(t,n,o){if(arguments.length<2)throw new _("actual","expected");t!=n&&S({actual:t,expected:n,message:o,operator:"==",stackStartFn:e})},R.notEqual=function e(t,n,o){if(arguments.length<2)throw new _("actual","expected");t==n&&S({actual:t,expected:n,message:o,operator:"!=",stackStartFn:e})},R.deepEqual=function e(t,n,o){if(arguments.length<2)throw new _("actual","expected");void 0===c&&g(),c(t,n)||S({actual:t,expected:n,message:o,operator:"deepEqual",stackStartFn:e})},R.notDeepEqual=function e(t,n,o){if(arguments.length<2)throw new _("actual","expected");void 0===c&&g(),c(t,n)&&S({actual:t,expected:n,message:o,operator:"notDeepEqual",stackStartFn:e})},R.deepStrictEqual=function e(t,n,o){if(arguments.length<2)throw new _("actual","expected");void 0===c&&g(),s(t,n)||S({actual:t,expected:n,message:o,operator:"deepStrictEqual",stackStartFn:e})},R.notDeepStrictEqual=function e(t,n,o){if(arguments.length<2)throw new _("actual","expected");void 0===c&&g();s(t,n)&&S({actual:t,expected:n,message:o,operator:"notDeepStrictEqual",stackStartFn:e})},R.strictEqual=function e(t,n,o){if(arguments.length<2)throw new _("actual","expected");N(t,n)||S({actual:t,expected:n,message:o,operator:"strictEqual",stackStartFn:e})},R.notStrictEqual=function e(t,n,o){if(arguments.length<2)throw new _("actual","expected");N(t,n)&&S({actual:t,expected:n,message:o,operator:"notStrictEqual",stackStartFn:e})};var D=l((function e(t,n,o){var r=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!==o&&"string"==typeof o[e]&&O(t[e])&&T(t[e],o[e])?r[e]=o[e]:r[e]=t[e])}))}));function M(e,t,n,o){if("function"!=typeof t){if(O(t))return T(t,e);if(2===arguments.length)throw new E("expected",["Function","RegExp"],t);if("object"!==i(e)||null===e){var r=new v({actual:e,expected:t,message:n,operator:"deepStrictEqual",stackStartFn:o});throw r.operator=o.name,r}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===c&&g(),a.forEach((function(r){"string"==typeof e[r]&&O(t[r])&&T(t[r],e[r])||function(e,t,n,o,r,i){if(!(n in e)||!s(e[n],t[n])){if(!o){var a=new D(e,r),l=new D(t,r,e),c=new v({actual:a,expected:l,operator:"deepStrictEqual",stackStartFn:i});throw c.actual=e,c.expected=t,c.operator=i.name,c}S({actual:e,expected:t,message:o,operator:i.name,stackStartFn:i})}}(e,t,r,n,a,o)})),!0}return void 0!==t.prototype&&e instanceof t||!Error.isPrototypeOf(t)&&!0===t.call({},e)}function x(e){if("function"!=typeof e)throw new E("fn","Function",e);try{e()}catch(e){return e}return A}function C(e){return y(e)||null!==e&&"object"===i(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function P(e){return Promise.resolve().then((function(){var t;if("function"==typeof e){if(!C(t=e()))throw new f("instance of Promise","promiseFn",t)}else{if(!C(e))throw new E("promiseFn",["Function","Promise"],e);t=e}return Promise.resolve().then((function(){return t})).then((function(){return A})).catch((function(e){return e}))}))}function k(e,t,n,o){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.'));o=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===A){var r="";n&&n.name&&(r+=" (".concat(n.name,")")),r+=o?": ".concat(o):".";var a="rejects"===e.name?"rejection":"exception";S({actual:void 0,expected:n,operator:e.name,message:"Missing expected ".concat(a).concat(r),stackStartFn:e})}if(n&&!M(t,n,o,e))throw t}function V(e,t,n,o){if(t!==A){if("string"==typeof n&&(o=n,n=void 0),!n||M(t,n)){var r=o?": ".concat(o):".",i="doesNotReject"===e.name?"rejection":"exception";S({actual:t,expected:n,operator:e.name,message:"Got unwanted ".concat(i).concat(r,"\n")+'Actual message: "'.concat(t&&t.message,'"'),stackStartFn:e})}throw t}}function U(e,t,n,o,r){if(!O(t))throw new E("regexp","RegExp",t);var a="match"===r;if("string"!=typeof e||T(t,e)!==a){if(n instanceof Error)throw n;var l=!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 c=new v({actual:e,expected:t,message:n,operator:r,stackStartFn:o});throw c.generatedMessage=l,c}}function j(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];w.apply(void 0,[j,t.length].concat(t))}R.throws=function e(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];k.apply(void 0,[e,x(t)].concat(o))},R.rejects=function e(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return P(t).then((function(t){return k.apply(void 0,[e,t].concat(o))}))},R.doesNotThrow=function e(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];V.apply(void 0,[e,x(t)].concat(o))},R.doesNotReject=function e(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return P(t).then((function(t){return V.apply(void 0,[e,t].concat(o))}))},R.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 o=new v({actual:t,expected:null,operator:"ifError",message:n,stackStartFn:e}),r=t.stack;if("string"==typeof r){var a=r.split("\n");a.shift();for(var l=o.stack.split("\n"),c=0;c<a.length;c++){var s=l.indexOf(a[c]);if(-1!==s){l=l.slice(0,s);break}}o.stack="".concat(l.join("\n"),"\n").concat(a.join("\n"))}throw o}},R.match=function e(t,n,o){U(t,n,o,e,"match")},R.doesNotMatch=function e(t,n,o){U(t,n,o,e,"doesNotMatch")},R.strict=L(j,R,{equal:R.strictEqual,deepEqual:R.deepStrictEqual,notEqual:R.notStrictEqual,notDeepEqual:R.notDeepStrictEqual}),R.strict.strict=R.strict},3918:(e,t,n)=>{"use strict";var o=n(5606);function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t,n){return(t=c(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(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,c(o.key),o)}}function c(e){var t=function(e,t){if("object"!==v(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==v(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===v(t)?t:String(t)}function s(e,t){if(t&&("object"===v(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,o)}function o(){return E(e,arguments,_(this).constructor)}return o.prototype=Object.create(e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),f(o,e)},u(e)}function E(e,t,n){return E=d()?Reflect.construct.bind():function(e,t,n){var o=[null];o.push.apply(o,t);var r=new(Function.bind.apply(e,o));return n&&f(r,n.prototype),r},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 v(e){return v="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},v(e)}var m=n(537).inspect,I=n(9597).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 O="",L="",N="",T="",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 R(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 A(e,t,n){var r="",i="",a=0,l="",c=!1,s=R(e),p=s.split("\n"),u=R(t).split("\n"),E=0,d="";if("strictEqual"===n&&"object"===v(e)&&"object"===v(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"===v(e)&&null!==e||"object"===v(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<(o.stderr&&o.stderr.isTTY?o.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?l="\n ".concat(_).concat(l):r=_,p.pop(),u.pop(),0!==p.length&&0!==u.length);)_=p[p.length-1],m=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(O,"...").concat(T);h.length>27;)h.pop();return"".concat(g.notIdentical,"\n\n").concat(h.join("\n"),"\n")}E>3&&(l="\n".concat(O,"...").concat(T).concat(l),c=!0),""!==r&&(l="\n ".concat(r).concat(l),r="");var A=0,S=g[n]+"\n".concat(L,"+ actual").concat(T," ").concat(N,"- expected").concat(T),w=" ".concat(O,"...").concat(T," Lines skipped");for(E=0;E<I;E++){var b=E-a;if(p.length<E+1)b>1&&E>2&&(b>4?(i+="\n".concat(O,"...").concat(T),c=!0):b>3&&(i+="\n ".concat(u[E-2]),A++),i+="\n ".concat(u[E-1]),A++),a=E,r+="\n".concat(N,"-").concat(T," ").concat(u[E]),A++;else if(u.length<E+1)b>1&&E>2&&(b>4?(i+="\n".concat(O,"...").concat(T),c=!0):b>3&&(i+="\n ".concat(p[E-2]),A++),i+="\n ".concat(p[E-1]),A++),a=E,i+="\n".concat(L,"+").concat(T," ").concat(p[E]),A++;else{var D=u[E],M=p[E],x=M!==D&&(!y(M,",")||M.slice(0,-1)!==D);x&&y(D,",")&&D.slice(0,-1)===M&&(x=!1,M+=","),x?(b>1&&E>2&&(b>4?(i+="\n".concat(O,"...").concat(T),c=!0):b>3&&(i+="\n ".concat(p[E-2]),A++),i+="\n ".concat(p[E-1]),A++),a=E,i+="\n".concat(L,"+").concat(T," ").concat(M),r+="\n".concat(N,"-").concat(T," ").concat(D),A+=2):(i+=r,r="",1!==b&&0!==E||(i+="\n ".concat(M),A++))}if(A>20&&E<I-2)return"".concat(S).concat(w,"\n").concat(i,"\n").concat(O,"...").concat(T).concat(r,"\n")+"".concat(O,"...").concat(T)}return"".concat(S).concat(c?w:"","\n").concat(i).concat(r).concat(l).concat(d)}var S=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,r,a,c,u,E=(n=y,r=d(),function(){var e,t=_(n);if(r){var o=_(this).constructor;e=Reflect.construct(t,arguments,o)}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"!==v(e)||null===e)throw new I("options","Object",e);var n=e.message,r=e.operator,i=e.stackStartFn,a=e.actual,l=e.expected,c=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=n)t=E.call(this,String(n));else if(o.stderr&&o.stderr.isTTY&&(o.stderr&&o.stderr.getColorDepth&&1!==o.stderr.getColorDepth()?(O="[34m",L="[32m",T="[39m",N="[31m"):(O="",L="",T="",N="")),"object"===v(a)&&null!==a&&"object"===v(l)&&null!==l&&"stack"in a&&a instanceof Error&&"stack"in l&&l instanceof Error&&(a=h(a),l=h(l)),"deepStrictEqual"===r||"strictEqual"===r)t=E.call(this,A(a,l,r));else if("notDeepStrictEqual"===r||"notStrictEqual"===r){var u=g[r],d=R(a).split("\n");if("notStrictEqual"===r&&"object"===v(a)&&null!==a&&(u=g.notStrictEqualObject),d.length>30)for(d[26]="".concat(O,"...").concat(T);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=R(a),_="",m=g[r];"notDeepEqual"===r||"notEqual"===r?(f="".concat(g[r],"\n\n").concat(f)).length>1024&&(f="".concat(f.slice(0,1021),"...")):(_="".concat(R(l)),f.length>512&&(f="".concat(f.slice(0,509),"...")),_.length>512&&(_="".concat(_.slice(0,509),"...")),"deepEqual"===r||"equal"===r?f="".concat(m,"\n\n").concat(f,"\n\nshould equal\n\n"):_=" ".concat(r," ").concat(_)),t=E.call(this,"".concat(f).concat(_))}return Error.stackTraceLimit=c,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=l,t.operator=r,Error.captureStackTrace&&Error.captureStackTrace(p(t),i),t.stack,t.name="AssertionError",s(t)}return a=y,(c=[{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}))}}])&&l(a.prototype,c),u&&l(a,u),Object.defineProperty(a,"prototype",{writable:!1}),y}(u(Error),m.custom);e.exports=S},9597:(e,t,n)=>{"use strict";function o(e){return o="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},o(e)}function r(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,(i=r.key,a=void 0,a=function(e,t){if("object"!==o(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i,"string"),"symbol"===o(a)?a:String(a)),r)}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,r=l(e);if(t){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===o(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 l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}var c,s,p={};function u(e,t,n){n||(n=Error);var o=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 o,l,c,s=a(p);function p(n,o,r){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,o){return"string"==typeof t?t:t(e,n,o)}(n,o,r)),i.code=e,i}return o=p,l&&r(o.prototype,l),c&&r(o,c),Object.defineProperty(o,"prototype",{writable:!1}),o}(n);p[e]=o}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,r){var i,a,l,s;if(void 0===c&&(c=n(4148)),c("string"==typeof e,"'name' must be a string"),"string"==typeof t&&(a="not ",t.substr(!l||l<0?0:+l,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(o(r))}),TypeError),u("ERR_INVALID_ARG_VALUE",(function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===s&&(s=n(537));var r=s.inspect(t);return r.length>128&&(r="".concat(r.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(o,". Received ").concat(r)}),TypeError,RangeError),u("ERR_INVALID_RETURN_VALUE",(function(e,t,n){var r;return r=n&&n.constructor&&n.constructor.name?"instance of ".concat(n.constructor.name):"type ".concat(o(n)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(r,".")}),TypeError),u("ERR_MISSING_ARGS",(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];void 0===c&&(c=n(4148)),c(t.length>0,"At least one arg needs to be specified");var r="The ",i=t.length;switch(t=t.map((function(e){return'"'.concat(e,'"')})),i){case 1:r+="".concat(t[0]," argument");break;case 2:r+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:r+=t.slice(0,i-1).join(", "),r+=", and ".concat(t[i-1]," arguments")}return"".concat(r," must be specified")}),TypeError),e.exports.codes=p},2299:(e,t,n)=>{"use strict";function o(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 o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return r(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 r(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 r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}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,l=function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t},c=function(e){var t=[];return e.forEach((function(e,n){return t.push([n,e])})),t},s=Object.is?Object.is:n(7653),p=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},u=Number.isNaN?Number.isNaN:n(4133);function E(e){return e.call.bind(e)}var d=E(Object.prototype.hasOwnProperty),f=E(Object.prototype.propertyIsEnumerable),_=E(Object.prototype.toString),v=n(537).types,m=v.isAnyArrayBuffer,I=v.isArrayBufferView,y=v.isDate,O=v.isMap,L=v.isRegExp,N=v.isSet,T=v.isNativeError,g=v.isBoxedPrimitive,h=v.isNumberObject,R=v.isStringObject,A=v.isBooleanObject,S=v.isBigIntObject,w=v.isSymbolObject,b=v.isFloat32Array,D=v.isFloat64Array;function M(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 x(e){return Object.keys(e).filter(M).concat(p(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function C(e,t){if(e===t)return 0;for(var n=e.length,o=t.length,r=0,i=Math.min(n,o);r<i;++r)if(e[r]!==t[r]){n=e[r],o=t[r];break}return n<o?-1:o<n?1:0}function P(e,t,n,o){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 r,l,c,p,E=_(e);if(E!==_(t))return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;var d=x(e),f=x(t);return d.length===f.length&&V(e,t,n,o,1,d)}if("[object Object]"===E&&(!O(e)&&O(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(L(e)){if(!L(t)||(c=e,p=t,!(a?c.source===p.source&&c.flags===p.flags:RegExp.prototype.toString.call(c)===RegExp.prototype.toString.call(p))))return!1}else if(T(e)||e instanceof Error){if(e.message!==t.message||e.name!==t.name)return!1}else{if(I(e)){if(n||!b(e)&&!D(e)){if(!function(e,t){return e.byteLength===t.byteLength&&0===C(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 v=x(e),M=x(t);return v.length===M.length&&V(e,t,n,o,0,v)}if(N(e))return!(!N(t)||e.size!==t.size)&&V(e,t,n,o,2);if(O(e))return!(!O(t)||e.size!==t.size)&&V(e,t,n,o,3);if(m(e)){if(l=t,(r=e).byteLength!==l.byteLength||0!==C(new Uint8Array(r),new Uint8Array(l)))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)):R(e)?R(t)&&String.prototype.valueOf.call(e)===String.prototype.valueOf.call(t):A(e)?A(t)&&Boolean.prototype.valueOf.call(e)===Boolean.prototype.valueOf.call(t):S(e)?S(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 V(e,t,n,o,0)}function k(e,t){return t.filter((function(t){return f(e,t)}))}function V(e,t,n,r,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 v=0;for(E=0;E<_.length;E++){var m=_[E];if(f(e,m)){if(!f(t,m))return!1;s.push(m),v++}else if(f(t,m))return!1}var I=p(t);if(_.length!==I.length&&k(t,I).length!==v)return!1}else{var y=p(t);if(0!==y.length&&0!==k(t,y).length)return!1}}if(0===s.length&&(0===a||1===a&&0===e.length||0===e.size))return!0;if(void 0===r)r={val1:new Map,val2:new Map,position:0};else{var O=r.val1.get(e);if(void 0!==O){var L=r.val2.get(t);if(void 0!==L)return O===L}r.position++}r.val1.set(e,r.position),r.val2.set(t,r.position);var N=function(e,t,n,r,a,s){var p=0;if(2===s){if(!function(e,t,n,o){for(var r=null,a=l(e),c=0;c<a.length;c++){var s=a[c];if("object"===i(s)&&null!==s)null===r&&(r=new Set),r.add(s);else if(!t.has(s)){if(n)return!1;if(!F(e,t,s))return!1;null===r&&(r=new Set),r.add(s)}}if(null!==r){for(var p=l(t),u=0;u<p.length;u++){var E=p[u];if("object"===i(E)&&null!==E){if(!U(r,E,n,o))return!1}else if(!n&&!e.has(E)&&!U(r,E,n,o))return!1}return 0===r.size}return!0}(e,t,n,a))return!1}else if(3===s){if(!function(e,t,n,r){for(var a=null,l=c(e),s=0;s<l.length;s++){var p=o(l[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)||!P(E,d,n,r)){if(n)return!1;if(!G(e,t,u,E,r))return!1;null===a&&(a=new Set),a.add(u)}}}if(null!==a){for(var f=c(t),_=0;_<f.length;_++){var v=o(f[_],2),m=v[0],I=v[1];if("object"===i(m)&&null!==m){if(!Y(a,e,m,I,n,r))return!1}else if(!(n||e.has(m)&&P(e.get(m),I,!1,r)||Y(a,e,m,I,!1,r)))return!1}return 0===a.size}return!0}(e,t,n,a))return!1}else if(1===s)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)||!P(e[E],t[E],n,a))return!1}return u.length===Object.keys(t).length}if(!d(t,p)||!P(e[p],t[p],n,a))return!1}for(p=0;p<r.length;p++){var f=r[p];if(!P(e[f],t[f],n,a))return!1}return!0}(e,t,n,s,r,a);return r.val1.delete(e),r.val2.delete(t),N}function U(e,t,n,o){for(var r=l(e),i=0;i<r.length;i++){var a=r[i];if(P(t,a,n,o))return e.delete(a),!0}return!1}function j(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 F(e,t,n){var o=j(n);return null!=o?o:t.has(o)&&!e.has(o)}function G(e,t,n,o,r){var i=j(n);if(null!=i)return i;var a=t.get(i);return!(void 0===a&&!t.has(i)||!P(o,a,!1,r))&&(!e.has(i)&&P(o,a,!1,r))}function Y(e,t,n,o,r,i){for(var a=l(e),c=0;c<a.length;c++){var s=a[c];if(P(n,s,r,i)&&P(o,t.get(s),r,i))return e.delete(s),!0}return!1}e.exports={isDeepEqual:function(e,t){return P(e,t,false)},isDeepStrictEqual:function(e,t){return P(e,t,true)}}},8075:(e,t,n)=>{"use strict";var o=n(453),r=n(487),i=r(o("String.prototype.indexOf"));e.exports=function(e,t){var n=o(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?r(n):n}},487:(e,t,n)=>{"use strict";var o=n(6743),r=n(453),i=r("%Function.prototype.apply%"),a=r("%Function.prototype.call%"),l=r("%Reflect.apply%",!0)||o.call(a,i),c=r("%Object.getOwnPropertyDescriptor%",!0),s=r("%Object.defineProperty%",!0),p=r("%Math.max%");if(s)try{s({},"a",{value:1})}catch(e){s=null}e.exports=function(e){var t=l(o,a,arguments);c&&s&&(c(t,"length").configurable&&s(t,"length",{value:1+p(0,e.length-(arguments.length-1))}));return t};var u=function(){return l(o,i,arguments)};s?s(e.exports,"apply",{value:u}):e.exports.apply=u},6763:(e,t,n)=>{var o=n(537),r=n(4148);function i(){return(new Date).getTime()}var a,l=Array.prototype.slice,c={};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){c[e]=i()},"time"],[function(e){var t=c[e];if(!t)throw new Error("No such label: "+e);delete c[e];var n=i()-t;a.log(e+": "+n+"ms")},"timeEnd"],[function(){var e=new Error;e.name="Trace",e.message=o.format.apply(null,arguments),a.error(e.stack)},"trace"],[function(e){a.log(o.inspect(e)+"\n")},"dir"],[function(e){if(!e){var t=l.call(arguments,1);r.ok(!1,o.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},41:(e,t,n)=>{"use strict";var o=n(592)(),r=n(453),i=o&&r("%Object.defineProperty%",!0),a=r("%SyntaxError%"),l=r("%TypeError%"),c=n(5795);e.exports=function(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new l("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new l("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new l("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new l("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new l("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new l("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,r=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,p=arguments.length>6&&arguments[6],u=!!c&&c(e,t);if(i)i(e,t,{configurable:null===s&&u?u.configurable:!s,enumerable:null===o&&u?u.enumerable:!o,value:n,writable:null===r&&u?u.writable:!r});else{if(!p&&(o||r||s))throw new a("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},8452:(e,t,n)=>{"use strict";var o=n(1189),r="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),i=Object.prototype.toString,a=Array.prototype.concat,l=n(41),c=n(592)(),s=function(e,t,n,o){if(t in e)if(!0===o){if(e[t]===n)return}else if("function"!=typeof(r=o)||"[object Function]"!==i.call(r)||!o())return;var r;c?l(e,t,n,!0):l(e,t,n)},p=function(e,t){var n=arguments.length>2?arguments[2]:{},i=o(t);r&&(i=a.call(i,Object.getOwnPropertySymbols(t)));for(var l=0;l<i.length;l+=1)s(e,i[l],t[i[l]],n[i[l]])};p.supportsDescriptors=!!c,e.exports=p},2682:(e,t,n)=>{"use strict";var o=n(9600),r=Object.prototype.toString,i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){if(!o(t))throw new TypeError("iterator must be a function");var a;arguments.length>=3&&(a=n),"[object Array]"===r.call(e)?function(e,t,n){for(var o=0,r=e.length;o<r;o++)i.call(e,o)&&(null==n?t(e[o],o,e):t.call(n,e[o],o,e))}(e,t,a):"string"==typeof e?function(e,t,n){for(var o=0,r=e.length;o<r;o++)null==n?t(e.charAt(o),o,e):t.call(n,e.charAt(o),o,e)}(e,t,a):function(e,t,n){for(var o in e)i.call(e,o)&&(null==n?t(e[o],o,e):t.call(n,e[o],o,e))}(e,t,a)}},6096:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Framebus=void 0;var o=n(9275),r=n(2926),i=n(9974),a=n(3678),l=n(6968),c=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&&(l.childWindows.push(e),!0)))},e.prototype.target=function(t){return e.target(t)},e.prototype.emit=function(e,t,n){var r=this.origin;if(o.isntString(e))return!1;if(o.isntString(r))return!1;"function"==typeof t&&(n=t,t=void 0);var l=a.packagePayload(e,r,t,n);return!!l&&(i.broadcast(window.top||window.self,l,r),!0)},e.prototype.on=function(e,t){var n=this.origin;return!r.subscriptionArgsInvalid(e,t,n)&&(l.subscribers[n]=l.subscribers[n]||{},l.subscribers[n][e]=l.subscribers[n][e]||[],l.subscribers[n][e].push(t),!0)},e.prototype.off=function(e,t){var n=this.origin;if(r.subscriptionArgsInvalid(e,t,n))return!1;var o=l.subscribers[n]&&l.subscribers[n][e];if(!o)return!1;for(var i=0;i<o.length;i++)if(o[i]===t)return o.splice(i,1),!0;return!1},e}();t.Framebus=c},2281:(e,t,n)=>{"use strict";var o=n(7920),r=new(n(6096).Framebus);o.attach(),e.exports=r},7920:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.detach=t.attach=void 0;var o=n(3610),r=!1;t.attach=function(){r||"undefined"==typeof window||(r=!0,window.addEventListener("message",o.onmessage,!1))},t.detach=function(){r=!1,window.removeEventListener("message",o.onmessage,!1)}},1117:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.broadcastToChildWindows=void 0;var o=n(9974),r=n(6968);t.broadcastToChildWindows=function(e,t,n){for(var i=r.childWindows.length-1;i>=0;i--){var a=r.childWindows[i];a.closed?r.childWindows.splice(i,1):n!==a&&o.broadcast(a.top,e,t)}}},9974:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.broadcast=void 0;var o=n(5213);t.broadcast=function e(t,n,r){var i,a=0;try{for(t.postMessage(n,r),o.hasOpener(t)&&e(t.opener.top,n,r);i=t.frames[a];)e(i,n,r),a++}catch(e){}}},6968:(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={}},9923:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dispatch=void 0;var o=n(6968);t.dispatch=function(e,t,n,r,i){if(o.subscribers[e]&&o.subscribers[e][t]){var a=[];n&&a.push(n),r&&a.push(r);for(var l=0;l<o.subscribers[e][t].length;l++)o.subscribers[e][t][l].apply(i,a)}}},5213:(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))}},9275:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isntString=void 0,t.isntString=function(e){return"string"!=typeof e}},3610:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.onmessage=void 0;var o=n(9275),r=n(9752),i=n(9923),a=n(1117);t.onmessage=function(e){if(!o.isntString(e.data)){var t=r.unpackPayload(e);if(t){var n=t.eventData,l=t.reply;i.dispatch("*",t.event,n,l,e),i.dispatch(e.origin,t.event,n,l,e),a.broadcastToChildWindows(e.data,t.origin,e.source)}}}},3678:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packagePayload=void 0;var o=n(5159),r=n(6968);t.packagePayload=function(e,t,n,i){var a,l={event:e,origin:t};"function"==typeof i&&(l.reply=o.subscribeReplier(i,t)),l.eventData=n;try{a=r.prefix+JSON.stringify(l)}catch(e){throw new Error("Could not stringify event: "+e.message)}return a}},5159:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.subscribeReplier=void 0;var r=n(6096),i=o(n(841));t.subscribeReplier=function(e,t){var n=i.default();return r.Framebus.target(t).on(n,(function o(i,a){e(i,a),r.Framebus.target(t).off(n,o)})),n}},2926:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.subscriptionArgsInvalid=void 0;var o=n(9275);t.subscriptionArgsInvalid=function(e,t,n){return!!o.isntString(e)||("function"!=typeof t||o.isntString(n))}},9752:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unpackPayload=void 0;var o=n(6968),r=n(3678);t.unpackPayload=function(e){var t;if(e.data.slice(0,o.prefix.length)!==o.prefix)return!1;try{t=JSON.parse(e.data.slice(o.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=r.packagePayload(a,n,e);t&&i.postMessage(t,n)}}}return t}},9353:e=>{"use strict";var t=Array.prototype.slice,n=Object.prototype.toString;e.exports=function(e){var o=this;if("function"!=typeof o||"[object Function]"!==n.call(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var r,i=t.call(arguments,1),a=Math.max(0,o.length-i.length),l=[],c=0;c<a;c++)l.push("$"+c);if(r=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof r){var n=o.apply(this,i.concat(t.call(arguments)));return Object(n)===n?n:this}return o.apply(e,i.concat(t.call(arguments)))})),o.prototype){var s=function(){};s.prototype=o.prototype,r.prototype=new s,s.prototype=null}return r}},6743:(e,t,n)=>{"use strict";var o=n(9353);e.exports=Function.prototype.bind||o},453:(e,t,n)=>{"use strict";var o,r=SyntaxError,i=Function,a=TypeError,l=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(e){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(e){c=null}var s=function(){throw new a},p=c?function(){try{return s}catch(e){try{return c(arguments,"callee").get}catch(e){return s}}}():s,u=n(4039)(),E=n(24)(),d=Object.getPrototypeOf||(E?function(e){return e.__proto__}:null),f={},_="undefined"!=typeof Uint8Array&&d?d(Uint8Array):o,v={"%AggregateError%":"undefined"==typeof AggregateError?o:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?o:ArrayBuffer,"%ArrayIteratorPrototype%":u&&d?d([][Symbol.iterator]()):o,"%AsyncFromSyncIteratorPrototype%":o,"%AsyncFunction%":f,"%AsyncGenerator%":f,"%AsyncGeneratorFunction%":f,"%AsyncIteratorPrototype%":f,"%Atomics%":"undefined"==typeof Atomics?o:Atomics,"%BigInt%":"undefined"==typeof BigInt?o:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?o:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?o:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?o:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?o:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?o:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?o:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":f,"%Int8Array%":"undefined"==typeof Int8Array?o:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?o:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?o:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":u&&d?d(d([][Symbol.iterator]())):o,"%JSON%":"object"==typeof JSON?JSON:o,"%Map%":"undefined"==typeof Map?o:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&u&&d?d((new Map)[Symbol.iterator]()):o,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?o:Promise,"%Proxy%":"undefined"==typeof Proxy?o:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?o:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?o:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&u&&d?d((new Set)[Symbol.iterator]()):o,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?o:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":u&&d?d(""[Symbol.iterator]()):o,"%Symbol%":u?Symbol:o,"%SyntaxError%":r,"%ThrowTypeError%":p,"%TypedArray%":_,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?o:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?o:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?o:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?o:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?o:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?o:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?o:WeakSet};if(d)try{null.error}catch(e){var m=d(d(e));v["%Error.prototype%"]=m}var I=function e(t){var n;if("%AsyncFunction%"===t)n=l("async function () {}");else if("%GeneratorFunction%"===t)n=l("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=l("async function* () {}");else if("%AsyncGenerator%"===t){var o=e("%AsyncGeneratorFunction%");o&&(n=o.prototype)}else if("%AsyncIteratorPrototype%"===t){var r=e("%AsyncGenerator%");r&&d&&(n=d(r.prototype))}return v[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"]},O=n(6743),L=n(9030),N=O.call(Function.call,Array.prototype.concat),T=O.call(Function.apply,Array.prototype.splice),g=O.call(Function.call,String.prototype.replace),h=O.call(Function.call,String.prototype.slice),R=O.call(Function.call,RegExp.prototype.exec),A=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,S=/\\(\\)?/g,w=function(e,t){var n,o=e;if(L(y,o)&&(o="%"+(n=y[o])[0]+"%"),L(v,o)){var i=v[o];if(i===f&&(i=I(o)),void 0===i&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:o,value:i}}throw new r("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===R(/^%?[^%]*%?$/,e))throw new r("`%` 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 r("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new r("invalid intrinsic syntax, expected opening `%`");var o=[];return g(e,A,(function(e,t,n,r){o[o.length]=n?g(r,S,"$1"):t||e})),o}(e),o=n.length>0?n[0]:"",i=w("%"+o+"%",t),l=i.name,s=i.value,p=!1,u=i.alias;u&&(o=u[0],T(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 r("property names with quotes must have matching quotes");if("constructor"!==f&&d||(p=!0),L(v,l="%"+(o+="."+f)+"%"))s=v[l];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(c&&E+1>=n.length){var I=c(s,f);s=(d=!!I)&&"get"in I&&!("originalValue"in I.get)?I.get:s[f]}else d=L(s,f),s=s[f];d&&!p&&(v[l]=s)}}return s}},5795:(e,t,n)=>{"use strict";var o=n(453)("%Object.getOwnPropertyDescriptor%",!0);if(o)try{o([],"length")}catch(e){o=null}e.exports=o},592:(e,t,n)=>{"use strict";var o=n(453)("%Object.defineProperty%",!0),r=function(){if(o)try{return o({},"a",{value:1}),!0}catch(e){return!1}return!1};r.hasArrayLengthDefineBug=function(){if(!r())return null;try{return 1!==o([],"length",{value:1}).length}catch(e){return!0}},e.exports=r},24:e=>{"use strict";var t={foo:{}},n=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!({__proto__:null}instanceof n)}},4039:(e,t,n)=>{"use strict";var o="undefined"!=typeof Symbol&&Symbol,r=n(1333);e.exports=function(){return"function"==typeof o&&("function"==typeof Symbol&&("symbol"==typeof o("foo")&&("symbol"==typeof Symbol("bar")&&r())))}},1333: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 o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var r=Object.getOwnPropertyDescriptor(e,t);if(42!==r.value||!0!==r.enumerable)return!1}return!0}},9092:(e,t,n)=>{"use strict";var o=n(1333);e.exports=function(){return o()&&!!Symbol.toStringTag}},9030:(e,t,n)=>{"use strict";var o=n(6743);e.exports=o.call(Function.call,Object.prototype.hasOwnProperty)},6698: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}}},7244:(e,t,n)=>{"use strict";var o=n(9092)(),r=n(8075)("Object.prototype.toString"),i=function(e){return!(o&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===r(e)},a=function(e){return!!i(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==r(e)&&"[object Function]"===r(e.callee)},l=function(){return i(arguments)}();i.isLegacyArguments=a,e.exports=l?i:a},9600:e=>{"use strict";var t,n,o=Function.prototype.toString,r="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof r&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw n}}),n={},r((function(){throw 42}),null,t)}catch(e){e!==n&&(r=null)}else r=null;var i=/^\s*class\b/,a=function(e){try{var t=o.call(e);return i.test(t)}catch(e){return!1}},l=function(e){try{return!a(e)&&(o.call(e),!0)}catch(e){return!1}},c=Object.prototype.toString,s="function"==typeof Symbol&&!!Symbol.toStringTag,p=!(0 in[,]),u=function(){return!1};if("object"==typeof document){var E=document.all;c.call(E)===c.call(document.all)&&(u=function(e){if((p||!e)&&(void 0===e||"object"==typeof e))try{var t=c.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=r?function(e){if(u(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;try{r(e,null,t)}catch(e){if(e!==n)return!1}return!a(e)&&l(e)}:function(e){if(u(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(s)return l(e);if(a(e))return!1;var t=c.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&l(e)}},8184:(e,t,n)=>{"use strict";var o,r=Object.prototype.toString,i=Function.prototype.toString,a=/^\s*(?:function)?\*/,l=n(9092)(),c=Object.getPrototypeOf;e.exports=function(e){if("function"!=typeof e)return!1;if(a.test(i.call(e)))return!0;if(!l)return"[object GeneratorFunction]"===r.call(e);if(!c)return!1;if(void 0===o){var t=function(){if(!l)return!1;try{return Function("return function*() {}")()}catch(e){}}();o=!!t&&c(t)}return c(e)===o}},3003:e=>{"use strict";e.exports=function(e){return e!=e}},4133:(e,t,n)=>{"use strict";var o=n(487),r=n(8452),i=n(3003),a=n(6642),l=n(2464),c=o(a(),Number);r(c,{getPolyfill:a,implementation:i,shim:l}),e.exports=c},6642:(e,t,n)=>{"use strict";var o=n(3003);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:o}},2464:(e,t,n)=>{"use strict";var o=n(8452),r=n(6642);e.exports=function(){var e=r();return o(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},5680:(e,t,n)=>{"use strict";var o=n(5767);e.exports=function(e){return!!o(e)}},7721:e=>{e.exports=function(e,t){for(var n,o=-1,r=e.length;++o<r;){var i=t(e[o]);void 0!==i&&(n=void 0===n?i:n+i)}return n}},3488:e=>{e.exports=function(e){return e}},6119:(e,t,n)=>{var o=n(7721),r=n(3488);e.exports=function(e){return e&&e.length?o(e,r):0}},8673: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 o=e[n].map((function(e){return e.toLowerCase()}));n=n.toLowerCase();for(let e=0;e<o.length;e++){const r=o[e];if("*"!==r[0]){if(!t&&r in this._types)throw new Error('Attempt to change mapping for "'+r+'" extension from "'+this._types[r]+'" to "'+n+'". Pass `force=true` to allow this, otherwise remove "'+r+'" from the list of extensions for "'+n+'".');this._types[r]=n}}if(t||!this._extensions[n]){const e=o[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(),o=t.length<e.length;return(n.length<t.length-1||!o)&&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},125:(e,t,n)=>{"use strict";let o=n(8673);e.exports=new o(n(8446),n(1453))},1453: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"]}},8446: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"]}},9211: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))}},7653:(e,t,n)=>{"use strict";var o=n(8452),r=n(487),i=n(9211),a=n(9394),l=n(6576),c=r(a(),Object);o(c,{getPolyfill:a,implementation:i,shim:l}),e.exports=c},9394:(e,t,n)=>{"use strict";var o=n(9211);e.exports=function(){return"function"==typeof Object.is?Object.is:o}},6576:(e,t,n)=>{"use strict";var o=n(9394),r=n(8452);e.exports=function(){var e=o();return r(Object,{is:e},{is:function(){return Object.is!==e}}),e}},8875:(e,t,n)=>{"use strict";var o;if(!Object.keys){var r=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=n(1093),l=Object.prototype.propertyIsEnumerable,c=!l.call({toString:null},"toString"),s=l.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]&&r.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{u(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();o=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===i.call(e),o=a(e),l=t&&"[object String]"===i.call(e),E=[];if(!t&&!n&&!o)throw new TypeError("Object.keys called on a non-object");var f=s&&n;if(l&&e.length>0&&!r.call(e,0))for(var _=0;_<e.length;++_)E.push(String(_));if(o&&e.length>0)for(var v=0;v<e.length;++v)E.push(String(v));else for(var m in e)f&&"prototype"===m||!r.call(e,m)||E.push(String(m));if(c)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]||!r.call(e,p[y])||E.push(p[y]);return E}}e.exports=o},1189:(e,t,n)=>{"use strict";var o=Array.prototype.slice,r=n(1093),i=Object.keys,a=i?function(e){return i(e)}:n(8875),l=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 r(e)?l(o.call(e)):l(e)})}else Object.keys=a;return Object.keys||a},e.exports=a},1093:e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){var n=t.call(e),o="[object Arguments]"===n;return o||(o="[object Array]"!==n&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),o}},8403:(e,t,n)=>{"use strict";var o=n(1189),r=n(1333)(),i=n(8075),a=Object,l=i("Array.prototype.push"),c=i("Object.prototype.propertyIsEnumerable"),s=r?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=o(p),E=r&&(Object.getOwnPropertySymbols||s);if(E)for(var d=E(p),f=0;f<d.length;++f){var _=d[f];c(p,_)&&l(u,_)}for(var v=0;v<u.length;++v){var m=u[v];if(c(p,m)){var I=p[m];n[m]=I}}}return n}},1514:(e,t,n)=>{"use strict";var o=n(8403);e.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),n={},o=0;o<t.length;++o)n[t[o]]=t[o];var r=Object.assign({},n),i="";for(var a in r)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}()?o:Object.assign:o}},5606:e=>{var t,n,o=e.exports={};function r(){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===r||!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:r}catch(e){t=r}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var l,c=[],s=!1,p=-1;function u(){s&&l&&(s=!1,l.length?c=l.concat(c):p=-1,c.length&&E())}function E(){if(!s){var e=a(u);s=!0;for(var t=c.length;t;){for(l=c,c=[];++p<t;)l&&l[p].run();p=-1,t=c.length}l=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(){}o.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];c.push(new d(e,t)),1!==c.length||s||a(E)},d.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=f,o.addListener=f,o.once=f,o.off=f,o.removeListener=f,o.removeAllListeners=f,o.emit=f,o.prependListener=f,o.prependOnceListener=f,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},1135:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},9032:(e,t,n)=>{"use strict";var o=n(7244),r=n(8184),i=n(5767),a=n(5680);function l(e){return e.call.bind(e)}var c="undefined"!=typeof BigInt,s="undefined"!=typeof Symbol,p=l(Object.prototype.toString),u=l(Number.prototype.valueOf),E=l(String.prototype.valueOf),d=l(Boolean.prototype.valueOf);if(c)var f=l(BigInt.prototype.valueOf);if(s)var _=l(Symbol.prototype.valueOf);function v(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 I(e){return"[object Set]"===p(e)}function y(e){return"[object WeakMap]"===p(e)}function O(e){return"[object WeakSet]"===p(e)}function L(e){return"[object ArrayBuffer]"===p(e)}function N(e){return"undefined"!=typeof ArrayBuffer&&(L.working?L(e):e instanceof ArrayBuffer)}function T(e){return"[object DataView]"===p(e)}function g(e){return"undefined"!=typeof DataView&&(T.working?T(e):e instanceof DataView)}t.isArgumentsObject=o,t.isGeneratorFunction=r,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)},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)},O.working="undefined"!=typeof WeakSet&&O(new WeakSet),t.isWeakSet=function(e){return O(e)},L.working="undefined"!=typeof ArrayBuffer&&L(new ArrayBuffer),t.isArrayBuffer=N,T.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&T(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=g;var h="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function R(e){return"[object SharedArrayBuffer]"===p(e)}function A(e){return void 0!==h&&(void 0===R.working&&(R.working=R(new h)),R.working?R(e):e instanceof h)}function S(e){return v(e,u)}function w(e){return v(e,E)}function b(e){return v(e,d)}function D(e){return c&&v(e,f)}function M(e){return s&&v(e,_)}t.isSharedArrayBuffer=A,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=S,t.isStringObject=w,t.isBooleanObject=b,t.isBigIntObject=D,t.isSymbolObject=M,t.isBoxedPrimitive=function(e){return S(e)||w(e)||b(e)||D(e)||M(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(N(e)||A(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))},537:(e,t,n)=>{var o=n(5606),r=n(6763),i=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},o=0;o<t.length;o++)n[t[o]]=Object.getOwnPropertyDescriptor(e,t[o]);return n},a=/%[sdj%]/g;t.format=function(e){if(!O(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(p(arguments[n]));return t.join(" ")}n=1;for(var o=arguments,r=o.length,i=String(e).replace(a,(function(e){if("%%"===e)return"%";if(n>=r)return e;switch(e){case"%s":return String(o[n++]);case"%d":return Number(o[n++]);case"%j":try{return JSON.stringify(o[n++])}catch(e){return"[Circular]"}default:return e}})),l=o[n];n<r;l=o[++n])I(l)||!T(l)?i+=" "+l:i+=" "+p(l);return i},t.deprecate=function(e,n){if(void 0!==o&&!0===o.noDeprecation)return e;if(void 0===o)return function(){return t.deprecate(e,n).apply(this,arguments)};var i=!1;return function(){if(!i){if(o.throwDeprecation)throw new Error(n);o.traceDeprecation?r.trace(n):r.error(n),i=!0}return e.apply(this,arguments)}};var l={},c=/^$/;if({IFRAME_SECURE_SITE:"v2.5.0-beta.6/elements/index.html",IFRAME_SECURE_ORIGIN:"https://js.skyflow-preview.com"}.NODE_DEBUG){var s={IFRAME_SECURE_SITE:"v2.5.0-beta.6/elements/index.html",IFRAME_SECURE_ORIGIN:"https://js.skyflow-preview.com"}.NODE_DEBUG;s=s.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),c=new RegExp("^"+s+"$","i")}function p(e,n){var o={seen:[],stylize:E};return arguments.length>=3&&(o.depth=arguments[2]),arguments.length>=4&&(o.colors=arguments[3]),m(n)?o.showHidden=n:n&&t._extend(o,n),L(o.showHidden)&&(o.showHidden=!1),L(o.depth)&&(o.depth=2),L(o.colors)&&(o.colors=!1),L(o.customInspect)&&(o.customInspect=!0),o.colors&&(o.stylize=u),d(o,e,o.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,o){if(e.customInspect&&n&&R(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var r=n.inspect(o,e);return O(r)||(r=d(e,r,o)),r}var i=function(e,t){if(L(t))return e.stylize("undefined","undefined");if(O(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(I(t))return e.stylize("null","null")}(e,n);if(i)return i;var a=Object.keys(n),l=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(R(n)){var c=n.name?": "+n.name:"";return e.stylize("[Function"+c+"]","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=["{","}"];(v(n)&&(u=!0,E=["[","]"]),R(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?o<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,o,r){for(var i=[],a=0,l=t.length;a<l;++a)b(t,String(a))?i.push(_(e,t,n,o,String(a),!0)):i.push("");return r.forEach((function(r){r.match(/^\d+$/)||i.push(_(e,t,n,o,r,!0))})),i}(e,n,o,l,a):a.map((function(t){return _(e,n,o,l,t,u)})),e.seen.pop(),function(e,t,n){var o=e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);if(o>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,o,r,i){var a,l,c;if((c=Object.getOwnPropertyDescriptor(t,r)||{value:t[r]}).get?l=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(l=e.stylize("[Setter]","special")),b(o,r)||(a="["+r+"]"),l||(e.seen.indexOf(c.value)<0?(l=I(n)?d(e,c.value,null):d(e,c.value,n-1)).indexOf("\n")>-1&&(l=i?l.split("\n").map((function(e){return" "+e})).join("\n").slice(2):"\n"+l.split("\n").map((function(e){return" "+e})).join("\n")):l=e.stylize("[Circular]","special")),L(a)){if(i&&r.match(/^\d+$/))return l;(a=JSON.stringify(""+r)).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+": "+l}function v(e){return Array.isArray(e)}function m(e){return"boolean"==typeof e}function I(e){return null===e}function y(e){return"number"==typeof e}function O(e){return"string"==typeof e}function L(e){return void 0===e}function N(e){return T(e)&&"[object RegExp]"===A(e)}function T(e){return"object"==typeof e&&null!==e}function g(e){return T(e)&&"[object Date]"===A(e)}function h(e){return T(e)&&("[object Error]"===A(e)||e instanceof Error)}function R(e){return"function"==typeof e}function A(e){return Object.prototype.toString.call(e)}function S(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!l[e])if(c.test(e)){var n=o.pid;l[e]=function(){var o=t.format.apply(t,arguments);r.error("%s %d: %s",e,n,o)}}else l[e]=function(){};return l[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(9032),t.isArray=v,t.isBoolean=m,t.isNull=I,t.isNullOrUndefined=function(e){return null==e},t.isNumber=y,t.isString=O,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=L,t.isRegExp=N,t.types.isRegExp=N,t.isObject=T,t.isDate=g,t.types.isDate=g,t.isError=h,t.types.isNativeError=h,t.isFunction=R,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(1135);var w=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function b(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,n;r.log("%s - %s",(e=new Date,n=[S(e.getHours()),S(e.getMinutes()),S(e.getSeconds())].join(":"),[e.getDate(),w[e.getMonth()],n].join(" ")),t.format.apply(t,arguments))},t.inherits=n(6698),t._extend=function(e,t){if(!t||!T(t))return e;for(var n=Object.keys(t),o=n.length;o--;)e[n[o]]=t[n[o]];return e};var D="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function M(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,o=new Promise((function(e,o){t=e,n=o})),r=[],i=0;i<arguments.length;i++)r.push(arguments[i]);r.push((function(e,o){e?n(e):t(o)}));try{e.apply(this,r)}catch(e){n(e)}return o}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 r=t.pop();if("function"!=typeof r)throw new TypeError("The last argument must be of type Function");var i=this,a=function(){return r.apply(i,arguments)};e.apply(this,t).then((function(e){o.nextTick(a.bind(null,null,e))}),(function(e){o.nextTick(M.bind(null,e,a))}))}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,i(e)),t}},5767:(e,t,n)=>{"use strict";var o=n(2682),r=n(9209),i=n(487),a=n(8075),l=n(5795),c=a("Object.prototype.toString"),s=n(9092)(),p="undefined"==typeof globalThis?n.g:globalThis,u=r(),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};o(u,s&&l&&d?function(e){var t=new p[e];if(Symbol.toStringTag in t){var n=d(t),o=l(n,Symbol.toStringTag);if(!o){var r=d(n);o=l(r,Symbol.toStringTag)}_["$"+e]=i(o.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(c(e),8,-1);return f(u,t)>-1?t:"Object"===t&&function(e){var t=!1;return o(_,(function(n,o){if(!t)try{n(e),t=E(o,1)}catch(e){}})),t}(e)}return l?function(e){var t=!1;return o(_,(function(n,o){if(!t)try{"$"+n(e)===o&&(t=E(o,1))}catch(e){}})),t}(e):null}},4633:(e,t,n)=>{var o=n(3738).default;function r(){"use strict";e.exports=r=function(){return n},e.exports.__esModule=!0,e.exports.default=e.exports;var t,n={},i=Object.prototype,a=i.hasOwnProperty,l=Object.defineProperty||function(e,t,n){e[t]=n.value},c="function"==typeof Symbol?Symbol:{},s=c.iterator||"@@iterator",p=c.asyncIterator||"@@asyncIterator",u=c.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,o){var r=t&&t.prototype instanceof O?t:O,i=Object.create(r.prototype),a=new x(o||[]);return l(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",v="suspendedYield",m="executing",I="completed",y={};function O(){}function L(){}function N(){}var T={};E(T,s,(function(){return this}));var g=Object.getPrototypeOf,h=g&&g(g(C([])));h&&h!==i&&a.call(h,s)&&(T=h);var R=N.prototype=O.prototype=Object.create(T);function A(e){["next","throw","return"].forEach((function(t){E(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(r,i,l,c){var s=f(e[r],e,i);if("throw"!==s.type){var p=s.arg,u=p.value;return u&&"object"==o(u)&&a.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,l,c)}),(function(e){n("throw",e,l,c)})):t.resolve(u).then((function(e){p.value=e,l(p)}),(function(e){return n("throw",e,l,c)}))}c(s.arg)}var r;l(this,"_invoke",{value:function(e,o){function i(){return new t((function(t,r){n(e,o,t,r)}))}return r=r?r.then(i,i):i()}})}function w(e,n,o){var r=_;return function(i,a){if(r===m)throw new Error("Generator is already running");if(r===I){if("throw"===i)throw a;return{value:t,done:!0}}for(o.method=i,o.arg=a;;){var l=o.delegate;if(l){var c=b(l,o);if(c){if(c===y)continue;return c}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(r===_)throw r=I,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);r=m;var s=f(e,n,o);if("normal"===s.type){if(r=o.done?I:v,s.arg===y)continue;return{value:s.arg,done:o.done}}"throw"===s.type&&(r=I,o.method="throw",o.arg=s.arg)}}}function b(e,n){var o=n.method,r=e.iterator[o];if(r===t)return n.delegate=null,"throw"===o&&e.iterator.return&&(n.method="return",n.arg=t,b(e,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),y;var i=f(r,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 M(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function C(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 r=-1,i=function n(){for(;++r<e.length;)if(a.call(e,r))return n.value=e[r],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(o(e)+" is not iterable")}return L.prototype=N,l(R,"constructor",{value:N,configurable:!0}),l(N,"constructor",{value:L,configurable:!0}),L.displayName=E(N,u,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===L||"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(R),e},n.awrap=function(e){return{__await:e}},A(S.prototype),E(S.prototype,p,(function(){return this})),n.AsyncIterator=S,n.async=function(e,t,o,r,i){void 0===i&&(i=Promise);var a=new S(d(e,t,o,r),i);return n.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},A(R),E(R,u,"Generator"),E(R,s,(function(){return this})),E(R,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var t=Object(e),n=[];for(var o in t)n.push(o);return n.reverse(),function e(){for(;n.length;){var o=n.pop();if(o in t)return e.value=o,e.done=!1,e}return e.done=!0,e}},n.values=C,x.prototype={constructor:x,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(M),!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 o(o,r){return l.type="throw",l.arg=e,n.next=o,r&&(n.method="next",n.arg=t),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],l=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var c=a.call(i,"catchLoc"),s=a.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&a.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var r=o;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var i=r?r.completion:{};return i.type=e,i.arg=t,r?(this.method="next",this.next=r.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),M(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 o=n.completion;if("throw"===o.type){var r=o.arg;M(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,o){return this.delegate={iterator:C(e),resultName:n,nextLoc:o},"next"===this.method&&(this.arg=t),y}},n}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},3738: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},4756:(e,t,n)=>{var o=n(4633)();e.exports=o;try{regeneratorRuntime=o}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=o:Function("r","regeneratorRuntime = r")(o)}},9209:(e,t,n)=>{"use strict";var o=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],r="undefined"==typeof globalThis?n.g:globalThis;e.exports=function(){for(var e=[],t=0;t<o.length;t++)"function"==typeof r[o[t]]&&(e[e.length]=o[t]);return e}}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o].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 o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},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 o={};return(()=>{"use strict";n.r(o),n.d(o,{CardMetadata:()=>e.CardMetadata,CardType:()=>_e,CollectContainer:()=>lr,CollectElement:()=>Oo,CollectElementInput:()=>e.CollectElementInput,CollectElementOptions:()=>e.CollectElementOptions,CollectElementUpdateOptions:()=>e.CollectElementUpdateOptions,CollectOptions:()=>e.ICollectOptions,CollectResponse:()=>e.CollectResponse,ComposableContainer:()=>ni,ComposableElement:()=>Ao,ContainerOptions:()=>e.ContainerOptions,ContainerType:()=>Na,DeleteOptions:()=>e.IDeleteOptions,DeleteRecord:()=>e.IDeleteRecord,DeleteRequest:()=>e.IDeleteRecordInput,DeleteResponse:()=>e.DeleteResponse,DetokenizeRecord:()=>e.DetokenizeRecord,DetokenizeRequest:()=>e.IDetokenizeInput,DetokenizeResponse:()=>e.DetokenizeResponse,ElementState:()=>e.ElementState,ElementType:()=>fe,Env:()=>We,ErrorTextStyles:()=>e.ErrorTextStyles,EventName:()=>Ye,GetByIdRequest:()=>e.IGetByIdInput,GetByIdResponse:()=>e.GetByIdResponse,GetOptions:()=>e.IGetOptions,GetRecord:()=>e.IGetRecord,GetRequest:()=>e.IGetInput,GetResponse:()=>e.GetResponse,InputStyles:()=>e.InputStyles,InsertOptions:()=>e.IInsertOptions,InsertRecord:()=>e.IInsertRecord,InsertRequest:()=>e.IInsertRecordInput,InsertResponse:()=>e.InsertResponse,LabelStyles:()=>e.LabelStyles,LogLevel:()=>Be,RedactionType:()=>Fe,RenderFileResponse:()=>e.RenderFileResponse,RevealContainer:()=>Gn,RevealElement:()=>yn,RevealElementInput:()=>t.IRevealElementInput,RevealElementOptions:()=>t.IRevealElementOptions,RevealRecord:()=>e.IRevealRecord,RevealResponse:()=>e.RevealResponse,SkyflowConfig:()=>i.ISkyflow,ThreeDS:()=>pi,ThreeDSBrowserDetails:()=>r.ThreeDSBrowserDetails,UploadFilesResponse:()=>e.UploadFilesResponse,ValidationRule:()=>e.IValidationRule,ValidationRuleType:()=>Ke,default:()=>ka});var e={};n.r(e),n.d(e,{o9:()=>We,Ur:()=>Ye,$b:()=>Be,Go:()=>Xe,eb:()=>Fe,dF:()=>Ge,UL:()=>Ke});var t={};n.r(t),n.d(t,{A:()=>Gn});var r={};n.r(r),n.d(r,{A:()=>pi});var i={};function a(e){return a="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},a(e)}function l(e){var t=function(e,t){if("object"!==a(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==a(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===a(t)?t:String(t)}function c(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 s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(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,l(o.key),o)}}function u(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function E(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function d(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,E(e,t,"set"),n),n}function f(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,E(e,t,"get"))}n.r(i),n.d(i,{K:()=>Na,A:()=>Pa});var _=n(2281),v=n.n(_);function m(){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 I=n.p+"2afb5d11fb02e9292eaf.svg",y=n.p+"5408d9cd30b616684aa0.svg",O=n.p+"a9431336dd9f3e17b880.svg",L=n.p+"9b996d698afd3d404564.svg",N=n.p+"404966085770d8ec21ca.svg",T=n.p+"8062a86943450f142966.svg",g=n.p+"407dfd9c3fd800945b74.svg",h=n.p+"08ad88dee7d4519954ec.svg",R=n.p+"d418de915d45f039ac22.svg",A=n.p+"cbee67fb3d652dad9e25.svg",S=(n.p,n.p,n.p,n.p+"bcd5969a8a86792c2995.svg");const w={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.",INITIALIZE_COMPOSABLE_CLIENT:"%s1 - Initializing Composable container.",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_REVEAL_COMPOSABLE_INPUT:"Reveal composable input is invalid. Please provide a valid input.",NO_ELEMENTS_IN_COLLECT:"Validation error. No elements found in collect container",NO_ELEMENTS_IN_COMPOSABLE:"Validation error. No elements found in composable container",NO_ELEMENTS_IN_REVEAL:"Validation error. No elements found in reveal container",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_MASKING_CHARACTER:"Validation error. Invalid masking character. Specify a valid masking character. ",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.",INVALID_FIELD_SHOW_3DS_CHALLEGNGE:"Invalid field '%s1'. Cannot initiate 3DS Challenge. Verify '%s1'"},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 b,D,M,x,C,P,k,V,U="collect_controller",j="element",F="reveal-composable",G={COLLECT:"COLLECT",REVEAL:"REVEAL",COMPOSE:"COMPOSABLE",REVEAL_COMPOSE:"REVEAL_COMPOSE"},Y={MOUNTED:"MOUNTED",READY:"FRAME_READY"},B="element_type",W="div_id",X="container_name",K=Y,H="events",q="mount_start_time",z="mount_end_time",J="error",Q={SUCCESS:"SUCCESS",INITIALIZED:"INITIALIZED",PARTIAL_RENDER:"PARTIAL_RENDER",FAILED:"FAILED"},Z="INSERT",$="DETOKENIZE",ee="GET_BY_SKYFLOWID",te="GET",ne="DELETE",oe="COLLECT",re="FILE_UPLOAD",ie="REVEAL",ae="RENDER_FILE",le={CHANGE:"CHANGE",READY:"READY",FOCUS:"FOCUS",BLUR:"BLUR",ESCAPE:"ESCAPE",CLICK:"CLICK",ERROR:"ERROR",SUCCESS:"SUCCESS",SUBMIT:"SUBMIT",CREATED:"CREATED",MOUNTED:"MOUNTED",HEIGHT:"HEIGHT"},ce={RENDER_MOUNTED:"RENDER_MOUNTED",HEIGHT_CALLBACK:"HEIGHT_CALLBACK",HEIGHT_CALLBACK_COMPOSABLE:"HEIGHT_CALLBACK_COMPOSABLE",COMPOSABLE_REVEAL:"COMPOSABLE_REVEAL",COLLECT_CALL_REQUESTS:"COLLECT_CALL_REQUESTS",COMPOSABLE_CALL_REQUESTS:"COMPOSABLE_CALL_REQUESTS",COMPOSABLE_CALL_RESPONSE:"COMPOSABLE_CALL_RESPONSE",COMPOSABLE_FILE_CALL_RESPONSE:"COMPOSABLE_FILE_CALL_RESPONSE",COMPOSABLE_CONTAINER:"COMPOSABLE_CONTAINER",REVEAL_CALL_REQUESTS:"REVEAL_CALL_REQUESTS",REVEAL_CALL_RESPONSE:"REVEAL_CALL_RESPONSE",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",SKYFLOW_FRAME_CONTROLLER_READY:"SKYFLOW_FRAME_CONTROLLER_READY",COLLECT_ELEMENT_READY:"COLLECT_ELEMENT_READY"},se="TOKEN",pe="ALT_TEXT",ue="ELEMENT_PROPS",Ee="ELEMENT_MOUNTED",de="ALL_ELEMENTS_MOUNTED",fe=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}({}),_e=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}({}),ve=(c(b={},_e.VISA,"Visa"),c(b,_e.MASTERCARD,"Mastercard"),c(b,_e.AMEX,"Amex"),c(b,_e.DINERS_CLUB,"DinersClub"),c(b,_e.DISCOVER,"Discover"),c(b,_e.JCB,"Jcb"),c(b,_e.MAESTRO,"Maestro"),c(b,_e.UNIONPAY,"Unionpay"),c(b,_e.HIPERCARD,"Hipercard"),c(b,_e.DEFAULT,"Default"),c(b,_e.UNKNOWN,"Unknown"),c(b,_e.CARTES_BANCAIRES,"Cartes Bancaires"),c(D={},_e.AMEX,["XXXX XXXXXX XXXXX",{X:"[0-9]"}]),c(D,_e.VISA,["XXXX XXXX XXXX XXXX",{X:"[0-9]"}]),c(D,_e.MASTERCARD,["XXXX XXXX XXXX XXXX",{X:"[0-9]"}]),c(D,_e.DISCOVER,["XXXX XXXX XXXX XXXX XXX",{X:"[0-9]"}]),c(D,_e.DINERS_CLUB,["XXXX XXXXXX XXXXXX",{X:"[0-9]"}]),c(D,_e.JCB,["XXXX XXXX XXXX XXXX XXX",{X:"[0-9]"}]),c(D,_e.MAESTRO,["XXXX XXXX XXXX XXXX XXX",{X:"[0-9]"}]),c(D,_e.UNIONPAY,["XXXX XXXX XXXX XXXX XXX",{X:"[0-9]"}]),c(D,_e.HIPERCARD,["XXXX XXXX XXXX XXXX XXX",{X:"[0-9]"}]),c(D,_e.DEFAULT,["XXXX XXXX XXXX XXXX XXX",{X:"[0-9]"}]),c(D,_e.UNKNOWN,["XXXX XXXX XXXX XXXX XXX",{X:"[0-9]"}]),D),me=(c(M={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}},fe.CARDHOLDER_NAME,{name:"cardHolderName",attributes:{type:"text",autocomplete:"cc-name"},sensitive:!0,regex:/^([a-zA-Z\\ \\,\\.\\-\\']{2,})$/}),c(M,fe.CARD_NUMBER,{name:"CARD_NUMBER",attributes:{type:"text",autocomplete:"cc-number",inputmode:"numeric"},sensitive:!0,mask:ve[_e.DEFAULT],regex:/$|^[\s]*?([0-9]{2,6}[ -]?){3,5}[\s]*/}),c(M,fe.EXPIRATION_DATE,{name:"EXPIRATION_DATE",attributes:{type:"text",autocomplete:"cc-exp",inputmode:"numeric"},sensitive:!0}),c(M,fe.EXPIRATION_MONTH,{name:"EXPIRATION_MONTH",attributes:{maxLength:2,type:"text",inputmode:"numeric",autocomplete:"cc-exp-month"},sensitive:!0,mask:["XX",{X:"[0-9]"}]}),c(M,fe.EXPIRATION_YEAR,{name:"EXPIRATION_YEAR",attributes:{type:"text",inputmode:"numeric",autocomplete:"cc-exp-year"},sensitive:!0}),c(M,fe.CVV,{name:"CVV",attributes:{type:"text",inputmode:"numeric",maxLength:4},sensitive:!0,regex:/^$|^[0-9]{3,4}$/}),c(M,fe.INPUT_FIELD,{name:"INPUT_FIELD",sensitive:!0,attributes:{type:"text"}}),c(M,fe.PIN,{name:"PIN",attributes:{type:"text",inputmode:"numeric",maxLength:12,minLength:4},sensitive:!0,regex:/^$|^[0-9]{4,12}$/}),c(M,fe.FILE_INPUT,{name:"FILE_INPUT",sensitive:!0,attributes:{type:"file"}}),M),Ie="XXXX-XXXX-XXXX-XXXX",ye={height:"100%",width:"100%",margin:0,padding:0,border:0,position:"absolute",top:0,left:0,"user-select":"none"},Oe={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"},Ne={WEBPACKAUTOFILL:"-webkit-autofill",BASE:"base",FOCUS:"focus",COMPLETE:"complete",EMPTY:"empty",INVALID:"invalid",GLOBAL:"global",REQUIRED_ASTERISK:"requiredAsterisk"},Te=(c({},Ne.BASE,{maxHeight:"100%",maxWidth:"100%"}),c({},Ne.BASE,{"margin-bottom":"4px"}),c({},Ne.BASE,{"margin-bottom":"4px",display:"flex",flexDirection:"column",justifyContent:"space-between"}),c({},Ne.BASE,{marginTop:"4px"}),c(x={},Ne.BASE,{marginBottom:"4px"}),c(x,Ne.REQUIRED_ASTERISK,{display:"inline",color:"red"}),c(C={},_e.VISA,{regex:/^4\d*/,maxCardLength:19,cardLengthRange:[13,16]}),c(C,_e.MASTERCARD,{regex:/^(5[1-5]|222[1-9]|22[3-9]|2[3-6]|27[0-1]|2720)\d*/,maxCardLength:16,cardLengthRange:[16]}),c(C,_e.AMEX,{regex:/^3[47]\d*/,maxCardLength:15,cardLengthRange:[15]}),c(C,_e.DINERS_CLUB,{regex:/^(36|38|30[0-5])\d*/,maxCardLength:16,cardLengthRange:[14,15,16,17,18,19]}),c(C,_e.DISCOVER,{regex:/^(6011|65|64[4-9]|622)\d*/,maxCardLength:16,cardLengthRange:[16,17,18,19]}),c(C,_e.JCB,{regex:/^35\d*/,maxCardLength:19,cardLengthRange:[16,17,18,19]}),c(C,_e.HIPERCARD,{regex:/^606282\d*/,maxCardLength:19,cardLengthRange:[14,15,16,17,18,19]}),c(C,_e.UNIONPAY,{regex:/^62\d*/,maxCardLength:19,cardLengthRange:[16,17,18,19]}),c(C,_e.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]}),C),ge=(c(P={},_e.DEFAULT,I),c(P,_e.AMEX,y),c(P,_e.CARTES_BANCAIRES,S),c(P,_e.DINERS_CLUB,O),c(P,_e.DISCOVER,L),c(P,_e.HIPERCARD,N),c(P,_e.JCB,T),c(P,_e.MAESTRO,g),c(P,_e.MASTERCARD,h),c(P,_e.UNIONPAY,R),c(P,_e.VISA,A),"MM/YY"),he=[ge,"YYYY/MM","YY/MM","MM/YYYY"],Re=["YY","YYYY"],Ae=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}({}),Se=(fe.CARD_NUMBER,fe.EXPIRATION_DATE,fe.EXPIRATION_MONTH,fe.EXPIRATION_YEAR,c(k={},fe.CVV,"Invalid cvv"),c(k,fe.EXPIRATION_DATE,"Invalid expiration date"),c(k,fe.CARD_NUMBER,"Invalid card number"),c(k,fe.CARDHOLDER_NAME,"Invalid cardholder name"),c(k,fe.INPUT_FIELD,w.errorLogs.INVALID_COLLECT_VALUE),c(k,fe.PIN,"Invalid pin"),c(k,fe.EXPIRATION_MONTH,"Invalid expiration month"),c(k,fe.EXPIRATION_YEAR,"Invalid expiration year"),c(k,fe.FILE_INPUT,w.errorLogs.INVALID_COLLECT_VALUE),c(V={},fe.CVV,"cvv is required"),c(V,fe.EXPIRATION_DATE,"expiration date is required"),c(V,fe.CARD_NUMBER,"card number is required"),c(V,fe.CARDHOLDER_NAME,"cardholder name is required"),c(V,fe.INPUT_FIELD,w.errorLogs.DEFAULT_REQUIRED_COLLECT_VALUE),c(V,fe.PIN,"pin is required"),c(V,fe.EXPIRATION_MONTH,"expiration month is required"),c(V,fe.EXPIRATION_YEAR,"expiration year is required"),c(V,fe.FILE_INPUT,w.errorLogs.DEFAULT_REQUIRED_COLLECT_VALUE),[fe.CARDHOLDER_NAME,fe.EXPIRATION_MONTH,fe.FILE_INPUT,fe.PIN,fe.CVV]),we={X:"[0-9]"};function be(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function De(e,t){if(e){if("string"==typeof e)return be(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)?be(e,t):void 0}}function Me(e){return function(e){if(Array.isArray(e))return be(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||De(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 xe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ce(e,t){return Ce=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ce(e,t)}function Pe(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&&Ce(e,t)}function ke(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return xe(e)}function Ve(e){return Ve=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ve(e)}function Ue(e,t,n){return Ue=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 o=[null];o.push.apply(o,t);var r=new(Function.bind.apply(e,o));return n&&Ce(r,n.prototype),r},Ue.apply(null,arguments)}function je(e){var t="function"==typeof Map?new Map:void 0;return je=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,o)}function o(){return Ue(e,arguments,Ve(this).constructor)}return o.prototype=Object.create(e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Ce(o,e)},je(e)}var Fe=function(e){return e.DEFAULT="DEFAULT",e.PLAIN_TEXT="PLAIN_TEXT",e.MASKED="MASKED",e.REDACTED="REDACTED",e}({}),Ge=function(e){return e.GET="GET",e.POST="POST",e.PUT="PUT",e.PATCH="PATCH",e.DELETE="DELETE",e}({}),Ye=function(e){return e.CHANGE="CHANGE",e.READY="READY",e.FOCUS="FOCUS",e.BLUR="BLUR",e.SUBMIT="SUBMIT",e}({}),Be=function(e){return e.WARN="WARN",e.INFO="INFO",e.DEBUG="DEBUG",e.ERROR="ERROR",e}({}),We=function(e){return e.DEV="DEV",e.PROD="PROD",e}({}),Xe=function(e){return e.LOG="LOG",e.WARN="WARN",e.ERROR="ERROR",e}({}),Ke=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 He={INVALID_REVEAL_COMPOSABLE_INPUT:{code:400,description:w.errorLogs.INVALID_REVEAL_COMPOSABLE_INPUT},INVALID_FILE_NAME:{code:400,description:w.errorLogs.INVALID_FILE_NAME},INVALID_FIELD:{code:400,description:w.errorLogs.INVALID_FIELD},VAULTID_IS_REQUIRED:{code:400,description:w.errorLogs.VAULTID_IS_REQUIRED},EMPTY_VAULTID_IN_INIT:{code:400,description:w.errorLogs.EMPTY_VAULTID_IN_INIT},VAULTURL_IS_REQUIRED:{code:400,description:w.errorLogs.VAULTURL_IS_REQUIRED},EMPTY_VAULTURL_IN_INIT:{code:400,description:w.errorLogs.EMPTY_VAULTURL_IN_INIT},INVALID_VAULTURL_IN_INIT:{code:400,description:w.errorLogs.INVALID_VAULTURL_IN_INIT},GET_BEARER_TOKEN_IS_REQUIRED:{code:400,description:w.errorLogs.GET_BEARER_TOKEN_IS_REQUIRED},EMPTY_CONTAINER_TYPE:{code:400,description:w.errorLogs.EMPTY_CONTAINER_TYPE},INVALID_CONTAINER_TYPE:{code:400,description:w.errorLogs.INVALID_CONTAINER_TYPE},UNIQUE_ELEMENT_NAME:{code:400,description:w.errorLogs.UNIQUE_ELEMENT_NAME},ELEMENTS_NOT_MOUNTED:{code:400,description:w.errorLogs.ELEMENTS_NOT_MOUNTED},MISSING_TABLE_IN_COLLECT:{code:400,description:w.errorLogs.MISSING_TABLE_IN_COLLECT},MISSING_SKYFLOWID_KEY_REVEAL:{code:400,description:w.errorLogs.MISSING_SKYFLOWID_KEY_REVEAL},EMPTY_TABLE_IN_COLLECT:{code:400,description:w.errorLogs.EMPTY_TABLE_IN_COLLECT},EMPTY_SKYFLOW_ID_IN_ADDITIONAL_FIELDS:{code:400,description:w.errorLogs.EMPTY_SKYFLOW_ID_IN_ADDITIONAL_FIELDS},EMPTY_SKYFLOW_ID_COLLECT:{code:400,description:w.errorLogs.EMPTY_SKYFLOW_ID_COLLECT},INVALID_TABLE_IN_COLLECT:{code:400,description:w.errorLogs.INVALID_TABLE_IN_COLLECT},INVALID_SKYFLOWID_IN_COLLECT:{code:400,description:w.errorLogs.INVALID_SKYFLOWID_IN_COLLECT},MISSING_COLUMN_IN_COLLECT:{code:400,description:w.errorLogs.MISSING_COLUMN_IN_COLLECT},MISSING_SKYFLOWID_IN_COLLECT:{code:400,description:w.errorLogs.MISSING_SKYFLOWID_IN_COLLECT},EMPTY_COLUMN_IN_COLLECT:{code:400,description:w.errorLogs.EMPTY_TABLE_IN_COLLECT},INVALID_COLUMN_IN_COLLECT:{code:400,description:w.errorLogs.INVALID_COLUMN_IN_COLLECT},CLIENT_CONNECTION:{code:400,description:w.errorLogs.CLIENT_CONNECTION},RECORDS_KEY_NOT_FOUND:{code:404,description:w.errorLogs.RECORDS_KEY_NOT_FOUND},EMPTY_RECORDS_IN_INSERT:{code:400,description:w.errorLogs.EMPTY_RECORDS_IN_INSERT},INVALID_RECORDS_IN_INSERT:{code:404,description:w.errorLogs.INVALID_RECORDS_IN_INSERT},INVALID_TABLE_IN_INSERT:{code:400,description:w.errorLogs.INVALID_TABLE_IN_INSERT},EMPTY_TABLE_IN_INSERT:{code:400,description:w.errorLogs.EMPTY_TABLE_IN_INSERT},MISSING_TABLE_IN_INSERT:{code:400,description:w.errorLogs.MISSING_TABLE_IN_INSERT},EMPTY_FIELDS_IN_INSERT:{code:400,description:w.errorLogs.EMPTY_FIELDS_IN_INSERT},MISSING_FIELDS_IN_INSERT:{code:404,description:w.errorLogs.MISSING_FIELDS_IN_INSERT},INVALID_FIELDS_IN_INSERT:{code:404,description:w.errorLogs.INVALID_FIELDS_IN_INSERT},INVALID_TOKENS_IN_INSERT:{code:404,description:w.errorLogs.INVALID_TOKENS_IN_INSERT},RECORDS_KEY_NOT_FOUND_DETOKENIZE:{code:404,description:w.errorLogs.RECORDS_KEY_NOT_FOUND_DETOKENIZE},EMPTY_RECORDS_DETOKENIZE:{code:400,description:w.errorLogs.EMPTY_RECORDS_DETOKENIZE},INVALID_RECORDS_IN_DETOKENIZE:{code:404,description:w.errorLogs.INVALID_RECORDS_IN_DETOKENIZE},MISSING_TOKEN_IN_DETOKENIZE:{code:400,description:w.errorLogs.MISSING_TOKEN_IN_DETOKENIZE},INVALID_TOKEN_IN_DETOKENIZE:{code:400,description:w.errorLogs.INVALID_TOKEN_IN_DETOKENIZE},RECORDS_KEY_NOT_FOUND_GET:{code:400,description:w.errorLogs.RECORDS_KEY_NOT_FOUND_GET},INVALID_RECORDS_IN_GET:{code:400,description:w.errorLogs.INVALID_RECORDS_IN_GET},EMPTY_RECORDS_GET:{code:400,description:w.errorLogs.EMPTY_RECORDS_GET},MISSING_IDS_IN_GET:{code:400,description:w.errorLogs.MISSING_IDS_IN_GET},INVALID_IDS_IN_GET:{code:400,description:w.errorLogs.INVALID_IDS_IN_GET},INVALID_COLUMN_VALUES_IN_GET:{code:400,description:w.errorLogs.INVALID_COLUMN_VALUES_IN_GET},EMPTY_IDS_IN_GET:{code:400,description:w.errorLogs.EMPTY_IDS_IN_GET},INVALID_SKYFLOWID_TYPE_IN_GET:{code:400,description:w.errorLogs.INVALID_SKYFLOWID_TYPE_IN_GET},MISSING_TABLE_IN_GET:{code:400,description:w.errorLogs.MISSING_TABLE_IN_GET},INVALID_TABLE_IN_GET:{code:400,description:w.errorLogs.INVALID_TABLE_IN_GET},MISSING_REDACTION_IN_GET:{code:400,description:w.errorLogs.MISSING_REDACTION_IN_GET},INVALID_REDACTION_TYPE_IN_GET:{code:400,description:w.errorLogs.INVALID_REDACTION_TYPE_IN_GET},INVALID_TOKENS_IN_GET:{code:400,description:w.errorLogs.INVALID_TOKENS_IN_GET},TOKENS_GET_COLUMN_NOT_SUPPORTED:{code:400,description:w.errorLogs.TOKENS_GET_COLUMN_NOT_SUPPORTED},REDACTION_WITH_TOKENS_NOT_SUPPORTED:{code:400,description:w.errorLogs.REDACTION_WITH_TOKENS_NOT_SUPPORTED},INVALID_REDACTION_TYPE_IN_DETOKENIZE:{code:400,description:w.errorLogs.INVALID_REDACTION_TYPE_IN_DETOKENIZE},INVALID_TOKENS_IN_COLLECT:{code:404,description:w.errorLogs.INVALID_TOKENS_IN_COLLECT},RECORDS_KEY_NOT_FOUND_IN_ADDITIONAL_FIELDS:{code:404,description:w.errorLogs.RECORDS_KEY_NOT_FOUND_IN_ADDITIONAL_FIELDS},INVALID_RECORDS_IN_ADDITIONAL_FIELDS:{code:404,description:w.errorLogs.INVALID_RECORDS_IN_ADDITIONAL_FIELDS},EMPTY_RECORDS_IN_ADDITIONAL_FIELDS:{code:400,description:w.errorLogs.EMPTY_RECORDS_IN_ADDITIONAL_FIELDS},MISSING_TABLE_IN_ADDITIONAL_FIELDS:{code:400,description:w.errorLogs.MISSING_TABLE_IN_ADDITIONAL_FIELDS},INVALID_TABLE_IN_ADDITIONAL_FIELDS:{code:400,description:w.errorLogs.INVALID_TABLE_IN_ADDITIONAL_FIELDS},INVALID_SKYFLOW_ID_IN_ADDITIONAL_FIELDS:{code:400,description:w.errorLogs.INVALID_SKYFLOW_ID_IN_ADDITIONAL_FIELDS},MISSING_FIELDS_IN_ADDITIONAL_FIELDS:{code:400,description:w.errorLogs.MISSING_FIELDS_IN_ADDITIONAL_FIELDS},INVALID_FIELDS_IN_ADDITIONAL_FIELDS:{code:400,description:w.errorLogs.INVALID_FIELDS_IN_ADDITIONAL_FIELDS},RECORDS_KEY_NOT_FOUND_DELETE:{code:400,description:w.errorLogs.RECORDS_KEY_NOT_FOUND_DELETE},EMPTY_RECORDS_IN_DELETE:{code:400,description:w.errorLogs.EMPTY_RECORDS_IN_DELETE},INVALID_RECORDS_IN_DELETE:{code:404,description:w.errorLogs.INVALID_RECORDS_IN_DELETE},INVALID_TABLE_IN_DELETE:{code:400,description:w.errorLogs.INVALID_TABLE_IN_DELETE},EMPTY_TABLE_IN_DELETE:{code:400,description:w.errorLogs.EMPTY_TABLE_IN_DELETE},MISSING_TABLE_IN_DELETE:{code:400,description:w.errorLogs.MISSING_TABLE_IN_DELETE},EMPTY_ID_IN_DELETE:{code:400,description:w.errorLogs.EMPTY_ID_IN_DELETE},MISSING_ID_IN_DELETE:{code:404,description:w.errorLogs.MISSING_ID_IN_DELETE},INVALID_ID_IN_DELETE:{code:404,description:w.errorLogs.INVALID_ID_IN_DELETE},EMPTY_RECORDS_REVEAL:{code:400,description:w.errorLogs.EMPTY_RECORDS_REVEAL},MISSING_TOKEN_KEY_REVEAL:{code:400,description:w.errorLogs.MISSING_TOKEN_KEY_REVEAL},INVALID_TOKEN_ID_REVEAL:{code:400,description:w.errorLogs.INVALID_TOKEN_ID_REVEAL},INVALID_LABEL_REVEAL:{code:400,description:w.errorLogs.INVALID_LABEL_REVEAL},INVALID_ALT_TEXT_REVEAL:{code:400,description:w.errorLogs.INVALID_ALT_TEXT_REVEAL},INVALID_ALT_TEXT_RENDER:{code:400,description:w.errorLogs.INVALID_ALT_TEXT_RENDER},INVALID_FORMAT_REVEAL:{code:400,description:w.errorLogs.INVALID_FORMAT_REVEAL},EMPTY_FORMAT_REVEAL:{code:400,description:w.errorLogs.EMPTY_FORMAT_REVEAL},INVALID_FORMAT_VALUE_REVEAL:{code:400,description:w.errorLogs.INVALID_FORMAT_VALUE_REVEAL},INVALID_REDACTION_TYPE_REVEAL:{code:400,description:w.errorLogs.INVALID_REDACTION_TYPE_REVEAL},EMPTY_TABLE_IN_ADDITIONAL_FIELDS:{code:400,description:w.errorLogs.EMPTY_TABLE_IN_ADDITIONAL_FIELDS},EMPTY_FIELDS_IN_ADDITIONAL_FIELDS:{code:400,description:w.errorLogs.EMPTY_FIELDS_IN_ADDITIONAL_FIELDS},EMPTY_TOKEN_IN_DETOKENIZE:{code:400,description:w.errorLogs.EMPTY_TOKEN_IN_DETOKENIZE},EMPTY_SKYFLOWID_IN_GET:{code:400,description:w.errorLogs.EMPTY_SKYFLOWID_IN_GET},EMPTY_TABLE_IN_GET:{code:400,description:w.errorLogs.EMPTY_TABLE_IN_GET},EMPTY_REDACTION_TYPE_IN_GET:{code:400,description:w.errorLogs.EMPTY_REDACTION_TYPE_IN_GET},EMPTY_TOKEN_ID_REVEAL:{code:400,description:w.errorLogs.EMPTY_TOKEN_ID_REVEAL},DUPLICATE_ELEMENT:{code:400,description:w.errorLogs.DUPLICATE_ELEMENT},DUPLICATE_ELEMENT_ADDITIONAL_FIELDS:{code:400,description:w.errorLogs.DUPLICATE_ELEMENT_ADDITIONAL_FIELDS},MISSING_ELEMENT_TYPE:{code:400,description:w.errorLogs.MISSING_ELEMENT_TYPE},EMPTY_ELEMENT_TYPE:{code:400,description:w.errorLogs.EMPTY_ELEMENT_TYPE},INVALID_ALLOWED_OPTIONS:{code:400,description:w.errorLogs.INVALID_ALLOWED_OPTIONS},EMPTY_ALLOWED_OPTIONS_ARRAY:{code:400,description:w.errorLogs.EMPTY_ALLOWED_OPTIONS_ARRAY},INVALID_ALLOWED_FILETYPE_ARRAY:{code:400,description:w.errorLogs.INVALID_ALLOWED_FILETYPE_ARRAY},INVALID_ELEMENT_TYPE:{code:400,description:w.errorLogs.INVALID_ELEMENT_TYPE},INVALID_ELEMENT_SELECTOR:{code:400,description:w.errorLogs.INVALID_ELEMENT_SELECTOR},FRAME_NOT_FOUND:{code:400,description:w.errorLogs.FRAME_NOT_FOUND},REQUIRED_PARAMS_NOT_PROVIDED:{code:400,description:w.errorLogs.REQUIRED_PARAMS_NOT_PROVIDED},INVALID_RECORD_COLUMN_VALUE:{code:400,description:w.errorLogs.INVALID_RECORD_COLUMN_VALUE},MISSING_RECORD_COLUMN_VALUE:{code:400,description:w.errorLogs.MISSING_RECORD_COLUMN_VALUE},MISSING_RECORD_COLUMN_NAME:{code:400,description:w.errorLogs.MISSING_RECORD_COLUMN_NAME},INVALID_EVENT_TYPE:{code:400,description:w.errorLogs.INVALID_EVENT_TYPE},INVALID_EVENT_LISTENER:{code:400,description:w.errorLogs.INVALID_EVENT_LISTENER},MISSING_HANDLER_IN_EVENT_LISTENER:{code:400,description:w.errorLogs.MISSING_HANDLER_IN_EVENT_LISTENER},INVALID_HANDLER_IN_EVENT_LISTENER:{code:400,description:w.errorLogs.INVALID_HANDLER_IN_EVENT_LISTENER},UNKNOWN_ERROR:{code:400,description:w.errorLogs.UNKNOWN_ERROR},CONNECTION_ERROR:{code:400,description:w.errorLogs.CONNECTION_ERROR},NETWORK_ERROR:{code:500,description:w.errorLogs.NETWORK_ERROR},COMPLETE_AND_VALID_INPUTS:{code:400,description:w.errorLogs.COMPLETE_AND_VALID_INPUTS},INVALID_VALIDATIONS_TYPE:{code:400,description:w.errorLogs.INVALID_VALIDATIONS_TYPE},MISSING_VALIDATION_RULE_TYPE:{code:400,description:w.errorLogs.MISSING_VALIDATION_RULE_TYPE},INVALID_VALIDATION_RULE_TYPE:{code:400,description:w.errorLogs.INVALID_VALIDATION_RULE_TYPE},MISSING_VALIDATION_RULE_PARAMS:{code:400,description:w.errorLogs.MISSING_VALIDATION_RULE_PARAMS},INVALID_VALIDATION_RULE_PARAMS:{code:400,description:w.errorLogs.INVALID_VALIDATION_RULE_PARAMS},MISSING_REGEX_IN_REGEX_MATCH_RULE:{code:400,description:w.errorLogs.MISSING_REGEX_IN_REGEX_MATCH_RULE},INVALID_REGEX_IN_REGEX_MATCH_RULE:{code:400,description:w.errorLogs.INVALID_REGEX_IN_REGEX_MATCH_RULE},MISSING_MIN_AND_MAX_IN_LENGTH_MATCH_RULE:{code:400,description:w.errorLogs.MISSING_MIN_AND_MAX_IN_LENGTH_MATCH_RULE},MISSING_ELEMENT_IN_ELEMENT_MATCH_RULE:{code:400,description:w.errorLogs.MISSING_ELEMENT_IN_ELEMENT_MATCH_RULE},INVALID_ELEMENT_IN_ELEMENT_MATCH_RULE:{code:400,description:w.errorLogs.INVALID_ELEMENT_IN_ELEMENT_MATCH_RULE},ELEMENT_NOT_MOUNTED_IN_ELEMENT_MATCH_RULE:{code:400,description:w.errorLogs.ELEMENT_NOT_MOUNTED_IN_ELEMENT_MATCH_RULE},EMPTY_ELEMENT_IN_MOUNT:{code:400,description:w.errorLogs.EMPTY_ELEMENT_IN_MOUNT},REVEAL_ELEMENT_ERROR_STATE:{code:400,description:w.errorLogs.REVEAL_ELEMENT_ERROR_STATE},INVALID_FILE_TYPE:{code:400,description:w.errorLogs.INVALID_FILE_TYPE},INVALID_FILE_SIZE:{code:400,description:w.errorLogs.INVALID_FILE_SIZE},NO_FILE_SELECTED:{code:400,description:w.errorLogs.NO_FILE_SELECTED},INVALID_TABLE_IN_UPSERT_OPTION:{code:400,description:w.errorLogs.INVALID_TABLE_IN_UPSERT_OPTION},INVALID_COLUMN_IN_UPSERT_OPTION:{code:400,description:w.errorLogs.INVALID_COLUMN_IN_UPSERT_OPTION},INVALID_UPSERT_OPTION_TYPE:{code:400,description:w.errorLogs.INVALID_UPSERT_OPTION_TYPE},EMPTY_UPSERT_OPTIONS_ARRAY:{code:400,description:w.errorLogs.EMPTY_UPSERT_OPTIONS_ARRAY},INVALID_UPSERT_OPTION_OBJECT_TYPE:{code:400,description:w.errorLogs.INVALID_UPSERT_OPTION_OBJECT_TYPE},MISSING_TABLE_IN_UPSERT_OPTION:{code:400,description:w.errorLogs.MISSING_TABLE_IN_UPSERT_OPTION},MISSING_COLUMN_IN_UPSERT_OPTION:{code:400,description:w.errorLogs.MISSING_COLUMN_IN_UPSERT_OPTION},INVALID_RECORD_COLUMN_VALUE_TYPE:{code:400,description:w.errorLogs.INVALID_RECORD_COLUMN_VALUE_TYPE},INVALID_COLUMN_VALUES_TYPE:{code:400,description:w.errorLogs.INVALID_COLUMN_VALUES_TYPE},EMPTY_RECORD_COLUMN_VALUES:{code:400,description:w.errorLogs.EMPTY_RECORD_COLUMN_VALUES},EMPTY_COLUMN_VALUE:{code:400,description:w.errorLogs.EMPTY_COLUMN_VALUE},MISSING_IDS_OR_COLUMN_VALUES_IN_GET:{code:400,description:w.errorLogs.MISSING_IDS_OR_COLUMN_VALUES_IN_GET},SKYFLOW_IDS_AND_COLUMN_NAME_BOTH_SPECIFIED:{code:400,description:w.errorLogs.SKYFLOW_IDS_AND_COLUMN_NAME_BOTH_SPECIFIED},SKYFLOW_IDS_AND_TOKEN_BOTH_SPECIFIED:{code:400,description:w.errorLogs.SKYFLOW_IDS_AND_TOKEN_BOTH_SPECIFIED},MISSING_TABLE_KEY_REVEAL:{code:400,description:w.errorLogs.MISSING_TABLE_KEY_REVEAL},MISSING_COLUMN_KEY_REVEAL:{code:400,description:w.errorLogs.MISSING_COLUMN_KEY_REVEAL},INVALID_SKYFLOW_ID_REVEAL:{code:400,description:w.errorLogs.INVALID_SKYFLOW_ID_REVEAL},INVALID_TABLE_REVEAL:{code:400,description:w.errorLogs.INVALID_TABLE_REVEAL},INVALID_COLUMN_NAME_REVEAL:{code:400,description:w.errorLogs.INVALID_COLUMN_NAME_REVEAL},EMPTY_SKYFLOW_ID_REVEAL:{code:400,description:w.errorLogs.EMPTY_SKYFLOW_ID_REVEAL},EMPTY_TABLE_REVEAL:{code:400,description:w.errorLogs.EMPTY_TABLE_REVEAL},EMPTY_COLUMN_NAME_REVEAL:{code:400,description:w.errorLogs.EMPTY_COLUMN_NAME_REVEAL},RECORDS_KEY_NOT_FOUND_GETBYID:{code:400,description:w.errorLogs.RECORDS_KEY_NOT_FOUND_GETBYID},INVALID_RECORDS_IN_GETBYID:{code:400,description:w.errorLogs.INVALID_RECORDS_IN_GETBYID},EMPTY_RECORDS_GETBYID:{code:400,description:w.errorLogs.EMPTY_RECORDS_GETBYID},MISSING_IDS_IN_GETBYID:{code:400,description:w.errorLogs.MISSING_IDS_IN_GETBYID},INVALID_IDS_IN_GETBYID:{code:400,description:w.errorLogs.INVALID_IDS_IN_GETBYID},EMPTY_IDS_IN_GETBYID:{code:400,description:w.errorLogs.EMPTY_IDS_IN_GETBYID},INVALID_SKYFLOWID_TYPE_IN_GETBYID:{code:400,description:w.errorLogs.INVALID_SKYFLOWID_TYPE_IN_GETBYID},MISSING_TABLE_IN_GETBYID:{code:400,description:w.errorLogs.MISSING_TABLE_IN_GETBYID},INVALID_TABLE_IN_GETBYID:{code:400,description:w.errorLogs.INVALID_TABLE_IN_GETBYID},MISSING_REDACTION_IN_GETBYID:{code:400,description:w.errorLogs.MISSING_REDACTION_IN_GETBYID},INVALID_REDACTION_TYPE_IN_GETBYID:{code:400,description:w.errorLogs.INVALID_REDACTION_TYPE_IN_GETBYID},EMPTY_SKYFLOWID_IN_GETBYID:{code:400,description:w.errorLogs.EMPTY_SKYFLOWID_IN_GETBYID},EMPTY_TABLE_IN_GETBYID:{code:400,description:w.errorLogs.EMPTY_TABLE_IN_GETBYID},EMPTY_REDACTION_TYPE_IN_GETBYID:{code:400,description:w.errorLogs.EMPTY_REDACTION_TYPE_IN_GETBYID},MISSING_COMPOSABLE_LAYOUT_KEY:{code:400,description:w.errorLogs.MISSING_COMPOSABLE_LAYOUT_KEY},EMPTY_COMPOSABLE_LAYOUT_ARRAY:{code:400,description:w.errorLogs.EMPTY_COMPOSABLE_LAYOUT_ARRAY},INVALID_COMPOSABLE_LAYOUT_TYPE:{code:400,description:w.errorLogs.INVALID_COMPOSABLE_LAYOUT_TYPE},NEGATIVE_VALUES_COMPOSABLE_LAYOUT:{code:400,description:w.errorLogs.NEGATIVE_VALUES_COMPOSABLE_LAYOUT},MISMATCH_ELEMENT_COUNT_LAYOUT_SUM:{code:400,description:w.errorLogs.MISMATCH_ELEMENT_COUNT_LAYOUT_SUM},MISSING_COMPOSABLE_CONTAINER_OPTIONS:{code:400,description:w.errorLogs.MISSING_COMPOSABLE_CONTAINER_OPTIONS},INVALID_COMPOSABLE_CONTAINER_OPTIONS:{code:400,description:w.errorLogs.INVALID_COMPOSABLE_CONTAINER_OPTIONS},COMPOSABLE_CONTAINER_NOT_MOUNTED:{code:400,description:w.errorLogs.COMPOSABLE_CONTAINER_NOT_MOUNTED},INVALID_BOOLEAN_OPTIONS:{code:400,description:w.errorLogs.INVALID_BOOLEAN_OPTIONS},INVALID_MASKING_CHARACTER:{code:400,description:w.errorLogs.INVALID_MASKING_CHARACTER},EMPTY_COLLECT_CUSTOM_FORMAT:{code:400,description:w.errorLogs.EMPTY_COLLECT_CUSTOM_FORMAT},INVALID_INPUT_OPTIONS_FORMAT:{code:400,description:w.errorLogs.INVALID_INPUT_OPTIONS_FORMAT},INVALID_INPUT_OPTIONS_TRANSLATION:{code:400,description:w.errorLogs.INVALID_INPUT_OPTIONS_TRANSLATION},INVALID_OPTION_CARD_METADATA:{code:400,description:w.errorLogs.INVALID_OPTION_CARD_METADATA},INVALID_OPTION_CARD_SCHEME:{code:400,description:w.errorLogs.INVALID_OPTION_CARD_SCHEME},INVALID_FIELD_SHOW_3DS_CHALLEGNGE:{code:400,description:w.errorLogs.INVALID_FIELD_SHOW_3DS_CHALLEGNGE},NO_ELEMENTS_IN_COLLECT:{code:400,description:w.errorLogs.NO_ELEMENTS_IN_COLLECT},NO_ELEMENTS_IN_COMPOSABLE:{code:400,description:w.errorLogs.NO_ELEMENTS_IN_COMPOSABLE},NO_ELEMENTS_IN_REVEAL:{code:400,description:w.errorLogs.NO_ELEMENTS_IN_REVEAL}};function qe(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 o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(e,t)||De(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 ze=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(/[\s-]/g,""),t=_e.DEFAULT;return Object.entries(Te).forEach((function(n){var o=qe(n,2),r=o[0];o[1].regex.test(e)&&(t=r)})),t},Je=function(e,t){if(!e||!Object.prototype.hasOwnProperty.call(e,"records"))throw new Rt(He.RECORDS_KEY_NOT_FOUND,[],!0);var n=e.records;if(!n||!Array.isArray(n))throw new Rt(He.INVALID_RECORDS_IN_INSERT,[],!0);if(0===n.length)throw new Rt(He.EMPTY_RECORDS_IN_INSERT,[],!0);if(n.forEach((function(e,t){if(!e||!Object.prototype.hasOwnProperty.call(e,"table"))throw new Rt(He.MISSING_TABLE_IN_INSERT,["".concat(t)],!0);if(!e.table)throw new Rt(He.EMPTY_TABLE_IN_INSERT,["".concat(t)],!0);if(!("string"==typeof e.table||e.table instanceof String))throw new Rt(He.INVALID_TABLE_IN_INSERT,["".concat(t)],!0);if(!Object.prototype.hasOwnProperty.call(e,"fields"))throw new Rt(He.MISSING_FIELDS_IN_INSERT,["".concat(t)],!0);if(!e.fields)throw new Rt(He.EMPTY_FIELDS_IN_INSERT,["".concat(t)],!0);if("object"!==a(e.fields)||Array.isArray(e.fields))throw new Rt(He.INVALID_FIELDS_IN_INSERT,["".concat(t)],!0)})),t&&t.tokens&&"boolean"!=typeof t.tokens)throw new Rt(He.INVALID_TOKENS_IN_INSERT,[],!0)},Qe=function(e){if(!e||!Object.prototype.hasOwnProperty.call(e,"records"))throw new Rt(He.RECORDS_KEY_NOT_FOUND_IN_ADDITIONAL_FIELDS,[],!0);var t=e.records;if(!t||!Array.isArray(t))throw new Rt(He.INVALID_RECORDS_IN_ADDITIONAL_FIELDS,[],!0);if(0===t.length)throw new Rt(He.EMPTY_RECORDS_IN_ADDITIONAL_FIELDS,[],!0);t.forEach((function(e,t){var n;if(!e||!Object.prototype.hasOwnProperty.call(e,"table"))throw new Rt(He.MISSING_TABLE_IN_ADDITIONAL_FIELDS,["".concat(t)],!0);if(!e.table)throw new Rt(He.EMPTY_TABLE_IN_ADDITIONAL_FIELDS,["".concat(t)],!0);if(void 0!==(null===(n=e.fields)||void 0===n?void 0:n.skyflowID)){var o,r,i;if(null===(o=e.fields)||void 0===o||!o.skyflowID)throw new Rt(He.EMPTY_SKYFLOW_ID_IN_ADDITIONAL_FIELDS,["".concat(t)],!0);if(!("string"==typeof(null===(r=e.fields)||void 0===r?void 0:r.skyflowID)||(null===(i=e.fields)||void 0===i?void 0:i.skyflowID)instanceof String))throw new Rt(He.INVALID_SKYFLOW_ID_IN_ADDITIONAL_FIELDS,["".concat(t)],!0)}if(!("string"==typeof e.table||e.table instanceof String))throw new Rt(He.INVALID_TABLE_IN_ADDITIONAL_FIELDS,["".concat(t)],!0);if(!Object.prototype.hasOwnProperty.call(e,"fields"))throw new Rt(He.MISSING_FIELDS_IN_ADDITIONAL_FIELDS,["".concat(t)],!0);if(!e.fields)throw new Rt(He.EMPTY_FIELDS_IN_ADDITIONAL_FIELDS,["".concat(t)],!0);if("object"!==a(e.fields)||Array.isArray(e.fields))throw new Rt(He.INVALID_FIELDS_IN_ADDITIONAL_FIELDS,["".concat(t)],!0)}))},Ze=function(e){if(!e||!Object.prototype.hasOwnProperty.call(e,"records"))throw new Rt(He.RECORDS_KEY_NOT_FOUND_DETOKENIZE,[]);var t=e.records;if(!t||!Array.isArray(t))throw new Rt(He.INVALID_RECORDS_IN_DETOKENIZE,[]);if(0===t.length)throw new Rt(He.EMPTY_RECORDS_DETOKENIZE,[]);t.forEach((function(e,t){if(!e||!Object.prototype.hasOwnProperty.call(e,"token"))throw new Rt(He.MISSING_TOKEN_IN_DETOKENIZE,["".concat(t)]);if(!e.token)throw new Rt(He.EMPTY_TOKEN_IN_DETOKENIZE,["".concat(t)]);if(!("string"==typeof e.token||e.token instanceof String))throw new Rt(He.INVALID_TOKEN_IN_DETOKENIZE,["".concat(t)]);var n=e.redaction;if(n&&!Object.values(Fe).includes(n))throw new Rt(He.INVALID_REDACTION_TYPE_IN_DETOKENIZE,["".concat(t)])}))},$e=function(e,t){if(!e||!Object.prototype.hasOwnProperty.call(e,"records"))throw new Rt(He.RECORDS_KEY_NOT_FOUND_GET,[]);var n=e.records;if(!n||!Array.isArray(n))throw new Rt(He.INVALID_RECORDS_IN_GET,[]);if(0===n.length)throw new Rt(He.EMPTY_RECORDS_GET,[]);if(t&&Object.prototype.hasOwnProperty.call(t,"tokens")&&"boolean"!=typeof(null==t?void 0:t.tokens))throw new Rt(He.INVALID_TOKENS_IN_GET,[]);n.forEach((function(e,n){var o,r,i;if(0===Object.keys(e).length)throw new Rt(He.EMPTY_RECORDS_GET,[]);if(0===(null===(o=e.ids)||void 0===o?void 0:o.length))throw new Rt(He.EMPTY_IDS_IN_GET,["".concat(n)]);if(!(null==e.ids||e.ids&&Array.isArray(e.ids)))throw new Rt(He.INVALID_IDS_IN_GET,["".concat(n)]);if(null===(r=e.ids)||void 0===r||r.forEach((function(e){if(!e)throw new Rt(He.EMPTY_SKYFLOWID_IN_GET,["".concat(n)]);if(!("string"==typeof e||e instanceof String))throw new Rt(He.INVALID_SKYFLOWID_TYPE_IN_GET,["".concat(n)])})),!Object.prototype.hasOwnProperty.call(e,"table"))throw new Rt(He.MISSING_TABLE_IN_GET,["".concat(n)]);if(!e.table)throw new Rt(He.EMPTY_TABLE_IN_GET,["".concat(n)]);if(!("string"==typeof e.table||e.table instanceof String))throw new Rt(He.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 Rt(He.MISSING_REDACTION_IN_GET,["".concat(n)]);if(!e.redaction)throw new Rt(He.EMPTY_REDACTION_TYPE_IN_GET,["".concat(n)]);if(!Object.values(Fe).includes(e.redaction))throw new Rt(He.INVALID_REDACTION_TYPE_IN_GET,["".concat(n)])}if(!0===Object.prototype.hasOwnProperty.call(e,"ids")&&!0===Object.prototype.hasOwnProperty.call(e,"columnName"))throw new Rt(He.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 Rt(He.MISSING_RECORD_COLUMN_VALUE,["".concat(n)])}else if(!1===Object.prototype.hasOwnProperty.call(e,"ids")&&!1===Object.prototype.hasOwnProperty.call(e,"columnValues"))throw new Rt(He.MISSING_IDS_OR_COLUMN_VALUES_IN_GET,["".concat(n)]);if(0===(null===(i=e.columnValues)||void 0===i?void 0:i.length))throw new Rt(He.EMPTY_RECORD_COLUMN_VALUES,["".concat(n)]);if(!(null==e.columnValues||e.columnValues&&Array.isArray(e.columnValues)))throw new Rt(He.INVALID_COLUMN_VALUES_IN_GET,["".concat(n)]);if(void 0!==e.columnName&&void 0===e.columnValues)throw new Rt(He.MISSING_RECORD_COLUMN_VALUE,["".concat(n)]);if(void 0===e.columnName&&void 0!==e.columnValues)throw new Rt(He.MISSING_RECORD_COLUMN_NAME,["".concat(n)]);var a=e.columnName;if(null!=a&&"string"!=typeof a)throw new Rt(He.INVALID_RECORD_COLUMN_VALUE,["".concat(n)]);var l=e.columnValues;if(null!=l){if(0===l.length||null===l)throw new Rt(He.EMPTY_RECORD_COLUMN_VALUES,["".concat(n)]);l.forEach((function(e){if(""===e||null===e)throw new Rt(He.EMPTY_COLUMN_VALUE,["".concat(n)]);if("string"!=typeof e)throw new Rt(He.INVALID_RECORD_COLUMN_VALUE_TYPE,["".concat(n)])}))}if(t&&Object.prototype.hasOwnProperty.call(t,"tokens")&&!0===(null==t?void 0:t.tokens)){if(a||l)throw new Rt(He.TOKENS_GET_COLUMN_NOT_SUPPORTED,[]);if(e.redaction)throw new Rt(He.REDACTION_WITH_TOKENS_NOT_SUPPORTED,[])}}))},et=function(e){if(!e||!Object.prototype.hasOwnProperty.call(e,"records"))throw new Rt(He.RECORDS_KEY_NOT_FOUND_GETBYID,[]);var t=e.records;if(!t||!Array.isArray(t))throw new Rt(He.INVALID_RECORDS_IN_GETBYID,[]);if(0===t.length)throw new Rt(He.EMPTY_RECORDS_GETBYID,[]);t.forEach((function(e,t){if(!e||!Object.prototype.hasOwnProperty.call(e,"ids"))throw new Rt(He.MISSING_IDS_IN_GETBYID,["".concat(t)]);if(!e.ids||!Array.isArray(e.ids))throw new Rt(He.INVALID_IDS_IN_GETBYID,["".concat(t)]);if(0===e.ids.length)throw new Rt(He.EMPTY_IDS_IN_GETBYID,["".concat(t)]);if(e.ids.forEach((function(e){if(!e)throw new Rt(He.EMPTY_SKYFLOWID_IN_GETBYID,["".concat(t)]);if(!("string"==typeof e||e instanceof String))throw new Rt(He.INVALID_SKYFLOWID_TYPE_IN_GETBYID,["".concat(t)])})),!Object.prototype.hasOwnProperty.call(e,"table"))throw new Rt(He.MISSING_TABLE_IN_GETBYID,["".concat(t)]);if(!e.table)throw new Rt(He.EMPTY_TABLE_IN_GETBYID,["".concat(t)]);if(!("string"==typeof e.table||e.table instanceof String))throw new Rt(He.INVALID_TABLE_IN_GETBYID,["".concat(t)]);if(!Object.prototype.hasOwnProperty.call(e,"redaction"))throw new Rt(He.MISSING_REDACTION_IN_GETBYID,["".concat(t)]);if(!e.redaction)throw new Rt(He.EMPTY_REDACTION_TYPE_IN_GETBYID,["".concat(t)]);if(!Object.values(Fe).includes(e.redaction))throw new Rt(He.INVALID_REDACTION_TYPE_IN_GETBYID,["".concat(t)])}))},tt=function(e,t){if(!e||!Object.prototype.hasOwnProperty.call(e,"records"))throw new Rt(He.RECORDS_KEY_NOT_FOUND_DELETE,[],!0);var n=e.records;if(!n||!Array.isArray(n))throw new Rt(He.INVALID_RECORDS_IN_DELETE,[],!0);if(0===n.length)throw new Rt(He.EMPTY_RECORDS_IN_DELETE,[],!0);n.forEach((function(e,t){if(!e||!Object.prototype.hasOwnProperty.call(e,"table"))throw new Rt(He.MISSING_TABLE_IN_DELETE,["".concat(t)],!0);if(!e.table)throw new Rt(He.EMPTY_TABLE_IN_DELETE,["".concat(t)],!0);if(!("string"==typeof e.table||e.table instanceof String))throw new Rt(He.INVALID_TABLE_IN_DELETE,["".concat(t)],!0);if(!Object.prototype.hasOwnProperty.call(e,"id"))throw new Rt(He.MISSING_ID_IN_DELETE,["".concat(t)],!0);if(!e.id)throw new Rt(He.EMPTY_ID_IN_DELETE,["".concat(t)],!0);if(!("string"==typeof e.id||e.id instanceof String))throw new Rt(He.INVALID_ID_IN_DELETE,["".concat(t)],!0)}))},nt=function(e){if(0===e.length)throw new Rt(He.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 Rt(He.MISSING_TOKEN_KEY_REVEAL,[]);if(!e.token)throw new Rt(He.EMPTY_TOKEN_ID_REVEAL,[]);if(!("string"==typeof e.token||e.token instanceof String))throw new Rt(He.INVALID_TOKEN_ID_REVEAL,[])}var t=e.redaction;if(t&&!Object.values(Fe).includes(t))throw new Rt(He.INVALID_REDACTION_TYPE_REVEAL,[]);if(Object.prototype.hasOwnProperty.call(e,"label")&&"string"!=typeof e.label)throw new Rt(He.INVALID_LABEL_REVEAL,[]);if(Object.prototype.hasOwnProperty.call(e,"altText")&&"string"!=typeof e.altText)throw new Rt(He.INVALID_ALT_TEXT_REVEAL,[]);if(Object.prototype.hasOwnProperty.call(e,"format")&&"string"!=typeof e.format)throw new Rt(He.INVALID_FORMAT_REVEAL,[]);if(Object.prototype.hasOwnProperty.call(e,"format")&&""===e.format)throw new Rt(He.EMPTY_FORMAT_REVEAL,[])}))},ot=function(e){if(!e||!Object.prototype.hasOwnProperty.call(e,"skyflowID"))throw new Rt(He.MISSING_SKYFLOWID_KEY_REVEAL,[]);if(!e.skyflowID)throw new Rt(He.EMPTY_SKYFLOW_ID_REVEAL,[]);if(Object.prototype.hasOwnProperty.call(e,"skyflowID")&&"string"!=typeof e.skyflowID)throw new Rt(He.INVALID_SKYFLOW_ID_REVEAL,[]);if(Object.prototype.hasOwnProperty.call(e,"skyflowID")&&Object.prototype.hasOwnProperty.call(e,"token"))throw new Rt(He.SKYFLOW_IDS_AND_TOKEN_BOTH_SPECIFIED,[]);if(!e||!Object.prototype.hasOwnProperty.call(e,"column"))throw new Rt(He.MISSING_COLUMN_KEY_REVEAL,[]);if(!e.column)throw new Rt(He.EMPTY_COLUMN_NAME_REVEAL,[]);if(Object.prototype.hasOwnProperty.call(e,"column")&&"string"!=typeof e.column)throw new Rt(He.INVALID_COLUMN_NAME_REVEAL,[]);if(!e||!Object.prototype.hasOwnProperty.call(e,"table"))throw new Rt(He.MISSING_TABLE_KEY_REVEAL,[]);if(!e.table)throw new Rt(He.EMPTY_TABLE_REVEAL,[]);if(Object.prototype.hasOwnProperty.call(e,"table")&&"string"!=typeof e.table)throw new Rt(He.INVALID_TABLE_REVEAL,[]);if(Object.prototype.hasOwnProperty.call(e,"altText")&&"string"!=typeof e.altText)throw new Rt(He.INVALID_ALT_TEXT_RENDER,[])},rt=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},it=function(e){var t=!0;try{new RegExp(e)}catch(e){t=!1}return t},at=function(e){if(!Object.prototype.hasOwnProperty.call(e,"vaultID"))throw new Rt(He.VAULTID_IS_REQUIRED,[],!0);if(!e.vaultID)throw new Rt(He.EMPTY_VAULTID_IN_INIT,[],!0);if(!Object.prototype.hasOwnProperty.call(e,"vaultURL"))throw new Rt(He.VAULTURL_IS_REQUIRED,[],!0);if(!e.vaultURL)throw new Rt(He.EMPTY_VAULTURL_IN_INIT,[],!0);if(e.vaultURL&&!rt(e.vaultURL))throw new Rt(He.INVALID_VAULTURL_IN_INIT,[],!0);if(!Object.prototype.hasOwnProperty.call(e,"getBearerToken"))throw new Rt(He.GET_BEARER_TOKEN_IS_REQUIRED,[],!0)},lt=function(e,t){if(!Object.prototype.hasOwnProperty.call(e,"type"))throw new Rt(He.MISSING_ELEMENT_TYPE,[],!0);if(!e.type)throw new Rt(He.EMPTY_ELEMENT_TYPE,[],!0);if(Object.prototype.hasOwnProperty.call(e,"altText")&&Tt(w.warnLogs.COLLECT_ALT_TEXT_DEPERECATED,Xe.WARN,t),Object.prototype.hasOwnProperty.call(e,"skyflowID")&&"string"!=typeof e.skyflowID)throw new Rt(He.INVALID_SKYFLOWID_IN_COLLECT,[],!0);if(e.type===fe.FILE_INPUT&&!Object.keys(e).includes("skyflowID"))throw new Rt(He.MISSING_SKYFLOWID_IN_COLLECT,[],!0)},ct=function(e){if(!e||!Array.isArray(e))throw new Rt(He.INVALID_UPSERT_OPTION_TYPE,[],!0);if(!e.length)throw new Rt(He.EMPTY_UPSERT_OPTIONS_ARRAY,[],!0);e.forEach((function(e,t){if(!e||"object"!==a(e))throw new Rt(He.INVALID_UPSERT_OPTION_OBJECT_TYPE,[t],!0);if(!Object.prototype.hasOwnProperty.call(e,"table"))throw new Rt(He.MISSING_TABLE_IN_UPSERT_OPTION,[t],!0);if(!e.table||"string"!=typeof e.table||!e.table.length)throw new Rt(He.INVALID_TABLE_IN_UPSERT_OPTION,[t],!0);if(!Object.prototype.hasOwnProperty.call(e,"column"))throw new Rt(He.MISSING_COLUMN_IN_UPSERT_OPTION,[t],!0);if(!e.column||"string"!=typeof e.column||!e.column.length)throw new Rt(He.INVALID_COLUMN_IN_UPSERT_OPTION,[t],!0)}))},st=function(e){if(!e)throw new Rt(He.MISSING_COMPOSABLE_CONTAINER_OPTIONS,[],!0);if("object"!==a(e))throw new Rt(He.INVALID_COMPOSABLE_CONTAINER_OPTIONS,[],!0);if(!Object.prototype.hasOwnProperty.call(e,"layout"))throw new Rt(He.MISSING_COMPOSABLE_LAYOUT_KEY,[],!0);if(!e.layout)throw new Rt(He.INVALID_COMPOSABLE_LAYOUT_TYPE,[],!0);if(!Array.isArray(e.layout))throw new Rt(He.INVALID_COMPOSABLE_LAYOUT_TYPE,[],!0);if(0===e.layout.length)throw new Rt(He.EMPTY_COMPOSABLE_LAYOUT_ARRAY,[],!0);e.layout.forEach((function(e){if("number"!=typeof e)throw new Rt(He.INVALID_COMPOSABLE_LAYOUT_TYPE,[],!0);if(e<0)throw new Rt(He.NEGATIVE_VALUES_COMPOSABLE_LAYOUT,[],!0)}))},pt=function(e){return"boolean"==typeof e},ut=function(e){if(e){if(Object.prototype.hasOwnProperty.call(e,"format")&&"string"!=typeof e.format)throw new Rt(He.INVALID_INPUT_OPTIONS_FORMAT,[],!0);if(Object.prototype.hasOwnProperty.call(e,"translation")&&("object"!==a(e.translation)||"[object Object]"!==Object.prototype.toString.call(e.translation)))throw new Rt(He.INVALID_INPUT_OPTIONS_TRANSLATION,[],!0)}};const Et={IFRAME_SECURE_SITE:"".concat("https://js.skyflow-preview.com","/").concat("v2.5.0-beta.6/elements/index.html"),IFRAME_SECURE_ORIGIN:"https://js.skyflow-preview.com"},dt=JSON.parse('{"name":"skyflow-js","preferGlobal":true,"analyze":false,"version":"2.5.0-beta.6","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.97.1","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 ft(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function _t(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){c(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}n(125).getType;function vt(e){var t=null==e?void 0:e.split(":");return t&&t.length>2?"".concat(t[0],":").concat(t[1],":").concat(t[2]):""}function mt(e,t,n){var o,r,i,a,l,c,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,o=null,r=null;if(/Windows/.test(e))o="Windows",r=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;o="Android",r=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 l,c;o="iOS",r=null!==(l=null===(c=/OS (\d+[._]\d+[._]?\d*)/.exec(e))||void 0===c||null===(c=c[1])||void 0===c?void 0:c.replace(/_/g,"."))&&void 0!==l?l:null}else if(/Mac OS X/.test(e)){var s,p;o="Mac OS X",r=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;o="Linux",r=null!==(u=null===(E=/Linux( \w+)*?\/([\w.]+)/.exec(e))||void 0===E?void 0:E[2])&&void 0!==u?u:null}return{os:o,version:r}}(n.userAgent),E=function(e){var t="",n="";if(-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")){t="Internet Explorer";var o=e.match(/(MSIE|rv:)\s?([\d.]+)/);o&&(n=o[2])}else if(-1!==e.indexOf("Edge")){t="Microsoft Edge";var r=e.match(/Edge\/([\d.]+)/);r&&(n=r[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 l=e.match(/Version\/([\d.]+)/);l&&(n=l[1])}return{browserName:t,browserVersion:n}}(n.userAgent);return{sdk_name_version:p,sdk_client_device_model:(c=n.userAgent,/(ipad|tablet)/gi.test(c)?"tablet":/Mobile|iP(hone|od)|Android|BlackBerry|IEMobile/.test(c)?"mobile":"desktop"),sdk_os_version:null!==(o=n.platform)&&void 0!==o?o:"".concat(null!==(r=u.os)&&void 0!==r?r:""," ").concat(null!==(i=u.version)&&void 0!==i?i:""),sdk_runtime_details:"".concat(null!==(a=E.browserName)&&void 0!==a?a:""," ").concat(null!==(l=E.browserVersion)&&void 0!==l?l:"")}}var It=function(){var e=function(e){var t={sdkName:dt.name,sdkVersion:dt.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"}},yt=n(6763),Ot={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}},Lt={PROD:{doesReturnValue:!1},DEV:{doesReturnValue:!0}},Nt="[Skyflow]",Tt=function(e,t,n){var o=It(),r=o.sdkLanguageAndVersion,i=o.sdkOwner;if(n&&Ot[n]){var a=Ot[n],l=a.showDebugLogs,c=a.showInfoLogs,s=a.showWarnLogs,p=a.showErrorLogs;t===Xe.LOG&&l?yt.log("".concat(Be.DEBUG,": ").concat(Nt," ").concat(e)):t===Xe.LOG&&c?yt.log("".concat(Be.INFO,": ").concat(Nt," ").concat(e)):t===Xe.WARN&&s?yt.warn("".concat(Be.WARN,": ").concat(Nt," ").concat(e)):t===Xe.ERROR&&p&&yt.error("".concat(Be.ERROR,": ").concat(i," ").concat(r," ").concat(e))}},gt=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t[0],r=t.filter((function(e,t){return 0!==t}));return o?o.replace(/%s[0-9]+/g,(function(e){var t=e.replace("%s","")-1;return r[t]})):""};function ht(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=Ve(e);if(t){var r=Ve(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return ke(this,n)}}var Rt=function(e){Pe(n,e);var t=ht(n);function n(e,o){var r,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];s(this,n);var a={code:e.code,description:o&&(null==o?void 0:o.length)>0?gt.apply(void 0,[e.description].concat(Me(o))):e.description};return c(xe(r=t.call(this,a.description)),"error",void 0),c(xe(r),"errors",void 0),i?r.error=a:r.errors=[a],r}return u(n)}(je(Error));function At(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function St(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 wt=new WeakMap,bt=function(){function e(t,n){var o=this;s(this,e),c(this,"config",void 0),St(this,wt,{writable:!0,value:void 0}),c(this,"request",(function(e){return new Promise((function(t,n){var r,i,a=new XMLHttpRequest;if(a){if(a.open(e.requestMethod,e.url),e.headers){var l=mt(dt,f(o,wt),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(Ae.FORMDATA)||a.setRequestHeader(e,s[e])}))}null!==(r=e.headers)&&void 0!==r&&null!==(r=r["content-type"])&&void 0!==r&&r.includes(Ae.FORMURLENCODED)||null!==(i=e.headers)&&void 0!==i&&null!==(i=i["content-type"])&&void 0!==i&&i.includes(Ae.FORMDATA)?a.send(e.body):a.send(JSON.stringify(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?At(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):At(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e.body))),a.onload=function(){var e=a.getAllResponseHeaders().trim().split(/[\r\n]+/),o={};e.forEach((function(e){var t=e.split(": "),n=t.shift()||"",r=t.join(": ");o[n]=r}));var r=o["content-type"],i=o["x-request-id"];if(a.status<200||a.status>=400)if(r&&r.includes("application/json")){var l,c,s,p=JSON.parse(a.response);if(null!==(l=p)&&void 0!==l&&null!==(l=l.error)&&void 0!==l&&l.message)p=i?"".concat(null===(c=p)||void 0===c||null===(c=c.error)||void 0===c?void 0:c.message," - requestId: ").concat(i):null===(s=p)||void 0===s||null===(s=s.error)||void 0===s?void 0:s.message;n(new Rt({code:a.status,description:p},[],!0))}else r&&r.includes("text/plain")?n(new Rt({code:a.status,description:i?"".concat(a.response," - requestId: ").concat(i):a.response},[],!0)):n(new Rt({code:a.status,description:i?"".concat(w.errorLogs.ERROR_OCCURED," - requestId: ").concat(i):w.errorLogs.ERROR_OCCURED},[],!0));r&&r.includes("application/json")&&t(JSON.parse(a.response)),t(a.response)},a.onerror=function(){n(new Rt(He.NETWORK_ERROR,[],!0))}}else n(new Rt(He.CONNECTION_ERROR,[],!0))}))})),this.config=t,d(this,wt,n)}return u(e,[{key:"toJSON",value:function(){return{config:this.config,metaData:f(this,wt)}}}],[{key:"fromJSON",value:function(t){return new e(t.config,t.metaData)}}]),e}();const Dt=bt;const Mt=function(){function e(){s(this,e),c(this,"events",void 0),this.events={}}return u(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 o=n.findIndex((function(e){return e.callback===t}));n.splice(o,1)}}},{key:"_emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var r=this.events[e];r&&r.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 o=e.events[n];if(o&&o.length>0){var r=[];o.forEach((function(e){e.priority&&r.push(e)})),t[n]=r}})),this.events=t}}],[{key:"createChild",value:function(t){t.prototype=Object.create(e.prototype,{constructor:t})}}]),e}();function xt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Ct(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xt(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Pt={src:"about:blank",frameBorder:0,allowtransparency:!0,scrolling:"no",style:"width: 100%;",allow:"clipboard-read; clipboard-write"},kt=function(e,t){Object.keys(t).forEach((function(n){if(Object.prototype.hasOwnProperty.call(t,n)){var o=t[n];null==o?e.removeAttribute(n):e.setAttribute(n,o)}}))};const Vt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=document.createElement("iframe"),n=Ct(Ct({},Pt),e);return Object.assign(t.style,ye),kt(t,n),t.getAttribute("id")||(t.id=t.name),t};var Ut=function(){return Et.IFRAME_SECURE_SITE},jt=function(e,t){Object.keys(t).forEach((function(n){Object.prototype.hasOwnProperty.call(t,n)&&(e.style[n]=t[n])}))};const Ft=u((function e(){s(this,e)}));function Gt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Yt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gt(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Bt={records:[]};function Wt(e,t){var n,o,r,i=mt(dt,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===(o=e.clientJSON)||void 0===o||null===(o=o.config)||void 0===o?void 0:o.vaultURL)||"",events:[],created_at:Date.now(),region:(null===(r=Intl)||void 0===r||null===(r=r.DateTimeFormat())||void 0===r||null===(r=r.resolvedOptions())||void 0===r?void 0:r.timeZone)||"",status:Q.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||""};Bt.records.push(a)}function Xt(e,t,n){Bt.records.forEach((function(o){o.element_id===e&&(t===H||t===B?o[t].push(n):t===z&&o.mount_start_time?(o[t]=n,o.latency=n-o.mount_start_time):o[t]=n)}))}function Kt(e){var t=Bt.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(Y.MOUNTED)})).length>0?t=Q.SUCCESS:e.events.length>0?t=Q.PARTIAL_RENDER:(0===e.events.length||e.error)&&(t=Q.FAILED),t}(n);var o=Yt(Yt({},n),{},{time:Math.floor(Date.now()/1e3)});""!==n.vault_id&&""!==n.vault_url&&v().emit(ce.PUSH_EVENT+n.container_id,{event:o})}}function Ht(e){setTimeout((function(){Kt(e)}),2e4)}var qt=n(6763),zt=u((function e(t,n,o,r){var i=this;s(this,e),c(this,"name",void 0),c(this,"metadata",void 0),c(this,"iframe",void 0),c(this,"container",void 0),c(this,"mount",(function(e,t,n){var o;try{if("string"==typeof e){if(i.container=document.querySelector(e)||void 0,!i.container)throw new Rt(He.INVALID_ELEMENT_SELECTOR,[],!0)}else{if(!(e instanceof HTMLElement))throw new Rt(He.INVALID_ELEMENT_SELECTOR,[],!0);i.container=e}}catch(e){qt.error(e),t&&Xt(t,J,e.message)}kt(i.iframe,{src:"".concat(Ut()).concat(n?"?".concat(btoa(null==n?void 0:n.record)):"")}),null===(o=i.container)||void 0===o||o.appendChild(i.iframe)})),c(this,"setIframeHeight",(function(e){i.iframe.getAttribute("height")!==e&&i.iframe.setAttribute("height","".concat(e,"px"))})),c(this,"unmount",(function(){i.iframe.remove()}));var a=n.clientDomain||"";this.name="".concat(t,":").concat(o,":").concat(r,":").concat(btoa(a)),this.metadata=n,this.iframe=Vt({name:this.name,referrer:a})}));const Jt=u((function e(){s(this,e)}));n(4756);var Qt=function(e,t){var n={};if(e.fields){var o={skyflow_id:e.fields.skyflow_id,column:t};n.success=o}else e.errors&&(n.errors={skyflowId:e.errors.skyflowId,column:e.errors.column,error:e.errors.error});return n};function Zt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function $t(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zt(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function en(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=Ve(e);if(t){var r=Ve(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return ke(this,n)}}function tn(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 nn="RevealElement",on=new WeakMap,rn=new WeakMap,an=new WeakMap,ln=new WeakMap,cn=new WeakMap,sn=new WeakMap,pn=new WeakMap,un=new WeakMap,En=new WeakMap,dn=new WeakMap,fn=new WeakMap,_n=new WeakMap,vn=new WeakMap,mn=new WeakMap,In=function(e){Pe(n,e);var t=en(n);function n(e){var o,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,l=arguments.length>4?arguments[4]:void 0,c=arguments.length>5?arguments[5]:void 0;return s(this,n),tn(xe(o=t.call(this)),on,{writable:!0,value:void 0}),tn(xe(o),rn,{writable:!0,value:void 0}),tn(xe(o),an,{writable:!0,value:void 0}),tn(xe(o),ln,{writable:!0,value:void 0}),tn(xe(o),cn,{writable:!0,value:!1}),tn(xe(o),sn,{writable:!0,value:!1}),tn(xe(o),pn,{writable:!0,value:void 0}),tn(xe(o),un,{writable:!0,value:void 0}),tn(xe(o),En,{writable:!0,value:!1}),tn(xe(o),dn,{writable:!0,value:void 0}),tn(xe(o),fn,{writable:!0,value:void 0}),tn(xe(o),_n,{writable:!0,value:void 0}),tn(xe(o),vn,{writable:!0,value:void 0}),tn(xe(o),mn,{writable:!0,value:!1}),d(xe(o),un,l),d(xe(o),rn,i),d(xe(o),vn,f(xe(o),rn).uuid),d(xe(o),an,$t($t({},e),function(e){var t={};if(e){if(t=_t({},e),Object.prototype.hasOwnProperty.call(t,"enableCopy")&&!pt(t.enableCopy))throw new Rt(He.INVALID_BOOLEAN_OPTIONS,["enableCopy"],!0);if(Object.prototype.hasOwnProperty.call(t,"format")||Object.prototype.hasOwnProperty.call(t,"translation")){var n,o,r=[];t.format&&r.push(t.format),r.push(null),t.translation?r.push(t.translation):t.format&&r.push(we),null===(n=t=_t(_t({},t),3===r.length?{mask:r}:{}))||void 0===n||delete n.format,null===(o=t)||void 0===o||delete o.translation}}return t}(r))),d(xe(o),ln,a.containerId),d(xe(o),En,a.isMounted),d(xe(o),dn,a.eventEmitter),d(xe(o),pn,c),Wt(i,l),Xt(f(xe(o),un),B,G.REVEAL),Xt(f(xe(o),un),X,G.REVEAL),d(xe(o),on,new zt("".concat("reveal",":").concat(btoa(m())),i,f(xe(o),ln),f(xe(o),pn).logLevel)),d(xe(o),_n,""),d(xe(o),fn,!1),d(xe(o),En,!0),d(xe(o),mn,i.skyflowContainer.isControllerFrameReady),v().on(le.HEIGHT+f(xe(o),on).name,(function(e){f(xe(o),on).setIframeHeight(e.height)})),o}return u(n,[{key:"getID",value:function(){return f(this,un)}},{key:"mount",value:function(e){var t,n,o=this;if(!e)throw new Rt(He.EMPTY_ELEMENT_IN_MOUNT,["RevealElement"],!0);Xt(f(this,un),W,e),null!==(t=f(this,rn))&&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=f(this,rn).clientJSON.config)&&void 0!==n&&null!==(n=n.options)&&void 0!==n&&n.trackingKey&&Ht(f(this,un)),d(this,En,!0),f(this,En)&&(f(this,on).mount(e,void 0,{record:JSON.stringify($t($t({},f(this,rn)),{},{record:f(this,an),context:f(this,pn),containerId:f(this,ln)}))}),v().target(Et.IFRAME_SECURE_ORIGIN).on(le.MOUNTED+f(this,on).name,(function(){d(o,cn,!0),f(o,an).skyflowID?(v().emit(Ee+f(o,ln),{skyflowID:f(o,an).skyflowID,containerId:f(o,ln)}),Xt(f(o,un),z,Date.now()),Xt(f(o,un),H,Y.MOUNTED)):(v().emit(Ee+f(o,ln),{id:f(o,an).token,containerId:f(o,ln)}),Xt(f(o,un),z,Date.now()),Xt(f(o,un),H,Y.MOUNTED)),Object.prototype.hasOwnProperty.call(f(o,an),"skyflowID")&&v().emit(le.HEIGHT+f(o,on).name,{},(function(e){f(o,on).setIframeHeight(e.height)}))})),Xt(f(this,un),H,Y.READY),Xt(f(this,un),q,Date.now()))}},{key:"renderFile",value:function(){var e=this;d(this,mn,f(this,rn).skyflowContainer.isControllerFrameReady);var t="";Object.prototype.hasOwnProperty.call(f(this,an),"altText")&&(t=f(this,an).altText),this.setAltText("loading...");var n=f(this,pn).logLevel;return f(this,mn)?new Promise((function(o,r){try{at(f(e,rn).clientJSON.config),Tt(gt(w.infoLogs.VALIDATE_RENDER_RECORDS,nn),Xe.LOG,n),ot(f(e,an)),v().emit(ce.REVEAL_CALL_REQUESTS+f(e,rn).uuid,{type:ae,records:f(e,an),containerId:f(e,ln),iframeName:f(e,on).name},(function(n){n.errors?(Tt(gt(w.errorLogs.FAILED_RENDER),Xe.ERROR,f(e,pn).logLevel),Object.prototype.hasOwnProperty.call(f(e,an),"altText")&&e.setAltText(t),r(Qt(n,f(e,an).column))):(Tt(gt(w.infoLogs.RENDER_SUBMIT_SUCCESS,nn),Xe.LOG,f(e,pn).logLevel),Tt(gt(w.infoLogs.FILE_RENDERED,nn,f(e,an).skyflowID),Xe.LOG,f(e,pn).logLevel),o(Qt(n,f(e,an).column)))})),Tt(gt(w.infoLogs.EMIT_EVENT,nn,ce.RENDER_FILE_REQUEST),Xe.LOG,n)}catch(e){Tt("Error: ".concat(e.message),Xe.ERROR,n),r(e)}})):new Promise((function(o,r){try{at(f(e,rn).clientJSON.config),Tt(gt(w.infoLogs.VALIDATE_RENDER_RECORDS,nn),Xe.LOG,n),ot(f(e,an)),v().target(Et.IFRAME_SECURE_ORIGIN).on(ce.SKYFLOW_FRAME_CONTROLLER_READY+f(e,rn).uuid,(function(){v().emit(ce.REVEAL_CALL_REQUESTS+f(e,rn).uuid,{type:ae,records:f(e,an),containerId:f(e,ln),iframeName:f(e,on).name},(function(n){n.errors?(Tt(gt(w.errorLogs.FAILED_RENDER),Xe.ERROR,f(e,pn).logLevel),Object.prototype.hasOwnProperty.call(f(e,an),"altText")&&e.setAltText(t),r(Qt(n,f(e,an).column))):(Tt(gt(w.infoLogs.RENDER_SUBMIT_SUCCESS,nn),Xe.LOG,f(e,pn).logLevel),Tt(gt(w.infoLogs.FILE_RENDERED,nn,f(e,an).skyflowID),Xe.LOG,f(e,pn).logLevel),o(Qt(n,f(e,an).column)))})),Tt(gt(w.infoLogs.EMIT_EVENT,nn,ce.RENDER_FILE_REQUEST),Xe.LOG,n)})),Tt(gt(w.infoLogs.EMIT_EVENT,nn,ce.RENDER_FILE_REQUEST),Xe.LOG,n)}catch(e){Tt("Error: ".concat(e.message),Xe.ERROR,n),r(e)}}))}},{key:"iframeName",value:function(){return f(this,on).name}},{key:"isMounted",value:function(){return f(this,cn)}},{key:"hasToken",value:function(){return!!f(this,an).token}},{key:"isClientSetError",value:function(){return f(this,sn)}},{key:"getRecordData",value:function(){return f(this,an)}},{key:"setErrorOverride",value:function(e){var t=this;f(this,cn)?v().emit(ce.REVEAL_ELEMENT_SET_ERROR+f(this,on).name,{name:f(this,on).name,isTriggerError:!0,clientErrorText:e}):v().target(Et.IFRAME_SECURE_ORIGIN).on(le.MOUNTED+f(this,on).name,(function(){v().emit(ce.REVEAL_ELEMENT_SET_ERROR+f(t,on).name,{name:f(t,on).name,isTriggerError:!0,clientErrorText:e})})),d(this,sn,!0)}},{key:"setError",value:function(e){var t=this;f(this,cn)?v().emit(ce.REVEAL_ELEMENT_SET_ERROR+f(this,on).name,{name:f(this,on).name,isTriggerError:!0,clientErrorText:e}):v().target(Et.IFRAME_SECURE_ORIGIN).on(le.MOUNTED+f(this,on).name,(function(){d(t,cn,!0),v().emit(ce.REVEAL_ELEMENT_SET_ERROR+f(t,on).name,{name:f(t,on).name,isTriggerError:!0,clientErrorText:e})})),d(this,sn,!0)}},{key:"resetError",value:function(){var e=this;f(this,cn)?v().emit(ce.REVEAL_ELEMENT_SET_ERROR+f(this,on).name,{name:f(this,on).name,isTriggerError:!1}):v().target(Et.IFRAME_SECURE_ORIGIN).on(le.MOUNTED+f(this,on).name,(function(){d(e,cn,!0),v().emit(ce.REVEAL_ELEMENT_SET_ERROR+f(e,on).name,{name:f(e,on).name,isTriggerError:!1})})),d(this,sn,!1)}},{key:"setAltText",value:function(e){var t=this;f(this,cn)?v().emit(ce.REVEAL_ELEMENT_UPDATE_OPTIONS+f(this,on).name,{name:f(this,on).name,updateType:pe,updatedValue:e}):v().target(Et.IFRAME_SECURE_ORIGIN).on(le.MOUNTED+f(this,on).name,(function(){d(t,cn,!0),v().emit(ce.REVEAL_ELEMENT_UPDATE_OPTIONS+f(t,on).name,{name:f(t,on).name,updateType:pe,updatedValue:e})}))}},{key:"clearAltText",value:function(){var e=this;f(this,cn)?v().emit(ce.REVEAL_ELEMENT_UPDATE_OPTIONS+f(this,on).name,{name:f(this,on).name,updateType:pe,updatedValue:null}):v().target(Et.IFRAME_SECURE_ORIGIN).on(le.MOUNTED+f(this,on).name,(function(){d(e,cn,!0),v().emit(ce.REVEAL_ELEMENT_UPDATE_OPTIONS+f(e,on).name,{name:f(e,on).name,updateType:pe,updatedValue:null})}))}},{key:"setToken",value:function(e){var t=this;d(this,an,$t($t({},f(this,an)),{},{token:e})),f(this,cn)?v().emit(ce.REVEAL_ELEMENT_UPDATE_OPTIONS+f(this,on).name,{name:f(this,on).name,updateType:se,updatedValue:e}):v().target(Et.IFRAME_SECURE_ORIGIN).on(le.MOUNTED+f(this,on).name,(function(){d(t,cn,!0),v().emit(ce.REVEAL_ELEMENT_UPDATE_OPTIONS+f(t,on).name,{name:f(t,on).name,updateType:se,updatedValue:e})}))}},{key:"unmount",value:function(){var e;f(this,an).skyflowID&&(d(this,cn,!1),null===(e=f(this,on).container)||void 0===e||e.remove());d(this,cn,!1),f(this,on).unmount()}},{key:"update",value:function(e){var t=this;d(this,an,$t($t({},f(this,an)),e)),f(this,cn)?v().emit(ce.REVEAL_ELEMENT_UPDATE_OPTIONS+f(this,on).name,{name:f(this,on).name,updateType:ue,updatedValue:e}):v().target(Et.IFRAME_SECURE_ORIGIN).on(le.MOUNTED+f(this,on).name,(function(){d(t,cn,!0),v().emit(ce.REVEAL_ELEMENT_UPDATE_OPTIONS+f(t,on).name,{name:f(t,on).name,updateType:ue,updatedValue:e})}))}}]),n}(Jt);const yn=In;function On(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Ln(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){c(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 Nn(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=Ve(e);if(t){var r=Ve(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return ke(this,n)}}function Tn(e,t,n){gn(e,t),t.set(e,n)}function gn(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function hn(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}var Rn="RevealContainer",An=new WeakMap,Sn=new WeakMap,wn=new WeakMap,bn=new WeakMap,Dn=new WeakMap,Mn=new WeakMap,xn=new WeakMap,Cn=new WeakMap,Pn=new WeakMap,kn=new WeakMap,Vn=new WeakMap,Un=new WeakMap,jn=new WeakSet;function Fn(e,t){var n=this;v().emit(ce.REVEAL_CALL_REQUESTS+f(this,bn).uuid,{type:ie,records:f(this,An),containerId:f(this,Dn)},(function(o){d(n,wn,[]),o.error?(Tt(gt(w.errorLogs.FAILED_REVEAL),Xe.ERROR,f(n,Pn).logLevel),t(o.error)):(Tt(gt(w.infoLogs.REVEAL_SUBMIT_SUCCESS,Rn),Xe.LOG,f(n,Pn).logLevel),e(o))}))}const Gn=function(e){Pe(n,e);var t=Nn(n);function n(e,o,r){var i,a,l,p,u,E=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};s(this,n),l=t.call(this),gn(p=xe(l),u=jn),u.add(p),Tn(xe(l),An,{writable:!0,value:[]}),Tn(xe(l),Sn,{writable:!0,value:[]}),Tn(xe(l),wn,{writable:!0,value:[]}),Tn(xe(l),bn,{writable:!0,value:void 0}),Tn(xe(l),Dn,{writable:!0,value:void 0}),Tn(xe(l),Mn,{writable:!0,value:void 0}),Tn(xe(l),xn,{writable:!0,value:!1}),Tn(xe(l),Cn,{writable:!0,value:!1}),Tn(xe(l),Pn,{writable:!0,value:void 0}),Tn(xe(l),kn,{writable:!0,value:void 0}),Tn(xe(l),Vn,{writable:!0,value:void 0}),c(xe(l),"type",Na.REVEAL),Tn(xe(l),Un,{writable:!0,value:!1}),d(xe(l),Un,e.skyflowContainer.isControllerFrameReady),d(xe(l),bn,Ln(Ln({},e),{},{clientJSON:Ln(Ln({},e.clientJSON),{},{config:Ln(Ln({},null===(i=e.clientJSON)||void 0===i?void 0:i.config),{},{options:Ln(Ln({},null===(a=e.clientJSON)||void 0===a||null===(a=a.config)||void 0===a?void 0:a.options),E)})})})),d(xe(l),kn,o),d(xe(l),Dn,m()),d(xe(l),Mn,new Mt),d(xe(l),Pn,r);var _=f(xe(l),bn).clientDomain||"",I=Vt({name:"".concat("reveal_controller",":").concat(f(xe(l),Dn),":").concat(btoa(_)),referrer:_});return kt(I,{src:Ut()}),jt(I,Ln({},Oe)),Tt(gt(w.infoLogs.CREATE_REVEAL_CONTAINER,Rn),Xe.LOG,f(xe(l),Pn).logLevel),v().target(window.location.origin).on(Ee+f(xe(l),Dn),(function(e){e.skyflowID||f(xe(l),wn).push(e);var t=0;f(xe(l),Sn).forEach((function(e){e.getRecordData().skyflowID||(t+=1)})),d(xe(l),Cn,f(xe(l),wn).length===t),f(xe(l),xn)&&f(xe(l),Cn)&&f(xe(l),Mn)._emit(de+f(xe(l),Dn),{containerId:f(xe(l),Dn)})})),l}return u(n,[{key:"create",value:function(e,t){var n=m();ut(t);var o=new yn(e,t,f(this,bn),{containerId:f(this,Dn),isMounted:f(this,Vn),eventEmitter:f(this,Mn)},n,f(this,Pn));return f(this,Sn).push(o),f(this,kn)[n]=o,o}},{key:"reveal",value:function(){var e=this;return d(this,xn,!0),d(this,An,[]),f(this,bn).skyflowContainer.isControllerFrameReady?new Promise((function(t,n){try{if(at(f(e,bn).clientJSON.config),Tt(gt(w.infoLogs.VALIDATE_REVEAL_RECORDS,Rn),Xe.LOG,f(e,Pn).logLevel),f(e,Sn).forEach((function(t){if(t.isClientSetError())throw new Rt(He.REVEAL_ELEMENT_ERROR_STATE);t.getRecordData().skyflowID||f(e,An).push(t.getRecordData())})),0===f(e,An).length)throw new Rt(He.NO_ELEMENTS_IN_REVEAL,[],!0);if(nt(f(e,An)),f(e,Cn))hn(e,jn,Fn).call(e,t,n);else{var o=setTimeout((function(){Tt(w.errorLogs.ELEMENTS_NOT_MOUNTED_REVEAL,Xe.ERROR,f(e,Pn).logLevel),n(new Error(w.errorLogs.ELEMENTS_NOT_MOUNTED_REVEAL))}),1e4);f(e,Mn).on(de+f(e,Dn),(function(){clearTimeout(o),hn(e,jn,Fn).call(e,t,n)}))}}catch(t){Tt("Error: ".concat(t.message),Xe.ERROR,f(e,Pn).logLevel),n(t)}})):new Promise((function(t,n){try{if(at(f(e,bn).clientJSON.config),Tt(gt(w.infoLogs.VALIDATE_REVEAL_RECORDS,Rn),Xe.LOG,f(e,Pn).logLevel),f(e,Sn).forEach((function(t){if(t.isClientSetError())throw new Rt(He.REVEAL_ELEMENT_ERROR_STATE);t.getRecordData().skyflowID||f(e,An).push(t.getRecordData())})),0===f(e,An).length)throw new Rt(He.NO_ELEMENTS_IN_REVEAL,[],!0);if(nt(f(e,An)),f(e,Cn))v().target(Et.IFRAME_SECURE_ORIGIN).on(ce.SKYFLOW_FRAME_CONTROLLER_READY+f(e,bn).uuid,(function(){hn(e,jn,Fn).call(e,t,n)}));else{var o=setTimeout((function(){Tt(w.errorLogs.ELEMENTS_NOT_MOUNTED_REVEAL,Xe.ERROR,f(e,Pn).logLevel),n(new Error(w.errorLogs.ELEMENTS_NOT_MOUNTED_REVEAL))}),1e4);f(e,Mn).on(de+f(e,Dn),(function(){clearTimeout(o),f(e,bn).skyflowContainer.isControllerFrameReady?hn(e,jn,Fn).call(e,t,n):v().target(Et.IFRAME_SECURE_ORIGIN).on(ce.SKYFLOW_FRAME_CONTROLLER_READY+f(e,bn).uuid,(function(){hn(e,jn,Fn).call(e,t,n)}))}))}}catch(t){Tt("Error: ".concat(t.message),Xe.ERROR,f(e,Pn).logLevel),n(t)}}))}}]),n}(Ft);function Yn(e){return JSON.parse(JSON.stringify(e))}function Bn(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}const Wn=function(){function e(){s(this,e),c(this,"listeners",void 0),c(this,"isDestroyed",void 0),this.listeners=[],this.isDestroyed=!1}return u(e,[{key:"on",value:function(e,t){v().on(e,t),this.listeners.push({eventName:e,callback:t})}},{key:"off",value:function(e,t){v().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;v().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){v().off(e.eventName,e.handler)})),this.listeners=[]}}]),e}();var Xn=["name"];function Kn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Hn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kn(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qn(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=Ve(e);if(t){var r=Ve(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return ke(this,n)}}function zn(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 Jn=new WeakMap,Qn=new WeakMap,Zn=new WeakMap,$n=new WeakMap,eo=new WeakMap,to=new WeakMap,no=new WeakMap,oo=new WeakMap,ro=new WeakMap,io=new WeakMap,ao=new WeakMap,lo=new WeakMap,co=new WeakMap,so=new WeakMap,po=new WeakMap,uo=new WeakMap,Eo=new WeakMap,fo=new WeakMap,_o=new WeakMap,vo=new WeakMap,mo=new WeakMap,Io=new WeakMap,yo=function(e){Pe(n,e);var t=qn(n);function n(e,o,r,i){var a,l=arguments.length>4&&void 0!==arguments[4]&&arguments[4],p=arguments.length>5?arguments[5]:void 0,u=arguments.length>6?arguments[6]:void 0,E=arguments.length>7?arguments[7]:void 0,_=arguments.length>8?arguments[8]:void 0;return s(this,n),c(xe(a=t.call(this)),"elementType",void 0),c(xe(a),"type",Na.COLLECT),zn(xe(a),Jn,{writable:!0,value:void 0}),c(xe(a),"containerId",void 0),zn(xe(a),Qn,{writable:!0,value:!1}),zn(xe(a),Zn,{writable:!0,value:void 0}),zn(xe(a),$n,{writable:!0,value:void 0}),c(xe(a),"resizeObserver",void 0),zn(xe(a),eo,{writable:!0,value:{isEmpty:!0,isComplete:!1,isValid:!1,isFocused:!1,value:void 0,isRequired:!1,selectedCardScheme:""}}),zn(xe(a),to,{writable:!0,value:void 0}),zn(xe(a),no,{writable:!0,value:void 0}),zn(xe(a),oo,{writable:!0,value:new Mt}),zn(xe(a),ro,{writable:!0,value:void 0}),zn(xe(a),io,{writable:!0,value:new Wn}),zn(xe(a),ao,{writable:!0,value:void 0}),zn(xe(a),lo,{writable:!0,value:[]}),zn(xe(a),co,{writable:!0,value:!1}),zn(xe(a),so,{writable:!0,value:void 0}),zn(xe(a),po,{writable:!0,value:void 0}),zn(xe(a),uo,{writable:!0,value:!1}),zn(xe(a),Eo,{writable:!0,value:!1}),c(xe(a),"getID",(function(){return f(xe(a),Jn)})),c(xe(a),"mount",(function(e){var t;if(d(xe(a),co,!0),!e)throw new Rt(He.EMPTY_ELEMENT_IN_MOUNT,["CollectElement"],!0);if(a.resizeObserver=new ResizeObserver((function(){f(xe(a),io).emit(le.HEIGHT+f(xe(a),ao).name,{},(function(e){f(xe(a),ao).setIframeHeight(e.height)}))})),Xt(f(xe(a),Jn),W,e),null!==(t=f(xe(a),no))&&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&&f(xe(a),no).clientJSON.config.options.trackingKey&&Ht(f(xe(a),Jn)),"string"==typeof e){var n,o=document.querySelector(e);if(o)null===(n=a.resizeObserver)||void 0===n||n.observe(o)}else if(e instanceof HTMLElement){var r;null===(r=a.resizeObserver)||void 0===r||r.observe(e)}f(xe(a),$n).length>1?(f(xe(a),ao).mount(e,f(xe(a),Jn),{record:JSON.stringify({record:f(xe(a),to),containerId:a.containerId,metaData:f(xe(a),no)})}),f(xe(a),$n).forEach((function(e,t){f(xe(a),ro)&&(f(xe(a),ro)._emit("".concat(le.READY,":").concat(e.elementName),Hn(Hn({},f(xe(a),Zn)[t]),{},{elementType:e.elementType})),Xt(f(xe(a),Jn),H,"".concat(e.elementType,"_").concat(K.READY)))})),Xt(f(xe(a),Jn),q,Date.now())):f(xe(a),uo)&&(f(xe(a),ao).mount(e,f(xe(a),Jn),{record:JSON.stringify({record:f(xe(a),to),containerId:a.containerId,metaData:f(xe(a),no)})}),Xt(f(xe(a),Jn),q,Date.now()))})),c(xe(a),"unmount",(function(){var e;(f(xe(a),ao).unmount(),a.resizeObserver)&&(null===(e=a.resizeObserver)||void 0===e||e.disconnect())})),c(xe(a),"updateElementGroup",(function(e){var t=Yn(e),n=function(){f(xe(a),Qn)&&(t={rows:[{elements:[Hn({},t)]}]}),d(xe(a),to,xo(f(xe(a),to),t)),d(xe(a),$n,Co(f(xe(a),to))),f(xe(a),Qn)?f(xe(a),io).emit(ce.SET_VALUE+vt(f(xe(a),ao).name),{name:f(xe(a),ao).name,options:f(xe(a),$n)[0],isSingleElementAPI:!0}):(f(xe(a),$n).forEach((function(e){f(xe(a),io).emit(ce.SET_VALUE+vt(f(xe(a),ao).name),{name:e.elementName,options:e,isSingleElementAPI:!0})})),f(xe(a),io).emit(ce.SET_VALUE+vt(f(xe(a),ao).name),{name:f(xe(a),ao).name,options:f(xe(a),to),isSingleElementAPI:!1})),f(xe(a),Io).call(xe(a))};f(xe(a),co)?n():f(xe(a),lo).push(n)})),zn(xe(a),fo,{writable:!0,value:function(e){f(xe(a),Qn)||f(xe(a),oo).on(ce.SET_VALUE+vt(f(xe(a),ao).name),(function(){e(f(xe(a),$n))}),!0)}}),c(xe(a),"updateElement",(function(e){f(xe(a),io).emit(ce.SET_VALUE+e.elementName,{name:e.elementName,options:e,isSingleElementAPI:!0})})),c(xe(a),"update",(function(e){d(xe(a),Eo,!0),f(xe(a),co)?(e.validations=Po(e.validations),a.updateElement(Hn({elementName:f(xe(a),to).elementName},e)),d(xe(a),Eo,!1)):f(xe(a),Eo)&&f(xe(a),oo).on("".concat(Ye.READY,":").concat(f(xe(a),Jn)),(function(){e.validations=Po(e.validations),a.updateElement(Hn({elementName:f(xe(a),to).elementName},e)),d(xe(a),co,!0),d(xe(a),Eo,!1)}))})),zn(xe(a),_o,{writable:!0,value:function(){f(xe(a),Zn).forEach((function(e,t){if(0===t){f(xe(a),eo).isEmpty=e.isEmpty,f(xe(a),eo).isComplete=e.isComplete,f(xe(a),eo).isValid=e.isValid,f(xe(a),eo).isFocused=e.isFocused,f(xe(a),eo).isRequired=e.isRequired,f(xe(a),eo).value={},f(xe(a),eo).selectedCardScheme="";var n=f(xe(a),$n)[t].elementName,o=e.value&&function(e,t,n){if("string"!=typeof e)return e;if(t===fe.CARD_NUMBER){if(e=e&&e.replace(/\s/g,""),!n){var o,r=ze(e),i=r!==_e.DEFAULT&&r===_e.AMEX?6:8;return e.length>i?e.replace(new RegExp(".(?=.{0,".concat((null===(o=e)||void 0===o?void 0:o.length)-i-1,"}$)"),"g"),"X"):e}return e}return n?e:void 0}(e.value,e.elementType,f(xe(a),po));f(xe(a),Qn)?f(xe(a),eo).value=o:f(xe(a),eo).value[n]=o}else f(xe(a),eo).isEmpty=f(xe(a),eo).isEmpty||e.isEmpty,f(xe(a),eo).isComplete=f(xe(a),eo).isComplete&&e.isComplete,f(xe(a),eo).isValid=f(xe(a),eo).isValid&&e.isValid,f(xe(a),eo).isFocused=f(xe(a),eo).isFocused||e.isFocused,f(xe(a),eo).isRequired=f(xe(a),eo).isRequired||e.isRequired,f(xe(a),eo).selectedCardScheme=f(xe(a),eo).selectedCardScheme||e.selectedCardScheme,f(xe(a),eo).value||(f(xe(a),eo).value={}),f(xe(a),$n)[t].sensitive||(f(xe(a),eo).value[f(xe(a),$n)[t].elementName]=e.value||"")}))}}),c(xe(a),"getState",(function(){return{isEmpty:f(xe(a),eo).isEmpty,isComplete:f(xe(a),eo).isComplete,isValid:f(xe(a),eo).isValid,isFocused:f(xe(a),eo).isFocused,value:f(xe(a),eo).value,required:f(xe(a),eo).isRequired,selectedCardScheme:""}})),c(xe(a),"getOptions",(function(){var e=Yn(f(xe(a),to));return f(xe(a),Qn)?e=e.rows[0].elements[0]:e.rows.forEach((function(e){e.elements.forEach((function(e){delete e.elementName}))})),delete e.elementName,e})),zn(xe(a),vo,{writable:!0,value:function(e){f(xe(a),oo).on(ce.DESTROY_FRAME,(function(){var t=f(xe(a),$n).map((function(e){return e.elementName}));f(xe(a),Qn)||t.push(f(xe(a),ao).name),e(t)}),!0)}}),zn(xe(a),mo,{writable:!0,value:function(){f(xe(a),io).on(ce.COLLECT_ELEMENT_READY,(function(e){if(e.ready&&e.name===a.iframeName()){var t=f(xe(a),Zn)[0],n=(t.name,Bn(t,Xn));f(xe(a),oo)._emit(le.READY,Hn({},n))}})),f(xe(a),$n).forEach((function(e){f(xe(a),io).on(ce.INPUT_EVENT+e.elementName,(function(e){if(f(xe(a),Qn)&&e.event===le.READY&&e.name===vt(f(xe(a),ao).name))f(xe(a),oo)._emit(le.READY);else{var t=f(xe(a),$n).length>1;f(xe(a),$n).forEach((function(n,o){var r;if(e.name===n.elementName){var i,l="";switch(e.event){case le.FOCUS:l=le.FOCUS;break;case le.BLUR:l=le.BLUR;break;case le.CHANGE:l=le.CHANGE;break;case le.READY:l=le.READY;break;case le.SUBMIT:return void(null===(r=f(xe(a),ro))||void 0===r||r._emit(le.SUBMIT));default:throw new Rt(He.INVALID_EVENT_TYPE,[],!0)}f(xe(a),Zn)[o].isEmpty=e.value.isEmpty,f(xe(a),Zn)[o].isValid=e.value.isValid,f(xe(a),Zn)[o].isComplete=e.value.isComplete,f(xe(a),Zn)[o].isFocused=e.value.isFocused,f(xe(a),Zn)[o].isRequired=e.value.isRequired,f(xe(a),Zn)[o].selectedCardScheme=(null==e||null===(i=e.value)||void 0===i?void 0:i.selectedCardScheme)||"",Object.prototype.hasOwnProperty.call(e.value,"value")?f(xe(a),Zn)[o].value=e.value.value:f(xe(a),Zn)[o].value=void 0,l=t?"".concat(l,":").concat(e.name):l,f(xe(a),io).emit(le.HEIGHT+f(xe(a),ao).name,{},(function(e){f(xe(a),ao).setIframeHeight(e.height)})),f(xe(a),_o).call(xe(a));var c,s=Hn(Hn({},f(xe(a),Zn)[o]),{},{elementType:n.elementType});if(t)null===(c=f(xe(a),ro))||void 0===c||c._emit(le.HEIGHT,{iframeName:f(xe(a),ao).name});t&&f(xe(a),ro)?f(xe(a),ro)._emit(l,s):f(xe(a),oo)._emit(l,s)}}))}}))}))}}),zn(xe(a),Io,{writable:!0,value:function(){f(xe(a),to).rows.forEach((function(e){e.elements.forEach((function(e){e.elementType!==me.radio.name&&e.elementType!==me.checkbox.name&&(e.value=void 0)}))})),d(xe(a),$n,Co(f(xe(a),to)))}}),a.containerId=i.containerId,d(xe(a),Jn,e),d(xe(a),so,E),d(xe(a),no,r),d(xe(a),to,xo(o)),d(xe(a),$n,Co(o)),d(xe(a),Qn,l),a.resizeObserver=null,_&&d(xe(a),ro,_),d(xe(a),po,Lt[f(xe(a),so).env].doesReturnValue),a.elementType=f(xe(a),Qn)?f(xe(a),$n)[0].elementType:"group",Wt(r,e),d(xe(a),Zn,[]),f(xe(a),$n).forEach((function(e){Xt(f(xe(a),Jn),B,e.elementType),f(xe(a),Zn).push({isEmpty:!0,isComplete:!1,isValid:!e.required&&f(xe(a),eo).isEmpty,isFocused:!1,value:f(xe(a),po)?"":void 0,elementType:e.elementType,name:e.elementName,isRequired:e.required,selectedCardScheme:""})})),f(xe(a),$n)&&f(xe(a),$n).length&&f(xe(a),$n).length>1?Xt(f(xe(a),Jn),X,G.COMPOSE):Xt(f(xe(a),Jn),X,G.COLLECT),d(xe(a),ao,new zt(f(xe(a),to).elementName,r,a.containerId,f(xe(a),so).logLevel)),f(xe(a),mo).call(xe(a)),f(xe(a),vo).call(xe(a),p),f(xe(a),fo).call(xe(a),u),Tt(gt(w.infoLogs.CREATED_ELEMENT,"Element",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}(f(xe(a),ao).name)),Xe.LOG,f(xe(a),so).logLevel),d(xe(a),uo,i.isMounted),i.type===Na.COMPOSABLE&&(window.addEventListener("message",(function(e){e.data.type===ce.HEIGHT_CALLBACK+f(xe(a),ao).name&&f(xe(a),ao).setIframeHeight(e.data.data.height)})),f(xe(a),$n).forEach((function(e){window.addEventListener("message",(function(t){t.data.type===le.MOUNTED+vt(e.elementName)&&(e.isMounted=!0,d(xe(a),co,!0))}))}))),f(xe(a),io).on(le.MOUNTED+vt(f(xe(a),ao).name),(function(e){e.name===f(xe(a),$n)[0].elementName&&(Xt(f(xe(a),Jn),z,Date.now()),Xt(f(xe(a),Jn),H,Y.MOUNTED),f(xe(a),$n)[0].isMounted=!0,d(xe(a),co,!0),f(xe(a),io).emit(le.HEIGHT+f(xe(a),ao).name,{},(function(e){f(xe(a),ao).setIframeHeight(e.height)})))})),a}return u(n,[{key:"on",value:function(e,t){if(!Object.values(le).includes(e))throw new Rt(He.INVALID_EVENT_LISTENER,[],!0);if(!t)throw new Rt(He.MISSING_HANDLER_IN_EVENT_LISTENER,[],!0);if("function"!=typeof t)throw new Rt(He.INVALID_HANDLER_IN_EVENT_LISTENER,[],!0);f(this,oo).on(e,(function(e){void 0===e.value&&(e.value=""),e.elementType!==fe.CARD_NUMBER&&delete e.selectedCardScheme,delete e.isComplete,delete e.name,t(e)})),e===le.READY&&f(this,io).emit(ce.COLLECT_ELEMENT_READY,{ready:f(this,uo),name:this.iframeName()})}},{key:"iframeName",value:function(){return f(this,ao).name}},{key:"isMounted",value:function(){return f(this,co)}},{key:"isUpdateCalled",value:function(){return f(this,Eo)}},{key:"isValidElement",value:function(){for(var e=0;e<f(this,$n).length;e+=1){if(!Object.prototype.hasOwnProperty.call(f(this,$n)[e],"table"))throw new Rt(He.MISSING_TABLE_IN_COLLECT,[],!0);if(!f(this,$n)[e].table)throw new Rt(He.EMPTY_TABLE_IN_COLLECT,[],!0);if(!("string"==typeof f(this,$n)[e].table||f(this,$n)[e].table instanceof String))throw new Rt(He.INVALID_TABLE_IN_COLLECT,[],!0);if(!Object.prototype.hasOwnProperty.call(f(this,$n)[e],"column"))throw new Rt(He.MISSING_COLUMN_IN_COLLECT,[],!0);if(!f(this,$n)[e].column)throw new Rt(He.EMPTY_COLUMN_IN_COLLECT,[],!0);if(!("string"==typeof f(this,$n)[e].column||f(this,$n)[e].column instanceof String))throw new Rt(He.INVALID_COLUMN_IN_COLLECT,[],!0);if(void 0!==f(this,$n)[e].skyflowID&&!f(this,$n)[e].skyflowID)throw new Rt(He.EMPTY_SKYFLOW_ID_COLLECT,[],!0)}return!0}},{key:"setErrorOverride",value:function(e){f(this,io).emit(ce.COLLECT_ELEMENT_SET_ERROR_OVERRIDE+vt(f(this,ao).name),{name:vt(f(this,ao).name),customErrorText:e})}},{key:"setError",value:function(e){f(this,io).emit(ce.COLLECT_ELEMENT_SET_ERROR+vt(f(this,ao).name),{name:vt(f(this,ao).name),isTriggerError:!0,clientErrorText:e})}},{key:"resetError",value:function(){f(this,io).emit(ce.COLLECT_ELEMENT_SET_ERROR+vt(f(this,ao).name),{name:vt(f(this,ao).name),isTriggerError:!1})}},{key:"setValue",value:function(e){f(this,so).env!==We.PROD?f(this,Qn)&&f(this,io).emit(ce.SET_VALUE+vt(f(this,ao).name),{name:f(this,ao).name,options:Hn(Hn({},f(this,$n)[0]),{},{value:e},f(this,to)),isSingleElementAPI:!0}):Tt(gt(w.warnLogs.UNABLE_TO_SET_VALUE_IN_PROD_ENV,f(this,$n)[0].elementType),Xe.WARN,f(this,so).logLevel)}},{key:"clearValue",value:function(){f(this,so).env!==We.PROD?f(this,Qn)&&f(this,io).emit(ce.SET_VALUE+vt(f(this,ao).name),{name:f(this,ao).name,options:Hn(Hn({},f(this,$n)[0]),{},{value:""}),isSingleElementAPI:!0}):Tt(gt(w.warnLogs.UNABLE_TO_CLEAR_VALUE_IN_PROD_ENV,f(this,$n)[0].elementType),Xe.WARN,f(this,so).logLevel)}}]),n}(Jt);const Oo=yo;function Lo(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 No=new WeakMap,To=new WeakMap,go=new WeakMap,ho=new WeakMap,Ro=new WeakMap;const Ao=function(){function e(t,n,o){var r=this;s(this,e),Lo(this,No,{writable:!0,value:void 0}),Lo(this,To,{writable:!0,value:void 0}),Lo(this,go,{writable:!0,value:void 0}),c(this,"type",Na.COMPOSABLE),Lo(this,ho,{writable:!0,value:!1}),Lo(this,Ro,{writable:!0,value:!1}),c(this,"update",(function(e){d(r,Ro,!0),f(r,ho)?(e.validations=Po(e.validations),f(r,To)._emit(ce.COMPOSABLE_UPDATE_OPTIONS,{elementName:f(r,No),elementOptions:e}),d(r,Ro,!1)):f(r,Ro)&&f(r,To).on("".concat(Ye.READY,":").concat(f(r,No)),(function(){e.validations=Po(e.validations),f(r,To)._emit(ce.COMPOSABLE_UPDATE_OPTIONS,{elementName:f(r,No),elementOptions:e}),d(r,ho,!0),d(r,Ro,!1)}))})),d(this,No,t),d(this,go,o),d(this,To,n),f(this,To).on("".concat(Ye.READY,":").concat(f(this,No)),(function(){d(r,ho,!0)}))}return u(e,[{key:"on",value:function(e,t){if(!Object.values(le).includes(e))throw new Rt(He.INVALID_EVENT_LISTENER,[],!0);if(!t)throw new Rt(He.MISSING_HANDLER_IN_EVENT_LISTENER,[],!0);if("function"!=typeof t)throw new Rt(He.INVALID_HANDLER_IN_EVENT_LISTENER,[],!0);f(this,To).on("".concat(e,":").concat(f(this,No)),(function(e){void 0===e.value&&(e.value=""),e.elementType!==fe.CARD_NUMBER&&delete e.selectedCardScheme,delete e.isComplete,delete e.name,t(e)}))}},{key:"iframeName",value:function(){return f(this,go)}},{key:"getID",value:function(){return f(this,No)}}]),e}();function So(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function wo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?So(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):So(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Do(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bo(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Mo(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("group"!==e&&!Object.prototype.hasOwnProperty.call(me,e))throw new Rt(He.INVALID_ELEMENT_TYPE,[],!0);if(Object.prototype.hasOwnProperty.call(t,"validations")){if(!Array.isArray(t.validations))throw new Rt(He.INVALID_VALIDATIONS_TYPE,[],!0);t.validations.forEach((function(e,t){if(!Object.prototype.hasOwnProperty.call(e,"type"))throw new Rt(He.MISSING_VALIDATION_RULE_TYPE,["".concat(t)],!0);if(!Object.values(Ke).includes(e.type))throw new Rt(He.INVALID_VALIDATION_RULE_TYPE,["".concat(t)],!0);if(!Object.prototype.hasOwnProperty.call(e,"params"))throw new Rt(He.MISSING_VALIDATION_RULE_PARAMS,["".concat(t)],!0);if("object"!==a(e.params)||Array.isArray(e.params)||null===e.params)throw new Rt(He.INVALID_VALIDATION_RULE_PARAMS,["".concat(t)],!0);if(e.type===Ke.REGEX_MATCH_RULE){if(!Object.prototype.hasOwnProperty.call(e.params,"regex"))throw new Rt(He.MISSING_REGEX_IN_REGEX_MATCH_RULE,["".concat(t)],!0)}else if(e.type===Ke.LENGTH_MATCH_RULE&&!Object.prototype.hasOwnProperty.call(e.params,"min")&&!Object.prototype.hasOwnProperty.call(e.params,"max"))throw new Rt(He.MISSING_MIN_AND_MAX_IN_LENGTH_MATCH_RULE,["".concat(t)],!0)}))}if(Object.prototype.hasOwnProperty.call(n,"name")&&n.name!==t.name)throw new Error("Name attribute can't be updated");if((n=Do(Do({},t),n)).mask||n.replacePattern){var o=me[e].attributes.type;"text"===o&&"textarea"===o&&"email"===o||(delete n.mask,delete n.replacePattern)}if(void 0===!n.mask&&!Array.isArray(n.mask))throw new Error("mask option has to be array or undefined");if(Array.isArray(n.mask)){var r=n.mask;if("string"!=typeof r[0]||r[1]&&"object"!==a(r[1]))throw new Error("mask array values has to be string")}if(Array.isArray(n.replacePattern)){var i=n.replacePattern;if("string"!=typeof i[0]||i[1]&&"string"!=typeof i[1])throw new Error("replacePatterns array values has to be string")}if((e===me.radio.name||e===me.checkbox.name)&&!n.value)throw new Error("Elements radio and checkbox requires value attribute");if(!(e!==me.dropdown.name||n.options&&Array.isArray(n.options)&&0!==n.options.length))throw new Error("Element dropdown requires options attribute with an array of objects containing value and text attributes")}function xo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return(t=Do(Do({},e),t)).rows.forEach((function(o,r){var i=o,l=e.rows[r];t.rows[r]=Do(Do({},l),i),i.elements.forEach((function(e,t){var o,r,c=l.elements[t],s=e;if(s.elementType&&c.elementType!==s.elementType&&c.elementName&&c.elementName!==s.elementName)throw new Error(gt(w.errorLogs.CANNOT_CHANGE_ELEMENT));Mo(c.elementType,c,s),i.elements[t]=Do(Do(Do({},c),s),{},{elementName:c.elementName});var p=s.classes||{},u=s.styles||{};u.base=Do(Do({},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===(r=s.labelStyles)||void 0===r?void 0:r.styles)||{};n&&function(e,t){Object.values(Ne).forEach((function(n){if(e[n]||t[n])switch(n){case Ne.BASE:t[n]=wo({},t[n]);break;case Ne.FOCUS:t[Ne.BASE]=wo(wo({},t[Ne.BASE]),{},{":focus":wo({},t[Ne.BASE]&&t[Ne.BASE][":focus"])});break;case Ne.WEBPACKAUTOFILL:t[Ne.BASE]=wo(wo({},t[Ne.BASE]),{},{":-webkit-autofill":wo({},t[Ne.BASE]&&t[Ne.BASE][":-webkit-autofill"])});break;default:t[n]=wo(wo({},t[Ne.BASE]),t[n])}})),Object.keys(t).forEach((function(e){var n=t[e][":-webkit-autofill"];"object"===a(n)&&Object.keys(n).forEach((function(e){n[e]&&!n[e].includes("!important")&&(n[e]="".concat(n[e]," !important"))}))}))}(E,d),s.labelStyles={labelClasses:E},s.labelStyles.styles=d}))})),t}var Co=function(e){var t=e.rows,n=[];return t.forEach((function(e){e.elements.forEach((function(e){n.push(e)}))})),n},Po=function(e){return e&&Array.isArray(e)&&0!==e.length?e.map((function(e,t){if(!e)return e;switch(e.type){case Ke.ELEMENT_VALUE_MATCH_RULE:var n=e.params;if(!n||!Object.prototype.hasOwnProperty.call(n,"element"))throw new Rt(He.MISSING_ELEMENT_IN_ELEMENT_MATCH_RULE,["".concat(t)],!0);var o=n.element;if(!o||!(o instanceof Oo||Ao))throw new Rt(He.INVALID_ELEMENT_IN_ELEMENT_MATCH_RULE,["".concat(t)],!0);return Do(Do({},e),{},{params:Do(Do({},n),{},{elementID:o.getID(),element:o.iframeName()})});case Ke.REGEX_MATCH_RULE:var r=e.params,i=(r||{}).regex;if(i&&!it(i))throw new Rt(He.INVALID_REGEX_IN_REGEX_MATCH_RULE,["".concat(t)],!0);if(i&&it(i))return Do(Do({},e),{},{params:Do(Do({},r),{},{regex:i.toString()})});break;default:return e}return e})):e},ko=function(e,t,n){var o,r,i,l=Do({required:!1},t);if(Object.prototype.hasOwnProperty.call(l,"format")||Object.prototype.hasOwnProperty.call(l,"translation"))if(Se.includes(e))Tt(gt(w.warnLogs.INPUT_FORMATTING_NOT_SUPPROTED,e),Xe.WARN,n),null===(o=l)||void 0===o||delete o.format,null===(r=l)||void 0===r||delete r.translation;else if(e===me.INPUT_FIELD.name){var c,s;ut(t),null===(c=l=Do(Do({},l),{},{mask:[l.format,l.translation?l.translation:we]}))||void 0===c||delete c.format,null===(s=l)||void 0===s||delete s.translation}switch(e){case me.CARD_NUMBER.name:var p,u,E;Object.prototype.hasOwnProperty.call(l,"enableCardIcon")||(l=Do(Do({},l),{},{enableCardIcon:!0}));var d=" ";if((null===(p=l)||void 0===p?void 0:p.format)===Ie&&(d="-"),null===(u=l=Do(Do({},l),{},{cardSeperator:d}))||void 0===u||delete u.format,null===(E=l)||void 0===E||delete E.translation,Object.prototype.hasOwnProperty.call(l,"cardMetadata")){if("object"!==a(l.cardMetadata)||"[object Object]"!==Object.prototype.toString.call(l.cardMetadata))throw new Rt(He.INVALID_OPTION_CARD_METADATA,[],!0);if(Object.prototype.hasOwnProperty.call(l.cardMetadata,"scheme")&&("object"!==a(l.cardMetadata.scheme)||"[object Array]"!==Object.prototype.toString.call(l.cardMetadata.scheme)))throw new Rt(He.INVALID_OPTION_CARD_SCHEME,[],!0)}break;case me.EXPIRATION_DATE.name:var f,_=!1;l.format&&((_=!!(i=l.format.toUpperCase())&&he.includes(i))||Tt(gt(w.warnLogs.INVALID_EXPIRATION_DATE_FORMAT,he.toString()),Xe.WARN,n)),null===(f=l=Do(Do({},l),{},{format:_?l.format.toUpperCase():ge}))||void 0===f||delete f.translation;break;case me.EXPIRATION_YEAR.name:var v,m=!1;l.format&&(m=function(e){return!!e&&Re.includes(e)}(l.format.toUpperCase()),m||Tt(gt(w.warnLogs.INVALID_EXPIRATION_YEAR_FORMAT,Re.toString()),Xe.WARN,n)),null===(v=l=Do(Do({},l),{},{format:m?l.format.toUpperCase():"YY"}))||void 0===v||delete v.translation;break;case me.FILE_INPUT.name:Object.prototype.hasOwnProperty.call(l,"preserveFileName")||(l=Do(Do({},l),{},{preserveFileName:!0}))}if(Object.prototype.hasOwnProperty.call(l,"enableCardIcon")&&!pt(l.enableCardIcon))throw new Rt(He.INVALID_BOOLEAN_OPTIONS,["enableCardIcon"],!0);if(Object.prototype.hasOwnProperty.call(l,"enableCopy")&&!pt(l.enableCopy))throw new Rt(He.INVALID_BOOLEAN_OPTIONS,["enableCopy"],!0);if(Object.prototype.hasOwnProperty.call(l,"required")&&!pt(l.required))throw new Rt(He.INVALID_BOOLEAN_OPTIONS,["required"],!0);if(Object.prototype.hasOwnProperty.call(l,"preserveFileName")&&!pt(l.preserveFileName))throw new Rt(He.INVALID_BOOLEAN_OPTIONS,["preserveFileName"],!0);if(e===me.FILE_INPUT.name){if(t.allowedFileType){if(!Array.isArray(t.allowedFileType))throw new Rt(He.INVALID_ALLOWED_OPTIONS,[],!0);if(t.allowedFileType.length<=0)throw new Rt(He.EMPTY_ALLOWED_OPTIONS_ARRAY,[],!0);if(!t.allowedFileType.every((function(e){return"string"==typeof e})))throw new Rt(He.INVALID_ALLOWED_FILETYPE_ARRAY,[],!0)}if(Object.prototype.hasOwnProperty.call(t,"allowedFileType")&&(l=Do(Do({},l),{},{allowedFileType:t.allowedFileType})),Object.prototype.hasOwnProperty.call(t,"blockEmptyFiles")&&!pt(t.blockEmptyFiles))throw new Rt(He.INVALID_BOOLEAN_OPTIONS,["blockEmptyFiles"],!0);Object.prototype.hasOwnProperty.call(t,"blockEmptyFiles")&&(l=Do(Do({},l),{},{blockEmptyFiles:l.blockEmptyFiles}))}if(Object.prototype.hasOwnProperty.call(t,"masking")){if(!pt(t.masking))throw new Rt(He.INVALID_BOOLEAN_OPTIONS,["masking"],!0);if(Object.prototype.hasOwnProperty.call(t,"maskingChar")&&"string"==typeof t.maskingChar&&t.maskingChar.length>1)throw new Rt(He.INVALID_MASKING_CHARACTER,[],!0);l=Object.prototype.hasOwnProperty.call(t,"maskingChar")&&"string"==typeof t.maskingChar?Do(Do({},l),{},{masking:t.masking,maskingChar:t.maskingChar}):Do(Do({},l),{},{masking:t.masking,maskingChar:"*"})}return l};function Vo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Uo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vo(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jo(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=Ve(e);if(t){var r=Ve(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return ke(this,n)}}function Fo(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 Go="CollectContainer",Yo=new WeakMap,Bo=new WeakMap,Wo=new WeakMap,Xo=new WeakMap,Ko=new WeakMap,Ho=new WeakMap,qo=new WeakMap,zo=new WeakMap,Jo=new WeakMap,Qo=new WeakMap,Zo=new WeakMap,$o=new WeakMap,er=new WeakMap,tr=new WeakMap,nr=new WeakMap,or=new WeakMap,rr=new WeakMap,ir=new WeakMap,ar=function(e){Pe(n,e);var t=jo(n);function n(e,o,r,i){var a,l;s(this,n),Fo(xe(l=t.call(this)),Yo,{writable:!0,value:void 0}),Fo(xe(l),Bo,{writable:!0,value:{}}),Fo(xe(l),Wo,{writable:!0,value:void 0}),Fo(xe(l),Xo,{writable:!0,value:void 0}),Fo(xe(l),Ko,{writable:!0,value:void 0}),c(xe(l),"type",Na.COLLECT),Fo(xe(l),Ho,{writable:!0,value:void 0}),Fo(xe(l),qo,{writable:!0,value:!1}),Fo(xe(l),zo,{writable:!0,value:!1}),c(xe(l),"create",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{required:!1};lt(e,f(xe(l),Xo).logLevel);var n=Po(e.validations),o=ko(e.type,t,f(xe(l),Xo).logLevel),r={rows:[{elements:[Uo(Uo(Uo({elementType:e.type,name:e.column,accept:t.allowedFileType},e),o),{},{validations:n})]}]};return f(xe(l),Jo).call(xe(l),r,!0)})),Fo(xe(l),Jo,{writable:!0,value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[],o=Yn(e);if(o.rows.forEach((function(e){e.elements.forEach((function(e){var t=e,o=t.elementType;Mo(o,t),t.sensitive=t.sensitive||me[o].sensitive,t.replacePattern=t.replacePattern||me[o].replacePattern,t.mask=t.mask||me[o].mask,t.isMounted=!1,t.elementType!==me.radio.name&&t.elementType!==me.checkbox.name||(t.elementName="".concat(t.elementName,":").concat(btoa(t.value))),t.elementName="".concat(j,":").concat(t.elementType,":").concat(btoa(m())),t.label=e.label,t.skyflowID=e.skyflowID,n.push(t)}))})),o.elementName=t?n[0].elementName:"".concat(j,":group:").concat(btoa(o.name)),t&&!f(xe(l),Bo)[n[0].elementName]&&f(xe(l),er).call(xe(l),n[0].name))throw new Rt(He.UNIQUE_ELEMENT_NAME,["".concat(n[0].name)],!0);var r=f(xe(l),Bo)[o.elementName];if(r)t?r.updateElementGroup(n[0]):r.updateElementGroup(o);else{var i=m();r=new Oo(i,o,f(xe(l),Wo),{containerId:f(xe(l),Yo),isMounted:f(xe(l),qo),type:l.type},t,f(xe(l),Zo),f(xe(l),$o),f(xe(l),Xo),f(xe(l),Ho)),f(xe(l),Bo)[o.elementName]=r,f(xe(l),Ko)[i]=r}return t||n.forEach((function(e){var t=e.elementName;f(xe(l),Bo)[t]?f(xe(l),Bo)[t].updateElementGroup(e):f(xe(l),Bo)[t]=l.create(e.elementType,e)})),r}}),Fo(xe(l),Qo,{writable:!0,value:function(e){Object.keys(f(xe(l),Bo)).forEach((function(t){t===e&&delete f(xe(l),Bo)[t]}))}}),Fo(xe(l),Zo,{writable:!0,value:function(e){e.forEach((function(e){f(xe(l),Qo).call(xe(l),e)}))}}),Fo(xe(l),$o,{writable:!0,value:function(e){e.forEach((function(e){f(xe(l),Bo)[e.elementName]&&f(xe(l),Bo)[e.elementName].updateElementGroup(e)}))}}),Fo(xe(l),er,{writable:!0,value:function(e){for(var t=Object.keys(f(xe(l),Bo)),n=0;n<t.length;n+=1)if(atob(t[n].split(":")[2])===e)return!0;return!1}}),c(xe(l),"collect",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{tokens:!0};return d(xe(l),zo,f(xe(l),Wo).skyflowContainer.isControllerFrameReady),f(xe(l),zo)?new Promise((function(t,n){try{if(at(f(xe(l),Wo).clientJSON.config),0===Object.keys(f(xe(l),Bo)).length)throw new Rt(He.NO_ELEMENTS_IN_COLLECT,[],!0);f(xe(l),tr).call(xe(l));var o=Object.values(f(xe(l),Bo)),r=Object.keys(f(xe(l),Bo)).map((function(e){return{frameId:e,elementId:e}}));if(o.forEach((function(e){if(!e.isMounted())throw new Rt(He.ELEMENTS_NOT_MOUNTED,[],!0);e.isValidElement()})),Object.prototype.hasOwnProperty.call(e,"tokens")&&!pt(e.tokens))throw new Rt(He.INVALID_TOKENS_IN_COLLECT,[],!0);null!=e&&e.additionalFields&&Qe(e.additionalFields),null!=e&&e.upsert&&ct(null==e?void 0:e.upsert),v().emit(ce.COLLECT_CALL_REQUESTS+f(xe(l),Wo).uuid,Uo(Uo({type:oe},e),{},{tokens:void 0===(null==e?void 0:e.tokens)||e.tokens,elementIds:r,containerId:f(xe(l),Yo)}),(function(e){!e||null!=e&&e.error?(Tt("".concat(JSON.stringify(null==e?void 0:e.error)),Xe.ERROR,f(xe(l),Xo).logLevel),n(null==e?void 0:e.error)):(Tt(gt(w.infoLogs.COLLECT_SUBMIT_SUCCESS,Go),Xe.LOG,f(xe(l),Xo).logLevel),t(e))})),Tt(gt(w.infoLogs.EMIT_EVENT,Go,ce.TOKENIZATION_REQUEST),Xe.LOG,f(xe(l),Xo).logLevel)}catch(e){Tt("".concat(e.message),Xe.ERROR,f(xe(l),Xo).logLevel),n(e)}})):new Promise((function(t,n){try{if(at(f(xe(l),Wo).clientJSON.config),0===Object.keys(f(xe(l),Bo)).length)throw new Rt(He.NO_ELEMENTS_IN_COLLECT,[],!0);f(xe(l),tr).call(xe(l));var o=Object.values(f(xe(l),Bo)),r=Object.keys(f(xe(l),Bo)).map((function(e){return{frameId:e,elementId:e}}));if(o.forEach((function(e){if(!e.isMounted())throw new Rt(He.ELEMENTS_NOT_MOUNTED,[],!0);e.isValidElement()})),Object.prototype.hasOwnProperty.call(e,"tokens")&&!pt(e.tokens))throw new Rt(He.INVALID_TOKENS_IN_COLLECT,[],!0);null!=e&&e.additionalFields&&Qe(e.additionalFields),null!=e&&e.upsert&&ct(null==e?void 0:e.upsert),v().target(Et.IFRAME_SECURE_ORIGIN).on(ce.SKYFLOW_FRAME_CONTROLLER_READY+f(xe(l),Yo),(function(){v().emit(ce.COLLECT_CALL_REQUESTS+f(xe(l),Wo).uuid,Uo(Uo({type:oe},e),{},{tokens:void 0===(null==e?void 0:e.tokens)||e.tokens,elementIds:r,containerId:f(xe(l),Yo)}),(function(e){!e||null!=e&&e.error?(Tt("".concat(JSON.stringify(null==e?void 0:e.error)),Xe.ERROR,f(xe(l),Xo).logLevel),n(null==e?void 0:e.error)):(Tt(gt(w.infoLogs.COLLECT_SUBMIT_SUCCESS,Go),Xe.LOG,f(xe(l),Xo).logLevel),t(e))}))}))}catch(e){Tt("".concat(e.message),Xe.ERROR,f(xe(l),Xo).logLevel),n(e)}}))})),c(xe(l),"uploadFiles",(function(e){return d(xe(l),zo,f(xe(l),Wo).skyflowContainer.isControllerFrameReady),f(xe(l),zo)?new Promise((function(t,n){try{if(at(f(xe(l),Wo).clientJSON.config),0===Object.keys(f(xe(l),Bo)).length)throw new Rt(He.NO_ELEMENTS_IN_COLLECT,[],!0);f(xe(l),tr).call(xe(l));var o=Object.values(f(xe(l),Bo)),r=Object.keys(f(xe(l),Bo));o.forEach((function(e){if(!e.isMounted())throw new Rt(He.ELEMENTS_NOT_MOUNTED,[],!0);e.isValidElement()})),v().emit(ce.COLLECT_CALL_REQUESTS+f(xe(l),Wo).uuid,Uo(Uo({type:re},e),{},{elementIds:r,containerId:f(xe(l),Yo)}),(function(e){!e||null!=e&&e.error?(Tt("".concat(JSON.stringify(null==e?void 0:e.error)),Xe.ERROR,f(xe(l),Xo).logLevel),n(null==e?void 0:e.error)):(Tt(gt(w.infoLogs.COLLECT_SUBMIT_SUCCESS,Go),Xe.LOG,f(xe(l),Xo).logLevel),t(e))})),Tt(gt(w.infoLogs.EMIT_EVENT,Go,ce.FILE_UPLOAD),Xe.LOG,f(xe(l),Xo).logLevel)}catch(e){Tt("".concat(e.message),Xe.ERROR,f(xe(l),Xo).logLevel),n(e)}})):new Promise((function(t,n){v().target(Et.IFRAME_SECURE_ORIGIN).on(ce.SKYFLOW_FRAME_CONTROLLER_READY+f(xe(l),Yo),(function(){try{if(at(f(xe(l),Wo).clientJSON.config),0===Object.keys(f(xe(l),Bo)).length)throw new Rt(He.NO_ELEMENTS_IN_COLLECT,[],!0);f(xe(l),tr).call(xe(l));var o=Object.values(f(xe(l),Bo)),r=Object.keys(f(xe(l),Bo));o.forEach((function(e){if(!e.isMounted())throw new Rt(He.ELEMENTS_NOT_MOUNTED,[],!0);e.isValidElement()})),v().emit(ce.COLLECT_CALL_REQUESTS+f(xe(l),Wo).uuid,Uo(Uo({type:re},e),{},{elementIds:r,containerId:f(xe(l),Yo)}),(function(e){!e||null!=e&&e.error?(Tt("".concat(JSON.stringify(null==e?void 0:e.error)),Xe.ERROR,f(xe(l),Xo).logLevel),n(null==e?void 0:e.error)):(Tt(gt(w.infoLogs.COLLECT_SUBMIT_SUCCESS,Go),Xe.LOG,f(xe(l),Xo).logLevel),t(e))})),Tt(gt(w.infoLogs.EMIT_EVENT,Go,ce.FILE_UPLOAD),Xe.LOG,f(xe(l),Xo).logLevel)}catch(e){Tt("".concat(e.message),Xe.ERROR,f(xe(l),Xo).logLevel),n(e)}}))}))})),Fo(xe(l),tr,{writable:!0,value:function(){try{if(f(xe(l),nr).call(xe(l)))return;var e=f(xe(l),or).call(xe(l));if(!e.length)return;f(xe(l),rr).call(xe(l),e)}catch(e){Tt("".concat(e),Xe.LOG,f(xe(l),Xo).logLevel)}}}),Fo(xe(l),nr,{writable:!0,value:function(){return 0===Object.keys(f(xe(l),Bo)).length}}),Fo(xe(l),or,{writable:!0,value:function(){var e,t=null===(e=document)||void 0===e?void 0:e.body;if(!t)return[];var n=t.getElementsByTagName("iframe");return null!=n&&n.length?Array.from(n).map((function(e){return e.id})):[]}}),Fo(xe(l),rr,{writable:!0,value:function(e){Object.entries(f(xe(l),Bo)).forEach((function(t){var n=qe(t,2),o=n[0],r=n[1];f(xe(l),ir).call(xe(l),r,e)&&delete f(xe(l),Bo)[o]}))}}),Fo(xe(l),ir,{writable:!0,value:function(e,t){return e.isMounted()&&!t.includes(e.iframeName())}}),d(xe(l),zo,o.skyflowContainer.isControllerFrameReady),d(xe(l),Yo,m()),d(xe(l),Wo,Uo(Uo({},o),{},{clientJSON:Uo(Uo({},o.clientJSON),{},{config:Uo(Uo({},o.clientJSON.config),{},{options:Uo(Uo({},null===(a=o.clientJSON.config)||void 0===a?void 0:a.options),e)})})})),d(xe(l),Ko,r),d(xe(l),Xo,i),d(xe(l),Ho,new Mt);var p=f(xe(l),Wo).clientDomain||"",u=Vt({name:"".concat(U,":").concat(f(xe(l),Yo),":").concat(f(xe(l),Xo).logLevel,":").concat(btoa(p)),referrer:p});return kt(u,{src:Ut()}),jt(u,Uo({},Oe)),Tt(gt(w.infoLogs.CREATE_COLLECT_CONTAINER,Go),Xe.LOG,f(xe(l),Xo).logLevel),d(xe(l),qo,!0),l}return u(n)}(Ft);const lr=ar;function cr(e){this.message=e}cr.prototype=new Error,cr.prototype.name="InvalidCharacterError";var sr="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new cr("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,o,r=0,i=0,a="";o=t.charAt(i++);~o&&(n=r%4?64*n+o:o,r++%4)?a+=String.fromCharCode(255&n>>(-2*r&6)):0)o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);return a};function pr(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(sr(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 sr(t)}}function ur(e){this.message=e}ur.prototype=new Error,ur.prototype.name="InvalidTokenError";const Er=function(e,t){if("string"!=typeof e)throw new ur("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(pr(e.split(".")[n]))}catch(e){throw new ur("Invalid token specified: "+e.message)}};const dr=function(e){try{if(!e)return!1;if(i=e,"[object String]"!==Object.prototype.toString.call(i))return!1;var t=!1,n=Er(e),o=(new Date).getTime()/1e3,r=n.exp;return r&&o>r&&(t=!0),!t}catch(e){return!1}var i};function fr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function _r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fr(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vr(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 mr="SkyflowContainer",Ir=new WeakMap,yr=new WeakMap,Or=new WeakMap,Lr=function(){function e(t,n){var o,r,i=this;s(this,e),vr(this,Ir,{writable:!0,value:void 0}),vr(this,yr,{writable:!0,value:void 0}),c(this,"isControllerFrameReady",!1),vr(this,Or,{writable:!0,value:void 0}),d(this,yr,t),d(this,Ir,(null===(o=f(this,yr).toJSON())||void 0===o||null===(o=o.metaData)||void 0===o?void 0:o.uuid)||""),d(this,Or,n);var a=window.location.origin||"",l=Vt({name:"".concat("skyflow_controller",":").concat(f(this,Ir),":").concat(btoa(a),":").concat(!(null===(r=f(this,yr).toJSON())||void 0===r||null===(r=r.config)||void 0===r||null===(r=r.options)||void 0===r||!r.trackingKey)),referrer:a});kt(l,{src:Ut()}),jt(l,_r({},Oe)),document.body.append(l),v().target(Et.IFRAME_SECURE_ORIGIN).on(ce.PUREJS_FRAME_READY+f(this,Ir),(function(e,t){Tt(gt(w.infoLogs.CAPTURE_PUREJS_FRAME,mr),Xe.LOG,f(i,Or).logLevel),t({client:f(i,yr),context:n}),i.isControllerFrameReady=!0})),Tt(gt(w.infoLogs.PUREJS_CONTROLLER_INITIALIZED,mr),Xe.LOG,f(this,Or).logLevel)}return u(e,[{key:"detokenize",value:function(e){var t=this;return this.isControllerFrameReady?new Promise((function(n,o){try{at(f(t,yr).config),Tt(gt(w.infoLogs.VALIDATE_DETOKENIZE_INPUT,mr),Xe.LOG,f(t,Or).logLevel),Ze(e),v().emit(ce.PUREJS_REQUEST+f(t,Ir),{type:$,records:e.records},(function(e){e.error?o(e.error):n(e)})),Tt(gt(w.infoLogs.EMIT_PURE_JS_REQUEST,mr,$),Xe.LOG,f(t,Or).logLevel)}catch(e){Tt(e.message,Xe.ERROR,f(t,Or).logLevel),o(e)}})):new Promise((function(n,o){try{at(f(t,yr).config),Tt(gt(w.infoLogs.VALIDATE_DETOKENIZE_INPUT,mr),Xe.LOG,f(t,Or).logLevel),Ze(e),v().target(Et.IFRAME_SECURE_ORIGIN).on(ce.PUREJS_FRAME_READY+f(t,Ir),(function(){v().emit(ce.PUREJS_REQUEST+f(t,Ir),{type:$,records:e.records},(function(e){e.error?o(e.error):n(e)}))})),Tt(gt(w.infoLogs.EMIT_PURE_JS_REQUEST,mr,$),Xe.LOG,f(t,Or).logLevel)}catch(e){Tt(e.message,Xe.ERROR,f(t,Or).logLevel),o(e)}}))}},{key:"insert",value:function(e,t){var n=this;return this.isControllerFrameReady?new Promise((function(o,r){at(f(n,yr).config);try{var i,a;if(Tt(gt(w.infoLogs.VALIDATE_RECORDS,mr),Xe.LOG,f(n,Or).logLevel),t)t=_r(_r({},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&&ct(t.upsert),Je(e,t),v().emit(ce.PUREJS_REQUEST+f(n,Ir),{type:Z,records:e,options:t},(function(e){e.error?(Tt("".concat(JSON.stringify(e.error)),Xe.ERROR,f(n,Or).logLevel),r(e.error)):o(e)})),Tt(gt(w.infoLogs.EMIT_PURE_JS_REQUEST,mr,Z),Xe.LOG,f(n,Or).logLevel)}catch(e){Tt(e.message,Xe.ERROR,f(n,Or).logLevel),r(e)}})):new Promise((function(o,r){try{var i,a;if(at(f(n,yr).config),Tt(gt(w.infoLogs.VALIDATE_RECORDS,mr),Xe.LOG,f(n,Or).logLevel),t)t=_r(_r({},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&&ct(t.upsert),Je(e,t),v().target(Et.IFRAME_SECURE_ORIGIN).on(ce.PUREJS_FRAME_READY+f(n,Ir),(function(){v().emit(ce.PUREJS_REQUEST+f(n,Ir),{type:Z,records:e,options:t},(function(e){e.error?(Tt("".concat(JSON.stringify(e.error)),Xe.ERROR,f(n,Or).logLevel),r(e.error)):o(e)}))})),Tt(gt(w.infoLogs.EMIT_PURE_JS_REQUEST,mr,Z),Xe.LOG,f(n,Or).logLevel)}catch(e){Tt(e.message,Xe.ERROR,f(n,Or).logLevel),r(e)}}))}},{key:"getById",value:function(e){var t=this;return this.isControllerFrameReady?new Promise((function(n,o){at(f(t,yr).config);try{Tt(gt(w.infoLogs.VALIDATE_GET_BY_ID_INPUT,mr),Xe.LOG,f(t,Or).logLevel),et(e),v().emit(ce.PUREJS_REQUEST+f(t,Ir),{type:ee,records:e.records},(function(e){e.error?o(e.error):n(e)})),Tt(gt(w.infoLogs.EMIT_PURE_JS_REQUEST,mr,ee),Xe.LOG,f(t,Or).logLevel)}catch(e){Tt(e.message,Xe.ERROR,f(t,Or).logLevel),o(e)}})):new Promise((function(n,o){try{at(f(t,yr).config),Tt(gt(w.infoLogs.VALIDATE_GET_BY_ID_INPUT,mr),Xe.LOG,f(t,Or).logLevel),et(e),v().target(Et.IFRAME_SECURE_ORIGIN).on(ce.PUREJS_FRAME_READY+f(t,Ir),(function(){v().emit(ce.PUREJS_REQUEST+f(t,Ir),{type:ee,records:e.records},(function(e){e.error?o(e.error):n(e)}))})),Tt(gt(w.infoLogs.EMIT_PURE_JS_REQUEST,mr,ee),Xe.LOG,f(t,Or).logLevel)}catch(e){Tt(e.message,Xe.ERROR,f(t,Or).logLevel),o(e)}}))}},{key:"get",value:function(e,t){var n=this;return this.isControllerFrameReady?new Promise((function(o,r){at(f(n,yr).config);try{Tt(gt(w.infoLogs.VALIDATE_GET_INPUT,mr),Xe.LOG,f(n,Or).logLevel),$e(e,t),v().emit(ce.PUREJS_REQUEST+f(n,Ir),{type:te,records:e.records,options:t},(function(e){e.error?r(e.error):o(e)})),Tt(gt(w.infoLogs.EMIT_PURE_JS_REQUEST,mr,te),Xe.LOG,f(n,Or).logLevel)}catch(e){Tt(e.message,Xe.ERROR,f(n,Or).logLevel),r(e)}})):new Promise((function(o,r){try{at(f(n,yr).config),Tt(gt(w.infoLogs.VALIDATE_GET_INPUT,mr),Xe.LOG,f(n,Or).logLevel),$e(e,t),v().target(Et.IFRAME_SECURE_ORIGIN).on(ce.PUREJS_FRAME_READY+f(n,Ir),(function(){v().emit(ce.PUREJS_REQUEST+f(n,Ir),{type:te,records:e.records,options:t},(function(e){e.error?r(e.error):o(e)}))})),Tt(gt(w.infoLogs.EMIT_PURE_JS_REQUEST,mr,te),Xe.LOG,f(n,Or).logLevel)}catch(e){Tt(e.message,Xe.ERROR,f(n,Or).logLevel),r(e)}}))}},{key:"delete",value:function(e,t){var n=this;return this.isControllerFrameReady?new Promise((function(o,r){at(f(n,yr).config);try{Tt(gt(w.infoLogs.VALIDATE_DELETE_INPUT,mr),Xe.LOG,f(n,Or).logLevel),tt(e),v().emit(ce.PUREJS_REQUEST+f(n,Ir),{type:ne,records:e,options:t},(function(e){e.error?(Tt("".concat(JSON.stringify(e.error)),Xe.ERROR,f(n,Or).logLevel),r(e.error)):o(e)})),Tt(gt(w.infoLogs.EMIT_PURE_JS_REQUEST,mr,ne),Xe.LOG,f(n,Or).logLevel)}catch(e){Tt(e.message,Xe.ERROR,f(n,Or).logLevel),r(e)}})):new Promise((function(o,r){try{at(f(n,yr).config),Tt(gt(w.infoLogs.VALIDATE_RECORDS,mr),Xe.LOG,f(n,Or).logLevel),tt(e),v().target(Et.IFRAME_SECURE_ORIGIN).on(ce.PUREJS_FRAME_READY+f(n,Ir),(function(){v().emit(ce.PUREJS_REQUEST+f(n,Ir),{type:ne,records:e,options:t},(function(e){e.error?(Tt("".concat(JSON.stringify(e.error)),Xe.ERROR,f(n,Or).logLevel),r(e.error)):o(e)}))})),Tt(gt(w.infoLogs.EMIT_PURE_JS_REQUEST,mr,ne),Xe.LOG,f(n,Or).logLevel)}catch(e){Tt(e.message,Xe.ERROR,f(n,Or).logLevel),r(e)}}))}}]),e}();const Nr=Lr;var Tr=n(6119),gr=n.n(Tr);function hr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Rr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hr(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ar(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=Ve(e);if(t){var r=Ve(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return ke(this,n)}}function Sr(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="CollectContainer",br=new WeakMap,Dr=new WeakMap,Mr=new WeakMap,xr=new WeakMap,Cr=new WeakMap,Pr=new WeakMap,kr=new WeakMap,Vr=new WeakMap,Ur=new WeakMap,jr=new WeakMap,Fr=new WeakMap,Gr=new WeakMap,Yr=new WeakMap,Br=new WeakMap,Wr=new WeakMap,Xr=new WeakMap,Kr=new WeakMap,Hr=new WeakMap,qr=new WeakMap,zr=new WeakMap,Jr=new WeakMap,Qr=new WeakMap,Zr=new WeakMap,$r=new WeakMap,ei=new WeakMap,ti=function(e){Pe(n,e);var t=Ar(n);function n(e,o,r,i){var a,l;s(this,n),Sr(xe(l=t.call(this)),br,{writable:!0,value:void 0}),Sr(xe(l),Dr,{writable:!0,value:{}}),Sr(xe(l),Mr,{writable:!0,value:void 0}),Sr(xe(l),xr,{writable:!0,value:{rows:[]}}),Sr(xe(l),Cr,{writable:!0,value:[]}),Sr(xe(l),Pr,{writable:!0,value:void 0}),Sr(xe(l),kr,{writable:!0,value:void 0}),Sr(xe(l),Vr,{writable:!0,value:void 0}),Sr(xe(l),Ur,{writable:!0,value:!1}),Sr(xe(l),jr,{writable:!0,value:void 0}),Sr(xe(l),Fr,{writable:!0,value:void 0}),c(xe(l),"type",Na.COMPOSABLE),Sr(xe(l),Gr,{writable:!0,value:!1}),Sr(xe(l),Yr,{writable:!0,value:{}}),Sr(xe(l),Br,{writable:!0,value:""}),Sr(xe(l),Wr,{writable:!0,value:!1}),Sr(xe(l),Xr,{writable:!0,value:null}),Sr(xe(l),Kr,{writable:!0,value:""}),Sr(xe(l),Hr,{writable:!0,value:void 0}),c(xe(l),"create",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{required:!1};lt(e,f(xe(l),Pr).logLevel);var n=Po(e.validations),o=ko(e.type,t,f(xe(l),Pr).logLevel),r="".concat(j,":").concat(e.type,":").concat(btoa(m()));f(xe(l),Cr).push(Rr(Rr(Rr({elementType:e.type,name:e.column},e),o),{},{validations:n,elementName:r}));var i="".concat(j,":group:").concat(btoa(f(xe(l),Yr)),":").concat(f(xe(l),br),":").concat(f(xe(l),Pr).logLevel,":").concat(btoa(f(xe(l),Br)));return d(xe(l),Kr,i),new Ao(r,f(xe(l),Vr),i)})),Sr(xe(l),qr,{writable:!0,value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[];if(d(xe(l),Yr,Yn(e)),f(xe(l),Yr).rows.forEach((function(e){e.elements.forEach((function(e){var t=e,o=t.elementType;Mo(o,t),t.sensitive=t.sensitive||me[o].sensitive,t.replacePattern=t.replacePattern||me[o].replacePattern,t.mask=t.mask||me[o].mask,t.isMounted=!1,t.label=e.label,t.skyflowID=e.skyflowID,n.push(t)}))})),f(xe(l),Yr).elementName=t?n[0].elementName:"".concat(j,":group:").concat(btoa(f(xe(l),Yr))),t&&!f(xe(l),Dr)[n[0].elementName]&&f(xe(l),Zr).call(xe(l),n[0].name))throw new Rt(He.UNIQUE_ELEMENT_NAME,["".concat(n[0].name)],!0);var o=f(xe(l),Dr)[f(xe(l),Yr).elementName];if(o)t?o.update(n[0]):o.update(f(xe(l),Yr));else{var r=m();o=new Oo(r,f(xe(l),Yr),f(xe(l),Mr),{containerId:f(xe(l),br),isMounted:f(xe(l),Gr),type:l.type},!0,f(xe(l),Jr),f(xe(l),Qr),f(xe(l),Pr),f(xe(l),Vr)),f(xe(l),Dr)[f(xe(l),Yr).elementName]=o,f(xe(l),kr)[r]=o}return o}}),Sr(xe(l),zr,{writable:!0,value:function(e){Object.keys(f(xe(l),Dr)).forEach((function(t){t===e&&delete f(xe(l),Dr)[t]}))}}),Sr(xe(l),Jr,{writable:!0,value:function(e){e.forEach((function(e){f(xe(l),zr).call(xe(l),e)}))}}),Sr(xe(l),Qr,{writable:!0,value:function(e){e.forEach((function(e){f(xe(l),Dr)[e.elementName]&&f(xe(l),Dr)[e.elementName].update(e)}))}}),Sr(xe(l),Zr,{writable:!0,value:function(e){for(var t=Object.keys(f(xe(l),Dr)),n=0;n<t.length;n+=1)if(atob(t[n].split(":")[2])===e)return!0;return!1}}),c(xe(l),"on",(function(e,t){if(!Object.values(le).includes(e))throw new Rt(He.INVALID_EVENT_LISTENER,[],!0);if(!t)throw new Rt(He.MISSING_HANDLER_IN_EVENT_LISTENER,[],!0);if("function"!=typeof t)throw new Rt(He.INVALID_HANDLER_IN_EVENT_LISTENER,[],!0);f(xe(l),Vr).on(le.SUBMIT,(function(){t()}))})),c(xe(l),"mount",(function(e){if(!e)throw new Rt(He.EMPTY_ELEMENT_IN_MOUNT,["CollectElement"],!0);var t=f(xe(l),jr).layout;if(gr()(t)!==f(xe(l),Cr).length)throw new Rt(He.MISMATCH_ELEMENT_COUNT_LAYOUT_SUM,[],!0);var n=0;if(t.forEach((function(e,t){f(xe(l),xr).rows=[].concat(Me(f(xe(l),xr).rows),[{elements:[]}]);for(var o=0;o<e;o++)f(xe(l),xr).rows[t].elements.push(f(xe(l),Cr)[n]),n++})),f(xe(l),jr).styles&&(f(xe(l),xr).styles=Rr({},f(xe(l),jr).styles)),f(xe(l),jr).errorTextStyles&&(f(xe(l),xr).errorTextStyles=Rr({},f(xe(l),jr).errorTextStyles)),f(xe(l),Gr)&&(d(xe(l),Fr,f(xe(l),qr).call(xe(l),f(xe(l),xr),!1)),f(xe(l),Fr).mount(e),d(xe(l),Ur,!0)),e instanceof HTMLElement&&e.getRootNode()instanceof ShadowRoot)d(xe(l),Xr,e.getRootNode());else if("string"==typeof e){var o=document.getElementById(e);o&&o.getRootNode()instanceof ShadowRoot&&d(xe(l),Xr,o.getRootNode())}null!==f(xe(l),Xr)&&(f(xe(l),Vr).on(le.HEIGHT,(function(e){f(xe(l),$r).call(xe(l),le.HEIGHT+e.iframeName,{})})),f(xe(l),$r).call(xe(l),le.HEIGHT+f(xe(l),Kr),{}))})),c(xe(l),"unmount",(function(){f(xe(l),Fr).unmount()})),c(xe(l),"collect",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{tokens:!0};return new Promise((function(t,n){try{var o,r;if(at(f(xe(l),Mr).clientJSON.config),!f(xe(l),Cr)||0===f(xe(l),Cr).length)throw new Rt(He.NO_ELEMENTS_IN_COMPOSABLE,[],!0);if(!f(xe(l),Ur))throw new Rt(He.COMPOSABLE_CONTAINER_NOT_MOUNTED,[],!0);Co(f(xe(l),Yr)).forEach((function(e){if(null==e||!e.isMounted)throw new Rt(He.ELEMENTS_NOT_MOUNTED,[],!0)}));var i=[];if(Object.values(f(xe(l),Dr)).forEach((function(e){e.isValidElement()})),e&&e.tokens&&"boolean"!=typeof e.tokens)throw new Rt(He.INVALID_TOKENS_IN_COLLECT,[],!0);null!=e&&e.additionalFields&&Qe(e.additionalFields),null!=e&&e.upsert&&ct(null==e?void 0:e.upsert),f(xe(l),Cr).forEach((function(e){i.push({frameId:f(xe(l),Yr).elementName,elementId:e.elementName})}));null===(o=Dt.fromJSON(f(xe(l),Mr).clientJSON.config).toJSON())||void 0===o||null===(o=o.metaData)||void 0===o||o.uuid;null===(r=f(xe(l),Hr).call(xe(l)))||void 0===r||r.then((function(t){Tt(gt(w.infoLogs.BEARER_TOKEN_RESOLVED,wr),Xe.LOG,f(xe(l),Pr).logLevel),f(xe(l),$r).call(xe(l),ce.COMPOSABLE_CALL_REQUESTS+f(xe(l),br),{data:Rr(Rr({type:oe},e),{},{tokens:void 0===(null==e?void 0:e.tokens)||e.tokens,elementIds:i,containerId:f(xe(l),br)}),clientConfig:{vaultURL:f(xe(l),Mr).clientJSON.config.vaultURL,vaultID:f(xe(l),Mr).clientJSON.config.vaultID,authToken:t}})})).catch((function(e){Tt("".concat(e.message),Xe.ERROR,f(xe(l),Pr).logLevel),n(e)})),window.addEventListener("message",(function(e){var o;if((null===(o=e.data)||void 0===o?void 0:o.type)===ce.COMPOSABLE_CALL_RESPONSE+f(xe(l),br)){var r=e.data.data;!r||null!=r&&r.error?(Tt("".concat(JSON.stringify(null==r?void 0:r.error)),Xe.ERROR,f(xe(l),Pr).logLevel),n(null==r?void 0:r.error)):null!=r&&r.records?(Tt(gt(w.infoLogs.COLLECT_SUBMIT_SUCCESS,wr),Xe.LOG,f(xe(l),Pr).logLevel),t(r)):(Tt("".concat(JSON.stringify(r)),Xe.ERROR,f(xe(l),Pr).logLevel),n(r))}})),Tt(gt(w.infoLogs.EMIT_EVENT,wr,ce.TOKENIZATION_REQUEST),Xe.LOG,f(xe(l),Pr).logLevel)}catch(e){Tt("".concat(e.message),Xe.ERROR,f(xe(l),Pr).logLevel),n(e)}}))})),Sr(xe(l),$r,{writable:!0,value:function(e,t,n){if(f(xe(l),Xr)){var o=f(xe(l),Xr).getElementById(f(xe(l),Kr));null!=o&&o.contentWindow&&o.contentWindow.postMessage(Rr({name:e},t),Et.IFRAME_SECURE_ORIGIN)}else{var r=document.getElementById(f(xe(l),Kr));null!=r&&r.contentWindow&&r.contentWindow.postMessage(Rr({name:e},t),Et.IFRAME_SECURE_ORIGIN)}}}),c(xe(l),"uploadFiles",(function(e){return new Promise((function(t,n){try{var o,r;if(at(f(xe(l),Mr).clientJSON.config),!f(xe(l),Cr)||0===f(xe(l),Cr).length)throw new Rt(He.NO_ELEMENTS_IN_COMPOSABLE,[],!0);if(!f(xe(l),Ur))throw new Rt(He.COMPOSABLE_CONTAINER_NOT_MOUNTED,[],!0);var i=[];f(xe(l),Cr).forEach((function(e){i.push({frameId:f(xe(l),Yr).elementName,elementId:e.elementName})}));null===(o=Dt.fromJSON(f(xe(l),Mr).clientJSON.config).toJSON())||void 0===o||null===(o=o.metaData)||void 0===o||o.uuid;null===(r=f(xe(l),Hr).call(xe(l)))||void 0===r||r.then((function(o){Tt(gt(w.infoLogs.BEARER_TOKEN_RESOLVED,wr),Xe.LOG,f(xe(l),Pr).logLevel),f(xe(l),$r).call(xe(l),ce.COMPOSABLE_CALL_REQUESTS+f(xe(l),br),{data:Rr(Rr({type:re},e),{},{elementIds:i,containerId:f(xe(l),br)}),clientConfig:{vaultURL:f(xe(l),Mr).clientJSON.config.vaultURL,vaultID:f(xe(l),Mr).clientJSON.config.vaultID,authToken:o}}),window.addEventListener("message",(function(e){var o;if((null===(o=e.data)||void 0===o?void 0:o.type)===ce.COMPOSABLE_FILE_CALL_RESPONSE+f(xe(l),br)){var r=e.data.data;!r||null!=r&&r.error?(Tt("".concat(JSON.stringify(null==r?void 0:r.error)),Xe.ERROR,f(xe(l),Pr).logLevel),n(null==r?void 0:r.error)):null!=r&&r.fileUploadResponse?(Tt(gt(w.infoLogs.COLLECT_SUBMIT_SUCCESS,wr),Xe.LOG,f(xe(l),Pr).logLevel),t(r)):(Tt("".concat(JSON.stringify(r)),Xe.ERROR,f(xe(l),Pr).logLevel),n(r))}}))})).catch((function(e){Tt("".concat(e.message),Xe.ERROR,f(xe(l),Pr).logLevel),n(e)}))}catch(e){Tt("".concat(e.message),Xe.ERROR,f(xe(l),Pr).logLevel),n(e)}}))})),Sr(xe(l),ei,{writable:!0,value:function(){f(xe(l),Vr).on(ce.COMPOSABLE_UPDATE_OPTIONS,(function(e){var t,n=f(xe(l),Cr).map((function(n,o){return n.elementName===e.elementName?(t=o,Rr({elementName:n.elementName},e.elementOptions)):n}));f(xe(l),Fr)&&f(xe(l),Fr).updateElement(Rr({},n[t]))}))}}),d(xe(l),br,m()),d(xe(l),Mr,Rr(Rr({},o),{},{clientJSON:Rr(Rr({},o.clientJSON),{},{config:Rr(Rr({},o.clientJSON.config),{},{options:Rr(Rr({},null===(a=o.clientJSON.config)||void 0===a?void 0:a.options),e)})})})),d(xe(l),Hr,o.getSkyflowBearerToken),d(xe(l),kr,r),d(xe(l),Pr,i),d(xe(l),jr,e),d(xe(l),Vr,new Mt),d(xe(l),Br,f(xe(l),Mr).clientDomain||"");var p=Vt({name:"".concat(U,":").concat(f(xe(l),br),":").concat(f(xe(l),Pr).logLevel,":").concat(btoa(f(xe(l),Br))),referrer:f(xe(l),Br)});return kt(p,{src:Ut()}),jt(p,Rr({},Oe)),Tt(gt(w.infoLogs.CREATE_COLLECT_CONTAINER,wr),Xe.LOG,f(xe(l),Pr).logLevel),d(xe(l),Gr,!0),f(xe(l),ei).call(xe(l)),v().on(ce.COMPOSABLE_CONTAINER+f(xe(l),br),(function(e,t){Tt(gt(w.infoLogs.INITIALIZE_COMPOSABLE_CLIENT,wr),Xe.LOG,f(xe(l),Pr).logLevel),t({client:f(xe(l),Mr).clientJSON,context:i}),d(xe(l),Wr,!0)})),l}return u(n)}(Ft);const ni=ti;var oi;function ri(e,t,n){return function(e,t){if(e!==t)throw new TypeError("Private static access of wrong provenance")}(e,t),function(e,t){if(void 0===e)throw new TypeError("attempted to "+t+" private static field before its declaration")}(n,"get"),function(e,t){if(t.get)return t.get.call(e);return t.value}(e,n)}var ii=function(){function e(){s(this,e)}return u(e,null,[{key:"getBrowserDetails",value:function(){return{browser_accept_header:"application/json",browser_color_depth:String(window.screen.colorDepth),browser_screen_height:window.screen.height,browser_screen_width:window.screen.width,browser_user_agent:window.navigator.userAgent,browser_java_enabled:window.navigator.javaEnabled(),browser_language:window.navigator.language,browser_tz:(new Date).getTimezoneOffset(),browser_javascript_enabled:!0,accept_language:Me(navigator.languages)}}}]),e}();oi=ii,c(ii,"showChallenge",(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"05",o=arguments.length>3?arguments[3]:void 0;if(!e)throw new Rt(He.INVALID_FIELD_SHOW_3DS_CHALLEGNGE,["acsUrl"],!0);if(!t)throw new Rt(He.INVALID_FIELD_SHOW_3DS_CHALLEGNGE,["cReq"],!0);if(o&&!(o instanceof HTMLElement))throw new Rt(He.INVALID_FIELD_SHOW_3DS_CHALLEGNGE,["container"],!0);var r=ri(oi,oi,ai).call(oi,n),i=ri(oi,oi,li).call(oi,o||document.body,"threeDSCReqIFrame","threeDSCReqIframe",r[0],r[1]);return i.sandbox.add("allow-pointer-lock"),ri(oi,oi,ci).call(oi,e,t,i),i}));var ai={writable:!0,value:function(){switch(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"05"){case"01":return["250px","400px"];case"02":return["390px","400px"];case"03":return["500px","600px"];case"04":return["600px","400px"];case"05":return["100%","100%"];default:throw new Rt(He.INVALID_FIELD_SHOW_3DS_CHALLEGNGE,["challengeWindowSize"],!0)}}},li={writable:!0,value:function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"0",r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"0",i=document.createElement("iframe");return i.width=o,i.height=r,i.name=t,i.setAttribute("id",n),i.setAttribute("frameborder","0"),i.setAttribute("border","0"),i.setAttribute("style","overflow:hidden; position:absolute"),i.setAttribute("allowfullscreen","false"),i.setAttribute("allowpaymentrequest","false"),i.setAttribute("allow","payment; publickey-credentials-get"),i.sandbox.add("allow-forms","allow-scripts","allow-same-origin"),e.appendChild(i),i}},ci={writable:!0,value:function(e,t,n){var o=document.createElement("html"),r=document.createElement("body"),i=ri(oi,oi,si).call(oi,"challengeRequestForm",e,n.name,"creq",encodeURIComponent(t));return r.appendChild(i),o.appendChild(r),n.appendChild(o),i.submit(),n}},si={writable:!0,value:function(e,t,n,o,r){var i=document.createElement("form");i.name=e,i.action=t,i.method="POST",i.target=n,i.enctype="application/x-www-form-urlencoded";var a=document.createElement("input");return a.name=o,a.value=r,i.appendChild(a),i.style.display="none",i}};const pi=ii;function ui(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 Ei=new WeakMap,di=new WeakMap,fi=new WeakMap,_i=new WeakMap;const vi=function(){function e(t,n,o){var r,i,a,l,p=this;s(this,e),ui(this,Ei,{writable:!0,value:void 0}),ui(this,di,{writable:!0,value:void 0}),ui(this,fi,{writable:!0,value:void 0}),c(this,"type",null!==(r=null==Na?void 0:Na.COMPOSABLE)&&void 0!==r?r:"COMPOSABLE"),ui(this,_i,{writable:!0,value:!1}),d(this,Ei,null!=t?t:""),d(this,fi,null!=o?o:""),d(this,di,n),null===(i=f(this,di))||void 0===i||null===(a=i.on)||void 0===a||a.call(i,"".concat(null!==(l=null==Ye?void 0:Ye.READY)&&void 0!==l?l:"READY",":").concat(f(this,Ei)),(function(){d(p,_i,!0)}))}return u(e,[{key:"iframeName",value:function(){var e;return null!==(e=f(this,fi))&&void 0!==e?e:""}},{key:"getID",value:function(){var e;return null!==(e=f(this,Ei))&&void 0!==e?e:""}},{key:"renderFile",value:function(){var e=this;return new Promise((function(t,n){var o,r,i;null===(o=f(e,di))||void 0===o||null===(r=o._emit)||void 0===r||r.call(o,"".concat(null!==(i=null==ce?void 0:ce.RENDER_FILE_REQUEST)&&void 0!==i?i:"",":").concat(f(e,Ei)),{},(function(e){null!=e&&e.errors?n(e):t(e)}))}))}}]),e}();function mi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Ii(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mi(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yi(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=Ve(e);if(t){var r=Ve(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return ke(this,n)}}function Oi(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 Li="RevealElementInteranalElement",Ni=new WeakMap,Ti=new WeakMap,gi=new WeakMap,hi=new WeakMap,Ri=new WeakMap,Ai=new WeakMap,Si=new WeakMap,wi=new WeakMap,bi=new WeakMap,Di=new WeakMap,Mi=new WeakMap,xi=new WeakMap,Ci=new WeakMap,Pi=new WeakMap,ki=new WeakMap,Vi=new WeakMap,Ui=new WeakMap,ji=new WeakMap,Fi=new WeakMap,Gi=new WeakMap,Yi=function(e){Pe(n,e);var t=yi(n);function n(e,o,r,i){var a,l,c,p,u,E,_,I,y,O,L,N=arguments.length>4&&void 0!==arguments[4]&&arguments[4],T=arguments.length>5?arguments[5]:void 0;(s(this,n),Oi(xe(O=t.call(this)),Ni,{writable:!0,value:void 0}),Oi(xe(O),Ti,{writable:!0,value:void 0}),Oi(xe(O),gi,{writable:!0,value:void 0}),Oi(xe(O),hi,{writable:!0,value:void 0}),Oi(xe(O),Ri,{writable:!0,value:!1}),Oi(xe(O),Ai,{writable:!0,value:!1}),Oi(xe(O),Si,{writable:!0,value:void 0}),Oi(xe(O),wi,{writable:!0,value:void 0}),Oi(xe(O),bi,{writable:!0,value:!1}),Oi(xe(O),Di,{writable:!0,value:void 0}),Oi(xe(O),Mi,{writable:!0,value:void 0}),Oi(xe(O),xi,{writable:!0,value:void 0}),Oi(xe(O),Ci,{writable:!0,value:void 0}),Oi(xe(O),Pi,{writable:!0,value:!1}),Oi(xe(O),ki,{writable:!0,value:void 0}),Oi(xe(O),Vi,{writable:!0,value:null}),Oi(xe(O),Ui,{writable:!0,value:void 0}),Oi(xe(O),ji,{writable:!0,value:void 0}),Oi(xe(O),Fi,{writable:!0,value:!1}),Oi(xe(O),Gi,{writable:!0,value:function(e,t){if(f(xe(O),Vi)){var n,o,r,i=null===(n=f(xe(O),Vi))||void 0===n?void 0:n.getElementById(null===(o=f(xe(O),Ni))||void 0===o?void 0:o.name);null==i||null===(r=i.contentWindow)||void 0===r||r.postMessage(Ii({name:e},t),null==Et?void 0:Et.IFRAME_SECURE_ORIGIN)}else{var a,l,c,s=null===(a=document)||void 0===a?void 0:a.getElementById(null===(l=f(xe(O),Ni))||void 0===l?void 0:l.name);null==s||null===(c=s.contentWindow)||void 0===c||c.postMessage(Ii({name:e},t),null==Et?void 0:Et.IFRAME_SECURE_ORIGIN)}}}),d(xe(O),wi,e),d(xe(O),Ti,r),d(xe(O),Ci,null===(a=f(xe(O),Ti))||void 0===a?void 0:a.uuid),d(xe(O),ki,N),d(xe(O),gi,o),d(xe(O),hi,null==i?void 0:i.containerId),d(xe(O),bi,null===(l=null==i?void 0:i.isMounted)||void 0===l||l),d(xe(O),Di,null==i?void 0:i.eventEmitter),d(xe(O),Si,T),d(xe(O),Ni,new zt("".concat(F,":").concat(btoa(m())),r,f(xe(O),hi),null===(c=f(xe(O),Si))||void 0===c?void 0:c.logLevel)),d(xe(O),xi,""),d(xe(O),Mi,!1),d(xe(O),bi,!0),d(xe(O),Ui,null==r?void 0:r.getSkyflowBearerToken),d(xe(O),Pi,null!==(p=null==r||null===(u=r.skyflowContainer)||void 0===u?void 0:u.isControllerFrameReady)&&void 0!==p&&p),null===v()||void 0===v()||v().on(le.HEIGHT+(null===(E=f(xe(O),Ni))||void 0===E?void 0:E.name),(function(e){var t;null===(t=f(xe(O),Ni))||void 0===t||t.setIframeHeight(null==e?void 0:e.height)})),null===(_=window)||void 0===_||_.addEventListener("message",(function(e){var t;(null==e||null===(t=e.data)||void 0===t?void 0:t.type)===ce.RENDER_MOUNTED+f(xe(O),hi)&&d(xe(O),Fi,!0)})),null===(I=window)||void 0===I||I.addEventListener("message",(function(e){var t,n,o,r;(null==e||null===(t=e.data)||void 0===t?void 0:t.type)===ce.HEIGHT_CALLBACK+(null===(n=f(xe(O),Ni))||void 0===n?void 0:n.name)&&(null===(o=f(xe(O),Ni))||void 0===o||o.setIframeHeight(null==e||null===(r=e.data)||void 0===r||null===(r=r.data)||void 0===r?void 0:r.height))})),null!==(y=f(xe(O),gi))&&void 0!==y&&y.rows)&&O.setupRenderFileEventListener(null===(L=O.getRecordData())||void 0===L?void 0:L.rows);return O}return u(n,[{key:"setupRenderFileEventListener",value:function(e){var t=this;if(null==e||!e.length)throw new Rt(He.INVALID_REVEAL_COMPOSABLE_INPUT,["COMPOSABLE_REVEAL"],!0);try{null==e||e.forEach((function(e){var n;null==e||null===(n=e.elements)||void 0===n||n.forEach((function(e){var n;null!=e&&e.name&&(null===(n=f(t,Di))||void 0===n||n.on("".concat(null==ce?void 0:ce.RENDER_FILE_REQUEST,":").concat(null==e?void 0:e.name),(function(n,o){var r;null===(r=t.renderFile(e))||void 0===r||null===(r=r.then((function(e){null==o||o(e)})))||void 0===r||r.catch((function(e){null==o||o({error:e})}))})))}))}))}catch(e){throw new Rt(He.INVALID_REVEAL_COMPOSABLE_INPUT,["COMPOSABLE_REVEAL"],!0)}}},{key:"getID",value:function(){return f(this,wi)}},{key:"mount",value:function(e){var t,n,o=this;if(!e)throw new Rt(He.EMPTY_ELEMENT_IN_MOUNT,["RevealElement"],!0);if(Xt(f(this,wi),W,e),null!==(t=f(this,Ti))&&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=f(this,Ti).clientJSON.config)&&void 0!==n&&null!==(n=n.options)&&void 0!==n&&n.trackingKey&&Ht(f(this,wi)),d(this,bi,!0),f(this,bi)&&(f(this,Ni).mount(e,void 0,{record:JSON.stringify(Ii(Ii({},f(this,Ti)),{},{record:f(this,gi),context:f(this,Si),containerId:f(this,hi)}))}),v().target(Et.IFRAME_SECURE_ORIGIN).on(le.MOUNTED+f(this,Ni).name,(function(){d(o,Ri,!0),f(o,gi).skyflowID?(v().emit(Ee+f(o,hi),{skyflowID:f(o,gi).skyflowID,containerId:f(o,hi)}),Xt(f(o,wi),z,Date.now()),Xt(f(o,wi),H,Y.MOUNTED)):(v().emit(Ee+f(o,hi),{id:f(o,gi).token,containerId:f(o,hi)}),Xt(f(o,wi),z,Date.now()),Xt(f(o,wi),H,Y.MOUNTED)),Object.prototype.hasOwnProperty.call(f(o,gi),"skyflowID")&&v().emit(le.HEIGHT+f(o,Ni).name,{},(function(e){f(o,Ni).setIframeHeight(e.height)}))})),Xt(f(this,wi),H,Y.READY),Xt(f(this,wi),q,Date.now())),e instanceof HTMLElement&&e.getRootNode()instanceof ShadowRoot)d(this,Vi,e.getRootNode());else if("string"==typeof e){var r=document.getElementById(e);r&&r.getRootNode()instanceof ShadowRoot&&d(this,Vi,r.getRootNode())}}},{key:"renderFile",value:function(e){var t=this,n="";Object.prototype.hasOwnProperty.call(e,"altText")&&(n=e.altText),this.setAltText("loading...");var o=f(this,Si).logLevel;return f(this,Fi)?new Promise((function(r,i){try{var a;at(f(t,Ti).clientJSON.config),Tt(gt(w.infoLogs.VALIDATE_RENDER_RECORDS,Li),Xe.LOG,o),ot(e),null===(a=f(t,Ui).call(t))||void 0===a||a.then((function(o){var a;Tt(gt(w.infoLogs.BEARER_TOKEN_RESOLVED,Li),Xe.LOG,f(t,Si).logLevel),f(t,Gi).call(t,ce.REVEAL_CALL_REQUESTS+e.name,{data:{type:ae,containerId:f(t,hi),iframeName:e.name},clientConfig:{vaultURL:f(t,Ti).clientJSON.config.vaultURL,vaultID:f(t,Ti).clientJSON.config.vaultID,authToken:o}}),null===(a=window)||void 0===a||a.addEventListener("message",(function(o){var a,l;if(null!=o&&o.data&&(null==o||null===(a=o.data)||void 0===a?void 0:a.type)===ce.REVEAL_CALL_RESPONSE+e.name&&(null==o||null===(l=o.data)||void 0===l||null===(l=l.data)||void 0===l?void 0:l.type)===ae){var c,s=null==o||null===(c=o.data)||void 0===c||null===(c=c.data)||void 0===c?void 0:c.result;null!=s&&s.error?(Tt(gt(w.errorLogs.FAILED_RENDER),Xe.ERROR,f(t,Si).logLevel),Object.prototype.hasOwnProperty.call(e,"altText")&&t.setAltText(n),i(s)):(Tt(gt(w.infoLogs.RENDER_SUBMIT_SUCCESS,Li),Xe.LOG,f(t,Si).logLevel),Tt(gt(w.infoLogs.FILE_RENDERED,Li,e.skyflowID),Xe.LOG,f(t,Si).logLevel),r(s))}}))})).catch((function(e){Tt("".concat(e.message),Xe.ERROR,f(t,Si).logLevel),i(e)})),Tt(gt(w.infoLogs.EMIT_EVENT,Li,ce.RENDER_FILE_REQUEST),Xe.LOG,o)}catch(e){Tt("Error: ".concat(e.message),Xe.ERROR,o),i(e)}})):new Promise((function(r,i){try{at(f(t,Ti).clientJSON.config),Tt(gt(w.infoLogs.VALIDATE_RENDER_RECORDS,Li),Xe.LOG,o),ot(e),window.addEventListener("message",(function(o){var a;o.data.type===ce.RENDER_MOUNTED+f(t,hi)&&(d(t,Ri,!0),null===(a=f(t,Ui).call(t))||void 0===a||a.then((function(o){Tt(gt(w.infoLogs.BEARER_TOKEN_RESOLVED,Li),Xe.LOG,f(t,Si).logLevel),f(t,Gi).call(t,ce.REVEAL_CALL_REQUESTS+e.name,{data:{type:ae,containerId:f(t,hi),iframeName:e.name},clientConfig:{vaultURL:f(t,Ti).clientJSON.config.vaultURL,vaultID:f(t,Ti).clientJSON.config.vaultID,authToken:o}}),window.addEventListener("message",(function(o){var a,l;if(null!=o&&o.data&&(null==o||null===(a=o.data)||void 0===a?void 0:a.type)===ce.REVEAL_CALL_RESPONSE+f(t,Ni).name&&(null==o||null===(l=o.data)||void 0===l||null===(l=l.data)||void 0===l?void 0:l.type)===ae){var c,s=null==o||null===(c=o.data)||void 0===c||null===(c=c.data)||void 0===c?void 0:c.result;null!=s&&s.error?(Tt(gt(w.errorLogs.FAILED_RENDER),Xe.ERROR,f(t,Si).logLevel),Object.prototype.hasOwnProperty.call(e,"altText")&&t.setAltText(n),i(s)):(Tt(gt(w.infoLogs.RENDER_SUBMIT_SUCCESS,Li),Xe.LOG,f(t,Si).logLevel),Tt(gt(w.infoLogs.FILE_RENDERED,Li,e.skyflowID),Xe.LOG,f(t,Si).logLevel),r(s))}}))})).catch((function(e){Tt("".concat(null==e?void 0:e.message),Xe.ERROR,f(t,Si).logLevel),i(e)})))})),Tt(gt(w.infoLogs.EMIT_EVENT,Li,ce.RENDER_FILE_REQUEST),Xe.LOG,o)}catch(e){Tt("Error: ".concat(null==e?void 0:e.message),Xe.ERROR,o),i(e)}}))}},{key:"iframeName",value:function(){return f(this,Ni).name}},{key:"isMounted",value:function(){return f(this,Ri)}},{key:"hasToken",value:function(){return!!f(this,gi).token}},{key:"isClientSetError",value:function(){return f(this,Ai)}},{key:"getRecordData",value:function(){return f(this,gi)}},{key:"setErrorOverride",value:function(e){var t=this;f(this,Ri)?v().emit(ce.REVEAL_ELEMENT_SET_ERROR+f(this,Ni).name,{name:f(this,Ni).name,isTriggerError:!0,clientErrorText:e}):v().target(Et.IFRAME_SECURE_ORIGIN).on(le.MOUNTED+f(this,Ni).name,(function(){v().emit(ce.REVEAL_ELEMENT_SET_ERROR+f(t,Ni).name,{name:f(t,Ni).name,isTriggerError:!0,clientErrorText:e})})),d(this,Ai,!0)}},{key:"setError",value:function(e){var t=this;f(this,Ri)?v().emit(ce.REVEAL_ELEMENT_SET_ERROR+f(this,Ni).name,{name:f(this,Ni).name,isTriggerError:!0,clientErrorText:e}):v().target(Et.IFRAME_SECURE_ORIGIN).on(le.MOUNTED+f(this,Ni).name,(function(){d(t,Ri,!0),v().emit(ce.REVEAL_ELEMENT_SET_ERROR+f(t,Ni).name,{name:f(t,Ni).name,isTriggerError:!0,clientErrorText:e})})),d(this,Ai,!0)}},{key:"resetError",value:function(){var e=this;f(this,Ri)?v().emit(ce.REVEAL_ELEMENT_SET_ERROR+f(this,Ni).name,{name:f(this,Ni).name,isTriggerError:!1}):v().target(Et.IFRAME_SECURE_ORIGIN).on(le.MOUNTED+f(this,Ni).name,(function(){d(e,Ri,!0),v().emit(ce.REVEAL_ELEMENT_SET_ERROR+f(e,Ni).name,{name:f(e,Ni).name,isTriggerError:!1})})),d(this,Ai,!1)}},{key:"setAltText",value:function(e){var t=this;f(this,Ri)?v().emit(ce.REVEAL_ELEMENT_UPDATE_OPTIONS+f(this,Ni).name,{name:f(this,Ni).name,updateType:pe,updatedValue:e}):v().target(Et.IFRAME_SECURE_ORIGIN).on(le.MOUNTED+f(this,Ni).name,(function(){d(t,Ri,!0),v().emit(ce.REVEAL_ELEMENT_UPDATE_OPTIONS+f(t,Ni).name,{name:f(t,Ni).name,updateType:pe,updatedValue:e})}))}},{key:"clearAltText",value:function(){var e=this;f(this,Ri)?v().emit(ce.REVEAL_ELEMENT_UPDATE_OPTIONS+f(this,Ni).name,{name:f(this,Ni).name,updateType:pe,updatedValue:null}):v().target(Et.IFRAME_SECURE_ORIGIN).on(le.MOUNTED+f(this,Ni).name,(function(){d(e,Ri,!0),v().emit(ce.REVEAL_ELEMENT_UPDATE_OPTIONS+f(e,Ni).name,{name:f(e,Ni).name,updateType:pe,updatedValue:null})}))}},{key:"setToken",value:function(e){var t=this;d(this,gi,Ii(Ii({},f(this,gi)),{},{token:e})),f(this,Ri)?v().emit(ce.REVEAL_ELEMENT_UPDATE_OPTIONS+f(this,Ni).name,{name:f(this,Ni).name,updateType:se,updatedValue:e}):v().target(Et.IFRAME_SECURE_ORIGIN).on(le.MOUNTED+f(this,Ni).name,(function(){d(t,Ri,!0),v().emit(ce.REVEAL_ELEMENT_UPDATE_OPTIONS+f(t,Ni).name,{name:f(t,Ni).name,updateType:se,updatedValue:e})}))}},{key:"unmount",value:function(){var e;f(this,gi).skyflowID&&(d(this,Ri,!1),null===(e=f(this,Ni).container)||void 0===e||e.remove());d(this,Ri,!1),f(this,Ni).unmount()}},{key:"update",value:function(e){var t=this;d(this,gi,Ii(Ii({},f(this,gi)),e)),f(this,Ri)?v().emit(ce.REVEAL_ELEMENT_UPDATE_OPTIONS+f(this,Ni).name,{name:f(this,Ni).name,updateType:ue,updatedValue:e}):v().target(Et.IFRAME_SECURE_ORIGIN).on(le.MOUNTED+f(this,Ni).name,(function(){d(t,Ri,!0),v().emit(ce.REVEAL_ELEMENT_UPDATE_OPTIONS+f(t,Ni).name,{name:f(t,Ni).name,updateType:ue,updatedValue:e})}))}}]),n}(Jt);const Bi=Yi;function Wi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Xi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wi(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ki(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=Ve(e);if(t){var r=Ve(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return ke(this,n)}}function Hi(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 qi="ComposableRevealContainer",zi=new WeakMap,Ji=new WeakMap,Qi=new WeakMap,Zi=new WeakMap,$i=new WeakMap,ea=new WeakMap,ta=new WeakMap,na=new WeakMap,oa=new WeakMap,ra=new WeakMap,ia=new WeakMap,aa=new WeakMap,la=new WeakMap,ca=new WeakMap,sa=new WeakMap,pa=new WeakMap,ua=new WeakMap,Ea=new WeakMap,da=new WeakMap,fa=new WeakMap,_a=new WeakMap,va=new WeakMap,ma=function(e){Pe(n,e);var t=Ki(n);function n(e,o,r,i){var a,l;s(this,n),Hi(xe(l=t.call(this)),zi,{writable:!0,value:void 0}),Hi(xe(l),Ji,{writable:!0,value:{}}),Hi(xe(l),Qi,{writable:!0,value:void 0}),Hi(xe(l),Zi,{writable:!0,value:{rows:[]}}),Hi(xe(l),$i,{writable:!0,value:[]}),Hi(xe(l),ea,{writable:!0,value:void 0}),Hi(xe(l),ta,{writable:!0,value:void 0}),Hi(xe(l),na,{writable:!0,value:void 0}),Hi(xe(l),oa,{writable:!0,value:!1}),Hi(xe(l),ra,{writable:!0,value:void 0}),Hi(xe(l),ia,{writable:!0,value:void 0}),c(xe(l),"type",Na.COMPOSE_REVEAL),Hi(xe(l),aa,{writable:!0,value:!1}),Hi(xe(l),la,{writable:!0,value:{}}),Hi(xe(l),ca,{writable:!0,value:""}),Hi(xe(l),sa,{writable:!0,value:!1}),Hi(xe(l),pa,{writable:!0,value:null}),Hi(xe(l),ua,{writable:!0,value:""}),Hi(xe(l),Ea,{writable:!0,value:[]}),Hi(xe(l),da,{writable:!0,value:void 0}),c(xe(l),"create",(function(e,t){var n,o,r,i,a=m();ut(t);var c="".concat(F,":").concat(btoa(a));null===(n=f(xe(l),$i))||void 0===n||n.push(Xi(Xi({name:c},e),{},{elementName:c,elementId:a}));var s="".concat(j,":group:").concat(btoa(null!==(o=f(xe(l),la))&&void 0!==o?o:{}),":").concat(f(xe(l),zi),":").concat(null===(r=f(xe(l),ea))||void 0===r?void 0:r.logLevel,":").concat(btoa(null!==(i=f(xe(l),ca))&&void 0!==i?i:""));return new vi(c,f(xe(l),na),s)})),Hi(xe(l),fa,{writable:!0,value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{var n,o=[];if(d(xe(l),la,Yn(e)),null===(n=f(xe(l),la))||void 0===n||null===(n=n.rows)||void 0===n||n.forEach((function(e){var t;null==e||null===(t=e.elements)||void 0===t||t.forEach((function(e){var t=null!=e?e:{};t.elementType;t.isMounted=!1,t.label=null==e?void 0:e.label,t.skyflowID=null==e?void 0:e.skyflowID,o.push(t)}))})),f(xe(l),la).elementName=t?o[0].elementName:"".concat(j,":group:").concat(btoa(f(xe(l),la))),t&&!f(xe(l),Ji)[o[0].elementName]&&f(xe(l),_a).call(xe(l),o[0].name))throw new Rt(He.UNIQUE_ELEMENT_NAME,["".concat(o[0].name)],!0);var r=f(xe(l),Ji)[f(xe(l),la).elementName];if(r)t?r.update(o[0]):r.update(f(xe(l),la));else{var i=m();try{r=new Bi(i,f(xe(l),la),f(xe(l),Qi),{containerId:f(xe(l),zi),isMounted:f(xe(l),aa),type:l.type,eventEmitter:f(xe(l),na)},!0,f(xe(l),ea)),f(xe(l),Ji)[f(xe(l),la).elementName]=r,f(xe(l),ta)[i]=r}catch(e){throw Tt(w.errorLogs.INVALID_REVEAL_COMPOSABLE_INPUT,Xe.ERROR,f(xe(l),ea).logLevel),e}}return d(xe(l),ua,r.iframeName()),r}catch(e){throw Tt(w.errorLogs.INVALID_REVEAL_COMPOSABLE_INPUT,Xe.ERROR,f(xe(l),ea).logLevel),e}}}),Hi(xe(l),_a,{writable:!0,value:function(e){for(var t=Object.keys(f(xe(l),Ji)),n=0;n<t.length;n+=1)if(atob(t[n].split(":")[2])===e)return!0;return!1}}),c(xe(l),"mount",(function(e){if(!e)throw new Rt(He.EMPTY_ELEMENT_IN_MOUNT,["RevealElement"],!0);var t=f(xe(l),ra).layout;if(gr()(t)!==f(xe(l),$i).length)throw new Rt(He.MISMATCH_ELEMENT_COUNT_LAYOUT_SUM,[],!0);var n=0;if(t.forEach((function(e,t){f(xe(l),Zi).rows=[].concat(Me(f(xe(l),Zi).rows),[{elements:[]}]);for(var o=0;o<e;o++)f(xe(l),Zi).rows[t].elements.push(f(xe(l),$i)[n]),n++})),f(xe(l),ra).styles&&(f(xe(l),Zi).styles=Xi({},f(xe(l),ra).styles)),f(xe(l),ra).errorTextStyles&&(f(xe(l),Zi).errorTextStyles=Xi({},f(xe(l),ra).errorTextStyles)),f(xe(l),aa)&&(d(xe(l),ia,f(xe(l),fa).call(xe(l),f(xe(l),Zi),!1)),f(xe(l),ia).mount(e),d(xe(l),oa,!0)),e instanceof HTMLElement&&e.getRootNode()instanceof ShadowRoot)d(xe(l),pa,e.getRootNode());else if("string"==typeof e){var o=document.getElementById(e);o&&o.getRootNode()instanceof ShadowRoot&&d(xe(l),pa,o.getRootNode())}null!==f(xe(l),pa)&&(f(xe(l),na).on(le.HEIGHT,(function(e){f(xe(l),va).call(xe(l),le.HEIGHT+e.iframeName,{})})),f(xe(l),va).call(xe(l),le.HEIGHT+f(xe(l),ua),{}))})),c(xe(l),"unmount",(function(){f(xe(l),ia).unmount()})),Hi(xe(l),va,{writable:!0,value:function(e,t,n){if(f(xe(l),pa)){var o=f(xe(l),pa).getElementById(f(xe(l),ua));null!=o&&o.contentWindow&&o.contentWindow.postMessage(Xi({name:e},t),Et.IFRAME_SECURE_ORIGIN)}else{var r=document.getElementById(f(xe(l),ua));null!=r&&r.contentWindow&&r.contentWindow.postMessage(Xi({name:e},t),Et.IFRAME_SECURE_ORIGIN)}}}),d(xe(l),zi,m()),d(xe(l),Qi,Xi(Xi({},o),{},{clientJSON:Xi(Xi({},o.clientJSON),{},{config:Xi(Xi({},o.clientJSON.config),{},{options:Xi(Xi({},null===(a=o.clientJSON.config)||void 0===a?void 0:a.options),e)})})})),d(xe(l),da,o.getSkyflowBearerToken),d(xe(l),ta,r),d(xe(l),ea,i),d(xe(l),ra,e),d(xe(l),na,new Mt),d(xe(l),ca,f(xe(l),Qi).clientDomain||"");var p=Vt({name:"".concat(U,":").concat(f(xe(l),zi),":").concat(f(xe(l),ea).logLevel,":").concat(btoa(f(xe(l),ca))),referrer:f(xe(l),ca)});return kt(p,{src:Ut()}),jt(p,Xi({},Oe)),Tt(gt(w.infoLogs.CREATE_COLLECT_CONTAINER,qi),Xe.LOG,f(xe(l),ea).logLevel),d(xe(l),aa,!0),v().on(ce.COMPOSABLE_CONTAINER+f(xe(l),zi),(function(e,t){Tt(gt(w.infoLogs.INITIALIZE_COMPOSABLE_CLIENT,qi),Xe.LOG,f(xe(l),ea).logLevel),t({client:f(xe(l),Qi).clientJSON,context:i}),d(xe(l),sa,!0)})),window.addEventListener("message",(function(e){e.data.type===le.MOUNTED+f(xe(l),zi)&&d(xe(l),sa,!0)})),l}return u(n,[{key:"reveal",value:function(){var e=this;return d(this,Ea,[]),f(this,sa)?new Promise((function(t,n){try{var o;if(at(f(e,Qi).clientJSON.config),!f(e,$i)||0===f(e,$i).length)throw new Rt(He.NO_ELEMENTS_IN_COMPOSABLE,[],!0);Tt(gt(w.infoLogs.VALIDATE_REVEAL_RECORDS,qi),Xe.LOG,f(e,ea).logLevel),f(e,$i).forEach((function(t){t.skyflowID||f(e,Ea).push(t)})),nt(f(e,Ea));var r=[];f(e,$i).forEach((function(e){r.push({frameId:e.name,token:e.token})})),null===(o=f(e,da).call(e))||void 0===o||o.then((function(o){var i,a,l;Tt(gt(w.infoLogs.BEARER_TOKEN_RESOLVED,qi),Xe.LOG,f(e,ea).logLevel),f(e,va).call(e,ce.COMPOSABLE_REVEAL+f(e,zi),{data:{type:ie,containerId:f(e,zi),elementIds:r},clientConfig:{vaultURL:null===(i=f(e,Qi))||void 0===i||null===(i=i.clientJSON)||void 0===i||null===(i=i.config)||void 0===i?void 0:i.vaultURL,vaultID:null===(a=f(e,Qi))||void 0===a||null===(a=a.clientJSON)||void 0===a||null===(a=a.config)||void 0===a?void 0:a.vaultID,authToken:o},context:f(e,ea)}),null===(l=window)||void 0===l||l.addEventListener("message",(function(o){var r;if((null==o||null===(r=o.data)||void 0===r?void 0:r.type)===ce.REVEAL_RESPONSE_READY+f(e,zi)){var i,a,l,c,s,p=null==o||null===(i=o.data)||void 0===i?void 0:i.data;if(null!=p&&p.errors)Tt(gt(null==w||null===(a=w.errorLogs)||void 0===a?void 0:a.FAILED_REVEAL),Xe.ERROR,null===(l=f(e,ea))||void 0===l?void 0:l.logLevel),n(p);else Tt(gt(null==w||null===(c=w.infoLogs)||void 0===c?void 0:c.REVEAL_SUBMIT_SUCCESS,qi),Xe.LOG,null===(s=f(e,ea))||void 0===s?void 0:s.logLevel),t(p)}}))})).catch((function(t){Tt("".concat(t.message),Xe.ERROR,f(e,ea).logLevel),n(t)}))}catch(t){Tt("Error: ".concat(t.message),Xe.ERROR,f(e,ea).logLevel),n(t)}})):new Promise((function(t,n){try{var o;if(at(f(e,Qi).clientJSON.config),!f(e,$i)||0===f(e,$i).length)throw new Rt(He.NO_ELEMENTS_IN_COMPOSABLE,[],!0);Tt(gt(w.infoLogs.VALIDATE_REVEAL_RECORDS,qi),Xe.LOG,f(e,ea).logLevel),f(e,$i).forEach((function(t){t.skyflowID||f(e,Ea).push(t)})),nt(f(e,Ea));var r=[];f(e,$i).forEach((function(e){r.push({frameId:e.name,token:e.token})})),null===(o=f(e,da).call(e))||void 0===o||o.then((function(o){Tt(gt(w.infoLogs.BEARER_TOKEN_RESOLVED,qi),Xe.LOG,f(e,ea).logLevel),window.addEventListener("message",(function(i){i.data.type===le.MOUNTED+f(e,zi)&&(f(e,va).call(e,ce.COMPOSABLE_REVEAL+f(e,zi),{data:{type:ie,containerId:f(e,zi),elementIds:r},clientConfig:{vaultURL:f(e,Qi).clientJSON.config.vaultURL,vaultID:f(e,Qi).clientJSON.config.vaultID,authToken:o},context:f(e,ea)}),window.addEventListener("message",(function(o){if(o.data.type===ce.REVEAL_RESPONSE_READY+f(e,zi)){var r=o.data.data;r.errors?(Tt(gt(w.errorLogs.FAILED_REVEAL),Xe.ERROR,f(e,ea).logLevel),n(r)):(Tt(gt(w.infoLogs.REVEAL_SUBMIT_SUCCESS,qi),Xe.LOG,f(e,ea).logLevel),t(r))}})))}))})).catch((function(t){Tt("".concat(t.message),Xe.ERROR,f(e,ea).logLevel),n(t)}))}catch(t){Tt("Error: ".concat(t.message),Xe.ERROR,f(e,ea).logLevel),n(t)}}))}}]),n}(Ft);const Ia=ma;function ya(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Oa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ya(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ya(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function La(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 Na=function(e){return e.COLLECT="COLLECT",e.REVEAL="REVEAL",e.COMPOSABLE="COMPOSABLE",e.COMPOSE_REVEAL="COMPOSABLE_REVEAL",e}({}),Ta="Skyflow",ga=new WeakMap,ha=new WeakMap,Ra=new WeakMap,Aa=new WeakMap,Sa=new WeakMap,wa=new WeakMap,ba=new WeakMap,Da=new WeakMap,Ma=new WeakMap,xa=new WeakMap,Ca=function(){function e(t){var n,o,r=this;s(this,e),La(this,ga,{writable:!0,value:void 0}),La(this,ha,{writable:!0,value:m()}),La(this,Ra,{writable:!0,value:{uuid:f(this,ha),clientDomain:window.location.origin}}),La(this,Aa,{writable:!0,value:void 0}),La(this,Sa,{writable:!0,value:""}),La(this,wa,{writable:!0,value:void 0}),La(this,ba,{writable:!0,value:void 0}),La(this,Da,{writable:!0,value:void 0}),La(this,Ma,{writable:!0,value:void 0}),La(this,xa,{writable:!0,value:function(){return new Promise((function(e,t){!f(r,ga).config.getBearerToken||f(r,Sa)&&dr(f(r,Sa))?(Tt(gt(w.infoLogs.REUSE_BEARER_TOKEN,Ta),Xe.LOG,f(r,ba)),e(f(r,Sa))):f(r,ga).config.getBearerToken().then((function(n){dr(n)?(Tt(gt(w.infoLogs.BEARER_TOKEN_RESOLVED,Ta),Xe.LOG,f(r,ba)),d(r,Sa,n),e(f(r,Sa))):(Tt(gt(w.errorLogs.INVALID_BEARER_TOKEN),Xe.ERROR,f(r,ba)),t({error:gt(w.errorLogs.INVALID_BEARER_TOKEN)}))})).catch((function(e){Tt(gt(w.errorLogs.BEARER_TOKEN_REJECTED),Xe.ERROR,f(r,ba)),t({error:e})}))}))}});var i=localStorage.getItem("sdk_version")||"";f(this,Ra).sdkVersion=i,f(this,Ra).session_id=m(),d(this,ga,new Dt(Oa({},t),f(this,Ra))),d(this,ba,(null==t||null===(n=t.options)||void 0===n?void 0:n.logLevel)||Be.ERROR),d(this,Da,(null==t||null===(o=t.options)||void 0===o?void 0:o.env)||We.PROD),d(this,Ma,{}),d(this,Aa,new Nr(f(this,ga),{logLevel:f(this,ba),env:f(this,Da)}));v().target(Et.IFRAME_SECURE_ORIGIN).on(ce.GET_BEARER_TOKEN+f(this,ha),(function(e,t){Tt(gt(w.infoLogs.CAPTURED_BEARER_TOKEN_EVENT,Ta),Xe.LOG,f(r,ba)),!f(r,ga).config.getBearerToken||f(r,Sa)&&dr(f(r,Sa))?(Tt(gt(w.infoLogs.REUSE_BEARER_TOKEN,Ta),Xe.LOG,f(r,ba)),t({authToken:f(r,Sa)})):f(r,ga).config.getBearerToken().then((function(e){dr(e)?(Tt(gt(w.infoLogs.BEARER_TOKEN_RESOLVED,Ta),Xe.LOG,f(r,ba)),d(r,Sa,e),t({authToken:f(r,Sa)})):(Tt(gt(w.errorLogs.INVALID_BEARER_TOKEN),Xe.ERROR,f(r,ba)),t({error:gt(w.errorLogs.INVALID_BEARER_TOKEN)}))})).catch((function(e){Tt(gt(w.errorLogs.BEARER_TOKEN_REJECTED),Xe.ERROR,f(r,ba)),t({error:e})}))})),Tt(gt(w.infoLogs.BEARER_TOKEN_LISTENER,Ta),Xe.LOG,f(this,ba)),Tt(gt(w.infoLogs.CURRENT_ENV,Ta,f(this,Da)),Xe.LOG,f(this,ba)),Tt(gt(w.infoLogs.CURRENT_LOG_LEVEL,Ta,f(this,ba)),Xe.LOG,f(this,ba))}return u(e,[{key:"container",value:function(e,t){switch(e){case Na.COLLECT:var n=new lr(t,Oa(Oa({},f(this,Ra)),{},{clientJSON:f(this,ga).toJSON(),containerType:e,skyflowContainer:f(this,Aa)}),f(this,Ma),{logLevel:f(this,ba),env:f(this,Da)});return Tt(gt(w.infoLogs.COLLECT_CONTAINER_CREATED,Ta),Xe.LOG,f(this,ba)),n;case Na.REVEAL:var o=new Gn(Oa(Oa({},f(this,Ra)),{},{clientJSON:f(this,ga).toJSON(),containerType:e,skyflowContainer:f(this,Aa),getSkyflowBearerToken:f(this,xa)}),f(this,Ma),{logLevel:f(this,ba)},t);return Tt(gt(w.infoLogs.REVEAL_CONTAINER_CREATED,Ta),Xe.LOG,f(this,ba)),o;case Na.COMPOSABLE:st(t);var r=new ni(t,Oa(Oa({},f(this,Ra)),{},{clientJSON:f(this,ga).toJSON(),containerType:e,skyflowContainer:f(this,Aa),getSkyflowBearerToken:f(this,xa)}),f(this,Ma),{logLevel:f(this,ba),env:f(this,Da)});return Tt(gt(w.infoLogs.COLLECT_CONTAINER_CREATED,Ta),Xe.LOG,f(this,ba)),r;case Na.COMPOSE_REVEAL:st(t);var i=new Ia(t,Oa(Oa({},f(this,Ra)),{},{clientJSON:f(this,ga).toJSON(),containerType:e,skyflowContainer:f(this,Aa),getSkyflowBearerToken:f(this,xa)}),f(this,Ma),{logLevel:f(this,ba),env:f(this,Da)});return Tt(gt(w.infoLogs.REVEAL_CONTAINER_CREATED,Ta),Xe.LOG,f(this,ba)),i;default:if(!e)throw new Rt(He.EMPTY_CONTAINER_TYPE,[],!0);throw new Rt(He.INVALID_CONTAINER_TYPE,[e],!0)}}},{key:"insert",value:function(e,t){return Tt(gt(w.infoLogs.INSERT_TRIGGERED,Ta),Xe.LOG,f(this,ba)),f(this,Aa).insert(e,t)}},{key:"detokenize",value:function(e){return Tt(gt(w.infoLogs.DETOKENIZE_TRIGGERED,Ta),Xe.LOG,f(this,ba)),f(this,Aa).detokenize(e)}},{key:"getById",value:function(e){return Tt(w.warnLogs.GET_BY_ID_DEPRECATED,Xe.WARN,f(this,ba)),Tt(gt(w.infoLogs.GET_BY_ID_TRIGGERED,Ta),Xe.LOG,f(this,ba)),f(this,Aa).getById(e)}},{key:"get",value:function(e,t){return Tt(gt(w.infoLogs.GET_TRIGGERED,Ta),Xe.LOG,f(this,ba)),f(this,Aa).get(e,t)}},{key:"delete",value:function(e,t){return Tt(gt(w.infoLogs.DELETE_TRIGGERED,Ta),Xe.LOG,f(this,ba)),f(this,Aa).delete(e,t)}}],[{key:"init",value:function(t){var n,o=(null==t||null===(n=t.options)||void 0===n?void 0:n.logLevel)||Be.ERROR;!function(e){var t,n;if(null!=e&&null!==(t=e.options)&&void 0!==t&&t.customElementsURL&&rt(null==e||null===(n=e.options)||void 0===n?void 0:n.customElementsURL)){var o,r,i=null==e||null===(o=e.options)||void 0===o?void 0:o.customElementsURL,a=new URL(i),l=a.protocol,c=a.hostname,s="".concat(l,"//").concat(c);Et.IFRAME_SECURE_ORIGIN=s,Et.IFRAME_SECURE_SITE=null==e||null===(r=e.options)||void 0===r?void 0:r.customElementsURL}}(t),Tt(gt(w.infoLogs.INITIALIZE_CLIENT,Ta),Xe.LOG,o);var r,i=t;i.vaultURL="string"!=typeof(r=t.vaultURL)?r:"/"===(null==r?void 0:r.trim().slice(-1))?r.slice(0,-1):r.trim();var a=new e(i);return Tt(gt(w.infoLogs.CLIENT_INITIALIZED,Ta),Xe.LOG,o),a}},{key:"ContainerType",get:function(){return Na}},{key:"ElementType",get:function(){return fe}},{key:"RedactionType",get:function(){return Fe}},{key:"RequestMethod",get:function(){return Ge}},{key:"LogLevel",get:function(){return Be}},{key:"EventName",get:function(){return Ye}},{key:"Env",get:function(){return We}},{key:"ValidationRuleType",get:function(){return Ke}},{key:"CardType",get:function(){return _e}},{key:"Error",get:function(){return Rt}},{key:"ThreeDS",get:function(){return pi}}]),e}();const Pa=Ca,ka=Ca})(),o})()));
|