adminjs
Version:
Admin panel for apps written in node.js
1 lines • 459 kB
JavaScript
var AdminJS=function(e,t,r,n,o,a,i,s){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}function c(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}function u(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(r){if("default"!==r&&!(r in e)){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})}}))})),Object.freeze(e)}var d=l(t),p=l(r),f=c(a),m=l(i),g=l(s),h="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function y(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){if(this instanceof e){var r=[null];return r.push.apply(r,arguments),new(Function.bind.apply(t,r))}return t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}var b={},v={get exports(){return b},set exports(e){b=e}},w={};!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}({get exports(){return w},set exports(e){w=e}}),function(e){var t=w.default;function r(){e.exports=r=function(){return n},e.exports.__esModule=!0,e.exports.default=e.exports;var n={},o=Object.prototype,a=o.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},s="function"==typeof Symbol?Symbol:{},l=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function d(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,r){return e[t]=r}}function p(e,t,r,n){var o=t&&t.prototype instanceof g?t:g,a=Object.create(o.prototype),s=new P(n||[]);return i(a,"_invoke",{value:O(e,r,s)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}n.wrap=p;var m={};function g(){}function h(){}function y(){}var b={};d(b,l,(function(){return this}));var v=Object.getPrototypeOf,w=v&&v(v(R([])));w&&w!==o&&a.call(w,l)&&(b=w);var E=y.prototype=g.prototype=Object.create(b);function x(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,r){function n(o,i,s,l){var c=f(e[o],e,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==t(d)&&a.call(d,"__await")?r.resolve(d.__await).then((function(e){n("next",e,s,l)}),(function(e){n("throw",e,s,l)})):r.resolve(d).then((function(e){u.value=e,s(u)}),(function(e){return n("throw",e,s,l)}))}l(c.arg)}var o;i(this,"_invoke",{value:function(e,t){function a(){return new r((function(r,o){n(e,t,r,o)}))}return o=o?o.then(a,a):a()}})}function O(e,t,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return D()}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var s=A(i,r);if(s){if(s===m)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=f(e,t,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===m)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function A(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,A(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var o=f(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,m;var a=o.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,m):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,m)}function I(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 k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function R(e){if(e){var t=e[l];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r<e.length;)if(a.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return n.next=n}}return{next:D}}function D(){return{value:void 0,done:!0}}return h.prototype=y,i(E,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:h,configurable:!0}),h.displayName=d(y,u,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,d(e,u,"GeneratorFunction")),e.prototype=Object.create(E),e},n.awrap=function(e){return{__await:e}},x(S.prototype),d(S.prototype,c,(function(){return this})),n.AsyncIterator=S,n.async=function(e,t,r,o,a){void 0===a&&(a=Promise);var i=new S(p(e,t,r,o),a);return n.isGeneratorFunction(t)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},x(E),d(E,u,"Generator"),d(E,l,(function(){return this})),d(E,"toString",(function(){return"[object Generator]"})),n.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}},n.values=R,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&a.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},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 t=this;function r(r,n){return i.type="throw",i.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=a.call(o,"catchLoc"),l=a.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.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,m):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),m},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),k(r),m}},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;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:R(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),m}},n}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(v);var E=b(),x=E;try{regeneratorRuntime=E}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=E:Function("r","regeneratorRuntime = r")(E)}function S(e){return S="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},S(e)}function O(e){var t=function(e,t){if("object"!==S(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==S(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===S(t)?t:String(t)}function A(e,t,r){return(t=O(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function I(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var k,P=(k={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0})&&"object"==typeof k&&"default"in k?k.default:k,R=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function D(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},r=e.match(/<\/?([^\s]+?)[/\s>]/);if(r&&(t.name=r[1],(P[r[1]]||"/"===e.charAt(e.length-2))&&(t.voidElement=!0),t.name.startsWith("!--"))){var n=e.indexOf("--\x3e");return{type:"comment",comment:-1!==n?e.slice(4,n):""}}for(var o=new RegExp(R),a=null;null!==(a=o.exec(e));)if(a[0].trim())if(a[1]){var i=a[1].trim(),s=[i,""];i.indexOf("=")>-1&&(s=i.split("=")),t.attrs[s[0]]=s[1],o.lastIndex--}else a[2]&&(t.attrs[a[2]]=a[3].trim().substring(1,a[3].length-1));return t}var j=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,C=/^\s*$/,_=Object.create(null);function N(e,t){switch(t.type){case"text":return e+t.content;case"tag":return e+="<"+t.name+(t.attrs?function(e){var t=[];for(var r in e)t.push(r+'="'+e[r]+'"');return t.length?" "+t.join(" "):""}(t.attrs):"")+(t.voidElement?"/>":">"),t.voidElement?e:e+t.children.reduce(N,"")+"</"+t.name+">";case"comment":return e+"\x3c!--"+t.comment+"--\x3e"}}var B={parse:function(e,t){t||(t={}),t.components||(t.components=_);var r,n=[],o=[],a=-1,i=!1;if(0!==e.indexOf("<")){var s=e.indexOf("<");n.push({type:"text",content:-1===s?e:e.substring(0,s)})}return e.replace(j,(function(s,l){if(i){if(s!=="</"+r.name+">")return;i=!1}var c,u="/"!==s.charAt(1),d=s.startsWith("\x3c!--"),p=l+s.length,f=e.charAt(p);if(d){var m=D(s);return a<0?(n.push(m),n):((c=o[a]).children.push(m),n)}if(u&&(a++,"tag"===(r=D(s)).type&&t.components[r.name]&&(r.type="component",i=!0),r.voidElement||i||!f||"<"===f||r.children.push({type:"text",content:e.slice(p,e.indexOf("<",p))}),0===a&&n.push(r),(c=o[a-1])&&c.children.push(r),o[a]=r),(!u||r.voidElement)&&(a>-1&&(r.voidElement||r.name===s.slice(2,-1))&&(a--,r=-1===a?n:o[a]),!i&&"<"!==f&&f)){c=-1===a?n:o[a].children;var g=e.indexOf("<",p),h=e.slice(p,-1===g?void 0:g);C.test(h)&&(h=" "),(g>-1&&a+c.length>=0||" "!==h)&&c.push({type:"text",content:h})}})),n},stringify:function(e){return e.reduce((function(e,t){return e+N("",t)}),"")}};function T(){if(console&&console.warn){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];"string"==typeof r[0]&&(r[0]="react-i18next:: ".concat(r[0])),(e=console).warn.apply(e,r)}}var L={};function F(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];"string"==typeof t[0]&&L[t[0]]||("string"==typeof t[0]&&(L[t[0]]=new Date),T.apply(void 0,t))}function M(e,t,r){e.loadNamespaces(t,(function(){if(e.isInitialized)r();else{e.on("initialized",(function t(){setTimeout((function(){e.off("initialized",t)}),0),r()}))}}))}var z=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,U={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},G=function(e){return U[e]};function $(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}function W(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$(Object(r),!0).forEach((function(t){A(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var V,H={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:function(e){return e.replace(z,G)}};function q(){return H}function J(){return V}var K=["format"],X=["children","count","parent","i18nKey","context","tOptions","values","defaults","components","ns","i18n","t","shouldUnescape"];function Y(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}function Z(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Y(Object(r),!0).forEach((function(t){A(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Y(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Q(e,t){if(!e)return!1;var r=e.props?e.props.children:e.children;return t?r.length>0:!!r}function ee(e){return e?e.props?e.props.children:e.children:[]}function te(e){return Array.isArray(e)?e:[e]}function re(e,r){if(!e)return"";var n="",o=te(e),a=r.transSupportBasicHtmlNodes&&r.transKeepBasicHtmlNodesFor?r.transKeepBasicHtmlNodesFor:[];return o.forEach((function(e,o){if("string"==typeof e)n+="".concat(e);else if(t.isValidElement(e)){var i=Object.keys(e.props).length,s=a.indexOf(e.type)>-1,l=e.props.children;if(!l&&s&&0===i)n+="<".concat(e.type,"/>");else if(l||s&&0===i)if(e.props.i18nIsDynamicList)n+="<".concat(o,"></").concat(o,">");else if(s&&1===i&&"string"==typeof l)n+="<".concat(e.type,">").concat(l,"</").concat(e.type,">");else{var c=re(l,r);n+="<".concat(o,">").concat(c,"</").concat(o,">")}else n+="<".concat(o,"></").concat(o,">")}else if(null===e)T("Trans: the passed in value is invalid - seems you passed in a null child.");else if("object"===S(e)){var u=e.format,d=I(e,K),p=Object.keys(d);if(1===p.length){var f=u?"".concat(p[0],", ").concat(u):p[0];n+="{{".concat(f,"}}")}else T("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",e)}else T("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",e)})),n}function ne(e,r,n,o,a,i){if(""===r)return[];var s=o.transKeepBasicHtmlNodesFor||[],l=r&&new RegExp(s.join("|")).test(r);if(!e&&!l)return[r];var c={};!function e(r){te(r).forEach((function(r){"string"!=typeof r&&(Q(r)?e(ee(r)):"object"!==S(r)||t.isValidElement(r)||Object.assign(c,r))}))}(e);var u=B.parse("<0>".concat(r,"</0>")),d=Z(Z({},c),a);function p(e,r,n){var o=ee(e),a=m(o,r.children,n);return function(e){return"[object Array]"===Object.prototype.toString.call(e)&&e.every((function(e){return t.isValidElement(e)}))}(o)&&0===a.length?o:a}function f(e,r,n,o,a){e.dummy&&(e.children=r),n.push(t.cloneElement(e,Z(Z({},e.props),{},{key:o}),a?void 0:r))}function m(r,a,c){var u=te(r);return te(a).reduce((function(r,a,g){var h,y,b,v=a.children&&a.children[0]&&a.children[0].content&&n.services.interpolator.interpolate(a.children[0].content,d,n.language);if("tag"===a.type){var w=u[parseInt(a.name,10)];!w&&1===c.length&&c[0][a.name]&&(w=c[0][a.name]),w||(w={});var E=0!==Object.keys(a.attrs).length?(h={props:a.attrs},(b=Z({},y=w)).props=Object.assign(h.props,y.props),b):w,x=t.isValidElement(E),O=x&&Q(a,!0)&&!a.voidElement,A=l&&"object"===S(E)&&E.dummy&&!x,I="object"===S(e)&&null!==e&&Object.hasOwnProperty.call(e,a.name);if("string"==typeof E){var k=n.services.interpolator.interpolate(E,d,n.language);r.push(k)}else if(Q(E)||O){f(E,p(E,a,c),r,g)}else if(A){var P=m(u,a.children,c);r.push(t.cloneElement(E,Z(Z({},E.props),{},{key:g}),P))}else if(Number.isNaN(parseFloat(a.name))){if(I)f(E,p(E,a,c),r,g,a.voidElement);else if(o.transSupportBasicHtmlNodes&&s.indexOf(a.name)>-1)if(a.voidElement)r.push(t.createElement(a.name,{key:"".concat(a.name,"-").concat(g)}));else{var R=m(u,a.children,c);r.push(t.createElement(a.name,{key:"".concat(a.name,"-").concat(g)},R))}else if(a.voidElement)r.push("<".concat(a.name," />"));else{var D=m(u,a.children,c);r.push("<".concat(a.name,">").concat(D,"</").concat(a.name,">"))}}else if("object"!==S(E)||x)1===a.children.length&&v?r.push(t.cloneElement(E,Z(Z({},E.props),{},{key:g}),v)):r.push(t.cloneElement(E,Z(Z({},E.props),{},{key:g})));else{var j=a.children[0]?v:null;j&&r.push(j)}}else if("text"===a.type){var C=o.transWrapTextNodes,_=i?o.unescape(n.services.interpolator.interpolate(a.content,d,n.language)):n.services.interpolator.interpolate(a.content,d,n.language);C?r.push(t.createElement(C,{key:"".concat(a.name,"-").concat(g)},_)):r.push(_)}return r}),[])}return ee(m([{dummy:!0,children:e||[]}],u,te(e||[]))[0])}function oe(e){var r=e.children,n=e.count,o=e.parent,a=e.i18nKey,i=e.context,s=e.tOptions,l=void 0===s?{}:s,c=e.values,u=e.defaults,d=e.components,p=e.ns,f=e.i18n,m=e.t,g=e.shouldUnescape,h=I(e,X),y=f||J();if(!y)return F("You will need to pass in an i18next instance by using i18nextReactModule"),r;var b=m||y.t.bind(y)||function(e){return e};i&&(l.context=i);var v=Z(Z({},q()),y.options&&y.options.react),w=p||b.ns||y.options&&y.options.defaultNS;w="string"==typeof w?[w]:w||["translation"];var E=u||re(r,v)||v.transEmptyNodeValue||a,x=v.hashTransKey,S=a||(x?x(E):E),O=c?l.interpolation:{interpolation:Z(Z({},l.interpolation),{},{prefix:"#$?",suffix:"?$#"})},A=Z(Z(Z(Z({},l),{},{count:n},c),O),{},{defaultValue:E,ns:w}),k=ne(d||r,S?b(S,A):E,y,v,A,g),P=void 0!==o?o:v.defaultTransParent;return P?t.createElement(P,h,k):k}function ae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ie(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,O(n.key),n)}}function se(e,t,r){return t&&ie(e.prototype,t),r&&ie(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var le={type:"3rdParty",init:function(e){!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};H=W(W({},H),e)}(e.options.react),function(e){V=e}(e)}},ce=t.createContext(),ue=function(){function e(){ae(this,e),this.usedNamespaces={}}return se(e,[{key:"addUsedNamespaces",value:function(e){var t=this;e.forEach((function(e){t.usedNamespaces[e]||(t.usedNamespaces[e]=!0)}))}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}(),de=["children","count","parent","i18nKey","context","tOptions","values","defaults","components","ns","i18n","t","shouldUnescape"];function pe(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}function fe(e){var r=e.children,n=e.count,o=e.parent,a=e.i18nKey,i=e.context,s=e.tOptions,l=void 0===s?{}:s,c=e.values,u=e.defaults,d=e.components,p=e.ns,f=e.i18n,m=e.t,g=e.shouldUnescape,h=I(e,de),y=t.useContext(ce)||{},b=y.i18n,v=y.defaultNS,w=f||b||J(),E=m||w&&w.t.bind(w);return oe(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?pe(Object(r),!0).forEach((function(t){A(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({children:r,count:n,parent:o,i18nKey:a,context:i,tOptions:l,values:c,defaults:u,components:d,ns:p||E&&E.ns||v||w&&w.options&&w.options.defaultNS,i18n:w,t:m,shouldUnescape:g},h))}function me(e){if(Array.isArray(e))return e}function ge(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}function he(e,t){if(e){if("string"==typeof e)return ge(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)?ge(e,t):void 0}}function ye(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function be(e,t){return me(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||he(e,t)||ye()}function ve(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}function we(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ve(Object(r),!0).forEach((function(t){A(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ve(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ee(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.i18n,o=t.useContext(ce)||{},a=o.i18n,i=o.defaultNS,s=n||a||J();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new ue),!s){F("You will need to pass in an i18next instance by using initReactI18next");var l=function(e,t){return"string"==typeof t?t:t&&"object"===S(t)&&"string"==typeof t.defaultValue?t.defaultValue:Array.isArray(e)?e[e.length-1]:e},c=[l,{},!1];return c.t=l,c.i18n={},c.ready=!1,c}s.options.react&&void 0!==s.options.react.wait&&F("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var u=we(we(we({},q()),s.options.react),r),d=u.useSuspense,p=u.keyPrefix,f=e||i||s.options&&s.options.defaultNS;f="string"==typeof f?[f]:f||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(f);var m=(s.isInitialized||s.initializedStoreOnce)&&f.every((function(e){return function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.languages&&t.languages.length?void 0!==t.options.ignoreJSONStructure?t.hasLoadedNamespace(e,{precheck:function(t,n){if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!n(t.isLanguageChangingTo,e))return!1}}):function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=t.languages[0],o=!!t.options&&t.options.fallbackLng,a=t.languages[t.languages.length-1];if("cimode"===n.toLowerCase())return!0;var i=function(e,r){var n=t.services.backendConnector.state["".concat(e,"|").concat(r)];return-1===n||2===n};return!(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!i(t.isLanguageChangingTo,e)||!t.hasResourceBundle(n,e)&&t.services.backendConnector.backend&&(!t.options.resources||t.options.partialBundledLanguages)&&(!i(n,e)||o&&!i(a,e)))}(e,t,r):(F("i18n.languages were undefined or empty",t.languages),!0)}(e,s,u)}));function g(){return s.getFixedT(null,"fallback"===u.nsMode?f:f[0],p)}var h,y,b,v=be(t.useState(g),2),w=v[0],E=v[1],x=f.join(),O=(h=x,b=t.useRef(),t.useEffect((function(){b.current=y?b.current:h}),[h,y]),b.current),A=t.useRef(!0);t.useEffect((function(){var e=u.bindI18n,t=u.bindI18nStore;function r(){A.current&&E(g)}return A.current=!0,m||d||M(s,f,(function(){A.current&&E(g)})),m&&O&&O!==x&&A.current&&E(g),e&&s&&s.on(e,r),t&&s&&s.store.on(t,r),function(){A.current=!1,e&&s&&e.split(" ").forEach((function(e){return s.off(e,r)})),t&&s&&t.split(" ").forEach((function(e){return s.store.off(e,r)}))}}),[s,x]);var I=t.useRef(!0);t.useEffect((function(){A.current&&!I.current&&E(g),I.current=!1}),[s,p]);var k=[w,s,m];if(k.t=w,k.i18n=s,k.ready=m,m)return k;if(!m&&!d)return k;throw new Promise((function(e){M(s,f,(function(){e()}))}))}function xe(e){var r=e.i18n,n=e.defaultNS,o=e.children,a=t.useMemo((function(){return{i18n:r,defaultNS:n}}),[r,n]);return t.createElement(ce.Provider,{value:a},o)}let Se={};try{Se=window}catch(e){if("window is not defined"!==e.message)throw e}const Oe=new Date;class Ae{constructor({options:e}={}){let t=Ae.getPaths(e);t=t||{rootPath:"/admin"},this.options=t}static getPaths(e){return e||Se.REDUX_STATE?.paths}urlBuilder(e=[],t=""){const r="/",n=new RegExp(`${r}{1,}`,"g");let{rootPath:o}=this.options;o.startsWith(r)||(o=`${r}${o}`);return`${[o,...e].join(r).replace(n,r)}${t}`}loginUrl(){return this.options.loginPath}logoutUrl(){return this.options.logoutPath}dashboardUrl(){return this.options.rootPath}pageUrl(e){return this.urlBuilder(["pages",e])}editUrl(e,t,r){return this.recordActionUrl({resourceId:e,recordId:t,actionName:"edit",search:r})}showUrl(e,t,r){return this.recordActionUrl({resourceId:e,recordId:t,actionName:"show",search:r})}deleteUrl(e,t,r){return this.recordActionUrl({resourceId:e,recordId:t,actionName:"delete",search:r})}newUrl(e,t){return this.resourceActionUrl({resourceId:e,actionName:"new",search:t})}listUrl(e,t){return this.resourceActionUrl({resourceId:e,actionName:"list",search:t})}bulkDeleteUrl(e,t,r){return this.bulkActionUrl({resourceId:e,recordIds:t,actionName:"bulkDelete",search:r})}resourceActionUrl({resourceId:e,actionName:t,search:r}){return this.urlBuilder(["resources",e,"actions",t],r)}resourceUrl({resourceId:e,search:t}){return this.urlBuilder(["resources",e],t)}recordActionUrl({resourceId:e,recordId:t,actionName:r,search:n}){return this.urlBuilder(["resources",e,"records",t,r],n)}bulkActionUrl({resourceId:e,recordIds:t,actionName:r,search:n}){const o=this.urlBuilder(["resources",e,"bulk",r]);if(t&&t.length){const e=new URLSearchParams(n);return e.set("recordIds",t.join(",")),`${o}?${e.toString()}`}return`${o}${n||""}`}assetPath(e,t){if(this.options.assetsCDN){return`${new URL(t?.coreScripts?.[e]??e,this.options.assetsCDN).href}?date=${Oe.getTime()}`}return this.urlBuilder(["frontend","assets",e])}}var Ie=Re;function ke(e){return e&&e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function Pe(e){return e}function Re(e,t){const r=(t=t||{}).delimiter||".",n=t.maxDepth,o=t.transformKey||Pe,a={};return function e(i,s,l){l=l||1,Object.keys(i).forEach((function(c){const u=i[c],d=t.safe&&Array.isArray(u),p=Object.prototype.toString.call(u),f=ke(u),m="[object Object]"===p||"[object Array]"===p,g=s?s+r+o(c):o(c);if(!d&&!f&&m&&Object.keys(u).length&&(!t.maxDepth||l<n))return e(u,g,l+1);a[g]=u}))}(e),a}Re.flatten=Re,Re.unflatten=function e(t,r){const n=(r=r||{}).delimiter||".",o=r.overwrite||!1,a=r.transformKey||Pe,i={};if(ke(t)||"[object Object]"!==Object.prototype.toString.call(t))return t;function s(e){const t=Number(e);return isNaN(t)||-1!==e.indexOf(".")||r.object?e:t}return t=Object.keys(t).reduce((function(e,o){const a=Object.prototype.toString.call(t[o]);return!("[object Object]"===a||"[object Array]"===a)||function(e){const t=Object.prototype.toString.call(e),r="[object Array]"===t,n="[object Object]"===t;if(!e)return!0;if(r)return!e.length;if(n)return!Object.keys(e).length}(t[o])?(e[o]=t[o],e):function(e,t,r){return Object.keys(r).reduce((function(t,o){return t[e+n+o]=r[o],t}),t)}(o,e,Re(t[o],r))}),{}),Object.keys(t).forEach((function(l){const c=l.split(n).map(a);let u=s(c.shift()),d=s(c[0]),p=i;for(;void 0!==d;){if("__proto__"===u)return;const e=Object.prototype.toString.call(p[u]),t="[object Object]"===e||"[object Array]"===e;if(!o&&!t&&void 0!==p[u])return;(o&&!t||!o&&null==p[u])&&(p[u]="number"!=typeof d||r.object?{}:[]),p=p[u],c.length>0&&(u=s(c.shift()),d=s(c[0]))}p[u]=e(t[l],r)})),i};const De=".",je=(e,t)=>{const r=new RegExp(`\\${De}`,"g"),n=`\\${De}`,o=`(${n}|${n}\\d+${n})`,a=t?.includeAllSiblings?e.replace(r,o):e.replace(r,n);return new RegExp(`^${a}($|${n})`,"")},Ce=(e,t,r)=>(Array.isArray(t)?t:[t]).filter((e=>!!e)).reduce(((t,n)=>{const o=je(n,r);return{...t,...Object.keys(e).filter((e=>e.match(o))).reduce(((t,r)=>(t[r]=e[r],t)),{})}}),{}),_e=(e,t)=>(Array.isArray(t)?t:[t]).filter((e=>!!e)).reduce(((t,r)=>{const n=je(r);return Object.keys(t).filter((e=>!e.match(n))).reduce(((t,r)=>(t[r]=e[r],t)),{})}),e),Ne=(e,t={})=>{let r=e.split(".");return t.skipArrayIndexes&&(r=r.filter((e=>isNaN(+e)))),r.reduce(((e,t)=>e.length?[...e,[e[e.length-1],t].join(".")]:[t]),[])},Be=(e={},t,r)=>{const n=je(t),o=Object.keys(e).filter((e=>!e.match(n))).reduce(((t,r)=>(t[r]=e[r],t)),{});if(void 0!==r){if(!(e=>"undefined"==typeof File?"object"==typeof e&&null!==e:"object"==typeof e&&!(e instanceof File)&&null!==e)(r)||r instanceof Date)o[t]=r;else{const e=Ie.flatten(r);Object.keys(e).length?Object.keys(e).forEach((r=>{o[`${t}${De}${r}`]=e[r]})):Array.isArray(r)?o[t]=[]:o[t]={}}const e=Ne(t).slice(0,-1);if(e.length)return Object.keys(o).filter((t=>!e.includes(t))).reduce(((e,t)=>(e[t]=o[t],e)),{})}return o},Te="TEMP_HOLDING_KEY",Le=(e={},t,r)=>{if(!t)return Ie.unflatten(e);if(Object.keys(e).find((e=>e===t)))return e[t];const n=je(t,r),o=Ce(e,t,r),a=Object.keys(o).reduce(((e,t,a)=>{let i=t.replace(n,`${Te}${De}`);return r?.includeAllSiblings&&(i=i.replace(new RegExp(`${Te}\\${De}(\\d*)`),`${Te}${De}${a}`)),e[i]=o[t],e}),{});return Object.keys(a).length?Ie.unflatten(a)[Te]:void 0},Fe={flatten:Ie.flatten,unflatten:Ie.unflatten,set:Be,get:Le,selectParams:Ce,filterOutParams:_e,removePath:(e,t)=>{let r=_e(e,t);const n=Ne(t).reverse();return n.find(((t,o)=>{const a=Le(e,t);if(Array.isArray(a)){const i=n[o-1].split(De),s=i[i.length-1];return a.splice(+s,1),r=Be(e,t,a),!0}return!1})),r},DELIMITER:De,pathToParts:Ne,merge:(e={},...t)=>{const r=Ie.flatten(e);return t.reverse().reduce(((e,t)=>Object.keys(t).reduce(((e,r)=>Be(e,r,t[r])),e)),r)}};var Me,ze="undefined"!=typeof Symbol&&Symbol,Ue=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0},Ge=Array.prototype.slice,$e=Object.prototype.toString,We=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==$e.call(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var r,n=Ge.call(arguments,1),o=Math.max(0,t.length-n.length),a=[],i=0;i<o;i++)a.push("$"+i);if(r=Function("binder","return function ("+a.join(",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof r){var o=t.apply(this,n.concat(Ge.call(arguments)));return Object(o)===o?o:this}return t.apply(e,n.concat(Ge.call(arguments)))})),t.prototype){var s=function(){};s.prototype=t.prototype,r.prototype=new s,s.prototype=null}return r},Ve=Function.prototype.bind||We,He=Ve.call(Function.call,Object.prototype.hasOwnProperty),qe=SyntaxError,Je=Function,Ke=TypeError,Xe=function(e){try{return Je('"use strict"; return ('+e+").constructor;")()}catch(e){}},Ye=Object.getOwnPropertyDescriptor;if(Ye)try{Ye({},"")}catch(k){Ye=null}var Ze=function(){throw new Ke},Qe=Ye?function(){try{return Ze}catch(e){try{return Ye(arguments,"callee").get}catch(e){return Ze}}}():Ze,et="function"==typeof ze&&"function"==typeof Symbol&&"symbol"==typeof ze("foo")&&"symbol"==typeof Symbol("bar")&&Ue(),tt=Object.getPrototypeOf||function(e){return e.__proto__},rt={},nt="undefined"==typeof Uint8Array?Me:tt(Uint8Array),ot={"%AggregateError%":"undefined"==typeof AggregateError?Me:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?Me:ArrayBuffer,"%ArrayIteratorPrototype%":et?tt([][Symbol.iterator]()):Me,"%AsyncFromSyncIteratorPrototype%":Me,"%AsyncFunction%":rt,"%AsyncGenerator%":rt,"%AsyncGeneratorFunction%":rt,"%AsyncIteratorPrototype%":rt,"%Atomics%":"undefined"==typeof Atomics?Me:Atomics,"%BigInt%":"undefined"==typeof BigInt?Me:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?Me:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?Me:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?Me:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?Me:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?Me:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?Me:FinalizationRegistry,"%Function%":Je,"%GeneratorFunction%":rt,"%Int8Array%":"undefined"==typeof Int8Array?Me:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?Me:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?Me:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":et?tt(tt([][Symbol.iterator]())):Me,"%JSON%":"object"==typeof JSON?JSON:Me,"%Map%":"undefined"==typeof Map?Me:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&et?tt((new Map)[Symbol.iterator]()):Me,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?Me:Promise,"%Proxy%":"undefined"==typeof Proxy?Me:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?Me:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?Me:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&et?tt((new Set)[Symbol.iterator]()):Me,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?Me:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":et?tt(""[Symbol.iterator]()):Me,"%Symbol%":et?Symbol:Me,"%SyntaxError%":qe,"%ThrowTypeError%":Qe,"%TypedArray%":nt,"%TypeError%":Ke,"%Uint8Array%":"undefined"==typeof Uint8Array?Me:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?Me:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?Me:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?Me:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?Me:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?Me:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?Me:WeakSet};try{null.error}catch(k){var at=tt(tt(k));ot["%Error.prototype%"]=at}var it=function e(t){var r;if("%AsyncFunction%"===t)r=Xe("async function () {}");else if("%GeneratorFunction%"===t)r=Xe("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=Xe("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&(r=tt(o.prototype))}return ot[t]=r,r},st={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},lt=Ve,ct=He,ut=lt.call(Function.call,Array.prototype.concat),dt=lt.call(Function.apply,Array.prototype.splice),pt=lt.call(Function.call,String.prototype.replace),ft=lt.call(Function.call,String.prototype.slice),mt=lt.call(Function.call,RegExp.prototype.exec),gt=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ht=/\\(\\)?/g,yt=function(e,t){var r,n=e;if(ct(st,n)&&(n="%"+(r=st[n])[0]+"%"),ct(ot,n)){var o=ot[n];if(o===rt&&(o=it(n)),void 0===o&&!t)throw new Ke("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new qe("intrinsic "+e+" does not exist!")},bt=function(e,t){if("string"!=typeof e||0===e.length)throw new Ke("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new Ke('"allowMissing" argument must be a boolean');if(null===mt(/^%?[^%]*%?$/,e))throw new qe("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=ft(e,0,1),r=ft(e,-1);if("%"===t&&"%"!==r)throw new qe("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new qe("invalid intrinsic syntax, expected opening `%`");var n=[];return pt(e,gt,(function(e,t,r,o){n[n.length]=r?pt(o,ht,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",o=yt("%"+n+"%",t),a=o.name,i=o.value,s=!1,l=o.alias;l&&(n=l[0],dt(r,ut([0,1],l)));for(var c=1,u=!0;c<r.length;c+=1){var d=r[c],p=ft(d,0,1),f=ft(d,-1);if(('"'===p||"'"===p||"`"===p||'"'===f||"'"===f||"`"===f)&&p!==f)throw new qe("property names with quotes must have matching quotes");if("constructor"!==d&&u||(s=!0),ct(ot,a="%"+(n+="."+d)+"%"))i=ot[a];else if(null!=i){if(!(d in i)){if(!t)throw new Ke("base intrinsic for "+e+" exists, but the property is not available.");return}if(Ye&&c+1>=r.length){var m=Ye(i,d);i=(u=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:i[d]}else u=ct(i,d),i=i[d];u&&!s&&(ot[a]=i)}}return i},vt={};!function(e){var t=Ve,r=bt,n=r("%Function.prototype.apply%"),o=r("%Function.prototype.call%"),a=r("%Reflect.apply%",!0)||t.call(o,n),i=r("%Object.getOwnPropertyDescriptor%",!0),s=r("%Object.defineProperty%",!0),l=r("%Math.max%");if(s)try{s({},"a",{value:1})}catch(e){s=null}e.exports=function(e){var r=a(t,o,arguments);i&&s&&(i(r,"length").configurable&&s(r,"length",{value:1+l(0,e.length-(arguments.length-1))}));return r};var c=function(){return a(t,n,arguments)};s?s(e.exports,"apply",{value:c}):e.exports.apply=c}({get exports(){return vt},set exports(e){vt=e}});var wt=bt,Et=vt,xt=Et(wt("String.prototype.indexOf")),St=y(Object.freeze({__proto__:null,default:{}})),Ot="function"==typeof Map&&Map.prototype,At=Object.getOwnPropertyDescriptor&&Ot?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,It=Ot&&At&&"function"==typeof At.get?At.get:null,kt=Ot&&Map.prototype.forEach,Pt="function"==typeof Set&&Set.prototype,Rt=Object.getOwnPropertyDescriptor&&Pt?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Dt=Pt&&Rt&&"function"==typeof Rt.get?Rt.get:null,jt=Pt&&Set.prototype.forEach,Ct="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,_t="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,Nt="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,Bt=Boolean.prototype.valueOf,Tt=Object.prototype.toString,Lt=Function.prototype.toString,Ft=String.prototype.match,Mt=String.prototype.slice,zt=String.prototype.replace,Ut=String.prototype.toUpperCase,Gt=String.prototype.toLowerCase,$t=RegExp.prototype.test,Wt=Array.prototype.concat,Vt=Array.prototype.join,Ht=Array.prototype.slice,qt=Math.floor,Jt="function"==typeof BigInt?BigInt.prototype.valueOf:null,Kt=Object.getOwnPropertySymbols,Xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,Yt="function"==typeof Symbol&&"object"==typeof Symbol.iterator,Zt="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Yt||"symbol")?Symbol.toStringTag:null,Qt=Object.prototype.propertyIsEnumerable,er=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function tr(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||$t.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-qt(-e):qt(e);if(n!==e){var o=String(n),a=Mt.call(t,o.length+1);return zt.call(o,r,"$&_")+"."+zt.call(zt.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return zt.call(t,r,"$&_")}var rr=St,nr=rr.custom,or=cr(nr)?nr:null;function ar(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function ir(e){return zt.call(String(e),/"/g,""")}function sr(e){return!("[object Array]"!==pr(e)||Zt&&"object"==typeof e&&Zt in e)}function lr(e){return!("[object RegExp]"!==pr(e)||Zt&&"object"==typeof e&&Zt in e)}function cr(e){if(Yt)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!Xt)return!1;try{return Xt.call(e),!0}catch(e){}return!1}var ur=Object.prototype.hasOwnProperty||function(e){return e in this};function dr(e,t){return ur.call(e,t)}function pr(e){return Tt.call(e)}function fr(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function mr(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return mr(Mt.call(e,0,t.maxStringLength),t)+n}return ar(zt.call(zt.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,gr),"single",t)}function gr(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+Ut.call(t.toString(16))}function hr(e){return"Object("+e+")"}function yr(e){return e+" { ? }"}function br(e,t,r,n){return e+" ("+t+") {"+(n?vr(r,n):Vt.call(r,", "))+"}"}function vr(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+Vt.call(e,","+r)+"\n"+t.prev}function wr(e,t){var r=sr(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=dr(e,o)?t(e[o],e):""}var a,i="function"==typeof Kt?Kt(e):[];if(Yt){a={};for(var s=0;s<i.length;s++)a["$"+i[s]]=i[s]}for(var l in e)dr(e,l)&&(r&&String(Number(l))===l&&l<e.length||Yt&&a["$"+l]instanceof Symbol||($t.call(/[^\w$]/,l)?n.push(t(l,e)+": "+t(e[l],e)):n.push(l+": "+t(e[l],e))));if("function"==typeof Kt)for(var c=0;c<i.length;c++)Qt.call(e,i[c])&&n.push("["+t(i[c])+"]: "+t(e[i[c]],e));return n}var Er=bt,xr=function(e,t){var r=wt(e,!!t);return"function"==typeof r&&xt(e,".prototype.")>-1?Et(r):r},Sr=function e(t,r,n,o){var a=r||{};if(dr(a,"quoteStyle")&&"single"!==a.quoteStyle&&"double"!==a.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(dr(a,"maxStringLength")&&("number"==typeof a.maxStringLength?a.maxStringLength<0&&a.maxStringLength!==1/0:null!==a.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=!dr(a,"customInspect")||a.customInspect;if("boolean"!=typeof i&&"symbol"!==i)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(dr(a,"indent")&&null!==a.indent&&"\t"!==a.indent&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(dr(a,"numericSeparator")&&"boolean"!=typeof a.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=a.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return mr(t,a);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var l=String(t);return s?tr(t,l):l}if("bigint"==typeof t){var c=String(t)+"n";return s?tr(t,c):c}var u=void 0===a.depth?5:a.depth;if(void 0===n&&(n=0),n>=u&&u>0&&"object"==typeof t)return sr(t)?"[Array]":"[Object]";var d=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=Vt.call(Array(e.indent+1)," ")}return{base:r,prev:Vt.call(Array(t+1),r)}}(a,n);if(void 0===o)o=[];else if(fr(o,t)>=0)return"[Circular]";function p(t,r,i){if(r&&(o=Ht.call(o)).push(r),i){var s={depth:a.depth};return dr(a,"quoteStyle")&&(s.quoteStyle=a.quoteStyle),e(t,s,n+1,o)}return e(t,a,n+1,o)}if("function"==typeof t&&!lr(t)){var f=function(e){if(e.name)return e.name;var t=Ft.call(Lt.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),m=wr(t,p);return"[Function"+(f?": "+f:" (anonymous)")+"]"+(m.length>0?" { "+Vt.call(m,", ")+" }":"")}if(cr(t)){var g=Yt?zt.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Xt.call(t);return"object"!=typeof t||Yt?g:hr(g)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var h="<"+Gt.call(String(t.nodeName)),y=t.attributes||[],b=0;b<y.length;b++)h+=" "+y[b].name+"="+ar(ir(y[b].value),"double",a);return h+=">",t.childNodes&&t.childNodes.length&&(h+="..."),h+="</"+Gt.call(String(t.nodeName))+">"}if(sr(t)){if(0===t.length)return"[]";var v=wr(t,p);return d&&!function(e){for(var t=0;t<e.length;t++)if(fr(e[t],"\n")>=0)return!1;return!0}(v)?"["+vr(v,d)+"]":"[ "+Vt.call(v,", ")+" ]"}if(function(e){return!("[object Error]"!==pr(e)||Zt&&"object"==typeof e&&Zt in e)}(t)){var w=wr(t,p);return"cause"in Error.prototype||!("cause"in t)||Qt.call(t,"cause")?0===w.length?"["+String(t)+"]":"{ ["+String(t)+"] "+Vt.call(w,", ")+" }":"{ ["+String(t)+"] "+Vt.call(Wt.call("[cause]: "+p(t.cause),w),", ")+" }"}if("object"==typeof t&&i){if(or&&"function"==typeof t[or]&&rr)return rr(t,{depth:u-n});if("symbol"!==i&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!It||!e||"object"!=typeof e)return!1;try{It.call(e);try{Dt.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var E=[];return kt&&kt.call(t,(function(e,r){E.push(p(r,t,!0)+" => "+p(e,t))})),br("Map",It.call(t),E,d)}if(function(e){if(!Dt||!e||"object"!=typeof e)return!1;try{Dt.call(e);try{It.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var x=[];return jt&&jt.call(t,(function(e){x.push(p(e,t))})),br("Set",Dt.call(t),x,d)}if(function(e){if(!Ct||!e||"object"!=typeof e)return!1;try{Ct.call(e,Ct);try{_t.call(e,_t)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return yr("WeakMap");if(function(e){if(!_t||!e||"object"!=typeof e)return!1;try{_t.call(e,_t);try{Ct.call(e,Ct)}