diff --git a/DESIGN.md b/DESIGN.md index a7b40af..197b451 100644 --- a/DESIGN.md +++ b/DESIGN.md @@ -321,6 +321,9 @@ 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. - Preserve WP ULike's existing automatic comment-control nodes when replacing saved text, including top/bottom placement, live vote state, and handlers. Do not duplicate controls if the response also includes their markup; do not change the post's like button or other comments. +- 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 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: @@ -332,6 +335,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/README.md b/README.md index c920e6a..88cf89a 100644 --- a/README.md +++ b/README.md @@ -365,6 +365,26 @@ nodes, vote state and handlers remain intact, including top, bottom and top-and-bottom placement. Returned copies are removed to avoid duplicates. Controls for the post or other comments are not moved. No extra permission or Save requests are introduced, and Cancel does not replace comment content. +### 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/dist/sce-editing.js b/dist/sce-editing.js index 6a1e985..37c0eda 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?-x(-e):x(e);if(n!==e){var o=String(n),i=b.call(t,o.length+1);return w.call(o,r,"$&_")+"."+w.call(w.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return w.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 w.call(String(e),/"/g,""")}function W(e){return!T||!("object"==typeof e&&(T in e||void 0!==e[T]))}function z(e){return"[object Array]"===V(e)&&W(e)}function $(e){return"[object RegExp]"===V(e)&&W(e)}function H(e){if(C)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 v=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 v?D(t,S):S}if("bigint"==typeof t){var x=String(t)+"n";return v?D(t,x):x}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=A.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=C?w.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):P.call(t);return"object"!=typeof t||C?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&&T&&Object(t)===t&&T 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(w.call(w.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":"")+v.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,w=r(612),v=r(383),O=r(237),S=r(290),E=r(538),_=r(68),A=n(),x=r(345),R=f(),j=p(),P=d(),C=y(),T=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 A},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%":v,"%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%":w,"%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%":A,"%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%":x,"%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%":C,"%Math.pow%":T,"%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 A("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 A("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new A('"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),w=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}}),v=r.cw(function(e,t){var r=S(),n=O(),o=w();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 v=n.call(c,m);v&&("combine"===t.duplicates||g.indexOf("[]=")>-1)?c[m]=r.combine(c[m],h,t.arrayLimit,t.plainObjects,t.throwOnLimitExceeded):v&&"last"!==t.duplicates||(c[m]=h)}}return c}(e,l):e,f=l.plainObjects?{__proto__:null}:{},p=Object.keys(u),d=0;dA)throw new RangeError("Input depth exceeded depth option of "+A);for(var j,P=_,C=0,T=!1;void 0!==(P=P.get(d))&&!T;){var N=P.get(t);if(C+=1,void 0!==N){if(N===C)throw new RangeError("Cyclic object value");T=!0}void 0===P.get(d)&&(C=0)}if((R="function"==typeof h?h(o,R):R)instanceof Date?R=w(R):"comma"===i&&s(R)&&(R=n.maybeMap(R,function(e){return e instanceof Date?w(e):e})),null===R){if(u)return O(m&&!S?m(o,p.encoder,E,"key",v):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",v))+"="+O(m(R,p.encoder,E,"value",v))]:[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=w(),o=x(),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}}),A=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}),x=r.cw(function(e,t){var o=n(),i=b(),a=r(803),s=_(),c=A()||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:C}=Object,{iterator:T,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=C(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=C(e);return!(null!==t&&t!==Object.prototype&&null!==C(t)||I(e,N)||I(e,T))},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&&C(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"),we=(ve="function"==typeof setImmediate,Oe=K(ue.postMessage),ve?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 ve,Oe,Se,Ee;const _e="undefined"!=typeof queueMicrotask?queueMicrotask.bind(ue):"undefined"!=typeof process&&process.nextTick||we,Ae=e=>null!=e&&K(e[T]),xe={isArray:q,isArrayBuffer:$,isBuffer:z,isFormData:e=>{if(!e)return!1;if(re&&e instanceof re)return!0;const t=C(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&&C(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[T]).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=C(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:C(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[T])},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:we,asap:_e,isIterable:Ae,isSafeIterable:e=>null!=e&&I(e,T)&&Ae(e)},Re=xe.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=xe.hasOwnProp(t,r);!r||i&&xe.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"),Ce=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Te(e,t){return xe.isArray(e)?e.map(e=>Te(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 xe.forEach(e.toJSON(),(e,r)=>{t[r]=(e=>Te(e,Ce))(e)}),t}const Le=Symbol("internals");function De(e){return e&&String(e).trim().toLowerCase()}function ke(e){return!1===e||null==e?e:xe.isArray(e)?e.map(ke):(e=>Te(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 xe.isFunction(n)?n.call(this,t,r):(o&&(t=r),xe.isString(t)?xe.isString(n)?-1!==t.indexOf(n):xe.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=xe.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)=>xe.forEach(e,(e,r)=>o(e,r,t));if(xe.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(xe.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i(je(e),t);else if(xe.isObject(e)&&xe.isSafeIterable(e)){let r,n,o=Object.create(null);for(const t of e){if(!xe.isArray(t))throw new TypeError("Object iterator must return a key-value pair");n=t[0],xe.hasOwnProp(o,n)?(r=o[n],o[n]=xe.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=xe.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(xe.isFunction(t))return t.call(this,e,r);if(xe.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=De(e)){const r=xe.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=xe.findKey(r,e);!o||t&&!Ue(0,r[o],o,t)||(delete r[o],n=!0)}}return xe.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 xe.forEach(this,(n,o)=>{const i=xe.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 xe.forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&xe.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 xe.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=xe.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 xe.isArray(e)?e.forEach(n):n(e),this}}Be.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),xe.reduceDescriptors(Be.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),xe.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&&xe.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&&xe.hasOwnProp(e,"redact")?e.redact:void 0,r=xe.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(xe.isBuffer(e))return e;if(-1!==n.indexOf(e))return;let t;if(e instanceof Me&&(e=e.toJSON()),n.push(e),xe.isArray(e))t=[],e.forEach((e,r)=>{const n=o(e);xe.isUndefined(n)||(t[r]=n)});else{if(!xe.isPlainObject(e)&&function(e){if(xe.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(xe.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);xe.isUndefined(e)||(t[n]=e)}}return n.pop(),t};return o(e)}(e,t):xe.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 xe.isPlainObject(e)||xe.isArray(e)}function Ke(e){return xe.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=xe.toFlatObject(xe,{},null,function(e){return/^is[A-Z]/.test(e)}),Ge=function(e,t,r){if(!xe.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(e,t)=>{const n=xe.getSafeProp(r,e);return xe.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&&xe.isSpecCompliantForm(t),f=[];if(!xe.isFunction(i))throw new TypeError("visitor must be a function");function p(e){if(null===e)return"";if(xe.isDate(e))return e.toISOString();if(xe.isBoolean(e))return e.toString();if(!u&&xe.isBlob(e))throw new $e("Blob is not supported. Use a Buffer instead.");if(xe.isArrayBuffer(e)||xe.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(xe.isReactNative(t)&&xe.isReactNativeBlob(e))return t.append(Je(n,r,a),p(e)),!1;if(e&&!n&&"object"==typeof e)if(xe.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(!xe.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(xe.isArray(e)&&function(e){return xe.isArray(e)&&!e.some(He)}(e)||(xe.isFileList(e)||xe.endsWith(r,"[]"))&&(i=xe.toArray(e)))return r=Ke(r),i.forEach(function(e,n){!xe.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(!xe.isObject(e))throw new TypeError("data must be an object");return function e(r,n,o=0){if(!xe.isUndefined(r)){if(d(o),-1!==f.indexOf(r))throw new Error("Circular reference detected in "+n.join("."));f.push(r),xe.forEach(r,function(r,a){!0===(!(xe.isUndefined(r)||null===r)&&i.call(t,r,xe.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=xe.isFunction(r)?{serialize:r}:r,o=xe.getSafeProp(n,"encode")||et,i=xe.getSafeProp(n,"serialize");let a;if(a=i?i(t,n):xe.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{xe.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&&xe.isArray(n)?n.length:i,s?(xe.hasOwnProp(n,i)?n[i]=xe.isArray(n[i])?n[i].concat(r):[n[i],r]:n[i]=r,!a):(xe.hasOwnProp(n,i)&&xe.isObject(n[i])||(n[i]=[]),t(e,r,n[i],o)&&xe.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&&xe.hasOwnProp(e,t)?e[t]:void 0,wt={transitional:st,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=xe.isObject(e);if(o&&xe.isHTMLForm(e)&&(e=new FormData(e)),xe.isFormData(e))return n?JSON.stringify(ht(e)):e;if(xe.isArrayBuffer(e)||xe.isBuffer(e)||xe.isStream(e)||xe.isFile(e)||xe.isBlob(e)||xe.isReadableStream(e))return e;if(xe.isArrayBufferView(e))return e.buffer;if(xe.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&&xe.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...t})}(e,t).toString();if((i=xe.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(xe.isString(e))try{return(0,JSON.parse)(e),xe.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")||wt.transitional,r=t&&t.forcedJSONParsing,n=bt(this,"responseType"),o="json"===n;if(xe.isResponse(e)||xe.isReadableStream(e))return e;if(e&&xe.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}}};xe.forEach(gt,e=>{wt.headers[e]={}});const vt=wt;function Ot(e,t){const r=this||vt,n=t||r,o=Me.from(n.headers);let i=n.data;return xe.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 At=/[\t\n\r]/g;function xt(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||!xe.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]]},Ct=(e,t=xe.asap)=>(...r)=>t(()=>e(...r)),Tt=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)}`];xe.isNumber(r)&&s.push(`expires=${new Date(r).toUTCString()}`),xe.isString(n)&&s.push(`path=${n}`),xe.isString(o)&&s.push(`domain=${o}`),!0===i&&s.push("secure"),xe.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=xt(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 xe.isPlainObject(e)&&xe.isPlainObject(t)?xe.merge.call({caseless:n},e,t):xe.isPlainObject(t)?xe.merge({},t):xe.isArray(t)?t.slice():t}function o(e,t,r,o){return xe.isUndefined(t)?xe.isUndefined(e)?void 0:n(void 0,e,0,o):n(e,t,0,o)}function i(e,t){if(!xe.isUndefined(t))return n(void 0,t)}function a(e,t){return xe.isUndefined(t)?xe.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function s(r,o,i){return xe.hasOwnProp(t,i)?n(r,o):xe.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 xe.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=xe.hasOwnProp(c,n)?c[n]:o,a=i(xe.hasOwnProp(e,n)?e[n]:void 0,xe.hasOwnProp(t,n)?t[n]:void 0,n);xe.isUndefined(a)&&i!==s||(r[n]=a)}),xe.hasOwnProp(t,"validateStatus")&&xe.isUndefined(t.validateStatus)&&!1===function(r){const n=xe.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!xe.isUndefined(n)){if(!xe.isPlainObject(n))return;if(xe.hasOwnProp(n,r))return n[r]}const o=xe.hasOwnProp(e,"transitional")?e.transitional:void 0;if(xe.isPlainObject(o)&&xe.hasOwnProp(o,r))return o[r]}("validateStatusUndefinedResolves")&&(xe.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=>xe.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=xe.getSafeProp(c,"username")||"",r=xe.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(xe.isFormData(n)){const e=xe.getSafeProp(n,"getHeaders");yt.hasStandardBrowserEnv||yt.hasStandardBrowserWebWorkerEnv||xe.isReactNative(n)?s.setContentType(void 0):xe.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&&(xe.isFunction(o)&&(o=o(t)),!0===o||null==o&&Tt(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(xt(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&&xe.forEach(Ne(i),function(e,t){h.setRequestHeader(t,e)}),xe.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=()=>xe.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}=xe,Zt=e=>{if(!xe.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!==xe.global&&null!==xe.global?xe.global:globalThis,{ReadableStream:r,TextEncoder:n}=t;e=xe.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(()=>xe.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(xe.isBlob(e))return e.size;if(xe.isSpecCompliantForm(e)){const t=new i(yt.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return xe.isArrayBufferView(e)||xe.isArrayBuffer(e)?e.byteLength:(xe.isURLSearchParams(e)&&(e+=""),xe.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:w,headers:v,withCredentials:O="same-origin",fetchOptions:S,maxContentLength:E,maxBodyLength:_,maxRedirects:A}=Bt(e);const x=xe.isNumber(E)&&E>-1,R=xe.isNumber(_)&&_>-1;let j=o||fetch;w=w?(w+"").toLowerCase():"text";let P=qt([l,f&&f.toAbortSignal()],p),C=null;const T=P&&P.unsubscribe&&(()=>{P.unsubscribe()});let N,L=null;const D=()=>new $e("Request body larger than maxBodyLength limit",$e.ERR_BAD_REQUEST,e,C);try{let o;const l=(I="auth",xe.hasOwnProp(e,I)?e[I]:void 0);if(l){o={username:xe.getSafeProp(l,"username")||"",password:xe.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&&(v.delete("authorization"),v.set("Authorization","Basic "+btoa((k=(o.username||"")+":"+(o.password||""),encodeURIComponent(k).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))))))),x&&"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,C)}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&&(xe.isReadableStream(s)||xe.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)=>xe.toFiniteNumber(e.getContentLength())??h(t))(v,s),0!==N||f){let e,r=new i(t,{method:"POST",body:s,duplex:"half"});if(xe.isFormData(s)&&(e=r.headers.get("content-type"))&&v.setContentType(e),r.body){const[e,t]=b&&Pt(N,jt(Ct(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,C);xe.isString(O)||(O=O?"include":"omit");const F=c&&"credentials"in i.prototype;if(xe.isFormData(s)){const e=v.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&v.delete("content-type")}v.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(v.normalize()),body:s,duplex:"half",credentials:F?O:void 0});c&&(xe.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===A&&(B.redirect="manual",U&&(U.redirect="manual")),C=c&&new i(t,B);let M=await(c?j(C,U):j(t,B));const q=Me.from(M.headers);if(x){const t=xe.toFiniteNumber(q.getContentLength());if(null!=t&&t>E)throw new $e("maxContentLength size of "+E+" exceeded",$e.ERR_BAD_RESPONSE,e,C)}const W=y&&("stream"===w||"response"===w);if(y&&M.body&&(g||x||W&&T)){const t={};["status","statusText","headers"].forEach(e=>{t[e]=M[e]});const r=xe.toFiniteNumber(q.getContentLength()),[n,o]=g&&Pt(r,jt(Ct(g),!0))||[];let i=0;const s=t=>{if(x&&(i=t,i>E))throw new $e("maxContentLength size of "+E+" exceeded",$e.ERR_BAD_RESPONSE,e,C);n&&n(t)};M=new a(zt(M.body,65536,s,()=>{o&&o(),T&&T()}),t)}w=w||"text";let z=await m[xe.findKey(m,w)||"text"](M,e);if(x&&!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,C)}return!W&&T&&T(),await new Promise((t,r)=>{_t(t,r,{data:z,headers:Me.from(M.headers),status:M.status,statusText:M.statusText,config:e,request:C})})}catch(t){if(T&&T(),P&&P.aborted&&P.reason instanceof $e){const r=P.reason;throw r.config=e,C&&(r.request=C),t!==r&&Object.defineProperty(r,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),r}if(L)throw C&&!L.request&&(L.request=C),L;if(t instanceof $e)throw C&&!t.request&&(t.request=C),t;if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message)){const r=new $e("Network Error",$e.ERR_NETWORK,e,C,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,C,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}});xe.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=>xe.isFunction(e)||null===e||!1===e,ar=function(e,t){e=xe.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=xe.toSafeFlatObject(e);return sr(t),t.headers=Me.from(xe.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||vt.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&&(xe.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=(xe.getSafeProp(t,"method")||xe.getSafeProp(this.defaults,"method")||"get").toLowerCase();let i=o&&xe.merge(o.common,o[t.method]);o&&xe.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,wr=function e(t){const r=new yr(t),n=j(yr.prototype.request,r);return xe.extend(n,yr.prototype,r,{allOwnKeys:!0}),xe.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(Ft(t,r))},n}(vt);wr.Axios=yr,wr.CanceledError=Et,wr.CancelToken=hr,wr.isCancel=St,wr.VERSION="1.20.0",wr.toFormData=Ge,wr.AxiosError=$e,wr.Cancel=wr.CanceledError,wr.all=function(e){return Promise.all(e)},wr.spread=function(e){return function(t){return e.apply(null,t)}},wr.isAxiosError=function(e){return xe.isObject(e)&&!0===e.isAxiosError},wr.mergeConfig=Ft,wr.AxiosHeaders=Me,wr.formToJSON=e=>ht(xe.isHTMLForm(e)?new FormData(e):e),wr.getAdapter=ar,wr.HttpStatusCode=br,wr.default=wr;const vr=wr;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 v().stringify(e,{arrayFormat:"brackets"})},data:v().stringify(t)};return vr(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(e){return function(e){if(Array.isArray(e))return _r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return _r(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_r(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _r(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw new TypeError(Sr(e)+" is not iterable")}function Rr(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 jr(e,t,r,n,o){var i=Pr(e,t,r,n,o);return i.next().then(function(e){return e.done?e.value:i.next()})}function Pr(e,t,r,n,o){return new Cr(Tr().w(e,t,r,n),o||Promise)}function Cr(e,t){function r(n,o,i,a){try{var s=e[n](o),c=s.value;return c instanceof Lr?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||(Nr(Cr.prototype),Nr(Cr.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),Nr(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 Tr(){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 Nr(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]())):(Nr(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,Nr(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=l,Nr(f,"constructor",l),Nr(l,"constructor",c),c.displayName="GeneratorFunction",Nr(l,o,"GeneratorFunction"),Nr(f),Nr(f,o,"Generator"),Nr(f,n,function(){return this}),Nr(f,"toString",function(){return"[object Generator]"}),(Tr=function(){return{w:i,m:p}})()}function Nr(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Nr=function(e,t,r,n){function i(t,r){Nr(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))},Nr(e,t,r,n)}function Lr(e,t){this.v=e,this.k=t}function Dr(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 kr(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){Dr(i,n,o,a,s,"next",e)}function s(e){Dr(i,n,o,a,s,"throw",e)}a(void 0)})}}var Ir=wp.i18n,Fr=Ir.__,Ur=Ir._n,Br=wp.hooks,Mr=Br.addFilter,qr=Br.applyFilters,Wr=Br.doAction,zr=[],$r=[],Hr=[],Kr=new WeakSet,Jr=function(){document.addEventListener("wpacAfterUpdateComments",function(e){window.SCE_comments_updated(e.detail&&e.detail.commentUrl)}),Mr("sce.comment.save.data","comment-edit-lite",function(e){var t=document.querySelector("#sce-edit-comment".concat(e.comment_id));if(null===t)return e;var r=t.querySelector('.comment-form-rating select[name="rating"]'),n=t.querySelector("#woo_edit_comment_nonce_"+e.comment_id);return null!==r&&/^[1-5]$/.test(r.value)&&null!==n&&(e.wooEditCommentNonce=n.value,e.rating=r.value),e});var e=function(){var e=kr(Ar().mark(function e(t,r,n,o){var i;return Ar().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)}}(),t=function(){var e=kr(Ar().mark(function e(t,r,n){var o;return Ar().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)}}(),r=function(e){e.classList.remove("sce-hide"),e.classList.add("sce-show")},n=function(e,t){var r=e&&e.data?e.data:{},n=r.data||{};return n.error||n.message||r.error||t},o=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")},i=function(e,t,r){document.dispatchEvent(new CustomEvent(e,{detail:r})),Wr(t,r)},a=function(e,t,r){var n=Hr[t];n&&(i("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 Hr[t])},s=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")})},c=function(e,t,r){var n=e.querySelector(".sce-textarea"),o=e.querySelector(".sce-loading"),i=e.querySelector(".sce-edit-button");s(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")},l=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+" "+Ur("day","days",n,"simple-comment-editing"),r+=" "+Fr("and","simple-comment-editing")+" ",a-=86400*n),(o=Math.floor(a/3600)%24)>=0&&(o>0&&(r+=o+" "+Ur("hour","hours",o,"simple-comment-editing"),r+=" "+Fr("and","simple-comment-editing")+" "),a-=3600*o),a-=i=Math.floor(a/60)%60,e>0&&(r+=i+" "+Ur("minute","minutes",i,"simple-comment-editing")),t>0&&(r+=" "+Fr("and","simple-comment-editing")+" ",r+=t+" "+Ur("second","seconds",t,"simple-comment-editing"))}else r+=t+" "+Ur("second","seconds",t,"simple-comment-editing");return qr("sce.comment.timer.text",r,Ur("day","days",n,"simple-comment-editing"),Ur("hour","hours",o,"simple-comment-editing"),Ur("minute","minutes",i,"simple-comment-editing"),Ur("second","seconds",t,"simple-comment-editing"),n,o,i,t)},u=function(){var e=kr(Ar().mark(function e(t,r,i,l,u){var f,p,d,y,m,h,g,b,w;return Ar().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-textarea"),d=null!==p&&"none"!==p.style.display,y=f.querySelector(".sce-loading"),f.dataset.sceSubmitting="true",s(f,!0),null!==y&&(y.style.display="block"),e.prev=9,e.next=12,Or("sce_delete_comment",{comment_id:r,post_id:i,nonce:l},u);case 12:if((m=e.sent).data&&!0===m.data.success){e.next=15;break}throw new Error(n(m,simple_comment_editing.comment_deleted_error));case 15:if(a(f.querySelector(".sce-comment-text"),r,i),!m.data.data||!m.data.data.placeholder){e.next=34;break}if(delete $r[r],zr[r]&&(zr[r].minutes=0,zr[r].seconds=0),null!==(h=document.querySelector("#comment-"+r))){e.next=23;break}return window.location.reload(),e.abrupt("return");case 23:return g=Array.from(h.children).filter(function(e){return e.classList.contains("children")}),(b=document.createElement("div")).className="sce-deleted-placeholder",b.setAttribute("role","status"),b.tabIndex=-1,b.textContent=simple_comment_editing.deleted_placeholder,h.replaceChildren.apply(h,[b].concat(Er(g))),Array.from(h.attributes).forEach(function(e){"id"!==e.name&&h.removeAttribute(e.name)}),h.className="comment sce-deleted-comment",b.focus(),e.abrupt("return");case 34:o(r,simple_comment_editing.comment_deleted),setTimeout(function(){var e=document.querySelector("#comment-"+r);null!==e&&e.remove(),f.remove()},3e3),e.next=43;break;case 38:e.prev=38,e.t0=e.catch(9),w=f.querySelector(".sce-edit-button-main"),c(f,w,d),o(r,e.t0.message||simple_comment_editing.comment_deleted_error,!0);case 43:case"end":return e.stop()}},e,null,[[9,38]])}));return function(t,r,n,o,i){return e.apply(this,arguments)}}(),f=function(e){var t=zr[e];t&&(window.clearTimeout(t.timeout),a(t.wrapper.querySelector(".sce-comment-text"),e,t.postId),delete zr[e],delete $r[e])};window.initEditCommentButton=function(p){if(p&&p.isConnected){var d=p.querySelector(".sce-edit-button-main, .sce-delete-button-main");if(null!==d){var y,m=(y=d).dataset.sceAjaxUrl||y.getAttribute("href"),h=new URL(m,window.location.href).searchParams,g=h.get("cid"),b=h.get("pid");if(/^\d+$/.test(g)&&/^\d+$/.test(b)&&(!zr[g]||zr[g].button!==p)){f(g);var w={button:p,postId:b,wrapper:p.parentNode,timeout:null};zr[g]=w;var v=p.parentNode.querySelector("textarea");if(!v||Kr.has(p)&&void 0!==$r[g]||($r[g]=v.value),e(g,b,simple_comment_editing.nonce,m).then(function(e){if(zr[g]===w&&p.isConnected){if(!e.data||!0!==e.data.success||!e.data.data)throw new Error(n(e,simple_comment_editing.comment_deleted_error));var t=e.data.data,o=t.minutes,i=t.seconds;if(!t.can_edit)return f(g),void p.parentNode.remove();if("unlimited"!==o||"unlimited"!==i){o=parseInt(o),i=parseInt(i);var a=l(o,i),s=p.querySelector(".sce-timer");null!==s&&(s.textContent=a);var c=p.parentNode.querySelectorAll(".sce-textarea .sce-timer");null!==c&&c.forEach(function(e){e.textContent=a}),r(p);var u=new CustomEvent("sceTimerLoaded",{detail:{button:p,commentId:g,postId:b}});document.dispatchEvent(u),zr[g]===w&&p.isConnected&&(Object.assign(w,{minutes:o,seconds:i,start:(new Date).getTime(),time:0,timer:function(){if(zr[g]===w&&p.isConnected){var e=zr[g].seconds-1,t=zr[g].minutes;if(t<=0&&e<=0)return f(g),void p.parentNode.remove();e<0&&(t-=1,e=59);var r=l(t,e),n=p.querySelector(".sce-timer");null!==n&&(n.textContent=r);var o=p.parentNode.querySelectorAll(".sce-textarea .sce-timer");null!==o&&o.forEach(function(e){e.textContent=r});var i=new CustomEvent("sceTimerCountdown",{detail:{button:p,commentId:g,postId:b,timer_seconds:e,timer_minutes:t}});if(document.dispatchEvent(i),zr[g]===w&&p.isConnected){zr[g].seconds=e,zr[g].minutes=t;var a=zr[g];a.time+=1e3;var s=(new Date).getTime()-a.start-a.time;w.timeout=window.setTimeout(a.timer,Math.max(0,1e3-s))}}else zr[g]===w&&f(g)}}),w.timeout=window.setTimeout(w.timer,1e3))}else{r(p);var d=new CustomEvent("sceTimerLoaded",{detail:{button:p,commentId:g,postId:b}});document.dispatchEvent(d)}}}).catch(function(e){zr[g]===w&&p.isConnected&&(delete zr[g],r(p),o(g,e.message||simple_comment_editing.comment_deleted_error,!0))}),!Kr.has(p)){Kr.add(p);var O=h.get("nonce"),S=p.querySelector(".sce-edit-button-main");if(null!==S){S.addEventListener("click",function(e){e.preventDefault();var t=S.closest(".sce-edit-comment");if("true"!==t.dataset.sceSubmitting){var r=document.querySelector("#sce-edit-comment-status".concat(g));null!==r&&(r.classList.remove("sce-error"),r.classList.remove("sce-success"),r.classList.add("sce-status"),r.style.display="none"),s(t,!1),t.querySelector(".sce-textarea").style.display="block",S.parentNode.style.display="none",S.setAttribute("aria-expanded","true");var n=t.querySelector(".sce-textarea textarea:first-of-type");!function(e,t,r){if(!Hr[t]){var n={textareaId:e.id,quicktags:!1};Hr[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,i("sceCommentQuicktagsInit","sce.comment.editor.quicktags.init",{textarea:e,commentId:t,postId:r}))}}(n,g,b);var o=new CustomEvent("sceEditTextareaShow",{detail:{textarea:n,commentId:g,postId:b}});document.dispatchEvent(o),Wr("sce.comment.editor.show",{textarea:n,commentId:g,postId:b}),n.focus()}});var E=p.querySelector(".sce-delete-button-main");null!==E&&E.addEventListener("click",function(e){e.preventDefault(),simple_comment_editing.allow_delete_confirmation?confirm(simple_comment_editing.confirm_delete)&&u(p,g,b,O,m):u(p,g,b,O,m)});var _=p.parentNode.querySelector(".sce-textarea .sce-comment-delete");null!==_&&_.addEventListener("click",function(e){e.preventDefault(),simple_comment_editing.allow_delete_confirmation?confirm(simple_comment_editing.confirm_delete)&&u(p,g,b,O,m):u(p,g,b,O,m)});var A=p.parentNode.querySelector(".sce-textarea .sce-comment-cancel");null!==A&&A.addEventListener("click",function(e){e.preventDefault();var t=A.closest(".sce-edit-comment"),r=t.querySelector(".sce-textarea textarea:first-of-type"),n=$r[g];r.value=n,i("sceCommentEditorReset","sce.comment.editor.reset",{textarea:r,commentId:g,postId:b,content:n}),a(r,g,b),c(t,S,!1)});var x=p.parentNode.querySelector(".sce-textarea .sce-comment-save");null!==x&&x.addEventListener("click",function(e){e.preventDefault();var r=p.closest(".sce-edit-comment");if("true"!==r.dataset.sceSubmitting){r.dataset.sceSubmitting="true",s(r,!0),p.parentNode.querySelector(".sce-textarea").style.display="none",p.parentNode.querySelector(".sce-loading").style.display="block";var l=p.parentNode.querySelector(".sce-textarea textarea:first-of-type");i("sceCommentSavePre","sce.comment.editor.save.pre",{button:p,textarea:l,commentId:g,postId:b});var f=l.value.trim();if(""===f&&simple_comment_editing.allow_delete)return confirm(simple_comment_editing.empty_comment)?(r.dataset.sceSubmitting="false",void u(p,g,b,O,m)):(l.value=$r[g],i("sceCommentEditorReset","sce.comment.editor.reset",{textarea:l,commentId:g,postId:b,content:$r[g]}),void c(r,S,!0));var d={action:"sce_save_comment",comment_content:f,comment_id:g,post_id:b,nonce:O};d=qr("sce.comment.save.data",d),t("sce_save_comment",d,m).then(function(e){var t=e.data;if(t&&!0===t.success&&t.data&&"string"==typeof t.data.comment_text){!function(e,t){var r=document.querySelector("#sce-comment".concat(e)),n='[data-ulike-type="comment"][data-ulike-id="'.concat(e,'"]'),o=function(e){return 1===e.nodeType&&e.matches(".wpulike")&&e.querySelector(n)},i=[],a=[],s=!1;r.childNodes.forEach(function(e){o(e)?(s?a:i).push(e):(1===e.nodeType||3===e.nodeType&&e.textContent.trim())&&(s=!0)}),r.innerHTML=t,(i.length||a.length)&&(Array.from(r.querySelectorAll(".wpulike")).filter(o).forEach(function(e){return e.remove()}),r.prepend.apply(r,i),r.append.apply(r,a))}(g,t.data.comment_text),$r[g]=document.querySelector("#sce-edit-comment".concat(g," textarea")).value;var i=new CustomEvent("sceCommentSavePost",{detail:{button:p,textarea:l,commentId:g,postId:b,ajaxData:t.data}});document.dispatchEvent(i),Wr("sce.comment.editor.save.post",{button:p,textarea:l,commentId:g,postId:b,ajaxData:t.data}),a(l,g,b),c(r,S,!1)}else c(r,S,!0),o(g,n(e,simple_comment_editing.comment_deleted_error),!0)}).catch(function(e){c(r,S,!0),o(g,e.message||simple_comment_editing.comment_deleted_error,!0)})}})}}}}}},window.SCE=window.SCE||{},window.SCE.init=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;e&&"function"==typeof e.querySelectorAll&&(Object.keys(zr).forEach(function(e){zr[e].button.isConnected||f(e)}),e.matches&&e.matches(".sce-edit-button")&&window.initEditCommentButton(e),e.querySelectorAll(".sce-edit-button").forEach(window.initEditCommentButton))},"undefined"!=typeof jQuery&&jQuery(document).ready(function(){var e=function(e){var t=e.closest(".comment-form-rating"),r=t.find(".stars");0===r.length&&(e.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

'),r=t.find(".stars"));var n=t.data("selected-rating");e.val(n||""),r.find("a").removeClass("active"),r.toggleClass("selected",Boolean(n)),n&&r.find(".star-"+n).addClass("active")};jQuery(".sce-edit-comment .comment-form-rating select").each(function(){e(jQuery(this))}),document.addEventListener("sceEditTextareaShow",function(t){var r=t.detail.commentId,n=jQuery("#sce-edit-comment".concat(r," .comment-form-rating select"));0!==n.length&&e(n)}),document.addEventListener("sceCommentSavePost",function(e){var t=e.detail,r=t.commentId,n=t.ajaxData;if(n.rating){var o=jQuery("#sce-edit-comment".concat(r," .comment-form-rating")),i=o.find(".stars");i.find("a").removeClass("active"),i.find(".star-"+n.rating).addClass("active"),i.addClass("selected"),o.closest("#comment-"+r).find(".star-rating span").css({width:20*n.rating+"%"}),o.attr("data-selected-rating",n.rating).data("selected-rating",n.rating),o.find("select").val(n.rating)}}),jQuery("body").on("click",".sce-edit-comment .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&&Mr("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.init(),new MutationObserver(function(e){Object.keys(zr).forEach(function(e){zr[e].button.isConnected||f(e)}),e.forEach(function(e){e.addedNodes.forEach(function(e){1===e.nodeType&&window.SCE.init(e)})})}).observe(document.body,{childList:!0,subtree:!0})};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",Jr,{once:!0}):Jr(),window.SCE_comments_updated=function(e){var t="string"==typeof e&&e.match(/comment-(\d+)/);if(t){var r=t[1],n=document.querySelector("#comment-".concat(r));null!==n&&window.SCE&&window.SCE.init&&window.SCE.init(n)}else window.SCE&&window.SCE.init&&window.SCE.init()}})()})(); \ 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?-x(-e):x(e);if(n!==e){var o=String(n),i=b.call(t,o.length+1);return w.call(o,r,"$&_")+"."+w.call(w.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return w.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 w.call(String(e),/"/g,""")}function W(e){return!T||!("object"==typeof e&&(T in e||void 0!==e[T]))}function z(e){return"[object Array]"===V(e)&&W(e)}function $(e){return"[object RegExp]"===V(e)&&W(e)}function H(e){if(C)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 v=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 v?D(t,S):S}if("bigint"==typeof t){var x=String(t)+"n";return v?D(t,x):x}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=A.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=C?w.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):P.call(t);return"object"!=typeof t||C?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&&T&&Object(t)===t&&T 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(w.call(w.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":"")+v.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,w=r(612),v=r(383),O=r(237),S=r(290),E=r(538),_=r(68),A=n(),x=r(345),R=f(),j=p(),P=d(),C=y(),T=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 A},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%":v,"%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%":w,"%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%":A,"%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%":x,"%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%":C,"%Math.pow%":T,"%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 A("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 A("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new A('"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),w=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}}),v=r.cw(function(e,t){var r=S(),n=O(),o=w();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 v=n.call(c,m);v&&("combine"===t.duplicates||g.indexOf("[]=")>-1)?c[m]=r.combine(c[m],h,t.arrayLimit,t.plainObjects,t.throwOnLimitExceeded):v&&"last"!==t.duplicates||(c[m]=h)}}return c}(e,l):e,f=l.plainObjects?{__proto__:null}:{},p=Object.keys(u),d=0;dA)throw new RangeError("Input depth exceeded depth option of "+A);for(var j,P=_,C=0,T=!1;void 0!==(P=P.get(d))&&!T;){var N=P.get(t);if(C+=1,void 0!==N){if(N===C)throw new RangeError("Cyclic object value");T=!0}void 0===P.get(d)&&(C=0)}if((R="function"==typeof h?h(o,R):R)instanceof Date?R=w(R):"comma"===i&&s(R)&&(R=n.maybeMap(R,function(e){return e instanceof Date?w(e):e})),null===R){if(u)return O(m&&!S?m(o,p.encoder,E,"key",v):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",v))+"="+O(m(R,p.encoder,E,"value",v))]:[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=w(),o=x(),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}}),A=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}),x=r.cw(function(e,t){var o=n(),i=b(),a=r(803),s=_(),c=A()||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:C}=Object,{iterator:T,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=C(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=C(e);return!(null!==t&&t!==Object.prototype&&null!==C(t)||I(e,N)||I(e,T))},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&&C(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"),we=(ve="function"==typeof setImmediate,Oe=K(ue.postMessage),ve?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 ve,Oe,Se,Ee;const _e="undefined"!=typeof queueMicrotask?queueMicrotask.bind(ue):"undefined"!=typeof process&&process.nextTick||we,Ae=e=>null!=e&&K(e[T]),xe={isArray:q,isArrayBuffer:$,isBuffer:z,isFormData:e=>{if(!e)return!1;if(re&&e instanceof re)return!0;const t=C(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&&C(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[T]).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=C(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:C(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[T])},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:we,asap:_e,isIterable:Ae,isSafeIterable:e=>null!=e&&I(e,T)&&Ae(e)},Re=xe.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=xe.hasOwnProp(t,r);!r||i&&xe.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"),Ce=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Te(e,t){return xe.isArray(e)?e.map(e=>Te(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 xe.forEach(e.toJSON(),(e,r)=>{t[r]=(e=>Te(e,Ce))(e)}),t}const Le=Symbol("internals");function De(e){return e&&String(e).trim().toLowerCase()}function ke(e){return!1===e||null==e?e:xe.isArray(e)?e.map(ke):(e=>Te(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 xe.isFunction(n)?n.call(this,t,r):(o&&(t=r),xe.isString(t)?xe.isString(n)?-1!==t.indexOf(n):xe.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=xe.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)=>xe.forEach(e,(e,r)=>o(e,r,t));if(xe.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(xe.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i(je(e),t);else if(xe.isObject(e)&&xe.isSafeIterable(e)){let r,n,o=Object.create(null);for(const t of e){if(!xe.isArray(t))throw new TypeError("Object iterator must return a key-value pair");n=t[0],xe.hasOwnProp(o,n)?(r=o[n],o[n]=xe.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=xe.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(xe.isFunction(t))return t.call(this,e,r);if(xe.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=De(e)){const r=xe.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=xe.findKey(r,e);!o||t&&!Ue(0,r[o],o,t)||(delete r[o],n=!0)}}return xe.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 xe.forEach(this,(n,o)=>{const i=xe.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 xe.forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&xe.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 xe.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=xe.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 xe.isArray(e)?e.forEach(n):n(e),this}}Be.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),xe.reduceDescriptors(Be.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),xe.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&&xe.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&&xe.hasOwnProp(e,"redact")?e.redact:void 0,r=xe.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(xe.isBuffer(e))return e;if(-1!==n.indexOf(e))return;let t;if(e instanceof Me&&(e=e.toJSON()),n.push(e),xe.isArray(e))t=[],e.forEach((e,r)=>{const n=o(e);xe.isUndefined(n)||(t[r]=n)});else{if(!xe.isPlainObject(e)&&function(e){if(xe.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(xe.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);xe.isUndefined(e)||(t[n]=e)}}return n.pop(),t};return o(e)}(e,t):xe.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 xe.isPlainObject(e)||xe.isArray(e)}function Ke(e){return xe.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=xe.toFlatObject(xe,{},null,function(e){return/^is[A-Z]/.test(e)}),Ge=function(e,t,r){if(!xe.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(e,t)=>{const n=xe.getSafeProp(r,e);return xe.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&&xe.isSpecCompliantForm(t),f=[];if(!xe.isFunction(i))throw new TypeError("visitor must be a function");function p(e){if(null===e)return"";if(xe.isDate(e))return e.toISOString();if(xe.isBoolean(e))return e.toString();if(!u&&xe.isBlob(e))throw new $e("Blob is not supported. Use a Buffer instead.");if(xe.isArrayBuffer(e)||xe.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(xe.isReactNative(t)&&xe.isReactNativeBlob(e))return t.append(Je(n,r,a),p(e)),!1;if(e&&!n&&"object"==typeof e)if(xe.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(!xe.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(xe.isArray(e)&&function(e){return xe.isArray(e)&&!e.some(He)}(e)||(xe.isFileList(e)||xe.endsWith(r,"[]"))&&(i=xe.toArray(e)))return r=Ke(r),i.forEach(function(e,n){!xe.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(!xe.isObject(e))throw new TypeError("data must be an object");return function e(r,n,o=0){if(!xe.isUndefined(r)){if(d(o),-1!==f.indexOf(r))throw new Error("Circular reference detected in "+n.join("."));f.push(r),xe.forEach(r,function(r,a){!0===(!(xe.isUndefined(r)||null===r)&&i.call(t,r,xe.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=xe.isFunction(r)?{serialize:r}:r,o=xe.getSafeProp(n,"encode")||et,i=xe.getSafeProp(n,"serialize");let a;if(a=i?i(t,n):xe.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{xe.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&&xe.isArray(n)?n.length:i,s?(xe.hasOwnProp(n,i)?n[i]=xe.isArray(n[i])?n[i].concat(r):[n[i],r]:n[i]=r,!a):(xe.hasOwnProp(n,i)&&xe.isObject(n[i])||(n[i]=[]),t(e,r,n[i],o)&&xe.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&&xe.hasOwnProp(e,t)?e[t]:void 0,wt={transitional:st,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=xe.isObject(e);if(o&&xe.isHTMLForm(e)&&(e=new FormData(e)),xe.isFormData(e))return n?JSON.stringify(ht(e)):e;if(xe.isArrayBuffer(e)||xe.isBuffer(e)||xe.isStream(e)||xe.isFile(e)||xe.isBlob(e)||xe.isReadableStream(e))return e;if(xe.isArrayBufferView(e))return e.buffer;if(xe.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&&xe.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...t})}(e,t).toString();if((i=xe.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(xe.isString(e))try{return(0,JSON.parse)(e),xe.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")||wt.transitional,r=t&&t.forcedJSONParsing,n=bt(this,"responseType"),o="json"===n;if(xe.isResponse(e)||xe.isReadableStream(e))return e;if(e&&xe.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}}};xe.forEach(gt,e=>{wt.headers[e]={}});const vt=wt;function Ot(e,t){const r=this||vt,n=t||r,o=Me.from(n.headers);let i=n.data;return xe.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 At=/[\t\n\r]/g;function xt(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||!xe.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]]},Ct=(e,t=xe.asap)=>(...r)=>t(()=>e(...r)),Tt=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)}`];xe.isNumber(r)&&s.push(`expires=${new Date(r).toUTCString()}`),xe.isString(n)&&s.push(`path=${n}`),xe.isString(o)&&s.push(`domain=${o}`),!0===i&&s.push("secure"),xe.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=xt(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 xe.isPlainObject(e)&&xe.isPlainObject(t)?xe.merge.call({caseless:n},e,t):xe.isPlainObject(t)?xe.merge({},t):xe.isArray(t)?t.slice():t}function o(e,t,r,o){return xe.isUndefined(t)?xe.isUndefined(e)?void 0:n(void 0,e,0,o):n(e,t,0,o)}function i(e,t){if(!xe.isUndefined(t))return n(void 0,t)}function a(e,t){return xe.isUndefined(t)?xe.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function s(r,o,i){return xe.hasOwnProp(t,i)?n(r,o):xe.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 xe.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=xe.hasOwnProp(c,n)?c[n]:o,a=i(xe.hasOwnProp(e,n)?e[n]:void 0,xe.hasOwnProp(t,n)?t[n]:void 0,n);xe.isUndefined(a)&&i!==s||(r[n]=a)}),xe.hasOwnProp(t,"validateStatus")&&xe.isUndefined(t.validateStatus)&&!1===function(r){const n=xe.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!xe.isUndefined(n)){if(!xe.isPlainObject(n))return;if(xe.hasOwnProp(n,r))return n[r]}const o=xe.hasOwnProp(e,"transitional")?e.transitional:void 0;if(xe.isPlainObject(o)&&xe.hasOwnProp(o,r))return o[r]}("validateStatusUndefinedResolves")&&(xe.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=>xe.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=xe.getSafeProp(c,"username")||"",r=xe.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(xe.isFormData(n)){const e=xe.getSafeProp(n,"getHeaders");yt.hasStandardBrowserEnv||yt.hasStandardBrowserWebWorkerEnv||xe.isReactNative(n)?s.setContentType(void 0):xe.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&&(xe.isFunction(o)&&(o=o(t)),!0===o||null==o&&Tt(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(xt(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&&xe.forEach(Ne(i),function(e,t){h.setRequestHeader(t,e)}),xe.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=()=>xe.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}=xe,Zt=e=>{if(!xe.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!==xe.global&&null!==xe.global?xe.global:globalThis,{ReadableStream:r,TextEncoder:n}=t;e=xe.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(()=>xe.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(xe.isBlob(e))return e.size;if(xe.isSpecCompliantForm(e)){const t=new i(yt.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return xe.isArrayBufferView(e)||xe.isArrayBuffer(e)?e.byteLength:(xe.isURLSearchParams(e)&&(e+=""),xe.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:w,headers:v,withCredentials:O="same-origin",fetchOptions:S,maxContentLength:E,maxBodyLength:_,maxRedirects:A}=Bt(e);const x=xe.isNumber(E)&&E>-1,R=xe.isNumber(_)&&_>-1;let j=o||fetch;w=w?(w+"").toLowerCase():"text";let P=qt([l,f&&f.toAbortSignal()],p),C=null;const T=P&&P.unsubscribe&&(()=>{P.unsubscribe()});let N,L=null;const D=()=>new $e("Request body larger than maxBodyLength limit",$e.ERR_BAD_REQUEST,e,C);try{let o;const l=(I="auth",xe.hasOwnProp(e,I)?e[I]:void 0);if(l){o={username:xe.getSafeProp(l,"username")||"",password:xe.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&&(v.delete("authorization"),v.set("Authorization","Basic "+btoa((k=(o.username||"")+":"+(o.password||""),encodeURIComponent(k).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))))))),x&&"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,C)}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&&(xe.isReadableStream(s)||xe.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)=>xe.toFiniteNumber(e.getContentLength())??h(t))(v,s),0!==N||f){let e,r=new i(t,{method:"POST",body:s,duplex:"half"});if(xe.isFormData(s)&&(e=r.headers.get("content-type"))&&v.setContentType(e),r.body){const[e,t]=b&&Pt(N,jt(Ct(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,C);xe.isString(O)||(O=O?"include":"omit");const F=c&&"credentials"in i.prototype;if(xe.isFormData(s)){const e=v.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&v.delete("content-type")}v.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(v.normalize()),body:s,duplex:"half",credentials:F?O:void 0});c&&(xe.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===A&&(B.redirect="manual",U&&(U.redirect="manual")),C=c&&new i(t,B);let M=await(c?j(C,U):j(t,B));const q=Me.from(M.headers);if(x){const t=xe.toFiniteNumber(q.getContentLength());if(null!=t&&t>E)throw new $e("maxContentLength size of "+E+" exceeded",$e.ERR_BAD_RESPONSE,e,C)}const W=y&&("stream"===w||"response"===w);if(y&&M.body&&(g||x||W&&T)){const t={};["status","statusText","headers"].forEach(e=>{t[e]=M[e]});const r=xe.toFiniteNumber(q.getContentLength()),[n,o]=g&&Pt(r,jt(Ct(g),!0))||[];let i=0;const s=t=>{if(x&&(i=t,i>E))throw new $e("maxContentLength size of "+E+" exceeded",$e.ERR_BAD_RESPONSE,e,C);n&&n(t)};M=new a(zt(M.body,65536,s,()=>{o&&o(),T&&T()}),t)}w=w||"text";let z=await m[xe.findKey(m,w)||"text"](M,e);if(x&&!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,C)}return!W&&T&&T(),await new Promise((t,r)=>{_t(t,r,{data:z,headers:Me.from(M.headers),status:M.status,statusText:M.statusText,config:e,request:C})})}catch(t){if(T&&T(),P&&P.aborted&&P.reason instanceof $e){const r=P.reason;throw r.config=e,C&&(r.request=C),t!==r&&Object.defineProperty(r,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),r}if(L)throw C&&!L.request&&(L.request=C),L;if(t instanceof $e)throw C&&!t.request&&(t.request=C),t;if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message)){const r=new $e("Network Error",$e.ERR_NETWORK,e,C,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,C,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}});xe.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=>xe.isFunction(e)||null===e||!1===e,ar=function(e,t){e=xe.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=xe.toSafeFlatObject(e);return sr(t),t.headers=Me.from(xe.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||vt.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&&(xe.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=(xe.getSafeProp(t,"method")||xe.getSafeProp(this.defaults,"method")||"get").toLowerCase();let i=o&&xe.merge(o.common,o[t.method]);o&&xe.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,wr=function e(t){const r=new yr(t),n=j(yr.prototype.request,r);return xe.extend(n,yr.prototype,r,{allOwnKeys:!0}),xe.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(Ft(t,r))},n}(vt);wr.Axios=yr,wr.CanceledError=Et,wr.CancelToken=hr,wr.isCancel=St,wr.VERSION="1.20.0",wr.toFormData=Ge,wr.AxiosError=$e,wr.Cancel=wr.CanceledError,wr.all=function(e){return Promise.all(e)},wr.spread=function(e){return function(t){return e.apply(null,t)}},wr.isAxiosError=function(e){return xe.isObject(e)&&!0===e.isAxiosError},wr.mergeConfig=Ft,wr.AxiosHeaders=Me,wr.formToJSON=e=>ht(xe.isHTMLForm(e)?new FormData(e):e),wr.getAdapter=ar,wr.HttpStatusCode=br,wr.default=wr;const vr=wr;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 v().stringify(e,{arrayFormat:"brackets"})},data:v().stringify(t)};return vr(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(e){return function(e){if(Array.isArray(e))return _r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return _r(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_r(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _r(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw new TypeError(Sr(e)+" is not iterable")}function Rr(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 jr(e,t,r,n,o){var i=Pr(e,t,r,n,o);return i.next().then(function(e){return e.done?e.value:i.next()})}function Pr(e,t,r,n,o){return new Cr(Tr().w(e,t,r,n),o||Promise)}function Cr(e,t){function r(n,o,i,a){try{var s=e[n](o),c=s.value;return c instanceof Lr?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||(Nr(Cr.prototype),Nr(Cr.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),Nr(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 Tr(){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 Nr(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]())):(Nr(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,Nr(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return c.prototype=l,Nr(f,"constructor",l),Nr(l,"constructor",c),c.displayName="GeneratorFunction",Nr(l,o,"GeneratorFunction"),Nr(f),Nr(f,o,"Generator"),Nr(f,n,function(){return this}),Nr(f,"toString",function(){return"[object Generator]"}),(Tr=function(){return{w:i,m:p}})()}function Nr(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Nr=function(e,t,r,n){function i(t,r){Nr(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))},Nr(e,t,r,n)}function Lr(e,t){this.v=e,this.k=t}function Dr(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 kr(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){Dr(i,n,o,a,s,"next",e)}function s(e){Dr(i,n,o,a,s,"throw",e)}a(void 0)})}}var Ir=wp.i18n,Fr=Ir.__,Ur=Ir._n,Br=wp.hooks,Mr=Br.addFilter,qr=Br.applyFilters,Wr=Br.doAction,zr=[],$r=[],Hr=[],Kr=new WeakSet,Jr=function(){document.addEventListener("wpacAfterUpdateComments",function(e){window.SCE_comments_updated(e.detail&&e.detail.commentUrl)}),Mr("sce.comment.save.data","comment-edit-lite",function(e){var t=document.querySelector("#sce-edit-comment".concat(e.comment_id));if(null===t)return e;var r=t.querySelector('.comment-form-rating select[name="rating"]'),n=t.querySelector("#woo_edit_comment_nonce_"+e.comment_id);return null!==r&&/^[1-5]$/.test(r.value)&&null!==n&&(e.wooEditCommentNonce=n.value,e.rating=r.value),e});var e=function(){var e=kr(Ar().mark(function e(t,r,n,o){var i;return Ar().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)}}(),t=function(){var e=kr(Ar().mark(function e(t,r,n){var o;return Ar().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)}}(),r=function(e){e.classList.remove("sce-hide"),e.classList.add("sce-show")},n=function(e,t){var r=e&&e.data?e.data:{},n=r.data||{};return n.error||n.message||r.error||t},o=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")},i=function(e,t,r){document.dispatchEvent(new CustomEvent(e,{detail:r})),Wr(t,r)},a=function(e,t,r){var n=Hr[t];n&&(i("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 Hr[t])},s=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")})},c=function(e,t,r){var n=e.querySelector(".sce-textarea"),o=e.querySelector(".sce-loading"),i=e.querySelector(".sce-edit-button");s(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")},l=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+" "+Ur("day","days",n,"simple-comment-editing"),r+=" "+Fr("and","simple-comment-editing")+" ",a-=86400*n),(o=Math.floor(a/3600)%24)>=0&&(o>0&&(r+=o+" "+Ur("hour","hours",o,"simple-comment-editing"),r+=" "+Fr("and","simple-comment-editing")+" "),a-=3600*o),a-=i=Math.floor(a/60)%60,e>0&&(r+=i+" "+Ur("minute","minutes",i,"simple-comment-editing")),t>0&&(r+=" "+Fr("and","simple-comment-editing")+" ",r+=t+" "+Ur("second","seconds",t,"simple-comment-editing"))}else r+=t+" "+Ur("second","seconds",t,"simple-comment-editing");return qr("sce.comment.timer.text",r,Ur("day","days",n,"simple-comment-editing"),Ur("hour","hours",o,"simple-comment-editing"),Ur("minute","minutes",i,"simple-comment-editing"),Ur("second","seconds",t,"simple-comment-editing"),n,o,i,t)},u=function(){var e=kr(Ar().mark(function e(t,r,i,l,u){var f,p,d,y,m,h,g,b,w;return Ar().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-textarea"),d=null!==p&&"none"!==p.style.display,y=f.querySelector(".sce-loading"),f.dataset.sceSubmitting="true",s(f,!0),null!==y&&(y.style.display="block"),e.prev=9,e.next=12,Or("sce_delete_comment",{comment_id:r,post_id:i,nonce:l},u);case 12:if((m=e.sent).data&&!0===m.data.success){e.next=15;break}throw new Error(n(m,simple_comment_editing.comment_deleted_error));case 15:if(a(f.querySelector(".sce-comment-text"),r,i),!m.data.data||!m.data.data.placeholder){e.next=34;break}if(delete $r[r],zr[r]&&(zr[r].minutes=0,zr[r].seconds=0),null!==(h=document.querySelector("#comment-"+r))){e.next=23;break}return window.location.reload(),e.abrupt("return");case 23:return g=Array.from(h.children).filter(function(e){return e.classList.contains("children")}),(b=document.createElement("div")).className="sce-deleted-placeholder",b.setAttribute("role","status"),b.tabIndex=-1,b.textContent=simple_comment_editing.deleted_placeholder,h.replaceChildren.apply(h,[b].concat(Er(g))),Array.from(h.attributes).forEach(function(e){"id"!==e.name&&h.removeAttribute(e.name)}),h.className="comment sce-deleted-comment",b.focus(),e.abrupt("return");case 34:o(r,simple_comment_editing.comment_deleted),setTimeout(function(){var e=document.querySelector("#comment-"+r);null!==e&&e.remove(),f.remove()},3e3),e.next=43;break;case 38:e.prev=38,e.t0=e.catch(9),w=f.querySelector(".sce-edit-button-main"),c(f,w,d),o(r,e.t0.message||simple_comment_editing.comment_deleted_error,!0);case 43:case"end":return e.stop()}},e,null,[[9,38]])}));return function(t,r,n,o,i){return e.apply(this,arguments)}}(),f=function(e){var t=zr[e];t&&(window.clearTimeout(t.timeout),a(t.wrapper.querySelector(".sce-comment-text"),e,t.postId),delete zr[e],delete $r[e])};window.initEditCommentButton=function(p){if(p&&p.isConnected){var d=p.querySelector(".sce-edit-button-main, .sce-delete-button-main");if(null!==d){var y,m=(y=d).dataset.sceAjaxUrl||y.getAttribute("href"),h=new URL(m,window.location.href).searchParams,g=h.get("cid"),b=h.get("pid");if(/^\d+$/.test(g)&&/^\d+$/.test(b)&&(!zr[g]||zr[g].button!==p)){f(g);var w={button:p,postId:b,wrapper:p.parentNode,timeout:null};zr[g]=w;var v=p.parentNode.querySelector("textarea");if(!v||Kr.has(p)&&void 0!==$r[g]||($r[g]=v.value),e(g,b,simple_comment_editing.nonce,m).then(function(e){if(zr[g]===w&&p.isConnected){if(!e.data||!0!==e.data.success||!e.data.data)throw new Error(n(e,simple_comment_editing.comment_deleted_error));var t=e.data.data,o=t.minutes,i=t.seconds,a=t.can_edit;if(!a)return f(g),void p.parentNode.remove();if(!0===a)if("unlimited"!==o||"unlimited"!==i){o=parseInt(o),i=parseInt(i);var s=l(o,i),c=p.querySelector(".sce-timer");null!==c&&(c.textContent=s);var u=p.parentNode.querySelectorAll(".sce-textarea .sce-timer");null!==u&&u.forEach(function(e){e.textContent=s}),r(p);var d=new CustomEvent("sceTimerLoaded",{detail:{button:p,commentId:g,postId:b}});document.dispatchEvent(d),zr[g]===w&&p.isConnected&&(Object.assign(w,{minutes:o,seconds:i,start:(new Date).getTime(),time:0,timer:function(){if(zr[g]===w&&p.isConnected){var e=zr[g].seconds-1,t=zr[g].minutes;if(t<=0&&e<=0)return f(g),void p.parentNode.remove();e<0&&(t-=1,e=59);var r=l(t,e),n=p.querySelector(".sce-timer");null!==n&&(n.textContent=r);var o=p.parentNode.querySelectorAll(".sce-textarea .sce-timer");null!==o&&o.forEach(function(e){e.textContent=r});var i=new CustomEvent("sceTimerCountdown",{detail:{button:p,commentId:g,postId:b,timer_seconds:e,timer_minutes:t}});if(document.dispatchEvent(i),zr[g]===w&&p.isConnected){zr[g].seconds=e,zr[g].minutes=t;var a=zr[g];a.time+=1e3;var s=(new Date).getTime()-a.start-a.time;w.timeout=window.setTimeout(a.timer,Math.max(0,1e3-s))}}else zr[g]===w&&f(g)}}),w.timeout=window.setTimeout(w.timer,1e3))}else{r(p);var y=new CustomEvent("sceTimerLoaded",{detail:{button:p,commentId:g,postId:b}});document.dispatchEvent(y)}else p.parentNode.remove()}}).catch(function(e){zr[g]===w&&p.isConnected&&(delete zr[g],function(e){e.classList.remove("sce-show"),e.classList.add("sce-hide")}(p),o(g,e.message||simple_comment_editing.comment_deleted_error,!0))}),!Kr.has(p)){Kr.add(p);var O=h.get("nonce"),S=p.querySelector(".sce-edit-button-main");if(null!==S){S.addEventListener("click",function(e){e.preventDefault();var t=S.closest(".sce-edit-comment");if("true"!==t.dataset.sceSubmitting){var r=document.querySelector("#sce-edit-comment-status".concat(g));null!==r&&(r.classList.remove("sce-error"),r.classList.remove("sce-success"),r.classList.add("sce-status"),r.style.display="none"),s(t,!1),t.querySelector(".sce-textarea").style.display="block",S.parentNode.style.display="none",S.setAttribute("aria-expanded","true");var n=t.querySelector(".sce-textarea textarea:first-of-type");!function(e,t,r){if(!Hr[t]){var n={textareaId:e.id,quicktags:!1};Hr[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,i("sceCommentQuicktagsInit","sce.comment.editor.quicktags.init",{textarea:e,commentId:t,postId:r}))}}(n,g,b);var o=new CustomEvent("sceEditTextareaShow",{detail:{textarea:n,commentId:g,postId:b}});document.dispatchEvent(o),Wr("sce.comment.editor.show",{textarea:n,commentId:g,postId:b}),n.focus()}});var E=p.querySelector(".sce-delete-button-main");null!==E&&E.addEventListener("click",function(e){e.preventDefault(),simple_comment_editing.allow_delete_confirmation?confirm(simple_comment_editing.confirm_delete)&&u(p,g,b,O,m):u(p,g,b,O,m)});var _=p.parentNode.querySelector(".sce-textarea .sce-comment-delete");null!==_&&_.addEventListener("click",function(e){e.preventDefault(),simple_comment_editing.allow_delete_confirmation?confirm(simple_comment_editing.confirm_delete)&&u(p,g,b,O,m):u(p,g,b,O,m)});var A=p.parentNode.querySelector(".sce-textarea .sce-comment-cancel");null!==A&&A.addEventListener("click",function(e){e.preventDefault();var t=A.closest(".sce-edit-comment"),r=t.querySelector(".sce-textarea textarea:first-of-type"),n=$r[g];r.value=n,i("sceCommentEditorReset","sce.comment.editor.reset",{textarea:r,commentId:g,postId:b,content:n}),a(r,g,b),c(t,S,!1)});var x=p.parentNode.querySelector(".sce-textarea .sce-comment-save");null!==x&&x.addEventListener("click",function(e){e.preventDefault();var r=p.closest(".sce-edit-comment");if("true"!==r.dataset.sceSubmitting){r.dataset.sceSubmitting="true",s(r,!0),p.parentNode.querySelector(".sce-textarea").style.display="none",p.parentNode.querySelector(".sce-loading").style.display="block";var l=p.parentNode.querySelector(".sce-textarea textarea:first-of-type");i("sceCommentSavePre","sce.comment.editor.save.pre",{button:p,textarea:l,commentId:g,postId:b});var f=l.value.trim();if(""===f&&simple_comment_editing.allow_delete)return confirm(simple_comment_editing.empty_comment)?(r.dataset.sceSubmitting="false",void u(p,g,b,O,m)):(l.value=$r[g],i("sceCommentEditorReset","sce.comment.editor.reset",{textarea:l,commentId:g,postId:b,content:$r[g]}),void c(r,S,!0));var d={action:"sce_save_comment",comment_content:f,comment_id:g,post_id:b,nonce:O};d=qr("sce.comment.save.data",d),t("sce_save_comment",d,m).then(function(e){var t=e.data;if(t&&!0===t.success&&t.data&&"string"==typeof t.data.comment_text){!function(e,t){var r=document.querySelector("#sce-comment".concat(e)),n='[data-ulike-type="comment"][data-ulike-id="'.concat(e,'"]'),o=function(e){return 1===e.nodeType&&e.matches(".wpulike")&&e.querySelector(n)},i=[],a=[],s=!1;r.childNodes.forEach(function(e){o(e)?(s?a:i).push(e):(1===e.nodeType||3===e.nodeType&&e.textContent.trim())&&(s=!0)}),r.innerHTML=t,(i.length||a.length)&&(Array.from(r.querySelectorAll(".wpulike")).filter(o).forEach(function(e){return e.remove()}),r.prepend.apply(r,i),r.append.apply(r,a))}(g,t.data.comment_text),$r[g]=document.querySelector("#sce-edit-comment".concat(g," textarea")).value;var i=new CustomEvent("sceCommentSavePost",{detail:{button:p,textarea:l,commentId:g,postId:b,ajaxData:t.data}});document.dispatchEvent(i),Wr("sce.comment.editor.save.post",{button:p,textarea:l,commentId:g,postId:b,ajaxData:t.data}),a(l,g,b),c(r,S,!1)}else c(r,S,!0),o(g,n(e,simple_comment_editing.comment_deleted_error),!0)}).catch(function(e){c(r,S,!0),o(g,e.message||simple_comment_editing.comment_deleted_error,!0)})}})}}}}}},window.SCE=window.SCE||{},window.SCE.init=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;e&&"function"==typeof e.querySelectorAll&&(Object.keys(zr).forEach(function(e){zr[e].button.isConnected||f(e)}),e.matches&&e.matches(".sce-edit-button")&&window.initEditCommentButton(e),e.querySelectorAll(".sce-edit-button").forEach(window.initEditCommentButton))},"undefined"!=typeof jQuery&&jQuery(document).ready(function(){var e=function(e){var t=e.closest(".comment-form-rating"),r=t.find(".stars");0===r.length&&(e.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

'),r=t.find(".stars"));var n=t.data("selected-rating");e.val(n||""),r.find("a").removeClass("active"),r.toggleClass("selected",Boolean(n)),n&&r.find(".star-"+n).addClass("active")};jQuery(".sce-edit-comment .comment-form-rating select").each(function(){e(jQuery(this))}),document.addEventListener("sceEditTextareaShow",function(t){var r=t.detail.commentId,n=jQuery("#sce-edit-comment".concat(r," .comment-form-rating select"));0!==n.length&&e(n)}),document.addEventListener("sceCommentSavePost",function(e){var t=e.detail,r=t.commentId,n=t.ajaxData;if(n.rating){var o=jQuery("#sce-edit-comment".concat(r," .comment-form-rating")),i=o.find(".stars");i.find("a").removeClass("active"),i.find(".star-"+n.rating).addClass("active"),i.addClass("selected"),o.closest("#comment-"+r).find(".star-rating span").css({width:20*n.rating+"%"}),o.attr("data-selected-rating",n.rating).data("selected-rating",n.rating),o.find("select").val(n.rating)}}),jQuery("body").on("click",".sce-edit-comment .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&&Mr("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.init(),new MutationObserver(function(e){Object.keys(zr).forEach(function(e){zr[e].button.isConnected||f(e)}),e.forEach(function(e){e.addedNodes.forEach(function(e){1===e.nodeType&&window.SCE.init(e)})})}).observe(document.body,{childList:!0,subtree:!0})};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",Jr,{once:!0}):Jr(),window.SCE_comments_updated=function(e){var t="string"==typeof e&&e.match(/comment-(\d+)/);if(t){var r=t[1],n=document.querySelector("#comment-".concat(r));null!==n&&window.SCE&&window.SCE.init&&window.SCE.init(n)}else window.SCE&&window.SCE.init&&window.SCE.init()}})()})(); \ No newline at end of file diff --git a/dist/sce-frontend.css b/dist/sce-frontend.css index 5cd5384..129bee1 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-deleted-placeholder,.sce-edited-at{color:inherit;font-size:inherit;font-style:italic;overflow-wrap:anywhere}.sce-deleted-placeholder{padding-block:.5em}.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}.sce-edit-comment .comment-form-rating{display:flex;align-items:center;justify-content:flex-start}.sce-edit-comment .comment-form-rating label{margin-right:10px}.sce-edit-comment .comment-form-rating p.stars{margin:0!important;padding:0!important}.sce-edit-comment .comment-form-rating p.stars span{display:flex;align-items:center}.woocommerce #reviews .sce-edit-comment .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-deleted-placeholder,.sce-edited-at{color:inherit;font-size:inherit;font-style:italic;overflow-wrap:anywhere}.sce-deleted-placeholder{padding-block:.5em}.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}.sce-edit-comment .comment-form-rating{display:flex;align-items:center;justify-content:flex-start}.sce-edit-comment .comment-form-rating label{margin-right:10px}.sce-edit-comment .comment-form-rating p.stars{margin:0!important;padding:0!important}.sce-edit-comment .comment-form-rating p.stars span{display:flex;align-items:center}.woocommerce #reviews .sce-edit-comment .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 16f7a2a..faf442a 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,uEAOA,iHAQA,4CAKC,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,kGAKC,+DAGA,sFAKA,oFAKD","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\n// Indicators inherit theme contrast and wrap without introducing a new layout.\n.sce-edited-at,\n.sce-deleted-placeholder {\n\tcolor: inherit;\n\tfont-size: inherit;\n\tfont-style: italic;\n\toverflow-wrap: anywhere;\n}\n\n.sce-deleted-placeholder {\n\tpadding-block: 0.5em;\n}\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.sce-edit-comment .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 .sce-edit-comment .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,uEAOA,iHAQA,4CAIA,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,kGAKC,+DAGA,sFAKA,oFAKD","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\n// Indicators inherit theme contrast and wrap without introducing a new layout.\n.sce-edited-at,\n.sce-deleted-placeholder {\n\tcolor: inherit;\n\tfont-size: inherit;\n\tfont-style: italic;\n\toverflow-wrap: anywhere;\n}\n\n.sce-deleted-placeholder {\n\tpadding-block: 0.5em;\n}\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.sce-edit-comment .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 .sce-edit-comment .comment-form-rating .stars a {\n\ttop: unset;\n}\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/readme.txt b/readme.txt index 0024449..8708dfb 100644 --- a/readme.txt +++ b/readme.txt @@ -94,6 +94,10 @@ not block comment-query loops or arbitrary custom renderers. With pagination, deleted branches stay with a visible live ancestor; otherwise they appear on the default view / first comment page. Placeholders do not change the public comment count or add pages. The GitHub README documents the metadata and recovery policy. += Can edit controls appear without the fade-in delay? = +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 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. @@ -177,6 +181,7 @@ You can report security bugs through the Patchstack Vulnerability Disclosure Pro = Unreleased = * Fix: On multisite, read settings from the same place they are saved, so sub-sites that are not network-activated use and display their own settings instead of defaults. * Fix: Preserve WP ULike comment buttons, their vote state, and their top/bottom placement after inline comment saves. +* 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 moderator-only comment/subtree movement with a native admin preview, explicit confirmation, thread/count preservation, and recovery records. * New: Add opt-in localized edited timestamps and privacy-preserving deleted placeholders for native classic comment lists, with threaded replies and WordPress Trash restoration. diff --git a/simple-comment-editing.php b/simple-comment-editing.php index 599f66d..a36f2af 100644 --- a/simple-comment-editing.php +++ b/simple-comment-editing.php @@ -417,6 +417,19 @@ public function add_edit_interface( $comment_content, $passed_comment = false ) $comment_wrapper = sprintf( '
%s
', $comment_id, $comment_content ); $classes = array( 'sce-edit-comment' ); + /** + * 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'; + } /** * Filter: sce_wrapper_class * diff --git a/src/js/comment-editing/editing.js b/src/js/comment-editing/editing.js index 6a179a8..4eae7b0 100644 --- a/src/js/comment-editing/editing.js +++ b/src/js/comment-editing/editing.js @@ -496,6 +496,12 @@ const setup = () => { return; } + // 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 ); @@ -614,7 +620,8 @@ const setup = () => { return; } delete timers[ commentId ]; // Allow an explicit retry after a failed request. - showEditButton( button ); + // A failed permission request must not expose cached author controls. + hideEditButton( button ); showStatus( commentId, error.message || simple_comment_editing.comment_deleted_error, true ); } ); diff --git a/src/scss/frontend.scss b/src/scss/frontend.scss index c0ce1f5..bc04e40 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; @@ -43,6 +44,14 @@ Animation for showing container */ padding-block: 0.5em; } +.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;