UNPKG

adminjs

Version:
5 lines 692 kB
var AdminJS=function(le,O,W,K,G,m,s3,W1){"use strict";function gn(e){return e&&e.__esModule?e:{default:e}}function J6(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if(r!=="default"){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 X6(e,t){return t.forEach(function(r){r&&typeof r!="string"&&!Array.isArray(r)&&Object.keys(r).forEach(function(n){if(n!=="default"&&!(n in e)){var o=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:function(){return r[n]}})}})}),Object.freeze(e)}var f=gn(O),Y6=gn(W),Cr=J6(m),l3=gn(s3),mn=gn(W1);function ce(e){"@babel/helpers - typeof";return ce=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ce(e)}function Q6(e,t){if(ce(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ce(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function c3(e){var t=Q6(e,"string");return ce(t)==="symbol"?t:String(t)}function Ee(e,t,r){return t=c3(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function e9(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a<n.length;a++)o=n[a],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function Z1(e,t){if(e==null)return{};var r=e9(e,t),n,o;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)&&(r[n]=e[n])}return r}var tt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Re(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function t9(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var r9={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},gr,n9=(gr=r9)&&typeof gr=="object"&&"default"in gr?gr.default:gr,o9=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function u3(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},r=e.match(/<\/?([^\s]+?)[/\s>]/);if(r&&(t.name=r[1],(n9[r[1]]||e.charAt(e.length-2)==="/")&&(t.voidElement=!0),t.name.startsWith("!--"))){var n=e.indexOf("-->");return{type:"comment",comment:n!==-1?e.slice(4,n):""}}for(var o=new RegExp(o9),a=null;(a=o.exec(e))!==null;)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 a9=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,i9=/^\s*$/,s9=Object.create(null);function d3(e,t){switch(t.type){case"text":return e+t.content;case"tag":return e+="<"+t.name+(t.attrs?function(r){var n=[];for(var o in r)n.push(o+'="'+r[o]+'"');return n.length?" "+n.join(" "):""}(t.attrs):"")+(t.voidElement?"/>":">"),t.voidElement?e:e+t.children.reduce(d3,"")+"</"+t.name+">";case"comment":return e+"<!--"+t.comment+"-->"}}var l9={parse:function(e,t){t||(t={}),t.components||(t.components=s9);var r,n=[],o=[],a=-1,i=!1;if(e.indexOf("<")!==0){var s=e.indexOf("<");n.push({type:"text",content:s===-1?e:e.substring(0,s)})}return e.replace(a9,function(l,c){if(i){if(l!=="</"+r.name+">")return;i=!1}var d,u=l.charAt(1)!=="/",p=l.startsWith("<!--"),C=c+l.length,g=e.charAt(C);if(p){var v=u3(l);return a<0?(n.push(v),n):((d=o[a]).children.push(v),n)}if(u&&(a++,(r=u3(l)).type==="tag"&&t.components[r.name]&&(r.type="component",i=!0),r.voidElement||i||!g||g==="<"||r.children.push({type:"text",content:e.slice(C,e.indexOf("<",C))}),a===0&&n.push(r),(d=o[a-1])&&d.children.push(r),o[a]=r),(!u||r.voidElement)&&(a>-1&&(r.voidElement||r.name===l.slice(2,-1))&&(a--,r=a===-1?n:o[a]),!i&&g!=="<"&&g)){d=a===-1?n:o[a].children;var h=e.indexOf("<",C),b=e.slice(C,h===-1?void 0:h);i9.test(b)&&(b=" "),(h>-1&&a+d.length>=0||b!==" ")&&d.push({type:"text",content:b})}}),n},stringify:function(e){return e.reduce(function(t,r){return t+d3("",r)},"")}},c9=Re(l9);function hn(){if(console&&console.warn){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];typeof r[0]=="string"&&(r[0]="react-i18next:: ".concat(r[0])),(e=console).warn.apply(e,r)}}var f3={};function vn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];typeof t[0]=="string"&&f3[t[0]]||(typeof t[0]=="string"&&(f3[t[0]]=new Date),hn.apply(void 0,t))}function p3(e,t,r){e.loadNamespaces(t,function(){if(e.isInitialized)r();else{var n=function o(){setTimeout(function(){e.off("initialized",o)},0),r()};e.on("initialized",n)}})}function u9(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=t.languages[0],o=t.options?t.options.fallbackLng:!1,a=t.languages[t.languages.length-1];if(n.toLowerCase()==="cimode")return!0;var i=function(l,c){var d=t.services.backendConnector.state["".concat(l,"|").concat(c)];return d===-1||d===2};return r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!i(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(n,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||i(n,e)&&(!o||i(a,e)))}function d9(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!t.languages||!t.languages.length)return vn("i18n.languages were undefined or empty",t.languages),!0;var n=t.options.ignoreJSONStructure!==void 0;return n?t.hasLoadedNamespace(e,{precheck:function(a,i){if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&a.services.backendConnector.backend&&a.isLanguageChangingTo&&!i(a.isLanguageChangingTo,e))return!1}}):u9(e,t,r)}var f9=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,p9={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"\xA9","&#169;":"\xA9","&reg;":"\xAE","&#174;":"\xAE","&hellip;":"\u2026","&#8230;":"\u2026","&#x2F;":"/","&#47;":"/"},C9=function(t){return p9[t]},g9=function(t){return t.replace(f9,C9)};function C3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function g3(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?C3(Object(r),!0).forEach(function(n){Ee(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):C3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var q1={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:g9};function m9(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};q1=g3(g3({},q1),e)}function m3(){return q1}var h3;function h9(e){h3=e}function K1(){return h3}var v9=["format"],b9=["children","count","parent","i18nKey","context","tOptions","values","defaults","components","ns","i18n","t","shouldUnescape"];function v3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function te(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?v3(Object(r),!0).forEach(function(n){Ee(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function J1(e,t){if(!e)return!1;var r=e.props?e.props.children:e.children;return t?r.length>0:!!r}function X1(e){return e?e.props?e.props.children:e.children:[]}function y9(e){return Object.prototype.toString.call(e)!=="[object Array]"?!1:e.every(function(t){return O.isValidElement(t)})}function mr(e){return Array.isArray(e)?e:[e]}function w9(e,t){var r=te({},t);return r.props=Object.assign(e.props,t.props),r}function b3(e,t){if(!e)return"";var r="",n=mr(e),o=t.transSupportBasicHtmlNodes&&t.transKeepBasicHtmlNodesFor?t.transKeepBasicHtmlNodesFor:[];return n.forEach(function(a,i){if(typeof a=="string")r+="".concat(a);else if(O.isValidElement(a)){var s=Object.keys(a.props).length,l=o.indexOf(a.type)>-1,c=a.props.children;if(!c&&l&&s===0)r+="<".concat(a.type,"/>");else if(!c&&(!l||s!==0))r+="<".concat(i,"></").concat(i,">");else if(a.props.i18nIsDynamicList)r+="<".concat(i,"></").concat(i,">");else if(l&&s===1&&typeof c=="string")r+="<".concat(a.type,">").concat(c,"</").concat(a.type,">");else{var d=b3(c,t);r+="<".concat(i,">").concat(d,"</").concat(i,">")}}else if(a===null)hn("Trans: the passed in value is invalid - seems you passed in a null child.");else if(ce(a)==="object"){var u=a.format,p=Z1(a,v9),C=Object.keys(p);if(C.length===1){var g=u?"".concat(C[0],", ").concat(u):C[0];r+="{{".concat(g,"}}")}else hn("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",a)}else hn("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}}.",a)}),r}function E9(e,t,r,n,o,a){if(t==="")return[];var i=n.transKeepBasicHtmlNodesFor||[],s=t&&new RegExp(i.join("|")).test(t);if(!e&&!s)return[t];var l={};function c(h){var b=mr(h);b.forEach(function(y){typeof y!="string"&&(J1(y)?c(X1(y)):ce(y)==="object"&&!O.isValidElement(y)&&Object.assign(l,y))})}c(e);var d=c9.parse("<0>".concat(t,"</0>")),u=te(te({},l),o);function p(h,b,y){var E=X1(h),x=g(E,b.children,y);return y9(E)&&x.length===0?E:x}function C(h,b,y,E,x){h.dummy&&(h.children=b),y.push(O.cloneElement(h,te(te({},h.props),{},{key:E}),x?void 0:b))}function g(h,b,y){var E=mr(h),x=mr(b);return x.reduce(function(A,S,P){var _=S.children&&S.children[0]&&S.children[0].content&&r.services.interpolator.interpolate(S.children[0].content,u,r.language);if(S.type==="tag"){var B=E[parseInt(S.name,10)];!B&&y.length===1&&y[0][S.name]&&(B=y[0][S.name]),B||(B={});var D=Object.keys(S.attrs).length!==0?w9({props:S.attrs},B):B,M=O.isValidElement(D),F=M&&J1(S,!0)&&!S.voidElement,X=s&&ce(D)==="object"&&D.dummy&&!M,w=ce(e)==="object"&&e!==null&&Object.hasOwnProperty.call(e,S.name);if(typeof D=="string"){var R=r.services.interpolator.interpolate(D,u,r.language);A.push(R)}else if(J1(D)||F){var k=p(D,S,y);C(D,k,A,P)}else if(X){var q=g(E,S.children,y);A.push(O.cloneElement(D,te(te({},D.props),{},{key:P}),q))}else if(Number.isNaN(parseFloat(S.name)))if(w){var Y=p(D,S,y);C(D,Y,A,P,S.voidElement)}else if(n.transSupportBasicHtmlNodes&&i.indexOf(S.name)>-1)if(S.voidElement)A.push(O.createElement(S.name,{key:"".concat(S.name,"-").concat(P)}));else{var H=g(E,S.children,y);A.push(O.createElement(S.name,{key:"".concat(S.name,"-").concat(P)},H))}else if(S.voidElement)A.push("<".concat(S.name," />"));else{var mt=g(E,S.children,y);A.push("<".concat(S.name,">").concat(mt,"</").concat(S.name,">"))}else if(ce(D)==="object"&&!M){var ve=S.children[0]?_:null;ve&&A.push(ve)}else S.children.length===1&&_?A.push(O.cloneElement(D,te(te({},D.props),{},{key:P}),_)):A.push(O.cloneElement(D,te(te({},D.props),{},{key:P})))}else if(S.type==="text"){var ht=n.transWrapTextNodes,G1=a?n.unescape(r.services.interpolator.interpolate(S.content,u,r.language)):r.services.interpolator.interpolate(S.content,u,r.language);ht?A.push(O.createElement(ht,{key:"".concat(S.name,"-").concat(P)},G1)):A.push(G1)}return A},[])}var v=g([{dummy:!0,children:e||[]}],d,mr(e||[]));return X1(v[0])}function x9(e){var t=e.children,r=e.count,n=e.parent,o=e.i18nKey,a=e.context,i=e.tOptions,s=i===void 0?{}:i,l=e.values,c=e.defaults,d=e.components,u=e.ns,p=e.i18n,C=e.t,g=e.shouldUnescape,v=Z1(e,b9),h=p||K1();if(!h)return vn("You will need to pass in an i18next instance by using i18nextReactModule"),t;var b=C||h.t.bind(h)||function(F){return F};a&&(s.context=a);var y=te(te({},m3()),h.options&&h.options.react),E=u||b.ns||h.options&&h.options.defaultNS;E=typeof E=="string"?[E]:E||["translation"];var x=c||b3(t,y)||y.transEmptyNodeValue||o,A=y.hashTransKey,S=o||(A?A(x):x),P=l?s.interpolation:{interpolation:te(te({},s.interpolation),{},{prefix:"#$?",suffix:"?$#"})},_=te(te(te(te({},s),{},{count:r},l),P),{},{defaultValue:x,ns:E}),B=S?b(S,_):x,D=E9(d||t,B,h,y,_,g),M=n!==void 0?n:y.defaultTransParent;return M?O.createElement(M,v,D):D}function xe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y3(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,c3(n.key),n)}}function Oe(e,t,r){return t&&y3(e.prototype,t),r&&y3(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var O9={type:"3rdParty",init:function(t){m9(t.options.react),h9(t)}},Y1=O.createContext(),S9=function(){function e(){xe(this,e),this.usedNamespaces={}}return Oe(e,[{key:"addUsedNamespaces",value:function(r){var n=this;r.forEach(function(o){n.usedNamespaces[o]||(n.usedNamespaces[o]=!0)})}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}(),A9=["children","count","parent","i18nKey","context","tOptions","values","defaults","components","ns","i18n","t","shouldUnescape"];function w3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function L9(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?w3(Object(r),!0).forEach(function(n){Ee(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Q1(e){var t=e.children,r=e.count,n=e.parent,o=e.i18nKey,a=e.context,i=e.tOptions,s=i===void 0?{}:i,l=e.values,c=e.defaults,d=e.components,u=e.ns,p=e.i18n,C=e.t,g=e.shouldUnescape,v=Z1(e,A9),h=O.useContext(Y1)||{},b=h.i18n,y=h.defaultNS,E=p||b||K1(),x=C||E&&E.t.bind(E);return x9(L9({children:t,count:r,parent:n,i18nKey:o,context:a,tOptions:s,values:l,defaults:c,components:d,ns:u||x&&x.ns||y||E&&E.options&&E.options.defaultNS,i18n:E,t:C,shouldUnescape:g},v))}function E3(e){if(Array.isArray(e))return e}function P9(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,a,i,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t===0){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(d){c=!0,o=d}finally{try{if(!l&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}function x3(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function O3(e,t){if(e){if(typeof e=="string")return x3(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return x3(e,t)}}function S3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function I9(e,t){return E3(e)||P9(e,t)||O3(e,t)||S3()}function A3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function eo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?A3(Object(r),!0).forEach(function(n){Ee(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var _9=function(t,r){var n=O.useRef();return O.useEffect(function(){n.current=r?n.current:t},[t,r]),n.current};function R9(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.i18n,n=O.useContext(Y1)||{},o=n.i18n,a=n.defaultNS,i=r||o||K1();if(i&&!i.reportNamespaces&&(i.reportNamespaces=new S9),!i){vn("You will need to pass in an i18next instance by using initReactI18next");var s=function(B,D){return typeof D=="string"?D:D&&ce(D)==="object"&&typeof D.defaultValue=="string"?D.defaultValue:Array.isArray(B)?B[B.length-1]:B},l=[s,{},!1];return l.t=s,l.i18n={},l.ready=!1,l}i.options.react&&i.options.react.wait!==void 0&&vn("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var c=eo(eo(eo({},m3()),i.options.react),t),d=c.useSuspense,u=c.keyPrefix,p=e||a||i.options&&i.options.defaultNS;p=typeof p=="string"?[p]:p||["translation"],i.reportNamespaces.addUsedNamespaces&&i.reportNamespaces.addUsedNamespaces(p);var C=(i.isInitialized||i.initializedStoreOnce)&&p.every(function(_){return d9(_,i,c)});function g(){return i.getFixedT(null,c.nsMode==="fallback"?p:p[0],u)}var v=O.useState(g),h=I9(v,2),b=h[0],y=h[1],E=p.join(),x=_9(E),A=O.useRef(!0);O.useEffect(function(){var _=c.bindI18n,B=c.bindI18nStore;A.current=!0,!C&&!d&&p3(i,p,function(){A.current&&y(g)}),C&&x&&x!==E&&A.current&&y(g);function D(){A.current&&y(g)}return _&&i&&i.on(_,D),B&&i&&i.store.on(B,D),function(){A.current=!1,_&&i&&_.split(" ").forEach(function(M){return i.off(M,D)}),B&&i&&B.split(" ").forEach(function(M){return i.store.off(M,D)})}},[i,E]);var S=O.useRef(!0);O.useEffect(function(){A.current&&!S.current&&y(g),S.current=!1},[i,u]);var P=[b,i,C];if(P.t=b,P.i18n=i,P.ready=C,C||!C&&!d)return P;throw new Promise(function(_){p3(i,p,function(){_()})})}function L3(e){var t=e.i18n,r=e.defaultNS,n=e.children,o=O.useMemo(function(){return{i18n:t,defaultNS:r}},[t,r]);return O.createElement(Y1.Provider,{value:o},n)}let bn={};try{bn=window}catch(e){if(!(e instanceof ReferenceError))throw e}finally{bn||(bn={})}const T9=new Date;class Te{constructor({options:t}={}){let r=Te.getPaths(t);r=r||{rootPath:"/admin"},this.options=r}static getPaths(t){return t||bn.REDUX_STATE?.paths}urlBuilder(t=[],r=""){const n="/",o=new RegExp(`${n}{1,}`,"g");let{rootPath:a}=this.options;return a.startsWith(n)||(a=`${n}${a}`),`${[a,...t].join(n).replace(o,n)}${r}`}loginUrl(){return this.options.loginPath}logoutUrl(){return this.options.logoutPath}dashboardUrl(){return this.options.rootPath}pageUrl(t){return this.urlBuilder(["pages",t])}editUrl(t,r,n){return this.recordActionUrl({resourceId:t,recordId:r,actionName:"edit",search:n})}showUrl(t,r,n){return this.recordActionUrl({resourceId:t,recordId:r,actionName:"show",search:n})}deleteUrl(t,r,n){return this.recordActionUrl({resourceId:t,recordId:r,actionName:"delete",search:n})}newUrl(t,r){return this.resourceActionUrl({resourceId:t,actionName:"new",search:r})}listUrl(t,r){return this.resourceActionUrl({resourceId:t,actionName:"list",search:r})}bulkDeleteUrl(t,r,n){return this.bulkActionUrl({resourceId:t,recordIds:r,actionName:"bulkDelete",search:n})}resourceActionUrl({resourceId:t,actionName:r,search:n}){return this.urlBuilder(["resources",t,"actions",r],n)}resourceUrl({resourceId:t,search:r}){return this.urlBuilder(["resources",t],r)}recordActionUrl({resourceId:t,recordId:r,actionName:n,search:o}){return this.urlBuilder(["resources",t,"records",r,n],o)}bulkActionUrl({resourceId:t,recordIds:r,actionName:n,search:o}){const a=this.urlBuilder(["resources",t,"bulk",n]);if(r&&r.length){const i=new URLSearchParams(o);return i.set("recordIds",r.join(",")),`${a}?${i.toString()}`}return`${a}${o||""}`}assetPath(t,r){if(this.options.assetsCDN){const n=r?.coreScripts?.[t]??t;return`${new URL(n,this.options.assetsCDN).href}?date=${T9.getTime()}`}return this.urlBuilder(["frontend","assets",t])}}var N9=hr;hr.flatten=hr,hr.unflatten=_3;function P3(e){return e&&e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function I3(e){return e}function hr(e,t){t=t||{};const r=t.delimiter||".",n=t.maxDepth,o=t.transformKey||I3,a={};function i(s,l,c){c=c||1,Object.keys(s).forEach(function(d){const u=s[d],p=t.safe&&Array.isArray(u),C=Object.prototype.toString.call(u),g=P3(u),v=C==="[object Object]"||C==="[object Array]",h=l?l+r+o(d):o(d);if(!p&&!g&&v&&Object.keys(u).length&&(!t.maxDepth||c<n))return i(u,h,c+1);a[h]=u})}return i(e),a}function _3(e,t){t=t||{};const r=t.delimiter||".",n=t.overwrite||!1,o=t.transformKey||I3,a={};if(P3(e)||Object.prototype.toString.call(e)!=="[object Object]")return e;function s(d){const u=Number(d);return isNaN(u)||d.indexOf(".")!==-1||t.object?d:u}function l(d,u,p){return Object.keys(p).reduce(function(C,g){return C[d+r+g]=p[g],C},u)}function c(d){const u=Object.prototype.toString.call(d),p=u==="[object Array]",C=u==="[object Object]";if(d){if(p)return!d.length;if(C)return!Object.keys(d).length}else return!0}return e=Object.keys(e).reduce(function(d,u){const p=Object.prototype.toString.call(e[u]);return!(p==="[object Object]"||p==="[object Array]")||c(e[u])?(d[u]=e[u],d):l(u,d,hr(e[u],t))},{}),Object.keys(e).forEach(function(d){const u=d.split(r).map(o);let p=s(u.shift()),C=s(u[0]),g=a;for(;C!==void 0;){if(p==="__proto__")return;const v=Object.prototype.toString.call(g[p]),h=v==="[object Object]"||v==="[object Array]";if(!n&&!h&&typeof g[p]<"u")return;(n&&!h||!n&&g[p]==null)&&(g[p]=typeof C=="number"&&!t.object?[]:{}),g=g[p],u.length>0&&(p=s(u.shift()),C=s(u[0]))}g[p]=_3(e[d],t)}),a}var Tt=Re(N9);const Ne=".",yn=(e,t)=>{const r=new RegExp(`\\${Ne}`,"g"),n=`\\${Ne}`,o=`(${n}|${n}\\d+${n})`,a=t?.includeAllSiblings?e.replace(r,o):e.replace(r,n);return new RegExp(`^${a}($|${n})`,"")},R3=(e,t,r)=>(Array.isArray(t)?t:[t]).filter(a=>!!a).reduce((a,i)=>{const s=yn(i,r),l=Object.keys(e).filter(c=>c.match(s)).reduce((c,d)=>(c[d]=e[d],c),{});return{...a,...l}},{}),T3=(e,t)=>(Array.isArray(t)?t:[t]).filter(n=>!!n).reduce((n,o)=>{const a=yn(o);return Object.keys(n).filter(i=>!i.match(a)).reduce((i,s)=>(i[s]=e[s],i),{})},e),to=(e,t={})=>{let r=e.split(".");return t.skipArrayIndexes&&(r=r.filter(n=>isNaN(+n))),r.reduce((n,o)=>n.length?[...n,[n[n.length-1],o].join(".")]:[o],[])},D9=e=>typeof File>"u"?typeof e=="object"&&e!==null:typeof e=="object"&&!(e instanceof File)&&e!==null,ro=(e={},t,r)=>{const n=yn(t),o=Object.keys(e).filter(a=>!a.match(n)).reduce((a,i)=>(a[i]=e[i],a),{});if(typeof r<"u"){if(D9(r)&&!(r instanceof Date)){const i=Tt.flatten(r);Object.keys(i).length?Object.keys(i).forEach(s=>{o[`${t}${Ne}${s}`]=i[s]}):Array.isArray(r)?o[t]=[]:o[t]={}}else o[t]=r;const a=to(t).slice(0,-1);if(a.length)return Object.keys(o).filter(i=>!a.includes(i)).reduce((i,s)=>(i[s]=o[s],i),{})}return o},wn="TEMP_HOLDING_KEY",N3=(e={},t,r)=>{if(!t)return Tt.unflatten(e);if(Object.keys(e).find(i=>i===t))return e[t];const n=yn(t,r),o=R3(e,t,r),a=Object.keys(o).reduce((i,s,l)=>{let c=s.replace(n,`${wn}${Ne}`);return r?.includeAllSiblings&&(c=c.replace(new RegExp(`${wn}\\${Ne}(\\d*)`),`${wn}${Ne}${l}`)),i[c]=o[s],i},{});if(Object.keys(a).length)return Tt.unflatten(a)[wn]},$9=(e={},...t)=>{const r=Tt.flatten(e);return t.reverse().reduce((n,o)=>Object.keys(o).reduce((a,i)=>ro(a,i,o[i]),n),r)},B9=(e,t)=>{let r=T3(e,t);const n=to(t).reverse();return n.find((o,a)=>{const i=N3(e,o);if(Array.isArray(i)){const s=n[a-1].split(Ne),l=s[s.length-1];return i.splice(+l,1),r=ro(e,o,i),!0}return!1}),r},re={flatten:Tt.flatten,unflatten:Tt.unflatten,set:ro,get:N3,selectParams:R3,filterOutParams:T3,removePath:B9,DELIMITER:Ne,pathToParts:to,merge:$9};var M9=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;t[r]=o;for(r in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var i=Object.getOwnPropertyDescriptor(t,r);if(i.value!==o||i.enumerable!==!0)return!1}return!0},D3=typeof Symbol<"u"&&Symbol,k9=M9,F9=function(){return typeof D3!="function"||typeof Symbol!="function"||typeof D3("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:k9()},j9="Function.prototype.bind called on incompatible ",no=Array.prototype.slice,U9=Object.prototype.toString,z9="[object Function]",H9=function(t){var r=this;if(typeof r!="function"||U9.call(r)!==z9)throw new TypeError(j9+r);for(var n=no.call(arguments,1),o,a=function(){if(this instanceof o){var d=r.apply(this,n.concat(no.call(arguments)));return Object(d)===d?d:this}else return r.apply(t,n.concat(no.call(arguments)))},i=Math.max(0,r.length-n.length),s=[],l=0;l<i;l++)s.push("$"+l);if(o=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this,arguments); }")(a),r.prototype){var c=function(){};c.prototype=r.prototype,o.prototype=new c,c.prototype=null}return o},G9=H9,oo=Function.prototype.bind||G9,V9=oo,W9=V9.call(Function.call,Object.prototype.hasOwnProperty),j,Nt=SyntaxError,$3=Function,Dt=TypeError,ao=function(e){try{return $3('"use strict"; return ('+e+").constructor;")()}catch{}},vt=Object.getOwnPropertyDescriptor;if(vt)try{vt({},"")}catch{vt=null}var io=function(){throw new Dt},Z9=vt?function(){try{return arguments.callee,io}catch{try{return vt(arguments,"callee").get}catch{return io}}}():io,$t=F9(),Me=Object.getPrototypeOf||function(e){return e.__proto__},Bt={},q9=typeof Uint8Array>"u"?j:Me(Uint8Array),bt={"%AggregateError%":typeof AggregateError>"u"?j:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?j:ArrayBuffer,"%ArrayIteratorPrototype%":$t?Me([][Symbol.iterator]()):j,"%AsyncFromSyncIteratorPrototype%":j,"%AsyncFunction%":Bt,"%AsyncGenerator%":Bt,"%AsyncGeneratorFunction%":Bt,"%AsyncIteratorPrototype%":Bt,"%Atomics%":typeof Atomics>"u"?j:Atomics,"%BigInt%":typeof BigInt>"u"?j:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?j:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?j:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?j:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?j:Float32Array,"%Float64Array%":typeof Float64Array>"u"?j:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?j:FinalizationRegistry,"%Function%":$3,"%GeneratorFunction%":Bt,"%Int8Array%":typeof Int8Array>"u"?j:Int8Array,"%Int16Array%":typeof Int16Array>"u"?j:Int16Array,"%Int32Array%":typeof Int32Array>"u"?j:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":$t?Me(Me([][Symbol.iterator]())):j,"%JSON%":typeof JSON=="object"?JSON:j,"%Map%":typeof Map>"u"?j:Map,"%MapIteratorPrototype%":typeof Map>"u"||!$t?j:Me(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?j:Promise,"%Proxy%":typeof Proxy>"u"?j:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?j:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?j:Set,"%SetIteratorPrototype%":typeof Set>"u"||!$t?j:Me(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?j:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":$t?Me(""[Symbol.iterator]()):j,"%Symbol%":$t?Symbol:j,"%SyntaxError%":Nt,"%ThrowTypeError%":Z9,"%TypedArray%":q9,"%TypeError%":Dt,"%Uint8Array%":typeof Uint8Array>"u"?j:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?j:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?j:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?j:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?j:WeakMap,"%WeakRef%":typeof WeakRef>"u"?j:WeakRef,"%WeakSet%":typeof WeakSet>"u"?j:WeakSet};try{null.error}catch(e){var K9=Me(Me(e));bt["%Error.prototype%"]=K9}var J9=function e(t){var r;if(t==="%AsyncFunction%")r=ao("async function () {}");else if(t==="%GeneratorFunction%")r=ao("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=ao("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&(r=Me(o.prototype))}return bt[t]=r,r},B3={"%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"]},vr=oo,En=W9,X9=vr.call(Function.call,Array.prototype.concat),Y9=vr.call(Function.apply,Array.prototype.splice),M3=vr.call(Function.call,String.prototype.replace),xn=vr.call(Function.call,String.prototype.slice),Q9=vr.call(Function.call,RegExp.prototype.exec),e7=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,t7=/\\(\\)?/g,r7=function(t){var r=xn(t,0,1),n=xn(t,-1);if(r==="%"&&n!=="%")throw new Nt("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Nt("invalid intrinsic syntax, expected opening `%`");var o=[];return M3(t,e7,function(a,i,s,l){o[o.length]=s?M3(l,t7,"$1"):i||a}),o},n7=function(t,r){var n=t,o;if(En(B3,n)&&(o=B3[n],n="%"+o[0]+"%"),En(bt,n)){var a=bt[n];if(a===Bt&&(a=J9(n)),typeof a>"u"&&!r)throw new Dt("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:a}}throw new Nt("intrinsic "+t+" does not exist!")},so=function(t,r){if(typeof t!="string"||t.length===0)throw new Dt("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Dt('"allowMissing" argument must be a boolean');if(Q9(/^%?[^%]*%?$/,t)===null)throw new Nt("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=r7(t),o=n.length>0?n[0]:"",a=n7("%"+o+"%",r),i=a.name,s=a.value,l=!1,c=a.alias;c&&(o=c[0],Y9(n,X9([0,1],c)));for(var d=1,u=!0;d<n.length;d+=1){var p=n[d],C=xn(p,0,1),g=xn(p,-1);if((C==='"'||C==="'"||C==="`"||g==='"'||g==="'"||g==="`")&&C!==g)throw new Nt("property names with quotes must have matching quotes");if((p==="constructor"||!u)&&(l=!0),o+="."+p,i="%"+o+"%",En(bt,i))s=bt[i];else if(s!=null){if(!(p in s)){if(!r)throw new Dt("base intrinsic for "+t+" exists, but the property is not available.");return}if(vt&&d+1>=n.length){var v=vt(s,p);u=!!v,u&&"get"in v&&!("originalValue"in v.get)?s=v.get:s=s[p]}else u=En(s,p),s=s[p];u&&!l&&(bt[i]=s)}}return s},k3={exports:{}};(function(e){var t=oo,r=so,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{s=null}e.exports=function(u){var p=a(t,o,arguments);if(i&&s){var C=i(p,"length");C.configurable&&s(p,"length",{value:1+l(0,u.length-(arguments.length-1))})}return p};var c=function(){return a(t,n,arguments)};s?s(e.exports,"apply",{value:c}):e.exports.apply=c})(k3);var o7=k3.exports,F3=so,j3=o7,a7=j3(F3("String.prototype.indexOf")),i7=function(t,r){var n=F3(t,!!r);return typeof n=="function"&&a7(t,".prototype.")>-1?j3(n):n},s7={},l7=Object.freeze({__proto__:null,default:s7}),c7=t9(l7),lo=typeof Map=="function"&&Map.prototype,co=Object.getOwnPropertyDescriptor&&lo?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,On=lo&&co&&typeof co.get=="function"?co.get:null,U3=lo&&Map.prototype.forEach,uo=typeof Set=="function"&&Set.prototype,fo=Object.getOwnPropertyDescriptor&&uo?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Sn=uo&&fo&&typeof fo.get=="function"?fo.get:null,z3=uo&&Set.prototype.forEach,u7=typeof WeakMap=="function"&&WeakMap.prototype,br=u7?WeakMap.prototype.has:null,d7=typeof WeakSet=="function"&&WeakSet.prototype,yr=d7?WeakSet.prototype.has:null,f7=typeof WeakRef=="function"&&WeakRef.prototype,H3=f7?WeakRef.prototype.deref:null,p7=Boolean.prototype.valueOf,C7=Object.prototype.toString,g7=Function.prototype.toString,m7=String.prototype.match,po=String.prototype.slice,rt=String.prototype.replace,h7=String.prototype.toUpperCase,G3=String.prototype.toLowerCase,V3=RegExp.prototype.test,W3=Array.prototype.concat,ke=Array.prototype.join,v7=Array.prototype.slice,Z3=Math.floor,Co=typeof BigInt=="function"?BigInt.prototype.valueOf:null,go=Object.getOwnPropertySymbols,mo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Mt=typeof Symbol=="function"&&typeof Symbol.iterator=="object",de=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Mt||!0)?Symbol.toStringTag:null,q3=Object.prototype.propertyIsEnumerable,K3=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function J3(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||V3.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-Z3(-e):Z3(e);if(n!==e){var o=String(n),a=po.call(t,o.length+1);return rt.call(o,r,"$&_")+"."+rt.call(rt.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return rt.call(t,r,"$&_")}var ho=c7,X3=ho.custom,Y3=ti(X3)?X3:null,b7=function e(t,r,n,o){var a=r||{};if(nt(a,"quoteStyle")&&a.quoteStyle!=="single"&&a.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(nt(a,"maxStringLength")&&(typeof a.maxStringLength=="number"?a.maxStringLength<0&&a.maxStringLength!==1/0:a.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var i=nt(a,"customInspect")?a.customInspect:!0;if(typeof i!="boolean"&&i!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(nt(a,"indent")&&a.indent!==null&&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(nt(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=a.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return ni(t,a);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var l=String(t);return s?J3(t,l):l}if(typeof t=="bigint"){var c=String(t)+"n";return s?J3(t,c):c}var d=typeof a.depth>"u"?5:a.depth;if(typeof n>"u"&&(n=0),n>=d&&d>0&&typeof t=="object")return vo(t)?"[Array]":"[Object]";var u=M7(a,n);if(typeof o>"u")o=[];else if(ri(o,t)>=0)return"[Circular]";function p(X,w,R){if(w&&(o=v7.call(o),o.push(w)),R){var k={depth:a.depth};return nt(a,"quoteStyle")&&(k.quoteStyle=a.quoteStyle),e(X,k,n+1,o)}return e(X,a,n+1,o)}if(typeof t=="function"&&!ei(t)){var C=P7(t),g=An(t,p);return"[Function"+(C?": "+C:" (anonymous)")+"]"+(g.length>0?" { "+ke.call(g,", ")+" }":"")}if(ti(t)){var v=Mt?rt.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):mo.call(t);return typeof t=="object"&&!Mt?wr(v):v}if(D7(t)){for(var h="<"+G3.call(String(t.nodeName)),b=t.attributes||[],y=0;y<b.length;y++)h+=" "+b[y].name+"="+Q3(y7(b[y].value),"double",a);return h+=">",t.childNodes&&t.childNodes.length&&(h+="..."),h+="</"+G3.call(String(t.nodeName))+">",h}if(vo(t)){if(t.length===0)return"[]";var E=An(t,p);return u&&!B7(E)?"["+yo(E,u)+"]":"[ "+ke.call(E,", ")+" ]"}if(E7(t)){var x=An(t,p);return!("cause"in Error.prototype)&&"cause"in t&&!q3.call(t,"cause")?"{ ["+String(t)+"] "+ke.call(W3.call("[cause]: "+p(t.cause),x),", ")+" }":x.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+ke.call(x,", ")+" }"}if(typeof t=="object"&&i){if(Y3&&typeof t[Y3]=="function"&&ho)return ho(t,{depth:d-n});if(i!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(I7(t)){var A=[];return U3&&U3.call(t,function(X,w){A.push(p(w,t,!0)+" => "+p(X,t))}),oi("Map",On.call(t),A,u)}if(T7(t)){var S=[];return z3&&z3.call(t,function(X){S.push(p(X,t))}),oi("Set",Sn.call(t),S,u)}if(_7(t))return bo("WeakMap");if(N7(t))return bo("WeakSet");if(R7(t))return bo("WeakRef");if(O7(t))return wr(p(Number(t)));if(A7(t))return wr(p(Co.call(t)));if(S7(t))return wr(p7.call(t));if(x7(t))return wr(p(String(t)));if(!w7(t)&&!ei(t)){var P=An(t,p),_=K3?K3(t)===Object.prototype:t instanceof Object||t.constructor===Object,B=t instanceof Object?"":"null prototype",D=!_&&de&&Object(t)===t&&de in t?po.call(ot(t),8,-1):B?"Object":"",M=_||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",F=M+(D||B?"["+ke.call(W3.call([],D||[],B||[]),": ")+"] ":"");return P.length===0?F+"{}":u?F+"{"+yo(P,u)+"}":F+"{ "+ke.call(P,", ")+" }"}return String(t)};function Q3(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function y7(e){return rt.call(String(e),/"/g,"&quot;")}function vo(e){return ot(e)==="[object Array]"&&(!de||!(typeof e=="object"&&de in e))}function w7(e){return ot(e)==="[object Date]"&&(!de||!(typeof e=="object"&&de in e))}function ei(e){return ot(e)==="[object RegExp]"&&(!de||!(typeof e=="object"&&de in e))}function E7(e){return ot(e)==="[object Error]"&&(!de||!(typeof e=="object"&&de in e))}function x7(e){return ot(e)==="[object String]"&&(!de||!(typeof e=="object"&&de in e))}function O7(e){return ot(e)==="[object Number]"&&(!de||!(typeof e=="object"&&de in e))}function S7(e){return ot(e)==="[object Boolean]"&&(!de||!(typeof e=="object"&&de in e))}function ti(e){if(Mt)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!mo)return!1;try{return mo.call(e),!0}catch{}return!1}function A7(e){if(!e||typeof e!="object"||!Co)return!1;try{return Co.call(e),!0}catch{}return!1}var L7=Object.prototype.hasOwnProperty||function(e){return e in this};function nt(e,t){return L7.call(e,t)}function ot(e){return C7.call(e)}function P7(e){if(e.name)return e.name;var t=m7.call(g7.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function ri(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 I7(e){if(!On||!e||typeof e!="object")return!1;try{On.call(e);try{Sn.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function _7(e){if(!br||!e||typeof e!="object")return!1;try{br.call(e,br);try{yr.call(e,yr)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function R7(e){if(!H3||!e||typeof e!="object")return!1;try{return H3.call(e),!0}catch{}return!1}function T7(e){if(!Sn||!e||typeof e!="object")return!1;try{Sn.call(e);try{On.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function N7(e){if(!yr||!e||typeof e!="object")return!1;try{yr.call(e,yr);try{br.call(e,br)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function D7(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function ni(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return ni(po.call(e,0,t.maxStringLength),t)+n}var o=rt.call(rt.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,$7);return Q3(o,"single",t)}function $7(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":"")+h7.call(t.toString(16))}function wr(e){return"Object("+e+")"}function bo(e){return e+" { ? }"}function oi(e,t,r,n){var o=n?yo(r,n):ke.call(r,", ");return e+" ("+t+") {"+o+"}"}function B7(e){for(var t=0;t<e.length;t++)if(ri(e[t],` `)>=0)return!1;return!0}function M7(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=ke.call(Array(e.indent+1)," ");else return null;return{base:r,prev:ke.call(Array(t+1),r)}}function yo(e,t){if(e.length===0)return"";var r=` `+t.prev+t.base;return r+ke.call(e,","+r)+` `+t.prev}function An(e,t){var r=vo(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=nt(e,o)?t(e[o],e):""}var a=typeof go=="function"?go(e):[],i;if(Mt){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var l in e)nt(e,l)&&(r&&String(Number(l))===l&&l<e.length||Mt&&i["$"+l]instanceof Symbol||(V3.call(/[^\w$]/,l)?n.push(t(l,e)+": "+t(e[l],e)):n.push(l+": "+t(e[l],e))));if(typeof go=="function")for(var c=0;c<a.length;c++)q3.call(e,a[c])&&n.push("["+t(a[c])+"]: "+t(e[a[c]],e));return n}var wo=so,kt=i7,k7=b7,F7=wo("%TypeError%"),Ln=wo("%WeakMap%",!0),Pn=wo("%Map%",!0),j7=kt("WeakMap.prototype.get",!0),U7=kt("WeakMap.prototype.set",!0),z7=kt("WeakMap.prototype.has",!0),H7=kt("Map.prototype.get",!0),G7=kt("Map.prototype.set",!0),V7=kt("Map.prototype.has",!0),Eo=function(e,t){for(var r=e,n;(n=r.next)!==null;r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n},W7=function(e,t){var r=Eo(e,t);return r&&r.value},Z7=function(e,t,r){var n=Eo(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},q7=function(e,t){return!!Eo(e,t)},K7=function(){var t,r,n,o={assert:function(a){if(!o.has(a))throw new F7("Side channel does not contain "+k7(a))},get:function(a){if(Ln&&a&&(typeof a=="object"||typeof a=="function")){if(t)return j7(t,a)}else if(Pn){if(r)return H7(r,a)}else if(n)return W7(n,a)},has:function(a){if(Ln&&a&&(typeof a=="object"||typeof a=="function")){if(t)return z7(t,a)}else if(Pn){if(r)return V7(r,a)}else if(n)return q7(n,a);return!1},set:function(a,i){Ln&&a&&(typeof a=="object"||typeof a=="function")?(t||(t=new Ln),U7(t,a,i)):Pn?(r||(r=new Pn),G7(r,a,i)):(n||(n={key:{},next:null}),Z7(n,a,i))}};return o},J7=String.prototype.replace,X7=/%20/g,xo={RFC1738:"RFC1738",RFC3986:"RFC3986"},Oo={default:xo.RFC3986,formatters:{RFC1738:function(e){return J7.call(e,X7,"+")},RFC3986:function(e){return String(e)}},RFC1738:xo.RFC1738,RFC3986:xo.RFC3986},Y7=Oo,So=Object.prototype.hasOwnProperty,yt=Array.isArray,Fe=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),Q7=function(t){for(;t.length>1;){var r=t.pop(),n=r.obj[r.prop];if(yt(n)){for(var o=[],a=0;a<n.length;++a)typeof n[a]<"u"&&o.push(n[a]);r.obj[r.prop]=o}}},ai=function(t,r){for(var n=r&&r.plainObjects?Object.create(null):{},o=0;o<t.length;++o)typeof t[o]<"u"&&(n[o]=t[o]);return n},eu=function e(t,r,n){if(!r)return t;if(typeof r!="object"){if(yt(t))t.push(r);else if(t&&typeof t=="object")(n&&(n.plainObjects||n.allowPrototypes)||!So.call(Object.prototype,r))&&(t[r]=!0);else return[t,r];return t}if(!t||typeof t!="object")return[t].concat(r);var o=t;return yt(t)&&!yt(r)&&(o=ai(t,n)),yt(t)&&yt(r)?(r.forEach(function(a,i){if(So.call(t,i)){var s=t[i];s&&typeof s=="object"&&a&&typeof a=="object"?t[i]=e(s,a,n):t.push(a)}else t[i]=a}),t):Object.keys(r).reduce(function(a,i){var s=r[i];return So.call(a,i)?a[i]=e(a[i],s,n):a[i]=s,a},o)},tu=function(t,r){return Object.keys(r).reduce(function(n,o){return n[o]=r[o],n},t)},ru=function(e,t,r){var n=e.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},nu=function(t,r,n,o,a){if(t.length===0)return t;var i=t;if(typeof t=="symbol"?i=Symbol.prototype.toString.call(t):typeof t!="string"&&(i=String(t)),n==="iso-8859-1")return escape(i).replace(/%u[0-9a-f]{4}/gi,function(d){return"%26%23"+parseInt(d.slice(2),16)+"%3B"});for(var s="",l=0;l<i.length;++l){var c=i.charCodeAt(l);if(c===45||c===46||c===95||c===126||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||a===Y7.RFC1738&&(c===40||c===41)){s+=i.charAt(l);continue}if(c<128){s=s+Fe[c];continue}if(c<2048){s=s+(Fe[192|c>>6]+Fe[128|c&63]);continue}if(c<55296||c>=57344){s=s+(Fe[224|c>>12]+Fe[128|c>>6&63]+Fe[128|c&63]);continue}l+=1,c=65536+((c&1023)<<10|i.charCodeAt(l)&1023),s+=Fe[240|c>>18]+Fe[128|c>>12&63]+Fe[128|c>>6&63]+Fe[128|c&63]}return s},ou=function(t){for(var r=[{obj:{o:t},prop:"o"}],n=[],o=0;o<r.length;++o)for(var a=r[o],i=a.obj[a.prop],s=Object.keys(i),l=0;l<s.length;++l){var c=s[l],d=i[c];typeof d=="object"&&d!==null&&n.indexOf(d)===-1&&(r.push({obj:i,prop:c}),n.push(d))}return Q7(r),t},au=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},iu=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},su=function(t,r){return[].concat(t,r)},lu=function(t,r){if(yt(t)){for(var n=[],o=0;o<t.length;o+=1)n.push(r(t[o]));return n}return r(t)},ii={arrayToObject:ai,assign:tu,combine:su,compact:ou,decode:ru,encode:nu,isBuffer:iu,isRegExp:au,maybeMap:lu,merge:eu},si=K7,In=ii,Er=Oo,cu=Object.prototype.hasOwnProperty,li={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,r){return t+"["+r+"]"},repeat:function(t){return t}},Ze=Array.isArray,uu=Array.prototype.push,ci=function(e,t){uu.apply(e,Ze(t)?t:[t])},du=Date.prototype.toISOString,ui=Er.default,fe={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:In.encode,encodeValuesOnly:!1,format:ui,formatter:Er.formatters[ui],indices:!1,serializeDate:function(t){return du.call(t)},skipNulls:!1,strictNullHandling:!1},fu=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},Ao={},pu=function e(t,r,n,o,a,i,s,l,c,d,u,p,C,g,v,h){for(var b=t,y=h,E=0,x=!1;(y=y.get(Ao))!==void 0&&!x;){var A=y.get(t);if(E+=1,typeof A<"u"){if(A===E)throw new RangeError("Cyclic object value");x=!0}typeof y.get(Ao)>"u"&&(E=0)}if(typeof l=="function"?b=l(r,b):b instanceof Date?b=u(b):n==="comma"&&Ze(b)&&(b=In.maybeMap(b,function(k){return k instanceof Date?u(k):k})),b===null){if(a)return s&&!g?s(r,fe.encoder,v,"key",p):r;b=""}if(fu(b)||In.isBuffer(b)){if(s){var S=g?r:s(r,fe.encoder,v,"key",p);return[C(S)+"="+C(s(b,fe.encoder,v,"value",p))]}return[C(r)+"="+C(String(b))]}var P=[];if(typeof b>"u")return P;var _;if(n==="comma"&&Ze(b))g&&s&&(b=In.maybeMap(b,s)),_=[{value:b.length>0?b.join(",")||null:void 0}];else if(Ze(l))_=l;else{var B=Object.keys(b);_=c?B.sort(c):B}for(var D=o&&Ze(b)&&b.length===1?r+"[]":r,M=0;M<_.length;++M){var F=_[M],X=typeof F=="object"&&typeof F.value<"u"?F.value:b[F];if(!(i&&X===null)){var w=Ze(b)?typeof n=="function"?n(D,F):D:D+(d?"."+F:"["+F+"]");h.set(t,E);var R=si();R.set(Ao,h),ci(P,e(X,w,n,o,a,i,n==="comma"&&g&&Ze(b)?null:s,l,c,d,u,p,C,g,v,R))}}return P},Cu=function(t){if(!t)return fe;if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeE