/
home
/
sharedstore
/
public_html
/
shop.sharedstore.ma
/
static
/
js
/
/home/sharedstore/public_html/shop.sharedstore.ma/static/js
mkdir
upload
Name
Size
Mode
Actions
main.eb7e00fb.js
1461826
0644
edit
dl
rm
main.eb7e00fb.js.LICENSE.txt
3416
0644
edit
dl
rm
main.eb7e00fb.js.map
31825620
0644
edit
dl
rm
Edit:
/home/sharedstore/public_html/shop.sharedstore.ma/static/js/main.eb7e00fb.js
(1461826B)
/*! For license information please see main.eb7e00fb.js.LICENSE.txt */ (()=>{var e={4695:e=>{function t(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("function"!==typeof e)throw new TypeError(`Expected the first parameter to be a function, got \`${typeof e}\`.`);if(t<0)throw new RangeError("`wait` must not be negative.");const{immediate:n}="boolean"===typeof r?{immediate:r}:r;let o,a,i,s,l;function c(){const t=o,r=a;return o=void 0,a=void 0,l=e.apply(t,r),l}function u(){const e=Date.now()-s;e<t&&e>=0?i=setTimeout(u,t-e):(i=void 0,n||(l=c()))}const d=function(){if(o&&this!==o)throw new Error("Debounced method called with different contexts.");o=this;for(var e=arguments.length,r=new Array(e),d=0;d<e;d++)r[d]=arguments[d];a=r,s=Date.now();const f=n&&!i;return i||(i=setTimeout(u,t)),f&&(l=c()),l};return d.clear=()=>{i&&(clearTimeout(i),i=void 0)},d.flush=()=>{i&&d.trigger()},d.trigger=()=>{l=c(),d.clear()},d}e.exports.debounce=t,e.exports=t},219:(e,t,r)=>{"use strict";var n=r(3763),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return n.isMemo(e)?i:s[e.$$typeof]||o}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=i;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,r,n){if("string"!==typeof r){if(h){var o=p(r);o&&o!==h&&e(t,o,n)}var i=u(r);d&&(i=i.concat(d(r)));for(var s=l(t),m=l(r),g=0;g<i.length;++g){var b=i[g];if(!a[b]&&(!n||!n[b])&&(!m||!m[b])&&(!s||!s[b])){var y=f(r,b);try{c(t,b,y)}catch(x){}}}}return t}},4983:(e,t)=>{"use strict";var r="function"===typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,i=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,b=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,x=r?Symbol.for("react.responder"):60118,v=r?Symbol.for("react.scope"):60119;function w(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case u:case d:case a:case s:case i:case p:return e;default:switch(e=e&&e.$$typeof){case c:case f:case g:case m:case l:return e;default:return t}}case o:return t}}}function k(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=n,t.ForwardRef=f,t.Fragment=a,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=i,t.Suspense=p,t.isAsyncMode=function(e){return k(e)||w(e)===u},t.isConcurrentMode=k,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===i},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===a||e===d||e===s||e===i||e===p||e===h||"object"===typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===f||e.$$typeof===y||e.$$typeof===x||e.$$typeof===v||e.$$typeof===b)},t.typeOf=w},3763:(e,t,r)=>{"use strict";e.exports=r(4983)},7685:(e,t,r)=>{var n=r(7937)(r(6552),"DataView");e.exports=n},8724:(e,t,r)=>{var n=r(7615),o=r(5051),a=r(2154),i=r(8734),s=r(2662);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=o,l.prototype.get=a,l.prototype.has=i,l.prototype.set=s,e.exports=l},7160:(e,t,r)=>{var n=r(7563),o=r(9935),a=r(4190),i=r(9565),s=r(1714);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=o,l.prototype.get=a,l.prototype.has=i,l.prototype.set=s,e.exports=l},5204:(e,t,r)=>{var n=r(7937)(r(6552),"Map");e.exports=n},4816:(e,t,r)=>{var n=r(7251),o=r(7159),a=r(438),i=r(9394),s=r(6874);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=o,l.prototype.get=a,l.prototype.has=i,l.prototype.set=s,e.exports=l},5387:(e,t,r)=>{var n=r(7937)(r(6552),"Promise");e.exports=n},2070:(e,t,r)=>{var n=r(7937)(r(6552),"Set");e.exports=n},8902:(e,t,r)=>{var n=r(4816),o=r(6179),a=r(6704);function i(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}i.prototype.add=i.prototype.push=o,i.prototype.has=a,e.exports=i},5538:(e,t,r)=>{var n=r(7160),o=r(4545),a=r(793),i=r(7760),s=r(3892),l=r(6788);function c(e){var t=this.__data__=new n(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=a,c.prototype.get=i,c.prototype.has=s,c.prototype.set=l,e.exports=c},9812:(e,t,r)=>{var n=r(6552).Symbol;e.exports=n},2929:(e,t,r)=>{var n=r(6552).Uint8Array;e.exports=n},6600:(e,t,r)=>{var n=r(7937)(r(6552),"WeakMap");e.exports=n},7529:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,a=[];++r<n;){var i=e[r];t(i,r,e)&&(a[o++]=i)}return a}},3204:(e,t,r)=>{var n=r(3343),o=r(2777),a=r(4052),i=r(4543),s=r(9194),l=r(1268),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=a(e),u=!r&&o(e),d=!r&&!u&&i(e),f=!r&&!u&&!d&&l(e),p=r||u||d||f,h=p?n(e.length,String):[],m=h.length;for(var g in e)!t&&!c.call(e,g)||p&&("length"==g||d&&("offset"==g||"parent"==g)||f&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,m))||h.push(g);return h}},8895:e=>{e.exports=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}},2587:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}},1340:(e,t,r)=>{var n=r(3211);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},4262:(e,t,r)=>{var n=r(8895),o=r(4052);e.exports=function(e,t,r){var a=t(e);return o(e)?a:n(a,r(e))}},6913:(e,t,r)=>{var n=r(9812),o=r(4552),a=r(6095),i=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":i&&i in Object(e)?o(e):a(e)}},5193:(e,t,r)=>{var n=r(6913),o=r(2761);e.exports=function(e){return o(e)&&"[object Arguments]"==n(e)}},6989:(e,t,r)=>{var n=r(6399),o=r(2761);e.exports=function e(t,r,a,i,s){return t===r||(null==t||null==r||!o(t)&&!o(r)?t!==t&&r!==r:n(t,r,a,i,e,s))}},6399:(e,t,r)=>{var n=r(5538),o=r(3668),a=r(9987),i=r(5752),s=r(6924),l=r(4052),c=r(4543),u=r(1268),d="[object Arguments]",f="[object Array]",p="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,m,g,b){var y=l(e),x=l(t),v=y?f:s(e),w=x?f:s(t),k=(v=v==d?p:v)==p,j=(w=w==d?p:w)==p,N=v==w;if(N&&c(e)){if(!c(t))return!1;y=!0,k=!1}if(N&&!k)return b||(b=new n),y||u(e)?o(e,t,r,m,g,b):a(e,t,v,r,m,g,b);if(!(1&r)){var C=k&&h.call(e,"__wrapped__"),S=j&&h.call(t,"__wrapped__");if(C||S){var E=C?e.value():e,A=S?t.value():t;return b||(b=new n),g(E,A,r,m,b)}}return!!N&&(b||(b=new n),i(e,t,r,m,g,b))}},6954:(e,t,r)=>{var n=r(1629),o=r(7857),a=r(6686),i=r(6996),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,f=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||o(e))&&(n(e)?f:s).test(i(e))}},5428:(e,t,r)=>{var n=r(6913),o=r(6173),a=r(2761),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,e.exports=function(e){return a(e)&&o(e.length)&&!!i[n(e)]}},3713:(e,t,r)=>{var n=r(6140),o=r(1143),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var t=[];for(var r in Object(e))a.call(e,r)&&"constructor"!=r&&t.push(r);return t}},3343:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},7574:e=>{e.exports=function(e){return function(t){return e(t)}}},8114:e=>{e.exports=function(e,t){return e.has(t)}},3440:(e,t,r)=>{var n=r(6552)["__core-js_shared__"];e.exports=n},3668:(e,t,r)=>{var n=r(8902),o=r(2587),a=r(8114);e.exports=function(e,t,r,i,s,l){var c=1&r,u=e.length,d=t.length;if(u!=d&&!(c&&d>u))return!1;var f=l.get(e),p=l.get(t);if(f&&p)return f==t&&p==e;var h=-1,m=!0,g=2&r?new n:void 0;for(l.set(e,t),l.set(t,e);++h<u;){var b=e[h],y=t[h];if(i)var x=c?i(y,b,h,t,e,l):i(b,y,h,e,t,l);if(void 0!==x){if(x)continue;m=!1;break}if(g){if(!o(t,(function(e,t){if(!a(g,t)&&(b===e||s(b,e,r,i,l)))return g.push(t)}))){m=!1;break}}else if(b!==y&&!s(b,y,r,i,l)){m=!1;break}}return l.delete(e),l.delete(t),m}},9987:(e,t,r)=>{var n=r(9812),o=r(2929),a=r(3211),i=r(3668),s=r(4160),l=r(2074),c=n?n.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,r,n,c,d,f){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return a(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=s;case"[object Set]":var h=1&n;if(p||(p=l),e.size!=t.size&&!h)return!1;var m=f.get(e);if(m)return m==t;n|=2,f.set(e,t);var g=i(p(e),p(t),n,c,d,f);return f.delete(e),g;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},5752:(e,t,r)=>{var n=r(9395),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,a,i,s){var l=1&r,c=n(e),u=c.length;if(u!=n(t).length&&!l)return!1;for(var d=u;d--;){var f=c[d];if(!(l?f in t:o.call(t,f)))return!1}var p=s.get(e),h=s.get(t);if(p&&h)return p==t&&h==e;var m=!0;s.set(e,t),s.set(t,e);for(var g=l;++d<u;){var b=e[f=c[d]],y=t[f];if(a)var x=l?a(y,b,f,t,e,s):a(b,y,f,e,t,s);if(!(void 0===x?b===y||i(b,y,r,a,s):x)){m=!1;break}g||(g="constructor"==f)}if(m&&!g){var v=e.constructor,w=t.constructor;v==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof w&&w instanceof w||(m=!1)}return s.delete(e),s.delete(t),m}},7105:(e,t,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},9395:(e,t,r)=>{var n=r(4262),o=r(9621),a=r(8673);e.exports=function(e){return n(e,a,o)}},2622:(e,t,r)=>{var n=r(705);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},7937:(e,t,r)=>{var n=r(6954),o=r(4657);e.exports=function(e,t){var r=o(e,t);return n(r)?r:void 0}},4552:(e,t,r)=>{var n=r(9812),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=a.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(l){}var o=i.call(e);return n&&(t?e[s]=r:delete e[s]),o}},9621:(e,t,r)=>{var n=r(7529),o=r(7828),a=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(e){return null==e?[]:(e=Object(e),n(i(e),(function(t){return a.call(e,t)})))}:o;e.exports=s},6924:(e,t,r)=>{var n=r(7685),o=r(5204),a=r(5387),i=r(2070),s=r(6600),l=r(6913),c=r(6996),u="[object Map]",d="[object Promise]",f="[object Set]",p="[object WeakMap]",h="[object DataView]",m=c(n),g=c(o),b=c(a),y=c(i),x=c(s),v=l;(n&&v(new n(new ArrayBuffer(1)))!=h||o&&v(new o)!=u||a&&v(a.resolve())!=d||i&&v(new i)!=f||s&&v(new s)!=p)&&(v=function(e){var t=l(e),r="[object Object]"==t?e.constructor:void 0,n=r?c(r):"";if(n)switch(n){case m:return h;case g:return u;case b:return d;case y:return f;case x:return p}return t}),e.exports=v},4657:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},7615:(e,t,r)=>{var n=r(5575);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},5051:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},2154:(e,t,r)=>{var n=r(5575),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(t,e)?t[e]:void 0}},8734:(e,t,r)=>{var n=r(5575),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:o.call(t,e)}},2662:(e,t,r)=>{var n=r(5575);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},9194:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},705:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},7857:(e,t,r)=>{var n=r(3440),o=function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!o&&o in e}},6140:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},7563:e=>{e.exports=function(){this.__data__=[],this.size=0}},9935:(e,t,r)=>{var n=r(1340),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():o.call(t,r,1),--this.size,!0)}},4190:(e,t,r)=>{var n=r(1340);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},9565:(e,t,r)=>{var n=r(1340);e.exports=function(e){return n(this.__data__,e)>-1}},1714:(e,t,r)=>{var n=r(1340);e.exports=function(e,t){var r=this.__data__,o=n(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}},7251:(e,t,r)=>{var n=r(8724),o=r(7160),a=r(5204);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(a||o),string:new n}}},7159:(e,t,r)=>{var n=r(2622);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},438:(e,t,r)=>{var n=r(2622);e.exports=function(e){return n(this,e).get(e)}},9394:(e,t,r)=>{var n=r(2622);e.exports=function(e){return n(this,e).has(e)}},6874:(e,t,r)=>{var n=r(2622);e.exports=function(e,t){var r=n(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}},4160:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}},5575:(e,t,r)=>{var n=r(7937)(Object,"create");e.exports=n},1143:(e,t,r)=>{var n=r(3028)(Object.keys,Object);e.exports=n},6832:(e,t,r)=>{e=r.nmd(e);var n=r(7105),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o&&n.process,s=function(){try{var e=a&&a.require&&a.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(t){}}();e.exports=s},6095:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},3028:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},6552:(e,t,r)=>{var n=r(7105),o="object"==typeof self&&self&&self.Object===Object&&self,a=n||o||Function("return this")();e.exports=a},6179:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},6704:e=>{e.exports=function(e){return this.__data__.has(e)}},2074:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},4545:(e,t,r)=>{var n=r(7160);e.exports=function(){this.__data__=new n,this.size=0}},793:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},7760:e=>{e.exports=function(e){return this.__data__.get(e)}},3892:e=>{e.exports=function(e){return this.__data__.has(e)}},6788:(e,t,r)=>{var n=r(7160),o=r(5204),a=r(4816);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var i=r.__data__;if(!o||i.length<199)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new a(i)}return r.set(e,t),this.size=r.size,this}},6996:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(r){}try{return e+""}catch(r){}}return""}},3211:e=>{e.exports=function(e,t){return e===t||e!==e&&t!==t}},2777:(e,t,r)=>{var n=r(5193),o=r(2761),a=Object.prototype,i=a.hasOwnProperty,s=a.propertyIsEnumerable,l=n(function(){return arguments}())?n:function(e){return o(e)&&i.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},4052:e=>{var t=Array.isArray;e.exports=t},6571:(e,t,r)=>{var n=r(1629),o=r(6173);e.exports=function(e){return null!=e&&o(e.length)&&!n(e)}},4543:(e,t,r)=>{e=r.nmd(e);var n=r(6552),o=r(14),a=t&&!t.nodeType&&t,i=a&&e&&!e.nodeType&&e,s=i&&i.exports===a?n.Buffer:void 0,l=(s?s.isBuffer:void 0)||o;e.exports=l},9853:(e,t,r)=>{var n=r(6989);e.exports=function(e,t){return n(e,t)}},1629:(e,t,r)=>{var n=r(6913),o=r(6686);e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},6173:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},6686:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},2761:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},1268:(e,t,r)=>{var n=r(5428),o=r(7574),a=r(6832),i=a&&a.isTypedArray,s=i?o(i):n;e.exports=s},8673:(e,t,r)=>{var n=r(3204),o=r(3713),a=r(6571);e.exports=function(e){return a(e)?n(e):o(e)}},7828:e=>{e.exports=function(){return[]}},14:e=>{e.exports=function(){return!1}},1185:(e,t,r)=>{e.exports=r(9392)},9989:e=>{"use strict";var t=!("undefined"===typeof window||!window.document||!window.document.createElement),r={canUseDOM:t,canUseWorkers:"undefined"!==typeof Worker,canUseEventListeners:t&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:t&&!!window.screen,isInWorker:!t};e.exports=r},1218:e=>{var t,r,n,o,a,i,s,l,c,u,d,f,p,h,m,g=!1;function b(){if(!g){g=!0;var e=navigator.userAgent,b=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),y=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(f=/\b(iPhone|iP[ao]d)/.exec(e),p=/\b(iP[ao]d)/.exec(e),u=/Android/i.exec(e),h=/FBAN\/\w+;/i.exec(e),m=/Mobile/i.exec(e),d=!!/Win64/.exec(e),b){(t=b[1]?parseFloat(b[1]):b[5]?parseFloat(b[5]):NaN)&&document&&document.documentMode&&(t=document.documentMode);var x=/(?:Trident\/(\d+.\d+))/.exec(e);i=x?parseFloat(x[1])+4:t,r=b[2]?parseFloat(b[2]):NaN,n=b[3]?parseFloat(b[3]):NaN,(o=b[4]?parseFloat(b[4]):NaN)?(b=/(?:Chrome\/(\d+\.\d+))/.exec(e),a=b&&b[1]?parseFloat(b[1]):NaN):a=NaN}else t=r=n=a=o=NaN;if(y){if(y[1]){var v=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);s=!v||parseFloat(v[1].replace("_","."))}else s=!1;l=!!y[2],c=!!y[3]}else s=l=c=!1}}var y={ie:function(){return b()||t},ieCompatibilityMode:function(){return b()||i>t},ie64:function(){return y.ie()&&d},firefox:function(){return b()||r},opera:function(){return b()||n},webkit:function(){return b()||o},safari:function(){return y.webkit()},chrome:function(){return b()||a},windows:function(){return b()||l},osx:function(){return b()||s},linux:function(){return b()||c},iphone:function(){return b()||f},mobile:function(){return b()||f||p||u||m},nativeApp:function(){return b()||h},android:function(){return b()||u},ipad:function(){return b()||p}};e.exports=y},6496:(e,t,r)=>{"use strict";var n,o=r(9989);o.canUseDOM&&(n=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),e.exports=function(e,t){if(!o.canUseDOM||t&&!("addEventListener"in document))return!1;var r="on"+e,a=r in document;if(!a){var i=document.createElement("div");i.setAttribute(r,"return;"),a="function"===typeof i[r]}return!a&&n&&"wheel"===e&&(a=document.implementation.hasFeature("Events.wheel","3.0")),a}},9392:(e,t,r)=>{"use strict";var n=r(1218),o=r(6496);function a(e){var t=0,r=0,n=0,o=0;return"detail"in e&&(r=e.detail),"wheelDelta"in e&&(r=-e.wheelDelta/120),"wheelDeltaY"in e&&(r=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=r,r=0),n=10*t,o=10*r,"deltaY"in e&&(o=e.deltaY),"deltaX"in e&&(n=e.deltaX),(n||o)&&e.deltaMode&&(1==e.deltaMode?(n*=40,o*=40):(n*=800,o*=800)),n&&!t&&(t=n<1?-1:1),o&&!r&&(r=o<1?-1:1),{spinX:t,spinY:r,pixelX:n,pixelY:o}}a.getEventType=function(){return n.firefox()?"DOMMouseScroll":o("wheel")?"wheel":"mousewheel"},e.exports=a},1497:(e,t,r)=>{"use strict";var n=r(3218);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,a,i){if(i!==n){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return r.PropTypes=r,r}},5173:(e,t,r)=>{e.exports=r(1497)()},3218:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4175:function(e){var t;"undefined"!==typeof self&&self,t=function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=109)}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(17),o=r(18),a=r(19),i=r(45),s=r(46),l=r(47),c=r(48),u=r(49),d=r(12),f=r(32),p=r(33),h=r(31),m=r(1),g={Scope:m.Scope,create:m.create,find:m.find,query:m.query,register:m.register,Container:n.default,Format:o.default,Leaf:a.default,Embed:c.default,Scroll:i.default,Block:l.default,Inline:s.default,Text:u.default,Attributor:{Attribute:d.default,Class:f.default,Style:p.default,Store:h.default}};t.default=g},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(t){var r=this;return t="[Parchment] "+t,(r=e.call(this,t)||this).message=t,r.name=r.constructor.name,r}return n(t,e),t}(Error);t.ParchmentError=o;var a,i={},s={},l={},c={};function u(e,t){var r;if(void 0===t&&(t=a.ANY),"string"===typeof e)r=c[e]||i[e];else if(e instanceof Text||e.nodeType===Node.TEXT_NODE)r=c.text;else if("number"===typeof e)e&a.LEVEL&a.BLOCK?r=c.block:e&a.LEVEL&a.INLINE&&(r=c.inline);else if(e instanceof HTMLElement){var n=(e.getAttribute("class")||"").split(/\s+/);for(var o in n)if(r=s[n[o]])break;r=r||l[e.tagName]}return null==r?null:t&a.LEVEL&r.scope&&t&a.TYPE&r.scope?r:null}t.DATA_KEY="__blot",function(e){e[e.TYPE=3]="TYPE",e[e.LEVEL=12]="LEVEL",e[e.ATTRIBUTE=13]="ATTRIBUTE",e[e.BLOT=14]="BLOT",e[e.INLINE=7]="INLINE",e[e.BLOCK=11]="BLOCK",e[e.BLOCK_BLOT=10]="BLOCK_BLOT",e[e.INLINE_BLOT=6]="INLINE_BLOT",e[e.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",e[e.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",e[e.ANY=15]="ANY"}(a=t.Scope||(t.Scope={})),t.create=function(e,t){var r=u(e);if(null==r)throw new o("Unable to create "+e+" blot");var n=r,a=e instanceof Node||e.nodeType===Node.TEXT_NODE?e:n.create(t);return new n(a,t)},t.find=function e(r,n){return void 0===n&&(n=!1),null==r?null:null!=r[t.DATA_KEY]?r[t.DATA_KEY].blot:n?e(r.parentNode,n):null},t.query=u,t.register=function e(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(t.length>1)return t.map((function(t){return e(t)}));var n=t[0];if("string"!==typeof n.blotName&&"string"!==typeof n.attrName)throw new o("Invalid definition");if("abstract"===n.blotName)throw new o("Cannot register abstract class");return c[n.blotName||n.attrName]=n,"string"===typeof n.keyName?i[n.keyName]=n:(null!=n.className&&(s[n.className]=n),null!=n.tagName&&(Array.isArray(n.tagName)?n.tagName=n.tagName.map((function(e){return e.toUpperCase()})):n.tagName=n.tagName.toUpperCase(),(Array.isArray(n.tagName)?n.tagName:[n.tagName]).forEach((function(e){null!=l[e]&&null!=n.className||(l[e]=n)})))),n}},function(e,t,r){var n=r(51),o=r(11),a=r(3),i=r(20),s=String.fromCharCode(0),l=function(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]};l.prototype.insert=function(e,t){var r={};return 0===e.length?this:(r.insert=e,null!=t&&"object"===typeof t&&Object.keys(t).length>0&&(r.attributes=t),this.push(r))},l.prototype.delete=function(e){return e<=0?this:this.push({delete:e})},l.prototype.retain=function(e,t){if(e<=0)return this;var r={retain:e};return null!=t&&"object"===typeof t&&Object.keys(t).length>0&&(r.attributes=t),this.push(r)},l.prototype.push=function(e){var t=this.ops.length,r=this.ops[t-1];if(e=a(!0,{},e),"object"===typeof r){if("number"===typeof e.delete&&"number"===typeof r.delete)return this.ops[t-1]={delete:r.delete+e.delete},this;if("number"===typeof r.delete&&null!=e.insert&&(t-=1,"object"!==typeof(r=this.ops[t-1])))return this.ops.unshift(e),this;if(o(e.attributes,r.attributes)){if("string"===typeof e.insert&&"string"===typeof r.insert)return this.ops[t-1]={insert:r.insert+e.insert},"object"===typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"===typeof e.retain&&"number"===typeof r.retain)return this.ops[t-1]={retain:r.retain+e.retain},"object"===typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this},l.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this},l.prototype.filter=function(e){return this.ops.filter(e)},l.prototype.forEach=function(e){this.ops.forEach(e)},l.prototype.map=function(e){return this.ops.map(e)},l.prototype.partition=function(e){var t=[],r=[];return this.forEach((function(n){(e(n)?t:r).push(n)})),[t,r]},l.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},l.prototype.changeLength=function(){return this.reduce((function(e,t){return t.insert?e+i.length(t):t.delete?e-t.delete:e}),0)},l.prototype.length=function(){return this.reduce((function(e,t){return e+i.length(t)}),0)},l.prototype.slice=function(e,t){e=e||0,"number"!==typeof t&&(t=1/0);for(var r=[],n=i.iterator(this.ops),o=0;o<t&&n.hasNext();){var a;o<e?a=n.next(e-o):(a=n.next(t-o),r.push(a)),o+=i.length(a)}return new l(r)},l.prototype.compose=function(e){var t=i.iterator(this.ops),r=i.iterator(e.ops),n=[],a=r.peek();if(null!=a&&"number"===typeof a.retain&&null==a.attributes){for(var s=a.retain;"insert"===t.peekType()&&t.peekLength()<=s;)s-=t.peekLength(),n.push(t.next());a.retain-s>0&&r.next(a.retain-s)}for(var c=new l(n);t.hasNext()||r.hasNext();)if("insert"===r.peekType())c.push(r.next());else if("delete"===t.peekType())c.push(t.next());else{var u=Math.min(t.peekLength(),r.peekLength()),d=t.next(u),f=r.next(u);if("number"===typeof f.retain){var p={};"number"===typeof d.retain?p.retain=u:p.insert=d.insert;var h=i.attributes.compose(d.attributes,f.attributes,"number"===typeof d.retain);if(h&&(p.attributes=h),c.push(p),!r.hasNext()&&o(c.ops[c.ops.length-1],p)){var m=new l(t.rest());return c.concat(m).chop()}}else"number"===typeof f.delete&&"number"===typeof d.retain&&c.push(f)}return c.chop()},l.prototype.concat=function(e){var t=new l(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t},l.prototype.diff=function(e,t){if(this.ops===e.ops)return new l;var r=[this,e].map((function(t){return t.map((function(r){if(null!=r.insert)return"string"===typeof r.insert?r.insert:s;throw new Error("diff() called "+(t===e?"on":"with")+" non-document")})).join("")})),a=new l,c=n(r[0],r[1],t),u=i.iterator(this.ops),d=i.iterator(e.ops);return c.forEach((function(e){for(var t=e[1].length;t>0;){var r=0;switch(e[0]){case n.INSERT:r=Math.min(d.peekLength(),t),a.push(d.next(r));break;case n.DELETE:r=Math.min(t,u.peekLength()),u.next(r),a.delete(r);break;case n.EQUAL:r=Math.min(u.peekLength(),d.peekLength(),t);var s=u.next(r),l=d.next(r);o(s.insert,l.insert)?a.retain(r,i.attributes.diff(s.attributes,l.attributes)):a.push(l).delete(r)}t-=r}})),a.chop()},l.prototype.eachLine=function(e,t){t=t||"\n";for(var r=i.iterator(this.ops),n=new l,o=0;r.hasNext();){if("insert"!==r.peekType())return;var a=r.peek(),s=i.length(a)-r.peekLength(),c="string"===typeof a.insert?a.insert.indexOf(t,s)-s:-1;if(c<0)n.push(r.next());else if(c>0)n.push(r.next(c));else{if(!1===e(n,r.next(1).attributes||{},o))return;o+=1,n=new l}}n.length()>0&&e(n,{},o)},l.prototype.transform=function(e,t){if(t=!!t,"number"===typeof e)return this.transformPosition(e,t);for(var r=i.iterator(this.ops),n=i.iterator(e.ops),o=new l;r.hasNext()||n.hasNext();)if("insert"!==r.peekType()||!t&&"insert"===n.peekType())if("insert"===n.peekType())o.push(n.next());else{var a=Math.min(r.peekLength(),n.peekLength()),s=r.next(a),c=n.next(a);if(s.delete)continue;c.delete?o.push(c):o.retain(a,i.attributes.transform(s.attributes,c.attributes,t))}else o.retain(i.length(r.next()));return o.chop()},l.prototype.transformPosition=function(e,t){t=!!t;for(var r=i.iterator(this.ops),n=0;r.hasNext()&&n<=e;){var o=r.peekLength(),a=r.peekType();r.next(),"delete"!==a?("insert"===a&&(n<e||!t)&&(e+=o),n+=o):e-=Math.min(o,e-n)}return e},e.exports=l},function(e,t){"use strict";var r=Object.prototype.hasOwnProperty,n=Object.prototype.toString,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,i=function(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},s=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var t,o=r.call(e,"constructor"),a=e.constructor&&e.constructor.prototype&&r.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!a)return!1;for(t in e);return"undefined"===typeof t||r.call(e,t)},l=function(e,t){o&&"__proto__"===t.name?o(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},c=function(e,t){if("__proto__"===t){if(!r.call(e,t))return;if(a)return a(e,t).value}return e[t]};e.exports=function e(){var t,r,n,o,a,u,d=arguments[0],f=1,p=arguments.length,h=!1;for("boolean"===typeof d&&(h=d,d=arguments[1]||{},f=2),(null==d||"object"!==typeof d&&"function"!==typeof d)&&(d={});f<p;++f)if(null!=(t=arguments[f]))for(r in t)n=c(d,r),d!==(o=c(t,r))&&(h&&o&&(s(o)||(a=i(o)))?(a?(a=!1,u=n&&i(n)?n:[]):u=n&&s(n)?n:{},l(d,{name:r,newValue:e(h,u,o)})):"undefined"!==typeof o&&l(d,{name:r,newValue:o}));return d}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BlockEmbed=t.bubbleFormats=void 0;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,n)}if("value"in o)return o.value;var i=o.get;return void 0!==i?i.call(n):void 0},a=d(r(3)),i=d(r(2)),s=d(r(0)),l=d(r(16)),c=d(r(6)),u=d(r(7));function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function h(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=function(e){function t(){return f(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),n(t,[{key:"attach",value:function(){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"attach",this).call(this),this.attributes=new s.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new i.default).insert(this.value(),(0,a.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(e,t){var r=s.default.query(e,s.default.Scope.BLOCK_ATTRIBUTE);null!=r&&this.attributes.attribute(r,t)}},{key:"formatAt",value:function(e,t,r,n){this.format(r,n)}},{key:"insertAt",value:function(e,r,n){if("string"===typeof r&&r.endsWith("\n")){var a=s.default.create(g.blotName);this.parent.insertBefore(a,0===e?this:this.next),a.insertAt(0,r.slice(0,-1))}else o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,r,n)}}]),t}(s.default.Embed);m.scope=s.default.Scope.BLOCK_BLOT;var g=function(e){function t(e){f(this,t);var r=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.cache={},r}return h(t,e),n(t,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(s.default.Leaf).reduce((function(e,t){return 0===t.length()?e:e.insert(t.value(),b(t))}),new i.default).insert("\n",b(this))),this.cache.delta}},{key:"deleteAt",value:function(e,r){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,r),this.cache={}}},{key:"formatAt",value:function(e,r,n,a){r<=0||(s.default.query(n,s.default.Scope.BLOCK)?e+r===this.length()&&this.format(n,a):o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,Math.min(r,this.length()-e-1),n,a),this.cache={})}},{key:"insertAt",value:function(e,r,n){if(null!=n)return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,r,n);if(0!==r.length){var a=r.split("\n"),i=a.shift();i.length>0&&(e<this.length()-1||null==this.children.tail?o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,Math.min(e,this.length()-1),i):this.children.tail.insertAt(this.children.tail.length(),i),this.cache={});var s=this;a.reduce((function(e,t){return(s=s.split(e,!0)).insertAt(0,t),t.length}),e+i.length)}}},{key:"insertBefore",value:function(e,r){var n=this.children.head;o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,r),n instanceof l.default&&n.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(e,r){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"moveChildren",this).call(this,e,r),this.cache={}}},{key:"optimize",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.cache={}}},{key:"path",value:function(e){return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e,!0)}},{key:"removeChild",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeChild",this).call(this,e),this.cache={}}},{key:"split",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(r&&(0===e||e>=this.length()-1)){var n=this.clone();return 0===e?(this.parent.insertBefore(n,this),this):(this.parent.insertBefore(n,this.next),n)}var a=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"split",this).call(this,e,r);return this.cache={},a}}]),t}(s.default.Block);function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==e?t:("function"===typeof e.formats&&(t=(0,a.default)(t,e.formats())),null==e.parent||"scroll"==e.parent.blotName||e.parent.statics.scope!==e.statics.scope?t:b(e.parent,t))}g.blotName="block",g.tagName="P",g.defaultChild="break",g.allowedChildren=[c.default,s.default.Embed,u.default],t.bubbleFormats=b,t.BlockEmbed=m,t.default=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.overload=t.expandConfig=void 0;var n="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},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(l){o=!0,a=l}finally{try{!n&&s.return&&s.return()}finally{if(o)throw a}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},a=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();r(50);var i=g(r(2)),s=g(r(14)),l=g(r(8)),c=g(r(9)),u=g(r(0)),d=r(15),f=g(d),p=g(r(3)),h=g(r(10)),m=g(r(34));function g(e){return e&&e.__esModule?e:{default:e}}function b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var y=(0,h.default)("quill"),x=function(){function e(t){var r=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=v(t,n),this.container=this.options.container,null==this.container)return y.error("Invalid Quill container",t);this.options.debug&&e.debug(this.options.debug);var o=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new l.default,this.scroll=u.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new s.default(this.scroll),this.selection=new f.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(l.default.events.EDITOR_CHANGE,(function(e){e===l.default.events.TEXT_CHANGE&&r.root.classList.toggle("ql-blank",r.editor.isBlank())})),this.emitter.on(l.default.events.SCROLL_UPDATE,(function(e,t){var n=r.selection.lastRange,o=n&&0===n.length?n.index:void 0;w.call(r,(function(){return r.editor.update(null,t,o)}),e)}));var a=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+o+"<p><br></p></div>");this.setContents(a),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return a(e,null,[{key:"debug",value:function(e){!0===e&&(e="log"),h.default.level(e)}},{key:"find",value:function(e){return e.__quill||u.default.find(e)}},{key:"import",value:function(e){return null==this.imports[e]&&y.error("Cannot import "+e+". Are you sure it was registered?"),this.imports[e]}},{key:"register",value:function(e,t){var r=this,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!==typeof e){var o=e.attrName||e.blotName;"string"===typeof o?this.register("formats/"+o,e,t):Object.keys(e).forEach((function(n){r.register(n,e[n],t)}))}else null==this.imports[e]||n||y.warn("Overwriting "+e+" with",t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&"abstract"!==t.blotName?u.default.register(t):e.startsWith("modules")&&"function"===typeof t.register&&t.register()}}]),a(e,[{key:"addContainer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"===typeof e){var r=e;(e=document.createElement("div")).classList.add(r)}return this.container.insertBefore(e,t),e}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,t,r){var n=this,a=k(e,t,r),i=o(a,4);return e=i[0],t=i[1],r=i[3],w.call(this,(function(){return n.editor.deleteText(e,t)}),r,e,-1*t)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}},{key:"focus",value:function(){var e=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=e,this.scrollIntoView()}},{key:"format",value:function(e,t){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.default.sources.API;return w.call(this,(function(){var n=r.getSelection(!0),o=new i.default;if(null==n)return o;if(u.default.query(e,u.default.Scope.BLOCK))o=r.editor.formatLine(n.index,n.length,b({},e,t));else{if(0===n.length)return r.selection.format(e,t),o;o=r.editor.formatText(n.index,n.length,b({},e,t))}return r.setSelection(n,l.default.sources.SILENT),o}),n)}},{key:"formatLine",value:function(e,t,r,n,a){var i,s=this,l=k(e,t,r,n,a),c=o(l,4);return e=c[0],t=c[1],i=c[2],a=c[3],w.call(this,(function(){return s.editor.formatLine(e,t,i)}),a,e,0)}},{key:"formatText",value:function(e,t,r,n,a){var i,s=this,l=k(e,t,r,n,a),c=o(l,4);return e=c[0],t=c[1],i=c[2],a=c[3],w.call(this,(function(){return s.editor.formatText(e,t,i)}),a,e,0)}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=void 0;r="number"===typeof e?this.selection.getBounds(e,t):this.selection.getBounds(e.index,e.length);var n=this.container.getBoundingClientRect();return{bottom:r.bottom-n.top,height:r.height,left:r.left-n.left,right:r.right-n.left,top:r.top-n.top,width:r.width}}},{key:"getContents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,r=k(e,t),n=o(r,2);return e=n[0],t=n[1],this.editor.getContents(e,t)}},{key:"getFormat",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"===typeof e?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}},{key:"getIndex",value:function(e){return e.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(e){return this.scroll.leaf(e)}},{key:"getLine",value:function(e){return this.scroll.line(e)}},{key:"getLines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!==typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}},{key:"getModule",value:function(e){return this.theme.modules[e]}},{key:"getSelection",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,r=k(e,t),n=o(r,2);return e=n[0],t=n[1],this.editor.getText(e,t)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(t,r,n){var o=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.sources.API;return w.call(this,(function(){return o.editor.insertEmbed(t,r,n)}),a,t)}},{key:"insertText",value:function(e,t,r,n,a){var i,s=this,l=k(e,0,r,n,a),c=o(l,4);return e=c[0],i=c[2],a=c[3],w.call(this,(function(){return s.editor.insertText(e,t,i)}),a,e,t.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(e,t,r){this.clipboard.dangerouslyPasteHTML(e,t,r)}},{key:"removeFormat",value:function(e,t,r){var n=this,a=k(e,t,r),i=o(a,4);return e=i[0],t=i[1],r=i[3],w.call(this,(function(){return n.editor.removeFormat(e,t)}),r,e)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.sources.API;return w.call(this,(function(){e=new i.default(e);var r=t.getLength(),n=t.editor.deleteText(0,r),o=t.editor.applyDelta(e),a=o.ops[o.ops.length-1];return null!=a&&"string"===typeof a.insert&&"\n"===a.insert[a.insert.length-1]&&(t.editor.deleteText(t.getLength()-1,1),o.delete(1)),n.compose(o)}),r)}},{key:"setSelection",value:function(t,r,n){if(null==t)this.selection.setRange(null,r||e.sources.API);else{var a=k(t,r,n),i=o(a,4);t=i[0],r=i[1],n=i[3],this.selection.setRange(new d.Range(t,r),n),n!==l.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.sources.API,r=(new i.default).insert(e);return this.setContents(r,t)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.default.sources.USER,t=this.scroll.update(e);return this.selection.update(e),t}},{key:"updateContents",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.sources.API;return w.call(this,(function(){return e=new i.default(e),t.editor.applyDelta(e,r)}),r,!0)}}]),e}();function v(e,t){if((t=(0,p.default)(!0,{container:e,modules:{clipboard:!0,keyboard:!0,history:!0}},t)).theme&&t.theme!==x.DEFAULTS.theme){if(t.theme=x.import("themes/"+t.theme),null==t.theme)throw new Error("Invalid theme "+t.theme+". Did you register it?")}else t.theme=m.default;var r=(0,p.default)(!0,{},t.theme.DEFAULTS);[r,t].forEach((function(e){e.modules=e.modules||{},Object.keys(e.modules).forEach((function(t){!0===e.modules[t]&&(e.modules[t]={})}))}));var n=Object.keys(r.modules).concat(Object.keys(t.modules)).reduce((function(e,t){var r=x.import("modules/"+t);return null==r?y.error("Cannot load "+t+" module. Are you sure you registered it?"):e[t]=r.DEFAULTS||{},e}),{});return null!=t.modules&&t.modules.toolbar&&t.modules.toolbar.constructor!==Object&&(t.modules.toolbar={container:t.modules.toolbar}),t=(0,p.default)(!0,{},x.DEFAULTS,{modules:n},r,t),["bounds","container","scrollingContainer"].forEach((function(e){"string"===typeof t[e]&&(t[e]=document.querySelector(t[e]))})),t.modules=Object.keys(t.modules).reduce((function(e,r){return t.modules[r]&&(e[r]=t.modules[r]),e}),{}),t}function w(e,t,r,n){if(this.options.strict&&!this.isEnabled()&&t===l.default.sources.USER)return new i.default;var o=null==r?null:this.getSelection(),a=this.editor.delta,s=e();if(null!=o&&(!0===r&&(r=o.index),null==n?o=j(o,s,t):0!==n&&(o=j(o,r,n,t)),this.setSelection(o,l.default.sources.SILENT)),s.length()>0){var c,u,d=[l.default.events.TEXT_CHANGE,s,a,t];(c=this.emitter).emit.apply(c,[l.default.events.EDITOR_CHANGE].concat(d)),t!==l.default.sources.SILENT&&(u=this.emitter).emit.apply(u,d)}return s}function k(e,t,r,o,a){var i={};return"number"===typeof e.index&&"number"===typeof e.length?"number"!==typeof t?(a=o,o=r,r=t,t=e.length,e=e.index):(t=e.length,e=e.index):"number"!==typeof t&&(a=o,o=r,r=t,t=0),"object"===("undefined"===typeof r?"undefined":n(r))?(i=r,a=o):"string"===typeof r&&(null!=o?i[r]=o:a=r),[e,t,i,a=a||l.default.sources.API]}function j(e,t,r,n){if(null==e)return null;var a=void 0,s=void 0;if(t instanceof i.default){var c=[e.index,e.index+e.length].map((function(e){return t.transformPosition(e,n!==l.default.sources.USER)})),u=o(c,2);a=u[0],s=u[1]}else{var f=[e.index,e.index+e.length].map((function(e){return e<t||e===t&&n===l.default.sources.USER?e:r>=0?e+r:Math.max(t,e+r)})),p=o(f,2);a=p[0],s=p[1]}return new d.Range(a,s-a)}x.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},x.events=l.default.events,x.sources=l.default.sources,x.version="1.3.7",x.imports={delta:i.default,parchment:u.default,"core/module":c.default,"core/theme":m.default},t.expandConfig=v,t.overload=k,t.default=x},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,n)}if("value"in o)return o.value;var i=o.get;return void 0!==i?i.call(n):void 0},a=s(r(7)),i=s(r(0));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),n(t,[{key:"formatAt",value:function(e,r,n,a){if(t.compare(this.statics.blotName,n)<0&&i.default.query(n,i.default.Scope.BLOT)){var s=this.isolate(e,r);a&&s.wrap(n,a)}else o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,r,n,a)}},{key:"optimize",value:function(e){if(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.parent instanceof t&&t.compare(this.statics.blotName,this.parent.statics.blotName)>0){var r=this.parent.isolate(this.offset(),this.length());this.moveChildren(r),r.wrap(this)}}}],[{key:"compare",value:function(e,r){var n=t.order.indexOf(e),o=t.order.indexOf(r);return n>=0||o>=0?n-o:e===r?0:e<r?-1:1}}]),t}(i.default.Inline);l.allowedChildren=[l,i.default.Embed,a.default],l.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],t.default=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=r(0),a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((n=o)&&n.__esModule?n:{default:n}).default.Text);t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,n)}if("value"in o)return o.value;var i=o.get;return void 0!==i?i.call(n):void 0},a=i(r(54));function i(e){return e&&e.__esModule?e:{default:e}}var s=(0,i(r(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach((function(e){document.addEventListener(e,(function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];[].slice.call(document.querySelectorAll(".ql-container")).forEach((function(e){var r;e.__quill&&e.__quill.emitter&&(r=e.__quill.emitter).handleDOM.apply(r,t)}))}))}));var l=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.listeners={},e.on("error",s.error),e}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),n(t,[{key:"emit",value:function(){s.log.apply(s,arguments),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];(this.listeners[e.type]||[]).forEach((function(t){var n=t.node,o=t.handler;(e.target===n||n.contains(e.target))&&o.apply(void 0,[e].concat(r))}))}},{key:"listenDOM",value:function(e,t,r){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push({node:t,handler:r})}}]),t}(a.default);l.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},l.sources={API:"api",SILENT:"silent",USER:"user"},t.default=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.options=r};n.DEFAULTS={},t.default=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=["error","warn","log","info"],o="warn";function a(e){if(n.indexOf(e)<=n.indexOf(o)){for(var t,r=arguments.length,a=Array(r>1?r-1:0),i=1;i<r;i++)a[i-1]=arguments[i];(t=console)[e].apply(t,a)}}function i(e){return n.reduce((function(t,r){return t[r]=a.bind(console,r,e),t}),{})}a.level=i.level=function(e){o=e},t.default=i},function(e,t,r){var n=Array.prototype.slice,o=r(52),a=r(53),i=e.exports=function(e,t,r){return r||(r={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?r.strict?e===t:e==t:function(e,t,r){var c,u;if(s(e)||s(t))return!1;if(e.prototype!==t.prototype)return!1;if(a(e))return!!a(t)&&(e=n.call(e),t=n.call(t),i(e,t,r));if(l(e)){if(!l(t))return!1;if(e.length!==t.length)return!1;for(c=0;c<e.length;c++)if(e[c]!==t[c])return!1;return!0}try{var d=o(e),f=o(t)}catch(p){return!1}if(d.length!=f.length)return!1;for(d.sort(),f.sort(),c=d.length-1;c>=0;c--)if(d[c]!=f[c])return!1;for(c=d.length-1;c>=0;c--)if(u=d[c],!i(e[u],t[u],r))return!1;return typeof e===typeof t}(e,t,r))};function s(e){return null===e||void 0===e}function l(e){return!(!e||"object"!==typeof e||"number"!==typeof e.length)&&"function"===typeof e.copy&&"function"===typeof e.slice&&!(e.length>0&&"number"!==typeof e[0])}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1),o=function(){function e(e,t,r){void 0===r&&(r={}),this.attrName=e,this.keyName=t;var o=n.Scope.TYPE&n.Scope.ATTRIBUTE;null!=r.scope?this.scope=r.scope&n.Scope.LEVEL|o:this.scope=n.Scope.ATTRIBUTE,null!=r.whitelist&&(this.whitelist=r.whitelist)}return e.keys=function(e){return[].map.call(e.attributes,(function(e){return e.name}))},e.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)},e.prototype.canAdd=function(e,t){return null!=n.query(e,n.Scope.BLOT&(this.scope|n.Scope.TYPE))&&(null==this.whitelist||("string"===typeof t?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1))},e.prototype.remove=function(e){e.removeAttribute(this.keyName)},e.prototype.value=function(e){var t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""},e}();t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(l){o=!0,a=l}finally{try{!n&&s.return&&s.return()}finally{if(o)throw a}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),a=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,n)}if("value"in o)return o.value;var i=o.get;return void 0!==i?i.call(n):void 0},i=d(r(2)),s=d(r(0)),l=d(r(4)),c=d(r(6)),u=d(r(7));function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function h(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=function(e){function t(){return f(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),t}(c.default);m.blotName="code",m.tagName="CODE";var g=function(e){function t(){return f(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),o(t,[{key:"delta",value:function(){var e=this,t=this.domNode.textContent;return t.endsWith("\n")&&(t=t.slice(0,-1)),t.split("\n").reduce((function(t,r){return t.insert(r).insert("\n",e.formats())}),new i.default)}},{key:"format",value:function(e,r){if(e!==this.statics.blotName||!r){var o=this.descendant(u.default,this.length()-1),i=n(o,1)[0];null!=i&&i.deleteAt(i.length()-1,1),a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,r)}}},{key:"formatAt",value:function(e,r,n,o){if(0!==r&&null!=s.default.query(n,s.default.Scope.BLOCK)&&(n!==this.statics.blotName||o!==this.statics.formats(this.domNode))){var a=this.newlineIndex(e);if(!(a<0||a>=e+r)){var i=this.newlineIndex(e,!0)+1,l=a-i+1,c=this.isolate(i,l),u=c.next;c.format(n,o),u instanceof t&&u.formatAt(0,e-i+r-l,n,o)}}}},{key:"insertAt",value:function(e,t,r){if(null==r){var o=this.descendant(u.default,e),a=n(o,2),i=a[0],s=a[1];i.insertAt(s,t)}}},{key:"length",value:function(){var e=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?e:e+1}},{key:"newlineIndex",value:function(e){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,e).lastIndexOf("\n");var t=this.domNode.textContent.slice(e).indexOf("\n");return t>-1?e+t:-1}},{key:"optimize",value:function(e){this.domNode.textContent.endsWith("\n")||this.appendChild(s.default.create("text","\n")),a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var r=this.next;null!=r&&r.prev===this&&r.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===r.statics.formats(r.domNode)&&(r.optimize(e),r.moveChildren(this),r.remove())}},{key:"replace",value:function(e){a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(e){var t=s.default.find(e);null==t?e.parentNode.removeChild(e):t instanceof s.default.Embed?t.remove():t.unwrap()}))}}],[{key:"create",value:function(e){var r=a(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return r.setAttribute("spellcheck",!1),r}},{key:"formats",value:function(){return!0}}]),t}(l.default);g.blotName="code-block",g.tagName="PRE",g.TAB=" ",t.Code=m,t.default=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="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},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(l){o=!0,a=l}finally{try{!n&&s.return&&s.return()}finally{if(o)throw a}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},a=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=b(r(2)),s=b(r(20)),l=b(r(0)),c=b(r(13)),u=b(r(24)),d=r(4),f=b(d),p=b(r(16)),h=b(r(21)),m=b(r(11)),g=b(r(3));function b(e){return e&&e.__esModule?e:{default:e}}var y=/^[ -~]*$/,x=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scroll=t,this.delta=this.getDelta()}return a(e,[{key:"applyDelta",value:function(e){var t=this,r=!1;this.scroll.update();var a=this.scroll.length();return this.scroll.batchStart(),(e=function(e){return e.reduce((function(e,t){if(1===t.insert){var r=(0,h.default)(t.attributes);return delete r.image,e.insert({image:t.attributes.image},r)}if(null==t.attributes||!0!==t.attributes.list&&!0!==t.attributes.bullet||((t=(0,h.default)(t)).attributes.list?t.attributes.list="ordered":(t.attributes.list="bullet",delete t.attributes.bullet)),"string"===typeof t.insert){var n=t.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return e.insert(n,t.attributes)}return e.push(t)}),new i.default)}(e)).reduce((function(e,i){var c=i.retain||i.delete||i.insert.length||1,u=i.attributes||{};if(null!=i.insert){if("string"===typeof i.insert){var p=i.insert;p.endsWith("\n")&&r&&(r=!1,p=p.slice(0,-1)),e>=a&&!p.endsWith("\n")&&(r=!0),t.scroll.insertAt(e,p);var h=t.scroll.line(e),m=o(h,2),b=m[0],y=m[1],x=(0,g.default)({},(0,d.bubbleFormats)(b));if(b instanceof f.default){var v=b.descendant(l.default.Leaf,y),w=o(v,1)[0];x=(0,g.default)(x,(0,d.bubbleFormats)(w))}u=s.default.attributes.diff(x,u)||{}}else if("object"===n(i.insert)){var k=Object.keys(i.insert)[0];if(null==k)return e;t.scroll.insertAt(e,k,i.insert[k])}a+=c}return Object.keys(u).forEach((function(r){t.scroll.formatAt(e,c,r,u[r])})),e+c}),0),e.reduce((function(e,r){return"number"===typeof r.delete?(t.scroll.deleteAt(e,r.delete),e):e+(r.retain||r.insert.length||1)}),0),this.scroll.batchEnd(),this.update(e)}},{key:"deleteText",value:function(e,t){return this.scroll.deleteAt(e,t),this.update((new i.default).retain(e).delete(t))}},{key:"formatLine",value:function(e,t){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(n).forEach((function(o){if(null==r.scroll.whitelist||r.scroll.whitelist[o]){var a=r.scroll.lines(e,Math.max(t,1)),i=t;a.forEach((function(t){var a=t.length();if(t instanceof c.default){var s=e-t.offset(r.scroll),l=t.newlineIndex(s+i)-s+1;t.formatAt(s,l,o,n[o])}else t.format(o,n[o]);i-=a}))}})),this.scroll.optimize(),this.update((new i.default).retain(e).retain(t,(0,h.default)(n)))}},{key:"formatText",value:function(e,t){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(n).forEach((function(o){r.scroll.formatAt(e,t,o,n[o])})),this.update((new i.default).retain(e).retain(t,(0,h.default)(n)))}},{key:"getContents",value:function(e,t){return this.delta.slice(e,e+t)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(e,t){return e.concat(t.delta())}),new i.default)}},{key:"getFormat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=[],n=[];0===t?this.scroll.path(e).forEach((function(e){var t=o(e,1)[0];t instanceof f.default?r.push(t):t instanceof l.default.Leaf&&n.push(t)})):(r=this.scroll.lines(e,t),n=this.scroll.descendants(l.default.Leaf,e,t));var a=[r,n].map((function(e){if(0===e.length)return{};for(var t=(0,d.bubbleFormats)(e.shift());Object.keys(t).length>0;){var r=e.shift();if(null==r)return t;t=v((0,d.bubbleFormats)(r),t)}return t}));return g.default.apply(g.default,a)}},{key:"getText",value:function(e,t){return this.getContents(e,t).filter((function(e){return"string"===typeof e.insert})).map((function(e){return e.insert})).join("")}},{key:"insertEmbed",value:function(e,t,r){return this.scroll.insertAt(e,t,r),this.update((new i.default).retain(e).insert(function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}({},t,r)))}},{key:"insertText",value:function(e,t){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,t),Object.keys(n).forEach((function(o){r.scroll.formatAt(e,t.length,o,n[o])})),this.update((new i.default).retain(e).insert(t,(0,h.default)(n)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var e=this.scroll.children.head;return e.statics.blotName===f.default.blotName&&!(e.children.length>1)&&e.children.head instanceof p.default}},{key:"removeFormat",value:function(e,t){var r=this.getText(e,t),n=this.scroll.line(e+t),a=o(n,2),s=a[0],l=a[1],u=0,d=new i.default;null!=s&&(u=s instanceof c.default?s.newlineIndex(l)-l+1:s.length()-l,d=s.delta().slice(l,l+u-1).insert("\n"));var f=this.getContents(e,t+u).diff((new i.default).insert(r).concat(d)),p=(new i.default).retain(e).concat(f);return this.applyDelta(p)}},{key:"update",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,n=this.delta;if(1===t.length&&"characterData"===t[0].type&&t[0].target.data.match(y)&&l.default.find(t[0].target)){var o=l.default.find(t[0].target),a=(0,d.bubbleFormats)(o),s=o.offset(this.scroll),c=t[0].oldValue.replace(u.default.CONTENTS,""),f=(new i.default).insert(c),p=(new i.default).insert(o.value());e=(new i.default).retain(s).concat(f.diff(p,r)).reduce((function(e,t){return t.insert?e.insert(t.insert,a):e.push(t)}),new i.default),this.delta=n.compose(e)}else this.delta=this.getDelta(),e&&(0,m.default)(n.compose(e),this.delta)||(e=n.diff(this.delta,r));return e}}]),e}();function v(e,t){return Object.keys(t).reduce((function(r,n){return null==e[n]||(t[n]===e[n]?r[n]=t[n]:Array.isArray(t[n])?t[n].indexOf(e[n])<0&&(r[n]=t[n].concat([e[n]])):r[n]=[t[n],e[n]]),r}),{})}t.default=x},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Range=void 0;var n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(l){o=!0,a=l}finally{try{!n&&s.return&&s.return()}finally{if(o)throw a}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),a=c(r(0)),i=c(r(21)),s=c(r(11)),l=c(r(8));function c(e){return e&&e.__esModule?e:{default:e}}function u(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var f=(0,c(r(10)).default)("quill:selection"),p=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;d(this,e),this.index=t,this.length=r},h=function(){function e(t,r){var n=this;d(this,e),this.emitter=r,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=a.default.create("cursor",this),this.lastRange=this.savedRange=new p(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){n.mouseDown||setTimeout(n.update.bind(n,l.default.sources.USER),1)})),this.emitter.on(l.default.events.EDITOR_CHANGE,(function(e,t){e===l.default.events.TEXT_CHANGE&&t.length()>0&&n.update(l.default.sources.SILENT)})),this.emitter.on(l.default.events.SCROLL_BEFORE_UPDATE,(function(){if(n.hasFocus()){var e=n.getNativeRange();null!=e&&e.start.node!==n.cursor.textNode&&n.emitter.once(l.default.events.SCROLL_UPDATE,(function(){try{n.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset)}catch(t){}}))}})),this.emitter.on(l.default.events.SCROLL_OPTIMIZE,(function(e,t){if(t.range){var r=t.range,o=r.startNode,a=r.startOffset,i=r.endNode,s=r.endOffset;n.setNativeRange(o,a,i,s)}})),this.update(l.default.sources.SILENT)}return o(e,[{key:"handleComposition",value:function(){var e=this;this.root.addEventListener("compositionstart",(function(){e.composing=!0})),this.root.addEventListener("compositionend",(function(){if(e.composing=!1,e.cursor.parent){var t=e.cursor.restore();if(!t)return;setTimeout((function(){e.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var e=this;this.emitter.listenDOM("mousedown",document.body,(function(){e.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){e.mouseDown=!1,e.update(l.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(e,t){if(null==this.scroll.whitelist||this.scroll.whitelist[e]){this.scroll.update();var r=this.getNativeRange();if(null!=r&&r.native.collapsed&&!a.default.query(e,a.default.Scope.BLOCK)){if(r.start.node!==this.cursor.textNode){var n=a.default.find(r.start.node,!1);if(null==n)return;if(n instanceof a.default.Leaf){var o=n.split(r.start.offset);n.parent.insertBefore(this.cursor,o)}else n.insertBefore(this.cursor,r.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=this.scroll.length();e=Math.min(e,r-1),t=Math.min(e+t,r-1)-e;var o=void 0,a=this.scroll.leaf(e),i=n(a,2),s=i[0],l=i[1];if(null==s)return null;var c=s.position(l,!0),u=n(c,2);o=u[0],l=u[1];var d=document.createRange();if(t>0){d.setStart(o,l);var f=this.scroll.leaf(e+t),p=n(f,2);if(s=p[0],l=p[1],null==s)return null;var h=s.position(l,!0),m=n(h,2);return o=m[0],l=m[1],d.setEnd(o,l),d.getBoundingClientRect()}var g="left",b=void 0;return o instanceof Text?(l<o.data.length?(d.setStart(o,l),d.setEnd(o,l+1)):(d.setStart(o,l-1),d.setEnd(o,l),g="right"),b=d.getBoundingClientRect()):(b=s.domNode.getBoundingClientRect(),l>0&&(g="right")),{bottom:b.top+b.height,height:b.height,left:b[g],right:b[g],top:b.top,width:0}}},{key:"getNativeRange",value:function(){var e=document.getSelection();if(null==e||e.rangeCount<=0)return null;var t=e.getRangeAt(0);if(null==t)return null;var r=this.normalizeNative(t);return f.info("getNativeRange",r),r}},{key:"getRange",value:function(){var e=this.getNativeRange();return null==e?[null,null]:[this.normalizedToRange(e),e]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(e){var t=this,r=[[e.start.node,e.start.offset]];e.native.collapsed||r.push([e.end.node,e.end.offset]);var o=r.map((function(e){var r=n(e,2),o=r[0],i=r[1],s=a.default.find(o,!0),l=s.offset(t.scroll);return 0===i?l:s instanceof a.default.Container?l+s.length():l+s.index(o,i)})),i=Math.min(Math.max.apply(Math,u(o)),this.scroll.length()-1),s=Math.min.apply(Math,[i].concat(u(o)));return new p(s,i-s)}},{key:"normalizeNative",value:function(e){if(!m(this.root,e.startContainer)||!e.collapsed&&!m(this.root,e.endContainer))return null;var t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach((function(e){for(var t=e.node,r=e.offset;!(t instanceof Text)&&t.childNodes.length>0;)if(t.childNodes.length>r)t=t.childNodes[r],r=0;else{if(t.childNodes.length!==r)break;r=(t=t.lastChild)instanceof Text?t.data.length:t.childNodes.length+1}e.node=t,e.offset=r})),t}},{key:"rangeToNative",value:function(e){var t=this,r=e.collapsed?[e.index]:[e.index,e.index+e.length],o=[],a=this.scroll.length();return r.forEach((function(e,r){e=Math.min(a-1,e);var i,s=t.scroll.leaf(e),l=n(s,2),c=l[0],u=l[1],d=c.position(u,0!==r),f=n(d,2);i=f[0],u=f[1],o.push(i,u)})),o.length<2&&(o=o.concat(o)),o}},{key:"scrollIntoView",value:function(e){var t=this.lastRange;if(null!=t){var r=this.getBounds(t.index,t.length);if(null!=r){var o=this.scroll.length()-1,a=this.scroll.line(Math.min(t.index,o)),i=n(a,1)[0],s=i;if(t.length>0){var l=this.scroll.line(Math.min(t.index+t.length,o));s=n(l,1)[0]}if(null!=i&&null!=s){var c=e.getBoundingClientRect();r.top<c.top?e.scrollTop-=c.top-r.top:r.bottom>c.bottom&&(e.scrollTop+=r.bottom-c.bottom)}}}}},{key:"setNativeRange",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(f.info("setNativeRange",e,t,r,n),null==e||null!=this.root.parentNode&&null!=e.parentNode&&null!=r.parentNode){var a=document.getSelection();if(null!=a)if(null!=e){this.hasFocus()||this.root.focus();var i=(this.getNativeRange()||{}).native;if(null==i||o||e!==i.startContainer||t!==i.startOffset||r!==i.endContainer||n!==i.endOffset){"BR"==e.tagName&&(t=[].indexOf.call(e.parentNode.childNodes,e),e=e.parentNode),"BR"==r.tagName&&(n=[].indexOf.call(r.parentNode.childNodes,r),r=r.parentNode);var s=document.createRange();s.setStart(e,t),s.setEnd(r,n),a.removeAllRanges(),a.addRange(s)}}else a.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.default.sources.API;if("string"===typeof t&&(r=t,t=!1),f.info("setRange",e),null!=e){var n=this.rangeToNative(e);this.setNativeRange.apply(this,u(n).concat([t]))}else this.setNativeRange(null);this.update(r)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.default.sources.USER,t=this.lastRange,r=this.getRange(),o=n(r,2),a=o[0],c=o[1];if(this.lastRange=a,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,s.default)(t,this.lastRange)){var u;!this.composing&&null!=c&&c.native.collapsed&&c.start.node!==this.cursor.textNode&&this.cursor.restore();var d,f=[l.default.events.SELECTION_CHANGE,(0,i.default)(this.lastRange),(0,i.default)(t),e];(u=this.emitter).emit.apply(u,[l.default.events.EDITOR_CHANGE].concat(f)),e!==l.default.sources.SILENT&&(d=this.emitter).emit.apply(d,f)}}}]),e}();function m(e,t){try{t.parentNode}catch(r){return!1}return t instanceof Text&&(t=t.parentNode),e.contains(t)}t.Range=p,t.default=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),a=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,n)}if("value"in o)return o.value;var i=o.get;return void 0!==i?i.call(n):void 0},i=r(0),s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"insertInto",value:function(e,r){0===e.children.length?a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertInto",this).call(this,e,r):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),t}(((n=i)&&n.__esModule?n:{default:n}).default.Embed);s.blotName="break",s.tagName="BR",t.default=s},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=r(44),a=r(30),i=r(1),s=function(e){function t(t){var r=e.call(this,t)||this;return r.build(),r}return n(t,e),t.prototype.appendChild=function(e){this.insertBefore(e)},t.prototype.attach=function(){e.prototype.attach.call(this),this.children.forEach((function(e){e.attach()}))},t.prototype.build=function(){var e=this;this.children=new o.default,[].slice.call(this.domNode.childNodes).reverse().forEach((function(t){try{var r=l(t);e.insertBefore(r,e.children.head||void 0)}catch(n){if(n instanceof i.ParchmentError)return;throw n}}))},t.prototype.deleteAt=function(e,t){if(0===e&&t===this.length())return this.remove();this.children.forEachAt(e,t,(function(e,t,r){e.deleteAt(t,r)}))},t.prototype.descendant=function(e,r){var n=this.children.find(r),o=n[0],a=n[1];return null==e.blotName&&e(o)||null!=e.blotName&&o instanceof e?[o,a]:o instanceof t?o.descendant(e,a):[null,-1]},t.prototype.descendants=function(e,r,n){void 0===r&&(r=0),void 0===n&&(n=Number.MAX_VALUE);var o=[],a=n;return this.children.forEachAt(r,n,(function(r,n,i){(null==e.blotName&&e(r)||null!=e.blotName&&r instanceof e)&&o.push(r),r instanceof t&&(o=o.concat(r.descendants(e,n,a))),a-=i})),o},t.prototype.detach=function(){this.children.forEach((function(e){e.detach()})),e.prototype.detach.call(this)},t.prototype.formatAt=function(e,t,r,n){this.children.forEachAt(e,t,(function(e,t,o){e.formatAt(t,o,r,n)}))},t.prototype.insertAt=function(e,t,r){var n=this.children.find(e),o=n[0],a=n[1];if(o)o.insertAt(a,t,r);else{var s=null==r?i.create("text",t):i.create(t,r);this.appendChild(s)}},t.prototype.insertBefore=function(e,t){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some((function(t){return e instanceof t})))throw new i.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,t)},t.prototype.length=function(){return this.children.reduce((function(e,t){return e+t.length()}),0)},t.prototype.moveChildren=function(e,t){this.children.forEach((function(r){e.insertBefore(r,t)}))},t.prototype.optimize=function(t){if(e.prototype.optimize.call(this,t),0===this.children.length)if(null!=this.statics.defaultChild){var r=i.create(this.statics.defaultChild);this.appendChild(r),r.optimize(t)}else this.remove()},t.prototype.path=function(e,r){void 0===r&&(r=!1);var n=this.children.find(e,r),o=n[0],a=n[1],i=[[this,e]];return o instanceof t?i.concat(o.path(a,r)):(null!=o&&i.push([o,a]),i)},t.prototype.removeChild=function(e){this.children.remove(e)},t.prototype.replace=function(r){r instanceof t&&r.moveChildren(this),e.prototype.replace.call(this,r)},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var r=this.clone();return this.parent.insertBefore(r,this.next),this.children.forEachAt(e,this.length(),(function(e,n,o){e=e.split(n,t),r.appendChild(e)})),r},t.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},t.prototype.update=function(e,t){var r=this,n=[],o=[];e.forEach((function(e){e.target===r.domNode&&"childList"===e.type&&(n.push.apply(n,e.addedNodes),o.push.apply(o,e.removedNodes))})),o.forEach((function(e){if(!(null!=e.parentNode&&"IFRAME"!==e.tagName&&document.body.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var t=i.find(e);null!=t&&(null!=t.domNode.parentNode&&t.domNode.parentNode!==r.domNode||t.detach())}})),n.filter((function(e){return e.parentNode==r.domNode})).sort((function(e,t){return e===t?0:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})).forEach((function(e){var t=null;null!=e.nextSibling&&(t=i.find(e.nextSibling));var n=l(e);n.next==t&&null!=n.next||(null!=n.parent&&n.parent.removeChild(r),r.insertBefore(n,t||void 0))}))},t}(a.default);function l(e){var t=i.find(e);if(null==t)try{t=i.create(e)}catch(r){t=i.create(i.Scope.INLINE),[].slice.call(e.childNodes).forEach((function(e){t.domNode.appendChild(e)})),e.parentNode&&e.parentNode.replaceChild(t.domNode,e),t.attach()}return t}t.default=s},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=r(12),a=r(31),i=r(17),s=r(1),l=function(e){function t(t){var r=e.call(this,t)||this;return r.attributes=new a.default(r.domNode),r}return n(t,e),t.formats=function(e){return"string"===typeof this.tagName||(Array.isArray(this.tagName)?e.tagName.toLowerCase():void 0)},t.prototype.format=function(e,t){var r=s.query(e);r instanceof o.default?this.attributes.attribute(r,t):t&&(null==r||e===this.statics.blotName&&this.formats()[e]===t||this.replaceWith(e,t))},t.prototype.formats=function(){var e=this.attributes.values(),t=this.statics.formats(this.domNode);return null!=t&&(e[this.statics.blotName]=t),e},t.prototype.replaceWith=function(t,r){var n=e.prototype.replaceWith.call(this,t,r);return this.attributes.copy(n),n},t.prototype.update=function(t,r){var n=this;e.prototype.update.call(this,t,r),t.some((function(e){return e.target===n.domNode&&"attributes"===e.type}))&&this.attributes.build()},t.prototype.wrap=function(r,n){var o=e.prototype.wrap.call(this,r,n);return o instanceof t&&o.statics.scope===this.statics.scope&&this.attributes.move(o),o},t}(i.default);t.default=l},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=r(30),a=r(1),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.value=function(e){return!0},t.prototype.index=function(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1},t.prototype.position=function(e,t){var r=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return e>0&&(r+=1),[this.parent.domNode,r]},t.prototype.value=function(){var e;return(e={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,e},t.scope=a.Scope.INLINE_BLOT,t}(o.default);t.default=i},function(e,t,r){var n=r(11),o=r(3),a={attributes:{compose:function(e,t,r){"object"!==typeof e&&(e={}),"object"!==typeof t&&(t={});var n=o(!0,{},t);for(var a in r||(n=Object.keys(n).reduce((function(e,t){return null!=n[t]&&(e[t]=n[t]),e}),{})),e)void 0!==e[a]&&void 0===t[a]&&(n[a]=e[a]);return Object.keys(n).length>0?n:void 0},diff:function(e,t){"object"!==typeof e&&(e={}),"object"!==typeof t&&(t={});var r=Object.keys(e).concat(Object.keys(t)).reduce((function(r,o){return n(e[o],t[o])||(r[o]=void 0===t[o]?null:t[o]),r}),{});return Object.keys(r).length>0?r:void 0},transform:function(e,t,r){if("object"!==typeof e)return t;if("object"===typeof t){if(!r)return t;var n=Object.keys(t).reduce((function(r,n){return void 0===e[n]&&(r[n]=t[n]),r}),{});return Object.keys(n).length>0?n:void 0}}},iterator:function(e){return new i(e)},length:function(e){return"number"===typeof e.delete?e.delete:"number"===typeof e.retain?e.retain:"string"===typeof e.insert?e.insert.length:1}};function i(e){this.ops=e,this.index=0,this.offset=0}i.prototype.hasNext=function(){return this.peekLength()<1/0},i.prototype.next=function(e){e||(e=1/0);var t=this.ops[this.index];if(t){var r=this.offset,n=a.length(t);if(e>=n-r?(e=n-r,this.index+=1,this.offset=0):this.offset+=e,"number"===typeof t.delete)return{delete:e};var o={};return t.attributes&&(o.attributes=t.attributes),"number"===typeof t.retain?o.retain=e:"string"===typeof t.insert?o.insert=t.insert.substr(r,e):o.insert=t.insert,o}return{retain:1/0}},i.prototype.peek=function(){return this.ops[this.index]},i.prototype.peekLength=function(){return this.ops[this.index]?a.length(this.ops[this.index])-this.offset:1/0},i.prototype.peekType=function(){return this.ops[this.index]?"number"===typeof this.ops[this.index].delete?"delete":"number"===typeof this.ops[this.index].retain?"retain":"insert":"retain"},i.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var e=this.offset,t=this.index,r=this.next(),n=this.ops.slice(this.index);return this.offset=e,this.index=t,[r].concat(n)}return[]},e.exports=a},function(e,t){var r=function(){"use strict";function e(e,t){return null!=t&&e instanceof t}var t,r,n;try{t=Map}catch(s){t=function(){}}try{r=Set}catch(s){r=function(){}}try{n=Promise}catch(s){n=function(){}}function o(a,s,l,c,u){"object"===typeof s&&(l=s.depth,c=s.prototype,u=s.includeNonEnumerable,s=s.circular);var d=[],f=[],p="undefined"!=typeof Buffer;return"undefined"==typeof s&&(s=!0),"undefined"==typeof l&&(l=1/0),function a(l,h){if(null===l)return null;if(0===h)return l;var m,g;if("object"!=typeof l)return l;if(e(l,t))m=new t;else if(e(l,r))m=new r;else if(e(l,n))m=new n((function(e,t){l.then((function(t){e(a(t,h-1))}),(function(e){t(a(e,h-1))}))}));else if(o.__isArray(l))m=[];else if(o.__isRegExp(l))m=new RegExp(l.source,i(l)),l.lastIndex&&(m.lastIndex=l.lastIndex);else if(o.__isDate(l))m=new Date(l.getTime());else{if(p&&Buffer.isBuffer(l))return m=Buffer.allocUnsafe?Buffer.allocUnsafe(l.length):new Buffer(l.length),l.copy(m),m;e(l,Error)?m=Object.create(l):"undefined"==typeof c?(g=Object.getPrototypeOf(l),m=Object.create(g)):(m=Object.create(c),g=c)}if(s){var b=d.indexOf(l);if(-1!=b)return f[b];d.push(l),f.push(m)}for(var y in e(l,t)&&l.forEach((function(e,t){var r=a(t,h-1),n=a(e,h-1);m.set(r,n)})),e(l,r)&&l.forEach((function(e){var t=a(e,h-1);m.add(t)})),l){var x;g&&(x=Object.getOwnPropertyDescriptor(g,y)),x&&null==x.set||(m[y]=a(l[y],h-1))}if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(l);for(y=0;y<v.length;y++){var w=v[y];(!(j=Object.getOwnPropertyDescriptor(l,w))||j.enumerable||u)&&(m[w]=a(l[w],h-1),j.enumerable||Object.defineProperty(m,w,{enumerable:!1}))}}if(u){var k=Object.getOwnPropertyNames(l);for(y=0;y<k.length;y++){var j,N=k[y];(j=Object.getOwnPropertyDescriptor(l,N))&&j.enumerable||(m[N]=a(l[N],h-1),Object.defineProperty(m,N,{enumerable:!1}))}}return m}(a,l)}function a(e){return Object.prototype.toString.call(e)}function i(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return o.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},o.__objToStr=a,o.__isDate=function(e){return"object"===typeof e&&"[object Date]"===a(e)},o.__isArray=function(e){return"object"===typeof e&&"[object Array]"===a(e)},o.__isRegExp=function(e){return"object"===typeof e&&"[object RegExp]"===a(e)},o.__getRegExpFlags=i,o}();"object"===typeof e&&e.exports&&(e.exports=r)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(l){o=!0,a=l}finally{try{!n&&s.return&&s.return()}finally{if(o)throw a}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),a=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,n)}if("value"in o)return o.value;var i=o.get;return void 0!==i?i.call(n):void 0},i=p(r(0)),s=p(r(8)),l=r(4),c=p(l),u=p(r(16)),d=p(r(13)),f=p(r(25));function p(e){return e&&e.__esModule?e:{default:e}}function h(e){return e instanceof c.default||e instanceof l.BlockEmbed}var m=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.emitter=r.emitter,Array.isArray(r.whitelist)&&(n.whitelist=r.whitelist.reduce((function(e,t){return e[t]=!0,e}),{})),n.domNode.addEventListener("DOMNodeInserted",(function(){})),n.optimize(),n.enable(),n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(e,r){var o=this.line(e),i=n(o,2),s=i[0],c=i[1],f=this.line(e+r),p=n(f,1)[0];if(a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,r),null!=p&&s!==p&&c>0){if(s instanceof l.BlockEmbed||p instanceof l.BlockEmbed)return void this.optimize();if(s instanceof d.default){var h=s.newlineIndex(s.length(),!0);if(h>-1&&(s=s.split(h+1))===p)return void this.optimize()}else if(p instanceof d.default){var m=p.newlineIndex(0);m>-1&&p.split(m+1)}var g=p.children.head instanceof u.default?null:p.children.head;s.moveChildren(p,g),s.remove()}this.optimize()}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",e)}},{key:"formatAt",value:function(e,r,n,o){(null==this.whitelist||this.whitelist[n])&&(a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,r,n,o),this.optimize())}},{key:"insertAt",value:function(e,r,n){if(null==n||null==this.whitelist||this.whitelist[r]){if(e>=this.length())if(null==n||null==i.default.query(r,i.default.Scope.BLOCK)){var o=i.default.create(this.statics.defaultChild);this.appendChild(o),null==n&&r.endsWith("\n")&&(r=r.slice(0,-1)),o.insertAt(0,r,n)}else{var s=i.default.create(r,n);this.appendChild(s)}else a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,r,n);this.optimize()}}},{key:"insertBefore",value:function(e,r){if(e.statics.scope===i.default.Scope.INLINE_BLOT){var n=i.default.create(this.statics.defaultChild);n.appendChild(e),e=n}a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,r)}},{key:"leaf",value:function(e){return this.path(e).pop()||[null,-1]}},{key:"line",value:function(e){return e===this.length()?this.line(e-1):this.descendant(h,e)}},{key:"lines",value:function(){return function e(t,r,n){var o=[],a=n;return t.children.forEachAt(r,n,(function(t,r,n){h(t)?o.push(t):t instanceof i.default.Container&&(o=o.concat(e(t,r,a))),a-=n})),o}(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{key:"optimize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e,r),e.length>0&&this.emitter.emit(s.default.events.SCROLL_OPTIMIZE,e,r))}},{key:"path",value:function(e){return a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e).slice(1)}},{key:"update",value:function(e){if(!0!==this.batch){var r=s.default.sources.USER;"string"===typeof e&&(r=e),Array.isArray(e)||(e=this.observer.takeRecords()),e.length>0&&this.emitter.emit(s.default.events.SCROLL_BEFORE_UPDATE,r,e),a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this,e.concat([])),e.length>0&&this.emitter.emit(s.default.events.SCROLL_UPDATE,r,e)}}}]),t}(i.default.Scroll);m.blotName="scroll",m.className="ql-editor",m.tagName="DIV",m.defaultChild="block",m.allowedChildren=[c.default,l.BlockEmbed,f.default],t.default=m},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHORTKEY=t.default=void 0;var n="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},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(l){o=!0,a=l}finally{try{!n&&s.return&&s.return()}finally{if(o)throw a}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},a=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=m(r(21)),s=m(r(11)),l=m(r(3)),c=m(r(2)),u=m(r(20)),d=m(r(0)),f=m(r(5)),p=m(r(10)),h=m(r(9));function m(e){return e&&e.__esModule?e:{default:e}}function g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var b=(0,p.default)("quill:keyboard"),y=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",x=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return n.bindings={},Object.keys(n.options.bindings).forEach((function(t){("list autofill"!==t||null==e.scroll.whitelist||e.scroll.whitelist.list)&&n.options.bindings[t]&&n.addBinding(n.options.bindings[t])})),n.addBinding({key:t.keys.ENTER,shiftKey:null},N),n.addBinding({key:t.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},(function(){})),/Firefox/i.test(navigator.userAgent)?(n.addBinding({key:t.keys.BACKSPACE},{collapsed:!0},w),n.addBinding({key:t.keys.DELETE},{collapsed:!0},k)):(n.addBinding({key:t.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},w),n.addBinding({key:t.keys.DELETE},{collapsed:!0,suffix:/^.?$/},k)),n.addBinding({key:t.keys.BACKSPACE},{collapsed:!1},j),n.addBinding({key:t.keys.DELETE},{collapsed:!1},j),n.addBinding({key:t.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},w),n.listen(),n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,null,[{key:"match",value:function(e,t){return t=E(t),!["altKey","ctrlKey","metaKey","shiftKey"].some((function(r){return!!t[r]!==e[r]&&null!==t[r]}))&&t.key===(e.which||e.keyCode)}}]),a(t,[{key:"addBinding",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=E(e);if(null==n||null==n.key)return b.warn("Attempted to add invalid keyboard binding",n);"function"===typeof t&&(t={handler:t}),"function"===typeof r&&(r={handler:r}),n=(0,l.default)(n,t,r),this.bindings[n.key]=this.bindings[n.key]||[],this.bindings[n.key].push(n)}},{key:"listen",value:function(){var e=this;this.quill.root.addEventListener("keydown",(function(r){if(!r.defaultPrevented){var a=r.which||r.keyCode,i=(e.bindings[a]||[]).filter((function(e){return t.match(r,e)}));if(0!==i.length){var l=e.quill.getSelection();if(null!=l&&e.quill.hasFocus()){var c=e.quill.getLine(l.index),u=o(c,2),f=u[0],p=u[1],h=e.quill.getLeaf(l.index),m=o(h,2),g=m[0],b=m[1],y=0===l.length?[g,b]:e.quill.getLeaf(l.index+l.length),x=o(y,2),v=x[0],w=x[1],k=g instanceof d.default.Text?g.value().slice(0,b):"",j=v instanceof d.default.Text?v.value().slice(w):"",N={collapsed:0===l.length,empty:0===l.length&&f.length()<=1,format:e.quill.getFormat(l),offset:p,prefix:k,suffix:j};i.some((function(t){if(null!=t.collapsed&&t.collapsed!==N.collapsed)return!1;if(null!=t.empty&&t.empty!==N.empty)return!1;if(null!=t.offset&&t.offset!==N.offset)return!1;if(Array.isArray(t.format)){if(t.format.every((function(e){return null==N.format[e]})))return!1}else if("object"===n(t.format)&&!Object.keys(t.format).every((function(e){return!0===t.format[e]?null!=N.format[e]:!1===t.format[e]?null==N.format[e]:(0,s.default)(t.format[e],N.format[e])})))return!1;return!(null!=t.prefix&&!t.prefix.test(N.prefix))&&!(null!=t.suffix&&!t.suffix.test(N.suffix))&&!0!==t.handler.call(e,l,N)}))&&r.preventDefault()}}}}))}}]),t}(h.default);function v(e,t){var r,n=e===x.keys.LEFT?"prefix":"suffix";return g(r={key:e,shiftKey:t,altKey:null},n,/^$/),g(r,"handler",(function(r){var n=r.index;e===x.keys.RIGHT&&(n+=r.length+1);var a=this.quill.getLeaf(n);return!(o(a,1)[0]instanceof d.default.Embed)||(e===x.keys.LEFT?t?this.quill.setSelection(r.index-1,r.length+1,f.default.sources.USER):this.quill.setSelection(r.index-1,f.default.sources.USER):t?this.quill.setSelection(r.index,r.length+1,f.default.sources.USER):this.quill.setSelection(r.index+r.length+1,f.default.sources.USER),!1)})),r}function w(e,t){if(!(0===e.index||this.quill.getLength()<=1)){var r=this.quill.getLine(e.index),n=o(r,1)[0],a={};if(0===t.offset){var i=this.quill.getLine(e.index-1),s=o(i,1)[0];if(null!=s&&s.length()>1){var l=n.formats(),c=this.quill.getFormat(e.index-1,1);a=u.default.attributes.diff(l,c)||{}}}var d=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;this.quill.deleteText(e.index-d,d,f.default.sources.USER),Object.keys(a).length>0&&this.quill.formatLine(e.index-d,d,a,f.default.sources.USER),this.quill.focus()}}function k(e,t){var r=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(!(e.index>=this.quill.getLength()-r)){var n={},a=0,i=this.quill.getLine(e.index),s=o(i,1)[0];if(t.offset>=s.length()-1){var l=this.quill.getLine(e.index+1),c=o(l,1)[0];if(c){var d=s.formats(),p=this.quill.getFormat(e.index,1);n=u.default.attributes.diff(d,p)||{},a=c.length()}}this.quill.deleteText(e.index,r,f.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(e.index+a-1,r,n,f.default.sources.USER)}}function j(e){var t=this.quill.getLines(e),r={};if(t.length>1){var n=t[0].formats(),o=t[t.length-1].formats();r=u.default.attributes.diff(o,n)||{}}this.quill.deleteText(e,f.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(e.index,1,r,f.default.sources.USER),this.quill.setSelection(e.index,f.default.sources.SILENT),this.quill.focus()}function N(e,t){var r=this;e.length>0&&this.quill.scroll.deleteAt(e.index,e.length);var n=Object.keys(t.format).reduce((function(e,r){return d.default.query(r,d.default.Scope.BLOCK)&&!Array.isArray(t.format[r])&&(e[r]=t.format[r]),e}),{});this.quill.insertText(e.index,"\n",n,f.default.sources.USER),this.quill.setSelection(e.index+1,f.default.sources.SILENT),this.quill.focus(),Object.keys(t.format).forEach((function(e){null==n[e]&&(Array.isArray(t.format[e])||"link"!==e&&r.quill.format(e,t.format[e],f.default.sources.USER))}))}function C(e){return{key:x.keys.TAB,shiftKey:!e,format:{"code-block":!0},handler:function(t){var r=d.default.query("code-block"),n=t.index,a=t.length,i=this.quill.scroll.descendant(r,n),s=o(i,2),l=s[0],c=s[1];if(null!=l){var u=this.quill.getIndex(l),p=l.newlineIndex(c,!0)+1,h=l.newlineIndex(u+c+a),m=l.domNode.textContent.slice(p,h).split("\n");c=0,m.forEach((function(t,o){e?(l.insertAt(p+c,r.TAB),c+=r.TAB.length,0===o?n+=r.TAB.length:a+=r.TAB.length):t.startsWith(r.TAB)&&(l.deleteAt(p+c,r.TAB.length),c-=r.TAB.length,0===o?n-=r.TAB.length:a-=r.TAB.length),c+=t.length+1})),this.quill.update(f.default.sources.USER),this.quill.setSelection(n,a,f.default.sources.SILENT)}}}}function S(e){return{key:e[0].toUpperCase(),shortKey:!0,handler:function(t,r){this.quill.format(e,!r.format[e],f.default.sources.USER)}}}function E(e){if("string"===typeof e||"number"===typeof e)return E({key:e});if("object"===("undefined"===typeof e?"undefined":n(e))&&(e=(0,i.default)(e,!1)),"string"===typeof e.key)if(null!=x.keys[e.key.toUpperCase()])e.key=x.keys[e.key.toUpperCase()];else{if(1!==e.key.length)return null;e.key=e.key.toUpperCase().charCodeAt(0)}return e.shortKey&&(e[y]=e.shortKey,delete e.shortKey),e}x.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},x.DEFAULTS={bindings:{bold:S("bold"),italic:S("italic"),underline:S("underline"),indent:{key:x.keys.TAB,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","+1",f.default.sources.USER)}},outdent:{key:x.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","-1",f.default.sources.USER)}},"outdent backspace":{key:x.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(e,t){null!=t.format.indent?this.quill.format("indent","-1",f.default.sources.USER):null!=t.format.list&&this.quill.format("list",!1,f.default.sources.USER)}},"indent code-block":C(!0),"outdent code-block":C(!1),"remove tab":{key:x.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,f.default.sources.USER)}},tab:{key:x.keys.TAB,handler:function(e){this.quill.history.cutoff();var t=(new c.default).retain(e.index).delete(e.length).insert("\t");this.quill.updateContents(t,f.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,f.default.sources.SILENT)}},"list empty enter":{key:x.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(e,t){this.quill.format("list",!1,f.default.sources.USER),t.format.indent&&this.quill.format("indent",!1,f.default.sources.USER)}},"checklist enter":{key:x.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(e){var t=this.quill.getLine(e.index),r=o(t,2),n=r[0],a=r[1],i=(0,l.default)({},n.formats(),{list:"checked"}),s=(new c.default).retain(e.index).insert("\n",i).retain(n.length()-a-1).retain(1,{list:"unchecked"});this.quill.updateContents(s,f.default.sources.USER),this.quill.setSelection(e.index+1,f.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:x.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(e,t){var r=this.quill.getLine(e.index),n=o(r,2),a=n[0],i=n[1],s=(new c.default).retain(e.index).insert("\n",t.format).retain(a.length()-i-1).retain(1,{header:null});this.quill.updateContents(s,f.default.sources.USER),this.quill.setSelection(e.index+1,f.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(e,t){var r=t.prefix.length,n=this.quill.getLine(e.index),a=o(n,2),i=a[0],s=a[1];if(s>r)return!0;var l=void 0;switch(t.prefix.trim()){case"[]":case"[ ]":l="unchecked";break;case"[x]":l="checked";break;case"-":case"*":l="bullet";break;default:l="ordered"}this.quill.insertText(e.index," ",f.default.sources.USER),this.quill.history.cutoff();var u=(new c.default).retain(e.index-s).delete(r+1).retain(i.length()-2-s).retain(1,{list:l});this.quill.updateContents(u,f.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-r,f.default.sources.SILENT)}},"code exit":{key:x.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(e){var t=this.quill.getLine(e.index),r=o(t,2),n=r[0],a=r[1],i=(new c.default).retain(e.index+n.length()-a-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(i,f.default.sources.USER)}},"embed left":v(x.keys.LEFT,!1),"embed left shift":v(x.keys.LEFT,!0),"embed right":v(x.keys.RIGHT,!1),"embed right shift":v(x.keys.RIGHT,!0)}},t.default=x,t.SHORTKEY=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(l){o=!0,a=l}finally{try{!n&&s.return&&s.return()}finally{if(o)throw a}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,n)}if("value"in o)return o.value;var i=o.get;return void 0!==i?i.call(n):void 0},a=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=l(r(0)),s=l(r(7));function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.selection=r,n.textNode=document.createTextNode(t.CONTENTS),n.domNode.appendChild(n.textNode),n._length=0,n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,null,[{key:"value",value:function(){}}]),a(t,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(e,r){if(0!==this._length)return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,r);for(var n=this,a=0;null!=n&&n.statics.scope!==i.default.Scope.BLOCK_BLOT;)a+=n.offset(n.parent),n=n.parent;null!=n&&(this._length=t.CONTENTS.length,n.optimize(),n.formatAt(a,t.CONTENTS.length,e,r),this._length=0)}},{key:"index",value:function(e,r){return e===this.textNode?0:o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,r)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var e=this.textNode,r=this.selection.getNativeRange(),o=void 0,a=void 0,l=void 0;if(null!=r&&r.start.node===e&&r.end.node===e){var c=[e,r.start.offset,r.end.offset];o=c[0],a=c[1],l=c[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==t.CONTENTS){var u=this.textNode.data.split(t.CONTENTS).join("");this.next instanceof s.default?(o=this.next.domNode,this.next.insertAt(0,u),this.textNode.data=t.CONTENTS):(this.textNode.data=u,this.parent.insertBefore(i.default.create(this.textNode),this),this.textNode=document.createTextNode(t.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=a){var d=[a,l].map((function(e){return Math.max(0,Math.min(o.data.length,e-1))})),f=n(d,2);return a=f[0],l=f[1],{startNode:o,startOffset:a,endNode:o,endOffset:l}}}}},{key:"update",value:function(e,t){var r=this;if(e.some((function(e){return"characterData"===e.type&&e.target===r.textNode}))){var n=this.restore();n&&(t.range=n)}}},{key:"value",value:function(){return""}}]),t}(i.default.Embed);c.blotName="cursor",c.className="ql-cursor",c.tagName="span",c.CONTENTS="\ufeff",t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(r(0)),o=r(4),a=i(o);function i(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(n.default.Container);s.allowedChildren=[a.default,o.BlockEmbed,s],t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorStyle=t.ColorClass=t.ColorAttributor=void 0;var n,o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),a=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,n)}if("value"in o)return o.value;var i=o.get;return void 0!==i?i.call(n):void 0},i=r(0),s=(n=i)&&n.__esModule?n:{default:n},l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"value",value:function(e){var r=a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e);return r.startsWith("rgb(")?(r=r.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+r.split(",").map((function(e){return("00"+parseInt(e).toString(16)).slice(-2)})).join("")):r}}]),t}(s.default.Attributor.Style),c=new s.default.Attributor.Class("color","ql-color",{scope:s.default.Scope.INLINE}),u=new l("color","color",{scope:s.default.Scope.INLINE});t.ColorAttributor=l,t.ColorClass=c,t.ColorStyle=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sanitize=t.default=void 0;var n,o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),a=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,n)}if("value"in o)return o.value;var i=o.get;return void 0!==i?i.call(n):void 0},i=r(6),s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"format",value:function(e,r){if(e!==this.statics.blotName||!r)return a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,r);r=this.constructor.sanitize(r),this.domNode.setAttribute("href",r)}}],[{key:"create",value:function(e){var r=a(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return e=this.sanitize(e),r.setAttribute("href",e),r.setAttribute("rel","noopener noreferrer"),r.setAttribute("target","_blank"),r}},{key:"formats",value:function(e){return e.getAttribute("href")}},{key:"sanitize",value:function(e){return l(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}}]),t}(((n=i)&&n.__esModule?n:{default:n}).default);function l(e,t){var r=document.createElement("a");r.href=e;var n=r.href.slice(0,r.href.indexOf(":"));return t.indexOf(n)>-1}s.blotName="link",s.tagName="A",s.SANITIZED_URL="about:blank",s.PROTOCOL_WHITELIST=["http","https","mailto","tel"],t.default=s,t.sanitize=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="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},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),a=s(r(23)),i=s(r(107));function s(e){return e&&e.__esModule?e:{default:e}}var l=0;function c(e,t){e.setAttribute(t,!("true"===e.getAttribute(t)))}var u=function(){function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.select=t,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",(function(){r.togglePicker()})),this.label.addEventListener("keydown",(function(e){switch(e.keyCode){case a.default.keys.ENTER:r.togglePicker();break;case a.default.keys.ESCAPE:r.escape(),e.preventDefault()}})),this.select.addEventListener("change",this.update.bind(this))}return o(e,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),c(this.label,"aria-expanded"),c(this.options,"aria-hidden")}},{key:"buildItem",value:function(e){var t=this,r=document.createElement("span");return r.tabIndex="0",r.setAttribute("role","button"),r.classList.add("ql-picker-item"),e.hasAttribute("value")&&r.setAttribute("data-value",e.getAttribute("value")),e.textContent&&r.setAttribute("data-label",e.textContent),r.addEventListener("click",(function(){t.selectItem(r,!0)})),r.addEventListener("keydown",(function(e){switch(e.keyCode){case a.default.keys.ENTER:t.selectItem(r,!0),e.preventDefault();break;case a.default.keys.ESCAPE:t.escape(),e.preventDefault()}})),r}},{key:"buildLabel",value:function(){var e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=i.default,e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}},{key:"buildOptions",value:function(){var e=this,t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id="ql-picker-options-"+l,l+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,[].slice.call(this.select.options).forEach((function(r){var n=e.buildItem(r);t.appendChild(n),!0===r.selected&&e.selectItem(n)})),this.container.appendChild(t)}},{key:"buildPicker",value:function(){var e=this;[].slice.call(this.select.attributes).forEach((function(t){e.container.setAttribute(t.name,t.value)})),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var e=this;this.close(),setTimeout((function(){return e.label.focus()}),1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.container.querySelector(".ql-selected");if(e!==r&&(null!=r&&r.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(e.parentNode.children,e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t))){if("function"===typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"===typeof Event?"undefined":n(Event))){var o=document.createEvent("Event");o.initEvent("change",!0,!0),this.select.dispatchEvent(o)}this.close()}}},{key:"update",value:function(){var e=void 0;if(this.select.selectedIndex>-1){var t=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(t)}else this.selectItem(null);var r=null!=e&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",r)}}]),e}();t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=b(r(0)),o=b(r(5)),a=r(4),i=b(a),s=b(r(16)),l=b(r(25)),c=b(r(24)),u=b(r(35)),d=b(r(6)),f=b(r(22)),p=b(r(7)),h=b(r(55)),m=b(r(42)),g=b(r(23));function b(e){return e&&e.__esModule?e:{default:e}}o.default.register({"blots/block":i.default,"blots/block/embed":a.BlockEmbed,"blots/break":s.default,"blots/container":l.default,"blots/cursor":c.default,"blots/embed":u.default,"blots/inline":d.default,"blots/scroll":f.default,"blots/text":p.default,"modules/clipboard":h.default,"modules/history":m.default,"modules/keyboard":g.default}),n.default.register(i.default,s.default,c.default,d.default,f.default,p.default),t.default=o.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1),o=function(){function e(e){this.domNode=e,this.domNode[n.DATA_KEY]={blot:this}}return Object.defineProperty(e.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),e.create=function(e){if(null==this.tagName)throw new n.ParchmentError("Blot definition missing tagName");var t;return Array.isArray(this.tagName)?("string"===typeof e&&(e=e.toUpperCase(),parseInt(e).toString()===e&&(e=parseInt(e))),t="number"===typeof e?document.createElement(this.tagName[e-1]):this.tagName.indexOf(e)>-1?document.createElement(e):document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t},e.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},e.prototype.clone=function(){var e=this.domNode.cloneNode(!1);return n.create(e)},e.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[n.DATA_KEY]},e.prototype.deleteAt=function(e,t){this.isolate(e,t).remove()},e.prototype.formatAt=function(e,t,r,o){var a=this.isolate(e,t);if(null!=n.query(r,n.Scope.BLOT)&&o)a.wrap(r,o);else if(null!=n.query(r,n.Scope.ATTRIBUTE)){var i=n.create(this.statics.scope);a.wrap(i),i.format(r,o)}},e.prototype.insertAt=function(e,t,r){var o=null==r?n.create("text",t):n.create(t,r),a=this.split(e);this.parent.insertBefore(o,a)},e.prototype.insertInto=function(e,t){void 0===t&&(t=null),null!=this.parent&&this.parent.children.remove(this);var r=null;e.children.insertBefore(this,t),null!=t&&(r=t.domNode),this.domNode.parentNode==e.domNode&&this.domNode.nextSibling==r||e.domNode.insertBefore(this.domNode,r),this.parent=e,this.attach()},e.prototype.isolate=function(e,t){var r=this.split(e);return r.split(t),r},e.prototype.length=function(){return 1},e.prototype.offset=function(e){return void 0===e&&(e=this.parent),null==this.parent||this==e?0:this.parent.children.offset(this)+this.parent.offset(e)},e.prototype.optimize=function(e){null!=this.domNode[n.DATA_KEY]&&delete this.domNode[n.DATA_KEY].mutations},e.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},e.prototype.replace=function(e){null!=e.parent&&(e.parent.insertBefore(this,e.next),e.remove())},e.prototype.replaceWith=function(e,t){var r="string"===typeof e?n.create(e,t):e;return r.replace(this),r},e.prototype.split=function(e,t){return 0===e?this:this.next},e.prototype.update=function(e,t){},e.prototype.wrap=function(e,t){var r="string"===typeof e?n.create(e,t):e;return null!=this.parent&&this.parent.insertBefore(r,this.next),r.appendChild(this),r},e.blotName="abstract",e}();t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(12),o=r(32),a=r(33),i=r(1),s=function(){function e(e){this.attributes={},this.domNode=e,this.build()}return e.prototype.attribute=function(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])},e.prototype.build=function(){var e=this;this.attributes={};var t=n.default.keys(this.domNode),r=o.default.keys(this.domNode),s=a.default.keys(this.domNode);t.concat(r).concat(s).forEach((function(t){var r=i.query(t,i.Scope.ATTRIBUTE);r instanceof n.default&&(e.attributes[r.attrName]=r)}))},e.prototype.copy=function(e){var t=this;Object.keys(this.attributes).forEach((function(r){var n=t.attributes[r].value(t.domNode);e.format(r,n)}))},e.prototype.move=function(e){var t=this;this.copy(e),Object.keys(this.attributes).forEach((function(e){t.attributes[e].remove(t.domNode)})),this.attributes={}},e.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce((function(t,r){return t[r]=e.attributes[r].value(e.domNode),t}),{})},e}();t.default=s},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();function o(e,t){return(e.getAttribute("class")||"").split(/\s+/).filter((function(e){return 0===e.indexOf(t+"-")}))}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.keys=function(e){return(e.getAttribute("class")||"").split(/\s+/).map((function(e){return e.split("-").slice(0,-1).join("-")}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(this.keyName+"-"+t),!0)},t.prototype.remove=function(e){o(e,this.keyName).forEach((function(t){e.classList.remove(t)})),0===e.classList.length&&e.removeAttribute("class")},t.prototype.value=function(e){var t=(o(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""},t}(r(12).default);t.default=a},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();function o(e){var t=e.split("-"),r=t.slice(1).map((function(e){return e[0].toUpperCase()+e.slice(1)})).join("");return t[0]+r}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.keys=function(e){return(e.getAttribute("style")||"").split(";").map((function(e){return e.split(":")[0].trim()}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.style[o(this.keyName)]=t,!0)},t.prototype.remove=function(e){e.style[o(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")},t.prototype.value=function(e){var t=e.style[o(this.keyName)];return this.canAdd(e,t)?t:""},t}(r(12).default);t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.options=r,this.modules={}}return n(e,[{key:"init",value:function(){var e=this;Object.keys(this.options.modules).forEach((function(t){null==e.modules[t]&&e.addModule(t)}))}},{key:"addModule",value:function(e){var t=this.quill.constructor.import("modules/"+e);return this.modules[e]=new t(this.quill,this.options.modules[e]||{}),this.modules[e]}}]),e}();o.DEFAULTS={modules:{}},o.themes={default:o},t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,n)}if("value"in o)return o.value;var i=o.get;return void 0!==i?i.call(n):void 0},a=s(r(0)),i=s(r(7));function s(e){return e&&e.__esModule?e:{default:e}}var l="\ufeff",c=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.contentNode=document.createElement("span"),r.contentNode.setAttribute("contenteditable",!1),[].slice.call(r.domNode.childNodes).forEach((function(e){r.contentNode.appendChild(e)})),r.leftGuard=document.createTextNode(l),r.rightGuard=document.createTextNode(l),r.domNode.appendChild(r.leftGuard),r.domNode.appendChild(r.contentNode),r.domNode.appendChild(r.rightGuard),r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),n(t,[{key:"index",value:function(e,r){return e===this.leftGuard?0:e===this.rightGuard?1:o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,r)}},{key:"restore",value:function(e){var t=void 0,r=void 0,n=e.data.split(l).join("");if(e===this.leftGuard)if(this.prev instanceof i.default){var o=this.prev.length();this.prev.insertAt(o,n),t={startNode:this.prev.domNode,startOffset:o+n.length}}else r=document.createTextNode(n),this.parent.insertBefore(a.default.create(r),this),t={startNode:r,startOffset:n.length};else e===this.rightGuard&&(this.next instanceof i.default?(this.next.insertAt(0,n),t={startNode:this.next.domNode,startOffset:n.length}):(r=document.createTextNode(n),this.parent.insertBefore(a.default.create(r),this.next),t={startNode:r,startOffset:n.length}));return e.data=l,t}},{key:"update",value:function(e,t){var r=this;e.forEach((function(e){if("characterData"===e.type&&(e.target===r.leftGuard||e.target===r.rightGuard)){var n=r.restore(e.target);n&&(t.range=n)}}))}}]),t}(a.default.Embed);t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AlignStyle=t.AlignClass=t.AlignAttribute=void 0;var n,o=r(0),a=(n=o)&&n.__esModule?n:{default:n},i={scope:a.default.Scope.BLOCK,whitelist:["right","center","justify"]},s=new a.default.Attributor.Attribute("align","align",i),l=new a.default.Attributor.Class("align","ql-align",i),c=new a.default.Attributor.Style("align","text-align",i);t.AlignAttribute=s,t.AlignClass=l,t.AlignStyle=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundStyle=t.BackgroundClass=void 0;var n,o=r(0),a=(n=o)&&n.__esModule?n:{default:n},i=r(26),s=new a.default.Attributor.Class("background","ql-bg",{scope:a.default.Scope.INLINE}),l=new i.ColorAttributor("background","background-color",{scope:a.default.Scope.INLINE});t.BackgroundClass=s,t.BackgroundStyle=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectionStyle=t.DirectionClass=t.DirectionAttribute=void 0;var n,o=r(0),a=(n=o)&&n.__esModule?n:{default:n},i={scope:a.default.Scope.BLOCK,whitelist:["rtl"]},s=new a.default.Attributor.Attribute("direction","dir",i),l=new a.default.Attributor.Class("direction","ql-direction",i),c=new a.default.Attributor.Style("direction","direction",i);t.DirectionAttribute=s,t.DirectionClass=l,t.DirectionStyle=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FontClass=t.FontStyle=void 0;var n,o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),a=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,n)}if("value"in o)return o.value;var i=o.get;return void 0!==i?i.call(n):void 0},i=r(0),s=(n=i)&&n.__esModule?n:{default:n},l={scope:s.default.Scope.INLINE,whitelist:["serif","monospace"]},c=new s.default.Attributor.Class("font","ql-font",l),u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"value",value:function(e){return a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e).replace(/["']/g,"")}}]),t}(s.default.Attributor.Style),d=new u("font","font-family",l);t.FontStyle=d,t.FontClass=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SizeStyle=t.SizeClass=void 0;var n,o=r(0),a=(n=o)&&n.__esModule?n:{default:n},i=new a.default.Attributor.Class("size","ql-size",{scope:a.default.Scope.INLINE,whitelist:["small","large","huge"]}),s=new a.default.Attributor.Style("size","font-size",{scope:a.default.Scope.INLINE,whitelist:["10px","18px","32px"]});t.SizeClass=i,t.SizeStyle=s},function(e,t,r){"use strict";e.exports={align:{"":r(76),center:r(77),right:r(78),justify:r(79)},background:r(80),blockquote:r(81),bold:r(82),clean:r(83),code:r(58),"code-block":r(58),color:r(84),direction:{"":r(85),rtl:r(86)},float:{center:r(87),full:r(88),left:r(89),right:r(90)},formula:r(91),header:{1:r(92),2:r(93)},italic:r(94),image:r(95),indent:{"+1":r(96),"-1":r(97)},link:r(98),list:{ordered:r(99),bullet:r(100),check:r(101)},script:{sub:r(102),super:r(103)},strike:r(104),underline:r(105),video:r(106)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLastChangeIndex=t.default=void 0;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=i(r(0)),a=i(r(5));function i(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return n.lastRecorded=0,n.ignoreChange=!1,n.clear(),n.quill.on(a.default.events.EDITOR_CHANGE,(function(e,t,r,o){e!==a.default.events.TEXT_CHANGE||n.ignoreChange||(n.options.userOnly&&o!==a.default.sources.USER?n.transform(t):n.record(t,r))})),n.quill.keyboard.addBinding({key:"Z",shortKey:!0},n.undo.bind(n)),n.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},n.redo.bind(n)),/Win/i.test(navigator.platform)&&n.quill.keyboard.addBinding({key:"Y",shortKey:!0},n.redo.bind(n)),n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),n(t,[{key:"change",value:function(e,t){if(0!==this.stack[e].length){var r=this.stack[e].pop();this.stack[t].push(r),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(r[e],a.default.sources.USER),this.ignoreChange=!1;var n=l(r[e]);this.quill.setSelection(n)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(e,t){if(0!==e.ops.length){this.stack.redo=[];var r=this.quill.getContents().diff(t),n=Date.now();if(this.lastRecorded+this.options.delay>n&&this.stack.undo.length>0){var o=this.stack.undo.pop();r=r.compose(o.undo),e=o.redo.compose(e)}else this.lastRecorded=n;this.stack.undo.push({redo:e,undo:r}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(e){this.stack.undo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)})),this.stack.redo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),t}(i(r(9)).default);function l(e){var t=e.reduce((function(e,t){return e+=t.delete||0}),0),r=e.length()-t;return function(e){var t=e.ops[e.ops.length-1];return null!=t&&(null!=t.insert?"string"===typeof t.insert&&t.insert.endsWith("\n"):null!=t.attributes&&Object.keys(t.attributes).some((function(e){return null!=o.default.query(e,o.default.Scope.BLOCK)})))}(e)&&(r-=1),r}s.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},t.default=s,t.getLastChangeIndex=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BaseTooltip=void 0;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,n)}if("value"in o)return o.value;var i=o.get;return void 0!==i?i.call(n):void 0},a=h(r(3)),i=h(r(2)),s=h(r(8)),l=h(r(23)),c=h(r(34)),u=h(r(59)),d=h(r(60)),f=h(r(28)),p=h(r(61));function h(e){return e&&e.__esModule?e:{default:e}}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function b(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var y=[!1,"center","right","justify"],x=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],v=[!1,"serif","monospace"],w=["1","2","3",!1],k=["small",!1,"large","huge"],j=function(e){function t(e,r){m(this,t);var n=g(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return e.emitter.listenDOM("click",document.body,(function t(r){if(!document.body.contains(e.root))return document.body.removeEventListener("click",t);null==n.tooltip||n.tooltip.root.contains(r.target)||document.activeElement===n.tooltip.textbox||n.quill.hasFocus()||n.tooltip.hide(),null!=n.pickers&&n.pickers.forEach((function(e){e.container.contains(r.target)||e.close()}))})),n}return b(t,e),n(t,[{key:"addModule",value:function(e){var r=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addModule",this).call(this,e);return"toolbar"===e&&this.extendToolbar(r),r}},{key:"buildButtons",value:function(e,t){e.forEach((function(e){(e.getAttribute("class")||"").split(/\s+/).forEach((function(r){if(r.startsWith("ql-")&&(r=r.slice(3),null!=t[r]))if("direction"===r)e.innerHTML=t[r][""]+t[r].rtl;else if("string"===typeof t[r])e.innerHTML=t[r];else{var n=e.value||"";null!=n&&t[r][n]&&(e.innerHTML=t[r][n])}}))}))}},{key:"buildPickers",value:function(e,t){var r=this;this.pickers=e.map((function(e){if(e.classList.contains("ql-align"))return null==e.querySelector("option")&&C(e,y),new d.default(e,t.align);if(e.classList.contains("ql-background")||e.classList.contains("ql-color")){var r=e.classList.contains("ql-background")?"background":"color";return null==e.querySelector("option")&&C(e,x,"background"===r?"#ffffff":"#000000"),new u.default(e,t[r])}return null==e.querySelector("option")&&(e.classList.contains("ql-font")?C(e,v):e.classList.contains("ql-header")?C(e,w):e.classList.contains("ql-size")&&C(e,k)),new f.default(e)})),this.quill.on(s.default.events.EDITOR_CHANGE,(function(){r.pickers.forEach((function(e){e.update()}))}))}}]),t}(c.default);j.DEFAULTS=(0,a.default)(!0,{},c.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var e=this,t=this.container.querySelector("input.ql-image[type=file]");null==t&&((t=document.createElement("input")).setAttribute("type","file"),t.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),t.classList.add("ql-image"),t.addEventListener("change",(function(){if(null!=t.files&&null!=t.files[0]){var r=new FileReader;r.onload=function(r){var n=e.quill.getSelection(!0);e.quill.updateContents((new i.default).retain(n.index).delete(n.length).insert({image:r.target.result}),s.default.sources.USER),e.quill.setSelection(n.index+1,s.default.sources.SILENT),t.value=""},r.readAsDataURL(t.files[0])}})),this.container.appendChild(t)),t.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var N=function(e){function t(e,r){m(this,t);var n=g(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return n.textbox=n.root.querySelector('input[type="text"]'),n.listen(),n}return b(t,e),n(t,[{key:"listen",value:function(){var e=this;this.textbox.addEventListener("keydown",(function(t){l.default.match(t,"enter")?(e.save(),t.preventDefault()):l.default.match(t,"escape")&&(e.cancel(),t.preventDefault())}))}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=t?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+e)||""),this.root.setAttribute("data-mode",e)}},{key:"restoreFocus",value:function(){var e=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=e}},{key:"save",value:function(){var e=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var t=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,s.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,s.default.sources.USER)),this.quill.root.scrollTop=t;break;case"video":e=function(e){var t=e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return t?(t[1]||"https")+"://www.youtube.com/embed/"+t[2]+"?showinfo=0":(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(t[1]||"https")+"://player.vimeo.com/video/"+t[2]+"/":e}(e);case"formula":if(!e)break;var r=this.quill.getSelection(!0);if(null!=r){var n=r.index+r.length;this.quill.insertEmbed(n,this.root.getAttribute("data-mode"),e,s.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(n+1," ",s.default.sources.USER),this.quill.setSelection(n+2,s.default.sources.USER)}}this.textbox.value="",this.hide()}}]),t}(p.default);function C(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.forEach((function(t){var n=document.createElement("option");t===r?n.setAttribute("selected","selected"):n.setAttribute("value",t),e.appendChild(n)}))}t.BaseTooltip=N,t.default=j},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){this.head=this.tail=null,this.length=0}return e.prototype.append=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.insertBefore(e[0],null),e.length>1&&this.append.apply(this,e.slice(1))},e.prototype.contains=function(e){for(var t,r=this.iterator();t=r();)if(t===e)return!0;return!1},e.prototype.insertBefore=function(e,t){e&&(e.next=t,null!=t?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)},e.prototype.offset=function(e){for(var t=0,r=this.head;null!=r;){if(r===e)return t;t+=r.length(),r=r.next}return-1},e.prototype.remove=function(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)},e.prototype.iterator=function(e){return void 0===e&&(e=this.head),function(){var t=e;return null!=e&&(e=e.next),t}},e.prototype.find=function(e,t){void 0===t&&(t=!1);for(var r,n=this.iterator();r=n();){var o=r.length();if(e<o||t&&e===o&&(null==r.next||0!==r.next.length()))return[r,e];e-=o}return[null,0]},e.prototype.forEach=function(e){for(var t,r=this.iterator();t=r();)e(t)},e.prototype.forEachAt=function(e,t,r){if(!(t<=0))for(var n,o=this.find(e),a=o[0],i=e-o[1],s=this.iterator(a);(n=s())&&i<e+t;){var l=n.length();e>i?r(n,e-i,Math.min(t,i+l-e)):r(n,0,Math.min(l,e+t-i)),i+=l}},e.prototype.map=function(e){return this.reduce((function(t,r){return t.push(e(r)),t}),[])},e.prototype.reduce=function(e,t){for(var r,n=this.iterator();r=n();)t=e(t,r);return t},e}();t.default=n},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=r(17),a=r(1),i={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},s=function(e){function t(t){var r=e.call(this,t)||this;return r.scroll=r,r.observer=new MutationObserver((function(e){r.update(e)})),r.observer.observe(r.domNode,i),r.attach(),r}return n(t,e),t.prototype.detach=function(){e.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(t,r){this.update(),0===t&&r===this.length()?this.children.forEach((function(e){e.remove()})):e.prototype.deleteAt.call(this,t,r)},t.prototype.formatAt=function(t,r,n,o){this.update(),e.prototype.formatAt.call(this,t,r,n,o)},t.prototype.insertAt=function(t,r,n){this.update(),e.prototype.insertAt.call(this,t,r,n)},t.prototype.optimize=function(t,r){var n=this;void 0===t&&(t=[]),void 0===r&&(r={}),e.prototype.optimize.call(this,r);for(var i=[].slice.call(this.observer.takeRecords());i.length>0;)t.push(i.pop());for(var s=function(e,t){void 0===t&&(t=!0),null!=e&&e!==n&&null!=e.domNode.parentNode&&(null==e.domNode[a.DATA_KEY].mutations&&(e.domNode[a.DATA_KEY].mutations=[]),t&&s(e.parent))},l=function(e){null!=e.domNode[a.DATA_KEY]&&null!=e.domNode[a.DATA_KEY].mutations&&(e instanceof o.default&&e.children.forEach(l),e.optimize(r))},c=t,u=0;c.length>0;u+=1){if(u>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(c.forEach((function(e){var t=a.find(e.target,!0);null!=t&&(t.domNode===e.target&&("childList"===e.type?(s(a.find(e.previousSibling,!1)),[].forEach.call(e.addedNodes,(function(e){var t=a.find(e,!1);s(t,!1),t instanceof o.default&&t.children.forEach((function(e){s(e,!1)}))}))):"attributes"===e.type&&s(t.prev)),s(t))})),this.children.forEach(l),i=(c=[].slice.call(this.observer.takeRecords())).slice();i.length>0;)t.push(i.pop())}},t.prototype.update=function(t,r){var n=this;void 0===r&&(r={}),(t=t||this.observer.takeRecords()).map((function(e){var t=a.find(e.target,!0);return null==t?null:null==t.domNode[a.DATA_KEY].mutations?(t.domNode[a.DATA_KEY].mutations=[e],t):(t.domNode[a.DATA_KEY].mutations.push(e),null)})).forEach((function(e){null!=e&&e!==n&&null!=e.domNode[a.DATA_KEY]&&e.update(e.domNode[a.DATA_KEY].mutations||[],r)})),null!=this.domNode[a.DATA_KEY].mutations&&e.prototype.update.call(this,this.domNode[a.DATA_KEY].mutations,r),this.optimize(t,r)},t.blotName="scroll",t.defaultChild="block",t.scope=a.Scope.BLOCK_BLOT,t.tagName="DIV",t}(o.default);t.default=s},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=r(18),a=r(1),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.formats=function(r){if(r.tagName!==t.tagName)return e.formats.call(this,r)},t.prototype.format=function(r,n){var a=this;r!==this.statics.blotName||n?e.prototype.format.call(this,r,n):(this.children.forEach((function(e){e instanceof o.default||(e=e.wrap(t.blotName,!0)),a.attributes.copy(e)})),this.unwrap())},t.prototype.formatAt=function(t,r,n,o){null!=this.formats()[n]||a.query(n,a.Scope.ATTRIBUTE)?this.isolate(t,r).format(n,o):e.prototype.formatAt.call(this,t,r,n,o)},t.prototype.optimize=function(r){e.prototype.optimize.call(this,r);var n=this.formats();if(0===Object.keys(n).length)return this.unwrap();var o=this.next;o instanceof t&&o.prev===this&&function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var r in e)if(e[r]!==t[r])return!1;return!0}(n,o.formats())&&(o.moveChildren(this),o.remove())},t.blotName="inline",t.scope=a.Scope.INLINE_BLOT,t.tagName="SPAN",t}(o.default);t.default=i},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=r(18),a=r(1),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.formats=function(r){var n=a.query(t.blotName).tagName;if(r.tagName!==n)return e.formats.call(this,r)},t.prototype.format=function(r,n){null!=a.query(r,a.Scope.BLOCK)&&(r!==this.statics.blotName||n?e.prototype.format.call(this,r,n):this.replaceWith(t.blotName))},t.prototype.formatAt=function(t,r,n,o){null!=a.query(n,a.Scope.BLOCK)?this.format(n,o):e.prototype.formatAt.call(this,t,r,n,o)},t.prototype.insertAt=function(t,r,n){if(null==n||null!=a.query(r,a.Scope.INLINE))e.prototype.insertAt.call(this,t,r,n);else{var o=this.split(t),i=a.create(r,n);o.parent.insertBefore(i,o)}},t.prototype.update=function(t,r){navigator.userAgent.match(/Trident/)?this.build():e.prototype.update.call(this,t,r)},t.blotName="block",t.scope=a.Scope.BLOCK_BLOT,t.tagName="P",t}(o.default);t.default=i},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.formats=function(e){},t.prototype.format=function(t,r){e.prototype.formatAt.call(this,0,this.length(),t,r)},t.prototype.formatAt=function(t,r,n,o){0===t&&r===this.length()?this.format(n,o):e.prototype.formatAt.call(this,t,r,n,o)},t.prototype.formats=function(){return this.statics.formats(this.domNode)},t}(r(19).default);t.default=o},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=r(19),a=r(1),i=function(e){function t(t){var r=e.call(this,t)||this;return r.text=r.statics.value(r.domNode),r}return n(t,e),t.create=function(e){return document.createTextNode(e)},t.value=function(e){var t=e.data;return t.normalize&&(t=t.normalize()),t},t.prototype.deleteAt=function(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)},t.prototype.index=function(e,t){return this.domNode===e?t:-1},t.prototype.insertAt=function(t,r,n){null==n?(this.text=this.text.slice(0,t)+r+this.text.slice(t),this.domNode.data=this.text):e.prototype.insertAt.call(this,t,r,n)},t.prototype.length=function(){return this.text.length},t.prototype.optimize=function(r){e.prototype.optimize.call(this,r),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},t.prototype.position=function(e,t){return void 0===t&&(t=!1),[this.domNode,e]},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var r=a.create(this.domNode.splitText(e));return this.parent.insertBefore(r,this.next),this.text=this.statics.value(this.domNode),r},t.prototype.update=function(e,t){var r=this;e.some((function(e){return"characterData"===e.type&&e.target===r.domNode}))&&(this.text=this.statics.value(this.domNode))},t.prototype.value=function(){return this.text},t.blotName="text",t.scope=a.Scope.INLINE_BLOT,t}(o.default);t.default=i},function(e,t,r){"use strict";var n=document.createElement("div");if(n.classList.toggle("test-class",!1),n.classList.contains("test-class")){var o=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return arguments.length>1&&!this.contains(e)===!t?t:o.call(this,e)}}String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var r=this.toString();("number"!==typeof t||!isFinite(t)||Math.floor(t)!==t||t>r.length)&&(t=r.length),t-=e.length;var n=r.indexOf(e,t);return-1!==n&&n===t}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!==typeof e)throw new TypeError("predicate must be a function");for(var t,r=Object(this),n=r.length>>>0,o=arguments[1],a=0;a<n;a++)if(t=r[a],e.call(o,t,a,r))return t}}),document.addEventListener("DOMContentLoaded",(function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)}))},function(e,t){var r=-1,n=1,o=0;function a(e,t,u){if(e==t)return e?[[o,e]]:[];(u<0||e.length<u)&&(u=null);var f=s(e,t),p=e.substring(0,f);f=l(e=e.substring(f),t=t.substring(f));var h=e.substring(e.length-f),m=function(e,t){var c;if(!e)return[[n,t]];if(!t)return[[r,e]];var u=e.length>t.length?e:t,d=e.length>t.length?t:e,f=u.indexOf(d);if(-1!=f)return c=[[n,u.substring(0,f)],[o,d],[n,u.substring(f+d.length)]],e.length>t.length&&(c[0][0]=c[2][0]=r),c;if(1==d.length)return[[r,e],[n,t]];var p=function(e,t){var r=e.length>t.length?e:t,n=e.length>t.length?t:e;if(r.length<4||2*n.length<r.length)return null;function o(e,t,r){for(var n,o,a,i,c=e.substring(r,r+Math.floor(e.length/4)),u=-1,d="";-1!=(u=t.indexOf(c,u+1));){var f=s(e.substring(r),t.substring(u)),p=l(e.substring(0,r),t.substring(0,u));d.length<p+f&&(d=t.substring(u-p,u)+t.substring(u,u+f),n=e.substring(0,r-p),o=e.substring(r+f),a=t.substring(0,u-p),i=t.substring(u+f))}return 2*d.length>=e.length?[n,o,a,i,d]:null}var a,i,c,u,d,f=o(r,n,Math.ceil(r.length/4)),p=o(r,n,Math.ceil(r.length/2));if(!f&&!p)return null;a=p?f&&f[4].length>p[4].length?f:p:f,e.length>t.length?(i=a[0],c=a[1],u=a[2],d=a[3]):(u=a[0],d=a[1],i=a[2],c=a[3]);var h=a[4];return[i,c,u,d,h]}(e,t);if(p){var h=p[0],m=p[1],g=p[2],b=p[3],y=p[4],x=a(h,g),v=a(m,b);return x.concat([[o,y]],v)}return function(e,t){for(var o=e.length,a=t.length,s=Math.ceil((o+a)/2),l=s,c=2*s,u=new Array(c),d=new Array(c),f=0;f<c;f++)u[f]=-1,d[f]=-1;u[l+1]=0,d[l+1]=0;for(var p=o-a,h=p%2!=0,m=0,g=0,b=0,y=0,x=0;x<s;x++){for(var v=-x+m;v<=x-g;v+=2){for(var w=l+v,k=(E=v==-x||v!=x&&u[w-1]<u[w+1]?u[w+1]:u[w-1]+1)-v;E<o&&k<a&&e.charAt(E)==t.charAt(k);)E++,k++;if(u[w]=E,E>o)g+=2;else if(k>a)m+=2;else if(h&&(C=l+p-v)>=0&&C<c&&-1!=d[C]&&E>=(N=o-d[C]))return i(e,t,E,k)}for(var j=-x+b;j<=x-y;j+=2){for(var N,C=l+j,S=(N=j==-x||j!=x&&d[C-1]<d[C+1]?d[C+1]:d[C-1]+1)-j;N<o&&S<a&&e.charAt(o-N-1)==t.charAt(a-S-1);)N++,S++;if(d[C]=N,N>o)y+=2;else if(S>a)b+=2;else if(!h){var E;if((w=l+p-j)>=0&&w<c&&-1!=u[w])if(k=l+(E=u[w])-w,E>=(N=o-N))return i(e,t,E,k)}}}return[[r,e],[n,t]]}(e,t)}(e=e.substring(0,e.length-f),t=t.substring(0,t.length-f));return p&&m.unshift([o,p]),h&&m.push([o,h]),c(m),null!=u&&(m=function(e,t){var n=function(e,t){if(0===t)return[o,e];for(var n=0,a=0;a<e.length;a++){var i=e[a];if(i[0]===r||i[0]===o){var s=n+i[1].length;if(t===s)return[a+1,e];if(t<s){e=e.slice();var l=t-n,c=[i[0],i[1].slice(0,l)],u=[i[0],i[1].slice(l)];return e.splice(a,1,c,u),[a+1,e]}n=s}}throw new Error("cursor_pos is out of bounds!")}(e,t),a=n[1],i=n[0],s=a[i],l=a[i+1];if(null==s)return e;if(s[0]!==o)return e;if(null!=l&&s[1]+l[1]===l[1]+s[1])return a.splice(i,2,l,s),d(a,i,2);if(null!=l&&0===l[1].indexOf(s[1])){a.splice(i,2,[l[0],s[1]],[0,s[1]]);var c=l[1].slice(s[1].length);return c.length>0&&a.splice(i+2,0,[l[0],c]),d(a,i,3)}return e}(m,u)),m=function(e){for(var t=!1,a=function(e){return e.charCodeAt(0)>=56320&&e.charCodeAt(0)<=57343},i=function(e){return e.charCodeAt(e.length-1)>=55296&&e.charCodeAt(e.length-1)<=56319},s=2;s<e.length;s+=1)e[s-2][0]===o&&i(e[s-2][1])&&e[s-1][0]===r&&a(e[s-1][1])&&e[s][0]===n&&a(e[s][1])&&(t=!0,e[s-1][1]=e[s-2][1].slice(-1)+e[s-1][1],e[s][1]=e[s-2][1].slice(-1)+e[s][1],e[s-2][1]=e[s-2][1].slice(0,-1));if(!t)return e;var l=[];for(s=0;s<e.length;s+=1)e[s][1].length>0&&l.push(e[s]);return l}(m)}function i(e,t,r,n){var o=e.substring(0,r),i=t.substring(0,n),s=e.substring(r),l=t.substring(n),c=a(o,i),u=a(s,l);return c.concat(u)}function s(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var r=0,n=Math.min(e.length,t.length),o=n,a=0;r<o;)e.substring(a,o)==t.substring(a,o)?a=r=o:n=o,o=Math.floor((n-r)/2+r);return o}function l(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var r=0,n=Math.min(e.length,t.length),o=n,a=0;r<o;)e.substring(e.length-o,e.length-a)==t.substring(t.length-o,t.length-a)?a=r=o:n=o,o=Math.floor((n-r)/2+r);return o}function c(e){e.push([o,""]);for(var t,a=0,i=0,u=0,d="",f="";a<e.length;)switch(e[a][0]){case n:u++,f+=e[a][1],a++;break;case r:i++,d+=e[a][1],a++;break;case o:i+u>1?(0!==i&&0!==u&&(0!==(t=s(f,d))&&(a-i-u>0&&e[a-i-u-1][0]==o?e[a-i-u-1][1]+=f.substring(0,t):(e.splice(0,0,[o,f.substring(0,t)]),a++),f=f.substring(t),d=d.substring(t)),0!==(t=l(f,d))&&(e[a][1]=f.substring(f.length-t)+e[a][1],f=f.substring(0,f.length-t),d=d.substring(0,d.length-t))),0===i?e.splice(a-u,i+u,[n,f]):0===u?e.splice(a-i,i+u,[r,d]):e.splice(a-i-u,i+u,[r,d],[n,f]),a=a-i-u+(i?1:0)+(u?1:0)+1):0!==a&&e[a-1][0]==o?(e[a-1][1]+=e[a][1],e.splice(a,1)):a++,u=0,i=0,d="",f=""}""===e[e.length-1][1]&&e.pop();var p=!1;for(a=1;a<e.length-1;)e[a-1][0]==o&&e[a+1][0]==o&&(e[a][1].substring(e[a][1].length-e[a-1][1].length)==e[a-1][1]?(e[a][1]=e[a-1][1]+e[a][1].substring(0,e[a][1].length-e[a-1][1].length),e[a+1][1]=e[a-1][1]+e[a+1][1],e.splice(a-1,1),p=!0):e[a][1].substring(0,e[a+1][1].length)==e[a+1][1]&&(e[a-1][1]+=e[a+1][1],e[a][1]=e[a][1].substring(e[a+1][1].length)+e[a+1][1],e.splice(a+1,1),p=!0)),a++;p&&c(e)}var u=a;function d(e,t,r){for(var n=t+r-1;n>=0&&n>=t-1;n--)if(n+1<e.length){var o=e[n],a=e[n+1];o[0]===a[1]&&e.splice(n,2,[o[0],o[1]+a[1]])}return e}u.INSERT=n,u.DELETE=r,u.EQUAL=o,e.exports=u},function(e,t){function r(e){var t=[];for(var r in e)t.push(r);return t}(e.exports="function"===typeof Object.keys?Object.keys:r).shim=r},function(e,t){var r="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function n(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function o(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}(t=e.exports=r?n:o).supported=n,t.unsupported=o},function(e,t){"use strict";var r=Object.prototype.hasOwnProperty,n="~";function o(){}function a(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function i(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(n=!1)),i.prototype.eventNames=function(){var e,t,o=[];if(0===this._eventsCount)return o;for(t in e=this._events)r.call(e,t)&&o.push(n?t.slice(1):t);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},i.prototype.listeners=function(e,t){var r=n?n+e:e,o=this._events[r];if(t)return!!o;if(!o)return[];if(o.fn)return[o.fn];for(var a=0,i=o.length,s=new Array(i);a<i;a++)s[a]=o[a].fn;return s},i.prototype.emit=function(e,t,r,o,a,i){var s=n?n+e:e;if(!this._events[s])return!1;var l,c,u=this._events[s],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,r),!0;case 4:return u.fn.call(u.context,t,r,o),!0;case 5:return u.fn.call(u.context,t,r,o,a),!0;case 6:return u.fn.call(u.context,t,r,o,a,i),!0}for(c=1,l=new Array(d-1);c<d;c++)l[c-1]=arguments[c];u.fn.apply(u.context,l)}else{var f,p=u.length;for(c=0;c<p;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void 0,!0),d){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,t);break;case 3:u[c].fn.call(u[c].context,t,r);break;case 4:u[c].fn.call(u[c].context,t,r,o);break;default:if(!l)for(f=1,l=new Array(d-1);f<d;f++)l[f-1]=arguments[f];u[c].fn.apply(u[c].context,l)}}return!0},i.prototype.on=function(e,t,r){var o=new a(t,r||this),i=n?n+e:e;return this._events[i]?this._events[i].fn?this._events[i]=[this._events[i],o]:this._events[i].push(o):(this._events[i]=o,this._eventsCount++),this},i.prototype.once=function(e,t,r){var o=new a(t,r||this,!0),i=n?n+e:e;return this._events[i]?this._events[i].fn?this._events[i]=[this._events[i],o]:this._events[i].push(o):(this._events[i]=o,this._eventsCount++),this},i.prototype.removeListener=function(e,t,r,a){var i=n?n+e:e;if(!this._events[i])return this;if(!t)return 0===--this._eventsCount?this._events=new o:delete this._events[i],this;var s=this._events[i];if(s.fn)s.fn!==t||a&&!s.once||r&&s.context!==r||(0===--this._eventsCount?this._events=new o:delete this._events[i]);else{for(var l=0,c=[],u=s.length;l<u;l++)(s[l].fn!==t||a&&!s[l].once||r&&s[l].context!==r)&&c.push(s[l]);c.length?this._events[i]=1===c.length?c[0]:c:0===--this._eventsCount?this._events=new o:delete this._events[i]}return this},i.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&(0===--this._eventsCount?this._events=new o:delete this._events[t])):(this._events=new o,this._eventsCount=0),this},i.prototype.off=i.prototype.removeListener,i.prototype.addListener=i.prototype.on,i.prototype.setMaxListeners=function(){return this},i.prefixed=n,i.EventEmitter=i,"undefined"!==typeof e&&(e.exports=i)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.matchText=t.matchSpacing=t.matchNewline=t.matchBlot=t.matchAttributor=t.default=void 0;var n="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},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(l){o=!0,a=l}finally{try{!n&&s.return&&s.return()}finally{if(o)throw a}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},a=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=x(r(3)),s=x(r(2)),l=x(r(0)),c=x(r(5)),u=x(r(10)),d=x(r(9)),f=r(36),p=r(37),h=x(r(13)),m=r(26),g=r(38),b=r(39),y=r(40);function x(e){return e&&e.__esModule?e:{default:e}}function v(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var w=(0,u.default)("quill:clipboard"),k="__ql-matcher",j=[[Node.TEXT_NODE,_],[Node.TEXT_NODE,R],["br",function(e,t){return O(t,"\n")||t.insert("\n"),t}],[Node.ELEMENT_NODE,R],[Node.ELEMENT_NODE,M],[Node.ELEMENT_NODE,L],[Node.ELEMENT_NODE,I],[Node.ELEMENT_NODE,function(e,t){var r={},n=e.style||{};return n.fontStyle&&"italic"===A(e).fontStyle&&(r.italic=!0),n.fontWeight&&(A(e).fontWeight.startsWith("bold")||parseInt(A(e).fontWeight)>=700)&&(r.bold=!0),Object.keys(r).length>0&&(t=E(t,r)),parseFloat(n.textIndent||0)>0&&(t=(new s.default).insert("\t").concat(t)),t}],["li",function(e,t){var r=l.default.query(e);if(null==r||"list-item"!==r.blotName||!O(t,"\n"))return t;for(var n=-1,o=e.parentNode;!o.classList.contains("ql-clipboard");)"list"===(l.default.query(o)||{}).blotName&&(n+=1),o=o.parentNode;return n<=0?t:t.compose((new s.default).retain(t.length()-1).retain(1,{indent:n}))}],["b",T.bind(T,"bold")],["i",T.bind(T,"italic")],["style",function(){return new s.default}]],N=[f.AlignAttribute,g.DirectionAttribute].reduce((function(e,t){return e[t.keyName]=t,e}),{}),C=[f.AlignStyle,p.BackgroundStyle,m.ColorStyle,g.DirectionStyle,b.FontStyle,y.SizeStyle].reduce((function(e,t){return e[t.keyName]=t,e}),{}),S=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return n.quill.root.addEventListener("paste",n.onPaste.bind(n)),n.container=n.quill.addContainer("ql-clipboard"),n.container.setAttribute("contenteditable",!0),n.container.setAttribute("tabindex",-1),n.matchers=[],j.concat(n.options.matchers).forEach((function(e){var t=o(e,2),a=t[0],i=t[1];(r.matchVisual||i!==L)&&n.addMatcher(a,i)})),n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"addMatcher",value:function(e,t){this.matchers.push([e,t])}},{key:"convert",value:function(e){if("string"===typeof e)return this.container.innerHTML=e.replace(/\>\r?\n +\</g,"><"),this.convert();var t=this.quill.getFormat(this.quill.selection.savedRange.index);if(t[h.default.blotName]){var r=this.container.innerText;return this.container.innerHTML="",(new s.default).insert(r,v({},h.default.blotName,t[h.default.blotName]))}var n=this.prepareMatching(),a=o(n,2),i=a[0],l=a[1],c=P(this.container,i,l);return O(c,"\n")&&null==c.ops[c.ops.length-1].attributes&&(c=c.compose((new s.default).retain(c.length()-1).delete(1))),w.log("convert",this.container.innerHTML,c),this.container.innerHTML="",c}},{key:"dangerouslyPasteHTML",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c.default.sources.API;if("string"===typeof e)this.quill.setContents(this.convert(e),t),this.quill.setSelection(0,c.default.sources.SILENT);else{var n=this.convert(t);this.quill.updateContents((new s.default).retain(e).concat(n),r),this.quill.setSelection(e+n.length(),c.default.sources.SILENT)}}},{key:"onPaste",value:function(e){var t=this;if(!e.defaultPrevented&&this.quill.isEnabled()){var r=this.quill.getSelection(),n=(new s.default).retain(r.index),o=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(c.default.sources.SILENT),setTimeout((function(){n=n.concat(t.convert()).delete(r.length),t.quill.updateContents(n,c.default.sources.USER),t.quill.setSelection(n.length()-r.length,c.default.sources.SILENT),t.quill.scrollingContainer.scrollTop=o,t.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var e=this,t=[],r=[];return this.matchers.forEach((function(n){var a=o(n,2),i=a[0],s=a[1];switch(i){case Node.TEXT_NODE:r.push(s);break;case Node.ELEMENT_NODE:t.push(s);break;default:[].forEach.call(e.container.querySelectorAll(i),(function(e){e[k]=e[k]||[],e[k].push(s)}))}})),[t,r]}}]),t}(d.default);function E(e,t,r){return"object"===("undefined"===typeof t?"undefined":n(t))?Object.keys(t).reduce((function(e,r){return E(e,r,t[r])}),e):e.reduce((function(e,n){return n.attributes&&n.attributes[t]?e.push(n):e.insert(n.insert,(0,i.default)({},v({},t,r),n.attributes))}),new s.default)}function A(e){if(e.nodeType!==Node.ELEMENT_NODE)return{};var t="__ql-computed-style";return e[t]||(e[t]=window.getComputedStyle(e))}function O(e,t){for(var r="",n=e.ops.length-1;n>=0&&r.length<t.length;--n){var o=e.ops[n];if("string"!==typeof o.insert)break;r=o.insert+r}return r.slice(-1*t.length)===t}function $(e){if(0===e.childNodes.length)return!1;var t=A(e);return["block","list-item"].indexOf(t.display)>-1}function P(e,t,r){return e.nodeType===e.TEXT_NODE?r.reduce((function(t,r){return r(e,t)}),new s.default):e.nodeType===e.ELEMENT_NODE?[].reduce.call(e.childNodes||[],(function(n,o){var a=P(o,t,r);return o.nodeType===e.ELEMENT_NODE&&(a=t.reduce((function(e,t){return t(o,e)}),a),a=(o[k]||[]).reduce((function(e,t){return t(o,e)}),a)),n.concat(a)}),new s.default):new s.default}function T(e,t,r){return E(r,e,!0)}function I(e,t){var r=l.default.Attributor.Attribute.keys(e),n=l.default.Attributor.Class.keys(e),o=l.default.Attributor.Style.keys(e),a={};return r.concat(n).concat(o).forEach((function(t){var r=l.default.query(t,l.default.Scope.ATTRIBUTE);null!=r&&(a[r.attrName]=r.value(e),a[r.attrName])||(null==(r=N[t])||r.attrName!==t&&r.keyName!==t||(a[r.attrName]=r.value(e)||void 0),null==(r=C[t])||r.attrName!==t&&r.keyName!==t||(r=C[t],a[r.attrName]=r.value(e)||void 0))})),Object.keys(a).length>0&&(t=E(t,a)),t}function M(e,t){var r=l.default.query(e);if(null==r)return t;if(r.prototype instanceof l.default.Embed){var n={},o=r.value(e);null!=o&&(n[r.blotName]=o,t=(new s.default).insert(n,r.formats(e)))}else"function"===typeof r.formats&&(t=E(t,r.blotName,r.formats(e)));return t}function R(e,t){return O(t,"\n")||($(e)||t.length()>0&&e.nextSibling&&$(e.nextSibling))&&t.insert("\n"),t}function L(e,t){if($(e)&&null!=e.nextElementSibling&&!O(t,"\n\n")){var r=e.offsetHeight+parseFloat(A(e).marginTop)+parseFloat(A(e).marginBottom);e.nextElementSibling.offsetTop>e.offsetTop+1.5*r&&t.insert("\n")}return t}function _(e,t){var r=e.data;if("O:P"===e.parentNode.tagName)return t.insert(r.trim());if(0===r.trim().length&&e.parentNode.classList.contains("ql-clipboard"))return t;if(!A(e.parentNode).whiteSpace.startsWith("pre")){var n=function(e,t){return(t=t.replace(/[^\u00a0]/g,"")).length<1&&e?" ":t};r=(r=r.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,n.bind(n,!0)),(null==e.previousSibling&&$(e.parentNode)||null!=e.previousSibling&&$(e.previousSibling))&&(r=r.replace(/^\s+/,n.bind(n,!1))),(null==e.nextSibling&&$(e.parentNode)||null!=e.nextSibling&&$(e.nextSibling))&&(r=r.replace(/\s+$/,n.bind(n,!1)))}return t.insert(r)}S.DEFAULTS={matchers:[],matchVisual:!0},t.default=S,t.matchAttributor=I,t.matchBlot=M,t.matchNewline=R,t.matchSpacing=L,t.matchText=_},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),a=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,n)}if("value"in o)return o.value;var i=o.get;return void 0!==i?i.call(n):void 0},i=r(6),s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"optimize",value:function(e){a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return a(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),t}(((n=i)&&n.__esModule?n:{default:n}).default);s.blotName="bold",s.tagName=["STRONG","B"],t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addControls=t.default=void 0;var n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(l){o=!0,a=l}finally{try{!n&&s.return&&s.return()}finally{if(o)throw a}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),a=u(r(2)),i=u(r(0)),s=u(r(5)),l=u(r(10)),c=u(r(9));function u(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var f=(0,l.default)("quill:toolbar"),p=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o,a=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));if(Array.isArray(a.options.container)){var i=document.createElement("div");m(i,a.options.container),e.container.parentNode.insertBefore(i,e.container),a.container=i}else"string"===typeof a.options.container?a.container=document.querySelector(a.options.container):a.container=a.options.container;return a.container instanceof HTMLElement?(a.container.classList.add("ql-toolbar"),a.controls=[],a.handlers={},Object.keys(a.options.handlers).forEach((function(e){a.addHandler(e,a.options.handlers[e])})),[].forEach.call(a.container.querySelectorAll("button, select"),(function(e){a.attach(e)})),a.quill.on(s.default.events.EDITOR_CHANGE,(function(e,t){e===s.default.events.SELECTION_CHANGE&&a.update(t)})),a.quill.on(s.default.events.SCROLL_OPTIMIZE,(function(){var e=a.quill.selection.getRange(),t=n(e,1)[0];a.update(t)})),a):(o=f.error("Container required for toolbar",a.options),d(a,o))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"addHandler",value:function(e,t){this.handlers[e]=t}},{key:"attach",value:function(e){var t=this,r=[].find.call(e.classList,(function(e){return 0===e.indexOf("ql-")}));if(r){if(r=r.slice(3),"BUTTON"===e.tagName&&e.setAttribute("type","button"),null==this.handlers[r]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[r])return void f.warn("ignoring attaching to disabled format",r,e);if(null==i.default.query(r))return void f.warn("ignoring attaching to nonexistent format",r,e)}var o="SELECT"===e.tagName?"change":"click";e.addEventListener(o,(function(o){var l=void 0;if("SELECT"===e.tagName){if(e.selectedIndex<0)return;var c=e.options[e.selectedIndex];l=!c.hasAttribute("selected")&&(c.value||!1)}else l=!e.classList.contains("ql-active")&&(e.value||!e.hasAttribute("value")),o.preventDefault();t.quill.focus();var u=t.quill.selection.getRange(),d=n(u,1)[0];if(null!=t.handlers[r])t.handlers[r].call(t,l);else if(i.default.query(r).prototype instanceof i.default.Embed){if(!(l=prompt("Enter "+r)))return;t.quill.updateContents((new a.default).retain(d.index).delete(d.length).insert(function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}({},r,l)),s.default.sources.USER)}else t.quill.format(r,l,s.default.sources.USER);t.update(d)})),this.controls.push([r,e])}}},{key:"update",value:function(e){var t=null==e?{}:this.quill.getFormat(e);this.controls.forEach((function(r){var o=n(r,2),a=o[0],i=o[1];if("SELECT"===i.tagName){var s=void 0;if(null==e)s=null;else if(null==t[a])s=i.querySelector("option[selected]");else if(!Array.isArray(t[a])){var l=t[a];"string"===typeof l&&(l=l.replace(/\"/g,'\\"')),s=i.querySelector('option[value="'+l+'"]')}null==s?(i.value="",i.selectedIndex=-1):s.selected=!0}else if(null==e)i.classList.remove("ql-active");else if(i.hasAttribute("value")){var c=t[a]===i.getAttribute("value")||null!=t[a]&&t[a].toString()===i.getAttribute("value")||null==t[a]&&!i.getAttribute("value");i.classList.toggle("ql-active",c)}else i.classList.toggle("ql-active",null!=t[a])}))}}]),t}(c.default);function h(e,t,r){var n=document.createElement("button");n.setAttribute("type","button"),n.classList.add("ql-"+t),null!=r&&(n.value=r),e.appendChild(n)}function m(e,t){Array.isArray(t[0])||(t=[t]),t.forEach((function(t){var r=document.createElement("span");r.classList.add("ql-formats"),t.forEach((function(e){if("string"===typeof e)h(r,e);else{var t=Object.keys(e)[0],n=e[t];Array.isArray(n)?function(e,t,r){var n=document.createElement("select");n.classList.add("ql-"+t),r.forEach((function(e){var t=document.createElement("option");!1!==e?t.setAttribute("value",e):t.setAttribute("selected","selected"),n.appendChild(t)})),e.appendChild(n)}(r,t,n):h(r,t,n)}})),e.appendChild(r)}))}p.DEFAULTS={},p.DEFAULTS={container:null,handlers:{clean:function(){var e=this,t=this.quill.getSelection();if(null!=t)if(0==t.length){var r=this.quill.getFormat();Object.keys(r).forEach((function(t){null!=i.default.query(t,i.default.Scope.INLINE)&&e.quill.format(t,!1)}))}else this.quill.removeFormat(t,s.default.sources.USER)},direction:function(e){var t=this.quill.getFormat().align;"rtl"===e&&null==t?this.quill.format("align","right",s.default.sources.USER):e||"right"!==t||this.quill.format("align",!1,s.default.sources.USER),this.quill.format("direction",e,s.default.sources.USER)},indent:function(e){var t=this.quill.getSelection(),r=this.quill.getFormat(t),n=parseInt(r.indent||0);if("+1"===e||"-1"===e){var o="+1"===e?1:-1;"rtl"===r.direction&&(o*=-1),this.quill.format("indent",n+o,s.default.sources.USER)}},link:function(e){!0===e&&(e=prompt("Enter link URL:")),this.quill.format("link",e,s.default.sources.USER)},list:function(e){var t=this.quill.getSelection(),r=this.quill.getFormat(t);"check"===e?"checked"===r.list||"unchecked"===r.list?this.quill.format("list",!1,s.default.sources.USER):this.quill.format("list","unchecked",s.default.sources.USER):this.quill.format("list",e,s.default.sources.USER)}}},t.default=p,t.addControls=m},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),a=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,n)}if("value"in o)return o.value;var i=o.get;return void 0!==i?i.call(n):void 0},i=r(28),s=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.label.innerHTML=r,n.container.classList.add("ql-color-picker"),[].slice.call(n.container.querySelectorAll(".ql-picker-item"),0,7).forEach((function(e){e.classList.add("ql-primary")})),n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"buildItem",value:function(e){var r=a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildItem",this).call(this,e);return r.style.backgroundColor=e.getAttribute("value")||"",r}},{key:"selectItem",value:function(e,r){a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,r);var n=this.label.querySelector(".ql-color-label"),o=e&&e.getAttribute("data-value")||"";n&&("line"===n.tagName?n.style.stroke=o:n.style.fill=o)}}]),t}(((n=i)&&n.__esModule?n:{default:n}).default);t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),a=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,n)}if("value"in o)return o.value;var i=o.get;return void 0!==i?i.call(n):void 0},i=r(28),s=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.container.classList.add("ql-icon-picker"),[].forEach.call(n.container.querySelectorAll(".ql-picker-item"),(function(e){e.innerHTML=r[e.getAttribute("data-value")||""]})),n.defaultItem=n.container.querySelector(".ql-selected"),n.selectItem(n.defaultItem),n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"selectItem",value:function(e,r){a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,r),e=e||this.defaultItem,this.label.innerHTML=e.innerHTML}}]),t}(((n=i)&&n.__esModule?n:{default:n}).default);t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=function(){function e(t,r){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.boundsContainer=r||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",(function(){n.root.style.marginTop=-1*n.quill.root.scrollTop+"px"})),this.hide()}return n(e,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(e){var t=e.left+e.width/2-this.root.offsetWidth/2,r=e.bottom+this.quill.root.scrollTop;this.root.style.left=t+"px",this.root.style.top=r+"px",this.root.classList.remove("ql-flip");var n=this.boundsContainer.getBoundingClientRect(),o=this.root.getBoundingClientRect(),a=0;if(o.right>n.right&&(a=n.right-o.right,this.root.style.left=t+a+"px"),o.left<n.left&&(a=n.left-o.left,this.root.style.left=t+a+"px"),o.bottom>n.bottom){var i=o.bottom-o.top,s=e.bottom-e.top+i;this.root.style.top=r-s+"px",this.root.classList.add("ql-flip")}return a}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),e}();t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(l){o=!0,a=l}finally{try{!n&&s.return&&s.return()}finally{if(o)throw a}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,n)}if("value"in o)return o.value;var i=o.get;return void 0!==i?i.call(n):void 0},a=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=p(r(3)),s=p(r(8)),l=r(43),c=p(l),u=p(r(27)),d=r(15),f=p(r(41));function p(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function g(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var b=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],y=function(e){function t(e,r){h(this,t),null!=r.modules.toolbar&&null==r.modules.toolbar.container&&(r.modules.toolbar.container=b);var n=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return n.quill.container.classList.add("ql-snow"),n}return g(t,e),a(t,[{key:"extendToolbar",value:function(e){e.container.classList.add("ql-snow"),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),f.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),f.default),this.tooltip=new x(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},(function(t,r){e.handlers.link.call(e,!r.format.link)}))}}]),t}(c.default);y.DEFAULTS=(0,i.default)(!0,{},c.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){if(e){var t=this.quill.getSelection();if(null==t||0==t.length)return;var r=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(r)&&0!==r.indexOf("mailto:")&&(r="mailto:"+r),this.quill.theme.tooltip.edit("link",r)}else this.quill.format("link",!1)}}}}});var x=function(e){function t(e,r){h(this,t);var n=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return n.preview=n.root.querySelector("a.ql-preview"),n}return g(t,e),a(t,[{key:"listen",value:function(){var e=this;o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",(function(t){e.root.classList.contains("ql-editing")?e.save():e.edit("link",e.preview.textContent),t.preventDefault()})),this.root.querySelector("a.ql-remove").addEventListener("click",(function(t){if(null!=e.linkRange){var r=e.linkRange;e.restoreFocus(),e.quill.formatText(r,"link",!1,s.default.sources.USER),delete e.linkRange}t.preventDefault(),e.hide()})),this.quill.on(s.default.events.SELECTION_CHANGE,(function(t,r,o){if(null!=t){if(0===t.length&&o===s.default.sources.USER){var a=e.quill.scroll.descendant(u.default,t.index),i=n(a,2),l=i[0],c=i[1];if(null!=l){e.linkRange=new d.Range(t.index-c,l.length());var f=u.default.formats(l.domNode);return e.preview.textContent=f,e.preview.setAttribute("href",f),e.show(),void e.position(e.quill.getBounds(e.linkRange))}}else delete e.linkRange;e.hide()}}))}},{key:"show",value:function(){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),t}(l.BaseTooltip);x.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),t.default=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=R(r(29)),o=r(36),a=r(38),i=r(64),s=R(r(65)),l=R(r(66)),c=r(67),u=R(c),d=r(37),f=r(26),p=r(39),h=r(40),m=R(r(56)),g=R(r(68)),b=R(r(27)),y=R(r(69)),x=R(r(70)),v=R(r(71)),w=R(r(72)),k=R(r(73)),j=r(13),N=R(j),C=R(r(74)),S=R(r(75)),E=R(r(57)),A=R(r(41)),O=R(r(28)),$=R(r(59)),P=R(r(60)),T=R(r(61)),I=R(r(108)),M=R(r(62));function R(e){return e&&e.__esModule?e:{default:e}}n.default.register({"attributors/attribute/direction":a.DirectionAttribute,"attributors/class/align":o.AlignClass,"attributors/class/background":d.BackgroundClass,"attributors/class/color":f.ColorClass,"attributors/class/direction":a.DirectionClass,"attributors/class/font":p.FontClass,"attributors/class/size":h.SizeClass,"attributors/style/align":o.AlignStyle,"attributors/style/background":d.BackgroundStyle,"attributors/style/color":f.ColorStyle,"attributors/style/direction":a.DirectionStyle,"attributors/style/font":p.FontStyle,"attributors/style/size":h.SizeStyle},!0),n.default.register({"formats/align":o.AlignClass,"formats/direction":a.DirectionClass,"formats/indent":i.IndentClass,"formats/background":d.BackgroundStyle,"formats/color":f.ColorStyle,"formats/font":p.FontClass,"formats/size":h.SizeClass,"formats/blockquote":s.default,"formats/code-block":N.default,"formats/header":l.default,"formats/list":u.default,"formats/bold":m.default,"formats/code":j.Code,"formats/italic":g.default,"formats/link":b.default,"formats/script":y.default,"formats/strike":x.default,"formats/underline":v.default,"formats/image":w.default,"formats/video":k.default,"formats/list/item":c.ListItem,"modules/formula":C.default,"modules/syntax":S.default,"modules/toolbar":E.default,"themes/bubble":I.default,"themes/snow":M.default,"ui/icons":A.default,"ui/picker":O.default,"ui/icon-picker":P.default,"ui/color-picker":$.default,"ui/tooltip":T.default},!0),t.default=n.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var n,o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),a=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,n)}if("value"in o)return o.value;var i=o.get;return void 0!==i?i.call(n):void 0},i=r(0),s=(n=i)&&n.__esModule?n:{default:n},l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"add",value:function(e,r){if("+1"===r||"-1"===r){var n=this.value(e)||0;r="+1"===r?n+1:n-1}return 0===r?(this.remove(e),!0):a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,r)}},{key:"canAdd",value:function(e,r){return a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,r)||a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,parseInt(r))}},{key:"value",value:function(e){return parseInt(a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e))||void 0}}]),t}(s.default.Attributor.Class),c=new l("indent","ql-indent",{scope:s.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});t.IndentClass=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=r(4),a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((n=o)&&n.__esModule?n:{default:n}).default);a.blotName="blockquote",a.tagName="blockquote",t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),a=r(4),i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,null,[{key:"formats",value:function(e){return this.tagName.indexOf(e.tagName)+1}}]),t}(((n=a)&&n.__esModule?n:{default:n}).default);i.blotName="header",i.tagName=["H1","H2","H3","H4","H5","H6"],t.default=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ListItem=void 0;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,n)}if("value"in o)return o.value;var i=o.get;return void 0!==i?i.call(n):void 0},a=l(r(0)),i=l(r(4)),s=l(r(25));function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function d(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(){return c(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),n(t,[{key:"format",value:function(e,r){e!==p.blotName||r?o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,r):this.replaceWith(a.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(e,r){return this.parent.isolate(this.offset(this.parent),this.length()),e===this.parent.statics.blotName?(this.parent.replaceWith(e,r),this):(this.parent.unwrap(),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e,r))}}],[{key:"formats",value:function(e){return e.tagName===this.tagName?void 0:o(t.__proto__||Object.getPrototypeOf(t),"formats",this).call(this,e)}}]),t}(i.default);f.blotName="list-item",f.tagName="LI";var p=function(e){function t(e){c(this,t);var r=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),n=function(t){if(t.target.parentNode===e){var n=r.statics.formats(e),o=a.default.find(t.target);"checked"===n?o.format("list","unchecked"):"unchecked"===n&&o.format("list","checked")}};return e.addEventListener("touchstart",n),e.addEventListener("mousedown",n),r}return d(t,e),n(t,null,[{key:"create",value:function(e){var r="ordered"===e?"OL":"UL",n=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,r);return"checked"!==e&&"unchecked"!==e||n.setAttribute("data-checked","checked"===e),n}},{key:"formats",value:function(e){return"OL"===e.tagName?"ordered":"UL"===e.tagName?e.hasAttribute("data-checked")?"true"===e.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),n(t,[{key:"format",value:function(e,t){this.children.length>0&&this.children.tail.format(e,t)}},{key:"formats",value:function(){return e={},t=this.statics.blotName,r=this.statics.formats(this.domNode),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e;var e,t,r}},{key:"insertBefore",value:function(e,r){if(e instanceof f)o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,r);else{var n=null==r?this.length():r.offset(this),a=this.split(n);a.parent.insertBefore(e,a)}}},{key:"optimize",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var r=this.next;null!=r&&r.prev===this&&r.statics.blotName===this.statics.blotName&&r.domNode.tagName===this.domNode.tagName&&r.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(r.moveChildren(this),r.remove())}},{key:"replace",value:function(e){if(e.statics.blotName!==this.statics.blotName){var r=a.default.create(this.statics.defaultChild);e.moveChildren(r),this.appendChild(r)}o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e)}}]),t}(s.default);p.blotName="list",p.scope=a.default.Scope.BLOCK_BLOT,p.tagName=["OL","UL"],p.defaultChild="list-item",p.allowedChildren=[f],t.ListItem=f,t.default=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=r(56),a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((n=o)&&n.__esModule?n:{default:n}).default);a.blotName="italic",a.tagName=["EM","I"],t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),a=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,n)}if("value"in o)return o.value;var i=o.get;return void 0!==i?i.call(n):void 0},i=r(6),s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,null,[{key:"create",value:function(e){return"super"===e?document.createElement("sup"):"sub"===e?document.createElement("sub"):a(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e)}},{key:"formats",value:function(e){return"SUB"===e.tagName?"sub":"SUP"===e.tagName?"super":void 0}}]),t}(((n=i)&&n.__esModule?n:{default:n}).default);s.blotName="script",s.tagName=["SUB","SUP"],t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=r(6),a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((n=o)&&n.__esModule?n:{default:n}).default);a.blotName="strike",a.tagName="S",t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=r(6),a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((n=o)&&n.__esModule?n:{default:n}).default);a.blotName="underline",a.tagName="U",t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),a=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,n)}if("value"in o)return o.value;var i=o.get;return void 0!==i?i.call(n):void 0},i=r(0),s=(n=i)&&n.__esModule?n:{default:n},l=r(27),c=["alt","height","width"],u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"format",value:function(e,r){c.indexOf(e)>-1?r?this.domNode.setAttribute(e,r):this.domNode.removeAttribute(e):a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,r)}}],[{key:"create",value:function(e){var r=a(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"===typeof e&&r.setAttribute("src",this.sanitize(e)),r}},{key:"formats",value:function(e){return c.reduce((function(t,r){return e.hasAttribute(r)&&(t[r]=e.getAttribute(r)),t}),{})}},{key:"match",value:function(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}},{key:"sanitize",value:function(e){return(0,l.sanitize)(e,["http","https","data"])?e:"//:0"}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(s.default.Embed);u.blotName="image",u.tagName="IMG",t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),a=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,n)}if("value"in o)return o.value;var i=o.get;return void 0!==i?i.call(n):void 0},i=r(4),s=r(27),l=(n=s)&&n.__esModule?n:{default:n},c=["height","width"],u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"format",value:function(e,r){c.indexOf(e)>-1?r?this.domNode.setAttribute(e,r):this.domNode.removeAttribute(e):a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,r)}}],[{key:"create",value:function(e){var r=a(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return r.setAttribute("frameborder","0"),r.setAttribute("allowfullscreen",!0),r.setAttribute("src",this.sanitize(e)),r}},{key:"formats",value:function(e){return c.reduce((function(t,r){return e.hasAttribute(r)&&(t[r]=e.getAttribute(r)),t}),{})}},{key:"sanitize",value:function(e){return l.default.sanitize(e)}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(i.BlockEmbed);u.blotName="video",u.className="ql-video",u.tagName="IFRAME",t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,n)}if("value"in o)return o.value;var i=o.get;return void 0!==i?i.call(n):void 0},a=l(r(35)),i=l(r(5)),s=l(r(9));function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function d(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(){return c(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),n(t,null,[{key:"create",value:function(e){var r=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"===typeof e&&(window.katex.render(e,r,{throwOnError:!1,errorColor:"#f00"}),r.setAttribute("data-value",e)),r}},{key:"value",value:function(e){return e.getAttribute("data-value")}}]),t}(a.default);f.blotName="formula",f.className="ql-formula",f.tagName="SPAN";var p=function(e){function t(){c(this,t);var e=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return e}return d(t,e),n(t,null,[{key:"register",value:function(){i.default.register(f,!0)}}]),t}(s.default);t.FormulaBlot=f,t.default=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CodeToken=t.CodeBlock=void 0;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,n)}if("value"in o)return o.value;var i=o.get;return void 0!==i?i.call(n):void 0},a=l(r(0)),i=l(r(5)),s=l(r(9));function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function d(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function t(){return c(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),n(t,[{key:"replaceWith",value:function(e){this.domNode.textContent=this.domNode.textContent,this.attach(),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e)}},{key:"highlight",value:function(e){var t=this.domNode.textContent;this.cachedText!==t&&((t.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=e(t),this.domNode.normalize(),this.attach()),this.cachedText=t)}}]),t}(l(r(13)).default);f.className="ql-syntax";var p=new a.default.Attributor.Class("token","hljs",{scope:a.default.Scope.INLINE}),h=function(e){function t(e,r){c(this,t);var n=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));if("function"!==typeof n.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var o=null;return n.quill.on(i.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(o),o=setTimeout((function(){n.highlight(),o=null}),n.options.interval)})),n.highlight(),n}return d(t,e),n(t,null,[{key:"register",value:function(){i.default.register(p,!0),i.default.register(f,!0)}}]),n(t,[{key:"highlight",value:function(){var e=this;if(!this.quill.selection.composing){this.quill.update(i.default.sources.USER);var t=this.quill.getSelection();this.quill.scroll.descendants(f).forEach((function(t){t.highlight(e.options.highlight)})),this.quill.update(i.default.sources.SILENT),null!=t&&this.quill.setSelection(t,i.default.sources.SILENT)}}}]),t}(s.default);h.DEFAULTS={highlight:null==window.hljs?null:function(e){return window.hljs.highlightAuto(e).value},interval:1e3},t.CodeBlock=f,t.CodeToken=p,t.default=h},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BubbleTooltip=void 0;var n=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,n)}if("value"in o)return o.value;var i=o.get;return void 0!==i?i.call(n):void 0},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),a=d(r(3)),i=d(r(8)),s=r(43),l=d(s),c=r(15),u=d(r(41));function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function h(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],g=function(e){function t(e,r){f(this,t),null!=r.modules.toolbar&&null==r.modules.toolbar.container&&(r.modules.toolbar.container=m);var n=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return n.quill.container.classList.add("ql-bubble"),n}return h(t,e),o(t,[{key:"extendToolbar",value:function(e){this.tooltip=new b(this.quill,this.options.bounds),this.tooltip.root.appendChild(e.container),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),u.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),u.default)}}]),t}(l.default);g.DEFAULTS=(0,a.default)(!0,{},l.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){e?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var b=function(e){function t(e,r){f(this,t);var n=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return n.quill.on(i.default.events.EDITOR_CHANGE,(function(e,t,r,o){if(e===i.default.events.SELECTION_CHANGE)if(null!=t&&t.length>0&&o===i.default.sources.USER){n.show(),n.root.style.left="0px",n.root.style.width="",n.root.style.width=n.root.offsetWidth+"px";var a=n.quill.getLines(t.index,t.length);if(1===a.length)n.position(n.quill.getBounds(t));else{var s=a[a.length-1],l=n.quill.getIndex(s),u=Math.min(s.length()-1,t.index+t.length-l),d=n.quill.getBounds(new c.Range(l,u));n.position(d)}}else document.activeElement!==n.textbox&&n.quill.hasFocus()&&n.hide()})),n}return h(t,e),o(t,[{key:"listen",value:function(){var e=this;n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){e.root.classList.remove("ql-editing")})),this.quill.on(i.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!e.root.classList.contains("ql-hidden")){var t=e.quill.getSelection();null!=t&&e.position(e.quill.getBounds(t))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(e){var r=n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"position",this).call(this,e),o=this.root.querySelector(".ql-tooltip-arrow");if(o.style.marginLeft="",0===r)return r;o.style.marginLeft=-1*r-o.offsetWidth/2+"px"}}]),t}(s.BaseTooltip);b.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),t.BubbleTooltip=b,t.default=g},function(e,t,r){e.exports=r(63)}]).default},e.exports=t()},2730:(e,t,r)=>{"use strict";var n=r(5043),o=r(8853);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,s={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)i.add(t[e])}var u=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},h={};function m(e,t,r,n,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var b=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function x(e,t,r,n){var o=g.hasOwnProperty(t)?g[t]:null;(null!==o?0!==o.type:n||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,r,n){if(null===t||"undefined"===typeof t||function(e,t,r,n){if(null!==r&&0===r.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!n&&(null!==r?!r.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,r,n))return!0;if(n)return!1;if(null!==r)switch(r.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,r,o,n)&&(r=null),n||null===o?function(e){return!!d.call(h,e)||!d.call(p,e)&&(f.test(e)?h[e]=!0:(p[e]=!0,!1))}(t)&&(null===r?e.removeAttribute(t):e.setAttribute(t,""+r)):o.mustUseProperty?e[o.propertyName]=null===r?3!==o.type&&"":r:(t=o.attributeName,n=o.attributeNamespace,null===r?e.removeAttribute(t):(r=3===(o=o.type)||4===o&&!0===r?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(b,y);g[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(b,y);g[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(b,y);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var v=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),k=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),S=Symbol.for("react.provider"),E=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),T=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var I=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var M=Symbol.iterator;function R(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=M&&e[M]||e["@@iterator"])?e:null}var L,_=Object.assign;function D(e){if(void 0===L)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);L=t&&t[1]||""}return"\n"+L+e}var B=!1;function z(e,t){if(!e||B)return"";B=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var n=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){n=c}e.call(t.prototype)}else{try{throw Error()}catch(c){n=c}e()}}catch(c){if(c&&n&&"string"===typeof c.stack){for(var o=c.stack.split("\n"),a=n.stack.split("\n"),i=o.length-1,s=a.length-1;1<=i&&0<=s&&o[i]!==a[s];)s--;for(;1<=i&&0<=s;i--,s--)if(o[i]!==a[s]){if(1!==i||1!==s)do{if(i--,0>--s||o[i]!==a[s]){var l="\n"+o[i].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=i&&0<=s);break}}}finally{B=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?D(e):""}function F(e){switch(e.tag){case 5:return D(e.type);case 16:return D("Lazy");case 13:return D("Suspense");case 19:return D("SuspenseList");case 0:case 2:case 15:return e=z(e.type,!1);case 11:return e=z(e.type.render,!1);case 1:return e=z(e.type,!0);default:return""}}function q(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case j:return"Fragment";case k:return"Portal";case C:return"Profiler";case N:return"StrictMode";case O:return"Suspense";case $:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case E:return(e.displayName||"Context")+".Consumer";case S:return(e._context.displayName||"Context")+".Provider";case A:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case P:return null!==(t=e.displayName||null)?t:q(e.type)||"Memo";case T:t=e._payload,e=e._init;try{return q(e(t))}catch(r){}}return null}function H(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return q(t);case 8:return t===N?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function U(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function W(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function V(e){e._valueTracker||(e._valueTracker=function(e){var t=W(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof r&&"function"===typeof r.get&&"function"===typeof r.set){var o=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){n=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function G(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=W(e)?e.checked?"true":"false":e.value),(e=n)!==r&&(t.setValue(e),!0)}function K(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Q(e,t){var r=t.checked;return _({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=r?r:e._wrapperState.initialChecked})}function Y(e,t){var r=null==t.defaultValue?"":t.defaultValue,n=null!=t.checked?t.checked:t.defaultChecked;r=U(null!=t.value?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Z(e,t){null!=(t=t.checked)&&x(e,"checked",t,!1)}function J(e,t){Z(e,t);var r=U(t.value),n=t.type;if(null!=r)"number"===n?(0===r&&""===e.value||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if("submit"===n||"reset"===n)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,r):t.hasOwnProperty("defaultValue")&&ee(e,t.type,U(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function X(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!("submit"!==n&&"reset"!==n||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}""!==(r=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==r&&(e.name=r)}function ee(e,t,r){"number"===t&&K(e.ownerDocument)===e||(null==r?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var te=Array.isArray;function re(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o<r.length;o++)t["$"+r[o]]=!0;for(r=0;r<e.length;r++)o=t.hasOwnProperty("$"+e[r].value),e[r].selected!==o&&(e[r].selected=o),o&&n&&(e[r].defaultSelected=!0)}else{for(r=""+U(r),t=null,o=0;o<e.length;o++){if(e[o].value===r)return e[o].selected=!0,void(n&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function ne(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return _({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(a(92));if(te(r)){if(1<r.length)throw Error(a(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:U(r)}}function ae(e,t){var r=U(t.value),n=U(t.defaultValue);null!=r&&((r=""+r)!==e.value&&(e.value=r),null==t.defaultValue&&e.defaultValue!==r&&(e.defaultValue=r)),null!=n&&(e.defaultValue=""+n)}function ie(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,r,n){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function fe(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&3===r.nodeType)return void(r.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function me(e,t,r){return null==t||"boolean"===typeof t||""===t?"":r||"number"!==typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var r in e=e.style,t)if(t.hasOwnProperty(r)){var n=0===r.indexOf("--"),o=me(r,t[r],n);"float"===r&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}Object.keys(pe).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var be=_({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(be[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(a(62))}}function xe(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ve=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ke=null,je=null,Ne=null;function Ce(e){if(e=vo(e)){if("function"!==typeof ke)throw Error(a(280));var t=e.stateNode;t&&(t=ko(t),ke(e.stateNode,e.type,t))}}function Se(e){je?Ne?Ne.push(e):Ne=[e]:je=e}function Ee(){if(je){var e=je,t=Ne;if(Ne=je=null,Ce(e),t)for(e=0;e<t.length;e++)Ce(t[e])}}function Ae(e,t){return e(t)}function Oe(){}var $e=!1;function Pe(e,t,r){if($e)return e(t,r);$e=!0;try{return Ae(e,t,r)}finally{$e=!1,(null!==je||null!==Ne)&&(Oe(),Ee())}}function Te(e,t){var r=e.stateNode;if(null===r)return null;var n=ko(r);if(null===n)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(n=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!n;break e;default:e=!1}if(e)return null;if(r&&"function"!==typeof r)throw Error(a(231,t,typeof r));return r}var Ie=!1;if(u)try{var Me={};Object.defineProperty(Me,"passive",{get:function(){Ie=!0}}),window.addEventListener("test",Me,Me),window.removeEventListener("test",Me,Me)}catch(ue){Ie=!1}function Re(e,t,r,n,o,a,i,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(r,c)}catch(u){this.onError(u)}}var Le=!1,_e=null,De=!1,Be=null,ze={onError:function(e){Le=!0,_e=e}};function Fe(e,t,r,n,o,a,i,s,l){Le=!1,_e=null,Re.apply(ze,arguments)}function qe(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(r=t.return),e=t.return}while(e)}return 3===t.tag?r:null}function He(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Ue(e){if(qe(e)!==e)throw Error(a(188))}function We(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=qe(e)))throw Error(a(188));return t!==e?null:e}for(var r=e,n=t;;){var o=r.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(n=o.return)){r=n;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===r)return Ue(o),e;if(i===n)return Ue(o),t;i=i.sibling}throw Error(a(188))}if(r.return!==n.return)r=o,n=i;else{for(var s=!1,l=o.child;l;){if(l===r){s=!0,r=o,n=i;break}if(l===n){s=!0,n=o,r=i;break}l=l.sibling}if(!s){for(l=i.child;l;){if(l===r){s=!0,r=i,n=o;break}if(l===n){s=!0,n=i,r=o;break}l=l.sibling}if(!s)throw Error(a(189))}}if(r.alternate!==n)throw Error(a(190))}if(3!==r.tag)throw Error(a(188));return r.stateNode.current===r?e:t}(e))?Ve(e):null}function Ve(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ve(e);if(null!==t)return t;e=e.sibling}return null}var Ge=o.unstable_scheduleCallback,Ke=o.unstable_cancelCallback,Qe=o.unstable_shouldYield,Ye=o.unstable_requestPaint,Ze=o.unstable_now,Je=o.unstable_getCurrentPriorityLevel,Xe=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,rt=o.unstable_LowPriority,nt=o.unstable_IdlePriority,ot=null,at=null;var it=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2;var ct=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var r=e.pendingLanes;if(0===r)return 0;var n=0,o=e.suspendedLanes,a=e.pingedLanes,i=268435455&r;if(0!==i){var s=i&~o;0!==s?n=dt(s):0!==(a&=i)&&(n=dt(a))}else 0!==(i=r&~o)?n=dt(i):0!==a&&(n=dt(a));if(0===n)return 0;if(0!==t&&t!==n&&0===(t&o)&&((o=n&-n)>=(a=t&-t)||16===o&&0!==(4194240&a)))return t;if(0!==(4&n)&&(n|=16&r),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=n;0<t;)o=1<<(r=31-it(t)),n|=e[r],t&=~o;return n}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ct;return 0===(4194240&(ct<<=1))&&(ct=64),e}function gt(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function bt(e,t,r){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-it(t)]=r}function yt(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-it(r),o=1<<n;o&t|e[n]&t&&(e[n]|=t),r&=~o}}var xt=0;function vt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var wt,kt,jt,Nt,Ct,St=!1,Et=[],At=null,Ot=null,$t=null,Pt=new Map,Tt=new Map,It=[],Mt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Rt(e,t){switch(e){case"focusin":case"focusout":At=null;break;case"dragenter":case"dragleave":Ot=null;break;case"mouseover":case"mouseout":$t=null;break;case"pointerover":case"pointerout":Pt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Tt.delete(t.pointerId)}}function Lt(e,t,r,n,o,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:a,targetContainers:[o]},null!==t&&(null!==(t=vo(t))&&kt(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function _t(e){var t=xo(e.target);if(null!==t){var r=qe(t);if(null!==r)if(13===(t=r.tag)){if(null!==(t=He(r)))return e.blockedOn=t,void Ct(e.priority,(function(){jt(r)}))}else if(3===t&&r.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===r.tag?r.stateNode.containerInfo:null)}e.blockedOn=null}function Dt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var r=Qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==r)return null!==(t=vo(r))&&kt(t),e.blockedOn=r,!1;var n=new(r=e.nativeEvent).constructor(r.type,r);ve=n,r.target.dispatchEvent(n),ve=null,t.shift()}return!0}function Bt(e,t,r){Dt(e)&&r.delete(t)}function zt(){St=!1,null!==At&&Dt(At)&&(At=null),null!==Ot&&Dt(Ot)&&(Ot=null),null!==$t&&Dt($t)&&($t=null),Pt.forEach(Bt),Tt.forEach(Bt)}function Ft(e,t){e.blockedOn===t&&(e.blockedOn=null,St||(St=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,zt)))}function qt(e){function t(t){return Ft(t,e)}if(0<Et.length){Ft(Et[0],e);for(var r=1;r<Et.length;r++){var n=Et[r];n.blockedOn===e&&(n.blockedOn=null)}}for(null!==At&&Ft(At,e),null!==Ot&&Ft(Ot,e),null!==$t&&Ft($t,e),Pt.forEach(t),Tt.forEach(t),r=0;r<It.length;r++)(n=It[r]).blockedOn===e&&(n.blockedOn=null);for(;0<It.length&&null===(r=It[0]).blockedOn;)_t(r),null===r.blockedOn&&It.shift()}var Ht=v.ReactCurrentBatchConfig,Ut=!0;function Wt(e,t,r,n){var o=xt,a=Ht.transition;Ht.transition=null;try{xt=1,Gt(e,t,r,n)}finally{xt=o,Ht.transition=a}}function Vt(e,t,r,n){var o=xt,a=Ht.transition;Ht.transition=null;try{xt=4,Gt(e,t,r,n)}finally{xt=o,Ht.transition=a}}function Gt(e,t,r,n){if(Ut){var o=Qt(e,t,r,n);if(null===o)Un(e,t,n,Kt,r),Rt(e,n);else if(function(e,t,r,n,o){switch(t){case"focusin":return At=Lt(At,e,t,r,n,o),!0;case"dragenter":return Ot=Lt(Ot,e,t,r,n,o),!0;case"mouseover":return $t=Lt($t,e,t,r,n,o),!0;case"pointerover":var a=o.pointerId;return Pt.set(a,Lt(Pt.get(a)||null,e,t,r,n,o)),!0;case"gotpointercapture":return a=o.pointerId,Tt.set(a,Lt(Tt.get(a)||null,e,t,r,n,o)),!0}return!1}(o,e,t,r,n))n.stopPropagation();else if(Rt(e,n),4&t&&-1<Mt.indexOf(e)){for(;null!==o;){var a=vo(o);if(null!==a&&wt(a),null===(a=Qt(e,t,r,n))&&Un(e,t,n,Kt,r),a===o)break;o=a}null!==o&&n.stopPropagation()}else Un(e,t,n,null,r)}}var Kt=null;function Qt(e,t,r,n){if(Kt=null,null!==(e=xo(e=we(n))))if(null===(t=qe(e)))e=null;else if(13===(r=t.tag)){if(null!==(e=He(t)))return e;e=null}else if(3===r){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Kt=e,null}function Yt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Je()){case Xe:return 1;case et:return 4;case tt:case rt:return 16;case nt:return 536870912;default:return 16}default:return 16}}var Zt=null,Jt=null,Xt=null;function er(){if(Xt)return Xt;var e,t,r=Jt,n=r.length,o="value"in Zt?Zt.value:Zt.textContent,a=o.length;for(e=0;e<n&&r[e]===o[e];e++);var i=n-e;for(t=1;t<=i&&r[n-t]===o[a-t];t++);return Xt=o.slice(e,1<t?1-t:void 0)}function tr(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function rr(){return!0}function nr(){return!1}function or(e){function t(t,r,n,o,a){for(var i in this._reactName=t,this._targetInst=n,this.type=r,this.nativeEvent=o,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(o):o[i]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?rr:nr,this.isPropagationStopped=nr,this}return _(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=rr)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=rr)},persist:function(){},isPersistent:rr}),t}var ar,ir,sr,lr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cr=or(lr),ur=_({},lr,{view:0,detail:0}),dr=or(ur),fr=_({},ur,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Nr,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==sr&&(sr&&"mousemove"===e.type?(ar=e.screenX-sr.screenX,ir=e.screenY-sr.screenY):ir=ar=0,sr=e),ar)},movementY:function(e){return"movementY"in e?e.movementY:ir}}),pr=or(fr),hr=or(_({},fr,{dataTransfer:0})),mr=or(_({},ur,{relatedTarget:0})),gr=or(_({},lr,{animationName:0,elapsedTime:0,pseudoElement:0})),br=_({},lr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yr=or(br),xr=or(_({},lr,{data:0})),vr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wr={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},kr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function jr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=kr[e])&&!!t[e]}function Nr(){return jr}var Cr=_({},ur,{key:function(e){if(e.key){var t=vr[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?wr[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Nr,charCode:function(e){return"keypress"===e.type?tr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Sr=or(Cr),Er=or(_({},fr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Ar=or(_({},ur,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Nr})),Or=or(_({},lr,{propertyName:0,elapsedTime:0,pseudoElement:0})),$r=_({},fr,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Pr=or($r),Tr=[9,13,27,32],Ir=u&&"CompositionEvent"in window,Mr=null;u&&"documentMode"in document&&(Mr=document.documentMode);var Rr=u&&"TextEvent"in window&&!Mr,Lr=u&&(!Ir||Mr&&8<Mr&&11>=Mr),_r=String.fromCharCode(32),Dr=!1;function Br(e,t){switch(e){case"keyup":return-1!==Tr.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zr(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Fr=!1;var qr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!qr[e.type]:"textarea"===t}function Ur(e,t,r,n){Se(n),0<(t=Vn(t,"onChange")).length&&(r=new cr("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Wr=null,Vr=null;function Gr(e){Dn(e,0)}function Kr(e){if(G(wo(e)))return e}function Qr(e,t){if("change"===e)return t}var Yr=!1;if(u){var Zr;if(u){var Jr="oninput"in document;if(!Jr){var Xr=document.createElement("div");Xr.setAttribute("oninput","return;"),Jr="function"===typeof Xr.oninput}Zr=Jr}else Zr=!1;Yr=Zr&&(!document.documentMode||9<document.documentMode)}function en(){Wr&&(Wr.detachEvent("onpropertychange",tn),Vr=Wr=null)}function tn(e){if("value"===e.propertyName&&Kr(Vr)){var t=[];Ur(t,Vr,e,we(e)),Pe(Gr,t)}}function rn(e,t,r){"focusin"===e?(en(),Vr=r,(Wr=t).attachEvent("onpropertychange",tn)):"focusout"===e&&en()}function nn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Kr(Vr)}function on(e,t){if("click"===e)return Kr(t)}function an(e,t){if("input"===e||"change"===e)return Kr(t)}var sn="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function ln(e,t){if(sn(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var o=r[n];if(!d.call(t,o)||!sn(e[o],t[o]))return!1}return!0}function cn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function un(e,t){var r,n=cn(e);for(e=0;n;){if(3===n.nodeType){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=cn(n)}}function dn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fn(){for(var e=window,t=K();t instanceof e.HTMLIFrameElement;){try{var r="string"===typeof t.contentWindow.location.href}catch(n){r=!1}if(!r)break;t=K((e=t.contentWindow).document)}return t}function pn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hn(e){var t=fn(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&dn(r.ownerDocument.documentElement,r)){if(null!==n&&pn(r))if(t=n.start,void 0===(e=n.end)&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if((e=(t=r.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=r.textContent.length,a=Math.min(n.start,o);n=void 0===n.end?a:Math.min(n.end,o),!e.extend&&a>n&&(o=n,n=a,a=o),o=un(r,a);var i=un(r,n);o&&i&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),a>n?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}for(t=[],e=r;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof r.focus&&r.focus(),r=0;r<t.length;r++)(e=t[r]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mn=u&&"documentMode"in document&&11>=document.documentMode,gn=null,bn=null,yn=null,xn=!1;function vn(e,t,r){var n=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;xn||null==gn||gn!==K(n)||("selectionStart"in(n=gn)&&pn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},yn&&ln(yn,n)||(yn=n,0<(n=Vn(bn,"onSelect")).length&&(t=new cr("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=gn)))}function wn(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var kn={animationend:wn("Animation","AnimationEnd"),animationiteration:wn("Animation","AnimationIteration"),animationstart:wn("Animation","AnimationStart"),transitionend:wn("Transition","TransitionEnd")},jn={},Nn={};function Cn(e){if(jn[e])return jn[e];if(!kn[e])return e;var t,r=kn[e];for(t in r)if(r.hasOwnProperty(t)&&t in Nn)return jn[e]=r[t];return e}u&&(Nn=document.createElement("div").style,"AnimationEvent"in window||(delete kn.animationend.animation,delete kn.animationiteration.animation,delete kn.animationstart.animation),"TransitionEvent"in window||delete kn.transitionend.transition);var Sn=Cn("animationend"),En=Cn("animationiteration"),An=Cn("animationstart"),On=Cn("transitionend"),$n=new Map,Pn="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Tn(e,t){$n.set(e,t),l(t,[e])}for(var In=0;In<Pn.length;In++){var Mn=Pn[In];Tn(Mn.toLowerCase(),"on"+(Mn[0].toUpperCase()+Mn.slice(1)))}Tn(Sn,"onAnimationEnd"),Tn(En,"onAnimationIteration"),Tn(An,"onAnimationStart"),Tn("dblclick","onDoubleClick"),Tn("focusin","onFocus"),Tn("focusout","onBlur"),Tn(On,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Rn="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ln=new Set("cancel close invalid load scroll toggle".split(" ").concat(Rn));function _n(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,n,o,i,s,l,c){if(Fe.apply(this,arguments),Le){if(!Le)throw Error(a(198));var u=_e;Le=!1,_e=null,De||(De=!0,Be=u)}}(n,t,void 0,e),e.currentTarget=null}function Dn(e,t){t=0!==(4&t);for(var r=0;r<e.length;r++){var n=e[r],o=n.event;n=n.listeners;e:{var a=void 0;if(t)for(var i=n.length-1;0<=i;i--){var s=n[i],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==a&&o.isPropagationStopped())break e;_n(o,s,c),a=l}else for(i=0;i<n.length;i++){if(l=(s=n[i]).instance,c=s.currentTarget,s=s.listener,l!==a&&o.isPropagationStopped())break e;_n(o,s,c),a=l}}}if(De)throw e=Be,De=!1,Be=null,e}function Bn(e,t){var r=t[go];void 0===r&&(r=t[go]=new Set);var n=e+"__bubble";r.has(n)||(Hn(t,e,2,!1),r.add(n))}function zn(e,t,r){var n=0;t&&(n|=4),Hn(r,e,n,t)}var Fn="_reactListening"+Math.random().toString(36).slice(2);function qn(e){if(!e[Fn]){e[Fn]=!0,i.forEach((function(t){"selectionchange"!==t&&(Ln.has(t)||zn(t,!1,e),zn(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Fn]||(t[Fn]=!0,zn("selectionchange",!1,t))}}function Hn(e,t,r,n){switch(Yt(t)){case 1:var o=Wt;break;case 4:o=Vt;break;default:o=Gt}r=o.bind(null,t,r,e),o=void 0,!Ie||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),n?void 0!==o?e.addEventListener(t,r,{capture:!0,passive:o}):e.addEventListener(t,r,!0):void 0!==o?e.addEventListener(t,r,{passive:o}):e.addEventListener(t,r,!1)}function Un(e,t,r,n,o){var a=n;if(0===(1&t)&&0===(2&t)&&null!==n)e:for(;;){if(null===n)return;var i=n.tag;if(3===i||4===i){var s=n.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===i)for(i=n.return;null!==i;){var l=i.tag;if((3===l||4===l)&&((l=i.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;i=i.return}for(;null!==s;){if(null===(i=xo(s)))return;if(5===(l=i.tag)||6===l){n=a=i;continue e}s=s.parentNode}}n=n.return}Pe((function(){var n=a,o=we(r),i=[];e:{var s=$n.get(e);if(void 0!==s){var l=cr,c=e;switch(e){case"keypress":if(0===tr(r))break e;case"keydown":case"keyup":l=Sr;break;case"focusin":c="focus",l=mr;break;case"focusout":c="blur",l=mr;break;case"beforeblur":case"afterblur":l=mr;break;case"click":if(2===r.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=pr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=hr;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Ar;break;case Sn:case En:case An:l=gr;break;case On:l=Or;break;case"scroll":l=dr;break;case"wheel":l=Pr;break;case"copy":case"cut":case"paste":l=yr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Er}var u=0!==(4&t),d=!u&&"scroll"===e,f=u?null!==s?s+"Capture":null:s;u=[];for(var p,h=n;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&(null!=(m=Te(h,f))&&u.push(Wn(h,m,p)))),d)break;h=h.return}0<u.length&&(s=new l(s,c,null,r,o),i.push({event:s,listeners:u}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||r===ve||!(c=r.relatedTarget||r.fromElement)||!xo(c)&&!c[mo])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=n,null!==(c=(c=r.relatedTarget||r.toElement)?xo(c):null)&&(c!==(d=qe(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=n),l!==c)){if(u=pr,m="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=Er,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==l?s:wo(l),p=null==c?s:wo(c),(s=new u(m,h+"leave",l,r,o)).target=d,s.relatedTarget=p,m=null,xo(o)===n&&((u=new u(f,h+"enter",c,r,o)).target=p,u.relatedTarget=d,m=u),d=m,l&&c)e:{for(f=c,h=0,p=u=l;p;p=Gn(p))h++;for(p=0,m=f;m;m=Gn(m))p++;for(;0<h-p;)u=Gn(u),h--;for(;0<p-h;)f=Gn(f),p--;for(;h--;){if(u===f||null!==f&&u===f.alternate)break e;u=Gn(u),f=Gn(f)}u=null}else u=null;null!==l&&Kn(i,s,l,u,!1),null!==c&&null!==d&&Kn(i,d,c,u,!0)}if("select"===(l=(s=n?wo(n):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Qr;else if(Hr(s))if(Yr)g=an;else{g=nn;var b=rn}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=on);switch(g&&(g=g(e,n))?Ur(i,g,r,o):(b&&b(e,s,n),"focusout"===e&&(b=s._wrapperState)&&b.controlled&&"number"===s.type&&ee(s,"number",s.value)),b=n?wo(n):window,e){case"focusin":(Hr(b)||"true"===b.contentEditable)&&(gn=b,bn=n,yn=null);break;case"focusout":yn=bn=gn=null;break;case"mousedown":xn=!0;break;case"contextmenu":case"mouseup":case"dragend":xn=!1,vn(i,r,o);break;case"selectionchange":if(mn)break;case"keydown":case"keyup":vn(i,r,o)}var y;if(Ir)e:{switch(e){case"compositionstart":var x="onCompositionStart";break e;case"compositionend":x="onCompositionEnd";break e;case"compositionupdate":x="onCompositionUpdate";break e}x=void 0}else Fr?Br(e,r)&&(x="onCompositionEnd"):"keydown"===e&&229===r.keyCode&&(x="onCompositionStart");x&&(Lr&&"ko"!==r.locale&&(Fr||"onCompositionStart"!==x?"onCompositionEnd"===x&&Fr&&(y=er()):(Jt="value"in(Zt=o)?Zt.value:Zt.textContent,Fr=!0)),0<(b=Vn(n,x)).length&&(x=new xr(x,e,null,r,o),i.push({event:x,listeners:b}),y?x.data=y:null!==(y=zr(r))&&(x.data=y))),(y=Rr?function(e,t){switch(e){case"compositionend":return zr(t);case"keypress":return 32!==t.which?null:(Dr=!0,_r);case"textInput":return(e=t.data)===_r&&Dr?null:e;default:return null}}(e,r):function(e,t){if(Fr)return"compositionend"===e||!Ir&&Br(e,t)?(e=er(),Xt=Jt=Zt=null,Fr=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Lr&&"ko"!==t.locale?null:t.data}}(e,r))&&(0<(n=Vn(n,"onBeforeInput")).length&&(o=new xr("onBeforeInput","beforeinput",null,r,o),i.push({event:o,listeners:n}),o.data=y))}Dn(i,t)}))}function Wn(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Vn(e,t){for(var r=t+"Capture",n=[];null!==e;){var o=e,a=o.stateNode;5===o.tag&&null!==a&&(o=a,null!=(a=Te(e,r))&&n.unshift(Wn(e,a,o)),null!=(a=Te(e,t))&&n.push(Wn(e,a,o))),e=e.return}return n}function Gn(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Kn(e,t,r,n,o){for(var a=t._reactName,i=[];null!==r&&r!==n;){var s=r,l=s.alternate,c=s.stateNode;if(null!==l&&l===n)break;5===s.tag&&null!==c&&(s=c,o?null!=(l=Te(r,a))&&i.unshift(Wn(r,l,s)):o||null!=(l=Te(r,a))&&i.push(Wn(r,l,s))),r=r.return}0!==i.length&&e.push({event:t,listeners:i})}var Qn=/\r\n?/g,Yn=/\u0000|\uFFFD/g;function Zn(e){return("string"===typeof e?e:""+e).replace(Qn,"\n").replace(Yn,"")}function Jn(e,t,r){if(t=Zn(t),Zn(e)!==t&&r)throw Error(a(425))}function Xn(){}var eo=null,to=null;function ro(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var no="function"===typeof setTimeout?setTimeout:void 0,oo="function"===typeof clearTimeout?clearTimeout:void 0,ao="function"===typeof Promise?Promise:void 0,io="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof ao?function(e){return ao.resolve(null).then(e).catch(so)}:no;function so(e){setTimeout((function(){throw e}))}function lo(e,t){var r=t,n=0;do{var o=r.nextSibling;if(e.removeChild(r),o&&8===o.nodeType)if("/$"===(r=o.data)){if(0===n)return e.removeChild(o),void qt(t);n--}else"$"!==r&&"$?"!==r&&"$!"!==r||n++;r=o}while(r);qt(t)}function co(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function uo(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var r=e.data;if("$"===r||"$!"===r||"$?"===r){if(0===t)return e;t--}else"/$"===r&&t++}e=e.previousSibling}return null}var fo=Math.random().toString(36).slice(2),po="__reactFiber$"+fo,ho="__reactProps$"+fo,mo="__reactContainer$"+fo,go="__reactEvents$"+fo,bo="__reactListeners$"+fo,yo="__reactHandles$"+fo;function xo(e){var t=e[po];if(t)return t;for(var r=e.parentNode;r;){if(t=r[mo]||r[po]){if(r=t.alternate,null!==t.child||null!==r&&null!==r.child)for(e=uo(e);null!==e;){if(r=e[po])return r;e=uo(e)}return t}r=(e=r).parentNode}return null}function vo(e){return!(e=e[po]||e[mo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function ko(e){return e[ho]||null}var jo=[],No=-1;function Co(e){return{current:e}}function So(e){0>No||(e.current=jo[No],jo[No]=null,No--)}function Eo(e,t){No++,jo[No]=e.current,e.current=t}var Ao={},Oo=Co(Ao),$o=Co(!1),Po=Ao;function To(e,t){var r=e.type.contextTypes;if(!r)return Ao;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in r)a[o]=t[o];return n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Io(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Mo(){So($o),So(Oo)}function Ro(e,t,r){if(Oo.current!==Ao)throw Error(a(168));Eo(Oo,t),Eo($o,r)}function Lo(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,"function"!==typeof n.getChildContext)return r;for(var o in n=n.getChildContext())if(!(o in t))throw Error(a(108,H(e)||"Unknown",o));return _({},r,n)}function _o(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ao,Po=Oo.current,Eo(Oo,e),Eo($o,$o.current),!0}function Do(e,t,r){var n=e.stateNode;if(!n)throw Error(a(169));r?(e=Lo(e,t,Po),n.__reactInternalMemoizedMergedChildContext=e,So($o),So(Oo),Eo(Oo,e)):So($o),Eo($o,r)}var Bo=null,zo=!1,Fo=!1;function qo(e){null===Bo?Bo=[e]:Bo.push(e)}function Ho(){if(!Fo&&null!==Bo){Fo=!0;var e=0,t=xt;try{var r=Bo;for(xt=1;e<r.length;e++){var n=r[e];do{n=n(!0)}while(null!==n)}Bo=null,zo=!1}catch(o){throw null!==Bo&&(Bo=Bo.slice(e+1)),Ge(Xe,Ho),o}finally{xt=t,Fo=!1}}return null}var Uo=[],Wo=0,Vo=null,Go=0,Ko=[],Qo=0,Yo=null,Zo=1,Jo="";function Xo(e,t){Uo[Wo++]=Go,Uo[Wo++]=Vo,Vo=e,Go=t}function ea(e,t,r){Ko[Qo++]=Zo,Ko[Qo++]=Jo,Ko[Qo++]=Yo,Yo=e;var n=Zo;e=Jo;var o=32-it(n)-1;n&=~(1<<o),r+=1;var a=32-it(t)+o;if(30<a){var i=o-o%5;a=(n&(1<<i)-1).toString(32),n>>=i,o-=i,Zo=1<<32-it(t)+o|r<<o|n,Jo=a+e}else Zo=1<<a|r<<o|n,Jo=e}function ta(e){null!==e.return&&(Xo(e,1),ea(e,1,0))}function ra(e){for(;e===Vo;)Vo=Uo[--Wo],Uo[Wo]=null,Go=Uo[--Wo],Uo[Wo]=null;for(;e===Yo;)Yo=Ko[--Qo],Ko[Qo]=null,Jo=Ko[--Qo],Ko[Qo]=null,Zo=Ko[--Qo],Ko[Qo]=null}var na=null,oa=null,aa=!1,ia=null;function sa(e,t){var r=Pc(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,null===(t=e.deletions)?(e.deletions=[r],e.flags|=16):t.push(r)}function la(e,t){switch(e.tag){case 5:var r=e.type;return null!==(t=1!==t.nodeType||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,na=e,oa=co(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,na=e,oa=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(r=null!==Yo?{id:Zo,overflow:Jo}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},(r=Pc(18,null,null,0)).stateNode=t,r.return=e,e.child=r,na=e,oa=null,!0);default:return!1}}function ca(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function ua(e){if(aa){var t=oa;if(t){var r=t;if(!la(e,t)){if(ca(e))throw Error(a(418));t=co(r.nextSibling);var n=na;t&&la(e,t)?sa(n,r):(e.flags=-4097&e.flags|2,aa=!1,na=e)}}else{if(ca(e))throw Error(a(418));e.flags=-4097&e.flags|2,aa=!1,na=e}}}function da(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;na=e}function fa(e){if(e!==na)return!1;if(!aa)return da(e),aa=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ro(e.type,e.memoizedProps)),t&&(t=oa)){if(ca(e))throw pa(),Error(a(418));for(;t;)sa(e,t),t=co(t.nextSibling)}if(da(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){oa=co(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}oa=null}}else oa=na?co(e.stateNode.nextSibling):null;return!0}function pa(){for(var e=oa;e;)e=co(e.nextSibling)}function ha(){oa=na=null,aa=!1}function ma(e){null===ia?ia=[e]:ia.push(e)}var ga=v.ReactCurrentBatchConfig;function ba(e,t,r){if(null!==(e=r.ref)&&"function"!==typeof e&&"object"!==typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(a(309));var n=r.stateNode}if(!n)throw Error(a(147,e));var o=n,i=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=o.refs;null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!==typeof e)throw Error(a(284));if(!r._owner)throw Error(a(290,e))}return e}function ya(e,t){throw e=Object.prototype.toString.call(t),Error(a(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function xa(e){return(0,e._init)(e._payload)}function va(e){function t(t,r){if(e){var n=t.deletions;null===n?(t.deletions=[r],t.flags|=16):n.push(r)}}function r(r,n){if(!e)return null;for(;null!==n;)t(r,n),n=n.sibling;return null}function n(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Ic(e,t)).index=0,e.sibling=null,e}function i(t,r,n){return t.index=n,e?null!==(n=t.alternate)?(n=n.index)<r?(t.flags|=2,r):n:(t.flags|=2,r):(t.flags|=1048576,r)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,r,n){return null===t||6!==t.tag?((t=_c(r,e.mode,n)).return=e,t):((t=o(t,r)).return=e,t)}function c(e,t,r,n){var a=r.type;return a===j?d(e,t,r.props.children,n,r.key):null!==t&&(t.elementType===a||"object"===typeof a&&null!==a&&a.$$typeof===T&&xa(a)===t.type)?((n=o(t,r.props)).ref=ba(e,t,r),n.return=e,n):((n=Mc(r.type,r.key,r.props,null,e.mode,n)).ref=ba(e,t,r),n.return=e,n)}function u(e,t,r,n){return null===t||4!==t.tag||t.stateNode.containerInfo!==r.containerInfo||t.stateNode.implementation!==r.implementation?((t=Dc(r,e.mode,n)).return=e,t):((t=o(t,r.children||[])).return=e,t)}function d(e,t,r,n,a){return null===t||7!==t.tag?((t=Rc(r,e.mode,n,a)).return=e,t):((t=o(t,r)).return=e,t)}function f(e,t,r){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=_c(""+t,e.mode,r)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case w:return(r=Mc(t.type,t.key,t.props,null,e.mode,r)).ref=ba(e,null,t),r.return=e,r;case k:return(t=Dc(t,e.mode,r)).return=e,t;case T:return f(e,(0,t._init)(t._payload),r)}if(te(t)||R(t))return(t=Rc(t,e.mode,r,null)).return=e,t;ya(e,t)}return null}function p(e,t,r,n){var o=null!==t?t.key:null;if("string"===typeof r&&""!==r||"number"===typeof r)return null!==o?null:l(e,t,""+r,n);if("object"===typeof r&&null!==r){switch(r.$$typeof){case w:return r.key===o?c(e,t,r,n):null;case k:return r.key===o?u(e,t,r,n):null;case T:return p(e,t,(o=r._init)(r._payload),n)}if(te(r)||R(r))return null!==o?null:d(e,t,r,n,null);ya(e,r)}return null}function h(e,t,r,n,o){if("string"===typeof n&&""!==n||"number"===typeof n)return l(t,e=e.get(r)||null,""+n,o);if("object"===typeof n&&null!==n){switch(n.$$typeof){case w:return c(t,e=e.get(null===n.key?r:n.key)||null,n,o);case k:return u(t,e=e.get(null===n.key?r:n.key)||null,n,o);case T:return h(e,t,r,(0,n._init)(n._payload),o)}if(te(n)||R(n))return d(t,e=e.get(r)||null,n,o,null);ya(t,n)}return null}function m(o,a,s,l){for(var c=null,u=null,d=a,m=a=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var b=p(o,d,s[m],l);if(null===b){null===d&&(d=g);break}e&&d&&null===b.alternate&&t(o,d),a=i(b,a,m),null===u?c=b:u.sibling=b,u=b,d=g}if(m===s.length)return r(o,d),aa&&Xo(o,m),c;if(null===d){for(;m<s.length;m++)null!==(d=f(o,s[m],l))&&(a=i(d,a,m),null===u?c=d:u.sibling=d,u=d);return aa&&Xo(o,m),c}for(d=n(o,d);m<s.length;m++)null!==(g=h(d,o,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),a=i(g,a,m),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach((function(e){return t(o,e)})),aa&&Xo(o,m),c}function g(o,s,l,c){var u=R(l);if("function"!==typeof u)throw Error(a(150));if(null==(l=u.call(l)))throw Error(a(151));for(var d=u=null,m=s,g=s=0,b=null,y=l.next();null!==m&&!y.done;g++,y=l.next()){m.index>g?(b=m,m=null):b=m.sibling;var x=p(o,m,y.value,c);if(null===x){null===m&&(m=b);break}e&&m&&null===x.alternate&&t(o,m),s=i(x,s,g),null===d?u=x:d.sibling=x,d=x,m=b}if(y.done)return r(o,m),aa&&Xo(o,g),u;if(null===m){for(;!y.done;g++,y=l.next())null!==(y=f(o,y.value,c))&&(s=i(y,s,g),null===d?u=y:d.sibling=y,d=y);return aa&&Xo(o,g),u}for(m=n(o,m);!y.done;g++,y=l.next())null!==(y=h(m,o,g,y.value,c))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),s=i(y,s,g),null===d?u=y:d.sibling=y,d=y);return e&&m.forEach((function(e){return t(o,e)})),aa&&Xo(o,g),u}return function e(n,a,i,l){if("object"===typeof i&&null!==i&&i.type===j&&null===i.key&&(i=i.props.children),"object"===typeof i&&null!==i){switch(i.$$typeof){case w:e:{for(var c=i.key,u=a;null!==u;){if(u.key===c){if((c=i.type)===j){if(7===u.tag){r(n,u.sibling),(a=o(u,i.props.children)).return=n,n=a;break e}}else if(u.elementType===c||"object"===typeof c&&null!==c&&c.$$typeof===T&&xa(c)===u.type){r(n,u.sibling),(a=o(u,i.props)).ref=ba(n,u,i),a.return=n,n=a;break e}r(n,u);break}t(n,u),u=u.sibling}i.type===j?((a=Rc(i.props.children,n.mode,l,i.key)).return=n,n=a):((l=Mc(i.type,i.key,i.props,null,n.mode,l)).ref=ba(n,a,i),l.return=n,n=l)}return s(n);case k:e:{for(u=i.key;null!==a;){if(a.key===u){if(4===a.tag&&a.stateNode.containerInfo===i.containerInfo&&a.stateNode.implementation===i.implementation){r(n,a.sibling),(a=o(a,i.children||[])).return=n,n=a;break e}r(n,a);break}t(n,a),a=a.sibling}(a=Dc(i,n.mode,l)).return=n,n=a}return s(n);case T:return e(n,a,(u=i._init)(i._payload),l)}if(te(i))return m(n,a,i,l);if(R(i))return g(n,a,i,l);ya(n,i)}return"string"===typeof i&&""!==i||"number"===typeof i?(i=""+i,null!==a&&6===a.tag?(r(n,a.sibling),(a=o(a,i)).return=n,n=a):(r(n,a),(a=_c(i,n.mode,l)).return=n,n=a),s(n)):r(n,a)}}var wa=va(!0),ka=va(!1),ja=Co(null),Na=null,Ca=null,Sa=null;function Ea(){Sa=Ca=Na=null}function Aa(e){var t=ja.current;So(ja),e._currentValue=t}function Oa(e,t,r){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==n&&(n.childLanes|=t)):null!==n&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function $a(e,t){Na=e,Sa=Ca=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(xs=!0),e.firstContext=null)}function Pa(e){var t=e._currentValue;if(Sa!==e)if(e={context:e,memoizedValue:t,next:null},null===Ca){if(null===Na)throw Error(a(308));Ca=e,Na.dependencies={lanes:0,firstContext:e}}else Ca=Ca.next=e;return t}var Ta=null;function Ia(e){null===Ta?Ta=[e]:Ta.push(e)}function Ma(e,t,r,n){var o=t.interleaved;return null===o?(r.next=r,Ia(t)):(r.next=o.next,o.next=r),t.interleaved=r,Ra(e,n)}function Ra(e,t){e.lanes|=t;var r=e.alternate;for(null!==r&&(r.lanes|=t),r=e,e=e.return;null!==e;)e.childLanes|=t,null!==(r=e.alternate)&&(r.childLanes|=t),r=e,e=e.return;return 3===r.tag?r.stateNode:null}var La=!1;function _a(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Da(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ba(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function za(e,t,r){var n=e.updateQueue;if(null===n)return null;if(n=n.shared,0!==(2&Al)){var o=n.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),n.pending=t,Ra(e,r)}return null===(o=n.interleaved)?(t.next=t,Ia(n)):(t.next=o.next,o.next=t),n.interleaved=t,Ra(e,r)}function Fa(e,t,r){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&r))){var n=t.lanes;r|=n&=e.pendingLanes,t.lanes=r,yt(e,r)}}function qa(e,t){var r=e.updateQueue,n=e.alternate;if(null!==n&&r===(n=n.updateQueue)){var o=null,a=null;if(null!==(r=r.firstBaseUpdate)){do{var i={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};null===a?o=a=i:a=a.next=i,r=r.next}while(null!==r);null===a?o=a=t:a=a.next=t}else o=a=t;return r={baseState:n.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:n.shared,effects:n.effects},void(e.updateQueue=r)}null===(e=r.lastBaseUpdate)?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Ha(e,t,r,n){var o=e.updateQueue;La=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,c=l.next;l.next=null,null===i?a=c:i.next=c,i=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==i&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==a){var d=o.baseState;for(i=0,u=c=l=null,s=a;;){var f=s.lane,p=s.eventTime;if((n&f)===f){null!==u&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(f=t,p=r,m.tag){case 1:if("function"===typeof(h=m.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null===(f="function"===typeof(h=m.payload)?h.call(p,d,f):h)||void 0===f)break e;d=_({},d,f);break e;case 2:La=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=p,l=d):u=u.next=p,i|=f;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(f=s).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===u&&(l=d),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{i|=o.lane,o=o.next}while(o!==t)}else null===a&&(o.shared.lanes=0);Ll|=i,e.lanes=i,e.memoizedState=d}}function Ua(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var n=e[t],o=n.callback;if(null!==o){if(n.callback=null,n=r,"function"!==typeof o)throw Error(a(191,o));o.call(n)}}}var Wa={},Va=Co(Wa),Ga=Co(Wa),Ka=Co(Wa);function Qa(e){if(e===Wa)throw Error(a(174));return e}function Ya(e,t){switch(Eo(Ka,t),Eo(Ga,e),Eo(Va,Wa),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}So(Va),Eo(Va,t)}function Za(){So(Va),So(Ga),So(Ka)}function Ja(e){Qa(Ka.current);var t=Qa(Va.current),r=le(t,e.type);t!==r&&(Eo(Ga,e),Eo(Va,r))}function Xa(e){Ga.current===e&&(So(Va),So(Ga))}var ei=Co(0);function ti(e){for(var t=e;null!==t;){if(13===t.tag){var r=t.memoizedState;if(null!==r&&(null===(r=r.dehydrated)||"$?"===r.data||"$!"===r.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ri=[];function ni(){for(var e=0;e<ri.length;e++)ri[e]._workInProgressVersionPrimary=null;ri.length=0}var oi=v.ReactCurrentDispatcher,ai=v.ReactCurrentBatchConfig,ii=0,si=null,li=null,ci=null,ui=!1,di=!1,fi=0,pi=0;function hi(){throw Error(a(321))}function mi(e,t){if(null===t)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!sn(e[r],t[r]))return!1;return!0}function gi(e,t,r,n,o,i){if(ii=i,si=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oi.current=null===e||null===e.memoizedState?Xi:es,e=r(n,o),di){i=0;do{if(di=!1,fi=0,25<=i)throw Error(a(301));i+=1,ci=li=null,t.updateQueue=null,oi.current=ts,e=r(n,o)}while(di)}if(oi.current=Ji,t=null!==li&&null!==li.next,ii=0,ci=li=si=null,ui=!1,t)throw Error(a(300));return e}function bi(){var e=0!==fi;return fi=0,e}function yi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ci?si.memoizedState=ci=e:ci=ci.next=e,ci}function xi(){if(null===li){var e=si.alternate;e=null!==e?e.memoizedState:null}else e=li.next;var t=null===ci?si.memoizedState:ci.next;if(null!==t)ci=t,li=e;else{if(null===e)throw Error(a(310));e={memoizedState:(li=e).memoizedState,baseState:li.baseState,baseQueue:li.baseQueue,queue:li.queue,next:null},null===ci?si.memoizedState=ci=e:ci=ci.next=e}return ci}function vi(e,t){return"function"===typeof t?t(e):t}function wi(e){var t=xi(),r=t.queue;if(null===r)throw Error(a(311));r.lastRenderedReducer=e;var n=li,o=n.baseQueue,i=r.pending;if(null!==i){if(null!==o){var s=o.next;o.next=i.next,i.next=s}n.baseQueue=o=i,r.pending=null}if(null!==o){i=o.next,n=n.baseState;var l=s=null,c=null,u=i;do{var d=u.lane;if((ii&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),n=u.hasEagerState?u.eagerState:e(n,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=f,s=n):c=c.next=f,si.lanes|=d,Ll|=d}u=u.next}while(null!==u&&u!==i);null===c?s=n:c.next=l,sn(n,t.memoizedState)||(xs=!0),t.memoizedState=n,t.baseState=s,t.baseQueue=c,r.lastRenderedState=n}if(null!==(e=r.interleaved)){o=e;do{i=o.lane,si.lanes|=i,Ll|=i,o=o.next}while(o!==e)}else null===o&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function ki(e){var t=xi(),r=t.queue;if(null===r)throw Error(a(311));r.lastRenderedReducer=e;var n=r.dispatch,o=r.pending,i=t.memoizedState;if(null!==o){r.pending=null;var s=o=o.next;do{i=e(i,s.action),s=s.next}while(s!==o);sn(i,t.memoizedState)||(xs=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),r.lastRenderedState=i}return[i,n]}function ji(){}function Ni(e,t){var r=si,n=xi(),o=t(),i=!sn(n.memoizedState,o);if(i&&(n.memoizedState=o,xs=!0),n=n.queue,Li(Ei.bind(null,r,n,e),[e]),n.getSnapshot!==t||i||null!==ci&&1&ci.memoizedState.tag){if(r.flags|=2048,Pi(9,Si.bind(null,r,n,o,t),void 0,null),null===Ol)throw Error(a(349));0!==(30&ii)||Ci(r,t,o)}return o}function Ci(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},null===(t=si.updateQueue)?(t={lastEffect:null,stores:null},si.updateQueue=t,t.stores=[e]):null===(r=t.stores)?t.stores=[e]:r.push(e)}function Si(e,t,r,n){t.value=r,t.getSnapshot=n,Ai(t)&&Oi(e)}function Ei(e,t,r){return r((function(){Ai(t)&&Oi(e)}))}function Ai(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!sn(e,r)}catch(n){return!0}}function Oi(e){var t=Ra(e,1);null!==t&&rc(t,e,1,-1)}function $i(e){var t=yi();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:vi,lastRenderedState:e},t.queue=e,e=e.dispatch=Ki.bind(null,si,e),[t.memoizedState,e]}function Pi(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},null===(t=si.updateQueue)?(t={lastEffect:null,stores:null},si.updateQueue=t,t.lastEffect=e.next=e):null===(r=t.lastEffect)?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e),e}function Ti(){return xi().memoizedState}function Ii(e,t,r,n){var o=yi();si.flags|=e,o.memoizedState=Pi(1|t,r,void 0,void 0===n?null:n)}function Mi(e,t,r,n){var o=xi();n=void 0===n?null:n;var a=void 0;if(null!==li){var i=li.memoizedState;if(a=i.destroy,null!==n&&mi(n,i.deps))return void(o.memoizedState=Pi(t,r,a,n))}si.flags|=e,o.memoizedState=Pi(1|t,r,a,n)}function Ri(e,t){return Ii(8390656,8,e,t)}function Li(e,t){return Mi(2048,8,e,t)}function _i(e,t){return Mi(4,2,e,t)}function Di(e,t){return Mi(4,4,e,t)}function Bi(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function zi(e,t,r){return r=null!==r&&void 0!==r?r.concat([e]):null,Mi(4,4,Bi.bind(null,t,e),r)}function Fi(){}function qi(e,t){var r=xi();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&mi(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function Hi(e,t){var r=xi();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&mi(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function Ui(e,t,r){return 0===(21&ii)?(e.baseState&&(e.baseState=!1,xs=!0),e.memoizedState=r):(sn(r,t)||(r=mt(),si.lanes|=r,Ll|=r,e.baseState=!0),t)}function Wi(e,t){var r=xt;xt=0!==r&&4>r?r:4,e(!0);var n=ai.transition;ai.transition={};try{e(!1),t()}finally{xt=r,ai.transition=n}}function Vi(){return xi().memoizedState}function Gi(e,t,r){var n=tc(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},Qi(e))Yi(t,r);else if(null!==(r=Ma(e,t,r,n))){rc(r,e,n,ec()),Zi(r,t,n)}}function Ki(e,t,r){var n=tc(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(Qi(e))Yi(t,o);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var i=t.lastRenderedState,s=a(i,r);if(o.hasEagerState=!0,o.eagerState=s,sn(s,i)){var l=t.interleaved;return null===l?(o.next=o,Ia(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(c){}null!==(r=Ma(e,t,o,n))&&(rc(r,e,n,o=ec()),Zi(r,t,n))}}function Qi(e){var t=e.alternate;return e===si||null!==t&&t===si}function Yi(e,t){di=ui=!0;var r=e.pending;null===r?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Zi(e,t,r){if(0!==(4194240&r)){var n=t.lanes;r|=n&=e.pendingLanes,t.lanes=r,yt(e,r)}}var Ji={readContext:Pa,useCallback:hi,useContext:hi,useEffect:hi,useImperativeHandle:hi,useInsertionEffect:hi,useLayoutEffect:hi,useMemo:hi,useReducer:hi,useRef:hi,useState:hi,useDebugValue:hi,useDeferredValue:hi,useTransition:hi,useMutableSource:hi,useSyncExternalStore:hi,useId:hi,unstable_isNewReconciler:!1},Xi={readContext:Pa,useCallback:function(e,t){return yi().memoizedState=[e,void 0===t?null:t],e},useContext:Pa,useEffect:Ri,useImperativeHandle:function(e,t,r){return r=null!==r&&void 0!==r?r.concat([e]):null,Ii(4194308,4,Bi.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Ii(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ii(4,2,e,t)},useMemo:function(e,t){var r=yi();return t=void 0===t?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=yi();return t=void 0!==r?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=Gi.bind(null,si,e),[n.memoizedState,e]},useRef:function(e){return e={current:e},yi().memoizedState=e},useState:$i,useDebugValue:Fi,useDeferredValue:function(e){return yi().memoizedState=e},useTransition:function(){var e=$i(!1),t=e[0];return e=Wi.bind(null,e[1]),yi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=si,o=yi();if(aa){if(void 0===r)throw Error(a(407));r=r()}else{if(r=t(),null===Ol)throw Error(a(349));0!==(30&ii)||Ci(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,Ri(Ei.bind(null,n,i,e),[e]),n.flags|=2048,Pi(9,Si.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=yi(),t=Ol.identifierPrefix;if(aa){var r=Jo;t=":"+t+"R"+(r=(Zo&~(1<<32-it(Zo)-1)).toString(32)+r),0<(r=fi++)&&(t+="H"+r.toString(32)),t+=":"}else t=":"+t+"r"+(r=pi++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},es={readContext:Pa,useCallback:qi,useContext:Pa,useEffect:Li,useImperativeHandle:zi,useInsertionEffect:_i,useLayoutEffect:Di,useMemo:Hi,useReducer:wi,useRef:Ti,useState:function(){return wi(vi)},useDebugValue:Fi,useDeferredValue:function(e){return Ui(xi(),li.memoizedState,e)},useTransition:function(){return[wi(vi)[0],xi().memoizedState]},useMutableSource:ji,useSyncExternalStore:Ni,useId:Vi,unstable_isNewReconciler:!1},ts={readContext:Pa,useCallback:qi,useContext:Pa,useEffect:Li,useImperativeHandle:zi,useInsertionEffect:_i,useLayoutEffect:Di,useMemo:Hi,useReducer:ki,useRef:Ti,useState:function(){return ki(vi)},useDebugValue:Fi,useDeferredValue:function(e){var t=xi();return null===li?t.memoizedState=e:Ui(t,li.memoizedState,e)},useTransition:function(){return[ki(vi)[0],xi().memoizedState]},useMutableSource:ji,useSyncExternalStore:Ni,useId:Vi,unstable_isNewReconciler:!1};function rs(e,t){if(e&&e.defaultProps){for(var r in t=_({},t),e=e.defaultProps)void 0===t[r]&&(t[r]=e[r]);return t}return t}function ns(e,t,r,n){r=null===(r=r(n,t=e.memoizedState))||void 0===r?t:_({},t,r),e.memoizedState=r,0===e.lanes&&(e.updateQueue.baseState=r)}var os={isMounted:function(e){return!!(e=e._reactInternals)&&qe(e)===e},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=ec(),o=tc(e),a=Ba(n,o);a.payload=t,void 0!==r&&null!==r&&(a.callback=r),null!==(t=za(e,a,o))&&(rc(t,e,o,n),Fa(t,e,o))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=ec(),o=tc(e),a=Ba(n,o);a.tag=1,a.payload=t,void 0!==r&&null!==r&&(a.callback=r),null!==(t=za(e,a,o))&&(rc(t,e,o,n),Fa(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=ec(),n=tc(e),o=Ba(r,n);o.tag=2,void 0!==t&&null!==t&&(o.callback=t),null!==(t=za(e,o,n))&&(rc(t,e,n,r),Fa(t,e,n))}};function as(e,t,r,n,o,a,i){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(n,a,i):!t.prototype||!t.prototype.isPureReactComponent||(!ln(r,n)||!ln(o,a))}function is(e,t,r){var n=!1,o=Ao,a=t.contextType;return"object"===typeof a&&null!==a?a=Pa(a):(o=Io(t)?Po:Oo.current,a=(n=null!==(n=t.contextTypes)&&void 0!==n)?To(e,o):Ao),t=new t(r,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=os,e.stateNode=t,t._reactInternals=e,n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function ss(e,t,r,n){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(r,n),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&os.enqueueReplaceState(t,t.state,null)}function ls(e,t,r,n){var o=e.stateNode;o.props=r,o.state=e.memoizedState,o.refs={},_a(e);var a=t.contextType;"object"===typeof a&&null!==a?o.context=Pa(a):(a=Io(t)?Po:Oo.current,o.context=To(e,a)),o.state=e.memoizedState,"function"===typeof(a=t.getDerivedStateFromProps)&&(ns(e,t,a,r),o.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof o.getSnapshotBeforeUpdate||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||(t=o.state,"function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&os.enqueueReplaceState(o,o.state,null),Ha(e,r,o,n),o.state=e.memoizedState),"function"===typeof o.componentDidMount&&(e.flags|=4194308)}function cs(e,t){try{var r="",n=t;do{r+=F(n),n=n.return}while(n);var o=r}catch(a){o="\nError generating stack: "+a.message+"\n"+a.stack}return{value:e,source:t,stack:o,digest:null}}function us(e,t,r){return{value:e,source:null,stack:null!=r?r:null,digest:null!=t?t:null}}function ds(e,t){try{console.error(t.value)}catch(r){setTimeout((function(){throw r}))}}var fs="function"===typeof WeakMap?WeakMap:Map;function ps(e,t,r){(r=Ba(-1,r)).tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Ul||(Ul=!0,Wl=n),ds(0,t)},r}function hs(e,t,r){(r=Ba(-1,r)).tag=3;var n=e.type.getDerivedStateFromError;if("function"===typeof n){var o=t.value;r.payload=function(){return n(o)},r.callback=function(){ds(0,t)}}var a=e.stateNode;return null!==a&&"function"===typeof a.componentDidCatch&&(r.callback=function(){ds(0,t),"function"!==typeof n&&(null===Vl?Vl=new Set([this]):Vl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),r}function ms(e,t,r){var n=e.pingCache;if(null===n){n=e.pingCache=new fs;var o=new Set;n.set(t,o)}else void 0===(o=n.get(t))&&(o=new Set,n.set(t,o));o.has(r)||(o.add(r),e=Cc.bind(null,e,t,r),t.then(e,e))}function gs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function bs(e,t,r,n,o){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,1===r.tag&&(null===r.alternate?r.tag=17:((t=Ba(-1,1)).tag=2,za(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var ys=v.ReactCurrentOwner,xs=!1;function vs(e,t,r,n){t.child=null===e?ka(t,null,r,n):wa(t,e.child,r,n)}function ws(e,t,r,n,o){r=r.render;var a=t.ref;return $a(t,o),n=gi(e,t,r,n,a,o),r=bi(),null===e||xs?(aa&&r&&ta(t),t.flags|=1,vs(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Us(e,t,o))}function ks(e,t,r,n,o){if(null===e){var a=r.type;return"function"!==typeof a||Tc(a)||void 0!==a.defaultProps||null!==r.compare||void 0!==r.defaultProps?((e=Mc(r.type,null,n,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,js(e,t,a,n,o))}if(a=e.child,0===(e.lanes&o)){var i=a.memoizedProps;if((r=null!==(r=r.compare)?r:ln)(i,n)&&e.ref===t.ref)return Us(e,t,o)}return t.flags|=1,(e=Ic(a,n)).ref=t.ref,e.return=t,t.child=e}function js(e,t,r,n,o){if(null!==e){var a=e.memoizedProps;if(ln(a,n)&&e.ref===t.ref){if(xs=!1,t.pendingProps=n=a,0===(e.lanes&o))return t.lanes=e.lanes,Us(e,t,o);0!==(131072&e.flags)&&(xs=!0)}}return Ss(e,t,r,n,o)}function Ns(e,t,r){var n=t.pendingProps,o=n.children,a=null!==e?e.memoizedState:null;if("hidden"===n.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Eo(Il,Tl),Tl|=r;else{if(0===(1073741824&r))return e=null!==a?a.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Eo(Il,Tl),Tl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=null!==a?a.baseLanes:r,Eo(Il,Tl),Tl|=n}else null!==a?(n=a.baseLanes|r,t.memoizedState=null):n=r,Eo(Il,Tl),Tl|=n;return vs(e,t,o,r),t.child}function Cs(e,t){var r=t.ref;(null===e&&null!==r||null!==e&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function Ss(e,t,r,n,o){var a=Io(r)?Po:Oo.current;return a=To(t,a),$a(t,o),r=gi(e,t,r,n,a,o),n=bi(),null===e||xs?(aa&&n&&ta(t),t.flags|=1,vs(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Us(e,t,o))}function Es(e,t,r,n,o){if(Io(r)){var a=!0;_o(t)}else a=!1;if($a(t,o),null===t.stateNode)Hs(e,t),is(t,r,n),ls(t,r,n,o),n=!0;else if(null===e){var i=t.stateNode,s=t.memoizedProps;i.props=s;var l=i.context,c=r.contextType;"object"===typeof c&&null!==c?c=Pa(c):c=To(t,c=Io(r)?Po:Oo.current);var u=r.getDerivedStateFromProps,d="function"===typeof u||"function"===typeof i.getSnapshotBeforeUpdate;d||"function"!==typeof i.UNSAFE_componentWillReceiveProps&&"function"!==typeof i.componentWillReceiveProps||(s!==n||l!==c)&&ss(t,i,n,c),La=!1;var f=t.memoizedState;i.state=f,Ha(t,n,i,o),l=t.memoizedState,s!==n||f!==l||$o.current||La?("function"===typeof u&&(ns(t,r,u,n),l=t.memoizedState),(s=La||as(t,r,s,n,f,l,c))?(d||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||("function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"===typeof i.componentDidMount&&(t.flags|=4194308)):("function"===typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),i.props=n,i.state=l,i.context=c,n=s):("function"===typeof i.componentDidMount&&(t.flags|=4194308),n=!1)}else{i=t.stateNode,Da(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:rs(t.type,s),i.props=c,d=t.pendingProps,f=i.context,"object"===typeof(l=r.contextType)&&null!==l?l=Pa(l):l=To(t,l=Io(r)?Po:Oo.current);var p=r.getDerivedStateFromProps;(u="function"===typeof p||"function"===typeof i.getSnapshotBeforeUpdate)||"function"!==typeof i.UNSAFE_componentWillReceiveProps&&"function"!==typeof i.componentWillReceiveProps||(s!==d||f!==l)&&ss(t,i,n,l),La=!1,f=t.memoizedState,i.state=f,Ha(t,n,i,o);var h=t.memoizedState;s!==d||f!==h||$o.current||La?("function"===typeof p&&(ns(t,r,p,n),h=t.memoizedState),(c=La||as(t,r,c,n,f,h,l)||!1)?(u||"function"!==typeof i.UNSAFE_componentWillUpdate&&"function"!==typeof i.componentWillUpdate||("function"===typeof i.componentWillUpdate&&i.componentWillUpdate(n,h,l),"function"===typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(n,h,l)),"function"===typeof i.componentDidUpdate&&(t.flags|=4),"function"===typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof i.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=h),i.props=n,i.state=h,i.context=l,n=c):("function"!==typeof i.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),n=!1)}return As(e,t,r,n,a,o)}function As(e,t,r,n,o,a){Cs(e,t);var i=0!==(128&t.flags);if(!n&&!i)return o&&Do(t,r,!1),Us(e,t,a);n=t.stateNode,ys.current=t;var s=i&&"function"!==typeof r.getDerivedStateFromError?null:n.render();return t.flags|=1,null!==e&&i?(t.child=wa(t,e.child,null,a),t.child=wa(t,null,s,a)):vs(e,t,s,a),t.memoizedState=n.state,o&&Do(t,r,!0),t.child}function Os(e){var t=e.stateNode;t.pendingContext?Ro(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ro(0,t.context,!1),Ya(e,t.containerInfo)}function $s(e,t,r,n,o){return ha(),ma(o),t.flags|=256,vs(e,t,r,n),t.child}var Ps,Ts,Is,Ms,Rs={dehydrated:null,treeContext:null,retryLane:0};function Ls(e){return{baseLanes:e,cachePool:null,transitions:null}}function _s(e,t,r){var n,o=t.pendingProps,i=ei.current,s=!1,l=0!==(128&t.flags);if((n=l)||(n=(null===e||null!==e.memoizedState)&&0!==(2&i)),n?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),Eo(ei,1&i),null===e)return ua(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=o.children,e=o.fallback,s?(o=t.mode,s=t.child,l={mode:"hidden",children:l},0===(1&o)&&null!==s?(s.childLanes=0,s.pendingProps=l):s=Lc(l,o,0,null),e=Rc(e,o,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ls(r),t.memoizedState=Rs,e):Ds(t,l));if(null!==(i=e.memoizedState)&&null!==(n=i.dehydrated))return function(e,t,r,n,o,i,s){if(r)return 256&t.flags?(t.flags&=-257,Bs(e,t,s,n=us(Error(a(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=n.fallback,o=t.mode,n=Lc({mode:"visible",children:n.children},o,0,null),(i=Rc(i,o,s,null)).flags|=2,n.return=t,i.return=t,n.sibling=i,t.child=n,0!==(1&t.mode)&&wa(t,e.child,null,s),t.child.memoizedState=Ls(s),t.memoizedState=Rs,i);if(0===(1&t.mode))return Bs(e,t,s,null);if("$!"===o.data){if(n=o.nextSibling&&o.nextSibling.dataset)var l=n.dgst;return n=l,Bs(e,t,s,n=us(i=Error(a(419)),n,void 0))}if(l=0!==(s&e.childLanes),xs||l){if(null!==(n=Ol)){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!==(o&(n.suspendedLanes|s))?0:o)&&o!==i.retryLane&&(i.retryLane=o,Ra(e,o),rc(n,e,o,-1))}return mc(),Bs(e,t,s,n=us(Error(a(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Ec.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,oa=co(o.nextSibling),na=t,aa=!0,ia=null,null!==e&&(Ko[Qo++]=Zo,Ko[Qo++]=Jo,Ko[Qo++]=Yo,Zo=e.id,Jo=e.overflow,Yo=t),t=Ds(t,n.children),t.flags|=4096,t)}(e,t,l,o,n,i,r);if(s){s=o.fallback,l=t.mode,n=(i=e.child).sibling;var c={mode:"hidden",children:o.children};return 0===(1&l)&&t.child!==i?((o=t.child).childLanes=0,o.pendingProps=c,t.deletions=null):(o=Ic(i,c)).subtreeFlags=14680064&i.subtreeFlags,null!==n?s=Ic(n,s):(s=Rc(s,l,r,null)).flags|=2,s.return=t,o.return=t,o.sibling=s,t.child=o,o=s,s=t.child,l=null===(l=e.child.memoizedState)?Ls(r):{baseLanes:l.baseLanes|r,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~r,t.memoizedState=Rs,o}return e=(s=e.child).sibling,o=Ic(s,{mode:"visible",children:o.children}),0===(1&t.mode)&&(o.lanes=r),o.return=t,o.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=o,t.memoizedState=null,o}function Ds(e,t){return(t=Lc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Bs(e,t,r,n){return null!==n&&ma(n),wa(t,e.child,null,r),(e=Ds(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function zs(e,t,r){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),Oa(e.return,t,r)}function Fs(e,t,r,n,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=n,a.tail=r,a.tailMode=o)}function qs(e,t,r){var n=t.pendingProps,o=n.revealOrder,a=n.tail;if(vs(e,t,n.children,r),0!==(2&(n=ei.current)))n=1&n|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&zs(e,r,t);else if(19===e.tag)zs(e,r,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(Eo(ei,n),0===(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(r=t.child,o=null;null!==r;)null!==(e=r.alternate)&&null===ti(e)&&(o=r),r=r.sibling;null===(r=o)?(o=t.child,t.child=null):(o=r.sibling,r.sibling=null),Fs(t,!1,o,r,a);break;case"backwards":for(r=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ti(e)){t.child=o;break}e=o.sibling,o.sibling=r,r=o,o=e}Fs(t,!0,r,null,a);break;case"together":Fs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Hs(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Us(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),Ll|=t.lanes,0===(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(r=Ic(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Ic(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function Ws(e,t){if(!aa)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;null!==r;)null!==r.alternate&&(n=r),r=r.sibling;null===n?t||null===e.tail?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Vs(e){var t=null!==e.alternate&&e.alternate.child===e.child,r=0,n=0;if(t)for(var o=e.child;null!==o;)r|=o.lanes|o.childLanes,n|=14680064&o.subtreeFlags,n|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags,n|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function Gs(e,t,r){var n=t.pendingProps;switch(ra(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Vs(t),null;case 1:case 17:return Io(t.type)&&Mo(),Vs(t),null;case 3:return n=t.stateNode,Za(),So($o),So(Oo),ni(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(fa(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==ia&&(ic(ia),ia=null))),Ts(e,t),Vs(t),null;case 5:Xa(t);var o=Qa(Ka.current);if(r=t.type,null!==e&&null!=t.stateNode)Is(e,t,r,n,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(null===t.stateNode)throw Error(a(166));return Vs(t),null}if(e=Qa(Va.current),fa(t)){n=t.stateNode,r=t.type;var i=t.memoizedProps;switch(n[po]=t,n[ho]=i,e=0!==(1&t.mode),r){case"dialog":Bn("cancel",n),Bn("close",n);break;case"iframe":case"object":case"embed":Bn("load",n);break;case"video":case"audio":for(o=0;o<Rn.length;o++)Bn(Rn[o],n);break;case"source":Bn("error",n);break;case"img":case"image":case"link":Bn("error",n),Bn("load",n);break;case"details":Bn("toggle",n);break;case"input":Y(n,i),Bn("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!i.multiple},Bn("invalid",n);break;case"textarea":oe(n,i),Bn("invalid",n)}for(var l in ye(r,i),o=null,i)if(i.hasOwnProperty(l)){var c=i[l];"children"===l?"string"===typeof c?n.textContent!==c&&(!0!==i.suppressHydrationWarning&&Jn(n.textContent,c,e),o=["children",c]):"number"===typeof c&&n.textContent!==""+c&&(!0!==i.suppressHydrationWarning&&Jn(n.textContent,c,e),o=["children",""+c]):s.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&Bn("scroll",n)}switch(r){case"input":V(n),X(n,i,!0);break;case"textarea":V(n),ie(n);break;case"select":case"option":break;default:"function"===typeof i.onClick&&(n.onclick=Xn)}n=o,t.updateQueue=n,null!==n&&(t.flags|=4)}else{l=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof n.is?e=l.createElement(r,{is:n.is}):(e=l.createElement(r),"select"===r&&(l=e,n.multiple?l.multiple=!0:n.size&&(l.size=n.size))):e=l.createElementNS(e,r),e[po]=t,e[ho]=n,Ps(e,t,!1,!1),t.stateNode=e;e:{switch(l=xe(r,n),r){case"dialog":Bn("cancel",e),Bn("close",e),o=n;break;case"iframe":case"object":case"embed":Bn("load",e),o=n;break;case"video":case"audio":for(o=0;o<Rn.length;o++)Bn(Rn[o],e);o=n;break;case"source":Bn("error",e),o=n;break;case"img":case"image":case"link":Bn("error",e),Bn("load",e),o=n;break;case"details":Bn("toggle",e),o=n;break;case"input":Y(e,n),o=Q(e,n),Bn("invalid",e);break;case"option":default:o=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},o=_({},n,{value:void 0}),Bn("invalid",e);break;case"textarea":oe(e,n),o=ne(e,n),Bn("invalid",e)}for(i in ye(r,o),c=o)if(c.hasOwnProperty(i)){var u=c[i];"style"===i?ge(e,u):"dangerouslySetInnerHTML"===i?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===i?"string"===typeof u?("textarea"!==r||""!==u)&&fe(e,u):"number"===typeof u&&fe(e,""+u):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(s.hasOwnProperty(i)?null!=u&&"onScroll"===i&&Bn("scroll",e):null!=u&&x(e,i,u,l))}switch(r){case"input":V(e),X(e,n,!1);break;case"textarea":V(e),ie(e);break;case"option":null!=n.value&&e.setAttribute("value",""+U(n.value));break;case"select":e.multiple=!!n.multiple,null!=(i=n.value)?re(e,!!n.multiple,i,!1):null!=n.defaultValue&&re(e,!!n.multiple,n.defaultValue,!0);break;default:"function"===typeof o.onClick&&(e.onclick=Xn)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Vs(t),null;case 6:if(e&&null!=t.stateNode)Ms(e,t,e.memoizedProps,n);else{if("string"!==typeof n&&null===t.stateNode)throw Error(a(166));if(r=Qa(Ka.current),Qa(Va.current),fa(t)){if(n=t.stateNode,r=t.memoizedProps,n[po]=t,(i=n.nodeValue!==r)&&null!==(e=na))switch(e.tag){case 3:Jn(n.nodeValue,r,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jn(n.nodeValue,r,0!==(1&e.mode))}i&&(t.flags|=4)}else(n=(9===r.nodeType?r:r.ownerDocument).createTextNode(n))[po]=t,t.stateNode=n}return Vs(t),null;case 13:if(So(ei),n=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(aa&&null!==oa&&0!==(1&t.mode)&&0===(128&t.flags))pa(),ha(),t.flags|=98560,i=!1;else if(i=fa(t),null!==n&&null!==n.dehydrated){if(null===e){if(!i)throw Error(a(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(a(317));i[po]=t}else ha(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Vs(t),i=!1}else null!==ia&&(ic(ia),ia=null),i=!0;if(!i)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=r,t):((n=null!==n)!==(null!==e&&null!==e.memoizedState)&&n&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&ei.current)?0===Ml&&(Ml=3):mc())),null!==t.updateQueue&&(t.flags|=4),Vs(t),null);case 4:return Za(),Ts(e,t),null===e&&qn(t.stateNode.containerInfo),Vs(t),null;case 10:return Aa(t.type._context),Vs(t),null;case 19:if(So(ei),null===(i=t.memoizedState))return Vs(t),null;if(n=0!==(128&t.flags),null===(l=i.rendering))if(n)Ws(i,!1);else{if(0!==Ml||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=ti(e))){for(t.flags|=128,Ws(i,!1),null!==(n=l.updateQueue)&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;null!==r;)e=n,(i=r).flags&=14680066,null===(l=i.alternate)?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=l.childLanes,i.lanes=l.lanes,i.child=l.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=l.memoizedProps,i.memoizedState=l.memoizedState,i.updateQueue=l.updateQueue,i.type=l.type,e=l.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Eo(ei,1&ei.current|2),t.child}e=e.sibling}null!==i.tail&&Ze()>ql&&(t.flags|=128,n=!0,Ws(i,!1),t.lanes=4194304)}else{if(!n)if(null!==(e=ti(l))){if(t.flags|=128,n=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),Ws(i,!0),null===i.tail&&"hidden"===i.tailMode&&!l.alternate&&!aa)return Vs(t),null}else 2*Ze()-i.renderingStartTime>ql&&1073741824!==r&&(t.flags|=128,n=!0,Ws(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(null!==(r=i.last)?r.sibling=l:t.child=l,i.last=l)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ze(),t.sibling=null,r=ei.current,Eo(ei,n?1&r|2:1&r),t):(Vs(t),null);case 22:case 23:return dc(),n=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==n&&(t.flags|=8192),n&&0!==(1&t.mode)?0!==(1073741824&Tl)&&(Vs(t),6&t.subtreeFlags&&(t.flags|=8192)):Vs(t),null;case 24:case 25:return null}throw Error(a(156,t.tag))}function Ks(e,t){switch(ra(t),t.tag){case 1:return Io(t.type)&&Mo(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Za(),So($o),So(Oo),ni(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Xa(t),null;case 13:if(So(ei),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(a(340));ha()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return So(ei),null;case 4:return Za(),null;case 10:return Aa(t.type._context),null;case 22:case 23:return dc(),null;default:return null}}Ps=function(e,t){for(var r=t.child;null!==r;){if(5===r.tag||6===r.tag)e.appendChild(r.stateNode);else if(4!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===t)break;for(;null===r.sibling;){if(null===r.return||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},Ts=function(){},Is=function(e,t,r,n){var o=e.memoizedProps;if(o!==n){e=t.stateNode,Qa(Va.current);var a,i=null;switch(r){case"input":o=Q(e,o),n=Q(e,n),i=[];break;case"select":o=_({},o,{value:void 0}),n=_({},n,{value:void 0}),i=[];break;case"textarea":o=ne(e,o),n=ne(e,n),i=[];break;default:"function"!==typeof o.onClick&&"function"===typeof n.onClick&&(e.onclick=Xn)}for(u in ye(r,n),r=null,o)if(!n.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var l=o[u];for(a in l)l.hasOwnProperty(a)&&(r||(r={}),r[a]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in n){var c=n[u];if(l=null!=o?o[u]:void 0,n.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(a in l)!l.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(r||(r={}),r[a]="");for(a in c)c.hasOwnProperty(a)&&l[a]!==c[a]&&(r||(r={}),r[a]=c[a])}else r||(i||(i=[]),i.push(u,r)),r=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(i=i||[]).push(u,c)):"children"===u?"string"!==typeof c&&"number"!==typeof c||(i=i||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(s.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Bn("scroll",e),i||l===c||(i=[])):(i=i||[]).push(u,c))}r&&(i=i||[]).push("style",r);var u=i;(t.updateQueue=u)&&(t.flags|=4)}},Ms=function(e,t,r,n){r!==n&&(t.flags|=4)};var Qs=!1,Ys=!1,Zs="function"===typeof WeakSet?WeakSet:Set,Js=null;function Xs(e,t){var r=e.ref;if(null!==r)if("function"===typeof r)try{r(null)}catch(n){Nc(e,t,n)}else r.current=null}function el(e,t,r){try{r()}catch(n){Nc(e,t,n)}}var tl=!1;function rl(e,t,r){var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var o=n=n.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,void 0!==a&&el(t,r,a)}o=o.next}while(o!==n)}}function nl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function ol(e){var t=e.ref;if(null!==t){var r=e.stateNode;e.tag,e=r,"function"===typeof t?t(e):t.current=e}}function al(e){var t=e.alternate;null!==t&&(e.alternate=null,al(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[po],delete t[ho],delete t[go],delete t[bo],delete t[yo])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function il(e){return 5===e.tag||3===e.tag||4===e.tag}function sl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||il(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?8===r.nodeType?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(8===r.nodeType?(t=r.parentNode).insertBefore(e,r):(t=r).appendChild(e),null!==(r=r._reactRootContainer)&&void 0!==r||null!==t.onclick||(t.onclick=Xn));else if(4!==n&&null!==(e=e.child))for(ll(e,t,r),e=e.sibling;null!==e;)ll(e,t,r),e=e.sibling}function cl(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(4!==n&&null!==(e=e.child))for(cl(e,t,r),e=e.sibling;null!==e;)cl(e,t,r),e=e.sibling}var ul=null,dl=!1;function fl(e,t,r){for(r=r.child;null!==r;)pl(e,t,r),r=r.sibling}function pl(e,t,r){if(at&&"function"===typeof at.onCommitFiberUnmount)try{at.onCommitFiberUnmount(ot,r)}catch(s){}switch(r.tag){case 5:Ys||Xs(r,t);case 6:var n=ul,o=dl;ul=null,fl(e,t,r),dl=o,null!==(ul=n)&&(dl?(e=ul,r=r.stateNode,8===e.nodeType?e.parentNode.removeChild(r):e.removeChild(r)):ul.removeChild(r.stateNode));break;case 18:null!==ul&&(dl?(e=ul,r=r.stateNode,8===e.nodeType?lo(e.parentNode,r):1===e.nodeType&&lo(e,r),qt(e)):lo(ul,r.stateNode));break;case 4:n=ul,o=dl,ul=r.stateNode.containerInfo,dl=!0,fl(e,t,r),ul=n,dl=o;break;case 0:case 11:case 14:case 15:if(!Ys&&(null!==(n=r.updateQueue)&&null!==(n=n.lastEffect))){o=n=n.next;do{var a=o,i=a.destroy;a=a.tag,void 0!==i&&(0!==(2&a)||0!==(4&a))&&el(r,t,i),o=o.next}while(o!==n)}fl(e,t,r);break;case 1:if(!Ys&&(Xs(r,t),"function"===typeof(n=r.stateNode).componentWillUnmount))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){Nc(r,t,s)}fl(e,t,r);break;case 21:fl(e,t,r);break;case 22:1&r.mode?(Ys=(n=Ys)||null!==r.memoizedState,fl(e,t,r),Ys=n):fl(e,t,r);break;default:fl(e,t,r)}}function hl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var r=e.stateNode;null===r&&(r=e.stateNode=new Zs),t.forEach((function(t){var n=Ac.bind(null,e,t);r.has(t)||(r.add(t),t.then(n,n))}))}}function ml(e,t){var r=t.deletions;if(null!==r)for(var n=0;n<r.length;n++){var o=r[n];try{var i=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:ul=l.stateNode,dl=!1;break e;case 3:case 4:ul=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===ul)throw Error(a(160));pl(i,s,o),ul=null,dl=!1;var c=o.alternate;null!==c&&(c.return=null),o.return=null}catch(u){Nc(o,t,u)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gl(t,e),t=t.sibling}function gl(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ml(t,e),bl(e),4&n){try{rl(3,e,e.return),nl(3,e)}catch(g){Nc(e,e.return,g)}try{rl(5,e,e.return)}catch(g){Nc(e,e.return,g)}}break;case 1:ml(t,e),bl(e),512&n&&null!==r&&Xs(r,r.return);break;case 5:if(ml(t,e),bl(e),512&n&&null!==r&&Xs(r,r.return),32&e.flags){var o=e.stateNode;try{fe(o,"")}catch(g){Nc(e,e.return,g)}}if(4&n&&null!=(o=e.stateNode)){var i=e.memoizedProps,s=null!==r?r.memoizedProps:i,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===i.type&&null!=i.name&&Z(o,i),xe(l,s);var u=xe(l,i);for(s=0;s<c.length;s+=2){var d=c[s],f=c[s+1];"style"===d?ge(o,f):"dangerouslySetInnerHTML"===d?de(o,f):"children"===d?fe(o,f):x(o,d,f,u)}switch(l){case"input":J(o,i);break;case"textarea":ae(o,i);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var h=i.value;null!=h?re(o,!!i.multiple,h,!1):p!==!!i.multiple&&(null!=i.defaultValue?re(o,!!i.multiple,i.defaultValue,!0):re(o,!!i.multiple,i.multiple?[]:"",!1))}o[ho]=i}catch(g){Nc(e,e.return,g)}}break;case 6:if(ml(t,e),bl(e),4&n){if(null===e.stateNode)throw Error(a(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(g){Nc(e,e.return,g)}}break;case 3:if(ml(t,e),bl(e),4&n&&null!==r&&r.memoizedState.isDehydrated)try{qt(t.containerInfo)}catch(g){Nc(e,e.return,g)}break;case 4:default:ml(t,e),bl(e);break;case 13:ml(t,e),bl(e),8192&(o=e.child).flags&&(i=null!==o.memoizedState,o.stateNode.isHidden=i,!i||null!==o.alternate&&null!==o.alternate.memoizedState||(Fl=Ze())),4&n&&hl(e);break;case 22:if(d=null!==r&&null!==r.memoizedState,1&e.mode?(Ys=(u=Ys)||d,ml(t,e),Ys=u):ml(t,e),bl(e),8192&n){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&0!==(1&e.mode))for(Js=e,d=e.child;null!==d;){for(f=Js=d;null!==Js;){switch(h=(p=Js).child,p.tag){case 0:case 11:case 14:case 15:rl(4,p,p.return);break;case 1:Xs(p,p.return);var m=p.stateNode;if("function"===typeof m.componentWillUnmount){n=p,r=p.return;try{t=n,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(g){Nc(n,r,g)}}break;case 5:Xs(p,p.return);break;case 22:if(null!==p.memoizedState){wl(f);continue}}null!==h?(h.return=p,Js=h):wl(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{o=f.stateNode,u?"function"===typeof(i=o.style).setProperty?i.setProperty("display","none","important"):i.display="none":(l=f.stateNode,s=void 0!==(c=f.memoizedProps.style)&&null!==c&&c.hasOwnProperty("display")?c.display:null,l.style.display=me("display",s))}catch(g){Nc(e,e.return,g)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(g){Nc(e,e.return,g)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:ml(t,e),bl(e),4&n&&hl(e);case 21:}}function bl(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(il(r)){var n=r;break e}r=r.return}throw Error(a(160))}switch(n.tag){case 5:var o=n.stateNode;32&n.flags&&(fe(o,""),n.flags&=-33),cl(e,sl(e),o);break;case 3:case 4:var i=n.stateNode.containerInfo;ll(e,sl(e),i);break;default:throw Error(a(161))}}catch(s){Nc(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yl(e,t,r){Js=e,xl(e,t,r)}function xl(e,t,r){for(var n=0!==(1&e.mode);null!==Js;){var o=Js,a=o.child;if(22===o.tag&&n){var i=null!==o.memoizedState||Qs;if(!i){var s=o.alternate,l=null!==s&&null!==s.memoizedState||Ys;s=Qs;var c=Ys;if(Qs=i,(Ys=l)&&!c)for(Js=o;null!==Js;)l=(i=Js).child,22===i.tag&&null!==i.memoizedState?kl(o):null!==l?(l.return=i,Js=l):kl(o);for(;null!==a;)Js=a,xl(a,t,r),a=a.sibling;Js=o,Qs=s,Ys=c}vl(e)}else 0!==(8772&o.subtreeFlags)&&null!==a?(a.return=o,Js=a):vl(e)}}function vl(e){for(;null!==Js;){var t=Js;if(0!==(8772&t.flags)){var r=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Ys||nl(5,t);break;case 1:var n=t.stateNode;if(4&t.flags&&!Ys)if(null===r)n.componentDidMount();else{var o=t.elementType===t.type?r.memoizedProps:rs(t.type,r.memoizedProps);n.componentDidUpdate(o,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&Ua(t,i,n);break;case 3:var s=t.updateQueue;if(null!==s){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}Ua(t,s,r)}break;case 5:var l=t.stateNode;if(null===r&&4&t.flags){r=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&r.focus();break;case"img":c.src&&(r.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&qt(f)}}}break;default:throw Error(a(163))}Ys||512&t.flags&&ol(t)}catch(p){Nc(t,t.return,p)}}if(t===e){Js=null;break}if(null!==(r=t.sibling)){r.return=t.return,Js=r;break}Js=t.return}}function wl(e){for(;null!==Js;){var t=Js;if(t===e){Js=null;break}var r=t.sibling;if(null!==r){r.return=t.return,Js=r;break}Js=t.return}}function kl(e){for(;null!==Js;){var t=Js;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{nl(4,t)}catch(l){Nc(t,r,l)}break;case 1:var n=t.stateNode;if("function"===typeof n.componentDidMount){var o=t.return;try{n.componentDidMount()}catch(l){Nc(t,o,l)}}var a=t.return;try{ol(t)}catch(l){Nc(t,a,l)}break;case 5:var i=t.return;try{ol(t)}catch(l){Nc(t,i,l)}}}catch(l){Nc(t,t.return,l)}if(t===e){Js=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Js=s;break}Js=t.return}}var jl,Nl=Math.ceil,Cl=v.ReactCurrentDispatcher,Sl=v.ReactCurrentOwner,El=v.ReactCurrentBatchConfig,Al=0,Ol=null,$l=null,Pl=0,Tl=0,Il=Co(0),Ml=0,Rl=null,Ll=0,_l=0,Dl=0,Bl=null,zl=null,Fl=0,ql=1/0,Hl=null,Ul=!1,Wl=null,Vl=null,Gl=!1,Kl=null,Ql=0,Yl=0,Zl=null,Jl=-1,Xl=0;function ec(){return 0!==(6&Al)?Ze():-1!==Jl?Jl:Jl=Ze()}function tc(e){return 0===(1&e.mode)?1:0!==(2&Al)&&0!==Pl?Pl&-Pl:null!==ga.transition?(0===Xl&&(Xl=mt()),Xl):0!==(e=xt)?e:e=void 0===(e=window.event)?16:Yt(e.type)}function rc(e,t,r,n){if(50<Yl)throw Yl=0,Zl=null,Error(a(185));bt(e,r,n),0!==(2&Al)&&e===Ol||(e===Ol&&(0===(2&Al)&&(_l|=r),4===Ml&&sc(e,Pl)),nc(e,n),1===r&&0===Al&&0===(1&t.mode)&&(ql=Ze()+500,zo&&Ho()))}function nc(e,t){var r=e.callbackNode;!function(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var i=31-it(a),s=1<<i,l=o[i];-1===l?0!==(s&r)&&0===(s&n)||(o[i]=pt(s,t)):l<=t&&(e.expiredLanes|=s),a&=~s}}(e,t);var n=ft(e,e===Ol?Pl:0);if(0===n)null!==r&&Ke(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(null!=r&&Ke(r),1===t)0===e.tag?function(e){zo=!0,qo(e)}(lc.bind(null,e)):qo(lc.bind(null,e)),io((function(){0===(6&Al)&&Ho()})),r=null;else{switch(vt(n)){case 1:r=Xe;break;case 4:r=et;break;case 16:default:r=tt;break;case 536870912:r=nt}r=Oc(r,oc.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function oc(e,t){if(Jl=-1,Xl=0,0!==(6&Al))throw Error(a(327));var r=e.callbackNode;if(kc()&&e.callbackNode!==r)return null;var n=ft(e,e===Ol?Pl:0);if(0===n)return null;if(0!==(30&n)||0!==(n&e.expiredLanes)||t)t=gc(e,n);else{t=n;var o=Al;Al|=2;var i=hc();for(Ol===e&&Pl===t||(Hl=null,ql=Ze()+500,fc(e,t));;)try{yc();break}catch(l){pc(e,l)}Ea(),Cl.current=i,Al=o,null!==$l?t=0:(Ol=null,Pl=0,t=Ml)}if(0!==t){if(2===t&&(0!==(o=ht(e))&&(n=o,t=ac(e,o))),1===t)throw r=Rl,fc(e,0),sc(e,n),nc(e,Ze()),r;if(6===t)sc(e,n);else{if(o=e.current.alternate,0===(30&n)&&!function(e){for(var t=e;;){if(16384&t.flags){var r=t.updateQueue;if(null!==r&&null!==(r=r.stores))for(var n=0;n<r.length;n++){var o=r[n],a=o.getSnapshot;o=o.value;try{if(!sn(a(),o))return!1}catch(s){return!1}}}if(r=t.child,16384&t.subtreeFlags&&null!==r)r.return=t,t=r;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=gc(e,n))&&(0!==(i=ht(e))&&(n=i,t=ac(e,i))),1===t))throw r=Rl,fc(e,0),sc(e,n),nc(e,Ze()),r;switch(e.finishedWork=o,e.finishedLanes=n,t){case 0:case 1:throw Error(a(345));case 2:case 5:wc(e,zl,Hl);break;case 3:if(sc(e,n),(130023424&n)===n&&10<(t=Fl+500-Ze())){if(0!==ft(e,0))break;if(((o=e.suspendedLanes)&n)!==n){ec(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=no(wc.bind(null,e,zl,Hl),t);break}wc(e,zl,Hl);break;case 4:if(sc(e,n),(4194240&n)===n)break;for(t=e.eventTimes,o=-1;0<n;){var s=31-it(n);i=1<<s,(s=t[s])>o&&(o=s),n&=~i}if(n=o,10<(n=(120>(n=Ze()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Nl(n/1960))-n)){e.timeoutHandle=no(wc.bind(null,e,zl,Hl),n);break}wc(e,zl,Hl);break;default:throw Error(a(329))}}}return nc(e,Ze()),e.callbackNode===r?oc.bind(null,e):null}function ac(e,t){var r=Bl;return e.current.memoizedState.isDehydrated&&(fc(e,t).flags|=256),2!==(e=gc(e,t))&&(t=zl,zl=r,null!==t&&ic(t)),e}function ic(e){null===zl?zl=e:zl.push.apply(zl,e)}function sc(e,t){for(t&=~Dl,t&=~_l,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-it(t),n=1<<r;e[r]=-1,t&=~n}}function lc(e){if(0!==(6&Al))throw Error(a(327));kc();var t=ft(e,0);if(0===(1&t))return nc(e,Ze()),null;var r=gc(e,t);if(0!==e.tag&&2===r){var n=ht(e);0!==n&&(t=n,r=ac(e,n))}if(1===r)throw r=Rl,fc(e,0),sc(e,t),nc(e,Ze()),r;if(6===r)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,wc(e,zl,Hl),nc(e,Ze()),null}function cc(e,t){var r=Al;Al|=1;try{return e(t)}finally{0===(Al=r)&&(ql=Ze()+500,zo&&Ho())}}function uc(e){null!==Kl&&0===Kl.tag&&0===(6&Al)&&kc();var t=Al;Al|=1;var r=El.transition,n=xt;try{if(El.transition=null,xt=1,e)return e()}finally{xt=n,El.transition=r,0===(6&(Al=t))&&Ho()}}function dc(){Tl=Il.current,So(Il)}function fc(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(-1!==r&&(e.timeoutHandle=-1,oo(r)),null!==$l)for(r=$l.return;null!==r;){var n=r;switch(ra(n),n.tag){case 1:null!==(n=n.type.childContextTypes)&&void 0!==n&&Mo();break;case 3:Za(),So($o),So(Oo),ni();break;case 5:Xa(n);break;case 4:Za();break;case 13:case 19:So(ei);break;case 10:Aa(n.type._context);break;case 22:case 23:dc()}r=r.return}if(Ol=e,$l=e=Ic(e.current,null),Pl=Tl=t,Ml=0,Rl=null,Dl=_l=Ll=0,zl=Bl=null,null!==Ta){for(t=0;t<Ta.length;t++)if(null!==(n=(r=Ta[t]).interleaved)){r.interleaved=null;var o=n.next,a=r.pending;if(null!==a){var i=a.next;a.next=o,n.next=i}r.pending=n}Ta=null}return e}function pc(e,t){for(;;){var r=$l;try{if(Ea(),oi.current=Ji,ui){for(var n=si.memoizedState;null!==n;){var o=n.queue;null!==o&&(o.pending=null),n=n.next}ui=!1}if(ii=0,ci=li=si=null,di=!1,fi=0,Sl.current=null,null===r||null===r.return){Ml=1,Rl=t,$l=null;break}e:{var i=e,s=r.return,l=r,c=t;if(t=Pl,l.flags|=32768,null!==c&&"object"===typeof c&&"function"===typeof c.then){var u=c,d=l,f=d.tag;if(0===(1&d.mode)&&(0===f||11===f||15===f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=gs(s);if(null!==h){h.flags&=-257,bs(h,s,l,0,t),1&h.mode&&ms(i,u,t),c=u;var m=(t=h).updateQueue;if(null===m){var g=new Set;g.add(c),t.updateQueue=g}else m.add(c);break e}if(0===(1&t)){ms(i,u,t),mc();break e}c=Error(a(426))}else if(aa&&1&l.mode){var b=gs(s);if(null!==b){0===(65536&b.flags)&&(b.flags|=256),bs(b,s,l,0,t),ma(cs(c,l));break e}}i=c=cs(c,l),4!==Ml&&(Ml=2),null===Bl?Bl=[i]:Bl.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,qa(i,ps(0,c,t));break e;case 1:l=c;var y=i.type,x=i.stateNode;if(0===(128&i.flags)&&("function"===typeof y.getDerivedStateFromError||null!==x&&"function"===typeof x.componentDidCatch&&(null===Vl||!Vl.has(x)))){i.flags|=65536,t&=-t,i.lanes|=t,qa(i,hs(i,l,t));break e}}i=i.return}while(null!==i)}vc(r)}catch(v){t=v,$l===r&&null!==r&&($l=r=r.return);continue}break}}function hc(){var e=Cl.current;return Cl.current=Ji,null===e?Ji:e}function mc(){0!==Ml&&3!==Ml&&2!==Ml||(Ml=4),null===Ol||0===(268435455&Ll)&&0===(268435455&_l)||sc(Ol,Pl)}function gc(e,t){var r=Al;Al|=2;var n=hc();for(Ol===e&&Pl===t||(Hl=null,fc(e,t));;)try{bc();break}catch(o){pc(e,o)}if(Ea(),Al=r,Cl.current=n,null!==$l)throw Error(a(261));return Ol=null,Pl=0,Ml}function bc(){for(;null!==$l;)xc($l)}function yc(){for(;null!==$l&&!Qe();)xc($l)}function xc(e){var t=jl(e.alternate,e,Tl);e.memoizedProps=e.pendingProps,null===t?vc(e):$l=t,Sl.current=null}function vc(e){var t=e;do{var r=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(r=Gs(r,t,Tl)))return void($l=r)}else{if(null!==(r=Ks(r,t)))return r.flags&=32767,void($l=r);if(null===e)return Ml=6,void($l=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void($l=t);$l=t=e}while(null!==t);0===Ml&&(Ml=5)}function wc(e,t,r){var n=xt,o=El.transition;try{El.transition=null,xt=1,function(e,t,r,n){do{kc()}while(null!==Kl);if(0!==(6&Al))throw Error(a(327));r=e.finishedWork;var o=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(a(177));e.callbackNode=null,e.callbackPriority=0;var i=r.lanes|r.childLanes;if(function(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var o=31-it(r),a=1<<o;t[o]=0,n[o]=-1,e[o]=-1,r&=~a}}(e,i),e===Ol&&($l=Ol=null,Pl=0),0===(2064&r.subtreeFlags)&&0===(2064&r.flags)||Gl||(Gl=!0,Oc(tt,(function(){return kc(),null}))),i=0!==(15990&r.flags),0!==(15990&r.subtreeFlags)||i){i=El.transition,El.transition=null;var s=xt;xt=1;var l=Al;Al|=4,Sl.current=null,function(e,t){if(eo=Ut,pn(e=fn())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var n=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(n&&0!==n.rangeCount){r=n.anchorNode;var o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch(w){r=null;break e}var s=0,l=-1,c=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==r||0!==o&&3!==f.nodeType||(l=s+o),f!==i||0!==n&&3!==f.nodeType||(c=s+n),3===f.nodeType&&(s+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===r&&++u===o&&(l=s),p===i&&++d===n&&(c=s),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}r=-1===l||-1===c?null:{start:l,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(to={focusedElem:e,selectionRange:r},Ut=!1,Js=t;null!==Js;)if(e=(t=Js).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Js=e;else for(;null!==Js;){t=Js;try{var m=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,b=m.memoizedState,y=t.stateNode,x=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:rs(t.type,g),b);y.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var v=t.stateNode.containerInfo;1===v.nodeType?v.textContent="":9===v.nodeType&&v.documentElement&&v.removeChild(v.documentElement);break;default:throw Error(a(163))}}catch(w){Nc(t,t.return,w)}if(null!==(e=t.sibling)){e.return=t.return,Js=e;break}Js=t.return}m=tl,tl=!1}(e,r),gl(r,e),hn(to),Ut=!!eo,to=eo=null,e.current=r,yl(r,e,o),Ye(),Al=l,xt=s,El.transition=i}else e.current=r;if(Gl&&(Gl=!1,Kl=e,Ql=o),i=e.pendingLanes,0===i&&(Vl=null),function(e){if(at&&"function"===typeof at.onCommitFiberRoot)try{at.onCommitFiberRoot(ot,e,void 0,128===(128&e.current.flags))}catch(t){}}(r.stateNode),nc(e,Ze()),null!==t)for(n=e.onRecoverableError,r=0;r<t.length;r++)o=t[r],n(o.value,{componentStack:o.stack,digest:o.digest});if(Ul)throw Ul=!1,e=Wl,Wl=null,e;0!==(1&Ql)&&0!==e.tag&&kc(),i=e.pendingLanes,0!==(1&i)?e===Zl?Yl++:(Yl=0,Zl=e):Yl=0,Ho()}(e,t,r,n)}finally{El.transition=o,xt=n}return null}function kc(){if(null!==Kl){var e=vt(Ql),t=El.transition,r=xt;try{if(El.transition=null,xt=16>e?16:e,null===Kl)var n=!1;else{if(e=Kl,Kl=null,Ql=0,0!==(6&Al))throw Error(a(331));var o=Al;for(Al|=4,Js=e.current;null!==Js;){var i=Js,s=i.child;if(0!==(16&Js.flags)){var l=i.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Js=u;null!==Js;){var d=Js;switch(d.tag){case 0:case 11:case 15:rl(8,d,i)}var f=d.child;if(null!==f)f.return=d,Js=f;else for(;null!==Js;){var p=(d=Js).sibling,h=d.return;if(al(d),d===u){Js=null;break}if(null!==p){p.return=h,Js=p;break}Js=h}}}var m=i.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var b=g.sibling;g.sibling=null,g=b}while(null!==g)}}Js=i}}if(0!==(2064&i.subtreeFlags)&&null!==s)s.return=i,Js=s;else e:for(;null!==Js;){if(0!==(2048&(i=Js).flags))switch(i.tag){case 0:case 11:case 15:rl(9,i,i.return)}var y=i.sibling;if(null!==y){y.return=i.return,Js=y;break e}Js=i.return}}var x=e.current;for(Js=x;null!==Js;){var v=(s=Js).child;if(0!==(2064&s.subtreeFlags)&&null!==v)v.return=s,Js=v;else e:for(s=x;null!==Js;){if(0!==(2048&(l=Js).flags))try{switch(l.tag){case 0:case 11:case 15:nl(9,l)}}catch(k){Nc(l,l.return,k)}if(l===s){Js=null;break e}var w=l.sibling;if(null!==w){w.return=l.return,Js=w;break e}Js=l.return}}if(Al=o,Ho(),at&&"function"===typeof at.onPostCommitFiberRoot)try{at.onPostCommitFiberRoot(ot,e)}catch(k){}n=!0}return n}finally{xt=r,El.transition=t}}return!1}function jc(e,t,r){e=za(e,t=ps(0,t=cs(r,t),1),1),t=ec(),null!==e&&(bt(e,1,t),nc(e,t))}function Nc(e,t,r){if(3===e.tag)jc(e,e,r);else for(;null!==t;){if(3===t.tag){jc(t,e,r);break}if(1===t.tag){var n=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof n.componentDidCatch&&(null===Vl||!Vl.has(n))){t=za(t,e=hs(t,e=cs(r,e),1),1),e=ec(),null!==t&&(bt(t,1,e),nc(t,e));break}}t=t.return}}function Cc(e,t,r){var n=e.pingCache;null!==n&&n.delete(t),t=ec(),e.pingedLanes|=e.suspendedLanes&r,Ol===e&&(Pl&r)===r&&(4===Ml||3===Ml&&(130023424&Pl)===Pl&&500>Ze()-Fl?fc(e,0):Dl|=r),nc(e,t)}function Sc(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ut,0===(130023424&(ut<<=1))&&(ut=4194304)));var r=ec();null!==(e=Ra(e,t))&&(bt(e,t,r),nc(e,r))}function Ec(e){var t=e.memoizedState,r=0;null!==t&&(r=t.retryLane),Sc(e,r)}function Ac(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;null!==o&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(a(314))}null!==n&&n.delete(t),Sc(e,r)}function Oc(e,t){return Ge(e,t)}function $c(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Pc(e,t,r,n){return new $c(e,t,r,n)}function Tc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ic(e,t){var r=e.alternate;return null===r?((r=Pc(e.tag,t,e.key,e.mode)).elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=14680064&e.flags,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Mc(e,t,r,n,o,i){var s=2;if(n=e,"function"===typeof e)Tc(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case j:return Rc(r.children,o,i,t);case N:s=8,o|=8;break;case C:return(e=Pc(12,r,t,2|o)).elementType=C,e.lanes=i,e;case O:return(e=Pc(13,r,t,o)).elementType=O,e.lanes=i,e;case $:return(e=Pc(19,r,t,o)).elementType=$,e.lanes=i,e;case I:return Lc(r,o,i,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case S:s=10;break e;case E:s=9;break e;case A:s=11;break e;case P:s=14;break e;case T:s=16,n=null;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Pc(s,r,t,o)).elementType=e,t.type=n,t.lanes=i,t}function Rc(e,t,r,n){return(e=Pc(7,e,n,t)).lanes=r,e}function Lc(e,t,r,n){return(e=Pc(22,e,n,t)).elementType=I,e.lanes=r,e.stateNode={isHidden:!1},e}function _c(e,t,r){return(e=Pc(6,e,null,t)).lanes=r,e}function Dc(e,t,r){return(t=Pc(4,null!==e.children?e.children:[],e.key,t)).lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bc(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function zc(e,t,r,n,o,a,i,s,l){return e=new Bc(e,t,r,s,l),1===t?(t=1,!0===a&&(t|=8)):t=0,a=Pc(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},_a(a),e}function Fc(e){if(!e)return Ao;e:{if(qe(e=e._reactInternals)!==e||1!==e.tag)throw Error(a(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Io(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(a(171))}if(1===e.tag){var r=e.type;if(Io(r))return Lo(e,r,t)}return t}function qc(e,t,r,n,o,a,i,s,l){return(e=zc(r,n,!0,e,0,a,0,s,l)).context=Fc(null),r=e.current,(a=Ba(n=ec(),o=tc(r))).callback=void 0!==t&&null!==t?t:null,za(r,a,o),e.current.lanes=o,bt(e,o,n),nc(e,n),e}function Hc(e,t,r,n){var o=t.current,a=ec(),i=tc(o);return r=Fc(r),null===t.context?t.context=r:t.pendingContext=r,(t=Ba(a,i)).payload={element:e},null!==(n=void 0===n?null:n)&&(t.callback=n),null!==(e=za(o,t,i))&&(rc(e,o,i,a),Fa(e,o,i)),i}function Uc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Wc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var r=e.retryLane;e.retryLane=0!==r&&r<t?r:t}}function Vc(e,t){Wc(e,t),(e=e.alternate)&&Wc(e,t)}jl=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||$o.current)xs=!0;else{if(0===(e.lanes&r)&&0===(128&t.flags))return xs=!1,function(e,t,r){switch(t.tag){case 3:Os(t),ha();break;case 5:Ja(t);break;case 1:Io(t.type)&&_o(t);break;case 4:Ya(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,o=t.memoizedProps.value;Eo(ja,n._currentValue),n._currentValue=o;break;case 13:if(null!==(n=t.memoizedState))return null!==n.dehydrated?(Eo(ei,1&ei.current),t.flags|=128,null):0!==(r&t.child.childLanes)?_s(e,t,r):(Eo(ei,1&ei.current),null!==(e=Us(e,t,r))?e.sibling:null);Eo(ei,1&ei.current);break;case 19:if(n=0!==(r&t.childLanes),0!==(128&e.flags)){if(n)return qs(e,t,r);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Eo(ei,ei.current),n)break;return null;case 22:case 23:return t.lanes=0,Ns(e,t,r)}return Us(e,t,r)}(e,t,r);xs=0!==(131072&e.flags)}else xs=!1,aa&&0!==(1048576&t.flags)&&ea(t,Go,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Hs(e,t),e=t.pendingProps;var o=To(t,Oo.current);$a(t,r),o=gi(null,t,n,e,o,r);var i=bi();return t.flags|=1,"object"===typeof o&&null!==o&&"function"===typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Io(n)?(i=!0,_o(t)):i=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,_a(t),o.updater=os,t.stateNode=o,o._reactInternals=t,ls(t,n,e,r),t=As(null,t,n,!0,i,r)):(t.tag=0,aa&&i&&ta(t),vs(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Hs(e,t),e=t.pendingProps,n=(o=n._init)(n._payload),t.type=n,o=t.tag=function(e){if("function"===typeof e)return Tc(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===A)return 11;if(e===P)return 14}return 2}(n),e=rs(n,e),o){case 0:t=Ss(null,t,n,e,r);break e;case 1:t=Es(null,t,n,e,r);break e;case 11:t=ws(null,t,n,e,r);break e;case 14:t=ks(null,t,n,rs(n.type,e),r);break e}throw Error(a(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,Ss(e,t,n,o=t.elementType===n?o:rs(n,o),r);case 1:return n=t.type,o=t.pendingProps,Es(e,t,n,o=t.elementType===n?o:rs(n,o),r);case 3:e:{if(Os(t),null===e)throw Error(a(387));n=t.pendingProps,o=(i=t.memoizedState).element,Da(e,t),Ha(t,n,null,r);var s=t.memoizedState;if(n=s.element,i.isDehydrated){if(i={element:n,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=$s(e,t,n,r,o=cs(Error(a(423)),t));break e}if(n!==o){t=$s(e,t,n,r,o=cs(Error(a(424)),t));break e}for(oa=co(t.stateNode.containerInfo.firstChild),na=t,aa=!0,ia=null,r=ka(t,null,n,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(ha(),n===o){t=Us(e,t,r);break e}vs(e,t,n,r)}t=t.child}return t;case 5:return Ja(t),null===e&&ua(t),n=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,s=o.children,ro(n,o)?s=null:null!==i&&ro(n,i)&&(t.flags|=32),Cs(e,t),vs(e,t,s,r),t.child;case 6:return null===e&&ua(t),null;case 13:return _s(e,t,r);case 4:return Ya(t,t.stateNode.containerInfo),n=t.pendingProps,null===e?t.child=wa(t,null,n,r):vs(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,ws(e,t,n,o=t.elementType===n?o:rs(n,o),r);case 7:return vs(e,t,t.pendingProps,r),t.child;case 8:case 12:return vs(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,Eo(ja,n._currentValue),n._currentValue=s,null!==i)if(sn(i.value,s)){if(i.children===o.children&&!$o.current){t=Us(e,t,r);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var l=i.dependencies;if(null!==l){s=i.child;for(var c=l.firstContext;null!==c;){if(c.context===n){if(1===i.tag){(c=Ba(-1,r&-r)).tag=2;var u=i.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}i.lanes|=r,null!==(c=i.alternate)&&(c.lanes|=r),Oa(i.return,r,t),l.lanes|=r;break}c=c.next}}else if(10===i.tag)s=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(s=i.return))throw Error(a(341));s.lanes|=r,null!==(l=s.alternate)&&(l.lanes|=r),Oa(s,r,t),s=i.sibling}else s=i.child;if(null!==s)s.return=i;else for(s=i;null!==s;){if(s===t){s=null;break}if(null!==(i=s.sibling)){i.return=s.return,s=i;break}s=s.return}i=s}vs(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,$a(t,r),n=n(o=Pa(o)),t.flags|=1,vs(e,t,n,r),t.child;case 14:return o=rs(n=t.type,t.pendingProps),ks(e,t,n,o=rs(n.type,o),r);case 15:return js(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:rs(n,o),Hs(e,t),t.tag=1,Io(n)?(e=!0,_o(t)):e=!1,$a(t,r),is(t,n,o),ls(t,n,o,r),As(null,t,n,!0,e,r);case 19:return qs(e,t,r);case 22:return Ns(e,t,r)}throw Error(a(156,t.tag))};var Gc="function"===typeof reportError?reportError:function(e){console.error(e)};function Kc(e){this._internalRoot=e}function Qc(e){this._internalRoot=e}function Yc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Zc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Jc(){}function Xc(e,t,r,n,o){var a=r._reactRootContainer;if(a){var i=a;if("function"===typeof o){var s=o;o=function(){var e=Uc(i);s.call(e)}}Hc(t,i,e,o)}else i=function(e,t,r,n,o){if(o){if("function"===typeof n){var a=n;n=function(){var e=Uc(i);a.call(e)}}var i=qc(t,n,e,0,null,!1,0,"",Jc);return e._reactRootContainer=i,e[mo]=i.current,qn(8===e.nodeType?e.parentNode:e),uc(),i}for(;o=e.lastChild;)e.removeChild(o);if("function"===typeof n){var s=n;n=function(){var e=Uc(l);s.call(e)}}var l=zc(e,0,!1,null,0,!1,0,"",Jc);return e._reactRootContainer=l,e[mo]=l.current,qn(8===e.nodeType?e.parentNode:e),uc((function(){Hc(t,l,r,n)})),l}(r,t,e,o,n);return Uc(i)}Qc.prototype.render=Kc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(a(409));Hc(e,t,null,null)},Qc.prototype.unmount=Kc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;uc((function(){Hc(null,e,null,null)})),t[mo]=null}},Qc.prototype.unstable_scheduleHydration=function(e){if(e){var t=Nt();e={blockedOn:null,target:e,priority:t};for(var r=0;r<It.length&&0!==t&&t<It[r].priority;r++);It.splice(r,0,e),0===r&&_t(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=dt(t.pendingLanes);0!==r&&(yt(t,1|r),nc(t,Ze()),0===(6&Al)&&(ql=Ze()+500,Ho()))}break;case 13:uc((function(){var t=Ra(e,1);if(null!==t){var r=ec();rc(t,e,1,r)}})),Vc(e,1)}},kt=function(e){if(13===e.tag){var t=Ra(e,134217728);if(null!==t)rc(t,e,134217728,ec());Vc(e,134217728)}},jt=function(e){if(13===e.tag){var t=tc(e),r=Ra(e,t);if(null!==r)rc(r,e,t,ec());Vc(e,t)}},Nt=function(){return xt},Ct=function(e,t){var r=xt;try{return xt=e,t()}finally{xt=r}},ke=function(e,t,r){switch(t){case"input":if(J(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var o=ko(n);if(!o)throw Error(a(90));G(n),J(n,o)}}}break;case"textarea":ae(e,r);break;case"select":null!=(t=r.value)&&re(e,!!r.multiple,t,!1)}},Ae=cc,Oe=uc;var eu={usingClientEntryPoint:!1,Events:[vo,wo,ko,Se,Ee,cc]},tu={findFiberByHostInstance:xo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},ru={bundleType:tu.bundleType,version:tu.version,rendererPackageName:tu.rendererPackageName,rendererConfig:tu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:v.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=We(e))?null:e.stateNode},findFiberByHostInstance:tu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var nu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!nu.isDisabled&&nu.supportsFiber)try{ot=nu.inject(ru),at=nu}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=eu,t.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Yc(t))throw Error(a(200));return function(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:k,key:null==n?null:""+n,children:e,containerInfo:t,implementation:r}}(e,t,null,r)},t.createRoot=function(e,t){if(!Yc(e))throw Error(a(299));var r=!1,n="",o=Gc;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(n=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=zc(e,1,!1,null,0,r,0,n,o),e[mo]=t.current,qn(8===e.nodeType?e.parentNode:e),new Kc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(a(188));throw e=Object.keys(e).join(","),Error(a(268,e))}return e=null===(e=We(t))?null:e.stateNode},t.flushSync=function(e){return uc(e)},t.hydrate=function(e,t,r){if(!Zc(t))throw Error(a(200));return Xc(null,e,t,!0,r)},t.hydrateRoot=function(e,t,r){if(!Yc(e))throw Error(a(405));var n=null!=r&&r.hydratedSources||null,o=!1,i="",s=Gc;if(null!==r&&void 0!==r&&(!0===r.unstable_strictMode&&(o=!0),void 0!==r.identifierPrefix&&(i=r.identifierPrefix),void 0!==r.onRecoverableError&&(s=r.onRecoverableError)),t=qc(t,null,e,1,null!=r?r:null,o,0,i,s),e[mo]=t.current,qn(e),n)for(e=0;e<n.length;e++)o=(o=(r=n[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,o]:t.mutableSourceEagerHydrationData.push(r,o);return new Qc(t)},t.render=function(e,t,r){if(!Zc(t))throw Error(a(200));return Xc(null,e,t,!1,r)},t.unmountComponentAtNode=function(e){if(!Zc(e))throw Error(a(40));return!!e._reactRootContainer&&(uc((function(){Xc(null,null,e,!1,(function(){e._reactRootContainer=null,e[mo]=null}))})),!0)},t.unstable_batchedUpdates=cc,t.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Zc(r))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return Xc(e,t,r,!1,n)},t.version="18.3.1-next-f1338f8080-20240426"},4391:(e,t,r)=>{"use strict";var n=r(7950);t.createRoot=n.createRoot,t.hydrateRoot=n.hydrateRoot},7950:(e,t,r)=>{"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=r(2730)},2488:(e,t,r)=>{e.exports=r(5604)},2400:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(5043);t.LeftArrow=function(e){var t=e.customLeftArrow,r=e.getState,o=e.previous,a=e.disabled,i=e.rtl;if(t)return n.cloneElement(t,{onClick:function(){return o()},carouselState:r(),disabled:a,rtl:i});var s=i?"rtl":"";return n.createElement("button",{"aria-label":"Go to previous slide",className:"react-multiple-carousel__arrow react-multiple-carousel__arrow--left "+s,onClick:function(){return o()},type:"button",disabled:a})};t.RightArrow=function(e){var t=e.customRightArrow,r=e.getState,o=e.next,a=e.disabled,i=e.rtl;if(t)return n.cloneElement(t,{onClick:function(){return o()},carouselState:r(),disabled:a,rtl:i});var s=i?"rtl":"";return n.createElement("button",{"aria-label":"Go to next slide",className:"react-multiple-carousel__arrow react-multiple-carousel__arrow--right "+s,onClick:function(){return o()},type:"button",disabled:a})}},364:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=r(5043),a=r(694),i=r(257),s=r(6406),l=r(2400),c=r(5834),u=r(7673),d=400,f="transform 400ms ease-in-out",p=function(e){function t(t){var r=e.call(this,t)||this;return r.containerRef=o.createRef(),r.listRef=o.createRef(),r.state={itemWidth:0,slidesToShow:0,currentSlide:0,totalItems:o.Children.count(t.children),deviceType:"",domLoaded:!1,transform:0,containerWidth:0},r.onResize=r.onResize.bind(r),r.handleDown=r.handleDown.bind(r),r.handleMove=r.handleMove.bind(r),r.handleOut=r.handleOut.bind(r),r.onKeyUp=r.onKeyUp.bind(r),r.handleEnter=r.handleEnter.bind(r),r.setIsInThrottle=r.setIsInThrottle.bind(r),r.next=a.throttle(r.next.bind(r),t.transitionDuration||d,r.setIsInThrottle),r.previous=a.throttle(r.previous.bind(r),t.transitionDuration||d,r.setIsInThrottle),r.goToSlide=a.throttle(r.goToSlide.bind(r),t.transitionDuration||d,r.setIsInThrottle),r.onMove=!1,r.initialX=0,r.lastX=0,r.isAnimationAllowed=!1,r.direction="",r.initialY=0,r.isInThrottle=!1,r.transformPlaceHolder=0,r}return n(t,e),t.prototype.resetTotalItems=function(){var e=this,t=o.Children.count(this.props.children),r=a.notEnoughChildren(this.state)?0:Math.max(0,Math.min(this.state.currentSlide,t));this.setState({totalItems:t,currentSlide:r},(function(){e.setContainerAndItemWidth(e.state.slidesToShow,!0)}))},t.prototype.setIsInThrottle=function(e){void 0===e&&(e=!1),this.isInThrottle=e},t.prototype.setTransformDirectly=function(e,t){var r=this.props.additionalTransfrom;this.transformPlaceHolder=e;var n=u.getTransform(this.state,this.props,this.transformPlaceHolder);this.listRef&&this.listRef.current&&(this.setAnimationDirectly(t),this.listRef.current.style.transform="translate3d("+(n+r)+"px,0,0)")},t.prototype.setAnimationDirectly=function(e){this.listRef&&this.listRef.current&&(this.listRef.current.style.transition=e?this.props.customTransition||f:"none")},t.prototype.componentDidMount=function(){this.setState({domLoaded:!0}),this.setItemsToShow(),window.addEventListener("resize",this.onResize),this.onResize(!0),this.props.keyBoardControl&&window.addEventListener("keyup",this.onKeyUp),this.props.autoPlay&&(this.autoPlay=setInterval(this.next,this.props.autoPlaySpeed))},t.prototype.setClones=function(e,t,r,n){var i=this;void 0===n&&(n=!1),this.isAnimationAllowed=!1;var s=o.Children.toArray(this.props.children),l=a.getInitialSlideInInfiniteMode(e||this.state.slidesToShow,s),c=a.getClones(this.state.slidesToShow,s),u=s.length<this.state.slidesToShow?0:this.state.currentSlide;this.setState({totalItems:c.length,currentSlide:r&&!n?u:l},(function(){i.correctItemsPosition(t||i.state.itemWidth)}))},t.prototype.setItemsToShow=function(e,t){var r=this,n=this.props.responsive;Object.keys(n).forEach((function(o){var a=n[o],i=a.breakpoint,s=a.items,l=i.max,c=i.min,u=[window.innerWidth];window.screen&&window.screen.width&&u.push(window.screen.width);var d=Math.min.apply(Math,u);c<=d&&d<=l&&(r.setState({slidesToShow:s,deviceType:o}),r.setContainerAndItemWidth(s,e,t))}))},t.prototype.setContainerAndItemWidth=function(e,t,r){var n=this;if(this.containerRef&&this.containerRef.current){var o=this.containerRef.current.offsetWidth,i=a.getItemClientSideWidth(this.props,e,o);this.setState({containerWidth:o,itemWidth:i},(function(){n.props.infinite&&n.setClones(e,i,t,r)})),t&&this.correctItemsPosition(i)}},t.prototype.correctItemsPosition=function(e,t,r){t&&(this.isAnimationAllowed=!0),!t&&this.isAnimationAllowed&&(this.isAnimationAllowed=!1);var n=this.state.totalItems<this.state.slidesToShow?0:-e*this.state.currentSlide;r&&this.setTransformDirectly(n,!0),this.setState({transform:n})},t.prototype.onResize=function(e){var t;t=!!this.props.infinite&&("boolean"!=typeof e||!e),this.setItemsToShow(t)},t.prototype.componentDidUpdate=function(e,r){var n=this,o=e.keyBoardControl,i=e.autoPlay,s=e.children,l=r.containerWidth,c=r.domLoaded,u=r.currentSlide;if(this.containerRef&&this.containerRef.current&&this.containerRef.current.offsetWidth!==l&&(this.itemsToShowTimeout&&clearTimeout(this.itemsToShowTimeout),this.itemsToShowTimeout=setTimeout((function(){n.setItemsToShow(!0)}),this.props.transitionDuration||d)),o&&!this.props.keyBoardControl&&window.removeEventListener("keyup",this.onKeyUp),!o&&this.props.keyBoardControl&&window.addEventListener("keyup",this.onKeyUp),i&&!this.props.autoPlay&&this.autoPlay&&(clearInterval(this.autoPlay),this.autoPlay=void 0),i||!this.props.autoPlay||this.autoPlay||(this.autoPlay=setInterval(this.next,this.props.autoPlaySpeed)),s.length!==this.props.children.length?t.clonesTimeout=setTimeout((function(){n.props.infinite?n.setClones(n.state.slidesToShow,n.state.itemWidth,!0,!0):n.resetTotalItems()}),this.props.transitionDuration||d):this.props.infinite&&this.state.currentSlide!==u&&this.correctClonesPosition({domLoaded:c}),this.transformPlaceHolder!==this.state.transform&&(this.transformPlaceHolder=this.state.transform),this.props.autoPlay&&this.props.rewind&&!this.props.infinite&&a.isInRightEnd(this.state)){var f=this.props.transitionDuration||d;t.isInThrottleTimeout=setTimeout((function(){n.setIsInThrottle(!1),n.resetAutoplayInterval(),n.goToSlide(0,void 0,!!n.props.rewindWithAnimation)}),f+this.props.autoPlaySpeed)}},t.prototype.correctClonesPosition=function(e){var r=this,n=e.domLoaded,i=o.Children.toArray(this.props.children),s=a.checkClonesPosition(this.state,i,this.props),l=s.isReachingTheEnd,c=s.isReachingTheStart,u=s.nextSlide,f=s.nextPosition;this.state.domLoaded&&n&&(l||c)&&(this.isAnimationAllowed=!1,t.transformTimeout=setTimeout((function(){r.setState({transform:f,currentSlide:u})}),this.props.transitionDuration||d))},t.prototype.next=function(e){var r=this;void 0===e&&(e=0);var n=this.props,o=n.afterChange,i=n.beforeChange;if(!a.notEnoughChildren(this.state)){var s=a.populateNextSlides(this.state,this.props,e),l=s.nextSlides,c=s.nextPosition,u=this.state.currentSlide;void 0!==l&&void 0!==c&&("function"==typeof i&&i(l,this.getState()),this.isAnimationAllowed=!0,this.props.shouldResetAutoplay&&this.resetAutoplayInterval(),this.setState({transform:c,currentSlide:l},(function(){"function"==typeof o&&(t.afterChangeTimeout=setTimeout((function(){o(u,r.getState())}),r.props.transitionDuration||d))})))}},t.prototype.previous=function(e){var r=this;void 0===e&&(e=0);var n=this.props,o=n.afterChange,i=n.beforeChange;if(!a.notEnoughChildren(this.state)){var s=a.populatePreviousSlides(this.state,this.props,e),l=s.nextSlides,c=s.nextPosition;if(void 0!==l&&void 0!==c){var u=this.state.currentSlide;"function"==typeof i&&i(l,this.getState()),this.isAnimationAllowed=!0,this.props.shouldResetAutoplay&&this.resetAutoplayInterval(),this.setState({transform:c,currentSlide:l},(function(){"function"==typeof o&&(t.afterChangeTimeout2=setTimeout((function(){o(u,r.getState())}),r.props.transitionDuration||d))}))}}},t.prototype.resetAutoplayInterval=function(){this.props.autoPlay&&(clearInterval(this.autoPlay),this.autoPlay=setInterval(this.next,this.props.autoPlaySpeed))},t.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.onResize),this.props.keyBoardControl&&window.removeEventListener("keyup",this.onKeyUp),this.props.autoPlay&&this.autoPlay&&(clearInterval(this.autoPlay),this.autoPlay=void 0),this.itemsToShowTimeout&&clearTimeout(this.itemsToShowTimeout),t.clonesTimeout&&clearTimeout(t.clonesTimeout),t.isInThrottleTimeout&&clearTimeout(t.isInThrottleTimeout),t.transformTimeout&&clearTimeout(t.transformTimeout),t.afterChangeTimeout&&clearTimeout(t.afterChangeTimeout),t.afterChangeTimeout2&&clearTimeout(t.afterChangeTimeout2),t.afterChangeTimeout3&&clearTimeout(t.afterChangeTimeout3)},t.prototype.resetMoveStatus=function(){this.onMove=!1,this.initialX=0,this.lastX=0,this.direction="",this.initialY=0},t.prototype.getCords=function(e){var t=e.clientX,r=e.clientY;return{clientX:u.parsePosition(this.props,t),clientY:u.parsePosition(this.props,r)}},t.prototype.handleDown=function(e){if(!(!i.isMouseMoveEvent(e)&&!this.props.swipeable||i.isMouseMoveEvent(e)&&!this.props.draggable||this.isInThrottle)){var t=this.getCords(i.isMouseMoveEvent(e)?e:e.touches[0]),r=t.clientX,n=t.clientY;this.onMove=!0,this.initialX=r,this.initialY=n,this.lastX=r,this.isAnimationAllowed=!1}},t.prototype.handleMove=function(e){if(!(!i.isMouseMoveEvent(e)&&!this.props.swipeable||i.isMouseMoveEvent(e)&&!this.props.draggable||a.notEnoughChildren(this.state))){var t=this.getCords(i.isMouseMoveEvent(e)?e:e.touches[0]),r=t.clientX,n=t.clientY,o=this.initialX-r,s=this.initialY-n;if(this.onMove){if(!(Math.abs(o)>Math.abs(s)))return;var l=a.populateSlidesOnMouseTouchMove(this.state,this.props,this.initialX,this.lastX,r,this.transformPlaceHolder),c=l.direction,u=l.nextPosition,d=l.canContinue;c&&(this.direction=c,d&&void 0!==u&&this.setTransformDirectly(u)),this.lastX=r}}},t.prototype.handleOut=function(e){this.props.autoPlay&&!this.autoPlay&&(this.autoPlay=setInterval(this.next,this.props.autoPlaySpeed));var t="touchend"===e.type&&!this.props.swipeable,r=("mouseleave"===e.type||"mouseup"===e.type)&&!this.props.draggable;if(!t&&!r&&this.onMove){if(this.setAnimationDirectly(!0),"right"===this.direction)if(this.initialX-this.lastX>=this.props.minimumTouchDrag){var n=Math.round((this.initialX-this.lastX)/this.state.itemWidth);this.next(n)}else this.correctItemsPosition(this.state.itemWidth,!0,!0);"left"===this.direction&&(this.lastX-this.initialX>this.props.minimumTouchDrag?(n=Math.round((this.lastX-this.initialX)/this.state.itemWidth),this.previous(n)):this.correctItemsPosition(this.state.itemWidth,!0,!0)),this.resetMoveStatus()}},t.prototype.isInViewport=function(e){var t=e.getBoundingClientRect(),r=t.top,n=void 0===r?0:r,o=t.left,a=void 0===o?0:o,i=t.bottom,s=void 0===i?0:i,l=t.right,c=void 0===l?0:l;return 0<=n&&0<=a&&s<=(window.innerHeight||document.documentElement.clientHeight)&&c<=(window.innerWidth||document.documentElement.clientWidth)},t.prototype.isChildOfCarousel=function(e){return!!(e instanceof Element&&this.listRef&&this.listRef.current)&&this.listRef.current.contains(e)},t.prototype.onKeyUp=function(e){var t=e.target;switch(e.keyCode){case 37:if(this.isChildOfCarousel(t))return this.previous();break;case 39:if(this.isChildOfCarousel(t))return this.next();break;case 9:if(this.isChildOfCarousel(t)&&t instanceof HTMLInputElement&&this.isInViewport(t))return this.next()}},t.prototype.handleEnter=function(e){i.isMouseMoveEvent(e)&&this.autoPlay&&this.props.autoPlay&&this.props.pauseOnHover&&(clearInterval(this.autoPlay),this.autoPlay=void 0)},t.prototype.goToSlide=function(e,r,n){var o=this;if(void 0===n&&(n=!0),!this.isInThrottle){var a=this.state.itemWidth,i=this.props,s=i.afterChange,l=i.beforeChange,c=this.state.currentSlide;"function"!=typeof l||r&&("object"!=typeof r||r.skipBeforeChange)||l(e,this.getState()),this.isAnimationAllowed=n,this.props.shouldResetAutoplay&&this.resetAutoplayInterval(),this.setState({currentSlide:e,transform:-a*e},(function(){o.props.infinite&&o.correctClonesPosition({domLoaded:!0}),"function"!=typeof s||r&&("object"!=typeof r||r.skipAfterChange)||(t.afterChangeTimeout3=setTimeout((function(){s(c,o.getState())}),o.props.transitionDuration||d))}))}},t.prototype.getState=function(){return this.state},t.prototype.renderLeftArrow=function(e){var t=this,r=this.props,n=r.customLeftArrow,a=r.rtl;return o.createElement(l.LeftArrow,{customLeftArrow:n,getState:function(){return t.getState()},previous:this.previous,disabled:e,rtl:a})},t.prototype.renderRightArrow=function(e){var t=this,r=this.props,n=r.customRightArrow,a=r.rtl;return o.createElement(l.RightArrow,{customRightArrow:n,getState:function(){return t.getState()},next:this.next,disabled:e,rtl:a})},t.prototype.renderButtonGroups=function(){var e=this,t=this.props.customButtonGroup;return t?o.cloneElement(t,{previous:function(){return e.previous()},next:function(){return e.next()},goToSlide:function(t,r){return e.goToSlide(t,r)},carouselState:this.getState()}):null},t.prototype.renderDotsList=function(){var e=this;return o.createElement(s.default,{state:this.state,props:this.props,goToSlide:this.goToSlide,getState:function(){return e.getState()}})},t.prototype.renderCarouselItems=function(){var e=[];if(this.props.infinite){var t=o.Children.toArray(this.props.children);e=a.getClones(this.state.slidesToShow,t)}return o.createElement(c.default,{clones:e,goToSlide:this.goToSlide,state:this.state,notEnoughChildren:a.notEnoughChildren(this.state),props:this.props})},t.prototype.render=function(){var e=this.props,t=e.deviceType,r=e.arrows,n=e.renderArrowsWhenDisabled,i=e.removeArrowOnDeviceType,s=e.infinite,l=e.containerClass,c=e.sliderClass,d=e.customTransition,p=e.additionalTransfrom,h=e.renderDotsOutside,m=e.renderButtonGroupOutside,g=e.className,b=e.rtl,y=a.getInitialState(this.state,this.props),x=y.shouldRenderOnSSR,v=y.shouldRenderAtAll,w=a.isInLeftEnd(this.state),k=a.isInRightEnd(this.state),j=r&&!(i&&(t&&-1<i.indexOf(t)||this.state.deviceType&&-1<i.indexOf(this.state.deviceType)))&&!a.notEnoughChildren(this.state)&&v,N=!s&&w,C=!s&&k,S=u.getTransform(this.state,this.props);return o.createElement(o.Fragment,null,o.createElement("div",{className:"react-multi-carousel-list "+l+" "+g,dir:b?"rtl":"ltr",ref:this.containerRef},o.createElement("ul",{ref:this.listRef,className:"react-multi-carousel-track "+c,style:{transition:this.isAnimationAllowed?d||f:"none",overflow:x?"hidden":"unset",transform:"translate3d("+(S+p)+"px,0,0)"},onMouseMove:this.handleMove,onMouseDown:this.handleDown,onMouseUp:this.handleOut,onMouseEnter:this.handleEnter,onMouseLeave:this.handleOut,onTouchStart:this.handleDown,onTouchMove:this.handleMove,onTouchEnd:this.handleOut},this.renderCarouselItems()),j&&(!N||n)&&this.renderLeftArrow(N),j&&(!C||n)&&this.renderRightArrow(C),v&&!m&&this.renderButtonGroups(),v&&!h&&this.renderDotsList()),v&&h&&this.renderDotsList(),v&&m&&this.renderButtonGroups())},t.defaultProps={slidesToSlide:1,infinite:!1,draggable:!0,swipeable:!0,arrows:!0,renderArrowsWhenDisabled:!1,containerClass:"",sliderClass:"",itemClass:"",keyBoardControl:!0,autoPlaySpeed:3e3,showDots:!1,renderDotsOutside:!1,renderButtonGroupOutside:!1,minimumTouchDrag:80,className:"",dotListClass:"",focusOnSelect:!1,centerMode:!1,additionalTransfrom:0,pauseOnHover:!0,shouldResetAutoplay:!0,rewind:!1,rtl:!1,rewindWithAnimation:!1},t}(o.Component);t.default=p},5834:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(5043),o=r(694);t.default=function(e){var t=e.props,r=e.state,a=e.goToSlide,i=e.clones,s=e.notEnoughChildren,l=r.itemWidth,c=t.children,u=t.infinite,d=t.itemClass,f=t.itemAriaLabel,p=t.partialVisbile,h=t.partialVisible,m=o.getInitialState(r,t),g=m.flexBisis,b=m.shouldRenderOnSSR,y=m.domFullyLoaded,x=m.partialVisibilityGutter;return m.shouldRenderAtAll?(p&&console.warn('WARNING: Please correct props name: "partialVisible" as old typo will be removed in future versions!'),n.createElement(n.Fragment,null,(u?i:n.Children.toArray(c)).map((function(e,i){return n.createElement("li",{key:i,"data-index":i,onClick:function(){t.focusOnSelect&&a(i)},"aria-hidden":o.getIfSlideIsVisbile(i,r)?"false":"true","aria-label":f||(e.props.ariaLabel?e.props.ariaLabel:null),style:{flex:b?"1 0 "+g+"%":"auto",position:"relative",width:y?((p||h)&&x&&!s?l-x:l)+"px":"auto"},className:"react-multi-carousel-item "+(o.getIfSlideIsVisbile(i,r)?"react-multi-carousel-item--active":"")+" "+d},e)})))):null}},6406:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(5043),o=r(4526),a=r(2232),i=r(7673);t.default=function(e){var t=e.props,r=e.state,s=e.goToSlide,l=e.getState,c=t.showDots,u=t.customDot,d=t.dotListClass,f=t.infinite,p=t.children;if(!c||i.notEnoughChildren(r))return null;var h,m=r.currentSlide,g=r.slidesToShow,b=i.getSlidesToSlide(r,t),y=n.Children.toArray(p);h=f?Math.ceil(y.length/b):Math.ceil((y.length-g)/b)+1;var x=a.getLookupTableForNextSlides(h,r,t,y),v=o.getOriginalIndexLookupTableByClones(g,y),w=v[m];return n.createElement("ul",{className:"react-multi-carousel-dot-list "+d},Array(h).fill(0).map((function(e,t){var r,o;if(f){o=x[t];var a=v[o];r=w===a||a<=w&&w<a+b}else{var i=y.length-g,c=t*b;r=(o=i<c?i:c)===m||o<m&&m<o+b&&m<y.length-g}return u?n.cloneElement(u,{index:t,active:r,key:t,onClick:function(){return s(o)},carouselState:l()}):n.createElement("li",{"data-index":t,key:t,className:"react-multi-carousel-dot "+(r?"react-multi-carousel-dot--active":"")},n.createElement("button",{"aria-label":"Go to slide "+(t+1),onClick:function(){return s(o)}}))})))}},5604:(e,t,r)=>{"use strict";var n=r(364);t.default=n.default},257:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=r(5043);t.isMouseMoveEvent=function(e){return"clientY"in e};var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t}(o.Component);t.default=a},4526:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getOriginalCounterPart=function(e,t,r){var n=t.slidesToShow,o=t.currentSlide;return r.length>2*n?e+2*n:o>=r.length?r.length+e:e},t.getOriginalIndexLookupTableByClones=function(e,t){if(t.length>2*e){for(var r={},n=t.length-2*e,o=t.length-n,a=n,i=0;i<o;i++)r[i]=a,a++;var s=t.length+o,l=s+t.slice(0,2*e).length,c=0;for(i=s;i<=l;i++)r[i]=c,c++;var u=s,d=0;for(i=o;i<u;i++)r[i]=d,d++;return r}r={};var f=3*t.length,p=0;for(i=0;i<f;i++)r[i]=p,++p===t.length&&(p=0);return r},t.getClones=function(e,t){return t.length<e?t:t.length>2*e?t.slice(t.length-2*e,t.length).concat(t,t.slice(0,2*e)):t.concat(t,t)},t.getInitialSlideInInfiniteMode=function(e,t){return t.length>2*e?2*e:t.length},t.checkClonesPosition=function(e,t,r){var n,o=e.currentSlide,a=e.slidesToShow,i=e.itemWidth,s=e.totalItems,l=0,c=0,u=0===o,d=t.length-(t.length-2*a);return t.length<a?(c=l=0,u=n=!1):t.length>2*a?((n=o>=d+t.length)&&(c=-i*(l=o-t.length)),u&&(c=-i*(l=d+(t.length-2*a)))):((n=o>=2*t.length)&&(c=-i*(l=o-t.length)),u&&(c=r.showDots?-i*(l=t.length):-i*(l=s/3))),{isReachingTheEnd:n,isReachingTheStart:u,nextSlide:l,nextPosition:c}}},7673:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2624);function o(e){var t=e.slidesToShow;return e.totalItems<t}function a(e,t,r){var n=r||e.transform;return!t.infinite&&0===e.currentSlide||o(e)?n:n+e.itemWidth/2}function i(e){var t=e.currentSlide,r=e.totalItems;return!(t+e.slidesToShow<r)}function s(e,t,r,n){void 0===t&&(t=0);var a=e.currentSlide,s=e.slidesToShow,l=i(e),c=!r.infinite&&l,u=n||e.transform;if(o(e))return u;var d=u+a*t;return c?d+(e.containerWidth-(e.itemWidth-t)*s):d}function l(e,t){return e.rtl?-1*t:t}t.notEnoughChildren=o,t.getInitialState=function(e,t){var r,o=e.domLoaded,a=e.slidesToShow,i=e.containerWidth,s=e.itemWidth,l=t.deviceType,c=t.responsive,u=t.ssr,d=t.partialVisbile,f=t.partialVisible,p=Boolean(o&&a&&i&&s);u&&l&&!p&&(r=n.getWidthFromDeviceType(l,c));var h=Boolean(u&&l&&!p&&r);return{shouldRenderOnSSR:h,flexBisis:r,domFullyLoaded:p,partialVisibilityGutter:n.getPartialVisibilityGutter(c,d||f,l,e.deviceType),shouldRenderAtAll:h||p}},t.getIfSlideIsVisbile=function(e,t){var r=t.currentSlide,n=t.slidesToShow;return r<=e&&e<r+n},t.getTransformForCenterMode=a,t.isInLeftEnd=function(e){return!(0<e.currentSlide)},t.isInRightEnd=i,t.getTransformForPartialVsibile=s,t.parsePosition=l,t.getTransform=function(e,t,r){var o=t.partialVisbile,i=t.partialVisible,c=t.responsive,u=t.deviceType,d=t.centerMode,f=r||e.transform,p=n.getPartialVisibilityGutter(c,o||i,u,e.deviceType);return l(t,i||o?s(e,p,t,r):d?a(e,t,r):f)},t.getSlidesToSlide=function(e,t){var r=e.domLoaded,n=e.slidesToShow,o=e.containerWidth,a=e.itemWidth,i=t.deviceType,s=t.responsive,l=t.slidesToSlide||1,c=Boolean(r&&n&&o&&a);return t.ssr&&t.deviceType&&!c&&Object.keys(s).forEach((function(e){var t=s[e].slidesToSlide;i===e&&t&&(l=t)})),c&&Object.keys(s).forEach((function(e){var t=s[e],r=t.breakpoint,n=t.slidesToSlide,o=r.max,a=r.min;n&&window.innerWidth>=a&&window.innerWidth<=o&&(l=n)})),l}},2232:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4526),o=r(7673);t.getLookupTableForNextSlides=function(e,t,r,a){var i={},s=o.getSlidesToSlide(t,r);return Array(e).fill(0).forEach((function(e,r){var o=n.getOriginalCounterPart(r,t,a);if(0===r)i[0]=o;else{var l=i[r-1]+s;i[r]=l}})),i}},2624:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getPartialVisibilityGutter=function(e,t,r,n){var o=0,a=n||r;return t&&a&&(o=e[a].partialVisibilityGutter||e[a].paritialVisibilityGutter),o},t.getWidthFromDeviceType=function(e,t){var r;return t[e]&&(r=(100/t[e].items).toFixed(1)),r},t.getItemClientSideWidth=function(e,t,r){return Math.round(r/(t+(e.centerMode?1:0)))}},694:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(4526);t.getOriginalCounterPart=n.getOriginalCounterPart,t.getClones=n.getClones,t.checkClonesPosition=n.checkClonesPosition,t.getInitialSlideInInfiniteMode=n.getInitialSlideInInfiniteMode;var o=r(2624);t.getWidthFromDeviceType=o.getWidthFromDeviceType,t.getPartialVisibilityGutter=o.getPartialVisibilityGutter,t.getItemClientSideWidth=o.getItemClientSideWidth;var a=r(7673);t.getInitialState=a.getInitialState,t.getIfSlideIsVisbile=a.getIfSlideIsVisbile,t.getTransformForCenterMode=a.getTransformForCenterMode,t.getTransformForPartialVsibile=a.getTransformForPartialVsibile,t.isInLeftEnd=a.isInLeftEnd,t.isInRightEnd=a.isInRightEnd,t.notEnoughChildren=a.notEnoughChildren,t.getSlidesToSlide=a.getSlidesToSlide;var i=r(4548);t.throttle=i.default;var s=r(174);t.throwError=s.default;var l=r(2337);t.populateNextSlides=l.populateNextSlides;var c=r(1365);t.populatePreviousSlides=c.populatePreviousSlides;var u=r(528);t.populateSlidesOnMouseTouchMove=u.populateSlidesOnMouseTouchMove},528:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.populateSlidesOnMouseTouchMove=function(e,t,r,n,o,a){var i,s,l=e.itemWidth,c=e.slidesToShow,u=e.totalItems,d=e.currentSlide,f=t.infinite,p=!1,h=Math.round((r-n)/l),m=Math.round((n-r)/l),g=r<o;if(o<r&&h<=c){i="right";var b=Math.abs(-l*(u-c)),y=a-(n-o),x=d===u-c;(Math.abs(y)<=b||x&&f)&&(s=y,p=!0)}return g&&m<=c&&(i="left",((y=a+(o-n))<=0||0===d&&f)&&(p=!0,s=y)),{direction:i,nextPosition:s,canContinue:p}}},2337:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(7673);t.populateNextSlides=function(e,t,r){void 0===r&&(r=0);var o,a,i=e.slidesToShow,s=e.currentSlide,l=e.itemWidth,c=e.totalItems,u=n.getSlidesToSlide(e,t),d=s+1+r+i+(0<r?0:u);return a=d<=c?-l*(o=s+r+(0<r?0:u)):c<d&&s!==c-i?-l*(o=c-i):o=void 0,{nextSlides:o,nextPosition:a}}},1365:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(5043),o=r(7673),a=r(7673);t.populatePreviousSlides=function(e,t,r){void 0===r&&(r=0);var i,s,l=e.currentSlide,c=e.itemWidth,u=e.slidesToShow,d=t.children,f=t.showDots,p=t.infinite,h=o.getSlidesToSlide(e,t),m=l-r-(0<r?0:h),g=(n.Children.toArray(d).length-u)%h;return s=0<=m?(i=m,f&&!p&&0<g&&a.isInRightEnd(e)&&(i=l-g),-c*i):i=m<0&&0!==l?0:void 0,{nextSlides:i,nextPosition:s}}},4548:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e,t,r){var n;return function(){var o=arguments;n||(e.apply(this,o),n=!0,"function"==typeof r&&r(!0),setTimeout((function(){n=!1,"function"==typeof r&&r(!1)}),t))}}},174:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r=t.partialVisbile,n=t.partialVisible,o=t.centerMode,a=t.ssr,i=t.responsive;if((r||n)&&o)throw new Error("center mode can not be used at the same time with partialVisible");if(!i)throw a?new Error("ssr mode need to be used in conjunction with responsive prop"):new Error("Responsive prop is needed for deciding the amount of items to show on the screen");if(i&&"object"!=typeof i)throw new Error("responsive prop must be an object")}},2823:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},e(t,r)};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o.apply(this,arguments)},a=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var a=arguments[t],i=0,s=a.length;i<s;i++,o++)n[o]=a[i];return n},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},s=i(r(5043)),l=i(r(7950)),c=i(r(9853)),u=i(r(4175)),d=function(e){function t(t){var r=e.call(this,t)||this;r.dirtyProps=["modules","formats","bounds","theme","children"],r.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],r.state={generation:0},r.selection=null,r.onEditorChange=function(e,t,n,o){var a,i,s,l;"text-change"===e?null===(i=(a=r).onEditorChangeText)||void 0===i||i.call(a,r.editor.root.innerHTML,t,o,r.unprivilegedEditor):"selection-change"===e&&(null===(l=(s=r).onEditorChangeSelection)||void 0===l||l.call(s,t,o,r.unprivilegedEditor))};var n=r.isControlled()?t.value:t.defaultValue;return r.value=null!==n&&void 0!==n?n:"",r}return n(t,e),t.prototype.validateProps=function(e){var t;if(s.default.Children.count(e.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(s.default.Children.count(e.children)&&"textarea"===(null===(t=s.default.Children.only(e.children))||void 0===t?void 0:t.type))throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.");if(this.lastDeltaChangeSet&&e.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")},t.prototype.shouldComponentUpdate=function(e,t){var r,n=this;if(this.validateProps(e),!this.editor||this.state.generation!==t.generation)return!0;if("value"in e){var o=this.getEditorContents(),i=null!==(r=e.value)&&void 0!==r?r:"";this.isEqualValue(i,o)||this.setEditorContents(this.editor,i)}return e.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,e.readOnly),a(this.cleanProps,this.dirtyProps).some((function(t){return!c.default(e[t],n.props[t])}))},t.prototype.shouldComponentRegenerate=function(e){var t=this;return this.dirtyProps.some((function(r){return!c.default(e[r],t.props[r])}))},t.prototype.componentDidMount=function(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())},t.prototype.componentWillUnmount=function(){this.destroyEditor()},t.prototype.componentDidUpdate=function(e,t){var r=this;if(this.editor&&this.shouldComponentRegenerate(e)){var n=this.editor.getContents(),o=this.editor.getSelection();this.regenerationSnapshot={delta:n,selection:o},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==t.generation){var a=this.regenerationSnapshot,i=(n=a.delta,a.selection);delete this.regenerationSnapshot,this.instantiateEditor();var s=this.editor;s.setContents(n),f((function(){return r.setEditorSelection(s,i)}))}},t.prototype.instantiateEditor=function(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())},t.prototype.destroyEditor=function(){this.editor&&this.unhookEditor(this.editor)},t.prototype.isControlled=function(){return"value"in this.props},t.prototype.getEditorConfig=function(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,scrollingContainer:this.props.scrollingContainer,tabIndex:this.props.tabIndex,theme:this.props.theme}},t.prototype.getEditor=function(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor},t.prototype.createEditor=function(e,t){var r=new u.default(e,t);return null!=t.tabIndex&&this.setEditorTabIndex(r,t.tabIndex),this.hookEditor(r),r},t.prototype.hookEditor=function(e){this.unprivilegedEditor=this.makeUnprivilegedEditor(e),e.on("editor-change",this.onEditorChange)},t.prototype.unhookEditor=function(e){e.off("editor-change",this.onEditorChange)},t.prototype.getEditorContents=function(){return this.value},t.prototype.getEditorSelection=function(){return this.selection},t.prototype.isDelta=function(e){return e&&e.ops},t.prototype.isEqualValue=function(e,t){return this.isDelta(e)&&this.isDelta(t)?c.default(e.ops,t.ops):c.default(e,t)},t.prototype.setEditorContents=function(e,t){var r=this;this.value=t;var n=this.getEditorSelection();"string"===typeof t?e.setContents(e.clipboard.convert(t)):e.setContents(t),f((function(){return r.setEditorSelection(e,n)}))},t.prototype.setEditorSelection=function(e,t){if(this.selection=t,t){var r=e.getLength();t.index=Math.max(0,Math.min(t.index,r-1)),t.length=Math.max(0,Math.min(t.length,r-1-t.index)),e.setSelection(t)}},t.prototype.setEditorTabIndex=function(e,t){var r,n;(null===(n=null===(r=e)||void 0===r?void 0:r.scroll)||void 0===n?void 0:n.domNode)&&(e.scroll.domNode.tabIndex=t)},t.prototype.setEditorReadOnly=function(e,t){t?e.disable():e.enable()},t.prototype.makeUnprivilegedEditor=function(e){var t=e;return{getHTML:function(){return t.root.innerHTML},getLength:t.getLength.bind(t),getText:t.getText.bind(t),getContents:t.getContents.bind(t),getSelection:t.getSelection.bind(t),getBounds:t.getBounds.bind(t)}},t.prototype.getEditingArea=function(){if(!this.editingArea)throw new Error("Instantiating on missing editing area");var e=l.default.findDOMNode(this.editingArea);if(!e)throw new Error("Cannot find element for editing area");if(3===e.nodeType)throw new Error("Editing area cannot be a text node");return e},t.prototype.renderEditingArea=function(){var e=this,t=this.props,r=t.children,n=t.preserveWhitespace,a={key:this.state.generation,ref:function(t){e.editingArea=t}};return s.default.Children.count(r)?s.default.cloneElement(s.default.Children.only(r),a):n?s.default.createElement("pre",o({},a)):s.default.createElement("div",o({},a))},t.prototype.render=function(){var e;return s.default.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:"quill "+(e=this.props.className,null!==e&&void 0!==e?e:""),onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())},t.prototype.onEditorChangeText=function(e,t,r,n){var o,a;if(this.editor){var i=this.isDelta(this.value)?n.getContents():n.getHTML();i!==this.getEditorContents()&&(this.lastDeltaChangeSet=t,this.value=i,null===(a=(o=this.props).onChange)||void 0===a||a.call(o,e,t,r,n))}},t.prototype.onEditorChangeSelection=function(e,t,r){var n,o,a,i,s,l;if(this.editor){var u=this.getEditorSelection(),d=!u&&e,f=u&&!e;c.default(e,u)||(this.selection=e,null===(o=(n=this.props).onChangeSelection)||void 0===o||o.call(n,e,t,r),d?null===(i=(a=this.props).onFocus)||void 0===i||i.call(a,e,t,r):f&&(null===(l=(s=this.props).onBlur)||void 0===l||l.call(s,u,t,r)))}},t.prototype.focus=function(){this.editor&&this.editor.focus()},t.prototype.blur=function(){this.editor&&(this.selection=null,this.editor.blur())},t.displayName="React Quill",t.Quill=u.default,t.defaultProps={theme:"snow",modules:{},readOnly:!1},t}(s.default.Component);function f(e){Promise.resolve().then(e)}e.exports=d},7010:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&o(t,e,r);return a(t,e),t},s=this&&this.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r};Object.defineProperty(t,"__esModule",{value:!0});var l=i(r(5043)),c=r(2880),u=r(1744),d=[(0,u.createAnimation)("PuffLoader","0% {transform: scale(0)} 100% {transform: scale(1.0)}","puff-1"),(0,u.createAnimation)("PuffLoader","0% {opacity: 1} 100% {opacity: 0}","puff-2")];t.default=function(e){var t=e.loading,r=void 0===t||t,o=e.color,a=void 0===o?"#000000":o,i=e.speedMultiplier,u=void 0===i?1:i,f=e.cssOverride,p=void 0===f?{}:f,h=e.size,m=void 0===h?60:h,g=s(e,["loading","color","speedMultiplier","cssOverride","size"]),b=n({display:"inherit",position:"relative",width:(0,c.cssValue)(m),height:(0,c.cssValue)(m)},p),y=function(e){return{position:"absolute",height:(0,c.cssValue)(m),width:(0,c.cssValue)(m),border:"thick solid ".concat(a),borderRadius:"50%",opacity:"1",top:"0",left:"0",animationFillMode:"both",animation:"".concat(d[0],", ").concat(d[1]),animationDuration:"".concat(2/u,"s"),animationIterationCount:"infinite",animationTimingFunction:"cubic-bezier(0.165, 0.84, 0.44, 1), cubic-bezier(0.3, 0.61, 0.355, 1)",animationDelay:1===e?"-1s":"0s"}};return r?l.createElement("span",n({style:b},g),l.createElement("span",{style:y(1)}),l.createElement("span",{style:y(2)})):null}},1744:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createAnimation=void 0;t.createAnimation=function(e,t,r){var n="react-spinners-".concat(e,"-").concat(r);if("undefined"==typeof window||!window.document)return n;var o=document.createElement("style");document.head.appendChild(o);var a=o.sheet,i="\n @keyframes ".concat(n," {\n ").concat(t,"\n }\n ");return a&&a.insertRule(i,0),n}},2880:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cssValue=t.parseLengthAndUnit=void 0;var r={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function n(e){if("number"===typeof e)return{value:e,unit:"px"};var t,n=(e.match(/^[0-9.]*/)||"").toString();t=n.includes(".")?parseFloat(n):parseInt(n,10);var o=(e.match(/[^0-9]*$/)||"").toString();return r[o]?{value:t,unit:o}:(console.warn("React Spinners: ".concat(e," is not a valid css value. Defaulting to ").concat(t,"px.")),{value:t,unit:"px"})}t.parseLengthAndUnit=n,t.cssValue=function(e){var t=n(e);return"".concat(t.value).concat(t.unit)}},1153:(e,t,r)=>{"use strict";var n=r(5043),o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var n,a={},c=null,u=null;for(n in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)i.call(t,n)&&!l.hasOwnProperty(n)&&(a[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===a[n]&&(a[n]=t[n]);return{$$typeof:o,type:e,key:c,ref:u,props:a,_owner:s.current}}t.Fragment=a,t.jsx=c,t.jsxs=c},4202:(e,t)=>{"use strict";var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function b(e,t,r){this.props=e,this.context=t,this.refs=g,this.updater=r||h}function y(){}function x(e,t,r){this.props=e,this.context=t,this.refs=g,this.updater=r||h}b.prototype.isReactComponent={},b.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=b.prototype;var v=x.prototype=new y;v.constructor=x,m(v,b.prototype),v.isPureReactComponent=!0;var w=Array.isArray,k=Object.prototype.hasOwnProperty,j={current:null},N={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,n){var o,a={},i=null,s=null;if(null!=t)for(o in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(i=""+t.key),t)k.call(t,o)&&!N.hasOwnProperty(o)&&(a[o]=t[o]);var l=arguments.length-2;if(1===l)a.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];a.children=c}if(e&&e.defaultProps)for(o in l=e.defaultProps)void 0===a[o]&&(a[o]=l[o]);return{$$typeof:r,type:e,key:i,ref:s,props:a,_owner:j.current}}function S(e){return"object"===typeof e&&null!==e&&e.$$typeof===r}var E=/\/+/g;function A(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function O(e,t,o,a,i){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case r:case n:l=!0}}if(l)return i=i(l=e),e=""===a?"."+A(l,0):a,w(i)?(o="",null!=e&&(o=e.replace(E,"$&/")+"/"),O(i,t,o,"",(function(e){return e}))):null!=i&&(S(i)&&(i=function(e,t){return{$$typeof:r,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(i,o+(!i.key||l&&l.key===i.key?"":(""+i.key).replace(E,"$&/")+"/")+e)),t.push(i)),1;if(l=0,a=""===a?".":a+":",w(e))for(var c=0;c<e.length;c++){var u=a+A(s=e[c],c);l+=O(s,t,o,u,i)}else if(u=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"===typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=O(s=s.value,t,o,u=a+A(s,c++),i);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function $(e,t,r){if(null==e)return e;var n=[],o=0;return O(e,n,"","",(function(e){return t.call(r,e,o++)})),n}function P(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var T={current:null},I={transition:null},M={ReactCurrentDispatcher:T,ReactCurrentBatchConfig:I,ReactCurrentOwner:j};function R(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:$,forEach:function(e,t,r){$(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return $(e,(function(){t++})),t},toArray:function(e){return $(e,(function(e){return e}))||[]},only:function(e){if(!S(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=b,t.Fragment=o,t.Profiler=i,t.PureComponent=x,t.StrictMode=a,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=M,t.act=R,t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=m({},e.props),a=e.key,i=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,s=j.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)k.call(t,c)&&!N.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=n;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];o.children=l}return{$$typeof:r,type:e.type,key:a,ref:i,props:o,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=C,t.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=S,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:P}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=I.transition;I.transition={};try{e()}finally{I.transition=t}},t.unstable_act=R,t.useCallback=function(e,t){return T.current.useCallback(e,t)},t.useContext=function(e){return T.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return T.current.useDeferredValue(e)},t.useEffect=function(e,t){return T.current.useEffect(e,t)},t.useId=function(){return T.current.useId()},t.useImperativeHandle=function(e,t,r){return T.current.useImperativeHandle(e,t,r)},t.useInsertionEffect=function(e,t){return T.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return T.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return T.current.useMemo(e,t)},t.useReducer=function(e,t,r){return T.current.useReducer(e,t,r)},t.useRef=function(e){return T.current.useRef(e)},t.useState=function(e){return T.current.useState(e)},t.useSyncExternalStore=function(e,t,r){return T.current.useSyncExternalStore(e,t,r)},t.useTransition=function(){return T.current.useTransition()},t.version="18.3.1"},5043:(e,t,r)=>{"use strict";e.exports=r(4202)},579:(e,t,r)=>{"use strict";e.exports=r(1153)},7234:(e,t)=>{"use strict";function r(e,t){var r=e.length;e.push(t);e:for(;0<r;){var n=r-1>>>1,o=e[n];if(!(0<a(o,t)))break e;e[n]=t,e[r]=o,r=n}}function n(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,o=e.length,i=o>>>1;n<i;){var s=2*(n+1)-1,l=e[s],c=s+1,u=e[c];if(0>a(l,r))c<o&&0>a(u,l)?(e[n]=u,e[c]=r,n=c):(e[n]=l,e[s]=r,n=s);else{if(!(c<o&&0>a(u,r)))break e;e[n]=u,e[c]=r,n=c}}}return t}function a(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var i=performance;t.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var c=[],u=[],d=1,f=null,p=3,h=!1,m=!1,g=!1,b="function"===typeof setTimeout?setTimeout:null,y="function"===typeof clearTimeout?clearTimeout:null,x="undefined"!==typeof setImmediate?setImmediate:null;function v(e){for(var t=n(u);null!==t;){if(null===t.callback)o(u);else{if(!(t.startTime<=e))break;o(u),t.sortIndex=t.expirationTime,r(c,t)}t=n(u)}}function w(e){if(g=!1,v(e),!m)if(null!==n(c))m=!0,I(k);else{var t=n(u);null!==t&&M(w,t.startTime-e)}}function k(e,r){m=!1,g&&(g=!1,y(S),S=-1),h=!0;var a=p;try{for(v(r),f=n(c);null!==f&&(!(f.expirationTime>r)||e&&!O());){var i=f.callback;if("function"===typeof i){f.callback=null,p=f.priorityLevel;var s=i(f.expirationTime<=r);r=t.unstable_now(),"function"===typeof s?f.callback=s:f===n(c)&&o(c),v(r)}else o(c);f=n(c)}if(null!==f)var l=!0;else{var d=n(u);null!==d&&M(w,d.startTime-r),l=!1}return l}finally{f=null,p=a,h=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var j,N=!1,C=null,S=-1,E=5,A=-1;function O(){return!(t.unstable_now()-A<E)}function $(){if(null!==C){var e=t.unstable_now();A=e;var r=!0;try{r=C(!0,e)}finally{r?j():(N=!1,C=null)}}else N=!1}if("function"===typeof x)j=function(){x($)};else if("undefined"!==typeof MessageChannel){var P=new MessageChannel,T=P.port2;P.port1.onmessage=$,j=function(){T.postMessage(null)}}else j=function(){b($,0)};function I(e){C=e,N||(N=!0,j())}function M(e,r){S=b((function(){e(t.unstable_now())}),r)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||h||(m=!0,I(k))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return n(c)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var r=p;p=t;try{return e()}finally{p=r}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=p;p=e;try{return t()}finally{p=r}},t.unstable_scheduleCallback=function(e,o,a){var i=t.unstable_now();switch("object"===typeof a&&null!==a?a="number"===typeof(a=a.delay)&&0<a?i+a:i:a=i,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:a,expirationTime:s=a+s,sortIndex:-1},a>i?(e.sortIndex=a,r(u,e),null===n(c)&&e===n(u)&&(g?(y(S),S=-1):g=!0,M(w,a-i))):(e.sortIndex=s,r(c,e),m||h||(m=!0,I(k))),e},t.unstable_shouldYield=O,t.unstable_wrapCallback=function(e){var t=p;return function(){var r=p;p=t;try{return e.apply(this,arguments)}finally{p=r}}}},8853:(e,t,r)=>{"use strict";e.exports=r(7234)},1844:e=>{e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},8139:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=i(e,a(r)))}return e}function a(e){if("string"===typeof e||"number"===typeof e)return e;if("object"!==typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)n.call(e,r)&&e[r]&&(t=i(t,r));return t}function i(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var a=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.loaded=!0,a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"===typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"===typeof n.then)return n}var a=Object.create(null);r.r(a);var i={};e=e||[null,t({}),t([]),t(t)];for(var s=2&o&&n;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>i[e]=()=>n[e]));return i.default=()=>n,r.d(a,i),a}})(),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=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),r.p="/",(()=>{"use strict";var e={};r.r(e),r.d(e,{hasBrowserEnv:()=>nd,hasStandardBrowserEnv:()=>ad,hasStandardBrowserWebWorkerEnv:()=>id,navigator:()=>od,origin:()=>sd});var t,n=r(5043),o=r.t(n,2),a=r(4391);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(t||(t={}));const s="popstate";function l(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}function c(e,t){if(!e){"undefined"!==typeof console&&console.warn(t);try{throw new Error(t)}catch(r){}}}function u(e,t){return{usr:e.state,key:e.key,idx:t}}function d(e,t,r,n){return void 0===r&&(r=null),i({pathname:"string"===typeof e?e:e.pathname,search:"",hash:""},"string"===typeof t?p(t):t,{state:r,key:t&&t.key||n||Math.random().toString(36).substr(2,8)})}function f(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&"?"!==r&&(t+="?"===r.charAt(0)?r:"?"+r),n&&"#"!==n&&(t+="#"===n.charAt(0)?n:"#"+n),t}function p(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function h(e,r,n,o){void 0===o&&(o={});let{window:a=document.defaultView,v5Compat:c=!1}=o,p=a.history,h=t.Pop,m=null,g=b();function b(){return(p.state||{idx:null}).idx}function y(){h=t.Pop;let e=b(),r=null==e?null:e-g;g=e,m&&m({action:h,location:v.location,delta:r})}function x(e){let t="null"!==a.location.origin?a.location.origin:a.location.href,r="string"===typeof e?e:f(e);return r=r.replace(/ $/,"%20"),l(t,"No window.location.(origin|href) available to create URL for href: "+r),new URL(r,t)}null==g&&(g=0,p.replaceState(i({},p.state,{idx:g}),""));let v={get action(){return h},get location(){return e(a,p)},listen(e){if(m)throw new Error("A history only accepts one active listener");return a.addEventListener(s,y),m=e,()=>{a.removeEventListener(s,y),m=null}},createHref:e=>r(a,e),createURL:x,encodeLocation(e){let t=x(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,r){h=t.Push;let o=d(v.location,e,r);n&&n(o,e),g=b()+1;let i=u(o,g),s=v.createHref(o);try{p.pushState(i,"",s)}catch(l){if(l instanceof DOMException&&"DataCloneError"===l.name)throw l;a.location.assign(s)}c&&m&&m({action:h,location:v.location,delta:1})},replace:function(e,r){h=t.Replace;let o=d(v.location,e,r);n&&n(o,e),g=b();let a=u(o,g),i=v.createHref(o);p.replaceState(a,"",i),c&&m&&m({action:h,location:v.location,delta:0})},go:e=>p.go(e)};return v}var m;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(m||(m={}));new Set(["lazy","caseSensitive","path","id","index","children"]);function g(e,t,r){return void 0===r&&(r="/"),b(e,t,r,!1)}function b(e,t,r,n){let o=P(("string"===typeof t?p(t):t).pathname||"/",r);if(null==o)return null;let a=y(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let r=e.length===t.length&&e.slice(0,-1).every(((e,r)=>e===t[r]));return r?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(a);let i=null;for(let s=0;null==i&&s<a.length;++s){let e=$(o);i=A(a[s],e,n)}return i}function y(e,t,r,n){void 0===t&&(t=[]),void 0===r&&(r=[]),void 0===n&&(n="");let o=(e,o,a)=>{let i={relativePath:void 0===a?e.path||"":a,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};i.relativePath.startsWith("/")&&(l(i.relativePath.startsWith(n),'Absolute route path "'+i.relativePath+'" nested under path "'+n+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),i.relativePath=i.relativePath.slice(n.length));let s=L([n,i.relativePath]),c=r.concat(i);e.children&&e.children.length>0&&(l(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),y(e.children,t,c,s)),(null!=e.path||e.index)&&t.push({path:s,score:E(s,e.index),routesMeta:c})};return e.forEach(((e,t)=>{var r;if(""!==e.path&&null!=(r=e.path)&&r.includes("?"))for(let n of x(e.path))o(e,t,n);else o(e,t)})),t}function x(e){let t=e.split("/");if(0===t.length)return[];let[r,...n]=t,o=r.endsWith("?"),a=r.replace(/\?$/,"");if(0===n.length)return o?[a,""]:[a];let i=x(n.join("/")),s=[];return s.push(...i.map((e=>""===e?a:[a,e].join("/")))),o&&s.push(...i),s.map((t=>e.startsWith("/")&&""===t?"/":t))}const v=/^:[\w-]+$/,w=3,k=2,j=1,N=10,C=-2,S=e=>"*"===e;function E(e,t){let r=e.split("/"),n=r.length;return r.some(S)&&(n+=C),t&&(n+=k),r.filter((e=>!S(e))).reduce(((e,t)=>e+(v.test(t)?w:""===t?j:N)),n)}function A(e,t,r){void 0===r&&(r=!1);let{routesMeta:n}=e,o={},a="/",i=[];for(let s=0;s<n.length;++s){let e=n[s],l=s===n.length-1,c="/"===a?t:t.slice(a.length)||"/",u=O({path:e.relativePath,caseSensitive:e.caseSensitive,end:l},c),d=e.route;if(!u&&l&&r&&!n[n.length-1].route.index&&(u=O({path:e.relativePath,caseSensitive:e.caseSensitive,end:!1},c)),!u)return null;Object.assign(o,u.params),i.push({params:o,pathname:L([a,u.pathname]),pathnameBase:_(L([a,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(a=L([a,u.pathnameBase]))}return i}function O(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=function(e,t,r){void 0===t&&(t=!1);void 0===r&&(r=!0);c("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,r)=>(n.push({paramName:t,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)")));e.endsWith("*")?(n.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))");let a=new RegExp(o,t?void 0:"i");return[a,n]}(e.path,e.caseSensitive,e.end),o=t.match(r);if(!o)return null;let a=o[0],i=a.replace(/(.)\/+$/,"$1"),s=o.slice(1),l=n.reduce(((e,t,r)=>{let{paramName:n,isOptional:o}=t;if("*"===n){let e=s[r]||"";i=a.slice(0,a.length-e.length).replace(/(.)\/+$/,"$1")}const l=s[r];return e[n]=o&&!l?void 0:(l||"").replace(/%2F/g,"/"),e}),{});return{params:l,pathname:a,pathnameBase:i,pattern:e}}function $(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return c(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function P(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}function T(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the `to."+r+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function I(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function M(e,t){let r=I(e);return t?r.map(((e,t)=>t===r.length-1?e.pathname:e.pathnameBase)):r.map((e=>e.pathnameBase))}function R(e,t,r,n){let o;void 0===n&&(n=!1),"string"===typeof e?o=p(e):(o=i({},e),l(!o.pathname||!o.pathname.includes("?"),T("?","pathname","search",o)),l(!o.pathname||!o.pathname.includes("#"),T("#","pathname","hash",o)),l(!o.search||!o.search.includes("#"),T("#","search","hash",o)));let a,s=""===e||""===o.pathname,c=s?"/":o.pathname;if(null==c)a=r;else{let e=t.length-1;if(!n&&c.startsWith("..")){let t=c.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}a=e>=0?t[e]:"/"}let u=function(e,t){void 0===t&&(t="/");let{pathname:r,search:n="",hash:o=""}="string"===typeof e?p(e):e,a=r?r.startsWith("/")?r:function(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)})),r.length>1?r.join("/"):"/"}(r,t):t;return{pathname:a,search:D(n),hash:B(o)}}(o,a),d=c&&"/"!==c&&c.endsWith("/"),f=(s||"."===c)&&r.endsWith("/");return u.pathname.endsWith("/")||!d&&!f||(u.pathname+="/"),u}const L=e=>e.join("/").replace(/\/\/+/g,"/"),_=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),D=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",B=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;function z(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}const F=["post","put","patch","delete"],q=(new Set(F),["get",...F]);new Set(q),new Set([301,302,303,307,308]),new Set([307,308]);Symbol("deferred");function H(){return H=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},H.apply(this,arguments)}const U=n.createContext(null);const W=n.createContext(null);const V=n.createContext(null);const G=n.createContext(null);const K=n.createContext({outlet:null,matches:[],isDataRoute:!1});const Q=n.createContext(null);function Y(){return null!=n.useContext(G)}function Z(){return Y()||l(!1),n.useContext(G).location}function J(e){n.useContext(V).static||n.useLayoutEffect(e)}function X(){let{isDataRoute:e}=n.useContext(K);return e?function(){let{router:e}=de(ce.UseNavigateStable),t=pe(ue.UseNavigateStable),r=n.useRef(!1);J((()=>{r.current=!0}));let o=n.useCallback((function(n,o){void 0===o&&(o={}),r.current&&("number"===typeof n?e.navigate(n):e.navigate(n,H({fromRouteId:t},o)))}),[e,t]);return o}():function(){Y()||l(!1);let e=n.useContext(U),{basename:t,future:r,navigator:o}=n.useContext(V),{matches:a}=n.useContext(K),{pathname:i}=Z(),s=JSON.stringify(M(a,r.v7_relativeSplatPath)),c=n.useRef(!1);J((()=>{c.current=!0}));let u=n.useCallback((function(r,n){if(void 0===n&&(n={}),!c.current)return;if("number"===typeof r)return void o.go(r);let a=R(r,JSON.parse(s),i,"path"===n.relative);null==e&&"/"!==t&&(a.pathname="/"===a.pathname?t:L([t,a.pathname])),(n.replace?o.replace:o.push)(a,n.state,n)}),[t,o,s,i,e]);return u}()}const ee=n.createContext(null);function te(){let{matches:e}=n.useContext(K),t=e[e.length-1];return t?t.params:{}}function re(e,t){let{relative:r}=void 0===t?{}:t,{future:o}=n.useContext(V),{matches:a}=n.useContext(K),{pathname:i}=Z(),s=JSON.stringify(M(a,o.v7_relativeSplatPath));return n.useMemo((()=>R(e,JSON.parse(s),i,"path"===r)),[e,s,i,r])}function ne(e,r,o,a){Y()||l(!1);let{navigator:i}=n.useContext(V),{matches:s}=n.useContext(K),c=s[s.length-1],u=c?c.params:{},d=(c&&c.pathname,c?c.pathnameBase:"/");c&&c.route;let f,h=Z();if(r){var m;let e="string"===typeof r?p(r):r;"/"===d||(null==(m=e.pathname)?void 0:m.startsWith(d))||l(!1),f=e}else f=h;let b=f.pathname||"/",y=b;if("/"!==d){let e=d.replace(/^\//,"").split("/");y="/"+b.replace(/^\//,"").split("/").slice(e.length).join("/")}let x=g(e,{pathname:y});let v=le(x&&x.map((e=>Object.assign({},e,{params:Object.assign({},u,e.params),pathname:L([d,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?d:L([d,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),s,o,a);return r&&v?n.createElement(G.Provider,{value:{location:H({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:t.Pop}},v):v}function oe(){let e=function(){var e;let t=n.useContext(Q),r=fe(ue.UseRouteError),o=pe(ue.UseRouteError);if(void 0!==t)return t;return null==(e=r.errors)?void 0:e[o]}(),t=z(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,o="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:o};return n.createElement(n.Fragment,null,n.createElement("h2",null,"Unexpected Application Error!"),n.createElement("h3",{style:{fontStyle:"italic"}},t),r?n.createElement("pre",{style:a},r):null,null)}const ae=n.createElement(oe,null);class ie extends n.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?n.createElement(K.Provider,{value:this.props.routeContext},n.createElement(Q.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function se(e){let{routeContext:t,match:r,children:o}=e,a=n.useContext(U);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),n.createElement(K.Provider,{value:t},o)}function le(e,t,r,o){var a;if(void 0===t&&(t=[]),void 0===r&&(r=null),void 0===o&&(o=null),null==e){var i;if(!r)return null;if(r.errors)e=r.matches;else{if(!(null!=(i=o)&&i.v7_partialHydration&&0===t.length&&!r.initialized&&r.matches.length>0))return null;e=r.matches}}let s=e,c=null==(a=r)?void 0:a.errors;if(null!=c){let e=s.findIndex((e=>e.route.id&&void 0!==(null==c?void 0:c[e.route.id])));e>=0||l(!1),s=s.slice(0,Math.min(s.length,e+1))}let u=!1,d=-1;if(r&&o&&o.v7_partialHydration)for(let n=0;n<s.length;n++){let e=s[n];if((e.route.HydrateFallback||e.route.hydrateFallbackElement)&&(d=n),e.route.id){let{loaderData:t,errors:n}=r,o=e.route.loader&&void 0===t[e.route.id]&&(!n||void 0===n[e.route.id]);if(e.route.lazy||o){u=!0,s=d>=0?s.slice(0,d+1):[s[0]];break}}}return s.reduceRight(((e,o,a)=>{let i,l=!1,f=null,p=null;var h;r&&(i=c&&o.route.id?c[o.route.id]:void 0,f=o.route.errorElement||ae,u&&(d<0&&0===a?(h="route-fallback",!1||he[h]||(he[h]=!0),l=!0,p=null):d===a&&(l=!0,p=o.route.hydrateFallbackElement||null)));let m=t.concat(s.slice(0,a+1)),g=()=>{let t;return t=i?f:l?p:o.route.Component?n.createElement(o.route.Component,null):o.route.element?o.route.element:e,n.createElement(se,{match:o,routeContext:{outlet:e,matches:m,isDataRoute:null!=r},children:t})};return r&&(o.route.ErrorBoundary||o.route.errorElement||0===a)?n.createElement(ie,{location:r.location,revalidation:r.revalidation,component:f,error:i,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):g()}),null)}var ce=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(ce||{}),ue=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(ue||{});function de(e){let t=n.useContext(U);return t||l(!1),t}function fe(e){let t=n.useContext(W);return t||l(!1),t}function pe(e){let t=function(){let e=n.useContext(K);return e||l(!1),e}(),r=t.matches[t.matches.length-1];return r.route.id||l(!1),r.route.id}const he={};o.startTransition;function me(e){let{to:t,replace:r,state:o,relative:a}=e;Y()||l(!1);let{future:i,static:s}=n.useContext(V),{matches:c}=n.useContext(K),{pathname:u}=Z(),d=X(),f=R(t,M(c,i.v7_relativeSplatPath),u,"path"===a),p=JSON.stringify(f);return n.useEffect((()=>d(JSON.parse(p),{replace:r,state:o,relative:a})),[d,p,a,r,o]),null}function ge(e){return function(e){let t=n.useContext(K).outlet;return t?n.createElement(ee.Provider,{value:e},t):t}(e.context)}function be(e){l(!1)}function ye(e){let{basename:r="/",children:o=null,location:a,navigationType:i=t.Pop,navigator:s,static:c=!1,future:u}=e;Y()&&l(!1);let d=r.replace(/^\/*/,"/"),f=n.useMemo((()=>({basename:d,navigator:s,static:c,future:H({v7_relativeSplatPath:!1},u)})),[d,u,s,c]);"string"===typeof a&&(a=p(a));let{pathname:h="/",search:m="",hash:g="",state:b=null,key:y="default"}=a,x=n.useMemo((()=>{let e=P(h,d);return null==e?null:{location:{pathname:e,search:m,hash:g,state:b,key:y},navigationType:i}}),[d,h,m,g,b,y,i]);return null==x?null:n.createElement(V.Provider,{value:f},n.createElement(G.Provider,{children:o,value:x}))}function xe(e){let{children:t,location:r}=e;return ne(ve(t),r)}new Promise((()=>{}));n.Component;function ve(e,t){void 0===t&&(t=[]);let r=[];return n.Children.forEach(e,((e,o)=>{if(!n.isValidElement(e))return;let a=[...t,o];if(e.type===n.Fragment)return void r.push.apply(r,ve(e.props.children,a));e.type!==be&&l(!1),e.props.index&&e.props.children&&l(!1);let i={id:e.props.id||a.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(i.children=ve(e.props.children,a)),r.push(i)})),r}var we={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},ke=n.createContext&&n.createContext(we),je=["attr","size","title"];function Ne(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function Ce(){return Ce=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ce.apply(this,arguments)}function Se(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ee(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Se(Object(r),!0).forEach((function(t){Ae(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Se(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ae(e,t,r){return t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Oe(e){return e&&e.map(((e,t)=>n.createElement(e.tag,Ee({key:t},e.attr),Oe(e.child))))}function $e(e){return t=>n.createElement(Pe,Ce({attr:Ee({},e.attr)},t),Oe(e.child))}function Pe(e){var t=t=>{var r,{attr:o,size:a,title:i}=e,s=Ne(e,je),l=a||t.size||"1em";return t.className&&(r=t.className),e.className&&(r=(r?r+" ":"")+e.className),n.createElement("svg",Ce({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,o,s,{className:r,style:Ee(Ee({color:e.color||t.color},t.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),i&&n.createElement("title",null,i),e.children)};return void 0!==ke?n.createElement(ke.Consumer,null,(e=>t(e))):t(we)}function Te(e){return $e({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M0 96C0 78.3 14.3 64 32 64H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H416c17.7 0 32 14.3 32 32z"},child:[]}]})(e)}function Ie(e){return $e({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M0 24C0 10.7 10.7 0 24 0H69.5c22 0 41.5 12.8 50.6 32h411c26.3 0 45.5 25 38.6 50.4l-41 152.3c-8.5 31.4-37 53.3-69.5 53.3H170.7l5.4 28.5c2.2 11.3 12.1 19.5 23.6 19.5H488c13.3 0 24 10.7 24 24s-10.7 24-24 24H199.7c-34.6 0-64.3-24.6-70.7-58.5L77.4 54.5c-.7-3.8-4-6.5-7.9-6.5H24C10.7 48 0 37.3 0 24zM128 464a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zm336-48a48 48 0 1 1 0 96 48 48 0 1 1 0-96z"},child:[]}]})(e)}function Me(e){return $e({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"},child:[]}]})(e)}function Re(e){return $e({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M192 0c-41.8 0-77.4 26.7-90.5 64H64C28.7 64 0 92.7 0 128V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V128c0-35.3-28.7-64-64-64H282.5C269.4 26.7 233.8 0 192 0zm0 64a32 32 0 1 1 0 64 32 32 0 1 1 0-64zM72 272a24 24 0 1 1 48 0 24 24 0 1 1 -48 0zm104-16H304c8.8 0 16 7.2 16 16s-7.2 16-16 16H176c-8.8 0-16-7.2-16-16s7.2-16 16-16zM72 368a24 24 0 1 1 48 0 24 24 0 1 1 -48 0zm88 0c0-8.8 7.2-16 16-16H304c8.8 0 16 7.2 16 16s-7.2 16-16 16H176c-8.8 0-16-7.2-16-16z"},child:[]}]})(e)}function Le(e){return $e({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"},child:[]}]})(e)}function _e(e){return $e({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M96 96V320c0 35.3 28.7 64 64 64H576c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H160c-35.3 0-64 28.7-64 64zm64 160c35.3 0 64 28.7 64 64H160V256zM224 96c0 35.3-28.7 64-64 64V96h64zM576 256v64H512c0-35.3 28.7-64 64-64zM512 96h64v64c-35.3 0-64-28.7-64-64zM288 208a80 80 0 1 1 160 0 80 80 0 1 1 -160 0zM48 120c0-13.3-10.7-24-24-24S0 106.7 0 120V360c0 66.3 53.7 120 120 120H520c13.3 0 24-10.7 24-24s-10.7-24-24-24H120c-39.8 0-72-32.2-72-72V120z"},child:[]}]})(e)}function De(e){return $e({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M448 296c0 66.3-53.7 120-120 120h-8c-17.7 0-32-14.3-32-32s14.3-32 32-32h8c30.9 0 56-25.1 56-56v-8H320c-35.3 0-64-28.7-64-64V160c0-35.3 28.7-64 64-64h64c35.3 0 64 28.7 64 64v32 32 72zm-256 0c0 66.3-53.7 120-120 120H64c-17.7 0-32-14.3-32-32s14.3-32 32-32h8c30.9 0 56-25.1 56-56v-8H64c-35.3 0-64-28.7-64-64V160c0-35.3 28.7-64 64-64h64c35.3 0 64 28.7 64 64v32 32 72z"},child:[]}]})(e)}function Be(e){return $e({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512H418.3c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304H178.3z"},child:[]}]})(e)}function ze(e){return $e({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"},child:[]}]})(e)}r(1844);Object.create(null);const Fe={},qe=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];Ve(t[0])&&Fe[t[0]]||(Ve(t[0])&&(Fe[t[0]]=new Date),function(){if(console?.warn){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];Ve(t[0])&&(t[0]=`react-i18next:: ${t[0]}`),console.warn(...t)}}(...t))},He=(e,t)=>()=>{if(e.isInitialized)t();else{const r=()=>{setTimeout((()=>{e.off("initialized",r)}),0),t()};e.on("initialized",r)}},Ue=(e,t,r)=>{e.loadNamespaces(t,He(e,r))},We=(e,t,r,n)=>{Ve(r)&&(r=[r]),r.forEach((t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)})),e.loadLanguages(t,He(e,n))},Ve=e=>"string"===typeof e,Ge=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Ke={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"\xa9","©":"\xa9","®":"\xae","®":"\xae","…":"\u2026","…":"\u2026","/":"/","/":"/"},Qe=e=>Ke[e];let Ye={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(Ge,Qe)};let Ze;const Je={type:"3rdParty",init(e){!function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Ye={...Ye,...e}}(e.options.react),(e=>{Ze=e})(e)}},Xe=(0,n.createContext)();class et{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach((e=>{this.usedNamespaces[e]??=!0}))}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const tt=(e,t,r,n)=>e.getFixedT(t,r,n),rt=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{i18n:r}=t,{i18n:o,defaultNS:a}=(0,n.useContext)(Xe)||{},i=r||o||Ze;if(i&&!i.reportNamespaces&&(i.reportNamespaces=new et),!i){qe("You will need to pass in an i18next instance by using initReactI18next");const e=(e,t)=>{return Ve(t)?t:"object"===typeof(r=t)&&null!==r&&Ve(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e;var r},t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}i.options.react?.wait&&qe("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const s={...Ye,...i.options.react,...t},{useSuspense:l,keyPrefix:c}=s;let u=e||a||i.options?.defaultNS;u=Ve(u)?[u]:u||["translation"],i.reportNamespaces.addUsedNamespaces?.(u);const d=(i.isInitialized||i.initializedStoreOnce)&&u.every((e=>function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.languages&&t.languages.length?t.hasLoadedNamespace(e,{lng:r.lng,precheck:(t,n)=>{if(r.bindI18n?.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!n(t.isLanguageChangingTo,e))return!1}}):(qe("i18n.languages were undefined or empty",t.languages),!0)}(e,i,s))),f=((e,t,r,o)=>(0,n.useCallback)(tt(e,t,r,o),[e,t,r,o]))(i,t.lng||null,"fallback"===s.nsMode?u:u[0],c),p=()=>f,h=()=>tt(i,t.lng||null,"fallback"===s.nsMode?u:u[0],c),[m,g]=(0,n.useState)(p);let b=u.join();t.lng&&(b=`${t.lng}${b}`);const y=((e,t)=>{const r=(0,n.useRef)();return(0,n.useEffect)((()=>{r.current=t?r.current:e}),[e,t]),r.current})(b),x=(0,n.useRef)(!0);(0,n.useEffect)((()=>{const{bindI18n:e,bindI18nStore:r}=s;x.current=!0,d||l||(t.lng?We(i,t.lng,u,(()=>{x.current&&g(h)})):Ue(i,u,(()=>{x.current&&g(h)}))),d&&y&&y!==b&&x.current&&g(h);const n=()=>{x.current&&g(h)};return e&&i?.on(e,n),r&&i?.store.on(r,n),()=>{x.current=!1,i&&e?.split(" ").forEach((e=>i.off(e,n))),r&&i&&r.split(" ").forEach((e=>i.store.off(e,n)))}}),[i,b]),(0,n.useEffect)((()=>{x.current&&d&&g(p)}),[i,c,d]);const v=[m,i,d];if(v.t=m,v.i18n=i,v.ready=d,d)return v;if(!d&&!l)return v;throw new Promise((e=>{t.lng?We(i,t.lng,u,(()=>e())):Ue(i,u,(()=>e()))}))};var nt=r(579);function ot(e){return $e({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M9.707 16.707a1 1 0 01-1.414 0l-6-6a1 1 0 010-1.414l6-6a1 1 0 011.414 1.414L5.414 9H17a1 1 0 110 2H5.414l4.293 4.293a1 1 0 010 1.414z",clipRule:"evenodd"},child:[]}]})(e)}function at(e){return $e({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M10.293 3.293a1 1 0 011.414 0l6 6a1 1 0 010 1.414l-6 6a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-4.293-4.293a1 1 0 010-1.414z",clipRule:"evenodd"},child:[]}]})(e)}function it(e){return $e({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z",clipRule:"evenodd"},child:[]}]})(e)}function st(e){return $e({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"},child:[]}]})(e)}function lt(e){return $e({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"},child:[]}]})(e)}function ct(e){return $e({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z",clipRule:"evenodd"},child:[]}]})(e)}function ut(e){return $e({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"},child:[]}]})(e)}function dt(e){return $e({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z",clipRule:"evenodd"},child:[]}]})(e)}function ft(e){return $e({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{d:"M17.293 13.293A8 8 0 016.707 2.707a8.001 8.001 0 1010.586 10.586z"},child:[]}]})(e)}function pt(e){return $e({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{d:"M13.586 3.586a2 2 0 112.828 2.828l-.793.793-2.828-2.828.793-.793zM11.379 5.793L3 14.172V17h2.828l8.38-8.379-2.83-2.828z"},child:[]}]})(e)}function ht(e){return $e({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M10 3a1 1 0 011 1v5h5a1 1 0 110 2h-5v5a1 1 0 11-2 0v-5H4a1 1 0 110-2h5V4a1 1 0 011-1z",clipRule:"evenodd"},child:[]}]})(e)}function mt(e){return $e({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{d:"M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"},child:[]}]})(e)}function gt(e){return $e({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M10 2a1 1 0 011 1v1a1 1 0 11-2 0V3a1 1 0 011-1zm4 8a4 4 0 11-8 0 4 4 0 018 0zm-.464 4.95l.707.707a1 1 0 001.414-1.414l-.707-.707a1 1 0 00-1.414 1.414zm2.12-10.607a1 1 0 010 1.414l-.706.707a1 1 0 11-1.414-1.414l.707-.707a1 1 0 011.414 0zM17 11a1 1 0 100-2h-1a1 1 0 100 2h1zm-7 4a1 1 0 011 1v1a1 1 0 11-2 0v-1a1 1 0 011-1zM5.05 6.464A1 1 0 106.465 5.05l-.708-.707a1 1 0 00-1.414 1.414l.707.707zm1.414 8.486l-.707.707a1 1 0 01-1.414-1.414l.707-.707a1 1 0 011.414 1.414zM4 11a1 1 0 100-2H3a1 1 0 000 2h1z",clipRule:"evenodd"},child:[]}]})(e)}function bt(e){return $e({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-6-3a2 2 0 11-4 0 2 2 0 014 0zm-2 4a5 5 0 00-4.546 2.916A5.986 5.986 0 0010 16a5.986 5.986 0 004.546-2.084A5 5 0 0010 11z",clipRule:"evenodd"},child:[]}]})(e)}function yt(e){return $e({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"},child:[]}]})(e)}function xt(e){return $e({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"},child:[]}]})(e)}function vt(e){return $e({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 19l-7-7 7-7"},child:[]}]})(e)}function wt(e){return $e({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 5l7 7-7 7"},child:[]}]})(e)}function kt(e){return $e({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"},child:[]}]})(e)}const jt="-";function Nt(e){const t=function(e){const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]},o=function(e,t){if(!t)return e;return e.map((e=>{let[r,n]=e;return[r,n.map((e=>"string"===typeof e?t+e:"object"===typeof e?Object.fromEntries(Object.entries(e).map((e=>{let[r,n]=e;return[t+r,n]}))):e))]}))}(Object.entries(e.classGroups),r);return o.forEach((e=>{let[r,o]=e;Et(o,n,r,t)})),n}(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:function(e){const r=e.split(jt);return""===r[0]&&1!==r.length&&r.shift(),Ct(r,t)||function(e){if(St.test(e)){const t=St.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}}(e)},getConflictingClassGroupIds:function(e,t){const o=r[e]||[];return t&&n[e]?[...o,...n[e]]:o}}}function Ct(e,t){if(0===e.length)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?Ct(e.slice(1),n):void 0;if(o)return o;if(0===t.validators.length)return;const a=e.join(jt);return t.validators.find((e=>{let{validator:t}=e;return t(a)}))?.classGroupId}const St=/^\[(.+)\]$/;function Et(e,t,r,n){e.forEach((e=>{if("string"!==typeof e){if("function"===typeof e)return e.isThemeGetter?void Et(e(n),t,r,n):void t.validators.push({validator:e,classGroupId:r});Object.entries(e).forEach((e=>{let[o,a]=e;Et(a,At(t,o),r,n)}))}else{(""===e?t:At(t,e)).classGroupId=r}}))}function At(e,t){let r=e;return t.split(jt).forEach((e=>{r.nextPart.has(e)||r.nextPart.set(e,{nextPart:new Map,validators:[]}),r=r.nextPart.get(e)})),r}function Ot(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;function o(o,a){r.set(o,a),t++,t>e&&(t=0,n=r,r=new Map)}return{get(e){let t=r.get(e);return void 0!==t?t:void 0!==(t=n.get(e))?(o(e,t),t):void 0},set(e,t){r.has(e)?r.set(e,t):o(e,t)}}}const $t="!";function Pt(e){const t=e.separator,r=1===t.length,n=t[0],o=t.length;return function(e){const a=[];let i,s=0,l=0;for(let d=0;d<e.length;d++){let c=e[d];if(0===s){if(c===n&&(r||e.slice(d,d+o)===t)){a.push(e.slice(l,d)),l=d+o;continue}if("/"===c){i=d;continue}}"["===c?s++:"]"===c&&s--}const c=0===a.length?e:e.substring(l),u=c.startsWith($t);return{modifiers:a,hasImportantModifier:u,baseClassName:u?c.substring(1):c,maybePostfixModifierPosition:i&&i>l?i-l:void 0}}}const Tt=/\s+/;function It(){let e,t,r=0,n="";for(;r<arguments.length;)(e=arguments[r++])&&(t=Mt(e))&&(n&&(n+=" "),n+=t);return n}function Mt(e){if("string"===typeof e)return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Mt(e[n]))&&(r&&(r+=" "),r+=t);return r}function Rt(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];let o,a,i,s=function(t){const n=r.reduce(((e,t)=>t(e)),e());return o=function(e){return{cache:Ot(e.cacheSize),splitModifiers:Pt(e),...Nt(e)}}(n),a=o.cache.get,i=o.cache.set,s=l,l(t)};function l(e){const t=a(e);if(t)return t;const r=function(e,t){const{splitModifiers:r,getClassGroupId:n,getConflictingClassGroupIds:o}=t,a=new Set;return e.trim().split(Tt).map((e=>{const{modifiers:t,hasImportantModifier:o,baseClassName:a,maybePostfixModifierPosition:i}=r(e);let s=n(i?a.substring(0,i):a),l=Boolean(i);if(!s){if(!i)return{isTailwindClass:!1,originalClassName:e};if(s=n(a),!s)return{isTailwindClass:!1,originalClassName:e};l=!1}const c=function(e){if(e.length<=1)return e;const t=[];let r=[];return e.forEach((e=>{"["===e[0]?(t.push(...r.sort(),e),r=[]):r.push(e)})),t.push(...r.sort()),t}(t).join(":");return{isTailwindClass:!0,modifierId:o?c+$t:c,classGroupId:s,originalClassName:e,hasPostfixModifier:l}})).reverse().filter((e=>{if(!e.isTailwindClass)return!0;const{modifierId:t,classGroupId:r,hasPostfixModifier:n}=e,i=t+r;return!a.has(i)&&(a.add(i),o(r,n).forEach((e=>a.add(t+e))),!0)})).reverse().map((e=>e.originalClassName)).join(" ")}(e,o);return i(e,r),r}return function(){return s(It.apply(null,arguments))}}function Lt(e){const t=t=>t[e]||[];return t.isThemeGetter=!0,t}const _t=/^\[(?:([a-z-]+):)?(.+)\]$/i,Dt=/^\d+\/\d+$/,Bt=new Set(["px","full","screen"]),zt=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ft=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,qt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Ht=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ut=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function Wt(e){return Gt(e)||Bt.has(e)||Dt.test(e)}function Vt(e){return ir(e,"length",sr)}function Gt(e){return Boolean(e)&&!Number.isNaN(Number(e))}function Kt(e){return ir(e,"number",Gt)}function Qt(e){return Boolean(e)&&Number.isInteger(Number(e))}function Yt(e){return e.endsWith("%")&&Gt(e.slice(0,-1))}function Zt(e){return _t.test(e)}function Jt(e){return zt.test(e)}const Xt=new Set(["length","size","percentage"]);function er(e){return ir(e,Xt,lr)}function tr(e){return ir(e,"position",lr)}const rr=new Set(["image","url"]);function nr(e){return ir(e,rr,ur)}function or(e){return ir(e,"",cr)}function ar(){return!0}function ir(e,t,r){const n=_t.exec(e);return!!n&&(n[1]?"string"===typeof t?n[1]===t:t.has(n[1]):r(n[2]))}function sr(e){return Ft.test(e)&&!qt.test(e)}function lr(){return!1}function cr(e){return Ht.test(e)}function ur(e){return Ut.test(e)}Symbol.toStringTag;function dr(){const e=Lt("colors"),t=Lt("spacing"),r=Lt("blur"),n=Lt("brightness"),o=Lt("borderColor"),a=Lt("borderRadius"),i=Lt("borderSpacing"),s=Lt("borderWidth"),l=Lt("contrast"),c=Lt("grayscale"),u=Lt("hueRotate"),d=Lt("invert"),f=Lt("gap"),p=Lt("gradientColorStops"),h=Lt("gradientColorStopPositions"),m=Lt("inset"),g=Lt("margin"),b=Lt("opacity"),y=Lt("padding"),x=Lt("saturate"),v=Lt("scale"),w=Lt("sepia"),k=Lt("skew"),j=Lt("space"),N=Lt("translate"),C=()=>["auto",Zt,t],S=()=>[Zt,t],E=()=>["",Wt,Vt],A=()=>["auto",Gt,Zt],O=()=>["","0",Zt],$=()=>[Gt,Kt],P=()=>[Gt,Zt];return{cacheSize:500,separator:":",theme:{colors:[ar],spacing:[Wt,Vt],blur:["none","",Jt,Zt],brightness:$(),borderColor:[e],borderRadius:["none","","full",Jt,Zt],borderSpacing:S(),borderWidth:E(),contrast:$(),grayscale:O(),hueRotate:P(),invert:O(),gap:S(),gradientColorStops:[e],gradientColorStopPositions:[Yt,Vt],inset:C(),margin:C(),opacity:$(),padding:S(),saturate:$(),scale:$(),sepia:O(),skew:P(),space:S(),translate:S()},classGroups:{aspect:[{aspect:["auto","square","video",Zt]}],container:["container"],columns:[{columns:[Jt]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",Zt]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Qt,Zt]}],basis:[{basis:C()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Zt]}],grow:[{grow:O()}],shrink:[{shrink:O()}],order:[{order:["first","last","none",Qt,Zt]}],"grid-cols":[{"grid-cols":[ar]}],"col-start-end":[{col:["auto",{span:["full",Qt,Zt]},Zt]}],"col-start":[{"col-start":A()}],"col-end":[{"col-end":A()}],"grid-rows":[{"grid-rows":[ar]}],"row-start-end":[{row:["auto",{span:[Qt,Zt]},Zt]}],"row-start":[{"row-start":A()}],"row-end":[{"row-end":A()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Zt]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Zt]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[j]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[j]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Zt,t]}],"min-w":[{"min-w":[Zt,t,"min","max","fit"]}],"max-w":[{"max-w":[Zt,t,"none","full","min","max","fit","prose",{screen:[Jt]},Jt]}],h:[{h:[Zt,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Zt,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Zt,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Zt,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Jt,Vt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Kt]}],"font-family":[{font:[ar]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Zt]}],"line-clamp":[{"line-clamp":["none",Gt,Kt]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Wt,Zt]}],"list-image":[{"list-image":["none",Zt]}],"list-style-type":[{list:["none","disc","decimal",Zt]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Wt,Vt]}],"underline-offset":[{"underline-offset":["auto",Wt,Zt]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:S()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Zt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Zt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",tr]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",er]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},nr]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[Wt,Zt]}],"outline-w":[{outline:[Wt,Vt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:E()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[Wt,Vt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Jt,or]}],"shadow-color":[{shadow:[ar]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Jt,Zt]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[x]}],sepia:[{sepia:[w]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Zt]}],duration:[{duration:P()}],ease:[{ease:["linear","in","out","in-out",Zt]}],delay:[{delay:P()}],animate:[{animate:["none","spin","ping","pulse","bounce",Zt]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[v]}],"scale-x":[{"scale-x":[v]}],"scale-y":[{"scale-y":[v]}],rotate:[{rotate:[Qt,Zt]}],"translate-x":[{"translate-x":[N]}],"translate-y":[{"translate-y":[N]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Zt]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Zt]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Zt]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Wt,Vt,Kt]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const fr=Rt(dr);function pr(e){return null!==e&&"object"===typeof e&&e.constructor===Object}function hr(e){if(!pr(e))return e;const t={};for(const r in e)t[r]=hr(e[r]);return t}function mr(e,t){if(pr(t)&&0===Object.keys(t).length)return hr({...e,...t});const r={...e,...t};if(pr(t)&&pr(e))for(const n in t)pr(t[n])&&n in e&&pr(e[n])?r[n]=mr(e[n],t[n]):r[n]=pr(t[n])?hr(t[n]):t[n];return r}const gr={arrowIcon:"ml-2 h-4 w-4",content:"py-1 focus:outline-none",floating:{animation:"transition-opacity",arrow:{base:"absolute z-10 h-2 w-2 rotate-45",style:{dark:"bg-gray-900 dark:bg-gray-700",light:"bg-white",auto:"bg-white dark:bg-gray-700"},placement:"-4px"},base:"z-10 w-fit divide-y divide-gray-100 rounded shadow focus:outline-none",content:"py-1 text-sm text-gray-700 dark:text-gray-200",divider:"my-1 h-px bg-gray-100 dark:bg-gray-600",header:"block px-4 py-2 text-sm text-gray-700 dark:text-gray-200",hidden:"invisible opacity-0",item:{container:"",base:"flex w-full cursor-pointer items-center justify-start px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 focus:bg-gray-100 focus:outline-none dark:text-gray-200 dark:hover:bg-gray-600 dark:hover:text-white dark:focus:bg-gray-600 dark:focus:text-white",icon:"mr-2 h-4 w-4"},style:{dark:"bg-gray-900 text-white dark:bg-gray-700",light:"border border-gray-200 bg-white text-gray-900",auto:"border border-gray-200 bg-white text-gray-900 dark:border-none dark:bg-gray-700 dark:text-white"},target:"w-fit"},inlineWrapper:"flex items-center"},br={root:{base:"bg-white px-2 py-2.5 dark:border-gray-700 dark:bg-gray-800 sm:px-4",rounded:{on:"rounded",off:""},bordered:{on:"border",off:""},inner:{base:"mx-auto flex flex-wrap items-center justify-between",fluid:{on:"",off:"container"}}},brand:{base:"flex items-center"},collapse:{base:"w-full md:block md:w-auto",list:"mt-4 flex flex-col md:mt-0 md:flex-row md:space-x-8 md:text-sm md:font-medium",hidden:{on:"hidden",off:""}},link:{base:"block py-2 pl-3 pr-4 md:p-0",active:{on:"bg-cyan-700 text-white dark:text-white md:bg-transparent md:text-cyan-700",off:"border-b border-gray-100 text-gray-700 hover:bg-gray-50 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white md:border-0 md:hover:bg-transparent md:hover:text-cyan-700 md:dark:hover:bg-transparent md:dark:hover:text-white"},disabled:{on:"text-gray-400 hover:cursor-not-allowed dark:text-gray-600",off:""}},toggle:{base:"inline-flex items-center rounded-lg p-2 text-sm text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-200 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-600 md:hidden",icon:"h-6 w-6 shrink-0"}},yr={accordion:{root:{base:"divide-y divide-gray-200 border-gray-200 dark:divide-gray-700 dark:border-gray-700",flush:{off:"rounded-lg border",on:"border-b"}},content:{base:"p-5 first:rounded-t-lg last:rounded-b-lg dark:bg-gray-900"},title:{arrow:{base:"h-6 w-6 shrink-0",open:{off:"",on:"rotate-180"}},base:"flex w-full items-center justify-between p-5 text-left font-medium text-gray-500 first:rounded-t-lg last:rounded-b-lg dark:text-gray-400",flush:{off:"hover:bg-gray-100 focus:ring-4 focus:ring-gray-200 dark:hover:bg-gray-800 dark:focus:ring-gray-800",on:"bg-transparent dark:bg-transparent"},heading:"",open:{off:"",on:"bg-gray-100 text-gray-900 dark:bg-gray-800 dark:text-white"}}},alert:{base:"flex flex-col gap-2 p-4 text-sm",borderAccent:"border-t-4",closeButton:{base:"-m-1.5 ml-auto inline-flex h-8 w-8 rounded-lg p-1.5 focus:ring-2",icon:"h-5 w-5",color:{info:"bg-cyan-100 text-cyan-500 hover:bg-cyan-200 focus:ring-cyan-400 dark:bg-cyan-200 dark:text-cyan-600 dark:hover:bg-cyan-300",gray:"bg-gray-100 text-gray-500 hover:bg-gray-200 focus:ring-gray-400 dark:bg-gray-700 dark:text-gray-300 dark:hover:bg-gray-800 dark:hover:text-white",failure:"bg-red-100 text-red-500 hover:bg-red-200 focus:ring-red-400 dark:bg-red-200 dark:text-red-600 dark:hover:bg-red-300",success:"bg-green-100 text-green-500 hover:bg-green-200 focus:ring-green-400 dark:bg-green-200 dark:text-green-600 dark:hover:bg-green-300",warning:"bg-yellow-100 text-yellow-500 hover:bg-yellow-200 focus:ring-yellow-400 dark:bg-yellow-200 dark:text-yellow-600 dark:hover:bg-yellow-300",red:"bg-red-100 text-red-500 hover:bg-red-200 focus:ring-red-400 dark:bg-red-200 dark:text-red-600 dark:hover:bg-red-300",green:"bg-green-100 text-green-500 hover:bg-green-200 focus:ring-green-400 dark:bg-green-200 dark:text-green-600 dark:hover:bg-green-300",yellow:"bg-yellow-100 text-yellow-500 hover:bg-yellow-200 focus:ring-yellow-400 dark:bg-yellow-200 dark:text-yellow-600 dark:hover:bg-yellow-300",blue:"bg-blue-100 text-blue-500 hover:bg-blue-200 focus:ring-blue-400 dark:bg-blue-200 dark:text-blue-600 dark:hover:bg-blue-300",cyan:"bg-cyan-100 text-cyan-500 hover:bg-cyan-200 focus:ring-cyan-400 dark:bg-cyan-200 dark:text-cyan-600 dark:hover:bg-cyan-300",pink:"bg-pink-100 text-pink-500 hover:bg-pink-200 focus:ring-pink-400 dark:bg-pink-200 dark:text-pink-600 dark:hover:bg-pink-300",lime:"bg-lime-100 text-lime-500 hover:bg-lime-200 focus:ring-lime-400 dark:bg-lime-200 dark:text-lime-600 dark:hover:bg-lime-300",dark:"bg-gray-100 text-gray-500 hover:bg-gray-200 focus:ring-gray-400 dark:bg-gray-200 dark:text-gray-600 dark:hover:bg-gray-300",indigo:"bg-indigo-100 text-indigo-500 hover:bg-indigo-200 focus:ring-indigo-400 dark:bg-indigo-200 dark:text-indigo-600 dark:hover:bg-indigo-300",purple:"bg-purple-100 text-purple-500 hover:bg-purple-200 focus:ring-purple-400 dark:bg-purple-200 dark:text-purple-600 dark:hover:bg-purple-300",teal:"bg-teal-100 text-teal-500 hover:bg-teal-200 focus:ring-teal-400 dark:bg-teal-200 dark:text-teal-600 dark:hover:bg-teal-300",light:"bg-gray-50 text-gray-500 hover:bg-gray-100 focus:ring-gray-200 dark:bg-gray-600 dark:text-gray-200 dark:hover:bg-gray-700 dark:hover:text-white"}},color:{info:"border-cyan-500 bg-cyan-100 text-cyan-700 dark:bg-cyan-200 dark:text-cyan-800",gray:"border-gray-500 bg-gray-100 text-gray-700 dark:bg-gray-700 dark:text-gray-300",failure:"border-red-500 bg-red-100 text-red-700 dark:bg-red-200 dark:text-red-800",success:"border-green-500 bg-green-100 text-green-700 dark:bg-green-200 dark:text-green-800",warning:"border-yellow-500 bg-yellow-100 text-yellow-700 dark:bg-yellow-200 dark:text-yellow-800",red:"border-red-500 bg-red-100 text-red-700 dark:bg-red-200 dark:text-red-800",green:"border-green-500 bg-green-100 text-green-700 dark:bg-green-200 dark:text-green-800",yellow:"border-yellow-500 bg-yellow-100 text-yellow-700 dark:bg-yellow-200 dark:text-yellow-800",blue:"border-blue-500 bg-blue-100 text-blue-700 dark:bg-blue-200 dark:text-blue-800",cyan:"border-cyan-500 bg-cyan-100 text-cyan-700 dark:bg-cyan-200 dark:text-cyan-800",pink:"border-pink-500 bg-pink-100 text-pink-700 dark:bg-pink-200 dark:text-pink-800",lime:"border-lime-500 bg-lime-100 text-lime-700 dark:bg-lime-200 dark:text-lime-800",dark:"border-gray-600 bg-gray-800 text-gray-200 dark:bg-gray-900 dark:text-gray-300",indigo:"border-indigo-500 bg-indigo-100 text-indigo-700 dark:bg-indigo-200 dark:text-indigo-800",purple:"border-purple-500 bg-purple-100 text-purple-700 dark:bg-purple-200 dark:text-purple-800",teal:"border-teal-500 bg-teal-100 text-teal-700 dark:bg-teal-200 dark:text-teal-800",light:"border-gray-400 bg-gray-50 text-gray-600 dark:bg-gray-500 dark:text-gray-200"},icon:"mr-3 inline h-5 w-5 flex-shrink-0",rounded:"rounded-lg",wrapper:"flex items-center"},avatar:{root:{base:"flex items-center justify-center space-x-4 rounded",bordered:"p-1 ring-2",rounded:"rounded-full",color:{dark:"ring-gray-800 dark:ring-gray-800",failure:"ring-red-500 dark:ring-red-700",gray:"ring-gray-500 dark:ring-gray-400",info:"ring-cyan-400 dark:ring-cyan-800",light:"ring-gray-300 dark:ring-gray-500",purple:"ring-purple-500 dark:ring-purple-600",success:"ring-green-500 dark:ring-green-500",warning:"ring-yellow-300 dark:ring-yellow-500",pink:"ring-pink-500 dark:ring-pink-500"},img:{base:"rounded",off:"relative overflow-hidden bg-gray-100 dark:bg-gray-600",on:"",placeholder:"absolute -bottom-1 h-auto w-auto text-gray-400"},size:{xs:"h-6 w-6",sm:"h-8 w-8",md:"h-10 w-10",lg:"h-20 w-20",xl:"h-36 w-36"},stacked:"ring-2 ring-gray-300 dark:ring-gray-500",statusPosition:{"bottom-left":"-bottom-1 -left-1","bottom-center":"-bottom-1","bottom-right":"-bottom-1 -right-1","top-left":"-left-1 -top-1","top-center":"-top-1","top-right":"-right-1 -top-1","center-right":"-right-1",center:"","center-left":"-left-1"},status:{away:"bg-yellow-400",base:"absolute h-3.5 w-3.5 rounded-full border-2 border-white dark:border-gray-800",busy:"bg-red-400",offline:"bg-gray-400",online:"bg-green-400"},initials:{text:"font-medium text-gray-600 dark:text-gray-300",base:"relative inline-flex items-center justify-center overflow-hidden bg-gray-100 dark:bg-gray-600"}},group:{base:"flex -space-x-4"},groupCounter:{base:"relative flex h-10 w-10 items-center justify-center rounded-full bg-gray-700 text-xs font-medium text-white ring-2 ring-gray-300 hover:bg-gray-600 dark:ring-gray-500"}},badge:{root:{base:"flex h-fit items-center gap-1 font-semibold",color:{info:"bg-cyan-100 text-cyan-800 group-hover:bg-cyan-200 dark:bg-cyan-200 dark:text-cyan-800 dark:group-hover:bg-cyan-300",gray:"bg-gray-100 text-gray-800 group-hover:bg-gray-200 dark:bg-gray-700 dark:text-gray-300 dark:group-hover:bg-gray-600",failure:"bg-red-100 text-red-800 group-hover:bg-red-200 dark:bg-red-200 dark:text-red-900 dark:group-hover:bg-red-300",success:"bg-green-100 text-green-800 group-hover:bg-green-200 dark:bg-green-200 dark:text-green-900 dark:group-hover:bg-green-300",warning:"bg-yellow-100 text-yellow-800 group-hover:bg-yellow-200 dark:bg-yellow-200 dark:text-yellow-900 dark:group-hover:bg-yellow-300",indigo:"bg-indigo-100 text-indigo-800 group-hover:bg-indigo-200 dark:bg-indigo-200 dark:text-indigo-900 dark:group-hover:bg-indigo-300",purple:"bg-purple-100 text-purple-800 group-hover:bg-purple-200 dark:bg-purple-200 dark:text-purple-900 dark:group-hover:bg-purple-300",pink:"bg-pink-100 text-pink-800 group-hover:bg-pink-200 dark:bg-pink-200 dark:text-pink-900 dark:group-hover:bg-pink-300",blue:"bg-blue-100 text-blue-800 group-hover:bg-blue-200 dark:bg-blue-200 dark:text-blue-900 dark:group-hover:bg-blue-300",cyan:"bg-cyan-100 text-cyan-800 group-hover:bg-cyan-200 dark:bg-cyan-200 dark:text-cyan-900 dark:group-hover:bg-cyan-300",dark:"bg-gray-600 text-gray-100 group-hover:bg-gray-500 dark:bg-gray-900 dark:text-gray-200 dark:group-hover:bg-gray-700",light:"bg-gray-200 text-gray-800 group-hover:bg-gray-300 dark:bg-gray-400 dark:text-gray-900 dark:group-hover:bg-gray-500",green:"bg-green-100 text-green-800 group-hover:bg-green-200 dark:bg-green-200 dark:text-green-900 dark:group-hover:bg-green-300",lime:"bg-lime-100 text-lime-800 group-hover:bg-lime-200 dark:bg-lime-200 dark:text-lime-900 dark:group-hover:bg-lime-300",red:"bg-red-100 text-red-800 group-hover:bg-red-200 dark:bg-red-200 dark:text-red-900 dark:group-hover:bg-red-300",teal:"bg-teal-100 text-teal-800 group-hover:bg-teal-200 dark:bg-teal-200 dark:text-teal-900 dark:group-hover:bg-teal-300",yellow:"bg-yellow-100 text-yellow-800 group-hover:bg-yellow-200 dark:bg-yellow-200 dark:text-yellow-900 dark:group-hover:bg-yellow-300"},href:"group",size:{xs:"p-1 text-xs",sm:"p-1.5 text-sm"}},icon:{off:"rounded px-2 py-0.5",on:"rounded-full p-1.5",size:{xs:"h-3 w-3",sm:"h-3.5 w-3.5"}}},blockquote:{root:{base:"text-xl font-semibold italic text-gray-900 dark:text-white"}},breadcrumb:{root:{base:"",list:"flex items-center"},item:{base:"group flex items-center",chevron:"mx-1 h-4 w-4 text-gray-400 group-first:hidden md:mx-2",href:{off:"flex items-center text-sm font-medium text-gray-500 dark:text-gray-400",on:"flex items-center text-sm font-medium text-gray-700 hover:text-gray-900 dark:text-gray-400 dark:hover:text-white"},icon:"mr-2 h-4 w-4"}},button:{base:"group relative flex items-stretch justify-center p-0.5 text-center font-medium transition-[color,background-color,border-color,text-decoration-color,fill,stroke,box-shadow] focus:z-10 focus:outline-none",fullSized:"w-full",color:{dark:"border border-transparent bg-gray-800 text-white focus:ring-4 focus:ring-gray-300 enabled:hover:bg-gray-900 dark:border-gray-700 dark:bg-gray-800 dark:focus:ring-gray-800 dark:enabled:hover:bg-gray-700",failure:"border border-transparent bg-red-700 text-white focus:ring-4 focus:ring-red-300 enabled:hover:bg-red-800 dark:bg-red-600 dark:focus:ring-red-900 dark:enabled:hover:bg-red-700",gray:":ring-cyan-700 border border-gray-200 bg-white text-gray-900 focus:text-cyan-700 focus:ring-4 enabled:hover:bg-gray-100 enabled:hover:text-cyan-700 dark:border-gray-600 dark:bg-transparent dark:text-gray-400 dark:enabled:hover:bg-gray-700 dark:enabled:hover:text-white",info:"border border-transparent bg-cyan-700 text-white focus:ring-4 focus:ring-cyan-300 enabled:hover:bg-cyan-800 dark:bg-cyan-600 dark:focus:ring-cyan-800 dark:enabled:hover:bg-cyan-700",light:"border border-gray-300 bg-white text-gray-900 focus:ring-4 focus:ring-cyan-300 enabled:hover:bg-gray-100 dark:border-gray-600 dark:bg-gray-600 dark:text-white dark:focus:ring-gray-700 dark:enabled:hover:border-gray-700 dark:enabled:hover:bg-gray-700",purple:"border border-transparent bg-purple-700 text-white focus:ring-4 focus:ring-purple-300 enabled:hover:bg-purple-800 dark:bg-purple-600 dark:focus:ring-purple-900 dark:enabled:hover:bg-purple-700",success:"border border-transparent bg-green-700 text-white focus:ring-4 focus:ring-green-300 enabled:hover:bg-green-800 dark:bg-green-600 dark:focus:ring-green-800 dark:enabled:hover:bg-green-700",warning:"border border-transparent bg-yellow-400 text-white focus:ring-4 focus:ring-yellow-300 enabled:hover:bg-yellow-500 dark:focus:ring-yellow-900",blue:"border border-transparent bg-blue-700 text-white focus:ring-4 focus:ring-blue-300 enabled:hover:bg-blue-800 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800",cyan:"border border-cyan-300 bg-white text-cyan-900 focus:ring-4 focus:ring-cyan-300 enabled:hover:bg-cyan-100 dark:border-cyan-600 dark:bg-cyan-600 dark:text-white dark:focus:ring-cyan-700 dark:enabled:hover:border-cyan-700 dark:enabled:hover:bg-cyan-700",green:"border border-green-300 bg-white text-green-900 focus:ring-4 focus:ring-green-300 enabled:hover:bg-green-100 dark:border-green-600 dark:bg-green-600 dark:text-white dark:focus:ring-green-700 dark:enabled:hover:border-green-700 dark:enabled:hover:bg-green-700",indigo:"border border-indigo-300 bg-white text-indigo-900 focus:ring-4 focus:ring-indigo-300 enabled:hover:bg-indigo-100 dark:border-indigo-600 dark:bg-indigo-600 dark:text-white dark:focus:ring-indigo-700 dark:enabled:hover:border-indigo-700 dark:enabled:hover:bg-indigo-700",lime:"border border-lime-300 bg-white text-lime-900 focus:ring-4 focus:ring-lime-300 enabled:hover:bg-lime-100 dark:border-lime-600 dark:bg-lime-600 dark:text-white dark:focus:ring-lime-700 dark:enabled:hover:border-lime-700 dark:enabled:hover:bg-lime-700",pink:"border border-pink-300 bg-white text-pink-900 focus:ring-4 focus:ring-pink-300 enabled:hover:bg-pink-100 dark:border-pink-600 dark:bg-pink-600 dark:text-white dark:focus:ring-pink-700 dark:enabled:hover:border-pink-700 dark:enabled:hover:bg-pink-700",red:"border border-red-300 bg-white text-red-900 focus:ring-4 focus:ring-red-300 enabled:hover:bg-red-100 dark:border-red-600 dark:bg-red-600 dark:text-white dark:focus:ring-red-700 dark:enabled:hover:border-red-700 dark:enabled:hover:bg-red-700",teal:"border border-teal-300 bg-white text-teal-900 focus:ring-4 focus:ring-teal-300 enabled:hover:bg-teal-100 dark:border-teal-600 dark:bg-teal-600 dark:text-white dark:focus:ring-teal-700 dark:enabled:hover:border-teal-700 dark:enabled:hover:bg-teal-700",yellow:"border border-yellow-300 bg-white text-yellow-900 focus:ring-4 focus:ring-yellow-300 enabled:hover:bg-yellow-100 dark:border-yellow-600 dark:bg-yellow-600 dark:text-white dark:focus:ring-yellow-700 dark:enabled:hover:border-yellow-700 dark:enabled:hover:bg-yellow-700"},disabled:"cursor-not-allowed opacity-50",isProcessing:"cursor-wait",spinnerSlot:"absolute top-0 flex h-full items-center",spinnerLeftPosition:{xs:"left-2",sm:"left-3",md:"left-4",lg:"left-5",xl:"left-6"},gradient:{cyan:"bg-gradient-to-r from-cyan-400 via-cyan-500 to-cyan-600 text-white focus:ring-4 focus:ring-cyan-300 enabled:hover:bg-gradient-to-br dark:focus:ring-cyan-800",failure:"bg-gradient-to-r from-red-400 via-red-500 to-red-600 text-white focus:ring-4 focus:ring-red-300 enabled:hover:bg-gradient-to-br dark:focus:ring-red-800",info:"bg-gradient-to-r from-cyan-500 via-cyan-600 to-cyan-700 text-white focus:ring-4 focus:ring-cyan-300 enabled:hover:bg-gradient-to-br dark:focus:ring-cyan-800",lime:"bg-gradient-to-r from-lime-200 via-lime-400 to-lime-500 text-gray-900 focus:ring-4 focus:ring-lime-300 enabled:hover:bg-gradient-to-br dark:focus:ring-lime-800",pink:"bg-gradient-to-r from-pink-400 via-pink-500 to-pink-600 text-white focus:ring-4 focus:ring-pink-300 enabled:hover:bg-gradient-to-br dark:focus:ring-pink-800",purple:"bg-gradient-to-r from-purple-500 via-purple-600 to-purple-700 text-white focus:ring-4 focus:ring-purple-300 enabled:hover:bg-gradient-to-br dark:focus:ring-purple-800",success:"bg-gradient-to-r from-green-400 via-green-500 to-green-600 text-white focus:ring-4 focus:ring-green-300 enabled:hover:bg-gradient-to-br dark:focus:ring-green-800",teal:"bg-gradient-to-r from-teal-400 via-teal-500 to-teal-600 text-white focus:ring-4 focus:ring-teal-300 enabled:hover:bg-gradient-to-br dark:focus:ring-teal-800"},gradientDuoTone:{cyanToBlue:"bg-gradient-to-r from-cyan-500 to-cyan-500 text-white focus:ring-4 focus:ring-cyan-300 enabled:hover:bg-gradient-to-bl dark:focus:ring-cyan-800",greenToBlue:"bg-gradient-to-br from-green-400 to-cyan-600 text-white focus:ring-4 focus:ring-green-200 enabled:hover:bg-gradient-to-bl dark:focus:ring-green-800",pinkToOrange:"bg-gradient-to-br from-pink-500 to-orange-400 text-white focus:ring-4 focus:ring-pink-200 enabled:hover:bg-gradient-to-bl dark:focus:ring-pink-800",purpleToBlue:"bg-gradient-to-br from-purple-600 to-cyan-500 text-white focus:ring-4 focus:ring-cyan-300 enabled:hover:bg-gradient-to-bl dark:focus:ring-cyan-800",purpleToPink:"bg-gradient-to-r from-purple-500 to-pink-500 text-white focus:ring-4 focus:ring-purple-200 enabled:hover:bg-gradient-to-l dark:focus:ring-purple-800",redToYellow:"bg-gradient-to-r from-red-200 via-red-300 to-yellow-200 text-gray-900 focus:ring-4 focus:ring-red-100 enabled:hover:bg-gradient-to-bl dark:focus:ring-red-400",tealToLime:"bg-gradient-to-r from-teal-200 to-lime-200 text-gray-900 focus:ring-4 focus:ring-lime-200 enabled:hover:bg-gradient-to-l enabled:hover:from-teal-200 enabled:hover:to-lime-200 enabled:hover:text-gray-900 dark:focus:ring-teal-700"},inner:{base:"flex items-stretch transition-all duration-200",position:{none:"",start:"rounded-r-none",middle:"rounded-none",end:"rounded-l-none"},outline:"border border-transparent",isProcessingPadding:{xs:"pl-8",sm:"pl-10",md:"pl-12",lg:"pl-16",xl:"pl-20"}},label:"ml-2 inline-flex h-4 w-4 items-center justify-center rounded-full bg-cyan-200 text-xs font-semibold text-cyan-800",outline:{color:{gray:"border border-gray-900 dark:border-white",default:"border-0",light:""},off:"",on:"flex w-full justify-center bg-white text-gray-900 transition-all duration-75 ease-in group-enabled:group-hover:bg-opacity-0 group-enabled:group-hover:text-inherit dark:bg-gray-900 dark:text-white",pill:{off:"rounded-md",on:"rounded-full"}},pill:{off:"rounded-lg",on:"rounded-full"},size:{xs:"px-2 py-1 text-xs",sm:"px-3 py-1.5 text-sm",md:"px-4 py-2 text-sm",lg:"px-5 py-2.5 text-base",xl:"px-6 py-3 text-base"}},buttonGroup:{base:"inline-flex",position:{none:"",start:"rounded-r-none focus:ring-2",middle:"rounded-none border-l-0 pl-0 focus:ring-2",end:"rounded-l-none border-l-0 pl-0 focus:ring-2"}},card:{root:{base:"flex rounded-lg border border-gray-200 bg-white shadow-md dark:border-gray-700 dark:bg-gray-800",children:"flex h-full flex-col justify-center gap-4 p-6",horizontal:{off:"flex-col",on:"flex-col md:max-w-xl md:flex-row"},href:"hover:bg-gray-100 dark:hover:bg-gray-700"},img:{base:"",horizontal:{off:"rounded-t-lg",on:"h-96 w-full rounded-t-lg object-cover md:h-auto md:w-48 md:rounded-none md:rounded-l-lg"}}},carousel:{root:{base:"relative h-full w-full",leftControl:"absolute left-0 top-0 flex h-full items-center justify-center px-4 focus:outline-none",rightControl:"absolute right-0 top-0 flex h-full items-center justify-center px-4 focus:outline-none"},indicators:{active:{off:"bg-white/50 hover:bg-white dark:bg-gray-800/50 dark:hover:bg-gray-800",on:"bg-white dark:bg-gray-800"},base:"h-3 w-3 rounded-full",wrapper:"absolute bottom-5 left-1/2 flex -translate-x-1/2 space-x-3"},item:{base:"absolute left-1/2 top-1/2 block w-full -translate-x-1/2 -translate-y-1/2",wrapper:{off:"w-full flex-shrink-0 transform cursor-default snap-center",on:"w-full flex-shrink-0 transform cursor-grab snap-center"}},control:{base:"inline-flex h-8 w-8 items-center justify-center rounded-full bg-white/30 group-hover:bg-white/50 group-focus:outline-none group-focus:ring-4 group-focus:ring-white dark:bg-gray-800/30 dark:group-hover:bg-gray-800/60 dark:group-focus:ring-gray-800/70 sm:h-10 sm:w-10",icon:"h-5 w-5 text-white dark:text-gray-800 sm:h-6 sm:w-6"},scrollContainer:{base:"flex h-full snap-mandatory overflow-y-hidden overflow-x-scroll scroll-smooth rounded-lg",snap:"snap-x"}},checkbox:{root:{base:"h-4 w-4 rounded border border-gray-300 bg-gray-100 focus:ring-2 dark:border-gray-600 dark:bg-gray-700",color:{default:"text-cyan-600 focus:ring-cyan-600 dark:ring-offset-gray-800 dark:focus:ring-cyan-600",dark:"text-gray-800 focus:ring-gray-800 dark:ring-offset-gray-800 dark:focus:ring-gray-800",failure:"text-red-900 focus:ring-red-900 dark:ring-offset-red-900 dark:focus:ring-red-900",gray:"text-gray-900 focus:ring-gray-900 dark:ring-offset-gray-900 dark:focus:ring-gray-900",info:"text-cyan-800 focus:ring-cyan-800 dark:ring-offset-gray-800 dark:focus:ring-cyan-800",light:"text-gray-900 focus:ring-gray-900 dark:ring-offset-gray-900 dark:focus:ring-gray-900",purple:"text-purple-600 focus:ring-purple-600 dark:ring-offset-purple-600 dark:focus:ring-purple-600",success:"text-green-800 focus:ring-green-800 dark:ring-offset-green-800 dark:focus:ring-green-800",warning:"text-yellow-400 focus:ring-yellow-400 dark:ring-offset-yellow-400 dark:focus:ring-yellow-400",blue:"text-blue-700 focus:ring-blue-600 dark:ring-offset-blue-700 dark:focus:ring-blue-700",cyan:"text-cyan-600 focus:ring-cyan-600 dark:ring-offset-cyan-600 dark:focus:ring-cyan-600",green:"text-green-600 focus:ring-green-600 dark:ring-offset-green-600 dark:focus:ring-green-600",indigo:"text-indigo-700 focus:ring-indigo-700 dark:ring-offset-indigo-700 dark:focus:ring-indigo-700",lime:"text-lime-700 focus:ring-lime-700 dark:ring-offset-lime-700 dark:focus:ring-lime-700",pink:"text-pink-600 focus:ring-pink-600 dark:ring-offset-pink-600 dark:focus:ring-pink-600",red:"text-red-600 focus:ring-red-600 dark:ring-offset-red-600 dark:focus:ring-red-600",teal:"text-teal-600 focus:ring-teal-600 dark:ring-offset-teal-600 dark:focus:ring-teal-600",yellow:"text-yellow-400 focus:ring-yellow-400 dark:ring-offset-yellow-400 dark:focus:ring-yellow-400"}}},clipboard:{button:{base:"inline-flex w-full items-center justify-center rounded-lg bg-blue-700 px-5 py-3 hover:bg-blue-800 focus:outline-none focus:ring-4 focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800",label:"text-center text-sm font-medium text-white sm:w-auto"},withIcon:{base:"absolute end-2 top-1/2 inline-flex -translate-y-1/2 items-center justify-center rounded-lg p-2 text-gray-500 hover:bg-gray-100 dark:text-gray-400 dark:hover:bg-gray-800",icon:{defaultIcon:"h-4 w-4",successIcon:"h-4 w-4 text-blue-700 dark:text-blue-500"}},withIconText:{base:"absolute end-2.5 top-1/2 inline-flex -translate-y-1/2 items-center justify-center rounded-lg border border-gray-200 bg-white px-2.5 py-2 text-gray-900 hover:bg-gray-100 dark:border-gray-600 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-gray-700",icon:{defaultIcon:"me-1.5 h-3 w-3",successIcon:"me-1.5 h-3 w-3 text-blue-700 dark:text-blue-500"},label:{base:"inline-flex items-center",defaultText:"text-xs font-semibold",successText:"text-xs font-semibold text-blue-700 dark:text-blue-500"}}},datepicker:{root:{base:"relative"},popup:{root:{base:"absolute top-10 z-50 block pt-2",inline:"relative top-0 z-auto",inner:"inline-block rounded-lg bg-white p-4 shadow-lg dark:bg-gray-700"},header:{base:"",title:"px-2 py-3 text-center font-semibold text-gray-900 dark:text-white",selectors:{base:"mb-2 flex justify-between",button:{base:"rounded-lg bg-white px-5 py-2.5 text-sm font-semibold text-gray-900 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-200 dark:bg-gray-700 dark:text-white dark:hover:bg-gray-600",prev:"",next:"",view:""}}},view:{base:"p-1"},footer:{base:"mt-2 flex space-x-2",button:{base:"w-full rounded-lg px-5 py-2 text-center text-sm font-medium focus:ring-4 focus:ring-cyan-300",today:"bg-cyan-700 text-white hover:bg-cyan-800 dark:bg-cyan-600 dark:hover:bg-cyan-700",clear:"border border-gray-300 bg-white text-gray-900 hover:bg-gray-100 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:hover:bg-gray-600"}}},views:{days:{header:{base:"mb-1 grid grid-cols-7",title:"h-6 text-center text-sm font-medium leading-6 text-gray-500 dark:text-gray-400"},items:{base:"grid w-64 grid-cols-7",item:{base:"block flex-1 cursor-pointer rounded-lg border-0 text-center text-sm font-semibold leading-9 text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-600",selected:"bg-cyan-700 text-white hover:bg-cyan-600",disabled:"text-gray-500"}}},months:{items:{base:"grid w-64 grid-cols-4",item:{base:"block flex-1 cursor-pointer rounded-lg border-0 text-center text-sm font-semibold leading-9 text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-600",selected:"bg-cyan-700 text-white hover:bg-cyan-600",disabled:"text-gray-500"}}},years:{items:{base:"grid w-64 grid-cols-4",item:{base:"block flex-1 cursor-pointer rounded-lg border-0 text-center text-sm font-semibold leading-9 text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-600",selected:"bg-cyan-700 text-white hover:bg-cyan-600",disabled:"text-gray-500"}}},decades:{items:{base:"grid w-64 grid-cols-4",item:{base:"block flex-1 cursor-pointer rounded-lg border-0 text-center text-sm font-semibold leading-9 text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-600",selected:"bg-cyan-700 text-white hover:bg-cyan-600",disabled:"text-gray-500"}}}}},darkThemeToggle:{root:{base:"rounded-lg p-2.5 text-sm text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-4 focus:ring-gray-200 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-700",icon:"h-5 w-5"}},drawer:{root:{base:"fixed z-40 overflow-y-auto bg-white p-4 transition-transform dark:bg-gray-800",backdrop:"fixed inset-0 z-30 bg-gray-900/50 dark:bg-gray-900/80",edge:"bottom-16",position:{top:{on:"left-0 right-0 top-0 w-full transform-none",off:"left-0 right-0 top-0 w-full -translate-y-full"},right:{on:"right-0 top-0 h-screen w-80 transform-none",off:"right-0 top-0 h-screen w-80 translate-x-full"},bottom:{on:"bottom-0 left-0 right-0 w-full transform-none",off:"bottom-0 left-0 right-0 w-full translate-y-full"},left:{on:"left-0 top-0 h-screen w-80 transform-none",off:"left-0 top-0 h-screen w-80 -translate-x-full"}}},header:{inner:{closeButton:"absolute end-2.5 top-2.5 flex h-8 w-8 items-center justify-center rounded-lg bg-transparent text-sm text-gray-400 hover:bg-gray-200 hover:text-gray-900 dark:hover:bg-gray-600 dark:hover:text-white",closeIcon:"h-4 w-4",titleIcon:"me-2.5 h-4 w-4",titleText:"mb-4 inline-flex items-center text-base font-semibold text-gray-500 dark:text-gray-400"},collapsed:{on:"hidden",off:"block"}},items:{base:""}},dropdown:gr,fileInput:{root:{base:"flex"},field:{base:"relative w-full",input:{base:"block w-full overflow-hidden rounded-lg border disabled:cursor-not-allowed disabled:opacity-50",sizes:{sm:"sm:text-xs",md:"text-sm",lg:"sm:text-base"},colors:{gray:"border-gray-300 bg-gray-50 text-gray-900 focus:border-cyan-500 focus:ring-cyan-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",info:"border-cyan-500 bg-cyan-50 text-cyan-900 placeholder-cyan-700 focus:border-cyan-500 focus:ring-cyan-500 dark:border-cyan-400 dark:bg-cyan-100 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",failure:"border-red-500 bg-red-50 text-red-900 placeholder-red-700 focus:border-red-500 focus:ring-red-500 dark:border-red-400 dark:bg-red-100 dark:focus:border-red-500 dark:focus:ring-red-500",warning:"border-yellow-500 bg-yellow-50 text-yellow-900 placeholder-yellow-700 focus:border-yellow-500 focus:ring-yellow-500 dark:border-yellow-400 dark:bg-yellow-100 dark:focus:border-yellow-500 dark:focus:ring-yellow-500",success:"border-green-500 bg-green-50 text-green-900 placeholder-green-700 focus:border-green-500 focus:ring-green-500 dark:border-green-400 dark:bg-green-100 dark:focus:border-green-500 dark:focus:ring-green-500"}}}},floatingLabel:{input:{default:{filled:{sm:"peer block w-full appearance-none rounded-t-lg border-0 border-b-2 border-gray-300 bg-gray-50 px-2.5 pb-2.5 pt-5 text-xs text-gray-900 focus:border-blue-600 focus:outline-none focus:ring-0 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:focus:border-blue-500",md:"peer block w-full appearance-none rounded-t-lg border-0 border-b-2 border-gray-300 bg-gray-50 px-2.5 pb-2.5 pt-5 text-sm text-gray-900 focus:border-blue-600 focus:outline-none focus:ring-0 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:focus:border-blue-500"},outlined:{sm:"peer block w-full appearance-none rounded-lg border border-gray-300 bg-transparent px-2.5 pb-2.5 pt-4 text-xs text-gray-900 focus:border-blue-600 focus:outline-none focus:ring-0 dark:border-gray-600 dark:text-white dark:focus:border-blue-500",md:"peer block w-full appearance-none rounded-lg border border-gray-300 bg-transparent px-2.5 pb-2.5 pt-4 text-sm text-gray-900 focus:border-blue-600 focus:outline-none focus:ring-0 dark:border-gray-600 dark:text-white dark:focus:border-blue-500"},standard:{sm:"peer block w-full appearance-none border-0 border-b-2 border-gray-300 bg-transparent px-0 py-2.5 text-xs text-gray-900 focus:border-blue-600 focus:outline-none focus:ring-0 dark:border-gray-600 dark:text-white dark:focus:border-blue-500",md:"peer block w-full appearance-none border-0 border-b-2 border-gray-300 bg-transparent px-0 py-2.5 text-sm text-gray-900 focus:border-blue-600 focus:outline-none focus:ring-0 dark:border-gray-600 dark:text-white dark:focus:border-blue-500"}},success:{filled:{sm:"peer block w-full appearance-none rounded-t-lg border-0 border-b-2 border-green-600 bg-gray-50 px-2.5 pb-2.5 pt-5 text-xs text-gray-900 focus:border-green-600 focus:outline-none focus:ring-0 dark:border-green-500 dark:bg-gray-700 dark:text-white dark:focus:border-green-500",md:"peer block w-full appearance-none rounded-t-lg border-0 border-b-2 border-green-600 bg-gray-50 px-2.5 pb-2.5 pt-5 text-sm text-gray-900 focus:border-green-600 focus:outline-none focus:ring-0 dark:border-green-500 dark:bg-gray-700 dark:text-white dark:focus:border-green-500"},outlined:{sm:"peer block w-full appearance-none rounded-lg border border-green-600 bg-transparent px-2.5 pb-2.5 pt-4 text-xs text-gray-900 focus:border-green-600 focus:outline-none focus:ring-0 dark:border-green-500 dark:text-white dark:focus:border-green-500",md:"peer block w-full appearance-none rounded-lg border border-green-600 bg-transparent px-2.5 pb-2.5 pt-4 text-sm text-gray-900 focus:border-green-600 focus:outline-none focus:ring-0 dark:border-green-500 dark:text-white dark:focus:border-green-500"},standard:{sm:"peer block w-full appearance-none border-0 border-b-2 border-green-600 bg-transparent px-0 py-2.5 text-xs text-gray-900 focus:border-green-600 focus:outline-none focus:ring-0 dark:border-green-500 dark:text-white dark:focus:border-green-500",md:"peer block w-full appearance-none border-0 border-b-2 border-green-600 bg-transparent px-0 py-2.5 text-sm text-gray-900 focus:border-green-600 focus:outline-none focus:ring-0 dark:border-green-500 dark:text-white dark:focus:border-green-500"}},error:{filled:{sm:"peer block w-full appearance-none rounded-t-lg border-0 border-b-2 border-red-600 bg-gray-50 px-2.5 pb-2.5 pt-5 text-xs text-gray-900 focus:border-red-600 focus:outline-none focus:ring-0 dark:border-red-500 dark:bg-gray-700 dark:text-white dark:focus:border-red-500",md:"peer block w-full appearance-none rounded-t-lg border-0 border-b-2 border-red-600 bg-gray-50 px-2.5 pb-2.5 pt-5 text-sm text-gray-900 focus:border-red-600 focus:outline-none focus:ring-0 dark:border-red-500 dark:bg-gray-700 dark:text-white dark:focus:border-red-500"},outlined:{sm:"peer block w-full appearance-none rounded-lg border border-red-600 bg-transparent px-2.5 pb-2.5 pt-4 text-xs text-gray-900 focus:border-red-600 focus:outline-none focus:ring-0 dark:border-red-500 dark:text-white dark:focus:border-red-500",md:"peer block w-full appearance-none rounded-lg border border-red-600 bg-transparent px-2.5 pb-2.5 pt-4 text-sm text-gray-900 focus:border-red-600 focus:outline-none focus:ring-0 dark:border-red-500 dark:text-white dark:focus:border-red-500"},standard:{sm:"peer block w-full appearance-none border-0 border-b-2 border-red-600 bg-transparent px-0 py-2.5 text-xs text-gray-900 focus:border-red-600 focus:outline-none focus:ring-0 dark:border-red-500 dark:text-white dark:focus:border-red-500",md:"peer block w-full appearance-none border-0 border-b-2 border-red-600 bg-transparent px-0 py-2.5 text-sm text-gray-900 focus:border-red-600 focus:outline-none focus:ring-0 dark:border-red-500 dark:text-white dark:focus:border-red-500"}}},label:{default:{filled:{sm:"absolute left-2.5 top-4 z-10 origin-[0] -translate-y-4 scale-75 text-xs text-gray-500 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:text-blue-600 dark:text-gray-400 peer-focus:dark:text-blue-500",md:"absolute left-2.5 top-4 z-10 origin-[0] -translate-y-4 scale-75 text-sm text-gray-500 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:text-blue-600 dark:text-gray-400 peer-focus:dark:text-blue-500"},outlined:{sm:"absolute left-1 top-2 z-10 origin-[0] -translate-y-4 scale-75 bg-white px-2 text-xs text-gray-500 transition-transform duration-300 peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:scale-100 peer-focus:top-2 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:px-2 peer-focus:text-blue-600 dark:bg-gray-900 dark:text-gray-400 peer-focus:dark:text-blue-500",md:"absolute left-1 top-2 z-10 origin-[0] -translate-y-4 scale-75 bg-white px-2 text-sm text-gray-500 transition-transform duration-300 peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:scale-100 peer-focus:top-2 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:px-2 peer-focus:text-blue-600 dark:bg-gray-900 dark:text-gray-400 peer-focus:dark:text-blue-500"},standard:{sm:"absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 text-xs text-gray-500 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 peer-focus:text-blue-600 dark:text-gray-400 peer-focus:dark:text-blue-500",md:"absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 text-sm text-gray-500 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 peer-focus:text-blue-600 dark:text-gray-400 peer-focus:dark:text-blue-500"}},success:{filled:{sm:"absolute left-2.5 top-4 z-10 origin-[0] -translate-y-4 scale-75 text-sm text-green-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:-translate-y-4 peer-focus:scale-75 dark:text-green-500",md:"absolute left-2.5 top-4 z-10 origin-[0] -translate-y-4 scale-75 text-sm text-green-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:-translate-y-4 peer-focus:scale-75 dark:text-green-500"},outlined:{sm:"absolute left-1 top-2 z-10 origin-[0] -translate-y-4 scale-75 bg-white px-2 text-sm text-green-600 transition-transform duration-300 peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:scale-100 peer-focus:top-2 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:px-2 dark:bg-gray-900 dark:text-green-500",md:"absolute left-1 top-2 z-10 origin-[0] -translate-y-4 scale-75 bg-white px-2 text-sm text-green-600 transition-transform duration-300 peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:scale-100 peer-focus:top-2 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:px-2 dark:bg-gray-900 dark:text-green-500"},standard:{sm:"absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 text-xs text-green-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 dark:text-green-500",md:"absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 text-sm text-green-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 dark:text-green-500"}},error:{filled:{sm:"absolute left-2.5 top-4 z-10 origin-[0] -translate-y-4 scale-75 text-xs text-red-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:-translate-y-4 peer-focus:scale-75 dark:text-red-500",md:"absolute left-2.5 top-4 z-10 origin-[0] -translate-y-4 scale-75 text-xs text-red-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:-translate-y-4 peer-focus:scale-75 dark:text-red-500"},outlined:{sm:"absolute left-1 top-2 z-10 origin-[0] -translate-y-4 scale-75 bg-white px-2 text-xs text-red-600 transition-transform duration-300 peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:scale-100 peer-focus:top-2 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:px-2 dark:bg-gray-900 dark:text-red-500",md:"absolute left-1 top-2 z-10 origin-[0] -translate-y-4 scale-75 bg-white px-2 text-xs text-red-600 transition-transform duration-300 peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:scale-100 peer-focus:top-2 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:px-2 dark:bg-gray-900 dark:text-red-500"},standard:{sm:"absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 text-xs text-red-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 dark:text-red-500",md:"absolute top-3 -z-10 origin-[0] -translate-y-6 scale-75 text-sm text-red-600 transition-transform duration-300 peer-placeholder-shown:translate-y-0 peer-placeholder-shown:scale-100 peer-focus:left-0 peer-focus:-translate-y-6 peer-focus:scale-75 dark:text-red-500"}}},helperText:{default:"mt-2 text-xs text-gray-600 dark:text-gray-400",success:"mt-2 text-xs text-green-600 dark:text-green-400",error:"mt-2 text-xs text-red-600 dark:text-red-400"}},footer:{root:{base:"w-full rounded-lg bg-white shadow dark:bg-gray-800 md:flex md:items-center md:justify-between",container:"w-full p-6",bgDark:"bg-gray-800"},groupLink:{base:"flex flex-wrap text-sm text-gray-500 dark:text-white",link:{base:"me-4 last:mr-0 md:mr-6",href:"hover:underline"},col:"flex-col space-y-4"},icon:{base:"text-gray-500 dark:hover:text-white",size:"h-5 w-5"},title:{base:"mb-6 text-sm font-semibold uppercase text-gray-500 dark:text-white"},divider:{base:"my-6 w-full border-gray-200 dark:border-gray-700 sm:mx-auto lg:my-8"},copyright:{base:"text-sm text-gray-500 dark:text-gray-400 sm:text-center",href:"ml-1 hover:underline",span:"ml-1"},brand:{base:"mb-4 flex items-center sm:mb-0",img:"mr-3 h-8",span:"self-center whitespace-nowrap text-2xl font-semibold text-gray-800 dark:text-white"}},helperText:{root:{base:"mt-2 text-sm",colors:{gray:"text-gray-500 dark:text-gray-400",info:"text-cyan-700 dark:text-cyan-800",success:"text-green-600 dark:text-green-500",failure:"text-red-600 dark:text-red-500",warning:"text-yellow-500 dark:text-yellow-600"}}},hr:{root:{base:"my-8 h-px border-0 bg-gray-200 dark:bg-gray-700"},trimmed:{base:"mx-auto my-4 h-1 w-48 rounded border-0 bg-gray-100 dark:bg-gray-700 md:my-10"},icon:{base:"inline-flex w-full items-center justify-center",hrLine:"my-8 h-1 w-64 rounded border-0 bg-gray-200 dark:bg-gray-700",icon:{base:"absolute left-1/2 -translate-x-1/2 bg-white px-4 dark:bg-gray-900",icon:"h-4 w-4 text-gray-700 dark:text-gray-300"}},text:{base:"inline-flex w-full items-center justify-center",hrLine:"my-8 h-px w-64 border-0 bg-gray-200 dark:bg-gray-700",text:"absolute left-1/2 -translate-x-1/2 bg-white px-3 font-medium text-gray-900 dark:bg-gray-900 dark:text-white"},square:{base:"mx-auto my-8 h-8 w-8 rounded border-0 bg-gray-200 dark:bg-gray-700 md:my-12"}},kbd:{root:{base:"rounded-lg border border-gray-200 bg-gray-100 px-2 py-1.5 text-xs font-semibold text-gray-800 dark:border-gray-500 dark:bg-gray-600 dark:text-gray-100",icon:"inline-block"}},label:{root:{base:"text-sm font-medium",disabled:"opacity-50",colors:{default:"text-gray-900 dark:text-white",info:"text-cyan-500 dark:text-cyan-600",failure:"text-red-700 dark:text-red-500",warning:"text-yellow-500 dark:text-yellow-600",success:"text-green-700 dark:text-green-500"}}},listGroup:{root:{base:"list-none rounded-lg border border-gray-200 bg-white text-left text-sm font-medium text-gray-900 dark:border-gray-600 dark:bg-gray-700 dark:text-white"},item:{base:"[&>*]:first:rounded-t-lg [&>*]:last:rounded-b-lg [&>*]:last:border-b-0",link:{base:"flex w-full items-center border-b border-gray-200 px-4 py-2 dark:border-gray-600",active:{off:"hover:bg-gray-100 hover:text-cyan-700 focus:text-cyan-700 focus:outline-none focus:ring-2 focus:ring-cyan-700 dark:border-gray-600 dark:hover:bg-gray-600 dark:hover:text-white dark:focus:text-white dark:focus:ring-gray-500",on:"bg-cyan-700 text-white dark:bg-gray-800"},disabled:{off:"",on:"cursor-not-allowed bg-gray-100 text-gray-900 hover:bg-gray-100 hover:text-gray-900 focus:text-gray-900"},href:{off:"",on:""},icon:"mr-2 h-4 w-4 fill-current"}}},list:{root:{base:"list-inside space-y-1 text-gray-500 dark:text-gray-400",ordered:{off:"list-disc",on:"list-decimal"},horizontal:"flex list-none flex-wrap items-center justify-center space-x-4 space-y-0",unstyled:"list-none",nested:"mt-2 ps-5"},item:{withIcon:{off:"",on:"flex items-center"},icon:"me-2 h-3.5 w-3.5 flex-shrink-0"}},megaMenu:{...br,dropdown:{base:"",toggle:{...gr,floating:{...gr.floating,base:fr(gr.floating.base,"mt-2 block"),content:fr(gr.floating.content,"text-gray-500 dark:text-gray-400"),style:{...gr.floating.style,auto:fr(gr.floating.style.auto,"text-gray-500 dark:text-gray-400")}},inlineWrapper:fr(gr.inlineWrapper,"flex w-full items-center justify-between")}},dropdownToggle:{base:fr(br.link.base,br.link.active.off,"flex w-full items-center justify-between")}},modal:{root:{base:"fixed inset-x-0 top-0 z-50 h-screen overflow-y-auto overflow-x-hidden md:inset-0 md:h-full",show:{on:"flex bg-gray-900 bg-opacity-50 dark:bg-opacity-80",off:"hidden"},sizes:{sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl","2xl":"max-w-2xl","3xl":"max-w-3xl","4xl":"max-w-4xl","5xl":"max-w-5xl","6xl":"max-w-6xl","7xl":"max-w-7xl"},positions:{"top-left":"items-start justify-start","top-center":"items-start justify-center","top-right":"items-start justify-end","center-left":"items-center justify-start",center:"items-center justify-center","center-right":"items-center justify-end","bottom-right":"items-end justify-end","bottom-center":"items-end justify-center","bottom-left":"items-end justify-start"}},content:{base:"relative h-full w-full p-4 md:h-auto",inner:"relative flex max-h-[90dvh] flex-col rounded-lg bg-white shadow dark:bg-gray-700"},body:{base:"flex-1 overflow-auto p-6",popup:"pt-0"},header:{base:"flex items-start justify-between rounded-t border-b p-5 dark:border-gray-600",popup:"border-b-0 p-2",title:"text-xl font-medium text-gray-900 dark:text-white",close:{base:"ml-auto inline-flex items-center rounded-lg bg-transparent p-1.5 text-sm text-gray-400 hover:bg-gray-200 hover:text-gray-900 dark:hover:bg-gray-600 dark:hover:text-white",icon:"h-5 w-5"}},footer:{base:"flex items-center space-x-2 rounded-b border-gray-200 p-6 dark:border-gray-600",popup:"border-t"}},navbar:br,pagination:{base:"",layout:{table:{base:"text-sm text-gray-700 dark:text-gray-400",span:"font-semibold text-gray-900 dark:text-white"}},pages:{base:"xs:mt-0 mt-2 inline-flex items-center -space-x-px",showIcon:"inline-flex",previous:{base:"ml-0 rounded-l-lg border border-gray-300 bg-white px-3 py-2 leading-tight text-gray-500 enabled:hover:bg-gray-100 enabled:hover:text-gray-700 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 enabled:dark:hover:bg-gray-700 enabled:dark:hover:text-white",icon:"h-5 w-5"},next:{base:"rounded-r-lg border border-gray-300 bg-white px-3 py-2 leading-tight text-gray-500 enabled:hover:bg-gray-100 enabled:hover:text-gray-700 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 enabled:dark:hover:bg-gray-700 enabled:dark:hover:text-white",icon:"h-5 w-5"},selector:{base:"w-12 border border-gray-300 bg-white py-2 leading-tight text-gray-500 enabled:hover:bg-gray-100 enabled:hover:text-gray-700 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 enabled:dark:hover:bg-gray-700 enabled:dark:hover:text-white",active:"bg-cyan-50 text-cyan-600 hover:bg-cyan-100 hover:text-cyan-700 dark:border-gray-700 dark:bg-gray-700 dark:text-white",disabled:"cursor-not-allowed opacity-50"}}},popover:{base:"absolute z-20 inline-block w-max max-w-[100vw] bg-white outline-none border border-gray-200 rounded-lg shadow-sm dark:border-gray-600 dark:bg-gray-800",content:"z-10 overflow-hidden rounded-[7px]",arrow:{base:"absolute h-2 w-2 z-0 rotate-45 mix-blend-lighten bg-white border border-gray-200 dark:border-gray-600 dark:bg-gray-800 dark:mix-blend-color",placement:"-4px"}},progress:{base:"w-full overflow-hidden rounded-full bg-gray-200 dark:bg-gray-700",label:"mb-1 flex justify-between font-medium dark:text-white",bar:"space-x-2 rounded-full text-center font-medium leading-none text-cyan-300 dark:text-cyan-100",color:{dark:"bg-gray-600 dark:bg-gray-300",blue:"bg-blue-600",red:"bg-red-600 dark:bg-red-500",green:"bg-green-600 dark:bg-green-500",yellow:"bg-yellow-400",indigo:"bg-indigo-600 dark:bg-indigo-500",purple:"bg-purple-600 dark:bg-purple-500",cyan:"bg-cyan-600",gray:"bg-gray-500",lime:"bg-lime-600",pink:"bg-pink-500",teal:"bg-teal-600"},size:{sm:"h-1.5",md:"h-2.5",lg:"h-4",xl:"h-6"}},radio:{root:{base:"h-4 w-4 border border-gray-300 text-cyan-600 focus:ring-2 focus:ring-cyan-500 dark:border-gray-600 dark:bg-gray-700 dark:focus:bg-cyan-600 dark:focus:ring-cyan-600"}},rangeSlider:{root:{base:"flex"},field:{base:"relative w-full",input:{base:"w-full cursor-pointer appearance-none rounded-lg bg-gray-200 dark:bg-gray-700",sizes:{sm:"h-1",md:"h-2",lg:"h-3"}}}},rating:{root:{base:"flex items-center"},star:{empty:"text-gray-300 dark:text-gray-500",filled:"text-yellow-400",sizes:{sm:"h-5 w-5",md:"h-7 w-7",lg:"h-10 w-10"}}},ratingAdvanced:{base:"flex items-center",label:"text-sm font-medium text-cyan-600 dark:text-cyan-500",progress:{base:"mx-4 h-5 w-2/4 rounded bg-gray-200 dark:bg-gray-700",fill:"h-5 rounded bg-yellow-400",label:"text-sm font-medium text-cyan-600 dark:text-cyan-500"}},select:{base:"flex",addon:"inline-flex items-center rounded-l-md border border-r-0 border-gray-300 bg-gray-200 px-3 text-sm text-gray-900 dark:border-gray-600 dark:bg-gray-600 dark:text-gray-400",field:{base:"relative w-full",icon:{base:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3",svg:"h-5 w-5 text-gray-500 dark:text-gray-400"},select:{base:"block w-full border disabled:cursor-not-allowed disabled:opacity-50",withIcon:{on:"pl-10",off:""},withAddon:{on:"rounded-r-lg",off:"rounded-lg"},withShadow:{on:"shadow-sm dark:shadow-sm-light",off:""},sizes:{sm:"p-2 sm:text-xs",md:"p-2.5 text-sm",lg:"p-4 sm:text-base"},colors:{gray:"border-gray-300 bg-gray-50 text-gray-900 focus:border-cyan-500 focus:ring-cyan-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",info:"border-cyan-500 bg-cyan-50 text-cyan-900 placeholder-cyan-700 focus:border-cyan-500 focus:ring-cyan-500 dark:border-cyan-400 dark:bg-cyan-100 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",failure:"border-red-500 bg-red-50 text-red-900 placeholder-red-700 focus:border-red-500 focus:ring-red-500 dark:border-red-400 dark:bg-red-100 dark:focus:border-red-500 dark:focus:ring-red-500",warning:"border-yellow-500 bg-yellow-50 text-yellow-900 placeholder-yellow-700 focus:border-yellow-500 focus:ring-yellow-500 dark:border-yellow-400 dark:bg-yellow-100 dark:focus:border-yellow-500 dark:focus:ring-yellow-500",success:"border-green-500 bg-green-50 text-green-900 placeholder-green-700 focus:border-green-500 focus:ring-green-500 dark:border-green-400 dark:bg-green-100 dark:focus:border-green-500 dark:focus:ring-green-500"}}}},textInput:{base:"flex",addon:"inline-flex items-center rounded-l-md border border-r-0 border-gray-300 bg-gray-200 px-3 text-sm text-gray-900 dark:border-gray-600 dark:bg-gray-600 dark:text-gray-400",field:{base:"relative w-full",icon:{base:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3",svg:"h-5 w-5 text-gray-500 dark:text-gray-400"},rightIcon:{base:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3",svg:"h-5 w-5 text-gray-500 dark:text-gray-400"},input:{base:"block w-full border disabled:cursor-not-allowed disabled:opacity-50",sizes:{sm:"p-2 sm:text-xs",md:"p-2.5 text-sm",lg:"p-4 sm:text-base"},colors:{gray:"border-gray-300 bg-gray-50 text-gray-900 focus:border-cyan-500 focus:ring-cyan-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",info:"border-cyan-500 bg-cyan-50 text-cyan-900 placeholder-cyan-700 focus:border-cyan-500 focus:ring-cyan-500 dark:border-cyan-400 dark:bg-cyan-100 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",failure:"border-red-500 bg-red-50 text-red-900 placeholder-red-700 focus:border-red-500 focus:ring-red-500 dark:border-red-400 dark:bg-red-100 dark:focus:border-red-500 dark:focus:ring-red-500",warning:"border-yellow-500 bg-yellow-50 text-yellow-900 placeholder-yellow-700 focus:border-yellow-500 focus:ring-yellow-500 dark:border-yellow-400 dark:bg-yellow-100 dark:focus:border-yellow-500 dark:focus:ring-yellow-500",success:"border-green-500 bg-green-50 text-green-900 placeholder-green-700 focus:border-green-500 focus:ring-green-500 dark:border-green-400 dark:bg-green-100 dark:focus:border-green-500 dark:focus:ring-green-500"},withRightIcon:{on:"pr-10",off:""},withIcon:{on:"pl-10",off:""},withAddon:{on:"rounded-r-lg",off:"rounded-lg"},withShadow:{on:"shadow-sm dark:shadow-sm-light",off:""}}}},textarea:{base:"block w-full rounded-lg border text-sm disabled:cursor-not-allowed disabled:opacity-50",colors:{gray:"border-gray-300 bg-gray-50 text-gray-900 focus:border-cyan-500 focus:ring-cyan-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",info:"border-cyan-500 bg-cyan-50 text-cyan-900 placeholder-cyan-700 focus:border-cyan-500 focus:ring-cyan-500 dark:border-cyan-400 dark:bg-cyan-100 dark:focus:border-cyan-500 dark:focus:ring-cyan-500",failure:"border-red-500 bg-red-50 text-red-900 placeholder-red-700 focus:border-red-500 focus:ring-red-500 dark:border-red-400 dark:bg-red-100 dark:focus:border-red-500 dark:focus:ring-red-500",warning:"border-yellow-500 bg-yellow-50 text-yellow-900 placeholder-yellow-700 focus:border-yellow-500 focus:ring-yellow-500 dark:border-yellow-400 dark:bg-yellow-100 dark:focus:border-yellow-500 dark:focus:ring-yellow-500",success:"border-green-500 bg-green-50 text-green-900 placeholder-green-700 focus:border-green-500 focus:ring-green-500 dark:border-green-400 dark:bg-green-100 dark:focus:border-green-500 dark:focus:ring-green-500"},withShadow:{on:"shadow-sm dark:shadow-sm-light",off:""}},toggleSwitch:{root:{base:"group flex rounded-lg focus:outline-none",active:{on:"cursor-pointer",off:"cursor-not-allowed opacity-50"},label:"ms-3 mt-0.5 text-start text-sm font-medium text-gray-900 dark:text-gray-300"},toggle:{base:"relative rounded-full border after:absolute after:rounded-full after:bg-white after:transition-all group-focus:ring-4 group-focus:ring-cyan-500/25",checked:{on:"after:translate-x-full after:border-white rtl:after:-translate-x-full",off:"border-gray-200 bg-gray-200 dark:border-gray-600 dark:bg-gray-700",color:{blue:"border-cyan-700 bg-cyan-700",dark:"bg-dark-700 border-dark-900",failure:"border-red-900 bg-red-700",gray:"border-gray-600 bg-gray-500",green:"border-green-700 bg-green-600",light:"bg-light-700 border-light-900",red:"border-red-900 bg-red-700",purple:"border-purple-900 bg-purple-700",success:"border-green-500 bg-green-500",yellow:"border-yellow-400 bg-yellow-400",warning:"border-yellow-600 bg-yellow-600",cyan:"border-cyan-500 bg-cyan-500",lime:"border-lime-400 bg-lime-400",indigo:"border-indigo-400 bg-indigo-400",teal:"bg-gradient-to-r from-teal-400 via-teal-500 to-teal-600 hover:bg-gradient-to-br focus:ring-4",info:"border-cyan-600 bg-cyan-600",pink:"border-pink-600 bg-pink-600"}},sizes:{sm:"h-5 w-9 min-w-9 after:left-px after:top-px after:h-4 after:w-4 rtl:after:right-px",md:"h-6 w-11 min-w-11 after:left-px after:top-px after:h-5 after:w-5 rtl:after:right-px",lg:"h-7 w-14 min-w-14 after:left-1 after:top-0.5 after:h-6 after:w-6 rtl:after:right-1"}}},sidebar:{root:{base:"h-full",collapsed:{on:"w-16",off:"w-64"},inner:"h-full overflow-y-auto overflow-x-hidden rounded bg-gray-50 px-3 py-4 dark:bg-gray-800"},collapse:{button:"group flex w-full items-center rounded-lg p-2 text-base font-normal text-gray-900 transition duration-75 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700",icon:{base:"h-6 w-6 text-gray-500 transition duration-75 group-hover:text-gray-900 dark:text-gray-400 dark:group-hover:text-white",open:{off:"",on:"text-gray-900"}},label:{base:"ml-3 flex-1 whitespace-nowrap text-left",icon:{base:"h-6 w-6 transition delay-0 ease-in-out",open:{on:"rotate-180",off:""}}},list:"space-y-2 py-2"},cta:{base:"mt-6 rounded-lg bg-gray-100 p-4 dark:bg-gray-700",color:{blue:"bg-cyan-50 dark:bg-cyan-900",dark:"bg-dark-50 dark:bg-dark-900",failure:"bg-red-50 dark:bg-red-900",gray:"bg-alternative-50 dark:bg-alternative-900",green:"bg-green-50 dark:bg-green-900",light:"bg-light-50 dark:bg-light-900",red:"bg-red-50 dark:bg-red-900",purple:"bg-purple-50 dark:bg-purple-900",success:"bg-green-50 dark:bg-green-900",yellow:"bg-yellow-50 dark:bg-yellow-900",warning:"bg-yellow-50 dark:bg-yellow-900"}},item:{base:"flex items-center justify-center rounded-lg p-2 text-base font-normal text-gray-900 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700",active:"bg-gray-100 dark:bg-gray-700",collapsed:{insideCollapse:"group w-full pl-8 transition duration-75",noIcon:"font-bold"},content:{base:"flex-1 whitespace-nowrap px-3"},icon:{base:"h-6 w-6 flex-shrink-0 text-gray-500 transition duration-75 group-hover:text-gray-900 dark:text-gray-400 dark:group-hover:text-white",active:"text-gray-700 dark:text-gray-100"},label:"",listItem:""},items:{base:""},itemGroup:{base:"mt-4 space-y-2 border-t border-gray-200 pt-4 first:mt-0 first:border-t-0 first:pt-0 dark:border-gray-700"},logo:{base:"mb-5 flex items-center pl-2.5",collapsed:{on:"hidden",off:"self-center whitespace-nowrap text-xl font-semibold dark:text-white"},img:"mr-3 h-6 sm:h-7"}},spinner:{base:"inline animate-spin text-gray-200",color:{failure:"fill-red-600",gray:"fill-gray-600",info:"fill-cyan-600",pink:"fill-pink-600",purple:"fill-purple-600",success:"fill-green-500",warning:"fill-yellow-400"},light:{off:{base:"dark:text-gray-600",color:{failure:"",gray:"dark:fill-gray-300",info:"",pink:"",purple:"",success:"",warning:""}},on:{base:"",color:{failure:"",gray:"",info:"",pink:"",purple:"",success:"",warning:""}}},size:{xs:"h-3 w-3",sm:"h-4 w-4",md:"h-6 w-6",lg:"h-8 w-8",xl:"h-10 w-10"}},table:{root:{base:"w-full text-left text-sm text-gray-500 dark:text-gray-400",shadow:"absolute left-0 top-0 -z-10 h-full w-full rounded-lg bg-white drop-shadow-md dark:bg-black",wrapper:"relative"},body:{base:"group/body",cell:{base:"px-6 py-4 group-first/body:group-first/row:first:rounded-tl-lg group-first/body:group-first/row:last:rounded-tr-lg group-last/body:group-last/row:first:rounded-bl-lg group-last/body:group-last/row:last:rounded-br-lg"}},head:{base:"group/head text-xs uppercase text-gray-700 dark:text-gray-400",cell:{base:"bg-gray-50 px-6 py-3 group-first/head:first:rounded-tl-lg group-first/head:last:rounded-tr-lg dark:bg-gray-700"}},row:{base:"group/row",hovered:"hover:bg-gray-50 dark:hover:bg-gray-600",striped:"odd:bg-white even:bg-gray-50 odd:dark:bg-gray-800 even:dark:bg-gray-700"}},tabs:{base:"flex flex-col gap-2",tablist:{base:"flex text-center",variant:{default:"flex-wrap border-b border-gray-200 dark:border-gray-700",underline:"-mb-px flex-wrap border-b border-gray-200 dark:border-gray-700",pills:"flex-wrap space-x-2 text-sm font-medium text-gray-500 dark:text-gray-400",fullWidth:"grid w-full grid-flow-col divide-x divide-gray-200 rounded-none text-sm font-medium shadow dark:divide-gray-700 dark:text-gray-400"},tabitem:{base:"flex items-center justify-center rounded-t-lg p-4 text-sm font-medium first:ml-0 focus:outline-none focus:ring-4 focus:ring-cyan-300 disabled:cursor-not-allowed disabled:text-gray-400 disabled:dark:text-gray-500",variant:{default:{base:"rounded-t-lg",active:{on:"bg-gray-100 text-cyan-600 dark:bg-gray-800 dark:text-cyan-500",off:"text-gray-500 hover:bg-gray-50 hover:text-gray-600 dark:text-gray-400 dark:hover:bg-gray-800 dark:hover:text-gray-300"}},underline:{base:"rounded-t-lg",active:{on:"active rounded-t-lg border-b-2 border-cyan-600 text-cyan-600 dark:border-cyan-500 dark:text-cyan-500",off:"border-b-2 border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-600 dark:text-gray-400 dark:hover:text-gray-300"}},pills:{base:"",active:{on:"rounded-lg bg-cyan-600 text-white",off:"rounded-lg hover:bg-gray-100 hover:text-gray-900 dark:hover:bg-gray-800 dark:hover:text-white"}},fullWidth:{base:"ml-0 flex w-full rounded-none first:ml-0",active:{on:"active rounded-none bg-gray-100 p-4 text-gray-900 dark:bg-gray-700 dark:text-white",off:"rounded-none bg-white hover:bg-gray-50 hover:text-gray-700 dark:bg-gray-800 dark:hover:bg-gray-700 dark:hover:text-white"}}},icon:"mr-2 h-5 w-5"}},tabitemcontainer:{base:"",variant:{default:"",underline:"",pills:"",fullWidth:""}},tabpanel:"py-3"},timeline:{root:{direction:{horizontal:"sm:flex",vertical:"relative border-l border-gray-200 dark:border-gray-700"}},item:{root:{horizontal:"relative mb-6 sm:mb-0",vertical:"mb-10 ml-6"},content:{root:{base:"",horizontal:"mt-3 sm:pr-8",vertical:""},body:{base:"mb-4 text-base font-normal text-gray-500 dark:text-gray-400"},time:{base:"mb-1 text-sm font-normal leading-none text-gray-400 dark:text-gray-500"},title:{base:"text-lg font-semibold text-gray-900 dark:text-white"}},point:{horizontal:"flex items-center",line:"hidden h-0.5 w-full bg-gray-200 dark:bg-gray-700 sm:flex",marker:{base:{horizontal:"absolute -left-1.5 h-3 w-3 rounded-full border border-white bg-gray-200 dark:border-gray-900 dark:bg-gray-700",vertical:"absolute -left-1.5 mt-1.5 h-3 w-3 rounded-full border border-white bg-gray-200 dark:border-gray-900 dark:bg-gray-700"},icon:{base:"h-3 w-3 text-cyan-600 dark:text-cyan-300",wrapper:"absolute -left-3 flex h-6 w-6 items-center justify-center rounded-full bg-cyan-200 ring-8 ring-white dark:bg-cyan-900 dark:ring-gray-900"}},vertical:""}}},toast:{root:{base:"flex w-full max-w-xs items-center rounded-lg bg-white p-4 text-gray-500 shadow dark:bg-gray-800 dark:text-gray-400",closed:"opacity-0 ease-out"},toggle:{base:"-m-1.5 ml-auto inline-flex h-8 w-8 rounded-lg bg-white p-1.5 text-gray-400 hover:bg-gray-100 hover:text-gray-900 focus:ring-2 focus:ring-gray-300 dark:bg-gray-800 dark:text-gray-500 dark:hover:bg-gray-700 dark:hover:text-white",icon:"h-5 w-5 shrink-0"}},tooltip:{target:"w-fit",animation:"transition-opacity",arrow:{base:"absolute z-10 h-2 w-2 rotate-45",style:{dark:"bg-gray-900 dark:bg-gray-700",light:"bg-white",auto:"bg-white dark:bg-gray-700"},placement:"-4px"},base:"absolute z-10 inline-block rounded-lg px-3 py-2 text-sm font-medium shadow-sm",hidden:"invisible opacity-0",style:{dark:"bg-gray-900 text-white dark:bg-gray-700",light:"border border-gray-200 bg-white text-gray-900",auto:"border border-gray-200 bg-white text-gray-900 dark:border-none dark:bg-gray-700 dark:text-white"},content:"relative z-20"}},xr={theme:hr(yr)};function vr(){return xr.mode}function wr(){return hr(xr.theme)}const kr=(0,n.createContext)(void 0);function jr(){const e=(0,n.useContext)(kr);if(!e)throw new Error("useAccordionContext should be used within the AccordionPanelContext provider!");return e}const Nr=e=>{let{children:t,className:r,theme:n={},...o}=e;const{isOpen:a}=jr(),i=mr(wr().accordion.content,n);return(0,nt.jsx)("div",{className:fr(i.base,r),"data-testid":"flowbite-accordion-content",hidden:!a,...o,children:t})},Cr=e=>{let{children:t,...r}=e;const{alwaysOpen:o}=r,[a,i]=(0,n.useState)(r.isOpen),s=o?{...r,isOpen:a,setOpen:()=>i(!a)}:r;return(0,nt.jsx)(kr.Provider,{value:s,children:t})},Sr=e=>{let{as:t="h2",children:r,className:n,theme:o={},...a}=e;const{arrowIcon:i,flush:s,isOpen:l,setOpen:c}=jr(),u=mr(wr().accordion.title,o);return(0,nt.jsxs)("button",{className:fr(u.base,u.flush[s?"on":"off"],u.open[l?"on":"off"],n),onClick:()=>"undefined"!==typeof c&&c(),type:"button",...a,children:[(0,nt.jsx)(t,{className:u.heading,"data-testid":"flowbite-accordion-heading",children:r}),i&&(0,nt.jsx)(i,{"aria-hidden":!0,className:fr(u.arrow.base,u.arrow.open[l?"on":"off"]),"data-testid":"flowbite-accordion-arrow"})]})},Er=e=>{let{alwaysOpen:t=!1,arrowIcon:r=lt,children:o,flush:a=!1,collapseAll:i=!1,className:s,theme:l={},...c}=e;const[u,d]=(0,n.useState)(i?-1:0),f=(0,n.useMemo)((()=>n.Children.map(o,((e,o)=>(0,n.cloneElement)(e,{alwaysOpen:t,arrowIcon:r,flush:a,isOpen:u===o,setOpen:()=>d(u===o?-1:o)})))),[t,r,o,a,u]),p=mr(wr().accordion.root,l);return(0,nt.jsx)("div",{className:fr(p.base,p.flush[a?"on":"off"],s),"data-testid":"flowbite-accordion",...c,children:f})};Er.displayName="Accordion",Cr.displayName="Accordion.Panel",Sr.displayName="Accordion.Title",Nr.displayName="Accordion.Content";Object.assign(Er,{Panel:Cr,Title:Sr,Content:Nr});const Ar=e=>{let{children:t,className:r,theme:n={},...o}=e;const a=mr(wr().avatar.group,n);return(0,nt.jsx)("div",{"data-testid":"avatar-group-element",className:fr(a.base,r),...o,children:t})};Ar.displayName="Avatar.Group";const Or=e=>{let{className:t,href:r,theme:n={},total:o,...a}=e;const i=mr(wr().avatar.groupCounter,n);return(0,nt.jsxs)("a",{href:r,className:fr(i.base,t),...a,children:["+",o]})};Or.displayName="Avatar.GroupCounter";const $r=e=>{let{alt:t="",bordered:r=!1,children:n,className:o,color:a="light",img:i,placeholderInitials:s="",rounded:l=!1,size:c="md",stacked:u=!1,status:d,statusPosition:f="top-left",theme:p={},...h}=e;const m=mr(wr().avatar,p),g=fr(m.root.img.base,r&&m.root.bordered,r&&m.root.color[a],l&&m.root.rounded,u&&m.root.stacked,m.root.img.on,m.root.size[c]),b={className:fr(g,m.root.img.on),"data-testid":"flowbite-avatar-img"};return(0,nt.jsxs)("div",{className:fr(m.root.base,o),"data-testid":"flowbite-avatar",...h,children:[(0,nt.jsxs)("div",{className:"relative",children:[i?"string"===typeof i?(0,nt.jsx)("img",{alt:t,src:i,...b}):i({alt:t,...b}):s?(0,nt.jsx)("div",{className:fr(m.root.img.off,m.root.initials.base,u&&m.root.stacked,r&&m.root.bordered,r&&m.root.color[a],m.root.size[c],l&&m.root.rounded),"data-testid":"flowbite-avatar-initials-placeholder",children:(0,nt.jsx)("span",{className:fr(m.root.initials.text),"data-testid":"flowbite-avatar-initials-placeholder-text",children:s})}):(0,nt.jsx)("div",{className:fr(g,m.root.img.off),"data-testid":"flowbite-avatar-img",children:(0,nt.jsx)("svg",{className:m.root.img.placeholder,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:(0,nt.jsx)("path",{fillRule:"evenodd",d:"M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z",clipRule:"evenodd"})})}),d&&(0,nt.jsx)("span",{"data-testid":"flowbite-avatar-status",className:fr(m.root.status.base,m.root.status[d],m.root.statusPosition[f])})]}),n&&(0,nt.jsx)("div",{children:n})]})};$r.displayName="Avatar";Object.assign($r,{Group:Ar,Counter:Or});const Pr=e=>{let{children:t,color:r="info",href:n,icon:o,size:a="xs",className:i,theme:s={},...l}=e;const c=mr(wr().badge,s),u=()=>(0,nt.jsxs)("span",{className:fr(c.root.base,c.root.color[r],c.root.size[a],c.icon[o?"on":"off"],i),"data-testid":"flowbite-badge",...l,children:[o&&(0,nt.jsx)(o,{"aria-hidden":!0,className:c.icon.size[a],"data-testid":"flowbite-badge-icon"}),t&&(0,nt.jsx)("span",{children:t})]});return n?(0,nt.jsx)("a",{className:c.root.href,href:n,children:(0,nt.jsx)(u,{})}):(0,nt.jsx)(u,{})};Pr.displayName="Badge";const Tr=e=>{let{className:t,color:r="info",light:n,size:o="md",theme:a={},...i}=e;const s=mr(wr().spinner,a);return(0,nt.jsx)("span",{role:"status",...i,children:(0,nt.jsxs)("svg",{fill:"none",viewBox:"0 0 100 101",className:fr(s.base,s.color[r],s.light[n?"on":"off"].base,s.light[n?"on":"off"].color[r],s.size[o],t),children:[(0,nt.jsx)("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),(0,nt.jsx)("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]})})};Tr.displayName="Spinner";const Ir=(0,n.forwardRef)(((e,t)=>{let{children:r,as:o,href:a,type:i="button",...s}=e;const l=o||(a?"a":"button");return(0,n.createElement)(l,{ref:t,href:a,type:i,...s},r)}));Ir.displayName="ButtonBaseComponent";const Mr=(e,t,r)=>n.Children.map(e,((o,a)=>{if((0,n.isValidElement)(o)){const i=o.type==Dr?{positionInGroup:Rr(a,n.Children.count(e))}:{};return o.props.children?(0,n.cloneElement)(o,{...o.props,children:Mr(o.props.children,t,r),...i}):(0,n.cloneElement)(o,{outline:t,pill:r,...i})}return o})),Rr=(e,t)=>0===e?"start":e===t-1?"end":"middle",Lr=e=>{let{children:t,className:r,outline:o,pill:a,theme:i={},...s}=e;const l=(0,n.useMemo)((()=>Mr(t,o,a)),[t,o,a]),c=mr(wr().buttonGroup,i);return(0,nt.jsx)("div",{className:fr(c.base,r),role:"group",...s,children:l})};Lr.displayName="Button.Group";const _r=(0,n.forwardRef)(((e,t)=>{let{children:r,className:n,color:o="info",disabled:a,fullSized:i,isProcessing:s=!1,processingLabel:l="Loading...",processingSpinner:c,gradientDuoTone:u,gradientMonochrome:d,label:f,outline:p=!1,pill:h=!1,positionInGroup:m="none",size:g="md",theme:b={},...y}=e;const{buttonGroup:x,button:v}=wr(),w=mr(v,b),k=y;return(0,nt.jsx)(Ir,{ref:t,disabled:a,className:fr(w.base,a&&w.disabled,!u&&!d&&w.color[o],u&&!d&&w.gradientDuoTone[u],!u&&d&&w.gradient[d],p&&(w.outline.color[o]??w.outline.color.default),w.pill[h?"on":"off"],i&&w.fullSized,x.position[m],n),...k,children:(0,nt.jsx)("span",{className:fr(w.inner.base,w.outline[p?"on":"off"],w.outline.pill[p&&h?"on":"off"],w.size[g],p&&!w.outline.color[o]&&w.inner.outline,s&&w.isProcessing,s&&w.inner.isProcessingPadding[g],w.inner.position[m]),children:(0,nt.jsxs)(nt.Fragment,{children:[s&&(0,nt.jsx)("span",{className:fr(w.spinnerSlot,w.spinnerLeftPosition[g]),children:c||(0,nt.jsx)(Tr,{size:g})}),"undefined"!==typeof r?r:(0,nt.jsx)("span",{"data-testid":"flowbite-button-label",className:fr(w.label),children:s?l:f})]})})})}));_r.displayName="Button";const Dr=Object.assign(_r,{Group:Lr}),Br=e=>{let{children:t,...r}=e;return(0,nt.jsx)(Dr,{onClick:e=>{const t=e.target.closest('[role="banner"]');t?.remove()},...r,children:t})};Br.displayName="Banner.CollapseButton";const zr=e=>{let{children:t,...r}=e;return(0,nt.jsx)("div",{"data-testid":"flowbite-banner",role:"banner",tabIndex:-1,...r,children:t})};zr.displayName="Banner";Object.assign(zr,{CollapseButton:Br});const Fr=(0,n.forwardRef)(((e,t)=>{let{children:r,className:n,href:o,icon:a,theme:i={},...s}=e;const l="undefined"!==typeof o,c=l?"a":"span",u=mr(wr().breadcrumb.item,i);return(0,nt.jsxs)("li",{className:fr(u.base,n),...s,children:[(0,nt.jsx)(wt,{"aria-hidden":!0,className:u.chevron,"data-testid":"flowbite-breadcrumb-separator"}),(0,nt.jsxs)(c,{ref:t,className:u.href[l?"on":"off"],"data-testid":"flowbite-breadcrumb-item",href:o,children:[a&&(0,nt.jsx)(a,{"aria-hidden":!0,className:u.icon}),r]})]})}));Fr.displayName="Breadcrumb.Item";const qr=e=>{let{children:t,className:r,theme:n={},...o}=e;const a=mr(wr().breadcrumb.root,n);return(0,nt.jsx)("nav",{"aria-label":"Breadcrumb",className:fr(a.base,r),...o,children:(0,nt.jsx)("ol",{className:a.list,children:t})})};qr.displayName="Breadcrumb";Object.assign(qr,{Item:Fr}),Hr=["renderImage","imgSrc","imgAlt","children","className","horizontal","href","theme"];var Hr,Ur=r(8139),Wr=r(4695),Vr=Object.defineProperty,Gr=(e,t,r)=>((e,t,r)=>t in e?Vr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r)(e,"symbol"!==typeof t?t+"":t,r);class Kr extends n.PureComponent{constructor(e){super(e),Gr(this,"container"),Gr(this,"scrolling"),Gr(this,"started"),Gr(this,"pressed"),Gr(this,"isMobile",!1),Gr(this,"internal"),Gr(this,"scrollLeft"),Gr(this,"scrollTop"),Gr(this,"clientX"),Gr(this,"clientY"),Gr(this,"onEndScroll",(()=>{this.scrolling=!1,!this.pressed&&this.started&&this.processEnd()})),Gr(this,"onScroll",(()=>{const e=this.container.current;e.scrollLeft===this.scrollLeft&&e.scrollTop===this.scrollTop||(this.scrolling=!0,this.processScroll(),this.onEndScroll())})),Gr(this,"onTouchStart",(e=>{const{nativeMobileScroll:t}=this.props;if(this.isDraggable(e.target))if(this.internal=!0,t&&this.scrolling)this.pressed=!0;else{const r=e.touches[0];this.processClick(r.clientX,r.clientY),!t&&this.props.stopPropagation&&e.stopPropagation()}})),Gr(this,"onTouchEnd",(()=>{const{nativeMobileScroll:e}=this.props;this.pressed&&(!this.started||this.scrolling&&e?this.pressed=!1:this.processEnd(),this.forceUpdate())})),Gr(this,"onTouchMove",(e=>{const{nativeMobileScroll:t}=this.props;if(this.pressed&&(!t||!this.isMobile)){const t=e.touches[0];t&&this.processMove(t.clientX,t.clientY),e.preventDefault(),this.props.stopPropagation&&e.stopPropagation()}})),Gr(this,"onMouseDown",(e=>{this.isDraggable(e.target)&&this.isScrollable()&&(this.internal=!0,-1!==this.props?.buttons?.indexOf(e.button)&&(this.processClick(e.clientX,e.clientY),e.preventDefault(),this.props.stopPropagation&&e.stopPropagation()))})),Gr(this,"onMouseMove",(e=>{this.pressed&&(this.processMove(e.clientX,e.clientY),e.preventDefault(),this.props.stopPropagation&&e.stopPropagation())})),Gr(this,"onMouseUp",(e=>{this.pressed&&(this.started?this.processEnd():(this.internal=!1,this.pressed=!1,this.forceUpdate(),this.props.onClick&&this.props.onClick(e)),e.preventDefault(),this.props.stopPropagation&&e.stopPropagation())})),this.container=n.createRef(),this.onEndScroll=Wr(this.onEndScroll,300),this.scrolling=!1,this.started=!1,this.pressed=!1,this.internal=!1,this.getRef=this.getRef.bind(this)}componentDidMount(){const{nativeMobileScroll:e}=this.props,t=this.container.current;window.addEventListener("mouseup",this.onMouseUp),window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd),t.addEventListener("touchstart",this.onTouchStart,{passive:!1}),t.addEventListener("mousedown",this.onMouseDown,{passive:!1}),e&&(this.isMobile=this.isMobileDevice(),this.isMobile&&this.forceUpdate())}componentWillUnmount(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)}getElement(){return this.container.current}isMobileDevice(){return"undefined"!==typeof window.orientation||-1!==navigator.userAgent.indexOf("IEMobile")}isDraggable(e){const t=this.props.ignoreElements;if(t){const r=e.closest(t);return null===r||r.contains(this.getElement())}return!0}isScrollable(){const e=this.container.current;return e&&(e.scrollWidth>e.clientWidth||e.scrollHeight>e.clientHeight)}processClick(e,t){const r=this.container.current;this.scrollLeft=r?.scrollLeft,this.scrollTop=r?.scrollTop,this.clientX=e,this.clientY=t,this.pressed=!0}processStart(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const{onStartScroll:t}=this.props;this.started=!0,e&&document.body.classList.add("cursor-grab"),t&&t({external:!this.internal}),this.forceUpdate()}processScroll(){if(this.started){const{onScroll:e}=this.props;e&&e({external:!this.internal})}else this.processStart(!1)}processMove(e,t){const{horizontal:r,vertical:n,activationDistance:o,onScroll:a}=this.props,i=this.container.current;this.started?(r&&(i.scrollLeft-=e-this.clientX),n&&(i.scrollTop-=t-this.clientY),a&&a({external:!this.internal}),this.clientX=e,this.clientY=t,this.scrollLeft=i.scrollLeft,this.scrollTop=i.scrollTop):(r&&Math.abs(e-this.clientX)>o||n&&Math.abs(t-this.clientY)>o)&&(this.clientX=e,this.clientY=t,this.processStart())}processEnd(){const{onEndScroll:e}=this.props;this.container.current&&e&&e({external:!this.internal}),this.pressed=!1,this.started=!1,this.scrolling=!1,this.internal=!1,document.body.classList.remove("cursor-grab"),this.forceUpdate()}getRef(e){[this.container,this.props.innerRef].forEach((t=>{t&&("function"===typeof t?t(e):t.current=e)}))}render(){const{children:e,draggingClassName:t,className:r,style:n,hideScrollbars:o}=this.props;return(0,nt.jsx)("div",{className:Ur(r,this.pressed&&t,{"!scroll-auto [&>*]:pointer-events-none [&>*]:cursor-grab":this.pressed,"overflow-auto":this.isMobile,"overflow-hidden !overflow-x-hidden [overflow:-moz-scrollbars-none] [scrollbar-width:none]":o,"[&::-webkit-scrollbar]:[-webkit-appearance:none !important] [&::-webkit-scrollbar]:!hidden [&::-webkit-scrollbar]:!h-0 [&::-webkit-scrollbar]:!w-0 [&::-webkit-scrollbar]:!bg-transparent":o}),style:n,ref:this.getRef,onScroll:this.onScroll,children:e})}}Gr(Kr,"defaultProps",{nativeMobileScroll:!0,hideScrollbars:!0,activationDistance:10,vertical:!0,horizontal:!0,stopPropagation:!1,style:{},buttons:[0]});const Qr=()=>"undefined"!==typeof window,Yr=(0,n.forwardRef)(((e,t)=>{let{className:r,color:n="default",theme:o={},...a}=e;const i=mr(wr().checkbox,o);return(0,nt.jsx)("input",{ref:t,type:"checkbox",className:fr(i.root.base,i.root.color[n],r),...a})}));function Zr(e){return en(e)?(e.nodeName||"").toLowerCase():"#document"}function Jr(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Xr(e){var t;return null==(t=(en(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function en(e){return e instanceof Node||e instanceof Jr(e).Node}function tn(e){return e instanceof Element||e instanceof Jr(e).Element}function rn(e){return e instanceof HTMLElement||e instanceof Jr(e).HTMLElement}function nn(e){return"undefined"!==typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Jr(e).ShadowRoot)}function on(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=dn(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function an(e){return["table","td","th"].includes(Zr(e))}function sn(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(r){return!1}}))}function ln(e){const t=cn(),r=tn(e)?dn(e):e;return"none"!==r.transform||"none"!==r.perspective||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||["transform","perspective","filter"].some((e=>(r.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(r.contain||"").includes(e)))}function cn(){return!("undefined"===typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function un(e){return["html","body","#document"].includes(Zr(e))}function dn(e){return Jr(e).getComputedStyle(e)}function fn(e){return tn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function pn(e){if("html"===Zr(e))return e;const t=e.assignedSlot||e.parentNode||nn(e)&&e.host||Xr(e);return nn(t)?t.host:t}function hn(e){const t=pn(e);return un(t)?e.ownerDocument?e.ownerDocument.body:e.body:rn(t)&&on(t)?t:hn(t)}function mn(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);const o=hn(e),a=o===(null==(n=e.ownerDocument)?void 0:n.body),i=Jr(o);if(a){const e=gn(i);return t.concat(i,i.visualViewport||[],on(o)?o:[],e&&r?mn(e):[])}return t.concat(o,mn(o,[],r))}function gn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function bn(e){let t=e.activeElement;for(;null!=(null==(r=t)||null==(r=r.shadowRoot)?void 0:r.activeElement);){var r;t=t.shadowRoot.activeElement}return t}function yn(e,t){if(!e||!t)return!1;const r=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(r&&nn(r)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function xn(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function vn(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>{let{brand:t,version:r}=e;return t+"/"+r})).join(" "):navigator.userAgent}function wn(e){return!(0!==e.mozInputSource||!e.isTrusted)||(Nn()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function kn(e){return!vn().includes("jsdom/")&&(!Nn()&&0===e.width&&0===e.height||Nn()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function jn(){return/apple/i.test(navigator.vendor)}function Nn(){const e=/android/i;return e.test(xn())||e.test(vn())}function Cn(){return xn().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function Sn(e,t){const r=["mouse","pen"];return t||r.push("",void 0),r.includes(e)}function En(e){return(null==e?void 0:e.ownerDocument)||document}function An(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const r=e;return null!=r.target&&t.contains(r.target)}function On(e){return"composedPath"in e?e.composedPath()[0]:e.target}Yr.displayName="Checkbox";const $n="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Pn(e){return rn(e)&&e.matches($n)}function Tn(e){e.preventDefault(),e.stopPropagation()}function In(e){return!!e&&("combobox"===e.getAttribute("role")&&Pn(e))}const Mn=["start","end"],Rn=["top","right","bottom","left"].reduce(((e,t)=>e.concat(t,t+"-"+Mn[0],t+"-"+Mn[1])),[]),Ln=Math.min,_n=Math.max,Dn=Math.round,Bn=Math.floor,zn=e=>({x:e,y:e}),Fn={left:"right",right:"left",bottom:"top",top:"bottom"},qn={start:"end",end:"start"};function Hn(e,t,r){return _n(e,Ln(t,r))}function Un(e,t){return"function"===typeof e?e(t):e}function Wn(e){return e.split("-")[0]}function Vn(e){return e.split("-")[1]}function Gn(e){return"x"===e?"y":"x"}function Kn(e){return"y"===e?"height":"width"}function Qn(e){return["top","bottom"].includes(Wn(e))?"y":"x"}function Yn(e){return Gn(Qn(e))}function Zn(e,t,r){void 0===r&&(r=!1);const n=Vn(e),o=Yn(e),a=Kn(o);let i="x"===o?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=Xn(i)),[i,Xn(i)]}function Jn(e){return e.replace(/start|end/g,(e=>qn[e]))}function Xn(e){return e.replace(/left|right|bottom|top/g,(e=>Fn[e]))}function eo(e){return"number"!==typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function to(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function ro(e,t,r){let{reference:n,floating:o}=e;const a=Qn(t),i=Yn(t),s=Kn(i),l=Wn(t),c="y"===a,u=n.x+n.width/2-o.width/2,d=n.y+n.height/2-o.height/2,f=n[s]/2-o[s]/2;let p;switch(l){case"top":p={x:u,y:n.y-o.height};break;case"bottom":p={x:u,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:d};break;case"left":p={x:n.x-o.width,y:d};break;default:p={x:n.x,y:n.y}}switch(Vn(t)){case"start":p[i]-=f*(r&&c?-1:1);break;case"end":p[i]+=f*(r&&c?-1:1)}return p}async function no(e,t){var r;void 0===t&&(t={});const{x:n,y:o,platform:a,rects:i,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=Un(t,e),h=eo(p),m=s[f?"floating"===d?"reference":"floating":d],g=to(await a.getClippingRect({element:null==(r=await(null==a.isElement?void 0:a.isElement(m)))||r?m:m.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),b="floating"===d?{x:n,y:o,width:i.floating.width,height:i.floating.height}:i.reference,y=await(null==a.getOffsetParent?void 0:a.getOffsetParent(s.floating)),x=await(null==a.isElement?void 0:a.isElement(y))&&await(null==a.getScale?void 0:a.getScale(y))||{x:1,y:1},v=to(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:y,strategy:l}):b);return{top:(g.top-v.top+h.top)/x.y,bottom:(v.bottom-g.bottom+h.bottom)/x.y,left:(g.left-v.left+h.left)/x.x,right:(v.right-g.right+h.right)/x.x}}function oo(e){const t=dn(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=rn(e),a=o?e.offsetWidth:r,i=o?e.offsetHeight:n,s=Dn(r)!==a||Dn(n)!==i;return s&&(r=a,n=i),{width:r,height:n,$:s}}function ao(e){return tn(e)?e:e.contextElement}function io(e){const t=ao(e);if(!rn(t))return zn(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:a}=oo(t);let i=(a?Dn(r.width):r.width)/n,s=(a?Dn(r.height):r.height)/o;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const so=zn(0);function lo(e){const t=Jr(e);return cn()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:so}function co(e,t,r,n){void 0===t&&(t=!1),void 0===r&&(r=!1);const o=e.getBoundingClientRect(),a=ao(e);let i=zn(1);t&&(n?tn(n)&&(i=io(n)):i=io(e));const s=function(e,t,r){return void 0===t&&(t=!1),!(!r||t&&r!==Jr(e))&&t}(a,r,n)?lo(a):zn(0);let l=(o.left+s.x)/i.x,c=(o.top+s.y)/i.y,u=o.width/i.x,d=o.height/i.y;if(a){const e=Jr(a),t=n&&tn(n)?Jr(n):n;let r=e,o=gn(r);for(;o&&n&&t!==r;){const e=io(o),t=o.getBoundingClientRect(),n=dn(o),a=t.left+(o.clientLeft+parseFloat(n.paddingLeft))*e.x,i=t.top+(o.clientTop+parseFloat(n.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=a,c+=i,r=Jr(o),o=gn(r)}}return to({width:u,height:d,x:l,y:c})}function uo(e){return co(Xr(e)).left+fn(e).scrollLeft}function fo(e,t,r){let n;if("viewport"===t)n=function(e,t){const r=Jr(e),n=Xr(e),o=r.visualViewport;let a=n.clientWidth,i=n.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;const e=cn();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:a,height:i,x:s,y:l}}(e,r);else if("document"===t)n=function(e){const t=Xr(e),r=fn(e),n=e.ownerDocument.body,o=_n(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=_n(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let i=-r.scrollLeft+uo(e);const s=-r.scrollTop;return"rtl"===dn(n).direction&&(i+=_n(t.clientWidth,n.clientWidth)-o),{width:o,height:a,x:i,y:s}}(Xr(e));else if(tn(t))n=function(e,t){const r=co(e,!0,"fixed"===t),n=r.top+e.clientTop,o=r.left+e.clientLeft,a=rn(e)?io(e):zn(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:o*a.x,y:n*a.y}}(t,r);else{const r=lo(e);n={...t,x:t.x-r.x,y:t.y-r.y}}return to(n)}function po(e,t){const r=pn(e);return!(r===t||!tn(r)||un(r))&&("fixed"===dn(r).position||po(r,t))}function ho(e,t,r){const n=rn(t),o=Xr(t),a="fixed"===r,i=co(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=zn(0);if(n||!n&&!a)if(("body"!==Zr(t)||on(o))&&(s=fn(t)),n){const e=co(t,!0,a,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=uo(o));return{x:i.left+s.scrollLeft-l.x,y:i.top+s.scrollTop-l.y,width:i.width,height:i.height}}function mo(e){return"static"===dn(e).position}function go(e,t){return rn(e)&&"fixed"!==dn(e).position?t?t(e):e.offsetParent:null}function bo(e,t){const r=Jr(e);if(sn(e))return r;if(!rn(e)){let t=pn(e);for(;t&&!un(t);){if(tn(t)&&!mo(t))return t;t=pn(t)}return r}let n=go(e,t);for(;n&&an(n)&&mo(n);)n=go(n,t);return n&&un(n)&&mo(n)&&!ln(n)?r:n||function(e){let t=pn(e);for(;rn(t)&&!un(t);){if(ln(t))return t;if(sn(t))return null;t=pn(t)}return null}(e)||r}const yo={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const a="fixed"===o,i=Xr(n),s=!!t&&sn(t.floating);if(n===i||s&&a)return r;let l={scrollLeft:0,scrollTop:0},c=zn(1);const u=zn(0),d=rn(n);if((d||!d&&!a)&&(("body"!==Zr(n)||on(i))&&(l=fn(n)),rn(n))){const e=co(n);c=io(n),u.x=e.x+n.clientLeft,u.y=e.y+n.clientTop}return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x,y:r.y*c.y-l.scrollTop*c.y+u.y}},getDocumentElement:Xr,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const a="clippingAncestors"===r?sn(t)?[]:function(e,t){const r=t.get(e);if(r)return r;let n=mn(e,[],!1).filter((e=>tn(e)&&"body"!==Zr(e))),o=null;const a="fixed"===dn(e).position;let i=a?pn(e):e;for(;tn(i)&&!un(i);){const t=dn(i),r=ln(i);r||"fixed"!==t.position||(o=null),(a?!r&&!o:!r&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||on(i)&&!r&&po(e,i))?n=n.filter((e=>e!==i)):o=t,i=pn(i)}return t.set(e,n),n}(t,this._c):[].concat(r),i=[...a,n],s=i[0],l=i.reduce(((e,r)=>{const n=fo(t,r,o);return e.top=_n(n.top,e.top),e.right=Ln(n.right,e.right),e.bottom=Ln(n.bottom,e.bottom),e.left=_n(n.left,e.left),e}),fo(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:bo,getElementRects:async function(e){const t=this.getOffsetParent||bo,r=this.getDimensions,n=await r(e.floating);return{reference:ho(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:r}=oo(e);return{width:t,height:r}},getScale:io,isElement:tn,isRTL:function(e){return"rtl"===dn(e).direction}};function xo(e,t,r,n){void 0===n&&(n={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i="function"===typeof ResizeObserver,layoutShift:s="function"===typeof IntersectionObserver,animationFrame:l=!1}=n,c=ao(e),u=o||a?[...c?mn(c):[],...mn(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",r,{passive:!0}),a&&e.addEventListener("resize",r)}));const d=c&&s?function(e,t){let r,n=null;const o=Xr(e);function a(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return function i(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),a();const{left:c,top:u,width:d,height:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;const p={rootMargin:-Bn(u)+"px "+-Bn(o.clientWidth-(c+d))+"px "+-Bn(o.clientHeight-(u+f))+"px "+-Bn(c)+"px",threshold:_n(0,Ln(1,l))||1};let h=!0;function m(e){const t=e[0].intersectionRatio;if(t!==l){if(!h)return i();t?i(!1,t):r=setTimeout((()=>{i(!1,1e-7)}),1e3)}h=!1}try{n=new IntersectionObserver(m,{...p,root:o.ownerDocument})}catch(g){n=new IntersectionObserver(m,p)}n.observe(e)}(!0),a}(c,r):null;let f,p=-1,h=null;i&&(h=new ResizeObserver((e=>{let[n]=e;n&&n.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),r()})),c&&!l&&h.observe(c),h.observe(t));let m=l?co(e):null;return l&&function t(){const n=co(e);!m||n.x===m.x&&n.y===m.y&&n.width===m.width&&n.height===m.height||r();m=n,f=requestAnimationFrame(t)}(),r(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",r),a&&e.removeEventListener("resize",r)})),null==d||d(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(f)}}const vo=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:a,placement:i,middlewareData:s}=t,l=await async function(e,t){const{placement:r,platform:n,elements:o}=e,a=await(null==n.isRTL?void 0:n.isRTL(o.floating)),i=Wn(r),s=Vn(r),l="y"===Qn(r),c=["left","top"].includes(i)?-1:1,u=a&&l?-1:1,d=Un(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"===typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"===typeof h&&(p="end"===s?-1*h:h),l?{x:p*u,y:f*c}:{x:f*c,y:p*u}}(t,e);return i===(null==(r=s.offset)?void 0:r.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:i}}}}},wo=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,n,o;const{rects:a,middlewareData:i,placement:s,platform:l,elements:c}=t,{crossAxis:u=!1,alignment:d,allowedPlacements:f=Rn,autoAlignment:p=!0,...h}=Un(e,t),m=void 0!==d||f===Rn?function(e,t,r){return(e?[...r.filter((t=>Vn(t)===e)),...r.filter((t=>Vn(t)!==e))]:r.filter((e=>Wn(e)===e))).filter((r=>!e||Vn(r)===e||!!t&&Jn(r)!==r))}(d||null,p,f):f,g=await no(t,h),b=(null==(r=i.autoPlacement)?void 0:r.index)||0,y=m[b];if(null==y)return{};const x=Zn(y,a,await(null==l.isRTL?void 0:l.isRTL(c.floating)));if(s!==y)return{reset:{placement:m[0]}};const v=[g[Wn(y)],g[x[0]],g[x[1]]],w=[...(null==(n=i.autoPlacement)?void 0:n.overflows)||[],{placement:y,overflows:v}],k=m[b+1];if(k)return{data:{index:b+1,overflows:w},reset:{placement:k}};const j=w.map((e=>{const t=Vn(e.placement);return[e.placement,t&&u?e.overflows.slice(0,2).reduce(((e,t)=>e+t),0):e.overflows[0],e.overflows]})).sort(((e,t)=>e[1]-t[1])),N=j.filter((e=>e[2].slice(0,Vn(e[0])?2:3).every((e=>e<=0)))),C=(null==(o=N[0])?void 0:o[0])||j[0][0];return C!==s?{data:{index:b+1,overflows:w},reset:{placement:C}}:{}}}},ko=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...l}=Un(e,t),c={x:r,y:n},u=await no(t,l),d=Qn(Wn(o)),f=Gn(d);let p=c[f],h=c[d];if(a){const e="y"===f?"bottom":"right";p=Hn(p+u["y"===f?"top":"left"],p,p-u[e])}if(i){const e="y"===d?"bottom":"right";h=Hn(h+u["y"===d?"top":"left"],h,h-u[e])}const m=s.fn({...t,[f]:p,[d]:h});return{...m,data:{x:m.x-r,y:m.y-n}}}}},jo=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...g}=Un(e,t);if(null!=(r=a.arrow)&&r.alignmentOffset)return{};const b=Wn(o),y=Wn(s)===s,x=await(null==l.isRTL?void 0:l.isRTL(c.floating)),v=f||(y||!m?[Xn(s)]:function(e){const t=Xn(e);return[Jn(e),t,Jn(t)]}(s));f||"none"===h||v.push(...function(e,t,r,n){const o=Vn(e);let a=function(e,t,r){const n=["left","right"],o=["right","left"],a=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return r?t?o:n:t?n:o;case"left":case"right":return t?a:i;default:return[]}}(Wn(e),"start"===r,n);return o&&(a=a.map((e=>e+"-"+o)),t&&(a=a.concat(a.map(Jn)))),a}(s,m,h,x));const w=[s,...v],k=await no(t,g),j=[];let N=(null==(n=a.flip)?void 0:n.overflows)||[];if(u&&j.push(k[b]),d){const e=Zn(o,i,x);j.push(k[e[0]],k[e[1]])}if(N=[...N,{placement:o,overflows:j}],!j.every((e=>e<=0))){var C,S;const e=((null==(C=a.flip)?void 0:C.index)||0)+1,t=w[e];if(t)return{data:{index:e,overflows:N},reset:{placement:t}};let r=null==(S=N.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:S.placement;if(!r)switch(p){case"bestFit":{var E;const e=null==(E=N.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:E[0];e&&(r=e);break}case"initialPlacement":r=s}if(o!==r)return{reset:{placement:r}}}return{}}}},No=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:a,platform:i,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=Un(e,t)||{};if(null==c)return{};const d=eo(u),f={x:r,y:n},p=Yn(o),h=Kn(p),m=await i.getDimensions(c),g="y"===p,b=g?"top":"left",y=g?"bottom":"right",x=g?"clientHeight":"clientWidth",v=a.reference[h]+a.reference[p]-f[p]-a.floating[h],w=f[p]-a.reference[p],k=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c));let j=k?k[x]:0;j&&await(null==i.isElement?void 0:i.isElement(k))||(j=s.floating[x]||a.floating[h]);const N=v/2-w/2,C=j/2-m[h]/2-1,S=Ln(d[b],C),E=Ln(d[y],C),A=S,O=j-m[h]-E,$=j/2-m[h]/2+N,P=Hn(A,$,O),T=!l.arrow&&null!=Vn(o)&&$!==P&&a.reference[h]/2-($<A?S:E)-m[h]/2<0,I=T?$<A?$-A:$-O:0;return{[p]:f[p]+I,data:{[p]:P,centerOffset:$-P-I,...T&&{alignmentOffset:I}},reset:T}}}),Co=(e,t,r)=>{const n=new Map,o={platform:yo,...r},a={...o.platform,_c:n};return(async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:i}=r,s=a.filter(Boolean),l=await(null==i.isRTL?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=ro(c,n,l),f=n,p={},h=0;for(let m=0;m<s.length;m++){const{name:r,fn:a}=s[m],{x:g,y:b,data:y,reset:x}=await a({x:u,y:d,initialPlacement:n,placement:f,strategy:o,middlewareData:p,rects:c,platform:i,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=b?b:d,p={...p,[r]:{...p[r],...y}},x&&h<=50&&(h++,"object"===typeof x&&(x.placement&&(f=x.placement),x.rects&&(c=!0===x.rects?await i.getElementRects({reference:e,floating:t,strategy:o}):x.rects),({x:u,y:d}=ro(c,f,l))),m=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:a})};var So=r(7950),Eo=r.t(So,2),Ao="undefined"!==typeof document?n.useLayoutEffect:n.useEffect;function Oo(e,t){if(e===t)return!0;if(typeof e!==typeof t)return!1;if("function"===typeof e&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&"object"===typeof e){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;0!==n--;)if(!Oo(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;0!==n--;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;0!==n--;){const r=o[n];if(("_owner"!==r||!e.$$typeof)&&!Oo(e[r],t[r]))return!1}return!0}return e!==e&&t!==t}function $o(e){if("undefined"===typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Po(e,t){const r=$o(e);return Math.round(t*r)/r}function To(e){const t=n.useRef(e);return Ao((()=>{t.current=e})),t}const Io=e=>({name:"arrow",options:e,fn(t){const{element:r,padding:n}="function"===typeof e?e(t):e;return r&&(o=r,{}.hasOwnProperty.call(o,"current"))?null!=r.current?No({element:r.current,padding:n}).fn(t):{}:r?No({element:r,padding:n}).fn(t):{};var o}});var Mo=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Ro=Mo.join(","),Lo="undefined"===typeof Element,_o=Lo?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Do=!Lo&&Element.prototype.getRootNode?function(e){var t;return null===e||void 0===e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null===e||void 0===e?void 0:e.ownerDocument},Bo=function e(t,r){var n;void 0===r&&(r=!0);var o=null===t||void 0===t||null===(n=t.getAttribute)||void 0===n?void 0:n.call(t,"inert");return""===o||"true"===o||r&&t&&e(t.parentNode)},zo=function(e,t,r){if(Bo(e))return[];var n=Array.prototype.slice.apply(e.querySelectorAll(Ro));return t&&_o.call(e,Ro)&&n.unshift(e),n=n.filter(r)},Fo=function e(t,r,n){for(var o=[],a=Array.from(t);a.length;){var i=a.shift();if(!Bo(i,!1))if("SLOT"===i.tagName){var s=i.assignedElements(),l=e(s.length?s:i.children,!0,n);n.flatten?o.push.apply(o,l):o.push({scopeParent:i,candidates:l})}else{_o.call(i,Ro)&&n.filter(i)&&(r||!t.includes(i))&&o.push(i);var c=i.shadowRoot||"function"===typeof n.getShadowRoot&&n.getShadowRoot(i),u=!Bo(c,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(i));if(c&&u){var d=e(!0===c?i.children:c.children,!0,n);n.flatten?o.push.apply(o,d):o.push({scopeParent:i,candidates:d})}else a.unshift.apply(a,i.children)}}return o},qo=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},Ho=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,r=null===e||void 0===e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===r||"true"===r}(e))&&!qo(e)?0:e.tabIndex},Uo=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Wo=function(e){return"INPUT"===e.tagName},Vo=function(e){return function(e){return Wo(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,r=e.form||Do(e),n=function(e){return r.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!==typeof window&&"undefined"!==typeof window.CSS&&"function"===typeof window.CSS.escape)t=n(window.CSS.escape(e.name));else try{t=n(e.name)}catch(a){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",a.message),!1}var o=function(e,t){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===t)return e[r]}(t,e.form);return!o||o===e}(e)},Go=function(e){var t=e.getBoundingClientRect(),r=t.width,n=t.height;return 0===r&&0===n},Ko=function(e,t){var r=t.displayCheck,n=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=_o.call(e,"details>summary:first-of-type")?e.parentElement:e;if(_o.call(o,"details:not([open]) *"))return!0;if(r&&"full"!==r&&"legacy-full"!==r){if("non-zero-area"===r)return Go(e)}else{if("function"===typeof n){for(var a=e;e;){var i=e.parentElement,s=Do(e);if(i&&!i.shadowRoot&&!0===n(i))return Go(e);e=e.assignedSlot?e.assignedSlot:i||s===e.ownerDocument?i:s.host}e=a}if(function(e){var t,r,n,o,a=e&&Do(e),i=null===(t=a)||void 0===t?void 0:t.host,s=!1;if(a&&a!==e)for(s=!!(null!==(r=i)&&void 0!==r&&null!==(n=r.ownerDocument)&&void 0!==n&&n.contains(i)||null!==e&&void 0!==e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!s&&i;){var l,c,u;s=!(null===(c=i=null===(l=a=Do(i))||void 0===l?void 0:l.host)||void 0===c||null===(u=c.ownerDocument)||void 0===u||!u.contains(i))}return s}(e))return!e.getClientRects().length;if("legacy-full"!==r)return!0}return!1},Qo=function(e,t){return!(t.disabled||Bo(t)||function(e){return Wo(e)&&"hidden"===e.type}(t)||Ko(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var r=0;r<t.children.length;r++){var n=t.children.item(r);if("LEGEND"===n.tagName)return!!_o.call(t,"fieldset[disabled] *")||!n.contains(e)}return!0}t=t.parentElement}return!1}(t))},Yo=function(e,t){return!(Vo(t)||Ho(t)<0||!Qo(e,t))},Zo=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},Jo=function e(t){var r=[],n=[];return t.forEach((function(t,o){var a=!!t.scopeParent,i=a?t.scopeParent:t,s=function(e,t){var r=Ho(e);return r<0&&t&&!qo(e)?0:r}(i,a),l=a?e(t.candidates):i;0===s?a?r.push.apply(r,l):r.push(i):n.push({documentOrder:o,tabIndex:s,item:t,isScope:a,content:l})})),n.sort(Uo).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(r)},Xo=function(e,t){var r;return r=(t=t||{}).getShadowRoot?Fo([e],t.includeContainer,{filter:Yo.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Zo}):zo(e,t.includeContainer,Yo.bind(null,t)),Jo(r)},ea=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==_o.call(e,Ro)&&Yo(t,e)};function ta(e){return n.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{"function"===typeof e?e(t):null!=e&&(e.current=t)}))}),e)}const ra={...o},na=ra.useInsertionEffect||(e=>e());function oa(e){const t=n.useRef((()=>{0}));return na((()=>{t.current=e})),n.useCallback((function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return null==t.current?void 0:t.current(...r)}),[])}const aa="ArrowUp",ia="ArrowDown",sa="ArrowLeft",la="ArrowRight";function ca(e,t,r){return Math.floor(e/t)!==r}function ua(e,t){return t<0||t>=e.current.length}function da(e,t){return pa(e,{disabledIndices:t})}function fa(e,t){return pa(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function pa(e,t){let{startingIndex:r=-1,decrement:n=!1,disabledIndices:o,amount:a=1}=void 0===t?{}:t;const i=e.current;let s=r;do{s+=n?-a:a}while(s>=0&&s<=i.length-1&&ya(i,s,o));return s}function ha(e,t){let{event:r,orientation:n,loop:o,cols:a,disabledIndices:i,minIndex:s,maxIndex:l,prevIndex:c,stopEvent:u=!1}=t,d=c;if(r.key===aa){if(u&&Tn(r),-1===c)d=l;else if(d=pa(e,{startingIndex:d,amount:a,decrement:!0,disabledIndices:i}),o&&(c-a<s||d<0)){const e=c%a,t=l%a,r=l-(t-e);d=t===e?l:t>e?r:r-a}ua(e,d)&&(d=c)}if(r.key===ia&&(u&&Tn(r),-1===c?d=s:(d=pa(e,{startingIndex:c,amount:a,disabledIndices:i}),o&&c+a>l&&(d=pa(e,{startingIndex:c%a-a,amount:a,disabledIndices:i}))),ua(e,d)&&(d=c)),"both"===n){const t=Bn(c/a);r.key===la&&(u&&Tn(r),c%a!==a-1?(d=pa(e,{startingIndex:c,disabledIndices:i}),o&&ca(d,a,t)&&(d=pa(e,{startingIndex:c-c%a-1,disabledIndices:i}))):o&&(d=pa(e,{startingIndex:c-c%a-1,disabledIndices:i})),ca(d,a,t)&&(d=c)),r.key===sa&&(u&&Tn(r),c%a!==0?(d=pa(e,{startingIndex:c,decrement:!0,disabledIndices:i}),o&&ca(d,a,t)&&(d=pa(e,{startingIndex:c+(a-c%a),decrement:!0,disabledIndices:i}))):o&&(d=pa(e,{startingIndex:c+(a-c%a),decrement:!0,disabledIndices:i})),ca(d,a,t)&&(d=c));const n=Bn(l/a)===t;ua(e,d)&&(d=o&&n?r.key===sa?l:pa(e,{startingIndex:c-c%a-1,disabledIndices:i}):c)}return d}function ma(e,t,r){const n=[];let o=0;return e.forEach(((e,a)=>{let{width:i,height:s}=e,l=!1;for(r&&(o=0);!l;){const e=[];for(let r=0;r<i;r++)for(let n=0;n<s;n++)e.push(o+r+n*t);o%t+i<=t&&e.every((e=>null==n[e]))?(e.forEach((e=>{n[e]=a})),l=!0):o++}})),[...n]}function ga(e,t,r,n,o){if(-1===e)return-1;const a=r.indexOf(e),i=t[e];switch(o){case"tl":return a;case"tr":return i?a+i.width-1:a;case"bl":return i?a+(i.height-1)*n:a;case"br":return r.lastIndexOf(e)}}function ba(e,t){return t.flatMap(((t,r)=>e.includes(t)?[r]:[]))}function ya(e,t,r){if(r)return r.includes(t);const n=e[t];return null==n||n.hasAttribute("disabled")||"true"===n.getAttribute("aria-disabled")}let xa=0;function va(e,t){void 0===t&&(t={});const{preventScroll:r=!1,cancelPrevious:n=!0,sync:o=!1}=t;n&&cancelAnimationFrame(xa);const a=()=>null==e?void 0:e.focus({preventScroll:r});o?a():xa=requestAnimationFrame(a)}var wa="undefined"!==typeof document?n.useLayoutEffect:n.useEffect;function ka(e,t){const r=e.compareDocumentPosition(t);return r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS?1:0}const ja=n.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function Na(e){const{children:t,elementsRef:r,labelsRef:o}=e,[a,i]=n.useState((()=>new Map)),s=n.useCallback((e=>{i((t=>new Map(t).set(e,null)))}),[]),l=n.useCallback((e=>{i((t=>{const r=new Map(t);return r.delete(e),r}))}),[]);return wa((()=>{const e=new Map(a);Array.from(e.keys()).sort(ka).forEach(((t,r)=>{e.set(t,r)})),function(e,t){if(e.size!==t.size)return!1;for(const[r,n]of e.entries())if(n!==t.get(r))return!1;return!0}(a,e)||i(e)}),[a]),n.createElement(ja.Provider,{value:n.useMemo((()=>({register:s,unregister:l,map:a,elementsRef:r,labelsRef:o})),[s,l,a,r,o])},t)}function Ca(e){void 0===e&&(e={});const{label:t}=e,{register:r,unregister:o,map:a,elementsRef:i,labelsRef:s}=n.useContext(ja),[l,c]=n.useState(null),u=n.useRef(null),d=n.useCallback((e=>{if(u.current=e,null!==l&&(i.current[l]=e,s)){var r;const n=void 0!==t;s.current[l]=n?t:null!=(r=null==e?void 0:e.textContent)?r:null}}),[l,i,s,t]);return wa((()=>{const e=u.current;if(e)return r(e),()=>{o(e)}}),[r,o]),wa((()=>{const e=u.current?a.get(u.current):null;null!=e&&c(e)}),[a]),n.useMemo((()=>({ref:d,index:null==l?-1:l})),[l,d])}const Sa=[sa,la],Ea=[aa,ia];function Aa(){return Aa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Aa.apply(this,arguments)}let Oa=!1,$a=0;const Pa=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+$a++;const Ta=ra.useId||function(){const[e,t]=n.useState((()=>Oa?Pa():void 0));return wa((()=>{null==e&&t(Pa())}),[]),n.useEffect((()=>{Oa=!0}),[]),e};function Ia(){const e=new Map;return{emit(t,r){var n;null==(n=e.get(t))||n.forEach((e=>e(r)))},on(t,r){e.set(t,[...e.get(t)||[],r])},off(t,r){var n;e.set(t,(null==(n=e.get(t))?void 0:n.filter((e=>e!==r)))||[])}}}const Ma=n.createContext(null),Ra=n.createContext(null),La=()=>{var e;return(null==(e=n.useContext(Ma))?void 0:e.id)||null},_a=()=>n.useContext(Ra);function Da(e){return"data-floating-ui-"+e}function Ba(e){const t=(0,n.useRef)(e);return wa((()=>{t.current=e})),t}const za=Da("safe-polygon");function Fa(e,t,r){return r&&!Sn(r)?0:"number"===typeof e?e:null==e?void 0:e[t]}function qa(e,t){void 0===t&&(t={});const{open:r,onOpenChange:o,dataRef:a,events:i,elements:{domReference:s,floating:l}}=e,{enabled:c=!0,delay:u=0,handleClose:d=null,mouseOnly:f=!1,restMs:p=0,move:h=!0}=t,m=_a(),g=La(),b=Ba(d),y=Ba(u),x=n.useRef(),v=n.useRef(-1),w=n.useRef(),k=n.useRef(-1),j=n.useRef(!0),N=n.useRef(!1),C=n.useRef((()=>{})),S=n.useCallback((()=>{var e;const t=null==(e=a.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t}),[a]);n.useEffect((()=>{if(c)return i.on("openchange",e),()=>{i.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(v.current),clearTimeout(k.current),j.current=!0)}}),[c,i]),n.useEffect((()=>{if(!c||!b.current||!r)return;function e(e){S()&&o(!1,e,"hover")}const t=En(l).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[l,r,o,c,b,S]);const E=n.useCallback((function(e,t,r){void 0===t&&(t=!0),void 0===r&&(r="hover");const n=Fa(y.current,"close",x.current);n&&!w.current?(clearTimeout(v.current),v.current=window.setTimeout((()=>o(!1,e,r)),n)):t&&(clearTimeout(v.current),o(!1,e,r))}),[y,o]),A=oa((()=>{C.current(),w.current=void 0})),O=oa((()=>{if(N.current){const e=En(l).body;e.style.pointerEvents="",e.removeAttribute(za),N.current=!1}}));return n.useEffect((()=>{if(c&&tn(s)){const e=s;return r&&e.addEventListener("mouseleave",i),null==l||l.addEventListener("mouseleave",i),h&&e.addEventListener("mousemove",t,{once:!0}),e.addEventListener("mouseenter",t),e.addEventListener("mouseleave",n),()=>{r&&e.removeEventListener("mouseleave",i),null==l||l.removeEventListener("mouseleave",i),h&&e.removeEventListener("mousemove",t),e.removeEventListener("mouseenter",t),e.removeEventListener("mouseleave",n)}}function e(){return!!a.current.openEvent&&["click","mousedown"].includes(a.current.openEvent.type)}function t(e){if(clearTimeout(v.current),j.current=!1,f&&!Sn(x.current)||p>0&&!Fa(y.current,"open"))return;const t=Fa(y.current,"open",x.current);t?v.current=window.setTimeout((()=>{o(!0,e,"hover")}),t):o(!0,e,"hover")}function n(t){if(e())return;C.current();const n=En(l);if(clearTimeout(k.current),b.current&&a.current.floatingContext){r||clearTimeout(v.current),w.current=b.current({...a.current.floatingContext,tree:m,x:t.clientX,y:t.clientY,onClose(){O(),A(),E(t,!0,"safe-polygon")}});const e=w.current;return n.addEventListener("mousemove",e),void(C.current=()=>{n.removeEventListener("mousemove",e)})}("touch"!==x.current||!yn(l,t.relatedTarget))&&E(t)}function i(t){e()||a.current.floatingContext&&(null==b.current||b.current({...a.current.floatingContext,tree:m,x:t.clientX,y:t.clientY,onClose(){O(),A(),E(t)}})(t))}}),[s,l,c,e,f,p,h,E,A,O,o,r,m,y,b,a]),wa((()=>{var e;if(c&&r&&null!=(e=b.current)&&e.__options.blockPointerEvents&&S()){const e=En(l).body;if(e.setAttribute(za,""),e.style.pointerEvents="none",N.current=!0,tn(s)&&l){var t;const e=s,r=null==m||null==(t=m.nodesRef.current.find((e=>e.id===g)))||null==(t=t.context)?void 0:t.elements.floating;return r&&(r.style.pointerEvents=""),e.style.pointerEvents="auto",l.style.pointerEvents="auto",()=>{e.style.pointerEvents="",l.style.pointerEvents=""}}}}),[c,r,g,l,s,m,b,S]),wa((()=>{r||(x.current=void 0,A(),O())}),[r,A,O]),n.useEffect((()=>()=>{A(),clearTimeout(v.current),clearTimeout(k.current),O()}),[c,s,A,O]),n.useMemo((()=>{if(!c)return{};function e(e){x.current=e.pointerType}return{reference:{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function n(){j.current||o(!0,t,"hover")}f&&!Sn(x.current)||r||0===p||(clearTimeout(k.current),"touch"===x.current?n():k.current=window.setTimeout(n,p))}},floating:{onMouseEnter(){clearTimeout(v.current)},onMouseLeave(e){E(e.nativeEvent,!1)}}}}),[c,f,r,p,o,E])}function Ha(e,t){let r=e.filter((e=>{var r;return e.parentId===t&&(null==(r=e.context)?void 0:r.open)})),n=r;for(;n.length;)n=e.filter((e=>{var t;return null==(t=n)?void 0:t.some((t=>{var r;return e.parentId===t.id&&(null==(r=e.context)?void 0:r.open)}))})),r=r.concat(n);return r}let Ua=new WeakMap,Wa=new WeakSet,Va={},Ga=0;const Ka=e=>e&&(e.host||Ka(e.parentNode)),Qa=(e,t)=>t.map((t=>{if(e.contains(t))return t;const r=Ka(t);return e.contains(r)?r:null})).filter((e=>null!=e));function Ya(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);const n=En(e[0]).body;return function(e,t,r,n){const o="data-floating-ui-inert",a=n?"inert":r?"aria-hidden":null,i=Qa(t,e),s=new Set,l=new Set(i),c=[];Va[o]||(Va[o]=new WeakMap);const u=Va[o];return i.forEach((function e(t){t&&!s.has(t)&&(s.add(t),t.parentNode&&e(t.parentNode))})),function e(t){t&&!l.has(t)&&[].forEach.call(t.children,(t=>{if("script"!==Zr(t))if(s.has(t))e(t);else{const e=a?t.getAttribute(a):null,r=null!==e&&"false"!==e,n=(Ua.get(t)||0)+1,i=(u.get(t)||0)+1;Ua.set(t,n),u.set(t,i),c.push(t),1===n&&r&&Wa.add(t),1===i&&t.setAttribute(o,""),!r&&a&&t.setAttribute(a,"true")}}))}(t),s.clear(),Ga++,()=>{c.forEach((e=>{const t=(Ua.get(e)||0)-1,r=(u.get(e)||0)-1;Ua.set(e,t),u.set(e,r),t||(!Wa.has(e)&&a&&e.removeAttribute(a),Wa.delete(e)),r||e.removeAttribute(o)})),Ga--,Ga||(Ua=new WeakMap,Ua=new WeakMap,Wa=new WeakSet,Va={})}}(e.concat(Array.from(n.querySelectorAll("[aria-live]"))),n,t,r)}const Za=()=>({getShadowRoot:!0,displayCheck:"function"===typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Ja(e,t){const r=Xo(e,Za());"prev"===t&&r.reverse();const n=r.indexOf(bn(En(e)));return r.slice(n+1)[0]}function Xa(){return Ja(document.body,"next")}function ei(){return Ja(document.body,"prev")}function ti(e,t){const r=t||e.currentTarget,n=e.relatedTarget;return!n||!yn(r,n)}function ri(e){Xo(e,Za()).forEach((e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}))}function ni(e){e.querySelectorAll("[data-tabindex]").forEach((e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")}))}const oi={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function ai(e){"Tab"===e.key&&(e.target,clearTimeout(undefined))}const ii=n.forwardRef((function(e,t){const[r,o]=n.useState();wa((()=>(jn()&&o("button"),document.addEventListener("keydown",ai),()=>{document.removeEventListener("keydown",ai)})),[]);const a={ref:t,tabIndex:0,role:r,"aria-hidden":!r||void 0,[Da("focus-guard")]:"",style:oi};return n.createElement("span",Aa({},e,a))})),si=n.createContext(null),li=Da("portal");function ci(e){const{children:t,id:r,root:o=null,preserveTabOrder:a=!0}=e,i=function(e){void 0===e&&(e={});const{id:t,root:r}=e,o=Ta(),a=ui(),[i,s]=n.useState(null),l=n.useRef(null);return wa((()=>()=>{null==i||i.remove(),queueMicrotask((()=>{l.current=null}))}),[i]),wa((()=>{if(!o)return;if(l.current)return;const e=t?document.getElementById(t):null;if(!e)return;const r=document.createElement("div");r.id=o,r.setAttribute(li,""),e.appendChild(r),l.current=r,s(r)}),[t,o]),wa((()=>{if(!o)return;if(l.current)return;let e=r||(null==a?void 0:a.portalNode);e&&!tn(e)&&(e=e.current),e=e||document.body;let n=null;t&&(n=document.createElement("div"),n.id=t,e.appendChild(n));const i=document.createElement("div");i.id=o,i.setAttribute(li,""),e=n||e,e.appendChild(i),l.current=i,s(i)}),[t,r,o,a]),i}({id:r,root:o}),[s,l]=n.useState(null),c=n.useRef(null),u=n.useRef(null),d=n.useRef(null),f=n.useRef(null),p=!!s&&!s.modal&&s.open&&a&&!(!o&&!i);return n.useEffect((()=>{if(i&&a&&(null==s||!s.modal))return i.addEventListener("focusin",e,!0),i.addEventListener("focusout",e,!0),()=>{i.removeEventListener("focusin",e,!0),i.removeEventListener("focusout",e,!0)};function e(e){if(i&&ti(e)){("focusin"===e.type?ni:ri)(i)}}}),[i,a,null==s?void 0:s.modal]),n.createElement(si.Provider,{value:n.useMemo((()=>({preserveTabOrder:a,beforeOutsideRef:c,afterOutsideRef:u,beforeInsideRef:d,afterInsideRef:f,portalNode:i,setFocusManagerState:l})),[a,i])},p&&i&&n.createElement(ii,{"data-type":"outside",ref:c,onFocus:e=>{if(ti(e,i)){var t;null==(t=d.current)||t.focus()}else{const e=ei()||(null==s?void 0:s.refs.domReference.current);null==e||e.focus()}}}),p&&i&&n.createElement("span",{"aria-owns":i.id,style:oi}),i&&(0,So.createPortal)(t,i),p&&i&&n.createElement(ii,{"data-type":"outside",ref:u,onFocus:e=>{if(ti(e,i)){var t;null==(t=f.current)||t.focus()}else{const t=Xa()||(null==s?void 0:s.refs.domReference.current);null==t||t.focus(),(null==s?void 0:s.closeOnFocusOut)&&(null==s||s.onOpenChange(!1,e.nativeEvent))}}}))}const ui=()=>n.useContext(si),di=20;let fi=[];function pi(e){fi=fi.filter((e=>e.isConnected));let t=e;if(t&&"body"!==Zr(t)){if(!ea(t,Za())){const e=Xo(t,Za())[0];e&&(t=e)}fi.push(t),fi.length>di&&(fi=fi.slice(-di))}}function hi(){return fi.slice().reverse().find((e=>e.isConnected))}const mi=n.forwardRef((function(e,t){return n.createElement("button",Aa({},e,{type:"button",ref:t,tabIndex:-1,style:oi}))}));function gi(e){const{context:t,children:r,disabled:o=!1,order:a=["content"],guards:i=!0,initialFocus:s=0,returnFocus:l=!0,restoreFocus:c=!1,modal:u=!0,visuallyHiddenDismiss:d=!1,closeOnFocusOut:f=!0}=e,{open:p,refs:h,nodeId:m,onOpenChange:g,events:b,dataRef:y,floatingId:x,elements:{domReference:v,floating:w}}=t,k="number"===typeof s&&s<0,j=In(v)&&k,N="undefined"===typeof HTMLElement||!("inert"in HTMLElement.prototype)||i,C=Ba(a),S=Ba(s),E=Ba(l),A=_a(),O=ui(),$=n.useRef(null),P=n.useRef(null),T=n.useRef(!1),I=n.useRef(!1),M=n.useRef(-1),R=null!=O,L=null==w?void 0:w.firstElementChild,_=(null==L?void 0:L.id)===x?L:w,D=oa((function(e){return void 0===e&&(e=_),e?Xo(e,Za()):[]})),B=oa((e=>{const t=D(e);return C.current.map((e=>v&&"reference"===e?v:_&&"floating"===e?_:t)).filter(Boolean).flat()}));function z(e){return!o&&d&&u?n.createElement(mi,{ref:"start"===e?$:P,onClick:e=>g(!1,e.nativeEvent)},"string"===typeof d?d:"Dismiss"):null}n.useEffect((()=>{if(o)return;if(!u)return;function e(e){if("Tab"===e.key){yn(_,bn(En(_)))&&0===D().length&&!j&&Tn(e);const t=B(),r=On(e);"reference"===C.current[0]&&r===v&&(Tn(e),e.shiftKey?va(t[t.length-1]):va(t[1])),"floating"===C.current[1]&&r===_&&e.shiftKey&&(Tn(e),va(t[0]))}}const t=En(_);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}}),[o,v,_,u,C,j,D,B]),n.useEffect((()=>{if(!o&&w)return w.addEventListener("focusin",e),()=>{w.removeEventListener("focusin",e)};function e(e){const t=On(e),r=D().indexOf(t);-1!==r&&(M.current=r)}}),[o,w,D]),n.useEffect((()=>{if(!o&&f)return w&&rn(v)?(v.addEventListener("focusout",t),v.addEventListener("pointerdown",e),w.addEventListener("focusout",t),()=>{v.removeEventListener("focusout",t),v.removeEventListener("pointerdown",e),w.removeEventListener("focusout",t)}):void 0;function e(){I.current=!0,setTimeout((()=>{I.current=!1}))}function t(e){const t=e.relatedTarget;queueMicrotask((()=>{const r=!(yn(v,t)||yn(w,t)||yn(t,w)||yn(null==O?void 0:O.portalNode,t)||null!=t&&t.hasAttribute(Da("focus-guard"))||A&&(Ha(A.nodesRef.current,m).find((e=>{var r,n;return yn(null==(r=e.context)?void 0:r.elements.floating,t)||yn(null==(n=e.context)?void 0:n.elements.domReference,t)}))||function(e,t){var r;let n=[],o=null==(r=e.find((e=>e.id===t)))?void 0:r.parentId;for(;o;){const t=e.find((e=>e.id===o));o=null==t?void 0:t.parentId,t&&(n=n.concat(t))}return n}(A.nodesRef.current,m).find((e=>{var r,n;return(null==(r=e.context)?void 0:r.elements.floating)===t||(null==(n=e.context)?void 0:n.elements.domReference)===t}))));if(c&&r&&bn(En(_))===En(_).body){rn(_)&&(null==_||_.focus());const e=M.current,t=D(),r=t[e]||t[t.length-1]||_;rn(r)&&r.focus()}!u&&t&&r&&!I.current&&t!==hi()&&(T.current=!0,g(!1,e))}))}}),[o,v,w,_,u,m,A,O,g,f,c,D]),n.useEffect((()=>{var e;if(o)return;const t=Array.from((null==O||null==(e=O.portalNode)?void 0:e.querySelectorAll("["+Da("portal")+"]"))||[]);if(w){const e=[w,...t,$.current,P.current,C.current.includes("reference")||j?v:null].filter((e=>null!=e)),r=u||j?Ya(e,N,!N):Ya(e);return()=>{r()}}}),[o,v,w,u,C,O,j,N]),wa((()=>{if(o||!rn(_))return;const e=bn(En(_));queueMicrotask((()=>{const t=B(_),r=S.current,n=("number"===typeof r?t[r]:r.current)||_,o=yn(_,e);k||o||!p||va(n,{preventScroll:n===_})}))}),[o,p,_,k,B,S]),wa((()=>{if(o||!_)return;let e=!1;const t=En(_),r=bn(t);let n=y.current.openEvent;function a(t){let{open:r,reason:o,event:a,nested:i}=t;r&&(n=a),"escape-key"===o&&h.domReference.current&&pi(h.domReference.current),"hover"===o&&"mouseleave"===a.type&&(T.current=!0),"outside-press"===o&&(i?(T.current=!1,e=!0):T.current=!(wn(a)||kn(a)))}return pi(r),b.on("openchange",a),()=>{b.off("openchange",a);const r=bn(t),o=yn(w,r)||A&&Ha(A.nodesRef.current,m).some((e=>{var t;return yn(null==(t=e.context)?void 0:t.elements.floating,r)}));(o||n&&["click","mousedown"].includes(n.type))&&h.domReference.current&&pi(h.domReference.current);const i=hi();E.current&&!T.current&&rn(i)&&(i===r||r===t.body||o)&&va(i,{cancelPrevious:!1,preventScroll:e})}}),[o,w,_,E,y,h,b,A,m]),wa((()=>{if(!o&&O)return O.setFocusManagerState({modal:u,closeOnFocusOut:f,open:p,onOpenChange:g,refs:h}),()=>{O.setFocusManagerState(null)}}),[o,O,u,p,g,h,f]),wa((()=>{if(o)return;if(!_)return;if("function"!==typeof MutationObserver)return;if(k)return;const e=()=>{const e=_.getAttribute("tabindex"),t=D(),r=bn(En(w)),n=t.indexOf(r);-1!==n&&(M.current=n),C.current.includes("floating")||r!==h.domReference.current&&0===t.length?"0"!==e&&_.setAttribute("tabindex","0"):"-1"!==e&&_.setAttribute("tabindex","-1")};e();const t=new MutationObserver(e);return t.observe(_,{childList:!0,subtree:!0,attributes:!0}),()=>{t.disconnect()}}),[o,w,_,h,C,D,k]);const F=!o&&N&&(R||u);return n.createElement(n.Fragment,null,F&&n.createElement(ii,{"data-type":"inside",ref:null==O?void 0:O.beforeInsideRef,onFocus:e=>{if(u){const e=B();va("reference"===a[0]?e[0]:e[e.length-1])}else if(null!=O&&O.preserveTabOrder&&O.portalNode)if(T.current=!1,ti(e,O.portalNode)){const e=Xa()||v;null==e||e.focus()}else{var t;null==(t=O.beforeOutsideRef.current)||t.focus()}}}),!j&&z("start"),r,z("end"),F&&n.createElement(ii,{"data-type":"inside",ref:null==O?void 0:O.afterInsideRef,onFocus:e=>{if(u)va(B()[0]);else if(null!=O&&O.preserveTabOrder&&O.portalNode)if(f&&(T.current=!0),ti(e,O.portalNode)){const e=ei()||v;null==e||e.focus()}else{var t;null==(t=O.afterOutsideRef.current)||t.focus()}}}))}const bi=new Set,yi=n.forwardRef((function(e,t){const{lockScroll:r=!1,...o}=e,a=Ta();return wa((()=>{if(!r)return;bi.add(a);const e=/iP(hone|ad|od)|iOS/.test(xn()),t=document.body.style,n=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",o=window.innerWidth-document.documentElement.clientWidth,i=t.left?parseFloat(t.left):window.pageXOffset,s=t.top?parseFloat(t.top):window.pageYOffset;if(t.overflow="hidden",o&&(t[n]=o+"px"),e){var l,c;const e=(null==(l=window.visualViewport)?void 0:l.offsetLeft)||0,r=(null==(c=window.visualViewport)?void 0:c.offsetTop)||0;Object.assign(t,{position:"fixed",top:-(s-Math.floor(r))+"px",left:-(i-Math.floor(e))+"px",right:"0"})}return()=>{bi.delete(a),0===bi.size&&(Object.assign(t,{overflow:"",[n]:""}),e&&(Object.assign(t,{position:"",top:"",left:"",right:""}),window.scrollTo(i,s)))}}),[a,r]),n.createElement("div",Aa({ref:t},o,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...o.style}}))}));function xi(e){return rn(e.target)&&"BUTTON"===e.target.tagName}function vi(e){return Pn(e)}function wi(e,t){void 0===t&&(t={});const{open:r,onOpenChange:o,dataRef:a,elements:{domReference:i}}=e,{enabled:s=!0,event:l="click",toggle:c=!0,ignoreMouse:u=!1,keyboardHandlers:d=!0}=t,f=n.useRef(),p=n.useRef(!1);return n.useMemo((()=>s?{reference:{onPointerDown(e){f.current=e.pointerType},onMouseDown(e){0===e.button&&(Sn(f.current,!0)&&u||"click"!==l&&(!r||!c||a.current.openEvent&&"mousedown"!==a.current.openEvent.type?(e.preventDefault(),o(!0,e.nativeEvent,"click")):o(!1,e.nativeEvent,"click")))},onClick(e){"mousedown"===l&&f.current?f.current=void 0:Sn(f.current,!0)&&u||(!r||!c||a.current.openEvent&&"click"!==a.current.openEvent.type?o(!0,e.nativeEvent,"click"):o(!1,e.nativeEvent,"click"))},onKeyDown(e){f.current=void 0,e.defaultPrevented||!d||xi(e)||(" "!==e.key||vi(i)||(e.preventDefault(),p.current=!0),"Enter"===e.key&&o(!r||!c,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!d||xi(e)||vi(i)||" "===e.key&&p.current&&(p.current=!1,o(!r||!c,e.nativeEvent,"click"))}}}:{}),[s,a,l,u,d,i,c,r,o])}const ki={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},ji={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Ni=e=>{var t,r;return{escapeKey:"boolean"===typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"===typeof e?e:null==(r=null==e?void 0:e.outsidePress)||r}};function Ci(e,t){void 0===t&&(t={});const{open:r,onOpenChange:o,elements:{reference:a,domReference:i,floating:s},dataRef:l}=e,{enabled:c=!0,escapeKey:u=!0,outsidePress:d=!0,outsidePressEvent:f="pointerdown",referencePress:p=!1,referencePressEvent:h="pointerdown",ancestorScroll:m=!1,bubbles:g,capture:b}=t,y=_a(),x=oa("function"===typeof d?d:()=>!1),v="function"===typeof d?x:d,w=n.useRef(!1),k=n.useRef(!1),{escapeKey:j,outsidePress:N}=Ni(g),{escapeKey:C,outsidePress:S}=Ni(b),E=oa((e=>{var t;if(!r||!c||!u||"Escape"!==e.key)return;const n=null==(t=l.current.floatingContext)?void 0:t.nodeId,a=y?Ha(y.nodesRef.current,n):[];if(!j&&(e.stopPropagation(),a.length>0)){let e=!0;if(a.forEach((t=>{var r;null==(r=t.context)||!r.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)})),!e)return}o(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")})),A=oa((e=>{var t;const r=()=>{var t;E(e),null==(t=On(e))||t.removeEventListener("keydown",r)};null==(t=On(e))||t.addEventListener("keydown",r)})),O=oa((e=>{var t;const r=w.current;w.current=!1;const n=k.current;if(k.current=!1,"click"===f&&n)return;if(r)return;if("function"===typeof v&&!v(e))return;const a=On(e),c="["+Da("inert")+"]",u=En(s).querySelectorAll(c);let d=tn(a)?a:null;for(;d&&!un(d);){const e=pn(d);if(un(e)||!tn(e))break;d=e}if(u.length&&tn(a)&&!a.matches("html,body")&&!yn(a,s)&&Array.from(u).every((e=>!yn(d,e))))return;if(rn(a)&&s){const t=a.clientWidth>0&&a.scrollWidth>a.clientWidth,r=a.clientHeight>0&&a.scrollHeight>a.clientHeight;let n=r&&e.offsetX>a.clientWidth;if(r){"rtl"===dn(a).direction&&(n=e.offsetX<=a.offsetWidth-a.clientWidth)}if(n||t&&e.offsetY>a.clientHeight)return}const p=null==(t=l.current.floatingContext)?void 0:t.nodeId,h=y&&Ha(y.nodesRef.current,p).some((t=>{var r;return An(e,null==(r=t.context)?void 0:r.elements.floating)}));if(An(e,s)||An(e,i)||h)return;const m=y?Ha(y.nodesRef.current,p):[];if(m.length>0){let e=!0;if(m.forEach((t=>{var r;null==(r=t.context)||!r.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)})),!e)return}o(!1,e,"outside-press")})),$=oa((e=>{var t;const r=()=>{var t;O(e),null==(t=On(e))||t.removeEventListener(f,r)};null==(t=On(e))||t.addEventListener(f,r)}));return n.useEffect((()=>{if(!r||!c)return;function e(e){o(!1,e,"ancestor-scroll")}l.current.__escapeKeyBubbles=j,l.current.__outsidePressBubbles=N;const t=En(s);u&&t.addEventListener("keydown",C?A:E,C),v&&t.addEventListener(f,S?$:O,S);let n=[];return m&&(tn(i)&&(n=mn(i)),tn(s)&&(n=n.concat(mn(s))),!tn(a)&&a&&a.contextElement&&(n=n.concat(mn(a.contextElement)))),n=n.filter((e=>{var r;return e!==(null==(r=t.defaultView)?void 0:r.visualViewport)})),n.forEach((t=>{t.addEventListener("scroll",e,{passive:!0})})),()=>{u&&t.removeEventListener("keydown",C?A:E,C),v&&t.removeEventListener(f,S?$:O,S),n.forEach((t=>{t.removeEventListener("scroll",e)}))}}),[l,s,i,a,u,v,f,r,o,m,c,j,N,E,C,A,O,S,$]),n.useEffect((()=>{w.current=!1}),[v,f]),n.useMemo((()=>c?{reference:{onKeyDown:E,[ki[h]]:e=>{p&&o(!1,e.nativeEvent,"reference-press")}},floating:{onKeyDown:E,onMouseDown(){k.current=!0},onMouseUp(){k.current=!0},[ji[f]]:()=>{w.current=!0}}}:{}),[c,p,f,h,o,E])}function Si(e){void 0===e&&(e={});const{nodeId:t}=e,r=function(e){const{open:t=!1,onOpenChange:r,elements:o}=e,a=Ta(),i=n.useRef({}),[s]=n.useState((()=>Ia())),l=null!=La(),[c,u]=n.useState(o.reference),d=oa(((e,t,n)=>{i.current.openEvent=e?t:void 0,s.emit("openchange",{open:e,event:t,reason:n,nested:l}),null==r||r(e,t,n)})),f=n.useMemo((()=>({setPositionReference:u})),[]),p=n.useMemo((()=>({reference:c||o.reference||null,floating:o.floating||null,domReference:o.reference})),[c,o.reference,o.floating]);return n.useMemo((()=>({dataRef:i,open:t,onOpenChange:d,elements:p,events:s,floatingId:a,refs:f})),[t,d,p,s,a,f])}({...e,elements:{reference:null,floating:null,...e.elements}}),o=e.rootContext||r,a=o.elements,[i,s]=n.useState(null),[l,c]=n.useState(null),u=(null==a?void 0:a.reference)||i,d=n.useRef(null),f=_a();wa((()=>{u&&(d.current=u)}),[u]);const p=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:o=[],platform:a,elements:{reference:i,floating:s}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[d,f]=n.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=n.useState(o);Oo(p,o)||h(o);const[m,g]=n.useState(null),[b,y]=n.useState(null),x=n.useCallback((e=>{e!==j.current&&(j.current=e,g(e))}),[]),v=n.useCallback((e=>{e!==N.current&&(N.current=e,y(e))}),[]),w=i||m,k=s||b,j=n.useRef(null),N=n.useRef(null),C=n.useRef(d),S=null!=c,E=To(c),A=To(a),O=n.useCallback((()=>{if(!j.current||!N.current)return;const e={placement:t,strategy:r,middleware:p};A.current&&(e.platform=A.current),Co(j.current,N.current,e).then((e=>{const t={...e,isPositioned:!0};$.current&&!Oo(C.current,t)&&(C.current=t,So.flushSync((()=>{f(t)})))}))}),[p,t,r,A]);Ao((()=>{!1===u&&C.current.isPositioned&&(C.current.isPositioned=!1,f((e=>({...e,isPositioned:!1}))))}),[u]);const $=n.useRef(!1);Ao((()=>($.current=!0,()=>{$.current=!1})),[]),Ao((()=>{if(w&&(j.current=w),k&&(N.current=k),w&&k){if(E.current)return E.current(w,k,O);O()}}),[w,k,O,E,S]);const P=n.useMemo((()=>({reference:j,floating:N,setReference:x,setFloating:v})),[x,v]),T=n.useMemo((()=>({reference:w,floating:k})),[w,k]),I=n.useMemo((()=>{const e={position:r,left:0,top:0};if(!T.floating)return e;const t=Po(T.floating,d.x),n=Po(T.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+n+"px)",...$o(T.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}}),[r,l,T.floating,d.x,d.y]);return n.useMemo((()=>({...d,update:O,refs:P,elements:T,floatingStyles:I})),[d,O,P,T,I])}({...e,elements:{...a,...l&&{reference:l}}}),h=n.useCallback((e=>{const t=tn(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;c(t),p.refs.setReference(t)}),[p.refs]),m=n.useCallback((e=>{(tn(e)||null===e)&&(d.current=e,s(e)),(tn(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!tn(e))&&p.refs.setReference(e)}),[p.refs]),g=n.useMemo((()=>({...p.refs,setReference:m,setPositionReference:h,domReference:d})),[p.refs,m,h]),b=n.useMemo((()=>({...p.elements,domReference:u})),[p.elements,u]),y=n.useMemo((()=>({...p,...o,refs:g,elements:b,nodeId:t})),[p,g,b,t,o]);return wa((()=>{o.dataRef.current.floatingContext=y;const e=null==f?void 0:f.nodesRef.current.find((e=>e.id===t));e&&(e.context=y)})),n.useMemo((()=>({...p,context:y,refs:g,elements:b})),[p,g,b,y])}const Ei="active",Ai="selected";function Oi(e,t,r){const n=new Map,o="item"===r;let a=e;if(o&&e){const{[Ei]:t,[Ai]:r,...n}=e;a=n}return{..."floating"===r&&{tabIndex:-1},...a,...t.map((t=>{const n=t?t[r]:null;return"function"===typeof n?e?n(e):null:n})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[r,a]=t;var i;o&&[Ei,Ai].includes(r)||(0===r.indexOf("on")?(n.has(r)||n.set(r,[]),"function"===typeof a&&(null==(i=n.get(r))||i.push(a),e[r]=function(){for(var e,t=arguments.length,o=new Array(t),a=0;a<t;a++)o[a]=arguments[a];return null==(e=n.get(r))?void 0:e.map((e=>e(...o))).find((e=>void 0!==e))})):e[r]=a)})),e):e),{})}}function $i(e){void 0===e&&(e=[]);const t=e,r=n.useCallback((t=>Oi(t,e,"reference")),t),o=n.useCallback((t=>Oi(t,e,"floating")),t),a=n.useCallback((t=>Oi(t,e,"item")),e.map((e=>null==e?void 0:e.item)));return n.useMemo((()=>({getReferenceProps:r,getFloatingProps:o,getItemProps:a})),[r,o,a])}let Pi=!1;function Ti(e,t,r){switch(e){case"vertical":return t;case"horizontal":return r;default:return t||r}}function Ii(e,t){return Ti(t,e===aa||e===ia,e===sa||e===la)}function Mi(e,t,r){return Ti(t,e===ia,r?e===sa:e===la)||"Enter"===e||" "===e||""===e}function Ri(e,t,r){return Ti(t,r?e===la:e===sa,e===aa)}function Li(e,t){const{open:r,onOpenChange:o,elements:{domReference:a,floating:i}}=e,{listRef:s,activeIndex:l,onNavigate:c=()=>{},enabled:u=!0,selectedIndex:d=null,allowEscape:f=!1,loop:p=!1,nested:h=!1,rtl:m=!1,virtual:g=!1,focusItemOnOpen:b="auto",focusItemOnHover:y=!0,openOnArrowKeyDown:x=!0,disabledIndices:v,orientation:w="vertical",cols:k=1,scrollItemIntoView:j=!0,virtualItemRef:N,itemSizes:C,dense:S=!1}=t;const E=La(),A=_a(),O=oa(c),$=n.useRef(b),P=n.useRef(null!=d?d:-1),T=n.useRef(null),I=n.useRef(!0),M=n.useRef(O),R=n.useRef(!!i),L=n.useRef(!1),_=n.useRef(!1),D=Ba(v),B=Ba(r),z=Ba(j),F=Ba(i),q=Ba(d),[H,U]=n.useState(),[W,V]=n.useState(),G=oa((function(e,t,r){function n(e){g?(U(e.id),null==A||A.events.emit("virtualfocus",e),N&&(N.current=e)):va(e,{preventScroll:!0,sync:!(!Cn()||!jn())&&(Pi||L.current)})}void 0===r&&(r=!1);const o=e.current[t.current];o&&n(o),requestAnimationFrame((()=>{const a=e.current[t.current]||o;if(!a)return;o||n(a);const i=z.current;i&&Q&&(r||!I.current)&&(null==a.scrollIntoView||a.scrollIntoView("boolean"===typeof i?{block:"nearest",inline:"nearest"}:i))}))}));wa((()=>{document.createElement("div").focus({get preventScroll(){return Pi=!0,!1}})}),[]),wa((()=>{u&&(r&&i?$.current&&null!=d&&(_.current=!0,P.current=d,O(d)):R.current&&(P.current=-1,M.current(null)))}),[u,r,i,d,O]),wa((()=>{if(u&&r&&i)if(null==l){if(L.current=!1,null!=q.current)return;if(R.current&&(P.current=-1,G(s,P)),!R.current&&$.current&&(null!=T.current||!0===$.current&&null==T.current)){let e=0;const t=()=>{if(null==s.current[0]){if(e<2){(e?requestAnimationFrame:queueMicrotask)(t)}e++}else P.current=null==T.current||Mi(T.current,w,m)||h?da(s,D.current):fa(s,D.current),T.current=null,O(P.current)};t()}}else ua(s,l)||(P.current=l,G(s,P,_.current),_.current=!1)}),[u,r,i,l,q,h,s,w,m,O,G,D]),wa((()=>{var e;if(!u||i||!A||g||!R.current)return;const t=A.nodesRef.current,r=null==(e=t.find((e=>e.id===E)))||null==(e=e.context)?void 0:e.elements.floating,n=bn(En(i)),o=t.some((e=>e.context&&yn(e.context.elements.floating,n)));r&&!o&&I.current&&r.focus({preventScroll:!0})}),[u,i,A,E,g]),wa((()=>{if(u&&A&&g&&!E)return A.events.on("virtualfocus",e),()=>{A.events.off("virtualfocus",e)};function e(e){V(e.id),N&&(N.current=e)}}),[u,A,g,E,N]),wa((()=>{M.current=O,R.current=!!i})),wa((()=>{r||(T.current=null)}),[r]);const K=null!=l,Q=n.useMemo((()=>{function e(e){if(!r)return;const t=s.current.indexOf(e);-1!==t&&O(t)}return{onFocus(t){let{currentTarget:r}=t;e(r)},onClick:e=>{let{currentTarget:t}=e;return t.focus({preventScroll:!0})},...y&&{onMouseMove(t){let{currentTarget:r}=t;e(r)},onPointerLeave(e){let{pointerType:t}=e;I.current&&"touch"!==t&&(P.current=-1,G(s,P),O(null),g||va(F.current,{preventScroll:!0}))}}}}),[r,F,G,y,s,O,g]);return n.useMemo((()=>{if(!u)return{};const e=D.current;function t(t){if(I.current=!1,L.current=!0,!B.current&&t.currentTarget===F.current)return;if(h&&Ri(t.key,w,m))return Tn(t),o(!1,t.nativeEvent,"list-navigation"),void(rn(a)&&!g&&a.focus());const n=P.current,i=da(s,e),l=fa(s,e);if("Home"===t.key&&(Tn(t),P.current=i,O(P.current)),"End"===t.key&&(Tn(t),P.current=l,O(P.current)),k>1){const r=C||Array.from({length:s.current.length},(()=>({width:1,height:1}))),n=ma(r,k,S),o=n.findIndex((t=>null!=t&&!ya(s.current,t,e))),a=n.reduce(((t,r,n)=>null==r||ya(s.current,r,e)?t:n),-1);if(P.current=n[ha({current:n.map((e=>null!=e?s.current[e]:null))},{event:t,orientation:w,loop:p,cols:k,disabledIndices:ba([...e||s.current.map(((e,t)=>ya(s.current,t)?t:void 0)),void 0],n),minIndex:o,maxIndex:a,prevIndex:ga(P.current>l?i:P.current,r,n,k,t.key===ia?"bl":t.key===la?"tr":"tl"),stopEvent:!0})],O(P.current),"both"===w)return}if(Ii(t.key,w)){if(Tn(t),r&&!g&&bn(t.currentTarget.ownerDocument)===t.currentTarget)return P.current=Mi(t.key,w,m)?i:l,void O(P.current);Mi(t.key,w,m)?P.current=p?n>=l?f&&n!==s.current.length?-1:i:pa(s,{startingIndex:n,disabledIndices:e}):Math.min(l,pa(s,{startingIndex:n,disabledIndices:e})):P.current=p?n<=i?f&&-1!==n?s.current.length:l:pa(s,{startingIndex:n,decrement:!0,disabledIndices:e}):Math.max(i,pa(s,{startingIndex:n,decrement:!0,disabledIndices:e})),ua(s,P.current)?O(null):O(P.current)}}function n(e){"auto"===b&&wn(e.nativeEvent)&&($.current=!0)}const i=g&&r&&K&&{"aria-activedescendant":W||H},l=s.current.find((e=>(null==e?void 0:e.id)===H));return{reference:{...i,onKeyDown(n){I.current=!1;const a=0===n.key.indexOf("Arrow"),i=function(e,t,r){return Ti(t,r?e===sa:e===la,e===ia)}(n.key,w,m),c=Ri(n.key,w,m),u=Ii(n.key,w),f=(h?i:u)||"Enter"===n.key||""===n.key.trim();if(g&&r){const e=null==A?void 0:A.nodesRef.current.find((e=>null==e.parentId)),r=A&&e?function(e,t){let r,n=-1;return function t(o,a){a>n&&(r=o,n=a),Ha(e,o).forEach((e=>{t(e.id,a+1)}))}(t,0),e.find((e=>e.id===r))}(A.nodesRef.current,e.id):null;if(a&&r&&N){const e=new KeyboardEvent("keydown",{key:n.key,bubbles:!0});if(i||c){var p,b;const t=(null==(p=r.context)?void 0:p.elements.domReference)===n.currentTarget,o=c&&!t?null==(b=r.context)?void 0:b.elements.domReference:i?l:null;o&&(Tn(n),o.dispatchEvent(e),V(void 0))}var y;if(u&&r.context)if(r.context.open&&r.parentId&&n.currentTarget!==r.context.elements.domReference)return Tn(n),void(null==(y=r.context.elements.domReference)||y.dispatchEvent(e))}return t(n)}(r||x||!a)&&(f&&(T.current=h&&u?null:n.key),h?i&&(Tn(n),r?(P.current=da(s,e),O(P.current)):o(!0,n.nativeEvent,"list-navigation")):u&&(null!=d&&(P.current=d),Tn(n),!r&&x?o(!0,n.nativeEvent,"list-navigation"):t(n),r&&O(P.current)))},onFocus(){r&&!g&&O(null)},onPointerDown:function(e){$.current=b,"auto"===b&&kn(e.nativeEvent)&&($.current=!0)},onMouseDown:n,onClick:n},floating:{"aria-orientation":"both"===w?void 0:w,...!In(a)&&i,onKeyDown:t,onPointerMove(){I.current=!0}},item:Q}}),[a,F,H,W,D,B,s,u,w,m,g,r,K,h,d,x,f,k,p,b,O,o,Q,A,N,C,S])}const _i=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Di(e,t){var r;void 0===t&&(t={});const{open:o,floatingId:a}=e,{enabled:i=!0,role:s="dialog"}=t,l=null!=(r=_i.get(s))?r:s,c=Ta(),u=null!=La();return n.useMemo((()=>{if(!i)return{};const e={id:a,...l&&{role:l}};return"tooltip"===l||"label"===s?{reference:{["aria-"+("label"===s?"labelledby":"describedby")]:o?a:void 0},floating:e}:{reference:{"aria-expanded":o?"true":"false","aria-haspopup":"alertdialog"===l?"dialog":l,"aria-controls":o?a:void 0,..."listbox"===l&&{role:"combobox"},..."menu"===l&&{id:c},..."menu"===l&&u&&{role:"menuitem"},..."select"===s&&{"aria-autocomplete":"none"},..."combobox"===s&&{"aria-autocomplete":"list"}},floating:{...e,..."menu"===l&&{"aria-labelledby":c}},item(e){let{active:t,selected:r}=e;const n={role:"option",...t&&{id:a+"-option"}};switch(s){case"select":return{...n,"aria-selected":t&&r};case"combobox":return{...n,...t&&{"aria-selected":!0}}}return{}}}}),[i,s,l,o,a,c,u])}function Bi(e,t){const[r,n]=e;let o=!1;const a=t.length;for(let i=0,s=a-1;i<a;s=i++){const[e,a]=t[i]||[0,0],[l,c]=t[s]||[0,0];a>=n!==c>=n&&r<=(l-e)*(n-a)/(c-a)+e&&(o=!o)}return o}function zi(e){void 0===e&&(e={});const{buffer:t=.5,blockPointerEvents:r=!1,requireIntent:n=!0}=e;let o,a=!1,i=null,s=null,l=performance.now();const c=e=>{let{x:r,y:c,placement:u,elements:d,onClose:f,nodeId:p,tree:h}=e;return function(e){function m(){clearTimeout(o),f()}if(clearTimeout(o),!d.domReference||!d.floating||null==u||null==r||null==c)return;const{clientX:g,clientY:b}=e,y=[g,b],x=On(e),v="mouseleave"===e.type,w=yn(d.floating,x),k=yn(d.domReference,x),j=d.domReference.getBoundingClientRect(),N=d.floating.getBoundingClientRect(),C=u.split("-")[0],S=r>N.right-N.width/2,E=c>N.bottom-N.height/2,A=function(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}(y,j),O=N.width>j.width,$=N.height>j.height,P=(O?j:N).left,T=(O?j:N).right,I=($?j:N).top,M=($?j:N).bottom;if(w&&(a=!0,!v))return;if(k&&(a=!1),k&&!v)return void(a=!0);if(v&&tn(e.relatedTarget)&&yn(d.floating,e.relatedTarget))return;if(h&&Ha(h.nodesRef.current,p).some((e=>{let{context:t}=e;return null==t?void 0:t.open})))return;if("top"===C&&c>=j.bottom-1||"bottom"===C&&c<=j.top+1||"left"===C&&r>=j.right-1||"right"===C&&r<=j.left+1)return m();let R=[];switch(C){case"top":R=[[P,j.top+1],[P,N.bottom-1],[T,N.bottom-1],[T,j.top+1]];break;case"bottom":R=[[P,N.top+1],[P,j.bottom-1],[T,j.bottom-1],[T,N.top+1]];break;case"left":R=[[N.right-1,M],[N.right-1,I],[j.left+1,I],[j.left+1,M]];break;case"right":R=[[j.right-1,M],[j.right-1,I],[N.left+1,I],[N.left+1,M]]}if(!Bi([g,b],R)){if(a&&!A)return m();if(!v&&n){const t=function(e,t){const r=performance.now(),n=r-l;if(null===i||null===s||0===n)return i=e,s=t,l=r,null;const o=e-i,a=t-s,c=Math.sqrt(o*o+a*a);return i=e,s=t,l=r,c/n}(e.clientX,e.clientY);if(null!==t&&t<.1)return m()}Bi([g,b],function(e){let[r,n]=e;switch(C){case"top":return[[O?r+t/2:S?r+4*t:r-4*t,n+t+1],[O?r-t/2:S?r+4*t:r-4*t,n+t+1],...[[N.left,S||O?N.bottom-t:N.top],[N.right,S?O?N.bottom-t:N.top:N.bottom-t]]];case"bottom":return[[O?r+t/2:S?r+4*t:r-4*t,n-t],[O?r-t/2:S?r+4*t:r-4*t,n-t],...[[N.left,S||O?N.top+t:N.bottom],[N.right,S?O?N.top+t:N.bottom:N.top+t]]];case"left":{const e=[r+t+1,$?n+t/2:E?n+4*t:n-4*t],o=[r+t+1,$?n-t/2:E?n+4*t:n-4*t];return[...[[E||$?N.right-t:N.left,N.top],[E?$?N.right-t:N.left:N.right-t,N.bottom]],e,o]}case"right":return[[r-t,$?n+t/2:E?n+4*t:n-4*t],[r-t,$?n-t/2:E?n+4*t:n-4*t],...[[E||$?N.left+t:N.right,N.top],[E?$?N.left+t:N.right:N.left+t,N.bottom]]]}}([r,c]))?!a&&n&&(o=window.setTimeout(m,40)):m()}}};return c.__options={blockPointerEvents:r},c}const Fi=e=>{let{arrowRef:t,placement:r}=e;const n=[];var o,a;return n.push({...vo(o=8),options:[o,a]}),n.push("auto"===r?((e,t)=>({...wo(e),options:[e,t]}))():((e,t)=>({...jo(e),options:[e,t]}))()),n.push(((e,t)=>({...ko(e),options:[e,t]}))({padding:8})),t?.current&&n.push(((e,t)=>({...Io(e),options:[e,t]}))({element:t.current})),n},qi=e=>{let{placement:t}=e;return"auto"===t?void 0:t},Hi=e=>{let{placement:t}=e;return{top:"bottom",right:"left",bottom:"top",left:"right"}[t.split("-")[0]]},Ui=e=>{let{open:t,arrowRef:r,placement:n="top",setOpen:o}=e;return Si({placement:qi({placement:n}),open:t,onOpenChange:o,whileElementsMounted:xo,middleware:Fi({placement:n,arrowRef:r})})},Wi=e=>{let{context:t,trigger:r,role:n="tooltip",interactions:o=[]}=e;return $i([wi(t,{enabled:"click"===r}),qa(t,{enabled:"hover"===r,handleClose:zi()}),Ci(t),Di(t,{role:n}),...o])},Vi=e=>{let{animation:t="duration-300",arrow:r=!0,children:o,className:a,content:i,placement:s="top",style:l="dark",theme:c,trigger:u="hover",minWidth:d,...f}=e;const p=(0,n.useRef)(null),[h,m]=(0,n.useState)(!1),g=Ui({open:h,placement:s,arrowRef:p,setOpen:m}),{context:b,middlewareData:{arrow:{x:y,y:x}={}},refs:v,strategy:w,update:k,x:j,y:N}=g,C=function(e,t){void 0===t&&(t={});const{open:r,onOpenChange:o,events:a,dataRef:i,elements:{domReference:s}}=e,{enabled:l=!0,visibleOnly:c=!0}=t,u=n.useRef(!1),d=n.useRef(),f=n.useRef(!0);return n.useEffect((()=>{if(!l)return;const e=Jr(s);function t(){!r&&rn(s)&&s===bn(En(s))&&(u.current=!0)}function n(){f.current=!0}return e.addEventListener("blur",t),e.addEventListener("keydown",n,!0),()=>{e.removeEventListener("blur",t),e.removeEventListener("keydown",n,!0)}}),[s,r,l]),n.useEffect((()=>{if(l)return a.on("openchange",e),()=>{a.off("openchange",e)};function e(e){let{reason:t}=e;"reference-press"!==t&&"escape-key"!==t||(u.current=!0)}}),[a,l]),n.useEffect((()=>()=>{clearTimeout(d.current)}),[]),n.useMemo((()=>l?{reference:{onPointerDown(e){kn(e.nativeEvent)||(f.current=!1)},onMouseLeave(){u.current=!1},onFocus(e){if(u.current)return;const t=On(e.nativeEvent);if(c&&tn(t))try{if(jn()&&Cn())throw Error();if(!t.matches(":focus-visible"))return}catch(r){if(!f.current&&!Pn(t))return}o(!0,e.nativeEvent,"focus")},onBlur(e){u.current=!1;const t=e.relatedTarget,r=tn(t)&&t.hasAttribute(Da("focus-guard"))&&"outside"===t.getAttribute("data-type");d.current=window.setTimeout((()=>{var n;const a=bn(s?s.ownerDocument:document);(t||a!==s)&&(yn(null==(n=i.current.floatingContext)?void 0:n.refs.floating.current,a)||yn(s,a)||r||o(!1,e.nativeEvent,"focus"))}))}}}:{}),[l,c,i,s,o])}(b),{getFloatingProps:S,getReferenceProps:E}=Wi({context:b,role:"tooltip",trigger:u,interactions:[C]});return(0,n.useEffect)((()=>{if(v.reference.current&&v.floating.current&&h)return xo(v.reference.current,v.floating.current,k)}),[h,v.floating,v.reference,k]),(0,nt.jsxs)(nt.Fragment,{children:[(0,nt.jsx)("div",{ref:v.setReference,className:c.target,"data-testid":"flowbite-tooltip-target",...E(),children:o}),(0,nt.jsxs)("div",{ref:v.setFloating,"data-testid":"flowbite-tooltip",...S({className:fr(c.base,t&&`${c.animation} ${t}`,!h&&c.hidden,c.style[l],a),style:{position:w,top:N??" ",left:j??" ",minWidth:d},...f}),children:[(0,nt.jsx)("div",{className:c.content,children:i}),r&&(0,nt.jsx)("div",{className:fr(c.arrow.base,"dark"===l&&c.arrow.style.dark,"light"===l&&c.arrow.style.light,"auto"===l&&c.arrow.style.auto),"data-testid":"flowbite-tooltip-arrow",ref:p,style:{top:x??" ",left:y??" ",right:" ",bottom:" ",[Hi({placement:g.placement})]:c.arrow.placement},children:"\xa0"})]})]})},Gi=e=>{let{animation:t="duration-300",arrow:r=!0,children:n,className:o,content:a,placement:i="top",style:s="dark",theme:l={},trigger:c="hover",...u}=e;const d=mr(wr().tooltip,l);return(0,nt.jsx)(Vi,{animation:t,arrow:r,content:a,placement:i,style:s,theme:d,trigger:c,className:o,...u,children:n})};Gi.displayName="Tooltip";const Ki=(e,t)=>{t(!0),navigator?.clipboard?.writeText(e).then((()=>{console.log("Copy Successfull")})).catch((e=>{console.error("Failed to Copy text: ",e),t(!1)})),setTimeout((()=>t(!1)),4e3)},Qi=(0,n.forwardRef)(((e,t)=>{let{valueToCopy:r,icon:o=Re,theme:a={},className:i,...s}=e;const[l,c]=(0,n.useState)(!1),u=mr(wr().clipboard.withIcon,a);return(0,nt.jsx)("button",{className:fr(u.base,i),onClick:()=>Ki(r,c),...s,ref:t,children:l?(0,nt.jsx)(Me,{"aria-hidden":!0,className:u.icon.successIcon}):(0,nt.jsx)(o,{"aria-hidden":!0,className:u.icon.defaultIcon})})})),Yi=(0,n.forwardRef)(((e,t)=>{let{valueToCopy:r,icon:o=Re,label:a="Copy",theme:i={},className:s,...l}=e;const[c,u]=(0,n.useState)(!1),d=mr(wr().clipboard.withIconText,i);return(0,nt.jsx)("button",{className:fr(d.base,s),onClick:()=>Ki(r,u),...l,ref:t,children:c?(0,nt.jsxs)("span",{className:d.label.base,children:[(0,nt.jsx)(Me,{"aria-hidden":!0,className:d.icon.successIcon}),(0,nt.jsx)("span",{className:d.label.successText,children:"Copied"})]}):(0,nt.jsxs)("span",{className:d.label.base,children:[(0,nt.jsx)(o,{"aria-hidden":!0,className:d.icon.defaultIcon}),(0,nt.jsx)("span",{className:d.label.defaultText,children:a})]})})})),Zi=(0,n.forwardRef)(((e,t)=>{let{className:r,valueToCopy:o,label:a,theme:i={},...s}=e;const[l,c]=(0,n.useState)(!1),u=mr(wr().clipboard.button,i);return(0,nt.jsx)(Gi,{content:l?"Copied":"Copy to clipboard",className:"[&_*]:cursor-pointer",children:(0,nt.jsx)("button",{className:fr(u.base,r),onClick:()=>Ki(o,c),...s,ref:t,children:(0,nt.jsx)("span",{className:u.label,children:a})})})}));Zi.displayName="Clipboard",Qi.displayName="Clipboard.WithIcon",Yi.displayName="Clipboard.WithIconText";Object.assign(Zi,{WithIcon:Qi,WithIconText:Yi});const Ji="light",Xi="flowbite-theme-mode",es="flowbite-theme-mode-sync",ts=()=>{const[e,t]=(0,n.useState)(as(vr()));(0,n.useEffect)((()=>{ns(e),os(e)}),[]),(e=>{let{key:t,onChange:r}=e;function o(e){let{key:n,newValue:o}=e;n===t&&r(o)}(0,n.useEffect)((()=>(window.addEventListener("storage",o),()=>window.removeEventListener("storage",o))),[])})({key:Xi,onChange(e){if(e)return r(e)}}),rs((e=>t(e)));const r=e=>{t(e),ns(e),os(e),document.dispatchEvent(new CustomEvent(es,{detail:e}))};return{mode:e,computedMode:is(e),setMode:r,toggleMode:()=>{let t=e;"auto"===t&&(t=is(t)),t="dark"===t?"light":"dark",r(t)},clearMode:()=>{const e=vr()??Ji;r(e)}}},rs=e=>{(0,n.useEffect)((()=>{function t(t){const r=t.detail;e(r)}return document.addEventListener(es,t),()=>document.removeEventListener(es,t)}),[])},ns=e=>localStorage.setItem(Xi,e),os=e=>{"dark"===is(e)?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")},as=e=>{if(!Qr())return Ji;return localStorage.getItem(Xi)??e??Ji},is=e=>"auto"===e?ss():e,ss=()=>window.matchMedia?.("(prefers-color-scheme: dark)").matches?"dark":"light";(e=>{let{className:t,theme:r={},iconDark:o=gt,iconLight:a=ft,...i}=e;const s=function(){const[e,t]=(0,n.useState)(!1);return(0,n.useEffect)((()=>t(!0)),[]),e}(),{computedMode:l,toggleMode:c}=ts(),u=mr(wr().darkThemeToggle,r);return(0,nt.jsxs)("button",{type:"button","aria-label":"Toggle dark mode","data-testid":"dark-theme-toggle",className:fr(u.root.base,t),onClick:c,...i,children:[(0,nt.jsx)(o,{"aria-label":"Currently dark mode","data-active":s&&"dark"===l,className:fr(u.root.icon,"hidden dark:block")}),(0,nt.jsx)(a,{"aria-label":"Currently light mode","data-active":s&&"light"===l,className:fr(u.root.icon,"dark:hidden")})]})}).displayName="DarkThemeToggle";const ls=e=>{let{children:t,className:r,color:n="default",theme:o={},value:a,...i}=e;const s=mr(wr().helperText,o);return(0,nt.jsx)("p",{className:fr(s.root.base,s.root.colors[n],r),...i,children:a??t??""})};ls.displayName="HelperText";const cs=(0,n.forwardRef)(((e,t)=>{let{addon:r,className:n,color:o="gray",helperText:a,icon:i,rightIcon:s,shadow:l,sizing:c="md",theme:u={},type:d="text",...f}=e;const p=mr(wr().textInput,u);return(0,nt.jsxs)(nt.Fragment,{children:[(0,nt.jsxs)("div",{className:fr(p.base,n),children:[r&&(0,nt.jsx)("span",{className:p.addon,children:r}),(0,nt.jsxs)("div",{className:p.field.base,children:[i&&(0,nt.jsx)("div",{className:p.field.icon.base,children:(0,nt.jsx)(i,{className:p.field.icon.svg})}),s&&(0,nt.jsx)("div",{"data-testid":"right-icon",className:p.field.rightIcon.base,children:(0,nt.jsx)(s,{className:p.field.rightIcon.svg})}),(0,nt.jsx)("input",{className:fr(p.field.input.base,p.field.input.colors[o],p.field.input.sizes[c],p.field.input.withIcon[i?"on":"off"],p.field.input.withRightIcon[s?"on":"off"],p.field.input.withAddon[r?"on":"off"],p.field.input.withShadow[l?"on":"off"]),type:d,...f,ref:t})]})]}),a&&(0,nt.jsx)(ls,{color:o,children:a})]})}));cs.displayName="TextInput";const us=(0,n.createContext)(void 0);function ds(){const e=(0,n.useContext)(us);if(!e)throw new Error("useDatePickerContext should be used within the DatePickerContext provider!");return e}var fs=(e=>(e[e.Days=0]="Days",e[e.Months=1]="Months",e[e.Years=2]="Years",e[e.Decades=3]="Decades",e))(fs||{}),ps=(e=>(e[e.Sunday=0]="Sunday",e[e.Monday=1]="Monday",e[e.Tuesday=2]="Tuesday",e[e.Wednesday=3]="Wednesday",e[e.Thursday=4]="Thursday",e[e.Friday=5]="Friday",e[e.Saturday=6]="Saturday",e))(ps||{});const hs=(e,t,r)=>{const n=new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime();if(t&&r){const e=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),o=new Date(r.getFullYear(),r.getMonth(),r.getDate()).getTime();return n>=e&&n<=o}if(t){return n>=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()}if(r){return n<=new Date(r.getFullYear(),r.getMonth(),r.getDate()).getTime()}return!0},ms=(e,t)=>(e=new Date(e.getFullYear(),e.getMonth(),e.getDate()),t=new Date(t.getFullYear(),t.getMonth(),t.getDate()),e.getTime()===t.getTime()),gs=(e,t)=>{const r=new Date(e);return r.setDate(r.getDate()+t),r},bs=(e,t)=>{const r=new Date(e);return r.setFullYear(r.getFullYear()+t),r},ys=(e,t,r)=>{let n={day:"numeric",month:"long",year:"numeric"};return r&&(n=r),new Intl.DateTimeFormat(e,n).format(t)},xs=(e,t)=>{const r=e.getFullYear();return Math.floor(r/t)*t},vs=e=>{let{theme:t={}}=e;const{theme:r,weekStart:n,minDate:o,maxDate:a,viewDate:i,selectedDate:s,changeSelectedDate:l,language:c}=ds(),u=mr(r.views.days,t),d=((e,t)=>{const r=[],n=new Date(0);n.setDate(n.getDate()-n.getDay()+t);const o=new Intl.DateTimeFormat(e,{weekday:"short"});for(let a=0;a<7;a++)r.push(o.format(gs(n,a)));return r})(c,n),f=((e,t)=>{const r=new Date(e.getFullYear(),e.getMonth(),1);let n=r.getDay()-t;return n<0&&(n+=7),gs(r,-n)})(i,n);return(0,nt.jsxs)(nt.Fragment,{children:[(0,nt.jsx)("div",{className:u.header.base,children:d.map(((e,t)=>(0,nt.jsx)("span",{className:u.header.title,children:e},t)))}),(0,nt.jsx)("div",{className:u.items.base,children:[...Array(42)].map(((e,t)=>{const r=gs(f,t),n=ys(c,r,{day:"numeric"}),i=ms(s,r),d=!hs(r,o,a);return(0,nt.jsx)("button",{disabled:d,type:"button",className:fr(u.items.item.base,i&&u.items.item.selected,d&&u.items.item.disabled),onClick:()=>{d||l(r,!0)},children:n},t)}))})]})},ws=e=>{let{theme:t={}}=e;const{theme:r,selectedDate:n,viewDate:o,setViewDate:a,setView:i}=ds(),s=mr(r.views.decades,t);return(0,nt.jsx)("div",{className:s.items.base,children:[...Array(12)].map(((e,t)=>{const r=xs(o,100)-10+10*t,l=new Date(r,0,1),c=bs(l,9),u=((e,t)=>{const r=e.getFullYear();return r>=t&&r<=t+9})(o,r),d=!hs(o,l,c);return(0,nt.jsx)("button",{disabled:d,type:"button",className:fr(s.items.item.base,u&&s.items.item.selected,d&&s.items.item.disabled),onClick:()=>{d||(a(bs(o,r-n.getFullYear())),i(fs.Years))},children:r},t)}))})},ks=e=>{let{theme:t={}}=e;const{theme:r,minDate:n,maxDate:o,selectedDate:a,viewDate:i,language:s,setViewDate:l,setView:c}=ds(),u=mr(r.views.months,t);return(0,nt.jsx)("div",{className:u.items.base,children:[...Array(12)].map(((e,t)=>{const r=new Date(i.getTime());r.setMonth(t);const d=ys(s,r,{month:"short"}),f=ms(a,r),p=!hs(r,n,o);return(0,nt.jsx)("button",{disabled:p,type:"button",className:fr(u.items.item.base,f&&u.items.item.selected,p&&u.items.item.disabled),onClick:()=>{p||(l(r),c(fs.Days))},children:d},t)}))})},js=e=>{let{theme:t={}}=e;const{theme:r,selectedDate:n,minDate:o,maxDate:a,viewDate:i,setViewDate:s,setView:l}=ds(),c=mr(r.views.years,t);return(0,nt.jsx)("div",{className:c.items.base,children:[...Array(12)].map(((e,t)=>{const r=xs(i,10)-1+1*t,u=new Date(i.getTime());u.setFullYear(r);const d=ms(n,u),f=!hs(u,o,a);return(0,nt.jsx)("button",{disabled:f,type:"button",className:fr(c.items.item.base,d&&c.items.item.selected,f&&c.items.item.disabled),onClick:()=>{f||(s(u),l(fs.Months))},children:r},t)}))})},Ns=(0,n.forwardRef)(((e,t)=>{let{title:r,open:o,inline:a=!1,autoHide:i=!0,showClearButton:s=!0,labelClearButton:l="Clear",showTodayButton:c=!0,labelTodayButton:u="Today",defaultDate:d=new Date,minDate:f,maxDate:p,language:h="en",weekStart:m=ps.Sunday,className:g,theme:b={},onSelectedDateChanged:y,...x}=e;const v=mr(wr().datepicker,b);d=((e,t,r)=>(hs(e,t,r)||(t&&e<t?e=t:r&&e>r&&(e=r)),e))(d,f,p);const[w,k]=(0,n.useState)(o),[j,N]=(0,n.useState)(fs.Days),[C,S]=(0,n.useState)(d),[E,A]=(0,n.useState)(d),O=(0,n.useRef)(null),$=(0,n.useRef)(null),P=(e,t)=>{S(e),y&&y(e),i&&j===fs.Days&&1==t&&!a&&k(!1)};(0,n.useImperativeHandle)(t,(()=>({focus(){O.current?.focus()},clear(){P(d,!0),d&&A(d)}})));const T=(e,t,r)=>{switch(e){case fs.Days:return new Date(((e,t)=>{const r=new Date(e);return r.setMonth(r.getMonth()+t),r})(t,r));case fs.Months:return new Date(bs(t,r));case fs.Years:return new Date(bs(t,10*r));case fs.Decades:return new Date(bs(t,100*r));default:return new Date(bs(t,10*r))}};return(0,n.useEffect)((()=>{const e=e=>{const t=$?.current?.contains(e.target),r=O?.current?.contains(e.target);t||r||k(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[O,$,k]),(0,nt.jsx)(us.Provider,{value:{theme:v,language:h,minDate:f,maxDate:p,weekStart:m,isOpen:w,setIsOpen:k,view:j,setView:N,viewDate:E,setViewDate:A,selectedDate:C,setSelectedDate:S,changeSelectedDate:P},children:(0,nt.jsxs)("div",{className:fr(v.root.base,g),children:[!a&&(0,nt.jsx)(cs,{theme:v.root.input,icon:it,ref:O,onFocus:()=>{ms(E,C)||A(C),k(!0)},value:C&&ys(h,C),readOnly:!0,...x}),(w||a)&&(0,nt.jsx)("div",{ref:$,className:fr(v.popup.root.base,a&&v.popup.root.inline),children:(0,nt.jsxs)("div",{className:v.popup.root.inner,children:[(0,nt.jsxs)("div",{className:v.popup.header.base,children:[r&&(0,nt.jsx)("div",{className:v.popup.header.title,children:r}),(0,nt.jsxs)("div",{className:v.popup.header.selectors.base,children:[(0,nt.jsx)("button",{type:"button",className:fr(v.popup.header.selectors.button.base,v.popup.header.selectors.button.prev),onClick:()=>A(T(j,E,-1)),children:(0,nt.jsx)(ot,{})}),(0,nt.jsx)("button",{type:"button",className:fr(v.popup.header.selectors.button.base,v.popup.header.selectors.button.view),onClick:()=>N((()=>{switch(j){case fs.Days:return fs.Months;case fs.Months:return fs.Years;case fs.Years:return fs.Decades}return j})()),children:(()=>{switch(j){case fs.Decades:return`${xs(E,100)} - ${xs(E,100)+90}`;case fs.Years:return`${xs(E,10)} - ${xs(E,10)+9}`;case fs.Months:return ys(h,E,{year:"numeric"});case fs.Days:default:return ys(h,E,{month:"long",year:"numeric"})}})()}),(0,nt.jsx)("button",{type:"button",className:fr(v.popup.header.selectors.button.base,v.popup.header.selectors.button.next),onClick:()=>A(T(j,E,1)),children:(0,nt.jsx)(at,{})})]})]}),(0,nt.jsx)("div",{className:v.popup.view.base,children:(e=>{switch(e){case fs.Decades:return(0,nt.jsx)(ws,{theme:v.views.decades});case fs.Years:return(0,nt.jsx)(js,{theme:v.views.years});case fs.Months:return(0,nt.jsx)(ks,{theme:v.views.months});case fs.Days:default:return(0,nt.jsx)(vs,{theme:v.views.days})}})(j)}),(s||c)&&(0,nt.jsxs)("div",{className:v.popup.footer.base,children:[c&&(0,nt.jsx)("button",{type:"button",className:fr(v.popup.footer.button.base,v.popup.footer.button.today),onClick:()=>{const e=new Date;P(e,!0),A(e)},children:u}),s&&(0,nt.jsx)("button",{type:"button",className:fr(v.popup.footer.button.base,v.popup.footer.button.clear),onClick:()=>{P(d,!0),d&&A(d)},children:l})]})]})})]})})}));Ns.displayName="Datepicker";const Cs=(0,n.createContext)(void 0);function Ss(){const e=(0,n.useContext)(Cs);if(!e)throw new Error("useDrawerContext should be used within the DrawerContext provider!");return e}function Es(e){return $e({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0zm18.31 6-2.76 5z"},child:[]},{tag:"path",attr:{d:"M11 9h2V6h3V4h-3V1h-2v3H8v2h3v3zm-4 9c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zm10 0c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2zm-9.83-3.25.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.86-7.01L19.42 4h-.01l-1.1 2-2.76 5H8.53l-.13-.27L6.16 6l-.95-2-.94-2H1v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.13 0-.25-.11-.25-.25z"},child:[]}]})(e)}function As(e){return $e({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"},child:[]}]})(e)}function Os(e){return $e({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"},child:[]}]})(e)}function $s(e){return $e({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12.79 21 3 11.21v2c0 .53.21 1.04.59 1.41l7.79 7.79c.78.78 2.05.78 2.83 0l6.21-6.21c.78-.78.78-2.05 0-2.83L12.79 21z"},child:[]},{tag:"path",attr:{d:"M11.38 17.41c.39.39.9.59 1.41.59.51 0 1.02-.2 1.41-.59l6.21-6.21c.78-.78.78-2.05 0-2.83L12.62.58C12.25.21 11.74 0 11.21 0H5C3.9 0 3 .9 3 2v6.21c0 .53.21 1.04.59 1.41l7.79 7.79zM5 2h6.21L19 9.79 12.79 16 5 8.21V2z"},child:[]},{tag:"circle",attr:{cx:"7.25",cy:"4.25",r:"1.25"},child:[]}]})(e)}const Ps=e=>{let{children:t,className:r,closeIcon:o=Os,theme:a={},title:i,titleIcon:s=As,...l}=e;const c=(0,n.useId)(),{id:u,isOpen:d,onClose:f,theme:p}=Ss(),h=mr(p.header,a);return(0,nt.jsxs)("div",{className:r,...l,children:[(0,nt.jsxs)("h5",{className:h.inner.titleText,id:u,children:[(0,nt.jsx)(s,{"aria-hidden":!0,className:h.inner.titleIcon}),i]}),(0,nt.jsxs)("button",{onClick:f,"data-testid":"close-drawer",className:h.inner.closeButton,children:[(0,nt.jsx)(o,{"aria-hidden":!0,className:h.inner.closeIcon}),(0,nt.jsx)("span",{className:"sr-only",children:"Close menu"})]}),(0,nt.jsx)("span",{className:h.collapsed[d?"on":"off"],id:`flowbite-drawer-header-${c}`,children:t})]})};Ps.displayName="Drawer.Header";const Ts=e=>{let{children:t,className:r,theme:n={},...o}=e;const{theme:a}=Ss(),i=mr(a.items,n);return(0,nt.jsx)("div",{"data-testid":"flowbite-drawer-items",className:fr(i.base,r),...o,children:t})};Ts.displayName="Drawer.Items";const Is=e=>{let{backdrop:t=!0,children:r,className:o,edge:a=!1,position:i="left",onClose:s,open:l=!1,theme:c={},...u}=e;const d=(0,n.useId)(),f=mr(wr().drawer,c);return(0,n.useEffect)((()=>{const e=e=>{"Escape"===e.key&&l&&s&&s()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[s,l]),(0,nt.jsxs)(Cs.Provider,{value:{theme:f,onClose:s,isOpen:l,id:d},children:[(0,nt.jsx)("div",{"aria-modal":!0,"aria-describedby":`drawer-dialog-${d}`,role:"dialog",tabIndex:-1,"data-testid":"flowbite-drawer",className:fr(f.root.base,f.root.position[i][l?"on":"off"],a&&!l&&f.root.edge,o),...u,children:r}),l&&t&&(0,nt.jsx)("div",{onClick:()=>s(),className:f.root.backdrop})]})};Is.displayName="Drawer";const Ms=Object.assign(Is,{Header:Ps,Items:Ts}),Rs=(0,n.createContext)(void 0);function Ls(){const e=(0,n.useContext)(Rs);if(!e)throw new Error("useDropdownContext should be used within the DropdownContext provider!");return e}const _s=e=>{let{className:t,theme:r={},...n}=e;const{theme:o}=Ls(),a=r.divider??o.floating.divider;return(0,nt.jsx)("div",{className:fr(a,t),...n})},Ds=e=>{let{children:t,className:r,theme:n={},...o}=e;const{theme:a}=Ls(),i=n.header??a.floating.header;return(0,nt.jsxs)(nt.Fragment,{children:[(0,nt.jsx)("div",{className:fr(i,r),...o,children:t}),(0,nt.jsx)(_s,{})]})},Bs=(0,n.forwardRef)(((e,t)=>{let{children:r,className:n,icon:o,onClick:a,theme:i={},...s}=e;const{ref:l,index:c}=Ca({label:"string"===typeof r?r:void 0}),u=ta([t,l]),{theme:d,activeIndex:f,dismissOnClick:p,getItemProps:h,handleSelect:m}=Ls(),g=f===c,b=mr(d.floating.item,i),y=s;return(0,nt.jsx)("li",{role:"menuitem",className:b.container,children:(0,nt.jsxs)(Ir,{ref:u,className:fr(b.base,n),...y,...h({onClick:()=>{a?.(),p&&m(null)}}),tabIndex:g?0:-1,children:[o&&(0,nt.jsx)(o,{className:b.icon}),r]})})}));Bs.displayName="DropdownItem";const zs={top:function(e){return $e({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 15l7-7 7 7"},child:[]}]})(e)},right:wt,bottom:xt,left:vt},Fs=e=>{let{refs:t,children:r,inline:o,theme:a,disabled:i,setButtonWidth:s,getReferenceProps:l,renderTrigger:c,...u}=e;const d=t.reference,f=l();if((0,n.useEffect)((()=>{d.current&&s?.(d.current.clientWidth)}),[d,s]),c){const e=c(a);return(0,n.cloneElement)(e,{ref:t.setReference,disabled:i,...f,...e.props})}return o?(0,nt.jsx)("button",{type:"button",ref:t.setReference,className:a?.inlineWrapper,disabled:i,...f,children:r}):(0,nt.jsx)(Dr,{...u,disabled:i,type:"button",ref:t.setReference,...f,children:r})},qs=e=>{let{children:t,className:r,dismissOnClick:o=!0,theme:a={},enableTypeAhead:i=!0,renderTrigger:s,...l}=e;const[c,u]=(0,n.useState)(!1),[d,f]=(0,n.useState)(null),[p,h]=(0,n.useState)(null),[m,g]=(0,n.useState)(void 0),b=(0,n.useRef)([]),y=(0,n.useRef)([]),x=mr(wr().dropdown,a),v=l,w=l["data-testid"]||"flowbite-dropdown-target",{placement:k=(l.inline?"bottom-start":"bottom"),trigger:j="click",label:N,inline:C,arrowIcon:S=!0,...E}=v,A=(0,n.useCallback)((e=>{h(e),u(!1)}),[]),O=(0,n.useCallback)((e=>{c?f(e):A(e)}),[c,A]),{context:$,floatingStyles:P,refs:T}=Ui({open:c,setOpen:u,placement:k}),I=Li($,{listRef:b,activeIndex:d,selectedIndex:p,onNavigate:f}),M=function(e,t){var r;const{open:o,dataRef:a}=e,{listRef:i,activeIndex:s,onMatch:l,onTypingChange:c,enabled:u=!0,findMatch:d=null,resetMs:f=750,ignoreKeys:p=[],selectedIndex:h=null}=t,m=n.useRef(),g=n.useRef(""),b=n.useRef(null!=(r=null!=h?h:s)?r:-1),y=n.useRef(null),x=oa(l),v=oa(c),w=Ba(d),k=Ba(p);return wa((()=>{o&&(clearTimeout(m.current),y.current=null,g.current="")}),[o]),wa((()=>{var e;o&&""===g.current&&(b.current=null!=(e=null!=h?h:s)?e:-1)}),[o,h,s]),n.useMemo((()=>{if(!u)return{};function e(e){e?a.current.typing||(a.current.typing=e,v(e)):a.current.typing&&(a.current.typing=e,v(e))}function t(e,t,r){const n=w.current?w.current(t,r):t.find((e=>0===(null==e?void 0:e.toLocaleLowerCase().indexOf(r.toLocaleLowerCase()))));return n?e.indexOf(n):-1}function r(r){const n=i.current;if(g.current.length>0&&" "!==g.current[0]&&(-1===t(n,n,g.current)?e(!1):" "===r.key&&Tn(r)),null==n||k.current.includes(r.key)||1!==r.key.length||r.ctrlKey||r.metaKey||r.altKey)return;o&&" "!==r.key&&(Tn(r),e(!0)),n.every((e=>{var t,r;return!e||(null==(t=e[0])?void 0:t.toLocaleLowerCase())!==(null==(r=e[1])?void 0:r.toLocaleLowerCase())}))&&g.current===r.key&&(g.current="",b.current=y.current),g.current+=r.key,clearTimeout(m.current),m.current=setTimeout((()=>{g.current="",b.current=y.current,e(!1)}),f);const a=b.current,s=t(n,[...n.slice((a||0)+1),...n.slice(0,(a||0)+1)],g.current);-1!==s?(x(s),y.current=s):" "!==r.key&&(g.current="",e(!1))}return{reference:{onKeyDown:r},floating:{onKeyDown:r,onKeyUp(t){" "===t.key&&e(!1)}}}}),[u,o,a,i,f,k,w,x,v])}($,{listRef:y,activeIndex:d,selectedIndex:p,onMatch:O,enabled:i}),{getReferenceProps:R,getFloatingProps:L,getItemProps:_}=Wi({context:$,role:"menu",trigger:j,interactions:[I,M]}),D=(0,n.useMemo)((()=>{const[e]=k.split("-");return zs[e]??xt}),[k]);return(0,nt.jsxs)(Rs.Provider,{value:{theme:x,activeIndex:d,dismissOnClick:o,getItemProps:_,handleSelect:A},children:[(0,nt.jsxs)(Fs,{...E,refs:T,inline:C,theme:x,"data-testid":w,className:fr(x.floating.target,E.className),setButtonWidth:g,getReferenceProps:R,renderTrigger:s,children:[N,S&&(0,nt.jsx)(D,{className:x.arrowIcon})]}),c&&(0,nt.jsx)(gi,{context:$,modal:!1,children:(0,nt.jsx)("div",{ref:T.setFloating,style:{...P,minWidth:m},"data-testid":"flowbite-dropdown","aria-expanded":c,...L({className:fr(x.floating.base,x.floating.animation,"duration-100",!c&&x.floating.hidden,x.floating.style.auto,r)}),children:(0,nt.jsx)(Na,{elementsRef:b,labelsRef:y,children:(0,nt.jsx)("ul",{className:x.content,tabIndex:-1,children:t})})})})]})};qs.displayName="Dropdown",Ds.displayName="Dropdown.Header",_s.displayName="Dropdown.Divider";const Hs=Object.assign(qs,{Item:Bs,Header:Ds,Divider:_s}),Us=(0,n.forwardRef)(((e,t)=>{let{className:r,color:n="gray",helperText:o,sizing:a="md",theme:i={},...s}=e;const l=mr(wr().fileInput,i);return(0,nt.jsxs)(nt.Fragment,{children:[(0,nt.jsx)("div",{className:fr(l.root.base,r),children:(0,nt.jsx)("div",{className:l.field.base,children:(0,nt.jsx)("input",{className:fr(l.field.input.base,l.field.input.colors[n],l.field.input.sizes[a]),...s,type:"file",ref:t})})}),o&&(0,nt.jsx)(ls,{color:n,children:o})]})}));Us.displayName="FileInput";const Ws=(0,n.forwardRef)(((e,t)=>{let{label:r,helperText:o,color:a="default",sizing:i="md",variant:s,disabled:l=!1,theme:c={},className:u,...d}=e;const f=(0,n.useId)(),p=mr(wr().floatingLabel,c);return(0,nt.jsxs)("div",{children:[(0,nt.jsxs)("div",{className:fr("relative","standard"===s?"z-0":""),children:[(0,nt.jsx)("input",{type:"text",id:d.id?d.id:"floatingLabel"+f,"aria-describedby":"outlined_success_help",className:fr(p.input[a][s][i],u),placeholder:" ","data-testid":"floating-label",disabled:l,...d,ref:t}),(0,nt.jsx)("label",{htmlFor:d.id?d.id:"floatingLabel"+f,className:fr(p.label[a][s][i],u),children:r})]}),(0,nt.jsx)("p",{id:"outlined_helper_text"+f,className:fr(p.helperText[a],u),children:o})]})}));Ws.displayName="FloatingLabel";const Vs=e=>{let{alt:t,className:r,children:n,href:o,name:a,src:i,theme:s={},...l}=e;const c=mr(wr().footer.brand,s);return(0,nt.jsx)("div",{children:o?(0,nt.jsxs)("a",{"data-testid":"flowbite-footer-brand",href:o,className:fr(c.base,r),...l,children:[(0,nt.jsx)("img",{alt:t,src:i,className:c.img}),(0,nt.jsx)("span",{"data-testid":"flowbite-footer-brand-span",className:c.span,children:a}),n]}):(0,nt.jsx)("img",{alt:t,"data-testid":"flowbite-footer-brand",src:i,className:fr(c.img,r),...l})})},Gs=e=>{let{by:t,className:r,href:n,theme:o={},year:a,...i}=e;const s=mr(wr().footer.copyright,o);return(0,nt.jsxs)("div",{"data-testid":"flowbite-footer-copyright",className:fr(s.base,r),...i,children:["\xa9 ",a,n?(0,nt.jsx)("a",{href:n,className:s.href,children:t}):(0,nt.jsx)("span",{"data-testid":"flowbite-footer-copyright-span",className:s.span,children:t})]})},Ks=e=>{let{className:t,theme:r={},...n}=e;const o=mr(wr().footer.divider,r);return(0,nt.jsx)("hr",{"data-testid":"footer-divider",className:fr(o.base,t),...n})},Qs=e=>{let{ariaLabel:t,className:r,href:n,icon:o,theme:a={},...i}=e;const s=mr(wr().footer.icon,a);return(0,nt.jsx)("div",{children:n?(0,nt.jsx)("a",{"aria-label":t,"data-testid":"flowbite-footer-icon",href:n,className:fr(s.base,r),...i,children:(0,nt.jsx)(o,{className:s.size})}):(0,nt.jsx)(o,{"data-testid":"flowbite-footer-icon",className:s.size,...i})})},Ys=e=>{let{as:t="a",children:r,className:n,href:o,theme:a={},...i}=e;const s=mr(wr().footer.groupLink.link,a);return(0,nt.jsx)("li",{className:fr(s.base,n),children:(0,nt.jsx)(t,{href:o,className:s.href,...i,children:r})})},Zs=e=>{let{children:t,className:r,col:n=!1,theme:o={},...a}=e;const i=mr(wr().footer.groupLink,o);return(0,nt.jsx)("ul",{"data-testid":"footer-groupLink",className:fr(i.base,n&&i.col,r),...a,children:t})},Js=e=>{let{as:t="h2",className:r,theme:n={},title:o,...a}=e;const i=mr(wr().footer.title,n);return(0,nt.jsx)(t,{"data-testid":"flowbite-footer-title",className:fr(i.base,r),...a,children:o})},Xs=e=>{let{bgDark:t=!1,children:r,className:n,container:o=!1,theme:a={},...i}=e;const s=mr(wr().footer,a);return(0,nt.jsx)("footer",{"data-testid":"flowbite-footer",className:fr(s.root.base,t&&s.root.bgDark,o&&s.root.container,n),...i,children:r})};Xs.displayName="Footer",Gs.displayName="Footer.Copyright",Ys.displayName="Footer.Link",Vs.displayName="Footer.Brand",Zs.displayName="Footer.LinkGroup",Qs.displayName="Footer.Icon",Js.displayName="Footer.Title",Ks.displayName="Footer.Divider";Object.assign(Xs,{Copyright:Gs,Link:Ys,LinkGroup:Zs,Brand:Vs,Icon:Qs,Title:Js,Divider:Ks});const el=(0,n.forwardRef)(((e,t)=>{let{theme:r={},icon:n=De,className:o,...a}=e;const i=mr(wr().hr.icon,r);return(0,nt.jsxs)("div",{className:i.base,children:[(0,nt.jsx)("hr",{className:fr(i.hrLine,o),role:"separator","data-testid":"flowbite-hr-icon",ref:t,...a}),(0,nt.jsx)("div",{className:i.icon.base,children:(0,nt.jsx)(n,{"aria-hidden":!0,className:i.icon.icon})})]})})),tl=(0,n.forwardRef)(((e,t)=>{let{theme:r={},className:n,...o}=e;const a=mr(wr().hr.square,r);return(0,nt.jsx)("hr",{className:fr(a.base,n),role:"separator","data-testid":"flowbite-hr-square",ref:t,...o})})),rl=(0,n.forwardRef)(((e,t)=>{let{theme:r={},text:n,className:o,...a}=e;const i=mr(wr().hr.text,r);return(0,nt.jsxs)("div",{className:i.base,children:[(0,nt.jsx)("hr",{className:fr(i.hrLine,o),"data-testid":"flowbite-hr-text",role:"separator",ref:t,...a}),(0,nt.jsx)("span",{className:i.text,children:n})]})})),nl=(0,n.forwardRef)(((e,t)=>{let{theme:r={},className:n,...o}=e;const a=mr(wr().hr.trimmed,r);return(0,nt.jsx)("hr",{className:fr(a.base,n),role:"separator","data-testid":"flowbite-hr-trimmed",ref:t,...o})})),ol=(0,n.forwardRef)(((e,t)=>{let{theme:r={},className:n,...o}=e;const a=mr(wr().hr.root,r);return(0,nt.jsx)("hr",{className:fr(a.base,n),role:"separator","data-testid":"flowbite-hr",ref:t,...o})}));ol.displayName="HR",nl.displayName="HR.Trimmed",el.displayName="HR.Icon",rl.displayName="HR.Text",tl.displayName="HR.Square";Object.assign(ol,{Trimmed:nl,Icon:el,Text:rl,Square:tl});const al=e=>{let{children:t,className:r,icon:n,theme:o={},...a}=e;const i=mr(wr().list.item,o);return(0,nt.jsxs)("li",{className:fr(i.withIcon[n?"on":"off"],r),...a,children:[n&&(0,nt.jsx)(n,{className:fr(i.icon)}),t]})},il=e=>{let{children:t,className:r,unstyled:n,nested:o,ordered:a,horizontal:i,theme:s={},...l}=e;const c=mr(wr().list,s),u=a?"ol":"ul";return(0,nt.jsx)(u,{className:fr(c.root.base,c.root.ordered[a?"on":"off"],n&&c.root.unstyled,o&&c.root.nested,i&&c.root.horizontal,r),...l,children:t})};il.displayName="List",al.displayName="List.Item";Object.assign(il,{Item:al});const sl=e=>{let{active:t,children:r,className:n,href:o,icon:a,onClick:i,theme:s={},disabled:l,...c}=e;const u=mr(wr().listGroup.item,s),d="undefined"!==typeof o,f=d?"a":"button";return(0,nt.jsx)("li",{className:fr(u.base,n),children:(0,nt.jsxs)(f,{href:o,onClick:i,type:d?void 0:"button",disabled:l,className:fr(u.link.active[t?"on":"off"],u.link.disabled[l?"on":"off"],u.link.base,u.link.href[d?"on":"off"]),...c,children:[a&&(0,nt.jsx)(a,{"aria-hidden":!0,"data-testid":"flowbite-list-group-item-icon",className:u.link.icon}),r]})})},ll=e=>{let{children:t,className:r,theme:n={},...o}=e;const a=mr(wr().listGroup,n);return(0,nt.jsx)("ul",{className:fr(a.root.base,r),...o,children:t})};ll.displayName="ListGroup",sl.displayName="ListGroup.Item";Object.assign(ll,{Item:sl});const cl=(0,n.createContext)(void 0);function ul(){const e=(0,n.useContext)(cl);if(!e)throw new Error("useNavBarContext should be used within the NavbarContext provider!");return e}const dl=e=>{let{as:t="a",children:r,className:n,theme:o={},...a}=e;const{theme:i}=ul(),s=mr(i.brand,o);return(0,nt.jsx)(t,{className:fr(s.base,n),...a,children:r})},fl=e=>{let{children:t,className:r,theme:n={},...o}=e;const{theme:a,isOpen:i}=ul(),s=mr(a.collapse,n);return(0,nt.jsx)("div",{"data-testid":"flowbite-navbar-collapse",className:fr(s.base,s.hidden[i?"off":"on"],r),...o,children:(0,nt.jsx)("ul",{className:s.list,children:t})})},pl=e=>{let{active:t,as:r="a",disabled:n,children:o,className:a,theme:i={},onClick:s,...l}=e;const{theme:c,setIsOpen:u}=ul(),d=mr(c.link,i);return(0,nt.jsx)("li",{children:(0,nt.jsx)(r,{className:fr(d.base,t&&d.active.on,!t&&!n&&d.active.off,d.disabled[n?"on":"off"],a),onClick:e=>{u(!1),s?.(e)},...l,children:o})})};function hl(e){return $e({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"},child:[]}]})(e)}const ml=e=>{let{barIcon:t=hl,className:r,theme:n={},...o}=e;const{theme:a,isOpen:i,setIsOpen:s}=ul(),l=mr(a.toggle,n);return(0,nt.jsxs)("button",{"data-testid":"flowbite-navbar-toggle",onClick:()=>{s(!i)},className:fr(l.base,r),...o,children:[(0,nt.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,nt.jsx)(t,{"aria-hidden":!0,className:l.icon})]})},gl=e=>{let{border:t,children:r,className:o,fluid:a=!1,menuOpen:i,rounded:s,theme:l={},...c}=e;const[u,d]=(0,n.useState)(i),f=mr(wr().navbar,l);return(0,nt.jsx)(cl.Provider,{value:{theme:f,isOpen:u,setIsOpen:d},children:(0,nt.jsx)("nav",{className:fr(f.root.base,f.root.bordered[t?"on":"off"],f.root.rounded[s?"on":"off"],o),...c,children:(0,nt.jsx)("div",{className:fr(f.root.inner.base,f.root.inner.fluid[a?"on":"off"]),children:r})})})};gl.displayName="Navbar",dl.displayName="Navbar.Brand",fl.displayName="Navbar.Collapse",pl.displayName="Navbar.Link",ml.displayName="Navbar.Toggle";const bl=Object.assign(gl,{Brand:dl,Collapse:fl,Link:pl,Toggle:ml}),yl=e=>{let{children:t,className:r,theme:o={},toggle:a,...i}=e;const[s,l]=(0,n.useState)(void 0),c=mr(wr().megaMenu.dropdown,o);if(a)return(0,nt.jsx)(Hs,{inline:!0,label:a,placement:"bottom",theme:c.toggle,className:fr(c.base,r),children:t});const u=(0,n.useId)(),d=(0,n.useRef)(null);return(0,n.useEffect)((()=>{l(function(){const e=d.current?.closest("nav");return e?.querySelector('[aria-haspopup="menu"]')}()?.id)}),[]),(0,nt.jsx)("div",{"aria-labelledby":s,id:u,ref:d,role:"menu",className:fr(c.base,r),...i,children:t})};yl.displayName="MegaMenu.Dropdown";const xl=e=>{let{children:t,className:r,theme:o={},...a}=e;const i=(0,n.useId)(),s=(0,n.useRef)(null),[l,c]=(0,n.useState)(void 0),[u,d]=(0,n.useState)(void 0),f=mr(wr().megaMenu.dropdownToggle,o),p=function(){const e=s.current?.closest("nav");return e?.querySelector('[role="menu"]')};return(0,n.useEffect)((()=>{const e=p(),t=e?.classList.contains("hidden");c(e?.id),d(!t)}),[]),(0,nt.jsx)("button",{"aria-controls":l,"aria-expanded":u,"aria-haspopup":"menu",id:i,onClick:function(){p()?.classList.toggle("hidden"),d(!u)},ref:s,className:fr(f.base,r),...a,children:t})};xl.displayName="MegaMenu.DropdownToggle";const vl=e=>{let{children:t,theme:r={},...n}=e;const o=mr(wr().megaMenu,r);return(0,nt.jsx)(bl,{fluid:!0,theme:o,...n,children:t})};Object.assign(vl,{Dropdown:yl,DropdownToggle:xl});vl.displayName="MegaMenu";const wl=(0,n.createContext)(void 0);function kl(){const e=(0,n.useContext)(wl);if(!e)throw new Error("useModalContext should be used within the ModalContext provider!");return e}const jl=e=>{let{children:t,className:r,theme:n={},...o}=e;const{theme:a,popup:i}=kl(),s=mr(a.body,n);return(0,nt.jsx)("div",{className:fr(s.base,i&&[s.popup],r),...o,children:t})},Nl=e=>{let{children:t,className:r,theme:n={},...o}=e;const{theme:a,popup:i}=kl(),s=mr(a.footer,n);return(0,nt.jsx)("div",{className:fr(s.base,!i&&s.popup,r),...o,children:t})},Cl=e=>{let{as:t="h3",children:r,className:o,theme:a={},id:i,...s}=e;const l=(0,n.useId)(),c=i||l,{theme:u,popup:d,onClose:f,setHeaderId:p}=kl(),h=mr(u.header,a);return(0,n.useLayoutEffect)((()=>(p(c),()=>p(void 0))),[c,p]),(0,nt.jsxs)("div",{className:fr(h.base,d&&h.popup,o),...s,children:[(0,nt.jsx)(t,{id:c,className:h.title,children:r}),(0,nt.jsx)("button",{"aria-label":"Close",className:h.close.base,type:"button",onClick:f,children:(0,nt.jsx)(kt,{"aria-hidden":!0,className:h.close.icon})})]})},Sl=(0,n.forwardRef)(((e,t)=>{let{children:r,className:o,dismissible:a=!1,onClose:i,popup:s,position:l="center",root:c,show:u,size:d="2xl",theme:f={},initialFocus:p,...h}=e;const[m,g]=(0,n.useState)(void 0),b=mr(wr().modal,f),{context:y}=Si({open:u,onOpenChange:()=>i&&i()}),x=ta([y.refs.setFloating,t]),v=wi(y),w=Ci(y,{outsidePressEvent:"mousedown",enabled:a}),k=Di(y),{getFloatingProps:j}=$i([v,w,k]);return u?(0,nt.jsx)(wl.Provider,{value:{theme:b,popup:s,onClose:i,setHeaderId:g},children:(0,nt.jsx)(ci,{root:c,children:(0,nt.jsx)(yi,{lockScroll:!0,"data-testid":"modal-overlay",className:fr(b.root.base,b.root.positions[l],u?b.root.show.on:b.root.show.off,o),...h,children:(0,nt.jsx)(gi,{context:y,initialFocus:p,children:(0,nt.jsx)("div",{ref:x,...j(h),"aria-labelledby":m,className:fr(b.content.base,b.root.sizes[d]),children:(0,nt.jsx)("div",{className:b.content.inner,children:r})})})})})}):null}));Sl.displayName="Modal",Cl.displayName="Modal.Header",jl.displayName="Modal.Body",Nl.displayName="Modal.Footer";const El=Object.assign(Sl,{Header:Cl,Body:jl,Footer:Nl}),Al=e=>{let{active:t,children:r,className:n,onClick:o,theme:a={},...i}=e;const s=mr(wr().pagination,a);return(0,nt.jsx)("button",{type:"button",className:fr(t&&s.pages.selector.active,n),onClick:o,...i,children:r})};Al.displayName="Pagination.Button";const Ol=e=>{let{children:t,className:r,onClick:n,theme:o={},disabled:a=!1,...i}=e;const s=mr(wr().pagination,o);return(0,nt.jsx)("button",{type:"button",className:fr(a&&s.pages.selector.disabled,r),disabled:a,onClick:n,...i,children:t})};Ol.displayName="Pagination.Navigation";const $l=e=>{let{className:t,currentPage:r,layout:n="pagination",nextLabel:o="Next",onPageChange:a,previousLabel:i="Previous",renderPaginationButton:s=e=>(0,nt.jsx)(Al,{...e}),showIcons:l=!1,theme:c={},totalPages:u,...d}=e;const f=mr(wr().pagination,c),p=Math.min(Math.max("pagination"===n?r+2:r+4,5),u),h=Math.max(1,p-4);return(0,nt.jsxs)("nav",{className:fr(f.base,t),...d,children:["table"===n&&(0,nt.jsxs)("div",{className:f.layout.table.base,children:["Showing ",(0,nt.jsx)("span",{className:f.layout.table.span,children:h})," to\xa0",(0,nt.jsx)("span",{className:f.layout.table.span,children:p})," of\xa0",(0,nt.jsx)("span",{className:f.layout.table.span,children:u})," Entries"]}),(0,nt.jsxs)("ul",{className:f.pages.base,children:[(0,nt.jsx)("li",{children:(0,nt.jsxs)(Ol,{className:fr(f.pages.previous.base,l&&f.pages.showIcon),onClick:()=>{a(Math.max(r-1,1))},disabled:1===r,children:[l&&(0,nt.jsx)(ct,{"aria-hidden":!0,className:f.pages.previous.icon}),i]})}),"pagination"===n&&(m=h,g=p,m>=g?[]:[...Array(g-m+1).keys()].map((e=>e+m))).map((e=>(0,nt.jsx)("li",{"aria-current":e===r?"page":void 0,children:s({className:fr(f.pages.selector.base,r===e&&f.pages.selector.active),active:e===r,onClick:()=>a(e),children:e})},e))),(0,nt.jsx)("li",{children:(0,nt.jsxs)(Ol,{className:fr(f.pages.next.base,l&&f.pages.showIcon),onClick:()=>{a(Math.min(r+1,u))},disabled:r===u,children:[o,l&&(0,nt.jsx)(ut,{"aria-hidden":!0,className:f.pages.next.icon})]})})]})]});var m,g};$l.displayName="Pagination";Object.assign($l,{Button:Al});const Pl=(0,n.forwardRef)(((e,t)=>{let{className:r,theme:n={},...o}=e;const a=mr(wr().radio,n);return(0,nt.jsx)("input",{ref:t,type:"radio",className:fr(a.root.base,r),...o})}));Pl.displayName="Radio";const Tl=(0,n.forwardRef)(((e,t)=>{let{className:r,sizing:n="md",theme:o={},...a}=e;const i=mr(wr().rangeSlider,o);return(0,nt.jsx)(nt.Fragment,{children:(0,nt.jsx)("div",{"data-testid":"flowbite-range-slider",className:fr(i.root.base,r),children:(0,nt.jsx)("div",{className:i.field.base,children:(0,nt.jsx)("input",{ref:t,type:"range",className:fr(i.field.input.base,i.field.input.sizes[n]),...a})})})})}));Tl.displayName="RangeSlider";const Il=e=>{let{children:t,className:r,percentFilled:n=0,theme:o={},...a}=e;const i=mr(wr().ratingAdvanced,o);return(0,nt.jsxs)("div",{className:fr(i.base,r),...a,children:[(0,nt.jsx)("span",{className:i.label,children:t}),(0,nt.jsx)("div",{className:i.progress.base,children:(0,nt.jsx)("div",{className:i.progress.fill,"data-testid":"flowbite-rating-fill",style:{width:`${n}%`}})}),(0,nt.jsx)("span",{className:i.progress.label,children:`${n}%`})]})},Ml=(0,n.createContext)(void 0);const Rl=e=>{let{className:t,filled:r=!0,starIcon:o=mt,theme:a={},...i}=e;const{theme:s,size:l="sm"}=function(){const e=(0,n.useContext)(Ml);if(!e)throw new Error("useRatingContext should be used within the RatingContext provider!");return e}(),c=mr(s.star,a);return(0,nt.jsx)(o,{"data-testid":"flowbite-rating-star",className:fr(c.sizes[l],c[r?"filled":"empty"],t),...i})},Ll=e=>{let{children:t,className:r,size:n="sm",theme:o={},...a}=e;const i=mr(wr().rating,o);return(0,nt.jsx)(Ml.Provider,{value:{theme:i,size:n},children:(0,nt.jsx)("div",{className:fr(i.root.base,r),...a,children:t})})};Ll.displayName="Rating",Rl.displayName="Rating.Star",Il.displayName="Rating.Advanced";Object.assign(Ll,{Star:Rl,Advanced:Il});const _l=(0,n.forwardRef)(((e,t)=>{let{addon:r,children:n,className:o,color:a="gray",helperText:i,icon:s,shadow:l,sizing:c="md",theme:u={},...d}=e;const f=mr(wr().select,u);return(0,nt.jsxs)("div",{className:fr(f.base,o),children:[r&&(0,nt.jsx)("span",{className:f.addon,children:r}),(0,nt.jsxs)("div",{className:f.field.base,children:[s&&(0,nt.jsx)("div",{className:f.field.icon.base,children:(0,nt.jsx)(s,{className:f.field.icon.svg})}),(0,nt.jsx)("select",{className:fr(f.field.select.base,f.field.select.colors[a],f.field.select.sizes[c],f.field.select.withIcon[s?"on":"off"],f.field.select.withAddon[r?"on":"off"],f.field.select.withShadow[l?"on":"off"]),...d,ref:t,children:n}),i&&(0,nt.jsx)(ls,{color:a,children:i})]})]})}));_l.displayName="Select";const Dl=(0,n.createContext)(void 0);function Bl(){const e=(0,n.useContext)(Dl);if(!e)throw new Error("useSidebarContext should be used within the SidebarContext provider!");return e}const zl=(0,n.createContext)(void 0);const Fl=e=>{let{children:t,className:r,icon:o,label:a,chevronIcon:i=lt,renderChevronIcon:s,open:l=!1,theme:c={},...u}=e;const d=(0,n.useId)(),[f,p]=(0,n.useState)(l),{theme:h,isCollapsed:m}=Bl(),g=mr(h.collapse,c);(0,n.useEffect)((()=>p(l)),[l]);const b=e=>{let{children:t}=e;return(0,nt.jsx)("li",{children:m&&!f?(0,nt.jsx)(Gi,{content:a,placement:"right",children:t}):t})};return(0,nt.jsxs)(b,{children:[(0,nt.jsxs)("button",{id:`flowbite-sidebar-collapse-${d}`,onClick:()=>p(!f),title:a,type:"button",className:fr(g.button,r),...u,children:[o&&(0,nt.jsx)(o,{"aria-hidden":!0,"data-testid":"flowbite-sidebar-collapse-icon",className:fr(g.icon.base,g.icon.open[f?"on":"off"])}),m?(0,nt.jsx)("span",{className:"sr-only",children:a}):(0,nt.jsxs)(nt.Fragment,{children:[(0,nt.jsx)("span",{"data-testid":"flowbite-sidebar-collapse-label",className:g.label.base,children:a}),s?s(g,f):(0,nt.jsx)(i,{"aria-hidden":!0,className:fr(g.label.icon.base,g.label.icon.open[f?"on":"off"])})]})]}),(0,nt.jsx)("ul",{"aria-labelledby":`flowbite-sidebar-collapse-${d}`,hidden:!f,className:g.list,children:(0,nt.jsx)(zl.Provider,{value:{isInsideCollapse:!0},children:t})})]})};Fl.displayName="Sidebar.Collapse";const ql=e=>{let{children:t,color:r="info",className:n,theme:o={},...a}=e;const{theme:i,isCollapsed:s}=Bl(),l=mr(i.cta,o);return(0,nt.jsx)("div",{"data-testid":"sidebar-cta",hidden:s,className:fr(l.base,l.color[r],n),...a,children:t})};ql.displayName="Sidebar.CTA";const Hl=e=>{let{id:t,theme:r,isCollapsed:n,tooltipChildren:o,children:a,...i}=e;return(0,nt.jsx)("li",{...i,children:n?(0,nt.jsx)(Gi,{content:(0,nt.jsx)(Ul,{id:t,theme:r,children:o}),placement:"right",children:a}):a})},Ul=e=>{let{id:t,theme:r,children:n}=e;return(0,nt.jsx)("span",{"data-testid":"flowbite-sidebar-item-content",id:`flowbite-sidebar-item-${t}`,className:fr(r.content.base),children:n})},Wl=(0,n.forwardRef)(((e,t)=>{let{active:r,as:o="a",children:a,className:i,icon:s,label:l,labelColor:c="info",theme:u={},...d}=e;const f=(0,n.useId)(),{theme:p,isCollapsed:h}=Bl(),{isInsideCollapse:m}=function(){const e=(0,n.useContext)(zl);if(!e)throw new Error("useSidebarItemContext should be used within the SidebarItemContext provider!");return e}(),g=mr(p.item,u);return(0,nt.jsx)(Hl,{theme:g,className:g.listItem,id:f,isCollapsed:h,tooltipChildren:a,children:(0,nt.jsxs)(o,{"aria-labelledby":`flowbite-sidebar-item-${f}`,ref:t,className:fr(g.base,r&&g.active,!h&&m&&g.collapsed?.insideCollapse,i),...d,children:[s&&(0,nt.jsx)(s,{"aria-hidden":!0,"data-testid":"flowbite-sidebar-item-icon",className:fr(g.icon?.base,r&&g.icon?.active)}),h&&!s&&(0,nt.jsx)("span",{className:g.collapsed?.noIcon,children:a.charAt(0).toLocaleUpperCase()??"?"}),!h&&(0,nt.jsx)(Ul,{id:f,theme:g,children:a}),!h&&l&&(0,nt.jsx)(Pr,{color:c,"data-testid":"flowbite-sidebar-label",hidden:h,className:g.label,children:l})]})})}));Wl.displayName="Sidebar.Item";const Vl=e=>{let{children:t,className:r,theme:n={},...o}=e;const{theme:a}=Bl(),i=mr(a.itemGroup,n);return(0,nt.jsx)("ul",{"data-testid":"flowbite-sidebar-item-group",className:fr(i.base,r),...o,children:(0,nt.jsx)(zl.Provider,{value:{isInsideCollapse:!1},children:t})})};Vl.displayName="Sidebar.ItemGroup";const Gl=e=>{let{children:t,className:r,theme:n={},...o}=e;const{theme:a}=Bl(),i=mr(a.items,n);return(0,nt.jsx)("div",{className:fr(i.base,r),"data-testid":"flowbite-sidebar-items",...o,children:t})};Gl.displayName="Sidebar.Items";const Kl=e=>{let{children:t,className:r,href:o,img:a,imgAlt:i="",theme:s={},...l}=e;const c=(0,n.useId)(),{theme:u,isCollapsed:d}=Bl(),f=mr(u.logo,s);return(0,nt.jsxs)("a",{"aria-labelledby":`flowbite-sidebar-logo-${c}`,href:o,className:fr(f.base,r),...l,children:[(0,nt.jsx)("img",{alt:i,src:a,className:f.img}),(0,nt.jsx)("span",{className:f.collapsed[d?"on":"off"],id:`flowbite-sidebar-logo-${c}`,children:t})]})};Kl.displayName="Sidebar.Logo";const Ql=e=>{let{children:t,as:r="nav",collapseBehavior:n="collapse",collapsed:o=!1,theme:a={},className:i,...s}=e;const l=mr(wr().sidebar,a);return(0,nt.jsx)(Dl.Provider,{value:{theme:l,isCollapsed:o},children:(0,nt.jsx)(r,{"aria-label":"Sidebar",hidden:o&&"hide"===n,className:fr(l.root.base,l.root.collapsed[o?"on":"off"],i),...s,children:(0,nt.jsx)("div",{className:l.root.inner,children:t})})})};Ql.displayName="Sidebar";Object.assign(Ql,{Collapse:Fl,CTA:ql,Item:Wl,Items:Gl,ItemGroup:Vl,Logo:Kl});const Yl=(0,n.createContext)(void 0);const Zl=(0,n.createContext)(void 0);function Jl(){const e=(0,n.useContext)(Zl);if(!e)throw new Error("useTableContext should be used within the TableContext provider!");return e}const Xl=(0,n.forwardRef)(((e,t)=>{let{children:r,className:n,theme:o={},...a}=e;const{theme:i}=Jl(),s=mr(i.body,o);return(0,nt.jsx)(Yl.Provider,{value:{theme:s},children:(0,nt.jsx)("tbody",{className:fr(s.base,n),ref:t,...a,children:r})})}));Xl.displayName="Table.Body";const ec=(0,n.forwardRef)(((e,t)=>{let{children:r,className:o,theme:a={},...i}=e;const{theme:s}=function(){const e=(0,n.useContext)(Yl);if(!e)throw new Error("useTableBodyContext should be used within the TableBodyContext provider!");return e}(),l=mr(s.cell,a);return(0,nt.jsx)("td",{className:fr(l.base,o),ref:t,...i,children:r})}));ec.displayName="Table.Cell";const tc=(0,n.createContext)(void 0);const rc=(0,n.forwardRef)(((e,t)=>{let{children:r,className:n,theme:o={},...a}=e;const{theme:i}=Jl(),s=mr(i.head,o);return(0,nt.jsx)(tc.Provider,{value:{theme:s},children:(0,nt.jsx)("thead",{className:fr(s.base,n),ref:t,...a,children:(0,nt.jsx)("tr",{children:r})})})}));rc.displayName="Table.Head";const nc=(0,n.forwardRef)(((e,t)=>{let{children:r,className:o,theme:a={},...i}=e;const{theme:s}=function(){const e=(0,n.useContext)(tc);if(!e)throw new Error("useTableHeadContext should be used within the TableHeadContext provider!");return e}(),l=mr(s.cell,a);return(0,nt.jsx)("th",{className:fr(l.base,o),ref:t,...i,children:r})}));nc.displayName="Table.HeadCell";const oc=(0,n.forwardRef)(((e,t)=>{let{children:r,className:n,theme:o={},...a}=e;const{theme:i,hoverable:s,striped:l}=Jl(),c=mr(i.row,o);return(0,nt.jsx)("tr",{ref:t,"data-testid":"table-row-element",className:fr(c.base,l&&c.striped,s&&c.hovered,n),...a,children:r})}));oc.displayName="Table.Row";const ac=(0,n.forwardRef)(((e,t)=>{let{children:r,className:n,striped:o,hoverable:a,theme:i={},...s}=e;const l=mr(wr().table,i);return(0,nt.jsx)("div",{"data-testid":"table-element",className:fr(l.root.wrapper),children:(0,nt.jsxs)(Zl.Provider,{value:{theme:l,striped:o,hoverable:a},children:[(0,nt.jsx)("div",{className:fr(l.root.shadow,n)}),(0,nt.jsx)("table",{className:fr(l.root.base,n),...s,ref:t,children:r})]})})}));ac.displayName="Table";Object.assign(ac,{Head:rc,Body:Xl,Row:oc,Cell:ec,HeadCell:nc});const ic=e=>{let{children:t,className:r}=e;return(0,nt.jsx)("div",{className:r,children:t})};ic.displayName="Tabs.Item";const sc=(0,n.forwardRef)(((e,t)=>{let{children:r,className:o,onActiveTabChange:a,variant:i="default",theme:s={},...l}=e;const c=mr(wr().tabs,s),u=(0,n.useId)(),d=(0,n.useMemo)((()=>n.Children.map(n.Children.toArray(r),(e=>{let{props:t}=e;return t}))),[r]),f=(0,n.useRef)([]),[p,h]=(0,n.useState)(Math.max(0,d.findIndex((e=>e.active)))),[m,g]=(0,n.useState)(-1),b=e=>{h(e),a&&a(e)},y=c.tablist.tabitem.variant[i],x=c.tabitemcontainer.variant[i];return(0,n.useEffect)((()=>{f.current[m]?.focus()}),[m]),(0,n.useImperativeHandle)(t,(()=>({setActiveTab:b}))),(0,nt.jsxs)("div",{className:fr(c.base,o),children:[(0,nt.jsx)("div",{"aria-label":"Tabs",role:"tablist",className:fr(c.tablist.base,c.tablist.variant[i],o),...l,children:d.map(((e,t)=>(0,nt.jsxs)("button",{type:"button","aria-controls":`${u}-tabpanel-${t}`,"aria-selected":t===p,className:fr(c.tablist.tabitem.base,y.base,t===p&&y.active.on,t!==p&&!e.disabled&&y.active.off),disabled:e.disabled,id:`${u}-tab-${t}`,onClick:()=>(e=>{let{target:t}=e;b(t),g(t)})({target:t}),onKeyDown:e=>(e=>{let{event:t,target:r}=e;"ArrowLeft"===t.key&&g(Math.max(0,m-1)),"ArrowRight"===t.key&&g(Math.min(d.length-1,m+1)),"Enter"===t.key&&(b(r),g(r))})({event:e,target:t}),ref:e=>f.current[t]=e,role:"tab",tabIndex:t===m?0:-1,style:{zIndex:t===m?2:1},children:[e.icon&&(0,nt.jsx)(e.icon,{className:c.tablist.tabitem.icon}),e.title]},t)))}),(0,nt.jsx)("div",{className:fr(c.tabitemcontainer.base,x),children:d.map(((e,t)=>(0,nt.jsx)("div",{"aria-labelledby":`${u}-tab-${t}`,className:c.tabpanel,hidden:t!==p,id:`${u}-tabpanel-${t}`,role:"tabpanel",tabIndex:0,children:e.children},t)))})]})}));sc.displayName="Tabs";Object.assign(sc,{Item:ic});const lc=(0,n.forwardRef)(((e,t)=>{let{className:r,color:n="gray",helperText:o,shadow:a,theme:i={},...s}=e;const l=mr(wr().textarea,i);return(0,nt.jsxs)(nt.Fragment,{children:[(0,nt.jsx)("textarea",{ref:t,className:fr(l.base,l.colors[n],l.withShadow[a?"on":"off"],r),...s}),o&&(0,nt.jsx)(ls,{color:n,children:o})]})}));lc.displayName="Textarea";const cc=(0,n.createContext)(void 0);function uc(){const e=(0,n.useContext)(cc);if(!e)throw new Error("useTimelineContentContext should be used within the TimelineContentContext provider!");return e}const dc=e=>{let{children:t,className:r,theme:n={},...o}=e;const{theme:a}=uc(),i=mr(a.body,n);return(0,nt.jsx)("div",{className:fr(i.base,r),...o,children:t})},fc=(0,n.createContext)(void 0);function pc(){const e=(0,n.useContext)(fc);if(!e)throw new Error("useTimelineContext should be used within the TimelineContext provider!");return e}const hc=(0,n.createContext)(void 0);function mc(){const e=(0,n.useContext)(hc);if(!e)throw new Error("useTimelineItemContext should be used within the TimelineItemContext provider!");return e}const gc=e=>{let{children:t,className:r,theme:n={},...o}=e;const{horizontal:a}=pc(),{theme:i}=mc(),s=mr(i.content,n);return(0,nt.jsx)(cc.Provider,{value:{theme:s},children:(0,nt.jsx)("div",{"data-testid":"timeline-content",className:fr(s.root.base,a?s.root.horizontal:s.root.vertical,r),...o,children:t})})},bc=e=>{let{children:t,className:r,theme:n={},...o}=e;const{theme:a,horizontal:i}=pc(),s=mr(a.item,n);return(0,nt.jsx)(hc.Provider,{value:{theme:s},children:(0,nt.jsx)("li",{"data-testid":"timeline-item",className:fr(i&&s.root.horizontal,!i&&s.root.vertical,r),...o,children:t})})},yc=e=>{let{children:t,className:r,icon:n,theme:o={},...a}=e;const{horizontal:i}=pc(),{theme:s}=mc(),l=mr(s.point,o);return(0,nt.jsxs)("div",{"data-testid":"timeline-point",className:fr(i&&l.horizontal,!i&&l.vertical,r),...a,children:[t,n?(0,nt.jsx)("span",{className:fr(l.marker.icon.wrapper),children:(0,nt.jsx)(n,{"aria-hidden":!0,className:fr(l.marker.icon.base)})}):(0,nt.jsx)("div",{className:fr(i&&l.marker.base.horizontal,!i&&l.marker.base.vertical)}),i&&(0,nt.jsx)("div",{className:fr(l.line)})]})},xc=e=>{let{children:t,className:r,theme:n={},...o}=e;const{theme:a}=uc(),i=mr(a.time,n);return(0,nt.jsx)("time",{className:fr(i.base,r),...o,children:t})},vc=e=>{let{as:t="h3",children:r,className:n,theme:o={},...a}=e;const{theme:i}=uc(),s=mr(i.title,o);return(0,nt.jsx)(t,{className:fr(s.base,n),...a,children:r})},wc=e=>{let{children:t,className:r,horizontal:n,theme:o={},...a}=e;const i=mr(wr().timeline,o);return(0,nt.jsx)(fc.Provider,{value:{theme:i,horizontal:n},children:(0,nt.jsx)("ol",{"data-testid":"timeline-component",className:fr(n&&i.root.direction.horizontal,!n&&i.root.direction.vertical,r),...a,children:t})})};wc.displayName="Timeline",bc.displayName="Timeline.Item",yc.displayName="Timeline.Point",gc.displayName="Timeline.Content",xc.displayName="Timeline.Time",vc.displayName="Timeline.Title",dc.displayName="Timeline.Body";Object.assign(wc,{Item:bc,Point:yc,Content:gc,Time:xc,Title:vc,Body:dc});const kc=(0,n.createContext)(void 0);const jc=e=>{let{className:t,onClick:r,theme:o={},xIcon:a=yt,onDismiss:i,...s}=e;const{theme:l,duration:c,isClosed:u,isRemoved:d,setIsClosed:f,setIsRemoved:p}=function(){const e=(0,n.useContext)(kc);if(!e)throw new Error("useToastContext should be used within the ToastContext provider!");return e}(),h=mr(l.toggle,o);return(0,nt.jsx)("button",{"aria-label":"Close",onClick:e=>{r&&r(e),i?i():(f(!u),setTimeout((()=>p(!d)),c))},type:"button",className:fr(h.base,t),...s,children:(0,nt.jsx)(a,{"aria-hidden":!0,className:h.icon})})},Nc={75:"duration-75",100:"duration-100",150:"duration-150",200:"duration-200",300:"duration-300",500:"duration-500",700:"duration-700",1e3:"duration-1000"},Cc=e=>{let{children:t,className:r,duration:o=300,theme:a={},...i}=e;const[s,l]=(0,n.useState)(!1),[c,u]=(0,n.useState)(!1),d=mr(wr().toast,a);return c?null:(0,nt.jsx)(kc.Provider,{value:{theme:d,duration:o,isClosed:s,isRemoved:c,setIsClosed:l,setIsRemoved:u},children:(0,nt.jsx)("div",{"data-testid":"flowbite-toast",role:"alert",className:fr(d.root.base,Nc[o],s&&d.root.closed,r),...i,children:t})})};Cc.displayName="Toast",jc.displayName="Toast.Toggle";const Sc=Object.assign(Cc,{Toggle:jc}),Ec=(0,n.forwardRef)(((e,t)=>{let{checked:r,className:o,color:a="blue",sizing:i="md",disabled:s,label:l,name:c,onChange:u,theme:d={},...f}=e;const p=(0,n.useId)(),h=mr(wr().toggleSwitch,d);return(0,nt.jsxs)(nt.Fragment,{children:[c&&r?(0,nt.jsx)("input",{ref:t,checked:r,hidden:!0,name:c,readOnly:!0,type:"checkbox",className:"sr-only"}):null,(0,nt.jsxs)("button",{"aria-checked":r,"aria-labelledby":`${p}-flowbite-toggleswitch-label`,disabled:s,id:`${p}-flowbite-toggleswitch`,onClick:()=>{u(!r)},onKeyDown:e=>{"Enter"==e.code&&e.preventDefault()},role:"switch",tabIndex:0,type:"button",className:fr(h.root.base,h.root.active[s?"off":"on"],o),...f,children:[(0,nt.jsx)("div",{"data-testid":"flowbite-toggleswitch-toggle",className:fr(h.toggle.base,h.toggle.checked[r?"on":"off"],r&&h.toggle.checked.color[a],h.toggle.sizes[i])}),l?.length?(0,nt.jsx)("span",{"data-testid":"flowbite-toggleswitch-label",id:`${p}-flowbite-toggleswitch-label`,className:h.root.label,children:l}):null]})]})}));function Ac(e){return $e({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M16.5 3.75a1.5 1.5 0 0 1 1.5 1.5v13.5a1.5 1.5 0 0 1-1.5 1.5h-6a1.5 1.5 0 0 1-1.5-1.5V15a.75.75 0 0 0-1.5 0v3.75a3 3 0 0 0 3 3h6a3 3 0 0 0 3-3V5.25a3 3 0 0 0-3-3h-6a3 3 0 0 0-3 3V9A.75.75 0 1 0 9 9V5.25a1.5 1.5 0 0 1 1.5-1.5h6ZM5.78 8.47a.75.75 0 0 0-1.06 0l-3 3a.75.75 0 0 0 0 1.06l3 3a.75.75 0 0 0 1.06-1.06l-1.72-1.72H15a.75.75 0 0 0 0-1.5H4.06l1.72-1.72a.75.75 0 0 0 0-1.06Z",clipRule:"evenodd"},child:[]}]})(e)}function Oc(e){return $e({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M16.5 3.75a1.5 1.5 0 0 1 1.5 1.5v13.5a1.5 1.5 0 0 1-1.5 1.5h-6a1.5 1.5 0 0 1-1.5-1.5V15a.75.75 0 0 0-1.5 0v3.75a3 3 0 0 0 3 3h6a3 3 0 0 0 3-3V5.25a3 3 0 0 0-3-3h-6a3 3 0 0 0-3 3V9A.75.75 0 1 0 9 9V5.25a1.5 1.5 0 0 1 1.5-1.5h6Zm-5.03 4.72a.75.75 0 0 0 0 1.06l1.72 1.72H2.25a.75.75 0 0 0 0 1.5h10.94l-1.72 1.72a.75.75 0 1 0 1.06 1.06l3-3a.75.75 0 0 0 0-1.06l-3-3a.75.75 0 0 0-1.06 0Z",clipRule:"evenodd"},child:[]}]})(e)}function $c(e){return $e({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M11.47 2.47a.75.75 0 0 1 1.06 0l4.5 4.5a.75.75 0 0 1-1.06 1.06l-3.22-3.22V16.5a.75.75 0 0 1-1.5 0V4.81L8.03 8.03a.75.75 0 0 1-1.06-1.06l4.5-4.5ZM3 15.75a.75.75 0 0 1 .75.75v2.25a1.5 1.5 0 0 0 1.5 1.5h13.5a1.5 1.5 0 0 0 1.5-1.5V16.5a.75.75 0 0 1 1.5 0v2.25a3 3 0 0 1-3 3H5.25a3 3 0 0 1-3-3V16.5a.75.75 0 0 1 .75-.75Z",clipRule:"evenodd"},child:[]}]})(e)}function Pc(e){return $e({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm13.36-1.814a.75.75 0 1 0-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 0 0-1.06 1.06l2.25 2.25a.75.75 0 0 0 1.14-.094l3.75-5.25Z",clipRule:"evenodd"},child:[]}]})(e)}function Tc(e){return $e({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M7.72 12.53a.75.75 0 0 1 0-1.06l7.5-7.5a.75.75 0 1 1 1.06 1.06L9.31 12l6.97 6.97a.75.75 0 1 1-1.06 1.06l-7.5-7.5Z",clipRule:"evenodd"},child:[]}]})(e)}function Ic(e){return $e({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M16.28 11.47a.75.75 0 0 1 0 1.06l-7.5 7.5a.75.75 0 0 1-1.06-1.06L14.69 12 7.72 5.03a.75.75 0 0 1 1.06-1.06l7.5 7.5Z",clipRule:"evenodd"},child:[]}]})(e)}function Mc(e){return $e({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{d:"M4.5 3.75a3 3 0 0 0-3 3v.75h21v-.75a3 3 0 0 0-3-3h-15Z"},child:[]},{tag:"path",attr:{fillRule:"evenodd",d:"M22.5 9.75h-21v7.5a3 3 0 0 0 3 3h15a3 3 0 0 0 3-3v-7.5Zm-18 3.75a.75.75 0 0 1 .75-.75h6a.75.75 0 0 1 0 1.5h-6a.75.75 0 0 1-.75-.75Zm.75 2.25a.75.75 0 0 0 0 1.5h3a.75.75 0 0 0 0-1.5h-3Z",clipRule:"evenodd"},child:[]}]})(e)}function Rc(e){return $e({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{d:"M1.5 8.67v8.58a3 3 0 0 0 3 3h15a3 3 0 0 0 3-3V8.67l-8.928 5.493a3 3 0 0 1-3.144 0L1.5 8.67Z"},child:[]},{tag:"path",attr:{d:"M22.5 6.908V6.75a3 3 0 0 0-3-3h-15a3 3 0 0 0-3 3v.158l9.714 5.978a1.5 1.5 0 0 0 1.572 0L22.5 6.908Z"},child:[]}]})(e)}function Lc(e){return $e({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12ZM12 8.25a.75.75 0 0 1 .75.75v3.75a.75.75 0 0 1-1.5 0V9a.75.75 0 0 1 .75-.75Zm0 8.25a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z",clipRule:"evenodd"},child:[]}]})(e)}function _c(e){return $e({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M3.792 2.938A49.069 49.069 0 0 1 12 2.25c2.797 0 5.54.236 8.209.688a1.857 1.857 0 0 1 1.541 1.836v1.044a3 3 0 0 1-.879 2.121l-6.182 6.182a1.5 1.5 0 0 0-.439 1.061v2.927a3 3 0 0 1-1.658 2.684l-1.757.878A.75.75 0 0 1 9.75 21v-5.818a1.5 1.5 0 0 0-.44-1.06L3.13 7.938a3 3 0 0 1-.879-2.121V4.774c0-.897.64-1.683 1.542-1.836Z",clipRule:"evenodd"},child:[]}]})(e)}function Dc(e){return $e({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{d:"m11.645 20.91-.007-.003-.022-.012a15.247 15.247 0 0 1-.383-.218 25.18 25.18 0 0 1-4.244-3.17C4.688 15.36 2.25 12.174 2.25 8.25 2.25 5.322 4.714 3 7.688 3A5.5 5.5 0 0 1 12 5.052 5.5 5.5 0 0 1 16.313 3c2.973 0 5.437 2.322 5.437 5.25 0 3.925-2.438 7.111-4.739 9.256a25.175 25.175 0 0 1-4.244 3.17 15.247 15.247 0 0 1-.383.219l-.022.012-.007.004-.003.001a.752.752 0 0 1-.704 0l-.003-.001Z"},child:[]}]})(e)}function Bc(e){return $e({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M2.625 6.75a1.125 1.125 0 1 1 2.25 0 1.125 1.125 0 0 1-2.25 0Zm4.875 0A.75.75 0 0 1 8.25 6h12a.75.75 0 0 1 0 1.5h-12a.75.75 0 0 1-.75-.75ZM2.625 12a1.125 1.125 0 1 1 2.25 0 1.125 1.125 0 0 1-2.25 0ZM7.5 12a.75.75 0 0 1 .75-.75h12a.75.75 0 0 1 0 1.5h-12A.75.75 0 0 1 7.5 12Zm-4.875 5.25a1.125 1.125 0 1 1 2.25 0 1.125 1.125 0 0 1-2.25 0Zm4.875 0a.75.75 0 0 1 .75-.75h12a.75.75 0 0 1 0 1.5h-12a.75.75 0 0 1-.75-.75Z",clipRule:"evenodd"},child:[]}]})(e)}function zc(e){return $e({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M4.25 12a.75.75 0 0 1 .75-.75h14a.75.75 0 0 1 0 1.5H5a.75.75 0 0 1-.75-.75Z",clipRule:"evenodd"},child:[]}]})(e)}function Fc(e){return $e({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M1.5 4.5a3 3 0 0 1 3-3h1.372c.86 0 1.61.586 1.819 1.42l1.105 4.423a1.875 1.875 0 0 1-.694 1.955l-1.293.97c-.135.101-.164.249-.126.352a11.285 11.285 0 0 0 6.697 6.697c.103.038.25.009.352-.126l.97-1.293a1.875 1.875 0 0 1 1.955-.694l4.423 1.105c.834.209 1.42.959 1.42 1.82V19.5a3 3 0 0 1-3 3h-2.25C8.552 22.5 1.5 15.448 1.5 6.75V4.5Z",clipRule:"evenodd"},child:[]}]})(e)}function qc(e){return $e({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M12 3.75a.75.75 0 0 1 .75.75v6.75h6.75a.75.75 0 0 1 0 1.5h-6.75v6.75a.75.75 0 0 1-1.5 0v-6.75H4.5a.75.75 0 0 1 0-1.5h6.75V4.5a.75.75 0 0 1 .75-.75Z",clipRule:"evenodd"},child:[]}]})(e)}function Hc(e){return $e({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M10.788 3.21c.448-1.077 1.976-1.077 2.424 0l2.082 5.006 5.404.434c1.164.093 1.636 1.545.749 2.305l-4.117 3.527 1.257 5.273c.271 1.136-.964 2.033-1.96 1.425L12 18.354 7.373 21.18c-.996.608-2.231-.29-1.96-1.425l1.257-5.273-4.117-3.527c-.887-.76-.415-2.212.749-2.305l5.404-.434 2.082-5.005Z",clipRule:"evenodd"},child:[]}]})(e)}function Uc(e){return $e({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M16.5 4.478v.227a48.816 48.816 0 0 1 3.878.512.75.75 0 1 1-.256 1.478l-.209-.035-1.005 13.07a3 3 0 0 1-2.991 2.77H8.084a3 3 0 0 1-2.991-2.77L4.087 6.66l-.209.035a.75.75 0 0 1-.256-1.478A48.567 48.567 0 0 1 7.5 4.705v-.227c0-1.564 1.213-2.9 2.816-2.951a52.662 52.662 0 0 1 3.369 0c1.603.051 2.815 1.387 2.815 2.951Zm-6.136-1.452a51.196 51.196 0 0 1 3.273 0C14.39 3.05 15 3.684 15 4.478v.113a49.488 49.488 0 0 0-6 0v-.113c0-.794.609-1.428 1.364-1.452Zm-.355 5.945a.75.75 0 1 0-1.5.058l.347 9a.75.75 0 1 0 1.499-.058l-.346-9Zm5.48.058a.75.75 0 1 0-1.498-.058l-.347 9a.75.75 0 0 0 1.5.058l.345-9Z",clipRule:"evenodd"},child:[]}]})(e)}function Wc(e){return $e({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M7.5 6a4.5 4.5 0 1 1 9 0 4.5 4.5 0 0 1-9 0ZM3.751 20.105a8.25 8.25 0 0 1 16.498 0 .75.75 0 0 1-.437.695A18.683 18.683 0 0 1 12 22.5c-2.786 0-5.433-.608-7.812-1.7a.75.75 0 0 1-.437-.695Z",clipRule:"evenodd"},child:[]}]})(e)}function Vc(e){return $e({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M5.47 5.47a.75.75 0 0 1 1.06 0L12 10.94l5.47-5.47a.75.75 0 1 1 1.06 1.06L13.06 12l5.47 5.47a.75.75 0 1 1-1.06 1.06L12 13.06l-5.47 5.47a.75.75 0 0 1-1.06-1.06L10.94 12 5.47 6.53a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"},child:[]}]})(e)}function Gc(e){return $e({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 8.25c0-2.485-2.099-4.5-4.688-4.5-1.935 0-3.597 1.126-4.312 2.733-.715-1.607-2.377-2.733-4.313-2.733C5.1 3.75 3 5.765 3 8.25c0 7.22 9 12 9 12s9-4.78 9-12Z"},child:[]}]})(e)}function Kc(e){return $e({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M10.868 2.884c-.321-.772-1.415-.772-1.736 0l-1.83 4.401-4.753.381c-.833.067-1.171 1.107-.536 1.651l3.62 3.102-1.106 4.637c-.194.813.691 1.456 1.405 1.02L10 15.591l4.069 2.485c.713.436 1.598-.207 1.404-1.02l-1.106-4.637 3.62-3.102c.635-.544.297-1.584-.536-1.65l-4.752-.382-1.831-4.401Z",clipRule:"evenodd"},child:[]}]})(e)}function Qc(){const{t:e}=rt(),[t,r]=(0,n.useState)(!1);return(0,nt.jsxs)(nt.Fragment,{children:[(0,nt.jsx)("button",{onClick:()=>r(!0),className:"hidden max-md:block",children:(0,nt.jsx)(Te,{className:"w-5 h-5 hover:text-blue-500"})}),(0,nt.jsxs)(Ms,{className:"p-0 z-50",open:t,onClose:()=>r(!1),children:[(0,nt.jsx)(Ms.Header,{style:{maxHeight:"48px",paddingInline:"16px",paddingTop:"14px",paddingBottom:"10px"},titleIcon:()=>(0,nt.jsx)("p",{className:"text-black",children:"Menu"})}),(0,nt.jsx)(Ms.Items,{children:(0,nt.jsx)("div",{className:"border-t p-4",children:(0,nt.jsx)("ul",{className:"flex flex-col gap-4",children:[{name:"home",path:"/"},{name:"shop",path:"/shop"},{name:"about",path:"/about-us"},{name:"Contact",path:"/contact-us"}].map(((t,r)=>(0,nt.jsx)("li",{children:(0,nt.jsx)("a",{className:"px-0 py-1 text-black hover:text-blue-600",href:t.path,children:e(t.name)})},r)))})})})]})]})}function Yc(e,t){return function(){return e.apply(t,arguments)}}Ec.displayName="ToggleSwitch";const{toString:Zc}=Object.prototype,{getPrototypeOf:Jc}=Object,Xc=(eu=Object.create(null),e=>{const t=Zc.call(e);return eu[t]||(eu[t]=t.slice(8,-1).toLowerCase())});var eu;const tu=e=>(e=e.toLowerCase(),t=>Xc(t)===e),ru=e=>t=>typeof t===e,{isArray:nu}=Array,ou=ru("undefined");const au=tu("ArrayBuffer");const iu=ru("string"),su=ru("function"),lu=ru("number"),cu=e=>null!==e&&"object"===typeof e,uu=e=>{if("object"!==Xc(e))return!1;const t=Jc(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},du=tu("Date"),fu=tu("File"),pu=tu("Blob"),hu=tu("FileList"),mu=tu("URLSearchParams"),[gu,bu,yu,xu]=["ReadableStream","Request","Response","Headers"].map(tu);function vu(e,t){let r,n,{allOwnKeys:o=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),nu(e))for(r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else{const n=o?Object.getOwnPropertyNames(e):Object.keys(e),a=n.length;let i;for(r=0;r<a;r++)i=n[r],t.call(null,e[i],i,e)}}function wu(e,t){t=t.toLowerCase();const r=Object.keys(e);let n,o=r.length;for(;o-- >0;)if(n=r[o],t===n.toLowerCase())return n;return null}const ku="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global,ju=e=>!ou(e)&&e!==ku;const Nu=(Cu="undefined"!==typeof Uint8Array&&Jc(Uint8Array),e=>Cu&&e instanceof Cu);var Cu;const Su=tu("HTMLFormElement"),Eu=(e=>{let{hasOwnProperty:t}=e;return(e,r)=>t.call(e,r)})(Object.prototype),Au=tu("RegExp"),Ou=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};vu(r,((r,o)=>{let a;!1!==(a=t(r,o,e))&&(n[o]=a||r)})),Object.defineProperties(e,n)},$u="abcdefghijklmnopqrstuvwxyz",Pu="0123456789",Tu={DIGIT:Pu,ALPHA:$u,ALPHA_DIGIT:$u+$u.toUpperCase()+Pu};const Iu=tu("AsyncFunction"),Mu=(Ru="function"===typeof setImmediate,Lu=su(ku.postMessage),Ru?setImmediate:Lu?((e,t)=>(ku.addEventListener("message",(r=>{let{source:n,data:o}=r;n===ku&&o===e&&t.length&&t.shift()()}),!1),r=>{t.push(r),ku.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e));var Ru,Lu;const _u="undefined"!==typeof queueMicrotask?queueMicrotask.bind(ku):"undefined"!==typeof process&&process.nextTick||Mu,Du={isArray:nu,isArrayBuffer:au,isBuffer:function(e){return null!==e&&!ou(e)&&null!==e.constructor&&!ou(e.constructor)&&su(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"===typeof FormData&&e instanceof FormData||su(e.append)&&("formdata"===(t=Xc(e))||"object"===t&&su(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&au(e.buffer),t},isString:iu,isNumber:lu,isBoolean:e=>!0===e||!1===e,isObject:cu,isPlainObject:uu,isReadableStream:gu,isRequest:bu,isResponse:yu,isHeaders:xu,isUndefined:ou,isDate:du,isFile:fu,isBlob:pu,isRegExp:Au,isFunction:su,isStream:e=>cu(e)&&su(e.pipe),isURLSearchParams:mu,isTypedArray:Nu,isFileList:hu,forEach:vu,merge:function e(){const{caseless:t}=ju(this)&&this||{},r={},n=(n,o)=>{const a=t&&wu(r,o)||o;uu(r[a])&&uu(n)?r[a]=e(r[a],n):uu(n)?r[a]=e({},n):nu(n)?r[a]=n.slice():r[a]=n};for(let o=0,a=arguments.length;o<a;o++)arguments[o]&&vu(arguments[o],n);return r},extend:function(e,t,r){let{allOwnKeys:n}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return vu(t,((t,n)=>{r&&su(t)?e[n]=Yc(t,r):e[n]=t}),{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),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let o,a,i;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)i=o[a],n&&!n(i,e,t)||s[i]||(t[i]=e[i],s[i]=!0);e=!1!==r&&Jc(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:Xc,kindOfTest:tu,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(nu(e))return e;let t=e.length;if(!lu(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[Symbol.iterator]).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:Su,hasOwnProperty:Eu,hasOwnProp:Eu,reduceDescriptors:Ou,freezeMethods:e=>{Ou(e,((t,r)=>{if(su(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];su(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 nu(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:wu,global:ku,isContextDefined:ju,ALPHABET:Tu,generateString:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Tu.ALPHA_DIGIT,r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r},isSpecCompliantForm:function(e){return!!(e&&su(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(cu(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[n]=e;const o=nu(e)?[]:{};return vu(e,((e,t)=>{const a=r(e,n+1);!ou(a)&&(o[t]=a)})),t[n]=void 0,o}}return e};return r(e,0)},isAsyncFn:Iu,isThenable:e=>e&&(cu(e)||su(e))&&su(e.then)&&su(e.catch),setImmediate:Mu,asap:_u};function Bu(e,t,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}Du.inherits(Bu,Error,{toJSON:function(){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:Du.toJSONObject(this.config),code:this.code,status:this.status}}});const zu=Bu.prototype,Fu={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{Fu[e]={value:e}})),Object.defineProperties(Bu,Fu),Object.defineProperty(zu,"isAxiosError",{value:!0}),Bu.from=(e,t,r,n,o,a)=>{const i=Object.create(zu);return Du.toFlatObject(e,i,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),Bu.call(i,e.message,t,r,n,o),i.cause=e,i.name=e.name,a&&Object.assign(i,a),i};const qu=Bu;function Hu(e){return Du.isPlainObject(e)||Du.isArray(e)}function Uu(e){return Du.endsWith(e,"[]")?e.slice(0,-2):e}function Wu(e,t,r){return e?e.concat(t).map((function(e,t){return e=Uu(e),!r&&t?"["+e+"]":e})).join(r?".":""):t}const Vu=Du.toFlatObject(Du,{},null,(function(e){return/^is[A-Z]/.test(e)}));const Gu=function(e,t,r){if(!Du.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=Du.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Du.isUndefined(t[e])}))).metaTokens,o=r.visitor||c,a=r.dots,i=r.indexes,s=(r.Blob||"undefined"!==typeof Blob&&Blob)&&Du.isSpecCompliantForm(t);if(!Du.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(Du.isDate(e))return e.toISOString();if(!s&&Du.isBlob(e))throw new qu("Blob is not supported. Use a Buffer instead.");return Du.isArrayBuffer(e)||Du.isTypedArray(e)?s&&"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,r,o){let s=e;if(e&&!o&&"object"===typeof e)if(Du.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(Du.isArray(e)&&function(e){return Du.isArray(e)&&!e.some(Hu)}(e)||(Du.isFileList(e)||Du.endsWith(r,"[]"))&&(s=Du.toArray(e)))return r=Uu(r),s.forEach((function(e,n){!Du.isUndefined(e)&&null!==e&&t.append(!0===i?Wu([r],n,a):null===i?r:r+"[]",l(e))})),!1;return!!Hu(e)||(t.append(Wu(o,r,a),l(e)),!1)}const u=[],d=Object.assign(Vu,{defaultVisitor:c,convertValue:l,isVisitable:Hu});if(!Du.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!Du.isUndefined(r)){if(-1!==u.indexOf(r))throw Error("Circular reference detected in "+n.join("."));u.push(r),Du.forEach(r,(function(r,a){!0===(!(Du.isUndefined(r)||null===r)&&o.call(t,r,Du.isString(a)?a.trim():a,n,d))&&e(r,n?n.concat(a):[a])})),u.pop()}}(e),t};function Ku(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Qu(e,t){this._pairs=[],e&&Gu(e,this,t)}const Yu=Qu.prototype;Yu.append=function(e,t){this._pairs.push([e,t])},Yu.toString=function(e){const t=e?function(t){return e.call(this,t,Ku)}:Ku;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const Zu=Qu;function Ju(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Xu(e,t,r){if(!t)return e;const n=r&&r.encode||Ju,o=r&&r.serialize;let a;if(a=o?o(t,r):Du.isURLSearchParams(t)?t.toString():new Zu(t,r).toString(n),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}const ed=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Du.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},td={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},rd={isBrowser:!0,classes:{URLSearchParams:"undefined"!==typeof URLSearchParams?URLSearchParams:Zu,FormData:"undefined"!==typeof FormData?FormData:null,Blob:"undefined"!==typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},nd="undefined"!==typeof window&&"undefined"!==typeof document,od="object"===typeof navigator&&navigator||void 0,ad=nd&&(!od||["ReactNative","NativeScript","NS"].indexOf(od.product)<0),id="undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts,sd=nd&&window.location.href||"http://localhost",ld={...e,...rd};const cd=function(e){function t(e,r,n,o){let a=e[o++];if("__proto__"===a)return!0;const i=Number.isFinite(+a),s=o>=e.length;if(a=!a&&Du.isArray(n)?n.length:a,s)return Du.hasOwnProp(n,a)?n[a]=[n[a],r]:n[a]=r,!i;n[a]&&Du.isObject(n[a])||(n[a]=[]);return t(e,r,n[a],o)&&Du.isArray(n[a])&&(n[a]=function(e){const t={},r=Object.keys(e);let n;const o=r.length;let a;for(n=0;n<o;n++)a=r[n],t[a]=e[a];return t}(n[a])),!i}if(Du.isFormData(e)&&Du.isFunction(e.entries)){const r={};return Du.forEachEntry(e,((e,n)=>{t(function(e){return Du.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),n,r,0)})),r}return null};const ud={transitional:td,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,o=Du.isObject(e);o&&Du.isHTMLForm(e)&&(e=new FormData(e));if(Du.isFormData(e))return n?JSON.stringify(cd(e)):e;if(Du.isArrayBuffer(e)||Du.isBuffer(e)||Du.isStream(e)||Du.isFile(e)||Du.isBlob(e)||Du.isReadableStream(e))return e;if(Du.isArrayBufferView(e))return e.buffer;if(Du.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Gu(e,new ld.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,n){return ld.isNode&&Du.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((a=Du.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Gu(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||n?(t.setContentType("application/json",!1),function(e,t,r){if(Du.isString(e))try{return(t||JSON.parse)(e),Du.trim(e)}catch(n){if("SyntaxError"!==n.name)throw n}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ud.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(Du.isResponse(e)||Du.isReadableStream(e))return e;if(e&&Du.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(o){if(r){if("SyntaxError"===o.name)throw qu.from(o,qu.ERR_BAD_RESPONSE,this,null,this.response);throw o}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ld.classes.FormData,Blob:ld.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Du.forEach(["delete","get","head","post","put","patch"],(e=>{ud.headers[e]={}}));const dd=ud,fd=Du.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"]),pd=Symbol("internals");function hd(e){return e&&String(e).trim().toLowerCase()}function md(e){return!1===e||null==e?e:Du.isArray(e)?e.map(md):String(e)}function gd(e,t,r,n,o){return Du.isFunction(n)?n.call(this,t,r):(o&&(t=r),Du.isString(t)?Du.isString(n)?-1!==t.indexOf(n):Du.isRegExp(n)?n.test(t):void 0:void 0)}class bd{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function o(e,t,r){const o=hd(t);if(!o)throw new Error("header name must be a non-empty string");const a=Du.findKey(n,o);(!a||void 0===n[a]||!0===r||void 0===r&&!1!==n[a])&&(n[a||t]=md(e))}const a=(e,t)=>Du.forEach(e,((e,r)=>o(e,r,t)));if(Du.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(Du.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))a((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(),!r||t[r]&&fd[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)})),t})(e),t);else if(Du.isHeaders(e))for(const[i,s]of e.entries())o(s,i,r);else null!=e&&o(t,e,r);return this}get(e,t){if(e=hd(e)){const r=Du.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(Du.isFunction(t))return t.call(this,e,r);if(Du.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=hd(e)){const r=Du.findKey(this,e);return!(!r||void 0===this[r]||t&&!gd(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function o(e){if(e=hd(e)){const o=Du.findKey(r,e);!o||t&&!gd(0,r[o],o,t)||(delete r[o],n=!0)}}return Du.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&&!gd(0,this[o],o,e,!0)||(delete this[o],n=!0)}return n}normalize(e){const t=this,r={};return Du.forEach(this,((n,o)=>{const a=Du.findKey(r,o);if(a)return t[a]=md(n),void delete t[o];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,r)=>t.toUpperCase()+r))}(o):String(o).trim();i!==o&&delete t[o],t[i]=md(n),r[i]=!0})),this}concat(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.constructor.concat(this,...t)}toJSON(e){const t=Object.create(null);return Du.forEach(this,((r,n)=>{null!=r&&!1!==r&&(t[n]=e&&Du.isArray(r)?r.join(", "):r)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((e=>{let[t,r]=e;return t+": "+r})).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e){const t=new this(e);for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return n.forEach((e=>t.set(e))),t}static accessor(e){const t=(this[pd]=this[pd]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=hd(e);t[n]||(!function(e,t){const r=Du.toCamelCase(" "+t);["get","set","has"].forEach((n=>{Object.defineProperty(e,n+r,{value:function(e,r,o){return this[n].call(this,t,e,r,o)},configurable:!0})}))}(r,e),t[n]=!0)}return Du.isArray(e)?e.forEach(n):n(e),this}}bd.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Du.reduceDescriptors(bd.prototype,((e,t)=>{let{value:r}=e,n=t[0].toUpperCase()+t.slice(1);return{get:()=>r,set(e){this[n]=e}}})),Du.freezeMethods(bd);const yd=bd;function xd(e,t){const r=this||dd,n=t||r,o=yd.from(n.headers);let a=n.data;return Du.forEach(e,(function(e){a=e.call(r,a,o.normalize(),t?t.status:void 0)})),o.normalize(),a}function vd(e){return!(!e||!e.__CANCEL__)}function wd(e,t,r){qu.call(this,null==e?"canceled":e,qu.ERR_CANCELED,t,r),this.name="CanceledError"}Du.inherits(wd,qu,{__CANCEL__:!0});const kd=wd;function jd(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new qu("Request failed with status code "+r.status,[qu.ERR_BAD_REQUEST,qu.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}const Nd=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o,a=0,i=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=n[i];o||(o=l),r[a]=s,n[a]=l;let u=i,d=0;for(;u!==a;)d+=r[u++],u%=e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),l-o<t)return;const f=c&&l-c;return f?Math.round(1e3*d/f):void 0}};const Cd=function(e,t){let r,n,o=0,a=1e3/t;const i=function(t){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();o=a,r=null,n&&(clearTimeout(n),n=null),e.apply(null,t)};return[function(){const e=Date.now(),t=e-o;for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];t>=a?i(l,e):(r=l,n||(n=setTimeout((()=>{n=null,i(r)}),a-t)))},()=>r&&i(r)]},Sd=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,n=0;const o=Nd(50,250);return Cd((r=>{const a=r.loaded,i=r.lengthComputable?r.total:void 0,s=a-n,l=o(s);n=a;e({loaded:a,total:i,progress:i?a/i:void 0,bytes:s,rate:l||void 0,estimated:l&&i&&a<=i?(i-a)/l:void 0,event:r,lengthComputable:null!=i,[t?"download":"upload"]:!0})}),r)},Ed=(e,t)=>{const r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Ad=e=>function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Du.asap((()=>e(...r)))},Od=ld.hasStandardBrowserEnv?function(){const e=ld.navigator&&/(msie|trident)/i.test(ld.navigator.userAgent),t=document.createElement("a");let r;function n(r){let n=r;return e&&(t.setAttribute("href",n),n=t.href),t.setAttribute("href",n),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return r=n(window.location.href),function(e){const t=Du.isString(e)?n(e):e;return t.protocol===r.protocol&&t.host===r.host}}():function(){return!0},$d=ld.hasStandardBrowserEnv?{write(e,t,r,n,o,a){const i=[e+"="+encodeURIComponent(t)];Du.isNumber(r)&&i.push("expires="+new Date(r).toGMTString()),Du.isString(n)&&i.push("path="+n),Du.isString(o)&&i.push("domain="+o),!0===a&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Pd(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Td=e=>e instanceof yd?{...e}:e;function Id(e,t){t=t||{};const r={};function n(e,t,r){return Du.isPlainObject(e)&&Du.isPlainObject(t)?Du.merge.call({caseless:r},e,t):Du.isPlainObject(t)?Du.merge({},t):Du.isArray(t)?t.slice():t}function o(e,t,r){return Du.isUndefined(t)?Du.isUndefined(e)?void 0:n(void 0,e,r):n(e,t,r)}function a(e,t){if(!Du.isUndefined(t))return n(void 0,t)}function i(e,t){return Du.isUndefined(t)?Du.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function s(r,o,a){return a in t?n(r,o):a in e?n(void 0,r):void 0}const l={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:(e,t)=>o(Td(e),Td(t),!0)};return Du.forEach(Object.keys(Object.assign({},e,t)),(function(n){const a=l[n]||o,i=a(e[n],t[n],n);Du.isUndefined(i)&&a!==s||(r[n]=i)})),r}const Md=e=>{const t=Id({},e);let r,{data:n,withXSRFToken:o,xsrfHeaderName:a,xsrfCookieName:i,headers:s,auth:l}=t;if(t.headers=s=yd.from(s),t.url=Xu(Pd(t.baseURL,t.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),Du.isFormData(n))if(ld.hasStandardBrowserEnv||ld.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(r=s.getContentType())){const[e,...t]=r?r.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(ld.hasStandardBrowserEnv&&(o&&Du.isFunction(o)&&(o=o(t)),o||!1!==o&&Od(t.url))){const e=a&&i&&$d.read(i);e&&s.set(a,e)}return t},Rd="undefined"!==typeof XMLHttpRequest&&function(e){return new Promise((function(t,r){const n=Md(e);let o=n.data;const a=yd.from(n.headers).normalize();let i,s,l,c,u,{responseType:d,onUploadProgress:f,onDownloadProgress:p}=n;function h(){c&&c(),u&&u(),n.cancelToken&&n.cancelToken.unsubscribe(i),n.signal&&n.signal.removeEventListener("abort",i)}let m=new XMLHttpRequest;function g(){if(!m)return;const n=yd.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());jd((function(e){t(e),h()}),(function(e){r(e),h()}),{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:n,config:e,request:m}),m=null}m.open(n.method.toUpperCase(),n.url,!0),m.timeout=n.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(r(new qu("Request aborted",qu.ECONNABORTED,e,m)),m=null)},m.onerror=function(){r(new qu("Network Error",qu.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const o=n.transitional||td;n.timeoutErrorMessage&&(t=n.timeoutErrorMessage),r(new qu(t,o.clarifyTimeoutError?qu.ETIMEDOUT:qu.ECONNABORTED,e,m)),m=null},void 0===o&&a.setContentType(null),"setRequestHeader"in m&&Du.forEach(a.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),Du.isUndefined(n.withCredentials)||(m.withCredentials=!!n.withCredentials),d&&"json"!==d&&(m.responseType=n.responseType),p&&([l,u]=Sd(p,!0),m.addEventListener("progress",l)),f&&m.upload&&([s,c]=Sd(f),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",c)),(n.cancelToken||n.signal)&&(i=t=>{m&&(r(!t||t.type?new kd(null,e,m):t),m.abort(),m=null)},n.cancelToken&&n.cancelToken.subscribe(i),n.signal&&(n.signal.aborted?i():n.signal.addEventListener("abort",i)));const b=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(n.url);b&&-1===ld.protocols.indexOf(b)?r(new qu("Unsupported protocol "+b+":",qu.ERR_BAD_REQUEST,e)):m.send(o||null)}))},Ld=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,n=new AbortController;const o=function(e){if(!r){r=!0,i();const t=e instanceof Error?e:this.reason;n.abort(t instanceof qu?t:new kd(t instanceof Error?t.message:t))}};let a=t&&setTimeout((()=>{a=null,o(new qu(`timeout ${t} of ms exceeded`,qu.ETIMEDOUT))}),t);const i=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)})),e=null)};e.forEach((e=>e.addEventListener("abort",o)));const{signal:s}=n;return s.unsubscribe=()=>Du.asap(i),s}},_d=function*(e,t){let r=e.byteLength;if(!t||r<t)return void(yield e);let n,o=0;for(;o<r;)n=o+t,yield e.slice(o,n),o=n},Dd=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()}},Bd=(e,t,r,n)=>{const o=async function*(e,t){for await(const r of Dd(e))yield*_d(r,t)}(e,t);let a,i=0,s=e=>{a||(a=!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 a=n.byteLength;if(r){let e=i+=a;r(e)}e.enqueue(new Uint8Array(n))}catch(t){throw s(t),t}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},zd="function"===typeof fetch&&"function"===typeof Request&&"function"===typeof Response,Fd=zd&&"function"===typeof ReadableStream,qd=zd&&("function"===typeof TextEncoder?(Hd=new TextEncoder,e=>Hd.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var Hd;const Ud=function(e){try{for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return!!e(...r)}catch(o){return!1}},Wd=Fd&&Ud((()=>{let e=!1;const t=new Request(ld.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),Vd=Fd&&Ud((()=>Du.isReadableStream(new Response("").body))),Gd={stream:Vd&&(e=>e.body)};var Kd;zd&&(Kd=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Gd[e]&&(Gd[e]=Du.isFunction(Kd[e])?t=>t[e]():(t,r)=>{throw new qu(`Response type '${e}' is not supported`,qu.ERR_NOT_SUPPORT,r)})})));const Qd=async(e,t)=>{const r=Du.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(Du.isBlob(e))return e.size;if(Du.isSpecCompliantForm(e)){const t=new Request(ld.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Du.isArrayBufferView(e)||Du.isArrayBuffer(e)?e.byteLength:(Du.isURLSearchParams(e)&&(e+=""),Du.isString(e)?(await qd(e)).byteLength:void 0)})(t):r},Yd=zd&&(async e=>{let{url:t,method:r,data:n,signal:o,cancelToken:a,timeout:i,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:f}=Md(e);c=c?(c+"").toLowerCase():"text";let p,h=Ld([o,a&&a.toAbortSignal()],i);const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let g;try{if(l&&Wd&&"get"!==r&&"head"!==r&&0!==(g=await Qd(u,n))){let e,r=new Request(t,{method:"POST",body:n,duplex:"half"});if(Du.isFormData(n)&&(e=r.headers.get("content-type"))&&u.setContentType(e),r.body){const[e,t]=Ed(g,Sd(Ad(l)));n=Bd(r.body,65536,e,t)}}Du.isString(d)||(d=d?"include":"omit");const o="credentials"in Request.prototype;p=new Request(t,{...f,signal:h,method:r.toUpperCase(),headers:u.normalize().toJSON(),body:n,duplex:"half",credentials:o?d:void 0});let a=await fetch(p);const i=Vd&&("stream"===c||"response"===c);if(Vd&&(s||i&&m)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=a[t]}));const t=Du.toFiniteNumber(a.headers.get("content-length")),[r,n]=s&&Ed(t,Sd(Ad(s),!0))||[];a=new Response(Bd(a.body,65536,r,(()=>{n&&n(),m&&m()})),e)}c=c||"text";let b=await Gd[Du.findKey(Gd,c)||"text"](a,e);return!i&&m&&m(),await new Promise(((t,r)=>{jd(t,r,{data:b,headers:yd.from(a.headers),status:a.status,statusText:a.statusText,config:e,request:p})}))}catch(b){if(m&&m(),b&&"TypeError"===b.name&&/fetch/i.test(b.message))throw Object.assign(new qu("Network Error",qu.ERR_NETWORK,e,p),{cause:b.cause||b});throw qu.from(b,b&&b.code,e,p)}}),Zd={http:null,xhr:Rd,fetch:Yd};Du.forEach(Zd,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(r){}Object.defineProperty(e,"adapterName",{value:t})}}));const Jd=e=>`- ${e}`,Xd=e=>Du.isFunction(e)||null===e||!1===e,ef=e=>{e=Du.isArray(e)?e:[e];const{length:t}=e;let r,n;const o={};for(let a=0;a<t;a++){let t;if(r=e[a],n=r,!Xd(r)&&(n=Zd[(t=String(r)).toLowerCase()],void 0===n))throw new qu(`Unknown adapter '${t}'`);if(n)break;o[t||"#"+a]=n}if(!n){const e=Object.entries(o).map((e=>{let[t,r]=e;return`adapter ${t} `+(!1===r?"is not supported by the environment":"is not available in the build")}));let r=t?e.length>1?"since :\n"+e.map(Jd).join("\n"):" "+Jd(e[0]):"as no adapter specified";throw new qu("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return n};function tf(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new kd(null,e)}function rf(e){tf(e),e.headers=yd.from(e.headers),e.data=xd.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return ef(e.adapter||dd.adapter)(e).then((function(t){return tf(e),t.data=xd.call(e,e.transformResponse,t),t.headers=yd.from(t.headers),t}),(function(t){return vd(t)||(tf(e),t&&t.response&&(t.response.data=xd.call(e,e.transformResponse,t.response),t.response.headers=yd.from(t.response.headers))),Promise.reject(t)}))}const nf="1.7.7",of={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{of[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));const af={};of.transitional=function(e,t,r){function n(e,t){return"[Axios v1.7.7] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,o,a)=>{if(!1===e)throw new qu(n(o," has been removed"+(t?" in "+t:"")),qu.ERR_DEPRECATED);return t&&!af[o]&&(af[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,a)}};const sf={assertOptions:function(e,t,r){if("object"!==typeof e)throw new qu("options must be an object",qu.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const a=n[o],i=t[a];if(i){const t=e[a],r=void 0===t||i(t,a,e);if(!0!==r)throw new qu("option "+a+" must be "+r,qu.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new qu("Unknown option "+a,qu.ERR_BAD_OPTION)}},validators:of},lf=sf.validators;class cf{constructor(e){this.defaults=e,this.interceptors={request:new ed,response:new ed}}async request(e,t){try{return await this._request(e,t)}catch(r){if(r instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{r.stack?t&&!String(r.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(r.stack+="\n"+t):r.stack=t}catch(n){}}throw r}}_request(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{},t=Id(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:o}=t;void 0!==r&&sf.assertOptions(r,{silentJSONParsing:lf.transitional(lf.boolean),forcedJSONParsing:lf.transitional(lf.boolean),clarifyTimeoutError:lf.transitional(lf.boolean)},!1),null!=n&&(Du.isFunction(n)?t.paramsSerializer={serialize:n}:sf.assertOptions(n,{encode:lf.function,serialize:lf.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=o&&Du.merge(o.common,o[t.method]);o&&Du.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=yd.concat(a,o);const i=[];let s=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!s){const e=[rf.bind(this),void 0];for(e.unshift.apply(e,i),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=i.length;let f=t;for(d=0;d<u;){const e=i[d++],t=i[d++];try{f=e(f)}catch(p){t.call(this,p);break}}try{c=rf.call(this,f)}catch(p){return Promise.reject(p)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return Xu(Pd((e=Id(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}Du.forEach(["delete","get","head","options"],(function(e){cf.prototype[e]=function(t,r){return this.request(Id(r||{},{method:e,url:t,data:(r||{}).data}))}})),Du.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,o){return this.request(Id(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}cf.prototype[e]=t(),cf.prototype[e+"Form"]=t(!0)}));const uf=cf;class df{constructor(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const r=this;this.promise.then((e=>{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 kd(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;const t=new df((function(t){e=t}));return{token:t,cancel:e}}}const ff=df;const pf={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,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity: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};Object.entries(pf).forEach((e=>{let[t,r]=e;pf[r]=t}));const hf=pf;const mf=function e(t){const r=new uf(t),n=Yc(uf.prototype.request,r);return Du.extend(n,uf.prototype,r,{allOwnKeys:!0}),Du.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(Id(t,r))},n}(dd);mf.Axios=uf,mf.CanceledError=kd,mf.CancelToken=ff,mf.isCancel=vd,mf.VERSION=nf,mf.toFormData=Gu,mf.AxiosError=qu,mf.Cancel=mf.CanceledError,mf.all=function(e){return Promise.all(e)},mf.spread=function(e){return function(t){return e.apply(null,t)}},mf.isAxiosError=function(e){return Du.isObject(e)&&!0===e.isAxiosError},mf.mergeConfig=Id,mf.AxiosHeaders=yd,mf.formToJSON=e=>cd(Du.isHTMLForm(e)?new FormData(e):e),mf.getAdapter=ef,mf.HttpStatusCode=hf,mf.default=mf;const gf=mf,bf={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class yf{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||bf,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,r,n){return n&&!this.debug?null:("string"===typeof e[0]&&(e[0]=`${r}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new yf(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new yf(this.logger,e)}}var xf=new yf;class vf{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach((e=>{this.observers[e]||(this.observers[e]=new Map);const r=this.observers[e].get(t)||0;this.observers[e].set(t,r+1)})),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}emit(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(this.observers[e]){Array.from(this.observers[e].entries()).forEach((e=>{let[t,n]=e;for(let o=0;o<n;o++)t(...r)}))}if(this.observers["*"]){Array.from(this.observers["*"].entries()).forEach((t=>{let[n,o]=t;for(let a=0;a<o;a++)n.apply(n,[e,...r])}))}}}const wf=()=>{let e,t;const r=new Promise(((r,n)=>{e=r,t=n}));return r.resolve=e,r.reject=t,r},kf=e=>null==e?"":""+e,jf=/###/g,Nf=e=>e&&e.indexOf("###")>-1?e.replace(jf,"."):e,Cf=e=>!e||"string"===typeof e,Sf=(e,t,r)=>{const n="string"!==typeof t?t:t.split(".");let o=0;for(;o<n.length-1;){if(Cf(e))return{};const t=Nf(n[o]);!e[t]&&r&&(e[t]=new r),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++o}return Cf(e)?{}:{obj:e,k:Nf(n[o])}},Ef=(e,t,r)=>{const{obj:n,k:o}=Sf(e,t,Object);if(void 0!==n||1===t.length)return void(n[o]=r);let a=t[t.length-1],i=t.slice(0,t.length-1),s=Sf(e,i,Object);for(;void 0===s.obj&&i.length;)a=`${i[i.length-1]}.${a}`,i=i.slice(0,i.length-1),s=Sf(e,i,Object),s&&s.obj&&"undefined"!==typeof s.obj[`${s.k}.${a}`]&&(s.obj=void 0);s.obj[`${s.k}.${a}`]=r},Af=(e,t)=>{const{obj:r,k:n}=Sf(e,t);if(r)return r[n]},Of=(e,t,r)=>{for(const n in t)"__proto__"!==n&&"constructor"!==n&&(n in e?"string"===typeof e[n]||e[n]instanceof String||"string"===typeof t[n]||t[n]instanceof String?r&&(e[n]=t[n]):Of(e[n],t[n],r):e[n]=t[n]);return e},$f=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Pf={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const Tf=e=>"string"===typeof e?e.replace(/[&<>"'\/]/g,(e=>Pf[e])):e;const If=[" ",",","?","!",";"],Mf=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const r=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,r),this.regExpQueue.push(e),r}}(20),Rf=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];const n=t.split(r);let o=e;for(let a=0;a<n.length;){if(!o||"object"!==typeof o)return;let e,t="";for(let i=a;i<n.length;++i)if(i!==a&&(t+=r),t+=n[i],e=o[t],void 0!==e){if(["string","number","boolean"].indexOf(typeof e)>-1&&i<n.length-1)continue;a+=i-a+1;break}o=e}return o},Lf=e=>e&&e.indexOf("_")>0?e.replace("_","-"):e;class _f extends vf{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,a=void 0!==n.ignoreJSONStructure?n.ignoreJSONStructure:this.options.ignoreJSONStructure;let i;e.indexOf(".")>-1?i=e.split("."):(i=[e,t],r&&(Array.isArray(r)?i.push(...r):"string"===typeof r&&o?i.push(...r.split(o)):i.push(r)));const s=Af(this.data,i);return!s&&!t&&!r&&e.indexOf(".")>-1&&(e=i[0],t=i[1],r=i.slice(2).join(".")),s||!a||"string"!==typeof r?s:Rf(this.data&&this.data[e]&&this.data[e][t],r,o)}addResource(e,t,r,n){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1};const a=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator;let i=[e,t];r&&(i=i.concat(a?r.split(a):r)),e.indexOf(".")>-1&&(i=e.split("."),n=t,t=i[1]),this.addNamespaces(t),Ef(this.data,i,n),o.silent||this.emit("added",e,t,r,n)}addResources(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(const o in r)("string"===typeof r[o]||Array.isArray(r[o]))&&this.addResource(e,t,o,r[o],{silent:!0});n.silent||this.emit("added",e,t,r)}addResourceBundle(e,t,r,n,o){let a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},i=[e,t];e.indexOf(".")>-1&&(i=e.split("."),n=r,r=t,t=i[1]),this.addNamespaces(t);let s=Af(this.data,i)||{};a.skipCopy||(r=JSON.parse(JSON.stringify(r))),n?Of(s,r,o):s={...s,...r},Ef(this.data,i,s),a.silent||this.emit("added",e,t,r)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((e=>t[e]&&Object.keys(t[e]).length>0))}toJSON(){return this.data}}var Df={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,n,o){return e.forEach((e=>{this.processors[e]&&(t=this.processors[e].process(t,r,n,o))})),t}};const Bf={};class zf extends vf{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),((e,t,r)=>{e.forEach((e=>{t[e]&&(r[e]=t[e])}))})(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=xf.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(void 0===e||null===e)return!1;const r=this.resolve(e,t);return r&&void 0!==r.res}extractFromKey(e,t){let r=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===r&&(r=":");const n=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let o=t.ns||this.options.defaultNS||[];const a=r&&e.indexOf(r)>-1,i=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!((e,t,r)=>{t=t||"",r=r||"";const n=If.filter((e=>t.indexOf(e)<0&&r.indexOf(e)<0));if(0===n.length)return!0;const o=Mf.getRegExp(`(${n.map((e=>"?"===e?"\\?":e)).join("|")})`);let a=!o.test(e);if(!a){const t=e.indexOf(r);t>0&&!o.test(e.substring(0,t))&&(a=!0)}return a})(e,r,n);if(a&&!i){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:o};const a=e.split(r);(r!==n||r===n&&this.options.ns.indexOf(a[0])>-1)&&(o=a.shift()),e=a.join(n)}return"string"===typeof o&&(o=[o]),{key:e,namespaces:o}}translate(e,t,r){if("object"!==typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"===typeof t&&(t={...t}),t||(t={}),void 0===e||null===e)return"";Array.isArray(e)||(e=[String(e)]);const n=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,o=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:a,namespaces:i}=this.extractFromKey(e[e.length-1],t),s=i[i.length-1],l=t.lng||this.language,c=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&"cimode"===l.toLowerCase()){if(c){const e=t.nsSeparator||this.options.nsSeparator;return n?{res:`${s}${e}${a}`,usedKey:a,exactUsedKey:a,usedLng:l,usedNS:s,usedParams:this.getUsedParamsDetails(t)}:`${s}${e}${a}`}return n?{res:a,usedKey:a,exactUsedKey:a,usedLng:l,usedNS:s,usedParams:this.getUsedParamsDetails(t)}:a}const u=this.resolve(e,t);let d=u&&u.res;const f=u&&u.usedKey||a,p=u&&u.exactUsedKey||a,h=Object.prototype.toString.apply(d),m=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,g=!this.i18nFormat||this.i18nFormat.handleAsObject;if(g&&d&&("string"!==typeof d&&"boolean"!==typeof d&&"number"!==typeof d)&&["[object Number]","[object Function]","[object RegExp]"].indexOf(h)<0&&("string"!==typeof m||!Array.isArray(d))){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,d,{...t,ns:i}):`key '${a} (${this.language})' returned an object instead of string.`;return n?(u.res=e,u.usedParams=this.getUsedParamsDetails(t),u):e}if(o){const e=Array.isArray(d),r=e?[]:{},n=e?p:f;for(const a in d)if(Object.prototype.hasOwnProperty.call(d,a)){const e=`${n}${o}${a}`;r[a]=this.translate(e,{...t,joinArrays:!1,ns:i}),r[a]===e&&(r[a]=d[a])}d=r}}else if(g&&"string"===typeof m&&Array.isArray(d))d=d.join(m),d&&(d=this.extendTranslation(d,e,t,r));else{let n=!1,i=!1;const c=void 0!==t.count&&"string"!==typeof t.count,f=zf.hasDefaultValue(t),p=c?this.pluralResolver.getSuffix(l,t.count,t):"",h=t.ordinal&&c?this.pluralResolver.getSuffix(l,t.count,{ordinal:!1}):"",m=c&&!t.ordinal&&0===t.count&&this.pluralResolver.shouldUseIntlApi(),g=m&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${p}`]||t[`defaultValue${h}`]||t.defaultValue;!this.isValidLookup(d)&&f&&(n=!0,d=g),this.isValidLookup(d)||(i=!0,d=a);const b=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&i?void 0:d,y=f&&g!==d&&this.options.updateMissing;if(i||n||y){if(this.logger.log(y?"updateKey":"missingKey",l,s,a,y?g:d),o){const e=this.resolve(a,{...t,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const r=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&r&&r[0])for(let t=0;t<r.length;t++)e.push(r[t]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(t.lng||this.language):e.push(t.lng||this.language);const n=(e,r,n)=>{const o=f&&n!==d?n:b;this.options.missingKeyHandler?this.options.missingKeyHandler(e,s,r,o,y,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,s,r,o,y,t),this.emit("missingKey",e,s,r,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&c?e.forEach((e=>{const r=this.pluralResolver.getSuffixes(e,t);m&&t[`defaultValue${this.options.pluralSeparator}zero`]&&r.indexOf(`${this.options.pluralSeparator}zero`)<0&&r.push(`${this.options.pluralSeparator}zero`),r.forEach((r=>{n([e],a+r,t[`defaultValue${r}`]||g)}))})):n(e,a,g))}d=this.extendTranslation(d,e,t,u,r),i&&d===a&&this.options.appendNamespaceToMissingKey&&(d=`${s}:${a}`),(i||n)&&this.options.parseMissingKeyHandler&&(d="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${s}:${a}`:a,n?d:void 0):this.options.parseMissingKeyHandler(d))}return n?(u.res=d,u.usedParams=this.getUsedParamsDetails(t),u):d}extendTranslation(e,t,r,n,o){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const i="string"===typeof e&&(r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let s;if(i){const t=e.match(this.interpolator.nestingRegexp);s=t&&t.length}let l=r.replace&&"string"!==typeof r.replace?r.replace:r;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),e=this.interpolator.interpolate(e,l,r.lng||this.language||n.usedLng,r),i){const t=e.match(this.interpolator.nestingRegexp);s<(t&&t.length)&&(r.nest=!1)}!r.lng&&"v1"!==this.options.compatibilityAPI&&n&&n.res&&(r.lng=this.language||n.usedLng),!1!==r.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return o&&o[0]===n[0]&&!r.context?(a.logger.warn(`It seems you are nesting recursively key: ${n[0]} in key: ${t[0]}`),null):a.translate(...n,t)}),r)),r.interpolation&&this.interpolator.reset()}const i=r.postProcess||this.options.postProcess,s="string"===typeof i?[i]:i;return void 0!==e&&null!==e&&s&&s.length&&!1!==r.applyPostProcessor&&(e=Df.handle(s,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...n,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),e}resolve(e){let t,r,n,o,a,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"===typeof e&&(e=[e]),e.forEach((e=>{if(this.isValidLookup(t))return;const s=this.extractFromKey(e,i),l=s.key;r=l;let c=s.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const u=void 0!==i.count&&"string"!==typeof i.count,d=u&&!i.ordinal&&0===i.count&&this.pluralResolver.shouldUseIntlApi(),f=void 0!==i.context&&("string"===typeof i.context||"number"===typeof i.context)&&""!==i.context,p=i.lngs?i.lngs:this.languageUtils.toResolveHierarchy(i.lng||this.language,i.fallbackLng);c.forEach((e=>{this.isValidLookup(t)||(a=e,!Bf[`${p[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(Bf[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${p.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach((r=>{if(this.isValidLookup(t))return;o=r;const a=[l];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(a,l,r,e,i);else{let e;u&&(e=this.pluralResolver.getSuffix(r,i.count,i));const t=`${this.options.pluralSeparator}zero`,n=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(a.push(l+e),i.ordinal&&0===e.indexOf(n)&&a.push(l+e.replace(n,this.options.pluralSeparator)),d&&a.push(l+t)),f){const r=`${l}${this.options.contextSeparator}${i.context}`;a.push(r),u&&(a.push(r+e),i.ordinal&&0===e.indexOf(n)&&a.push(r+e.replace(n,this.options.pluralSeparator)),d&&a.push(r+t))}}let s;for(;s=a.pop();)this.isValidLookup(t)||(n=s,t=this.getResource(r,e,s,i))})))}))})),{res:t,usedKey:r,exactUsedKey:n,usedLng:o,usedNS:a}}isValidLookup(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}getResource(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,r,n):this.resourceStore.getResource(e,t,r,n)}getUsedParamsDetails(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=e.replace&&"string"!==typeof e.replace;let n=r?e.replace:e;if(r&&"undefined"!==typeof e.count&&(n.count=e.count),this.options.interpolation.defaultVariables&&(n={...this.options.interpolation.defaultVariables,...n}),!r){n={...n};for(const e of t)delete n[e]}return n}static hasDefaultValue(e){const t="defaultValue";for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t===r.substring(0,12)&&void 0!==e[r])return!0;return!1}}const Ff=e=>e.charAt(0).toUpperCase()+e.slice(1);class qf{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=xf.create("languageUtils")}getScriptPartFromCode(e){if(!(e=Lf(e))||e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=Lf(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if("string"===typeof e&&e.indexOf("-")>-1){const t=["hans","hant","latn","cyrl","cans","mong","arab"];let r=e.split("-");return this.options.lowerCaseLng?r=r.map((e=>e.toLowerCase())):2===r.length?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=Ff(r[1].toLowerCase()))):3===r.length&&(r[0]=r[0].toLowerCase(),2===r[1].length&&(r[1]=r[1].toUpperCase()),"sgn"!==r[0]&&2===r[2].length&&(r[2]=r[2].toUpperCase()),t.indexOf(r[1].toLowerCase())>-1&&(r[1]=Ff(r[1].toLowerCase())),t.indexOf(r[2].toLowerCase())>-1&&(r[2]=Ff(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach((e=>{if(t)return;const r=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(r)||(t=r)})),!t&&this.options.supportedLngs&&e.forEach((e=>{if(t)return;const r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find((e=>e===r?e:e.indexOf("-")<0&&r.indexOf("-")<0?void 0:e.indexOf("-")>0&&r.indexOf("-")<0&&e.substring(0,e.indexOf("-"))===r||0===e.indexOf(r)&&r.length>1?e:void 0))})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"===typeof e&&(e=e(t)),"string"===typeof e&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let r=e[t];return r||(r=e[this.getScriptPartFromCode(t)]),r||(r=e[this.formatLanguageCode(t)]),r||(r=e[this.getLanguagePartFromCode(t)]),r||(r=e.default),r||[]}toResolveHierarchy(e,t){const r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),n=[],o=e=>{e&&(this.isSupportedCode(e)?n.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return"string"===typeof e&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):"string"===typeof e&&o(this.formatLanguageCode(e)),r.forEach((e=>{n.indexOf(e)<0&&o(this.formatLanguageCode(e))})),n}}let Hf=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Uf={1:e=>Number(e>1),2:e=>Number(1!=e),3:e=>0,4:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),5:e=>Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5),6:e=>Number(1==e?0:e>=2&&e<=4?1:2),7:e=>Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),8:e=>Number(1==e?0:2==e?1:8!=e&&11!=e?2:3),9:e=>Number(e>=2),10:e=>Number(1==e?0:2==e?1:e<7?2:e<11?3:4),11:e=>Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3),12:e=>Number(e%10!=1||e%100==11),13:e=>Number(0!==e),14:e=>Number(1==e?0:2==e?1:3==e?2:3),15:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2),16:e=>Number(e%10==1&&e%100!=11?0:0!==e?1:2),17:e=>Number(1==e||e%10==1&&e%100!=11?0:1),18:e=>Number(0==e?0:1==e?1:2),19:e=>Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3),20:e=>Number(1==e?0:0==e||e%100>0&&e%100<20?1:2),21:e=>Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0),22:e=>Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)};const Wf=["v1","v2","v3"],Vf=["v4"],Gf={zero:0,one:1,two:2,few:3,many:4,other:5};class Kf{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=xf.create("pluralResolver"),this.options.compatibilityJSON&&!Vf.includes(this.options.compatibilityJSON)||"undefined"!==typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(()=>{const e={};return Hf.forEach((t=>{t.lngs.forEach((r=>{e[r]={numbers:t.nr,plurals:Uf[t.fc]}}))})),e})(),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{const r=Lf("dev"===e?"en":e),n=t.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:r,type:n});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];const a=new Intl.PluralRules(r,{type:n});return this.pluralRulesCache[o]=a,a}catch(r){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=this.getRule(e,t);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,r).map((e=>`${t}${e}`))}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=this.getRule(e,t);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort(((e,t)=>Gf[e]-Gf[t])).map((e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`)):r.numbers.map((r=>this.getSuffix(e,r,t))):[]}getSuffix(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=this.getRule(e,r);return n?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${n.select(t)}`:this.getSuffixRetroCompatible(n,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){const r=e.noAbs?e.plurals(t):e.plurals(Math.abs(t));let n=e.numbers[r];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===n?n="plural":1===n&&(n=""));const o=()=>this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString();return"v1"===this.options.compatibilityJSON?1===n?"":"number"===typeof n?`_plural_${n.toString()}`:o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?o():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!Wf.includes(this.options.compatibilityJSON)}}const Qf=function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=((e,t,r)=>{const n=Af(e,r);return void 0!==n?n:Af(t,r)})(e,t,r);return!a&&o&&"string"===typeof r&&(a=Rf(e,r,n),void 0===a&&(a=Rf(t,r,n))),a},Yf=e=>e.replace(/\$/g,"$$$$");class Zf{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=xf.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:r,useRawValueToEscape:n,prefix:o,prefixEscaped:a,suffix:i,suffixEscaped:s,formatSeparator:l,unescapeSuffix:c,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:h,nestingOptionsSeparator:m,maxReplaces:g,alwaysFormat:b}=e.interpolation;this.escape=void 0!==t?t:Tf,this.escapeValue=void 0===r||r,this.useRawValueToEscape=void 0!==n&&n,this.prefix=o?$f(o):a||"{{",this.suffix=i?$f(i):s||"}}",this.formatSeparator=l||",",this.unescapePrefix=c?"":u||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=d?$f(d):f||$f("$t("),this.nestingSuffix=p?$f(p):h||$f(")"),this.nestingOptionsSeparator=m||",",this.maxReplaces=g||1e3,this.alwaysFormat=void 0!==b&&b,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,t)=>e&&e.source===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,r,n){let o,a,i;const s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},l=e=>{if(e.indexOf(this.formatSeparator)<0){const o=Qf(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(o,void 0,r,{...n,...t,interpolationkey:e}):o}const o=e.split(this.formatSeparator),a=o.shift().trim(),i=o.join(this.formatSeparator).trim();return this.format(Qf(t,s,a,this.options.keySeparator,this.options.ignoreJSONStructure),i,r,{...n,...t,interpolationkey:a})};this.resetRegExp();const c=n&&n.missingInterpolationHandler||this.options.missingInterpolationHandler,u=n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>Yf(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?Yf(this.escape(e)):Yf(e)}].forEach((t=>{for(i=0;o=t.regex.exec(e);){const r=o[1].trim();if(a=l(r),void 0===a)if("function"===typeof c){const t=c(e,o,n);a="string"===typeof t?t:""}else if(n&&Object.prototype.hasOwnProperty.call(n,r))a="";else{if(u){a=o[0];continue}this.logger.warn(`missed to pass in variable ${r} for interpolating ${e}`),a=""}else"string"===typeof a||this.useRawValueToEscape||(a=kf(a));const s=t.safeValue(a);if(e=e.replace(o[0],s),u?(t.regex.lastIndex+=a.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,i++,i>=this.maxReplaces)break}})),e}nest(e,t){let r,n,o,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=(e,t)=>{const r=this.nestingOptionsSeparator;if(e.indexOf(r)<0)return e;const n=e.split(new RegExp(`${r}[ ]*{`));let a=`{${n[1]}`;e=n[0],a=this.interpolate(a,o);const i=a.match(/'/g),s=a.match(/"/g);(i&&i.length%2===0&&!s||s.length%2!==0)&&(a=a.replace(/'/g,'"'));try{o=JSON.parse(a),t&&(o={...t,...o})}catch(l){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,l),`${e}${r}${a}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let s=[];o={...a},o=o.replace&&"string"!==typeof o.replace?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let l=!1;if(-1!==r[0].indexOf(this.formatSeparator)&&!/{.*}/.test(r[1])){const e=r[1].split(this.formatSeparator).map((e=>e.trim()));r[1]=e.shift(),s=e,l=!0}if(n=t(i.call(this,r[1].trim(),o),o),n&&r[0]===e&&"string"!==typeof n)return n;"string"!==typeof n&&(n=kf(n)),n||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),n=""),l&&(n=s.reduce(((e,t)=>this.format(e,t,a.lng,{...a,interpolationkey:r[1].trim()})),n.trim())),e=e.replace(r[0],n),this.regexp.lastIndex=0}return e}}const Jf=e=>{const t={};return(r,n,o)=>{let a=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(a={...a,[o.interpolationkey]:void 0});const i=n+JSON.stringify(a);let s=t[i];return s||(s=e(Lf(n),o),t[i]=s),s(r)}};class Xf{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=xf.create("formatter"),this.options=e,this.formats={number:Jf(((e,t)=>{const r=new Intl.NumberFormat(e,{...t});return e=>r.format(e)})),currency:Jf(((e,t)=>{const r=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>r.format(e)})),datetime:Jf(((e,t)=>{const r=new Intl.DateTimeFormat(e,{...t});return e=>r.format(e)})),relativetime:Jf(((e,t)=>{const r=new Intl.RelativeTimeFormat(e,{...t});return e=>r.format(e,t.range||"day")})),list:Jf(((e,t)=>{const r=new Intl.ListFormat(e,{...t});return e=>r.format(e)}))},this.init(e)}init(e){const t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=Jf(t)}format(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=t.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find((e=>e.indexOf(")")>-1))){const e=o.findIndex((e=>e.indexOf(")")>-1));o[0]=[o[0],...o.splice(1,e)].join(this.formatSeparator)}const a=o.reduce(((e,t)=>{const{formatName:o,formatOptions:a}=(e=>{let t=e.toLowerCase().trim();const r={};if(e.indexOf("(")>-1){const n=e.split("(");t=n[0].toLowerCase().trim();const o=n[1].substring(0,n[1].length-1);"currency"===t&&o.indexOf(":")<0?r.currency||(r.currency=o.trim()):"relativetime"===t&&o.indexOf(":")<0?r.range||(r.range=o.trim()):o.split(";").forEach((e=>{if(e){const[t,...n]=e.split(":"),o=n.join(":").trim().replace(/^'+|'+$/g,""),a=t.trim();r[a]||(r[a]=o),"false"===o&&(r[a]=!1),"true"===o&&(r[a]=!0),isNaN(o)||(r[a]=parseInt(o,10))}}))}return{formatName:t,formatOptions:r}})(t);if(this.formats[o]){let t=e;try{const i=n&&n.formatParams&&n.formatParams[n.interpolationkey]||{},s=i.locale||i.lng||n.locale||n.lng||r;t=this.formats[o](e,s,{...a,...n,...i})}catch(i){this.logger.warn(i)}return t}return this.logger.warn(`there was no format function for ${o}`),e}),e);return a}}class ep extends vf{constructor(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=r,this.languageUtils=r.languageUtils,this.options=n,this.logger=xf.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=n.maxParallelReads||10,this.readingCalls=0,this.maxRetries=n.maxRetries>=0?n.maxRetries:5,this.retryTimeout=n.retryTimeout>=1?n.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,n.backend,n)}queueLoad(e,t,r,n){const o={},a={},i={},s={};return e.forEach((e=>{let n=!0;t.forEach((t=>{const i=`${e}|${t}`;!r.reload&&this.store.hasResourceBundle(e,t)?this.state[i]=2:this.state[i]<0||(1===this.state[i]?void 0===a[i]&&(a[i]=!0):(this.state[i]=1,n=!1,void 0===a[i]&&(a[i]=!0),void 0===o[i]&&(o[i]=!0),void 0===s[t]&&(s[t]=!0)))})),n||(i[e]=!0)})),(Object.keys(o).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(o),pending:Object.keys(a),toLoadLanguages:Object.keys(i),toLoadNamespaces:Object.keys(s)}}loaded(e,t,r){const n=e.split("|"),o=n[0],a=n[1];t&&this.emit("failedLoading",o,a,t),!t&&r&&this.store.addResourceBundle(o,a,r,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&r&&(this.state[e]=0);const i={};this.queue.forEach((r=>{((e,t,r)=>{const{obj:n,k:o}=Sf(e,t,Object);n[o]=n[o]||[],n[o].push(r)})(r.loaded,[o],a),((e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)})(r,e),t&&r.errors.push(t),0!==r.pendingCount||r.done||(Object.keys(r.loaded).forEach((e=>{i[e]||(i[e]={});const t=r.loaded[e];t.length&&t.forEach((t=>{void 0===i[e][t]&&(i[e][t]=!0)}))})),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())})),this.emit("loaded",i),this.queue=this.queue.filter((e=>!e.done))}read(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:r,tried:n,wait:o,callback:a});this.readingCalls++;const i=(i,s)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}i&&s&&n<this.maxRetries?setTimeout((()=>{this.read.call(this,e,t,r,n+1,2*o,a)}),o):a(i,s)},s=this.backend[r].bind(this.backend);if(2!==s.length)return s(e,t,i);try{const r=s(e,t);r&&"function"===typeof r.then?r.then((e=>i(null,e))).catch(i):i(null,r)}catch(l){i(l)}}prepareLoading(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();"string"===typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"===typeof t&&(t=[t]);const o=this.queueLoad(e,t,r,n);if(!o.toLoad.length)return o.pending.length||n(),null;o.toLoad.forEach((e=>{this.loadOne(e)}))}load(e,t,r){this.prepareLoading(e,t,{},r)}reload(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const r=e.split("|"),n=r[0],o=r[1];this.read(n,o,"read",void 0,void 0,((r,a)=>{r&&this.logger.warn(`${t}loading namespace ${o} for language ${n} failed`,r),!r&&a&&this.logger.log(`${t}loaded namespace ${o} for language ${n}`,a),this.loaded(e,r,a)}))}saveMissing(e,t,r,n,o){let a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},i=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t))this.logger.warn(`did not save key "${r}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(void 0!==r&&null!==r&&""!==r){if(this.backend&&this.backend.create){const l={...a,isUpdate:o},c=this.backend.create.bind(this.backend);if(c.length<6)try{let o;o=5===c.length?c(e,t,r,n,l):c(e,t,r,n),o&&"function"===typeof o.then?o.then((e=>i(null,e))).catch(i):i(null,o)}catch(s){i(s)}else c(e,t,r,n,i,l)}e&&e[0]&&this.store.addResource(e[0],t,r,n)}}}const tp=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"===typeof e[1]&&(t=e[1]),"string"===typeof e[1]&&(t.defaultValue=e[1]),"string"===typeof e[2]&&(t.tDescription=e[2]),"object"===typeof e[2]||"object"===typeof e[3]){const r=e[3]||e[2];Object.keys(r).forEach((e=>{t[e]=r[e]}))}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),rp=e=>("string"===typeof e.ns&&(e.ns=[e.ns]),"string"===typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"===typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),np=()=>{};class op extends vf{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;var r;if(super(),this.options=rp(e),this.services={},this.logger=xf,this.modules={external:[]},r=this,Object.getOwnPropertyNames(Object.getPrototypeOf(r)).forEach((e=>{"function"===typeof r[e]&&(r[e]=r[e].bind(r))})),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout((()=>{this.init(e,t)}),0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"===typeof t&&(r=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"===typeof t.ns?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const n=tp();this.options={...n,...this.options,...rp(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...n.interpolation,...this.options.interpolation}),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator);const o=e=>e?"function"===typeof e?new e:e:null;if(!this.options.isClone){let t;this.modules.logger?xf.init(o(this.modules.logger),this.options):xf.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!==typeof Intl&&(t=Xf);const r=new qf(this.options);this.store=new _f(this.options.resources,this.options);const a=this.services;a.logger=xf,a.resourceStore=this.store,a.languageUtils=r,a.pluralResolver=new Kf(r,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!t||this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format||(a.formatter=o(t),a.formatter.init(a,this.options),this.options.interpolation.format=a.formatter.format.bind(a.formatter)),a.interpolator=new Zf(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new ep(o(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on("*",(function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];e.emit(t,...n)})),this.modules.languageDetector&&(a.languageDetector=o(this.modules.languageDetector),a.languageDetector.init&&a.languageDetector.init(a,this.options.detection,this.options)),this.modules.i18nFormat&&(a.i18nFormat=o(this.modules.i18nFormat),a.i18nFormat.init&&a.i18nFormat.init(this)),this.translator=new zf(this.services,this.options),this.translator.on("*",(function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];e.emit(t,...n)})),this.modules.external.forEach((e=>{e.init&&e.init(this)}))}if(this.format=this.options.interpolation.format,r||(r=np),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((t=>{this[t]=function(){return e.store[t](...arguments)}}));["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((t=>{this[t]=function(){return e.store[t](...arguments),e}}));const a=wf(),i=()=>{const e=(e,t)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),a.resolve(t),r(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?i():setTimeout(i,0),a}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:np;const r="string"===typeof e?e:this.language;if("function"===typeof e&&(t=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return t();const e=[],n=t=>{if(!t)return;if("cimode"===t)return;this.services.languageUtils.toResolveHierarchy(t).forEach((t=>{"cimode"!==t&&e.indexOf(t)<0&&e.push(t)}))};if(r)n(r);else{this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((e=>n(e)))}this.options.preload&&this.options.preload.forEach((e=>n(e))),this.services.backendConnector.load(e,this.options.ns,(e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),t(e)}))}else t(null)}reloadResources(e,t,r){const n=wf();return"function"===typeof e&&(r=e,e=void 0),"function"===typeof t&&(r=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),r||(r=np),this.services.backendConnector.reload(e,t,(e=>{n.resolve(),r(e)})),n}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&Df.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let t=0;t<this.languages.length;t++){const e=this.languages[t];if(!(["cimode","dev"].indexOf(e)>-1)&&this.store.hasLanguageSomeTranslations(e)){this.resolvedLanguage=e;break}}}changeLanguage(e,t){var r=this;this.isLanguageChangingTo=e;const n=wf();this.emit("languageChanging",e);const o=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},a=(e,a)=>{a?(o(a),this.translator.changeLanguage(a),this.isLanguageChangingTo=void 0,this.emit("languageChanged",a),this.logger.log("languageChanged",a)):this.isLanguageChangingTo=void 0,n.resolve((function(){return r.t(...arguments)})),t&&t(e,(function(){return r.t(...arguments)}))},i=t=>{e||t||!this.services.languageDetector||(t=[]);const r="string"===typeof t?t:this.services.languageUtils.getBestMatchFromCodes(t);r&&(this.language||o(r),this.translator.language||this.translator.changeLanguage(r),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(r)),this.loadResources(r,(e=>{a(e,r)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(i):this.services.languageDetector.detect(i):i(e):i(this.services.languageDetector.detect()),n}getFixedT(e,t,r){var n=this;const o=function(e,t){let a;if("object"!==typeof t){for(var i=arguments.length,s=new Array(i>2?i-2:0),l=2;l<i;l++)s[l-2]=arguments[l];a=n.options.overloadTranslationOptionHandler([e,t].concat(s))}else a={...t};a.lng=a.lng||o.lng,a.lngs=a.lngs||o.lngs,a.ns=a.ns||o.ns,""!==a.keyPrefix&&(a.keyPrefix=a.keyPrefix||r||o.keyPrefix);const c=n.options.keySeparator||".";let u;return u=a.keyPrefix&&Array.isArray(e)?e.map((e=>`${a.keyPrefix}${c}${e}`)):a.keyPrefix?`${a.keyPrefix}${c}${e}`:e,n.t(u,a)};return"string"===typeof e?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=r,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=t.lng||this.resolvedLanguage||this.languages[0],n=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;const a=(e,t)=>{const r=this.services.backendConnector.state[`${e}|${t}`];return-1===r||0===r||2===r};if(t.precheck){const e=t.precheck(this,a);if(void 0!==e)return e}return!!this.hasResourceBundle(r,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!a(r,e)||n&&!a(o,e)))}loadNamespaces(e,t){const r=wf();return this.options.ns?("string"===typeof e&&(e=[e]),e.forEach((e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)})),this.loadResources((e=>{r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}loadLanguages(e,t){const r=wf();"string"===typeof e&&(e=[e]);const n=this.options.preload||[],o=e.filter((e=>n.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e)));return o.length?(this.options.preload=n.concat(o),this.loadResources((e=>{r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const t=this.services&&this.services.languageUtils||new qf(tp());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){return new op(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:np;const r=e.forkResourceStore;r&&delete e.forkResourceStore;const n={...this.options,...e,isClone:!0},o=new op(n);void 0===e.debug&&void 0===e.prefix||(o.logger=o.logger.clone(e));return["store","services","language"].forEach((e=>{o[e]=this[e]})),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},r&&(o.store=new _f(this.store.data,n),o.services.resourceStore=o.store),o.translator=new zf(o.services,n),o.translator.on("*",(function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];o.emit(e,...r)})),o.init(n,t),o.translator.options=n,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const ap=op.createInstance();ap.createInstance=op.createInstance;ap.createInstance,ap.dir,ap.init,ap.loadResources,ap.reloadResources,ap.use,ap.changeLanguage,ap.getFixedT,ap.t,ap.exists,ap.setDefaultNamespace,ap.hasLoadedNamespace,ap.loadNamespaces,ap.loadLanguages;function ip(e){let{size:t=5,rating:r=0}=e;const[o,a]=(0,n.useState)(0);return(0,n.useEffect)((()=>{a(Math.round(r))}),[r]),(0,nt.jsx)("div",{className:"flex flex-wrap items-center",children:[...Array(5)].map(((e,r)=>{const n=r+1;return(0,nt.jsx)("span",{children:n<=o?(0,nt.jsx)(Hc,{className:`w-${t} h-${t} text-yellow-300`}):(0,nt.jsx)(Hc,{className:`w-${t} h-${t} text-gray-400`})},r)}))})}const sp=(0,n.createContext)(),lp=e=>{let{children:t}=e;const[r,o]=(0,n.useState)(0);return(0,nt.jsx)(sp.Provider,{value:{refreshKey:r,triggerRefresh:()=>o((e=>e+1))},children:t})},cp=()=>(0,n.useContext)(sp);let up={data:""},dp=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||up,fp=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,pp=/\/\*[^]*?\*\/| +/g,hp=/\n+/g,mp=(e,t)=>{let r="",n="",o="";for(let a in e){let i=e[a];"@"==a[0]?"i"==a[1]?r=a+" "+i+";":n+="f"==a[1]?mp(i,a):a+"{"+mp(i,"k"==a[1]?"":t)+"}":"object"==typeof i?n+=mp(i,t?t.replace(/([^,])+/g,(e=>a.replace(/(^:.*)|([^,])+/g,(t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)))):a):null!=i&&(a=/^--/.test(a)?a:a.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=mp.p?mp.p(a,i):a+":"+i+";")}return r+(t&&o?t+"{"+o+"}":o)+n},gp={},bp=e=>{if("object"==typeof e){let t="";for(let r in e)t+=r+bp(e[r]);return t}return e},yp=(e,t,r,n,o)=>{let a=bp(e),i=gp[a]||(gp[a]=(e=>{let t=0,r=11;for(;t<e.length;)r=101*r+e.charCodeAt(t++)>>>0;return"go"+r})(a));if(!gp[i]){let t=a!==e?e:(e=>{let t,r,n=[{}];for(;t=fp.exec(e.replace(pp,""));)t[4]?n.shift():t[3]?(r=t[3].replace(hp," ").trim(),n.unshift(n[0][r]=n[0][r]||{})):n[0][t[1]]=t[2].replace(hp," ").trim();return n[0]})(e);gp[i]=mp(o?{["@keyframes "+i]:t}:t,r?"":"."+i)}let s=r&&gp.g?gp.g:null;return r&&(gp.g=gp[i]),((e,t,r,n)=>{n?t.data=t.data.replace(n,e):-1===t.data.indexOf(e)&&(t.data=r?e+t.data:t.data+e)})(gp[i],t,n,s),i},xp=(e,t,r)=>e.reduce(((e,n,o)=>{let a=t[o];if(a&&a.call){let e=a(r),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;a=t?"."+t:e&&"object"==typeof e?e.props?"":mp(e,""):!1===e?"":e}return e+n+(null==a?"":a)}),"");function vp(e){let t=this||{},r=e.call?e(t.p):e;return yp(r.unshift?r.raw?xp(r,[].slice.call(arguments,1),t.p):r.reduce(((e,r)=>Object.assign(e,r&&r.call?r(t.p):r)),{}):r,dp(t.target),t.g,t.o,t.k)}vp.bind({g:1});let wp,kp,jp,Np=vp.bind({k:1});function Cp(e,t){let r=this||{};return function(){let n=arguments;function o(a,i){let s=Object.assign({},a),l=s.className||o.className;r.p=Object.assign({theme:kp&&kp()},s),r.o=/ *go\d+/.test(l),s.className=vp.apply(r,n)+(l?" "+l:""),t&&(s.ref=i);let c=e;return e[0]&&(c=s.as||e,delete s.as),jp&&c[0]&&jp(s),wp(c,s)}return t?t(o):o}}var Sp=(e,t)=>(e=>"function"==typeof e)(e)?e(t):e,Ep=(()=>{let e=0;return()=>(++e).toString()})(),Ap=(()=>{let e;return()=>{if(void 0===e&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),Op=new Map,$p=e=>{if(Op.has(e))return;let t=setTimeout((()=>{Op.delete(e),Mp({type:4,toastId:e})}),1e3);Op.set(e,t)},Pp=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,20)};case 1:return t.toast.id&&(e=>{let t=Op.get(e);t&&clearTimeout(t)})(t.toast.id),{...e,toasts:e.toasts.map((e=>e.id===t.toast.id?{...e,...t.toast}:e))};case 2:let{toast:r}=t;return e.toasts.find((e=>e.id===r.id))?Pp(e,{type:1,toast:r}):Pp(e,{type:0,toast:r});case 3:let{toastId:n}=t;return n?$p(n):e.toasts.forEach((e=>{$p(e.id)})),{...e,toasts:e.toasts.map((e=>e.id===n||void 0===n?{...e,visible:!1}:e))};case 4:return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter((e=>e.id!==t.toastId))};case 5:return{...e,pausedAt:t.time};case 6:let o=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map((e=>({...e,pauseDuration:e.pauseDuration+o})))}}},Tp=[],Ip={toasts:[],pausedAt:void 0},Mp=e=>{Ip=Pp(Ip,e),Tp.forEach((e=>{e(Ip)}))},Rp={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},Lp=e=>(t,r)=>{let n=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"blank",r=arguments.length>2?arguments[2]:void 0;return{createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...r,id:(null==r?void 0:r.id)||Ep()}}(t,e,r);return Mp({type:2,toast:n}),n.id},_p=(e,t)=>Lp("blank")(e,t);_p.error=Lp("error"),_p.success=Lp("success"),_p.loading=Lp("loading"),_p.custom=Lp("custom"),_p.dismiss=e=>{Mp({type:3,toastId:e})},_p.remove=e=>Mp({type:4,toastId:e}),_p.promise=(e,t,r)=>{let n=_p.loading(t.loading,{...r,...null==r?void 0:r.loading});return e.then((e=>(_p.success(Sp(t.success,e),{id:n,...r,...null==r?void 0:r.success}),e))).catch((e=>{_p.error(Sp(t.error,e),{id:n,...r,...null==r?void 0:r.error})})),e};var Dp=(e,t)=>{Mp({type:1,toast:{id:e,height:t}})},Bp=()=>{Mp({type:5,time:Date.now()})},zp=e=>{let{toasts:t,pausedAt:r}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[t,r]=(0,n.useState)(Ip);(0,n.useEffect)((()=>(Tp.push(r),()=>{let e=Tp.indexOf(r);e>-1&&Tp.splice(e,1)})),[t]);let o=t.toasts.map((t=>{var r,n;return{...e,...e[t.type],...t,duration:t.duration||(null==(r=e[t.type])?void 0:r.duration)||(null==e?void 0:e.duration)||Rp[t.type],style:{...e.style,...null==(n=e[t.type])?void 0:n.style,...t.style}}}));return{...t,toasts:o}}(e);(0,n.useEffect)((()=>{if(r)return;let e=Date.now(),n=t.map((t=>{if(t.duration===1/0)return;let r=(t.duration||0)+t.pauseDuration-(e-t.createdAt);if(!(r<0))return setTimeout((()=>_p.dismiss(t.id)),r);t.visible&&_p.dismiss(t.id)}));return()=>{n.forEach((e=>e&&clearTimeout(e)))}}),[t,r]);let o=(0,n.useCallback)((()=>{r&&Mp({type:6,time:Date.now()})}),[r]),a=(0,n.useCallback)(((e,r)=>{let{reverseOrder:n=!1,gutter:o=8,defaultPosition:a}=r||{},i=t.filter((t=>(t.position||a)===(e.position||a)&&t.height)),s=i.findIndex((t=>t.id===e.id)),l=i.filter(((e,t)=>t<s&&e.visible)).length;return i.filter((e=>e.visible)).slice(...n?[l+1]:[0,l]).reduce(((e,t)=>e+(t.height||0)+o),0)}),[t]);return{toasts:t,handlers:{updateHeight:Dp,startPause:Bp,endPause:o,calculateOffset:a}}},Fp=Np` from { transform: scale(0) rotate(45deg); opacity: 0; } to { transform: scale(1) rotate(45deg); opacity: 1; }`,qp=Np` from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; }`,Hp=Np` from { transform: scale(0) rotate(90deg); opacity: 0; } to { transform: scale(1) rotate(90deg); opacity: 1; }`,Up=Cp("div")` width: 20px; opacity: 0; height: 20px; border-radius: 10px; background: ${e=>e.primary||"#ff4b4b"}; position: relative; transform: rotate(45deg); animation: ${Fp} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; animation-delay: 100ms; &:after, &:before { content: ''; animation: ${qp} 0.15s ease-out forwards; animation-delay: 150ms; position: absolute; border-radius: 3px; opacity: 0; background: ${e=>e.secondary||"#fff"}; bottom: 9px; left: 4px; height: 2px; width: 12px; } &:before { animation: ${Hp} 0.15s ease-out forwards; animation-delay: 180ms; transform: rotate(90deg); } `,Wp=Np` from { transform: rotate(0deg); } to { transform: rotate(360deg); } `,Vp=Cp("div")` width: 12px; height: 12px; box-sizing: border-box; border: 2px solid; border-radius: 100%; border-color: ${e=>e.secondary||"#e0e0e0"}; border-right-color: ${e=>e.primary||"#616161"}; animation: ${Wp} 1s linear infinite; `,Gp=Np` from { transform: scale(0) rotate(45deg); opacity: 0; } to { transform: scale(1) rotate(45deg); opacity: 1; }`,Kp=Np` 0% { height: 0; width: 0; opacity: 0; } 40% { height: 0; width: 6px; opacity: 1; } 100% { opacity: 1; height: 10px; }`,Qp=Cp("div")` width: 20px; opacity: 0; height: 20px; border-radius: 10px; background: ${e=>e.primary||"#61d345"}; position: relative; transform: rotate(45deg); animation: ${Gp} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; animation-delay: 100ms; &:after { content: ''; box-sizing: border-box; animation: ${Kp} 0.2s ease-out forwards; opacity: 0; animation-delay: 200ms; position: absolute; border-right: 2px solid; border-bottom: 2px solid; border-color: ${e=>e.secondary||"#fff"}; bottom: 6px; left: 6px; height: 10px; width: 6px; } `,Yp=Cp("div")` position: absolute; `,Zp=Cp("div")` position: relative; display: flex; justify-content: center; align-items: center; min-width: 20px; min-height: 20px; `,Jp=Np` from { transform: scale(0.6); opacity: 0.4; } to { transform: scale(1); opacity: 1; }`,Xp=Cp("div")` position: relative; transform: scale(0.6); opacity: 0.4; min-width: 20px; animation: ${Jp} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; `,eh=e=>{let{toast:t}=e,{icon:r,type:o,iconTheme:a}=t;return void 0!==r?"string"==typeof r?n.createElement(Xp,null,r):r:"blank"===o?null:n.createElement(Zp,null,n.createElement(Vp,{...a}),"loading"!==o&&n.createElement(Yp,null,"error"===o?n.createElement(Up,{...a}):n.createElement(Qp,{...a})))},th=e=>`\n0% {transform: translate3d(0,${-200*e}%,0) scale(.6); opacity:.5;}\n100% {transform: translate3d(0,0,0) scale(1); opacity:1;}\n`,rh=e=>`\n0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}\n100% {transform: translate3d(0,${-150*e}%,-1px) scale(.6); opacity:0;}\n`,nh=Cp("div")` display: flex; align-items: center; background: #fff; color: #363636; line-height: 1.3; will-change: transform; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05); max-width: 350px; pointer-events: auto; padding: 8px 10px; border-radius: 8px; `,oh=Cp("div")` display: flex; justify-content: center; margin: 4px 10px; color: inherit; flex: 1 1 auto; white-space: pre-line; `,ah=n.memo((e=>{let{toast:t,position:r,style:o,children:a}=e,i=t.height?((e,t)=>{let r=e.includes("top")?1:-1,[n,o]=Ap()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[th(r),rh(r)];return{animation:t?`${Np(n)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Np(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}})(t.position||r||"top-center",t.visible):{opacity:0},s=n.createElement(eh,{toast:t}),l=n.createElement(oh,{...t.ariaProps},Sp(t.message,t));return n.createElement(nh,{className:t.className,style:{...i,...o,...t.style}},"function"==typeof a?a({icon:s,message:l}):n.createElement(n.Fragment,null,s,l))}));!function(e,t,r,n){mp.p=t,wp=e,kp=r,jp=n}(n.createElement);var ih=e=>{let{id:t,className:r,style:o,onHeightUpdate:a,children:i}=e,s=n.useCallback((e=>{if(e){let r=()=>{let r=e.getBoundingClientRect().height;a(t,r)};r(),new MutationObserver(r).observe(e,{subtree:!0,childList:!0,characterData:!0})}}),[t,a]);return n.createElement("div",{ref:s,className:r,style:o},i)},sh=vp` z-index: 9999; > * { pointer-events: auto; } `,lh=e=>{let{reverseOrder:t,position:r="top-center",toastOptions:o,gutter:a,children:i,containerStyle:s,containerClassName:l}=e,{toasts:c,handlers:u}=zp(o);return n.createElement("div",{style:{position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none",...s},className:l,onMouseEnter:u.startPause,onMouseLeave:u.endPause},c.map((e=>{let o=e.position||r,s=((e,t)=>{let r=e.includes("top"),n=r?{top:0}:{bottom:0},o=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:Ap()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(r?1:-1)}px)`,...n,...o}})(o,u.calculateOffset(e,{reverseOrder:t,gutter:a,defaultPosition:r}));return n.createElement(ih,{id:e.id,key:e.id,onHeightUpdate:u.updateHeight,className:e.visible?sh:"",style:s},"custom"===e.type?Sp(e.message,e):i?i(e):n.createElement(ah,{toast:e,position:o}))})))},ch=_p;const uh=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2e3,n=arguments.length>3?arguments[3]:void 0;const o={success:(0,nt.jsx)(st,{className:"h-5 w-5 text-green-700"}),error:(0,nt.jsx)(yt,{className:"h-5 w-5 text-red-700"}),warning:(0,nt.jsx)(dt,{className:"h-5 w-5 text-yellow-700"})};_p((0,nt.jsxs)(Sc,{style:{minWidth:n?"500px":null},children:[(0,nt.jsx)("div",{className:"inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-lg "+("success"===e?"bg-green-200":"warning"===e?"bg-yellow-200":"bg-red-200"),children:o[e]}),(0,nt.jsx)("div",{className:"ml-3 mr-2 text-sm font-normal",children:t}),(0,nt.jsx)(jc,{})]}),{style:{background:"none",boxShadow:"none"},duration:r,position:"top-center"})};function dh(e){let{prodID:t,typeBtn:r}=e;const{t:o}=rt(),{triggerRefresh:a}=cp(),i="https://shop.sharedstore.ma/api/api",s=localStorage.getItem("token"),[l,c]=(0,n.useState)(!1),[u,d]=(0,n.useState)("no"),[f,p]=(0,n.useState)(!0);(0,n.useEffect)((()=>{(async()=>{try{const e=await gf.get(i+"/isfavorite/"+t,{headers:{Authorization:`Bearer ${s}`}});d(e.data),p(!1)}catch(e){console.error(e)}})()}),[l]);const h=()=>{p(!0);const e={product_id:t};gf.post(i+"/favorites",e,{headers:{Authorization:`Bearer ${s}`}}).then((e=>{a(),"no"===u?uh("success",o("s-add-fav")):uh("error",o("s-remove-fav")),p(!1)})).catch(),c(!l)};return"icon"===r?f?(0,nt.jsx)(Tr,{className:"w-4 h-4 fill-red-600 text-gray-200"}):(0,nt.jsx)("button",{onClick:h,className:"rounded-lg hover:bg-gray-100 text-red-700 hover:text-red-800",children:"yes"===u?(0,nt.jsx)(Dc,{className:"w-5 h-5"}):(0,nt.jsx)(Gc,{className:"w-5 h-5"})}):(0,nt.jsxs)("button",{onClick:h,className:"flex items-center justify-center px-5 text-[12px] font-medium border border-gray-200 rounded-lg text-red-600 hover:text-red-700",children:["no"===u?(0,nt.jsx)(Dc,{className:"w-5 h-5 mr-2"}):(0,nt.jsx)(Gc,{className:"w-5 h-5 mr-2"}),o("no"===u?"addfav":"nofav")]})}const fh=r.p+"static/media/banner-1.49756e608d2f1c4a9f66.png",ph=r.p+"static/media/banner-2.fe05ff424c59405f8b5c.png",hh=r.p+"static/media/banner-3.09db4fb3819ceb29c0b0.png",mh=r.p+"static/media/banner-4.58d116aa6d31dec7b472.png",gh="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhAAAAJKCAYAAAB9FXwYAAAACXBIWXMAAC4jAAAuIwF4pT92AAAa4klEQVR4nO3d6XOUh7Xg4aOlhZCQ0IoQ+242se/CNqsBz9wv86dOpqZukppKKjM1Y+fGuZUJuXa2yb2JbcCGYMcxiVnngy3HYDAcoX7X5/nYqPscihb66e3u9+159OjRowAASOgtewEAoH4EBACQJiAAgDQBAQCkCQgAIE1AAABpAgIASBMQAECagAAA0gQEAJAmIACANAEBAKQJCAAgTUAAAGkCAgBIExAAQJqAAADSBAQAkCYgAIA0AQEApAkIACBNQAAAaQICAEgTEABAmoAAANIEBACQJiAAgDQBAQCkCQgAIE1AAABpAgIASBMQAECagAAA0gQEAJAmIACANAEBAKQJCAAgTUAAAGkCAgBIExAAQJqAAADSBAQAkCYgAIA0AQEApAkIACBNQAAAaQICAEgTEABAmoAAANIEBACQJiAAgDQBAQCkCQgAIE1AAABpAgIASBMQAECagAAA0gQEAJAmIACANAEBAKQJCAAgTUAAAGkCAgBIExAAQJqAAADSBAQAkCYgAIA0AQEApAkIACBNQAAAaQICAEgTEABAmoAAANIEBACQJiAAgDQBAQCkCQgAIE1AAABpAgIASBMQAECagAAA0gQEAJAmIACANAEBAKQJCAAgTUAAAGkCAgBIExAAQJqAAADSBAQAkCYgAIA0AQEApAkIACBNQAAAaQICAEgTEABAmoAAANIEBACQJiAAgDQBAQCkCQgAIE1AAABpAgIASBMQAECagAAA0gQEAJAmIACANAEBAKQJCAAgTUAAAGkCAgBIExAAQJqAAADSBAQAkCYgAIA0AQEApAkIACBNQAAAaQICAEgTEABAmoAAANIEBACQJiAAgDQBAQCkCQgAIE1AAABpAgIASBMQAECagAAA0gQEAJAmIACANAEBAKQJCAAgTUAAAGkCAgBIExAAQJqAAADSBAQAkCYgAIA0AQEApAkIACBNQAAAaQICAEgTEABAmoAAANIEBACQJiAAgDQBAQCkCQgAIE1AAABpAgIASBMQAECagAAA0gQEAJAmIACANAEBAKQJCAAgTUAAtNRP37kaV9/9XdlrUFP9ZS8AQPF++s7V+OU34mHvrm0lbkMdOQIB0DJPxsPbjkSwCAICoEWejIcFIoIsAQHQEs+KhwUiggwBAdACz4uHBSKCFyUgABruReNhwdvJr6edBARAg2XjYcGdO3/vwjY0iYAAaKjFxsPeXdvi+OG9XdiIJhEQAA0kHug2AQHQMOKBIggIgAYRDxRFQAA0hHigSAICoAHEA0UTEAA1Jx4og4AAqDHxQFkEBEBNiQfKJCAAakg8UDYBAVAz4oEqEBAANSIeqAoBAVAT4oEqERAANSAeqBoBAVBx4oEqEhAAFSYeqCoBAVBR4oEqExAAFSQeqDoBAVAx4oE6EBAAFSIeqAsBAVAR4oE6ERAAFSAeqBsBAVAy8UAdCQiAEokH6kpAAJREPFBnAgKgBOKBuhMQAAUTDzSBgAAokHigKQQEQEHEA00iIAAKIB5omv6yFwBourffuRpXxQMN4wgEQBeJB5rKEQiALllsPMzt2hbHxAMV5wgEQBeIB5pOQAAsMfFAG3gJg/jjB9fj6r/9Lj6+dTvu339Q9jpQG/39fXHp3KlYvWry69uWKh6u37gZ3//R/6nk92R/f19MT47Hnp1bY+P62bLXoSQ9jx49elT2EpTn5794N/71l78uew2onbbGw5P27dkeRw/uKXsNSuAljBb70wfXxQMsgnj4h//7q9/GH9+/XvYalEBAtNjVd39f9gpQO+Lh2xbzd6f+BESL3frzJ2WvALUiHp7u5q1Pyl6BEgiIFvvi7r2yV4DaEA/Pdu/+/bJXoAQCAuA5xAN8m4AA+A7iAZ5OQAA8g3iAZxMQAE8hHuC7CQiAJ4gHeD4BAfAN4gFejIAA+Ip4gBcnIABCPECWgABaTzxAnoAAWk08wOIICKC1xAMsnoAAWkk8wMsREEDriAd4eQICaBXxAEtDQACtIR5g6QgIoBXEAywtAQE0nniApScggEYTD9AdAgJoLPEA3SMggEYSD9BdAgJoHPEA3ScggEYRD1AMAQE0hniA4ggIoBHEAxRLQAC1Jx6geP1lLwDdsmygE2tmV8XM9ESMj43G6MiK6HT6Y9lAJ+7evRf37t+PT//y1/jk08/ixke34oNrH8UXd++VvTZJ4gHKISBonDWrp2PXjs2xfu3q6Ot7+kG2gYFODAx0YnhoeaxZPR27X9kSDx8+jD99cCPe++0f4v0PPyp4axZDPEB5BASNMT01HicOz8Wq6YlF3b+3tzc2rp+Njetn4+atT+Ltn1+N6zduLvGWLBXxAOUSENReX19fHD24O3a/siV6enqW5DGnJsfiP108He/95g/x1jtX48EDP0iqRDxA+QQEtTY0NBhvnD0Zk+Mru/L4O3dsjplVk/GDH70Vf/38TldmkCMeoBp8CoPaGhsdiX+69FrX4mHB+Nho/NOl12Js5UhX5/B84gGqQ0BQS8NDy+PyhVOxYniokHlDQ4Nx+fypWDG8vJB5fJt4gGoRENROX19vXDxzIoaHiv1hPjy0PN44ezL6+/sKnYt4gCoSENTOsUN7Y3Kiuy9bPMv42GgcPzxXyuy2eno8/FI8QMkEBLUyPTkeu3ZsLnWHnds3PfbDjO55djz8Pv1Yc7vFAywlAUGtHD8yt2Qf1XypPRyF6Lolj4dD4gGWkoCgNtasno6ZRZ4kaqlNTY7FujUzZa/RWOIBqk9AUBs7t28qe4XHlP1SSlOJB6gHAUEtDAx0YsO62bLXeMy6NaticNlA2Ws0iniA+hAQ1MLszNQzL4xVlt7e3lgzu6rsNRpDPEC9VOt/ZHiG2Zmpsld4qlmfxlgS4gHqR0BQC+MrR8te4anGxqq5V52IB6gnAUEtjIwUc8rqrJUjw2WvUGviAepLQFALyyr6ZsWBgU7ZK9SWeIB6ExDUQn9/Na8839fnuhiLIR6g/gQEtXD//v2yV3iqBw/8kMoSD9AMAoJa+OKLu2Wv8FR3794re4Va6WY8XBMPUCgBQS189tmdsld4qk8/+7zsFWqj2/HwA/EAhRIQ1MLtT/9S9gpPdfuTau5VNeIBmkdAUAvXbtwse4Wnuv7RrbJXqDzxAM0kIKiFa9dvxoMHD8te4zEPHz6MD659VPYalSYeoLkEBLVw9969+OP718pe4zHvf/hRZd/cWQXiAZpNQFAb7/7mD2Wv8Jiq7VMl4gGar5pn54GnuHbjZtz4+FbMTJd/AauPb92O9z+8UfYalTM5MRbHDu2J/r6+WDU98fXt4gGaxxEIauXtn12NR48elb1G/MvPf1X2CpUzObEyrlw4FWtWT4sHaAEBQa18fOt2/Nuv/1+pO7z323+v7KdCyvJlPMzHsoHHr1kiHqC5BAS18y//+qu49edPSpn959ufxtvv/LKU2VUlHqCdBAS18+DBw/jhj9+Oz+/8rdC5n9/5W/zgR2/5QfYN4gHaS0BQS5/f+Vv89x/+r/jr58Wc4vrOnb/HP/+P/114tFTZ5MTKuHJePEBbCQhq6y+ffR7f+/5Puv5yxp9vfxrf+/5P4pNPP+vqnDr5Oh6WiQdoKwFBrd258/f43vd/Er967/dd+XTGe7/5Q/zXf/5JYUc66kA8ABHOA0EDPHjwMN762S/j9394P44f2bsk54n4+Nbt+Ok7V13r4gniAVggIGiMj2/djv/2/f8ZszNTsWvH5tiwbjb6+l78INuDBw/jTx9cj1//7t/j/Q9d4+JJk+PiAfgHAUHjXLtxM67duBmdTn+sWT0dszNTMbZyJEZHhmNgYCA6nf64d+9+3L17Lz777PO4/elf4tqNm3H9xs344u69stevpMnxrz5tIR6ArwgIGuvevfvxH3+6Fv/xp2pdhKtuuh0P18UD1JI3UQLP1O14iIj44u69eFixS7UDzycggKeaHF8Zl7scDxERG9fPxpnTR6Knp2fRuwLFExDAtyzEw2CX42HB5o1r48z8YREBNSIggMcUHQ8LtmxaF6+dOiQioCYEBPC1suJhwbbN6+PVkwdFBNSAgAAiImKi5HhYsH3Lhjh94mD6fkCxBAQQE1992qLseFiwY+uGeFVEQKUJCGi5qsXDgh3bNsb88QMv/ThAdwgIaLGqxsOCnds3xcmj+5bs8YClIyCgpSbGV8aV86cqGw8Ldr+yJU4cmVvyxwVejoCAFvo6HgaXPXZ71eJhwZ6dW+P4YREBVSIgoGXqFg8L9u7aWsgc4MUICGiRZ8XDWz+rdjx8c96Rg7sLmwc8m4CAlpgYH31mPPzqvcXEw/ZSjgjs37MjDh/YVfhc4HECAlrgy3iYX+J42LNU66Ud2PtKHNq3s7T5gICAxmtaPCw4uG9nHJwTEVAWAQEN1tR4WHBo/87Yv3dH2WtAKwkIaKjxsWbHw4IjB3bHvj3by14DWkdAQAONj43GmxeaHw8Ljh7cE3t3bSt7DWgVAQEN07Z4WHD88N7Ys3Nr2WtAawgIaJC2xsOCE0fmYvcrW8peA1pBQEABBgY6XZ/R9nhYcPLovti1Y3PZa0DjCQjostGR4fgv//lcVw+vi4fHnTq2P17ZtqnsNaDRBAR00fDQ8rhyYT6Gh5bHiSNzXYkI8fB0p08ciB3bNpa9BjSWgIAuGVo+GG9ePB0rhoe+vm2pI0I8fLfTxw/Ejq0byl4DGklAQBcMDi6LKxfmY3Rk+Ft/tlQRMT42Ih6eo6enJ06fOBjbtqwvexVoHAEBS2xgoBOXz5+KsZUjz/yal42IL+PhtHh4AT09PfHayUOxddO6sleBRhEQsIQGOp24fO5UTI6vfO7XLjYixENeT09PvD5/ODZvXFv2KtAYAgKWSH9/X1w8eyKmp8Zf+D7ZiBAPi9fT0xNnTx+JzRvWlL0KNIKAgCXQ19cXF18/EatXTabv+6IRIR5eXk9PT5w5fSQ2iQh4aQICXlJvb2+ce+1orJmdXvRjPC8ixsdG4op4WBK9vb1x9vSR2Lh+tuxVoNYEBLyEhd9oN6xd/dKP9ayIWIiH5eJhyfT29sa5V4/G+iX4d4O2EhCwSAvv7l/K19SfjAjx0D29vb1x4fVjsW7NTNmrQC0JCFik+eMHunJ+gYWIGFspHrrtHxGxquxVoHb6y14A6ujEkbl4pYunST5xZC7u3bsfnc7j36LiYen19fXFhdePxw9//HZ8cO2jsteB2nAEApKOHNzd1QtjLRAPxVmIiDWrF/9GWGgbAQEJB+d2xv49OwqfKx66r7+/Ly6eORGrZ6bKXgVqQUDAC5rbtS0O7d9Z+FzxUJz+/r64dPbkos7nAW0jIOAF7H5lSxw7vLfwueKheP39ffHG2ZMxMy0i4LsICHiOHVs3xMmj+wqfKx7K0+n0xxvnTsSq6YmyV4HKEhDwHbZsWhenTxwsfK54KN9ApxOXzp2M6ckXv7YJtImAgGfYuH42Xp8/HD09PYXOFQ/VMdDpxOULp2JqYqzsVaByBAQ8xbo1M3Hu1aPRKx5a78uImI/Jiedfoh3aREDAE2ZnpuL8a8eit7fYbw/xUF3LBjpx5fx8TI6LCFggIOAbZqYn4o2zJ6O/v6/QueKh+pYtG4jL50/FxPho2atAJQgI+MrU5Fi8cU488GyDg8viyvn5GB8bKXsVKJ2AgIgYHxuNy+dOxUCnU+hc8VA/g4PL4sqF0zG2UkTQbgKC1ls5uiKuXJiPZcsGCp0rHupr+eCyePPCfKwcXVH2KlAaAUGrjY4Mx5UL89+6ZHa3iYf6W758MN68eDpGR0QE7SQgaK3hoeVx5fx8DA8tL3SueGiOoeWD8ebF+RgdGS57FSicgKCVhr767XHFiqFC54qH5hkeWh5vXjwdIytEBO0iIGidwcFlcfn8qcJ/axQPzfVlRMwXHqRQJgFBqwx0OnH53KkYHyv2s/zioflWDA/FmxdOx4rhYl8Sg7IICFqj0+mPy+dPFX5KYvHQHiMrhuLNi6cLf18NlEFA0Ar9/X3xxtmTMT1V7JUVxUP7jKwYFhG0goCg8Xp7e+PC68dj9arJQueKh/Za+Hjw0PLBsleBrhEQNFpvb2+cf+1YrJ1dVehc8cDK0RVx5eJ8LBcRNJSAoLF6enrizPzh2LBudaFzFxsP+/aIh6YZGx2JN0s4URkUQUDQSD09PfHayUOxeePaQue+TDwcPSgemmhs5UhcuTAfgyKChhEQNNKpY/tj25b1hc4UDzzL+NhoXDk/H4MFX28FuklA0DgnjszFzu2bCp0pHnieifHRuHxhPpYNiAiaQUDQKEcO7I49O7cWOlM88KImx1fGlQunYmCg2MvGQzcICBrj4NwrsX/vjkJnigeyJifG4sr5+RjoiAjqTUDQCHt3bYtD+3cVOlM8sFhTk2Nx+fwpEUGtCQhqb+eOzXH88N5CZ4oHXtb01HhcOncyOp3+sleBRREQ1Nr2rRti/tj+QmeKB5bKqumJLyOiX0RQPwKC2tqycW28euJgoTPFA0ttZnoy3jh3Mvr7+8peBVIEBLW0cf1svD5/OHp6egqbKR7oltWrJuPSWRFBvQgIamfdmlVx7tWj0dtb3NNXPNBtq2em4uKZEyKC2hAQ1MrszFScf+24eKCR1qyejguvH4++PhFB9QkIamPV9ERcPFvsb2jigaKtnV0VF14/Fn19/num2jxDqYWpibHC360uHijLujUzhR9pgyzPTipvfGw0LhV80h3xQNnWr52J868dExFUlmcmlbZydMWXl0Iu8CqG4oGq2LBudeFvGIYX5VlJZY2sGI4rF+Zj+eCywmaKB6pm4/rZOHv6iIigcjwjqaThoeVx5cJ8DA8tL2ymeKCqNm1YE2cKPu8JPI+AoHKWDy6LNy/Ox8iKocJmigeqbvPGtXHm9BERQWUICCplcHBZXLkwH6MjKwqbKR6oiy0b18brpw6JCCpBQFAZA51OXD53MsbHRgubKR6om62b18erJw+KCEonIKiETqc/Lp0/GZMTY4XNFA/U1fYtG+J0wReSgycJCErX398Xb5w5EaumJgqbKR6oux1bNxR+NVr4JgFBqXp7e+P8a8dj9cxUYTPFA02xY9vGmD9+oOw1aCkBQWl6e3vj3KtHY92aVYXNFA80zc7tm+Lk0X1lr0ELCQhK0dPTE2fmD8fG9bOFzRQPNNXuV7bEiSNzZa9BywgISvHqyYOxeePawuaJB5puz86tIoJCCQgKN3/8QGzfsqGweeKBttizc2scO7y37DVoCQFBoY4fnoud2zcVNk880DZzu7Z57lIIAUFhDu/fFXt3bS1snnigrfbt2R6HD+wqew0arr/sBWiPd37xbrzzi3eX/HE7/f1x6dzJmFk1+fVtSxUPH17/OH7447fi/v0HS7IrQFM4AkGtiQeAcggIaks8AJRHQFBL4gGgXAKC2hEPAOUTENSKeACoBgFBbYgHgOoQENSCeACoFgFB5YkHgOoREFSaeACoJgFBZYkHgOpyKmsqqdPpj0tnxQNAVTkCQeWIB4DqExBUingAqAcBQWWIB4D6EBBUgngAqBcBQenEA0D9CAhKJR4A6klAUBrxAFBfAoJSiAeAehMQFE48ANSfgGixZQOdwmeKB2ieTsdJjdtIQLTY1OR4ofPEAzTT1MRY2StQAgHRYnt3bS1slniA5tq7e1vZK1ACAdFi69bMxKF9O7s+RzxAcx2c2xkb1q4uew1K0PPo0aNHZS9Bud7/8KO4+u7v4uat2/HF3XtL+tjiAZpnoNOJqamxmNu1LdatmSl7HUoiICjUUsUDAOXyEgaFEQ8AzSEgKIR4AGgWAUHXiQeA5hEQdJV4AGgmAUHXiAeA5hIQdIV4AGg2AcGSEw8AzScgWFLiAaAdBARLRjwAtIeAYEmIB4B2ERC8NPEA0D4CgpciHgDaSUCwaOIBoL0EBIsiHgDaTUCQJh4AEBCkiAcAIgQECeIBgAUCghciHgD4JgHBc4kHAJ4kIPhO4gGApxEQPJN4AOBZBARPJR4A+C4Cgm8RDwA8j4DgMeIBgBchIPiaeADgRQkIIkI8AJAjIBAPAKQJiJYTDwAshoBoMfEAwGL1l70A5VhsPOzfsyOOHNzdhY0AqBNHIFpIPADwsgREy4gHAJaCgGiZ4aHB9H3EAwBPEhAtM7d7exw79OJvgBQPADyNgGihF40I8QDAswiIlvoyIvY+88/FAwDfRUC02NzubU+NCPEAwPMIiJZ7MiLEAwAvwomkiLnd2yIi4osv7ooHAF5Iz6NHjx6VvQQAUC9ewgAA0gQEAJAmIACANAEBAKQJCAAgTUAAAGkCAgBIExAAQJqAAADSBAQAkCYgAIA0AQEApAkIACBNQAAAaQICAEgTEABAmoAAANIEBACQJiAAgDQBAQCkCQgAIE1AAABpAgIASBMQAECagAAA0gQEAJAmIACANAEBAKQJCAAgTUAAAGkCAgBIExAAQJqAAADSBAQAkCYgAIA0AQEApAkIACBNQAAAaQICAEgTEABAmoAAANIEBACQJiAAgDQBAQCkCQgAIE1AAABpAgIASBMQAECagAAA0gQEAJAmIACANAEBAKQJCAAgTUAAAGkCAgBIExAAQJqAAADSBAQAkCYgAIA0AQEApAkIACBNQAAAaQICAEgTEABAmoAAANIEBACQJiAAgDQBAQCkCQgAIE1AAABpAgIASBMQAECagAAA0gQEAJAmIACANAEBAKQJCAAgTUAAAGkCAgBIExAAQJqAAADSBAQAkCYgAIA0AQEApAkIACBNQAAAaQICAEgTEABAmoAAANIEBACQJiAAgDQBAQCkCQgAIE1AAABpAgIASBMQAECagAAA0gQEAJAmIACANAEBAKQJCAAgTUAAAGkCAgBIExAAQJqAAADSBAQAkCYgAIA0AQEApAkIACBNQAAAaQICAEgTEABAmoAAANIEBACQJiAAgDQBAQCkCQgAIE1AAABpAgIASBMQAECagAAA0gQEAJAmIACANAEBAKQJCAAgTUAAAGkCAgBIExAAQJqAAADSBAQAkCYgAIA0AQEApAkIACBNQAAAaQICAEgTEABAmoAAANIEBACQJiAAgDQBAQCkCQgAIE1AAABpAgIASBMQAECagAAA0gQEAJAmIACANAEBAKQJCAAgTUAAAGkCAgBIExAAQJqAAADSBAQAkCYgAIA0AQEApAkIACBNQAAAaQICAEj7/9mlE+SfdwqkAAAAAElFTkSuQmCC",bh=r.p+"static/media/notfound.22ad5563934b94ccae32.png",yh=r.p+"static/media/coupon-vide.af4c29d0d1794b830045.png",xh=r.p+"static/media/notresultsfound.4b15772c0d82cb5b3171.png",vh=r.p+"static/media/about-1.250b01463b5b90600790.png",wh=r.p+"static/media/whyus.13b1c0830f719f75e99f.png",kh=async()=>{try{return(await gf.get("https://shop.sharedstore.ma/api/api/allcategories")).data}catch(e){return console.error("Error fetching category info:",e),null}},jh=e=>{let{category_id:t}=e;const r="https://shop.sharedstore.ma/api/api",[o,a]=(0,n.useState)(!0),[i,s]=(0,n.useState)(null),[l,c]=(0,n.useState)(null);return(0,n.useEffect)((()=>{if(!t)return void a(!1);(async()=>{try{const e=await gf.get(`${r}/allcategories/${t}`);c(e.data),a(!1)}catch(e){s("Error!"),console.error(e)}})()}),[t,r]),o?(0,nt.jsx)("div",{children:(0,nt.jsx)(Tr,{className:"fill-black text-gray-300 w-5 h-5"})}):i?(0,nt.jsx)("div",{className:"text-red-600",children:"Error"}):l.title[ap.language]},Nh=async()=>{try{return(await gf.get("https://shop.sharedstore.ma/api/api/alllicenses")).data}catch(e){return console.error("Error fetching license info:",e),null}},Ch=e=>{let{license_id:t}=e;const r="https://shop.sharedstore.ma/api/api",[o,a]=(0,n.useState)(!0),[i,s]=(0,n.useState)(null),[l,c]=(0,n.useState)(null);return(0,n.useEffect)((()=>{if(!t)return void a(!1);(async()=>{try{const e=await gf.get(`${r}/alllicenses/${t}`);c(e.data),a(!1)}catch(e){s("Error!"),console.error(e)}})()}),[t,r]),o?(0,nt.jsx)("div",{children:(0,nt.jsx)(Tr,{className:"fill-black text-gray-300 w-4 h-4"})}):i?(0,nt.jsx)("div",{className:"text-red-600",children:"Error"}):l.title[ap.language]},Sh=(0,n.createContext)(),Eh=e=>{let{children:t}=e;const[r,o]=(0,n.useState)(!1);return(0,nt.jsx)(Sh.Provider,{value:{openThisModal:r,setOpenThisModal:o},children:t})},Ah=()=>(0,n.useContext)(Sh);function Oh(e){let{prodID:t,prodSlug:r,quantity:o,typeBtn:a,stockProd:i}=e;const{t:s}=rt(),l="https://shop.sharedstore.ma/api/api",c=localStorage.getItem("token"),[u,d]=(0,n.useState)(null),[f,p]=(0,n.useState)(!1),[h,m]=(0,n.useState)(1),{triggerRefresh:g}=cp(),[b,y]=(0,n.useState)([]),[x,v]=(0,n.useState)([]),[w,k]=(0,n.useState)(!1),{setOpenThisModal:j}=Ah(),N=()=>{if(c){const e={quantity:"noModal"===a?o:h,status:"pending",product_id:t};gf.post(l+"/orders",e,{headers:{Authorization:`Bearer ${c}`}}).then((e=>{setTimeout((()=>{g(),p(!1),uh("success",s("s-add-cart"))}),500)})).catch((e=>{uh("error",s("e-add-cart")),console.error(e)}))}else{let e=JSON.parse(localStorage.getItem("shoppingCart"))||[];const n={product_id:t,product_slug:r,quantity:"noModal"===a?o:h,status:"pending"},i=e.findIndex((e=>e.product_id===n.product_id));-1!==i?e[i].quantity+=n.quantity:e.push(n),localStorage.setItem("shoppingCart",JSON.stringify(e)),setTimeout((()=>{g(),p(!1),uh("success",s("s-add-cart"))}),500)}j(!0)};return(0,nt.jsxs)(nt.Fragment,{children:[(0,nt.jsxs)("button",{disabled:i<1,onClick:"noModal"===a?N:async()=>{try{const e=(await gf.get(`${l}/productreview/${r}`)).data[0];e.name=JSON.parse(e.name),e.details=JSON.parse(e.details),d(e);const n=await gf.get(`${l}/admin/getdiscountsbyid/${t}`);y(n.data),v(n.data.percentage?parseInt(n.data.percentage)+"%":parseFloat(n.data.amount)+"$"),k(!!n.data.discountID),p(!0)}catch(e){}},className:"text-white mt-4 sm:mt-0 bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 font-medium rounded-lg text-[12px] py-2 pl-2 pr-3 focus:outline-none flex items-center justify-center gap-1 disabled:bg-blue-400 disabled:cursor-not-allowed",children:[(0,nt.jsx)(Es,{className:"w-5 h-5"}),s("addcart")]}),u&&(0,nt.jsxs)(El,{show:f,onClose:()=>p(!1),children:[(0,nt.jsx)(El.Header,{className:"text-base",children:u.name[ap.language]}),(0,nt.jsx)(El.Body,{children:(0,nt.jsxs)("div",{className:"md:grid md:grid-cols-2 md:gap-6 xl:gap-8 items-center",children:[(0,nt.jsx)("div",{className:"relative max-w-md mx-auto",children:(0,nt.jsxs)("a",{href:"/product/"+u.slug,children:[(0,nt.jsx)("img",{className:"w-full "+(u.stock>0?"":"grayscale"),src:u.image?"https://shop.sharedstore.ma/api.shop.sharedstore.ma/storage/app/public/"+u.image:gh,alt:u.name[ap.language]}),w?(0,nt.jsxs)("span",{className:"absolute top-2 right-2 bg-blue-600 text-white text-xs px-2 py-1 rounded-full",children:["-",x]}):null]})}),(0,nt.jsxs)("div",{className:"max-md:mt-6",children:[(0,nt.jsx)("div",{className:"flex items-center gap-2 justify-center text-black w-48 text-[12px] font-semibold ring-1 ring-gray-900 rounded-full px-2.5 py-1 mb-2",children:(0,nt.jsx)(jh,{category_id:u.category_id})}),(0,nt.jsx)("a",{href:"/product/"+u.slug,className:"text-lg text-black font-semibold mb-2 hover:text-blue-700",children:u.name[ap.language]||u.name.en}),(0,nt.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,nt.jsx)(ip,{size:4,rating:u.ratings}),(0,nt.jsxs)("p",{className:"text-sm font-medium text-gray-500",children:["(",u.ratings.toFixed(2),")"]}),(0,nt.jsxs)("p",{className:"text-sm font-medium text-black underline hover:no-underline",children:[u.countreview," ",s("reviews")]})]}),(0,nt.jsxs)("p",{className:"text-2xl font-extrabold text-black mb-2",children:[w?(0,nt.jsxs)("span",{className:"text-red-700 line-through text-xs font-medium",children:["$",u.price.toFixed(2)]}):null,"$",w?b.newPrice.toFixed(2):u.price.toFixed(2)]}),(0,nt.jsxs)("div",{className:"flex flex-wrap items-center gap-2 mb-2 text-black",children:[(0,nt.jsx)("span",{className:"font-semibold",children:s("license")}),(0,nt.jsx)(Ch,{license_id:u.license_id})]}),(0,nt.jsxs)("div",{className:"flex items-center",children:[(0,nt.jsx)("button",{onClick:()=>m(Math.max(1,h-1)),className:"flex justify-center items-center disabled:text-gray-300 bg-gray-200 hover:bg-gray-300 rounded-md h-7 w-7",disabled:h<=1,children:(0,nt.jsx)(zc,{className:"w-5 h-5"})}),(0,nt.jsx)("input",{type:"text",value:h,onChange:e=>m(Math.min(Math.max(1,parseInt(e.target.value)||1),u.stock)),className:"text-center w-14 border-0 ring-0 focus:ring-0"}),(0,nt.jsx)("button",{onClick:()=>m((e=>Math.min(u.stock,e+1))),className:"flex justify-center items-center disabled:text-gray-300 bg-gray-200 hover:bg-gray-300 rounded-md h-7 w-7",disabled:h>=u.stock,children:(0,nt.jsx)(qc,{className:"w-5 h-5"})})]}),(0,nt.jsxs)("div",{className:"flex flex-col gap-1 mt-3",children:[(0,nt.jsxs)("button",{onClick:N,className:"text-white mt-4 sm:mt-0 bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 font-medium rounded-lg text-[12px] px-5 py-2.5 focus:outline-none flex items-center justify-center",children:[(0,nt.jsx)("svg",{className:"w-5 h-5 -ms-2 me-2",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:(0,nt.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 4h1.5L8 16m0 0h8m-8 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4Zm8 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4Zm.75-3H7.5M11 7H6.312M17 4v6m-3-3h6"})}),s("addcart")]}),c?(0,nt.jsx)(dh,{prodID:u.productID}):null]})]})]})})]})]})}function $h(e){return $e({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M85.57 446.25h340.86a32 32 0 0 0 28.17-47.17L284.18 82.58c-12.09-22.44-44.27-22.44-56.36 0L57.4 399.08a32 32 0 0 0 28.17 47.17z"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"m250.26 195.39 5.74 122 5.73-121.95a5.74 5.74 0 0 0-5.79-6h0a5.74 5.74 0 0 0-5.68 5.95z"},child:[]},{tag:"path",attr:{d:"M256 397.25a20 20 0 1 1 20-20 20 20 0 0 1-20 20z"},child:[]}]})(e)}function Ph(){const{t:e}=rt(),[t,r]=(0,n.useState)(!1);return(0,nt.jsxs)(nt.Fragment,{children:[(0,nt.jsx)("button",{className:"",onClick:()=>r(!0),children:(0,nt.jsx)(Gc,{className:"w-5 h-5"})}),(0,nt.jsxs)(El,{show:t,size:"md",onClose:()=>r(!1),popup:!0,children:[(0,nt.jsx)(El.Header,{}),(0,nt.jsx)(El.Body,{className:"px-4 pb-4 text-center",children:(0,nt.jsxs)("div",{children:[(0,nt.jsx)("div",{className:"rounded-full p-2 mx-auto mb-3 bg-yellow-100 w-max",children:(0,nt.jsx)("div",{className:"rounded-full bg-yellow-300 text-white w-max p-2",children:(0,nt.jsx)($h,{className:"w-10 h-10 max-sm:h-8 max-sm:w-8 pb-0.5"})})}),(0,nt.jsx)("h2",{className:"text-lg max-sm:text-base text-black font-semibold mb-2",children:e("warning-checkout-title")}),(0,nt.jsx)("p",{className:"text-sm max-sm:text-xs px-2",children:e("to-continue-process")}),(0,nt.jsxs)("div",{className:"w-full flex justify-center gap-2 font-medium text-sm max-sm:text-xs mt-5",children:[(0,nt.jsx)("a",{href:"/register",className:"px-3 py-2 bg-yellow-400 hover:bg-yellow-500 text-white rounded-md",children:e("create-acc")}),(0,nt.jsx)("a",{href:"/login",className:"px-3 py-2 text-black hover:bg-gray-100 myborder rounded-md",children:e("login-1")})]})]})})]})]})}const Th=n.createContext({}),Ih=!0;function Mh(e){let{baseColor:t,highlightColor:r,width:n,height:o,borderRadius:a,circle:i,direction:s,duration:l,enableAnimation:c=Ih,customHighlightBackground:u}=e;const d={};return"rtl"===s&&(d["--animation-direction"]="reverse"),"number"===typeof l&&(d["--animation-duration"]=`${l}s`),c||(d["--pseudo-element-display"]="none"),"string"!==typeof n&&"number"!==typeof n||(d.width=n),"string"!==typeof o&&"number"!==typeof o||(d.height=o),"string"!==typeof a&&"number"!==typeof a||(d.borderRadius=a),i&&(d.borderRadius="50%"),"undefined"!==typeof t&&(d["--base-color"]=t),"undefined"!==typeof r&&(d["--highlight-color"]=r),"string"===typeof u&&(d["--custom-highlight-background"]=u),d}function Rh(e){let{count:t=1,wrapper:r,className:o,containerClassName:a,containerTestId:i,circle:s=!1,style:l,...c}=e;var u,d,f;const p=n.useContext(Th),h={...c};for(const[n,w]of Object.entries(c))"undefined"===typeof w&&delete h[n];const m={...p,...h,circle:s},g={...l,...Mh(m)};let b="react-loading-skeleton";o&&(b+=` ${o}`);const y=null!==(u=m.inline)&&void 0!==u&&u,x=[],v=Math.ceil(t);for(let w=0;w<v;w++){let e=g;if(v>t&&w===v-1){const r=null!==(d=e.width)&&void 0!==d?d:"100%",n=t%1,o="number"===typeof r?r*n:`calc(${r} * ${n})`;e={...e,width:o}}const r=n.createElement("span",{className:b,style:e,key:w},"\u200c");y?x.push(r):x.push(n.createElement(n.Fragment,{key:w},r,n.createElement("br",null)))}return n.createElement("span",{className:a,"data-testid":i,"aria-live":"polite","aria-busy":null!==(f=m.enableAnimation)&&void 0!==f?f:Ih},r?x.map(((e,t)=>n.createElement(r,{key:t},e))):x)}function Lh(e){let{data:t,typeProp:r}=e;const{t:o}=rt(),a=localStorage.getItem("token"),[i,s]=(0,n.useState)([]),[l,c]=(0,n.useState)(""),[u,d]=(0,n.useState)(!1),[f,p]=(0,n.useState)(!0),{refreshKey:h}=cp();let m;(0,n.useEffect)((()=>{(async()=>{try{const e=await gf.get(`https://shop.sharedstore.ma/api/api/admin/getdiscountsbyid/${t.productID}`);s(e.data),c(e.data.percentage?parseInt(e.data.percentage)+"%":parseFloat(e.data.amount)+"$"),d(!!e.data.discountID),p(!1)}catch(e){console.error(e)}})()}),[h]);try{m="notJson"===r?t.name:JSON.parse(t.name)}catch(g){return console.error("Error parsing JSON data: ",g),(0,nt.jsx)("p",{className:"text-base text-red-500",children:o("error-displaying-infos")})}return(0,nt.jsxs)("div",{className:"bg-white border shadow-sm p-1.5 rounded-lg",children:[(0,nt.jsx)("div",{className:"relative overflow-hidden rounded-lg myborder max-w-md mx-auto",style:{minHeight:"280px"},children:f?(0,nt.jsx)(Rh,{className:"rounded-lg",height:280,baseColor:"#F3F4F6",highlightColor:"#D1D5DB"}):(0,nt.jsxs)("a",{className:"",href:"/product/"+t.slug,children:[(0,nt.jsx)("img",{className:"object-fill object-center transition-all duration-300 hover:scale-110 "+(t.stock>0?"":"grayscale"),src:t.image?"https://shop.sharedstore.ma/api.shop.sharedstore.ma/storage/app/public/"+t.image:gh,alt:t.name[ap.language]}),u?(0,nt.jsxs)("span",{className:"absolute top-2 right-2 bg-blue-600 text-white text-xs px-2 py-1 rounded-full",children:["-",l]}):null]})}),(0,nt.jsxs)("div",{className:"flex items-center justify-between gap-4 mt-0.5",children:[u?(0,nt.jsx)("span",{className:"me-2 rounded text-xs font-medium text-red-700",children:o("up-to-discount",{value:l})}):(0,nt.jsx)("div",{}),(0,nt.jsx)("div",{className:"flex items-center justify-end gap-1 max-h-5",children:a?(0,nt.jsx)(dh,{prodID:t.productID,typeBtn:"icon"}):(0,nt.jsx)(Ph,{})})]}),(0,nt.jsx)("a",{href:"/product/"+t.slug,className:"text-base font-semibold leading-tight text-black hover:underline min-h-10",children:m[ap.language].length>58?m[ap.language].substring(0,58)+"...":m[ap.language]}),(0,nt.jsxs)("div",{className:"mt-1 flex flex-wrap items-center gap-1",children:[(0,nt.jsx)("span",{className:"text-sm font-medium text-black",children:"number"===typeof t.countreview?`${t.countreview}`:null}),(0,nt.jsxs)("div",{className:"flex flex-wrap gap-0.5 text-xs items-center px-1 py-0.5 bg-[#fbbf23] text-white rounded-full",children:[(0,nt.jsx)(Kc,{className:"h-3 w-3"}),t.ratings.toFixed(1)]})]}),(0,nt.jsxs)("div",{className:"mt-1 flex items-end justify-between gap-4 min-h-10",children:[(0,nt.jsxs)("p",{className:"text-xl font-extrabold leading-tight text-black",children:[u?(0,nt.jsxs)("span",{className:"text-red-700 line-through text-xs font-medium",children:["$",t.price.toFixed(2)]}):null,"$",u?i.newPrice.toFixed(2):t.price.toFixed(2)]}),(0,nt.jsx)(Oh,{prodID:t.productID,prodSlug:t.slug,stockProd:t.stock})]})]})}var _h=r(7010),Dh=r.n(_h);const Bh=e=>{let{sizeProp:t=100}=e;return(0,nt.jsx)(Dh(),{color:"#111827",size:t,"aria-label":"Loading Spinner","data-testid":"loader"})};function zh(){const{t:e,i18n:t}=rt(),[r,o]=(0,n.useState)(!1),[a,i]=(0,n.useState)(!1),[s,l]=(0,n.useState)(""),[c,u]=(0,n.useState)([]),d=()=>o(!1);return(0,nt.jsxs)(nt.Fragment,{children:[(0,nt.jsx)("button",{onClick:()=>o(!0),className:"md:hidden",children:(0,nt.jsx)(Le,{className:"w-[21px] h-[21px] pt-0.5 hover:text-blue-500"})}),(0,nt.jsx)("button",{onClick:()=>o(!0),className:"max-md:hidden flex justify-center items-center h-9 w-9 bg-blue-600 focus:bg-blue-700 rounded-md text-white transition-all",children:(0,nt.jsx)(Le,{className:"w-[18px] h-[18px]"})}),(0,nt.jsx)(Ms,{open:r,onClose:d,position:"bottom",className:"p-0 h-[80vh]",children:(0,nt.jsxs)(Ms.Items,{className:"container p-4",children:[(0,nt.jsxs)("div",{className:"flex justify-around gap-1",children:[(0,nt.jsx)("input",{type:"search",value:s,onChange:e=>l(e.target.value),onKeyDown:e=>"Enter"===e.key&&(async()=>{if(""!==s.trim())try{o(!0),i(!0);const e=await gf.get("https://shop.sharedstore.ma/api/api/products/search",{params:{query:s,language:t.language}});u(e.data),i(!1)}catch(e){console.error("Error searching for products:",e)}})(),className:"rounded-md myborder px-2 py-1.5 text-sm text-black",placeholder:e("search-input")}),(0,nt.jsx)("button",{onClick:d,className:"flex justify-center items-center bg-blue-600 hover:bg-blue-700 text-white rounded-md w-[38px] h-[38px]",children:(0,nt.jsx)(ze,{className:"w-5 h-5"})})]}),(0,nt.jsx)("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6 mb-4 py-4",children:a?(0,nt.jsx)("div",{className:"flex justify-center items-center min-h-[60vh] col-span-4",children:(0,nt.jsx)(Bh,{sizeProp:150})}):c.length>0?c.map(((e,t)=>(0,nt.jsx)(Lh,{data:e,typeProp:"notJson"},t))):(0,nt.jsx)("div",{className:"col-span-4 text-center text-black flex flex-col gap-6 justify-center items-center min-h-[50vh]",children:(0,nt.jsx)("img",{src:xh,className:"w-48 h-auto"})})})]})})]})}function Fh(e){let{compo:t,text:r=""}=e;const{t:n}=rt(),o=X(),a=Z(),i=()=>{ch((e=>(0,nt.jsx)("div",{id:"toast-interactive",className:"w-full max-w-xs p-4 text-gray-500 bg-white rounded-lg shadow",children:(0,nt.jsxs)("div",{className:"flex",children:[(0,nt.jsxs)("div",{className:"inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-blue-500 bg-blue-100 rounded-lg",children:[(0,nt.jsx)(Ac,{className:"w-4 h-4"}),(0,nt.jsx)("span",{className:"sr-only",children:"logout icon"})]}),(0,nt.jsxs)("div",{className:"ms-3 text-sm font-normal",children:[(0,nt.jsx)("span",{className:"mb-1 text-sm font-semibold text-black",children:n("logout")}),(0,nt.jsx)("div",{className:"mb-2 text-sm font-normal",children:n("logout-msg")}),(0,nt.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,nt.jsx)("div",{children:(0,nt.jsx)("button",{onClick:()=>{localStorage.clear(),uh("success",n("s-logout")),setTimeout((()=>{"/"===a.pathname?window.location.reload():o("/")}),500),ch.dismiss(e.id)},className:"inline-flex justify-center w-full px-2 py-1.5 text-xs font-medium text-center text-white bg-blue-600 rounded-lg hover:bg-blue-700 focus:ring-4 focus:outline-none focus:ring-blue-300",children:n("yes")})}),(0,nt.jsx)("div",{children:(0,nt.jsx)("button",{onClick:()=>ch.dismiss(n.id),className:"inline-flex justify-center w-full px-2 py-1.5 text-xs font-medium text-center text-black bg-white border border-gray-300 rounded-lg hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-gray-200",children:n("cancel")})})]})]}),(0,nt.jsxs)("button",{onClick:()=>ch.dismiss(n.id),className:"ms-auto -mx-1.5 -my-1.5 bg-white items-center justify-center flex-shrink-0 text-gray-400 hover:text-black rounded-lg focus:ring-2 focus:ring-gray-300 p-1.5 hover:bg-gray-100 inline-flex h-8 w-8",children:[(0,nt.jsx)("span",{className:"sr-only",children:"Close"}),(0,nt.jsx)(ze,{className:"w-3 h-3"})]})]})})),{style:{background:"none",boxShadow:"none"},duration:5e3,position:"top-center"})};return"from-dashboard"===t?(0,nt.jsxs)("div",{onClick:i,className:"group col-span-1 cursor-pointer rounded-lg border shadow-sm bg-white p-8 hover:bg-gray-100",children:[(0,nt.jsx)("div",{className:"mx-auto mb-2 flex h-[54px] max-h-[54px] w-[54px] max-w-[54px] items-center justify-center rounded-full bg-gray-200 group-hover:bg-blue-200 p-2",children:(0,nt.jsx)(Ac,{className:"inline h-7 w-7 text-gray-500 group-hover:text-blue-600"})}),(0,nt.jsx)("div",{className:"text-center font-semibold text-sm text-gray-500 group-hover:text-blue-600",children:n("logout")})]}):(0,nt.jsx)("div",{className:"w-full h-full",onClick:i,children:r})}function qh(e){let{prod_id:t,xMark:r}=e;const{t:n}=rt(),o=localStorage.getItem("token"),{triggerRefresh:a}=cp(),i=()=>{ch((e=>(0,nt.jsx)("div",{id:"toast-interactive",className:"w-full max-w-xs p-4 text-gray-500 bg-white rounded-lg shadow",children:(0,nt.jsxs)("div",{className:"flex",children:[(0,nt.jsxs)("div",{className:"inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-red-600 bg-red-200 rounded-lg",children:[(0,nt.jsx)(Uc,{className:"w-5 h-5"}),(0,nt.jsx)("span",{className:"sr-only",children:"delete icon"})]}),(0,nt.jsxs)("div",{className:"ms-3 text-sm font-normal",children:[(0,nt.jsx)("span",{className:"mb-1 text-sm font-semibold text-black",children:n("removeorder")}),(0,nt.jsx)("div",{className:"mb-2 text-sm font-normal",children:n("removeorder-1")}),(0,nt.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,nt.jsx)("div",{children:(0,nt.jsx)("button",{onClick:()=>{(()=>{if(o){const e={productId:parseInt(t)};gf.post("https://shop.sharedstore.ma/api/api/orders/delete",e,{headers:{Authorization:`Bearer ${o}`}}).then((()=>{a(),uh("success",n("s-remove-cart"))})).catch((e=>uh("error",n("e-remove-cart"))))}else{let e=JSON.parse(localStorage.getItem("shoppingCart"))||[];e=e.filter((e=>e.product_id!==t)),localStorage.setItem("shoppingCart",JSON.stringify(e)),setTimeout((()=>{a(),uh("success",n("s-remove-cart"))}),500)}})(),ch.dismiss(e.id)},className:"inline-flex justify-center w-full px-2 py-1.5 text-xs font-medium text-center text-white bg-red-600 rounded-lg hover:bg-red-800 focus:ring-4 focus:outline-none focus:ring-red-300",children:n("yes")})}),(0,nt.jsx)("div",{children:(0,nt.jsx)("button",{onClick:()=>ch.dismiss(e.id),className:"inline-flex justify-center w-full px-2 py-1.5 text-xs font-medium text-center text-black bg-white border border-gray-300 rounded-lg hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-gray-200",children:n("cancel")})})]})]}),(0,nt.jsxs)("button",{onClick:()=>ch.dismiss(e.id),className:"h-6 w-6 ms-auto -mx-1.5 -my-1.5 bg-white items-center justify-center flex-shrink-0 text-gray-400 hover:text-black rounded-lg focus:ring-2 focus:ring-gray-300 hover:bg-gray-100 inline-flex",children:[(0,nt.jsx)("span",{className:"sr-only",children:"Close"}),(0,nt.jsx)(ze,{className:"w-4 h-4"})]})]})})),{style:{background:"none",boxShadow:"none"},duration:5e3,position:"top-center"})};return(0,nt.jsx)(nt.Fragment,{children:r?(0,nt.jsx)("button",{className:"p-0.5 rounded-md text-red-600 hover:bg-gray-200 hover:text-red-800",onClick:i,children:(0,nt.jsx)(ze,{className:"w-4 h-4 "})}):(0,nt.jsx)("button",{className:"p-1 mt-1 rounded-md text-red-600 hover:bg-gray-200 hover:text-red-800",onClick:i,children:(0,nt.jsx)(Uc,{className:"w-[18px] h-[18px] "})})})}Math.pow(10,8);const Hh=43200,Uh=1440,Wh=Symbol.for("constructDateFrom");function Vh(e,t){return"function"===typeof e?e(t):e&&"object"===typeof e&&Wh in e?e[Wh](t):e instanceof Date?new e.constructor(t):new Date(t)}function Gh(e){return Vh(e,Date.now())}const Kh={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function Qh(e){return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const Yh={date:Qh({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Qh({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Qh({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Zh={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Jh(e){return(t,r)=>{let n;if("formatting"===(r?.context?String(r.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,o=r?.width?String(r.width):t;n=e.formattingValues[o]||e.formattingValues[t]}else{const t=e.defaultWidth,o=r?.width?String(r.width):e.defaultWidth;n=e.values[o]||e.values[t]}return n[e.argumentCallback?e.argumentCallback(t):t]}}const Xh={ordinalNumber:(e,t)=>{const r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:Jh({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Jh({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:Jh({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Jh({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Jh({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function em(e){return function(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=r.width,o=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;const i=a[0],s=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?function(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r;return}(s,(e=>e.test(i))):function(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r;return}(s,(e=>e.test(i)));let c;c=e.valueCallback?e.valueCallback(l):l,c=r.valueCallback?r.valueCallback(c):c;return{value:c,rest:t.slice(i.length)}}}function tm(e){return function(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=t.match(e.matchPattern);if(!n)return null;const o=n[0],a=t.match(e.parsePattern);if(!a)return null;let i=e.valueCallback?e.valueCallback(a[0]):a[0];i=r.valueCallback?r.valueCallback(i):i;return{value:i,rest:t.slice(o.length)}}}const rm={ordinalNumber:tm({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:em({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:em({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:em({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:em({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:em({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},nm={code:"en-US",formatDistance:(e,t,r)=>{let n;const o=Kh[e];return n="string"===typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n},formatLong:Yh,formatRelative:(e,t,r,n)=>Zh[e],localize:Xh,match:rm,options:{weekStartsOn:0,firstWeekContainsDate:1}};let om={};function am(e,t){return Vh(t||e,e)}function im(e){const t=am(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function sm(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];const o=Vh.bind(null,e||r.find((e=>"object"===typeof e)));return r.map(o)}function lm(e,t){const r=+am(e)-+am(t);return r<0?-1:r>0?1:r}function cm(e,t,r){const[n,o]=sm(r?.in,e,t);return 12*(n.getFullYear()-o.getFullYear())+(n.getMonth()-o.getMonth())}function um(e,t){const r=am(e,t?.in);return r.setHours(23,59,59,999),r}function dm(e,t){const r=am(e,t?.in),n=r.getMonth();return r.setFullYear(r.getFullYear(),n+1,0),r.setHours(23,59,59,999),r}function fm(e,t){const r=am(e,t?.in);return+um(r,t)===+dm(r,t)}function pm(e,t,r){const[n,o,a]=sm(r?.in,e,e,t),i=lm(o,a),s=Math.abs(cm(o,a));if(s<1)return 0;1===o.getMonth()&&o.getDate()>27&&o.setDate(30),o.setMonth(o.getMonth()-i*s);let l=lm(o,a)===-i;fm(n)&&1===s&&1===lm(n,a)&&(l=!1);const c=i*(s-+l);return 0===c?0:c}function hm(e,t){return+am(e)-+am(t)}function mm(e,t,r){const n=hm(e,t)/1e3;return(o=r?.roundingMethod,e=>{const t=(o?Math[o]:Math.trunc)(e);return 0===t?0:t})(n);var o}function gm(e,t,r){const n=om,o=r?.locale??n.locale??nm,a=lm(e,t);if(isNaN(a))throw new RangeError("Invalid time value");const i=Object.assign({},r,{addSuffix:r?.addSuffix,comparison:a}),[s,l]=sm(r?.in,...a>0?[t,e]:[e,t]),c=mm(l,s),u=(im(l)-im(s))/1e3,d=Math.round((c-u)/60);let f;if(d<2)return r?.includeSeconds?c<5?o.formatDistance("lessThanXSeconds",5,i):c<10?o.formatDistance("lessThanXSeconds",10,i):c<20?o.formatDistance("lessThanXSeconds",20,i):c<40?o.formatDistance("halfAMinute",0,i):c<60?o.formatDistance("lessThanXMinutes",1,i):o.formatDistance("xMinutes",1,i):0===d?o.formatDistance("lessThanXMinutes",1,i):o.formatDistance("xMinutes",d,i);if(d<45)return o.formatDistance("xMinutes",d,i);if(d<90)return o.formatDistance("aboutXHours",1,i);if(d<Uh){const e=Math.round(d/60);return o.formatDistance("aboutXHours",e,i)}if(d<2520)return o.formatDistance("xDays",1,i);if(d<Hh){const e=Math.round(d/Uh);return o.formatDistance("xDays",e,i)}if(d<2*Hh)return f=Math.round(d/Hh),o.formatDistance("aboutXMonths",f,i);if(f=pm(l,s),f<12){const e=Math.round(d/Hh);return o.formatDistance("xMonths",e,i)}{const e=f%12,t=Math.trunc(f/12);return e<3?o.formatDistance("aboutXYears",t,i):e<9?o.formatDistance("overXYears",t,i):o.formatDistance("almostXYears",t+1,i)}}function bm(e,t){return gm(e,Gh(e),t)}const ym={lessThanXSeconds:{one:"moins d\u2019une seconde",other:"moins de {{count}} secondes"},xSeconds:{one:"1 seconde",other:"{{count}} secondes"},halfAMinute:"30 secondes",lessThanXMinutes:{one:"moins d\u2019une minute",other:"moins de {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"environ 1 heure",other:"environ {{count}} heures"},xHours:{one:"1 heure",other:"{{count}} heures"},xDays:{one:"1 jour",other:"{{count}} jours"},aboutXWeeks:{one:"environ 1 semaine",other:"environ {{count}} semaines"},xWeeks:{one:"1 semaine",other:"{{count}} semaines"},aboutXMonths:{one:"environ 1 mois",other:"environ {{count}} mois"},xMonths:{one:"1 mois",other:"{{count}} mois"},aboutXYears:{one:"environ 1 an",other:"environ {{count}} ans"},xYears:{one:"1 an",other:"{{count}} ans"},overXYears:{one:"plus d\u2019un an",other:"plus de {{count}} ans"},almostXYears:{one:"presqu\u2019un an",other:"presque {{count}} ans"}},xm={date:Qh({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:Qh({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:Qh({formats:{full:"{{date}} '\xe0' {{time}}",long:"{{date}} '\xe0' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},vm={lastWeek:"eeee 'dernier \xe0' p",yesterday:"'hier \xe0' p",today:"'aujourd\u2019hui \xe0' p",tomorrow:"'demain \xe0' p'",nextWeek:"eeee 'prochain \xe0' p",other:"P"},wm=["MMM","MMMM"],km={preprocessor:(e,t)=>{if(1===e.getDate())return t;return t.some((e=>e.isToken&&wm.includes(e.value)))?t.map((e=>e.isToken&&"do"===e.value?{isToken:!0,value:"d"}:e)):t},ordinalNumber:(e,t)=>{const r=Number(e),n=t?.unit;if(0===r)return"0";let o;return o=1===r?n&&["year","week","hour","minute","second"].includes(n)?"\xe8re":"er":"\xe8me",r+o},era:Jh({values:{narrow:["av. J.-C","ap. J.-C"],abbreviated:["av. J.-C","ap. J.-C"],wide:["avant J\xe9sus-Christ","apr\xe8s J\xe9sus-Christ"]},defaultWidth:"wide"}),quarter:Jh({values:{narrow:["T1","T2","T3","T4"],abbreviated:["1er trim.","2\xe8me trim.","3\xe8me trim.","4\xe8me trim."],wide:["1er trimestre","2\xe8me trimestre","3\xe8me trimestre","4\xe8me trimestre"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:Jh({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","f\xe9vr.","mars","avr.","mai","juin","juil.","ao\xfbt","sept.","oct.","nov.","d\xe9c."],wide:["janvier","f\xe9vrier","mars","avril","mai","juin","juillet","ao\xfbt","septembre","octobre","novembre","d\xe9cembre"]},defaultWidth:"wide"}),day:Jh({values:{narrow:["D","L","M","M","J","V","S"],short:["di","lu","ma","me","je","ve","sa"],abbreviated:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],wide:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},defaultWidth:"wide"}),dayPeriod:Jh({values:{narrow:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"mat.",afternoon:"ap.m.",evening:"soir",night:"mat."},abbreviated:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"matin",afternoon:"apr\xe8s-midi",evening:"soir",night:"matin"},wide:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"du matin",afternoon:"de l\u2019apr\xe8s-midi",evening:"du soir",night:"du matin"}},defaultWidth:"wide"})},jm={ordinalNumber:tm({matchPattern:/^(\d+)(i\xe8me|\xe8re|\xe8me|er|e)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e)}),era:em({matchPatterns:{narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant J\xe9sus-Christ|apr\xe8s J\xe9sus-Christ)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^av/i,/^ap/i]},defaultParseWidth:"any"}),quarter:em({matchPatterns:{narrow:/^T?[1234]/i,abbreviated:/^[1234](er|\xe8me|e)? trim\.?/i,wide:/^[1234](er|\xe8me|e)? trimestre/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:em({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(janv|f\xe9vr|mars|avr|mai|juin|juill|juil|ao\xfbt|sept|oct|nov|d\xe9c)\.?/i,wide:/^(janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:em({matchPatterns:{narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:em({matchPatterns:{narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'apr\xe8s[-\s]midi|du soir|de la nuit)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},defaultParseWidth:"any"})},Nm={code:"fr",formatDistance:(e,t,r)=>{let n;const o=ym[e];return n="string"===typeof o?o:1===t?o.one:o.other.replace("{{count}}",String(t)),r?.addSuffix?r.comparison&&r.comparison>0?"dans "+n:"il y a "+n:n},formatLong:xm,formatRelative:(e,t,r,n)=>vm[e],localize:km,match:jm,options:{weekStartsOn:1,firstWeekContainsDate:4}},Cm=e=>{let{dateString:t}=e;return`${new Date(t+"Z").toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric",hour:"2-digit",minute:"2-digit",hour12:!1})}`},Sm=e=>{let{dateString:t}=e;const r=new Date(t+"Z");return`${String(r.getDate()).padStart(2,"0")}.${String(r.getMonth()+1).padStart(2,"0")}.${r.getFullYear()}, ${String(r.getHours()).padStart(2,"0")}:${String(r.getMinutes()).padStart(2,"0")}`},Em=e=>{let{dateString:t}=e;const r=new Date(t);return`${String(r.getDate()).padStart(2,"0")}.${String(r.getMonth()+1).padStart(2,"0")}.${r.getFullYear()}, ${String(r.getHours()).padStart(2,"0")}:${String(r.getMinutes()).padStart(2,"0")}`},Am=e=>{let{dateString:t}=e;return bm(new Date(t+"Z"),{addSuffix:!0,locale:"fr"===ap.language?Nm:nm})};function Om(e){let{activeBtn:t}=e;const{t:r}=rt();let o=X();const a=localStorage.getItem("token"),{setOpenThisModal:i}=Ah(),[s,l]=(0,n.useState)(!1);return(0,nt.jsxs)(nt.Fragment,{children:[(0,nt.jsx)("button",{disabled:t,onClick:()=>{a?(i(!1),o("/order/checkout")):l(!0)},className:"bg-blue-600 text-white hover:bg-blue-800 rounded-md w-full py-1.5 text-center",children:r("checkout")}),(0,nt.jsxs)(El,{show:s,size:"md",onClose:()=>l(!1),popup:!0,children:[(0,nt.jsx)(El.Header,{}),(0,nt.jsx)(El.Body,{className:"px-4 pb-4 text-center",children:(0,nt.jsxs)("div",{children:[(0,nt.jsx)("div",{className:"rounded-full p-2 mx-auto mb-3 bg-yellow-100 w-max",children:(0,nt.jsx)("div",{className:"rounded-full bg-yellow-300 text-white w-max p-2",children:(0,nt.jsx)($h,{className:"w-10 h-10 max-sm:h-8 max-sm:w-8 pb-0.5"})})}),(0,nt.jsx)("h2",{className:"text-lg max-sm:text-base text-black font-semibold mb-2",children:r("warning-checkout-title")}),(0,nt.jsx)("p",{className:"text-sm max-sm:text-xs px-2",children:r("warning-checkout-text")}),(0,nt.jsxs)("div",{className:"w-full flex justify-center gap-2 font-medium text-sm max-sm:text-xs mt-5",children:[(0,nt.jsx)("a",{href:"/register",className:"px-3 py-2 bg-yellow-400 hover:bg-yellow-500 text-white rounded-md",children:r("create-acc")}),(0,nt.jsx)("a",{href:"/login",className:"px-3 py-2 text-black hover:bg-gray-100 myborder rounded-md",children:r("login-1")})]})]})})]})]})}function $m(){const{t:e}=rt(),t="https://shop.sharedstore.ma/api/api",r=localStorage.getItem("token"),[o,a]=(0,n.useState)(!0),[i,s]=(0,n.useState)(!1),[l,c]=(0,n.useState)([]),[u,d]=(0,n.useState)(0),[f,p]=(0,n.useState)(!1),{refreshKey:h}=cp(),{openThisModal:m}=Ah();(0,n.useEffect)((()=>{const e=JSON.parse(localStorage.getItem("shoppingCart"))||[],n=async e=>{try{return(await gf.get(`${t}/product/${e}`)).data}catch(r){return console.error("Error fetching product data:",r),null}};if(r){const e=async()=>{const e=await gf.get(t+"/getorders",{headers:{Authorization:`Bearer ${r}`}});c(e.data),a(!1)};e()}else(async()=>{let t=[],r=0;for(const o of e){const e=await n(o.product_slug);if(e){const n=isNaN(parseFloat(e[0].price))?0:parseFloat(e[0].price),a=isNaN(parseInt(o.quantity))?0:parseInt(o.quantity),i=n*a;t.push({...e[0],quantity:a,totalPrice:i.toFixed(2)}),r+=parseFloat(i)}}c(t),d(r.toFixed(2)),a(!1)})();s(m)}),[f,h]);const g=()=>{p((e=>!e))};if(!l)return(0,nt.jsxs)("p",{className:"text-base text-black",children:[(0,nt.jsx)(Bh,{})," "]});const b=()=>{const e=l.reduce(((e,t)=>e+parseFloat(t.total_amount)),0).toFixed(2);return"NaN"!==e?e:u},y=()=>{const e=l.reduce(((e,t)=>e+parseFloat(t.total_original_amount)),0).toFixed(2);return"NaN"!==e?e:u};return(0,nt.jsxs)(nt.Fragment,{children:[(0,nt.jsxs)("div",{className:"relative inline-flex",children:[(0,nt.jsx)("button",{onClick:()=>s(!0),className:"flex items-center justify-center rounded-md h-9 w-9 max-md:w-8 max-md:h-8 bg-blue-600 focus:bg-blue-700 text-white transition-all",children:(0,nt.jsx)(Ie,{className:"w-[18px] h-[18px]"})}),(0,nt.jsx)("span",{className:"absolute top-0.5 right-0.5 grid h-5 min-w-5 max-md:min-w-[18px] max-md:h-[18px] translate-x-2/4 -translate-y-2/4 place-items-center rounded-full bg-red-500 py-1 px-1 text-xs font-medium leading-none text-white content-['']",children:l.length})]}),(0,nt.jsxs)(Ms,{className:"w-1/3 max-xl:w-[40%] max-md:w-full",open:i,onClose:()=>s(!1),position:"right",children:[(0,nt.jsx)(Ms.Header,{title:e("shop-cart"),titleIcon:()=>(0,nt.jsx)(Ie,{className:"h-5 w-5 mr-1"})}),(0,nt.jsxs)(Ms.Items,{children:[o?(0,nt.jsx)("div",{className:"flex justify-center items-center w-full min-h-[82vh]",children:(0,nt.jsx)(Bh,{})}):(0,nt.jsx)("ul",{className:"border-y border-gray-200 overflow-y-auto h-[82vh]",children:l.map(((t,r)=>{let n;try{n=JSON.parse(t.name)}catch(o){return console.error("Error parsing JSON data: ",o),(0,nt.jsx)("p",{className:"text-base text-red-500",children:e("error-displaying-infos")})}return(0,nt.jsxs)("li",{className:"flex flex-row items-center gap-3 px-3 py-4 border-b border-gray-200",children:[(0,nt.jsx)("img",{className:"w-auto h-24",src:"https://shop.sharedstore.ma/api.shop.sharedstore.ma/storage/app/public/"+t.image,alt:"product "+r}),(0,nt.jsxs)("div",{className:"w-full",children:[(0,nt.jsx)("h2",{className:"capitalize text-lg text-black font-semibold",children:n[ap.language]}),(0,nt.jsx)("p",{className:"text-xs",children:(0,nt.jsx)(Cm,{dateString:t.updated_at})}),(0,nt.jsxs)("div",{className:"flex items-center justify-between mt-2",children:[(0,nt.jsxs)("p",{className:"text-sm mt-1 flex flex-wrap font-semibold leading-3",children:[(0,nt.jsxs)("span",{className:"text-gray-400 mr-1 font-normal",children:[t.total_quantity?t.total_quantity:t.quantity," x"]})," $",t.priceAfterDiscount?parseFloat(t.priceAfterDiscount).toFixed(2):parseFloat(t.price).toFixed(2),t.priceAfterDiscount?(0,nt.jsxs)("span",{className:"ml-1 text-red-700 line-through text-xs font-medium",children:["$",parseFloat(t.price).toFixed(2)]}):null]}),(0,nt.jsx)(qh,{prod_id:t.productID,onRemove:g})]})]})]},r)}))}),(0,nt.jsxs)("div",{className:"p-2",children:[(0,nt.jsxs)("div",{className:"flex justify-between items-end gap-1 my-2 font-semibold text-lg text-black",children:[(0,nt.jsxs)("span",{children:[e("subtotal")," :"]}),(0,nt.jsx)("span",{children:b()===y()?(0,nt.jsxs)("span",{children:["$",b()]}):(0,nt.jsxs)("div",{className:"flex wrap gap-1 leading-3",children:["$",b(),(0,nt.jsxs)("span",{className:"text-red-700 line-through text-xs font-semibold",children:["$",y()]})]})})]}),(0,nt.jsx)(Om,{activeBtn:!l.length>0})]})]})]})]})}const Pm=async()=>{const e=localStorage.getItem("token");if(!e)return null;try{return(await gf.get("https://shop.sharedstore.ma/api/api/user",{headers:{Authorization:`Bearer ${e}`}})).data}catch(t){return console.error("Error fetching user info:",t),localStorage.clear(),window.location.reload(),null}};function Tm(){const{t:e}=rt(),t=Z(),[r,o]=(0,n.useState)(!0),[a,i]=(0,n.useState)("");(0,n.useEffect)((()=>{(async()=>{const e=await Pm();e&&(localStorage.setItem("username",e.username),i(e.role),o(!1))})()}),[]);const s=localStorage.getItem("token");return(0,nt.jsxs)("header",{className:"w-full bg-white border-b",children:[(0,nt.jsx)("div",{className:"container",children:(0,nt.jsxs)("div",{className:"flex items-center justify-between py-4",children:[(0,nt.jsx)("nav",{className:"hidden md:flex gap-4 ",children:[{name:"home",path:"/"},{name:"shop",path:"/shop"},{name:"about",path:"/about-us"},{name:"Contact",path:"/contact-us"}].map(((r,n)=>(0,nt.jsxs)("a",{href:r.path,className:"group relative text-black w-max",children:[(0,nt.jsx)("span",{className:t.pathname===r.path?"text-blue-600":"text-black",children:e(r.name)}),(0,nt.jsx)("span",{className:"absolute -bottom-1 left-1/2 w-0 transition-all h-0.5 bg-blue-600 group-hover:w-3/6"}),(0,nt.jsx)("span",{className:"absolute -bottom-1 right-1/2 w-0 transition-all h-0.5 bg-blue-600 group-hover:w-3/6"}),t.pathname===r.path?(0,nt.jsx)("span",{className:"absolute -bottom-1 right-0 w-full transition-all h-0.5 bg-blue-600"}):null]},n)))}),(0,nt.jsxs)("a",{href:"/",className:"flex flex-wrap items-end text-2xl text-black lowercase font-bold",children:["Shared",(0,nt.jsx)("span",{className:"text-blue-600",children:"Store"})]}),(0,nt.jsxs)("div",{className:"hidden md:flex gap-2",children:[(0,nt.jsx)(zh,{}),s?r?(0,nt.jsx)("button",{className:"flex justify-center items-center h-9 w-9 bg-blue-600 focus:bg-blue-700 rounded-md text-white transition-all",children:(0,nt.jsx)(Tr,{className:"w-5 h-5 text-white fill-gray-400"})}):(0,nt.jsxs)(Hs,{label:"sign",dismissOnClick:!0,renderTrigger:()=>(0,nt.jsx)("button",{className:"flex justify-center items-center h-9 w-9 bg-blue-600 focus:bg-blue-700 rounded-md text-white transition-all",children:(0,nt.jsx)(Be,{className:"w-4 h-4"})}),children:["admin"===a?(0,nt.jsxs)(nt.Fragment,{children:[(0,nt.jsx)(Hs.Item,{href:"/admin/dashboard",children:e("dashboard")}),(0,nt.jsx)(Hs.Item,{href:"/admin/settings",children:e("account")})]}):(0,nt.jsxs)(nt.Fragment,{children:[(0,nt.jsx)(Hs.Item,{href:"/account/dashboard",children:e("settings")}),(0,nt.jsx)(Hs.Item,{href:"/account/account-details",children:e("account")}),(0,nt.jsx)(Hs.Item,{href:"/account/favorites",children:e("favorites")})]}),(0,nt.jsx)(Hs.Item,{children:(0,nt.jsx)(Fh,{compo:"text",text:"Logout"})})]}):(0,nt.jsx)(Gi,{content:e("login"),children:(0,nt.jsx)("a",{href:"/login",className:"flex justify-center items-center h-9 w-9 bg-blue-600 focus:bg-blue-700 rounded-md text-white transition-all",children:(0,nt.jsx)(Oc,{className:"w-[22px] h-[22px]"})})}),(0,nt.jsx)($m,{})]}),(0,nt.jsx)("div",{className:"md:hidden relative inline-flex",children:(0,nt.jsx)($m,{})})]})}),(0,nt.jsxs)("div",{className:"fixed border-t bottom-0 flex justify-around w-full z-30 bg-white md:hidden p-3 text-blue-700",children:[s?s?r?(0,nt.jsx)("button",{className:"",children:(0,nt.jsx)(Tr,{className:"w-[22px] h-[22px] text-gray-400 fill-blue-600"})}):(0,nt.jsxs)(Hs,{label:"user",dismissOnClick:!0,renderTrigger:()=>(0,nt.jsx)("button",{children:(0,nt.jsx)(Be,{className:"w-5 h-5 text-blue-600 hover:text-blue-700"})}),children:["admin"===a?(0,nt.jsxs)(nt.Fragment,{children:[(0,nt.jsx)(Hs.Item,{href:"/admin/dashboard",children:e("dashboard")}),(0,nt.jsx)(Hs.Item,{href:"/admin/settings",children:e("account")})]}):(0,nt.jsxs)(nt.Fragment,{children:[(0,nt.jsx)(Hs.Item,{href:"/account/dashboard",children:e("settings")}),(0,nt.jsx)(Hs.Item,{href:"/account/account-details",children:e("account")}),(0,nt.jsx)(Hs.Item,{href:"/account/favorites",children:e("favorites")})]}),(0,nt.jsx)(Hs.Item,{children:(0,nt.jsx)(Fh,{compo:"text",text:"Logout"})})]}):(0,nt.jsx)(Gi,{content:e("login"),children:(0,nt.jsx)("a",{href:"/login",className:"flex justify-center items-center h-9 w-9 bg-blue-600 focus:bg-blue-700 rounded-md text-white transition-all",children:(0,nt.jsx)(Oc,{className:"w-[22px] h-[22px]"})})}):(0,nt.jsx)("a",{href:"/login",children:(0,nt.jsx)(Oc,{className:"w-6 h-6 hover:text-blue-500"})}),(0,nt.jsx)(zh,{}),(0,nt.jsx)(Qc,{})]})]})}function Im(){const[e,t]=(0,n.useState)(null);return(0,nt.jsx)("div",{className:"mx-auto",children:(0,nt.jsxs)("div",{className:"flex flex-row max-md:flex-col md:h-96 overflow-hidden max-md:hidden",children:[(0,nt.jsx)("a",{href:"#_",className:`relative h-auto flex-shrink-0 ${null===e?"w-[76%] max-md:h-56 max-md:w-full":"w-[8%] max-md:h-8 max-md:w-full"} transition-all duration-300 ease-in-out`,onMouseEnter:()=>t(null),children:(0,nt.jsx)("img",{src:mh,alt:"Banner 1",className:"w-full h-full object-cover"})}),[hh,ph,fh].map(((r,n)=>(0,nt.jsx)("a",{href:"#_",className:`relative flex-shrink-0 ${e===n?"w-[76%] max-md:h-56 max-md:w-full":"w-[8%] max-md:h-8 max-md:w-full"} transition-all duration-300 ease-in-out`,onMouseEnter:()=>t(n),onMouseLeave:()=>t(null),children:(0,nt.jsx)("img",{src:r,alt:`Banner ${n+2}`,className:"w-full h-full object-cover"})},n)))]})})}function Mm(){const{t:e}=rt(),[t,r]=(0,n.useState)(!0),[o,a]=(0,n.useState)([]),[i,s]=(0,n.useState)("bestseller"),{refreshKey:l}=cp();return(0,n.useEffect)((()=>{(async()=>{try{const e=await gf.get(`https://shop.sharedstore.ma/api/api/productlist?sort=${i}`);a(e.data.slice(0,8)),r(!1)}catch(e){console.error(e)}})()}),[l,i]),(0,nt.jsx)("section",{className:"bg-gray-100 py-8 max-md:pt-2 antialiased md:py-12",children:(0,nt.jsxs)("div",{className:"container mx-auto max-w-screen-xl px-4 2xl:px-0",children:[(0,nt.jsxs)("div",{className:"mb-4 flex justify-between items-center space-y-4 sm:space-y-0",children:[(0,nt.jsx)("h2",{className:"text-xl w-max font-medium text-black sm:text-2xl",children:e("best-sellers")}),(0,nt.jsx)("div",{className:"flex items-center w-max space-x-4",children:(0,nt.jsxs)(Hs,{label:"",dismissOnClick:!0,renderTrigger:()=>(0,nt.jsxs)("button",{className:"flex w-full items-center justify-center rounded-lg myborder bg-white px-3 py-2 text-sm font-medium text-black hover:bg-gray-100 hover:text-blue-700 focus:z-10 focus:outline-none focus:ring-4 focus:ring-gray-100 sm:w-auto shadow-sm",children:[(0,nt.jsx)("svg",{className:"-ms-0.5 me-2 h-4 w-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:(0,nt.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M7 4v16M7 4l3 3M7 4 4 7m9-3h6l-6 6h6m-6.5 10 3.5-7 3.5 7M14 18h4"})}),e("sort"),(0,nt.jsx)("svg",{className:"-me-0.5 ms-2 h-4 w-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:(0,nt.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"m19 9-7 7-7-7"})})]}),children:[(0,nt.jsx)(Hs.Item,{onClick:()=>s("newest"),children:e("newest")}),(0,nt.jsx)(Hs.Item,{onClick:()=>s("bestseller"),children:e("best-sellers")}),(0,nt.jsx)(Hs.Item,{onClick:()=>s("increasingprice"),children:e("inc-price")}),(0,nt.jsx)(Hs.Item,{onClick:()=>s("decreasingprice"),children:e("dec-price")})]})})]}),t?(0,nt.jsx)("div",{className:"flex justify-center items-center min-h-[60vh] w-full",children:(0,nt.jsx)(Bh,{})}):(0,nt.jsx)("div",{className:"mb-4 grid sm:grid-cols-2 md:mb-8 lg:grid-cols-3 xl:grid-cols-4 gap-4",children:o.map(((e,t)=>(0,nt.jsx)(Lh,{data:e},t)))})]})})}function Rm(){return(0,nt.jsx)("section",{className:"container",children:(0,nt.jsxs)("div",{className:"flex justify-between items-center max-lg:flex-col gap-10 w-full max-container",children:[(0,nt.jsxs)("div",{className:"flex flex-1 flex-col",children:[(0,nt.jsx)("h2",{className:"text-black font-semibold text-xl mb-3",children:"Why Choose Us"}),(0,nt.jsxs)("p",{className:"text-sm text-gray-800",children:["SharedStore - aims to simplify the software licensing process and provide customers of all needs, businesses and individuals a like., a comprehensive collection of software from major manufacturers, In our software shop, you can order general PC/MAC software, antivirus programs, Microsoft Office and servers with the corresponding license at excellent and affordable prices.",(0,nt.jsx)("br",{}),(0,nt.jsx)("br",{}),"We also know our products inside out as we are highly experienced technicians who can solve any software related issue in a quick timely manner simply contact our friendly technical support team anytime via chat or email."]})]}),(0,nt.jsx)("div",{className:"flex-1 flex justify-center items-center",children:(0,nt.jsx)("img",{src:wh,alt:"product detail",width:480,className:"object-contain h-auto"})})]})})}function Lm(){return(0,nt.jsx)("svg",{version:"1.0",xmlns:"http://www.w3.org/2000/svg",width:"50px",height:"50px",viewBox:"0 0 286.000000 286.000000",preserveAspectRatio:"xMidYMid meet",children:(0,nt.jsxs)("g",{transform:"translate(0.000000,286.000000) scale(0.100000,-0.100000)",className:"fill-black group-hover:fill-white",stroke:"none",children:[(0,nt.jsx)("path",{d:"M2382 2671 c-114 -33 -145 -62 -374 -348 -189 -235 -470 -636 -684\r\n-974 -104 -164 -132 -197 -154 -184 -16 10 -55 93 -89 187 -37 106 -53 132\r\n-91 148 -79 33 -274 -77 -297 -168 -8 -34 19 -147 79 -327 58 -175 106 -280\r\n142 -314 24 -23 33 -24 148 -25 101 -1 129 2 156 17 24 13 69 73 165 220 344\r\n523 735 1055 1121 1527 70 85 137 173 148 194 19 38 20 40 2 53 -27 20 -194\r\n16 -272 -6z"}),(0,nt.jsx)("path",{d:"M1195 2534 c-493 -92 -880 -475 -971 -961 -25 -137 -16 -395 20 -528\r\n65 -241 212 -469 401 -621 421 -340 984 -366 1434 -67 309 206 510 563 528\r\n938 13 275 -65 539 -228 768 l-27 37 -57 -64 -56 -64 35 -49 c97 -135 153\r\n-310 163 -508 25 -499 -290 -933 -772 -1062 -89 -23 -118 -26 -260 -26 -143\r\n-1 -170 2 -260 27 -175 48 -333 138 -461 263 -335 328 -406 852 -170 1253 94\r\n159 249 308 408 390 163 85 261 110 458 117 182 6 302 -13 421 -68 42 -20 73\r\n-29 77 -23 4 5 27 36 51 68 51 66 54 60 -58 107 -147 61 -249 81 -431 85 -116\r\n2 -189 -1 -245 -12z"})]})})}function _m(){return(0,nt.jsx)("svg",{version:"1.0",xmlns:"http://www.w3.org/2000/svg",width:"50px",height:"50px",viewBox:"0 0 286.000000 286.000000",preserveAspectRatio:"xMidYMid meet",children:(0,nt.jsxs)("g",{transform:"translate(0.000000,286.000000) scale(0.100000,-0.100000)",className:"fill-black group-hover:fill-white",stroke:"none",children:[(0,nt.jsx)("path",{d:"M1209 2674 c-459 -83 -838 -413 -984 -857 -210 -643 120 -1338 750\r\n-1581 154 -59 277 -81 450 -81 172 1 258 14 401 60 199 65 352 160 504 314 58\r\n58 126 138 152 176 102 155 174 332 204 505 22 127 14 378 -15 495 -78 313\r\n-242 561 -496 748 -150 110 -370 201 -550 227 -98 14 -326 11 -416 -6z m396\r\n-125 c164 -21 362 -103 505 -210 294 -218 460 -548 463 -914 2 -447 -255 -848\r\n-667 -1040 -430 -200 -943 -109 -1279 227 -232 233 -348 532 -334 862 7 169\r\n38 293 111 441 154 313 420 529 754 615 141 35 275 41 447 19z"}),(0,nt.jsx)("path",{d:"M1370 2176 c0 -43 -1 -44 -37 -51 -80 -15 -142 -46 -196 -100 -142\r\n-139 -138 -389 9 -530 44 -42 142 -97 197 -110 l27 -7 0 -189 c0 -124 -4 -189\r\n-10 -189 -23 0 -100 94 -117 142 l-18 50 -65 -6 c-131 -13 -160 -19 -160 -31\r\n0 -7 9 -42 20 -78 27 -87 87 -174 149 -216 53 -36 140 -70 179 -71 21 0 22 -4\r\n22 -85 l0 -85 65 0 65 0 0 83 0 84 63 17 c168 47 271 158 298 324 22 131 -21\r\n268 -106 337 -49 40 -121 77 -197 101 l-58 18 0 178 c0 167 1 178 18 169 28\r\n-15 60 -54 77 -94 18 -42 10 -41 138 -25 l98 12 -6 31 c-26 130 -134 234 -276\r\n267 l-49 11 0 44 0 43 -65 0 -65 0 0 -44z m0 -391 c0 -109 -3 -155 -11 -155\r\n-7 0 -31 19 -54 43 -74 73 -71 162 5 231 22 20 45 36 50 36 6 0 10 -59 10\r\n-155z m228 -498 c36 -33 52 -71 52 -122 0 -80 -39 -139 -113 -170 l-37 -15 0\r\n180 0 180 37 -15 c21 -9 48 -26 61 -38z"})]})})}function Dm(){return(0,nt.jsx)("svg",{version:"1.0",xmlns:"http://www.w3.org/2000/svg",width:"50px",height:"50px",viewBox:"0 0 286.000000 286.000000",preserveAspectRatio:"xMidYMid meet",children:(0,nt.jsx)("g",{transform:"translate(0.000000,286.000000) scale(0.100000,-0.100000)",className:"fill-black group-hover:fill-white",stroke:"none",children:(0,nt.jsx)("path",{d:"M2465 2705 c-110 -41 -261 -97 -335 -124 -185 -68 -621 -229 -815\r\n-301 -228 -84 -505 -186 -760 -279 -361 -133 -436 -163 -451 -185 -22 -32 -18\r\n-93 8 -119 13 -12 117 -73 233 -134 116 -61 342 -183 504 -270 l293 -159 274\r\n-509 c150 -281 283 -518 295 -528 34 -28 93 -22 121 11 36 43 962 2566 954\r\n2598 -11 41 -50 74 -88 74 -18 -1 -123 -34 -233 -75z m-165 -273 c0 -4 -249\r\n-256 -552 -559 l-553 -552 -380 204 c-209 112 -384 206 -390 208 -5 2 -7 7 -4\r\n11 6 6 1856 694 1872 695 4 1 7 -2 7 -7z m-202 -1091 c-189 -512 -345 -931\r\n-348 -931 -4 0 -406 741 -418 772 -2 4 245 255 550 558 304 302 554 545 556\r\n541 2 -5 -151 -428 -340 -940z"})})})}function Bm(){return(0,nt.jsx)("svg",{version:"1.0",xmlns:"http://www.w3.org/2000/svg",width:"50px",height:"50px",viewBox:"0 0 286.000000 286.000000",preserveAspectRatio:"xMidYMid meet",children:(0,nt.jsxs)("g",{transform:"translate(0.000000,286.000000) scale(0.100000,-0.100000)",className:"fill-black group-hover:fill-white",stroke:"none",children:[(0,nt.jsx)("path",{d:"M1350 2714 c-227 -44 -389 -146 -498 -313 -194 -300 -161 -661 113\r -1208 65 -130 78 -164 66 -167 -9 -3 -52 -12 -96 -20 -105 -19 -283 -84 -364\r -131 -268 -158 -261 -407 16 -562 88 -49 275 -110 407 -134 600 -105 1287 27\r 1447 279 90 142 42 290 -130 400 -89 58 -269 126 -385 148 -44 8 -89 17 -98\r 20 -14 4 -3 33 71 182 175 349 241 589 228 824 -11 185 -74 332 -200 464 -91\r 96 -191 159 -304 190 -86 24 -223 37 -273 28z m171 -184 c30 -5 90 -28 135\r -49 237 -117 348 -374 288 -669 -48 -241 -206 -584 -431 -934 -41 -65 -78\r -118 -82 -118 -10 0 -103 140 -183 273 -118 198 -190 345 -271 557 -41 108\r -77 287 -77 386 0 223 113 410 304 505 115 56 204 70 317 49z m-277 -1814\r c119 -179 144 -206 186 -206 43 0 70 30 188 209 l95 143 49 -6 c101 -14 315\r -74 392 -111 104 -50 156 -100 156 -147 0 -29 -8 -43 -42 -73 -59 -53 -189\r -111 -326 -145 -194 -47 -260 -55 -512 -55 -145 0 -266 5 -315 13 -329 54\r -565 164 -565 264 0 42 55 93 151 140 82 40 134 56 290 92 164 38 144 48 253\r -118z"}),(0,nt.jsx)("path",{d:"M1383 2249 c-88 -16 -160 -78 -192 -164 -52 -139 3 -285 131 -349\r 180 -90 382 60 366 269 -14 162 -151 272 -305 244z m80 -180 c61 -31 76 -107\r 31 -153 -37 -37 -86 -35 -125 3 -49 49 -33 125 31 150 33 13 38 13 63 0z"})]})})}function zm(){const{t:e}=rt(),t=[{title:"serv-1",detail:"det-serv-1",img:(0,nt.jsx)(Lm,{})},{title:"serv-2",detail:"det-serv-2",img:(0,nt.jsx)(_m,{})},{title:"serv-3",detail:"det-serv-3",img:(0,nt.jsx)(Dm,{})},{title:"serv-4",detail:"det-serv-4",img:(0,nt.jsx)(Bm,{})}];return(0,nt.jsx)("section",{className:"container py-10 relative",children:(0,nt.jsx)("div",{className:"w-full ",children:(0,nt.jsx)("div",{className:"w-full flex-col justify-start items-center lg:gap-11 gap-8 inline-flex",children:(0,nt.jsx)("div",{className:"grid lg:grid-cols-4 md:grid-cols-2 grid-cols-1 justify-start items-start gap-8",children:t.map(((t,r)=>(0,nt.jsx)("div",{className:"h-full group hover:bg-blue-600 w-full shadow-sm px-6 py-8 rounded-2xl myborder flex justify-center items-center gap-2.5",children:(0,nt.jsxs)("div",{className:"flex-col justify-start items-center gap-3.5 inline-flex",children:[t.img?t.img:null,(0,nt.jsx)("h4",{className:"text-center text-black group-hover:text-white text-lg font-semibold leading-8",children:e(t.title)}),(0,nt.jsx)("p",{className:"text-center text-gray-500 group-hover:text-white text-sm font-normal leading-snug",children:e(t.detail)})]})},r)))})})})})}function Fm(){const{t:e}=rt();return(0,nt.jsx)("section",{className:"container py-10",children:(0,nt.jsxs)("div",{className:"mx-auto",children:[(0,nt.jsxs)("div",{className:"mb-14 text-center",children:[(0,nt.jsxs)("div",{className:"inline-flex items-center justify-center w-full",children:[(0,nt.jsx)("hr",{className:"w-full h-px my-5 bg-gray-300 border-0"}),(0,nt.jsx)("span",{className:"text-lg max-md:text-base font-semibold absolute px-3 text-black -translate-x-1/2 bg-gray-100 left-1/2",children:e("process-title")})]}),(0,nt.jsx)("p",{className:"text-sm font-normal text-gray-500 max-w-md md:max-w-3xl mx-auto",children:e("process-detail")})]}),(0,nt.jsx)("div",{className:"flex justify-center items-center gap-x-5 gap-y-8 lg:gap-y-0 flex-wrap md:flex-wrap lg:flex-nowrap lg:flex-row lg:justify-between lg:gap-x-8",children:[{img:"https://allgoodkeys.com/wp-content/uploads/2022/05/1-1-1.png",title:"proc-title-1",detail:"proc-detail-1"},{img:"https://allgoodkeys.com/wp-content/uploads/2022/05/2-1.png",title:"proc-title-2",detail:"proc-detail-2"},{img:"https://allgoodkeys.com/wp-content/uploads/2022/05/3-3-1.png",title:"proc-title-3",detail:"proc-detail-3"}].map(((t,r)=>(0,nt.jsxs)("div",{className:"relative w-full text-center max-md:max-w-sm max-md:mx-auto group md:w-2/5 lg:w-1/4",children:[(0,nt.jsx)("img",{src:t.img,className:"rounded-lg flex justify-center items-center w-60 h-auto mx-auto cursor-pointer transition-all duration-500",alt:""}),(0,nt.jsx)("h4",{className:"text-lg font-medium text-black mb-3 capitalize",children:e(t.title)}),(0,nt.jsx)("p",{className:"text-sm font-normal text-gray-500",children:e(t.detail)})]},r)))})]})})}var qm=r(2488);function Hm(){const{t:e}=rt(),t=e=>e.fname&&e.lname?e.fname.charAt(0).toUpperCase()+e.lname.charAt(0).toUpperCase():e.username.substring(0,2).toUpperCase();return(0,nt.jsx)("section",{className:"container py-10",children:(0,nt.jsxs)("div",{children:[(0,nt.jsxs)("div",{className:"text-center",children:[(0,nt.jsxs)("div",{className:"inline-flex items-center justify-center w-full",children:[(0,nt.jsx)("hr",{className:"w-full h-px my-5 bg-gray-300 border-0"}),(0,nt.jsx)("span",{className:"text-lg max-md:text-base font-semibold absolute px-3 text-black -translate-x-1/2 bg-gray-100 left-1/2",children:e("testimonials")})]}),(0,nt.jsx)("p",{className:"text-sm font-normal text-gray-500 max-w-md md:max-w-2xl mx-auto",children:e("testimonials-1")})]}),(0,nt.jsx)("div",{className:"mt-5 h-60 max-md:h-[700px]",children:(0,nt.jsx)(qm.default,{customLeftArrow:(0,nt.jsx)(Um,{}),customRightArrow:(0,nt.jsx)(Wm,{}),autoPlay:!0,additionalTransfrom:0,arrows:!0,autoPlaySpeed:3e3,centerMode:!1,className:"",containerClass:"container-with-dots",dotListClass:"",draggable:!0,focusOnSelect:!1,infinite:!0,itemClass:"",keyBoardControl:!0,minimumTouchDrag:80,pauseOnHover:!0,renderArrowsWhenDisabled:!1,renderButtonGroupOutside:!1,renderDotsOutside:!1,responsive:{desktop:{breakpoint:{max:3e3,min:1024},items:3,partialVisibilityGutter:40},mobile:{breakpoint:{max:464,min:0},items:1,partialVisibilityGutter:30},tablet:{breakpoint:{max:1024,min:464},items:2,partialVisibilityGutter:30}},rewind:!1,rewindWithAnimation:!1,rtl:!1,shouldResetAutoplay:!0,showDots:!1,sliderClass:"",slidesToSlide:1,swipeable:!0,children:[{fname:"Joe",lname:"Smith",username:"joesmith01",comment:"Lorem ipsum dolor sit dolor sit dolor sit dolor sit dolor sit dolor sit dolor sit dolor sit amet, consectetur adipiscing elit.",rating:4},{fname:null,lname:null,username:"johndoe02",comment:"Pellentesque habitant morbi tristique morbi tristique morbi tristique morbi tristique morbi tristique morbi tristique morbi tristique morbi tristique senectus et netus.",rating:5},{fname:"Emily",lname:"Jones",username:"emilyjones03",comment:"Praesent commodo cursus cursus cursus cursus cursus cursus cursus cursus magna, vel scelerisque nisl consectetur et.",rating:3},{fname:"Michael",lname:"Brown",username:"michaelbrown04",comment:"Aenean lacinia bibendum nulla bibendum nulla bibendum nulla bibendum nulla bibendum nulla bibendum nulla bibendum nulla bibendum nulla sed consectetur.",rating:4},{fname:"Sarah",lname:"Davis",username:"sarahdavis05",comment:"Vestibulum id ligula porta ligula porta ligula porta ligula porta ligula porta ligula porta ligula porta ligula porta felis euismod semper.",rating:5},{fname:null,lname:"Miller",username:"miller06",comment:"Curabitur blandit tempus porttitortempus porttitortempus porttitortempus porttitortempus porttitortempus porttitortempus porttitortempus porttitor.",rating:3},{fname:"William",lname:null,username:"william07",comment:"Donec id elit non elit non elit non elit non elit non elit non elit non elit non mi porta gravida at eget metus.",rating:4},{fname:"Jessica",lname:"Garcia",username:"jessicagarcia08",comment:"Nullam quis risus eget risus eget risus eget risus eget risus eget risus eget risus eget risus eget urna mollis ornare vel eu leo.",rating:5},{fname:"James",lname:"Martinez",username:"jamesmartinez09",comment:"Maecenas faucibus mollis interdummollis interdummollis interdummollis interdummollis interdummollis interdummollis interdummollis interdum.",rating:3},{fname:null,lname:null,username:"martin10",comment:"Etiam porta sem malesuada sem malesuada sem malesuada sem malesuada sem malesuada sem malesuada sem malesuada sem malesuada magna mollis euismod.",rating:4},{fname:"Linda",lname:"Rodriguez",username:"lindarodriguez11",comment:"Cras mattis consectetur purus consectetur purus consectetur purus consectetur purus consectetur purus consectetur purus consectetur purus consectetur purus sit amet fermentum.",rating:5},{fname:"Robert",lname:"Wilson",username:"robertwilson12",comment:"Lorem ipsum dolor sit dolor sit dolor sit dolor sit dolor sit dolor sit dolor sit dolor sit amet, consectetur adipiscing elit.",rating:3},{fname:"Karen",lname:null,username:"karen13",comment:"Vivamus sagittis lacus vel lacus vel lacus vel lacus vel lacus vel lacus vel lacus vel lacus vel augue laoreet rutrum faucibus dolor auctor.",rating:4},{fname:"Richard",lname:"Lee",username:"richardlee14",comment:"Integer posuere erat a erat a erat a erat a erat a erat a erat a erat a ante venenatis dapibus posuere velit aliquet.",rating:5},{fname:null,lname:"Walker",username:"walker15",comment:"Sed posuere consectetur est consectetur est consectetur est consectetur est consectetur est consectetur est consectetur est consectetur est at lobortis.",rating:3},{fname:"Thomas",lname:null,username:"thomas16",comment:"Vestibulum id ligula porta ligula porta ligula porta ligula porta ligula porta ligula porta ligula porta ligula porta felis euismod semper.",rating:4},{fname:"Patricia",lname:"Harris",username:"patriciaharris17",comment:"Curabitur blandit tempus porttitortempus porttitortempus porttitortempus porttitortempus porttitortempus porttitortempus porttitortempus porttitor.",rating:5},{fname:"Daniel",lname:"Clark",username:"danielclark18",comment:"Donec id elit non elit non elit non elit non elit non elit non elit non elit non mi porta gravida at eget metus.",rating:3},{fname:"Barbara",lname:"Young",username:"barbarayoung19",comment:"Nullam quis risus eget risus eget risus eget risus eget risus eget risus eget risus eget risus eget urna mollis ornare vel eu leo.",rating:4},{fname:null,lname:"King",username:"king20",comment:"Maecenas faucibus mollis interdummollis interdummollis interdummollis interdummollis interdummollis interdummollis interdummollis interdum.",rating:5}].map(((e,r)=>(0,nt.jsx)("div",{className:"min-h-full p-2",children:(0,nt.jsxs)("div",{className:"w-full bg-white border p-4 rounded-lg shadow-sm",children:[(0,nt.jsxs)("div",{className:"flex flex-wrap gap-2 text-black font-medium items-center mb-2",children:[(0,nt.jsx)("p",{className:"flex justify-center items-center h-8 w-8 text-sm font-semibold p-1 rounded-full text-blue-800 bg-blue-100",children:t(e)}),(0,nt.jsx)("p",{className:"text-sm font-semibold",children:e.fname&&e.lname?`${e.fname} ${e.lname}`:e.username})]}),(0,nt.jsx)(ip,{rating:e.rating,size:4}),(0,nt.jsx)("p",{className:"text-xs font-medium text-gray-500 mt-2 min-h-16",children:e.comment})]})},r)))})})]})})}const Um=e=>{let{onClick:t}=e;return(0,nt.jsx)("div",{className:"absolute left-0 top-1/2 transform -translate-y-1/2 z-10 cursor-pointer h-full w-24 flex items-center justify-start bg-gradient-to-r from-gray-100 to-transparent",onClick:t,children:(0,nt.jsx)(Tc,{className:"h-8 w-8 text-black"})})},Wm=e=>{let{onClick:t}=e;return(0,nt.jsx)("div",{className:"absolute right-0 top-1/2 transform -translate-y-1/2 z-10 cursor-pointer h-full w-24 flex items-center justify-end bg-gradient-to-l from-gray-100 to-transparent",onClick:t,children:(0,nt.jsx)(Ic,{className:"h-8 w-8 text-black"})})},Vm=r.p+"static/media/uk.3b5af208379dc0b6832d.png",Gm="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAACgCAYAAACLz2ctAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAZh0lEQVR42u2d268s2X3XP79V1XufM55MPIfBGXs8djwhsT25WLKDEikgHghY4SESIQ95zZPFP4DEMxKPvPLCfwC8IF4AkQSECEIgxdiOL9gYbJ9hbmYm57Z3d9X6fXlYq6qrq6uvu/fl2Ot3tE5VV1fVrq761Pd3Wau7TBLFit2WhXIKihUAixUAixUrABYrABYrVgAsVgAsVqwAWKwAWKxYAbBYAbBYsQJgsQJgsWIFwGIFwGLFCoDFCoDFihUAixUAixUrABYrABYrVgAsVgAsVqwAWKwAWKxYAbBYAbBYsQJgsTtn9T4r/dLf/Yfcv3fGSy/c4/69M85nNWezmlldU1WGWWrBDAEBAwMzA9LUAEIARPd7SKFfJ62HLac2eLm0vF8ZZiCs38wG218uWh68eI+/95uf4sV7NU3c/ANMtv5HJped2syM7oehur+38kNRdY3mc/xP/gg++DE6P0dpJSQhhJz7gpeRvy70OtjPIGpJZ0JnoHM5M8EZ6J6kmeAp4hHokaRHwCPgsaS/QP4I7AnoPTDHQIJ89QgW8nWF0J8jA48otvhigc/nxIsLmqdP+Tv/8l+dBsBit2b3gFdy+xTw6Tx9FfiUwScFHxfclwN4glPCJUDgIJTAzTtdgq7+Js6C0SDmYN8Dvgl8P0+/BfwQePtWFLDYtdpfAj4DfGwAWAfZa5g+Ieln5I5LyB3JkQtcuDsoLcPBFUm8KS8H4VhiEPUAGrIEoneyZswMm2H2BTP7AsEwC8kjWfgA+E4G8c+A/wD8KRALgM+P/Szwy8BngS8Cvwa8IemTQIIpm8cIMWa3dgnufTMJy9MqT8lgJhft4Jk4lMHNipeV0HsNBDdL75klGIPhhBQy5WZV9XII1W+EEH7DqvD7VBUGf24JxD/OQL5bALxbsH0O+FXg88CvZ6V7XVIPm6S1mNPMqOsac8cXc+zyIoHnCTBTnnfHvAMuQZfU0bMCJhV0CfcOtxw/khnN/leWlFA5JvdgKATcAlQVClWaVmka6woL1ZuGvWno75v7u8B/Af4I+HfAnxcAb96NfhF4E/gC8CvAK11MNoy9+qQthL5VVdUvBwj37mGXl3jbwuVFjueUoYv9PL1LdhSzAnpM7HXLEfIMngyRlnkHn0A5gVSGUFVAFlKmGGqoKqjqBOCsQm2Fh4oIRIG5PkZsf9ebxe96bB34A+CfFwBPb68Av5AB+xLwSxm4HrZO1SQRQuhh6yCr67qfr6qqX2fYODsHM7xp0MVFWuYRxaR+7gku8nTcvHfHnQvO6ij1sWDISigyfJaSErOAh4DMsKoCq7C6hrqCusLaGuoZChUtxsIj8xiJMULTEBfz4E3zc6dUwE8CF8CPf8pge5AV7ReBv5pd6eckvdop2hC2DrQhWCEE6rpeU7puOgkfwPk5yGmbObp4hllAiigm5XOPEBNoPXjKr2OXmCTVtC4m9JwZd0o8iAcNkHXu2KgsuWALFYRAqOoeQpvNCHWLQmBmgUqOtw2LRYu3DWoWxDZenBLArxj8IfCvgX+f/fxPGowvZVV7MycKX5T0GeD1IWzDul0H1RC4qqpW4Bsq3HD9IXghTPQHnJ2h+RwWC3R5ieo6gyakSIgJOPMuARF4BDlE7+otaV5dfJhLMdlF5wINaEN9NCQXHEJNqJIKhrrC2pZQN1hVE83SjRJbLucNi/kCYkP0/X78fi8AmzbStPG1NsavuPtXgPeB/wj8CfBvcnr+vFgFfHQQs322c6WSPj7MRjtV69oQsjFsQ0UbtiFsY7UbxoPjQrRClRSojWjRQNMuyy3SICtOiUa/rE8+1pvlqWcf3Be0u9eo7xTwHkIDixAqLEaIgRBbLM4IocYMXE7dtlSLhjhf4AgsnA7AZ5fzBqCu8kklvAL8XjB+L4TazexPgf8MfDtnPz8AHt5yUvCXgY8DP5/ra5/IavY68Jqkj44fUTEFW+dCh6+HEI7VbQqyTuHG4G3qHVk5Lo9LZfMUrXXAsOxDwsavV/uPBiKnvmejW7pyFjqV725AgYJwpWWmKsW2AizmZYIYsRhxQcQwO6ECPrtY4F2s4xCjiH5GdHHmCrOq+q2qst+qLBCqgMyeWILx/2QovwZ8D3gvx5JPgSfT4r+3u3wV+LkM1hsDyD4h7DWXXvUcrMfoG7vDhgnCsI1BG7rSYcY6FcONITu0a8+sLwzTzZLb4Y91SRva4PWyT8QGgGrDlt0xMVBeUGwxq3ALOYGBKEuhpgmTnVIBF6k/VYa7aAm0VtNInLkzq0QdjDoYVW3UoXoxmH0pBPtSukipn9jgkWHPMJ5ZAvAp8Az4C+DDPA3AfeB8os2Ac4yPufSq5Pe7Gha52OqI+SIynxnRfakUo9LHppht/N42dVtLHA6Abdt62x4eNN6q0yubnGZp1OoebCCfEitbbAJx5W8rq551lUVyeadz6RMHehUAPTpzXyAct4q2hiaIheCexKwyqgrqAFXj1EFUIWVSIYAFo0oQvpRbji/IYKZ/y1uuG4yQa1S5x7IrGSyTApZV/Xz3CfFs7pyfG2dn57zwwj1mzmR8NgXdJuC6+X2VbWqwwUG6lUZqdGdmBNyB+7JVIIZ8506QgSbaRghXuLKlnq4utL7YfbosOHckLhYtj0JLU7csiCwUmXvgrBZVgCpAXSXwqgCVpWUpmRIhiICl2qalk9w5iOVAGBsNg7HRiTeE5SJqWN6BebkwHjeR+23NCy98hBdfvMe81VoWOq7BTcE2FbsdombbRtpM9YCwAzTb+DeEbLCOrQqfjfbX/dle/cavN0A4PsAuz7ArPO1tPwAHoyfaKJ5cRhZEWjkLObPWEnjBqELoYexBzEoXuqkZlmG04dCrbtiWDeIWs4G76Aqm1oPYlREc699/vDBeioF79+/xwgv3sYWvKNi2Usg+icJBsdwR0ErqP/tSAy0r0CppG911N0RNI+WCUQS47BcegjhOVDrgUmhqq8exoqg6SKb3rANq5Q/IxbyJuEUajFkVMnhGMFFVKR7s5qtBHBhyeakrM4F6N4xZvqtGH3DkQ9RdkA68vGJ3Ih/NnZdbmM3OOD8/J+YBG1Nx2xC8MRiHxHZHJRob4j8z23oNbUt8ts+1HytiGEDYgTiODbfu2aZe2ikVsNPZRLfl+bZtEUZbZfeaQatCIBgZyJDgq6xXvxAsqV/eJg/AyLHPqitBRsr5h+5YK4fm/dL0/pOFuGhSN1gdAlW1nvluGgRwk7CxEzJby4J7eHTovkZueLBME+ssIbRBajOO/1ZvANsWK5ykL7ijYlBziu4II3jMMBnBPIFXWVY6w9o0ojZkRQthOYoag0CFhWVQ0o+i7moRjAKWTgU7ybflKbxsxLzNDmtDzLWpZLIJnlNktwdlwtdQHN0F4po62mruPFWeWUlyjhhIXl/p4wzY8K58YOAGwRxkmDlmId/JnpUvJPBCgjlYwCymGGM5OHL5wUMYffxhstIlMMuMs20dj75yUjYlEttc73XGgPtubxtc7iYXPFWI1g4QN0GYLsNqBGkcIXNXz4Jhe519fYOhm0jqk1Z1DJMIlup2lqvmZobFHAOagYX+G1Mm7wNw68o0ttyniX75MiVbHuuU8h3qak/tlvfJjHXNX01ZS0I2KKFdoz7XBx+uaYuzt6lvEk0K9/AjuJYx4LByr4mAWZqq0tgyWemnnYs9PCu9Cdh21Q6vjpaOWntlS7HyvclxvDeuUe4qGZ3IBdvmz2a7wZsCtv9m3NaLM+oW2jvmsMnut33qe1fuTrsGtbJNycqoP6Of26MsYtvqjhlC25OwQ0PB+kpng4nq5jJt3iOGPPVFWr1HOwXcN6Y7tg/3FLBN7qM7/is4PetCENPGfuRxFrzt79kV1fZIAHf8EbPt98LYZdqgSroVVNuQ7Nvof9uN+45BArtc4ykSitu1ZbK2j5cfhkC2udh35ZSkPlr+zLbore3I1zkAusOPzlCvfCkD98MyzyPd7k3CtkzGssvd0hU36Xmkg6XGNuhfF7HbzQCoPQoDtqdK7rnduH/4aow+F7AtYzpbHZ7VD8bYkY12rlvTIO0bG26at+GY02vvC947GLQNb9lhamdXiQ9t7TiuOj7vOmHb2CV3QpDXVS1395lW++BOEtXdKID7cDnVWdPl9zahdIcANuinWivDjH535gAYDo0R73bst3oVNFbCfVHLVBp2VwGcyoJtj9MR9gRPcMIPv29X3PMI296RFFvDwf0d2YRum50cwD3VxPaKINZLMaflqy/DcIIh8s89bNvcq1n/9cxN65269HKaLHirQO3qqhtWNw8hb3NZZt3dnzZOuxXgbDqQ2RTgjKc6Hsu9L/tVSzH1yc6U7au73cjGY4C7gWt+Yrd8JWUdDEbQkfzqONxuzE6YBW8bJjkuxxxZkjkxWDcN2z5/4zR9wSci9dTh2fUooG34NOFIobbD37Zx0zL2uyX3edey3ytvq2kHd1WpqE/20fZJl+xE8NmteOfnNimZEriNI2DupgvenhPtBcGh8A1LhXcItOc5A76LdoKuuFPcnxP7C9f0545MQgp0dzEJ0RXitm1qajcH2m1mvMVu7Acq7cj3rnZfXGchutidBtD2QGQ0BHKn8k1lHtsK0QWy58Gu+UlJ2sLjoZAUoAqAJwPlUPDuUu2+2HOkgAeM67OiegXAGzFtmC9WACxWrABYrABYrFgBsFgBsFixAmCxAmCxYgXAYgXAYsUKgMUKgMWKFQCLFQCLFSsAFttl2nNZAbDYjcB3l2AsABbbD0y7HlALgD+F6qcTSqCuqKAFwJ9Q8HQSVK8fwwLgcyhh2tFKFlzsON6kZetenxiwdfernVny9A/y3+TDCotdCaq7mlSg3Q+tWflpHm2XZhUAC2z7KZ8t4TvwK9fa+mtRVgD8aQdtv/RAWz+DNi0Mh5yjOwugXemOKbDtJk6DdpXPNP4Fn+uw+nruucFhd4/ePmSztXvRfioAW0tCun/a1QbQ7dy/7+WqtcH9Wn4YudafZvg8JSEj2nb+COWB+n8AZDf9U223AryGf9emIsKtGXa6PNPXTH1ceCcBtP3UzY6AdmuIrWWcc0sKdxeUtVfPPQDRlvk9H75xl7LgfZ4DvA+k+yb5txtL3jRs67XB6X/7mm+Dz65eajkxgFNPxNxFzy71uq7HdT1fsE0WonW9PR3a51Irx3wTG+qKR1Qfd5g6/FPanm9cf95x43DdljveFddpx+u+nGKrT1Bfrrt+/Q69SeqT3DNXUq4NG58gw7otFTu1POnIti+UG19vFINbfVjhhsPWDpcsbSnHbIHwKDXsKv1aTk+c+Z4a4m5/U33B16WGu2BMl8xWXO0diAH3+QjhCFncAqGudm/cFdhu0xUfCqM0zKXp639DF2zDdXUrAO6CaVw7Un65q5xycwHgXYJLE2otbWgcNhRLB4O3VD0bx0Lave0NA3gAOHsJ4+lB3ATIMe74qrDt2n7YE7KPtGtA1yZQ16DT6ll2jZMQTf4dbRi7tQai6boA3DJKEu3Z7ebpmcF7PU+EPWCcvq83xYA3Bduh267Egf10tbI31T23//6n3aXWwnltrb51x2AnCHfqw8DT7prRmsxtiu12ueNDArvbTSqO2XbTNidx5SugblaudYXU1uw5rOd5a5UK6bAM+YQx4KBz0KYeBmrrH2WYGd9A2HeKPuFTwrbv/TaO39bjuXWd3Aylb3DLx2Xcq8el61TAUyUmkDp/wqr+mx1/daZcfNcBP3BT1/HE8mOB7Msba0nHaKTL6AP6CEAfnAYfvO8D6HwE3nLbzcCuBUC5N2TarxmrHXrXCqCxedDOQAV7Vdvkjkeu2bNLtl2jbY+vem+78NcZ05nZJGibtnH3dOO4cEFUuqfcl8C4RPS0bpSQOy7H+3nleeFy5OlmdKUbVPnmV85cTDYdddsyyRi69m7Ix7r26YYUsE+jtEeaO15mm7Pdbr/hUFUcByjL8W/bQLgJNztMLsbHMS5Au6fj9abBmwVNdFp35E7sIHMnyokxQ6j02t0H0GUAM5SZvDQvT9GPtFQ2eZI5N4Kl0osZmENlorJ0fF1yO8wjlwXzG3HB2qOsckxPyABEG6VnGu7TtuYfh3TaH1Oa2Xs08WC9tV6OQeuAk0SMMUHkTlws8CdPWDQL2rYltg3uoo0JxNhBKIiK+EDpYgaRDQNYrQOmuyFyRts5rMosBUgGsxCozKlkzMyIglqilqhwRMjuvlPFZeH6hABqR9VjDNeUKz6kEH3V7FYr1dJja4CHlTi0VkweA9bDNQDN3Wnbdm0+1jXx0SMWl5c0bYPPF0RPahgl2piiujZGYlb56AOoc6nGO/B8WTAUnl1u8jY9gGYEQTAIGCFA7U5tgVmAGjGrAmcYs9qpLcHcZDBjJ7R2rd8J0TQXkxAyyIyn6oV2GPh7vGNrBV0dDdgY0C6GnFI0YOk+B3DFGHvgYoxJzfKyDrYeusH7bVXhjx+zuLhksWjwMCe6aOVp6k7ryiroS/j6sAO8S8ZIbnl4TiwnFh18XcRTkdSvMqMKRoUxM2cWRO2BMw+cCc6AMwVCBRFYAIt8LCLsPX79anVAHRHjjaufpyzDrPX8bS/WblLATbHalPvcBNsQtBgjTdP0gHXvdcvG6zRNg1c17ZPHLJ48o503tMx74NxFVHa1DFRO2Q1n6IiDL7bLl19CH4Y2OajrlG/pgo0qQG3GWQjMgpj1AIpzF2dVRV05MqM141l0FhLBdGIFTBHroHI57PsZu1g7IHMd9gfZzkPY7Jy1mqDvMRR/CsrxshjjmisdqtkQtqGaDSHr5pumWZt288N1+/2HivjsCe3lJd60yBoiw0w2qVoqpzhIclggJO+crlzCPWUdiVU4R/oIqEqnyXKv0WpeaxjBszu2QB2cWagSgNG5V4l7tagrw0IgYly6cIOZOb6nBu4PYN/RGEEtqAaFJN4KAwA2dbPtKJ/40LXb1RXRht1Pmsw8O7dpZqn0MVK6laRgArgxZF1bLBa9ko3bcL1uv+NYEcCrCs0XuMd8bHok6QOJHyP9SPhDjIcS7yDeEryFuMiDqKMgYkREtOQlG6Vi3YuCB8heFvpZ0APBS8ADh4+a+BjwWZl+3sUDZJiJhZzKReVGFQIzd85iZFZVhJCeCy0LzEJy6FV1yr7gLN/pNmmgaiCE5TjtUHVRRJ7mQrON9WpQgN7Rt6vR8FyzXV08o68K5LKEMkDjGuC4dSAMFW7sSsegDYHaF7ZhrDi4GS6AdyW9B7wPPJSFh8CPwN4xeEfwDvA2cHnFW/PDtN+d4cyrMj5v8IakXwXedOwNSb8QXbQ4c4lKSrFiCJxVgIdczjnpYIRcCUUQL6GtcrDgoLMEoFVpGkJypxZSC2EwMsJ2ZrrLNbXBjW8qA+WClgBF5E7TNCyaJgXxA4UZu9RxkuB523GcNgXZlCuVRNu2m+LQdyR908y+C3xV0tfN7C3gPeAD7o69ndsfD071R4C/Avyi0Jcl+1tR+jS5uN16gKBcXzy1AnYQxnlKeTxC1SY1rOoBgBWEegSgrcIpy5BahtMG6rmWy2bmbLUO2H/n3ZCNxha1C7yZ8ezpMx7PIo+eLSaThmHcNgXbOFZbLBZrrneonkOXLqkFfgh8DfiOpG+Y2dey+rzD82lPga/m9i9Irvs3Bb/t4stR+rWQY1SH81MC+OJSBT3B5wsI51DPEnCh7gFUB6J10IX82rBQoQ5OI0+7GMKSm+xal5xoXQlTZ0kKeq3/lSdhJjRvaC/hww8/YBbPeHyxWKvBrZQ8JtzoOM4buuihsmXYPgB+AHxN0jckfTvD9jC7159UewT829z+gWG/bmZ/Oxi/bwnWkyUh30cxwScBEbxBNsfaGlUzCLMMXo2FgRpaSCBWaeoWsBCycoUeQAVL1aMBjKsxpHpXKwwTKStEGUfHclao+YL4rOX999/DL2Y8uVj0brEDsINsXCIZF4knCs0/MLP/DXxd0v+Q9F0z+/pzrGqntP+W2z82mJ2yDvhPgf8OfBnpt0F/PVHQIm+xuFjC1rngFRXMSjgAUrbMnMhQulnqwumUsCuZGpgt+yGNYT0rA5gzdEPooqF5Ouedt9/m8n7N08vFmvrtAg1ogO8A/xP4FvBnwP8ys28BjwtrO605dU/If83tHwG/DPoy0t8E/oYUP4JS7JN8Ykh8WkAhjFxxB2BIRSYLaT1SPQksV0RXC9TqQVv+9EYKdFMx1lxLhV40NM/Oef+991jcr7lYtJPdZINi9GNJ3zKzbwLfBr5qZt8Dvg/MC0vXZ8eOhvlGbv8EeA3sdxB/DfQroM+AHoAhj5gziO9Cxsiw0CldSGrIMDGxwe8wDXsuMjRa7Zmx0XgFb1u8gflizrxy2tYB5mb2oaR3c2z2XeDbZvZV4HvAWwWH5wfAoT0E/lluAA+Q3gQ+D/Y50BcQbyB9WubBLPQ1bRsOTLDuZ786l2sr8V+Po9mgNtg5ZHML/Bj4ANm7uH4I/EjSWzk2ewi8JeltM3uq5+5H/wqAh9j/A/5Tbp2dAZ8DXkN6AXiQQOUBppchvIL4aErrBaKlq+SnqQvlir7mEB7mEsdDjPdA/zfVrKwkAs+ZWRGDYrdp5TENxQqAxQqAxYoVAIsVAIsVKwAWKwAWK1YALFYALFasAFisAFisWAGwWAGwWLECYLECYLFiBcBiBcBixQqAxQqAxYoVAIsVAIsVKwAWKwAWK1YALFYALFasAFisAFisWAGw2N2z/w+bNJEJTL3R6wAAAABJRU5ErkJggi5wbmc=",Km=r.p+"static/media/visa-logo.13c91cd102ecca66f6ac.png",Qm=r.p+"static/media/paypal-logo.e3abf7ded251409784b6.png",Ym=r.p+"static/media/microsoft-logo.8ced6b2eb85f151a553e.png",Zm="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAL8AAAB5CAYAAABoW/CvAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAAFCRJREFUeJztnXl4VOW9xz8zmZksZEI2QLZAgpgEFQiLLG1BWhGLBRHKZh/61BaF1u22wsUlz33KpV6MS+3ivQiC3t4imyDgA6FS9SEqIIKhLAIiSTCEQAhJyEa2mfndP4aMCZmEhGTmnDdzPs9znsBZ3vd7zvmeM+/yO+9rEhEaYjKZYoGZwBQgGbgFCMHAQP84gAIgB9gFbBKRM83uLSJcewBsQCpQCoixGEsnWOqAVUBsvc8bLiYRwWQyRQObgQkYGHQ+8oAHRCSz4UoTEApkACO1UGVg4CeKgVENi0FmYAWG8Q06P9HAeyaTyVq/wgS4rv01MAgEHhOR/wG36UVjMQYG/uQc0E9ExKy1EgMDP9MXGA7uMr+BQaDxPTDMbxCY9ALD/AaBSQwY5jcIYAzzGwQshvkNAhbD/AYBi0VrAXrADAzEwu1Y6Y+FeCxEY6YrZkIadH6X4KIEFxdxkoODbBwcoY4ruPwvuktXiB8CPeLdS2R3CI+C8Mjv9qmthspSqCiBS2eh4CycOwn5Z0A00KwzAtb8iVi4hxAmEMJwbITfZISHAFk42EsNH1FNBjVc9UWneUgXuP0HMHgCJI91G950k1Ep1RVwJhOO7YEjH0P+Nx0qVRUCKryhB0HMJoyfEkoy1hsfcBNUIeykik1UkUF1+34TTGa4czx8bwYM/zHYfPRN0blTsG8L7N0MVy75Jg99sUZE5geE+ZOx8hvCmU4oNj/G8GXh4A0q2MBVqttymW0h8IPZMOkRuCXedwKvx1EL+7fBrpWQd8p/+fqfzm/+vgTxb9j5GV0I0lDHBZy8QjnrqMTR0o4mM4ycDHNSIbavv+Q1RQQO7oR3l7vrCZ2Pzmv+YEw8hZ2nCPfrm/5GnKCOp7nCIWqbbux/Jzyc5q7E6gWnw/0rsPVVqKvRWk1H0jnNPwIb/00UCTqtyzuBVVTwB8qoRcBig9nPwb2/cr/59cjFbHjjCcj+l9ZKOorOZX4z8CR2lhChU9s35rhZmN+nBzkLXsHVN0lrOTfG6YDNaZC+wl0sUps1IjJfp6+athGMiRVE87wixgeIuiWZB6f/hV7RCVpLaR1BFpj9PDy+EmyhWqvpEJQ3fwxmdhDLdNS5ISeTxrFuznLEGs6MnFJuK1WoPD3yfnhuM9ijtVbSbpQ2f3eC2EYsQ7FpLaXVHBr+AO9PWYwzyN3PYBHhJ7mlpBRVaaysDSQMhWfeha7dtFbSLpQ1fzRmthFLko86q3zB0Tvv5aMfzkeua4EyAT+8UM6gKwo9AH2T4JmN0CXyxvvqFCXNH4KJtcQwUJkSPmQljOQf9z7WxPgeBCbllRNfrlARqHciLFoLwWFaK7kplDO/CXidKEYqVNS5cMtAtk59Bpe55a42s8CU3DJ6VLXYFaYvBqTAL1/SWsVNoZz5f004DyhUua21hfL+TxbjsAa3an+ry10HsLkUak4c8yBM/KXWKtqMUuYfjJVUIrSW0SZ23/MbSqJ6temYyFonE/LLfaTIR8z9D4gbpLWKNqGM+W2Y+CtRWHUUrnAjTiSP5/jtNzf27x0l1dxWplD532KFR//k/qsIypj/McIZpFDLTk1wGB/+8NF2pfGj8+VqFX/ibof7FmitotUoYf6e16IzVWL/qFlcDevarjTCHC5GFlZ2kCI/MfVJiOqhtYpWoYT5nyWCMIWKO2UR3Tg4/IEOSWt4YRX2OoU+OQzpAg8+rbWKVqF788cRxE8Vat0B+PR7P8PZQWVfqwhjLin29v/+LIjprbWKG6J78z+OXalK7tWwrpxIHt+haSaXVBPqVOjtb7HC5IVaq7ghujZ/OCZmolbv4ZHBkzxxOx2FRYQ7Sqo7NE2f84NZEBKutYoW0bX5ZxF206MqaIHLZOZfQ+7zSdpDiqoUuhK4jT+6Y+o9vkLX5p+h2Fv/235DKI3o7pO0u9Y66VNZ55O0fcbYB7VW0CK6NX93ghihUPwOwJkBd/k0/QSVOr0AEke5B9PSKbo1/yRC9CuuGbLjh/s0/YRyLx++6xmTGYb8SGsVzaJbf32f1gWC6YXiqN5tjuFpK9E1DiJrnT7No8NJGq21gmbRrfnHKlbkOdf3dr/k01u1cn/SGK0VNIsuzd+dIG7RdJiptlMY298v+cRWKxTrD+7OLnuM1iq8okvzD1LoC616Lsf280s+ypkf3J886hBdmv9WBc1fGBvnl3xiaxQ0f89btVbgFV2aX7Uij8MaTGWXKL/kFV7nwqLaoFFRt2itwCu6NH9PxcxfbfNvZ5zNqZj5o3tqrcArujS/XZ+ymqU2uItf8wtWzfwh/r0+rUWXLvPRFAw+o8bPw/fZXApFeIJuhzfUpfmD1ArhwtXBUZw3wqLYix8/X5/Wokvz1yg2cLS1zr8jrdWYdXnbmqdOn+HYuryKbZrCRwcE1/jX/LW6vGst4Ofr01p0eRmLtJjasx3Yav37mWFNkC5vW/OUF2mtwCu6vIr5qBW8FVxzlSCXfzQ7TQq++Usuaq3AK7q8jHmKmd/schJVct4veZUEByE3O/+uVlzO01qBV3Rp/lMoFrkIxF7O9Us+hSH6bDlpkbyTWivwii7NfxpHy1N26pBul7/1Sz5FwWr1fuOogwtZWqvwii7NX4NwzNt0nTqmR0G2X/K5FKpY0N/ZY+4HQIfo0vwAexUzf7/cIwQ5fXuTHSYTeeFqfeTDyb1aK2gW3Zo/A312jDSHta6auHPHfZrHuXAbdapVdk98prWCZtGt+fdSS4li7f0JOV/6NP0cu2Jv/fJiOPW51iqaRbfmr0P4QLG3/23ffI5JfPPAislEVoRi5v9yl3vyap2iW/MDvINaA7R2Lb1IQk6mT9LOstsosyrW0pOxXmsFLaJr839OLScVa/MfdninT9I9EqPPsOBmOXcSsg5rraJFdG1+gDeo0FpCm0jI+ZKupR3bnX/FFsS3qrXy7HpDawU3RPfmf5cqzikU7mASF2MObO7QNL/oFqZWnOulb2H/Nq1V3BDdm78O4RXKtJbRJgYf+yfdOijcoTDEwvEoxb5t2/aariu69eje/AAbuMphhTq9zC4nd2e83SFpfdIzXK1AtrPHYO8WrVW0CiXM7wKep1SpVv8B2QeJb2fLT3aEjbMqlfVdTvi/58BHzb0djRLmBzhILSsVq/xO/sefCa26ucmkqyxmdvdSa8Jtdq2EM75p6vUFypgf4L8o42uF4j3tFUXc98/Xb+rY3b3tVFoVuj3nTsF7r7j/Hd0TRt4PY6fDmGna6moBha6u+9vehymiQqG2j8Sv9zL42O42HXM0OpQzEQoN0X61HP46H+quTZ5RfMEdxmwyu1t+dIpS5gf4BgePKxb1M+nDFfTJa13Q27lwKx/3UmjCbZcTVj0JF3Mar887BXs367qjSznzA+ykiiVc0VpGqwly1DHzvf+k+6WcFve7HGLh/bhInAo17vDO7yGzbb9sekFJ8wP8L5W8zM1VJrUguOYqM99bSkRZodftZdYgtvSPpDpIIedveQn++ZbWKm4aZc0P8BJlLFOoA8xefpl57yyiW+HZRuuLQixsHBBJhUoV3C0vw/Y/a62iXSh0tb3zF8pZxBVl2oDsFUU8tOFZTx0gr4uNDQlR6kRsOh3w1mLY/ietlbQb5c0P8DcqmcNlZarBodXlzN74PHlZH/FuP7s6RZ3yYnhpLuxZp7WSDqFTmB8ggxru5hL70f9ctTUIv3cVs/G9RbjW/A5qrmot6cac2g+pE+HkPq2VdBgmUKjRvBUEAb8mnH8nglAdjvb8ObX8jhK+aVhQ6zUQfvUyDBypnbDmqLnq7rz6YLW7WbNzsEZE5nc689fTlyD+QCSTdTLa/yWcLKecd6j0fsFNJhj/EMxYDF27+VteU0TcnyGuW6rbEdfaQec2fz0jsfEcEZpNal2MixVUsIoKrrbmUod0gUnz4b5HoUuk7wV64+Q+eHe5UnE6bSQwzF/PEKwsJJwphBLsh+LQNzhYTQUbuNo6019PcBiMmw33PAw9B3S8wOupq4GDO+Afq+HsUd/npy2BZf56umJmCqFMI5Qx2LB14IOQi5MPqGIzVWR25PcHA1LcQWIpEyG2b8el66h1Dy1y4H04uBOuqtNn0k4C0/wNCcPE9wlmJDZSsHEHVmJa2QBWi5CFgyPUkUktn1HTuBLrK3rfBklj3A9E/GDoEQ+WVsb8lxfBt19B9r/gzCE4uV+NlqaOxzC/N+yY6IOF7pjpiplIzLiAMlzUIJTg4iJO8nDqo1fBHAQxvSGyB4RHgjUYwiLcEZWVV9xL2WUozINqtb6H8CGG+Q0CljUiMr/TdHIZGLQVw/wGAYthfoOAxTC/QcBimF8xJk6cSHFxMXv27NFaivIY5lcMq9VKVFQUERGKDWuiQxSb4Kn9mEwmhgwZQnh4OCdOnKC4uNizrW/fvgwYMIDKykoyMzNxOr1HMVqtVpKTk7Hb7Rw5coSKipbbz8PCwkhOTiYoKIijR49SXe193oHQ0FASEhKIjIwkLy+P/Px86uraN0p1XFwcvXv35tSpU5SUlDTaduutt9K3b1+Ki4s5fvx4s+fbmZHOvmzatElERJYvXy5HjhyReqqrqyU1NVW6dOkiGzduFJfL5dl25swZGT58eKN0TCaTLFq0SAoLCz37VVRUyGOPPSb5+fkiInLnnXd69g8ODpa0tDQpKyvz7F9aWipPP/10E42pqalSWloqDbl48aK88MILYrFYZOzYsdISI0aMEECGDBkiIiI5OTny6quves5px44dnrwmTZokX331VaPjCwoK5IknnhCTyaT5/fLDslpEAsv8DodDysvLJSMjQ06fPu258SdPnhQRkdOnT0tGRoZUVFSIiMiFCxckIiLCk84f//jHZs3ndDobmd9kMsmWLVtERKSkpEQ2bdok6enp4nA4RERkyZIlnnQfffRRERGpq6uTHTt2yN///nc5cOCAOJ1OSU9PF0CGDRsmWVlZcuHCBRFxP7hZWVmepT7fevM7nU5xuVxy8OBBOXr0qMybN08AmTlzpkdrYWGhfPzxx5KTk+M5j9dee03z+2WY3wfmP3/+vPTr108AMZvNsm7dOs9NT0tL87z1EhMTpaqqSkTEY5qhQ4d63qI7d+6UoUOHSlRUlEybNk3Onz/vSafehNOmTRMRkdzcXOnVq5dHy6RJk8TpdEpFRYVERkYKIDt37hQR9y9TQ93x8fESHx/faN3kyZNFRCQzM9PrudabX0Tk4YcfbrQtIiJCLl++LCIia9askZCQEM+2hQsXeo4bM2aM5vfMx0vgmX/p0qWN1t99992et2RDIwCya9euRm/o5cuXi4jIsWPHxGKxNNp3xIgRngej3vwbNmwQEZFly5ZJVFRUo+XQoUMiIjJ9+nQBZOXKlSIikp2dLUuWLJGJEydK9+7dvZ5La81fVVUlZrO50bbZs2eLiEheXp4EBwc3Obb+l+r111/X/J75eFktIoHV2lNUVNTo/wUFBQBUVFQ0qYTWbzOb3ZdowAB3TP3WrVtxOBpHbx46dIivv/660bqEhAQAUlNTKS4ubrQMHz4cgP79+wPwwgsvcPbsWeLj43nxxRfZvXs3BQUFHDhwgLFjx97UuRYXF+NyNQ69GzhwIABffPEFNTVNv3X+7LPPGu3X2Qm41p6GeH76rv31tq2eykr35HhhYWFe0woJafy5ZH0L0O7duzl82PuQfQcPHgQgNzeXQYMGMWPGDMaNG8cdd9zByJEjueuuu0hPTycxMdHzMLYWb+dUfw6xsbFej4mJiWmkvbMT0OZvC3v37uUXv/gFc+fOZdmyZZSWlnq2TZ482fMWb7j/hAkTqKmp4Zlnnmm0zWw2N3orm81mqqqqWLt2LWvXrgUgOjqa48eP07NnT0aPHs327dsBPL9QoaFtn6Duk08+AWDMmDGkpKQ0eijtdjvz5s0D4NNPP21z2ioSUMWe9rB+/Xpyc3Pp1asX+/fvZ+7cuYwePZrFixezcePGJvuvWLGC0tJSpkyZwqpVqxg8eDCJiYk89NBDZGZm8vOf/9yzb2pqKh999BFTp05l4MCB9OnTh/vvv5/o6GgA8vPzPfuePXsWgMTERBYsWMD48eNZunQpvXv3vuE5fPnll6Snp2OxWNi9ezePP/44o0ePZs6cOezbt4+4uDjy8/N56y11hyBsK1pXPny+1Fd4n3zyyUbrk5KSRETkypUrTY55++23RUTk2Wef9axLSUnxNDU2JDs729NG37Cd/5577mnSdl9Pfbu7xWLxNLV6480332yi7YMPPmiy31NPPSXwXYU3Ly/P67WIiYmRffv2ec0rLy9Phg0bJoCEh4fLggULZMKECZrfPx8sq0UkMIo927dvJzs7m0OHDjVaX1RURFpamtce1/T0dAoKCti/f79n3eHDhxk0aBCPPPII48ePx263s2/fPl5++WUWLlyI3W6nsPC7gWg//PBDkpKSWLBgAaNGjcJut5OTk8O2bdvYunUrAA6Hg5SUFGbNmsW9995Lv379qKqqIicnh/Xr13uN4ZkzZw6//e1vGTFiBEFBQWRmZnrSu3TpEmlpaZSVef8et6ioiHHjxjFnzhymTp1KXFwchYWF7NmzhzfffNNznM1mIyYmhvDw8LZdbIUwvuQyaBaLxdKkZauTYHzJZdAyndT4HgzzGwQshvkNAhbD/AYBi2F+g0DkMhjmNwhMLoBhfoPA5FMw2vkNAo9coL+IiBnD/AaBxYtyLeTVDPxNYzEGBv7iCLC6/j8mIATIAO7SSpGBgR8oAkaJSFb9CrOIVAM/Bj7WTJaBgW/JBu5uaHy41tojIsXAfcBzQGnTYw0MlMQBvAHcJSLHr99ouv5zN5PJFAP8FJgKJAG9QCdTGhoYtIwDKACygF3Au9e/7Rvy/3FfKj00JX1SAAAAAElFTkSuQmCC",Jm=r.p+"static/media/americanexpress-logo.e86f108919f40e598c6a.png",Xm=r.p+"static/media/mastercard-logo.6b9cf7d7d6310a406161.png";function eg(){return(0,nt.jsx)("svg",{height:"100%",className:"fill-white hover:fill-blue-400 w-5 h-5",version:"1.1",viewBox:"0 0 512 512",width:"100%",xmlSpace:"preserve",xmlns:"http://www.w3.org/2000/svg",xmlnsSerif:"http://www.serif.com/",xmlnsXlink:"http://www.w3.org/1999/xlink",children:(0,nt.jsx)("path",{d:"M512,257.555c0,-141.385 -114.615,-256 -256,-256c-141.385,0 -256,114.615 -256,256c0,127.777 93.616,233.685 216,252.89l0,-178.89l-65,0l0,-74l65,0l0,-56.4c0,-64.16 38.219,-99.6 96.695,-99.6c28.009,0 57.305,5 57.305,5l0,63l-32.281,0c-31.801,0 -41.719,19.733 -41.719,39.978l0,48.022l71,0l-11.35,74l-59.65,0l0,178.89c122.385,-19.205 216,-125.113 216,-252.89Z"})})}function tg(){return(0,nt.jsx)("svg",{className:"fill-white hover:fill-blue-400 w-5 h-5",height:"100%",version:"1.1",viewBox:"0 0 600 600",width:"100%",xmlSpace:"preserve",xmlns:"http://www.w3.org/2000/svg",xmlnsSerif:"http://www.serif.com/",xmlnsXlink:"http://www.w3.org/1999/xlink",children:(0,nt.jsxs)("g",{transform:"matrix(1.01619,0,0,1.01619,44,43.8384)",children:[(0,nt.jsx)("path",{d:"M251.921,0.159C183.503,0.159 174.924,0.449 148.054,1.675C121.24,2.899 102.927,7.157 86.902,13.385C70.336,19.823 56.287,28.437 42.282,42.442C28.277,56.447 19.663,70.496 13.225,87.062C6.997,103.086 2.739,121.399 1.515,148.213C0.289,175.083 0,183.662 0,252.08C0,320.497 0.289,329.076 1.515,355.946C2.739,382.76 6.997,401.073 13.225,417.097C19.663,433.663 28.277,447.712 42.282,461.718C56.287,475.723 70.336,484.337 86.902,490.775C102.927,497.002 121.24,501.261 148.054,502.484C174.924,503.71 183.503,504 251.921,504C320.338,504 328.917,503.71 355.787,502.484C382.601,501.261 400.914,497.002 416.938,490.775C433.504,484.337 447.553,475.723 461.559,461.718C475.564,447.712 484.178,433.663 490.616,417.097C496.843,401.073 501.102,382.76 502.325,355.946C503.551,329.076 503.841,320.497 503.841,252.08C503.841,183.662 503.551,175.083 502.325,148.213C501.102,121.399 496.843,103.086 490.616,87.062C484.178,70.496 475.564,56.447 461.559,42.442C447.553,28.437 433.504,19.823 416.938,13.385C400.914,7.157 382.601,2.899 355.787,1.675C328.917,0.449 320.338,0.159 251.921,0.159ZM251.921,45.551C319.186,45.551 327.154,45.807 353.718,47.019C378.28,48.14 391.619,52.244 400.496,55.693C412.255,60.263 420.647,65.723 429.462,74.538C438.278,83.353 443.737,91.746 448.307,103.504C451.757,112.381 455.861,125.72 456.981,150.282C458.193,176.846 458.45,184.814 458.45,252.08C458.45,319.345 458.193,327.313 456.981,353.877C455.861,378.439 451.757,391.778 448.307,400.655C443.737,412.414 438.278,420.806 429.462,429.621C420.647,438.437 412.255,443.896 400.496,448.466C391.619,451.916 378.28,456.02 353.718,457.14C327.158,458.352 319.191,458.609 251.921,458.609C184.65,458.609 176.684,458.352 150.123,457.14C125.561,456.02 112.222,451.916 103.345,448.466C91.586,443.896 83.194,438.437 74.378,429.621C65.563,420.806 60.103,412.414 55.534,400.655C52.084,391.778 47.98,378.439 46.859,353.877C45.647,327.313 45.391,319.345 45.391,252.08C45.391,184.814 45.647,176.846 46.859,150.282C47.98,125.72 52.084,112.381 55.534,103.504C60.103,91.746 65.563,83.353 74.378,74.538C83.194,65.723 91.586,60.263 103.345,55.693C112.222,52.244 125.561,48.14 150.123,47.019C176.687,45.807 184.655,45.551 251.921,45.551Z"}),(0,nt.jsx)("path",{d:"M251.921,336.053C205.543,336.053 167.947,298.457 167.947,252.08C167.947,205.702 205.543,168.106 251.921,168.106C298.298,168.106 335.894,205.702 335.894,252.08C335.894,298.457 298.298,336.053 251.921,336.053ZM251.921,122.715C180.474,122.715 122.556,180.633 122.556,252.08C122.556,323.526 180.474,381.444 251.921,381.444C323.367,381.444 381.285,323.526 381.285,252.08C381.285,180.633 323.367,122.715 251.921,122.715Z"}),(0,nt.jsx)("path",{d:"M416.627,117.604C416.627,134.3 403.092,147.834 386.396,147.834C369.701,147.834 356.166,134.3 356.166,117.604C356.166,100.908 369.701,87.374 386.396,87.374C403.092,87.374 416.627,100.908 416.627,117.604Z"})]})})}function rg(){return(0,nt.jsx)("svg",{id:"Layer_1",className:"fill-white hover:fill-blue-400 w-5 h-5",version:"1.1",viewBox:"0 0 100 100",xmlSpace:"preserve",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:(0,nt.jsx)("path",{d:"M83,17.8C74.5,8.9,63.4,4.3,50,4.1C37.7,4.2,26.8,8.6,17.9,17.3C8.9,26,4.3,37,4.1,50c0,0,0,0,0,0c0,9.1,2.5,17.4,7.4,24.9 c4.9,7.4,11.6,13.2,20.1,17.1c0.3,0.1,0.7,0.1,1-0.1c0.3-0.2,0.5-0.5,0.5-0.8l0-4.9c0.1-2.1,0.7-5.3,1.7-9.5c1-4,1.7-6.7,1.9-7.6 c0.7-3,1.7-7.2,3-12.6c0.1-0.2,0-0.5-0.1-0.7c-0.4-0.8-1-2.6-1.5-6.6c0.1-2.7,0.8-5.2,2.1-7.3c1.2-2,3.1-3.1,5.7-3.5 c2,0.1,4.7,0.8,5.1,5.9c-0.1,1.8-0.8,4.5-1.9,8.1c-1.2,3.8-1.9,6.3-2.1,7.6c-0.7,2.5-0.2,4.8,1.5,6.8c1.6,1.9,3.8,2.9,6.5,3.1 c4.3-0.1,8.1-2.6,11.2-7.5c1.7-3,2.9-6.3,3.5-9.7c0.7-3.4,0.7-7.1,0-10.8c-0.7-3.8-2.2-7.1-4.5-9.8c0,0-0.1-0.1-0.1-0.1 c-4.3-3.7-9.5-5.3-15.6-5c-6,0.4-11.3,2.6-15.9,6.6c-2.9,3.2-4.8,7.1-5.7,11.6c-0.9,4.6,0,9.1,2.6,13.3c0.3,0.5,0.5,0.8,0.6,1 c0,0.3,0,1-0.5,2.8c-0.5,1.8-0.9,2.2-0.9,2.2c0,0-0.1,0-0.1,0.1c0,0-0.2,0-0.4-0.1c-2.2-1-3.9-2.4-5.2-4.2c-1.3-1.9-2.1-4-2.5-6.3 c-0.3-2.5-0.4-5-0.3-7.5c0.2-2.5,0.7-5.1,1.4-7.7c3-6.9,8.5-11.9,16.3-14.8c7.8-2.9,16-3.2,24.3-0.8c6.5,2.8,11,7.4,13.6,13.7 c2.5,6.4,2.8,13.4,0.8,20.8c-2.2,7.1-6.4,12.4-12.1,15.7c-5.6,2.8-10.8,3-15.7,0.7c-1.8-1.1-3.1-2.3-3.9-3.5c-0.2-0.3-0.6-0.5-1-0.5 c-0.4,0.1-0.7,0.3-0.8,0.7c-0.7,2.7-1.3,4.7-1.6,6.2c-1.4,5.4-2.6,9.2-3.4,11c-0.8,1.6-1.6,3.1-2.4,4.3c-0.2,0.3-0.2,0.6-0.1,0.9 s0.3,0.5,0.6,0.6c4.3,1.3,8.7,2,13,2c12.4-0.1,23.2-4.6,32.1-13.4C91.1,73.9,95.8,62.9,96,50C95.9,37.5,91.5,26.7,83,17.8z"})})}function ng(){return(0,nt.jsx)("svg",{height:"100%",className:"fill-white hover:fill-blue-400 w-5 h-5",version:"1.1",viewBox:"0 0 512 512",width:"100%",xmlSpace:"preserve",xmlns:"http://www.w3.org/2000/svg",xmlnsSerif:"http://www.serif.com/",xmlnsXlink:"http://www.w3.org/1999/xlink",children:(0,nt.jsx)("path",{d:"M161.014,464.013c193.208,0 298.885,-160.071 298.885,-298.885c0,-4.546 0,-9.072 -0.307,-13.578c20.558,-14.871 38.305,-33.282 52.408,-54.374c-19.171,8.495 -39.51,14.065 -60.334,16.527c21.924,-13.124 38.343,-33.782 46.182,-58.102c-20.619,12.235 -43.18,20.859 -66.703,25.498c-19.862,-21.121 -47.602,-33.112 -76.593,-33.112c-57.682,0 -105.145,47.464 -105.145,105.144c0,8.002 0.914,15.979 2.722,23.773c-84.418,-4.231 -163.18,-44.161 -216.494,-109.752c-27.724,47.726 -13.379,109.576 32.522,140.226c-16.715,-0.495 -33.071,-5.005 -47.677,-13.148l0,1.331c0.014,49.814 35.447,93.111 84.275,102.974c-15.464,4.217 -31.693,4.833 -47.431,1.802c13.727,42.685 53.311,72.108 98.14,72.95c-37.19,29.227 -83.157,45.103 -130.458,45.056c-8.358,-0.016 -16.708,-0.522 -25.006,-1.516c48.034,30.825 103.94,47.18 161.014,47.104"})})}function og(){const{t:e}=rt(),t=[Qm],r=[{link:"/#_",icon:(0,nt.jsx)(eg,{})},{link:"/#_",icon:(0,nt.jsx)(tg,{})},{link:"/#_",icon:(0,nt.jsx)(rg,{})},{link:"/#_",icon:(0,nt.jsx)(ng,{})}];return(0,nt.jsxs)("footer",{className:"footer bg-gray-900 text-white",children:[(0,nt.jsx)("div",{className:"footer-top text-sm",children:(0,nt.jsxs)("div",{className:"container",children:[(0,nt.jsxs)("div",{className:"footer-brand",children:[(0,nt.jsxs)("a",{href:"/",className:"flex flex-wrap items-end text-2xl mb-3 text-white lowercase font-bold",children:["Shared",(0,nt.jsx)("span",{className:"text-blue-600",children:"Store"})]}),(0,nt.jsx)("div",{className:"footer-text",children:["Sharedstore","+212 611-223344","support@sharedstore.ma","Florida Centre Park 2 Lot 7, Casablanca"].map(((e,t)=>(0,nt.jsx)("span",{children:e},t)))}),(0,nt.jsx)("ul",{className:"social-list",children:r.map(((e,t)=>(0,nt.jsx)("li",{children:(0,nt.jsx)("a",{className:"social-link",href:e.link,children:e.icon},t)})))})]}),(0,nt.jsxs)("ul",{className:"footer-list",children:[(0,nt.jsx)("li",{children:(0,nt.jsx)("p",{className:"footer-list-title",children:e("links")})}),[{link:"/#_",name:"footer-list1.item1"},{link:"/#_",name:"footer-list1.item2"},{link:"/#_",name:"footer-list1.item3"},{link:"/#_",name:"footer-list1.item4"},{link:"/#_",name:"footer-list1.item5"},{link:"/#_",name:"footer-list1.item6"},{link:"/#_",name:"footer-list1.item7"}].map(((t,r)=>(0,nt.jsx)("li",{children:(0,nt.jsx)("a",{href:t.link,className:"footer-link",children:e(t.name)},r)})))]}),(0,nt.jsxs)("ul",{className:"footer-list",children:[(0,nt.jsx)("li",{children:(0,nt.jsx)("p",{className:"footer-list-title",children:e("help")})}),[{link:"/#_",name:"footer-list2.item1"},{link:"/#_",name:"footer-list2.item2"},{link:"/#_",name:"footer-list2.item3"},{link:"/#_",name:"footer-list2.item4"},{link:"/#_",name:"footer-list2.item5"}].map(((t,r)=>(0,nt.jsx)("li",{children:(0,nt.jsx)("a",{href:t.link,className:"footer-link",children:e(t.name)},r)})))]}),(0,nt.jsxs)("ul",{className:"footer-list",children:[(0,nt.jsx)("li",{children:(0,nt.jsx)("p",{className:"footer-list-title",children:e("partners")})}),(0,nt.jsx)("li",{children:(0,nt.jsx)("img",{className:"h-20 w-auto",src:Ym,alt:"Microsoft"})})]})]})}),(0,nt.jsx)("div",{className:"footer-bottom py-2",children:(0,nt.jsxs)("div",{className:"container",children:[(0,nt.jsxs)("p",{className:"copyright text-sm",children:["\xa9 2024 ",(0,nt.jsx)("a",{href:"/",className:"text-white",children:"Shared System"}),", ",e("all-rights"),"."]}),(0,nt.jsx)("ul",{className:"footer-bottom-list text-sm",children:(0,nt.jsxs)("div",{className:"payment max-md:mb-14",children:[(0,nt.jsx)("p",{className:"payment-title",children:e("secure-payment")}),(0,nt.jsx)("div",{className:"flex flex-wrap gap-4",children:t.map(((e,t)=>(0,nt.jsx)("img",{src:e,alt:"Online payments",className:"h-8 w-auto"},t)))})]})})]})})]})}function ag(e){return $e({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",strokeWidth:"2",d:"M5,5 L22,5 L20,14 L7,14 L4,2 L0,2 M7,14 L8,18 L21,18 M19,23 C18.4475,23 18,22.5525 18,22 C18,21.4475 18.4475,21 19,21 C19.5525,21 20,21.4475 20,22 C20,22.5525 19.5525,23 19,23 Z M9,23 C8.4475,23 8,22.5525 8,22 C8,21.4475 8.4475,21 9,21 C9.5525,21 10,21.4475 10,22 C10,22.5525 9.5525,23 9,23 Z"},child:[]}]})(e)}function ig(e){return $e({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",strokeWidth:"2",d:"M12,23 C18.0751322,23 23,18.0751322 23,12 C23,5.92486775 18.0751322,1 12,1 C5.92486775,1 1,5.92486775 1,12 C1,18.0751322 5.92486775,23 12,23 Z M12,23 C15,23 16,18 16,12 C16,6 15,1 12,1 C9,1 8,6 8,12 C8,18 9,23 12,23 Z M2,16 L22,16 M2,8 L22,8"},child:[]}]})(e)}const sg=localStorage.getItem("language")||"en";ap.use(Je).init({resources:{en:{translation:{"welcome-table":"Here are all your products",product:"Product",products:"Products",name:"Product name",price:"Price",category:"Category",title:"Title",details:"Details",ratings:"Ratings",dateaddition:"Date of addition",admin:"Admin",view:"View",edit:"Edit",delete:"Delete",titleBanner:"Click to add a product",textBanner:"The administrator can add, update or delete products.","shop-cart":"Shopping cart",cart:"Cart",checkout:"Checkout",subtotal:"Subtotal",login:"Login",register:"Register",home:"Home",shop:"Shop",about:"About","search-input":"Search products...","search-input-categories":"Search categories...","search-input-licenses":"Search licenses...","search-input-orders":"Search orders...","search-input-customers":"Search customers...","search-input-discounts":"Search discounts...","search-res":"Search result","best-sellers":"Best Sellers",sort:"Sort",popular:"The most popular",newest:"Newest",oldest:"Oldest","inc-price":"Increasing price","dec-price":"Decreasing price","proc-title-1":"1. Add a product to the shopping cart","proc-detail-1":"Use the quick browsing function to search for the software you need. Make your selection and add to your cart.","proc-title-2":"2. Apply promocode at checkout","proc-detail-2":"For extra savings, remember to check the homepage for any discount codes \u2014 Often, special promotions are running.","proc-title-3":"3. Receive activation key & download link in mailbox","proc-detail-3":"No frustrating shipping delays. Instead, get a download link in your mailbox. Install and start using your product right away.","process-title":"Download your software in seconds","process-detail":"Name's website has made the process of software download as easy as 1-2-3.","serv-1":"Reliable Service","serv-2":"Cheap prices","serv-3":"Email delivery","serv-4":"Global licenses","det-serv-1":"All Goods are checked manually to ensure maximal efficacy.","det-serv-2":"All Our software keys are substantially cheaper than our competitors.","det-serv-3":"Receive your software keys within seconds. No delays.","det-serv-4":"No region restrictions on products purchased.",testimonials:"Testimonials","testimonials-1":"Hear What Our Happy Customers Have to Say","All-products":"All products","Microsoft-office":"Microsoft office","microsoft-products":"Microsoft products","Operating-system":"Operating system","Windows-servers":"Windows servers","Antivirus-security":"Antivirus & security",Bundles:"Bundles","upload-image1":"Click to upload","upload-image2":"the product image","add-prod":"Add product","edit-prod":"Edit product",addreview:"Add a review",outof:"out of","review-desc":"The comment",cancel:"Cancel",reviews:"Reviews",addfav:"Add to my favorites",nofav:"Remove from my favorites",addcart:"Add to cart","prolist-1":"Instant digital download","prolist-2":"Lifetime support",writereview:"Write a review",viewmore:"View more reviews",viewless:"View less reviews",removeorder:"Remove the product","removeorder-1":"Are you sure you want to remove this product?",removeprod:"Remove the product","removeprod-1":"Are you sure you want to remove this product?",yes:"Yes","our-products":"Our Products","product-categories":"Product Categories",available:"Available",unavailable:"Unavailable",availability:"Availability",logout:"Logout","logout-msg":"are you sure you want to log out?",account:"Account",hello:"Hello","hello-1":"From your account dashboard you can view your recent orders, manage your shipping and billing addresses, and edit your password and account details.",orders:"Orders",dashboard:"Dashboard",payment:"Payment methods","account-details":"Account details","all-orders":"All my orders","all-orders-1":"No order has been made yet.","all-orders-2":"Browse products",purchases:"Purchases","my-purchases":"My purchases","all-purchases":"All my purchases","all-purchases-1":"No purchase has been made yet.","all-purchases-2":"Browse products","add-payment":"Add payment method","all-payment-methods":"All my payment methods",fullname:"Full name",fname:"First name",lname:"Last name",save:"Save","leave-blank":"leave blank to leave unchanged",username:"Username","edit-username":"Your current username is","new-name":"You can add the full name here","edit-name":"Your current full name is","edit-email":"Email Address","edit-email-1":"Your current email is","edit-password":"Password change","edit-password-1":"Do you want to change your","edit-password-2":"current password","current-password":"Current password","new-password":"New password","conf-new-password":"Confirm new password","error-not-match":"Passwords do not match","error-username":"The username has already been taken","error-1":"Something's missing","error-2":"Sorry, we can't find that page. You'll find lots to explore on the home page.","error-3":"Back to Homepage","error-displaying-infos":"Error displaying informations","login-1":"Login to your account",email:"Email","username-email":"Username or email",password:"Password","remember-me":"Remember me","forgot-password":"Forgot password?","msg-login":"Don\u2019t have an account yet?","create-acc":"Create an account","conf-password":"Confirm password","i-accept":"I accept the",terms:"Terms and Conditions","already-have":"Already have an account?","s-login":"Login successful!","e-login":"Login failed. Please try again.","s-register":"Registration successful!","e-register":"Registration failed. Please try again.","s-add-cart":"Product added to cart!","e-add-cart":"Failed to add product to cart. Please try again.","s-remove-cart":"Product removed from cart!","e-remove-cart":"Failed to remove product from cart. Please try again.","s-add-fav":"Product added to favorites!","e-add-fav":"Failed to add product to favorites. Please try again.","s-remove-fav":"Product removed from favorites!","e-remove-fav":"Failed to remove product from favorites. Please try again.","s-logout":"Logged out successfully!","e-logout":"Logout failed. Please try again.","s-add-rev":"Review added successfully!","e-add-rev":"Failed to add review. Please try again.","s-remove-rev":"Review removed successfully!","e-remove-rev":"Failed to remove review. Please try again.","s-up-username":"Username updated successfully!","e-up-username":"Failed to update username. Please try again.","s-up-name":"Full name updated successfully!","e-up-name":"Failed to update full name. Please try again.","s-up-email":"Email updated successfully!","e-up-email":"Failed to update email. Please try again.","s-up-psw":"Password updated successfully!","e-up-psw":"Failed to update password. Please try again.","e-current-psw":"The current password is incorrect.",favorites:"Favorites",settings:"Settings","no-results":"No result","warning-checkout-title":"Important Notice","warning-checkout-text":"To proceed with the checkout, you need to sign up on our website. Please create an account or log in to continue with your purchase.",phone:"Phone","ur-phone":"Your phone",country:"Country","ur-country":"Your country",postcode:"Post code","ur-postcode":"Your post code",ppayment:"Payment",creditcard:"Credit card",cardnumber:"Card number",cardexpiration:"Card expiration",placeorder:"Place order",customers:"Customers",offers:"Offers","product-list":"Product list",categories:"Categories","add-product-success":"Product added successfully!","add-product-error":"Failed to add product.","update-product-success":"Product updated successfully!","update-product-error":"Failed to update product.","delete-product-success":"Product deleted successfully!","delete-product-error":"Failed to delete product.","total-amount":"Total amount",quantity:"Quantity",percentage:"Percentage",amount:"Amount",startdate:"Start date",enddate:"End date",create:"Create",coupon:"Coupon",discount:"Discount",coupons:"Coupons",discounts:"Discounts","err-code-unique":"The code has already been taken.","coupon-list":"Coupon List","special-coupons":"Special Coupons","add-coupon":"Add Coupon","add-coupon-success":"Coupon added successfully!","add-coupon-error":"Failed to add coupon.","delete-coupon-success":"Coupon deleted successfully!","delete-coupon-error":"Failed to delete coupon.","create-new-coupon":"Create New Coupon","category-list":"Category List","add-category":"Add Category","edit-category":"Edit Category","update-category":"Update Category","update-category-success":"Category updated successfully!","update-category-error":"Failed to update category.","add-category-success":"Category added successfully!","add-category-error":"Failed to add category.","delete-category-success":"Category deleted successfully!","delete-category-error":"Failed to delete category.","create-new-category":"Create New Category","discount-list":"Discount List","special-discounts":"Special Discounts","add-discount":"Add Discount","add-discount-success":"Discount added successfully!","add-discount-error":"Failed to add discount.","delete-discount-success":"Discount deleted successfully!","delete-discount-error":"Failed to delete discount.","create-new-discount":"Create New Discount","remove-coupon":"Remove Coupon","remove-coupon-txt":"Are you sure you want to remove this coupon?","remove-discount":"Remove Discount","remove-discount-txt":"Are you sure you want to remove this discount?","remove-category":"Remove Category","remove-category-txt":"Are you sure you want to remove this category?","all-coupons":"All coupons","active-coupons":"Active coupons","expired-coupons":"Expired coupons","all-discounts":"All discounts","active-discounts":"Active discounts","expired-discounts":"Expired discounts",add:"Add",all:"All","registration-date":"Registration date","see-discounts":"See discounts","msg-checkbox":"Check the box to enable the code input field.","up-to-discount":"Up to {{value}} discount","start>end":"Start date cannot be later than the end date.","end<now":"End date cannot be earlier than the current date.","discount-already-exist-1":"The product already has an active discount.","discount-already-exist-2":"Please remove the existing discount before adding a new one.",copy:"Copy code",copied:"Code copied!","download-coupon":"Download coupon","system-req":"System requirements","add-system-req":"Add another system requirement","remove-item":"Remove item","remove-item-txt":"Are you sure you want to remove this item?",license:"License",licenses:"Licenses","special-licenses":"Special Licenses","special-categories":"Special Categories","license-list":"License List","add-license":"Add License","edit-license":"Edit License","update-license":"Update License","update-license-success":"License updated successfully!","update-license-error":"Failed to update license.","add-license-success":"License added successfully!","add-license-error":"Failed to add license.","delete-license-success":"License deleted successfully!","delete-license-error":"Failed to delete license.","create-new-license":"Create New License","remove-license":"Remove License","remove-license-txt":"Are you sure you want to remove this license?","type-licence":"Type of licence",duration:"Duration",days:"Days",months:"Months",years:"Years",filter:"Filter","no-requirements":"There are no system requirements","favorites-list":"Favorites list","success-paypal":"Payment successful. Thank you for your purchase!","error-paypal":"Payment failed. Please try again or contact support.","my-transactions":"My transactions","all-transactions":"All my transactions","all-transactions-1":"No transaction has been made yet.","date&time":"Date & time","payment-method":"Payment method",thankyou:"Thank You","confirmation-purchase-title":"Thank You for Your Purchase!","confirmation-purchase-text-1":"Your order is being processed.","confirmation-purchase-text-2":"You will receive a confirmation email with your digital product license shortly.","confirmation-purchase-text-3":"If you have any questions or need assistance, please contact our support team.","browse-purchase":"Browse your purchases","error-unique-username":"This username is already taken.","error-unique-email":"This email is already registered.","placeholder-code-coupon":"Enter your coupon code...","coupon-expired":"Coupon has expired.","coupon-not-exist":"Coupon code does not exist.","coupon-not-valid":"Coupon is not yet valid. It will be available from","bank-cards":"Bank cards","card-number":"Card number","expiration-date":"Expiration date",pending:"Pending",cancelled:"Cancelled",completed:"Completed","image-crop":{title:"Crop Image",action:"Crop",success:"Image cropped successfully",error:"Image cropping failed"},"valid-until":"Valid until","purchase-coupon":"PURCHASE COUPON","to-continue-process":"Please create an account or log in to continue with this process.","footer-list1":{item1:"About Us",item2:"Contact Us",item3:"Privacy Policy",item4:"Terms & Conditions",item5:"Delivery & Payment",item6:"Refund & Returns Policy",item7:"Cookie Policy"},"footer-list2":{item1:"FAQs",item2:"Help Center",item3:"Get Confirmation ID Online",item4:"How to activate Office by Phone? Activation Guide",item5:"How to activate Windows by phone? Activation Guide"},help:"Help",links:"Links",partners:"Partners","secure-payment":"Secure payment with","all-rights":"All Rights Reserved","forgot-password-title":"Forgot your password?","forgot-password-text":"Don't worry! Just enter your email address below, and we'll send you instructions to reset your password.",or:"or","reset-password":"Reset password","reset-password-title":"Reset your password","reset-password-text":"Please enter a new password below to reset your account. Make sure it's something secure that you'll remember.","notif-reset-link-title":"Password Reset Notification","notif-reset-link-text":"The recent password reset link has been sent to your email. Please check your inbox and note that it may have been received in your spam folder.",iunderstand:"I understand",loading:"Loading","er-forgotpsw":"No account found for this email address",reports:"Reports",report:"Report",subject:"Subject","hi-admin":"Hi, Administrator","hi-text-admin-1":"We have an incoming lead for you.","hi-text-admin-2":"See the detail of the lead below.","set-status":"Set status","reply-mail":"Reply to mail","send-msg":"Send message","reply-user":"Reply to user report","sent-msg-success":"Thank you. We are reviewing your report and will respond soon.","sent-msg-error":"Sorry, there was an issue with your report submission. Please try again or contact us for assistance.","reply-user-success":"Reply sent successfully!","reply-user-error":"Failed to send reply!","contact-text-page-1":"Get answers to all your questions you might have.","contact-text-page-2":"We will answer any questions you may have about our online sales right here.","about-page-title-1":"We aim to Empower every Business","about-page-title-2":"and Individual to achieve more.","about-page-text-1":"Sharedstore is a platform that provides buyers from all around the world with the possibility to buy software keys at a fair price with no hassle through an innovative platform.","about-page-text-2":"We are the best way to buy, install, and use software! With Sharedstore, you won\u2019t just get an installation package and a wish of good luck. With us, you\u2019ll be sure that the license is legitimate and the software will surely work to your liking.","about-page-text-3":"Our software is 100% legitimate and can be installed safely and reliably. We deliver the software and assist you during the installation process from start to finish. We won\u2019t stop until you\u2019re fully satisfied!"}},fr:{translation:{"welcome-table":"Voici tous vos produits",product:"Produit",products:"Produits",name:"Nom du produit",price:"Prix",category:"Cat\xe9gorie",title:"Titre",details:"D\xe9tails",ratings:"Notes",dateaddition:"Date d'ajout",admin:"Administrateur",view:"Voir",edit:"\xc9diter",delete:"Supprimer",titleBanner:"Cliquez pour ajouter un produit",textBanner:"L'administrateur peut ajouter, mettre \xe0 jour ou supprimer des produits.","shop-cart":"Panier d'achats",cart:"Panier",checkout:"Sortie de caisse",subtotal:"Sous total",login:"S'identifier",register:"S'inscrire",home:"Accueil",shop:"Boutique",about:"\xc0 propos","search-input":"Rechercher un produits...","search-input-categories":"Rechercher des cat\xe9gories...","search-input-licenses":"Rechercher des licences...","search-input-orders":"Rechercher des commandes...","search-input-customers":"Rechercher des clients...","search-input-discounts":"Rechercher des remises...","search-res":"R\xe9sultats de la recherche","best-sellers":"Meilleures ventes",sort:"Trier",popular:"Les plus populaires",newest:"Le plus r\xe9cent",oldest:"Le plus ancien","inc-price":"Prix croissant","dec-price":"Prix en baisse","proc-title-1":"1. Ajoutez un produit au panier","proc-detail-1":"Utilisez la fonction de navigation rapide pour rechercher le logiciel dont vous avez besoin. Faites votre s\xe9lection et ajoutez-la \xe0 votre panier.","proc-title-2":"2. Appliquez le code promo lors du paiement","proc-detail-2":"Pour des \xe9conomies suppl\xe9mentaires, pensez \xe0 v\xe9rifier la page d'accueil pour tout code de r\xe9duction \u2014 Souvent, des promotions sp\xe9ciales sont en cours.","proc-title-3":"3. Recevez la cl\xe9 d'activation et le lien de t\xe9l\xe9chargement dans votre bo\xeete mail","proc-detail-3":"Pas de retards d'exp\xe9dition frustrants. Recevez un lien de t\xe9l\xe9chargement dans votre bo\xeete mail. Installez et commencez \xe0 utiliser votre produit imm\xe9diatement.","process-title":"T\xe9l\xe9chargez votre logiciel en quelques secondes","process-detail":"Le site web de Name a rendu le processus de t\xe9l\xe9chargement de logiciels aussi facile que 1-2-3.","serv-1":"Service fiable","serv-2":"Prix bas","serv-3":"Livraison par e-mail","serv-4":"Licences globales","det-serv-1":"Toutes les marchandises sont contr\xf4l\xe9es manuellement pour garantir une efficacit\xe9 maximale.","det-serv-2":"Toutes les cl\xe9s de nos logiciels sont nettement moins ch\xe8res que celles de nos concurrents.","det-serv-3":"Recevez vos cl\xe9s logicielles en quelques secondes. Aucun d\xe9lai.","det-serv-4":"Aucune restriction r\xe9gionale sur les produits achet\xe9s.",testimonials:"T\xe9moignages","testimonials-1":"\xc9coutez ce que nos clients satisfaits ont \xe0 dire","All-products":"Tous les produits","Microsoft-office":"Microsoft office","microsoft-products":"Produits de microsoft","Operating-system":"Syst\xe8me d'exploitation","Windows-servers":"Serveurs Windows","Antivirus-security":"Antivirus et s\xe9curit\xe9",Bundles:"Collection","upload-image1":"Cliquez pour t\xe9l\xe9charger","upload-image2":"l'image du produit","add-prod":"Ajouter un produit","edit-prod":"\xc9diter le produit",addreview:"Ajouter un commentaire",outof:"sur","review-desc":"Le commentaire",cancel:"Annuler",reviews:"Commentaires",addfav:"Ajouter \xe0 mes favoris",nofav:"Retirer de mes favoris",addcart:"Ajouter au panier","prolist-1":"T\xe9l\xe9chargement num\xe9rique instantan\xe9","prolist-2":"Soutien \xe0 vie",writereview:"\xc9crire un commentaire",viewmore:"Voir d'autres commentaires",viewless:"Voir moins de commentaires",removeorder:"Retirer le produit","removeorder-1":"\xcates-vous s\xfbr de vouloir retirer ce produit?",removeprod:"Retirer le produit","removeprod-1":"\xcates-vous s\xfbr de vouloir supprimer ce produit?",yes:"Oui","our-products":"Nos produits","product-categories":"Cat\xe9gories de produits",available:"Disponible",unavailable:"Indisponible",availability:"Disponibilit\xe9",logout:"D\xe9connexion","logout-msg":"\xeates-vous s\xfbr de vouloir vous d\xe9connecter?",account:"Compte",hello:"Bonjour","hello-1":"Depuis le tableau de bord de votre compte, vous pouvez voir vos commandes r\xe9centes, g\xe9rer vos adresses de livraison et de facturation, et modifier votre mot de passe et les d\xe9tails de votre compte.",orders:"Commandes",dashboard:"Tableau de bord",payment:"Modes de paiement","account-details":"D\xe9tails du compte",purchases:"Achats","my-purchases":"Mes achats","all-purchases":"Tous mes achats","all-purchases-1":"Aucun achat n'a encore \xe9t\xe9 effectu\xe9.","all-purchases-2":"Parcourir les produits","all-orders":"Toutes mes commandes","all-orders-1":"Aucune commande n'a encore \xe9t\xe9 pass\xe9e.","all-orders-2":"Parcourir les produits","add-payment":"Ajouter un moyen de paiement","all-payment-methods":"Tous mes modes de paiement",fullname:"Nom et pr\xe9nom",fname:"Pr\xe9nom",lname:"Nom de famille",save:"Enregistrer","leave-blank":"laisser vide pour ne pas changer",username:"Nom d'utilisateur","edit-username":"Votre nom d'utilisateur actuel est","new-name":"Vous pouvez ajouter le nom complet ici","edit-name":"Votre nom complet actuel est","edit-email":"Adresse e-mail","edit-email-1":"Votre e-mail actuel est","edit-password":"Changement de mot de passe","edit-password-1":"Voulez-vous changer votre","edit-password-2":"mot de passe actuel?","current-password":"Mot de passe actuel","new-password":"Nouveau mot de passe","conf-new-password":"Confirmer le nouveau mot de passe","error-not-match":"Les mots de passe ne correspondent pas","error-username":"Le nom d'utilisateur a d\xe9j\xe0 \xe9t\xe9 utilis\xe9","error-1":"Il manque quelque chose","error-2":"D\xe9sol\xe9, nous ne trouvons pas cette page. Vous trouverez beaucoup de choses \xe0 explorer sur la page d'accueil.","error-3":"Retour \xe0 la page d'accueil","error-displaying-infos":"Erreur d'affichage des informations","login-1":"Se connecter \xe0 votre compte",email:"Adresse e-mail","username-email":"Nom d'utilisateur ou email",password:"Mot de passe","remember-me":"Souviens-toi de moi","forgot-password":"Mot de passe oubli\xe9?","msg-login":"Vous n'avez pas encore de compte?","create-acc":"Cr\xe9er un compte","conf-password":"Confirmer le mot de passe","i-accept":"J'accepte le",terms:"Termes et Conditions","already-have":"Avez-vous d\xe9j\xe0 un compte?","s-login":"Connexion r\xe9ussie!","e-login":"\xc9chec de la connexion. Veuillez r\xe9essayer.","s-register":"Inscription r\xe9ussie!","e-register":"\xc9chec de l'inscription. Veuillez r\xe9essayer.","s-add-cart":"Produit ajout\xe9 au panier!","e-add-cart":"\xc9chec de l'ajout du produit au panier. Veuillez r\xe9essayer.","s-remove-cart":"Produit retir\xe9 du panier!","e-remove-cart":"\xc9chec de la suppression du produit du panier. Veuillez r\xe9essayer.","s-add-fav":"Produit ajout\xe9 aux favoris!","e-add-fav":"\xc9chec de l'ajout du produit aux favoris. Veuillez r\xe9essayer.","s-remove-fav":"Produit retir\xe9 des favoris!","e-remove-fav":"\xc9chec de la suppression du produit des favoris. Veuillez r\xe9essayer.","s-logout":"D\xe9connexion r\xe9ussie!","e-logout":"\xc9chec de la d\xe9connexion. Veuillez r\xe9essayer.","s-add-rev":"Avis ajout\xe9 avec succ\xe8s!","e-add-rev":"\xc9chec de l'ajout de l'avis. Veuillez r\xe9essayer.","s-remove-rev":"Avis supprim\xe9 avec succ\xe8s!","e-remove-rev":"\xc9chec de la suppression de l'avis. Veuillez r\xe9essayer.","s-up-username":"Nom d'utilisateur mis \xe0 jour avec succ\xe8s!","e-up-username":"\xc9chec de la mise \xe0 jour du nom d'utilisateur. Veuillez r\xe9essayer.","s-up-name":"Nom complet mis \xe0 jour avec succ\xe8s!","e-up-name":"\xc9chec de la mise \xe0 jour du nom complet. Veuillez r\xe9essayer.","s-up-email":"Email mis \xe0 jour avec succ\xe8s!","e-up-email":"\xc9chec de la mise \xe0 jour de l'email. Veuillez r\xe9essayer.","s-up-psw":"Mot de passe mis \xe0 jour avec succ\xe8s!","e-up-psw":"\xc9chec de la mise \xe0 jour du mot de passe. Veuillez r\xe9essayer.","e-current-psw":"Le mot de passe courant est incorrect.",favorites:"Favoris",settings:"Param\xe8tres","no-results":"Aucun r\xe9sultat","warning-checkout-title":"Avis Important","warning-checkout-text":"Pour continuer avec le paiement, vous devez vous inscrire sur notre site Web. Veuillez cr\xe9er un compte ou vous connecter pour continuer votre achat.",phone:"T\xe9l\xe9phone","ur-phone":"Votre t\xe9l\xe9phone",country:"Pays","ur-country":"Votre pays",postcode:"Code postal","ur-postcode":"Votre code postal",ppayment:"Paiement",creditcard:"Carte de cr\xe9dit",cardnumber:"Num\xe9ro de la carte",cardexpiration:"Expiration de la carte",placeorder:"Passer commande",customers:"Clients",offers:"Offres","product-list":"Liste des produits",categories:"Cat\xe9gories","add-product-success":"Produit ajout\xe9 avec succ\xe8s!","add-product-error":"\xc9chec de l'ajout du produit.","update-product-success":"Produit mis \xe0 jour avec succ\xe8s!","update-product-error":"\xc9chec de la mise \xe0 jour du produit.","delete-product-success":"Produit supprim\xe9 avec succ\xe8s!","delete-product-error":"\xc9chec de la suppression du produit.","total-amount":"Montant total",quantity:"Quantit\xe9",percentage:"Pourcentage",amount:"Montant",startdate:"Date de d\xe9but",enddate:"Date de fin",create:"Cr\xe9er",coupon:"Coupon",coupons:"Coupons",discount:"Remise",discounts:"Remises","err-code-unique":"Le code a d\xe9j\xe0 \xe9t\xe9 utilis\xe9.","coupon-list":"Liste de coupons","special-coupons":"Coupons sp\xe9ciaux","add-coupon":"Ajouter un coupon","add-coupon-success":"Coupon ajout\xe9 avec succ\xe8s!","add-coupon-error":"Le coupon n'a pas \xe9t\xe9 ajout\xe9.","delete-coupon-success":"Coupon supprim\xe9 avec succ\xe8s!","delete-coupon-error":"\xc9chec de la suppression du coupon.","create-new-coupon":"Cr\xe9er un nouveau coupon","category-list":"Liste des cat\xe9gories","add-category":"Ajouter une cat\xe9gorie","add-category-success":"Cat\xe9gorie ajout\xe9e avec succ\xe8s !","add-category-error":"\xc9chec de l'ajout de la cat\xe9gorie.","edit-category":"Modifier la cat\xe9gorie","update-category":"Mise \xe0 jour de la cat\xe9gorie","update-category-success":"La cat\xe9gorie a \xe9t\xe9 mise \xe0 jour avec succ\xe8s!","update-category-error":"\xc9chec de la mise \xe0 jour de la cat\xe9gorie.","delete-category-success":"Cat\xe9gorie supprim\xe9e avec succ\xe8s !","delete-category-error":"\xc9chec de la suppression de la cat\xe9gorie.","create-new-category":"Cr\xe9er une nouvelle cat\xe9gorie","discount-list":"Liste de remises","special-discounts":"Remises sp\xe9ciales","add-discount":"Ajouter une remise","add-discount-success":"Remise ajout\xe9e avec succ\xe8s!","add-discount-error":"La remise n'a pas \xe9t\xe9 ajout\xe9e.","delete-discount-success":"Remise supprim\xe9e avec succ\xe8s!","delete-discount-error":"\xc9chec de la suppression de la remise.","create-new-discount":"Cr\xe9er une nouvelle remise","remove-coupon":"Supprimer le coupon","remove-coupon-txt":"\xcates-vous s\xfbr de vouloir supprimer ce coupon?","remove-discount":"Supprimer la remise","remove-discount-txt":"\xcates-vous s\xfbr de vouloir supprimer cette remise?","remove-category":"Supprimer la cat\xe9gorie","remove-category-txt":"\xcates-vous s\xfbr de vouloir supprimer cette cat\xe9gorie?","all-coupons":"Tous les coupons","active-coupons":"Coupons actifs","expired-coupons":"Coupons expir\xe9s","all-discounts":"Tous les remises","active-discounts":"Remises actives","expired-discounts":"Remises expir\xe9es",add:"Ajouter",all:"Tout","registration-date":"Date d'inscription","see-discounts":"Voir les remises","msg-checkbox":"Cochez la case pour activer le champ de saisie du code.","up-to-discount":"Jusqu'\xe0 {{value}} de remise","start>end":"La date de d\xe9but ne peut pas \xeatre post\xe9rieure \xe0 la date de fin.","end<now":"La date de fin ne peut pas \xeatre ant\xe9rieure \xe0 la date actuelle.","discount-already-exist-1":"Le produit a d\xe9j\xe0 une r\xe9duction active.","discount-already-exist-2":"Veuillez supprimer la r\xe9duction existante avant d'en ajouter une nouvelle.",copy:"Copier le code",copied:"Code copi\xe9!","download-coupon":"T\xe9l\xe9charger coupon","system-req":"Exigences syst\xe8me","add-system-req":"Ajouter une autre exigence de syst\xe8me","remove-item":"Supprimer l'\xe9l\xe9ment","remove-item-txt":"\xcates-vous s\xfbr de vouloir supprimer cet \xe9l\xe9ment ?",license:"Licence",licenses:"Licences","license-list":"Liste des licences","special-licenses":"Licences sp\xe9ciales","special-categories":"Cat\xe9gories sp\xe9ciales","add-license":"Ajouter une licence","edit-license":"Modifier la licence","update-license":"Mettre \xe0 jour la licence","update-license-success":"Licence mise \xe0 jour avec succ\xe8s !","update-license-error":"\xc9chec de la mise \xe0 jour de la licence.","add-license-success":"Licence ajout\xe9e avec succ\xe8s !","add-license-error":"\xc9chec de l'ajout de la licence.","delete-license-success":"Licence supprim\xe9e avec succ\xe8s !","delete-license-error":"\xc9chec de la suppression de la licence.","create-new-license":"Cr\xe9er une nouvelle licence","remove-license":"Supprimer la licence","remove-license-txt":"\xcates-vous s\xfbr de vouloir supprimer cette licence ?","type-licence":"Type de licence",duration:"Dur\xe9e",days:"Jours",months:"Mois",years:"Ann\xe9es",filter:"Filtre","no-requirements":"Il n'y a pas d'exigences de syst\xe8me","favorites-list":"Liste des favoris","success-paypal":"Paiement r\xe9ussi. Merci pour votre achat !","error-paypal":"Paiement \xe9chou\xe9. Veuillez r\xe9essayer ou contacter le support.","my-transactions":"Mes transactions","all-transactions":"Toutes mes transactions","all-transactions-1":"Aucune transaction n'a encore \xe9t\xe9 effectu\xe9e.","date&time":"Date et heure","payment-method":"Mode de paiement",thankyou:"Merci","confirmation-purchase-title":"Merci pour votre achat !","confirmation-purchase-text-1":"Votre commande est en cours de traitement.","confirmation-purchase-text-2":"Vous recevrez un e-mail de confirmation avec votre licence de produit num\xe9rique sous peu.","confirmation-purchase-text-3":"Si vous avez des questions ou besoin d'assistance, veuillez contacter notre \xe9quipe de support.","browse-purchase":"Parcourir vos achats","error-unique-username":"Ce nom d'utilisateur est d\xe9j\xe0 utilis\xe9.","error-unique-email":"Cet email est d\xe9j\xe0 enregistr\xe9.","placeholder-code-coupon":"Entrez votre code coupon...","coupon-expired":"Le coupon a expir\xe9.","coupon-not-exist":"Le code du coupon n'existe pas.","coupon-not-valid":"Le coupon n'est pas encore valide. Il sera disponible \xe0 partir de","bank-cards":"Cartes bancaires","card-number":"Num\xe9ro de carte","expiration-date":"Date d'expiration",pending:"En attente",cancelled:"Annul\xe9",completed:"Termin\xe9","image-crop":{title:"Recadrer l'image",action:"Recadrer",success:"Image recadr\xe9e avec succ\xe8s",error:"Le recadrage de l'image a \xe9chou\xe9"},"valid-until":"Valable jusqu'\xe0","purchase-coupon":"COUPON D'ACHAT","to-continue-process":"Veuillez cr\xe9er un compte ou vous connecter pour poursuivre cette proc\xe9dure.","footer-list1":{item1:"\xc0 propos de nous",item2:"Contactez-nous",item3:"Politique de confidentialit\xe9",item4:"Termes et conditions",item5:"Livraison et paiement",item6:"Politique de remboursement et de retour",item7:"Politique relative aux cookies"},"footer-list2":{item1:"FAQs",item2:"Centre d'aide",item3:"Obtenir un ID de confirmation en ligne",item4:"Comment activer Office par t\xe9l\xe9phone ? Guide d'activation",item5:"Comment activer Windows par t\xe9l\xe9phone ? Guide d'activation"},help:"Aide",links:"Liens",partners:"Partenaires","secure-payment":"Paiement s\xe9curis\xe9 avec","all-rights":"Tous droits r\xe9serv\xe9s","forgot-password-title":"Mot de passe oubli\xe9 ?","forgot-password-text":"Pas de panique ! Entrez simplement votre adresse e-mail ci-dessous et nous vous enverrons les instructions pour r\xe9initialiser votre mot de passe.",or:"ou","reset-password":"R\xe9initialiser le mot de passe","reset-password-title":"R\xe9initialiser votre mot de passe","reset-password-text":"Veuillez entrer un nouveau mot de passe ci-dessous pour r\xe9initialiser votre compte. Assurez-vous qu'il soit s\xe9curis\xe9 et facile \xe0 retenir.","notif-reset-link-title":"Notification de R\xe9initialisation de Mot de Passe","notif-reset-link-text":"Le lien de r\xe9initialisation de mot de passe a \xe9t\xe9 envoy\xe9 \xe0 votre adresse e-mail. Veuillez v\xe9rifier votre bo\xeete de r\xe9ception et noter qu'il peut avoir \xe9t\xe9 re\xe7u dans votre dossier spam.",iunderstand:"Je comprends",loading:"Chargement","er-forgotpsw":"Aucun compte n'a \xe9t\xe9 trouv\xe9 pour cette adresse \xe9lectronique",reports:"Rapports",report:"Rapport",subject:"Objet","hi-admin":"Bonjour, Administrateur","hi-text-admin-1":"Nous avons une piste pour vous.","hi-text-admin-2":"Voir le d\xe9tail de la piste ci-dessous.","reply-mail":"R\xe9pondre au courrier","set-status":"D\xe9finir le statut","send-msg":"Envoyer le message","reply-user":"R\xe9pondre \xe0 un rapport d'utilisateur","sent-msg-success":"Merci. Nous examinons votre rapport et vous r\xe9pondrons bient\xf4t.","sent-msg-error":"D\xe9sol\xe9, un probl\xe8me est survenu lors de la soumission de votre rapport. Veuillez r\xe9essayer ou nous contacter pour obtenir de l'aide.","reply-user-success":"R\xe9ponse envoy\xe9e avec succ\xe8s!","reply-user-error":"La r\xe9ponse n'a pas \xe9t\xe9 envoy\xe9e!","contact-text-page-1":"Obtenez des r\xe9ponses \xe0 toutes les questions que vous vous posez.","contact-text-page-2":"Nous r\xe9pondons ici \xe0 toutes les questions que vous vous posez sur nos ventes en ligne.","about-page-title-1":"Notre objectif est de donner \xe0 chaque entreprise","about-page-title-2":"et \xe0 chaque individu les moyens d'aller plus loin.","about-page-text-1":"Sharedstore est une plateforme qui offre aux acheteurs du monde entier la possibilit\xe9 d'acheter des cl\xe9s de logiciel \xe0 un prix juste et sans tracas gr\xe2ce \xe0 une plateforme innovante.","about-page-text-2":"Nous sommes le meilleur moyen d'acheter, d'installer et d'utiliser des logiciels ! Avec Sharedstore, vous ne recevrez pas seulement un package d'installation et un souhait de bonne chance. Avec nous, vous serez s\xfbr que la licence est l\xe9gitime et que le logiciel fonctionnera \xe0 votre convenance.","about-page-text-3":"Nos logiciels sont 100 % l\xe9gitimes et peuvent \xeatre install\xe9s en toute s\xe9curit\xe9 et fiabilit\xe9. Nous livrons le logiciel et vous assistons tout au long du processus d'installation, du d\xe9but \xe0 la fin. Nous ne nous arr\xeaterons pas tant que vous ne serez pas pleinement satisfait !"}}},lng:sg,fallbackLng:"en",interpolation:{escapeValue:!1}});const lg=ap;function cg(e){return $e({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M208.49,64.47l-144,144a12,12,0,1,1-17-17l144-144a12,12,0,0,1,17,17ZM47.72,104.27A40,40,0,1,1,76,116,39.72,39.72,0,0,1,47.72,104.27ZM60,76a16,16,0,1,0,4.69-11.31A15.87,15.87,0,0,0,60,76ZM220,180a40,40,0,1,1-11.72-28.29A39.71,39.71,0,0,1,220,180Zm-24,0a15.87,15.87,0,0,0-4.69-11.32h0A16,16,0,1,0,196,180Z"},child:[]}]})(e)}function ug(e){return $e({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M224,128v80a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32h80a8,8,0,0,1,0,16H48V208H208V128a8,8,0,0,1,16,0Zm5.66-58.34-96,96A8,8,0,0,1,128,168H96a8,8,0,0,1-8-8V128a8,8,0,0,1,2.34-5.66l96-96a8,8,0,0,1,11.32,0l32,32A8,8,0,0,1,229.66,69.66Zm-17-5.66L192,43.31,179.31,56,200,76.69Z"},child:[]}]})(e)}function dg(e){return $e({tag:"svg",attr:{viewBox:"0 0 256 256",fill:"currentColor"},child:[{tag:"path",attr:{d:"M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm81.57,64H169.19a132.58,132.58,0,0,0-25.73-50.67A90.29,90.29,0,0,1,209.57,90ZM218,128a89.7,89.7,0,0,1-3.83,26H171.81a155.43,155.43,0,0,0,0-52h42.36A89.7,89.7,0,0,1,218,128Zm-90,87.83a110,110,0,0,1-15.19-19.45A124.24,124.24,0,0,1,99.35,166h57.3a124.24,124.24,0,0,1-13.46,30.38A110,110,0,0,1,128,215.83ZM96.45,154a139.18,139.18,0,0,1,0-52h63.1a139.18,139.18,0,0,1,0,52ZM38,128a89.7,89.7,0,0,1,3.83-26H84.19a155.43,155.43,0,0,0,0,52H41.83A89.7,89.7,0,0,1,38,128Zm90-87.83a110,110,0,0,1,15.19,19.45A124.24,124.24,0,0,1,156.65,90H99.35a124.24,124.24,0,0,1,13.46-30.38A110,110,0,0,1,128,40.17Zm-15.46-.84A132.58,132.58,0,0,0,86.81,90H46.43A90.29,90.29,0,0,1,112.54,39.33ZM46.43,166H86.81a132.58,132.58,0,0,0,25.73,50.67A90.29,90.29,0,0,1,46.43,166Zm97,50.67A132.58,132.58,0,0,0,169.19,166h40.38A90.29,90.29,0,0,1,143.46,216.67Z"},child:[]}]})(e)}function fg(e){let{typeOfCompo:t}=e;const[r,o]=(0,n.useState)((()=>localStorage.getItem("language")||"en")),a=[{slung:"en",title:"English",icon:Vm},{slung:"fr",title:"Fran\xe7ais",icon:Gm}];(0,n.useEffect)((()=>{lg.changeLanguage(r)}),[r]);const i=e=>{lg.changeLanguage(e),o(e),localStorage.setItem("language",e),uh("success","fr"===e?"Langue d\xe9finie sur le Fran\xe7ais":"Language set to English")};return"dropdown"===t?(0,nt.jsx)(Hs,{className:"text-sm leading-6",label:"",dismissOnClick:!0,renderTrigger:()=>(0,nt.jsxs)("button",{className:"flex flex-wrap items-center gap-1 px-3 py-1.5",children:[(0,nt.jsx)("img",{src:"en"===r?Vm:Gm,className:"w-6 h-auto",alt:""})," ","en"===r?"English":"Fran\xe7ais"]}),children:a.map(((e,t)=>(0,nt.jsxs)(Hs.Item,{onClick:()=>i(e.slung),className:"flex flex-wrap items-center gap-1",children:[(0,nt.jsx)("img",{src:e.icon,className:"w-6 h-auto",alt:""})," ",e.title]},t)))}):"sidebar"===t?(0,nt.jsx)(Hs,{className:"text-sm leading-6 bg-white",label:"",dismissOnClick:!0,renderTrigger:()=>(0,nt.jsxs)("button",{className:"bg-white flex items-center leading-none gap-x-3.5 py-2 px-2.5 text-sm text-gray-800 rounded-lg hover:bg-gray-100 focus:outline-none focus:bg-gray-100",children:[(0,nt.jsx)(dg,{className:"shrink-0 size-4 w-[20px] h-[20px]"}),"en"===r?"English":"Fran\xe7ais"]}),children:a.map(((e,t)=>(0,nt.jsxs)(Hs.Item,{onClick:()=>i(e.slung),className:"flex flex-wrap items-center gap-1",children:[(0,nt.jsx)("img",{src:e.icon,className:"w-6 h-auto",alt:""})," ",e.title]},t)))}):(0,nt.jsx)(Hs,{className:"text-sm leading-6 bg-white",label:"",dismissOnClick:!0,renderTrigger:()=>(0,nt.jsx)("button",{className:("globeForDash"===t?"w-max fixed bottom-4 left-4 max-sm:bottom-3 max-sm:left-2":"fixed bottom-4 left-4 max-md:bottom-16 md:hidden")+" z-20 text-white bg-blue-600 hover:bg-blue-700 p-1 rounded-full",children:(0,nt.jsx)(ig,{className:"globeForDash"===t?"w-5 h-5":"w-6 h-6"})}),children:a.map(((e,t)=>(0,nt.jsxs)(Hs.Item,{onClick:()=>i(e.slung),className:"flex flex-wrap items-center gap-1",children:[(0,nt.jsx)("img",{src:e.icon,className:"w-6 h-auto",alt:""})," ",e.title]},t)))})}function pg(){return(0,nt.jsxs)(nt.Fragment,{children:[(0,nt.jsx)("div",{className:"flex items-center justify-center gap-x-6 bg-gray-900 text-white py-2 overflow-hidden max-md:hidden",children:(0,nt.jsxs)("div",{className:"container flex justify-between items-center",children:[(0,nt.jsxs)("div",{className:"flex flex-wrap gap-5 text-sm leading-6",children:[(0,nt.jsxs)("div",{className:"flex flex-wrap items-center gap-1",children:[(0,nt.jsx)(Fc,{className:"h-5 w-auto text-white"})," +212 611-223344"]}),(0,nt.jsxs)("div",{className:"flex flex-wrap items-center gap-1",children:[(0,nt.jsx)(Rc,{className:"h-5 w-auto text-white"})," support@sharedstore.ma"]})]}),(0,nt.jsx)(fg,{typeOfCompo:"dropdown"})]})}),(0,nt.jsx)(fg,{typeOfCompo:"globe"})]})}function hg(){return(0,nt.jsxs)("section",{className:"",children:[(0,nt.jsx)(pg,{}),(0,nt.jsx)(Tm,{}),(0,nt.jsxs)("div",{className:"bg-gray-100",children:[(0,nt.jsx)(Im,{}),(0,nt.jsx)(Mm,{}),(0,nt.jsx)(Rm,{}),(0,nt.jsx)(zm,{}),(0,nt.jsx)(Fm,{}),(0,nt.jsx)(Hm,{}),(0,nt.jsx)(og,{})]})]})}function mg(){const{t:e}=rt(),t=X(),[r,o]=(0,n.useState)(""),[a,i]=(0,n.useState)(""),[s,l]=(0,n.useState)(!1);return(0,nt.jsxs)("section",{className:"bg-gray-100",children:[(0,nt.jsx)(pg,{}),(0,nt.jsxs)("div",{className:"flex flex-col items-center justify-center px-6 py-8 mx-auto md:h-screen lg:py-0",children:[(0,nt.jsxs)("div",{className:"flex flex-wrap items-end text-4xl text-black lowercase font-bold mb-6",children:["Shared",(0,nt.jsx)("span",{className:"text-blue-600",children:"Store"})]}),(0,nt.jsx)("div",{className:"w-full bg-white rounded-lg shadow-lg md:mt-0 sm:max-w-md xl:p-0",children:(0,nt.jsxs)("div",{className:"p-6 space-y-4 sm:p-8",children:[(0,nt.jsx)("h1",{className:"text-lg font-bold leading-tight tracking-tight text-black",children:e("login-1")}),(0,nt.jsxs)("form",{onSubmit:async n=>{n.preventDefault();try{const n={login:r,password:a,remember_me:s},o=await gf.post("https://shop.sharedstore.ma/api/api/login",n);localStorage.setItem("token",o.data.access_token),uh("success",e("s-login")),setTimeout((()=>{t("/")}),500)}catch(o){uh("error",e("e-login"))}},className:"space-y-4 md:space-y-6",children:[(0,nt.jsxs)("div",{children:[(0,nt.jsx)("label",{htmlFor:"login",className:"block mb-2 text-sm font-medium text-black",children:e("username-email")}),(0,nt.jsx)("input",{type:"text",value:r,onChange:e=>o(e.target.value),name:"login",id:"login",className:"text-sm bg-gray-50 myborder text-black rounded-lg focus:ring-blue-600 focus:border-blue-600 block w-full p-2.5",placeholder:e("username-email")})]}),(0,nt.jsxs)("div",{children:[(0,nt.jsx)("label",{htmlFor:"password",className:"block mb-2 text-sm font-medium text-black",children:e("password")}),(0,nt.jsx)("input",{type:"password",value:a,onChange:e=>i(e.target.value),name:"password",id:"password",placeholder:"\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022",className:"text-sm bg-gray-50 myborder text-black rounded-lg focus:ring-blue-600 focus:border-blue-600 block w-full p-2.5"})]}),(0,nt.jsxs)("div",{className:"flex items-center justify-between",children:[(0,nt.jsxs)("div",{className:"flex items-start",children:[(0,nt.jsx)("div",{className:"flex items-center h-5",children:(0,nt.jsx)("input",{id:"remember",checked:s,onChange:e=>l(e.target.checked),type:"checkbox",className:"w-4 h-4 border border-gray-300 rounded bg-gray-200 focus:ring-3 focus:ring-blue-300"})}),(0,nt.jsx)("div",{className:"ml-3 text-sm",children:(0,nt.jsx)("label",{htmlFor:"remember",className:"text-gray-500",children:e("remember-me")})})]}),(0,nt.jsx)("a",{href:"/forgot-password",className:"text-sm font-medium text-blue-600 hover:underline",children:e("forgot-password")})]}),(0,nt.jsx)("button",{type:"submit",className:"w-full text-white bg-blue-600 hover:bg-blue-700 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center",children:e("login")}),(0,nt.jsxs)("p",{className:"flex flex-wrap gap-1 text-sm font-light text-gray-500",children:[e("msg-login")," ",(0,nt.jsx)("a",{href:"/register",className:"font-medium text-blue-600 hover:underline",children:e("register")})]})]})]})})]})]})}function gg(){const{t:e}=rt(),t=X(),r="https://shop.sharedstore.ma/api/api",[o,a]=(0,n.useState)(""),[i,s]=(0,n.useState)(""),[l,c]=(0,n.useState)(""),[u,d]=(0,n.useState)("");return(0,nt.jsxs)("section",{className:"bg-gray-100",children:[(0,nt.jsx)(pg,{}),(0,nt.jsxs)("div",{className:"flex flex-col items-center justify-center px-6 py-8 mx-auto md:h-screen lg:py-0",children:[(0,nt.jsxs)("div",{className:"flex flex-wrap items-end text-4xl text-black lowercase font-bold mb-6",children:["Shared",(0,nt.jsx)("span",{className:"text-blue-600",children:"Store"})]}),(0,nt.jsx)("div",{className:"w-full bg-white rounded-lg shadow-lg md:mt-0 sm:max-w-md xl:p-0",children:(0,nt.jsxs)("div",{className:"p-6 space-y-4 md:space-y-6 sm:p-8",children:[(0,nt.jsx)("h1",{className:"text-lg font-bold leading-tight tracking-tight text-black",children:e("create-acc")}),(0,nt.jsxs)("form",{onSubmit:async n=>{n.preventDefault();try{if(l===u){const n={username:o,email:i,password:l},a=await gf.post(`${r}/register`,n);localStorage.setItem("token",a.data.token),gf.get(`${r}/user`,{headers:{Authorization:`Bearer ${a.data.token}`}}).then((r=>{localStorage.setItem("username",r.data.username),uh("success",e("s-register")),setTimeout((()=>{t("/")}),500)})).catch((t=>{uh("error",e("e-register"))}))}else uh("error",e("error-not-match"))}catch(a){if(a.request&&422===a.request.status){const t=JSON.parse(a.request.response);t.errors.username&&uh("error",e(t.errors.username[0])),t.errors.email&&uh("error",e(t.errors.email[0]))}else uh("error",e("e-register"))}},className:"space-y-4 md:space-y-6",children:[(0,nt.jsxs)("div",{children:[(0,nt.jsx)("label",{htmlFor:"username",className:"block mb-2 text-sm font-medium text-black",children:e("username")}),(0,nt.jsx)("input",{type:"text",value:o,onChange:e=>a(e.target.value),name:"username",id:"username",className:"bg-gray-50 text-sm myborder text-black rounded-lg focus:ring-blue-600 focus:border-blue-600 block w-full p-2.5",placeholder:"joe.doe",required:!0})]}),(0,nt.jsxs)("div",{children:[(0,nt.jsx)("label",{htmlFor:"email",className:"block mb-2 text-sm font-medium text-black",children:e("email")}),(0,nt.jsx)("input",{type:"email",value:i,onChange:e=>s(e.target.value),name:"email",id:"email",className:"bg-gray-50 text-sm myborder text-black rounded-lg focus:ring-blue-600 focus:border-blue-600 block w-full p-2.5",placeholder:"name@example.com",required:!0})]}),(0,nt.jsxs)("div",{children:[(0,nt.jsx)("label",{htmlFor:"password",className:"block mb-2 text-sm font-medium text-black",children:e("password")}),(0,nt.jsx)("input",{type:"password",value:l,onChange:e=>c(e.target.value),name:"password",id:"password",placeholder:"\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022",className:"bg-gray-50 text-sm myborder text-black rounded-lg focus:ring-blue-600 focus:border-blue-600 block w-full p-2.5",required:!0})]}),(0,nt.jsxs)("div",{children:[(0,nt.jsx)("label",{htmlFor:"password2",className:"block mb-2 text-sm font-medium text-black",children:e("conf-password")}),(0,nt.jsx)("input",{type:"password",value:u,onChange:e=>d(e.target.value),name:"password",id:"password2",placeholder:"\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022",className:"bg-gray-50 text-sm myborder text-black rounded-lg focus:ring-blue-600 focus:border-blue-600 block w-full p-2.5",required:!0})]}),(0,nt.jsx)("div",{children:(0,nt.jsxs)("div",{className:"flex flex-wrap items-center",children:[(0,nt.jsx)("input",{type:"checkbox",className:"w-4 h-4 mr-2 border-2 border-gray-500 rounded bg-gray-200 focus:ring-3 focus:ring-blue-300",required:!0}),(0,nt.jsxs)("label",{htmlFor:"terms",className:"flex flex-wrap text-sm font-light text-gray-500",children:[e("i-accept")," ",(0,nt.jsx)("a",{className:"font-medium text-blue-600 hover:underline ml-1",href:"#_",children:e("terms")})]})]})}),(0,nt.jsx)("button",{type:"submit",className:"w-full text-white bg-blue-600 hover:bg-blue-700 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center",children:e("register")}),(0,nt.jsxs)("p",{className:"flex flex-wrap gap-1 text-sm font-light text-gray-500",children:[e("already-have"),(0,nt.jsx)("a",{href:"/login",className:"font-medium text-blue-600 hover:underline",children:e("login")})]})]})]})})]})]})}function bg(e){let{onCategorySelect:t}=e;const{t:r}=rt(),{refreshKey:o}=cp(),[a,i]=(0,n.useState)(!1),[s,l]=(0,n.useState)([]),c=()=>i(!1);return(0,n.useEffect)((()=>{(async()=>{try{const e=await kh();e&&l(e)}catch(e){console.error(e)}})()}),[o]),(0,nt.jsxs)(nt.Fragment,{children:[(0,nt.jsxs)("button",{onClick:()=>i(!0),className:"flex w-full items-center justify-center md:hidden rounded-lg border border-gray-200 bg-white px-3 py-2 text-sm font-medium text-black hover:bg-gray-100 hover:text-blue-700 focus:z-10 focus:outline-none focus:ring-4 focus:ring-gray-100 sm:w-auto",children:[(0,nt.jsx)(_c,{className:"-ms-0.5 me-2 h-4 w-4"}),r("filter")]}),(0,nt.jsxs)(Ms,{style:{marginLeft:"0px",marginRight:"0px"},open:a,onClose:c,children:[(0,nt.jsx)(Ms.Header,{title:r("product-categories"),titleIcon:()=>(0,nt.jsx)(nt.Fragment,{})}),(0,nt.jsx)(Ms.Items,{children:(0,nt.jsxs)("div",{className:"flex flex-col col-span-1 gap-2 mt-5",children:[(0,nt.jsx)("button",{onClick:()=>{t("All-products"),c()},className:"flex flex-wrap items-center gap-2 py-2 text-black hover:text-blue-700 text-sm font-semibold",children:r("All-products")}),s.map(((e,r)=>(0,nt.jsx)("button",{onClick:()=>{t(e.categoryID),c()},className:"flex flex-wrap items-center gap-2 py-2 text-black hover:text-blue-700 text-sm font-semibold",children:e.title[ap.language]},r)))]})})]})]})}function yg(e){let{allData:t}=e;return(0,nt.jsx)("div",{className:"col-span-4 max-md:col-span-5 min-h-screen",children:(0,nt.jsx)("div",{className:"mb-4 mt-3 grid sm:grid-cols-2 md:mb-8 lg:grid-cols-3 xl:grid-cols-3 gap-4",children:t.map(((e,t)=>(0,nt.jsx)(Lh,{data:e},t)))})})}function xg(e){return $e({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M18 4a3 3 0 0 1 3 3v8a3 3 0 0 1 -3 3h-5l-5 3v-3h-2a3 3 0 0 1 -3 -3v-8a3 3 0 0 1 3 -3h12z"},child:[]},{tag:"path",attr:{d:"M12 8v3"},child:[]},{tag:"path",attr:{d:"M12 14v.01"},child:[]}]})(e)}function vg(e){return $e({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M4 6l7 0"},child:[]},{tag:"path",attr:{d:"M4 12l7 0"},child:[]},{tag:"path",attr:{d:"M4 18l9 0"},child:[]},{tag:"path",attr:{d:"M15 9l3 -3l3 3"},child:[]},{tag:"path",attr:{d:"M18 6l0 12"},child:[]}]})(e)}function wg(e){return $e({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"m3 16 4 4 4-4"},child:[]},{tag:"path",attr:{d:"M7 20V4"},child:[]},{tag:"path",attr:{d:"m21 8-4-4-4 4"},child:[]},{tag:"path",attr:{d:"M17 4v16"},child:[]}]})(e)}function kg(e){return $e({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"m6 9 6 6 6-6"},child:[]}]})(e)}function jg(e){return $e({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M2 18h1.4c1.3 0 2.5-.6 3.3-1.7l6.1-8.6c.7-1.1 2-1.7 3.3-1.7H22"},child:[]},{tag:"path",attr:{d:"m18 2 4 4-4 4"},child:[]},{tag:"path",attr:{d:"M2 6h1.9c1.5 0 2.9.9 3.6 2.2"},child:[]},{tag:"path",attr:{d:"M22 18h-5.9c-1.3 0-2.6-.7-3.3-1.8l-.5-.8"},child:[]},{tag:"path",attr:{d:"m18 14 4 4-4 4"},child:[]}]})(e)}function Ng(e){return $e({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"},child:[]},{tag:"circle",attr:{cx:"9",cy:"7",r:"4"},child:[]},{tag:"path",attr:{d:"M22 21v-2a4 4 0 0 0-3-3.87"},child:[]},{tag:"path",attr:{d:"M16 3.13a4 4 0 0 1 0 7.75"},child:[]}]})(e)}function Cg(){const{t:e}=rt(),[t,r]=(0,n.useState)(!0),[o,a]=(0,n.useState)([]),[i,s]=(0,n.useState)([]),[l,c]=(0,n.useState)([]),[u,d]=(0,n.useState)("All-products"),[f,p]=(0,n.useState)("newest");(0,n.useEffect)((()=>{(async()=>{r(!0);try{const e=await kh();e&&s(e);const t=await gf.get(`https://shop.sharedstore.ma/api/api/productlist?sort=${f}`);a(t.data),r(!1),h(t.data,u)}catch(e){console.error(e)}})()}),[f,u]);const h=(e,t)=>{if("All-products"===t)c(e);else{const r=e.filter((e=>parseInt(t)===e.category_id));c(r)}},m=e=>{d(e),h(o,e)};return(0,nt.jsxs)("div",{className:"container pb-6",children:[(0,nt.jsxs)("div",{className:"flex justify-between items-center border-b py-4 space-y-4 sm:space-y-0",children:[(0,nt.jsx)("h2",{className:"text-xl font-medium text-black sm:text-2xl",children:e("our-products")}),(0,nt.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,nt.jsxs)(Hs,{label:"",dismissOnClick:!0,renderTrigger:()=>(0,nt.jsxs)("button",{className:"flex w-full items-center justify-center rounded-lg myborder shadow-sm bg-white px-3 py-2 text-sm font-medium text-black hover:bg-gray-100 hover:text-primary-700 focus:z-10 focus:outline-none focus:ring-4 focus:ring-gray-100 sm:w-auto",children:[(0,nt.jsx)(vg,{className:"-ms-0.5 me-2 h-4 w-4"}),e("sort"),(0,nt.jsx)(kg,{className:"-me-0.5 ms-2 h-4 w-4"})]}),children:[(0,nt.jsx)(Hs.Item,{onClick:()=>p("newest"),children:e("newest")}),(0,nt.jsx)(Hs.Item,{onClick:()=>p("bestseller"),children:e("best-sellers")}),(0,nt.jsx)(Hs.Item,{onClick:()=>p("increasingprice"),children:e("inc-price")}),(0,nt.jsx)(Hs.Item,{onClick:()=>p("decreasingprice"),children:e("dec-price")})]}),(0,nt.jsx)(bg,{onCategorySelect:m})]})]}),(0,nt.jsxs)("div",{className:"grid grid-cols-5 grid-flow-col gap-3",children:[(0,nt.jsxs)("div",{className:"flex flex-col col-span-1 py-2 gap-2 border-r max-md:hidden",children:[(0,nt.jsx)("button",{onClick:()=>m("All-products"),className:"flex flex-wrap items-center gap-2 py-2 hover:text-blue-700 focus:text-blue-700 text-sm font-semibold "+("All-products"===u?"text-blue-600":"text-black"),children:e("All-products")}),i.map(((e,t)=>(0,nt.jsx)("button",{onClick:()=>m(e.categoryID),className:"flex flex-wrap items-center gap-2 py-2 hover:text-blue-700 focus:text-blue-700 text-sm font-semibold "+(u===e.categoryID?"text-blue-600":"text-black"),children:e.title[ap.language]},t)))]}),t?(0,nt.jsx)("div",{className:"flex justify-center items-center col-span-4 min-h-[65vh] max-md:col-span-5",children:(0,nt.jsx)(Bh,{})}):(0,nt.jsx)(yg,{allData:l})]})]})}function Sg(){return(0,nt.jsx)("div",{children:(0,nt.jsx)(Cg,{})})}function Eg(){return(0,nt.jsxs)("section",{className:"",children:[(0,nt.jsx)(pg,{}),(0,nt.jsx)(Tm,{}),(0,nt.jsx)("div",{className:"bg-gray-100",children:(0,nt.jsx)(Sg,{})}),(0,nt.jsx)(og,{})]})}function Ag(){const{t:e}=rt(),[t,r]=(0,n.useState)(""),[o,a]=(0,n.useState)(""),[i,s]=(0,n.useState)(""),[l,c]=(0,n.useState)("");(0,n.useEffect)((()=>{(async()=>{const e=await Pm();e&&(a(e.email),r(e.fname&&e.lname?`${e.fname} ${e.lname}`:""))})()}),[]);return(0,nt.jsxs)("section",{className:"",children:[(0,nt.jsx)(pg,{}),(0,nt.jsx)(Tm,{}),(0,nt.jsx)("div",{className:"bg-gray-100 mb-8",children:(0,nt.jsxs)("div",{className:"py-8 lg:py-16 px-4 mx-auto max-w-screen-md",children:[(0,nt.jsx)("h2",{className:"mb-3 text-2xl tracking-tight font-extrabold text-center text-black",children:e("footer-list1.item2")}),(0,nt.jsxs)("p",{className:"mb-12 font-light text-center text-gray-500 text-sm max-w-xl mx-auto",children:[e("contact-text-page-1")," "," ",e("contact-text-page-2")]}),(0,nt.jsxs)("form",{onSubmit:r=>{r.preventDefault();const n={name:t,email:o,subject:i,message:l};gf.post("https://shop.sharedstore.ma/api/api/user/report",n).then((t=>{uh("success",e("sent-msg-success")),setTimeout((()=>{window.location.reload()}),2e3),console.log(t.data)})).catch((t=>{uh("error",e("sent-msg-error"))}))},children:[(0,nt.jsxs)("div",{className:"grid grid-cols-2 gap-2 mb-3",children:[(0,nt.jsxs)("div",{className:"col-span-1",children:[(0,nt.jsx)("label",{htmlFor:"name",className:"block mb-1 text-sm font-semibold text-black",children:e("fullname")}),(0,nt.jsx)("input",{type:"text",value:t,onChange:e=>r(e.target.value),className:"shadow-sm bg-white myborder text-black text-sm rounded-lg focus:ring-blue-600 focus:border-blue-600 block w-full p-2.5",placeholder:e("fullname"),required:!0})]}),(0,nt.jsxs)("div",{className:"col-span-1",children:[(0,nt.jsx)("label",{htmlFor:"email",className:"block mb-1 text-sm font-semibold text-black",children:e("email")}),(0,nt.jsx)("input",{type:"email",value:o,onChange:e=>a(e.target.value),className:"shadow-sm bg-white myborder text-black text-sm rounded-lg focus:ring-blue-600 focus:border-blue-600 block w-full p-2.5",placeholder:e("email"),required:!0})]})]}),(0,nt.jsxs)("div",{className:"mb-3",children:[(0,nt.jsx)("label",{htmlFor:"subject",className:"block mb-1 text-sm font-semibold text-black",children:e("subject")}),(0,nt.jsx)("input",{type:"text",value:i,onChange:e=>s(e.target.value),className:"block p-3 w-full text-sm text-black bg-white rounded-lg myborder shadow-sm focus:ring-blue-600 focus:border-blue-600",placeholder:"Let us know how we can help you",required:!0})]}),(0,nt.jsxs)("div",{className:"sm:col-span-2",children:[(0,nt.jsx)("label",{htmlFor:"message",className:"block mb-1 text-sm font-semibold text-black",children:e("message")}),(0,nt.jsx)("textarea",{value:l,onChange:e=>c(e.target.value),rows:"6",className:"block p-2.5 w-full text-sm text-black bg-white rounded-lg shadow-sm myborder focus:ring-blue-600 focus:border-blue-600",placeholder:"Leave a comment..."})]}),(0,nt.jsx)("div",{className:"w-full flex justify-end mt-4",children:(0,nt.jsx)("button",{type:"submit",className:" py-3 px-5 text-sm font-medium text-center text-white rounded-lg bg-gray-900 sm:w-fit hover:bg-gray-800 focus:ring-4 focus:outline-none focus:ring-gray-300",children:"Send message"})})]})]})}),(0,nt.jsx)(og,{})]})}function Og(){const{t:e}=rt();return(0,nt.jsxs)("section",{children:[(0,nt.jsx)(pg,{}),(0,nt.jsx)(Tm,{}),(0,nt.jsx)("div",{className:"bg-gray-100",children:(0,nt.jsxs)("div",{className:"container",children:[(0,nt.jsxs)("div",{className:"py-6 relative z-0",children:[(0,nt.jsx)("h1",{className:"max-w-2xl mx-auto text-center font-manrope font-semibold text-2xl text-black mb-6",children:e("footer-list1.item1")}),(0,nt.jsx)("div",{className:"mb-2 rounded-full",children:(0,nt.jsxs)("h2",{className:"text-lg font-manrope font-semibold text-blue-700 text-left",children:[e("about-page-title-1")," ",e("about-page-title-2")]})}),(0,nt.jsx)("div",{className:"",children:(0,nt.jsxs)("p",{className:"max-w-4xl text-sm text-gray-800 mb-8 text-left",children:[e("about-page-text-1")," ",(0,nt.jsx)("br",{}),e("about-page-text-2")," ",(0,nt.jsx)("br",{}),e("about-page-text-3")]})})]}),(0,nt.jsx)("div",{className:"relative xl:mr-0 lg:mr-5 mr-0",children:(0,nt.jsx)("div",{className:"w-full max-w-7xl mx-auto",children:(0,nt.jsxs)("div",{className:"w-full justify-start items-center gap-5 grid lg:grid-cols-2 grid-cols-1",children:[(0,nt.jsx)("div",{className:"w-full flex-col justify-center lg:items-start items-center gap-10 inline-flex",children:(0,nt.jsx)("div",{className:"w-full flex-col justify-center items-start gap-8 flex",children:(0,nt.jsxs)("div",{className:"w-full grid grid-cols-2 items-start gap-4",children:[(0,nt.jsxs)("div",{className:"col-span-1 h-full p-3.5 rounded-lg myborder bg-white shadow-sm flex-col gap-2.5 inline-flex",children:[(0,nt.jsx)("h4",{className:"text-black text-2xl font-semibold font-manrope leading-9",children:"+23K"}),(0,nt.jsxs)("p",{className:"text-gray-600 text-xs",children:[(0,nt.jsx)("span",{className:"font-semibold text-sm text-gray-800",children:"Customers served"})," People love us"]})]}),(0,nt.jsxs)("div",{className:"col-span-1 h-full p-3.5 rounded-lg myborder bg-white shadow-sm flex-col gap-2.5 inline-flex",children:[(0,nt.jsx)("h4",{className:"text-black text-2xl font-semibold font-manrope leading-9",children:"+9.6/10"}),(0,nt.jsxs)("p",{className:"text-gray-600 text-xs",children:[(0,nt.jsx)("span",{className:"font-semibold text-sm text-gray-800",children:"Our trustscore"})," People love us"]})]}),(0,nt.jsxs)("div",{className:"col-span-1 h-full p-3.5 rounded-lg myborder bg-white shadow-sm flex-col gap-2.5 inline-flex",children:[(0,nt.jsx)("h4",{className:"text-black text-2xl font-semibold font-manrope leading-9",children:"+1000"}),(0,nt.jsxs)("p",{className:"text-gray-600 text-xs",children:[(0,nt.jsx)("span",{className:"font-semibold text-sm text-gray-800",children:"Reviews worldwide"})," +96% positive reviews"]})]})]})})}),(0,nt.jsx)("div",{className:"w-full lg:justify-start justify-center items-start flex",children:(0,nt.jsx)("img",{className:"w-full h-auto object-cover",src:vh,alt:"about us"})})]})})}),(0,nt.jsx)("div",{className:"py-28",children:(0,nt.jsxs)("div",{className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",children:[(0,nt.jsx)("h2",{className:"font-manrope text-2xl text-center text-black font-semibold mb-6",children:"Our results in numbers"}),(0,nt.jsxs)("div",{className:"flex flex-col gap-5 xl:gap-8 lg:flex-row lg:justify-between",children:[(0,nt.jsx)("div",{className:"w-full max-lg:max-w-2xl mx-auto lg:mx-0 lg:w-1/3 bg-white p-6 myborder rounded-lg shadow-sm",children:(0,nt.jsxs)("div",{className:"flex gap-5",children:[(0,nt.jsx)("div",{className:"font-manrope text-xl font-semibold text-black",children:"240%"}),(0,nt.jsxs)("div",{className:"flex-1",children:[(0,nt.jsx)("h4",{className:"text-lg text-gray-800 font-semibold mb-1",children:"Company growth"}),(0,nt.jsx)("p",{className:"text-xs text-gray-600",children:"Company's remarkable growth journey as we continually innovate and drive towards new heights of success."})]})]})}),(0,nt.jsx)("div",{className:"w-full max-lg:max-w-2xl mx-auto lg:mx-0 lg:w-1/3 bg-white p-6 myborder rounded-lg shadow-sm",children:(0,nt.jsxs)("div",{className:"flex gap-5",children:[(0,nt.jsx)("div",{className:"font-manrope text-xl font-semibold text-black",children:"175+"}),(0,nt.jsxs)("div",{className:"flex-1",children:[(0,nt.jsx)("h4",{className:"text-lg text-gray-800 font-semibold mb-1",children:"Company growth"}),(0,nt.jsx)("p",{className:"text-xs text-gray-600",children:"Our very talented team members are the powerhouse of pagedone and pillars of our success. "})]})]})}),(0,nt.jsx)("div",{className:"w-full max-lg:max-w-2xl mx-auto lg:mx-0 lg:w-1/3 bg-white p-6 myborder rounded-lg shadow-sm",children:(0,nt.jsxs)("div",{className:"flex gap-5",children:[(0,nt.jsx)("div",{className:"font-manrope text-xl font-semibold text-black",children:"625+"}),(0,nt.jsxs)("div",{className:"flex-1",children:[(0,nt.jsx)("h4",{className:"text-lg text-gray-800 font-semibold mb-1",children:"Projects Completed"}),(0,nt.jsx)("p",{className:"text-xs text-gray-600",children:"We have accomplished more than 625 projects worldwide and we are still counting many more."})]})]})})]})]})})]})}),(0,nt.jsx)(og,{})]})}function $g(e){let{productID:t}=e;const{t:r}=rt(),[o,a]=(0,n.useState)(!1),[i,s]=(0,n.useState)(0),[l,c]=(0,n.useState)(0),[u,d]=(0,n.useState)(""),f=localStorage.getItem("userID"),p=localStorage.getItem("token"),{triggerRefresh:h}=cp();return(0,nt.jsxs)(nt.Fragment,{children:[(0,nt.jsx)("button",{onClick:()=>a(!0),className:"rounded-lg bg-blue-700 px-5 py-2.5 text-sm font-medium text-white hover:bg-blue-800 focus:outline-none focus:ring-4 focus:ring-blue-300",children:r("writereview")}),(0,nt.jsxs)(El,{show:o,onClose:()=>a(!1),children:[(0,nt.jsx)(El.Header,{children:r("addreview")}),(0,nt.jsx)(El.Body,{children:(0,nt.jsxs)("form",{onSubmit:e=>{e.preventDefault();try{const e={rating:l,comment:u,user_id:parseInt(f),product_id:t};gf.post("https://shop.sharedstore.ma/api/api/review",e,{headers:{Authorization:`Bearer ${p}`}}).then((e=>{h(),a(!1),c(0),d(""),uh("success",r("s-add-rev"))})).catch((e=>uh("error",r("e-add-rev"))))}catch(n){uh("error",r("e-add-rev"))}},className:"",children:[(0,nt.jsxs)("div",{className:"mb-4 grid grid-cols-2 gap-4",children:[(0,nt.jsx)("div",{className:"col-span-2",children:(0,nt.jsxs)("div",{className:"flex flex-wrap items-center",children:[[...Array(5)].map(((e,t)=>{const r=t+1;return(0,nt.jsxs)("label",{children:[(0,nt.jsx)("input",{type:"radio",name:"rating",value:r,onClick:()=>c(r),style:{display:"none"}}),r<=(i||l)?(0,nt.jsx)(Hc,{className:"w-5 h-5 text-yellow-300 cursor-pointer",onMouseEnter:()=>s(r),onMouseLeave:()=>s(0)}):(0,nt.jsx)(Hc,{className:"w-5 h-5 text-gray-400 cursor-pointer",onMouseEnter:()=>s(r),onMouseLeave:()=>s(0)})]},t)})),(0,nt.jsxs)("span",{className:"ms-2 text-base font-bold text-black pt-1",children:[l,".0 ",r("outof")," 5"]})]})}),(0,nt.jsxs)("div",{className:"col-span-2",children:[(0,nt.jsx)("label",{htmlFor:"description",className:"mb-2 block text-sm font-medium text-black",children:r("review-desc")}),(0,nt.jsx)("textarea",{value:u,onChange:e=>d(e.target.value),id:"description",rows:"6",className:"mb-2 block w-full rounded-lg border border-gray-300 bg-gray-100 p-2.5 text-sm text-black focus:border-blue-500 focus:ring-blue-500",required:""})]})]}),(0,nt.jsxs)("div",{className:"flex flex-wrap gap-4 items-center border-t border-gray-200 pt-4 md:pt-5",children:[(0,nt.jsx)("button",{type:"submit",className:"me-2 inline-flex items-center rounded-lg bg-blue-700 px-5 py-2.5 text-center text-sm font-medium text-white hover:bg-blue-800 focus:outline-none focus:ring-4 focus:ring-blue-300",children:r("addreview")}),(0,nt.jsx)("button",{type:"button",onClick:()=>a(!1),className:"me-2 rounded-lg border border-gray-200 bg-white px-5 py-2.5 text-sm font-medium text-black hover:bg-gray-100 hover:text-blue-700 focus:z-10 focus:outline-none focus:ring-4 focus:ring-gray-100",children:r("cancel")})]})]})})]})]})}function Pg(e){let{rev_id:t}=e;const{t:r}=rt(),n=localStorage.getItem("token"),{triggerRefresh:o}=cp();return(0,nt.jsxs)("button",{onClick:()=>{ch((e=>(0,nt.jsx)("div",{id:"toast-interactive",className:"w-full max-w-xs p-4 text-gray-500 bg-white rounded-lg shadow",children:(0,nt.jsxs)("div",{className:"flex",children:[(0,nt.jsxs)("div",{className:"inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-red-600 bg-red-200 rounded-lg",children:[(0,nt.jsx)(Uc,{className:"w-5 h-5"}),(0,nt.jsx)("span",{className:"sr-only",children:"delete icon"})]}),(0,nt.jsxs)("div",{className:"ms-3 text-sm font-normal",children:[(0,nt.jsx)("span",{className:"mb-1 text-sm font-semibold text-black",children:r("removeorder")}),(0,nt.jsx)("div",{className:"mb-2 text-sm font-normal",children:r("removeorder-1")}),(0,nt.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,nt.jsx)("div",{children:(0,nt.jsx)("button",{onClick:()=>{gf.delete("https://shop.sharedstore.ma/api/api/review/"+t,{headers:{Authorization:`Bearer ${n}`}}).then((()=>{o(),uh("success",r("s-remove-rev"))})).catch((e=>uh("error",r("e-remove-rev")))),ch.dismiss(e.id)},className:"inline-flex justify-center w-full px-2 py-1.5 text-xs font-medium text-center text-white bg-red-600 rounded-lg hover:bg-red-800 focus:ring-4 focus:outline-none focus:ring-red-300",children:r("yes")})}),(0,nt.jsx)("div",{children:(0,nt.jsx)("button",{onClick:()=>ch.dismiss(e.id),className:"inline-flex justify-center w-full px-2 py-1.5 text-xs font-medium text-center text-black bg-white border border-gray-300 rounded-lg hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-gray-200",children:r("cancel")})})]})]}),(0,nt.jsxs)("button",{onClick:()=>ch.dismiss(e.id),className:"h-6 w-6 ms-auto -mx-1.5 -my-1.5 bg-white items-center justify-center flex-shrink-0 text-gray-400 hover:text-black rounded-lg focus:ring-2 focus:ring-gray-300 hover:bg-gray-100 inline-flex",children:[(0,nt.jsx)("span",{className:"sr-only",children:"Close"}),(0,nt.jsx)(Vc,{className:"w-4 h-4"})]})]})})),{style:{background:"none",boxShadow:"none"},duration:5e3,position:"top-center"})},className:"flex flex-wrap items-center text-sm gap-1 py-2 px-3 text-red-600 hover:text-red-700 bg-red-100 hover:bg-red-200 rounded-lg border border-red-600",children:[(0,nt.jsx)(Uc,{className:"w-4 h-4"}),r("delete")]})}function Tg(e){let{productId:t,ratingProd:r,countRev:o}=e;const{t:a}=rt(),i=localStorage.getItem("token"),[s,l]=(0,n.useState)(0),[c,u]=(0,n.useState)([]),[d,f]=(0,n.useState)(!1),[p,h]=(0,n.useState)(!1),{refreshKey:m}=cp();(0,n.useEffect)((()=>{(async()=>{try{const e=await gf.get("https://shop.sharedstore.ma/api/api/review/"+t);console.log(e.data);const r=d?e.data:e.data.slice(0,4);h(e.data.length>4),u(r)}catch(e){console.error(e)}})();(async()=>{try{const e=await Pm();e&&l(e.userID)}catch(e){console.error(e)}})()}),[d,m]);const g=e=>e.fname&&e.lname?e.fname.charAt(0).toUpperCase()+e.lname.charAt(0).toUpperCase():e.username.substring(0,2).toUpperCase();return(0,nt.jsx)("section",{className:"antialiased",children:(0,nt.jsxs)("div",{className:"mx-auto max-w-screen-xl px-4 max-md:px-0 2xl:px-0",children:[(0,nt.jsxs)("div",{className:"flex justify-between items-center gap-4 max-md:gap-10 max-md:flex-col",children:[(0,nt.jsxs)("div",{className:"flex text-left flex-col",children:[(0,nt.jsx)("h2",{className:"text-2xl mb-2 font-semibold text-black text-left max-md:text-center",children:a("reviews")}),(0,nt.jsxs)("div",{className:"mt-2 flex items-center gap-2 sm:mt-0",children:[(0,nt.jsx)("div",{className:"flex items-center gap-0.5",children:(0,nt.jsx)(ip,{size:4,rating:r})}),(0,nt.jsxs)("p",{className:"text-sm font-medium leading-none text-gray-500",children:["(",r.toFixed(1),")"]}),(0,nt.jsxs)("p",{className:"text-sm font-medium leading-none text-black underline hover:no-underline",children:[" ",o," ",a("reviews")," "]})]})]}),(0,nt.jsxs)("div",{className:"shrink-0 space-y-4",children:[(0,nt.jsxs)("p",{className:"text-2xl font-semibold leading-none text-right max-md:text-center text-black",children:[r.toFixed(2)," ",a("outof")," 5"]}),i?(0,nt.jsx)($g,{productID:t}):null]})]}),(0,nt.jsx)("div",{className:"mt-6 divide-y space-y-2",children:c.map(((e,t)=>(0,nt.jsx)("div",{className:"w-full lg:p-8 p-6 bg-white rounded-3xl border shadow-sm flex-col justify-start items-end gap-2.5 flex",children:(0,nt.jsxs)("div",{className:"w-full flex-col justify-start items-start gap-3.5 flex",children:[(0,nt.jsxs)("div",{className:"w-full justify-between inline-flex",children:[(0,nt.jsxs)("div",{className:"w-full justify-start items-center gap-2.5 flex",children:[(0,nt.jsx)("div",{className:"w-8 h-8 rounded-full justify-start items-start gap-2.5 flex",children:(0,nt.jsx)("p",{className:"flex justify-center items-center h-8 w-8 text-sm font-semibold p-1 rounded-full text-blue-800 bg-blue-100",children:g(e)})}),(0,nt.jsxs)("div",{className:"flex-col justify-start items-start inline-flex",children:[(0,nt.jsx)("h5",{className:"text-gray-900 text-base font-semibold leading-none mb-0.5",children:e.fname&&e.lname?`${e.fname} ${e.lname}`:e.username}),(0,nt.jsx)("div",{className:"flex justify-between gap-1 w-full",children:(0,nt.jsx)(ip,{rating:e.rating,size:3})})]})]}),(0,nt.jsx)("h6",{className:"text-gray-500 text-xs min-w-36 font-normal leading-none text-end",children:(0,nt.jsx)(Am,{dateString:e.created_at})})]}),(0,nt.jsx)("p",{className:"text-gray-800 text-sm font-normal leading-snug",children:e.comment}),(0,nt.jsx)("div",{className:"w-full justify-end items-start gap-6 inline-flex",children:s===e.user_id?(0,nt.jsx)(Pg,{rev_id:e.reviewID}):null})]})},t)))}),(0,nt.jsx)("div",{className:"flex justify-end",children:p?(0,nt.jsx)("button",{onClick:()=>f(!d),className:"my-3 text-sm font-medium text-black hover:text-blue-700",children:a(d?"viewless":"viewmore")}):null})]})})}var Ig=r(2823),Mg=r.n(Ig),Rg=r(4175),Lg=r.n(Rg);function _g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Dg(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_g(Object(r),!0).forEach((function(t){qg(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_g(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Bg(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Fg(e,t,r){return t&&zg(e.prototype,t),r&&zg(e,r),e}function qg(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hg(){return Hg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Hg.apply(this,arguments)}function Ug(e){return Ug=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ug(e)}function Wg(e,t){return Wg=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Wg(e,t)}function Vg(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Gg(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Ug(e);if(t){var o=Ug(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===typeof t||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Vg(e)}(this,r)}}function Kg(){return Kg="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Ug(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},Kg.apply(this,arguments)}function Qg(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Yg(e,t){var r="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"===typeof e)return Qg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Qg(e,t):void 0}}(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){s=!0,a=e},f:function(){try{i||null==r.return||r.return()}finally{if(s)throw a}}}}var Zg=9,Jg=13,Xg=27,eb=38,tb=40;function rb(e,t,r){var n=e;return Object.keys(t).forEach((function(e){r.indexOf(e)>-1?n.dataset[e]=t[e]:delete n.dataset[e]})),n}var nb=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Wg(e,t)}(r,e);var t=Gg(r);function r(e,n){var o;return Bg(this,r),qg(Vg(o=t.call(this,e,n)),"hoverHandler",void 0),qg(Vg(o),"hoverHandler",void 0),o.clickHandler=null,o.hoverHandler=null,o.mounted=!1,o}return Fg(r,[{key:"attach",value:function(){Kg(Ug(r.prototype),"attach",this).call(this),this.mounted||(this.mounted=!0,this.clickHandler=this.getClickHandler(),this.hoverHandler=this.getHoverHandler(),this.domNode.addEventListener("click",this.clickHandler,!1),this.domNode.addEventListener("mouseenter",this.hoverHandler,!1))}},{key:"detach",value:function(){Kg(Ug(r.prototype),"detach",this).call(this),this.mounted=!1,this.clickHandler&&(this.domNode.removeEventListener("click",this.clickHandler),this.clickHandler=null)}},{key:"getClickHandler",value:function(){var e=this;return function(t){var r=e.buildEvent("mention-clicked",t);window.dispatchEvent(r),t.preventDefault()}}},{key:"getHoverHandler",value:function(){var e=this;return function(t){var r=e.buildEvent("mention-hovered",t);window.dispatchEvent(r),t.preventDefault()}}},{key:"buildEvent",value:function(e,t){var r=new Event(e,{bubbles:!0,cancelable:!0});return r.value=Hg({},this.domNode.dataset),r.event=t,r}}],[{key:"create",value:function(e){var t=Kg(Ug(r),"create",this).call(this),n=document.createElement("span");return n.className="ql-mention-denotation-char",n.innerHTML=e.denotationChar,t.appendChild(n),t.innerHTML+=e.value,r.setDataValues(t,e)}},{key:"setDataValues",value:function(e,t){var r=e;return Object.keys(t).forEach((function(e){r.dataset[e]=t[e]})),r}},{key:"value",value:function(e){return e.dataset}}]),r}(Lg().import("blots/embed"));nb.blotName="mention",nb.tagName="span",nb.className="mention",Lg().register(nb);var ob=function(){function e(t,r){var n=this;for(var o in Bg(this,e),this.isOpen=!1,this.itemIndex=0,this.mentionCharPos=null,this.cursorPos=null,this.values=[],this.suspendMouseEnter=!1,this.existingSourceExecutionToken=null,this.quill=t,this.options={source:null,renderItem:function(e){return"".concat(e.value)},renderLoading:function(){return null},onSelect:function(e,t){t(e)},mentionDenotationChars:["@"],showDenotationChar:!0,allowedChars:/^[a-zA-Z0-9_]*$/,minChars:0,maxChars:31,offsetTop:2,offsetLeft:0,isolateCharacter:!1,allowInlineMentionChar:!1,fixMentionsToQuill:!1,positioningStrategy:"normal",defaultMenuOrientation:"bottom",blotName:"mention",dataAttributes:["id","value","denotationChar","link","target","disabled"],linkTarget:"_blank",onOpen:function(){return!0},onBeforeClose:function(){return!0},onClose:function(){return!0},listItemClass:"ql-mention-list-item",mentionContainerClass:"ql-mention-list-container",mentionListClass:"ql-mention-list",spaceAfterInsert:!0,selectKeys:[Jg]},Hg(this.options,r,{dataAttributes:Array.isArray(r.dataAttributes)?this.options.dataAttributes.concat(r.dataAttributes):this.options.dataAttributes}),this.options)"function"===typeof this.options[o]&&(this.options[o]=this.options[o].bind(this));this.mentionContainer=document.createElement("div"),this.mentionContainer.className=this.options.mentionContainerClass?this.options.mentionContainerClass:"",this.mentionContainer.style.cssText="display: none; position: absolute;",this.mentionContainer.onmousemove=this.onContainerMouseMove.bind(this),this.options.fixMentionsToQuill&&(this.mentionContainer.style.width="auto"),this.mentionList=document.createElement("ul"),this.mentionList.id="quill-mention-list",t.root.setAttribute("aria-owns","quill-mention-list"),this.mentionList.className=this.options.mentionListClass?this.options.mentionListClass:"",this.mentionContainer.appendChild(this.mentionList),t.on("text-change",this.onTextChange.bind(this)),t.on("selection-change",this.onSelectionChange.bind(this)),t.container.addEventListener("paste",(function(){setTimeout((function(){var e=t.getSelection();n.onSelectionChange(e)}))})),t.keyboard.addBinding({key:Zg},this.selectHandler.bind(this)),t.keyboard.bindings[Zg].unshift(t.keyboard.bindings[Zg].pop());var a,i=Yg(this.options.selectKeys);try{for(i.s();!(a=i.n()).done;){var s=a.value;t.keyboard.addBinding({key:s},this.selectHandler.bind(this))}}catch(l){i.e(l)}finally{i.f()}t.keyboard.bindings[Jg].unshift(t.keyboard.bindings[Jg].pop()),t.keyboard.addBinding({key:Xg},this.escapeHandler.bind(this)),t.keyboard.addBinding({key:eb},this.upHandler.bind(this)),t.keyboard.addBinding({key:tb},this.downHandler.bind(this))}return Fg(e,[{key:"selectHandler",value:function(){return!(this.isOpen&&!this.existingSourceExecutionToken)||(this.selectItem(),!1)}},{key:"escapeHandler",value:function(){return!this.isOpen||(this.existingSourceExecutionToken&&(this.existingSourceExecutionToken.abandoned=!0),this.hideMentionList(),!1)}},{key:"upHandler",value:function(){return!(this.isOpen&&!this.existingSourceExecutionToken)||(this.prevItem(),!1)}},{key:"downHandler",value:function(){return!(this.isOpen&&!this.existingSourceExecutionToken)||(this.nextItem(),!1)}},{key:"showMentionList",value:function(){"fixed"===this.options.positioningStrategy?document.body.appendChild(this.mentionContainer):this.quill.container.appendChild(this.mentionContainer),this.mentionContainer.style.visibility="hidden",this.mentionContainer.style.display="",this.mentionContainer.scrollTop=0,this.setMentionContainerPosition(),this.setIsOpen(!0)}},{key:"hideMentionList",value:function(){this.options.onBeforeClose(),this.mentionContainer.style.display="none",this.mentionContainer.remove(),this.setIsOpen(!1),this.quill.root.removeAttribute("aria-activedescendant")}},{key:"highlightItem",value:function(){for(var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=0;t<this.mentionList.childNodes.length;t+=1)this.mentionList.childNodes[t].classList.remove("selected");if(-1!==this.itemIndex&&"true"!==this.mentionList.childNodes[this.itemIndex].dataset.disabled&&(this.mentionList.childNodes[this.itemIndex].classList.add("selected"),this.quill.root.setAttribute("aria-activedescendant",this.mentionList.childNodes[this.itemIndex].id),e)){var r=this.mentionList.childNodes[this.itemIndex].offsetHeight,n=this.mentionList.childNodes[this.itemIndex].offsetTop,o=this.mentionContainer.scrollTop,a=o+this.mentionContainer.offsetHeight;n<o?this.mentionContainer.scrollTop=n:n>a-r&&(this.mentionContainer.scrollTop+=n-a+r)}}},{key:"getItemData",value:function(){var e=this.mentionList.childNodes[this.itemIndex].dataset.link,t="undefined"!==typeof e,r=this.mentionList.childNodes[this.itemIndex].dataset.target;return t&&(this.mentionList.childNodes[this.itemIndex].dataset.value='<a href="'.concat(e,'" target=').concat(r||this.options.linkTarget,">").concat(this.mentionList.childNodes[this.itemIndex].dataset.value)),this.mentionList.childNodes[this.itemIndex].dataset}},{key:"onContainerMouseMove",value:function(){this.suspendMouseEnter=!1}},{key:"selectItem",value:function(){var e=this;if(-1!==this.itemIndex){var t=this.getItemData();t.disabled||(this.options.onSelect(t,(function(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.insertItem(t,r,n)})),this.hideMentionList())}}},{key:"insertItem",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=e;if(null!==n){var o,a=Dg(Dg({},this.options),r);a.showDenotationChar||(n.denotationChar=""),t?o=this.cursorPos:(o=this.mentionCharPos,this.quill.deleteText(this.mentionCharPos,this.cursorPos-this.mentionCharPos,Lg().sources.USER));var i=this.quill.insertEmbed(o,a.blotName,n,Lg().sources.USER);return a.spaceAfterInsert?(this.quill.insertText(o+1," ",Lg().sources.USER),this.quill.setSelection(o+2,Lg().sources.USER)):this.quill.setSelection(o+1,Lg().sources.USER),this.hideMentionList(),i}}},{key:"onItemMouseEnter",value:function(e){if(!this.suspendMouseEnter){var t=Number(e.target.dataset.index);Number.isNaN(t)||t===this.itemIndex||(this.itemIndex=t,this.highlightItem(!1))}}},{key:"onDisabledItemMouseEnter",value:function(e){this.suspendMouseEnter||(this.itemIndex=-1,this.highlightItem(!1))}},{key:"onItemClick",value:function(e){0===e.button&&(e.preventDefault(),e.stopImmediatePropagation(),this.itemIndex=e.currentTarget.dataset.index,this.highlightItem(),this.selectItem())}},{key:"onItemMouseDown",value:function(e){e.preventDefault(),e.stopImmediatePropagation()}},{key:"renderLoading",value:function(){if(this.options.renderLoading())if(this.mentionContainer.getElementsByClassName("ql-mention-loading").length>0)this.showMentionList();else{this.mentionList.innerHTML="";var e=document.createElement("div");e.className="ql-mention-loading",e.innerHTML=this.options.renderLoading(),this.mentionContainer.append(e),this.showMentionList()}}},{key:"removeLoading",value:function(){var e=this.mentionContainer.getElementsByClassName("ql-mention-loading");e.length>0&&e[0].remove()}},{key:"renderList",value:function(e,t,r){if(t&&t.length>0){this.removeLoading(),this.values=t,this.mentionList.innerHTML="";for(var n=-1,o=0;o<t.length;o+=1){var a=document.createElement("li");a.id="quill-mention-item-"+o,a.className=this.options.listItemClass?this.options.listItemClass:"",t[o].disabled?(a.className+=" disabled",a.setAttribute("aria-hidden","true")):-1===n&&(n=o),a.dataset.index=o,a.innerHTML=this.options.renderItem(t[o],r),t[o].disabled?a.onmouseenter=this.onDisabledItemMouseEnter.bind(this):(a.onmouseenter=this.onItemMouseEnter.bind(this),a.onmouseup=this.onItemClick.bind(this),a.onmousedown=this.onItemMouseDown.bind(this)),a.dataset.denotationChar=e,this.mentionList.appendChild(rb(a,t[o],this.options.dataAttributes))}this.itemIndex=n,this.highlightItem(),this.showMentionList()}else this.hideMentionList()}},{key:"nextItem",value:function(){var e,t=0;do{t++,e=(this.itemIndex+t)%this.values.length;var r="true"===this.mentionList.childNodes[e].dataset.disabled;if(t===this.values.length+1){e=-1;break}}while(r);this.itemIndex=e,this.suspendMouseEnter=!0,this.highlightItem()}},{key:"prevItem",value:function(){var e,t=0;do{t++,e=(this.itemIndex+this.values.length-t)%this.values.length;var r="true"===this.mentionList.childNodes[e].dataset.disabled;if(t===this.values.length+1){e=-1;break}}while(r);this.itemIndex=e,this.suspendMouseEnter=!0,this.highlightItem()}},{key:"containerBottomIsNotVisible",value:function(e,t){return e+this.mentionContainer.offsetHeight+t.top>window.pageYOffset+window.innerHeight}},{key:"containerRightIsNotVisible",value:function(e,t){return!this.options.fixMentionsToQuill&&e+this.mentionContainer.offsetWidth+t.left>window.pageXOffset+document.documentElement.clientWidth}},{key:"setIsOpen",value:function(e){this.isOpen!==e&&(e?this.options.onOpen():this.options.onClose(),this.isOpen=e)}},{key:"setMentionContainerPosition",value:function(){"fixed"===this.options.positioningStrategy?this.setMentionContainerPosition_Fixed():this.setMentionContainerPosition_Normal()}},{key:"setMentionContainerPosition_Normal",value:function(){var e=this,t=this.quill.container.getBoundingClientRect(),r=this.quill.getBounds(this.mentionCharPos),n=this.mentionContainer.offsetHeight,o=this.options.offsetTop,a=this.options.offsetLeft;if(this.options.fixMentionsToQuill){this.mentionContainer.style.right="".concat(0,"px")}else a+=r.left;if(this.containerRightIsNotVisible(a,t)){var i=this.mentionContainer.offsetWidth+this.options.offsetLeft;a=t.width-i}if("top"===this.options.defaultMenuOrientation){if((o=this.options.fixMentionsToQuill?-1*(n+this.options.offsetTop):r.top-(n+this.options.offsetTop))+t.top<=0){var s=this.options.offsetTop;this.options.fixMentionsToQuill?s+=t.height:s+=r.bottom,o=s}}else if(this.options.fixMentionsToQuill?o+=t.height:o+=r.bottom,this.containerBottomIsNotVisible(o,t)){var l=-1*this.options.offsetTop;this.options.fixMentionsToQuill||(l+=r.top),o=l-n}o>=0?this.options.mentionContainerClass.split(" ").forEach((function(t){e.mentionContainer.classList.add("".concat(t,"-bottom")),e.mentionContainer.classList.remove("".concat(t,"-top"))})):this.options.mentionContainerClass.split(" ").forEach((function(t){e.mentionContainer.classList.add("".concat(t,"-top")),e.mentionContainer.classList.remove("".concat(t,"-bottom"))})),this.mentionContainer.style.top="".concat(o,"px"),this.mentionContainer.style.left="".concat(a,"px"),this.mentionContainer.style.visibility="visible"}},{key:"setMentionContainerPosition_Fixed",value:function(){var e=this;this.mentionContainer.style.position="fixed",this.mentionContainer.style.height=null;var t=this.quill.container.getBoundingClientRect(),r=this.quill.getBounds(this.mentionCharPos),n={left:t.left+r.left,top:t.top+r.top,width:0,height:r.height},o=this.options.fixMentionsToQuill?t:n,a=this.options.offsetTop,i=this.options.offsetLeft;if(this.options.fixMentionsToQuill){var s=o.right;this.mentionContainer.style.right="".concat(s,"px")}else(i+=o.left)+this.mentionContainer.offsetWidth>document.documentElement.clientWidth&&(i-=i+this.mentionContainer.offsetWidth-document.documentElement.clientWidth);var l=o.top,c=document.documentElement.clientHeight-(o.top+o.height),u=this.mentionContainer.offsetHeight<=c,d=this.mentionContainer.offsetHeight<=l;"bottom"===("top"===this.options.defaultMenuOrientation&&d?"top":"bottom"===this.options.defaultMenuOrientation&&u||c>l?"bottom":"top")?(a=o.top+o.height,u||(this.mentionContainer.style.height=c-3+"px"),this.options.mentionContainerClass.split(" ").forEach((function(t){e.mentionContainer.classList.add("".concat(t,"-bottom")),e.mentionContainer.classList.remove("".concat(t,"-top"))}))):(a=o.top-this.mentionContainer.offsetHeight,d||(this.mentionContainer.style.height=l-3+"px",a=3),this.options.mentionContainerClass.split(" ").forEach((function(t){e.mentionContainer.classList.add("".concat(t,"-top")),e.mentionContainer.classList.remove("".concat(t,"-bottom"))}))),this.mentionContainer.style.top="".concat(a,"px"),this.mentionContainer.style.left="".concat(i,"px"),this.mentionContainer.style.visibility="visible"}},{key:"getTextBeforeCursor",value:function(){var e=Math.max(0,this.cursorPos-this.options.maxChars);return this.quill.getText(e,this.cursorPos-e)}},{key:"onSomethingChange",value:function(){var e=this,t=this.quill.getSelection();if(null!=t){this.cursorPos=t.index;var r,n,o,a,i=this.getTextBeforeCursor(),s=Math.max(0,this.cursorPos-this.options.maxChars),l=s?this.quill.getText(s-1,s):"",c=(r=i,n=this.options.mentionDenotationChars,o=this.options.isolateCharacter,a=this.options.allowInlineMentionChar,n.reduce((function(e,t){var n;if(o&&a){var i=new RegExp("^".concat(t,"|\\s").concat(t),"g"),s=(r.match(i)||[]).pop();if(!s)return{mentionChar:e.mentionChar,mentionCharIndex:e.mentionCharIndex};n=s!==t?r.lastIndexOf(s)+s.length-t.length:0}else n=r.lastIndexOf(t);return n>e.mentionCharIndex?{mentionChar:t,mentionCharIndex:n}:{mentionChar:e.mentionChar,mentionCharIndex:e.mentionCharIndex}}),{mentionChar:null,mentionCharIndex:-1})),u=c.mentionChar,d=c.mentionCharIndex;if(function(e,t,r,n){if(-1===e)return!1;if(!r)return!0;var o=e?t[e-1]:n;return!o||!!o.match(/\s/)}(d,i,this.options.isolateCharacter,l)){var f=this.cursorPos-(i.length-d);this.mentionCharPos=f;var p=i.substring(d+u.length);if(p.length>=this.options.minChars&&function(e,t){return t.test(e)}(p,this.getAllowedCharsRegex(u))){this.existingSourceExecutionToken&&(this.existingSourceExecutionToken.abandoned=!0),this.renderLoading();var h={abandoned:!1};this.existingSourceExecutionToken=h,this.options.source(p,(function(t,r){h.abandoned||(e.existingSourceExecutionToken=null,e.renderList(u,t,r))}),u)}else this.existingSourceExecutionToken&&(this.existingSourceExecutionToken.abandoned=!0),this.hideMentionList()}else this.existingSourceExecutionToken&&(this.existingSourceExecutionToken.abandoned=!0),this.hideMentionList()}}},{key:"getAllowedCharsRegex",value:function(e){return this.options.allowedChars instanceof RegExp?this.options.allowedChars:this.options.allowedChars(e)}},{key:"onTextChange",value:function(e,t,r){"user"===r&&this.onSomethingChange()}},{key:"onSelectionChange",value:function(e){e&&0===e.length?this.onSomethingChange():this.hideMentionList()}},{key:"openMenu",value:function(e){var t=this.quill.getSelection(!0);this.quill.insertText(t.index,e),this.quill.blur(),this.quill.focus()}}]),e}();Lg().register("modules/mention",ob);var ab=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(n){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),ib=Math.abs,sb=String.fromCharCode,lb=Object.assign;function cb(e){return e.trim()}function ub(e,t,r){return e.replace(t,r)}function db(e,t){return e.indexOf(t)}function fb(e,t){return 0|e.charCodeAt(t)}function pb(e,t,r){return e.slice(t,r)}function hb(e){return e.length}function mb(e){return e.length}function gb(e,t){return t.push(e),e}var bb=1,yb=1,xb=0,vb=0,wb=0,kb="";function jb(e,t,r,n,o,a,i){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:bb,column:yb,length:i,return:""}}function Nb(e,t){return lb(jb("",null,null,"",null,null,0),e,{length:-e.length},t)}function Cb(){return wb=vb>0?fb(kb,--vb):0,yb--,10===wb&&(yb=1,bb--),wb}function Sb(){return wb=vb<xb?fb(kb,vb++):0,yb++,10===wb&&(yb=1,bb++),wb}function Eb(){return fb(kb,vb)}function Ab(){return vb}function Ob(e,t){return pb(kb,e,t)}function $b(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Pb(e){return bb=yb=1,xb=hb(kb=e),vb=0,[]}function Tb(e){return kb="",e}function Ib(e){return cb(Ob(vb-1,Lb(91===e?e+2:40===e?e+1:e)))}function Mb(e){for(;(wb=Eb())&&wb<33;)Sb();return $b(e)>2||$b(wb)>3?"":" "}function Rb(e,t){for(;--t&&Sb()&&!(wb<48||wb>102||wb>57&&wb<65||wb>70&&wb<97););return Ob(e,Ab()+(t<6&&32==Eb()&&32==Sb()))}function Lb(e){for(;Sb();)switch(wb){case e:return vb;case 34:case 39:34!==e&&39!==e&&Lb(wb);break;case 40:41===e&&Lb(e);break;case 92:Sb()}return vb}function _b(e,t){for(;Sb()&&e+wb!==57&&(e+wb!==84||47!==Eb()););return"/*"+Ob(t,vb-1)+"*"+sb(47===e?e:Sb())}function Db(e){for(;!$b(Eb());)Sb();return Ob(e,vb)}var Bb="-ms-",zb="-moz-",Fb="-webkit-",qb="comm",Hb="rule",Ub="decl",Wb="@keyframes";function Vb(e,t){for(var r="",n=mb(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function Gb(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Ub:return e.return=e.return||e.value;case qb:return"";case Wb:return e.return=e.value+"{"+Vb(e.children,n)+"}";case Hb:e.value=e.props.join(",")}return hb(r=Vb(e.children,n))?e.return=e.value+"{"+r+"}":""}function Kb(e){return Tb(Qb("",null,null,null,[""],e=Pb(e),0,[0],e))}function Qb(e,t,r,n,o,a,i,s,l){for(var c=0,u=0,d=i,f=0,p=0,h=0,m=1,g=1,b=1,y=0,x="",v=o,w=a,k=n,j=x;g;)switch(h=y,y=Sb()){case 40:if(108!=h&&58==fb(j,d-1)){-1!=db(j+=ub(Ib(y),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:j+=Ib(y);break;case 9:case 10:case 13:case 32:j+=Mb(h);break;case 92:j+=Rb(Ab()-1,7);continue;case 47:switch(Eb()){case 42:case 47:gb(Zb(_b(Sb(),Ab()),t,r),l);break;default:j+="/"}break;case 123*m:s[c++]=hb(j)*b;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:-1==b&&(j=ub(j,/\f/g,"")),p>0&&hb(j)-d&&gb(p>32?Jb(j+";",n,r,d-1):Jb(ub(j," ","")+";",n,r,d-2),l);break;case 59:j+=";";default:if(gb(k=Yb(j,t,r,c,u,o,s,x,v=[],w=[],d),a),123===y)if(0===u)Qb(j,t,k,k,v,a,d,s,w);else switch(99===f&&110===fb(j,3)?100:f){case 100:case 108:case 109:case 115:Qb(e,k,k,n&&gb(Yb(e,k,k,0,0,o,s,x,o,v=[],d),w),o,w,d,s,n?v:w);break;default:Qb(j,k,k,k,[""],w,0,s,w)}}c=u=p=0,m=b=1,x=j="",d=i;break;case 58:d=1+hb(j),p=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==Cb())continue;switch(j+=sb(y),y*m){case 38:b=u>0?1:(j+="\f",-1);break;case 44:s[c++]=(hb(j)-1)*b,b=1;break;case 64:45===Eb()&&(j+=Ib(Sb())),f=Eb(),u=d=hb(x=j+=Db(Ab())),y++;break;case 45:45===h&&2==hb(j)&&(m=0)}}return a}function Yb(e,t,r,n,o,a,i,s,l,c,u){for(var d=o-1,f=0===o?a:[""],p=mb(f),h=0,m=0,g=0;h<n;++h)for(var b=0,y=pb(e,d+1,d=ib(m=i[h])),x=e;b<p;++b)(x=cb(m>0?f[b]+" "+y:ub(y,/&\f/g,f[b])))&&(l[g++]=x);return jb(e,t,r,0===o?Hb:s,l,c,u)}function Zb(e,t,r){return jb(e,t,r,qb,sb(wb),pb(e,2,-2),0)}function Jb(e,t,r,n){return jb(e,t,r,Ub,pb(e,0,n),pb(e,n+1,-1),n)}var Xb=function(e,t,r){for(var n=0,o=0;n=o,o=Eb(),38===n&&12===o&&(t[r]=1),!$b(o);)Sb();return Ob(e,vb)},ey=function(e,t){return Tb(function(e,t){var r=-1,n=44;do{switch($b(n)){case 0:38===n&&12===Eb()&&(t[r]=1),e[r]+=Xb(vb-1,t,r);break;case 2:e[r]+=Ib(n);break;case 4:if(44===n){e[++r]=58===Eb()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=sb(n)}}while(n=Sb());return e}(Pb(e),t))},ty=new WeakMap,ry=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||ty.get(r))&&!n){ty.set(e,!0);for(var o=[],a=ey(t,o),i=r.props,s=0,l=0;s<a.length;s++)for(var c=0;c<i.length;c++,l++)e.props[l]=o[s]?a[s].replace(/&\f/g,i[c]):i[c]+" "+a[s]}}},ny=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function oy(e,t){switch(function(e,t){return 45^fb(e,0)?(((t<<2^fb(e,0))<<2^fb(e,1))<<2^fb(e,2))<<2^fb(e,3):0}(e,t)){case 5103:return Fb+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Fb+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Fb+e+zb+e+Bb+e+e;case 6828:case 4268:return Fb+e+Bb+e+e;case 6165:return Fb+e+Bb+"flex-"+e+e;case 5187:return Fb+e+ub(e,/(\w+).+(:[^]+)/,Fb+"box-$1$2"+Bb+"flex-$1$2")+e;case 5443:return Fb+e+Bb+"flex-item-"+ub(e,/flex-|-self/,"")+e;case 4675:return Fb+e+Bb+"flex-line-pack"+ub(e,/align-content|flex-|-self/,"")+e;case 5548:return Fb+e+Bb+ub(e,"shrink","negative")+e;case 5292:return Fb+e+Bb+ub(e,"basis","preferred-size")+e;case 6060:return Fb+"box-"+ub(e,"-grow","")+Fb+e+Bb+ub(e,"grow","positive")+e;case 4554:return Fb+ub(e,/([^-])(transform)/g,"$1"+Fb+"$2")+e;case 6187:return ub(ub(ub(e,/(zoom-|grab)/,Fb+"$1"),/(image-set)/,Fb+"$1"),e,"")+e;case 5495:case 3959:return ub(e,/(image-set\([^]*)/,Fb+"$1$`$1");case 4968:return ub(ub(e,/(.+:)(flex-)?(.*)/,Fb+"box-pack:$3"+Bb+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Fb+e+e;case 4095:case 3583:case 4068:case 2532:return ub(e,/(.+)-inline(.+)/,Fb+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(hb(e)-1-t>6)switch(fb(e,t+1)){case 109:if(45!==fb(e,t+4))break;case 102:return ub(e,/(.+:)(.+)-([^]+)/,"$1"+Fb+"$2-$3$1"+zb+(108==fb(e,t+3)?"$3":"$2-$3"))+e;case 115:return~db(e,"stretch")?oy(ub(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==fb(e,t+1))break;case 6444:switch(fb(e,hb(e)-3-(~db(e,"!important")&&10))){case 107:return ub(e,":",":"+Fb)+e;case 101:return ub(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Fb+(45===fb(e,14)?"inline-":"")+"box$3$1"+Fb+"$2$3$1"+Bb+"$2box$3")+e}break;case 5936:switch(fb(e,t+11)){case 114:return Fb+e+Bb+ub(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Fb+e+Bb+ub(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Fb+e+Bb+ub(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Fb+e+Bb+e+e}return e}var ay=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Ub:e.return=oy(e.value,e.length);break;case Wb:return Vb([Nb(e,{value:ub(e.value,"@","@"+Fb)})],n);case Hb:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Vb([Nb(e,{props:[ub(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return Vb([Nb(e,{props:[ub(t,/:(plac\w+)/,":"+Fb+"input-$1")]}),Nb(e,{props:[ub(t,/:(plac\w+)/,":-moz-$1")]}),Nb(e,{props:[ub(t,/:(plac\w+)/,Bb+"input-$1")]})],n)}return""}))}}],iy=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var n,o,a=e.stylisPlugins||ay,i={},s=[];n=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)i[t[r]]=!0;s.push(e)}));var l,c,u=[Gb,(c=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],d=function(e){var t=mb(e);return function(r,n,o,a){for(var i="",s=0;s<t;s++)i+=e[s](r,n,o,a)||"";return i}}([ry,ny].concat(a,u));o=function(e,t,r,n){l=r,function(e){Vb(Kb(e),d)}(e?e+"{"+t.styles+"}":t.styles),n&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new ab({key:t,container:n,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:o};return f.sheet.hydrate(s),f};var sy={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function ly(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var cy=!1,uy=/[A-Z]|^ms/g,dy=/_EMO_([^_]+?)_([^]*?)_EMO_/g,fy=function(e){return 45===e.charCodeAt(1)},py=function(e){return null!=e&&"boolean"!==typeof e},hy=ly((function(e){return fy(e)?e:e.replace(uy,"-$&").toLowerCase()})),my=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(dy,(function(e,t,r){return yy={name:t,styles:r,next:yy},t}))}return 1===sy[e]||fy(e)||"number"!==typeof t||0===t?t:t+"px"},gy="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function by(e,t,r){if(null==r)return"";var n=r;if(void 0!==n.__emotion_styles)return n;switch(typeof r){case"boolean":return"";case"object":var o=r;if(1===o.anim)return yy={name:o.name,styles:o.styles,next:yy},o.name;var a=r;if(void 0!==a.styles){var i=a.next;if(void 0!==i)for(;void 0!==i;)yy={name:i.name,styles:i.styles,next:yy},i=i.next;return a.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=by(e,t,r[o])+";";else for(var a in r){var i=r[a];if("object"!==typeof i){var s=i;null!=t&&void 0!==t[s]?n+=a+"{"+t[s]+"}":py(s)&&(n+=hy(a)+":"+my(a,s)+";")}else{if("NO_COMPONENT_SELECTOR"===a&&cy)throw new Error(gy);if(!Array.isArray(i)||"string"!==typeof i[0]||null!=t&&void 0!==t[i[0]]){var l=by(e,t,i);switch(a){case"animation":case"animationName":n+=hy(a)+":"+l+";";break;default:n+=a+"{"+l+"}"}}else for(var c=0;c<i.length;c++)py(i[c])&&(n+=hy(a)+":"+my(a,i[c])+";")}}return n}(e,t,r);case"function":if(void 0!==e){var s=yy,l=r(e);return yy=s,by(e,t,l)}}var c=r;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var yy,xy=/label:\s*([^\s;\n{]+)\s*(;|$)/g;function vy(e,t,r){if(1===e.length&&"object"===typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,o="";yy=void 0;var a=e[0];null==a||void 0===a.raw?(n=!1,o+=by(r,t,a)):o+=a[0];for(var i=1;i<e.length;i++){if(o+=by(r,t,e[i]),n)o+=a[i]}xy.lastIndex=0;for(var s,l="";null!==(s=xy.exec(o));)l+="-"+s[1];var c=function(e){for(var t,r=0,n=0,o=e.length;o>=4;++n,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(o){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:yy}}var wy=!!o.useInsertionEffect&&o.useInsertionEffect,ky=(wy||n.useLayoutEffect,n.createContext("undefined"!==typeof HTMLElement?iy({key:"css"}):null));ky.Provider;var jy=function(e,t,r){!function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)}(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+n:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}};r(219);const Ny={dark:["#C1C2C5","#A6A7AB","#909296","#5c5f66","#373A40","#2C2E33","#25262b","#1A1B1E","#141517","#101113"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"],red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],violet:["#f3f0ff","#e5dbff","#d0bfff","#b197fc","#9775fa","#845ef7","#7950f2","#7048e8","#6741d9","#5f3dc4"],indigo:["#edf2ff","#dbe4ff","#bac8ff","#91a7ff","#748ffc","#5c7cfa","#4c6ef5","#4263eb","#3b5bdb","#364fc7"],blue:["#e7f5ff","#d0ebff","#a5d8ff","#74c0fc","#4dabf7","#339af0","#228be6","#1c7ed6","#1971c2","#1864ab"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],teal:["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#12b886","#0ca678","#099268","#087f5b"],green:["#ebfbee","#d3f9d8","#b2f2bb","#8ce99a","#69db7c","#51cf66","#40c057","#37b24d","#2f9e44","#2b8a3e"],lime:["#f4fce3","#e9fac8","#d8f5a2","#c0eb75","#a9e34b","#94d82d","#82c91e","#74b816","#66a80f","#5c940d"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],orange:["#fff4e6","#ffe8cc","#ffd8a8","#ffc078","#ffa94d","#ff922b","#fd7e14","#f76707","#e8590c","#d9480f"]};var Cy=Object.defineProperty,Sy=Object.getOwnPropertySymbols,Ey=Object.prototype.hasOwnProperty,Ay=Object.prototype.propertyIsEnumerable,Oy=(e,t,r)=>t in e?Cy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$y=(e,t)=>{for(var r in t||(t={}))Ey.call(t,r)&&Oy(e,r,t[r]);if(Sy)for(var r of Sy(t))Ay.call(t,r)&&Oy(e,r,t[r]);return e};function Py(e){return t=>"number"===typeof e.primaryShade?e.primaryShade:e.primaryShade[t||e.colorScheme]}function Ty(e){const t=Py(e);return function(r,n){let o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if("string"===typeof r&&r.includes(".")){const[t,o]=r.split("."),i=parseInt(o,10);if(t in e.colors&&i>=0&&i<10)return e.colors[t]["number"!==typeof n||a?i:n]}const i="number"===typeof n?n:t();return r in e.colors?e.colors[r][i]:o?e.colors[e.primaryColor][i]:r}}function Iy(e){let t="";for(let r=1;r<e.length-1;r+=1)t+=`${e[r]} ${r/(e.length-1)*100}%, `;return`${e[0]} 0%, ${t}${e[e.length-1]} 100%`}function My(e){const t=Ty(e),r=Py(e);return n=>{const o={from:(null==n?void 0:n.from)||e.defaultGradient.from,to:(null==n?void 0:n.to)||e.defaultGradient.to,deg:(null==n?void 0:n.deg)||e.defaultGradient.deg};return`linear-gradient(${o.deg}deg, ${t(o.from,r(),!1)} 0%, ${t(o.to,r(),!1)} 100%)`}}function Ry(e){if("number"===typeof e.size)return e.size;const t=e.sizes[e.size];return void 0!==t?t:e.size||e.sizes.md}function Ly(e){return/^#?([0-9A-F]{3}){1,2}$/i.test(e)?function(e){let t=e.replace("#","");if(3===t.length){const e=t.split("");t=[e[0],e[0],e[1],e[1],e[2],e[2]].join("")}const r=parseInt(t,16);return{r:r>>16&255,g:r>>8&255,b:255&r,a:1}}(e):e.startsWith("rgb")?function(e){const[t,r,n,o]=e.replace(/[^0-9,.]/g,"").split(",").map(Number);return{r:t,g:r,b:n,a:o||1}}(e):{r:0,g:0,b:0,a:1}}function _y(e,t){if("string"!==typeof e||t>1||t<0)return"rgba(0, 0, 0, 1)";const{r:r,g:n,b:o}=Ly(e);return`rgba(${r}, ${n}, ${o}, ${t})`}const Dy={fontStyles:function(e){return()=>({fontFamily:e.fontFamily||"sans-serif"})},themeColor:Ty,focusStyles:function(e){return t=>({WebkitTapHighlightColor:"transparent",[t||"&:focus"]:$y({},"always"===e.focusRing||"auto"===e.focusRing?e.focusRingStyles.styles(e):e.focusRingStyles.resetStyles(e)),[t?t.replace(":focus",":focus:not(:focus-visible)"):"&:focus:not(:focus-visible)"]:$y({},"auto"===e.focusRing||"never"===e.focusRing?e.focusRingStyles.resetStyles(e):null)})},linearGradient:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return`linear-gradient(${e}deg, ${Iy(r)})`},radialGradient:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return`radial-gradient(circle, ${Iy(t)})`},smallerThan:function(e){return t=>`@media (max-width: ${Ry({size:t,sizes:e.breakpoints})-1}px)`},largerThan:function(e){return t=>`@media (min-width: ${Ry({size:t,sizes:e.breakpoints})}px)`},rgba:_y,size:Ry,cover:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return{position:"absolute",top:e,right:e,left:e,bottom:e}},darken:function(e,t){const{r:r,g:n,b:o,a:a}=Ly(e),i=1-t,s=e=>Math.round(e*i);return`rgba(${s(r)}, ${s(n)}, ${s(o)}, ${a})`},lighten:function(e,t){const{r:r,g:n,b:o,a:a}=Ly(e),i=e=>Math.round(e+(255-e)*t);return`rgba(${i(r)}, ${i(n)}, ${i(o)}, ${a})`},radius:function(e){return t=>{if("number"===typeof t)return t;const r="number"===typeof e.defaultRadius?e.defaultRadius:e.radius[e.defaultRadius]||e.defaultRadius;return e.radius[t]||t||r}},variant:function(e){const t=Ty(e),r=Py(e),n=My(e);return o=>{let{variant:a,color:i,gradient:s,primaryFallback:l}=o;const c=function(e,t){if("string"===typeof e&&e.includes(".")){const[r,n]=e.split("."),o=parseInt(n,10);if(r in t.colors&&o>=0&&o<10)return{isSplittedColor:!0,key:r,shade:o}}return{isSplittedColor:!1}}(i,e);switch(a){case"light":return{border:"transparent",background:_y(t(i,"dark"===e.colorScheme?8:0,l,!1),"dark"===e.colorScheme?.2:1),color:"dark"===i?"dark"===e.colorScheme?e.colors.dark[0]:e.colors.dark[9]:t(i,"dark"===e.colorScheme?2:r("light")),hover:_y(t(i,"dark"===e.colorScheme?7:1,l,!1),"dark"===e.colorScheme?.25:.65)};case"subtle":return{border:"transparent",background:"transparent",color:"dark"===i?"dark"===e.colorScheme?e.colors.dark[0]:e.colors.dark[9]:t(i,"dark"===e.colorScheme?2:r("light")),hover:_y(t(i,"dark"===e.colorScheme?8:0,l,!1),"dark"===e.colorScheme?.2:1)};case"outline":return{border:t(i,"dark"===e.colorScheme?5:r("light")),background:"transparent",color:t(i,"dark"===e.colorScheme?5:r("light")),hover:"dark"===e.colorScheme?_y(t(i,5,l,!1),.05):_y(t(i,0,l,!1),.35)};case"default":return{border:"dark"===e.colorScheme?e.colors.dark[4]:e.colors.gray[4],background:"dark"===e.colorScheme?e.colors.dark[6]:e.white,color:"dark"===e.colorScheme?e.white:e.black,hover:"dark"===e.colorScheme?e.colors.dark[5]:e.colors.gray[0]};case"white":return{border:"transparent",background:e.white,color:t(i,r()),hover:null};case"transparent":return{border:"transparent",color:"dark"===i?"dark"===e.colorScheme?e.colors.dark[0]:e.colors.dark[9]:t(i,"dark"===e.colorScheme?2:r("light")),background:"transparent",hover:null};case"gradient":return{background:n(s),color:e.white,border:"transparent",hover:null};default:{const n=r(),o=c.isSplittedColor?c.shade:n,a=c.isSplittedColor?c.key:i;return{border:"transparent",background:t(a,o,l),color:e.white,hover:t(a,9===o?8:o+1)}}}}},primaryShade:Py,hover:function(e){return{"@media (hover: hover)":{"&:hover":e},"@media (hover: none)":{"&:active":e}}},gradient:My,primaryColor:function(e){return t=>{const r=Py(e)(t);return e.colors[e.primaryColor][r]}},placeholderStyles:function(e){return()=>({userSelect:"none",color:"dark"===e.colorScheme?e.colors.dark[3]:e.colors.gray[5]})}};var By=Object.defineProperty,zy=Object.defineProperties,Fy=Object.getOwnPropertyDescriptors,qy=Object.getOwnPropertySymbols,Hy=Object.prototype.hasOwnProperty,Uy=Object.prototype.propertyIsEnumerable,Wy=(e,t,r)=>t in e?By(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Vy=(e,t)=>{for(var r in t||(t={}))Hy.call(t,r)&&Wy(e,r,t[r]);if(qy)for(var r of qy(t))Uy.call(t,r)&&Wy(e,r,t[r]);return e},Gy=(e,t)=>zy(e,Fy(t));function Ky(e){return Gy(Vy({},e),{fn:{fontStyles:Dy.fontStyles(e),themeColor:Dy.themeColor(e),focusStyles:Dy.focusStyles(e),largerThan:Dy.largerThan(e),smallerThan:Dy.smallerThan(e),radialGradient:Dy.radialGradient,linearGradient:Dy.linearGradient,gradient:Dy.gradient(e),rgba:Dy.rgba,size:Dy.size,cover:Dy.cover,lighten:Dy.lighten,darken:Dy.darken,primaryShade:Dy.primaryShade(e),radius:Dy.radius(e),variant:Dy.variant(e),hover:Dy.hover,primaryColor:Dy.primaryColor(e),placeholderStyles:Dy.placeholderStyles(e)}})}Object.keys(Ny);const Qy={dir:"ltr",primaryShade:{light:6,dark:8},focusRing:"auto",loader:"oval",dateFormat:"MMMM D, YYYY",colorScheme:"light",white:"#fff",black:"#000",defaultRadius:"sm",transitionTimingFunction:"ease",colors:Ny,lineHeight:1.55,fontFamily:"-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",fontFamilyMonospace:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",primaryColor:"blue",respectReducedMotion:!0,cursorType:"default",defaultGradient:{from:"indigo",to:"cyan",deg:45},shadows:{xs:"0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1)",sm:"0 1px 3px rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0px 10px 15px -5px, rgba(0, 0, 0, 0.04) 0px 7px 7px -5px",md:"0 1px 3px rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0px 20px 25px -5px, rgba(0, 0, 0, 0.04) 0px 10px 10px -5px",lg:"0 1px 3px rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0px 28px 23px -7px, rgba(0, 0, 0, 0.04) 0px 12px 12px -7px",xl:"0 1px 3px rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0px 36px 28px -7px, rgba(0, 0, 0, 0.04) 0px 17px 17px -7px"},fontSizes:{xs:12,sm:14,md:16,lg:18,xl:20},radius:{xs:2,sm:4,md:8,lg:16,xl:32},spacing:{xs:10,sm:12,md:16,lg:20,xl:24},breakpoints:{xs:576,sm:768,md:992,lg:1200,xl:1400},headings:{fontFamily:"-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",fontWeight:700,sizes:{h1:{fontSize:34,lineHeight:1.3,fontWeight:void 0},h2:{fontSize:26,lineHeight:1.35,fontWeight:void 0},h3:{fontSize:22,lineHeight:1.4,fontWeight:void 0},h4:{fontSize:18,lineHeight:1.45,fontWeight:void 0},h5:{fontSize:16,lineHeight:1.5,fontWeight:void 0},h6:{fontSize:14,lineHeight:1.5,fontWeight:void 0}}},other:{},components:{},activeStyles:{transform:"translateY(1px)"},datesLocale:"en",globalStyles:void 0,focusRingStyles:{styles:e=>({outlineOffset:2,outline:`2px solid ${e.colors[e.primaryColor]["dark"===e.colorScheme?7:5]}`}),resetStyles:()=>({outline:"none"}),inputStyles:e=>({outline:"none",borderColor:e.colors[e.primaryColor]["object"===typeof e.primaryShade?e.primaryShade[e.colorScheme]:e.primaryShade]})}},Yy=Ky(Qy);Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable;function Zy(e){return Object.keys(e).reduce(((t,r)=>(void 0!==e[r]&&(t[r]=e[r]),t)),{})}var Jy=Object.defineProperty,Xy=Object.getOwnPropertySymbols,ex=Object.prototype.hasOwnProperty,tx=Object.prototype.propertyIsEnumerable,rx=(e,t,r)=>t in e?Jy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,nx=(e,t)=>{for(var r in t||(t={}))ex.call(t,r)&&rx(e,r,t[r]);if(Xy)for(var r of Xy(t))tx.call(t,r)&&rx(e,r,t[r]);return e};const ox=(0,n.createContext)({theme:Yy});function ax(){var e;return(null==(e=(0,n.useContext)(ox))?void 0:e.theme)||Yy}function ix(){var e;return null==(e=(0,n.useContext)(ox))?void 0:e.emotionCache}function sx(e,t,r){var n;const o=ax(),a=null==(n=o.components[e])?void 0:n.defaultProps,i="function"===typeof a?a(o):a;return nx(nx(nx({},t),i),Zy(r))}var lx=Object.getOwnPropertySymbols,cx=Object.prototype.hasOwnProperty,ux=Object.prototype.propertyIsEnumerable;function dx(e){const t=e,{m:r,mx:n,my:o,mt:a,mb:i,ml:s,mr:l,p:c,px:u,py:d,pt:f,pb:p,pl:h,pr:m,bg:g,c:b,opacity:y,ff:x,fz:v,fw:w,lts:k,ta:j,lh:N,fs:C,tt:S,td:E,w:A,miw:O,maw:$,h:P,mih:T,mah:I,bgsz:M,bgp:R,bgr:L,bga:_,pos:D,top:B,left:z,bottom:F,right:q,inset:H,display:U}=t,W=((e,t)=>{var r={};for(var n in e)cx.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&lx)for(var n of lx(e))t.indexOf(n)<0&&ux.call(e,n)&&(r[n]=e[n]);return r})(t,["m","mx","my","mt","mb","ml","mr","p","px","py","pt","pb","pl","pr","bg","c","opacity","ff","fz","fw","lts","ta","lh","fs","tt","td","w","miw","maw","h","mih","mah","bgsz","bgp","bgr","bga","pos","top","left","bottom","right","inset","display"]);return{systemStyles:Zy({m:r,mx:n,my:o,mt:a,mb:i,ml:s,mr:l,p:c,px:u,py:d,pt:f,pb:p,pl:h,pr:m,bg:g,c:b,opacity:y,ff:x,fz:v,fw:w,lts:k,ta:j,lh:N,fs:C,tt:S,td:E,w:A,miw:O,maw:$,h:P,mih:T,mah:I,bgsz:M,bgp:R,bgr:L,bga:_,pos:D,top:B,left:z,bottom:F,right:q,inset:H,display:U}),rest:W}}function fx(e){var t,r,n="";if("string"===typeof e||"number"===typeof e)n+=e;else if("object"===typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=fx(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}const px=iy({key:"mantine",prepend:!0});var hx=Object.defineProperty,mx=Object.getOwnPropertySymbols,gx=Object.prototype.hasOwnProperty,bx=Object.prototype.propertyIsEnumerable,yx=(e,t,r)=>t in e?hx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;const xx="ref";function vx(e){let t;if(1!==e.length)return{args:e,ref:t};const[r]=e;if(!(r instanceof Object))return{args:e,ref:t};if(!(xx in r))return{args:e,ref:t};t=r[xx];const n=((e,t)=>{for(var r in t||(t={}))gx.call(t,r)&&yx(e,r,t[r]);if(mx)for(var r of mx(t))bx.call(t,r)&&yx(e,r,t[r]);return e})({},r);return delete n[xx],{args:[n],ref:t}}const{cssFactory:wx}={cssFactory:function(e){const{cache:t}=e,r=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];const{ref:o,args:a}=vx(r),i=vy(a,t.registered);return jy(t,i,!1),`${t.key}-${i.name}${void 0===o?"":` ${o}`}`};return{css:r,cx:function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return function(e,t,r){const n=[],o=function(e,t,r){var n="";return r.split(" ").forEach((function(r){void 0!==e[r]?t.push(e[r]+";"):n+=r+" "})),n}(e,n,r);return n.length<2?r:o+t(n)}(t.registered,r,function(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=fx(e))&&(n&&(n+=" "),n+=t);return n}(n))}}}};function kx(){const e=ix()||px;return function(e,t){const r=(0,n.useRef)();return(!r.current||t.length!==r.current.prevDeps.length||r.current.prevDeps.map(((e,r)=>e===t[r])).indexOf(!1)>=0)&&(r.current={v:e(),prevDeps:[...t]}),r.current.v}((()=>wx({cache:e})),[e])}function jx(e){let{value:t,theme:r,getValue:n,property:o}=e;if(null==t)return;if("object"===typeof t){const e=function(e,t){const r=Object.keys(e).filter((e=>"base"!==e)).sort(((e,r)=>t.fn.size({size:e,sizes:t.breakpoints})-t.fn.size({size:r,sizes:t.breakpoints})));return"base"in e?["base",...r]:r}(t,r).reduce(((e,a)=>{if("base"===a&&void 0!==t.base){const a=n(t.base,r);return Array.isArray(o)?(o.forEach((t=>{e[t]=a})),e):(e[o]=a,e)}const i=n(t[a],r);return Array.isArray(o)?(e[r.fn.largerThan(a)]={},o.forEach((t=>{e[r.fn.largerThan(a)][t]=i})),e):(e[r.fn.largerThan(a)]={[o]:i},e)}),{});return e}const a=n(t,r);return Array.isArray(o)?o.reduce(((e,t)=>(e[t]=a,e)),{}):{[o]:a}}const Nx=["-xs","-sm","-md","-lg","-xl"];const Cx={color:function(e,t){return"dimmed"===e?"dark"===t.colorScheme?t.colors.dark[2]:t.colors.gray[6]:t.fn.variant({variant:"filled",color:e,primaryFallback:!1}).background},default:function(e){return e},fontSize:function(e,t){return t.fn.size({size:e,sizes:t.fontSizes})},spacing:function(e,t){return Nx.includes(e)?-1*t.fn.size({size:e.replace("-",""),sizes:t.spacing}):t.fn.size({size:e,sizes:t.spacing})}},Sx={m:{type:"spacing",property:"margin"},mt:{type:"spacing",property:"marginTop"},mb:{type:"spacing",property:"marginBottom"},ml:{type:"spacing",property:"marginLeft"},mr:{type:"spacing",property:"marginRight"},mx:{type:"spacing",property:["marginRight","marginLeft"]},my:{type:"spacing",property:["marginTop","marginBottom"]},p:{type:"spacing",property:"padding"},pt:{type:"spacing",property:"paddingTop"},pb:{type:"spacing",property:"paddingBottom"},pl:{type:"spacing",property:"paddingLeft"},pr:{type:"spacing",property:"paddingRight"},px:{type:"spacing",property:["paddingRight","paddingLeft"]},py:{type:"spacing",property:["paddingTop","paddingBottom"]},bg:{type:"color",property:"background"},c:{type:"color",property:"color"},opacity:{type:"default",property:"opacity"},ff:{type:"default",property:"fontFamily"},fz:{type:"fontSize",property:"fontSize"},fw:{type:"default",property:"fontWeight"},lts:{type:"default",property:"letterSpacing"},ta:{type:"default",property:"textAlign"},lh:{type:"default",property:"lineHeight"},fs:{type:"default",property:"fontStyle"},tt:{type:"default",property:"textTransform"},td:{type:"default",property:"textDecoration"},w:{type:"spacing",property:"width"},miw:{type:"spacing",property:"minWidth"},maw:{type:"spacing",property:"maxWidth"},h:{type:"spacing",property:"height"},mih:{type:"spacing",property:"minHeight"},mah:{type:"spacing",property:"maxHeight"},bgsz:{type:"default",property:"background-size"},bgp:{type:"default",property:"background-position"},bgr:{type:"default",property:"background-repeat"},bga:{type:"default",property:"background-attachment"},pos:{type:"default",property:"position"},top:{type:"default",property:"top"},left:{type:"default",property:"left"},bottom:{type:"default",property:"bottom"},right:{type:"default",property:"right"},inset:{type:"default",property:"inset"},display:{type:"default",property:"display"}};var Ex=Object.defineProperty,Ax=Object.getOwnPropertySymbols,Ox=Object.prototype.hasOwnProperty,$x=Object.prototype.propertyIsEnumerable,Px=(e,t,r)=>t in e?Ex(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Tx=(e,t)=>{for(var r in t||(t={}))Ox.call(t,r)&&Px(e,r,t[r]);if(Ax)for(var r of Ax(t))$x.call(t,r)&&Px(e,r,t[r]);return e};function Ix(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Sx;return Object.keys(r).reduce(((n,o)=>(o in e&&void 0!==e[o]&&n.push(jx({value:e[o],getValue:Cx[r[o].type],property:r[o].property,theme:t})),n)),[]).reduce(((e,t)=>(Object.keys(t).forEach((r=>{"object"===typeof t[r]&&null!==t[r]?e[r]=r in e?Tx(Tx({},e[r]),t[r]):t[r]:e[r]=t[r]})),e)),{})}function Mx(e,t){return"function"===typeof e?e(t):e}function Rx(e,t,r){const n=ax(),{css:o,cx:a}=kx();return Array.isArray(e)?a(r,o(Ix(t,n)),e.map((e=>o(Mx(e,n))))):a(r,o(Mx(e,n)),o(Ix(t,n)))}var Lx=Object.defineProperty,_x=Object.getOwnPropertySymbols,Dx=Object.prototype.hasOwnProperty,Bx=Object.prototype.propertyIsEnumerable,zx=(e,t,r)=>t in e?Lx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;const Fx=(0,n.forwardRef)(((e,t)=>{var r=e,{className:o,component:a,style:i,sx:s}=r,l=((e,t)=>{var r={};for(var n in e)Dx.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&_x)for(var n of _x(e))t.indexOf(n)<0&&Bx.call(e,n)&&(r[n]=e[n]);return r})(r,["className","component","style","sx"]);const{systemStyles:c,rest:u}=dx(l),d=a||"div";return n.createElement(d,((e,t)=>{for(var r in t||(t={}))Dx.call(t,r)&&zx(e,r,t[r]);if(_x)for(var r of _x(t))Bx.call(t,r)&&zx(e,r,t[r]);return e})({ref:t,className:Rx(s,c,o),style:i},u))}));Fx.displayName="@mantine/core/Box";const qx=Fx,Hx="undefined"!==typeof document?n.useLayoutEffect:n.useEffect,Ux=()=>`mantine-${Math.random().toString(36).slice(2,11)}`,Wx=n["useId".toString()]||(()=>{});function Vx(e){return"string"===typeof e?e:function(){const e=Wx();return e?`mantine-${e.replace(/:/g,"")}`:""}()||function(){const[e,t]=(0,n.useState)("");return Hx((()=>{t(Ux())}),[]),e}()}function Gx(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return e=>{t.forEach((t=>function(e,t){"function"===typeof e?e(t):"object"===typeof e&&null!==e&&"current"in e&&(e.current=t)}(t,e)))}}function Kx(e){let{cx:t,classes:r,context:n,classNames:o,name:a,cache:i}=e;const s=n.reduce(((e,t)=>(Object.keys(t.classNames).forEach((r=>{"string"!==typeof e[r]?e[r]=`${t.classNames[r]}`:e[r]=`${e[r]} ${t.classNames[r]}`})),e)),{});return Object.keys(r).reduce(((e,n)=>(e[n]=t(r[n],s[n],null!=o&&o[n],Array.isArray(a)?a.filter(Boolean).map((e=>`${(null==i?void 0:i.key)||"mantine"}-${e}-${n}`)).join(" "):a?`${(null==i?void 0:i.key)||"mantine"}-${a}-${n}`:null),e)),{})}var Qx=Object.defineProperty,Yx=Object.getOwnPropertySymbols,Zx=Object.prototype.hasOwnProperty,Jx=Object.prototype.propertyIsEnumerable,Xx=(e,t,r)=>t in e?Qx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ev=(e,t)=>{for(var r in t||(t={}))Zx.call(t,r)&&Xx(e,r,t[r]);if(Yx)for(var r of Yx(t))Jx.call(t,r)&&Xx(e,r,t[r]);return e};function tv(e){return`__mantine-ref-${e||""}`}function rv(e,t,r){const n=e=>"function"===typeof e?e(t,r||{}):e||{};return Array.isArray(e)?e.map((e=>n(e.styles))).reduce(((e,t)=>(Object.keys(t).forEach((r=>{e[r]?e[r]=ev(ev({},e[r]),t[r]):e[r]=ev({},t[r])})),e)),{}):n(e)}function nv(e){const t="function"===typeof e?e:()=>e;return function(e,r){const n=ax(),o=function(e){const t=ax(),r=e=>{var r,n;return{styles:(null==(r=t.components[e])?void 0:r.styles)||{},classNames:(null==(n=t.components[e])?void 0:n.classNames)||{}}};return Array.isArray(e)?e.map(r):[r(e)]}(null==r?void 0:r.name),a=ix(),{css:i,cx:s}=kx(),l=t(n,e,tv),c=rv(null==r?void 0:r.styles,n,e),u=rv(o,n,e),d=Object.fromEntries(Object.keys(l).map((e=>[e,s({[i(l[e])]:!(null==r?void 0:r.unstyled)},i(u[e]),i(c[e]))])));return{classes:Kx({cx:s,classes:d,context:o,classNames:null==r?void 0:r.classNames,name:null==r?void 0:r.name,cache:a}),cx:s,theme:n}}}var ov=Object.defineProperty,av=Object.defineProperties,iv=Object.getOwnPropertyDescriptors,sv=Object.getOwnPropertySymbols,lv=Object.prototype.hasOwnProperty,cv=Object.prototype.propertyIsEnumerable,uv=(e,t,r)=>t in e?ov(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,dv=(e,t)=>{for(var r in t||(t={}))lv.call(t,r)&&uv(e,r,t[r]);if(sv)for(var r of sv(t))cv.call(t,r)&&uv(e,r,t[r]);return e},fv=(e,t)=>av(e,iv(t));const pv={xs:18,sm:22,md:28,lg:34,xl:44};function hv(e){let{variant:t,theme:r,color:n,gradient:o}=e;const a=r.fn.variant({color:n,variant:t,gradient:o});return"gradient"===t?{border:0,backgroundImage:a.background,color:a.color,"&:hover":r.fn.hover({backgroundSize:"200%"})}:dv({border:`1px solid ${a.border}`,backgroundColor:a.background,color:a.color},r.fn.hover({backgroundColor:a.hover}))}var mv=nv(((e,t)=>{let{color:r,size:n,radius:o,variant:a,gradient:i}=t;return{root:fv(dv({},hv({variant:a,theme:e,color:r,gradient:i})),{position:"relative",height:e.fn.size({size:n,sizes:pv}),minHeight:e.fn.size({size:n,sizes:pv}),width:e.fn.size({size:n,sizes:pv}),minWidth:e.fn.size({size:n,sizes:pv}),borderRadius:e.fn.radius(o),padding:0,lineHeight:1,display:"flex",alignItems:"center",justifyContent:"center","&:active":e.activeStyles,"&:disabled, &[data-disabled]":{color:e.colors.gray["dark"===e.colorScheme?6:4],cursor:"not-allowed",backgroundColor:"transparent"===a?void 0:e.fn.themeColor("gray","dark"===e.colorScheme?8:1),borderColor:"transparent"===a?void 0:e.fn.themeColor("gray","dark"===e.colorScheme?8:1),backgroundImage:"none",pointerEvents:"none","&:active":{transform:"none"}},"&[data-loading]":{pointerEvents:"none","&::before":{content:'""',position:"absolute",top:-1,left:-1,right:-1,bottom:-1,backgroundColor:"dark"===e.colorScheme?e.fn.rgba(e.colors.dark[7],.5):"rgba(255, 255, 255, .5)",borderRadius:e.fn.radius(o),cursor:"not-allowed"}}})}}));const gv=mv;var bv=Object.defineProperty,yv=Object.getOwnPropertySymbols,xv=Object.prototype.hasOwnProperty,vv=Object.prototype.propertyIsEnumerable,wv=(e,t,r)=>t in e?bv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var kv=Object.defineProperty,jv=Object.getOwnPropertySymbols,Nv=Object.prototype.hasOwnProperty,Cv=Object.prototype.propertyIsEnumerable,Sv=(e,t,r)=>t in e?kv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Ev=Object.defineProperty,Av=Object.getOwnPropertySymbols,Ov=Object.prototype.hasOwnProperty,$v=Object.prototype.propertyIsEnumerable,Pv=(e,t,r)=>t in e?Ev(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Tv=Object.defineProperty,Iv=Object.getOwnPropertySymbols,Mv=Object.prototype.hasOwnProperty,Rv=Object.prototype.propertyIsEnumerable,Lv=(e,t,r)=>t in e?Tv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;const _v={bars:function(e){var t=e,{size:r,color:o}=t,a=((e,t)=>{var r={};for(var n in e)xv.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&yv)for(var n of yv(e))t.indexOf(n)<0&&vv.call(e,n)&&(r[n]=e[n]);return r})(t,["size","color"]);return n.createElement("svg",((e,t)=>{for(var r in t||(t={}))xv.call(t,r)&&wv(e,r,t[r]);if(yv)for(var r of yv(t))vv.call(t,r)&&wv(e,r,t[r]);return e})({viewBox:"0 0 135 140",xmlns:"http://www.w3.org/2000/svg",fill:o,width:`${r}px`},a),n.createElement("rect",{y:"10",width:"15",height:"120",rx:"6"},n.createElement("animate",{attributeName:"height",begin:"0.5s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),n.createElement("animate",{attributeName:"y",begin:"0.5s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),n.createElement("rect",{x:"30",y:"10",width:"15",height:"120",rx:"6"},n.createElement("animate",{attributeName:"height",begin:"0.25s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),n.createElement("animate",{attributeName:"y",begin:"0.25s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),n.createElement("rect",{x:"60",width:"15",height:"140",rx:"6"},n.createElement("animate",{attributeName:"height",begin:"0s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),n.createElement("animate",{attributeName:"y",begin:"0s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),n.createElement("rect",{x:"90",y:"10",width:"15",height:"120",rx:"6"},n.createElement("animate",{attributeName:"height",begin:"0.25s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),n.createElement("animate",{attributeName:"y",begin:"0.25s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),n.createElement("rect",{x:"120",y:"10",width:"15",height:"120",rx:"6"},n.createElement("animate",{attributeName:"height",begin:"0.5s",dur:"1s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),n.createElement("animate",{attributeName:"y",begin:"0.5s",dur:"1s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})))},oval:function(e){var t=e,{size:r,color:o}=t,a=((e,t)=>{var r={};for(var n in e)Nv.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&jv)for(var n of jv(e))t.indexOf(n)<0&&Cv.call(e,n)&&(r[n]=e[n]);return r})(t,["size","color"]);return n.createElement("svg",((e,t)=>{for(var r in t||(t={}))Nv.call(t,r)&&Sv(e,r,t[r]);if(jv)for(var r of jv(t))Cv.call(t,r)&&Sv(e,r,t[r]);return e})({width:`${r}px`,height:`${r}px`,viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg",stroke:o},a),n.createElement("g",{fill:"none",fillRule:"evenodd"},n.createElement("g",{transform:"translate(2.5 2.5)",strokeWidth:"5"},n.createElement("circle",{strokeOpacity:".5",cx:"16",cy:"16",r:"16"}),n.createElement("path",{d:"M32 16c0-9.94-8.06-16-16-16"},n.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 16 16",to:"360 16 16",dur:"1s",repeatCount:"indefinite"})))))},dots:function(e){var t=e,{size:r,color:o}=t,a=((e,t)=>{var r={};for(var n in e)Ov.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&Av)for(var n of Av(e))t.indexOf(n)<0&&$v.call(e,n)&&(r[n]=e[n]);return r})(t,["size","color"]);return n.createElement("svg",((e,t)=>{for(var r in t||(t={}))Ov.call(t,r)&&Pv(e,r,t[r]);if(Av)for(var r of Av(t))$v.call(t,r)&&Pv(e,r,t[r]);return e})({width:`${r}px`,height:r/4+"px",viewBox:"0 0 120 30",xmlns:"http://www.w3.org/2000/svg",fill:o},a),n.createElement("circle",{cx:"15",cy:"15",r:"15"},n.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),n.createElement("animate",{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})),n.createElement("circle",{cx:"60",cy:"15",r:"9",fillOpacity:"0.3"},n.createElement("animate",{attributeName:"r",from:"9",to:"9",begin:"0s",dur:"0.8s",values:"9;15;9",calcMode:"linear",repeatCount:"indefinite"}),n.createElement("animate",{attributeName:"fill-opacity",from:"0.5",to:"0.5",begin:"0s",dur:"0.8s",values:".5;1;.5",calcMode:"linear",repeatCount:"indefinite"})),n.createElement("circle",{cx:"105",cy:"15",r:"15"},n.createElement("animate",{attributeName:"r",from:"15",to:"15",begin:"0s",dur:"0.8s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),n.createElement("animate",{attributeName:"fill-opacity",from:"1",to:"1",begin:"0s",dur:"0.8s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})))}},Dv={xs:18,sm:22,md:36,lg:44,xl:58},Bv={size:"md"};function zv(e){const t=sx("Loader",Bv,e),{size:r,color:o,variant:a}=t,i=((e,t)=>{var r={};for(var n in e)Mv.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&Iv)for(var n of Iv(e))t.indexOf(n)<0&&Rv.call(e,n)&&(r[n]=e[n]);return r})(t,["size","color","variant"]),s=ax(),l=a in _v?a:s.loader;return n.createElement(qx,((e,t)=>{for(var r in t||(t={}))Mv.call(t,r)&&Lv(e,r,t[r]);if(Iv)for(var r of Iv(t))Rv.call(t,r)&&Lv(e,r,t[r]);return e})({role:"presentation",component:_v[l]||_v.bars,size:s.fn.size({size:r,sizes:Dv}),color:s.fn.variant({variant:"filled",primaryFallback:!1,color:o||s.primaryColor}).background},i))}zv.displayName="@mantine/core/Loader";var Fv=Object.defineProperty,qv=Object.defineProperties,Hv=Object.getOwnPropertyDescriptors,Uv=Object.getOwnPropertySymbols,Wv=Object.prototype.hasOwnProperty,Vv=Object.prototype.propertyIsEnumerable,Gv=(e,t,r)=>t in e?Fv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Kv=(e,t)=>{for(var r in t||(t={}))Wv.call(t,r)&&Gv(e,r,t[r]);if(Uv)for(var r of Uv(t))Vv.call(t,r)&&Gv(e,r,t[r]);return e},Qv=(e,t)=>qv(e,Hv(t)),Yv=nv((e=>({root:Qv(Kv(Kv({},e.fn.focusStyles()),e.fn.fontStyles()),{cursor:"pointer",border:0,padding:0,appearance:"none",fontSize:e.fontSizes.md,backgroundColor:"transparent",textAlign:"left",color:"dark"===e.colorScheme?e.colors.dark[0]:e.black,textDecoration:"none",boxSizing:"border-box"})})));const Zv=Yv;var Jv=Object.defineProperty,Xv=Object.getOwnPropertySymbols,ew=Object.prototype.hasOwnProperty,tw=Object.prototype.propertyIsEnumerable,rw=(e,t,r)=>t in e?Jv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;const nw=(0,n.forwardRef)(((e,t)=>{const r=sx("UnstyledButton",{},e),{className:o,component:a="button",unstyled:i}=r,s=((e,t)=>{var r={};for(var n in e)ew.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&Xv)for(var n of Xv(e))t.indexOf(n)<0&&tw.call(e,n)&&(r[n]=e[n]);return r})(r,["className","component","unstyled"]),{classes:l,cx:c}=Zv(null,{name:"UnstyledButton",unstyled:i});return n.createElement(qx,((e,t)=>{for(var r in t||(t={}))ew.call(t,r)&&rw(e,r,t[r]);if(Xv)for(var r of Xv(t))tw.call(t,r)&&rw(e,r,t[r]);return e})({component:a,ref:t,className:c(l.root,o),type:"button"===a?"button":void 0},s))}));nw.displayName="@mantine/core/UnstyledButton";const ow=nw;var aw=Object.defineProperty,iw=Object.getOwnPropertySymbols,sw=Object.prototype.hasOwnProperty,lw=Object.prototype.propertyIsEnumerable,cw=(e,t,r)=>t in e?aw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,uw=(e,t)=>{for(var r in t||(t={}))sw.call(t,r)&&cw(e,r,t[r]);if(iw)for(var r of iw(t))lw.call(t,r)&&cw(e,r,t[r]);return e};const dw={color:"gray",size:"md",variant:"subtle",loading:!1},fw=(0,n.forwardRef)(((e,t)=>{const r=sx("ActionIcon",dw,e),{className:o,color:a,children:i,radius:s,size:l,variant:c,gradient:u,disabled:d,loaderProps:f,loading:p,unstyled:h}=r,m=((e,t)=>{var r={};for(var n in e)sw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&iw)for(var n of iw(e))t.indexOf(n)<0&&lw.call(e,n)&&(r[n]=e[n]);return r})(r,["className","color","children","radius","size","variant","gradient","disabled","loaderProps","loading","unstyled"]),{classes:g,cx:b,theme:y}=gv({size:l,radius:s,color:a,variant:c,gradient:u},{name:"ActionIcon",unstyled:h}),x=y.fn.variant({color:a,variant:c}),v=n.createElement(zv,uw({color:x.color,size:y.fn.size({size:l,sizes:pv})-12},f));return n.createElement(ow,uw({className:b(g.root,o),ref:t,disabled:d,"data-disabled":d||void 0,"data-loading":p||void 0,unstyled:h},m),p?v:i)}));fw.displayName="@mantine/core/ActionIcon";const pw=fw;var hw=Object.defineProperty,mw=Object.getOwnPropertySymbols,gw=Object.prototype.hasOwnProperty,bw=Object.prototype.propertyIsEnumerable,yw=(e,t,r)=>t in e?hw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,xw=(e,t)=>{for(var r in t||(t={}))gw.call(t,r)&&yw(e,r,t[r]);if(mw)for(var r of mw(t))bw.call(t,r)&&yw(e,r,t[r]);return e},vw=nv(((e,t)=>{let{noActive:r}=t;const n=e.fn.variant({color:e.primaryColor,variant:"light"});return{control:{backgroundColor:"dark"===e.colorScheme?e.colors.dark[6]:e.white,border:`1px solid ${"dark"===e.colorScheme?e.colors.dark[4]:e.colors.gray[3]}`,color:"dark"===e.colorScheme?e.colors.dark[0]:e.colors.gray[7],"&.ql-active":r?{}:xw({backgroundColor:n.background,color:n.color},e.fn.hover({backgroundColor:n.hover}))}}}));const ww=vw;var kw=Object.defineProperty,jw=Object.getOwnPropertySymbols,Nw=Object.prototype.hasOwnProperty,Cw=Object.prototype.propertyIsEnumerable,Sw=(e,t,r)=>t in e?kw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ew=(e,t)=>{for(var r in t||(t={}))Nw.call(t,r)&&Sw(e,r,t[r]);if(jw)for(var r of jw(t))Cw.call(t,r)&&Sw(e,r,t[r]);return e},Aw=(e,t)=>{var r={};for(var n in e)Nw.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&jw)for(var n of jw(e))t.indexOf(n)<0&&Cw.call(e,n)&&(r[n]=e[n]);return r};function Ow(e){var t=e,{className:r,children:o,controls:a,value:i,noActive:s}=t,l=Aw(t,["className","children","controls","value","noActive"]);const{classes:c,cx:u}=ww({noActive:s},{name:"RichTextEditor"});return n.createElement(pw,Ew({className:u(c.control,`ql-${a}`,r),value:i,radius:0},l),o)}function $w(){return $w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$w.apply(this,arguments)}function Pw(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}Ow.displayName="@mantine/rte/ToolbarButton";var Tw=["size","color","stroke"];var Iw=["size","color","stroke"];var Mw=["size","color","stroke"];var Rw=["size","color","stroke"];var Lw=["size","color","stroke"];var _w=["size","color","stroke"];var Dw=["size","color","stroke"];var Bw=["size","color","stroke"];function zw(e){var t=e.size,r=void 0===t?24:t,o=e.color,a=void 0===o?"currentColor":o,i=e.stroke,s=void 0===i?2:i,l=Pw(e,Bw);return n.createElement("svg",$w({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-code",width:r,height:r,viewBox:"0 0 24 24",strokeWidth:s,stroke:a,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},l),n.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),n.createElement("polyline",{points:"7 8 3 12 7 16"}),n.createElement("polyline",{points:"17 8 21 12 17 16"}),n.createElement("line",{x1:14,y1:4,x2:10,y2:20}))}var Fw=["size","color","stroke"];var qw=["size","color","stroke"];var Hw=["size","color","stroke"];var Uw=["size","color","stroke"];var Ww=["size","color","stroke"];var Vw=["size","color","stroke"];var Gw=["size","color","stroke"];var Kw=["size","color","stroke"];var Qw=["size","color","stroke"];var Yw=["size","color","stroke"];var Zw=["size","color","stroke"];var Jw=["size","color","stroke"];var Xw=["size","color","stroke"];var ek=["size","color","stroke"];var tk=["size","color","stroke"];const rk={code:{icon:zw,controls:"code"},codeBlock:{icon:zw,controls:"code-block"},bold:{icon:function(e){var t=e.size,r=void 0===t?24:t,o=e.color,a=void 0===o?"currentColor":o,i=e.stroke,s=void 0===i?2:i,l=Pw(e,Lw);return n.createElement("svg",$w({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-bold",width:r,height:r,viewBox:"0 0 24 24",strokeWidth:s,stroke:a,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},l),n.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),n.createElement("path",{d:"M7 5h6a3.5 3.5 0 0 1 0 7h-6z"}),n.createElement("path",{d:"M13 12h1a3.5 3.5 0 0 1 0 7h-7v-7"}))},controls:"bold"},italic:{icon:function(e){var t=e.size,r=void 0===t?24:t,o=e.color,a=void 0===o?"currentColor":o,i=e.stroke,s=void 0===i?2:i,l=Pw(e,Gw);return n.createElement("svg",$w({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-italic",width:r,height:r,viewBox:"0 0 24 24",strokeWidth:s,stroke:a,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},l),n.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),n.createElement("line",{x1:11,y1:5,x2:17,y2:5}),n.createElement("line",{x1:7,y1:19,x2:13,y2:19}),n.createElement("line",{x1:14,y1:5,x2:10,y2:19}))},controls:"italic"},underline:{icon:function(e){var t=e.size,r=void 0===t?24:t,o=e.color,a=void 0===o?"currentColor":o,i=e.stroke,s=void 0===i?2:i,l=Pw(e,tk);return n.createElement("svg",$w({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-underline",width:r,height:r,viewBox:"0 0 24 24",strokeWidth:s,stroke:a,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},l),n.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),n.createElement("path",{d:"M7 5v5a5 5 0 0 0 10 0v-5"}),n.createElement("path",{d:"M5 19h14"}))},controls:"underline"},strike:{icon:function(e){var t=e.size,r=void 0===t?24:t,o=e.color,a=void 0===o?"currentColor":o,i=e.stroke,s=void 0===i?2:i,l=Pw(e,Jw);return n.createElement("svg",$w({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-strikethrough",width:r,height:r,viewBox:"0 0 24 24",strokeWidth:s,stroke:a,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},l),n.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),n.createElement("line",{x1:5,y1:12,x2:19,y2:12}),n.createElement("path",{d:"M16 6.5a4 2 0 0 0 -4 -1.5h-1a3.5 3.5 0 0 0 0 7h2a3.5 3.5 0 0 1 0 7h-1.5a4 2 0 0 1 -4 -1.5"}))},controls:"strike"},unorderedList:{icon:function(e){var t=e.size,r=void 0===t?24:t,o=e.color,a=void 0===o?"currentColor":o,i=e.stroke,s=void 0===i?2:i,l=Pw(e,Yw);return n.createElement("svg",$w({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-list",width:r,height:r,viewBox:"0 0 24 24",strokeWidth:s,stroke:a,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},l),n.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),n.createElement("line",{x1:9,y1:6,x2:20,y2:6}),n.createElement("line",{x1:9,y1:12,x2:20,y2:12}),n.createElement("line",{x1:9,y1:18,x2:20,y2:18}),n.createElement("line",{x1:5,y1:6,x2:5,y2:6.01}),n.createElement("line",{x1:5,y1:12,x2:5,y2:12.01}),n.createElement("line",{x1:5,y1:18,x2:5,y2:18.01}))},controls:"list",value:"bullet"},orderedList:{icon:function(e){var t=e.size,r=void 0===t?24:t,o=e.color,a=void 0===o?"currentColor":o,i=e.stroke,s=void 0===i?2:i,l=Pw(e,Qw);return n.createElement("svg",$w({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-list-numbers",width:r,height:r,viewBox:"0 0 24 24",strokeWidth:s,stroke:a,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},l),n.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),n.createElement("path",{d:"M11 6h9"}),n.createElement("path",{d:"M11 12h9"}),n.createElement("path",{d:"M12 18h8"}),n.createElement("path",{d:"M4 16a2 2 0 1 1 4 0c0 .591 -.5 1 -1 1.5l-3 2.5h4"}),n.createElement("path",{d:"M6 10v-6l-2 2"}))},controls:"list",value:"ordered"},link:{icon:function(e){var t=e.size,r=void 0===t?24:t,o=e.color,a=void 0===o?"currentColor":o,i=e.stroke,s=void 0===i?2:i,l=Pw(e,Kw);return n.createElement("svg",$w({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-link",width:r,height:r,viewBox:"0 0 24 24",strokeWidth:s,stroke:a,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},l),n.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),n.createElement("path",{d:"M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"}),n.createElement("path",{d:"M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"}))},controls:"link"},image:{icon:function(e){var t=e.size,r=void 0===t?24:t,o=e.color,a=void 0===o?"currentColor":o,i=e.stroke,s=void 0===i?2:i,l=Pw(e,Zw);return n.createElement("svg",$w({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-photo",width:r,height:r,viewBox:"0 0 24 24",strokeWidth:s,stroke:a,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},l),n.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),n.createElement("line",{x1:15,y1:8,x2:15.01,y2:8}),n.createElement("rect",{x:4,y:4,width:16,height:16,rx:3}),n.createElement("path",{d:"M4 15l4 -4a3 5 0 0 1 3 0l5 5"}),n.createElement("path",{d:"M14 14l1 -1a3 5 0 0 1 3 0l2 2"}))},controls:"image"},clean:{icon:function(e){var t=e.size,r=void 0===t?24:t,o=e.color,a=void 0===o?"currentColor":o,i=e.stroke,s=void 0===i?2:i,l=Pw(e,Dw);return n.createElement("svg",$w({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-clear-formatting",width:r,height:r,viewBox:"0 0 24 24",strokeWidth:s,stroke:a,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},l),n.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),n.createElement("path",{d:"M17 15l4 4m0 -4l-4 4"}),n.createElement("path",{d:"M7 6v-1h11v1"}),n.createElement("line",{x1:7,y1:19,x2:11,y2:19}),n.createElement("line",{x1:13,y1:5,x2:9,y2:19}))},controls:"clean"},alignCenter:{icon:function(e){var t=e.size,r=void 0===t?24:t,o=e.color,a=void 0===o?"currentColor":o,i=e.stroke,s=void 0===i?2:i,l=Pw(e,Tw);return n.createElement("svg",$w({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-align-center",width:r,height:r,viewBox:"0 0 24 24",strokeWidth:s,stroke:a,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},l),n.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),n.createElement("line",{x1:4,y1:6,x2:20,y2:6}),n.createElement("line",{x1:8,y1:12,x2:16,y2:12}),n.createElement("line",{x1:6,y1:18,x2:18,y2:18}))},controls:"align",value:"center",noActive:!0},alignLeft:{icon:function(e){var t=e.size,r=void 0===t?24:t,o=e.color,a=void 0===o?"currentColor":o,i=e.stroke,s=void 0===i?2:i,l=Pw(e,Iw);return n.createElement("svg",$w({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-align-left",width:r,height:r,viewBox:"0 0 24 24",strokeWidth:s,stroke:a,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},l),n.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),n.createElement("line",{x1:4,y1:6,x2:20,y2:6}),n.createElement("line",{x1:4,y1:12,x2:14,y2:12}),n.createElement("line",{x1:4,y1:18,x2:18,y2:18}))},controls:"align",value:"",noActive:!0},alignRight:{icon:function(e){var t=e.size,r=void 0===t?24:t,o=e.color,a=void 0===o?"currentColor":o,i=e.stroke,s=void 0===i?2:i,l=Pw(e,Mw);return n.createElement("svg",$w({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-align-right",width:r,height:r,viewBox:"0 0 24 24",strokeWidth:s,stroke:a,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},l),n.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),n.createElement("line",{x1:4,y1:6,x2:20,y2:6}),n.createElement("line",{x1:10,y1:12,x2:20,y2:12}),n.createElement("line",{x1:6,y1:18,x2:20,y2:18}))},controls:"align",value:"right",noActive:!0},video:{icon:function(e){var t=e.size,r=void 0===t?24:t,o=e.color,a=void 0===o?"currentColor":o,i=e.stroke,s=void 0===i?2:i,l=Pw(e,_w);return n.createElement("svg",$w({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-brand-youtube",width:r,height:r,viewBox:"0 0 24 24",strokeWidth:s,stroke:a,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},l),n.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),n.createElement("rect",{x:3,y:5,width:18,height:14,rx:4}),n.createElement("path",{d:"M10 9l5 3l-5 3z"}))},controls:"video"},h1:{icon:function(e){var t=e.size,r=void 0===t?24:t,o=e.color,a=void 0===o?"currentColor":o,i=e.stroke,s=void 0===i?2:i,l=Pw(e,Fw);return n.createElement("svg",$w({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-h-1",width:r,height:r,viewBox:"0 0 24 24",strokeWidth:s,stroke:a,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},l),n.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),n.createElement("path",{d:"M19 18v-8l-2 2"}),n.createElement("path",{d:"M4 6v12"}),n.createElement("path",{d:"M12 6v12"}),n.createElement("path",{d:"M11 18h2"}),n.createElement("path",{d:"M3 18h2"}),n.createElement("path",{d:"M4 12h8"}),n.createElement("path",{d:"M3 6h2"}),n.createElement("path",{d:"M11 6h2"}))},controls:"header",value:"1"},h2:{icon:function(e){var t=e.size,r=void 0===t?24:t,o=e.color,a=void 0===o?"currentColor":o,i=e.stroke,s=void 0===i?2:i,l=Pw(e,qw);return n.createElement("svg",$w({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-h-2",width:r,height:r,viewBox:"0 0 24 24",strokeWidth:s,stroke:a,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},l),n.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),n.createElement("path",{d:"M17 12a2 2 0 1 1 4 0c0 .591 -.417 1.318 -.816 1.858l-3.184 4.143l4 0"}),n.createElement("path",{d:"M4 6v12"}),n.createElement("path",{d:"M12 6v12"}),n.createElement("path",{d:"M11 18h2"}),n.createElement("path",{d:"M3 18h2"}),n.createElement("path",{d:"M4 12h8"}),n.createElement("path",{d:"M3 6h2"}),n.createElement("path",{d:"M11 6h2"}))},controls:"header",value:"2"},h3:{icon:function(e){var t=e.size,r=void 0===t?24:t,o=e.color,a=void 0===o?"currentColor":o,i=e.stroke,s=void 0===i?2:i,l=Pw(e,Hw);return n.createElement("svg",$w({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-h-3",width:r,height:r,viewBox:"0 0 24 24",strokeWidth:s,stroke:a,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},l),n.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),n.createElement("path",{d:"M19 14a2 2 0 1 0 -2 -2"}),n.createElement("path",{d:"M17 16a2 2 0 1 0 2 -2"}),n.createElement("path",{d:"M4 6v12"}),n.createElement("path",{d:"M12 6v12"}),n.createElement("path",{d:"M11 18h2"}),n.createElement("path",{d:"M3 18h2"}),n.createElement("path",{d:"M4 12h8"}),n.createElement("path",{d:"M3 6h2"}),n.createElement("path",{d:"M11 6h2"}))},controls:"header",value:"3"},h4:{icon:function(e){var t=e.size,r=void 0===t?24:t,o=e.color,a=void 0===o?"currentColor":o,i=e.stroke,s=void 0===i?2:i,l=Pw(e,Uw);return n.createElement("svg",$w({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-h-4",width:r,height:r,viewBox:"0 0 24 24",strokeWidth:s,stroke:a,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},l),n.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),n.createElement("path",{d:"M20 18v-8l-4 6h5"}),n.createElement("path",{d:"M4 6v12"}),n.createElement("path",{d:"M12 6v12"}),n.createElement("path",{d:"M11 18h2"}),n.createElement("path",{d:"M3 18h2"}),n.createElement("path",{d:"M4 12h8"}),n.createElement("path",{d:"M3 6h2"}),n.createElement("path",{d:"M11 6h2"}))},controls:"header",value:"4"},h5:{icon:function(e){var t=e.size,r=void 0===t?24:t,o=e.color,a=void 0===o?"currentColor":o,i=e.stroke,s=void 0===i?2:i,l=Pw(e,Ww);return n.createElement("svg",$w({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-h-5",width:r,height:r,viewBox:"0 0 24 24",strokeWidth:s,stroke:a,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},l),n.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),n.createElement("path",{d:"M17 18h2a2 2 0 1 0 0 -4h-2v-4h4"}),n.createElement("path",{d:"M4 6v12"}),n.createElement("path",{d:"M12 6v12"}),n.createElement("path",{d:"M11 18h2"}),n.createElement("path",{d:"M3 18h2"}),n.createElement("path",{d:"M4 12h8"}),n.createElement("path",{d:"M3 6h2"}),n.createElement("path",{d:"M11 6h2"}))},controls:"header",value:"5"},h6:{icon:function(e){var t=e.size,r=void 0===t?24:t,o=e.color,a=void 0===o?"currentColor":o,i=e.stroke,s=void 0===i?2:i,l=Pw(e,Vw);return n.createElement("svg",$w({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-h-6",width:r,height:r,viewBox:"0 0 24 24",strokeWidth:s,stroke:a,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},l),n.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),n.createElement("path",{d:"M19 14a2 2 0 1 0 0 4a2 2 0 0 0 0 -4z"}),n.createElement("path",{d:"M21 12a2 2 0 1 0 -4 0v4"}),n.createElement("path",{d:"M4 6v12"}),n.createElement("path",{d:"M12 6v12"}),n.createElement("path",{d:"M11 18h2"}),n.createElement("path",{d:"M3 18h2"}),n.createElement("path",{d:"M4 12h8"}),n.createElement("path",{d:"M3 6h2"}),n.createElement("path",{d:"M11 6h2"}))},controls:"header",value:"6"},sup:{icon:function(e){var t=e.size,r=void 0===t?24:t,o=e.color,a=void 0===o?"currentColor":o,i=e.stroke,s=void 0===i?2:i,l=Pw(e,ek);return n.createElement("svg",$w({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-superscript",width:r,height:r,viewBox:"0 0 24 24",strokeWidth:s,stroke:a,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},l),n.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),n.createElement("path",{d:"M5 7l8 10m-8 0l8 -10"}),n.createElement("path",{d:"M21 11h-4l3.5 -4a1.73 1.73 0 0 0 -3.5 -2"}))},controls:"script",value:"super"},sub:{icon:function(e){var t=e.size,r=void 0===t?24:t,o=e.color,a=void 0===o?"currentColor":o,i=e.stroke,s=void 0===i?2:i,l=Pw(e,Xw);return n.createElement("svg",$w({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-subscript",width:r,height:r,viewBox:"0 0 24 24",strokeWidth:s,stroke:a,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},l),n.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),n.createElement("path",{d:"M5 7l8 10m-8 0l8 -10"}),n.createElement("path",{d:"M21 20h-4l3.5 -4a1.73 1.73 0 0 0 -3.5 -2"}))},controls:"script",value:"sub"},blockquote:{icon:function(e){var t=e.size,r=void 0===t?24:t,o=e.color,a=void 0===o?"currentColor":o,i=e.stroke,s=void 0===i?2:i,l=Pw(e,Rw);return n.createElement("svg",$w({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-blockquote",width:r,height:r,viewBox:"0 0 24 24",strokeWidth:s,stroke:a,fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},l),n.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),n.createElement("path",{d:"M6 15h15"}),n.createElement("path",{d:"M21 19h-15"}),n.createElement("path",{d:"M15 11h6"}),n.createElement("path",{d:"M21 7h-6"}),n.createElement("path",{d:"M9 9h1a1 1 0 1 1 -1 1v-2.5a2 2 0 0 1 2 -2"}),n.createElement("path",{d:"M3 9h1a1 1 0 1 1 -1 1v-2.5a2 2 0 0 1 2 -2"}))},controls:"blockquote"}};var nk=nv(((e,t)=>{let{sticky:r,stickyOffset:n}=t;return{toolbarGroup:{display:"flex",alignItems:"center",flexWrap:"wrap",margin:`calc(${e.spacing.md}px / 2)`},toolbar:{position:r?"sticky":"relative",zIndex:1,top:r?n:0,backgroundColor:"dark"===e.colorScheme?e.colors.dark[7]:e.white,borderBottom:`1px solid ${"dark"===e.colorScheme?e.colors.dark[7]:e.colors.gray[4]}`,borderTopRightRadius:e.radius.sm,borderTopLeftRadius:e.radius.sm,padding:`${e.spacing.sm}px ${e.spacing.md}px`},toolbarInner:{display:"flex",flexWrap:"wrap",margin:`calc(${-e.spacing.md}px / 2)`},toolbarControl:{"& + &":{borderLeftWidth:0},"&:first-of-type":{borderTopLeftRadius:e.fn.radius(e.defaultRadius),borderBottomLeftRadius:e.fn.radius(e.defaultRadius)},"&:last-of-type":{borderTopRightRadius:e.fn.radius(e.defaultRadius),borderBottomRightRadius:e.fn.radius(e.defaultRadius)}}}}));const ok=nk;var ak=Object.defineProperty,ik=Object.getOwnPropertySymbols,sk=Object.prototype.hasOwnProperty,lk=Object.prototype.propertyIsEnumerable,ck=(e,t,r)=>t in e?ak(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;function uk(e){var t=e,{controls:r,labels:o,stickyOffset:a=0,sticky:i=!0,className:s,classNames:l,styles:c,id:u,unstyled:d}=t,f=((e,t)=>{var r={};for(var n in e)sk.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&ik)for(var n of ik(e))t.indexOf(n)<0&&lk.call(e,n)&&(r[n]=e[n]);return r})(t,["controls","labels","stickyOffset","sticky","className","classNames","styles","id","unstyled"]);const{classes:p,cx:h}=ok({sticky:i,stickyOffset:a},{classNames:l,styles:c,unstyled:d,name:"RichTextEditor"}),m=r.map(((e,t)=>{const r=e.filter((e=>rk[e])).map((e=>{const t=rk[e].icon;return n.createElement(Ow,{className:p.toolbarControl,controls:rk[e].controls,value:rk[e].value,key:e,title:o[e],noActive:rk[e].noActive},n.createElement(t,{size:18,stroke:1.5}))}));return n.createElement("div",{className:p.toolbarGroup,key:t},r)}));return n.createElement("div",((e,t)=>{for(var r in t||(t={}))sk.call(t,r)&&ck(e,r,t[r]);if(ik)for(var r of ik(t))lk.call(t,r)&&ck(e,r,t[r]);return e})({id:u,className:h(p.toolbar,s)},f),n.createElement("div",{className:p.toolbarInner},m))}uk.displayName="@mantine/rte/Toolbar";var dk=Object.defineProperty,fk=Object.defineProperties,pk=Object.getOwnPropertyDescriptors,hk=Object.getOwnPropertySymbols,mk=Object.prototype.hasOwnProperty,gk=Object.prototype.propertyIsEnumerable,bk=(e,t,r)=>t in e?dk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,yk=(e,t)=>{for(var r in t||(t={}))mk.call(t,r)&&bk(e,r,t[r]);if(hk)for(var r of hk(t))gk.call(t,r)&&bk(e,r,t[r]);return e},xk=(e,t)=>fk(e,pk(t)),vk=nv(((e,t)=>{let{saveLabel:r,removeLabel:n,editLabel:o,radius:a,readOnly:i}=t;return{toolbar:{display:i?"none":void 0},root:xk(yk({},e.fn.fontStyles()),{fontSize:e.fontSizes.sm,border:`1px solid ${"dark"===e.colorScheme?e.colors.dark[5]:e.colors.gray[4]}`,backgroundColor:"dark"===e.colorScheme?e.colors.dark[6]:e.white,borderRadius:e.fn.radius(a),position:"relative",color:"dark"===e.colorScheme?e.colors.dark[0]:e.black,"& .ql-toolbar":{borderTopRightRadius:e.fn.radius(a),borderTopLeftRadius:e.fn.radius(a)},"& .ql-container":{position:"relative",boxSizing:"border-box",height:"100%",margin:0,lineHeight:e.lineHeight},"& .ql-editor":{whiteSpace:"pre-wrap",outline:"none",padding:`${e.spacing.sm}px ${e.spacing.md}px`},"& .ql-container.ql-disabled .ql-tooltip":{display:"none"},"& .ql-tooltip":{position:"absolute",zIndex:1,backgroundColor:"dark"===e.colorScheme?e.colors.dark[5]:e.white,padding:`${e.spacing.xs}px ${e.spacing.md}px`,border:`1px solid ${"dark"===e.colorScheme?e.colors.dark[5]:e.colors.gray[2]}`,boxShadow:e.shadows.sm,borderRadius:e.radius.sm,display:"flex",alignItems:"center"},"& .ql-action::before":{content:`"${o}"`,cursor:"pointer",display:"block",whiteSpace:"nowrap",height:32,lineHeight:"32px",backgroundColor:e.fn.variant({variant:"filled"}).background,color:e.white,borderRadius:e.fn.radius(e.defaultRadius),fontWeight:500,padding:`0 ${e.spacing.md}px`,marginRight:e.spacing.sm,fontSize:e.fontSizes.sm},"& .ql-remove::before":{content:`"${n}"`,cursor:"pointer",color:e.colors.red["dark"===e.colorScheme?5:7],fontSize:e.fontSizes.sm,display:"block",height:32,lineHeight:"32px"},"& .ql-hidden":{display:"none"},"& .ql-preview":{display:"inline-block",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",maxWidth:180,marginRight:e.spacing.md},"& .ql-editing .ql-preview":{display:"none"},"& .ql-editing .ql-remove":{display:"none"},"& .ql-editing .ql-action::before":{content:`"${r}"`,marginRight:0},"& .ql-tooltip.ql-editing input":{display:"block"},"& .ql-tooltip input":{display:"none",WebkitTapHighlightColor:"transparent",height:34,appearance:"none",resize:"none",boxSizing:"border-box",fontSize:e.fontSizes.sm,width:"100%",color:"dark"===e.colorScheme?e.colors.dark[0]:e.black,textAlign:"left",paddingLeft:e.spacing.sm,paddingRight:e.spacing.sm,borderRadius:e.fn.radius(e.defaultRadius),marginRight:e.spacing.md,border:`1px solid ${"dark"===e.colorScheme?e.colors.dark[4]:e.colors.gray[4]}`,backgroundColor:"dark"===e.colorScheme?e.colors.dark[6]:e.white,"&::placeholder":yk({opacity:1},e.fn.placeholderStyles()),"&:focus":{outline:"none",borderColor:e.colors[e.primaryColor]["dark"===e.colorScheme?8:5]}},"& .ql-clipboard":{left:"-100000px",height:"1px",overflowY:"hidden",position:"fixed",top:"50%"},"& .ql-align-center":{textAlign:"center"},"& .ql-align-right":{textAlign:"right"},"& .ql-mention-list-container":{border:`1px solid ${"dark"===e.colorScheme?e.colors.dark[5]:e.colors.gray[4]}`,backgroundColor:"dark"===e.colorScheme?e.colors.dark[6]:e.white,borderRadius:e.radius.sm,overflow:"hidden","& .ql-mention-list":{color:"dark"===e.colorScheme?e.colors.dark[0]:e.colors.gray[7],paddingLeft:0,marginTop:0,margin:0,listStyleType:"none","& .ql-mention-list-item":{padding:e.spacing.xs,textDecoration:"none",cursor:"pointer"},"& .selected":{backgroundColor:"dark"===e.colorScheme?e.colors.dark[4]:e.colors.gray[0],color:"dark"===e.colorScheme?e.white:e.black,textDecoration:"none"}}},"& .mention":{display:"inline-block",color:"dark"===e.colorScheme?e.colors.dark[0]:e.black,backgroundColor:"dark"===e.colorScheme?e.colors.dark[4]:e.colors[e.primaryColor][0],padding:"3px 5px",marginRight:2,borderRadius:e.fn.radius(e.defaultRadius),userSelect:"all",pointerEvents:"none"},"& iframe.ql-video":{width:"100%",height:400,"@media (max-width: 755px)":{height:220}},"& a":{color:e.colors[e.primaryColor]["dark"===e.colorScheme?4:7],textDecoration:"none"},"& h1, & h2, & h3, & h4, & h5, & h6":{fontFamily:e.headings.fontFamily,fontWeight:e.headings.fontWeight,marginTop:0},"& ol, & ul":{marginTop:e.spacing.sm,paddingLeft:`calc(${e.spacing.md}px * 2)`,listStylePosition:"outside"},"& h1":{fontSize:e.headings.sizes.h1.fontSize,marginBottom:`calc(${e.spacing.sm}px * ${e.headings.sizes.h1.lineHeight})`},"& h2":{fontSize:e.headings.sizes.h2.fontSize,marginBottom:`calc(${e.spacing.sm}px * ${e.headings.sizes.h2.lineHeight})`},"& h3":{fontSize:e.headings.sizes.h3.fontSize,marginBottom:`calc(${e.spacing.sm}px * ${e.headings.sizes.h3.lineHeight})`},"& h4":{fontSize:e.headings.sizes.h4.fontSize,marginBottom:`calc(${e.spacing.sm}px * ${e.headings.sizes.h4.lineHeight})`},"& h5":{fontSize:e.headings.sizes.h5.fontSize,marginBottom:`calc(${e.spacing.sm}px * ${e.headings.sizes.h5.lineHeight})`},"& h6":{fontSize:e.headings.sizes.h6.fontSize,marginBottom:`calc(${e.spacing.sm}px * ${e.headings.sizes.h6.lineHeight})`},"& p":{marginTop:0,marginBottom:e.spacing.sm},"& pre":xk(yk({},e.fn.fontStyles()),{lineHeight:e.lineHeight,borderRadius:e.radius.sm,color:"dark"===e.colorScheme?e.colors.dark[0]:e.black,backgroundColor:e.fn.rgba(e.fn.themeColor("gray","dark"===e.colorScheme?8:0),"dark"===e.colorScheme?.35:1),fontFamily:e.fontFamilyMonospace,fontSize:e.fontSizes.xs,padding:e.spacing.xs,margin:0,overflowX:"auto"}),"& code":xk(yk({},e.fn.fontStyles()),{lineHeight:e.lineHeight,borderRadius:e.radius.sm,color:"dark"===e.colorScheme?e.colors.dark[0]:e.black,backgroundColor:e.fn.rgba(e.fn.themeColor("gray","dark"===e.colorScheme?8:0),"dark"===e.colorScheme?.35:1),fontFamily:e.fontFamilyMonospace,fontSize:e.fontSizes.xs,padding:`2px calc(${e.spacing.xs}px / 2)`}),"& blockquote":{marginTop:0,marginLeft:0,marginBottom:e.spacing.sm,paddingLeft:e.spacing.md,color:"dark"===e.colorScheme?e.colors.dark[2]:e.colors.gray[7],borderLeft:`4px solid ${"dark"===e.colorScheme?e.colors.dark[4]:e.colors.gray[4]}`},"& img":{display:"block",position:"relative",maxWidth:"100%",marginBottom:e.spacing.sm},"& .ql-image-uploading img":{filter:"blur(10px)"},"& .ql-blank":{"&::before":{content:"attr(data-placeholder)",position:"absolute",left:e.spacing.md,right:e.spacing.md,color:"dark"===e.colorScheme?e.colors.dark[3]:e.colors.gray[5]}}})}}));const wk=vk;const kk=["list","strike","underline","link","bold","italic","image","clean","align","video","header","script","blockquote","code","code-block"];var jk=Object.defineProperty,Nk=Object.defineProperties,Ck=Object.getOwnPropertyDescriptors,Sk=Object.getOwnPropertySymbols,Ek=Object.prototype.hasOwnProperty,Ak=Object.prototype.propertyIsEnumerable,Ok=(e,t,r)=>t in e?jk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$k=(e,t)=>{for(var r in t||(t={}))Ek.call(t,r)&&Ok(e,r,t[r]);if(Sk)for(var r of Sk(t))Ak.call(t,r)&&Ok(e,r,t[r]);return e};const Pk=function(e){var t;return t=class extends e{static create(e){const t=super.create(e);if("boolean"===typeof e&&e)return t;const r=document.createElement("img");return r.setAttribute("src",e),t.appendChild(r),t}static value(e){const{src:t,custom:r}=e.dataset;return{src:t,custom:r}}deleteAt(e,t){super.deleteAt(e,t),this.cache={}}},t.blotName="imageBlot",t.className="ql-image-uploading",t.tagName="span",t}(Ig.Quill.import("blots/block"));Ig.Quill.register({"formats/imageBlot":Pk}),Ig.Quill.register("modules/imageUploader",class{constructor(e,t){this.quill=e,this.options=t,this.range=null;this.quill.getModule("toolbar").addHandler("image",this.selectLocalImage.bind(this)),this.handleDrop=this.handleDrop.bind(this),this.handlePaste=this.handlePaste.bind(this),this.quill.root.addEventListener("drop",this.handleDrop,!1),this.quill.root.addEventListener("paste",this.handlePaste,!1)}selectLocalImage(){this.range=this.quill.getSelection(),this.range&&(this.fileHolder=document.createElement("input"),this.fileHolder.setAttribute("type","file"),this.fileHolder.setAttribute("accept","image/*"),this.fileHolder.setAttribute("style","visibility:hidden"),this.fileHolder.onchange=this.fileChanged.bind(this),document.body.appendChild(this.fileHolder),this.fileHolder.click(),window.requestAnimationFrame((()=>{document.body.removeChild(this.fileHolder)})))}handleDrop(e){if(e.stopPropagation(),e.preventDefault(),e.dataTransfer&&e.dataTransfer.files&&e.dataTransfer.files.length){if(document.caretRangeFromPoint){const t=document.getSelection(),r=document.caretRangeFromPoint(e.clientX,e.clientY);t&&r&&t.setBaseAndExtent(r.startContainer,r.startOffset,r.startContainer,r.startOffset)}else{const t=document.getSelection(),r=document.caretPositionFromPoint(e.clientX,e.clientY);t&&r&&t.setBaseAndExtent(r.offsetNode,r.offset,r.offsetNode,r.offset)}this.range=this.quill.getSelection();const t=e.dataTransfer.files[0];setTimeout((()=>{this.range=this.quill.getSelection(),this.readAndUploadFile(t)}),0)}}handlePaste(e){const t=e.clipboardData||window.clipboardData;if(t&&(t.items||t.files)){const r=t.items||t.files,n=/^image\/(jpe?g|gif|png|svg|webp)$/i;for(let t=0;t<r.length;t+=1)if(n.test(r[t].type)){const n=r[t].getAsFile?r[t].getAsFile():r[t];n&&(this.range=this.quill.getSelection(),e.preventDefault(),setTimeout((()=>{this.range=this.quill.getSelection(),this.readAndUploadFile(n)}),1))}}}readAndUploadFile(e){let t=!1;const r=new FileReader;r.addEventListener("load",(()=>{if(!t){const e=r.result;this.insertBase64Image(e)}}),!1),e&&r.readAsDataURL(e),this.options.upload(e).then((e=>{this.insertToEditor(e)}),(()=>{t=!0,this.removeBase64Image()}))}fileChanged(){const e=this.fileHolder.files[0];this.readAndUploadFile(e)}insertBase64Image(e){const{range:t}=this;this.quill.insertEmbed(t.index,"imageBlot",`${e}`,"user")}insertToEditor(e){const{range:t}=this;this.quill.deleteText(t.index,3,"user"),this.quill.insertEmbed(t.index,"image",`${e}`,"user"),t.index+=1,this.quill.setSelection(t,"user")}removeBase64Image(){const{range:e}=this;this.quill.deleteText(e.index,3,"user")}});const Tk=Ig.Quill.import("ui/icons");var Ik;Ik=Tk,kk.forEach((e=>{Ik[e]={}}));const Mk={onImageUpload:function(e){return new Promise((t=>{const r=new FileReader;r.onloadend=()=>t(r.result),r.readAsDataURL(e)}))},sticky:!0,stickyOffset:0,labels:{save:"Save",edit:"Edit",remove:"Remove",bold:"Bold",italic:"Italic",underline:"Underline",strike:"Strikethrough",link:"Link",unorderedList:"Bullet list",orderedList:"Ordered list",clean:"Clean formatting",video:"Embed video",alignCenter:"Align text to center",alignLeft:"Align text to left",alignRight:"Align text to right",image:"Embed image",h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",h5:"Heading 5",h6:"Heading 6",sup:"Super script",sub:"Sub script",code:"Code",codeBlock:"Code block",blockquote:"Block quote"},controls:[["bold","italic","underline","strike","clean"],["h1","h2","h3","h4"],["unorderedList","orderedList"],["link","image","video","blockquote","codeBlock"],["alignLeft","alignCenter","alignRight"],["sup","sub"]],readOnly:!1},Rk=(0,n.forwardRef)(((e,t)=>{const r=sx("RichTextEditor",Mk,e),{value:o,defaultValue:a,onChange:i,onImageUpload:s,sticky:l,stickyOffset:c,radius:u,labels:d,controls:f,id:p,className:h,classNames:m,styles:g,placeholder:b,mentions:y,readOnly:x,modules:v,unstyled:w,formats:k}=r,j=((e,t)=>{var r={};for(var n in e)Ek.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&Sk)for(var n of Sk(e))t.indexOf(n)<0&&Ak.call(e,n)&&(r[n]=e[n]);return r})(r,["value","defaultValue","onChange","onImageUpload","sticky","stickyOffset","radius","labels","controls","id","className","classNames","styles","placeholder","mentions","readOnly","modules","unstyled","formats"]),N=Vx(p),C=(0,n.useRef)(),{classes:S,cx:E}=wk({saveLabel:d.save,editLabel:d.edit,removeLabel:d.remove,radius:u,readOnly:x},{classNames:m,styles:g,unstyled:w,name:"RichTextEditor"}),A=(0,n.useMemo)((()=>((e,t)=>Nk(e,Ck(t)))($k($k({},v),N?{toolbar:{container:`#${N}`}}:void 0),{mention:y,imageUploader:{upload:e=>s(e)}})),[N,y,v,s]);return(0,n.useEffect)((()=>{var e,t,r;C.current&&(r=null==(t=null==(e=null==C?void 0:C.current)?void 0:e.editor)?void 0:t.keyboard,["1","2","3","4","5","6"].forEach((e=>{r.addBinding({key:e,shortKey:!0,altKey:!0},(function(t,r){var n;(null==(n=r.format)?void 0:n.header)===Number(e)?this.quill.removeFormat(t):this.quill.formatLine(t,"header",e)}))})))}),[]),n.createElement(qx,$k({className:E(S.root,h)},j),n.createElement(uk,{controls:f,labels:d,sticky:l,stickyOffset:c,classNames:m,styles:g,id:N,className:S.toolbar,unstyled:w}),n.createElement(Mg(),{theme:"snow",modules:A,value:o,defaultValue:a,onChange:i,ref:Gx(C,t),placeholder:b,readOnly:x,scrollingContainer:"html",formats:k}))}));function Lk(e){let{data:t}=e;return(0,nt.jsx)("div",{className:"mt-6",children:(0,nt.jsx)("dl",{className:"divide-y divide-gray-300",children:t.map(((e,t)=>(0,nt.jsxs)("div",{className:"px-4 py-6 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0",children:[(0,nt.jsx)("dt",{className:"text-sm/6 font-medium text-gray-900",children:e[ap.language].title}),(0,nt.jsx)("dd",{className:"mt-1 text-sm/6 text-gray-700 sm:col-span-2 sm:mt-0",children:e[ap.language].details})]},t)))})})}function _k(){const{t:e}=rt(),{slug:t}=te(),r="https://shop.sharedstore.ma/api/api",{refreshKey:o}=cp(),a=localStorage.getItem("token"),[i,s]=(0,n.useState)(1),[l,c]=(0,n.useState)("details"),[u,d]=(0,n.useState)(!0),[f,p]=(0,n.useState)(null),[h,m]=(0,n.useState)([]),[g,b]=(0,n.useState)(!1),[y,x]=(0,n.useState)(""),v=console.error;return console.error=function(){/findDOMNode is deprecated/.test(arguments.length<=0?void 0:arguments[0])||v(...arguments)},(0,n.useEffect)((()=>{try{const e=async()=>{const e=await gf.get(`${r}/admin/getdiscountsbyid/1`);b(!!e.data.discountID),m(e.data)};e()}catch(e){}}),[o]),(0,n.useEffect)((()=>{(async()=>{try{const e=await gf.get(`${r}/productreview/${t}`),n=await gf.get(`${r}/admin/getdiscountsbyid/${e.data[0].productID}`);b(!!n.data.discountID),m(n.data),x(n.data.percentage?parseInt(n.data.percentage)+"%":parseFloat(n.data.amount)+"$");const o=e.data[0];o.name=JSON.parse(o.name),o.details=JSON.parse(o.details),o.technical_specs=JSON.parse(o.technical_specs),p(o),d(!1)}catch(e){console.error(e)}})()}),[r,t,o]),u?(0,nt.jsx)("div",{className:"flex justify-center items-center min-h-[70vh]",children:(0,nt.jsx)(Bh,{})}):(0,nt.jsxs)("div",{className:"py-12 antialiased",children:[(0,nt.jsx)("div",{className:"max-w-screen-xl px-4 mx-auto 2xl:px-0",children:(0,nt.jsxs)("div",{className:"lg:grid lg:grid-cols-2 lg:gap-6 xl:gap-8 items-center",children:[(0,nt.jsx)("div",{className:"relative max-w-md max-md:mb-5 mx-auto",children:(0,nt.jsxs)("a",{href:"/product/"+f.slug,children:[(0,nt.jsx)("img",{className:"w-full",src:f.image?"https://shop.sharedstore.ma/api.shop.sharedstore.ma/storage/app/public/"+f.image:gh,alt:f.name[ap.language]}),g?(0,nt.jsxs)("span",{className:"absolute top-2 right-2 bg-blue-600 text-white text-xs px-2 py-1 rounded-full",children:["-",y]}):null]})}),(0,nt.jsxs)("div",{children:[(0,nt.jsx)("div",{className:"flex flex-wrap items-center justify-center gap-2 w-52 text-black text-sm font-semibold ring-1 ring-gray-900 rounded-full px-2.5 py-1.5 mb-5",children:(0,nt.jsx)(jh,{category_id:f.category_id})}),(0,nt.jsx)("h1",{className:"text-xl font-semibold text-black sm:text-2xl mb-5",children:f.name[ap.language]||f.name.en}),(0,nt.jsx)("div",{className:"mb-5 sm:items-center sm:flex",children:(0,nt.jsxs)("div",{className:"flex items-center gap-2 mt-2 sm:mt-0",children:[(0,nt.jsx)("div",{className:"flex items-center gap-1",children:(0,nt.jsx)(ip,{size:4,rating:f.ratings})}),(0,nt.jsxs)("p",{className:"text-sm font-medium leading-none text-gray-500",children:["(",f.ratings.toFixed(2),")"]}),(0,nt.jsxs)("p",{className:"text-sm font-medium leading-none text-black underline hover:no-underline",children:[f.countreview," ",e("reviews")]})]})}),g?(0,nt.jsx)("span",{className:"me-2 rounded text-xs font-medium text-red-700",children:e("up-to-discount",{value:y})}):(0,nt.jsx)("div",{}),(0,nt.jsxs)("div",{className:"flex flex-wrap mb-5 items-end gap-1 mt-1",children:[(0,nt.jsxs)("p",{className:"text-2xl font-extrabold text-black sm:text-3xl leading-none",children:["$",g?h.newPrice.toFixed(2):f.price.toFixed(2)]}),g?(0,nt.jsxs)("span",{className:"text-red-700 line-through text-sm font-semibold mb-1",children:["$",f.price.toFixed(2)]}):null]}),(0,nt.jsxs)("div",{className:"flex flex-wrap items-center gap-2 mb-3 text-black",children:[(0,nt.jsx)("span",{className:"font-semibold",children:e("license")}),(0,nt.jsx)(Ch,{license_id:f.license_id})]}),(0,nt.jsx)("div",{children:(0,nt.jsx)("ul",{className:"max-w-md space-y-1 text-gray-700 text-md mb-5 list-inside",children:["prolist-1","prolist-2"].map(((t,r)=>(0,nt.jsxs)("li",{className:"flex items-center",children:[(0,nt.jsx)(Pc,{className:"w-4 h-4 me-2 text-green-500 flex-shrink-0"}),e(t)]},r)))})}),(0,nt.jsxs)("div",{className:"flex items-center",children:[(0,nt.jsx)("button",{onClick:()=>s(Math.max(1,i-1)),className:"flex justify-center items-center disabled:text-gray-300 bg-gray-200 hover:bg-gray-300 rounded-md h-7 w-7",disabled:i<=1,children:(0,nt.jsx)(zc,{className:"w-5 h-5"})}),f.stock<1?(0,nt.jsx)("input",{type:"text",value:0,className:"text-center w-14 border-0 ring-0 focus:ring-0"}):(0,nt.jsx)("input",{type:"text",value:i,onChange:e=>s(Math.min(Math.max(1,parseInt(e.target.value)||1),f.stock)),className:"text-center w-14 bg-transparent border-0 ring-0 focus:ring-0"}),(0,nt.jsx)("button",{onClick:()=>s((e=>Math.min(f.stock,e+1))),className:"flex justify-center items-center disabled:text-gray-300 bg-gray-200 hover:bg-gray-300 rounded-md h-7 w-7",disabled:i>=f.stock,children:(0,nt.jsx)(qc,{className:"w-5 h-5"})})]}),(0,nt.jsxs)("div",{className:"sm:gap-4 sm:items-center sm:flex mt-16",children:[a?(0,nt.jsx)(dh,{prodID:f.productID}):null,(0,nt.jsx)(Oh,{prodID:f.productID,quantity:i,typeBtn:"noModal",stockProd:f.stock})]})]})]})}),(0,nt.jsxs)("div",{className:"mt-10",children:[(0,nt.jsxs)("div",{className:"flex flex-wrap justify-center my-6 border-t border-blue-700 gap-2 items-center",children:[(0,nt.jsx)("button",{className:"px-3 py-2 border-b-4 "+("details"===l?"borderBar":"borderBarWhite"),onClick:()=>c("details"),children:"Description"}),(0,nt.jsxs)("button",{className:"px-3 py-2 border-b-4 "+("reviews"===l?"borderBar":"borderBarWhite"),onClick:()=>c("reviews"),children:[e("reviews")," (",f.countreview,")"]}),f.technical_specs?(0,nt.jsx)("button",{className:"px-3 py-2 border-b-4 "+("system-req"===l?"borderBar":"borderBarWhite"),onClick:()=>c("system-req"),children:e("system-req")}):null]}),"details"===l?(0,nt.jsx)(Rk,{style:{background:"transparent",border:"transparent"},value:f.details[ap.language]||f.details.en,readOnly:!0}):"reviews"===l?(0,nt.jsx)(Tg,{productId:f.productID,ratingProd:f.ratings,countRev:f.countreview}):(0,nt.jsx)(Lk,{data:f.technical_specs})]})]})}function Dk(){return(0,nt.jsxs)("section",{children:[(0,nt.jsx)(pg,{}),(0,nt.jsx)(Tm,{}),(0,nt.jsx)("div",{className:"bg-gray-100",children:(0,nt.jsx)("div",{className:"container",children:(0,nt.jsx)(_k,{})})}),(0,nt.jsx)(og,{})]})}function Bk(){return(0,nt.jsx)("section",{className:"py-24 relative",children:(0,nt.jsx)("div",{className:"w-full max-w-7xl px-4 md:px-5 lg:px-5 mx-auto",children:(0,nt.jsxs)("div",{className:"w-full flex-col justify-start items-start gap-8 inline-flex",children:[(0,nt.jsxs)("div",{className:"w-full flex-col justify-start items-start lg:gap-14 gap-8 flex",children:[(0,nt.jsx)("div",{className:"w-full text-center text-black text-3xl font-bold font-manrope leading-normal",children:"Order Confirmation"}),(0,nt.jsxs)("div",{className:"flex-col justify-start items-start gap-3 flex",children:[(0,nt.jsx)("h4",{className:"text-black text-xl font-medium leading-8",children:"Hello, John smith"}),(0,nt.jsx)("h5",{className:"text-gray-500 text-lg font-normal leading-8",children:"Thank you for shopping"}),(0,nt.jsx)("h5",{className:"text-gray-500 text-lg font-normal leading-8",children:"Your order has been confirmed and will be shipped within two days."})]})]}),(0,nt.jsx)("div",{className:"w-full justify-center items-start ",children:[1,2,3,4,5].map(((e,t)=>(0,nt.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 min-[550px]:gap-6 py-3 border-b border-gray-200 max-sm:max-w-xl max-xl:mx-auto",children:[(0,nt.jsxs)("div",{className:"flex items-center flex-col min-[550px]:flex-row gap-3 min-[550px]:gap-4 w-full max-sm:justify-center max-sm:max-w-xl max-xl:mx-auto",children:[(0,nt.jsx)("div",{className:" img-box bg-gray-50 rounded-xl justify-center items-center inline-flex",children:(0,nt.jsx)("img",{src:"https://allgoodkeys.com/wp-content/uploads/2021/10/Office-2021-Professional-plus-2-626x748.png",alt:"Denim Shirt",className:"xl:w-[75px] object-cover"})}),(0,nt.jsxs)("div",{className:"pro-data w-full max-w-sm flex-col justify-start items-start gap-2 inline-flex",children:[(0,nt.jsx)("h4",{className:"w-full text-black text-lg font-medium leading-8 max-[550px]:text-center",children:"Office 2021 Professional Plus Activation Key \u2013 (PC)"}),(0,nt.jsx)("h5",{className:"w-full text-gray-500 text-base font-normal leading-relaxed min-[550px]:my-0 my-2 max-[550px]:text-center",children:"Product ID: 4553458120"})]})]}),(0,nt.jsxs)("div",{className:"w-full flex items-center justify-between flex-col min-[550px]:flex-row max-sm:max-w-xl max-xl:mx-auto gap-2",children:[(0,nt.jsx)("h5",{className:"max-w-[142px] w-full text-center text-black text-lg font-medium leading-relaxed pl-5",children:"Quantity : 02"}),(0,nt.jsx)("h5",{className:"max-w-[142px] w-full text-center text-black text-lg font-medium leading-relaxed pl-5",children:"Price : $50.00"}),(0,nt.jsxs)("button",{className:"group w-28 text-center flex flex-wrap text-red-600 hover:text-red-700 items-center transition-all duration-700 ease-in-out",children:["Remove ",(0,nt.jsx)(Vc,{className:"w-6 h-6 transition-all duration-700 ease-in-out mx-auto"})]})]})]},t)))}),(0,nt.jsxs)("div",{className:"w-full p-5 rounded-xl border border-gray-200 flex-col justify-start items-center gap-4 flex",children:[(0,nt.jsxs)("div",{className:"w-full justify-between items-center gap-6 inline-flex",children:[(0,nt.jsx)("h5",{className:"text-gray-600 text-lg font-normal leading-8",children:"Subtotal:"}),(0,nt.jsx)("h5",{className:"text-right text-black text-lg font-semibold leading-8",children:"$ 100.00"})]}),(0,nt.jsxs)("div",{className:"w-full justify-between items-center gap-6 inline-flex",children:[(0,nt.jsx)("h5",{className:"text-gray-600 text-lg font-normal leading-8",children:"Total:"}),(0,nt.jsx)("h5",{className:"text-right text-black text-lg font-semibold leading-8",children:"\u20b9100.00"})]})]})]})})})}function zk(){return(0,nt.jsxs)("section",{className:"",children:[(0,nt.jsx)(pg,{}),(0,nt.jsx)(Tm,{}),(0,nt.jsx)("div",{className:"bg-gray-100",children:(0,nt.jsx)(Bk,{})}),(0,nt.jsx)(og,{})]})}var Fk,qk,Hk;Rk.displayName="@mantine/rte/RichTextEditor",function(e){e.INITIAL="initial",e.PENDING="pending",e.REJECTED="rejected",e.RESOLVED="resolved"}(Fk||(Fk={})),function(e){e.LOADING_STATUS="setLoadingStatus",e.RESET_OPTIONS="resetOptions",e.SET_BRAINTREE_INSTANCE="braintreeInstance"}(qk||(qk={})),function(e){e.NUMBER="number",e.CVV="cvv",e.EXPIRATION_DATE="expirationDate",e.EXPIRATION_MONTH="expirationMonth",e.EXPIRATION_YEAR="expirationYear",e.POSTAL_CODE="postalCode"}(Hk||(Hk={}));var Uk=function(){return Uk=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Uk.apply(this,arguments)};function Wk(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}function Vk(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}"function"===typeof SuppressedError&&SuppressedError;var Gk="data-react-paypal-script-id",Kk="dataJsSdkLibrary",Qk="react-paypal-js",Yk="dataNamespace",Zk="dataSdkIntegrationSource",Jk="Failed to load the PayPal JS SDK script.",Xk="3.84.0",ej=("https://js.braintreegateway.com/web/".concat(Xk,"/js/client.min.js"),"https://js.braintreegateway.com/web/".concat(Xk,"/js/paypal-checkout.min.js"),"paypal"),tj="usePayPalScriptReducer must be used within a PayPalScriptProvider";function rj(e){return void 0===e&&(e=ej),window[e]}function nj(e){var t=e.reactComponentName,r=e.sdkComponentKey,n=e.sdkRequestedComponents,o=void 0===n?"":n,a=e.sdkDataNamespace,i=void 0===a?ej:a,s=r.charAt(0).toUpperCase().concat(r.substring(1)),l="Unable to render <".concat(t," /> because window.").concat(i,".").concat(s," is undefined."),c="string"===typeof o?o:o.join(",");if(!c.includes(r)){var u=[c,r].filter(Boolean).join();l+="\nTo fix the issue, add '".concat(r,"' to the list of components passed to the parent PayPalScriptProvider:")+"\n`<PayPalScriptProvider options={{ components: '".concat(u,"'}}>`.")}return l}function oj(e){var t=e,r=Gk;t[r];var n=Wk(t,[r+""]);return"react-paypal-js-".concat(function(e){for(var t="",r=0;r<e.length;r++){var n=e[r].charCodeAt(0)*r;e[r+1]&&(n+=e[r+1].charCodeAt(0)*(r-1)),t+=String.fromCharCode(97+Math.abs(n)%26)}return t}(JSON.stringify(n)))}function aj(e,t){var r,n;switch(t.type){case qk.LOADING_STATUS:return"object"===typeof t.value?Uk(Uk({},e),{loadingStatus:t.value.state,loadingStatusErrorMessage:t.value.message}):Uk(Uk({},e),{loadingStatus:t.value});case qk.RESET_OPTIONS:return function(e){var t=self.document.querySelector("script[".concat(Gk,'="').concat(e,'"]'));(null===t||void 0===t?void 0:t.parentNode)&&t.parentNode.removeChild(t)}(e.options[Gk]),Uk(Uk({},e),{loadingStatus:Fk.PENDING,options:Uk(Uk((r={},r[Zk]=Qk,r),t.value),(n={},n[Gk]="".concat(oj(t.value)),n))});case qk.SET_BRAINTREE_INSTANCE:return Uk(Uk({},e),{braintreePayPalCheckoutInstance:t.value});default:return e}}var ij=(0,n.createContext)(null);function sj(e){if("function"===typeof(null===e||void 0===e?void 0:e.dispatch)&&0!==e.dispatch.length)return e;throw new Error(tj)}function lj(){var e=sj((0,n.useContext)(ij));return[Uk(Uk({},e),{isInitial:e.loadingStatus===Fk.INITIAL,isPending:e.loadingStatus===Fk.PENDING,isResolved:e.loadingStatus===Fk.RESOLVED,isRejected:e.loadingStatus===Fk.REJECTED}),e.dispatch]}(0,n.createContext)({});var cj=function(e){var t,r=e.className,o=void 0===r?"":r,a=e.disabled,i=void 0!==a&&a,s=e.children,l=e.forceReRender,c=void 0===l?[]:l,u=Wk(e,["className","disabled","children","forceReRender"]),d=i?{opacity:.38}:{},f="".concat(o," ").concat(i?"paypal-buttons-disabled":"").trim(),p=(0,n.useRef)(null),h=(0,n.useRef)(null),m=lj()[0],g=m.isResolved,b=m.options,y=(0,n.useState)(null),x=y[0],v=y[1],w=(0,n.useState)(!0),k=w[0],j=w[1],N=(0,n.useState)(null)[1];function C(){null!==h.current&&h.current.close().catch((function(){}))}return(null===(t=h.current)||void 0===t?void 0:t.updateProps)&&h.current.updateProps({message:u.message}),(0,n.useEffect)((function(){if(!1===g)return C;var e=rj(b.dataNamespace);if(void 0===e||void 0===e.Buttons)return N((function(){throw new Error(nj({reactComponentName:cj.displayName,sdkComponentKey:"buttons",sdkRequestedComponents:b.components,sdkDataNamespace:b[Yk]}))})),C;try{h.current=e.Buttons(Uk(Uk({},u),{onInit:function(e,t){v(t),"function"===typeof u.onInit&&u.onInit(e,t)}}))}catch(t){return N((function(){throw new Error("Failed to render <PayPalButtons /> component. Failed to initialize: ".concat(t))}))}return!1===h.current.isEligible()?(j(!1),C):p.current?(h.current.render(p.current).catch((function(e){null!==p.current&&0!==p.current.children.length&&N((function(){throw new Error("Failed to render <PayPalButtons /> component. ".concat(e))}))})),C):C}),Vk(Vk([g],c,!0),[u.fundingSource],!1)),(0,n.useEffect)((function(){null!==x&&(!0===i?x.disable().catch((function(){})):x.enable().catch((function(){})))}),[i,x]),n.createElement(n.Fragment,null,k?n.createElement("div",{ref:p,style:d,className:f}):s)};function uj(e){var t="";return Object.keys(e).forEach((function(r){0!==t.length&&(t+="&"),t+=r+"="+e[r]})),t}function dj(e,t){void 0===t&&(t={});var r=document.createElement("script");return r.src=e,Object.keys(t).forEach((function(e){r.setAttribute(e,t[e]),"data-csp-nonce"===e&&r.setAttribute("nonce",t["data-csp-nonce"])})),r}function fj(e,t){if(void 0===t&&(t=Promise),mj(e,t),"undefined"===typeof document)return t.resolve(null);var r=function(e){var t="sandbox"===e.environment?"https://www.sandbox.paypal.com/sdk/js":"https://www.paypal.com/sdk/js";delete e.environment,e.sdkBaseUrl&&(t=e.sdkBaseUrl,delete e.sdkBaseUrl);var r=e,n=Object.keys(r).filter((function(e){return"undefined"!==typeof r[e]&&null!==r[e]&&""!==r[e]})).reduce((function(e,t){var n=r[t].toString();return"data"===(t=function(e){var t=function(e,t){return(t?"-":"")+e.toLowerCase()};return e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,t)}(t)).substring(0,4)||"crossorigin"===t?e.attributes[t]=n:e.queryParams[t]=n,e}),{queryParams:{},attributes:{}}),o=n.queryParams,a=n.attributes;return o["merchant-id"]&&-1!==o["merchant-id"].indexOf(",")&&(a["data-merchant-id"]=o["merchant-id"],o["merchant-id"]="*"),{url:"".concat(t,"?").concat(uj(o)),attributes:a}}(e),n=r.url,o=r.attributes,a=o["data-namespace"]||"paypal",i=hj(a);return o["data-js-sdk-library"]||(o["data-js-sdk-library"]="paypal-js"),function(e,t){var r=document.querySelector('script[src="'.concat(e,'"]'));if(null===r)return null;var n=dj(e,t),o=r.cloneNode();if(delete o.dataset.uidAuto,Object.keys(o.dataset).length!==Object.keys(n.dataset).length)return null;var a=!0;return Object.keys(o.dataset).forEach((function(e){o.dataset[e]!==n.dataset[e]&&(a=!1)})),a?r:null}(n,o)&&i?t.resolve(i):pj({url:n,attributes:o},t).then((function(){var e=hj(a);if(e)return e;throw new Error("The window.".concat(a," global variable is not available."))}))}function pj(e,t){void 0===t&&(t=Promise),mj(e,t);var r=e.url,n=e.attributes;if("string"!==typeof r||0===r.length)throw new Error("Invalid url.");if("undefined"!==typeof n&&"object"!==typeof n)throw new Error("Expected attributes to be an object.");return new t((function(e,t){if("undefined"===typeof document)return e();!function(e){var t=e.url,r=e.attributes,n=e.onSuccess,o=e.onError,a=dj(t,r);a.onerror=o,a.onload=n,document.head.insertBefore(a,document.head.firstElementChild)}({url:r,attributes:n,onSuccess:function(){return e()},onError:function(){var e=new Error('The script "'.concat(r,'" failed to load. Check the HTTP status code and response body in DevTools to learn more.'));return t(e)}})}))}function hj(e){return window[e]}function mj(e,t){if("object"!==typeof e||null===e)throw new Error("Expected an options object.");var r=e.environment;if(r&&"production"!==r&&"sandbox"!==r)throw new Error('The `environment` option must be either "production" or "sandbox".');if("undefined"!==typeof t&&"function"!==typeof t)throw new Error("Expected PromisePonyfill to be a function.")}cj.displayName="PayPalButtons";var gj=function(e){var t=e.className,r=void 0===t?"":t,o=e.children,a=Wk(e,["className","children"]),i=lj()[0],s=i.isResolved,l=i.options,c=(0,n.useRef)(null),u=(0,n.useState)(!0),d=u[0],f=u[1],p=(0,n.useState)(null)[1];return(0,n.useEffect)((function(){if(!1!==s){var e=rj(l[Yk]);if(void 0===e||void 0===e.Marks)return p((function(){throw new Error(nj({reactComponentName:gj.displayName,sdkComponentKey:"marks",sdkRequestedComponents:l.components,sdkDataNamespace:l[Yk]}))}));!function(e){var t=c.current;if(!t||!e.isEligible())return f(!1);t.firstChild&&t.removeChild(t.firstChild),e.render(t).catch((function(e){null!==t&&0!==t.children.length&&p((function(){throw new Error("Failed to render <PayPalMarks /> component. ".concat(e))}))}))}(e.Marks(Uk({},a)))}}),[s,a.fundingSource]),n.createElement(n.Fragment,null,d?n.createElement("div",{ref:c,className:r}):o)};gj.displayName="PayPalMarks";var bj=function(e){var t=e.className,r=void 0===t?"":t,o=e.forceReRender,a=void 0===o?[]:o,i=Wk(e,["className","forceReRender"]),s=lj()[0],l=s.isResolved,c=s.options,u=(0,n.useRef)(null),d=(0,n.useRef)(null),f=(0,n.useState)(null)[1];return(0,n.useEffect)((function(){if(!1!==l){var e=rj(c[Yk]);if(void 0===e||void 0===e.Messages)return f((function(){throw new Error(nj({reactComponentName:bj.displayName,sdkComponentKey:"messages",sdkRequestedComponents:c.components,sdkDataNamespace:c[Yk]}))}));d.current=e.Messages(Uk({},i)),d.current.render(u.current).catch((function(e){null!==u.current&&0!==u.current.children.length&&f((function(){throw new Error("Failed to render <PayPalMessages /> component. ".concat(e))}))}))}}),Vk([l],a,!0)),n.createElement("div",{ref:u,className:r})};bj.displayName="PayPalMessages";var yj=function(e){var t,r=e.options,o=void 0===r?{clientId:"test"}:r,a=e.children,i=e.deferLoading,s=void 0!==i&&i,l=(0,n.useReducer)(aj,{options:Uk(Uk({},o),(t={},t[Kk]=Qk,t[Zk]=Qk,t[Gk]="".concat(oj(o)),t)),loadingStatus:s?Fk.INITIAL:Fk.PENDING}),c=l[0],u=l[1];return(0,n.useEffect)((function(){if(!1===s&&c.loadingStatus===Fk.INITIAL)return u({type:qk.LOADING_STATUS,value:Fk.PENDING});if(c.loadingStatus===Fk.PENDING){var e=!0;return fj(c.options).then((function(){e&&u({type:qk.LOADING_STATUS,value:Fk.RESOLVED})})).catch((function(t){console.error("".concat(Jk," ").concat(t)),e&&u({type:qk.LOADING_STATUS,value:{state:Fk.REJECTED,message:String(t)}})})),function(){e=!1}}}),[c.options,s,c.loadingStatus]),n.createElement(ij.Provider,{value:Uk(Uk({},c),{dispatch:u})},a)};function xj(){}(0,n.createContext)({cardFieldsForm:null,fields:{},registerField:xj,unregisterField:xj});function vj(e){let{orderData:t,activeBtn:r}=e;const{t:n}=rt(),{triggerRefresh:o}=cp(),a=X(),i=localStorage.getItem("token"),s="https://shop.sharedstore.ma/api/api";return(0,nt.jsx)(yj,{options:{"client-id":"AW2M-QO3MN8W7UwmQlu9sO9_PKIy3uZ57KhWbg9xdw3zPPLHGtDzrQHZCS8K7LdbiFekfuIccp0OOsAW"},children:(0,nt.jsx)(cj,{disabled:r,className:"z-0",style:{layout:"horizontal",color:"blue",shape:"rect",label:"paypal",tagline:!1},createOrder:async()=>{try{var e;return null===(e=(await gf.post(`${s}/paypal/create`,{amount:t.amount},{headers:{Authorization:`Bearer ${i}`}})).data.order)||void 0===e?void 0:e.id}catch(r){console.error(r)}},onApprove:async e=>{try{await gf.post(`${s}/paypal/execute`,{orderID:e.orderID,orderData:t},{headers:{Authorization:`Bearer ${i}`}});uh("success",n("success-paypal")),o(),setTimeout((()=>{a("/order/thankyou")}),2e3)}catch(r){console.error(r),uh("error",n("error-paypal"))}}})})}const wj={ext:"ext.",country:"Phone number country",phone:"Phone",AB:"Abkhazia",AC:"Ascension Island",AD:"Andorra",AE:"United Arab Emirates",AF:"Afghanistan",AG:"Antigua and Barbuda",AI:"Anguilla",AL:"Albania",AM:"Armenia",AO:"Angola",AQ:"Antarctica",AR:"Argentina",AS:"American Samoa",AT:"Austria",AU:"Australia",AW:"Aruba",AX:"\xc5land Islands",AZ:"Azerbaijan",BA:"Bosnia and Herzegovina",BB:"Barbados",BD:"Bangladesh",BE:"Belgium",BF:"Burkina Faso",BG:"Bulgaria",BH:"Bahrain",BI:"Burundi",BJ:"Benin",BL:"Saint Barth\xe9lemy",BM:"Bermuda",BN:"Brunei Darussalam",BO:"Bolivia",BQ:"Bonaire, Sint Eustatius and Saba",BR:"Brazil",BS:"Bahamas",BT:"Bhutan",BV:"Bouvet Island",BW:"Botswana",BY:"Belarus",BZ:"Belize",CA:"Canada",CC:"Cocos (Keeling) Islands",CD:"Congo, Democratic Republic of the",CF:"Central African Republic",CG:"Congo",CH:"Switzerland",CI:"Cote d'Ivoire",CK:"Cook Islands",CL:"Chile",CM:"Cameroon",CN:"China",CO:"Colombia",CR:"Costa Rica",CU:"Cuba",CV:"Cape Verde",CW:"Cura\xe7ao",CX:"Christmas Island",CY:"Cyprus",CZ:"Czech Republic",DE:"Germany",DJ:"Djibouti",DK:"Denmark",DM:"Dominica",DO:"Dominican Republic",DZ:"Algeria",EC:"Ecuador",EE:"Estonia",EG:"Egypt",EH:"Western Sahara",ER:"Eritrea",ES:"Spain",ET:"Ethiopia",FI:"Finland",FJ:"Fiji",FK:"Falkland Islands",FM:"Federated States of Micronesia",FO:"Faroe Islands",FR:"France",GA:"Gabon",GB:"United Kingdom",GD:"Grenada",GE:"Georgia",GF:"French Guiana",GG:"Guernsey",GH:"Ghana",GI:"Gibraltar",GL:"Greenland",GM:"Gambia",GN:"Guinea",GP:"Guadeloupe",GQ:"Equatorial Guinea",GR:"Greece",GS:"South Georgia and the South Sandwich Islands",GT:"Guatemala",GU:"Guam",GW:"Guinea-Bissau",GY:"Guyana",HK:"Hong Kong",HM:"Heard Island and McDonald Islands",HN:"Honduras",HR:"Croatia",HT:"Haiti",HU:"Hungary",ID:"Indonesia",IE:"Ireland",IL:"Israel",IM:"Isle of Man",IN:"India",IO:"British Indian Ocean Territory",IQ:"Iraq",IR:"Iran",IS:"Iceland",IT:"Italy",JE:"Jersey",JM:"Jamaica",JO:"Jordan",JP:"Japan",KE:"Kenya",KG:"Kyrgyzstan",KH:"Cambodia",KI:"Kiribati",KM:"Comoros",KN:"Saint Kitts and Nevis",KP:"North Korea",KR:"South Korea",KW:"Kuwait",KY:"Cayman Islands",KZ:"Kazakhstan",LA:"Laos",LB:"Lebanon",LC:"Saint Lucia",LI:"Liechtenstein",LK:"Sri Lanka",LR:"Liberia",LS:"Lesotho",LT:"Lithuania",LU:"Luxembourg",LV:"Latvia",LY:"Libya",MA:"Morocco",MC:"Monaco",MD:"Moldova",ME:"Montenegro",MF:"Saint Martin (French Part)",MG:"Madagascar",MH:"Marshall Islands",MK:"North Macedonia",ML:"Mali",MM:"Myanmar",MN:"Mongolia",MO:"Macao",MP:"Northern Mariana Islands",MQ:"Martinique",MR:"Mauritania",MS:"Montserrat",MT:"Malta",MU:"Mauritius",MV:"Maldives",MW:"Malawi",MX:"Mexico",MY:"Malaysia",MZ:"Mozambique",NA:"Namibia",NC:"New Caledonia",NE:"Niger",NF:"Norfolk Island",NG:"Nigeria",NI:"Nicaragua",NL:"Netherlands",NO:"Norway",NP:"Nepal",NR:"Nauru",NU:"Niue",NZ:"New Zealand",OM:"Oman",OS:"South Ossetia",PA:"Panama",PE:"Peru",PF:"French Polynesia",PG:"Papua New Guinea",PH:"Philippines",PK:"Pakistan",PL:"Poland",PM:"Saint Pierre and Miquelon",PN:"Pitcairn",PR:"Puerto Rico",PS:"Palestine",PT:"Portugal",PW:"Palau",PY:"Paraguay",QA:"Qatar",RE:"Reunion",RO:"Romania",RS:"Serbia",RU:"Russia",RW:"Rwanda",SA:"Saudi Arabia",SB:"Solomon Islands",SC:"Seychelles",SD:"Sudan",SE:"Sweden",SG:"Singapore",SH:"Saint Helena",SI:"Slovenia",SJ:"Svalbard and Jan Mayen",SK:"Slovakia",SL:"Sierra Leone",SM:"San Marino",SN:"Senegal",SO:"Somalia",SR:"Suriname",SS:"South Sudan",ST:"Sao Tome and Principe",SV:"El Salvador",SX:"Sint Maarten",SY:"Syria",SZ:"Swaziland",TA:"Tristan da Cunha",TC:"Turks and Caicos Islands",TD:"Chad",TF:"French Southern Territories",TG:"Togo",TH:"Thailand",TJ:"Tajikistan",TK:"Tokelau",TL:"Timor-Leste",TM:"Turkmenistan",TN:"Tunisia",TO:"Tonga",TR:"Turkey",TT:"Trinidad and Tobago",TV:"Tuvalu",TW:"Taiwan",TZ:"Tanzania",UA:"Ukraine",UG:"Uganda",UM:"United States Minor Outlying Islands",US:"United States",UY:"Uruguay",UZ:"Uzbekistan",VA:"Holy See (Vatican City State)",VC:"Saint Vincent and the Grenadines",VE:"Venezuela",VG:"Virgin Islands, British",VI:"Virgin Islands, U.S.",VN:"Vietnam",VU:"Vanuatu",WF:"Wallis and Futuna",WS:"Samoa",XK:"Kosovo",YE:"Yemen",YT:"Mayotte",ZA:"South Africa",ZM:"Zambia",ZW:"Zimbabwe",ZZ:"International"};var kj=r(5173),jj=kj.shape({country_calling_codes:kj.object.isRequired,countries:kj.object.isRequired}),Nj=kj.objectOf(kj.string);function Cj(e,t){var r="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"===typeof e)return Sj(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Sj(e,t)}(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Sj(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ej(e,t){for(var r,n=0,o=Cj(t.split(""));!(r=o()).done;){r.value===e&&n++}return n}function Aj(e,t){var r="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"===typeof e)return Oj(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Oj(e,t)}(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Oj(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function $j(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x",r=arguments.length>2?arguments[2]:void 0;if(!e)return function(e){return{text:e}};var n=Ej(t,e);return function(o){if(!o)return{text:"",template:e};for(var a,i=0,s="",l=Aj(e.split(""));!(a=l()).done;){var c=a.value;if(c===t){if(s+=o[i],++i===o.length&&o.length<n)break}else s+=c}return r&&(s=function(e,t){for(var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"x",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:" ",o=e.length,a=Ej("(",e)-Ej(")",e);a>0&&o<t.length;)e+=t[o].replace(r,n),")"===t[o]&&a--,o++;return e}(s,e)),{text:s,template:e}}}var Pj={Backspace:8,Delete:46};function Tj(e,t){void 0!==t&&(!function(){if("undefined"!==typeof navigator)return Ij.test(navigator.userAgent)}()?e.setSelectionRange(t,t):setTimeout((function(){return e.setSelectionRange(t,t)}),0))}var Ij=/Android/i;function Mj(e,t,r,n,o){if(!t.hasAttribute("readonly")){var a=function(e){switch(e.keyCode){case Pj.Backspace:return"Backspace";case Pj.Delete:return"Delete"}}(e);switch(a){case"Delete":case"Backspace":e.preventDefault();var i=function(e){if(e.selectionStart!==e.selectionEnd)return{start:e.selectionStart,end:e.selectionEnd}}(t);return i?(Rj(t,i),Lj(t,r,n,void 0,o)):Lj(t,r,n,a,o)}}}function Rj(e,t){var r=e.value;r=r.slice(0,t.start)+r.slice(t.end),e.value=r,Tj(e,t.start)}function Lj(e,t,r,n,o){var a=function(e,t,r){for(var n={},o="",a=0,i=0;i<e.length;){var s=r(e[i],o,n);void 0!==s&&(o+=s,void 0!==t&&(t===i?a=o.length-1:t>i&&(a=o.length))),i++}return void 0===t&&(a=o.length),{value:o,caret:a}}(e.value,e.selectionStart,t),i=a.value,s=a.caret;if(n){var l=function(e,t,r){switch(r){case"Backspace":t>0&&(e=e.slice(0,t-1)+e.slice(t),t--);break;case"Delete":e=e.slice(0,t)+e.slice(t+1)}return{value:e,caret:t}}(i,s,n);i=l.value,s=l.caret}var c=function(e,t,r){"string"===typeof r&&(r=$j(r));var n=r(e)||{},o=n.text,a=n.template;if(void 0===o&&(o=e),a)if(void 0===t)t=o.length;else{for(var i=0,s=!1,l=-1;i<o.length&&i<a.length;){if(o[i]!==a[i]){if(0===t){s=!0,t=i;break}l=i,t--}i++}s||(t=l+1)}return{text:o,caret:t}}(i,s,r),u=c.text;s=c.caret,e.value=u,Tj(e,s),o(i)}var _j=["value","parse","format","inputComponent","onChange","onKeyDown"];function Dj(){return Dj=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Dj.apply(this,arguments)}function Bj(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function zj(e,t){var r=e.value,o=e.parse,a=e.format,i=e.inputComponent,s=e.onChange,l=e.onKeyDown,c=Bj(e,_j),u=(0,n.useRef)(),d=(0,n.useCallback)((function(e){u.current=e,t&&("function"===typeof t?t(e):t.current=e)}),[t]),f=(0,n.useCallback)((function(e){Lj(u.current,o,a,void 0,s)}),[u,o,a,s]),p=(0,n.useCallback)((function(e){if(l&&l(e),!e.defaultPrevented)return Mj(e,u.current,o,a,s)}),[u,o,a,s,l]);return n.createElement(i,Dj({},c,{ref:d,value:a(qj(r)?"":r).text,onKeyDown:p,onChange:f}))}(zj=n.forwardRef(zj)).propTypes={parse:kj.func.isRequired,format:kj.func.isRequired,inputComponent:kj.elementType.isRequired,type:kj.string.isRequired,value:kj.string,onChange:kj.func.isRequired,onKeyDown:kj.func,onCut:kj.func,onPaste:kj.func},zj.defaultProps={inputComponent:"input",type:"text"};const Fj=zj;function qj(e){return void 0===e||null===e}function Hj(e,t){e=e.split("-"),t=t.split("-");for(var r=e[0].split("."),n=t[0].split("."),o=0;o<3;o++){var a=Number(r[o]),i=Number(n[o]);if(a>i)return 1;if(i>a)return-1;if(!isNaN(a)&&isNaN(i))return 1;if(isNaN(a)&&!isNaN(i))return-1}return e[1]&&t[1]?e[1]>t[1]?1:e[1]<t[1]?-1:0:!e[1]&&t[1]?1:e[1]&&!t[1]?-1:0}var Uj={}.constructor;function Wj(e){return void 0!==e&&null!==e&&e.constructor===Uj}function Vj(e){return Vj="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},Vj(e)}function Gj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Kj(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Qj(e,t,r){return t&&Kj(e.prototype,t),r&&Kj(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var Yj=" ext. ",Zj=/^\d+$/,Jj=function(){function e(t){Gj(this,e),function(e){if(!e)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!Wj(e)||!Wj(e.countries))throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(Wj(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+oN(e)+": "+e,"."))}(t),this.metadata=t,sN.call(this,t)}return Qj(e,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter((function(e){return"001"!==e}))}},{key:"getCountryMetadata",value:function(e){return this.metadata.countries[e]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(e){return void 0!==this.getCountryMetadata(e)}},{key:"hasCallingCode",value:function(e){if(this.getCountryCodesForCallingCode(e))return!0;if(this.nonGeographic()){if(this.nonGeographic()[e])return!0}else{var t=this.countryCallingCodes()[e];if(t&&1===t.length&&"001"===t[0])return!0}}},{key:"isNonGeographicCallingCode",value:function(e){return this.nonGeographic()?!!this.nonGeographic()[e]:!this.getCountryCodesForCallingCode(e)}},{key:"country",value:function(e){return this.selectNumberingPlan(e)}},{key:"selectNumberingPlan",value:function(e,t){if(e&&Zj.test(e)&&(t=e,e=null),e&&"001"!==e){if(!this.hasCountry(e))throw new Error("Unknown country: ".concat(e));this.numberingPlan=new Xj(this.getCountryMetadata(e),this)}else if(t){if(!this.hasCallingCode(t))throw new Error("Unknown calling code: ".concat(t));this.numberingPlan=new Xj(this.getNumberingPlanMetadata(t),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(e){var t=this.countryCallingCodes()[e];if(t){if(1===t.length&&3===t[0].length)return;return t}}},{key:"getCountryCodeForCallingCode",value:function(e){var t=this.getCountryCodesForCallingCode(e);if(t)return t[0]}},{key:"getNumberingPlanMetadata",value:function(e){var t=this.getCountryCodeForCallingCode(e);if(t)return this.getCountryMetadata(t);if(this.nonGeographic()){var r=this.nonGeographic()[e];if(r)return r}else{var n=this.countryCallingCodes()[e];if(n&&1===n.length&&"001"===n[0])return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(e){return this.numberingPlan.type(e)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(e){return this.selectNumberingPlan(e)}},{key:"hasSelectedNumberingPlan",value:function(){return void 0!==this.numberingPlan}}]),e}(),Xj=function(){function e(t,r){Gj(this,e),this.globalMetadataObject=r,this.metadata=t,sN.call(this,r.metadata)}return Qj(e,[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"IDDPrefix",value:function(){if(!this.v1&&!this.v2)return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!this.v1&&!this.v2)return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function(e){return e[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var e=this,t=this._getFormats(this.metadata)||this._getFormats(this.getDefaultCountryMetadataForRegion())||[];return t.map((function(t){return new eN(t,e)}))}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(e){return e[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return(!this.types()||0!==this.types().length)&&!!this.types()}},{key:"type",value:function(e){if(this.hasTypes()&&nN(this.types(),e))return new rN(nN(this.types(),e),this)}},{key:"ext",value:function(){return this.v1||this.v2?Yj:this.metadata[13]||Yj}}]),e}(),eN=function(){function e(t,r){Gj(this,e),this._format=t,this.metadata=r}return Qj(e,[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return!(!this.nationalPrefixFormattingRule()||tN.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}]),e}(),tN=/^\(?\$1\)?$/,rN=function(){function e(t,r){Gj(this,e),this.type=t,this.metadata=r}return Qj(e,[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.type[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}]),e}();function nN(e,t){switch(t){case"FIXED_LINE":return e[0];case"MOBILE":return e[1];case"TOLL_FREE":return e[2];case"PREMIUM_RATE":return e[3];case"PERSONAL_NUMBER":return e[4];case"VOICEMAIL":return e[5];case"UAN":return e[6];case"PAGER":return e[7];case"VOIP":return e[8];case"SHARED_COST":return e[9]}}var oN=function(e){return Vj(e)};function aN(e,t){if((t=new Jj(t)).hasCountry(e))return t.country(e).countryCallingCode();throw new Error("Unknown country: ".concat(e))}function iN(e,t){return t.countries.hasOwnProperty(e)}function sN(e){var t=e.version;"number"===typeof t?(this.v1=1===t,this.v2=2===t,this.v3=3===t,this.v4=4===t):t?-1===Hj(t,"1.2.0")?this.v2=!0:-1===Hj(t,"1.7.35")?this.v3=!0:this.v4=!0:this.v1=!0}function lN(e,t){var r="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"===typeof e)return cN(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return cN(e,t)}(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function cN(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function uN(e,t){return dN(e,void 0,t)}function dN(e,t,r){var n=r.type(t),o=n&&n.possibleLengths()||r.possibleLengths();if(!o)return"IS_POSSIBLE";if("FIXED_LINE_OR_MOBILE"===t){if(!r.type("FIXED_LINE"))return dN(e,"MOBILE",r);var a=r.type("MOBILE");a&&(o=function(e,t){for(var r,n=e.slice(),o=lN(t);!(r=o()).done;){var a=r.value;e.indexOf(a)<0&&n.push(a)}return n.sort((function(e,t){return e-t}))}(o,a.possibleLengths()))}else if(t&&!n)return"INVALID_LENGTH";var i=e.length,s=o[0];return s===i?"IS_POSSIBLE":s>i?"TOO_SHORT":o[o.length-1]<i?"TOO_LONG":o.indexOf(i,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}function fN(e,t){return"IS_POSSIBLE"===uN(e,t)}function pN(e,t){return e=e||"",new RegExp("^(?:"+t+")$").test(e)}function hN(e,t){var r="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"===typeof e)return mN(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return mN(e,t)}(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function mN(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var gN=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function bN(e,t,r){if(t=t||{},e.country||e.countryCallingCode){(r=new Jj(r)).selectNumberingPlan(e.country,e.countryCallingCode);var n=t.v2?e.nationalNumber:e.phone;if(pN(n,r.nationalNumberPattern())){if(yN(n,"FIXED_LINE",r))return r.type("MOBILE")&&""===r.type("MOBILE").pattern()?"FIXED_LINE_OR_MOBILE":r.type("MOBILE")?yN(n,"MOBILE",r)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE":"FIXED_LINE_OR_MOBILE";for(var o,a=hN(gN);!(o=a()).done;){var i=o.value;if(yN(n,i,r))return i}}}}function yN(e,t,r){return!(!(t=r.type(t))||!t.pattern())&&(!(t.possibleLengths()&&t.possibleLengths().indexOf(e.length)<0)&&pN(e,t.pattern()))}function xN(e,t,r){var n=new Jj(r).getCountryCodesForCallingCode(e);return n?n.filter((function(e){return function(e,t,r){var n=new Jj(r);if(n.selectNumberingPlan(t),n.numberingPlan.possibleLengths().indexOf(e.length)>=0)return!0;return!1}(t,e,r)})):[]}var vN=2,wN=17,kN=3,jN="0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9",NN="".concat("-\u2010-\u2015\u2212\u30fc\uff0d").concat("\uff0f/").concat("\uff0e.").concat(" \xa0\xad\u200b\u2060\u3000").concat("()\uff08\uff09\uff3b\uff3d\\[\\]").concat("~\u2053\u223c\uff5e");function CN(e){return e.replace(new RegExp("[".concat(NN,"]+"),"g")," ").trim()}var SN=/(\$\d)/;function EN(e,t,r){var n=r.useInternationalFormat,o=r.withNationalPrefix,a=(r.carrierCode,r.metadata,e.replace(new RegExp(t.pattern()),n?t.internationalFormat():o&&t.nationalPrefixFormattingRule()?t.format().replace(SN,t.nationalPrefixFormattingRule()):t.format()));return n?CN(a):a}var AN=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function ON(e,t){var r="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"===typeof e)return $N(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return $N(e,t)}(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function $N(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function PN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function TN(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?PN(Object(r),!0).forEach((function(t){IN(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):PN(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function IN(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var MN={formatExtension:function(e,t,r){return"".concat(e).concat(r.ext()).concat(t)}};function RN(e,t,r,n){if(r=r?TN(TN({},MN),r):MN,n=new Jj(n),e.country&&"001"!==e.country){if(!n.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));n.country(e.country)}else{if(!e.countryCallingCode)return e.phone||"";n.selectNumberingPlan(e.countryCallingCode)}var o,a=n.countryCallingCode(),i=r.v2?e.nationalNumber:e.phone;switch(t){case"NATIONAL":return i?_N(o=LN(i,e.carrierCode,"NATIONAL",n,r),e.ext,n,r.formatExtension):"";case"INTERNATIONAL":return i?(o=LN(i,null,"INTERNATIONAL",n,r),_N(o="+".concat(a," ").concat(o),e.ext,n,r.formatExtension)):"+".concat(a);case"E.164":return"+".concat(a).concat(i);case"RFC3966":return function(e){var t=e.number,r=e.ext;if(!t)return"";if("+"!==t[0])throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(t).concat(r?";ext="+r:"")}({number:"+".concat(a).concat(i),ext:e.ext});case"IDD":if(!r.fromCountry)return;var s=function(e,t,r,n,o){var a=aN(n,o.metadata);if(a===r){var i=LN(e,t,"NATIONAL",o);return"1"===r?r+" "+i:i}var s=function(e,t,r){var n=new Jj(r);return n.selectNumberingPlan(e,t),n.defaultIDDPrefix()?n.defaultIDDPrefix():AN.test(n.IDDPrefix())?n.IDDPrefix():void 0}(n,void 0,o.metadata);if(s)return"".concat(s," ").concat(r," ").concat(LN(e,null,"INTERNATIONAL",o))}(i,e.carrierCode,a,r.fromCountry,n);return _N(s,e.ext,n,r.formatExtension);default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t,'"'))}}function LN(e,t,r,n,o){var a=function(e,t){for(var r,n=ON(e);!(r=n()).done;){var o=r.value;if(o.leadingDigitsPatterns().length>0){var a=o.leadingDigitsPatterns()[o.leadingDigitsPatterns().length-1];if(0!==t.search(a))continue}if(pN(t,o.pattern()))return o}}(n.formats(),e);return a?EN(e,a,{useInternationalFormat:"INTERNATIONAL"===r,withNationalPrefix:!a.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!o||!1!==o.nationalPrefix,carrierCode:t,metadata:n}):e}function _N(e,t,r,n){return t?n(e,t,r):e}function DN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function BN(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?DN(Object(r),!0).forEach((function(t){zN(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):DN(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function zN(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function FN(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var qN=function(){function e(t,r,n){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw new TypeError("`country` or `countryCallingCode` not passed");if(!r)throw new TypeError("`nationalNumber` not passed");if(!n)throw new TypeError("`metadata` not passed");var o=function(e,t){var r,n,o=new Jj(t);HN(e)?(r=e,o.selectNumberingPlan(r),n=o.countryCallingCode()):n=e;return{country:r,countryCallingCode:n}}(t,n),a=o.country,i=o.countryCallingCode;this.country=a,this.countryCallingCode=i,this.nationalNumber=r,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return n}}var t,r,n;return t=e,(r=[{key:"setExt",value:function(e){this.ext=e}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:xN(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return function(e,t,r){if(void 0===t&&(t={}),r=new Jj(r),t.v2){if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");r.selectNumberingPlan(e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!r.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));r.country(e.country)}else{if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");r.selectNumberingPlan(e.countryCallingCode)}}if(r.possibleLengths())return fN(e.phone||e.nationalNumber,r);if(e.countryCallingCode&&r.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return function(e,t,r){return t=t||{},(r=new Jj(r)).selectNumberingPlan(e.country,e.countryCallingCode),r.hasTypes()?void 0!==bN(e,t,r.metadata):pN(t.v2?e.nationalNumber:e.phone,r.nationalNumberPattern())}(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){return new Jj(this.getMetadata()).isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(e){return this.number===e.number&&this.ext===e.ext}},{key:"getType",value:function(){return bN(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(e,t){return RN(this,e,t?BN(BN({},t),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:"formatNational",value:function(e){return this.format("NATIONAL",e)}},{key:"formatInternational",value:function(e){return this.format("INTERNATIONAL",e)}},{key:"getURI",value:function(e){return this.format("RFC3966",e)}}])&&FN(t.prototype,r),n&&FN(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),HN=function(e){return/^[A-Z]{2}$/.test(e)};function UN(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var WN=function(){function e(t){var r=t.onCountryChange,n=t.onCallingCodeChange;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.onCountryChange=r,this.onCallingCodeChange=n}var t,r,n;return t=e,r=[{key:"reset",value:function(e){var t=e.country,r=e.callingCode;this.international=!1,this.missingPlus=!1,this.IDDPrefix=void 0,this.callingCode=void 0,this.digits="",this.resetNationalSignificantNumber(),this.initCountryAndCallingCode(t,r)}},{key:"resetNationalSignificantNumber",value:function(){this.nationalSignificantNumber=this.getNationalDigits(),this.nationalSignificantNumberMatchesInput=!0,this.nationalPrefix=void 0,this.carrierCode=void 0,this.complexPrefixBeforeNationalSignificantNumber=void 0}},{key:"update",value:function(e){for(var t=0,r=Object.keys(e);t<r.length;t++){var n=r[t];this[n]=e[n]}}},{key:"initCountryAndCallingCode",value:function(e,t){this.setCountry(e),this.setCallingCode(t)}},{key:"setCountry",value:function(e){this.country=e,this.onCountryChange(e)}},{key:"setCallingCode",value:function(e){this.callingCode=e,this.onCallingCodeChange(e,this.country)}},{key:"startInternationalNumber",value:function(e,t){this.international=!0,this.initCountryAndCallingCode(e,t)}},{key:"appendDigits",value:function(e){this.digits+=e}},{key:"appendNationalSignificantNumberDigits",value:function(e){this.nationalSignificantNumber+=e}},{key:"getNationalDigits",value:function(){return this.international?this.digits.slice((this.IDDPrefix?this.IDDPrefix.length:0)+(this.callingCode?this.callingCode.length:0)):this.digits}},{key:"getDigitsWithoutInternationalPrefix",value:function(){return this.international&&this.IDDPrefix?this.digits.slice(this.IDDPrefix.length):this.digits}}],r&&UN(t.prototype,r),n&&UN(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function VN(e,t){var r="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"===typeof e)return GN(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return GN(e,t)}(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function GN(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var KN="x",QN=new RegExp(KN);function YN(e,t){if(t<1)return"";for(var r="";t>1;)1&t&&(r+=e),t>>=1,e+=e;return r+e}function ZN(e,t){return")"===e[t]&&t++,function(e){var t=[],r=0;for(;r<e.length;)"("===e[r]?t.push(r):")"===e[r]&&t.pop(),r++;var n=0,o="";t.push(e.length);for(var a=0,i=t;a<i.length;a++){var s=i[a];o+=e.slice(n,s),n=s+1}return o}(e.slice(0,t))}function JN(e,t){var r="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"===typeof e)return XN(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return XN(e,t)}(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function XN(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var eC={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","\uff10":"0","\uff11":"1","\uff12":"2","\uff13":"3","\uff14":"4","\uff15":"5","\uff16":"6","\uff17":"7","\uff18":"8","\uff19":"9","\u0660":"0","\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u06f0":"0","\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9"};function tC(e){return eC[e]}function rC(e){for(var t,r="",n=JN(e.split(""));!(t=n()).done;){var o=tC(t.value);o&&(r+=o)}return r}function nC(e,t,r){var n=r.metadata,o=r.shouldTryNationalPrefixFormattingRule,a=r.getSeparatorAfterNationalPrefix;if(new RegExp("^(?:".concat(t.pattern(),")$")).test(e.nationalSignificantNumber))return function(e,t,r){var n=r.metadata,o=r.shouldTryNationalPrefixFormattingRule,a=r.getSeparatorAfterNationalPrefix;e.nationalSignificantNumber,e.international,e.nationalPrefix,e.carrierCode;if(o(t)){var i=oC(e,t,{useNationalPrefixFormattingRule:!0,getSeparatorAfterNationalPrefix:a,metadata:n});if(i)return i}return oC(e,t,{useNationalPrefixFormattingRule:!1,getSeparatorAfterNationalPrefix:a,metadata:n})}(e,t,{metadata:n,shouldTryNationalPrefixFormattingRule:o,getSeparatorAfterNationalPrefix:a})}function oC(e,t,r){var n=r.metadata,o=r.useNationalPrefixFormattingRule,a=r.getSeparatorAfterNationalPrefix,i=EN(e.nationalSignificantNumber,t,{carrierCode:e.carrierCode,useInternationalFormat:e.international,withNationalPrefix:o,metadata:n});if(o||(e.nationalPrefix?i=e.nationalPrefix+a(t)+i:e.complexPrefixBeforeNationalSignificantNumber&&(i=e.complexPrefixBeforeNationalSignificantNumber+" "+i)),function(e,t){return rC(e)===t.getNationalDigits()}(i,e))return i}function aC(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var iC=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,n;return t=e,(r=[{key:"parse",value:function(e){if(this.context=[{or:!0,instructions:[]}],this.parsePattern(e),1!==this.context.length)throw new Error("Non-finalized contexts left when pattern parse ended");var t=this.context[0],r=t.branches,n=t.instructions;if(r)return{op:"|",args:r.concat([uC(n)])};if(0===n.length)throw new Error("Pattern is required");return 1===n.length?n[0]:n}},{key:"startContext",value:function(e){this.context.push(e)}},{key:"endContext",value:function(){this.context.pop()}},{key:"getContext",value:function(){return this.context[this.context.length-1]}},{key:"parsePattern",value:function(e){if(!e)throw new Error("Pattern is required");var t=e.match(cC);if(t){var r=t[1],n=e.slice(0,t.index),o=e.slice(t.index+r.length);switch(r){case"(?:":n&&this.parsePattern(n),this.startContext({or:!0,instructions:[],branches:[]});break;case")":if(!this.getContext().or)throw new Error('")" operator must be preceded by "(?:" operator');if(n&&this.parsePattern(n),0===this.getContext().instructions.length)throw new Error('No instructions found after "|" operator in an "or" group');var a=this.getContext().branches;a.push(uC(this.getContext().instructions)),this.endContext(),this.getContext().instructions.push({op:"|",args:a});break;case"|":if(!this.getContext().or)throw new Error('"|" operator can only be used inside "or" groups');if(n&&this.parsePattern(n),!this.getContext().branches){if(1!==this.context.length)throw new Error('"branches" not found in an "or" group context');this.getContext().branches=[]}this.getContext().branches.push(uC(this.getContext().instructions)),this.getContext().instructions=[];break;case"[":n&&this.parsePattern(n),this.startContext({oneOfSet:!0});break;case"]":if(!this.getContext().oneOfSet)throw new Error('"]" operator must be preceded by "[" operator');this.endContext(),this.getContext().instructions.push({op:"[]",args:sC(n)});break;default:throw new Error("Unknown operator: ".concat(r))}o&&this.parsePattern(o)}else{if(lC.test(e))throw new Error("Illegal characters found in a pattern: ".concat(e));this.getContext().instructions=this.getContext().instructions.concat(e.split(""))}}}])&&aC(t.prototype,r),n&&aC(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function sC(e){for(var t=[],r=0;r<e.length;){if("-"===e[r]){if(0===r||r===e.length-1)throw new Error("Couldn't parse a one-of set pattern: ".concat(e));for(var n=e[r-1].charCodeAt(0)+1,o=e[r+1].charCodeAt(0)-1,a=n;a<=o;)t.push(String.fromCharCode(a)),a++}else t.push(e[r]);r++}return t}var lC=/[\(\)\[\]\?\:\|]/,cC=new RegExp("(\\||\\(\\?\\:|\\)|\\[|\\])");function uC(e){return 1===e.length?e[0]:e}function dC(e,t){var r="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"===typeof e)return fC(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return fC(e,t)}(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function fC(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function pC(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var hC=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.matchTree=(new iC).parse(t)}var t,r,n;return t=e,r=[{key:"match",value:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).allowOverflow;if(!e)throw new Error("String is required");var r=mC(e.split(""),this.matchTree,!0);if(r&&r.match&&delete r.matchedChars,!r||!r.overflow||t)return r}}],r&&pC(t.prototype,r),n&&pC(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function mC(e,t,r){if("string"===typeof t){var n=e.join("");return 0===t.indexOf(n)?e.length===t.length?{match:!0,matchedChars:e}:{partialMatch:!0}:0===n.indexOf(t)?r&&e.length>t.length?{overflow:!0}:{match:!0,matchedChars:e.slice(0,t.length)}:void 0}if(Array.isArray(t)){for(var o=e.slice(),a=0;a<t.length;){var i=mC(o,t[a],r&&a===t.length-1);if(!i)return;if(i.overflow)return i;if(!i.match){if(i.partialMatch)return{partialMatch:!0};throw new Error("Unsupported match result:\n".concat(JSON.stringify(i,null,2)))}if(0===(o=o.slice(i.matchedChars.length)).length)return a===t.length-1?{match:!0,matchedChars:e}:{partialMatch:!0};a++}return r?{overflow:!0}:{match:!0,matchedChars:e.slice(0,e.length-o.length)}}switch(t.op){case"|":for(var s,l,c=dC(t.args);!(l=c()).done;){var u=mC(e,l.value,r);if(u){if(u.overflow)return u;if(u.match)return{match:!0,matchedChars:u.matchedChars};if(!u.partialMatch)throw new Error("Unsupported match result:\n".concat(JSON.stringify(u,null,2)));s=!0}}return s?{partialMatch:!0}:void 0;case"[]":for(var d,f=dC(t.args);!(d=f()).done;){var p=d.value;if(e[0]===p)return 1===e.length?{match:!0,matchedChars:e}:r?{overflow:!0}:{match:!0,matchedChars:[p]}}return;default:throw new Error("Unsupported instruction tree: ".concat(t))}}function gC(e,t){var r="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"===typeof e)return bC(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return bC(e,t)}(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function bC(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function yC(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var xC=YN("9",15),vC=/[- ]/,wC=function(){return/\[([^\[\]])*\]/g},kC=function(){return/\d(?=[^,}][^,}])/g},jC=new RegExp("["+NN+"]*\\$1["+NN+"]*(\\$\\d["+NN+"]*)*$"),NC=function(){function e(t){t.state;var r=t.metadata;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.metadata=r,this.resetFormat()}var t,r,n;return t=e,r=[{key:"resetFormat",value:function(){this.chosenFormat=void 0,this.template=void 0,this.nationalNumberTemplate=void 0,this.populatedNationalNumberTemplate=void 0,this.populatedNationalNumberTemplatePosition=-1}},{key:"reset",value:function(e,t){this.resetFormat(),e?(this.isNANP="1"===e.callingCode(),this.matchingFormats=e.formats(),t.nationalSignificantNumber&&this.narrowDownMatchingFormats(t)):(this.isNANP=void 0,this.matchingFormats=[])}},{key:"format",value:function(e,t){var r=this;if(function(e,t){return"IS_POSSIBLE"===uN(e,t)}(t.nationalSignificantNumber,this.metadata))for(var n,o=gC(this.matchingFormats);!(n=o()).done;){var a=n.value,i=nC(t,a,{metadata:this.metadata,shouldTryNationalPrefixFormattingRule:function(e){return r.shouldTryNationalPrefixFormattingRule(e,{international:t.international,nationalPrefix:t.nationalPrefix})},getSeparatorAfterNationalPrefix:function(e){return r.getSeparatorAfterNationalPrefix(e)}});if(i)return this.resetFormat(),this.chosenFormat=a,this.setNationalNumberTemplate(i.replace(/\d/g,KN),t),this.populatedNationalNumberTemplate=i,this.populatedNationalNumberTemplatePosition=this.template.lastIndexOf(KN),i}return this.formatNationalNumberWithNextDigits(e,t)}},{key:"formatNationalNumberWithNextDigits",value:function(e,t){var r=this.chosenFormat,n=this.chooseFormat(t);if(n)return n===r?this.formatNextNationalNumberDigits(e):this.formatNextNationalNumberDigits(t.getNationalDigits())}},{key:"narrowDownMatchingFormats",value:function(e){var t=this,r=e.nationalSignificantNumber,n=e.nationalPrefix,o=e.international,a=r,i=a.length-3;i<0&&(i=0),this.matchingFormats=this.matchingFormats.filter((function(e){return t.formatSuits(e,o,n)&&t.formatMatches(e,a,i)})),this.chosenFormat&&-1===this.matchingFormats.indexOf(this.chosenFormat)&&this.resetFormat()}},{key:"formatSuits",value:function(e,t,r){return!(r&&!e.usesNationalPrefix()&&!e.nationalPrefixIsOptionalWhenFormattingInNationalFormat())&&!(!t&&!r&&e.nationalPrefixIsMandatoryWhenFormattingInNationalFormat())}},{key:"formatMatches",value:function(e,t,r){var n=e.leadingDigitsPatterns().length;if(0===n)return!0;r=Math.min(r,n-1);var o=e.leadingDigitsPatterns()[r];if(t.length<3)try{return void 0!==new hC(o).match(t,{allowOverflow:!0})}catch(a){return console.error(a),!0}return new RegExp("^(".concat(o,")")).test(t)}},{key:"getFormatFormat",value:function(e,t){return t?e.internationalFormat():e.format()}},{key:"chooseFormat",value:function(e){for(var t,r=this,n=function(){var n=t.value;return r.chosenFormat===n?"break":jC.test(r.getFormatFormat(n,e.international))?r.createTemplateForFormat(n,e)?(r.chosenFormat=n,"break"):(r.matchingFormats=r.matchingFormats.filter((function(e){return e!==n})),"continue"):"continue"},o=gC(this.matchingFormats.slice());!(t=o()).done;){var a=n();if("break"===a)break}return this.chosenFormat||this.resetFormat(),this.chosenFormat}},{key:"createTemplateForFormat",value:function(e,t){if(!(e.pattern().indexOf("|")>=0)){var r=this.getTemplateForFormat(e,t);return r?(this.setNationalNumberTemplate(r,t),!0):void 0}}},{key:"getSeparatorAfterNationalPrefix",value:function(e){return this.isNANP||e&&e.nationalPrefixFormattingRule()&&vC.test(e.nationalPrefixFormattingRule())?" ":""}},{key:"getInternationalPrefixBeforeCountryCallingCode",value:function(e,t){var r=e.IDDPrefix,n=e.missingPlus;return r?t&&!1===t.spacing?r:r+" ":n?"":"+"}},{key:"getTemplate",value:function(e){if(this.template){for(var t=-1,r=0,n=e.international?this.getInternationalPrefixBeforeCountryCallingCode(e,{spacing:!1}):"";r<n.length+e.getDigitsWithoutInternationalPrefix().length;)t=this.template.indexOf(KN,t+1),r++;return ZN(this.template,t+1)}}},{key:"setNationalNumberTemplate",value:function(e,t){this.nationalNumberTemplate=e,this.populatedNationalNumberTemplate=e,this.populatedNationalNumberTemplatePosition=-1,t.international?this.template=this.getInternationalPrefixBeforeCountryCallingCode(t).replace(/[\d\+]/g,KN)+YN(KN,t.callingCode.length)+" "+e:this.template=e}},{key:"getTemplateForFormat",value:function(e,t){var r=t.nationalSignificantNumber,n=t.international,o=t.nationalPrefix,a=t.complexPrefixBeforeNationalSignificantNumber,i=e.pattern();i=i.replace(wC(),"\\d").replace(kC(),"\\d");var s=xC.match(i)[0];if(!(r.length>s.length)){var l=new RegExp("^"+i+"$"),c=r.replace(/\d/g,"9");l.test(c)&&(s=c);var u,d=this.getFormatFormat(e,n);if(this.shouldTryNationalPrefixFormattingRule(e,{international:n,nationalPrefix:o})){var f=d.replace(SN,e.nationalPrefixFormattingRule());if(rC(e.nationalPrefixFormattingRule())===(o||"")+rC("$1")&&(d=f,u=!0,o))for(var p=o.length;p>0;)d=d.replace(/\d/,KN),p--}var h=s.replace(new RegExp(i),d).replace(new RegExp("9","g"),KN);return u||(a?h=YN(KN,a.length)+" "+h:o&&(h=YN(KN,o.length)+this.getSeparatorAfterNationalPrefix(e)+h)),n&&(h=CN(h)),h}}},{key:"formatNextNationalNumberDigits",value:function(e){var t=function(e,t,r){for(var n,o=VN(r.split(""));!(n=o()).done;){var a=n.value;if(e.slice(t+1).search(QN)<0)return;t=e.search(QN),e=e.replace(QN,a)}return[e,t]}(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition,e);if(t)return this.populatedNationalNumberTemplate=t[0],this.populatedNationalNumberTemplatePosition=t[1],ZN(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition+1);this.resetFormat()}},{key:"shouldTryNationalPrefixFormattingRule",value:function(e,t){var r=t.international,n=t.nationalPrefix;if(e.nationalPrefixFormattingRule()){var o=e.usesNationalPrefix();if(o&&n||!o&&!r)return!0}}}],r&&yC(t.prototype,r),n&&yC(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),CC=new RegExp("(["+jN+"])");function SC(e,t,r,n){if(t){var o=new Jj(n);o.selectNumberingPlan(t,r);var a=new RegExp(o.IDDPrefix());if(0===e.search(a)){var i=(e=e.slice(e.match(a)[0].length)).match(CC);if(!(i&&null!=i[1]&&i[1].length>0&&"0"===i[1]))return e}}}function EC(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var r=new RegExp("^(?:"+t.numberingPlan.nationalPrefixForParsing()+")"),n=r.exec(e);if(n){var o,a,i,s=n.length-1,l=s>0&&n[s];if(t.nationalPrefixTransformRule()&&l)o=e.replace(r,t.nationalPrefixTransformRule()),s>1&&(a=n[1]);else{var c=n[0];o=e.slice(c.length),l&&(a=n[1])}if(l){var u=e.indexOf(n[1]);e.slice(0,u)===t.numberingPlan.nationalPrefix()&&(i=t.numberingPlan.nationalPrefix())}else i=n[0];return{nationalNumber:o,nationalPrefix:i,carrierCode:a}}}return{nationalNumber:e}}function AC(e,t){var r=EC(e,t),n=r.carrierCode,o=r.nationalNumber;if(o!==e){if(!function(e,t,r){if(pN(e,r.nationalNumberPattern())&&!pN(t,r.nationalNumberPattern()))return!1;return!0}(e,o,t))return{nationalNumber:e};if(t.possibleLengths()&&!function(e,t){switch(uN(e,t)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}(o,t))return{nationalNumber:e}}return{nationalNumber:o,carrierCode:n}}function OC(e,t,r,n){var o=t?aN(t,n):r;if(0===e.indexOf(o)){(n=new Jj(n)).selectNumberingPlan(t,r);var a=e.slice(o.length),i=AC(a,n).nationalNumber,s=AC(e,n).nationalNumber;if(!pN(s,n.nationalNumberPattern())&&pN(i,n.nationalNumberPattern())||"TOO_LONG"===uN(s,n))return{countryCallingCode:o,number:a}}return{number:e}}function $C(e,t,r,n){if(!e)return{};var o;if("+"!==e[0]){var a=SC(e,t,r,n);if(!a||a===e){if(t||r){var i=OC(e,t,r,n),s=i.countryCallingCode,l=i.number;if(s)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:s,number:l}}return{number:e}}o=!0,e="+"+a}if("0"===e[1])return{};n=new Jj(n);for(var c=2;c-1<=kN&&c<=e.length;){var u=e.slice(1,c);if(n.hasCallingCode(u))return n.selectNumberingPlan(u),{countryCallingCodeSource:o?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:u,number:e.slice(c)};c++}return{}}function PC(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,a=[],i=!0,s=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(l){s=!0,o=l}finally{try{i||null==r.return||r.return()}finally{if(s)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return TC(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return TC(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function TC(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function IC(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var MC=new RegExp("^"+("["+NN+jN+"]+")+"$","i"),RC="(?:[+\uff0b]["+NN+jN+"]*|["+NN+jN+"]+)",LC=new RegExp("[^"+NN+jN+"]+.*$"),_C=/[^\d\[\]]/,DC=function(){function e(t){var r=t.defaultCountry,n=t.defaultCallingCode,o=t.metadata,a=t.onNationalSignificantNumberChange;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.defaultCountry=r,this.defaultCallingCode=n,this.metadata=o,this.onNationalSignificantNumberChange=a}var t,r,n;return t=e,r=[{key:"input",value:function(e,t){var r,n=function(e){var t=function(e){var t=function(e){var t,r=e.search(RC);if(!(r<0))return"+"===(e=e.slice(r))[0]&&(t=!0,e=e.slice(1)),e=e.replace(LC,""),t&&(e="+"+e),e}(e)||"";return"+"===t[0]?[t.slice(1),!0]:[t]}(e),r=PC(t,2),n=r[0],o=r[1];return MC.test(n)||(n=""),[n,o]}(e),o=PC(n,2),a=o[0],i=o[1],s=rC(a);return i&&(t.digits||(t.startInternationalNumber(),s||(r=!0))),s&&this.inputDigits(s,t),{digits:s,justLeadingPlus:r}}},{key:"inputDigits",value:function(e,t){var r=t.digits,n=r.length<3&&r.length+e.length>=3;if(t.appendDigits(e),n&&this.extractIddPrefix(t),this.isWaitingForCountryCallingCode(t)){if(!this.extractCountryCallingCode(t))return}else t.appendNationalSignificantNumberDigits(e);t.international||this.hasExtractedNationalSignificantNumber||this.extractNationalSignificantNumber(t.getNationalDigits(),(function(e){return t.update(e)}))}},{key:"isWaitingForCountryCallingCode",value:function(e){var t=e.international,r=e.callingCode;return t&&!r}},{key:"extractCountryCallingCode",value:function(e){var t=$C("+"+e.getDigitsWithoutInternationalPrefix(),this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),r=t.countryCallingCode,n=t.number;if(r)return e.setCallingCode(r),e.update({nationalSignificantNumber:n}),!0}},{key:"reset",value:function(e){if(e){this.hasSelectedNumberingPlan=!0;var t=e._nationalPrefixForParsing();this.couldPossiblyExtractAnotherNationalSignificantNumber=t&&_C.test(t)}else this.hasSelectedNumberingPlan=void 0,this.couldPossiblyExtractAnotherNationalSignificantNumber=void 0}},{key:"extractNationalSignificantNumber",value:function(e,t){if(this.hasSelectedNumberingPlan){var r=EC(e,this.metadata),n=r.nationalPrefix,o=r.nationalNumber,a=r.carrierCode;if(o!==e)return this.onExtractedNationalNumber(n,a,o,e,t),!0}}},{key:"extractAnotherNationalSignificantNumber",value:function(e,t,r){if(!this.hasExtractedNationalSignificantNumber)return this.extractNationalSignificantNumber(e,r);if(this.couldPossiblyExtractAnotherNationalSignificantNumber){var n=EC(e,this.metadata),o=n.nationalPrefix,a=n.nationalNumber,i=n.carrierCode;if(a!==t)return this.onExtractedNationalNumber(o,i,a,e,r),!0}}},{key:"onExtractedNationalNumber",value:function(e,t,r,n,o){var a,i,s=n.lastIndexOf(r);if(s>=0&&s===n.length-r.length){i=!0;var l=n.slice(0,s);l!==e&&(a=l)}o({nationalPrefix:e,carrierCode:t,nationalSignificantNumber:r,nationalSignificantNumberMatchesInput:i,complexPrefixBeforeNationalSignificantNumber:a}),this.hasExtractedNationalSignificantNumber=!0,this.onNationalSignificantNumberChange()}},{key:"reExtractNationalSignificantNumber",value:function(e){return!!this.extractAnotherNationalSignificantNumber(e.getNationalDigits(),e.nationalSignificantNumber,(function(t){return e.update(t)}))||(this.extractIddPrefix(e)||this.fixMissingPlus(e)?(this.extractCallingCodeAndNationalSignificantNumber(e),!0):void 0)}},{key:"extractIddPrefix",value:function(e){var t=e.international,r=e.IDDPrefix,n=e.digits;if(e.nationalSignificantNumber,!t&&!r){var o=SC(n,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata);return void 0!==o&&o!==n?(e.update({IDDPrefix:n.slice(0,n.length-o.length)}),this.startInternationalNumber(e,{country:void 0,callingCode:void 0}),!0):void 0}}},{key:"fixMissingPlus",value:function(e){if(!e.international){var t=OC(e.digits,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),r=t.countryCallingCode;if(t.number,r)return e.update({missingPlus:!0}),this.startInternationalNumber(e,{country:e.country,callingCode:r}),!0}}},{key:"startInternationalNumber",value:function(e,t){var r=t.country,n=t.callingCode;e.startInternationalNumber(r,n),e.nationalSignificantNumber&&(e.resetNationalSignificantNumber(),this.onNationalSignificantNumberChange(),this.hasExtractedNationalSignificantNumber=void 0)}},{key:"extractCallingCodeAndNationalSignificantNumber",value:function(e){this.extractCountryCallingCode(e)&&this.extractNationalSignificantNumber(e.getNationalDigits(),(function(t){return e.update(t)}))}}],r&&IC(t.prototype,r),n&&IC(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function BC(e,t){var r="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"===typeof e)return zC(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zC(e,t)}(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function zC(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function FC(e,t){var r=t.countries,n=t.defaultCountry,o=t.metadata;o=new Jj(o);for(var a,i=[],s=BC(r);!(a=s()).done;){var l=a.value;if(o.country(l),o.leadingDigits()){if(e&&0===e.search(o.leadingDigits()))return l}else if(bN({phone:e,country:l},void 0,o.metadata)){if(!n)return l;if(l===n)return l;i.push(l)}}if(i.length>0)return i[0]}var qC=!1;function HC(e,t){var r=t.nationalNumber,n=t.defaultCountry,o=t.metadata;if(qC&&o.isNonGeographicCallingCode(e))return"001";var a=o.getCountryCodesForCallingCode(e);return a?1===a.length?a[0]:FC(r,{countries:a,defaultCountry:n,metadata:o.metadata}):void 0}function UC(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,a=[],i=!0,s=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(l){s=!0,o=l}finally{try{i||null==r.return||r.return()}finally{if(s)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return WC(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return WC(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function WC(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function VC(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var GC=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.metadata=new Jj(r);var n=UC(this.getCountryAndCallingCode(t),2),o=n[0],a=n[1];this.defaultCountry=o,this.defaultCallingCode=a,this.reset()}var t,r,n;return t=e,r=[{key:"getCountryAndCallingCode",value:function(e){var t,r;return e&&(Wj(e)?(t=e.defaultCountry,r=e.defaultCallingCode):t=e),t&&!this.metadata.hasCountry(t)&&(t=void 0),[t,r]}},{key:"input",value:function(e){var t=this.parser.input(e,this.state),r=t.digits;if(t.justLeadingPlus)this.formattedOutput="+";else if(r){var n;if(this.determineTheCountryIfNeeded(),this.state.nationalSignificantNumber&&this.formatter.narrowDownMatchingFormats(this.state),this.metadata.hasSelectedNumberingPlan()&&(n=this.formatter.format(r,this.state)),void 0===n&&this.parser.reExtractNationalSignificantNumber(this.state)){this.determineTheCountryIfNeeded();var o=this.state.getNationalDigits();o&&(n=this.formatter.format(o,this.state))}this.formattedOutput=n?this.getFullNumber(n):this.getNonFormattedNumber()}return this.formattedOutput}},{key:"reset",value:function(){var e=this;return this.state=new WN({onCountryChange:function(t){e.country=t},onCallingCodeChange:function(t,r){e.metadata.selectNumberingPlan(r,t),e.formatter.reset(e.metadata.numberingPlan,e.state),e.parser.reset(e.metadata.numberingPlan)}}),this.formatter=new NC({state:this.state,metadata:this.metadata}),this.parser=new DC({defaultCountry:this.defaultCountry,defaultCallingCode:this.defaultCallingCode,metadata:this.metadata,state:this.state,onNationalSignificantNumberChange:function(){e.determineTheCountryIfNeeded(),e.formatter.reset(e.metadata.numberingPlan,e.state)}}),this.state.reset({country:this.defaultCountry,callingCode:this.defaultCallingCode}),this.formattedOutput="",this}},{key:"isInternational",value:function(){return this.state.international}},{key:"getCallingCode",value:function(){if(this.isInternational())return this.state.callingCode}},{key:"getCountryCallingCode",value:function(){return this.getCallingCode()}},{key:"getCountry",value:function(){if(this.state.digits)return this._getCountry()}},{key:"_getCountry",value:function(){var e=this.state.country;return e}},{key:"determineTheCountryIfNeeded",value:function(){this.state.country&&!this.isCountryCallingCodeAmbiguous()||this.determineTheCountry()}},{key:"getFullNumber",value:function(e){var t=this;if(this.isInternational()){var r=function(e){return t.formatter.getInternationalPrefixBeforeCountryCallingCode(t.state,{spacing:!!e})+e},n=this.state.callingCode;return r(n?e?"".concat(n," ").concat(e):n:"".concat(this.state.getDigitsWithoutInternationalPrefix()))}return e}},{key:"getNonFormattedNationalNumberWithPrefix",value:function(){var e=this.state,t=e.nationalSignificantNumber,r=e.complexPrefixBeforeNationalSignificantNumber,n=e.nationalPrefix,o=t,a=r||n;return a&&(o=a+o),o}},{key:"getNonFormattedNumber",value:function(){var e=this.state.nationalSignificantNumberMatchesInput;return this.getFullNumber(e?this.getNonFormattedNationalNumberWithPrefix():this.state.getNationalDigits())}},{key:"getNonFormattedTemplate",value:function(){var e=this.getNonFormattedNumber();if(e)return e.replace(/[\+\d]/g,KN)}},{key:"isCountryCallingCodeAmbiguous",value:function(){var e=this.state.callingCode,t=this.metadata.getCountryCodesForCallingCode(e);return t&&t.length>1}},{key:"determineTheCountry",value:function(){this.state.setCountry(HC(this.isInternational()?this.state.callingCode:this.defaultCallingCode,{nationalNumber:this.state.nationalSignificantNumber,defaultCountry:this.defaultCountry,metadata:this.metadata}))}},{key:"getNumberValue",value:function(){var e=this.state,t=e.digits,r=e.callingCode,n=e.country,o=e.nationalSignificantNumber;if(t)return this.isInternational()?r?"+"+r+o:"+"+t:n||r?"+"+(n?this.metadata.countryCallingCode():r)+o:void 0}},{key:"getNumber",value:function(){var e=this.state,t=e.nationalSignificantNumber,r=e.carrierCode,n=e.callingCode,o=this._getCountry();if(t&&(o||n)){if(o&&o===this.defaultCountry){var a=new Jj(this.metadata.metadata);a.selectNumberingPlan(o);var i=a.numberingPlan.callingCode(),s=this.metadata.getCountryCodesForCallingCode(i);if(s.length>1){var l=FC(t,{countries:s,defaultCountry:this.defaultCountry,metadata:this.metadata.metadata});l&&(o=l)}}var c=new qN(o||n,t,this.metadata.metadata);return r&&(c.carrierCode=r),c}}},{key:"isPossible",value:function(){var e=this.getNumber();return!!e&&e.isPossible()}},{key:"isValid",value:function(){var e=this.getNumber();return!!e&&e.isValid()}},{key:"getNationalNumber",value:function(){return this.state.nationalSignificantNumber}},{key:"getChars",value:function(){return(this.state.international?"+":"")+this.state.digits}},{key:"getTemplate",value:function(){return this.formatter.getTemplate(this.state)||this.getNonFormattedTemplate()||""}}],r&&VC(t.prototype,r),n&&VC(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function KC(e){var t=e.inputFormat,r=e.country,n=e.metadata;return"NATIONAL_PART_OF_INTERNATIONAL"===t?"+".concat(aN(r,n)):""}function QC(e,t){return t&&" "===(e=e.slice(t.length))[0]&&(e=e.slice(1)),e}function YC(e,t){var r="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"===typeof e)return ZC(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ZC(e,t)}(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ZC(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function JC(e){for(var t,r="",n=YC(e.split(""));!(t=n()).done;){r+=XC(t.value,r)||""}return r}function XC(e,t,r){return"+"===e?t?void("function"===typeof r&&r("end")):"+":tC(e)}function eS(e,t,r){if(!r||!r.ignoreRest){return XC(e,t,(function(e){if(r&&"end"===e)r.ignoreRest=!0}))}}function tS(e){var t=e.onKeyDown,r=e.inputFormat;return(0,n.useCallback)((function(e){e.keyCode===rS&&"INTERNATIONAL"===r&&e.target instanceof HTMLInputElement&&e.target.selectionStart===nS.length?e.preventDefault():t&&t(e)}),[t,r])}var rS=8,nS="+",oS=["onKeyDown","country","inputFormat","metadata"];function aS(){return aS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},aS.apply(this,arguments)}function iS(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}const sS=function(e){function t(t,r){var o=t.onKeyDown,a=t.country,i=t.inputFormat,s=t.metadata,l=void 0===s?e:s,c=iS(t,oS),u=(0,n.useCallback)((function(e){var t=new GC(a,l),r=KC({inputFormat:i,country:a,metadata:l}),n=t.input(r+e),o=t.getTemplate();return r&&(n=QC(n,r),o&&(o=QC(o,r))),{text:n,template:o}}),[a,l]),d=tS({onKeyDown:o,inputFormat:i});return n.createElement(Fj,aS({},c,{ref:r,parse:eS,format:u,onKeyDown:d}))}return(t=n.forwardRef(t)).propTypes={value:kj.string.isRequired,onChange:kj.func.isRequired,onKeyDown:kj.func,country:kj.string,inputFormat:kj.oneOf(["INTERNATIONAL","NATIONAL_PART_OF_INTERNATIONAL","NATIONAL","INTERNATIONAL_OR_NATIONAL"]).isRequired,metadata:kj.object},t}();var lS=["value","onChange","onKeyDown","country","inputFormat","metadata","inputComponent"];function cS(){return cS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},cS.apply(this,arguments)}function uS(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}const dS=function(e){function t(t,r){var o=t.value,a=t.onChange,i=t.onKeyDown,s=t.country,l=t.inputFormat,c=t.metadata,u=void 0===c?e:c,d=t.inputComponent,f=void 0===d?"input":d,p=uS(t,lS),h=KC({inputFormat:l,country:s,metadata:u}),m=(0,n.useCallback)((function(e){var t=JC(e.target.value);t===o&&(0===fS(h,t,s,u).indexOf(e.target.value)&&(t=t.slice(0,-1)));a(t)}),[h,o,a,s,u]),g=tS({onKeyDown:i,inputFormat:l});return n.createElement(f,cS({},p,{ref:r,value:fS(h,o,s,u),onChange:m,onKeyDown:g}))}return(t=n.forwardRef(t)).propTypes={value:kj.string.isRequired,onChange:kj.func.isRequired,onKeyDown:kj.func,country:kj.string,inputFormat:kj.oneOf(["INTERNATIONAL","NATIONAL_PART_OF_INTERNATIONAL","NATIONAL","INTERNATIONAL_OR_NATIONAL"]).isRequired,metadata:kj.object,inputComponent:kj.elementType},t}();function fS(e,t,r,n){return QC(function(e,t,r){return r||(r=t,t=void 0),new GC(t,r).input(e)}(e+t,r,n),e)}function pS(e){return String.fromCodePoint(127397+e.toUpperCase().charCodeAt(0))}var hS=["value","onChange","options","disabled","readOnly"],mS=["value","options","className","iconComponent","getIconAspectRatio","arrowComponent","unicodeFlags"];function gS(e,t){var r="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"===typeof e)return bS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return bS(e,t)}(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function bS(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function yS(){return yS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},yS.apply(this,arguments)}function xS(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function vS(e){var t=e.value,r=e.onChange,o=e.options,a=e.disabled,i=e.readOnly,s=xS(e,hS),l=(0,n.useCallback)((function(e){var t=e.target.value;r("ZZ"===t?void 0:t)}),[r]);(0,n.useMemo)((function(){return NS(o,t)}),[o,t]);return n.createElement("select",yS({},s,{disabled:a||i,readOnly:i,value:t||"ZZ",onChange:l}),o.map((function(e){var t=e.value,r=e.label,o=e.divider;return n.createElement("option",{key:o?"|":t||"ZZ",value:o?"|":t||"ZZ",disabled:!!o,style:o?wS:void 0},r)})))}vS.propTypes={value:kj.string,onChange:kj.func.isRequired,options:kj.arrayOf(kj.shape({value:kj.string,label:kj.string,divider:kj.bool})).isRequired,disabled:kj.bool,readOnly:kj.bool};var wS={fontSize:"1px",backgroundColor:"currentColor",color:"inherit"};function kS(e){var t,r=e.value,o=e.options,a=e.className,i=e.iconComponent,s=(e.getIconAspectRatio,e.arrowComponent),l=void 0===s?jS:s,c=e.unicodeFlags,u=xS(e,mS),d=(0,n.useMemo)((function(){return NS(o,r)}),[o,r]);return n.createElement("div",{className:"PhoneInputCountry"},n.createElement(vS,yS({},u,{value:r,options:o,className:Ur("PhoneInputCountrySelect",a)})),d&&(c&&r?n.createElement("div",{className:"PhoneInputCountryIconUnicode"},pS((t=r)[0])+pS(t[1])):n.createElement(i,{"aria-hidden":!0,country:r,label:d.label,aspectRatio:c?1:void 0})),n.createElement(l,null))}function jS(){return n.createElement("div",{className:"PhoneInputCountrySelectArrow"})}function NS(e,t){for(var r,n=gS(e);!(r=n()).done;){var o=r.value;if(!o.divider&&CS(o.value,t))return o}}function CS(e,t){return void 0===e||null===e?void 0===t||null===t:e===t}kS.propTypes={iconComponent:kj.elementType,arrowComponent:kj.elementType,unicodeFlags:kj.bool};var SS=["country","countryName","flags","flagUrl"];function ES(){return ES=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ES.apply(this,arguments)}function AS(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function OS(e){var t=e.country,r=e.countryName,o=e.flags,a=e.flagUrl,i=AS(e,SS);return o&&o[t]?o[t]({title:r}):n.createElement("img",ES({},i,{alt:r,role:r?void 0:"presentation",src:a.replace("{XX}",t).replace("{xx}",t.toLowerCase())}))}OS.propTypes={country:kj.string.isRequired,countryName:kj.string.isRequired,flags:kj.objectOf(kj.elementType),flagUrl:kj.string.isRequired};var $S=["aspectRatio"],PS=["title"],TS=["title"];function IS(){return IS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},IS.apply(this,arguments)}function MS(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function RS(e){var t=e.aspectRatio,r=MS(e,$S);return 1===t?n.createElement(_S,r):n.createElement(LS,r)}function LS(e){var t=e.title,r=MS(e,PS);return n.createElement("svg",IS({},r,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 75 50"}),n.createElement("title",null,t),n.createElement("g",{className:"PhoneInputInternationalIconGlobe",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeMiterlimit:"10"},n.createElement("path",{strokeLinecap:"round",d:"M47.2,36.1C48.1,36,49,36,50,36c7.4,0,14,1.7,18.5,4.3"}),n.createElement("path",{d:"M68.6,9.6C64.2,12.3,57.5,14,50,14c-7.4,0-14-1.7-18.5-4.3"}),n.createElement("line",{x1:"26",y1:"25",x2:"74",y2:"25"}),n.createElement("line",{x1:"50",y1:"1",x2:"50",y2:"49"}),n.createElement("path",{strokeLinecap:"round",d:"M46.3,48.7c1.2,0.2,2.5,0.3,3.7,0.3c13.3,0,24-10.7,24-24S63.3,1,50,1S26,11.7,26,25c0,2,0.3,3.9,0.7,5.8"}),n.createElement("path",{strokeLinecap:"round",d:"M46.8,48.2c1,0.6,2.1,0.8,3.2,0.8c6.6,0,12-10.7,12-24S56.6,1,50,1S38,11.7,38,25c0,1.4,0.1,2.7,0.2,4c0,0.1,0,0.2,0,0.2"})),n.createElement("path",{className:"PhoneInputInternationalIconPhone",stroke:"none",fill:"currentColor",d:"M12.4,17.9c2.9-2.9,5.4-4.8,0.3-11.2S4.1,5.2,1.3,8.1C-2,11.4,1.1,23.5,13.1,35.6s24.3,15.2,27.5,11.9c2.8-2.8,7.8-6.3,1.4-11.5s-8.3-2.6-11.2,0.3c-2,2-7.2-2.2-11.7-6.7S10.4,19.9,12.4,17.9z"}))}function _S(e){var t=e.title,r=MS(e,TS);return n.createElement("svg",IS({},r,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"}),n.createElement("title",null,t),n.createElement("g",{className:"PhoneInputInternationalIconGlobe",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeLinecap:"round"},n.createElement("path",{d:"M8.45,13A21.44,21.44,0,1,1,37.08,41.56"}),n.createElement("path",{d:"M19.36,35.47a36.9,36.9,0,0,1-2.28-13.24C17.08,10.39,21.88.85,27.8.85s10.72,9.54,10.72,21.38c0,6.48-1.44,12.28-3.71,16.21"}),n.createElement("path",{d:"M17.41,33.4A39,39,0,0,1,27.8,32.06c6.62,0,12.55,1.5,16.48,3.86"}),n.createElement("path",{d:"M44.29,8.53c-3.93,2.37-9.86,3.88-16.49,3.88S15.25,10.9,11.31,8.54"}),n.createElement("line",{x1:"27.8",y1:"0.85",x2:"27.8",y2:"34.61"}),n.createElement("line",{x1:"15.2",y1:"22.23",x2:"49.15",y2:"22.23"})),n.createElement("path",{className:"PhoneInputInternationalIconPhone",stroke:"transparent",fill:"currentColor",d:"M9.42,26.64c2.22-2.22,4.15-3.59.22-8.49S3.08,17,.93,19.17c-2.49,2.48-.13,11.74,9,20.89s18.41,11.5,20.89,9c2.15-2.15,5.91-4.77,1-8.71s-6.27-2-8.49.22c-1.55,1.55-5.48-1.69-8.86-5.08S7.87,28.19,9.42,26.64Z"}))}function DS(e){(function(e){if(e.length<2)return!1;if("+"!==e[0])return!1;for(var t=1;t<e.length;){var r=e.charCodeAt(t);if(!(r>=48&&r<=57))return!1;t++}return!0})(e)||console.error("[react-phone-number-input] Expected the initial `value` to be a E.164 phone number. Got",e)}function BS(e,t){var r="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"===typeof e)return zS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zS(e,t)}(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function zS(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function FS(e,t){return!!iN(e,t)||(console.error("Country not found: ".concat(e)),!1)}function qS(e,t){return e&&0===(e=e.filter((function(e){return FS(e,t)}))).length&&(e=void 0),e}function HS(e){return new Jj(e).getCountries()}RS.propTypes={title:kj.string.isRequired,aspectRatio:kj.number},LS.propTypes={title:kj.string.isRequired},_S.propTypes={title:kj.string.isRequired};var US=["country","label","aspectRatio"];function WS(){return WS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},WS.apply(this,arguments)}function VS(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function GS(e){var t=e.flags,r=e.flagUrl,o=e.flagComponent,a=e.internationalIcon;function i(e){var i=e.country,s=e.label,l=e.aspectRatio,c=VS(e,US),u=a===RS?l:void 0;return n.createElement("div",WS({},c,{className:Ur("PhoneInputCountryIcon",{"PhoneInputCountryIcon--square":1===u,"PhoneInputCountryIcon--border":i})}),i?n.createElement(o,{country:i,countryName:s,flags:t,flagUrl:r,className:"PhoneInputCountryIconImg"}):n.createElement(a,{title:s,aspectRatio:u,className:"PhoneInputCountryIconImg"}))}return i.propTypes={country:kj.string,label:kj.string.isRequired,aspectRatio:kj.number},i}GS({flagUrl:"https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg",flagComponent:OS,internationalIcon:RS});function KS(e,t){var r="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"===typeof e)return QS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return QS(e,t)}(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function QS(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function YS(e,t){for(var r,n=KS(e);!(r=n()).done;){var o=r.value;o&&ZS(o,t)}}function ZS(e,t){"function"===typeof e?e(t):e.current=t}function JS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function XS(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eE(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,a=[],i=!0,s=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(l){s=!0,o=l}finally{try{i||null==r.return||r.return()}finally{if(s)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return tE(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return tE(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tE(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function rE(e){var t,r,n,o=eE(Array.prototype.slice.call(e),4),a=o[0],i=o[1],s=o[2],l=o[3];if("string"!==typeof a)throw new TypeError("A text for parsing must be a string.");if(t=a,i&&"string"!==typeof i){if(!Wj(i))throw new Error("Invalid second argument: ".concat(i));s?(r=i,n=s):n=i}else l?(r=s,n=l):(r=void 0,n=s),i&&(r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?JS(Object(r),!0).forEach((function(t){XS(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):JS(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({defaultCountry:i},r));return{text:t,options:r,metadata:n}}function nE(e){return nE="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},nE(e)}function oE(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function aE(e){var t=cE();return function(){var r,n=dE(e);if(t){var o=dE(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===nE(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return iE(e)}(this,r)}}function iE(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sE(e){var t="function"===typeof Map?new Map:void 0;return sE=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return lE(e,arguments,dE(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),uE(r,e)},sE(e)}function lE(e,t,r){return lE=cE()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&uE(o,r.prototype),o},lE.apply(null,arguments)}function cE(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function uE(e,t){return uE=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},uE(e,t)}function dE(e){return dE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},dE(e)}var fE=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&uE(e,t)}(a,e);var t,r,n,o=aE(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),t=o.call(this,e),Object.setPrototypeOf(iE(t),a.prototype),t.name=t.constructor.name,t}return t=a,r&&oE(t.prototype,r),n&&oE(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}(sE(Error)),pE=function(e){return"([".concat(jN,"]{1,").concat(e,"})")};function hE(e){var t="[ \xa0\\t,]*",r="[:\\.\uff0e]?[ \xa0\\t,-]*",n="#?",o="[ \xa0\\t]*";return";ext="+pE("20")+"|"+(t+"(?:e?xt(?:ensi(?:o\u0301?|\xf3))?n?|\uff45?\uff58\uff54\uff4e?|\u0434\u043e\u0431|anexo)"+r+pE("20")+n)+"|"+(t+"(?:[x\uff58#\uff03~\uff5e]|int|\uff49\uff4e\uff54)"+r+pE("9")+n)+"|"+("[- ]+"+pE("6")+"#")+"|"+(o+"(?:,{2}|;)"+r+pE("15")+n)+"|"+(o+"(?:,)+"+r+pE("9")+n)}var mE="["+jN+"]{"+vN+"}",gE="[+\uff0b]{0,1}(?:["+NN+"]*["+jN+"]){3,}["+NN+jN+"]*",bE=new RegExp("^[+\uff0b]{0,1}(?:["+NN+"]*["+jN+"]){1,2}$","i"),yE=gE+"(?:"+hE()+")?",xE=new RegExp("^"+mE+"$|^"+yE+"$","i");var vE=new RegExp("(?:"+hE()+")$","i");var wE="+",kE="(["+jN+"]|[\\-\\.\\(\\)]?)",jE=new RegExp("^\\"+wE+kE+"*["+jN+"]"+kE+"*$","g"),NE=new RegExp("^("+("["+jN+"]+((\\-)*["+jN+"])*")+"\\.)*"+("[a-zA-Z]+((\\-)*["+jN+"])*")+"\\.?$","g"),CE="tel:",SE=";phone-context=",EE=";isub=";function AE(e,t){var r,n=t.extractFormattedPhoneNumber,o=function(e){var t=e.indexOf(SE);if(t<0)return null;var r=t+SE.length;if(r>=e.length)return"";var n=e.indexOf(";",r);return n>=0?e.substring(r,n):e.substring(r)}(e);if(!function(e){return null===e||0!==e.length&&(jE.test(e)||NE.test(e))}(o))throw new fE("NOT_A_NUMBER");if(null===o)r=n(e)||"";else{r="",o.charAt(0)===wE&&(r+=o);var a,i=e.indexOf(CE);a=i>=0?i+CE.length:0;var s=e.indexOf(SE);r+=e.substring(a,s)}var l=r.indexOf(EE);if(l>0&&(r=r.substring(0,l)),""!==r)return r}var OE=250,$E=new RegExp("[+\uff0b"+jN+"]"),PE=new RegExp("[^"+jN+"#]+$"),TE=!1;function IE(e,t,r){if(t=t||{},r=new Jj(r),t.defaultCountry&&!r.hasCountry(t.defaultCountry)){if(t.v2)throw new fE("INVALID_COUNTRY");throw new Error("Unknown country: ".concat(t.defaultCountry))}var n=function(e,t,r){var n=AE(e,{extractFormattedPhoneNumber:function(e){return function(e,t,r){if(!e)return;if(e.length>OE){if(r)throw new fE("TOO_LONG");return}if(!1===t)return e;var n=e.search($E);if(n<0)return;return e.slice(n).replace(PE,"")}(e,r,t)}});if(!n)return{};if(!function(e){return e.length>=vN&&xE.test(e)}(n))return function(e){return bE.test(e)}(n)?{error:"TOO_SHORT"}:{};var o=function(e){var t=e.search(vE);if(t<0)return{};for(var r=e.slice(0,t),n=e.match(vE),o=1;o<n.length;){if(n[o])return{number:r,ext:n[o]};o++}}(n);if(o.ext)return o;return{number:n}}(e,t.v2,t.extract),o=n.number,a=n.ext,i=n.error;if(!o){if(t.v2){if("TOO_SHORT"===i)throw new fE("TOO_SHORT");throw new fE("NOT_A_NUMBER")}return{}}var s=function(e,t,r,n){var o,a=$C(JC(e),t,r,n.metadata),i=a.countryCallingCodeSource,s=a.countryCallingCode,l=a.number;if(s)n.selectNumberingPlan(s);else{if(!l||!t&&!r)return{};n.selectNumberingPlan(t,r),t?o=t:TE&&n.isNonGeographicCallingCode(r)&&(o="001"),s=r||aN(t,n.metadata)}if(!l)return{countryCallingCodeSource:i,countryCallingCode:s};var c=AC(JC(l),n),u=c.nationalNumber,d=c.carrierCode,f=HC(s,{nationalNumber:u,defaultCountry:t,metadata:n});f&&(o=f,"001"===f||n.country(o));return{country:o,countryCallingCode:s,countryCallingCodeSource:i,nationalNumber:u,carrierCode:d}}(o,t.defaultCountry,t.defaultCallingCode,r),l=s.country,c=s.nationalNumber,u=s.countryCallingCode,d=s.countryCallingCodeSource,f=s.carrierCode;if(!r.hasSelectedNumberingPlan()){if(t.v2)throw new fE("INVALID_COUNTRY");return{}}if(!c||c.length<vN){if(t.v2)throw new fE("TOO_SHORT");return{}}if(c.length>wN){if(t.v2)throw new fE("TOO_LONG");return{}}if(t.v2){var p=new qN(u,c,r.metadata);return l&&(p.country=l),f&&(p.carrierCode=f),a&&(p.ext=a),p.__countryCallingCodeSource=d,p}var h=!!(t.extended?r.hasSelectedNumberingPlan():l)&&pN(c,r.nationalNumberPattern());return t.extended?{country:l,countryCallingCode:u,carrierCode:f,valid:h,possible:!!h||!(!0!==t.extended||!r.possibleLengths()||!fN(c,r)),phone:c,ext:a}:h?function(e,t,r){var n={country:e,phone:t};r&&(n.ext=r);return n}(l,c,a):{}}function ME(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function RE(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ME(Object(r),!0).forEach((function(t){LE(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ME(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function LE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function DE(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_E(Object(r),!0).forEach((function(t){BE(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_E(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function BE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zE(e,t,r){t&&t.defaultCountry&&!iN(t.defaultCountry,r)&&(t=DE(DE({},t),{},{defaultCountry:void 0}));try{return function(e,t,r){return IE(e,RE(RE({},t),{},{v2:!0}),r)}(e,t,r)}catch(n){if(!(n instanceof fE))throw n}}function FE(e,t){return"+"+aN(e,t)}function qE(e,t){return function(){var e=rE(arguments);return zE(e.text,e.options,e.metadata)}(e||"",t)}function HE(e,t){var r=t.prevCountry,n=t.newCountry,o=t.metadata,a=t.useNationalFormat;if(r===n)return e;if(!e)return a?"":n?FE(n,o):"";if(n){if("+"===e[0]){if(a)return 0===e.indexOf("+"+aN(n,o))?function(e,t,r){if(t){var n="+"+aN(t,r);if(e.length<n.length){if(0===n.indexOf(e))return""}else if(0===e.indexOf(n))return e.slice(n.length)}for(var o=0,a=Object.keys(r.country_calling_codes);o<a.length;o++){var i=a[o];if(1===e.indexOf(i))return e.slice(1+i.length)}return""}(e,n,o):"";if(r){var i=FE(n,o);return 0===e.indexOf(i)?e:i}var s=FE(n,o);return 0===e.indexOf(s)?e:s}}else if("+"!==e[0])return UE(e,r,o)||"";return e}function UE(e,t,r){if(e){if("+"===e[0]){if("+"===e)return;var n=new GC(t,r);return n.input(e),n.getNumberValue()}if(t){var o=QE(e,t,r);return"+".concat(aN(t,r)).concat(o||"")}}}function WE(e,t,r){var n=QE(e,t,r);if(n){var o=n.length-function(e,t){return t=new Jj(t),t.selectNumberingPlan(e),t.numberingPlan.possibleLengths()[t.numberingPlan.possibleLengths().length-1]}(t,r);if(o>0)return e.slice(0,e.length-o)}return e}function VE(e,t){var r=t.country,n=t.countries,o=t.defaultCountry,a=t.latestCountrySelectedByUser,i=t.required,s=t.metadata;if("+"===e)return r;var l=function(e,t){var r=new GC(null,t);return r.input(e),r.getCountry()}(e,s);if(l)return!n||n.indexOf(l)>=0?l:void 0;if(r)if(YE(e,r,s)){if(a&&YE(e,a,s))return a;if(o&&YE(e,o,s))return o;if(!i)return}else if(!i)return;return r}function GE(e,t,r){if(0===e.indexOf(FE(t,r))){var n=new GC(t,r);n.input(e);var o=n.getNumber();return o?o.formatNational().replace(/\D/g,""):""}return e.replace(/\D/g,"")}function KE(e,t,r){return String.prototype.localeCompare?e.localeCompare(t,r):e<t?-1:e>t?1:0}function QE(e,t,r){var n=new GC(t,r);n.input(e);var o=n.getNumber();return o&&o.nationalNumber}function YE(e,t,r){for(var n=FE(t,r),o=0;o<e.length&&o<n.length;){if(e[o]!==n[o])return!1;o++}return!0}function ZE(e){var t=e.value,r=e.phoneNumber,n=e.defaultCountry,o=e.international,a=e.useNationalFormat,i=e.metadata;return(!1===o||a)&&r&&r.country?function(e){return e.formatNational().replace(/\D/g,"")}(r):!t&&o&&n?FE(n,i):t}function JE(e){return JE="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},JE(e)}function XE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function eA(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?XE(Object(r),!0).forEach((function(t){tA(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):XE(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function tA(e,t,r){return t=function(e){var t=function(e,t){if("object"!=JE(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=JE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==JE(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rA(e,t){return null===e&&(e=void 0),null===t&&(t=void 0),e===t}var nA=["name","disabled","readOnly","autoComplete","style","className","inputRef","inputComponent","numberInputProps","smartCaret","countrySelectComponent","countrySelectProps","containerComponent","containerComponentProps","defaultCountry","countries","countryOptionsOrder","labels","flags","flagComponent","flagUrl","addInternationalOption","internationalIcon","displayInitialValueAsLocalNumber","initialValueFormat","onCountryChange","limitMaxLength","countryCallingCodeEditable","focusInputOnCountrySelection","reset","metadata","international","locales"];function oA(e){return oA="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},oA(e)}function aA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function iA(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?aA(Object(r),!0).forEach((function(t){hA(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aA(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function sA(){return sA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},sA.apply(this,arguments)}function lA(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function cA(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,mA(n.key),n)}}function uA(e,t,r){return t=fA(t),function(e,t){if(t&&("object"===oA(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,dA()?Reflect.construct(t,r||[],fA(e).constructor):t.apply(e,r))}function dA(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(dA=function(){return!!e})()}function fA(e){return fA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},fA(e)}function pA(e,t){return pA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},pA(e,t)}function hA(e,t,r){return(t=mA(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mA(e){var t=function(e,t){if("object"!=oA(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=oA(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==oA(t)?t:t+""}var gA=function(e){function t(e){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),hA(r=uA(this,t,[e]),"setInputRef",(function(e){YS([r.props.inputRef,r.inputRef],e)})),hA(r,"isCountrySupportedWithError",(function(e){return FS(e,r.props.metadata)})),hA(r,"onCountryChange",(function(e){var t=r.props,n=t.international,o=t.metadata,a=t.onChange,i=t.focusInputOnCountrySelection,s=r.state,l=HE(s.phoneDigits,{prevCountry:s.country,newCountry:e,metadata:o,useNationalFormat:!n}),c=UE(l,e,o);i&&r.inputRef.current.focus(),r.setState({country:e,latestCountrySelectedByUser:e,hasUserSelectedACountry:!0,phoneDigits:l,value:c},(function(){a(c)}))})),hA(r,"onChange",(function(e){var t=r.props,n=t.defaultCountry,o=t.onChange,a=t.addInternationalOption,i=t.international,s=t.limitMaxLength,l=t.countryCallingCodeEditable,c=t.metadata,u=r.state,d=u.countries,f=u.phoneDigits,p=u.country,h=u.latestCountrySelectedByUser,m=function(e,t){var r,n=t.prevPhoneDigits,o=t.country,a=t.defaultCountry,i=t.latestCountrySelectedByUser,s=t.countryRequired,l=t.getAnyCountry,c=t.countries,u=t.international,d=t.limitMaxLength,f=t.countryCallingCodeEditable,p=t.metadata;if(u&&!1===f&&o){var h,m=FE(o,p);if(0!==e.indexOf(m))return e&&"+"!==e[0]?h=UE(e=m+e,o,p):e=m,{phoneDigits:e,value:h,country:o}}return!1===u&&o&&e&&"+"===e[0]&&(e=GE(e,o,p)),e&&o&&d&&(e=WE(e,o,p)),!e||"+"===e[0]||o&&!u||(e="+"+e),!e&&n&&"+"===n[0]&&(o=u?void 0:a),"+"===e&&n&&"+"===n[0]&&n.length>1&&(o=void 0),e&&(r="+"===e[0]&&("+"===e||o&&0===FE(o,p).indexOf(e))?void 0:UE(e,o,p)),r&&(o=VE(r,{country:o,countries:c,defaultCountry:a,latestCountrySelectedByUser:i,required:!1,metadata:p}),!1===u&&o&&e&&"+"===e[0]&&(r=UE(e=GE(e,o,p),o,p))),!o&&s&&(o=a||l()),{phoneDigits:e,country:o,value:r}}(e,{prevPhoneDigits:f,country:p,countryRequired:!a,defaultCountry:n,latestCountrySelectedByUser:h,getAnyCountry:function(){return r.getFirstSupportedCountry({countries:d})},countries:d,international:i,limitMaxLength:s,countryCallingCodeEditable:l,metadata:c}),g=m.phoneDigits,b=m.country,y=m.value,x={phoneDigits:g,value:y,country:b};h&&y&&!YE(y,h,c)&&(x.latestCountrySelectedByUser=void 0),!1===l&&(y||g!==r.state.phoneDigits||(x.forceRerender={})),r.setState(x,(function(){return o(y)}))})),hA(r,"_onFocus",(function(){return r.setState({isFocused:!0})})),hA(r,"_onBlur",(function(){return r.setState({isFocused:!1})})),hA(r,"onFocus",(function(e){r._onFocus();var t=r.props.onFocus;t&&t(e)})),hA(r,"onBlur",(function(e){var t=r.props.onBlur;r._onBlur(),t&&t(e)})),hA(r,"onCountryFocus",(function(e){r._onFocus();var t=r.props.countrySelectProps;if(t){var n=t.onFocus;n&&n(e)}})),hA(r,"onCountryBlur",(function(e){r._onBlur();var t=r.props.countrySelectProps;if(t){var n=t.onBlur;n&&n(e)}})),r.inputRef=n.createRef();var o=r.props,a=o.value,i=(o.labels,o.international),s=o.addInternationalOption,l=o.displayInitialValueAsLocalNumber,c=o.initialValueFormat,u=o.metadata,d=r.props,f=d.defaultCountry,p=d.countries;f&&(r.isCountrySupportedWithError(f)||(f=void 0)),a&&DS(a),p=qS(p,u);var h=qE(a,u);r.CountryIcon=GS(r.props);var m=function(e){var t,r=e.value,n=e.phoneNumber,o=e.defaultCountry,a=e.getAnyCountry,i=e.countries,s=e.required,l=e.metadata;return n&&n.country?t=n.country:o&&(r&&!YE(r,o,l)||(t=o)),i&&i.indexOf(t)<0&&(t=void 0),!t&&s&&i&&i.length>0&&(t=a()),t}({value:a,phoneNumber:h,defaultCountry:f,required:!s,countries:p||HS(u),getAnyCountry:function(){return r.getFirstSupportedCountry({countries:p})},metadata:u});return r.state={props:r.props,country:m,countries:p,phoneDigits:ZE({value:a,phoneNumber:h,defaultCountry:f,international:i,useNationalFormat:l||"national"===c,metadata:u}),value:a},r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pA(e,t)}(t,e),r=t,o=[{key:"componentDidMount",value:function(){var e=this.props.onCountryChange,t=this.props.defaultCountry,r=this.state.country;e&&(t&&(this.isCountrySupportedWithError(t)||(t=void 0)),r!==t&&e(r))}},{key:"componentDidUpdate",value:function(e,t){var r=this.props.onCountryChange,n=this.state.country;r&&n!==t.country&&r(n)}},{key:"getCountrySelectOptions",value:function(e){var t=e.countries,r=this.props,n=r.international,o=r.countryCallingCodeEditable,a=r.countryOptionsOrder,i=r.addInternationalOption,s=r.labels,l=r.locales,c=r.metadata;return this.useMemoCountrySelectOptions((function(){return function(e,t){if(!t)return e;for(var r,n=[],o=[],a=n,i=function(){var t=r.value;if("|"===t)a.push({divider:!0});else if("..."===t||"\u2026"===t)a=o;else{var n;n="\ud83c\udf10"===t?void 0:t;var i=e.indexOf(e.filter((function(e){return e.value===n}))[0]),s=e[i];e.splice(i,1),a.push(s)}},s=BS(t);!(r=s()).done;)i();return n.concat(e).concat(o)}(function(e){var t=e.countries,r=e.countryNames,n=e.addInternationalOption,o=e.compareStringsLocales,a=e.compareStrings;a||(a=KE);var i=t.map((function(e){return{value:e,label:r[e]||e}}));return i.sort((function(e,t){return a(e.label,t.label,o)})),n&&i.unshift({label:r.ZZ}),i}({countries:t||HS(c),countryNames:s,addInternationalOption:(!n||!1!==o)&&i,compareStringsLocales:l}),function(e,t){if(e&&(e=e.filter((function(e){switch(e){case"\ud83c\udf10":case"|":case"...":case"\u2026":return!0;default:return FS(e,t)}}))).length>0)return e}(a,c))}),[t,a,i,s,c])}},{key:"useMemoCountrySelectOptions",value:function(e,t){return this.countrySelectOptionsMemoDependencies&&function(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;){if(e[r]!==t[r])return!1;r++}return!0}(t,this.countrySelectOptionsMemoDependencies)||(this.countrySelectOptionsMemo=e(),this.countrySelectOptionsMemoDependencies=t),this.countrySelectOptionsMemo}},{key:"getFirstSupportedCountry",value:function(e){var t=e.countries;return this.getCountrySelectOptions({countries:t})[0].value}},{key:"render",value:function(){var e=this.props,t=e.name,r=e.disabled,o=e.readOnly,a=e.autoComplete,i=e.style,s=e.className,l=(e.inputRef,e.inputComponent),c=e.numberInputProps,u=e.smartCaret,d=e.countrySelectComponent,f=e.countrySelectProps,p=e.containerComponent,h=e.containerComponentProps,m=(e.defaultCountry,e.countries,e.countryOptionsOrder,e.labels),g=(e.flags,e.flagComponent,e.flagUrl,e.addInternationalOption,e.internationalIcon,e.displayInitialValueAsLocalNumber,e.initialValueFormat,e.onCountryChange,e.limitMaxLength,e.countryCallingCodeEditable,e.focusInputOnCountrySelection,e.reset,e.metadata),b=e.international,y=(e.locales,lA(e,nA)),x=this.state,v=x.country,w=x.countries,k=x.phoneDigits,j=x.isFocused,N=u?sS:dS,C=this.getCountrySelectOptions({countries:w});return n.createElement(p,sA({style:i,className:Ur(s,"PhoneInput",{"PhoneInput--focus":j,"PhoneInput--disabled":r,"PhoneInput--readOnly":o})},h),n.createElement(d,sA({name:t?"".concat(t,"Country"):void 0,"aria-label":m.country},f,{value:v,options:C,onChange:this.onCountryChange,onFocus:this.onCountryFocus,onBlur:this.onCountryBlur,disabled:r||f&&f.disabled,readOnly:o||f&&f.readOnly,iconComponent:this.CountryIcon})),n.createElement(N,sA({ref:this.setInputRef,type:"tel",autoComplete:a},c,y,{international:!!b||void 0,withCountryCallingCode:!!b||void 0,name:t,metadata:g,country:v,value:k||"",onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,disabled:r,readOnly:o,inputComponent:l,className:Ur("PhoneInputInput",c&&c.className,y.className)})))}}],a=[{key:"getDerivedStateFromProps",value:function(e,t){return iA({props:e},function(e,t,r){var n=e.metadata,o=e.countries,a=e.defaultCountry,i=e.value,s=e.reset,l=e.international,c=e.displayInitialValueAsLocalNumber,u=e.initialValueFormat,d=t.defaultCountry,f=t.value,p=t.reset,h=(r.country,r.value),m=r.hasUserSelectedACountry,g=r.latestCountrySelectedByUser,b=function(e){return ZE(eA(eA({},e),{},{international:l,useNationalFormat:c||"national"===u,metadata:n}))};if(s!==p)return{phoneDigits:b({value:void 0,defaultCountry:a}),value:void 0,country:a,latestCountrySelectedByUser:void 0,hasUserSelectedACountry:void 0};if(a!==d){var y=!a||FS(a,n),x=!h||l&&h===b({value:void 0,defaultCountry:d});if(!m&&y&&!i&&x)return{country:a,phoneDigits:b({value:void 0,defaultCountry:a}),value:void 0}}if(!rA(i,f)&&!rA(i,h)){var v,w,k;if(i){i&&DS(i),v=qE(i,n);var j=qS(o,n);v&&v.country?(!j||j.indexOf(v.country)>=0)&&(w=v.country):(w=VE(i,{country:void 0,countries:j,metadata:n}))||a&&0===i.indexOf(FE(a,n))&&(w=a)}return i?g&&((w?g===w:YE(i,g,n))?w||(w=g):k={latestCountrySelectedByUser:void 0}):k={latestCountrySelectedByUser:void 0,hasUserSelectedACountry:void 0},eA(eA({},k),{},{phoneDigits:b({phoneNumber:v,value:i,defaultCountry:a}),value:i,country:i?w:a})}}(e,t.props,t))}}],o&&cA(r.prototype,o),a&&cA(r,a),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o,a}(n.PureComponent),bA=n.forwardRef((function(e,t){return n.createElement(gA,sA({},function(e){for(var t in e=iA({},e),yA)void 0===e[t]&&(e[t]=yA[t]);return e}(e),{inputRef:t}))}));bA.propTypes={value:kj.string,onChange:kj.func.isRequired,onFocus:kj.func,onBlur:kj.func,disabled:kj.bool,readOnly:kj.bool,autoComplete:kj.string,initialValueFormat:kj.oneOf(["national"]),displayInitialValueAsLocalNumber:kj.bool,defaultCountry:kj.string,countries:kj.arrayOf(kj.string),labels:Nj,locales:kj.oneOfType([kj.string,kj.arrayOf(kj.string)]),flagUrl:kj.string,flags:kj.objectOf(kj.elementType),flagComponent:kj.elementType,addInternationalOption:kj.bool,internationalIcon:kj.elementType,countryOptionsOrder:kj.arrayOf(kj.string),style:kj.object,className:kj.string,countrySelectComponent:kj.elementType,countrySelectProps:kj.object,inputComponent:kj.elementType,numberInputProps:kj.object,containerComponent:kj.elementType,containerComponentProps:kj.object,smartCaret:kj.bool,international:kj.bool,limitMaxLength:kj.bool,countryCallingCodeEditable:kj.bool,metadata:jj,onCountryChange:kj.func,focusInputOnCountrySelection:kj.bool};var yA={autoComplete:"tel",countrySelectComponent:kS,flagComponent:OS,flagUrl:"https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg",internationalIcon:RS,inputComponent:"input",containerComponent:"div",reset:kj.any,smartCaret:!0,addInternationalOption:!0,countryCallingCodeEditable:!0,focusInputOnCountrySelection:!0};const xA=bA;var vA=["metadata","labels"];function wA(){return wA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wA.apply(this,arguments)}function kA(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function jA(e){var t=n.forwardRef((function(t,r){var o=t.metadata,a=void 0===o?e:o,i=t.labels,s=void 0===i?wj:i,l=kA(t,vA);return n.createElement(xA,wA({},l,{ref:r,metadata:a,labels:s}))}));return t.propTypes={metadata:jj,labels:Nj},t}jA();const NA=jA({version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|7(?:[013-57-9]\\d|2[0-8]))\\d|3(?:(?:[0-3589]\\d|6[1-9]|7[0-35-9])\\d|4(?:[0-578]\\d|90)))\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|3\\d\\d)|(?:6[0-8]|[78]\\d)\\d{3}|9(?:[02-9]\\d{3}|1(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79])))))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|2[23]"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","[025-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[025-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","[24-689]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-689]"]]]],BL:["590","00","590\\d{6}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-5])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","8001\\d{5}|(?:[2-467]\\d|50)\\d{6}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[235]|4[46]"]],["(\\d{8})","$1",["[67]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","(?:[1-46-9]\\d\\d|5(?:[0-46-9]\\d|5[0-46-9]))\\d{8}|[1-9]\\d{9}|[3589]\\d{8}|[34]\\d{7}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37)","4(?:02|37)0|[34]00"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[17]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-68]|7[246]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|7"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","(?:[2-8]\\d|90)\\d{8}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|90[25])[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:00|2[125-9]|33|44|66|77|88)|622)[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["5"],"0$1"]],"0"],CF:["236","00","(?:[27]\\d{3}|8776)\\d{4}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9[2-9]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]","(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:60\\d\\d|9101)\\d{6}|(?:1\\d|3)\\d{9}",[10,11],[["(\\d{3})(\\d{7})","$1 $2",["6"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|91"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9,10,11,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[03568]","15(?:[0568]|31)"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,"528[89]"],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]]],ET:["251","00","(?:11|[2-579]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-579]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d{5})","$1",["20[2-59]"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["(?:[1-3]0|[68])0|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[14]|2[09]|50|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"],["(\\d)(\\d{4,9})","$1 $2",["(?:1[49]|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-35])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|50))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","[56]94\\d{6}|(?:80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[56]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","(?:[235]\\d{3}|800)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","590\\d{6}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-5])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","(?:[24-69]\\d|3[0-79])\\d{7}|80\\d{5,7}|[1-79]\\d{7}|6\\d{5,6}",[6,7,8,9],[["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6|7[245]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-57]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","(?:[2-489]\\d|55)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13,14,15,16,17],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\d|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["1(?:6|8[06])","1(?:6|8[06]0)"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,10}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11,12],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]|43"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["3"]]],0,0,0,0,0,0,[["0669[0-79]\\d{1,6}|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}",[6,7,8,9,10,11]],["3[2-9]\\d{7,8}|(?:31|43)\\d{8}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],["3[2-8]\\d{9,10}",[11,12]],0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[257-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["[36]|4(?:2[09]|7[01])","[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[257-9]"],"0$1"]],"0",0,"(000[259]\\d{6})$|(?:(?:003768)0?)|0","$1"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[36]0|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"33|7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["30[0135-9]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:[245]\\d|33|77|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["4[67]|[56]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(0-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"0 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(0-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(0-$1)",1]],"0",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[269]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[45]"],"0$1"],["(\\d{4})(\\d{5})","$1-$2",["5(?:2[2-46-9]|3[3-9]|9)|8(?:0[89]|92)"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8"],"0$1"],["(\\d{3})(\\d{6})","$1-$2",["[5-7]"],"0$1"]],"0",0,0,0,0,0,[["5(?:2(?:[0-25-79]\\d|3[1-578]|4[02-46-8]|8[0235-7])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[014-9]|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[0167]\\d|2[0-4]|5[01]|8[0-3]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],MC:["377","00","(?:[3489]|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["6"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","590\\d{6}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-5])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["[45]|6(?:0[23]|[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-6]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","596\\d{6}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],"0"],MX:["52","0[09]","[2-9]\\d{9}",[10],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"]]],0,0,0,0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[0467]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","38\\d{6}|[78]\\d{9,13}|(?:20|9\\d)\\d{8}",[8,10,11,12,13,14],[["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["3"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["20[129]"],"0$1"],["(\\d{4})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:444|(?:55|8\\d)\\d|666)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[4-68]"]]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","[45]\\d{5}|(?:708|80\\d)\\d{6}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[16]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]]],RE:["262","00","(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2689]"],"0$1"]],"0",0,0,0,0,0,[["26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}"],["69(?:2\\d\\d|3(?:[06][0-6]|1[013]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-5]|76(?:2[278]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"3[04-689]|[489]",0,"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0"],SA:["966","00","92\\d{7}|(?:[15]|8\\d)\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["81"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","[6-9]\\d{6}|[1-6]\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","(?:[2489]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10,12],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-9]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d)(\\d{7})","$1 $2",["(?:2|90)4|[67]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[348]|64|79|90"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|6[0-35-9]|77|9[2-9]"]]],"0"],SR:["597","00","(?:[2-5]|68|[78]\\d)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-8]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[267]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[267]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],SY:["963","00","[1-39]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-5]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649"],TD:["235","00|16","(?:22|[689]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","[0-57-9]\\d{8}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3(?:[1245]|3[12])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[0-57-9]"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","(?:[1-6]\\d|71)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["[67]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|61[06])","5(?:[0-59]|61[06]1)"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[258]0"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]","[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["(?:3052(?:0[0-8]|[1-9]\\d)|5056(?:[0-35-9]\\d|4[468])|7302[0-4]\\d)\\d{4}|(?:305[3-9]|472[24]|505[2-57-9]|7306|983[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-47-9]|1[02-9]|2[013569]|3[0-24679]|4[167]|5[0-2]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[1247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}"],0,0,0,["305209\\d{4}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|(?:[49]\\d|80)\\d{5}",[6,7,8,9,10,11,12,13],[["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","00","(?:20|33|[5-79]\\d|88)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"]]]],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11,12],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72)\\d{4}|8\\d{5}(?:\\d{3})?",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[478]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}",[8,9,10,11,12],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2|39"],"0$1"],["(\\d{2})(\\d{7,10})","$1 $2",["3"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}",[9],0,"0",0,0,0,0,0,[["269(?:0[0-467]|15|5[0-4]|6\\d|[78]0)\\d{4}"],["639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|63|[79]\\d)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[79]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[35-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[35-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|51"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|50\\d{3})\\d{7}",[7,8,9,10,12]],0,0,0,["348[57]\\d{7}",[11]],0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}});const CA=[{name:"Afghanistan",code:"AF"},{name:"\xc5land Islands",code:"AX"},{name:"Albania",code:"AL"},{name:"Algeria",code:"DZ"},{name:"American Samoa",code:"AS"},{name:"AndorrA",code:"AD"},{name:"Angola",code:"AO"},{name:"Anguilla",code:"AI"},{name:"Antarctica",code:"AQ"},{name:"Antigua and Barbuda",code:"AG"},{name:"Argentina",code:"AR"},{name:"Armenia",code:"AM"},{name:"Aruba",code:"AW"},{name:"Australia",code:"AU"},{name:"Austria",code:"AT"},{name:"Azerbaijan",code:"AZ"},{name:"Bahamas",code:"BS"},{name:"Bahrain",code:"BH"},{name:"Bangladesh",code:"BD"},{name:"Barbados",code:"BB"},{name:"Belarus",code:"BY"},{name:"Belgium",code:"BE"},{name:"Belize",code:"BZ"},{name:"Benin",code:"BJ"},{name:"Bermuda",code:"BM"},{name:"Bhutan",code:"BT"},{name:"Bolivia",code:"BO"},{name:"Bosnia and Herzegovina",code:"BA"},{name:"Botswana",code:"BW"},{name:"Bouvet Island",code:"BV"},{name:"Brazil",code:"BR"},{name:"British Indian Ocean Territory",code:"IO"},{name:"Brunei Darussalam",code:"BN"},{name:"Bulgaria",code:"BG"},{name:"Burkina Faso",code:"BF"},{name:"Burundi",code:"BI"},{name:"Cambodia",code:"KH"},{name:"Cameroon",code:"CM"},{name:"Canada",code:"CA"},{name:"Cape Verde",code:"CV"},{name:"Cayman Islands",code:"KY"},{name:"Central African Republic",code:"CF"},{name:"Chad",code:"TD"},{name:"Chile",code:"CL"},{name:"China",code:"CN"},{name:"Christmas Island",code:"CX"},{name:"Cocos (Keeling) Islands",code:"CC"},{name:"Colombia",code:"CO"},{name:"Comoros",code:"KM"},{name:"Congo",code:"CG"},{name:"Congo, The Democratic Republic of the",code:"CD"},{name:"Cook Islands",code:"CK"},{name:"Costa Rica",code:"CR"},{name:"Cote D'Ivoire",code:"CI"},{name:"Croatia",code:"HR"},{name:"Cuba",code:"CU"},{name:"Cyprus",code:"CY"},{name:"Czech Republic",code:"CZ"},{name:"Denmark",code:"DK"},{name:"Djibouti",code:"DJ"},{name:"Dominica",code:"DM"},{name:"Dominican Republic",code:"DO"},{name:"Ecuador",code:"EC"},{name:"Egypt",code:"EG"},{name:"El Salvador",code:"SV"},{name:"Equatorial Guinea",code:"GQ"},{name:"Eritrea",code:"ER"},{name:"Estonia",code:"EE"},{name:"Ethiopia",code:"ET"},{name:"Falkland Islands (Malvinas)",code:"FK"},{name:"Faroe Islands",code:"FO"},{name:"Fiji",code:"FJ"},{name:"Finland",code:"FI"},{name:"France",code:"FR"},{name:"French Guiana",code:"GF"},{name:"French Polynesia",code:"PF"},{name:"French Southern Territories",code:"TF"},{name:"Gabon",code:"GA"},{name:"Gambia",code:"GM"},{name:"Georgia",code:"GE"},{name:"Germany",code:"DE"},{name:"Ghana",code:"GH"},{name:"Gibraltar",code:"GI"},{name:"Greece",code:"GR"},{name:"Greenland",code:"GL"},{name:"Grenada",code:"GD"},{name:"Guadeloupe",code:"GP"},{name:"Guam",code:"GU"},{name:"Guatemala",code:"GT"},{name:"Guernsey",code:"GG"},{name:"Guinea",code:"GN"},{name:"Guinea-Bissau",code:"GW"},{name:"Guyana",code:"GY"},{name:"Haiti",code:"HT"},{name:"Heard Island and Mcdonald Islands",code:"HM"},{name:"Holy See (Vatican City State)",code:"VA"},{name:"Honduras",code:"HN"},{name:"Hong Kong",code:"HK"},{name:"Hungary",code:"HU"},{name:"Iceland",code:"IS"},{name:"India",code:"IN"},{name:"Indonesia",code:"ID"},{name:"Iran, Islamic Republic Of",code:"IR"},{name:"Iraq",code:"IQ"},{name:"Ireland",code:"IE"},{name:"Isle of Man",code:"IM"},{name:"Israel",code:"IL"},{name:"Italy",code:"IT"},{name:"Jamaica",code:"JM"},{name:"Japan",code:"JP"},{name:"Jersey",code:"JE"},{name:"Jordan",code:"JO"},{name:"Kazakhstan",code:"KZ"},{name:"Kenya",code:"KE"},{name:"Kiribati",code:"KI"},{name:"Korea, Democratic People'S Republic of",code:"KP"},{name:"Korea, Republic of",code:"KR"},{name:"Kuwait",code:"KW"},{name:"Kyrgyzstan",code:"KG"},{name:"Lao People'S Democratic Republic",code:"LA"},{name:"Latvia",code:"LV"},{name:"Lebanon",code:"LB"},{name:"Lesotho",code:"LS"},{name:"Liberia",code:"LR"},{name:"Libyan Arab Jamahiriya",code:"LY"},{name:"Liechtenstein",code:"LI"},{name:"Lithuania",code:"LT"},{name:"Luxembourg",code:"LU"},{name:"Macao",code:"MO"},{name:"Macedonia, The Former Yugoslav Republic of",code:"MK"},{name:"Madagascar",code:"MG"},{name:"Malawi",code:"MW"},{name:"Malaysia",code:"MY"},{name:"Maldives",code:"MV"},{name:"Mali",code:"ML"},{name:"Malta",code:"MT"},{name:"Marshall Islands",code:"MH"},{name:"Martinique",code:"MQ"},{name:"Mauritania",code:"MR"},{name:"Mauritius",code:"MU"},{name:"Mayotte",code:"YT"},{name:"Mexico",code:"MX"},{name:"Micronesia, Federated States of",code:"FM"},{name:"Moldova, Republic of",code:"MD"},{name:"Monaco",code:"MC"},{name:"Mongolia",code:"MN"},{name:"Montserrat",code:"MS"},{name:"Morocco",code:"MA"},{name:"Mozambique",code:"MZ"},{name:"Myanmar",code:"MM"},{name:"Namibia",code:"NA"},{name:"Nauru",code:"NR"},{name:"Nepal",code:"NP"},{name:"Netherlands",code:"NL"},{name:"Netherlands Antilles",code:"AN"},{name:"New Caledonia",code:"NC"},{name:"New Zealand",code:"NZ"},{name:"Nicaragua",code:"NI"},{name:"Niger",code:"NE"},{name:"Nigeria",code:"NG"},{name:"Niue",code:"NU"},{name:"Norfolk Island",code:"NF"},{name:"Northern Mariana Islands",code:"MP"},{name:"Norway",code:"NO"},{name:"Oman",code:"OM"},{name:"Pakistan",code:"PK"},{name:"Palau",code:"PW"},{name:"Palestinian Territory, Occupied",code:"PS"},{name:"Panama",code:"PA"},{name:"Papua New Guinea",code:"PG"},{name:"Paraguay",code:"PY"},{name:"Peru",code:"PE"},{name:"Philippines",code:"PH"},{name:"Pitcairn",code:"PN"},{name:"Poland",code:"PL"},{name:"Portugal",code:"PT"},{name:"Puerto Rico",code:"PR"},{name:"Qatar",code:"QA"},{name:"Reunion",code:"RE"},{name:"Romania",code:"RO"},{name:"Russian Federation",code:"RU"},{name:"RWANDA",code:"RW"},{name:"Saint Helena",code:"SH"},{name:"Saint Kitts and Nevis",code:"KN"},{name:"Saint Lucia",code:"LC"},{name:"Saint Pierre and Miquelon",code:"PM"},{name:"Saint Vincent and the Grenadines",code:"VC"},{name:"Samoa",code:"WS"},{name:"San Marino",code:"SM"},{name:"Sao Tome and Principe",code:"ST"},{name:"Saudi Arabia",code:"SA"},{name:"Senegal",code:"SN"},{name:"Serbia and Montenegro",code:"CS"},{name:"Seychelles",code:"SC"},{name:"Sierra Leone",code:"SL"},{name:"Singapore",code:"SG"},{name:"Slovakia",code:"SK"},{name:"Slovenia",code:"SI"},{name:"Solomon Islands",code:"SB"},{name:"Somalia",code:"SO"},{name:"South Africa",code:"ZA"},{name:"South Georgia and the South Sandwich Islands",code:"GS"},{name:"Spain",code:"ES"},{name:"Sri Lanka",code:"LK"},{name:"Sudan",code:"SD"},{name:"Suriname",code:"SR"},{name:"Svalbard and Jan Mayen",code:"SJ"},{name:"Swaziland",code:"SZ"},{name:"Sweden",code:"SE"},{name:"Switzerland",code:"CH"},{name:"Syrian Arab Republic",code:"SY"},{name:"Taiwan, Province of China",code:"TW"},{name:"Tajikistan",code:"TJ"},{name:"Tanzania, United Republic of",code:"TZ"},{name:"Thailand",code:"TH"},{name:"Timor-Leste",code:"TL"},{name:"Togo",code:"TG"},{name:"Tokelau",code:"TK"},{name:"Tonga",code:"TO"},{name:"Trinidad and Tobago",code:"TT"},{name:"Tunisia",code:"TN"},{name:"Turkey",code:"TR"},{name:"Turkmenistan",code:"TM"},{name:"Turks and Caicos Islands",code:"TC"},{name:"Tuvalu",code:"TV"},{name:"Uganda",code:"UG"},{name:"Ukraine",code:"UA"},{name:"United Arab Emirates",code:"AE"},{name:"United Kingdom",code:"GB"},{name:"United States",code:"US"},{name:"United States Minor Outlying Islands",code:"UM"},{name:"Uruguay",code:"UY"},{name:"Uzbekistan",code:"UZ"},{name:"Vanuatu",code:"VU"},{name:"Venezuela",code:"VE"},{name:"Viet Nam",code:"VN"},{name:"Virgin Islands, British",code:"VG"},{name:"Virgin Islands, U.S.",code:"VI"},{name:"Wallis and Futuna",code:"WF"},{name:"Western Sahara",code:"EH"},{name:"Yemen",code:"YE"},{name:"Zambia",code:"ZM"},{name:"Zimbabwe",code:"ZW"}];function SA(){const[e,t]=(0,n.useState)(""),[r,o]=(0,n.useState)(""),[a,i]=(0,n.useState)(""),[s,l]=(0,n.useState)(""),[c,u]=(0,n.useState)(""),[d,f]=(0,n.useState)(""),[p,h]=(0,n.useState)(""),[m,g]=(0,n.useState)(""),[b,y]=(0,n.useState)("credit-card"),{t:x}=rt(),v="https://shop.sharedstore.ma/api/api",w=localStorage.getItem("token"),[k,j]=(0,n.useState)(!0),[N,C]=(0,n.useState)([]),[S,E]=(0,n.useState)(0),[A,O]=(0,n.useState)(null),{refreshKey:$}=cp(),{triggerRefresh:P}=cp();(0,n.useEffect)((()=>{(async()=>{const e=await Pm();e&&o(e.email)})();(async()=>{const e=await gf.get(v+"/getorders",{headers:{Authorization:`Bearer ${w}`}});C(e.data),O(e.data[0].user_id),j(!1)})()}),[$]);const T=()=>{const e=N.reduce(((e,t)=>e+parseFloat(t.total_amount)),0).toFixed(2);return"NaN"!==e?e:S},I=()=>{const e=N.reduce(((e,t)=>e+parseFloat(t.total_original_amount)),0).toFixed(2);return"NaN"!==e?e:S},M=[Km,Xm,Jm,Zm],[R,L]=(0,n.useState)(""),[_,D]=(0,n.useState)([]),B=()=>{const e=parseFloat(T());if(!_.code)return e;let t=0;_.percentage?t=e*_.percentage/100:_.amount&&(t=parseFloat(_.amount));return Math.max(e-t,0).toFixed(2)};return(0,nt.jsxs)("section",{className:"",children:[(0,nt.jsx)(pg,{}),(0,nt.jsx)(Tm,{}),(0,nt.jsx)("div",{className:"bg-gray-100",children:(0,nt.jsx)("div",{className:"container py-8 antialiased md:py-16",children:(0,nt.jsxs)("div",{className:"mx-auto",children:[(0,nt.jsx)("h2",{className:"text-xl font-semibold text-black sm:text-2xl",children:x("ppayment")}),(0,nt.jsxs)("div",{className:"mt-6 lg:flex lg:items-start lg:gap-12",children:[(0,nt.jsxs)("div",{className:"w-full lg:max-w-xl",children:[(0,nt.jsxs)("form",{onSubmit:async t=>{t.preventDefault();const n={fullname:e,email:r,phone:a,country:s,postcode:c,cardnumber:d,cardexpiration:p,cvv:m,paymentmethod:"vsa",amount:_.code?B():T()};try{await gf.post(v+"/payments",n,{headers:{Authorization:`Bearer ${w}`}}),alert("Payment successful!"),P()}catch(o){alert("Payment failed")}},children:[(0,nt.jsxs)("div",{className:"mb-6 grid grid-cols-2 gap-4",children:[(0,nt.jsxs)("div",{className:"col-span-2 sm:col-span-1",children:[(0,nt.jsxs)("label",{className:"block mb-2 text-sm font-medium text-black",children:[x("email"),(0,nt.jsx)("span",{className:"text-red-600 inline-block leading-none text-base ml-1",children:"*"})]}),(0,nt.jsx)("input",{type:"email",value:r,onChange:e=>o(e.target.value),className:"bg-gray-50 myborder text-black text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5",placeholder:x("edit-email"),required:!0})]}),(0,nt.jsxs)("div",{className:"col-span-2 sm:col-span-1",children:[(0,nt.jsx)("label",{className:"block mb-2 text-sm font-medium text-black",children:x("phone")}),(0,nt.jsx)(NA,{className:"bg-gray-50 myborder text-black text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full px-1.5",placeholder:x("ur-phone"),value:a,onChange:i})]})]}),(0,nt.jsxs)("div",{className:"mb-6 grid grid-cols-2 gap-4",children:[(0,nt.jsxs)("div",{className:"col-span-2 sm:col-span-1",children:[(0,nt.jsxs)("label",{className:"block mb-2 text-sm font-medium text-black",children:[x("country"),(0,nt.jsx)("span",{className:"text-red-600 inline-block leading-none text-base ml-1",children:"*"})]}),(0,nt.jsxs)("select",{value:s,onChange:e=>l(e.target.value),className:"bg-gray-50 myborder text-black text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5",required:!0,children:[(0,nt.jsx)("option",{value:"",disabled:!0,children:x("ur-country")}),CA.map(((e,t)=>(0,nt.jsx)("option",{value:e.name,children:e.name},t)))]})]}),(0,nt.jsxs)("div",{className:"col-span-2 sm:col-span-1",children:[(0,nt.jsxs)("label",{className:"block mb-2 text-sm font-medium text-black",children:[x("postcode"),(0,nt.jsx)("span",{className:"text-red-600 inline-block text leading-none-base ml-1",children:"*"})]}),(0,nt.jsx)("input",{type:"text",value:c,onChange:e=>u(e.target.value),className:"bg-gray-50 myborder text-black text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5",placeholder:x("ur-postcode")})]})]}),(0,nt.jsxs)("div",{className:"mb-6 grid grid-cols-2 gap-4 rounded-lg border border-gray-200 bg-white text-black p-4 shadow-sm sm:p-6",children:[(0,nt.jsxs)("div",{className:"col-span-2 flex justify-between gap-1",children:[(0,nt.jsxs)("label",{className:"flex items-center gap-2 cursor-pointer text-black font-semibold",children:[(0,nt.jsx)("input",{type:"radio",value:"credit-card",checked:"credit-card"===b,onChange:()=>y("credit-card"),className:"border-gray-400 ring-1 ring-gray-500",name:"payment-method"}),x("creditcard")]}),(0,nt.jsx)("div",{className:"flex flex-wrap items-center gap-1",children:M.map(((e,t)=>(0,nt.jsx)("img",{src:e,className:"w-10 h-auto",alt:"payment method "+(t+1)},t)))})]}),"credit-card"===b?(0,nt.jsxs)(nt.Fragment,{children:[(0,nt.jsxs)("div",{className:"col-span-2 sm:col-span-1",children:[(0,nt.jsx)("label",{className:"mb-2 block text-sm",children:x("fullname")}),(0,nt.jsx)("input",{type:"text",value:e,onChange:e=>t(e.target.value),className:"block w-full rounded-lg myborder bg-gray-50 p-2.5 text-sm text-black focus:border-blue-500 focus:ring-blue-500",placeholder:x("fullname"),required:!0})]}),(0,nt.jsxs)("div",{className:"col-span-2 sm:col-span-1",children:[(0,nt.jsxs)("label",{className:"mb-2 block text-sm",children:[" ",x("cardnumber"),(0,nt.jsx)("span",{className:"text-red-600 inline-block leading-none text-base ml-1",children:"*"})," "]}),(0,nt.jsx)("input",{type:"text",value:d,pattern:"^\\d{16}$",onChange:e=>f(e.target.value),className:"block w-full rounded-lg myborder bg-gray-50 p-2.5 pe-10 text-sm text-black focus:border-blue-500 focus:ring-blue-500 ",placeholder:"xxxx-xxxx-xxxx-xxxx",required:!0})]}),(0,nt.jsxs)("div",{children:[(0,nt.jsxs)("label",{className:"mb-2 block text-sm",children:[x("cardexpiration"),(0,nt.jsx)("span",{className:"text-red-600 inline-block leading-none text-base ml-1",children:"*"})," "]}),(0,nt.jsxs)("div",{className:"relative",children:[(0,nt.jsx)("div",{className:"pointer-events-none absolute inset-y-0 start-0 flex items-center ps-3.5",children:(0,nt.jsx)("svg",{className:"h-4 w-4 text-gray-500","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24",children:(0,nt.jsx)("path",{fillRule:"evenodd",d:"M5 5a1 1 0 0 0 1-1 1 1 0 1 1 2 0 1 1 0 0 0 1 1h1a1 1 0 0 0 1-1 1 1 0 1 1 2 0 1 1 0 0 0 1 1h1a1 1 0 0 0 1-1 1 1 0 1 1 2 0 1 1 0 0 0 1 1 2 2 0 0 1 2 2v1a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V7a2 2 0 0 1 2-2ZM3 19v-7a1 1 0 0 1 1-1h16a1 1 0 0 1 1 1v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2Zm6.01-6a1 1 0 1 0-2 0 1 1 0 0 0 2 0Zm2 0a1 1 0 1 1 2 0 1 1 0 0 1-2 0Zm6 0a1 1 0 1 0-2 0 1 1 0 0 0 2 0Zm-10 4a1 1 0 1 1 2 0 1 1 0 0 1-2 0Zm6 0a1 1 0 1 0-2 0 1 1 0 0 0 2 0Zm2 0a1 1 0 1 1 2 0 1 1 0 0 1-2 0Z",clipRule:"evenodd"})})}),(0,nt.jsx)("input",{type:"text",value:p,pattern:"^(0[1-9]|1[0-2])\\/?([0-9]{2})$",onChange:e=>h(e.target.value),className:"block w-full rounded-lg myborder bg-gray-50 p-2.5 ps-9 text-sm text-black focus:border-blue-500 focus:ring-blue-500",placeholder:"MM/YY",required:!0})]})]}),(0,nt.jsxs)("div",{children:[(0,nt.jsxs)("label",{className:"mb-2 block text-sm",children:["Cvv",(0,nt.jsx)("span",{className:"text-red-600 inline-block text leading-none-base ml-1",children:"*"})]}),(0,nt.jsx)("input",{type:"number",value:m,pattern:"^\\d{3,4}$",onChange:e=>g(e.target.value),className:"block w-full rounded-lg myborder bg-gray-50 p-2.5 text-sm text-black focus:border-blue-500 focus:ring-blue-500",placeholder:"\u2022\u2022\u2022",required:!0})]}),(0,nt.jsx)("button",{type:"submit",className:"col-span-2 flex items-center justify-center rounded-lg bg-blue-700 px-5 py-2.5 text-sm font-medium text-white hover:bg-blue-800 focus:outline-none focus:ring-4 focus:ring-blue-300",children:x("placeorder")})]}):null,(0,nt.jsxs)("div",{className:"col-span-2 flex justify-between gap-1 mt-3",children:[(0,nt.jsxs)("label",{className:"flex items-center gap-2 cursor-pointer text-black font-semibold",children:[(0,nt.jsx)("input",{type:"radio",value:"paypal",checked:"paypal"===b,onChange:()=>y("paypal"),className:"border-gray-400 ring-1 ring-gray-500",name:"payment-method"}),"Paypal"]}),(0,nt.jsx)("div",{className:"flex flex-wrap items-center gap-1",children:(0,nt.jsx)("img",{src:Qm,className:"w-24 h-auto",alt:"paypal"})})]}),"paypal"===b?(()=>{const e={user_id:A,email:r,phone:a,country:s,postcode:c,paymentmethod:"paypal",amount:_.code?B():T()};return(0,nt.jsx)("div",{className:"col-span-2",children:(0,nt.jsx)(vj,{orderData:e,activeBtn:!N.length>0})})})():null]})]}),(0,nt.jsx)("div",{className:"bg-white shadow-sm rounded-lg border border-gray-200 p-4 sm:p-6",children:(0,nt.jsxs)("form",{onSubmit:async e=>{j(!0),e.preventDefault();try{const e=await gf.get(`${v}/validatecoupon/${R}`,{headers:{Authorization:`Bearer ${w}`}});if(console.log(e.data),e.data.success)console.log(e.data.coupon),D(e.data.coupon);else{let t=e.data.message;t=e.data.start_date?`${x(e.data.message)} ${e.data.start_date}`:x(e.data.message),uh("error",t),console.log(t)}}catch(t){console.error("Error validating coupon:",t)}j(!1)},children:[(0,nt.jsx)("label",{className:"block mb-2 text-sm font-semibold text-black",children:x("coupon")}),(0,nt.jsx)("input",{type:"text",value:R,onChange:e=>L(e.target.value),placeholder:x("placeholder-code-coupon"),className:"bg-gray-50 myborder text-black text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full py-2 px-2.5 mb-2"}),(0,nt.jsx)("div",{className:"flex w-full justify-end",children:(0,nt.jsx)("button",{type:"submit",className:"bg-blue-600 hover:bg-blue-700 text-white px-3 py-1.5 rounded-md text-sm",children:"Submit"})})]})})]}),(0,nt.jsxs)("div",{className:"mt-6 grow sm:mt-8 lg:mt-0",children:[(0,nt.jsxs)("p",{className:"text-lg font-semibold text-black mb-3",children:[x("product"),"s"]}),(0,nt.jsxs)("div",{className:"space-y-4",children:[k?(0,nt.jsx)("div",{className:"flex justify-center items-center w-full min-h-[30vh] max-md:min-h-[20vh]",children:(0,nt.jsx)(Tr,{className:"fill-blue-600 text-gray-200 w-10 h-10"})}):(0,nt.jsx)("ul",{className:"flex flex-col gap-2",children:N.map(((e,t)=>{let r;try{r=JSON.parse(e.name)}catch(n){return console.error("Error parsing JSON data: ",n),(0,nt.jsx)("p",{className:"text-base text-red-500",children:x("error-displaying-infos")})}return(0,nt.jsxs)("li",{className:"p-4 border rounded-md bg-white shadow-sm",children:[(0,nt.jsxs)("div",{className:"flex justify-between items-start gap-1",children:[(0,nt.jsx)("p",{className:"text-base text-black mr-1 font-semibold",children:r[ap.language]}),(0,nt.jsx)(qh,{xMark:!0,prod_id:e.productID})]}),(0,nt.jsxs)("div",{className:"flex justify-between gap-1 items-center",children:[(0,nt.jsx)("p",{className:"text-sm",children:(0,nt.jsx)(Cm,{dateString:e.updated_at})}),(0,nt.jsxs)("p",{className:"text-sm mt-1 flex flex-wrap font-semibold leading-3",children:[(0,nt.jsxs)("span",{className:"text-gray-400 mr-1 font-normal",children:[e.total_quantity?e.total_quantity:e.quantity," x"]})," $",e.priceAfterDiscount?parseFloat(e.priceAfterDiscount).toFixed(2):parseFloat(e.price).toFixed(2),e.priceAfterDiscount?(0,nt.jsxs)("span",{className:"ml-1 text-red-700 line-through text-xs font-medium",children:["$",parseFloat(e.price).toFixed(2)]}):null]})]})]},t)}))}),(0,nt.jsxs)("div",{className:"px-1 font-semibold text-black border-t border-gray-200 pt-2",children:[_.code?(0,nt.jsxs)(nt.Fragment,{children:[(0,nt.jsxs)("div",{className:"flex justify-between items-end gap-1 text-sm",children:[(0,nt.jsx)("span",{children:x("coupon")}),(0,nt.jsxs)("span",{children:["-",_.percentage?`${_.percentage}%`:`$${_.amount}`]})]}),(0,nt.jsxs)("div",{className:"flex justify-between items-end gap-1 text-sm mb-1",children:[(0,nt.jsx)("span",{children:x("total-amount")}),(0,nt.jsx)("span",{children:T()===I()?(0,nt.jsxs)("span",{children:["$",T()]}):(0,nt.jsxs)("div",{className:"flex flex-wrap gap-1 ",children:["$",T(),(0,nt.jsxs)("span",{className:"text-red-700 line-through text-[11px]",children:["$",I()]})]})})]})]}):null,(0,nt.jsxs)("div",{className:"flex justify-between items-end gap-1 text-xl",children:[(0,nt.jsx)("span",{children:x("subtotal")}),_.code?(0,nt.jsx)("span",{children:B()}):(0,nt.jsx)("span",{children:T()===I()?(0,nt.jsxs)("span",{children:["$",T()]}):(0,nt.jsxs)("div",{className:"flex flex-wrap gap-1 leading-3",children:["$",T(),(0,nt.jsxs)("span",{className:"text-red-700 line-through text-xs",children:["$",I()]})]})})]})]})]}),(0,nt.jsx)("div",{className:"mt-6 flex items-center justify-center gap-8",children:["paypal","visa","mastercard"].map(((e,t)=>(0,nt.jsx)("img",{className:"h-8 w-auto",src:`https://flowbite.s3.amazonaws.com/blocks/e-commerce/brand-logos/${e}.svg`,alt:e},t)))})]})]})]})})}),(0,nt.jsx)(og,{})]})}function EA(){const{t:e}=rt(),{refreshKey:t}=cp(),r=localStorage.getItem("token"),[o,a]=(0,n.useState)(!0),[i,s]=(0,n.useState)([]);return(0,n.useEffect)((()=>{(async()=>{try{const e=await gf.get("https://shop.sharedstore.ma/api/api/myfavorites",{headers:{Authorization:`Bearer ${r}`}});s(e.data),a(!1)}catch(e){console.error(e)}})()}),[t]),(0,nt.jsx)("section",{className:"bg-gray-100 py-8 antialiased md:py-12",children:(0,nt.jsxs)("div",{className:"container mx-auto max-w-screen-xl px-4 2xl:px-0",children:[(0,nt.jsxs)("div",{className:"mb-4 items-end justify-between space-y-4 sm:flex sm:space-y-0 md:mb-8",children:[(0,nt.jsx)("div",{children:(0,nt.jsx)("h2",{className:"mt-3 text-xl font-medium text-black sm:text-2xl",children:e("favorites-list")})}),(0,nt.jsx)("div",{className:"flex items-center space-x-4",children:(0,nt.jsxs)(Hs,{label:"",dismissOnClick:!0,renderTrigger:()=>(0,nt.jsxs)("button",{className:"flex w-full items-center justify-center rounded-lg myborder bg-white px-3 py-2 text-sm font-medium text-black hover:bg-gray-100 hover:text-blue-700 focus:z-10 focus:outline-none focus:ring-4 focus:ring-gray-100 sm:w-auto shadow-sm",children:[(0,nt.jsx)("svg",{className:"-ms-0.5 me-2 h-4 w-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:(0,nt.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M7 4v16M7 4l3 3M7 4 4 7m9-3h6l-6 6h6m-6.5 10 3.5-7 3.5 7M14 18h4"})}),e("sort"),(0,nt.jsx)("svg",{className:"-me-0.5 ms-2 h-4 w-4","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24",children:(0,nt.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"m19 9-7 7-7-7"})})]}),children:[(0,nt.jsx)(Hs.Item,{children:e("popular")}),(0,nt.jsx)(Hs.Item,{children:e("newest")}),(0,nt.jsx)(Hs.Item,{children:e("inc-price")}),(0,nt.jsx)(Hs.Item,{children:e("dec-price")})]})})]}),o?(0,nt.jsx)("div",{className:"flex justify-center items-center min-h-72 w-full",children:(0,nt.jsx)(Bh,{})}):(0,nt.jsx)("div",{className:"mb-4 grid sm:grid-cols-2 md:mb-8 lg:grid-cols-3 xl:grid-cols-4 gap-3",children:i.map(((e,t)=>(0,nt.jsx)(Lh,{data:e},t)))})]})})}function AA(){return(0,nt.jsxs)("section",{className:"",children:[(0,nt.jsx)(pg,{}),(0,nt.jsx)(Tm,{}),(0,nt.jsx)("div",{className:"bg-gray-50",children:(0,nt.jsx)(EA,{})}),(0,nt.jsx)(og,{})]})}const OA=e=>{let{allowedRoles:t}=e;const[r,o]=(0,n.useState)(null),[a,i]=(0,n.useState)(!0);return(0,n.useEffect)((()=>{(async()=>{const e=await Pm();e&&o(e.role),i(!1)})()}),[]),a?(0,nt.jsx)("div",{className:"flex justify-center items-center min-h-screen",children:(0,nt.jsx)(Bh,{sizeProp:150})}):r?t.includes(r)?(0,nt.jsx)(ge,{}):(0,nt.jsx)(me,{to:"/not-found",replace:!0}):(0,nt.jsx)(me,{to:"/login",replace:!0})},$A=()=>(0,nt.jsx)(OA,{allowedRoles:["admin"]}),PA=()=>(0,nt.jsx)(OA,{allowedRoles:["user","admin"]});function TA(){const{t:e}=rt();return(0,nt.jsxs)("section",{className:"",children:[(0,nt.jsx)(pg,{}),(0,nt.jsx)(Tm,{}),(0,nt.jsx)("div",{className:"bg-gray-100",children:(0,nt.jsx)("div",{className:"container",children:(0,nt.jsx)("div",{className:"py-12 px-4 mx-auto",children:(0,nt.jsxs)("div",{className:"flex flex-col justify-center items-center text-center",children:[(0,nt.jsx)("h1",{className:"mb-4 text-7xl tracking-tight font-extrabold lg:text-8xl text-blue-600",children:"404"}),(0,nt.jsx)("p",{className:"mb-4 text-2xl tracking-tight font-bold text-black md:text-3xl",children:e("error-1")}),(0,nt.jsx)("p",{className:"mb-4 text-base font-light text-gray-500",children:e("error-2")}),(0,nt.jsx)("img",{src:bh,className:"mx-auto max-w-lg max-md:max-w-md max-sm:w-64 h-auto",alt:"not found"}),(0,nt.jsx)("a",{href:"/",className:"inline-flex text-white bg-blue-600 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center my-4",children:e("error-3")})]})})})}),(0,nt.jsx)(og,{})]})}function IA(e){let{admin:t}=e;const{t:r}=rt(),o="https://shop.sharedstore.ma/api/api",a=localStorage.getItem("token"),[i,s]=(0,n.useState)(!0),[l,c]=(0,n.useState)({username:"",password:""}),[u,d]=(0,n.useState)(!1),[f,p]=(0,n.useState)(!1),[h,m]=(0,n.useState)(!1),[g,b]=(0,n.useState)(!1),[y,x]=(0,n.useState)(!1),[v,w]=(0,n.useState)(""),[k,j]=(0,n.useState)(""),[N,C]=(0,n.useState)(""),[S,E]=(0,n.useState)(""),[A,O]=(0,n.useState)(""),[$,P]=(0,n.useState)(""),[T,I]=(0,n.useState)("");(0,n.useEffect)((()=>{s(!0);(async()=>{const e=await Pm();e&&(w(e.username),j(e.fname?e.fname:""),C(e.lname?e.lname:""),E(e.email)),s(!1)})()}),[u]);return i?(0,nt.jsx)("div",{className:"flex justify-center items-center min-h-[60vh] col-span-8",children:(0,nt.jsx)(Bh,{sizeProp:150})}):(0,nt.jsxs)("div",{className:"col-span-8 pb-10 overflow-hidden "+(t?"rounded-lg p-6 shadow-sm myborder bg-white":""),children:[(0,nt.jsx)("h1",{className:"pt-2 text-xl text-black font-semibold",children:r("account-details")}),(0,nt.jsx)("p",{className:"text-slate-600 text-sm",children:r("leave-blank")}),(0,nt.jsx)("hr",{className:"mt-4 mb-6"}),(0,nt.jsx)("p",{className:"pt-2 text-base text-black font-semibold",children:r("username")}),!1===f?(0,nt.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between",children:[(0,nt.jsxs)("p",{className:"text-gray-600 text-sm",children:[r("edit-username")," ",(0,nt.jsx)("strong",{className:"underline",children:v})]}),(0,nt.jsx)("button",{type:"button",onClick:()=>p(!0),className:"inline-flex text-sm font-medium text-blue-600 hover:underline decoration-2",children:r("edit")})]}):(0,nt.jsxs)("form",{onSubmit:e=>{e.preventDefault(),gf.put(o+"/update-username",{username:v},{headers:{Authorization:`Bearer ${a}`}}).then((e=>{c({username:""}),d(!u),p(!1),uh("success",r("s-up-username"))})).catch((()=>uh("error",r("s-up-username"))))},className:"mb-5",children:[(0,nt.jsxs)("div",{className:"flex flex-wrap gap-1",children:[(0,nt.jsx)("input",{value:v,onChange:e=>w(e.target.value),type:"text",className:(l.username?"error-border focus:ring-red-700 focus:border-red-700":"focus:ring-blue-500 focus:border-blue-500")+" max-w-sm bg-gray-50 myborder text-black text-sm rounded-lg block w-full p-2.5",placeholder:"john.doe"}),(0,nt.jsx)("button",{type:"submit",className:"text-white mt-4 sm:mt-0 bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 focus:outline-none",children:r("save")}),(0,nt.jsx)("button",{type:"button",onClick:()=>p(!1),className:"text-black mt-4 sm:mt-0 bg-gray-50 hover:bg-gray-200 myborder focus:ring-4 focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 focus:outline-none",children:r("cancel")})]}),l.username&&(0,nt.jsx)("p",{className:"text-sm text-red-700",children:r(l.username)})]}),(0,nt.jsx)("hr",{className:"mt-4 mb-4"}),(0,nt.jsx)("p",{className:"pt-2 text-base text-black font-semibold",children:r("fullname")}),!1===h?(0,nt.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between",children:[k&&N?(0,nt.jsxs)("p",{className:"text-gray-600 text-sm",children:[r("edit-name")," ",(0,nt.jsxs)("strong",{className:"underline",children:[k," ",N]})]}):(0,nt.jsx)("p",{className:"text-gray-600 text-sm",children:r("new-name")}),(0,nt.jsx)("button",{type:"button",onClick:()=>m(!0),className:"inline-flex text-sm font-medium text-blue-600 hover:underline decoration-2",children:r("edit")})]}):(0,nt.jsxs)("form",{onSubmit:e=>{e.preventDefault(),gf.put(o+"/update-name",{fname:k,lname:N},{headers:{Authorization:`Bearer ${a}`}}).then((e=>{d(!u),m(!1),uh("success",r("s-up-name"))})).catch((e=>uh("error",r("e-up-name"))))},children:[(0,nt.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,nt.jsxs)("div",{className:"col-span-1 mb-5",children:[(0,nt.jsx)("label",{className:"block mb-2 text-sm font-medium text-black",children:r("fname")}),(0,nt.jsx)("input",{value:k,onChange:e=>j(e.target.value),type:"text",className:"bg-gray-50 myborder text-black text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5",placeholder:"Joe"})]}),(0,nt.jsxs)("div",{className:"col-span-1 mb-5",children:[(0,nt.jsx)("label",{className:"block mb-2 text-sm font-medium text-black",children:r("lname")}),(0,nt.jsx)("input",{value:N,onChange:e=>C(e.target.value),type:"text",className:"bg-gray-50 myborder text-black text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5",placeholder:"Doe"})]})]}),(0,nt.jsxs)("div",{className:"flex flex-wrap gap-1",children:[(0,nt.jsx)("button",{type:"submit",className:"text-white mt-4 sm:mt-0 bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 focus:outline-none",children:r("save")}),(0,nt.jsx)("button",{type:"button",onClick:()=>m(!1),className:"text-black mt-4 sm:mt-0 bg-gray-50 hover:bg-gray-200 myborder focus:ring-4 focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 focus:outline-none",children:r("cancel")})]})]}),(0,nt.jsx)("hr",{className:"mt-4 mb-4"}),(0,nt.jsx)("p",{className:"pt-2 text-base text-black font-semibold",children:r("edit-email")}),!1===g?(0,nt.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between",children:[(0,nt.jsxs)("p",{className:"text-gray-600 text-sm",children:[r("edit-email-1")," ",(0,nt.jsx)("strong",{className:"underline",children:S})]}),(0,nt.jsx)("button",{type:"button",onClick:()=>b(!0),className:"inline-flex text-sm font-medium text-blue-600 hover:underline decoration-2",children:r("edit")})]}):(0,nt.jsxs)("form",{onSubmit:e=>{e.preventDefault(),gf.put(o+"/update-email",{email:S},{headers:{Authorization:`Bearer ${a}`}}).then((e=>{d(!u),b(!1),uh("success",r("s-up-name"))})).catch((e=>uh("error",r("e-up-name"))))},className:"flex flex-wrap gap-1 mb-5",children:[(0,nt.jsx)("input",{value:S,onChange:e=>E(e.target.value),type:"text",className:"max-w-sm bg-gray-50 myborder text-black text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5",placeholder:"john.doe@company.com"}),(0,nt.jsx)("button",{type:"submit",className:"text-white mt-4 sm:mt-0 bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 focus:outline-none",children:r("save")}),(0,nt.jsx)("button",{type:"button",onClick:()=>b(!1),className:"text-black mt-4 sm:mt-0 bg-gray-50 hover:bg-gray-200 myborder focus:ring-4 focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 focus:outline-none",children:r("cancel")})]}),(0,nt.jsx)("hr",{className:"mt-4 mb-4"}),(0,nt.jsx)("p",{className:"pt-2 text-base text-black font-semibold",children:r("edit-password")}),!1===y?(0,nt.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between",children:[(0,nt.jsxs)("p",{className:"text-gray-600 text-sm",children:[r("edit-password-1")," ",(0,nt.jsx)("strong",{className:"underline",children:r("edit-password-2")}),"?"]}),(0,nt.jsx)("button",{type:"button",onClick:()=>x(!0),className:"inline-flex text-sm font-medium text-blue-600 hover:underline decoration-2",children:r("edit")})]}):(0,nt.jsxs)("form",{onSubmit:e=>{e.preventDefault(),$===T?(c({password:""}),gf.put(o+"/update-password",{current_password:A,new_password:$,new_password_confirmation:T},{headers:{Authorization:`Bearer ${a}`}}).then((e=>{x(!1),O(""),P(""),I(""),uh("success",r("s-up-psw"))})).catch((e=>{if(e.status){const t=JSON.parse(e.request.response);c({passwordll:t.message})}else uh("error",r("e-up-psw"))}))):c({password:"error-not-match"})},className:"max-w-sm",children:[(0,nt.jsxs)("div",{className:"mb-5",children:[(0,nt.jsx)("label",{className:"block mb-2 text-sm font-medium text-black",children:r("current-password")}),(0,nt.jsx)("input",{value:A,onChange:e=>O(e.target.value),type:"password",className:(l.passwordll?"error-border focus:ring-red-700 focus:border-red-700":"focus:ring-blue-500 focus:border-blue-500")+" bg-gray-50 myborder text-black text-sm rounded-lg block w-full p-2.5",placeholder:"********"}),l.passwordll&&(0,nt.jsx)("p",{className:"text-sm text-red-700",children:r(l.passwordll)})]}),(0,nt.jsxs)("div",{className:"mb-5",children:[(0,nt.jsx)("label",{className:"block mb-2 text-sm font-medium text-black",children:r("new-password")}),(0,nt.jsx)("input",{value:$,onChange:e=>P(e.target.value),type:"password",className:(l.password?"error-border focus:ring-red-700 focus:border-red-700":"focus:ring-blue-500 focus:border-blue-500")+" bg-gray-50 myborder text-black text-sm rounded-lg block w-full p-2.5",placeholder:"********"})]}),(0,nt.jsxs)("div",{className:"mb-5",children:[(0,nt.jsx)("label",{className:"block mb-2 text-sm font-medium text-black",children:r("conf-new-password")}),(0,nt.jsx)("input",{value:T,onChange:e=>I(e.target.value),type:"password",className:(l.password?"error-border focus:ring-red-700 focus:border-red-700":"focus:ring-blue-500 focus:border-blue-500")+" bg-gray-50 myborder text-black text-sm rounded-lg block w-full p-2.5",placeholder:"********"}),l.password&&(0,nt.jsx)("p",{className:"text-sm text-red-700",children:r(l.password)})]}),(0,nt.jsxs)("div",{className:"flex flex-wrap justify-end gap-1",children:[(0,nt.jsx)("button",{type:"submit",className:"text-white mt-4 sm:mt-0 bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 focus:outline-none",children:r("save")}),(0,nt.jsx)("button",{type:"button",onClick:()=>x(!1),className:"text-black mt-4 sm:mt-0 bg-gray-50 hover:bg-gray-200 myborder focus:ring-4 focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 focus:outline-none",children:r("cancel")})]})]})]})}function MA(e){let{data:t}=e;const{t:r}=rt(),n=JSON.parse(t.name);return(0,nt.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 min-[550px]:gap-6 py-3 border-b border-gray-200 max-sm:max-w-xl max-xl:mx-auto",children:[(0,nt.jsxs)("div",{className:"flex items-center flex-col min-[550px]:flex-row gap-3 min-[550px]:gap-4 w-full max-sm:justify-center max-sm:max-w-xl max-xl:mx-auto",children:[(0,nt.jsx)("div",{className:"img-box bg-gray-50 rounded-xl justify-center items-center inline-flex",children:(0,nt.jsx)("img",{src:"https://shop.sharedstore.ma/api.shop.sharedstore.ma/storage/app/public/"+t.image,alt:"product",className:"md:w-24 object-cover"})}),(0,nt.jsxs)("div",{className:"pro-data w-full max-w-sm flex-col justify-start items-start gap-2 inline-flex",children:[(0,nt.jsx)("a",{href:`/product/${t.slug}`,className:"w-full text-lg text-black hover:text-blue-700 leading-none max-[550px]:text-center",children:n[ap.language]}),(0,nt.jsxs)("h5",{className:"w-full text-gray-500 text-sm font-normal leading-relaxed min-[550px]:my-0 my-2 max-[550px]:text-center",children:[r("product")," ID ",t.uniqueProd]})]})]}),(0,nt.jsxs)("div",{className:"w-full flex items-center justify-between flex-col min-[550px]:flex-row max-sm:max-w-xl max-xl:mx-auto gap-2 text-black text-sm",children:[(0,nt.jsxs)("div",{className:"flex items-end",children:[(0,nt.jsxs)("span",{className:"text-gray-400 w-max text-base",children:[t.total_quantity?t.total_quantity:t.quantity," x"]}),(0,nt.jsxs)("div",{className:"flex justify-end items-end sm:flex-col",children:[t.priceAfterDiscount?(0,nt.jsxs)("span",{className:"text-red-700 line-through text-xs max-sm:text-sm font-medium max-sm:order-2 max-sm:mb-1 max-sm:ml-1",children:["$",parseFloat(t.price).toFixed(2)]}):null,(0,nt.jsxs)("span",{className:"text-xl w-max ml-1 max-sm:order-1",children:["$",t.priceAfterDiscount?parseFloat(t.priceAfterDiscount).toFixed(2):parseFloat(t.price).toFixed(2)]})]})]}),(0,nt.jsxs)("h5",{className:"w-full text-center font-semibold sm:flex sm:justify-end text-green-500 text-xl leading-relaxed",children:["= $",t.total_amount]})]})]})}function RA(){const{t:e}=rt(),t=localStorage.getItem("token"),[r,o]=(0,n.useState)([]);(0,n.useEffect)((()=>{try{const e=async()=>{const e=await gf.get("https://shop.sharedstore.ma/api/api/myconfirmedorders",{headers:{Authorization:`Bearer ${t}`}});o(e.data)};e()}catch(e){}}),[]);const a=r.reduce(((e,t)=>{let{total_amount:r}=t;return e+r}),0).toFixed(2);return(0,nt.jsx)("section",{className:"relative",children:(0,nt.jsx)("div",{className:"w-full max-w-7xl mx-auto",children:(0,nt.jsxs)("div",{className:"w-full flex-col justify-start items-start gap-8 inline-flex",children:[(0,nt.jsx)("div",{className:"w-full justify-center items-start ",children:r.map(((e,t)=>(0,nt.jsx)(MA,{data:e},t)))}),(0,nt.jsx)("div",{className:"w-full p-5 rounded-xl border border-gray-200 flex-col justify-start items-center gap-4 flex",children:(0,nt.jsxs)("div",{className:"w-full justify-between items-center gap-6 inline-flex",children:[(0,nt.jsxs)("h5",{className:"text-black text-base font-normal leading-8",children:[e("subtotal")," :"]}),(0,nt.jsxs)("h5",{className:"text-right text-black text-2xl font-semibold leading-8",children:["$ ",a]})]})})]})})})}function LA(){const{t:e}=rt(),t=localStorage.getItem("token"),[r,o]=(0,n.useState)(!0),[a,i]=(0,n.useState)([]);return(0,n.useEffect)((()=>{try{const e=async()=>{const e=await gf.get("https://shop.sharedstore.ma/api/api/myconfirmedorders",{headers:{Authorization:`Bearer ${t}`}});i(e.data),o(!1)};e()}catch(e){}}),[]),(0,nt.jsxs)("div",{className:"col-span-8 overflow-hidden rounded-xl sm:bg-gray-50",children:[(0,nt.jsx)("h1",{className:"pt-2 text-xl text-black font-semibold",children:e("purchases")}),(0,nt.jsx)("p",{className:"text-sm text-slate-600",children:e("all-purchases")}),(0,nt.jsx)("hr",{className:"mt-4 mb-6"}),r?(0,nt.jsx)("div",{className:"flex justify-center items-center w-full min-h-[40vh]",children:(0,nt.jsx)(Bh,{sizeProp:150})}):a.length>0?(0,nt.jsx)(RA,{}):(0,nt.jsxs)("div",{className:"flex items-center p-4 mb-4 text-sm text-red-800 border border-red-300 rounded-lg bg-red-50",role:"alert",children:[(0,nt.jsx)(Lc,{className:"flex-shrink-0 inline w-5 h-5 me-2"}),(0,nt.jsx)("span",{className:"sr-only",children:"Info"}),(0,nt.jsxs)("div",{className:"flex flex-wrap gap-1",children:[e("all-purchases-1")," ",(0,nt.jsx)("a",{href:"/shop",className:"underline",children:e("all-purchases-2")})]})]})]})}function _A(){const{t:e}=rt();return(0,nt.jsxs)("div",{className:"col-span-8 overflow-hidden rounded-xl sm:bg-gray-50",children:[(0,nt.jsx)("h1",{className:"pt-2 text-xl text-black font-semibold",children:e("payment")}),(0,nt.jsx)("p",{className:"text-sm text-slate-600",children:e("all-payment-methods")}),(0,nt.jsx)("hr",{className:"mt-4 mb-6"}),(0,nt.jsx)("div",{className:"mb-5",children:(0,nt.jsx)("button",{className:"text-white mt-4 sm:mt-0 bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 font-medium rounded-lg text-sm px-3 py-2.5 focus:outline-none",children:e("add-payment")})})]})}function DA(e){let{data:t}=e;const{t:r}=rt();return(0,nt.jsx)("div",{className:"relative overflow-x-auto sm:rounded-lg",children:(0,nt.jsxs)("table",{className:"w-full text-sm text-left rtl:text-right text-gray-500 dark:text-gray-400",children:[(0,nt.jsx)("thead",{className:"text-xs text-gray-700 uppercase bg-gray-200 dark:bg-gray-700 dark:text-gray-400",children:(0,nt.jsxs)("tr",{children:[(0,nt.jsx)("th",{scope:"col",className:"px-6 py-3",children:"Transaction ID"}),(0,nt.jsx)("th",{scope:"col",className:"px-6 py-3",children:r("date&time")}),(0,nt.jsx)("th",{scope:"col",className:"px-6 py-3",children:r("amount")}),(0,nt.jsx)("th",{scope:"col",className:"px-6 py-3",children:r("payment-method")}),(0,nt.jsx)("th",{scope:"col",className:"px-6 py-3",children:"Status"})]})}),(0,nt.jsx)("tbody",{children:t.map(((e,t)=>(0,nt.jsxs)("tr",{className:"odd:bg-white odd:dark:bg-gray-900 even:bg-gray-200 even:dark:bg-gray-800 border-b dark:border-gray-700",children:[(0,nt.jsx)("th",{scope:"row",className:"px-6 py-4 font-medium text-gray-900 whitespace-nowrap dark:text-white",children:e.uniquePayment}),(0,nt.jsx)("td",{className:"px-6 py-4",children:(0,nt.jsx)(Em,{dateString:e.created_at})}),(0,nt.jsxs)("td",{className:"px-6 py-4",children:["$",e.amount]}),(0,nt.jsx)("td",{className:"px-6 py-4",children:e.paymentmethod}),(0,nt.jsx)("td",{className:"px-6 py-4",children:"completed"===e.paymentstatus.toLowerCase()?(0,nt.jsx)("p",{className:"text-green-600 bg-green-200 rounded-md px-2 text-center w-max",children:"Completed"}):"cancelled"===e.paymentstatus.toLowerCase()?(0,nt.jsx)("p",{className:"text-red-600 bg-red-200 rounded-md px-2 text-center w-max",children:"Cancelled"}):null})]},t)))})]})})}function BA(){const{t:e}=rt(),t=localStorage.getItem("token"),[r,o]=(0,n.useState)(!0),[a,i]=(0,n.useState)([]);return(0,n.useEffect)((()=>{(async()=>{const e=await gf.get("https://shop.sharedstore.ma/api/api/getallpaymentsbyuser",{headers:{Authorization:`Bearer ${t}`}});i(e.data),o(!1)})()}),[]),(0,nt.jsxs)("div",{className:"col-span-8 overflow-hidden rounded-xl sm:bg-gray-50",children:[(0,nt.jsx)("h1",{className:"pt-2 text-xl text-black font-semibold",children:"Transactions"}),(0,nt.jsx)("p",{className:"text-sm text-slate-600",children:e("all-transactions")}),(0,nt.jsx)("hr",{className:"mt-4 mb-6"}),r?(0,nt.jsx)("div",{className:"flex justify-center items-center w-full min-h-[40vh]",children:(0,nt.jsx)(Bh,{sizeProp:150})}):a.length>0?(0,nt.jsx)(DA,{data:a}):(0,nt.jsxs)("div",{className:"flex items-center p-4 mb-4 text-sm text-red-800 border border-red-300 rounded-lg bg-red-50",role:"alert",children:[(0,nt.jsx)(Lc,{className:"flex-shrink-0 inline w-5 h-5 me-2"}),(0,nt.jsx)("span",{className:"sr-only",children:"Info"}),(0,nt.jsxs)("div",{className:"flex flex-wrap gap-1",children:[e("all-transactions-1")," ",(0,nt.jsx)("a",{href:"/shop",className:"underline",children:e("all-purchases-2")})]})]})]})}const zA=["dashboard","purchases","Transactions","payment","account-details"],FA=[{title:"purchases",icon:(0,nt.jsx)(Bc,{className:"inline h-7 w-7 text-gray-500 group-hover:text-blue-600"})},{title:"Transactions",icon:(0,nt.jsx)(_e,{className:"inline h-7 w-7 text-gray-500 group-hover:text-blue-600"})},{title:"payment",icon:(0,nt.jsx)(Mc,{className:"inline h-7 w-7 text-gray-500 group-hover:text-blue-600"})},{title:"account",icon:(0,nt.jsx)(Wc,{className:"inline h-7 w-7 text-gray-500 group-hover:text-blue-600"})}];function qA(){const{t:e}=rt(),t=X(),{section:r}=te(),[o,a]=(0,n.useState)(r||"dashboard"),{refreshKey:i}=cp();(0,n.useEffect)((()=>{(async()=>{const e=await Pm();e&&localStorage.setItem("username",e.username)})()}),[i]);const s=localStorage.getItem("username"),l=e=>{a(e),t(`/account/${e}`)};return(0,nt.jsxs)("section",{children:[(0,nt.jsx)(pg,{}),(0,nt.jsx)(Tm,{}),(0,nt.jsx)("div",{className:"bg-gray-100",children:(0,nt.jsx)("section",{className:"container",children:(0,nt.jsxs)("div",{className:"mx-4 min-h-screen max-w-screen-xl sm:mx-8 xl:mx-auto",children:[(0,nt.jsx)("h1",{className:"border-b py-6 text-2xl text-black font-semibold",children:e("account")}),(0,nt.jsxs)("div",{className:"grid grid-cols-8 pt-3 sm:grid-cols-10",children:[(0,nt.jsxs)("div",{className:"relative my-4 w-56 sm:hidden",children:[(0,nt.jsx)("input",{className:"peer hidden",type:"checkbox",name:"select-1",id:"select-1"}),(0,nt.jsx)("label",{htmlFor:"select-1",className:"flex w-full cursor-pointer select-none rounded-lg border p-2 px-3 text-sm text-gray-700 ring-blue-700 peer-checked:ring",children:e(o)}),(0,nt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"pointer-events-none absolute right-0 top-3 ml-auto mr-5 h-4 text-slate-700 transition peer-checked:rotate-180",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"2",children:(0,nt.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"})}),(0,nt.jsx)("ul",{className:"max-h-0 flex-col overflow-hidden rounded-b-lg shadow-sm transition-all duration-300 peer-checked:max-h-56 peer-checked:py-3",children:zA.map(((t,r)=>(0,nt.jsx)("li",{onClick:()=>l(t),className:"cursor-pointer px-3 py-2 text-sm text-slate-600 hover:bg-blue-700 hover:text-white",children:e(t)},r)))})]}),(0,nt.jsx)("div",{className:"col-span-2 hidden sm:block",children:(0,nt.jsxs)("ul",{children:[zA.map(((t,r)=>(0,nt.jsx)("li",{onClick:()=>l(t),className:"mt-5 cursor-pointer border-l-2 px-2 py-2 font-semibold transition hover:border-l-blue-700 hover:text-blue-700 "+(o===t?"border-l-blue-700 text-blue-700":"border-transparent"),children:e(t)},r))),(0,nt.jsx)("li",{className:"mt-5 cursor-pointer border-l-2 px-2 py-2 font-semibold transition hover:border-l-blue-700 hover:text-blue-700 border-transparent",children:(0,nt.jsx)(Fh,{compo:"Logout"})})]})}),(0,nt.jsx)("div",{className:"col-span-8 pt-6 pb-12 overflow-hidden rounded-xl sm:bg-gray-50 sm:px-8",children:"dashboard"===o?(0,nt.jsxs)("div",{children:[(0,nt.jsx)("h1",{className:"pt-2 text-xl text-black font-semibold",children:e("account")}),(0,nt.jsxs)("p",{className:"text-sm text-slate-600",children:[e("hello")," ",(0,nt.jsx)("strong",{children:s})]}),(0,nt.jsx)("hr",{className:"mt-4 mb-8"}),(0,nt.jsxs)("div",{className:"grid grid-cols-3 gap-4 max-md:grid-cols-2 max-sm:grid-cols-1",children:[FA.map(((t,r)=>(0,nt.jsxs)("div",{onClick:()=>l(t.title),className:"group cursor-pointer rounded-lg border shadow-sm bg-white p-8 hover:bg-gray-100",children:[(0,nt.jsx)("div",{className:"mx-auto mb-2 flex h-[54px] w-[54px] items-center justify-center rounded-full bg-gray-200 group-hover:bg-blue-200 p-2",children:t.icon}),(0,nt.jsx)("div",{className:"text-center text-sm font-semibold text-gray-500 group-hover:text-blue-600",children:e(t.title)})]},r))),(0,nt.jsx)(Fh,{compo:"from-dashboard"})]})]}):"purchases"===o?(0,nt.jsx)(LA,{}):"payment"===o?(0,nt.jsx)(_A,{}):"Transactions"===o?(0,nt.jsx)(BA,{}):(0,nt.jsx)(IA,{})})]})]})})}),(0,nt.jsx)(og,{})]})}function HA(e){return $e({tag:"svg",attr:{version:"1.1",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M13.5 2l-7.5 7.5-3.5-3.5-2.5 2.5 6 6 10-10z"},child:[]}]})(e)}function UA(){const{t:e}=rt();return(0,nt.jsxs)("section",{children:[(0,nt.jsx)(pg,{}),(0,nt.jsx)(Tm,{}),(0,nt.jsx)("div",{className:"bg-gray-100 text-black min-h-[80vh] flex items-center",children:(0,nt.jsx)("div",{className:"container",children:(0,nt.jsxs)("div",{className:"flex flex-col items-center gap-3 text-center",children:[(0,nt.jsxs)("h1",{className:"text-8xl max-sm:text-7xl font-bold uppercase",children:[e("thankyou"),"!"]}),(0,nt.jsx)(HA,{className:"h-36 w-36 text-green-500"}),(0,nt.jsxs)("div",{className:"text-lg max-sm:text-base font-medium",children:[(0,nt.jsx)("p",{children:e("confirmation-purchase-text-1")}),(0,nt.jsx)("p",{children:e("confirmation-purchase-text-2")}),(0,nt.jsx)("p",{children:e("confirmation-purchase-text-3")})]}),(0,nt.jsx)("a",{href:"/account/purchases",className:"text-green-500 font-semibold hover:underline",children:e("browse-purchase")})]})})}),(0,nt.jsx)(og,{})]})}function WA(e){return $e({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M9.669.864 8 0 6.331.864l-1.858.282-.842 1.68-1.337 1.32L2.6 6l-.306 1.854 1.337 1.32.842 1.68 1.858.282L8 12l1.669-.864 1.858-.282.842-1.68 1.337-1.32L13.4 6l.306-1.854-1.337-1.32-.842-1.68zm1.196 1.193.684 1.365 1.086 1.072L12.387 6l.248 1.506-1.086 1.072-.684 1.365-1.51.229L8 10.874l-1.355-.702-1.51-.229-.684-1.365-1.086-1.072L3.614 6l-.25-1.506 1.087-1.072.684-1.365 1.51-.229L8 1.126l1.356.702z"},child:[]},{tag:"path",attr:{d:"M4 11.794V16l4-1 4 1v-4.206l-2.018.306L8 13.126 6.018 12.1z"},child:[]}]})(e)}function VA(e){return $e({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M4 10.781c.148 1.667 1.513 2.85 3.591 3.003V15h1.043v-1.216c2.27-.179 3.678-1.438 3.678-3.3 0-1.59-.947-2.51-2.956-3.028l-.722-.187V3.467c1.122.11 1.879.714 2.07 1.616h1.47c-.166-1.6-1.54-2.748-3.54-2.875V1H7.591v1.233c-1.939.23-3.27 1.472-3.27 3.156 0 1.454.966 2.483 2.661 2.917l.61.162v4.031c-1.149-.17-1.94-.8-2.131-1.718zm3.391-3.836c-1.043-.263-1.6-.825-1.6-1.616 0-.944.704-1.641 1.8-1.828v3.495l-.2-.05zm1.591 1.872c1.287.323 1.852.859 1.852 1.769 0 1.097-.826 1.828-2.2 1.939V8.73z"},child:[]}]})(e)}function GA(e){return $e({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001q.044.06.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1 1 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0"},child:[]}]})(e)}function KA(e){return $e({tag:"svg",attr:{viewBox:"0 0 1024 1024",fill:"currentColor",fillRule:"evenodd"},child:[{tag:"path",attr:{d:"M320 30.02c8.837 0 16 7.163 16 16v304c0 8.836-7.163 16-16 16H16c-8.837 0-16-7.164-16-16v-304c0-8.837 7.163-16 16-16zm-52 68H68v200h200zm493.333 87.686c6.248 6.248 6.248 16.379 0 22.627l-181.02 181.02c-6.248 6.248-16.378 6.248-22.627 0l-181.019-181.02c-6.248-6.248-6.248-16.379 0-22.627l181.02-181.02c6.248-6.248 16.378-6.248 22.627 0zm-84.853 11.313L569 89.54 461.52 197.02 569 304.5zM320 430.02c8.837 0 16 7.164 16 16v304c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16v-304c0-8.836 7.163-16 16-16zm-52 68H68v200h200zm452-68c8.837 0 16 7.164 16 16v304c0 8.837-7.163 16-16 16H416c-8.837 0-16-7.163-16-16v-304c0-8.836 7.163-16 16-16zm-52 68H468v200h200z",transform:"translate(144 113.98)"},child:[]}]})(e)}function QA(e){return $e({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M277.375 85v259.704l119.702-119.702L427 256 256 427 85 256l29.924-29.922 119.701 118.626V85h42.75z"},child:[]}]})(e)}function YA(e){return $e({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M277.375 427V167.296l119.702 119.702L427 256 256 85 85 256l29.924 29.922 119.701-118.626V427h42.75z"},child:[]}]})(e)}function ZA(e){return $e({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M186.301 339.893L96 249.461l-32 30.507L186.301 402 448 140.506 416 110z"},child:[]}]})(e)}function JA(){const{t:e}=rt(),[t,r]=(0,n.useState)([]),[o,a]=(0,n.useState)(!0),i=localStorage.getItem("token");(0,n.useEffect)((()=>{(async()=>{const e=await gf.get("https://shop.sharedstore.ma/api/api/admin/fourstats",{headers:{Authorization:`Bearer ${i}`}});e&&(r(e.data),a(!1))})()}),[]);const s=[{icon:(0,nt.jsx)(KA,{className:"shrink-0 size-4 w-5 h-5"}),title:"Total Product",stat:t.product_count},{icon:(0,nt.jsx)(VA,{className:"shrink-0 size-4 w-5 h-5"}),title:"Total Profit",stat:`$${t.revenue_total}`,avgnumber:4.5,avgstatus:"up"},{icon:(0,nt.jsx)(Ng,{className:"shrink-0 size-4 w-5 h-5"}),title:"Total Users",stat:t.user_count,avgnumber:1.5,avgstatus:"down"},{icon:(0,nt.jsx)(ag,{className:"shrink-0 size-4 w-5 h-5"}),title:"Total Orders",stat:t.orders_count,avgnumber:.25,avgstatus:"up"}];return o?(0,nt.jsx)("div",{className:"flex justify-center items-center h-[60vh] w-full",children:(0,nt.jsx)(Bh,{})}):(0,nt.jsxs)("div",{className:"antialiased",children:[(0,nt.jsxs)("div",{className:"flex justify-between gap-2 items-center max-sm:p-1.5 mb-3 max-sm:mb-0",children:[(0,nt.jsx)("p",{className:"text-black font-semibold text-xl max-sm:text-lg",children:e("dashboard")}),(0,nt.jsx)("div",{className:"flex flex-wrap items-center gap-1 max-md:hidden",children:["All","7 days","30 days","90 days"].map(((e,t)=>(0,nt.jsx)("button",{className:"rounded-full bg-black text-white px-3 py-1.5 text-xs",children:e},t)))})]}),(0,nt.jsx)("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2 md:gap-6 xl:grid-cols-4 2xl:gap-7.5",children:s.map(((e,t)=>(0,nt.jsxs)("div",{className:"bg-white text-black rounded-lg border shadow-sm p-7",children:[(0,nt.jsx)("div",{className:"w-max p-3 rounded-full bg-black text-white mb-3",children:e.icon}),(0,nt.jsxs)("div",{className:"flex justify-between",children:[(0,nt.jsxs)("div",{className:"flex flex-col",children:[(0,nt.jsx)("p",{className:"text-2xl font-bold",children:e.stat}),(0,nt.jsx)("p",{className:"text-xs font-semibold text-gray-600",children:e.title})]}),(0,nt.jsxs)("p",{className:"flex flex-wrap items-end text-sm font-semibold "+("up"===e.avgstatus?"text-green-500":"down"===e.avgstatus?"text-red-500":"text-gray-500"),children:[e.avgnumber?`${e.avgnumber}%`:"--","up"===e.avgstatus?(0,nt.jsx)(YA,{className:"h-5 w-5"}):"down"===e.avgstatus?(0,nt.jsx)(QA,{className:"h-5 w-5"}):null]})]})]},t)))})]})}function XA(e){let{prodSlug:t}=e;const{t:r}=rt(),n=localStorage.getItem("token"),{triggerRefresh:o}=cp();return(0,nt.jsxs)("button",{onClick:()=>{ch((e=>(0,nt.jsx)("div",{id:"toast-interactive",className:"w-full max-w-xs p-4 text-gray-500 bg-white rounded-lg shadow",children:(0,nt.jsxs)("div",{className:"flex",children:[(0,nt.jsxs)("div",{className:"inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-red-600 bg-red-200 rounded-lg",children:[(0,nt.jsx)(Uc,{className:"w-5 h-5"}),(0,nt.jsx)("span",{className:"sr-only",children:"delete icon"})]}),(0,nt.jsxs)("div",{className:"ms-3 text-sm font-normal",children:[(0,nt.jsx)("span",{className:"mb-1 text-sm font-semibold text-black",children:r("removeprod")}),(0,nt.jsx)("div",{className:"mb-2 text-sm font-normal",children:r("removeprod-1")}),(0,nt.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,nt.jsx)("div",{children:(0,nt.jsx)("button",{onClick:()=>{gf.delete("https://shop.sharedstore.ma/api/api/product/"+t,{headers:{Authorization:`Bearer ${n}`}}).then((e=>{o(),uh("success",r("delete-product-success"))})).catch((e=>{console.error(e),uh("error",r("delete-product-error"))})),ch.dismiss(e.id)},className:"inline-flex justify-center w-full px-2 py-1.5 text-xs font-medium text-center text-white bg-red-600 rounded-lg hover:bg-red-800 focus:ring-4 focus:outline-none focus:ring-red-300",children:r("yes")})}),(0,nt.jsx)("div",{children:(0,nt.jsx)("button",{onClick:()=>ch.dismiss(e.id),className:"inline-flex justify-center w-full px-2 py-1.5 text-xs font-medium text-center text-black bg-white border border-gray-300 rounded-lg hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-gray-200",children:r("cancel")})})]})]}),(0,nt.jsxs)("button",{onClick:()=>ch.dismiss(e.id),className:"h-6 w-6 ms-auto -mx-1.5 -my-1.5 bg-white items-center justify-center flex-shrink-0 text-gray-400 hover:text-black rounded-lg focus:ring-2 focus:ring-gray-300 hover:bg-gray-100 inline-flex",children:[(0,nt.jsx)("span",{className:"sr-only",children:"Close"}),(0,nt.jsx)(Vc,{className:"w-4 h-4"})]})]})})),{style:{background:"none",boxShadow:"none"},duration:5e3,position:"top-center"})},className:"flex flex-wrap gap-1 px-2 py-1.5 text-red-600 myborder rounded-md hover:bg-gray-100",children:[(0,nt.jsx)(Uc,{className:"h-5 w-5 text-red-600"}),r("delete")]})}function eO(e){let{data:t}=e;const{t:r}=rt(),{refreshKey:o}=cp(),[a,i]=(0,n.useState)([]),[s,l]=(0,n.useState)([]),[c,u]=(0,n.useState)(!1),[d,f]=(0,n.useState)(!0);return(0,n.useEffect)((()=>{try{const e=async()=>{const e=await gf.get(`https://shop.sharedstore.ma/api/api/admin/getdiscountsbyid/${t.productID}`);u(!!e.data.discountID),i(e.data),l(e.data.percentage?parseInt(e.data.percentage)+"%":parseFloat(e.data.amount)+"$"),f(!1)};e()}catch(e){}}),[o]),(0,nt.jsxs)("div",{className:"bg-white shadow-sm rounded-lg myborder p-2",children:[(0,nt.jsx)("div",{className:"relative rounded-md overflow-hidden h-auto max-w-md mx-auto min-h-[265px]",children:d?(0,nt.jsx)(Rh,{className:"rounded-lg",height:265,baseColor:"#F3F4F6",highlightColor:"#D1D5DB"}):(0,nt.jsxs)("a",{href:"/product/"+t.slug,children:[(0,nt.jsx)("img",{className:"object-fill object-center myborder rounded-lg "+(t.stock>0?"":"grayscale"),src:t.image?"https://shop.sharedstore.ma/api.shop.sharedstore.ma/storage/app/public/"+t.image:gh,alt:t.name[ap.language]}),c?(0,nt.jsxs)("span",{className:"absolute top-2 right-2 bg-blue-600 text-white text-xs px-2 py-1 rounded-full",children:["-",s]}):null]})}),(0,nt.jsxs)("div",{className:"p-1 mt-1",children:[(0,nt.jsx)("a",{href:"/product/"+t.slug,className:"text-base font-semibold leading-tight text-black hover:text-blue-700",children:t.name[ap.language].length>45?t.name[ap.language].substring(0,45)+"...":t.name[ap.language]}),(0,nt.jsxs)("div",{className:"flex justify-between gap-2 items-end",children:[(0,nt.jsxs)("div",{className:"mt-1 flex flex-wrap items-center gap-1",children:[(0,nt.jsx)("span",{className:"text-sm font-medium text-black",children:"number"===typeof t.countreview?`${t.countreview}`:null}),(0,nt.jsxs)("div",{className:"flex flex-wrap gap-0.5 text-xs items-center px-1 py-0.5 bg-[#fbbf23] text-white rounded-full",children:[(0,nt.jsx)(Kc,{className:"h-3 w-3"}),t.ratings.toFixed(1)]})]}),(0,nt.jsxs)("div",{className:"flex flex-wrap items-end gap-1 mt-1",children:[(0,nt.jsxs)("p",{className:"text-xl mt-1 font-extrabold leading-none text-black",children:["$",c?a.newPrice.toFixed(2):t.price.toFixed(2)]}),c?(0,nt.jsxs)("span",{className:"text-red-700 line-through text-xs font-semibold",children:["$",t.price.toFixed(2)]}):null]})]}),(0,nt.jsxs)("div",{className:"mt-4 flex text-sm items-center justify-end gap-2 font-semibold",children:[(0,nt.jsxs)("a",{href:`/admin/dashboard/edit_product/${t.slug}`,className:"flex flex-wrap gap-1 px-2 py-1.5 text-black myborder rounded-md hover:bg-gray-100",children:[(0,nt.jsx)(pt,{className:"h-5 w-5 text-black"}),r("edit")]}),(0,nt.jsx)(XA,{prodSlug:t.slug})]})]})]})}function tO(){const{t:e,i18n:t}=rt(),[r,o]=(0,n.useState)([]),[a,i]=(0,n.useState)([]),[s,l]=(0,n.useState)([]),[c,u]=(0,n.useState)(!0),{refreshKey:d}=cp(),[f,p]=(0,n.useState)(""),[h,m]=(0,n.useState)("All products"),[g,b]=(0,n.useState)("All");(0,n.useEffect)((()=>{(async()=>{const e=await kh();e&&l(e);const t=await gf.get("https://shop.sharedstore.ma/api/api/products");o(t.data),i(t.data),u(!1)})()}),[d]);return(0,n.useEffect)((()=>{console.log(h);const e=a.filter((e=>{var r;const n="All products"===h||e.category_id===parseInt(h),o="All"===g||"Available"===g&&e.stock>0||"Unavailable"===g&&e.stock<=0,a=!f||(null===(r=e.name[t.language])||void 0===r?void 0:r.toLowerCase().includes(f.toLowerCase()));return n&&o&&a}));o(e)}),[f,h,g]),c?(0,nt.jsx)("div",{className:"flex justify-center items-center min-h-[80vh] bg-white shadow p-4 max-sm:p-1.5 rounded-md antialiased",children:(0,nt.jsx)(Bh,{sizeProp:120})}):(0,nt.jsxs)("div",{className:"antialiased",children:[(0,nt.jsxs)("div",{className:"flex justify-between gap-2 items-center max-sm:p-1.5 mb-3 max-sm:mb-0",children:[(0,nt.jsx)("p",{className:"text-black font-semibold text-xl max-sm:text-lg",children:e("product-list")}),(0,nt.jsx)("div",{children:(0,nt.jsxs)("a",{href:"/admin/dashboard/add_product",className:"flex flex-wrap gap-1 items-center text-sm bg-blue-600 hover:bg-blue-700 text-white pl-2 pr-3 py-2 max-sm:p-1.5 rounded-md",children:[(0,nt.jsx)(ht,{className:"h-[18px] w-[18px]"}),(0,nt.jsx)("span",{className:"max-sm:hidden",children:e("add-prod")})]})})]}),(0,nt.jsxs)("div",{className:"pb-4 max-sm:py-1.5",children:[(0,nt.jsxs)("div",{className:"shadow-sm border rounded-lg flex justify-between max-md:flex-col gap-2 p-3 bg-white",children:[(0,nt.jsxs)("form",{onSubmit:e=>e.preventDefault(),className:"flex gap-1 sm:min-w-[24rem]",children:[(0,nt.jsx)("input",{type:"text",value:f,onChange:e=>p(e.target.value),placeholder:e("search-input"),className:"myborder rounded-md text-sm w-full text-black placeholder:text-gray-400 py-1.5 px-2"}),(0,nt.jsx)("button",{type:"submit",className:"h-9 min-w-9 flex justify-center items-center rounded-md bg-blue-600 hover:bg-blue-700 text-white",children:(0,nt.jsx)(GA,{className:"w-5 h-5"})})]}),(0,nt.jsxs)("div",{className:"flex flex-wrap gap-2 max-sm:grid max-sm:grid-cols-2",children:[(0,nt.jsxs)("select",{value:g,onChange:e=>b(e.target.value),className:"col-span-1 sm:w-36 rounded-lg myborder bg-white px-2 py-1.5 text-sm font-medium text-black hover:border-gray-300 focus:ring-4 focus:ring-gray-100",children:[(0,nt.jsx)("option",{value:"All",children:e("all")}),(0,nt.jsx)("option",{value:"Available",children:e("available")}),(0,nt.jsx)("option",{value:"Unavailable",children:e("unavailable")})]}),(0,nt.jsxs)("select",{value:h,onChange:e=>m(e.target.value),className:"col-span-1 sm:w-36 rounded-lg myborder bg-white px-2 py-1.5 text-sm font-medium text-black hover:border-gray-300 focus:ring-4 focus:ring-gray-100",children:[(0,nt.jsx)("option",{value:"All products",children:e("All-products")}),s.map(((e,t)=>(0,nt.jsx)("option",{value:e.categoryID,children:e.title[ap.language]},t)))]})]})]}),(0,nt.jsxs)("div",{className:"py-3 grid grid-cols-6 max-2xl:grid-cols-6 max-xl:grid-cols-5 max-lg:grid-cols-4 max-md:grid-cols-3 max-sm:grid-cols-1 gap-3 min-h-20",children:[r.map(((e,t)=>(0,nt.jsx)(eO,{data:e},t))),!r.length>0?(0,nt.jsx)("div",{className:"col-span-7 text-center text-black flex flex-col gap-6 justify-center items-center min-h-[50vh]",children:(0,nt.jsx)("img",{src:xh,className:"w-48 h-auto"})}):null]})]})]})}function rO(e){let{IsThisLicense:t}=e;const{t:r}=rt(),{triggerRefresh:o}=cp(),a=localStorage.getItem("token"),[i,s]=(0,n.useState)(!1),[l,c]=(0,n.useState)(""),[u,d]=(0,n.useState)(""),[f,p]=(0,n.useState)(""),[h,m]=(0,n.useState)(""),g=t?"/admin/licenses":"/admin/categories",b=t?"license":"category";return(0,nt.jsxs)(nt.Fragment,{children:[(0,nt.jsxs)("button",{onClick:()=>s(!0),className:"flex flex-wrap gap-1 items-center text-sm bg-blue-600 hover:bg-blue-700 text-white pl-2 pr-3 py-2 max-sm:p-1.5 rounded-md",children:[(0,nt.jsx)(ht,{className:"h-[18px] w-[18px]"}),(0,nt.jsx)("span",{className:"max-sm:hidden",children:r("add-"+b)})]}),(0,nt.jsxs)(El,{size:"xl",show:i,onClose:()=>s(!1),children:[(0,nt.jsx)(El.Header,{children:r("create-new-"+b)}),(0,nt.jsxs)("form",{onSubmit:e=>{e.preventDefault();const t={title:{en:l,fr:u},details:{en:f,fr:h}};gf.post("https://shop.sharedstore.ma/api/api"+g,t,{headers:{Authorization:`Bearer ${a}`}}).then((e=>{uh("success",r("add-"+b+"-success")),o(),s(!1),c(""),d(""),p(""),m("")})).catch((e=>{uh("error",r("add-"+b+"-error")),console.error(e)}))},children:[(0,nt.jsx)(El.Body,{children:(0,nt.jsx)("div",{children:(0,nt.jsxs)("div",{children:[(0,nt.jsxs)("div",{className:"grid grid-cols-2 gap-2 mb-6",children:[(0,nt.jsxs)("div",{className:"col-span-2",children:[(0,nt.jsxs)("label",{className:"flex flex-wrap items-center gap-1 mb-2 text-sm font-medium text-black",children:["Title ",(0,nt.jsx)("span",{className:"text-blue-600 text-xs",children:"(en)"})]}),(0,nt.jsx)("input",{type:"text",value:l,onChange:e=>c(e.target.value),className:"focus:ring-blue-700 focus:border-blue-700 placeholder:lowercase bg-gray-50 myborder text-black text-sm rounded-lg block w-full p-2.5",placeholder:"Title",required:!0})]}),(0,nt.jsxs)("div",{className:"col-span-2",children:[(0,nt.jsxs)("label",{className:"flex flex-wrap items-center gap-1 mb-2 text-sm font-medium text-black",children:["Titre ",(0,nt.jsx)("span",{className:"text-blue-600 text-xs",children:"(fr)"})]}),(0,nt.jsx)("input",{type:"text",value:u,onChange:e=>d(e.target.value),className:"focus:ring-blue-700 focus:border-blue-700 placeholder:lowercase bg-gray-50 myborder text-black text-sm rounded-lg block w-full p-2.5",placeholder:"Titre",required:!0})]})]}),(0,nt.jsxs)("div",{className:"grid grid-cols-2 gap-2 mb-2",children:[(0,nt.jsxs)("div",{className:"col-span-2",children:[(0,nt.jsxs)("label",{className:"flex flex-wrap items-center gap-1 mb-2 text-sm font-medium text-black",children:["Description ",(0,nt.jsx)("span",{className:"text-blue-600 text-xs",children:"(en)"})]}),(0,nt.jsx)("textarea",{rows:"4",value:f,onChange:e=>p(e.target.value),className:"focus:ring-blue-700 focus:border-blue-700 placeholder:lowercase bg-gray-50 myborder text-black text-sm rounded-lg block w-full p-2.5",placeholder:"description..."})]}),(0,nt.jsxs)("div",{className:"col-span-2",children:[(0,nt.jsxs)("label",{className:"flex flex-wrap items-center gap-1 mb-2 text-sm font-medium text-black",children:["Description ",(0,nt.jsx)("span",{className:"text-blue-600 text-xs",children:"(fr)"})]}),(0,nt.jsx)("textarea",{rows:"4",value:h,onChange:e=>m(e.target.value),className:"focus:ring-blue-700 focus:border-blue-700 placeholder:lowercase bg-gray-50 myborder text-black text-sm rounded-lg block w-full p-2.5",placeholder:"description..."})]})]})]})})}),(0,nt.jsxs)(El.Footer,{children:[(0,nt.jsx)("button",{type:"submit",className:"py-2.5 px-4 bg-blue-600 hover:bg-blue-700 text-white rounded-md text-sm",children:r("create")}),(0,nt.jsx)("button",{className:"py-2.5 px-4 bg-white hover:bg-gray-100 hover:text-blue-600 text-black rounded-md text-sm",onClick:()=>s(!1),children:r("cancel")})]})]})]})]})}function nO(e){let{category_id:t,IsThisLicense:r}=e;const{t:o}=rt(),{triggerRefresh:a}=cp(),i=localStorage.getItem("token"),s="https://shop.sharedstore.ma/api/api",[l,c]=(0,n.useState)(!0),[u,d]=(0,n.useState)(!1),[f,p]=(0,n.useState)(""),[h,m]=(0,n.useState)(""),[g,b]=(0,n.useState)(""),[y,x]=(0,n.useState)(""),v=r?"alllicenses":"allcategories",w=r?"licenses":"categories",k=r?"license":"category";return(0,nt.jsxs)(nt.Fragment,{children:[(0,nt.jsxs)("button",{onClick:()=>{d(!0),gf.get(`${s}/${v}/${t}`).then((e=>{p(e.data.title.en),m(e.data.title.fr),b(e.data.details.en),x(e.data.details.fr),c(!1)})).catch((e=>console.error(e)))},className:"flex flex-wrap gap-1 items-center text-sm bg-blue-600 hover:bg-blue-700 text-white pl-2 pr-2.5 py-1.5 max-sm:p-1.5 rounded-md",children:[(0,nt.jsx)(ug,{className:"h-[16px] w-[16px]"}),(0,nt.jsx)("span",{className:"max-sm:hidden",children:o("edit")})]}),(0,nt.jsxs)(El,{size:"xl",show:u,onClose:()=>d(!1),children:[(0,nt.jsx)(El.Header,{children:o("update-"+k)}),(0,nt.jsxs)("form",{onSubmit:e=>{e.preventDefault();const r={title:{en:f,fr:h},details:{en:g,fr:y}};gf.put(`${s}/admin/${w}/${t}`,r,{headers:{Authorization:`Bearer ${i}`}}).then((e=>{uh("success",o("update-"+k+"-success")),a(),d(!1)})).catch((e=>{uh("error",o("update-"+k+"-error")),console.error(e)}))},children:[l?(0,nt.jsx)("div",{className:"flex justify-center items-center h-[50vh] w-full",children:(0,nt.jsx)(Bh,{})}):(0,nt.jsx)(El.Body,{children:(0,nt.jsx)("div",{children:(0,nt.jsxs)("div",{children:[(0,nt.jsxs)("div",{className:"grid grid-cols-2 gap-2 mb-6",children:[(0,nt.jsxs)("div",{className:"col-span-2",children:[(0,nt.jsxs)("label",{className:"flex flex-wrap items-center gap-1 mb-2 text-sm font-medium text-black",children:["Title ",(0,nt.jsx)("span",{className:"text-blue-600 text-xs",children:"(en)"})]}),(0,nt.jsx)("input",{type:"text",value:f,onChange:e=>p(e.target.value),className:"focus:ring-blue-700 focus:border-blue-700 placeholder:lowercase bg-gray-50 myborder text-black text-sm rounded-lg block w-full p-2.5",placeholder:"Title",required:!0})]}),(0,nt.jsxs)("div",{className:"col-span-2",children:[(0,nt.jsxs)("label",{className:"flex flex-wrap items-center gap-1 mb-2 text-sm font-medium text-black",children:["Titre ",(0,nt.jsx)("span",{className:"text-blue-600 text-xs",children:"(fr)"})]}),(0,nt.jsx)("input",{type:"text",value:h,onChange:e=>m(e.target.value),className:"focus:ring-blue-700 focus:border-blue-700 placeholder:lowercase bg-gray-50 myborder text-black text-sm rounded-lg block w-full p-2.5",placeholder:"Titre",required:!0})]})]}),(0,nt.jsxs)("div",{className:"grid grid-cols-2 gap-2 mb-2",children:[(0,nt.jsxs)("div",{className:"col-span-2",children:[(0,nt.jsxs)("label",{className:"flex flex-wrap items-center gap-1 mb-2 text-sm font-medium text-black",children:["Description ",(0,nt.jsx)("span",{className:"text-blue-600 text-xs",children:"(en)"})]}),(0,nt.jsx)("textarea",{rows:"4",value:g,onChange:e=>b(e.target.value),className:"focus:ring-blue-700 focus:border-blue-700 placeholder:lowercase bg-gray-50 myborder text-black text-sm rounded-lg block w-full p-2.5",placeholder:"description..."})]}),(0,nt.jsxs)("div",{className:"col-span-2",children:[(0,nt.jsxs)("label",{className:"flex flex-wrap items-center gap-1 mb-2 text-sm font-medium text-black",children:["Description ",(0,nt.jsx)("span",{className:"text-blue-600 text-xs",children:"(fr)"})]}),(0,nt.jsx)("textarea",{rows:"4",value:y,onChange:e=>x(e.target.value),className:"focus:ring-blue-700 focus:border-blue-700 placeholder:lowercase bg-gray-50 myborder text-black text-sm rounded-lg block w-full p-2.5",placeholder:"description..."})]})]})]})})}),(0,nt.jsxs)(El.Footer,{children:[(0,nt.jsx)("button",{type:"submit",className:"py-2.5 px-4 bg-blue-600 hover:bg-blue-700 text-white rounded-md text-sm",children:o("save")}),(0,nt.jsx)("button",{className:"py-2.5 px-4 bg-white hover:bg-gray-100 hover:text-blue-600 text-black rounded-md text-sm",onClick:()=>d(!1),children:o("cancel")})]})]})]})]})}function oO(e){let{discount_id:t,typeProp:r}=e;const{t:n}=rt(),o=localStorage.getItem("token"),{triggerRefresh:a}=cp(),i="category"===r?"/admin/categories/":"license"===r?"/admin/licenses/":"/admin/discounts/";return(0,nt.jsxs)("button",{onClick:()=>{ch((e=>(0,nt.jsx)("div",{id:"toast-interactive",className:"w-full max-w-xs p-4 text-gray-500 bg-white rounded-lg shadow",children:(0,nt.jsxs)("div",{className:"flex",children:[(0,nt.jsxs)("div",{className:"inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-red-600 bg-red-200 rounded-lg",children:[(0,nt.jsx)(Uc,{className:"w-5 h-5"}),(0,nt.jsx)("span",{className:"sr-only",children:"delete icon"})]}),(0,nt.jsxs)("div",{className:"ms-3 text-sm font-normal",children:[(0,nt.jsx)("span",{className:"mb-1 text-sm font-semibold text-black",children:n("remove-"+r)}),(0,nt.jsx)("div",{className:"mb-2 text-sm font-normal",children:n("remove-"+r+"-txt")}),(0,nt.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,nt.jsx)("div",{children:(0,nt.jsx)("button",{onClick:()=>{gf.delete("https://shop.sharedstore.ma/api/api"+i+t,{headers:{Authorization:`Bearer ${o}`}}).then((e=>{a(),uh("success",n("delete-"+r+"-success"))})).catch((e=>{console.error(e),uh("error",n("delete-"+r+"-error"))})),ch.dismiss(e.id)},className:"inline-flex justify-center w-full px-2 py-1.5 text-xs font-medium text-center text-white bg-red-600 rounded-lg hover:bg-red-800 focus:ring-4 focus:outline-none focus:ring-red-300",children:n("yes")})}),(0,nt.jsx)("div",{children:(0,nt.jsx)("button",{onClick:()=>ch.dismiss(e.id),className:"inline-flex justify-center w-full px-2 py-1.5 text-xs font-medium text-center text-black bg-white border border-gray-300 rounded-lg hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-gray-200",children:n("cancel")})})]})]}),(0,nt.jsxs)("button",{onClick:()=>ch.dismiss(e.id),className:"h-6 w-6 ms-auto -mx-1.5 -my-1.5 bg-white items-center justify-center flex-shrink-0 text-gray-400 hover:text-black rounded-lg focus:ring-2 focus:ring-gray-300 hover:bg-gray-100 inline-flex",children:[(0,nt.jsx)("span",{className:"sr-only",children:"Close"}),(0,nt.jsx)(Vc,{className:"w-4 h-4"})]})]})})),{style:{background:"none",boxShadow:"none"},duration:5e3,position:"top-center"})},className:"flex flex-wrap items-center gap-1 font-semibold myborder px-2 py-1.5 text-red-600 text-sm rounded-md bg-white hover:bg-red-100",children:[(0,nt.jsx)(Uc,{className:"w-4 h-4"}),n("delete")]})}function aO(){const{t:e}=rt(),[t,r]=(0,n.useState)(!0),o=localStorage.getItem("token"),{refreshKey:a}=cp(),[i,s]=(0,n.useState)([]),[l,c]=(0,n.useState)([]),[u,d]=(0,n.useState)("");(0,n.useEffect)((()=>{try{const e=async()=>{const e=await gf.get("https://shop.sharedstore.ma/api/api/admin/categories",{headers:{Authorization:`Bearer ${o}`}});s(e.data),c(e.data),r(!1)};e()}catch(e){}}),[a]);return(0,nt.jsxs)("div",{className:"antialiased",children:[(0,nt.jsxs)("div",{className:"flex justify-between gap-2 items-center max-sm:p-1.5 mb-3 max-sm:mb-0",children:[(0,nt.jsx)("p",{className:"text-black font-semibold text-xl max-sm:text-lg",children:e("special-categories")}),(0,nt.jsx)(rO,{})]}),(0,nt.jsxs)("div",{className:"",children:[(0,nt.jsx)("div",{className:"shadow-sm border rounded-lg p-3 bg-white flex justify-between max-sm:flex-col gap-2 items-center",children:(0,nt.jsxs)("form",{onSubmit:e=>{e.preventDefault();const t=u.toLowerCase(),r=i.filter((e=>e.title[ap.language].toLowerCase().includes(t)));c(r)},className:"flex gap-1 w-full",children:[(0,nt.jsx)("input",{className:"myborder rounded-md text-sm w-full text-black placeholder:text-gray-400 py-1.5 px-2",placeholder:e("search-input-categories"),type:"text",value:u,onChange:e=>d(e.target.value)}),(0,nt.jsx)("button",{type:"submit",className:"h-[34px] min-w-[34px] flex justify-center items-center rounded-md bg-blue-600 hover:bg-blue-700 text-white",children:(0,nt.jsx)(GA,{className:"w-5 h-5"})})]})}),(0,nt.jsx)("div",{className:"relative overflow-x-auto rounded-lg bg-white mt-3 border shadow-sm",children:t?(0,nt.jsx)("div",{className:"flex justify-center items-center h-[50vh] w-full",children:(0,nt.jsx)(Bh,{})}):l.length>0?(0,nt.jsxs)("table",{className:"w-full text-sm text-left rtl:text-right text-gray-500",children:[(0,nt.jsx)("thead",{className:"text-xs text-gray-700 bg-gray-50",children:(0,nt.jsxs)("tr",{children:[(0,nt.jsxs)("th",{className:"px-6 py-3",children:[e("category")," ID"]}),(0,nt.jsx)("th",{className:"px-6 py-3",children:e("title")}),(0,nt.jsx)("th",{className:"px-6 py-3",children:e("details")}),(0,nt.jsx)("th",{className:"px-6 py-3",children:"Actions"})]})}),(0,nt.jsx)("tbody",{children:l.map(((e,t)=>(0,nt.jsxs)("tr",{className:"bg-white border-b",children:[(0,nt.jsx)("th",{scope:"row",className:"px-6 py-4 font-semibold text-gray-900 whitespace-nowrap",children:e.categoryID}),(0,nt.jsx)("td",{className:"px-6 py-4",children:e.title[ap.language]}),(0,nt.jsx)("td",{className:"px-6 py-4 max-w-64",children:e.details[ap.language]}),(0,nt.jsxs)("td",{className:"flex flex-wrap items-center gap-2 px-6 py-4",children:[(0,nt.jsx)(nO,{category_id:e.categoryID}),(0,nt.jsx)(oO,{discount_id:e.categoryID,typeProp:"category"})]})]},t)))})]}):(0,nt.jsx)("div",{className:"flex justify-center items-center py-10 text-gray-500",children:(0,nt.jsx)("div",{className:"col-span-4 text-center text-black flex flex-col gap-6 justify-center items-center min-h-[40vh]",children:(0,nt.jsx)("img",{src:xh,className:"w-48 h-auto"})})})})]})]})}function iO(){const{t:e}=rt(),[t,r]=(0,n.useState)(!0),o=localStorage.getItem("token"),{refreshKey:a}=cp(),[i,s]=(0,n.useState)([]),[l,c]=(0,n.useState)([]),[u,d]=(0,n.useState)("");(0,n.useEffect)((()=>{try{const e=async()=>{const e=await gf.get("https://shop.sharedstore.ma/api/api/admin/licenses",{headers:{Authorization:`Bearer ${o}`}});s(e.data),c(e.data),r(!1)};e()}catch(e){}}),[a]);return(0,nt.jsxs)("div",{className:"antialiased",children:[(0,nt.jsxs)("div",{className:"flex justify-between gap-2 items-center max-sm:p-1.5 mb-3 max-sm:mb-0",children:[(0,nt.jsx)("p",{className:"text-black font-semibold text-xl max-sm:text-lg",children:e("special-licenses")}),(0,nt.jsx)(rO,{IsThisLicense:!0})]}),(0,nt.jsxs)("div",{className:"",children:[(0,nt.jsx)("div",{className:"p-3 shadow-sm border rounded-lg bg-white",children:(0,nt.jsxs)("form",{onSubmit:e=>{e.preventDefault();const t=u.toLowerCase(),r=i.filter((e=>e.title[ap.language].toLowerCase().includes(t)));c(r)},className:"flex gap-1 w-full",children:[(0,nt.jsx)("input",{className:"myborder rounded-md text-sm w-full text-black placeholder:text-gray-400 py-1.5 px-2",placeholder:e("search-input-licenses"),type:"text",value:u,onChange:e=>d(e.target.value)}),(0,nt.jsx)("button",{type:"submit",className:"h-[34px] min-w-[34px] flex justify-center items-center rounded-md bg-blue-600 hover:bg-blue-700 text-white",children:(0,nt.jsx)(GA,{className:"w-5 h-5"})})]})}),(0,nt.jsx)("div",{className:"relative overflow-x-auto rounded-lg bg-white mt-3 border shadow-sm",children:t?(0,nt.jsx)("div",{className:"flex justify-center items-center h-[50vh] w-full",children:(0,nt.jsx)(Bh,{})}):l.length>0?(0,nt.jsxs)("table",{className:"w-full text-sm text-left rtl:text-right text-gray-500",children:[(0,nt.jsx)("thead",{className:"text-xs text-gray-700 bg-gray-50",children:(0,nt.jsxs)("tr",{children:[(0,nt.jsxs)("th",{className:"px-6 py-3",children:[e("license")," ID"]}),(0,nt.jsx)("th",{className:"px-6 py-3",children:e("title")}),(0,nt.jsx)("th",{className:"px-6 py-3",children:e("details")}),(0,nt.jsx)("th",{className:"px-6 py-3",children:"Actions"})]})}),(0,nt.jsx)("tbody",{children:l.map(((e,t)=>(0,nt.jsxs)("tr",{className:"bg-white border-b",children:[(0,nt.jsx)("th",{scope:"row",className:"px-6 py-4 font-semibold text-gray-900 whitespace-nowrap",children:e.licenseID}),(0,nt.jsx)("td",{className:"px-6 py-4",children:e.title[ap.language]}),(0,nt.jsx)("td",{className:"px-6 py-4 max-w-64",children:e.details[ap.language]}),(0,nt.jsxs)("td",{className:"flex flex-wrap items-center gap-2 px-6 py-4",children:[(0,nt.jsx)(nO,{category_id:e.licenseID,IsThisLicense:!0}),(0,nt.jsx)(oO,{discount_id:e.licenseID,typeProp:"license"})]})]},t)))})]}):(0,nt.jsx)("div",{className:"flex justify-center items-center py-10 text-gray-500",children:(0,nt.jsx)("div",{className:"col-span-4 text-center text-black flex flex-col gap-6 justify-center items-center min-h-[40vh]",children:(0,nt.jsx)("img",{src:xh,className:"w-48 h-auto"})})})})]})]})}function sO(e){return $e({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M15.999 8.5h2c0-2.837-2.755-4.131-5-4.429V2h-2v2.071c-2.245.298-5 1.592-5 4.429 0 2.706 2.666 4.113 5 4.43v4.97c-1.448-.251-3-1.024-3-2.4h-2c0 2.589 2.425 4.119 5 4.436V22h2v-2.07c2.245-.298 5-1.593 5-4.43s-2.755-4.131-5-4.429V6.1c1.33.239 3 .941 3 2.4zm-8 0c0-1.459 1.67-2.161 3-2.4v4.799c-1.371-.253-3-1.002-3-2.399zm8 7c0 1.459-1.67 2.161-3 2.4v-4.8c1.33.239 3 .941 3 2.4z"},child:[]}]})(e)}function lO(e){return $e({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M21 4H3a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h18a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1zm-1 11a3 3 0 0 0-3 3H7a3 3 0 0 0-3-3V9a3 3 0 0 0 3-3h10a3 3 0 0 0 3 3v6z"},child:[]},{tag:"path",attr:{d:"M12 8c-2.206 0-4 1.794-4 4s1.794 4 4 4 4-1.794 4-4-1.794-4-4-4zm0 6c-1.103 0-2-.897-2-2s.897-2 2-2 2 .897 2 2-.897 2-2 2z"},child:[]}]})(e)}function cO(e){return $e({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M6 7H5v13a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7H6zm4 12H8v-9h2v9zm6 0h-2v-9h2v9zm.618-15L15 2H9L7.382 4H3v2h18V4z"},child:[]}]})(e)}function uO(e){let{requirements:t,setRequirements:r}=e;const{t:o}=rt(),[a,i]=(0,n.useState)(!1),[s,l]=(0,n.useState)({en:{title:"",details:""},fr:{title:"",details:""}}),c=(e,t,r)=>{l((n=>({...n,[e]:{...n[e],[t]:r}})))},u=e=>{ch((n=>(0,nt.jsx)("div",{id:"toast-interactive",className:"w-full max-w-xs p-4 text-gray-500 bg-white rounded-lg shadow",children:(0,nt.jsxs)("div",{className:"flex",children:[(0,nt.jsxs)("div",{className:"inline-flex items-center justify-center flex-shrink-0 w-8 h-8 text-red-600 bg-red-200 rounded-lg",children:[(0,nt.jsx)(cO,{className:"w-5 h-5"}),(0,nt.jsx)("span",{className:"sr-only",children:"delete icon"})]}),(0,nt.jsxs)("div",{className:"ms-3 text-sm font-normal",children:[(0,nt.jsx)("span",{className:"mb-1 text-sm font-semibold text-black",children:o("remove-item")}),(0,nt.jsx)("div",{className:"mb-2 text-sm font-normal",children:o("remove-item-txt")}),(0,nt.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,nt.jsx)("div",{children:(0,nt.jsx)("button",{onClick:()=>{(e=>{const n=t.filter(((t,r)=>r!==e));r(n)})(e),ch.dismiss(n.id)},className:"inline-flex justify-center w-full px-2 py-1.5 text-xs font-medium text-center text-white bg-red-600 rounded-lg hover:bg-red-800 focus:ring-4 focus:outline-none focus:ring-red-300",children:o("yes")})}),(0,nt.jsx)("div",{children:(0,nt.jsx)("button",{onClick:()=>ch.dismiss(n.id),className:"inline-flex justify-center w-full px-2 py-1.5 text-xs font-medium text-center text-black bg-white border border-gray-300 rounded-lg hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-gray-200",children:o("cancel")})})]})]}),(0,nt.jsxs)("button",{onClick:()=>ch.dismiss(n.id),className:"h-6 w-6 ms-auto -mx-1.5 -my-1.5 bg-white items-center justify-center flex-shrink-0 text-gray-400 hover:text-black rounded-lg focus:ring-2 focus:ring-gray-300 hover:bg-gray-100 inline-flex",children:[(0,nt.jsx)("span",{className:"sr-only",children:"Close"}),(0,nt.jsx)(ze,{className:"w-4 h-4"})]})]})})),{style:{background:"none",boxShadow:"none"},duration:5e3,position:"top-center"})};return(0,nt.jsxs)("div",{children:[(0,nt.jsxs)(El,{size:"xl",show:a,onClose:()=>i(!1),children:[(0,nt.jsx)(El.Header,{className:"py-3",children:(0,nt.jsx)("p",{className:"text-base/8",children:o("add-system-req")})}),(0,nt.jsxs)(El.Body,{children:[(0,nt.jsxs)("div",{className:"mb-3",children:[(0,nt.jsxs)("label",{className:"block mb-1 text-sm font-medium text-black",children:["Title ",(0,nt.jsx)("strong",{className:"text-blue-700",children:"(en)"})]}),(0,nt.jsx)("input",{type:"text",className:"bg-gray-50 myborder text-black text-sm rounded-lg focus:ring-blue-700 focus:border-blue-700 block w-full p-2.5",value:s.en.title,onChange:e=>c("en","title",e.target.value)})]}),(0,nt.jsxs)("div",{className:"mb-3",children:[(0,nt.jsxs)("label",{className:"block mb-1 text-sm font-medium text-black",children:["Titre ",(0,nt.jsx)("strong",{className:"text-blue-700",children:"(fr)"})]}),(0,nt.jsx)("input",{type:"text",className:"bg-gray-50 myborder text-black text-sm rounded-lg focus:ring-blue-700 focus:border-blue-700 block w-full p-2.5",value:s.fr.title,onChange:e=>c("fr","title",e.target.value)})]}),(0,nt.jsxs)("div",{className:"mb-3",children:[(0,nt.jsxs)("label",{className:"block mb-1 text-sm font-medium text-black",children:[" Details ",(0,nt.jsx)("strong",{className:"text-blue-700",children:"(en)"})]}),(0,nt.jsx)("textarea",{rows:3,className:"bg-gray-50 myborder text-black text-sm rounded-lg focus:ring-blue-700 focus:border-blue-700 block w-full p-2.5",value:s.en.details,onChange:e=>c("en","details",e.target.value)})]}),(0,nt.jsxs)("div",{className:"mb-3",children:[(0,nt.jsxs)("label",{className:"block mb-1 text-sm font-medium text-black",children:[" D\xe9tails ",(0,nt.jsx)("strong",{className:"text-blue-700",children:"(fr)"})]}),(0,nt.jsx)("textarea",{rows:3,className:"bg-gray-50 myborder text-black text-sm rounded-lg focus:ring-blue-700 focus:border-blue-700 block w-full p-2.5",value:s.fr.details,onChange:e=>c("fr","details",e.target.value)})]}),(0,nt.jsxs)("div",{className:"flex justify-start gap-2 mt-4",children:[(0,nt.jsx)("button",{onClick:()=>{r([...t,s]),l({en:{title:"",details:""},fr:{title:"",details:""}}),i(!1)},className:"py-2.5 px-4 bg-blue-600 hover:bg-blue-700 text-white rounded-md text-sm",children:o("add")}),(0,nt.jsx)("button",{className:"py-2.5 px-4 bg-white hover:bg-gray-100 hover:text-blue-600 text-black rounded-md text-sm",onClick:()=>i(!1),children:o("cancel")})]})]})]}),(0,nt.jsxs)("div",{className:"flex justify-between gap-2 px-4 sm:px-0",children:[(0,nt.jsx)("h3",{className:"text-lg font-semibold text-gray-900",children:o("system-req")}),(0,nt.jsx)("div",{className:"cursor-pointer bg-blue-600 hover:bg-blue-700 text-white p-1.5 rounded",onClick:()=>i(!0),children:(0,nt.jsx)(ht,{className:"w-[18px] h-[18px]"})})]}),t.length>0?(0,nt.jsx)("div",{className:"mt-6 border-t border-gray-100",children:(0,nt.jsx)("dl",{className:"divide-y divide-gray-100",children:t.map(((e,t)=>(0,nt.jsxs)("div",{className:"flex items-center w-full gap-2",children:[(0,nt.jsxs)("div",{className:"flex-grow px-4 py-3 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-0",children:[(0,nt.jsx)("dt",{className:"text-sm/6 font-medium text-gray-900",children:e[ap.language].title}),(0,nt.jsx)("dd",{className:"mt-1 text-sm/6 text-gray-700 sm:col-span-2 sm:mt-0",children:e[ap.language].details})]}),(0,nt.jsx)("div",{onClick:()=>u(t),className:"cursor-pointer bg-red-600 hover:bg-red-700 text-white h-[30px] w-[30px] flex items-center justify-center rounded",children:"\u2716"})]},t)))})}):(0,nt.jsx)("p",{className:"mt-4 text-sm text-gray-500",children:o("no-requirements")})]})}var dO=function(e,t){return dO=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},dO(e,t)};function fO(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}dO(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var pO=function(){return pO=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},pO.apply(this,arguments)};Object.create;Object.create;"function"===typeof SuppressedError&&SuppressedError;var hO=r(1185),mO=r.n(hO);function gO(e,t,r,n,o){void 0===o&&(o=0);var a=jO(t.width,t.height,o),i=a.width,s=a.height;return{x:bO(e.x,i,r.width,n),y:bO(e.y,s,r.height,n)}}function bO(e,t,r,n){var o=t*n/2-r/2;return NO(e,-o,o)}function yO(e,t){return Math.sqrt(Math.pow(e.y-t.y,2)+Math.pow(e.x-t.x,2))}function xO(e,t){return 180*Math.atan2(t.y-e.y,t.x-e.x)/Math.PI}function vO(e,t){return Math.min(e,Math.max(0,t))}function wO(e,t){return t}function kO(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function jO(e,t,r){var n=r*Math.PI/180;return{width:Math.abs(Math.cos(n)*e)+Math.abs(Math.sin(n)*t),height:Math.abs(Math.sin(n)*e)+Math.abs(Math.cos(n)*t)}}function NO(e,t,r){return Math.min(Math.max(e,t),r)}function CO(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter((function(e){return"string"===typeof e&&e.length>0})).join(" ").trim()}var SO=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.imageRef=n.createRef(),r.videoRef=n.createRef(),r.containerPosition={x:0,y:0},r.containerRef=null,r.styleRef=null,r.containerRect=null,r.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},r.dragStartPosition={x:0,y:0},r.dragStartCrop={x:0,y:0},r.gestureZoomStart=0,r.gestureRotationStart=0,r.isTouching=!1,r.lastPinchDistance=0,r.lastPinchRotation=0,r.rafDragTimeout=null,r.rafPinchTimeout=null,r.wheelTimer=null,r.currentDoc="undefined"!==typeof document?document:null,r.currentWindow="undefined"!==typeof window?window:null,r.resizeObserver=null,r.state={cropSize:null,hasWheelJustStarted:!1,mediaObjectFit:void 0},r.initResizeObserver=function(){if("undefined"!==typeof window.ResizeObserver&&r.containerRef){var e=!0;r.resizeObserver=new window.ResizeObserver((function(t){e?e=!1:r.computeSizes()})),r.resizeObserver.observe(r.containerRef)}},r.preventZoomSafari=function(e){return e.preventDefault()},r.cleanEvents=function(){r.currentDoc&&(r.currentDoc.removeEventListener("mousemove",r.onMouseMove),r.currentDoc.removeEventListener("mouseup",r.onDragStopped),r.currentDoc.removeEventListener("touchmove",r.onTouchMove),r.currentDoc.removeEventListener("touchend",r.onDragStopped),r.currentDoc.removeEventListener("gesturemove",r.onGestureMove),r.currentDoc.removeEventListener("gestureend",r.onGestureEnd),r.currentDoc.removeEventListener("scroll",r.onScroll))},r.clearScrollEvent=function(){r.containerRef&&r.containerRef.removeEventListener("wheel",r.onWheel),r.wheelTimer&&clearTimeout(r.wheelTimer)},r.onMediaLoad=function(){var e=r.computeSizes();e&&(r.emitCropData(),r.setInitialCrop(e)),r.props.onMediaLoaded&&r.props.onMediaLoaded(r.mediaSize)},r.setInitialCrop=function(e){if(r.props.initialCroppedAreaPercentages){var t=function(e,t,r,n,o,a){var i=jO(t.width,t.height,r),s=NO(n.width/i.width*(100/e.width),o,a);return{crop:{x:s*i.width/2-n.width/2-i.width*s*(e.x/100),y:s*i.height/2-n.height/2-i.height*s*(e.y/100)},zoom:s}}(r.props.initialCroppedAreaPercentages,r.mediaSize,r.props.rotation,e,r.props.minZoom,r.props.maxZoom),n=t.crop,o=t.zoom;r.props.onCropChange(n),r.props.onZoomChange&&r.props.onZoomChange(o)}else if(r.props.initialCroppedAreaPixels){var a=function(e,t,r,n,o,a){void 0===r&&(r=0);var i=jO(t.naturalWidth,t.naturalHeight,r),s=NO(function(e,t,r){var n=function(e){return e.width>e.height?e.width/e.naturalWidth:e.height/e.naturalHeight}(t);return r.height>r.width?r.height/(e.height*n):r.width/(e.width*n)}(e,t,n),o,a),l=n.height>n.width?n.height/e.height:n.width/e.width;return{crop:{x:((i.width-e.width)/2-e.x)*l,y:((i.height-e.height)/2-e.y)*l},zoom:s}}(r.props.initialCroppedAreaPixels,r.mediaSize,r.props.rotation,e,r.props.minZoom,r.props.maxZoom);n=a.crop,o=a.zoom;r.props.onCropChange(n),r.props.onZoomChange&&r.props.onZoomChange(o)}},r.computeSizes=function(){var e,t,n,o,a,i,s=r.imageRef.current||r.videoRef.current;if(s&&r.containerRef){r.containerRect=r.containerRef.getBoundingClientRect(),r.saveContainerPosition();var l=r.containerRect.width/r.containerRect.height,c=(null===(e=r.imageRef.current)||void 0===e?void 0:e.naturalWidth)||(null===(t=r.videoRef.current)||void 0===t?void 0:t.videoWidth)||0,u=(null===(n=r.imageRef.current)||void 0===n?void 0:n.naturalHeight)||(null===(o=r.videoRef.current)||void 0===o?void 0:o.videoHeight)||0,d=c/u,f=void 0;if(s.offsetWidth<c||s.offsetHeight<u)switch(r.state.mediaObjectFit){default:case"contain":f=l>d?{width:r.containerRect.height*d,height:r.containerRect.height}:{width:r.containerRect.width,height:r.containerRect.width/d};break;case"horizontal-cover":f={width:r.containerRect.width,height:r.containerRect.width/d};break;case"vertical-cover":f={width:r.containerRect.height*d,height:r.containerRect.height}}else f={width:s.offsetWidth,height:s.offsetHeight};r.mediaSize=pO(pO({},f),{naturalWidth:c,naturalHeight:u}),r.props.setMediaSize&&r.props.setMediaSize(r.mediaSize);var p=r.props.cropSize?r.props.cropSize:function(e,t,r,n,o,a){void 0===a&&(a=0);var i=jO(e,t,a),s=i.width,l=i.height,c=Math.min(s,r),u=Math.min(l,n);return c>u*o?{width:u*o,height:u}:{width:c,height:c/o}}(r.mediaSize.width,r.mediaSize.height,r.containerRect.width,r.containerRect.height,r.props.aspect,r.props.rotation);return(null===(a=r.state.cropSize)||void 0===a?void 0:a.height)===p.height&&(null===(i=r.state.cropSize)||void 0===i?void 0:i.width)===p.width||r.props.onCropSizeChange&&r.props.onCropSizeChange(p),r.setState({cropSize:p},r.recomputeCropPosition),r.props.setCropSize&&r.props.setCropSize(p),p}},r.saveContainerPosition=function(){if(r.containerRef){var e=r.containerRef.getBoundingClientRect();r.containerPosition={x:e.left,y:e.top}}},r.onMouseDown=function(e){r.currentDoc&&(e.preventDefault(),r.currentDoc.addEventListener("mousemove",r.onMouseMove),r.currentDoc.addEventListener("mouseup",r.onDragStopped),r.saveContainerPosition(),r.onDragStart(t.getMousePoint(e)))},r.onMouseMove=function(e){return r.onDrag(t.getMousePoint(e))},r.onScroll=function(e){r.currentDoc&&(e.preventDefault(),r.saveContainerPosition())},r.onTouchStart=function(e){r.currentDoc&&(r.isTouching=!0,r.props.onTouchRequest&&!r.props.onTouchRequest(e)||(r.currentDoc.addEventListener("touchmove",r.onTouchMove,{passive:!1}),r.currentDoc.addEventListener("touchend",r.onDragStopped),r.saveContainerPosition(),2===e.touches.length?r.onPinchStart(e):1===e.touches.length&&r.onDragStart(t.getTouchPoint(e.touches[0]))))},r.onTouchMove=function(e){e.preventDefault(),2===e.touches.length?r.onPinchMove(e):1===e.touches.length&&r.onDrag(t.getTouchPoint(e.touches[0]))},r.onGestureStart=function(e){r.currentDoc&&(e.preventDefault(),r.currentDoc.addEventListener("gesturechange",r.onGestureMove),r.currentDoc.addEventListener("gestureend",r.onGestureEnd),r.gestureZoomStart=r.props.zoom,r.gestureRotationStart=r.props.rotation)},r.onGestureMove=function(e){if(e.preventDefault(),!r.isTouching){var n=t.getMousePoint(e),o=r.gestureZoomStart-1+e.scale;if(r.setNewZoom(o,n,{shouldUpdatePosition:!0}),r.props.onRotationChange){var a=r.gestureRotationStart+e.rotation;r.props.onRotationChange(a)}}},r.onGestureEnd=function(e){r.cleanEvents()},r.onDragStart=function(e){var t,n,o=e.x,a=e.y;r.dragStartPosition={x:o,y:a},r.dragStartCrop=pO({},r.props.crop),null===(n=(t=r.props).onInteractionStart)||void 0===n||n.call(t)},r.onDrag=function(e){var t=e.x,n=e.y;r.currentWindow&&(r.rafDragTimeout&&r.currentWindow.cancelAnimationFrame(r.rafDragTimeout),r.rafDragTimeout=r.currentWindow.requestAnimationFrame((function(){if(r.state.cropSize&&void 0!==t&&void 0!==n){var e=t-r.dragStartPosition.x,o=n-r.dragStartPosition.y,a={x:r.dragStartCrop.x+e,y:r.dragStartCrop.y+o},i=r.props.restrictPosition?gO(a,r.mediaSize,r.state.cropSize,r.props.zoom,r.props.rotation):a;r.props.onCropChange(i)}})))},r.onDragStopped=function(){var e,t;r.isTouching=!1,r.cleanEvents(),r.emitCropData(),null===(t=(e=r.props).onInteractionEnd)||void 0===t||t.call(e)},r.onWheel=function(e){if(r.currentWindow&&(!r.props.onWheelRequest||r.props.onWheelRequest(e))){e.preventDefault();var n=t.getMousePoint(e),o=mO()(e).pixelY,a=r.props.zoom-o*r.props.zoomSpeed/200;r.setNewZoom(a,n,{shouldUpdatePosition:!0}),r.state.hasWheelJustStarted||r.setState({hasWheelJustStarted:!0},(function(){var e,t;return null===(t=(e=r.props).onInteractionStart)||void 0===t?void 0:t.call(e)})),r.wheelTimer&&clearTimeout(r.wheelTimer),r.wheelTimer=r.currentWindow.setTimeout((function(){return r.setState({hasWheelJustStarted:!1},(function(){var e,t;return null===(t=(e=r.props).onInteractionEnd)||void 0===t?void 0:t.call(e)}))}),250)}},r.getPointOnContainer=function(e,t){var n=e.x,o=e.y;if(!r.containerRect)throw new Error("The Cropper is not mounted");return{x:r.containerRect.width/2-(n-t.x),y:r.containerRect.height/2-(o-t.y)}},r.getPointOnMedia=function(e){var t=e.x,n=e.y,o=r.props,a=o.crop,i=o.zoom;return{x:(t+a.x)/i,y:(n+a.y)/i}},r.setNewZoom=function(e,t,n){var o=(void 0===n?{}:n).shouldUpdatePosition,a=void 0===o||o;if(r.state.cropSize&&r.props.onZoomChange){var i=NO(e,r.props.minZoom,r.props.maxZoom);if(a){var s=r.getPointOnContainer(t,r.containerPosition),l=r.getPointOnMedia(s),c={x:l.x*i-s.x,y:l.y*i-s.y},u=r.props.restrictPosition?gO(c,r.mediaSize,r.state.cropSize,i,r.props.rotation):c;r.props.onCropChange(u)}r.props.onZoomChange(i)}},r.getCropData=function(){return r.state.cropSize?function(e,t,r,n,o,a,i){void 0===a&&(a=0),void 0===i&&(i=!0);var s=i?vO:wO,l=jO(t.width,t.height,a),c=jO(t.naturalWidth,t.naturalHeight,a),u={x:s(100,((l.width-r.width/o)/2-e.x/o)/l.width*100),y:s(100,((l.height-r.height/o)/2-e.y/o)/l.height*100),width:s(100,r.width/l.width*100/o),height:s(100,r.height/l.height*100/o)},d=Math.round(s(c.width,u.width*c.width/100)),f=Math.round(s(c.height,u.height*c.height/100)),p=c.width>=c.height*n?{width:Math.round(f*n),height:f}:{width:d,height:Math.round(d/n)};return{croppedAreaPercentages:u,croppedAreaPixels:pO(pO({},p),{x:Math.round(s(c.width-p.width,u.x*c.width/100)),y:Math.round(s(c.height-p.height,u.y*c.height/100))})}}(r.props.restrictPosition?gO(r.props.crop,r.mediaSize,r.state.cropSize,r.props.zoom,r.props.rotation):r.props.crop,r.mediaSize,r.state.cropSize,r.getAspect(),r.props.zoom,r.props.rotation,r.props.restrictPosition):null},r.emitCropData=function(){var e=r.getCropData();if(e){var t=e.croppedAreaPercentages,n=e.croppedAreaPixels;r.props.onCropComplete&&r.props.onCropComplete(t,n),r.props.onCropAreaChange&&r.props.onCropAreaChange(t,n)}},r.emitCropAreaChange=function(){var e=r.getCropData();if(e){var t=e.croppedAreaPercentages,n=e.croppedAreaPixels;r.props.onCropAreaChange&&r.props.onCropAreaChange(t,n)}},r.recomputeCropPosition=function(){if(r.state.cropSize){var e=r.props.restrictPosition?gO(r.props.crop,r.mediaSize,r.state.cropSize,r.props.zoom,r.props.rotation):r.props.crop;r.props.onCropChange(e),r.emitCropData()}},r.onKeyDown=function(e){var t=r.props,n=t.crop,o=t.onCropChange,a=t.keyboardStep,i=t.zoom,s=t.rotation,l=a;if(r.state.cropSize){e.shiftKey&&(l*=.2);var c=pO({},n);switch(e.key){case"ArrowUp":c.y-=l,e.preventDefault();break;case"ArrowDown":c.y+=l,e.preventDefault();break;case"ArrowLeft":c.x-=l,e.preventDefault();break;case"ArrowRight":c.x+=l,e.preventDefault();break;default:return}r.props.restrictPosition&&(c=gO(c,r.mediaSize,r.state.cropSize,i,s)),o(c)}},r}return fO(t,e),t.prototype.componentDidMount=function(){this.currentDoc&&this.currentWindow&&(this.containerRef&&(this.containerRef.ownerDocument&&(this.currentDoc=this.containerRef.ownerDocument),this.currentDoc.defaultView&&(this.currentWindow=this.currentDoc.defaultView),this.initResizeObserver(),"undefined"===typeof window.ResizeObserver&&this.currentWindow.addEventListener("resize",this.computeSizes),this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.onGestureStart)),this.currentDoc.addEventListener("scroll",this.onScroll),this.props.disableAutomaticStylesInjection||(this.styleRef=this.currentDoc.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.props.nonce&&this.styleRef.setAttribute("nonce",this.props.nonce),this.styleRef.innerHTML=".reactEasyCrop_Container {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n overflow: hidden;\n user-select: none;\n touch-action: none;\n cursor: move;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.reactEasyCrop_Image,\n.reactEasyCrop_Video {\n will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */\n}\n\n.reactEasyCrop_Contain {\n max-width: 100%;\n max-height: 100%;\n margin: auto;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n}\n.reactEasyCrop_Cover_Horizontal {\n width: 100%;\n height: auto;\n}\n.reactEasyCrop_Cover_Vertical {\n width: auto;\n height: 100%;\n}\n\n.reactEasyCrop_CropArea {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n border: 1px solid rgba(255, 255, 255, 0.5);\n box-sizing: border-box;\n box-shadow: 0 0 0 9999em;\n color: rgba(0, 0, 0, 0.5);\n overflow: hidden;\n}\n\n.reactEasyCrop_CropAreaRound {\n border-radius: 50%;\n}\n\n.reactEasyCrop_CropAreaGrid::before {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 0;\n bottom: 0;\n left: 33.33%;\n right: 33.33%;\n border-top: 0;\n border-bottom: 0;\n}\n\n.reactEasyCrop_CropAreaGrid::after {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 33.33%;\n bottom: 33.33%;\n left: 0;\n right: 0;\n border-left: 0;\n border-right: 0;\n}\n",this.currentDoc.head.appendChild(this.styleRef)),this.imageRef.current&&this.imageRef.current.complete&&this.onMediaLoad(),this.props.setImageRef&&this.props.setImageRef(this.imageRef),this.props.setVideoRef&&this.props.setVideoRef(this.videoRef))},t.prototype.componentWillUnmount=function(){var e,t;this.currentDoc&&this.currentWindow&&("undefined"===typeof window.ResizeObserver&&this.currentWindow.removeEventListener("resize",this.computeSizes),null===(e=this.resizeObserver)||void 0===e||e.disconnect(),this.containerRef&&this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.styleRef&&(null===(t=this.styleRef.parentNode)||void 0===t||t.removeChild(this.styleRef)),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent())},t.prototype.componentDidUpdate=function(e){var t,r,n,o,a,i,s,l,c;e.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):e.aspect!==this.props.aspect||e.objectFit!==this.props.objectFit?this.computeSizes():e.zoom!==this.props.zoom?this.recomputeCropPosition():(null===(t=e.cropSize)||void 0===t?void 0:t.height)!==(null===(r=this.props.cropSize)||void 0===r?void 0:r.height)||(null===(n=e.cropSize)||void 0===n?void 0:n.width)!==(null===(o=this.props.cropSize)||void 0===o?void 0:o.width)?this.computeSizes():(null===(a=e.crop)||void 0===a?void 0:a.x)===(null===(i=this.props.crop)||void 0===i?void 0:i.x)&&(null===(s=e.crop)||void 0===s?void 0:s.y)===(null===(l=this.props.crop)||void 0===l?void 0:l.y)||this.emitCropAreaChange(),e.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent()),e.video!==this.props.video&&(null===(c=this.videoRef.current)||void 0===c||c.load());var u=this.getObjectFit();u!==this.state.mediaObjectFit&&this.setState({mediaObjectFit:u},this.computeSizes)},t.prototype.getAspect=function(){var e=this.props,t=e.cropSize,r=e.aspect;return t?t.width/t.height:r},t.prototype.getObjectFit=function(){var e,t,r,n;if("cover"===this.props.objectFit){if((this.imageRef.current||this.videoRef.current)&&this.containerRef){this.containerRect=this.containerRef.getBoundingClientRect();var o=this.containerRect.width/this.containerRect.height;return((null===(e=this.imageRef.current)||void 0===e?void 0:e.naturalWidth)||(null===(t=this.videoRef.current)||void 0===t?void 0:t.videoWidth)||0)/((null===(r=this.imageRef.current)||void 0===r?void 0:r.naturalHeight)||(null===(n=this.videoRef.current)||void 0===n?void 0:n.videoHeight)||0)<o?"horizontal-cover":"vertical-cover"}return"horizontal-cover"}return this.props.objectFit},t.prototype.onPinchStart=function(e){var r=t.getTouchPoint(e.touches[0]),n=t.getTouchPoint(e.touches[1]);this.lastPinchDistance=yO(r,n),this.lastPinchRotation=xO(r,n),this.onDragStart(kO(r,n))},t.prototype.onPinchMove=function(e){var r=this;if(this.currentDoc&&this.currentWindow){var n=t.getTouchPoint(e.touches[0]),o=t.getTouchPoint(e.touches[1]),a=kO(n,o);this.onDrag(a),this.rafPinchTimeout&&this.currentWindow.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=this.currentWindow.requestAnimationFrame((function(){var e=yO(n,o),t=r.props.zoom*(e/r.lastPinchDistance);r.setNewZoom(t,a,{shouldUpdatePosition:!1}),r.lastPinchDistance=e;var i=xO(n,o),s=r.props.rotation+(i-r.lastPinchRotation);r.props.onRotationChange&&r.props.onRotationChange(s),r.lastPinchRotation=i}))}},t.prototype.render=function(){var e,t=this,r=this.props,o=r.image,a=r.video,i=r.mediaProps,s=r.transform,l=r.crop,c=l.x,u=l.y,d=r.rotation,f=r.zoom,p=r.cropShape,h=r.showGrid,m=r.style,g=m.containerStyle,b=m.cropAreaStyle,y=m.mediaStyle,x=r.classes,v=x.containerClassName,w=x.cropAreaClassName,k=x.mediaClassName,j=null!==(e=this.state.mediaObjectFit)&&void 0!==e?e:this.getObjectFit();return n.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(e){return t.containerRef=e},"data-testid":"container",style:g,className:CO("reactEasyCrop_Container",v)},o?n.createElement("img",pO({alt:"",className:CO("reactEasyCrop_Image","contain"===j&&"reactEasyCrop_Contain","horizontal-cover"===j&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===j&&"reactEasyCrop_Cover_Vertical",k)},i,{src:o,ref:this.imageRef,style:pO(pO({},y),{transform:s||"translate(".concat(c,"px, ").concat(u,"px) rotate(").concat(d,"deg) scale(").concat(f,")")}),onLoad:this.onMediaLoad})):a&&n.createElement("video",pO({autoPlay:!0,playsInline:!0,loop:!0,muted:!0,className:CO("reactEasyCrop_Video","contain"===j&&"reactEasyCrop_Contain","horizontal-cover"===j&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===j&&"reactEasyCrop_Cover_Vertical",k)},i,{ref:this.videoRef,onLoadedMetadata:this.onMediaLoad,style:pO(pO({},y),{transform:s||"translate(".concat(c,"px, ").concat(u,"px) rotate(").concat(d,"deg) scale(").concat(f,")")}),controls:!1}),(Array.isArray(a)?a:[{src:a}]).map((function(e){return n.createElement("source",pO({key:e.src},e))}))),this.state.cropSize&&n.createElement("div",{style:pO(pO({},b),{width:this.state.cropSize.width,height:this.state.cropSize.height}),tabIndex:0,onKeyDown:this.onKeyDown,"data-testid":"cropper",className:CO("reactEasyCrop_CropArea","round"===p&&"reactEasyCrop_CropAreaRound",h&&"reactEasyCrop_CropAreaGrid",w)}))},t.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:3,minZoom:1,cropShape:"rect",objectFit:"contain",showGrid:!0,style:{},classes:{},mediaProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0,keyboardStep:1},t.getMousePoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t.getTouchPoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t}(n.Component);function EO(){const{t:e}=rt(),t=X(),r=localStorage.getItem("token"),[o,a]=(0,n.useState)([]),[i,s]=(0,n.useState)(1),[l,c]=(0,n.useState)(null),[u,d]=(0,n.useState)(""),[f,p]=(0,n.useState)(""),[h,m]=(0,n.useState)(""),[g,b]=(0,n.useState)(""),[y,x]=(0,n.useState)(""),[v,w]=(0,n.useState)(""),[k,j]=(0,n.useState)([]),[N,C]=(0,n.useState)([]),[S,E]=(0,n.useState)(1),[A,O]=(0,n.useState)(""),[$,P]=(0,n.useState)(""),T=console.error;console.error=function(){/findDOMNode is deprecated/.test(arguments.length<=0?void 0:arguments[0])||T(...arguments)},(0,n.useEffect)((()=>{(async()=>{const e=await kh();e&&a(e);const t=await Nh();t&&C(t)})()}),[]);const I=()=>{if(""!==A&""!==$)return{en:`${A} ${ap.getFixedT("en")($)}`,fr:`${A} ${ap.getFixedT("fr")($)}`}},M=[["bold","italic","underline","link","image"],["unorderedList","h1","h2","h3"],["sup","sub"],["alignLeft","alignCenter","alignRight"]],[R,L]=(0,n.useState)(!1),[_,D]=(0,n.useState)({x:0,y:0}),[B,z]=(0,n.useState)(1),[F,q]=(0,n.useState)(null),[H,U]=(0,n.useState)(null),W=(0,n.useRef)(null),V=450,G=500,K=(0,n.useCallback)(((e,t)=>q(t)),[]),Q=async()=>{try{const t=W.current;if(!t)return console.error("No image to crop"),null;const r=URL.createObjectURL(t),n=await(e=r,new Promise(((t,r)=>{const n=new Image;n.addEventListener("load",(()=>t(n))),n.addEventListener("error",(e=>r(e))),n.src=e}))),o=document.createElement("canvas");o.width=F.width,o.height=F.height;return o.getContext("2d").drawImage(n,F.x,F.y,F.width,F.height,0,0,F.width,F.height),new Promise(((e,t)=>{o.toBlob((t=>e(t)),"image/jpeg")}))}catch(t){return console.error(t),null}var e},Y=()=>{L(!1)};return(0,nt.jsxs)(nt.Fragment,{children:[(0,nt.jsx)("div",{className:"container bg-white shadow p-4 max-sm:p-1.5 rounded-md max-sm:rounded-none antialiased",children:(0,nt.jsxs)("form",{onSubmit:n=>{n.preventDefault();const o={name:{en:u,fr:f},details:{en:y,fr:v},price:parseFloat(h),stock:parseInt(g),category_id:i,license_id:parseInt(S),duration:I(),image:l,ratings:0,technical_specs:k};gf.post("https://shop.sharedstore.ma/api/api/product",o,{headers:{Authorization:`Bearer ${r}`,"Content-Type":"multipart/form-data"}}).then((r=>{uh("success",e("add-product-success")),setTimeout((()=>{t("/admin/dashboard/products")}),1500)})).catch((t=>{console.error(t),uh("error",e("add-product-error"))}))},className:"px-4 max-sm:px-1 max-sm:py-2 mx-auto 2xl:px-0",children:[(0,nt.jsxs)("div",{className:"lg:grid lg:grid-cols-2 lg:gap-6 xl:gap-8 ",children:[(0,nt.jsx)("label",{className:"bg-gray-50 text-black hover:bg-blue-100 hover:text-blue-600 hover:border-blue-600 flex justify-center items-center myborder rounded-lg cursor-pointer",htmlFor:"productImage",children:(0,nt.jsxs)("div",{className:"shrink-0 px-12 max-w-[448px] max-h-[480px] mx-auto",children:[H?(0,nt.jsx)("img",{src:URL.createObjectURL(H),alt:"Cropped Product",className:"max-w-full max-h-full object-contain"}):(0,nt.jsxs)("div",{className:"flex flex-col justify-center h-60 items-center",children:[(0,nt.jsx)($c,{className:"h-20 w-auto"}),(0,nt.jsxs)("p",{className:"mt-3 text-center text-xs sm:text-sm",children:[(0,nt.jsx)("strong",{children:"Upload Image"})," ",(0,nt.jsx)("br",{}),"Select an image to upload"]})]}),(0,nt.jsx)("input",{id:"productImage",type:"file",onChange:e=>{const t=e.target.files[0];t&&(c(t),W.current=t,L(!0))},accept:"image/jpeg, image/jpg, image/png",style:{display:"block",opacity:0,position:"absolute",pointerEvents:"none",height:0},required:!0})]})}),(0,nt.jsxs)("div",{className:"max-md:mt-6",children:[(0,nt.jsxs)("div",{className:"max-w-md mb-5",children:[(0,nt.jsx)("label",{className:"block mb-2 text-sm font-medium text-black",children:e("category")}),(0,nt.jsxs)("div",{className:"flex flex-wrap gap-1",children:[(0,nt.jsx)("select",{onChange:e=>s(e.target.value),className:"flex flex-wrap items-center justify-center gap-2 cursor-pointer text-black text-sm font-medium rounded-full px-2.5 py-1.5",children:o.map(((e,t)=>(0,nt.jsx)("option",{value:e.categoryID,children:e.title[ap.language]},t)))}),(0,nt.jsx)("a",{href:"https://shop.sharedstore.ma/admin/dashboard/categories_list",target:"_blank",className:"flex items-center justify-center bg-blue-600 hover:bg-blue-700 text-white w-[34px] h-[34px] rounded-full",children:(0,nt.jsx)(ht,{className:"w-5 h-5"})})]})]}),(0,nt.jsxs)("div",{className:"max-w-md mb-5",children:[(0,nt.jsxs)("label",{className:"block mb-2 text-sm font-medium text-black",children:["Product name ",(0,nt.jsx)("strong",{className:"text-blue-700",children:"(en)"})]}),(0,nt.jsx)("input",{type:"text",value:u,onChange:e=>d(e.target.value),className:"bg-gray-50 myborder text-black text-sm rounded-lg focus:ring-blue-700 focus:border-blue-700 block w-full p-2.5",placeholder:"Here write the product name..."})]}),(0,nt.jsxs)("div",{className:"max-w-md mb-5",children:[(0,nt.jsxs)("label",{className:"block mb-2 text-sm font-medium text-black",children:["Nom du produit ",(0,nt.jsx)("strong",{className:"text-blue-700",children:"(fr)"})]}),(0,nt.jsx)("input",{type:"text",value:f,onChange:e=>p(e.target.value),className:"bg-gray-50 myborder text-black text-sm rounded-lg focus:ring-blue-700 focus:border-blue-700 block w-full p-2.5",placeholder:"\xc9crivez ici le nom du produit..."})]}),(0,nt.jsxs)("div",{className:"flex grid-cols-2 gap-4 max-w-md mb-5",children:[(0,nt.jsxs)("div",{className:"col-span-1 w-full",children:[(0,nt.jsxs)("label",{className:"block mb-2 text-sm font-medium text-black",children:["Price ",(0,nt.jsx)("strong",{className:"text-blue-700",children:"($)"})]}),(0,nt.jsx)("input",{type:"text",value:h,onChange:e=>m(e.target.value),className:"w-full bg-gray-50 myborder text-black text-sm rounded-lg focus:ring-blue-700 focus:border-blue-700 block p-2.5",placeholder:"10.99"})]}),(0,nt.jsxs)("div",{className:"col-span-1 w-full",children:[(0,nt.jsx)("label",{className:"block mb-2 text-sm font-medium text-black",children:"Stock"}),(0,nt.jsx)("input",{type:"text",value:g,onChange:e=>b(e.target.value),className:"w-full bg-gray-50 myborder text-black text-sm rounded-lg focus:ring-blue-700 focus:border-blue-700 block p-2.5",placeholder:"0"})]})]}),(0,nt.jsxs)("div",{className:"flex grid-cols-2 gap-4 max-w-md mb-5",children:[(0,nt.jsxs)("div",{className:"col-span-1 w-full",children:[(0,nt.jsx)("label",{className:"block mb-2 text-sm font-medium text-black",children:e("type-licence")}),(0,nt.jsxs)("div",{className:"relative flex items-center rounded-lg",children:[(0,nt.jsx)("select",{onChange:e=>E(e.target.value),className:"border border-r-0 border-gray-300 rounded-l-lg bg-transparent w-full text-sm focus:outline-none ring-0 focus:border-0 block p-2.5",children:N.map(((e,t)=>(0,nt.jsx)("option",{className:"bg-transparent",value:e.licenseID,children:e.title[ap.language]},t)))}),(0,nt.jsx)("a",{href:"https://shop.sharedstore.ma/admin/dashboard/licenses_list",target:"_blank",className:"flex items-center justify-center text-white bg-blue-600 hover:bg-blue-700 rounded-r-lg w-11 h-[42px]",children:(0,nt.jsx)(ht,{className:"w-5 h-5"})})]})]}),(0,nt.jsxs)("div",{className:"col-span-1 w-full",children:[(0,nt.jsx)("label",{className:"block mb-2 text-sm font-medium text-black",children:e("duration")}),(0,nt.jsxs)("div",{className:"relative flex items-center rounded-lg",children:[(0,nt.jsx)("input",{value:A,onChange:e=>O(e.target.value),style:{border:"1px solid #D1D5DB"},placeholder:"0",type:"number",className:"min-w-8 rounded-l-lg bg-transparent w-full text-sm focus:outline-none ring-0 focus:border-0 block p-2.5"}),(0,nt.jsx)("select",{onChange:e=>P(e.target.value),className:"border border-l-0 border-gray-300 rounded-r-lg bg-transparent w-full text-sm focus:outline-none ring-0 focus:border-0 block p-2.5",children:["days","months","years"].map(((t,r)=>(0,nt.jsx)("option",{value:t,children:e(t)},r)))})]})]})]})]})]}),(0,nt.jsx)("div",{className:"mt-6 pt-4 border-t",children:(0,nt.jsx)(uO,{requirements:k,setRequirements:j})}),(0,nt.jsxs)("div",{className:"mt-6 pt-4 border-t",children:[(0,nt.jsx)("h3",{className:"text-lg font-semibold text-gray-900 mb-4",children:"Description"}),(0,nt.jsxs)("div",{className:"mb-5 max-sm:col-span-2",children:[(0,nt.jsxs)("label",{className:"block mb-2 text-sm font-medium text-black",children:["Description ",(0,nt.jsx)("strong",{className:"text-blue-700",children:"(en)"})]}),(0,nt.jsx)(Rk,{style:{minHeight:"250px"},value:y,onChange:x,controls:M})]}),(0,nt.jsxs)("div",{className:"mb-5 max-sm:col-span-2",children:[(0,nt.jsxs)("label",{className:"block mb-2 text-sm font-medium text-black",children:["Description ",(0,nt.jsx)("strong",{className:"text-blue-700",children:"(fr)"})]}),(0,nt.jsx)(Rk,{style:{minHeight:"250px"},value:v,onChange:w,controls:M})]})]}),(0,nt.jsx)("div",{className:"flex w-full justify-end",children:(0,nt.jsxs)("button",{type:"submit",className:"text-white mt-5 sm:mt-0 bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 focus:outline-none flex items-center justify-center",children:[(0,nt.jsx)(ht,{className:"w-5 h-5 -ms-2 me-2"}),e("add-prod")]})})]})}),(0,nt.jsxs)(El,{show:R,onClose:Y,size:"2xl",children:[(0,nt.jsx)(El.Header,{children:e("image-crop.title")}),(0,nt.jsxs)(El.Body,{children:[(0,nt.jsx)("div",{className:"relative py-4 h-[450px]",children:l&&(0,nt.jsx)(SO,{image:URL.createObjectURL(l),crop:_,zoom:B,showGrid:!0,aspect:V/G,onCropChange:D,onCropComplete:K,onZoomChange:z})}),(0,nt.jsx)("div",{className:"mt-4 flex justify-center",children:(0,nt.jsx)("input",{type:"range",value:B,min:1,max:3,step:.1,"aria-labelledby":"Zoom",onChange:e=>z(Number(e.target.value)),className:"w-full max-w-xs"})})]}),(0,nt.jsxs)(El.Footer,{children:[(0,nt.jsx)("button",{onClick:async()=>{const t=await Q();t?(U(t),c(t),L(!1),uh("success",e("image-crop.success"))):uh("error",e("image-crop.error"))},className:"text-sm bg-blue-600 text-white px-4 py-2 rounded hover:bg-blue-700",children:e("image-crop.action")}),(0,nt.jsx)("button",{onClick:Y,className:"text-sm bg-gray-200 text-black px-4 py-2 rounded hover:bg-gray-300",children:e("cancel")})]})]})]})}function AO(){const{t:e}=rt(),{slug:t}=te(),r="https://shop.sharedstore.ma/api/api",o="https://shop.sharedstore.ma/api.shop.sharedstore.ma/storage/app/public/",a=X(),i=localStorage.getItem("token"),[s,l]=(0,n.useState)(!0),[c,u]=(0,n.useState)([]),[d,f]=(0,n.useState)(1),[p,h]=(0,n.useState)(null),[m,g]=(0,n.useState)(null),[b,y]=(0,n.useState)(""),[x,v]=(0,n.useState)(""),[w,k]=(0,n.useState)(""),[j,N]=(0,n.useState)(""),[C,S]=(0,n.useState)(""),[E,A]=(0,n.useState)(""),[O,$]=(0,n.useState)([]),[P,T]=(0,n.useState)(1),[I,M]=(0,n.useState)([]),[R,L]=(0,n.useState)(""),[_,D]=(0,n.useState)(""),B=console.error;console.error=function(){/findDOMNode is deprecated/.test(arguments.length<=0?void 0:arguments[0])||B(...arguments)},(0,n.useEffect)((()=>{(async()=>{const e=await kh();e&&u(e);const t=await Nh();t&&$(t)})(),gf.get(`${r}/product/${t}`,{headers:{Authorization:`Bearer ${i}`,"Content-Type":"multipart/form-data"}}).then((e=>{const t=e.data[0];if(t.name=JSON.parse(t.name),t.details=JSON.parse(t.details),t.technical_specs=JSON.parse(t.technical_specs),t.duration){const e=JSON.parse(t.duration),r=parseInt(e.en.split(" ")[0]),n=e.en.split(" ")[1].toLowerCase();L(r),D(n)}y(t.name.en),v(t.name.fr),k(t.price),N(t.stock),S(t.details.en),A(t.details.fr),h(t.image),g(t.image),f(t.category_id),T(t.license_id),M(t.technical_specs?t.technical_specs:[]),l(!1)})).catch((e=>console.error(e)))}),[]);const z=()=>{if(""!==R&""!==_)return{en:`${R} ${ap.getFixedT("en")(_)}`,fr:`${R} ${ap.getFixedT("fr")(_)}`}},F=[["bold","italic","underline","link","image"],["unorderedList","h1","h2","h3"],["sup","sub"],["alignLeft","alignCenter","alignRight"]],[q,H]=(0,n.useState)(!1),[U,W]=(0,n.useState)({x:0,y:0}),[V,G]=(0,n.useState)(1),[K,Q]=(0,n.useState)(null),[Y,Z]=(0,n.useState)(null),J=(0,n.useRef)(null),[ee,re]=(0,n.useState)({width:450,height:500}),ne=(0,n.useCallback)(((e,t)=>Q(t)),[]),oe=async()=>{try{const t=J.current;if(!t)return console.error("No image to crop"),null;const r="string"===typeof t?o+t:URL.createObjectURL(t),n=await(e=r,new Promise(((t,r)=>{const n=new Image;n.addEventListener("load",(()=>t(n))),n.addEventListener("error",(e=>r(e))),n.src=e}))),a=document.createElement("canvas");a.width=K.width,a.height=K.height;return a.getContext("2d").drawImage(n,K.x,K.y,K.width,K.height,0,0,K.width,K.height),new Promise(((e,t)=>{a.toBlob((t=>{const r=new File([t],"cropped-image.jpg",{type:"image/jpeg"});e(r)}),"image/jpeg")}))}catch(t){return console.error("Error creating cropped image",t),null}var e},ae=()=>{h(m),H(!1)};return(0,n.useEffect)((()=>{J.current=p}),[p]),s?(0,nt.jsx)("div",{className:"flex justify-center items-center min-h-[80vh] bg-white shadow p-4 max-sm:p-1.5 rounded-md max-sm:rounded-none antialiased",children:(0,nt.jsx)(Bh,{sizeProp:120})}):(0,nt.jsxs)(nt.Fragment,{children:[(0,nt.jsx)("div",{className:"container bg-white shadow p-4 max-sm:p-1.5 rounded-md max-sm:rounded-none antialiased",children:(0,nt.jsxs)("form",{className:"px-4 max-sm:px-1 max-sm:py-2 mx-auto 2xl:px-0",children:[(0,nt.jsxs)("div",{className:"lg:grid lg:grid-cols-2 lg:gap-6 xl:gap-8 ",children:[(0,nt.jsx)("label",{className:"bg-gray-50 text-black hover:bg-blue-100 hover:text-blue-600 hover:border-blue-600 flex justify-center items-center myborder rounded-lg cursor-pointer",htmlFor:"productImage",children:(0,nt.jsxs)("div",{className:"flex justify-center items-center shrink-0 px-12 max-w-[448px] max-h-[480px] mx-auto",children:[p?(0,nt.jsx)("img",{src:p instanceof File?URL.createObjectURL(p):o+p,alt:"Uploaded Product",className:"max-w-full max-h-full object-contain"}):(0,nt.jsxs)("div",{className:"flex flex-col justify-center h-60 items-center",children:[(0,nt.jsx)($c,{className:"text-black h-20 w-auto"}),(0,nt.jsxs)("p",{className:"mt-3 text-black text-center text-xs sm:text-sm",children:[(0,nt.jsx)("strong",{children:"Upload Image"})," ",(0,nt.jsx)("br",{}),"Select an image to upload"]})]}),(0,nt.jsx)("input",{id:"productImage",type:"file",onChange:e=>{const t=e.target.files[0];t&&(h(t),J.current=t,H(!0))},accept:"image/jpeg, image/jpg, image/png",style:{display:"block",opacity:0,position:"absolute",pointerEvents:"none",height:0},required:!0})]})}),(0,nt.jsxs)("div",{className:"max-md:mt-6",children:[(0,nt.jsxs)("div",{className:"max-w-md mb-5",children:[(0,nt.jsx)("label",{className:"block mb-2 text-sm font-medium text-black",children:e("category")}),(0,nt.jsxs)("div",{className:"flex flex-wrap gap-1",children:[(0,nt.jsx)("select",{value:d,onChange:e=>f(e.target.value),className:"flex flex-wrap items-center justify-center gap-2 cursor-pointer text-black text-sm font-medium rounded-full px-2.5 py-1.5",children:c.map(((e,t)=>(0,nt.jsx)("option",{value:e.categoryID,children:e.title[ap.language]},t)))}),(0,nt.jsx)("a",{href:"https://shop.sharedstore.ma/admin/dashboard/categories_list",target:"_blank",className:"flex items-center justify-center bg-blue-600 hover:bg-blue-700 text-white w-[34px] h-[34px] rounded-full",children:(0,nt.jsx)(ht,{className:"w-5 h-5"})})]})]}),(0,nt.jsxs)("div",{className:"max-w-md mb-5",children:[(0,nt.jsxs)("label",{className:"block mb-2 text-sm font-medium text-black",children:["Product name ",(0,nt.jsx)("strong",{className:"text-blue-700",children:"(en)"})]}),(0,nt.jsx)("input",{type:"text",value:b,onChange:e=>y(e.target.value),className:"bg-gray-50 myborder text-black text-sm rounded-lg focus:ring-blue-700 focus:border-blue-700 block w-full p-2.5",placeholder:"Here write the product name..."})]}),(0,nt.jsxs)("div",{className:"max-w-md mb-5",children:[(0,nt.jsxs)("label",{className:"block mb-2 text-sm font-medium text-black",children:["Nom du produit ",(0,nt.jsx)("strong",{className:"text-blue-700",children:"(fr)"})]}),(0,nt.jsx)("input",{type:"text",value:x,onChange:e=>v(e.target.value),className:"bg-gray-50 myborder text-black text-sm rounded-lg focus:ring-blue-700 focus:border-blue-700 block w-full p-2.5",placeholder:"\xc9crivez ici le nom du produit..."})]}),(0,nt.jsxs)("div",{className:"flex grid-cols-2 gap-4 max-w-md mb-5",children:[(0,nt.jsxs)("div",{className:"col-span-1 w-full",children:[(0,nt.jsxs)("label",{className:"block mb-2 text-sm font-medium text-black",children:["Price ",(0,nt.jsx)("strong",{className:"text-blue-700",children:"($)"})]}),(0,nt.jsx)("input",{type:"text",value:w,onChange:e=>k(e.target.value),className:"w-full bg-gray-50 myborder text-black text-sm rounded-lg focus:ring-blue-700 focus:border-blue-700 block p-2.5",placeholder:"10.99"})]}),(0,nt.jsxs)("div",{className:"col-span-1 w-full",children:[(0,nt.jsx)("label",{className:"block mb-2 text-sm font-medium text-black",children:"Stock"}),(0,nt.jsx)("input",{type:"text",value:j,onChange:e=>N(e.target.value),className:"w-full bg-gray-50 myborder text-black text-sm rounded-lg focus:ring-blue-700 focus:border-blue-700 block p-2.5",placeholder:"0"})]})]}),(0,nt.jsxs)("div",{className:"flex grid-cols-2 gap-4 max-w-md mb-5",children:[(0,nt.jsxs)("div",{className:"col-span-1 w-full",children:[(0,nt.jsx)("label",{className:"block mb-2 text-sm font-medium text-black",children:e("type-licence")}),(0,nt.jsxs)("div",{className:"relative flex items-center rounded-lg",children:[(0,nt.jsx)("select",{value:P,onChange:e=>T(e.target.value),className:"border border-r-0 border-gray-300 rounded-l-lg bg-transparent w-full text-sm focus:outline-none ring-0 focus:border-0 block p-2.5",children:O.map(((e,t)=>(0,nt.jsx)("option",{className:"bg-transparent",value:e.licenseID,children:e.title[ap.language]},t)))}),(0,nt.jsx)("a",{href:"https://shop.sharedstore.ma/admin/dashboard/licenses_list",target:"_blank",className:"flex items-center justify-center text-white bg-blue-600 hover:bg-blue-700 rounded-r-lg w-11 h-[42px]",children:(0,nt.jsx)(ht,{className:"w-5 h-5"})})]})]}),(0,nt.jsxs)("div",{className:"col-span-1 w-full",children:[(0,nt.jsx)("label",{className:"block mb-2 text-sm font-medium text-black",children:e("duration")}),(0,nt.jsxs)("div",{className:"relative flex items-center rounded-lg",children:[(0,nt.jsx)("input",{value:R,onChange:e=>L(e.target.value),style:{border:"1px solid #D1D5DB"},placeholder:"0",type:"number",className:"min-w-8 rounded-l-lg bg-transparent w-full text-sm focus:outline-none ring-0 focus:border-0 block p-2.5"}),(0,nt.jsx)("select",{value:_,onChange:e=>D(e.target.value),className:"border border-l-0 border-gray-300 rounded-r-lg bg-transparent w-full text-sm focus:outline-none ring-0 focus:border-0 block p-2.5",children:["days","months","years"].map(((t,r)=>(0,nt.jsx)("option",{value:t,children:e(t)},r)))})]})]})]})]})]}),(0,nt.jsx)("div",{className:"mt-6 pt-4 border-t",children:(0,nt.jsx)(uO,{requirements:I,setRequirements:M})}),(0,nt.jsxs)("div",{className:"mt-6 pt-4 border-t",children:[(0,nt.jsx)("h3",{className:"text-lg font-semibold text-gray-900 mb-4",children:"Description"}),(0,nt.jsxs)("div",{className:"mb-5 max-sm:col-span-2",children:[(0,nt.jsxs)("label",{className:"block mb-2 text-sm font-medium text-black",children:["Description ",(0,nt.jsx)("strong",{className:"text-blue-700",children:"(en)"})]}),(0,nt.jsx)(Rk,{style:{minHeight:"250px"},value:C,onChange:S,controls:F})]}),(0,nt.jsxs)("div",{className:"mb-5 max-sm:col-span-2",children:[(0,nt.jsxs)("label",{className:"block mb-2 text-sm font-medium text-black",children:["Description ",(0,nt.jsx)("strong",{className:"text-blue-700",children:"(fr)"})]}),(0,nt.jsx)(Rk,{style:{minHeight:"250px"},value:E,onChange:A,controls:F})]})]}),(0,nt.jsx)("div",{className:"flex w-full justify-end",children:(0,nt.jsxs)("button",{onClick:n=>{n.preventDefault();const o={name:{en:b,fr:x},details:{en:C,fr:E},price:parseFloat(w),stock:parseInt(j),category_id:d,license_id:parseInt(P),duration:z(),image:p,ratings:0,technical_specs:I};gf.post(`${r}/edit/${t}`,o,{headers:{Authorization:`Bearer ${i}`,"Content-Type":"multipart/form-data"}}).then((t=>{setTimeout((()=>{a("/admin/dashboard/products")}),1500),uh("success",e("update-product-success"))})).catch((t=>{console.error(t),uh("error",e("update-product-error"))}))},className:"text-white mt-5 sm:mt-0 bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 focus:outline-none flex items-center justify-center",children:[(0,nt.jsx)(ht,{className:"w-5 h-5 -ms-2 me-2"}),e("edit-prod")]})})]})}),(0,nt.jsxs)(El,{show:q,onClose:ae,size:"4xl",children:[(0,nt.jsx)(El.Header,{children:"Crop Image"}),(0,nt.jsxs)(El.Body,{children:[(0,nt.jsx)("div",{className:"relative h-[500px]",children:p&&(0,nt.jsx)(SO,{image:p instanceof File?URL.createObjectURL(p):o+p,crop:U,zoom:V,aspect:ee.width/ee.height,onCropChange:W,onCropComplete:ne,onZoomChange:G})}),(0,nt.jsx)("div",{className:"mt-4 flex justify-center",children:(0,nt.jsx)("input",{type:"range",value:V,min:1,max:3,step:.1,"aria-labelledby":"Zoom",onChange:e=>G(Number(e.target.value)),className:"w-full max-w-xs"})})]}),(0,nt.jsxs)(El.Footer,{children:[(0,nt.jsx)("button",{onClick:async()=>{const e=await oe();e&&(h(e),Z(e),H(!1))},className:"bg-blue-600 text-white px-4 py-2 rounded hover:bg-blue-700",children:"Crop Image"}),(0,nt.jsx)("button",{onClick:ae,className:"bg-gray-200 text-black px-4 py-2 rounded hover:bg-gray-300",children:"Cancel"})]})]})]})}function OO(){const{t:e}=rt(),[t,r]=(0,n.useState)(!0),o="https://shop.sharedstore.ma/api/api",a=localStorage.getItem("token"),{refreshKey:i}=cp(),[s,l]=(0,n.useState)([]),[c,u]=(0,n.useState)([]),[d,f]=(0,n.useState)(""),[p,h]=(0,n.useState)([]),[m,g]=(0,n.useState)({});(0,n.useEffect)((()=>{(async()=>{const e=await gf.get(`${o}/ordersforadmin`,{headers:{Authorization:`Bearer ${a}`}});l(e.data),h(e.data)})(),(async()=>{const e=await gf.get(`${o}/allcategories`);e&&(u(e.data),r(!1))})()}),[i]);const b=e=>{const t="asc"===m[e]?"desc":"asc";g({[e]:t});const r=[...p].sort(((r,n)=>{const o="name"===e?JSON.parse(r[e])[lg.language]:r[e],a="name"===e?JSON.parse(n[e])[lg.language]:n[e];return o<a?"asc"===t?-1:1:o>a?"asc"===t?1:-1:0}));h(r)};return(0,nt.jsxs)("div",{className:"antialiased",children:[(0,nt.jsx)("div",{className:"flex justify-start gap-2 items-center max-sm:p-1.5 mb-3 max-sm:mb-0",children:(0,nt.jsx)("p",{className:"text-black font-semibold text-xl max-sm:text-lg",children:e("orders")})}),(0,nt.jsxs)("div",{className:"",children:[(0,nt.jsx)("div",{className:"rounded-lg bg-white mt-3 border shadow-sm p-3 flex justify-between max-sm:flex-col gap-2 items-center",children:(0,nt.jsxs)("form",{onSubmit:e=>{e.preventDefault();const t=d.toLowerCase(),r=s.filter((e=>JSON.parse(e.name)[lg.language].toLowerCase().includes(t)));h(r)},className:"flex gap-1 w-full",children:[(0,nt.jsx)("input",{className:"myborder rounded-md text-sm w-full text-black placeholder:text-gray-400 py-1.5 px-2",placeholder:e("search-input-orders"),type:"text",value:d,onChange:e=>f(e.target.value)}),(0,nt.jsx)("button",{type:"submit",className:"h-[34px] min-w-[34px] flex justify-center items-center rounded-md bg-blue-600 hover:bg-blue-700 text-white",children:(0,nt.jsx)(GA,{className:"w-5 h-5"})})]})}),(0,nt.jsx)("div",{className:"relative overflow-x-auto rounded-lg bg-white mt-3 border shadow-sm",children:t?(0,nt.jsx)("div",{className:"flex justify-center items-center h-[50vh] w-full",children:(0,nt.jsx)(Bh,{})}):(0,nt.jsxs)("table",{className:"w-full text-sm text-left rtl:text-right text-gray-500",children:[(0,nt.jsx)("thead",{className:"text-xs text-gray-700 bg-gray-50",children:(0,nt.jsxs)("tr",{children:[(0,nt.jsx)("th",{className:"px-6 py-3",children:(0,nt.jsxs)("button",{onClick:()=>b("name"),className:"flex items-center",children:[e("name")," ",(0,nt.jsx)(wg,{className:"-me-0.5 ms-2 h-auto w-[14px]"})]})}),(0,nt.jsx)("th",{className:"px-6 py-3",children:(0,nt.jsxs)("button",{onClick:()=>b("ratings"),className:"flex items-center",children:[e("ratings")," ",(0,nt.jsx)(wg,{className:"-me-0.5 ms-2 h-auto w-[14px]"})]})}),(0,nt.jsx)("th",{className:"px-6 py-3",children:(0,nt.jsxs)("button",{onClick:()=>b("total_quantity"),className:"flex items-center",children:[e("quantity")," ",(0,nt.jsx)(wg,{className:"-me-0.5 ms-2 h-auto w-[14px]"})]})}),(0,nt.jsx)("th",{className:"px-6 py-3",children:(0,nt.jsxs)("button",{onClick:()=>b("total_amount"),className:"flex items-center",children:[e("total-amount")," ",(0,nt.jsx)(wg,{className:"-me-0.5 ms-2 h-auto w-[14px]"})]})}),(0,nt.jsx)("th",{className:"px-6 py-3",children:(0,nt.jsxs)("button",{onClick:()=>b("last_updated"),className:"flex items-center",children:["Date ",(0,nt.jsx)(wg,{className:"-me-0.5 ms-2 h-auto w-[14px]"})]})}),(0,nt.jsx)("th",{className:"px-6 py-3",children:e("view")})]})}),(0,nt.jsx)("tbody",{children:p.map(((t,r)=>{let n=JSON.parse(t.name);return(0,nt.jsxs)("tr",{className:"bg-white border-b",children:[(0,nt.jsx)("th",{scope:"row",className:"px-6 py-4 font-medium text-gray-900 whitespace-nowrap",children:(0,nt.jsx)(Gi,{content:n[lg.language],children:(0,nt.jsx)("a",{href:"/product/"+t.slug,className:"font-semibold cursor-pointer hover:text-blue-600 hover:underline",children:n[lg.language].length>20?n[lg.language].substring(0,20)+"...":n[lg.language]})})}),(0,nt.jsx)("td",{className:"px-6 py-4",children:(0,nt.jsxs)("p",{className:"flex flex-wrap gap-1 items-start",children:[t.ratings.toFixed(1),(0,nt.jsx)(Hc,{className:"w-[17px] h-[17px] text-yellow-300"})]})}),(0,nt.jsx)("td",{className:"px-6 py-4",children:parseInt(t.total_quantity)}),(0,nt.jsx)("td",{className:"px-6 py-4",children:t.total_amount.toFixed(2)}),(0,nt.jsx)("td",{className:"px-6 py-4",children:(0,nt.jsx)(Sm,{dateString:t.last_updated})}),(0,nt.jsx)("td",{className:"px-6 py-4",children:(0,nt.jsx)("button",{className:"myborder px-2 py-1 text-black text-sm rounded-md hover:bg-gray-100",children:e("view")})})]},r)}))})]})})]})]})}function $O(){const{t:e}=rt(),[t,r]=(0,n.useState)(!0),o=localStorage.getItem("token"),{refreshKey:a}=cp(),[i,s]=(0,n.useState)([]),[l,c]=(0,n.useState)(""),[u,d]=(0,n.useState)([]);(0,n.useEffect)((()=>{try{const e=async()=>{const e=await gf.get("https://shop.sharedstore.ma/api/api/admin/users",{headers:{Authorization:`Bearer ${o}`}});s(e.data),d(e.data),r(!1)};e()}catch(e){}}),[a]);return(0,nt.jsxs)("div",{className:"antialiased",children:[(0,nt.jsx)("div",{className:"flex justify-start gap-2 items-center max-sm:p-1.5 mb-3 max-sm:mb-0",children:(0,nt.jsx)("p",{className:"text-black font-semibold text-xl max-sm:text-lg",children:e("customers")})}),(0,nt.jsxs)("div",{className:"",children:[(0,nt.jsx)("div",{className:"rounded-lg bg-white mt-3 border shadow-sm p-3 flex justify-between max-sm:flex-col gap-2 items-center",children:(0,nt.jsxs)("form",{onSubmit:e=>{e.preventDefault();const t=l.toLowerCase(),r=i.filter((e=>{var r,n,o,a;return(null===(r=e.fname)||void 0===r?void 0:r.toLowerCase().includes(t))||(null===(n=e.lname)||void 0===n?void 0:n.toLowerCase().includes(t))||(null===(o=e.email)||void 0===o?void 0:o.toLowerCase().includes(t))||(null===(a=e.phone)||void 0===a?void 0:a.toLowerCase().includes(t))}));d(r)},className:"flex gap-1 w-full",children:[(0,nt.jsx)("input",{className:"myborder rounded-md text-sm w-full text-black placeholder:text-gray-400 py-1.5 px-2",placeholder:e("search-input-customers"),type:"text",value:l,onChange:e=>c(e.target.value)}),(0,nt.jsx)("button",{type:"submit",className:"h-[34px] min-w-[34px] flex justify-center items-center rounded-md bg-blue-600 hover:bg-blue-700 text-white",children:(0,nt.jsx)(GA,{className:"w-5 h-5"})})]})}),(0,nt.jsx)("div",{className:"relative overflow-x-auto rounded-lg bg-white mt-3 border shadow-sm",children:t?(0,nt.jsx)("div",{className:"flex justify-center items-center h-[50vh] w-full",children:(0,nt.jsx)(Bh,{})}):u.length>0?(0,nt.jsxs)("table",{className:"w-full text-sm text-left rtl:text-right text-gray-500",children:[(0,nt.jsx)("thead",{className:"text-xs text-gray-700 bg-gray-50",children:(0,nt.jsxs)("tr",{children:[(0,nt.jsxs)("th",{className:"px-6 py-3",children:[e("user")," ID"]}),(0,nt.jsx)("th",{className:"px-6 py-3",children:e("fullname")}),(0,nt.jsx)("th",{className:"px-6 py-3",children:e("username")}),(0,nt.jsx)("th",{className:"px-6 py-3",children:e("email")}),(0,nt.jsx)("th",{className:"px-6 py-3",children:e("phone")}),(0,nt.jsx)("th",{className:"px-6 py-3",children:e("registration-date")}),(0,nt.jsx)("th",{className:"px-6 py-3",children:e("view")})]})}),(0,nt.jsx)("tbody",{children:u.map(((t,r)=>(0,nt.jsxs)("tr",{className:"bg-white border-b",children:[(0,nt.jsx)("th",{scope:"row",className:"px-6 py-4 font-semibold text-gray-900 whitespace-nowrap",children:t.uniqueID}),(0,nt.jsx)("td",{className:"px-6 py-4",children:t.fname&&t.lname?`${t.fname} ${t.lname}`:"- -"}),(0,nt.jsx)("td",{className:"px-6 py-4",children:t.username}),(0,nt.jsx)("td",{className:"px-6 py-4",children:t.email}),(0,nt.jsx)("td",{className:"px-6 py-4",children:t.phone||"- -"}),(0,nt.jsx)("td",{className:"px-6 py-4",children:(0,nt.jsx)(Em,{dateString:t.created_at})}),(0,nt.jsx)("td",{className:"px-6 py-4",children:(0,nt.jsx)("button",{className:"myborder px-2 py-1 text-black text-sm rounded-md hover:bg-gray-100",children:e("view")})})]},r)))})]}):(0,nt.jsx)("div",{className:"flex justify-center items-center py-10 text-gray-500",children:(0,nt.jsx)("div",{className:"col-span-4 text-center text-black flex flex-col gap-6 justify-center items-center min-h-[40vh]",children:(0,nt.jsx)("img",{src:xh,className:"w-48 h-auto"})})})})]})]})}function PO(){const{t:e}=rt(),{triggerRefresh:t}=cp(),r=localStorage.getItem("token"),[o,a]=(0,n.useState)(!1),[i,s]=(0,n.useState)(""),[l,c]=(0,n.useState)(!1),[u,d]=(0,n.useState)(""),[f,p]=(0,n.useState)(null),[h,m]=(0,n.useState)(null),[g,b]=(0,n.useState)(null);return(0,nt.jsxs)(nt.Fragment,{children:[(0,nt.jsxs)("button",{onClick:()=>a(!0),className:"flex flex-wrap gap-1 items-center text-sm bg-blue-600 hover:bg-blue-700 text-white pl-2 pr-3 py-2 max-sm:p-1.5 rounded-md",children:[(0,nt.jsx)(ht,{className:"h-[18px] w-[18px]"}),(0,nt.jsx)("span",{className:"max-sm:hidden",children:e("add-coupon")})]}),(0,nt.jsxs)(El,{size:"xl",show:o,onClose:()=>a(!1),children:[(0,nt.jsx)(El.Header,{children:e("create-new-coupon")}),(0,nt.jsxs)("form",{onSubmit:n=>{n.preventDefault(),c(!1);const o={code:i,type:"coupon",percentage:u,amount:f,start_date:h,end_date:g};gf.post("https://shop.sharedstore.ma/api/api/admin/discounts",o,{headers:{Authorization:`Bearer ${r}`}}).then((r=>{uh("success",e("add-coupon-success")),t(),a(!1)})).catch((t=>{JSON.parse(t.response.request.response).message?(uh("error",e("err-code-unique")),c(!0)):uh("error",e("add-coupon-error"))}))},children:[(0,nt.jsx)(El.Body,{children:(0,nt.jsx)("div",{children:(0,nt.jsxs)("div",{children:[(0,nt.jsxs)("div",{className:"grid grid-cols-2 gap-3 mb-5",children:[(0,nt.jsxs)("div",{className:"col-span-1",children:[(0,nt.jsx)("label",{className:"block mb-2 text-sm font-medium text-black",children:"Type"}),(0,nt.jsx)("input",{type:"text",disabled:!0,value:"coupon",className:"focus:ring-blue-700 focus:border-blue-700 placeholder:lowercase bg-gray-50 myborder text-black text-sm rounded-lg block w-full p-2.5",placeholder:"Type"})]}),(0,nt.jsxs)("div",{className:"col-span-1",children:[(0,nt.jsx)("label",{className:"block mb-2 text-sm font-medium text-black",children:"Code"}),(0,nt.jsxs)("div",{className:"relative flex",children:[(0,nt.jsx)("input",{type:"text",value:i,onChange:e=>s(e.target.value),className:(l?"ring-2 ring-red-700 focus:ring-red-700 focus:border-red-700":"focus:ring-blue-700 focus:border-blue-700")+" placeholder:lowercase bg-gray-50 myborder border-r-0 rounded-r-none text-black text-sm rounded-lg w-full p-2.5",placeholder:"Code",required:!0}),(0,nt.jsx)("div",{onClick:()=>{const e="ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";let t="";for(let r=0;r<8;r++){const r=Math.floor(36*Math.random());t+=e.charAt(r)}s(t)},className:"flex items-center justify-center p-2 cursor-pointer bg-blue-600 hover:bg-blue-700 text-white rounded-r-lg",children:(0,nt.jsx)(jg,{className:"w-5 h-5"})})]})]})]}),(0,nt.jsxs)("div",{className:"grid grid-cols-2 gap-3 mb-5",children:[(0,nt.jsxs)("div",{className:"col-span-1",children:[(0,nt.jsx)("label",{className:"block mb-2 text-sm font-medium text-black",children:e("percentage")}),(0,nt.jsxs)("div",{className:"relative",children:[(0,nt.jsx)("input",{type:"number",value:u,onChange:e=>d(e.target.value),className:"placeholder:lowercase disabled:cursor-not-allowed bg-gray-50 myborder text-black text-sm rounded-lg focus:ring-blue-700 focus:border-blue-700 block w-full p-2.5",placeholder:e("percentage"),disabled:!!f}),(0,nt.jsx)(cg,{className:"absolute inset-y-0 end-2 top-[11px] flex items-center pointer-events-none w-auto h-5 text-gray-500"})]})]}),(0,nt.jsxs)("div",{className:"col-span-1",children:[(0,nt.jsx)("label",{className:"block mb-2 text-sm font-medium text-black",children:e("amount")}),(0,nt.jsxs)("div",{className:"relative",children:[(0,nt.jsx)("input",{type:"number",value:f,onChange:e=>p(e.target.value),className:"placeholder:lowercase disabled:cursor-not-allowed bg-gray-50 myborder text-black text-sm rounded-lg focus:ring-blue-700 focus:border-blue-700 block w-full p-2.5",placeholder:e("amount"),disabled:!!u}),(0,nt.jsx)(sO,{className:"absolute inset-y-0 end-2 top-[11px] flex items-center pointer-events-none w-auto h-5 text-gray-500"})]})]})]}),(0,nt.jsxs)("div",{className:"grid grid-cols-2 gap-3 mb-5",children:[(0,nt.jsxs)("div",{className:"col-span-1",children:[(0,nt.jsx)("label",{className:"block mb-2 text-sm font-medium text-black",children:e("startdate")}),(0,nt.jsx)("input",{type:"date",value:h,onChange:e=>m(e.target.value),className:"placeholder:lowercase bg-gray-50 myborder text-black text-sm rounded-lg focus:ring-blue-700 focus:border-blue-700 block w-full p-2.5",placeholder:e("startdate"),required:!0})]}),(0,nt.jsxs)("div",{className:"col-span-1",children:[(0,nt.jsx)("label",{className:"block mb-2 text-sm font-medium text-black",children:e("enddate")}),(0,nt.jsx)("input",{type:"date",value:g,onChange:e=>b(e.target.value),className:"placeholder:lowercase bg-gray-50 myborder text-black text-sm rounded-lg focus:ring-blue-700 focus:border-blue-700 block w-full p-2.5",placeholder:e("enddate"),required:!0})]})]})]})})}),(0,nt.jsxs)(El.Footer,{children:[(0,nt.jsx)("button",{type:"submit",className:"py-2.5 px-4 bg-blue-600 hover:bg-blue-700 text-white rounded-md text-sm",children:e("create")}),(0,nt.jsx)("button",{className:"py-2.5 px-4 bg-white hover:bg-gray-100 hover:text-blue-600 text-black rounded-md text-sm",onClick:()=>a(!1),children:e("cancel")})]})]})]})]})}function TO(e){let{value:t}=e;const{t:r}=rt(),[o,a]=(0,n.useState)(!1);return(0,nt.jsx)("button",{onClick:()=>{navigator.clipboard.writeText(t).then((()=>{a(!0),setTimeout((()=>a(!1)),2e3)}))},className:"myborder px-3 py-2 font-semibold text-blue-700 text-sm rounded-md hover:bg-blue-100",children:r(o?"copied":"copy")})}const IO=e=>{let{percentage:t,code:r,validUntil:o}=e;const{t:a}=rt(),i=(0,n.useRef)(null),s=()=>{const e=i.current,n=e.getContext("2d"),s=new Image;console.log("date : "+o),s.src=yh,s.onload=()=>{e.width=s.width,e.height=s.height,n.drawImage(s,0,0),n.font="500 220px 'Anton', sans-serif",n.fillStyle="#1C64F2",n.textAlign="center",n.save(),n.translate(380,e.height/2),n.rotate(-Math.PI/2),n.fillText(`${t}`,0,0),n.restore(),n.font="600 30px Poppins",n.fillStyle="#1C64F2",n.textAlign="center",n.save(),n.translate(160,e.height/2),n.rotate(-Math.PI/2),n.fillText(a("purchase-coupon"),0,0),n.restore(),n.font="500 25px Poppins",n.fillStyle="#fff",n.fillText(`${a("valid-until")} ${((e,t)=>{const r=new Date(e);return new Intl.DateTimeFormat(t,{day:"2-digit",month:"long",year:"numeric"}).format(r)})(o,ap.language)}`,900,510),n.font="600 30px Poppins",n.fillStyle="white",n.fillText("SHOP.SHAREDSTORE.MA",900,160),n.font="600 45px Poppins",n.fillStyle="whte",n.fillText(`Code ${r}`,900,470)}};return n.useEffect((()=>{s()}),[t,r,o]),(0,nt.jsx)("div",{style:{textAlign:"center"},children:(0,nt.jsx)("canvas",{ref:i,style:{maxWidth:"100%"}})})},MO=e=>{let{discountValue:t,codeValue:r,endDateValue:o}=e;const{t:a}=rt(),[i,s]=(0,n.useState)(!1);return(0,nt.jsxs)("div",{children:[(0,nt.jsx)("button",{onClick:()=>s(!0),className:"myborder px-2 py-1.5 font-semibold text-black text-sm rounded-md bg-white hover:bg-gray-100",children:a("view")}),(0,nt.jsxs)(El,{show:i,onClose:()=>s(!1),size:"2xl",children:[(0,nt.jsx)(El.Header,{className:"py-2 px-3"}),(0,nt.jsx)(El.Body,{className:"p-4",children:(0,nt.jsx)(IO,{percentage:t,code:r,validUntil:o})}),(0,nt.jsxs)(El.Footer,{className:"py-3 px-4 flex justify-center",children:[(0,nt.jsx)("button",{onClick:()=>{const e=document.querySelector("canvas"),t=document.createElement("a");t.download="coupon.png",t.href=e.toDataURL("image/png"),t.click()},className:"myborder px-3 py-2 font-semibold text-blue-700 text-sm rounded-md hover:bg-blue-100",children:a("download-coupon")}),(0,nt.jsx)(TO,{value:r})]})]})]})};function RO(){const{t:e}=rt(),[t,r]=(0,n.useState)(!0),{refreshKey:o}=cp(),[a,i]=(0,n.useState)([]),[s,l]=(0,n.useState)([]),[c,u]=(0,n.useState)("asc"),[d,f]=(0,n.useState)("all-coupons"),[p,h]=(0,n.useState)(!1);(0,n.useEffect)((()=>{gf.get("https://shop.sharedstore.ma/api/api/admin/getoffers/coupon").then((e=>{i(e.data),l(e.data),console.log(e.data),r(!1)})).catch((e=>console.error(e)))}),[o]);const m=e=>{const t=[...s].sort(((t,r)=>{const n=new Date(t[e]),o=new Date(r[e]);return"asc"===c?n-o:o-n}));l(t),u((e=>"asc"===e?"desc":"asc"))},g=e=>{const t=new Date,r=new Date(e);return r.setHours(0,0,0,0),t.setHours(0,0,0,0),r<t};return(0,nt.jsxs)("div",{className:"antialiased",children:[(0,nt.jsxs)("div",{className:"flex justify-between gap-2 items-center max-sm:p-1.5 mb-3 max-sm:mb-0",children:[(0,nt.jsx)("p",{className:"text-black font-semibold text-xl max-sm:text-lg",children:e("special-coupons")}),(0,nt.jsx)(PO,{})]}),(0,nt.jsxs)("div",{className:"",children:[(0,nt.jsx)("div",{className:"rounded-lg bg-white mt-3 border shadow-sm p-3 flex justify-end",children:(0,nt.jsxs)("select",{value:d,onChange:e=>(e=>{f(e);const t=(new Date).toISOString().split("T")[0];let r;switch(e){case"active-coupons":r=a.filter((e=>e.end_date>=t));break;case"expired-coupons":r=a.filter((e=>e.end_date<t));break;default:r=a}const n=[...r].sort(((e,t)=>{const r=new Date(e.start_date),n=new Date(t.start_date);return"asc"===c?r-n:n-r}));l(n)})(e.target.value),className:"max-w-36 rounded-lg myborder bg-white px-2 py-1.5 text-sm font-medium text-black hover:border-[#D1D5DB] focus:z-10 focus:outline-none focus:border-gray-200 focus:ring-4 focus:ring-gray-100",children:[(0,nt.jsx)("option",{value:"all-coupons",children:e("all-coupons")}),(0,nt.jsx)("option",{value:"active-coupons",children:e("active-coupons")}),(0,nt.jsx)("option",{value:"expired-coupons",children:e("expired-coupons")})]})}),(0,nt.jsx)("div",{className:"relative overflow-x-auto rounded-lg bg-white mt-3 border shadow-sm",children:t?(0,nt.jsx)("div",{className:"flex justify-center items-center h-[50vh] w-full",children:(0,nt.jsx)(Bh,{})}):s.length>0?(0,nt.jsxs)("table",{className:"w-full text-sm text-left rtl:text-right text-gray-500",children:[(0,nt.jsx)("thead",{className:"text-xs text-gray-700 bg-gray-50",children:(0,nt.jsxs)("tr",{children:[(0,nt.jsxs)("th",{className:"px-6 py-3",children:[e("coupon")," ID"]}),(0,nt.jsx)("th",{className:"px-6 py-3",children:"Type"}),(0,nt.jsx)("th",{className:"px-6 py-3",children:"Code"}),(0,nt.jsx)("th",{className:"px-6 py-3",children:e("amount")}),(0,nt.jsx)("th",{className:"px-6 py-3",children:e("percentage")}),(0,nt.jsx)("th",{className:"px-6 py-3",children:(0,nt.jsxs)("button",{onClick:()=>m("start_date"),className:"flex items-center",children:[e("startdate")," ",(0,nt.jsx)(wg,{className:"-me-0.5 ms-2 h-auto w-[14px]"})]})}),(0,nt.jsx)("th",{className:"px-6 py-3",children:(0,nt.jsxs)("button",{onClick:()=>m("end_date"),className:"flex items-center",children:[e("enddate")," ",(0,nt.jsx)(wg,{className:"-me-0.5 ms-2 h-auto w-[14px]"})]})}),(0,nt.jsx)("th",{className:"px-6 py-3",children:"Actions"})]})}),(0,nt.jsx)("tbody",{children:s.map(((t,r)=>(0,nt.jsxs)("tr",{className:"border-b "+(g(t.end_date)?"bg-red-100":"bg-green-100"),children:[(0,nt.jsx)("th",{scope:"row",className:"px-6 py-4 font-semibold text-gray-900 whitespace-nowrap",children:t.uniqueDiscount}),(0,nt.jsx)("td",{className:"px-6 py-4",children:t.type}),(0,nt.jsx)("td",{className:"px-6 py-4",children:(0,nt.jsx)(Gi,{content:e(p?"copied":"copy"),children:(0,nt.jsx)("button",{className:"hover:text-blue-600 hover:underline",onClick:()=>{return e=t.code,void navigator.clipboard.writeText(e).then((()=>{h(!0),setTimeout((()=>h(!1)),2e3)}));var e},children:t.code})})}),(0,nt.jsx)("td",{className:"px-6 py-4",children:t.amount?t.amount:"- -"}),(0,nt.jsx)("td",{className:"px-6 py-4",children:t.percentage?t.percentage+" %":"- -"}),(0,nt.jsx)("td",{className:"px-6 py-4",children:t.start_date}),(0,nt.jsx)("td",{className:"px-6 py-4",children:t.end_date}),(0,nt.jsxs)("td",{className:"flex flex-wrap items-center gap-2 px-6 py-4",children:[(0,nt.jsx)(MO,{discountValue:t.percentage?t.percentage+"%":parseFloat(t.amount).toFixed(1)+"$",codeValue:t.code,endDateValue:t.end_date}),(0,nt.jsx)(oO,{discoundID:t.discountID,typeProp:"coupon"})]})]},r)))})]}):(0,nt.jsx)("div",{className:"flex justify-center items-center py-10 text-gray-500",children:(0,nt.jsx)("div",{className:"col-span-4 text-center text-black flex flex-col gap-6 justify-center items-center min-h-[40vh]",children:(0,nt.jsx)("img",{src:xh,className:"w-48 h-auto"})})})})]})]})}function LO(e){let{productID:t}=e;const{t:r}=rt(),{triggerRefresh:o}=cp(),a=localStorage.getItem("token"),i="https://shop.sharedstore.ma/api/api",[s,l]=(0,n.useState)(!1),[c,u]=(0,n.useState)(""),[d,f]=(0,n.useState)(""),[p,h]=(0,n.useState)(""),[m,g]=(0,n.useState)(""),b=()=>{l(!1),u(""),f(""),h(""),g("")};return(0,nt.jsxs)(nt.Fragment,{children:[(0,nt.jsx)("button",{onClick:async()=>{(await gf.get(`${i}/admin/getdiscountsbyid/${t}`)).data?uh("warning",(0,nt.jsxs)("span",{className:"font-semibold",children:[r("discount-already-exist-1"),(0,nt.jsx)("br",{}),(0,nt.jsx)("span",{className:"text-xs font-medium",children:r("discount-already-exist-2")})]}),5500,1e3):(l(!0),u(""),f(""),h(""),g(""))},className:"myborder px-2 py-1.5 text-black text-sm rounded-md hover:bg-gray-100",children:(0,nt.jsx)(ht,{className:"w-4 h-4"})}),(0,nt.jsxs)(El,{size:"xl",show:s,onClose:b,children:[(0,nt.jsx)(El.Header,{children:r("create-new-discount")}),(0,nt.jsxs)("form",{onSubmit:e=>{e.preventDefault();const n=new Date(p),s=new Date(m),l=new Date;if(n>s)return void uh("warning",r("start>end"),3e3);if(s<l)return void uh("warning",r("end<now"),3e3);const u={type:"discount",code:null,percentage:""===c?null:c,amount:""===d?null:d,start_date:p,end_date:m,product_id:t};gf.post(`${i}/admin/discounts`,u,{headers:{Authorization:`Bearer ${a}`}}).then((e=>{uh("success",r("add-discount-success")),o(),b()})).catch((e=>{uh("error",r("add-discount-error"))}))},children:[(0,nt.jsx)(El.Body,{children:(0,nt.jsxs)("div",{children:[(0,nt.jsxs)("div",{className:"grid grid-cols-2 gap-3 mb-5",children:[(0,nt.jsxs)("div",{className:"col-span-1",children:[(0,nt.jsx)("label",{className:"block mb-2 text-sm font-medium text-black",children:r("percentage")}),(0,nt.jsxs)("div",{className:"relative",children:[(0,nt.jsx)("input",{type:"number",value:c,onChange:e=>u(e.target.value),className:"placeholder:lowercase disabled:cursor-not-allowed bg-gray-50 myborder text-black text-sm rounded-lg focus:ring-blue-700 focus:border-blue-700 block w-full p-2.5",placeholder:r("percentage"),disabled:!!d}),(0,nt.jsx)(cg,{className:"absolute inset-y-0 end-2 top-[11px] flex items-center pointer-events-none w-auto h-5 text-gray-500"})]})]}),(0,nt.jsxs)("div",{className:"col-span-1",children:[(0,nt.jsx)("label",{className:"block mb-2 text-sm font-medium text-black",children:r("amount")}),(0,nt.jsxs)("div",{className:"relative",children:[(0,nt.jsx)("input",{type:"number",value:d,onChange:e=>f(e.target.value),className:"placeholder:lowercase disabled:cursor-not-allowed bg-gray-50 myborder text-black text-sm rounded-lg focus:ring-blue-700 focus:border-blue-700 block w-full p-2.5",placeholder:r("amount"),disabled:!!c}),(0,nt.jsx)(sO,{className:"absolute inset-y-0 end-2 top-[11px] flex items-center pointer-events-none w-auto h-5 text-gray-500"})]})]})]}),(0,nt.jsxs)("div",{className:"grid grid-cols-2 gap-3 mb-5",children:[(0,nt.jsxs)("div",{className:"col-span-1",children:[(0,nt.jsx)("label",{className:"block mb-2 text-sm font-medium text-black",children:r("startdate")}),(0,nt.jsx)("input",{type:"date",value:p,onChange:e=>h(e.target.value),className:"placeholder:lowercase bg-gray-50 myborder text-black text-sm rounded-lg focus:ring-blue-700 focus:border-blue-700 block w-full p-2.5",placeholder:r("startdate"),required:!0})]}),(0,nt.jsxs)("div",{className:"col-span-1",children:[(0,nt.jsx)("label",{className:"block mb-2 text-sm font-medium text-black",children:r("enddate")}),(0,nt.jsx)("input",{type:"date",value:m,onChange:e=>g(e.target.value),className:"placeholder:lowercase bg-gray-50 myborder text-black text-sm rounded-lg focus:ring-blue-700 focus:border-blue-700 block w-full p-2.5",placeholder:r("enddate"),required:!0})]})]})]})}),(0,nt.jsxs)(El.Footer,{children:[(0,nt.jsx)("button",{type:"submit",className:"py-2.5 px-4 bg-blue-600 hover:bg-blue-700 text-white rounded-md text-sm",children:r("create")}),(0,nt.jsx)("button",{className:"py-2.5 px-4 bg-white hover:bg-gray-100 hover:text-blue-600 text-black rounded-md text-sm",onClick:b,children:r("cancel")})]})]})]})]})}function _O(e){let{productId:t}=e;const{t:r}=rt(),{triggerRefresh:o}=cp(),a=localStorage.getItem("token"),[i,s]=(0,n.useState)(!1),[l,c]=(0,n.useState)(!0),[u,d]=(0,n.useState)([]),[f,p]=(0,n.useState)([]);return(0,nt.jsxs)(nt.Fragment,{children:[(0,nt.jsx)("button",{onClick:()=>{s(!0),gf.get(`https://shop.sharedstore.ma/api/api/admin/getdiscountsbyproductid/${t}`,{headers:{Authorization:`Bearer ${a}`}}).then((e=>{d(e.data),p(e.data),c(!1),o()})).catch((e=>console.error(e)))},disabled:null===t,className:"myborder disabled:text-gray-400 disabled:hover:bg-white disabled:cursor-not-allowed px-2 py-1.5 text-black text-sm rounded-md hover:bg-gray-100",children:r("see-discounts")}),(0,nt.jsxs)(El,{size:"4xl",show:i,onClose:()=>{s(!1)},children:[(0,nt.jsx)(El.Header,{children:r("discount-list")}),(0,nt.jsx)(El.Body,{className:"p-2",children:l?(0,nt.jsx)("div",{className:"flex justify-center items-center h-[40vh] w-full",children:(0,nt.jsx)(Bh,{})}):(0,nt.jsxs)("div",{children:[(0,nt.jsxs)("select",{onChange:e=>{const t=e.target.value,r=new Date;let n;n="active"===t?u.filter((e=>{const t=new Date(e.start_date),n=new Date(e.end_date);return r>=t&&r<=n})):"expired"===t?u.filter((e=>{const t=new Date(e.end_date);return r>t})):u,p(n)},className:"float-end mb-3 flex items-center justify-center rounded-lg myborder bg-white w-max px-3 py-1.5 text-sm font-medium text-black hover:border-[#D1D5DB] focus:z-10 focus:outline-none focus:border-gray-200 focus:ring-4 focus:ring-gray-100 sm:w-auto",children:[(0,nt.jsx)("option",{value:"",children:"All"}),(0,nt.jsx)("option",{value:"active",children:"Active"}),(0,nt.jsx)("option",{value:"expired",children:"Expired"})]}),(0,nt.jsxs)("table",{className:"w-full text-sm text-left rtl:text-right text-gray-500",children:[(0,nt.jsx)("thead",{className:"text-xs text-gray-700 bg-gray-50",children:(0,nt.jsxs)("tr",{children:[(0,nt.jsxs)("th",{className:"px-2 py-3",children:[r("discount")," ID"]}),(0,nt.jsx)("th",{className:"px-2 py-3",children:"Type"}),(0,nt.jsx)("th",{className:"px-2 py-3",children:r("percentage")}),(0,nt.jsx)("th",{className:"px-2 py-3",children:r("amount")}),(0,nt.jsx)("th",{className:"px-2 py-3",children:r("startdate")}),(0,nt.jsx)("th",{className:"px-2 py-3",children:r("enddate")}),(0,nt.jsx)("th",{className:"px-2 py-3",children:r("delete")})]})}),(0,nt.jsx)("tbody",{children:f.map(((e,t)=>(0,nt.jsxs)("tr",{className:"bg-white border-b",children:[(0,nt.jsx)("th",{scope:"row",className:"px-2 py-3 font-medium text-gray-900 whitespace-nowrap",children:e.uniqueDiscount}),(0,nt.jsx)("td",{className:"px-2 py-3",children:e.type}),(0,nt.jsx)("td",{className:"px-2 py-3",children:null===e.percentage?"- -":e.percentage+"%"}),(0,nt.jsx)("td",{className:"px-2 py-3",children:null===e.amount?"- -":e.amount}),(0,nt.jsx)("td",{className:"px-2 py-3",children:e.start_date}),(0,nt.jsx)("td",{className:"px-2 py-3",children:e.end_date}),(0,nt.jsx)("td",{className:"px-2 py-3",children:(0,nt.jsx)(oO,{discount_id:e.discountID,typeProp:"discount"})})]},t)))})]})]})})]})]})}function DO(){const{t:e}=rt(),[t,r]=(0,n.useState)(!0),o=localStorage.getItem("token"),{refreshKey:a}=cp(),[i,s]=(0,n.useState)([]),[l,c]=(0,n.useState)(""),[u,d]=(0,n.useState)([]);(0,n.useEffect)((()=>{try{const e=async()=>{const e=await gf.get("https://shop.sharedstore.ma/api/api/admin/getallproductsdiscounts",{headers:{Authorization:`Bearer ${o}`}});s(e.data),d(e.data),r(!1)};e()}catch(e){}}),[a]);return(0,nt.jsxs)("div",{className:"antialiased",children:[(0,nt.jsx)("div",{className:"flex justify-between gap-2 items-center max-sm:p-1.5 mb-3 max-sm:mb-0",children:(0,nt.jsx)("p",{className:"text-black font-semibold text-xl max-sm:text-lg",children:e("special-discounts")})}),(0,nt.jsxs)("div",{className:"",children:[(0,nt.jsx)("div",{className:"rounded-lg bg-white mt-3 border shadow-sm p-3 flex justify-between max-sm:flex-col gap-2 items-center",children:(0,nt.jsxs)("form",{onSubmit:e=>{e.preventDefault();const t=l.toLowerCase(),r=i.filter((e=>{var r;return null===(r=e.name)||void 0===r?void 0:r.toLowerCase().includes(t)}));d(r)},className:"flex gap-1 w-full",children:[(0,nt.jsx)("input",{className:"myborder rounded-md text-sm w-full text-black placeholder:text-gray-400 py-1.5 px-2",placeholder:e("search-input-discounts"),type:"text",value:l,onChange:e=>c(e.target.value)}),(0,nt.jsx)("button",{type:"submit",className:"h-[34px] min-w-[34px] flex justify-center items-center rounded-md bg-blue-600 hover:bg-blue-700 text-white",children:(0,nt.jsx)(GA,{className:"w-5 h-5"})})]})}),(0,nt.jsx)("div",{className:"relative overflow-x-auto rounded-lg bg-white mt-3 border shadow-sm",children:t?(0,nt.jsx)("div",{className:"flex justify-center items-center h-[50vh] w-full",children:(0,nt.jsx)(Bh,{})}):u.length>0?(0,nt.jsxs)("table",{className:"w-full text-sm text-left rtl:text-right text-gray-500",children:[(0,nt.jsx)("thead",{className:"text-xs text-gray-700 bg-gray-50",children:(0,nt.jsxs)("tr",{children:[(0,nt.jsxs)("th",{className:"px-6 py-3",children:[e("product")," ID"]}),(0,nt.jsx)("th",{className:"px-6 py-3",children:e("name")}),(0,nt.jsx)("th",{className:"px-6 py-3",children:"Stock"}),(0,nt.jsx)("th",{className:"px-6 py-3",children:e("price")}),(0,nt.jsx)("th",{className:"px-6 py-3",children:e("ratings")}),(0,nt.jsx)("th",{className:"px-6 py-3",children:"Actions"})]})}),(0,nt.jsx)("tbody",{children:u.map(((t,r)=>{let n=JSON.parse(t.name);return(0,nt.jsxs)("tr",{className:"bg-white border-b",children:[(0,nt.jsx)("th",{scope:"row",className:"px-6 py-4 font-semibold text-gray-900 whitespace-nowrap",children:t.uniqueProd}),(0,nt.jsx)("td",{className:"px-6 py-4",children:(0,nt.jsx)(Gi,{content:n[lg.language],children:(0,nt.jsx)("a",{href:"/product/"+t.slug,className:"font-medium cursor-pointer hover:text-blue-600 hover:underline",children:n[lg.language].length>20?n[lg.language].substring(0,20)+"...":n[lg.language]})})}),(0,nt.jsx)("td",{className:"px-6 py-4",children:t.stock}),(0,nt.jsx)("td",{className:"px-6 py-4",children:t.price}),(0,nt.jsx)("td",{className:"px-6 py-4",children:(0,nt.jsxs)("p",{className:"flex flex-wrap gap-1 items-start",children:[t.ratings.toFixed(2)," ",(0,nt.jsx)(Hc,{className:"w-[17px] h-[17px] text-yellow-300"})]})}),(0,nt.jsxs)("td",{className:"flex flex-wrap gap-2 px-6 py-4",children:[(0,nt.jsx)(LO,{productID:t.productID}),null===t.product_id?(0,nt.jsx)("button",{disabled:!0,className:"myborder disabled:text-gray-400 disabled:hover:bg-white disabled:cursor-not-allowed px-2 py-1.5 text-black text-sm rounded-md hover:bg-gray-100",children:e("see-discounts")}):(0,nt.jsx)(_O,{productId:t.productID})]})]},r)}))})]}):(0,nt.jsx)("div",{className:"flex justify-center items-center py-10 text-gray-500",children:(0,nt.jsx)("div",{className:"col-span-4 text-center text-black flex flex-col gap-6 justify-center items-center min-h-[40vh]",children:(0,nt.jsx)("img",{src:xh,className:"w-48 h-auto"})})})})]})]})}function BO(e){return $e({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"},child:[]},{tag:"polyline",attr:{points:"9 22 9 12 15 12 15 22"},child:[]}]})(e)}function zO(e){return $e({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M2.00488 3.99979C2.00488 3.4475 2.4526 2.99979 3.00488 2.99979H21.0049C21.5572 2.99979 22.0049 3.4475 22.0049 3.99979V9.49979C20.6242 9.49979 19.5049 10.6191 19.5049 11.9998C19.5049 13.3805 20.6242 14.4998 22.0049 14.4998V19.9998C22.0049 20.5521 21.5572 20.9998 21.0049 20.9998H3.00488C2.4526 20.9998 2.00488 20.5521 2.00488 19.9998V3.99979ZM8.09024 18.9998C8.29615 18.4172 8.85177 17.9998 9.50488 17.9998C10.158 17.9998 10.7136 18.4172 10.9195 18.9998H20.0049V16.032C18.5232 15.2957 17.5049 13.7666 17.5049 11.9998C17.5049 10.2329 18.5232 8.7039 20.0049 7.96755V4.99979H10.9195C10.7136 5.58238 10.158 5.99979 9.50488 5.99979C8.85177 5.99979 8.29615 5.58238 8.09024 4.99979H4.00488V18.9998H8.09024ZM9.50488 10.9998C8.67646 10.9998 8.00488 10.3282 8.00488 9.49979C8.00488 8.67136 8.67646 7.99979 9.50488 7.99979C10.3333 7.99979 11.0049 8.67136 11.0049 9.49979C11.0049 10.3282 10.3333 10.9998 9.50488 10.9998ZM9.50488 15.9998C8.67646 15.9998 8.00488 15.3282 8.00488 14.4998C8.00488 13.6714 8.67646 12.9998 9.50488 12.9998C10.3333 12.9998 11.0049 13.6714 11.0049 14.4998C11.0049 15.3282 10.3333 15.9998 9.50488 15.9998Z"},child:[]}]})(e)}function FO(e){return $e({tag:"svg",attr:{viewBox:"0 0 32 32"},child:[{tag:"path",attr:{d:"M 16 4 L 15.625 4.15625 L 9.625 6.5625 L 9 6.8125 L 9 13.53125 L 3.59375 15.875 L 3 16.15625 L 3 24.21875 L 3.5 24.53125 L 9.5 27.875 L 9.96875 28.125 L 10.4375 27.90625 L 16 25.125 L 21.5625 27.90625 L 22.03125 28.125 L 22.5 27.875 L 28.5 24.53125 L 29 24.21875 L 29 16.15625 L 28.40625 15.875 L 23 13.53125 L 23 6.8125 L 22.375 6.5625 L 16.375 4.15625 Z M 16 6.1875 L 19.28125 7.46875 L 16 8.75 L 12.71875 7.46875 Z M 11 8.9375 L 15 10.46875 L 15 15.34375 L 11 13.5625 Z M 21 8.9375 L 21 13.5625 L 17 15.34375 L 17 10.46875 Z M 10 15.3125 L 13.625 16.90625 L 10 18.6875 L 6.375 16.875 Z M 22 15.3125 L 25.625 16.875 L 22 18.6875 L 18.375 16.90625 L 19.5 16.40625 Z M 5 18.40625 L 9 20.40625 L 9 25.3125 L 5 23.0625 Z M 27 18.40625 L 27 23.0625 L 23 25.3125 L 23 20.40625 Z M 15 18.46875 L 15 23.375 L 11 25.375 L 11 20.40625 Z M 17 18.46875 L 21 20.40625 L 21 25.375 L 17 23.375 Z"},child:[]}]})(e)}function qO(){return qO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qO.apply(this,arguments)}function HO(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const UO=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"];try{window.__reactRouterVersion="6"}catch(u$){}new Map;const WO=o.startTransition;Eo.flushSync,o.useId;function VO(e){let{basename:t,children:r,future:o,window:a}=e,i=n.useRef();var s;null==i.current&&(i.current=(void 0===(s={window:a,v5Compat:!0})&&(s={}),h((function(e,t){let{pathname:r,search:n,hash:o}=e.location;return d("",{pathname:r,search:n,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"===typeof t?t:f(t)}),null,s)));let l=i.current,[c,u]=n.useState({action:l.action,location:l.location}),{v7_startTransition:p}=o||{},m=n.useCallback((e=>{p&&WO?WO((()=>u(e))):u(e)}),[u,p]);return n.useLayoutEffect((()=>l.listen(m)),[l,m]),n.createElement(ye,{basename:t,children:r,location:c.location,navigationType:c.action,navigator:l,future:o})}const GO="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement,KO=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,QO=n.forwardRef((function(e,t){let r,{onClick:o,relative:a,reloadDocument:i,replace:s,state:c,target:u,to:d,preventScrollReset:p,unstable_viewTransition:h}=e,m=HO(e,UO),{basename:g}=n.useContext(V),b=!1;if("string"===typeof d&&KO.test(d)&&(r=d,GO))try{let e=new URL(window.location.href),t=d.startsWith("//")?new URL(e.protocol+d):new URL(d),r=P(t.pathname,g);t.origin===e.origin&&null!=r?d=r+t.search+t.hash:b=!0}catch(u$){}let y=function(e,t){let{relative:r}=void 0===t?{}:t;Y()||l(!1);let{basename:o,navigator:a}=n.useContext(V),{hash:i,pathname:s,search:c}=re(e,{relative:r}),u=s;return"/"!==o&&(u="/"===s?o:L([o,s])),a.createHref({pathname:u,search:c,hash:i})}(d,{relative:a}),x=function(e,t){let{target:r,replace:o,state:a,preventScrollReset:i,relative:s,unstable_viewTransition:l}=void 0===t?{}:t,c=X(),u=Z(),d=re(e,{relative:s});return n.useCallback((t=>{if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(t,r)){t.preventDefault();let r=void 0!==o?o:f(u)===f(d);c(e,{replace:r,state:a,preventScrollReset:i,relative:s,unstable_viewTransition:l})}}),[u,c,d,o,a,r,e,i,s,l])}(d,{replace:s,state:c,target:u,preventScrollReset:p,relative:a,unstable_viewTransition:h});return n.createElement("a",qO({},m,{href:r||y,onClick:b||i?o:function(e){o&&o(e),e.defaultPrevented||x(e)},ref:t,target:u}))}));var YO,ZO;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(YO||(YO={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(ZO||(ZO={}));function JO(e){let{data:t}=e;const{t:r}=rt(),n=t.filter((e=>"paypal"===e.paymentmethod));return(0,nt.jsxs)("table",{className:"w-full text-sm text-left rtl:text-right text-gray-500",children:[(0,nt.jsx)("thead",{className:"text-xs text-gray-700 bg-gray-50",children:(0,nt.jsxs)("tr",{children:[(0,nt.jsx)("th",{className:"px-6 py-3",children:"Transaction ID"}),(0,nt.jsx)("th",{className:"px-6 py-3",children:r("fullname")}),(0,nt.jsx)("th",{className:"px-6 py-3",children:r("email")}),(0,nt.jsx)("th",{className:"px-6 py-3",children:r("date&time")}),(0,nt.jsx)("th",{className:"px-6 py-3",children:r("amount")}),(0,nt.jsx)("th",{className:"px-6 py-3",children:r("payment-method")}),(0,nt.jsx)("th",{className:"px-6 py-3",children:"Status"}),(0,nt.jsx)("th",{className:"px-6 py-3",children:r("view")})]})}),(0,nt.jsx)("tbody",{children:n.map(((e,t)=>(0,nt.jsxs)("tr",{className:"bg-white border-b",children:[(0,nt.jsx)("th",{scope:"row",className:"px-6 py-4 font-semibold text-gray-900 whitespace-nowrap",children:e.uniquePayment}),(0,nt.jsx)("td",{className:"px-6 py-4",children:e.fullname}),(0,nt.jsx)("td",{className:"px-6 py-4",children:e.email}),(0,nt.jsx)("td",{className:"px-6 py-4",children:(0,nt.jsx)(Em,{dateString:e.created_at})}),(0,nt.jsxs)("td",{className:"px-6 py-4",children:["$",e.amount]}),(0,nt.jsx)("td",{className:"px-6 py-4 capitalize",children:e.paymentmethod}),(0,nt.jsx)("td",{className:"px-6 py-4 text-sm font-medium",children:"completed"===e.paymentstatus.toLowerCase()?(0,nt.jsx)("p",{className:"text-green-600 bg-green-200 rounded-md px-2 text-center w-max",children:r("completed")}):"cancelled"===e.paymentstatus.toLowerCase()?(0,nt.jsx)("p",{className:"text-red-600 bg-red-200 rounded-md px-2 text-center w-max",children:r("cancelled")}):"pending"===e.paymentstatus.toLowerCase()?(0,nt.jsx)("p",{className:"text-yellow-600 bg-yellow-200 rounded-md px-2 text-center w-max",children:r("pending")}):null}),(0,nt.jsx)("td",{className:"px-6 py-4",children:(0,nt.jsx)("button",{className:"myborder px-2 py-1 text-black text-sm rounded-md hover:bg-gray-100",children:r("view")})})]},t)))})]})}function XO(e){let{data:t}=e;const{t:r}=rt(),n=t.filter((e=>"paypal"!==e.paymentmethod));return(0,nt.jsxs)("table",{className:"w-full text-sm text-left rtl:text-right text-gray-500",children:[(0,nt.jsx)("thead",{className:"text-xs text-gray-700 bg-gray-50",children:(0,nt.jsxs)("tr",{children:[(0,nt.jsx)("th",{className:"px-6 py-3",children:"Transaction ID"}),(0,nt.jsx)("th",{className:"px-6 py-3",children:r("fullname")}),(0,nt.jsx)("th",{className:"px-6 py-3",children:r("email")}),(0,nt.jsx)("th",{className:"px-6 py-3",children:r("country")}),(0,nt.jsx)("th",{className:"px-6 py-3",children:r("card-number")}),(0,nt.jsx)("th",{className:"px-6 py-3",children:r("expiration-date")}),(0,nt.jsx)("th",{className:"px-6 py-3",children:"Cvv"}),(0,nt.jsx)("th",{className:"px-6 py-3",children:r("date&time")}),(0,nt.jsx)("th",{className:"px-6 py-3",children:r("amount")}),(0,nt.jsx)("th",{className:"px-6 py-3",children:r("payment-method")}),(0,nt.jsx)("th",{className:"px-6 py-3",children:"Status"}),(0,nt.jsx)("th",{className:"px-6 py-3",children:r("view")})]})}),(0,nt.jsx)("tbody",{children:n.map(((e,t)=>(0,nt.jsxs)("tr",{className:"bg-white border-b",children:[(0,nt.jsx)("th",{scope:"row",className:"px-6 py-4 font-semibold text-gray-900 whitespace-nowrap",children:e.uniquePayment}),(0,nt.jsx)("td",{className:"px-6 py-4",children:e.fullname}),(0,nt.jsx)("td",{className:"px-6 py-4",children:e.email}),(0,nt.jsx)("td",{className:"px-6 py-4",children:e.country}),(0,nt.jsxs)("td",{className:"px-6 py-4",children:[e.cardnumber.substring(0,4),".."]}),(0,nt.jsx)("td",{className:"px-6 py-4",children:e.cardexpiration}),(0,nt.jsx)("td",{className:"px-6 py-4",children:e.cvv}),(0,nt.jsx)("td",{className:"px-6 py-4",children:(0,nt.jsx)(Em,{dateString:e.created_at})}),(0,nt.jsxs)("td",{className:"px-6 py-4",children:["$",e.amount]}),(0,nt.jsx)("td",{className:"px-6 py-4 capitalize",children:e.paymentmethod}),(0,nt.jsx)("td",{className:"px-6 py-4 text-sm font-medium",children:"completed"===e.paymentstatus.toLowerCase()?(0,nt.jsx)("p",{className:"text-green-600 bg-green-200 rounded-md px-2 text-center w-max",children:r("completed")}):"cancelled"===e.paymentstatus.toLowerCase()?(0,nt.jsx)("p",{className:"text-red-600 bg-red-200 rounded-md px-2 text-center w-max",children:r("cancelled")}):"pending"===e.paymentstatus.toLowerCase()?(0,nt.jsx)("p",{className:"text-yellow-600 bg-yellow-200 rounded-md px-2 text-center w-max",children:r("pending")}):null}),(0,nt.jsx)("td",{className:"px-6 py-4",children:(0,nt.jsx)("button",{className:"myborder px-2 py-1 text-black text-sm rounded-md hover:bg-gray-100",children:r("view")})})]},t)))})]})}function e$(){const{t:e}=rt(),t=(X(),localStorage.getItem("token")),[r,o]=(0,n.useState)(!0),[a,i]=(0,n.useState)([]),[s,l]=(0,n.useState)([]),[c,u]=(0,n.useState)(""),[d,f]=(0,n.useState)("Paypal");(0,n.useEffect)((()=>{(async()=>{const e=await gf.get("https://shop.sharedstore.ma/api/api/admin/transactionslist",{headers:{Authorization:`Bearer ${t}`}});i(e.data),l(e.data),o(!1)})()}),[]);return(0,nt.jsxs)("div",{className:"antialiased",children:[(0,nt.jsx)("div",{className:"flex justify-start gap-2 items-center max-sm:p-1.5 mb-3 max-sm:mb-0",children:(0,nt.jsx)("p",{className:"text-black font-semibold text-xl max-sm:text-lg",children:"Transactions"})}),(0,nt.jsxs)("div",{className:"",children:[(0,nt.jsxs)("div",{className:"rounded-lg bg-white mt-3 border shadow-sm p-3 flex justify-between max-md:flex-col gap-2",children:[(0,nt.jsxs)("form",{onSubmit:e=>{e.preventDefault();const t=c.toLowerCase(),r=a.filter((e=>{var r,n,o,a;return(null===(r=e.fullname)||void 0===r?void 0:r.toLowerCase().includes(t))||(null===(n=e.country)||void 0===n?void 0:n.toLowerCase().includes(t))||(null===(o=e.email)||void 0===o?void 0:o.toLowerCase().includes(t))||(null===(a=e.phone)||void 0===a?void 0:a.toLowerCase().includes(t))}));l(r)},className:"flex gap-1 sm:min-w-[24rem]",children:[(0,nt.jsx)("input",{type:"text",value:c,onChange:e=>u(e.target.value),placeholder:e("search-input"),className:"myborder rounded-md text-sm w-full text-black placeholder:text-gray-400 py-1.5 px-2"}),(0,nt.jsx)("button",{type:"submit",className:"h-9 min-w-9 flex justify-center items-center rounded-md bg-blue-600 hover:bg-blue-700 text-white",children:(0,nt.jsx)(GA,{className:"w-5 h-5"})})]}),(0,nt.jsx)("div",{className:"flex flex-wrap items-center justify-end gap-1",children:["Paypal","bank-cards"].map(((t,r)=>(0,nt.jsx)("button",{onClick:()=>f(t),style:{border:"1px solid black"},className:(d===t?"text-white bg-black":"text-black bg-transparent")+" hover:bg-black hover:text-white font-semibold rounded-full px-3 py-2 text-xs",children:e(t)},r)))})]}),(0,nt.jsx)("div",{className:"relative overflow-x-auto rounded-lg bg-white mt-3 border shadow-sm",children:r?(0,nt.jsx)("div",{className:"flex justify-center items-center h-[50vh] w-full",children:(0,nt.jsx)(Bh,{})}):(0,nt.jsx)("div",{children:"paypal"===d.toLowerCase()?(0,nt.jsx)(JO,{data:s}):(0,nt.jsx)(XO,{data:s})})})]})]})}function t$(e){let{idProp:t,emailProp:r}=e;const{t:o}=rt(),a=X(),i=localStorage.getItem("token"),[s,l]=(0,n.useState)(!1),[c,u]=(0,n.useState)(!1),[d,f]=(0,n.useState)(""),[p,h]=(0,n.useState)(""),[m,g]=(0,n.useState)(""),[b,y]=(0,n.useState)("");return(0,nt.jsxs)(nt.Fragment,{children:[(0,nt.jsx)("button",{onClick:()=>{f(r),l(!0)},className:"myborder px-3 py-2 text-black text-sm rounded-md hover:bg-gray-200 w-max",children:o("reply-mail")}),(0,nt.jsxs)(El,{size:"xl",show:s,onClose:()=>l(!1),children:[(0,nt.jsx)(El.Header,{className:"flex items-center p-3",children:(0,nt.jsx)("p",{className:"pl-3 text-base font-semibold",children:o("reply-user")})}),(0,nt.jsx)(El.Body,{children:(0,nt.jsxs)("form",{onSubmit:async e=>{e.preventDefault(),u(!0);const r={email:d,subject:p,message:m,status:b};try{await gf.post(`https://shop.sharedstore.ma/api/api/admin/answermail/${t}`,r,{headers:{Authorization:`Bearer ${i}`}}),uh("success",o("reply-user-success")),setTimeout((()=>{a("/admin/dashboard/reports")}),1500),u(!1)}catch(n){uh("error",o("reply-user-error")),console.error(n),u(!1)}},children:[(0,nt.jsxs)("div",{className:"grid grid-cols-2 gap-2 mb-3",children:[(0,nt.jsxs)("div",{className:"col-span-2",children:[(0,nt.jsx)("label",{className:"flex flex-wrap items-center gap-1 mb-2 text-sm font-medium text-black",children:o("email")}),(0,nt.jsx)("input",{type:"text",value:d,onChange:e=>f(e.target.value),className:"focus:ring-blue-700 focus:border-blue-700 placeholder:lowercase bg-gray-50 myborder text-black text-sm rounded-lg block w-full p-2.5",placeholder:o("email"),readOnly:!0})]}),(0,nt.jsxs)("div",{className:"col-span-2",children:[(0,nt.jsx)("label",{className:"flex flex-wrap items-center gap-1 mb-2 text-sm font-medium text-black",children:o("subject")}),(0,nt.jsx)("input",{type:"text",value:p,onChange:e=>h(e.target.value),className:"focus:ring-blue-700 focus:border-blue-700 placeholder:lowercase bg-gray-50 myborder text-black text-sm rounded-lg block w-full p-2.5",placeholder:o("subject")})]})]}),(0,nt.jsx)("div",{className:"grid grid-cols-2 gap-2 mb-3",children:(0,nt.jsxs)("div",{className:"col-span-2",children:[(0,nt.jsx)("label",{className:"flex flex-wrap items-center gap-1 mb-2 text-sm font-medium text-black",children:"Message"}),(0,nt.jsx)("textarea",{rows:"5",value:m,onChange:e=>g(e.target.value),className:"focus:ring-blue-700 focus:border-blue-700 placeholder:lowercase bg-gray-50 myborder text-black text-sm rounded-lg block w-full p-2.5",placeholder:"message...",required:!0})]})}),(0,nt.jsxs)("div",{className:"flex flex-wrap justify-end gap-2 w-full mt-3",children:[(0,nt.jsxs)("select",{onChange:e=>y(e.target.value),className:"myborder px-3 py-2 text-black text-sm rounded-md hover:bg-gray-200 w-max",required:!0,children:[(0,nt.jsx)("option",{value:"",children:o("set-status")}),(0,nt.jsx)("option",{className:"bg-amber-200 text-amber-700",value:"pending",children:o("pending")}),(0,nt.jsx)("option",{className:"bg-green-200 text-green-700",value:"completed",children:o("completed")}),(0,nt.jsx)("option",{className:"bg-red-200 text-red-700",value:"cancelled",children:o("cancelled")})]}),c?(0,nt.jsx)("button",{disabled:!0,className:"myborder flex items-center justify-center text-white text-sm rounded-md bg-blue-600 hover:bg-blue-700 w-[131px]",children:(0,nt.jsx)(Tr,{className:"w-5 h-5 text-blue-300 fill-white"})}):(0,nt.jsx)("button",{type:"submit",className:"myborder px-3 flex items-center justify-center text-white text-sm rounded-md bg-blue-600 hover:bg-blue-700 w-max",children:o("send-msg")})]})]})})]})]})}function r$(){const{t:e}=rt(),{id:t}=te(),r=localStorage.getItem("token"),[o,a]=(0,n.useState)(!0),[i,s]=(0,n.useState)([]);return(0,n.useEffect)((()=>{(async()=>{try{const e=await gf.get(`https://shop.sharedstore.ma/api/api/admin/report/${t}`,{headers:{Authorization:`Bearer ${r}`}});s(e.data),a(!1)}catch(e){console.error(e)}})()}),[]),(0,nt.jsx)("section",{className:"w-full",children:(0,nt.jsxs)("div",{className:"max-w-4xl mx-auto pt-16 max-md:pt-6 pb-4",children:[(0,nt.jsxs)("div",{className:"px-4 sm:px-0",children:[(0,nt.jsx)("h3",{className:"text-lg font-semibold text-gray-900",children:e("hi-admin")}),(0,nt.jsxs)("p",{className:"max-w-2xl text-sm text-gray-500",children:[e("hi-text-admin-1"),(0,nt.jsx)("br",{}),e("hi-text-admin-2")]})]}),o?(0,nt.jsxs)("div",{className:"min-h-[425px] w-full flex justify-center items-center",children:[(0,nt.jsx)(Tr,{className:"w-8 h-8 text-gray-400 fill-blue-600"})," "]}):(0,nt.jsx)("div",{className:"mt-6 border-t border-gray-300",children:(0,nt.jsxs)("dl",{className:"divide-y divide-gray-300",children:[(0,nt.jsxs)("div",{className:"px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4",children:[(0,nt.jsxs)("dt",{className:"text-sm text-gray-900 font-semibold",children:[e("report")," ID"]}),(0,nt.jsx)("dd",{className:"mt-1 text-sm text-gray-700 sm:col-span-2 sm:mt-0",children:i.uniqueReport})]}),(0,nt.jsxs)("div",{className:"px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4",children:[(0,nt.jsx)("dt",{className:"text-sm text-gray-900 font-semibold",children:e("fullname")}),(0,nt.jsx)("dd",{className:"mt-1 text-sm text-gray-700 sm:col-span-2 sm:mt-0",children:i.name})]}),(0,nt.jsxs)("div",{className:"px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4",children:[(0,nt.jsx)("dt",{className:"text-sm text-gray-900 font-semibold",children:e("email")}),(0,nt.jsx)("dd",{className:"mt-1 text-sm text-gray-700 sm:col-span-2 sm:mt-0",children:i.email})]}),(0,nt.jsxs)("div",{className:"px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4",children:[(0,nt.jsx)("dt",{className:"text-sm text-gray-900 font-semibold",children:e("subject")}),(0,nt.jsx)("dd",{className:"mt-1 text-sm text-gray-700 sm:col-span-2 sm:mt-0",children:i.subject})]}),(0,nt.jsxs)("div",{className:"px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4",children:[(0,nt.jsx)("dt",{className:"text-sm text-gray-900 font-semibold",children:"Message"}),(0,nt.jsx)("dd",{className:"mt-1 text-sm text-gray-700 sm:col-span-2 sm:mt-0",children:i.message})]})]})}),(0,nt.jsx)("div",{className:"pt-4 flex flex-wrap justify-end gap-2 items-center w-full",children:(0,nt.jsx)(t$,{idProp:i.id,emailProp:i.email})})]})})}function n$(){const{t:e}=rt(),t=localStorage.getItem("token"),[r,o]=(0,n.useState)(!0),[a,i]=(0,n.useState)([]),[s,l]=(0,n.useState)([]),[c,u]=(0,n.useState)("asc"),[d,f]=(0,n.useState)("all"),[p,h]=(0,n.useState)(!1);(0,n.useEffect)((()=>{(async()=>{try{const e=await gf.get("https://shop.sharedstore.ma/api/api/admin/reports",{headers:{Authorization:`Bearer ${t}`}});i(e.data),l(e.data),o(!1),console.log(e.data)}catch(e){console.error(e)}})()}),[]);return(0,nt.jsxs)("div",{className:"antialiased",children:[(0,nt.jsx)("div",{className:"flex justify-between gap-2 items-center max-sm:p-1.5 mb-3 max-sm:mb-0",children:(0,nt.jsx)("p",{className:"text-black font-semibold text-xl max-sm:text-lg",children:e("reports")})}),(0,nt.jsxs)("div",{className:"",children:[(0,nt.jsx)("div",{className:"rounded-lg bg-white mt-3 border shadow-sm p-3 flex justify-end",children:(0,nt.jsxs)("select",{onChange:e=>(e=>{if("all"!==e){const t=a.filter((t=>t.status.toLowerCase()===e));l(t)}else l(a)})(e.target.value),className:"max-w-36 rounded-lg myborder bg-white px-2 py-1.5 text-sm font-medium text-black hover:border-[#D1D5DB] focus:z-10 focus:outline-none focus:border-gray-200 focus:ring-4 focus:ring-gray-100",children:[(0,nt.jsx)("option",{value:"all",children:e("all")}),(0,nt.jsx)("option",{value:"pending",children:e("pending")}),(0,nt.jsx)("option",{value:"completed",children:e("completed")}),(0,nt.jsx)("option",{value:"cancelled",children:e("cancelled")})]})}),(0,nt.jsx)("div",{className:"relative overflow-x-auto rounded-lg bg-white mt-3 border shadow-sm",children:r?(0,nt.jsx)("div",{className:"flex justify-center items-center h-[50vh] w-full",children:(0,nt.jsx)(Bh,{})}):s.length>0?(0,nt.jsxs)("table",{className:"w-full text-sm text-left rtl:text-right text-gray-500",children:[(0,nt.jsx)("thead",{className:"text-xs text-gray-700 bg-gray-50",children:(0,nt.jsxs)("tr",{children:[(0,nt.jsxs)("th",{className:"px-6 py-3",children:[e("report")," ID"]}),(0,nt.jsx)("th",{className:"px-6 py-3",children:e("fullname")}),(0,nt.jsx)("th",{className:"px-6 py-3",children:e("email")}),(0,nt.jsx)("th",{className:"px-6 py-3",children:e("subject")}),(0,nt.jsx)("th",{className:"px-6 py-3",children:"Date"}),(0,nt.jsx)("th",{className:"px-6 py-3",children:"Status"}),(0,nt.jsx)("th",{className:"px-6 py-3",children:e("view")})]})}),(0,nt.jsx)("tbody",{children:s.map(((t,r)=>(0,nt.jsxs)("tr",{className:"bg-white border-b",children:[(0,nt.jsx)("th",{scope:"row",className:"px-6 py-4 font-semibold text-gray-900 whitespace-nowrap",children:t.uniqueReport}),(0,nt.jsx)("td",{className:"px-6 py-4",children:t.name}),(0,nt.jsx)("td",{className:"px-6 py-4",children:t.email}),(0,nt.jsx)("td",{className:"px-6 py-4 max-w-60",children:t.subject?t.subject:"--"}),(0,nt.jsxs)("td",{className:"px-6 py-4",children:[(0,nt.jsx)(Em,{dateString:t.created_at})," "]}),(0,nt.jsx)("td",{className:"px-6 py-4 text-sm font-medium",children:"completed"===t.status.toLowerCase()?(0,nt.jsx)("p",{className:"text-green-600 bg-green-200 rounded-md px-2 text-center w-max capitalize",children:e("completed")}):"cancelled"===t.status.toLowerCase()?(0,nt.jsx)("p",{className:"text-red-600 bg-red-200 rounded-md px-2 text-center w-max capitalize",children:e("cancelled")}):"pending"===t.status.toLowerCase()?(0,nt.jsx)("p",{className:"text-yellow-600 bg-yellow-200 rounded-md px-2 text-center w-max capitalize",children:e("pending")}):null}),(0,nt.jsx)("td",{className:"px-6 py-4",children:(0,nt.jsx)("a",{href:`report/${t.id}`,className:"myborder px-2 py-1 text-black text-sm rounded-md hover:bg-gray-100 w-max",children:e("view")})})]},r)))})]}):(0,nt.jsx)("div",{className:"flex justify-center items-center py-10 text-gray-500",children:(0,nt.jsx)("div",{className:"col-span-4 text-center text-black flex flex-col gap-6 justify-center items-center min-h-[40vh]",children:(0,nt.jsx)("img",{src:xh,className:"w-48 h-auto"})})})})]})]})}function o$(){const{t:e}=rt(),t=X(),[r,o]=(0,n.useState)(0),[a,i]=(0,n.useState)(!1),s=()=>i(!1),l=[{icon:(0,nt.jsx)(BO,{className:"shrink-0 size-4 w-[18px] h-[18px]"}),title:"dashboard",active:""},{icon:(0,nt.jsx)(KA,{className:"shrink-0 size-4 w-[18px] h-[18px]"}),title:"products",active:"products"},{icon:(0,nt.jsx)(FO,{className:"shrink-0 size-4 w-[18px] h-[18px]"}),title:"categories",active:"categories"},{icon:(0,nt.jsx)(WA,{className:"shrink-0 size-4 w-[18px] h-[18px]"}),title:"licenses",active:"licenses"},{icon:(0,nt.jsx)(ag,{className:"shrink-0 size-4 w-[18px] h-[18px]"}),title:"orders",active:"orders"},{icon:(0,nt.jsx)(Ng,{className:"shrink-0 size-4 w-[18px] h-[18px]"}),title:"customers",active:"users"},{icon:(0,nt.jsx)(lO,{className:"shrink-0 size-4 w-[18px] h-[18px]"}),title:"Transactions",active:"transactions"},{icon:(0,nt.jsx)(zO,{className:"shrink-0 size-4 w-[18px] h-[18px]"}),title:"coupons",active:"coupons"},{icon:(0,nt.jsx)($s,{className:"shrink-0 size-4 w-[18px] h-[18px]"}),title:"discounts",active:"discounts"},{icon:(0,nt.jsx)(xg,{className:"shrink-0 size-4 w-[18px] h-[18px]"}),title:"reports",active:"reports"}];return(0,nt.jsxs)(nt.Fragment,{children:[(0,nt.jsx)("header",{className:"sticky top-0 inset-x-0 flex flex-wrap md:justify-start md:flex-nowrap w-full bg-white border-b text-sm py-0.5 lg:ps-[260px] z-[5]",children:(0,nt.jsxs)("nav",{className:"px-4 sm:px-6 flex basis-full items-center w-full mx-auto",children:[(0,nt.jsx)("div",{className:"me-5 lg:me-0 lg:hidden",children:(0,nt.jsx)("button",{onClick:()=>i(!0),className:"hidden max-lg:block",children:(0,nt.jsx)(Te,{className:"w-5 h-5 hover:text-blue-500"})})}),(0,nt.jsx)("div",{className:"w-full flex items-center justify-end ms-auto gap-x-1",children:(0,nt.jsx)("div",{className:"flex flex-row items-center justify-end gap-1",children:(0,nt.jsx)("div",{className:"hs-dropdown [--placement:bottom-right] relative inline-flex",children:(0,nt.jsxs)(Hs,{label:"sign",dismissOnClick:!0,renderTrigger:()=>(0,nt.jsx)("button",{children:(0,nt.jsx)(bt,{className:"shrink-0 size-11 rounded-full text-gray-800"})}),children:[(0,nt.jsx)(Hs.Item,{href:"/admin/dashboard",children:e("dashboard")}),(0,nt.jsx)(Hs.Item,{children:(0,nt.jsx)(Fh,{compo:"text",text:"Logout"})})]})})})})]})}),(0,nt.jsx)("div",{className:"hs-overlay hs-overlay-open:translate-x-0 -translate-x-full transition-all duration-300 transform w-[260px] h-full hidden fixed inset-y-0 start-0 bg-white border-e border-gray-200 lg:block lg:translate-x-0 lg:end-auto lg:bottom-0 z-10",children:(0,nt.jsxs)("div",{className:"relative flex flex-col h-full max-h-full",children:[(0,nt.jsxs)("a",{href:"/",className:"flex flex-wrap items-center text-2xl text-black font-bold px-5 pt-5",children:["Shared",(0,nt.jsx)("span",{className:"text-blue-600",children:"Store"})]}),(0,nt.jsx)("div",{className:"h-full overflow-y-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300",children:(0,nt.jsx)("nav",{className:"hs-accordion-group p-3 w-full flex flex-col flex-wrap",children:(0,nt.jsxs)("ul",{className:"flex flex-col space-y-2",children:[l.map(((t,n)=>(0,nt.jsx)("li",{children:(0,nt.jsxs)(QO,{to:`/admin/dashboard/${t.active}`,onClick:()=>o(n),className:(n===r?"bg-gray-100":"bg-white")+" flex items-center leading-none gap-x-3.5 py-2 px-2.5 text-sm text-gray-800 rounded-lg hover:bg-gray-100 focus:outline-none focus:bg-gray-100",children:[t.icon," ",e(t.title)]})},n))),(0,nt.jsx)(fg,{typeOfCompo:"sidebar"})]})})})]})}),(0,nt.jsx)("div",{className:"w-full lg:ps-64",children:(0,nt.jsx)("div",{className:"p-4 sm:p-6 space-y-4 sm:space-y-6 min-h-[95vh] bg-gray-100",children:(0,nt.jsxs)(xe,{children:[(0,nt.jsx)(be,{path:"",element:(0,nt.jsx)(JA,{})}),(0,nt.jsx)(be,{path:"products",element:(0,nt.jsx)(tO,{})}),(0,nt.jsx)(be,{path:"categories",element:(0,nt.jsx)(aO,{})}),(0,nt.jsx)(be,{path:"licenses",element:(0,nt.jsx)(iO,{})}),(0,nt.jsx)(be,{path:"add_product",element:(0,nt.jsx)(EO,{})}),(0,nt.jsx)(be,{path:"edit_product/:slug",element:(0,nt.jsx)(AO,{})}),(0,nt.jsx)(be,{path:"orders",element:(0,nt.jsx)(OO,{})}),(0,nt.jsx)(be,{path:"users",element:(0,nt.jsx)($O,{})}),(0,nt.jsx)(be,{path:"transactions",element:(0,nt.jsx)(e$,{})}),(0,nt.jsx)(be,{path:"coupons",element:(0,nt.jsx)(RO,{})}),(0,nt.jsx)(be,{path:"discounts",element:(0,nt.jsx)(DO,{})}),(0,nt.jsx)(be,{path:"reports",element:(0,nt.jsx)(n$,{})}),(0,nt.jsx)(be,{path:"report/:id",element:(0,nt.jsx)(r$,{})})]})})}),(0,nt.jsx)(Ms,{open:a,onClose:s,children:(0,nt.jsx)(Ms.Items,{children:(0,nt.jsxs)("div",{className:"relative flex flex-col h-full max-h-full",children:[(0,nt.jsxs)("h1",{className:"flex flex-wrap items-center text-2xl text-black font-bold px-5 pt-5",children:["Shared",(0,nt.jsx)("span",{className:"text-blue-600",children:"Store"})]}),(0,nt.jsx)("div",{className:"h-full overflow-y-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300",children:(0,nt.jsx)("nav",{className:"hs-accordion-group p-3 w-full flex flex-col flex-wrap",children:(0,nt.jsxs)("ul",{className:"flex flex-col space-y-2",children:[l.map(((r,n)=>(0,nt.jsx)("li",{children:(0,nt.jsxs)("button",{onClick:()=>{return e=r.active,t(`/admin/dashboard/${e}`),void s();var e},className:"flex items-center leading-none gap-x-3.5 py-2 px-2.5 text-sm text-gray-800 rounded-lg hover:bg-gray-100 focus:outline-none focus:bg-gray-100",children:[r.icon," ",e(r.title)]})},n))),(0,nt.jsx)(fg,{typeOfCompo:"sidebar"})]})})})]})})})]})}function a$(e){return $e({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{id:"Lock"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{d:"M17.44,9.33h-1.1V6.4a4.34,4.34,0,0,0-8.68,0V9.33H6.56a2.5,2.5,0,0,0-2.5,2.5v7.61a2.507,2.507,0,0,0,2.5,2.5H17.44a2.507,2.507,0,0,0,2.5-2.5V11.83A2.5,2.5,0,0,0,17.44,9.33ZM8.66,6.4a3.34,3.34,0,0,1,6.68,0V9.33H8.66ZM18.94,19.44a1.511,1.511,0,0,1-1.5,1.5H6.56a1.511,1.511,0,0,1-1.5-1.5V11.83a1.5,1.5,0,0,1,1.5-1.5H17.44a1.5,1.5,0,0,1,1.5,1.5Z"},child:[]},{tag:"path",attr:{d:"M13,14.95a.984.984,0,0,1-.5.86v1.5a.5.5,0,0,1-1,0v-1.5a.984.984,0,0,1-.5-.86,1,1,0,0,1,2,0Z"},child:[]}]}]}]})(e)}function i$(){const{t:e}=rt(),[t,r]=(0,n.useState)(!1),[o,a]=(0,n.useState)(!1),[i,s]=(0,n.useState)("");return(0,nt.jsxs)(nt.Fragment,{children:[(0,nt.jsxs)("section",{className:"bg-gray-100 min-h-screen",children:[(0,nt.jsx)(pg,{}),(0,nt.jsxs)("div",{className:"flex flex-col items-center justify-center p-4 mx-auto h-[85vh] lg:py-0",children:[(0,nt.jsxs)("div",{className:"w-full p-6 shadow-sm myborder bg-white rounded-lg md:mt-0 sm:max-w-md",children:[(0,nt.jsx)("div",{className:"flex justify-center w-full",children:(0,nt.jsx)("div",{className:"border-[2px] border-blue-600 rounded-full p-3",children:(0,nt.jsx)(a$,{className:"h-16 w-16 text-blue-600"})})}),(0,nt.jsxs)("div",{className:"text-center mt-4 px-6",children:[(0,nt.jsx)("h1",{className:"mb-1 text-base leading-tight tracking-tight text-black",children:e("forgot-password-title")}),(0,nt.jsx)("p",{className:"font-light text-sm text-gray-500",children:e("forgot-password-text")})]}),(0,nt.jsxs)("form",{onSubmit:async t=>{t.preventDefault(),a(!0),r(!0);const n=ap.language;gf.post("https://shop.sharedstore.ma/api/api/forgot-password",{email:i,language:n}).then((e=>{a(!1)})).catch((t=>{uh("error",e("er-forgotpsw")),r(!1)}))},className:"mt-4 space-y-3",children:[(0,nt.jsxs)("div",{children:[(0,nt.jsx)("label",{htmlFor:"email",className:"block mb-2 text-sm font-medium text-black",children:e("email")}),(0,nt.jsx)("input",{type:"email",value:i,onChange:e=>s(e.target.value),className:"bg-gray-50 myborder text-black text-sm rounded-lg focus:ring-blue-600 focus:border-blue-600 block w-full p-2.5",placeholder:e("email"),required:!0})]}),(0,nt.jsx)("button",{type:"submit",className:"w-full text-white bg-blue-600 hover:bg-blue-700 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center",children:"Reset password"})]})]}),(0,nt.jsxs)("div",{children:[(0,nt.jsxs)("div",{className:"inline-flex items-center justify-center w-full mt-6",children:[(0,nt.jsx)("hr",{className:"w-64 h-px my-4 bg-gray-500 border-0"}),(0,nt.jsx)("span",{className:"absolute px-3 font-medium text-gray-700 -translate-x-1/2 bg-gray-100 left-1/2 text-sm",children:e("or")})]}),(0,nt.jsx)("a",{href:"/register",className:"text-center text-sm text-black hover:text-blue-700",children:e("create-acc")})]})]})]}),(0,nt.jsxs)(El,{show:t,size:"md",onClose:()=>r(!1),popup:!0,children:[(0,nt.jsx)(El.Header,{}),(0,nt.jsx)(El.Body,{className:"px-4 pb-4 text-center",children:o?(0,nt.jsx)("div",{className:"h-60 flex items-center justify-center w-full",children:(0,nt.jsx)(Tr,{className:"w-8 h-8 text-gray-400 fill-blue-600"})}):(0,nt.jsxs)("div",{children:[(0,nt.jsx)("div",{className:"rounded-full p-2 mx-auto mb-3 bg-green-100 w-max",children:(0,nt.jsx)("div",{className:"rounded-full bg-green-300 text-white w-max p-2",children:(0,nt.jsx)(ZA,{className:"w-10 h-10 max-sm:h-8 max-sm:w-8 pb-0.5"})})}),(0,nt.jsx)("h2",{className:"text-lg max-sm:text-base text-black font-semibold mb-2",children:e("notif-reset-link-title")}),(0,nt.jsx)("p",{className:"text-sm max-sm:text-xs px-2",children:e("notif-reset-link-text")}),(0,nt.jsx)("div",{className:"w-full flex justify-center gap-2 font-medium text-sm max-sm:text-xs mt-5",children:(0,nt.jsx)("a",{href:"/login",className:"px-3 py-2 bg-green-400 hover:bg-green-500 text-white rounded-md",children:e("iunderstand")})})]})})]})]})}function s$(){const{t:e}=rt(),t=X(),r=Z(),[o,a]=(0,n.useState)(""),[i,s]=(0,n.useState)(""),[l,c]=(0,n.useState)(""),[u,d]=(0,n.useState)("");(0,n.useEffect)((()=>{const e=new URLSearchParams(r.search),t=e.get("token"),n=e.get("email");a(t),s(decodeURIComponent(n))}),[r]);return(0,nt.jsxs)("section",{className:"bg-gray-100 min-h-screen",children:[(0,nt.jsx)(pg,{}),(0,nt.jsx)("div",{className:"flex flex-col items-center justify-center p-4 mx-auto h-[85vh] lg:py-0",children:(0,nt.jsxs)("div",{className:"w-full p-6 shadow-sm myborder bg-white rounded-lg md:mt-0 sm:max-w-md",children:[(0,nt.jsx)("div",{className:"flex justify-center w-full",children:(0,nt.jsx)("div",{className:"border-[2px] border-blue-600 rounded-full p-3",children:(0,nt.jsx)(a$,{className:"h-16 w-16 text-blue-600"})})}),(0,nt.jsxs)("div",{className:"text-center mt-4 px-6",children:[(0,nt.jsx)("h1",{className:"mb-1 text-base leading-tight tracking-tight text-black",children:e("reset-password-title")}),(0,nt.jsx)("p",{className:"font-light text-sm text-gray-500",children:e("reset-password-text")})]}),(0,nt.jsxs)("form",{onSubmit:async r=>{if(r.preventDefault(),l===u)try{const r=await gf.post("https://shop.sharedstore.ma/api/api/reset-password",{email:i,password:l,password_confirmation:u,token:o});console.log(r.data),uh("success",e("s-up-psw")),setTimeout((()=>{t("/login")}),1e3)}catch(n){uh("error",e("e-up-psw"))}else uh("error",e("error-not-match"))},className:"mt-4 space-y-3",children:[(0,nt.jsxs)("div",{children:[(0,nt.jsx)("label",{className:"block mb-2 text-sm font-medium text-black",children:e("new-password")}),(0,nt.jsx)("input",{type:"password",value:l,onChange:e=>c(e.target.value),className:"bg-gray-50 myborder text-black text-sm rounded-lg focus:ring-blue-600 focus:border-blue-600 block w-full p-2.5",placeholder:e("new-password"),required:!0})]}),(0,nt.jsxs)("div",{children:[(0,nt.jsx)("label",{className:"block mb-2 text-sm font-medium text-black",children:e("conf-password")}),(0,nt.jsx)("input",{type:"password",value:u,onChange:e=>d(e.target.value),className:"bg-gray-50 myborder text-black text-sm rounded-lg focus:ring-blue-600 focus:border-blue-600 block w-full p-2.5",placeholder:e("conf-password"),required:!0})]}),(0,nt.jsx)("button",{type:"submit",className:"w-full text-white bg-blue-600 hover:bg-blue-700 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center",children:e("reset-password")})]})]})})]})}function l$(){return(0,nt.jsxs)("section",{className:"",children:[(0,nt.jsx)(pg,{}),(0,nt.jsx)(Tm,{}),(0,nt.jsx)("div",{className:"bg-gray-100",children:(0,nt.jsx)("div",{className:"container py-20",children:(0,nt.jsx)(IA,{admin:!0})})}),(0,nt.jsx)(og,{})]})}const c$=function(){return(0,nt.jsx)(lp,{children:(0,nt.jsx)(Eh,{children:(0,nt.jsxs)(xe,{children:[(0,nt.jsx)(be,{path:"/",element:(0,nt.jsx)(hg,{})}),(0,nt.jsx)(be,{path:"/login",element:(0,nt.jsx)(mg,{})}),(0,nt.jsx)(be,{path:"/register",element:(0,nt.jsx)(gg,{})}),(0,nt.jsx)(be,{path:"/forgot-password",element:(0,nt.jsx)(i$,{})}),(0,nt.jsx)(be,{path:"/reset-password",element:(0,nt.jsx)(s$,{})}),(0,nt.jsx)(be,{path:"/shop",element:(0,nt.jsx)(Eg,{})}),(0,nt.jsx)(be,{path:"/contact-us",element:(0,nt.jsx)(Ag,{})}),(0,nt.jsx)(be,{path:"/about-us",element:(0,nt.jsx)(Og,{})}),(0,nt.jsx)(be,{path:"/product/:slug",element:(0,nt.jsx)(Dk,{})}),(0,nt.jsx)(be,{path:"/order",element:(0,nt.jsx)(zk,{})}),(0,nt.jsxs)(be,{element:(0,nt.jsx)(PA,{}),children:[(0,nt.jsx)(be,{path:"/account/:section",element:(0,nt.jsx)(qA,{})}),(0,nt.jsx)(be,{path:"/account/favorites",element:(0,nt.jsx)(AA,{})}),(0,nt.jsx)(be,{path:"/order/checkout",element:(0,nt.jsx)(SA,{})}),(0,nt.jsx)(be,{path:"/order/thankyou",element:(0,nt.jsx)(UA,{})})]}),(0,nt.jsxs)(be,{element:(0,nt.jsx)($A,{}),children:[(0,nt.jsx)(be,{path:"/admin/dashboard/*",element:(0,nt.jsx)(o$,{})}),(0,nt.jsx)(be,{path:"/admin/settings",element:(0,nt.jsx)(l$,{})})]}),(0,nt.jsx)(be,{path:"/order/confirmorder",element:(0,nt.jsx)(Bk,{})}),(0,nt.jsx)(be,{path:"*",element:(0,nt.jsx)(TA,{})})]})})})};a.createRoot(document.getElementById("root")).render((0,nt.jsxs)(VO,{children:[(0,nt.jsx)(lh,{}),(0,nt.jsx)(c$,{})]}))})()})(); //# sourceMappingURL=main.eb7e00fb.js.map
Save
cmd:
run