strapi-plugin-comments 3.0.14 → 3.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/en-Ca05D1aN.js +1 -0
- package/dist/_chunks/{en-BtJqEJGe.mjs → en-DeZtLd2b.mjs} +15 -2
- package/dist/_chunks/fr-DvC8Kjh_.js +1 -0
- package/dist/_chunks/{fr-n-k7Rsq9.mjs → fr-xcXYnLl6.mjs} +15 -2
- package/dist/_chunks/{index-CQD92qgD.mjs → index-Bd1INOJR.mjs} +651 -655
- package/dist/_chunks/{index-BNUfJ5rK.mjs → index-BvE3I2WB.mjs} +2 -2
- package/dist/_chunks/{index-CXZL9d07.js → index-BzZk45CE.js} +39 -39
- package/dist/_chunks/index-C5ADhjCF.js +18 -0
- package/dist/_chunks/{index-B7F5_QGF.mjs → index-C9YD28U_.mjs} +7591 -7543
- package/dist/_chunks/{index-C1LkPp9p.js → index-CtUXr7rK.js} +181 -181
- package/dist/_chunks/{index-Cm2k0S9q.js → index-DHYGkXW6.js} +1 -1
- package/dist/_chunks/{index-B_ImEGPI.mjs → index-DcdRh9F7.mjs} +1768 -1770
- package/dist/_chunks/{pl-_wkGtdQj.mjs → pl-B2Il0b0-.mjs} +1 -1
- package/dist/_chunks/pl-DthJf26N.js +1 -0
- package/dist/_chunks/pt-BR-ByULlOKU.js +1 -0
- package/dist/_chunks/{pt-BR-Bx1qSZ0Z.mjs → pt-BR-KCmyuDgJ.mjs} +1 -1
- package/dist/_chunks/{ru-BuUj7OWH.mjs → ru-Bykkb95a.mjs} +1 -1
- package/dist/_chunks/ru-DOajpZMF.js +1 -0
- package/dist/_chunks/{tr-CloK8CbW.mjs → tr-BW_iq8S7.mjs} +1 -1
- package/dist/_chunks/tr-Cv3hH0Rh.js +1 -0
- package/dist/_chunks/{zh-Hans-Isi-yCnI.mjs → zh-Hans-DixVuF8_.mjs} +1 -1
- package/dist/_chunks/zh-Hans-P1iGqMnb.js +1 -0
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin/src/api/client.d.ts +8 -8
- package/dist/admin/src/api/schemas.d.ts +83 -83
- package/dist/admin/src/components/CommentStatusFilters/index.d.ts +1 -6
- package/dist/admin/src/components/SortableTh/index.d.ts +7 -0
- package/dist/admin/src/hooks/useAPI.d.ts +8 -8
- package/dist/admin/src/hooks/useCommentsAll.d.ts +1 -1
- package/dist/admin/src/hooks/useReports.d.ts +2 -2
- package/dist/admin/src/pages/Settings/hooks/useSettingsAPI.d.ts +1 -1
- package/dist/admin/src/translations/en.d.ts +13 -0
- package/dist/admin/src/translations/fr.d.ts +13 -0
- package/dist/server/index.js +13 -13
- package/dist/server/index.mjs +273 -270
- package/dist/server/src/controllers/index.d.ts +3 -9
- package/dist/server/src/index.d.ts +12 -39
- package/dist/server/src/services/admin/admin.service.d.ts +3 -10
- package/dist/server/src/services/client.service.d.ts +3 -10
- package/dist/server/src/services/common.service.d.ts +0 -1
- package/dist/server/src/services/index.d.ts +9 -30
- package/dist/server/src/validators/api/controllers/client.controller.validator.d.ts +7 -9
- package/package.json +1 -1
- package/dist/_chunks/en-CNvRvaLL.js +0 -1
- package/dist/_chunks/fr-Bh0tVDIQ.js +0 -1
- package/dist/_chunks/index-CiNGZPZv.js +0 -18
- package/dist/_chunks/pl-DoXe0BV9.js +0 -1
- package/dist/_chunks/pt-BR-CLvbSGaH.js +0 -1
- package/dist/_chunks/ru-eLIDfsd3.js +0 -1
- package/dist/_chunks/tr-BX-_IBUR.js +0 -1
- package/dist/_chunks/zh-Hans-DusBjCtd.js +0 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";const b=require("./index-CtUXr7rK.js"),Y=require("react"),z=require("react/jsx-runtime"),fr=require("@tanstack/react-query"),Qr=require("@strapi/strapi/admin"),a=require("zod");function Vt(r){if(r&&r.__esModule)return r;const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const t in r)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>r[t]})}}return e.default=r,Object.freeze(e)}const ae=Vt(Y),Ht=()=>{const r=()=>window.matchMedia("(prefers-color-scheme: dark)").matches,[e,t]=Y.useState();return Y.useEffect(()=>{const o=r()?"dark":"light",i=window.localStorage?.STRAPI_THEME;t(i==="system"?o:i)},[]),{theme:e==="dark"?b.darkTheme:b.lightTheme,themeName:e}};var rr={exports:{}},E={};/** @license React v16.13.1
|
|
2
|
+
* react-is.production.min.js
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the MIT license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/var Ar;function Yt(){if(Ar)return E;Ar=1;var r=typeof Symbol=="function"&&Symbol.for,e=r?Symbol.for("react.element"):60103,t=r?Symbol.for("react.portal"):60106,n=r?Symbol.for("react.fragment"):60107,o=r?Symbol.for("react.strict_mode"):60108,i=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,c=r?Symbol.for("react.async_mode"):60111,s=r?Symbol.for("react.concurrent_mode"):60111,y=r?Symbol.for("react.forward_ref"):60112,d=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.suspense_list"):60120,h=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,w=r?Symbol.for("react.block"):60121,C=r?Symbol.for("react.fundamental"):60117,S=r?Symbol.for("react.responder"):60118,x=r?Symbol.for("react.scope"):60119;function O(f){if(typeof f=="object"&&f!==null){var M=f.$$typeof;switch(M){case e:switch(f=f.type,f){case c:case s:case n:case i:case o:case d:return f;default:switch(f=f&&f.$$typeof,f){case l:case y:case v:case h:case u:return f;default:return M}}case t:return M}}}function $(f){return O(f)===s}return E.AsyncMode=c,E.ConcurrentMode=s,E.ContextConsumer=l,E.ContextProvider=u,E.Element=e,E.ForwardRef=y,E.Fragment=n,E.Lazy=v,E.Memo=h,E.Portal=t,E.Profiler=i,E.StrictMode=o,E.Suspense=d,E.isAsyncMode=function(f){return $(f)||O(f)===c},E.isConcurrentMode=$,E.isContextConsumer=function(f){return O(f)===l},E.isContextProvider=function(f){return O(f)===u},E.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},E.isForwardRef=function(f){return O(f)===y},E.isFragment=function(f){return O(f)===n},E.isLazy=function(f){return O(f)===v},E.isMemo=function(f){return O(f)===h},E.isPortal=function(f){return O(f)===t},E.isProfiler=function(f){return O(f)===i},E.isStrictMode=function(f){return O(f)===o},E.isSuspense=function(f){return O(f)===d},E.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===n||f===s||f===i||f===o||f===d||f===m||typeof f=="object"&&f!==null&&(f.$$typeof===v||f.$$typeof===h||f.$$typeof===u||f.$$typeof===l||f.$$typeof===y||f.$$typeof===C||f.$$typeof===S||f.$$typeof===x||f.$$typeof===w)},E.typeOf=O,E}var A={};/** @license React v16.13.1
|
|
9
|
+
* react-is.development.js
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
12
|
+
*
|
|
13
|
+
* This source code is licensed under the MIT license found in the
|
|
14
|
+
* LICENSE file in the root directory of this source tree.
|
|
15
|
+
*/var Pr;function Kt(){return Pr||(Pr=1,process.env.NODE_ENV!=="production"&&function(){var r=typeof Symbol=="function"&&Symbol.for,e=r?Symbol.for("react.element"):60103,t=r?Symbol.for("react.portal"):60106,n=r?Symbol.for("react.fragment"):60107,o=r?Symbol.for("react.strict_mode"):60108,i=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,c=r?Symbol.for("react.async_mode"):60111,s=r?Symbol.for("react.concurrent_mode"):60111,y=r?Symbol.for("react.forward_ref"):60112,d=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.suspense_list"):60120,h=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,w=r?Symbol.for("react.block"):60121,C=r?Symbol.for("react.fundamental"):60117,S=r?Symbol.for("react.responder"):60118,x=r?Symbol.for("react.scope"):60119;function O(p){return typeof p=="string"||typeof p=="function"||p===n||p===s||p===i||p===o||p===d||p===m||typeof p=="object"&&p!==null&&(p.$$typeof===v||p.$$typeof===h||p.$$typeof===u||p.$$typeof===l||p.$$typeof===y||p.$$typeof===C||p.$$typeof===S||p.$$typeof===x||p.$$typeof===w)}function $(p){if(typeof p=="object"&&p!==null){var Fe=p.$$typeof;switch(Fe){case e:var be=p.type;switch(be){case c:case s:case n:case i:case o:case d:return be;default:var Er=be&&be.$$typeof;switch(Er){case l:case y:case v:case h:case u:return Er;default:return Fe}}case t:return Fe}}}var f=c,M=s,B=l,F=u,q=e,W=y,Q=n,N=v,I=h,G=t,ee=i,V=o,Nt=d,Sr=!1;function It(p){return Sr||(Sr=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),br(p)||$(p)===c}function br(p){return $(p)===s}function Mt(p){return $(p)===l}function Ft(p){return $(p)===u}function Dt(p){return typeof p=="object"&&p!==null&&p.$$typeof===e}function Lt(p){return $(p)===y}function Bt(p){return $(p)===n}function jt(p){return $(p)===v}function Ut(p){return $(p)===h}function kt(p){return $(p)===t}function qt(p){return $(p)===i}function Wt(p){return $(p)===o}function Gt(p){return $(p)===d}A.AsyncMode=f,A.ConcurrentMode=M,A.ContextConsumer=B,A.ContextProvider=F,A.Element=q,A.ForwardRef=W,A.Fragment=Q,A.Lazy=N,A.Memo=I,A.Portal=G,A.Profiler=ee,A.StrictMode=V,A.Suspense=Nt,A.isAsyncMode=It,A.isConcurrentMode=br,A.isContextConsumer=Mt,A.isContextProvider=Ft,A.isElement=Dt,A.isForwardRef=Lt,A.isFragment=Bt,A.isLazy=jt,A.isMemo=Ut,A.isPortal=kt,A.isProfiler=qt,A.isStrictMode=Wt,A.isSuspense=Gt,A.isValidElementType=O,A.typeOf=$}()),A}process.env.NODE_ENV==="production"?rr.exports=Yt():rr.exports=Kt();var Qt=rr.exports,Jr=Qt,Jt={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Xt={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Xr={};Xr[Jr.ForwardRef]=Jt;Xr[Jr.Memo]=Xt;function Zt(r,e,t){if(t===void 0&&(t=Error),!r)throw new t(e)}var en=function(r){process.env.NODE_ENV!=="production"&&console.error(r)},rn=function(r){process.env.NODE_ENV!=="production"&&console.warn(r)},tn={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:en,onWarn:rn};function nn(r){Zt(r,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}b.__assign(b.__assign({},tn),{textComponent:ae.Fragment});var pr=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=ae.createContext(null)):ae.createContext(null);pr.Consumer;pr.Provider;var on=pr;function Ce(){var r=ae.useContext(on);return nn(r),r}var tr;(function(r){r.formatDate="FormattedDate",r.formatTime="FormattedTime",r.formatNumber="FormattedNumber",r.formatList="FormattedList",r.formatDisplayName="FormattedDisplayName"})(tr||(tr={}));var nr;(function(r){r.formatDate="FormattedDateParts",r.formatTime="FormattedTimeParts",r.formatNumber="FormattedNumberParts",r.formatList="FormattedListParts"})(nr||(nr={}));function Zr(r){var e=function(t){var n=Ce(),o=t.value,i=t.children,u=b.__rest(t,["value","children"]),l=typeof o=="string"?new Date(o||0):o,c=r==="formatDate"?n.formatDateToParts(l,u):n.formatTimeToParts(l,u);return i(c)};return e.displayName=nr[r],e}function ve(r){var e=function(t){var n=Ce(),o=t.value,i=t.children,u=b.__rest(t,["value","children"]),l=n[r](o,u);if(typeof i=="function")return i(l);var c=n.textComponent||ae.Fragment;return ae.createElement(c,null,l)};return e.displayName=tr[r],e}ve("formatDate");ve("formatTime");ve("formatNumber");ve("formatList");ve("formatDisplayName");Zr("formatDate");Zr("formatTime");const an=(r,e="",t=!0)=>{const{formatMessage:n}=Ce();let o="";return typeof r=="string"?o=r:o=r?.id.toString()||o,n({id:`${t?b.pluginId:"app.components"}.${o}`,defaultMessage:e},typeof r=="string"?void 0:r?.props)},et={PENDING:"PENDING",APPROVED:"APPROVED",REJECTED:"REJECTED"},ln={...et,BLOCKED:"BLOCKED",OPEN:"OPEN",RESOLVED:"RESOLVED"};var rt=(r=>(r.BAD_LANGUAGE="BAD_LANGUAGE",r.DISCRIMINATION="DISCRIMINATION",r.OTHER="OTHER",r))(rt||{});const j={...et,BLOCKED:"BLOCKED",OPEN:"OPEN",REMOVED:"REMOVED",TO_REVIEW:"TO_REVIEW",UNKNOWN:"UNKNOWN"};var ce=TypeError;const un={},cn=Object.freeze(Object.defineProperty({__proto__:null,default:un},Symbol.toStringTag,{value:"Module"})),sn=b.getAugmentedNamespace(cn);var yr=typeof Map=="function"&&Map.prototype,De=Object.getOwnPropertyDescriptor&&yr?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,we=yr&&De&&typeof De.get=="function"?De.get:null,Or=yr&&Map.prototype.forEach,dr=typeof Set=="function"&&Set.prototype,Le=Object.getOwnPropertyDescriptor&&dr?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Re=dr&&Le&&typeof Le.get=="function"?Le.get:null,$r=dr&&Set.prototype.forEach,fn=typeof WeakMap=="function"&&WeakMap.prototype,fe=fn?WeakMap.prototype.has:null,pn=typeof WeakSet=="function"&&WeakSet.prototype,pe=pn?WeakSet.prototype.has:null,yn=typeof WeakRef=="function"&&WeakRef.prototype,wr=yn?WeakRef.prototype.deref:null,dn=Boolean.prototype.valueOf,mn=Object.prototype.toString,vn=Function.prototype.toString,gn=String.prototype.match,mr=String.prototype.slice,H=String.prototype.replace,hn=String.prototype.toUpperCase,Rr=String.prototype.toLowerCase,tt=RegExp.prototype.test,zr=Array.prototype.concat,L=Array.prototype.join,Sn=Array.prototype.slice,Tr=Math.floor,or=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Be=Object.getOwnPropertySymbols,ar=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ie=typeof Symbol=="function"&&typeof Symbol.iterator=="object",ye=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ie||!0)?Symbol.toStringTag:null,nt=Object.prototype.propertyIsEnumerable,_r=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(r){return r.__proto__}:null);function Cr(r,e){if(r===1/0||r===-1/0||r!==r||r&&r>-1e3&&r<1e3||tt.call(/e/,e))return e;var t=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof r=="number"){var n=r<0?-Tr(-r):Tr(r);if(n!==r){var o=String(n),i=mr.call(e,o.length+1);return H.call(o,t,"$&_")+"."+H.call(H.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return H.call(e,t,"$&_")}var ir=sn,xr=ir.custom,Nr=it(xr)?xr:null,ot={__proto__:null,double:'"',single:"'"},bn={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},xe=function r(e,t,n,o){var i=t||{};if(U(i,"quoteStyle")&&!U(ot,i.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(U(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=U(i,"customInspect")?i.customInspect:!0;if(typeof u!="boolean"&&u!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(U(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(U(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var l=i.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return ut(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var c=String(e);return l?Cr(e,c):c}if(typeof e=="bigint"){var s=String(e)+"n";return l?Cr(e,s):s}var y=typeof i.depth>"u"?5:i.depth;if(typeof n>"u"&&(n=0),n>=y&&y>0&&typeof e=="object")return lr(e)?"[Array]":"[Object]";var d=Ln(i,n);if(typeof o>"u")o=[];else if(lt(o,e)>=0)return"[Circular]";function m(I,G,ee){if(G&&(o=Sn.call(o),o.push(G)),ee){var V={depth:i.depth};return U(i,"quoteStyle")&&(V.quoteStyle=i.quoteStyle),r(I,V,n+1,o)}return r(I,i,n+1,o)}if(typeof e=="function"&&!Ir(e)){var h=Tn(e),v=Ee(e,m);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(v.length>0?" { "+L.call(v,", ")+" }":"")}if(it(e)){var w=ie?H.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):ar.call(e);return typeof e=="object"&&!ie?se(w):w}if(Mn(e)){for(var C="<"+Rr.call(String(e.nodeName)),S=e.attributes||[],x=0;x<S.length;x++)C+=" "+S[x].name+"="+at(En(S[x].value),"double",i);return C+=">",e.childNodes&&e.childNodes.length&&(C+="..."),C+="</"+Rr.call(String(e.nodeName))+">",C}if(lr(e)){if(e.length===0)return"[]";var O=Ee(e,m);return d&&!Dn(O)?"["+ur(O,d)+"]":"[ "+L.call(O,", ")+" ]"}if(Pn(e)){var $=Ee(e,m);return!("cause"in Error.prototype)&&"cause"in e&&!nt.call(e,"cause")?"{ ["+String(e)+"] "+L.call(zr.call("[cause]: "+m(e.cause),$),", ")+" }":$.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+L.call($,", ")+" }"}if(typeof e=="object"&&u){if(Nr&&typeof e[Nr]=="function"&&ir)return ir(e,{depth:y-n});if(u!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(_n(e)){var f=[];return Or&&Or.call(e,function(I,G){f.push(m(G,e,!0)+" => "+m(I,e))}),Mr("Map",we.call(e),f,d)}if(Nn(e)){var M=[];return $r&&$r.call(e,function(I){M.push(m(I,e))}),Mr("Set",Re.call(e),M,d)}if(Cn(e))return je("WeakMap");if(In(e))return je("WeakSet");if(xn(e))return je("WeakRef");if($n(e))return se(m(Number(e)));if(Rn(e))return se(m(or.call(e)));if(wn(e))return se(dn.call(e));if(On(e))return se(m(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(typeof globalThis<"u"&&e===globalThis||typeof b.commonjsGlobal<"u"&&e===b.commonjsGlobal)return"{ [object globalThis] }";if(!An(e)&&!Ir(e)){var B=Ee(e,m),F=_r?_r(e)===Object.prototype:e instanceof Object||e.constructor===Object,q=e instanceof Object?"":"null prototype",W=!F&&ye&&Object(e)===e&&ye in e?mr.call(K(e),8,-1):q?"Object":"",Q=F||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",N=Q+(W||q?"["+L.call(zr.call([],W||[],q||[]),": ")+"] ":"");return B.length===0?N+"{}":d?N+"{"+ur(B,d)+"}":N+"{ "+L.call(B,", ")+" }"}return String(e)};function at(r,e,t){var n=t.quoteStyle||e,o=ot[n];return o+r+o}function En(r){return H.call(String(r),/"/g,""")}function Z(r){return!ye||!(typeof r=="object"&&(ye in r||typeof r[ye]<"u"))}function lr(r){return K(r)==="[object Array]"&&Z(r)}function An(r){return K(r)==="[object Date]"&&Z(r)}function Ir(r){return K(r)==="[object RegExp]"&&Z(r)}function Pn(r){return K(r)==="[object Error]"&&Z(r)}function On(r){return K(r)==="[object String]"&&Z(r)}function $n(r){return K(r)==="[object Number]"&&Z(r)}function wn(r){return K(r)==="[object Boolean]"&&Z(r)}function it(r){if(ie)return r&&typeof r=="object"&&r instanceof Symbol;if(typeof r=="symbol")return!0;if(!r||typeof r!="object"||!ar)return!1;try{return ar.call(r),!0}catch{}return!1}function Rn(r){if(!r||typeof r!="object"||!or)return!1;try{return or.call(r),!0}catch{}return!1}var zn=Object.prototype.hasOwnProperty||function(r){return r in this};function U(r,e){return zn.call(r,e)}function K(r){return mn.call(r)}function Tn(r){if(r.name)return r.name;var e=gn.call(vn.call(r),/^function\s*([\w$]+)/);return e?e[1]:null}function lt(r,e){if(r.indexOf)return r.indexOf(e);for(var t=0,n=r.length;t<n;t++)if(r[t]===e)return t;return-1}function _n(r){if(!we||!r||typeof r!="object")return!1;try{we.call(r);try{Re.call(r)}catch{return!0}return r instanceof Map}catch{}return!1}function Cn(r){if(!fe||!r||typeof r!="object")return!1;try{fe.call(r,fe);try{pe.call(r,pe)}catch{return!0}return r instanceof WeakMap}catch{}return!1}function xn(r){if(!wr||!r||typeof r!="object")return!1;try{return wr.call(r),!0}catch{}return!1}function Nn(r){if(!Re||!r||typeof r!="object")return!1;try{Re.call(r);try{we.call(r)}catch{return!0}return r instanceof Set}catch{}return!1}function In(r){if(!pe||!r||typeof r!="object")return!1;try{pe.call(r,pe);try{fe.call(r,fe)}catch{return!0}return r instanceof WeakSet}catch{}return!1}function Mn(r){return!r||typeof r!="object"?!1:typeof HTMLElement<"u"&&r instanceof HTMLElement?!0:typeof r.nodeName=="string"&&typeof r.getAttribute=="function"}function ut(r,e){if(r.length>e.maxStringLength){var t=r.length-e.maxStringLength,n="... "+t+" more character"+(t>1?"s":"");return ut(mr.call(r,0,e.maxStringLength),e)+n}var o=bn[e.quoteStyle||"single"];o.lastIndex=0;var i=H.call(H.call(r,o,"\\$1"),/[\x00-\x1f]/g,Fn);return at(i,"single",e)}function Fn(r){var e=r.charCodeAt(0),t={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return t?"\\"+t:"\\x"+(e<16?"0":"")+hn.call(e.toString(16))}function se(r){return"Object("+r+")"}function je(r){return r+" { ? }"}function Mr(r,e,t,n){var o=n?ur(t,n):L.call(t,", ");return r+" ("+e+") {"+o+"}"}function Dn(r){for(var e=0;e<r.length;e++)if(lt(r[e],`
|
|
16
|
+
`)>=0)return!1;return!0}function Ln(r,e){var t;if(r.indent===" ")t=" ";else if(typeof r.indent=="number"&&r.indent>0)t=L.call(Array(r.indent+1)," ");else return null;return{base:t,prev:L.call(Array(e+1),t)}}function ur(r,e){if(r.length===0)return"";var t=`
|
|
17
|
+
`+e.prev+e.base;return t+L.call(r,","+t)+`
|
|
18
|
+
`+e.prev}function Ee(r,e){var t=lr(r),n=[];if(t){n.length=r.length;for(var o=0;o<r.length;o++)n[o]=U(r,o)?e(r[o],r):""}var i=typeof Be=="function"?Be(r):[],u;if(ie){u={};for(var l=0;l<i.length;l++)u["$"+i[l]]=i[l]}for(var c in r)U(r,c)&&(t&&String(Number(c))===c&&c<r.length||ie&&u["$"+c]instanceof Symbol||(tt.call(/[^\w$]/,c)?n.push(e(c,r)+": "+e(r[c],r)):n.push(c+": "+e(r[c],r))));if(typeof Be=="function")for(var s=0;s<i.length;s++)nt.call(r,i[s])&&n.push("["+e(i[s])+"]: "+e(r[i[s]],r));return n}var Bn=xe,jn=ce,Ne=function(r,e,t){for(var n=r,o;(o=n.next)!=null;n=o)if(o.key===e)return n.next=o.next,t||(o.next=r.next,r.next=o),o},Un=function(r,e){if(r){var t=Ne(r,e);return t&&t.value}},kn=function(r,e,t){var n=Ne(r,e);n?n.value=t:r.next={key:e,next:r.next,value:t}},qn=function(r,e){return r?!!Ne(r,e):!1},Wn=function(r,e){if(r)return Ne(r,e,!0)},Gn=function(){var e,t={assert:function(n){if(!t.has(n))throw new jn("Side channel does not contain "+Bn(n))},delete:function(n){var o=e&&e.next,i=Wn(e,n);return i&&o&&o===i&&(e=void 0),!!i},get:function(n){return Un(e,n)},has:function(n){return qn(e,n)},set:function(n,o){e||(e={next:void 0}),kn(e,n,o)}};return t},ct=Object,Vn=Error,Hn=EvalError,Yn=RangeError,Kn=ReferenceError,Qn=SyntaxError,Jn=URIError,Xn=Math.abs,Zn=Math.floor,eo=Math.max,ro=Math.min,to=Math.pow,no=Math.round,oo=Number.isNaN||function(e){return e!==e},ao=oo,io=function(e){return ao(e)||e===0?e:e<0?-1:1},lo=Object.getOwnPropertyDescriptor,Pe=lo;if(Pe)try{Pe([],"length")}catch{Pe=null}var st=Pe,Oe=Object.defineProperty||!1;if(Oe)try{Oe({},"a",{value:1})}catch{Oe=!1}var uo=Oe,Ue,Fr;function co(){return Fr||(Fr=1,Ue=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;e[t]=o;for(var i in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var u=Object.getOwnPropertySymbols(e);if(u.length!==1||u[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(e,t);if(l.value!==o||l.enumerable!==!0)return!1}return!0}),Ue}var ke,Dr;function so(){if(Dr)return ke;Dr=1;var r=typeof Symbol<"u"&&Symbol,e=co();return ke=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},ke}var qe,Lr;function ft(){return Lr||(Lr=1,qe=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),qe}var We,Br;function pt(){if(Br)return We;Br=1;var r=ct;return We=r.getPrototypeOf||null,We}var fo="Function.prototype.bind called on incompatible ",po=Object.prototype.toString,yo=Math.max,mo="[object Function]",jr=function(e,t){for(var n=[],o=0;o<e.length;o+=1)n[o]=e[o];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n},vo=function(e,t){for(var n=[],o=t,i=0;o<e.length;o+=1,i+=1)n[i]=e[o];return n},go=function(r,e){for(var t="",n=0;n<r.length;n+=1)t+=r[n],n+1<r.length&&(t+=e);return t},ho=function(e){var t=this;if(typeof t!="function"||po.apply(t)!==mo)throw new TypeError(fo+t);for(var n=vo(arguments,1),o,i=function(){if(this instanceof o){var y=t.apply(this,jr(n,arguments));return Object(y)===y?y:this}return t.apply(e,jr(n,arguments))},u=yo(0,t.length-n.length),l=[],c=0;c<u;c++)l[c]="$"+c;if(o=Function("binder","return function ("+go(l,",")+"){ return binder.apply(this,arguments); }")(i),t.prototype){var s=function(){};s.prototype=t.prototype,o.prototype=new s,s.prototype=null}return o},So=ho,Ie=Function.prototype.bind||So,vr=Function.prototype.call,Ge,Ur;function yt(){return Ur||(Ur=1,Ge=Function.prototype.apply),Ge}var bo=typeof Reflect<"u"&&Reflect&&Reflect.apply,Eo=Ie,Ao=yt(),Po=vr,Oo=bo,$o=Oo||Eo.call(Po,Ao),wo=Ie,Ro=ce,zo=vr,To=$o,dt=function(e){if(e.length<1||typeof e[0]!="function")throw new Ro("a function is required");return To(wo,zo,e)},Ve,kr;function _o(){if(kr)return Ve;kr=1;var r=dt,e=st,t;try{t=[].__proto__===Array.prototype}catch(u){if(!u||typeof u!="object"||!("code"in u)||u.code!=="ERR_PROTO_ACCESS")throw u}var n=!!t&&e&&e(Object.prototype,"__proto__"),o=Object,i=o.getPrototypeOf;return Ve=n&&typeof n.get=="function"?r([n.get]):typeof i=="function"?function(l){return i(l==null?l:o(l))}:!1,Ve}var He,qr;function Co(){if(qr)return He;qr=1;var r=ft(),e=pt(),t=_o();return He=r?function(o){return r(o)}:e?function(o){if(!o||typeof o!="object"&&typeof o!="function")throw new TypeError("getProto: not an object");return e(o)}:t?function(o){return t(o)}:null,He}var Ye,Wr;function xo(){if(Wr)return Ye;Wr=1;var r=Function.prototype.call,e=Object.prototype.hasOwnProperty,t=Ie;return Ye=t.call(r,e),Ye}var g,No=ct,Io=Vn,Mo=Hn,Fo=Yn,Do=Kn,le=Qn,oe=ce,Lo=Jn,Bo=Xn,jo=Zn,Uo=eo,ko=ro,qo=to,Wo=no,Go=io,mt=Function,Ke=function(r){try{return mt('"use strict"; return ('+r+").constructor;")()}catch{}},me=st,Vo=uo,Qe=function(){throw new oe},Ho=me?function(){try{return arguments.callee,Qe}catch{try{return me(arguments,"callee").get}catch{return Qe}}}():Qe,re=so()(),T=Co(),Yo=pt(),Ko=ft(),vt=yt(),ge=vr,ne={},Qo=typeof Uint8Array>"u"||!T?g:T(Uint8Array),X={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?g:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?g:ArrayBuffer,"%ArrayIteratorPrototype%":re&&T?T([][Symbol.iterator]()):g,"%AsyncFromSyncIteratorPrototype%":g,"%AsyncFunction%":ne,"%AsyncGenerator%":ne,"%AsyncGeneratorFunction%":ne,"%AsyncIteratorPrototype%":ne,"%Atomics%":typeof Atomics>"u"?g:Atomics,"%BigInt%":typeof BigInt>"u"?g:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?g:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?g:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?g:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Io,"%eval%":eval,"%EvalError%":Mo,"%Float16Array%":typeof Float16Array>"u"?g:Float16Array,"%Float32Array%":typeof Float32Array>"u"?g:Float32Array,"%Float64Array%":typeof Float64Array>"u"?g:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?g:FinalizationRegistry,"%Function%":mt,"%GeneratorFunction%":ne,"%Int8Array%":typeof Int8Array>"u"?g:Int8Array,"%Int16Array%":typeof Int16Array>"u"?g:Int16Array,"%Int32Array%":typeof Int32Array>"u"?g:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":re&&T?T(T([][Symbol.iterator]())):g,"%JSON%":typeof JSON=="object"?JSON:g,"%Map%":typeof Map>"u"?g:Map,"%MapIteratorPrototype%":typeof Map>"u"||!re||!T?g:T(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":No,"%Object.getOwnPropertyDescriptor%":me,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?g:Promise,"%Proxy%":typeof Proxy>"u"?g:Proxy,"%RangeError%":Fo,"%ReferenceError%":Do,"%Reflect%":typeof Reflect>"u"?g:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?g:Set,"%SetIteratorPrototype%":typeof Set>"u"||!re||!T?g:T(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?g:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":re&&T?T(""[Symbol.iterator]()):g,"%Symbol%":re?Symbol:g,"%SyntaxError%":le,"%ThrowTypeError%":Ho,"%TypedArray%":Qo,"%TypeError%":oe,"%Uint8Array%":typeof Uint8Array>"u"?g:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?g:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?g:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?g:Uint32Array,"%URIError%":Lo,"%WeakMap%":typeof WeakMap>"u"?g:WeakMap,"%WeakRef%":typeof WeakRef>"u"?g:WeakRef,"%WeakSet%":typeof WeakSet>"u"?g:WeakSet,"%Function.prototype.call%":ge,"%Function.prototype.apply%":vt,"%Object.defineProperty%":Vo,"%Object.getPrototypeOf%":Yo,"%Math.abs%":Bo,"%Math.floor%":jo,"%Math.max%":Uo,"%Math.min%":ko,"%Math.pow%":qo,"%Math.round%":Wo,"%Math.sign%":Go,"%Reflect.getPrototypeOf%":Ko};if(T)try{null.error}catch(r){var Jo=T(T(r));X["%Error.prototype%"]=Jo}var Xo=function r(e){var t;if(e==="%AsyncFunction%")t=Ke("async function () {}");else if(e==="%GeneratorFunction%")t=Ke("function* () {}");else if(e==="%AsyncGeneratorFunction%")t=Ke("async function* () {}");else if(e==="%AsyncGenerator%"){var n=r("%AsyncGeneratorFunction%");n&&(t=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var o=r("%AsyncGenerator%");o&&T&&(t=T(o.prototype))}return X[e]=t,t},Gr={__proto__:null,"%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"]},he=Ie,ze=xo(),Zo=he.call(ge,Array.prototype.concat),ea=he.call(vt,Array.prototype.splice),Vr=he.call(ge,String.prototype.replace),Te=he.call(ge,String.prototype.slice),ra=he.call(ge,RegExp.prototype.exec),ta=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,na=/\\(\\)?/g,oa=function(e){var t=Te(e,0,1),n=Te(e,-1);if(t==="%"&&n!=="%")throw new le("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&t!=="%")throw new le("invalid intrinsic syntax, expected opening `%`");var o=[];return Vr(e,ta,function(i,u,l,c){o[o.length]=l?Vr(c,na,"$1"):u||i}),o},aa=function(e,t){var n=e,o;if(ze(Gr,n)&&(o=Gr[n],n="%"+o[0]+"%"),ze(X,n)){var i=X[n];if(i===ne&&(i=Xo(n)),typeof i>"u"&&!t)throw new oe("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:i}}throw new le("intrinsic "+e+" does not exist!")},gr=function(e,t){if(typeof e!="string"||e.length===0)throw new oe("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new oe('"allowMissing" argument must be a boolean');if(ra(/^%?[^%]*%?$/,e)===null)throw new le("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=oa(e),o=n.length>0?n[0]:"",i=aa("%"+o+"%",t),u=i.name,l=i.value,c=!1,s=i.alias;s&&(o=s[0],ea(n,Zo([0,1],s)));for(var y=1,d=!0;y<n.length;y+=1){var m=n[y],h=Te(m,0,1),v=Te(m,-1);if((h==='"'||h==="'"||h==="`"||v==='"'||v==="'"||v==="`")&&h!==v)throw new le("property names with quotes must have matching quotes");if((m==="constructor"||!d)&&(c=!0),o+="."+m,u="%"+o+"%",ze(X,u))l=X[u];else if(l!=null){if(!(m in l)){if(!t)throw new oe("base intrinsic for "+e+" exists, but the property is not available.");return}if(me&&y+1>=n.length){var w=me(l,m);d=!!w,d&&"get"in w&&!("originalValue"in w.get)?l=w.get:l=l[m]}else d=ze(l,m),l=l[m];d&&!c&&(X[u]=l)}}return l},gt=gr,ht=dt,ia=ht([gt("%String.prototype.indexOf%")]),St=function(e,t){var n=gt(e,!!t);return typeof n=="function"&&ia(e,".prototype.")>-1?ht([n]):n},la=gr,Se=St,ua=xe,ca=ce,Hr=la("%Map%",!0),sa=Se("Map.prototype.get",!0),fa=Se("Map.prototype.set",!0),pa=Se("Map.prototype.has",!0),ya=Se("Map.prototype.delete",!0),da=Se("Map.prototype.size",!0),bt=!!Hr&&function(){var e,t={assert:function(n){if(!t.has(n))throw new ca("Side channel does not contain "+ua(n))},delete:function(n){if(e){var o=ya(e,n);return da(e)===0&&(e=void 0),o}return!1},get:function(n){if(e)return sa(e,n)},has:function(n){return e?pa(e,n):!1},set:function(n,o){e||(e=new Hr),fa(e,n,o)}};return t},ma=gr,Me=St,va=xe,Ae=bt,ga=ce,te=ma("%WeakMap%",!0),ha=Me("WeakMap.prototype.get",!0),Sa=Me("WeakMap.prototype.set",!0),ba=Me("WeakMap.prototype.has",!0),Ea=Me("WeakMap.prototype.delete",!0),Aa=te?function(){var e,t,n={assert:function(o){if(!n.has(o))throw new ga("Side channel does not contain "+va(o))},delete:function(o){if(te&&o&&(typeof o=="object"||typeof o=="function")){if(e)return Ea(e,o)}else if(Ae&&t)return t.delete(o);return!1},get:function(o){return te&&o&&(typeof o=="object"||typeof o=="function")&&e?ha(e,o):t&&t.get(o)},has:function(o){return te&&o&&(typeof o=="object"||typeof o=="function")&&e?ba(e,o):!!t&&t.has(o)},set:function(o,i){te&&o&&(typeof o=="object"||typeof o=="function")?(e||(e=new te),Sa(e,o,i)):Ae&&(t||(t=Ae()),t.set(o,i))}};return n}:Ae,Pa=ce,Oa=xe,$a=Gn,wa=bt,Ra=Aa,za=Ra||wa||$a,Ta=function(){var e,t={assert:function(n){if(!t.has(n))throw new Pa("Side channel does not contain "+Oa(n))},delete:function(n){return!!e&&e.delete(n)},get:function(n){return e&&e.get(n)},has:function(n){return!!e&&e.has(n)},set:function(n,o){e||(e=za()),e.set(n,o)}};return t},_a=String.prototype.replace,Ca=/%20/g,Je={RFC1738:"RFC1738",RFC3986:"RFC3986"},hr={default:Je.RFC3986,formatters:{RFC1738:function(r){return _a.call(r,Ca,"+")},RFC3986:function(r){return String(r)}},RFC1738:Je.RFC1738,RFC3986:Je.RFC3986},xa=hr,Xe=Object.prototype.hasOwnProperty,J=Array.isArray,D=function(){for(var r=[],e=0;e<256;++e)r.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return r}(),Na=function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(J(n)){for(var o=[],i=0;i<n.length;++i)typeof n[i]<"u"&&o.push(n[i]);t.obj[t.prop]=o}}},Et=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},o=0;o<e.length;++o)typeof e[o]<"u"&&(n[o]=e[o]);return n},Ia=function r(e,t,n){if(!t)return e;if(typeof t!="object"){if(J(e))e.push(t);else if(e&&typeof e=="object")(n&&(n.plainObjects||n.allowPrototypes)||!Xe.call(Object.prototype,t))&&(e[t]=!0);else return[e,t];return e}if(!e||typeof e!="object")return[e].concat(t);var o=e;return J(e)&&!J(t)&&(o=Et(e,n)),J(e)&&J(t)?(t.forEach(function(i,u){if(Xe.call(e,u)){var l=e[u];l&&typeof l=="object"&&i&&typeof i=="object"?e[u]=r(l,i,n):e.push(i)}else e[u]=i}),e):Object.keys(t).reduce(function(i,u){var l=t[u];return Xe.call(i,u)?i[u]=r(i[u],l,n):i[u]=l,i},o)},Ma=function(e,t){return Object.keys(t).reduce(function(n,o){return n[o]=t[o],n},e)},Fa=function(r,e,t){var n=r.replace(/\+/g," ");if(t==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},Da=function(e,t,n,o,i){if(e.length===0)return e;var u=e;if(typeof e=="symbol"?u=Symbol.prototype.toString.call(e):typeof e!="string"&&(u=String(e)),n==="iso-8859-1")return escape(u).replace(/%u[0-9a-f]{4}/gi,function(y){return"%26%23"+parseInt(y.slice(2),16)+"%3B"});for(var l="",c=0;c<u.length;++c){var s=u.charCodeAt(c);if(s===45||s===46||s===95||s===126||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||i===xa.RFC1738&&(s===40||s===41)){l+=u.charAt(c);continue}if(s<128){l=l+D[s];continue}if(s<2048){l=l+(D[192|s>>6]+D[128|s&63]);continue}if(s<55296||s>=57344){l=l+(D[224|s>>12]+D[128|s>>6&63]+D[128|s&63]);continue}c+=1,s=65536+((s&1023)<<10|u.charCodeAt(c)&1023),l+=D[240|s>>18]+D[128|s>>12&63]+D[128|s>>6&63]+D[128|s&63]}return l},La=function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],o=0;o<t.length;++o)for(var i=t[o],u=i.obj[i.prop],l=Object.keys(u),c=0;c<l.length;++c){var s=l[c],y=u[s];typeof y=="object"&&y!==null&&n.indexOf(y)===-1&&(t.push({obj:u,prop:s}),n.push(y))}return Na(t),e},Ba=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},ja=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},Ua=function(e,t){return[].concat(e,t)},ka=function(e,t){if(J(e)){for(var n=[],o=0;o<e.length;o+=1)n.push(t(e[o]));return n}return t(e)},At={arrayToObject:Et,assign:Ma,combine:Ua,compact:La,decode:Fa,encode:Da,isBuffer:ja,isRegExp:Ba,maybeMap:ka,merge:Ia},Pt=Ta,$e=At,de=hr,qa=Object.prototype.hasOwnProperty,Yr={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},k=Array.isArray,Wa=Array.prototype.push,Ot=function(r,e){Wa.apply(r,k(e)?e:[e])},Ga=Date.prototype.toISOString,Kr=de.default,_={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:$e.encode,encodeValuesOnly:!1,format:Kr,formatter:de.formatters[Kr],indices:!1,serializeDate:function(e){return Ga.call(e)},skipNulls:!1,strictNullHandling:!1},Va=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},Ze={},Ha=function r(e,t,n,o,i,u,l,c,s,y,d,m,h,v,w,C){for(var S=e,x=C,O=0,$=!1;(x=x.get(Ze))!==void 0&&!$;){var f=x.get(e);if(O+=1,typeof f<"u"){if(f===O)throw new RangeError("Cyclic object value");$=!0}typeof x.get(Ze)>"u"&&(O=0)}if(typeof c=="function"?S=c(t,S):S instanceof Date?S=d(S):n==="comma"&&k(S)&&(S=$e.maybeMap(S,function(V){return V instanceof Date?d(V):V})),S===null){if(i)return l&&!v?l(t,_.encoder,w,"key",m):t;S=""}if(Va(S)||$e.isBuffer(S)){if(l){var M=v?t:l(t,_.encoder,w,"key",m);return[h(M)+"="+h(l(S,_.encoder,w,"value",m))]}return[h(t)+"="+h(String(S))]}var B=[];if(typeof S>"u")return B;var F;if(n==="comma"&&k(S))v&&l&&(S=$e.maybeMap(S,l)),F=[{value:S.length>0?S.join(",")||null:void 0}];else if(k(c))F=c;else{var q=Object.keys(S);F=s?q.sort(s):q}for(var W=o&&k(S)&&S.length===1?t+"[]":t,Q=0;Q<F.length;++Q){var N=F[Q],I=typeof N=="object"&&typeof N.value<"u"?N.value:S[N];if(!(u&&I===null)){var G=k(S)?typeof n=="function"?n(W,N):W:W+(y?"."+N:"["+N+"]");C.set(e,O);var ee=Pt();ee.set(Ze,C),Ot(B,r(I,G,n,o,i,u,n==="comma"&&v&&k(S)?null:l,c,s,y,d,m,h,v,w,ee))}}return B},Ya=function(e){if(!e)return _;if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var t=e.charset||_.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=de.default;if(typeof e.format<"u"){if(!qa.call(de.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var o=de.formatters[n],i=_.filter;return(typeof e.filter=="function"||k(e.filter))&&(i=e.filter),{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:_.addQueryPrefix,allowDots:typeof e.allowDots>"u"?_.allowDots:!!e.allowDots,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:_.charsetSentinel,delimiter:typeof e.delimiter>"u"?_.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:_.encode,encoder:typeof e.encoder=="function"?e.encoder:_.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:_.encodeValuesOnly,filter:i,format:n,formatter:o,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:_.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:_.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:_.strictNullHandling}},Ka=function(r,e){var t=r,n=Ya(e),o,i;typeof n.filter=="function"?(i=n.filter,t=i("",t)):k(n.filter)&&(i=n.filter,o=i);var u=[];if(typeof t!="object"||t===null)return"";var l;e&&e.arrayFormat in Yr?l=e.arrayFormat:e&&"indices"in e?l=e.indices?"indices":"repeat":l="indices";var c=Yr[l];if(e&&"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var s=c==="comma"&&e&&e.commaRoundTrip;o||(o=Object.keys(t)),n.sort&&o.sort(n.sort);for(var y=Pt(),d=0;d<o.length;++d){var m=o[d];n.skipNulls&&t[m]===null||Ot(u,Ha(t[m],m,c,s,n.strictNullHandling,n.skipNulls,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,y))}var h=u.join(n.delimiter),v=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?v+="utf8=%26%2310003%3B&":v+="utf8=%E2%9C%93&"),h.length>0?v+h:""},ue=At,cr=Object.prototype.hasOwnProperty,Qa=Array.isArray,R={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:ue.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Ja=function(r){return r.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},$t=function(r,e){return r&&typeof r=="string"&&e.comma&&r.indexOf(",")>-1?r.split(","):r},Xa="utf8=%26%2310003%3B",Za="utf8=%E2%9C%93",ei=function(e,t){var n={},o=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=t.parameterLimit===1/0?void 0:t.parameterLimit,u=o.split(t.delimiter,i),l=-1,c,s=t.charset;if(t.charsetSentinel)for(c=0;c<u.length;++c)u[c].indexOf("utf8=")===0&&(u[c]===Za?s="utf-8":u[c]===Xa&&(s="iso-8859-1"),l=c,c=u.length);for(c=0;c<u.length;++c)if(c!==l){var y=u[c],d=y.indexOf("]="),m=d===-1?y.indexOf("="):d+1,h,v;m===-1?(h=t.decoder(y,R.decoder,s,"key"),v=t.strictNullHandling?null:""):(h=t.decoder(y.slice(0,m),R.decoder,s,"key"),v=ue.maybeMap($t(y.slice(m+1),t),function(w){return t.decoder(w,R.decoder,s,"value")})),v&&t.interpretNumericEntities&&s==="iso-8859-1"&&(v=Ja(v)),y.indexOf("[]=")>-1&&(v=Qa(v)?[v]:v),cr.call(n,h)?n[h]=ue.combine(n[h],v):n[h]=v}return n},ri=function(r,e,t,n){for(var o=n?e:$t(e,t),i=r.length-1;i>=0;--i){var u,l=r[i];if(l==="[]"&&t.parseArrays)u=[].concat(o);else{u=t.plainObjects?Object.create(null):{};var c=l.charAt(0)==="["&&l.charAt(l.length-1)==="]"?l.slice(1,-1):l,s=parseInt(c,10);!t.parseArrays&&c===""?u={0:o}:!isNaN(s)&&l!==c&&String(s)===c&&s>=0&&t.parseArrays&&s<=t.arrayLimit?(u=[],u[s]=o):c!=="__proto__"&&(u[c]=o)}o=u}return o},ti=function(e,t,n,o){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,u=/(\[[^[\]]*])/,l=/(\[[^[\]]*])/g,c=n.depth>0&&u.exec(i),s=c?i.slice(0,c.index):i,y=[];if(s){if(!n.plainObjects&&cr.call(Object.prototype,s)&&!n.allowPrototypes)return;y.push(s)}for(var d=0;n.depth>0&&(c=l.exec(i))!==null&&d<n.depth;){if(d+=1,!n.plainObjects&&cr.call(Object.prototype,c[1].slice(1,-1))&&!n.allowPrototypes)return;y.push(c[1])}return c&&y.push("["+i.slice(c.index)+"]"),ri(y,t,n,o)}},ni=function(e){if(!e)return R;if(e.decoder!==null&&e.decoder!==void 0&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=typeof e.charset>"u"?R.charset:e.charset;return{allowDots:typeof e.allowDots>"u"?R.allowDots:!!e.allowDots,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:R.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:R.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:R.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:R.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:R.comma,decoder:typeof e.decoder=="function"?e.decoder:R.decoder,delimiter:typeof e.delimiter=="string"||ue.isRegExp(e.delimiter)?e.delimiter:R.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:R.depth,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:R.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:R.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:R.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:R.strictNullHandling}},oi=function(r,e){var t=ni(e);if(r===""||r===null||typeof r>"u")return t.plainObjects?Object.create(null):{};for(var n=typeof r=="string"?ei(r,t):r,o=t.plainObjects?Object.create(null):{},i=Object.keys(n),u=0;u<i.length;++u){var l=i[u],c=ti(l,n[l],t,typeof r=="string");o=ue.merge(o,c,t)}return t.allowSparse===!0?o:ue.compact(o)},ai=Ka,ii=oi,li=hr,er={formats:li,parse:ii,stringify:ai};const ui=a.z.object({entryLabel:a.z.record(a.z.array(a.z.string())),approvalFlow:a.z.array(a.z.string()),blockedAuthorProps:a.z.array(a.z.string()),reportReasons:a.z.record(a.z.string()),regex:a.z.object({uid:a.z.string(),relatedUid:a.z.string(),email:a.z.string(),sorting:a.z.string()}),enabledCollections:a.z.array(a.z.string()),moderatorRoles:a.z.array(a.z.string()),isGQLPluginEnabled:a.z.boolean(),badWords:a.z.boolean().nullable().optional(),gql:a.z.object({auth:a.z.boolean().nullable()}).optional(),client:a.z.object({url:a.z.string().nullable(),contactEmail:a.z.string().nullable()}).default({url:null,contactEmail:null})}),wt=a.z.intersection(a.z.object({id:a.z.number(),uid:a.z.string(),documentId:a.z.string(),createdAt:a.z.string(),updatedAt:a.z.string(),publishedAt:a.z.string().nullable(),locale:a.z.string().nullable().optional()}),a.z.record(a.z.unknown())),ci=a.z.object({id:a.z.union([a.z.number(),a.z.string()]),name:a.z.string().optional().nullable(),email:a.z.string(),avatar:a.z.union([a.z.object({url:a.z.string()}),a.z.object({url:a.z.string(),formats:a.z.object({thumbnail:a.z.object({url:a.z.string()}).nullable()})}),a.z.string()]).nullable().optional()}),Rt=a.z.union([a.z.literal(j.PENDING),a.z.literal(j.APPROVED),a.z.literal(j.REJECTED),a.z.literal(j.BLOCKED),a.z.literal(j.OPEN),a.z.literal(j.REMOVED),a.z.literal(j.TO_REVIEW),a.z.literal(j.UNKNOWN)]),si=a.z.object({id:a.z.number(),reason:a.z.string().optional().nullable(),content:a.z.string(),resolved:a.z.boolean(),createdAt:a.z.string(),updatedAt:a.z.string().nullable()}),_e=a.z.object({id:a.z.number(),content:a.z.string(),blocked:a.z.boolean().nullable(),blockedThread:a.z.boolean().nullable(),blockReason:a.z.string().nullable(),isAdminComment:a.z.boolean().nullable(),removed:a.z.boolean().nullable(),approvalStatus:Rt.nullable(),createdAt:a.z.string(),updatedAt:a.z.string(),reports:a.z.array(si).nullable().optional(),author:ci,gotThread:a.z.boolean().nullable().optional(),threadFirstItemId:a.z.number().nullable().optional()}),zt=a.z.object({page:a.z.number(),pageSize:a.z.number(),pageCount:a.z.number(),total:a.z.number()});function sr(){return _e.extend({related:wt.optional(),documentId:a.z.string(),threadOf:a.z.lazy(()=>_e.merge(a.z.object({related:a.z.string(),threadOf:Tt.nullable().optional(),documentId:a.z.string().optional()}))).nullable().optional()})}const Tt=sr(),fi=a.z.object({pagination:zt,result:a.z.array(Tt)}),pi=a.z.object({entity:wt,selected:_e.merge(a.z.object({related:a.z.string(),threadOf:sr().omit({related:!0}).merge(a.z.object({related:a.z.string()})).nullable().optional()})).nullable(),level:a.z.array(sr().omit({threadOf:!0,related:!0}))}),_t=a.z.object({apiID:a.z.string(),uid:a.z.string(),schema:a.z.object({attributes:a.z.record(a.z.object({type:a.z.union([a.z.literal("string"),a.z.string()])})),collectionName:a.z.string(),description:a.z.string(),displayName:a.z.string(),draftAndPublish:a.z.boolean(),kind:a.z.string(),pluralName:a.z.string(),singularName:a.z.string(),visible:a.z.boolean()})}),yi=a.z.object({data:_t}),di=a.z.object({data:a.z.array(_t)}),mi=a.z.object({author:a.z.unknown(),content:a.z.string(),id:a.z.number(),approvalStatus:Rt.nullable().optional(),reason:a.z.string().optional().nullable(),reports:a.z.array(a.z.unknown()),resolved:a.z.boolean().optional(),updatedAt:a.z.string().nullable(),createdAt:a.z.string(),related:_e}),vi=a.z.object({pagination:zt,result:a.z.array(mi)}),gi=a.z.object({id:a.z.number(),documentId:a.z.string(),name:a.z.string(),code:a.z.string(),description:a.z.string(),createdAt:a.z.string(),updatedAt:a.z.string(),publishedAt:a.z.string(),locale:a.z.string().nullable(),usersCount:a.z.number()}),hi=a.z.object({data:a.z.array(gi)}),Si=a.z.object({data:a.z.object({id:a.z.number(),documentId:a.z.string(),firstname:a.z.string(),lastname:a.z.string(),username:a.z.string().nullable(),email:a.z.string(),isActive:a.z.boolean(),blocked:a.z.boolean(),preferedLanguage:a.z.string().nullable(),createdAt:a.z.string(),updatedAt:a.z.string(),publishedAt:a.z.string(),locale:a.z.null(),roles:a.z.array(a.z.object({id:a.z.number(),name:a.z.string(),description:a.z.string(),code:a.z.string()}))})}),P="comments",bi=b.lodashExports.once(r=>({config:{getKey(){return[P,"config"]},async query(){const e=await r.get(`/${P}/settings/config`);return ui.parseAsync(e.data)}},contentTypeBuilder:{single:{getKey(e,t){return[P,"moderate","content-type",t,e]},async query(e){const t=await r.get(`/content-type-builder/content-types/${e}`);return yi.parseAsync(t.data).then(n=>n.data)}},all:{getKey(){return[P,"moderate","content-types"]},async query(){const e=await r.get("/content-type-builder/content-types");return di.parseAsync(e.data).then(t=>t.data)}}},roles:{getKey(){return[P,"moderate","roles"]},async query(){const e=await r.get("/admin/roles");return hi.parseAsync(e.data).then(t=>t.data)}},user:{getKey(){return[P,"moderate","user"]},async query(){const e=await r.get("/admin/users/me");return Si.parseAsync(e.data).then(t=>t.data)}},comments:{findAll:{getKey(e){return[P,"moderate","all",e?JSON.stringify(e):void 0].filter(Boolean)},async query(e){const t=await r.get(`/${P}/moderate/all?${er.stringify(e,{encode:!1})}`);return fi.parseAsync(t.data)}},findOne:{getKey(e,t){return[P,"details",e?.toString(),t?JSON.stringify(t):void 0].filter(Boolean)},async query(e,t){const n=b.lodashExports.isEmpty(t)?"":`?${er.stringify(t,{encode:!1})}`,o=await r.get(`/${P}/moderate/single/${e}${n}`);return pi.parseAsync(o.data)}},approve(e){return r.put(`/${P}/moderate/single/${e}/approve`)},reject(e){return r.put(`/${P}/moderate/single/${e}/reject`)},block(e){return r.put(`/${P}/moderate/single/${e}/block`)},unblock(e){return r.put(`/${P}/moderate/single/${e}/unblock`)},blockThread(e){return r.put(`/${P}/moderate/thread/${e}/block`)},unBlockThread(e){return r.put(`/${P}/moderate/thread/${e}/unblock`)},delete(e){return r.del(`/${P}/moderate/single/${e}/delete`)},postComment({id:e,content:t,author:n}){return r.post(`/${P}/moderate/thread/${e}/postComment`,{content:t,author:n})},updateComment({id:e,content:t}){return r.put(`/${P}/moderate/single/${e}/update`,{content:t})}},reports:{findAll:{getKey(e){return[P,"moderate","reports",e?JSON.stringify(e):void 0].filter(Boolean)},async query(e){const t=await r.get(`/${P}/moderate/reports${e?`?${er.stringify(e,{encode:!1})}`:""}`);return vi.parseAsync(t.data)}},resolve({id:e,reportId:t}){return r.put(`/${P}/moderate/single/${e}/report/${t}/resolve`)},resolveMultipleReports({reportIds:e}){return r.put(`/${P}/moderate/multiple/report/resolve`,{reportIds:e})},resolveCommentMultipleReports({id:e,reportIds:t}){return r.put(`/${P}/moderate/single/${e}/report/resolve`,{reportIds:t})},resolveAllAbuseReportsForComment(e){return r.put(`/${P}/moderate/all/${e}/report/resolve`)},resolveAllAbuseReportsForThread(e){return r.put(`/${P}/moderate/thread/${e}/report/resolve-thread`)}},settings:{update(e){return r.put(`/${P}/settings/config`,e)},restore(){return r.del(`/${P}/settings/config`)},restart(){return r.post(`/${P}/settings/restart`)}}})),Ct=()=>{const r=Qr.getFetchClient();return Y.useMemo(()=>bi(r),[r])},xt=Y.createContext(null),Ei=({children:r})=>{const e=Ct(),{data:t}=fr.useQuery({queryKey:e.user.getKey(),queryFn:e.user.query});return t?z.jsx(xt.Provider,{value:t,children:r}):null},Ai=new fr.QueryClient({defaultOptions:{queries:{retry:!1,refetchOnWindowFocus:!1}}}),Pi=({children:r})=>{const{theme:e}=Ht();return z.jsx(fr.QueryClientProvider,{client:Ai,children:z.jsx(b.DesignSystemProvider,{theme:e,children:z.jsx(Ei,{children:r})})})},Oi=()=>{const r=Y.useMemo(()=>({access:b.pluginPermissions.access,moderate:b.pluginPermissions.moderate,accessReports:b.pluginPermissions.reports,reviewReports:b.pluginPermissions.reportsReview,settings:b.pluginPermissions.settings,settingsChange:b.pluginPermissions.settingsChange}),[]),{isLoading:e,allowedActions:{canCommentsModerate:t,canCommentsRead:n,canReportsRead:o,canSettingsChange:i,canSettingsRead:u,canReportsReview:l}}=Qr.useRBAC(r);return{isLoadingForPermissions:e,canAccess:n||o||u,canModerate:t,canAccessReports:o,canReviewReports:l,canSettings:u,canSettingsChange:i}},$i=({title:r,onConfirm:e,Trigger:t,labelConfirm:n,iconConfirm:o,labelCancel:i,children:u})=>{const[l,c]=Y.useState(!1),[s,y]=Y.useState(!1),d=()=>c(h=>!h),m=async()=>{y(!0),await e(),y(!1),d()};return z.jsxs(b.Dialog.Root,{open:l,children:[z.jsx(b.Dialog.Trigger,{children:z.jsx(t,{onClick:d})}),z.jsxs(b.Dialog.Content,{children:[z.jsx(b.Dialog.Header,{children:r}),z.jsx(b.Dialog.Body,{children:z.jsxs(b.Flex,{justifyContent:"center",direction:"column",children:[z.jsx(b.ForwardRef$3,{fill:"danger500",stroke:"danger500",height:"24",width:"24"}),z.jsx(b.Typography,{id:"confirm-description",children:u})]})}),z.jsxs(b.Dialog.Footer,{children:[z.jsx(b.Dialog.Cancel,{children:z.jsx(b.Button,{onClick:d,disabled:s,variant:"tertiary",children:i||"Cancel"})}),z.jsx(b.Dialog.Action,{children:z.jsx(b.Button,{onClick:m,variant:"danger-light",loading:s,disabled:s,startIcon:o,children:n})})]})]})]})};exports.COMMENT_STATUS=j;exports.CommonProviders=Pi;exports.ConfirmationDialog=$i;exports.REPORT_REASON=rt;exports.REPORT_STATUS=ln;exports.UserContext=xt;exports.getMessage=an;exports.useAPI=Ct;exports.useIntl=Ce;exports.usePermissions=Oi;
|