From 0614fd2b67b6232fd6dbb0c5063e9345dccee7ca Mon Sep 17 00:00:00 2001 From: David Stone Date: Thu, 15 Oct 2026 13:07:38 -0600 Subject: [PATCH 1/3] wip: add reduced-motion edit controls --- DESIGN.md | 4 ++++ dist/sce-editing.js | 2 +- dist/sce-frontend.css | 2 +- dist/sce-frontend.css.map | 2 +- includes/Admin/Tabs/Settings.php | 11 +++++++++++ includes/Options.php | 2 ++ readme.txt | 6 ++++++ simple-comment-editing.php | 3 +++ src/js/comment-editing/editing.js | 17 +++++++++-------- src/scss/frontend.scss | 9 +++++++++ 10 files changed, 47 insertions(+), 11 deletions(-) diff --git a/DESIGN.md b/DESIGN.md index 125101c..4c54693 100644 --- a/DESIGN.md +++ b/DESIGN.md @@ -292,6 +292,9 @@ Follow: - Keep focus in the inline editor after a failed request and announce the returned message through its status region. - Disable every editor action while a save or deletion is in progress, then restore the relevant controls on a retryable failure. - Keep the optional Quicktags toolbar within the editor width and allow its native buttons to wrap on narrow screens. +- Keep controls hidden and outside keyboard navigation until the uncached `sce_get_time_left` AJAX response confirms permission. A failed check must not reveal the editor. +- Retain the default 0.6-second reveal, but skip it when the administrator enables Reduced Motion or the browser requests `prefers-reduced-motion: reduce`. This changes presentation only, not ownership, nonces, or edit windows. +- Do not infer immediate permission from HTML, login state, or unlimited-editing settings: personalized comment pages must bypass shared caches, and an authoritative AJAX round trip is still required. Avoid: @@ -303,6 +306,7 @@ Responsive/accessibility notes: - Keyboard users must be able to open, cancel, save, and delete through native button behavior. - When Quicktags is enabled, its native keyboard-accessible toolbar is an enhancement to the textarea, not a replacement for save, cancel, or error feedback. - The editor's error status is announced immediately; the action preserves its expanded state when a retry is possible. +- Motion preferences must not move focus or change button themes. Preserve the existing stacked save/cancel/delete layout at widths up to 600px; verify the same controls at desktop and mobile widths. #### Frontend asset loading controls diff --git a/dist/sce-editing.js b/dist/sce-editing.js index 4d60147..eb1e537 100644 --- a/dist/sce-editing.js +++ b/dist/sce-editing.js @@ -1,2 +1,2 @@ /*! For license information please see sce-editing.js.LICENSE.txt */ -(()=>{var e={144(e,t,r){"use strict";var n=r(743),o=r(621),i=r(76),a=r(119);e.exports=a||n.call(i,o)},621(e){"use strict";e.exports=Function.prototype.apply},76(e){"use strict";e.exports=Function.prototype.call},126(e,t,r){"use strict";var n=r(743),o=r(675),i=r(76),a=r(144);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new o("a function is required");return a(n,i,e)}},119(e){"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},176(e,t,r){"use strict";var n,o=r(126),i=r(795);try{n=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var a=!!n&&i&&i(Object.prototype,"__proto__"),s=Object,c=s.getPrototypeOf;e.exports=a&&"function"==typeof a.get?o([a.get]):"function"==typeof c&&function(e){return c(null==e?e:s(e))}},237(e){"use strict";e.exports=EvalError},383(e){"use strict";e.exports=Error},290(e){"use strict";e.exports=RangeError},538(e){"use strict";e.exports=ReferenceError},68(e){"use strict";e.exports=SyntaxError},675(e){"use strict";e.exports=TypeError},345(e){"use strict";e.exports=URIError},612(e){"use strict";e.exports=Object},353(e){"use strict";var t=Object.prototype.toString,r=Math.max,n=function(e,t){for(var r=[],n=0;n-1e3&&e<1e3||S.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-A(-e):A(e);if(n!==e){var o=String(n),i=b.call(t,o.length+1);return v.call(o,r,"$&_")+"."+v.call(v.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(t,r,"$&_")}var k=r(634),I=k.custom,F=H(I)?I:null,U={__proto__:null,double:'"',single:"'"},B={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function M(e,t,r){var n=r.quoteStyle||t,o=U[n];return o+e+o}function q(e){return v.call(String(e),/"/g,""")}function W(e){return!C||!("object"==typeof e&&(C in e||void 0!==e[C]))}function z(e){return"[object Array]"===V(e)&&W(e)}function $(e){return"[object RegExp]"===V(e)&&W(e)}function H(e){if(T)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!P)return!1;try{return P.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,o,s){var c=n||{};if(J(c,"quoteStyle")&&!J(U,c.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(J(c,"maxStringLength")&&("number"==typeof c.maxStringLength?c.maxStringLength<0&&c.maxStringLength!==1/0:null!==c.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var m=!J(c,"customInspect")||c.customInspect;if("boolean"!=typeof m&&"symbol"!==m)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(J(c,"indent")&&null!==c.indent&&"\t"!==c.indent&&!(parseInt(c.indent,10)===c.indent&&c.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(J(c,"numericSeparator")&&"boolean"!=typeof c.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=c.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return Q(t,c);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var S=String(t);return w?D(t,S):S}if("bigint"==typeof t){var A=String(t)+"n";return w?D(t,A):A}var j=void 0===c.depth?5:c.depth;if(void 0===o&&(o=0),o>=j&&j>0&&"object"==typeof t)return z(t)?"[Array]":"[Object]";var I,B=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=_.call(Array(e.indent+1)," ")}return{base:r,prev:_.call(Array(t+1),r)}}(c,o);if(void 0===s)s=[];else if(G(s,t)>=0)return"[Circular]";function K(t,r,n){if(r&&(s=x.call(s)).push(r),n){var i={depth:c.depth};return J(c,"quoteStyle")&&(i.quoteStyle=c.quoteStyle),e(t,i,o+1,s)}return e(t,c,o+1,s)}if("function"==typeof t&&!$(t)){var X=function(e){if(e.name)return e.name;var t=g.call(h.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),ne=re(t,K);return"[Function"+(X?": "+X:" (anonymous)")+"]"+(ne.length>0?" { "+_.call(ne,", ")+" }":"")}if(H(t)){var oe=T?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):P.call(t);return"object"!=typeof t||T?oe:Z(oe)}if((I=t)&&"object"==typeof I&&("undefined"!=typeof HTMLElement&&I instanceof HTMLElement||"string"==typeof I.nodeName&&"function"==typeof I.getAttribute)){for(var ie="<"+O.call(String(t.nodeName)),ae=t.attributes||[],se=0;se"}if(z(t)){if(0===t.length)return"[]";var ce=re(t,K);return B&&!function(e){for(var t=0;t=0)return!1;return!0}(ce)?"["+te(ce,B)+"]":"[ "+_.call(ce,", ")+" ]"}if(function(e){return"[object Error]"===V(e)&&W(e)}(t)){var le=re(t,K);return"cause"in Error.prototype||!("cause"in t)||N.call(t,"cause")?0===le.length?"["+String(t)+"]":"{ ["+String(t)+"] "+_.call(le,", ")+" }":"{ ["+String(t)+"] "+_.call(E.call("[cause]: "+K(t.cause),le),", ")+" }"}if("object"==typeof t&&m){if(F&&"function"==typeof t[F]&&k)return k(t,{depth:j-o});if("symbol"!==m&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{l.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ue=[];return a&&a.call(t,function(e,r){ue.push(K(r,t,!0)+" => "+K(e,t))}),ee("Map",i.call(t),ue,B)}if(function(e){if(!l||!e||"object"!=typeof e)return!1;try{l.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var fe=[];return u&&u.call(t,function(e){fe.push(K(e,t))}),ee("Set",l.call(t),fe,B)}if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Y("WeakMap");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Y("WeakSet");if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{return d.call(e),!0}catch(e){}return!1}(t))return Y("WeakRef");if(function(e){return"[object Number]"===V(e)&&W(e)}(t))return Z(K(Number(t)));if(function(e){if(!e||"object"!=typeof e||!R)return!1;try{return R.call(e),!0}catch(e){}return!1}(t))return Z(K(R.call(t)));if(function(e){return"[object Boolean]"===V(e)&&W(e)}(t))return Z(y.call(t));if(function(e){return"[object String]"===V(e)&&W(e)}(t))return Z(K(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==r.g&&t===r.g)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===V(e)&&W(e)}(t)&&!$(t)){var pe=re(t,K),de=L?L(t)===Object.prototype:t instanceof Object||t.constructor===Object,ye=t instanceof Object?"":"null prototype",me=!de&&C&&Object(t)===t&&C in t?b.call(V(t),8,-1):ye?"Object":"",he=(de||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(me||ye?"["+_.call(E.call([],me||[],ye||[]),": ")+"] ":"");return 0===pe.length?he+"{}":B?he+"{"+te(pe,B)+"}":he+"{ "+_.call(pe,", ")+" }"}return String(t)};var K=Object.prototype.hasOwnProperty||function(e){return e in this};function J(e,t){return K.call(e,t)}function V(e){return m.call(e)}function G(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;rt.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Q(b.call(e,0,t.maxStringLength),t)+n}var o=B[t.quoteStyle||"single"];return o.lastIndex=0,M(v.call(v.call(e,o,"\\$1"),/[\x00-\x1f]/g,X),"single",t)}function X(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":"")+w.call(t.toString(16))}function Z(e){return"Object("+e+")"}function Y(e){return e+" { ? }"}function ee(e,t,r,n){return e+" ("+t+") {"+(n?te(r,n):_.call(r,", "))+"}"}function te(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+_.call(e,","+r)+"\n"+t.prev}function re(e,t){var r=z(e),n=[];if(r){n.length=e.length;for(var o=0;o{var t;return()=>{if(e){var r=e;e=0,t={exports:{}},r.call(t.exports,t,t.exports)}return t.exports}},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.dn=e=>{var t=Object.getOwnPropertyDescriptor(e,"name");(!t||!t.writable&&t.configurable)&&Object.defineProperty(e,"name",{value:"default",configurable:!0})},(()=>{"use strict";var e=r.cw(function(e,t){var n=o(),i=r(126),a=i([n("%String.prototype.indexOf%")]);e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&a(e,".prototype.")>-1?i([r]):r}}),t=r.cw(function(e,t){var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch(e){r=!1}e.exports=r}),n=()=>r(675),o=r.cw(function(e,o){var b,v=r(612),w=r(383),O=r(237),S=r(290),E=r(538),_=r(68),x=n(),A=r(345),R=f(),j=p(),P=d(),T=y(),C=m(),N=h(),L=g(),D=Function,k=function(e){try{return D('"use strict"; return ('+e+").constructor;")()}catch(e){}},I=c(),F=t(),U=function(){throw new x},B=I?function(){try{return U}catch(e){try{return I(arguments,"callee").get}catch(e){return U}}}():U,M=l()(),q=s(),W=i(),z=a(),$=r(621),H=r(76),K={},J="undefined"!=typeof Uint8Array&&q?q(Uint8Array):b,V={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?b:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?b:ArrayBuffer,"%ArrayIteratorPrototype%":M&&q?q([][Symbol.iterator]()):b,"%AsyncFromSyncIteratorPrototype%":b,"%AsyncFunction%":K,"%AsyncGenerator%":K,"%AsyncGeneratorFunction%":K,"%AsyncIteratorPrototype%":K,"%Atomics%":"undefined"==typeof Atomics?b:Atomics,"%BigInt%":"undefined"==typeof BigInt?b:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?b:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?b:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?b:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":w,"%eval%":eval,"%EvalError%":O,"%Float16Array%":"undefined"==typeof Float16Array?b:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?b:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?b:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?b:FinalizationRegistry,"%Function%":D,"%GeneratorFunction%":K,"%Int8Array%":"undefined"==typeof Int8Array?b:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?b:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?b:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":M&&q?q(q([][Symbol.iterator]())):b,"%JSON%":"object"==typeof JSON?JSON:b,"%Map%":"undefined"==typeof Map?b:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&M&&q?q((new Map)[Symbol.iterator]()):b,"%Math%":Math,"%Number%":Number,"%Object%":v,"%Object.getOwnPropertyDescriptor%":I,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?b:Promise,"%Proxy%":"undefined"==typeof Proxy?b:Proxy,"%RangeError%":S,"%ReferenceError%":E,"%Reflect%":"undefined"==typeof Reflect?b:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?b:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&M&&q?q((new Set)[Symbol.iterator]()):b,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?b:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":M&&q?q(""[Symbol.iterator]()):b,"%Symbol%":M?Symbol:b,"%SyntaxError%":_,"%ThrowTypeError%":B,"%TypedArray%":J,"%TypeError%":x,"%Uint8Array%":"undefined"==typeof Uint8Array?b:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?b:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?b:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?b:Uint32Array,"%URIError%":A,"%WeakMap%":"undefined"==typeof WeakMap?b:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?b:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?b:WeakSet,"%Function.prototype.call%":H,"%Function.prototype.apply%":$,"%Object.defineProperty%":F,"%Object.getPrototypeOf%":W,"%Math.abs%":R,"%Math.floor%":j,"%Math.max%":P,"%Math.min%":T,"%Math.pow%":C,"%Math.round%":N,"%Math.sign%":L,"%Reflect.getPrototypeOf%":z};if(q)try{null.error}catch(e){var G=q(q(e));V["%Error.prototype%"]=G}var Q=function e(t){var r;if("%AsyncFunction%"===t)r=k("async function () {}");else if("%GeneratorFunction%"===t)r=k("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=k("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&q&&(r=q(o.prototype))}return V[t]=r,r},X={__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"]},Z=r(743),Y=u(),ee=Z.call(H,Array.prototype.concat),te=Z.call($,Array.prototype.splice),re=Z.call(H,String.prototype.replace),ne=Z.call(H,String.prototype.slice),oe=Z.call(H,RegExp.prototype.exec),ie=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ae=/\\(\\)?/g,se=function(e,t){var r,n=e;if(Y(X,n)&&(n="%"+(r=X[n])[0]+"%"),Y(V,n)){var o=V[n];if(o===K&&(o=Q(n)),void 0===o&&!t)throw new x("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new _("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new x("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new x('"allowMissing" argument must be a boolean');if(null===oe(/^%?[^%]*%?$/,e))throw new _("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=ne(e,0,1),r=ne(e,-1);if("%"===t&&"%"!==r)throw new _("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new _("invalid intrinsic syntax, expected opening `%`");var n=[];return re(e,ie,function(e,t,r,o){n[n.length]=r?re(o,ae,"$1"):t||e}),n}(e),n=r.length>0?r[0]:"",o=se("%"+n+"%",t),i=o.name,a=o.value,s=!1,c=o.alias;c&&(n=c[0],te(r,ee([0,1],c)));for(var l=1,u=!0;l=r.length){var y=I(a,f);a=(u=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:a[f]}else u=Y(a,f),a=a[f];u&&!s&&(V[i]=a)}}return a}}),i=()=>r(64),a=()=>r(648),s=()=>r(628),c=()=>r(795),l=()=>r(39),u=()=>r(957),f=()=>r(514),p=()=>r(968),d=()=>r(188),y=()=>r(2),m=()=>r(880),h=()=>r(414),g=()=>r(93),b=()=>r(859),v=r.cw(function(e,t){var r=String.prototype.replace,n=/%20/g,o="RFC3986";e.exports={default:o,formatters:{RFC1738:function(e){return r.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:o}}),w=r.cw(function(e,t){var r=S(),n=O(),o=v();e.exports={formats:o,parse:n,stringify:r}}),O=r.cw(function(e,t){var r=E(),n=Object.prototype.hasOwnProperty,o=Array.isArray,i={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:r.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},a=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},s=function(e,t,r){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1){if(t.throwOnLimitExceeded)for(var n=0,o=e.indexOf(",");o>-1;){if((n+=1)>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");o=e.indexOf(",",o+1)}return e.split(",")}if(t.throwOnLimitExceeded&&r>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},c=function(e,t,o,i){if(e){var a=function(e,t){var r=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(t.depth<=0){if(!t.plainObjects&&n.call(Object.prototype,r)&&!t.allowPrototypes)return;return[r]}var o=[],i=r.indexOf("["),a=i>=0?r.slice(0,i):r;if(a){if(!t.plainObjects&&n.call(Object.prototype,a)&&!t.allowPrototypes)return;o[o.length]=a}for(var s=r.length,c=i,l=0;c>=0&&l=0){if(!0===t.strictDepth)throw new RangeError("Input depth exceeded depth option of "+t.depth+" and strictDepth is true");o[o.length]="["+r.slice(c)+"]"}return o}(e,o);if(a)return function(e,t,n,o){var i=0;if(e.length>0&&"[]"===e[e.length-1]){var a=e.slice(0,-1).join("");i=Array.isArray(t)&&t[a]?t[a].length:0}for(var c=o?t:s(t,n,i),l=e.length-1;l>=0;--l){var u,f=e[l];if("[]"===f&&n.parseArrays)u=r.isOverflow(c)?c:n.allowEmptyArrays&&(""===c||n.strictNullHandling&&null===c)?[]:r.combine([],c,n.arrayLimit,n.plainObjects,n.throwOnLimitExceeded);else{u=n.plainObjects?{__proto__:null}:{};var p="["===f.charAt(0)&&"]"===f.charAt(f.length-1)?f.slice(1,-1):f,d=n.decodeDotInKeys?p.replace(/%2E/g,"."):p,y=parseInt(d,10),m=!isNaN(y)&&f!==d&&String(y)===d&&y>=0&&n.parseArrays;if(n.parseArrays||""!==d)if(m&&yu)throw new RangeError("Parameter limit exceeded. Only "+u+" parameter"+(1===u?"":"s")+" allowed.");var p,d=-1,y=t.charset;if(t.charsetSentinel)for(p=0;p-1&&(h=o(h)?[h]:h),t.comma&&o(h)&&h.length>t.arrayLimit&&(h=r.combine([],h,t.arrayLimit,t.plainObjects,t.throwOnLimitExceeded)),null!==m){var w=n.call(c,m);w&&("combine"===t.duplicates||g.indexOf("[]=")>-1)?c[m]=r.combine(c[m],h,t.arrayLimit,t.plainObjects,t.throwOnLimitExceeded):w&&"last"!==t.duplicates||(c[m]=h)}}return c}(e,l):e,f=l.plainObjects?{__proto__:null}:{},p=Object.keys(u),d=0;dx)throw new RangeError("Input depth exceeded depth option of "+x);for(var j,P=_,T=0,C=!1;void 0!==(P=P.get(d))&&!C;){var N=P.get(t);if(T+=1,void 0!==N){if(N===T)throw new RangeError("Cyclic object value");C=!0}void 0===P.get(d)&&(T=0)}if((R="function"==typeof h?h(o,R):R)instanceof Date?R=v(R):"comma"===i&&s(R)&&(R=n.maybeMap(R,function(e){return e instanceof Date?v(e):e})),null===R){if(u)return O(m&&!S?m(o,p.encoder,E,"key",w):o);R=""}if("string"==typeof(j=R)||"number"==typeof j||"boolean"==typeof j||"symbol"==typeof j||"bigint"==typeof j||n.isBuffer(R))return m?[O(S?o:m(o,p.encoder,E,"key",w))+"="+O(m(R,p.encoder,E,"value",w))]:[O(o)+"="+O(String(R))];var L,D=[];if(void 0===R)return D;if("comma"===i&&s(R))S&&m&&(R=n.maybeMap(R,function(e){return null==e?e:m(e)})),L=[{value:R.length>0?R.join(",")||null:void 0}];else if(s(h))L=h;else{var k=Object.keys(R);L=g?k.sort(g):k}var I=y?String(o).replace(/\./g,"%2E"):String(o),F=a&&s(R)&&1===R.length?I+"[]":I;if(c&&s(R)&&0===R.length&&0===Object.keys(R).length)return F+"[]";for(var U=0;U0?S+O:""}}),E=r.cw(function(e,r){var n=v(),o=A(),i=t(),a=Object.prototype.hasOwnProperty,s=Array.isArray,c=o(),l=function(e,t){return c.set(e,t),e},u=function(e){return c.has(e)},f=function(e){return c.get(e)},p=function(e,t){c.set(e,t)},d=function(){for(var e=[],t=0;t<256;++t)e[e.length]="%"+((t<16?"0":"")+t.toString(16)).toUpperCase();return e}(),y=function(e,t){for(var r=t&&t.plainObjects?{__proto__:null}:{},n=0;nr){if(o)throw new RangeError("Array limit exceeded. Only "+r+" element"+(1===r?"":"s")+" allowed in an array.");return l(y(d,{plainObjects:n}),d.length-1)}return d},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=o(),n=0;n1;){var t=e.pop(),r=t.obj[t.prop];if(s(r)){for(var n=[],o=0;o=h?a.slice(c,c+h):a;if(c+h=55296&&u<=56319&&(l=l.slice(0,-1),c-=1)}for(var f=[],p=0;p=48&&y<=57||y>=65&&y<=90||y>=97&&y<=122||i===n.RFC1738&&(40===y||41===y)?f[f.length]=l.charAt(p):y<128?f[f.length]=d[y]:y<2048?f[f.length]=d[192|y>>6]+d[128|63&y]:y<55296||y>=57344?f[f.length]=d[224|y>>12]+d[128|y>>6&63]+d[128|63&y]:(p+=1,y=65536+((1023&y)<<10|1023&l.charCodeAt(p)),f[f.length]=d[240|y>>18]+d[128|y>>12&63]+d[128|y>>6&63]+d[128|63&y])}s+=f.join("")}return s},isBuffer:function(e){return!(!e||"object"!=typeof e||!e.constructor||"function"!=typeof e.constructor.isBuffer||!e.constructor.isBuffer(e))},isOverflow:u,isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},markOverflow:l,maybeMap:function(e,t){if(s(e)){for(var r=[],n=0;n=n.arrayLimit){if(n.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+n.arrayLimit+" element"+(1===n.arrayLimit?"":"s")+" allowed in an array.");return l(y(t.concat(r),n),o)}t[o]=r}else{if(!t||"object"!=typeof t)return[t,r];if(u(t)){var i=f(t)+1;t[i]=r,p(t,i)}else{if(n&&n.strictMerge)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!a.call(Object.prototype,r))&&(t[r]=!0)}}return t}if(!t||"object"!=typeof t){if(u(r)){for(var c=Object.keys(r),d=n&&n.plainObjects?{__proto__:null,0:t}:{0:t},h=0;hn.arrayLimit){if(n.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+n.arrayLimit+" element"+(1===n.arrayLimit?"":"s")+" allowed in an array.");return l(y(g,n),g.length-1)}return g}var b=t;if(s(t)&&!s(r)&&(b=y(t,n)),s(t)&&s(r)){if(r.forEach(function(r,o){if(a.call(t,o)){var i=t[o];i&&"object"==typeof i&&r&&"object"==typeof r?t[o]=e(i,r,n):t[t.length]=r}else t[o]=r}),n&&"number"==typeof n.arrayLimit&&t.length>n.arrayLimit){if(n.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+n.arrayLimit+" element"+(1===n.arrayLimit?"":"s")+" allowed in an array.");return l(y(t,n),t.length-1)}return t}return Object.keys(r).reduce(function(t,o){var i=r[o];if(a.call(t,o)?m(t,o,e(t[o],i,n)):m(t,o,i),u(r)&&!u(t)&&l(t,f(r)),u(t)){var s=parseInt(o,10);String(s)===o&&s>=0&&s>f(t)&&p(t,s)}return t},b)}}}),_=r.cw(function(t,r){var i=o(),a=e(),s=b(),c=n(),l=i("%Map%",!0),u=a("Map.prototype.get",!0),f=a("Map.prototype.set",!0),p=a("Map.prototype.has",!0),d=a("Map.prototype.delete",!0),y=a("Map.prototype.size",!0);t.exports=!!l&&function(){var e,t={assert:function(e){if(!t.has(e))throw new c("Side channel does not contain "+s(e))},delete:function(t){if(e){var r=d(e,t);return 0===y(e)&&(e=void 0),r}return!1},get:function(t){if(e)return u(e,t)},has:function(t){return!!e&&p(e,t)},set:function(t,r){e||(e=new l),f(e,t,r)}};return t}}),x=r.cw(function(t,r){var i=o(),a=e(),s=b(),c=_(),l=n(),u=i("%WeakMap%",!0),f=a("WeakMap.prototype.get",!0),p=a("WeakMap.prototype.set",!0),d=a("WeakMap.prototype.has",!0),y=a("WeakMap.prototype.delete",!0);t.exports=u?function(){var e,t,r={assert:function(e){if(!r.has(e))throw new l("Side channel does not contain "+s(e))},delete:function(r){if(u&&r&&("object"==typeof r||"function"==typeof r)){if(e)return y(e,r)}else if(c&&t)return t.delete(r);return!1},get:function(r){return u&&r&&("object"==typeof r||"function"==typeof r)&&e?f(e,r):t&&t.get(r)},has:function(r){return u&&r&&("object"==typeof r||"function"==typeof r)&&e?d(e,r):!!t&&t.has(r)},set:function(r,n){u&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new u),p(e,r,n)):c&&(t||(t=c()),t.set(r,n))}};return r}:c}),A=r.cw(function(e,t){var o=n(),i=b(),a=r(803),s=_(),c=x()||s||a;e.exports=function(){var e,t={assert:function(e){if(!t.has(e)){var r=e&&Object(e)===e?"the given object key":i(e);throw new o("Side channel does not contain "+r)}},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,r){e||(e=c()),e.set(t,r)}};return t}}),R={};function j(e,t){return function(){return e.apply(t,arguments)}}r.r(R),r.d(R,{hasBrowserEnv:()=>lt,hasStandardBrowserEnv:()=>ft,hasStandardBrowserWebWorkerEnv:()=>pt,navigator:()=>ut,origin:()=>dt});const{toString:P}=Object.prototype,{getPrototypeOf:T}=Object,{iterator:C,toStringTag:N}=Symbol,L=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),D=e=>"string"==typeof e&&("__proto__"===e||"constructor"===e||"prototype"===e),k=(e,t,r)=>e===Object.prototype||!r&&null===t,I=(e,t)=>{let r=e;const n=[];for(;null!=r;){if(-1!==n.indexOf(r))return!1;n.push(r);const o=T(r);if(k(r,o,r===e))return!1;if(L(r,t))return!0;r=o}return!1},F=(U=Object.create(null),e=>{const t=P.call(e);return U[t]||(U[t]=t.slice(8,-1).toLowerCase())});var U;const B=e=>(e=e.toLowerCase(),t=>F(t)===e),M=e=>t=>typeof t===e,{isArray:q}=Array,W=M("undefined");function z(e){return null!==e&&!W(e)&&null!==e.constructor&&!W(e.constructor)&&K(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const $=B("ArrayBuffer"),H=M("string"),K=M("function"),J=M("number"),V=e=>null!==e&&"object"==typeof e,G=e=>{if(!V(e))return!1;const t=T(e);return!(null!==t&&t!==Object.prototype&&null!==T(t)||I(e,N)||I(e,C))},Q=B("Date"),X=B("File"),Z=B("Blob"),Y=B("FileList"),ee=B("Set"),te="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==r.g?r.g:{},re=void 0!==te.FormData?te.FormData:void 0,ne=B("URLSearchParams"),[oe,ie,ae,se]=["ReadableStream","Request","Response","Headers"].map(B);function ce(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,o;if("object"!=typeof e&&(e=[e]),q(e))for(n=0,o=e.length;n0;)if(n=r[o],t===n.toLowerCase())return n;return null}const ue="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:r.g,fe=e=>!W(e)&&e!==ue,pe=(de="undefined"!=typeof Uint8Array&&T(Uint8Array),e=>de&&e instanceof de);var de;const ye=B("HTMLFormElement"),{propertyIsEnumerable:me}=Object.prototype,he=B("RegExp"),ge=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};ce(r,(r,o)=>{let i;!1!==(i=t(r,o,e))&&(n[o]=i||r)}),Object.defineProperties(e,n)},be=B("AsyncFunction"),ve=(we="function"==typeof setImmediate,Oe=K(ue.postMessage),we?setImmediate:Oe?(Se=`axios@${Math.random()}`,Ee=[],ue.addEventListener("message",({source:e,data:t})=>{e===ue&&t===Se&&Ee.length&&Ee.shift()()},!1),e=>{Ee.push(e),ue.postMessage(Se,"*")}):e=>setTimeout(e));var we,Oe,Se,Ee;const _e="undefined"!=typeof queueMicrotask?queueMicrotask.bind(ue):"undefined"!=typeof process&&process.nextTick||ve,xe=e=>null!=e&&K(e[C]),Ae={isArray:q,isArrayBuffer:$,isBuffer:z,isFormData:e=>{if(!e)return!1;if(re&&e instanceof re)return!0;const t=T(e);if(!t||t===Object.prototype)return!1;if(!K(e.append))return!1;const r=F(e);return"formdata"===r||"object"===r&&K(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&$(e.buffer),t},isString:H,isNumber:J,isBoolean:e=>!0===e||!1===e,isObject:V,isPlainObject:G,isEmptyObject:e=>{if(!V(e)||z(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:oe,isRequest:ie,isResponse:ae,isHeaders:se,isUndefined:W,isDate:Q,isFile:X,isReactNativeBlob:e=>!(!e||void 0===e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:Z,isRegExp:he,isFunction:K,isStream:e=>V(e)&&K(e.pipe),isURLSearchParams:ne,isTypedArray:pe,isFileList:Y,forEach:ce,merge:function e(...t){const{caseless:r,skipUndefined:n}=fe(this)&&this||{},o={},i=(t,i)=>{if("__proto__"===i||"constructor"===i||"prototype"===i)return;const a=r&&"string"==typeof i&&le(o,i)||i,s=L(o,a)?o[a]:void 0;G(s)&&G(t)?o[a]=e(s,t):G(t)?o[a]=e({},t):q(t)?o[a]=t.slice():n&&W(t)||(o[a]=t)};for(let e=0,r=t.length;e(ce(t,(t,n)=>{r&&K(t)?Object.defineProperty(e,n,{__proto__:null,value:j(t,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,n,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],n&&!n(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==r&&T(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:F,kindOfTest:B,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(q(e))return e;let t=e.length;if(!J(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[C]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:ye,hasOwnProperty:L,hasOwnProp:L,hasOwnInPrototypeChain:I,getSafeProp:(e,t)=>null!=e&&I(e,t)?e[t]:void 0,toSafeFlatObject:e=>{if(null==e||"object"!=typeof e&&"function"!=typeof e)return e;const t=T(e);if(null===t&&(e=>{if(!Object.isExtensible(e))return!1;const t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&t.push(...Object.getOwnPropertySymbols(e)),t.every(t=>{if(D(t))return!1;const r=Object.getOwnPropertyDescriptor(e,t);return!!r&&r.configurable&&!0===r.writable})})(e))return e;const r=Object.create(null),n=Object.create(null),o=[];let i=e;for(;null!=i&&-1===o.indexOf(i);){o.push(i);const a=i===e?t:T(i);if(k(i,a,i===e))break;const s=Object.getOwnPropertyNames(i);Object.getOwnPropertySymbols&&s.push(...Object.getOwnPropertySymbols(i));for(const t of s)D(t)||L(n,t)||(r[t]=e[t],n[t]=!0);i=a}return r},reduceDescriptors:ge,freezeMethods:e=>{ge(e,(t,r)=>{if(K(e)&&["arguments","caller","callee"].includes(r))return!1;const n=e[r];K(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))})},toObjectSet:(e,t)=>{const r={},n=e=>{e.forEach(e=>{r[e]=!0})};return q(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:le,global:ue,isContextDefined:fe,isSpecCompliantForm:function(e){return!!(e&&K(e.append)&&"FormData"===e[N]&&e[C])},toJSONObject:e=>{const t=new WeakSet,r=e=>{if(V(e)){if(t.has(e))return;if(z(e))return e;if(!("toJSON"in e)){let n;if(t.add(e),ee(e)){n=[];for(const t of e){const e=r(t);!W(e)&&n.push(e)}}else n=q(e)?[]:{},ce(e,(e,t)=>{const o=r(e);!W(o)&&(n[t]=o)});return t.delete(e),n}}return e};return r(e)},isAsyncFn:be,isThenable:e=>e&&(V(e)||K(e))&&K(e.then)&&K(e.catch),setImmediate:ve,asap:_e,isIterable:xe,isSafeIterable:e=>null!=e&&I(e,C)&&xe(e)},Re=Ae.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),je=e=>{const t={};let r,n,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),r=e.substring(0,o).trim().toLowerCase(),n=e.substring(o+1).trim();const i=Ae.hasOwnProp(t,r);!r||i&&Ae.hasOwnProp(Re,r)||("set-cookie"===r?i?t[r].push(n):t[r]=[n]:t[r]=i?t[r]+", "+n:n)}),t};r.dn(je);const Pe=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),Te=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Ce(e,t){return Ae.isArray(e)?e.map(e=>Ce(e,t)):function(e){let t=0,r=e.length;for(;tt;){const t=e.charCodeAt(r-1);if(9!==t&&32!==t)break;r-=1}return 0===t&&r===e.length?e:e.slice(t,r)}(String(e).replace(t,""))}function Ne(e){const t=Object.create(null);return Ae.forEach(e.toJSON(),(e,r)=>{t[r]=(e=>Ce(e,Te))(e)}),t}const Le=Symbol("internals");function De(e){return e&&String(e).trim().toLowerCase()}function ke(e){return!1===e||null==e?e:Ae.isArray(e)?e.map(ke):(e=>Ce(e,Pe))(String(e))}const Ie=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function Fe(e){let t=0,r=e.length;for(;tt;){const t=e.charCodeAt(r-1);if(9!==t&&32!==t)break;r-=1}return 0===t&&r===e.length?e:e.slice(t,r)}function Ue(e,t,r,n,o){return Ae.isFunction(n)?n.call(this,t,r):(o&&(t=r),Ae.isString(t)?Ae.isString(n)?-1!==t.indexOf(n):Ae.isRegExp(n)?n.test(t):void 0:void 0)}class Be{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function o(e,t,r){const o=De(t);if(!o)return;const i=Ae.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||t]=ke(e))}const i=(e,t)=>Ae.forEach(e,(e,r)=>o(e,r,t));if(Ae.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(Ae.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i(je(e),t);else if(Ae.isObject(e)&&Ae.isSafeIterable(e)){let r,n,o=Object.create(null);for(const t of e){if(!Ae.isArray(t))throw new TypeError("Object iterator must return a key-value pair");n=t[0],Ae.hasOwnProp(o,n)?(r=o[n],o[n]=Ae.isArray(r)?[...r,t[1]]:[r,t[1]]):o[n]=t[1]}i(o,t)}else null!=e&&o(t,e,r);return this}get(e,t){if(e=De(e)){const r=Ae.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if(Ae.isFunction(t))return t.call(this,e,r);if(Ae.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=De(e)){const r=Ae.findKey(this,e);return!(!r||void 0===this[r]||t&&!Ue(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function o(e){if(e=De(e)){const o=Ae.findKey(r,e);!o||t&&!Ue(0,r[o],o,t)||(delete r[o],n=!0)}}return Ae.isArray(e)?e.forEach(o):o(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const o=t[r];e&&!Ue(0,this[o],o,e,!0)||(delete this[o],n=!0)}return n}normalize(e){const t=this,r={};return Ae.forEach(this,(n,o)=>{const i=Ae.findKey(r,o);if(i)return t[i]=ke(n),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}(o):String(o).trim();a!==o&&delete t[o],t[a]=ke(n),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Ae.forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&Ae.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){const e=this.get("set-cookie");return Ae.isArray(e)?e:null==e||!1===e?[]:[e]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return function(e){const t=Object.create(null),r=String(e);let n=0,o=!1,i=!1;function a(e){const o=Fe(r.slice(n,e)),i=o.indexOf("=");if(i<1)return;const a=Fe(o.slice(0,i));if(!Ie.test(a))return;const s=a.toLowerCase();if("__proto__"===s||"constructor"===s||"prototype"===s)return;const c=Fe(o.slice(i+1));t[s]=function(e){const t=e.length-1;if(t<1||34!==e.charCodeAt(0)||34!==e.charCodeAt(t))return e;let r="";for(let n=1;n=t))return e;r+=e[n]}return r}(c)}for(let e=0;er.set(e)),r}static accessor(e){const t=(this[Le]=this[Le]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=De(e);t[n]||(function(e,t){const r=Ae.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{__proto__:null,value:function(e,r,o){return this[n].call(this,t,e,r,o)},configurable:!0})})}(r,e),t[n]=!0)}return Ae.isArray(e)?e.forEach(n):n(e),this}}Be.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Ae.reduceDescriptors(Be.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),Ae.freezeMethods(Be);const Me=Be,qe="[REDACTED ****]";function We(e){try{return String(e)}catch(e){return""}}class ze extends Error{static from(e,t,r,n,o,i){let a=e.message;!a&&Ae.isArray(e.errors)&&e.errors.length&&(a=function(e){return e.errors.map(e=>{try{return e&&e.message?We(e.message):We(e)}catch(e){return""}}).filter(Boolean).join("; ")||e.name||"AggregateError"}(e));const s=new ze(a,t||e.code,r,n,o);return Object.defineProperty(s,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),s.name=e.name,null!=e.status&&null==s.status&&(s.status=e.status),i&&Object.assign(s,i),s}constructor(e,t,r,n,o){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status)}toJSON(){const e=this.config,t=e&&Ae.hasOwnProp(e,"redact")?e.redact:void 0,r=Ae.isArray(t)&&t.length>0?function(e,t){const r=new Set(t.map(e=>String(e).toLowerCase())),n=[],o=e=>{if(null===e||"object"!=typeof e)return e;if(Ae.isBuffer(e))return e;if(-1!==n.indexOf(e))return;let t;if(e instanceof Me&&(e=e.toJSON()),n.push(e),Ae.isArray(e))t=[],e.forEach((e,r)=>{const n=o(e);Ae.isUndefined(n)||(t[r]=n)});else{if(!Ae.isPlainObject(e)&&function(e){if(Ae.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(Ae.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(e))return n.pop(),e;t=Object.create(null);for(const[n,i]of Object.entries(e)){const e=r.has(n.toLowerCase())?qe:o(i);Ae.isUndefined(e)||(t[n]=e)}}return n.pop(),t};return o(e)}(e,t):Ae.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}}ze.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",ze.ERR_BAD_OPTION="ERR_BAD_OPTION",ze.ECONNABORTED="ECONNABORTED",ze.ETIMEDOUT="ETIMEDOUT",ze.ECONNREFUSED="ECONNREFUSED",ze.ERR_NETWORK="ERR_NETWORK",ze.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",ze.ERR_DEPRECATED="ERR_DEPRECATED",ze.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",ze.ERR_BAD_REQUEST="ERR_BAD_REQUEST",ze.ERR_CANCELED="ERR_CANCELED",ze.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",ze.ERR_INVALID_URL="ERR_INVALID_URL",ze.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const $e=ze;function He(e){return Ae.isPlainObject(e)||Ae.isArray(e)}function Ke(e){return Ae.endsWith(e,"[]")?e.slice(0,-2):e}function Je(e,t,r){return e?e.concat(t).map(function(e,t){return e=Ke(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}const Ve=Ae.toFlatObject(Ae,{},null,function(e){return/^is[A-Z]/.test(e)}),Ge=function(e,t,r){if(!Ae.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(e,t)=>{const n=Ae.getSafeProp(r,e);return Ae.isUndefined(n)?t:n},o=n("metaTokens",!0),i=n("visitor")||y,a=n("dots",!1),s=n("indexes",!1),c=n("Blob")||"undefined"!=typeof Blob&&Blob,l=n("maxDepth",100),u=c&&Ae.isSpecCompliantForm(t),f=[];if(!Ae.isFunction(i))throw new TypeError("visitor must be a function");function p(e){if(null===e)return"";if(Ae.isDate(e))return e.toISOString();if(Ae.isBoolean(e))return e.toString();if(!u&&Ae.isBlob(e))throw new $e("Blob is not supported. Use a Buffer instead.");if(Ae.isArrayBuffer(e)||Ae.isTypedArray(e)){if(u&&"function"==typeof c)return new c([e]);throw new $e("Blob is not supported. Use a Buffer instead.",$e.ERR_NOT_SUPPORT)}return e}function d(e){if(e>l)throw new $e("Object is too deeply nested ("+e+" levels). Max depth: "+l,$e.ERR_FORM_DATA_DEPTH_EXCEEDED)}function y(e,r,n){let i=e;if(Ae.isReactNative(t)&&Ae.isReactNativeBlob(e))return t.append(Je(n,r,a),p(e)),!1;if(e&&!n&&"object"==typeof e)if(Ae.endsWith(r,"{}"))r=o?r:r.slice(0,-2),e=function(e){if(l===1/0)return JSON.stringify(e);const t=[];return JSON.stringify(e,function(e,r){if(!Ae.isObject(r))return r;for(;t.length&&t[t.length-1]!==this;)t.pop();return t.push(r),d(1+t.length-1),r})}(e);else if(Ae.isArray(e)&&function(e){return Ae.isArray(e)&&!e.some(He)}(e)||(Ae.isFileList(e)||Ae.endsWith(r,"[]"))&&(i=Ae.toArray(e)))return r=Ke(r),i.forEach(function(e,n){!Ae.isUndefined(e)&&null!==e&&t.append(!0===s?Je([r],n,a):null===s?r:r+"[]",p(e))}),!1;return!!He(e)||(t.append(Je(n,r,a),p(e)),!1)}const m=Object.assign(Ve,{defaultVisitor:y,convertValue:p,isVisitable:He});if(!Ae.isObject(e))throw new TypeError("data must be an object");return function e(r,n,o=0){if(!Ae.isUndefined(r)){if(d(o),-1!==f.indexOf(r))throw new Error("Circular reference detected in "+n.join("."));f.push(r),Ae.forEach(r,function(r,a){!0===(!(Ae.isUndefined(r)||null===r)&&i.call(t,r,Ae.isString(a)?a.trim():a,n,m))&&e(r,n?n.concat(a):[a],o+1)}),f.pop()}}(e),t};function Qe(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function Xe(e,t){this._pairs=[],e&&Ge(e,this,t)}const Ze=Xe.prototype;Ze.append=function(e,t){this._pairs.push([e,t])},Ze.toString=function(e){const t=e?t=>e.call(this,t,Qe):Qe;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};const Ye=Xe;function et(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function tt(e,t,r){if(!t)return e;e=e||"";const n=Ae.isFunction(r)?{serialize:r}:r,o=Ae.getSafeProp(n,"encode")||et,i=Ae.getSafeProp(n,"serialize");let a;if(a=i?i(t,n):Ae.isURLSearchParams(t)?t.toString():new Ye(t,n).toString(o),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}const rt=Symbol("internals");function nt(e){return e?e.length:0}function ot(e){if(e)for(;e.length&&null===e[e.length-1];)e.pop()}function it(e,t){const r=e.handlers,n=nt(r);r!==t.handlersRef?(t.handlersRef=r,t.handlerEntries.clear()):n!==t.handlersLength&&(n?t.handlerEntries.forEach(function(e,n){r[e.index]!==e.handler&&t.handlerEntries.delete(n)}):t.handlerEntries.clear()),t.handlersLength=n}const at=class{constructor(){this.handlers=[],this[rt]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(e,t,r){const n={fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null},o=this[rt];null==this.handlers&&(this.handlers=[]),it(this,o);const i=o.nextId++;return this.handlers.push(n),o.handlerEntries.set(i,{handler:n,index:this.handlers.length-1}),o.handlersLength=this.handlers.length,i}eject(e){const t=this[rt];it(this,t);const r=t.handlerEntries.get(e);if(r){if(t.handlerEntries.delete(e),this.handlers[r.index]!==r.handler)return;this.handlers[r.index]=null,t.iterationDepth||(ot(this.handlers),t.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],it(this,this[rt]))}forEach(e){const t=this[rt];it(this,t),t.iterationDepth++;try{Ae.forEach(this.handlers,function(t){null!==t&&e(t)})}finally{--t.iterationDepth||(it(this,t),ot(this.handlers),t.handlersLength=nt(this.handlers))}}},st={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},ct={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Ye,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},lt="undefined"!=typeof window&&"undefined"!=typeof document,ut="object"==typeof navigator&&navigator||void 0,ft=lt&&(!ut||["ReactNative","NativeScript","NS"].indexOf(ut.product)<0),pt="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,dt=lt&&window.location.href||"http://localhost",yt={...R,...ct};function mt(e){if(e>100)throw new $e("FormData field is too deeply nested ("+e+" levels). Max depth: 100",$e.ERR_FORM_DATA_DEPTH_EXCEEDED)}const ht=function(e){function t(e,r,n,o){mt(o);let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;return i=!i&&Ae.isArray(n)?n.length:i,s?(Ae.hasOwnProp(n,i)?n[i]=Ae.isArray(n[i])?n[i].concat(r):[n[i],r]:n[i]=r,!a):(Ae.hasOwnProp(n,i)&&Ae.isObject(n[i])||(n[i]=[]),t(e,r,n[i],o)&&Ae.isArray(n[i])&&(n[i]=function(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n{t(function(e){const t=[],r=/[^.[\]]+|\[([^.[\]]*)]/g;let n;for(;null!==(n=r.exec(e));)mt(t.length),t.push("[]"===n[0]?"":n[1]||n[0]);return t}(e),n,r,0)}),r}return null},gt=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),bt=(e,t)=>null!=e&&Ae.hasOwnProp(e,t)?e[t]:void 0,vt={transitional:st,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=Ae.isObject(e);if(o&&Ae.isHTMLForm(e)&&(e=new FormData(e)),Ae.isFormData(e))return n?JSON.stringify(ht(e)):e;if(Ae.isArrayBuffer(e)||Ae.isBuffer(e)||Ae.isStream(e)||Ae.isFile(e)||Ae.isBlob(e)||Ae.isReadableStream(e))return e;if(Ae.isArrayBufferView(e))return e.buffer;if(Ae.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){const t=bt(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Ge(e,new yt.classes.URLSearchParams,{visitor:function(e,t,r,n){return yt.isNode&&Ae.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...t})}(e,t).toString();if((i=Ae.isFileList(e))||r.indexOf("multipart/form-data")>-1){const r=bt(this,"env"),n=r&&r.FormData;return Ge(i?{"files[]":e}:e,n&&new n,t)}}return o||n?(t.setContentType("application/json",!1),function(e){if(Ae.isString(e))try{return(0,JSON.parse)(e),Ae.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=bt(this,"transitional")||vt.transitional,r=t&&t.forcedJSONParsing,n=bt(this,"responseType"),o="json"===n;if(Ae.isResponse(e)||Ae.isReadableStream(e))return e;if(e&&Ae.isString(e)&&(r&&!n||o)){const r=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e,bt(this,"parseReviver"))}catch(e){if(r){if("SyntaxError"===e.name)throw $e.from(e,$e.ERR_BAD_RESPONSE,this,null,bt(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:yt.classes.FormData,Blob:yt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ae.forEach(gt,e=>{vt.headers[e]={}});const wt=vt;function Ot(e,t){const r=this||wt,n=t||r,o=Me.from(n.headers);let i=n.data;return Ae.forEach(e,function(e){i=e.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function St(e){return!(!e||!e.__CANCEL__)}const Et=class extends $e{constructor(e,t,r){super(e??"canceled",$e.ERR_CANCELED,t,r),this.name="CanceledError",this.__CANCEL__=!0}};function _t(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new $e("Request failed with status code "+r.status,r.status>=400&&r.status<500?$e.ERR_BAD_REQUEST:$e.ERR_BAD_RESPONSE,r.config,r.request,r)):e(r)}const xt=/[\t\n\r]/g;function At(e){if("string"!=typeof e)return e;let t=0;for(;t{let n=0;const o=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),l=n[a];o||(o=c),r[i]=s,n[i]=c;let u=a,f=0;for(;u!==i;)f+=r[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o{o=i,r=null,n&&(clearTimeout(n),n=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=i?a(e,t):(r=e,n||(n=setTimeout(()=>{n=null,a(r)},i-s)))},()=>r&&a(r),(...e)=>a(e)]}(r=>{if(!r||!Ae.isNumber(r.loaded))return;const i=r.loaded,a=r.lengthComputable?r.total:void 0,s=Math.max(0,null!=a?Math.min(i,a):i),c=Math.max(0,s-n),l=o(c);n=Math.max(n,s),e({loaded:s,total:a,progress:a?s/a:void 0,bytes:c,rate:l||void 0,estimated:l&&a?(a-s)/l:void 0,event:r,lengthComputable:null!=a,[t?"download":"upload"]:!0})},r)},Pt=(e,t)=>{const r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Tt=(e,t=Ae.asap)=>(...r)=>t(()=>e(...r)),Ct=yt.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,yt.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(yt.origin),yt.navigator&&/(msie|trident)/i.test(yt.navigator.userAgent)):()=>!0,Nt=yt.hasStandardBrowserEnv?{write(e,t,r,n,o,i,a){if("undefined"==typeof document)return;const s=[`${e}=${encodeURIComponent(t)}`];Ae.isNumber(r)&&s.push(`expires=${new Date(r).toUTCString()}`),Ae.isString(n)&&s.push(`path=${n}`),Ae.isString(o)&&s.push(`domain=${o}`),!0===i&&s.push("secure"),Ae.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.split(";");for(let r=0;rnull,remove(){}},Lt=/^https?:(?!\/\/)/i;function Dt(e,t){if("string"==typeof e){const r=At(e);if(Lt.test(r))throw new $e(`Invalid URL ${JSON.stringify(function(e){const t=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${qe}@`),r=t.indexOf("#"),n=(-1===r?t:t.slice(0,r)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${qe}`);return-1===r?n:`${n}#${o=t.slice(r+1),o?o.replace(/(^|&)([^=&]*=)?[^&]+/g,(e,t,r="")=>`${t}${r}${qe}`):o}`;var o}(r))}: missing "//" after protocol`,$e.ERR_INVALID_URL,t)}}function kt(e,t,r,n){Dt(t,n);let o=!("string"==typeof(i=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(i));var i;return e&&(o||!1===r)?(Dt(e,n),function(e,t){if(!t)return e;let r=e.length;for(;r>0&&47===e.charCodeAt(r-1);)r--;return e.slice(0,r)+"/"+t.replace(/^\/+/,"")}(e,t)):t}const It=e=>e instanceof Me?{...e}:e;function Ft(e,t){e=e||{},t=t||{};const r=Object.create(null);function n(e,t,r,n){return Ae.isPlainObject(e)&&Ae.isPlainObject(t)?Ae.merge.call({caseless:n},e,t):Ae.isPlainObject(t)?Ae.merge({},t):Ae.isArray(t)?t.slice():t}function o(e,t,r,o){return Ae.isUndefined(t)?Ae.isUndefined(e)?void 0:n(void 0,e,0,o):n(e,t,0,o)}function i(e,t){if(!Ae.isUndefined(t))return n(void 0,t)}function a(e,t){return Ae.isUndefined(t)?Ae.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function s(r,o,i){return Ae.hasOwnProp(t,i)?n(r,o):Ae.hasOwnProp(e,i)?n(void 0,r):void 0}Object.defineProperty(r,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutErrorMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,allowedSocketPaths:a,responseEncoding:a,validateStatus:s,headers:(e,t,r)=>o(It(e),It(t),0,!0)};var l;return Ae.forEach((l={...e,...t},Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(l).concat(Object.getOwnPropertySymbols(l).filter(e=>Object.getOwnPropertyDescriptor(l,e).enumerable)):Object.keys(l)),function(n){if("__proto__"===n||"constructor"===n||"prototype"===n)return;const i=Ae.hasOwnProp(c,n)?c[n]:o,a=i(Ae.hasOwnProp(e,n)?e[n]:void 0,Ae.hasOwnProp(t,n)?t[n]:void 0,n);Ae.isUndefined(a)&&i!==s||(r[n]=a)}),Ae.hasOwnProp(t,"validateStatus")&&Ae.isUndefined(t.validateStatus)&&!1===function(r){const n=Ae.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!Ae.isUndefined(n)){if(!Ae.isPlainObject(n))return;if(Ae.hasOwnProp(n,r))return n[r]}const o=Ae.hasOwnProp(e,"transitional")?e.transitional:void 0;if(Ae.isPlainObject(o)&&Ae.hasOwnProp(o,r))return o[r]}("validateStatusUndefinedResolves")&&(Ae.hasOwnProp(e,"validateStatus")?r.validateStatus=n(void 0,e.validateStatus):delete r.validateStatus),r}const Ut=["content-type","content-length"],Bt=function(e){const t=Ft({},e),r=e=>Ae.hasOwnProp(t,e)?t[e]:void 0,n=r("data");let o=r("withXSRFToken");const i=r("xsrfHeaderName"),a=r("xsrfCookieName");let s=r("headers");const c=r("auth"),l=r("baseURL"),u=r("allowAbsoluteUrls"),f=r("url");if(t.headers=s=Me.from(s),t.url=tt(kt(l,f,u,t),r("params"),r("paramsSerializer")),c){const t=Ae.getSafeProp(c,"username")||"",r=Ae.getSafeProp(c,"password")||"";try{s.set("Authorization","Basic "+btoa(t+":"+(r?encodeURIComponent(r).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))):"")))}catch(t){throw $e.from(t,$e.ERR_BAD_OPTION_VALUE,e)}}if(Ae.isFormData(n)){const e=Ae.getSafeProp(n,"getHeaders");yt.hasStandardBrowserEnv||yt.hasStandardBrowserWebWorkerEnv||Ae.isReactNative(n)?s.setContentType(void 0):Ae.isFunction(e)&&function(e,t,r){"content-only"===r?Object.entries(t||{}).forEach(([t,r])=>{Ut.includes(t.toLowerCase())&&e.set(t,r)}):e.set(t)}(s,e.call(n),r("formDataHeaderPolicy"))}if(yt.hasStandardBrowserEnv&&(Ae.isFunction(o)&&(o=o(t)),!0===o||null==o&&Ct(t.url))){const e=i&&a&&Nt.read(a);e&&s.set(i,e)}return t},Mt="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){const n=Bt(e);let o=n.data;const i=Me.from(n.headers).normalize();let a,s,c,l,u,f,{responseType:p,onUploadProgress:d,onDownloadProgress:y}=n;function m(){l&&l(),u&&u(),n.cancelToken&&n.cancelToken.unsubscribe(a),n.signal&&n.signal.removeEventListener("abort",a)}let h=new XMLHttpRequest;function g(o){if(!h)return;if(!(0!==h.status||"file"===(Rt(At(n.url))||Rt(yt.origin))||h.responseURL&&h.responseURL.startsWith("file:")))return r(new $e("Request aborted",$e.ECONNABORTED,e,h)),m(),void(h=null);try{o?f&&f(o):u&&u()}catch(e){setTimeout(()=>{throw e})}if(!h)return;const i=Me.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());_t(function(e){t(e),m()},function(e){r(e),m()},{data:p&&"text"!==p&&"json"!==p?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:i,config:e,request:h}),h=null}h.open(n.method.toUpperCase(),n.url,!0),h.timeout=n.timeout,"onloadend"in h?h.onloadend=g:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&h.responseURL.startsWith("file:"))&&setTimeout(g)},h.onabort=function(){h&&(r(new $e("Request aborted",$e.ECONNABORTED,e,h)),m(),h=null)},h.onerror=function(t){const n=t&&t.message?t.message:"Network Error",o=new $e(n,$e.ERR_NETWORK,e,h);o.event=t||null,r(o),m(),h=null},h.ontimeout=function(){let t=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const o=n.transitional||st;n.timeoutErrorMessage&&(t=n.timeoutErrorMessage),r(new $e(t,o.clarifyTimeoutError?$e.ETIMEDOUT:$e.ECONNABORTED,e,h)),m(),h=null},void 0===o&&i.setContentType(null),"setRequestHeader"in h&&Ae.forEach(Ne(i),function(e,t){h.setRequestHeader(t,e)}),Ae.isUndefined(n.withCredentials)||(h.withCredentials=!!n.withCredentials),p&&"json"!==p&&(h.responseType=n.responseType),y&&([c,u,f]=jt(y,!0),h.addEventListener("progress",c)),d&&h.upload&&([s,l]=jt(d),h.upload.addEventListener("progress",s),h.upload.addEventListener("loadend",l)),(n.cancelToken||n.signal)&&(a=t=>{h&&(r(!t||t.type?new Et(null,e,h):t),h.abort(),m(),h=null)},n.cancelToken&&n.cancelToken.subscribe(a),n.signal&&(n.signal.aborted?a():n.signal.addEventListener("abort",a)));const b=Rt(n.url);if(b&&!yt.protocols.includes(b))return r(new $e("Unsupported protocol "+b+":",$e.ERR_BAD_REQUEST,e)),void m();h.send(o||null)})},qt=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const r=new AbortController;let n=!1;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof $e?t:new Et(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,o(new $e(`timeout of ${t}ms exceeded`,$e.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>{n||(e.aborted?o.call(e):e.addEventListener("abort",o,{once:!0}))});const{signal:s}=r;return s.unsubscribe=()=>Ae.asap(a),s},Wt=function*(e,t){let r=e.byteLength;if(!t||r{const o=async function*(e,t){for await(const r of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}}(e))yield*Wt(r,t)}(e,t);let i,a=0,s=e=>{i||(i=!0,n&&n(e))};return new ReadableStream({async pull(e){try{const{done:t,value:n}=await o.next();if(t)return s(),void e.close();let i=n.byteLength;if(r){let e=a+=i;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},$t=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,Ht=(e,t,r)=>t+2e<=57?e-48:(223&e)-55,Jt=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||43===e||47===e||45===e||95===e,Vt=e=>9===e||10===e||12===e||13===e||32===e,Gt=e=>{const t=e.length;let r=0,n=0,o=!1;for(let i=0;i0?o=!0:r++:n++)}return o||n>2||n>0&&(r+n)%4!=0||r%4==1?(e=>{const t=e.length;let r=0;return t>0&&61===e.charCodeAt(t-1)&&(r++,t>1&&61===e.charCodeAt(t-2)&&r++),Math.floor(3*(t-r)/4)})(e):(e=>{const t=e%4;return 3*Math.floor(e/4)+(2===t?1:3===t?2:0)})(r)},Qt={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:Xt}=Ae,Zt=e=>{if(!Ae.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},Yt=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},er=e=>{const t=void 0!==Ae.global&&null!==Ae.global?Ae.global:globalThis,{ReadableStream:r,TextEncoder:n}=t;e=Ae.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:o,Request:i,Response:a}=e,s=o?Xt(o):"function"==typeof fetch,c=Xt(i),l=Xt(a);if(!s)return!1;const u=s&&Xt(r),f=s&&("function"==typeof n?(p=new n,e=>p.encode(e)):async e=>new Uint8Array(await new i(e).arrayBuffer()));var p;const d=c&&u&&Yt(()=>{let e=!1;const t=new i(yt.origin,{body:new r,method:"POST",get duplex(){return e=!0,"half"}}),n=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!n}),y=l&&u&&Yt(()=>Ae.isReadableStream(new a("").body)),m={stream:y&&(e=>e.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!m[e]&&(m[e]=(t,r)=>{let n=t&&t[e];if(n)return n.call(t);throw new $e(`Response type '${e}' is not supported`,$e.ERR_NOT_SUPPORT,r)})});const h=async e=>{if(null==e)return 0;if(Ae.isBlob(e))return e.size;if(Ae.isSpecCompliantForm(e)){const t=new i(yt.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Ae.isArrayBufferView(e)||Ae.isArrayBuffer(e)?e.byteLength:(Ae.isURLSearchParams(e)&&(e+=""),Ae.isString(e)?(await f(e)).byteLength:void 0)};return async e=>{let{url:t,method:r,data:s,signal:l,cancelToken:f,timeout:p,onDownloadProgress:g,onUploadProgress:b,responseType:v,headers:w,withCredentials:O="same-origin",fetchOptions:S,maxContentLength:E,maxBodyLength:_,maxRedirects:x}=Bt(e);const A=Ae.isNumber(E)&&E>-1,R=Ae.isNumber(_)&&_>-1;let j=o||fetch;v=v?(v+"").toLowerCase():"text";let P=qt([l,f&&f.toAbortSignal()],p),T=null;const C=P&&P.unsubscribe&&(()=>{P.unsubscribe()});let N,L=null;const D=()=>new $e("Request body larger than maxBodyLength limit",$e.ERR_BAD_REQUEST,e,T);try{let o;const l=(I="auth",Ae.hasOwnProp(e,I)?e[I]:void 0);if(l){o={username:Ae.getSafeProp(l,"username")||"",password:Ae.getSafeProp(l,"password")||""}}if((e=>{const t=e.indexOf("://");let r=e;return-1!==t&&(r=r.slice(t+3)),r.includes("@")||r.includes(":")})(t)){const e=new URL(t,yt.origin);if(!o&&(e.username||e.password)){o={username:Zt(e.username),password:Zt(e.password)}}(e.username||e.password)&&(e.username="",e.password="",t=e.href)}if(o&&(w.delete("authorization"),w.set("Authorization","Basic "+btoa((k=(o.username||"")+":"+(o.password||""),encodeURIComponent(k).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))))))),A&&"string"==typeof t&&t.startsWith("data:")){const r=function(e){const t="string"==typeof e?e.indexOf("#"):-1;return((e,t)=>{if(!e||"string"!=typeof e)return 0;if(!e.startsWith("data:"))return 0;const r=e.indexOf(",");if(r<0)return 0;const n=e.slice(5,r),o=e.slice(r+1);if(/;base64/i.test(n))return t(o);let i=0;for(let e=0,t=o.length;e=55296&&r<=56319&&e+1=56320&&t<=57343?(i+=4,e++):i+=3}else i+=3}return i})(-1===t?e:e.slice(0,t),Gt)}(t);if(r>E)throw new $e("maxContentLength size of "+E+" exceeded",$e.ERR_BAD_RESPONSE,e,T)}if(R&&"get"!==r&&"head"!==r){const e=await h(s);if("number"==typeof e&&isFinite(e)&&(N=e,e>_))throw D()}const f=R&&(Ae.isReadableStream(s)||Ae.isStream(s)),p=(e,t,r)=>zt(e,65536,e=>{if(R&&e>_)throw L=D();t&&t(e)},r);if(d&&"get"!==r&&"head"!==r&&(b||f)){if(N=N??await(async(e,t)=>Ae.toFiniteNumber(e.getContentLength())??h(t))(w,s),0!==N||f){let e,r=new i(t,{method:"POST",body:s,duplex:"half"});if(Ae.isFormData(s)&&(e=r.headers.get("content-type"))&&w.setContentType(e),r.body){const[e,t]=b&&Pt(N,jt(Tt(b)))||[];s=p(r.body,e,t)}}}else if(f&&!c&&u&&"get"!==r&&"head"!==r)s=p(s);else if(f&&c&&!d&&"get"!==r&&"head"!==r)throw new $e("Stream request bodies are not supported by the current fetch implementation",$e.ERR_NOT_SUPPORT,e,T);Ae.isString(O)||(O=O?"include":"omit");const F=c&&"credentials"in i.prototype;if(Ae.isFormData(s)){const e=w.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&w.delete("content-type")}w.set("User-Agent","axios/1.20.0",!1);const U=null==S?S:Object.assign(Object.create(null),S);U&&(delete U.body,delete U.headers,delete U.method,delete U.signal,delete U.duplex,delete U.credentials);const B=Object.assign(Object.create(null),U,{signal:P,method:r.toUpperCase(),headers:Ne(w.normalize()),body:s,duplex:"half",credentials:F?O:void 0});c&&(Ae.forEach(Qt,(e,t)=>{void 0===B[t]&&(B[t]=e)}),void 0===B.signal&&(B.signal=null),void 0===B.body&&(B.body=null)),0===x&&(B.redirect="manual",U&&(U.redirect="manual")),T=c&&new i(t,B);let M=await(c?j(T,U):j(t,B));const q=Me.from(M.headers);if(A){const t=Ae.toFiniteNumber(q.getContentLength());if(null!=t&&t>E)throw new $e("maxContentLength size of "+E+" exceeded",$e.ERR_BAD_RESPONSE,e,T)}const W=y&&("stream"===v||"response"===v);if(y&&M.body&&(g||A||W&&C)){const t={};["status","statusText","headers"].forEach(e=>{t[e]=M[e]});const r=Ae.toFiniteNumber(q.getContentLength()),[n,o]=g&&Pt(r,jt(Tt(g),!0))||[];let i=0;const s=t=>{if(A&&(i=t,i>E))throw new $e("maxContentLength size of "+E+" exceeded",$e.ERR_BAD_RESPONSE,e,T);n&&n(t)};M=new a(zt(M.body,65536,s,()=>{o&&o(),C&&C()}),t)}v=v||"text";let z=await m[Ae.findKey(m,v)||"text"](M,e);if(A&&!y&&!W){let t;if(null!=z&&("number"==typeof z.byteLength?t=z.byteLength:"number"==typeof z.size?t=z.size:"string"==typeof z&&(t="function"==typeof n?(new n).encode(z).byteLength:z.length)),"number"==typeof t&&t>E)throw new $e("maxContentLength size of "+E+" exceeded",$e.ERR_BAD_RESPONSE,e,T)}return!W&&C&&C(),await new Promise((t,r)=>{_t(t,r,{data:z,headers:Me.from(M.headers),status:M.status,statusText:M.statusText,config:e,request:T})})}catch(t){if(C&&C(),P&&P.aborted&&P.reason instanceof $e){const r=P.reason;throw r.config=e,T&&(r.request=T),t!==r&&Object.defineProperty(r,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),r}if(L)throw T&&!L.request&&(L.request=T),L;if(t instanceof $e)throw T&&!t.request&&(t.request=T),t;if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message)){const r=new $e("Network Error",$e.ERR_NETWORK,e,T,t&&t.response);throw Object.defineProperty(r,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),r}throw $e.from(t,t&&t.code,e,T,t&&t.response)}var k,I}},tr=new Map,rr=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:o}=t,i=[n,o,r];let a,s,c=i.length,l=tr;for(;c--;)a=i[c],s=l.get(a),void 0===s&&l.set(a,s=c?new Map:er(t)),l=s;return s},nr=(rr(),{http:null,xhr:Mt,fetch:{get:rr}});Ae.forEach(nr,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const or=e=>`- ${e}`,ir=e=>Ae.isFunction(e)||null===e||!1===e,ar=function(e,t){e=Ae.isArray(e)?e:[e];const{length:r}=e;let n,o;const i={};for(let a=0;a`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=r?e.length>1?"since :\n"+e.map(or).join("\n"):" "+or(e[0]):"as no adapter specified";throw new $e("There is no suitable adapter to dispatch the request "+t,$e.ERR_NOT_SUPPORT)}return o};function sr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Et(null,e)}function cr(e){const t=Ae.toSafeFlatObject(e);return sr(t),t.headers=Me.from(Ae.getSafeProp(t,"headers")),t.data=Ot.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),ar(t.adapter||wt.adapter,t)(t).then(function(e){sr(t),t.response=e;try{e.data=Ot.call(t,t.transformResponse,e)}finally{delete t.response}return e.headers=Me.from(e.headers),e},function(e){if(!St(e)&&(sr(t),e&&e.response)){t.response=e.response;try{e.response.data=Ot.call(t,t.transformResponse,e.response)}finally{delete t.response}e.response.headers=Me.from(e.response.headers)}return Promise.reject(e)})}const lr={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{lr[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const ur={};lr.transitional=function(e,t,r){function n(e,t){return"[Axios v1.20.0] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,o,i)=>{if(!1===e)throw new $e(n(o," has been removed"+(t?" in "+t:"")),$e.ERR_DEPRECATED);return t&&!ur[o]&&(ur[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,i)}},lr.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};const fr={assertOptions:function(e,t,r){if("object"!=typeof e||null===e)throw new $e("options must be an object",$e.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],a=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(a){const t=e[i],r=void 0===t||a(t,i,e);if(!0!==r)throw new $e("option "+i+" must be "+r,$e.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new $e("Unknown option "+i,$e.ERR_BAD_OPTION)}},validators:lr},pr=fr.validators;class dr{constructor(e){this.defaults=e||{},this.interceptors={request:new at,response:new at}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error)try{let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const r=t.stack;let n="";if("string"==typeof r){const e=r.indexOf("\n");n=-1===e?"":r.slice(e+1)}if(e.stack){if(n){const t=n.indexOf("\n"),r=-1===t?-1:n.indexOf("\n",t+1),o=-1===r?"":n.slice(r+1);String(e.stack).endsWith(o)||(e.stack+="\n"+n)}}else e.stack=n}catch(e){}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Ft(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:o}=t;void 0!==r&&fr.assertOptions(r,{silentJSONParsing:pr.transitional(pr.boolean),forcedJSONParsing:pr.transitional(pr.boolean),clarifyTimeoutError:pr.transitional(pr.boolean),legacyInterceptorReqResOrdering:pr.transitional(pr.boolean),advertiseZstdAcceptEncoding:pr.transitional(pr.boolean),validateStatusUndefinedResolves:pr.transitional(pr.boolean)},!1),null!=n&&(Ae.isFunction(n)?t.paramsSerializer={serialize:n}:fr.assertOptions(n,{encode:pr.function,serialize:pr.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),fr.assertOptions(t,{baseUrl:pr.spelling("baseURL"),withXsrfToken:pr.spelling("withXSRFToken")},!0),t.method=(Ae.getSafeProp(t,"method")||Ae.getSafeProp(this.defaults,"method")||"get").toLowerCase();let i=o&&Ae.merge(o.common,o[t.method]);o&&Ae.forEach(gt.concat("common"),e=>{delete o[e]}),t.headers=Me.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;s=s&&e.synchronous;const r=t.transitional||st;r&&r.legacyInterceptorReqResOrdering?a.unshift(e.fulfilled,e.rejected):a.push(e.fulfilled,e.rejected)});const c=[];let l;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let u,f=0;if(!s){const e=[cr.bind(this),void 0];for(e.unshift(...a),e.push(...c),u=e.length,l=Promise.resolve(t);fcr.call(this,p)))}catch(e){l=Promise.reject(e)}break}}if(!l)try{l=cr.call(this,p)}catch(e){l=Promise.reject(e)}for(f=0,u=c.length;f{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t;const n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,o){r.reason||(r.reason=new Et(e,n,o),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new mr(function(t){e=t}),cancel:e}}}const hr=mr,gr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(gr).forEach(([e,t])=>{void 0===gr[t]&&(gr[t]=e)});const br=gr,vr=function e(t){const r=new yr(t),n=j(yr.prototype.request,r);return Ae.extend(n,yr.prototype,r,{allOwnKeys:!0}),Ae.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(Ft(t,r))},n}(wt);vr.Axios=yr,vr.CanceledError=Et,vr.CancelToken=hr,vr.isCancel=St,vr.VERSION="1.20.0",vr.toFormData=Ge,vr.AxiosError=$e,vr.Cancel=vr.CanceledError,vr.all=function(e){return Promise.all(e)},vr.spread=function(e){return function(t){return e.apply(null,t)}},vr.isAxiosError=function(e){return Ae.isObject(e)&&!0===e.isAxiosError},vr.mergeConfig=Ft,vr.AxiosHeaders=Me,vr.formToJSON=e=>ht(Ae.isHTMLForm(e)?new FormData(e):e),vr.getAdapter=ar,vr.HttpStatusCode=br,vr.default=vr;const wr=vr;function Or(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n={action:e},o={nonce:!1,action:e};void 0===t&&(t={});var i;for(var a in i="undefined"==typeof ajaxurl?r:ajaxurl,o)t.hasOwnProperty(a)||(t[a]=o[a]);var s={method:"post",url:i,params:n,paramsSerializer:function(e){return w().stringify(e,{arrayFormat:"brackets"})},data:w().stringify(t)};return wr(s)}function Sr(e){return Sr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sr(e)}function Er(){var e=Pr(),t=e.m(Er),r=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function n(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===r||"GeneratorFunction"===(t.displayName||t.name))}var o={throw:1,return:2,break:3,continue:3};function i(e){var t,r;return function(n){t||(t={stop:function(){return r(n.a,2)},catch:function(){return n.v},abrupt:function(e,t){return r(n.a,o[e],t)},delegateYield:function(e,o,i){return t.resultName=o,r(n.d,_r(e),i)},finish:function(e){return r(n.f,e)}},r=function(e,r,o){n.p=t.prev,n.n=t.next;try{return e(r,o)}finally{t.next=n.n}}),t.resultName&&(t[t.resultName]=n.v,t.resultName=void 0),t.sent=n.v,t.next=n.n;try{return e.call(this,t)}finally{n.p=t.prev,n.n=t.next}}}return(Er=function(){return{wrap:function(t,r,n,o){return e.w(i(t),r,n,o&&o.reverse())},isGeneratorFunction:n,mark:e.m,awrap:function(e,t){return new Cr(e,t)},AsyncIterator:jr,async:function(e,t,r,o,a){return(n(t)?Rr:Ar)(i(e),t,r,o,a)},keys:xr,values:_r}})()}function _r(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw new TypeError(Sr(e)+" is not iterable")}function xr(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}}function Ar(e,t,r,n,o){var i=Rr(e,t,r,n,o);return i.next().then(function(e){return e.done?e.value:i.next()})}function Rr(e,t,r,n,o){return new jr(Pr().w(e,t,r,n),o||Promise)}function jr(e,t){function r(n,o,i,a){try{var s=e[n](o),c=s.value;return c instanceof Cr?t.resolve(c.v).then(function(e){r("next",e,i,a)},function(e){r("throw",e,i,a)}):t.resolve(c).then(function(e){s.value=e,i(s)},function(e){return r("throw",e,i,a)})}catch(e){a(e)}}var n;this.next||(Tr(jr.prototype),Tr(jr.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),Tr(this,"_invoke",function(e,o,i){function a(){return new t(function(t,n){r(e,i,t,n)})}return n=n?n.then(a,a):a()},!0)}function Pr(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof s?n:s,l=Object.create(c.prototype);return Tr(l,"_invoke",function(r,n,o){var i,s,c,l=0,u=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,r){return i=t,s=0,c=e,p.n=r,a}};function d(r,n){for(s=r,c=n,t=0;!f&&l&&!o&&t3?(o=y===n)&&(c=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=r<2&&dn||n>y)&&(i[4]=r,i[5]=n,p.n=y,s=0))}if(o||r>1)return a;throw f=!0,n}return function(o,u,y){if(l>1)throw TypeError("Generator is already running");for(f&&1===u&&d(u,y),s=u,c=y;(t=s<2?e:c)||!f;){i||(s?s<3?(s>1&&(p.n=-1),d(s,c)):p.n=c:p.v=c);try{if(l=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=p.n<0)?c:r.call(n,p))!==a)break}catch(t){i=e,s=1,c=t}finally{l=1}}return{value:t,done:f}}}(r,o,i),!0),l}var a={};function s(){}function c(){}function l(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(Tr(t={},n,function(){return this}),t),f=l.prototype=s.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,Tr(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=l,Tr(f,"constructor",l),Tr(l,"constructor",c),c.displayName="GeneratorFunction",Tr(l,o,"GeneratorFunction"),Tr(f),Tr(f,o,"Generator"),Tr(f,n,function(){return this}),Tr(f,"toString",function(){return"[object Generator]"}),(Pr=function(){return{w:i,m:p}})()}function Tr(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Tr=function(e,t,r,n){function i(t,r){Tr(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},Tr(e,t,r,n)}function Cr(e,t){this.v=e,this.k=t}function Nr(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function Lr(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){Nr(i,n,o,a,s,"next",e)}function s(e){Nr(i,n,o,a,s,"throw",e)}a(void 0)})}}var Dr=wp.i18n,kr=Dr.__,Ir=Dr._n,Fr=wp.hooks,Ur=Fr.addFilter,Br=Fr.applyFilters,Mr=Fr.doAction,qr=[],Wr=[],zr=[];window.addEventListener("load",function(){var e=document.querySelectorAll(".sce-edit-button");if(e){document.addEventListener("wpacAfterUpdateComments",function(e){var t=e.detail.commentUrl;window.SCE_comments_updated(t)}),Ur("sce.comment.save.data","comment-edit-lite",function(e){var t=document.querySelectorAll("#sce-edit-comment".concat(e.comment_id)),r=null;if(null!==t&&(r=t[t.length-1].querySelector(".stars")),null!==r){var n=r.querySelector(".active").classList[0].replace("star-",""),o=document.querySelector("#woo_edit_comment_nonce_"+e.comment_id).value;return e.wooEditCommentNonce=o,e.rating=n,e}return e});var t=function(){var e=Lr(Er().mark(function e(t,r,n,o){var i;return Er().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Or("sce_get_time_left",{comment_id:t,post_id:r,_ajax_nonce:n},o);case 2:return i=e.sent,e.abrupt("return",i);case 4:case"end":return e.stop()}},e)}));return function(t,r,n,o){return e.apply(this,arguments)}}(),r=function(){var e=Lr(Er().mark(function e(t,r,n){var o;return Er().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Or(t,r,n);case 2:return o=e.sent,e.abrupt("return",o);case 4:case"end":return e.stop()}},e)}));return function(t,r,n){return e.apply(this,arguments)}}(),n=function(e){e.classList.remove("sce-hide"),e.classList.add("sce-show")},o=function(e,t){var r=e&&e.data?e.data:{},n=r.data||{};return n.error||n.message||r.error||t},i=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=document.querySelector("#sce-edit-comment-status".concat(e));null!==n&&(n.className="",n.classList.add("sce-status"),r&&n.classList.add("error"),n.setAttribute("aria-live",r?"assertive":"polite"),n.textContent=t,n.style.display="block")},a=function(e,t,r){document.dispatchEvent(new CustomEvent(e,{detail:r})),Mr(t,r)},s=function(e,t,r){var n=zr[t];n&&(a("sceCommentEditorDestroy","sce.comment.editor.destroy",{textarea:e,commentId:t,postId:r}),n.quicktags&&wp.editor&&"function"==typeof wp.editor.remove&&wp.editor.remove(n.textareaId),delete zr[t])},c=function(e,t){e.querySelectorAll("button").forEach(function(e){e.disabled=t}),e.querySelectorAll(".sce-edit-button-main, .sce-delete-button-main").forEach(function(e){e.setAttribute("aria-disabled",t?"true":"false")})},l=function(e,t,r){var n=e.querySelector(".sce-textarea"),o=e.querySelector(".sce-loading"),i=e.querySelector(".sce-edit-button");c(e,!1),e.dataset.sceSubmitting="false",null!==o&&(o.style.display="none"),null!==n&&(n.style.display=r?"block":"none"),null!==i&&(i.style.display=r?"none":"block"),null!==t&&t.setAttribute("aria-expanded",r?"true":"false")},u=function(e,t){t<0&&(e-=1,t=59);var r="",n=0,o=0,i=0;if(e>=1){var a=Math.abs(60*e);(n=Math.floor(a/86400))>=1&&(r+=n+" "+Ir("day","days",n,"simple-comment-editing"),r+=" "+kr("and","simple-comment-editing")+" ",a-=86400*n),(o=Math.floor(a/3600)%24)>=0&&(o>0&&(r+=o+" "+Ir("hour","hours",o,"simple-comment-editing"),r+=" "+kr("and","simple-comment-editing")+" "),a-=3600*o),a-=i=Math.floor(a/60)%60,e>0&&(r+=i+" "+Ir("minute","minutes",i,"simple-comment-editing")),t>0&&(r+=" "+kr("and","simple-comment-editing")+" ",r+=t+" "+Ir("second","seconds",t,"simple-comment-editing"))}else r+=t+" "+Ir("second","seconds",t,"simple-comment-editing");return Br("sce.comment.timer.text",r,Ir("day","days",n,"simple-comment-editing"),Ir("hour","hours",o,"simple-comment-editing"),Ir("minute","minutes",i,"simple-comment-editing"),Ir("second","seconds",t,"simple-comment-editing"),n,o,i,t)},f=function(){var e=Lr(Er().mark(function e(t,r,n,a,u){var f,p,d,y,m,h;return Er().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if("true"!==(f=t.closest(".sce-edit-comment")).dataset.sceSubmitting){e.next=3;break}return e.abrupt("return");case 3:return p=f.querySelector(".sce-edit-button-main"),d=f.querySelector(".sce-textarea"),y=null!==d&&"none"!==d.style.display,m=f.querySelector(".sce-loading"),f.dataset.sceSubmitting="true",c(f,!0),null!==m&&(m.style.display="block"),e.prev=10,e.next=13,Or("sce_delete_comment",{comment_id:r,post_id:n,nonce:a},u);case 13:if((h=e.sent).data&&!0===h.data.success){e.next=16;break}throw new Error(o(h,simple_comment_editing.comment_deleted_error));case 16:i(r,simple_comment_editing.comment_deleted),s(f.querySelector(".sce-comment-text"),r,n),setTimeout(function(){var e=document.querySelector("#comment-"+r);null!==e&&e.remove(),f.remove()},3e3),e.next=25;break;case 21:e.prev=21,e.t0=e.catch(10),l(f,p,y),i(r,e.t0.message||simple_comment_editing.comment_deleted_error,!0);case 25:case"end":return e.stop()}},e,null,[[10,21]])}));return function(t,r,n,o,i){return e.apply(this,arguments)}}();window.initEditCommentButton=function(e){var p=e.querySelector(".sce-edit-button-main, .sce-delete-button-main");if(null!==p){var d,y=(d=p).dataset.sceAjaxUrl||d.getAttribute("href"),m=new URLSearchParams(y),h=m.get("cid"),g=m.get("pid"),b=m.get("nonce");t(h,g,simple_comment_editing.nonce,y).then(function(t){if(!t.data||!0!==t.data.success||!t.data.data)throw new Error(o(t,simple_comment_editing.comment_deleted_error));var r=t.data.data,i=r.minutes,a=r.seconds,c=r.can_edit;if("unlimited"!==i||"unlimited"!==a)if(i=parseInt(i),a=parseInt(a),c){var l=u(i,a),f=e.querySelector(".sce-timer");null!==f&&(f.textContent=l);var p=e.parentNode.querySelectorAll(".sce-textarea .sce-timer");null!==p&&p.forEach(function(e){e.textContent=l}),n(e);var d=new CustomEvent("sceTimerLoaded",{detail:{button:e,commentId:h,postId:g}});document.dispatchEvent(d);var y=document.querySelector("#sce-edit-comment".concat(h," textarea"));null!==y&&(Wr[h]=y.value),qr[h]={minutes:i,seconds:a,start:(new Date).getTime(),time:0,timer:function(){var t=qr[h].seconds-1,r=qr[h].minutes;if(r<=0&&t<=0)return s(e.parentNode.querySelector(".sce-comment-text"),h,g),void e.parentNode.remove();t<0&&(r-=1,t=59);var n=u(r,t),o=e.querySelector(".sce-timer");null!==o&&(o.textContent=n);var i=e.parentNode.querySelectorAll(".sce-textarea .sce-timer");null!==i&&i.forEach(function(e){e.textContent=n});var a=new CustomEvent("sceTimerCountdown",{detail:{button:e,commentId:h,postId:g,timer_seconds:t,timer_minutes:r}});document.dispatchEvent(a),qr[h].seconds=t,qr[h].minutes=r;var c=qr[h];c.time+=1e3;var l=(new Date).getTime()-c.start-c.time;window.setTimeout(c.timer,1e3-l)}},window.setTimeout(qr[h].timer,1e3)}else e.parentNode.remove();else{n(e);var m=new CustomEvent("sceTimerLoaded",{detail:{button:e,commentId:h,postId:g}});document.dispatchEvent(m)}}).catch(function(t){n(e),i(h,t.message||simple_comment_editing.comment_deleted_error,!0)});var v=document.querySelector("#sce-edit-comment".concat(h," .sce-edit-button-main"));if(null!==v){v.addEventListener("click",function(e){e.preventDefault();var t=v.closest(".sce-edit-comment");if("true"!==t.dataset.sceSubmitting){var r=document.querySelector("#sce-edit-comment-status".concat(h));null!==r&&(r.classList.remove("sce-error"),r.classList.remove("sce-success"),r.classList.add("sce-status"),r.style.display="none"),c(t,!1),t.querySelector(".sce-textarea").style.display="block",v.parentNode.style.display="none",v.setAttribute("aria-expanded","true");var n=t.querySelector(".sce-textarea textarea:first-of-type");!function(e,t,r){if(!zr[t]){var n={textareaId:e.id,quicktags:!1};zr[t]=n,simple_comment_editing.enable_quicktags&&wp.editor&&"function"==typeof wp.editor.initialize&&(wp.editor.initialize(e.id,{mediaButtons:!1,quicktags:!0,tinymce:!1}),n.quicktags=!0,a("sceCommentQuicktagsInit","sce.comment.editor.quicktags.init",{textarea:e,commentId:t,postId:r}))}}(n,h,g);var o=new CustomEvent("sceEditTextareaShow",{detail:{textarea:n,commentId:h,postId:g}});document.dispatchEvent(o),Mr("sce.comment.editor.show",{textarea:n,commentId:h,postId:g}),n.focus()}});var w=e.querySelector(".sce-delete-button-main");null!==w&&w.addEventListener("click",function(t){t.preventDefault(),simple_comment_editing.allow_delete_confirmation?confirm(simple_comment_editing.confirm_delete)&&f(e,h,g,b,y):f(e,h,g,b,y)});var O=e.parentNode.querySelector(".sce-textarea .sce-comment-delete");null!==O&&O.addEventListener("click",function(t){t.preventDefault(),simple_comment_editing.allow_delete_confirmation?confirm(simple_comment_editing.confirm_delete)&&f(e,h,g,b,y):f(e,h,g,b,y)});var S=e.parentNode.querySelector(".sce-textarea .sce-comment-cancel");null!==S&&S.addEventListener("click",function(e){e.preventDefault();var t=S.closest(".sce-edit-comment"),r=t.querySelector(".sce-textarea textarea:first-of-type"),n=Wr[h];r.value=n,a("sceCommentEditorReset","sce.comment.editor.reset",{textarea:r,commentId:h,postId:g,content:n}),s(r,h,g),l(t,v,!1)});var E=e.parentNode.querySelector(".sce-textarea .sce-comment-save");null!==E&&E.addEventListener("click",function(t){t.preventDefault();var n=e.closest(".sce-edit-comment");if("true"!==n.dataset.sceSubmitting){n.dataset.sceSubmitting="true",c(n,!0),e.parentNode.querySelector(".sce-textarea").style.display="none",e.parentNode.querySelector(".sce-loading").style.display="block";var u=e.parentNode.querySelector(".sce-textarea textarea:first-of-type");a("sceCommentSavePre","sce.comment.editor.save.pre",{button:e,textarea:u,commentId:h,postId:g});var p=u.value.trim();if(""===p&&simple_comment_editing.allow_delete)return confirm(simple_comment_editing.empty_comment)?(n.dataset.sceSubmitting="false",void f(e,h,g,b,y)):(u.value=Wr[h],a("sceCommentEditorReset","sce.comment.editor.reset",{textarea:u,commentId:h,postId:g,content:Wr[h]}),void l(n,v,!0));var d={action:"sce_save_comment",comment_content:p,comment_id:h,post_id:g,nonce:b};d=Br("sce.comment.save.data",d),r("sce_save_comment",d,y).then(function(t){var r=t.data;if(r&&!0===r.success&&r.data&&"string"==typeof r.data.comment_text){document.querySelector("#sce-comment".concat(h)).innerHTML=r.data.comment_text,Wr[h]=document.querySelector("#sce-edit-comment".concat(h," textarea")).value;var a=new CustomEvent("sceCommentSavePost",{detail:{button:e,textarea:u,commentId:h,postId:g,ajaxData:r.data}});document.dispatchEvent(a),Mr("sce.comment.editor.save.post",{button:e,textarea:u,commentId:h,postId:g,ajaxData:r.data}),s(u,h,g),l(n,v,!1)}else l(n,v,!0),i(h,o(t,simple_comment_editing.comment_deleted_error),!0)}).catch(function(e){l(n,v,!0),i(h,e.message||simple_comment_editing.comment_deleted_error,!0)})}})}}},e.forEach(function(e){initEditCommentButton(e)});var p=document.querySelectorAll(".comment-form-rating");p.length>0&&p.forEach(function(e){var t=e.dataset.selectedRating,r=e.querySelector(".stars");if(null!==r){r.classList.add("selected");var n=r.querySelector(".star-"+t);null!==n&&n.classList.add("active")}}),"undefined"!=typeof jQuery&&jQuery(document).ready(function(t){jQuery(".comment-form-rating select").hide().before('

\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t1\t\t\t\t\t\t\t\t2\t\t\t\t\t\t\t\t3\t\t\t\t\t\t\t\t4\t\t\t\t\t\t\t\t5\t\t\t\t\t\t\t\t\t\t\t\t\t

'),e.forEach(function(e){e.addEventListener("sceEditTextareaShow",function(t){var r=e.closest(".sce-edit-comment"),n=jQuery(r).find(".comment-form-rating").data("selected-rating"),o=jQuery(r).find(".stars");o.find("a").removeClass("active"),o.addClass("selected"),o.find(".star-"+n).addClass("active")}),e.addEventListener("sceCommentSavePost",function(t){var r=t.detail,n=(r.targetButton,r.textarea,r.commentId),o=(r.postId,r.ajaxData),i=jQuery(e).closest(".sce-edit-comment"),a=i.find(".stars");a.find("a").removeClass("active"),a.find(".star-"+o.rating).addClass("active"),i.closest("#comment-"+n).find(".star-rating span").css({width:20*o.rating+"%"}),i.find(".comment-form-rating").data("selected-rating",o.rating)})}),jQuery("body").on("click",".comment-form-rating p.stars a",function(e){e.preventDefault();var t=jQuery(this),r=jQuery(this).closest(".comment-form-rating").find("select"),n=jQuery(this).closest(".stars");return r.val(t.text()),t.siblings("a").removeClass("active"),t.addClass("active"),n.addClass("selected"),!1})}),"compact"===simple_comment_editing.timer_appearance&&Ur("sce.comment.timer.text","simple-comment-editing",function(e,t,r,n,o,i,a,s,c){return e="",i>=1&&(e+=i<10?"0"+i:i,e+=":"),a>0?(e+=a<10?"0"+a:a,e+=":"):0===a&&i>0&&(e+="00",e+=":"),s>0?(e+=s<10?"0"+s:s,e+=":"):0===s&&a>0&&(e+="00",e+=":"),c>0?e+=c<10?"0"+c:c:0===c&&s>0&&(e+="00"),e},10)}}),window.SCE_comments_updated=function(e){var t=e.match(/comment-(\d+)/);if(t){var r=t[1],n=document.querySelector("#comment-".concat(r));if(null!==n){var o=n.querySelector(".sce-edit-button");null!==o&&window.initEditCommentButton(o)}}}})()})(); \ No newline at end of file +(()=>{var e={144(e,t,r){"use strict";var n=r(743),o=r(621),i=r(76),a=r(119);e.exports=a||n.call(i,o)},621(e){"use strict";e.exports=Function.prototype.apply},76(e){"use strict";e.exports=Function.prototype.call},126(e,t,r){"use strict";var n=r(743),o=r(675),i=r(76),a=r(144);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new o("a function is required");return a(n,i,e)}},119(e){"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},176(e,t,r){"use strict";var n,o=r(126),i=r(795);try{n=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var a=!!n&&i&&i(Object.prototype,"__proto__"),s=Object,c=s.getPrototypeOf;e.exports=a&&"function"==typeof a.get?o([a.get]):"function"==typeof c&&function(e){return c(null==e?e:s(e))}},237(e){"use strict";e.exports=EvalError},383(e){"use strict";e.exports=Error},290(e){"use strict";e.exports=RangeError},538(e){"use strict";e.exports=ReferenceError},68(e){"use strict";e.exports=SyntaxError},675(e){"use strict";e.exports=TypeError},345(e){"use strict";e.exports=URIError},612(e){"use strict";e.exports=Object},353(e){"use strict";var t=Object.prototype.toString,r=Math.max,n=function(e,t){for(var r=[],n=0;n-1e3&&e<1e3||S.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-A(-e):A(e);if(n!==e){var o=String(n),i=b.call(t,o.length+1);return v.call(o,r,"$&_")+"."+v.call(v.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(t,r,"$&_")}var k=r(634),I=k.custom,F=H(I)?I:null,U={__proto__:null,double:'"',single:"'"},B={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function M(e,t,r){var n=r.quoteStyle||t,o=U[n];return o+e+o}function q(e){return v.call(String(e),/"/g,""")}function W(e){return!C||!("object"==typeof e&&(C in e||void 0!==e[C]))}function z(e){return"[object Array]"===V(e)&&W(e)}function $(e){return"[object RegExp]"===V(e)&&W(e)}function H(e){if(T)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!P)return!1;try{return P.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,o,s){var c=n||{};if(J(c,"quoteStyle")&&!J(U,c.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(J(c,"maxStringLength")&&("number"==typeof c.maxStringLength?c.maxStringLength<0&&c.maxStringLength!==1/0:null!==c.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var m=!J(c,"customInspect")||c.customInspect;if("boolean"!=typeof m&&"symbol"!==m)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(J(c,"indent")&&null!==c.indent&&"\t"!==c.indent&&!(parseInt(c.indent,10)===c.indent&&c.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(J(c,"numericSeparator")&&"boolean"!=typeof c.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=c.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return Q(t,c);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var S=String(t);return w?D(t,S):S}if("bigint"==typeof t){var A=String(t)+"n";return w?D(t,A):A}var j=void 0===c.depth?5:c.depth;if(void 0===o&&(o=0),o>=j&&j>0&&"object"==typeof t)return z(t)?"[Array]":"[Object]";var I,B=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=_.call(Array(e.indent+1)," ")}return{base:r,prev:_.call(Array(t+1),r)}}(c,o);if(void 0===s)s=[];else if(G(s,t)>=0)return"[Circular]";function K(t,r,n){if(r&&(s=x.call(s)).push(r),n){var i={depth:c.depth};return J(c,"quoteStyle")&&(i.quoteStyle=c.quoteStyle),e(t,i,o+1,s)}return e(t,c,o+1,s)}if("function"==typeof t&&!$(t)){var X=function(e){if(e.name)return e.name;var t=g.call(h.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),ne=re(t,K);return"[Function"+(X?": "+X:" (anonymous)")+"]"+(ne.length>0?" { "+_.call(ne,", ")+" }":"")}if(H(t)){var oe=T?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):P.call(t);return"object"!=typeof t||T?oe:Z(oe)}if((I=t)&&"object"==typeof I&&("undefined"!=typeof HTMLElement&&I instanceof HTMLElement||"string"==typeof I.nodeName&&"function"==typeof I.getAttribute)){for(var ie="<"+O.call(String(t.nodeName)),ae=t.attributes||[],se=0;se"}if(z(t)){if(0===t.length)return"[]";var ce=re(t,K);return B&&!function(e){for(var t=0;t=0)return!1;return!0}(ce)?"["+te(ce,B)+"]":"[ "+_.call(ce,", ")+" ]"}if(function(e){return"[object Error]"===V(e)&&W(e)}(t)){var le=re(t,K);return"cause"in Error.prototype||!("cause"in t)||N.call(t,"cause")?0===le.length?"["+String(t)+"]":"{ ["+String(t)+"] "+_.call(le,", ")+" }":"{ ["+String(t)+"] "+_.call(E.call("[cause]: "+K(t.cause),le),", ")+" }"}if("object"==typeof t&&m){if(F&&"function"==typeof t[F]&&k)return k(t,{depth:j-o});if("symbol"!==m&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{l.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ue=[];return a&&a.call(t,function(e,r){ue.push(K(r,t,!0)+" => "+K(e,t))}),ee("Map",i.call(t),ue,B)}if(function(e){if(!l||!e||"object"!=typeof e)return!1;try{l.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var fe=[];return u&&u.call(t,function(e){fe.push(K(e,t))}),ee("Set",l.call(t),fe,B)}if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Y("WeakMap");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Y("WeakSet");if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{return d.call(e),!0}catch(e){}return!1}(t))return Y("WeakRef");if(function(e){return"[object Number]"===V(e)&&W(e)}(t))return Z(K(Number(t)));if(function(e){if(!e||"object"!=typeof e||!R)return!1;try{return R.call(e),!0}catch(e){}return!1}(t))return Z(K(R.call(t)));if(function(e){return"[object Boolean]"===V(e)&&W(e)}(t))return Z(y.call(t));if(function(e){return"[object String]"===V(e)&&W(e)}(t))return Z(K(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==r.g&&t===r.g)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===V(e)&&W(e)}(t)&&!$(t)){var pe=re(t,K),de=L?L(t)===Object.prototype:t instanceof Object||t.constructor===Object,ye=t instanceof Object?"":"null prototype",me=!de&&C&&Object(t)===t&&C in t?b.call(V(t),8,-1):ye?"Object":"",he=(de||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(me||ye?"["+_.call(E.call([],me||[],ye||[]),": ")+"] ":"");return 0===pe.length?he+"{}":B?he+"{"+te(pe,B)+"}":he+"{ "+_.call(pe,", ")+" }"}return String(t)};var K=Object.prototype.hasOwnProperty||function(e){return e in this};function J(e,t){return K.call(e,t)}function V(e){return m.call(e)}function G(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;rt.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Q(b.call(e,0,t.maxStringLength),t)+n}var o=B[t.quoteStyle||"single"];return o.lastIndex=0,M(v.call(v.call(e,o,"\\$1"),/[\x00-\x1f]/g,X),"single",t)}function X(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":"")+w.call(t.toString(16))}function Z(e){return"Object("+e+")"}function Y(e){return e+" { ? }"}function ee(e,t,r,n){return e+" ("+t+") {"+(n?te(r,n):_.call(r,", "))+"}"}function te(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+_.call(e,","+r)+"\n"+t.prev}function re(e,t){var r=z(e),n=[];if(r){n.length=e.length;for(var o=0;o{var t;return()=>{if(e){var r=e;e=0,t={exports:{}},r.call(t.exports,t,t.exports)}return t.exports}},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.dn=e=>{var t=Object.getOwnPropertyDescriptor(e,"name");(!t||!t.writable&&t.configurable)&&Object.defineProperty(e,"name",{value:"default",configurable:!0})},(()=>{"use strict";var e=r.cw(function(e,t){var n=o(),i=r(126),a=i([n("%String.prototype.indexOf%")]);e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&a(e,".prototype.")>-1?i([r]):r}}),t=r.cw(function(e,t){var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch(e){r=!1}e.exports=r}),n=()=>r(675),o=r.cw(function(e,o){var b,v=r(612),w=r(383),O=r(237),S=r(290),E=r(538),_=r(68),x=n(),A=r(345),R=f(),j=p(),P=d(),T=y(),C=m(),N=h(),L=g(),D=Function,k=function(e){try{return D('"use strict"; return ('+e+").constructor;")()}catch(e){}},I=c(),F=t(),U=function(){throw new x},B=I?function(){try{return U}catch(e){try{return I(arguments,"callee").get}catch(e){return U}}}():U,M=l()(),q=s(),W=i(),z=a(),$=r(621),H=r(76),K={},J="undefined"!=typeof Uint8Array&&q?q(Uint8Array):b,V={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?b:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?b:ArrayBuffer,"%ArrayIteratorPrototype%":M&&q?q([][Symbol.iterator]()):b,"%AsyncFromSyncIteratorPrototype%":b,"%AsyncFunction%":K,"%AsyncGenerator%":K,"%AsyncGeneratorFunction%":K,"%AsyncIteratorPrototype%":K,"%Atomics%":"undefined"==typeof Atomics?b:Atomics,"%BigInt%":"undefined"==typeof BigInt?b:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?b:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?b:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?b:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":w,"%eval%":eval,"%EvalError%":O,"%Float16Array%":"undefined"==typeof Float16Array?b:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?b:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?b:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?b:FinalizationRegistry,"%Function%":D,"%GeneratorFunction%":K,"%Int8Array%":"undefined"==typeof Int8Array?b:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?b:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?b:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":M&&q?q(q([][Symbol.iterator]())):b,"%JSON%":"object"==typeof JSON?JSON:b,"%Map%":"undefined"==typeof Map?b:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&M&&q?q((new Map)[Symbol.iterator]()):b,"%Math%":Math,"%Number%":Number,"%Object%":v,"%Object.getOwnPropertyDescriptor%":I,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?b:Promise,"%Proxy%":"undefined"==typeof Proxy?b:Proxy,"%RangeError%":S,"%ReferenceError%":E,"%Reflect%":"undefined"==typeof Reflect?b:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?b:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&M&&q?q((new Set)[Symbol.iterator]()):b,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?b:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":M&&q?q(""[Symbol.iterator]()):b,"%Symbol%":M?Symbol:b,"%SyntaxError%":_,"%ThrowTypeError%":B,"%TypedArray%":J,"%TypeError%":x,"%Uint8Array%":"undefined"==typeof Uint8Array?b:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?b:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?b:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?b:Uint32Array,"%URIError%":A,"%WeakMap%":"undefined"==typeof WeakMap?b:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?b:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?b:WeakSet,"%Function.prototype.call%":H,"%Function.prototype.apply%":$,"%Object.defineProperty%":F,"%Object.getPrototypeOf%":W,"%Math.abs%":R,"%Math.floor%":j,"%Math.max%":P,"%Math.min%":T,"%Math.pow%":C,"%Math.round%":N,"%Math.sign%":L,"%Reflect.getPrototypeOf%":z};if(q)try{null.error}catch(e){var G=q(q(e));V["%Error.prototype%"]=G}var Q=function e(t){var r;if("%AsyncFunction%"===t)r=k("async function () {}");else if("%GeneratorFunction%"===t)r=k("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=k("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&q&&(r=q(o.prototype))}return V[t]=r,r},X={__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"]},Z=r(743),Y=u(),ee=Z.call(H,Array.prototype.concat),te=Z.call($,Array.prototype.splice),re=Z.call(H,String.prototype.replace),ne=Z.call(H,String.prototype.slice),oe=Z.call(H,RegExp.prototype.exec),ie=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ae=/\\(\\)?/g,se=function(e,t){var r,n=e;if(Y(X,n)&&(n="%"+(r=X[n])[0]+"%"),Y(V,n)){var o=V[n];if(o===K&&(o=Q(n)),void 0===o&&!t)throw new x("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new _("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new x("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new x('"allowMissing" argument must be a boolean');if(null===oe(/^%?[^%]*%?$/,e))throw new _("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=ne(e,0,1),r=ne(e,-1);if("%"===t&&"%"!==r)throw new _("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new _("invalid intrinsic syntax, expected opening `%`");var n=[];return re(e,ie,function(e,t,r,o){n[n.length]=r?re(o,ae,"$1"):t||e}),n}(e),n=r.length>0?r[0]:"",o=se("%"+n+"%",t),i=o.name,a=o.value,s=!1,c=o.alias;c&&(n=c[0],te(r,ee([0,1],c)));for(var l=1,u=!0;l=r.length){var y=I(a,f);a=(u=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:a[f]}else u=Y(a,f),a=a[f];u&&!s&&(V[i]=a)}}return a}}),i=()=>r(64),a=()=>r(648),s=()=>r(628),c=()=>r(795),l=()=>r(39),u=()=>r(957),f=()=>r(514),p=()=>r(968),d=()=>r(188),y=()=>r(2),m=()=>r(880),h=()=>r(414),g=()=>r(93),b=()=>r(859),v=r.cw(function(e,t){var r=String.prototype.replace,n=/%20/g,o="RFC3986";e.exports={default:o,formatters:{RFC1738:function(e){return r.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:o}}),w=r.cw(function(e,t){var r=S(),n=O(),o=v();e.exports={formats:o,parse:n,stringify:r}}),O=r.cw(function(e,t){var r=E(),n=Object.prototype.hasOwnProperty,o=Array.isArray,i={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:r.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},a=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},s=function(e,t,r){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1){if(t.throwOnLimitExceeded)for(var n=0,o=e.indexOf(",");o>-1;){if((n+=1)>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");o=e.indexOf(",",o+1)}return e.split(",")}if(t.throwOnLimitExceeded&&r>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},c=function(e,t,o,i){if(e){var a=function(e,t){var r=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(t.depth<=0){if(!t.plainObjects&&n.call(Object.prototype,r)&&!t.allowPrototypes)return;return[r]}var o=[],i=r.indexOf("["),a=i>=0?r.slice(0,i):r;if(a){if(!t.plainObjects&&n.call(Object.prototype,a)&&!t.allowPrototypes)return;o[o.length]=a}for(var s=r.length,c=i,l=0;c>=0&&l=0){if(!0===t.strictDepth)throw new RangeError("Input depth exceeded depth option of "+t.depth+" and strictDepth is true");o[o.length]="["+r.slice(c)+"]"}return o}(e,o);if(a)return function(e,t,n,o){var i=0;if(e.length>0&&"[]"===e[e.length-1]){var a=e.slice(0,-1).join("");i=Array.isArray(t)&&t[a]?t[a].length:0}for(var c=o?t:s(t,n,i),l=e.length-1;l>=0;--l){var u,f=e[l];if("[]"===f&&n.parseArrays)u=r.isOverflow(c)?c:n.allowEmptyArrays&&(""===c||n.strictNullHandling&&null===c)?[]:r.combine([],c,n.arrayLimit,n.plainObjects,n.throwOnLimitExceeded);else{u=n.plainObjects?{__proto__:null}:{};var p="["===f.charAt(0)&&"]"===f.charAt(f.length-1)?f.slice(1,-1):f,d=n.decodeDotInKeys?p.replace(/%2E/g,"."):p,y=parseInt(d,10),m=!isNaN(y)&&f!==d&&String(y)===d&&y>=0&&n.parseArrays;if(n.parseArrays||""!==d)if(m&&yu)throw new RangeError("Parameter limit exceeded. Only "+u+" parameter"+(1===u?"":"s")+" allowed.");var p,d=-1,y=t.charset;if(t.charsetSentinel)for(p=0;p-1&&(h=o(h)?[h]:h),t.comma&&o(h)&&h.length>t.arrayLimit&&(h=r.combine([],h,t.arrayLimit,t.plainObjects,t.throwOnLimitExceeded)),null!==m){var w=n.call(c,m);w&&("combine"===t.duplicates||g.indexOf("[]=")>-1)?c[m]=r.combine(c[m],h,t.arrayLimit,t.plainObjects,t.throwOnLimitExceeded):w&&"last"!==t.duplicates||(c[m]=h)}}return c}(e,l):e,f=l.plainObjects?{__proto__:null}:{},p=Object.keys(u),d=0;dx)throw new RangeError("Input depth exceeded depth option of "+x);for(var j,P=_,T=0,C=!1;void 0!==(P=P.get(d))&&!C;){var N=P.get(t);if(T+=1,void 0!==N){if(N===T)throw new RangeError("Cyclic object value");C=!0}void 0===P.get(d)&&(T=0)}if((R="function"==typeof h?h(o,R):R)instanceof Date?R=v(R):"comma"===i&&s(R)&&(R=n.maybeMap(R,function(e){return e instanceof Date?v(e):e})),null===R){if(u)return O(m&&!S?m(o,p.encoder,E,"key",w):o);R=""}if("string"==typeof(j=R)||"number"==typeof j||"boolean"==typeof j||"symbol"==typeof j||"bigint"==typeof j||n.isBuffer(R))return m?[O(S?o:m(o,p.encoder,E,"key",w))+"="+O(m(R,p.encoder,E,"value",w))]:[O(o)+"="+O(String(R))];var L,D=[];if(void 0===R)return D;if("comma"===i&&s(R))S&&m&&(R=n.maybeMap(R,function(e){return null==e?e:m(e)})),L=[{value:R.length>0?R.join(",")||null:void 0}];else if(s(h))L=h;else{var k=Object.keys(R);L=g?k.sort(g):k}var I=y?String(o).replace(/\./g,"%2E"):String(o),F=a&&s(R)&&1===R.length?I+"[]":I;if(c&&s(R)&&0===R.length&&0===Object.keys(R).length)return F+"[]";for(var U=0;U0?S+O:""}}),E=r.cw(function(e,r){var n=v(),o=A(),i=t(),a=Object.prototype.hasOwnProperty,s=Array.isArray,c=o(),l=function(e,t){return c.set(e,t),e},u=function(e){return c.has(e)},f=function(e){return c.get(e)},p=function(e,t){c.set(e,t)},d=function(){for(var e=[],t=0;t<256;++t)e[e.length]="%"+((t<16?"0":"")+t.toString(16)).toUpperCase();return e}(),y=function(e,t){for(var r=t&&t.plainObjects?{__proto__:null}:{},n=0;nr){if(o)throw new RangeError("Array limit exceeded. Only "+r+" element"+(1===r?"":"s")+" allowed in an array.");return l(y(d,{plainObjects:n}),d.length-1)}return d},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=o(),n=0;n1;){var t=e.pop(),r=t.obj[t.prop];if(s(r)){for(var n=[],o=0;o=h?a.slice(c,c+h):a;if(c+h=55296&&u<=56319&&(l=l.slice(0,-1),c-=1)}for(var f=[],p=0;p=48&&y<=57||y>=65&&y<=90||y>=97&&y<=122||i===n.RFC1738&&(40===y||41===y)?f[f.length]=l.charAt(p):y<128?f[f.length]=d[y]:y<2048?f[f.length]=d[192|y>>6]+d[128|63&y]:y<55296||y>=57344?f[f.length]=d[224|y>>12]+d[128|y>>6&63]+d[128|63&y]:(p+=1,y=65536+((1023&y)<<10|1023&l.charCodeAt(p)),f[f.length]=d[240|y>>18]+d[128|y>>12&63]+d[128|y>>6&63]+d[128|63&y])}s+=f.join("")}return s},isBuffer:function(e){return!(!e||"object"!=typeof e||!e.constructor||"function"!=typeof e.constructor.isBuffer||!e.constructor.isBuffer(e))},isOverflow:u,isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},markOverflow:l,maybeMap:function(e,t){if(s(e)){for(var r=[],n=0;n=n.arrayLimit){if(n.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+n.arrayLimit+" element"+(1===n.arrayLimit?"":"s")+" allowed in an array.");return l(y(t.concat(r),n),o)}t[o]=r}else{if(!t||"object"!=typeof t)return[t,r];if(u(t)){var i=f(t)+1;t[i]=r,p(t,i)}else{if(n&&n.strictMerge)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!a.call(Object.prototype,r))&&(t[r]=!0)}}return t}if(!t||"object"!=typeof t){if(u(r)){for(var c=Object.keys(r),d=n&&n.plainObjects?{__proto__:null,0:t}:{0:t},h=0;hn.arrayLimit){if(n.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+n.arrayLimit+" element"+(1===n.arrayLimit?"":"s")+" allowed in an array.");return l(y(g,n),g.length-1)}return g}var b=t;if(s(t)&&!s(r)&&(b=y(t,n)),s(t)&&s(r)){if(r.forEach(function(r,o){if(a.call(t,o)){var i=t[o];i&&"object"==typeof i&&r&&"object"==typeof r?t[o]=e(i,r,n):t[t.length]=r}else t[o]=r}),n&&"number"==typeof n.arrayLimit&&t.length>n.arrayLimit){if(n.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+n.arrayLimit+" element"+(1===n.arrayLimit?"":"s")+" allowed in an array.");return l(y(t,n),t.length-1)}return t}return Object.keys(r).reduce(function(t,o){var i=r[o];if(a.call(t,o)?m(t,o,e(t[o],i,n)):m(t,o,i),u(r)&&!u(t)&&l(t,f(r)),u(t)){var s=parseInt(o,10);String(s)===o&&s>=0&&s>f(t)&&p(t,s)}return t},b)}}}),_=r.cw(function(t,r){var i=o(),a=e(),s=b(),c=n(),l=i("%Map%",!0),u=a("Map.prototype.get",!0),f=a("Map.prototype.set",!0),p=a("Map.prototype.has",!0),d=a("Map.prototype.delete",!0),y=a("Map.prototype.size",!0);t.exports=!!l&&function(){var e,t={assert:function(e){if(!t.has(e))throw new c("Side channel does not contain "+s(e))},delete:function(t){if(e){var r=d(e,t);return 0===y(e)&&(e=void 0),r}return!1},get:function(t){if(e)return u(e,t)},has:function(t){return!!e&&p(e,t)},set:function(t,r){e||(e=new l),f(e,t,r)}};return t}}),x=r.cw(function(t,r){var i=o(),a=e(),s=b(),c=_(),l=n(),u=i("%WeakMap%",!0),f=a("WeakMap.prototype.get",!0),p=a("WeakMap.prototype.set",!0),d=a("WeakMap.prototype.has",!0),y=a("WeakMap.prototype.delete",!0);t.exports=u?function(){var e,t,r={assert:function(e){if(!r.has(e))throw new l("Side channel does not contain "+s(e))},delete:function(r){if(u&&r&&("object"==typeof r||"function"==typeof r)){if(e)return y(e,r)}else if(c&&t)return t.delete(r);return!1},get:function(r){return u&&r&&("object"==typeof r||"function"==typeof r)&&e?f(e,r):t&&t.get(r)},has:function(r){return u&&r&&("object"==typeof r||"function"==typeof r)&&e?d(e,r):!!t&&t.has(r)},set:function(r,n){u&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new u),p(e,r,n)):c&&(t||(t=c()),t.set(r,n))}};return r}:c}),A=r.cw(function(e,t){var o=n(),i=b(),a=r(803),s=_(),c=x()||s||a;e.exports=function(){var e,t={assert:function(e){if(!t.has(e)){var r=e&&Object(e)===e?"the given object key":i(e);throw new o("Side channel does not contain "+r)}},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,r){e||(e=c()),e.set(t,r)}};return t}}),R={};function j(e,t){return function(){return e.apply(t,arguments)}}r.r(R),r.d(R,{hasBrowserEnv:()=>lt,hasStandardBrowserEnv:()=>ft,hasStandardBrowserWebWorkerEnv:()=>pt,navigator:()=>ut,origin:()=>dt});const{toString:P}=Object.prototype,{getPrototypeOf:T}=Object,{iterator:C,toStringTag:N}=Symbol,L=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),D=e=>"string"==typeof e&&("__proto__"===e||"constructor"===e||"prototype"===e),k=(e,t,r)=>e===Object.prototype||!r&&null===t,I=(e,t)=>{let r=e;const n=[];for(;null!=r;){if(-1!==n.indexOf(r))return!1;n.push(r);const o=T(r);if(k(r,o,r===e))return!1;if(L(r,t))return!0;r=o}return!1},F=(U=Object.create(null),e=>{const t=P.call(e);return U[t]||(U[t]=t.slice(8,-1).toLowerCase())});var U;const B=e=>(e=e.toLowerCase(),t=>F(t)===e),M=e=>t=>typeof t===e,{isArray:q}=Array,W=M("undefined");function z(e){return null!==e&&!W(e)&&null!==e.constructor&&!W(e.constructor)&&K(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const $=B("ArrayBuffer"),H=M("string"),K=M("function"),J=M("number"),V=e=>null!==e&&"object"==typeof e,G=e=>{if(!V(e))return!1;const t=T(e);return!(null!==t&&t!==Object.prototype&&null!==T(t)||I(e,N)||I(e,C))},Q=B("Date"),X=B("File"),Z=B("Blob"),Y=B("FileList"),ee=B("Set"),te="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==r.g?r.g:{},re=void 0!==te.FormData?te.FormData:void 0,ne=B("URLSearchParams"),[oe,ie,ae,se]=["ReadableStream","Request","Response","Headers"].map(B);function ce(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,o;if("object"!=typeof e&&(e=[e]),q(e))for(n=0,o=e.length;n0;)if(n=r[o],t===n.toLowerCase())return n;return null}const ue="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:r.g,fe=e=>!W(e)&&e!==ue,pe=(de="undefined"!=typeof Uint8Array&&T(Uint8Array),e=>de&&e instanceof de);var de;const ye=B("HTMLFormElement"),{propertyIsEnumerable:me}=Object.prototype,he=B("RegExp"),ge=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};ce(r,(r,o)=>{let i;!1!==(i=t(r,o,e))&&(n[o]=i||r)}),Object.defineProperties(e,n)},be=B("AsyncFunction"),ve=(we="function"==typeof setImmediate,Oe=K(ue.postMessage),we?setImmediate:Oe?(Se=`axios@${Math.random()}`,Ee=[],ue.addEventListener("message",({source:e,data:t})=>{e===ue&&t===Se&&Ee.length&&Ee.shift()()},!1),e=>{Ee.push(e),ue.postMessage(Se,"*")}):e=>setTimeout(e));var we,Oe,Se,Ee;const _e="undefined"!=typeof queueMicrotask?queueMicrotask.bind(ue):"undefined"!=typeof process&&process.nextTick||ve,xe=e=>null!=e&&K(e[C]),Ae={isArray:q,isArrayBuffer:$,isBuffer:z,isFormData:e=>{if(!e)return!1;if(re&&e instanceof re)return!0;const t=T(e);if(!t||t===Object.prototype)return!1;if(!K(e.append))return!1;const r=F(e);return"formdata"===r||"object"===r&&K(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&$(e.buffer),t},isString:H,isNumber:J,isBoolean:e=>!0===e||!1===e,isObject:V,isPlainObject:G,isEmptyObject:e=>{if(!V(e)||z(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:oe,isRequest:ie,isResponse:ae,isHeaders:se,isUndefined:W,isDate:Q,isFile:X,isReactNativeBlob:e=>!(!e||void 0===e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:Z,isRegExp:he,isFunction:K,isStream:e=>V(e)&&K(e.pipe),isURLSearchParams:ne,isTypedArray:pe,isFileList:Y,forEach:ce,merge:function e(...t){const{caseless:r,skipUndefined:n}=fe(this)&&this||{},o={},i=(t,i)=>{if("__proto__"===i||"constructor"===i||"prototype"===i)return;const a=r&&"string"==typeof i&&le(o,i)||i,s=L(o,a)?o[a]:void 0;G(s)&&G(t)?o[a]=e(s,t):G(t)?o[a]=e({},t):q(t)?o[a]=t.slice():n&&W(t)||(o[a]=t)};for(let e=0,r=t.length;e(ce(t,(t,n)=>{r&&K(t)?Object.defineProperty(e,n,{__proto__:null,value:j(t,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,n,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],n&&!n(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==r&&T(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:F,kindOfTest:B,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(q(e))return e;let t=e.length;if(!J(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[C]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:ye,hasOwnProperty:L,hasOwnProp:L,hasOwnInPrototypeChain:I,getSafeProp:(e,t)=>null!=e&&I(e,t)?e[t]:void 0,toSafeFlatObject:e=>{if(null==e||"object"!=typeof e&&"function"!=typeof e)return e;const t=T(e);if(null===t&&(e=>{if(!Object.isExtensible(e))return!1;const t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&t.push(...Object.getOwnPropertySymbols(e)),t.every(t=>{if(D(t))return!1;const r=Object.getOwnPropertyDescriptor(e,t);return!!r&&r.configurable&&!0===r.writable})})(e))return e;const r=Object.create(null),n=Object.create(null),o=[];let i=e;for(;null!=i&&-1===o.indexOf(i);){o.push(i);const a=i===e?t:T(i);if(k(i,a,i===e))break;const s=Object.getOwnPropertyNames(i);Object.getOwnPropertySymbols&&s.push(...Object.getOwnPropertySymbols(i));for(const t of s)D(t)||L(n,t)||(r[t]=e[t],n[t]=!0);i=a}return r},reduceDescriptors:ge,freezeMethods:e=>{ge(e,(t,r)=>{if(K(e)&&["arguments","caller","callee"].includes(r))return!1;const n=e[r];K(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))})},toObjectSet:(e,t)=>{const r={},n=e=>{e.forEach(e=>{r[e]=!0})};return q(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:le,global:ue,isContextDefined:fe,isSpecCompliantForm:function(e){return!!(e&&K(e.append)&&"FormData"===e[N]&&e[C])},toJSONObject:e=>{const t=new WeakSet,r=e=>{if(V(e)){if(t.has(e))return;if(z(e))return e;if(!("toJSON"in e)){let n;if(t.add(e),ee(e)){n=[];for(const t of e){const e=r(t);!W(e)&&n.push(e)}}else n=q(e)?[]:{},ce(e,(e,t)=>{const o=r(e);!W(o)&&(n[t]=o)});return t.delete(e),n}}return e};return r(e)},isAsyncFn:be,isThenable:e=>e&&(V(e)||K(e))&&K(e.then)&&K(e.catch),setImmediate:ve,asap:_e,isIterable:xe,isSafeIterable:e=>null!=e&&I(e,C)&&xe(e)},Re=Ae.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),je=e=>{const t={};let r,n,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),r=e.substring(0,o).trim().toLowerCase(),n=e.substring(o+1).trim();const i=Ae.hasOwnProp(t,r);!r||i&&Ae.hasOwnProp(Re,r)||("set-cookie"===r?i?t[r].push(n):t[r]=[n]:t[r]=i?t[r]+", "+n:n)}),t};r.dn(je);const Pe=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),Te=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Ce(e,t){return Ae.isArray(e)?e.map(e=>Ce(e,t)):function(e){let t=0,r=e.length;for(;tt;){const t=e.charCodeAt(r-1);if(9!==t&&32!==t)break;r-=1}return 0===t&&r===e.length?e:e.slice(t,r)}(String(e).replace(t,""))}function Ne(e){const t=Object.create(null);return Ae.forEach(e.toJSON(),(e,r)=>{t[r]=(e=>Ce(e,Te))(e)}),t}const Le=Symbol("internals");function De(e){return e&&String(e).trim().toLowerCase()}function ke(e){return!1===e||null==e?e:Ae.isArray(e)?e.map(ke):(e=>Ce(e,Pe))(String(e))}const Ie=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function Fe(e){let t=0,r=e.length;for(;tt;){const t=e.charCodeAt(r-1);if(9!==t&&32!==t)break;r-=1}return 0===t&&r===e.length?e:e.slice(t,r)}function Ue(e,t,r,n,o){return Ae.isFunction(n)?n.call(this,t,r):(o&&(t=r),Ae.isString(t)?Ae.isString(n)?-1!==t.indexOf(n):Ae.isRegExp(n)?n.test(t):void 0:void 0)}class Be{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function o(e,t,r){const o=De(t);if(!o)return;const i=Ae.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||t]=ke(e))}const i=(e,t)=>Ae.forEach(e,(e,r)=>o(e,r,t));if(Ae.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(Ae.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i(je(e),t);else if(Ae.isObject(e)&&Ae.isSafeIterable(e)){let r,n,o=Object.create(null);for(const t of e){if(!Ae.isArray(t))throw new TypeError("Object iterator must return a key-value pair");n=t[0],Ae.hasOwnProp(o,n)?(r=o[n],o[n]=Ae.isArray(r)?[...r,t[1]]:[r,t[1]]):o[n]=t[1]}i(o,t)}else null!=e&&o(t,e,r);return this}get(e,t){if(e=De(e)){const r=Ae.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if(Ae.isFunction(t))return t.call(this,e,r);if(Ae.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=De(e)){const r=Ae.findKey(this,e);return!(!r||void 0===this[r]||t&&!Ue(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function o(e){if(e=De(e)){const o=Ae.findKey(r,e);!o||t&&!Ue(0,r[o],o,t)||(delete r[o],n=!0)}}return Ae.isArray(e)?e.forEach(o):o(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const o=t[r];e&&!Ue(0,this[o],o,e,!0)||(delete this[o],n=!0)}return n}normalize(e){const t=this,r={};return Ae.forEach(this,(n,o)=>{const i=Ae.findKey(r,o);if(i)return t[i]=ke(n),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}(o):String(o).trim();a!==o&&delete t[o],t[a]=ke(n),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Ae.forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&Ae.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){const e=this.get("set-cookie");return Ae.isArray(e)?e:null==e||!1===e?[]:[e]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return function(e){const t=Object.create(null),r=String(e);let n=0,o=!1,i=!1;function a(e){const o=Fe(r.slice(n,e)),i=o.indexOf("=");if(i<1)return;const a=Fe(o.slice(0,i));if(!Ie.test(a))return;const s=a.toLowerCase();if("__proto__"===s||"constructor"===s||"prototype"===s)return;const c=Fe(o.slice(i+1));t[s]=function(e){const t=e.length-1;if(t<1||34!==e.charCodeAt(0)||34!==e.charCodeAt(t))return e;let r="";for(let n=1;n=t))return e;r+=e[n]}return r}(c)}for(let e=0;er.set(e)),r}static accessor(e){const t=(this[Le]=this[Le]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=De(e);t[n]||(function(e,t){const r=Ae.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{__proto__:null,value:function(e,r,o){return this[n].call(this,t,e,r,o)},configurable:!0})})}(r,e),t[n]=!0)}return Ae.isArray(e)?e.forEach(n):n(e),this}}Be.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Ae.reduceDescriptors(Be.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),Ae.freezeMethods(Be);const Me=Be,qe="[REDACTED ****]";function We(e){try{return String(e)}catch(e){return""}}class ze extends Error{static from(e,t,r,n,o,i){let a=e.message;!a&&Ae.isArray(e.errors)&&e.errors.length&&(a=function(e){return e.errors.map(e=>{try{return e&&e.message?We(e.message):We(e)}catch(e){return""}}).filter(Boolean).join("; ")||e.name||"AggregateError"}(e));const s=new ze(a,t||e.code,r,n,o);return Object.defineProperty(s,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),s.name=e.name,null!=e.status&&null==s.status&&(s.status=e.status),i&&Object.assign(s,i),s}constructor(e,t,r,n,o){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status)}toJSON(){const e=this.config,t=e&&Ae.hasOwnProp(e,"redact")?e.redact:void 0,r=Ae.isArray(t)&&t.length>0?function(e,t){const r=new Set(t.map(e=>String(e).toLowerCase())),n=[],o=e=>{if(null===e||"object"!=typeof e)return e;if(Ae.isBuffer(e))return e;if(-1!==n.indexOf(e))return;let t;if(e instanceof Me&&(e=e.toJSON()),n.push(e),Ae.isArray(e))t=[],e.forEach((e,r)=>{const n=o(e);Ae.isUndefined(n)||(t[r]=n)});else{if(!Ae.isPlainObject(e)&&function(e){if(Ae.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(Ae.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(e))return n.pop(),e;t=Object.create(null);for(const[n,i]of Object.entries(e)){const e=r.has(n.toLowerCase())?qe:o(i);Ae.isUndefined(e)||(t[n]=e)}}return n.pop(),t};return o(e)}(e,t):Ae.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}}ze.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",ze.ERR_BAD_OPTION="ERR_BAD_OPTION",ze.ECONNABORTED="ECONNABORTED",ze.ETIMEDOUT="ETIMEDOUT",ze.ECONNREFUSED="ECONNREFUSED",ze.ERR_NETWORK="ERR_NETWORK",ze.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",ze.ERR_DEPRECATED="ERR_DEPRECATED",ze.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",ze.ERR_BAD_REQUEST="ERR_BAD_REQUEST",ze.ERR_CANCELED="ERR_CANCELED",ze.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",ze.ERR_INVALID_URL="ERR_INVALID_URL",ze.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const $e=ze;function He(e){return Ae.isPlainObject(e)||Ae.isArray(e)}function Ke(e){return Ae.endsWith(e,"[]")?e.slice(0,-2):e}function Je(e,t,r){return e?e.concat(t).map(function(e,t){return e=Ke(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}const Ve=Ae.toFlatObject(Ae,{},null,function(e){return/^is[A-Z]/.test(e)}),Ge=function(e,t,r){if(!Ae.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(e,t)=>{const n=Ae.getSafeProp(r,e);return Ae.isUndefined(n)?t:n},o=n("metaTokens",!0),i=n("visitor")||y,a=n("dots",!1),s=n("indexes",!1),c=n("Blob")||"undefined"!=typeof Blob&&Blob,l=n("maxDepth",100),u=c&&Ae.isSpecCompliantForm(t),f=[];if(!Ae.isFunction(i))throw new TypeError("visitor must be a function");function p(e){if(null===e)return"";if(Ae.isDate(e))return e.toISOString();if(Ae.isBoolean(e))return e.toString();if(!u&&Ae.isBlob(e))throw new $e("Blob is not supported. Use a Buffer instead.");if(Ae.isArrayBuffer(e)||Ae.isTypedArray(e)){if(u&&"function"==typeof c)return new c([e]);throw new $e("Blob is not supported. Use a Buffer instead.",$e.ERR_NOT_SUPPORT)}return e}function d(e){if(e>l)throw new $e("Object is too deeply nested ("+e+" levels). Max depth: "+l,$e.ERR_FORM_DATA_DEPTH_EXCEEDED)}function y(e,r,n){let i=e;if(Ae.isReactNative(t)&&Ae.isReactNativeBlob(e))return t.append(Je(n,r,a),p(e)),!1;if(e&&!n&&"object"==typeof e)if(Ae.endsWith(r,"{}"))r=o?r:r.slice(0,-2),e=function(e){if(l===1/0)return JSON.stringify(e);const t=[];return JSON.stringify(e,function(e,r){if(!Ae.isObject(r))return r;for(;t.length&&t[t.length-1]!==this;)t.pop();return t.push(r),d(1+t.length-1),r})}(e);else if(Ae.isArray(e)&&function(e){return Ae.isArray(e)&&!e.some(He)}(e)||(Ae.isFileList(e)||Ae.endsWith(r,"[]"))&&(i=Ae.toArray(e)))return r=Ke(r),i.forEach(function(e,n){!Ae.isUndefined(e)&&null!==e&&t.append(!0===s?Je([r],n,a):null===s?r:r+"[]",p(e))}),!1;return!!He(e)||(t.append(Je(n,r,a),p(e)),!1)}const m=Object.assign(Ve,{defaultVisitor:y,convertValue:p,isVisitable:He});if(!Ae.isObject(e))throw new TypeError("data must be an object");return function e(r,n,o=0){if(!Ae.isUndefined(r)){if(d(o),-1!==f.indexOf(r))throw new Error("Circular reference detected in "+n.join("."));f.push(r),Ae.forEach(r,function(r,a){!0===(!(Ae.isUndefined(r)||null===r)&&i.call(t,r,Ae.isString(a)?a.trim():a,n,m))&&e(r,n?n.concat(a):[a],o+1)}),f.pop()}}(e),t};function Qe(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function Xe(e,t){this._pairs=[],e&&Ge(e,this,t)}const Ze=Xe.prototype;Ze.append=function(e,t){this._pairs.push([e,t])},Ze.toString=function(e){const t=e?t=>e.call(this,t,Qe):Qe;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};const Ye=Xe;function et(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function tt(e,t,r){if(!t)return e;e=e||"";const n=Ae.isFunction(r)?{serialize:r}:r,o=Ae.getSafeProp(n,"encode")||et,i=Ae.getSafeProp(n,"serialize");let a;if(a=i?i(t,n):Ae.isURLSearchParams(t)?t.toString():new Ye(t,n).toString(o),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}const rt=Symbol("internals");function nt(e){return e?e.length:0}function ot(e){if(e)for(;e.length&&null===e[e.length-1];)e.pop()}function it(e,t){const r=e.handlers,n=nt(r);r!==t.handlersRef?(t.handlersRef=r,t.handlerEntries.clear()):n!==t.handlersLength&&(n?t.handlerEntries.forEach(function(e,n){r[e.index]!==e.handler&&t.handlerEntries.delete(n)}):t.handlerEntries.clear()),t.handlersLength=n}const at=class{constructor(){this.handlers=[],this[rt]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(e,t,r){const n={fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null},o=this[rt];null==this.handlers&&(this.handlers=[]),it(this,o);const i=o.nextId++;return this.handlers.push(n),o.handlerEntries.set(i,{handler:n,index:this.handlers.length-1}),o.handlersLength=this.handlers.length,i}eject(e){const t=this[rt];it(this,t);const r=t.handlerEntries.get(e);if(r){if(t.handlerEntries.delete(e),this.handlers[r.index]!==r.handler)return;this.handlers[r.index]=null,t.iterationDepth||(ot(this.handlers),t.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],it(this,this[rt]))}forEach(e){const t=this[rt];it(this,t),t.iterationDepth++;try{Ae.forEach(this.handlers,function(t){null!==t&&e(t)})}finally{--t.iterationDepth||(it(this,t),ot(this.handlers),t.handlersLength=nt(this.handlers))}}},st={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},ct={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Ye,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},lt="undefined"!=typeof window&&"undefined"!=typeof document,ut="object"==typeof navigator&&navigator||void 0,ft=lt&&(!ut||["ReactNative","NativeScript","NS"].indexOf(ut.product)<0),pt="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,dt=lt&&window.location.href||"http://localhost",yt={...R,...ct};function mt(e){if(e>100)throw new $e("FormData field is too deeply nested ("+e+" levels). Max depth: 100",$e.ERR_FORM_DATA_DEPTH_EXCEEDED)}const ht=function(e){function t(e,r,n,o){mt(o);let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;return i=!i&&Ae.isArray(n)?n.length:i,s?(Ae.hasOwnProp(n,i)?n[i]=Ae.isArray(n[i])?n[i].concat(r):[n[i],r]:n[i]=r,!a):(Ae.hasOwnProp(n,i)&&Ae.isObject(n[i])||(n[i]=[]),t(e,r,n[i],o)&&Ae.isArray(n[i])&&(n[i]=function(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n{t(function(e){const t=[],r=/[^.[\]]+|\[([^.[\]]*)]/g;let n;for(;null!==(n=r.exec(e));)mt(t.length),t.push("[]"===n[0]?"":n[1]||n[0]);return t}(e),n,r,0)}),r}return null},gt=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),bt=(e,t)=>null!=e&&Ae.hasOwnProp(e,t)?e[t]:void 0,vt={transitional:st,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=Ae.isObject(e);if(o&&Ae.isHTMLForm(e)&&(e=new FormData(e)),Ae.isFormData(e))return n?JSON.stringify(ht(e)):e;if(Ae.isArrayBuffer(e)||Ae.isBuffer(e)||Ae.isStream(e)||Ae.isFile(e)||Ae.isBlob(e)||Ae.isReadableStream(e))return e;if(Ae.isArrayBufferView(e))return e.buffer;if(Ae.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){const t=bt(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Ge(e,new yt.classes.URLSearchParams,{visitor:function(e,t,r,n){return yt.isNode&&Ae.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...t})}(e,t).toString();if((i=Ae.isFileList(e))||r.indexOf("multipart/form-data")>-1){const r=bt(this,"env"),n=r&&r.FormData;return Ge(i?{"files[]":e}:e,n&&new n,t)}}return o||n?(t.setContentType("application/json",!1),function(e){if(Ae.isString(e))try{return(0,JSON.parse)(e),Ae.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=bt(this,"transitional")||vt.transitional,r=t&&t.forcedJSONParsing,n=bt(this,"responseType"),o="json"===n;if(Ae.isResponse(e)||Ae.isReadableStream(e))return e;if(e&&Ae.isString(e)&&(r&&!n||o)){const r=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e,bt(this,"parseReviver"))}catch(e){if(r){if("SyntaxError"===e.name)throw $e.from(e,$e.ERR_BAD_RESPONSE,this,null,bt(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:yt.classes.FormData,Blob:yt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ae.forEach(gt,e=>{vt.headers[e]={}});const wt=vt;function Ot(e,t){const r=this||wt,n=t||r,o=Me.from(n.headers);let i=n.data;return Ae.forEach(e,function(e){i=e.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function St(e){return!(!e||!e.__CANCEL__)}const Et=class extends $e{constructor(e,t,r){super(e??"canceled",$e.ERR_CANCELED,t,r),this.name="CanceledError",this.__CANCEL__=!0}};function _t(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new $e("Request failed with status code "+r.status,r.status>=400&&r.status<500?$e.ERR_BAD_REQUEST:$e.ERR_BAD_RESPONSE,r.config,r.request,r)):e(r)}const xt=/[\t\n\r]/g;function At(e){if("string"!=typeof e)return e;let t=0;for(;t{let n=0;const o=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),l=n[a];o||(o=c),r[i]=s,n[i]=c;let u=a,f=0;for(;u!==i;)f+=r[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o{o=i,r=null,n&&(clearTimeout(n),n=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=i?a(e,t):(r=e,n||(n=setTimeout(()=>{n=null,a(r)},i-s)))},()=>r&&a(r),(...e)=>a(e)]}(r=>{if(!r||!Ae.isNumber(r.loaded))return;const i=r.loaded,a=r.lengthComputable?r.total:void 0,s=Math.max(0,null!=a?Math.min(i,a):i),c=Math.max(0,s-n),l=o(c);n=Math.max(n,s),e({loaded:s,total:a,progress:a?s/a:void 0,bytes:c,rate:l||void 0,estimated:l&&a?(a-s)/l:void 0,event:r,lengthComputable:null!=a,[t?"download":"upload"]:!0})},r)},Pt=(e,t)=>{const r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Tt=(e,t=Ae.asap)=>(...r)=>t(()=>e(...r)),Ct=yt.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,yt.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(yt.origin),yt.navigator&&/(msie|trident)/i.test(yt.navigator.userAgent)):()=>!0,Nt=yt.hasStandardBrowserEnv?{write(e,t,r,n,o,i,a){if("undefined"==typeof document)return;const s=[`${e}=${encodeURIComponent(t)}`];Ae.isNumber(r)&&s.push(`expires=${new Date(r).toUTCString()}`),Ae.isString(n)&&s.push(`path=${n}`),Ae.isString(o)&&s.push(`domain=${o}`),!0===i&&s.push("secure"),Ae.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.split(";");for(let r=0;rnull,remove(){}},Lt=/^https?:(?!\/\/)/i;function Dt(e,t){if("string"==typeof e){const r=At(e);if(Lt.test(r))throw new $e(`Invalid URL ${JSON.stringify(function(e){const t=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${qe}@`),r=t.indexOf("#"),n=(-1===r?t:t.slice(0,r)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${qe}`);return-1===r?n:`${n}#${o=t.slice(r+1),o?o.replace(/(^|&)([^=&]*=)?[^&]+/g,(e,t,r="")=>`${t}${r}${qe}`):o}`;var o}(r))}: missing "//" after protocol`,$e.ERR_INVALID_URL,t)}}function kt(e,t,r,n){Dt(t,n);let o=!("string"==typeof(i=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(i));var i;return e&&(o||!1===r)?(Dt(e,n),function(e,t){if(!t)return e;let r=e.length;for(;r>0&&47===e.charCodeAt(r-1);)r--;return e.slice(0,r)+"/"+t.replace(/^\/+/,"")}(e,t)):t}const It=e=>e instanceof Me?{...e}:e;function Ft(e,t){e=e||{},t=t||{};const r=Object.create(null);function n(e,t,r,n){return Ae.isPlainObject(e)&&Ae.isPlainObject(t)?Ae.merge.call({caseless:n},e,t):Ae.isPlainObject(t)?Ae.merge({},t):Ae.isArray(t)?t.slice():t}function o(e,t,r,o){return Ae.isUndefined(t)?Ae.isUndefined(e)?void 0:n(void 0,e,0,o):n(e,t,0,o)}function i(e,t){if(!Ae.isUndefined(t))return n(void 0,t)}function a(e,t){return Ae.isUndefined(t)?Ae.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function s(r,o,i){return Ae.hasOwnProp(t,i)?n(r,o):Ae.hasOwnProp(e,i)?n(void 0,r):void 0}Object.defineProperty(r,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutErrorMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,allowedSocketPaths:a,responseEncoding:a,validateStatus:s,headers:(e,t,r)=>o(It(e),It(t),0,!0)};var l;return Ae.forEach((l={...e,...t},Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(l).concat(Object.getOwnPropertySymbols(l).filter(e=>Object.getOwnPropertyDescriptor(l,e).enumerable)):Object.keys(l)),function(n){if("__proto__"===n||"constructor"===n||"prototype"===n)return;const i=Ae.hasOwnProp(c,n)?c[n]:o,a=i(Ae.hasOwnProp(e,n)?e[n]:void 0,Ae.hasOwnProp(t,n)?t[n]:void 0,n);Ae.isUndefined(a)&&i!==s||(r[n]=a)}),Ae.hasOwnProp(t,"validateStatus")&&Ae.isUndefined(t.validateStatus)&&!1===function(r){const n=Ae.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!Ae.isUndefined(n)){if(!Ae.isPlainObject(n))return;if(Ae.hasOwnProp(n,r))return n[r]}const o=Ae.hasOwnProp(e,"transitional")?e.transitional:void 0;if(Ae.isPlainObject(o)&&Ae.hasOwnProp(o,r))return o[r]}("validateStatusUndefinedResolves")&&(Ae.hasOwnProp(e,"validateStatus")?r.validateStatus=n(void 0,e.validateStatus):delete r.validateStatus),r}const Ut=["content-type","content-length"],Bt=function(e){const t=Ft({},e),r=e=>Ae.hasOwnProp(t,e)?t[e]:void 0,n=r("data");let o=r("withXSRFToken");const i=r("xsrfHeaderName"),a=r("xsrfCookieName");let s=r("headers");const c=r("auth"),l=r("baseURL"),u=r("allowAbsoluteUrls"),f=r("url");if(t.headers=s=Me.from(s),t.url=tt(kt(l,f,u,t),r("params"),r("paramsSerializer")),c){const t=Ae.getSafeProp(c,"username")||"",r=Ae.getSafeProp(c,"password")||"";try{s.set("Authorization","Basic "+btoa(t+":"+(r?encodeURIComponent(r).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))):"")))}catch(t){throw $e.from(t,$e.ERR_BAD_OPTION_VALUE,e)}}if(Ae.isFormData(n)){const e=Ae.getSafeProp(n,"getHeaders");yt.hasStandardBrowserEnv||yt.hasStandardBrowserWebWorkerEnv||Ae.isReactNative(n)?s.setContentType(void 0):Ae.isFunction(e)&&function(e,t,r){"content-only"===r?Object.entries(t||{}).forEach(([t,r])=>{Ut.includes(t.toLowerCase())&&e.set(t,r)}):e.set(t)}(s,e.call(n),r("formDataHeaderPolicy"))}if(yt.hasStandardBrowserEnv&&(Ae.isFunction(o)&&(o=o(t)),!0===o||null==o&&Ct(t.url))){const e=i&&a&&Nt.read(a);e&&s.set(i,e)}return t},Mt="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){const n=Bt(e);let o=n.data;const i=Me.from(n.headers).normalize();let a,s,c,l,u,f,{responseType:p,onUploadProgress:d,onDownloadProgress:y}=n;function m(){l&&l(),u&&u(),n.cancelToken&&n.cancelToken.unsubscribe(a),n.signal&&n.signal.removeEventListener("abort",a)}let h=new XMLHttpRequest;function g(o){if(!h)return;if(!(0!==h.status||"file"===(Rt(At(n.url))||Rt(yt.origin))||h.responseURL&&h.responseURL.startsWith("file:")))return r(new $e("Request aborted",$e.ECONNABORTED,e,h)),m(),void(h=null);try{o?f&&f(o):u&&u()}catch(e){setTimeout(()=>{throw e})}if(!h)return;const i=Me.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());_t(function(e){t(e),m()},function(e){r(e),m()},{data:p&&"text"!==p&&"json"!==p?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:i,config:e,request:h}),h=null}h.open(n.method.toUpperCase(),n.url,!0),h.timeout=n.timeout,"onloadend"in h?h.onloadend=g:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&h.responseURL.startsWith("file:"))&&setTimeout(g)},h.onabort=function(){h&&(r(new $e("Request aborted",$e.ECONNABORTED,e,h)),m(),h=null)},h.onerror=function(t){const n=t&&t.message?t.message:"Network Error",o=new $e(n,$e.ERR_NETWORK,e,h);o.event=t||null,r(o),m(),h=null},h.ontimeout=function(){let t=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const o=n.transitional||st;n.timeoutErrorMessage&&(t=n.timeoutErrorMessage),r(new $e(t,o.clarifyTimeoutError?$e.ETIMEDOUT:$e.ECONNABORTED,e,h)),m(),h=null},void 0===o&&i.setContentType(null),"setRequestHeader"in h&&Ae.forEach(Ne(i),function(e,t){h.setRequestHeader(t,e)}),Ae.isUndefined(n.withCredentials)||(h.withCredentials=!!n.withCredentials),p&&"json"!==p&&(h.responseType=n.responseType),y&&([c,u,f]=jt(y,!0),h.addEventListener("progress",c)),d&&h.upload&&([s,l]=jt(d),h.upload.addEventListener("progress",s),h.upload.addEventListener("loadend",l)),(n.cancelToken||n.signal)&&(a=t=>{h&&(r(!t||t.type?new Et(null,e,h):t),h.abort(),m(),h=null)},n.cancelToken&&n.cancelToken.subscribe(a),n.signal&&(n.signal.aborted?a():n.signal.addEventListener("abort",a)));const b=Rt(n.url);if(b&&!yt.protocols.includes(b))return r(new $e("Unsupported protocol "+b+":",$e.ERR_BAD_REQUEST,e)),void m();h.send(o||null)})},qt=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const r=new AbortController;let n=!1;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof $e?t:new Et(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,o(new $e(`timeout of ${t}ms exceeded`,$e.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>{n||(e.aborted?o.call(e):e.addEventListener("abort",o,{once:!0}))});const{signal:s}=r;return s.unsubscribe=()=>Ae.asap(a),s},Wt=function*(e,t){let r=e.byteLength;if(!t||r{const o=async function*(e,t){for await(const r of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}}(e))yield*Wt(r,t)}(e,t);let i,a=0,s=e=>{i||(i=!0,n&&n(e))};return new ReadableStream({async pull(e){try{const{done:t,value:n}=await o.next();if(t)return s(),void e.close();let i=n.byteLength;if(r){let e=a+=i;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},$t=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,Ht=(e,t,r)=>t+2e<=57?e-48:(223&e)-55,Jt=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||43===e||47===e||45===e||95===e,Vt=e=>9===e||10===e||12===e||13===e||32===e,Gt=e=>{const t=e.length;let r=0,n=0,o=!1;for(let i=0;i0?o=!0:r++:n++)}return o||n>2||n>0&&(r+n)%4!=0||r%4==1?(e=>{const t=e.length;let r=0;return t>0&&61===e.charCodeAt(t-1)&&(r++,t>1&&61===e.charCodeAt(t-2)&&r++),Math.floor(3*(t-r)/4)})(e):(e=>{const t=e%4;return 3*Math.floor(e/4)+(2===t?1:3===t?2:0)})(r)},Qt={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:Xt}=Ae,Zt=e=>{if(!Ae.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},Yt=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},er=e=>{const t=void 0!==Ae.global&&null!==Ae.global?Ae.global:globalThis,{ReadableStream:r,TextEncoder:n}=t;e=Ae.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:o,Request:i,Response:a}=e,s=o?Xt(o):"function"==typeof fetch,c=Xt(i),l=Xt(a);if(!s)return!1;const u=s&&Xt(r),f=s&&("function"==typeof n?(p=new n,e=>p.encode(e)):async e=>new Uint8Array(await new i(e).arrayBuffer()));var p;const d=c&&u&&Yt(()=>{let e=!1;const t=new i(yt.origin,{body:new r,method:"POST",get duplex(){return e=!0,"half"}}),n=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!n}),y=l&&u&&Yt(()=>Ae.isReadableStream(new a("").body)),m={stream:y&&(e=>e.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!m[e]&&(m[e]=(t,r)=>{let n=t&&t[e];if(n)return n.call(t);throw new $e(`Response type '${e}' is not supported`,$e.ERR_NOT_SUPPORT,r)})});const h=async e=>{if(null==e)return 0;if(Ae.isBlob(e))return e.size;if(Ae.isSpecCompliantForm(e)){const t=new i(yt.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Ae.isArrayBufferView(e)||Ae.isArrayBuffer(e)?e.byteLength:(Ae.isURLSearchParams(e)&&(e+=""),Ae.isString(e)?(await f(e)).byteLength:void 0)};return async e=>{let{url:t,method:r,data:s,signal:l,cancelToken:f,timeout:p,onDownloadProgress:g,onUploadProgress:b,responseType:v,headers:w,withCredentials:O="same-origin",fetchOptions:S,maxContentLength:E,maxBodyLength:_,maxRedirects:x}=Bt(e);const A=Ae.isNumber(E)&&E>-1,R=Ae.isNumber(_)&&_>-1;let j=o||fetch;v=v?(v+"").toLowerCase():"text";let P=qt([l,f&&f.toAbortSignal()],p),T=null;const C=P&&P.unsubscribe&&(()=>{P.unsubscribe()});let N,L=null;const D=()=>new $e("Request body larger than maxBodyLength limit",$e.ERR_BAD_REQUEST,e,T);try{let o;const l=(I="auth",Ae.hasOwnProp(e,I)?e[I]:void 0);if(l){o={username:Ae.getSafeProp(l,"username")||"",password:Ae.getSafeProp(l,"password")||""}}if((e=>{const t=e.indexOf("://");let r=e;return-1!==t&&(r=r.slice(t+3)),r.includes("@")||r.includes(":")})(t)){const e=new URL(t,yt.origin);if(!o&&(e.username||e.password)){o={username:Zt(e.username),password:Zt(e.password)}}(e.username||e.password)&&(e.username="",e.password="",t=e.href)}if(o&&(w.delete("authorization"),w.set("Authorization","Basic "+btoa((k=(o.username||"")+":"+(o.password||""),encodeURIComponent(k).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))))))),A&&"string"==typeof t&&t.startsWith("data:")){const r=function(e){const t="string"==typeof e?e.indexOf("#"):-1;return((e,t)=>{if(!e||"string"!=typeof e)return 0;if(!e.startsWith("data:"))return 0;const r=e.indexOf(",");if(r<0)return 0;const n=e.slice(5,r),o=e.slice(r+1);if(/;base64/i.test(n))return t(o);let i=0;for(let e=0,t=o.length;e=55296&&r<=56319&&e+1=56320&&t<=57343?(i+=4,e++):i+=3}else i+=3}return i})(-1===t?e:e.slice(0,t),Gt)}(t);if(r>E)throw new $e("maxContentLength size of "+E+" exceeded",$e.ERR_BAD_RESPONSE,e,T)}if(R&&"get"!==r&&"head"!==r){const e=await h(s);if("number"==typeof e&&isFinite(e)&&(N=e,e>_))throw D()}const f=R&&(Ae.isReadableStream(s)||Ae.isStream(s)),p=(e,t,r)=>zt(e,65536,e=>{if(R&&e>_)throw L=D();t&&t(e)},r);if(d&&"get"!==r&&"head"!==r&&(b||f)){if(N=N??await(async(e,t)=>Ae.toFiniteNumber(e.getContentLength())??h(t))(w,s),0!==N||f){let e,r=new i(t,{method:"POST",body:s,duplex:"half"});if(Ae.isFormData(s)&&(e=r.headers.get("content-type"))&&w.setContentType(e),r.body){const[e,t]=b&&Pt(N,jt(Tt(b)))||[];s=p(r.body,e,t)}}}else if(f&&!c&&u&&"get"!==r&&"head"!==r)s=p(s);else if(f&&c&&!d&&"get"!==r&&"head"!==r)throw new $e("Stream request bodies are not supported by the current fetch implementation",$e.ERR_NOT_SUPPORT,e,T);Ae.isString(O)||(O=O?"include":"omit");const F=c&&"credentials"in i.prototype;if(Ae.isFormData(s)){const e=w.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&w.delete("content-type")}w.set("User-Agent","axios/1.20.0",!1);const U=null==S?S:Object.assign(Object.create(null),S);U&&(delete U.body,delete U.headers,delete U.method,delete U.signal,delete U.duplex,delete U.credentials);const B=Object.assign(Object.create(null),U,{signal:P,method:r.toUpperCase(),headers:Ne(w.normalize()),body:s,duplex:"half",credentials:F?O:void 0});c&&(Ae.forEach(Qt,(e,t)=>{void 0===B[t]&&(B[t]=e)}),void 0===B.signal&&(B.signal=null),void 0===B.body&&(B.body=null)),0===x&&(B.redirect="manual",U&&(U.redirect="manual")),T=c&&new i(t,B);let M=await(c?j(T,U):j(t,B));const q=Me.from(M.headers);if(A){const t=Ae.toFiniteNumber(q.getContentLength());if(null!=t&&t>E)throw new $e("maxContentLength size of "+E+" exceeded",$e.ERR_BAD_RESPONSE,e,T)}const W=y&&("stream"===v||"response"===v);if(y&&M.body&&(g||A||W&&C)){const t={};["status","statusText","headers"].forEach(e=>{t[e]=M[e]});const r=Ae.toFiniteNumber(q.getContentLength()),[n,o]=g&&Pt(r,jt(Tt(g),!0))||[];let i=0;const s=t=>{if(A&&(i=t,i>E))throw new $e("maxContentLength size of "+E+" exceeded",$e.ERR_BAD_RESPONSE,e,T);n&&n(t)};M=new a(zt(M.body,65536,s,()=>{o&&o(),C&&C()}),t)}v=v||"text";let z=await m[Ae.findKey(m,v)||"text"](M,e);if(A&&!y&&!W){let t;if(null!=z&&("number"==typeof z.byteLength?t=z.byteLength:"number"==typeof z.size?t=z.size:"string"==typeof z&&(t="function"==typeof n?(new n).encode(z).byteLength:z.length)),"number"==typeof t&&t>E)throw new $e("maxContentLength size of "+E+" exceeded",$e.ERR_BAD_RESPONSE,e,T)}return!W&&C&&C(),await new Promise((t,r)=>{_t(t,r,{data:z,headers:Me.from(M.headers),status:M.status,statusText:M.statusText,config:e,request:T})})}catch(t){if(C&&C(),P&&P.aborted&&P.reason instanceof $e){const r=P.reason;throw r.config=e,T&&(r.request=T),t!==r&&Object.defineProperty(r,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),r}if(L)throw T&&!L.request&&(L.request=T),L;if(t instanceof $e)throw T&&!t.request&&(t.request=T),t;if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message)){const r=new $e("Network Error",$e.ERR_NETWORK,e,T,t&&t.response);throw Object.defineProperty(r,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),r}throw $e.from(t,t&&t.code,e,T,t&&t.response)}var k,I}},tr=new Map,rr=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:o}=t,i=[n,o,r];let a,s,c=i.length,l=tr;for(;c--;)a=i[c],s=l.get(a),void 0===s&&l.set(a,s=c?new Map:er(t)),l=s;return s},nr=(rr(),{http:null,xhr:Mt,fetch:{get:rr}});Ae.forEach(nr,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const or=e=>`- ${e}`,ir=e=>Ae.isFunction(e)||null===e||!1===e,ar=function(e,t){e=Ae.isArray(e)?e:[e];const{length:r}=e;let n,o;const i={};for(let a=0;a`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=r?e.length>1?"since :\n"+e.map(or).join("\n"):" "+or(e[0]):"as no adapter specified";throw new $e("There is no suitable adapter to dispatch the request "+t,$e.ERR_NOT_SUPPORT)}return o};function sr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Et(null,e)}function cr(e){const t=Ae.toSafeFlatObject(e);return sr(t),t.headers=Me.from(Ae.getSafeProp(t,"headers")),t.data=Ot.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),ar(t.adapter||wt.adapter,t)(t).then(function(e){sr(t),t.response=e;try{e.data=Ot.call(t,t.transformResponse,e)}finally{delete t.response}return e.headers=Me.from(e.headers),e},function(e){if(!St(e)&&(sr(t),e&&e.response)){t.response=e.response;try{e.response.data=Ot.call(t,t.transformResponse,e.response)}finally{delete t.response}e.response.headers=Me.from(e.response.headers)}return Promise.reject(e)})}const lr={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{lr[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const ur={};lr.transitional=function(e,t,r){function n(e,t){return"[Axios v1.20.0] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,o,i)=>{if(!1===e)throw new $e(n(o," has been removed"+(t?" in "+t:"")),$e.ERR_DEPRECATED);return t&&!ur[o]&&(ur[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,i)}},lr.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};const fr={assertOptions:function(e,t,r){if("object"!=typeof e||null===e)throw new $e("options must be an object",$e.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],a=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(a){const t=e[i],r=void 0===t||a(t,i,e);if(!0!==r)throw new $e("option "+i+" must be "+r,$e.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new $e("Unknown option "+i,$e.ERR_BAD_OPTION)}},validators:lr},pr=fr.validators;class dr{constructor(e){this.defaults=e||{},this.interceptors={request:new at,response:new at}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error)try{let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const r=t.stack;let n="";if("string"==typeof r){const e=r.indexOf("\n");n=-1===e?"":r.slice(e+1)}if(e.stack){if(n){const t=n.indexOf("\n"),r=-1===t?-1:n.indexOf("\n",t+1),o=-1===r?"":n.slice(r+1);String(e.stack).endsWith(o)||(e.stack+="\n"+n)}}else e.stack=n}catch(e){}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Ft(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:o}=t;void 0!==r&&fr.assertOptions(r,{silentJSONParsing:pr.transitional(pr.boolean),forcedJSONParsing:pr.transitional(pr.boolean),clarifyTimeoutError:pr.transitional(pr.boolean),legacyInterceptorReqResOrdering:pr.transitional(pr.boolean),advertiseZstdAcceptEncoding:pr.transitional(pr.boolean),validateStatusUndefinedResolves:pr.transitional(pr.boolean)},!1),null!=n&&(Ae.isFunction(n)?t.paramsSerializer={serialize:n}:fr.assertOptions(n,{encode:pr.function,serialize:pr.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),fr.assertOptions(t,{baseUrl:pr.spelling("baseURL"),withXsrfToken:pr.spelling("withXSRFToken")},!0),t.method=(Ae.getSafeProp(t,"method")||Ae.getSafeProp(this.defaults,"method")||"get").toLowerCase();let i=o&&Ae.merge(o.common,o[t.method]);o&&Ae.forEach(gt.concat("common"),e=>{delete o[e]}),t.headers=Me.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;s=s&&e.synchronous;const r=t.transitional||st;r&&r.legacyInterceptorReqResOrdering?a.unshift(e.fulfilled,e.rejected):a.push(e.fulfilled,e.rejected)});const c=[];let l;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let u,f=0;if(!s){const e=[cr.bind(this),void 0];for(e.unshift(...a),e.push(...c),u=e.length,l=Promise.resolve(t);fcr.call(this,p)))}catch(e){l=Promise.reject(e)}break}}if(!l)try{l=cr.call(this,p)}catch(e){l=Promise.reject(e)}for(f=0,u=c.length;f{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t;const n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,o){r.reason||(r.reason=new Et(e,n,o),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new mr(function(t){e=t}),cancel:e}}}const hr=mr,gr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(gr).forEach(([e,t])=>{void 0===gr[t]&&(gr[t]=e)});const br=gr,vr=function e(t){const r=new yr(t),n=j(yr.prototype.request,r);return Ae.extend(n,yr.prototype,r,{allOwnKeys:!0}),Ae.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(Ft(t,r))},n}(wt);vr.Axios=yr,vr.CanceledError=Et,vr.CancelToken=hr,vr.isCancel=St,vr.VERSION="1.20.0",vr.toFormData=Ge,vr.AxiosError=$e,vr.Cancel=vr.CanceledError,vr.all=function(e){return Promise.all(e)},vr.spread=function(e){return function(t){return e.apply(null,t)}},vr.isAxiosError=function(e){return Ae.isObject(e)&&!0===e.isAxiosError},vr.mergeConfig=Ft,vr.AxiosHeaders=Me,vr.formToJSON=e=>ht(Ae.isHTMLForm(e)?new FormData(e):e),vr.getAdapter=ar,vr.HttpStatusCode=br,vr.default=vr;const wr=vr;function Or(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n={action:e},o={nonce:!1,action:e};void 0===t&&(t={});var i;for(var a in i="undefined"==typeof ajaxurl?r:ajaxurl,o)t.hasOwnProperty(a)||(t[a]=o[a]);var s={method:"post",url:i,params:n,paramsSerializer:function(e){return w().stringify(e,{arrayFormat:"brackets"})},data:w().stringify(t)};return wr(s)}function Sr(e){return Sr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sr(e)}function Er(){var e=Pr(),t=e.m(Er),r=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function n(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===r||"GeneratorFunction"===(t.displayName||t.name))}var o={throw:1,return:2,break:3,continue:3};function i(e){var t,r;return function(n){t||(t={stop:function(){return r(n.a,2)},catch:function(){return n.v},abrupt:function(e,t){return r(n.a,o[e],t)},delegateYield:function(e,o,i){return t.resultName=o,r(n.d,_r(e),i)},finish:function(e){return r(n.f,e)}},r=function(e,r,o){n.p=t.prev,n.n=t.next;try{return e(r,o)}finally{t.next=n.n}}),t.resultName&&(t[t.resultName]=n.v,t.resultName=void 0),t.sent=n.v,t.next=n.n;try{return e.call(this,t)}finally{n.p=t.prev,n.n=t.next}}}return(Er=function(){return{wrap:function(t,r,n,o){return e.w(i(t),r,n,o&&o.reverse())},isGeneratorFunction:n,mark:e.m,awrap:function(e,t){return new Cr(e,t)},AsyncIterator:jr,async:function(e,t,r,o,a){return(n(t)?Rr:Ar)(i(e),t,r,o,a)},keys:xr,values:_r}})()}function _r(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw new TypeError(Sr(e)+" is not iterable")}function xr(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}}function Ar(e,t,r,n,o){var i=Rr(e,t,r,n,o);return i.next().then(function(e){return e.done?e.value:i.next()})}function Rr(e,t,r,n,o){return new jr(Pr().w(e,t,r,n),o||Promise)}function jr(e,t){function r(n,o,i,a){try{var s=e[n](o),c=s.value;return c instanceof Cr?t.resolve(c.v).then(function(e){r("next",e,i,a)},function(e){r("throw",e,i,a)}):t.resolve(c).then(function(e){s.value=e,i(s)},function(e){return r("throw",e,i,a)})}catch(e){a(e)}}var n;this.next||(Tr(jr.prototype),Tr(jr.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),Tr(this,"_invoke",function(e,o,i){function a(){return new t(function(t,n){r(e,i,t,n)})}return n=n?n.then(a,a):a()},!0)}function Pr(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof s?n:s,l=Object.create(c.prototype);return Tr(l,"_invoke",function(r,n,o){var i,s,c,l=0,u=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,r){return i=t,s=0,c=e,p.n=r,a}};function d(r,n){for(s=r,c=n,t=0;!f&&l&&!o&&t3?(o=y===n)&&(c=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=r<2&&dn||n>y)&&(i[4]=r,i[5]=n,p.n=y,s=0))}if(o||r>1)return a;throw f=!0,n}return function(o,u,y){if(l>1)throw TypeError("Generator is already running");for(f&&1===u&&d(u,y),s=u,c=y;(t=s<2?e:c)||!f;){i||(s?s<3?(s>1&&(p.n=-1),d(s,c)):p.n=c:p.v=c);try{if(l=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=p.n<0)?c:r.call(n,p))!==a)break}catch(t){i=e,s=1,c=t}finally{l=1}}return{value:t,done:f}}}(r,o,i),!0),l}var a={};function s(){}function c(){}function l(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(Tr(t={},n,function(){return this}),t),f=l.prototype=s.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,Tr(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=l,Tr(f,"constructor",l),Tr(l,"constructor",c),c.displayName="GeneratorFunction",Tr(l,o,"GeneratorFunction"),Tr(f),Tr(f,o,"Generator"),Tr(f,n,function(){return this}),Tr(f,"toString",function(){return"[object Generator]"}),(Pr=function(){return{w:i,m:p}})()}function Tr(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Tr=function(e,t,r,n){function i(t,r){Tr(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},Tr(e,t,r,n)}function Cr(e,t){this.v=e,this.k=t}function Nr(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function Lr(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){Nr(i,n,o,a,s,"next",e)}function s(e){Nr(i,n,o,a,s,"throw",e)}a(void 0)})}}var Dr=wp.i18n,kr=Dr.__,Ir=Dr._n,Fr=wp.hooks,Ur=Fr.addFilter,Br=Fr.applyFilters,Mr=Fr.doAction,qr=[],Wr=[],zr=[];window.addEventListener("load",function(){var e=document.querySelectorAll(".sce-edit-button");if(e){document.addEventListener("wpacAfterUpdateComments",function(e){var t=e.detail.commentUrl;window.SCE_comments_updated(t)}),Ur("sce.comment.save.data","comment-edit-lite",function(e){var t=document.querySelectorAll("#sce-edit-comment".concat(e.comment_id)),r=null;if(null!==t&&(r=t[t.length-1].querySelector(".stars")),null!==r){var n=r.querySelector(".active").classList[0].replace("star-",""),o=document.querySelector("#woo_edit_comment_nonce_"+e.comment_id).value;return e.wooEditCommentNonce=o,e.rating=n,e}return e});var t=function(){var e=Lr(Er().mark(function e(t,r,n,o){var i;return Er().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Or("sce_get_time_left",{comment_id:t,post_id:r,_ajax_nonce:n},o);case 2:return i=e.sent,e.abrupt("return",i);case 4:case"end":return e.stop()}},e)}));return function(t,r,n,o){return e.apply(this,arguments)}}(),r=function(){var e=Lr(Er().mark(function e(t,r,n){var o;return Er().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Or(t,r,n);case 2:return o=e.sent,e.abrupt("return",o);case 4:case"end":return e.stop()}},e)}));return function(t,r,n){return e.apply(this,arguments)}}(),n=function(e){e.classList.remove("sce-hide"),e.classList.add("sce-show")},o=function(e,t){var r=e&&e.data?e.data:{},n=r.data||{};return n.error||n.message||r.error||t},i=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=document.querySelector("#sce-edit-comment-status".concat(e));null!==n&&(n.className="",n.classList.add("sce-status"),r&&n.classList.add("error"),n.setAttribute("aria-live",r?"assertive":"polite"),n.textContent=t,n.style.display="block")},a=function(e,t,r){document.dispatchEvent(new CustomEvent(e,{detail:r})),Mr(t,r)},s=function(e,t,r){var n=zr[t];n&&(a("sceCommentEditorDestroy","sce.comment.editor.destroy",{textarea:e,commentId:t,postId:r}),n.quicktags&&wp.editor&&"function"==typeof wp.editor.remove&&wp.editor.remove(n.textareaId),delete zr[t])},c=function(e,t){e.querySelectorAll("button").forEach(function(e){e.disabled=t}),e.querySelectorAll(".sce-edit-button-main, .sce-delete-button-main").forEach(function(e){e.setAttribute("aria-disabled",t?"true":"false")})},l=function(e,t,r){var n=e.querySelector(".sce-textarea"),o=e.querySelector(".sce-loading"),i=e.querySelector(".sce-edit-button");c(e,!1),e.dataset.sceSubmitting="false",null!==o&&(o.style.display="none"),null!==n&&(n.style.display=r?"block":"none"),null!==i&&(i.style.display=r?"none":"block"),null!==t&&t.setAttribute("aria-expanded",r?"true":"false")},u=function(e,t){t<0&&(e-=1,t=59);var r="",n=0,o=0,i=0;if(e>=1){var a=Math.abs(60*e);(n=Math.floor(a/86400))>=1&&(r+=n+" "+Ir("day","days",n,"simple-comment-editing"),r+=" "+kr("and","simple-comment-editing")+" ",a-=86400*n),(o=Math.floor(a/3600)%24)>=0&&(o>0&&(r+=o+" "+Ir("hour","hours",o,"simple-comment-editing"),r+=" "+kr("and","simple-comment-editing")+" "),a-=3600*o),a-=i=Math.floor(a/60)%60,e>0&&(r+=i+" "+Ir("minute","minutes",i,"simple-comment-editing")),t>0&&(r+=" "+kr("and","simple-comment-editing")+" ",r+=t+" "+Ir("second","seconds",t,"simple-comment-editing"))}else r+=t+" "+Ir("second","seconds",t,"simple-comment-editing");return Br("sce.comment.timer.text",r,Ir("day","days",n,"simple-comment-editing"),Ir("hour","hours",o,"simple-comment-editing"),Ir("minute","minutes",i,"simple-comment-editing"),Ir("second","seconds",t,"simple-comment-editing"),n,o,i,t)},f=function(){var e=Lr(Er().mark(function e(t,r,n,a,u){var f,p,d,y,m,h;return Er().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if("true"!==(f=t.closest(".sce-edit-comment")).dataset.sceSubmitting){e.next=3;break}return e.abrupt("return");case 3:return p=f.querySelector(".sce-edit-button-main"),d=f.querySelector(".sce-textarea"),y=null!==d&&"none"!==d.style.display,m=f.querySelector(".sce-loading"),f.dataset.sceSubmitting="true",c(f,!0),null!==m&&(m.style.display="block"),e.prev=10,e.next=13,Or("sce_delete_comment",{comment_id:r,post_id:n,nonce:a},u);case 13:if((h=e.sent).data&&!0===h.data.success){e.next=16;break}throw new Error(o(h,simple_comment_editing.comment_deleted_error));case 16:i(r,simple_comment_editing.comment_deleted),s(f.querySelector(".sce-comment-text"),r,n),setTimeout(function(){var e=document.querySelector("#comment-"+r);null!==e&&e.remove(),f.remove()},3e3),e.next=25;break;case 21:e.prev=21,e.t0=e.catch(10),l(f,p,y),i(r,e.t0.message||simple_comment_editing.comment_deleted_error,!0);case 25:case"end":return e.stop()}},e,null,[[10,21]])}));return function(t,r,n,o,i){return e.apply(this,arguments)}}();window.initEditCommentButton=function(e){var p=e.querySelector(".sce-edit-button-main, .sce-delete-button-main");if(null!==p){var d,y=(d=p).dataset.sceAjaxUrl||d.getAttribute("href"),m=new URLSearchParams(y),h=m.get("cid"),g=m.get("pid"),b=m.get("nonce");t(h,g,simple_comment_editing.nonce,y).then(function(t){if(!t.data||!0!==t.data.success||!t.data.data)throw new Error(o(t,simple_comment_editing.comment_deleted_error));var r=t.data.data,i=r.minutes,a=r.seconds;if(!0===r.can_edit)if("unlimited"!==i||"unlimited"!==a){i=parseInt(i),a=parseInt(a);var c=u(i,a),l=e.querySelector(".sce-timer");null!==l&&(l.textContent=c);var f=e.parentNode.querySelectorAll(".sce-textarea .sce-timer");null!==f&&f.forEach(function(e){e.textContent=c}),n(e);var p=new CustomEvent("sceTimerLoaded",{detail:{button:e,commentId:h,postId:g}});document.dispatchEvent(p);var d=document.querySelector("#sce-edit-comment".concat(h," textarea"));null!==d&&(Wr[h]=d.value),qr[h]={minutes:i,seconds:a,start:(new Date).getTime(),time:0,timer:function(){var t=qr[h].seconds-1,r=qr[h].minutes;if(r<=0&&t<=0)return s(e.parentNode.querySelector(".sce-comment-text"),h,g),void e.parentNode.remove();t<0&&(r-=1,t=59);var n=u(r,t),o=e.querySelector(".sce-timer");null!==o&&(o.textContent=n);var i=e.parentNode.querySelectorAll(".sce-textarea .sce-timer");null!==i&&i.forEach(function(e){e.textContent=n});var a=new CustomEvent("sceTimerCountdown",{detail:{button:e,commentId:h,postId:g,timer_seconds:t,timer_minutes:r}});document.dispatchEvent(a),qr[h].seconds=t,qr[h].minutes=r;var c=qr[h];c.time+=1e3;var l=(new Date).getTime()-c.start-c.time;window.setTimeout(c.timer,1e3-l)}},window.setTimeout(qr[h].timer,1e3)}else{n(e);var y=new CustomEvent("sceTimerLoaded",{detail:{button:e,commentId:h,postId:g}});document.dispatchEvent(y)}else e.parentNode.remove()}).catch(function(t){!function(e){e.classList.remove("sce-show"),e.classList.add("sce-hide")}(e),c(e.parentNode,!0),i(h,t.message||simple_comment_editing.comment_deleted_error,!0)});var v=document.querySelector("#sce-edit-comment".concat(h," .sce-edit-button-main"));if(null!==v){v.addEventListener("click",function(e){e.preventDefault();var t=v.closest(".sce-edit-comment");if("true"!==t.dataset.sceSubmitting){var r=document.querySelector("#sce-edit-comment-status".concat(h));null!==r&&(r.classList.remove("sce-error"),r.classList.remove("sce-success"),r.classList.add("sce-status"),r.style.display="none"),c(t,!1),t.querySelector(".sce-textarea").style.display="block",v.parentNode.style.display="none",v.setAttribute("aria-expanded","true");var n=t.querySelector(".sce-textarea textarea:first-of-type");!function(e,t,r){if(!zr[t]){var n={textareaId:e.id,quicktags:!1};zr[t]=n,simple_comment_editing.enable_quicktags&&wp.editor&&"function"==typeof wp.editor.initialize&&(wp.editor.initialize(e.id,{mediaButtons:!1,quicktags:!0,tinymce:!1}),n.quicktags=!0,a("sceCommentQuicktagsInit","sce.comment.editor.quicktags.init",{textarea:e,commentId:t,postId:r}))}}(n,h,g);var o=new CustomEvent("sceEditTextareaShow",{detail:{textarea:n,commentId:h,postId:g}});document.dispatchEvent(o),Mr("sce.comment.editor.show",{textarea:n,commentId:h,postId:g}),n.focus()}});var w=e.querySelector(".sce-delete-button-main");null!==w&&w.addEventListener("click",function(t){t.preventDefault(),simple_comment_editing.allow_delete_confirmation?confirm(simple_comment_editing.confirm_delete)&&f(e,h,g,b,y):f(e,h,g,b,y)});var O=e.parentNode.querySelector(".sce-textarea .sce-comment-delete");null!==O&&O.addEventListener("click",function(t){t.preventDefault(),simple_comment_editing.allow_delete_confirmation?confirm(simple_comment_editing.confirm_delete)&&f(e,h,g,b,y):f(e,h,g,b,y)});var S=e.parentNode.querySelector(".sce-textarea .sce-comment-cancel");null!==S&&S.addEventListener("click",function(e){e.preventDefault();var t=S.closest(".sce-edit-comment"),r=t.querySelector(".sce-textarea textarea:first-of-type"),n=Wr[h];r.value=n,a("sceCommentEditorReset","sce.comment.editor.reset",{textarea:r,commentId:h,postId:g,content:n}),s(r,h,g),l(t,v,!1)});var E=e.parentNode.querySelector(".sce-textarea .sce-comment-save");null!==E&&E.addEventListener("click",function(t){t.preventDefault();var n=e.closest(".sce-edit-comment");if("true"!==n.dataset.sceSubmitting){n.dataset.sceSubmitting="true",c(n,!0),e.parentNode.querySelector(".sce-textarea").style.display="none",e.parentNode.querySelector(".sce-loading").style.display="block";var u=e.parentNode.querySelector(".sce-textarea textarea:first-of-type");a("sceCommentSavePre","sce.comment.editor.save.pre",{button:e,textarea:u,commentId:h,postId:g});var p=u.value.trim();if(""===p&&simple_comment_editing.allow_delete)return confirm(simple_comment_editing.empty_comment)?(n.dataset.sceSubmitting="false",void f(e,h,g,b,y)):(u.value=Wr[h],a("sceCommentEditorReset","sce.comment.editor.reset",{textarea:u,commentId:h,postId:g,content:Wr[h]}),void l(n,v,!0));var d={action:"sce_save_comment",comment_content:p,comment_id:h,post_id:g,nonce:b};d=Br("sce.comment.save.data",d),r("sce_save_comment",d,y).then(function(t){var r=t.data;if(r&&!0===r.success&&r.data&&"string"==typeof r.data.comment_text){document.querySelector("#sce-comment".concat(h)).innerHTML=r.data.comment_text,Wr[h]=document.querySelector("#sce-edit-comment".concat(h," textarea")).value;var a=new CustomEvent("sceCommentSavePost",{detail:{button:e,textarea:u,commentId:h,postId:g,ajaxData:r.data}});document.dispatchEvent(a),Mr("sce.comment.editor.save.post",{button:e,textarea:u,commentId:h,postId:g,ajaxData:r.data}),s(u,h,g),l(n,v,!1)}else l(n,v,!0),i(h,o(t,simple_comment_editing.comment_deleted_error),!0)}).catch(function(e){l(n,v,!0),i(h,e.message||simple_comment_editing.comment_deleted_error,!0)})}})}}},e.forEach(function(e){initEditCommentButton(e)});var p=document.querySelectorAll(".comment-form-rating");p.length>0&&p.forEach(function(e){var t=e.dataset.selectedRating,r=e.querySelector(".stars");if(null!==r){r.classList.add("selected");var n=r.querySelector(".star-"+t);null!==n&&n.classList.add("active")}}),"undefined"!=typeof jQuery&&jQuery(document).ready(function(t){jQuery(".comment-form-rating select").hide().before('

\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t1\t\t\t\t\t\t\t\t2\t\t\t\t\t\t\t\t3\t\t\t\t\t\t\t\t4\t\t\t\t\t\t\t\t5\t\t\t\t\t\t\t\t\t\t\t\t\t

'),e.forEach(function(e){e.addEventListener("sceEditTextareaShow",function(t){var r=e.closest(".sce-edit-comment"),n=jQuery(r).find(".comment-form-rating").data("selected-rating"),o=jQuery(r).find(".stars");o.find("a").removeClass("active"),o.addClass("selected"),o.find(".star-"+n).addClass("active")}),e.addEventListener("sceCommentSavePost",function(t){var r=t.detail,n=(r.targetButton,r.textarea,r.commentId),o=(r.postId,r.ajaxData),i=jQuery(e).closest(".sce-edit-comment"),a=i.find(".stars");a.find("a").removeClass("active"),a.find(".star-"+o.rating).addClass("active"),i.closest("#comment-"+n).find(".star-rating span").css({width:20*o.rating+"%"}),i.find(".comment-form-rating").data("selected-rating",o.rating)})}),jQuery("body").on("click",".comment-form-rating p.stars a",function(e){e.preventDefault();var t=jQuery(this),r=jQuery(this).closest(".comment-form-rating").find("select"),n=jQuery(this).closest(".stars");return r.val(t.text()),t.siblings("a").removeClass("active"),t.addClass("active"),n.addClass("selected"),!1})}),"compact"===simple_comment_editing.timer_appearance&&Ur("sce.comment.timer.text","simple-comment-editing",function(e,t,r,n,o,i,a,s,c){return e="",i>=1&&(e+=i<10?"0"+i:i,e+=":"),a>0?(e+=a<10?"0"+a:a,e+=":"):0===a&&i>0&&(e+="00",e+=":"),s>0?(e+=s<10?"0"+s:s,e+=":"):0===s&&a>0&&(e+="00",e+=":"),c>0?e+=c<10?"0"+c:c:0===c&&s>0&&(e+="00"),e},10)}}),window.SCE_comments_updated=function(e){var t=e.match(/comment-(\d+)/);if(t){var r=t[1],n=document.querySelector("#comment-".concat(r));if(null!==n){var o=n.querySelector(".sce-edit-button");null!==o&&window.initEditCommentButton(o)}}}})()})(); \ No newline at end of file diff --git a/dist/sce-frontend.css b/dist/sce-frontend.css index c86c655..a38c4a0 100644 --- a/dist/sce-frontend.css +++ b/dist/sce-frontend.css @@ -1,2 +1,2 @@ -@keyframes showContainer{0%{opacity:0;height:auto}to{opacity:1;height:auto}}.sce-hide{opacity:0;height:0;overflow:hidden}.sce-show{animation:showContainer.6s ease-in-out;opacity:1;height:auto}.sce-comment-edit-buttons .sce-comment-edit-buttons-group{display:flex;justify-content:flex-start;align-items:center}.sce-comment-edit-buttons .sce-comment-edit-buttons-group .sce-comment-delete{margin-left:auto}.sce-comment-edit-buttons .sce-comment-edit-buttons-group .sce-comment-cancel,.sce-comment-edit-buttons .sce-comment-edit-buttons-group .sce-comment-delete,.sce-comment-edit-buttons .sce-comment-edit-buttons-group .sce-comment-save{display:flex;align-items:center;line-height:normal}.sce-comment-textarea{max-width:100%}.sce-comment-textarea .quicktags-toolbar{display:flex;flex-wrap:wrap;gap:2px;max-width:100%}.sce-edit-comment{margin:20px 0}.sce-edit-comment .sce-delete-button-main,.sce-edit-comment .sce-edit-button-main{appearance:none;background:none;border:0;color:inherit;cursor:pointer;font:inherit;padding:0;text-decoration:underline}.sce-edit-comment .sce-delete-button-main:focus-visible,.sce-edit-comment .sce-edit-button-main:focus-visible{outline:2px solid#ff0;outline-offset:2px}.sce-edit-comment .sce-delete-button-main[aria-disabled=true],.sce-edit-comment .sce-edit-button-main[aria-disabled=true]{cursor:wait;opacity:.6}@media only screen and (width<=600px){.sce-edit-comment .sce-comment-edit-buttons .sce-comment-edit-buttons-group{display:block}.sce-edit-comment .sce-comment-edit-buttons button{display:block;width:100%;margin-bottom:10px;text-align:center}.sce-edit-comment .sce-comment-edit-buttons button .sce-comment-delete{float:none}}.sce-edit-comment .sce-comment-edit-buttons svg{margin-right:10px}.sce-edit-comment .sce-timer-cancel{display:block;margin-top:15px;font-size:.8em;float:right}.sce-edit-comment .sce-timer-cancel:after{content:"";display:table;clear:right}.sce-edit-comment.default .sce-comment-edit-buttons,.sce-edit-comment.default .sce-timer-cancel-wrapper{margin:10px 0}.sce-edit-comment.default .sce-comment-edit-buttons .sce-timer,.sce-edit-comment.default .sce-timer-cancel-wrapper .sce-timer{font-size:12px;font-style:italic}.sce-edit-comment.default .sce-comment-edit-buttons button,.sce-edit-comment.default .sce-timer-cancel-wrapper button{margin-right:10px}.sce-edit-comment.default .sce-comment-edit-buttons button:last-of-type,.sce-edit-comment.default .sce-timer-cancel-wrapper button:last-of-type{margin-right:0}.sce-edit-comment.default .sce-comment-edit-buttons svg,.sce-edit-comment.default .sce-timer-cancel-wrapper svg{fill:currentcolor;margin-right:10px}.sce-edit-comment.default .sce-comment-edit-buttons .sce-comment-delete,.sce-edit-comment.default .sce-timer-cancel-wrapper .sce-comment-delete{float:right}.sce-edit-comment.default .sce-comment-edit-buttons .sce-timer,.sce-edit-comment.default .sce-timer-cancel-wrapper .sce-timer{margin-top:10px}.sce-edit-comment.regular .sce-comment-edit-buttons,.sce-edit-comment.regular .sce-timer-cancel-wrapper{margin:10px 0}.sce-edit-comment.regular .sce-comment-edit-buttons .sce-timer,.sce-edit-comment.regular .sce-timer-cancel-wrapper .sce-timer{font-size:12px;font-style:italic}.sce-edit-comment.regular .sce-comment-edit-buttons button,.sce-edit-comment.regular .sce-timer-cancel-wrapper button{border-radius:5px;border:1px solid#eee;padding:10px 20px;margin-right:10px;font-weight:700}.sce-edit-comment.regular .sce-comment-edit-buttons button:last-of-type,.sce-edit-comment.regular .sce-timer-cancel-wrapper button:last-of-type{margin-right:0}.sce-edit-comment.regular .sce-comment-edit-buttons .sce-comment-save,.sce-edit-comment.regular .sce-timer-cancel-wrapper .sce-comment-save{background-color:#4caf50;color:#fff;font-size:20px}.sce-edit-comment.regular .sce-comment-edit-buttons .sce-comment-save:hover,.sce-edit-comment.regular .sce-timer-cancel-wrapper .sce-comment-save:hover{background-color:#3d8b40}.sce-edit-comment.regular .sce-comment-edit-buttons .sce-comment-save svg,.sce-edit-comment.regular .sce-timer-cancel-wrapper .sce-comment-save svg{fill:#fff;margin-right:10px}.sce-edit-comment.regular .sce-comment-edit-buttons .sce-comment-cancel,.sce-edit-comment.regular .sce-timer-cancel-wrapper .sce-comment-cancel{background-color:#e7e7e7;color:#000;font-size:20px}.sce-edit-comment.regular .sce-comment-edit-buttons .sce-comment-cancel:hover,.sce-edit-comment.regular .sce-timer-cancel-wrapper .sce-comment-cancel:hover{background-color:#cecece}.sce-edit-comment.regular .sce-comment-edit-buttons .sce-comment-cancel svg,.sce-edit-comment.regular .sce-timer-cancel-wrapper .sce-comment-cancel svg{fill:#000;margin-right:10px}.sce-edit-comment.regular .sce-comment-edit-buttons .sce-timer-cancel,.sce-edit-comment.regular .sce-timer-cancel-wrapper .sce-timer-cancel{background-color:#f44336;color:#fff;text-decoration:none;font-size:20px}.sce-edit-comment.regular .sce-comment-edit-buttons .sce-timer-cancel:hover,.sce-edit-comment.regular .sce-timer-cancel-wrapper .sce-timer-cancel:hover{background-color:#ea1c0d;text-decoration:none}.sce-edit-comment.regular .sce-comment-edit-buttons .sce-timer-cancel:focus,.sce-edit-comment.regular .sce-timer-cancel-wrapper .sce-timer-cancel:focus{text-decoration:none}.sce-edit-comment.regular .sce-comment-edit-buttons .sce-timer-cancel svg,.sce-edit-comment.regular .sce-timer-cancel-wrapper .sce-timer-cancel svg{position:relative;top:3px;width:20px;height:20px;fill:#fff;margin-right:10px}.sce-edit-comment.regular .sce-comment-edit-buttons .sce-comment-delete,.sce-edit-comment.regular .sce-timer-cancel-wrapper .sce-comment-delete{background-color:#f44336;color:#fff;font-size:20px}.sce-edit-comment.regular .sce-comment-edit-buttons .sce-comment-delete:hover,.sce-edit-comment.regular .sce-timer-cancel-wrapper .sce-comment-delete:hover{background-color:#ea1c0d}.sce-edit-comment.regular .sce-comment-edit-buttons .sce-comment-delete svg,.sce-edit-comment.regular .sce-timer-cancel-wrapper .sce-comment-delete svg{fill:#fff;margin-right:10px}.sce-edit-comment.regular .sce-comment-edit-buttons .sce-comment-delete,.sce-edit-comment.regular .sce-timer-cancel-wrapper .sce-comment-delete{float:right}.sce-edit-comment.regular .sce-comment-edit-buttons .sce-timer,.sce-edit-comment.regular .sce-timer-cancel-wrapper .sce-timer{margin-top:10px}.sce-edit-comment.dark .sce-comment-edit-buttons,.sce-edit-comment.dark .sce-timer-cancel-wrapper{margin:10px 0}.sce-edit-comment.dark .sce-comment-edit-buttons .sce-timer,.sce-edit-comment.dark .sce-timer-cancel-wrapper .sce-timer{font-size:12px;font-style:italic}.sce-edit-comment.dark .sce-comment-edit-buttons button,.sce-edit-comment.dark .sce-timer-cancel-wrapper button{background-color:#595959;color:#fff;margin-right:10px;border-radius:5px;border:1px solid#eee;padding:10px 20px;text-decoration:none;font-weight:700;font-size:20px}.sce-edit-comment.dark .sce-comment-edit-buttons button:hover,.sce-edit-comment.dark .sce-timer-cancel-wrapper button:hover{background-color:#1a1a1a;text-decoration:none}.sce-edit-comment.dark .sce-comment-edit-buttons button:focus,.sce-edit-comment.dark .sce-timer-cancel-wrapper button:focus{text-decoration:none}.sce-edit-comment.dark .sce-comment-edit-buttons button svg,.sce-edit-comment.dark .sce-timer-cancel-wrapper button svg{fill:#fff;margin-right:10px}.sce-edit-comment.dark .sce-comment-edit-buttons button:last-of-type,.sce-edit-comment.dark .sce-timer-cancel-wrapper button:last-of-type{margin-right:0}.sce-edit-comment.dark .sce-comment-edit-buttons .sce-comment-delete,.sce-edit-comment.dark .sce-timer-cancel-wrapper .sce-comment-delete{float:right}.sce-edit-comment.dark .sce-comment-edit-buttons .sce-timer-cancel,.sce-edit-comment.dark .sce-timer-cancel-wrapper .sce-timer-cancel{background-color:#333}.sce-edit-comment.dark .sce-comment-edit-buttons .sce-timer-cancel svg,.sce-edit-comment.dark .sce-timer-cancel-wrapper .sce-timer-cancel svg{position:relative;top:3px;width:20px;height:20px;fill:#fff;margin-right:10px}.sce-edit-comment.dark .sce-comment-edit-buttons .sce-timer,.sce-edit-comment.dark .sce-timer-cancel-wrapper .sce-timer{margin-top:10px}.sce-edit-comment.light .sce-comment-edit-buttons,.sce-edit-comment.light .sce-timer-cancel-wrapper{margin:10px 0}.sce-edit-comment.light .sce-comment-edit-buttons .sce-timer,.sce-edit-comment.light .sce-timer-cancel-wrapper .sce-timer{font-size:12px;font-style:italic}.sce-edit-comment.light .sce-comment-edit-buttons button,.sce-edit-comment.light .sce-timer-cancel-wrapper button{background-color:#eee;color:#000;margin-right:10px;border-radius:5px;padding:10px 20px;border:1px solid#0000004d;text-decoration:none;font-weight:700;font-size:20px}.sce-edit-comment.light .sce-comment-edit-buttons button:hover,.sce-edit-comment.light .sce-timer-cancel-wrapper button:hover{background-color:#fff;text-decoration:none}.sce-edit-comment.light .sce-comment-edit-buttons button:focus,.sce-edit-comment.light .sce-timer-cancel-wrapper button:focus{text-decoration:none}.sce-edit-comment.light .sce-comment-edit-buttons button svg,.sce-edit-comment.light .sce-timer-cancel-wrapper button svg{fill:#000;margin-right:10px}.sce-edit-comment.light .sce-comment-edit-buttons button:last-of-type,.sce-edit-comment.light .sce-timer-cancel-wrapper button:last-of-type{margin-right:0}.sce-edit-comment.light .sce-comment-edit-buttons .sce-timer-cancel svg,.sce-edit-comment.light .sce-timer-cancel-wrapper .sce-timer-cancel svg{position:relative;top:3px;width:20px;height:20px;fill:#000;margin-right:10px}.sce-edit-comment.light .sce-comment-edit-buttons .sce-comment-delete,.sce-edit-comment.light .sce-timer-cancel-wrapper .sce-comment-delete{float:right}.sce-edit-comment.light .sce-comment-edit-buttons .sce-timer,.sce-edit-comment.light .sce-timer-cancel-wrapper .sce-timer{margin-top:10px}.sce-status{color:#000;background:#fff;border-left:4px solid#46b450;box-shadow:0 1px 1px#0000001a;margin:10px 0;padding:20px 15px}.sce-status.error{border-left-color:#dc3232}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0;white-space:nowrap}.stars~.stars{display:none}.comment-form-rating{display:flex;align-items:center;justify-content:flex-start}.comment-form-rating label{margin-right:10px}.comment-form-rating p.stars{margin:0!important;padding:0!important}.comment-form-rating p.stars span{display:flex;align-items:center}.woocommerce #reviews .comment-form-rating .stars a{top:unset} +@keyframes showContainer{0%{opacity:0;height:auto}to{opacity:1;height:auto}}.sce-hide{visibility:hidden;opacity:0;height:0;overflow:hidden}.sce-show{animation:showContainer.6s ease-in-out;opacity:1;height:auto}.sce-reduced-motion .sce-show{animation:none}@media (prefers-reduced-motion:reduce){.sce-edit-comment .sce-show{animation:none}}.sce-comment-edit-buttons .sce-comment-edit-buttons-group{display:flex;justify-content:flex-start;align-items:center}.sce-comment-edit-buttons .sce-comment-edit-buttons-group .sce-comment-delete{margin-left:auto}.sce-comment-edit-buttons .sce-comment-edit-buttons-group .sce-comment-cancel,.sce-comment-edit-buttons .sce-comment-edit-buttons-group .sce-comment-delete,.sce-comment-edit-buttons .sce-comment-edit-buttons-group .sce-comment-save{display:flex;align-items:center;line-height:normal}.sce-comment-textarea{max-width:100%}.sce-comment-textarea .quicktags-toolbar{display:flex;flex-wrap:wrap;gap:2px;max-width:100%}.sce-edit-comment{margin:20px 0}.sce-edit-comment .sce-delete-button-main,.sce-edit-comment .sce-edit-button-main{appearance:none;background:none;border:0;color:inherit;cursor:pointer;font:inherit;padding:0;text-decoration:underline}.sce-edit-comment .sce-delete-button-main:focus-visible,.sce-edit-comment .sce-edit-button-main:focus-visible{outline:2px solid#ff0;outline-offset:2px}.sce-edit-comment .sce-delete-button-main[aria-disabled=true],.sce-edit-comment .sce-edit-button-main[aria-disabled=true]{cursor:wait;opacity:.6}@media only screen and (width<=600px){.sce-edit-comment .sce-comment-edit-buttons .sce-comment-edit-buttons-group{display:block}.sce-edit-comment .sce-comment-edit-buttons button{display:block;width:100%;margin-bottom:10px;text-align:center}.sce-edit-comment .sce-comment-edit-buttons button .sce-comment-delete{float:none}}.sce-edit-comment .sce-comment-edit-buttons svg{margin-right:10px}.sce-edit-comment .sce-timer-cancel{display:block;margin-top:15px;font-size:.8em;float:right}.sce-edit-comment .sce-timer-cancel:after{content:"";display:table;clear:right}.sce-edit-comment.default .sce-comment-edit-buttons,.sce-edit-comment.default .sce-timer-cancel-wrapper{margin:10px 0}.sce-edit-comment.default .sce-comment-edit-buttons .sce-timer,.sce-edit-comment.default .sce-timer-cancel-wrapper .sce-timer{font-size:12px;font-style:italic}.sce-edit-comment.default .sce-comment-edit-buttons button,.sce-edit-comment.default .sce-timer-cancel-wrapper button{margin-right:10px}.sce-edit-comment.default .sce-comment-edit-buttons button:last-of-type,.sce-edit-comment.default .sce-timer-cancel-wrapper button:last-of-type{margin-right:0}.sce-edit-comment.default .sce-comment-edit-buttons svg,.sce-edit-comment.default .sce-timer-cancel-wrapper svg{fill:currentcolor;margin-right:10px}.sce-edit-comment.default .sce-comment-edit-buttons .sce-comment-delete,.sce-edit-comment.default .sce-timer-cancel-wrapper .sce-comment-delete{float:right}.sce-edit-comment.default .sce-comment-edit-buttons .sce-timer,.sce-edit-comment.default .sce-timer-cancel-wrapper .sce-timer{margin-top:10px}.sce-edit-comment.regular .sce-comment-edit-buttons,.sce-edit-comment.regular .sce-timer-cancel-wrapper{margin:10px 0}.sce-edit-comment.regular .sce-comment-edit-buttons .sce-timer,.sce-edit-comment.regular .sce-timer-cancel-wrapper .sce-timer{font-size:12px;font-style:italic}.sce-edit-comment.regular .sce-comment-edit-buttons button,.sce-edit-comment.regular .sce-timer-cancel-wrapper button{border-radius:5px;border:1px solid#eee;padding:10px 20px;margin-right:10px;font-weight:700}.sce-edit-comment.regular .sce-comment-edit-buttons button:last-of-type,.sce-edit-comment.regular .sce-timer-cancel-wrapper button:last-of-type{margin-right:0}.sce-edit-comment.regular .sce-comment-edit-buttons .sce-comment-save,.sce-edit-comment.regular .sce-timer-cancel-wrapper .sce-comment-save{background-color:#4caf50;color:#fff;font-size:20px}.sce-edit-comment.regular .sce-comment-edit-buttons .sce-comment-save:hover,.sce-edit-comment.regular .sce-timer-cancel-wrapper .sce-comment-save:hover{background-color:#3d8b40}.sce-edit-comment.regular .sce-comment-edit-buttons .sce-comment-save svg,.sce-edit-comment.regular .sce-timer-cancel-wrapper .sce-comment-save svg{fill:#fff;margin-right:10px}.sce-edit-comment.regular .sce-comment-edit-buttons .sce-comment-cancel,.sce-edit-comment.regular .sce-timer-cancel-wrapper .sce-comment-cancel{background-color:#e7e7e7;color:#000;font-size:20px}.sce-edit-comment.regular .sce-comment-edit-buttons .sce-comment-cancel:hover,.sce-edit-comment.regular .sce-timer-cancel-wrapper .sce-comment-cancel:hover{background-color:#cecece}.sce-edit-comment.regular .sce-comment-edit-buttons .sce-comment-cancel svg,.sce-edit-comment.regular .sce-timer-cancel-wrapper .sce-comment-cancel svg{fill:#000;margin-right:10px}.sce-edit-comment.regular .sce-comment-edit-buttons .sce-timer-cancel,.sce-edit-comment.regular .sce-timer-cancel-wrapper .sce-timer-cancel{background-color:#f44336;color:#fff;text-decoration:none;font-size:20px}.sce-edit-comment.regular .sce-comment-edit-buttons .sce-timer-cancel:hover,.sce-edit-comment.regular .sce-timer-cancel-wrapper .sce-timer-cancel:hover{background-color:#ea1c0d;text-decoration:none}.sce-edit-comment.regular .sce-comment-edit-buttons .sce-timer-cancel:focus,.sce-edit-comment.regular .sce-timer-cancel-wrapper .sce-timer-cancel:focus{text-decoration:none}.sce-edit-comment.regular .sce-comment-edit-buttons .sce-timer-cancel svg,.sce-edit-comment.regular .sce-timer-cancel-wrapper .sce-timer-cancel svg{position:relative;top:3px;width:20px;height:20px;fill:#fff;margin-right:10px}.sce-edit-comment.regular .sce-comment-edit-buttons .sce-comment-delete,.sce-edit-comment.regular .sce-timer-cancel-wrapper .sce-comment-delete{background-color:#f44336;color:#fff;font-size:20px}.sce-edit-comment.regular .sce-comment-edit-buttons .sce-comment-delete:hover,.sce-edit-comment.regular .sce-timer-cancel-wrapper .sce-comment-delete:hover{background-color:#ea1c0d}.sce-edit-comment.regular .sce-comment-edit-buttons .sce-comment-delete svg,.sce-edit-comment.regular .sce-timer-cancel-wrapper .sce-comment-delete svg{fill:#fff;margin-right:10px}.sce-edit-comment.regular .sce-comment-edit-buttons .sce-comment-delete,.sce-edit-comment.regular .sce-timer-cancel-wrapper .sce-comment-delete{float:right}.sce-edit-comment.regular .sce-comment-edit-buttons .sce-timer,.sce-edit-comment.regular .sce-timer-cancel-wrapper .sce-timer{margin-top:10px}.sce-edit-comment.dark .sce-comment-edit-buttons,.sce-edit-comment.dark .sce-timer-cancel-wrapper{margin:10px 0}.sce-edit-comment.dark .sce-comment-edit-buttons .sce-timer,.sce-edit-comment.dark .sce-timer-cancel-wrapper .sce-timer{font-size:12px;font-style:italic}.sce-edit-comment.dark .sce-comment-edit-buttons button,.sce-edit-comment.dark .sce-timer-cancel-wrapper button{background-color:#595959;color:#fff;margin-right:10px;border-radius:5px;border:1px solid#eee;padding:10px 20px;text-decoration:none;font-weight:700;font-size:20px}.sce-edit-comment.dark .sce-comment-edit-buttons button:hover,.sce-edit-comment.dark .sce-timer-cancel-wrapper button:hover{background-color:#1a1a1a;text-decoration:none}.sce-edit-comment.dark .sce-comment-edit-buttons button:focus,.sce-edit-comment.dark .sce-timer-cancel-wrapper button:focus{text-decoration:none}.sce-edit-comment.dark .sce-comment-edit-buttons button svg,.sce-edit-comment.dark .sce-timer-cancel-wrapper button svg{fill:#fff;margin-right:10px}.sce-edit-comment.dark .sce-comment-edit-buttons button:last-of-type,.sce-edit-comment.dark .sce-timer-cancel-wrapper button:last-of-type{margin-right:0}.sce-edit-comment.dark .sce-comment-edit-buttons .sce-comment-delete,.sce-edit-comment.dark .sce-timer-cancel-wrapper .sce-comment-delete{float:right}.sce-edit-comment.dark .sce-comment-edit-buttons .sce-timer-cancel,.sce-edit-comment.dark .sce-timer-cancel-wrapper .sce-timer-cancel{background-color:#333}.sce-edit-comment.dark .sce-comment-edit-buttons .sce-timer-cancel svg,.sce-edit-comment.dark .sce-timer-cancel-wrapper .sce-timer-cancel svg{position:relative;top:3px;width:20px;height:20px;fill:#fff;margin-right:10px}.sce-edit-comment.dark .sce-comment-edit-buttons .sce-timer,.sce-edit-comment.dark .sce-timer-cancel-wrapper .sce-timer{margin-top:10px}.sce-edit-comment.light .sce-comment-edit-buttons,.sce-edit-comment.light .sce-timer-cancel-wrapper{margin:10px 0}.sce-edit-comment.light .sce-comment-edit-buttons .sce-timer,.sce-edit-comment.light .sce-timer-cancel-wrapper .sce-timer{font-size:12px;font-style:italic}.sce-edit-comment.light .sce-comment-edit-buttons button,.sce-edit-comment.light .sce-timer-cancel-wrapper button{background-color:#eee;color:#000;margin-right:10px;border-radius:5px;padding:10px 20px;border:1px solid#0000004d;text-decoration:none;font-weight:700;font-size:20px}.sce-edit-comment.light .sce-comment-edit-buttons button:hover,.sce-edit-comment.light .sce-timer-cancel-wrapper button:hover{background-color:#fff;text-decoration:none}.sce-edit-comment.light .sce-comment-edit-buttons button:focus,.sce-edit-comment.light .sce-timer-cancel-wrapper button:focus{text-decoration:none}.sce-edit-comment.light .sce-comment-edit-buttons button svg,.sce-edit-comment.light .sce-timer-cancel-wrapper button svg{fill:#000;margin-right:10px}.sce-edit-comment.light .sce-comment-edit-buttons button:last-of-type,.sce-edit-comment.light .sce-timer-cancel-wrapper button:last-of-type{margin-right:0}.sce-edit-comment.light .sce-comment-edit-buttons .sce-timer-cancel svg,.sce-edit-comment.light .sce-timer-cancel-wrapper .sce-timer-cancel svg{position:relative;top:3px;width:20px;height:20px;fill:#000;margin-right:10px}.sce-edit-comment.light .sce-comment-edit-buttons .sce-comment-delete,.sce-edit-comment.light .sce-timer-cancel-wrapper .sce-comment-delete{float:right}.sce-edit-comment.light .sce-comment-edit-buttons .sce-timer,.sce-edit-comment.light .sce-timer-cancel-wrapper .sce-timer{margin-top:10px}.sce-status{color:#000;background:#fff;border-left:4px solid#46b450;box-shadow:0 1px 1px#0000001a;margin:10px 0;padding:20px 15px}.sce-status.error{border-left-color:#dc3232}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0;white-space:nowrap}.stars~.stars{display:none}.comment-form-rating{display:flex;align-items:center;justify-content:flex-start}.comment-form-rating label{margin-right:10px}.comment-form-rating p.stars{margin:0!important;padding:0!important}.comment-form-rating p.stars span{display:flex;align-items:center}.woocommerce #reviews .comment-form-rating .stars a{top:unset} /*# sourceMappingURL=sce-frontend.css.map*/ \ No newline at end of file diff --git a/dist/sce-frontend.css.map b/dist/sce-frontend.css.map index e284db1..770eba8 100644 --- a/dist/sce-frontend.css.map +++ b/dist/sce-frontend.css.map @@ -1 +1 @@ -{"version":3,"file":"sce-frontend.css","mappings":"AAUA,4EAWA,6CAKA,uEAMC,qHAKC,+FAGA,2RAUF,qCAGC,4FASD,gCAEC,yMAWC,uJAKA,iJAMA,oUAcA,kEAID,6FAKC,+EAOA,sHAGC,+JAIA,wIAGA,+JAGA,oJAIA,4JAGA,8IAMD,sHAGC,+JAIA,iNAOA,+JAGA,+LAIC,iLAGA,gLAKD,mMAGC,qLAIA,oLAKD,oNAIC,sMAIA,6KAIA,iOASD,mMAGC,qLAIA,oLAKD,4JAGA,8IAMD,gHAGC,yJAIA,mRASC,0KAIA,iJAIA,oJAKD,yJAGA,sJAGA,4JAEC,2NASD,wIAMD,kHAGC,2JAIA,uRASC,yKAIA,mJAIA,sJAKD,2JAIC,6NASD,wJAGA,0IAMH,kIAQC,4CAMD,qIAaA,2BAGA,gFAKC,6CAGA,oEAKA,kEAKD","sources":["webpack://simple-comment-editing/./src/scss/frontend.scss"],"sourcesContent":["$base_color: #58a0db;\n$label-colour: #bbb;\n$disabled-colour: #ddd;\n$toggle-colour: #2f855a;\n$white: #fff;\n$focus-color: #ff0;\n$danger_button_color: #721c24;\n\n/**\nAnimation for showing container */\n@keyframes showContainer {\n\t0% {\n\t\topacity: 0;\n\t\theight: auto;\n\t}\n\t100% {\n\t\topacity: 1;\n\t\theight: auto;\n\t}\n}\n\n.sce-hide {\n\topacity: 0;\n\theight: 0;\n\toverflow: hidden;\n}\n.sce-show {\n\tanimation: showContainer 0.6s ease-in-out;\n\topacity: 1;\n\theight: auto;\n}\n.sce-comment-edit-buttons {\n\t.sce-comment-edit-buttons-group {\n\t\tdisplay: flex;\n\t\tjustify-content: flex-start;\n\t\talign-items: center;\n\n\t\t.sce-comment-delete {\n\t\t\tmargin-left: auto;\n\t\t}\n\t\t.sce-comment-delete,\n\t\t.sce-comment-save,\n\t\t.sce-comment-cancel {\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\t\t\tline-height: normal;\n\t\t}\n\t}\n}\n\n.sce-comment-textarea {\n\tmax-width: 100%;\n\n\t.quicktags-toolbar {\n\t\tdisplay: flex;\n\t\tflex-wrap: wrap;\n\t\tgap: 2px;\n\t\tmax-width: 100%;\n\t}\n}\n\n/* Regular Theme */\n.sce-edit-comment {\n\tmargin: 20px 0;\n\t.sce-edit-button-main,\n\t.sce-delete-button-main {\n\t\tappearance: none;\n\t\tbackground: none;\n\t\tborder: 0;\n\t\tcolor: inherit;\n\t\tcursor: pointer;\n\t\tfont: inherit;\n\t\tpadding: 0;\n\t\ttext-decoration: underline;\n\n\t\t&:focus-visible {\n\t\t\toutline: 2px solid $focus-color;\n\t\t\toutline-offset: 2px;\n\t\t}\n\n\t\t&[aria-disabled=\"true\"] {\n\t\t\tcursor: wait;\n\t\t\topacity: 0.6;\n\t\t}\n\t}\n\t.sce-comment-edit-buttons {\n\t\t@media only screen and (max-width: 600px) {\n\t\t\t.sce-comment-edit-buttons-group {\n\t\t\t\tdisplay: block;\n\t\t\t}\n\t\t\tbutton {\n\t\t\t\tdisplay: block;\n\t\t\t\twidth: 100%;\n\t\t\t\tmargin-bottom: 10px;\n\t\t\t\ttext-align: center;\n\t\t\t\t.sce-comment-delete {\n\t\t\t\t\tfloat: none;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tsvg {\n\t\t\tmargin-right: 10px;\n\t\t}\n\t}\n\t.sce-timer-cancel {\n\t\tdisplay: block;\n\t\tmargin-top: 15px;\n\t\tfont-size: 0.8em;\n\t\tfloat: right;\n\t\t&:after {\n\t\t\tcontent: \"\";\n\t\t\tdisplay: table;\n\t\t\tclear: right;\n\t\t}\n\t}\n\t&.default {\n\t\t.sce-comment-edit-buttons,\n\t\t.sce-timer-cancel-wrapper {\n\t\t\tmargin: 10px 0;\n\t\t\t.sce-timer {\n\t\t\t\tfont-size: 12px;\n\t\t\t\tfont-style: italic;\n\t\t\t}\n\t\t\tbutton {\n\t\t\t\tmargin-right: 10px;\n\t\t\t}\n\t\t\tbutton:last-of-type {\n\t\t\t\tmargin-right: 0;\n\t\t\t}\n\t\t\tsvg {\n\t\t\t\tfill: currentColor;\n\t\t\t\tmargin-right: 10px;\n\t\t\t}\n\t\t\t.sce-comment-delete {\n\t\t\t\tfloat: right;\n\t\t\t}\n\t\t\t.sce-timer {\n\t\t\t\tmargin-top: 10px;\n\t\t\t}\n\t\t}\n\t}\n\t&.regular {\n\t\t.sce-comment-edit-buttons,\n\t\t.sce-timer-cancel-wrapper {\n\t\t\tmargin: 10px 0;\n\t\t\t.sce-timer {\n\t\t\t\tfont-size: 12px;\n\t\t\t\tfont-style: italic;\n\t\t\t}\n\t\t\tbutton {\n\t\t\t\tborder-radius: 5px;\n\t\t\t\tborder: 1px solid #EEE;\n\t\t\t\tpadding: 10px 20px;\n\t\t\t\tmargin-right: 10px;\n\t\t\t\tfont-weight: 700;\n\t\t\t}\n\t\t\tbutton:last-of-type {\n\t\t\t\tmargin-right: 0;\n\t\t\t}\n\t\t\t.sce-comment-save {\n\t\t\t\tbackground-color: #4CAF50;\n\t\t\t\tcolor: #FFF;\n\t\t\t\tfont-size: 20px;\n\t\t\t\t&:hover {\n\t\t\t\t\tbackground-color: darken( #4CAF50, 10% );\n\t\t\t\t}\n\t\t\t\tsvg {\n\t\t\t\t\tfill: #FFF;\n\t\t\t\t\tmargin-right: 10px;\n\t\t\t\t}\n\t\t\t}\n\t\t\t.sce-comment-cancel {\n\t\t\t\tbackground-color: #e7e7e7;\n\t\t\t\tcolor: #000;\n\t\t\t\t&:hover {\n\t\t\t\t\tbackground-color: darken( #e7e7e7, 10% );\n\t\t\t\t}\n\t\t\t\tfont-size: 20px;\n\t\t\t\tsvg {\n\t\t\t\t\tfill: #000;\n\t\t\t\t\tmargin-right: 10px;\n\t\t\t\t}\n\t\t\t}\n\t\t\t.sce-timer-cancel {\n\t\t\t\tbackground-color: #f44336;\n\t\t\t\tcolor: #FFF;\n\t\t\t\ttext-decoration: none;\n\t\t\t\t&:hover {\n\t\t\t\t\tbackground-color: darken( #f44336, 10% );\n\t\t\t\t\ttext-decoration: none;\n\t\t\t\t}\n\t\t\t\t&:focus {\n\t\t\t\t\ttext-decoration: none;\n\t\t\t\t}\n\t\t\t\tfont-size: 20px;\n\t\t\t\tsvg {\n\t\t\t\t\tposition: relative;\n\t\t\t\t\ttop: 3px;\n\t\t\t\t\twidth: 20px;\n\t\t\t\t\theight: 20px;\n\t\t\t\t\tfill: #FFF;\n\t\t\t\t\tmargin-right: 10px;\n\t\t\t\t}\n\t\t\t}\n\t\t\t.sce-comment-delete {\n\t\t\t\tbackground-color: #f44336;\n\t\t\t\tcolor: #FFF;\n\t\t\t\t&:hover {\n\t\t\t\t\tbackground-color: darken( #f44336, 10% );\n\t\t\t\t}\n\t\t\t\tfont-size: 20px;\n\t\t\t\tsvg {\n\t\t\t\t\tfill: #FFF;\n\t\t\t\t\tmargin-right: 10px;\n\t\t\t\t}\n\t\t\t}\n\t\t\t.sce-comment-delete {\n\t\t\t\tfloat: right;\n\t\t\t}\n\t\t\t.sce-timer {\n\t\t\t\tmargin-top: 10px;\n\t\t\t}\n\t\t}\n\t}\n\t&.dark {\n\t\t.sce-comment-edit-buttons,\n\t\t.sce-timer-cancel-wrapper {\n\t\t\tmargin: 10px 0;\n\t\t\t.sce-timer {\n\t\t\t\tfont-size: 12px;\n\t\t\t\tfont-style: italic;\n\t\t\t}\n\t\t\tbutton {\n\t\t\t\tbackground-color: lighten( #333, 15%);\n\t\t\t\tcolor: #FFF;\n\t\t\t\tmargin-right: 10px;\n\t\t\t\tborder-radius: 5px;\n\t\t\t\tborder: 1px solid #EEE;\n\t\t\t\tpadding: 10px 20px;\n\t\t\t\ttext-decoration: none;\n\t\t\t\tfont-weight: 700;\n\t\t\t\t&:hover {\n\t\t\t\t\tbackground-color: darken( #333, 10% );\n\t\t\t\t\ttext-decoration: none;\n\t\t\t\t}\n\t\t\t\t&:focus {\n\t\t\t\t\ttext-decoration: none;\n\t\t\t\t}\n\t\t\t\tfont-size: 20px;\n\t\t\t\tsvg {\n\t\t\t\t\tfill: #FFF;\n\t\t\t\t\tmargin-right: 10px;\n\t\t\t\t}\n\t\t\t}\n\t\t\tbutton:last-of-type {\n\t\t\t\tmargin-right: 0;\n\t\t\t}\n\t\t\t.sce-comment-delete {\n\t\t\t\tfloat: right;\n\t\t\t}\n\t\t\t.sce-timer-cancel {\n\t\t\t\tbackground-color: #333;\n\t\t\t\tsvg {\n\t\t\t\t\tposition: relative;\n\t\t\t\t\ttop: 3px;\n\t\t\t\t\twidth: 20px;\n\t\t\t\t\theight: 20px;\n\t\t\t\t\tfill: #FFF;\n\t\t\t\t\tmargin-right: 10px;\n\t\t\t\t}\n\t\t\t}\n\t\t\t.sce-timer {\n\t\t\t\tmargin-top: 10px;\n\t\t\t}\n\t\t}\n\t}\n\t&.light {\n\t\t.sce-comment-edit-buttons,\n\t\t.sce-timer-cancel-wrapper {\n\t\t\tmargin: 10px 0;\n\t\t\t.sce-timer {\n\t\t\t\tfont-size: 12px;\n\t\t\t\tfont-style: italic;\n\t\t\t}\n\t\t\tbutton {\n\t\t\t\tbackground-color: #EEE;\n\t\t\t\tcolor: #000;\n\t\t\t\tmargin-right: 10px;\n\t\t\t\tborder-radius: 5px;\n\t\t\t\tpadding: 10px 20px;\n\t\t\t\tborder: 1px solid rgba( 0, 0, 0, 0.3 );\n\t\t\t\ttext-decoration: none;\n\t\t\t\tfont-weight: 700;\n\t\t\t\t&:hover {\n\t\t\t\t\tbackground-color: lighten( #EEE, 10% );\n\t\t\t\t\ttext-decoration: none;\n\t\t\t\t}\n\t\t\t\t&:focus {\n\t\t\t\t\ttext-decoration: none;\n\t\t\t\t}\n\t\t\t\tfont-size: 20px;\n\t\t\t\tsvg {\n\t\t\t\t\tfill: #000;\n\t\t\t\t\tmargin-right: 10px;\n\t\t\t\t}\n\t\t\t}\n\t\t\tbutton:last-of-type {\n\t\t\t\tmargin-right: 0;\n\t\t\t}\n\t\t\t.sce-timer-cancel {\n\t\t\t\tsvg {\n\t\t\t\t\tposition: relative;\n\t\t\t\t\ttop: 3px;\n\t\t\t\t\twidth: 20px;\n\t\t\t\t\theight: 20px;\n\t\t\t\t\tfill: #000;\n\t\t\t\t\tmargin-right: 10px;\n\t\t\t\t}\n\t\t\t}\n\t\t\t.sce-comment-delete {\n\t\t\t\tfloat: right;\n\t\t\t}\n\t\t\t.sce-timer {\n\t\t\t\tmargin-top: 10px;\n\t\t\t}\n\t\t}\n\t}\n}\n.sce-status {\n\tcolor: #000;\n\tbackground: #fff;\n\tborder-left: 4px solid #46b450;\n\tbox-shadow: 0 1px 1px 0 rgba( 0, 0, 0, 0.1 );\n\tmargin: 10px 0;\n\tpadding: 20px 15px;\n\n\t&.error {\n\t\tborder-left-color: #dc3232;\n\t}\n}\n\n/* screen reader text */\n.sr-only {\n\tposition: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0,0,0,0);\n border: 0;\n white-space: nowrap;\n}\n\n/* WooCommerce star ratings */\n.stars ~ .stars {\n\tdisplay: none;\n}\n.comment-form-rating {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: flex-start;\n\n\tlabel {\n\t\tmargin-right: 10px;\n\t}\n\tp.stars {\n\t\tmargin: 0 !important /* override WC styles */;\n\t\tpadding: 0 !important /* override WC styles */;\n\t}\n\n\tp.stars span {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t}\n}\n.woocommerce #reviews .comment-form-rating .stars a {\n\ttop: unset;\n}\n"],"names":[],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"sce-frontend.css","mappings":"AAUA,4EAWA,+DAMA,uEAKA,6CAGA,mFAMC,qHAKC,+FAGA,2RAUF,qCAGC,4FASD,gCAEC,yMAWC,uJAKA,iJAMA,oUAcA,kEAID,6FAKC,+EAOA,sHAGC,+JAIA,wIAGA,+JAGA,oJAIA,4JAGA,8IAMD,sHAGC,+JAIA,iNAOA,+JAGA,+LAIC,iLAGA,gLAKD,mMAGC,qLAIA,oLAKD,oNAIC,sMAIA,6KAIA,iOASD,mMAGC,qLAIA,oLAKD,4JAGA,8IAMD,gHAGC,yJAIA,mRASC,0KAIA,iJAIA,oJAKD,yJAGA,sJAGA,4JAEC,2NASD,wIAMD,kHAGC,2JAIA,uRASC,yKAIA,mJAIA,sJAKD,2JAIC,6NASD,wJAGA,0IAMH,kIAQC,4CAMD,qIAaA,2BAGA,gFAKC,6CAGA,oEAKA,kEAKD","sources":["webpack://simple-comment-editing/./src/scss/frontend.scss"],"sourcesContent":["$base_color: #58a0db;\n$label-colour: #bbb;\n$disabled-colour: #ddd;\n$toggle-colour: #2f855a;\n$white: #fff;\n$focus-color: #ff0;\n$danger_button_color: #721c24;\n\n/**\nAnimation for showing container */\n@keyframes showContainer {\n\t0% {\n\t\topacity: 0;\n\t\theight: auto;\n\t}\n\t100% {\n\t\topacity: 1;\n\t\theight: auto;\n\t}\n}\n\n.sce-hide {\n\tvisibility: hidden;\n\topacity: 0;\n\theight: 0;\n\toverflow: hidden;\n}\n.sce-show {\n\tanimation: showContainer 0.6s ease-in-out;\n\topacity: 1;\n\theight: auto;\n}\n.sce-reduced-motion .sce-show {\n\tanimation: none;\n}\n@media (prefers-reduced-motion: reduce) {\n\t.sce-edit-comment .sce-show {\n\t\tanimation: none;\n\t}\n}\n.sce-comment-edit-buttons {\n\t.sce-comment-edit-buttons-group {\n\t\tdisplay: flex;\n\t\tjustify-content: flex-start;\n\t\talign-items: center;\n\n\t\t.sce-comment-delete {\n\t\t\tmargin-left: auto;\n\t\t}\n\t\t.sce-comment-delete,\n\t\t.sce-comment-save,\n\t\t.sce-comment-cancel {\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\t\t\tline-height: normal;\n\t\t}\n\t}\n}\n\n.sce-comment-textarea {\n\tmax-width: 100%;\n\n\t.quicktags-toolbar {\n\t\tdisplay: flex;\n\t\tflex-wrap: wrap;\n\t\tgap: 2px;\n\t\tmax-width: 100%;\n\t}\n}\n\n/* Regular Theme */\n.sce-edit-comment {\n\tmargin: 20px 0;\n\t.sce-edit-button-main,\n\t.sce-delete-button-main {\n\t\tappearance: none;\n\t\tbackground: none;\n\t\tborder: 0;\n\t\tcolor: inherit;\n\t\tcursor: pointer;\n\t\tfont: inherit;\n\t\tpadding: 0;\n\t\ttext-decoration: underline;\n\n\t\t&:focus-visible {\n\t\t\toutline: 2px solid $focus-color;\n\t\t\toutline-offset: 2px;\n\t\t}\n\n\t\t&[aria-disabled=\"true\"] {\n\t\t\tcursor: wait;\n\t\t\topacity: 0.6;\n\t\t}\n\t}\n\t.sce-comment-edit-buttons {\n\t\t@media only screen and (max-width: 600px) {\n\t\t\t.sce-comment-edit-buttons-group {\n\t\t\t\tdisplay: block;\n\t\t\t}\n\t\t\tbutton {\n\t\t\t\tdisplay: block;\n\t\t\t\twidth: 100%;\n\t\t\t\tmargin-bottom: 10px;\n\t\t\t\ttext-align: center;\n\t\t\t\t.sce-comment-delete {\n\t\t\t\t\tfloat: none;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tsvg {\n\t\t\tmargin-right: 10px;\n\t\t}\n\t}\n\t.sce-timer-cancel {\n\t\tdisplay: block;\n\t\tmargin-top: 15px;\n\t\tfont-size: 0.8em;\n\t\tfloat: right;\n\t\t&:after {\n\t\t\tcontent: \"\";\n\t\t\tdisplay: table;\n\t\t\tclear: right;\n\t\t}\n\t}\n\t&.default {\n\t\t.sce-comment-edit-buttons,\n\t\t.sce-timer-cancel-wrapper {\n\t\t\tmargin: 10px 0;\n\t\t\t.sce-timer {\n\t\t\t\tfont-size: 12px;\n\t\t\t\tfont-style: italic;\n\t\t\t}\n\t\t\tbutton {\n\t\t\t\tmargin-right: 10px;\n\t\t\t}\n\t\t\tbutton:last-of-type {\n\t\t\t\tmargin-right: 0;\n\t\t\t}\n\t\t\tsvg {\n\t\t\t\tfill: currentColor;\n\t\t\t\tmargin-right: 10px;\n\t\t\t}\n\t\t\t.sce-comment-delete {\n\t\t\t\tfloat: right;\n\t\t\t}\n\t\t\t.sce-timer {\n\t\t\t\tmargin-top: 10px;\n\t\t\t}\n\t\t}\n\t}\n\t&.regular {\n\t\t.sce-comment-edit-buttons,\n\t\t.sce-timer-cancel-wrapper {\n\t\t\tmargin: 10px 0;\n\t\t\t.sce-timer {\n\t\t\t\tfont-size: 12px;\n\t\t\t\tfont-style: italic;\n\t\t\t}\n\t\t\tbutton {\n\t\t\t\tborder-radius: 5px;\n\t\t\t\tborder: 1px solid #EEE;\n\t\t\t\tpadding: 10px 20px;\n\t\t\t\tmargin-right: 10px;\n\t\t\t\tfont-weight: 700;\n\t\t\t}\n\t\t\tbutton:last-of-type {\n\t\t\t\tmargin-right: 0;\n\t\t\t}\n\t\t\t.sce-comment-save {\n\t\t\t\tbackground-color: #4CAF50;\n\t\t\t\tcolor: #FFF;\n\t\t\t\tfont-size: 20px;\n\t\t\t\t&:hover {\n\t\t\t\t\tbackground-color: darken( #4CAF50, 10% );\n\t\t\t\t}\n\t\t\t\tsvg {\n\t\t\t\t\tfill: #FFF;\n\t\t\t\t\tmargin-right: 10px;\n\t\t\t\t}\n\t\t\t}\n\t\t\t.sce-comment-cancel {\n\t\t\t\tbackground-color: #e7e7e7;\n\t\t\t\tcolor: #000;\n\t\t\t\t&:hover {\n\t\t\t\t\tbackground-color: darken( #e7e7e7, 10% );\n\t\t\t\t}\n\t\t\t\tfont-size: 20px;\n\t\t\t\tsvg {\n\t\t\t\t\tfill: #000;\n\t\t\t\t\tmargin-right: 10px;\n\t\t\t\t}\n\t\t\t}\n\t\t\t.sce-timer-cancel {\n\t\t\t\tbackground-color: #f44336;\n\t\t\t\tcolor: #FFF;\n\t\t\t\ttext-decoration: none;\n\t\t\t\t&:hover {\n\t\t\t\t\tbackground-color: darken( #f44336, 10% );\n\t\t\t\t\ttext-decoration: none;\n\t\t\t\t}\n\t\t\t\t&:focus {\n\t\t\t\t\ttext-decoration: none;\n\t\t\t\t}\n\t\t\t\tfont-size: 20px;\n\t\t\t\tsvg {\n\t\t\t\t\tposition: relative;\n\t\t\t\t\ttop: 3px;\n\t\t\t\t\twidth: 20px;\n\t\t\t\t\theight: 20px;\n\t\t\t\t\tfill: #FFF;\n\t\t\t\t\tmargin-right: 10px;\n\t\t\t\t}\n\t\t\t}\n\t\t\t.sce-comment-delete {\n\t\t\t\tbackground-color: #f44336;\n\t\t\t\tcolor: #FFF;\n\t\t\t\t&:hover {\n\t\t\t\t\tbackground-color: darken( #f44336, 10% );\n\t\t\t\t}\n\t\t\t\tfont-size: 20px;\n\t\t\t\tsvg {\n\t\t\t\t\tfill: #FFF;\n\t\t\t\t\tmargin-right: 10px;\n\t\t\t\t}\n\t\t\t}\n\t\t\t.sce-comment-delete {\n\t\t\t\tfloat: right;\n\t\t\t}\n\t\t\t.sce-timer {\n\t\t\t\tmargin-top: 10px;\n\t\t\t}\n\t\t}\n\t}\n\t&.dark {\n\t\t.sce-comment-edit-buttons,\n\t\t.sce-timer-cancel-wrapper {\n\t\t\tmargin: 10px 0;\n\t\t\t.sce-timer {\n\t\t\t\tfont-size: 12px;\n\t\t\t\tfont-style: italic;\n\t\t\t}\n\t\t\tbutton {\n\t\t\t\tbackground-color: lighten( #333, 15%);\n\t\t\t\tcolor: #FFF;\n\t\t\t\tmargin-right: 10px;\n\t\t\t\tborder-radius: 5px;\n\t\t\t\tborder: 1px solid #EEE;\n\t\t\t\tpadding: 10px 20px;\n\t\t\t\ttext-decoration: none;\n\t\t\t\tfont-weight: 700;\n\t\t\t\t&:hover {\n\t\t\t\t\tbackground-color: darken( #333, 10% );\n\t\t\t\t\ttext-decoration: none;\n\t\t\t\t}\n\t\t\t\t&:focus {\n\t\t\t\t\ttext-decoration: none;\n\t\t\t\t}\n\t\t\t\tfont-size: 20px;\n\t\t\t\tsvg {\n\t\t\t\t\tfill: #FFF;\n\t\t\t\t\tmargin-right: 10px;\n\t\t\t\t}\n\t\t\t}\n\t\t\tbutton:last-of-type {\n\t\t\t\tmargin-right: 0;\n\t\t\t}\n\t\t\t.sce-comment-delete {\n\t\t\t\tfloat: right;\n\t\t\t}\n\t\t\t.sce-timer-cancel {\n\t\t\t\tbackground-color: #333;\n\t\t\t\tsvg {\n\t\t\t\t\tposition: relative;\n\t\t\t\t\ttop: 3px;\n\t\t\t\t\twidth: 20px;\n\t\t\t\t\theight: 20px;\n\t\t\t\t\tfill: #FFF;\n\t\t\t\t\tmargin-right: 10px;\n\t\t\t\t}\n\t\t\t}\n\t\t\t.sce-timer {\n\t\t\t\tmargin-top: 10px;\n\t\t\t}\n\t\t}\n\t}\n\t&.light {\n\t\t.sce-comment-edit-buttons,\n\t\t.sce-timer-cancel-wrapper {\n\t\t\tmargin: 10px 0;\n\t\t\t.sce-timer {\n\t\t\t\tfont-size: 12px;\n\t\t\t\tfont-style: italic;\n\t\t\t}\n\t\t\tbutton {\n\t\t\t\tbackground-color: #EEE;\n\t\t\t\tcolor: #000;\n\t\t\t\tmargin-right: 10px;\n\t\t\t\tborder-radius: 5px;\n\t\t\t\tpadding: 10px 20px;\n\t\t\t\tborder: 1px solid rgba( 0, 0, 0, 0.3 );\n\t\t\t\ttext-decoration: none;\n\t\t\t\tfont-weight: 700;\n\t\t\t\t&:hover {\n\t\t\t\t\tbackground-color: lighten( #EEE, 10% );\n\t\t\t\t\ttext-decoration: none;\n\t\t\t\t}\n\t\t\t\t&:focus {\n\t\t\t\t\ttext-decoration: none;\n\t\t\t\t}\n\t\t\t\tfont-size: 20px;\n\t\t\t\tsvg {\n\t\t\t\t\tfill: #000;\n\t\t\t\t\tmargin-right: 10px;\n\t\t\t\t}\n\t\t\t}\n\t\t\tbutton:last-of-type {\n\t\t\t\tmargin-right: 0;\n\t\t\t}\n\t\t\t.sce-timer-cancel {\n\t\t\t\tsvg {\n\t\t\t\t\tposition: relative;\n\t\t\t\t\ttop: 3px;\n\t\t\t\t\twidth: 20px;\n\t\t\t\t\theight: 20px;\n\t\t\t\t\tfill: #000;\n\t\t\t\t\tmargin-right: 10px;\n\t\t\t\t}\n\t\t\t}\n\t\t\t.sce-comment-delete {\n\t\t\t\tfloat: right;\n\t\t\t}\n\t\t\t.sce-timer {\n\t\t\t\tmargin-top: 10px;\n\t\t\t}\n\t\t}\n\t}\n}\n.sce-status {\n\tcolor: #000;\n\tbackground: #fff;\n\tborder-left: 4px solid #46b450;\n\tbox-shadow: 0 1px 1px 0 rgba( 0, 0, 0, 0.1 );\n\tmargin: 10px 0;\n\tpadding: 20px 15px;\n\n\t&.error {\n\t\tborder-left-color: #dc3232;\n\t}\n}\n\n/* screen reader text */\n.sr-only {\n\tposition: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0,0,0,0);\n border: 0;\n white-space: nowrap;\n}\n\n/* WooCommerce star ratings */\n.stars ~ .stars {\n\tdisplay: none;\n}\n.comment-form-rating {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: flex-start;\n\n\tlabel {\n\t\tmargin-right: 10px;\n\t}\n\tp.stars {\n\t\tmargin: 0 !important /* override WC styles */;\n\t\tpadding: 0 !important /* override WC styles */;\n\t}\n\n\tp.stars span {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t}\n}\n.woocommerce #reviews .comment-form-rating .stars a {\n\ttop: unset;\n}\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/includes/Admin/Tabs/Settings.php b/includes/Admin/Tabs/Settings.php index ae9a523..2bbc3c3 100644 --- a/includes/Admin/Tabs/Settings.php +++ b/includes/Admin/Tabs/Settings.php @@ -163,6 +163,17 @@ public function output_settings( $tab, $sub_tab = '' ) {

+ + + +
+ +

+ /> + +

+

+
diff --git a/includes/Options.php b/includes/Options.php index abb01b9..85426b8 100644 --- a/includes/Options.php +++ b/includes/Options.php @@ -79,6 +79,7 @@ public static function update_options( $options = array() ) { case 'allow_unlimited_editing': case 'require_login_for_editing': case 'enable_quicktags': + case 'reduce_motion': case 'load_scripts_posts_only': case 'load_scripts_with_comments': $option = (bool) filter_var( $options[ $key ], FILTER_VALIDATE_BOOLEAN ); @@ -135,6 +136,7 @@ private static function get_defaults() { 'allow_unlimited_editing' => false, 'require_login_for_editing' => false, 'enable_quicktags' => false, + 'reduce_motion' => false, 'load_scripts_posts_only' => false, 'load_scripts_with_comments' => false, 'delete_behavior_users' => 'trash', diff --git a/readme.txt b/readme.txt index b14a07a..5228db9 100644 --- a/readme.txt +++ b/readme.txt @@ -71,6 +71,11 @@ Bundled translations provide the default frontend labels and countdown text when = Can commenters use an HTML toolbar? = Yes. Enable Quicktags Toolbar in Settings -> Simple Comment Editing to add WordPress's native Quicktags toolbar to the comment editor. It is disabled by default, does not load TinyMCE or CKEditor, and can be left disabled when another plugin uses the documented JavaScript editor lifecycle. += Can edit controls appear without the fade-in delay? = +Yes. Enable Reduced Motion under Editor in Settings -> Simple Comment Editing to skip the decorative 0.6-second reveal animation for all button themes. It is disabled by default. A browser's reduced-motion preference also skips this animation, regardless of the setting. Keyboard behavior and the edit timer are unchanged. + +This is a presentation option, not immediate authorization or a measured network speedup. Controls remain hidden until the server confirms ownership and the remaining edit time, including for logged-in authors with unlimited editing. Failed permission requests keep controls hidden. Save and Delete still validate permissions and nonces on the server. Personalized pages for logged-in users or guest authors with editing cookies must bypass shared page/CDN caches; hiding controls cannot protect private textarea content already included in incorrectly shared HTML. Purge cached pages after changing this setting. + = Can I add custom fields or use a custom comment loop? = Yes. The integration guide in the GitHub README documents comment-scoped extra fields, safe metadata saving, custom loops that call WordPress's native `comment_text()` path, button HTML, and inline action-row styling. Keep SCE's editor wrappers and controls intact so its nonce, ownership checks, Save, Cancel, and Delete actions continue to work. @@ -101,6 +106,7 @@ You can report security bugs through the Patchstack Vulnerability Disclosure Pro == Changelog == = Unreleased = +* New: Add opt-in reduced-motion edit controls and respect the browser reduced-motion preference without skipping server permission checks. * New: Add an optional native Quicktags toolbar and lifecycle hooks for external comment editors. * Docs: Add supported custom-field, custom-loop, button HTML, and inline action-row integration examples. * Fix: Keep inline comment editing available after failed AJAX requests, prevent duplicate submissions, and use accessible inline edit controls instead of links to the AJAX endpoint. diff --git a/simple-comment-editing.php b/simple-comment-editing.php index f72486c..9acf90c 100644 --- a/simple-comment-editing.php +++ b/simple-comment-editing.php @@ -216,6 +216,9 @@ public function add_edit_interface( $comment_content, $passed_comment = false ) $comment_wrapper = sprintf( '
%s
', $comment_id, $comment_content ); $classes = array( 'sce-edit-comment' ); + if ( Options::get_options( false, 'reduce_motion' ) ) { + $classes[] = 'sce-reduced-motion'; + } /** * Filter: sce_wrapper_class * diff --git a/src/js/comment-editing/editing.js b/src/js/comment-editing/editing.js index 57f0d6b..e9d550a 100644 --- a/src/js/comment-editing/editing.js +++ b/src/js/comment-editing/editing.js @@ -417,6 +417,12 @@ window.addEventListener( 'load', () => { let { minutes, seconds } = data; const { can_edit } = data; + // Cached markup is not proof of ownership, including for unlimited editing. + if ( true !== can_edit ) { + button.parentNode.remove(); + return; + } + // Show button if time left. if ( 'unlimited' === minutes && 'unlimited' === seconds ) { showEditButton( button ); @@ -436,13 +442,6 @@ window.addEventListener( 'load', () => { minutes = parseInt( minutes ); seconds = parseInt( seconds ); - //Determine via JS if a user can edit a comment - Note that if someone were to finnagle with this, there is still a server side check when saving the comment - if ( ! can_edit ) { - //Remove elements - button.parentNode.remove(); - return; - } - // Update the timer text placeholder. const timerText = getTimerText( minutes, seconds ); const timerTextElement = button.querySelector( '.sce-timer' ); @@ -532,7 +531,9 @@ window.addEventListener( 'load', () => { }; window.setTimeout( timers[ commentId ].timer, 1000 ); } ).catch( ( error ) => { - showEditButton( button ); + // A failed permission request must not expose cached author controls. + hideEditButton( button ); + setEditorControlsDisabled( button.parentNode, true ); showStatus( commentId, error.message || simple_comment_editing.comment_deleted_error, true ); } ); diff --git a/src/scss/frontend.scss b/src/scss/frontend.scss index a71db7b..d829b8e 100644 --- a/src/scss/frontend.scss +++ b/src/scss/frontend.scss @@ -20,6 +20,7 @@ Animation for showing container */ } .sce-hide { + visibility: hidden; opacity: 0; height: 0; overflow: hidden; @@ -29,6 +30,14 @@ Animation for showing container */ opacity: 1; height: auto; } +.sce-reduced-motion .sce-show { + animation: none; +} +@media (prefers-reduced-motion: reduce) { + .sce-edit-comment .sce-show { + animation: none; + } +} .sce-comment-edit-buttons { .sce-comment-edit-buttons-group { display: flex; From 24151a6b7182687e5b9d3ea475f7286cd2dbb453 Mon Sep 17 00:00:00 2001 From: David Stone Date: Thu, 15 Oct 2026 13:11:57 -0600 Subject: [PATCH 2/3] fix: keep permission retries free of disabled state --- dist/sce-editing.js | 2 +- src/js/comment-editing/editing.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/dist/sce-editing.js b/dist/sce-editing.js index eb1e537..b4e686e 100644 --- a/dist/sce-editing.js +++ b/dist/sce-editing.js @@ -1,2 +1,2 @@ /*! For license information please see sce-editing.js.LICENSE.txt */ -(()=>{var e={144(e,t,r){"use strict";var n=r(743),o=r(621),i=r(76),a=r(119);e.exports=a||n.call(i,o)},621(e){"use strict";e.exports=Function.prototype.apply},76(e){"use strict";e.exports=Function.prototype.call},126(e,t,r){"use strict";var n=r(743),o=r(675),i=r(76),a=r(144);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new o("a function is required");return a(n,i,e)}},119(e){"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},176(e,t,r){"use strict";var n,o=r(126),i=r(795);try{n=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var a=!!n&&i&&i(Object.prototype,"__proto__"),s=Object,c=s.getPrototypeOf;e.exports=a&&"function"==typeof a.get?o([a.get]):"function"==typeof c&&function(e){return c(null==e?e:s(e))}},237(e){"use strict";e.exports=EvalError},383(e){"use strict";e.exports=Error},290(e){"use strict";e.exports=RangeError},538(e){"use strict";e.exports=ReferenceError},68(e){"use strict";e.exports=SyntaxError},675(e){"use strict";e.exports=TypeError},345(e){"use strict";e.exports=URIError},612(e){"use strict";e.exports=Object},353(e){"use strict";var t=Object.prototype.toString,r=Math.max,n=function(e,t){for(var r=[],n=0;n-1e3&&e<1e3||S.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-A(-e):A(e);if(n!==e){var o=String(n),i=b.call(t,o.length+1);return v.call(o,r,"$&_")+"."+v.call(v.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(t,r,"$&_")}var k=r(634),I=k.custom,F=H(I)?I:null,U={__proto__:null,double:'"',single:"'"},B={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function M(e,t,r){var n=r.quoteStyle||t,o=U[n];return o+e+o}function q(e){return v.call(String(e),/"/g,""")}function W(e){return!C||!("object"==typeof e&&(C in e||void 0!==e[C]))}function z(e){return"[object Array]"===V(e)&&W(e)}function $(e){return"[object RegExp]"===V(e)&&W(e)}function H(e){if(T)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!P)return!1;try{return P.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,o,s){var c=n||{};if(J(c,"quoteStyle")&&!J(U,c.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(J(c,"maxStringLength")&&("number"==typeof c.maxStringLength?c.maxStringLength<0&&c.maxStringLength!==1/0:null!==c.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var m=!J(c,"customInspect")||c.customInspect;if("boolean"!=typeof m&&"symbol"!==m)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(J(c,"indent")&&null!==c.indent&&"\t"!==c.indent&&!(parseInt(c.indent,10)===c.indent&&c.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(J(c,"numericSeparator")&&"boolean"!=typeof c.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=c.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return Q(t,c);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var S=String(t);return w?D(t,S):S}if("bigint"==typeof t){var A=String(t)+"n";return w?D(t,A):A}var j=void 0===c.depth?5:c.depth;if(void 0===o&&(o=0),o>=j&&j>0&&"object"==typeof t)return z(t)?"[Array]":"[Object]";var I,B=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=_.call(Array(e.indent+1)," ")}return{base:r,prev:_.call(Array(t+1),r)}}(c,o);if(void 0===s)s=[];else if(G(s,t)>=0)return"[Circular]";function K(t,r,n){if(r&&(s=x.call(s)).push(r),n){var i={depth:c.depth};return J(c,"quoteStyle")&&(i.quoteStyle=c.quoteStyle),e(t,i,o+1,s)}return e(t,c,o+1,s)}if("function"==typeof t&&!$(t)){var X=function(e){if(e.name)return e.name;var t=g.call(h.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),ne=re(t,K);return"[Function"+(X?": "+X:" (anonymous)")+"]"+(ne.length>0?" { "+_.call(ne,", ")+" }":"")}if(H(t)){var oe=T?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):P.call(t);return"object"!=typeof t||T?oe:Z(oe)}if((I=t)&&"object"==typeof I&&("undefined"!=typeof HTMLElement&&I instanceof HTMLElement||"string"==typeof I.nodeName&&"function"==typeof I.getAttribute)){for(var ie="<"+O.call(String(t.nodeName)),ae=t.attributes||[],se=0;se"}if(z(t)){if(0===t.length)return"[]";var ce=re(t,K);return B&&!function(e){for(var t=0;t=0)return!1;return!0}(ce)?"["+te(ce,B)+"]":"[ "+_.call(ce,", ")+" ]"}if(function(e){return"[object Error]"===V(e)&&W(e)}(t)){var le=re(t,K);return"cause"in Error.prototype||!("cause"in t)||N.call(t,"cause")?0===le.length?"["+String(t)+"]":"{ ["+String(t)+"] "+_.call(le,", ")+" }":"{ ["+String(t)+"] "+_.call(E.call("[cause]: "+K(t.cause),le),", ")+" }"}if("object"==typeof t&&m){if(F&&"function"==typeof t[F]&&k)return k(t,{depth:j-o});if("symbol"!==m&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{l.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ue=[];return a&&a.call(t,function(e,r){ue.push(K(r,t,!0)+" => "+K(e,t))}),ee("Map",i.call(t),ue,B)}if(function(e){if(!l||!e||"object"!=typeof e)return!1;try{l.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var fe=[];return u&&u.call(t,function(e){fe.push(K(e,t))}),ee("Set",l.call(t),fe,B)}if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Y("WeakMap");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Y("WeakSet");if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{return d.call(e),!0}catch(e){}return!1}(t))return Y("WeakRef");if(function(e){return"[object Number]"===V(e)&&W(e)}(t))return Z(K(Number(t)));if(function(e){if(!e||"object"!=typeof e||!R)return!1;try{return R.call(e),!0}catch(e){}return!1}(t))return Z(K(R.call(t)));if(function(e){return"[object Boolean]"===V(e)&&W(e)}(t))return Z(y.call(t));if(function(e){return"[object String]"===V(e)&&W(e)}(t))return Z(K(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==r.g&&t===r.g)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===V(e)&&W(e)}(t)&&!$(t)){var pe=re(t,K),de=L?L(t)===Object.prototype:t instanceof Object||t.constructor===Object,ye=t instanceof Object?"":"null prototype",me=!de&&C&&Object(t)===t&&C in t?b.call(V(t),8,-1):ye?"Object":"",he=(de||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(me||ye?"["+_.call(E.call([],me||[],ye||[]),": ")+"] ":"");return 0===pe.length?he+"{}":B?he+"{"+te(pe,B)+"}":he+"{ "+_.call(pe,", ")+" }"}return String(t)};var K=Object.prototype.hasOwnProperty||function(e){return e in this};function J(e,t){return K.call(e,t)}function V(e){return m.call(e)}function G(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;rt.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Q(b.call(e,0,t.maxStringLength),t)+n}var o=B[t.quoteStyle||"single"];return o.lastIndex=0,M(v.call(v.call(e,o,"\\$1"),/[\x00-\x1f]/g,X),"single",t)}function X(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":"")+w.call(t.toString(16))}function Z(e){return"Object("+e+")"}function Y(e){return e+" { ? }"}function ee(e,t,r,n){return e+" ("+t+") {"+(n?te(r,n):_.call(r,", "))+"}"}function te(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+_.call(e,","+r)+"\n"+t.prev}function re(e,t){var r=z(e),n=[];if(r){n.length=e.length;for(var o=0;o{var t;return()=>{if(e){var r=e;e=0,t={exports:{}},r.call(t.exports,t,t.exports)}return t.exports}},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.dn=e=>{var t=Object.getOwnPropertyDescriptor(e,"name");(!t||!t.writable&&t.configurable)&&Object.defineProperty(e,"name",{value:"default",configurable:!0})},(()=>{"use strict";var e=r.cw(function(e,t){var n=o(),i=r(126),a=i([n("%String.prototype.indexOf%")]);e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&a(e,".prototype.")>-1?i([r]):r}}),t=r.cw(function(e,t){var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch(e){r=!1}e.exports=r}),n=()=>r(675),o=r.cw(function(e,o){var b,v=r(612),w=r(383),O=r(237),S=r(290),E=r(538),_=r(68),x=n(),A=r(345),R=f(),j=p(),P=d(),T=y(),C=m(),N=h(),L=g(),D=Function,k=function(e){try{return D('"use strict"; return ('+e+").constructor;")()}catch(e){}},I=c(),F=t(),U=function(){throw new x},B=I?function(){try{return U}catch(e){try{return I(arguments,"callee").get}catch(e){return U}}}():U,M=l()(),q=s(),W=i(),z=a(),$=r(621),H=r(76),K={},J="undefined"!=typeof Uint8Array&&q?q(Uint8Array):b,V={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?b:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?b:ArrayBuffer,"%ArrayIteratorPrototype%":M&&q?q([][Symbol.iterator]()):b,"%AsyncFromSyncIteratorPrototype%":b,"%AsyncFunction%":K,"%AsyncGenerator%":K,"%AsyncGeneratorFunction%":K,"%AsyncIteratorPrototype%":K,"%Atomics%":"undefined"==typeof Atomics?b:Atomics,"%BigInt%":"undefined"==typeof BigInt?b:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?b:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?b:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?b:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":w,"%eval%":eval,"%EvalError%":O,"%Float16Array%":"undefined"==typeof Float16Array?b:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?b:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?b:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?b:FinalizationRegistry,"%Function%":D,"%GeneratorFunction%":K,"%Int8Array%":"undefined"==typeof Int8Array?b:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?b:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?b:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":M&&q?q(q([][Symbol.iterator]())):b,"%JSON%":"object"==typeof JSON?JSON:b,"%Map%":"undefined"==typeof Map?b:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&M&&q?q((new Map)[Symbol.iterator]()):b,"%Math%":Math,"%Number%":Number,"%Object%":v,"%Object.getOwnPropertyDescriptor%":I,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?b:Promise,"%Proxy%":"undefined"==typeof Proxy?b:Proxy,"%RangeError%":S,"%ReferenceError%":E,"%Reflect%":"undefined"==typeof Reflect?b:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?b:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&M&&q?q((new Set)[Symbol.iterator]()):b,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?b:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":M&&q?q(""[Symbol.iterator]()):b,"%Symbol%":M?Symbol:b,"%SyntaxError%":_,"%ThrowTypeError%":B,"%TypedArray%":J,"%TypeError%":x,"%Uint8Array%":"undefined"==typeof Uint8Array?b:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?b:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?b:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?b:Uint32Array,"%URIError%":A,"%WeakMap%":"undefined"==typeof WeakMap?b:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?b:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?b:WeakSet,"%Function.prototype.call%":H,"%Function.prototype.apply%":$,"%Object.defineProperty%":F,"%Object.getPrototypeOf%":W,"%Math.abs%":R,"%Math.floor%":j,"%Math.max%":P,"%Math.min%":T,"%Math.pow%":C,"%Math.round%":N,"%Math.sign%":L,"%Reflect.getPrototypeOf%":z};if(q)try{null.error}catch(e){var G=q(q(e));V["%Error.prototype%"]=G}var Q=function e(t){var r;if("%AsyncFunction%"===t)r=k("async function () {}");else if("%GeneratorFunction%"===t)r=k("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=k("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&q&&(r=q(o.prototype))}return V[t]=r,r},X={__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"]},Z=r(743),Y=u(),ee=Z.call(H,Array.prototype.concat),te=Z.call($,Array.prototype.splice),re=Z.call(H,String.prototype.replace),ne=Z.call(H,String.prototype.slice),oe=Z.call(H,RegExp.prototype.exec),ie=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ae=/\\(\\)?/g,se=function(e,t){var r,n=e;if(Y(X,n)&&(n="%"+(r=X[n])[0]+"%"),Y(V,n)){var o=V[n];if(o===K&&(o=Q(n)),void 0===o&&!t)throw new x("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new _("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new x("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new x('"allowMissing" argument must be a boolean');if(null===oe(/^%?[^%]*%?$/,e))throw new _("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=ne(e,0,1),r=ne(e,-1);if("%"===t&&"%"!==r)throw new _("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new _("invalid intrinsic syntax, expected opening `%`");var n=[];return re(e,ie,function(e,t,r,o){n[n.length]=r?re(o,ae,"$1"):t||e}),n}(e),n=r.length>0?r[0]:"",o=se("%"+n+"%",t),i=o.name,a=o.value,s=!1,c=o.alias;c&&(n=c[0],te(r,ee([0,1],c)));for(var l=1,u=!0;l=r.length){var y=I(a,f);a=(u=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:a[f]}else u=Y(a,f),a=a[f];u&&!s&&(V[i]=a)}}return a}}),i=()=>r(64),a=()=>r(648),s=()=>r(628),c=()=>r(795),l=()=>r(39),u=()=>r(957),f=()=>r(514),p=()=>r(968),d=()=>r(188),y=()=>r(2),m=()=>r(880),h=()=>r(414),g=()=>r(93),b=()=>r(859),v=r.cw(function(e,t){var r=String.prototype.replace,n=/%20/g,o="RFC3986";e.exports={default:o,formatters:{RFC1738:function(e){return r.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:o}}),w=r.cw(function(e,t){var r=S(),n=O(),o=v();e.exports={formats:o,parse:n,stringify:r}}),O=r.cw(function(e,t){var r=E(),n=Object.prototype.hasOwnProperty,o=Array.isArray,i={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:r.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},a=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},s=function(e,t,r){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1){if(t.throwOnLimitExceeded)for(var n=0,o=e.indexOf(",");o>-1;){if((n+=1)>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");o=e.indexOf(",",o+1)}return e.split(",")}if(t.throwOnLimitExceeded&&r>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},c=function(e,t,o,i){if(e){var a=function(e,t){var r=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(t.depth<=0){if(!t.plainObjects&&n.call(Object.prototype,r)&&!t.allowPrototypes)return;return[r]}var o=[],i=r.indexOf("["),a=i>=0?r.slice(0,i):r;if(a){if(!t.plainObjects&&n.call(Object.prototype,a)&&!t.allowPrototypes)return;o[o.length]=a}for(var s=r.length,c=i,l=0;c>=0&&l=0){if(!0===t.strictDepth)throw new RangeError("Input depth exceeded depth option of "+t.depth+" and strictDepth is true");o[o.length]="["+r.slice(c)+"]"}return o}(e,o);if(a)return function(e,t,n,o){var i=0;if(e.length>0&&"[]"===e[e.length-1]){var a=e.slice(0,-1).join("");i=Array.isArray(t)&&t[a]?t[a].length:0}for(var c=o?t:s(t,n,i),l=e.length-1;l>=0;--l){var u,f=e[l];if("[]"===f&&n.parseArrays)u=r.isOverflow(c)?c:n.allowEmptyArrays&&(""===c||n.strictNullHandling&&null===c)?[]:r.combine([],c,n.arrayLimit,n.plainObjects,n.throwOnLimitExceeded);else{u=n.plainObjects?{__proto__:null}:{};var p="["===f.charAt(0)&&"]"===f.charAt(f.length-1)?f.slice(1,-1):f,d=n.decodeDotInKeys?p.replace(/%2E/g,"."):p,y=parseInt(d,10),m=!isNaN(y)&&f!==d&&String(y)===d&&y>=0&&n.parseArrays;if(n.parseArrays||""!==d)if(m&&yu)throw new RangeError("Parameter limit exceeded. Only "+u+" parameter"+(1===u?"":"s")+" allowed.");var p,d=-1,y=t.charset;if(t.charsetSentinel)for(p=0;p-1&&(h=o(h)?[h]:h),t.comma&&o(h)&&h.length>t.arrayLimit&&(h=r.combine([],h,t.arrayLimit,t.plainObjects,t.throwOnLimitExceeded)),null!==m){var w=n.call(c,m);w&&("combine"===t.duplicates||g.indexOf("[]=")>-1)?c[m]=r.combine(c[m],h,t.arrayLimit,t.plainObjects,t.throwOnLimitExceeded):w&&"last"!==t.duplicates||(c[m]=h)}}return c}(e,l):e,f=l.plainObjects?{__proto__:null}:{},p=Object.keys(u),d=0;dx)throw new RangeError("Input depth exceeded depth option of "+x);for(var j,P=_,T=0,C=!1;void 0!==(P=P.get(d))&&!C;){var N=P.get(t);if(T+=1,void 0!==N){if(N===T)throw new RangeError("Cyclic object value");C=!0}void 0===P.get(d)&&(T=0)}if((R="function"==typeof h?h(o,R):R)instanceof Date?R=v(R):"comma"===i&&s(R)&&(R=n.maybeMap(R,function(e){return e instanceof Date?v(e):e})),null===R){if(u)return O(m&&!S?m(o,p.encoder,E,"key",w):o);R=""}if("string"==typeof(j=R)||"number"==typeof j||"boolean"==typeof j||"symbol"==typeof j||"bigint"==typeof j||n.isBuffer(R))return m?[O(S?o:m(o,p.encoder,E,"key",w))+"="+O(m(R,p.encoder,E,"value",w))]:[O(o)+"="+O(String(R))];var L,D=[];if(void 0===R)return D;if("comma"===i&&s(R))S&&m&&(R=n.maybeMap(R,function(e){return null==e?e:m(e)})),L=[{value:R.length>0?R.join(",")||null:void 0}];else if(s(h))L=h;else{var k=Object.keys(R);L=g?k.sort(g):k}var I=y?String(o).replace(/\./g,"%2E"):String(o),F=a&&s(R)&&1===R.length?I+"[]":I;if(c&&s(R)&&0===R.length&&0===Object.keys(R).length)return F+"[]";for(var U=0;U0?S+O:""}}),E=r.cw(function(e,r){var n=v(),o=A(),i=t(),a=Object.prototype.hasOwnProperty,s=Array.isArray,c=o(),l=function(e,t){return c.set(e,t),e},u=function(e){return c.has(e)},f=function(e){return c.get(e)},p=function(e,t){c.set(e,t)},d=function(){for(var e=[],t=0;t<256;++t)e[e.length]="%"+((t<16?"0":"")+t.toString(16)).toUpperCase();return e}(),y=function(e,t){for(var r=t&&t.plainObjects?{__proto__:null}:{},n=0;nr){if(o)throw new RangeError("Array limit exceeded. Only "+r+" element"+(1===r?"":"s")+" allowed in an array.");return l(y(d,{plainObjects:n}),d.length-1)}return d},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=o(),n=0;n1;){var t=e.pop(),r=t.obj[t.prop];if(s(r)){for(var n=[],o=0;o=h?a.slice(c,c+h):a;if(c+h=55296&&u<=56319&&(l=l.slice(0,-1),c-=1)}for(var f=[],p=0;p=48&&y<=57||y>=65&&y<=90||y>=97&&y<=122||i===n.RFC1738&&(40===y||41===y)?f[f.length]=l.charAt(p):y<128?f[f.length]=d[y]:y<2048?f[f.length]=d[192|y>>6]+d[128|63&y]:y<55296||y>=57344?f[f.length]=d[224|y>>12]+d[128|y>>6&63]+d[128|63&y]:(p+=1,y=65536+((1023&y)<<10|1023&l.charCodeAt(p)),f[f.length]=d[240|y>>18]+d[128|y>>12&63]+d[128|y>>6&63]+d[128|63&y])}s+=f.join("")}return s},isBuffer:function(e){return!(!e||"object"!=typeof e||!e.constructor||"function"!=typeof e.constructor.isBuffer||!e.constructor.isBuffer(e))},isOverflow:u,isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},markOverflow:l,maybeMap:function(e,t){if(s(e)){for(var r=[],n=0;n=n.arrayLimit){if(n.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+n.arrayLimit+" element"+(1===n.arrayLimit?"":"s")+" allowed in an array.");return l(y(t.concat(r),n),o)}t[o]=r}else{if(!t||"object"!=typeof t)return[t,r];if(u(t)){var i=f(t)+1;t[i]=r,p(t,i)}else{if(n&&n.strictMerge)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!a.call(Object.prototype,r))&&(t[r]=!0)}}return t}if(!t||"object"!=typeof t){if(u(r)){for(var c=Object.keys(r),d=n&&n.plainObjects?{__proto__:null,0:t}:{0:t},h=0;hn.arrayLimit){if(n.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+n.arrayLimit+" element"+(1===n.arrayLimit?"":"s")+" allowed in an array.");return l(y(g,n),g.length-1)}return g}var b=t;if(s(t)&&!s(r)&&(b=y(t,n)),s(t)&&s(r)){if(r.forEach(function(r,o){if(a.call(t,o)){var i=t[o];i&&"object"==typeof i&&r&&"object"==typeof r?t[o]=e(i,r,n):t[t.length]=r}else t[o]=r}),n&&"number"==typeof n.arrayLimit&&t.length>n.arrayLimit){if(n.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+n.arrayLimit+" element"+(1===n.arrayLimit?"":"s")+" allowed in an array.");return l(y(t,n),t.length-1)}return t}return Object.keys(r).reduce(function(t,o){var i=r[o];if(a.call(t,o)?m(t,o,e(t[o],i,n)):m(t,o,i),u(r)&&!u(t)&&l(t,f(r)),u(t)){var s=parseInt(o,10);String(s)===o&&s>=0&&s>f(t)&&p(t,s)}return t},b)}}}),_=r.cw(function(t,r){var i=o(),a=e(),s=b(),c=n(),l=i("%Map%",!0),u=a("Map.prototype.get",!0),f=a("Map.prototype.set",!0),p=a("Map.prototype.has",!0),d=a("Map.prototype.delete",!0),y=a("Map.prototype.size",!0);t.exports=!!l&&function(){var e,t={assert:function(e){if(!t.has(e))throw new c("Side channel does not contain "+s(e))},delete:function(t){if(e){var r=d(e,t);return 0===y(e)&&(e=void 0),r}return!1},get:function(t){if(e)return u(e,t)},has:function(t){return!!e&&p(e,t)},set:function(t,r){e||(e=new l),f(e,t,r)}};return t}}),x=r.cw(function(t,r){var i=o(),a=e(),s=b(),c=_(),l=n(),u=i("%WeakMap%",!0),f=a("WeakMap.prototype.get",!0),p=a("WeakMap.prototype.set",!0),d=a("WeakMap.prototype.has",!0),y=a("WeakMap.prototype.delete",!0);t.exports=u?function(){var e,t,r={assert:function(e){if(!r.has(e))throw new l("Side channel does not contain "+s(e))},delete:function(r){if(u&&r&&("object"==typeof r||"function"==typeof r)){if(e)return y(e,r)}else if(c&&t)return t.delete(r);return!1},get:function(r){return u&&r&&("object"==typeof r||"function"==typeof r)&&e?f(e,r):t&&t.get(r)},has:function(r){return u&&r&&("object"==typeof r||"function"==typeof r)&&e?d(e,r):!!t&&t.has(r)},set:function(r,n){u&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new u),p(e,r,n)):c&&(t||(t=c()),t.set(r,n))}};return r}:c}),A=r.cw(function(e,t){var o=n(),i=b(),a=r(803),s=_(),c=x()||s||a;e.exports=function(){var e,t={assert:function(e){if(!t.has(e)){var r=e&&Object(e)===e?"the given object key":i(e);throw new o("Side channel does not contain "+r)}},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,r){e||(e=c()),e.set(t,r)}};return t}}),R={};function j(e,t){return function(){return e.apply(t,arguments)}}r.r(R),r.d(R,{hasBrowserEnv:()=>lt,hasStandardBrowserEnv:()=>ft,hasStandardBrowserWebWorkerEnv:()=>pt,navigator:()=>ut,origin:()=>dt});const{toString:P}=Object.prototype,{getPrototypeOf:T}=Object,{iterator:C,toStringTag:N}=Symbol,L=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),D=e=>"string"==typeof e&&("__proto__"===e||"constructor"===e||"prototype"===e),k=(e,t,r)=>e===Object.prototype||!r&&null===t,I=(e,t)=>{let r=e;const n=[];for(;null!=r;){if(-1!==n.indexOf(r))return!1;n.push(r);const o=T(r);if(k(r,o,r===e))return!1;if(L(r,t))return!0;r=o}return!1},F=(U=Object.create(null),e=>{const t=P.call(e);return U[t]||(U[t]=t.slice(8,-1).toLowerCase())});var U;const B=e=>(e=e.toLowerCase(),t=>F(t)===e),M=e=>t=>typeof t===e,{isArray:q}=Array,W=M("undefined");function z(e){return null!==e&&!W(e)&&null!==e.constructor&&!W(e.constructor)&&K(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const $=B("ArrayBuffer"),H=M("string"),K=M("function"),J=M("number"),V=e=>null!==e&&"object"==typeof e,G=e=>{if(!V(e))return!1;const t=T(e);return!(null!==t&&t!==Object.prototype&&null!==T(t)||I(e,N)||I(e,C))},Q=B("Date"),X=B("File"),Z=B("Blob"),Y=B("FileList"),ee=B("Set"),te="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==r.g?r.g:{},re=void 0!==te.FormData?te.FormData:void 0,ne=B("URLSearchParams"),[oe,ie,ae,se]=["ReadableStream","Request","Response","Headers"].map(B);function ce(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,o;if("object"!=typeof e&&(e=[e]),q(e))for(n=0,o=e.length;n0;)if(n=r[o],t===n.toLowerCase())return n;return null}const ue="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:r.g,fe=e=>!W(e)&&e!==ue,pe=(de="undefined"!=typeof Uint8Array&&T(Uint8Array),e=>de&&e instanceof de);var de;const ye=B("HTMLFormElement"),{propertyIsEnumerable:me}=Object.prototype,he=B("RegExp"),ge=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};ce(r,(r,o)=>{let i;!1!==(i=t(r,o,e))&&(n[o]=i||r)}),Object.defineProperties(e,n)},be=B("AsyncFunction"),ve=(we="function"==typeof setImmediate,Oe=K(ue.postMessage),we?setImmediate:Oe?(Se=`axios@${Math.random()}`,Ee=[],ue.addEventListener("message",({source:e,data:t})=>{e===ue&&t===Se&&Ee.length&&Ee.shift()()},!1),e=>{Ee.push(e),ue.postMessage(Se,"*")}):e=>setTimeout(e));var we,Oe,Se,Ee;const _e="undefined"!=typeof queueMicrotask?queueMicrotask.bind(ue):"undefined"!=typeof process&&process.nextTick||ve,xe=e=>null!=e&&K(e[C]),Ae={isArray:q,isArrayBuffer:$,isBuffer:z,isFormData:e=>{if(!e)return!1;if(re&&e instanceof re)return!0;const t=T(e);if(!t||t===Object.prototype)return!1;if(!K(e.append))return!1;const r=F(e);return"formdata"===r||"object"===r&&K(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&$(e.buffer),t},isString:H,isNumber:J,isBoolean:e=>!0===e||!1===e,isObject:V,isPlainObject:G,isEmptyObject:e=>{if(!V(e)||z(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:oe,isRequest:ie,isResponse:ae,isHeaders:se,isUndefined:W,isDate:Q,isFile:X,isReactNativeBlob:e=>!(!e||void 0===e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:Z,isRegExp:he,isFunction:K,isStream:e=>V(e)&&K(e.pipe),isURLSearchParams:ne,isTypedArray:pe,isFileList:Y,forEach:ce,merge:function e(...t){const{caseless:r,skipUndefined:n}=fe(this)&&this||{},o={},i=(t,i)=>{if("__proto__"===i||"constructor"===i||"prototype"===i)return;const a=r&&"string"==typeof i&&le(o,i)||i,s=L(o,a)?o[a]:void 0;G(s)&&G(t)?o[a]=e(s,t):G(t)?o[a]=e({},t):q(t)?o[a]=t.slice():n&&W(t)||(o[a]=t)};for(let e=0,r=t.length;e(ce(t,(t,n)=>{r&&K(t)?Object.defineProperty(e,n,{__proto__:null,value:j(t,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,n,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],n&&!n(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==r&&T(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:F,kindOfTest:B,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(q(e))return e;let t=e.length;if(!J(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[C]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:ye,hasOwnProperty:L,hasOwnProp:L,hasOwnInPrototypeChain:I,getSafeProp:(e,t)=>null!=e&&I(e,t)?e[t]:void 0,toSafeFlatObject:e=>{if(null==e||"object"!=typeof e&&"function"!=typeof e)return e;const t=T(e);if(null===t&&(e=>{if(!Object.isExtensible(e))return!1;const t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&t.push(...Object.getOwnPropertySymbols(e)),t.every(t=>{if(D(t))return!1;const r=Object.getOwnPropertyDescriptor(e,t);return!!r&&r.configurable&&!0===r.writable})})(e))return e;const r=Object.create(null),n=Object.create(null),o=[];let i=e;for(;null!=i&&-1===o.indexOf(i);){o.push(i);const a=i===e?t:T(i);if(k(i,a,i===e))break;const s=Object.getOwnPropertyNames(i);Object.getOwnPropertySymbols&&s.push(...Object.getOwnPropertySymbols(i));for(const t of s)D(t)||L(n,t)||(r[t]=e[t],n[t]=!0);i=a}return r},reduceDescriptors:ge,freezeMethods:e=>{ge(e,(t,r)=>{if(K(e)&&["arguments","caller","callee"].includes(r))return!1;const n=e[r];K(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))})},toObjectSet:(e,t)=>{const r={},n=e=>{e.forEach(e=>{r[e]=!0})};return q(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:le,global:ue,isContextDefined:fe,isSpecCompliantForm:function(e){return!!(e&&K(e.append)&&"FormData"===e[N]&&e[C])},toJSONObject:e=>{const t=new WeakSet,r=e=>{if(V(e)){if(t.has(e))return;if(z(e))return e;if(!("toJSON"in e)){let n;if(t.add(e),ee(e)){n=[];for(const t of e){const e=r(t);!W(e)&&n.push(e)}}else n=q(e)?[]:{},ce(e,(e,t)=>{const o=r(e);!W(o)&&(n[t]=o)});return t.delete(e),n}}return e};return r(e)},isAsyncFn:be,isThenable:e=>e&&(V(e)||K(e))&&K(e.then)&&K(e.catch),setImmediate:ve,asap:_e,isIterable:xe,isSafeIterable:e=>null!=e&&I(e,C)&&xe(e)},Re=Ae.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),je=e=>{const t={};let r,n,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),r=e.substring(0,o).trim().toLowerCase(),n=e.substring(o+1).trim();const i=Ae.hasOwnProp(t,r);!r||i&&Ae.hasOwnProp(Re,r)||("set-cookie"===r?i?t[r].push(n):t[r]=[n]:t[r]=i?t[r]+", "+n:n)}),t};r.dn(je);const Pe=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),Te=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Ce(e,t){return Ae.isArray(e)?e.map(e=>Ce(e,t)):function(e){let t=0,r=e.length;for(;tt;){const t=e.charCodeAt(r-1);if(9!==t&&32!==t)break;r-=1}return 0===t&&r===e.length?e:e.slice(t,r)}(String(e).replace(t,""))}function Ne(e){const t=Object.create(null);return Ae.forEach(e.toJSON(),(e,r)=>{t[r]=(e=>Ce(e,Te))(e)}),t}const Le=Symbol("internals");function De(e){return e&&String(e).trim().toLowerCase()}function ke(e){return!1===e||null==e?e:Ae.isArray(e)?e.map(ke):(e=>Ce(e,Pe))(String(e))}const Ie=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function Fe(e){let t=0,r=e.length;for(;tt;){const t=e.charCodeAt(r-1);if(9!==t&&32!==t)break;r-=1}return 0===t&&r===e.length?e:e.slice(t,r)}function Ue(e,t,r,n,o){return Ae.isFunction(n)?n.call(this,t,r):(o&&(t=r),Ae.isString(t)?Ae.isString(n)?-1!==t.indexOf(n):Ae.isRegExp(n)?n.test(t):void 0:void 0)}class Be{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function o(e,t,r){const o=De(t);if(!o)return;const i=Ae.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||t]=ke(e))}const i=(e,t)=>Ae.forEach(e,(e,r)=>o(e,r,t));if(Ae.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(Ae.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i(je(e),t);else if(Ae.isObject(e)&&Ae.isSafeIterable(e)){let r,n,o=Object.create(null);for(const t of e){if(!Ae.isArray(t))throw new TypeError("Object iterator must return a key-value pair");n=t[0],Ae.hasOwnProp(o,n)?(r=o[n],o[n]=Ae.isArray(r)?[...r,t[1]]:[r,t[1]]):o[n]=t[1]}i(o,t)}else null!=e&&o(t,e,r);return this}get(e,t){if(e=De(e)){const r=Ae.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if(Ae.isFunction(t))return t.call(this,e,r);if(Ae.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=De(e)){const r=Ae.findKey(this,e);return!(!r||void 0===this[r]||t&&!Ue(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function o(e){if(e=De(e)){const o=Ae.findKey(r,e);!o||t&&!Ue(0,r[o],o,t)||(delete r[o],n=!0)}}return Ae.isArray(e)?e.forEach(o):o(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const o=t[r];e&&!Ue(0,this[o],o,e,!0)||(delete this[o],n=!0)}return n}normalize(e){const t=this,r={};return Ae.forEach(this,(n,o)=>{const i=Ae.findKey(r,o);if(i)return t[i]=ke(n),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}(o):String(o).trim();a!==o&&delete t[o],t[a]=ke(n),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Ae.forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&Ae.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){const e=this.get("set-cookie");return Ae.isArray(e)?e:null==e||!1===e?[]:[e]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return function(e){const t=Object.create(null),r=String(e);let n=0,o=!1,i=!1;function a(e){const o=Fe(r.slice(n,e)),i=o.indexOf("=");if(i<1)return;const a=Fe(o.slice(0,i));if(!Ie.test(a))return;const s=a.toLowerCase();if("__proto__"===s||"constructor"===s||"prototype"===s)return;const c=Fe(o.slice(i+1));t[s]=function(e){const t=e.length-1;if(t<1||34!==e.charCodeAt(0)||34!==e.charCodeAt(t))return e;let r="";for(let n=1;n=t))return e;r+=e[n]}return r}(c)}for(let e=0;er.set(e)),r}static accessor(e){const t=(this[Le]=this[Le]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=De(e);t[n]||(function(e,t){const r=Ae.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{__proto__:null,value:function(e,r,o){return this[n].call(this,t,e,r,o)},configurable:!0})})}(r,e),t[n]=!0)}return Ae.isArray(e)?e.forEach(n):n(e),this}}Be.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Ae.reduceDescriptors(Be.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),Ae.freezeMethods(Be);const Me=Be,qe="[REDACTED ****]";function We(e){try{return String(e)}catch(e){return""}}class ze extends Error{static from(e,t,r,n,o,i){let a=e.message;!a&&Ae.isArray(e.errors)&&e.errors.length&&(a=function(e){return e.errors.map(e=>{try{return e&&e.message?We(e.message):We(e)}catch(e){return""}}).filter(Boolean).join("; ")||e.name||"AggregateError"}(e));const s=new ze(a,t||e.code,r,n,o);return Object.defineProperty(s,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),s.name=e.name,null!=e.status&&null==s.status&&(s.status=e.status),i&&Object.assign(s,i),s}constructor(e,t,r,n,o){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status)}toJSON(){const e=this.config,t=e&&Ae.hasOwnProp(e,"redact")?e.redact:void 0,r=Ae.isArray(t)&&t.length>0?function(e,t){const r=new Set(t.map(e=>String(e).toLowerCase())),n=[],o=e=>{if(null===e||"object"!=typeof e)return e;if(Ae.isBuffer(e))return e;if(-1!==n.indexOf(e))return;let t;if(e instanceof Me&&(e=e.toJSON()),n.push(e),Ae.isArray(e))t=[],e.forEach((e,r)=>{const n=o(e);Ae.isUndefined(n)||(t[r]=n)});else{if(!Ae.isPlainObject(e)&&function(e){if(Ae.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(Ae.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(e))return n.pop(),e;t=Object.create(null);for(const[n,i]of Object.entries(e)){const e=r.has(n.toLowerCase())?qe:o(i);Ae.isUndefined(e)||(t[n]=e)}}return n.pop(),t};return o(e)}(e,t):Ae.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}}ze.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",ze.ERR_BAD_OPTION="ERR_BAD_OPTION",ze.ECONNABORTED="ECONNABORTED",ze.ETIMEDOUT="ETIMEDOUT",ze.ECONNREFUSED="ECONNREFUSED",ze.ERR_NETWORK="ERR_NETWORK",ze.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",ze.ERR_DEPRECATED="ERR_DEPRECATED",ze.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",ze.ERR_BAD_REQUEST="ERR_BAD_REQUEST",ze.ERR_CANCELED="ERR_CANCELED",ze.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",ze.ERR_INVALID_URL="ERR_INVALID_URL",ze.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const $e=ze;function He(e){return Ae.isPlainObject(e)||Ae.isArray(e)}function Ke(e){return Ae.endsWith(e,"[]")?e.slice(0,-2):e}function Je(e,t,r){return e?e.concat(t).map(function(e,t){return e=Ke(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}const Ve=Ae.toFlatObject(Ae,{},null,function(e){return/^is[A-Z]/.test(e)}),Ge=function(e,t,r){if(!Ae.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(e,t)=>{const n=Ae.getSafeProp(r,e);return Ae.isUndefined(n)?t:n},o=n("metaTokens",!0),i=n("visitor")||y,a=n("dots",!1),s=n("indexes",!1),c=n("Blob")||"undefined"!=typeof Blob&&Blob,l=n("maxDepth",100),u=c&&Ae.isSpecCompliantForm(t),f=[];if(!Ae.isFunction(i))throw new TypeError("visitor must be a function");function p(e){if(null===e)return"";if(Ae.isDate(e))return e.toISOString();if(Ae.isBoolean(e))return e.toString();if(!u&&Ae.isBlob(e))throw new $e("Blob is not supported. Use a Buffer instead.");if(Ae.isArrayBuffer(e)||Ae.isTypedArray(e)){if(u&&"function"==typeof c)return new c([e]);throw new $e("Blob is not supported. Use a Buffer instead.",$e.ERR_NOT_SUPPORT)}return e}function d(e){if(e>l)throw new $e("Object is too deeply nested ("+e+" levels). Max depth: "+l,$e.ERR_FORM_DATA_DEPTH_EXCEEDED)}function y(e,r,n){let i=e;if(Ae.isReactNative(t)&&Ae.isReactNativeBlob(e))return t.append(Je(n,r,a),p(e)),!1;if(e&&!n&&"object"==typeof e)if(Ae.endsWith(r,"{}"))r=o?r:r.slice(0,-2),e=function(e){if(l===1/0)return JSON.stringify(e);const t=[];return JSON.stringify(e,function(e,r){if(!Ae.isObject(r))return r;for(;t.length&&t[t.length-1]!==this;)t.pop();return t.push(r),d(1+t.length-1),r})}(e);else if(Ae.isArray(e)&&function(e){return Ae.isArray(e)&&!e.some(He)}(e)||(Ae.isFileList(e)||Ae.endsWith(r,"[]"))&&(i=Ae.toArray(e)))return r=Ke(r),i.forEach(function(e,n){!Ae.isUndefined(e)&&null!==e&&t.append(!0===s?Je([r],n,a):null===s?r:r+"[]",p(e))}),!1;return!!He(e)||(t.append(Je(n,r,a),p(e)),!1)}const m=Object.assign(Ve,{defaultVisitor:y,convertValue:p,isVisitable:He});if(!Ae.isObject(e))throw new TypeError("data must be an object");return function e(r,n,o=0){if(!Ae.isUndefined(r)){if(d(o),-1!==f.indexOf(r))throw new Error("Circular reference detected in "+n.join("."));f.push(r),Ae.forEach(r,function(r,a){!0===(!(Ae.isUndefined(r)||null===r)&&i.call(t,r,Ae.isString(a)?a.trim():a,n,m))&&e(r,n?n.concat(a):[a],o+1)}),f.pop()}}(e),t};function Qe(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function Xe(e,t){this._pairs=[],e&&Ge(e,this,t)}const Ze=Xe.prototype;Ze.append=function(e,t){this._pairs.push([e,t])},Ze.toString=function(e){const t=e?t=>e.call(this,t,Qe):Qe;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};const Ye=Xe;function et(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function tt(e,t,r){if(!t)return e;e=e||"";const n=Ae.isFunction(r)?{serialize:r}:r,o=Ae.getSafeProp(n,"encode")||et,i=Ae.getSafeProp(n,"serialize");let a;if(a=i?i(t,n):Ae.isURLSearchParams(t)?t.toString():new Ye(t,n).toString(o),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}const rt=Symbol("internals");function nt(e){return e?e.length:0}function ot(e){if(e)for(;e.length&&null===e[e.length-1];)e.pop()}function it(e,t){const r=e.handlers,n=nt(r);r!==t.handlersRef?(t.handlersRef=r,t.handlerEntries.clear()):n!==t.handlersLength&&(n?t.handlerEntries.forEach(function(e,n){r[e.index]!==e.handler&&t.handlerEntries.delete(n)}):t.handlerEntries.clear()),t.handlersLength=n}const at=class{constructor(){this.handlers=[],this[rt]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(e,t,r){const n={fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null},o=this[rt];null==this.handlers&&(this.handlers=[]),it(this,o);const i=o.nextId++;return this.handlers.push(n),o.handlerEntries.set(i,{handler:n,index:this.handlers.length-1}),o.handlersLength=this.handlers.length,i}eject(e){const t=this[rt];it(this,t);const r=t.handlerEntries.get(e);if(r){if(t.handlerEntries.delete(e),this.handlers[r.index]!==r.handler)return;this.handlers[r.index]=null,t.iterationDepth||(ot(this.handlers),t.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],it(this,this[rt]))}forEach(e){const t=this[rt];it(this,t),t.iterationDepth++;try{Ae.forEach(this.handlers,function(t){null!==t&&e(t)})}finally{--t.iterationDepth||(it(this,t),ot(this.handlers),t.handlersLength=nt(this.handlers))}}},st={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},ct={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Ye,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},lt="undefined"!=typeof window&&"undefined"!=typeof document,ut="object"==typeof navigator&&navigator||void 0,ft=lt&&(!ut||["ReactNative","NativeScript","NS"].indexOf(ut.product)<0),pt="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,dt=lt&&window.location.href||"http://localhost",yt={...R,...ct};function mt(e){if(e>100)throw new $e("FormData field is too deeply nested ("+e+" levels). Max depth: 100",$e.ERR_FORM_DATA_DEPTH_EXCEEDED)}const ht=function(e){function t(e,r,n,o){mt(o);let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;return i=!i&&Ae.isArray(n)?n.length:i,s?(Ae.hasOwnProp(n,i)?n[i]=Ae.isArray(n[i])?n[i].concat(r):[n[i],r]:n[i]=r,!a):(Ae.hasOwnProp(n,i)&&Ae.isObject(n[i])||(n[i]=[]),t(e,r,n[i],o)&&Ae.isArray(n[i])&&(n[i]=function(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n{t(function(e){const t=[],r=/[^.[\]]+|\[([^.[\]]*)]/g;let n;for(;null!==(n=r.exec(e));)mt(t.length),t.push("[]"===n[0]?"":n[1]||n[0]);return t}(e),n,r,0)}),r}return null},gt=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),bt=(e,t)=>null!=e&&Ae.hasOwnProp(e,t)?e[t]:void 0,vt={transitional:st,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=Ae.isObject(e);if(o&&Ae.isHTMLForm(e)&&(e=new FormData(e)),Ae.isFormData(e))return n?JSON.stringify(ht(e)):e;if(Ae.isArrayBuffer(e)||Ae.isBuffer(e)||Ae.isStream(e)||Ae.isFile(e)||Ae.isBlob(e)||Ae.isReadableStream(e))return e;if(Ae.isArrayBufferView(e))return e.buffer;if(Ae.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){const t=bt(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Ge(e,new yt.classes.URLSearchParams,{visitor:function(e,t,r,n){return yt.isNode&&Ae.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...t})}(e,t).toString();if((i=Ae.isFileList(e))||r.indexOf("multipart/form-data")>-1){const r=bt(this,"env"),n=r&&r.FormData;return Ge(i?{"files[]":e}:e,n&&new n,t)}}return o||n?(t.setContentType("application/json",!1),function(e){if(Ae.isString(e))try{return(0,JSON.parse)(e),Ae.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=bt(this,"transitional")||vt.transitional,r=t&&t.forcedJSONParsing,n=bt(this,"responseType"),o="json"===n;if(Ae.isResponse(e)||Ae.isReadableStream(e))return e;if(e&&Ae.isString(e)&&(r&&!n||o)){const r=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e,bt(this,"parseReviver"))}catch(e){if(r){if("SyntaxError"===e.name)throw $e.from(e,$e.ERR_BAD_RESPONSE,this,null,bt(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:yt.classes.FormData,Blob:yt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ae.forEach(gt,e=>{vt.headers[e]={}});const wt=vt;function Ot(e,t){const r=this||wt,n=t||r,o=Me.from(n.headers);let i=n.data;return Ae.forEach(e,function(e){i=e.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function St(e){return!(!e||!e.__CANCEL__)}const Et=class extends $e{constructor(e,t,r){super(e??"canceled",$e.ERR_CANCELED,t,r),this.name="CanceledError",this.__CANCEL__=!0}};function _t(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new $e("Request failed with status code "+r.status,r.status>=400&&r.status<500?$e.ERR_BAD_REQUEST:$e.ERR_BAD_RESPONSE,r.config,r.request,r)):e(r)}const xt=/[\t\n\r]/g;function At(e){if("string"!=typeof e)return e;let t=0;for(;t{let n=0;const o=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),l=n[a];o||(o=c),r[i]=s,n[i]=c;let u=a,f=0;for(;u!==i;)f+=r[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o{o=i,r=null,n&&(clearTimeout(n),n=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=i?a(e,t):(r=e,n||(n=setTimeout(()=>{n=null,a(r)},i-s)))},()=>r&&a(r),(...e)=>a(e)]}(r=>{if(!r||!Ae.isNumber(r.loaded))return;const i=r.loaded,a=r.lengthComputable?r.total:void 0,s=Math.max(0,null!=a?Math.min(i,a):i),c=Math.max(0,s-n),l=o(c);n=Math.max(n,s),e({loaded:s,total:a,progress:a?s/a:void 0,bytes:c,rate:l||void 0,estimated:l&&a?(a-s)/l:void 0,event:r,lengthComputable:null!=a,[t?"download":"upload"]:!0})},r)},Pt=(e,t)=>{const r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Tt=(e,t=Ae.asap)=>(...r)=>t(()=>e(...r)),Ct=yt.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,yt.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(yt.origin),yt.navigator&&/(msie|trident)/i.test(yt.navigator.userAgent)):()=>!0,Nt=yt.hasStandardBrowserEnv?{write(e,t,r,n,o,i,a){if("undefined"==typeof document)return;const s=[`${e}=${encodeURIComponent(t)}`];Ae.isNumber(r)&&s.push(`expires=${new Date(r).toUTCString()}`),Ae.isString(n)&&s.push(`path=${n}`),Ae.isString(o)&&s.push(`domain=${o}`),!0===i&&s.push("secure"),Ae.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.split(";");for(let r=0;rnull,remove(){}},Lt=/^https?:(?!\/\/)/i;function Dt(e,t){if("string"==typeof e){const r=At(e);if(Lt.test(r))throw new $e(`Invalid URL ${JSON.stringify(function(e){const t=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${qe}@`),r=t.indexOf("#"),n=(-1===r?t:t.slice(0,r)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${qe}`);return-1===r?n:`${n}#${o=t.slice(r+1),o?o.replace(/(^|&)([^=&]*=)?[^&]+/g,(e,t,r="")=>`${t}${r}${qe}`):o}`;var o}(r))}: missing "//" after protocol`,$e.ERR_INVALID_URL,t)}}function kt(e,t,r,n){Dt(t,n);let o=!("string"==typeof(i=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(i));var i;return e&&(o||!1===r)?(Dt(e,n),function(e,t){if(!t)return e;let r=e.length;for(;r>0&&47===e.charCodeAt(r-1);)r--;return e.slice(0,r)+"/"+t.replace(/^\/+/,"")}(e,t)):t}const It=e=>e instanceof Me?{...e}:e;function Ft(e,t){e=e||{},t=t||{};const r=Object.create(null);function n(e,t,r,n){return Ae.isPlainObject(e)&&Ae.isPlainObject(t)?Ae.merge.call({caseless:n},e,t):Ae.isPlainObject(t)?Ae.merge({},t):Ae.isArray(t)?t.slice():t}function o(e,t,r,o){return Ae.isUndefined(t)?Ae.isUndefined(e)?void 0:n(void 0,e,0,o):n(e,t,0,o)}function i(e,t){if(!Ae.isUndefined(t))return n(void 0,t)}function a(e,t){return Ae.isUndefined(t)?Ae.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function s(r,o,i){return Ae.hasOwnProp(t,i)?n(r,o):Ae.hasOwnProp(e,i)?n(void 0,r):void 0}Object.defineProperty(r,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutErrorMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,allowedSocketPaths:a,responseEncoding:a,validateStatus:s,headers:(e,t,r)=>o(It(e),It(t),0,!0)};var l;return Ae.forEach((l={...e,...t},Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(l).concat(Object.getOwnPropertySymbols(l).filter(e=>Object.getOwnPropertyDescriptor(l,e).enumerable)):Object.keys(l)),function(n){if("__proto__"===n||"constructor"===n||"prototype"===n)return;const i=Ae.hasOwnProp(c,n)?c[n]:o,a=i(Ae.hasOwnProp(e,n)?e[n]:void 0,Ae.hasOwnProp(t,n)?t[n]:void 0,n);Ae.isUndefined(a)&&i!==s||(r[n]=a)}),Ae.hasOwnProp(t,"validateStatus")&&Ae.isUndefined(t.validateStatus)&&!1===function(r){const n=Ae.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!Ae.isUndefined(n)){if(!Ae.isPlainObject(n))return;if(Ae.hasOwnProp(n,r))return n[r]}const o=Ae.hasOwnProp(e,"transitional")?e.transitional:void 0;if(Ae.isPlainObject(o)&&Ae.hasOwnProp(o,r))return o[r]}("validateStatusUndefinedResolves")&&(Ae.hasOwnProp(e,"validateStatus")?r.validateStatus=n(void 0,e.validateStatus):delete r.validateStatus),r}const Ut=["content-type","content-length"],Bt=function(e){const t=Ft({},e),r=e=>Ae.hasOwnProp(t,e)?t[e]:void 0,n=r("data");let o=r("withXSRFToken");const i=r("xsrfHeaderName"),a=r("xsrfCookieName");let s=r("headers");const c=r("auth"),l=r("baseURL"),u=r("allowAbsoluteUrls"),f=r("url");if(t.headers=s=Me.from(s),t.url=tt(kt(l,f,u,t),r("params"),r("paramsSerializer")),c){const t=Ae.getSafeProp(c,"username")||"",r=Ae.getSafeProp(c,"password")||"";try{s.set("Authorization","Basic "+btoa(t+":"+(r?encodeURIComponent(r).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))):"")))}catch(t){throw $e.from(t,$e.ERR_BAD_OPTION_VALUE,e)}}if(Ae.isFormData(n)){const e=Ae.getSafeProp(n,"getHeaders");yt.hasStandardBrowserEnv||yt.hasStandardBrowserWebWorkerEnv||Ae.isReactNative(n)?s.setContentType(void 0):Ae.isFunction(e)&&function(e,t,r){"content-only"===r?Object.entries(t||{}).forEach(([t,r])=>{Ut.includes(t.toLowerCase())&&e.set(t,r)}):e.set(t)}(s,e.call(n),r("formDataHeaderPolicy"))}if(yt.hasStandardBrowserEnv&&(Ae.isFunction(o)&&(o=o(t)),!0===o||null==o&&Ct(t.url))){const e=i&&a&&Nt.read(a);e&&s.set(i,e)}return t},Mt="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){const n=Bt(e);let o=n.data;const i=Me.from(n.headers).normalize();let a,s,c,l,u,f,{responseType:p,onUploadProgress:d,onDownloadProgress:y}=n;function m(){l&&l(),u&&u(),n.cancelToken&&n.cancelToken.unsubscribe(a),n.signal&&n.signal.removeEventListener("abort",a)}let h=new XMLHttpRequest;function g(o){if(!h)return;if(!(0!==h.status||"file"===(Rt(At(n.url))||Rt(yt.origin))||h.responseURL&&h.responseURL.startsWith("file:")))return r(new $e("Request aborted",$e.ECONNABORTED,e,h)),m(),void(h=null);try{o?f&&f(o):u&&u()}catch(e){setTimeout(()=>{throw e})}if(!h)return;const i=Me.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());_t(function(e){t(e),m()},function(e){r(e),m()},{data:p&&"text"!==p&&"json"!==p?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:i,config:e,request:h}),h=null}h.open(n.method.toUpperCase(),n.url,!0),h.timeout=n.timeout,"onloadend"in h?h.onloadend=g:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&h.responseURL.startsWith("file:"))&&setTimeout(g)},h.onabort=function(){h&&(r(new $e("Request aborted",$e.ECONNABORTED,e,h)),m(),h=null)},h.onerror=function(t){const n=t&&t.message?t.message:"Network Error",o=new $e(n,$e.ERR_NETWORK,e,h);o.event=t||null,r(o),m(),h=null},h.ontimeout=function(){let t=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const o=n.transitional||st;n.timeoutErrorMessage&&(t=n.timeoutErrorMessage),r(new $e(t,o.clarifyTimeoutError?$e.ETIMEDOUT:$e.ECONNABORTED,e,h)),m(),h=null},void 0===o&&i.setContentType(null),"setRequestHeader"in h&&Ae.forEach(Ne(i),function(e,t){h.setRequestHeader(t,e)}),Ae.isUndefined(n.withCredentials)||(h.withCredentials=!!n.withCredentials),p&&"json"!==p&&(h.responseType=n.responseType),y&&([c,u,f]=jt(y,!0),h.addEventListener("progress",c)),d&&h.upload&&([s,l]=jt(d),h.upload.addEventListener("progress",s),h.upload.addEventListener("loadend",l)),(n.cancelToken||n.signal)&&(a=t=>{h&&(r(!t||t.type?new Et(null,e,h):t),h.abort(),m(),h=null)},n.cancelToken&&n.cancelToken.subscribe(a),n.signal&&(n.signal.aborted?a():n.signal.addEventListener("abort",a)));const b=Rt(n.url);if(b&&!yt.protocols.includes(b))return r(new $e("Unsupported protocol "+b+":",$e.ERR_BAD_REQUEST,e)),void m();h.send(o||null)})},qt=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const r=new AbortController;let n=!1;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof $e?t:new Et(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,o(new $e(`timeout of ${t}ms exceeded`,$e.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>{n||(e.aborted?o.call(e):e.addEventListener("abort",o,{once:!0}))});const{signal:s}=r;return s.unsubscribe=()=>Ae.asap(a),s},Wt=function*(e,t){let r=e.byteLength;if(!t||r{const o=async function*(e,t){for await(const r of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}}(e))yield*Wt(r,t)}(e,t);let i,a=0,s=e=>{i||(i=!0,n&&n(e))};return new ReadableStream({async pull(e){try{const{done:t,value:n}=await o.next();if(t)return s(),void e.close();let i=n.byteLength;if(r){let e=a+=i;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},$t=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,Ht=(e,t,r)=>t+2e<=57?e-48:(223&e)-55,Jt=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||43===e||47===e||45===e||95===e,Vt=e=>9===e||10===e||12===e||13===e||32===e,Gt=e=>{const t=e.length;let r=0,n=0,o=!1;for(let i=0;i0?o=!0:r++:n++)}return o||n>2||n>0&&(r+n)%4!=0||r%4==1?(e=>{const t=e.length;let r=0;return t>0&&61===e.charCodeAt(t-1)&&(r++,t>1&&61===e.charCodeAt(t-2)&&r++),Math.floor(3*(t-r)/4)})(e):(e=>{const t=e%4;return 3*Math.floor(e/4)+(2===t?1:3===t?2:0)})(r)},Qt={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:Xt}=Ae,Zt=e=>{if(!Ae.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},Yt=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},er=e=>{const t=void 0!==Ae.global&&null!==Ae.global?Ae.global:globalThis,{ReadableStream:r,TextEncoder:n}=t;e=Ae.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:o,Request:i,Response:a}=e,s=o?Xt(o):"function"==typeof fetch,c=Xt(i),l=Xt(a);if(!s)return!1;const u=s&&Xt(r),f=s&&("function"==typeof n?(p=new n,e=>p.encode(e)):async e=>new Uint8Array(await new i(e).arrayBuffer()));var p;const d=c&&u&&Yt(()=>{let e=!1;const t=new i(yt.origin,{body:new r,method:"POST",get duplex(){return e=!0,"half"}}),n=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!n}),y=l&&u&&Yt(()=>Ae.isReadableStream(new a("").body)),m={stream:y&&(e=>e.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!m[e]&&(m[e]=(t,r)=>{let n=t&&t[e];if(n)return n.call(t);throw new $e(`Response type '${e}' is not supported`,$e.ERR_NOT_SUPPORT,r)})});const h=async e=>{if(null==e)return 0;if(Ae.isBlob(e))return e.size;if(Ae.isSpecCompliantForm(e)){const t=new i(yt.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Ae.isArrayBufferView(e)||Ae.isArrayBuffer(e)?e.byteLength:(Ae.isURLSearchParams(e)&&(e+=""),Ae.isString(e)?(await f(e)).byteLength:void 0)};return async e=>{let{url:t,method:r,data:s,signal:l,cancelToken:f,timeout:p,onDownloadProgress:g,onUploadProgress:b,responseType:v,headers:w,withCredentials:O="same-origin",fetchOptions:S,maxContentLength:E,maxBodyLength:_,maxRedirects:x}=Bt(e);const A=Ae.isNumber(E)&&E>-1,R=Ae.isNumber(_)&&_>-1;let j=o||fetch;v=v?(v+"").toLowerCase():"text";let P=qt([l,f&&f.toAbortSignal()],p),T=null;const C=P&&P.unsubscribe&&(()=>{P.unsubscribe()});let N,L=null;const D=()=>new $e("Request body larger than maxBodyLength limit",$e.ERR_BAD_REQUEST,e,T);try{let o;const l=(I="auth",Ae.hasOwnProp(e,I)?e[I]:void 0);if(l){o={username:Ae.getSafeProp(l,"username")||"",password:Ae.getSafeProp(l,"password")||""}}if((e=>{const t=e.indexOf("://");let r=e;return-1!==t&&(r=r.slice(t+3)),r.includes("@")||r.includes(":")})(t)){const e=new URL(t,yt.origin);if(!o&&(e.username||e.password)){o={username:Zt(e.username),password:Zt(e.password)}}(e.username||e.password)&&(e.username="",e.password="",t=e.href)}if(o&&(w.delete("authorization"),w.set("Authorization","Basic "+btoa((k=(o.username||"")+":"+(o.password||""),encodeURIComponent(k).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))))))),A&&"string"==typeof t&&t.startsWith("data:")){const r=function(e){const t="string"==typeof e?e.indexOf("#"):-1;return((e,t)=>{if(!e||"string"!=typeof e)return 0;if(!e.startsWith("data:"))return 0;const r=e.indexOf(",");if(r<0)return 0;const n=e.slice(5,r),o=e.slice(r+1);if(/;base64/i.test(n))return t(o);let i=0;for(let e=0,t=o.length;e=55296&&r<=56319&&e+1=56320&&t<=57343?(i+=4,e++):i+=3}else i+=3}return i})(-1===t?e:e.slice(0,t),Gt)}(t);if(r>E)throw new $e("maxContentLength size of "+E+" exceeded",$e.ERR_BAD_RESPONSE,e,T)}if(R&&"get"!==r&&"head"!==r){const e=await h(s);if("number"==typeof e&&isFinite(e)&&(N=e,e>_))throw D()}const f=R&&(Ae.isReadableStream(s)||Ae.isStream(s)),p=(e,t,r)=>zt(e,65536,e=>{if(R&&e>_)throw L=D();t&&t(e)},r);if(d&&"get"!==r&&"head"!==r&&(b||f)){if(N=N??await(async(e,t)=>Ae.toFiniteNumber(e.getContentLength())??h(t))(w,s),0!==N||f){let e,r=new i(t,{method:"POST",body:s,duplex:"half"});if(Ae.isFormData(s)&&(e=r.headers.get("content-type"))&&w.setContentType(e),r.body){const[e,t]=b&&Pt(N,jt(Tt(b)))||[];s=p(r.body,e,t)}}}else if(f&&!c&&u&&"get"!==r&&"head"!==r)s=p(s);else if(f&&c&&!d&&"get"!==r&&"head"!==r)throw new $e("Stream request bodies are not supported by the current fetch implementation",$e.ERR_NOT_SUPPORT,e,T);Ae.isString(O)||(O=O?"include":"omit");const F=c&&"credentials"in i.prototype;if(Ae.isFormData(s)){const e=w.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&w.delete("content-type")}w.set("User-Agent","axios/1.20.0",!1);const U=null==S?S:Object.assign(Object.create(null),S);U&&(delete U.body,delete U.headers,delete U.method,delete U.signal,delete U.duplex,delete U.credentials);const B=Object.assign(Object.create(null),U,{signal:P,method:r.toUpperCase(),headers:Ne(w.normalize()),body:s,duplex:"half",credentials:F?O:void 0});c&&(Ae.forEach(Qt,(e,t)=>{void 0===B[t]&&(B[t]=e)}),void 0===B.signal&&(B.signal=null),void 0===B.body&&(B.body=null)),0===x&&(B.redirect="manual",U&&(U.redirect="manual")),T=c&&new i(t,B);let M=await(c?j(T,U):j(t,B));const q=Me.from(M.headers);if(A){const t=Ae.toFiniteNumber(q.getContentLength());if(null!=t&&t>E)throw new $e("maxContentLength size of "+E+" exceeded",$e.ERR_BAD_RESPONSE,e,T)}const W=y&&("stream"===v||"response"===v);if(y&&M.body&&(g||A||W&&C)){const t={};["status","statusText","headers"].forEach(e=>{t[e]=M[e]});const r=Ae.toFiniteNumber(q.getContentLength()),[n,o]=g&&Pt(r,jt(Tt(g),!0))||[];let i=0;const s=t=>{if(A&&(i=t,i>E))throw new $e("maxContentLength size of "+E+" exceeded",$e.ERR_BAD_RESPONSE,e,T);n&&n(t)};M=new a(zt(M.body,65536,s,()=>{o&&o(),C&&C()}),t)}v=v||"text";let z=await m[Ae.findKey(m,v)||"text"](M,e);if(A&&!y&&!W){let t;if(null!=z&&("number"==typeof z.byteLength?t=z.byteLength:"number"==typeof z.size?t=z.size:"string"==typeof z&&(t="function"==typeof n?(new n).encode(z).byteLength:z.length)),"number"==typeof t&&t>E)throw new $e("maxContentLength size of "+E+" exceeded",$e.ERR_BAD_RESPONSE,e,T)}return!W&&C&&C(),await new Promise((t,r)=>{_t(t,r,{data:z,headers:Me.from(M.headers),status:M.status,statusText:M.statusText,config:e,request:T})})}catch(t){if(C&&C(),P&&P.aborted&&P.reason instanceof $e){const r=P.reason;throw r.config=e,T&&(r.request=T),t!==r&&Object.defineProperty(r,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),r}if(L)throw T&&!L.request&&(L.request=T),L;if(t instanceof $e)throw T&&!t.request&&(t.request=T),t;if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message)){const r=new $e("Network Error",$e.ERR_NETWORK,e,T,t&&t.response);throw Object.defineProperty(r,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),r}throw $e.from(t,t&&t.code,e,T,t&&t.response)}var k,I}},tr=new Map,rr=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:o}=t,i=[n,o,r];let a,s,c=i.length,l=tr;for(;c--;)a=i[c],s=l.get(a),void 0===s&&l.set(a,s=c?new Map:er(t)),l=s;return s},nr=(rr(),{http:null,xhr:Mt,fetch:{get:rr}});Ae.forEach(nr,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const or=e=>`- ${e}`,ir=e=>Ae.isFunction(e)||null===e||!1===e,ar=function(e,t){e=Ae.isArray(e)?e:[e];const{length:r}=e;let n,o;const i={};for(let a=0;a`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=r?e.length>1?"since :\n"+e.map(or).join("\n"):" "+or(e[0]):"as no adapter specified";throw new $e("There is no suitable adapter to dispatch the request "+t,$e.ERR_NOT_SUPPORT)}return o};function sr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Et(null,e)}function cr(e){const t=Ae.toSafeFlatObject(e);return sr(t),t.headers=Me.from(Ae.getSafeProp(t,"headers")),t.data=Ot.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),ar(t.adapter||wt.adapter,t)(t).then(function(e){sr(t),t.response=e;try{e.data=Ot.call(t,t.transformResponse,e)}finally{delete t.response}return e.headers=Me.from(e.headers),e},function(e){if(!St(e)&&(sr(t),e&&e.response)){t.response=e.response;try{e.response.data=Ot.call(t,t.transformResponse,e.response)}finally{delete t.response}e.response.headers=Me.from(e.response.headers)}return Promise.reject(e)})}const lr={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{lr[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const ur={};lr.transitional=function(e,t,r){function n(e,t){return"[Axios v1.20.0] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,o,i)=>{if(!1===e)throw new $e(n(o," has been removed"+(t?" in "+t:"")),$e.ERR_DEPRECATED);return t&&!ur[o]&&(ur[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,i)}},lr.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};const fr={assertOptions:function(e,t,r){if("object"!=typeof e||null===e)throw new $e("options must be an object",$e.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],a=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(a){const t=e[i],r=void 0===t||a(t,i,e);if(!0!==r)throw new $e("option "+i+" must be "+r,$e.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new $e("Unknown option "+i,$e.ERR_BAD_OPTION)}},validators:lr},pr=fr.validators;class dr{constructor(e){this.defaults=e||{},this.interceptors={request:new at,response:new at}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error)try{let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const r=t.stack;let n="";if("string"==typeof r){const e=r.indexOf("\n");n=-1===e?"":r.slice(e+1)}if(e.stack){if(n){const t=n.indexOf("\n"),r=-1===t?-1:n.indexOf("\n",t+1),o=-1===r?"":n.slice(r+1);String(e.stack).endsWith(o)||(e.stack+="\n"+n)}}else e.stack=n}catch(e){}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Ft(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:o}=t;void 0!==r&&fr.assertOptions(r,{silentJSONParsing:pr.transitional(pr.boolean),forcedJSONParsing:pr.transitional(pr.boolean),clarifyTimeoutError:pr.transitional(pr.boolean),legacyInterceptorReqResOrdering:pr.transitional(pr.boolean),advertiseZstdAcceptEncoding:pr.transitional(pr.boolean),validateStatusUndefinedResolves:pr.transitional(pr.boolean)},!1),null!=n&&(Ae.isFunction(n)?t.paramsSerializer={serialize:n}:fr.assertOptions(n,{encode:pr.function,serialize:pr.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),fr.assertOptions(t,{baseUrl:pr.spelling("baseURL"),withXsrfToken:pr.spelling("withXSRFToken")},!0),t.method=(Ae.getSafeProp(t,"method")||Ae.getSafeProp(this.defaults,"method")||"get").toLowerCase();let i=o&&Ae.merge(o.common,o[t.method]);o&&Ae.forEach(gt.concat("common"),e=>{delete o[e]}),t.headers=Me.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;s=s&&e.synchronous;const r=t.transitional||st;r&&r.legacyInterceptorReqResOrdering?a.unshift(e.fulfilled,e.rejected):a.push(e.fulfilled,e.rejected)});const c=[];let l;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let u,f=0;if(!s){const e=[cr.bind(this),void 0];for(e.unshift(...a),e.push(...c),u=e.length,l=Promise.resolve(t);fcr.call(this,p)))}catch(e){l=Promise.reject(e)}break}}if(!l)try{l=cr.call(this,p)}catch(e){l=Promise.reject(e)}for(f=0,u=c.length;f{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t;const n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,o){r.reason||(r.reason=new Et(e,n,o),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new mr(function(t){e=t}),cancel:e}}}const hr=mr,gr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(gr).forEach(([e,t])=>{void 0===gr[t]&&(gr[t]=e)});const br=gr,vr=function e(t){const r=new yr(t),n=j(yr.prototype.request,r);return Ae.extend(n,yr.prototype,r,{allOwnKeys:!0}),Ae.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(Ft(t,r))},n}(wt);vr.Axios=yr,vr.CanceledError=Et,vr.CancelToken=hr,vr.isCancel=St,vr.VERSION="1.20.0",vr.toFormData=Ge,vr.AxiosError=$e,vr.Cancel=vr.CanceledError,vr.all=function(e){return Promise.all(e)},vr.spread=function(e){return function(t){return e.apply(null,t)}},vr.isAxiosError=function(e){return Ae.isObject(e)&&!0===e.isAxiosError},vr.mergeConfig=Ft,vr.AxiosHeaders=Me,vr.formToJSON=e=>ht(Ae.isHTMLForm(e)?new FormData(e):e),vr.getAdapter=ar,vr.HttpStatusCode=br,vr.default=vr;const wr=vr;function Or(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n={action:e},o={nonce:!1,action:e};void 0===t&&(t={});var i;for(var a in i="undefined"==typeof ajaxurl?r:ajaxurl,o)t.hasOwnProperty(a)||(t[a]=o[a]);var s={method:"post",url:i,params:n,paramsSerializer:function(e){return w().stringify(e,{arrayFormat:"brackets"})},data:w().stringify(t)};return wr(s)}function Sr(e){return Sr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sr(e)}function Er(){var e=Pr(),t=e.m(Er),r=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function n(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===r||"GeneratorFunction"===(t.displayName||t.name))}var o={throw:1,return:2,break:3,continue:3};function i(e){var t,r;return function(n){t||(t={stop:function(){return r(n.a,2)},catch:function(){return n.v},abrupt:function(e,t){return r(n.a,o[e],t)},delegateYield:function(e,o,i){return t.resultName=o,r(n.d,_r(e),i)},finish:function(e){return r(n.f,e)}},r=function(e,r,o){n.p=t.prev,n.n=t.next;try{return e(r,o)}finally{t.next=n.n}}),t.resultName&&(t[t.resultName]=n.v,t.resultName=void 0),t.sent=n.v,t.next=n.n;try{return e.call(this,t)}finally{n.p=t.prev,n.n=t.next}}}return(Er=function(){return{wrap:function(t,r,n,o){return e.w(i(t),r,n,o&&o.reverse())},isGeneratorFunction:n,mark:e.m,awrap:function(e,t){return new Cr(e,t)},AsyncIterator:jr,async:function(e,t,r,o,a){return(n(t)?Rr:Ar)(i(e),t,r,o,a)},keys:xr,values:_r}})()}function _r(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw new TypeError(Sr(e)+" is not iterable")}function xr(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}}function Ar(e,t,r,n,o){var i=Rr(e,t,r,n,o);return i.next().then(function(e){return e.done?e.value:i.next()})}function Rr(e,t,r,n,o){return new jr(Pr().w(e,t,r,n),o||Promise)}function jr(e,t){function r(n,o,i,a){try{var s=e[n](o),c=s.value;return c instanceof Cr?t.resolve(c.v).then(function(e){r("next",e,i,a)},function(e){r("throw",e,i,a)}):t.resolve(c).then(function(e){s.value=e,i(s)},function(e){return r("throw",e,i,a)})}catch(e){a(e)}}var n;this.next||(Tr(jr.prototype),Tr(jr.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),Tr(this,"_invoke",function(e,o,i){function a(){return new t(function(t,n){r(e,i,t,n)})}return n=n?n.then(a,a):a()},!0)}function Pr(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof s?n:s,l=Object.create(c.prototype);return Tr(l,"_invoke",function(r,n,o){var i,s,c,l=0,u=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,r){return i=t,s=0,c=e,p.n=r,a}};function d(r,n){for(s=r,c=n,t=0;!f&&l&&!o&&t3?(o=y===n)&&(c=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=r<2&&dn||n>y)&&(i[4]=r,i[5]=n,p.n=y,s=0))}if(o||r>1)return a;throw f=!0,n}return function(o,u,y){if(l>1)throw TypeError("Generator is already running");for(f&&1===u&&d(u,y),s=u,c=y;(t=s<2?e:c)||!f;){i||(s?s<3?(s>1&&(p.n=-1),d(s,c)):p.n=c:p.v=c);try{if(l=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=p.n<0)?c:r.call(n,p))!==a)break}catch(t){i=e,s=1,c=t}finally{l=1}}return{value:t,done:f}}}(r,o,i),!0),l}var a={};function s(){}function c(){}function l(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(Tr(t={},n,function(){return this}),t),f=l.prototype=s.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,Tr(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=l,Tr(f,"constructor",l),Tr(l,"constructor",c),c.displayName="GeneratorFunction",Tr(l,o,"GeneratorFunction"),Tr(f),Tr(f,o,"Generator"),Tr(f,n,function(){return this}),Tr(f,"toString",function(){return"[object Generator]"}),(Pr=function(){return{w:i,m:p}})()}function Tr(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Tr=function(e,t,r,n){function i(t,r){Tr(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},Tr(e,t,r,n)}function Cr(e,t){this.v=e,this.k=t}function Nr(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function Lr(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){Nr(i,n,o,a,s,"next",e)}function s(e){Nr(i,n,o,a,s,"throw",e)}a(void 0)})}}var Dr=wp.i18n,kr=Dr.__,Ir=Dr._n,Fr=wp.hooks,Ur=Fr.addFilter,Br=Fr.applyFilters,Mr=Fr.doAction,qr=[],Wr=[],zr=[];window.addEventListener("load",function(){var e=document.querySelectorAll(".sce-edit-button");if(e){document.addEventListener("wpacAfterUpdateComments",function(e){var t=e.detail.commentUrl;window.SCE_comments_updated(t)}),Ur("sce.comment.save.data","comment-edit-lite",function(e){var t=document.querySelectorAll("#sce-edit-comment".concat(e.comment_id)),r=null;if(null!==t&&(r=t[t.length-1].querySelector(".stars")),null!==r){var n=r.querySelector(".active").classList[0].replace("star-",""),o=document.querySelector("#woo_edit_comment_nonce_"+e.comment_id).value;return e.wooEditCommentNonce=o,e.rating=n,e}return e});var t=function(){var e=Lr(Er().mark(function e(t,r,n,o){var i;return Er().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Or("sce_get_time_left",{comment_id:t,post_id:r,_ajax_nonce:n},o);case 2:return i=e.sent,e.abrupt("return",i);case 4:case"end":return e.stop()}},e)}));return function(t,r,n,o){return e.apply(this,arguments)}}(),r=function(){var e=Lr(Er().mark(function e(t,r,n){var o;return Er().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Or(t,r,n);case 2:return o=e.sent,e.abrupt("return",o);case 4:case"end":return e.stop()}},e)}));return function(t,r,n){return e.apply(this,arguments)}}(),n=function(e){e.classList.remove("sce-hide"),e.classList.add("sce-show")},o=function(e,t){var r=e&&e.data?e.data:{},n=r.data||{};return n.error||n.message||r.error||t},i=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=document.querySelector("#sce-edit-comment-status".concat(e));null!==n&&(n.className="",n.classList.add("sce-status"),r&&n.classList.add("error"),n.setAttribute("aria-live",r?"assertive":"polite"),n.textContent=t,n.style.display="block")},a=function(e,t,r){document.dispatchEvent(new CustomEvent(e,{detail:r})),Mr(t,r)},s=function(e,t,r){var n=zr[t];n&&(a("sceCommentEditorDestroy","sce.comment.editor.destroy",{textarea:e,commentId:t,postId:r}),n.quicktags&&wp.editor&&"function"==typeof wp.editor.remove&&wp.editor.remove(n.textareaId),delete zr[t])},c=function(e,t){e.querySelectorAll("button").forEach(function(e){e.disabled=t}),e.querySelectorAll(".sce-edit-button-main, .sce-delete-button-main").forEach(function(e){e.setAttribute("aria-disabled",t?"true":"false")})},l=function(e,t,r){var n=e.querySelector(".sce-textarea"),o=e.querySelector(".sce-loading"),i=e.querySelector(".sce-edit-button");c(e,!1),e.dataset.sceSubmitting="false",null!==o&&(o.style.display="none"),null!==n&&(n.style.display=r?"block":"none"),null!==i&&(i.style.display=r?"none":"block"),null!==t&&t.setAttribute("aria-expanded",r?"true":"false")},u=function(e,t){t<0&&(e-=1,t=59);var r="",n=0,o=0,i=0;if(e>=1){var a=Math.abs(60*e);(n=Math.floor(a/86400))>=1&&(r+=n+" "+Ir("day","days",n,"simple-comment-editing"),r+=" "+kr("and","simple-comment-editing")+" ",a-=86400*n),(o=Math.floor(a/3600)%24)>=0&&(o>0&&(r+=o+" "+Ir("hour","hours",o,"simple-comment-editing"),r+=" "+kr("and","simple-comment-editing")+" "),a-=3600*o),a-=i=Math.floor(a/60)%60,e>0&&(r+=i+" "+Ir("minute","minutes",i,"simple-comment-editing")),t>0&&(r+=" "+kr("and","simple-comment-editing")+" ",r+=t+" "+Ir("second","seconds",t,"simple-comment-editing"))}else r+=t+" "+Ir("second","seconds",t,"simple-comment-editing");return Br("sce.comment.timer.text",r,Ir("day","days",n,"simple-comment-editing"),Ir("hour","hours",o,"simple-comment-editing"),Ir("minute","minutes",i,"simple-comment-editing"),Ir("second","seconds",t,"simple-comment-editing"),n,o,i,t)},f=function(){var e=Lr(Er().mark(function e(t,r,n,a,u){var f,p,d,y,m,h;return Er().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if("true"!==(f=t.closest(".sce-edit-comment")).dataset.sceSubmitting){e.next=3;break}return e.abrupt("return");case 3:return p=f.querySelector(".sce-edit-button-main"),d=f.querySelector(".sce-textarea"),y=null!==d&&"none"!==d.style.display,m=f.querySelector(".sce-loading"),f.dataset.sceSubmitting="true",c(f,!0),null!==m&&(m.style.display="block"),e.prev=10,e.next=13,Or("sce_delete_comment",{comment_id:r,post_id:n,nonce:a},u);case 13:if((h=e.sent).data&&!0===h.data.success){e.next=16;break}throw new Error(o(h,simple_comment_editing.comment_deleted_error));case 16:i(r,simple_comment_editing.comment_deleted),s(f.querySelector(".sce-comment-text"),r,n),setTimeout(function(){var e=document.querySelector("#comment-"+r);null!==e&&e.remove(),f.remove()},3e3),e.next=25;break;case 21:e.prev=21,e.t0=e.catch(10),l(f,p,y),i(r,e.t0.message||simple_comment_editing.comment_deleted_error,!0);case 25:case"end":return e.stop()}},e,null,[[10,21]])}));return function(t,r,n,o,i){return e.apply(this,arguments)}}();window.initEditCommentButton=function(e){var p=e.querySelector(".sce-edit-button-main, .sce-delete-button-main");if(null!==p){var d,y=(d=p).dataset.sceAjaxUrl||d.getAttribute("href"),m=new URLSearchParams(y),h=m.get("cid"),g=m.get("pid"),b=m.get("nonce");t(h,g,simple_comment_editing.nonce,y).then(function(t){if(!t.data||!0!==t.data.success||!t.data.data)throw new Error(o(t,simple_comment_editing.comment_deleted_error));var r=t.data.data,i=r.minutes,a=r.seconds;if(!0===r.can_edit)if("unlimited"!==i||"unlimited"!==a){i=parseInt(i),a=parseInt(a);var c=u(i,a),l=e.querySelector(".sce-timer");null!==l&&(l.textContent=c);var f=e.parentNode.querySelectorAll(".sce-textarea .sce-timer");null!==f&&f.forEach(function(e){e.textContent=c}),n(e);var p=new CustomEvent("sceTimerLoaded",{detail:{button:e,commentId:h,postId:g}});document.dispatchEvent(p);var d=document.querySelector("#sce-edit-comment".concat(h," textarea"));null!==d&&(Wr[h]=d.value),qr[h]={minutes:i,seconds:a,start:(new Date).getTime(),time:0,timer:function(){var t=qr[h].seconds-1,r=qr[h].minutes;if(r<=0&&t<=0)return s(e.parentNode.querySelector(".sce-comment-text"),h,g),void e.parentNode.remove();t<0&&(r-=1,t=59);var n=u(r,t),o=e.querySelector(".sce-timer");null!==o&&(o.textContent=n);var i=e.parentNode.querySelectorAll(".sce-textarea .sce-timer");null!==i&&i.forEach(function(e){e.textContent=n});var a=new CustomEvent("sceTimerCountdown",{detail:{button:e,commentId:h,postId:g,timer_seconds:t,timer_minutes:r}});document.dispatchEvent(a),qr[h].seconds=t,qr[h].minutes=r;var c=qr[h];c.time+=1e3;var l=(new Date).getTime()-c.start-c.time;window.setTimeout(c.timer,1e3-l)}},window.setTimeout(qr[h].timer,1e3)}else{n(e);var y=new CustomEvent("sceTimerLoaded",{detail:{button:e,commentId:h,postId:g}});document.dispatchEvent(y)}else e.parentNode.remove()}).catch(function(t){!function(e){e.classList.remove("sce-show"),e.classList.add("sce-hide")}(e),c(e.parentNode,!0),i(h,t.message||simple_comment_editing.comment_deleted_error,!0)});var v=document.querySelector("#sce-edit-comment".concat(h," .sce-edit-button-main"));if(null!==v){v.addEventListener("click",function(e){e.preventDefault();var t=v.closest(".sce-edit-comment");if("true"!==t.dataset.sceSubmitting){var r=document.querySelector("#sce-edit-comment-status".concat(h));null!==r&&(r.classList.remove("sce-error"),r.classList.remove("sce-success"),r.classList.add("sce-status"),r.style.display="none"),c(t,!1),t.querySelector(".sce-textarea").style.display="block",v.parentNode.style.display="none",v.setAttribute("aria-expanded","true");var n=t.querySelector(".sce-textarea textarea:first-of-type");!function(e,t,r){if(!zr[t]){var n={textareaId:e.id,quicktags:!1};zr[t]=n,simple_comment_editing.enable_quicktags&&wp.editor&&"function"==typeof wp.editor.initialize&&(wp.editor.initialize(e.id,{mediaButtons:!1,quicktags:!0,tinymce:!1}),n.quicktags=!0,a("sceCommentQuicktagsInit","sce.comment.editor.quicktags.init",{textarea:e,commentId:t,postId:r}))}}(n,h,g);var o=new CustomEvent("sceEditTextareaShow",{detail:{textarea:n,commentId:h,postId:g}});document.dispatchEvent(o),Mr("sce.comment.editor.show",{textarea:n,commentId:h,postId:g}),n.focus()}});var w=e.querySelector(".sce-delete-button-main");null!==w&&w.addEventListener("click",function(t){t.preventDefault(),simple_comment_editing.allow_delete_confirmation?confirm(simple_comment_editing.confirm_delete)&&f(e,h,g,b,y):f(e,h,g,b,y)});var O=e.parentNode.querySelector(".sce-textarea .sce-comment-delete");null!==O&&O.addEventListener("click",function(t){t.preventDefault(),simple_comment_editing.allow_delete_confirmation?confirm(simple_comment_editing.confirm_delete)&&f(e,h,g,b,y):f(e,h,g,b,y)});var S=e.parentNode.querySelector(".sce-textarea .sce-comment-cancel");null!==S&&S.addEventListener("click",function(e){e.preventDefault();var t=S.closest(".sce-edit-comment"),r=t.querySelector(".sce-textarea textarea:first-of-type"),n=Wr[h];r.value=n,a("sceCommentEditorReset","sce.comment.editor.reset",{textarea:r,commentId:h,postId:g,content:n}),s(r,h,g),l(t,v,!1)});var E=e.parentNode.querySelector(".sce-textarea .sce-comment-save");null!==E&&E.addEventListener("click",function(t){t.preventDefault();var n=e.closest(".sce-edit-comment");if("true"!==n.dataset.sceSubmitting){n.dataset.sceSubmitting="true",c(n,!0),e.parentNode.querySelector(".sce-textarea").style.display="none",e.parentNode.querySelector(".sce-loading").style.display="block";var u=e.parentNode.querySelector(".sce-textarea textarea:first-of-type");a("sceCommentSavePre","sce.comment.editor.save.pre",{button:e,textarea:u,commentId:h,postId:g});var p=u.value.trim();if(""===p&&simple_comment_editing.allow_delete)return confirm(simple_comment_editing.empty_comment)?(n.dataset.sceSubmitting="false",void f(e,h,g,b,y)):(u.value=Wr[h],a("sceCommentEditorReset","sce.comment.editor.reset",{textarea:u,commentId:h,postId:g,content:Wr[h]}),void l(n,v,!0));var d={action:"sce_save_comment",comment_content:p,comment_id:h,post_id:g,nonce:b};d=Br("sce.comment.save.data",d),r("sce_save_comment",d,y).then(function(t){var r=t.data;if(r&&!0===r.success&&r.data&&"string"==typeof r.data.comment_text){document.querySelector("#sce-comment".concat(h)).innerHTML=r.data.comment_text,Wr[h]=document.querySelector("#sce-edit-comment".concat(h," textarea")).value;var a=new CustomEvent("sceCommentSavePost",{detail:{button:e,textarea:u,commentId:h,postId:g,ajaxData:r.data}});document.dispatchEvent(a),Mr("sce.comment.editor.save.post",{button:e,textarea:u,commentId:h,postId:g,ajaxData:r.data}),s(u,h,g),l(n,v,!1)}else l(n,v,!0),i(h,o(t,simple_comment_editing.comment_deleted_error),!0)}).catch(function(e){l(n,v,!0),i(h,e.message||simple_comment_editing.comment_deleted_error,!0)})}})}}},e.forEach(function(e){initEditCommentButton(e)});var p=document.querySelectorAll(".comment-form-rating");p.length>0&&p.forEach(function(e){var t=e.dataset.selectedRating,r=e.querySelector(".stars");if(null!==r){r.classList.add("selected");var n=r.querySelector(".star-"+t);null!==n&&n.classList.add("active")}}),"undefined"!=typeof jQuery&&jQuery(document).ready(function(t){jQuery(".comment-form-rating select").hide().before('

\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t1\t\t\t\t\t\t\t\t2\t\t\t\t\t\t\t\t3\t\t\t\t\t\t\t\t4\t\t\t\t\t\t\t\t5\t\t\t\t\t\t\t\t\t\t\t\t\t

'),e.forEach(function(e){e.addEventListener("sceEditTextareaShow",function(t){var r=e.closest(".sce-edit-comment"),n=jQuery(r).find(".comment-form-rating").data("selected-rating"),o=jQuery(r).find(".stars");o.find("a").removeClass("active"),o.addClass("selected"),o.find(".star-"+n).addClass("active")}),e.addEventListener("sceCommentSavePost",function(t){var r=t.detail,n=(r.targetButton,r.textarea,r.commentId),o=(r.postId,r.ajaxData),i=jQuery(e).closest(".sce-edit-comment"),a=i.find(".stars");a.find("a").removeClass("active"),a.find(".star-"+o.rating).addClass("active"),i.closest("#comment-"+n).find(".star-rating span").css({width:20*o.rating+"%"}),i.find(".comment-form-rating").data("selected-rating",o.rating)})}),jQuery("body").on("click",".comment-form-rating p.stars a",function(e){e.preventDefault();var t=jQuery(this),r=jQuery(this).closest(".comment-form-rating").find("select"),n=jQuery(this).closest(".stars");return r.val(t.text()),t.siblings("a").removeClass("active"),t.addClass("active"),n.addClass("selected"),!1})}),"compact"===simple_comment_editing.timer_appearance&&Ur("sce.comment.timer.text","simple-comment-editing",function(e,t,r,n,o,i,a,s,c){return e="",i>=1&&(e+=i<10?"0"+i:i,e+=":"),a>0?(e+=a<10?"0"+a:a,e+=":"):0===a&&i>0&&(e+="00",e+=":"),s>0?(e+=s<10?"0"+s:s,e+=":"):0===s&&a>0&&(e+="00",e+=":"),c>0?e+=c<10?"0"+c:c:0===c&&s>0&&(e+="00"),e},10)}}),window.SCE_comments_updated=function(e){var t=e.match(/comment-(\d+)/);if(t){var r=t[1],n=document.querySelector("#comment-".concat(r));if(null!==n){var o=n.querySelector(".sce-edit-button");null!==o&&window.initEditCommentButton(o)}}}})()})(); \ No newline at end of file +(()=>{var e={144(e,t,r){"use strict";var n=r(743),o=r(621),i=r(76),a=r(119);e.exports=a||n.call(i,o)},621(e){"use strict";e.exports=Function.prototype.apply},76(e){"use strict";e.exports=Function.prototype.call},126(e,t,r){"use strict";var n=r(743),o=r(675),i=r(76),a=r(144);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new o("a function is required");return a(n,i,e)}},119(e){"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},176(e,t,r){"use strict";var n,o=r(126),i=r(795);try{n=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var a=!!n&&i&&i(Object.prototype,"__proto__"),s=Object,c=s.getPrototypeOf;e.exports=a&&"function"==typeof a.get?o([a.get]):"function"==typeof c&&function(e){return c(null==e?e:s(e))}},237(e){"use strict";e.exports=EvalError},383(e){"use strict";e.exports=Error},290(e){"use strict";e.exports=RangeError},538(e){"use strict";e.exports=ReferenceError},68(e){"use strict";e.exports=SyntaxError},675(e){"use strict";e.exports=TypeError},345(e){"use strict";e.exports=URIError},612(e){"use strict";e.exports=Object},353(e){"use strict";var t=Object.prototype.toString,r=Math.max,n=function(e,t){for(var r=[],n=0;n-1e3&&e<1e3||S.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-A(-e):A(e);if(n!==e){var o=String(n),i=b.call(t,o.length+1);return v.call(o,r,"$&_")+"."+v.call(v.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(t,r,"$&_")}var k=r(634),I=k.custom,F=H(I)?I:null,U={__proto__:null,double:'"',single:"'"},B={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function M(e,t,r){var n=r.quoteStyle||t,o=U[n];return o+e+o}function q(e){return v.call(String(e),/"/g,""")}function W(e){return!C||!("object"==typeof e&&(C in e||void 0!==e[C]))}function z(e){return"[object Array]"===V(e)&&W(e)}function $(e){return"[object RegExp]"===V(e)&&W(e)}function H(e){if(T)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!P)return!1;try{return P.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,o,s){var c=n||{};if(J(c,"quoteStyle")&&!J(U,c.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(J(c,"maxStringLength")&&("number"==typeof c.maxStringLength?c.maxStringLength<0&&c.maxStringLength!==1/0:null!==c.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var m=!J(c,"customInspect")||c.customInspect;if("boolean"!=typeof m&&"symbol"!==m)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(J(c,"indent")&&null!==c.indent&&"\t"!==c.indent&&!(parseInt(c.indent,10)===c.indent&&c.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(J(c,"numericSeparator")&&"boolean"!=typeof c.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=c.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return Q(t,c);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var S=String(t);return w?D(t,S):S}if("bigint"==typeof t){var A=String(t)+"n";return w?D(t,A):A}var j=void 0===c.depth?5:c.depth;if(void 0===o&&(o=0),o>=j&&j>0&&"object"==typeof t)return z(t)?"[Array]":"[Object]";var I,B=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=_.call(Array(e.indent+1)," ")}return{base:r,prev:_.call(Array(t+1),r)}}(c,o);if(void 0===s)s=[];else if(G(s,t)>=0)return"[Circular]";function K(t,r,n){if(r&&(s=x.call(s)).push(r),n){var i={depth:c.depth};return J(c,"quoteStyle")&&(i.quoteStyle=c.quoteStyle),e(t,i,o+1,s)}return e(t,c,o+1,s)}if("function"==typeof t&&!$(t)){var X=function(e){if(e.name)return e.name;var t=g.call(h.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),ne=re(t,K);return"[Function"+(X?": "+X:" (anonymous)")+"]"+(ne.length>0?" { "+_.call(ne,", ")+" }":"")}if(H(t)){var oe=T?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):P.call(t);return"object"!=typeof t||T?oe:Z(oe)}if((I=t)&&"object"==typeof I&&("undefined"!=typeof HTMLElement&&I instanceof HTMLElement||"string"==typeof I.nodeName&&"function"==typeof I.getAttribute)){for(var ie="<"+O.call(String(t.nodeName)),ae=t.attributes||[],se=0;se"}if(z(t)){if(0===t.length)return"[]";var ce=re(t,K);return B&&!function(e){for(var t=0;t=0)return!1;return!0}(ce)?"["+te(ce,B)+"]":"[ "+_.call(ce,", ")+" ]"}if(function(e){return"[object Error]"===V(e)&&W(e)}(t)){var le=re(t,K);return"cause"in Error.prototype||!("cause"in t)||N.call(t,"cause")?0===le.length?"["+String(t)+"]":"{ ["+String(t)+"] "+_.call(le,", ")+" }":"{ ["+String(t)+"] "+_.call(E.call("[cause]: "+K(t.cause),le),", ")+" }"}if("object"==typeof t&&m){if(F&&"function"==typeof t[F]&&k)return k(t,{depth:j-o});if("symbol"!==m&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{l.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ue=[];return a&&a.call(t,function(e,r){ue.push(K(r,t,!0)+" => "+K(e,t))}),ee("Map",i.call(t),ue,B)}if(function(e){if(!l||!e||"object"!=typeof e)return!1;try{l.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var fe=[];return u&&u.call(t,function(e){fe.push(K(e,t))}),ee("Set",l.call(t),fe,B)}if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Y("WeakMap");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Y("WeakSet");if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{return d.call(e),!0}catch(e){}return!1}(t))return Y("WeakRef");if(function(e){return"[object Number]"===V(e)&&W(e)}(t))return Z(K(Number(t)));if(function(e){if(!e||"object"!=typeof e||!R)return!1;try{return R.call(e),!0}catch(e){}return!1}(t))return Z(K(R.call(t)));if(function(e){return"[object Boolean]"===V(e)&&W(e)}(t))return Z(y.call(t));if(function(e){return"[object String]"===V(e)&&W(e)}(t))return Z(K(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==r.g&&t===r.g)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===V(e)&&W(e)}(t)&&!$(t)){var pe=re(t,K),de=L?L(t)===Object.prototype:t instanceof Object||t.constructor===Object,ye=t instanceof Object?"":"null prototype",me=!de&&C&&Object(t)===t&&C in t?b.call(V(t),8,-1):ye?"Object":"",he=(de||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(me||ye?"["+_.call(E.call([],me||[],ye||[]),": ")+"] ":"");return 0===pe.length?he+"{}":B?he+"{"+te(pe,B)+"}":he+"{ "+_.call(pe,", ")+" }"}return String(t)};var K=Object.prototype.hasOwnProperty||function(e){return e in this};function J(e,t){return K.call(e,t)}function V(e){return m.call(e)}function G(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;rt.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Q(b.call(e,0,t.maxStringLength),t)+n}var o=B[t.quoteStyle||"single"];return o.lastIndex=0,M(v.call(v.call(e,o,"\\$1"),/[\x00-\x1f]/g,X),"single",t)}function X(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":"")+w.call(t.toString(16))}function Z(e){return"Object("+e+")"}function Y(e){return e+" { ? }"}function ee(e,t,r,n){return e+" ("+t+") {"+(n?te(r,n):_.call(r,", "))+"}"}function te(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+_.call(e,","+r)+"\n"+t.prev}function re(e,t){var r=z(e),n=[];if(r){n.length=e.length;for(var o=0;o{var t;return()=>{if(e){var r=e;e=0,t={exports:{}},r.call(t.exports,t,t.exports)}return t.exports}},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.dn=e=>{var t=Object.getOwnPropertyDescriptor(e,"name");(!t||!t.writable&&t.configurable)&&Object.defineProperty(e,"name",{value:"default",configurable:!0})},(()=>{"use strict";var e=r.cw(function(e,t){var n=o(),i=r(126),a=i([n("%String.prototype.indexOf%")]);e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&a(e,".prototype.")>-1?i([r]):r}}),t=r.cw(function(e,t){var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch(e){r=!1}e.exports=r}),n=()=>r(675),o=r.cw(function(e,o){var b,v=r(612),w=r(383),O=r(237),S=r(290),E=r(538),_=r(68),x=n(),A=r(345),R=f(),j=p(),P=d(),T=y(),C=m(),N=h(),L=g(),D=Function,k=function(e){try{return D('"use strict"; return ('+e+").constructor;")()}catch(e){}},I=c(),F=t(),U=function(){throw new x},B=I?function(){try{return U}catch(e){try{return I(arguments,"callee").get}catch(e){return U}}}():U,M=l()(),q=s(),W=i(),z=a(),$=r(621),H=r(76),K={},J="undefined"!=typeof Uint8Array&&q?q(Uint8Array):b,V={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?b:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?b:ArrayBuffer,"%ArrayIteratorPrototype%":M&&q?q([][Symbol.iterator]()):b,"%AsyncFromSyncIteratorPrototype%":b,"%AsyncFunction%":K,"%AsyncGenerator%":K,"%AsyncGeneratorFunction%":K,"%AsyncIteratorPrototype%":K,"%Atomics%":"undefined"==typeof Atomics?b:Atomics,"%BigInt%":"undefined"==typeof BigInt?b:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?b:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?b:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?b:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":w,"%eval%":eval,"%EvalError%":O,"%Float16Array%":"undefined"==typeof Float16Array?b:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?b:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?b:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?b:FinalizationRegistry,"%Function%":D,"%GeneratorFunction%":K,"%Int8Array%":"undefined"==typeof Int8Array?b:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?b:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?b:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":M&&q?q(q([][Symbol.iterator]())):b,"%JSON%":"object"==typeof JSON?JSON:b,"%Map%":"undefined"==typeof Map?b:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&M&&q?q((new Map)[Symbol.iterator]()):b,"%Math%":Math,"%Number%":Number,"%Object%":v,"%Object.getOwnPropertyDescriptor%":I,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?b:Promise,"%Proxy%":"undefined"==typeof Proxy?b:Proxy,"%RangeError%":S,"%ReferenceError%":E,"%Reflect%":"undefined"==typeof Reflect?b:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?b:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&M&&q?q((new Set)[Symbol.iterator]()):b,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?b:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":M&&q?q(""[Symbol.iterator]()):b,"%Symbol%":M?Symbol:b,"%SyntaxError%":_,"%ThrowTypeError%":B,"%TypedArray%":J,"%TypeError%":x,"%Uint8Array%":"undefined"==typeof Uint8Array?b:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?b:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?b:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?b:Uint32Array,"%URIError%":A,"%WeakMap%":"undefined"==typeof WeakMap?b:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?b:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?b:WeakSet,"%Function.prototype.call%":H,"%Function.prototype.apply%":$,"%Object.defineProperty%":F,"%Object.getPrototypeOf%":W,"%Math.abs%":R,"%Math.floor%":j,"%Math.max%":P,"%Math.min%":T,"%Math.pow%":C,"%Math.round%":N,"%Math.sign%":L,"%Reflect.getPrototypeOf%":z};if(q)try{null.error}catch(e){var G=q(q(e));V["%Error.prototype%"]=G}var Q=function e(t){var r;if("%AsyncFunction%"===t)r=k("async function () {}");else if("%GeneratorFunction%"===t)r=k("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=k("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&q&&(r=q(o.prototype))}return V[t]=r,r},X={__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"]},Z=r(743),Y=u(),ee=Z.call(H,Array.prototype.concat),te=Z.call($,Array.prototype.splice),re=Z.call(H,String.prototype.replace),ne=Z.call(H,String.prototype.slice),oe=Z.call(H,RegExp.prototype.exec),ie=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ae=/\\(\\)?/g,se=function(e,t){var r,n=e;if(Y(X,n)&&(n="%"+(r=X[n])[0]+"%"),Y(V,n)){var o=V[n];if(o===K&&(o=Q(n)),void 0===o&&!t)throw new x("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new _("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new x("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new x('"allowMissing" argument must be a boolean');if(null===oe(/^%?[^%]*%?$/,e))throw new _("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=ne(e,0,1),r=ne(e,-1);if("%"===t&&"%"!==r)throw new _("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new _("invalid intrinsic syntax, expected opening `%`");var n=[];return re(e,ie,function(e,t,r,o){n[n.length]=r?re(o,ae,"$1"):t||e}),n}(e),n=r.length>0?r[0]:"",o=se("%"+n+"%",t),i=o.name,a=o.value,s=!1,c=o.alias;c&&(n=c[0],te(r,ee([0,1],c)));for(var l=1,u=!0;l=r.length){var y=I(a,f);a=(u=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:a[f]}else u=Y(a,f),a=a[f];u&&!s&&(V[i]=a)}}return a}}),i=()=>r(64),a=()=>r(648),s=()=>r(628),c=()=>r(795),l=()=>r(39),u=()=>r(957),f=()=>r(514),p=()=>r(968),d=()=>r(188),y=()=>r(2),m=()=>r(880),h=()=>r(414),g=()=>r(93),b=()=>r(859),v=r.cw(function(e,t){var r=String.prototype.replace,n=/%20/g,o="RFC3986";e.exports={default:o,formatters:{RFC1738:function(e){return r.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:o}}),w=r.cw(function(e,t){var r=S(),n=O(),o=v();e.exports={formats:o,parse:n,stringify:r}}),O=r.cw(function(e,t){var r=E(),n=Object.prototype.hasOwnProperty,o=Array.isArray,i={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:r.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},a=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},s=function(e,t,r){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1){if(t.throwOnLimitExceeded)for(var n=0,o=e.indexOf(",");o>-1;){if((n+=1)>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");o=e.indexOf(",",o+1)}return e.split(",")}if(t.throwOnLimitExceeded&&r>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},c=function(e,t,o,i){if(e){var a=function(e,t){var r=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(t.depth<=0){if(!t.plainObjects&&n.call(Object.prototype,r)&&!t.allowPrototypes)return;return[r]}var o=[],i=r.indexOf("["),a=i>=0?r.slice(0,i):r;if(a){if(!t.plainObjects&&n.call(Object.prototype,a)&&!t.allowPrototypes)return;o[o.length]=a}for(var s=r.length,c=i,l=0;c>=0&&l=0){if(!0===t.strictDepth)throw new RangeError("Input depth exceeded depth option of "+t.depth+" and strictDepth is true");o[o.length]="["+r.slice(c)+"]"}return o}(e,o);if(a)return function(e,t,n,o){var i=0;if(e.length>0&&"[]"===e[e.length-1]){var a=e.slice(0,-1).join("");i=Array.isArray(t)&&t[a]?t[a].length:0}for(var c=o?t:s(t,n,i),l=e.length-1;l>=0;--l){var u,f=e[l];if("[]"===f&&n.parseArrays)u=r.isOverflow(c)?c:n.allowEmptyArrays&&(""===c||n.strictNullHandling&&null===c)?[]:r.combine([],c,n.arrayLimit,n.plainObjects,n.throwOnLimitExceeded);else{u=n.plainObjects?{__proto__:null}:{};var p="["===f.charAt(0)&&"]"===f.charAt(f.length-1)?f.slice(1,-1):f,d=n.decodeDotInKeys?p.replace(/%2E/g,"."):p,y=parseInt(d,10),m=!isNaN(y)&&f!==d&&String(y)===d&&y>=0&&n.parseArrays;if(n.parseArrays||""!==d)if(m&&yu)throw new RangeError("Parameter limit exceeded. Only "+u+" parameter"+(1===u?"":"s")+" allowed.");var p,d=-1,y=t.charset;if(t.charsetSentinel)for(p=0;p-1&&(h=o(h)?[h]:h),t.comma&&o(h)&&h.length>t.arrayLimit&&(h=r.combine([],h,t.arrayLimit,t.plainObjects,t.throwOnLimitExceeded)),null!==m){var w=n.call(c,m);w&&("combine"===t.duplicates||g.indexOf("[]=")>-1)?c[m]=r.combine(c[m],h,t.arrayLimit,t.plainObjects,t.throwOnLimitExceeded):w&&"last"!==t.duplicates||(c[m]=h)}}return c}(e,l):e,f=l.plainObjects?{__proto__:null}:{},p=Object.keys(u),d=0;dx)throw new RangeError("Input depth exceeded depth option of "+x);for(var j,P=_,T=0,C=!1;void 0!==(P=P.get(d))&&!C;){var N=P.get(t);if(T+=1,void 0!==N){if(N===T)throw new RangeError("Cyclic object value");C=!0}void 0===P.get(d)&&(T=0)}if((R="function"==typeof h?h(o,R):R)instanceof Date?R=v(R):"comma"===i&&s(R)&&(R=n.maybeMap(R,function(e){return e instanceof Date?v(e):e})),null===R){if(u)return O(m&&!S?m(o,p.encoder,E,"key",w):o);R=""}if("string"==typeof(j=R)||"number"==typeof j||"boolean"==typeof j||"symbol"==typeof j||"bigint"==typeof j||n.isBuffer(R))return m?[O(S?o:m(o,p.encoder,E,"key",w))+"="+O(m(R,p.encoder,E,"value",w))]:[O(o)+"="+O(String(R))];var L,D=[];if(void 0===R)return D;if("comma"===i&&s(R))S&&m&&(R=n.maybeMap(R,function(e){return null==e?e:m(e)})),L=[{value:R.length>0?R.join(",")||null:void 0}];else if(s(h))L=h;else{var k=Object.keys(R);L=g?k.sort(g):k}var I=y?String(o).replace(/\./g,"%2E"):String(o),F=a&&s(R)&&1===R.length?I+"[]":I;if(c&&s(R)&&0===R.length&&0===Object.keys(R).length)return F+"[]";for(var U=0;U0?S+O:""}}),E=r.cw(function(e,r){var n=v(),o=A(),i=t(),a=Object.prototype.hasOwnProperty,s=Array.isArray,c=o(),l=function(e,t){return c.set(e,t),e},u=function(e){return c.has(e)},f=function(e){return c.get(e)},p=function(e,t){c.set(e,t)},d=function(){for(var e=[],t=0;t<256;++t)e[e.length]="%"+((t<16?"0":"")+t.toString(16)).toUpperCase();return e}(),y=function(e,t){for(var r=t&&t.plainObjects?{__proto__:null}:{},n=0;nr){if(o)throw new RangeError("Array limit exceeded. Only "+r+" element"+(1===r?"":"s")+" allowed in an array.");return l(y(d,{plainObjects:n}),d.length-1)}return d},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=o(),n=0;n1;){var t=e.pop(),r=t.obj[t.prop];if(s(r)){for(var n=[],o=0;o=h?a.slice(c,c+h):a;if(c+h=55296&&u<=56319&&(l=l.slice(0,-1),c-=1)}for(var f=[],p=0;p=48&&y<=57||y>=65&&y<=90||y>=97&&y<=122||i===n.RFC1738&&(40===y||41===y)?f[f.length]=l.charAt(p):y<128?f[f.length]=d[y]:y<2048?f[f.length]=d[192|y>>6]+d[128|63&y]:y<55296||y>=57344?f[f.length]=d[224|y>>12]+d[128|y>>6&63]+d[128|63&y]:(p+=1,y=65536+((1023&y)<<10|1023&l.charCodeAt(p)),f[f.length]=d[240|y>>18]+d[128|y>>12&63]+d[128|y>>6&63]+d[128|63&y])}s+=f.join("")}return s},isBuffer:function(e){return!(!e||"object"!=typeof e||!e.constructor||"function"!=typeof e.constructor.isBuffer||!e.constructor.isBuffer(e))},isOverflow:u,isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},markOverflow:l,maybeMap:function(e,t){if(s(e)){for(var r=[],n=0;n=n.arrayLimit){if(n.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+n.arrayLimit+" element"+(1===n.arrayLimit?"":"s")+" allowed in an array.");return l(y(t.concat(r),n),o)}t[o]=r}else{if(!t||"object"!=typeof t)return[t,r];if(u(t)){var i=f(t)+1;t[i]=r,p(t,i)}else{if(n&&n.strictMerge)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!a.call(Object.prototype,r))&&(t[r]=!0)}}return t}if(!t||"object"!=typeof t){if(u(r)){for(var c=Object.keys(r),d=n&&n.plainObjects?{__proto__:null,0:t}:{0:t},h=0;hn.arrayLimit){if(n.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+n.arrayLimit+" element"+(1===n.arrayLimit?"":"s")+" allowed in an array.");return l(y(g,n),g.length-1)}return g}var b=t;if(s(t)&&!s(r)&&(b=y(t,n)),s(t)&&s(r)){if(r.forEach(function(r,o){if(a.call(t,o)){var i=t[o];i&&"object"==typeof i&&r&&"object"==typeof r?t[o]=e(i,r,n):t[t.length]=r}else t[o]=r}),n&&"number"==typeof n.arrayLimit&&t.length>n.arrayLimit){if(n.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+n.arrayLimit+" element"+(1===n.arrayLimit?"":"s")+" allowed in an array.");return l(y(t,n),t.length-1)}return t}return Object.keys(r).reduce(function(t,o){var i=r[o];if(a.call(t,o)?m(t,o,e(t[o],i,n)):m(t,o,i),u(r)&&!u(t)&&l(t,f(r)),u(t)){var s=parseInt(o,10);String(s)===o&&s>=0&&s>f(t)&&p(t,s)}return t},b)}}}),_=r.cw(function(t,r){var i=o(),a=e(),s=b(),c=n(),l=i("%Map%",!0),u=a("Map.prototype.get",!0),f=a("Map.prototype.set",!0),p=a("Map.prototype.has",!0),d=a("Map.prototype.delete",!0),y=a("Map.prototype.size",!0);t.exports=!!l&&function(){var e,t={assert:function(e){if(!t.has(e))throw new c("Side channel does not contain "+s(e))},delete:function(t){if(e){var r=d(e,t);return 0===y(e)&&(e=void 0),r}return!1},get:function(t){if(e)return u(e,t)},has:function(t){return!!e&&p(e,t)},set:function(t,r){e||(e=new l),f(e,t,r)}};return t}}),x=r.cw(function(t,r){var i=o(),a=e(),s=b(),c=_(),l=n(),u=i("%WeakMap%",!0),f=a("WeakMap.prototype.get",!0),p=a("WeakMap.prototype.set",!0),d=a("WeakMap.prototype.has",!0),y=a("WeakMap.prototype.delete",!0);t.exports=u?function(){var e,t,r={assert:function(e){if(!r.has(e))throw new l("Side channel does not contain "+s(e))},delete:function(r){if(u&&r&&("object"==typeof r||"function"==typeof r)){if(e)return y(e,r)}else if(c&&t)return t.delete(r);return!1},get:function(r){return u&&r&&("object"==typeof r||"function"==typeof r)&&e?f(e,r):t&&t.get(r)},has:function(r){return u&&r&&("object"==typeof r||"function"==typeof r)&&e?d(e,r):!!t&&t.has(r)},set:function(r,n){u&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new u),p(e,r,n)):c&&(t||(t=c()),t.set(r,n))}};return r}:c}),A=r.cw(function(e,t){var o=n(),i=b(),a=r(803),s=_(),c=x()||s||a;e.exports=function(){var e,t={assert:function(e){if(!t.has(e)){var r=e&&Object(e)===e?"the given object key":i(e);throw new o("Side channel does not contain "+r)}},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,r){e||(e=c()),e.set(t,r)}};return t}}),R={};function j(e,t){return function(){return e.apply(t,arguments)}}r.r(R),r.d(R,{hasBrowserEnv:()=>lt,hasStandardBrowserEnv:()=>ft,hasStandardBrowserWebWorkerEnv:()=>pt,navigator:()=>ut,origin:()=>dt});const{toString:P}=Object.prototype,{getPrototypeOf:T}=Object,{iterator:C,toStringTag:N}=Symbol,L=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),D=e=>"string"==typeof e&&("__proto__"===e||"constructor"===e||"prototype"===e),k=(e,t,r)=>e===Object.prototype||!r&&null===t,I=(e,t)=>{let r=e;const n=[];for(;null!=r;){if(-1!==n.indexOf(r))return!1;n.push(r);const o=T(r);if(k(r,o,r===e))return!1;if(L(r,t))return!0;r=o}return!1},F=(U=Object.create(null),e=>{const t=P.call(e);return U[t]||(U[t]=t.slice(8,-1).toLowerCase())});var U;const B=e=>(e=e.toLowerCase(),t=>F(t)===e),M=e=>t=>typeof t===e,{isArray:q}=Array,W=M("undefined");function z(e){return null!==e&&!W(e)&&null!==e.constructor&&!W(e.constructor)&&K(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const $=B("ArrayBuffer"),H=M("string"),K=M("function"),J=M("number"),V=e=>null!==e&&"object"==typeof e,G=e=>{if(!V(e))return!1;const t=T(e);return!(null!==t&&t!==Object.prototype&&null!==T(t)||I(e,N)||I(e,C))},Q=B("Date"),X=B("File"),Z=B("Blob"),Y=B("FileList"),ee=B("Set"),te="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==r.g?r.g:{},re=void 0!==te.FormData?te.FormData:void 0,ne=B("URLSearchParams"),[oe,ie,ae,se]=["ReadableStream","Request","Response","Headers"].map(B);function ce(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,o;if("object"!=typeof e&&(e=[e]),q(e))for(n=0,o=e.length;n0;)if(n=r[o],t===n.toLowerCase())return n;return null}const ue="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:r.g,fe=e=>!W(e)&&e!==ue,pe=(de="undefined"!=typeof Uint8Array&&T(Uint8Array),e=>de&&e instanceof de);var de;const ye=B("HTMLFormElement"),{propertyIsEnumerable:me}=Object.prototype,he=B("RegExp"),ge=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};ce(r,(r,o)=>{let i;!1!==(i=t(r,o,e))&&(n[o]=i||r)}),Object.defineProperties(e,n)},be=B("AsyncFunction"),ve=(we="function"==typeof setImmediate,Oe=K(ue.postMessage),we?setImmediate:Oe?(Se=`axios@${Math.random()}`,Ee=[],ue.addEventListener("message",({source:e,data:t})=>{e===ue&&t===Se&&Ee.length&&Ee.shift()()},!1),e=>{Ee.push(e),ue.postMessage(Se,"*")}):e=>setTimeout(e));var we,Oe,Se,Ee;const _e="undefined"!=typeof queueMicrotask?queueMicrotask.bind(ue):"undefined"!=typeof process&&process.nextTick||ve,xe=e=>null!=e&&K(e[C]),Ae={isArray:q,isArrayBuffer:$,isBuffer:z,isFormData:e=>{if(!e)return!1;if(re&&e instanceof re)return!0;const t=T(e);if(!t||t===Object.prototype)return!1;if(!K(e.append))return!1;const r=F(e);return"formdata"===r||"object"===r&&K(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&$(e.buffer),t},isString:H,isNumber:J,isBoolean:e=>!0===e||!1===e,isObject:V,isPlainObject:G,isEmptyObject:e=>{if(!V(e)||z(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:oe,isRequest:ie,isResponse:ae,isHeaders:se,isUndefined:W,isDate:Q,isFile:X,isReactNativeBlob:e=>!(!e||void 0===e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:Z,isRegExp:he,isFunction:K,isStream:e=>V(e)&&K(e.pipe),isURLSearchParams:ne,isTypedArray:pe,isFileList:Y,forEach:ce,merge:function e(...t){const{caseless:r,skipUndefined:n}=fe(this)&&this||{},o={},i=(t,i)=>{if("__proto__"===i||"constructor"===i||"prototype"===i)return;const a=r&&"string"==typeof i&&le(o,i)||i,s=L(o,a)?o[a]:void 0;G(s)&&G(t)?o[a]=e(s,t):G(t)?o[a]=e({},t):q(t)?o[a]=t.slice():n&&W(t)||(o[a]=t)};for(let e=0,r=t.length;e(ce(t,(t,n)=>{r&&K(t)?Object.defineProperty(e,n,{__proto__:null,value:j(t,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,n,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],n&&!n(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==r&&T(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:F,kindOfTest:B,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(q(e))return e;let t=e.length;if(!J(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[C]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:ye,hasOwnProperty:L,hasOwnProp:L,hasOwnInPrototypeChain:I,getSafeProp:(e,t)=>null!=e&&I(e,t)?e[t]:void 0,toSafeFlatObject:e=>{if(null==e||"object"!=typeof e&&"function"!=typeof e)return e;const t=T(e);if(null===t&&(e=>{if(!Object.isExtensible(e))return!1;const t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&t.push(...Object.getOwnPropertySymbols(e)),t.every(t=>{if(D(t))return!1;const r=Object.getOwnPropertyDescriptor(e,t);return!!r&&r.configurable&&!0===r.writable})})(e))return e;const r=Object.create(null),n=Object.create(null),o=[];let i=e;for(;null!=i&&-1===o.indexOf(i);){o.push(i);const a=i===e?t:T(i);if(k(i,a,i===e))break;const s=Object.getOwnPropertyNames(i);Object.getOwnPropertySymbols&&s.push(...Object.getOwnPropertySymbols(i));for(const t of s)D(t)||L(n,t)||(r[t]=e[t],n[t]=!0);i=a}return r},reduceDescriptors:ge,freezeMethods:e=>{ge(e,(t,r)=>{if(K(e)&&["arguments","caller","callee"].includes(r))return!1;const n=e[r];K(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))})},toObjectSet:(e,t)=>{const r={},n=e=>{e.forEach(e=>{r[e]=!0})};return q(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:le,global:ue,isContextDefined:fe,isSpecCompliantForm:function(e){return!!(e&&K(e.append)&&"FormData"===e[N]&&e[C])},toJSONObject:e=>{const t=new WeakSet,r=e=>{if(V(e)){if(t.has(e))return;if(z(e))return e;if(!("toJSON"in e)){let n;if(t.add(e),ee(e)){n=[];for(const t of e){const e=r(t);!W(e)&&n.push(e)}}else n=q(e)?[]:{},ce(e,(e,t)=>{const o=r(e);!W(o)&&(n[t]=o)});return t.delete(e),n}}return e};return r(e)},isAsyncFn:be,isThenable:e=>e&&(V(e)||K(e))&&K(e.then)&&K(e.catch),setImmediate:ve,asap:_e,isIterable:xe,isSafeIterable:e=>null!=e&&I(e,C)&&xe(e)},Re=Ae.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),je=e=>{const t={};let r,n,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),r=e.substring(0,o).trim().toLowerCase(),n=e.substring(o+1).trim();const i=Ae.hasOwnProp(t,r);!r||i&&Ae.hasOwnProp(Re,r)||("set-cookie"===r?i?t[r].push(n):t[r]=[n]:t[r]=i?t[r]+", "+n:n)}),t};r.dn(je);const Pe=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),Te=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Ce(e,t){return Ae.isArray(e)?e.map(e=>Ce(e,t)):function(e){let t=0,r=e.length;for(;tt;){const t=e.charCodeAt(r-1);if(9!==t&&32!==t)break;r-=1}return 0===t&&r===e.length?e:e.slice(t,r)}(String(e).replace(t,""))}function Ne(e){const t=Object.create(null);return Ae.forEach(e.toJSON(),(e,r)=>{t[r]=(e=>Ce(e,Te))(e)}),t}const Le=Symbol("internals");function De(e){return e&&String(e).trim().toLowerCase()}function ke(e){return!1===e||null==e?e:Ae.isArray(e)?e.map(ke):(e=>Ce(e,Pe))(String(e))}const Ie=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function Fe(e){let t=0,r=e.length;for(;tt;){const t=e.charCodeAt(r-1);if(9!==t&&32!==t)break;r-=1}return 0===t&&r===e.length?e:e.slice(t,r)}function Ue(e,t,r,n,o){return Ae.isFunction(n)?n.call(this,t,r):(o&&(t=r),Ae.isString(t)?Ae.isString(n)?-1!==t.indexOf(n):Ae.isRegExp(n)?n.test(t):void 0:void 0)}class Be{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function o(e,t,r){const o=De(t);if(!o)return;const i=Ae.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||t]=ke(e))}const i=(e,t)=>Ae.forEach(e,(e,r)=>o(e,r,t));if(Ae.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(Ae.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i(je(e),t);else if(Ae.isObject(e)&&Ae.isSafeIterable(e)){let r,n,o=Object.create(null);for(const t of e){if(!Ae.isArray(t))throw new TypeError("Object iterator must return a key-value pair");n=t[0],Ae.hasOwnProp(o,n)?(r=o[n],o[n]=Ae.isArray(r)?[...r,t[1]]:[r,t[1]]):o[n]=t[1]}i(o,t)}else null!=e&&o(t,e,r);return this}get(e,t){if(e=De(e)){const r=Ae.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if(Ae.isFunction(t))return t.call(this,e,r);if(Ae.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=De(e)){const r=Ae.findKey(this,e);return!(!r||void 0===this[r]||t&&!Ue(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function o(e){if(e=De(e)){const o=Ae.findKey(r,e);!o||t&&!Ue(0,r[o],o,t)||(delete r[o],n=!0)}}return Ae.isArray(e)?e.forEach(o):o(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const o=t[r];e&&!Ue(0,this[o],o,e,!0)||(delete this[o],n=!0)}return n}normalize(e){const t=this,r={};return Ae.forEach(this,(n,o)=>{const i=Ae.findKey(r,o);if(i)return t[i]=ke(n),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}(o):String(o).trim();a!==o&&delete t[o],t[a]=ke(n),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Ae.forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&Ae.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){const e=this.get("set-cookie");return Ae.isArray(e)?e:null==e||!1===e?[]:[e]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return function(e){const t=Object.create(null),r=String(e);let n=0,o=!1,i=!1;function a(e){const o=Fe(r.slice(n,e)),i=o.indexOf("=");if(i<1)return;const a=Fe(o.slice(0,i));if(!Ie.test(a))return;const s=a.toLowerCase();if("__proto__"===s||"constructor"===s||"prototype"===s)return;const c=Fe(o.slice(i+1));t[s]=function(e){const t=e.length-1;if(t<1||34!==e.charCodeAt(0)||34!==e.charCodeAt(t))return e;let r="";for(let n=1;n=t))return e;r+=e[n]}return r}(c)}for(let e=0;er.set(e)),r}static accessor(e){const t=(this[Le]=this[Le]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=De(e);t[n]||(function(e,t){const r=Ae.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{__proto__:null,value:function(e,r,o){return this[n].call(this,t,e,r,o)},configurable:!0})})}(r,e),t[n]=!0)}return Ae.isArray(e)?e.forEach(n):n(e),this}}Be.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Ae.reduceDescriptors(Be.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),Ae.freezeMethods(Be);const Me=Be,qe="[REDACTED ****]";function We(e){try{return String(e)}catch(e){return""}}class ze extends Error{static from(e,t,r,n,o,i){let a=e.message;!a&&Ae.isArray(e.errors)&&e.errors.length&&(a=function(e){return e.errors.map(e=>{try{return e&&e.message?We(e.message):We(e)}catch(e){return""}}).filter(Boolean).join("; ")||e.name||"AggregateError"}(e));const s=new ze(a,t||e.code,r,n,o);return Object.defineProperty(s,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),s.name=e.name,null!=e.status&&null==s.status&&(s.status=e.status),i&&Object.assign(s,i),s}constructor(e,t,r,n,o){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status)}toJSON(){const e=this.config,t=e&&Ae.hasOwnProp(e,"redact")?e.redact:void 0,r=Ae.isArray(t)&&t.length>0?function(e,t){const r=new Set(t.map(e=>String(e).toLowerCase())),n=[],o=e=>{if(null===e||"object"!=typeof e)return e;if(Ae.isBuffer(e))return e;if(-1!==n.indexOf(e))return;let t;if(e instanceof Me&&(e=e.toJSON()),n.push(e),Ae.isArray(e))t=[],e.forEach((e,r)=>{const n=o(e);Ae.isUndefined(n)||(t[r]=n)});else{if(!Ae.isPlainObject(e)&&function(e){if(Ae.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(Ae.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(e))return n.pop(),e;t=Object.create(null);for(const[n,i]of Object.entries(e)){const e=r.has(n.toLowerCase())?qe:o(i);Ae.isUndefined(e)||(t[n]=e)}}return n.pop(),t};return o(e)}(e,t):Ae.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}}ze.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",ze.ERR_BAD_OPTION="ERR_BAD_OPTION",ze.ECONNABORTED="ECONNABORTED",ze.ETIMEDOUT="ETIMEDOUT",ze.ECONNREFUSED="ECONNREFUSED",ze.ERR_NETWORK="ERR_NETWORK",ze.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",ze.ERR_DEPRECATED="ERR_DEPRECATED",ze.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",ze.ERR_BAD_REQUEST="ERR_BAD_REQUEST",ze.ERR_CANCELED="ERR_CANCELED",ze.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",ze.ERR_INVALID_URL="ERR_INVALID_URL",ze.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const $e=ze;function He(e){return Ae.isPlainObject(e)||Ae.isArray(e)}function Ke(e){return Ae.endsWith(e,"[]")?e.slice(0,-2):e}function Je(e,t,r){return e?e.concat(t).map(function(e,t){return e=Ke(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}const Ve=Ae.toFlatObject(Ae,{},null,function(e){return/^is[A-Z]/.test(e)}),Ge=function(e,t,r){if(!Ae.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(e,t)=>{const n=Ae.getSafeProp(r,e);return Ae.isUndefined(n)?t:n},o=n("metaTokens",!0),i=n("visitor")||y,a=n("dots",!1),s=n("indexes",!1),c=n("Blob")||"undefined"!=typeof Blob&&Blob,l=n("maxDepth",100),u=c&&Ae.isSpecCompliantForm(t),f=[];if(!Ae.isFunction(i))throw new TypeError("visitor must be a function");function p(e){if(null===e)return"";if(Ae.isDate(e))return e.toISOString();if(Ae.isBoolean(e))return e.toString();if(!u&&Ae.isBlob(e))throw new $e("Blob is not supported. Use a Buffer instead.");if(Ae.isArrayBuffer(e)||Ae.isTypedArray(e)){if(u&&"function"==typeof c)return new c([e]);throw new $e("Blob is not supported. Use a Buffer instead.",$e.ERR_NOT_SUPPORT)}return e}function d(e){if(e>l)throw new $e("Object is too deeply nested ("+e+" levels). Max depth: "+l,$e.ERR_FORM_DATA_DEPTH_EXCEEDED)}function y(e,r,n){let i=e;if(Ae.isReactNative(t)&&Ae.isReactNativeBlob(e))return t.append(Je(n,r,a),p(e)),!1;if(e&&!n&&"object"==typeof e)if(Ae.endsWith(r,"{}"))r=o?r:r.slice(0,-2),e=function(e){if(l===1/0)return JSON.stringify(e);const t=[];return JSON.stringify(e,function(e,r){if(!Ae.isObject(r))return r;for(;t.length&&t[t.length-1]!==this;)t.pop();return t.push(r),d(1+t.length-1),r})}(e);else if(Ae.isArray(e)&&function(e){return Ae.isArray(e)&&!e.some(He)}(e)||(Ae.isFileList(e)||Ae.endsWith(r,"[]"))&&(i=Ae.toArray(e)))return r=Ke(r),i.forEach(function(e,n){!Ae.isUndefined(e)&&null!==e&&t.append(!0===s?Je([r],n,a):null===s?r:r+"[]",p(e))}),!1;return!!He(e)||(t.append(Je(n,r,a),p(e)),!1)}const m=Object.assign(Ve,{defaultVisitor:y,convertValue:p,isVisitable:He});if(!Ae.isObject(e))throw new TypeError("data must be an object");return function e(r,n,o=0){if(!Ae.isUndefined(r)){if(d(o),-1!==f.indexOf(r))throw new Error("Circular reference detected in "+n.join("."));f.push(r),Ae.forEach(r,function(r,a){!0===(!(Ae.isUndefined(r)||null===r)&&i.call(t,r,Ae.isString(a)?a.trim():a,n,m))&&e(r,n?n.concat(a):[a],o+1)}),f.pop()}}(e),t};function Qe(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function Xe(e,t){this._pairs=[],e&&Ge(e,this,t)}const Ze=Xe.prototype;Ze.append=function(e,t){this._pairs.push([e,t])},Ze.toString=function(e){const t=e?t=>e.call(this,t,Qe):Qe;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};const Ye=Xe;function et(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function tt(e,t,r){if(!t)return e;e=e||"";const n=Ae.isFunction(r)?{serialize:r}:r,o=Ae.getSafeProp(n,"encode")||et,i=Ae.getSafeProp(n,"serialize");let a;if(a=i?i(t,n):Ae.isURLSearchParams(t)?t.toString():new Ye(t,n).toString(o),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}const rt=Symbol("internals");function nt(e){return e?e.length:0}function ot(e){if(e)for(;e.length&&null===e[e.length-1];)e.pop()}function it(e,t){const r=e.handlers,n=nt(r);r!==t.handlersRef?(t.handlersRef=r,t.handlerEntries.clear()):n!==t.handlersLength&&(n?t.handlerEntries.forEach(function(e,n){r[e.index]!==e.handler&&t.handlerEntries.delete(n)}):t.handlerEntries.clear()),t.handlersLength=n}const at=class{constructor(){this.handlers=[],this[rt]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(e,t,r){const n={fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null},o=this[rt];null==this.handlers&&(this.handlers=[]),it(this,o);const i=o.nextId++;return this.handlers.push(n),o.handlerEntries.set(i,{handler:n,index:this.handlers.length-1}),o.handlersLength=this.handlers.length,i}eject(e){const t=this[rt];it(this,t);const r=t.handlerEntries.get(e);if(r){if(t.handlerEntries.delete(e),this.handlers[r.index]!==r.handler)return;this.handlers[r.index]=null,t.iterationDepth||(ot(this.handlers),t.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],it(this,this[rt]))}forEach(e){const t=this[rt];it(this,t),t.iterationDepth++;try{Ae.forEach(this.handlers,function(t){null!==t&&e(t)})}finally{--t.iterationDepth||(it(this,t),ot(this.handlers),t.handlersLength=nt(this.handlers))}}},st={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},ct={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Ye,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},lt="undefined"!=typeof window&&"undefined"!=typeof document,ut="object"==typeof navigator&&navigator||void 0,ft=lt&&(!ut||["ReactNative","NativeScript","NS"].indexOf(ut.product)<0),pt="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,dt=lt&&window.location.href||"http://localhost",yt={...R,...ct};function mt(e){if(e>100)throw new $e("FormData field is too deeply nested ("+e+" levels). Max depth: 100",$e.ERR_FORM_DATA_DEPTH_EXCEEDED)}const ht=function(e){function t(e,r,n,o){mt(o);let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;return i=!i&&Ae.isArray(n)?n.length:i,s?(Ae.hasOwnProp(n,i)?n[i]=Ae.isArray(n[i])?n[i].concat(r):[n[i],r]:n[i]=r,!a):(Ae.hasOwnProp(n,i)&&Ae.isObject(n[i])||(n[i]=[]),t(e,r,n[i],o)&&Ae.isArray(n[i])&&(n[i]=function(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n{t(function(e){const t=[],r=/[^.[\]]+|\[([^.[\]]*)]/g;let n;for(;null!==(n=r.exec(e));)mt(t.length),t.push("[]"===n[0]?"":n[1]||n[0]);return t}(e),n,r,0)}),r}return null},gt=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),bt=(e,t)=>null!=e&&Ae.hasOwnProp(e,t)?e[t]:void 0,vt={transitional:st,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=Ae.isObject(e);if(o&&Ae.isHTMLForm(e)&&(e=new FormData(e)),Ae.isFormData(e))return n?JSON.stringify(ht(e)):e;if(Ae.isArrayBuffer(e)||Ae.isBuffer(e)||Ae.isStream(e)||Ae.isFile(e)||Ae.isBlob(e)||Ae.isReadableStream(e))return e;if(Ae.isArrayBufferView(e))return e.buffer;if(Ae.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){const t=bt(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Ge(e,new yt.classes.URLSearchParams,{visitor:function(e,t,r,n){return yt.isNode&&Ae.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...t})}(e,t).toString();if((i=Ae.isFileList(e))||r.indexOf("multipart/form-data")>-1){const r=bt(this,"env"),n=r&&r.FormData;return Ge(i?{"files[]":e}:e,n&&new n,t)}}return o||n?(t.setContentType("application/json",!1),function(e){if(Ae.isString(e))try{return(0,JSON.parse)(e),Ae.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=bt(this,"transitional")||vt.transitional,r=t&&t.forcedJSONParsing,n=bt(this,"responseType"),o="json"===n;if(Ae.isResponse(e)||Ae.isReadableStream(e))return e;if(e&&Ae.isString(e)&&(r&&!n||o)){const r=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e,bt(this,"parseReviver"))}catch(e){if(r){if("SyntaxError"===e.name)throw $e.from(e,$e.ERR_BAD_RESPONSE,this,null,bt(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:yt.classes.FormData,Blob:yt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ae.forEach(gt,e=>{vt.headers[e]={}});const wt=vt;function Ot(e,t){const r=this||wt,n=t||r,o=Me.from(n.headers);let i=n.data;return Ae.forEach(e,function(e){i=e.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function St(e){return!(!e||!e.__CANCEL__)}const Et=class extends $e{constructor(e,t,r){super(e??"canceled",$e.ERR_CANCELED,t,r),this.name="CanceledError",this.__CANCEL__=!0}};function _t(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new $e("Request failed with status code "+r.status,r.status>=400&&r.status<500?$e.ERR_BAD_REQUEST:$e.ERR_BAD_RESPONSE,r.config,r.request,r)):e(r)}const xt=/[\t\n\r]/g;function At(e){if("string"!=typeof e)return e;let t=0;for(;t{let n=0;const o=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),l=n[a];o||(o=c),r[i]=s,n[i]=c;let u=a,f=0;for(;u!==i;)f+=r[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o{o=i,r=null,n&&(clearTimeout(n),n=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=i?a(e,t):(r=e,n||(n=setTimeout(()=>{n=null,a(r)},i-s)))},()=>r&&a(r),(...e)=>a(e)]}(r=>{if(!r||!Ae.isNumber(r.loaded))return;const i=r.loaded,a=r.lengthComputable?r.total:void 0,s=Math.max(0,null!=a?Math.min(i,a):i),c=Math.max(0,s-n),l=o(c);n=Math.max(n,s),e({loaded:s,total:a,progress:a?s/a:void 0,bytes:c,rate:l||void 0,estimated:l&&a?(a-s)/l:void 0,event:r,lengthComputable:null!=a,[t?"download":"upload"]:!0})},r)},Pt=(e,t)=>{const r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Tt=(e,t=Ae.asap)=>(...r)=>t(()=>e(...r)),Ct=yt.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,yt.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(yt.origin),yt.navigator&&/(msie|trident)/i.test(yt.navigator.userAgent)):()=>!0,Nt=yt.hasStandardBrowserEnv?{write(e,t,r,n,o,i,a){if("undefined"==typeof document)return;const s=[`${e}=${encodeURIComponent(t)}`];Ae.isNumber(r)&&s.push(`expires=${new Date(r).toUTCString()}`),Ae.isString(n)&&s.push(`path=${n}`),Ae.isString(o)&&s.push(`domain=${o}`),!0===i&&s.push("secure"),Ae.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.split(";");for(let r=0;rnull,remove(){}},Lt=/^https?:(?!\/\/)/i;function Dt(e,t){if("string"==typeof e){const r=At(e);if(Lt.test(r))throw new $e(`Invalid URL ${JSON.stringify(function(e){const t=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${qe}@`),r=t.indexOf("#"),n=(-1===r?t:t.slice(0,r)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${qe}`);return-1===r?n:`${n}#${o=t.slice(r+1),o?o.replace(/(^|&)([^=&]*=)?[^&]+/g,(e,t,r="")=>`${t}${r}${qe}`):o}`;var o}(r))}: missing "//" after protocol`,$e.ERR_INVALID_URL,t)}}function kt(e,t,r,n){Dt(t,n);let o=!("string"==typeof(i=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(i));var i;return e&&(o||!1===r)?(Dt(e,n),function(e,t){if(!t)return e;let r=e.length;for(;r>0&&47===e.charCodeAt(r-1);)r--;return e.slice(0,r)+"/"+t.replace(/^\/+/,"")}(e,t)):t}const It=e=>e instanceof Me?{...e}:e;function Ft(e,t){e=e||{},t=t||{};const r=Object.create(null);function n(e,t,r,n){return Ae.isPlainObject(e)&&Ae.isPlainObject(t)?Ae.merge.call({caseless:n},e,t):Ae.isPlainObject(t)?Ae.merge({},t):Ae.isArray(t)?t.slice():t}function o(e,t,r,o){return Ae.isUndefined(t)?Ae.isUndefined(e)?void 0:n(void 0,e,0,o):n(e,t,0,o)}function i(e,t){if(!Ae.isUndefined(t))return n(void 0,t)}function a(e,t){return Ae.isUndefined(t)?Ae.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function s(r,o,i){return Ae.hasOwnProp(t,i)?n(r,o):Ae.hasOwnProp(e,i)?n(void 0,r):void 0}Object.defineProperty(r,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});const c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutErrorMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,allowedSocketPaths:a,responseEncoding:a,validateStatus:s,headers:(e,t,r)=>o(It(e),It(t),0,!0)};var l;return Ae.forEach((l={...e,...t},Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(l).concat(Object.getOwnPropertySymbols(l).filter(e=>Object.getOwnPropertyDescriptor(l,e).enumerable)):Object.keys(l)),function(n){if("__proto__"===n||"constructor"===n||"prototype"===n)return;const i=Ae.hasOwnProp(c,n)?c[n]:o,a=i(Ae.hasOwnProp(e,n)?e[n]:void 0,Ae.hasOwnProp(t,n)?t[n]:void 0,n);Ae.isUndefined(a)&&i!==s||(r[n]=a)}),Ae.hasOwnProp(t,"validateStatus")&&Ae.isUndefined(t.validateStatus)&&!1===function(r){const n=Ae.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!Ae.isUndefined(n)){if(!Ae.isPlainObject(n))return;if(Ae.hasOwnProp(n,r))return n[r]}const o=Ae.hasOwnProp(e,"transitional")?e.transitional:void 0;if(Ae.isPlainObject(o)&&Ae.hasOwnProp(o,r))return o[r]}("validateStatusUndefinedResolves")&&(Ae.hasOwnProp(e,"validateStatus")?r.validateStatus=n(void 0,e.validateStatus):delete r.validateStatus),r}const Ut=["content-type","content-length"],Bt=function(e){const t=Ft({},e),r=e=>Ae.hasOwnProp(t,e)?t[e]:void 0,n=r("data");let o=r("withXSRFToken");const i=r("xsrfHeaderName"),a=r("xsrfCookieName");let s=r("headers");const c=r("auth"),l=r("baseURL"),u=r("allowAbsoluteUrls"),f=r("url");if(t.headers=s=Me.from(s),t.url=tt(kt(l,f,u,t),r("params"),r("paramsSerializer")),c){const t=Ae.getSafeProp(c,"username")||"",r=Ae.getSafeProp(c,"password")||"";try{s.set("Authorization","Basic "+btoa(t+":"+(r?encodeURIComponent(r).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))):"")))}catch(t){throw $e.from(t,$e.ERR_BAD_OPTION_VALUE,e)}}if(Ae.isFormData(n)){const e=Ae.getSafeProp(n,"getHeaders");yt.hasStandardBrowserEnv||yt.hasStandardBrowserWebWorkerEnv||Ae.isReactNative(n)?s.setContentType(void 0):Ae.isFunction(e)&&function(e,t,r){"content-only"===r?Object.entries(t||{}).forEach(([t,r])=>{Ut.includes(t.toLowerCase())&&e.set(t,r)}):e.set(t)}(s,e.call(n),r("formDataHeaderPolicy"))}if(yt.hasStandardBrowserEnv&&(Ae.isFunction(o)&&(o=o(t)),!0===o||null==o&&Ct(t.url))){const e=i&&a&&Nt.read(a);e&&s.set(i,e)}return t},Mt="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){const n=Bt(e);let o=n.data;const i=Me.from(n.headers).normalize();let a,s,c,l,u,f,{responseType:p,onUploadProgress:d,onDownloadProgress:y}=n;function m(){l&&l(),u&&u(),n.cancelToken&&n.cancelToken.unsubscribe(a),n.signal&&n.signal.removeEventListener("abort",a)}let h=new XMLHttpRequest;function g(o){if(!h)return;if(!(0!==h.status||"file"===(Rt(At(n.url))||Rt(yt.origin))||h.responseURL&&h.responseURL.startsWith("file:")))return r(new $e("Request aborted",$e.ECONNABORTED,e,h)),m(),void(h=null);try{o?f&&f(o):u&&u()}catch(e){setTimeout(()=>{throw e})}if(!h)return;const i=Me.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());_t(function(e){t(e),m()},function(e){r(e),m()},{data:p&&"text"!==p&&"json"!==p?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:i,config:e,request:h}),h=null}h.open(n.method.toUpperCase(),n.url,!0),h.timeout=n.timeout,"onloadend"in h?h.onloadend=g:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&h.responseURL.startsWith("file:"))&&setTimeout(g)},h.onabort=function(){h&&(r(new $e("Request aborted",$e.ECONNABORTED,e,h)),m(),h=null)},h.onerror=function(t){const n=t&&t.message?t.message:"Network Error",o=new $e(n,$e.ERR_NETWORK,e,h);o.event=t||null,r(o),m(),h=null},h.ontimeout=function(){let t=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const o=n.transitional||st;n.timeoutErrorMessage&&(t=n.timeoutErrorMessage),r(new $e(t,o.clarifyTimeoutError?$e.ETIMEDOUT:$e.ECONNABORTED,e,h)),m(),h=null},void 0===o&&i.setContentType(null),"setRequestHeader"in h&&Ae.forEach(Ne(i),function(e,t){h.setRequestHeader(t,e)}),Ae.isUndefined(n.withCredentials)||(h.withCredentials=!!n.withCredentials),p&&"json"!==p&&(h.responseType=n.responseType),y&&([c,u,f]=jt(y,!0),h.addEventListener("progress",c)),d&&h.upload&&([s,l]=jt(d),h.upload.addEventListener("progress",s),h.upload.addEventListener("loadend",l)),(n.cancelToken||n.signal)&&(a=t=>{h&&(r(!t||t.type?new Et(null,e,h):t),h.abort(),m(),h=null)},n.cancelToken&&n.cancelToken.subscribe(a),n.signal&&(n.signal.aborted?a():n.signal.addEventListener("abort",a)));const b=Rt(n.url);if(b&&!yt.protocols.includes(b))return r(new $e("Unsupported protocol "+b+":",$e.ERR_BAD_REQUEST,e)),void m();h.send(o||null)})},qt=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const r=new AbortController;let n=!1;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof $e?t:new Et(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,o(new $e(`timeout of ${t}ms exceeded`,$e.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>{n||(e.aborted?o.call(e):e.addEventListener("abort",o,{once:!0}))});const{signal:s}=r;return s.unsubscribe=()=>Ae.asap(a),s},Wt=function*(e,t){let r=e.byteLength;if(!t||r{const o=async function*(e,t){for await(const r of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}}(e))yield*Wt(r,t)}(e,t);let i,a=0,s=e=>{i||(i=!0,n&&n(e))};return new ReadableStream({async pull(e){try{const{done:t,value:n}=await o.next();if(t)return s(),void e.close();let i=n.byteLength;if(r){let e=a+=i;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},$t=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,Ht=(e,t,r)=>t+2e<=57?e-48:(223&e)-55,Jt=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||43===e||47===e||45===e||95===e,Vt=e=>9===e||10===e||12===e||13===e||32===e,Gt=e=>{const t=e.length;let r=0,n=0,o=!1;for(let i=0;i0?o=!0:r++:n++)}return o||n>2||n>0&&(r+n)%4!=0||r%4==1?(e=>{const t=e.length;let r=0;return t>0&&61===e.charCodeAt(t-1)&&(r++,t>1&&61===e.charCodeAt(t-2)&&r++),Math.floor(3*(t-r)/4)})(e):(e=>{const t=e%4;return 3*Math.floor(e/4)+(2===t?1:3===t?2:0)})(r)},Qt={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:Xt}=Ae,Zt=e=>{if(!Ae.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},Yt=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},er=e=>{const t=void 0!==Ae.global&&null!==Ae.global?Ae.global:globalThis,{ReadableStream:r,TextEncoder:n}=t;e=Ae.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:o,Request:i,Response:a}=e,s=o?Xt(o):"function"==typeof fetch,c=Xt(i),l=Xt(a);if(!s)return!1;const u=s&&Xt(r),f=s&&("function"==typeof n?(p=new n,e=>p.encode(e)):async e=>new Uint8Array(await new i(e).arrayBuffer()));var p;const d=c&&u&&Yt(()=>{let e=!1;const t=new i(yt.origin,{body:new r,method:"POST",get duplex(){return e=!0,"half"}}),n=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!n}),y=l&&u&&Yt(()=>Ae.isReadableStream(new a("").body)),m={stream:y&&(e=>e.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!m[e]&&(m[e]=(t,r)=>{let n=t&&t[e];if(n)return n.call(t);throw new $e(`Response type '${e}' is not supported`,$e.ERR_NOT_SUPPORT,r)})});const h=async e=>{if(null==e)return 0;if(Ae.isBlob(e))return e.size;if(Ae.isSpecCompliantForm(e)){const t=new i(yt.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Ae.isArrayBufferView(e)||Ae.isArrayBuffer(e)?e.byteLength:(Ae.isURLSearchParams(e)&&(e+=""),Ae.isString(e)?(await f(e)).byteLength:void 0)};return async e=>{let{url:t,method:r,data:s,signal:l,cancelToken:f,timeout:p,onDownloadProgress:g,onUploadProgress:b,responseType:v,headers:w,withCredentials:O="same-origin",fetchOptions:S,maxContentLength:E,maxBodyLength:_,maxRedirects:x}=Bt(e);const A=Ae.isNumber(E)&&E>-1,R=Ae.isNumber(_)&&_>-1;let j=o||fetch;v=v?(v+"").toLowerCase():"text";let P=qt([l,f&&f.toAbortSignal()],p),T=null;const C=P&&P.unsubscribe&&(()=>{P.unsubscribe()});let N,L=null;const D=()=>new $e("Request body larger than maxBodyLength limit",$e.ERR_BAD_REQUEST,e,T);try{let o;const l=(I="auth",Ae.hasOwnProp(e,I)?e[I]:void 0);if(l){o={username:Ae.getSafeProp(l,"username")||"",password:Ae.getSafeProp(l,"password")||""}}if((e=>{const t=e.indexOf("://");let r=e;return-1!==t&&(r=r.slice(t+3)),r.includes("@")||r.includes(":")})(t)){const e=new URL(t,yt.origin);if(!o&&(e.username||e.password)){o={username:Zt(e.username),password:Zt(e.password)}}(e.username||e.password)&&(e.username="",e.password="",t=e.href)}if(o&&(w.delete("authorization"),w.set("Authorization","Basic "+btoa((k=(o.username||"")+":"+(o.password||""),encodeURIComponent(k).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))))))),A&&"string"==typeof t&&t.startsWith("data:")){const r=function(e){const t="string"==typeof e?e.indexOf("#"):-1;return((e,t)=>{if(!e||"string"!=typeof e)return 0;if(!e.startsWith("data:"))return 0;const r=e.indexOf(",");if(r<0)return 0;const n=e.slice(5,r),o=e.slice(r+1);if(/;base64/i.test(n))return t(o);let i=0;for(let e=0,t=o.length;e=55296&&r<=56319&&e+1=56320&&t<=57343?(i+=4,e++):i+=3}else i+=3}return i})(-1===t?e:e.slice(0,t),Gt)}(t);if(r>E)throw new $e("maxContentLength size of "+E+" exceeded",$e.ERR_BAD_RESPONSE,e,T)}if(R&&"get"!==r&&"head"!==r){const e=await h(s);if("number"==typeof e&&isFinite(e)&&(N=e,e>_))throw D()}const f=R&&(Ae.isReadableStream(s)||Ae.isStream(s)),p=(e,t,r)=>zt(e,65536,e=>{if(R&&e>_)throw L=D();t&&t(e)},r);if(d&&"get"!==r&&"head"!==r&&(b||f)){if(N=N??await(async(e,t)=>Ae.toFiniteNumber(e.getContentLength())??h(t))(w,s),0!==N||f){let e,r=new i(t,{method:"POST",body:s,duplex:"half"});if(Ae.isFormData(s)&&(e=r.headers.get("content-type"))&&w.setContentType(e),r.body){const[e,t]=b&&Pt(N,jt(Tt(b)))||[];s=p(r.body,e,t)}}}else if(f&&!c&&u&&"get"!==r&&"head"!==r)s=p(s);else if(f&&c&&!d&&"get"!==r&&"head"!==r)throw new $e("Stream request bodies are not supported by the current fetch implementation",$e.ERR_NOT_SUPPORT,e,T);Ae.isString(O)||(O=O?"include":"omit");const F=c&&"credentials"in i.prototype;if(Ae.isFormData(s)){const e=w.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&w.delete("content-type")}w.set("User-Agent","axios/1.20.0",!1);const U=null==S?S:Object.assign(Object.create(null),S);U&&(delete U.body,delete U.headers,delete U.method,delete U.signal,delete U.duplex,delete U.credentials);const B=Object.assign(Object.create(null),U,{signal:P,method:r.toUpperCase(),headers:Ne(w.normalize()),body:s,duplex:"half",credentials:F?O:void 0});c&&(Ae.forEach(Qt,(e,t)=>{void 0===B[t]&&(B[t]=e)}),void 0===B.signal&&(B.signal=null),void 0===B.body&&(B.body=null)),0===x&&(B.redirect="manual",U&&(U.redirect="manual")),T=c&&new i(t,B);let M=await(c?j(T,U):j(t,B));const q=Me.from(M.headers);if(A){const t=Ae.toFiniteNumber(q.getContentLength());if(null!=t&&t>E)throw new $e("maxContentLength size of "+E+" exceeded",$e.ERR_BAD_RESPONSE,e,T)}const W=y&&("stream"===v||"response"===v);if(y&&M.body&&(g||A||W&&C)){const t={};["status","statusText","headers"].forEach(e=>{t[e]=M[e]});const r=Ae.toFiniteNumber(q.getContentLength()),[n,o]=g&&Pt(r,jt(Tt(g),!0))||[];let i=0;const s=t=>{if(A&&(i=t,i>E))throw new $e("maxContentLength size of "+E+" exceeded",$e.ERR_BAD_RESPONSE,e,T);n&&n(t)};M=new a(zt(M.body,65536,s,()=>{o&&o(),C&&C()}),t)}v=v||"text";let z=await m[Ae.findKey(m,v)||"text"](M,e);if(A&&!y&&!W){let t;if(null!=z&&("number"==typeof z.byteLength?t=z.byteLength:"number"==typeof z.size?t=z.size:"string"==typeof z&&(t="function"==typeof n?(new n).encode(z).byteLength:z.length)),"number"==typeof t&&t>E)throw new $e("maxContentLength size of "+E+" exceeded",$e.ERR_BAD_RESPONSE,e,T)}return!W&&C&&C(),await new Promise((t,r)=>{_t(t,r,{data:z,headers:Me.from(M.headers),status:M.status,statusText:M.statusText,config:e,request:T})})}catch(t){if(C&&C(),P&&P.aborted&&P.reason instanceof $e){const r=P.reason;throw r.config=e,T&&(r.request=T),t!==r&&Object.defineProperty(r,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),r}if(L)throw T&&!L.request&&(L.request=T),L;if(t instanceof $e)throw T&&!t.request&&(t.request=T),t;if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message)){const r=new $e("Network Error",$e.ERR_NETWORK,e,T,t&&t.response);throw Object.defineProperty(r,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),r}throw $e.from(t,t&&t.code,e,T,t&&t.response)}var k,I}},tr=new Map,rr=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:o}=t,i=[n,o,r];let a,s,c=i.length,l=tr;for(;c--;)a=i[c],s=l.get(a),void 0===s&&l.set(a,s=c?new Map:er(t)),l=s;return s},nr=(rr(),{http:null,xhr:Mt,fetch:{get:rr}});Ae.forEach(nr,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const or=e=>`- ${e}`,ir=e=>Ae.isFunction(e)||null===e||!1===e,ar=function(e,t){e=Ae.isArray(e)?e:[e];const{length:r}=e;let n,o;const i={};for(let a=0;a`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=r?e.length>1?"since :\n"+e.map(or).join("\n"):" "+or(e[0]):"as no adapter specified";throw new $e("There is no suitable adapter to dispatch the request "+t,$e.ERR_NOT_SUPPORT)}return o};function sr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Et(null,e)}function cr(e){const t=Ae.toSafeFlatObject(e);return sr(t),t.headers=Me.from(Ae.getSafeProp(t,"headers")),t.data=Ot.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),ar(t.adapter||wt.adapter,t)(t).then(function(e){sr(t),t.response=e;try{e.data=Ot.call(t,t.transformResponse,e)}finally{delete t.response}return e.headers=Me.from(e.headers),e},function(e){if(!St(e)&&(sr(t),e&&e.response)){t.response=e.response;try{e.response.data=Ot.call(t,t.transformResponse,e.response)}finally{delete t.response}e.response.headers=Me.from(e.response.headers)}return Promise.reject(e)})}const lr={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{lr[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const ur={};lr.transitional=function(e,t,r){function n(e,t){return"[Axios v1.20.0] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,o,i)=>{if(!1===e)throw new $e(n(o," has been removed"+(t?" in "+t:"")),$e.ERR_DEPRECATED);return t&&!ur[o]&&(ur[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,i)}},lr.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};const fr={assertOptions:function(e,t,r){if("object"!=typeof e||null===e)throw new $e("options must be an object",$e.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],a=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(a){const t=e[i],r=void 0===t||a(t,i,e);if(!0!==r)throw new $e("option "+i+" must be "+r,$e.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new $e("Unknown option "+i,$e.ERR_BAD_OPTION)}},validators:lr},pr=fr.validators;class dr{constructor(e){this.defaults=e||{},this.interceptors={request:new at,response:new at}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error)try{let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const r=t.stack;let n="";if("string"==typeof r){const e=r.indexOf("\n");n=-1===e?"":r.slice(e+1)}if(e.stack){if(n){const t=n.indexOf("\n"),r=-1===t?-1:n.indexOf("\n",t+1),o=-1===r?"":n.slice(r+1);String(e.stack).endsWith(o)||(e.stack+="\n"+n)}}else e.stack=n}catch(e){}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Ft(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:o}=t;void 0!==r&&fr.assertOptions(r,{silentJSONParsing:pr.transitional(pr.boolean),forcedJSONParsing:pr.transitional(pr.boolean),clarifyTimeoutError:pr.transitional(pr.boolean),legacyInterceptorReqResOrdering:pr.transitional(pr.boolean),advertiseZstdAcceptEncoding:pr.transitional(pr.boolean),validateStatusUndefinedResolves:pr.transitional(pr.boolean)},!1),null!=n&&(Ae.isFunction(n)?t.paramsSerializer={serialize:n}:fr.assertOptions(n,{encode:pr.function,serialize:pr.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),fr.assertOptions(t,{baseUrl:pr.spelling("baseURL"),withXsrfToken:pr.spelling("withXSRFToken")},!0),t.method=(Ae.getSafeProp(t,"method")||Ae.getSafeProp(this.defaults,"method")||"get").toLowerCase();let i=o&&Ae.merge(o.common,o[t.method]);o&&Ae.forEach(gt.concat("common"),e=>{delete o[e]}),t.headers=Me.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;s=s&&e.synchronous;const r=t.transitional||st;r&&r.legacyInterceptorReqResOrdering?a.unshift(e.fulfilled,e.rejected):a.push(e.fulfilled,e.rejected)});const c=[];let l;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let u,f=0;if(!s){const e=[cr.bind(this),void 0];for(e.unshift(...a),e.push(...c),u=e.length,l=Promise.resolve(t);fcr.call(this,p)))}catch(e){l=Promise.reject(e)}break}}if(!l)try{l=cr.call(this,p)}catch(e){l=Promise.reject(e)}for(f=0,u=c.length;f{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t;const n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,o){r.reason||(r.reason=new Et(e,n,o),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new mr(function(t){e=t}),cancel:e}}}const hr=mr,gr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(gr).forEach(([e,t])=>{void 0===gr[t]&&(gr[t]=e)});const br=gr,vr=function e(t){const r=new yr(t),n=j(yr.prototype.request,r);return Ae.extend(n,yr.prototype,r,{allOwnKeys:!0}),Ae.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(Ft(t,r))},n}(wt);vr.Axios=yr,vr.CanceledError=Et,vr.CancelToken=hr,vr.isCancel=St,vr.VERSION="1.20.0",vr.toFormData=Ge,vr.AxiosError=$e,vr.Cancel=vr.CanceledError,vr.all=function(e){return Promise.all(e)},vr.spread=function(e){return function(t){return e.apply(null,t)}},vr.isAxiosError=function(e){return Ae.isObject(e)&&!0===e.isAxiosError},vr.mergeConfig=Ft,vr.AxiosHeaders=Me,vr.formToJSON=e=>ht(Ae.isHTMLForm(e)?new FormData(e):e),vr.getAdapter=ar,vr.HttpStatusCode=br,vr.default=vr;const wr=vr;function Or(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n={action:e},o={nonce:!1,action:e};void 0===t&&(t={});var i;for(var a in i="undefined"==typeof ajaxurl?r:ajaxurl,o)t.hasOwnProperty(a)||(t[a]=o[a]);var s={method:"post",url:i,params:n,paramsSerializer:function(e){return w().stringify(e,{arrayFormat:"brackets"})},data:w().stringify(t)};return wr(s)}function Sr(e){return Sr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sr(e)}function Er(){var e=Pr(),t=e.m(Er),r=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function n(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===r||"GeneratorFunction"===(t.displayName||t.name))}var o={throw:1,return:2,break:3,continue:3};function i(e){var t,r;return function(n){t||(t={stop:function(){return r(n.a,2)},catch:function(){return n.v},abrupt:function(e,t){return r(n.a,o[e],t)},delegateYield:function(e,o,i){return t.resultName=o,r(n.d,_r(e),i)},finish:function(e){return r(n.f,e)}},r=function(e,r,o){n.p=t.prev,n.n=t.next;try{return e(r,o)}finally{t.next=n.n}}),t.resultName&&(t[t.resultName]=n.v,t.resultName=void 0),t.sent=n.v,t.next=n.n;try{return e.call(this,t)}finally{n.p=t.prev,n.n=t.next}}}return(Er=function(){return{wrap:function(t,r,n,o){return e.w(i(t),r,n,o&&o.reverse())},isGeneratorFunction:n,mark:e.m,awrap:function(e,t){return new Cr(e,t)},AsyncIterator:jr,async:function(e,t,r,o,a){return(n(t)?Rr:Ar)(i(e),t,r,o,a)},keys:xr,values:_r}})()}function _r(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw new TypeError(Sr(e)+" is not iterable")}function xr(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}}function Ar(e,t,r,n,o){var i=Rr(e,t,r,n,o);return i.next().then(function(e){return e.done?e.value:i.next()})}function Rr(e,t,r,n,o){return new jr(Pr().w(e,t,r,n),o||Promise)}function jr(e,t){function r(n,o,i,a){try{var s=e[n](o),c=s.value;return c instanceof Cr?t.resolve(c.v).then(function(e){r("next",e,i,a)},function(e){r("throw",e,i,a)}):t.resolve(c).then(function(e){s.value=e,i(s)},function(e){return r("throw",e,i,a)})}catch(e){a(e)}}var n;this.next||(Tr(jr.prototype),Tr(jr.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),Tr(this,"_invoke",function(e,o,i){function a(){return new t(function(t,n){r(e,i,t,n)})}return n=n?n.then(a,a):a()},!0)}function Pr(){var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof s?n:s,l=Object.create(c.prototype);return Tr(l,"_invoke",function(r,n,o){var i,s,c,l=0,u=o||[],f=!1,p={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t,r){return i=t,s=0,c=e,p.n=r,a}};function d(r,n){for(s=r,c=n,t=0;!f&&l&&!o&&t3?(o=y===n)&&(c=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=r<2&&dn||n>y)&&(i[4]=r,i[5]=n,p.n=y,s=0))}if(o||r>1)return a;throw f=!0,n}return function(o,u,y){if(l>1)throw TypeError("Generator is already running");for(f&&1===u&&d(u,y),s=u,c=y;(t=s<2?e:c)||!f;){i||(s?s<3?(s>1&&(p.n=-1),d(s,c)):p.n=c:p.v=c);try{if(l=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(f=p.n<0)?c:r.call(n,p))!==a)break}catch(t){i=e,s=1,c=t}finally{l=1}}return{value:t,done:f}}}(r,o,i),!0),l}var a={};function s(){}function c(){}function l(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(Tr(t={},n,function(){return this}),t),f=l.prototype=s.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,Tr(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=l,Tr(f,"constructor",l),Tr(l,"constructor",c),c.displayName="GeneratorFunction",Tr(l,o,"GeneratorFunction"),Tr(f),Tr(f,o,"Generator"),Tr(f,n,function(){return this}),Tr(f,"toString",function(){return"[object Generator]"}),(Pr=function(){return{w:i,m:p}})()}function Tr(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Tr=function(e,t,r,n){function i(t,r){Tr(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(i("next",0),i("throw",1),i("return",2))},Tr(e,t,r,n)}function Cr(e,t){this.v=e,this.k=t}function Nr(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function Lr(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){Nr(i,n,o,a,s,"next",e)}function s(e){Nr(i,n,o,a,s,"throw",e)}a(void 0)})}}var Dr=wp.i18n,kr=Dr.__,Ir=Dr._n,Fr=wp.hooks,Ur=Fr.addFilter,Br=Fr.applyFilters,Mr=Fr.doAction,qr=[],Wr=[],zr=[];window.addEventListener("load",function(){var e=document.querySelectorAll(".sce-edit-button");if(e){document.addEventListener("wpacAfterUpdateComments",function(e){var t=e.detail.commentUrl;window.SCE_comments_updated(t)}),Ur("sce.comment.save.data","comment-edit-lite",function(e){var t=document.querySelectorAll("#sce-edit-comment".concat(e.comment_id)),r=null;if(null!==t&&(r=t[t.length-1].querySelector(".stars")),null!==r){var n=r.querySelector(".active").classList[0].replace("star-",""),o=document.querySelector("#woo_edit_comment_nonce_"+e.comment_id).value;return e.wooEditCommentNonce=o,e.rating=n,e}return e});var t=function(){var e=Lr(Er().mark(function e(t,r,n,o){var i;return Er().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Or("sce_get_time_left",{comment_id:t,post_id:r,_ajax_nonce:n},o);case 2:return i=e.sent,e.abrupt("return",i);case 4:case"end":return e.stop()}},e)}));return function(t,r,n,o){return e.apply(this,arguments)}}(),r=function(){var e=Lr(Er().mark(function e(t,r,n){var o;return Er().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Or(t,r,n);case 2:return o=e.sent,e.abrupt("return",o);case 4:case"end":return e.stop()}},e)}));return function(t,r,n){return e.apply(this,arguments)}}(),n=function(e){e.classList.remove("sce-hide"),e.classList.add("sce-show")},o=function(e,t){var r=e&&e.data?e.data:{},n=r.data||{};return n.error||n.message||r.error||t},i=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=document.querySelector("#sce-edit-comment-status".concat(e));null!==n&&(n.className="",n.classList.add("sce-status"),r&&n.classList.add("error"),n.setAttribute("aria-live",r?"assertive":"polite"),n.textContent=t,n.style.display="block")},a=function(e,t,r){document.dispatchEvent(new CustomEvent(e,{detail:r})),Mr(t,r)},s=function(e,t,r){var n=zr[t];n&&(a("sceCommentEditorDestroy","sce.comment.editor.destroy",{textarea:e,commentId:t,postId:r}),n.quicktags&&wp.editor&&"function"==typeof wp.editor.remove&&wp.editor.remove(n.textareaId),delete zr[t])},c=function(e,t){e.querySelectorAll("button").forEach(function(e){e.disabled=t}),e.querySelectorAll(".sce-edit-button-main, .sce-delete-button-main").forEach(function(e){e.setAttribute("aria-disabled",t?"true":"false")})},l=function(e,t,r){var n=e.querySelector(".sce-textarea"),o=e.querySelector(".sce-loading"),i=e.querySelector(".sce-edit-button");c(e,!1),e.dataset.sceSubmitting="false",null!==o&&(o.style.display="none"),null!==n&&(n.style.display=r?"block":"none"),null!==i&&(i.style.display=r?"none":"block"),null!==t&&t.setAttribute("aria-expanded",r?"true":"false")},u=function(e,t){t<0&&(e-=1,t=59);var r="",n=0,o=0,i=0;if(e>=1){var a=Math.abs(60*e);(n=Math.floor(a/86400))>=1&&(r+=n+" "+Ir("day","days",n,"simple-comment-editing"),r+=" "+kr("and","simple-comment-editing")+" ",a-=86400*n),(o=Math.floor(a/3600)%24)>=0&&(o>0&&(r+=o+" "+Ir("hour","hours",o,"simple-comment-editing"),r+=" "+kr("and","simple-comment-editing")+" "),a-=3600*o),a-=i=Math.floor(a/60)%60,e>0&&(r+=i+" "+Ir("minute","minutes",i,"simple-comment-editing")),t>0&&(r+=" "+kr("and","simple-comment-editing")+" ",r+=t+" "+Ir("second","seconds",t,"simple-comment-editing"))}else r+=t+" "+Ir("second","seconds",t,"simple-comment-editing");return Br("sce.comment.timer.text",r,Ir("day","days",n,"simple-comment-editing"),Ir("hour","hours",o,"simple-comment-editing"),Ir("minute","minutes",i,"simple-comment-editing"),Ir("second","seconds",t,"simple-comment-editing"),n,o,i,t)},f=function(){var e=Lr(Er().mark(function e(t,r,n,a,u){var f,p,d,y,m,h;return Er().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if("true"!==(f=t.closest(".sce-edit-comment")).dataset.sceSubmitting){e.next=3;break}return e.abrupt("return");case 3:return p=f.querySelector(".sce-edit-button-main"),d=f.querySelector(".sce-textarea"),y=null!==d&&"none"!==d.style.display,m=f.querySelector(".sce-loading"),f.dataset.sceSubmitting="true",c(f,!0),null!==m&&(m.style.display="block"),e.prev=10,e.next=13,Or("sce_delete_comment",{comment_id:r,post_id:n,nonce:a},u);case 13:if((h=e.sent).data&&!0===h.data.success){e.next=16;break}throw new Error(o(h,simple_comment_editing.comment_deleted_error));case 16:i(r,simple_comment_editing.comment_deleted),s(f.querySelector(".sce-comment-text"),r,n),setTimeout(function(){var e=document.querySelector("#comment-"+r);null!==e&&e.remove(),f.remove()},3e3),e.next=25;break;case 21:e.prev=21,e.t0=e.catch(10),l(f,p,y),i(r,e.t0.message||simple_comment_editing.comment_deleted_error,!0);case 25:case"end":return e.stop()}},e,null,[[10,21]])}));return function(t,r,n,o,i){return e.apply(this,arguments)}}();window.initEditCommentButton=function(e){var p=e.querySelector(".sce-edit-button-main, .sce-delete-button-main");if(null!==p){var d,y=(d=p).dataset.sceAjaxUrl||d.getAttribute("href"),m=new URLSearchParams(y),h=m.get("cid"),g=m.get("pid"),b=m.get("nonce");t(h,g,simple_comment_editing.nonce,y).then(function(t){if(!t.data||!0!==t.data.success||!t.data.data)throw new Error(o(t,simple_comment_editing.comment_deleted_error));var r=t.data.data,i=r.minutes,a=r.seconds;if(!0===r.can_edit)if("unlimited"!==i||"unlimited"!==a){i=parseInt(i),a=parseInt(a);var c=u(i,a),l=e.querySelector(".sce-timer");null!==l&&(l.textContent=c);var f=e.parentNode.querySelectorAll(".sce-textarea .sce-timer");null!==f&&f.forEach(function(e){e.textContent=c}),n(e);var p=new CustomEvent("sceTimerLoaded",{detail:{button:e,commentId:h,postId:g}});document.dispatchEvent(p);var d=document.querySelector("#sce-edit-comment".concat(h," textarea"));null!==d&&(Wr[h]=d.value),qr[h]={minutes:i,seconds:a,start:(new Date).getTime(),time:0,timer:function(){var t=qr[h].seconds-1,r=qr[h].minutes;if(r<=0&&t<=0)return s(e.parentNode.querySelector(".sce-comment-text"),h,g),void e.parentNode.remove();t<0&&(r-=1,t=59);var n=u(r,t),o=e.querySelector(".sce-timer");null!==o&&(o.textContent=n);var i=e.parentNode.querySelectorAll(".sce-textarea .sce-timer");null!==i&&i.forEach(function(e){e.textContent=n});var a=new CustomEvent("sceTimerCountdown",{detail:{button:e,commentId:h,postId:g,timer_seconds:t,timer_minutes:r}});document.dispatchEvent(a),qr[h].seconds=t,qr[h].minutes=r;var c=qr[h];c.time+=1e3;var l=(new Date).getTime()-c.start-c.time;window.setTimeout(c.timer,1e3-l)}},window.setTimeout(qr[h].timer,1e3)}else{n(e);var y=new CustomEvent("sceTimerLoaded",{detail:{button:e,commentId:h,postId:g}});document.dispatchEvent(y)}else e.parentNode.remove()}).catch(function(t){!function(e){e.classList.remove("sce-show"),e.classList.add("sce-hide")}(e),i(h,t.message||simple_comment_editing.comment_deleted_error,!0)});var v=document.querySelector("#sce-edit-comment".concat(h," .sce-edit-button-main"));if(null!==v){v.addEventListener("click",function(e){e.preventDefault();var t=v.closest(".sce-edit-comment");if("true"!==t.dataset.sceSubmitting){var r=document.querySelector("#sce-edit-comment-status".concat(h));null!==r&&(r.classList.remove("sce-error"),r.classList.remove("sce-success"),r.classList.add("sce-status"),r.style.display="none"),c(t,!1),t.querySelector(".sce-textarea").style.display="block",v.parentNode.style.display="none",v.setAttribute("aria-expanded","true");var n=t.querySelector(".sce-textarea textarea:first-of-type");!function(e,t,r){if(!zr[t]){var n={textareaId:e.id,quicktags:!1};zr[t]=n,simple_comment_editing.enable_quicktags&&wp.editor&&"function"==typeof wp.editor.initialize&&(wp.editor.initialize(e.id,{mediaButtons:!1,quicktags:!0,tinymce:!1}),n.quicktags=!0,a("sceCommentQuicktagsInit","sce.comment.editor.quicktags.init",{textarea:e,commentId:t,postId:r}))}}(n,h,g);var o=new CustomEvent("sceEditTextareaShow",{detail:{textarea:n,commentId:h,postId:g}});document.dispatchEvent(o),Mr("sce.comment.editor.show",{textarea:n,commentId:h,postId:g}),n.focus()}});var w=e.querySelector(".sce-delete-button-main");null!==w&&w.addEventListener("click",function(t){t.preventDefault(),simple_comment_editing.allow_delete_confirmation?confirm(simple_comment_editing.confirm_delete)&&f(e,h,g,b,y):f(e,h,g,b,y)});var O=e.parentNode.querySelector(".sce-textarea .sce-comment-delete");null!==O&&O.addEventListener("click",function(t){t.preventDefault(),simple_comment_editing.allow_delete_confirmation?confirm(simple_comment_editing.confirm_delete)&&f(e,h,g,b,y):f(e,h,g,b,y)});var S=e.parentNode.querySelector(".sce-textarea .sce-comment-cancel");null!==S&&S.addEventListener("click",function(e){e.preventDefault();var t=S.closest(".sce-edit-comment"),r=t.querySelector(".sce-textarea textarea:first-of-type"),n=Wr[h];r.value=n,a("sceCommentEditorReset","sce.comment.editor.reset",{textarea:r,commentId:h,postId:g,content:n}),s(r,h,g),l(t,v,!1)});var E=e.parentNode.querySelector(".sce-textarea .sce-comment-save");null!==E&&E.addEventListener("click",function(t){t.preventDefault();var n=e.closest(".sce-edit-comment");if("true"!==n.dataset.sceSubmitting){n.dataset.sceSubmitting="true",c(n,!0),e.parentNode.querySelector(".sce-textarea").style.display="none",e.parentNode.querySelector(".sce-loading").style.display="block";var u=e.parentNode.querySelector(".sce-textarea textarea:first-of-type");a("sceCommentSavePre","sce.comment.editor.save.pre",{button:e,textarea:u,commentId:h,postId:g});var p=u.value.trim();if(""===p&&simple_comment_editing.allow_delete)return confirm(simple_comment_editing.empty_comment)?(n.dataset.sceSubmitting="false",void f(e,h,g,b,y)):(u.value=Wr[h],a("sceCommentEditorReset","sce.comment.editor.reset",{textarea:u,commentId:h,postId:g,content:Wr[h]}),void l(n,v,!0));var d={action:"sce_save_comment",comment_content:p,comment_id:h,post_id:g,nonce:b};d=Br("sce.comment.save.data",d),r("sce_save_comment",d,y).then(function(t){var r=t.data;if(r&&!0===r.success&&r.data&&"string"==typeof r.data.comment_text){document.querySelector("#sce-comment".concat(h)).innerHTML=r.data.comment_text,Wr[h]=document.querySelector("#sce-edit-comment".concat(h," textarea")).value;var a=new CustomEvent("sceCommentSavePost",{detail:{button:e,textarea:u,commentId:h,postId:g,ajaxData:r.data}});document.dispatchEvent(a),Mr("sce.comment.editor.save.post",{button:e,textarea:u,commentId:h,postId:g,ajaxData:r.data}),s(u,h,g),l(n,v,!1)}else l(n,v,!0),i(h,o(t,simple_comment_editing.comment_deleted_error),!0)}).catch(function(e){l(n,v,!0),i(h,e.message||simple_comment_editing.comment_deleted_error,!0)})}})}}},e.forEach(function(e){initEditCommentButton(e)});var p=document.querySelectorAll(".comment-form-rating");p.length>0&&p.forEach(function(e){var t=e.dataset.selectedRating,r=e.querySelector(".stars");if(null!==r){r.classList.add("selected");var n=r.querySelector(".star-"+t);null!==n&&n.classList.add("active")}}),"undefined"!=typeof jQuery&&jQuery(document).ready(function(t){jQuery(".comment-form-rating select").hide().before('

\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t1\t\t\t\t\t\t\t\t2\t\t\t\t\t\t\t\t3\t\t\t\t\t\t\t\t4\t\t\t\t\t\t\t\t5\t\t\t\t\t\t\t\t\t\t\t\t\t

'),e.forEach(function(e){e.addEventListener("sceEditTextareaShow",function(t){var r=e.closest(".sce-edit-comment"),n=jQuery(r).find(".comment-form-rating").data("selected-rating"),o=jQuery(r).find(".stars");o.find("a").removeClass("active"),o.addClass("selected"),o.find(".star-"+n).addClass("active")}),e.addEventListener("sceCommentSavePost",function(t){var r=t.detail,n=(r.targetButton,r.textarea,r.commentId),o=(r.postId,r.ajaxData),i=jQuery(e).closest(".sce-edit-comment"),a=i.find(".stars");a.find("a").removeClass("active"),a.find(".star-"+o.rating).addClass("active"),i.closest("#comment-"+n).find(".star-rating span").css({width:20*o.rating+"%"}),i.find(".comment-form-rating").data("selected-rating",o.rating)})}),jQuery("body").on("click",".comment-form-rating p.stars a",function(e){e.preventDefault();var t=jQuery(this),r=jQuery(this).closest(".comment-form-rating").find("select"),n=jQuery(this).closest(".stars");return r.val(t.text()),t.siblings("a").removeClass("active"),t.addClass("active"),n.addClass("selected"),!1})}),"compact"===simple_comment_editing.timer_appearance&&Ur("sce.comment.timer.text","simple-comment-editing",function(e,t,r,n,o,i,a,s,c){return e="",i>=1&&(e+=i<10?"0"+i:i,e+=":"),a>0?(e+=a<10?"0"+a:a,e+=":"):0===a&&i>0&&(e+="00",e+=":"),s>0?(e+=s<10?"0"+s:s,e+=":"):0===s&&a>0&&(e+="00",e+=":"),c>0?e+=c<10?"0"+c:c:0===c&&s>0&&(e+="00"),e},10)}}),window.SCE_comments_updated=function(e){var t=e.match(/comment-(\d+)/);if(t){var r=t[1],n=document.querySelector("#comment-".concat(r));if(null!==n){var o=n.querySelector(".sce-edit-button");null!==o&&window.initEditCommentButton(o)}}}})()})(); \ No newline at end of file diff --git a/src/js/comment-editing/editing.js b/src/js/comment-editing/editing.js index e9d550a..bbcd577 100644 --- a/src/js/comment-editing/editing.js +++ b/src/js/comment-editing/editing.js @@ -533,7 +533,6 @@ window.addEventListener( 'load', () => { } ).catch( ( error ) => { // A failed permission request must not expose cached author controls. hideEditButton( button ); - setEditorControlsDisabled( button.parentNode, true ); showStatus( commentId, error.message || simple_comment_editing.comment_deleted_error, true ); } ); From 9e250ebb4fdbb19ff24713b0c3c10f850bc2495e Mon Sep 17 00:00:00 2001 From: David Stone Date: Fri, 16 Oct 2026 12:25:20 -0600 Subject: [PATCH 3/3] fix: replace reveal setting with browser preferences and integration filter --- DESIGN.md | 2 +- README.md | 21 +++++++++++++++++++++ includes/Admin/Tabs/Settings.php | 11 ----------- includes/Options.php | 2 -- readme.txt | 6 +++--- simple-comment-editing.php | 12 +++++++++++- 6 files changed, 36 insertions(+), 18 deletions(-) diff --git a/DESIGN.md b/DESIGN.md index bf4954b..f301172 100644 --- a/DESIGN.md +++ b/DESIGN.md @@ -301,7 +301,7 @@ Follow: - Disable every editor action while a save or deletion is in progress, then restore the relevant controls on a retryable failure. - Keep the optional Quicktags toolbar within the editor width and allow its native buttons to wrap on narrow screens. - Keep controls hidden and outside keyboard navigation until the uncached `sce_get_time_left` AJAX response confirms permission. A failed check must not reveal the editor. -- Retain the default 0.6-second reveal, but skip it when the administrator enables Reduced Motion or the browser requests `prefers-reduced-motion: reduce`. This changes presentation only, not ownership, nonces, or edit windows. +- Retain the default 0.6-second reveal, but skip it when the browser requests `prefers-reduced-motion: reduce` or WP ULike is active (`WP_ULIKE_VERSION`). Plugins can override the latter policy through `sce_skip_control_reveal` (boolean, comment ID); they cannot override the browser preference. No admin setting is added. This changes presentation only, not ownership, nonces, or edit windows, and does not synchronize independent permission requests. - Do not infer immediate permission from HTML, login state, or unlimited-editing settings: personalized comment pages must bypass shared caches, and an authoritative AJAX round trip is still required. Avoid: diff --git a/README.md b/README.md index 8f69730..1913acd 100644 --- a/README.md +++ b/README.md @@ -324,6 +324,27 @@ See "Styles" section. ## WordPress Filters +### sce_skip_control_reveal - Skip the decorative control animation + +SCE normally fades authorized controls in over 0.6 seconds. This filter receives +the default boolean (true when WP ULike is active, detected by `WP_ULIKE_VERSION`) +and the comment ID. There is no admin setting. For example, another plugin can +skip the animation for every comment: + +```php +add_filter( 'sce_skip_control_reveal', '__return_true' ); +``` + +Return false to retain the fade even with WP ULike. The browser's +`prefers-reduced-motion: reduce` preference always disables the animation, +regardless of the filter. This affects presentation across all button themes, +not authorization: controls still wait for the server's ownership/time check, +and failed checks keep them hidden. WP ULike's independent rendering can finish +earlier; this removes the extra fade, not the permission round trip. Purge cached +pages after changing the filter or WP ULike activation. Personalized author +pages must bypass shared caches; hidden controls cannot protect private textarea +content in incorrectly cached HTML. + ### sce_loading_img - Change the loading image ```php /** diff --git a/includes/Admin/Tabs/Settings.php b/includes/Admin/Tabs/Settings.php index 2bbc3c3..ae9a523 100644 --- a/includes/Admin/Tabs/Settings.php +++ b/includes/Admin/Tabs/Settings.php @@ -163,17 +163,6 @@ public function output_settings( $tab, $sub_tab = '' ) {

- - - -
- -

- /> - -

-

-
diff --git a/includes/Options.php b/includes/Options.php index 85426b8..abb01b9 100644 --- a/includes/Options.php +++ b/includes/Options.php @@ -79,7 +79,6 @@ public static function update_options( $options = array() ) { case 'allow_unlimited_editing': case 'require_login_for_editing': case 'enable_quicktags': - case 'reduce_motion': case 'load_scripts_posts_only': case 'load_scripts_with_comments': $option = (bool) filter_var( $options[ $key ], FILTER_VALIDATE_BOOLEAN ); @@ -136,7 +135,6 @@ private static function get_defaults() { 'allow_unlimited_editing' => false, 'require_login_for_editing' => false, 'enable_quicktags' => false, - 'reduce_motion' => false, 'load_scripts_posts_only' => false, 'load_scripts_with_comments' => false, 'delete_behavior_users' => 'trash', diff --git a/readme.txt b/readme.txt index 99eb2dd..61d0e84 100644 --- a/readme.txt +++ b/readme.txt @@ -75,9 +75,9 @@ Bundled translations provide the default frontend labels and countdown text when Yes. Enable Quicktags Toolbar in Settings -> Simple Comment Editing to add WordPress's native Quicktags toolbar to the comment editor. It is disabled by default, does not load TinyMCE or CKEditor, and can be left disabled when another plugin uses the documented JavaScript editor lifecycle. = Can edit controls appear without the fade-in delay? = -Yes. Enable Reduced Motion under Editor in Settings -> Simple Comment Editing to skip the decorative 0.6-second reveal animation for all button themes. It is disabled by default. A browser's reduced-motion preference also skips this animation, regardless of the setting. Keyboard behavior and the edit timer are unchanged. +Yes. SCE respects the browser's reduced-motion preference and skips the decorative 0.6-second reveal animation for all button themes. It also skips the animation when WP ULike is active, to avoid an extra fade beside its like buttons. There is no admin setting. Plugins can use `add_filter( 'sce_skip_control_reveal', '__return_true' );` to skip the animation, or return false to opt out of the WP ULike default. The filter receives the default boolean and comment ID. Returning false never overrides the browser's reduced-motion preference. Keyboard behavior and the edit timer are unchanged. -This is a presentation option, not immediate authorization or a measured network speedup. Controls remain hidden until the server confirms ownership and the remaining edit time, including for logged-in authors with unlimited editing. Failed permission requests keep controls hidden. Save and Delete still validate permissions and nonces on the server. Personalized pages for logged-in users or guest authors with editing cookies must bypass shared page/CDN caches; hiding controls cannot protect private textarea content already included in incorrectly shared HTML. Purge cached pages after changing this setting. +This is a presentation policy, not immediate authorization or a measured network speedup. Controls remain hidden until the server confirms ownership and the remaining edit time, including for logged-in authors with unlimited editing. Independent plugin requests can still finish at different times. Failed permission requests keep controls hidden. Save and Delete still validate permissions and nonces on the server. Personalized pages for logged-in users or guest authors with editing cookies must bypass shared page/CDN caches; hiding controls cannot protect private textarea content already included in incorrectly shared HTML. Purge cached pages after changing the filter or WP ULike activation. = Can I add custom fields or use a custom comment loop? = Yes. The integration guide in the GitHub README documents comment-scoped extra fields, safe metadata saving, custom loops that call WordPress's native `comment_text()` path, button HTML, and inline action-row styling. Keep SCE's editor wrappers and controls intact so its nonce, ownership checks, Save, Cancel, and Delete actions continue to work. @@ -118,7 +118,7 @@ You can report security bugs through the Patchstack Vulnerability Disclosure Pro == Changelog == = Unreleased = -* New: Add opt-in reduced-motion edit controls and respect the browser reduced-motion preference without skipping server permission checks. +* New: Respect browser reduced-motion preferences, skip the control reveal when WP ULike is active, and add the sce_skip_control_reveal filter without skipping server permission checks. * New: Add a repeat-safe, root-scoped initializer for AJAX/lazy-loaded comment controls and an opt-in guest ownership hook for validated AJAX submissions. * New: Add an optional native Quicktags toolbar and lifecycle hooks for external comment editors. * Docs: Add supported custom-field, custom-loop, button HTML, and inline action-row integration examples. diff --git a/simple-comment-editing.php b/simple-comment-editing.php index 9bb0a5b..272209d 100644 --- a/simple-comment-editing.php +++ b/simple-comment-editing.php @@ -216,7 +216,17 @@ public function add_edit_interface( $comment_content, $passed_comment = false ) $comment_wrapper = sprintf( '
%s
', $comment_id, $comment_content ); $classes = array( 'sce-edit-comment' ); - if ( Options::get_options( false, 'reduce_motion' ) ) { + /** + * Skip the decorative control reveal, not the server permission check. + * + * WP ULike displays its buttons without a fade. Match that presentation + * by default when it is active. CSS always respects reduced motion, + * even when this filter returns false. + * + * @param bool $skip_reveal Whether to skip the reveal animation. + * @param int $comment_id The comment ID. + */ + if ( apply_filters( 'sce_skip_control_reveal', defined( 'WP_ULIKE_VERSION' ), $comment_id ) ) { $classes[] = 'sce-reduced-motion'; } /**