@alipay/ams-checkout 0.0.1788166152-dev.3 → 0.0.1788166152-dev.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var r=t();for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(self,(function(){return function(){var e={381:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,u)}c((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=u(0),a.throw=u(1),a.return=u(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function u(u){return function(c){return function(u){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&u[0]?n.return:u[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,u[1])).done)return o;switch(n=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,n=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],n=0}finally{r=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.loadScript=void 0,t.createSingletonInstance=c,t.createInstance=s,t.createLoader=function(e){var t=this,r=e.sdkURL,u=e.globalName,l=e.timeout,f=void 0===l?2e4:l,p=e.onLoadComplete,d=e.onError,h=e.onLoadStart,v=e.onInitialized,m=e.single,y=void 0===m||m,w=e.namespace;return function(e){return n(t,void 0,void 0,(function(){var t,l,m=this;return o(this,(function(g){var b,x;return null==h||h(),t=Date.now(),i.tracker.log({code:"7988",msg:w,d1:"loadStart",d2:"无",d3:"无",d4:"无",d5:"npm",m1:0,m2:0}),b=function(){return(0,a.loadScriptClass)(r,u)},x=f,l=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Promise.race([new Promise((function(e,t){setTimeout((function(){t(new a.LoaderError("LOAD_TIMEOUT","Load timeout: ".concat(x)))}),x)})),b.apply(void 0,e)])},[2,l().then((function(r){return n(m,[r],void 0,(function(r){var n,l,f,d=r.variable,h=r.cache;return o(this,(function(r){switch(r.label){case 0:if(n=Date.now(),h||i.tracker.log({code:"7988",msg:w,d1:"loadComplete",d2:"无",d3:"无",d4:(null==d?void 0:d.version)||"无",d5:"npm",m1:Math.round(Date.now()-t),m2:0}),null==p||p(),!d)throw new a.LoaderError("NO_REMOTE_CLASS","No variables ".concat(u," were found. Cannot be initialized the Class ").concat(u));r.label=1;case 1:return r.trys.push([1,3,,4]),[4,(y?c:s)(d,e,void 0)];case 2:return l=r.sent(),i.tracker.log({code:"7988",msg:w,d1:"initialized",d2:"无",d3:"无",d4:l.version||"无版本号",d5:"npm",m1:Math.round(Date.now()-t),m2:Math.round(Date.now()-n)}),null==v||v(l,window.location.href),[2,l];case 3:throw f=r.sent(),new a.LoaderError("INIT_ERROR","Initialize Class ".concat(u," failed: ").concat(f.message));case 4:return[2]}}))}))})).catch((function(e){var r=a.LoaderError.unificationError(e);return i.tracker.log({code:"7988",msg:w,d1:"createError",d2:r.code,d3:r.message,d4:"无",d5:"npm",m1:Math.round(Date.now()-t),m2:0}),null==d||d(r),Promise.reject(e)}))]}))}))}};var i=r(159),a=r(858);Object.defineProperty(t,"loadScript",{enumerable:!0,get:function(){return a.loadScript}});var u=null;function c(e,t,r){return u=u?u.then((function(n){return n.isDestroyed?s(e,t,r):n})):s(e,t,r)}function s(e,t,r){var n=new e(t),o=Date.now();return n.init().then((function(e){return r&&i.tracker.log({code:"7988",msg:r,d1:"initialized",d2:"无",d3:"无",d4:n.version||"无版本号",d5:"umd",m1:Math.round(Date.now()-o),m2:Math.round(Date.now()-o)}),e})).catch((function(e){var t=new a.LoaderError("INIT_ERROR","Initialize Class failed: ".concat(e.message));throw r&&i.tracker.log({code:"7988",msg:r,d1:"createError",d2:t.code,d3:t.message,d4:"无",d5:"umd",m1:Math.round(Date.now()-o),m2:0}),t}))}},159:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,u)}c((n=n.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=u(0),a.throw=u(1),a.return=u(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function u(u){return function(c){return function(u){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&u[0]?n.return:u[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,u[1])).done)return o;switch(n=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,n=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],n=0}finally{r=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.tracker=t.ScriptTracker=void 0;var a=r(858),u=function(){function e(e){Object.defineProperty(this,"initOptions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"tracker",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.initOptions=e}return Object.defineProperty(e.prototype,"loadTacker",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this;return(0,a.loadScript)("https://cdn.marmot-cloud.com/tnpm-package/@antintl-intl-tracker/1.3.0/dist/common.min.js","CompatibleTrackerFull").then((function(t){var r=null==t?void 0:t.variable;if(r)return new r(n({compactExtraInfo:!0,appId:"180020050100012557"},e.initOptions))})).catch((function(){}))}}),Object.defineProperty(e.prototype,"getTracker",{enumerable:!1,configurable:!0,writable:!0,value:function(){return o(this,void 0,void 0,(function(){var e;return i(this,(function(t){switch(t.label){case 0:return this.tracker?[2,this.tracker]:[4,this.loadTacker()];case 1:return(e=t.sent())&&(e.set({keyFormat:"origin",userPathAuto:!1}),this.tracker=e),[2,e]}}))}))}}),Object.defineProperty(e.prototype,"safeCall",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this.getTracker().then(e)}}),Object.defineProperty(e.prototype,"log",{enumerable:!1,configurable:!0,writable:!0,value:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.safeCall((function(t){return null==t?void 0:t.log.apply(t,e)}))}}),e}();t.ScriptTracker=u;var c=(null==="DEV"?void 0:"DEV".toUpperCase())||"PROD",s=["DEV","SIT","PRE","PROD","LOCAL"].includes(c)?c:"PROD";t.tracker=new u({appId:"180020050100012557",env:s,server:"sg",performance:!1,error:!1})},858:function(e,t){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.LoaderError=void 0,t.loadScriptClass=function(e,t){return i(e,t)},t.loadScript=i;var o=function(e){function t(t,r){var n=e.call(this,r)||this;return Object.defineProperty(n,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),n.name="LoaderError",n.code=t,n}return n(t,e),Object.defineProperty(t,"unificationError",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return e instanceof t||e instanceof Error&&"LoaderError"===e.name?e:new t("UNKNOWN_ERROR",e instanceof Error?e.message:"An unknown error occurred.")}}),t}(Error);function i(e,t){var r=function(){if("function"==typeof t)return t();var e=window[t];return(null==e?void 0:e.default)||e};return new Promise((function(t,n){var i=r();if(i)return t({cache:!0,variable:i});var a=document.querySelector('script[src="'.concat(e,'"]')),u=a||document.createElement("script");u.src=e,u.async=!0,u.addEventListener("load",(function(){t({cache:!1,variable:r()})})),u.addEventListener("error",(function(t){n(new o("LOAD_ERROR","Load script ".concat(e," failed: ").concat(t.message)))})),a||document.head.appendChild(u)}))}t.LoaderError=o},820:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n},e.exports.__esModule=!0,e.exports.default=e.exports},748:function(e,t,r){var n=r(820);e.exports=function(e){if(Array.isArray(e))return n(e)},e.exports.__esModule=!0,e.exports.default=e.exports},842:function(e){function t(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}e.exports=function(e){return function(){var r=this,n=arguments;return new Promise((function(o,i){var a=e.apply(r,n);function u(e){t(a,o,i,u,c,"next",e)}function c(e){t(a,o,i,u,c,"throw",e)}u(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports},286:function(e,t,r){var n=r(617);e.exports=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=n(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return u=e.done,e},e:function(e){c=!0,a=e},f:function(){try{u||null==r.return||r.return()}finally{if(c)throw a}}}},e.exports.__esModule=!0,e.exports.default=e.exports},762:function(e,t,r){var n=r(893);e.exports=function(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports},454:function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},928:function(e){e.exports=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.")},e.exports.__esModule=!0,e.exports.default=e.exports},212:function(e,t,r){var n=r(762);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}e.exports=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){n(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e},e.exports.__esModule=!0,e.exports.default=e.exports},578:function(e,t,r){var n=r(710);e.exports=function(e,t){if(null==e)return{};var r,o,i=n(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i},e.exports.__esModule=!0,e.exports.default=e.exports},710:function(e){e.exports=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o},e.exports.__esModule=!0,e.exports.default=e.exports},650:function(e,t,r){var n=r(65).default;function o(){"use strict";e.exports=o=function(){return r},e.exports.__esModule=!0,e.exports.default=e.exports;var t,r={},i=Object.prototype,a=i.hasOwnProperty,u=Object.defineProperty||function(e,t,r){e[t]=r.value},c="function"==typeof Symbol?Symbol:{},s=c.iterator||"@@iterator",l=c.asyncIterator||"@@asyncIterator",f=c.toStringTag||"@@toStringTag";function p(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{p({},"")}catch(t){p=function(e,t,r){return e[t]=r}}function d(e,t,r,n){var o=t&&t.prototype instanceof g?t:g,i=Object.create(o.prototype),a=new M(n||[]);return u(i,"_invoke",{value:j(e,r,a)}),i}function h(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}r.wrap=d;var v="suspendedStart",m="executing",y="completed",w={};function g(){}function b(){}function x(){}var O={};p(O,s,(function(){return this}));var E=Object.getPrototypeOf,k=E&&E(E(A([])));k&&k!==i&&a.call(k,s)&&(O=k);var _=x.prototype=g.prototype=Object.create(O);function S(e){["next","throw","return"].forEach((function(t){p(e,t,(function(e){return this._invoke(t,e)}))}))}function P(e,t){function r(o,i,u,c){var s=h(e[o],e,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==n(f)&&a.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,u,c)}),(function(e){r("throw",e,u,c)})):t.resolve(f).then((function(e){l.value=e,u(l)}),(function(e){return r("throw",e,u,c)}))}c(s.arg)}var o;u(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}})}function j(e,r,n){var o=v;return function(i,a){if(o===m)throw new Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=L(u,n);if(c){if(c===w)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===v)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=m;var s=h(e,r,n);if("normal"===s.type){if(o=n.done?y:"suspendedYield",s.arg===w)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function L(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),w;var i=h(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,w;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,w):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,w)}function T(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 D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function A(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(a.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(n(e)+" is not iterable")}return b.prototype=x,u(_,"constructor",{value:x,configurable:!0}),u(x,"constructor",{value:b,configurable:!0}),b.displayName=p(x,f,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,p(e,f,"GeneratorFunction")),e.prototype=Object.create(_),e},r.awrap=function(e){return{__await:e}},S(P.prototype),p(P.prototype,l,(function(){return this})),r.AsyncIterator=P,r.async=function(e,t,n,o,i){void 0===i&&(i=Promise);var a=new P(d(e,t,n,o),i);return r.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(_),p(_,f,"Generator"),p(_,s,(function(){return this})),p(_,"toString",(function(){return"[object Generator]"})),r.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},r.values=A,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(D),!e)for(var r in this)"t"===r.charAt(0)&&a.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=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 r=this;function n(n,o){return u.type="throw",u.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],u=i.completion;if("root"===i.tryLoc)return n("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 n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;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,w):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),w},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),D(r),w}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;D(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:A(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),w}},r}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},705:function(e,t,r){var n=r(748),o=r(454),i=r(617),a=r(928);e.exports=function(e){return n(e)||o(e)||i(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},952:function(e,t,r){var n=r(65).default;e.exports=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},893:function(e,t,r){var n=r(65).default,o=r(952);e.exports=function(e){var t=o(e,"string");return"symbol"==n(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},65:function(e){function t(r){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(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},617:function(e,t,r){var n=r(820);e.exports=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return function(){"use strict";r.r(n),r.d(n,{loadAntom:function(){return be}});var e=r(650),t=r.n(e),o=r(212),i=r.n(o),a=r(578),u=r.n(a),c=r(842),s=r.n(c),l=r(381),f=r(159),p=function(e){try{var t,r=e;return(null==r?void 0:r.code)||(null==r||null===(t=r.error)||void 0===t?void 0:t.code)||"UNKNOWN"}catch(e){return"UNKNOWN"}},d=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";try{f.tracker.log({code:"7882api",msg:"loadAntom",d1:r,d2:n,d3:"",d4:"",d5:"loadAntom",d6:e.env,d7:String(void 0!==e.locale),d8:void 0===e.debug?"":String(e.debug),m1:Date.now()-t})}catch(e){}};function h(e,t){return v.apply(this,arguments)}function v(){return(v=s()(t()().mark((function e(r,n){var o,i;return t()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=Date.now(),e.prev=1,e.next=4,n();case 4:return i=e.sent,d(r,o,"success"),e.abrupt("return",i);case 9:throw e.prev=9,e.t0=e.catch(1),d(r,o,"error",p(e.t0)),e.t0;case 13:case"end":return e.stop()}}),e,null,[[1,9]])})))).apply(this,arguments)}var m=r(762),y=r.n(m),w=r(65);function g(e){return"object"===w(e)&&null!==e}function b(e){return"string"==typeof e&&e.length>0&&e.length<=128}function x(e){return"number"==typeof e&&Number.isFinite(e)&&e>=0}var O=Symbol.for("@antintl/opensdk-preload.registry.v1");function E(){var e,t=globalThis;return null!==(e=t[O])&&void 0!==e||(t[O]={controllers:new Map,resources:new Set}),t[O]}function k(e){var t=E();return e.filter((function(e){return!t.resources.has(e)&&(t.resources.add(e),!0)}))}function _(e){var t=E();e.forEach((function(e){return t.resources.delete(e)}))}var S=r(705),P=r.n(S),j=r(286),L=new Set(["shared","element","deferred"]),T=new Set(["document","script","style","font","image","other"]);function D(e){if(!(0===e.length||e.length>2048))try{var t=new URL(e);if("https:"!==t.protocol&&"http:"!==t.protocol)return;if(t.username||t.password)return;return t.hash="",t.href}catch(e){return}}function M(e){if("object"!==w(e)||null===e)return!1;var t=e;return"string"==typeof t.url&&"string"==typeof t.priority&&L.has(t.priority)&&"string"==typeof t.type&&T.has(t.type)&&(void 0===t.owner||"string"==typeof t.owner)}function A(e){var t,r={deferred:0,element:1,shared:2},n=new Map,i=j(e);try{for(i.s();!(t=i.n()).done;){var a=t.value;if(M(a)){var u=D(a.url);if(u){var c=n.get(u);(!c||r[a.priority]>r[c.priority])&&n.set(u,o(o({},a),{},{url:u}))}}}}catch(e){i.e(e)}finally{i.f()}return S(n.values())}function R(t){var r,n,i,a,u,s,l=!1,f=Promise.resolve(),p=W(),d=new URL(t.runnerUrl).origin,h=new Map,v=function(e){var r;u=e,null===(r=t.onStateChange)||void 0===r||r.call(t,o({},e))},y=function(e){var t,n,o,a;e.origin===d&&e.source===(null===(t=r)||void 0===t?void 0:t.contentWindow)&&(g(a=e.data)&&"OPENSDK_PRELOAD_READY"===a.type&&1===a.protocolVersion&&b(a.nonce)&&e.data.nonce===p?null===(o=i)||void 0===o||o():function(e){return!!g(e)&&"OPENSDK_PRELOAD_DONE"===e.type&&1===e.protocolVersion&&b(e.taskId)&&b(e.nonce)&&("critical"===e.phase||"deferred"===e.phase)&&x(e.total)&&x(e.success)&&x(e.failed)&&x(e.duration)}(e.data)&&e.data.nonce===p&&(null===(n=h.get("".concat(e.data.taskId,":").concat(e.data.phase)))||void 0===n||n(e.data)))},w=function(){var o=c(e().mark((function o(){var u,c,l;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s&&(clearTimeout(s),s=void 0),!n){e.next=3;break}return e.abrupt("return",n);case 3:return n=new Promise((function(e,t){i=e,a=t})),window.addEventListener("message",y),(r=document.createElement("iframe")).setAttribute("aria-hidden","true"),r.tabIndex=-1,r.style.cssText="position:absolute;width:0;height:0;border:0;visibility:hidden;pointer-events:none",(c=new URL(t.runnerUrl)).hash=new URLSearchParams(m({},"opensdkPreloadNonce",p)).toString(),r.src=c.href,r.addEventListener("error",(function(){var e;return null===(e=a)||void 0===e?void 0:e(new Error("Preload runner failed to load"))}),{once:!0}),e.next=15,U(r);case 15:return l=setTimeout((function(){var e;return null===(e=a)||void 0===e?void 0:e(new Error("Preload runner ready timeout"))}),null!==(u=t.iframeTimeoutMs)&&void 0!==u?u:5e3),e.prev=16,e.next=19,n;case 19:return e.prev=19,clearTimeout(l),e.finish(19);case 22:case"end":return e.stop()}}),o,null,[[16,,19,22]])})));return function(){return o.apply(this,arguments)}}(),O=function(){var e;s&&clearTimeout(s),s=void 0,"undefined"!=typeof window&&window.removeEventListener("message",y),h.clear(),null===(e=r)||void 0===e||e.remove(),r=void 0,n=void 0,i=void 0,a=void 0},E=function(){var t=c(e().mark((function t(n,o,i){var a,u,c,s;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u="".concat(n,":").concat(o),c=new Promise((function(e){return h.set(u,e)})),s={type:"OPENSDK_PRELOAD_START",protocolVersion:1,taskId:n,nonce:p,phase:o,resources:i},null===(a=r)||void 0===a||null===(a=a.contentWindow)||void 0===a||a.postMessage(s,d),e.prev=4,e.next=7,c;case 7:return e.abrupt("return",e.sent);case 8:return e.prev=8,h.delete(u),e.finish(8);case 11:case"end":return e.stop()}}),t,null,[[4,,8,11]])})));return function(e,r,n){return t.apply(this,arguments)}}(),S=function(){var r=c(e().mark((function r(n){var i,a,u,c,l,f,p,d,h,m,y,g,b,x,S,P;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=W(),a=Date.now(),v(u={taskId:i,state:"requested",requestedAt:a}),!(c=C())){e.next=9;break}return u=o(o({},u),{},{state:"skipped",completedAt:Date.now(),reason:c}),v(u),e.abrupt("return",u);case 9:if(u=o(o({},u),{},{state:"resolving"}),v(u),l=A(n.resources),f=k(l.map((function(e){return e.url}))),p=new Set(f),0!==(d=l.filter((function(e){return p.has(e.url)}))).length){e.next=19;break}return u=o(o({},u),{},{state:"skipped",completedAt:Date.now(),reason:"already_preloaded"}),v(u),e.abrupt("return",u);case 19:return h=d.filter((function(e){return"deferred"!==e.priority})),m=N(),y="3g"===(null==m?void 0:m.effectiveType)?[]:d.filter((function(e){return"deferred"===e.priority})),e.prev=22,u=o(o({},u),{},{state:"waiting_runner"}),v(u),e.next=27,q(w(),null!==(g=t.taskTimeoutMs)&&void 0!==g?g:3e4,"Preload task timeout");case 27:if(!(h.length>0)){e.next=37;break}return u=o(o({},u),{},{state:"running_critical"}),v(u),e.next=32,q(E(i,"critical",h),null!==(b=t.taskTimeoutMs)&&void 0!==b?b:3e4,"Critical preload timeout");case 32:x=e.sent,u=o(o({},u),{},{state:"critical_completed",criticalCompletedAt:Date.now(),critical:G(x)}),v(u),e.next=39;break;case 37:u=o(o({},u),{},{state:"critical_completed",criticalCompletedAt:Date.now()}),v(u);case 39:if(!(y.length>0)){e.next=48;break}return e.next=42,new Promise((function(e){"requestIdleCallback"in window?window.requestIdleCallback((function(){return e()}),{timeout:1e3}):setTimeout(e,50)}));case 42:return u=o(o({},u),{},{state:"running_deferred"}),v(u),e.next=46,q(E(i,"deferred",y),null!==(S=t.taskTimeoutMs)&&void 0!==S?S:3e4,"Deferred preload timeout");case 46:P=e.sent,u=o(o({},u),{},{deferred:G(P)});case 48:return u=o(o({},u),{},{state:"completed",completedAt:Date.now()}),v(u),s=setTimeout(O,1e3),e.abrupt("return",u);case 54:return e.prev=54,e.t0=e.catch(22),_(f),O(),u=o(o({},u),{},{state:"failed",completedAt:Date.now(),reason:e.t0 instanceof Error?e.t0.message:"Unknown preload error"}),v(u),e.abrupt("return",u);case 61:case"end":return e.stop()}}),r,null,[[22,54]])})));return function(e){return r.apply(this,arguments)}}();return{run:function(e){if(l||"undefined"==typeof window||"undefined"==typeof document){var t={taskId:W(),state:"skipped",requestedAt:Date.now(),completedAt:Date.now(),reason:l?"destroyed":"ssr"};return v(t),Promise.resolve(t)}var r=f.then((function(){return S(e)}));return f=r.then((function(){}),(function(){})),r},getSnapshot:function(){return u?o({},u):void 0},destroy:function(){l=!0,O()}}}function I(e){var t=E(),r="".concat(e.product,"|").concat(new URL(e.runnerUrl).origin),n=t.controllers.get(r);if(n)return n;var o=R(e);return t.controllers.set(r,o),o}function C(){var e=N();return null!=e&&e.saveData?"save_data":"slow-2g"===(null==e?void 0:e.effectiveType)||"2g"===(null==e?void 0:e.effectiveType)?"slow_network":void 0}function N(){return navigator.connection}function U(e){return document.body?(document.body.appendChild(e),Promise.resolve()):new Promise((function(t){document.addEventListener("DOMContentLoaded",(function(){document.body.appendChild(e),t()}),{once:!0})}))}function W(){return"undefined"!=typeof crypto&&"randomUUID"in crypto?crypto.randomUUID():"".concat(Date.now().toString(36),"-").concat(Math.random().toString(36).slice(2))}function q(e,t,r){return new Promise((function(n,o){var i=setTimeout((function(){return o(new Error(r))}),t);e.then((function(e){clearTimeout(i),n(e)}),(function(e){clearTimeout(i),o(e)}))}))}function G(e){return{total:e.total,success:e.success,failed:e.failed,duration:e.duration}}function V(e){if("object"!==w(e)||null===e)throw new Error("Invalid preload Manifest");var t=e,r=t.offlineResources;if("string"!=typeof t.version||0===t.version.length||"object"!==w(r)||null===r||"force-cache"!==r.cacheControl||!z(r.sync)||!z(r.async)||"object"!==w(r.elements)||null===r.elements||!Object.values(r.elements).every(z))throw new Error("Invalid preload Manifest schema");return t}function F(e,t){var r,n=V(e),o=n.offlineResources,i=[].concat(S(o.sync),S(o.async),S(Object.values(o.elements).flat()));if(i.length>(null!==(r=t.maxResources)&&void 0!==r?r:200))throw new Error("Preload Manifest resource limit exceeded");if(!i.every((function(e){var r;return function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=D(e);if(!n)return!1;var o=new URL(n);return(!r||"https:"===o.protocol)&&t.some((function(e){try{var t=new URL(e.origin).origin,r=e.pathnamePrefix.startsWith("/")?e.pathnamePrefix:"/".concat(e.pathnamePrefix);return o.origin===t&&o.pathname.startsWith(r)}catch(e){return!1}}))}(e,t.resourceRules,null===(r=t.requireHttps)||void 0===r||r)})))throw new Error("Preload Manifest contains disallowed resource URL");var a,u=S(new Set(t.elements)),c=o.sync.map((function(e){return{url:e,priority:"shared",type:H(e)}})),s=j(u);try{var l=function(){var e=a.value,t=o.elements[e];if(!t)throw new Error('Preload Manifest does not contain element "'.concat(e,'"'));c.push.apply(c,S(t.map((function(t){return{url:t,priority:"element",type:H(t),owner:e}}))))};for(s.s();!(a=s.n()).done;)l()}catch(e){s.e(e)}finally{s.f()}return c.push.apply(c,S(o.async.map((function(e){return{url:e,priority:"deferred",type:H(e)}})))),{product:t.product,version:n.version,resources:A(c),metadata:{elementCount:u.length}}}function z(e){return Array.isArray(e)&&e.every((function(e){return"string"==typeof e}))}function H(e){var t=new URL(e).pathname.toLowerCase();return t.endsWith(".html")?"document":t.endsWith(".js")?"script":t.endsWith(".css")?"style":/\.(woff2?|ttf|otf)$/.test(t)?"font":/\.(png|jpe?g|gif|webp|svg|ico|avif)$/.test(t)?"image":"other"}var K="/elements2/manifest.json";function B(){return"undefined"!=typeof window?{manifestOrigin:window.location.origin,runnerUrl:"".concat(window.location.origin,"/elements2/preload/index.html"),requireHttps:!1,resourceRules:[{origin:window.location.origin,pathnamePrefix:"/elements2/"},{origin:"http://page.alipay.net",pathnamePrefix:"/page/antom-web-checkout-v2/elements2/"},{origin:"https://marmot-local-pre.oss-accelerate.aliyuncs.com",pathnamePrefix:"/page/antom-web-checkout-v2/elements2/"},{origin:"https://marmot-local-dev.oss-accelerate.aliyuncs.com",pathnamePrefix:"/page/antom-web-checkout-v2-"}]}:{manifestOrigin:"https://checkout.antom.com",runnerUrl:"https://checkout.antom.com/elements2/preload/index.html",requireHttps:!0,resourceRules:[{origin:"https://checkout.antom.com",pathnamePrefix:"/elements2/"},{origin:"https://cdn.marmot-cloud.com",pathnamePrefix:"/page/antom-web-checkout-v2/elements2/"}]}}var Y=Symbol.for("@antom/web-sdk.preload-manifest.v2"),J=new Set(["payment","express","vaulting","CVV"]);function $(e){return Z.apply(this,arguments)}function Z(){return(Z=s()(t()().mark((function e(r){var n,o,i;return t()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==(n=P()(new Set(r.elements)).filter((function(e){return J.has(e)}))).length){e.next=3;break}throw new Error("No valid Elements2 preload element");case 3:return o=new URL(K,r.manifestOrigin).href,e.next=6,X(o);case 6:return i=e.sent,e.abrupt("return",Q(i,n,r));case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Q(e,t,r){return F(e,{product:"antom-elements2",elements:t,resourceRules:r.resourceRules,requireHttps:r.requireHttps})}function X(e){var t,r=globalThis;null!==(t=r[Y])&&void 0!==t||(r[Y]=new Map);var n=r[Y],o=n.get(e);if(o)return o;var i=function(e){return ee.apply(this,arguments)}(e).catch((function(t){throw n.delete(e),t}));return n.set(e,i),i}function ee(){return(ee=s()(t()().mark((function e(r){var n,o,i;return t()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=new AbortController,o=setTimeout((function(){return n.abort()}),5e3),e.prev=2,e.next=5,fetch(r,{mode:"cors",credentials:"omit",cache:"no-cache",redirect:"error",signal:n.signal});case 5:if((i=e.sent).ok&&!i.redirected){e.next=8;break}throw new Error("Manifest request failed: ".concat(i.status));case 8:return e.t0=V,e.next=11,i.json();case 11:return e.t1=e.sent,e.abrupt("return",(0,e.t0)(e.t1));case 13:return e.prev=13,clearTimeout(o),e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[2,,13,16]])})))).apply(this,arguments)}var te=Symbol.for("@antom/web-sdk.elements2-preload.v1");function re(){var e,t=globalThis;return null!==(e=t[te])&&void 0!==e||(t[te]={elements:new Set}),t[te]}function ne(){return(ne=s()(t()().mark((function e(r){var n,o,i,a,u;return t()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("undefined"!=typeof window&&"undefined"!=typeof document&&0!==r.length){e.next=2;break}return e.abrupt("return");case 2:return o=re(),null!==(n=o.requestedAt)&&void 0!==n||(o.requestedAt=Date.now()),r.forEach((function(e){return o.elements.add(e)})),o.phase="resolving",i=B(),e.prev=7,e.next=10,$({elements:r,manifestOrigin:i.manifestOrigin,resourceRules:i.resourceRules,requireHttps:i.requireHttps});case 10:return a=e.sent,u=I({product:"antom-elements2",runnerUrl:i.runnerUrl,protocolVersion:1,onStateChange:function(e){o.snapshot=e}}),e.next=14,u.run(a);case 14:o.snapshot=e.sent,e.next=21;break;case 17:throw e.prev=17,e.t0=e.catch(7),o.phase="failed",e.t0;case 21:case"end":return e.stop()}}),e,null,[[7,17]])})))).apply(this,arguments)}var oe="com.ipay.iexpfront.preConnection",ie="ANTOM_PAYMENT_WEB",ae="ALIPW3SG",ue={prod:"https://imgs-sea-global.alipay.com/mgw.htm",sandbox:"https://imgs-sea-global.alipay.com/mgw.htm"};function ce(){try{var e,t;return(null===(e=(t=navigator).javaEnabled)||void 0===e?void 0:e.call(t))||!1}catch(e){return!1}}var se="https://imgs-sea-global.alipay.com",le=Symbol.for("@antom/web-sdk.sg-preconnection.v1"),fe="SG";function pe(){var e,t=globalThis;return null!==(e=t[le])&&void 0!==e||(t[le]={snapshots:new Map,promises:new Map}),t[le]}function de(e){var r=pe(),n=r.promises.get(e);if(n)return n;var o={predictedRegion:fe,status:"running",preconnectionStartTime:ve()};r.snapshots.set(e,o);var a=Promise.resolve().then((function(){if("undefined"==typeof window||"undefined"==typeof navigator||"undefined"==typeof screen||"undefined"==typeof fetch)throw new Error("SG preConnection is unavailable outside the browser");return function(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o="sandbox"===n.env?"sandbox":"prod",a=new AbortController,u=null!==(e=n.timeout)&&void 0!==e?e:5e3,c=setTimeout((function(){return a.abort()}),u),l=navigator.language,f=navigator.userAgent,p=/Android|iPhone|iPad|iPod|Mobile|SymbianOS|Windows Phone/i.test(f),d=[i()(i()({},r),{},{envInfo:i()(i()({terminalType:p?"WAP":"WEB"},p?{osType:/iPhone|iPad|iPod/i.test(f)?"IOS":"ANDROID"}:{}),{},{browserInfo:{browserJavaScriptEnabled:!0,browserJavaEnabled:ce(),browserLanguage:l,browserUserAgent:f,browserColorDepth:screen.colorDepth},deviceLanguage:l,screenWidth:screen.width,screenHeight:screen.height,timeZoneOffset:(new Date).getTimezoneOffset(),locale:l}),extParams:{refUrl:window.location.href}})];return fetch(ue[o],{method:"POST",mode:"cors",credentials:!1===n.withCredentials?"omit":"include",redirect:"error",signal:a.signal,headers:y()(y()(y()(y()(y()(y()(y()({"Content-Type":"application/json",appId:ie,workspaceId:"default"},"x-cors-".concat(ie.toLowerCase(),"-default"),"1"),"version","2.0"),"Operation-Type",oe),"Client-Time",String(Date.now()+60*(new Date).getTimezoneOffset()*1e3)),"tntInstId",ae),"x-mago-timeout",String(u)),"sdk-version","0.0.1788166152-dev.3"),body:JSON.stringify(d)}).then(function(){var e=s()(t()().mark((function e(r){return t()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r.ok&&!r.redirected){e.next=2;break}throw new Error("preConnection failed: ".concat(r.status));case 2:return e.abrupt("return",r.json().catch((function(){return{}})));case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).finally((function(){return clearTimeout(c)}))}({},{env:e,hostSign:fe,timeout:5e3,withCredentials:!0})})).then((function(){return he(e,"completed")}),(function(){return he(e,"failed")}));return r.promises.set(e,a),a}function he(e,t){var r=pe().snapshots.get(e);return r.status=t,r.preconnectionEndTime=ve(),void 0!==r.firstRpcStartTime&&(r.preconnectionLeadTimeMs=r.firstRpcStartTime-r.preconnectionEndTime,r.preconnectionReadyBeforeFirstRpc=r.preconnectionLeadTimeMs>=0),Object.assign(r,function(){if("undefined"==typeof performance||!performance.getEntriesByType)return{};var e=performance.getEntriesByType("resource"),t=P()(e).reverse().find((function(e){return e.name.startsWith(se)}));return t?{dnsDurationMs:Math.max(0,t.domainLookupEnd-t.domainLookupStart),tcpDurationMs:Math.max(0,t.connectEnd-t.connectStart),tlsDurationMs:t.secureConnectionStart>0?Math.max(0,t.connectEnd-t.secureConnectionStart):0}:{}}()),i()({},r)}function ve(){return Date.now()}function me(e,t){null!=t&&t.length&&(de(e),function(e){return ne.apply(this,arguments)}(t).catch((function(){})))}var ye=["env","environment","preload"],we={DEV:"https://sdk-dev.marmot-cloud.com/package/ams-checkout/".concat("dev-1788166152","/ams-checkout.js"),LOCAL:"http://localhost:3000/ams-checkout.min.js",PROD:"https://js.antom.com/v2/ams-checkout.js"},ge=(0,l.createLoader)({sdkURL:we.DEV,globalName:"AntomSDK",namespace:"AntomSDK"}),be=function(){var e=s()(t()().mark((function e(r){var n,o,a,c,s,l,f;return t()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=(n=r||{}).env,a=n.environment,c=n.preload,s=u()(n,ye),l=o||a||"prod",f=i()(i()({},s),{},{env:l}),e.abrupt("return",h(f,(function(){var e=ge(f);return me(l,null==c?void 0:c.elements),e})));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}(),n}()}));
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(self,(function(){return function(){var e={381:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.loadScript=void 0,t.createSingletonInstance=u,t.createInstance=c,t.createLoader=function(e){var t=this,n=e.sdkURL,s=e.globalName,l=e.timeout,h=void 0===l?2e4:l,f=e.onLoadComplete,p=e.onError,d=e.onLoadStart,g=e.onInitialized,m=e.single,v=void 0===m||m,y=e.namespace;return function(e){return r(t,void 0,void 0,(function(){var t,l,m=this;return o(this,(function(b){var _,E;return null==d||d(),t=Date.now(),i.tracker.log({code:"7988",msg:y,d1:"loadStart",d2:"无",d3:"无",d4:"无",d5:"npm",m1:0,m2:0}),_=function(){return(0,a.loadScriptClass)(n,s)},E=h,l=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Promise.race([new Promise((function(e,t){setTimeout((function(){t(new a.LoaderError("LOAD_TIMEOUT","Load timeout: ".concat(E)))}),E)})),_.apply(void 0,e)])},[2,l().then((function(n){return r(m,[n],void 0,(function(n){var r,l,h,p=n.variable,d=n.cache;return o(this,(function(n){switch(n.label){case 0:if(r=Date.now(),d||i.tracker.log({code:"7988",msg:y,d1:"loadComplete",d2:"无",d3:"无",d4:(null==p?void 0:p.version)||"无",d5:"npm",m1:Math.round(Date.now()-t),m2:0}),null==f||f(),!p)throw new a.LoaderError("NO_REMOTE_CLASS","No variables ".concat(s," were found. Cannot be initialized the Class ").concat(s));n.label=1;case 1:return n.trys.push([1,3,,4]),[4,(v?u:c)(p,e,void 0)];case 2:return l=n.sent(),i.tracker.log({code:"7988",msg:y,d1:"initialized",d2:"无",d3:"无",d4:l.version||"无版本号",d5:"npm",m1:Math.round(Date.now()-t),m2:Math.round(Date.now()-r)}),null==g||g(l,window.location.href),[2,l];case 3:throw h=n.sent(),new a.LoaderError("INIT_ERROR","Initialize Class ".concat(s," failed: ").concat(h.message));case 4:return[2]}}))}))})).catch((function(e){var n=a.LoaderError.unificationError(e);return i.tracker.log({code:"7988",msg:y,d1:"createError",d2:n.code,d3:n.message,d4:"无",d5:"npm",m1:Math.round(Date.now()-t),m2:0}),null==p||p(n),Promise.reject(e)}))]}))}))}};var i=n(159),a=n(858);Object.defineProperty(t,"loadScript",{enumerable:!0,get:function(){return a.loadScript}});var s=null;function u(e,t,n){return s=s?s.then((function(r){return r.isDestroyed?c(e,t,n):r})):c(e,t,n)}function c(e,t,n){var r=new e(t),o=Date.now();return r.init().then((function(e){return n&&i.tracker.log({code:"7988",msg:n,d1:"initialized",d2:"无",d3:"无",d4:r.version||"无版本号",d5:"umd",m1:Math.round(Date.now()-o),m2:Math.round(Date.now()-o)}),e})).catch((function(e){var t=new a.LoaderError("INIT_ERROR","Initialize Class failed: ".concat(e.message));throw n&&i.tracker.log({code:"7988",msg:n,d1:"createError",d2:t.code,d3:t.message,d4:"无",d5:"umd",m1:Math.round(Date.now()-o),m2:0}),t}))}},159:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.tracker=t.ScriptTracker=void 0;var a=n(858),s=function(){function e(e){Object.defineProperty(this,"initOptions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"tracker",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.initOptions=e}return Object.defineProperty(e.prototype,"loadTacker",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this;return(0,a.loadScript)("https://cdn.marmot-cloud.com/tnpm-package/@antintl-intl-tracker/1.3.0/dist/common.min.js","CompatibleTrackerFull").then((function(t){var n=null==t?void 0:t.variable;if(n)return new n(r({compactExtraInfo:!0,appId:"180020050100012557"},e.initOptions))})).catch((function(){}))}}),Object.defineProperty(e.prototype,"getTracker",{enumerable:!1,configurable:!0,writable:!0,value:function(){return o(this,void 0,void 0,(function(){var e;return i(this,(function(t){switch(t.label){case 0:return this.tracker?[2,this.tracker]:[4,this.loadTacker()];case 1:return(e=t.sent())&&(e.set({keyFormat:"origin",userPathAuto:!1}),this.tracker=e),[2,e]}}))}))}}),Object.defineProperty(e.prototype,"safeCall",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this.getTracker().then(e)}}),Object.defineProperty(e.prototype,"log",{enumerable:!1,configurable:!0,writable:!0,value:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.safeCall((function(t){return null==t?void 0:t.log.apply(t,e)}))}}),e}();t.ScriptTracker=s;var u=(null==="DEV"?void 0:"DEV".toUpperCase())||"PROD",c=["DEV","SIT","PRE","PROD","LOCAL"].includes(u)?u:"PROD";t.tracker=new s({appId:"180020050100012557",env:c,server:"sg",performance:!1,error:!1})},858:function(e,t){"use strict";var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.LoaderError=void 0,t.loadScriptClass=function(e,t){return i(e,t)},t.loadScript=i;var o=function(e){function t(t,n){var r=e.call(this,n)||this;return Object.defineProperty(r,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),r.name="LoaderError",r.code=t,r}return r(t,e),Object.defineProperty(t,"unificationError",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return e instanceof t||e instanceof Error&&"LoaderError"===e.name?e:new t("UNKNOWN_ERROR",e instanceof Error?e.message:"An unknown error occurred.")}}),t}(Error);function i(e,t){var n=function(){if("function"==typeof t)return t();var e=window[t];return(null==e?void 0:e.default)||e};return new Promise((function(t,r){var i=n();if(i)return t({cache:!0,variable:i});var a=document.querySelector('script[src="'.concat(e,'"]')),s=a||document.createElement("script");s.src=e,s.async=!0,s.addEventListener("load",(function(){t({cache:!1,variable:n()})})),s.addEventListener("error",(function(t){r(new o("LOAD_ERROR","Load script ".concat(e," failed: ").concat(t.message)))})),a||document.head.appendChild(s)}))}t.LoaderError=o},245:function(e,t,n){var r=n(65).default,o=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,s=/^0o[0-7]+$/i,u=parseInt,c="object"==(void 0===n.g?"undefined":r(n.g))&&n.g&&n.g.Object===Object&&n.g,l="object"==("undefined"==typeof self?"undefined":r(self))&&self&&self.Object===Object&&self,h=c||l||Function("return this")(),f=Object.prototype.toString,p=Math.max,d=Math.min,g=function(){return h.Date.now()};function m(e){var t=r(e);return!!e&&("object"==t||"function"==t)}function v(e){return"symbol"==r(e)||function(e){return!!e&&"object"==r(e)}(e)&&"[object Symbol]"==f.call(e)}function y(e){if("number"==typeof e)return e;if(v(e))return NaN;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var n=a.test(e);return n||s.test(e)?u(e.slice(2),n?2:8):i.test(e)?NaN:+e}e.exports=function(e,t,n){var r,o,i,a,s,u,c=0,l=!1,h=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var n=r,i=o;return r=o=void 0,c=t,a=e.apply(i,n)}function b(e){return c=e,s=setTimeout(E,t),l?v(e):a}function _(e){var n=e-u;return void 0===u||n>=t||n<0||h&&e-c>=i}function E(){var e=g();if(_(e))return w(e);s=setTimeout(E,function(e){var n=t-(e-u);return h?d(n,i-(e-c)):n}(e))}function w(e){return s=void 0,f&&r?v(e):(r=o=void 0,a)}function S(){var e=g(),n=_(e);if(r=arguments,o=this,u=e,n){if(void 0===s)return b(u);if(h)return s=setTimeout(E,t),v(u)}return void 0===s&&(s=setTimeout(E,t)),a}return t=y(t)||0,m(n)&&(l=!!n.leading,i=(h="maxWait"in n)?p(y(n.maxWait)||0,t):i,f="trailing"in n?!!n.trailing:f),S.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=u=o=s=void 0},S.flush=function(){return void 0===s?a:w(g())},S}},34:function(e,t,n){var r=n(65).default,o="__lodash_hash_undefined__",i="[object Function]",a="[object GeneratorFunction]",s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/,c=/^\./,l=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,h=/\\(\\)?/g,f=/^\[object .+?Constructor\]$/,p="object"==(void 0===n.g?"undefined":r(n.g))&&n.g&&n.g.Object===Object&&n.g,d="object"==("undefined"==typeof self?"undefined":r(self))&&self&&self.Object===Object&&self,g=p||d||Function("return this")();var m,v=Array.prototype,y=Function.prototype,b=Object.prototype,_=g["__core-js_shared__"],E=(m=/[^.]+$/.exec(_&&_.keys&&_.keys.IE_PROTO||""))?"Symbol(src)_1."+m:"",w=y.toString,S=b.hasOwnProperty,k=b.toString,T=RegExp("^"+w.call(S).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),P=g.Symbol,L=v.splice,R=U(g,"Map"),A=U(Object,"create"),O=P?P.prototype:void 0,N=O?O.toString:void 0;function I(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function x(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function C(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function B(e,t){for(var n,r,o=e.length;o--;)if((n=e[o][0])===(r=t)||n!=n&&r!=r)return o;return-1}function M(e,t){var n;t=function(e,t){if(K(e))return!1;var n=r(e);if("number"==n||"symbol"==n||"boolean"==n||null==e||Y(e))return!0;return u.test(e)||!s.test(e)||null!=t&&e in Object(t)}(t,e)?[t]:K(n=t)?n:j(n);for(var o=0,i=t.length;null!=e&&o<i;)e=e[z(t[o++])];return o&&o==i?e:void 0}function D(e){if(!F(e)||(t=e,E&&E in t))return!1;var t,n=function(e){var t=F(e)?k.call(e):"";return t==i||t==a}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?T:f;return n.test(function(e){if(null!=e){try{return w.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function H(e,t){var n,o,i=e.__data__;return("string"==(o=r(n=t))||"number"==o||"symbol"==o||"boolean"==o?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function U(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return D(n)?n:void 0}I.prototype.clear=function(){this.__data__=A?A(null):{}},I.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},I.prototype.get=function(e){var t=this.__data__;if(A){var n=t[e];return n===o?void 0:n}return S.call(t,e)?t[e]:void 0},I.prototype.has=function(e){var t=this.__data__;return A?void 0!==t[e]:S.call(t,e)},I.prototype.set=function(e,t){return this.__data__[e]=A&&void 0===t?o:t,this},x.prototype.clear=function(){this.__data__=[]},x.prototype.delete=function(e){var t=this.__data__,n=B(t,e);return!(n<0)&&(n==t.length-1?t.pop():L.call(t,n,1),!0)},x.prototype.get=function(e){var t=this.__data__,n=B(t,e);return n<0?void 0:t[n][1]},x.prototype.has=function(e){return B(this.__data__,e)>-1},x.prototype.set=function(e,t){var n=this.__data__,r=B(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},C.prototype.clear=function(){this.__data__={hash:new I,map:new(R||x),string:new I}},C.prototype.delete=function(e){return H(this,e).delete(e)},C.prototype.get=function(e){return H(this,e).get(e)},C.prototype.has=function(e){return H(this,e).has(e)},C.prototype.set=function(e,t){return H(this,e).set(e,t),this};var j=G((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(Y(e))return N?N.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var n=[];return c.test(e)&&n.push(""),e.replace(l,(function(e,t,r,o){n.push(r?o.replace(h,"$1"):t||e)})),n}));function z(e){if("string"==typeof e||Y(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function G(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function n(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a),a};return n.cache=new(G.Cache||C),n}G.Cache=C;var K=Array.isArray;function F(e){var t=r(e);return!!e&&("object"==t||"function"==t)}function Y(e){return"symbol"==r(e)||function(e){return!!e&&"object"==r(e)}(e)&&"[object Symbol]"==k.call(e)}e.exports=function(e,t,n){var r=null==e?void 0:M(e,t);return void 0===r?n:r}},822:function(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 s,u=[],c=!1,l=-1;function h(){c&&s&&(c=!1,s.length?u=s.concat(u):l=-1,u.length&&f())}function f(){if(!c){var e=a(h);c=!0;for(var t=u.length;t;){for(s=u,u=[];++l<t;)s&&s[l].run();l=-1,t=u.length}s=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function d(){}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];u.push(new p(e,t)),1!==u.length||c||a(f)},p.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=d,r.addListener=d,r.once=d,r.off=d,r.removeListener=d,r.removeAllListeners=d,r.emit=d,r.prependListener=d,r.prependOnceListener=d,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}},93:function(e,t,n){var r=n(953);function o(e){var t,n;function o(t,n){try{var a=e[t](n),s=a.value,u=s instanceof r;Promise.resolve(u?s.v:s).then((function(n){if(u){var r="return"===t?"return":"next";if(!s.k||n.done)return o(r,n);n=e[r](n).value}i(a.done?"return":"normal",n)}),(function(e){o("throw",e)}))}catch(e){i("throw",e)}}function i(e,r){switch(e){case"return":t.resolve({value:r,done:!0});break;case"throw":t.reject(r);break;default:t.resolve({value:r,done:!1})}(t=t.next)?o(t.key,t.arg):n=null}this._invoke=function(e,r){return new Promise((function(i,a){var s={key:e,arg:r,resolve:i,reject:a,next:null};n?n=n.next=s:(t=n=s,o(e,r))}))},"function"!=typeof e.return&&(this.return=void 0)}o.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},o.prototype.next=function(e){return this._invoke("next",e)},o.prototype.throw=function(e){return this._invoke("throw",e)},o.prototype.return=function(e){return this._invoke("return",e)},e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},953:function(e){e.exports=function(e,t){this.v=e,this.k=t},e.exports.__esModule=!0,e.exports.default=e.exports},820:function(e){e.exports=function(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},e.exports.__esModule=!0,e.exports.default=e.exports},720:function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},748:function(e,t,n){var r=n(820);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports},402:function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},774:function(e,t,n){var r=n(953);e.exports=function(e){var t={},n=!1;function o(t,o){return n=!0,o=new Promise((function(n){n(e[t](o))})),{done:!1,value:new r(o,1)}}return t["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},t.next=function(e){return n?(n=!1,e):o("next",e)},"function"==typeof e.throw&&(t.throw=function(e){if(n)throw n=!1,e;return o("throw",e)}),"function"==typeof e.return&&(t.return=function(e){return n?(n=!1,e):o("return",e)}),t},e.exports.__esModule=!0,e.exports.default=e.exports},164:function(e){function t(e){function n(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return t=function(e){this.s=e,this.n=e.next},t.prototype={s:null,n:null,next:function(){return n(this.n.apply(this.s,arguments))},return:function(e){var t=this.s.return;return void 0===t?Promise.resolve({value:e,done:!0}):n(t.apply(this.s,arguments))},throw:function(e){var t=this.s.return;return void 0===t?Promise.reject(e):n(t.apply(this.s,arguments))}},new t(e)}e.exports=function(e){var n,r,o,i=2;for("undefined"!=typeof Symbol&&(r=Symbol.asyncIterator,o=Symbol.iterator);i--;){if(r&&null!=(n=e[r]))return n.call(e);if(o&&null!=(n=e[o]))return new t(n.call(e));r="@@asyncIterator",o="@@iterator"}throw new TypeError("Object is not async iterable")},e.exports.__esModule=!0,e.exports.default=e.exports},842:function(e){function t(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}e.exports=function(e){return function(){var n=this,r=arguments;return new Promise((function(o,i){var a=e.apply(n,r);function s(e){t(a,o,i,s,u,"next",e)}function u(e){t(a,o,i,s,u,"throw",e)}s(void 0)}))}},e.exports.__esModule=!0,e.exports.default=e.exports},621:function(e,t,n){var r=n(953);e.exports=function(e){return new r(e,0)},e.exports.__esModule=!0,e.exports.default=e.exports},571:function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},603:function(e,t,n){var r=n(975),o=n(377);function i(t,n,a){return o()?(e.exports=i=Reflect.construct.bind(),e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=i=function(e,t,n){var o=[null];o.push.apply(o,t);var i=new(Function.bind.apply(e,o));return n&&r(i,n.prototype),i},e.exports.__esModule=!0,e.exports.default=e.exports),i.apply(null,arguments)}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},86:function(e,t,n){var r=n(893);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,r(o.key),o)}}e.exports=function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},286:function(e,t,n){var r=n(617);e.exports=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=r(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}},e.exports.__esModule=!0,e.exports.default=e.exports},929:function(e,t,n){var r=n(731),o=n(377),i=n(365);e.exports=function(e){var t=o();return function(){var n,o=r(e);if(t){var a=r(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return i(this,n)}},e.exports.__esModule=!0,e.exports.default=e.exports},762:function(e,t,n){var r=n(893);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},731:function(e){function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},832:function(e,t,n){var r=n(975);e.exports=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&&r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},315:function(e){e.exports=function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}},e.exports.__esModule=!0,e.exports.default=e.exports},377:function(e){e.exports=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}},e.exports.__esModule=!0,e.exports.default=e.exports},454:function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},587:function(e){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}},e.exports.__esModule=!0,e.exports.default=e.exports},469:function(e){e.exports=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.")},e.exports.__esModule=!0,e.exports.default=e.exports},928:function(e){e.exports=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.")},e.exports.__esModule=!0,e.exports.default=e.exports},212:function(e,t,n){var r=n(762);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}e.exports=function(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){r(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},e.exports.__esModule=!0,e.exports.default=e.exports},578:function(e,t,n){var r=n(710);e.exports=function(e,t){if(null==e)return{};var n,o,i=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},e.exports.__esModule=!0,e.exports.default=e.exports},710:function(e){e.exports=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.exports.__esModule=!0,e.exports.default=e.exports},365:function(e,t,n){var r=n(65).default,o=n(402);e.exports=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 o(e)},e.exports.__esModule=!0,e.exports.default=e.exports},650:function(e,t,n){var r=n(65).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,s=Object.defineProperty||function(e,t,n){e[t]=n.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",l=u.asyncIterator||"@@asyncIterator",h=u.toStringTag||"@@toStringTag";function f(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(t){f=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof b?t:b,i=Object.create(o.prototype),a=new I(r||[]);return s(i,"_invoke",{value:R(e,n,a)}),i}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=p;var g="suspendedStart",m="executing",v="completed",y={};function b(){}function _(){}function E(){}var w={};f(w,c,(function(){return this}));var S=Object.getPrototypeOf,k=S&&S(S(x([])));k&&k!==i&&a.call(k,c)&&(w=k);var T=E.prototype=b.prototype=Object.create(w);function P(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function n(o,i,s,u){var c=d(e[o],e,i);if("throw"!==c.type){var l=c.arg,h=l.value;return h&&"object"==r(h)&&a.call(h,"__await")?t.resolve(h.__await).then((function(e){n("next",e,s,u)}),(function(e){n("throw",e,s,u)})):t.resolve(h).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,u)}))}u(c.arg)}var o;s(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=g;return function(i,a){if(o===m)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var u=A(s,r);if(u){if(u===y)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===g)throw o=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var c=d(e,n,r);if("normal"===c.type){if(o=r.done?v:"suspendedYield",c.arg===y)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=v,r.method="throw",r.arg=c.arg)}}}function A(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,A(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=d(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 O(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 N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function x(e){if(e||""===e){var n=e[c];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 _.prototype=E,s(T,"constructor",{value:E,configurable:!0}),s(E,"constructor",{value:_,configurable:!0}),_.displayName=f(E,h,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,f(e,h,"GeneratorFunction")),e.prototype=Object.create(T),e},n.awrap=function(e){return{__await:e}},P(L.prototype),f(L.prototype,l,(function(){return this})),n.AsyncIterator=L,n.async=function(e,t,r,o,i){void 0===i&&(i=Promise);var a=new L(p(e,t,r,o),i);return n.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},P(T),f(T,h,"Generator"),f(T,c,(function(){return this})),f(T,"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=x,I.prototype={constructor:I,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(N),!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 s.type="throw",s.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],s=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=a.call(i,"catchLoc"),c=a.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)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),N(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;N(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:x(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},975:function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},50:function(e,t,n){var r=n(720),o=n(587),i=n(617),a=n(469);e.exports=function(e,t){return r(e)||o(e,t)||i(e,t)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},705:function(e,t,n){var r=n(748),o=n(454),i=n(617),a=n(928);e.exports=function(e){return r(e)||o(e)||i(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},952:function(e,t,n){var r=n(65).default;e.exports=function(e,t){if("object"!=r(e)||!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)},e.exports.__esModule=!0,e.exports.default=e.exports},893:function(e,t,n){var r=n(65).default,o=n(952);e.exports=function(e){var t=o(e,"string");return"symbol"==r(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},65:function(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},617:function(e,t,n){var r=n(820);e.exports=function(e,t){if(e){if("string"==typeof e)return r(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)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},101:function(e,t,n){var r=n(93);e.exports=function(e){return function(){return new r(e.apply(this,arguments))}},e.exports.__esModule=!0,e.exports.default=e.exports},184:function(e,t,n){var r=n(731),o=n(975),i=n(315),a=n(603);function s(t){var n="function"==typeof Map?new Map:void 0;return e.exports=s=function(e){if(null===e||!i(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return a(e,arguments,r(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),o(t,e)},e.exports.__esModule=!0,e.exports.default=e.exports,s(t)}e.exports=s,e.exports.__esModule=!0,e.exports.default=e.exports}},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=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(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=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return function(){"use strict";n.r(r),n.d(r,{loadAntom:function(){return Xs}});var e={};n.r(e),n.d(e,{hasBrowserEnv:function(){return hi},hasStandardBrowserEnv:function(){return pi},hasStandardBrowserWebWorkerEnv:function(){return di},navigator:function(){return fi},origin:function(){return gi}});var t=n(650),o=n.n(t),i=n(212),a=n.n(i),s=n(578),u=n.n(s),c=n(842),l=n.n(c),h=n(381),f=n(159),p=function(e){try{var t,n=e;return(null==n?void 0:n.code)||(null==n||null===(t=n.error)||void 0===t?void 0:t.code)||"UNKNOWN"}catch(e){return"UNKNOWN"}},d=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";try{f.tracker.log({code:"7882api",msg:"loadAntom",d1:n,d2:r,d3:"",d4:"",d5:"loadAntom",d6:e.env,d7:String(void 0!==e.locale),d8:void 0===e.debug?"":String(e.debug),m1:Date.now()-t})}catch(e){}};function g(e,t){return m.apply(this,arguments)}function m(){return(m=l()(o()().mark((function e(t,n){var r,i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Date.now(),e.prev=1,e.next=4,n();case 4:return i=e.sent,d(t,r,"success"),e.abrupt("return",i);case 9:throw e.prev=9,e.t0=e.catch(1),d(t,r,"error",p(e.t0)),e.t0;case 13:case"end":return e.stop()}}),e,null,[[1,9]])})))).apply(this,arguments)}var v=n(705),y=n.n(v),b=n(571),_=n(86),E=n(402),w=n(832),S=n(929),k=n(762),T=n(50),P=n(65),L=n.n(P),R=n(184),A={i18nPrefix:"OPENSDK"},O=function(e){w(n,e);var t=S(n);function n(e,r,o,i){var a,s,u,c=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];b(this,n);var l,h=i,f=void 0;return e&&"object"===P(e)?(l=e.message,f=e.params):l=e,u=t.call(this,!A.i18n||c&&"SERVER_API"===o?l:A.i18n.get({id:"".concat(A.i18nPrefix,".").concat(r),dm:(null===(a=(s=A).getDefaultMessage)||void 0===a?void 0:a.call(s))||l},f)),k(E(u),"code",void 0),k(E(u),"name","OpenSDKError"),k(E(u),"_openSDKErrorFlag","__OpenSDKErrorFlag__"),k(E(u),"source","SDK_INTERNAL"),k(E(u),"traceId",void 0),k(E(u),"reason",void 0),u.reason=l,u.code=r,u.source=o,u.traceId=h,u}return _(n,[{key:"toJSON",value:function(){var e={message:this.message,code:this.code,source:this.source,traceId:this.traceId,reason:this.reason,stack:this.stack};return JSON.parse(JSON.stringify(e))}}],[{key:"isError",value:function(e){return e instanceof n||e instanceof Error&&"__OpenSDKErrorFlag__"===e._openSDKErrorFlag}},{key:"unificationError",value:function(e){var t,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"APP_RUNTIME";if(n.isError(e))return e;var i=new N(e instanceof Error?e.message:(null===(t=(r=A).getDefaultMessage)||void 0===t?void 0:t.call(r))||"An unknown error occurred.","UNKNOWN_ERROR",o);return i}},{key:"initConfig",value:function(e){A=i(i({},A),e)}}]),n}(R(Error)),N=function(e){w(n,e);var t=S(n);function n(){var e;b(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),k(E(e),"name","SDKBridgeError"),e}return _(n)}(O),I=n(286),x=function(e){return v(new Set(e))},C=function(e,t){return e.filter((function(e){return!t.includes(e)}))},B=function(e,t){return e.filter((function(e){return t.includes(e)}))},M=function(e){return"bigint"==typeof e||!Number.isNaN(Number(e))&&Math.floor(Number(e))===e},D=function(e){return"bigint"==typeof e||e>=0&&Number.isSafeInteger(e)};function H(e,t){if(0===t.length)return e;for(var n,r=v(e),o=r.length-1,i=0,a=0;o>0;o--,i++){a+=n=t[i%=t.length].codePointAt(0);var s=(n+i+a)%o,u=r[o],c=r[s];r[s]=u,r[o]=c}return r}var U=function(e,t){return e.reduce((function(n,r){var o=t.indexOf(r);if(-1===o)throw new Error("The provided ID (".concat(e.join(""),") is invalid, as it contains characters that do not exist in the alphabet (").concat(t.join(""),")"));if("bigint"==typeof n)return n*BigInt(t.length)+BigInt(o);var i=n*t.length+o;return Number.isSafeInteger(i)?i:(Y("Unable to decode the provided string, due to lack of support for BigInt numbers in the current environment"),BigInt(n)*BigInt(t.length)+BigInt(o))}),0)},j=/^\+?\d+$/,z=function(e){if(!j.test(e))return Number.NaN;var t=Number.parseInt(e,10);return Number.isSafeInteger(t)?t:(Y("Unable to encode the provided BigInt string without loss of information due to lack of support for BigInt type in the current environment"),BigInt(e))},G=function(e){return new RegExp(e.map((function(e){return F(e)})).sort((function(e,t){return t.length-e.length})).join("|"))},K=function(e){return new RegExp("^[".concat(e.map((function(e){return F(e)})).sort((function(e,t){return t.length-e.length})).join(""),"]+$"))},F=function(e){return e.replace(/[\s#$()*+,.?[\\\]^{|}-]/g,"\\$&")},Y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"BigInt is not available in this environment";if("function"!=typeof BigInt)throw new TypeError(e)},q=3.5,V=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"cfhistuCFHISTU";if(b(this,e),this.minLength=n,"number"!=typeof n)throw new TypeError("Hashids: Provided 'minLength' has to be a number (is ".concat(P(n),")"));if("string"!=typeof t)throw new TypeError("Hashids: Provided 'salt' has to be a string (is ".concat(P(t),")"));if("string"!=typeof r)throw new TypeError("Hashids: Provided alphabet has to be a string (is ".concat(P(r),")"));var i=Array.from(t),a=Array.from(r),s=Array.from(o);this.salt=i;var u=x(a);if(u.length<16)throw new Error("Hashids: alphabet must contain at least ".concat(16," unique characters, provided: ").concat(u.join("")));this.alphabet=C(u,s);var c,l,h,f=B(s,u);(this.seps=H(f,i),0===this.seps.length||this.alphabet.length/this.seps.length>q)&&((c=Math.ceil(this.alphabet.length/q))>this.seps.length&&(l=c-this.seps.length,(h=this.seps).push.apply(h,v(this.alphabet.slice(0,l))),this.alphabet=this.alphabet.slice(l)));this.alphabet=H(this.alphabet,i);var p=Math.ceil(this.alphabet.length/12);this.alphabet.length<3?(this.guards=this.seps.slice(0,p),this.seps=this.seps.slice(p)):(this.guards=this.alphabet.slice(0,p),this.alphabet=this.alphabet.slice(p)),this.guardsRegExp=G(this.guards),this.sepsRegExp=G(this.seps),this.allowedCharsRegExp=K([].concat(v(this.alphabet),v(this.guards),v(this.seps)))}return _(e,[{key:"encode",value:function(e){for(var t="",n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i=Array.isArray(e)?e:[].concat(v(null!=e?[e]:[]),r);return 0===i.length?t:(i.every(M)||(i=i.map((function(e){return"bigint"==typeof e||"number"==typeof e?e:z(String(e))}))),i.every(D)?this._encode(i).join(""):t)}},{key:"decode",value:function(e){return e&&"string"==typeof e&&0!==e.length?this._decode(e):[]}},{key:"encodeHex",value:function(e){var t=e;switch(P(t)){case"bigint":t=t.toString(16);break;case"string":if(!/^[\dA-Fa-f]+$/.test(t))return"";break;default:throw new Error("Hashids: The provided value is neither a string, nor a BigInt (got: ".concat(P(t),")"))}var n,r,o,i=(n=t,r=12,o=function(e){return Number.parseInt("1".concat(e),16)},Array.from({length:Math.ceil(n.length/r)},(function(e,t){return o(n.slice(t*r,(t+1)*r))})));return this.encode(i)}},{key:"decodeHex",value:function(e){return this.decode(e).map((function(e){return e.toString(16).slice(1)})).join("")}},{key:"isValidId",value:function(e){return this.allowedCharsRegExp.test(e)}},{key:"_encode",value:function(e){var t=this,n=this.alphabet,r=e.reduce((function(e,t,n){return e+("bigint"==typeof t?Number(t%BigInt(n+100)):t%(n+100))}),0),o=[n[r%n.length]],i=v(o),a=this.seps,s=this.guards;if(e.forEach((function(r,s){var u,c=i.concat(t.salt,n),l=function(e,t){var n=[],r=e;if("bigint"==typeof r){var o=BigInt(t.length);do{n.unshift(t[Number(r%o)]),r/=o}while(r>BigInt(0))}else do{n.unshift(t[r%t.length]),r=Math.floor(r/t.length)}while(r>0);return n}(r,n=H(n,c));if((u=o).push.apply(u,v(l)),s+1<e.length){var h=l[0].codePointAt(0)+s,f="bigint"==typeof r?Number(r%BigInt(h)):r%h;o.push(a[f%a.length])}})),o.length<this.minLength){var u=(r+o[0].codePointAt(0))%s.length;if(o.unshift(s[u]),o.length<this.minLength){var c=(r+o[2].codePointAt(0))%s.length;o.push(s[c])}}for(var l=Math.floor(n.length/2);o.length<this.minLength;){var h,f;n=H(n,n),(h=o).unshift.apply(h,v(n.slice(l))),(f=o).push.apply(f,v(n.slice(0,l)));var p=o.length-this.minLength;if(p>0){var d=p/2;o=o.slice(d,d+this.minLength)}}return o}},{key:"_decode",value:function(e){if(!this.isValidId(e))throw new Error("The provided ID (".concat(e,") is invalid, as it contains characters that do not exist in the alphabet (").concat(this.guards.join("")).concat(this.seps.join("")).concat(this.alphabet.join(""),")"));var t=e.split(this.guardsRegExp),n=t[3===t.length||2===t.length?1:0];if(0===n.length)return[];var r,o=n[Symbol.iterator]().next().value,i=n.slice(o.length).split(this.sepsRegExp),a=this.alphabet,s=[],u=I(i);try{for(u.s();!(r=u.n()).done;){var c=r.value,l=H(a,[o].concat(v(this.salt),v(a)).slice(0,a.length));s.push(U(Array.from(c),l)),a=l}}catch(e){u.e(e)}finally{u.f()}return this._encode(s).join("")!==e?[]:s}}]),e}();new V("intl-open-sdk",6);n(245);var W=["trackId","userPathAuto","keyFormat"],X=function(){function e(t){b(this,e),k(this,"options",void 0),k(this,"intlTrackerOptions",void 0),k(this,"tracker",void 0),k(this,"trackerInitPromise",void 0),k(this,"trackId",void 0),this.initialOptions(t)}var n;return _(e,[{key:"initialOptions",value:function(e){var t,n,r,o,a=e||{},u=(a.trackId,a.userPathAuto),c=a.keyFormat,l=s(a,W);(this.options=i(i(i({env:"DEV",compactExtraInfo:!0},this.options),l),{},{appId:(null==e?void 0:e.appId)||(null===(t=this.options)||void 0===t?void 0:t.appId)||"180020050100012557",performance:!0===(null==e?void 0:e.performance)||!0===(null===(n=this.options)||void 0===n?void 0:n.performance),error:!0===(null==e?void 0:e.error)||!0===(null===(r=this.options)||void 0===r?void 0:r.error)}),this.intlTrackerOptions=i(i({},this.options),{},{userPathAuto:u,keyFormat:c}),e&&"trackId"in e)&&(this.trackId=e.trackId||"",this.options=i(i(i({},this.options),l),{},{mdata:i(i(i({},null===(o=this.options)||void 0===o?void 0:o.mdata),l.mdata),{},{trackId:this.trackId})}));return this.options}},{key:"loadTacker",value:function(e){var t=this,n=(0,h.loadScript)("https://cdn.marmot-cloud.com/tnpm-package/@antintl-intl-tracker/1.3.0/dist/common.min.js","CompatibleTrackerFull");return n?n.then((function(n){var r=n.variable;if(r)return new r(t.initialOptions(e))})):Promise.resolve(void 0)}},{key:"initTracker",value:(n=c(t().mark((function e(n){var r,o=this;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.tracker||n){e.next=2;break}return e.abrupt("return",this.tracker);case 2:if(n||!this.trackerInitPromise){e.next=4;break}return e.abrupt("return",this.trackerInitPromise);case 4:if(r=this.loadTacker(n).then((function(e){var t,r,i,a,s,u;return e&&(e.set({keyFormat:null!==(t=null!==(r=null==n?void 0:n.keyFormat)&&void 0!==r?r:null===(i=o.intlTrackerOptions)||void 0===i?void 0:i.keyFormat)&&void 0!==t?t:"origin",userPathAuto:null!==(a=null!==(s=null==n?void 0:n.userPathAuto)&&void 0!==s?s:null===(u=o.intlTrackerOptions)||void 0===u?void 0:u.userPathAuto)&&void 0!==a&&a}),o.tracker=e),e})),n){e.next=8;break}return this.trackerInitPromise=r.finally((function(){o.trackerInitPromise=void 0})),e.abrupt("return",this.trackerInitPromise);case 8:return e.abrupt("return",r);case 9:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"safeCall",value:function(e){return this.initTracker().then(e)}},{key:"setTrackId",value:function(e){this.trackId=e,this.set({mdata:{trackId:e}})}},{key:"set",value:function(e){this.safeCall((function(t){return null==t?void 0:t.set(e)}))}},{key:"pv",value:function(){this.safeCall((function(e){return null==e?void 0:e.pv()}))}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.trackId&&(t[0].d18=this.trackId),this.safeCall((function(e){return null==e?void 0:e.log.apply(e,t)}))}},{key:"click",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.safeCall((function(e){return null==e?void 0:e.click.apply(e,t)}))}},{key:"expo",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.safeCall((function(e){return null==e?void 0:e.expo.apply(e,t)}))}},{key:"onSendData",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.safeCall((function(e){return null==e?void 0:e.onSendData.apply(e,t)}))}},{key:"offSendData",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.safeCall((function(e){return null==e?void 0:e.offSendData.apply(e,t)}))}},{key:"pageMonitor",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.safeCall((function(e){return null==e?void 0:e.pageMonitor.apply(e,t)}))}},{key:"reportCustomizedPerformance",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.safeCall((function(e){return null==e?void 0:e.reportCustomizedPerformance.apply(e,t)}))}}]),e}();new X;var J;!function(e){e["ar-SA"]="ar-SA",e.kn="kn",e.as="as",e.bho="bho",e["pl-PL"]="pl-PL",e["ko-KR"]="ko-KR",e["da-DK"]="da-DK",e["de-DE"]="de-DE",e["ru-RU"]="ru-RU",e["fr-FR"]="fr-FR",e.gu="gu",e["nl-BE"]="nl-BE",e["nl-NL"]="nl-NL",e["cs-CZ"]="cs-CZ",e.ro="ro",e["lo-LA"]="lo-LA",e["my-MM"]="my-MM",e["bn-BD"]="bn-BD",e["bn-IN"]="bn-IN",e.mr="mr",e["ms-MY"]="ms-MY",e.ml="ml",e.mni="mni",e["ne-NP"]="ne-NP",e.or="or",e["pt-BR"]="pt-BR",e["pt-PT"]="pt-PT",e.pa="pa",e["sv-SE"]="sv-SE",e["ja-JP"]="ja-JP",e.sr="sr",e["si-LK"]="si-LK",e["sk-SK"]="sk-SK",e["tr-TR"]="tr-TR",e["tl-PH"]="tl-PH",e.te="te",e.ta="ta",e["th-TH"]="th-TH",e["ur-PK"]="ur-PK",e["ur-IN"]="ur-IN",e["uk-UA"]="uk-UA",e["iw-IL"]="iw-IL",e["es-ES"]="es-ES",e["es-MX"]="es-MX",e.hu="hu",e["it-IT"]="it-IT",e["in-ID"]="in-ID",e["hi-IN"]="hi-IN",e["vi-VN"]="vi-VN",e["en-PK"]="en-PK",e["en-PL"]="en-PL",e["en-FR"]="en-FR",e["en-PH"]="en-PH",e["en-CZ"]="en-CZ",e["en-CA"]="en-CA",e["en-MM"]="en-MM",e["en-US"]="en-US",e["en-BD"]="en-BD",e["en-MY"]="en-MY",e["en-NP"]="en-NP",e["en-LK"]="en-LK",e["en-TH"]="en-TH",e["en-ES"]="en-ES",e["en-SG"]="en-SG",e["en-HU"]="en-HU",e["en-ID"]="en-ID",e["en-GB"]="en-GB",e["en-VN"]="en-VN",e["en-HK"]="en-HK",e["en-KR"]="en-KR",e["zh-TW"]="zh-TW",e["zh-HK"]="zh-HK",e["zh-SG"]="zh-SG",e["zh-CN"]="zh-CN",e["ar-IQ"]="ar-IQ",e["ckb-IQ"]="ckb-IQ",e.ku="ku",e["kk-KZ"]="kk-KZ",e.af="af",e.am="am",e.az="az",e.be="be",e.bg="bg",e.bs="bs",e.ca="ca",e.cy="cy",e.el="el",e.eo="eo",e.et="et",e.eu="eu",e.fa="fa",e.fi="fi",e.gd="gd",e.gl="gl",e.ha="ha",e.haw="haw",e.hr="hr",e.ig="ig",e.is="is",e.ka="ka",e.km="km",e.ky="ky",e.lb="lb",e.ln="ln",e.lt="lt",e.lv="lv",e.mg="mg",e.mk="mk",e.mn="mn",e.mt="mt",e.om="om",e.ps="ps",e.qu="qu",e.rw="rw",e.sl="sl",e.so="so",e.sq="sq",e.sw="sw",e.tg="tg",e.ti="ti",e.ug="ug",e.uz="uz",e.yo="yo",e.zu="zu"}(J||(J={}));var Z={};Z[J["ar-SA"]]="阿拉伯语 (沙特阿拉伯)",Z[J.kn]="埃纳德语",Z[J.as]="阿萨姆语",Z[J.bho]="博杰普尔语",Z[J["pl-PL"]]="波兰语 (波兰)",Z[J["ko-KR"]]="朝鲜语 (韩国)",Z[J["da-DK"]]="丹麦语 (丹麦)",Z[J["de-DE"]]="德语 (德国)",Z[J["ru-RU"]]="俄语 (俄罗斯)",Z[J["fr-FR"]]="法语 (法国)",Z[J.gu]="古加拉提语",Z[J["nl-BE"]]="荷兰语 (比利时)",Z[J["nl-NL"]]="荷兰语 (荷兰)",Z[J["cs-CZ"]]="捷克语 (捷克共和国)",Z[J.ro]="罗马尼亚语",Z[J["lo-LA"]]="老挝语 (老挝)",Z[J["my-MM"]]="缅甸语 (缅甸)",Z[J["bn-BD"]]="孟加拉语 (孟加拉)",Z[J["bn-IN"]]="孟加拉语 (印度)",Z[J.mr]="马拉地语",Z[J["ms-MY"]]="马来语 (马来西亚)",Z[J.ml]="马来亚拉姆语",Z[J.mni]="曼尼普里语",Z[J["ne-NP"]]="尼泊尔语 (尼泊尔)",Z[J.or]="欧里亚语",Z[J["pt-BR"]]="葡萄牙语 (巴西)",Z[J["pt-PT"]]="葡萄牙语 (葡萄牙)",Z[J.pa]="旁遮普语",Z[J["sv-SE"]]="瑞典语 (瑞典)",Z[J["ja-JP"]]="日语 (日本)",Z[J.sr]="塞尔维亚语",Z[J["si-LK"]]="僧伽罗语 (斯里兰卡)",Z[J["sk-SK"]]="斯洛伐克语 (斯洛伐克)",Z[J["tr-TR"]]="土耳其语 (土耳其)",Z[J["tl-PH"]]="塔加路族语 (菲律宾)",Z[J.te]="泰卢固语",Z[J.ta]="泰米尔语",Z[J["th-TH"]]="泰语 (泰国)",Z[J["ur-PK"]]="乌尔都语 (巴基斯坦)",Z[J["ur-IN"]]="乌尔都语 (印度)",Z[J["uk-UA"]]="乌克兰语 (乌克兰)",Z[J["iw-IL"]]="希伯来语 (以色列)",Z[J["es-ES"]]="西班牙语 (西班牙)",Z[J["es-MX"]]="西班牙语 (墨西哥)",Z[J.hu]="匈牙利语",Z[J["it-IT"]]="意大利语 (意大利)",Z[J["in-ID"]]="印度尼西亚语 (印度尼西亚)",Z[J["hi-IN"]]="印地语 (印度)",Z[J["vi-VN"]]="越南语 (越南)",Z[J["en-PK"]]="英语 (巴基斯坦)",Z[J["en-PL"]]="英语 (波兰)",Z[J["en-FR"]]="英语 (法国)",Z[J["en-PH"]]="英语 (菲律宾)",Z[J["en-CZ"]]="英语 (捷克共和国)",Z[J["en-CA"]]="英语 (加拿大)",Z[J["en-MM"]]="英语 (缅甸)",Z[J["en-US"]]="英语 (美国)",Z[J["en-BD"]]="英语 (孟加拉)",Z[J["en-MY"]]="英语 (马来西亚)",Z[J["en-NP"]]="英语 (尼泊尔)",Z[J["en-LK"]]="英语 (斯里兰卡)",Z[J["en-TH"]]="英语 (泰国)",Z[J["en-ES"]]="英语 (西班牙)",Z[J["en-SG"]]="英语 (新加坡)",Z[J["en-HU"]]="英语 (匈牙利)",Z[J["en-ID"]]="英语 (印度尼西亚)",Z[J["en-GB"]]="英语 (英国)",Z[J["en-VN"]]="英语 (越南)",Z[J["en-HK"]]="英语 (中国香港)",Z[J["en-KR"]]="英语 (韩国)",Z[J["zh-TW"]]="繁体中文 (中国台湾)",Z[J["zh-HK"]]="繁体中文 (中国香港)",Z[J["zh-SG"]]="简体中文 (新加坡)",Z[J["zh-CN"]]="简体中文 (中国)",Z[J["ar-IQ"]]="阿拉伯语 (伊拉克)",Z[J["ckb-IQ"]]="中库尔德语 (伊拉克)",Z[J.ku]="库尔德语",Z[J["kk-KZ"]]="哈萨克语",Z[J.af]="南非语",Z[J.am]="阿姆哈拉语",Z[J.az]="阿塞拜疆语",Z[J.be]="白俄罗斯语",Z[J.bg]="保加利亚语",Z[J.bs]="波斯尼亚语",Z[J.ca]="加泰罗尼亚语",Z[J.cy]="威尔士语",Z[J.el]="现代希腊语",Z[J.eo]="世界语",Z[J.et]="爱沙尼亚语",Z[J.eu]="巴斯克语",Z[J.fa]="波斯语",Z[J.fi]="芬兰语",Z[J.gd]="爱尔兰语",Z[J.gl]="加利西亚语",Z[J.ha]="豪萨语",Z[J.haw]="夏威夷语",Z[J.hr]="克罗地亚语",Z[J.ig]="伊博语",Z[J.is]="冰岛语",Z[J.ka]="格鲁吉亚语",Z[J.km]="高棉语",Z[J.ky]="吉尔吉斯语",Z[J.lb]="卢森堡语",Z[J.ln]="林格拉语",Z[J.lt]="立陶宛语",Z[J.lv]="拉脱维亚语",Z[J.mg]="马尔加什语",Z[J.mk]="马其顿语",Z[J.mn]="蒙古文",Z[J.mt]="马耳他语",Z[J.om]="奥罗莫语",Z[J.ps]="普什图语",Z[J.qu]="克丘亚语",Z[J.rw]="卢旺达语",Z[J.sl]="斯洛文尼亚语",Z[J.so]="索马里语",Z[J.sq]="阿尔巴尼亚语",Z[J.sw]="斯瓦希里语",Z[J.tg]="塔吉克语",Z[J.ti]="蒂格尼亚语",Z[J.ug]="维吾尔语",Z[J.uz]="乌兹别克语",Z[J.yo]="约鲁巴语",Z[J.zu]="祖鲁语";var Q,$={};$[J["ar-SA"]]="Arabic (Saudi Arabia)",$[J.kn]="Kannada",$[J.as]="Assamese",$[J.bho]="Bhojpuri",$[J["pl-PL"]]="Polish (Poland)",$[J["ko-KR"]]="Korean (Korean)",$[J["da-DK"]]="Danish (Denmark)",$[J["de-DE"]]="German (Germany)",$[J["ru-RU"]]="Russian (Russia)",$[J["fr-FR"]]="French (France)",$[J.gu]="Gujarati",$[J["nl-BE"]]="Dutch (Belgium)",$[J["nl-NL"]]="Dutch (Netherlands)",$[J["cs-CZ"]]="Czech (Czech Republic)",$[J.ro]="Romanian",$[J["lo-LA"]]="Lao (Laos)",$[J["my-MM"]]="Burmese (Myanmar)",$[J["bn-BD"]]="Bengali (Bangladesh)",$[J["bn-IN"]]="Bengali (India)",$[J.mr]="Marathi",$[J["ms-MY"]]="Malay (Malaysia)",$[J.ml]="Malayalam",$[J.mni]="Manipuri",$[J["ne-NP"]]="Nepalese (Nepal)",$[J.or]="Odia (Oriya)",$[J["pt-BR"]]="Portuguese (Brazil)",$[J["pt-PT"]]="Portuguese (Portugal)",$[J.pa]="Punjabi",$[J["sv-SE"]]="Swedish (Sweden)",$[J["ja-JP"]]="Japanese (Japanese)",$[J.sr]="Serbian",$[J["si-LK"]]="Sinhala (Sri Lanka)",$[J["sk-SK"]]="Slovak (Slovakia)",$[J["tr-TR"]]="Turkish (Turkish)",$[J["tl-PH"]]="Tagalog (Philippines)",$[J.te]="Telugu",$[J.ta]="Tamil",$[J["th-TH"]]="Thai (Thailand)",$[J["ur-PK"]]="Ulduwen (Pakistan)",$[J["ur-IN"]]="Urduwen (India)",$[J["uk-UA"]]="Ukrainian (Ukraine)",$[J["iw-IL"]]="Hebrew (Israel)",$[J["es-ES"]]="Spanish (Spain)",$[J["es-MX"]]="Spanish (Mexico)",$[J.hu]="Hungarian",$[J["it-IT"]]="Italian (Italian)",$[J["in-ID"]]="Indonesian (Indonesia)",$[J["hi-IN"]]="Hindi (India)",$[J["vi-VN"]]="Vietnamese (Vietnam)",$[J["en-PK"]]="English (Pakistan)",$[J["en-PL"]]="English (Poland)",$[J["en-FR"]]="English (France)",$[J["en-PH"]]="English (Philippines)",$[J["en-CZ"]]="English (Czech Republic)",$[J["en-CA"]]="English (Canada)",$[J["en-MM"]]="English (Myanmar)",$[J["en-US"]]="English (US)",$[J["en-BD"]]="English (Bangladesh)",$[J["en-MY"]]="English (Malaysia)",$[J["en-NP"]]="English (Nepal)",$[J["en-LK"]]="English (Sri Lanka)",$[J["en-TH"]]="English (Thailand)",$[J["en-ES"]]="English (Spain)",$[J["en-SG"]]="English (Singapore)",$[J["en-HU"]]="English (Hungary)",$[J["en-ID"]]="English (Indonesia)",$[J["en-GB"]]="English (UK)",$[J["en-VN"]]="English (Vietnam)",$[J["en-HK"]]="English (Hong Kong)",$[J["en-KR"]]="English (Korean)",$[J["zh-TW"]]="Chinese Traditional (Taiwan)",$[J["zh-HK"]]="Chinese Traditional (Hong Kong)",$[J["zh-SG"]]="Chinese Simplified (Singapore)",$[J["zh-CN"]]="Chinese Simplified (China)",$[J["ar-IQ"]]="Arabic (Iraq)",$[J["ckb-IQ"]]="Central Kurdish (Iraq)",$[J.ku]="Kurdish",$[J["kk-KZ"]]="Kazakh",$[J.af]="Afrikaans",$[J.am]="Amharic",$[J.az]="Azerbaijani",$[J.be]="Belarusian",$[J.bg]="Bulgarian",$[J.bs]="Bosnian",$[J.ca]="Catalan",$[J.cy]="Welsh",$[J.el]="Greek",$[J.eo]="Esperanto",$[J.et]="Estonian",$[J.eu]="Basque",$[J.fa]="Persian",$[J.fi]="Finnish",$[J.gd]="Scots Gaelic",$[J.gl]="Galician",$[J.ha]="Hausa",$[J.haw]="Hawaiian",$[J.hr]="Croatian",$[J.ig]="Igbo",$[J.is]="Icelandic",$[J.ka]="Georgian",$[J.km]="Khmer",$[J.ky]="Kyrgyz",$[J.lb]="Luxembourgish",$[J.ln]="Lingala",$[J.lt]="Lithuanian",$[J.lv]="Latvian",$[J.mg]="Malagasy",$[J.mk]="Macedonian",$[J.mn]="Mongolian",$[J.mt]="Maltese",$[J.om]="Oromo",$[J.ps]="Pashto",$[J.qu]="Quechua",$[J.rw]="Kinyarwanda",$[J.sl]="Slovenian",$[J.so]="Somali",$[J.sq]="Albanian",$[J.sw]="Swahili",$[J.tg]="Tajik",$[J.ti]="Tigrinya",$[J.ug]="Uyghur",$[J.uz]="Uzbek",$[J.yo]="Yoruba",$[J.zu]="Zulu",function(e){e["ar-SA"]="Arabic",e.kn="kannada",e.as="assamese",e.bho="bhojpuri",e["pl-PL"]="Polish",e["ko-KR"]="Korean",e["da-DK"]="danish",e["de-DE"]="German",e["ru-RU"]="Russian",e["fr-FR"]="French",e.gu="gujarati",e["nl-BE"]="Dutch(Belgium)",e["nl-NL"]="Dutch",e["cs-CZ"]="czech",e.ro="romanian",e["lo-LA"]="Lao (Laos)",e["my-MM"]="Burmese",e["bn-BD"]="Bangadesh",e["bn-IN"]="bangadeshIndia",e.mr="marathi",e["ms-MY"]="Malay",e.ml="malayalam",e.mni="manipuri",e["ne-NP"]="NepaliNepal",e.or="oriya",e["pt-BR"]="portuguese (Brazil)",e["pt-PT"]="Portuguese",e.pa="panjabi",e["sv-SE"]="swedish",e["ja-JP"]="Japanese",e.sr="Serbian",e["si-LK"]="Sinhala",e["sk-SK"]="slovak",e["tr-TR"]="Turkish",e["tl-PH"]="Filipino",e.te="telugu",e.ta="tamil",e["th-TH"]="Thai",e["ur-PK"]="Urdu",e["ur-IN"]="urduIndia",e["uk-UA"]="Ukrainian",e["iw-IL"]="Hebrew",e["es-ES"]="Spanish",e["es-MX"]="Spanish (Mexico)",e.hu="hungarian",e["it-IT"]="Italian",e["in-ID"]="Indonesian",e["hi-IN"]="Hindi",e["vi-VN"]="Vietnamese",e["en-PK"]="Pakistan English",e["en-PL"]="Poland English",e["en-FR"]="English (France)",e["en-PH"]="Philippines English",e["en-CZ"]="Czech English",e["en-CA"]="Canadian English",e["en-MM"]="Myanmar English",e["en-US"]="English",e["en-BD"]="Bangladesh English",e["en-MY"]="Malaysia English",e["en-NP"]="Nepal English",e["en-LK"]="Srilanka English",e["en-TH"]="Thai English",e["en-ES"]="English (Spain)",e["en-SG"]="singapore english",e["en-HU"]="Hungarian English",e["en-ID"]="Indonesian English",e["en-GB"]="British English",e["en-VN"]="Vietnamese English",e["en-HK"]="Hong Kong English",e["en-KR"]="Korean English",e["zh-TW"]="Traditional Chinese",e["zh-HK"]="Traditional Chinese(HK)",e["zh-SG"]="Chinese (Singapore)",e["zh-CN"]="Simplified Chinese",e["ar-IQ"]="Arabic (Iraq)",e["ckb-IQ"]="Central Kurdish (Iraq)",e.ku="Kurdish",e["kk-KZ"]="Kazakh"}(Q||(Q={}));var ee,te,ne,re={"zh-hans":J["zh-CN"],"zh-hant":J["zh-TW"],ar:J["ar-SA"],bn:J["bn-BD"],cs:J["cs-CZ"],da:J["da-DK"],de:J["de-DE"],en:J["en-US"],es:J["es-ES"],fr:J["fr-FR"],hi:J["hi-IN"],in:J["in-ID"],it:J["it-IT"],iw:J["iw-IL"],ja:J["ja-JP"],ko:J["ko-KR"],lo:J["lo-LA"],ms:J["ms-MY"],my:J["my-MM"],ne:J["ne-NP"],nl:J["nl-NL"],pl:J["pl-PL"],pt:J["pt-PT"],ru:J["ru-RU"],si:J["si-LK"],sk:J["sk-SK"],sv:J["sv-SE"],th:J["th-TH"],tl:J["tl-PH"],tr:J["tr-TR"],uk:J["uk-UA"],ur:J["ur-PK"],vi:J["vi-VN"],zh:J["zh-CN"],kk:J["kk-KZ"]},oe={"zh-hant":J["zh-TW"],"zh-hans":J["zh-CN"]},ie=function(e){return Object.keys(e||{}).map((function(t){return e[t]}))},ae=function(e,t){return-1!==e.indexOf(t)};!function(e){e.ar_EG="ar_EG",e.az_AZ="az_AZ",e.bg_BG="bg_BG",e.bn_BD="bn_BD",e.by_BY="by_BY",e.ca_ES="ca_ES",e.cs_CZ="cs_CZ",e.da_DK="da_DK",e.de_DE="de_DE",e.el_GR="el_GR",e.en_GB="en_GB",e.en_US="en_US",e.es_ES="es_ES",e.et_EE="et_EE",e.fa_IR="fa_IR",e.fi_FI="fi_FI",e.fr_BE="fr_BE",e.fr_CA="fr_CA",e.fr_FR="fr_FR",e.ga_IE="ga_IE",e.gl_ES="gl_ES",e.he_IL="he_IL",e.hi_IN="hi_IN",e.hr_HR="hr_HR",e.hu_HU="hu_HU",e.hy_AM="hy_AM",e.id_ID="id_ID",e.it_IT="it_IT",e.is_IS="is_IS",e.ja_JP="ja_JP",e.ka_GE="ka_GE",e.kmr_IQ="kmr_IQ",e.kn_IN="kn_IN",e.kk_KZ="kk_KZ",e.km_KH="km_KH",e.ko_KR="ko_KR",e.lt_LT="lt_LT",e.lv_LV="lv_LV",e.mk_MK="mk_MK",e.ml_IN="ml_IN",e.mn_MN="mn_MN",e.ms_MY="ms_MY",e.nb_NO="nb_NO",e.ne_NP="ne_NP",e.nl_BE="nl_BE",e.nl_NL="nl_NL",e.pl_PL="pl_PL",e.pt_BR="pt_BR",e.pt_PT="pt_PT",e.ro_RO="ro_RO",e.ru_RU="ru_RU",e.si_LK="si_LK",e.sk_SK="sk_SK",e.sr_RS="sr_RS",e.sl_SI="sl_SI",e.sv_SE="sv_SE",e.ta_IN="ta_IN",e.th_TH="th_TH",e.tr_TR="tr_TR",e.tk_TK="tk_TK",e.ur_PK="ur_PK",e.uk_UA="uk_UA",e.uz_UZ="uz_UZ",e.vi_VN="vi_VN",e.zh_CN="zh_CN",e.zh_HK="zh_HK",e.zh_TW="zh_TW"}(ee||(ee={})),ie(ee),function(e){e.af="af",e.am="am",e["ar-dz"]="ar-dz",e["ar-iq"]="ar-iq",e["ar-kw"]="ar-kw",e["ar-ly"]="ar-ly",e["ar-ma"]="ar-ma",e["ar-sa"]="ar-sa",e["ar-tn"]="ar-tn",e.ar="ar",e.az="az",e.be="be",e.bg="bg",e.bi="bi",e.bm="bm",e["bn-bd"]="bn-bd",e.bn="bn",e.bo="bo",e.br="br",e.bs="bs",e.ca="ca",e.cs="cs",e.cv="cv",e.cy="cy",e.da="da",e["de-at"]="de-at",e["de-ch"]="de-ch",e.de="de",e.dv="dv",e.el="el",e["en-au"]="en-au",e["en-ca"]="en-ca",e["en-gb"]="en-gb",e["en-ie"]="en-ie",e["en-il"]="en-il",e["en-in"]="en-in",e["en-nz"]="en-nz",e["en-sg"]="en-sg",e["en-tt"]="en-tt",e.en="en",e.eo="eo",e["es-do"]="es-do",e["es-mx"]="es-mx",e["es-PR"]="es-PR",e["es-us"]="es-us",e.es="es",e.et="et",e.eu="eu",e.fa="fa",e.fi="fi",e.fo="fo",e["fr-ca"]="fr-ca",e["fr-ch"]="fr-ch",e.fr="fr",e.fy="fy",e.ga="ga",e.gd="gd",e.gl="gl",e["gom-latn"]="gom-latn",e.gu="gu",e.he="he",e.hi="hi",e.hr="hr",e.ht="ht",e.hu="hu",e["hy-am"]="hy-am",e.id="id",e.is="is",e["it-ch"]="it-ch",e.it="it",e.ja="ja",e.jv="jv",e.ka="ka",e.kk="kk",e.km="km",e.kn="kn",e.ko="ko",e.ku="ku",e.ky="ky",e.lb="lb",e.lo="lo",e.lt="lt",e.lv="lv",e.me="me",e.mi="mi",e.mk="mk",e.ml="ml",e.mn="mn",e.mr="mr",e["ms-my"]="ms-my",e.ms="ms",e.mt="mt",e.my="my",e.nb="nb",e.ne="ne",e["nl-be"]="nl-be",e.nl="nl",e.nn="nn",e["oc-lnc"]="oc-lnc",e["pa-in"]="pa-in",e.pl="pl",e["pt-br"]="pt-br",e.pt="pt",e.rn="rn",e.ro="ro",e.ru="ru",e.rw="rw",e.sd="sd",e.se="se",e.si="si",e.sk="sk",e.sl="sl",e.sq="sq",e["sr-cyrl"]="sr-cyrl",e.sr="sr",e.ss="ss",e["sv-fi"]="sv-fi",e.sv="sv",e.sw="sw",e.ta="ta",e.te="te",e.tet="tet",e.tg="tg",e.th="th",e.tk="tk",e["tl-ph"]="tl-ph",e.tlh="tlh",e.tr="tr",e.tzl="tzl",e["tzm-latn"]="tzm-latn",e.tzm="tzm",e["ug-cn"]="ug-cn",e.uk="uk",e.ur="ur",e["uz-latn"]="uz-latn",e.uz="uz",e.vi="vi",e["x-pseudo"]="x-pseudo",e.yo="yo",e["zh-cn"]="zh-cn",e["zh-hk"]="zh-hk",e["zh-tw"]="zh-tw",e.zh="zh"}(te||(te={})),ie(te),function(e){e.af="af",e["ar-dz"]="ar-dz",e["ar-kw"]="ar-kw",e["ar-ly"]="ar-ly",e["ar-ma"]="ar-ma",e["ar-sa"]="ar-sa",e["ar-tn"]="ar-tn",e.ar="ar",e.az="az",e.be="be",e.bg="bg",e.bm="bm",e["bn-bd"]="bn-bd",e.bn="bn",e.bo="bo",e.br="br",e.bs="bs",e.ca="ca",e.cs="cs",e.cv="cv",e.cy="cy",e.da="da",e["de-at"]="de-at",e["de-ch"]="de-ch",e.de="de",e.dv="dv",e.el="el",e["en-au"]="en-au",e["en-ca"]="en-ca",e["en-gb"]="en-gb",e["en-ie"]="en-ie",e["en-il"]="en-il",e["en-in"]="en-in",e["en-nz"]="en-nz",e["en-sg"]="en-sg",e.eo="eo",e["es-do"]="es-do",e["es-mx"]="es-mx",e["es-us"]="es-us",e.es="es",e.et="et",e.eu="eu",e.fa="fa",e.fi="fi",e.fil="fil",e.fo="fo",e["fr-ca"]="fr-ca",e["fr-ch"]="fr-ch",e.fr="fr",e.fy="fy",e.ga="ga",e.gd="gd",e.gl="gl",e["gom-deva"]="gom-deva",e["gom-latn"]="gom-latn",e.gu="gu",e.he="he",e.hi="hi",e.hr="hr",e.hu="hu",e["hy-am"]="hy-am",e.id="id",e.is="is",e["it-ch"]="it-ch",e.it="it",e.ja="ja",e.jv="jv",e.ka="ka",e.kk="kk",e.km="km",e.kn="kn",e.ko="ko",e.ku="ku",e.ky="ky",e.lb="lb",e.lo="lo",e.lt="lt",e.lv="lv",e.me="me",e.mi="mi",e.mk="mk",e.ml="ml",e.mn="mn",e.mr="mr",e["ms-my"]="ms-my",e.ms="ms",e.mt="mt",e.my="my",e.nb="nb",e.ne="ne",e["nl-be"]="nl-be",e.nl="nl",e.nn="nn",e["oc-lnc"]="oc-lnc",e["pa-in"]="pa-in",e.pl="pl",e["pt-br"]="pt-br",e.pt="pt",e.ro="ro",e.ru="ru",e.sd="sd",e.se="se",e.si="si",e.sk="sk",e.sl="sl",e.sq="sq",e["sr-cyrl"]="sr-cyrl",e.sr="sr",e.ss="ss",e.sv="sv",e.sw="sw",e.ta="ta",e.te="te",e.tet="tet",e.tg="tg",e.th="th",e.tk="tk",e["tl-ph"]="tl-ph",e.tlh="tlh",e.tr="tr",e.tzl="tzl",e["tzm-latn"]="tzm-latn",e.tzm="tzm",e["ug-cn"]="ug-cn",e.uk="uk",e.ur="ur",e["uz-latn"]="uz-latn",e.uz="uz",e.vi="vi",e["x-pseudo"]="x-pseudo",e.yo="yo",e["zh-cn"]="zh-cn",e["zh-hk"]="zh-hk",e["zh-mo"]="zh-mo",e["zh-tw"]="zh-tw"}(ne||(ne={})),ie(ne);var se,ue,ce,le,he,fe,pe,de,ge,me,ve,ye,be,_e,Ee,we;J["ar-IQ"],ee.ar_EG,ne.ar,te.ar,J["ar-SA"],ee.ar_EG,ne["ar-sa"],te["ar-sa"],J["bn-BD"],ee.bn_BD,ne["bn-bd"],te["bn-bd"],J["bn-IN"],ee.bn_BD,ne.bn,te.bn,J["cs-CZ"],ee.cs_CZ,ne.cs,te.cs,J["da-DK"],ee.da_DK,ne.da,te.da,J["de-DE"],ee.de_DE,ne.de,te.de,J["en-BD"],ee.en_US,ne["en-gb"],te.en,J["en-CA"],ee.en_US,ne["en-ca"],te["en-ca"],J["en-CZ"],ee.en_US,ne["en-gb"],te.en,J["en-ES"],ee.en_US,ne["en-gb"],te.en,J["en-FR"],ee.en_US,ne["en-gb"],te.en,J["en-GB"],ee.en_GB,ne["en-gb"],te["en-gb"],J["en-HU"],ee.en_US,ne["en-gb"],te.en,J["en-ID"],ee.en_US,ne["en-gb"],te.en,J["en-LK"],ee.en_US,ne["en-gb"],te.en,J["en-MM"],ee.en_US,ne["en-gb"],te.en,J["en-MY"],ee.en_US,ne["en-gb"],te.en,J["en-NP"],ee.en_US,ne["en-gb"],te.en,J["en-PH"],ee.en_US,ne["en-gb"],te.en,J["en-PK"],ee.en_US,ne["en-gb"],te.en,J["en-PL"],ee.en_US,ne["en-gb"],te.en,J["en-SG"],ee.en_US,ne["en-sg"],te.en,J["en-TH"],ee.en_US,ne["en-gb"],te.en,J["en-US"],ee.en_US,ne["en-gb"],te.en,J["en-VN"],ee.en_US,ne["en-gb"],te.en,J["en-HK"],ee.en_US,ne["en-gb"],te.en,J["en-KR"],ee.en_US,ne["en-gb"],te.en,J["es-ES"],ee.es_ES,ne.es,te.es,J["es-MX"],ee.es_ES,ne.es,te.es,J["fr-FR"],ee.fr_FR,ne.fr,te.fr,J["hi-IN"],ee.hi_IN,ne.hi,te.hi,J.hu,ee.hu_HU,ne.hu,te.hu,J["in-ID"],ee.id_ID,ne.id,te.id,J["it-IT"],ee.it_IT,ne.it,te.it,J["ja-JP"],ee.ja_JP,ne.ja,te.ja,J.kn,ee.kn_IN,ne.kn,te.kn,J["ko-KR"],ee.ko_KR,ne.ko,te.ko,J.ml,ee.ml_IN,ne.ml,te.ml,J["ms-MY"],ee.ms_MY,ne["ms-my"],te["ms-my"],J["ne-NP"],ee.ne_NP,ne.ne,te.ne,J["nl-BE"],ee.nl_BE,ne["nl-be"],te["nl-be"],J["nl-NL"],ee.nl_NL,ne.nl,te.nl,J["pl-PL"],ee.pl_PL,ne.pl,te.pl,J["pt-BR"],ee.pt_BR,ne["pt-br"],te["pt-br"],J["pt-PT"],ee.pt_PT,ne.pt,te.pt,J.ro,ee.ro_RO,ne.ro,te.ro,J["ru-RU"],ee.ru_RU,ne.ru,te.ru,J["si-LK"],ee.si_LK,ne.si,te.si,J["sk-SK"],ee.sk_SK,ne.sk,te.sk,J.sr,ee.sr_RS,ne.sr,te.sr,J["sv-SE"],ee.sv_SE,ne.sv,te.sv,J.ta,ee.ta_IN,ne.ta,te.ta,J["th-TH"],ee.th_TH,ne.th,te.th,J["tr-TR"],ee.tr_TR,ne.tr,te.tr,J["uk-UA"],ee.uk_UA,ne.uk,te.uk,J["ur-PK"],ee.ur_PK,ne.ur,te.ur,J["vi-VN"],ee.vi_VN,ne.vi,te.vi,J["zh-CN"],ee.zh_CN,ne["zh-cn"],te["zh-cn"],J["zh-HK"],ee.zh_HK,ne["zh-hk"],te["zh-hk"],J["zh-SG"],ee.zh_HK,ne["zh-hk"],te["zh-hk"],J["zh-TW"],ee.zh_TW,ne["zh-tw"],te["zh-tw"],J["kk-KZ"],ee.kk_KZ,ne.kk,te.kk;!function(e){e.ar_SA="ar_SA",e.kn="kn",e.as="as",e.bho="bho",e.pl_PL="pl_PL",e.ko_KR="ko_KR",e.da_DK="da_DK",e.de_DE="de_DE",e.ru_RU="ru_RU",e.fr_FR="fr_FR",e.gu="gu",e.nl_BE="nl_BE",e.nl_NL="nl_NL",e.cs_CZ="cs_CZ",e.ro="ro",e.lo_LA="lo_LA",e.my_MM="my_MM",e.bn_BD="bn_BD",e.bn_IN="bn_IN",e.mr="mr",e.ms_MY="ms_MY",e.ml="ml",e.mni="mni",e.ne_NP="ne_NP",e.or="or",e.pt_BR="pt_BR",e.pt_PT="pt_PT",e.pa="pa",e.sv_SE="sv_SE",e.ja_JP="ja_JP",e.sr="sr",e.si_LK="si_LK",e.sk_SK="sk_SK",e.tr_TR="tr_TR",e.tl_PH="tl_PH",e.te="te",e.ta="ta",e.th_TH="th_TH",e.ur_PK="ur_PK",e.ur_IN="ur_IN",e.uk_UA="uk_UA",e.iw_IL="iw_IL",e.es_ES="es_ES",e.es_MX="es_MX",e.hu="hu",e.it_IT="it_IT",e.in_ID="in_ID",e.hi_IN="hi_IN",e.vi_VN="vi_VN",e.en_PK="en_PK",e.en_PL="en_PL",e.en_FR="en_FR",e.en_PH="en_PH",e.en_CZ="en_CZ",e.en_CA="en_CA",e.en_MM="en_MM",e.en_US="en_US",e.en_BD="en_BD",e.en_MY="en_MY",e.en_NP="en_NP",e.en_LK="en_LK",e.en_TH="en_TH",e.en_ES="en_ES",e.en_SG="en_SG",e.en_HU="en_HU",e.en_ID="en_ID",e.en_GB="en_GB",e.en_VN="en_VN",e.en_HK="en_HK",e.en_KR="en_KR",e.zh_TW="zh_TW",e.zh_HK="zh_HK",e.zh_SG="zh_SG",e.zh_CN="zh_CN",e.ar_IQ="ar_IQ",e.ckb_IQ="ckb_IQ",e.ku="ku",e.kk_KZ="kk_KZ",e.af="af",e.am="am",e.az="az",e.be="be",e.bg="bg",e.bs="bs",e.ca="ca",e.cy="cy",e.el="el",e.eo="eo",e.et="et",e.eu="eu",e.fa="fa",e.fi="fi",e.gd="gd",e.gl="gl",e.ha="ha",e.haw="haw",e.hr="hr",e.ig="ig",e.is="is",e.ka="ka",e.km="km",e.ky="ky",e.lb="lb",e.ln="ln",e.lt="lt",e.lv="lv",e.mg="mg",e.mk="mk",e.mn="mn",e.mt="mt",e.om="om",e.ps="ps",e.qu="qu",e.rw="rw",e.sl="sl",e.so="so",e.sq="sq",e.sw="sw",e.tg="tg",e.ti="ti",e.ug="ug",e.uz="uz",e.yo="yo",e.zu="zu"}(we||(we={}));var Se,ke,Te=ie(we),Pe={};Pe[we.kn]="AiNaDeYu",Pe[we.ar_SA]="ALaBoYu (ShaTeALaBo)",Pe[we.ar_IQ]="ALaBoYu (YiLaKe)",Pe[we.as]="ASaMuYu",Pe[we.bho]="BoJiePuErYu",Pe[we.pl_PL]="BoLanYu (BoLan)",Pe[we.ko_KR]="ChaoXianYu (HanGuo)",Pe[we.da_DK]="DanMaiYu (DanMai)",Pe[we.de_DE]="DeYu (DeGuo)",Pe[we.ru_RU]="EYu (ELuoSi)",Pe[we.fr_FR]="FaYu (FaGuo)",Pe[we.gu]="GuJiaLaTiYu",Pe[we.nl_BE]="HeLanYu (BiLiShi)",Pe[we.nl_NL]="HeLanYu (HeLan)",Pe[we.cs_CZ]="JieKeYu (JieKeGongHeGuo)",Pe[we.ku]="KuErDeYu",Pe[we.lo_LA]="LaoWoYu (LaoWo)",Pe[we.ro]="LuoMaNiYaYu",Pe[we.mr]="MaLaDiYu",Pe[we.ms_MY]="MaLaiYu (MaLaiXiYa)",Pe[we.ml]="MaLaiYaLaMuYu",Pe[we.mni]="ManNiPuLiYu",Pe[we.bn_BD]="MengJiaLaYu (MengJiaLa)",Pe[we.bn_IN]="MengJiaLaYu (YinDu)",Pe[we.my_MM]="MianDianYu (MianDian)",Pe[we.ne_NP]="NiBoErYu (NiBoEr)",Pe[we.or]="OuLiYaYu",Pe[we.pa]="PangZhePuYu",Pe[we.pt_BR]="PuTaoYaYu (BaXi)",Pe[we.pt_PT]="PuTaoYaYu (PuTaoYa)",Pe[we.ja_JP]="RiYu (RiBen)",Pe[we.sv_SE]="RuiDianYu (RuiDian)",Pe[we.sr]="SaiErWeiYaYu",Pe[we.si_LK]="SengJiaLuoYu (SiLiLanKa)",Pe[we.sk_SK]="SiLuoFaKeYu (SiLuoFaKe)",Pe[we.te]="TaiLuGuYu",Pe[we.ta]="TaiMiErYu",Pe[we.th_TH]="TaiYu (TaiGuo)",Pe[we.tl_PH]="TaJiaLuZuYu (FeiLvBin)",Pe[we.tr_TR]="TuErQiYu (TuErQi)",Pe[we.ur_PK]="WuErDuYu (BaJiSiTan)",Pe[we.ur_IN]="WuErDuYu (YinDu)",Pe[we.uk_UA]="WuKeLanYu (WuKeLan)",Pe[we.es_ES]="XiBanYaYu (XiBanYa)",Pe[we.es_MX]="XiBanYaYu (MoXiGe)",Pe[we.iw_IL]="XiBoLaiYu (YiSeLie)",Pe[we.hu]="XiongYaLiYu",Pe[we.it_IT]="YiDaLiYu (YiDaLi)",Pe[we.hi_IN]="YinDiYu (YinDu)",Pe[we.in_ID]="YinDuNiXiYaYu (YinDuNiXiYa)",Pe[we.en_PK]="YingYu (BaJiSiTan)",Pe[we.en_PL]="YingYu (BoLan)",Pe[we.en_FR]="YingYu (FaGuo)",Pe[we.en_PH]="YingYu (FeiLvBin)",Pe[we.en_CA]="YingYu (JiaNaDa)",Pe[we.en_CZ]="YingYu (JieKeGongHeGuo)",Pe[we.en_MY]="YingYu (MaLaiXiYa)",Pe[we.en_US]="YingYu (MeiGuo)",Pe[we.en_BD]="YingYu (MengJiaLa)",Pe[we.en_MM]="YingYu (MianDian)",Pe[we.en_NP]="YingYu (NiBoEr)",Pe[we.en_LK]="YingYu (SiLiLanKa)",Pe[we.en_TH]="YingYu (TaiGuo)",Pe[we.en_ES]="YingYu (XiBanYa)",Pe[we.en_SG]="YingYu (XinJiaPo)",Pe[we.en_HU]="YingYu (XiongYaLi)",Pe[we.en_ID]="YingYu (YinDuNiXiYa)",Pe[we.en_GB]="YingYu (YingGuo)",Pe[we.en_VN]="YingYu (YueNan)",Pe[we.en_HK]="YingYu (XiangGang)",Pe[we.en_KR]="YingYu (HanGuo)",Pe[we.vi_VN]="YueNanYu (YueNan)",Pe[we.ckb_IQ]="ZhongKuErDeYu (YiLaKe)",Pe[we.zh_TW]="ZhongWen (TaiWanDiQu)",Pe[we.zh_HK]="ZhongWen (XiangGang)",Pe[we.zh_SG]="ZhongWen (XinJiaPo)",Pe[we.zh_CN]="ZhongWen (ZhongGuo)",Pe[we.kk_KZ]="HaSaKeYu (HaSaKeSiTan)",Pe[we.af]="NanFeiYu",Pe[we.am]="AMuHaLaYu",Pe[we.az]="ASaiBaiJiangYu",Pe[we.be]="BaiErLuoSiYu",Pe[we.bg]="BaoJiaLiYaYu",Pe[we.bs]="BoSiNiYaYu",Pe[we.ca]="JiaTaiLuoNiYaYu",Pe[we.cy]="WeiErShiYu",Pe[we.el]="XianDaiXiLaYu",Pe[we.eo]="ShiJieYu",Pe[we.et]="AiShaNiYaYu",Pe[we.eu]="BaSiKeYu",Pe[we.fa]="BoSiYu",Pe[we.fi]="FenLanYu",Pe[we.gd]="AiErLanYu",Pe[we.gl]="JiaLiXiYaYu",Pe[we.ha]="HaoSaYu",Pe[we.haw]="XiaWeiYiYu",Pe[we.hr]="KeLuoDiYaYu",Pe[we.ig]="YiBoYu",Pe[we.is]="BingDaoYu",Pe[we.ka]="GeLuJiYaYu",Pe[we.km]="GaoMianYu",Pe[we.ky]="JiErJiSiYu",Pe[we.lb]="LuSenBaoYu",Pe[we.ln]="LinGeLaYu",Pe[we.lt]="LiTaoWanYu",Pe[we.lv]="LaTuoWeiYaYu",Pe[we.mg]="MaErJiaShiYu",Pe[we.mk]="MaQiDunYu",Pe[we.mn]="MengGuWen",Pe[we.mt]="MaErTaYu",Pe[we.om]="AoLuoMoYu",Pe[we.ps]="PuShiTuYu",Pe[we.qu]="KeQiuYaYu",Pe[we.rw]="LuWangDaYu",Pe[we.sl]="SiLuoWeiNiYaYu",Pe[we.so]="SuoMaLiYu",Pe[we.sq]="AErBaNiYaYu",Pe[we.sw]="SiWaXiLiYu",Pe[we.tg]="TaJiKeYu",Pe[we.ti]="DiGeNiYaYu",Pe[we.ug]="WeiWuErYu",Pe[we.uz]="WuZiBieKeYu",Pe[we.yo]="YueLuBaYu",Pe[we.zu]="ZuLuYu",function(e){e.AiSelected="AiSelected",e.Aliyun="Aliyun",e["ChatGPT3.5"]="ChatGPT3.5",e.Google="Google",e.Papago="Papago",e.DeepL="DeepL",e.Microsoft="Microsoft",e.Amazon="Amazon"}(Se||(Se={})),function(e){e.AiSelected="AiSelected",e.Aliyun="Aliyun",e["ChatGPT3.5"]="ChatGPT3.5",e.Google="Google",e.Papago="Papago",e.DeepL="DeepL",e.Microsoft="Microsoft",e.Amazon="Amazon"}(ke||(ke={})),ie(ke);var Le=Object.assign(Object.assign({},ke),{TranslationMemory:"TranslationMemory"}),Re=(ie(Le),{aliyunSupportedLanguages:["ab","sq","ak","ar","an","am","as","az","ast","nch","ee","ay","ga","et","oj","oc","or","om","os","tpi","ba","eu","be","ber","bm","pag","bg","se","bem","byn","bi","bal","is","pl","bs","fa","bho","br","ch","cbk","cv","ts","tt","da","shn","tet","de","nds","sco","dv","kdx","dtp","ru","fo","fr","sa","fil","fj","fi","fur","fvr","kg","km","ngu","kl","ka","gos","gu","gn","kk","ht","ko","ha","nl","cnr","hup","gil","rn","quc","ky","gl","ca","cs","kab","kn","kr","csb","kha","kw","xh","co","mus","crh","tlh","hbs","qu","ks","ku","la","ltg","lv","lo","lt","li","ln","lg","lb","rue","rw","ro","rm","rom","jbo","mg","gv","mt","mr","ml","ms","chm","mk","mh","kek","mai","mfe","mi","mn","bn","my","hmn","umb","nv","af","ne","niu","no","pmn","pap","pa","pt","ps","ny","tw","chr","ja","sv","sm","sg","si","hsb","eo","sl","sw","so","sk","tl","tg","ty","te","ta","th","to","toi","ti","tvl","tyv","tr","tk","wa","war","cy","ve","vo","wo","udm","ur","uz","es","ie","fy","szl","he","hil","haw","el","lfn","sd","hu","sn","ceb","syr","su","hy","ace","iba","ig","io","ilo","iu","it","yi","ia","hi","id","inh","en","yo","vi","zza","jv","zh","zh-tw","yue","zu"],mapAliyunLanguage:function(e){if(e===we.zh_HK||e===we.zh_TW||e===we.zh_SG)return"zh-tw";if(e===we.in_ID)return"id";if(e===we.iw_IL)return"he";var t=e.split("_")[0];return ae(Re.aliyunSupportedLanguages,t)?t:null},googleSupportedLanguages:["af","sq","am","ar","hy","as","ay","az","bm","eu","be","bn","bho","bs","bg","ca","ceb","zh","zh-CN","zh-TW","co","hr","cs","da","dv","doi","nl","en","eo","et","ee","fil","fi","fr","fy","gl","ka","de","el","gn","gu","ht","ha","haw","he","iw","hi","hmn","hu","is","ig","ilo","id","ga","it","ja","jv","jw","kn","kk","km","rw","gom","ko","kri","ku","ckb","ky","lo","la","lv","ln","lt","lg","lb","mk","mai","mg","ms","ml","mt","mi","mr","mni-Mtei","lus","mn","my","ne","no","ny","or","om","ps","fa","pl","pt","pa","qu","ro","ru","sm","sa","gd","nso","sr","st","sn","sd","si","sk","sl","so","es","su","sw","sv","tl","tg","ta","tt","te","th","ti","ts","tr","tk","ak","uk","ur","ug","uz","vi","cy","xh","yi","yo","zu"],mapGoogleLanguage:function(e){if(e===we.zh_HK||e===we.zh_TW||e===we.zh_SG)return"zh-TW";if(e===we.in_ID)return"id";if(e===we.mni)return"mni-Mtei";var t=e.split("_")[0];return ae(Re.googleSupportedLanguages,t)?t:null},papagoSupportedLanguages:["ko","en","ja","zh-CN","zh-TW"],mapPapagoLanguage:function(e){if(e===we.zh_CN)return"zh-CN";if(e===we.zh_HK||e===we.zh_TW||e===we.zh_SG)return"zh-TW";var t=e.split("_")[0];return ae(Re.papagoSupportedLanguages,t)?t:null},deepLSupportedSourceLanguages:["AR","BG","CS","DA","DE","EL","EN","ES","ET","FI","FR","HU","ID","IT","JA","KO","LT","LV","NB","NL","PL","PT","RO","RU","SK","SL","SV","TR","UK","ZH"],deepLSupportedLanguages:["AR","BG","CS","DA","DE","EL","EN-GB","EN-US","ES","ET","FI","FR","HU","ID","IT","JA","KO","LT","LV","NB","NL","PL","PT-BR","PT-PT","RO","RU","SK","SL","SV","TR","UK","ZH"],mapDeepLSourceLanguage:function(e){var t=e.toUpperCase();if(e===we.in_ID)return"ID";var n=t.split("_")[0];return ae(Re.deepLSupportedSourceLanguages,n)?n:null},mapDeepLLanguage:function(e){var t=e.toUpperCase();if(e===we.zh_CN||e===we.zh_SG)return"ZH";if(e===we.zh_HK||e===we.zh_TW)return null;if(e===we.en_GB||e===we.en_US||e===we.pt_BR||e===we.pt_PT)return t.replace("_","-");if(e===we.in_ID)return"ID";var n=t.split("_")[0];return"EN"===n?"EN-US":ae(Re.deepLSupportedLanguages,n)?n:null},microsoftSupportedLanguages:["af","sq","am","ar","hy","as","az","bn","ba","eu","bho","brx","bs","bg","yue","ca","lzh","zh-Hans","zh-Hant","sn","hr","cs","da","prs","dv","doi","nl","en","et","fo","fj","fil","fi","fr","fr-ca","gl","ka","de","el","gu","ht","ha","he","hi","mww","hu","is","ig","id","ikt","iu","iu-Latn","ga","it","ja","kn","ks","kk","km","rw","tlh-Latn","tlh-Piqd","gom","ko","ku","kmr","ky","lo","lv","lt","ln","dsb","lug","mk","mai","mg","ms","ml","mt","mi","mr","mn-Cyrl","mn-Mong","my","ne","nb","nya","or","ps","fa","pl","pt","pt-pt","pa","otq","ro","run","ru","sm","sr-Cyrl","sr-Latn","st","nso","tn","sd","si","sk","sl","so","es","sw","sv","ty","ta","tt","te","th","bo","ti","to","tr","tk","uk","hsb","ur","ug","uz","vi","cy","xh","yo","yua","zu"],mapMicrosoftLanguage:function(e){if(e===we.pt_PT)return"pt-pt";if(e===we.pt_BR)return"pt";if([we.zh_CN,we.zh_SG].includes(e))return"zh-Hans";if([we.zh_HK,we.zh_TW].includes(e))return"zh-Hant";if(e===we.iw_IL)return"he";if(e===we.in_ID)return"id";if(e===we.ckb_IQ)return"ku";var t=e.split("_")[0];return ae(Re.microsoftSupportedLanguages,t)?t:null},amazonSupportedLanguages:["af","sq","am","ar","hy","az","bn","bs","bg","ca","zh","zh-TW","hr","cs","da","fa-AF","nl","en","et","fa","tl","fi","fr","fr-CA","ka","de","el","gu","ht","ha","he","hi","hu","is","id","ga","it","ja","kn","kk","ko","lv","lt","mk","ms","ml","mt","mr","mn","no","ps","pl","pt","pt-PT","pa","ro","ru","sr","si","sk","sl","so","es","es-MX","sw","sv","ta","te","th","tr","uk","ur","uz","vi","cy"],mapAmazonLanguage:function(e){if(e===we.pt_PT)return"pt-PT";if(e===we.pt_BR)return"pt";if(e===we.es_MX)return"es-MX";if(e===we.in_ID)return"id";if(e===we.zh_CN||e===we.zh_SG)return"zh";if(e===we.zh_HK||e===we.zh_TW)return"zh-TW";var t=e.split("_")[0];return ae(Re.amazonSupportedLanguages,t)?t:null}}),Ae={};Ae[ke.AiSelected]=Te,Ae[ke.Aliyun]=Te.filter((function(e){return Boolean(Re.mapAliyunLanguage(e))})),Ae[ke["ChatGPT3.5"]]=Te,Ae[ke.Google]=Te.filter((function(e){return Boolean(Re.mapGoogleLanguage(e))})),Ae[ke.Papago]=Te.filter((function(e){return Boolean(Re.mapPapagoLanguage(e))})),Ae[ke.DeepL]=Te.filter((function(e){return Boolean(Re.mapDeepLLanguage(e))})),Ae[ke.Microsoft]=Te.filter((function(e){return Boolean(Re.mapMicrosoftLanguage(e))})),Ae[ke.Amazon]=Te.filter((function(e){return Boolean(Re.mapAmazonLanguage(e))}));var Oe={};Oe[ke.AiSelected]=Te,Oe[ke.Aliyun]=Te.filter((function(e){return Boolean(Re.mapAliyunLanguage(e))})),Oe[ke["ChatGPT3.5"]]=Te,Oe[ke.Google]=Te.filter((function(e){return Boolean(Re.mapGoogleLanguage(e))})),Oe[ke.Papago]=Te.filter((function(e){return Boolean(Re.mapPapagoLanguage(e))})),Oe[ke.DeepL]=Te.filter((function(e){return Boolean(Re.mapDeepLSourceLanguage(e))})),Oe[ke.Microsoft]=Te.filter((function(e){return Boolean(Re.mapMicrosoftLanguage(e))})),Oe[ke.Amazon]=Te.filter((function(e){return Boolean(Re.mapAmazonLanguage(e))})),Ne=Te.map((function(e){return[e,ie(ke).filter((function(t){return ae(Ae[t],e)}))]})),Ie={},Object.keys(Ne||{}).forEach((function(e){var t=Ne[e],n=t[0],r=t[1];Ie[n]=r}));var Ne,Ie,xe={};xe[we.ar_SA]="العربية)السعودية)",xe[we.kn]="ಕನ್ನಡ",xe[we.as]="অসমীয়া",xe[we.bho]="भोजपुरी",xe[we.pl_PL]="Polski (Polska)",xe[we.ko_KR]="한국어 (대한민국)",xe[we.da_DK]="Dansk (Danmark)",xe[we.de_DE]="Deutsch (Deutschland)",xe[we.ru_RU]="Русский (Россия)",xe[we.fr_FR]="Français (France)",xe[we.gu]="ગુજરાતી",xe[we.nl_BE]="Nederlands (Belgium)",xe[we.nl_NL]="Nederlands (Nederland)",xe[we.cs_CZ]="Čeština (Česká republika)",xe[we.ro]="Română",xe[we.lo_LA]="ລາວ (ລາວ)",xe[we.my_MM]="မြန်မာဘာသာ (မြန်မာ)",xe[we.bn_BD]="বাংলা (বাংলাদেশ)",xe[we.bn_IN]="বাংলা (ভারত)",xe[we.mr]="मराठी",xe[we.ms_MY]="Bahasa Melayu (Malaysia)",xe[we.ml]="മലയാളം",xe[we.mni]="ꯃꯩꯇꯩꯂꯣꯟ",xe[we.ne_NP]="नेपाली (नेपाल)\t",xe[we.or]="ଓଡ଼ିଆ",xe[we.pt_BR]="Português (Brasil)",xe[we.pt_PT]="Português (Portugal)",xe[we.pa]="پنجابی",xe[we.sv_SE]="Svenska (Sverige)",xe[we.ja_JP]="日本語",xe[we.sr]="Српски",xe[we.si_LK]="සිංහල (ශ්රී ලංකාව)",xe[we.sk_SK]="Slovenčina (Slovensko)",xe[we.tr_TR]="Türkçe (Türkiye)",xe[we.tl_PH]="Wikang Tagalog (Philippines)",xe[we.te]="తెలుగు",xe[we.ta]="தமிழ்",xe[we.th_TH]="ไทย (ประเทศไทย)",xe[we.ur_PK]="اردو)پاکستان)",xe[we.ur_IN]="اردو)بھارت)",xe[we.uk_UA]="Українська (Україна)",xe[we.iw_IL]="עִבְרִית (ישראל)",xe[we.es_ES]="Español (España)",xe[we.es_MX]="Español (México)",xe[we.hu]="Magyar",xe[we.it_IT]="Italiano (Italia)",xe[we.in_ID]="Bahasa Indonesia (Indonesia)",xe[we.hi_IN]="हिन्दी (भारत)",xe[we.vi_VN]="Tiếng Việt (Việt Nam)",xe[we.en_PK]="English (Pakistan)",xe[we.en_PL]="English (Poland)",xe[we.en_FR]="English (France)",xe[we.en_PH]="English (Philippines)",xe[we.en_CZ]="English (Czech Republic)",xe[we.en_CA]="English (Canada)",xe[we.en_MM]="English (Myanmar)",xe[we.en_US]="English (United States)",xe[we.en_BD]="English (Bangladesh)",xe[we.en_MY]="English (Malaysia)",xe[we.en_NP]="English (Nepal)",xe[we.en_LK]="English (Sri Lanka)",xe[we.en_TH]="English (Thailand)",xe[we.en_ES]="English (Spain)",xe[we.en_SG]="English (Singapore)",xe[we.en_HU]="English (Hungary)",xe[we.en_ID]="English (Indonesia)",xe[we.en_GB]="English (Great Britain)",xe[we.en_VN]="English (Vietnam)",xe[we.en_HK]="English (Hong Kong)",xe[we.en_KR]="English (Korea)",xe[we.zh_TW]="繁体中文 (中國台灣)",xe[we.zh_HK]="繁体中文 (中國香港)",xe[we.zh_SG]="简体中文 (新加坡)",xe[we.zh_CN]="简体中文",xe[we.ar_IQ]="العربية (العراق)",xe[we.ckb_IQ]="کوردیی ناوەندی (عێراق)",xe[we.ku]="کورمانجی",xe[we.kk_KZ]="قازاقشا ",xe[we.af]="Afrikaans",xe[we.am]="አማርኛ",xe[we.az]="Azərbaycan",xe[we.be]="беларуская мова",xe[we.bg]="Български",xe[we.bs]="босански",xe[we.ca]="Català",xe[we.cy]="Cymraeg",xe[we.el]="Ελληνικά",xe[we.eo]="Esperanto",xe[we.et]="eesti keel",xe[we.eu]="Euskara",xe[we.fa]="فارسی",xe[we.fi]="Suomi",xe[we.gd]="Gaeilge",xe[we.gl]="Galego",xe[we.ha]="هَوُسَ",xe[we.haw]="ʻŌlelo Hawaiʻi",xe[we.hr]="Hrvatski",xe[we.ig]="Asụsụ Igbo",xe[we.is]="Íslenska",xe[we.ka]="ქართული",xe[we.km]="ភាសាខ្មែរ",xe[we.ky]="кыргыз тили",xe[we.lb]="Lëtzebuergesch",xe[we.ln]="Lingála",xe[we.lt]="lietuvių kalba",xe[we.lv]="Latviešu valoda",xe[we.mg]="malagasy",xe[we.mk]="македонски",xe[we.mn]="монгол хэл",xe[we.mt]="Malti",xe[we.om]="Oromoo",xe[we.ps]="پښتو",xe[we.qu]="Quechua",xe[we.rw]="Ikinyarwanda",xe[we.sl]="slovenščina",xe[we.so]="Af-Soomaali",xe[we.sq]="Gjuha shqipe",xe[we.sw]="Kiswahili",xe[we.tg]="тоҷикӣ",xe[we.ti]="ትግርኛ",xe[we.ug]="ئۇيغۇر تىلى",xe[we.uz]="Ўзбек тили",xe[we.yo]="Èdè Yorùbá",xe[we.zu]="isiZulu",ke.AiSelected,(se={})[we.en_US]="AI Selected",se[we.zh_CN]="AI 精选",(ue={})[we.en_US]="AI selection of translations",ue[we.zh_CN]="多渠道翻译的 AI 精选",Oe.AiSelected,Ae.AiSelected,(ce={})[we.en_US]="Use ChatGPT 4.0 to compare and select translation results from multiple sources.\nThe translated content will undergo risk control review and may return blank, please check carefully.",ce[we.zh_CN]="利用 ChatGPT 4.0 进行多渠道翻译结果的对比和精选;\n翻译内容会经过风控审核,可能会返回空内容,请仔细检查;",(le={})[we.en_US]="Use ChatGPT 4.0 to compare and select translation results from multiple sources.\nThe translated content will undergo risk control review and may return blank, please check carefully.",le[we.zh_CN]="利用 ChatGPT 4.0 进行多渠道翻译结果的对比和精选;\n翻译内容会经过风控审核,可能会返回空内容,请仔细检查;",ke["ChatGPT3.5"],(he={})[we.en_US]="GPT-3.5",he[we.zh_CN]="GPT-3.5",(fe={})[we.en_US]="The translated content will undergo risk control review and may return blank, please check carefully.",fe[we.zh_CN]="翻译内容会经过风控审核,可能会返回空内容,请仔细检查",(pe={})[we.en_US]="The translated content will undergo risk control review and may return blank, please check carefully.",pe[we.zh_CN]="翻译内容会经过风控审核,可能会返回空内容,请仔细检查",Oe["ChatGPT3.5"],Ae["ChatGPT3.5"],ke.Aliyun,(de={})[we.en_US]="Alibaba",de[we.zh_CN]="阿里云",Oe.Aliyun,Ae.Aliyun,ke.Google,(ge={})[we.en_US]="Google",ge[we.zh_CN]="Google",Oe.Google,Ae.Google,ke.DeepL,(me={})[we.en_US]="DeepL",me[we.zh_CN]="DeepL",Oe.DeepL,Ae.DeepL,ke.Microsoft,(ve={})[we.en_US]="Azure AI",ve[we.zh_CN]="Azure AI",Oe.Microsoft,Ae.Microsoft,ke.Amazon,(ye={})[we.en_US]="Amazon",ye[we.zh_CN]="Amazon",Oe.Amazon,Ae.Amazon,ke.Papago,(be={})[we.en_US]="Papago",be[we.zh_CN]="Papago",(_e={})[we.en_US]="Papago does not support translating HTML and will automatically skip HTML content during batch translation.",_e[we.zh_CN]="Papago 不支持翻译 HTML,在批量翻译时会自动跳过 HTML 内容",(Ee={})[we.en_US]="Papago does not support HTML. Available locales are Chinese, Japanese, Korean, and English. Please check the translation results carefully.",Ee[we.zh_CN]="Papago 不支持翻译 HTML,仅支持翻译中、日、韩、英,请仔细检查翻译结果",Oe.Papago,Ae.Papago;var Ce=Object.keys(J).map((function(e){return J[e]})),Be=/^##@@@(.+?)##(.+?)@@@##(.+?)@@@##$/,Me=function(e,t){return(Me=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function De(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Me(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var He,Ue,je,ze=function(){return(ze=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function Ge(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function Ke(e){return e.type===Ue.literal}function Fe(e){return e.type===Ue.argument}function Ye(e){return e.type===Ue.number}function qe(e){return e.type===Ue.date}function Ve(e){return e.type===Ue.time}function We(e){return e.type===Ue.select}function Xe(e){return e.type===Ue.plural}function Je(e){return e.type===Ue.pound}function Ze(e){return e.type===Ue.tag}function Qe(e){return!(!e||"object"!=L()(e)||e.type!==je.number)}function $e(e){return!(!e||"object"!=L()(e)||e.type!==je.dateTime)}"function"==typeof SuppressedError&&SuppressedError,function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(He||(He={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(Ue||(Ue={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(je||(je={}));var et=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,tt=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function nt(e){var t={};return e.replace(tt,(function(e){var n=e.length;switch(e[0]){case"G":t.era=4===n?"long":5===n?"narrow":"short";break;case"y":t.year=2===n?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===n?"short":5===n?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}var rt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,ot=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,it=/^(@+)?(\+|#+)?[rs]?$/g,at=/(\*)(0+)|(#+)(0+)|(0+)/g,st=/^(0+)$/;function ut(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(it,(function(e,n,r){return"string"!=typeof r?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===r?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""})),t}function ct(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function lt(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!st.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function ht(e){return ct(e)||{}}function ft(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n];switch(o.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=o.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=ze(ze(ze({},t),{notation:"scientific"}),o.options.reduce((function(e,t){return ze(ze({},e),ht(t))}),{}));continue;case"engineering":t=ze(ze(ze({},t),{notation:"engineering"}),o.options.reduce((function(e,t){return ze(ze({},e),ht(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(o.options[0]);continue;case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(at,(function(e,n,r,o,i,a){if(n)t.minimumIntegerDigits=r.length;else{if(o&&i)throw new Error("We currently do not support maximum integer digits");if(a)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(st.test(o.stem))t.minimumIntegerDigits=o.stem.length;else if(ot.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(ot,(function(e,n,r,o,i,a){return"*"===r?t.minimumFractionDigits=n.length:o&&"#"===o[0]?t.maximumFractionDigits=o.length:i&&a?(t.minimumFractionDigits=i.length,t.maximumFractionDigits=i.length+a.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""}));var i=o.options[0];"w"===i?t=ze(ze({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=ze(ze({},t),ut(i)))}else if(it.test(o.stem))t=ze(ze({},t),ut(o.stem));else{var a=ct(o.stem);a&&(t=ze(ze({},t),a));var s=lt(o.stem);s&&(t=ze(ze({},t),s))}}return t}var pt,dt={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function gt(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n,r=e.language;return"root"!==r&&(n=e.maximize().region),(dt[n||""]||dt[r||""]||dt["".concat(r,"-001")]||dt["001"])[0]}var mt=new RegExp("^".concat(et.source,"*")),vt=new RegExp("".concat(et.source,"*$"));function yt(e,t){return{start:e,end:t}}var bt=!!String.prototype.startsWith&&"_a".startsWith("a",1),_t=!!String.fromCodePoint,Et=!!Object.fromEntries,wt=!!String.prototype.codePointAt,St=!!String.prototype.trimStart,kt=!!String.prototype.trimEnd,Tt=Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Pt=!0;try{Pt="a"===(null===(pt=Ct("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===pt?void 0:pt[0])}catch(J){Pt=!1}var Lt,Rt=bt?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},At=_t?String.fromCodePoint:function(){for(var e=arguments,t=[],n=0;n<arguments.length;n++)t[n]=e[n];for(var r,o="",i=t.length,a=0;i>a;){if((r=t[a++])>1114111)throw RangeError(r+" is not a valid code point");o+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return o},Ot=Et?Object.fromEntries:function(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n],i=o[0],a=o[1];t[i]=a}return t},Nt=wt?function(e,t){return e.codePointAt(t)}:function(e,t){var n=e.length;if(!(t<0||t>=n)){var r,o=e.charCodeAt(t);return o<55296||o>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?o:r-56320+(o-55296<<10)+65536}},It=St?function(e){return e.trimStart()}:function(e){return e.replace(mt,"")},xt=kt?function(e){return e.trimEnd()}:function(e){return e.replace(vt,"")};function Ct(e,t){return new RegExp(e,t)}if(Pt){var Bt=Ct("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Lt=function(e,t){var n;return Bt.lastIndex=t,null!==(n=Bt.exec(e)[1])&&void 0!==n?n:""}}else Lt=function(e,t){for(var n=[];;){var r=Nt(e,t);if(void 0===r||Ht(r)||Ut(r))break;n.push(r),t+=r>=65536?2:1}return At.apply(void 0,n)};var Mt=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var o=this.char();if(123===o){if((i=this.parseArgument(e,n)).err)return i;r.push(i.val)}else{if(125===o&&e>0)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(He.UNMATCHED_CLOSING_TAG,yt(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&Dt(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;r.push(i.val)}else{var i;if((i=this.parseLiteral(e,t)).err)return i;r.push(i.val)}}else{var a=this.clonePosition();this.bump(),r.push({type:Ue.pound,location:yt(a,this.clonePosition())})}}}return{val:r,err:null}},e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Ue.literal,value:"<".concat(r,"/>"),location:yt(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(e+1,t,!0);if(o.err)return o;var i=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Dt(this.char()))return this.error(He.INVALID_TAG,yt(a,this.clonePosition()));var s=this.clonePosition();return r!==this.parseTagName()?this.error(He.UNMATCHED_CLOSING_TAG,yt(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Ue.tag,value:r,children:i,location:yt(n,this.clonePosition())},err:null}:this.error(He.INVALID_TAG,yt(a,this.clonePosition())))}return this.error(He.UNCLOSED_TAG,yt(n,this.clonePosition()))}return this.error(He.INVALID_TAG,yt(n,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var o=this.tryParseQuote(t);if(o)r+=o;else{var i=this.tryParseUnquoted(e,t);if(i)r+=i;else{var a=this.tryParseLeftAngleBracket();if(!a)break;r+=a}}}var s=yt(n,this.clonePosition());return{val:{type:Ue.literal,value:r,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Dt(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(n);this.bump()}return At.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&e>0?null:(this.bump(),At(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(He.EXPECT_ARGUMENT_CLOSING_BRACE,yt(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(He.EMPTY_ARGUMENT,yt(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(He.MALFORMED_ARGUMENT,yt(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(He.EXPECT_ARGUMENT_CLOSING_BRACE,yt(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Ue.argument,value:r,location:yt(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(He.EXPECT_ARGUMENT_CLOSING_BRACE,yt(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(He.MALFORMED_ARGUMENT,yt(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=Lt(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:yt(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,r){var o,i=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error(He.EXPECT_ARGUMENT_TYPE,yt(i,s));case"number":case"date":case"time":this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((v=this.parseSimpleArgStyleIfPossible()).err)return v;if(0===(p=xt(v.val)).length)return this.error(He.EXPECT_ARGUMENT_STYLE,yt(this.clonePosition(),this.clonePosition()));u={style:p,styleLocation:yt(c,this.clonePosition())}}if((y=this.tryParseArgumentClose(r)).err)return y;var l=yt(r,this.clonePosition());if(u&&Rt(null==u?void 0:u.style,"::",0)){var h=It(u.style.slice(2));if("number"===a)return(v=this.parseNumberSkeletonFromString(h,u.styleLocation)).err?v:{val:{type:Ue.number,value:n,location:l,style:v.val},err:null};if(0===h.length)return this.error(He.EXPECT_DATE_TIME_SKELETON,l);var f=h;this.locale&&(f=function(e,t){for(var n="",r=0;r<e.length;r++){var o=e.charAt(r);if("j"===o){for(var i=0;r+1<e.length&&e.charAt(r+1)===o;)i++,r++;var a=1+(1&i),s=i<2?1:3+(i>>1),u=gt(t);for("H"!=u&&"k"!=u||(s=0);s-- >0;)n+="a";for(;a-- >0;)n=u+n}else n+="J"===o?"H":o}return n}(h,this.locale));var p={type:je.dateTime,pattern:f,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?nt(f):{}};return{val:{type:"date"===a?Ue.date:Ue.time,value:n,location:l,style:p},err:null}}return{val:{type:"number"===a?Ue.number:"date"===a?Ue.date:Ue.time,value:n,location:l,style:null!==(o=null==u?void 0:u.style)&&void 0!==o?o:null},err:null};case"plural":case"selectordinal":case"select":var d=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(He.EXPECT_SELECT_ARGUMENT_OPTIONS,yt(d,ze({},d)));this.bumpSpace();var g=this.parseIdentifierIfPossible(),m=0;if("select"!==a&&"offset"===g.value){if(!this.bumpIf(":"))return this.error(He.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,yt(this.clonePosition(),this.clonePosition()));var v;if(this.bumpSpace(),(v=this.tryParseDecimalInteger(He.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,He.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return v;this.bumpSpace(),g=this.parseIdentifierIfPossible(),m=v.val}var y,b=this.tryParsePluralOrSelectOptions(e,a,t,g);if(b.err)return b;if((y=this.tryParseArgumentClose(r)).err)return y;var _=yt(r,this.clonePosition());return"select"===a?{val:{type:Ue.select,value:n,options:Ot(b.val),location:_},err:null}:{val:{type:Ue.plural,value:n,options:Ot(b.val),offset:m,pluralType:"plural"===a?"cardinal":"ordinal",location:_},err:null};default:return this.error(He.INVALID_ARGUMENT_TYPE,yt(i,s))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(He.EXPECT_ARGUMENT_CLOSING_BRACE,yt(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(He.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,yt(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],n=0,r=e.split(rt).filter((function(e){return e.length>0}));n<r.length;n++){var o=r[n].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var i=o[0],a=o.slice(1),s=0,u=a;s<u.length;s++)if(0===u[s].length)throw new Error("Invalid number skeleton");t.push({stem:i,options:a})}return t}(e)}catch(e){return this.error(He.INVALID_NUMBER_SKELETON,t)}return{val:{type:je.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?ft(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var o,i=!1,a=[],s=new Set,u=r.value,c=r.location;;){if(0===u.length){var l=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var h=this.tryParseDecimalInteger(He.EXPECT_PLURAL_ARGUMENT_SELECTOR,He.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;c=yt(l,this.clonePosition()),u=this.message.slice(l.offset,this.offset())}if(s.has(u))return this.error("select"===t?He.DUPLICATE_SELECT_ARGUMENT_SELECTOR:He.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);"other"===u&&(i=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?He.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:He.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,yt(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(e+1,t,n);if(p.err)return p;var d=this.tryParseArgumentClose(f);if(d.err)return d;a.push([u,{value:p.val,location:yt(f,this.clonePosition())}]),s.add(u),this.bumpSpace(),u=(o=this.parseIdentifierIfPossible()).value,c=o.location}return 0===a.length?this.error("select"===t?He.EXPECT_SELECT_ARGUMENT_SELECTOR:He.EXPECT_PLURAL_ARGUMENT_SELECTOR,yt(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(He.MISSING_OTHER_CLAUSE,yt(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,i=0;!this.isEOF();){var a=this.char();if(!(a>=48&&a<=57))break;o=!0,i=10*i+(a-48),this.bump()}var s=yt(r,this.clonePosition());return o?Tt(i*=n)?{val:i,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Nt(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(Rt(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),n=this.message.indexOf(e,t);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Ht(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),n=this.message.charCodeAt(t+(e>=65536?2:1));return null!=n?n:null},e}();function Dt(e){return e>=97&&e<=122||e>=65&&e<=90}function Ht(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function Ut(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function jt(e,t){void 0===t&&(t={}),t=ze({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new Mt(e,t).parse();if(n.err){var r=SyntaxError(He[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return(null==t?void 0:t.captureLocation)||function e(t){t.forEach((function(t){if(delete t.location,We(t)||Xe(t))for(var n in t.options)delete t.options[n].location,e(t.options[n].value);else Ye(t)&&Qe(t.style)||(qe(t)||Ve(t))&&$e(t.style)?delete t.style.location:Ze(t)&&e(t.children)}))}(n.val),n.val}function zt(e,t){var n=t&&t.cache?t.cache:Xt,r=t&&t.serializer?t.serializer:qt;return(t&&t.strategy?t.strategy:Yt)(e,{cache:n,serializer:r})}function Gt(e,t,n,r){var o=function(e){return null==e||"number"==typeof e||"boolean"==typeof e}(r)?r:n(r),i=t.get(o);return void 0===i&&(i=e.call(this,r),t.set(o,i)),i}function Kt(e,t,n){var r=Array.prototype.slice.call(arguments,3),o=n(r),i=t.get(o);return void 0===i&&(i=e.apply(this,r),t.set(o,i)),i}function Ft(e,t,n,r,o){return n.bind(t,e,r,o)}function Yt(e,t){return Ft(e,this,1===e.length?Gt:Kt,t.cache.create(),t.serializer)}var qt=function(){return JSON.stringify(arguments)};function Vt(){this.cache=Object.create(null)}Vt.prototype.get=function(e){return this.cache[e]},Vt.prototype.set=function(e,t){this.cache[e]=t};var Wt,Xt={create:function(){return new Vt}},Jt={variadic:function(e,t){return Ft(e,this,Kt,t.cache.create(),t.serializer)},monadic:function(e,t){return Ft(e,this,Gt,t.cache.create(),t.serializer)}};!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(Wt||(Wt={}));var Zt,Qt=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.code=n,o.originalMessage=r,o}return De(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),$t=function(e){function t(t,n,r,o){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(n,'". Options are "').concat(Object.keys(r).join('", "'),'"'),Wt.INVALID_VALUE,o)||this}return De(t,e),t}(Qt),en=function(e){function t(t,n,r){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(n),Wt.INVALID_VALUE,r)||this}return De(t,e),t}(Qt),tn=function(e){function t(t,n){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(n,'"'),Wt.MISSING_VALUE,n)||this}return De(t,e),t}(Qt);function nn(e){return"function"==typeof e}function rn(e,t,n,r,o,i,a){if(1===e.length&&Ke(e[0]))return[{type:Zt.literal,value:e[0].value}];for(var s=[],u=0,c=e;u<c.length;u++){var l=c[u];if(Ke(l))s.push({type:Zt.literal,value:l.value});else if(Je(l))"number"==typeof i&&s.push({type:Zt.literal,value:n.getNumberFormat(t).format(i)});else{var h=l.value;if(!o||!(h in o))throw new tn(h,a);var f=o[h];if(Fe(l))f&&"string"!=typeof f&&"number"!=typeof f||(f="string"==typeof f||"number"==typeof f?String(f):""),s.push({type:"string"==typeof f?Zt.literal:Zt.object,value:f});else if(qe(l)){var p="string"==typeof l.style?r.date[l.style]:$e(l.style)?l.style.parsedOptions:void 0;s.push({type:Zt.literal,value:n.getDateTimeFormat(t,p).format(f)})}else if(Ve(l))p="string"==typeof l.style?r.time[l.style]:$e(l.style)?l.style.parsedOptions:r.time.medium,s.push({type:Zt.literal,value:n.getDateTimeFormat(t,p).format(f)});else if(Ye(l))(p="string"==typeof l.style?r.number[l.style]:Qe(l.style)?l.style.parsedOptions:void 0)&&p.scale&&(f*=p.scale||1),s.push({type:Zt.literal,value:n.getNumberFormat(t,p).format(f)});else{if(Ze(l)){var d=l.children,g=l.value,m=o[g];if(!nn(m))throw new en(g,"function",a);var v=m(rn(d,t,n,r,o,i).map((function(e){return e.value})));Array.isArray(v)||(v=[v]),s.push.apply(s,v.map((function(e){return{type:"string"==typeof e?Zt.literal:Zt.object,value:e}})))}if(We(l)){if(!(y=l.options[f]||l.options.other))throw new $t(l.value,f,Object.keys(l.options),a);s.push.apply(s,rn(y.value,t,n,r,o))}else if(Xe(l)){var y;if(!(y=l.options["=".concat(f)])){if(!Intl.PluralRules)throw new Qt('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Wt.MISSING_INTL_API,a);var b=n.getPluralRules(t,{type:l.pluralType}).select(f-(l.offset||0));y=l.options[b]||l.options.other}if(!y)throw new $t(l.value,f,Object.keys(l.options),a);s.push.apply(s,rn(y.value,t,n,r,o,f-(l.offset||0)))}}}}return function(e){return e.length<2?e:e.reduce((function(e,t){var n=e[e.length-1];return n&&n.type===Zt.literal&&t.type===Zt.literal?n.value+=t.value:e.push(t),e}),[])}(s)}function on(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(Zt||(Zt={}));var an=function(){function e(t,n,r,o){void 0===n&&(n=e.defaultLocale);var i,a=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=a.formatToParts(e);if(1===t.length)return t[0].value;var n=t.reduce((function(e,t){return e.length&&t.type===Zt.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(e){return rn(a.ast,a.locales,a.formatters,a.formats,e,void 0,a.message)},this.resolvedOptions=function(){var e;return{locale:(null===(e=a.resolvedLocale)||void 0===e?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=o||{},u=(s.formatters,function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(s,["formatters"]));this.ast=e.__parse(t,ze(ze({},u),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=function(e,t){return t?Object.keys(e).reduce((function(n,r){var o,i;return n[r]=(o=e[r],(i=t[r])?ze(ze(ze({},o||{}),i||{}),Object.keys(o).reduce((function(e,t){return e[t]=ze(ze({},o[t]),i[t]||{}),e}),{})):o),n}),ze({},e)):e}(e.formats,r),this.formatters=o&&o.formatters||(void 0===(i=this.formatterCache)&&(i={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:zt((function(){for(var e,t=arguments,n=[],r=0;r<arguments.length;r++)n[r]=t[r];return new((e=Intl.NumberFormat).bind.apply(e,Ge([void 0],n,!1)))}),{cache:on(i.number),strategy:Jt.variadic}),getDateTimeFormat:zt((function(){for(var e,t=arguments,n=[],r=0;r<arguments.length;r++)n[r]=t[r];return new((e=Intl.DateTimeFormat).bind.apply(e,Ge([void 0],n,!1)))}),{cache:on(i.dateTime),strategy:Jt.variadic}),getPluralRules:zt((function(){for(var e,t=arguments,n=[],r=0;r<arguments.length;r++)n[r]=t[r];return new((e=Intl.PluralRules).bind.apply(e,Ge([void 0],n,!1)))}),{cache:on(i.pluralRules),strategy:Jt.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){if(void 0!==Intl.Locale){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])}},e.__parse=jt,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();function sn(e){for(var t=arguments,n=1;n<arguments.length;n++){var r=t[n];for(var o in r)e[o]=r[o]}return e}var un=function e(t,n){function r(e,r,o){if("undefined"!=typeof document){"number"==typeof(o=sn({},n,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var i="";for(var a in o)o[a]&&(i+="; "+a,!0!==o[a]&&(i+="="+o[a].split(";")[0]));return document.cookie=e+"="+t.write(r,e)+i}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],r={},o=0;o<n.length;o++){var i=n[o].split("="),a=i.slice(1).join("=");try{var s=decodeURIComponent(i[0]);if(r[s]=t.read(a,s),e===s)break}catch(e){}}return e?r[e]:r}},remove:function(e,t){r(e,"",sn({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,sn({},this.attributes,t))},withConverter:function(t){return e(sn({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"}),cn=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];console.warn.apply(console,e)},ln=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];console.error.apply(console,e)},hn=function(){return"object"==("undefined"==typeof ac?"undefined":L()(ac))&&"function"==typeof ac.call},fn=function(){return"undefined"!=typeof my&&void 0!==my.canIUse&&!hn()},pn=function(){return"object"==("undefined"==typeof window?"undefined":L()(window))},dn=function(){return function(){var e;return!!pn()&&((null===(e=window.navigator)||void 0===e?void 0:e.userAgent)||"").toLowerCase().indexOf("alipayclient")>-1}()||pn()&&"undefined"!=typeof AlipayJSBridge},gn=function(){return"undefined"!=typeof wx&&void 0!==wx.canIUse},mn=function(){return!(void 0===n.g||pn()||fn()||gn()||hn())},vn="bailingualLocaleChange",yn="bailingualDataChange",bn="bailingualError";function _n(e){void 0===e&&(e="");for(var t=(function(e){if("object"==("undefined"==typeof document?"undefined":L()(document)))try{return un.get(e)||un.get("_CHIPS-"+e)}catch(e){return cn("[bailingual-sdk-glue] readCookie fail: "+e),""}}(e)||"").split("&"),n=0,r=t.length;n<r;n++){var o=t[n].split("="),i=o[0],a=o[1];if("lang"===i)return a}}var En,wn=function(e){if(void 0===e&&(e=""),e=e.replace("_","-"),dn()||fn()||hn()){var t=oe[e.toLowerCase()];t&&(e=t)}var n=e.split("-"),r=n[0],o=n[1];return o&&(e=r.toLowerCase()+"-"+o.toUpperCase()),re[e.toLowerCase()]&&(e=re[e.toLowerCase()]),Dn(Ce,e)?e:""};function Sn(e){return void 0===e&&(e=!0),wn(function(e){return void 0===e&&(e=!0),fn()||hn()?my.env&&my.env.language||my.getSystemInfoSync().language:gn()?wx.getSystemInfoSync().language:mn()?n.g.BAILINGUAL_LOCALE:!!e&&function(){var e=_n("x-hng")||_n("hng");if(e)return e}()||function(){var e;if("object"==("undefined"==typeof document?"undefined":L()(document))){var t=null===(e=document.documentElement)||void 0===e?void 0:e.lang;if(t)return t}}()||function(){var e;if(pn()){var t=(null===(e=window.navigator)||void 0===e?void 0:e.userAgent)||"",n=(/Language\/([^\s]*)/i.exec(t)||[]).pop();if(n)return n}}()||function(){var e;if(pn()&&window.navigator){var t=window.navigator,n=(null===(e=t.languages)||void 0===e?void 0:e[0])||t.language||t.userLanguage||t.browserLanguage;if(n)return n}}()}(e)||"")}function kn(e,t,n){void 0===n&&(n={});try{"object"==("undefined"==typeof document?"undefined":L()(document))&&un.set(e,t,n)}catch(e){cn("[bailingual-sdk-glue] writeCookie fail: "+e)}}function Tn(e,t){void 0===t&&(t={});try{"object"==("undefined"==typeof document?"undefined":L()(document))&&un.remove(e,t)}catch(e){cn("[bailingual-sdk-glue] writeCookie fail: "+e)}}function Pn(){"object"==("undefined"==typeof document?"undefined":L()(document))&&"object"==("undefined"==typeof location?"undefined":L()(location))&&(Tn("x-hng",{path:"/",domain:location.hostname}),Tn("x-hng",{path:"/",domain:location.hostname,SameSite:"None",Secure:!0}),Tn("_CHIPS-x-hng",{path:"/",domain:location.hostname,SameSite:"None",Secure:!0,Partitioned:!0}),Tn("x-hng",{path:"/"}),Tn("x-hng",{path:"/",SameSite:"None",Secure:!0}),Tn("_CHIPS-x-hng",{path:"/",SameSite:"None",Secure:!0,Partitioned:!0}))}!function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.MISSING_PARAM="MISSING_PARAM"}(En||(En={}));var Ln,Rn,An,On,Nn,In,xn,Cn,Bn=function(e){var t=e.code,n=e.message,r=e.err,o=e.textKey;this.code=t,this.message=n||(null==r?void 0:r.message)||"unknown error",this.stack=(null==r?void 0:r.stack)||r,this.textKey=o},Mn=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return t.forEach((function(t){Object.keys(t||{}).forEach((function(n){e[n]=t[n]}))})),e},Dn=function(e,t){return e.indexOf(t)>-1};function Hn(e){var t,n;try{return Rn?(null===(t=Rn.getItem)||void 0===t?void 0:t.call(Rn,e))||"":fn()||hn()?(null===(n=my.getStorageSync({key:e}))||void 0===n?void 0:n.data)||"":gn()?wx.getStorageSync(e)||"":"object"==("undefined"==typeof localStorage?"undefined":L()(localStorage))&&localStorage.getItem(e)||""}catch(e){return""}}function Un(e,t){var n;try{if(t=(t||"").toString(),Rn)return void(null===(n=Rn.setItem)||void 0===n||n.call(Rn,e,t));if(fn()||hn())return void my.setStorage({key:e,data:t});if(gn())return void wx.setStorage({key:e,data:t});"object"==("undefined"==typeof localStorage?"undefined":L()(localStorage))&&localStorage.setItem(e,t)}catch(e){}}function jn(e,t){return void 0===t&&(t=3),new Promise((function(n,r){var o,i,a,s;function u(){var e=s()[0];return e++,c.bind(this,e)}function c(e){if(s=function(){return[e]},!(e<t))return[1];var o=function(e){try{return u}catch(e){return r(e)}};try{var a;return i().then((function(e){try{return(a=e)?n(a):function(){try{return u}catch(e){return r(e)}}()}catch(e){return o()}}),o)}catch(e){o()}}return o=function(e){if(e.length&&"{"!==e[0]){var t=e.indexOf("{");t>-1&&(e=e.slice(t))}return e},i=function(){return new Promise((function(t,n){var r;return function(e){return Ln?Ln(e):hn()?new Promise((function(t,n){my.request({url:e,success:function(e){t(e.data)},fail:function(){n()}})})):fn()?new Promise((function(t,n){my.call("httpRequest",{url:e},(function(e){!e||e.error?n():t(e.data)}))})):gn()?new Promise((function(t,n){wx.request({url:e,dataType:"text",success:function(e){t(e.data)},fail:function(e){n(e)}})})):"function"==typeof fetch?fetch(e).then((function(e){return e.text()})):"undefined"!=typeof XMLHttpRequest?new Promise((function(t,n){var r=new XMLHttpRequest;r.open("GET",e,!0),r.onreadystatechange=function(){4===r.readyState&&(200===r.status?t(r.responseText):n())},r.send()})):void 0}(e).then((function(e){try{return r=e,t(JSON.parse(o(r||"")))}catch(e){return n(e)}}),n)}))},(a=function(e){for(;e;){if(e.then)return void e.then(a,r);try{if(e.pop){if(e.length)return e.pop()?l.call(this):e;e=u}else e=e.call(this)}catch(e){return r(e)}}}.bind(this))(c.bind(this,0));function l(){return n()}}))}!function(e){e.DAILY="DAILY",e.PROD="PROD"}(xn||(xn={})),function(e){e.INTERNET="INTERNET",e.INTRANET="INTRANET"}(Cn||(Cn={}));var zn={ANTINTL:(An={},An[xn.DAILY]="https://bailingual-daily.marmot-cloud.com/manifest/",An[xn.PROD]="https://bailingual.marmot-cloud.com/manifest/",An),ALIPAY:(On={},On[xn.DAILY]="https://bailingual-assets-daily.alipay.com/manifest/",On[xn.PROD]="https://bailingual-assets.alipay.com/manifest/",On)},Gn={};Gn[Cn.INTERNET]=((Nn={})[xn.DAILY]=function(e,t,n){var r;return""+(n?null===(r=zn[n])||void 0===r?void 0:r[xn.DAILY]:"")+e+"/"+e+(t?"_"+t:"")+".json"},Nn[xn.PROD]=function(e,t,n){var r;return""+(n?null===(r=zn[n])||void 0===r?void 0:r[xn.PROD]:"")+e+"/"+e+(t?"_"+t:"")+".json"},Nn),Gn[Cn.INTRANET]=((In={})[xn.DAILY]=function(e,t){return"https://bailingual-assets.antgroup-inc.cn/daily/manifest/"+e+"/"+e+(t?"_"+t:"")+".json"},In[xn.PROD]=function(e,t){return"https://bailingual-assets.antgroup-inc.cn/prod/manifest/"+e+"/"+e+(t?"_"+t:"")+".json"},In);var Kn;function Fn(){return"true"===Hn("__BAILINGUAL_IN_CONTEXT__")}function Yn(){if(!(fn()||gn()||hn())){var e=Hn("BAILINGUAL_IN_CONTEXT_CONFIG")||"{}",t=!1;try{t=JSON.parse(e).enableExtension}catch(e){cn("[bailingual-sdk-glue] JSON.parse data fail: "+e)}Kn=Fn()&&t}}function qn(){return void 0===Kn&&Yn(),Kn}function Vn(){Un("__BAILINGUAL_IN_CONTEXT__","true"),Yn(),new Promise((function(e,t){if(fn()||gn()||hn())return e();var n;if("undefined"!=typeof document&&!document.querySelector("._BAILINGUAL_IN_CONTEXT_script"))return jn("https://render.alipay.com/p/yuyan/bailingual-in-context_bailingual-in-context-version/zh_CN.json").then(function(e){try{return(null==(n=e)?void 0:n.version)&&function(e){if(e&&!document.querySelector("._BAILINGUAL_IN_CONTEXT_script")){var t=document.createElement("script");t.setAttribute("class","_BAILINGUAL_IN_CONTEXT_script"),t.setAttribute("src",e),document.body.appendChild(t)}}("https://unpkg.alipay.com/@alipay/bailingual-in-context@"+n.version+"/public/dist/index.js"),r.call(this)}catch(e){return t(e)}}.bind(this),t);function r(){return e()}return r.call(this)}))}function Wn(e,t,n){return"##@@@"+t+"##"+e+"@@@##"+n+"@@@##"}function Xn(e){var t=[];return e.forEach((function(e){var n=e.key,r=e.count;if(n&&r){var o=-1!==n.indexOf("&")?encodeURIComponent(n):n;t.push(o+"&"+r)}})),t.join(";")}function Jn(e,t){var n=function(e){switch(e){case"CN":default:return"https://collect.alipay.com/yuyan/?biztype=yuyanmonitorl";case"SG":return"https://imdap-sea.alipay.com/loggw/dwcookieLogGet.do";case"US":return"https://imdap.alipay.com/loggw/dwcookieLogGet.do"}}(e);if(hn())my.request({method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},data:t,url:n});else if(fn())my.call("httpRequest",{url:n,method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},data:t});else if(gn())wx.request({url:n,method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},data:t});else if("undefined"!=typeof navigator&&"function"==typeof navigator.sendBeacon&&"function"==typeof Blob){var r=new Blob([t],{type:"application/x-www-form-urlencoded"});navigator.sendBeacon(n,r)}else if(pn()&&"undefined"!=typeof XMLHttpRequest){var o=new XMLHttpRequest;o.open("POST",n,!0),o.setRequestHeader("Content-type","application/x-www-form-urlencoded"),o.send(t)}else"function"==typeof fetch?fetch(n,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:t}):console.error("No supported method to send data",e,t)}!function(){if(!(fn()||gn()||hn()))try{var e=function(e){if(!e)return{};var t={};return e.slice(1).split("&").forEach((function(e){var n=e.split("="),r=n[0],o=n[1];t[r]=o})),t}("undefined"!=typeof location?location.search:"");if(Fn()||e.hasOwnProperty("SML_DEV")||e.hasOwnProperty("BAILINGUAL_IN_CONTEXT")||e.hasOwnProperty("BLG_RIC"))return void Vn();if("undefined"==typeof document)return;if(dn()){var t=0,n=0;document.addEventListener("titleClick",(function(){if(!qn()){if(7==++n)return Vn(),n=0,clearTimeout(t),void(t=null);clearTimeout(t),t=setTimeout((function(){n=0,t=null}),1500)}}))}document.addEventListener("__BAILINGUAL_IN_CONTEXT_DISABLE__",(function(){Un("__BAILINGUAL_IN_CONTEXT__","false"),Yn()}))}catch(e){cn("[bailingual-sdk-glue] initBailingualInContext fail: "+e)}}();var Zn=function(e){return e<10?"0"+e:""+e};function Qn(){var e=new Date;return e.getFullYear()+"-"+Zn(e.getMonth()+1)+"-"+Zn(e.getDate())+" "+Zn(e.getHours())+":"+Zn(e.getMinutes())+":"+Zn(e.getSeconds())+":"+e.getMilliseconds()}function $n(e,t){void 0===t&&(t="^");var n=[];if(e instanceof Array)n=e;else if(e instanceof Object)for(var r in e)e.hasOwnProperty(r)&&n.push(r+"="+(e[r]||""));return n.join(t)}function er(e,t){var n,r,o;if(!t||!t.appName||!t.keyCounts.length)return"";var i=[];switch(e){case"CN":default:i=["D-AE",Qn(),"","","2","","","","1000","102023","H5behavior","2","","","","","","","","","","","","","","","","","","","","","","","","",$n({code:"1000",msg:"",d1:t.appName,d3:(null===(n=t.textLocale)||void 0===n?void 0:n.replace(/-/g,"_"))||"",d4:t.sdkName||"",d5:t.sdkVersion||"",env:t.env||"PROD",c1:Xn(t.keyCounts),sampleRate:"1",yuyan_id:"180020010101313281",fullURL:"-",s_c:"true"})];break;case"SG":i=["D-AE",Qn(),"","","2","","","","1000","bailingualTextUsage","H5behavior","2","","","","","","","","","","","","","","","","","","","","","","","","",$n({code:"1000",msg:"",d1:t.appName,d3:(null===(r=t.textLocale)||void 0===r?void 0:r.replace(/-/g,"_"))||"",d4:t.sdkName||"",d5:t.sdkVersion||"",env:t.env||"PROD",c1:Xn(t.keyCounts)})];break;case"US":i=["D-VM",Qn(),"","","4","-","-","-","exposure","-","-","-","-","-","-","bailingualTextUsage","2","H5behavior","c","-","-","-",$n({appName:t.appName,textLocale:(null===(o=t.textLocale)||void 0===o?void 0:o.replace(/-/g,"_"))||"",sdkName:t.sdkName||"",sdkVersion:t.sdkVersion||"",env:t.env||"PROD",c1:Xn(t.keyCounts)}),"-","-","-","-","-","-","-","-","-","1000","-","-","UNKNOWN","-","-","zh-cn","-","-","-","-","-","-","-","-",Date.now().toString()+"-"+(100*Math.random()).toFixed(0),"-","-"]}return"data="+function(e){return e?encodeURIComponent(e).replace(/'/g,"%27"):e}(i.join())+"&time="+(new Date).getTime()}var tr=function(e){var t=e.region;this.queue=[],this.region=t,this.startTimer()};tr.prototype.startTimer=function(){var e,t,n=this;this.region?(this.timer=setTimeout((function(){n._report()}),5e3),pn()&&(null===(t=null===(e=window.document)||void 0===e?void 0:e.addEventListener)||void 0===t||t.call(e,"beforeunload",(function(){n._report()})))):clearTimeout(this.timer)},tr.prototype._report=function(){if(clearTimeout(this.timer),this.region&&this.queue.length){var e=new Map;this.queue.forEach((function(t){var n=t.appName+"-"+t.textKey+"-"+t.env,r=e.get(n);r?r.textUsedCount+=t.textUsedCount:e.set(n,t)}));var t=Array.from(e.values());!function(e,t){if(!e)throw new Error("No Region");if(0!==t.length)try{var n=new Map;t.forEach((function(e){var t=e.appName+"-"+e.textLocale+"-"+e.env;n.has(t)||n.set(t,{appName:e.appName,textLocale:e.textLocale,sdkName:e.sdkName,sdkVersion:e.sdkVersion,env:e.env,keyCounts:[]}),n.get(t).keyCounts.push({key:e.textKey,count:e.textUsedCount})})),n.forEach((function(t){for(var n=t.keyCounts,r=0;r<n.length;r+=200){var o=n.slice(r,r+200),i=er(e,{appName:t.appName,textLocale:t.textLocale,sdkName:t.sdkName,sdkVersion:t.sdkVersion,env:t.env,keyCounts:o});Jn(e,i)}}))}catch(n){console.error("reportUsageRequest error with",e,t)}else console.error("empty data")}(this.region,t),this.queue=[]}this.startTimer()},tr.prototype.getRegion=function(){return this.region},tr.prototype.setRegion=function(e){this.region=e,this.startTimer()},tr.prototype.report=function(e){this.region&&this.queue.push(e)};var nr=function(){this.originStrings={},this.availableLocales=[],this.langPkgsNoPatch={},this.i18nText={},this.eventHandler={},this.intlMessages={},this.intlPDKVMessages={},this.appName="",this.canUsePatchedData=!0,this.canStoreCurrentLocaleToCookie=!0,this.canReadLocaleFromCookie=!0},rr={usageReportRegion:{configurable:!0}};nr.setCustomizedGetSystemLocale=function(e){this.customizedGetSystemLocale=e},nr.customizeGetSystemLocale=function(e){this.customizedGetSystemLocale=e},nr.customizeStorage=function(e){return function(e){Rn=e}(e)},nr.getDataFromStorage=function(e){return Hn(e)},nr.setDataToStorage=function(e,t){return Un(e,t)},nr.customizeFetch=function(e){Ln=e},rr.usageReportRegion.get=function(){var e;return null===(e=this.usageReporter)||void 0===e?void 0:e.getRegion()},rr.usageReportRegion.set=function(e){var t;this.usageReporter||(this.usageReporter=new tr({region:e})),e&&(null===(t=this.usageReporter)||void 0===t||t.setRegion(e))},nr.prototype.init=function(e,t){var n,r;this.initBailingualData(e),this.changeLocale(t||(null===(r=(n=this.constructor).customizedGetSystemLocale)||void 0===r?void 0:r.call(n))||Sn(this.canReadLocaleFromCookie))},nr.prototype.getPatchI18nKey=function(){return this.appName?this.tag?this.appName+"+"+this.tag:this.appName:""},nr.prototype.initData=function(e){var t,n;this.initBailingualData(e||this.getServerSideFallbackData()),this.changeLocale((null===(n=(t=this.constructor).customizedGetSystemLocale)||void 0===n?void 0:n.call(t))||Sn(this.canReadLocaleFromCookie))},nr.prototype.getServerSideFallbackData=function(){if(mn()){var e=n.g.BAILINGUAL_FALLBACK;return e||(cn("[bailingual-sdk-glue] [Server] no fallback data found."),e={}),e}},nr.prototype.initBailingualData=function(e){var t=this;this.originStrings=e,this.availableLocales=[],this.langPkgsNoPatch={},this.i18nText={},this.eventHandler={},this.intlMessages={},this.intlPDKVMessages={},this.appName=e.appName||"",this.currentLocale=void 0,this.bizEnv=e.bizEnv,this.usageReportRegion=e.usageReportRegion,this.usageReporter=new tr({region:this.usageReportRegion}),this.tag=e.tag||"",Object.keys(e).forEach((function(n){if("object"==L()(e[n])){var r=wn(n);if(!r)return void ln("[bailingual-sdk-glue] "+n+" is not a valid locale code");t.langPkgsNoPatch[r]=Mn({},e[n]),t.i18nText[r]=Mn({},e[n])}})),this.handlePatchedData(),this.availableLocales=Object.keys(this.i18nText);var n=e.defaultLocale||this.availableLocales[0];!e.defaultLocale&&n&&cn("[bailingual-sdk-glue] no defaultLocale specified, use first locale code '"+n+"' instead."),this.defaultLocale=this.judgeLocaleCode(n),this.defaultLocale||ln("[bailingual-sdk-glue] defaultLocale '"+n+"' is invalid.")},nr.prototype.handlePatchedData=function(){var e,t=this,n=this.getPatchI18nKey();if(this.canUsePatchedData){var r=function(e){if(void 0===e&&(e=""),!e)return{};try{var t=Hn("BAILINGUAL_PATCH_I18N_DELETED-"+e);return t?JSON.parse(t):{}}catch(e){return ln("[bailingual-sdk-glue] fail to get local deleted data, error detail: "+e),{}}}(n),o=function(e){if(void 0===e&&(e=""),!e)return{};try{var t=Hn("BAILINGUAL_PATCH_I18N-"+e);return t?JSON.parse(t):{}}catch(e){return ln("[bailingual-sdk-glue] fail to get local patch data, error detail: "+e),{}}}(n);Object.keys(o).forEach((function(e){Dn(Ce,e)&&(t.i18nText[e]||cn("[bailingual-sdk-glue] locale '"+e+"' is not exist in init data, but found in patch data."),t.i18nText[e]=t.i18nText[e]||{},Mn(t.i18nText[e],o[e]))})),null===(e=r.removedLocales)||void 0===e||e.forEach((function(e){e=wn(e),Dn(Ce,e)&&delete t.i18nText[e]})),Object.keys(r.removedKeys||{}).forEach((function(e){if(e=wn(e),Dn(Ce,e)){var n=t.i18nText[e],o=r.removedKeys[e];n&&Array.isArray(o)&&o.forEach((function(e){delete n[e]}))}}))}else n&&function(e){if(e)try{Un("BAILINGUAL_PATCH_I18N-"+e,""),Un("BAILINGUAL_PATCH_I18N_DELETED-"+e,"")}catch(e){ln("[bailingual-sdk-glue] fail to remove local patch data, error detail: "+e)}}(n)},nr.prototype.setLocale=function(e){this.currentLocale!==e&&(this.currentLocale=e,this.canStoreCurrentLocaleToCookie&&function(e){"object"!=("undefined"==typeof document?"undefined":L()(document))||"object"!=("undefined"==typeof location?"undefined":L()(location))||dn()||fn()||hn()||gn()||(Pn(),kn("x-hng","lang="+e,{path:"/",expires:180}),kn("_CHIPS-x-hng","lang="+e,{path:"/",expires:180,SameSite:"None",Partitioned:!0,Secure:!0}))}(e),this.emit(vn,e))},nr.prototype.getIntlMessageWithPDKVFormat=function(e,t,n){var r,o=t.id,i=null===(r=t.ignoreTag)||void 0===r||r,a=JSON.stringify([o,i]);this.intlPDKVMessages[e]=this.intlPDKVMessages[e]||{};var s=this.intlPDKVMessages[e][a];if(!s){var u=n[o];u.match(Be)||(u=Wn(this.appName,o,u)),s=this.createIntlMessageFormat(u,e,i),this.intlPDKVMessages[e][a]=s}return s},nr.prototype.getIntlMessageWithNormalFormat=function(e,t,n){var r,o=t.id,i=null===(r=t.ignoreTag)||void 0===r||r,a=JSON.stringify([o,i]),s=(null==n?void 0:n[o])||t.dm||t.defaultMessage||"";if(null==n?void 0:n[o]){this.intlMessages[e]=this.intlMessages[e]||{};var u=this.intlMessages[e][a];return u||(u=this.createIntlMessageFormat(s,e,i),this.intlMessages[e][a]=u),u}return this.createIntlMessageFormat(s,e,i)},nr.prototype.formatByLocaleCode=function(e,t,n){var r,o=this,i=this.i18nText[n];try{r=qn()&&e.id&&(null==i?void 0:i[e.id])?this.getIntlMessageWithPDKVFormat(n,e,i):this.getIntlMessageWithNormalFormat(n,e,i)}catch(t){var a=(null==i?void 0:i[e.id])||e.dm||e.defaultMessage||"",s="[bailingual-sdk-glue] fail to create IntlMessageFormat instance, return original string: "+a;return cn(s),cn("[bailingual-sdk-glue] error detail:",t),this.emit(bn,new Bn({code:En.FORMAT_ERROR,message:s,err:t,textKey:e.id})),a}if(!r)return"";try{var u=t&&Object.keys(t)||[],c=this.normalizeIntlMessageVariable(r,t);return Object.keys(c).forEach((function(t){Dn(u,t)||o.emit(bn,new Bn({code:En.MISSING_PARAM,message:"["+e.id+"] missing param: "+t,textKey:e.id}))})),r.format(c)}catch(n){var l="[bailingual-sdk-glue] format error with key: "+e.id+", value [%s], params: "+t;return cn(l),cn("[bailingual-sdk-glue] error detail:",n),this.emit(bn,new Bn({code:En.FORMAT_ERROR,message:l,err:n,textKey:e.id})),""}},nr.prototype.format=function(e,t,n){void 0===t&&(t={});var r=n;return r&&((r=wn(r))||ln("[bailingual-sdk-glue] "+n+" is not a valid locale code, use default locale instead.")),r||(r=this.currentLocale),r||ln("[bailingual-sdk-glue] no locale code found!"),this.formatByLocaleCode(e,t,r)},nr.prototype.get=function(e,t,n){return"string"==typeof e?(this.reportUsageData({id:e,localeCode:n}),this.format({id:e},t,n)):(this.reportUsageData({id:e.id,localeCode:n}),this.format(e,t,n))},nr.prototype.judgeLocaleCode=function(e){if(void 0===e&&(e=""),e=wn(e),Dn(this.availableLocales,e))return e},nr.prototype.changeLocale=function(e){var t=this.judgeLocaleCode(e);t||this.currentLocale||(t=this.defaultLocale),t?this.setLocale(t):ln("[bailingual-sdk-glue] '"+e+"' is not a vaid locale code")},nr.prototype.unsafeChangeLocale=function(e){void 0===e&&(e=""),this.setLocale(e)},nr.prototype.getAllData=function(e){var t=this;if(this.i18nText&&e&&qn()){var n={};return Object.keys(this.i18nText).forEach((function(e){n[e]=t.buildPDKVLocaleText(t.i18nText[e])})),n}return this.i18nText},nr.prototype.buildPDKVLocaleText=function(e){var t=this,n={};return Object.keys(e||{}).forEach((function(r){var o=e[r];o.match(Be)||(o=Wn(t.appName,r,o)),n[r]=o})),n},nr.prototype.getDataWithLocale=function(e,t){e||cn("[bailingual-sdk-glue] no locale code specified, use default locale ("+this.defaultLocale+") instead.");var n=this.i18nText[wn(e||this.defaultLocale)];return n&&t&&qn()?this.buildPDKVLocaleText(n):n},nr.prototype.getDataFromCurrentLocale=function(e){if(this.currentLocale)return this.getDataWithLocale(this.currentLocale,e);ln("[bailingual-sdk-glue] error occured: no 'currentLocale' found, please check if you have called 'initData' or 'changeLocale' method before.")},nr.prototype.getCurrentLocale=function(){return this.currentLocale||""},nr.prototype.getDefaultLocale=function(){return this.defaultLocale},nr.prototype.formatLocaleCode=function(e){return wn(e)},nr.prototype.patchI18n=function(e,t){return new Promise(function(n,r){var o,i,a,s;if(!(t=t||{}).isIntranet&&!t.buIdentifier)return ln('[bailingual-sdk-glue] no "env.buIdentifier" param, patchI18n will not work.'),this.emit(bn,new Bn({code:En.MISSING_PARAM,message:'[bailingual-sdk-glue] no "env.buIdentifier" param, patchI18n will not work.'})),n();if(!Array.isArray(e)){if(!e.appName){if(!this.appName)return ln("[bailingual-sdk-glue] no appName found, patchI18n will not work."),n();e.appName=this.appName}e.tag||(e.tag=this.tag),e=[e]}return(e=e.filter((function(e){return!!(null==e?void 0:e.appName)||(ln("[bailingual-sdk-glue] no appName found, skip: "+e),!1)}))).length?function(e,t,n){return new Promise((function(r,o){return function(e,t){return new Promise((function(n,r){var o,i,a,s;return o=t&&"buIdentifier"in t?t.buIdentifier:void 0,(i=e.map((function(e){return jn(function(e,t,n,r,o){var i,a;return null===(a=null===(i=Gn[t])||void 0===i?void 0:i[e])||void 0===a?void 0:a.call(i,n,r,o)}(t.isDaily?xn.DAILY:xn.PROD,t.isIntranet?Cn.INTRANET:Cn.INTERNET,e.appName,e.tag,o)).then((function(e){return e?jn(e.url):void 0})).then((function(e){return e||{}}))})),a=[],s=0,new Promise((function(e){i.forEach((function(t,n){t.then((function(t){a[n]=t,++s===i.length&&e(a)}))}))}))).then((function(e){try{return n(e)}catch(e){return r(e)}}),r)}))}(t,n).then((function(t){try{return r(function(e,t){var n={};t.forEach((function(e){e=e||{},Object.keys(e).forEach((function(t){if("object"==L()(e[t])){var r=wn(t);r&&(n[r]=n[r]||{},Mn(n[r],e[t]))}}))}));var r=Object.keys(n),o=Object.keys(e);r.sort().toString()!==o.sort().toString()&&cn("[bailingual-sdk-glue] locales in local data '"+o+"' is different from cdn data '"+r+"'");var i={removedKeys:{},removedLocales:o.filter((function(e){return!Dn(r,e)}))},a={},s={};return r.forEach((function(t){var r=n[t]||{},o=e[t]||{};a[t]=a[t]||{};var i=a[t];Object.keys(r).forEach((function(e){Object.prototype.hasOwnProperty.call(r,e)&&r[e]!==o[e]&&(i[e]=r[e])})),s[t]=Mn({},o,r)})),o.forEach((function(t){if(!Dn(i.removedLocales,t)){var r=e[t]||{},o=n[t]||{},a=s[t]||{};Object.keys(r).forEach((function(e){Object.prototype.hasOwnProperty.call(o,e)||(delete a[e],i.removedKeys[t]=i.removedKeys[t]||[],Dn(i.removedKeys[t],e)||i.removedKeys[t].push(e))}))}})),{newI18nData:s,patchedData:a,deletedData:i}}(e,t))}catch(e){return o(e)}}),o)}))}(this.langPkgsNoPatch,e,t).then(function(e){var t;try{return o=(t=e).newI18nData,i=t.patchedData,a=t.deletedData,s=this.getPatchI18nKey(),this.updateData(o)&&s&&(Un("BAILINGUAL_PATCH_I18N-"+s,JSON.stringify(i)),Un("BAILINGUAL_PATCH_I18N_DELETED-"+s,JSON.stringify(a))),n()}catch(e){return r(e)}}.bind(this),r):(ln("[bailingual-sdk-glue] no bailingual packages found, stop patch"),n())}.bind(this))},nr.prototype.updateData=function(e){var t=Object.keys(e).filter((function(e){return Dn(Ce,e)}));return this.defaultLocale&&!Dn(t,this.defaultLocale)?(ln("[bailingual-sdk-glue] default locale "+this.defaultLocale+" is not exist in new data, can't update data."),!1):(this.i18nText=e,this.intlMessages={},this.intlPDKVMessages={},this.availableLocales=t,this.emit(yn,e),this.currentLocale&&!Dn(t,this.currentLocale)&&(cn("[bailingual-sdk-glue] current locale "+this.currentLocale+" is not available, use default locale ("+this.defaultLocale+") instead."),this.changeLocale(this.defaultLocale)),!0)},nr.prototype.on=function(e,t){this.eventHandler[e]=this.eventHandler[e]||[],this.eventHandler[e].push(t)},nr.prototype.off=function(e,t){var n,r=this;null===(n=this.eventHandler[e])||void 0===n||n.forEach((function(n,o){n===t&&(r.eventHandler[e][o]=null)}))},nr.prototype.onDataChange=function(e){this.on(yn,e)},nr.prototype.offDataChange=function(e){this.off(yn,e)},nr.prototype.onLocaleChange=function(e){this.on(vn,e)},nr.prototype.offLocaleChange=function(e){this.off(vn,e)},nr.prototype.onError=function(e){this.on(bn,e)},nr.prototype.offError=function(e){this.off(bn,e)},nr.prototype.emit=function(e,t){var n,r;null===(r=null===(n=this.eventHandler[e])||void 0===n?void 0:n.forEach)||void 0===r||r.call(n,(function(e){null==e||e(t)}))},nr.prototype.stopPatchI18n=function(){this.canUsePatchedData=!1},nr.prototype.setAutoStoreCurrentLocaleToCookie=function(e){this.canStoreCurrentLocaleToCookie=!!e},nr.prototype.setAutoReadLocaleFromCookie=function(e){this.canReadLocaleFromCookie=!!e},nr.prototype.getAllLocales=function(){return[].concat(this.availableLocales)},nr.prototype.changeUsageReportRegion=function(e){this.usageReportRegion=e},nr.prototype.changeBizEnv=function(e){this.bizEnv=e},nr.prototype.reportUsageData=function(e){var t=e.id,n=e.count;void 0===n&&(n=1);var r,o=e.localeCode;void 0===o&&(o=this.currentLocale),null===(r=this.usageReporter)||void 0===r||r.report({appName:this.appName,textKey:t,textLocale:o,textUsedCount:n,sdkName:"bailingual-sdk-glue",env:this.bizEnv||"PROD"})},nr.prototype.removeBailingualCookie=function(){Pn()},Object.defineProperties(nr.prototype,rr),nr.customizedGetSystemLocale=void 0;var or=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.normalizeIntlMessageVariable=function(e,t){var n=e.getAst(),r=t||{};return n.forEach((function(e){Dn([Ue.argument,Ue.number,Ue.date,Ue.time,Ue.select,Ue.plural],e.type)&&"value"in e&&void 0===r[e.value]&&(r[e.value]="")})),r},t.prototype.createIntlMessageFormat=function(e,t,n){return void 0===n&&(n=!0),new an(e,t,{},{ignoreTag:n})},t}(nr),ir=new or,ar=(ir.get.bind(ir),"antom-language-storage-key"),sr="en_US",ur=new or;function cr(e){if(e)return lr(e);try{var t=window._amsSdkLanguage||window.sessionStorage.getItem(ar)||window.localStorage.getItem(ar);if(t)return lr(t)}catch(e){}if(navigator.language){var n=!/[-,_]/.test(navigator.language),r=ur.getAllLocales().find((function(e){return n?e.startsWith(navigator.language):lr(e)===lr(navigator.language)}))||sr;if(r)return r=lr(r)}return sr}function lr(e){var t=e;t||(t=sr);var n=t.split(/[-,_]/),r=T(n,2),o=r[0],i=r[1];return o||(o="en"),i?"".concat(o.toLowerCase(),"_").concat(i.toUpperCase()):o.toLowerCase()}var hr={API_MISS_PARAMS:"API_MISS_PARAMS",API_GATEWAY_TIMEOUT:"API_GATEWAY_TIMEOUT",API_SYSTEM_ERROR:"API_SYSTEM_ERROR",API_TIMEOUT:"API_TIMEOUT",API_NOT_LOGIN:"API_NOT_LOGIN",API_GATEWAY_ERROR:"API_GATEWAY_ERROR"};i(i({},{UNKNOWN_ERROR:"UNKNOWN_ERROR",NO_PORTS_ERROR:"NO_PORTS_ERROR",INVALID_REDIRECT_URL:"INVALID_REDIRECT_URL"}),hr);O.initConfig({i18n:ur,i18nPrefix:"ANTOMSDK",getDefaultMessage:function(){return ur.get({id:"page.wrong.error.message",defaultMessage:"System error, please retry later"})}});var fr=function(e){w(n,e);var t=S(n);function n(){var e;b(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),k(E(e),"name","AntomError"),k(E(e),"response",void 0),e}return _(n,null,[{key:"isError",value:function(e){return O.isError(e)}},{key:"unificationError",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"APP_RUNTIME";return O.unificationError(e,t)}}]),n}(O),pr=function(e){w(n,e);var t=S(n);function n(){var e;b(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),k(E(e),"name","AntomCoreError"),e}return _(n)}(fr),dr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"defaultRequestScope";return e?{success:function(n,r,o){e.log({code:"11",msg:n,d1:o||"无traceId",d2:t,d3:Math.round(r),d5:"是",m1:1,m2:Math.round(r)})},error:function(n,r,o,i,a){e.log({code:"11",msg:n,d1:a||"无traceId",d2:t,d3:Math.round(r),d4:"".concat(i,"-").concat(o),d5:"否",m1:0,m2:Math.round(r)})}}:{success:function(){},error:function(){}}},gr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"defaultJsErrorScope";return function(n){e&&e.log({code:"12",msg:(null==n?void 0:n.message)||"上报未知的异常信息",d1:(null==n?void 0:n.stack)||"无stack信息",d2:t})}},mr=(window||{}).navigator,vr=mr.userAgent,yr=function(){var e=/OpenHarmony/i.test(mr.userAgent),t=/Phone/i.test(mr.userAgent),n=/Tablet/i.test(mr.userAgent);return e&&(t||n)},br=/iPhone|iPad|iPod/i.test(vr)||"MacIntel"===mr.platform&&mr.maxTouchPoints>1,_r=(/Android/i.test(vr),/\bMacintosh\b/.test(vr),/Windows NT/.test(vr),function(){return/Android|iPhone|iPad|iPod|Mobile|SymbianOS|Windows Phone/.test(vr)||yr()}),Er=br,wr=!!_r();_r(),yr();var Sr=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{if(!e){if(t)throw t;return}return JSON.parse(e)}catch(e){if(t)throw t;return}};function kr(e,t){return function(){return e.apply(t,arguments)}}var Tr,Pr,Lr=n(822),Rr=Object.prototype.toString,Ar=Object.getPrototypeOf,Or=Symbol.iterator,Nr=Symbol.toStringTag,Ir=(Tr=Object.prototype.hasOwnProperty,function(e,t){return Tr.call(e,t)}),xr=function(e){return"string"==typeof e&&("__proto__"===e||"constructor"===e||"prototype"===e)},Cr=function(e,t,n){return e===Object.prototype||!n&&null===t},Br=function(e,t){for(var n=e,r=[];null!=n;){if(-1!==r.indexOf(n))return!1;r.push(n);var o=Ar(n);if(Cr(n,o,n===e))return!1;if(Ir(n,t))return!0;n=o}return!1},Mr=(Pr=Object.create(null),function(e){var t=Rr.call(e);return Pr[t]||(Pr[t]=t.slice(8,-1).toLowerCase())}),Dr=function(e){return e=e.toLowerCase(),function(t){return Mr(t)===e}},Hr=function(e){return function(t){return P(t)===e}},Ur=Array.isArray,jr=Hr("undefined");function zr(e){return null!==e&&!jr(e)&&null!==e.constructor&&!jr(e.constructor)&&Fr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var Gr=Dr("ArrayBuffer");var Kr=Hr("string"),Fr=Hr("function"),Yr=Hr("number"),qr=function(e){return null!==e&&"object"===P(e)},Vr=function(e){if(!qr(e))return!1;var t=Ar(e);return!(null!==t&&t!==Object.prototype&&null!==Ar(t)||Br(e,Nr)||Br(e,Or))},Wr=Dr("Date"),Xr=Dr("File"),Jr=Dr("Blob"),Zr=Dr("FileList"),Qr=Dr("Set");var $r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{},eo=void 0!==$r.FormData?$r.FormData:void 0,to=Dr("URLSearchParams"),no=["ReadableStream","Request","Response","Headers"].map(Dr),ro=T(no,4),oo=ro[0],io=ro[1],ao=ro[2],so=ro[3];function uo(e,t){var n,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=o.allOwnKeys,a=void 0!==i&&i;if(null!=e)if("object"!==P(e)&&(e=[e]),Ur(e))for(n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else{if(zr(e))return;var s,u=a?Object.getOwnPropertyNames(e):Object.keys(e),c=u.length;for(n=0;n<c;n++)s=u[n],t.call(null,e[s],s,e)}}function co(e,t){if(zr(e))return null;t=t.toLowerCase();for(var n,r=Object.keys(e),o=r.length;o-- >0;)if(t===(n=r[o]).toLowerCase())return n;return null}var lo="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:n.g,ho=function(e){return!jr(e)&&e!==lo};var fo,po=(fo="undefined"!=typeof Uint8Array&&Ar(Uint8Array),function(e){return fo&&e instanceof fo}),go=Dr("HTMLFormElement"),mo=Object.prototype.propertyIsEnumerable,vo=Dr("RegExp"),yo=function(e,t){var n=Object.getOwnPropertyDescriptors(e),r={};uo(n,(function(n,o){var i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)};var bo,_o,Eo,wo,So=Dr("AsyncFunction"),ko=(bo="function"==typeof setImmediate,_o=Fr(lo.postMessage),bo?setImmediate:_o?(Eo="axios@".concat(Math.random()),wo=[],lo.addEventListener("message",(function(e){var t=e.source,n=e.data;t===lo&&n===Eo&&wo.length&&wo.shift()()}),!1),function(e){wo.push(e),lo.postMessage(Eo,"*")}):function(e){return setTimeout(e)}),To="undefined"!=typeof queueMicrotask?queueMicrotask.bind(lo):void 0!==Lr&&Lr.nextTick||ko,Po=function(e){return null!=e&&Fr(e[Or])},Lo={isArray:Ur,isArrayBuffer:Gr,isBuffer:zr,isFormData:function(e){if(!e)return!1;if(eo&&e instanceof eo)return!0;var t=Ar(e);if(!t||t===Object.prototype)return!1;if(!Fr(e.append))return!1;var n=Mr(e);return"formdata"===n||"object"===n&&Fr(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Gr(e.buffer)},isString:Kr,isNumber:Yr,isBoolean:function(e){return!0===e||!1===e},isObject:qr,isPlainObject:Vr,isEmptyObject:function(e){if(!qr(e)||zr(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:oo,isRequest:io,isResponse:ao,isHeaders:so,isUndefined:jr,isDate:Wr,isFile:Xr,isReactNativeBlob:function(e){return!(!e||void 0===e.uri)},isReactNative:function(e){return e&&void 0!==e.getParts},isBlob:Jr,isRegExp:vo,isFunction:Fr,isStream:function(e){return qr(e)&&Fr(e.pipe)},isURLSearchParams:to,isTypedArray:po,isFileList:Zr,forEach:uo,merge:function e(){for(var t=ho(this)&&this||{},n=t.caseless,r=t.skipUndefined,o={},i=function(t,i){if("__proto__"!==i&&"constructor"!==i&&"prototype"!==i){var a=n&&"string"==typeof i&&co(o,i)||i,s=Ir(o,a)?o[a]:void 0;Vr(s)&&Vr(t)?o[a]=e(s,t):Vr(t)?o[a]=e({},t):Ur(t)?o[a]=t.slice():r&&jr(t)||(o[a]=t)}},a=0,s=arguments.length;a<s;a++){var u=a<0||arguments.length<=a?void 0:arguments[a];if(u&&!zr(u)&&(uo(u,i),"object"===P(u)&&!Ur(u)))for(var c=Object.getOwnPropertySymbols(u),l=0;l<c.length;l++){var h=c[l];mo.call(u,h)&&i(u[h],h)}}return o},extend:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=r.allOwnKeys;return uo(t,(function(t,r){n&&Fr(t)?Object.defineProperty(e,r,{__proto__:null,value:kr(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})}),{allOwnKeys:o}),e},trim:function(e){return e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,r){e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n,r){var o,i,a,s={};if(t=t||{},null==e)return t;do{for(i=(o=Object.getOwnPropertyNames(e)).length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&Ar(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Mr,kindOfTest:Dr,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;if(Ur(e))return e;var t=e.length;if(!Yr(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},forEachEntry:function(e,t){for(var n,r=(e&&e[Or]).call(e);(n=r.next())&&!n.done;){var o=n.value;t.call(e,o[0],o[1])}},matchAll:function(e,t){for(var n,r=[];null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:go,hasOwnProperty:Ir,hasOwnProp:Ir,hasOwnInPrototypeChain:Br,getSafeProp:function(e,t){return null!=e&&Br(e,t)?e[t]:void 0},toSafeFlatObject:function(e){if(null==e||"object"!==P(e)&&"function"!=typeof e)return e;var t=Ar(e);if(null===t&&function(e){if(!Object.isExtensible(e))return!1;var t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&t.push.apply(t,v(Object.getOwnPropertySymbols(e))),t.every((function(t){if(xr(t))return!1;var n=Object.getOwnPropertyDescriptor(e,t);return!!n&&n.configurable&&!0===n.writable}))}(e))return e;for(var n=Object.create(null),r=Object.create(null),o=[],i=e;null!=i&&-1===o.indexOf(i);){o.push(i);var a=i===e?t:Ar(i);if(Cr(i,a,i===e))break;var s=Object.getOwnPropertyNames(i);Object.getOwnPropertySymbols&&s.push.apply(s,v(Object.getOwnPropertySymbols(i)));var u,c=I(s);try{for(c.s();!(u=c.n()).done;){var l=u.value;xr(l)||(Ir(r,l)||(n[l]=e[l],r[l]=!0))}}catch(e){c.e(e)}finally{c.f()}i=a}return n},reduceDescriptors:yo,freezeMethods:function(e){yo(e,(function(t,n){if(Fr(e)&&["arguments","caller","callee"].includes(n))return!1;var r=e[n];Fr(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=function(){throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:function(e,t){var n={},r=function(e){e.forEach((function(e){n[e]=!0}))};return Ur(e)?r(e):r(String(e).split(t)),n},toCamelCase:function(e){return e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n}))},noop:function(){},toFiniteNumber:function(e,t){return null!=e&&Number.isFinite(e=+e)?e:t},findKey:co,global:lo,isContextDefined:ho,isSpecCompliantForm:function(e){return!!(e&&Fr(e.append)&&"FormData"===e[Nr]&&e[Or])},toJSONObject:function(e){var t=new WeakSet;return function e(n){if(qr(n)){if(t.has(n))return;if(zr(n))return n;if(!("toJSON"in n)){var r;if(t.add(n),Qr(n)){r=[];var o,i=I(n);try{for(i.s();!(o=i.n()).done;){var a=o.value,s=e(a);!jr(s)&&r.push(s)}}catch(e){i.e(e)}finally{i.f()}}else r=Ur(n)?[]:{},uo(n,(function(t,n){var o=e(t);!jr(o)&&(r[n]=o)}));return t.delete(n),r}}return n}(e)},isAsyncFn:So,isThenable:function(e){return e&&(qr(e)||Fr(e))&&Fr(e.then)&&Fr(e.catch)},setImmediate:ko,asap:To,isIterable:Po,isSafeIterable:function(e){return null!=e&&Br(e,Or)&&Po(e)}},Ro=Lo.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var Ao=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),Oo=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function No(e,t){return Lo.isArray(e)?e.map((function(e){return No(e,t)})):function(e){for(var t=0,n=e.length;t<n;){var r=e.charCodeAt(t);if(9!==r&&32!==r)break;t+=1}for(;n>t;){var o=e.charCodeAt(n-1);if(9!==o&&32!==o)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}(String(e).replace(t,""))}function Io(e){var t=Object.create(null);return Lo.forEach(e.toJSON(),(function(e,n){t[n]=function(e){return No(e,Oo)}(e)})),t}var xo=Symbol("internals");function Co(e){return e&&String(e).trim().toLowerCase()}function Bo(e){return!1===e||null==e?e:Lo.isArray(e)?e.map(Bo):function(e){return No(e,Ao)}(String(e))}var Mo=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function Do(e){for(var t=0,n=e.length;t<n;){var r=e.charCodeAt(t);if(9!==r&&32!==r)break;t+=1}for(;n>t;){var o=e.charCodeAt(n-1);if(9!==o&&32!==o)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}function Ho(e,t,n,r,o){return Lo.isFunction(r)?r.call(this,t,n):(o&&(t=n),Lo.isString(t)?Lo.isString(r)?-1!==t.indexOf(r):Lo.isRegExp(r)?r.test(t):void 0:void 0)}var Uo=function(e,t){function n(e){b(this,n),e&&this.set(e)}return _(n,[{key:"set",value:function(e,t,n){var r=this;function o(e,t,n){var o=Co(t);if(o){var i=Lo.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=Bo(e))}}var i=function(e,t){return Lo.forEach(e,(function(e,n){return o(e,n,t)}))};if(Lo.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(Lo.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i(function(e){var t,n,r,o={};return e&&e.split("\n").forEach((function(e){r=e.indexOf(":"),t=e.substring(0,r).trim().toLowerCase(),n=e.substring(r+1).trim();var i=Lo.hasOwnProp(o,t);!t||i&&Lo.hasOwnProp(Ro,t)||("set-cookie"===t?i?o[t].push(n):o[t]=[n]:o[t]=i?o[t]+", "+n:n)})),o}(e),t);else if(Lo.isObject(e)&&Lo.isSafeIterable(e)){var a,s,u,c=Object.create(null),l=I(e);try{for(l.s();!(u=l.n()).done;){var h=u.value;if(!Lo.isArray(h))throw new TypeError("Object iterator must return a key-value pair");s=h[0],Lo.hasOwnProp(c,s)?(a=c[s],c[s]=Lo.isArray(a)?[].concat(v(a),[h[1]]):[a,h[1]]):c[s]=h[1]}}catch(e){l.e(e)}finally{l.f()}i(c,t)}else null!=e&&o(t,e,n);return this}},{key:"get",value:function(e,t){if(e=Co(e)){var n=Lo.findKey(this,e);if(n){var r=this[n];if(!t)return r;if(!0===t)return function(e){for(var t,n=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;t=r.exec(e);)n[t[1]]=t[2];return n}(r);if(Lo.isFunction(t))return t.call(this,r,n);if(Lo.isRegExp(t))return t.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}},{key:"has",value:function(e,t){if(e=Co(e)){var n=Lo.findKey(this,e);return!(!n||void 0===this[n]||t&&!Ho(0,this[n],n,t))}return!1}},{key:"delete",value:function(e,t){var n=this,r=!1;function o(e){if(e=Co(e)){var o=Lo.findKey(n,e);!o||t&&!Ho(0,n[o],o,t)||(delete n[o],r=!0)}}return Lo.isArray(e)?e.forEach(o):o(e),r}},{key:"clear",value:function(e){for(var t=Object.keys(this),n=t.length,r=!1;n--;){var o=t[n];e&&!Ho(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}},{key:"normalize",value:function(e){var t=this,n={};return Lo.forEach(this,(function(r,o){var i=Lo.findKey(n,o);if(i)return t[i]=Bo(r),void delete t[o];var a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n}))}(o):String(o).trim();a!==o&&delete t[o],t[a]=Bo(r),n[a]=!0})),this}},{key:"concat",value:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=this.constructor).concat.apply(e,[this].concat(n))}},{key:"toJSON",value:function(e){var t=Object.create(null);return Lo.forEach(this,(function(n,r){null!=n&&!1!==n&&(t[r]=e&&Lo.isArray(n)?n.join(", "):n)})),t}},{key:e,value:function(){return Object.entries(this.toJSON())[Symbol.iterator]()}},{key:"toString",value:function(){return Object.entries(this.toJSON()).map((function(e){var t=T(e,2);return t[0]+": "+t[1]})).join("\n")}},{key:"getSetCookie",value:function(){var e=this.get("set-cookie");return Lo.isArray(e)?e:null==e||!1===e?[]:[e]}},{key:t,get:function(){return"AxiosHeaders"}}],[{key:"from",value:function(e){return e instanceof this?e:new this(e)}},{key:"parseParameters",value:function(e){return function(e){var t=Object.create(null),n=String(e),r=0,o=!1,i=!1;function a(e){var o=Do(n.slice(r,e)),i=o.indexOf("=");if(!(i<1)){var a=Do(o.slice(0,i));if(Mo.test(a)){var s=a.toLowerCase();if("__proto__"!==s&&"constructor"!==s&&"prototype"!==s){var u=Do(o.slice(i+1));t[s]=function(e){var t=e.length-1;if(t<1||34!==e.charCodeAt(0)||34!==e.charCodeAt(t))return e;for(var n="",r=1;r<t;r++){var o=e.charCodeAt(r);if(34===o)return e;if(92===o&&(r+=1)>=t)return e;n+=e[r]}return n}(u)}}}}for(var s=0;s<n.length;s++){var u=n.charCodeAt(s);o?i?i=!1:92===u?i=!0:34===u&&(o=!1):34===u?o=!0:44!==u&&59!==u||(a(s),r=s+1)}return a(n.length),t}(e)}},{key:"concat",value:function(e){for(var t=new this(e),n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.forEach((function(e){return t.set(e)})),t}},{key:"accessor",value:function(e){var t=(this[xo]=this[xo]={accessors:{}}).accessors,n=this.prototype;function r(e){var r=Co(e);t[r]||(!function(e,t){var n=Lo.toCamelCase(" "+t);["get","set","has"].forEach((function(r){Object.defineProperty(e,r+n,{__proto__:null,value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return Lo.isArray(e)?e.forEach(r):r(e),this}}]),n}(Symbol.iterator,Symbol.toStringTag);Uo.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Lo.reduceDescriptors(Uo.prototype,(function(e,t){var n=e.value,r=t[0].toUpperCase()+t.slice(1);return{get:function(){return n},set:function(e){this[r]=e}}})),Lo.freezeMethods(Uo);var jo=Uo,zo="[REDACTED ****]";function Go(e,t){var n=new Set(t.map((function(e){return String(e).toLowerCase()}))),r=[];return function e(t){if(null===t||"object"!==P(t))return t;if(Lo.isBuffer(t))return t;if(-1===r.indexOf(t)){var o;if(t instanceof jo&&(t=t.toJSON()),r.push(t),Lo.isArray(t))o=[],t.forEach((function(t,n){var r=e(t);Lo.isUndefined(r)||(o[n]=r)}));else{if(!Lo.isPlainObject(t)&&function(e){if(Lo.hasOwnProp(e,"toJSON"))return!0;for(var t=Object.getPrototypeOf(e);t&&t!==Object.prototype;){if(Lo.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(t))return r.pop(),t;o=Object.create(null);for(var i=0,a=Object.entries(t);i<a.length;i++){var s=T(a[i],2),u=s[0],c=s[1],l=n.has(u.toLowerCase())?zo:e(c);Lo.isUndefined(l)||(o[u]=l)}}return r.pop(),o}}(e)}function Ko(e){try{return String(e)}catch(e){return""}}var Fo=function(e){w(n,e);var t=S(n);function n(e,r,o,i,a){var s;return b(this,n),s=t.call(this,e),Object.defineProperty(E(s),"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),s.name="AxiosError",s.isAxiosError=!0,r&&(s.code=r),o&&(s.config=o),i&&(s.request=i),a&&(s.response=a,s.status=a.status),s}return _(n,[{key:"toJSON",value:function(){var e=this.config,t=e&&Lo.hasOwnProp(e,"redact")?e.redact:void 0,n=Lo.isArray(t)&&t.length>0?Go(e,t):Lo.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n,code:this.code,status:this.status}}}],[{key:"from",value:function(e,t,r,o,i,a){var s=e.message;!s&&Lo.isArray(e.errors)&&e.errors.length&&(s=function(e){return e.errors.map((function(e){try{return e&&e.message?Ko(e.message):Ko(e)}catch(e){return""}})).filter(Boolean).join("; ")||e.name||"AggregateError"}(e));var u=new n(s,t||e.code,r,o,i);return Object.defineProperty(u,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),u.name=e.name,null!=e.status&&null==u.status&&(u.status=e.status),a&&Object.assign(u,a),u}}]),n}(R(Error));Fo.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",Fo.ERR_BAD_OPTION="ERR_BAD_OPTION",Fo.ECONNABORTED="ECONNABORTED",Fo.ETIMEDOUT="ETIMEDOUT",Fo.ECONNREFUSED="ECONNREFUSED",Fo.ERR_NETWORK="ERR_NETWORK",Fo.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",Fo.ERR_DEPRECATED="ERR_DEPRECATED",Fo.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",Fo.ERR_BAD_REQUEST="ERR_BAD_REQUEST",Fo.ERR_CANCELED="ERR_CANCELED",Fo.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",Fo.ERR_INVALID_URL="ERR_INVALID_URL",Fo.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";var Yo=Fo;function qo(e){return Lo.isPlainObject(e)||Lo.isArray(e)}function Vo(e){return Lo.endsWith(e,"[]")?e.slice(0,-2):e}function Wo(e,t,n){return e?e.concat(t).map((function(e,t){return e=Vo(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}var Xo=Lo.toFlatObject(Lo,{},null,(function(e){return/^is[A-Z]/.test(e)}));var Jo=function(e,t,n){if(!Lo.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;var r=function(e,t){var r=Lo.getSafeProp(n,e);return Lo.isUndefined(r)?t:r},o=r("metaTokens",!0),i=r("visitor")||d,a=r("dots",!1),s=r("indexes",!1),u=r("Blob")||"undefined"!=typeof Blob&&Blob,c=r("maxDepth",100),l=u&&Lo.isSpecCompliantForm(t),h=[];if(!Lo.isFunction(i))throw new TypeError("visitor must be a function");function f(e){if(null===e)return"";if(Lo.isDate(e))return e.toISOString();if(Lo.isBoolean(e))return e.toString();if(!l&&Lo.isBlob(e))throw new Yo("Blob is not supported. Use a Buffer instead.");if(Lo.isArrayBuffer(e)||Lo.isTypedArray(e)){if(l&&"function"==typeof u)return new u([e]);throw new Yo("Blob is not supported. Use a Buffer instead.",Yo.ERR_NOT_SUPPORT)}return e}function p(e){if(e>c)throw new Yo("Object is too deeply nested ("+e+" levels). Max depth: "+c,Yo.ERR_FORM_DATA_DEPTH_EXCEEDED)}function d(e,n,r){var i=e;if(Lo.isReactNative(t)&&Lo.isReactNativeBlob(e))return t.append(Wo(r,n,a),f(e)),!1;if(e&&!r&&"object"===P(e))if(Lo.endsWith(n,"{}"))n=o?n:n.slice(0,-2),e=function(e,t){if(c===1/0)return JSON.stringify(e);var n=[];return JSON.stringify(e,(function(e,r){if(!Lo.isObject(r))return r;for(;n.length&&n[n.length-1]!==this;)n.pop();return n.push(r),p(t+n.length-1),r}))}(e,1);else if(Lo.isArray(e)&&function(e){return Lo.isArray(e)&&!e.some(qo)}(e)||(Lo.isFileList(e)||Lo.endsWith(n,"[]"))&&(i=Lo.toArray(e)))return n=Vo(n),i.forEach((function(e,r){!Lo.isUndefined(e)&&null!==e&&t.append(!0===s?Wo([n],r,a):null===s?n:n+"[]",f(e))})),!1;return!!qo(e)||(t.append(Wo(r,n,a),f(e)),!1)}var g=Object.assign(Xo,{defaultVisitor:d,convertValue:f,isVisitable:qo});if(!Lo.isObject(e))throw new TypeError("data must be an object");return function e(n,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!Lo.isUndefined(n)){if(p(o),-1!==h.indexOf(n))throw new Error("Circular reference detected in "+r.join("."));h.push(n),Lo.forEach(n,(function(n,a){!0===(!(Lo.isUndefined(n)||null===n)&&i.call(t,n,Lo.isString(a)?a.trim():a,r,g))&&e(n,r?r.concat(a):[a],o+1)})),h.pop()}}(e),t};function Zo(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,(function(e){return t[e]}))}function Qo(e,t){this._pairs=[],e&&Jo(e,this,t)}var $o=Qo.prototype;$o.append=function(e,t){this._pairs.push([e,t])},$o.toString=function(e){var t=this,n=e?function(n){return e.call(t,n,Zo)}:Zo;return this._pairs.map((function(e){return n(e[0])+"="+n(e[1])}),"").join("&")};var ei=Qo;function ti(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function ni(e,t,n){if(!t)return e;e=e||"";var r,o=Lo.isFunction(n)?{serialize:n}:n,i=Lo.getSafeProp(o,"encode")||ti,a=Lo.getSafeProp(o,"serialize");if(r=a?a(t,o):Lo.isURLSearchParams(t)?t.toString():new ei(t,o).toString(i)){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}var ri=Symbol("internals");function oi(e){return e?e.length:0}function ii(e){if(e)for(;e.length&&null===e[e.length-1];)e.pop()}function ai(e,t){var n=e.handlers,r=oi(n);n!==t.handlersRef?(t.handlersRef=n,t.handlerEntries.clear()):r!==t.handlersLength&&(r?t.handlerEntries.forEach((function(e,r){n[e.index]!==e.handler&&t.handlerEntries.delete(r)})):t.handlerEntries.clear()),t.handlersLength=r}var si=function(){function e(){b(this,e),this.handlers=[],this[ri]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}return _(e,[{key:"use",value:function(e,t,n){var r={fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null},o=this[ri];null==this.handlers&&(this.handlers=[]),ai(this,o);var i=o.nextId++;return this.handlers.push(r),o.handlerEntries.set(i,{handler:r,index:this.handlers.length-1}),o.handlersLength=this.handlers.length,i}},{key:"eject",value:function(e){var t=this[ri];ai(this,t);var n=t.handlerEntries.get(e);if(n){if(t.handlerEntries.delete(e),this.handlers[n.index]!==n.handler)return;this.handlers[n.index]=null,t.iterationDepth||(ii(this.handlers),t.handlersLength=this.handlers.length)}}},{key:"clear",value:function(){this.handlers&&(this.handlers=[],ai(this,this[ri]))}},{key:"forEach",value:function(e){var t=this[ri];ai(this,t),t.iterationDepth++;try{Lo.forEach(this.handlers,(function(t){null!==t&&e(t)}))}finally{--t.iterationDepth||(ai(this,t),ii(this.handlers),t.handlersLength=oi(this.handlers))}}}]),e}(),ui=si,ci={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},li={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ei,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},hi="undefined"!=typeof window&&"undefined"!=typeof document,fi="object"===("undefined"==typeof navigator?"undefined":P(navigator))&&navigator||void 0,pi=hi&&(!fi||["ReactNative","NativeScript","NS"].indexOf(fi.product)<0),di="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,gi=hi&&window.location.href||"http://localhost",mi=i(i({},e),li);function vi(e){if(e>100)throw new Yo("FormData field is too deeply nested ("+e+" levels). Max depth: 100",Yo.ERR_FORM_DATA_DEPTH_EXCEEDED)}var yi=function(e){function t(e,n,r,o){vi(o);var i=e[o++];if("__proto__"===i)return!0;var a=Number.isFinite(+i),s=o>=e.length;return i=!i&&Lo.isArray(r)?r.length:i,s?(Lo.hasOwnProp(r,i)?r[i]=Lo.isArray(r[i])?r[i].concat(n):[r[i],n]:r[i]=n,!a):(Lo.hasOwnProp(r,i)&&Lo.isObject(r[i])||(r[i]=[]),t(e,n,r[i],o)&&Lo.isArray(r[i])&&(r[i]=function(e){var t,n,r={},o=Object.keys(e),i=o.length;for(t=0;t<i;t++)r[n=o[t]]=e[n];return r}(r[i])),!a)}if(Lo.isFormData(e)&&Lo.isFunction(e.entries)){var n={};return Lo.forEachEntry(e,(function(e,r){t(function(e){for(var t,n=[],r=/[^.[\]]+|\[([^.[\]]*)]/g;null!==(t=r.exec(e));)vi(n.length),n.push("[]"===t[0]?"":t[1]||t[0]);return n}(e),r,n,0)})),n}return null},bi=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),_i=function(e,t){return null!=e&&Lo.hasOwnProp(e,t)?e[t]:void 0};var Ei={transitional:ci,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){var n,r=t.getContentType()||"",o=r.indexOf("application/json")>-1,a=Lo.isObject(e);if(a&&Lo.isHTMLForm(e)&&(e=new FormData(e)),Lo.isFormData(e))return o?JSON.stringify(yi(e)):e;if(Lo.isArrayBuffer(e)||Lo.isBuffer(e)||Lo.isStream(e)||Lo.isFile(e)||Lo.isBlob(e)||Lo.isReadableStream(e))return e;if(Lo.isArrayBufferView(e))return e.buffer;if(Lo.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(a){var s=_i(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Jo(e,new mi.classes.URLSearchParams,i({visitor:function(e,t,n,r){return mi.isNode&&Lo.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,s).toString();if((n=Lo.isFileList(e))||r.indexOf("multipart/form-data")>-1){var u=_i(this,"env"),c=u&&u.FormData;return Jo(n?{"files[]":e}:e,c&&new c,s)}}return a||o?(t.setContentType("application/json",!1),function(e,t,n){if(Lo.isString(e))try{return(t||JSON.parse)(e),Lo.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=_i(this,"transitional")||Ei.transitional,n=t&&t.forcedJSONParsing,r=_i(this,"responseType"),o="json"===r;if(Lo.isResponse(e)||Lo.isReadableStream(e))return e;if(e&&Lo.isString(e)&&(n&&!r||o)){var i=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e,_i(this,"parseReviver"))}catch(e){if(i){if("SyntaxError"===e.name)throw Yo.from(e,Yo.ERR_BAD_RESPONSE,this,null,_i(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:mi.classes.FormData,Blob:mi.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Lo.forEach(bi,(function(e){Ei.headers[e]={}}));var wi=Ei;function Si(e,t){var n=this||wi,r=t||n,o=jo.from(r.headers),i=r.data;return Lo.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function ki(e){return!(!e||!e.__CANCEL__)}var Ti=function(e){w(n,e);var t=S(n);function n(e,r,o){var i;return b(this,n),(i=t.call(this,null==e?"canceled":e,Yo.ERR_CANCELED,r,o)).name="CanceledError",i.__CANCEL__=!0,i}return _(n)}(Yo),Pi=Ti;function Li(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Yo("Request failed with status code "+n.status,n.status>=400&&n.status<500?Yo.ERR_BAD_REQUEST:Yo.ERR_BAD_RESPONSE,n.config,n.request,n)):e(n)}var Ri=/[\t\n\r]/g;function Ai(e){if("string"!=typeof e)return e;for(var t=0;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t).replace(Ri,"")}function Oi(e){var t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}var Ni=function(e,t){e=e||10;var n,r=new Array(e),o=new Array(e),i=0,a=0;return t=void 0!==t?t:1e3,function(s){var u=Date.now(),c=o[a];n||(n=u),r[i]=s,o[i]=u;for(var l=a,h=0;l!==i;)h+=r[l++],l%=e;if((i=(i+1)%e)===a&&(a=(a+1)%e),!(u-n<t)){var f=c&&u-c;return f?Math.round(1e3*h/f):void 0}}};var Ii=function(e,t){var n,r,o=0,i=1e3/t,a=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();o=i,n=null,r&&(clearTimeout(r),r=null),e.apply(void 0,v(t))};return[function(){for(var e=Date.now(),t=e-o,s=arguments.length,u=new Array(s),c=0;c<s;c++)u[c]=arguments[c];t>=i?a(u,e):(n=u,r||(r=setTimeout((function(){r=null,a(n)}),i-t)))},function(){return n&&a(n)},function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return a(t)}]},xi=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,r=0,o=Ni(50,250);return Ii((function(n){if(n&&Lo.isNumber(n.loaded)){var i=n.loaded,a=n.lengthComputable?n.total:void 0,s=Math.max(0,null!=a?Math.min(i,a):i),u=Math.max(0,s-r),c=o(u);r=Math.max(r,s);var l=k({loaded:s,total:a,progress:a?s/a:void 0,bytes:u,rate:c||void 0,estimated:c&&a?(a-s)/c:void 0,event:n,lengthComputable:null!=a},t?"download":"upload",!0);e(l)}}),n)},Ci=function(e,t){var n=null!=e;return[function(r){return t[0]({lengthComputable:n,total:e,loaded:r})},t[1]]},Bi=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Lo.asap;return function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t((function(){return e.apply(void 0,r)}))}},Mi=mi.hasStandardBrowserEnv?function(e,t){return function(n){return n=new URL(n,mi.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)}}(new URL(mi.origin),mi.navigator&&/(msie|trident)/i.test(mi.navigator.userAgent)):function(){return!0},Di=mi.hasStandardBrowserEnv?{write:function(e,t,n,r,o,i,a){if("undefined"!=typeof document){var s=["".concat(e,"=").concat(encodeURIComponent(t))];Lo.isNumber(n)&&s.push("expires=".concat(new Date(n).toUTCString())),Lo.isString(r)&&s.push("path=".concat(r)),Lo.isString(o)&&s.push("domain=".concat(o)),!0===i&&s.push("secure"),Lo.isString(a)&&s.push("SameSite=".concat(a)),document.cookie=s.join("; ")}},read:function(e){if("undefined"==typeof document)return null;for(var t=document.cookie.split(";"),n=0;n<t.length;n++){var r=t[n].replace(/^\s+/,""),o=r.indexOf("=");if(-1!==o&&r.slice(0,o)===e)try{return decodeURIComponent(r.slice(o+1))}catch(e){return r.slice(o+1)}}return null},remove:function(e){this.write(e,"",Date.now()-864e5,"/")}}:{write:function(){},read:function(){return null},remove:function(){}};var Hi=/^https?:(?!\/\/)/i;function Ui(e){var t,n=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,"$1".concat(zo,"@")),r=n.indexOf("#"),o=(-1===r?n:n.slice(0,r)).replace(/([?&][^=&#]*=)[^&#]*/g,"$1".concat(zo));return-1===r?o:"".concat(o,"#").concat((t=n.slice(r+1))?t.replace(/(^|&)([^=&]*=)?[^&]+/g,(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return"".concat(t).concat(n).concat(zo)})):t)}function ji(e,t){if("string"==typeof e){var n=Ai(e);if(Hi.test(n))throw new Yo("Invalid URL ".concat(JSON.stringify(Ui(n)),': missing "//" after protocol'),Yo.ERR_INVALID_URL,t)}}function zi(e,t,n,r){ji(t,r);var o,i=!("string"==typeof(o=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(o));return e&&(i||!1===n)?(ji(e,r),function(e,t){if(!t)return e;for(var n=e.length;n>0&&47===e.charCodeAt(n-1);)n--;return e.slice(0,n)+"/"+t.replace(/^\/+/,"")}(e,t)):t}var Gi=function(e){return e instanceof jo?i({},e):e};function Ki(e,t){e=e||{},t=t||{};var n=Object.create(null);function r(e,t,n,r){return Lo.isPlainObject(e)&&Lo.isPlainObject(t)?Lo.merge.call({caseless:r},e,t):Lo.isPlainObject(t)?Lo.merge({},t):Lo.isArray(t)?t.slice():t}function o(e,t,n,o){return Lo.isUndefined(t)?Lo.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function a(e,t){if(!Lo.isUndefined(t))return r(void 0,t)}function s(e,t){return Lo.isUndefined(t)?Lo.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function u(n,o,i){return Lo.hasOwnProp(t,i)?r(n,o):Lo.hasOwnProp(e,i)?r(void 0,n):void 0}Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});var c,l={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutErrorMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,allowedSocketPaths:s,responseEncoding:s,validateStatus:u,headers:function(e,t,n){return o(Gi(e),Gi(t),0,!0)}};return Lo.forEach((c=i(i({},e),t),Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(c).concat(Object.getOwnPropertySymbols(c).filter((function(e){return Object.getOwnPropertyDescriptor(c,e).enumerable}))):Object.keys(c)),(function(r){if("__proto__"!==r&&"constructor"!==r&&"prototype"!==r){var i=Lo.hasOwnProp(l,r)?l[r]:o,a=i(Lo.hasOwnProp(e,r)?e[r]:void 0,Lo.hasOwnProp(t,r)?t[r]:void 0,r);Lo.isUndefined(a)&&i!==u||(n[r]=a)}})),Lo.hasOwnProp(t,"validateStatus")&&Lo.isUndefined(t.validateStatus)&&!1===function(n){var r=Lo.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!Lo.isUndefined(r)){if(!Lo.isPlainObject(r))return;if(Lo.hasOwnProp(r,n))return r[n]}var o=Lo.hasOwnProp(e,"transitional")?e.transitional:void 0;if(Lo.isPlainObject(o)&&Lo.hasOwnProp(o,n))return o[n]}("validateStatusUndefinedResolves")&&(Lo.hasOwnProp(e,"validateStatus")?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}var Fi=["content-type","content-length"];var Yi=function(e){var t=Ki({},e),n=function(e){return Lo.hasOwnProp(t,e)?t[e]:void 0},r=n("data"),o=n("withXSRFToken"),i=n("xsrfHeaderName"),a=n("xsrfCookieName"),s=n("headers"),u=n("auth"),c=n("baseURL"),l=n("allowAbsoluteUrls"),h=n("url");if(t.headers=s=jo.from(s),t.url=ni(zi(c,h,l,t),n("params"),n("paramsSerializer")),u){var f=Lo.getSafeProp(u,"username")||"",p=Lo.getSafeProp(u,"password")||"";try{s.set("Authorization","Basic "+btoa(f+":"+(p?encodeURIComponent(p).replace(/%([0-9A-F]{2})/gi,(function(e,t){return String.fromCharCode(parseInt(t,16))})):"")))}catch(t){throw Yo.from(t,Yo.ERR_BAD_OPTION_VALUE,e)}}if(Lo.isFormData(r)){var d=Lo.getSafeProp(r,"getHeaders");mi.hasStandardBrowserEnv||mi.hasStandardBrowserWebWorkerEnv||Lo.isReactNative(r)?s.setContentType(void 0):Lo.isFunction(d)&&function(e,t,n){"content-only"===n?Object.entries(t||{}).forEach((function(t){var n=T(t,2),r=n[0],o=n[1];Fi.includes(r.toLowerCase())&&e.set(r,o)})):e.set(t)}(s,d.call(r),n("formDataHeaderPolicy"))}if(mi.hasStandardBrowserEnv&&(Lo.isFunction(o)&&(o=o(t)),!0===o||null==o&&Mi(t.url))){var g=i&&a&&Di.read(a);g&&s.set(i,g)}return t},qi="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){var r,o,i,a,s,u,c=Yi(e),l=c.data,h=jo.from(c.headers).normalize(),f=c.responseType,p=c.onUploadProgress,d=c.onDownloadProgress;function g(){a&&a(),s&&s(),c.cancelToken&&c.cancelToken.unsubscribe(r),c.signal&&c.signal.removeEventListener("abort",r)}var m=new XMLHttpRequest;function v(r){if(m){if(!(0!==m.status||"file"===(Oi(Ai(c.url))||Oi(mi.origin))||m.responseURL&&m.responseURL.startsWith("file:")))return n(new Yo("Request aborted",Yo.ECONNABORTED,e,m)),g(),void(m=null);try{r?u&&u(r):s&&s()}catch(e){setTimeout((function(){throw e}))}if(m){var o=jo.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Li((function(e){t(e),g()}),(function(e){n(e),g()}),{data:f&&"text"!==f&&"json"!==f?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:o,config:e,request:m}),m=null}}}if(m.open(c.method.toUpperCase(),c.url,!0),m.timeout=c.timeout,"onloadend"in m?m.onloadend=v:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&m.responseURL.startsWith("file:"))&&setTimeout(v)},m.onabort=function(){m&&(n(new Yo("Request aborted",Yo.ECONNABORTED,e,m)),g(),m=null)},m.onerror=function(t){var r=t&&t.message?t.message:"Network Error",o=new Yo(r,Yo.ERR_NETWORK,e,m);o.event=t||null,n(o),g(),m=null},m.ontimeout=function(){var t=c.timeout?"timeout of "+c.timeout+"ms exceeded":"timeout exceeded",r=c.transitional||ci;c.timeoutErrorMessage&&(t=c.timeoutErrorMessage),n(new Yo(t,r.clarifyTimeoutError?Yo.ETIMEDOUT:Yo.ECONNABORTED,e,m)),g(),m=null},void 0===l&&h.setContentType(null),"setRequestHeader"in m&&Lo.forEach(Io(h),(function(e,t){m.setRequestHeader(t,e)})),Lo.isUndefined(c.withCredentials)||(m.withCredentials=!!c.withCredentials),f&&"json"!==f&&(m.responseType=c.responseType),d){var y=xi(d,!0),b=T(y,3);i=b[0],s=b[1],u=b[2],m.addEventListener("progress",i)}if(p&&m.upload){var _=xi(p),E=T(_,2);o=E[0],a=E[1],m.upload.addEventListener("progress",o),m.upload.addEventListener("loadend",a)}(c.cancelToken||c.signal)&&(r=function(t){m&&(n(!t||t.type?new Pi(null,e,m):t),m.abort(),g(),m=null)},c.cancelToken&&c.cancelToken.subscribe(r),c.signal&&(c.signal.aborted?r():c.signal.addEventListener("abort",r)));var w=Oi(c.url);if(w&&!mi.protocols.includes(w))return n(new Yo("Unsupported protocol "+w+":",Yo.ERR_BAD_REQUEST,e)),void g();m.send(l||null)}))},Vi=function(e,t){if(e=e?e.filter(Boolean):[],t||e.length){var n=new AbortController,r=!1,o=function(e){if(!r){r=!0,a();var t=e instanceof Error?e:this.reason;n.abort(t instanceof Yo?t:new Pi(t instanceof Error?t.message:t))}},i=t&&setTimeout((function(){i=null,o(new Yo("timeout of ".concat(t,"ms exceeded"),Yo.ETIMEDOUT))}),t),a=function(){e&&(i&&clearTimeout(i),i=null,e.forEach((function(e){e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)})),e=null)};e.forEach((function(e){r||(e.aborted?o.call(e):e.addEventListener("abort",o,{once:!0}))}));var s=n.signal;return s.unsubscribe=function(){return Lo.asap(a)},s}},Wi=n(101),Xi=n(621),Ji=n(774),Zi=n(164),Qi=t().mark((function e(n,r){var o,i,a;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=n.byteLength,r&&!(o<r)){e.next=5;break}return e.next=4,n;case 4:return e.abrupt("return");case 5:i=0;case 6:if(!(i<o)){e.next=13;break}return a=i+r,e.next=10,n.slice(i,a);case 10:i=a,e.next=6;break;case 13:case"end":return e.stop()}}),e)})),$i=function(){var e=Wi(t().mark((function e(n,r){var o,i,a,s,u,c;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o=!1,i=!1,e.prev=2,s=Zi(ea(n));case 4:return e.next=6,Xi(s.next());case 6:if(!(o=!(u=e.sent).done)){e.next=12;break}return c=u.value,e.delegateYield(Ji(Zi(Qi(c,r)),Xi),"t0",9);case 9:o=!1,e.next=4;break;case 12:e.next=18;break;case 14:e.prev=14,e.t1=e.catch(2),i=!0,a=e.t1;case 18:if(e.prev=18,e.prev=19,!o||null==s.return){e.next=23;break}return e.next=23,Xi(s.return());case 23:if(e.prev=23,!i){e.next=26;break}throw a;case 26:return e.finish(23);case 27:return e.finish(18);case 28:case"end":return e.stop()}}),e,null,[[2,14,18,28],[19,,23,27]])})));return function(t,n){return e.apply(this,arguments)}}(),ea=function(){var e=Wi(t().mark((function e(n){var r,o,i,a;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n[Symbol.asyncIterator]){e.next=3;break}return e.delegateYield(Ji(Zi(n),Xi),"t0",2);case 2:return e.abrupt("return");case 3:r=n.getReader(),e.prev=4;case 5:return e.next=7,Xi(r.read());case 7:if(o=e.sent,i=o.done,a=o.value,!i){e.next=12;break}return e.abrupt("break",16);case 12:return e.next=14,a;case 14:e.next=5;break;case 16:return e.prev=16,e.next=19,Xi(r.cancel());case 19:return e.finish(16);case 20:case"end":return e.stop()}}),e,null,[[4,,16,20]])})));return function(t){return e.apply(this,arguments)}}(),ta=function(e,n,r,o){var i,a=$i(e,n),s=0,u=function(e){i||(i=!0,o&&o(e))};return new ReadableStream({pull:function(e){return c(t().mark((function n(){var o,i,c,l,h;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,a.next();case 3:if(o=t.sent,i=o.done,c=o.value,!i){t.next=10;break}return u(),e.close(),t.abrupt("return");case 10:l=c.byteLength,r&&(h=s+=l,r(h)),e.enqueue(new Uint8Array(c)),t.next=19;break;case 15:throw t.prev=15,t.t0=t.catch(0),u(t.t0),t.t0;case 19:case"end":return t.stop()}}),n,null,[[0,15]])})))()},cancel:function(e){return u(e),a.return()}},{highWaterMark:2})},na=function(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102},ra=function(e,t,n){return t+2<n&&na(e.charCodeAt(t+1))&&na(e.charCodeAt(t+2))},oa=function(e){return e<=57?e-48:(223&e)-55},ia=function(e){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||43===e||47===e||45===e||95===e},aa=function(e){var t=e.length,n=0;return t>0&&61===e.charCodeAt(t-1)&&(n++,t>1&&61===e.charCodeAt(t-2)&&n++),Math.floor(3*(t-n)/4)},sa=function(e){for(var t,n=e.length,r=0,o=0,i=!1,a=0;a<n;a++){var s=e.charCodeAt(a);37===s&&ra(e,a,n)&&(s=16*oa(e.charCodeAt(a+1))+oa(e.charCodeAt(a+2)),a+=2),9!==(t=s)&&10!==t&&12!==t&&13!==t&&32!==t&&(61!==s?!ia(s)||o>0?i=!0:r++:o++)}return i||o>2||o>0&&(r+o)%4!=0||r%4==1?aa(e):function(e){var t=e%4;return 3*Math.floor(e/4)+(2===t?1:3===t?2:0)}(r)},ua=function(e,t){if(!e||"string"!=typeof e)return 0;if(!e.startsWith("data:"))return 0;var n=e.indexOf(",");if(n<0)return 0;var r=e.slice(5,n),o=e.slice(n+1);if(/;base64/i.test(r))return t(o);for(var i=0,a=0,s=o.length;a<s;a++){var u=o.charCodeAt(a);if(37===u&&ra(o,a,s))i+=1,a+=2;else if(u<128)i+=1;else if(u<2048)i+=2;else if(u>=55296&&u<=56319&&a+1<s){var c=o.charCodeAt(a+1);c>=56320&&c<=57343?(i+=4,a++):i+=3}else i+=3}return i};function ca(e){var t="string"==typeof e?e.indexOf("#"):-1;return ua(-1===t?e:e.slice(0,t),sa)}var la="1.20.0",ha={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},fa=Lo.isFunction,pa=function(e){if(!Lo.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},da=function(e){try{for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return!!e.apply(void 0,n)}catch(e){return!1}},ga=function(e){var t=e.indexOf("://"),n=e;return-1!==t&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},ma=function(e){var n=void 0!==Lo.global&&null!==Lo.global?Lo.global:globalThis,r=n.ReadableStream,o=n.TextEncoder,i=e=Lo.merge.call({skipUndefined:!0},{Request:n.Request,Response:n.Response},e),a=i.fetch,s=i.Request,u=i.Response,l=a?fa(a):"function"==typeof fetch,h=fa(s),f=fa(u);if(!l)return!1;var p,d=l&&fa(r),g=l&&("function"==typeof o?(p=new o,function(e){return p.encode(e)}):function(){var e=c(t().mark((function e(n){return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=Uint8Array,e.next=3,new s(n).arrayBuffer();case 3:return e.t1=e.sent,e.abrupt("return",new e.t0(e.t1));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),m=h&&d&&da((function(){var e=!1,t=new s(mi.origin,{body:new r,method:"POST",get duplex(){return e=!0,"half"}}),n=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!n})),v=f&&d&&da((function(){return Lo.isReadableStream(new u("").body)})),y={stream:v&&function(e){return e.body}};l&&["text","arrayBuffer","blob","formData","stream"].forEach((function(e){!y[e]&&(y[e]=function(t,n){var r=t&&t[e];if(r)return r.call(t);throw new Yo("Response type '".concat(e,"' is not supported"),Yo.ERR_NOT_SUPPORT,n)})}));var b=function(){var e=c(t().mark((function e(n){var r;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=n){e.next=2;break}return e.abrupt("return",0);case 2:if(!Lo.isBlob(n)){e.next=4;break}return e.abrupt("return",n.size);case 4:if(!Lo.isSpecCompliantForm(n)){e.next=9;break}return r=new s(mi.origin,{method:"POST",body:n}),e.next=8,r.arrayBuffer();case 8:case 15:return e.abrupt("return",e.sent.byteLength);case 9:if(!Lo.isArrayBufferView(n)&&!Lo.isArrayBuffer(n)){e.next=11;break}return e.abrupt("return",n.byteLength);case 11:if(Lo.isURLSearchParams(n)&&(n+=""),!Lo.isString(n)){e.next=16;break}return e.next=15,g(n);case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),_=function(){var e=c(t().mark((function e(n,r){var o;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=Lo.toFiniteNumber(n.getContentLength()),e.abrupt("return",null==o?b(r):o);case 2:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();return function(){var e=c(t().mark((function e(n){var r,i,c,l,f,p,g,E,w,S,k,P,L,R,A,O,N,I,x,C,B,M,D,H,U,j,z,G,K,F,Y,q,V,W,X,J,Z,Q,$,ee,te,ne,re,oe,ie,ae,se,ue,ce,le,he,fe,pe,de,ge,me,ve,ye,be,_e,Ee,we;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=Yi(n),i=r.url,c=r.method,l=r.data,f=r.signal,p=r.cancelToken,g=r.timeout,E=r.onDownloadProgress,w=r.onUploadProgress,S=r.responseType,k=r.headers,P=r.withCredentials,L=void 0===P?"same-origin":P,R=r.fetchOptions,A=r.maxContentLength,O=r.maxBodyLength,N=r.maxRedirects,I=Lo.isNumber(A)&&A>-1,x=Lo.isNumber(O)&&O>-1,C=function(e){return Lo.hasOwnProp(n,e)?n[e]:void 0},B=a||fetch,S=S?(S+"").toLowerCase():"text",M=Vi([f,p&&p.toAbortSignal()],g),D=null,H=M&&M.unsubscribe&&function(){M.unsubscribe()},j=null,z=function(){return new Yo("Request body larger than maxBodyLength limit",Yo.ERR_BAD_REQUEST,n,D)},e.prev=11,G=void 0,(K=C("auth"))&&(F=Lo.getSafeProp(K,"username")||"",Y=Lo.getSafeProp(K,"password")||"",G={username:F,password:Y}),ga(i)&&(q=new URL(i,mi.origin),G||!q.username&&!q.password||(V=pa(q.username),W=pa(q.password),G={username:V,password:W}),(q.username||q.password)&&(q.username="",q.password="",i=q.href)),G&&(k.delete("authorization"),k.set("Authorization","Basic "+btoa((t=(G.username||"")+":"+(G.password||""),encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(function(e,t){return String.fromCharCode(parseInt(t,16))})))))),!I||"string"!=typeof i||!i.startsWith("data:")){e.next=21;break}if(!(ca(i)>A)){e.next=21;break}throw new Yo("maxContentLength size of "+A+" exceeded",Yo.ERR_BAD_RESPONSE,n,D);case 21:if(!x||"get"===c||"head"===c){e.next=29;break}return e.next=24,b(l);case 24:if("number"!=typeof(X=e.sent)||!isFinite(X)){e.next=29;break}if(U=X,!(X>O)){e.next=29;break}throw z();case 29:if(J=x&&(Lo.isReadableStream(l)||Lo.isStream(l)),Z=function(e,t,n){return ta(e,65536,(function(e){if(x&&e>O)throw j=z();t&&t(e)}),n)},!m||"get"===c||"head"===c||!w&&!J){e.next=43;break}if(null!=U){e.next=38;break}return e.next=35,_(k,l);case 35:e.t0=e.sent,e.next=39;break;case 38:e.t0=U;case 39:(0!==(U=e.t0)||J)&&(Q=new s(i,{method:"POST",body:l,duplex:"half"}),Lo.isFormData(l)&&($=Q.headers.get("content-type"))&&k.setContentType($),Q.body&&(ee=w&&Ci(U,xi(Bi(w)))||[],te=T(ee,2),ne=te[0],re=te[1],l=Z(Q.body,ne,re))),e.next=49;break;case 43:if(!J||h||!d||"get"===c||"head"===c){e.next=47;break}l=Z(l),e.next=49;break;case 47:if(!J||!h||m||"get"===c||"head"===c){e.next=49;break}throw new Yo("Stream request bodies are not supported by the current fetch implementation",Yo.ERR_NOT_SUPPORT,n,D);case 49:return Lo.isString(L)||(L=L?"include":"omit"),oe=h&&"credentials"in s.prototype,Lo.isFormData(l)&&(ie=k.getContentType())&&/^multipart\/form-data/i.test(ie)&&!/boundary=/i.test(ie)&&k.delete("content-type"),k.set("User-Agent","axios/"+la,!1),(ae=null==R?R:Object.assign(Object.create(null),R))&&(delete ae.body,delete ae.headers,delete ae.method,delete ae.signal,delete ae.duplex,delete ae.credentials),se=Object.assign(Object.create(null),ae,{signal:M,method:c.toUpperCase(),headers:Io(k.normalize()),body:l,duplex:"half",credentials:oe?L:void 0}),h&&(Lo.forEach(ha,(function(e,t){void 0===se[t]&&(se[t]=e)})),void 0===se.signal&&(se.signal=null),void 0===se.body&&(se.body=null)),0===N&&(se.redirect="manual",ae&&(ae.redirect="manual")),D=h&&new s(i,se),e.next=61,h?B(D,ae):B(i,se);case 61:if(ue=e.sent,ce=jo.from(ue.headers),!I){e.next=67;break}if(!(null!=(le=Lo.toFiniteNumber(ce.getContentLength()))&&le>A)){e.next=67;break}throw new Yo("maxContentLength size of "+A+" exceeded",Yo.ERR_BAD_RESPONSE,n,D);case 67:return he=v&&("stream"===S||"response"===S),v&&ue.body&&(E||I||he&&H)&&(fe={},["status","statusText","headers"].forEach((function(e){fe[e]=ue[e]})),pe=Lo.toFiniteNumber(ce.getContentLength()),de=E&&Ci(pe,xi(Bi(E),!0))||[],ge=T(de,2),me=ge[0],ve=ge[1],0,ye=function(e){if(I&&e>A)throw new Yo("maxContentLength size of "+A+" exceeded",Yo.ERR_BAD_RESPONSE,n,D);me&&me(e)},ue=new u(ta(ue.body,65536,ye,(function(){ve&&ve(),H&&H()})),fe)),S=S||"text",e.next=72,y[Lo.findKey(y,S)||"text"](ue,n);case 72:if(be=e.sent,!I||v||he){e.next=77;break}if(null!=be&&("number"==typeof be.byteLength?_e=be.byteLength:"number"==typeof be.size?_e=be.size:"string"==typeof be&&(_e="function"==typeof o?(new o).encode(be).byteLength:be.length)),!("number"==typeof _e&&_e>A)){e.next=77;break}throw new Yo("maxContentLength size of "+A+" exceeded",Yo.ERR_BAD_RESPONSE,n,D);case 77:return!he&&H&&H(),e.next=80,new Promise((function(e,t){Li(e,t,{data:be,headers:jo.from(ue.headers),status:ue.status,statusText:ue.statusText,config:n,request:D})}));case 80:return e.abrupt("return",e.sent);case 83:if(e.prev=83,e.t1=e.catch(11),H&&H(),!(M&&M.aborted&&M.reason instanceof Yo)){e.next=92;break}throw(Ee=M.reason).config=n,D&&(Ee.request=D),e.t1!==Ee&&Object.defineProperty(Ee,"cause",{__proto__:null,value:e.t1,writable:!0,enumerable:!1,configurable:!0}),Ee;case 92:if(!j){e.next=95;break}throw D&&!j.request&&(j.request=D),j;case 95:if(!(e.t1 instanceof Yo)){e.next=98;break}throw D&&!e.t1.request&&(e.t1.request=D),e.t1;case 98:if(!e.t1||"TypeError"!==e.t1.name||!/Load failed|fetch/i.test(e.t1.message)){e.next=102;break}throw we=new Yo("Network Error",Yo.ERR_NETWORK,n,D,e.t1&&e.t1.response),Object.defineProperty(we,"cause",{__proto__:null,value:e.t1.cause||e.t1,writable:!0,enumerable:!1,configurable:!0}),we;case 102:throw Yo.from(e.t1,e.t1&&e.t1.code,n,D,e.t1&&e.t1.response);case 103:case"end":return e.stop()}var t}),e,null,[[11,83]])})));return function(t){return e.apply(this,arguments)}}()},va=new Map,ya=function(e){for(var t,n,r=e&&e.env||{},o=r.fetch,i=[r.Request,r.Response,o],a=i.length,s=va;a--;)t=i[a],void 0===(n=s.get(t))&&s.set(t,n=a?new Map:ma(r)),s=n;return n},ba=(ya(),{http:null,xhr:qi,fetch:{get:ya}});Lo.forEach(ba,(function(e,t){if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}}));var _a=function(e){return"- ".concat(e)},Ea=function(e){return Lo.isFunction(e)||null===e||!1===e};var wa={getAdapter:function(e,t){for(var n,r,o=(e=Lo.isArray(e)?e:[e]).length,i={},a=0;a<o;a++){var s=void 0;if(r=n=e[a],!Ea(n)&&void 0===(r=ba[(s=String(n)).toLowerCase()]))throw new Yo("Unknown adapter '".concat(s,"'"));if(r&&(Lo.isFunction(r)||(r=r.get(t))))break;i[s||"#"+a]=r}if(!r){var u=Object.entries(i).map((function(e){var t=T(e,2),n=t[0],r=t[1];return"adapter ".concat(n," ")+(!1===r?"is not supported by the environment":"is not available in the build")})),c=o?u.length>1?"since :\n"+u.map(_a).join("\n"):" "+_a(u[0]):"as no adapter specified";throw new Yo("There is no suitable adapter to dispatch the request "+c,Yo.ERR_NOT_SUPPORT)}return r},adapters:ba};function Sa(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Pi(null,e)}function ka(e){var t=Lo.toSafeFlatObject(e);return Sa(t),t.headers=jo.from(Lo.getSafeProp(t,"headers")),t.data=Si.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),wa.getAdapter(t.adapter||wi.adapter,t)(t).then((function(e){Sa(t),t.response=e;try{e.data=Si.call(t,t.transformResponse,e)}finally{delete t.response}return e.headers=jo.from(e.headers),e}),(function(e){if(!ki(e)&&(Sa(t),e&&e.response)){t.response=e.response;try{e.response.data=Si.call(t,t.transformResponse,e.response)}finally{delete t.response}e.response.headers=jo.from(e.response.headers)}return Promise.reject(e)}))}var Ta={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){Ta[e]=function(n){return P(n)===e||"a"+(t<1?"n ":" ")+e}}));var Pa={};Ta.transitional=function(e,t,n){function r(e,t){return"[Axios v"+la+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,o,i){if(!1===e)throw new Yo(r(o," has been removed"+(t?" in "+t:"")),Yo.ERR_DEPRECATED);return t&&!Pa[o]&&(Pa[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}},Ta.spelling=function(e){return function(t,n){return console.warn("".concat(n," is likely a misspelling of ").concat(e)),!0}};var La={assertOptions:function(e,t,n){if("object"!==P(e)||null===e)throw new Yo("options must be an object",Yo.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],a=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(a){var s=e[i],u=void 0===s||a(s,i,e);if(!0!==u)throw new Yo("option "+i+" must be "+u,Yo.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Yo("Unknown option "+i,Yo.ERR_BAD_OPTION)}},validators:Ta},Ra=La.validators,Aa=function(){function e(t){b(this,e),this.defaults=t||{},this.interceptors={request:new ui,response:new ui}}var n;return _(e,[{key:"request",value:(n=c(t().mark((function e(n,r){var o,i,a,s,u,c,l;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this._request(n,r);case 3:return e.abrupt("return",e.sent);case 6:if(e.prev=6,e.t0=e.catch(0),e.t0 instanceof Error)try{o={},Error.captureStackTrace?Error.captureStackTrace(o):o=new Error,i=o.stack,a="","string"==typeof i&&(s=i.indexOf("\n"),a=-1===s?"":i.slice(s+1)),e.t0.stack?a&&(u=a.indexOf("\n"),c=-1===u?-1:a.indexOf("\n",u+1),l=-1===c?"":a.slice(c+1),String(e.t0.stack).endsWith(l)||(e.t0.stack+="\n"+a)):e.t0.stack=a}catch(e){}throw e.t0;case 10:case"end":return e.stop()}}),e,this,[[0,6]])}))),function(e,t){return n.apply(this,arguments)})},{key:"_request",value:function(e,t){var n=this;"string"==typeof e?(t=t||{}).url=e:t=e||{};var r=t=Ki(this.defaults,t),o=r.transitional,i=r.paramsSerializer,a=r.headers;void 0!==o&&La.assertOptions(o,{silentJSONParsing:Ra.transitional(Ra.boolean),forcedJSONParsing:Ra.transitional(Ra.boolean),clarifyTimeoutError:Ra.transitional(Ra.boolean),legacyInterceptorReqResOrdering:Ra.transitional(Ra.boolean),advertiseZstdAcceptEncoding:Ra.transitional(Ra.boolean),validateStatusUndefinedResolves:Ra.transitional(Ra.boolean)},!1),null!=i&&(Lo.isFunction(i)?t.paramsSerializer={serialize:i}:La.assertOptions(i,{encode:Ra.function,serialize:Ra.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),La.assertOptions(t,{baseUrl:Ra.spelling("baseURL"),withXsrfToken:Ra.spelling("withXSRFToken")},!0),t.method=(Lo.getSafeProp(t,"method")||Lo.getSafeProp(this.defaults,"method")||"get").toLowerCase();var s=a&&Lo.merge(a.common,a[t.method]);a&&Lo.forEach(bi.concat("common"),(function(e){delete a[e]})),t.headers=jo.concat(s,a);var u=[],c=!0;this.interceptors.request.forEach((function(e){if("function"!=typeof e.runWhen||!1!==e.runWhen(t)){c=c&&e.synchronous;var n=t.transitional||ci;n&&n.legacyInterceptorReqResOrdering?u.unshift(e.fulfilled,e.rejected):u.push(e.fulfilled,e.rejected)}}));var l,h=[];this.interceptors.response.forEach((function(e){h.push(e.fulfilled,e.rejected)}));var f,p=0;if(!c){var d=[ka.bind(this),void 0];for(d.unshift.apply(d,u),d.push.apply(d,h),f=d.length,l=Promise.resolve(t);p<f;)l=l.then(d[p++],d[p++]);return l}f=u.length;for(var g=t;p<f;){var m=u[p++],v=u[p++];try{g=m?m(g):g}catch(e){if(!v){l=Promise.reject(e);break}try{var y=v.call(this,e);Lo.isThenable(y)&&(l=Promise.resolve(y).then((function(){return ka.call(n,g)})))}catch(e){l=Promise.reject(e)}break}}if(!l)try{l=ka.call(this,g)}catch(e){l=Promise.reject(e)}for(p=0,f=h.length;p<f;)l=l.then(h[p++],h[p++]);return l}},{key:"getUri",value:function(e){return ni(zi((e=Ki(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}}]),e}();Lo.forEach(["delete","get","head","options"],(function(e){Aa.prototype[e]=function(t,n){return this.request(Ki(n||{},{method:e,url:t,data:n&&Lo.hasOwnProp(n,"data")?n.data:void 0}))}})),Lo.forEach(["post","put","patch","query"],(function(e){function t(t){return function(n,r,o){return this.request(Ki(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Aa.prototype[e]=t(),"query"!==e&&(Aa.prototype[e+"Form"]=t(!0))}));var Oa=Aa,Na=function(){function e(t){if(b(this,e),"function"!=typeof t)throw new TypeError("executor must be a function.");var n;this.promise=new Promise((function(e){n=e}));var r=this;this.promise.then((function(e){if(r._listeners){for(var t=r._listeners.length;t-- >0;)r._listeners[t](e);r._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},t((function(e,t,o){r.reason||(r.reason=new Pi(e,t,o),n(r.reason))}))}return _(e,[{key:"throwIfRequested",value:function(){if(this.reason)throw this.reason}},{key:"subscribe",value:function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}},{key:"unsubscribe",value:function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}}},{key:"toAbortSignal",value:function(){var e=this,t=new AbortController,n=function(e){t.abort(e)};return this.subscribe(n),t.signal.unsubscribe=function(){return e.unsubscribe(n)},t.signal}}],[{key:"source",value:function(){var t,n=new e((function(e){t=e}));return{token:n,cancel:t}}}]),e}(),Ia=Na;var xa={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(xa).forEach((function(e){var t=T(e,2),n=t[0],r=t[1];void 0===xa[r]&&(xa[r]=n)}));var Ca=xa;var Ba=function e(t){var n=new Oa(t),r=kr(Oa.prototype.request,n);return Lo.extend(r,Oa.prototype,n,{allOwnKeys:!0}),Lo.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Ki(t,n))},r}(wi);Ba.Axios=Oa,Ba.CanceledError=Pi,Ba.CancelToken=Ia,Ba.isCancel=ki,Ba.VERSION=la,Ba.toFormData=Jo,Ba.AxiosError=Yo,Ba.Cancel=Ba.CanceledError,Ba.all=function(e){return Promise.all(e)},Ba.spread=function(e){return function(t){return e.apply(null,t)}},Ba.isAxiosError=function(e){return Lo.isObject(e)&&!0===e.isAxiosError},Ba.mergeConfig=Ki,Ba.AxiosHeaders=jo,Ba.formToJSON=function(e){return yi(Lo.isHTMLForm(e)?new FormData(e):e)},Ba.getAdapter=wa.getAdapter,Ba.HttpStatusCode=Ca,Ba.default=Ba;var Ma=Ba,Da=n(34),Ha=function(){try{var e;return(null===(e=navigator)||void 0===e?void 0:e.javaEnabled())||!1}catch(e){}return!1},Ua={local:"http://imgs-63.sggz00b.dev.alipay.net/mgw.htm",dev:"http://imgs-63.sggz00b.dev.alipay.net/mgw.htm",sit:"http://imgs-9.sggz00a.test.alipay.net/mgw.htm",light_sandbox:"https://imgs-sea-global.alipay.com/mgw.htm",pre:"https://imgs-sea-pre.alipay.com/mgw.htm",prod:"https://imgs-sea-global.alipay.com/mgw.htm",sandbox:"https://imgs-sea-global.alipay.com/mgw.htm"},ja="ANTOM_PAYMENT_WEB",za=(function(e){var t={};(e||(e=window.location.href),"undefined"==typeof URL)?e.replace(/([^?=&#]+)(=([^&#]*))?/g,(function(e,n,r,o){return void 0===o?"":(t[n]=decodeURIComponent(o).replace(/\+/g," "),t[n])})):new URL(e).searchParams.forEach((function(e,n){t[n]=e}));return t}()||{}).instanceId;function Ga(){return new Promise((function(e){window&&window.AlipayJSBridge?e():document.addEventListener("AlipayJSBridgeReady",(function(){return e()}),!1)}))}var Ka=function(){function e(t){b(this,e),k(this,"baseUrl",void 0),k(this,"headers",void 0),k(this,"method",void 0),k(this,"timeout",void 0),this.baseUrl=t.baseURL,this.headers=t.headers,this.method=t.method,this.timeout=t.timeout,this.request=this.request.bind(this)}return _(e,[{key:"request",value:function(e){var t=this;return new Promise((function(n,r){var o,a,s={url:e.url?t.baseUrl+e.url:t.baseUrl,method:null!==(o=e.method)&&void 0!==o?o:t.method,headers:i(i({},t.headers),e.headers),timeout:null!==(a=e.timeout)&&void 0!==a?a:t.timeout};e.data&&(s.data=function(e,t){try{var n=new WeakSet;return JSON.stringify(e,(function(e,t){if("object"===P(t)&&null!==t){if(n.has(t))return;n.add(t)}return t}))||t}catch(e){return t}}(e.data,"")),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];return new Promise((function(t){Ga().then((function(){var r;(r=window.AlipayJSBridge).call.apply(r,[e].concat(n,[function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t([].concat(n))}]))}))}))}("httpRequest",i({instanceId:za},s)).then((function(e){var t=Array.isArray(e)?e.length>0?e[0]:null:e;if(!t)return r(new Error("timeout"));if(0!==t.status)return r(new Error("timeout"));var o={status:t.httpCode,data:Sr(t.data),headers:Fa(t.headers)};n(o)}))}))}}]),e}();function Fa(e){if(!e)return e;var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];t[n]=Array.isArray(r)?r.length>0?r[0]:void 0:r}return t}var Ya=function(e){var t=Da(e,"Result-Status")||Da(e,"result-status","");if(!t)return null;if(2e3==+t)return{success:!1,errorCode:hr.API_NOT_LOGIN,errorMessage:ur.get({id:"page.wrong.error.message",defaultMessage:"System error, please retry later"}),resultStatus:t};if(4001==+t)return{success:!1,errorCode:hr.API_GATEWAY_TIMEOUT,errorMessage:ur.get({id:"page.wrong.error.message",defaultMessage:"System error, please retry later"}),resultStatus:t};if(1e3!=+t){var n=Da(e,"Tips")||Da(e,"tips","");return{success:!1,errorCode:hr.API_GATEWAY_ERROR,errorMessage:n?decodeURIComponent(n):ur.get({id:"page.wrong.error.message",defaultMessage:"System error, please retry later"}),resultStatus:t}}return null},qa={};function Va(e,t,n){return Wa.apply(this,arguments)}function Wa(){return(Wa=c(t().mark((function e(n,r,o){var a,s,u,c,l,h,f,p,d,g,m,v,y,b,_,E,w,S,k,T,P,L,R;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s=i(i(i({},qa),o),{},{envInfo:i(i({},qa.envInfo),null==o?void 0:o.envInfo),headers:i(i({},qa.headers),null==o?void 0:o.headers)}),u=dr(s.tracker,s.scope),c=gr(s.tracker,s.scope),s.hostSign){e.next=10;break}e.next=8;break;case 8:console.warn("[Antom SDK] request hostSign is missing, please set hostSign in request options or global options.");case 9:s.hostSign="SG";case 10:return"WAP"===(l=i(i({terminalType:wr?"WAP":"WEB",browserInfo:{browserJavaScriptEnabled:!0,browserJavaEnabled:Ha(),browserLanguage:navigator.language,browserUserAgent:navigator.userAgent,browserColorDepth:screen.colorDepth},deviceLanguage:navigator.language,screenWidth:screen.width,screenHeight:screen.height,timeZoneOffset:(new Date).getTimezoneOffset()},null==s?void 0:s.envInfo),{},{locale:cr((null==s?void 0:s.locale)||(null==s||null===(a=s.envInfo)||void 0===a?void 0:a.locale))})).terminalType&&(l.osType=Er?"IOS":"ANDROID"),h=[i(i({},r),{},{envInfo:l,extParams:i(i({},null==r?void 0:r.extParams),{},{refUrl:window.location.href})})],f=performance.now(),e.prev=14,p=Xa(n,s),e.next=18,p({data:h});case 18:if(d=e.sent,g=d.data,m=d.headers,v=g||{},y=Da(m,"Mgw-TraceId")||Da(m,"mgw-traceid",""),v.traceId=y,!(b=Ya(m))){e.next=29;break}throw _=b.errorMessage,E=b.errorCode,new pr(_,E,"SERVER_API","".concat(y," (").concat(n,")"));case 29:if(v.success){e.next=36;break}throw k=v.errorMessage||v.resultMessage||ur.get({id:"page.wrong.error.message",defaultMessage:"System error, please retry later"}),T=v.errorCode||(null===(w=v.errorContext)||void 0===w||null===(w=w.errorStack)||void 0===w||null===(w=w[0])||void 0===w?void 0:w.errorName)||"API_SYSTEM_ERROR","true"!==(null===(S=v.extendInfo)||void 0===S?void 0:S.mulityLanguageMapping)&&(k=ur.get({id:"server.".concat(T),defaultMessage:ur.get({id:"event.callback.code.${errorCode}",defaultMessage:ur.get({id:"ckp.paymentError.${errorCode}",defaultMessage:ur.get({id:"page.wrong.error.message",defaultMessage:"System error, please retry later"})})})})),(P=new fr(k,T,"SERVER_API","".concat(y," (").concat(n,")"))).response=v,P;case 36:return u.success(n,performance.now()-f,y),e.abrupt("return",v);case 40:if(e.prev=40,e.t0=e.catch(14),!pr.isError(e.t0)){e.next=45;break}return u.error(n,performance.now()-f,e.t0.message,e.t0.code,e.t0.traceId),e.abrupt("return",Promise.reject(e.t0));case 45:return R=e.t0,c(R),e.abrupt("return",Promise.reject(new pr(R.message,null!==(L=R.message)&&void 0!==L&&L.includes("timeout")?"API_TIMEOUT":"API_SYSTEM_ERROR","SYSTEM","WithoutTraceId (".concat(n,")"))));case 48:case"end":return e.stop()}}),e,null,[[14,40]])})))).apply(this,arguments)}function Xa(e,t){var n,r=new Date,o=r.getTime()+60*r.getTimezoneOffset()*1e3,a=(null==t?void 0:t.env)||"prod",s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n={"com.ipay.iexpcashier.sdkAction.query":"com.ipay.iopensandbox.sdk.paymentSession.query"},r="SDK_MOCK_SANDBOX";if(n[e]&&"light_sandbox"===t)return{appId:r,operationType:n[e]}}(e,a),u=(null==t?void 0:t.baseURL)||function(e,t){var n;return"pre"===t||"sandbox"===t&&"pre"===(null===(n=window)||void 0===n||null===(n=n.marmotInjectInfo)||void 0===n||null===(n=n.env)||void 0===n?void 0:n.toLocaleLowerCase())?{SG:"https://imgs-sea-pre.alipay.com/mgw.htm",US:"https://imgs-pre.alipay.com/mgw.htm",DE:"https://imgs-de-pre.alipay.com/mgw.htm",QK:"https://iopengw-qkgz99p.alipay.com/mgw.htm",ID:"https://imgs-id-pre.alipay.com/mgw.htm",SA:"https://imgs-sa-pre.alipay.com/mgw.htm"}[e||"SG"]:"prod"===t||"light_sandbox"===t||"sandbox"===t?{SG:"https://imgs-sea-global.alipay.com/mgw.htm",US:"https://imgs-na-global.alipay.com/mgw.htm",DE:"https://imgs-de-global.alipay.com/mgw.htm",QK:"https://imgs-qk.alipay.com/mgw.htm",ID:"https://imgs-id.alipay.com/mgw.htm",SA:"https://imgs-sa.alipay.com/mgw.htm"}[e||"SG"]:void 0}(null==t?void 0:t.hostSign,a)||Ua[a],c=i(k(k(k(k(k(k(k(k({appId:(null==t?void 0:t.appId)||(null==s?void 0:s.appId)||ja,workspaceId:"pre"===(null==t?void 0:t.env)?"pre":"default"},"x-cors-".concat(ja.toLowerCase(),"-default"),"1"),"version","2.0"),"sofa-group-name",null==t?void 0:t.groupId),"Operation-Type",(null==s?void 0:s.operationType)||e),"Client-Time",o),"tntInstId","ALIPW3SG"),"x-mago-timeout",(null==t?void 0:t.timeout)||15e3),"sdk-version",(null==t?void 0:t.sdkVersion)||"0.0.1788166152-dev.4"),null==t?void 0:t.headers);"dev"!==a&&delete c["sofa-group-name"],"sandbox"===a&&(c["load-test"]=!0,c.sofaPenAttrs="instMock=O&loadMode=2");var l,h=null!==(n=null==t?void 0:t.timeout)&&void 0!==n?n:15e3,f=Object.entries(c).filter((function(e){return void 0!==e[1]&&null!==e[1]&&"object"!==P(e[1])})).reduce((function(e,t){var n=T(t,2),r=n[0],o=n[1];return e[r]=String(o),e}),{}),p={baseURL:u,timeout:h,headers:c},d=null;"app"===qa.appType?d=new Ka({baseURL:u,method:"POST",timeout:h,headers:f}):d=Ma.create(i(i({},p),{},{withCredentials:null===(l=null==t?void 0:t.withCredentials)||void 0===l||l,method:(null==t?void 0:t.method)||"POST"}));return d.request}Va.setGlobalOptions=function(e){Object.assign(qa,e)};"".concat(window.location.origin,"/elements/src/pages");var Ja="com.ipay.iexpfront.preConnection";function Za(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Va(Ja,e,t)}var Qa="DEV";function $a(){var e=window.localStorage.getItem("antom-web-checkout-v2_app_env")||"dev";"pre"!==e&&"local"!==e||"true"!==window.localStorage.getItem("antom-web-checkout-v2_sandbox_enabled")||(e="sandbox");var t=window.localStorage.getItem("antom-web-checkout-v2_base_url")||void 0,n=window.localStorage.getItem("antom-web-checkout-v2_group_id")||void 0,r=JSON.parse(JSON.stringify({baseURL:t,groupId:n,env:e}));return console.log("[getDevReqConfig] dev request config:",r),r}var es=Symbol.for("@antom/web-sdk.gateway-preconnection.v1"),ts=["SG","US","DE"];function ns(){var e,t=globalThis;return null!==(e=t[es])&&void 0!==e||(t[es]={snapshots:new Map,promises:new Map}),t[es]}function rs(e){return 0===e?"completed":e===ts.length?"failed":"partial_failed"}function os(e,t){var n=ns().snapshots.get(e);return n.status=t,n.preconnectionEndTime=us(),as(n),ss(n),Object.assign(n,function(e){if(!e||"undefined"==typeof performance||!performance.getEntriesByType)return{};var t;try{t=new URL(e).origin}catch(e){return{}}var n=performance.getEntriesByType("resource"),r=y()(n).reverse().find((function(e){return e.name.startsWith(t)}));return r?{dnsDurationMs:Math.max(0,r.domainLookupEnd-r.domainLookupStart),tcpDurationMs:Math.max(0,r.connectEnd-r.connectStart),tlsDurationMs:r.secureConnectionStart>0?Math.max(0,r.connectEnd-r.secureConnectionStart):0}:{}}(n.gatewayUrl)),a()({},n)}function is(e,t,n){return Za({},{env:e,hostSign:t,timeout:5e3,withCredentials:!0}).then((function(e){return n.regionResults[t]={status:"completed",endTime:us()},as(n),ss(n),e}),(function(e){throw n.regionResults[t]={status:"failed",endTime:us()},as(n),ss(n),e}))}function as(e){if(e.actualRegion)if("configured"!==e.mode){var t=e.actualRegion,n=e.regionResults[t];e.predictionResult=n?"completed"===n.status?"hit":"miss":void 0}else e.predictionResult="running"===e.status?void 0:"completed"===e.status?"hit":"miss";else e.predictionResult=void 0}function ss(e){var t,n;if(void 0!==e.firstRpcStartTime){var r="configured"===e.mode?"completed"===e.status?e.preconnectionEndTime:void 0:e.actualRegion&&"completed"===(null===(t=e.regionResults[e.actualRegion])||void 0===t?void 0:t.status)?null===(n=e.regionResults[e.actualRegion])||void 0===n?void 0:n.endTime:void 0;if(void 0===r)return e.preconnectionLeadTimeMs=void 0,void(e.preconnectionReadyBeforeFirstRpc=!1);e.preconnectionLeadTimeMs=e.firstRpcStartTime-r,e.preconnectionReadyBeforeFirstRpc=e.preconnectionLeadTimeMs>=0}}function us(){return Date.now()}function cs(e){return"object"===P(e)&&null!==e}function ls(e){return"string"==typeof e&&e.length>0&&e.length<=128}function hs(e){return"number"==typeof e&&Number.isFinite(e)&&e>=0}var fs=Symbol.for("@antintl/opensdk-preload.registry.v1");function ps(){var e,t=globalThis;return null!==(e=t[fs])&&void 0!==e||(t[fs]={controllers:new Map,resources:new Set}),t[fs]}function ds(e){var t=ps();return e.filter((function(e){return!t.resources.has(e)&&(t.resources.add(e),!0)}))}function gs(e){var t=ps();e.forEach((function(e){return t.resources.delete(e)}))}var ms=new Set(["shared","element","deferred"]),vs=new Set(["document","script","style","font","image","other"]);function ys(e){if(!(0===e.length||e.length>2048))try{var t=new URL(e);if("https:"!==t.protocol&&"http:"!==t.protocol)return;if(t.username||t.password)return;return t.hash="",t.href}catch(e){return}}function bs(e){if("object"!==P(e)||null===e)return!1;var t=e;return"string"==typeof t.url&&"string"==typeof t.priority&&ms.has(t.priority)&&"string"==typeof t.type&&vs.has(t.type)&&(void 0===t.owner||"string"==typeof t.owner)}function _s(e){var t,n={deferred:0,element:1,shared:2},r=new Map,o=I(e);try{for(o.s();!(t=o.n()).done;){var a=t.value;if(bs(a)){var s=ys(a.url);if(s){var u=r.get(s);(!u||n[a.priority]>n[u.priority])&&r.set(s,i(i({},a),{},{url:s}))}}}}catch(e){o.e(e)}finally{o.f()}return v(r.values())}function Es(e){var n,r,o,a,s,u,l=!1,h=Promise.resolve(),f=Ps(),p=new URL(e.runnerUrl).origin,d=new Map,g=function(t){var n;s=t,null===(n=e.onStateChange)||void 0===n||n.call(e,i({},t))},m=function(e){var t,r,i,a;e.origin===p&&e.source===(null===(t=n)||void 0===t?void 0:t.contentWindow)&&(cs(a=e.data)&&"OPENSDK_PRELOAD_READY"===a.type&&1===a.protocolVersion&&ls(a.nonce)&&e.data.nonce===f?null===(i=o)||void 0===i||i():function(e){return!!cs(e)&&"OPENSDK_PRELOAD_DONE"===e.type&&1===e.protocolVersion&&ls(e.taskId)&&ls(e.nonce)&&("critical"===e.phase||"deferred"===e.phase)&&hs(e.total)&&hs(e.success)&&hs(e.failed)&&hs(e.duration)}(e.data)&&e.data.nonce===f&&(null===(r=d.get("".concat(e.data.taskId,":").concat(e.data.phase)))||void 0===r||r(e.data)))},v=function(){var i=c(t().mark((function i(){var s,c,l;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(u&&(clearTimeout(u),u=void 0),!r){t.next=3;break}return t.abrupt("return",r);case 3:return r=new Promise((function(e,t){o=e,a=t})),window.addEventListener("message",m),(n=document.createElement("iframe")).setAttribute("aria-hidden","true"),n.tabIndex=-1,n.style.cssText="position:absolute;width:0;height:0;border:0;visibility:hidden;pointer-events:none",(c=new URL(e.runnerUrl)).hash=new URLSearchParams(k({},"opensdkPreloadNonce",f)).toString(),n.src=c.href,n.addEventListener("error",(function(){var e;return null===(e=a)||void 0===e?void 0:e(new Error("Preload runner failed to load"))}),{once:!0}),t.next=15,Ts(n);case 15:return l=setTimeout((function(){var e;return null===(e=a)||void 0===e?void 0:e(new Error("Preload runner ready timeout"))}),null!==(s=e.iframeTimeoutMs)&&void 0!==s?s:5e3),t.prev=16,t.next=19,r;case 19:return t.prev=19,clearTimeout(l),t.finish(19);case 22:case"end":return t.stop()}}),i,null,[[16,,19,22]])})));return function(){return i.apply(this,arguments)}}(),y=function(){var e;u&&clearTimeout(u),u=void 0,"undefined"!=typeof window&&window.removeEventListener("message",m),d.clear(),null===(e=n)||void 0===e||e.remove(),n=void 0,r=void 0,o=void 0,a=void 0},b=function(){var e=c(t().mark((function e(r,o,i){var a,s,u,c;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s="".concat(r,":").concat(o),u=new Promise((function(e){return d.set(s,e)})),c={type:"OPENSDK_PRELOAD_START",protocolVersion:1,taskId:r,nonce:f,phase:o,resources:i},null===(a=n)||void 0===a||null===(a=a.contentWindow)||void 0===a||a.postMessage(c,p),e.prev=4,e.next=7,u;case 7:return e.abrupt("return",e.sent);case 8:return e.prev=8,d.delete(s),e.finish(8);case 11:case"end":return e.stop()}}),e,null,[[4,,8,11]])})));return function(t,n,r){return e.apply(this,arguments)}}(),_=function(){var n=c(t().mark((function n(r){var o,a,s,c,l,h,f,p,d,m,_,E,w,S,k,T;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=Ps(),a=Date.now(),g(s={taskId:o,state:"requested",requestedAt:a}),!(c=Ss())){t.next=9;break}return s=i(i({},s),{},{state:"skipped",completedAt:Date.now(),reason:c}),g(s),t.abrupt("return",s);case 9:if(s=i(i({},s),{},{state:"resolving"}),g(s),l=_s(r.resources),h=ds(l.map((function(e){return e.url}))),f=new Set(h),0!==(p=l.filter((function(e){return f.has(e.url)}))).length){t.next=19;break}return s=i(i({},s),{},{state:"skipped",completedAt:Date.now(),reason:"already_preloaded"}),g(s),t.abrupt("return",s);case 19:return d=p.filter((function(e){return"deferred"!==e.priority})),m=ks(),_="3g"===(null==m?void 0:m.effectiveType)?[]:p.filter((function(e){return"deferred"===e.priority})),t.prev=22,s=i(i({},s),{},{state:"waiting_runner"}),g(s),t.next=27,Ls(v(),null!==(E=e.taskTimeoutMs)&&void 0!==E?E:3e4,"Preload task timeout");case 27:if(!(d.length>0)){t.next=37;break}return s=i(i({},s),{},{state:"running_critical"}),g(s),t.next=32,Ls(b(o,"critical",d),null!==(w=e.taskTimeoutMs)&&void 0!==w?w:3e4,"Critical preload timeout");case 32:S=t.sent,s=i(i({},s),{},{state:"critical_completed",criticalCompletedAt:Date.now(),critical:Rs(S)}),g(s),t.next=39;break;case 37:s=i(i({},s),{},{state:"critical_completed",criticalCompletedAt:Date.now()}),g(s);case 39:if(!(_.length>0)){t.next=48;break}return t.next=42,new Promise((function(e){"requestIdleCallback"in window?window.requestIdleCallback((function(){return e()}),{timeout:1e3}):setTimeout(e,50)}));case 42:return s=i(i({},s),{},{state:"running_deferred"}),g(s),t.next=46,Ls(b(o,"deferred",_),null!==(k=e.taskTimeoutMs)&&void 0!==k?k:3e4,"Deferred preload timeout");case 46:T=t.sent,s=i(i({},s),{},{deferred:Rs(T)});case 48:return s=i(i({},s),{},{state:"completed",completedAt:Date.now()}),g(s),u=setTimeout(y,1e3),t.abrupt("return",s);case 54:return t.prev=54,t.t0=t.catch(22),gs(h),y(),s=i(i({},s),{},{state:"failed",completedAt:Date.now(),reason:t.t0 instanceof Error?t.t0.message:"Unknown preload error"}),g(s),t.abrupt("return",s);case 61:case"end":return t.stop()}}),n,null,[[22,54]])})));return function(e){return n.apply(this,arguments)}}();return{run:function(e){if(l||"undefined"==typeof window||"undefined"==typeof document){var t={taskId:Ps(),state:"skipped",requestedAt:Date.now(),completedAt:Date.now(),reason:l?"destroyed":"ssr"};return g(t),Promise.resolve(t)}var n=h.then((function(){return _(e)}));return h=n.then((function(){}),(function(){})),n},getSnapshot:function(){return s?i({},s):void 0},destroy:function(){l=!0,y()}}}function ws(e){var t=ps(),n="".concat(e.product,"|").concat(new URL(e.runnerUrl).origin),r=t.controllers.get(n);if(r)return r;var o=Es(e);return t.controllers.set(n,o),o}function Ss(){var e=ks();return null!=e&&e.saveData?"save_data":"slow-2g"===(null==e?void 0:e.effectiveType)||"2g"===(null==e?void 0:e.effectiveType)?"slow_network":void 0}function ks(){return navigator.connection}function Ts(e){return document.body?(document.body.appendChild(e),Promise.resolve()):new Promise((function(t){document.addEventListener("DOMContentLoaded",(function(){document.body.appendChild(e),t()}),{once:!0})}))}function Ps(){return"undefined"!=typeof crypto&&"randomUUID"in crypto?crypto.randomUUID():"".concat(Date.now().toString(36),"-").concat(Math.random().toString(36).slice(2))}function Ls(e,t,n){return new Promise((function(r,o){var i=setTimeout((function(){return o(new Error(n))}),t);e.then((function(e){clearTimeout(i),r(e)}),(function(e){clearTimeout(i),o(e)}))}))}function Rs(e){return{total:e.total,success:e.success,failed:e.failed,duration:e.duration}}function As(e){if("object"!==P(e)||null===e)throw new Error("Invalid preload Manifest");var t=e,n=t.offlineResources;if("string"!=typeof t.version||0===t.version.length||"object"!==P(n)||null===n||"force-cache"!==n.cacheControl||!Ns(n.sync)||!Ns(n.async)||"object"!==P(n.elements)||null===n.elements||!Object.values(n.elements).every(Ns))throw new Error("Invalid preload Manifest schema");return t}function Os(e,t){var n,r=As(e),o=r.offlineResources,i=[].concat(v(o.sync),v(o.async),v(Object.values(o.elements).flat()));if(i.length>(null!==(n=t.maxResources)&&void 0!==n?n:200))throw new Error("Preload Manifest resource limit exceeded");if(!i.every((function(e){var n;return function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=ys(e);if(!r)return!1;var o=new URL(r);return(!n||"https:"===o.protocol)&&t.some((function(e){try{var t=new URL(e.origin).origin,n=e.pathnamePrefix.startsWith("/")?e.pathnamePrefix:"/".concat(e.pathnamePrefix);return o.origin===t&&o.pathname.startsWith(n)}catch(e){return!1}}))}(e,t.resourceRules,null===(n=t.requireHttps)||void 0===n||n)})))throw new Error("Preload Manifest contains disallowed resource URL");var a,s=v(new Set(t.elements)),u=o.sync.map((function(e){return{url:e,priority:"shared",type:Is(e)}})),c=I(s);try{var l=function(){var e=a.value,t=o.elements[e];if(!t)throw new Error('Preload Manifest does not contain element "'.concat(e,'"'));u.push.apply(u,v(t.map((function(t){return{url:t,priority:"element",type:Is(t),owner:e}}))))};for(c.s();!(a=c.n()).done;)l()}catch(e){c.e(e)}finally{c.f()}return u.push.apply(u,v(o.async.map((function(e){return{url:e,priority:"deferred",type:Is(e)}})))),{product:t.product,version:r.version,resources:_s(u),metadata:{elementCount:s.length}}}function Ns(e){return Array.isArray(e)&&e.every((function(e){return"string"==typeof e}))}function Is(e){var t=new URL(e).pathname.toLowerCase();return t.endsWith(".html")?"document":t.endsWith(".js")?"script":t.endsWith(".css")?"style":/\.(woff2?|ttf|otf)$/.test(t)?"font":/\.(png|jpe?g|gif|webp|svg|ico|avif)$/.test(t)?"image":"other"}var xs="/elements2/manifest.json";function Cs(){return"undefined"!=typeof window?{manifestOrigin:window.location.origin,runnerUrl:"".concat(window.location.origin,"/elements2/preload/index.html"),requireHttps:!1,resourceRules:[{origin:window.location.origin,pathnamePrefix:"/elements2/"},{origin:"http://page.alipay.net",pathnamePrefix:"/page/antom-web-checkout-v2/elements2/"},{origin:"https://marmot-local-pre.oss-accelerate.aliyuncs.com",pathnamePrefix:"/page/antom-web-checkout-v2/elements2/"},{origin:"https://marmot-local-dev.oss-accelerate.aliyuncs.com",pathnamePrefix:"/page/antom-web-checkout-v2-"}]}:{manifestOrigin:"https://checkout.antom.com",runnerUrl:"https://checkout.antom.com/elements2/preload/index.html",requireHttps:!0,resourceRules:[{origin:"https://checkout.antom.com",pathnamePrefix:"/elements2/"},{origin:"https://cdn.marmot-cloud.com",pathnamePrefix:"/page/antom-web-checkout-v2/elements2/"}]}}var Bs=Symbol.for("@antom/web-sdk.preload-manifest.v2"),Ms=new Set(["payment","express","vaulting","CVV"]);function Ds(e){return Hs.apply(this,arguments)}function Hs(){return(Hs=l()(o()().mark((function e(t){var n,r,i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==(n=y()(new Set(t.elements)).filter((function(e){return Ms.has(e)}))).length){e.next=3;break}throw new Error("No valid Elements2 preload element");case 3:return r=new URL(xs,t.manifestOrigin).href,e.next=6,js(r);case 6:return i=e.sent,e.abrupt("return",Us(i,n,t));case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Us(e,t,n){return Os(e,{product:"antom-elements2",elements:t,resourceRules:n.resourceRules,requireHttps:n.requireHttps})}function js(e){var t,n=globalThis;null!==(t=n[Bs])&&void 0!==t||(n[Bs]=new Map);var r=n[Bs],o=r.get(e);if(o)return o;var i=function(e){return zs.apply(this,arguments)}(e).catch((function(t){throw r.delete(e),t}));return r.set(e,i),i}function zs(){return(zs=l()(o()().mark((function e(t){var n,r,i;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=new AbortController,r=setTimeout((function(){return n.abort()}),5e3),e.prev=2,e.next=5,fetch(t,{mode:"cors",credentials:"omit",cache:"no-cache",redirect:"error",signal:n.signal});case 5:if((i=e.sent).ok&&!i.redirected){e.next=8;break}throw new Error("Manifest request failed: ".concat(i.status));case 8:return e.t0=As,e.next=11,i.json();case 11:return e.t1=e.sent,e.abrupt("return",(0,e.t0)(e.t1));case 13:return e.prev=13,clearTimeout(r),e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[2,,13,16]])})))).apply(this,arguments)}var Gs=Symbol.for("@antom/web-sdk.elements2-preload.v1");function Ks(){var e,t=globalThis;return null!==(e=t[Gs])&&void 0!==e||(t[Gs]={elements:new Set}),t[Gs]}function Fs(){return(Fs=l()(o()().mark((function e(t){var n,r,i,a,s;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("undefined"!=typeof window&&"undefined"!=typeof document&&0!==t.length){e.next=2;break}return e.abrupt("return");case 2:return r=Ks(),null!==(n=r.requestedAt)&&void 0!==n||(r.requestedAt=Date.now()),t.forEach((function(e){return r.elements.add(e)})),r.phase="resolving",i=Cs(),e.prev=7,e.next=10,Ds({elements:t,manifestOrigin:i.manifestOrigin,resourceRules:i.resourceRules,requireHttps:i.requireHttps});case 10:return a=e.sent,s=ws({product:"antom-elements2",runnerUrl:i.runnerUrl,protocolVersion:1,onStateChange:function(e){r.snapshot=e}}),e.next=14,s.run(a);case 14:r.snapshot=e.sent,e.next=21;break;case 17:throw e.prev=17,e.t0=e.catch(7),r.phase="failed",e.t0;case 21:case"end":return e.stop()}}),e,null,[[7,17]])})))).apply(this,arguments)}function Ys(e,t){null!=t&&t.length&&(!function(e){var t=ns(),n=t.promises.get(e);if(n)return n;var r={mode:"regional",preconnectedRegions:ts,failedRegions:[],regionResults:{},status:"running",preconnectionStartTime:us()};t.snapshots.set(e,r);var i=Promise.resolve().then(l()(o()().mark((function t(){var n,i,s,u;return o()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("undefined"!=typeof window&&"undefined"!=typeof navigator&&"undefined"!=typeof screen){t.next=2;break}throw new Error("Gateway preConnection is unavailable outside the browser");case 2:if(n=$a(),!(i=null==n?void 0:n.baseURL)){t.next=11;break}return r.mode="configured",r.preconnectedRegions=[],r.gatewayUrl=i,t.next=10,Za({},a()({env:e,timeout:5e3,withCredentials:!0},n));case 10:return t.abrupt("return",os(e,"completed"));case 11:return t.next=13,Promise.allSettled(ts.map((function(t){return is(e,t,r)})));case 13:return s=t.sent,r.failedRegions=ts.filter((function(e,t){return"rejected"===s[t].status})),u=rs(r.failedRegions.length),t.abrupt("return",os(e,u));case 17:case"end":return t.stop()}}),t)})))).catch((function(){return os(e,"failed")}));t.promises.set(e,i)}(e),function(e){return Fs.apply(this,arguments)}(t).catch((function(){})))}var qs=["env","environment","preload"],Vs={DEV:"https://sdk-dev.marmot-cloud.com/package/ams-checkout/".concat("dev-1788166152","/ams-checkout.js"),LOCAL:"http://localhost:3000/ams-checkout.min.js",PROD:"https://js.antom.com/v2/ams-checkout.js"},Ws=(0,h.createLoader)({sdkURL:Vs[Qa],globalName:"AntomSDK",namespace:"AntomSDK"}),Xs=function(){var e=l()(o()().mark((function e(t){var n,r,i,s,c,l,h;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=(n=t||{}).env,i=n.environment,s=n.preload,c=u()(n,qs),l=r||i||"prod",h=a()(a()({},c),{},{env:l}),e.abrupt("return",g(h,(function(){var e=Ws(h);return Ys(l,null==s?void 0:s.elements),e})));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}(),r}()}));