=0?t:t+this.length]},toArray:function(){return this.get()},size:function(){return this.length},remove:function(){return this.each((function(){null!=this.parentNode&&this.parentNode.removeChild(this)}))},each:function(t){return a.every.call(this,(function(e,n){return!1!==t.call(e,n,e)})),this},filter:function(t){return P(t)?this.not(this.not(t)):i(c.call(this,(function(e){return O.matches(e,t)})))},add:function(t,e){return i(o(this.concat(i(t,e))))},is:function(t){return this.length>0&&O.matches(this[0],t)},not:function(t){var n=[];if(P(t)&&t.call!==e)this.each((function(e){t.call(this,e)||n.push(this)}));else{var s="string"==typeof t?this.filter(t):q(t)&&P(t.item)?l.call(t):i(t);this.forEach((function(t){s.indexOf(t)<0&&n.push(t)}))}return i(n)},has:function(t){return this.filter((function(){return F(t)?i.contains(this,t):i(this).find(t).size()}))},eq:function(t){return-1===t?this.slice(t):this.slice(t,+t+1)},first:function(){var t=this[0];return t&&!F(t)?t:i(t)},last:function(){var t=this[this.length-1];return t&&!F(t)?t:i(t)},find:function(t){var e=this;return t?"object"==typeof t?i(t).filter((function(){var t=this;return a.some.call(e,(function(e){return i.contains(e,t)}))})):1==this.length?i(O.qsa(this[0],t)):this.map((function(){return O.qsa(this,t)})):i()},closest:function(t,e){var n=[],s="object"==typeof t&&i(t);return this.each((function(i,r){for(;r&&!(s?s.indexOf(r)>=0:O.matches(r,t));)r=r!==e&&!M(r)&&r.parentNode;r&&n.indexOf(r)<0&&n.push(r)})),i(n)},parents:function(t){for(var e=[],n=this;n.length>0;)n=i.map(n,(function(t){if((t=t.parentNode)&&!M(t)&&e.indexOf(t)<0)return e.push(t),t}));return Z(e,t)},parent:function(t){return Z(o(this.pluck("parentNode")),t)},children:function(t){return Z(this.map((function(){return U(this)})),t)},contents:function(){return this.map((function(){return this.contentDocument||l.call(this.childNodes)}))},siblings:function(t){return Z(this.map((function(t,e){return c.call(U(e.parentNode),(function(t){return t!==e}))})),t)},empty:function(){return this.each((function(){this.innerHTML=""}))},pluck:function(t){return i.map(this,(function(e){return e[t]}))},show:function(){return this.each((function(){"none"==this.style.display&&(this.style.display=""),"none"==getComputedStyle(this,"").getPropertyValue("display")&&(this.style.display=z(this.nodeName))}))},replaceWith:function(t){return this.before(t).remove()},wrap:function(t){var e=P(t);if(this[0]&&!e)var n=i(t).get(0),s=n.parentNode||this.length>1;return this.each((function(r){i(this).wrapAll(e?t.call(this,r):s?n.cloneNode(!0):n)}))},wrapAll:function(t){if(this[0]){var e;for(i(this[0]).before(t=i(t));(e=t.children()).length;)t=e.first();i(t).append(this)}return this},wrapInner:function(t){var e=P(t);return this.each((function(n){var s=i(this),r=s.contents(),o=e?t.call(this,n):t;r.length?r.wrapAll(o):s.append(o)}))},unwrap:function(){return this.parent().each((function(){i(this).replaceWith(i(this).children())})),this},clone:function(){return this.map((function(){return this.cloneNode(!0)}))},hide:function(){return this.css("display","none")},toggle:function(t){return this.each((function(){var n=i(this);(t===e?"none"==n.css("display"):t)?n.show():n.hide()}))},prev:function(t){return i(this.pluck("previousElementSibling")).filter(t||"*")},next:function(t){return i(this.pluck("nextElementSibling")).filter(t||"*")},html:function(t){return 0 in arguments?this.each((function(e){var n=this.innerHTML;i(this).empty().append(X(this,t,e,n))})):0 in this?this[0].innerHTML:null},text:function(t){return 0 in arguments?this.each((function(e){var n=X(this,t,e,this.textContent);this.textContent=null==n?"":""+n})):0 in this?this.pluck("textContent").join(""):null},attr:function(t,i){var s;return"string"!=typeof t||1 in arguments?this.each((function(e){if(1===this.nodeType)if(F(t))for(n in t)G(this,n,t[n]);else G(this,t,X(this,i,e,this.getAttribute(t)))})):0 in this&&1==this[0].nodeType&&null!=(s=this[0].getAttribute(t))?s:e},removeAttr:function(t){return this.each((function(){1===this.nodeType&&t.split(" ").forEach((function(t){G(this,t)}),this)}))},prop:function(t,e){return t=N[t]||t,1 in arguments?this.each((function(n){this[t]=X(this,e,n,this[t])})):this[0]&&this[0][t]},removeProp:function(t){return t=N[t]||t,this.each((function(){delete this[t]}))},data:function(t,n){var i="data-"+t.replace(w,"-$1").toLowerCase(),s=1 in arguments?this.attr(i,n):this.attr(i);return null!==s?Y(s):e},val:function(t){return 0 in arguments?(null==t&&(t=""),this.each((function(e){this.value=X(this,t,e,this.value)}))):this[0]&&(this[0].multiple?i(this[0]).find("option").filter((function(){return this.selected})).pluck("value"):this[0].value)},offset:function(e){if(e)return this.each((function(t){var n=i(this),s=X(this,e,t,n.offset()),r=n.offsetParent().offset(),o={top:s.top-r.top,left:s.left-r.left};"static"==n.css("position")&&(o.position="relative"),n.css(o)}));if(!this.length)return null;if(h.documentElement!==this[0]&&!i.contains(h.documentElement,this[0]))return{top:0,left:0};var n=this[0].getBoundingClientRect();return{left:n.left+t.pageXOffset,top:n.top+t.pageYOffset,width:Math.round(n.width),height:Math.round(n.height)}},css:function(t,e){if(arguments.length<2){var s=this[0];if("string"==typeof t){if(!s)return;return s.style[r(t)]||getComputedStyle(s,"").getPropertyValue(t)}if(k(t)){if(!s)return;var o={},a=getComputedStyle(s,"");return i.each(t,(function(t,e){o[e]=s.style[r(e)]||a.getPropertyValue(e)})),o}}var u="";if("string"==I(t))e||0===e?u=B(t)+":"+j(t,e):this.each((function(){this.style.removeProperty(B(t))}));else for(n in t)t[n]||0===t[n]?u+=B(n)+":"+j(n,t[n])+";":this.each((function(){this.style.removeProperty(B(n))}));return this.each((function(){this.style.cssText+=";"+u}))},index:function(t){return t?this.indexOf(i(t)[0]):this.parent().children().indexOf(this[0])},hasClass:function(t){return!!t&&a.some.call(this,(function(t){return this.test(J(t))}),K(t))},addClass:function(t){return t?this.each((function(e){if("className"in this){s=[];var n=J(this);X(this,t,e,n).split(/\s+/g).forEach((function(t){i(this).hasClass(t)||s.push(t)}),this),s.length&&J(this,n+(n?" ":"")+s.join(" "))}})):this},removeClass:function(t){return this.each((function(n){if("className"in this){if(t===e)return J(this,"");s=J(this),X(this,t,n,s).split(/\s+/g).forEach((function(t){s=s.replace(K(t)," ")})),J(this,s.trim())}}))},toggleClass:function(t,n){return t?this.each((function(s){var r=i(this);X(this,t,s,J(this)).split(/\s+/g).forEach((function(t){(n===e?!r.hasClass(t):n)?r.addClass(t):r.removeClass(t)}))})):this},scrollTop:function(t){if(this.length){var n="scrollTop"in this[0];return t===e?n?this[0].scrollTop:this[0].pageYOffset:this.each(n?function(){this.scrollTop=t}:function(){this.scrollTo(this.scrollX,t)})}},scrollLeft:function(t){if(this.length){var n="scrollLeft"in this[0];return t===e?n?this[0].scrollLeft:this[0].pageXOffset:this.each(n?function(){this.scrollLeft=t}:function(){this.scrollTo(t,this.scrollY)})}},position:function(){if(this.length){var t=this[0],e=this.offsetParent(),n=this.offset(),s=y.test(e[0].nodeName)?{top:0,left:0}:e.offset();return n.top-=parseFloat(i(t).css("margin-top"))||0,n.left-=parseFloat(i(t).css("margin-left"))||0,s.top+=parseFloat(i(e[0]).css("border-top-width"))||0,s.left+=parseFloat(i(e[0]).css("border-left-width"))||0,{top:n.top-s.top,left:n.left-s.left}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent||h.body;t&&!y.test(t.nodeName)&&"static"==i(t).css("position");)t=t.offsetParent;return t}))}},i.fn.detach=i.fn.remove,["width","height"].forEach((function(t){var n=t.replace(/./,(function(t){return t[0].toUpperCase()}));i.fn[t]=function(s){var r,o=this[0];return s===e?L(o)?o["inner"+n]:M(o)?o.documentElement["scroll"+n]:(r=this.offset())&&r[t]:this.each((function(e){(o=i(this)).css(t,X(this,s,e,o[t]()))}))}})),C.forEach((function(n,s){var r=s%2;i.fn[n]=function(){var n,o,a=i.map(arguments,(function(t){var s=[];return"array"==(n=I(t))?(t.forEach((function(t){return t.nodeType!==e?s.push(t):i.zepto.isZ(t)?s=s.concat(t.get()):void(s=s.concat(O.fragment(t)))})),s):"object"==n||null==t?t:O.fragment(t)})),u=this.length>1;return a.length<1?this:this.each((function(e,n){o=r?n:n.parentNode,n=0==s?n.nextSibling:1==s?n.firstChild:2==s?n:null;var c=i.contains(h.documentElement,o);a.forEach((function(e){if(u)e=e.cloneNode(!0);else if(!o)return i(e).remove();o.insertBefore(e,n),c&&tt(e,(function(e){if(!(null==e.nodeName||"SCRIPT"!==e.nodeName.toUpperCase()||e.type&&"text/javascript"!==e.type||e.src)){var n=e.ownerDocument?e.ownerDocument.defaultView:t;n.eval.call(n,e.innerHTML)}}))}))}))},i.fn[r?n+"To":"insert"+(s?"Before":"After")]=function(t){return i(t)[n](this),this}})),O.Z.prototype=Q.prototype=i.fn,O.uniq=o,O.deserializeValue=Y,i.zepto=O,i}();return function(e){var n,i=1,s=Array.prototype.slice,r=e.isFunction,o=function(t){return"string"==typeof t},a={},u={},c="onfocusin"in t,l={focus:"focusin",blur:"focusout"},h={mouseenter:"mouseover",mouseleave:"mouseout"};function p(t){return t._zid||(t._zid=i++)}function f(t,e,n,i){if((e=d(e)).ns)var s=g(e.ns);return(a[p(t)]||[]).filter((function(t){return t&&(!e.e||t.e==e.e)&&(!e.ns||s.test(t.ns))&&(!n||p(t.fn)===p(n))&&(!i||t.sel==i)}))}function d(t){var e=(""+t).split(".");return{e:e[0],ns:e.slice(1).sort().join(" ")}}function g(t){return new RegExp("(?:^| )"+t.replace(" "," .* ?")+"(?: |$)")}function m(t,e){return t.del&&!c&&t.e in l||!!e}function v(t){return h[t]||c&&l[t]||t}function y(t,i,s,r,o,u,c){var l=p(t),f=a[l]||(a[l]=[]);i.split(/\s/).forEach((function(i){if("ready"==i)return e(document).ready(s);var a=d(i);a.fn=s,a.sel=o,a.e in h&&(s=function(t){var n=t.relatedTarget;if(!n||n!==this&&!e.contains(this,n))return a.fn.apply(this,arguments)}),a.del=u;var l=u||s;a.proxy=function(e){if(!(e=S(e)).isImmediatePropagationStopped()){try{var i=Object.getOwnPropertyDescriptor(e,"data");i&&!i.writable||(e.data=r)}catch(e){}var s=l.apply(t,e._args==n?[e]:[e].concat(e._args));return!1===s&&(e.preventDefault(),e.stopPropagation()),s}},a.i=f.length,f.push(a),"addEventListener"in t&&t.addEventListener(v(a.e),a.proxy,m(a,c))}))}function w(t,e,n,i,s){var r=p(t);(e||"").split(/\s/).forEach((function(e){f(t,e,n,i).forEach((function(e){delete a[r][e.i],"removeEventListener"in t&&t.removeEventListener(v(e.e),e.proxy,m(e,s))}))}))}u.click=u.mousedown=u.mouseup=u.mousemove="MouseEvents",e.event={add:y,remove:w},e.proxy=function(t,n){var i=2 in arguments&&s.call(arguments,2);if(r(t)){var a=function(){return t.apply(n,i?i.concat(s.call(arguments)):arguments)};return a._zid=p(t),a}if(o(n))return i?(i.unshift(t[n],t),e.proxy.apply(null,i)):e.proxy(t[n],t);throw new TypeError("expected function")},e.fn.bind=function(t,e,n){return this.on(t,e,n)},e.fn.unbind=function(t,e){return this.off(t,e)},e.fn.one=function(t,e,n,i){return this.on(t,e,n,i,1)};var b=function(){return!0},C=function(){return!1},x=/^([A-Z]|returnValue$|layer[XY]$|webkitMovement[XY]$)/,_={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"};function S(t,i){if(i||!t.isDefaultPrevented){i||(i=t),e.each(_,(function(e,n){var s=i[e];t[e]=function(){return this[n]=b,s&&s.apply(i,arguments)},t[n]=C}));try{t.timeStamp||(t.timeStamp=Date.now())}catch(s){}(i.defaultPrevented!==n?i.defaultPrevented:"returnValue"in i?!1===i.returnValue:i.getPreventDefault&&i.getPreventDefault())&&(t.isDefaultPrevented=b)}return t}function E(t){var e,i={originalEvent:t};for(e in t)x.test(e)||t[e]===n||(i[e]=t[e]);return S(i,t)}e.fn.delegate=function(t,e,n){return this.on(e,t,n)},e.fn.undelegate=function(t,e,n){return this.off(e,t,n)},e.fn.live=function(t,n){return e(document.body).delegate(this.selector,t,n),this},e.fn.die=function(t,n){return e(document.body).undelegate(this.selector,t,n),this},e.fn.on=function(t,i,a,u,c){var l,h,p=this;return t&&!o(t)?(e.each(t,(function(t,e){p.on(t,i,a,e,c)})),p):(o(i)||r(u)||!1===u||(u=a,a=i,i=n),u!==n&&!1!==a||(u=a,a=n),!1===u&&(u=C),p.each((function(n,r){c&&(l=function(t){return w(r,t.type,u),u.apply(this,arguments)}),i&&(h=function(t){var n,o=e(t.target).closest(i,r).get(0);if(o&&o!==r)return n=e.extend(E(t),{currentTarget:o,liveFired:r}),(l||u).apply(o,[n].concat(s.call(arguments,1)))}),y(r,t,u,a,i,h||l)})))},e.fn.off=function(t,i,s){var a=this;return t&&!o(t)?(e.each(t,(function(t,e){a.off(t,i,e)})),a):(o(i)||r(s)||!1===s||(s=i,i=n),!1===s&&(s=C),a.each((function(){w(this,t,s,i)})))},e.fn.trigger=function(t,n){return(t=o(t)||e.isPlainObject(t)?e.Event(t):S(t))._args=n,this.each((function(){t.type in l&&"function"==typeof this[t.type]?this[t.type]():"dispatchEvent"in this?this.dispatchEvent(t):e(this).triggerHandler(t,n)}))},e.fn.triggerHandler=function(t,n){var i,s;return this.each((function(r,a){(i=E(o(t)?e.Event(t):t))._args=n,i.target=a,e.each(f(a,t.type||t),(function(t,e){if(s=e.proxy(i),i.isImmediatePropagationStopped())return!1}))})),s},"focusin focusout focus blur load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select keydown keypress keyup error".split(" ").forEach((function(t){e.fn[t]=function(e){return 0 in arguments?this.bind(t,e):this.trigger(t)}})),e.Event=function(t,e){o(t)||(t=(e=t).type);var n=document.createEvent(u[t]||"Events"),i=!0;if(e)for(var s in e)"bubbles"==s?i=!!e[s]:n[s]=e[s];return n.initEvent(t,i,!0),S(n)}}(i),n=[],i.fn.remove=function(){return this.each((function(){this.parentNode&&("IMG"===this.tagName&&(n.push(this),this.src="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=",e&&clearTimeout(e),e=setTimeout((function(){n=[]}),6e4)),this.parentNode.removeChild(this))}))},function(t){var e={},n=t.fn.data,i=t.camelCase,s=t.expando="Zepto"+ +new Date,r=[];function o(r,o){var u=r[s],c=u&&e[u];if(void 0===o)return c||a(r);if(c){if(o in c)return c[o];var l=i(o);if(l in c)return c[l]}return n.call(t(r),o)}function a(n,r,o){var a=n[s]||(n[s]=++t.uuid),c=e[a]||(e[a]=u(n));return void 0!==r&&(c[i(r)]=o),c}function u(e){var n={};return t.each(e.attributes||r,(function(e,s){0==s.name.indexOf("data-")&&(n[i(s.name.replace("data-",""))]=t.zepto.deserializeValue(s.value))})),n}t.fn.data=function(e,n){return void 0===n?t.isPlainObject(e)?this.each((function(n,i){t.each(e,(function(t,e){a(i,t,e)}))})):0 in this?o(this[0],e):void 0:this.each((function(){a(this,e,n)}))},t.data=function(e,n,i){return t(e).data(n,i)},t.hasData=function(n){var i=n[s],r=i&&e[i];return!!r&&!t.isEmptyObject(r)},t.fn.removeData=function(n){return"string"==typeof n&&(n=n.split(/\s+/)),this.each((function(){var r=this[s],o=r&&e[r];o&&t.each(n||o,(function(t){delete o[n?i(this):t]}))}))},["remove","empty"].forEach((function(e){var n=t.fn[e];t.fn[e]=function(){var t=this.find("*");return"remove"===e&&(t=t.add(this)),t.removeData(),n.call(this)}}))}(i),i}(e)},8937:t=>{"use strict";var e={}.hasOwnProperty,n=/[ -,\.\/:-@\[-\^`\{-~]/,i=/[ -,\.\/:-@\[\]\^`\{-~]/,s=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,r=function t(r,o){"single"!=(o=function(t,n){if(!t)return n;var i={};for(var s in n)i[s]=e.call(t,s)?t[s]:n[s];return i}(o,t.options)).quotes&&"double"!=o.quotes&&(o.quotes="single");for(var a="double"==o.quotes?'"':"'",u=o.isIdentifier,c=r.charAt(0),l="",h=0,p=r.length;h126){if(d>=55296&&d<=56319&&h
{"use strict";var i,s,r,o=[n(5741),n(1856),n(1015),n(6486),n(5723),n(6345)],a=-1,u=[],c=!1;function l(){i&&s&&(i=!1,s.length?u=s.concat(u):a=-1,u.length&&h())}function h(){if(!i){c=!1,i=!0;for(var t=u.length,e=setTimeout(l);t;){for(s=u,u=[];s&&++a1)for(var n=1;n{"use strict";e.test=function(){return!n.g.setImmediate&&void 0!==n.g.MessageChannel},e.install=function(t){var e=new n.g.MessageChannel;return e.port1.onmessage=t,function(){e.port2.postMessage(0)}}},1015:(t,e,n)=>{"use strict";var i=n.g.MutationObserver||n.g.WebKitMutationObserver;e.test=function(){return i},e.install=function(t){var e=0,s=new i(t),r=n.g.document.createTextNode("");return s.observe(r,{characterData:!0}),function(){r.data=e=++e%2}}},1856:(t,e,n)=>{"use strict";e.test=function(){return"function"==typeof n.g.queueMicrotask},e.install=function(t){return function(){n.g.queueMicrotask(t)}}},5723:(t,e,n)=>{"use strict";e.test=function(){return"document"in n.g&&"onreadystatechange"in n.g.document.createElement("script")},e.install=function(t){return function(){var e=n.g.document.createElement("script");return e.onreadystatechange=function(){t(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},n.g.document.documentElement.appendChild(e),t}}},6345:(t,e)=>{"use strict";e.test=function(){return!0},e.install=function(t){return function(){setTimeout(t,0)}}}}]);
\ No newline at end of file
diff --git a/assets/js/489.d07863ea.js b/assets/js/489.d07863ea.js
new file mode 100644
index 000000000..bc7cca159
--- /dev/null
+++ b/assets/js/489.d07863ea.js
@@ -0,0 +1,2 @@
+/*! For license information please see 489.d07863ea.js.LICENSE.txt */
+(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[489],{2870:(t,e,n)=>{"use strict";t.exports=n(810)},2542:(t,e,n)=>{"use strict";var i=n(6573),s={wrapper:{position:"relative",display:"inline-block"},hint:{position:"absolute",top:"0",left:"0",borderColor:"transparent",boxShadow:"none",opacity:"1"},input:{position:"relative",verticalAlign:"top",backgroundColor:"transparent"},inputWithNoHint:{position:"relative",verticalAlign:"top"},dropdown:{position:"absolute",top:"100%",left:"0",zIndex:"100",display:"none"},suggestions:{display:"block"},suggestion:{whiteSpace:"nowrap",cursor:"pointer"},suggestionChild:{whiteSpace:"normal"},ltr:{left:"0",right:"auto"},rtl:{left:"auto",right:"0"},defaultClasses:{root:"algolia-autocomplete",prefix:"aa",noPrefix:!1,dropdownMenu:"dropdown-menu",input:"input",hint:"hint",suggestions:"suggestions",suggestion:"suggestion",cursor:"cursor",dataset:"dataset",empty:"empty"},appendTo:{wrapper:{position:"absolute",zIndex:"100",display:"none"},input:{},inputWithNoHint:{},dropdown:{display:"block"}}};i.isMsie()&&i.mixin(s.input,{backgroundImage:"url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)"}),i.isMsie()&&i.isMsie()<=7&&i.mixin(s.input,{marginTop:"-1px"}),t.exports=s},897:(t,e,n)=>{"use strict";var i="aaDataset",s="aaValue",r="aaDatum",o=n(6573),a=n(1348),u=n(9272),c=n(2542),l=n(4436);function h(t){var e;(t=t||{}).templates=t.templates||{},t.source||o.error("missing source"),t.name&&(e=t.name,!/^[_a-zA-Z0-9-]+$/.test(e))&&o.error("invalid dataset name: "+t.name),this.query=null,this._isEmpty=!0,this.highlight=!!t.highlight,this.name=void 0===t.name||null===t.name?o.getUniqueId():t.name,this.source=t.source,this.displayFn=function(t){return t=t||"value",o.isFunction(t)?t:e;function e(e){return e[t]}}(t.display||t.displayKey),this.debounce=t.debounce,this.cache=!1!==t.cache,this.templates=function(t,e){return{empty:t.empty&&o.templatify(t.empty),header:t.header&&o.templatify(t.header),footer:t.footer&&o.templatify(t.footer),suggestion:t.suggestion||n};function n(t){return""+e(t)+"
"}}(t.templates,this.displayFn),this.css=o.mixin({},c,t.appendTo?c.appendTo:{}),this.cssClasses=t.cssClasses=o.mixin({},c.defaultClasses,t.cssClasses||{}),this.cssClasses.prefix=t.cssClasses.formattedPrefix||o.formatPrefix(this.cssClasses.prefix,this.cssClasses.noPrefix);var n=o.className(this.cssClasses.prefix,this.cssClasses.dataset);this.$el=t.$menu&&t.$menu.find(n+"-"+this.name).length>0?a.element(t.$menu.find(n+"-"+this.name)[0]):a.element(u.dataset.replace("%CLASS%",this.name).replace("%PREFIX%",this.cssClasses.prefix).replace("%DATASET%",this.cssClasses.dataset)),this.$menu=t.$menu,this.clearCachedSuggestions()}h.extractDatasetName=function(t){return a.element(t).data(i)},h.extractValue=function(t){return a.element(t).data(s)},h.extractDatum=function(t){var e=a.element(t).data(r);return"string"==typeof e&&(e=JSON.parse(e)),e},o.mixin(h.prototype,l,{_render:function(t,e){if(this.$el){var n,c=this,l=[].slice.call(arguments,2);if(this.$el.empty(),n=e&&e.length,this._isEmpty=!n,!n&&this.templates.empty)this.$el.html(function(){var e=[].slice.call(arguments,0);return e=[{query:t,isEmpty:!0}].concat(e),c.templates.empty.apply(this,e)}.apply(this,l)).prepend(c.templates.header?h.apply(this,l):null).append(c.templates.footer?p.apply(this,l):null);else if(n)this.$el.html(function(){var t,n,l=[].slice.call(arguments,0),h=this,p=u.suggestions.replace("%PREFIX%",this.cssClasses.prefix).replace("%SUGGESTIONS%",this.cssClasses.suggestions);return t=a.element(p).css(this.css.suggestions),n=o.map(e,f),t.append.apply(t,n),t;function f(t){var e,n=u.suggestion.replace("%PREFIX%",h.cssClasses.prefix).replace("%SUGGESTION%",h.cssClasses.suggestion);return(e=a.element(n).attr({role:"option",id:["option",Math.floor(1e8*Math.random())].join("-")}).append(c.templates.suggestion.apply(this,[t].concat(l)))).data(i,c.name),e.data(s,c.displayFn(t)||void 0),e.data(r,JSON.stringify(t)),e.children().each((function(){a.element(this).css(h.css.suggestionChild)})),e}}.apply(this,l)).prepend(c.templates.header?h.apply(this,l):null).append(c.templates.footer?p.apply(this,l):null);else if(e&&!Array.isArray(e))throw new TypeError("suggestions must be an array");this.$menu&&this.$menu.addClass(this.cssClasses.prefix+(n?"with":"without")+"-"+this.name).removeClass(this.cssClasses.prefix+(n?"without":"with")+"-"+this.name),this.trigger("rendered",t)}function h(){var e=[].slice.call(arguments,0);return e=[{query:t,isEmpty:!n}].concat(e),c.templates.header.apply(this,e)}function p(){var e=[].slice.call(arguments,0);return e=[{query:t,isEmpty:!n}].concat(e),c.templates.footer.apply(this,e)}},getRoot:function(){return this.$el},update:function(t){function e(e){if(!this.canceled&&t===this.query){var n=[].slice.call(arguments,1);this.cacheSuggestions(t,e,n),this._render.apply(this,[t,e].concat(n))}}if(this.query=t,this.canceled=!1,this.shouldFetchFromCache(t))e.apply(this,[this.cachedSuggestions].concat(this.cachedRenderExtraArgs));else{var n=this,i=function(){n.canceled||n.source(t,e.bind(n))};if(this.debounce){clearTimeout(this.debounceTimeout),this.debounceTimeout=setTimeout((function(){n.debounceTimeout=null,i()}),this.debounce)}else i()}},cacheSuggestions:function(t,e,n){this.cachedQuery=t,this.cachedSuggestions=e,this.cachedRenderExtraArgs=n},shouldFetchFromCache:function(t){return this.cache&&this.cachedQuery===t&&this.cachedSuggestions&&this.cachedSuggestions.length},clearCachedSuggestions:function(){delete this.cachedQuery,delete this.cachedSuggestions,delete this.cachedRenderExtraArgs},cancel:function(){this.canceled=!0},clear:function(){this.$el&&(this.cancel(),this.$el.empty(),this.trigger("rendered",""))},isEmpty:function(){return this._isEmpty},destroy:function(){this.clearCachedSuggestions(),this.$el=null}}),t.exports=h},1540:(t,e,n)=>{"use strict";var i=n(6573),s=n(1348),r=n(4436),o=n(897),a=n(2542);function u(t){var e,n,r,o=this;(t=t||{}).menu||i.error("menu is required"),i.isArray(t.datasets)||i.isObject(t.datasets)||i.error("1 or more datasets required"),t.datasets||i.error("datasets is required"),this.isOpen=!1,this.isEmpty=!0,this.minLength=t.minLength||0,this.templates={},this.appendTo=t.appendTo||!1,this.css=i.mixin({},a,t.appendTo?a.appendTo:{}),this.cssClasses=t.cssClasses=i.mixin({},a.defaultClasses,t.cssClasses||{}),this.cssClasses.prefix=t.cssClasses.formattedPrefix||i.formatPrefix(this.cssClasses.prefix,this.cssClasses.noPrefix),e=i.bind(this._onSuggestionClick,this),n=i.bind(this._onSuggestionMouseEnter,this),r=i.bind(this._onSuggestionMouseLeave,this);var c=i.className(this.cssClasses.prefix,this.cssClasses.suggestion);this.$menu=s.element(t.menu).on("mouseenter.aa",c,n).on("mouseleave.aa",c,r).on("click.aa",c,e),this.$container=t.appendTo?t.wrapper:this.$menu,t.templates&&t.templates.header&&(this.templates.header=i.templatify(t.templates.header),this.$menu.prepend(this.templates.header())),t.templates&&t.templates.empty&&(this.templates.empty=i.templatify(t.templates.empty),this.$empty=s.element(''),this.$menu.append(this.$empty),this.$empty.hide()),this.datasets=i.map(t.datasets,(function(e){return function(t,e,n){return new u.Dataset(i.mixin({$menu:t,cssClasses:n},e))}(o.$menu,e,t.cssClasses)})),i.each(this.datasets,(function(t){var e=t.getRoot();e&&0===e.parent().length&&o.$menu.append(e),t.onSync("rendered",o._onRendered,o)})),t.templates&&t.templates.footer&&(this.templates.footer=i.templatify(t.templates.footer),this.$menu.append(this.templates.footer()));var l=this;s.element(window).resize((function(){l._redraw()}))}i.mixin(u.prototype,r,{_onSuggestionClick:function(t){this.trigger("suggestionClicked",s.element(t.currentTarget))},_onSuggestionMouseEnter:function(t){var e=s.element(t.currentTarget);if(!e.hasClass(i.className(this.cssClasses.prefix,this.cssClasses.cursor,!0))){this._removeCursor();var n=this;setTimeout((function(){n._setCursor(e,!1)}),0)}},_onSuggestionMouseLeave:function(t){if(t.relatedTarget&&s.element(t.relatedTarget).closest("."+i.className(this.cssClasses.prefix,this.cssClasses.cursor,!0)).length>0)return;this._removeCursor(),this.trigger("cursorRemoved")},_onRendered:function(t,e){if(this.isEmpty=i.every(this.datasets,(function(t){return t.isEmpty()})),this.isEmpty)if(e.length>=this.minLength&&this.trigger("empty"),this.$empty)if(e.length=this.minLength?this._show():this._hide());this.trigger("datasetRendered")},_hide:function(){this.$container.hide()},_show:function(){this.$container.css("display","block"),this._redraw(),this.trigger("shown")},_redraw:function(){this.isOpen&&this.appendTo&&this.trigger("redrawn")},_getSuggestions:function(){return this.$menu.find(i.className(this.cssClasses.prefix,this.cssClasses.suggestion))},_getCursor:function(){return this.$menu.find(i.className(this.cssClasses.prefix,this.cssClasses.cursor)).first()},_setCursor:function(t,e){t.first().addClass(i.className(this.cssClasses.prefix,this.cssClasses.cursor,!0)).attr("aria-selected","true"),this.trigger("cursorMoved",e)},_removeCursor:function(){this._getCursor().removeClass(i.className(this.cssClasses.prefix,this.cssClasses.cursor,!0)).removeAttr("aria-selected")},_moveCursor:function(t){var e,n,i,s;this.isOpen&&(n=this._getCursor(),e=this._getSuggestions(),this._removeCursor(),-1!==(i=((i=e.index(n)+t)+1)%(e.length+1)-1)?(i<-1&&(i=e.length-1),this._setCursor(s=e.eq(i),!0),this._ensureVisible(s)):this.trigger("cursorRemoved"))},_ensureVisible:function(t){var e,n,i,s;n=(e=t.position().top)+t.height()+parseInt(t.css("margin-top"),10)+parseInt(t.css("margin-bottom"),10),i=this.$menu.scrollTop(),s=this.$menu.height()+parseInt(this.$menu.css("padding-top"),10)+parseInt(this.$menu.css("padding-bottom"),10),e<0?this.$menu.scrollTop(i+e):s{"use strict";var i=n(6573),s=n(1348);function r(t){t&&t.el||i.error("EventBus initialized without el"),this.$el=s.element(t.el)}i.mixin(r.prototype,{trigger:function(t,e,n,s){var r=i.Event("autocomplete:"+t);return this.$el.trigger(r,[e,n,s]),r}}),t.exports=r},4436:(t,e,n)=>{"use strict";var i=n(874),s=/\s+/;function r(t,e,n,i){var r;if(!n)return this;for(e=e.split(s),n=i?function(t,e){return t.bind?t.bind(e):function(){t.apply(e,[].slice.call(arguments,0))}}(n,i):n,this._callbacks=this._callbacks||{};r=e.shift();)this._callbacks[r]=this._callbacks[r]||{sync:[],async:[]},this._callbacks[r][t].push(n);return this}function o(t,e,n){return function(){for(var i,s=0,r=t.length;!i&&s{"use strict";t.exports={wrapper:'',dropdown:'',dataset:'',suggestions:'',suggestion:''}},9629:(t,e,n)=>{"use strict";var i;i={9:"tab",27:"esc",37:"left",39:"right",13:"enter",38:"up",40:"down"};var s=n(6573),r=n(1348),o=n(4436);function a(t){var e,n,o,a,u,c=this;(t=t||{}).input||s.error("input is missing"),e=s.bind(this._onBlur,this),n=s.bind(this._onFocus,this),o=s.bind(this._onKeydown,this),a=s.bind(this._onInput,this),this.$hint=r.element(t.hint),this.$input=r.element(t.input).on("blur.aa",e).on("focus.aa",n).on("keydown.aa",o),0===this.$hint.length&&(this.setHint=this.getHint=this.clearHint=this.clearHintIfInvalid=s.noop),s.isMsie()?this.$input.on("keydown.aa keypress.aa cut.aa paste.aa",(function(t){i[t.which||t.keyCode]||s.defer(s.bind(c._onInput,c,t))})):this.$input.on("input.aa",a),this.query=this.$input.val(),this.$overflowHelper=(u=this.$input,r.element('').css({position:"absolute",visibility:"hidden",whiteSpace:"pre",fontFamily:u.css("font-family"),fontSize:u.css("font-size"),fontStyle:u.css("font-style"),fontVariant:u.css("font-variant"),fontWeight:u.css("font-weight"),wordSpacing:u.css("word-spacing"),letterSpacing:u.css("letter-spacing"),textIndent:u.css("text-indent"),textRendering:u.css("text-rendering"),textTransform:u.css("text-transform")}).insertAfter(u))}function u(t){return t.altKey||t.ctrlKey||t.metaKey||t.shiftKey}a.normalizeQuery=function(t){return(t||"").replace(/^\s*/g,"").replace(/\s{2,}/g," ")},s.mixin(a.prototype,o,{_onBlur:function(){this.resetInputValue(),this.$input.removeAttr("aria-activedescendant"),this.trigger("blurred")},_onFocus:function(){this.trigger("focused")},_onKeydown:function(t){var e=i[t.which||t.keyCode];this._managePreventDefault(e,t),e&&this._shouldTrigger(e,t)&&this.trigger(e+"Keyed",t)},_onInput:function(){this._checkInputValue()},_managePreventDefault:function(t,e){var n,i,s;switch(t){case"tab":i=this.getHint(),s=this.getInputValue(),n=i&&i!==s&&!u(e);break;case"up":case"down":n=!u(e);break;default:n=!1}n&&e.preventDefault()},_shouldTrigger:function(t,e){var n;if("tab"===t)n=!u(e);else n=!0;return n},_checkInputValue:function(){var t,e,n,i,s;t=this.getInputValue(),i=t,s=this.query,n=!(!(e=a.normalizeQuery(i)===a.normalizeQuery(s))||!this.query)&&this.query.length!==t.length,this.query=t,e?n&&this.trigger("whitespaceChanged",this.query):this.trigger("queryChanged",this.query)},focus:function(){this.$input.focus()},blur:function(){this.$input.blur()},getQuery:function(){return this.query},setQuery:function(t){this.query=t},getInputValue:function(){return this.$input.val()},setInputValue:function(t,e){void 0===t&&(t=this.query),this.$input.val(t),e?this.clearHint():this._checkInputValue()},expand:function(){this.$input.attr("aria-expanded","true")},collapse:function(){this.$input.attr("aria-expanded","false")},setActiveDescendant:function(t){this.$input.attr("aria-activedescendant",t)},removeActiveDescendant:function(){this.$input.removeAttr("aria-activedescendant")},resetInputValue:function(){this.setInputValue(this.query,!0)},getHint:function(){return this.$hint.val()},setHint:function(t){this.$hint.val(t)},clearHint:function(){this.setHint("")},clearHintIfInvalid:function(){var t,e,n;n=(t=this.getInputValue())!==(e=this.getHint())&&0===e.indexOf(t),""!==t&&n&&!this.hasOverflow()||this.clearHint()},getLanguageDirection:function(){return(this.$input.css("direction")||"ltr").toLowerCase()},hasOverflow:function(){var t=this.$input.width()-2;return this.$overflowHelper.text(this.getInputValue()),this.$overflowHelper.width()>=t},isCursorAtEnd:function(){var t,e,n;return t=this.$input.val().length,e=this.$input[0].selectionStart,s.isNumber(e)?e===t:!document.selection||((n=document.selection.createRange()).moveStart("character",-t),t===n.text.length)},destroy:function(){this.$hint.off(".aa"),this.$input.off(".aa"),this.$hint=this.$input=this.$overflowHelper=null}}),t.exports=a},7360:(t,e,n)=>{"use strict";var i="aaAttrs",s=n(6573),r=n(1348),o=n(2324),a=n(9629),u=n(1540),c=n(9272),l=n(2542);function h(t){var e,n;if((t=t||{}).input||s.error("missing input"),this.isActivated=!1,this.debug=!!t.debug,this.autoselect=!!t.autoselect,this.autoselectOnBlur=!!t.autoselectOnBlur,this.openOnFocus=!!t.openOnFocus,this.minLength=s.isNumber(t.minLength)?t.minLength:1,this.autoWidth=void 0===t.autoWidth||!!t.autoWidth,this.clearOnSelected=!!t.clearOnSelected,this.tabAutocomplete=void 0===t.tabAutocomplete||!!t.tabAutocomplete,t.hint=!!t.hint,t.hint&&t.appendTo)throw new Error("[autocomplete.js] hint and appendTo options can't be used at the same time");this.css=t.css=s.mixin({},l,t.appendTo?l.appendTo:{}),this.cssClasses=t.cssClasses=s.mixin({},l.defaultClasses,t.cssClasses||{}),this.cssClasses.prefix=t.cssClasses.formattedPrefix=s.formatPrefix(this.cssClasses.prefix,this.cssClasses.noPrefix),this.listboxId=t.listboxId=[this.cssClasses.root,"listbox",s.getUniqueId()].join("-");var a=function(t){var e,n,o,a;e=r.element(t.input),n=r.element(c.wrapper.replace("%ROOT%",t.cssClasses.root)).css(t.css.wrapper),t.appendTo||"block"!==e.css("display")||"table"!==e.parent().css("display")||n.css("display","table-cell");var u=c.dropdown.replace("%PREFIX%",t.cssClasses.prefix).replace("%DROPDOWN_MENU%",t.cssClasses.dropdownMenu);o=r.element(u).css(t.css.dropdown).attr({role:"listbox",id:t.listboxId}),t.templates&&t.templates.dropdownMenu&&o.html(s.templatify(t.templates.dropdownMenu)());a=e.clone().css(t.css.hint).css(function(t){return{backgroundAttachment:t.css("background-attachment"),backgroundClip:t.css("background-clip"),backgroundColor:t.css("background-color"),backgroundImage:t.css("background-image"),backgroundOrigin:t.css("background-origin"),backgroundPosition:t.css("background-position"),backgroundRepeat:t.css("background-repeat"),backgroundSize:t.css("background-size")}}(e)),a.val("").addClass(s.className(t.cssClasses.prefix,t.cssClasses.hint,!0)).removeAttr("id name placeholder required").prop("readonly",!0).attr({"aria-hidden":"true",autocomplete:"off",spellcheck:"false",tabindex:-1}),a.removeData&&a.removeData();e.data(i,{"aria-autocomplete":e.attr("aria-autocomplete"),"aria-expanded":e.attr("aria-expanded"),"aria-owns":e.attr("aria-owns"),autocomplete:e.attr("autocomplete"),dir:e.attr("dir"),role:e.attr("role"),spellcheck:e.attr("spellcheck"),style:e.attr("style"),type:e.attr("type")}),e.addClass(s.className(t.cssClasses.prefix,t.cssClasses.input,!0)).attr({autocomplete:"off",spellcheck:!1,role:"combobox","aria-autocomplete":t.datasets&&t.datasets[0]&&t.datasets[0].displayKey?"both":"list","aria-expanded":"false","aria-label":t.ariaLabel,"aria-owns":t.listboxId}).css(t.hint?t.css.input:t.css.inputWithNoHint);try{e.attr("dir")||e.attr("dir","auto")}catch(l){}return n=t.appendTo?n.appendTo(r.element(t.appendTo).eq(0)).eq(0):e.wrap(n).parent(),n.prepend(t.hint?a:null).append(o),{wrapper:n,input:e,hint:a,menu:o}}(t);this.$node=a.wrapper;var u=this.$input=a.input;e=a.menu,n=a.hint,t.dropdownMenuContainer&&r.element(t.dropdownMenuContainer).css("position","relative").append(e.css("top","0")),u.on("blur.aa",(function(t){var n=document.activeElement;s.isMsie()&&(e[0]===n||e[0].contains(n))&&(t.preventDefault(),t.stopImmediatePropagation(),s.defer((function(){u.focus()})))})),e.on("mousedown.aa",(function(t){t.preventDefault()})),this.eventBus=t.eventBus||new o({el:u}),this.dropdown=new h.Dropdown({appendTo:t.appendTo,wrapper:this.$node,menu:e,datasets:t.datasets,templates:t.templates,cssClasses:t.cssClasses,minLength:this.minLength}).onSync("suggestionClicked",this._onSuggestionClicked,this).onSync("cursorMoved",this._onCursorMoved,this).onSync("cursorRemoved",this._onCursorRemoved,this).onSync("opened",this._onOpened,this).onSync("closed",this._onClosed,this).onSync("shown",this._onShown,this).onSync("empty",this._onEmpty,this).onSync("redrawn",this._onRedrawn,this).onAsync("datasetRendered",this._onDatasetRendered,this),this.input=new h.Input({input:u,hint:n}).onSync("focused",this._onFocused,this).onSync("blurred",this._onBlurred,this).onSync("enterKeyed",this._onEnterKeyed,this).onSync("tabKeyed",this._onTabKeyed,this).onSync("escKeyed",this._onEscKeyed,this).onSync("upKeyed",this._onUpKeyed,this).onSync("downKeyed",this._onDownKeyed,this).onSync("leftKeyed",this._onLeftKeyed,this).onSync("rightKeyed",this._onRightKeyed,this).onSync("queryChanged",this._onQueryChanged,this).onSync("whitespaceChanged",this._onWhitespaceChanged,this),this._bindKeyboardShortcuts(t),this._setLanguageDirection()}s.mixin(h.prototype,{_bindKeyboardShortcuts:function(t){if(t.keyboardShortcuts){var e=this.$input,n=[];s.each(t.keyboardShortcuts,(function(t){"string"==typeof t&&(t=t.toUpperCase().charCodeAt(0)),n.push(t)})),r.element(document).keydown((function(t){var i=t.target||t.srcElement,s=i.tagName;if(!i.isContentEditable&&"INPUT"!==s&&"SELECT"!==s&&"TEXTAREA"!==s){var r=t.which||t.keyCode;-1!==n.indexOf(r)&&(e.focus(),t.stopPropagation(),t.preventDefault())}}))}},_onSuggestionClicked:function(t,e){var n;(n=this.dropdown.getDatumForSuggestion(e))&&this._select(n,{selectionMethod:"click"})},_onCursorMoved:function(t,e){var n=this.dropdown.getDatumForCursor(),i=this.dropdown.getCurrentCursor().attr("id");this.input.setActiveDescendant(i),n&&(e&&this.input.setInputValue(n.value,!0),this.eventBus.trigger("cursorchanged",n.raw,n.datasetName))},_onCursorRemoved:function(){this.input.resetInputValue(),this._updateHint(),this.eventBus.trigger("cursorremoved")},_onDatasetRendered:function(){this._updateHint(),this.eventBus.trigger("updated")},_onOpened:function(){this._updateHint(),this.input.expand(),this.eventBus.trigger("opened")},_onEmpty:function(){this.eventBus.trigger("empty")},_onRedrawn:function(){this.$node.css("top","0px"),this.$node.css("left","0px");var t=this.$input[0].getBoundingClientRect();this.autoWidth&&this.$node.css("width",t.width+"px");var e=this.$node[0].getBoundingClientRect(),n=t.bottom-e.top;this.$node.css("top",n+"px");var i=t.left-e.left;this.$node.css("left",i+"px"),this.eventBus.trigger("redrawn")},_onShown:function(){this.eventBus.trigger("shown"),this.autoselect&&this.dropdown.cursorTopSuggestion()},_onClosed:function(){this.input.clearHint(),this.input.removeActiveDescendant(),this.input.collapse(),this.eventBus.trigger("closed")},_onFocused:function(){if(this.isActivated=!0,this.openOnFocus){var t=this.input.getQuery();t.length>=this.minLength?this.dropdown.update(t):this.dropdown.empty(),this.dropdown.open()}},_onBlurred:function(){var t,e;t=this.dropdown.getDatumForCursor(),e=this.dropdown.getDatumForTopSuggestion();var n={selectionMethod:"blur"};this.debug||(this.autoselectOnBlur&&t?this._select(t,n):this.autoselectOnBlur&&e?this._select(e,n):(this.isActivated=!1,this.dropdown.empty(),this.dropdown.close()))},_onEnterKeyed:function(t,e){var n,i;n=this.dropdown.getDatumForCursor(),i=this.dropdown.getDatumForTopSuggestion();var s={selectionMethod:"enterKey"};n?(this._select(n,s),e.preventDefault()):this.autoselect&&i&&(this._select(i,s),e.preventDefault())},_onTabKeyed:function(t,e){if(this.tabAutocomplete){var n;(n=this.dropdown.getDatumForCursor())?(this._select(n,{selectionMethod:"tabKey"}),e.preventDefault()):this._autocomplete(!0)}else this.dropdown.close()},_onEscKeyed:function(){this.dropdown.close(),this.input.resetInputValue()},_onUpKeyed:function(){var t=this.input.getQuery();this.dropdown.isEmpty&&t.length>=this.minLength?this.dropdown.update(t):this.dropdown.moveCursorUp(),this.dropdown.open()},_onDownKeyed:function(){var t=this.input.getQuery();this.dropdown.isEmpty&&t.length>=this.minLength?this.dropdown.update(t):this.dropdown.moveCursorDown(),this.dropdown.open()},_onLeftKeyed:function(){"rtl"===this.dir&&this._autocomplete()},_onRightKeyed:function(){"ltr"===this.dir&&this._autocomplete()},_onQueryChanged:function(t,e){this.input.clearHintIfInvalid(),e.length>=this.minLength?this.dropdown.update(e):this.dropdown.empty(),this.dropdown.open(),this._setLanguageDirection()},_onWhitespaceChanged:function(){this._updateHint(),this.dropdown.open()},_setLanguageDirection:function(){var t=this.input.getLanguageDirection();this.dir!==t&&(this.dir=t,this.$node.css("direction",t),this.dropdown.setLanguageDirection(t))},_updateHint:function(){var t,e,n,i,r;(t=this.dropdown.getDatumForTopSuggestion())&&this.dropdown.isVisible()&&!this.input.hasOverflow()?(e=this.input.getInputValue(),n=a.normalizeQuery(e),i=s.escapeRegExChars(n),(r=new RegExp("^(?:"+i+")(.+$)","i").exec(t.value))?this.input.setHint(e+r[1]):this.input.clearHint()):this.input.clearHint()},_autocomplete:function(t){var e,n,i,s;e=this.input.getHint(),n=this.input.getQuery(),i=t||this.input.isCursorAtEnd(),e&&n!==e&&i&&((s=this.dropdown.getDatumForTopSuggestion())&&this.input.setInputValue(s.value),this.eventBus.trigger("autocompleted",s.raw,s.datasetName))},_select:function(t,e){void 0!==t.value&&this.input.setQuery(t.value),this.clearOnSelected?this.setVal(""):this.input.setInputValue(t.value,!0),this._setLanguageDirection(),!1===this.eventBus.trigger("selected",t.raw,t.datasetName,e).isDefaultPrevented()&&(this.dropdown.close(),s.defer(s.bind(this.dropdown.empty,this.dropdown)))},open:function(){if(!this.isActivated){var t=this.input.getInputValue();t.length>=this.minLength?this.dropdown.update(t):this.dropdown.empty()}this.dropdown.open()},close:function(){this.dropdown.close()},setVal:function(t){t=s.toStr(t),this.isActivated?this.input.setInputValue(t):(this.input.setQuery(t),this.input.setInputValue(t,!0)),this._setLanguageDirection()},getVal:function(){return this.input.getQuery()},destroy:function(){this.input.destroy(),this.dropdown.destroy(),function(t,e){var n=t.find(s.className(e.prefix,e.input));s.each(n.data(i),(function(t,e){void 0===t?n.removeAttr(e):n.attr(e,t)})),n.detach().removeClass(s.className(e.prefix,e.input,!0)).insertAfter(t),n.removeData&&n.removeData(i);t.remove()}(this.$node,this.cssClasses),this.$node=null},getWrapper:function(){return this.dropdown.$container[0]}}),h.Dropdown=u,h.Input=a,h.sources=n(6353),t.exports=h},1348:t=>{"use strict";t.exports={element:null}},9715:t=>{"use strict";t.exports=function(t){var e=t.match(/Algolia for JavaScript \((\d+\.)(\d+\.)(\d+)\)/)||t.match(/Algolia for vanilla JavaScript (\d+\.)(\d+\.)(\d+)/);if(e)return[e[1],e[2],e[3]]}},6573:(t,e,n)=>{"use strict";var i,s=n(8937),r=n(1348);function o(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}t.exports={isArray:null,isFunction:null,isObject:null,bind:null,each:null,map:null,mixin:null,isMsie:function(t){if(void 0===t&&(t=navigator.userAgent),/(msie|trident)/i.test(t)){var e=t.match(/(msie |rv:)(\d+(.\d+)?)/i);if(e)return e[2]}return!1},escapeRegExChars:function(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isNumber:function(t){return"number"==typeof t},toStr:function(t){return null==t?"":t+""},cloneDeep:function(t){var e=this.mixin({},t),n=this;return this.each(e,(function(t,i){t&&(n.isArray(t)?e[i]=[].concat(t):n.isObject(t)&&(e[i]=n.cloneDeep(t)))})),e},error:function(t){throw new Error(t)},every:function(t,e){var n=!0;return t?(this.each(t,(function(i,s){n&&(n=e.call(null,i,s,t)&&n)})),!!n):n},any:function(t,e){var n=!1;return t?(this.each(t,(function(i,s){if(e.call(null,i,s,t))return n=!0,!1})),n):n},getUniqueId:(i=0,function(){return i++}),templatify:function(t){if(this.isFunction(t))return t;var e=r.element(t);return"SCRIPT"===e.prop("tagName")?function(){return e.text()}:function(){return String(t)}},defer:function(t){setTimeout(t,0)},noop:function(){},formatPrefix:function(t,e){return e?"":t+"-"},className:function(t,e,n){return n?t+e:"."+s(t+e,{isIdentifier:!0})},escapeHighlightedString:function(t,e,n){e=e||"";var i=document.createElement("div");i.appendChild(document.createTextNode(e)),n=n||"";var s=document.createElement("div");s.appendChild(document.createTextNode(n));var r=document.createElement("div");return r.appendChild(document.createTextNode(t)),r.innerHTML.replace(RegExp(o(i.innerHTML),"g"),e).replace(RegExp(o(s.innerHTML),"g"),n)}}},6903:(t,e,n)=>{"use strict";var i=n(6573),s=n(2281),r=n(9715);var o,a,u=(o=[],a=window.Promise.resolve(),function(t,e){return function(n,s){(function(t,e){return window.Promise.resolve().then((function(){return o.length&&(a=t.search(o),o=[]),a})).then((function(t){if(t)return t.results[e]}))})(t.as,o.push({indexName:t.indexName,query:n,params:e})-1).then((function(t){t&&s(t.hits,t)})).catch((function(t){i.error(t.message)}))}});t.exports=function(t,e){var n=r(t.as._ua);if(n&&n[0]>=3&&n[1]>20){var i="autocomplete.js "+s;-1===t.as._ua.indexOf(i)&&(t.as._ua+="; "+i)}return u(t,e)}},6353:(t,e,n)=>{"use strict";t.exports={hits:n(6903),popularIn:n(6839)}},6839:(t,e,n)=>{"use strict";var i=n(6573),s=n(2281),r=n(9715);t.exports=function(t,e,n,o){var a=r(t.as._ua);if(a&&a[0]>=3&&a[1]>20&&((e=e||{}).additionalUA="autocomplete.js "+s),!n.source)return i.error("Missing 'source' key");var u=i.isFunction(n.source)?n.source:function(t){return t[n.source]};if(!n.index)return i.error("Missing 'index' key");var c=n.index;return o=o||{},function(a,l){t.search(a,e,(function(t,a){if(t)i.error(t.message);else{if(a.hits.length>0){var h=a.hits[0],p=i.mixin({hitsPerPage:0},n);delete p.source,delete p.index;var f=r(c.as._ua);return f&&f[0]>=3&&f[1]>20&&(e.additionalUA="autocomplete.js "+s),void c.search(u(h),p,(function(t,e){if(t)i.error(t.message);else{var n=[];if(o.includeAll){var s=o.allTitle||"All departments";n.push(i.mixin({facet:{value:s,count:e.nbHits}},i.cloneDeep(h)))}i.each(e.facets,(function(t,e){i.each(t,(function(t,s){n.push(i.mixin({facet:{facet:e,value:s,count:t}},i.cloneDeep(h)))}))}));for(var r=1;r{"use strict";var i=n(9539);n(1348).element=i;var s=n(6573);s.isArray=i.isArray,s.isFunction=i.isFunction,s.isObject=i.isPlainObject,s.bind=i.proxy,s.each=function(t,e){i.each(t,(function(t,n){return e(n,t)}))},s.map=i.map,s.mixin=i.extend,s.Event=i.Event;var r="aaAutocomplete",o=n(7360),a=n(2324);function u(t,e,n,u){n=s.isArray(n)?n:[].slice.call(arguments,2);var c=i(t).each((function(t,s){var c=i(s),l=new a({el:c}),h=u||new o({input:c,eventBus:l,dropdownMenuContainer:e.dropdownMenuContainer,hint:void 0===e.hint||!!e.hint,minLength:e.minLength,autoselect:e.autoselect,autoselectOnBlur:e.autoselectOnBlur,tabAutocomplete:e.tabAutocomplete,openOnFocus:e.openOnFocus,templates:e.templates,debug:e.debug,clearOnSelected:e.clearOnSelected,cssClasses:e.cssClasses,datasets:n,keyboardShortcuts:e.keyboardShortcuts,appendTo:e.appendTo,autoWidth:e.autoWidth,ariaLabel:e.ariaLabel||s.getAttribute("aria-label")});c.data(r,h)}));return c.autocomplete={},s.each(["open","close","getVal","setVal","destroy","getWrapper"],(function(t){c.autocomplete[t]=function(){var e,n=arguments;return c.each((function(s,o){var a=i(o).data(r);e=a[t].apply(a,n)})),e}})),c}u.sources=o.sources,u.escapeHighlightedString=s.escapeHighlightedString;var c="autocomplete"in window,l=window.autocomplete;u.noConflict=function(){return c?window.autocomplete=l:delete window.autocomplete,u},t.exports=u},2281:t=>{t.exports="0.38.1"},9539:t=>{var e;e=window,t.exports=function(t){var e,n,i=function(){var e,n,i,s,r,o,a=[],u=a.concat,c=a.filter,l=a.slice,h=t.document,p={},f={},d={"column-count":1,columns:1,"font-weight":1,"line-height":1,opacity:1,"z-index":1,zoom:1},g=/^\s*<(\w+|!)[^>]*>/,m=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,v=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,y=/^(?:body|html)$/i,w=/([A-Z])/g,b=["val","css","html","text","data","width","height","offset"],C=["after","prepend","before","append"],x=h.createElement("table"),_=h.createElement("tr"),S={tr:h.createElement("tbody"),tbody:x,thead:x,tfoot:x,td:_,th:_,"*":h.createElement("div")},E=/complete|loaded|interactive/,A=/^[\w-]*$/,$={},T=$.toString,O={},D=h.createElement("div"),N={tabindex:"tabIndex",readonly:"readOnly",for:"htmlFor",class:"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},k=Array.isArray||function(t){return t instanceof Array};function I(t){return null==t?String(t):$[T.call(t)]||"object"}function P(t){return"function"==I(t)}function L(t){return null!=t&&t==t.window}function M(t){return null!=t&&t.nodeType==t.DOCUMENT_NODE}function F(t){return"object"==I(t)}function R(t){return F(t)&&!L(t)&&Object.getPrototypeOf(t)==Object.prototype}function q(t){var e=!!t&&"length"in t&&t.length,n=i.type(t);return"function"!=n&&!L(t)&&("array"==n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function V(t){return c.call(t,(function(t){return null!=t}))}function H(t){return t.length>0?i.fn.concat.apply([],t):t}function B(t){return t.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()}function K(t){return t in f?f[t]:f[t]=new RegExp("(^|\\s)"+t+"(\\s|$)")}function j(t,e){return"number"!=typeof e||d[B(t)]?e:e+"px"}function z(t){var e,n;return p[t]||(e=h.createElement(t),h.body.appendChild(e),n=getComputedStyle(e,"").getPropertyValue("display"),e.parentNode.removeChild(e),"none"==n&&(n="block"),p[t]=n),p[t]}function U(t){return"children"in t?l.call(t.children):i.map(t.childNodes,(function(t){if(1==t.nodeType)return t}))}function Q(t,e){var n,i=t?t.length:0;for(n=0;n$2>")),n===e&&(n=g.test(t)&&RegExp.$1),n in S||(n="*"),(a=S[n]).innerHTML=""+t,r=i.each(l.call(a.childNodes),(function(){a.removeChild(this)}))),R(s)&&(o=i(r),i.each(s,(function(t,e){b.indexOf(t)>-1?o[t](e):o.attr(t,e)}))),r},O.Z=function(t,e){return new Q(t,e)},O.isZ=function(t){return t instanceof O.Z},O.init=function(t,n){var s;if(!t)return O.Z();if("string"==typeof t)if("<"==(t=t.trim())[0]&&g.test(t))s=O.fragment(t,RegExp.$1,n),t=null;else{if(n!==e)return i(n).find(t);s=O.qsa(h,t)}else{if(P(t))return i(h).ready(t);if(O.isZ(t))return t;if(k(t))s=V(t);else if(F(t))s=[t],t=null;else if(g.test(t))s=O.fragment(t.trim(),RegExp.$1,n),t=null;else{if(n!==e)return i(n).find(t);s=O.qsa(h,t)}}return O.Z(s,t)},(i=function(t,e){return O.init(t,e)}).extend=function(t){var e,n=l.call(arguments,1);return"boolean"==typeof t&&(e=t,t=n.shift()),n.forEach((function(n){W(t,n,e)})),t},O.qsa=function(t,e){var n,i="#"==e[0],s=!i&&"."==e[0],r=i||s?e.slice(1):e,o=A.test(r);return t.getElementById&&o&&i?(n=t.getElementById(r))?[n]:[]:1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType?[]:l.call(o&&!i&&t.getElementsByClassName?s?t.getElementsByClassName(r):t.getElementsByTagName(e):t.querySelectorAll(e))},i.contains=h.documentElement.contains?function(t,e){return t!==e&&t.contains(e)}:function(t,e){for(;e&&(e=e.parentNode);)if(e===t)return!0;return!1},i.type=I,i.isFunction=P,i.isWindow=L,i.isArray=k,i.isPlainObject=R,i.isEmptyObject=function(t){var e;for(e in t)return!1;return!0},i.isNumeric=function(t){var e=Number(t),n=typeof t;return null!=t&&"boolean"!=n&&("string"!=n||t.length)&&!isNaN(e)&&isFinite(e)||!1},i.inArray=function(t,e,n){return a.indexOf.call(e,t,n)},i.camelCase=r,i.trim=function(t){return null==t?"":String.prototype.trim.call(t)},i.uuid=0,i.support={},i.expr={},i.noop=function(){},i.map=function(t,e){var n,i,s,r=[];if(q(t))for(i=0;i=0?t:t+this.length]},toArray:function(){return this.get()},size:function(){return this.length},remove:function(){return this.each((function(){null!=this.parentNode&&this.parentNode.removeChild(this)}))},each:function(t){return a.every.call(this,(function(e,n){return!1!==t.call(e,n,e)})),this},filter:function(t){return P(t)?this.not(this.not(t)):i(c.call(this,(function(e){return O.matches(e,t)})))},add:function(t,e){return i(o(this.concat(i(t,e))))},is:function(t){return this.length>0&&O.matches(this[0],t)},not:function(t){var n=[];if(P(t)&&t.call!==e)this.each((function(e){t.call(this,e)||n.push(this)}));else{var s="string"==typeof t?this.filter(t):q(t)&&P(t.item)?l.call(t):i(t);this.forEach((function(t){s.indexOf(t)<0&&n.push(t)}))}return i(n)},has:function(t){return this.filter((function(){return F(t)?i.contains(this,t):i(this).find(t).size()}))},eq:function(t){return-1===t?this.slice(t):this.slice(t,+t+1)},first:function(){var t=this[0];return t&&!F(t)?t:i(t)},last:function(){var t=this[this.length-1];return t&&!F(t)?t:i(t)},find:function(t){var e=this;return t?"object"==typeof t?i(t).filter((function(){var t=this;return a.some.call(e,(function(e){return i.contains(e,t)}))})):1==this.length?i(O.qsa(this[0],t)):this.map((function(){return O.qsa(this,t)})):i()},closest:function(t,e){var n=[],s="object"==typeof t&&i(t);return this.each((function(i,r){for(;r&&!(s?s.indexOf(r)>=0:O.matches(r,t));)r=r!==e&&!M(r)&&r.parentNode;r&&n.indexOf(r)<0&&n.push(r)})),i(n)},parents:function(t){for(var e=[],n=this;n.length>0;)n=i.map(n,(function(t){if((t=t.parentNode)&&!M(t)&&e.indexOf(t)<0)return e.push(t),t}));return Z(e,t)},parent:function(t){return Z(o(this.pluck("parentNode")),t)},children:function(t){return Z(this.map((function(){return U(this)})),t)},contents:function(){return this.map((function(){return this.contentDocument||l.call(this.childNodes)}))},siblings:function(t){return Z(this.map((function(t,e){return c.call(U(e.parentNode),(function(t){return t!==e}))})),t)},empty:function(){return this.each((function(){this.innerHTML=""}))},pluck:function(t){return i.map(this,(function(e){return e[t]}))},show:function(){return this.each((function(){"none"==this.style.display&&(this.style.display=""),"none"==getComputedStyle(this,"").getPropertyValue("display")&&(this.style.display=z(this.nodeName))}))},replaceWith:function(t){return this.before(t).remove()},wrap:function(t){var e=P(t);if(this[0]&&!e)var n=i(t).get(0),s=n.parentNode||this.length>1;return this.each((function(r){i(this).wrapAll(e?t.call(this,r):s?n.cloneNode(!0):n)}))},wrapAll:function(t){if(this[0]){var e;for(i(this[0]).before(t=i(t));(e=t.children()).length;)t=e.first();i(t).append(this)}return this},wrapInner:function(t){var e=P(t);return this.each((function(n){var s=i(this),r=s.contents(),o=e?t.call(this,n):t;r.length?r.wrapAll(o):s.append(o)}))},unwrap:function(){return this.parent().each((function(){i(this).replaceWith(i(this).children())})),this},clone:function(){return this.map((function(){return this.cloneNode(!0)}))},hide:function(){return this.css("display","none")},toggle:function(t){return this.each((function(){var n=i(this);(t===e?"none"==n.css("display"):t)?n.show():n.hide()}))},prev:function(t){return i(this.pluck("previousElementSibling")).filter(t||"*")},next:function(t){return i(this.pluck("nextElementSibling")).filter(t||"*")},html:function(t){return 0 in arguments?this.each((function(e){var n=this.innerHTML;i(this).empty().append(X(this,t,e,n))})):0 in this?this[0].innerHTML:null},text:function(t){return 0 in arguments?this.each((function(e){var n=X(this,t,e,this.textContent);this.textContent=null==n?"":""+n})):0 in this?this.pluck("textContent").join(""):null},attr:function(t,i){var s;return"string"!=typeof t||1 in arguments?this.each((function(e){if(1===this.nodeType)if(F(t))for(n in t)G(this,n,t[n]);else G(this,t,X(this,i,e,this.getAttribute(t)))})):0 in this&&1==this[0].nodeType&&null!=(s=this[0].getAttribute(t))?s:e},removeAttr:function(t){return this.each((function(){1===this.nodeType&&t.split(" ").forEach((function(t){G(this,t)}),this)}))},prop:function(t,e){return t=N[t]||t,1 in arguments?this.each((function(n){this[t]=X(this,e,n,this[t])})):this[0]&&this[0][t]},removeProp:function(t){return t=N[t]||t,this.each((function(){delete this[t]}))},data:function(t,n){var i="data-"+t.replace(w,"-$1").toLowerCase(),s=1 in arguments?this.attr(i,n):this.attr(i);return null!==s?Y(s):e},val:function(t){return 0 in arguments?(null==t&&(t=""),this.each((function(e){this.value=X(this,t,e,this.value)}))):this[0]&&(this[0].multiple?i(this[0]).find("option").filter((function(){return this.selected})).pluck("value"):this[0].value)},offset:function(e){if(e)return this.each((function(t){var n=i(this),s=X(this,e,t,n.offset()),r=n.offsetParent().offset(),o={top:s.top-r.top,left:s.left-r.left};"static"==n.css("position")&&(o.position="relative"),n.css(o)}));if(!this.length)return null;if(h.documentElement!==this[0]&&!i.contains(h.documentElement,this[0]))return{top:0,left:0};var n=this[0].getBoundingClientRect();return{left:n.left+t.pageXOffset,top:n.top+t.pageYOffset,width:Math.round(n.width),height:Math.round(n.height)}},css:function(t,e){if(arguments.length<2){var s=this[0];if("string"==typeof t){if(!s)return;return s.style[r(t)]||getComputedStyle(s,"").getPropertyValue(t)}if(k(t)){if(!s)return;var o={},a=getComputedStyle(s,"");return i.each(t,(function(t,e){o[e]=s.style[r(e)]||a.getPropertyValue(e)})),o}}var u="";if("string"==I(t))e||0===e?u=B(t)+":"+j(t,e):this.each((function(){this.style.removeProperty(B(t))}));else for(n in t)t[n]||0===t[n]?u+=B(n)+":"+j(n,t[n])+";":this.each((function(){this.style.removeProperty(B(n))}));return this.each((function(){this.style.cssText+=";"+u}))},index:function(t){return t?this.indexOf(i(t)[0]):this.parent().children().indexOf(this[0])},hasClass:function(t){return!!t&&a.some.call(this,(function(t){return this.test(J(t))}),K(t))},addClass:function(t){return t?this.each((function(e){if("className"in this){s=[];var n=J(this);X(this,t,e,n).split(/\s+/g).forEach((function(t){i(this).hasClass(t)||s.push(t)}),this),s.length&&J(this,n+(n?" ":"")+s.join(" "))}})):this},removeClass:function(t){return this.each((function(n){if("className"in this){if(t===e)return J(this,"");s=J(this),X(this,t,n,s).split(/\s+/g).forEach((function(t){s=s.replace(K(t)," ")})),J(this,s.trim())}}))},toggleClass:function(t,n){return t?this.each((function(s){var r=i(this);X(this,t,s,J(this)).split(/\s+/g).forEach((function(t){(n===e?!r.hasClass(t):n)?r.addClass(t):r.removeClass(t)}))})):this},scrollTop:function(t){if(this.length){var n="scrollTop"in this[0];return t===e?n?this[0].scrollTop:this[0].pageYOffset:this.each(n?function(){this.scrollTop=t}:function(){this.scrollTo(this.scrollX,t)})}},scrollLeft:function(t){if(this.length){var n="scrollLeft"in this[0];return t===e?n?this[0].scrollLeft:this[0].pageXOffset:this.each(n?function(){this.scrollLeft=t}:function(){this.scrollTo(t,this.scrollY)})}},position:function(){if(this.length){var t=this[0],e=this.offsetParent(),n=this.offset(),s=y.test(e[0].nodeName)?{top:0,left:0}:e.offset();return n.top-=parseFloat(i(t).css("margin-top"))||0,n.left-=parseFloat(i(t).css("margin-left"))||0,s.top+=parseFloat(i(e[0]).css("border-top-width"))||0,s.left+=parseFloat(i(e[0]).css("border-left-width"))||0,{top:n.top-s.top,left:n.left-s.left}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent||h.body;t&&!y.test(t.nodeName)&&"static"==i(t).css("position");)t=t.offsetParent;return t}))}},i.fn.detach=i.fn.remove,["width","height"].forEach((function(t){var n=t.replace(/./,(function(t){return t[0].toUpperCase()}));i.fn[t]=function(s){var r,o=this[0];return s===e?L(o)?o["inner"+n]:M(o)?o.documentElement["scroll"+n]:(r=this.offset())&&r[t]:this.each((function(e){(o=i(this)).css(t,X(this,s,e,o[t]()))}))}})),C.forEach((function(n,s){var r=s%2;i.fn[n]=function(){var n,o,a=i.map(arguments,(function(t){var s=[];return"array"==(n=I(t))?(t.forEach((function(t){return t.nodeType!==e?s.push(t):i.zepto.isZ(t)?s=s.concat(t.get()):void(s=s.concat(O.fragment(t)))})),s):"object"==n||null==t?t:O.fragment(t)})),u=this.length>1;return a.length<1?this:this.each((function(e,n){o=r?n:n.parentNode,n=0==s?n.nextSibling:1==s?n.firstChild:2==s?n:null;var c=i.contains(h.documentElement,o);a.forEach((function(e){if(u)e=e.cloneNode(!0);else if(!o)return i(e).remove();o.insertBefore(e,n),c&&tt(e,(function(e){if(!(null==e.nodeName||"SCRIPT"!==e.nodeName.toUpperCase()||e.type&&"text/javascript"!==e.type||e.src)){var n=e.ownerDocument?e.ownerDocument.defaultView:t;n.eval.call(n,e.innerHTML)}}))}))}))},i.fn[r?n+"To":"insert"+(s?"Before":"After")]=function(t){return i(t)[n](this),this}})),O.Z.prototype=Q.prototype=i.fn,O.uniq=o,O.deserializeValue=Y,i.zepto=O,i}();return function(e){var n,i=1,s=Array.prototype.slice,r=e.isFunction,o=function(t){return"string"==typeof t},a={},u={},c="onfocusin"in t,l={focus:"focusin",blur:"focusout"},h={mouseenter:"mouseover",mouseleave:"mouseout"};function p(t){return t._zid||(t._zid=i++)}function f(t,e,n,i){if((e=d(e)).ns)var s=g(e.ns);return(a[p(t)]||[]).filter((function(t){return t&&(!e.e||t.e==e.e)&&(!e.ns||s.test(t.ns))&&(!n||p(t.fn)===p(n))&&(!i||t.sel==i)}))}function d(t){var e=(""+t).split(".");return{e:e[0],ns:e.slice(1).sort().join(" ")}}function g(t){return new RegExp("(?:^| )"+t.replace(" "," .* ?")+"(?: |$)")}function m(t,e){return t.del&&!c&&t.e in l||!!e}function v(t){return h[t]||c&&l[t]||t}function y(t,i,s,r,o,u,c){var l=p(t),f=a[l]||(a[l]=[]);i.split(/\s/).forEach((function(i){if("ready"==i)return e(document).ready(s);var a=d(i);a.fn=s,a.sel=o,a.e in h&&(s=function(t){var n=t.relatedTarget;if(!n||n!==this&&!e.contains(this,n))return a.fn.apply(this,arguments)}),a.del=u;var l=u||s;a.proxy=function(e){if(!(e=S(e)).isImmediatePropagationStopped()){try{var i=Object.getOwnPropertyDescriptor(e,"data");i&&!i.writable||(e.data=r)}catch(e){}var s=l.apply(t,e._args==n?[e]:[e].concat(e._args));return!1===s&&(e.preventDefault(),e.stopPropagation()),s}},a.i=f.length,f.push(a),"addEventListener"in t&&t.addEventListener(v(a.e),a.proxy,m(a,c))}))}function w(t,e,n,i,s){var r=p(t);(e||"").split(/\s/).forEach((function(e){f(t,e,n,i).forEach((function(e){delete a[r][e.i],"removeEventListener"in t&&t.removeEventListener(v(e.e),e.proxy,m(e,s))}))}))}u.click=u.mousedown=u.mouseup=u.mousemove="MouseEvents",e.event={add:y,remove:w},e.proxy=function(t,n){var i=2 in arguments&&s.call(arguments,2);if(r(t)){var a=function(){return t.apply(n,i?i.concat(s.call(arguments)):arguments)};return a._zid=p(t),a}if(o(n))return i?(i.unshift(t[n],t),e.proxy.apply(null,i)):e.proxy(t[n],t);throw new TypeError("expected function")},e.fn.bind=function(t,e,n){return this.on(t,e,n)},e.fn.unbind=function(t,e){return this.off(t,e)},e.fn.one=function(t,e,n,i){return this.on(t,e,n,i,1)};var b=function(){return!0},C=function(){return!1},x=/^([A-Z]|returnValue$|layer[XY]$|webkitMovement[XY]$)/,_={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"};function S(t,i){if(i||!t.isDefaultPrevented){i||(i=t),e.each(_,(function(e,n){var s=i[e];t[e]=function(){return this[n]=b,s&&s.apply(i,arguments)},t[n]=C}));try{t.timeStamp||(t.timeStamp=Date.now())}catch(s){}(i.defaultPrevented!==n?i.defaultPrevented:"returnValue"in i?!1===i.returnValue:i.getPreventDefault&&i.getPreventDefault())&&(t.isDefaultPrevented=b)}return t}function E(t){var e,i={originalEvent:t};for(e in t)x.test(e)||t[e]===n||(i[e]=t[e]);return S(i,t)}e.fn.delegate=function(t,e,n){return this.on(e,t,n)},e.fn.undelegate=function(t,e,n){return this.off(e,t,n)},e.fn.live=function(t,n){return e(document.body).delegate(this.selector,t,n),this},e.fn.die=function(t,n){return e(document.body).undelegate(this.selector,t,n),this},e.fn.on=function(t,i,a,u,c){var l,h,p=this;return t&&!o(t)?(e.each(t,(function(t,e){p.on(t,i,a,e,c)})),p):(o(i)||r(u)||!1===u||(u=a,a=i,i=n),u!==n&&!1!==a||(u=a,a=n),!1===u&&(u=C),p.each((function(n,r){c&&(l=function(t){return w(r,t.type,u),u.apply(this,arguments)}),i&&(h=function(t){var n,o=e(t.target).closest(i,r).get(0);if(o&&o!==r)return n=e.extend(E(t),{currentTarget:o,liveFired:r}),(l||u).apply(o,[n].concat(s.call(arguments,1)))}),y(r,t,u,a,i,h||l)})))},e.fn.off=function(t,i,s){var a=this;return t&&!o(t)?(e.each(t,(function(t,e){a.off(t,i,e)})),a):(o(i)||r(s)||!1===s||(s=i,i=n),!1===s&&(s=C),a.each((function(){w(this,t,s,i)})))},e.fn.trigger=function(t,n){return(t=o(t)||e.isPlainObject(t)?e.Event(t):S(t))._args=n,this.each((function(){t.type in l&&"function"==typeof this[t.type]?this[t.type]():"dispatchEvent"in this?this.dispatchEvent(t):e(this).triggerHandler(t,n)}))},e.fn.triggerHandler=function(t,n){var i,s;return this.each((function(r,a){(i=E(o(t)?e.Event(t):t))._args=n,i.target=a,e.each(f(a,t.type||t),(function(t,e){if(s=e.proxy(i),i.isImmediatePropagationStopped())return!1}))})),s},"focusin focusout focus blur load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select keydown keypress keyup error".split(" ").forEach((function(t){e.fn[t]=function(e){return 0 in arguments?this.bind(t,e):this.trigger(t)}})),e.Event=function(t,e){o(t)||(t=(e=t).type);var n=document.createEvent(u[t]||"Events"),i=!0;if(e)for(var s in e)"bubbles"==s?i=!!e[s]:n[s]=e[s];return n.initEvent(t,i,!0),S(n)}}(i),n=[],i.fn.remove=function(){return this.each((function(){this.parentNode&&("IMG"===this.tagName&&(n.push(this),this.src="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=",e&&clearTimeout(e),e=setTimeout((function(){n=[]}),6e4)),this.parentNode.removeChild(this))}))},function(t){var e={},n=t.fn.data,i=t.camelCase,s=t.expando="Zepto"+ +new Date,r=[];function o(r,o){var u=r[s],c=u&&e[u];if(void 0===o)return c||a(r);if(c){if(o in c)return c[o];var l=i(o);if(l in c)return c[l]}return n.call(t(r),o)}function a(n,r,o){var a=n[s]||(n[s]=++t.uuid),c=e[a]||(e[a]=u(n));return void 0!==r&&(c[i(r)]=o),c}function u(e){var n={};return t.each(e.attributes||r,(function(e,s){0==s.name.indexOf("data-")&&(n[i(s.name.replace("data-",""))]=t.zepto.deserializeValue(s.value))})),n}t.fn.data=function(e,n){return void 0===n?t.isPlainObject(e)?this.each((function(n,i){t.each(e,(function(t,e){a(i,t,e)}))})):0 in this?o(this[0],e):void 0:this.each((function(){a(this,e,n)}))},t.data=function(e,n,i){return t(e).data(n,i)},t.hasData=function(n){var i=n[s],r=i&&e[i];return!!r&&!t.isEmptyObject(r)},t.fn.removeData=function(n){return"string"==typeof n&&(n=n.split(/\s+/)),this.each((function(){var r=this[s],o=r&&e[r];o&&t.each(n||o,(function(t){delete o[n?i(this):t]}))}))},["remove","empty"].forEach((function(e){var n=t.fn[e];t.fn[e]=function(){var t=this.find("*");return"remove"===e&&(t=t.add(this)),t.removeData(),n.call(this)}}))}(i),i}(e)},8937:t=>{"use strict";var e={}.hasOwnProperty,n=/[ -,\.\/:-@\[-\^`\{-~]/,i=/[ -,\.\/:-@\[\]\^`\{-~]/,s=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,r=function t(r,o){"single"!=(o=function(t,n){if(!t)return n;var i={};for(var s in n)i[s]=e.call(t,s)?t[s]:n[s];return i}(o,t.options)).quotes&&"double"!=o.quotes&&(o.quotes="single");for(var a="double"==o.quotes?'"':"'",u=o.isIdentifier,c=r.charAt(0),l="",h=0,p=r.length;h126){if(d>=55296&&d<=56319&&h
{"use strict";var i,s,r,o=[n(5741),n(1856),n(1015),n(6486),n(5723),n(6345)],a=-1,u=[],c=!1;function l(){i&&s&&(i=!1,s.length?u=s.concat(u):a=-1,u.length&&h())}function h(){if(!i){c=!1,i=!0;for(var t=u.length,e=setTimeout(l);t;){for(s=u,u=[];s&&++a1)for(var n=1;n{"use strict";e.test=function(){return!n.g.setImmediate&&void 0!==n.g.MessageChannel},e.install=function(t){var e=new n.g.MessageChannel;return e.port1.onmessage=t,function(){e.port2.postMessage(0)}}},1015:(t,e,n)=>{"use strict";var i=n.g.MutationObserver||n.g.WebKitMutationObserver;e.test=function(){return i},e.install=function(t){var e=0,s=new i(t),r=n.g.document.createTextNode("");return s.observe(r,{characterData:!0}),function(){r.data=e=++e%2}}},1856:(t,e,n)=>{"use strict";e.test=function(){return"function"==typeof n.g.queueMicrotask},e.install=function(t){return function(){n.g.queueMicrotask(t)}}},5723:(t,e,n)=>{"use strict";e.test=function(){return"document"in n.g&&"onreadystatechange"in n.g.document.createElement("script")},e.install=function(t){return function(){var e=n.g.document.createElement("script");return e.onreadystatechange=function(){t(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},n.g.document.documentElement.appendChild(e),t}}},6345:(t,e)=>{"use strict";e.test=function(){return!0},e.install=function(t){return function(){setTimeout(t,0)}}}}]);
\ No newline at end of file
diff --git a/assets/js/489.ac3cadbd.js.LICENSE.txt b/assets/js/489.d07863ea.js.LICENSE.txt
similarity index 100%
rename from assets/js/489.ac3cadbd.js.LICENSE.txt
rename to assets/js/489.d07863ea.js.LICENSE.txt
diff --git a/assets/js/48b7ca01.46746df6.js b/assets/js/48b7ca01.46746df6.js
deleted file mode 100644
index 543d2bff8..000000000
--- a/assets/js/48b7ca01.46746df6.js
+++ /dev/null
@@ -1 +0,0 @@
-"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[1347],{1165:(e,t,i)=>{i.d(t,{Ck:()=>m,kS:()=>g});var s=i(4848),n=i(8453),a=i(6540),r=i(4016),o=i(3517),l=i(3343),c=i(3864),d=i(8633),h=i(363);const m=({imageData:e,pixelsAbove:t,pixelsBelow:i})=>{const a={div:"div",...(0,n.R)()},c=({currentSlide:e,direction:t,slideCount:i,...n})=>"left"===t?(0,s.jsx)(d.A,{...n,style:{color:"#fff",fontSize:24,width:24,height:24,zIndex:1,left:10}}):(0,s.jsx)(h.A,{...n,style:{color:"#fff",fontSize:24,width:24,height:24,zIndex:1,right:10}});return(!t||t<0)&&(t=0),(!i||i<0)&&(i=0),(0,s.jsxs)(r.A,{justify:"space-between",vertical:!0,children:[(0,s.jsx)(a.div,{style:{height:`${t}px`}}),(0,s.jsx)(o.A,{arrows:!0,prevArrow:(0,s.jsx)(c,{direction:"left"}),nextArrow:(0,s.jsx)(c,{direction:"right"}),children:e.map((e=>(0,s.jsx)(l.A,{src:e.src},e.src)))}),(0,s.jsx)(a.div,{style:{height:`${i}px`}})]})},g=({tabMap:e,pixelsAbove:t,pixelsBelow:i})=>{const o={div:"div",...(0,n.R)()},[l,d]=(0,a.useState)(Object.keys(e)[0]);return(!t||t<0)&&(t=0),(!i||i<0)&&(i=0),(0,s.jsxs)(r.A,{justify:"space-between",vertical:!0,children:[(0,s.jsx)(o.div,{style:{height:`${t}px`}}),(0,s.jsx)(c.A,{tabList:Object.entries(e).map((([e,t])=>({key:e,label:t.label}))),activeTabKey:l,onTabChange:e=>{d(e)},children:e[l].component}),(0,s.jsx)(o.div,{style:{height:`${i}px`}})]})}},9350:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>l,contentTitle:()=>r,default:()=>h,frontMatter:()=>a,metadata:()=>o,toc:()=>c});var s=i(4848),n=i(8453);i(1165);const a={title:"Encoding Animation with SVT-AV1: A Deep Dive",description:"With the recent release of SVT-AV1 1.8.0, how does it stack up for encoding animation?",slug:"svt-av1-deep-dive",authors:[{name:"Trix",title:"Encoder",url:"https://github.com/trixoniisama/",image_url:"https://avatars.githubusercontent.com/u/93526043"}],tags:["video","compression","benchmarks"],image:"/img/svt-1.8.0-testing-blog-image.webp",hide_table_of_contents:!1},r="Introduction",o={permalink:"/blog/svt-av1-deep-dive",source:"@site/blog/2023-12-30-svt-av1-deep-dive.mdx",title:"Encoding Animation with SVT-AV1: A Deep Dive",description:"With the recent release of SVT-AV1 1.8.0, how does it stack up for encoding animation?",date:"2023-12-30T00:00:00.000Z",tags:[{inline:!0,label:"video",permalink:"/blog/tags/video"},{inline:!0,label:"compression",permalink:"/blog/tags/compression"},{inline:!0,label:"benchmarks",permalink:"/blog/tags/benchmarks"}],readingTime:22.78,hasTruncateMarker:!0,authors:[{name:"Trix",title:"Encoder",url:"https://github.com/trixoniisama/",image_url:"https://avatars.githubusercontent.com/u/93526043",imageURL:"https://avatars.githubusercontent.com/u/93526043",key:null,page:null}],frontMatter:{title:"Encoding Animation with SVT-AV1: A Deep Dive",description:"With the recent release of SVT-AV1 1.8.0, how does it stack up for encoding animation?",slug:"svt-av1-deep-dive",authors:[{name:"Trix",title:"Encoder",url:"https://github.com/trixoniisama/",image_url:"https://avatars.githubusercontent.com/u/93526043",imageURL:"https://avatars.githubusercontent.com/u/93526043"}],tags:["video","compression","benchmarks"],image:"/img/svt-1.8.0-testing-blog-image.webp",hide_table_of_contents:!1},unlisted:!1,prevItem:{title:"Observing SVT-AV1 v2.1.0's improvements: A New Deep Dive",permalink:"/blog/svt-av1-second-deep-dive"},nextItem:{title:"Embedding the Un-Embeddable",permalink:"/blog/embedding-the-un-embeddable"}},l={authorsImageUrls:[void 0]},c=[];function d(e){const t={del:"del",em:"em",p:"p",strong:"strong",...(0,n.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.p,{children:"This blog post is based on a series of visual quality benchmarks with SSIMULACRA2 and speed benchmarks of SVT-AV1 1.8.0 on a corpus of animated clips."}),"\n",(0,s.jsxs)(t.p,{children:["The resources available will range from ",(0,s.jsx)(t.em,{children:(0,s.jsx)(t.strong,{children:"graphs"})})," to ",(0,s.jsx)(t.del,{children:(0,s.jsx)(t.strong,{children:"image comparisons"})})," (WIP). The ",(0,s.jsx)(t.em,{children:(0,s.jsx)(t.strong,{children:"former"})})," has the advantage of being easily understandable, showcasing pure efficiency comparisons between encoder parameters using metrics as the reference, while the ",(0,s.jsx)(t.strong,{children:"latter"})," are image samples from the encoded files during the tests that enable you to check quality for yourself and add another layer of subjective interpretation to these comparisons."]})]})}function h(e={}){const{wrapper:t}={...(0,n.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(d,{...e})}):d(e)}}}]);
\ No newline at end of file
diff --git a/assets/js/48b7ca01.58594b7d.js b/assets/js/48b7ca01.58594b7d.js
new file mode 100644
index 000000000..9104f7945
--- /dev/null
+++ b/assets/js/48b7ca01.58594b7d.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[1347],{1165:(e,t,i)=>{i.d(t,{Ck:()=>m,kS:()=>p});var s=i(4848),n=i(8453),a=i(6540),r=i(4016),o=i(3517),l=i(3343),c=i(3864),d=i(8633),h=i(363);const m=({imageData:e,pixelsAbove:t,pixelsBelow:i})=>{const a={div:"div",...(0,n.R)()},c=({currentSlide:e,direction:t,slideCount:i,...n})=>"left"===t?(0,s.jsx)(d.A,{...n,style:{color:"#fff",fontSize:24,width:24,height:24,zIndex:1,left:10}}):(0,s.jsx)(h.A,{...n,style:{color:"#fff",fontSize:24,width:24,height:24,zIndex:1,right:10}});return(!t||t<0)&&(t=0),(!i||i<0)&&(i=0),(0,s.jsxs)(r.A,{justify:"space-between",vertical:!0,children:[(0,s.jsx)(a.div,{style:{height:`${t}px`}}),(0,s.jsx)(o.A,{arrows:!0,prevArrow:(0,s.jsx)(c,{direction:"left"}),nextArrow:(0,s.jsx)(c,{direction:"right"}),children:e.map((e=>(0,s.jsx)(l.A,{src:e.src},e.src)))}),(0,s.jsx)(a.div,{style:{height:`${i}px`}})]})},p=({tabMap:e,pixelsAbove:t,pixelsBelow:i})=>{const o={div:"div",...(0,n.R)()},[l,d]=(0,a.useState)(Object.keys(e)[0]);return(!t||t<0)&&(t=0),(!i||i<0)&&(i=0),(0,s.jsxs)(r.A,{justify:"space-between",vertical:!0,children:[(0,s.jsx)(o.div,{style:{height:`${t}px`}}),(0,s.jsx)(c.A,{tabList:Object.entries(e).map((([e,t])=>({key:e,label:t.label}))),activeTabKey:l,onTabChange:e=>{d(e)},children:e[l].component}),(0,s.jsx)(o.div,{style:{height:`${i}px`}})]})}},9350:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>l,contentTitle:()=>o,default:()=>h,frontMatter:()=>r,metadata:()=>s,toc:()=>c});var s=i(5255),n=i(4848),a=i(8453);i(1165);const r={title:"Encoding Animation with SVT-AV1: A Deep Dive",description:"With the recent release of SVT-AV1 1.8.0, how does it stack up for encoding animation?",slug:"svt-av1-deep-dive",authors:[{name:"Trix",title:"Encoder",url:"https://github.com/trixoniisama/",image_url:"https://avatars.githubusercontent.com/u/93526043"}],tags:["video","compression","benchmarks"],image:"/img/svt-1.8.0-testing-blog-image.webp",hide_table_of_contents:!1},o="Introduction",l={authorsImageUrls:[void 0]},c=[];function d(e){const t={del:"del",em:"em",p:"p",strong:"strong",...(0,a.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.p,{children:"This blog post is based on a series of visual quality benchmarks with SSIMULACRA2 and speed benchmarks of SVT-AV1 1.8.0 on a corpus of animated clips."}),"\n",(0,n.jsxs)(t.p,{children:["The resources available will range from ",(0,n.jsx)(t.em,{children:(0,n.jsx)(t.strong,{children:"graphs"})})," to ",(0,n.jsx)(t.del,{children:(0,n.jsx)(t.strong,{children:"image comparisons"})})," (WIP). The ",(0,n.jsx)(t.em,{children:(0,n.jsx)(t.strong,{children:"former"})})," has the advantage of being easily understandable, showcasing pure efficiency comparisons between encoder parameters using metrics as the reference, while the ",(0,n.jsx)(t.strong,{children:"latter"})," are image samples from the encoded files during the tests that enable you to check quality for yourself and add another layer of subjective interpretation to these comparisons."]})]})}function h(e={}){const{wrapper:t}={...(0,a.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(d,{...e})}):d(e)}},5255:e=>{e.exports=JSON.parse('{"permalink":"/blog/svt-av1-deep-dive","source":"@site/blog/2023-12-30-svt-av1-deep-dive.mdx","title":"Encoding Animation with SVT-AV1: A Deep Dive","description":"With the recent release of SVT-AV1 1.8.0, how does it stack up for encoding animation?","date":"2023-12-30T00:00:00.000Z","tags":[{"inline":true,"label":"video","permalink":"/blog/tags/video"},{"inline":true,"label":"compression","permalink":"/blog/tags/compression"},{"inline":true,"label":"benchmarks","permalink":"/blog/tags/benchmarks"}],"readingTime":22.78,"hasTruncateMarker":true,"authors":[{"name":"Trix","title":"Encoder","url":"https://github.com/trixoniisama/","image_url":"https://avatars.githubusercontent.com/u/93526043","imageURL":"https://avatars.githubusercontent.com/u/93526043","socials":{},"key":null,"page":null}],"frontMatter":{"title":"Encoding Animation with SVT-AV1: A Deep Dive","description":"With the recent release of SVT-AV1 1.8.0, how does it stack up for encoding animation?","slug":"svt-av1-deep-dive","authors":[{"name":"Trix","title":"Encoder","url":"https://github.com/trixoniisama/","image_url":"https://avatars.githubusercontent.com/u/93526043","imageURL":"https://avatars.githubusercontent.com/u/93526043"}],"tags":["video","compression","benchmarks"],"image":"/img/svt-1.8.0-testing-blog-image.webp","hide_table_of_contents":false},"unlisted":false,"prevItem":{"title":"Observing SVT-AV1 v2.1.0\'s improvements: A New Deep Dive","permalink":"/blog/svt-av1-second-deep-dive"},"nextItem":{"title":"Embedding the Un-Embeddable","permalink":"/blog/embedding-the-un-embeddable"}}')}}]);
\ No newline at end of file
diff --git a/assets/js/49b64d14.085e8d06.js b/assets/js/49b64d14.085e8d06.js
new file mode 100644
index 000000000..4dceb2c9c
--- /dev/null
+++ b/assets/js/49b64d14.085e8d06.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[5993],{6807:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>d,contentTitle:()=>c,default:()=>p,frontMatter:()=>l,metadata:()=>n,toc:()=>h});const n=JSON.parse('{"id":"encoders/SVT-AV1","title":"SVT-AV1","description":"The content in this entry is incomplete & is in the process of being completed.","source":"@site/docs/encoders/SVT-AV1.mdx","sourceDirName":"encoders","slug":"/encoders/SVT-AV1","permalink":"/docs/encoders/SVT-AV1","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/encoders/SVT-AV1.mdx","tags":[],"version":"current","sidebarPosition":5,"frontMatter":{"title":"SVT-AV1","sidebar_position":5},"sidebar":"tutorialSidebar","previous":{"title":"SVT-AV1-PSY","permalink":"/docs/encoders/SVT-AV1-PSY"},"next":{"title":"rav1e","permalink":"/docs/encoders/rav1e"}}');var s=i(4848),r=i(8453),o=i(1470),a=i(9365);const l={title:"SVT-AV1",sidebar_position:5},c="SVT-AV1",d={},h=[{value:"FFmpeg",id:"ffmpeg",level:2},{value:"Supported Color Space",id:"supported-color-space",level:2},{value:"Installation",id:"installation",level:2},{value:"Encoding",id:"encoding",level:2},{value:"Strengths",id:"strengths",level:3},{value:"Weaknesses",id:"weaknesses",level:3},{value:"Encoder Optimization",id:"encoder-optimization",level:3},{value:"Community Forks",id:"community-forks",level:2},{value:"SVT-AV1-PSY",id:"svt-av1-psy",level:3}];function u(e){const t={a:"a",admonition:"admonition",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",p:"p",pre:"pre",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,r.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.header,{children:(0,s.jsx)(t.h1,{id:"svt-av1",children:"SVT-AV1"})}),"\n",(0,s.jsx)(t.admonition,{title:"Under Maintenance",type:"info",children:(0,s.jsx)(t.p,{children:"The content in this entry is incomplete & is in the process of being completed."})}),"\n",(0,s.jsxs)(t.p,{children:['SVT-AV1 (Scalable Video Technology for AV1) is an AV1-compliant software encoder/decoder library. Jointly developed by Intel and Netflix, SVT-AV1 is written almost entirely in C with some parts written in C++ and Assembly. As the name suggests, it is part of the "',(0,s.jsx)(t.a,{href:"https://www.intel.com/content/www/us/en/developer/articles/technical/scalable-video-technology.html",children:"Scalable Video Technology"}),'" project lineup by Intel.']}),"\n",(0,s.jsxs)(t.p,{children:['This entry discusses the SVT-AV1 encoder, also known as the "Production" AV1 encoder (while ',(0,s.jsx)(t.a,{href:"/docs/encoders/aomenc",children:"aomenc"}),' is the "reference" AV1 encoder), & refers to SVT-AV1 as such. SVT-AV1 is known for its parallelization, high coding efficiency, & active development. SVT-AV1 scales across multiple CPU cores much more effectively than aomenc or ',(0,s.jsx)(t.a,{href:"/docs/encoders/rav1e",children:"rav1e"}),", so the use of tools like ",(0,s.jsx)(t.a,{href:"/docs/utilities/av1an",children:"Av1an"})," is less helpful albeit still helpful for scene detection."]}),"\n",(0,s.jsx)(t.h2,{id:"ffmpeg",children:"FFmpeg"}),"\n",(0,s.jsxs)(t.p,{children:["SVT-AV1 is available in FFmpeg via ",(0,s.jsx)(t.code,{children:"libsvtav1"}),", to check if you have it, run ",(0,s.jsx)(t.code,{children:"ffmpeg -h encoder=libsvtav1"}),". You can input non-FFmpeg standard SVT-AV1 parameters via ",(0,s.jsx)(t.code,{children:"-svtav1-params"}),"."]}),"\n",(0,s.jsx)(t.h2,{id:"supported-color-space",children:"Supported Color Space"}),"\n",(0,s.jsx)(t.p,{children:"SVT-AV1 supports the following color spaces:"}),"\n",(0,s.jsxs)(t.table,{children:[(0,s.jsx)(t.thead,{children:(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.th,{children:"Format"}),(0,s.jsx)(t.th,{style:{textAlign:"center"},children:"Chroma Subsampling"}),(0,s.jsx)(t.th,{children:"Supported Bit Depth(s)"})]})}),(0,s.jsxs)(t.tbody,{children:[(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:"YUV420P"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"4:2:0"}),(0,s.jsx)(t.td,{children:"8-bit"})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:"YUV420P10LE"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"4:2:0"}),(0,s.jsx)(t.td,{children:"10-bit"})]})]})]}),"\n",(0,s.jsx)(t.h2,{id:"installation",children:"Installation"}),"\n",(0,s.jsxs)(o.A,{children:[(0,s.jsxs)(a.A,{value:"unixlike",label:"Linux & macOS",children:[(0,s.jsx)(t.p,{children:(0,s.jsxs)(t.em,{children:["A precompiled AVX2-optimized binary of SVT-AV1-PSY can be installed for x86_64 Linux via ",(0,s.jsx)(t.a,{href:"/docs/utilities/rav1ator-cli",children:"rAV1ator CLI"}),". However, it is always recommended to build from source."]})}),(0,s.jsx)(t.p,{children:"To build SVT-AV1 from source, first clone the desired SVT-AV1 repository & enter the build directory."}),(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-bash",metastring:'title="Clone mainline SVT-AV1"',children:"git clone https://gitlab.com/AOMediaCodec/SVT-AV1/\ngit reset --hard bbcff785881b320f7e1b1f77a2f5ed025f8bfd75 # Reset to release 2.1.0\ncd SVT-AV1/Build/linux\n"})}),(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-bash",metastring:'title="Clone SVT-AV1-PSY"',children:"git clone https://github.com/gianni-rosato/svt-av1-psy\ncd SVT-AV1/Build/linux\n"})}),(0,s.jsxs)(t.p,{children:["In the directory, simply run ",(0,s.jsx)(t.code,{children:"./build.sh [flags]"})," to build. Be aware that building requires CMake version 3.16 or higher and either GCC or Clang. It is recommended to use clang when building SVT-AV1."]}),(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-bash",metastring:'title="Build release"',children:"./build.sh release\n"})}),(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-bash",metastring:'title="Statically build just the encoder with clang and enable link-time optimization"',children:"./build.sh jobs=8 all cc=clang cxx=clang++ no-dec enable-lto static native\n"})}),(0,s.jsxs)(t.p,{children:["The compiled binaries will be in the ",(0,s.jsx)(t.code,{children:"Bin/Release"})," directory, including SvtAv1EncApp. If you just want the encoder, adding the ",(0,s.jsx)(t.code,{children:"no-dec"})," flag will skip building SvtAv1DecApp and save on compilation time."]}),(0,s.jsxs)(t.p,{children:["If you'd like to build from the latest release (2.1.0 at the time of writing - last updated 16 Apr 2024) please run ",(0,s.jsx)(t.code,{children:"git reset --hard 2aeeb4f1a1d495b84bf5c21dbb60ae10e991fada"})," in the cloned directory. It is recommended that you do this, as new changes to git aren't always stable right away & a release will guarantee more stability."]}),(0,s.jsxs)(t.p,{children:["If you want extra performance, it is possible to build SVT-AV1 using PGO (Profile-guided Optimization). ",(0,s.jsxs)(t.strong,{children:["Be aware that this particular script infers that you have a .y4m file (or multiple) in ",(0,s.jsx)(t.code,{children:"/dev/shm"})," for transcoding"]}),". You can compile statically linked SVT-AV1 with PGO (and LTO, or link-time optimization) by following this script:"]}),(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-bash",metastring:'title="Bulding SVT-AV1 with profile guided optimization"',children:"git clone https://gitlab.com/AOMediaCodec/SVT-AV1/\ncd SVT-AV1/Build/linux\n./build.sh cc=gcc cxx=g++ enable-lto enable-pgo static native jobs=$(nproc) pgo-dir=/dev/shm pgo-videos=/dev/shm release\n"})}),(0,s.jsx)(t.p,{children:"If you wish to store videos elsewhere or provide custom parameters to the SvtAv1EncApp binary, try this script:"}),(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-bash",children:"git clone https://gitlab.com/AOMediaCodec/SVT-AV1/\ncd SVT-AV1/Build/linux\n./build.sh cc=gcc cxx=g++ enable-lto enable-pgo static native jobs=$(nproc) pgo-dir=/dev/shm pgo-compile-gen release\n../../Bin/Release/SvtAv1EncApp # Run this binary as many times as you'd like with arguments of your choice to collect data\n./build.sh cc=gcc cxx=g++ enable-lto enable-pgo static native jobs=$(nproc) pgo-dir=/dev/shm pgo-compile-use release\n"})})]}),(0,s.jsx)(a.A,{value:"windows",label:"Windows",children:(0,s.jsxs)(t.p,{children:["To be filled. If you believe you can help, see our ",(0,s.jsx)(t.a,{href:"/docs/contribution-guide",children:"Contribution Guide"}),"."]})})]}),"\n",(0,s.jsx)(t.h2,{id:"encoding",children:"Encoding"}),"\n",(0,s.jsx)(t.h3,{id:"strengths",children:"Strengths"}),"\n",(0,s.jsx)(t.p,{children:"SVT-AV1's greatest strength is its parallelization capability, where it outclasses other AV1 encoders by a significant margin. SVT-AV1's parallelization techniques do not involve tiling & don't harm video quality, & can comfortably utilize up to 16 cores given 1080p source video. This is while maintaining competitive coding efficiency to mainline aomenc. Perceptually, mainline SVT-AV1 is outperformed by well-tuned community forks of aomenc, but according to many the gap has begun to close with the introduction of SVT-AV1-PSY."}),"\n",(0,s.jsx)(t.h3,{id:"weaknesses",children:"Weaknesses"}),"\n",(0,s.jsxs)(t.p,{children:["SVT-AV1 is strongest on x86 CPUs, & while ARM NEON assembly is ",(0,s.jsx)(t.a,{href:"https://gitlab.com/AOMediaCodec/SVT-AV1/-/commit/ba13fac241f1b54954935f2cb200efc07f3de13a",children:"available"})," and has been slowly improving since its introduction in version 1.8.0, SVT-AV1 still underperforms on ARM. For this reason, it is not a good cross-architecture CPU benchmark. SVT-AV1's support for various AV1 features is also limited; it only supports up to 4:2:0 chroma subsampling with no support for 12-bit color, and it does not support scene change detection (there are no plans to implement this, either). The smallest possible video that SVT-AV1 can produce is 64x64."]}),"\n",(0,s.jsx)(t.h3,{id:"encoder-optimization",children:"Encoder Optimization"}),"\n",(0,s.jsxs)(t.p,{children:["Aside from build optimizations for speed, there is further tweaking to be done to the ",(0,s.jsx)(t.code,{children:"SvtAv1EncApp"})," binary parameters when encoding. The following applies to mainline SVT-AV1, but does not apply to SVT-AV1-PSY."]}),"\n",(0,s.jsxs)(t.ul,{children:["\n",(0,s.jsxs)(t.li,{children:[(0,s.jsx)(t.code,{children:"--film-grain"})," & ",(0,s.jsx)(t.code,{children:"--film-grain-denoise"})]}),"\n"]}),"\n",(0,s.jsxs)(t.p,{children:["Most live-action sources feature hard-to-compress digital noise that is easily smoothed out by AV1 compression. To add this grain back, or even denoise through the encoder and then add grain, it is possible to use the ",(0,s.jsx)(t.code,{children:"--film-grain"})," parameter to specify an amount of film grain to add to the encode (& ",(0,s.jsx)(t.code,{children:"--film-grain-denoise"})," to specify how to denoise the input video before encoding for potentially better appeal). Denoising a video always removes fine details, so sticking with just ",(0,s.jsx)(t.code,{children:"--film-grain"})," is recommended in most cases. According to ",(0,s.jsx)(t.a,{href:"https://gitlab.com/AOMediaCodec/SVT-AV1/-/blob/master/Docs/CommonQuestions.mdx#practical-advice-on-grain-synthesis",children:"SVT-AV1 documentation"}),", a level of 8 should be used for live-action content with a normal amount of grain while a level of 4 works well for hand-drawn animation or other smoother-looking sources that still stand to benefit from some grain synthesis."]}),"\n",(0,s.jsxs)(t.ul,{children:["\n",(0,s.jsx)(t.li,{children:(0,s.jsx)(t.code,{children:"--input-depth 10"})}),"\n"]}),"\n",(0,s.jsx)(t.p,{children:"10-bit output from AV1 encoding is always desirable for coding efficiency, even if your source is 8-bit. This option only produces a 10-bit AV1 bitstream if the source provided to the encoder is 10-bit."}),"\n",(0,s.jsxs)(t.ul,{children:["\n",(0,s.jsx)(t.li,{children:(0,s.jsx)(t.code,{children:"--tune 2"})}),"\n"]}),"\n",(0,s.jsxs)(t.p,{children:["There are three tunes in mainline SVT-AV1: Tune 1 is for ",(0,s.jsx)(t.a,{href:"/docs/metrics/PSNR",children:"PSNR"})," ",(0,s.jsx)(t.a,{href:"/docs/introduction/psychovisual",children:"RDO"}),", Tune 2 is for ",(0,s.jsx)(t.a,{href:"/docs/metrics/SSIM",children:"SSIM"})," RDO, & Tune 0 is a ",(0,s.jsx)(t.a,{href:"/docs/introduction/psychovisual",children:"psychovisual"})," tune labeled VQ. It has been common practice to lean away from the PSNR tune, as it is not designed for visual quality but rather to perform better on the PSNR metric which is widely considered to be inconsistent with our human perception of fidelity. Using the VQ tune is a safe bet for now, but many believe the newer SSIM tune provides better visual fidelity. Using SVT-AV1-PSY, the custom Subjective SSIM tune (Tune 3) provides the best of both Tune 2 & Tune 0 with additional improvements as well."]}),"\n",(0,s.jsxs)(t.ul,{children:["\n",(0,s.jsx)(t.li,{children:(0,s.jsx)(t.code,{children:"--enable-qm 1"})}),"\n"]}),"\n",(0,s.jsx)(t.p,{children:"Enables quantization matrices, disabled by default. Improves coding efficiency mainly by improving encoding speed while producing similar quality video."}),"\n",(0,s.jsxs)(t.ul,{children:["\n",(0,s.jsx)(t.li,{children:(0,s.jsx)(t.code,{children:"--qm-min 0"})}),"\n"]}),"\n",(0,s.jsx)(t.p,{children:"Sets the minimum flatness of quantization matrices to 0, down from the default 8. This is recommended unless you are dealing with extremely heavy grain. The maximum quantization matrix flatness is 15 by default, and should be left alone"}),"\n",(0,s.jsxs)(t.ul,{children:["\n",(0,s.jsx)(t.li,{children:(0,s.jsx)(t.code,{children:"--keyint [FPS*10]"})}),"\n"]}),"\n",(0,s.jsxs)(t.p,{children:["Similar to ",(0,s.jsx)(t.code,{children:"--kf-max-dist"})," in ",(0,s.jsx)(t.a,{href:"/docs/encoders/vpxenc",children:"vpxenc"}),", this tells the encoder when to place keyframes. Because SVT-AV1 doesn't have scene detection, this isn't the maximum distance between keyframes, but rather a fixed interval for placing keyframes. If using Av1an, set to -1 to disable keyframe insertion as Av1an handles that instead."]}),"\n",(0,s.jsxs)(t.ul,{children:["\n",(0,s.jsx)(t.li,{children:(0,s.jsx)(t.code,{children:"--irefresh-type 2"})}),"\n"]}),"\n",(0,s.jsxs)(t.p,{children:["Intra refresh is specified through this option, & lets the user decide between Closed GOP & Open GOP. GOP stands for Group of Pictures. Open GOP allows GOPs to ",(0,s.jsx)(t.a,{href:"https://ottverse.com/closed-gop-open-gop-idr/",children:"reference one another"}),", but support for this feature is currently incomplete. Therefore, it is recommended to use Closed GOP for the time being via ",(0,s.jsx)(t.code,{children:"--irefresh-type 2"})," until this is rectified."]}),"\n",(0,s.jsxs)(t.ul,{children:["\n",(0,s.jsx)(t.li,{children:(0,s.jsx)(t.code,{children:"--preset X"})}),"\n"]}),"\n",(0,s.jsx)(t.p,{children:"SVT-AV1 can be used in 14 different presets, labeled -1 through 13. Preset -1 is the slowest, but provides the best coding efficiency; it is also dubbed a research preset that is not recommended for regular use. Preset 13 is the fastest, and is also not recommended for regular use as it makes serious trade-offs to achieve unrealistically fast speeds at the cost of the encoder's coding efficiency. Using presets 2 through 8 is the best course of action for non-realtime applications if you desire reasonable speed, while 9 through 12 are useful for real-time encoding at 1080p or lower, even on low-end consumer computer hardware."}),"\n",(0,s.jsxs)(t.ul,{children:["\n",(0,s.jsx)(t.li,{children:(0,s.jsx)(t.code,{children:"--crf X"})}),"\n"]}),"\n",(0,s.jsx)(t.p,{children:"CRF is the best way to target quality for optimal visual fidelity. VBR & CBR lose efficiency due to their inherently limited rate control capabilities."}),"\n",(0,s.jsx)(t.h2,{id:"community-forks",children:"Community Forks"}),"\n",(0,s.jsxs)(t.p,{children:["Currently, there is only one noteworthy community fork of SVT-AV1 called ",(0,s.jsx)(t.a,{href:"/docs/encoders/SVT-AV1-PSY",children:"SVT-AV1-PSY"}),"."]}),"\n",(0,s.jsx)(t.h3,{id:"svt-av1-psy",children:"SVT-AV1-PSY"}),"\n",(0,s.jsxs)(t.p,{children:["SVT-AV1-PSY is a community fork of SVT-AV1 that strives to improve the perceptual fidelity and quality of life provided by the encoder. The goal of this project is to create the best encoding implementation for perceptual quality with AV1, and it aims to surpass previous community forks of ",(0,s.jsx)(t.a,{href:"/docs/encoders/aomenc#choosing-forks",children:"aomenc"})," in speed and visual quality."]}),"\n",(0,s.jsxs)(t.p,{children:["SVT-AV1-PSY has a number of feature additions to the mainline SVT-AV1 encoder as well as modified defaults that aim to make it easier to produce a more perceptually optimal bistream. For a full list of the encoder's feature additions and modifications to defaults, see the ",(0,s.jsx)(t.a,{href:"https://github.com/gianni-rosato/svt-av1-psy/blob/master/README.md#feature-additions",children:"project's README"}),"."]})]})}function p(e={}){const{wrapper:t}={...(0,r.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(u,{...e})}):u(e)}},9365:(e,t,i)=>{i.d(t,{A:()=>o});i(6540);var n=i(4164);const s={tabItem:"tabItem_Ymn6"};var r=i(4848);function o(e){let{children:t,hidden:i,className:o}=e;return(0,r.jsx)("div",{role:"tabpanel",className:(0,n.A)(s.tabItem,o),hidden:i,children:t})}},1470:(e,t,i)=>{i.d(t,{A:()=>j});var n=i(6540),s=i(4164),r=i(3104),o=i(6347),a=i(205),l=i(7485),c=i(1682),d=i(679);function h(e){return n.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,n.isValidElement)(e)&&function(e){const{props:t}=e;return!!t&&"object"==typeof t&&"value"in t}(e))return e;throw new Error(`Docusaurus error: Bad child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the component should be , and every should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function u(e){const{values:t,children:i}=e;return(0,n.useMemo)((()=>{const e=t??function(e){return h(e).map((e=>{let{props:{value:t,label:i,attributes:n,default:s}}=e;return{value:t,label:i,attributes:n,default:s}}))}(i);return function(e){const t=(0,c.XI)(e,((e,t)=>e.value===t.value));if(t.length>0)throw new Error(`Docusaurus error: Duplicate values "${t.map((e=>e.value)).join(", ")}" found in . Every value needs to be unique.`)}(e),e}),[t,i])}function p(e){let{value:t,tabValues:i}=e;return i.some((e=>e.value===t))}function m(e){let{queryString:t=!1,groupId:i}=e;const s=(0,o.W6)(),r=function(e){let{queryString:t=!1,groupId:i}=e;if("string"==typeof t)return t;if(!1===t)return null;if(!0===t&&!i)throw new Error('Docusaurus error: The component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return i??null}({queryString:t,groupId:i});return[(0,l.aZ)(r),(0,n.useCallback)((e=>{if(!r)return;const t=new URLSearchParams(s.location.search);t.set(r,e),s.replace({...s.location,search:t.toString()})}),[r,s])]}function f(e){const{defaultValue:t,queryString:i=!1,groupId:s}=e,r=u(e),[o,l]=(0,n.useState)((()=>function(e){let{defaultValue:t,tabValues:i}=e;if(0===i.length)throw new Error("Docusaurus error: the component requires at least one children component");if(t){if(!p({value:t,tabValues:i}))throw new Error(`Docusaurus error: The has a defaultValue "${t}" but none of its children has the corresponding value. Available values are: ${i.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return t}const n=i.find((e=>e.default))??i[0];if(!n)throw new Error("Unexpected error: 0 tabValues");return n.value}({defaultValue:t,tabValues:r}))),[c,h]=m({queryString:i,groupId:s}),[f,b]=function(e){let{groupId:t}=e;const i=function(e){return e?`docusaurus.tab.${e}`:null}(t),[s,r]=(0,d.Dv)(i);return[s,(0,n.useCallback)((e=>{i&&r.set(e)}),[i,r])]}({groupId:s}),g=(()=>{const e=c??f;return p({value:e,tabValues:r})?e:null})();(0,a.A)((()=>{g&&l(g)}),[g]);return{selectedValue:o,selectValue:(0,n.useCallback)((e=>{if(!p({value:e,tabValues:r}))throw new Error(`Can't select invalid tab value=${e}`);l(e),h(e),b(e)}),[h,b,r]),tabValues:r}}var b=i(2303);const g={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var x=i(4848);function v(e){let{className:t,block:i,selectedValue:n,selectValue:o,tabValues:a}=e;const l=[],{blockElementScrollPositionUntilNextRender:c}=(0,r.a_)(),d=e=>{const t=e.currentTarget,i=l.indexOf(t),s=a[i].value;s!==n&&(c(t),o(s))},h=e=>{let t=null;switch(e.key){case"Enter":d(e);break;case"ArrowRight":{const i=l.indexOf(e.currentTarget)+1;t=l[i]??l[0];break}case"ArrowLeft":{const i=l.indexOf(e.currentTarget)-1;t=l[i]??l[l.length-1];break}}t?.focus()};return(0,x.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,s.A)("tabs",{"tabs--block":i},t),children:a.map((e=>{let{value:t,label:i,attributes:r}=e;return(0,x.jsx)("li",{role:"tab",tabIndex:n===t?0:-1,"aria-selected":n===t,ref:e=>l.push(e),onKeyDown:h,onClick:d,...r,className:(0,s.A)("tabs__item",g.tabItem,r?.className,{"tabs__item--active":n===t}),children:i??t},t)}))})}function V(e){let{lazy:t,children:i,selectedValue:r}=e;const o=(Array.isArray(i)?i:[i]).filter(Boolean);if(t){const e=o.find((e=>e.props.value===r));return e?(0,n.cloneElement)(e,{className:(0,s.A)("margin-top--md",e.props.className)}):null}return(0,x.jsx)("div",{className:"margin-top--md",children:o.map(((e,t)=>(0,n.cloneElement)(e,{key:t,hidden:e.props.value!==r})))})}function y(e){const t=f(e);return(0,x.jsxs)("div",{className:(0,s.A)("tabs-container",g.tabList),children:[(0,x.jsx)(v,{...t,...e}),(0,x.jsx)(V,{...t,...e})]})}function j(e){const t=(0,b.A)();return(0,x.jsx)(y,{...e,children:h(e.children)},String(t))}},8453:(e,t,i)=>{i.d(t,{R:()=>o,x:()=>a});var n=i(6540);const s={},r=n.createContext(s);function o(e){const t=n.useContext(r);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:o(e.components),n.createElement(r.Provider,{value:t},e.children)}}}]);
\ No newline at end of file
diff --git a/assets/js/49b64d14.988cf361.js b/assets/js/49b64d14.988cf361.js
deleted file mode 100644
index ae6265cf4..000000000
--- a/assets/js/49b64d14.988cf361.js
+++ /dev/null
@@ -1 +0,0 @@
-"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[5993],{4493:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>d,contentTitle:()=>l,default:()=>p,frontMatter:()=>a,metadata:()=>c,toc:()=>h});var n=i(4848),s=i(8453),r=i(1470),o=i(9365);const a={title:"SVT-AV1",sidebar_position:5},l="SVT-AV1",c={id:"encoders/SVT-AV1",title:"SVT-AV1",description:"The content in this entry is incomplete & is in the process of being completed.",source:"@site/docs/encoders/SVT-AV1.mdx",sourceDirName:"encoders",slug:"/encoders/SVT-AV1",permalink:"/docs/encoders/SVT-AV1",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/encoders/SVT-AV1.mdx",tags:[],version:"current",sidebarPosition:5,frontMatter:{title:"SVT-AV1",sidebar_position:5},sidebar:"tutorialSidebar",previous:{title:"SVT-AV1-PSY",permalink:"/docs/encoders/SVT-AV1-PSY"},next:{title:"rav1e",permalink:"/docs/encoders/rav1e"}},d={},h=[{value:"FFmpeg",id:"ffmpeg",level:2},{value:"Supported Color Space",id:"supported-color-space",level:2},{value:"Installation",id:"installation",level:2},{value:"Encoding",id:"encoding",level:2},{value:"Strengths",id:"strengths",level:3},{value:"Weaknesses",id:"weaknesses",level:3},{value:"Encoder Optimization",id:"encoder-optimization",level:3},{value:"Community Forks",id:"community-forks",level:2},{value:"SVT-AV1-PSY",id:"svt-av1-psy",level:3}];function u(e){const t={a:"a",admonition:"admonition",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",p:"p",pre:"pre",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,s.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.header,{children:(0,n.jsx)(t.h1,{id:"svt-av1",children:"SVT-AV1"})}),"\n",(0,n.jsx)(t.admonition,{title:"Under Maintenance",type:"info",children:(0,n.jsx)(t.p,{children:"The content in this entry is incomplete & is in the process of being completed."})}),"\n",(0,n.jsxs)(t.p,{children:['SVT-AV1 (Scalable Video Technology for AV1) is an AV1-compliant software encoder/decoder library. Jointly developed by Intel and Netflix, SVT-AV1 is written almost entirely in C with some parts written in C++ and Assembly. As the name suggests, it is part of the "',(0,n.jsx)(t.a,{href:"https://www.intel.com/content/www/us/en/developer/articles/technical/scalable-video-technology.html",children:"Scalable Video Technology"}),'" project lineup by Intel.']}),"\n",(0,n.jsxs)(t.p,{children:['This entry discusses the SVT-AV1 encoder, also known as the "Production" AV1 encoder (while ',(0,n.jsx)(t.a,{href:"/docs/encoders/aomenc",children:"aomenc"}),' is the "reference" AV1 encoder), & refers to SVT-AV1 as such. SVT-AV1 is known for its parallelization, high coding efficiency, & active development. SVT-AV1 scales across multiple CPU cores much more effectively than aomenc or ',(0,n.jsx)(t.a,{href:"/docs/encoders/rav1e",children:"rav1e"}),", so the use of tools like ",(0,n.jsx)(t.a,{href:"/docs/utilities/av1an",children:"Av1an"})," is less helpful albeit still helpful for scene detection."]}),"\n",(0,n.jsx)(t.h2,{id:"ffmpeg",children:"FFmpeg"}),"\n",(0,n.jsxs)(t.p,{children:["SVT-AV1 is available in FFmpeg via ",(0,n.jsx)(t.code,{children:"libsvtav1"}),", to check if you have it, run ",(0,n.jsx)(t.code,{children:"ffmpeg -h encoder=libsvtav1"}),". You can input non-FFmpeg standard SVT-AV1 parameters via ",(0,n.jsx)(t.code,{children:"-svtav1-params"}),"."]}),"\n",(0,n.jsx)(t.h2,{id:"supported-color-space",children:"Supported Color Space"}),"\n",(0,n.jsx)(t.p,{children:"SVT-AV1 supports the following color spaces:"}),"\n",(0,n.jsxs)(t.table,{children:[(0,n.jsx)(t.thead,{children:(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.th,{children:"Format"}),(0,n.jsx)(t.th,{style:{textAlign:"center"},children:"Chroma Subsampling"}),(0,n.jsx)(t.th,{children:"Supported Bit Depth(s)"})]})}),(0,n.jsxs)(t.tbody,{children:[(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:"YUV420P"}),(0,n.jsx)(t.td,{style:{textAlign:"center"},children:"4:2:0"}),(0,n.jsx)(t.td,{children:"8-bit"})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:"YUV420P10LE"}),(0,n.jsx)(t.td,{style:{textAlign:"center"},children:"4:2:0"}),(0,n.jsx)(t.td,{children:"10-bit"})]})]})]}),"\n",(0,n.jsx)(t.h2,{id:"installation",children:"Installation"}),"\n",(0,n.jsxs)(r.A,{children:[(0,n.jsxs)(o.A,{value:"unixlike",label:"Linux & macOS",children:[(0,n.jsx)(t.p,{children:(0,n.jsxs)(t.em,{children:["A precompiled AVX2-optimized binary of SVT-AV1-PSY can be installed for x86_64 Linux via ",(0,n.jsx)(t.a,{href:"/docs/utilities/rav1ator-cli",children:"rAV1ator CLI"}),". However, it is always recommended to build from source."]})}),(0,n.jsx)(t.p,{children:"To build SVT-AV1 from source, first clone the desired SVT-AV1 repository & enter the build directory."}),(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-bash",metastring:'title="Clone mainline SVT-AV1"',children:"git clone https://gitlab.com/AOMediaCodec/SVT-AV1/\ngit reset --hard bbcff785881b320f7e1b1f77a2f5ed025f8bfd75 # Reset to release 2.1.0\ncd SVT-AV1/Build/linux\n"})}),(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-bash",metastring:'title="Clone SVT-AV1-PSY"',children:"git clone https://github.com/gianni-rosato/svt-av1-psy\ncd SVT-AV1/Build/linux\n"})}),(0,n.jsxs)(t.p,{children:["In the directory, simply run ",(0,n.jsx)(t.code,{children:"./build.sh [flags]"})," to build. Be aware that building requires CMake version 3.16 or higher and either GCC or Clang. It is recommended to use clang when building SVT-AV1."]}),(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-bash",metastring:'title="Build release"',children:"./build.sh release\n"})}),(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-bash",metastring:'title="Statically build just the encoder with clang and enable link-time optimization"',children:"./build.sh jobs=8 all cc=clang cxx=clang++ no-dec enable-lto static native\n"})}),(0,n.jsxs)(t.p,{children:["The compiled binaries will be in the ",(0,n.jsx)(t.code,{children:"Bin/Release"})," directory, including SvtAv1EncApp. If you just want the encoder, adding the ",(0,n.jsx)(t.code,{children:"no-dec"})," flag will skip building SvtAv1DecApp and save on compilation time."]}),(0,n.jsxs)(t.p,{children:["If you'd like to build from the latest release (2.1.0 at the time of writing - last updated 16 Apr 2024) please run ",(0,n.jsx)(t.code,{children:"git reset --hard 2aeeb4f1a1d495b84bf5c21dbb60ae10e991fada"})," in the cloned directory. It is recommended that you do this, as new changes to git aren't always stable right away & a release will guarantee more stability."]}),(0,n.jsxs)(t.p,{children:["If you want extra performance, it is possible to build SVT-AV1 using PGO (Profile-guided Optimization). ",(0,n.jsxs)(t.strong,{children:["Be aware that this particular script infers that you have a .y4m file (or multiple) in ",(0,n.jsx)(t.code,{children:"/dev/shm"})," for transcoding"]}),". You can compile statically linked SVT-AV1 with PGO (and LTO, or link-time optimization) by following this script:"]}),(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-bash",metastring:'title="Bulding SVT-AV1 with profile guided optimization"',children:"git clone https://gitlab.com/AOMediaCodec/SVT-AV1/\ncd SVT-AV1/Build/linux\n./build.sh cc=gcc cxx=g++ enable-lto enable-pgo static native jobs=$(nproc) pgo-dir=/dev/shm pgo-videos=/dev/shm release\n"})}),(0,n.jsx)(t.p,{children:"If you wish to store videos elsewhere or provide custom parameters to the SvtAv1EncApp binary, try this script:"}),(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-bash",children:"git clone https://gitlab.com/AOMediaCodec/SVT-AV1/\ncd SVT-AV1/Build/linux\n./build.sh cc=gcc cxx=g++ enable-lto enable-pgo static native jobs=$(nproc) pgo-dir=/dev/shm pgo-compile-gen release\n../../Bin/Release/SvtAv1EncApp # Run this binary as many times as you'd like with arguments of your choice to collect data\n./build.sh cc=gcc cxx=g++ enable-lto enable-pgo static native jobs=$(nproc) pgo-dir=/dev/shm pgo-compile-use release\n"})})]}),(0,n.jsx)(o.A,{value:"windows",label:"Windows",children:(0,n.jsxs)(t.p,{children:["To be filled. If you believe you can help, see our ",(0,n.jsx)(t.a,{href:"/docs/contribution-guide",children:"Contribution Guide"}),"."]})})]}),"\n",(0,n.jsx)(t.h2,{id:"encoding",children:"Encoding"}),"\n",(0,n.jsx)(t.h3,{id:"strengths",children:"Strengths"}),"\n",(0,n.jsx)(t.p,{children:"SVT-AV1's greatest strength is its parallelization capability, where it outclasses other AV1 encoders by a significant margin. SVT-AV1's parallelization techniques do not involve tiling & don't harm video quality, & can comfortably utilize up to 16 cores given 1080p source video. This is while maintaining competitive coding efficiency to mainline aomenc. Perceptually, mainline SVT-AV1 is outperformed by well-tuned community forks of aomenc, but according to many the gap has begun to close with the introduction of SVT-AV1-PSY."}),"\n",(0,n.jsx)(t.h3,{id:"weaknesses",children:"Weaknesses"}),"\n",(0,n.jsxs)(t.p,{children:["SVT-AV1 is strongest on x86 CPUs, & while ARM NEON assembly is ",(0,n.jsx)(t.a,{href:"https://gitlab.com/AOMediaCodec/SVT-AV1/-/commit/ba13fac241f1b54954935f2cb200efc07f3de13a",children:"available"})," and has been slowly improving since its introduction in version 1.8.0, SVT-AV1 still underperforms on ARM. For this reason, it is not a good cross-architecture CPU benchmark. SVT-AV1's support for various AV1 features is also limited; it only supports up to 4:2:0 chroma subsampling with no support for 12-bit color, and it does not support scene change detection (there are no plans to implement this, either). The smallest possible video that SVT-AV1 can produce is 64x64."]}),"\n",(0,n.jsx)(t.h3,{id:"encoder-optimization",children:"Encoder Optimization"}),"\n",(0,n.jsxs)(t.p,{children:["Aside from build optimizations for speed, there is further tweaking to be done to the ",(0,n.jsx)(t.code,{children:"SvtAv1EncApp"})," binary parameters when encoding. The following applies to mainline SVT-AV1, but does not apply to SVT-AV1-PSY."]}),"\n",(0,n.jsxs)(t.ul,{children:["\n",(0,n.jsxs)(t.li,{children:[(0,n.jsx)(t.code,{children:"--film-grain"})," & ",(0,n.jsx)(t.code,{children:"--film-grain-denoise"})]}),"\n"]}),"\n",(0,n.jsxs)(t.p,{children:["Most live-action sources feature hard-to-compress digital noise that is easily smoothed out by AV1 compression. To add this grain back, or even denoise through the encoder and then add grain, it is possible to use the ",(0,n.jsx)(t.code,{children:"--film-grain"})," parameter to specify an amount of film grain to add to the encode (& ",(0,n.jsx)(t.code,{children:"--film-grain-denoise"})," to specify how to denoise the input video before encoding for potentially better appeal). Denoising a video always removes fine details, so sticking with just ",(0,n.jsx)(t.code,{children:"--film-grain"})," is recommended in most cases. According to ",(0,n.jsx)(t.a,{href:"https://gitlab.com/AOMediaCodec/SVT-AV1/-/blob/master/Docs/CommonQuestions.mdx#practical-advice-on-grain-synthesis",children:"SVT-AV1 documentation"}),", a level of 8 should be used for live-action content with a normal amount of grain while a level of 4 works well for hand-drawn animation or other smoother-looking sources that still stand to benefit from some grain synthesis."]}),"\n",(0,n.jsxs)(t.ul,{children:["\n",(0,n.jsx)(t.li,{children:(0,n.jsx)(t.code,{children:"--input-depth 10"})}),"\n"]}),"\n",(0,n.jsx)(t.p,{children:"10-bit output from AV1 encoding is always desirable for coding efficiency, even if your source is 8-bit. This option only produces a 10-bit AV1 bitstream if the source provided to the encoder is 10-bit."}),"\n",(0,n.jsxs)(t.ul,{children:["\n",(0,n.jsx)(t.li,{children:(0,n.jsx)(t.code,{children:"--tune 2"})}),"\n"]}),"\n",(0,n.jsxs)(t.p,{children:["There are three tunes in mainline SVT-AV1: Tune 1 is for ",(0,n.jsx)(t.a,{href:"/docs/metrics/PSNR",children:"PSNR"})," ",(0,n.jsx)(t.a,{href:"/docs/introduction/psychovisual",children:"RDO"}),", Tune 2 is for ",(0,n.jsx)(t.a,{href:"/docs/metrics/SSIM",children:"SSIM"})," RDO, & Tune 0 is a ",(0,n.jsx)(t.a,{href:"/docs/introduction/psychovisual",children:"psychovisual"})," tune labeled VQ. It has been common practice to lean away from the PSNR tune, as it is not designed for visual quality but rather to perform better on the PSNR metric which is widely considered to be inconsistent with our human perception of fidelity. Using the VQ tune is a safe bet for now, but many believe the newer SSIM tune provides better visual fidelity. Using SVT-AV1-PSY, the custom Subjective SSIM tune (Tune 3) provides the best of both Tune 2 & Tune 0 with additional improvements as well."]}),"\n",(0,n.jsxs)(t.ul,{children:["\n",(0,n.jsx)(t.li,{children:(0,n.jsx)(t.code,{children:"--enable-qm 1"})}),"\n"]}),"\n",(0,n.jsx)(t.p,{children:"Enables quantization matrices, disabled by default. Improves coding efficiency mainly by improving encoding speed while producing similar quality video."}),"\n",(0,n.jsxs)(t.ul,{children:["\n",(0,n.jsx)(t.li,{children:(0,n.jsx)(t.code,{children:"--qm-min 0"})}),"\n"]}),"\n",(0,n.jsx)(t.p,{children:"Sets the minimum flatness of quantization matrices to 0, down from the default 8. This is recommended unless you are dealing with extremely heavy grain. The maximum quantization matrix flatness is 15 by default, and should be left alone"}),"\n",(0,n.jsxs)(t.ul,{children:["\n",(0,n.jsx)(t.li,{children:(0,n.jsx)(t.code,{children:"--keyint [FPS*10]"})}),"\n"]}),"\n",(0,n.jsxs)(t.p,{children:["Similar to ",(0,n.jsx)(t.code,{children:"--kf-max-dist"})," in ",(0,n.jsx)(t.a,{href:"/docs/encoders/vpxenc",children:"vpxenc"}),", this tells the encoder when to place keyframes. Because SVT-AV1 doesn't have scene detection, this isn't the maximum distance between keyframes, but rather a fixed interval for placing keyframes. If using Av1an, set to -1 to disable keyframe insertion as Av1an handles that instead."]}),"\n",(0,n.jsxs)(t.ul,{children:["\n",(0,n.jsx)(t.li,{children:(0,n.jsx)(t.code,{children:"--irefresh-type 2"})}),"\n"]}),"\n",(0,n.jsxs)(t.p,{children:["Intra refresh is specified through this option, & lets the user decide between Closed GOP & Open GOP. GOP stands for Group of Pictures. Open GOP allows GOPs to ",(0,n.jsx)(t.a,{href:"https://ottverse.com/closed-gop-open-gop-idr/",children:"reference one another"}),", but support for this feature is currently incomplete. Therefore, it is recommended to use Closed GOP for the time being via ",(0,n.jsx)(t.code,{children:"--irefresh-type 2"})," until this is rectified."]}),"\n",(0,n.jsxs)(t.ul,{children:["\n",(0,n.jsx)(t.li,{children:(0,n.jsx)(t.code,{children:"--preset X"})}),"\n"]}),"\n",(0,n.jsx)(t.p,{children:"SVT-AV1 can be used in 14 different presets, labeled -1 through 13. Preset -1 is the slowest, but provides the best coding efficiency; it is also dubbed a research preset that is not recommended for regular use. Preset 13 is the fastest, and is also not recommended for regular use as it makes serious trade-offs to achieve unrealistically fast speeds at the cost of the encoder's coding efficiency. Using presets 2 through 8 is the best course of action for non-realtime applications if you desire reasonable speed, while 9 through 12 are useful for real-time encoding at 1080p or lower, even on low-end consumer computer hardware."}),"\n",(0,n.jsxs)(t.ul,{children:["\n",(0,n.jsx)(t.li,{children:(0,n.jsx)(t.code,{children:"--crf X"})}),"\n"]}),"\n",(0,n.jsx)(t.p,{children:"CRF is the best way to target quality for optimal visual fidelity. VBR & CBR lose efficiency due to their inherently limited rate control capabilities."}),"\n",(0,n.jsx)(t.h2,{id:"community-forks",children:"Community Forks"}),"\n",(0,n.jsxs)(t.p,{children:["Currently, there is only one noteworthy community fork of SVT-AV1 called ",(0,n.jsx)(t.a,{href:"/docs/encoders/SVT-AV1-PSY",children:"SVT-AV1-PSY"}),"."]}),"\n",(0,n.jsx)(t.h3,{id:"svt-av1-psy",children:"SVT-AV1-PSY"}),"\n",(0,n.jsxs)(t.p,{children:["SVT-AV1-PSY is a community fork of SVT-AV1 that strives to improve the perceptual fidelity and quality of life provided by the encoder. The goal of this project is to create the best encoding implementation for perceptual quality with AV1, and it aims to surpass previous community forks of ",(0,n.jsx)(t.a,{href:"/docs/encoders/aomenc#choosing-forks",children:"aomenc"})," in speed and visual quality."]}),"\n",(0,n.jsxs)(t.p,{children:["SVT-AV1-PSY has a number of feature additions to the mainline SVT-AV1 encoder as well as modified defaults that aim to make it easier to produce a more perceptually optimal bistream. For a full list of the encoder's feature additions and modifications to defaults, see the ",(0,n.jsx)(t.a,{href:"https://github.com/gianni-rosato/svt-av1-psy/blob/master/README.md#feature-additions",children:"project's README"}),"."]})]})}function p(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(u,{...e})}):u(e)}},9365:(e,t,i)=>{i.d(t,{A:()=>o});i(6540);var n=i(4164);const s={tabItem:"tabItem_Ymn6"};var r=i(4848);function o(e){let{children:t,hidden:i,className:o}=e;return(0,r.jsx)("div",{role:"tabpanel",className:(0,n.A)(s.tabItem,o),hidden:i,children:t})}},1470:(e,t,i)=>{i.d(t,{A:()=>j});var n=i(6540),s=i(4164),r=i(3104),o=i(6347),a=i(205),l=i(7485),c=i(1682),d=i(679);function h(e){return n.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,n.isValidElement)(e)&&function(e){const{props:t}=e;return!!t&&"object"==typeof t&&"value"in t}(e))return e;throw new Error(`Docusaurus error: Bad child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the component should be , and every should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function u(e){const{values:t,children:i}=e;return(0,n.useMemo)((()=>{const e=t??function(e){return h(e).map((e=>{let{props:{value:t,label:i,attributes:n,default:s}}=e;return{value:t,label:i,attributes:n,default:s}}))}(i);return function(e){const t=(0,c.XI)(e,((e,t)=>e.value===t.value));if(t.length>0)throw new Error(`Docusaurus error: Duplicate values "${t.map((e=>e.value)).join(", ")}" found in . Every value needs to be unique.`)}(e),e}),[t,i])}function p(e){let{value:t,tabValues:i}=e;return i.some((e=>e.value===t))}function m(e){let{queryString:t=!1,groupId:i}=e;const s=(0,o.W6)(),r=function(e){let{queryString:t=!1,groupId:i}=e;if("string"==typeof t)return t;if(!1===t)return null;if(!0===t&&!i)throw new Error('Docusaurus error: The component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return i??null}({queryString:t,groupId:i});return[(0,l.aZ)(r),(0,n.useCallback)((e=>{if(!r)return;const t=new URLSearchParams(s.location.search);t.set(r,e),s.replace({...s.location,search:t.toString()})}),[r,s])]}function f(e){const{defaultValue:t,queryString:i=!1,groupId:s}=e,r=u(e),[o,l]=(0,n.useState)((()=>function(e){let{defaultValue:t,tabValues:i}=e;if(0===i.length)throw new Error("Docusaurus error: the component requires at least one children component");if(t){if(!p({value:t,tabValues:i}))throw new Error(`Docusaurus error: The has a defaultValue "${t}" but none of its children has the corresponding value. Available values are: ${i.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return t}const n=i.find((e=>e.default))??i[0];if(!n)throw new Error("Unexpected error: 0 tabValues");return n.value}({defaultValue:t,tabValues:r}))),[c,h]=m({queryString:i,groupId:s}),[f,b]=function(e){let{groupId:t}=e;const i=function(e){return e?`docusaurus.tab.${e}`:null}(t),[s,r]=(0,d.Dv)(i);return[s,(0,n.useCallback)((e=>{i&&r.set(e)}),[i,r])]}({groupId:s}),g=(()=>{const e=c??f;return p({value:e,tabValues:r})?e:null})();(0,a.A)((()=>{g&&l(g)}),[g]);return{selectedValue:o,selectValue:(0,n.useCallback)((e=>{if(!p({value:e,tabValues:r}))throw new Error(`Can't select invalid tab value=${e}`);l(e),h(e),b(e)}),[h,b,r]),tabValues:r}}var b=i(2303);const g={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var x=i(4848);function v(e){let{className:t,block:i,selectedValue:n,selectValue:o,tabValues:a}=e;const l=[],{blockElementScrollPositionUntilNextRender:c}=(0,r.a_)(),d=e=>{const t=e.currentTarget,i=l.indexOf(t),s=a[i].value;s!==n&&(c(t),o(s))},h=e=>{let t=null;switch(e.key){case"Enter":d(e);break;case"ArrowRight":{const i=l.indexOf(e.currentTarget)+1;t=l[i]??l[0];break}case"ArrowLeft":{const i=l.indexOf(e.currentTarget)-1;t=l[i]??l[l.length-1];break}}t?.focus()};return(0,x.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,s.A)("tabs",{"tabs--block":i},t),children:a.map((e=>{let{value:t,label:i,attributes:r}=e;return(0,x.jsx)("li",{role:"tab",tabIndex:n===t?0:-1,"aria-selected":n===t,ref:e=>l.push(e),onKeyDown:h,onClick:d,...r,className:(0,s.A)("tabs__item",g.tabItem,r?.className,{"tabs__item--active":n===t}),children:i??t},t)}))})}function V(e){let{lazy:t,children:i,selectedValue:r}=e;const o=(Array.isArray(i)?i:[i]).filter(Boolean);if(t){const e=o.find((e=>e.props.value===r));return e?(0,n.cloneElement)(e,{className:(0,s.A)("margin-top--md",e.props.className)}):null}return(0,x.jsx)("div",{className:"margin-top--md",children:o.map(((e,t)=>(0,n.cloneElement)(e,{key:t,hidden:e.props.value!==r})))})}function y(e){const t=f(e);return(0,x.jsxs)("div",{className:(0,s.A)("tabs-container",g.tabList),children:[(0,x.jsx)(v,{...t,...e}),(0,x.jsx)(V,{...t,...e})]})}function j(e){const t=(0,b.A)();return(0,x.jsx)(y,{...e,children:h(e.children)},String(t))}},8453:(e,t,i)=>{i.d(t,{R:()=>o,x:()=>a});var n=i(6540);const s={},r=n.createContext(s);function o(e){const t=n.useContext(r);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:o(e.components),n.createElement(r.Provider,{value:t},e.children)}}}]);
\ No newline at end of file
diff --git a/assets/js/4c678320.27764c57.js b/assets/js/4c678320.27764c57.js
deleted file mode 100644
index 8a90cc44f..000000000
--- a/assets/js/4c678320.27764c57.js
+++ /dev/null
@@ -1 +0,0 @@
-"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[9664],{2051:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>p,contentTitle:()=>s,default:()=>l,frontMatter:()=>r,metadata:()=>c,toc:()=>d});var o=t(4848),a=t(8453);const r={title:"Markdown page example"},s="Markdown page example",c={type:"mdx",permalink:"/markdown-page",source:"@site/src/pages/markdown-page.mdx",title:"Markdown page example",description:"You don't need React to write simple standalone pages.",frontMatter:{title:"Markdown page example"},unlisted:!1},p={},d=[];function i(e){const n={h1:"h1",header:"header",p:"p",...(0,a.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n.header,{children:(0,o.jsx)(n.h1,{id:"markdown-page-example",children:"Markdown page example"})}),"\n",(0,o.jsx)(n.p,{children:"You don't need React to write simple standalone pages."})]})}function l(e={}){const{wrapper:n}={...(0,a.R)(),...e.components};return n?(0,o.jsx)(n,{...e,children:(0,o.jsx)(i,{...e})}):i(e)}},8453:(e,n,t)=>{t.d(n,{R:()=>s,x:()=>c});var o=t(6540);const a={},r=o.createContext(a);function s(e){const n=o.useContext(r);return o.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:s(e.components),o.createElement(r.Provider,{value:n},e.children)}}}]);
\ No newline at end of file
diff --git a/assets/js/4c678320.9f702fca.js b/assets/js/4c678320.9f702fca.js
new file mode 100644
index 000000000..7754b1f2e
--- /dev/null
+++ b/assets/js/4c678320.9f702fca.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[9664],{4506:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>p,contentTitle:()=>c,default:()=>l,frontMatter:()=>s,metadata:()=>o,toc:()=>d});const o=JSON.parse('{"type":"mdx","permalink":"/markdown-page","source":"@site/src/pages/markdown-page.mdx","title":"Markdown page example","description":"You don\'t need React to write simple standalone pages.","frontMatter":{"title":"Markdown page example"},"unlisted":false}');var a=t(4848),r=t(8453);const s={title:"Markdown page example"},c="Markdown page example",p={},d=[];function i(e){const n={h1:"h1",header:"header",p:"p",...(0,r.R)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.header,{children:(0,a.jsx)(n.h1,{id:"markdown-page-example",children:"Markdown page example"})}),"\n",(0,a.jsx)(n.p,{children:"You don't need React to write simple standalone pages."})]})}function l(e={}){const{wrapper:n}={...(0,r.R)(),...e.components};return n?(0,a.jsx)(n,{...e,children:(0,a.jsx)(i,{...e})}):i(e)}},8453:(e,n,t)=>{t.d(n,{R:()=>s,x:()=>c});var o=t(6540);const a={},r=o.createContext(a);function s(e){const n=o.useContext(r);return o.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:s(e.components),o.createElement(r.Provider,{value:n},e.children)}}}]);
\ No newline at end of file
diff --git a/assets/js/4d877b09.678d5b0a.js b/assets/js/4d877b09.678d5b0a.js
deleted file mode 100644
index 6bce6a80c..000000000
--- a/assets/js/4d877b09.678d5b0a.js
+++ /dev/null
@@ -1 +0,0 @@
-"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[2150],{8493:(e,i,n)=>{n.r(i),n.d(i,{assets:()=>c,contentTitle:()=>r,default:()=>h,frontMatter:()=>s,metadata:()=>a,toc:()=>d});var t=n(4848),o=n(8453);const s={title:"QSV",sidebar_position:2},r="QSV",a={id:"encoders_hw/qsv",title:"QSV",description:"The content in this entry may not be entirely accurate, & is pending further review to assess the quality of the information.",source:"@site/docs/encoders_hw/qsv.mdx",sourceDirName:"encoders_hw",slug:"/encoders_hw/qsv",permalink:"/docs/encoders_hw/qsv",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/encoders_hw/qsv.mdx",tags:[],version:"current",sidebarPosition:2,frontMatter:{title:"QSV",sidebar_position:2},sidebar:"tutorialSidebar",previous:{title:"NVENC",permalink:"/docs/encoders_hw/nvenc"},next:{title:"AMF",permalink:"/docs/encoders_hw/amf"}},c={},d=[];function l(e){const i={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,o.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.header,{children:(0,t.jsx)(i.h1,{id:"qsv",children:"QSV"})}),"\n",(0,t.jsx)(i.admonition,{title:"Pending Review",type:"caution",children:(0,t.jsx)(i.p,{children:"The content in this entry may not be entirely accurate, & is pending further review to assess the quality of the information."})}),"\n",(0,t.jsxs)(i.p,{children:["QSV (QuickSync Video) is Intel's hardware video encoding/decoding platform integrated into many of their modern CPUs with integrated graphics processors (iGPUs) & their Arc graphics cards. It allows applications to offload video encoding, decoding, and processing tasks to the dedicated media engines on Intel's dedicated multimedia hardware, often providing significant performance gains compared to CPU-based software encoding. QSV competes with similar frameworks like Nvidia's ",(0,t.jsx)(i.a,{href:"/docs/encoders_hw/nvenc",children:"NVENC"})," & AMD's ",(0,t.jsx)(i.a,{href:"/docs/encoders_hw/amf",children:"AMF"})," (Since the transition to Apple Silicon, QSV on Intel Macs competes with Apple's ",(0,t.jsx)(i.a,{href:"/docs/encoders_hw/videotoolbox",children:"VideoToolBox"})," on macOS devices)."]}),"\n",(0,t.jsx)(i.p,{children:"The key purpose of QSV is to accelerate video encoding, decoding, and processing workloads by leveraging specialized fixed-function hardware present in Intel's graphics processors. This dedicated hardware is distinct from the general-purpose compute units, and is designed specifically for multimedia tasks. QSV aims to deliver high encoding/decoding performance while operating efficiently."}),"\n",(0,t.jsxs)(i.p,{children:["QSV supports a wide range of video codecs including ",(0,t.jsx)(i.a,{href:"/docs/video/AVC",children:"H.264"})," , ",(0,t.jsx)(i.a,{href:"/docs/video/HEVC",children:"H.265"}),", ",(0,t.jsx)(i.a,{href:"/docs/video/VP9",children:"VP9"}),", and more recently ",(0,t.jsx)(i.a,{href:"/docs/video/AV1",children:"AV1"})," on their latest discrete & integrated GPUs. A major advantage of QSV is that it is ubiquitous on most modern Intel CPUs with integrated graphics, making hardware-accelerated video encoding accessible across a wide range of systems. Applications can easily leverage QSV acceleration through APIs like Intel Media SDK, VA-API, or via integration with popular multimedia frameworks like ",(0,t.jsx)(i.a,{href:"/docs/utilities/ffmpeg",children:"FFmpeg"}),", GStreamer, & others."]}),"\n",(0,t.jsx)(i.p,{children:"Hardware-accelerated video encoding with QSV usually significantly improves encoding performance at low compression efficiency compared to software-based encoding solutions. It usually allows for higher-quality output at lower bitrates when encoding much faster than real time, such as at 60-200 fps. This is particularly beneficial for applications that require real-time encoding, such as live streaming, video conferencing, and game recording."}),"\n",(0,t.jsx)(i.p,{children:"While QSV is not designed for highly efficient offline file encoding, where quality is prioritized over speed. It is worth noting that QSV is almost always better than AMF from AMD & competitive with NVENC from Nvidia in terms of compression efficiency."})]})}function h(e={}){const{wrapper:i}={...(0,o.R)(),...e.components};return i?(0,t.jsx)(i,{...e,children:(0,t.jsx)(l,{...e})}):l(e)}},8453:(e,i,n)=>{n.d(i,{R:()=>r,x:()=>a});var t=n(6540);const o={},s=t.createContext(o);function r(e){const i=t.useContext(s);return t.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function a(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:r(e.components),t.createElement(s.Provider,{value:i},e.children)}}}]);
\ No newline at end of file
diff --git a/assets/js/4d877b09.a91cf442.js b/assets/js/4d877b09.a91cf442.js
new file mode 100644
index 000000000..8f76e02b8
--- /dev/null
+++ b/assets/js/4d877b09.a91cf442.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[2150],{7905:(e,i,n)=>{n.r(i),n.d(i,{assets:()=>c,contentTitle:()=>a,default:()=>h,frontMatter:()=>r,metadata:()=>t,toc:()=>d});const t=JSON.parse('{"id":"encoders_hw/qsv","title":"QSV","description":"The content in this entry may not be entirely accurate, & is pending further review to assess the quality of the information.","source":"@site/docs/encoders_hw/qsv.mdx","sourceDirName":"encoders_hw","slug":"/encoders_hw/qsv","permalink":"/docs/encoders_hw/qsv","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/encoders_hw/qsv.mdx","tags":[],"version":"current","sidebarPosition":2,"frontMatter":{"title":"QSV","sidebar_position":2},"sidebar":"tutorialSidebar","previous":{"title":"NVENC","permalink":"/docs/encoders_hw/nvenc"},"next":{"title":"AMF","permalink":"/docs/encoders_hw/amf"}}');var o=n(4848),s=n(8453);const r={title:"QSV",sidebar_position:2},a="QSV",c={},d=[];function l(e){const i={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,s.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(i.header,{children:(0,o.jsx)(i.h1,{id:"qsv",children:"QSV"})}),"\n",(0,o.jsx)(i.admonition,{title:"Pending Review",type:"caution",children:(0,o.jsx)(i.p,{children:"The content in this entry may not be entirely accurate, & is pending further review to assess the quality of the information."})}),"\n",(0,o.jsxs)(i.p,{children:["QSV (QuickSync Video) is Intel's hardware video encoding/decoding platform integrated into many of their modern CPUs with integrated graphics processors (iGPUs) & their Arc graphics cards. It allows applications to offload video encoding, decoding, and processing tasks to the dedicated media engines on Intel's dedicated multimedia hardware, often providing significant performance gains compared to CPU-based software encoding. QSV competes with similar frameworks like Nvidia's ",(0,o.jsx)(i.a,{href:"/docs/encoders_hw/nvenc",children:"NVENC"})," & AMD's ",(0,o.jsx)(i.a,{href:"/docs/encoders_hw/amf",children:"AMF"})," (Since the transition to Apple Silicon, QSV on Intel Macs competes with Apple's ",(0,o.jsx)(i.a,{href:"/docs/encoders_hw/videotoolbox",children:"VideoToolBox"})," on macOS devices)."]}),"\n",(0,o.jsx)(i.p,{children:"The key purpose of QSV is to accelerate video encoding, decoding, and processing workloads by leveraging specialized fixed-function hardware present in Intel's graphics processors. This dedicated hardware is distinct from the general-purpose compute units, and is designed specifically for multimedia tasks. QSV aims to deliver high encoding/decoding performance while operating efficiently."}),"\n",(0,o.jsxs)(i.p,{children:["QSV supports a wide range of video codecs including ",(0,o.jsx)(i.a,{href:"/docs/video/AVC",children:"H.264"})," , ",(0,o.jsx)(i.a,{href:"/docs/video/HEVC",children:"H.265"}),", ",(0,o.jsx)(i.a,{href:"/docs/video/VP9",children:"VP9"}),", and more recently ",(0,o.jsx)(i.a,{href:"/docs/video/AV1",children:"AV1"})," on their latest discrete & integrated GPUs. A major advantage of QSV is that it is ubiquitous on most modern Intel CPUs with integrated graphics, making hardware-accelerated video encoding accessible across a wide range of systems. Applications can easily leverage QSV acceleration through APIs like Intel Media SDK, VA-API, or via integration with popular multimedia frameworks like ",(0,o.jsx)(i.a,{href:"/docs/utilities/ffmpeg",children:"FFmpeg"}),", GStreamer, & others."]}),"\n",(0,o.jsx)(i.p,{children:"Hardware-accelerated video encoding with QSV usually significantly improves encoding performance at low compression efficiency compared to software-based encoding solutions. It usually allows for higher-quality output at lower bitrates when encoding much faster than real time, such as at 60-200 fps. This is particularly beneficial for applications that require real-time encoding, such as live streaming, video conferencing, and game recording."}),"\n",(0,o.jsx)(i.p,{children:"While QSV is not designed for highly efficient offline file encoding, where quality is prioritized over speed. It is worth noting that QSV is almost always better than AMF from AMD & competitive with NVENC from Nvidia in terms of compression efficiency."})]})}function h(e={}){const{wrapper:i}={...(0,s.R)(),...e.components};return i?(0,o.jsx)(i,{...e,children:(0,o.jsx)(l,{...e})}):l(e)}},8453:(e,i,n)=>{n.d(i,{R:()=>r,x:()=>a});var t=n(6540);const o={},s=t.createContext(o);function r(e){const i=t.useContext(s);return t.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function a(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:r(e.components),t.createElement(s.Provider,{value:i},e.children)}}}]);
\ No newline at end of file
diff --git a/assets/js/522a92e3.e4040f88.js b/assets/js/522a92e3.e4040f88.js
new file mode 100644
index 000000000..b6389768f
--- /dev/null
+++ b/assets/js/522a92e3.e4040f88.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[5220],{3317:(e,n,i)=>{i.r(n),i.d(n,{assets:()=>c,contentTitle:()=>a,default:()=>h,frontMatter:()=>s,metadata:()=>o,toc:()=>d});const o=JSON.parse('{"id":"encoders_hw/nvenc","title":"NVENC","description":"The content in this entry may not be entirely accurate, & is pending further review to assess the quality of the information.","source":"@site/docs/encoders_hw/nvenc.mdx","sourceDirName":"encoders_hw","slug":"/encoders_hw/nvenc","permalink":"/docs/encoders_hw/nvenc","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/encoders_hw/nvenc.mdx","tags":[],"version":"current","sidebarPosition":1,"frontMatter":{"title":"NVENC","sidebar_position":1},"sidebar":"tutorialSidebar","previous":{"title":"uavs3e","permalink":"/docs/encoders/uavs3e"},"next":{"title":"QSV","permalink":"/docs/encoders_hw/qsv"}}');var t=i(4848),r=i(8453);const s={title:"NVENC",sidebar_position:1},a="NVENC",c={},d=[];function l(e){const n={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,r.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.header,{children:(0,t.jsx)(n.h1,{id:"nvenc",children:"NVENC"})}),"\n",(0,t.jsx)(n.admonition,{title:"Pending Review",type:"caution",children:(0,t.jsx)(n.p,{children:"The content in this entry may not be entirely accurate, & is pending further review to assess the quality of the information."})}),"\n",(0,t.jsxs)(n.p,{children:["NVENC for NVIDIA GPUs is a dedicated hardware video encoding engine integrated into NVIDIA's graphics processors. It allows applications to leverage dedicated multimedia encoding hardware to accelerate video encoding tasks, significantly improving performance when compared to CPU-based software encoding. It competes with similar frameworks like Intel's ",(0,t.jsx)(n.a,{href:"/docs/encoders_hw/qsv",children:"QSV"})," & AMD's ",(0,t.jsx)(n.a,{href:"/docs/encoders_hw/amf",children:"AMF"}),"."]}),"\n",(0,t.jsx)(n.p,{children:"The primary purpose of NVENC is to offload the computationally intensive video encoding workloads from the CPU to the dedicated multimedia hardware on the GPU, thereby freeing up CPU resources for other tasks. This is particularly beneficial in scenarios where fast video encoding is required, such as screen recording, streaming, & video conferencing."}),"\n",(0,t.jsxs)(n.p,{children:["NVENC supports a range of popular video codecs, including ",(0,t.jsx)(n.a,{href:"/docs/video/AVC",children:"H.264"})," , ",(0,t.jsx)(n.a,{href:"/docs/video/HEVC",children:"H.265"}),", ",(0,t.jsx)(n.a,{href:"/docs/video/VP9",children:"VP9"}),", and more recently ",(0,t.jsx)(n.a,{href:"/docs/video/AV1",children:"AV1"})," on their latest GPUs. It provides hardware-accelerated encoding capabilities for these codecs, typically achieving real-time or faster than real-time encoding performance, depending on resolution, bitrate, and hardware capability."]}),"\n",(0,t.jsx)(n.p,{children:"While NVENC excels in encoding speed, it generally sacrifices some compression efficiency compared to modern high-quality CPU-based software encoders at slower presets."}),"\n",(0,t.jsxs)(n.p,{children:["NVENC is designed to be easily integrated into various multimedia frameworks and applications. It is supported by popular tools like ",(0,t.jsx)(n.a,{href:"/docs/utilities/ffmpeg",children:"FFmpeg"}),", OBS Studio, and others, allowing developers to seamlessly leverage GPU-accelerated encoding without the need for low-level programming."]}),"\n",(0,t.jsx)(n.p,{children:"When compared to AMD's AMF and Intel's QSV, NVENC is known for its high encoding performance, low latency, and broad compatibility with NVIDIA GPUs across different platforms. It is particularly popular among game streamers, content creators, and video professionals who require fast encoding speeds for their workflows. In terms of video compression efficiency, NVENC & QSV trade blows while AMF is generally left behind."})]})}function h(e={}){const{wrapper:n}={...(0,r.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(l,{...e})}):l(e)}},8453:(e,n,i)=>{i.d(n,{R:()=>s,x:()=>a});var o=i(6540);const t={},r=o.createContext(t);function s(e){const n=o.useContext(r);return o.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:s(e.components),o.createElement(r.Provider,{value:n},e.children)}}}]);
\ No newline at end of file
diff --git a/assets/js/522a92e3.f4ebdf35.js b/assets/js/522a92e3.f4ebdf35.js
deleted file mode 100644
index 92178ae01..000000000
--- a/assets/js/522a92e3.f4ebdf35.js
+++ /dev/null
@@ -1 +0,0 @@
-"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[5220],{2191:(e,n,i)=>{i.r(n),i.d(n,{assets:()=>c,contentTitle:()=>s,default:()=>h,frontMatter:()=>r,metadata:()=>a,toc:()=>d});var o=i(4848),t=i(8453);const r={title:"NVENC",sidebar_position:1},s="NVENC",a={id:"encoders_hw/nvenc",title:"NVENC",description:"The content in this entry may not be entirely accurate, & is pending further review to assess the quality of the information.",source:"@site/docs/encoders_hw/nvenc.mdx",sourceDirName:"encoders_hw",slug:"/encoders_hw/nvenc",permalink:"/docs/encoders_hw/nvenc",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/encoders_hw/nvenc.mdx",tags:[],version:"current",sidebarPosition:1,frontMatter:{title:"NVENC",sidebar_position:1},sidebar:"tutorialSidebar",previous:{title:"uavs3e",permalink:"/docs/encoders/uavs3e"},next:{title:"QSV",permalink:"/docs/encoders_hw/qsv"}},c={},d=[];function l(e){const n={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,t.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n.header,{children:(0,o.jsx)(n.h1,{id:"nvenc",children:"NVENC"})}),"\n",(0,o.jsx)(n.admonition,{title:"Pending Review",type:"caution",children:(0,o.jsx)(n.p,{children:"The content in this entry may not be entirely accurate, & is pending further review to assess the quality of the information."})}),"\n",(0,o.jsxs)(n.p,{children:["NVENC for NVIDIA GPUs is a dedicated hardware video encoding engine integrated into NVIDIA's graphics processors. It allows applications to leverage dedicated multimedia encoding hardware to accelerate video encoding tasks, significantly improving performance when compared to CPU-based software encoding. It competes with similar frameworks like Intel's ",(0,o.jsx)(n.a,{href:"/docs/encoders_hw/qsv",children:"QSV"})," & AMD's ",(0,o.jsx)(n.a,{href:"/docs/encoders_hw/amf",children:"AMF"}),"."]}),"\n",(0,o.jsx)(n.p,{children:"The primary purpose of NVENC is to offload the computationally intensive video encoding workloads from the CPU to the dedicated multimedia hardware on the GPU, thereby freeing up CPU resources for other tasks. This is particularly beneficial in scenarios where fast video encoding is required, such as screen recording, streaming, & video conferencing."}),"\n",(0,o.jsxs)(n.p,{children:["NVENC supports a range of popular video codecs, including ",(0,o.jsx)(n.a,{href:"/docs/video/AVC",children:"H.264"})," , ",(0,o.jsx)(n.a,{href:"/docs/video/HEVC",children:"H.265"}),", ",(0,o.jsx)(n.a,{href:"/docs/video/VP9",children:"VP9"}),", and more recently ",(0,o.jsx)(n.a,{href:"/docs/video/AV1",children:"AV1"})," on their latest GPUs. It provides hardware-accelerated encoding capabilities for these codecs, typically achieving real-time or faster than real-time encoding performance, depending on resolution, bitrate, and hardware capability."]}),"\n",(0,o.jsx)(n.p,{children:"While NVENC excels in encoding speed, it generally sacrifices some compression efficiency compared to modern high-quality CPU-based software encoders at slower presets."}),"\n",(0,o.jsxs)(n.p,{children:["NVENC is designed to be easily integrated into various multimedia frameworks and applications. It is supported by popular tools like ",(0,o.jsx)(n.a,{href:"/docs/utilities/ffmpeg",children:"FFmpeg"}),", OBS Studio, and others, allowing developers to seamlessly leverage GPU-accelerated encoding without the need for low-level programming."]}),"\n",(0,o.jsx)(n.p,{children:"When compared to AMD's AMF and Intel's QSV, NVENC is known for its high encoding performance, low latency, and broad compatibility with NVIDIA GPUs across different platforms. It is particularly popular among game streamers, content creators, and video professionals who require fast encoding speeds for their workflows. In terms of video compression efficiency, NVENC & QSV trade blows while AMF is generally left behind."})]})}function h(e={}){const{wrapper:n}={...(0,t.R)(),...e.components};return n?(0,o.jsx)(n,{...e,children:(0,o.jsx)(l,{...e})}):l(e)}},8453:(e,n,i)=>{i.d(n,{R:()=>s,x:()=>a});var o=i(6540);const t={},r=o.createContext(t);function s(e){const n=o.useContext(r);return o.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:s(e.components),o.createElement(r.Provider,{value:n},e.children)}}}]);
\ No newline at end of file
diff --git a/assets/js/54a9c2bb.b8726434.js b/assets/js/54a9c2bb.b8726434.js
deleted file mode 100644
index d0e71ab4a..000000000
--- a/assets/js/54a9c2bb.b8726434.js
+++ /dev/null
@@ -1 +0,0 @@
-"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[561],{3633:(e,i,t)=>{t.r(i),t.d(i,{assets:()=>l,contentTitle:()=>o,default:()=>d,frontMatter:()=>r,metadata:()=>a,toc:()=>c});var n=t(4848),s=t(8453);const r={title:"YUView",sidebar_position:13},o="YUView",a={id:"utilities/YUView",title:"YUView",description:"YUView is a free and open source, cross-platform software developed by IENT (Institut f\xfcr Nachrichtentechnik) for working, playing, and analyzing YUV files.",source:"@site/docs/utilities/YUView.mdx",sourceDirName:"utilities",slug:"/utilities/YUView",permalink:"/docs/utilities/YUView",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/utilities/YUView.mdx",tags:[],version:"current",sidebarPosition:13,frontMatter:{title:"YUView",sidebar_position:13},sidebar:"tutorialSidebar",previous:{title:"MP4Box",permalink:"/docs/utilities/mp4box"},next:{title:"Discord",permalink:"/docs/utilities/Discord"}},l={},c=[{value:"Installation",id:"installation",level:2},{value:"Usage",id:"usage",level:2}];function h(e){const i={a:"a",h1:"h1",h2:"h2",header:"header",p:"p",...(0,s.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.header,{children:(0,n.jsx)(i.h1,{id:"yuview",children:"YUView"})}),"\n",(0,n.jsxs)("picture",{children:[(0,n.jsx)("source",{srcset:"/img/yuview.avif",type:"image/avif"}),(0,n.jsx)("img",{src:"/img/yuview.webp",alt:"YUView Window"})]}),"\n",(0,n.jsx)("br",{}),"\n",(0,n.jsx)("br",{}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.a,{href:"https://github.com/IENT/YUView",children:"YUView"})," is a free and open source, cross-platform software developed by ",(0,n.jsx)(i.a,{href:"https://github.com/IENT/",children:"IENT"})," (Institut f\xfcr Nachrichtentechnik) for working, playing, and analyzing YUV files.\nThough it supports more than YUV thanks to FFmpeg and other third party decoders while providing a lot of options for ",(0,n.jsx)(i.a,{href:"/docs/video/HEVC",children:"HEVC"})," internal visualizations such as slice index and transform depth."]}),"\n",(0,n.jsx)(i.p,{children:"The software is built with QT and written in C++."}),"\n",(0,n.jsx)(i.h2,{id:"installation",children:"Installation"}),"\n",(0,n.jsxs)(i.p,{children:["IENT provides the complete set of binaries for all major desktop operating systems on their GitHub ",(0,n.jsx)(i.a,{href:"https://github.com/IENT/YUView/releases/",children:"releases"}),". So pick and choose your OS there."]}),"\n",(0,n.jsxs)(i.p,{children:["For Linux, YUView is in the official repo on Ubuntu and the AUR (Arch User Repository) for Arch Linux. But they do provide an AppImage in their releases and a ",(0,n.jsx)(i.a,{href:"https://flathub.org/apps/de.rwth_aachen.ient.YUView",children:"Flatpak"}),"."]}),"\n",(0,n.jsxs)(i.p,{children:["For those who want to compile from source instead, they provided a tutorial ",(0,n.jsx)(i.a,{href:"https://github.com/IENT/YUView/wiki/Compile-YUView",children:"here"}),"."]}),"\n",(0,n.jsx)(i.h2,{id:"usage",children:"Usage"}),"\n",(0,n.jsx)(i.p,{children:'Open a file via the "File" > "Open File" tab on the top left or by pressing Ctrl + O, you may import multiple files. After that, you can start analyzing the file such as viewing motion vectors, isolating chroma to Cb for YCbCr, etc.'})]})}function d(e={}){const{wrapper:i}={...(0,s.R)(),...e.components};return i?(0,n.jsx)(i,{...e,children:(0,n.jsx)(h,{...e})}):h(e)}},8453:(e,i,t)=>{t.d(i,{R:()=>o,x:()=>a});var n=t(6540);const s={},r=n.createContext(s);function o(e){const i=n.useContext(r);return n.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function a(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:o(e.components),n.createElement(r.Provider,{value:i},e.children)}}}]);
\ No newline at end of file
diff --git a/assets/js/54a9c2bb.c7a9d911.js b/assets/js/54a9c2bb.c7a9d911.js
new file mode 100644
index 000000000..7a820d957
--- /dev/null
+++ b/assets/js/54a9c2bb.c7a9d911.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[561],{6280:(e,i,t)=>{t.r(i),t.d(i,{assets:()=>l,contentTitle:()=>a,default:()=>d,frontMatter:()=>o,metadata:()=>n,toc:()=>c});const n=JSON.parse('{"id":"utilities/YUView","title":"YUView","description":"YUView is a free and open source, cross-platform software developed by IENT (Institut f\xfcr Nachrichtentechnik) for working, playing, and analyzing YUV files.","source":"@site/docs/utilities/YUView.mdx","sourceDirName":"utilities","slug":"/utilities/YUView","permalink":"/docs/utilities/YUView","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/utilities/YUView.mdx","tags":[],"version":"current","sidebarPosition":13,"frontMatter":{"title":"YUView","sidebar_position":13},"sidebar":"tutorialSidebar","previous":{"title":"MP4Box","permalink":"/docs/utilities/mp4box"},"next":{"title":"Discord","permalink":"/docs/utilities/Discord"}}');var s=t(4848),r=t(8453);const o={title:"YUView",sidebar_position:13},a="YUView",l={},c=[{value:"Installation",id:"installation",level:2},{value:"Usage",id:"usage",level:2}];function h(e){const i={a:"a",h1:"h1",h2:"h2",header:"header",p:"p",...(0,r.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.header,{children:(0,s.jsx)(i.h1,{id:"yuview",children:"YUView"})}),"\n",(0,s.jsxs)("picture",{children:[(0,s.jsx)("source",{srcset:"/img/yuview.avif",type:"image/avif"}),(0,s.jsx)("img",{src:"/img/yuview.webp",alt:"YUView Window"})]}),"\n",(0,s.jsx)("br",{}),"\n",(0,s.jsx)("br",{}),"\n",(0,s.jsxs)(i.p,{children:[(0,s.jsx)(i.a,{href:"https://github.com/IENT/YUView",children:"YUView"})," is a free and open source, cross-platform software developed by ",(0,s.jsx)(i.a,{href:"https://github.com/IENT/",children:"IENT"})," (Institut f\xfcr Nachrichtentechnik) for working, playing, and analyzing YUV files.\nThough it supports more than YUV thanks to FFmpeg and other third party decoders while providing a lot of options for ",(0,s.jsx)(i.a,{href:"/docs/video/HEVC",children:"HEVC"})," internal visualizations such as slice index and transform depth."]}),"\n",(0,s.jsx)(i.p,{children:"The software is built with QT and written in C++."}),"\n",(0,s.jsx)(i.h2,{id:"installation",children:"Installation"}),"\n",(0,s.jsxs)(i.p,{children:["IENT provides the complete set of binaries for all major desktop operating systems on their GitHub ",(0,s.jsx)(i.a,{href:"https://github.com/IENT/YUView/releases/",children:"releases"}),". So pick and choose your OS there."]}),"\n",(0,s.jsxs)(i.p,{children:["For Linux, YUView is in the official repo on Ubuntu and the AUR (Arch User Repository) for Arch Linux. But they do provide an AppImage in their releases and a ",(0,s.jsx)(i.a,{href:"https://flathub.org/apps/de.rwth_aachen.ient.YUView",children:"Flatpak"}),"."]}),"\n",(0,s.jsxs)(i.p,{children:["For those who want to compile from source instead, they provided a tutorial ",(0,s.jsx)(i.a,{href:"https://github.com/IENT/YUView/wiki/Compile-YUView",children:"here"}),"."]}),"\n",(0,s.jsx)(i.h2,{id:"usage",children:"Usage"}),"\n",(0,s.jsx)(i.p,{children:'Open a file via the "File" > "Open File" tab on the top left or by pressing Ctrl + O, you may import multiple files. After that, you can start analyzing the file such as viewing motion vectors, isolating chroma to Cb for YCbCr, etc.'})]})}function d(e={}){const{wrapper:i}={...(0,r.R)(),...e.components};return i?(0,s.jsx)(i,{...e,children:(0,s.jsx)(h,{...e})}):h(e)}},8453:(e,i,t)=>{t.d(i,{R:()=>o,x:()=>a});var n=t(6540);const s={},r=n.createContext(s);function o(e){const i=n.useContext(r);return n.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function a(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:o(e.components),n.createElement(r.Provider,{value:i},e.children)}}}]);
\ No newline at end of file
diff --git a/assets/js/56786013.cc044280.js b/assets/js/56786013.cc044280.js
new file mode 100644
index 000000000..286c3fa9f
--- /dev/null
+++ b/assets/js/56786013.cc044280.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[8741],{1014:(e,i,n)=>{n.r(i),n.d(i,{assets:()=>c,contentTitle:()=>a,default:()=>h,frontMatter:()=>r,metadata:()=>s,toc:()=>l});const s=JSON.parse('{"id":"images/JPEG","title":"JPEG","description":"The content in this entry is incomplete & is in the process of being completed.","source":"@site/docs/images/JPEG.mdx","sourceDirName":"images","slug":"/images/JPEG","permalink":"/docs/images/JPEG","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/images/JPEG.mdx","tags":[],"version":"current","sidebarPosition":1,"frontMatter":{"title":"JPEG","sidebar_position":1},"sidebar":"tutorialSidebar","previous":{"title":"tar","permalink":"/docs/data/tar"},"next":{"title":"PNG","permalink":"/docs/images/PNG"}}');var t=n(4848),o=n(8453);const r={title:"JPEG",sidebar_position:1},a="JPEG",c={},l=[{value:"Performance Checklist",id:"performance-checklist",level:2},{value:"Compression",id:"compression",level:2},{value:"Color Space Conversion",id:"color-space-conversion",level:4},{value:"Image Tiling",id:"image-tiling",level:4},{value:"Discrete Cosine Transform (DCT)",id:"discrete-cosine-transform-dct",level:4},{value:"Quantization",id:"quantization",level:4},{value:"Zigzag Scanning",id:"zigzag-scanning",level:4},{value:"Run-Length Encoding",id:"run-length-encoding",level:4},{value:"Entropy Encoding",id:"entropy-encoding",level:4},{value:"Saving the File",id:"saving-the-file",level:4},{value:"Decoding",id:"decoding",level:4}];function d(e){const i={a:"a",admonition:"admonition",em:"em",h1:"h1",h2:"h2",h4:"h4",header:"header",p:"p",strong:"strong",...(0,o.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.header,{children:(0,t.jsx)(i.h1,{id:"jpeg",children:"JPEG"})}),"\n",(0,t.jsx)(i.admonition,{title:"Under Maintenance",type:"info",children:(0,t.jsx)(i.p,{children:"The content in this entry is incomplete & is in the process of being completed."})}),"\n",(0,t.jsx)(i.admonition,{title:"Pending Review",type:"caution",children:(0,t.jsx)(i.p,{children:"The content in this entry may not be entirely accurate, & is pending further review to assess the quality of the information."})}),"\n",(0,t.jsx)(i.p,{children:"JPEG (Joint Photographic Experts Group) compression is a widely used method for reducing the size of digital images while preserving visual quality. It's based on the principles of lossy compression, which means that some image data is discarded to achieve a smaller filesize."}),"\n",(0,t.jsx)(i.h2,{id:"performance-checklist",children:"Performance Checklist"}),"\n",(0,t.jsxs)(i.p,{children:["Lossless? ",(0,t.jsx)(i.em,{children:"No"})]}),"\n",(0,t.jsxs)(i.p,{children:["Lossy? ",(0,t.jsx)(i.em,{children:"Yes"})]}),"\n",(0,t.jsxs)(i.p,{children:["Supported Bit Depth:\n",(0,t.jsx)(i.em,{children:"8 BPC"})]}),"\n",(0,t.jsxs)(i.p,{children:["HDR/Wide Gamut? ",(0,t.jsx)(i.em,{children:"Kinda"})]}),"\n",(0,t.jsxs)(i.p,{children:["Animation? ",(0,t.jsx)(i.em,{children:"No"})]}),"\n",(0,t.jsxs)(i.p,{children:["Transparency? ",(0,t.jsx)(i.em,{children:"No"})]}),"\n",(0,t.jsxs)(i.p,{children:["Progressive Decode? ",(0,t.jsx)(i.em,{children:"Yes"})]}),"\n",(0,t.jsxs)(i.p,{children:["Royalty Free? ",(0,t.jsx)(i.em,{children:"Yes"})]}),"\n",(0,t.jsx)(i.h2,{id:"compression",children:"Compression"}),"\n",(0,t.jsx)(i.p,{children:"Learning how JPEG compresses images is immensely helpful for understanding how other compression methods work in other codecs. It is definitely worth reading to get a useful background in understanding concepts like entropy coding, the DCT, and color spaces other than RGB. Here's a step-by-step explanation of how JPEG compression works:"}),"\n",(0,t.jsx)(i.h4,{id:"color-space-conversion",children:"Color Space Conversion"}),"\n",(0,t.jsxs)(i.p,{children:["Most digital images are originally in the RGB (Red, Green, Blue) color space. The first step in JPEG compression is to convert the image to the YCbCr color space. Y represents the luminance (brightness), while Cb and Cr represent the chrominance (color information). The Cb & Cr components are subsampled to a quarter of the resolution of the original image, meaning the resulting color space is chroma subsampled with ",(0,t.jsx)(i.em,{children:"4:2:0"})," subsampling."]}),"\n",(0,t.jsx)(i.h4,{id:"image-tiling",children:"Image Tiling"}),"\n",(0,t.jsx)(i.p,{children:"The image is divided into smaller blocks or tiles, typically 8x8 pixels each. Each of these blocks will be processed separately."}),"\n",(0,t.jsx)(i.h4,{id:"discrete-cosine-transform-dct",children:"Discrete Cosine Transform (DCT)"}),"\n",(0,t.jsx)(i.p,{children:"For each 8x8 block, a mathematical transformation called the Discrete Cosine Transform is applied. This transformation converts the pixel values into a set of frequency components, taking spatial data and transforming it to the frequency domain. The DCT is applied to each color channel in the YCbCr color space. This algorithm is a particularly good choice for image (and music/speech) compression because it has high energy compaction relative to our understanding of images & their perceptual quality. High energy compaction means the DCT is able to represent a signal with a small number of significant coefficients, in this case mainly in the lower frequencies."}),"\n",(0,t.jsx)(i.h4,{id:"quantization",children:"Quantization"}),"\n",(0,t.jsx)(i.p,{children:'After the DCT, the frequencies are quantized in a table representing frequency coefficients & their corresponding frequencies. Less perceptually important details can be omitted to reduce filesize by discarding coefficients in the table that correspond to less visually salient frequencies. This is "lossy" compression, and is the key step in achieving a high compression ratio while still maintaining an image that looks reasonable. The quantization table used in this step can vary in the number of frequencies it attempts to retain, affecting the trade-off between compression & image quality.'}),"\n",(0,t.jsx)(i.h4,{id:"zigzag-scanning",children:"Zigzag Scanning"}),"\n",(0,t.jsx)(i.p,{children:"The quantized coefficients are then reordered using a zigzag pattern. This is done to prepare the data for the next step."}),"\n",(0,t.jsx)(i.h4,{id:"run-length-encoding",children:"Run-Length Encoding"}),"\n",(0,t.jsx)(i.p,{children:"The zigzag-ordered coefficients are run-length encoded. This means that sequences of zeroes are compressed into a shorter representation. For example, if there are many consecutive zeroes in the data, they can be represented as (0, 10) instead of listing ten individual zeroes."}),"\n",(0,t.jsx)(i.h4,{id:"entropy-encoding",children:"Entropy Encoding"}),"\n",(0,t.jsx)(i.p,{children:"The run-length encoded data is further compressed using entropy encoding. JPEG uses Huffman coding, which assigns shorter codes to more frequently occurring values in the table of DCT coefficients, reducing the overall file size."}),"\n",(0,t.jsx)(i.h4,{id:"saving-the-file",children:"Saving the File"}),"\n",(0,t.jsx)(i.p,{children:"The compressed luminance and chrominance data, along with information about color space conversion, quantization tables, and EXIF data, are saved in the JPEG file format."}),"\n",(0,t.jsx)(i.h4,{id:"decoding",children:"Decoding"}),"\n",(0,t.jsx)(i.p,{children:"When you open a JPEG image, the reverse process occurs. The file is decoded, and the DCT coefficients are dequantized, the inverse DCT is applied, and the image is converted back to the RGB color space to be displayed on a screen."}),"\n",(0,t.jsxs)(i.p,{children:["It's important to note that JPEG compression is ",(0,t.jsx)(i.em,{children:(0,t.jsx)(i.strong,{children:"lossy"})}),", meaning that some image quality is discarded in the pursuit of smaller file sizes. This makes it different than codecs designed for lossless compression like ",(0,t.jsx)(i.a,{href:"/docs/images/PNG",children:"PNG"}),", ",(0,t.jsx)(i.a,{href:"/docs/images/WebP",children:"WebP"}),"'s lossless mode, and ",(0,t.jsx)(i.a,{href:"/docs/images/JXL",children:"JPEG-XL"}),"'s lossless mode. The degree of compression and the quality of the compressed image can be adjusted through settings when saving a JPEG, allowing for a trade-off between file size & image fidelity."]}),"\n",(0,t.jsxs)(i.p,{children:["While JPEG is certainly not the most state of the art lossy image codec compared to its newer and (usually) better successors like ",(0,t.jsx)(i.a,{href:"/docs/images/JXL",children:"JPEG-XL"})," (an actual direct successor) & ",(0,t.jsx)(i.a,{href:"/docs/images/AVIF",children:"AVIF"}),", it enjoys near universal compatibility with (likely) most utilities you would work with in your everyday life that have anything to do with images."]})]})}function h(e={}){const{wrapper:i}={...(0,o.R)(),...e.components};return i?(0,t.jsx)(i,{...e,children:(0,t.jsx)(d,{...e})}):d(e)}},8453:(e,i,n)=>{n.d(i,{R:()=>r,x:()=>a});var s=n(6540);const t={},o=s.createContext(t);function r(e){const i=s.useContext(o);return s.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function a(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:r(e.components),s.createElement(o.Provider,{value:i},e.children)}}}]);
\ No newline at end of file
diff --git a/assets/js/56786013.f7d5bf56.js b/assets/js/56786013.f7d5bf56.js
deleted file mode 100644
index 53facc3e7..000000000
--- a/assets/js/56786013.f7d5bf56.js
+++ /dev/null
@@ -1 +0,0 @@
-"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[8741],{3588:(e,i,n)=>{n.r(i),n.d(i,{assets:()=>c,contentTitle:()=>r,default:()=>h,frontMatter:()=>o,metadata:()=>a,toc:()=>l});var s=n(4848),t=n(8453);const o={title:"JPEG",sidebar_position:1},r="JPEG",a={id:"images/JPEG",title:"JPEG",description:"The content in this entry is incomplete & is in the process of being completed.",source:"@site/docs/images/JPEG.mdx",sourceDirName:"images",slug:"/images/JPEG",permalink:"/docs/images/JPEG",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/images/JPEG.mdx",tags:[],version:"current",sidebarPosition:1,frontMatter:{title:"JPEG",sidebar_position:1},sidebar:"tutorialSidebar",previous:{title:"tar",permalink:"/docs/data/tar"},next:{title:"PNG",permalink:"/docs/images/PNG"}},c={},l=[{value:"Performance Checklist",id:"performance-checklist",level:2},{value:"Compression",id:"compression",level:2},{value:"Color Space Conversion",id:"color-space-conversion",level:4},{value:"Image Tiling",id:"image-tiling",level:4},{value:"Discrete Cosine Transform (DCT)",id:"discrete-cosine-transform-dct",level:4},{value:"Quantization",id:"quantization",level:4},{value:"Zigzag Scanning",id:"zigzag-scanning",level:4},{value:"Run-Length Encoding",id:"run-length-encoding",level:4},{value:"Entropy Encoding",id:"entropy-encoding",level:4},{value:"Saving the File",id:"saving-the-file",level:4},{value:"Decoding",id:"decoding",level:4}];function d(e){const i={a:"a",admonition:"admonition",em:"em",h1:"h1",h2:"h2",h4:"h4",header:"header",p:"p",strong:"strong",...(0,t.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.header,{children:(0,s.jsx)(i.h1,{id:"jpeg",children:"JPEG"})}),"\n",(0,s.jsx)(i.admonition,{title:"Under Maintenance",type:"info",children:(0,s.jsx)(i.p,{children:"The content in this entry is incomplete & is in the process of being completed."})}),"\n",(0,s.jsx)(i.admonition,{title:"Pending Review",type:"caution",children:(0,s.jsx)(i.p,{children:"The content in this entry may not be entirely accurate, & is pending further review to assess the quality of the information."})}),"\n",(0,s.jsx)(i.p,{children:"JPEG (Joint Photographic Experts Group) compression is a widely used method for reducing the size of digital images while preserving visual quality. It's based on the principles of lossy compression, which means that some image data is discarded to achieve a smaller filesize."}),"\n",(0,s.jsx)(i.h2,{id:"performance-checklist",children:"Performance Checklist"}),"\n",(0,s.jsxs)(i.p,{children:["Lossless? ",(0,s.jsx)(i.em,{children:"No"})]}),"\n",(0,s.jsxs)(i.p,{children:["Lossy? ",(0,s.jsx)(i.em,{children:"Yes"})]}),"\n",(0,s.jsxs)(i.p,{children:["Supported Bit Depth:\n",(0,s.jsx)(i.em,{children:"8 BPC"})]}),"\n",(0,s.jsxs)(i.p,{children:["HDR/Wide Gamut? ",(0,s.jsx)(i.em,{children:"Kinda"})]}),"\n",(0,s.jsxs)(i.p,{children:["Animation? ",(0,s.jsx)(i.em,{children:"No"})]}),"\n",(0,s.jsxs)(i.p,{children:["Transparency? ",(0,s.jsx)(i.em,{children:"No"})]}),"\n",(0,s.jsxs)(i.p,{children:["Progressive Decode? ",(0,s.jsx)(i.em,{children:"Yes"})]}),"\n",(0,s.jsxs)(i.p,{children:["Royalty Free? ",(0,s.jsx)(i.em,{children:"Yes"})]}),"\n",(0,s.jsx)(i.h2,{id:"compression",children:"Compression"}),"\n",(0,s.jsx)(i.p,{children:"Learning how JPEG compresses images is immensely helpful for understanding how other compression methods work in other codecs. It is definitely worth reading to get a useful background in understanding concepts like entropy coding, the DCT, and color spaces other than RGB. Here's a step-by-step explanation of how JPEG compression works:"}),"\n",(0,s.jsx)(i.h4,{id:"color-space-conversion",children:"Color Space Conversion"}),"\n",(0,s.jsxs)(i.p,{children:["Most digital images are originally in the RGB (Red, Green, Blue) color space. The first step in JPEG compression is to convert the image to the YCbCr color space. Y represents the luminance (brightness), while Cb and Cr represent the chrominance (color information). The Cb & Cr components are subsampled to a quarter of the resolution of the original image, meaning the resulting color space is chroma subsampled with ",(0,s.jsx)(i.em,{children:"4:2:0"})," subsampling."]}),"\n",(0,s.jsx)(i.h4,{id:"image-tiling",children:"Image Tiling"}),"\n",(0,s.jsx)(i.p,{children:"The image is divided into smaller blocks or tiles, typically 8x8 pixels each. Each of these blocks will be processed separately."}),"\n",(0,s.jsx)(i.h4,{id:"discrete-cosine-transform-dct",children:"Discrete Cosine Transform (DCT)"}),"\n",(0,s.jsx)(i.p,{children:"For each 8x8 block, a mathematical transformation called the Discrete Cosine Transform is applied. This transformation converts the pixel values into a set of frequency components, taking spatial data and transforming it to the frequency domain. The DCT is applied to each color channel in the YCbCr color space. This algorithm is a particularly good choice for image (and music/speech) compression because it has high energy compaction relative to our understanding of images & their perceptual quality. High energy compaction means the DCT is able to represent a signal with a small number of significant coefficients, in this case mainly in the lower frequencies."}),"\n",(0,s.jsx)(i.h4,{id:"quantization",children:"Quantization"}),"\n",(0,s.jsx)(i.p,{children:'After the DCT, the frequencies are quantized in a table representing frequency coefficients & their corresponding frequencies. Less perceptually important details can be omitted to reduce filesize by discarding coefficients in the table that correspond to less visually salient frequencies. This is "lossy" compression, and is the key step in achieving a high compression ratio while still maintaining an image that looks reasonable. The quantization table used in this step can vary in the number of frequencies it attempts to retain, affecting the trade-off between compression & image quality.'}),"\n",(0,s.jsx)(i.h4,{id:"zigzag-scanning",children:"Zigzag Scanning"}),"\n",(0,s.jsx)(i.p,{children:"The quantized coefficients are then reordered using a zigzag pattern. This is done to prepare the data for the next step."}),"\n",(0,s.jsx)(i.h4,{id:"run-length-encoding",children:"Run-Length Encoding"}),"\n",(0,s.jsx)(i.p,{children:"The zigzag-ordered coefficients are run-length encoded. This means that sequences of zeroes are compressed into a shorter representation. For example, if there are many consecutive zeroes in the data, they can be represented as (0, 10) instead of listing ten individual zeroes."}),"\n",(0,s.jsx)(i.h4,{id:"entropy-encoding",children:"Entropy Encoding"}),"\n",(0,s.jsx)(i.p,{children:"The run-length encoded data is further compressed using entropy encoding. JPEG uses Huffman coding, which assigns shorter codes to more frequently occurring values in the table of DCT coefficients, reducing the overall file size."}),"\n",(0,s.jsx)(i.h4,{id:"saving-the-file",children:"Saving the File"}),"\n",(0,s.jsx)(i.p,{children:"The compressed luminance and chrominance data, along with information about color space conversion, quantization tables, and EXIF data, are saved in the JPEG file format."}),"\n",(0,s.jsx)(i.h4,{id:"decoding",children:"Decoding"}),"\n",(0,s.jsx)(i.p,{children:"When you open a JPEG image, the reverse process occurs. The file is decoded, and the DCT coefficients are dequantized, the inverse DCT is applied, and the image is converted back to the RGB color space to be displayed on a screen."}),"\n",(0,s.jsxs)(i.p,{children:["It's important to note that JPEG compression is ",(0,s.jsx)(i.em,{children:(0,s.jsx)(i.strong,{children:"lossy"})}),", meaning that some image quality is discarded in the pursuit of smaller file sizes. This makes it different than codecs designed for lossless compression like ",(0,s.jsx)(i.a,{href:"/docs/images/PNG",children:"PNG"}),", ",(0,s.jsx)(i.a,{href:"/docs/images/WebP",children:"WebP"}),"'s lossless mode, and ",(0,s.jsx)(i.a,{href:"/docs/images/JXL",children:"JPEG-XL"}),"'s lossless mode. The degree of compression and the quality of the compressed image can be adjusted through settings when saving a JPEG, allowing for a trade-off between file size & image fidelity."]}),"\n",(0,s.jsxs)(i.p,{children:["While JPEG is certainly not the most state of the art lossy image codec compared to its newer and (usually) better successors like ",(0,s.jsx)(i.a,{href:"/docs/images/JXL",children:"JPEG-XL"})," (an actual direct successor) & ",(0,s.jsx)(i.a,{href:"/docs/images/AVIF",children:"AVIF"}),", it enjoys near universal compatibility with (likely) most utilities you would work with in your everyday life that have anything to do with images."]})]})}function h(e={}){const{wrapper:i}={...(0,t.R)(),...e.components};return i?(0,s.jsx)(i,{...e,children:(0,s.jsx)(d,{...e})}):d(e)}},8453:(e,i,n)=>{n.d(i,{R:()=>r,x:()=>a});var s=n(6540);const t={},o=s.createContext(t);function r(e){const i=s.useContext(o);return s.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function a(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:r(e.components),s.createElement(o.Provider,{value:i},e.children)}}}]);
\ No newline at end of file
diff --git a/assets/js/59e6fde5.7808e7d7.js b/assets/js/59e6fde5.7808e7d7.js
deleted file mode 100644
index 011d1b14e..000000000
--- a/assets/js/59e6fde5.7808e7d7.js
+++ /dev/null
@@ -1 +0,0 @@
-"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[9724],{357:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>u,contentTitle:()=>a,default:()=>c,frontMatter:()=>r,metadata:()=>s,toc:()=>m});var o=i(4848),n=i(8453);const r={title:"AV1 for Dummies",description:"AV1 for Dummies is a comprehensive, legible guide on how to get started with AV1 at any experience level. Whether you're on Windows using your first video encoding program, or a seasoned Linux user looking to optimize your encoding pipeline, this guide has you covered.",slug:"av1-for-dummies",authors:[{name:"Gianni Rosato",title:"Maintainer",url:"https://github.com/gianni-rosato",image_url:"https://avatars.githubusercontent.com/u/35711760?v=4"},{name:"Simulping",title:"Maintainer / Encoder",url:"https://github.com/Simulping",image_url:"https://avatars.githubusercontent.com/u/12994794?v=4"}],tags:["video","compression"],image:"/img/av1_for_dummies_guide.jpg",hide_table_of_contents:!1},a=void 0,s={permalink:"/blog/av1-for-dummies",source:"@site/blog/2024-06-24-av1-for-dummies-2.mdx",title:"AV1 for Dummies",description:"AV1 for Dummies is a comprehensive, legible guide on how to get started with AV1 at any experience level. Whether you're on Windows using your first video encoding program, or a seasoned Linux user looking to optimize your encoding pipeline, this guide has you covered.",date:"2024-06-24T00:00:00.000Z",tags:[{inline:!0,label:"video",permalink:"/blog/tags/video"},{inline:!0,label:"compression",permalink:"/blog/tags/compression"}],readingTime:16.645,hasTruncateMarker:!0,authors:[{name:"Gianni Rosato",title:"Maintainer",url:"https://github.com/gianni-rosato",image_url:"https://avatars.githubusercontent.com/u/35711760?v=4",imageURL:"https://avatars.githubusercontent.com/u/35711760?v=4",key:null,page:null},{name:"Simulping",title:"Maintainer / Encoder",url:"https://github.com/Simulping",image_url:"https://avatars.githubusercontent.com/u/12994794?v=4",imageURL:"https://avatars.githubusercontent.com/u/12994794?v=4",key:null,page:null}],frontMatter:{title:"AV1 for Dummies",description:"AV1 for Dummies is a comprehensive, legible guide on how to get started with AV1 at any experience level. Whether you're on Windows using your first video encoding program, or a seasoned Linux user looking to optimize your encoding pipeline, this guide has you covered.",slug:"av1-for-dummies",authors:[{name:"Gianni Rosato",title:"Maintainer",url:"https://github.com/gianni-rosato",image_url:"https://avatars.githubusercontent.com/u/35711760?v=4",imageURL:"https://avatars.githubusercontent.com/u/35711760?v=4"},{name:"Simulping",title:"Maintainer / Encoder",url:"https://github.com/Simulping",image_url:"https://avatars.githubusercontent.com/u/12994794?v=4",imageURL:"https://avatars.githubusercontent.com/u/12994794?v=4"}],tags:["video","compression"],image:"/img/av1_for_dummies_guide.jpg",hide_table_of_contents:!1},unlisted:!1,prevItem:{title:"Codec Wiki: One Year Later",permalink:"/blog/codec-wiki-one-year-later"},nextItem:{title:"Observing SVT-AV1 v2.1.0's improvements: A New Deep Dive",permalink:"/blog/svt-av1-second-deep-dive"}},u={authorsImageUrls:[void 0,void 0]},m=[];function g(e){const t={p:"p",...(0,n.R)(),...e.components};return(0,o.jsx)(t.p,{children:"AV1 for Dummies is a comprehensive, legible guide on how to get started with AV1 at any experience level. Whether you're on Windows using your first video encoding program, or a seasoned Linux user looking to optimize your encoding pipeline, this guide has you covered."})}function c(e={}){const{wrapper:t}={...(0,n.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(g,{...e})}):g(e)}},8453:(e,t,i)=>{i.d(t,{R:()=>a,x:()=>s});var o=i(6540);const n={},r=o.createContext(n);function a(e){const t=o.useContext(r);return o.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function s(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:a(e.components),o.createElement(r.Provider,{value:t},e.children)}}}]);
\ No newline at end of file
diff --git a/assets/js/59e6fde5.f0729976.js b/assets/js/59e6fde5.f0729976.js
new file mode 100644
index 000000000..0339dc669
--- /dev/null
+++ b/assets/js/59e6fde5.f0729976.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[9724],{357:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>u,contentTitle:()=>a,default:()=>c,frontMatter:()=>s,metadata:()=>o,toc:()=>m});var o=i(9543),n=i(4848),r=i(8453);const s={title:"AV1 for Dummies",description:"AV1 for Dummies is a comprehensive, legible guide on how to get started with AV1 at any experience level. Whether you're on Windows using your first video encoding program, or a seasoned Linux user looking to optimize your encoding pipeline, this guide has you covered.",slug:"av1-for-dummies",authors:[{name:"Gianni Rosato",title:"Maintainer",url:"https://github.com/gianni-rosato",image_url:"https://avatars.githubusercontent.com/u/35711760?v=4"},{name:"Simulping",title:"Maintainer / Encoder",url:"https://github.com/Simulping",image_url:"https://avatars.githubusercontent.com/u/12994794?v=4"}],tags:["video","compression"],image:"/img/av1_for_dummies_guide.jpg",hide_table_of_contents:!1},a=void 0,u={authorsImageUrls:[void 0,void 0]},m=[];function l(e){const t={p:"p",...(0,r.R)(),...e.components};return(0,n.jsx)(t.p,{children:"AV1 for Dummies is a comprehensive, legible guide on how to get started with AV1 at any experience level. Whether you're on Windows using your first video encoding program, or a seasoned Linux user looking to optimize your encoding pipeline, this guide has you covered."})}function c(e={}){const{wrapper:t}={...(0,r.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(l,{...e})}):l(e)}},8453:(e,t,i)=>{i.d(t,{R:()=>s,x:()=>a});var o=i(6540);const n={},r=o.createContext(n);function s(e){const t=o.useContext(r);return o.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:s(e.components),o.createElement(r.Provider,{value:t},e.children)}},9543:e=>{e.exports=JSON.parse('{"permalink":"/blog/av1-for-dummies","source":"@site/blog/2024-06-24-av1-for-dummies-2.mdx","title":"AV1 for Dummies","description":"AV1 for Dummies is a comprehensive, legible guide on how to get started with AV1 at any experience level. Whether you\'re on Windows using your first video encoding program, or a seasoned Linux user looking to optimize your encoding pipeline, this guide has you covered.","date":"2024-06-24T00:00:00.000Z","tags":[{"inline":true,"label":"video","permalink":"/blog/tags/video"},{"inline":true,"label":"compression","permalink":"/blog/tags/compression"}],"readingTime":16.645,"hasTruncateMarker":true,"authors":[{"name":"Gianni Rosato","title":"Maintainer","url":"https://github.com/gianni-rosato","image_url":"https://avatars.githubusercontent.com/u/35711760?v=4","imageURL":"https://avatars.githubusercontent.com/u/35711760?v=4","socials":{},"key":null,"page":null},{"name":"Simulping","title":"Maintainer / Encoder","url":"https://github.com/Simulping","image_url":"https://avatars.githubusercontent.com/u/12994794?v=4","imageURL":"https://avatars.githubusercontent.com/u/12994794?v=4","socials":{},"key":null,"page":null}],"frontMatter":{"title":"AV1 for Dummies","description":"AV1 for Dummies is a comprehensive, legible guide on how to get started with AV1 at any experience level. Whether you\'re on Windows using your first video encoding program, or a seasoned Linux user looking to optimize your encoding pipeline, this guide has you covered.","slug":"av1-for-dummies","authors":[{"name":"Gianni Rosato","title":"Maintainer","url":"https://github.com/gianni-rosato","image_url":"https://avatars.githubusercontent.com/u/35711760?v=4","imageURL":"https://avatars.githubusercontent.com/u/35711760?v=4"},{"name":"Simulping","title":"Maintainer / Encoder","url":"https://github.com/Simulping","image_url":"https://avatars.githubusercontent.com/u/12994794?v=4","imageURL":"https://avatars.githubusercontent.com/u/12994794?v=4"}],"tags":["video","compression"],"image":"/img/av1_for_dummies_guide.jpg","hide_table_of_contents":false},"unlisted":false,"prevItem":{"title":"Codec Wiki: One Year Later","permalink":"/blog/codec-wiki-one-year-later"},"nextItem":{"title":"Observing SVT-AV1 v2.1.0\'s improvements: A New Deep Dive","permalink":"/blog/svt-av1-second-deep-dive"}}')}}]);
\ No newline at end of file
diff --git a/assets/js/5b209502.05910955.js b/assets/js/5b209502.05910955.js
deleted file mode 100644
index 611d4920b..000000000
--- a/assets/js/5b209502.05910955.js
+++ /dev/null
@@ -1 +0,0 @@
-"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[4176],{4296:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>a,contentTitle:()=>c,default:()=>u,frontMatter:()=>r,metadata:()=>s,toc:()=>d});var n=i(4848),o=i(8453);const r={title:"Deinterlace",sidebar_position:5},c="Deinterlace",s={id:"filtering/deinterlace",title:"Deinterlace",description:"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!",source:"@site/docs/filtering/deinterlace.mdx",sourceDirName:"filtering",slug:"/filtering/deinterlace",permalink:"/docs/filtering/deinterlace",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/filtering/deinterlace.mdx",tags:[],version:"current",sidebarPosition:5,frontMatter:{title:"Deinterlace",sidebar_position:5},sidebar:"tutorialSidebar",previous:{title:"Inverse Telecine",permalink:"/docs/filtering/ivtc"},next:{title:"Decombing",permalink:"/docs/filtering/decombing"}},a={},d=[];function l(e){const t={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,o.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.header,{children:(0,n.jsx)(t.h1,{id:"deinterlace",children:"Deinterlace"})}),"\n",(0,n.jsx)(t.admonition,{title:"Help Wanted",type:"danger",children:(0,n.jsxs)(t.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,n.jsx)(t.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})})]})}function u(e={}){const{wrapper:t}={...(0,o.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(l,{...e})}):l(e)}},8453:(e,t,i)=>{i.d(t,{R:()=>c,x:()=>s});var n=i(6540);const o={},r=n.createContext(o);function c(e){const t=n.useContext(r);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function s(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:c(e.components),n.createElement(r.Provider,{value:t},e.children)}}}]);
\ No newline at end of file
diff --git a/assets/js/5b209502.143acbf3.js b/assets/js/5b209502.143acbf3.js
new file mode 100644
index 000000000..1d48d780b
--- /dev/null
+++ b/assets/js/5b209502.143acbf3.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[4176],{5116:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>a,contentTitle:()=>s,default:()=>u,frontMatter:()=>c,metadata:()=>i,toc:()=>d});const i=JSON.parse('{"id":"filtering/deinterlace","title":"Deinterlace","description":"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!","source":"@site/docs/filtering/deinterlace.mdx","sourceDirName":"filtering","slug":"/filtering/deinterlace","permalink":"/docs/filtering/deinterlace","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/filtering/deinterlace.mdx","tags":[],"version":"current","sidebarPosition":5,"frontMatter":{"title":"Deinterlace","sidebar_position":5},"sidebar":"tutorialSidebar","previous":{"title":"Inverse Telecine","permalink":"/docs/filtering/ivtc"},"next":{"title":"Decombing","permalink":"/docs/filtering/decombing"}}');var o=n(4848),r=n(8453);const c={title:"Deinterlace",sidebar_position:5},s="Deinterlace",a={},d=[];function l(e){const t={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,r.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(t.header,{children:(0,o.jsx)(t.h1,{id:"deinterlace",children:"Deinterlace"})}),"\n",(0,o.jsx)(t.admonition,{title:"Help Wanted",type:"danger",children:(0,o.jsxs)(t.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,o.jsx)(t.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})})]})}function u(e={}){const{wrapper:t}={...(0,r.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(l,{...e})}):l(e)}},8453:(e,t,n)=>{n.d(t,{R:()=>c,x:()=>s});var i=n(6540);const o={},r=i.createContext(o);function c(e){const t=i.useContext(r);return i.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function s(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:c(e.components),i.createElement(r.Provider,{value:t},e.children)}}}]);
\ No newline at end of file
diff --git a/assets/js/5d1a7e8b.69e46796.js b/assets/js/5d1a7e8b.69e46796.js
deleted file mode 100644
index e97ba5dcd..000000000
--- a/assets/js/5d1a7e8b.69e46796.js
+++ /dev/null
@@ -1 +0,0 @@
-"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[5936],{63:(e,i,s)=>{s.r(i),s.d(i,{assets:()=>d,contentTitle:()=>r,default:()=>p,frontMatter:()=>o,metadata:()=>a,toc:()=>l});var n=s(4848),t=s(8453);const o={title:"Video Players",sidebar_label:"\u25b6\ufe0f Video Players",sidebar_position:11},r="Video Players",a={id:"video-players",title:"Video Players",description:"Many different players exist for video, but here are a few recommended ones:",source:"@site/docs/video-players.mdx",sourceDirName:".",slug:"/video-players",permalink:"/docs/video-players",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/video-players.mdx",tags:[],version:"current",sidebarPosition:11,frontMatter:{title:"Video Players",sidebar_label:"\u25b6\ufe0f Video Players",sidebar_position:11},sidebar:"tutorialSidebar",previous:{title:"Butteraugli",permalink:"/docs/metrics/butteraugli"},next:{title:"\ud83d\uddc3\ufe0f Resources",permalink:"/docs/resources"}},d={},l=[{value:"MPV",id:"mpv",level:2},{value:"VLC",id:"vlc",level:2},{value:"MPC-HC",id:"mpc-hc",level:2}];function c(e){const i={a:"a",h1:"h1",h2:"h2",header:"header",p:"p",strong:"strong",...(0,t.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.header,{children:(0,n.jsx)(i.h1,{id:"video-players",children:"Video Players"})}),"\n",(0,n.jsx)(i.p,{children:"Many different players exist for video, but here are a few recommended ones:"}),"\n",(0,n.jsx)(i.h2,{id:"mpv",children:"MPV"}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.strong,{children:"MPV"})," is a open source lightweight media player. It is intended as a command-line application, making it's user interface extremely minimal, however, many frontends exist for mpv, giving a more complete GUI, such as Celluloid and IINA. It has wide codec and container support."]}),"\n",(0,n.jsx)(i.p,{children:"TODO: MPV keyboard shorcuts"}),"\n",(0,n.jsx)(i.h2,{id:"vlc",children:"VLC"}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.strong,{children:"VLC"})," is an open source media player and toolkit. It supports almost all video and audio codecs in common use."]}),"\n",(0,n.jsxs)(i.p,{children:["Download instructions for VLC on all relevant platforms can be found at ",(0,n.jsx)(i.a,{href:"https://www.videolan.org/vlc/#download",children:"VideoLAN's website"})]}),"\n",(0,n.jsx)(i.h2,{id:"mpc-hc",children:"MPC-HC"}),"\n",(0,n.jsxs)(i.p,{children:[(0,n.jsx)(i.strong,{children:"Media Player Classic - Home Cinema (MPC-HC)"})," is an open source media player designed exclusively for Windows 7, 8, 8.1, 10, 11 operating systems. Recognized for its simplicity and efficiency, MPC-HC provides users with a streamlined and user-friendly platform for playing a diverse range of audio and video file formats. Its lightweight design ensures smooth playback without taxing system resources. While the official development ceased in 2017, the community-driven MPC-HC on GitHub continues to provide updates and support."]}),"\n",(0,n.jsxs)(i.p,{children:["The latest un/stable builds of MPC-HC, maintained by the community, can be found on ",(0,n.jsx)(i.a,{href:"https://github.com/clsid2/mpc-hc/releases",children:"clsid2's MPC-HC repository"}),"."]})]})}function p(e={}){const{wrapper:i}={...(0,t.R)(),...e.components};return i?(0,n.jsx)(i,{...e,children:(0,n.jsx)(c,{...e})}):c(e)}},8453:(e,i,s)=>{s.d(i,{R:()=>r,x:()=>a});var n=s(6540);const t={},o=n.createContext(t);function r(e){const i=n.useContext(o);return n.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function a(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:r(e.components),n.createElement(o.Provider,{value:i},e.children)}}}]);
\ No newline at end of file
diff --git a/assets/js/5d1a7e8b.761e5644.js b/assets/js/5d1a7e8b.761e5644.js
new file mode 100644
index 000000000..0329e7426
--- /dev/null
+++ b/assets/js/5d1a7e8b.761e5644.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[5936],{9300:(e,i,s)=>{s.r(i),s.d(i,{assets:()=>d,contentTitle:()=>a,default:()=>p,frontMatter:()=>r,metadata:()=>n,toc:()=>l});const n=JSON.parse('{"id":"video-players","title":"Video Players","description":"Many different players exist for video, but here are a few recommended ones:","source":"@site/docs/video-players.mdx","sourceDirName":".","slug":"/video-players","permalink":"/docs/video-players","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/video-players.mdx","tags":[],"version":"current","sidebarPosition":11,"frontMatter":{"title":"Video Players","sidebar_label":"\u25b6\ufe0f Video Players","sidebar_position":11},"sidebar":"tutorialSidebar","previous":{"title":"Butteraugli","permalink":"/docs/metrics/butteraugli"},"next":{"title":"\ud83d\uddc3\ufe0f Resources","permalink":"/docs/resources"}}');var t=s(4848),o=s(8453);const r={title:"Video Players",sidebar_label:"\u25b6\ufe0f Video Players",sidebar_position:11},a="Video Players",d={},l=[{value:"MPV",id:"mpv",level:2},{value:"VLC",id:"vlc",level:2},{value:"MPC-HC",id:"mpc-hc",level:2}];function c(e){const i={a:"a",h1:"h1",h2:"h2",header:"header",p:"p",strong:"strong",...(0,o.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.header,{children:(0,t.jsx)(i.h1,{id:"video-players",children:"Video Players"})}),"\n",(0,t.jsx)(i.p,{children:"Many different players exist for video, but here are a few recommended ones:"}),"\n",(0,t.jsx)(i.h2,{id:"mpv",children:"MPV"}),"\n",(0,t.jsxs)(i.p,{children:[(0,t.jsx)(i.strong,{children:"MPV"})," is a open source lightweight media player. It is intended as a command-line application, making it's user interface extremely minimal, however, many frontends exist for mpv, giving a more complete GUI, such as Celluloid and IINA. It has wide codec and container support."]}),"\n",(0,t.jsx)(i.p,{children:"TODO: MPV keyboard shorcuts"}),"\n",(0,t.jsx)(i.h2,{id:"vlc",children:"VLC"}),"\n",(0,t.jsxs)(i.p,{children:[(0,t.jsx)(i.strong,{children:"VLC"})," is an open source media player and toolkit. It supports almost all video and audio codecs in common use."]}),"\n",(0,t.jsxs)(i.p,{children:["Download instructions for VLC on all relevant platforms can be found at ",(0,t.jsx)(i.a,{href:"https://www.videolan.org/vlc/#download",children:"VideoLAN's website"})]}),"\n",(0,t.jsx)(i.h2,{id:"mpc-hc",children:"MPC-HC"}),"\n",(0,t.jsxs)(i.p,{children:[(0,t.jsx)(i.strong,{children:"Media Player Classic - Home Cinema (MPC-HC)"})," is an open source media player designed exclusively for Windows 7, 8, 8.1, 10, 11 operating systems. Recognized for its simplicity and efficiency, MPC-HC provides users with a streamlined and user-friendly platform for playing a diverse range of audio and video file formats. Its lightweight design ensures smooth playback without taxing system resources. While the official development ceased in 2017, the community-driven MPC-HC on GitHub continues to provide updates and support."]}),"\n",(0,t.jsxs)(i.p,{children:["The latest un/stable builds of MPC-HC, maintained by the community, can be found on ",(0,t.jsx)(i.a,{href:"https://github.com/clsid2/mpc-hc/releases",children:"clsid2's MPC-HC repository"}),"."]})]})}function p(e={}){const{wrapper:i}={...(0,o.R)(),...e.components};return i?(0,t.jsx)(i,{...e,children:(0,t.jsx)(c,{...e})}):c(e)}},8453:(e,i,s)=>{s.d(i,{R:()=>r,x:()=>a});var n=s(6540);const t={},o=n.createContext(t);function r(e){const i=n.useContext(o);return n.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function a(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:r(e.components),n.createElement(o.Provider,{value:i},e.children)}}}]);
\ No newline at end of file
diff --git a/assets/js/5db6705b.a12c34f2.js b/assets/js/5db6705b.a12c34f2.js
new file mode 100644
index 000000000..c543574df
--- /dev/null
+++ b/assets/js/5db6705b.a12c34f2.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[1624],{5248:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>l,contentTitle:()=>a,default:()=>h,frontMatter:()=>s,metadata:()=>n,toc:()=>c});const n=JSON.parse('{"id":"utilities/nmkoder","title":"NMKODER","description":"NMKODER is a free and open source, Windows-only GUI software developed by N00MKRAD. Built around FFmpeg, FFprobe, and Av1an","source":"@site/docs/utilities/nmkoder.mdx","sourceDirName":"utilities","slug":"/utilities/nmkoder","permalink":"/docs/utilities/nmkoder","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/utilities/nmkoder.mdx","tags":[],"version":"current","sidebarPosition":7,"frontMatter":{"title":"NMKODER","sidebar_position":7},"sidebar":"tutorialSidebar","previous":{"title":"rav1ator-cli","permalink":"/docs/utilities/rav1ator-cli"},"next":{"title":"FFMetrics","permalink":"/docs/utilities/FFMetrics"}}');var o=i(4848),r=i(8453);const s={title:"NMKODER",sidebar_position:7},a="NMKODER",l={},c=[{value:"Installation",id:"installation",level:2},{value:"Usage",id:"usage",level:2}];function d(e){const t={a:"a",admonition:"admonition",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",strong:"strong",ul:"ul",...(0,r.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(t.header,{children:(0,o.jsx)(t.h1,{id:"nmkoder",children:"NMKODER"})}),"\n",(0,o.jsxs)("picture",{children:[(0,o.jsx)("source",{srcset:"/img/nmkoder.avif",type:"image/avif"}),(0,o.jsx)("img",{src:"/img/nmkoder.webp",alt:"NMKODER Window"})]}),"\n",(0,o.jsx)("br",{}),"\n",(0,o.jsx)("br",{}),"\n",(0,o.jsxs)(t.p,{children:[(0,o.jsx)(t.a,{href:"https://github.com/n00mkrad/nmkoder",children:"NMKODER"})," is a free and open source, ",(0,o.jsx)(t.strong,{children:"Windows-only"})," GUI software developed by ",(0,o.jsx)(t.a,{href:"https://github.com/n00mkrad",children:"N00MKRAD"}),". Built around FFmpeg, FFprobe, and Av1an\nfor video encoding, muxing, and analysis such as concatenation, metrics calculation, and bitrate plotting. Though most people use this for the ",(0,o.jsx)(t.a,{href:"/docs/utilities/av1an",children:"Av1an"})," functionality."]}),"\n",(0,o.jsx)(t.p,{children:"The software is written in C# and built with WinForms."}),"\n",(0,o.jsx)(t.admonition,{title:"Abandonware",type:"danger",children:(0,o.jsx)(t.p,{children:'NMKODER have not been updated for years, it is not recommended to use this. But you can attempt to replace the provided binaries (aomenc.exe, etc) with new ones to technically "update" this.'})}),"\n",(0,o.jsx)(t.h2,{id:"installation",children:"Installation"}),"\n",(0,o.jsxs)(t.p,{children:["You can download it from the GitHub ",(0,o.jsx)(t.a,{href:"https://github.com/n00mkrad/nmkoder/releases",children:"releases"})," page (the 7z file). Extract it to wherever after it's finished downloading, open the folder, and click the exe file."]}),"\n",(0,o.jsx)(t.p,{children:"The entire software is portable, so you can share the folder with anyone and they'll have no problem with running it."}),"\n",(0,o.jsx)(t.h2,{id:"usage",children:"Usage"}),"\n",(0,o.jsx)(t.p,{children:"NMKODER is really straightforward to use and consists of multiple tabs for each functionality. There is a drop zone on the left for drag-and-drop video files."}),"\n",(0,o.jsxs)(t.ul,{children:["\n",(0,o.jsx)(t.li,{children:'"File List" is for imported files.'}),"\n",(0,o.jsx)(t.li,{children:'"Track List" is for A/V tracks.'}),"\n",(0,o.jsx)(t.li,{children:'"Quick Convert" tab is for conversion with FFmpeg.'}),"\n",(0,o.jsx)(t.li,{children:'"AV1AN" is what it exactly says.'}),"\n",(0,o.jsx)(t.li,{children:'"Utilities" is for helpful tools such as colorspace/HDR metadata transferring, metric calculation, etc.'}),"\n"]}),"\n",(0,o.jsx)(t.p,{children:'After configuring everything, click on the "Start" button to start encoding.'})]})}function h(e={}){const{wrapper:t}={...(0,r.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(d,{...e})}):d(e)}},8453:(e,t,i)=>{i.d(t,{R:()=>s,x:()=>a});var n=i(6540);const o={},r=n.createContext(o);function s(e){const t=n.useContext(r);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:s(e.components),n.createElement(r.Provider,{value:t},e.children)}}}]);
\ No newline at end of file
diff --git a/assets/js/5db6705b.ec6b9e18.js b/assets/js/5db6705b.ec6b9e18.js
deleted file mode 100644
index a305e4b7e..000000000
--- a/assets/js/5db6705b.ec6b9e18.js
+++ /dev/null
@@ -1 +0,0 @@
-"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[1624],{9828:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>l,contentTitle:()=>s,default:()=>h,frontMatter:()=>r,metadata:()=>a,toc:()=>d});var n=i(4848),o=i(8453);const r={title:"NMKODER",sidebar_position:7},s="NMKODER",a={id:"utilities/nmkoder",title:"NMKODER",description:"NMKODER is a free and open source, Windows-only GUI software developed by N00MKRAD. Built around FFmpeg, FFprobe, and Av1an",source:"@site/docs/utilities/nmkoder.mdx",sourceDirName:"utilities",slug:"/utilities/nmkoder",permalink:"/docs/utilities/nmkoder",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/utilities/nmkoder.mdx",tags:[],version:"current",sidebarPosition:7,frontMatter:{title:"NMKODER",sidebar_position:7},sidebar:"tutorialSidebar",previous:{title:"rav1ator-cli",permalink:"/docs/utilities/rav1ator-cli"},next:{title:"FFMetrics",permalink:"/docs/utilities/FFMetrics"}},l={},d=[{value:"Installation",id:"installation",level:2},{value:"Usage",id:"usage",level:2}];function c(e){const t={a:"a",admonition:"admonition",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",strong:"strong",ul:"ul",...(0,o.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.header,{children:(0,n.jsx)(t.h1,{id:"nmkoder",children:"NMKODER"})}),"\n",(0,n.jsxs)("picture",{children:[(0,n.jsx)("source",{srcset:"/img/nmkoder.avif",type:"image/avif"}),(0,n.jsx)("img",{src:"/img/nmkoder.webp",alt:"NMKODER Window"})]}),"\n",(0,n.jsx)("br",{}),"\n",(0,n.jsx)("br",{}),"\n",(0,n.jsxs)(t.p,{children:[(0,n.jsx)(t.a,{href:"https://github.com/n00mkrad/nmkoder",children:"NMKODER"})," is a free and open source, ",(0,n.jsx)(t.strong,{children:"Windows-only"})," GUI software developed by ",(0,n.jsx)(t.a,{href:"https://github.com/n00mkrad",children:"N00MKRAD"}),". Built around FFmpeg, FFprobe, and Av1an\nfor video encoding, muxing, and analysis such as concatenation, metrics calculation, and bitrate plotting. Though most people use this for the ",(0,n.jsx)(t.a,{href:"/docs/utilities/av1an",children:"Av1an"})," functionality."]}),"\n",(0,n.jsx)(t.p,{children:"The software is written in C# and built with WinForms."}),"\n",(0,n.jsx)(t.admonition,{title:"Abandonware",type:"danger",children:(0,n.jsx)(t.p,{children:'NMKODER have not been updated for years, it is not recommended to use this. But you can attempt to replace the provided binaries (aomenc.exe, etc) with new ones to technically "update" this.'})}),"\n",(0,n.jsx)(t.h2,{id:"installation",children:"Installation"}),"\n",(0,n.jsxs)(t.p,{children:["You can download it from the GitHub ",(0,n.jsx)(t.a,{href:"https://github.com/n00mkrad/nmkoder/releases",children:"releases"})," page (the 7z file). Extract it to wherever after it's finished downloading, open the folder, and click the exe file."]}),"\n",(0,n.jsx)(t.p,{children:"The entire software is portable, so you can share the folder with anyone and they'll have no problem with running it."}),"\n",(0,n.jsx)(t.h2,{id:"usage",children:"Usage"}),"\n",(0,n.jsx)(t.p,{children:"NMKODER is really straightforward to use and consists of multiple tabs for each functionality. There is a drop zone on the left for drag-and-drop video files."}),"\n",(0,n.jsxs)(t.ul,{children:["\n",(0,n.jsx)(t.li,{children:'"File List" is for imported files.'}),"\n",(0,n.jsx)(t.li,{children:'"Track List" is for A/V tracks.'}),"\n",(0,n.jsx)(t.li,{children:'"Quick Convert" tab is for conversion with FFmpeg.'}),"\n",(0,n.jsx)(t.li,{children:'"AV1AN" is what it exactly says.'}),"\n",(0,n.jsx)(t.li,{children:'"Utilities" is for helpful tools such as colorspace/HDR metadata transferring, metric calculation, etc.'}),"\n"]}),"\n",(0,n.jsx)(t.p,{children:'After configuring everything, click on the "Start" button to start encoding.'})]})}function h(e={}){const{wrapper:t}={...(0,o.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(c,{...e})}):c(e)}},8453:(e,t,i)=>{i.d(t,{R:()=>s,x:()=>a});var n=i(6540);const o={},r=n.createContext(o);function s(e){const t=n.useContext(r);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:s(e.components),n.createElement(r.Provider,{value:t},e.children)}}}]);
\ No newline at end of file
diff --git a/assets/js/5e069031.36e9153e.js b/assets/js/5e069031.36e9153e.js
new file mode 100644
index 000000000..83eb9e2e9
--- /dev/null
+++ b/assets/js/5e069031.36e9153e.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[5968],{4347:(e,i,o)=>{o.r(i),o.d(i,{assets:()=>d,contentTitle:()=>r,default:()=>h,frontMatter:()=>a,metadata:()=>t,toc:()=>c});const t=JSON.parse('{"id":"introduction/prologue","title":"Prologue","description":"Multimedia compression as a whole has revolutionized our ability to communicate on the Web & beyond. It has enabled rich experiences across many breakthrough platforms that wouldn\'t have been feasible otherwise, and it has allowed us to communicate information, expression, and human connection in novel ways. It is the unsung hero of the modern Web. Despite this, it is often difficult to uncover information about codec technology that is accurate, informed, and battle-tested by passionate individuals who care about the proliferation of knowledge. This wiki aims to demystify the realm of multimedia compression while connecting codec enthusiasts to create a sink of knowledge for the benefit of everyone.","source":"@site/docs/introduction/prologue.mdx","sourceDirName":"introduction","slug":"/introduction/prologue","permalink":"/docs/introduction/prologue","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/introduction/prologue.mdx","tags":[],"version":"current","sidebarPosition":1,"frontMatter":{"title":"Prologue","sidebar_position":1},"sidebar":"tutorialSidebar","next":{"title":"Terminology","permalink":"/docs/introduction/terminology"}}');var s=o(4848),n=o(8453);const a={title:"Prologue",sidebar_position:1},r="Prologue",d={},c=[{value:"What This Isn't",id:"what-this-isnt",level:3},{value:"What is a Codec",id:"what-is-a-codec",level:3},{value:"What You Need",id:"what-you-need",level:3}];function l(e){const i={a:"a",admonition:"admonition",code:"code",em:"em",h1:"h1",h3:"h3",header:"header",li:"li",p:"p",strong:"strong",ul:"ul",...(0,n.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.header,{children:(0,s.jsx)(i.h1,{id:"prologue",children:"Prologue"})}),"\n",(0,s.jsx)(i.p,{children:"Multimedia compression as a whole has revolutionized our ability to communicate on the Web & beyond. It has enabled rich experiences across many breakthrough platforms that wouldn't have been feasible otherwise, and it has allowed us to communicate information, expression, and human connection in novel ways. It is the unsung hero of the modern Web. Despite this, it is often difficult to uncover information about codec technology that is accurate, informed, and battle-tested by passionate individuals who care about the proliferation of knowledge. This wiki aims to demystify the realm of multimedia compression while connecting codec enthusiasts to create a sink of knowledge for the benefit of everyone."}),"\n",(0,s.jsx)(i.h3,{id:"what-this-isnt",children:"What This Isn't"}),"\n",(0,s.jsxs)(i.p,{children:["The Codec Wiki is ",(0,s.jsx)(i.strong,{children:"not a highly accurate source for understanding the mathematics, research, adoption/patent politics, or specifications of specific coder/decoder implementations"}),". Sources like Wikipedia cover these details with great accuracy & reliability. What we ",(0,s.jsx)(i.em,{children:"are"})," focused on is making higher level information - especially related to the usage & application of compression tools - highly accessible; we are focused on application, not theory, for the time being. Knowing how a codec works in theory is different than knowing when and how to best use a codec and its accompanying tools."]}),"\n",(0,s.jsx)(i.h3,{id:"what-is-a-codec",children:"What is a Codec"}),"\n",(0,s.jsxs)(i.p,{children:["A codec, shortened from coder/decoder, is a system that handles digital media or data according to a specification. Usually, this means it compresses and decompresses digital media. Codecs are used to encode media for storage and transmission - among other things - and then decode that media for playback, editing, etc. Multimedia codecs compress by either ",(0,s.jsx)(i.a,{href:"/docs/introduction/psychovisual",children:"discarding less salient data"})," using ",(0,s.jsx)(i.a,{href:"/docs/introduction/video-artifacts",children:"lossy"})," compression to reduce filesize, or they use clever lossless compression tricks to maintain a mathematically identical stream to the input media while still reducing filesize. Lossless compression can be reversed to be the exact same as the input data, while lossy compression does not share this quality as it discards data for smaller filesizes. Some common uses of codecs include:"]}),"\n",(0,s.jsxs)(i.ul,{children:["\n",(0,s.jsxs)(i.li,{children:["Video compression: Video codecs like ",(0,s.jsx)(i.a,{href:"/docs/video/AVC",children:"H.264"}),", ",(0,s.jsx)(i.a,{href:"/docs/video/VP9",children:"VP9"})," & ",(0,s.jsx)(i.a,{href:"/docs/video/AV1",children:"AV1"})," allow digital video files to be compressed to much smaller sizes for streaming & storage, among other things. A video codec can encode a video stream while it is being recorded or before it is distributed, and decode it when it is played back. This allows videos to be shared more quickly and use less storage & bandwidth."]}),"\n",(0,s.jsxs)(i.li,{children:["Audio compression: Audio codecs like ",(0,s.jsx)(i.a,{href:"/docs/audio/MP3",children:"MP3"}),", ",(0,s.jsx)(i.a,{href:"/docs/audio/AAC",children:"AAC"}),", and ",(0,s.jsx)(i.a,{href:"/docs/audio/Opus",children:"Opus"})," compress audio files like songs & podcasts. This allows them to be easily distributed & stored."]}),"\n",(0,s.jsxs)(i.li,{children:["Image Compression: Image codecs, whether tried and true like ",(0,s.jsx)(i.a,{href:"/docs/images/JPEG",children:"JPEG"})," or brand new like ",(0,s.jsx)(i.a,{href:"/docs/images/JXL",children:"JPEG-XL"}),", have fundamentally the same goal: compress images well while maintaining a versatile featureset for the myriad of ways one may decide they'd like to compress an image. Color depth, HDR, transparency, color space information, EXIF data, and many other factors are at play when working with images that make compressing them easier said than done."]}),"\n",(0,s.jsxs)(i.li,{children:["Data Compression: General compression algorithms like ",(0,s.jsx)(i.a,{href:"/docs/data/zip",children:"ZIP"})," & ",(0,s.jsx)(i.a,{href:"/docs/data/zstd",children:"zstd"})," are designed to compress ",(0,s.jsx)(i.em,{children:"any"})," kind of data, not just multimedia specific data. This includes web assets, executables, text archives, and even entire filesystems."]}),"\n"]}),"\n",(0,s.jsxs)(i.p,{children:["In summary, ",(0,s.jsx)(i.strong,{children:"codecs use complex algorithms to encode and decode media for efficient storage and transmission"}),". They are essential for recording, compressing, delivering and playing back digital media. Different codecs balance factors like compression efficiency, quality, computational requirements, compatibility, & features depending on their application."]}),"\n",(0,s.jsx)(i.h3,{id:"what-you-need",children:"What You Need"}),"\n",(0,s.jsx)(i.p,{children:"A rather informal list of requirements follows."}),"\n",(0,s.jsx)(i.p,{children:"You will benefit greatly from:"}),"\n",(0,s.jsxs)(i.ul,{children:["\n",(0,s.jsx)(i.li,{children:"Patience."}),"\n",(0,s.jsx)(i.li,{children:"A willingness to learn, engage in curiousity, & follow instructions"}),"\n",(0,s.jsx)(i.li,{children:"Basic to intermediate computer proficiency."}),"\n"]}),"\n",(0,s.jsx)(i.p,{children:"If you're only here to learn the tools, it will be very beneficial to have:"}),"\n",(0,s.jsxs)(i.ul,{children:["\n",(0,s.jsx)(i.li,{children:"Higher-end CPU hardware, which will decrease wait times for some larger encoding workloads discussed here."}),"\n",(0,s.jsx)(i.li,{children:"A level of comfort with CLI utilities, or enough motivation to engage with them in the absence of background knowledge."}),"\n",(0,s.jsx)(i.li,{children:"A device running an Arch-based Linux distribution, excluding Manjaro"}),"\n"]}),"\n",(0,s.jsx)(i.admonition,{title:"Why Arch?",type:"info",children:(0,s.jsxs)(i.p,{children:["Most encoding tools are readily available in the package manager, & it is a bleeding edge Linux distribution which ensures your utilities are always kept up to date. For filtering, all Vapoursynth plugins are already available in the Arch User Repository (AUR) which makes it extremely easy to install and version control with an AUR helper ",(0,s.jsxs)(i.a,{href:"https://github.com/Jguer/yay",children:["like ",(0,s.jsx)(i.code,{children:"yay"})]})]})})]})}function h(e={}){const{wrapper:i}={...(0,n.R)(),...e.components};return i?(0,s.jsx)(i,{...e,children:(0,s.jsx)(l,{...e})}):l(e)}},8453:(e,i,o)=>{o.d(i,{R:()=>a,x:()=>r});var t=o(6540);const s={},n=t.createContext(s);function a(e){const i=t.useContext(n);return t.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function r(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:a(e.components),t.createElement(n.Provider,{value:i},e.children)}}}]);
\ No newline at end of file
diff --git a/assets/js/5e069031.5d8abc53.js b/assets/js/5e069031.5d8abc53.js
deleted file mode 100644
index 019786a2f..000000000
--- a/assets/js/5e069031.5d8abc53.js
+++ /dev/null
@@ -1 +0,0 @@
-"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[5968],{9483:(e,i,o)=>{o.r(i),o.d(i,{assets:()=>d,contentTitle:()=>a,default:()=>h,frontMatter:()=>s,metadata:()=>r,toc:()=>c});var t=o(4848),n=o(8453);const s={title:"Prologue",sidebar_position:1},a="Prologue",r={id:"introduction/prologue",title:"Prologue",description:"Multimedia compression as a whole has revolutionized our ability to communicate on the Web & beyond. It has enabled rich experiences across many breakthrough platforms that wouldn't have been feasible otherwise, and it has allowed us to communicate information, expression, and human connection in novel ways. It is the unsung hero of the modern Web. Despite this, it is often difficult to uncover information about codec technology that is accurate, informed, and battle-tested by passionate individuals who care about the proliferation of knowledge. This wiki aims to demystify the realm of multimedia compression while connecting codec enthusiasts to create a sink of knowledge for the benefit of everyone.",source:"@site/docs/introduction/prologue.mdx",sourceDirName:"introduction",slug:"/introduction/prologue",permalink:"/docs/introduction/prologue",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/introduction/prologue.mdx",tags:[],version:"current",sidebarPosition:1,frontMatter:{title:"Prologue",sidebar_position:1},sidebar:"tutorialSidebar",next:{title:"Terminology",permalink:"/docs/introduction/terminology"}},d={},c=[{value:"What This Isn't",id:"what-this-isnt",level:3},{value:"What is a Codec",id:"what-is-a-codec",level:3},{value:"What You Need",id:"what-you-need",level:3}];function l(e){const i={a:"a",admonition:"admonition",code:"code",em:"em",h1:"h1",h3:"h3",header:"header",li:"li",p:"p",strong:"strong",ul:"ul",...(0,n.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.header,{children:(0,t.jsx)(i.h1,{id:"prologue",children:"Prologue"})}),"\n",(0,t.jsx)(i.p,{children:"Multimedia compression as a whole has revolutionized our ability to communicate on the Web & beyond. It has enabled rich experiences across many breakthrough platforms that wouldn't have been feasible otherwise, and it has allowed us to communicate information, expression, and human connection in novel ways. It is the unsung hero of the modern Web. Despite this, it is often difficult to uncover information about codec technology that is accurate, informed, and battle-tested by passionate individuals who care about the proliferation of knowledge. This wiki aims to demystify the realm of multimedia compression while connecting codec enthusiasts to create a sink of knowledge for the benefit of everyone."}),"\n",(0,t.jsx)(i.h3,{id:"what-this-isnt",children:"What This Isn't"}),"\n",(0,t.jsxs)(i.p,{children:["The Codec Wiki is ",(0,t.jsx)(i.strong,{children:"not a highly accurate source for understanding the mathematics, research, adoption/patent politics, or specifications of specific coder/decoder implementations"}),". Sources like Wikipedia cover these details with great accuracy & reliability. What we ",(0,t.jsx)(i.em,{children:"are"})," focused on is making higher level information - especially related to the usage & application of compression tools - highly accessible; we are focused on application, not theory, for the time being. Knowing how a codec works in theory is different than knowing when and how to best use a codec and its accompanying tools."]}),"\n",(0,t.jsx)(i.h3,{id:"what-is-a-codec",children:"What is a Codec"}),"\n",(0,t.jsxs)(i.p,{children:["A codec, shortened from coder/decoder, is a system that handles digital media or data according to a specification. Usually, this means it compresses and decompresses digital media. Codecs are used to encode media for storage and transmission - among other things - and then decode that media for playback, editing, etc. Multimedia codecs compress by either ",(0,t.jsx)(i.a,{href:"/docs/introduction/psychovisual",children:"discarding less salient data"})," using ",(0,t.jsx)(i.a,{href:"/docs/introduction/video-artifacts",children:"lossy"})," compression to reduce filesize, or they use clever lossless compression tricks to maintain a mathematically identical stream to the input media while still reducing filesize. Lossless compression can be reversed to be the exact same as the input data, while lossy compression does not share this quality as it discards data for smaller filesizes. Some common uses of codecs include:"]}),"\n",(0,t.jsxs)(i.ul,{children:["\n",(0,t.jsxs)(i.li,{children:["Video compression: Video codecs like ",(0,t.jsx)(i.a,{href:"/docs/video/AVC",children:"H.264"}),", ",(0,t.jsx)(i.a,{href:"/docs/video/VP9",children:"VP9"})," & ",(0,t.jsx)(i.a,{href:"/docs/video/AV1",children:"AV1"})," allow digital video files to be compressed to much smaller sizes for streaming & storage, among other things. A video codec can encode a video stream while it is being recorded or before it is distributed, and decode it when it is played back. This allows videos to be shared more quickly and use less storage & bandwidth."]}),"\n",(0,t.jsxs)(i.li,{children:["Audio compression: Audio codecs like ",(0,t.jsx)(i.a,{href:"/docs/audio/MP3",children:"MP3"}),", ",(0,t.jsx)(i.a,{href:"/docs/audio/AAC",children:"AAC"}),", and ",(0,t.jsx)(i.a,{href:"/docs/audio/Opus",children:"Opus"})," compress audio files like songs & podcasts. This allows them to be easily distributed & stored."]}),"\n",(0,t.jsxs)(i.li,{children:["Image Compression: Image codecs, whether tried and true like ",(0,t.jsx)(i.a,{href:"/docs/images/JPEG",children:"JPEG"})," or brand new like ",(0,t.jsx)(i.a,{href:"/docs/images/JXL",children:"JPEG-XL"}),", have fundamentally the same goal: compress images well while maintaining a versatile featureset for the myriad of ways one may decide they'd like to compress an image. Color depth, HDR, transparency, color space information, EXIF data, and many other factors are at play when working with images that make compressing them easier said than done."]}),"\n",(0,t.jsxs)(i.li,{children:["Data Compression: General compression algorithms like ",(0,t.jsx)(i.a,{href:"/docs/data/zip",children:"ZIP"})," & ",(0,t.jsx)(i.a,{href:"/docs/data/zstd",children:"zstd"})," are designed to compress ",(0,t.jsx)(i.em,{children:"any"})," kind of data, not just multimedia specific data. This includes web assets, executables, text archives, and even entire filesystems."]}),"\n"]}),"\n",(0,t.jsxs)(i.p,{children:["In summary, ",(0,t.jsx)(i.strong,{children:"codecs use complex algorithms to encode and decode media for efficient storage and transmission"}),". They are essential for recording, compressing, delivering and playing back digital media. Different codecs balance factors like compression efficiency, quality, computational requirements, compatibility, & features depending on their application."]}),"\n",(0,t.jsx)(i.h3,{id:"what-you-need",children:"What You Need"}),"\n",(0,t.jsx)(i.p,{children:"A rather informal list of requirements follows."}),"\n",(0,t.jsx)(i.p,{children:"You will benefit greatly from:"}),"\n",(0,t.jsxs)(i.ul,{children:["\n",(0,t.jsx)(i.li,{children:"Patience."}),"\n",(0,t.jsx)(i.li,{children:"A willingness to learn, engage in curiousity, & follow instructions"}),"\n",(0,t.jsx)(i.li,{children:"Basic to intermediate computer proficiency."}),"\n"]}),"\n",(0,t.jsx)(i.p,{children:"If you're only here to learn the tools, it will be very beneficial to have:"}),"\n",(0,t.jsxs)(i.ul,{children:["\n",(0,t.jsx)(i.li,{children:"Higher-end CPU hardware, which will decrease wait times for some larger encoding workloads discussed here."}),"\n",(0,t.jsx)(i.li,{children:"A level of comfort with CLI utilities, or enough motivation to engage with them in the absence of background knowledge."}),"\n",(0,t.jsx)(i.li,{children:"A device running an Arch-based Linux distribution, excluding Manjaro"}),"\n"]}),"\n",(0,t.jsx)(i.admonition,{title:"Why Arch?",type:"info",children:(0,t.jsxs)(i.p,{children:["Most encoding tools are readily available in the package manager, & it is a bleeding edge Linux distribution which ensures your utilities are always kept up to date. For filtering, all Vapoursynth plugins are already available in the Arch User Repository (AUR) which makes it extremely easy to install and version control with an AUR helper ",(0,t.jsxs)(i.a,{href:"https://github.com/Jguer/yay",children:["like ",(0,t.jsx)(i.code,{children:"yay"})]})]})})]})}function h(e={}){const{wrapper:i}={...(0,n.R)(),...e.components};return i?(0,t.jsx)(i,{...e,children:(0,t.jsx)(l,{...e})}):l(e)}},8453:(e,i,o)=>{o.d(i,{R:()=>a,x:()=>r});var t=o(6540);const n={},s=t.createContext(n);function a(e){const i=t.useContext(s);return t.useMemo((function(){return"function"==typeof e?e(i):{...i,...e}}),[i,e])}function r(e){let i;return i=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:a(e.components),t.createElement(s.Provider,{value:i},e.children)}}}]);
\ No newline at end of file
diff --git a/assets/js/5e1194df.03677b01.js b/assets/js/5e1194df.03677b01.js
deleted file mode 100644
index a7be0e26f..000000000
--- a/assets/js/5e1194df.03677b01.js
+++ /dev/null
@@ -1 +0,0 @@
-"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[4822],{5160:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>c,contentTitle:()=>a,default:()=>u,frontMatter:()=>s,metadata:()=>r,toc:()=>d});var o=i(4848),n=i(8453);const s={title:"zpaq",sidebar_position:7},a="ZPAQ",r={id:"data/zpaq",title:"zpaq",description:"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!",source:"@site/docs/data/zpaq.mdx",sourceDirName:"data",slug:"/data/zpaq",permalink:"/docs/data/zpaq",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/data/zpaq.mdx",tags:[],version:"current",sidebarPosition:7,frontMatter:{title:"zpaq",sidebar_position:7},sidebar:"tutorialSidebar",previous:{title:"brotli",permalink:"/docs/data/brotli"},next:{title:"zstd",permalink:"/docs/data/zstd"}},c={},d=[];function l(e){const t={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,n.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(t.header,{children:(0,o.jsx)(t.h1,{id:"zpaq",children:"ZPAQ"})}),"\n",(0,o.jsx)(t.admonition,{title:"Help Wanted",type:"danger",children:(0,o.jsxs)(t.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,o.jsx)(t.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,o.jsx)(t.p,{children:"ZPAQ is a lossless data compression algorithm that combines several techniques to achieve high compression ratios. It was developed by Matt Mahoney."}),"\n",(0,o.jsx)(t.p,{children:'ZPAQ uses a multitude of different compression algorithms to try to achieve the best size-to-compression-time ratio possible while producing the smallest possible archives without much concern given to decompression performance. On the official ZPAQ website, it looks like it is designed for "realistic backups that have a lot of duplicate files and a lot of already compressed files."'}),"\n",(0,o.jsx)(t.p,{children:'ZPAQ is also considered an "incremental journaling archiver" meaning you can add files to an existing archive based on if they were changed or not. This reduces the time needed to wait for a new backup to finish, if that is your use case. Since ZPAQ is so focused on compression ratio, this kind of feature may reduce the burden imposed by long compression times in practical use cases where it makes sense. Windows & macOS do not handle ZPAQ archives properly by default, and it is unlikely many Linux distros do either.'})]})}function u(e={}){const{wrapper:t}={...(0,n.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(l,{...e})}):l(e)}},8453:(e,t,i)=>{i.d(t,{R:()=>a,x:()=>r});var o=i(6540);const n={},s=o.createContext(n);function a(e){const t=o.useContext(s);return o.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function r(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:a(e.components),o.createElement(s.Provider,{value:t},e.children)}}}]);
\ No newline at end of file
diff --git a/assets/js/5e1194df.0c61c810.js b/assets/js/5e1194df.0c61c810.js
new file mode 100644
index 000000000..d554c3c5c
--- /dev/null
+++ b/assets/js/5e1194df.0c61c810.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[4822],{1235:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>c,contentTitle:()=>r,default:()=>u,frontMatter:()=>a,metadata:()=>o,toc:()=>d});const o=JSON.parse('{"id":"data/zpaq","title":"zpaq","description":"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!","source":"@site/docs/data/zpaq.mdx","sourceDirName":"data","slug":"/data/zpaq","permalink":"/docs/data/zpaq","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/data/zpaq.mdx","tags":[],"version":"current","sidebarPosition":7,"frontMatter":{"title":"zpaq","sidebar_position":7},"sidebar":"tutorialSidebar","previous":{"title":"brotli","permalink":"/docs/data/brotli"},"next":{"title":"zstd","permalink":"/docs/data/zstd"}}');var n=i(4848),s=i(8453);const a={title:"zpaq",sidebar_position:7},r="ZPAQ",c={},d=[];function l(e){const t={a:"a",admonition:"admonition",h1:"h1",header:"header",p:"p",...(0,s.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.header,{children:(0,n.jsx)(t.h1,{id:"zpaq",children:"ZPAQ"})}),"\n",(0,n.jsx)(t.admonition,{title:"Help Wanted",type:"danger",children:(0,n.jsxs)(t.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,n.jsx)(t.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,n.jsx)(t.p,{children:"ZPAQ is a lossless data compression algorithm that combines several techniques to achieve high compression ratios. It was developed by Matt Mahoney."}),"\n",(0,n.jsx)(t.p,{children:'ZPAQ uses a multitude of different compression algorithms to try to achieve the best size-to-compression-time ratio possible while producing the smallest possible archives without much concern given to decompression performance. On the official ZPAQ website, it looks like it is designed for "realistic backups that have a lot of duplicate files and a lot of already compressed files."'}),"\n",(0,n.jsx)(t.p,{children:'ZPAQ is also considered an "incremental journaling archiver" meaning you can add files to an existing archive based on if they were changed or not. This reduces the time needed to wait for a new backup to finish, if that is your use case. Since ZPAQ is so focused on compression ratio, this kind of feature may reduce the burden imposed by long compression times in practical use cases where it makes sense. Windows & macOS do not handle ZPAQ archives properly by default, and it is unlikely many Linux distros do either.'})]})}function u(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(l,{...e})}):l(e)}},8453:(e,t,i)=>{i.d(t,{R:()=>a,x:()=>r});var o=i(6540);const n={},s=o.createContext(n);function a(e){const t=o.useContext(s);return o.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function r(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:a(e.components),o.createElement(s.Provider,{value:t},e.children)}}}]);
\ No newline at end of file
diff --git a/assets/js/5e95c892.15681440.js b/assets/js/5e95c892.15681440.js
new file mode 100644
index 000000000..63b3f3cc2
--- /dev/null
+++ b/assets/js/5e95c892.15681440.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[9647],{7121:(e,c,s)=>{s.r(c),s.d(c,{default:()=>t});s(6540);var r=s(4164),u=s(1213),a=s(7559),i=s(2831),d=s(7823),n=s(4848);function t(e){return(0,n.jsx)(u.e3,{className:(0,r.A)(a.G.wrapper.docsPages),children:(0,n.jsx)(d.A,{children:(0,i.v)(e.route.routes)})})}}}]);
\ No newline at end of file
diff --git a/assets/js/5e95c892.7ef37dfe.js b/assets/js/5e95c892.7ef37dfe.js
deleted file mode 100644
index 6219fe143..000000000
--- a/assets/js/5e95c892.7ef37dfe.js
+++ /dev/null
@@ -1 +0,0 @@
-"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[9647],{7121:(e,c,s)=>{s.r(c),s.d(c,{default:()=>t});s(6540);var r=s(4164),u=s(1213),a=s(7559),i=s(2831),d=s(263),n=s(4848);function t(e){return(0,n.jsx)(u.e3,{className:(0,r.A)(a.G.wrapper.docsPages),children:(0,n.jsx)(d.A,{children:(0,i.v)(e.route.routes)})})}}}]);
\ No newline at end of file
diff --git a/assets/js/5ec46d54.267e3e91.js b/assets/js/5ec46d54.267e3e91.js
new file mode 100644
index 000000000..8a8360a7d
--- /dev/null
+++ b/assets/js/5ec46d54.267e3e91.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[1481],{4419:(e,t,o)=>{o.r(t),o.d(t,{assets:()=>c,contentTitle:()=>d,default:()=>l,frontMatter:()=>s,metadata:()=>n,toc:()=>a});const n=JSON.parse('{"id":"video/ECM","title":"ECM","description":"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!","source":"@site/docs/video/ECM.mdx","sourceDirName":"video","slug":"/video/ECM","permalink":"/docs/video/ECM","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/video/ECM.mdx","tags":[],"version":"current","sidebarPosition":15,"frontMatter":{"title":"ECM","sidebar_position":15},"sidebar":"tutorialSidebar","previous":{"title":"ProRes","permalink":"/docs/video/prores"},"next":{"title":"ZIP","permalink":"/docs/data/zip"}}');var i=o(4848),r=o(8453);const s={title:"ECM",sidebar_position:15},d="ECM",c={},a=[];function u(e){const t={a:"a",admonition:"admonition",code:"code",h1:"h1",header:"header",p:"p",pre:"pre",...(0,r.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.header,{children:(0,i.jsx)(t.h1,{id:"ecm",children:"ECM"})}),"\n",(0,i.jsx)(t.admonition,{title:"Help Wanted",type:"danger",children:(0,i.jsxs)(t.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,i.jsx)(t.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,i.jsxs)(t.p,{children:["ECM (Enhanced Compression Model) is a video codec developed by the Fraunhofer Heinrich-Hertz-Institute. It is purportedly designed to succeed H.266, or ",(0,i.jsx)(t.a,{href:"/docs/video/VVC",children:"VVC"}),"."]}),"\n",(0,i.jsxs)(t.p,{children:["The ",(0,i.jsx)(t.a,{href:"https://vcgit.hhi.fraunhofer.de/ecm/ECM",children:"Git repo"})," provides a bit more information:"]}),"\n",(0,i.jsx)(t.pre,{children:(0,i.jsx)(t.code,{className:"language-md",children:"# ECM reference software\n\nThis software package is the reference software for Enhanced Compression Model (ECM). The reference software includes both encoder and decoder functionality.\nReference software is useful in aiding users of a video coding standard to establish and test conformance and interoperability, and to educate users and demonstrate the capabilities of the test model.\nThe software has been jointly developed by the ITU-T Video Coding Experts Group (VCEG, Question 6 of ITU-T Study Group 16) and the ISO/IEC Moving Picture Experts Group (MPEG, Working Group 11 of Subcommittee 29 of ISO/IEC Joint Technical Committee 1).\n"})}),"\n",(0,i.jsx)(t.p,{children:"Other than this generic overview, build instructions are provided in the repo's README. Not much else is known about ECM besides the fact that it will likely become H.267."})]})}function l(e={}){const{wrapper:t}={...(0,r.R)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(u,{...e})}):u(e)}},8453:(e,t,o)=>{o.d(t,{R:()=>s,x:()=>d});var n=o(6540);const i={},r=n.createContext(i);function s(e){const t=n.useContext(r);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function d(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:s(e.components),n.createElement(r.Provider,{value:t},e.children)}}}]);
\ No newline at end of file
diff --git a/assets/js/5ec46d54.e5f80521.js b/assets/js/5ec46d54.e5f80521.js
deleted file mode 100644
index 4f299c929..000000000
--- a/assets/js/5ec46d54.e5f80521.js
+++ /dev/null
@@ -1 +0,0 @@
-"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[1481],{2886:(e,t,o)=>{o.r(t),o.d(t,{assets:()=>c,contentTitle:()=>s,default:()=>l,frontMatter:()=>r,metadata:()=>d,toc:()=>a});var n=o(4848),i=o(8453);const r={title:"ECM",sidebar_position:15},s="ECM",d={id:"video/ECM",title:"ECM",description:"This section is in need of contributions. If you believe you can help, please see our Contribution Guide to get started as a contributor!",source:"@site/docs/video/ECM.mdx",sourceDirName:"video",slug:"/video/ECM",permalink:"/docs/video/ECM",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/video/ECM.mdx",tags:[],version:"current",sidebarPosition:15,frontMatter:{title:"ECM",sidebar_position:15},sidebar:"tutorialSidebar",previous:{title:"ProRes",permalink:"/docs/video/prores"},next:{title:"ZIP",permalink:"/docs/data/zip"}},c={},a=[];function u(e){const t={a:"a",admonition:"admonition",code:"code",h1:"h1",header:"header",p:"p",pre:"pre",...(0,i.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.header,{children:(0,n.jsx)(t.h1,{id:"ecm",children:"ECM"})}),"\n",(0,n.jsx)(t.admonition,{title:"Help Wanted",type:"danger",children:(0,n.jsxs)(t.p,{children:["This section is in need of contributions. If you believe you can help, please see our ",(0,n.jsx)(t.a,{href:"/docs/contribution-guide",children:"Contribution Guide"})," to get started as a contributor!"]})}),"\n",(0,n.jsxs)(t.p,{children:["ECM (Enhanced Compression Model) is a video codec developed by the Fraunhofer Heinrich-Hertz-Institute. It is purportedly designed to succeed H.266, or ",(0,n.jsx)(t.a,{href:"/docs/video/VVC",children:"VVC"}),"."]}),"\n",(0,n.jsxs)(t.p,{children:["The ",(0,n.jsx)(t.a,{href:"https://vcgit.hhi.fraunhofer.de/ecm/ECM",children:"Git repo"})," provides a bit more information:"]}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-md",children:"# ECM reference software\n\nThis software package is the reference software for Enhanced Compression Model (ECM). The reference software includes both encoder and decoder functionality.\nReference software is useful in aiding users of a video coding standard to establish and test conformance and interoperability, and to educate users and demonstrate the capabilities of the test model.\nThe software has been jointly developed by the ITU-T Video Coding Experts Group (VCEG, Question 6 of ITU-T Study Group 16) and the ISO/IEC Moving Picture Experts Group (MPEG, Working Group 11 of Subcommittee 29 of ISO/IEC Joint Technical Committee 1).\n"})}),"\n",(0,n.jsx)(t.p,{children:"Other than this generic overview, build instructions are provided in the repo's README. Not much else is known about ECM besides the fact that it will likely become H.267."})]})}function l(e={}){const{wrapper:t}={...(0,i.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(u,{...e})}):u(e)}},8453:(e,t,o)=>{o.d(t,{R:()=>s,x:()=>d});var n=o(6540);const i={},r=n.createContext(i);function s(e){const t=n.useContext(r);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function d(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:s(e.components),n.createElement(r.Provider,{value:t},e.children)}}}]);
\ No newline at end of file
diff --git a/assets/js/5f74c797.5a891c89.js b/assets/js/5f74c797.5a891c89.js
deleted file mode 100644
index eaef682c5..000000000
--- a/assets/js/5f74c797.5a891c89.js
+++ /dev/null
@@ -1 +0,0 @@
-"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[5745],{6185:(e,n,i)=>{i.r(n),i.d(n,{assets:()=>d,contentTitle:()=>l,default:()=>p,frontMatter:()=>o,metadata:()=>c,toc:()=>u});var r=i(4848),a=i(8453),t=i(1470),s=i(9365);const o={title:"Av1an",sidebar_position:2,templating:!0},l="Av1an",c={id:"utilities/av1an",title:"Av1an",description:"Av1an is a video encoding framework. It can increase your encoding speed and improve CPU utilization by running multiple encoder processes in parallel. Target quality, VMAF plotting, and more, available to take advantage for video encoding.",source:"@site/docs/utilities/av1an.mdx",sourceDirName:"utilities",slug:"/utilities/av1an",permalink:"/docs/utilities/av1an",draft:!1,unlisted:!1,editUrl:"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/utilities/av1an.mdx",tags:[],version:"current",sidebarPosition:2,frontMatter:{title:"Av1an",sidebar_position:2,templating:!0},sidebar:"tutorialSidebar",previous:{title:"Aviator",permalink:"/docs/utilities/Aviator"},next:{title:"ffmpeg",permalink:"/docs/utilities/ffmpeg"}},d={},u=[{value:"Prerequisites",id:"prerequisites",level:2},{value:"Installation",id:"installation",level:2},{value:"Windows",id:"windows",level:3},{value:"Script",id:"script",level:4},{value:"Pre-built Binary",id:"pre-built-binary",level:4},{value:"Compile from Source",id:"compile-from-source",level:4},{value:"macOS",id:"macos",level:3},{value:"Using MacPorts",id:"using-macports",level:4},{value:"Compile from Source",id:"compile-from-source-1",level:4},{value:"Linux",id:"linux",level:3},{value:"Package Managers",id:"package-managers",level:4},{value:"Compile from Source",id:"compile-from-source-2",level:4},{value:"Docker",id:"docker",level:3},{value:"Installing Dependencies",id:"installing-dependencies",level:2},{value:"Troubleshooting",id:"troubleshooting",level:2},{value:""Error: The file 'XXXXX.ivf' could not be opened for reading: open file error." with mkvmerge on Linux",id:"error-the-file-xxxxxivf-could-not-be-opened-for-reading-open-file-error-with-mkvmerge-on-linux",level:3},{value:"Gray screen flashing for a single frame in output",id:"gray-screen-flashing-for-a-single-frame-in-output",level:3}];function h(e){const n={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",h3:"h3",h4:"h4",header:"header",li:"li",ol:"ol",p:"p",pre:"pre",strong:"strong",...(0,a.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.header,{children:(0,r.jsx)(n.h1,{id:"av1an",children:"Av1an"})}),"\n",(0,r.jsxs)("picture",{children:[(0,r.jsx)("source",{srcset:"https://raw.githubusercontent.com/av1-community-contributors/codec-wiki/main/static/img/av1an_96_workers.avif",type:"image/avif"}),(0,r.jsx)("img",{src:"https://autumn.revolt.chat/attachments/K3OhOCAy9bkUCkImek_q3-t6q3zctbn9SbWW-_RI19/av1an_96_workers.webp",alt:"Av1an with 96 workers"})]}),"\n",(0,r.jsx)("br",{}),"\n",(0,r.jsx)("br",{}),"\n",(0,r.jsx)(n.p,{children:"Av1an is a video encoding framework. It can increase your encoding speed and improve CPU utilization by running multiple encoder processes in parallel. Target quality, VMAF plotting, and more, available to take advantage for video encoding."}),"\n",(0,r.jsx)(n.p,{children:'The only downside to this, is that RAM usage increases significantly with each "worker" you add, so if you have a low amount of RAM (< 8GB), this might not be that useful to you.'}),"\n",(0,r.jsx)(n.admonition,{type:"caution",children:(0,r.jsx)(n.p,{children:"Av1an does not ship with any dependencies except for it's Docker image, so you will have to provide them on your own."})}),"\n",(0,r.jsx)(n.h2,{id:"prerequisites",children:"Prerequisites"}),"\n",(0,r.jsxs)(n.p,{children:["You will need Python, ",(0,r.jsx)(n.a,{href:"/docs/utilities/ffmpeg",children:"FFmpeg"})," and ",(0,r.jsx)(n.a,{href:"/docs/filtering/vapoursynth",children:"Vapoursynth"})," to be installed regardless of your current operating system."]}),"\n",(0,r.jsx)(n.h2,{id:"installation",children:"Installation"}),"\n",(0,r.jsx)(n.h3,{id:"windows",children:"Windows"}),"\n",(0,r.jsx)(n.h4,{id:"script",children:"Script"}),"\n",(0,r.jsxs)(n.p,{children:["Windows users can use this ",(0,r.jsx)(n.a,{href:"https://github.com/Hishiro64/av1an-win-script",children:"script"})," which installs everything needed in a single portable folder. Do note that you will need to update the dependencies manually once installed."]}),"\n",(0,r.jsx)(n.h4,{id:"pre-built-binary",children:"Pre-built Binary"}),"\n",(0,r.jsxs)(n.p,{children:['Av1an is available as a pre-built binary under the "',(0,r.jsx)(n.a,{href:"https://github.com/master-of-zen/Av1an/releases/tag/latest",children:"latest"}),'" tag on GitHub releases, you can simply download that and place it wherever you want.']}),"\n",(0,r.jsx)(n.h4,{id:"compile-from-source",children:"Compile from Source"}),"\n",(0,r.jsxs)(n.p,{children:["To compile from source, it is easier to use mingw-w64 which comes with ",(0,r.jsx)(n.a,{href:"https://msys2.org",children:"MSYS2"}),". Once installed, open MinGW64 and run the following:"]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",children:"pacman -Syuu; pacman -S cmake git nasm python3 mingw-w64-x86_64-gcc mingw-w64-x86_64-cmake base-devel mingw-w64-x86_64-ffmpeg mingw-w64-x86_64-rust mingw-w64-x86_64-lld mingw-w64-x86_64-clang mingw-w64-x86_64-make\n"})}),"\n",(0,r.jsxs)(n.p,{children:["Then, before you do anything further. Download Vapoursynth ",(0,r.jsx)(n.strong,{children:"portable"})," (",(0,r.jsx)(n.code,{children:"VapourSynth64-Portable-RXX.7z"}),") from its GitHub ",(0,r.jsx)(n.a,{href:"https://github.com/vapoursynth/vapoursynth/releases",children:"release page"}),". Make sure the version you chose is compatible with the current MinGW64 Python version. For example, R65 supports 3.8 and 3.11, the version from Pacman (currently) is 3.11, so you should choose that."]}),"\n",(0,r.jsxs)(n.p,{children:["After downloading, open the 7z file and head to ",(0,r.jsx)(n.code,{children:"\\sdk\\lib64"}),", copy all the libraries from there to MinGW64's ",(0,r.jsx)(n.code,{children:"lib"})," directory, this usually resides in ",(0,r.jsx)(n.code,{children:"C:\\msys64\\mingw64\\lib"}),"."]}),"\n",(0,r.jsx)(n.p,{children:"Now finally, resume your session and run the following:"}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",children:'git clone https://github.com/master-of-zen/Av1an\ncd Av1an\nRUSTFLAGS="-C target-cpu=native" cargo build --release\n'})}),"\n",(0,r.jsxs)(n.p,{children:["The binary will be available in ",(0,r.jsx)(n.code,{children:"C:\\msys64\\home\\USER\\Av1an\\target\\release"}),". The ",(0,r.jsx)(n.code,{children:"USER"})," part is your Windows username."]}),"\n",(0,r.jsx)(n.h3,{id:"macos",children:"macOS"}),"\n",(0,r.jsx)(n.h4,{id:"using-macports",children:"Using MacPorts"}),"\n",(0,r.jsx)(n.p,{children:"Av1an is available in the MacPorts repository, to install just simply run:"}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",children:"port install av1an\n"})}),"\n",(0,r.jsx)(n.h4,{id:"compile-from-source-1",children:"Compile from Source"}),"\n",(0,r.jsxs)(n.p,{children:["You need to have Git, Nasm, and Rust to be installed first. You can achieve this by using ",(0,r.jsx)(n.a,{href:"https://brew.sh/",children:"Homebrew"})," or similar."]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",children:'git clone https://github.com/master-of-zen/Av1an\ncd Av1an\nRUSTFLAGS="-C target-cpu=native" cargo build --release\n'})}),"\n",(0,r.jsxs)(n.p,{children:["Binary is located in ",(0,r.jsx)(n.code,{children:"Av1an/target/release"}),", you can optionally place it somewhere like ",(0,r.jsx)(n.code,{children:"/usr/local/bin"}),"."]}),"\n",(0,r.jsx)(n.h3,{id:"linux",children:"Linux"}),"\n",(0,r.jsx)(n.h4,{id:"package-managers",children:"Package Managers"}),"\n",(0,r.jsx)(n.p,{children:"Av1an is available in the package manager of some distributions such as Arch Linux. If not, you can skip to the next part every Linux user is familiar with."}),"\n",(0,r.jsx)(n.h4,{id:"compile-from-source-2",children:"Compile from Source"}),"\n",(0,r.jsx)(n.p,{children:"Just like macOS, you need to have Git, Nasm, and Rust to be installed. Can be achieved by either using your package manager or Rustup for Rust."}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",children:'git clone https://github.com/master-of-zen/Av1an.git\ncd Av1an\nRUSTFLAGS="-C target-cpu=native" cargo build --release\n'})}),"\n",(0,r.jsxs)(n.p,{children:["Binary is located in ",(0,r.jsx)(n.code,{children:"Av1an/target/release"}),", you can optionally place it somewhere like ",(0,r.jsx)(n.code,{children:"/usr/local/bin"})," or ",(0,r.jsx)(n.code,{children:"/usr/bin"}),"."]}),"\n",(0,r.jsx)(n.h3,{id:"docker",children:"Docker"}),"\n",(0,r.jsx)(n.p,{children:"The following examples assume the file you want to encode is in your current working directory."}),"\n",(0,r.jsxs)(t.A,{children:[(0,r.jsx)(s.A,{value:"windows",label:"Windows",default:!0,children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",children:'docker run --privileged -v "$(pwd):/videos" --user $(id -u):$(id -g) -it --rm masterofzen/av1an:latest -i S01E01.mkv {options}\n'})})}),(0,r.jsx)(s.A,{value:"linux",label:"Linux",children:(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",children:'docker run --privileged -v "${PWD}:/videos" -it --rm masterofzen/av1an:latest -i S01E01.mkv {options}\n'})})}),(0,r.jsxs)(s.A,{value:"build",label:"Manual Build",children:[(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",children:'docker build -t "av1an" .\n'})}),(0,r.jsx)(n.p,{children:"Run in the root directory of the repository. The dependencies will automatically be installed into the image, no manual installations necessary."})]})]}),"\n",(0,r.jsxs)(n.admonition,{type:"info",children:[(0,r.jsx)(n.p,{children:"To specify a different directory to use you would replace $(pwd) with the directory"}),(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-bash",children:'docker run --privileged -v "/c/Users/masterofzen/Videos":/videos --user $(id -u):$(id -g) -it --rm masterofzen/av1an:latest -i S01E01.mkv {options}\n'})}),(0,r.jsxs)(n.p,{children:["The ",(0,r.jsx)(n.code,{children:"--user"})," flag is required on Linux to avoid permission issues with the docker container not being able to write to the location, if you get permission issues ensure your user has access to the folder that you are using to encode."]})]}),"\n",(0,r.jsx)(n.admonition,{type:"caution",children:(0,r.jsx)(n.p,{children:"The Docker image ships with the default dependencies."})}),"\n",(0,r.jsx)(n.h2,{id:"installing-dependencies",children:"Installing Dependencies"}),"\n",(0,r.jsx)(n.p,{children:"You will need a chunk method installed as the built-in ones are very slow."}),"\n",(0,r.jsx)(n.h2,{id:"troubleshooting",children:"Troubleshooting"}),"\n",(0,r.jsx)(n.h3,{id:"error-the-file-xxxxxivf-could-not-be-opened-for-reading-open-file-error-with-mkvmerge-on-linux",children:"\"Error: The file 'XXXXX.ivf' could not be opened for reading: open file error.\" with mkvmerge on Linux"}),"\n",(0,r.jsxs)(n.p,{children:["Since mkvmerge opens all the encoded chunks at once, this obviously hits the default open file descriptor limit of 1024 on longer videos.\nYou can temporarily increase it with ",(0,r.jsx)(n.code,{children:"ulimit -n 20000"})," to allow opening 20,000 files at once in that session."]}),"\n",(0,r.jsx)(n.h3,{id:"gray-screen-flashing-for-a-single-frame-in-output",children:"Gray screen flashing for a single frame in output"}),"\n",(0,r.jsx)(n.p,{children:"This is a unique problem with Av1an. Since Av1an does random seeking for chunks, traditional keyframe-based decoding methods\nsuch as L-SMASH and FFMS2 may fail and result in a gray frame. There are currently only two known methods to solve this:"}),"\n",(0,r.jsxs)(n.ol,{children:["\n",(0,r.jsxs)(n.li,{children:["Create a lossless intermediary with x264 ",(0,r.jsx)(n.code,{children:"-qp 0"}),", this always fixes all related seeking issues but will result in a huge file due to it's lossless nature."]}),"\n",(0,r.jsxs)(n.li,{children:["Using a linear-decoding chunk method such as ",(0,r.jsx)(n.code,{children:"bestsource"}),", the downside to this is it's mega slow. Tests shown encode speeds drop by a whopping 10-15x slower."]}),"\n",(0,r.jsxs)(n.li,{children:["Using ",(0,r.jsx)(n.code,{children:"dgdecnv"})," chunk method. ",(0,r.jsx)(n.code,{children:"dgdecnv"})," and ",(0,r.jsx)(n.code,{children:"DGIndexNV"}),' is a proprietary CUVID-accelerated Vapoursynth "Source" decoder created by ',(0,r.jsx)(n.a,{href:"https://www.rationalqm.us/",children:"Donald Alan Graft"})," where ",(0,r.jsx)(n.code,{children:"DGIndexNV"})," is the standalone program for seeking and ",(0,r.jsx)(n.code,{children:"dgdecnv"})," is the Vapoursynth plugin itself.\nIt is especially made with random seeking in mind which makes it perfect for Av1an. Only downside is you need an NVIDIA GPU and ",(0,r.jsx)(n.code,{children:"DGIndexNV"})," only supports x86_64 platforms."]}),"\n"]})]})}function p(e={}){const{wrapper:n}={...(0,a.R)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(h,{...e})}):h(e)}},9365:(e,n,i)=>{i.d(n,{A:()=>s});i(6540);var r=i(4164);const a={tabItem:"tabItem_Ymn6"};var t=i(4848);function s(e){let{children:n,hidden:i,className:s}=e;return(0,t.jsx)("div",{role:"tabpanel",className:(0,r.A)(a.tabItem,s),hidden:i,children:n})}},1470:(e,n,i)=>{i.d(n,{A:()=>j});var r=i(6540),a=i(4164),t=i(3104),s=i(6347),o=i(205),l=i(7485),c=i(1682),d=i(679);function u(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the component should be , and every should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function h(e){const{values:n,children:i}=e;return(0,r.useMemo)((()=>{const e=n??function(e){return u(e).map((e=>{let{props:{value:n,label:i,attributes:r,default:a}}=e;return{value:n,label:i,attributes:r,default:a}}))}(i);return function(e){const n=(0,c.XI)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in . Every value needs to be unique.`)}(e),e}),[n,i])}function p(e){let{value:n,tabValues:i}=e;return i.some((e=>e.value===n))}function m(e){let{queryString:n=!1,groupId:i}=e;const a=(0,s.W6)(),t=function(e){let{queryString:n=!1,groupId:i}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!i)throw new Error('Docusaurus error: The component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return i??null}({queryString:n,groupId:i});return[(0,l.aZ)(t),(0,r.useCallback)((e=>{if(!t)return;const n=new URLSearchParams(a.location.search);n.set(t,e),a.replace({...a.location,search:n.toString()})}),[t,a])]}function g(e){const{defaultValue:n,queryString:i=!1,groupId:a}=e,t=h(e),[s,l]=(0,r.useState)((()=>function(e){let{defaultValue:n,tabValues:i}=e;if(0===i.length)throw new Error("Docusaurus error: the component requires at least one children component");if(n){if(!p({value:n,tabValues:i}))throw new Error(`Docusaurus error: The has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${i.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const r=i.find((e=>e.default))??i[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:n,tabValues:t}))),[c,u]=m({queryString:i,groupId:a}),[g,f]=function(e){let{groupId:n}=e;const i=function(e){return e?`docusaurus.tab.${e}`:null}(n),[a,t]=(0,d.Dv)(i);return[a,(0,r.useCallback)((e=>{i&&t.set(e)}),[i,t])]}({groupId:a}),v=(()=>{const e=c??g;return p({value:e,tabValues:t})?e:null})();(0,o.A)((()=>{v&&l(v)}),[v]);return{selectedValue:s,selectValue:(0,r.useCallback)((e=>{if(!p({value:e,tabValues:t}))throw new Error(`Can't select invalid tab value=${e}`);l(e),u(e),f(e)}),[u,f,t]),tabValues:t}}var f=i(2303);const v={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var x=i(4848);function b(e){let{className:n,block:i,selectedValue:r,selectValue:s,tabValues:o}=e;const l=[],{blockElementScrollPositionUntilNextRender:c}=(0,t.a_)(),d=e=>{const n=e.currentTarget,i=l.indexOf(n),a=o[i].value;a!==r&&(c(n),s(a))},u=e=>{let n=null;switch(e.key){case"Enter":d(e);break;case"ArrowRight":{const i=l.indexOf(e.currentTarget)+1;n=l[i]??l[0];break}case"ArrowLeft":{const i=l.indexOf(e.currentTarget)-1;n=l[i]??l[l.length-1];break}}n?.focus()};return(0,x.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,a.A)("tabs",{"tabs--block":i},n),children:o.map((e=>{let{value:n,label:i,attributes:t}=e;return(0,x.jsx)("li",{role:"tab",tabIndex:r===n?0:-1,"aria-selected":r===n,ref:e=>l.push(e),onKeyDown:u,onClick:d,...t,className:(0,a.A)("tabs__item",v.tabItem,t?.className,{"tabs__item--active":r===n}),children:i??n},n)}))})}function y(e){let{lazy:n,children:i,selectedValue:t}=e;const s=(Array.isArray(i)?i:[i]).filter(Boolean);if(n){const e=s.find((e=>e.props.value===t));return e?(0,r.cloneElement)(e,{className:(0,a.A)("margin-top--md",e.props.className)}):null}return(0,x.jsx)("div",{className:"margin-top--md",children:s.map(((e,n)=>(0,r.cloneElement)(e,{key:n,hidden:e.props.value!==t})))})}function w(e){const n=g(e);return(0,x.jsxs)("div",{className:(0,a.A)("tabs-container",v.tabList),children:[(0,x.jsx)(b,{...n,...e}),(0,x.jsx)(y,{...n,...e})]})}function j(e){const n=(0,f.A)();return(0,x.jsx)(w,{...e,children:u(e.children)},String(n))}},8453:(e,n,i)=>{i.d(n,{R:()=>s,x:()=>o});var r=i(6540);const a={},t=r.createContext(a);function s(e){const n=r.useContext(t);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function o(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:s(e.components),r.createElement(t.Provider,{value:n},e.children)}}}]);
\ No newline at end of file
diff --git a/assets/js/5f74c797.aea89002.js b/assets/js/5f74c797.aea89002.js
new file mode 100644
index 000000000..4d1568826
--- /dev/null
+++ b/assets/js/5f74c797.aea89002.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[5745],{4684:(e,n,i)=>{i.r(n),i.d(n,{assets:()=>d,contentTitle:()=>c,default:()=>p,frontMatter:()=>l,metadata:()=>r,toc:()=>u});const r=JSON.parse('{"id":"utilities/av1an","title":"Av1an","description":"Av1an is a video encoding framework. It can increase your encoding speed and improve CPU utilization by running multiple encoder processes in parallel. Target quality, VMAF plotting, and more, available to take advantage for video encoding.","source":"@site/docs/utilities/av1an.mdx","sourceDirName":"utilities","slug":"/utilities/av1an","permalink":"/docs/utilities/av1an","draft":false,"unlisted":false,"editUrl":"https://github.com/av1-community-contributors/codec-wiki/tree/main/docs/utilities/av1an.mdx","tags":[],"version":"current","sidebarPosition":2,"frontMatter":{"title":"Av1an","sidebar_position":2,"templating":true},"sidebar":"tutorialSidebar","previous":{"title":"Aviator","permalink":"/docs/utilities/Aviator"},"next":{"title":"ffmpeg","permalink":"/docs/utilities/ffmpeg"}}');var a=i(4848),t=i(8453),s=i(1470),o=i(9365);const l={title:"Av1an",sidebar_position:2,templating:!0},c="Av1an",d={},u=[{value:"Prerequisites",id:"prerequisites",level:2},{value:"Installation",id:"installation",level:2},{value:"Windows",id:"windows",level:3},{value:"Script",id:"script",level:4},{value:"Pre-built Binary",id:"pre-built-binary",level:4},{value:"Compile from Source",id:"compile-from-source",level:4},{value:"macOS",id:"macos",level:3},{value:"Using MacPorts",id:"using-macports",level:4},{value:"Compile from Source",id:"compile-from-source-1",level:4},{value:"Linux",id:"linux",level:3},{value:"Package Managers",id:"package-managers",level:4},{value:"Compile from Source",id:"compile-from-source-2",level:4},{value:"Docker",id:"docker",level:3},{value:"Installing Dependencies",id:"installing-dependencies",level:2},{value:"Troubleshooting",id:"troubleshooting",level:2},{value:""Error: The file 'XXXXX.ivf' could not be opened for reading: open file error." with mkvmerge on Linux",id:"error-the-file-xxxxxivf-could-not-be-opened-for-reading-open-file-error-with-mkvmerge-on-linux",level:3},{value:"Gray screen flashing for a single frame in output",id:"gray-screen-flashing-for-a-single-frame-in-output",level:3}];function h(e){const n={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",h3:"h3",h4:"h4",header:"header",li:"li",ol:"ol",p:"p",pre:"pre",strong:"strong",...(0,t.R)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.header,{children:(0,a.jsx)(n.h1,{id:"av1an",children:"Av1an"})}),"\n",(0,a.jsxs)("picture",{children:[(0,a.jsx)("source",{srcset:"https://raw.githubusercontent.com/av1-community-contributors/codec-wiki/main/static/img/av1an_96_workers.avif",type:"image/avif"}),(0,a.jsx)("img",{src:"https://autumn.revolt.chat/attachments/K3OhOCAy9bkUCkImek_q3-t6q3zctbn9SbWW-_RI19/av1an_96_workers.webp",alt:"Av1an with 96 workers"})]}),"\n",(0,a.jsx)("br",{}),"\n",(0,a.jsx)("br",{}),"\n",(0,a.jsx)(n.p,{children:"Av1an is a video encoding framework. It can increase your encoding speed and improve CPU utilization by running multiple encoder processes in parallel. Target quality, VMAF plotting, and more, available to take advantage for video encoding."}),"\n",(0,a.jsx)(n.p,{children:'The only downside to this, is that RAM usage increases significantly with each "worker" you add, so if you have a low amount of RAM (< 8GB), this might not be that useful to you.'}),"\n",(0,a.jsx)(n.admonition,{type:"caution",children:(0,a.jsx)(n.p,{children:"Av1an does not ship with any dependencies except for it's Docker image, so you will have to provide them on your own."})}),"\n",(0,a.jsx)(n.h2,{id:"prerequisites",children:"Prerequisites"}),"\n",(0,a.jsxs)(n.p,{children:["You will need Python, ",(0,a.jsx)(n.a,{href:"/docs/utilities/ffmpeg",children:"FFmpeg"})," and ",(0,a.jsx)(n.a,{href:"/docs/filtering/vapoursynth",children:"Vapoursynth"})," to be installed regardless of your current operating system."]}),"\n",(0,a.jsx)(n.h2,{id:"installation",children:"Installation"}),"\n",(0,a.jsx)(n.h3,{id:"windows",children:"Windows"}),"\n",(0,a.jsx)(n.h4,{id:"script",children:"Script"}),"\n",(0,a.jsxs)(n.p,{children:["Windows users can use this ",(0,a.jsx)(n.a,{href:"https://github.com/Hishiro64/av1an-win-script",children:"script"})," which installs everything needed in a single portable folder. Do note that you will need to update the dependencies manually once installed."]}),"\n",(0,a.jsx)(n.h4,{id:"pre-built-binary",children:"Pre-built Binary"}),"\n",(0,a.jsxs)(n.p,{children:['Av1an is available as a pre-built binary under the "',(0,a.jsx)(n.a,{href:"https://github.com/master-of-zen/Av1an/releases/tag/latest",children:"latest"}),'" tag on GitHub releases, you can simply download that and place it wherever you want.']}),"\n",(0,a.jsx)(n.h4,{id:"compile-from-source",children:"Compile from Source"}),"\n",(0,a.jsxs)(n.p,{children:["To compile from source, it is easier to use mingw-w64 which comes with ",(0,a.jsx)(n.a,{href:"https://msys2.org",children:"MSYS2"}),". Once installed, open MinGW64 and run the following:"]}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-bash",children:"pacman -Syuu; pacman -S cmake git nasm python3 mingw-w64-x86_64-gcc mingw-w64-x86_64-cmake base-devel mingw-w64-x86_64-ffmpeg mingw-w64-x86_64-rust mingw-w64-x86_64-lld mingw-w64-x86_64-clang mingw-w64-x86_64-make\n"})}),"\n",(0,a.jsxs)(n.p,{children:["Then, before you do anything further. Download Vapoursynth ",(0,a.jsx)(n.strong,{children:"portable"})," (",(0,a.jsx)(n.code,{children:"VapourSynth64-Portable-RXX.7z"}),") from its GitHub ",(0,a.jsx)(n.a,{href:"https://github.com/vapoursynth/vapoursynth/releases",children:"release page"}),". Make sure the version you chose is compatible with the current MinGW64 Python version. For example, R65 supports 3.8 and 3.11, the version from Pacman (currently) is 3.11, so you should choose that."]}),"\n",(0,a.jsxs)(n.p,{children:["After downloading, open the 7z file and head to ",(0,a.jsx)(n.code,{children:"\\sdk\\lib64"}),", copy all the libraries from there to MinGW64's ",(0,a.jsx)(n.code,{children:"lib"})," directory, this usually resides in ",(0,a.jsx)(n.code,{children:"C:\\msys64\\mingw64\\lib"}),"."]}),"\n",(0,a.jsx)(n.p,{children:"Now finally, resume your session and run the following:"}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-bash",children:'git clone https://github.com/master-of-zen/Av1an\ncd Av1an\nRUSTFLAGS="-C target-cpu=native" cargo build --release\n'})}),"\n",(0,a.jsxs)(n.p,{children:["The binary will be available in ",(0,a.jsx)(n.code,{children:"C:\\msys64\\home\\USER\\Av1an\\target\\release"}),". The ",(0,a.jsx)(n.code,{children:"USER"})," part is your Windows username."]}),"\n",(0,a.jsx)(n.h3,{id:"macos",children:"macOS"}),"\n",(0,a.jsx)(n.h4,{id:"using-macports",children:"Using MacPorts"}),"\n",(0,a.jsx)(n.p,{children:"Av1an is available in the MacPorts repository, to install just simply run:"}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-bash",children:"port install av1an\n"})}),"\n",(0,a.jsx)(n.h4,{id:"compile-from-source-1",children:"Compile from Source"}),"\n",(0,a.jsxs)(n.p,{children:["You need to have Git, Nasm, and Rust to be installed first. You can achieve this by using ",(0,a.jsx)(n.a,{href:"https://brew.sh/",children:"Homebrew"})," or similar."]}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-bash",children:'git clone https://github.com/master-of-zen/Av1an\ncd Av1an\nRUSTFLAGS="-C target-cpu=native" cargo build --release\n'})}),"\n",(0,a.jsxs)(n.p,{children:["Binary is located in ",(0,a.jsx)(n.code,{children:"Av1an/target/release"}),", you can optionally place it somewhere like ",(0,a.jsx)(n.code,{children:"/usr/local/bin"}),"."]}),"\n",(0,a.jsx)(n.h3,{id:"linux",children:"Linux"}),"\n",(0,a.jsx)(n.h4,{id:"package-managers",children:"Package Managers"}),"\n",(0,a.jsx)(n.p,{children:"Av1an is available in the package manager of some distributions such as Arch Linux. If not, you can skip to the next part every Linux user is familiar with."}),"\n",(0,a.jsx)(n.h4,{id:"compile-from-source-2",children:"Compile from Source"}),"\n",(0,a.jsx)(n.p,{children:"Just like macOS, you need to have Git, Nasm, and Rust to be installed. Can be achieved by either using your package manager or Rustup for Rust."}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-bash",children:'git clone https://github.com/master-of-zen/Av1an.git\ncd Av1an\nRUSTFLAGS="-C target-cpu=native" cargo build --release\n'})}),"\n",(0,a.jsxs)(n.p,{children:["Binary is located in ",(0,a.jsx)(n.code,{children:"Av1an/target/release"}),", you can optionally place it somewhere like ",(0,a.jsx)(n.code,{children:"/usr/local/bin"})," or ",(0,a.jsx)(n.code,{children:"/usr/bin"}),"."]}),"\n",(0,a.jsx)(n.h3,{id:"docker",children:"Docker"}),"\n",(0,a.jsx)(n.p,{children:"The following examples assume the file you want to encode is in your current working directory."}),"\n",(0,a.jsxs)(s.A,{children:[(0,a.jsx)(o.A,{value:"windows",label:"Windows",default:!0,children:(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-bash",children:'docker run --privileged -v "$(pwd):/videos" --user $(id -u):$(id -g) -it --rm masterofzen/av1an:latest -i S01E01.mkv {options}\n'})})}),(0,a.jsx)(o.A,{value:"linux",label:"Linux",children:(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-bash",children:'docker run --privileged -v "${PWD}:/videos" -it --rm masterofzen/av1an:latest -i S01E01.mkv {options}\n'})})}),(0,a.jsxs)(o.A,{value:"build",label:"Manual Build",children:[(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-bash",children:'docker build -t "av1an" .\n'})}),(0,a.jsx)(n.p,{children:"Run in the root directory of the repository. The dependencies will automatically be installed into the image, no manual installations necessary."})]})]}),"\n",(0,a.jsxs)(n.admonition,{type:"info",children:[(0,a.jsx)(n.p,{children:"To specify a different directory to use you would replace $(pwd) with the directory"}),(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-bash",children:'docker run --privileged -v "/c/Users/masterofzen/Videos":/videos --user $(id -u):$(id -g) -it --rm masterofzen/av1an:latest -i S01E01.mkv {options}\n'})}),(0,a.jsxs)(n.p,{children:["The ",(0,a.jsx)(n.code,{children:"--user"})," flag is required on Linux to avoid permission issues with the docker container not being able to write to the location, if you get permission issues ensure your user has access to the folder that you are using to encode."]})]}),"\n",(0,a.jsx)(n.admonition,{type:"caution",children:(0,a.jsx)(n.p,{children:"The Docker image ships with the default dependencies."})}),"\n",(0,a.jsx)(n.h2,{id:"installing-dependencies",children:"Installing Dependencies"}),"\n",(0,a.jsx)(n.p,{children:"You will need a chunk method installed as the built-in ones are very slow."}),"\n",(0,a.jsx)(n.h2,{id:"troubleshooting",children:"Troubleshooting"}),"\n",(0,a.jsx)(n.h3,{id:"error-the-file-xxxxxivf-could-not-be-opened-for-reading-open-file-error-with-mkvmerge-on-linux",children:"\"Error: The file 'XXXXX.ivf' could not be opened for reading: open file error.\" with mkvmerge on Linux"}),"\n",(0,a.jsxs)(n.p,{children:["Since mkvmerge opens all the encoded chunks at once, this obviously hits the default open file descriptor limit of 1024 on longer videos.\nYou can temporarily increase it with ",(0,a.jsx)(n.code,{children:"ulimit -n 20000"})," to allow opening 20,000 files at once in that session."]}),"\n",(0,a.jsx)(n.h3,{id:"gray-screen-flashing-for-a-single-frame-in-output",children:"Gray screen flashing for a single frame in output"}),"\n",(0,a.jsx)(n.p,{children:"This is a unique problem with Av1an. Since Av1an does random seeking for chunks, traditional keyframe-based decoding methods\nsuch as L-SMASH and FFMS2 may fail and result in a gray frame. There are currently only two known methods to solve this:"}),"\n",(0,a.jsxs)(n.ol,{children:["\n",(0,a.jsxs)(n.li,{children:["Create a lossless intermediary with x264 ",(0,a.jsx)(n.code,{children:"-qp 0"}),", this always fixes all related seeking issues but will result in a huge file due to it's lossless nature."]}),"\n",(0,a.jsxs)(n.li,{children:["Using a linear-decoding chunk method such as ",(0,a.jsx)(n.code,{children:"bestsource"}),", the downside to this is it's mega slow. Tests shown encode speeds drop by a whopping 10-15x slower."]}),"\n",(0,a.jsxs)(n.li,{children:["Using ",(0,a.jsx)(n.code,{children:"dgdecnv"})," chunk method. ",(0,a.jsx)(n.code,{children:"dgdecnv"})," and ",(0,a.jsx)(n.code,{children:"DGIndexNV"}),' is a proprietary CUVID-accelerated Vapoursynth "Source" decoder created by ',(0,a.jsx)(n.a,{href:"https://www.rationalqm.us/",children:"Donald Alan Graft"})," where ",(0,a.jsx)(n.code,{children:"DGIndexNV"})," is the standalone program for seeking and ",(0,a.jsx)(n.code,{children:"dgdecnv"})," is the Vapoursynth plugin itself.\nIt is especially made with random seeking in mind which makes it perfect for Av1an. Only downside is you need an NVIDIA GPU and ",(0,a.jsx)(n.code,{children:"DGIndexNV"})," only supports x86_64 platforms."]}),"\n"]})]})}function p(e={}){const{wrapper:n}={...(0,t.R)(),...e.components};return n?(0,a.jsx)(n,{...e,children:(0,a.jsx)(h,{...e})}):h(e)}},9365:(e,n,i)=>{i.d(n,{A:()=>s});i(6540);var r=i(4164);const a={tabItem:"tabItem_Ymn6"};var t=i(4848);function s(e){let{children:n,hidden:i,className:s}=e;return(0,t.jsx)("div",{role:"tabpanel",className:(0,r.A)(a.tabItem,s),hidden:i,children:n})}},1470:(e,n,i)=>{i.d(n,{A:()=>j});var r=i(6540),a=i(4164),t=i(3104),s=i(6347),o=i(205),l=i(7485),c=i(1682),d=i(679);function u(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the component should be , and every should have a unique "value" prop.`)}))?.filter(Boolean)??[]}function h(e){const{values:n,children:i}=e;return(0,r.useMemo)((()=>{const e=n??function(e){return u(e).map((e=>{let{props:{value:n,label:i,attributes:r,default:a}}=e;return{value:n,label:i,attributes:r,default:a}}))}(i);return function(e){const n=(0,c.XI)(e,((e,n)=>e.value===n.value));if(n.length>0)throw new Error(`Docusaurus error: Duplicate values "${n.map((e=>e.value)).join(", ")}" found in . Every value needs to be unique.`)}(e),e}),[n,i])}function p(e){let{value:n,tabValues:i}=e;return i.some((e=>e.value===n))}function m(e){let{queryString:n=!1,groupId:i}=e;const a=(0,s.W6)(),t=function(e){let{queryString:n=!1,groupId:i}=e;if("string"==typeof n)return n;if(!1===n)return null;if(!0===n&&!i)throw new Error('Docusaurus error: The component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return i??null}({queryString:n,groupId:i});return[(0,l.aZ)(t),(0,r.useCallback)((e=>{if(!t)return;const n=new URLSearchParams(a.location.search);n.set(t,e),a.replace({...a.location,search:n.toString()})}),[t,a])]}function g(e){const{defaultValue:n,queryString:i=!1,groupId:a}=e,t=h(e),[s,l]=(0,r.useState)((()=>function(e){let{defaultValue:n,tabValues:i}=e;if(0===i.length)throw new Error("Docusaurus error: the component requires at least one children component");if(n){if(!p({value:n,tabValues:i}))throw new Error(`Docusaurus error: The has a defaultValue "${n}" but none of its children has the corresponding value. Available values are: ${i.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return n}const r=i.find((e=>e.default))??i[0];if(!r)throw new Error("Unexpected error: 0 tabValues");return r.value}({defaultValue:n,tabValues:t}))),[c,u]=m({queryString:i,groupId:a}),[g,f]=function(e){let{groupId:n}=e;const i=function(e){return e?`docusaurus.tab.${e}`:null}(n),[a,t]=(0,d.Dv)(i);return[a,(0,r.useCallback)((e=>{i&&t.set(e)}),[i,t])]}({groupId:a}),v=(()=>{const e=c??g;return p({value:e,tabValues:t})?e:null})();(0,o.A)((()=>{v&&l(v)}),[v]);return{selectedValue:s,selectValue:(0,r.useCallback)((e=>{if(!p({value:e,tabValues:t}))throw new Error(`Can't select invalid tab value=${e}`);l(e),u(e),f(e)}),[u,f,t]),tabValues:t}}var f=i(2303);const v={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var x=i(4848);function b(e){let{className:n,block:i,selectedValue:r,selectValue:s,tabValues:o}=e;const l=[],{blockElementScrollPositionUntilNextRender:c}=(0,t.a_)(),d=e=>{const n=e.currentTarget,i=l.indexOf(n),a=o[i].value;a!==r&&(c(n),s(a))},u=e=>{let n=null;switch(e.key){case"Enter":d(e);break;case"ArrowRight":{const i=l.indexOf(e.currentTarget)+1;n=l[i]??l[0];break}case"ArrowLeft":{const i=l.indexOf(e.currentTarget)-1;n=l[i]??l[l.length-1];break}}n?.focus()};return(0,x.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,a.A)("tabs",{"tabs--block":i},n),children:o.map((e=>{let{value:n,label:i,attributes:t}=e;return(0,x.jsx)("li",{role:"tab",tabIndex:r===n?0:-1,"aria-selected":r===n,ref:e=>l.push(e),onKeyDown:u,onClick:d,...t,className:(0,a.A)("tabs__item",v.tabItem,t?.className,{"tabs__item--active":r===n}),children:i??n},n)}))})}function y(e){let{lazy:n,children:i,selectedValue:t}=e;const s=(Array.isArray(i)?i:[i]).filter(Boolean);if(n){const e=s.find((e=>e.props.value===t));return e?(0,r.cloneElement)(e,{className:(0,a.A)("margin-top--md",e.props.className)}):null}return(0,x.jsx)("div",{className:"margin-top--md",children:s.map(((e,n)=>(0,r.cloneElement)(e,{key:n,hidden:e.props.value!==t})))})}function w(e){const n=g(e);return(0,x.jsxs)("div",{className:(0,a.A)("tabs-container",v.tabList),children:[(0,x.jsx)(b,{...n,...e}),(0,x.jsx)(y,{...n,...e})]})}function j(e){const n=(0,f.A)();return(0,x.jsx)(w,{...e,children:u(e.children)},String(n))}},8453:(e,n,i)=>{i.d(n,{R:()=>s,x:()=>o});var r=i(6540);const a={},t=r.createContext(a);function s(e){const n=r.useContext(t);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function o(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:s(e.components),r.createElement(t.Provider,{value:n},e.children)}}}]);
\ No newline at end of file
diff --git a/assets/js/6256.71aff5ef.js b/assets/js/6256.73278753.js
similarity index 98%
rename from assets/js/6256.71aff5ef.js
rename to assets/js/6256.73278753.js
index a6a484a70..6d9afb1e6 100644
--- a/assets/js/6256.71aff5ef.js
+++ b/assets/js/6256.73278753.js
@@ -1,2 +1,2 @@
-/*! For license information please see 6256.71aff5ef.js.LICENSE.txt */
-(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[6256],{2200:(e,t,n)=>{"use strict";n.d(t,{z1:()=>S,cM:()=>b});var r=n(2456),o=n(6250),i=2,a=.16,l=.05,c=.05,s=.15,u=5,d=4,f=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function p(e){var t=e.r,n=e.g,o=e.b,i=(0,r.wE)(t,n,o);return{h:360*i.h,s:i.s,v:i.v}}function v(e){var t=e.r,n=e.g,o=e.b;return"#".concat((0,r.Ob)(t,n,o,!1))}function m(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-i*t:Math.round(e.h)+i*t:n?Math.round(e.h)+i*t:Math.round(e.h)-i*t)<0?r+=360:r>=360&&(r-=360),r}function h(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-a*t:t===d?e.s+a:e.s+l*t)>1&&(r=1),n&&t===u&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function g(e,t,n){var r;return(r=n?e.v+c*t:e.v-s*t)>1&&(r=1),Number(r.toFixed(2))}function b(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=(0,o.RO)(e),i=u;i>0;i-=1){var a=p(r),l=v((0,o.RO)({h:m(a,i,!0),s:h(a,i,!0),v:g(a,i,!0)}));n.push(l)}n.push(v(r));for(var c=1;c<=d;c+=1){var s=p(r),b=v((0,o.RO)({h:m(s,c),s:h(s,c),v:g(s,c)}));n.push(b)}return"dark"===t.theme?f.map((function(e){var r,i,a,l=e.index,c=e.opacity;return v((r=(0,o.RO)(t.backgroundColor||"#141414"),i=(0,o.RO)(n[l]),a=100*c/100,{r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b}))})):n}var y={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},A={},w={};Object.keys(y).forEach((function(e){A[e]=b(y[e]),A[e].primary=A[e][5],w[e]=b(y[e],{theme:"dark",backgroundColor:"#141414"}),w[e].primary=w[e][5]}));A.red,A.volcano,A.gold,A.orange,A.yellow,A.lime,A.green,A.cyan;var S=A.blue;A.geekblue,A.purple,A.magenta,A.grey,A.grey},1466:(e,t,n)=>{"use strict";n.d(t,{Mo:()=>lt,an:()=>O,Ki:()=>_,zA:()=>L,RC:()=>it,hV:()=>ee,IV:()=>rt});var r=n(4467),o=n(6636),i=n(4241),a=n(9379);const l=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)};var c=n(5089),s=n(6540),u=n.t(s,2),d=(n(8104),n(3210),n(3029)),f=n(2901),p="%";function v(e){return e.join(p)}const m=function(){function e(t){(0,d.A)(this,e),(0,r.A)(this,"instanceId",void 0),(0,r.A)(this,"cache",new Map),this.instanceId=t}return(0,f.A)(e,[{key:"get",value:function(e){return this.opGet(v(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(v(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}();var h="data-token-hash",g="data-css-hash",b="__cssinjs_instance__";function y(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(g,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[b]=t[b]||e,t[b]===e&&document.head.insertBefore(t,n)}));var r={};Array.from(document.querySelectorAll("style[".concat(g,"]"))).forEach((function(t){var n,o=t.getAttribute(g);r[o]?t[b]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0}))}return new m(e)}var A=s.createContext({hashPriority:"low",cache:y(),defaultCache:!0});const w=A;var S=n(2284),x=n(998);var C=function(){function e(){(0,d.A)(this,e),(0,r.A)(this,"cache",void 0),(0,r.A)(this,"keys",void 0),(0,r.A)(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return(0,f.A)(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach((function(e){var t;o?o=null===(t=o)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):o=void 0})),null!==(t=o)&&void 0!==t&&t.value&&r&&(o.value[1]=this.cacheCallTimes++),null===(n=o)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce((function(e,t){var n=(0,o.A)(e,2)[1];return r.internalGet(t)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),E+=1}return(0,f.A)(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),$=new C;function O(e){var t=Array.isArray(e)?e:[e];return $.has(t)||$.set(t,new M(t)),$.get(t)}var T=new WeakMap,R={};var z=new WeakMap;function P(e){var t=z.get(e)||"";return t||(Object.keys(e).forEach((function(n){var r=e[n];t+=n,r instanceof M?t+=r.id:r&&"object"===(0,S.A)(r)?t+=P(r):t+=r})),z.set(e,t)),t}function N(e,t){return l("".concat(t,"_").concat(P(e)))}"random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,"");var I=(0,x.A)();function L(e){return"number"==typeof e?"".concat(e,"px"):e}function j(e,t,n){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var l=(0,a.A)((0,a.A)({},i),{},(o={},(0,r.A)(o,h,t),(0,r.A)(o,g,n),o)),c=Object.keys(l).map((function(e){var t=l[e];return t?"".concat(e,'="').concat(t,'"'):null})).filter((function(e){return e})).join(" ");return"")}var _=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},H=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!=n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map((function(e){var t=(0,o.A)(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")})).join(""),"}"):""},D=function(e,t,n){var r={},i={};return Object.entries(e).forEach((function(e){var t,a,l=(0,o.A)(e,2),c=l[0],s=l[1];if(null!=n&&null!==(t=n.preserve)&&void 0!==t&&t[c])i[c]=s;else if(!("string"!=typeof s&&"number"!=typeof s||null!=n&&null!==(a=n.ignore)&&void 0!==a&&a[c])){var u,d=_(c,null==n?void 0:n.prefix);r[d]="number"!=typeof s||null!=n&&null!==(u=n.unitless)&&void 0!==u&&u[c]?String(s):"".concat(s,"px"),i[c]="var(".concat(d,")")}})),[i,H(r,t,{scope:null==n?void 0:n.scope})]},B=n(981),W=(0,a.A)({},u).useInsertionEffect;const F=W?function(e,t,n){return W((function(){return e(),t()}),n)}:function(e,t,n){s.useMemo(e,n),(0,B.A)((function(){return t(!0)}),n)};const X=void 0!==(0,a.A)({},u).useInsertionEffect?function(e){var t=[],n=!1;return s.useEffect((function(){return n=!1,function(){n=!0,t.length&&t.forEach((function(e){return e()}))}}),e),function(e){n||t.push(e)}}:function(){return function(e){e()}};const K=function(){return!1};function G(e,t,n,r,a){var l=s.useContext(w).cache,c=v([e].concat((0,i.A)(t))),u=X([c]),d=(K(),function(e){l.opUpdate(c,(function(t){var r=t||[void 0,void 0],i=(0,o.A)(r,2),a=i[0];var l=[void 0===a?0:a,i[1]||n()];return e?e(l):l}))});s.useMemo((function(){d()}),[c]);var f=l.opGet(c)[1];return F((function(){null==a||a(f)}),(function(e){return d((function(t){var n=(0,o.A)(t,2),r=n[0],i=n[1];return e&&0===r&&(null==a||a(f)),[r+1,i]})),function(){l.opUpdate(c,(function(t){var n=t||[],i=(0,o.A)(n,2),a=i[0],s=void 0===a?0:a,d=i[1];return 0===s-1?(u((function(){!e&&l.opGet(c)||null==r||r(d,!1)})),null):[s-1,d]}))}}),[c]),f}var q={},Y="css",U=new Map;var V=0;function Q(e,t){U.set(e,(U.get(e)||0)-1);var n=Array.from(U.keys()),r=n.filter((function(e){return(U.get(e)||0)<=0}));n.length-r.length>V&&r.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(h,'="').concat(e,'"]')).forEach((function(e){var n;e[b]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),U.delete(e)}))}var Z=function(e,t,n,r){var o=n.getDerivativeToken(e),i=(0,a.A)((0,a.A)({},o),t);return r&&(i=r(i)),i},J="token";function ee(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,s.useContext)(w),u=r.cache.instanceId,d=r.container,f=n.salt,p=void 0===f?"":f,v=n.override,m=void 0===v?q:v,y=n.formatToken,A=n.getComputedToken,S=n.cssVar,x=function(e,t){for(var n=T,r=0;r0?ve(ke,--xe):0,we--,10===Ce&&(we=1,Ae--),Ce}function $e(){return Ce=xe2||ze(Ce)>3?"":" "}function je(e,t){for(;--t&&$e()&&!(Ce<48||Ce>102||Ce>57&&Ce<65||Ce>70&&Ce<97););return Re(e,Te()+(t<6&&32==Oe()&&32==$e()))}function _e(e){for(;$e();)switch(Ce){case e:return xe;case 34:case 39:34!==e&&39!==e&&_e(Ce);break;case 40:41===e&&_e(e);break;case 92:$e()}return xe}function He(e,t){for(;$e()&&e+Ce!==57&&(e+Ce!==84||47!==Oe()););return"/*"+Re(t,xe-1)+"*"+ue(47===e?e:$e())}function De(e){for(;!ze(Oe());)$e();return Re(e,xe)}function Be(e){return Ne(We("",null,null,null,[""],e=Pe(e),0,[0],e))}function We(e,t,n,r,o,i,a,l,c){for(var s=0,u=0,d=a,f=0,p=0,v=0,m=1,h=1,g=1,b=0,y="",A=o,w=i,S=r,x=y;h;)switch(v=b,b=$e()){case 40:if(108!=v&&58==ve(x,d-1)){-1!=pe(x+=fe(Ie(b),"&","&\f"),"&\f",se(s?l[s-1]:0))&&(g=-1);break}case 34:case 39:case 91:x+=Ie(b);break;case 9:case 10:case 13:case 32:x+=Le(v);break;case 92:x+=je(Te()-1,7);continue;case 47:switch(Oe()){case 42:case 47:ge(Xe(He($e(),Te()),t,n,c),c);break;default:x+="/"}break;case 123*m:l[s++]=he(x)*g;case 125*m:case 59:case 0:switch(b){case 0:case 125:h=0;case 59+u:-1==g&&(x=fe(x,/\f/g,"")),p>0&&he(x)-d&&ge(p>32?Ke(x+";",r,n,d-1,c):Ke(fe(x," ","")+";",r,n,d-2,c),c);break;case 59:x+=";";default:if(ge(S=Fe(x,t,n,s,u,o,l,y,A=[],w=[],d,i),i),123===b)if(0===u)We(x,t,S,S,A,i,d,l,w);else switch(99===f&&110===ve(x,3)?100:f){case 100:case 108:case 109:case 115:We(e,S,S,r&&ge(Fe(e,S,S,0,0,o,l,y,o,A=[],d,w),w),o,w,d,l,r?A:w);break;default:We(x,S,S,S,[""],w,0,l,w)}}s=u=p=0,m=g=1,y=x="",d=a;break;case 58:d=1+he(x),p=v;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==Me())continue;switch(x+=ue(b),b*m){case 38:g=u>0?1:(x+="\f",-1);break;case 44:l[s++]=(he(x)-1)*g,g=1;break;case 64:45===Oe()&&(x+=Ie($e())),f=Oe(),u=d=he(y=x+=De(Te())),b++;break;case 45:45===v&&2==he(x)&&(m=0)}}return i}function Fe(e,t,n,r,o,i,a,l,c,s,u,d){for(var f=o-1,p=0===o?i:[""],v=function(e){return e.length}(p),m=0,h=0,g=0;m0?p[b]+" "+y:fe(y,/&\f/g,p[b])))&&(c[g++]=A);return Ee(e,t,n,0===o?oe:l,c,s,u,d)}function Xe(e,t,n,r){return Ee(e,t,n,re,ue(Ce),me(e,2,-2),0,r)}function Ke(e,t,n,r,o){return Ee(e,t,n,ie,me(e,0,r),me(e,r+1,-1),r,o)}var Ge,qe="data-ant-cssinjs-cache-path",Ye="_FILE_STYLE__";var Ue=!0;function Ve(e){return function(){if(!Ge&&(Ge={},(0,x.A)())){var e=document.createElement("div");e.className=qe,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";(t=t.replace(/^"/,"").replace(/"$/,"")).split(";").forEach((function(e){var t=e.split(":"),n=(0,o.A)(t,2),r=n[0],i=n[1];Ge[r]=i}));var n,r=document.querySelector("style[".concat(qe,"]"));r&&(Ue=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!Ge[e]}var Qe="_multi_value_";function Ze(e){return be(Be(e),ye).replace(/\{%%%\:[^;];}/g,";")}var Je=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},l=r.root,c=r.injectHash,s=r.parentSelectors,u=n.hashId,d=n.layer,f=(n.path,n.hashPriority),p=n.transformers,v=void 0===p?[]:p,m=(n.linters,""),h={};function g(t){var r=t.getName(u);if(!h[r]){var i=e(t.style,n,{root:!1,parentSelectors:s}),a=(0,o.A)(i,1)[0];h[r]="@keyframes ".concat(t.getName(u)).concat(a)}}var b=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach((function(t){Array.isArray(t)?e(t,n):t&&n.push(t)})),n}(Array.isArray(t)?t:[t]);return b.forEach((function(t){var r="string"!=typeof t||l?t:{};if("string"==typeof r)m+="".concat(r,"\n");else if(r._keyframe)g(r);else{var d=v.reduce((function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),r);Object.keys(d).forEach((function(t){var r=d[t];if("object"!==(0,S.A)(r)||!r||"animationName"===t&&r._keyframe||function(e){return"object"===(0,S.A)(e)&&e&&("_skip_check_"in e||Qe in e)}(r)){var p;function E(e,t){var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),r=t;ne[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(g(t),r=t.getName(u)),m+="".concat(n,":").concat(r,";")}var v=null!==(p=null==r?void 0:r.value)&&void 0!==p?p:r;"object"===(0,S.A)(r)&&null!=r&&r[Qe]&&Array.isArray(v)?v.forEach((function(e){E(t,e)})):E(t,v)}else{var b=!1,y=t.trim(),A=!1;(l||c)&&u?y.startsWith("@")?b=!0:y=function(e,t,n){if(!t)return e;var r=".".concat(t),o="low"===n?":where(".concat(r,")"):r;return e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",a=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(a).concat(o).concat(r.slice(a.length))].concat((0,i.A)(n.slice(1))).join(" ")})).join(",")}(t,u,f):!l||u||"&"!==y&&""!==y||(y="",A=!0);var w=e(r,n,{root:A,injectHash:b,parentSelectors:[].concat((0,i.A)(s),[y])}),x=(0,o.A)(w,2),C=x[0],k=x[1];h=(0,a.A)((0,a.A)({},h),k),m+="".concat(y).concat(C)}}))}})),l?d&&(m="@layer ".concat(d.name," {").concat(m,"}"),d.dependencies&&(h["@layer ".concat(d.name)]=d.dependencies.map((function(e){return"@layer ".concat(e,", ").concat(d.name,";")})).join("\n"))):m="{".concat(m,"}"),[m,h]};function et(e,t){return l("".concat(e.join("%")).concat(t))}function tt(){return null}var nt="style";function rt(e,t){var n=e.token,l=e.path,u=e.hashId,d=e.layer,f=e.nonce,p=e.clientOnly,v=e.order,m=void 0===v?0:v,y=s.useContext(w),A=y.autoClear,S=(y.mock,y.defaultCache),C=y.hashPriority,k=y.container,E=y.ssrInline,M=y.transformers,$=y.linters,O=y.cache,T=y.layer,R=n._tokenKey,z=[R];T&&z.push("layer"),z.push.apply(z,(0,i.A)(l));var P=I;var N=G(nt,z,(function(){var e=z.join("|");if(Ve(e)){var n=function(e){var t=Ge[e],n=null;if(t&&(0,x.A)())if(Ue)n=Ye;else{var r=document.querySelector("style[".concat(g,'="').concat(Ge[e],'"]'));r?n=r.innerHTML:delete Ge[e]}return[n,t]}(e),r=(0,o.A)(n,2),i=r[0],a=r[1];if(i)return[i,R,a,{},p,m]}var c=t(),s=Je(c,{hashId:u,hashPriority:C,layer:T?d:void 0,path:l.join("-"),transformers:M,linters:$}),f=(0,o.A)(s,2),v=f[0],h=f[1],b=Ze(v),y=et(z,b);return[b,R,y,h,p,m]}),(function(e,t){var n=(0,o.A)(e,3)[2];(t||A)&&I&&(0,c.m6)(n,{mark:g})}),(function(e){var t=(0,o.A)(e,4),n=t[0],r=(t[1],t[2]),i=t[3];if(P&&n!==Ye){var l={mark:g,prepend:!T&&"queue",attachTo:k,priority:m},s="function"==typeof f?f():f;s&&(l.csp={nonce:s});var u=[],d=[];Object.keys(i).forEach((function(e){e.startsWith("@layer")?u.push(e):d.push(e)})),u.forEach((function(e){(0,c.BD)(Ze(i[e]),"_layer-".concat(e),(0,a.A)((0,a.A)({},l),{},{prepend:!0}))}));var p=(0,c.BD)(n,r,l);p[b]=O.instanceId,p.setAttribute(h,R),d.forEach((function(e){(0,c.BD)(Ze(i[e]),"_effect-".concat(e),l)}))}})),L=(0,o.A)(N,3),j=L[0],_=L[1],H=L[2];return function(e){var t,n;E&&!P&&S?t=s.createElement("style",(0,te.A)({},(n={},(0,r.A)(n,h,_),(0,r.A)(n,g,H),n),{dangerouslySetInnerHTML:{__html:j}})):t=s.createElement(tt,null);return s.createElement(s.Fragment,null,t,e)}}var ot="cssVar";const it=function(e,t){var n=e.key,r=e.prefix,a=e.unitless,l=e.ignore,u=e.token,d=e.scope,f=void 0===d?"":d,p=(0,s.useContext)(w),v=p.cache.instanceId,m=p.container,y=u._tokenKey,A=[].concat((0,i.A)(e.path),[n,f,y]);return G(ot,A,(function(){var e=t(),i=D(e,n,{prefix:r,unitless:a,ignore:l,scope:f}),c=(0,o.A)(i,2),s=c[0],u=c[1];return[s,u,et(A,u),n]}),(function(e){var t=(0,o.A)(e,3)[2];I&&(0,c.m6)(t,{mark:g})}),(function(e){var t=(0,o.A)(e,3),r=t[1],i=t[2];if(r){var a=(0,c.BD)(r,i,{mark:g,prepend:"queue",attachTo:m,priority:-999});a[b]=v,a.setAttribute(h,n)}}))};var at;at={},(0,r.A)(at,nt,(function(e,t,n){var r=(0,o.A)(e,6),i=r[0],a=r[1],l=r[2],c=r[3],s=r[4],u=r[5],d=(n||{}).plain;if(s)return null;var f=i,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return f=j(i,a,l,p,d),c&&Object.keys(c).forEach((function(e){if(!t[e]){t[e]=!0;var n=j(Ze(c[e]),a,"_effect-".concat(e),p,d);e.startsWith("@layer")?f=n+f:f+=n}})),[u,l,f]})),(0,r.A)(at,J,(function(e,t,n){var r=(0,o.A)(e,5),i=r[2],a=r[3],l=r[4],c=(n||{}).plain;if(!a)return null;var s=i._tokenKey;return[-999,s,j(a,l,s,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},c)]})),(0,r.A)(at,ot,(function(e,t,n){var r=(0,o.A)(e,4),i=r[1],a=r[2],l=r[3],c=(n||{}).plain;if(!i)return null;return[-999,a,j(i,l,a,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},c)]}));const lt=function(){function e(t,n){(0,d.A)(this,e),(0,r.A)(this,"name",void 0),(0,r.A)(this,"style",void 0),(0,r.A)(this,"_keyframe",!0),this.name=t,this.style=n}return(0,f.A)(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();function ct(e){return e.notSplit=!0,e}ct(["borderTop","borderBottom"]),ct(["borderTop"]),ct(["borderBottom"]),ct(["borderLeft","borderRight"]),ct(["borderLeft"]),ct(["borderRight"])},8046:(e,t,n)=>{"use strict";n.d(t,{A:()=>O});var r=n(8168),o=n(6636),i=n(4467),a=n(45),l=n(6540),c=n(6942),s=n.n(c),u=n(2200);const d=(0,l.createContext)({});var f=n(9379),p=n(2284),v=n(5089),m=n(2633),h=n(8210);function g(e){return"object"===(0,p.A)(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===(0,p.A)(e.icon)||"function"==typeof e.icon)}function b(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r,o=e[n];if("class"===n)t.className=o,delete t.class;else delete t[n],t[(r=n,r.replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=o;return t}),{})}function y(e,t,n){return n?l.createElement(e.tag,(0,f.A)((0,f.A)({key:t},b(e.attrs)),n),(e.children||[]).map((function(n,r){return y(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))):l.createElement(e.tag,(0,f.A)({key:t},b(e.attrs)),(e.children||[]).map((function(n,r){return y(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function A(e){return(0,u.cM)(e)[0]}function w(e){return e?Array.isArray(e)?e:[e]:[]}var S=["icon","className","onClick","style","primaryColor","secondaryColor"],x={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var C=function(e){var t,n,r,o,i,c,s,u=e.icon,p=e.className,b=e.onClick,w=e.style,C=e.primaryColor,k=e.secondaryColor,E=(0,a.A)(e,S),M=l.useRef(),$=x;if(C&&($={primaryColor:C,secondaryColor:k||A(C)}),t=M,n=(0,l.useContext)(d),r=n.csp,o=n.prefixCls,i="\n.anticon {\n display: inline-flex;\n alignItems: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",o&&(i=i.replace(/anticon/g,o)),(0,l.useEffect)((function(){var e=t.current,n=(0,m.j)(e);(0,v.BD)(i,"@ant-design-icons",{prepend:!0,csp:r,attachTo:n})}),[]),c=g(u),s="icon should be icon definiton, but got ".concat(u),(0,h.Ay)(c,"[@ant-design/icons] ".concat(s)),!g(u))return null;var O=u;return O&&"function"==typeof O.icon&&(O=(0,f.A)((0,f.A)({},O),{},{icon:O.icon($.primaryColor,$.secondaryColor)})),y(O.icon,"svg-".concat(O.name),(0,f.A)((0,f.A)({className:p,onClick:b,style:w,"data-icon":O.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},E),{},{ref:M}))};C.displayName="IconReact",C.getTwoToneColors=function(){return(0,f.A)({},x)},C.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;x.primaryColor=t,x.secondaryColor=n||A(t),x.calculated=!!n};const k=C;function E(e){var t=w(e),n=(0,o.A)(t,2),r=n[0],i=n[1];return k.setTwoToneColors({primaryColor:r,secondaryColor:i})}var M=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];E(u.z1.primary);var $=l.forwardRef((function(e,t){var n=e.className,c=e.icon,u=e.spin,f=e.rotate,p=e.tabIndex,v=e.onClick,m=e.twoToneColor,h=(0,a.A)(e,M),g=l.useContext(d),b=g.prefixCls,y=void 0===b?"anticon":b,A=g.rootClassName,S=s()(A,y,(0,i.A)((0,i.A)({},"".concat(y,"-").concat(c.name),!!c.name),"".concat(y,"-spin"),!!u||"loading"===c.name),n),x=p;void 0===x&&v&&(x=-1);var C=f?{msTransform:"rotate(".concat(f,"deg)"),transform:"rotate(".concat(f,"deg)")}:void 0,E=w(m),$=(0,o.A)(E,2),O=$[0],T=$[1];return l.createElement("span",(0,r.A)({role:"img","aria-label":c.name},h,{ref:t,tabIndex:x,onClick:v,className:S}),l.createElement(k,{icon:c,primaryColor:O,secondaryColor:T,style:C}))}));$.displayName="AntdIcon",$.getTwoToneColor=function(){var e=k.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},$.setTwoToneColor=E;const O=$},6467:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(8168),o=n(6540);const i={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};var a=n(8046),l=function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))};const c=o.forwardRef(l)},8633:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(8168),o=n(6540);const i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};var a=n(8046),l=function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))};const c=o.forwardRef(l)},363:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(8168),o=n(6540);const i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};var a=n(8046),l=function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))};const c=o.forwardRef(l)},2456:(e,t,n)=>{"use strict";n.d(t,{H:()=>d,K6:()=>i,Me:()=>s,Ob:()=>u,YL:()=>l,_:()=>o,g8:()=>v,n6:()=>p,oS:()=>m,wE:()=>c});var r=n(9244);function o(e,t,n){return{r:255*(0,r.Cg)(e,255),g:255*(0,r.Cg)(t,255),b:255*(0,r.Cg)(n,255)}}function i(e,t,n){e=(0,r.Cg)(e,255),t=(0,r.Cg)(t,255),n=(0,r.Cg)(n,255);var o=Math.max(e,t,n),i=Math.min(e,t,n),a=0,l=0,c=(o+i)/2;if(o===i)l=0,a=0;else{var s=o-i;switch(l=c>.5?s/(2-o-i):s/(o+i),o){case e:a=(t-n)/s+(t1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function l(e,t,n){var o,i,l;if(e=(0,r.Cg)(e,360),t=(0,r.Cg)(t,100),n=(0,r.Cg)(n,100),0===t)i=n,l=n,o=n;else{var c=n<.5?n*(1+t):n+t-n*t,s=2*n-c;o=a(s,c,e+1/3),i=a(s,c,e),l=a(s,c,e-1/3)}return{r:255*o,g:255*i,b:255*l}}function c(e,t,n){e=(0,r.Cg)(e,255),t=(0,r.Cg)(t,255),n=(0,r.Cg)(n,255);var o=Math.max(e,t,n),i=Math.min(e,t,n),a=0,l=o,c=o-i,s=0===o?0:c/o;if(o===i)a=0;else{switch(o){case e:a=(t-n)/c+(t>16,g:(65280&e)>>8,b:255&e}}},2434:(e,t,n)=>{"use strict";n.d(t,{D:()=>r});var r={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}},6250:(e,t,n)=>{"use strict";n.d(t,{RO:()=>a});var r=n(2456),o=n(2434),i=n(9244);function a(e){var t={r:0,g:0,b:0},n=1,a=null,l=null,c=null,s=!1,f=!1;return"string"==typeof e&&(e=function(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;var t=!1;if(o.D[e])e=o.D[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=u.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=u.rgba.exec(e),n)return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=u.hsl.exec(e),n)return{h:n[1],s:n[2],l:n[3]};if(n=u.hsla.exec(e),n)return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=u.hsv.exec(e),n)return{h:n[1],s:n[2],v:n[3]};if(n=u.hsva.exec(e),n)return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=u.hex8.exec(e),n)return{r:(0,r.g8)(n[1]),g:(0,r.g8)(n[2]),b:(0,r.g8)(n[3]),a:(0,r.n6)(n[4]),format:t?"name":"hex8"};if(n=u.hex6.exec(e),n)return{r:(0,r.g8)(n[1]),g:(0,r.g8)(n[2]),b:(0,r.g8)(n[3]),format:t?"name":"hex"};if(n=u.hex4.exec(e),n)return{r:(0,r.g8)(n[1]+n[1]),g:(0,r.g8)(n[2]+n[2]),b:(0,r.g8)(n[3]+n[3]),a:(0,r.n6)(n[4]+n[4]),format:t?"name":"hex8"};if(n=u.hex3.exec(e),n)return{r:(0,r.g8)(n[1]+n[1]),g:(0,r.g8)(n[2]+n[2]),b:(0,r.g8)(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(d(e.r)&&d(e.g)&&d(e.b)?(t=(0,r._)(e.r,e.g,e.b),s=!0,f="%"===String(e.r).substr(-1)?"prgb":"rgb"):d(e.h)&&d(e.s)&&d(e.v)?(a=(0,i.Px)(e.s),l=(0,i.Px)(e.v),t=(0,r.Me)(e.h,a,l),s=!0,f="hsv"):d(e.h)&&d(e.s)&&d(e.l)&&(a=(0,i.Px)(e.s),c=(0,i.Px)(e.l),t=(0,r.YL)(e.h,a,c),s=!0,f="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=(0,i.TV)(n),{ok:s,format:e.format||f,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var l="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),c="[\\s|\\(]+(".concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")\\s*\\)?"),s="[\\s|\\(]+(".concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")\\s*\\)?"),u={CSS_UNIT:new RegExp(l),rgb:new RegExp("rgb"+c),rgba:new RegExp("rgba"+s),hsl:new RegExp("hsl"+c),hsla:new RegExp("hsla"+s),hsv:new RegExp("hsv"+c),hsva:new RegExp("hsva"+s),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function d(e){return Boolean(u.CSS_UNIT.exec(String(e)))}},4978:(e,t,n)=>{"use strict";n.d(t,{q:()=>l});var r=n(2456),o=n(2434),i=n(6250),a=n(9244),l=function(){function e(t,n){var o;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=(0,r.oS)(t)),this.originalInput=t;var a=(0,i.RO)(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(o=n.format)&&void 0!==o?o:a.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=(0,a.TV)(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=(0,r.wE)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=(0,r.wE)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=(0,r.K6)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=(0,r.K6)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),(0,r.Ob)(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),(0,r.H)(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*(0,a.Cg)(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*(0,a.Cg)(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+(0,r.Ob)(this.r,this.g,this.b,!1),t=0,n=Object.entries(o.D);t=0;return t||!r||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=(0,a.J$)(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=(0,a.J$)(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=(0,a.J$)(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=(0,a.J$)(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100;return new e({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],l=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+l)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a{"use strict";function r(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function o(e){return Math.min(1,Math.max(0,e))}function i(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function a(e){return e<=1?"".concat(100*Number(e),"%"):e}function l(e){return 1===e.length?"0"+e:String(e)}n.d(t,{Cg:()=>r,J$:()=>o,Px:()=>a,TV:()=>i,wl:()=>l})},5470:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(6636),o=n(6540),i=n(961),a=n(998),l=(n(8210),n(8719));const c=o.createContext(null);var s=n(4241),u=n(981),d=[];var f=n(5089);function p(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r,o,i=n.style;if(i.position="absolute",i.left="0",i.top="0",i.width="100px",i.height="100px",i.overflow="scroll",e){var a=getComputedStyle(e);i.scrollbarColor=a.scrollbarColor,i.scrollbarWidth=a.scrollbarWidth;var l=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(l.width,10),s=parseInt(l.height,10);try{var u=c?"width: ".concat(l.width,";"):"",d=s?"height: ".concat(l.height,";"):"";(0,f.BD)("\n#".concat(t,"::-webkit-scrollbar {\n").concat(u,"\n").concat(d,"\n}"),t)}catch(m){console.error(m),r=c,o=s}}document.body.appendChild(n);var p=e&&r&&!isNaN(r)?r:n.offsetWidth-n.clientWidth,v=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),(0,f.m6)(t),{width:p,height:v}}var v="rc-util-locker-".concat(Date.now()),m=0;function h(e){var t=!!e,n=o.useState((function(){return m+=1,"".concat(v,"_").concat(m)})),i=(0,r.A)(n,1)[0];(0,u.A)((function(){if(t){var e=(r=document.body,"undefined"!=typeof document&&r&&r instanceof Element?p(r):{width:0,height:0}).width,n=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;(0,f.BD)("\nhtml body {\n overflow-y: hidden;\n ".concat(n?"width: calc(100% - ".concat(e,"px);"):"","\n}"),i)}else(0,f.m6)(i);var r;return function(){(0,f.m6)(i)}}),[t,i])}var g=!1;var b=function(e){return!1!==e&&((0,a.A)()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)};const y=o.forwardRef((function(e,t){var n=e.open,f=e.autoLock,p=e.getContainer,v=(e.debug,e.autoDestroy),m=void 0===v||v,y=e.children,A=o.useState(n),w=(0,r.A)(A,2),S=w[0],x=w[1],C=S||n;o.useEffect((function(){(m||n)&&x(n)}),[n,m]);var k=o.useState((function(){return b(p)})),E=(0,r.A)(k,2),M=E[0],$=E[1];o.useEffect((function(){var e=b(p);$(null!=e?e:null)}));var O=function(e,t){var n=o.useState((function(){return(0,a.A)()?document.createElement("div"):null})),i=(0,r.A)(n,1)[0],l=o.useRef(!1),f=o.useContext(c),p=o.useState(d),v=(0,r.A)(p,2),m=v[0],h=v[1],g=f||(l.current?void 0:function(e){h((function(t){return[e].concat((0,s.A)(t))}))});function b(){i.parentElement||document.body.appendChild(i),l.current=!0}function y(){var e;null===(e=i.parentElement)||void 0===e||e.removeChild(i),l.current=!1}return(0,u.A)((function(){return e?f?f(b):b():y(),y}),[e]),(0,u.A)((function(){m.length&&(m.forEach((function(e){return e()})),h(d))}),[m]),[i,g]}(C&&!M),T=(0,r.A)(O,2),R=T[0],z=T[1],P=null!=M?M:R;h(f&&n&&(0,a.A)()&&(P===R||P===document.body));var N=null;y&&(0,l.f3)(y)&&t&&(N=y.ref);var I=(0,l.xK)(N,t);if(!C||!(0,a.A)()||void 0===M)return null;var L,j=!1===P||("boolean"==typeof L&&(g=L),g),_=y;return t&&(_=o.cloneElement(y,{ref:I})),o.createElement(c.Provider,{value:z},j?_:(0,i.createPortal)(_,P))}))},3723:(e,t,n)=>{"use strict";n.d(t,{b:()=>r});const r=(e,t,n)=>void 0!==n?n:`${e}-${t}`},3864:(e,t,n)=>{"use strict";n.d(t,{A:()=>bo});var r=n(6540),o=n(6942),i=n.n(o),a=n(9853),l=n(2279);const c=r.createContext(void 0),s=c,u=e=>{const t=r.useContext(s);return r.useMemo((()=>e?"string"==typeof e?null!=e?e:t:e instanceof Function?e(t):t:t),[e,t])},d=e=>{const{prefixCls:t,className:n,style:o,size:a,shape:l}=e,c=i()({[`${t}-lg`]:"large"===a,[`${t}-sm`]:"small"===a}),s=i()({[`${t}-circle`]:"circle"===l,[`${t}-square`]:"square"===l,[`${t}-round`]:"round"===l}),u=r.useMemo((()=>"number"==typeof a?{width:a,height:a,lineHeight:`${a}px`}:{}),[a]);return r.createElement("span",{className:i()(t,c,s,n),style:Object.assign(Object.assign({},u),o)})};var f=n(1466),p=n(665),v=n(336);const m=new f.Mo("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),h=e=>({height:e,lineHeight:(0,f.zA)(e)}),g=e=>Object.assign({width:e},h(e)),b=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:m,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),y=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},h(e)),A=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i}=e;return{[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},g(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},g(o)),[`${t}${t}-sm`]:Object.assign({},g(i))}},w=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return{[`${r}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},y(t,l)),[`${r}-lg`]:Object.assign({},y(o,l)),[`${r}-sm`]:Object.assign({},y(i,l))}},S=e=>Object.assign({width:e},h(e)),x=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o,calc:i}=e;return{[`${t}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:r,borderRadius:o},S(i(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},S(n)),{maxWidth:i(n).mul(4).equal(),maxHeight:i(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},C=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},k=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},h(e)),E=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:l(r).mul(2).equal(),minWidth:l(r).mul(2).equal()},k(r,l))},C(e,r,n)),{[`${n}-lg`]:Object.assign({},k(o,l))}),C(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},k(i,l))}),C(e,i,`${n}-sm`))},M=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:l,controlHeight:c,controlHeightLG:s,controlHeightSM:u,gradientFromColor:d,padding:f,marginSM:p,borderRadius:v,titleHeight:m,blockRadius:h,paragraphLiHeight:y,controlHeightXS:S,paragraphMarginTop:C}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:f,verticalAlign:"top",[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:d},g(c)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},g(s)),[`${n}-sm`]:Object.assign({},g(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${r}`]:{width:"100%",height:m,background:d,borderRadius:h,[`+ ${o}`]:{marginBlockStart:u}},[`${o}`]:{padding:0,"> li":{width:"100%",height:y,listStyle:"none",background:d,borderRadius:h,"+ li":{marginBlockStart:S}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:v}}},[`${t}-with-avatar ${t}-content`]:{[`${r}`]:{marginBlockStart:p,[`+ ${o}`]:{marginBlockStart:C}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},E(e)),A(e)),w(e)),x(e)),[`${t}${t}-block`]:{width:"100%",[`${i}`]:{width:"100%"},[`${a}`]:{width:"100%"}},[`${t}${t}-active`]:{[`\n ${r},\n ${o} > li,\n ${n},\n ${i},\n ${a},\n ${l}\n `]:Object.assign({},b(e))}}},$=(0,p.OF)("Skeleton",(e=>{const{componentCls:t,calc:n}=e,r=(0,v.h1)(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[M(r)]}),(e=>{const{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n,gradientFromColor:t,gradientToColor:n,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}}),{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),O=e=>{const{prefixCls:t,className:n,rootClassName:o,active:c,shape:s="circle",size:u="default"}=e,{getPrefixCls:f}=r.useContext(l.QO),p=f("skeleton",t),[v,m,h]=$(p),g=(0,a.A)(e,["prefixCls","className"]),b=i()(p,`${p}-element`,{[`${p}-active`]:c},n,o,m,h);return v(r.createElement("div",{className:b},r.createElement(d,Object.assign({prefixCls:`${p}-avatar`,shape:s,size:u},g))))},T=e=>{const{prefixCls:t,className:n,rootClassName:o,active:c,block:s=!1,size:u="default"}=e,{getPrefixCls:f}=r.useContext(l.QO),p=f("skeleton",t),[v,m,h]=$(p),g=(0,a.A)(e,["prefixCls"]),b=i()(p,`${p}-element`,{[`${p}-active`]:c,[`${p}-block`]:s},n,o,m,h);return v(r.createElement("div",{className:b},r.createElement(d,Object.assign({prefixCls:`${p}-button`,size:u},g))))},R=e=>{const{prefixCls:t,className:n,rootClassName:o,style:a,active:c}=e,{getPrefixCls:s}=r.useContext(l.QO),u=s("skeleton",t),[d,f,p]=$(u),v=i()(u,`${u}-element`,{[`${u}-active`]:c},n,o,f,p);return d(r.createElement("div",{className:v},r.createElement("div",{className:i()(`${u}-image`,n),style:a},r.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${u}-image-svg`},r.createElement("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",className:`${u}-image-path`})))))},z=e=>{const{prefixCls:t,className:n,rootClassName:o,active:c,block:s,size:u="default"}=e,{getPrefixCls:f}=r.useContext(l.QO),p=f("skeleton",t),[v,m,h]=$(p),g=(0,a.A)(e,["prefixCls"]),b=i()(p,`${p}-element`,{[`${p}-active`]:c,[`${p}-block`]:s},n,o,m,h);return v(r.createElement("div",{className:b},r.createElement(d,Object.assign({prefixCls:`${p}-input`,size:u},g))))};var P=n(8168);const N={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"};var I=n(8046),L=function(e,t){return r.createElement(I.A,(0,P.A)({},e,{ref:t,icon:N}))};const j=r.forwardRef(L),_=e=>{const{prefixCls:t,className:n,rootClassName:o,style:a,active:c,children:s}=e,{getPrefixCls:u}=r.useContext(l.QO),d=u("skeleton",t),[f,p,v]=$(d),m=i()(d,`${d}-element`,{[`${d}-active`]:c},p,n,o,v),h=null!=s?s:r.createElement(j,null);return f(r.createElement("div",{className:m},r.createElement("div",{className:i()(`${d}-image`,n),style:a},h)))};var H=n(4241);const D=(e,t)=>{const{width:n,rows:r=2}=t;return Array.isArray(n)?n[e]:r-1===e?n:void 0},B=e=>{const{prefixCls:t,className:n,style:o,rows:a}=e,l=(0,H.A)(Array(a)).map(((t,n)=>r.createElement("li",{key:n,style:{width:D(n,e)}})));return r.createElement("ul",{className:i()(t,n),style:o},l)},W=e=>{let{prefixCls:t,className:n,width:o,style:a}=e;return r.createElement("h3",{className:i()(t,n),style:Object.assign({width:o},a)})};function F(e){return e&&"object"==typeof e?e:{}}const X=e=>{const{prefixCls:t,loading:n,className:o,rootClassName:a,style:c,children:s,avatar:u=!1,title:f=!0,paragraph:p=!0,active:v,round:m}=e,{getPrefixCls:h,direction:g,skeleton:b}=r.useContext(l.QO),y=h("skeleton",t),[A,w,S]=$(y);if(n||!("loading"in e)){const e=!!u,t=!!f,n=!!p;let l,s;if(e){const e=Object.assign(Object.assign({prefixCls:`${y}-avatar`},function(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(t,n)),F(u));l=r.createElement("div",{className:`${y}-header`},r.createElement(d,Object.assign({},e)))}if(t||n){let o,i;if(t){const t=Object.assign(Object.assign({prefixCls:`${y}-title`},function(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}(e,n)),F(f));o=r.createElement(W,Object.assign({},t))}if(n){const n=Object.assign(Object.assign({prefixCls:`${y}-paragraph`},function(e,t){const n={};return e&&t||(n.width="61%"),n.rows=!e&&t?3:2,n}(e,t)),F(p));i=r.createElement(B,Object.assign({},n))}s=r.createElement("div",{className:`${y}-content`},o,i)}const h=i()(y,{[`${y}-with-avatar`]:e,[`${y}-active`]:v,[`${y}-rtl`]:"rtl"===g,[`${y}-round`]:m},null==b?void 0:b.className,o,a,w,S);return A(r.createElement("div",{className:h,style:Object.assign(Object.assign({},null==b?void 0:b.style),c)},l,s))}return null!=s?s:null};X.Button=T,X.Avatar=O,X.Input=z,X.Image=R,X.Node=_;const K=X;var G=n(6467);const q={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};var Y=function(e,t){return r.createElement(I.A,(0,P.A)({},e,{ref:t,icon:q}))};const U=r.forwardRef(Y);const V={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};var Q=function(e,t){return r.createElement(I.A,(0,P.A)({},e,{ref:t,icon:V}))};const Z=r.forwardRef(Q);var J=n(4467),ee=n(9379),te=n(6636),ne=n(2284),re=n(45),oe=n(2533);const ie=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))},ae=(0,r.createContext)(null);var le=n(6351);function ce(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return r.Children.forEach(e,(function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(ce(e)):(0,le.isFragment)(e)&&e.props?n=n.concat(ce(e.props.children,t)):n.push(e))})),n}var se=n(8210),ue=n(4207),de=n(8719),fe=r.createContext(null);var pe=n(3591),ve=new Map;var me=new pe.A((function(e){e.forEach((function(e){var t,n=e.target;null===(t=ve.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));var he=n(3029),ge=n(2901),be=n(5501),ye=n(9426),Ae=function(e){(0,be.A)(n,e);var t=(0,ye.A)(n);function n(){return(0,he.A)(this,n),t.apply(this,arguments)}return(0,ge.A)(n,[{key:"render",value:function(){return this.props.children}}]),n}(r.Component);function we(e,t){var n=e.children,o=e.disabled,i=r.useRef(null),a=r.useRef(null),l=r.useContext(fe),c="function"==typeof n,s=c?n(i):n,u=r.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!c&&r.isValidElement(s)&&(0,de.f3)(s),f=d?s.ref:null,p=(0,de.xK)(f,i),v=function(){var e;return(0,ue.A)(i.current)||(i.current&&"object"===(0,ne.A)(i.current)?(0,ue.A)(null===(e=i.current)||void 0===e?void 0:e.nativeElement):null)||(0,ue.A)(a.current)};r.useImperativeHandle(t,(function(){return v()}));var m=r.useRef(e);m.current=e;var h=r.useCallback((function(e){var t=m.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),i=o.width,a=o.height,c=e.offsetWidth,s=e.offsetHeight,d=Math.floor(i),f=Math.floor(a);if(u.current.width!==d||u.current.height!==f||u.current.offsetWidth!==c||u.current.offsetHeight!==s){var p={width:d,height:f,offsetWidth:c,offsetHeight:s};u.current=p;var v=c===Math.round(i)?i:c,h=s===Math.round(a)?a:s,g=(0,ee.A)((0,ee.A)({},p),{},{offsetWidth:v,offsetHeight:h});null==l||l(g,e,r),n&&Promise.resolve().then((function(){n(g,e)}))}}),[]);return r.useEffect((function(){var e,t,n=v();return n&&!o&&(e=n,t=h,ve.has(e)||(ve.set(e,new Set),me.observe(e)),ve.get(e).add(t)),function(){return function(e,t){ve.has(e)&&(ve.get(e).delete(t),ve.get(e).size||(me.unobserve(e),ve.delete(e)))}(n,h)}}),[i.current,o]),r.createElement(Ae,{ref:a},d?r.cloneElement(s,{ref:p}):s)}const Se=r.forwardRef(we);function xe(e,t){var n=e.children;return("function"==typeof n?[n]:ce(n)).map((function(n,o){var i=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(o);return r.createElement(Se,(0,P.A)({},e,{key:i,ref:0===o?t:void 0}),n)}))}var Ce=r.forwardRef(xe);Ce.Collection=function(e){var t=e.children,n=e.onBatchResize,o=r.useRef(0),i=r.useRef([]),a=r.useContext(fe),l=r.useCallback((function(e,t,r){o.current+=1;var l=o.current;i.current.push({size:e,element:t,data:r}),Promise.resolve().then((function(){l===o.current&&(null==n||n(i.current),i.current=[])})),null==a||a(e,t,r)}),[n,a]);return r.createElement(fe.Provider,{value:l},t)};const ke=Ce;var Ee=n(6956),Me=n(5371);const $e=function(e){var t=e.activeTabOffset,n=e.horizontal,o=e.rtl,i=e.indicator,a=void 0===i?{}:i,l=a.size,c=a.align,s=void 0===c?"center":c,u=(0,r.useState)(),d=(0,te.A)(u,2),f=d[0],p=d[1],v=(0,r.useRef)(),m=r.useCallback((function(e){return"function"==typeof l?l(e):"number"==typeof l?l:e}),[l]);function h(){Me.A.cancel(v.current)}return(0,r.useEffect)((function(){var e={};if(t)if(n){e.width=m(t.width);var r=o?"right":"left";"start"===s&&(e[r]=t[r]),"center"===s&&(e[r]=t[r]+t.width/2,e.transform=o?"translateX(50%)":"translateX(-50%)"),"end"===s&&(e[r]=t[r]+t.width,e.transform="translateX(-100%)")}else e.height=m(t.height),"start"===s&&(e.top=t.top),"center"===s&&(e.top=t.top+t.height/2,e.transform="translateY(-50%)"),"end"===s&&(e.top=t.top+t.height,e.transform="translateY(-100%)");return h(),v.current=(0,Me.A)((function(){p(e)})),h}),[t,n,o,s,m]),{style:f}};var Oe={width:0,height:0,left:0,top:0};function Te(e,t){var n=r.useRef(e),o=r.useState({}),i=(0,te.A)(o,2)[1];return[n.current,function(e){var r="function"==typeof e?e(n.current):e;r!==n.current&&t(r,n.current),n.current=r,i({})}]}var Re=Math.pow(.995,20);var ze=n(981);function Pe(e){var t=(0,r.useState)(0),n=(0,te.A)(t,2),o=n[0],i=n[1],a=(0,r.useRef)(0),l=(0,r.useRef)();return l.current=e,(0,ze.o)((function(){var e;null===(e=l.current)||void 0===e||e.call(l)}),[o]),function(){a.current===o&&(a.current+=1,i(a.current))}}var Ne={width:0,height:0,left:0,top:0,right:0};function Ie(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}function Le(e){return String(e).replace(/"/g,"TABS_DQ")}function je(e,t,n,r){return!(!n||r||!1===e||void 0===e&&(!1===t||null===t))}var _e=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.editable,i=e.locale,a=e.style;return o&&!1!==o.showAdd?r.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:a,"aria-label":(null==i?void 0:i.addAriaLabel)||"Add tab",onClick:function(e){o.onEdit("add",{event:e})}},o.addIcon||"+"):null}));const He=_e;const De=r.forwardRef((function(e,t){var n,o=e.position,i=e.prefixCls,a=e.extra;if(!a)return null;var l={};return"object"!==(0,ne.A)(a)||r.isValidElement(a)?l.right=a:l=a,"right"===o&&(n=l.right),"left"===o&&(n=l.left),n?r.createElement("div",{className:"".concat(i,"-extra-content"),ref:t},n):null}));var Be=n(5470),We=n(2633),Fe=n(6855),Xe=n(8542);function Ke(e){var t=e.prefixCls,n=e.align,o=e.arrow,a=e.arrowPos,l=o||{},c=l.className,s=l.content,u=a.x,d=void 0===u?0:u,f=a.y,p=void 0===f?0:f,v=r.useRef();if(!n||!n.points)return null;var m={position:"absolute"};if(!1!==n.autoArrow){var h=n.points[0],g=n.points[1],b=h[0],y=h[1],A=g[0],w=g[1];b!==A&&["t","b"].includes(b)?"t"===b?m.top=0:m.bottom=0:m.top=p,y!==w&&["l","r"].includes(y)?"l"===y?m.left=0:m.right=0:m.left=d}return r.createElement("div",{ref:v,className:i()("".concat(t,"-arrow"),c),style:m},s)}function Ge(e){var t=e.prefixCls,n=e.open,o=e.zIndex,a=e.mask,l=e.motion;return a?r.createElement(Xe.Ay,(0,P.A)({},l,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return r.createElement("div",{style:{zIndex:o},className:i()("".concat(t,"-mask"),n)})})):null}const qe=r.memo((function(e){return e.children}),(function(e,t){return t.cache}));var Ye=r.forwardRef((function(e,t){var n=e.popup,o=e.className,a=e.prefixCls,l=e.style,c=e.target,s=e.onVisibleChanged,u=e.open,d=e.keepDom,f=e.fresh,p=e.onClick,v=e.mask,m=e.arrow,h=e.arrowPos,g=e.align,b=e.motion,y=e.maskMotion,A=e.forceRender,w=e.getPopupContainer,S=e.autoDestroy,x=e.portal,C=e.zIndex,k=e.onMouseEnter,E=e.onMouseLeave,M=e.onPointerEnter,$=e.ready,O=e.offsetX,T=e.offsetY,R=e.offsetR,z=e.offsetB,N=e.onAlign,I=e.onPrepare,L=e.stretch,j=e.targetWidth,_=e.targetHeight,H="function"==typeof n?n():n,D=u||d,B=(null==w?void 0:w.length)>0,W=r.useState(!w||!B),F=(0,te.A)(W,2),X=F[0],K=F[1];if((0,ze.A)((function(){!X&&B&&c&&K(!0)}),[X,B,c]),!X)return null;var G="auto",q={left:"-1000vw",top:"-1000vh",right:G,bottom:G};if($||!u){var Y,U=g.points,V=g.dynamicInset||(null===(Y=g._experimental)||void 0===Y?void 0:Y.dynamicInset),Q=V&&"r"===U[0][1],Z=V&&"b"===U[0][0];Q?(q.right=R,q.left=G):(q.left=O,q.right=G),Z?(q.bottom=z,q.top=G):(q.top=T,q.bottom=G)}var J={};return L&&(L.includes("height")&&_?J.height=_:L.includes("minHeight")&&_&&(J.minHeight=_),L.includes("width")&&j?J.width=j:L.includes("minWidth")&&j&&(J.minWidth=j)),u||(J.pointerEvents="none"),r.createElement(x,{open:A||D,getContainer:w&&function(){return w(c)},autoDestroy:S},r.createElement(Ge,{prefixCls:a,open:u,zIndex:C,mask:v,motion:y}),r.createElement(ke,{onResize:N,disabled:!u},(function(e){return r.createElement(Xe.Ay,(0,P.A)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:A,leavedClassName:"".concat(a,"-hidden")},b,{onAppearPrepare:I,onEnterPrepare:I,visible:u,onVisibleChanged:function(e){var t;null==b||null===(t=b.onVisibleChanged)||void 0===t||t.call(b,e),s(e)}}),(function(n,c){var s=n.className,d=n.style,v=i()(a,s,o);return r.createElement("div",{ref:(0,de.K4)(e,t,c),className:v,style:(0,ee.A)((0,ee.A)((0,ee.A)((0,ee.A)({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},q),J),d),{},{boxSizing:"border-box",zIndex:C},l),onMouseEnter:k,onMouseLeave:E,onPointerEnter:M,onClick:p},m&&r.createElement(Ke,{prefixCls:a,arrow:m,arrowPos:h,align:g}),r.createElement(qe,{cache:!u&&!f},H))}))})))}));const Ue=Ye;const Ve=r.forwardRef((function(e,t){var n=e.children,o=e.getTriggerDOMNode,i=(0,de.f3)(n),a=r.useCallback((function(e){(0,de.Xf)(t,o?o(e):e)}),[o]),l=(0,de.xK)(a,n.ref);return i?r.cloneElement(n,{ref:l}):n}));const Qe=r.createContext(null);function Ze(e){return e?Array.isArray(e)?e:[e]:[]}const Je=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1};function et(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function tt(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function nt(e){return e.ownerDocument.defaultView}function rt(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=nt(n).getComputedStyle(n);[o.overflowX,o.overflowY,o.overflow].some((function(e){return r.includes(e)}))&&t.push(n),n=n.parentElement}return t}function ot(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function it(e){return ot(parseFloat(e),0)}function at(e,t){var n=(0,ee.A)({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=nt(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,l=t.borderLeftWidth,c=t.borderRightWidth,s=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,f=e.offsetWidth,p=e.clientWidth,v=it(i),m=it(a),h=it(l),g=it(c),b=ot(Math.round(s.width/f*1e3)/1e3),y=ot(Math.round(s.height/u*1e3)/1e3),A=(f-p-h-g)*b,w=(u-d-v-m)*y,S=v*y,x=m*y,C=h*b,k=g*b,E=0,M=0;if("clip"===r){var $=it(o);E=$*b,M=$*y}var O=s.x+C-E,T=s.y+S-M,R=O+s.width+2*E-C-k-A,z=T+s.height+2*M-S-x-w;n.left=Math.max(n.left,O),n.top=Math.max(n.top,T),n.right=Math.min(n.right,R),n.bottom=Math.min(n.bottom,z)}})),n}function lt(e){var t="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),n=t.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(t)}function ct(e,t){var n=t||[],r=(0,te.A)(n,2),o=r[0],i=r[1];return[lt(e.width,o),lt(e.height,i)]}function st(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function ut(e,t){var n,r=t[0],o=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function dt(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,r){return r===t?n[e]||"c":e})).join("")}var ft=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];const pt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Be.A,t=r.forwardRef((function(t,n){var o=t.prefixCls,a=void 0===o?"rc-trigger-popup":o,l=t.children,c=t.action,s=void 0===c?"hover":c,u=t.showAction,d=t.hideAction,f=t.popupVisible,p=t.defaultPopupVisible,v=t.onPopupVisibleChange,m=t.afterPopupVisibleChange,h=t.mouseEnterDelay,g=t.mouseLeaveDelay,b=void 0===g?.1:g,y=t.focusDelay,A=t.blurDelay,w=t.mask,S=t.maskClosable,x=void 0===S||S,C=t.getPopupContainer,k=t.forceRender,E=t.autoDestroy,M=t.destroyPopupOnHide,$=t.popup,O=t.popupClassName,T=t.popupStyle,R=t.popupPlacement,z=t.builtinPlacements,P=void 0===z?{}:z,N=t.popupAlign,I=t.zIndex,L=t.stretch,j=t.getPopupClassNameFromAlign,_=t.fresh,D=t.alignPoint,B=t.onPopupClick,W=t.onPopupAlign,F=t.arrow,X=t.popupMotion,K=t.maskMotion,G=t.popupTransitionName,q=t.popupAnimation,Y=t.maskTransitionName,U=t.maskAnimation,V=t.className,Q=t.getTriggerDOMNode,Z=(0,re.A)(t,ft),J=E||M||!1,ne=r.useState(!1),oe=(0,te.A)(ne,2),ae=oe[0],le=oe[1];(0,ze.A)((function(){le(ie())}),[]);var ce=r.useRef({}),se=r.useContext(Qe),de=r.useMemo((function(){return{registerSubPopup:function(e,t){ce.current[e]=t,null==se||se.registerSubPopup(e,t)}}}),[se]),fe=(0,Fe.A)(),pe=r.useState(null),ve=(0,te.A)(pe,2),me=ve[0],he=ve[1],ge=r.useRef(null),be=(0,Ee.A)((function(e){ge.current=e,(0,ue.f)(e)&&me!==e&&he(e),null==se||se.registerSubPopup(fe,e)})),ye=r.useState(null),Ae=(0,te.A)(ye,2),we=Ae[0],Se=Ae[1],xe=r.useRef(null),Ce=(0,Ee.A)((function(e){(0,ue.f)(e)&&we!==e&&(Se(e),xe.current=e)})),Me=r.Children.only(l),$e=(null==Me?void 0:Me.props)||{},Oe={},Te=(0,Ee.A)((function(e){var t,n,r=we;return(null==r?void 0:r.contains(e))||(null===(t=(0,We.j)(r))||void 0===t?void 0:t.host)===e||e===r||(null==me?void 0:me.contains(e))||(null===(n=(0,We.j)(me))||void 0===n?void 0:n.host)===e||e===me||Object.values(ce.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),Re=tt(a,X,q,G),Pe=tt(a,K,U,Y),Ne=r.useState(p||!1),Ie=(0,te.A)(Ne,2),Le=Ie[0],je=Ie[1],_e=null!=f?f:Le,He=(0,Ee.A)((function(e){void 0===f&&je(e)}));(0,ze.A)((function(){je(f||!1)}),[f]);var De=r.useRef(_e);De.current=_e;var Be=r.useRef([]);Be.current=[];var Xe=(0,Ee.A)((function(e){var t;He(e),(null!==(t=Be.current[Be.current.length-1])&&void 0!==t?t:_e)!==e&&(Be.current.push(e),null==v||v(e))})),Ke=r.useRef(),Ge=function(){clearTimeout(Ke.current)},qe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Ge(),0===t?Xe(e):Ke.current=setTimeout((function(){Xe(e)}),1e3*t)};r.useEffect((function(){return Ge}),[]);var Ye=r.useState(!1),it=(0,te.A)(Ye,2),lt=it[0],pt=it[1];(0,ze.A)((function(e){e&&!_e||pt(!0)}),[_e]);var vt=r.useState(null),mt=(0,te.A)(vt,2),ht=mt[0],gt=mt[1],bt=r.useState([0,0]),yt=(0,te.A)(bt,2),At=yt[0],wt=yt[1],St=function(e){wt([e.clientX,e.clientY])},xt=function(e,t,n,o,i,a,l){var c=r.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[o]||{}}),s=(0,te.A)(c,2),u=s[0],d=s[1],f=r.useRef(0),p=r.useMemo((function(){return t?rt(t):[]}),[t]),v=r.useRef({});e||(v.current={});var m=(0,Ee.A)((function(){if(t&&n&&e){var r,c,s,u=t,f=u.ownerDocument,m=nt(u).getComputedStyle(u),h=m.width,g=m.height,b=m.position,y=u.style.left,A=u.style.top,w=u.style.right,S=u.style.bottom,x=u.style.overflow,C=(0,ee.A)((0,ee.A)({},i[o]),a),k=f.createElement("div");if(null===(r=u.parentElement)||void 0===r||r.appendChild(k),k.style.left="".concat(u.offsetLeft,"px"),k.style.top="".concat(u.offsetTop,"px"),k.style.position=b,k.style.height="".concat(u.offsetHeight,"px"),k.style.width="".concat(u.offsetWidth,"px"),u.style.left="0",u.style.top="0",u.style.right="auto",u.style.bottom="auto",u.style.overflow="hidden",Array.isArray(n))s={x:n[0],y:n[1],width:0,height:0};else{var E=n.getBoundingClientRect();s={x:E.x,y:E.y,width:E.width,height:E.height}}var M=u.getBoundingClientRect(),$=f.documentElement,O=$.clientWidth,T=$.clientHeight,R=$.scrollWidth,z=$.scrollHeight,P=$.scrollTop,N=$.scrollLeft,I=M.height,L=M.width,j=s.height,_=s.width,H={left:0,top:0,right:O,bottom:T},D={left:-N,top:-P,right:R-N,bottom:z-P},B=C.htmlRegion,W="visible",F="visibleFirst";"scroll"!==B&&B!==F&&(B=W);var X=B===F,K=at(D,p),G=at(H,p),q=B===W?G:K,Y=X?G:q;u.style.left="auto",u.style.top="auto",u.style.right="0",u.style.bottom="0";var U=u.getBoundingClientRect();u.style.left=y,u.style.top=A,u.style.right=w,u.style.bottom=S,u.style.overflow=x,null===(c=u.parentElement)||void 0===c||c.removeChild(k);var V=ot(Math.round(L/parseFloat(h)*1e3)/1e3),Q=ot(Math.round(I/parseFloat(g)*1e3)/1e3);if(0===V||0===Q||(0,ue.f)(n)&&!Je(n))return;var Z=C.offset,J=C.targetOffset,ne=ct(M,Z),re=(0,te.A)(ne,2),oe=re[0],ie=re[1],ae=ct(s,J),le=(0,te.A)(ae,2),ce=le[0],se=le[1];s.x-=ce,s.y-=se;var de=C.points||[],fe=(0,te.A)(de,2),pe=fe[0],ve=st(fe[1]),me=st(pe),he=ut(s,ve),ge=ut(M,me),be=(0,ee.A)({},C),ye=he.x-ge.x+oe,Ae=he.y-ge.y+ie;function wt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:q,r=M.x+e,o=M.y+t,i=r+L,a=o+I,l=Math.max(r,n.left),c=Math.max(o,n.top),s=Math.min(i,n.right),u=Math.min(a,n.bottom);return Math.max(0,(s-l)*(u-c))}var we,Se,xe,Ce,ke=wt(ye,Ae),Ee=wt(ye,Ae,G),Me=ut(s,["t","l"]),$e=ut(M,["t","l"]),Oe=ut(s,["b","r"]),Te=ut(M,["b","r"]),Re=C.overflow||{},ze=Re.adjustX,Pe=Re.adjustY,Ne=Re.shiftX,Ie=Re.shiftY,Le=function(e){return"boolean"==typeof e?e:e>=0};function St(){we=M.y+Ae,Se=we+I,xe=M.x+ye,Ce=xe+L}St();var je=Le(Pe),_e=me[0]===ve[0];if(je&&"t"===me[0]&&(Se>Y.bottom||v.current.bt)){var He=Ae;_e?He-=I-j:He=Me.y-Te.y-ie;var De=wt(ye,He),Be=wt(ye,He,G);De>ke||De===ke&&(!X||Be>=Ee)?(v.current.bt=!0,Ae=He,ie=-ie,be.points=[dt(me,0),dt(ve,0)]):v.current.bt=!1}if(je&&"b"===me[0]&&(weke||Fe===ke&&(!X||Xe>=Ee)?(v.current.tb=!0,Ae=We,ie=-ie,be.points=[dt(me,0),dt(ve,0)]):v.current.tb=!1}var Ke=Le(ze),Ge=me[1]===ve[1];if(Ke&&"l"===me[1]&&(Ce>Y.right||v.current.rl)){var qe=ye;Ge?qe-=L-_:qe=Me.x-Te.x-oe;var Ye=wt(qe,Ae),Ue=wt(qe,Ae,G);Ye>ke||Ye===ke&&(!X||Ue>=Ee)?(v.current.rl=!0,ye=qe,oe=-oe,be.points=[dt(me,1),dt(ve,1)]):v.current.rl=!1}if(Ke&&"r"===me[1]&&(xeke||Qe===ke&&(!X||Ze>=Ee)?(v.current.lr=!0,ye=Ve,oe=-oe,be.points=[dt(me,1),dt(ve,1)]):v.current.lr=!1}St();var et=!0===Ne?0:Ne;"number"==typeof et&&(xeG.right&&(ye-=Ce-G.right-oe,s.x>G.right-et&&(ye+=s.x-G.right+et)));var tt=!0===Ie?0:Ie;"number"==typeof tt&&(weG.bottom&&(Ae-=Se-G.bottom-ie,s.y>G.bottom-tt&&(Ae+=s.y-G.bottom+tt)));var rt=M.x+ye,it=rt+L,lt=M.y+Ae,ft=lt+I,pt=s.x,vt=pt+_,mt=s.y,ht=mt+j,gt=(Math.max(rt,pt)+Math.min(it,vt))/2-rt,bt=(Math.max(lt,mt)+Math.min(ft,ht))/2-lt;null==l||l(t,be);var yt=U.right-M.x-(ye+M.width),At=U.bottom-M.y-(Ae+M.height);d({ready:!0,offsetX:ye/V,offsetY:Ae/Q,offsetR:yt/V,offsetB:At/Q,arrowX:gt/V,arrowY:bt/Q,scaleX:V,scaleY:Q,align:be})}})),h=function(){d((function(e){return(0,ee.A)((0,ee.A)({},e),{},{ready:!1})}))};return(0,ze.A)(h,[o]),(0,ze.A)((function(){e||h()}),[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,function(){f.current+=1;var e=f.current;Promise.resolve().then((function(){f.current===e&&m()}))}]}(_e,me,D?At:we,R,P,N,W),Ct=(0,te.A)(xt,11),kt=Ct[0],Et=Ct[1],Mt=Ct[2],$t=Ct[3],Ot=Ct[4],Tt=Ct[5],Rt=Ct[6],zt=Ct[7],Pt=Ct[8],Nt=Ct[9],It=Ct[10],Lt=function(e,t,n,o){return r.useMemo((function(){var r=Ze(null!=n?n:t),i=Ze(null!=o?o:t),a=new Set(r),l=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[a,l]}),[e,t,n,o])}(ae,s,u,d),jt=(0,te.A)(Lt,2),_t=jt[0],Ht=jt[1],Dt=_t.has("click"),Bt=Ht.has("click")||Ht.has("contextMenu"),Wt=(0,Ee.A)((function(){lt||It()}));!function(e,t,n,r,o){(0,ze.A)((function(){if(e&&t&&n){var i=n,a=rt(t),l=rt(i),c=nt(i),s=new Set([c].concat((0,H.A)(a),(0,H.A)(l)));function u(){r(),o()}return s.forEach((function(e){e.addEventListener("scroll",u,{passive:!0})})),c.addEventListener("resize",u,{passive:!0}),r(),function(){s.forEach((function(e){e.removeEventListener("scroll",u),c.removeEventListener("resize",u)}))}}}),[e,t,n])}(_e,we,me,Wt,(function(){De.current&&D&&Bt&&qe(!1)})),(0,ze.A)((function(){Wt()}),[At,R]),(0,ze.A)((function(){!_e||null!=P&&P[R]||Wt()}),[JSON.stringify(N)]);var Ft=r.useMemo((function(){var e=function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a1?a-1:0),c=1;c1?n-1:0),o=1;o1?n-1:0),o=1;oh,ge=(0,r.useMemo)((function(){var e=l;return ve?e=null===O&&k?l:l.slice(0,Math.min(l.length,R/f)):"number"==typeof h&&(e=l.slice(0,h)),e}),[l,f,O,h,ve]),be=(0,r.useMemo)((function(){return ve?l.slice(ae+1):l.slice(ge.length)}),[l,ge,ve,ae]),ye=(0,r.useCallback)((function(e,t){var n;return"function"==typeof u?u(e):null!==(n=u&&(null==e?void 0:e[u]))&&void 0!==n?n:t}),[u]),Ae=(0,r.useCallback)(c||function(e){return e},[c]);function we(e,t,n){(oe!==e||void 0!==t&&t!==Q)&&(ie(e),n||(ue(eR){we(r-1,e-o-q+F);break}}y&&xe(0)+q>R&&Z(null)}}),[R,I,F,q,ye,ge]);var Ce=se&&!!be.length,Ee={};null!==Q&&ve&&(Ee={position:"absolute",left:Q,top:0});var Me,$e={prefixCls:de,responsive:ve,component:S,invalidate:me},Oe=s?function(e,t){var n=ye(e,t);return r.createElement(zt.Provider,{key:n,value:(0,ee.A)((0,ee.A)({},$e),{},{order:t,item:e,itemKey:n,registerSize:Se,display:t<=ae})},s(e,t))}:function(e,t){var n=ye(e,t);return r.createElement($t,(0,P.A)({},$e,{order:t,key:n,item:e,renderItem:Ae,itemKey:n,registerSize:Se,display:t<=ae}))},Te={order:Ce?ae:Number.MAX_SAFE_INTEGER,className:"".concat(de,"-rest"),registerSize:function(e,t){X(t),D(F)},display:Ce};if(b)b&&(Me=r.createElement(zt.Provider,{value:(0,ee.A)((0,ee.A)({},$e),Te)},b(be)));else{var Re=g||Wt;Me=r.createElement($t,(0,P.A)({},$e,Te),"function"==typeof Re?Re(be):Re)}var Pe=r.createElement(w,(0,P.A)({className:i()(!me&&o,m),style:v,ref:t},C),ge.map(Oe),he?Me:null,y&&r.createElement($t,(0,P.A)({},$e,{responsive:pe,responsiveDisabled:!ve,order:ae,className:"".concat(de,"-suffix"),registerSize:function(e,t){Y(t)},display:!0,style:Ee}),y));return pe&&(Pe=r.createElement(ke,{onResize:function(e,t){T(t.clientWidth)},disabled:!ve},Pe)),Pe}var Xt=r.forwardRef(Ft);Xt.displayName="Overflow",Xt.Item=_t,Xt.RESPONSIVE=Dt,Xt.INVALIDATE=Bt;const Kt=Xt;var Gt=n(3210),qt=r.createContext(null);function Yt(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function Ut(e){return Yt(r.useContext(qt),e)}var Vt=n(8104),Qt=["children","locked"],Zt=r.createContext(null);function Jt(e){var t=e.children,n=e.locked,o=(0,re.A)(e,Qt),i=r.useContext(Zt),a=(0,Vt.A)((function(){return e=i,t=o,n=(0,ee.A)({},e),Object.keys(t).forEach((function(e){var r=t[e];void 0!==r&&(n[e]=r)})),n;var e,t,n}),[i,o],(function(e,t){return!(n||e[0]===t[0]&&(0,Gt.A)(e[1],t[1],!0))}));return r.createElement(Zt.Provider,{value:a},t)}var en=[],tn=r.createContext(null);function nn(){return r.useContext(tn)}var rn=r.createContext(en);function on(e){var t=r.useContext(rn);return r.useMemo((function(){return void 0!==e?[].concat((0,H.A)(t),[e]):t}),[t,e])}var an=r.createContext(null);const ln=r.createContext({});function cn(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Je(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&null===a&&(a=0),r&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}function sn(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,H.A)(e.querySelectorAll("*")).filter((function(e){return cn(e,t)}));return cn(e,t)&&n.unshift(e),n}var un=vt.A.LEFT,dn=vt.A.RIGHT,fn=vt.A.UP,pn=vt.A.DOWN,vn=vt.A.ENTER,mn=vt.A.ESC,hn=vt.A.HOME,gn=vt.A.END,bn=[fn,pn,un,dn];function yn(e,t){return sn(e,!0).filter((function(e){return t.has(e)}))}function An(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=yn(e,t),i=o.length,a=o.findIndex((function(e){return n===e}));return r<0?-1===a?a=i-1:a-=1:r>0&&(a+=1),o[a=(a+i)%i]}var wn=function(e,t){var n=new Set,r=new Map,o=new Map;return e.forEach((function(e){var i=document.querySelector("[data-menu-id='".concat(Yt(t,e),"']"));i&&(n.add(i),o.set(i,e),r.set(e,i))})),{elements:n,key2element:r,element2key:o}};function Sn(e,t,n,o,i,a,l,c,s,u){var d=r.useRef(),f=r.useRef();f.current=t;var p=function(){Me.A.cancel(d.current)};return r.useEffect((function(){return function(){p()}}),[]),function(r){var v=r.which;if([].concat(bn,[vn,mn,hn,gn]).includes(v)){var m=a(),h=wn(m,o),g=h,b=g.elements,y=g.key2element,A=g.element2key,w=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(y.get(t),b),S=A.get(w),x=function(e,t,n,r){var o,i="prev",a="next",l="children",c="parent";if("inline"===e&&r===vn)return{inlineTrigger:!0};var s=(0,J.A)((0,J.A)({},fn,i),pn,a),u=(0,J.A)((0,J.A)((0,J.A)((0,J.A)({},un,n?a:i),dn,n?i:a),pn,l),vn,l),d=(0,J.A)((0,J.A)((0,J.A)((0,J.A)((0,J.A)((0,J.A)({},fn,i),pn,a),vn,l),mn,c),un,n?l:c),dn,n?c:l);switch(null===(o={inline:s,horizontal:u,vertical:d,inlineSub:s,horizontalSub:d,verticalSub:d}["".concat(e).concat(t?"":"Sub")])||void 0===o?void 0:o[r]){case i:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case c:return{offset:-1,sibling:!1};case l:return{offset:1,sibling:!1};default:return null}}(e,1===l(S,!0).length,n,v);if(!x&&v!==hn&&v!==gn)return;(bn.includes(v)||[hn,gn].includes(v))&&r.preventDefault();var C=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var r=A.get(e);c(r),p(),d.current=(0,Me.A)((function(){f.current===r&&t.focus()}))}};if([hn,gn].includes(v)||x.sibling||!w){var k,E,M=yn(k=w&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(w):i.current,b);E=v===hn?M[0]:v===gn?M[M.length-1]:An(k,b,w,x.offset),C(E)}else if(x.inlineTrigger)s(S);else if(x.offset>0)s(S,!0),p(),d.current=(0,Me.A)((function(){h=wn(m,o);var e=w.getAttribute("aria-controls"),t=An(document.getElementById(e),h.elements);C(t)}),5);else if(x.offset<0){var $=l(S,!0),O=$[$.length-2],T=y.get(O);s(O,!1),C(T)}}null==u||u(r)}}var xn="__RC_UTIL_PATH_SPLIT__",Cn=function(e){return e.join(xn)},kn="rc-menu-more";function En(){var e=r.useState({}),t=(0,te.A)(e,2)[1],n=(0,r.useRef)(new Map),o=(0,r.useRef)(new Map),i=r.useState([]),a=(0,te.A)(i,2),l=a[0],c=a[1],s=(0,r.useRef)(0),u=(0,r.useRef)(!1),d=(0,r.useCallback)((function(e,r){var i=Cn(r);o.current.set(i,e),n.current.set(e,i),s.current+=1;var a,l=s.current;a=function(){l===s.current&&(u.current||t({}))},Promise.resolve().then(a)}),[]),f=(0,r.useCallback)((function(e,t){var r=Cn(t);o.current.delete(r),n.current.delete(e)}),[]),p=(0,r.useCallback)((function(e){c(e)}),[]),v=(0,r.useCallback)((function(e,t){var r=n.current.get(e)||"",o=r.split(xn);return t&&l.includes(o[0])&&o.unshift(kn),o}),[l]),m=(0,r.useCallback)((function(e,t){return e.some((function(e){return v(e,!0).includes(t)}))}),[v]),h=(0,r.useCallback)((function(e){var t="".concat(n.current.get(e)).concat(xn),r=new Set;return(0,H.A)(o.current.keys()).forEach((function(e){e.startsWith(t)&&r.add(o.current.get(e))})),r}),[]);return r.useEffect((function(){return function(){u.current=!0}}),[]),{registerPath:d,unregisterPath:f,refreshOverflowKeys:p,isSubPathKey:m,getKeyPath:v,getKeys:function(){var e=(0,H.A)(n.current.keys());return l.length&&e.push(kn),e},getSubPathKeys:h}}function Mn(e){var t=r.useRef(e);t.current=e;var n=r.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o1&&(y.motionAppear=!1);var A=y.onVisibleChanged;return y.onVisibleChanged=function(e){return p.current||e||g(!0),null==A?void 0:A(e)},h?null:r.createElement(Jt,{mode:a,locked:!p.current},r.createElement(Xe.Ay,(0,P.A)({visible:b},y,{forceRender:s,removeOnLeave:!1,leavedClassName:"".concat(c,"-hidden")}),(function(e){var n=e.className,o=e.style;return r.createElement(Kn,{id:t,className:n,style:o},i)})))}var er=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],tr=["active"],nr=function(e){var t=e.style,n=e.className,o=e.title,a=e.eventKey,l=(e.warnKey,e.disabled),c=e.internalPopupClose,s=e.children,u=e.itemIcon,d=e.expandIcon,f=e.popupClassName,p=e.popupOffset,v=e.popupStyle,m=e.onClick,h=e.onMouseEnter,g=e.onMouseLeave,b=e.onTitleClick,y=e.onTitleMouseEnter,A=e.onTitleMouseLeave,w=(0,re.A)(e,er),S=Ut(a),x=r.useContext(Zt),C=x.prefixCls,k=x.mode,E=x.openKeys,M=x.disabled,$=x.overflowDisabled,O=x.activeKey,T=x.selectedKeys,R=x.itemIcon,z=x.expandIcon,N=x.onItemClick,I=x.onOpenChange,L=x.onActive,j=r.useContext(ln)._internalRenderSubMenuItem,_=r.useContext(an).isSubPathKey,H=on(),D="".concat(C,"-submenu"),B=M||l,W=r.useRef(),F=r.useRef();var X=null!=u?u:R,K=null!=d?d:z,G=E.includes(a),q=!$&&G,Y=_(T,a),U=Tn(a,B,y,A),V=U.active,Q=(0,re.A)(U,tr),Z=r.useState(!1),ne=(0,te.A)(Z,2),oe=ne[0],ie=ne[1],ae=function(e){B||ie(e)},le=r.useMemo((function(){return V||"inline"!==k&&(oe||_([O],a))}),[k,V,O,oe,a,_]),ce=Rn(H.length),se=Mn((function(e){null==m||m(Nn(e)),N(e)})),ue=S&&"".concat(S,"-popup"),de=r.createElement("div",(0,P.A)({role:"menuitem",style:ce,className:"".concat(D,"-title"),tabIndex:B?null:-1,ref:W,title:"string"==typeof o?o:null,"data-menu-id":$&&S?null:S,"aria-expanded":q,"aria-haspopup":!0,"aria-controls":ue,"aria-disabled":B,onClick:function(e){B||(null==b||b({key:a,domEvent:e}),"inline"===k&&I(a,!G))},onFocus:function(){L(a)}},Q),o,r.createElement(zn,{icon:"horizontal"!==k?K:void 0,props:(0,ee.A)((0,ee.A)({},e),{},{isOpen:q,isSubMenu:!0})},r.createElement("i",{className:"".concat(D,"-arrow")}))),fe=r.useRef(k);if("inline"!==k&&H.length>1?fe.current="vertical":fe.current=k,!$){var pe=fe.current;de=r.createElement(Zn,{mode:pe,prefixCls:D,visible:!c&&q&&"inline"!==k,popupClassName:f,popupOffset:p,popupStyle:v,popup:r.createElement(Jt,{mode:"horizontal"===pe?"vertical":pe},r.createElement(Kn,{id:ue,ref:F},s)),disabled:B,onVisibleChange:function(e){"inline"!==k&&I(a,e)}},de)}var ve=r.createElement(Kt.Item,(0,P.A)({role:"none"},w,{component:"li",style:t,className:i()(D,"".concat(D,"-").concat(k),n,(0,J.A)((0,J.A)((0,J.A)((0,J.A)({},"".concat(D,"-open"),q),"".concat(D,"-active"),le),"".concat(D,"-selected"),Y),"".concat(D,"-disabled"),B)),onMouseEnter:function(e){ae(!0),null==h||h({key:a,domEvent:e})},onMouseLeave:function(e){ae(!1),null==g||g({key:a,domEvent:e})}}),de,!$&&r.createElement(Jn,{id:ue,open:q,keyPath:H},s));return j&&(ve=j(ve,e,{selected:Y,active:le,open:q,disabled:B})),r.createElement(Jt,{onItemClick:se,mode:"horizontal"===k?"vertical":k,itemIcon:X,expandIcon:K},ve)};function rr(e){var t,n=e.eventKey,o=e.children,i=on(n),a=Gn(o,i),l=nn();return r.useEffect((function(){if(l)return l.registerPath(n,i),function(){l.unregisterPath(n,i)}}),[i]),t=l?a:r.createElement(nr,e,a),r.createElement(rn.Provider,{value:i},t)}var or=["className","title","eventKey","children"],ir=["children"],ar=function(e){var t=e.className,n=e.title,o=(e.eventKey,e.children),a=(0,re.A)(e,or),l=r.useContext(Zt).prefixCls,c="".concat(l,"-item-group");return r.createElement("li",(0,P.A)({role:"presentation"},a,{onClick:function(e){return e.stopPropagation()},className:i()(c,t)}),r.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:"string"==typeof n?n:void 0},n),r.createElement("ul",{role:"group",className:"".concat(c,"-list")},o))};function lr(e){var t=e.children,n=(0,re.A)(e,ir),o=Gn(t,on(n.eventKey));return nn()?o:r.createElement(ar,(0,a.A)(n,["warnKey"]),o)}function cr(e){var t=e.className,n=e.style,o=r.useContext(Zt).prefixCls;return nn()?null:r.createElement("li",{role:"separator",className:i()("".concat(o,"-item-divider"),t),style:n})}var sr=["label","children","key","type"];function ur(e){return(e||[]).map((function(e,t){if(e&&"object"===(0,ne.A)(e)){var n=e,o=n.label,i=n.children,a=n.key,l=n.type,c=(0,re.A)(n,sr),s=null!=a?a:"tmp-".concat(t);return i||"group"===l?"group"===l?r.createElement(lr,(0,P.A)({key:s},c,{title:o}),ur(i)):r.createElement(rr,(0,P.A)({key:s},c,{title:o}),ur(i)):"divider"===l?r.createElement(cr,(0,P.A)({key:s},c)):r.createElement(Bn,(0,P.A)({key:s},c),o)}return null})).filter((function(e){return e}))}function dr(e,t,n){var r=e;return t&&(r=ur(t)),Gn(r,n)}var fr=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],pr=[],vr=r.forwardRef((function(e,t){var n,o=e,a=o.prefixCls,l=void 0===a?"rc-menu":a,c=o.rootClassName,s=o.style,u=o.className,d=o.tabIndex,f=void 0===d?0:d,p=o.items,v=o.children,m=o.direction,h=o.id,g=o.mode,b=void 0===g?"vertical":g,y=o.inlineCollapsed,A=o.disabled,w=o.disabledOverflow,S=o.subMenuOpenDelay,x=void 0===S?.1:S,C=o.subMenuCloseDelay,k=void 0===C?.1:C,E=o.forceSubMenuRender,M=o.defaultOpenKeys,$=o.openKeys,O=o.activeKey,T=o.defaultActiveFirst,R=o.selectable,z=void 0===R||R,N=o.multiple,I=void 0!==N&&N,L=o.defaultSelectedKeys,j=o.selectedKeys,_=o.onSelect,D=o.onDeselect,B=o.inlineIndent,W=void 0===B?24:B,F=o.motion,X=o.defaultMotions,K=o.triggerSubMenuAction,G=void 0===K?"hover":K,q=o.builtinPlacements,Y=o.itemIcon,U=o.expandIcon,V=o.overflowedIndicator,Q=void 0===V?"...":V,Z=o.overflowedIndicatorPopupClassName,ne=o.getPopupContainer,ie=o.onClick,ae=o.onOpenChange,le=o.onKeyDown,ce=(o.openAnimation,o.openTransitionName,o._internalRenderMenuItem),se=o._internalRenderSubMenuItem,ue=(0,re.A)(o,fr),de=r.useMemo((function(){return dr(v,p,pr)}),[v,p]),fe=r.useState(!1),pe=(0,te.A)(fe,2),ve=pe[0],me=pe[1],he=r.useRef(),ge=function(e){var t=(0,oe.A)(e,{value:e}),n=(0,te.A)(t,2),o=n[0],i=n[1];return r.useEffect((function(){On+=1;var e="".concat($n,"-").concat(On);i("rc-menu-uuid-".concat(e))}),[]),o}(h),be="rtl"===m;var ye=(0,oe.A)(M,{value:$,postState:function(e){return e||pr}}),Ae=(0,te.A)(ye,2),we=Ae[0],Se=Ae[1],xe=function(e){function t(){Se(e),null==ae||ae(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?(0,Ot.flushSync)(t):t()},Ce=r.useState(we),ke=(0,te.A)(Ce,2),Ee=ke[0],Me=ke[1],$e=r.useRef(!1),Oe=r.useMemo((function(){return"inline"!==b&&"vertical"!==b||!y?[b,!1]:["vertical",y]}),[b,y]),Te=(0,te.A)(Oe,2),Re=Te[0],ze=Te[1],Pe="inline"===Re,Ne=r.useState(Re),Ie=(0,te.A)(Ne,2),Le=Ie[0],je=Ie[1],_e=r.useState(ze),He=(0,te.A)(_e,2),De=He[0],Be=He[1];r.useEffect((function(){je(Re),Be(ze),$e.current&&(Pe?Se(Ee):xe(pr))}),[Re,ze]);var We=r.useState(0),Fe=(0,te.A)(We,2),Xe=Fe[0],Ke=Fe[1],Ge=Xe>=de.length-1||"horizontal"!==Le||w;r.useEffect((function(){Pe&&Me(we)}),[we]),r.useEffect((function(){return $e.current=!0,function(){$e.current=!1}}),[]);var qe=En(),Ye=qe.registerPath,Ue=qe.unregisterPath,Ve=qe.refreshOverflowKeys,Qe=qe.isSubPathKey,Ze=qe.getKeyPath,Je=qe.getKeys,et=qe.getSubPathKeys,tt=r.useMemo((function(){return{registerPath:Ye,unregisterPath:Ue}}),[Ye,Ue]),nt=r.useMemo((function(){return{isSubPathKey:Qe}}),[Qe]);r.useEffect((function(){Ve(Ge?pr:de.slice(Xe+1).map((function(e){return e.key})))}),[Xe,Ge]);var rt=(0,oe.A)(O||T&&(null===(n=de[0])||void 0===n?void 0:n.key),{value:O}),ot=(0,te.A)(rt,2),it=ot[0],at=ot[1],lt=Mn((function(e){at(e)})),ct=Mn((function(){at(void 0)}));(0,r.useImperativeHandle)(t,(function(){return{list:he.current,focus:function(e){var t,n,r=Je(),o=wn(r,ge),i=o.elements,a=o.key2element,l=o.element2key,c=yn(he.current,i),s=null!=it?it:c[0]?l.get(c[0]):null===(t=de.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key,u=a.get(s);s&&u&&(null==u||null===(n=u.focus)||void 0===n||n.call(u,e))}}}));var st=(0,oe.A)(L||[],{value:j,postState:function(e){return Array.isArray(e)?e:null==e?pr:[e]}}),ut=(0,te.A)(st,2),dt=ut[0],ft=ut[1],pt=Mn((function(e){null==ie||ie(Nn(e)),function(e){if(z){var t,n=e.key,r=dt.includes(n);t=I?r?dt.filter((function(e){return e!==n})):[].concat((0,H.A)(dt),[n]):[n],ft(t);var o=(0,ee.A)((0,ee.A)({},e),{},{selectedKeys:t});r?null==D||D(o):null==_||_(o)}!I&&we.length&&"inline"!==Le&&xe(pr)}(e)})),vt=Mn((function(e,t){var n=we.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==Le){var r=et(e);n=n.filter((function(e){return!r.has(e)}))}(0,Gt.A)(we,n,!0)||xe(n,!0)})),mt=Sn(Le,it,be,ge,he,Je,Ze,at,(function(e,t){var n=null!=t?t:!we.includes(e);vt(e,n)}),le);r.useEffect((function(){me(!0)}),[]);var ht=r.useMemo((function(){return{_internalRenderMenuItem:ce,_internalRenderSubMenuItem:se}}),[ce,se]),gt="horizontal"!==Le||w?de:de.map((function(e,t){return r.createElement(Jt,{key:e.key,overflowDisabled:t>Xe},e)})),bt=r.createElement(Kt,(0,P.A)({id:h,ref:he,prefixCls:"".concat(l,"-overflow"),component:"ul",itemComponent:Bn,className:i()(l,"".concat(l,"-root"),"".concat(l,"-").concat(Le),u,(0,J.A)((0,J.A)({},"".concat(l,"-inline-collapsed"),De),"".concat(l,"-rtl"),be),c),dir:m,style:s,role:"menu",tabIndex:f,data:gt,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?de.slice(-t):null;return r.createElement(rr,{eventKey:kn,title:Q,disabled:Ge,internalPopupClose:0===t,popupClassName:Z},n)},maxCount:"horizontal"!==Le||w?Kt.INVALIDATE:Kt.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){Ke(e)},onKeyDown:mt},ue));return r.createElement(ln.Provider,{value:ht},r.createElement(qt.Provider,{value:ge},r.createElement(Jt,{prefixCls:l,rootClassName:c,mode:Le,openKeys:we,rtl:be,disabled:A,motion:ve?F:null,defaultMotions:ve?X:null,activeKey:it,onActive:lt,onInactive:ct,selectedKeys:dt,inlineIndent:W,subMenuOpenDelay:x,subMenuCloseDelay:k,forceSubMenuRender:E,builtinPlacements:q,triggerSubMenuAction:G,getPopupContainer:ne,itemIcon:Y,expandIcon:U,onItemClick:pt,onOpenChange:vt},r.createElement(an.Provider,{value:nt},bt),r.createElement("div",{style:{display:"none"},"aria-hidden":!0},r.createElement(tn.Provider,{value:tt},de)))))}));var mr=vr;mr.Item=Bn,mr.SubMenu=rr,mr.ItemGroup=lr,mr.Divider=cr;const hr=mr;var gr=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.id,a=e.tabs,l=e.locale,c=e.mobile,s=e.moreIcon,u=void 0===s?"More":s,d=e.moreTransitionName,f=e.style,p=e.className,v=e.editable,m=e.tabBarGutter,h=e.rtl,g=e.removeAriaLabel,b=e.onTabClick,y=e.getPopupContainer,A=e.popupClassName,w=(0,r.useState)(!1),S=(0,te.A)(w,2),x=S[0],C=S[1],k=(0,r.useState)(null),E=(0,te.A)(k,2),M=E[0],$=E[1],O="".concat(o,"-more-popup"),T="".concat(n,"-dropdown"),R=null!==M?"".concat(O,"-").concat(M):null,z=null==l?void 0:l.dropdownAriaLabel;var P=r.createElement(hr,{onClick:function(e){var t=e.key,n=e.domEvent;b(t,n),C(!1)},prefixCls:"".concat(T,"-menu"),id:O,tabIndex:-1,role:"listbox","aria-activedescendant":R,selectedKeys:[M],"aria-label":void 0!==z?z:"expanded dropdown"},a.map((function(e){var t=e.closable,n=e.disabled,i=e.closeIcon,a=e.key,l=e.label,c=je(t,i,v,n);return r.createElement(Bn,{key:a,id:"".concat(O,"-").concat(a),role:"option","aria-controls":o&&"".concat(o,"-panel-").concat(a),disabled:n},r.createElement("span",null,l),c&&r.createElement("button",{type:"button","aria-label":g||"remove",tabIndex:0,className:"".concat(T,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),v.onEdit("remove",{key:t,event:e})}(e,a)}},i||v.removeIcon||"\xd7"))})));function N(e){for(var t=a.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===M}))||0,r=t.length,o=0;ot?"left":"right"})})),R=(0,te.A)(T,2),z=R[0],N=R[1],I=Te(0,(function(e,t){!O&&g&&g({direction:e>t?"top":"bottom"})})),L=(0,te.A)(I,2),j=L[0],_=L[1],D=(0,r.useState)([0,0]),B=(0,te.A)(D,2),W=B[0],F=B[1],X=(0,r.useState)([0,0]),K=(0,te.A)(X,2),G=K[0],q=K[1],Y=(0,r.useState)([0,0]),U=(0,te.A)(Y,2),V=U[0],Q=U[1],Z=(0,r.useState)([0,0]),ne=(0,te.A)(Z,2),re=ne[0],oe=ne[1],ie=function(e){var t=(0,r.useRef)([]),n=(0,r.useState)({}),o=(0,te.A)(n,2)[1],i=(0,r.useRef)("function"==typeof e?e():e),a=Pe((function(){var e=i.current;t.current.forEach((function(t){e=t(e)})),t.current=[],i.current=e,o({})}));return[i.current,function(e){t.current.push(e),a()}]}(new Map),le=(0,te.A)(ie,2),ce=le[0],se=le[1],ue=function(e,t,n){return(0,r.useMemo)((function(){for(var n,r=new Map,o=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||Oe,i=o.left+o.width,a=0;aAe?Ae:e}O&&s?(ye=0,Ae=Math.max(0,pe-ge)):(ye=Math.min(0,ge-pe),Ae=0);var Se=(0,r.useRef)(null),xe=(0,r.useState)(),Ce=(0,te.A)(xe,2),Me=Ce[0],ze=Ce[1];function je(){ze(Date.now())}function _e(){Se.current&&clearTimeout(Se.current)}!function(e,t){var n=(0,r.useState)(),o=(0,te.A)(n,2),i=o[0],a=o[1],l=(0,r.useState)(0),c=(0,te.A)(l,2),s=c[0],u=c[1],d=(0,r.useState)(0),f=(0,te.A)(d,2),p=f[0],v=f[1],m=(0,r.useState)(),h=(0,te.A)(m,2),g=h[0],b=h[1],y=(0,r.useRef)(),A=(0,r.useRef)(),w=(0,r.useRef)(null);w.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,r=t.screenY;a({x:n,y:r}),window.clearInterval(y.current)},onTouchMove:function(e){if(i){e.preventDefault();var n=e.touches[0],r=n.screenX,o=n.screenY;a({x:r,y:o});var l=r-i.x,c=o-i.y;t(l,c);var d=Date.now();u(d),v(d-s),b({x:l,y:c})}},onTouchEnd:function(){if(i&&(a(null),b(null),g)){var e=g.x/p,n=g.y/p,r=Math.abs(e),o=Math.abs(n);if(Math.max(r,o)<.1)return;var l=e,c=n;y.current=window.setInterval((function(){Math.abs(l)<.01&&Math.abs(c)<.01?window.clearInterval(y.current):t(20*(l*=Re),20*(c*=Re))}),20)}},onWheel:function(e){var n=e.deltaX,r=e.deltaY,o=0,i=Math.abs(n),a=Math.abs(r);i===a?o="x"===A.current?n:r:i>a?(o=n,A.current="x"):(o=r,A.current="y"),t(-o,-o)&&e.preventDefault()}},r.useEffect((function(){function t(e){w.current.onTouchMove(e)}function n(e){w.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!1}),e.current.addEventListener("touchstart",(function(e){w.current.onTouchStart(e)}),{passive:!1}),e.current.addEventListener("wheel",(function(e){w.current.onWheel(e)})),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}}),[])}(k,(function(e,t){function n(e,t){e((function(e){return we(e+t)}))}return!!he&&(O?n(N,e):n(_,t),_e(),je(),!0)})),(0,r.useEffect)((function(){return _e(),Me&&(Se.current=setTimeout((function(){ze(0)}),100)),_e}),[Me]);var Be=function(e,t,n,o,i,a,l){var c,s,u,d=l.tabs,f=l.tabPosition,p=l.rtl;return["top","bottom"].includes(f)?(c="width",s=p?"right":"left",u=Math.abs(n)):(c="height",s="top",u=-n),(0,r.useMemo)((function(){if(!d.length)return[0,0];for(var n=d.length,r=n,o=0;ou+t){r=o-1;break}}for(var a=0,l=n-1;l>=0;l-=1)if((e.get(d[l].key)||Ne)[s]=r?[0,0]:[a,r]}),[e,t,o,i,a,u,f,d.map((function(e){return e.key})).join("_"),p])}(ue,ge,O?z:j,pe,ve,me,(0,ee.A)((0,ee.A)({},e),{},{tabs:w})),We=(0,te.A)(Be,2),Fe=We[0],Xe=We[1],Ke=(0,Ee.A)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=ue.get(e)||{width:0,height:0,left:0,right:0,top:0};if(O){var n=z;s?t.rightz+ge&&(n=t.right+t.width-ge):t.left<-z?n=-t.left:t.left+t.width>-z+ge&&(n=-(t.left+t.width-ge)),_(0),N(we(n))}else{var r=j;t.top<-j?r=-t.top:t.top+t.height>-j+ge&&(r=-(t.top+t.height-ge)),N(0),_(we(r))}})),Ge={};"top"===p||"bottom"===p?Ge[s?"marginRight":"marginLeft"]=v:Ge.marginTop=v;var qe=w.map((function(e,t){var n=e.key;return r.createElement(yr,{id:a,prefixCls:A,key:n,tab:e,style:0===t?void 0:Ge,closable:e.closable,editable:d,active:n===c,renderWrapper:m,removeAriaLabel:null==f?void 0:f.removeAriaLabel,onClick:function(e){h(n,e)},onFocus:function(){Ke(n),je(),k.current&&(s||(k.current.scrollLeft=0),k.current.scrollTop=0)}})})),Ye=function(){return se((function(){var e,t=new Map,n=null===(e=E.current)||void 0===e?void 0:e.getBoundingClientRect();return w.forEach((function(e){var r,o=e.key,i=null===(r=E.current)||void 0===r?void 0:r.querySelector('[data-node-key="'.concat(Le(o),'"]'));if(i){var a=function(e,t){var n=e.offsetWidth,r=e.offsetHeight,o=e.offsetTop,i=e.offsetLeft,a=e.getBoundingClientRect(),l=a.width,c=a.height,s=a.x,u=a.y;return Math.abs(l-n)<1?[l,c,s-t.x,u-t.y]:[n,r,i,o]}(i,n),l=(0,te.A)(a,4),c=l[0],s=l[1],u=l[2],d=l[3];t.set(o,{width:c,height:s,left:u,top:d})}})),t}))};(0,r.useEffect)((function(){Ye()}),[w.map((function(e){return e.key})).join("_")]);var Ue=Pe((function(){var e=Ar(S),t=Ar(x),n=Ar(C);F([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var r=Ar($);Q(r);var o=Ar(M);oe(o);var i=Ar(E);q([i[0]-r[0],i[1]-r[1]]),Ye()})),Ve=w.slice(0,Fe),Qe=w.slice(Xe+1),Ze=[].concat((0,H.A)(Ve),(0,H.A)(Qe)),Je=ue.get(c),et=$e({activeTabOffset:Je,horizontal:O,indicator:b,rtl:s}).style;(0,r.useEffect)((function(){Ke()}),[c,ye,Ae,Ie(Je),Ie(ue),O]),(0,r.useEffect)((function(){Ue()}),[s]);var tt,nt,rt,ot,it=!!Ze.length,at="".concat(A,"-nav-wrap");return O?s?(nt=z>0,tt=z!==Ae):(tt=z<0,nt=z!==ye):(rt=j<0,ot=j!==ye),r.createElement(ke,{onResize:Ue},r.createElement("div",{ref:(0,de.xK)(t,S),role:"tablist",className:i()("".concat(A,"-nav"),n),style:o,onKeyDown:function(){je()}},r.createElement(De,{ref:x,position:"left",extra:u,prefixCls:A}),r.createElement(ke,{onResize:Ue},r.createElement("div",{className:i()(at,(0,J.A)((0,J.A)((0,J.A)((0,J.A)({},"".concat(at,"-ping-left"),tt),"".concat(at,"-ping-right"),nt),"".concat(at,"-ping-top"),rt),"".concat(at,"-ping-bottom"),ot)),ref:k},r.createElement(ke,{onResize:Ue},r.createElement("div",{ref:E,className:"".concat(A,"-nav-list"),style:{transform:"translate(".concat(z,"px, ").concat(j,"px)"),transition:Me?"none":void 0}},qe,r.createElement(He,{ref:$,prefixCls:A,locale:f,editable:d,style:(0,ee.A)((0,ee.A)({},0===qe.length?void 0:Ge),{},{visibility:it?"hidden":null})}),r.createElement("div",{className:i()("".concat(A,"-ink-bar"),(0,J.A)({},"".concat(A,"-ink-bar-animated"),l.inkBar)),style:et}))))),r.createElement(br,(0,P.A)({},e,{removeAriaLabel:null==f?void 0:f.removeAriaLabel,ref:M,prefixCls:A,tabs:Ze,className:!it&&be,tabMoving:!!Me})),r.createElement(De,{ref:C,position:"right",extra:u,prefixCls:A})))}));const xr=Sr;var Cr=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.className,a=e.style,l=e.id,c=e.active,s=e.tabKey,u=e.children;return r.createElement("div",{id:l&&"".concat(l,"-panel-").concat(s),role:"tabpanel",tabIndex:c?0:-1,"aria-labelledby":l&&"".concat(l,"-tab-").concat(s),"aria-hidden":!c,style:a,className:i()(n,c&&"".concat(n,"-active"),o),ref:t},u)}));const kr=Cr;var Er=["renderTabBar"],Mr=["label","key"];const $r=function(e){var t=e.renderTabBar,n=(0,re.A)(e,Er),o=r.useContext(ae).tabs;return t?t((0,ee.A)((0,ee.A)({},n),{},{panes:o.map((function(e){var t=e.label,n=e.key,o=(0,re.A)(e,Mr);return r.createElement(kr,(0,P.A)({tab:t,key:n,tabKey:n},o))}))}),xr):r.createElement(xr,n)};var Or=["key","forceRender","style","className","destroyInactiveTabPane"];const Tr=function(e){var t=e.id,n=e.activeKey,o=e.animated,a=e.tabPosition,l=e.destroyInactiveTabPane,c=r.useContext(ae),s=c.prefixCls,u=c.tabs,d=o.tabPane,f="".concat(s,"-tabpane");return r.createElement("div",{className:i()("".concat(s,"-content-holder"))},r.createElement("div",{className:i()("".concat(s,"-content"),"".concat(s,"-content-").concat(a),(0,J.A)({},"".concat(s,"-content-animated"),d))},u.map((function(e){var a=e.key,c=e.forceRender,s=e.style,u=e.className,p=e.destroyInactiveTabPane,v=(0,re.A)(e,Or),m=a===n;return r.createElement(Xe.Ay,(0,P.A)({key:a,visible:m,forceRender:c,removeOnLeave:!(!l&&!p),leavedClassName:"".concat(f,"-hidden")},o.tabPaneMotion),(function(e,n){var o=e.style,l=e.className;return r.createElement(kr,(0,P.A)({},v,{prefixCls:f,id:t,tabKey:a,animated:d,active:m,style:(0,ee.A)((0,ee.A)({},s),o),className:i()(u,l),ref:n}))}))}))))};var Rr=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],zr=0;const Pr=r.forwardRef((function(e,t){var n=e.id,o=e.prefixCls,a=void 0===o?"rc-tabs":o,l=e.className,c=e.items,s=e.direction,u=e.activeKey,d=e.defaultActiveKey,f=e.editable,p=e.animated,v=e.tabPosition,m=void 0===v?"top":v,h=e.tabBarGutter,g=e.tabBarStyle,b=e.tabBarExtraContent,y=e.locale,A=e.moreIcon,w=e.moreTransitionName,S=e.destroyInactiveTabPane,x=e.renderTabBar,C=e.onChange,k=e.onTabClick,E=e.onTabScroll,M=e.getPopupContainer,$=e.popupClassName,O=e.indicator,T=(0,re.A)(e,Rr),R=r.useMemo((function(){return(c||[]).filter((function(e){return e&&"object"===(0,ne.A)(e)&&"key"in e}))}),[c]),z="rtl"===s,N=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(e=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!1}:(0,ee.A)({inkBar:!0},"object"===(0,ne.A)(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&(e.tabPane=!1),e}(p),I=(0,r.useState)(!1),L=(0,te.A)(I,2),j=L[0],_=L[1];(0,r.useEffect)((function(){_(ie())}),[]);var H=(0,oe.A)((function(){var e;return null===(e=R[0])||void 0===e?void 0:e.key}),{value:u,defaultValue:d}),D=(0,te.A)(H,2),B=D[0],W=D[1],F=(0,r.useState)((function(){return R.findIndex((function(e){return e.key===B}))})),X=(0,te.A)(F,2),K=X[0],G=X[1];(0,r.useEffect)((function(){var e,t=R.findIndex((function(e){return e.key===B}));-1===t&&(t=Math.max(0,Math.min(K,R.length-1)),W(null===(e=R[t])||void 0===e?void 0:e.key));G(t)}),[R.map((function(e){return e.key})).join("_"),B,K]);var q=(0,oe.A)(null,{value:n}),Y=(0,te.A)(q,2),U=Y[0],V=Y[1];(0,r.useEffect)((function(){n||(V("rc-tabs-".concat(zr)),zr+=1)}),[]);var Q={id:U,activeKey:B,animated:N,tabPosition:m,rtl:z,mobile:j},Z=(0,ee.A)((0,ee.A)({},Q),{},{editable:f,locale:y,moreIcon:A,moreTransitionName:w,tabBarGutter:h,onTabClick:function(e,t){null==k||k(e,t);var n=e!==B;W(e),n&&(null==C||C(e))},onTabScroll:E,extra:b,style:g,panes:null,getPopupContainer:M,popupClassName:$,indicator:O});return r.createElement(ae.Provider,{value:{tabs:R,prefixCls:a}},r.createElement("div",(0,P.A)({ref:t,id:n,className:i()(a,"".concat(a,"-").concat(m),(0,J.A)((0,J.A)((0,J.A)({},"".concat(a,"-mobile"),j),"".concat(a,"-editable"),f),"".concat(a,"-rtl"),z),l)},T),r.createElement($r,(0,P.A)({},Z,{renderTabBar:x})),r.createElement(Tr,(0,P.A)({destroyInactiveTabPane:S},Q,{animated:N}))))}));var Nr=n(934),Ir=n(3723);const Lr={motionAppear:!1,motionEnter:!0,motionLeave:!0};var jr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=Dr[t];return[(0,Hr.b)(r,o,i,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},Wr=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[Br(e,"slide-up"),Br(e,"slide-down")]]},Fr=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:i,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${(0,f.zA)(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:(0,f.zA)(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${(0,f.zA)(e.borderRadiusLG)} ${(0,f.zA)(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${(0,f.zA)(e.borderRadiusLG)} ${(0,f.zA)(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:(0,f.zA)(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,f.zA)(e.borderRadiusLG)} 0 0 ${(0,f.zA)(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,f.zA)(e.borderRadiusLG)} ${(0,f.zA)(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},Xr=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},(0,_r.dF)(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${(0,f.zA)(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},_r.L9),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${(0,f.zA)(e.paddingXXS)} ${(0,f.zA)(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Kr=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:a,calc:l}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${(0,f.zA)(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},\n right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,\n > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:l(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:(0,f.zA)(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${(0,f.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${(0,f.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},Gr=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:i}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${(0,f.zA)(e.borderRadius)} ${(0,f.zA)(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${(0,f.zA)(e.borderRadius)} ${(0,f.zA)(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,f.zA)(e.borderRadius)} ${(0,f.zA)(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,f.zA)(e.borderRadius)} 0 0 ${(0,f.zA)(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},qr=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:l,itemColor:c}=e,s=`${t}-tab`;return{[s]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:c,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},(0,_r.K8)(e)),"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${s}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${s}-active ${s}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${s}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${s}-disabled ${s}-btn, &${s}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${s}-remove ${o}`]:{margin:0},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${s} + ${s}`]:{margin:{_skip_check_:!0,value:i}}}},Yr=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:i}=e,a=`${t}-rtl`;return{[a]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:(0,f.zA)(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:(0,f.zA)(e.marginXS)},marginLeft:{_skip_check_:!0,value:(0,f.zA)(i(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Ur=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,_r.dF)(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:o},padding:`0 ${(0,f.zA)(e.paddingXS)}`,background:"transparent",border:`${(0,f.zA)(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${(0,f.zA)(e.borderRadiusLG)} ${(0,f.zA)(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a}},(0,_r.K8)(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),qr(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},Vr=(0,p.OF)("Tabs",(e=>{const t=(0,v.h1)(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${(0,f.zA)(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${(0,f.zA)(e.horizontalItemGutter)}`});return[Gr(t),Yr(t),Kr(t),Xr(t),Fr(t),Ur(t),Wr(t)]}),(e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${1.5*e.paddingXXS}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${1.5*e.paddingXXS}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}}));var Qr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var t,n,o,a,c,s,d,f;const{type:p,className:v,rootClassName:m,size:h,onEdit:g,hideAdd:b,centered:y,addIcon:A,removeIcon:w,moreIcon:S,popupClassName:x,children:C,items:k,animated:E,style:M,indicatorSize:$,indicator:O}=e,T=Qr(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:R}=T,{direction:z,tabs:P,getPrefixCls:N,getPopupContainer:I}=r.useContext(l.QO),L=N("tabs",R),j=(0,Nr.A)(L),[_,H,D]=Vr(L,j);let B;"editable-card"===p&&(B={onEdit:(e,t)=>{let{key:n,event:r}=t;null==g||g("add"===e?r:n,e)},removeIcon:null!==(t=null!=w?w:null==P?void 0:P.removeIcon)&&void 0!==t?t:r.createElement(G.A,null),addIcon:(null!=A?A:null==P?void 0:P.addIcon)||r.createElement(Z,null),showAdd:!0!==b});const W=N();const F=u(h),X=function(e,t){return e||function(e){return e.filter((e=>e))}(ce(t).map((e=>{if(r.isValidElement(e)){const{key:t,props:n}=e,r=n||{},{tab:o}=r,i=jr(r,["tab"]);return Object.assign(Object.assign({key:String(t)},i),{label:o})}return null})))}(k,C),K=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{inkBar:!0,tabPane:!1};return t=!1===n?{inkBar:!1,tabPane:!1}:!0===n?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"==typeof n?n:{}),t.tabPane&&(t.tabPaneMotion=Object.assign(Object.assign({},Lr),{motionName:(0,Ir.b)(e,"switch")})),t}(L,E),q=Object.assign(Object.assign({},null==P?void 0:P.style),M),Y={align:null!==(n=null==O?void 0:O.align)&&void 0!==n?n:null===(o=null==P?void 0:P.indicator)||void 0===o?void 0:o.align,size:null!==(d=null!==(c=null!==(a=null==O?void 0:O.size)&&void 0!==a?a:$)&&void 0!==c?c:null===(s=null==P?void 0:P.indicator)||void 0===s?void 0:s.size)&&void 0!==d?d:null==P?void 0:P.indicatorSize};return _(r.createElement(Pr,Object.assign({direction:z,getPopupContainer:I,moreTransitionName:`${W}-slide-up`},T,{items:X,className:i()({[`${L}-${F}`]:F,[`${L}-card`]:["card","editable-card"].includes(p),[`${L}-editable-card`]:"editable-card"===p,[`${L}-centered`]:y},null==P?void 0:P.className,v,m,H,D,j),popupClassName:i()(x,H,D,j),style:q,editable:B,moreIcon:null!==(f=null!=S?S:null==P?void 0:P.moreIcon)&&void 0!==f?f:r.createElement(U,null),prefixCls:L,animated:K,indicator:Y})))};Zr.TabPane=()=>null;const Jr=Zr;var eo=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var{prefixCls:t,className:n,hoverable:o=!0}=e,a=eo(e,["prefixCls","className","hoverable"]);const{getPrefixCls:c}=r.useContext(l.QO),s=c("card",t),u=i()(`${s}-grid`,n,{[`${s}-grid-hoverable`]:o});return r.createElement("div",Object.assign({},a,{className:u}))},no=e=>{const{antCls:t,componentCls:n,headerHeight:r,cardPaddingBase:o,tabsMarginBottom:i}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${(0,f.zA)(o)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${(0,f.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${(0,f.zA)(e.borderRadiusLG)} ${(0,f.zA)(e.borderRadiusLG)} 0 0`},(0,_r.t6)()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},_r.L9),{[`\n > ${n}-typography,\n > ${n}-typography-edit-content\n `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:i,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${(0,f.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},ro=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:o}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`\n ${(0,f.zA)(o)} 0 0 0 ${n},\n 0 ${(0,f.zA)(o)} 0 0 ${n},\n ${(0,f.zA)(o)} ${(0,f.zA)(o)} 0 0 ${n},\n ${(0,f.zA)(o)} 0 0 0 ${n} inset,\n 0 ${(0,f.zA)(o)} 0 0 ${n} inset;\n `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},oo=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:o,colorBorderSecondary:i,actionsBg:a}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:a,borderTop:`${(0,f.zA)(e.lineWidth)} ${e.lineType} ${i}`,display:"flex",borderRadius:`0 0 ${(0,f.zA)(e.borderRadiusLG)} ${(0,f.zA)(e.borderRadiusLG)}`},(0,_r.t6)()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:(0,f.zA)(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:o,lineHeight:(0,f.zA)(e.calc(o).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${(0,f.zA)(e.lineWidth)} ${e.lineType} ${i}`}}})},io=e=>Object.assign(Object.assign({margin:`${(0,f.zA)(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},(0,_r.t6)()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},_r.L9),"&-description":{color:e.colorTextDescription}}),ao=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:r}=e;return{[`${t}-head`]:{padding:`0 ${(0,f.zA)(n)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${(0,f.zA)(e.padding)} ${(0,f.zA)(n)}`}}},lo=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},co=e=>{const{antCls:t,componentCls:n,cardShadow:r,cardHeadPadding:o,colorBorderSecondary:i,boxShadowTertiary:a,cardPaddingBase:l,extraColor:c}=e;return{[n]:Object.assign(Object.assign({},(0,_r.dF)(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${n}-bordered)`]:{boxShadow:a},[`${n}-head`]:no(e),[`${n}-extra`]:{marginInlineStart:"auto",color:c,fontWeight:"normal",fontSize:e.fontSize},[`${n}-body`]:Object.assign({padding:l,borderRadius:`0 0 ${(0,f.zA)(e.borderRadiusLG)} ${(0,f.zA)(e.borderRadiusLG)}`},(0,_r.t6)()),[`${n}-grid`]:ro(e),[`${n}-cover`]:{"> *":{display:"block",width:"100%"},[`img, img + ${t}-image-mask`]:{borderRadius:`${(0,f.zA)(e.borderRadiusLG)} ${(0,f.zA)(e.borderRadiusLG)} 0 0`}},[`${n}-actions`]:oo(e),[`${n}-meta`]:io(e)}),[`${n}-bordered`]:{border:`${(0,f.zA)(e.lineWidth)} ${e.lineType} ${i}`,[`${n}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${n}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:r}},[`${n}-contain-grid`]:{borderRadius:`${(0,f.zA)(e.borderRadiusLG)} ${(0,f.zA)(e.borderRadiusLG)} 0 0 `,[`${n}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${n}-loading) ${n}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${n}-contain-tabs`]:{[`> ${n}-head`]:{minHeight:0,[`${n}-head-title, ${n}-extra`]:{paddingTop:o}}},[`${n}-type-inner`]:ao(e),[`${n}-loading`]:lo(e),[`${n}-rtl`]:{direction:"rtl"}}},so=e=>{const{componentCls:t,cardPaddingSM:n,headerHeightSM:r,headerFontSizeSM:o}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:r,padding:`0 ${(0,f.zA)(n)}`,fontSize:o,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},uo=(0,p.OF)("Card",(e=>{const t=(0,v.h1)(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[co(t),so(t)]}),(e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+2*e.padding,headerHeightSM:e.fontSize*e.lineHeight+2*e.paddingXS,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText})));var fo=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{actionClasses:t,actions:n=[],actionStyle:o}=e;return r.createElement("ul",{className:t,style:o},n.map(((e,t)=>{const o=`action-${t}`;return r.createElement("li",{style:{width:100/n.length+"%"},key:o},r.createElement("span",null,e))})))},vo=r.forwardRef(((e,t)=>{const{prefixCls:n,className:o,rootClassName:c,style:s,extra:d,headStyle:f={},bodyStyle:p={},title:v,loading:m,bordered:h=!0,size:g,type:b,cover:y,actions:A,tabList:w,children:S,activeTabKey:x,defaultActiveTabKey:C,tabBarExtraContent:k,hoverable:E,tabProps:M={},classNames:$,styles:O}=e,T=fo(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:R,direction:z,card:P}=r.useContext(l.QO);const N=e=>{var t;return i()(null===(t=null==P?void 0:P.classNames)||void 0===t?void 0:t[e],null==$?void 0:$[e])},I=e=>{var t;return Object.assign(Object.assign({},null===(t=null==P?void 0:P.styles)||void 0===t?void 0:t[e]),null==O?void 0:O[e])},L=r.useMemo((()=>{let e=!1;return r.Children.forEach(S,(t=>{t&&t.type&&t.type===to&&(e=!0)})),e}),[S]),j=R("card",n),[_,H,D]=uo(j),B=r.createElement(K,{loading:!0,active:!0,paragraph:{rows:4},title:!1},S),W=void 0!==x,F=Object.assign(Object.assign({},M),{[W?"activeKey":"defaultActiveKey"]:W?x:C,tabBarExtraContent:k});let X;const G=u(g),q=G&&"default"!==G?G:"large",Y=w?r.createElement(Jr,Object.assign({size:q},F,{className:`${j}-head-tabs`,onChange:t=>{var n;null===(n=e.onTabChange)||void 0===n||n.call(e,t)},items:w.map((e=>{var{tab:t}=e,n=fo(e,["tab"]);return Object.assign({label:t},n)}))})):null;if(v||d||Y){const e=i()(`${j}-head`,N("header")),t=i()(`${j}-head-title`,N("title")),n=i()(`${j}-extra`,N("extra")),o=Object.assign(Object.assign({},f),I("header"));X=r.createElement("div",{className:e,style:o},r.createElement("div",{className:`${j}-head-wrapper`},v&&r.createElement("div",{className:t,style:I("title")},v),d&&r.createElement("div",{className:n,style:I("extra")},d)),Y)}const U=i()(`${j}-cover`,N("cover")),V=y?r.createElement("div",{className:U,style:I("cover")},y):null,Q=i()(`${j}-body`,N("body")),Z=Object.assign(Object.assign({},p),I("body")),J=r.createElement("div",{className:Q,style:Z},m?B:S),ee=i()(`${j}-actions`,N("actions")),te=A&&A.length?r.createElement(po,{actionClasses:ee,actionStyle:I("actions"),actions:A}):null,ne=(0,a.A)(T,["onTabChange"]),re=i()(j,null==P?void 0:P.className,{[`${j}-loading`]:m,[`${j}-bordered`]:h,[`${j}-hoverable`]:E,[`${j}-contain-grid`]:L,[`${j}-contain-tabs`]:w&&w.length,[`${j}-${G}`]:G,[`${j}-type-${b}`]:!!b,[`${j}-rtl`]:"rtl"===z},o,c,H,D),oe=Object.assign(Object.assign({},null==P?void 0:P.style),s);return _(r.createElement("div",Object.assign({ref:t},ne,{className:re,style:oe}),X,V,J,te))}));var mo=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,className:n,avatar:o,title:a,description:c}=e,s=mo(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:u}=r.useContext(l.QO),d=u("card",t),f=i()(`${d}-meta`,n),p=o?r.createElement("div",{className:`${d}-meta-avatar`},o):null,v=a?r.createElement("div",{className:`${d}-meta-title`},a):null,m=c?r.createElement("div",{className:`${d}-meta-description`},c):null,h=v||m?r.createElement("div",{className:`${d}-meta-detail`},v,m):null;return r.createElement("div",Object.assign({},s,{className:f}),p,h)},go=vo;go.Grid=to,go.Meta=ho;const bo=go},3517:(e,t,n)=>{"use strict";n.d(t,{A:()=>ge});var r=n(6540),o=n(8168),i=n(9379),a=n(3029),l=n(2901),c=n(6822),s=n(2176),u=n(3954),d=n(5501),f=n(4467),p=n(2284),v=n(45);const m={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0};function h(e,t,n){var r=(n||{}).atBegin;return function(e,t,n){var r,o=n||{},i=o.noTrailing,a=void 0!==i&&i,l=o.noLeading,c=void 0!==l&&l,s=o.debounceMode,u=void 0===s?void 0:s,d=!1,f=0;function p(){r&&clearTimeout(r)}function v(){for(var n=arguments.length,o=new Array(n),i=0;ie?c?(f=Date.now(),a||(r=setTimeout(u?m:v,e))):v():!0!==a&&(r=setTimeout(u?m:v,void 0===u?e-s:e)))}return v.cancel=function(e){var t=(e||{}).upcomingOnly,n=void 0!==t&&t;p(),d=!n},v}(e,t,{debounceMode:!1!==(void 0!==r&&r)})}var g=n(6942),b=n.n(g);const y={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(e){return r.createElement("ul",{style:{display:"block"}},e)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(e){return r.createElement("button",null,e+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0,asNavFor:null};function A(e,t,n){return Math.max(t,Math.min(e,n))}var w=function(e){["onTouchStart","onTouchMove","onWheel"].includes(e._reactName)||e.preventDefault()},S=function(e){for(var t=[],n=x(e),r=C(e),o=n;o0?1:0):0},E=function(e){return e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow},M=function(e){return e&&e.offsetWidth||0},$=function(e){return e&&e.offsetHeight||0},O=function(e){var t,n,r,o,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t=e.startX-e.curX,n=e.startY-e.curY,r=Math.atan2(n,t),(o=Math.round(180*r/Math.PI))<0&&(o=360-Math.abs(o)),o<=45&&o>=0||o<=360&&o>=315?"left":o>=135&&o<=225?"right":!0===i?o>=35&&o<=135?"up":"down":"vertical"},T=function(e){var t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1),t},R=function(e,t){var n={};return t.forEach((function(t){return n[t]=e[t]})),n},z=function(e,t){var n=function(e){for(var t=e.infinite?2*e.slideCount:e.slideCount,n=e.infinite?-1*e.slidesToShow:0,r=e.infinite?-1*e.slidesToShow:0,o=[];nn[n.length-1])t=n[n.length-1];else for(var o in n){if(t-1*e.swipeLeft)return n=r,!1}else if(r.offsetLeft-t+M(r)/2>-1*e.swipeLeft)return n=r,!1;return!0})),!n)return 0;var i=!0===e.rtl?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(n.dataset.index-i)||1}return e.slidesToScroll},N=function(e,t){return t.reduce((function(t,n){return t&&e.hasOwnProperty(n)}),!0)?null:console.error("Keys Missing:",e)},I=function(e){var t,n;(N(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]),e.vertical)?n=(e.unslick?e.slideCount:e.slideCount+2*e.slidesToShow)*e.slideHeight:t=D(e)*e.slideWidth;var r={opacity:1,transition:"",WebkitTransition:""};if(e.useTransform){var o=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",a=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",l=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)";r=(0,i.A)((0,i.A)({},r),{},{WebkitTransform:o,transform:a,msTransform:l})}else e.vertical?r.top=e.left:r.left=e.left;return e.fade&&(r={opacity:1}),t&&(r.width=t),n&&(r.height=n),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?r.marginTop=e.left+"px":r.marginLeft=e.left+"px"),r},L=function(e){N(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var t=I(e);return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t},j=function(e){if(e.unslick)return 0;N(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var t,n,r=e.slideIndex,o=e.trackRef,i=e.infinite,a=e.centerMode,l=e.slideCount,c=e.slidesToShow,s=e.slidesToScroll,u=e.slideWidth,d=e.listWidth,f=e.variableWidth,p=e.slideHeight,v=e.fade,m=e.vertical;if(v||1===e.slideCount)return 0;var h=0;if(i?(h=-_(e),l%s!=0&&r+s>l&&(h=-(r>l?c-(r-l):l%s)),a&&(h+=parseInt(c/2))):(l%s!=0&&r+s>l&&(h=c-l%s),a&&(h=parseInt(c/2))),t=m?r*p*-1+h*p:r*u*-1+h*u,!0===f){var g,b=o&&o.node;if(g=r+_(e),t=(n=b&&b.childNodes[g])?-1*n.offsetLeft:0,!0===a){g=i?r+_(e):r,n=b&&b.children[g],t=0;for(var y=0;ye.currentSlide?e.targetSlide>e.currentSlide+W(e)?"left":"right":e.targetSlide0&&(i+=1),r&&t%2==0&&(i+=1),i}return r?0:t-1},F=function(e){var t=e.slidesToShow,n=e.centerMode,r=e.rtl,o=e.centerPadding;if(n){var i=(t-1)/2+1;return parseInt(o)>0&&(i+=1),r||t%2!=0||(i+=1),i}return r?t-1:0},X=function(){return!("undefined"==typeof window||!window.document||!window.document.createElement)},K=Object.keys(y);var G=function(e){var t,n,r,o,i;return r=(i=e.rtl?e.slideCount-1-e.index:e.index)<0||i>=e.slideCount,e.centerMode?(o=Math.floor(e.slidesToShow/2),n=(i-e.currentSlide)%e.slideCount==0,i>e.currentSlide-o-1&&i<=e.currentSlide+o&&(t=!0)):t=e.currentSlide<=i&&i=e.slideCount?e.targetSlide-e.slideCount:e.targetSlide)}},q=function(e,t){return e.key+"-"+t},Y=function(e){var t,n=[],o=[],a=[],l=r.Children.count(e.children),c=x(e),s=C(e);return r.Children.forEach(e.children,(function(u,d){var f,p={message:"children",index:d,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};f=!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(d)>=0?u:r.createElement("div",null);var v=function(e){var t={};return void 0!==e.variableWidth&&!1!==e.variableWidth||(t.width=e.slideWidth),e.fade&&(t.position="relative",e.vertical&&e.slideHeight?t.top=-e.index*parseInt(e.slideHeight):t.left=-e.index*parseInt(e.slideWidth),t.opacity=e.currentSlide===e.index?1:0,t.zIndex=e.currentSlide===e.index?999:998,e.useCSS&&(t.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase)),t}((0,i.A)((0,i.A)({},e),{},{index:d})),m=f.props.className||"",h=G((0,i.A)((0,i.A)({},e),{},{index:d}));if(n.push(r.cloneElement(f,{key:"original"+q(f,d),"data-index":d,className:b()(h,m),tabIndex:"-1","aria-hidden":!h["slick-active"],style:(0,i.A)((0,i.A)({outline:"none"},f.props.style||{}),v),onClick:function(t){f.props&&f.props.onClick&&f.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(p)}})),e.infinite&&l>1&&!1===e.fade&&!e.unslick){var g=l-d;g<=_(e)&&((t=-g)>=c&&(f=u),h=G((0,i.A)((0,i.A)({},e),{},{index:t})),o.push(r.cloneElement(f,{key:"precloned"+q(f,t),"data-index":t,tabIndex:"-1",className:b()(h,m),"aria-hidden":!h["slick-active"],style:(0,i.A)((0,i.A)({},f.props.style||{}),v),onClick:function(t){f.props&&f.props.onClick&&f.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(p)}}))),(t=l+d)=w&&d<=g:d===w}),x={message:"dots",index:m,slidesToScroll:c,currentSlide:d},C=this.clickHandler.bind(this,x);v=v.concat(r.createElement("li",{key:m,className:S},r.cloneElement(this.props.customPaging(m),{onClick:C})))}return r.cloneElement(this.props.appendDots(v),(0,i.A)({className:this.props.dotsClass},p))}}])}(r.PureComponent);function Q(e,t,n){return t=(0,u.A)(t),(0,c.A)(e,(0,s.A)()?Reflect.construct(t,n||[],(0,u.A)(e).constructor):t.apply(e,n))}var Z=function(e){function t(){return(0,a.A)(this,t),Q(this,t,arguments)}return(0,d.A)(t,e),(0,l.A)(t,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-prev":!0},t=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(0===this.props.currentSlide||this.props.slideCount<=this.props.slidesToShow)&&(e["slick-disabled"]=!0,t=null);var n={key:"0","data-role":"none",className:b()(e),style:{display:"block"},onClick:t},a={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.prevArrow?r.cloneElement(this.props.prevArrow,(0,i.A)((0,i.A)({},n),a)):r.createElement("button",(0,o.A)({key:"0",type:"button"},n)," ","Previous")}}])}(r.PureComponent),J=function(e){function t(){return(0,a.A)(this,t),Q(this,t,arguments)}return(0,d.A)(t,e),(0,l.A)(t,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-next":!0},t=this.clickHandler.bind(this,{message:"next"});T(this.props)||(e["slick-disabled"]=!0,t=null);var n={key:"1","data-role":"none",className:b()(e),style:{display:"block"},onClick:t},a={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.nextArrow?r.cloneElement(this.props.nextArrow,(0,i.A)((0,i.A)({},n),a)):r.createElement("button",(0,o.A)({key:"1",type:"button"},n)," ","Next")}}])}(r.PureComponent),ee=n(3591),te=["animating"];var ne=function(e){function t(e){var n,l,d,p;(0,a.A)(this,t),l=this,d=t,p=[e],d=(0,u.A)(d),n=(0,c.A)(l,(0,s.A)()?Reflect.construct(d,p||[],(0,u.A)(l).constructor):d.apply(l,p)),(0,f.A)(n,"listRefHandler",(function(e){return n.list=e})),(0,f.A)(n,"trackRefHandler",(function(e){return n.track=e})),(0,f.A)(n,"adaptHeight",(function(){if(n.props.adaptiveHeight&&n.list){var e=n.list.querySelector('[data-index="'.concat(n.state.currentSlide,'"]'));n.list.style.height=$(e)+"px"}})),(0,f.A)(n,"componentDidMount",(function(){if(n.props.onInit&&n.props.onInit(),n.props.lazyLoad){var e=S((0,i.A)((0,i.A)({},n.props),n.state));e.length>0&&(n.setState((function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}})),n.props.onLazyLoad&&n.props.onLazyLoad(e))}var t=(0,i.A)({listRef:n.list,trackRef:n.track},n.props);n.updateState(t,!0,(function(){n.adaptHeight(),n.props.autoplay&&n.autoPlay("playing")})),"progressive"===n.props.lazyLoad&&(n.lazyLoadTimer=setInterval(n.progressiveLazyLoad,1e3)),n.ro=new ee.A((function(){n.state.animating?(n.onWindowResized(!1),n.callbackTimers.push(setTimeout((function(){return n.onWindowResized()}),n.props.speed))):n.onWindowResized()})),n.ro.observe(n.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),(function(e){e.onfocus=n.props.pauseOnFocus?n.onSlideFocus:null,e.onblur=n.props.pauseOnFocus?n.onSlideBlur:null})),window.addEventListener?window.addEventListener("resize",n.onWindowResized):window.attachEvent("onresize",n.onWindowResized)})),(0,f.A)(n,"componentWillUnmount",(function(){n.animationEndCallback&&clearTimeout(n.animationEndCallback),n.lazyLoadTimer&&clearInterval(n.lazyLoadTimer),n.callbackTimers.length&&(n.callbackTimers.forEach((function(e){return clearTimeout(e)})),n.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",n.onWindowResized):window.detachEvent("onresize",n.onWindowResized),n.autoplayTimer&&clearInterval(n.autoplayTimer),n.ro.disconnect()})),(0,f.A)(n,"componentDidUpdate",(function(e){if(n.checkImagesLoad(),n.props.onReInit&&n.props.onReInit(),n.props.lazyLoad){var t=S((0,i.A)((0,i.A)({},n.props),n.state));t.length>0&&(n.setState((function(e){return{lazyLoadedList:e.lazyLoadedList.concat(t)}})),n.props.onLazyLoad&&n.props.onLazyLoad(t))}n.adaptHeight();var o=(0,i.A)((0,i.A)({listRef:n.list,trackRef:n.track},n.props),n.state),a=n.didPropsChange(e);a&&n.updateState(o,a,(function(){n.state.currentSlide>=r.Children.count(n.props.children)&&n.changeSlide({message:"index",index:r.Children.count(n.props.children)-n.props.slidesToShow,currentSlide:n.state.currentSlide}),e.autoplay===n.props.autoplay&&e.autoplaySpeed===n.props.autoplaySpeed||(!e.autoplay&&n.props.autoplay?n.autoPlay("playing"):n.props.autoplay?n.autoPlay("update"):n.pause("paused"))}))})),(0,f.A)(n,"onWindowResized",(function(e){n.debouncedResize&&n.debouncedResize.cancel(),n.debouncedResize=h(50,(function(){return n.resizeWindow(e)})),n.debouncedResize()})),(0,f.A)(n,"resizeWindow",(function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(Boolean(n.track&&n.track.node)){var t=(0,i.A)((0,i.A)({listRef:n.list,trackRef:n.track},n.props),n.state);n.updateState(t,e,(function(){n.props.autoplay?n.autoPlay("update"):n.pause("paused")})),n.setState({animating:!1}),clearTimeout(n.animationEndCallback),delete n.animationEndCallback}})),(0,f.A)(n,"updateState",(function(e,t,o){var a=function(e){var t,n=r.Children.count(e.children),o=e.listRef,a=Math.ceil(M(o)),l=e.trackRef&&e.trackRef.node,c=Math.ceil(M(l));if(e.vertical)t=a;else{var s=e.centerMode&&2*parseInt(e.centerPadding);"string"==typeof e.centerPadding&&"%"===e.centerPadding.slice(-1)&&(s*=a/100),t=Math.ceil((a-s)/e.slidesToShow)}var u=o&&$(o.querySelector('[data-index="0"]')),d=u*e.slidesToShow,f=void 0===e.currentSlide?e.initialSlide:e.currentSlide;e.rtl&&void 0===e.currentSlide&&(f=n-1-e.initialSlide);var p=e.lazyLoadedList||[],v=S((0,i.A)((0,i.A)({},e),{},{currentSlide:f,lazyLoadedList:p})),m={slideCount:n,slideWidth:t,listWidth:a,trackWidth:c,currentSlide:f,slideHeight:u,listHeight:d,lazyLoadedList:p=p.concat(v)};return null===e.autoplaying&&e.autoplay&&(m.autoplaying="playing"),m}(e);e=(0,i.A)((0,i.A)((0,i.A)({},e),a),{},{slideIndex:a.currentSlide});var l=j(e);e=(0,i.A)((0,i.A)({},e),{},{left:l});var c=I(e);(t||r.Children.count(n.props.children)!==r.Children.count(e.children))&&(a.trackStyle=c),n.setState(a,o)})),(0,f.A)(n,"ssrInit",(function(){if(n.props.variableWidth){var e=0,t=0,o=[],a=_((0,i.A)((0,i.A)((0,i.A)({},n.props),n.state),{},{slideCount:n.props.children.length})),l=H((0,i.A)((0,i.A)((0,i.A)({},n.props),n.state),{},{slideCount:n.props.children.length}));n.props.children.forEach((function(t){o.push(t.props.style.width),e+=t.props.style.width}));for(var c=0;c=t&&n.onWindowResized()};if(e.onclick){var i=e.onclick;e.onclick=function(t){i(t),e.parentNode.focus()}}else e.onclick=function(){return e.parentNode.focus()};e.onload||(n.props.lazyLoad?e.onload=function(){n.adaptHeight(),n.callbackTimers.push(setTimeout(n.onWindowResized,n.props.speed))}:(e.onload=o,e.onerror=function(){o(),n.props.onLazyLoadError&&n.props.onLazyLoadError()}))}))})),(0,f.A)(n,"progressiveLazyLoad",(function(){for(var e=[],t=(0,i.A)((0,i.A)({},n.props),n.state),r=n.state.currentSlide;r=-_(t);o--)if(n.state.lazyLoadedList.indexOf(o)<0){e.push(o);break}e.length>0?(n.setState((function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}})),n.props.onLazyLoad&&n.props.onLazyLoad(e)):n.lazyLoadTimer&&(clearInterval(n.lazyLoadTimer),delete n.lazyLoadTimer)})),(0,f.A)(n,"slideHandler",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=n.props,o=r.asNavFor,a=r.beforeChange,l=r.onLazyLoad,c=r.speed,s=r.afterChange,u=n.state.currentSlide,d=function(e){var t=e.waitForAnimate,n=e.animating,r=e.fade,o=e.infinite,a=e.index,l=e.slideCount,c=e.lazyLoad,s=e.currentSlide,u=e.centerMode,d=e.slidesToScroll,f=e.slidesToShow,p=e.useCSS,v=e.lazyLoadedList;if(t&&n)return{};var m,h,g,b=a,y={},w={},x=o?a:A(a,0,l-1);if(r){if(!o&&(a<0||a>=l))return{};a<0?b=a+l:a>=l&&(b=a-l),c&&v.indexOf(b)<0&&(v=v.concat(b)),y={animating:!0,currentSlide:b,lazyLoadedList:v,targetSlide:b},w={animating:!1,targetSlide:b}}else m=b,b<0?(m=b+l,o?l%d!=0&&(m=l-l%d):m=0):!T(e)&&b>s?b=m=s:u&&b>=l?(b=o?l:l-1,m=o?0:l-1):b>=l&&(m=b-l,o?l%d!=0&&(m=0):m=l-f),!o&&b+f>=l&&(m=l-f),h=j((0,i.A)((0,i.A)({},e),{},{slideIndex:b})),g=j((0,i.A)((0,i.A)({},e),{},{slideIndex:m})),o||(h===g&&(b=m),h=g),c&&(v=v.concat(S((0,i.A)((0,i.A)({},e),{},{currentSlide:b})))),p?(y={animating:!0,currentSlide:m,trackStyle:L((0,i.A)((0,i.A)({},e),{},{left:h})),lazyLoadedList:v,targetSlide:x},w={animating:!1,currentSlide:m,trackStyle:I((0,i.A)((0,i.A)({},e),{},{left:g})),swipeLeft:null,targetSlide:x}):y={currentSlide:m,trackStyle:I((0,i.A)((0,i.A)({},e),{},{left:g})),lazyLoadedList:v,targetSlide:x};return{state:y,nextState:w}}((0,i.A)((0,i.A)((0,i.A)({index:e},n.props),n.state),{},{trackRef:n.track,useCSS:n.props.useCSS&&!t})),f=d.state,p=d.nextState;if(f){a&&a(u,f.currentSlide);var m=f.lazyLoadedList.filter((function(e){return n.state.lazyLoadedList.indexOf(e)<0}));l&&m.length>0&&l(m),!n.props.waitForAnimate&&n.animationEndCallback&&(clearTimeout(n.animationEndCallback),s&&s(u),delete n.animationEndCallback),n.setState(f,(function(){o&&n.asNavForIndex!==e&&(n.asNavForIndex=e,o.innerSlider.slideHandler(e)),p&&(n.animationEndCallback=setTimeout((function(){var e=p.animating,t=(0,v.A)(p,te);n.setState(t,(function(){n.callbackTimers.push(setTimeout((function(){return n.setState({animating:e})}),10)),s&&s(f.currentSlide),delete n.animationEndCallback}))}),c))}))}})),(0,f.A)(n,"changeSlide",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=function(e,t){var n,r,o,a,l=e.slidesToScroll,c=e.slidesToShow,s=e.slideCount,u=e.currentSlide,d=e.targetSlide,f=e.lazyLoad,p=e.infinite;if(n=s%l!=0?0:(s-u)%l,"previous"===t.message)a=u-(o=0===n?l:c-n),f&&!p&&(a=-1==(r=u-o)?s-1:r),p||(a=d-l);else if("next"===t.message)a=u+(o=0===n?l:n),f&&!p&&(a=(u+l)%s+n),p||(a=d+l);else if("dots"===t.message)a=t.index*t.slidesToScroll;else if("children"===t.message){if(a=t.index,p){var v=B((0,i.A)((0,i.A)({},e),{},{targetSlide:a}));a>t.currentSlide&&"left"===v?a-=s:a10)return{scrolling:!0};l&&(b.swipeLength=E);var M=(c?-1:1)*(b.curX>b.startX?1:-1);l&&(M=b.curY>b.startY?1:-1);var $=Math.ceil(m/h),R=O(t.touchObject,l),z=b.swipeLength;return g||(0===s&&("right"===R||"down"===R)||s+1>=$&&("left"===R||"up"===R)||!T(t)&&("left"===R||"up"===R))&&(z=b.swipeLength*u,!1===d&&f&&(f(R),C.edgeDragged=!0)),!p&&y&&(y(R),C.swiped=!0),x=o?k+z*(A/S)*M:c?k-z*M:k+z*M,l&&(x=k+z*M),C=(0,i.A)((0,i.A)({},C),{},{touchObject:b,swipeLeft:x,trackStyle:I((0,i.A)((0,i.A)({},t),{},{left:x}))}),Math.abs(b.curX-b.startX)<.8*Math.abs(b.curY-b.startY)||b.swipeLength>10&&(C.swiping=!0,w(e)),C}}(e,(0,i.A)((0,i.A)((0,i.A)({},n.props),n.state),{},{trackRef:n.track,listRef:n.list,slideIndex:n.state.currentSlide}));t&&(t.swiping&&(n.clickable=!1),n.setState(t))})),(0,f.A)(n,"swipeEnd",(function(e){var t=function(e,t){var n=t.dragging,r=t.swipe,o=t.touchObject,a=t.listWidth,l=t.touchThreshold,c=t.verticalSwiping,s=t.listHeight,u=t.swipeToSlide,d=t.scrolling,f=t.onSwipe,p=t.targetSlide,v=t.currentSlide,m=t.infinite;if(!n)return r&&w(e),{};var h=c?s/l:a/l,g=O(o,c),b={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(d)return b;if(!o.swipeLength)return b;if(o.swipeLength>h){var y,A;w(e),f&&f(g);var S=m?v:p;switch(g){case"left":case"up":A=S+P(t),y=u?z(t,A):A,b.currentDirection=0;break;case"right":case"down":A=S-P(t),y=u?z(t,A):A,b.currentDirection=1;break;default:y=S}b.triggerSlideHandler=y}else{var x=j(t);b.trackStyle=L((0,i.A)((0,i.A)({},t),{},{left:x}))}return b}(e,(0,i.A)((0,i.A)((0,i.A)({},n.props),n.state),{},{trackRef:n.track,listRef:n.list,slideIndex:n.state.currentSlide}));if(t){var r=t.triggerSlideHandler;delete t.triggerSlideHandler,n.setState(t),void 0!==r&&(n.slideHandler(r),n.props.verticalSwiping&&n.enableBodyScroll())}})),(0,f.A)(n,"touchEnd",(function(e){n.swipeEnd(e),n.clickable=!0})),(0,f.A)(n,"slickPrev",(function(){n.callbackTimers.push(setTimeout((function(){return n.changeSlide({message:"previous"})}),0))})),(0,f.A)(n,"slickNext",(function(){n.callbackTimers.push(setTimeout((function(){return n.changeSlide({message:"next"})}),0))})),(0,f.A)(n,"slickGoTo",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e=Number(e),isNaN(e))return"";n.callbackTimers.push(setTimeout((function(){return n.changeSlide({message:"index",index:e,currentSlide:n.state.currentSlide},t)}),0))})),(0,f.A)(n,"play",(function(){var e;if(n.props.rtl)e=n.state.currentSlide-n.props.slidesToScroll;else{if(!T((0,i.A)((0,i.A)({},n.props),n.state)))return!1;e=n.state.currentSlide+n.props.slidesToScroll}n.slideHandler(e)})),(0,f.A)(n,"autoPlay",(function(e){n.autoplayTimer&&clearInterval(n.autoplayTimer);var t=n.state.autoplaying;if("update"===e){if("hovered"===t||"focused"===t||"paused"===t)return}else if("leave"===e){if("paused"===t||"focused"===t)return}else if("blur"===e&&("paused"===t||"hovered"===t))return;n.autoplayTimer=setInterval(n.play,n.props.autoplaySpeed+50),n.setState({autoplaying:"playing"})})),(0,f.A)(n,"pause",(function(e){n.autoplayTimer&&(clearInterval(n.autoplayTimer),n.autoplayTimer=null);var t=n.state.autoplaying;"paused"===e?n.setState({autoplaying:"paused"}):"focused"===e?"hovered"!==t&&"playing"!==t||n.setState({autoplaying:"focused"}):"playing"===t&&n.setState({autoplaying:"hovered"})})),(0,f.A)(n,"onDotsOver",(function(){return n.props.autoplay&&n.pause("hovered")})),(0,f.A)(n,"onDotsLeave",(function(){return n.props.autoplay&&"hovered"===n.state.autoplaying&&n.autoPlay("leave")})),(0,f.A)(n,"onTrackOver",(function(){return n.props.autoplay&&n.pause("hovered")})),(0,f.A)(n,"onTrackLeave",(function(){return n.props.autoplay&&"hovered"===n.state.autoplaying&&n.autoPlay("leave")})),(0,f.A)(n,"onSlideFocus",(function(){return n.props.autoplay&&n.pause("focused")})),(0,f.A)(n,"onSlideBlur",(function(){return n.props.autoplay&&"focused"===n.state.autoplaying&&n.autoPlay("blur")})),(0,f.A)(n,"render",(function(){var e,t,a,l=b()("slick-slider",n.props.className,{"slick-vertical":n.props.vertical,"slick-initialized":!0}),c=(0,i.A)((0,i.A)({},n.props),n.state),s=R(c,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),u=n.props.pauseOnHover;if(s=(0,i.A)((0,i.A)({},s),{},{onMouseEnter:u?n.onTrackOver:null,onMouseLeave:u?n.onTrackLeave:null,onMouseOver:u?n.onTrackOver:null,focusOnSelect:n.props.focusOnSelect&&n.clickable?n.selectHandler:null}),!0===n.props.dots&&n.state.slideCount>=n.props.slidesToShow){var d=R(c,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),f=n.props.pauseOnDotsHover;d=(0,i.A)((0,i.A)({},d),{},{clickHandler:n.changeSlide,onMouseEnter:f?n.onDotsLeave:null,onMouseOver:f?n.onDotsOver:null,onMouseLeave:f?n.onDotsLeave:null}),e=r.createElement(V,d)}var p=R(c,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);p.clickHandler=n.changeSlide,n.props.arrows&&(t=r.createElement(Z,p),a=r.createElement(J,p));var v=null;n.props.vertical&&(v={height:n.state.listHeight});var m=null;!1===n.props.vertical?!0===n.props.centerMode&&(m={padding:"0px "+n.props.centerPadding}):!0===n.props.centerMode&&(m={padding:n.props.centerPadding+" 0px"});var h=(0,i.A)((0,i.A)({},v),m),g=n.props.touchMove,y={className:"slick-list",style:h,onClick:n.clickHandler,onMouseDown:g?n.swipeStart:null,onMouseMove:n.state.dragging&&g?n.swipeMove:null,onMouseUp:g?n.swipeEnd:null,onMouseLeave:n.state.dragging&&g?n.swipeEnd:null,onTouchStart:g?n.swipeStart:null,onTouchMove:n.state.dragging&&g?n.swipeMove:null,onTouchEnd:g?n.touchEnd:null,onTouchCancel:n.state.dragging&&g?n.swipeEnd:null,onKeyDown:n.props.accessibility?n.keyHandler:null},A={className:l,dir:"ltr",style:n.props.style};return n.props.unslick&&(y={className:"slick-list"},A={className:l,style:n.props.style}),r.createElement("div",A,n.props.unslick?"":t,r.createElement("div",(0,o.A)({ref:n.listRefHandler},y),r.createElement(U,(0,o.A)({ref:n.trackRefHandler},s),n.props.children)),n.props.unslick?"":a,n.props.unslick?"":e)})),n.list=null,n.track=null,n.state=(0,i.A)((0,i.A)({},m),{},{currentSlide:n.props.initialSlide,targetSlide:n.props.initialSlide?n.props.initialSlide:0,slideCount:r.Children.count(n.props.children)}),n.callbackTimers=[],n.clickable=!0,n.debouncedResize=null;var g=n.ssrInit();return n.state=(0,i.A)((0,i.A)({},n.state),g),n}return(0,d.A)(t,e),(0,l.A)(t,[{key:"didPropsChange",value:function(e){for(var t=!1,n=0,o=Object.keys(this.props);n1&&void 0!==arguments[1]&&arguments[1];return n.innerSlider.slickGoTo(e,t)})),(0,f.A)(n,"slickPause",(function(){return n.innerSlider.pause("paused")})),(0,f.A)(n,"slickPlay",(function(){return n.innerSlider.autoPlay("play")})),n.state={breakpoint:null},n._responsiveMediaHandlers=[],n}return(0,d.A)(t,e),(0,l.A)(t,[{key:"media",value:function(e,t){var n=window.matchMedia(e),r=function(e){e.matches&&t()};n.addListener(r),r(n),this._responsiveMediaHandlers.push({mql:n,query:e,listener:r})}},{key:"componentDidMount",value:function(){var e=this;if(this.props.responsive){var t=this.props.responsive.map((function(e){return e.breakpoint}));t.sort((function(e,t){return e-t})),t.forEach((function(n,r){var o;o=0===r?oe()({minWidth:0,maxWidth:n}):oe()({minWidth:t[r-1]+1,maxWidth:n}),X()&&e.media(o,(function(){e.setState({breakpoint:n})}))}));var n=oe()({minWidth:t.slice(-1)[0]});X()&&this.media(n,(function(){e.setState({breakpoint:null})}))}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach((function(e){e.mql.removeListener(e.listener)}))}},{key:"render",value:function(){var e,t,n=this;(e=this.state.breakpoint?"unslick"===(t=this.props.responsive.filter((function(e){return e.breakpoint===n.state.breakpoint})))[0].settings?"unslick":(0,i.A)((0,i.A)((0,i.A)({},y),this.props),t[0].settings):(0,i.A)((0,i.A)({},y),this.props)).centerMode&&(e.slidesToScroll,e.slidesToScroll=1),e.fade&&(e.slidesToShow,e.slidesToScroll,e.slidesToShow=1,e.slidesToScroll=1);var a=r.Children.toArray(this.props.children);a=a.filter((function(e){return"string"==typeof e?!!e.trim():!!e})),e.variableWidth&&(e.rows>1||e.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),e.variableWidth=!1);for(var l=[],c=null,s=0;s=a.length));p+=1)f.push(r.cloneElement(a[p],{key:100*s+10*d+p,tabIndex:-1,style:{width:"".concat(100/e.slidesPerRow,"%"),display:"inline-block"}}));u.push(r.createElement("div",{key:10*s+d},f))}e.variableWidth?l.push(r.createElement("div",{key:s,style:{width:c}},u)):l.push(r.createElement("div",{key:s},u))}if("unslick"===e){var v="regular slider "+(this.props.className||"");return r.createElement("div",{className:v},a)}return l.length<=e.slidesToShow&&!e.infinite&&(e.unslick=!0),r.createElement(ne,(0,o.A)({style:this.props.style,ref:this.innerSliderRefHandler},function(e){return K.reduce((function(t,n){return e.hasOwnProperty(n)&&(t[n]=e[n]),t}),{})}(e)),l)}}])}(r.Component);var ae=n(2279),le=n(1466),ce=n(5905),se=n(665),ue=n(336);const de=e=>{const{componentCls:t,antCls:n,carouselArrowSize:r,carouselDotOffset:o,marginXXS:i}=e,a=e.calc(r).mul(-1.25).equal(),l=i;return{[t]:Object.assign(Object.assign({},(0,ce.dF)(e)),{".slick-slider":{position:"relative",display:"block",boxSizing:"border-box",touchAction:"pan-y",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",".slick-track, .slick-list":{transform:"translate3d(0, 0, 0)",touchAction:"pan-y"}},".slick-list":{position:"relative",display:"block",margin:0,padding:0,overflow:"hidden","&:focus":{outline:"none"},"&.dragging":{cursor:"pointer"},".slick-slide":{pointerEvents:"none",[`input${n}-radio-input, input${n}-checkbox-input`]:{visibility:"hidden"},"&.slick-active":{pointerEvents:"auto",[`input${n}-radio-input, input${n}-checkbox-input`]:{visibility:"visible"}},"> div > div":{verticalAlign:"bottom"}}},".slick-track":{position:"relative",top:0,insetInlineStart:0,display:"block","&::before, &::after":{display:"table",content:'""'},"&::after":{clear:"both"}},".slick-slide":{display:"none",float:"left",height:"100%",minHeight:1,img:{display:"block"},"&.dragging img":{pointerEvents:"none"}},".slick-initialized .slick-slide":{display:"block"},".slick-vertical .slick-slide":{display:"block",height:"auto"},".slick-arrow.slick-hidden":{display:"none"},".slick-prev, .slick-next":{position:"absolute",top:"50%",display:"block",width:r,height:r,marginTop:e.calc(r).mul(-1).div(2).equal(),padding:0,color:"transparent",fontSize:0,lineHeight:0,background:"transparent",border:0,outline:"none",cursor:"pointer","&:hover, &:focus":{color:"transparent",background:"transparent",outline:"none","&::before":{opacity:1}},"&.slick-disabled::before":{opacity:.25}},".slick-prev":{insetInlineStart:a,"&::before":{content:'"\u2190"'}},".slick-next":{insetInlineEnd:a,"&::before":{content:'"\u2192"'}},".slick-dots":{position:"absolute",insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:15,display:"flex !important",justifyContent:"center",paddingInlineStart:0,margin:0,listStyle:"none","&-bottom":{bottom:o},"&-top":{top:o,bottom:"auto"},li:{position:"relative",display:"inline-block",flex:"0 1 auto",boxSizing:"content-box",width:e.dotWidth,height:e.dotHeight,marginInline:l,padding:0,textAlign:"center",textIndent:-999,verticalAlign:"top",transition:`all ${e.motionDurationSlow}`,button:{position:"relative",display:"block",width:"100%",height:e.dotHeight,padding:0,color:"transparent",fontSize:0,background:e.colorBgContainer,border:0,borderRadius:e.dotHeight,outline:"none",cursor:"pointer",opacity:.3,transition:`all ${e.motionDurationSlow}`,"&: hover, &:focus":{opacity:.75},"&::after":{position:"absolute",inset:e.calc(l).mul(-1).equal(),content:'""'}},"&.slick-active":{width:e.dotActiveWidth,"& button":{background:e.colorBgContainer,opacity:1},"&: hover, &:focus":{opacity:1}}}}})}},fe=e=>{const{componentCls:t,carouselDotOffset:n,marginXXS:r}=e,o={width:e.dotHeight,height:e.dotWidth};return{[`${t}-vertical`]:{".slick-dots":{top:"50%",bottom:"auto",flexDirection:"column",width:e.dotHeight,height:"auto",margin:0,transform:"translateY(-50%)","&-left":{insetInlineEnd:"auto",insetInlineStart:n},"&-right":{insetInlineEnd:n,insetInlineStart:"auto"},li:Object.assign(Object.assign({},o),{margin:`${(0,le.zA)(r)} 0`,verticalAlign:"baseline",button:o,"&.slick-active":Object.assign(Object.assign({},o),{button:o})})}}}},pe=e=>{const{componentCls:t}=e;return[{[`${t}-rtl`]:{direction:"rtl",".slick-dots":{[`${t}-rtl&`]:{flexDirection:"row-reverse"}}}},{[`${t}-vertical`]:{".slick-dots":{[`${t}-rtl&`]:{flexDirection:"column"}}}}]},ve=(0,se.OF)("Carousel",(e=>{const{controlHeightLG:t,controlHeightSM:n}=e,r=(0,ue.h1)(e,{carouselArrowSize:e.calc(t).div(2).equal(),carouselDotOffset:e.calc(n).div(2).equal()});return[de(r),fe(r),pe(r)]}),(()=>({dotWidth:16,dotHeight:3,dotWidthActive:24,dotActiveWidth:24})),{deprecatedTokens:[["dotWidthActive","dotActiveWidth"]]});var me=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{dots:n=!0,arrows:o=!1,draggable:i=!1,waitForAnimate:a=!1,dotPosition:l="bottom",vertical:c="left"===l||"right"===l,rootClassName:s,className:u,style:d,id:f}=e,p=me(e,["dots","arrows","draggable","waitForAnimate","dotPosition","vertical","rootClassName","className","style","id"]),{getPrefixCls:v,direction:m,carousel:h}=r.useContext(ae.QO),g=r.useRef(),y=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];g.current.slickGoTo(e,t)};r.useImperativeHandle(t,(()=>({goTo:y,autoPlay:g.current.innerSlider.autoPlay,innerSlider:g.current.innerSlider,prev:g.current.slickPrev,next:g.current.slickNext})),[g.current]);const A=r.useRef(r.Children.count(e.children));r.useEffect((()=>{A.current!==r.Children.count(e.children)&&(y(e.initialSlide||0,!1),A.current=r.Children.count(e.children))}),[e.children]);const w=Object.assign({vertical:c,className:b()(u,null==h?void 0:h.className),style:Object.assign(Object.assign({},null==h?void 0:h.style),d)},p);"fade"===w.effect&&(w.fade=!0);const S=v("carousel",w.prefixCls),x="slick-dots",C=!!n,k=b()(x,`${x}-${l}`,"boolean"!=typeof n&&(null==n?void 0:n.className)),[E,M,$]=ve(S),O=b()(S,{[`${S}-rtl`]:"rtl"===m,[`${S}-vertical`]:w.vertical},M,$,s);return E(r.createElement("div",{className:O,id:f},r.createElement(ie,Object.assign({ref:g},w,{dots:C,dotsClass:k,arrows:o,draggable:i,verticalSwiping:c,waitForAnimate:a}))))}));const ge=he},2279:(e,t,n)=>{"use strict";n.d(t,{QO:()=>r});const r=n(6540).createContext({getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:"anticon"}),{Consumer:o}=r},934:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(3511);const o=e=>{const[,,,,t]=(0,r.Ay)();return t?`${e}-css-var`:""}},4016:(e,t,n)=>{"use strict";n.d(t,{A:()=>x});var r=n(6540),o=n(6942),i=n.n(o),a=n(9853);function l(e){return["small","middle","large"].includes(e)}var c=n(2279),s=n(665),u=n(336);const d=["wrap","nowrap","wrap-reverse"],f=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],p=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"];const v=function(e,t){return i()(Object.assign(Object.assign(Object.assign({},((e,t)=>{const n={};return d.forEach((r=>{n[`${e}-wrap-${r}`]=t.wrap===r})),n})(e,t)),((e,t)=>{const n={};return p.forEach((r=>{n[`${e}-align-${r}`]=t.align===r})),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n})(e,t)),((e,t)=>{const n={};return f.forEach((r=>{n[`${e}-justify-${r}`]=t.justify===r})),n})(e,t)))},m=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},h=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},g=e=>{const{componentCls:t}=e,n={};return d.forEach((e=>{n[`${t}-wrap-${e}`]={flexWrap:e}})),n},b=e=>{const{componentCls:t}=e,n={};return p.forEach((e=>{n[`${t}-align-${e}`]={alignItems:e}})),n},y=e=>{const{componentCls:t}=e,n={};return f.forEach((e=>{n[`${t}-justify-${e}`]={justifyContent:e}})),n},A=(0,s.OF)("Flex",(e=>{const{paddingXS:t,padding:n,paddingLG:r}=e,o=(0,u.h1)(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[m(o),h(o),g(o),b(o),y(o)]}),(()=>({})),{resetStyle:!1});var w=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:n,rootClassName:o,className:s,style:u,flex:d,gap:f,children:p,vertical:m=!1,component:h="div"}=e,g=w(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:b,direction:y,getPrefixCls:S}=r.useContext(c.QO),x=S("flex",n),[C,k,E]=A(x),M=null!=m?m:null==b?void 0:b.vertical,$=i()(s,o,null==b?void 0:b.className,x,k,E,v(x,e),{[`${x}-rtl`]:"rtl"===y,[`${x}-gap-${f}`]:l(f),[`${x}-vertical`]:M}),O=Object.assign(Object.assign({},null==b?void 0:b.style),u);return d&&(O.flex=d),f&&!l(f)&&(O.gap=f),C(r.createElement(h,Object.assign({ref:t,className:$,style:O},(0,a.A)(g,["justify","wrap","align"])),p))}));const x=S},3343:(e,t,n)=>{"use strict";n.d(t,{A:()=>$t});var r=n(6540),o=n(8168);const i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};var a=n(8046),l=function(e,t){return r.createElement(a.A,(0,o.A)({},e,{ref:t,icon:i}))};const c=r.forwardRef(l);var s=n(6942),u=n.n(s),d=n(9379),f=n(4467),p=n(6636),v=n(2284),m=n(45);function h(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}var g=n(2533),b=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],y=r.createContext(null),A=0;function w(e){var t=e.src,n=e.isCustomPlaceholder,o=e.fallback,i=(0,r.useState)(n?"loading":"normal"),a=(0,p.A)(i,2),l=a[0],c=a[1],s=(0,r.useRef)(!1),u="error"===l;(0,r.useEffect)((function(){var e=!0;return function(e){return new Promise((function(t){var n=document.createElement("img");n.onerror=function(){return t(!1)},n.onload=function(){return t(!0)},n.src=e}))}(t).then((function(t){!t&&e&&c("error")})),function(){e=!1}}),[t]),(0,r.useEffect)((function(){n&&!s.current?c("loading"):u&&c("normal")}),[t]);var d=function(){c("normal")};return[function(e){s.current=!1,"loading"===l&&null!=e&&e.complete&&(e.naturalWidth||e.naturalHeight)&&(s.current=!0,d())},u&&o?{src:o}:{onLoad:d,src:t},l]}var S=n(5470),x=r.createContext({}),C=n(4808),k=n(6855),E=n(6928),M="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/),$="aria-",O="data-";function T(e,t){return 0===e.indexOf(t)}function R(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:(0,d.A)({},n);var r={};return Object.keys(e).forEach((function(n){(t.aria&&("role"===n||T(n,$))||t.data&&T(n,O)||t.attr&&M.includes(n))&&(r[n]=e[n])})),r}function z(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function P(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}var N=n(8542),I=n(8719);const L=r.memo((function(e){return e.children}),(function(e,t){return!t.shouldUpdate}));var j={width:0,height:0,overflow:"hidden",outline:"none"},_={outline:"none"},H=r.forwardRef((function(e,t){var n=e.prefixCls,i=e.className,a=e.style,l=e.title,c=e.ariaId,s=e.footer,f=e.closable,p=e.closeIcon,m=e.onClose,h=e.children,g=e.bodyStyle,b=e.bodyProps,y=e.modalRender,A=e.onMouseDown,w=e.onMouseUp,S=e.holderRef,C=e.visible,k=e.forceRender,E=e.width,M=e.height,$=e.classNames,O=e.styles,T=r.useContext(x).panel,z=(0,I.xK)(S,T),P=(0,r.useRef)(),N=(0,r.useRef)(),H=(0,r.useRef)();r.useImperativeHandle(t,(function(){return{focus:function(){var e;null===(e=H.current)||void 0===e||e.focus()},changeActive:function(e){var t=document.activeElement;e&&t===N.current?P.current.focus():e||t!==P.current||N.current.focus()}}}));var D,B,W={};void 0!==E&&(W.width=E),void 0!==M&&(W.height=M),s&&(D=r.createElement("div",{className:u()("".concat(n,"-footer"),null==$?void 0:$.footer),style:(0,d.A)({},null==O?void 0:O.footer)},s)),l&&(B=r.createElement("div",{className:u()("".concat(n,"-header"),null==$?void 0:$.header),style:(0,d.A)({},null==O?void 0:O.header)},r.createElement("div",{className:"".concat(n,"-title"),id:c},l)));var F,X=(0,r.useMemo)((function(){return"object"===(0,v.A)(f)&&null!==f?f:f?{closeIcon:null!=p?p:r.createElement("span",{className:"".concat(n,"-close-x")})}:{}}),[f,p]),K=R(X,!0);f&&(F=r.createElement("button",(0,o.A)({type:"button",onClick:m,"aria-label":"Close"},K,{className:"".concat(n,"-close")}),X.closeIcon));var G=r.createElement("div",{className:u()("".concat(n,"-content"),null==$?void 0:$.content),style:null==O?void 0:O.content},F,B,r.createElement("div",(0,o.A)({className:u()("".concat(n,"-body"),null==$?void 0:$.body),style:(0,d.A)((0,d.A)({},g),null==O?void 0:O.body)},b),h),D);return r.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":l?c:null,"aria-modal":"true",ref:z,style:(0,d.A)((0,d.A)({},a),W),className:u()(n,i),onMouseDown:A,onMouseUp:w},r.createElement("div",{tabIndex:0,ref:P,style:j,"aria-hidden":"true"}),r.createElement("div",{ref:H,tabIndex:-1,style:_},r.createElement(L,{shouldUpdate:C||k},y?y(G):G)),r.createElement("div",{tabIndex:0,ref:N,style:j,"aria-hidden":"true"}))}));const D=H;var B=r.forwardRef((function(e,t){var n=e.prefixCls,i=e.title,a=e.style,l=e.className,c=e.visible,s=e.forceRender,f=e.destroyOnClose,v=e.motionName,m=e.ariaId,h=e.onVisibleChanged,g=e.mousePosition,b=(0,r.useRef)(),y=r.useState(),A=(0,p.A)(y,2),w=A[0],S=A[1],x={};function C(){var e,t,n,r,o,i=(e=b.current,t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow,n.left+=P(o),n.top+=P(o,!0),n);S(g?"".concat(g.x-i.left,"px ").concat(g.y-i.top,"px"):"")}return w&&(x.transformOrigin=w),r.createElement(N.Ay,{visible:c,onVisibleChanged:h,onAppearPrepare:C,onEnterPrepare:C,forceRender:s,motionName:v,removeOnLeave:f,ref:b},(function(c,s){var f=c.className,p=c.style;return r.createElement(D,(0,o.A)({},e,{ref:t,title:i,ariaId:m,prefixCls:n,holderRef:s,style:(0,d.A)((0,d.A)((0,d.A)({},p),a),x),className:u()(l,f)}))}))}));B.displayName="Content";const W=B;function F(e){var t=e.prefixCls,n=e.style,i=e.visible,a=e.maskProps,l=e.motionName,c=e.className;return r.createElement(N.Ay,{key:"mask",visible:i,motionName:l,leavedClassName:"".concat(t,"-mask-hidden")},(function(e,i){var l=e.className,s=e.style;return r.createElement("div",(0,o.A)({ref:i,style:(0,d.A)((0,d.A)({},s),n),className:u()("".concat(t,"-mask"),l,c)},a))}))}var X=n(8210);function K(e){var t=e.prefixCls,n=void 0===t?"rc-dialog":t,i=e.zIndex,a=e.visible,l=void 0!==a&&a,c=e.keyboard,s=void 0===c||c,f=e.focusTriggerAfterClose,v=void 0===f||f,m=e.wrapStyle,h=e.wrapClassName,g=e.wrapProps,b=e.onClose,y=e.afterOpenChange,A=e.afterClose,w=e.transitionName,S=e.animation,x=e.closable,M=void 0===x||x,$=e.mask,O=void 0===$||$,T=e.maskTransitionName,P=e.maskAnimation,N=e.maskClosable,I=void 0===N||N,L=e.maskStyle,j=e.maskProps,_=e.rootClassName,H=e.classNames,D=e.styles;var B=(0,r.useRef)(),X=(0,r.useRef)(),K=(0,r.useRef)(),G=r.useState(l),q=(0,p.A)(G,2),Y=q[0],U=q[1],V=(0,k.A)();function Q(e){null==b||b(e)}var Z=(0,r.useRef)(!1),J=(0,r.useRef)(),ee=null;return I&&(ee=function(e){Z.current?Z.current=!1:X.current===e.target&&Q(e)}),(0,r.useEffect)((function(){l&&(U(!0),(0,C.A)(X.current,document.activeElement)||(B.current=document.activeElement))}),[l]),(0,r.useEffect)((function(){return function(){clearTimeout(J.current)}}),[]),r.createElement("div",(0,o.A)({className:u()("".concat(n,"-root"),_)},R(e,{data:!0})),r.createElement(F,{prefixCls:n,visible:O&&l,motionName:z(n,T,P),style:(0,d.A)((0,d.A)({zIndex:i},L),null==D?void 0:D.mask),maskProps:j,className:null==H?void 0:H.mask}),r.createElement("div",(0,o.A)({tabIndex:-1,onKeyDown:function(e){if(s&&e.keyCode===E.A.ESC)return e.stopPropagation(),void Q(e);l&&e.keyCode===E.A.TAB&&K.current.changeActive(!e.shiftKey)},className:u()("".concat(n,"-wrap"),h,null==H?void 0:H.wrapper),ref:X,onClick:ee,style:(0,d.A)((0,d.A)((0,d.A)({zIndex:i},m),null==D?void 0:D.wrapper),{},{display:Y?null:"none"})},g),r.createElement(W,(0,o.A)({},e,{onMouseDown:function(){clearTimeout(J.current),Z.current=!0},onMouseUp:function(){J.current=setTimeout((function(){Z.current=!1}))},ref:K,closable:M,ariaId:V,prefixCls:n,visible:l&&Y,onClose:Q,onVisibleChanged:function(e){if(e)(0,C.A)(X.current,document.activeElement)||null===(t=K.current)||void 0===t||t.focus();else{if(U(!1),O&&B.current&&v){try{B.current.focus({preventScroll:!0})}catch(n){}B.current=null}Y&&(null==A||A())}var t;null==y||y(e)},motionName:z(n,w,S)}))))}var G=function(e){var t=e.visible,n=e.getContainer,i=e.forceRender,a=e.destroyOnClose,l=void 0!==a&&a,c=e.afterClose,s=e.panelRef,u=r.useState(t),d=(0,p.A)(u,2),f=d[0],v=d[1],m=r.useMemo((function(){return{panel:s}}),[s]);return r.useEffect((function(){t&&v(!0)}),[t]),i||!l||f?r.createElement(x.Provider,{value:m},r.createElement(S.A,{open:t||i||f,autoDestroy:!1,getContainer:n,autoLock:t||f},r.createElement(K,(0,o.A)({},e,{destroyOnClose:l,afterClose:function(){null==c||c(),v(!1)}})))):null};G.displayName="Dialog";const q=G;var Y=n(961);function U(e,t,n,r){var o=Y.unstable_batchedUpdates?function(e){Y.unstable_batchedUpdates(n,e)}:n;return null!=e&&e.addEventListener&&e.addEventListener(t,o,r),{remove:function(){null!=e&&e.removeEventListener&&e.removeEventListener(t,o,r)}}}var V=n(3210),Q=n(5371),Z={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function J(e,t,n,r){var o=t+n,i=(n-r)/2;if(n>r){if(t>0)return(0,f.A)({},e,i);if(t<0&&or)return(0,f.A)({},e,t<0?i:-i);return{}}function ee(e,t,n,r){var o=h(),i=o.width,a=o.height,l=null;return e<=i&&t<=a?l={x:0,y:0}:(e>i||t>a)&&(l=(0,d.A)((0,d.A)({},J("x",n,e,i)),J("y",r,t,a))),l}function te(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.hypot(n,r)}function ne(e,t,n,o,i,a,l){var c=i.rotate,s=i.scale,u=i.x,f=i.y,v=(0,r.useState)(!1),m=(0,p.A)(v,2),h=m[0],g=m[1],b=(0,r.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),y=function(e){b.current=(0,d.A)((0,d.A)({},b.current),e)};return(0,r.useEffect)((function(){var e;return n&&t&&(e=U(window,"touchmove",(function(e){return e.preventDefault()}),{passive:!1})),function(){var t;null===(t=e)||void 0===t||t.remove()}}),[n,t]),{isTouching:h,onTouchStart:function(e){if(t){e.stopPropagation(),g(!0);var n=e.touches,r=void 0===n?[]:n;r.length>1?y({point1:{x:r[0].clientX,y:r[0].clientY},point2:{x:r[1].clientX,y:r[1].clientY},eventType:"touchZoom"}):y({point1:{x:r[0].clientX-u,y:r[0].clientY-f},eventType:"move"})}},onTouchMove:function(e){var t=e.touches,n=void 0===t?[]:t,r=b.current,o=r.point1,i=r.point2,c=r.eventType;if(n.length>1&&"touchZoom"===c){var s={x:n[0].clientX,y:n[0].clientY},u={x:n[1].clientX,y:n[1].clientY},d=function(e,t,n,r){var o=te(e,n),i=te(t,r);if(0===o&&0===i)return[e.x,e.y];var a=o/(o+i);return[e.x+a*(t.x-e.x),e.y+a*(t.y-e.y)]}(o,i,s,u),f=(0,p.A)(d,2),v=f[0],m=f[1],h=te(s,u)/te(o,i);l(h,"touchZoom",v,m,!0),y({point1:s,point2:u,eventType:"touchZoom"})}else"move"===c&&(a({x:n[0].clientX-o.x,y:n[0].clientY-o.y},"move"),y({eventType:"move"}))},onTouchEnd:function(){if(n){if(h&&g(!1),y({eventType:"none"}),o>s)return a({x:0,y:0,scale:o},"touchZoom");var t=e.current.offsetWidth*s,r=e.current.offsetHeight*s,i=e.current.getBoundingClientRect(),l=i.left,u=i.top,f=c%180!=0,p=ee(f?r:t,f?t:r,l,u);p&&a((0,d.A)({},p),"dragRebound")}}}}const re=function(e){var t=e.visible,n=e.maskTransitionName,o=e.getContainer,i=e.prefixCls,a=e.rootClassName,l=e.icons,c=e.countRender,s=e.showSwitch,p=e.showProgress,v=e.current,m=e.transform,h=e.count,g=e.scale,b=e.minScale,A=e.maxScale,w=e.closeIcon,x=e.onSwitchLeft,C=e.onSwitchRight,k=e.onClose,M=e.onZoomIn,$=e.onZoomOut,O=e.onRotateRight,T=e.onRotateLeft,R=e.onFlipX,z=e.onFlipY,P=e.toolbarRender,I=e.zIndex,L=(0,r.useContext)(y),j=l.rotateLeft,_=l.rotateRight,H=l.zoomIn,D=l.zoomOut,B=l.close,W=l.left,F=l.right,X=l.flipX,K=l.flipY,G="".concat(i,"-operations-operation");r.useEffect((function(){var e=function(e){e.keyCode===E.A.ESC&&k()};return t&&window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}}),[t]);var q=[{icon:K,onClick:z,type:"flipY"},{icon:X,onClick:R,type:"flipX"},{icon:j,onClick:T,type:"rotateLeft"},{icon:_,onClick:O,type:"rotateRight"},{icon:D,onClick:$,type:"zoomOut",disabled:g<=b},{icon:H,onClick:M,type:"zoomIn",disabled:g===A}].map((function(e){var t,n=e.icon,o=e.onClick,a=e.type,l=e.disabled;return r.createElement("div",{className:u()(G,(t={},(0,f.A)(t,"".concat(i,"-operations-operation-").concat(a),!0),(0,f.A)(t,"".concat(i,"-operations-operation-disabled"),!!l),t)),onClick:o,key:a},n)})),Y=r.createElement("div",{className:"".concat(i,"-operations")},q);return r.createElement(N.Ay,{visible:t,motionName:n},(function(e){var t=e.className,n=e.style;return r.createElement(S.A,{open:!0,getContainer:null!=o?o:document.body},r.createElement("div",{className:u()("".concat(i,"-operations-wrapper"),t,a),style:(0,d.A)((0,d.A)({},n),{},{zIndex:I})},null===w?null:r.createElement("button",{className:"".concat(i,"-close"),onClick:k},w||B),s&&r.createElement(r.Fragment,null,r.createElement("div",{className:u()("".concat(i,"-switch-left"),(0,f.A)({},"".concat(i,"-switch-left-disabled"),0===v)),onClick:x},W),r.createElement("div",{className:u()("".concat(i,"-switch-right"),(0,f.A)({},"".concat(i,"-switch-right-disabled"),v===h-1)),onClick:C},F)),r.createElement("div",{className:"".concat(i,"-footer")},p&&r.createElement("div",{className:"".concat(i,"-progress")},c?c(v+1,h):"".concat(v+1," / ").concat(h)),P?P(Y,(0,d.A)({icons:{flipYIcon:q[0],flipXIcon:q[1],rotateLeftIcon:q[2],rotateRightIcon:q[3],zoomOutIcon:q[4],zoomInIcon:q[5]},actions:{onFlipY:z,onFlipX:R,onRotateLeft:T,onRotateRight:O,onZoomOut:$,onZoomIn:M},transform:m},L?{current:v,total:h}:{})):Y)))}))};var oe=["fallback","src","imgRef"],ie=["prefixCls","src","alt","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],ae=function(e){var t=e.fallback,n=e.src,i=e.imgRef,a=(0,m.A)(e,oe),l=w({src:n,fallback:t}),c=(0,p.A)(l,2),s=c[0],u=c[1];return r.createElement("img",(0,o.A)({ref:function(e){i.current=e,s(e)}},a,u))};const le=function(e){var t=e.prefixCls,n=e.src,i=e.alt,a=e.fallback,l=e.movable,c=void 0===l||l,s=e.onClose,v=e.visible,g=e.icons,b=void 0===g?{}:g,A=e.rootClassName,w=e.closeIcon,S=e.getContainer,x=e.current,C=void 0===x?0:x,k=e.count,M=void 0===k?1:k,$=e.countRender,O=e.scaleStep,T=void 0===O?.5:O,R=e.minScale,z=void 0===R?1:R,P=e.maxScale,N=void 0===P?50:P,I=e.transitionName,L=void 0===I?"zoom":I,j=e.maskTransitionName,_=void 0===j?"fade":j,H=e.imageRender,D=e.imgCommonProps,B=e.toolbarRender,W=e.onTransform,F=e.onChange,K=(0,m.A)(e,ie),G=(0,r.useRef)(),Y=(0,r.useContext)(y),J=Y&&M>1,te=Y&&M>=1,oe=(0,r.useState)(!0),le=(0,p.A)(oe,2),ce=le[0],se=le[1],ue=function(e,t,n,o){var i=(0,r.useRef)(null),a=(0,r.useRef)([]),l=(0,r.useState)(Z),c=(0,p.A)(l,2),s=c[0],u=c[1],f=function(e,t){null===i.current&&(a.current=[],i.current=(0,Q.A)((function(){u((function(e){var n=e;return a.current.forEach((function(e){n=(0,d.A)((0,d.A)({},n),e)})),i.current=null,null==o||o({transform:n,action:t}),n}))}))),a.current.push((0,d.A)((0,d.A)({},s),e))};return{transform:s,resetTransform:function(e){u(Z),o&&!(0,V.A)(Z,s)&&o({transform:Z,action:e})},updateTransform:f,dispatchZoomChange:function(r,o,i,a,l){var c=e.current,u=c.width,d=c.height,p=c.offsetWidth,v=c.offsetHeight,m=c.offsetLeft,g=c.offsetTop,b=r,y=s.scale*r;y>n?(y=n,b=n/s.scale):y0&&(r=1/r),l(r,"wheel",e.clientX,e.clientY)}}}}(G,c,v,T,de,pe,ve),he=me.isMoving,ge=me.onMouseDown,be=me.onWheel,ye=ne(G,c,v,z,de,pe,ve),Ae=ye.isTouching,we=ye.onTouchStart,Se=ye.onTouchMove,xe=ye.onTouchEnd,Ce=de.rotate,ke=de.scale,Ee=u()((0,f.A)({},"".concat(t,"-moving"),he));(0,r.useEffect)((function(){ce||se(!0)}),[ce]);var Me=function(e){null==e||e.preventDefault(),null==e||e.stopPropagation(),C>0&&(se(!1),fe("prev"),null==F||F(C-1,C))},$e=function(e){null==e||e.preventDefault(),null==e||e.stopPropagation(),C1&&void 0!==arguments[1]&&arguments[1];const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[(0,Ze.b)(r,Je,et,e.motionDurationMid,t),{[`\n ${o}${r}-enter,\n ${o}${r}-appear\n `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},nt=new Ue.Mo("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),rt=new Ue.Mo("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),ot=new Ue.Mo("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),it=new Ue.Mo("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),at=new Ue.Mo("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),lt=new Ue.Mo("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),ct={zoom:{inKeyframes:nt,outKeyframes:rt},"zoom-big":{inKeyframes:ot,outKeyframes:it},"zoom-big-fast":{inKeyframes:ot,outKeyframes:it},"zoom-left":{inKeyframes:new Ue.Mo("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),outKeyframes:new Ue.Mo("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}})},"zoom-right":{inKeyframes:new Ue.Mo("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),outKeyframes:new Ue.Mo("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}})},"zoom-up":{inKeyframes:at,outKeyframes:lt},"zoom-down":{inKeyframes:new Ue.Mo("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new Ue.Mo("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}},st=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=ct[t];return[(0,Ze.b)(r,o,i,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};var ut=n(336),dt=n(665);function ft(e){return{position:e,inset:0}}const pt=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},ft("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},ft("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:tt(e)}]},vt=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${(0,Ue.zA)(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},(0,Qe.dF)(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${(0,Ue.zA)(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${(0,Ue.zA)(e.modalCloseBtnSize)}`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},(0,Qe.K8)(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${(0,Ue.zA)(e.borderRadiusLG)} ${(0,Ue.zA)(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,\n ${t}-body,\n ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},mt=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},ht=((0,dt.OF)("Modal",(e=>{const t=(e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return(0,ut.h1)(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})})(e);return[vt(t),mt(t),pt(t),st(t,"zoom")]}),(e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${(0,Ue.zA)(e.paddingMD)} ${(0,Ue.zA)(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${(0,Ue.zA)(e.padding)} ${(0,Ue.zA)(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${(0,Ue.zA)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${(0,Ue.zA)(e.paddingXS)} ${(0,Ue.zA)(e.padding)}`:0,footerBorderTop:e.wireframe?`${(0,Ue.zA)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${(0,Ue.zA)(e.borderRadiusLG)} ${(0,Ue.zA)(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${(0,Ue.zA)(2*e.padding)} ${(0,Ue.zA)(2*e.padding)} ${(0,Ue.zA)(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM})),{unitless:{titleLineHeight:!0}}),e=>({position:e||"absolute",inset:0})),gt=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:r,marginXXS:o,prefixCls:i,colorTextLightSolid:a}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:a,background:new Ve.q("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${i}-mask-info`]:Object.assign(Object.assign({},Qe.L9),{padding:`0 ${(0,Ue.zA)(r)}`,[t]:{marginInlineEnd:o,svg:{verticalAlign:"baseline"}}})}},bt=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:r,marginXL:o,margin:i,paddingLG:a,previewOperationColorDisabled:l,previewOperationHoverColor:c,motionDurationSlow:s,iconCls:u,colorTextLightSolid:d}=e,f=new Ve.q(n).setAlpha(.1),p=f.clone().setAlpha(.2);return{[`${t}-footer`]:{position:"fixed",bottom:o,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor},[`${t}-progress`]:{marginBottom:i},[`${t}-close`]:{position:"fixed",top:o,right:{_skip_check_:!0,value:o},display:"flex",color:d,backgroundColor:f.toRgbString(),borderRadius:"50%",padding:r,outline:0,border:0,cursor:"pointer",transition:`all ${s}`,"&:hover":{backgroundColor:p.toRgbString()},[`& > ${u}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${(0,Ue.zA)(a)}`,backgroundColor:f.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${s}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${u}`]:{color:c},"&-disabled":{color:l,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${u}`]:{fontSize:e.previewOperationSize}}}}},yt=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:r,previewCls:o,zIndexPopup:i,motionDurationSlow:a}=e,l=new Ve.q(t).setAlpha(.1),c=l.clone().setAlpha(.2);return{[`${o}-switch-left, ${o}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(i).add(1).equal({unit:!1}),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:l.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${a}`,userSelect:"none","&:hover":{background:c.toRgbString()},"&-disabled":{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${o}-switch-left`]:{insetInlineStart:e.marginSM},[`${o}-switch-right`]:{insetInlineEnd:e.marginSM}}},At=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:r,componentCls:o}=e;return[{[`${o}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:Object.assign(Object.assign({},ht()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},ht()),{transition:`transform ${r} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${o}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${o}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal({unit:!1})},"&":[bt(e),yt(e)]}]},wt=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:Object.assign({},gt(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},ht())}}},St=e=>{const{previewCls:t}=e;return{[`${t}-root`]:st(e,"zoom"),"&":tt(e,!0)}},xt=(0,dt.OF)("Image",(e=>{const t=`${e.componentCls}-preview`,n=(0,ut.h1)(e,{previewCls:t,modalMaskBg:new Ve.q("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[wt(n),At(n),pt((0,ut.h1)(n,{componentCls:t})),St(n)]}),(e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new Ve.q(e.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new Ve.q(e.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new Ve.q(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:1.5*e.fontSizeIcon})));var Ct=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var t;const{prefixCls:n,preview:o,className:i,rootClassName:a,style:l}=e,s=Et(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:d,locale:f=Te,getPopupContainer:p,image:v}=r.useContext(xe.QO),m=d("image",n),h=d(),g=f.Image||Te.Image,b=(0,Ce.A)(m),[y,A,w]=xt(m,b),S=u()(a,A,w,b),x=u()(i,A,null==v?void 0:v.className),[C]=we("ImagePreview","object"==typeof o?o.zIndex:void 0),k=r.useMemo((()=>{var e;if(!1===o)return o;const t="object"==typeof o?o:{},{getContainer:n,closeIcon:i}=t,a=Et(t,["getContainer","closeIcon"]);return Object.assign(Object.assign({mask:r.createElement("div",{className:`${m}-mask-info`},r.createElement(c,null),null==g?void 0:g.preview),icons:kt},a),{getContainer:null!=n?n:p,transitionName:(0,Se.b)(h,"zoom",t.transitionName),maskTransitionName:(0,Se.b)(h,"fade",t.maskTransitionName),zIndex:C,closeIcon:null!=i?i:null===(e=null==v?void 0:v.preview)||void 0===e?void 0:e.closeIcon})}),[o,g,null===(t=null==v?void 0:v.preview)||void 0===t?void 0:t.closeIcon]),E=Object.assign(Object.assign({},null==v?void 0:v.style),l);return y(r.createElement(me,Object.assign({prefixCls:m,preview:k,rootClassName:S,className:x,style:E},s)))};Mt.PreviewGroup=e=>{var{previewPrefixCls:t,preview:n}=e,o=Ct(e,["previewPrefixCls","preview"]);const{getPrefixCls:i}=r.useContext(xe.QO),a=i("image",t),l=`${a}-preview`,c=i(),s=(0,Ce.A)(a),[d,f,p]=xt(a,s),[v]=we("ImagePreview","object"==typeof n?n.zIndex:void 0),m=r.useMemo((()=>{var e;if(!1===n)return n;const t="object"==typeof n?n:{},r=u()(f,p,s,null!==(e=t.rootClassName)&&void 0!==e?e:"");return Object.assign(Object.assign({},t),{transitionName:(0,Se.b)(c,"zoom",t.transitionName),maskTransitionName:(0,Se.b)(c,"fade",t.maskTransitionName),rootClassName:r,zIndex:v})}),[n]);return d(r.createElement(me.PreviewGroup,Object.assign({preview:m,previewPrefixCls:l,icons:kt},o)))};const $t=Mt},5905:(e,t,n)=>{"use strict";n.d(t,{K8:()=>d,L9:()=>o,Nk:()=>a,av:()=>c,dF:()=>i,t6:()=>l,vj:()=>s});var r=n(1466);const o={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},i=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},a=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),l=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),c=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),s=(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let l={};return!1!==r&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},l),a),{[o]:a})}},u=e=>({outline:`${(0,r.zA)(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),d=e=>({"&:focus-visible":Object.assign({},u(e))})},4980:(e,t,n)=>{"use strict";n.d(t,{b:()=>i});const r=e=>({animationDuration:e,animationFillMode:"both"}),o=e=>({animationDuration:e,animationFillMode:"both"}),i=function(e,t,n,i){const a=arguments.length>4&&void 0!==arguments[4]&&arguments[4]?"&":"";return{[`\n ${a}${e}-enter,\n ${a}${e}-appear\n `]:Object.assign(Object.assign({},r(i)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:Object.assign(Object.assign({},o(i)),{animationPlayState:"paused"}),[`\n ${a}${e}-enter${e}-enter-active,\n ${a}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}}},3511:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>O,Xe:()=>E,Is:()=>k});var r=n(6540),o=n(1466);const i="5.16.4";var a=n(2200);const l={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},c=Object.assign(Object.assign({},l),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});var s=n(4978);const u=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};const d=e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}};const f=e=>{const t=function(e){const t=new Array(10).fill(null).map(((t,n)=>{const r=n-1,o=e*Math.pow(2.71828,r/5),i=n>1?Math.floor(o):Math.ceil(o);return 2*Math.floor(i/2)}));return t[1]=e,t.map((e=>{return{size:e,lineHeight:(t=e,(t+8)/t)};var t}))}(e),n=t.map((e=>e.size)),r=t.map((e=>e.lineHeight)),o=n[1],i=n[0],a=n[2],l=r[1],c=r[0],s=r[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:s,lineHeightSM:c,fontHeight:Math.round(l*o),fontHeightLG:Math.round(s*a),fontHeightSM:Math.round(c*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};const p=(e,t)=>new s.q(e).setAlpha(t).toRgbString(),v=(e,t)=>new s.q(e).darken(t).toHexString(),m=e=>{const t=(0,a.cM)(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},h=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:p(r,.88),colorTextSecondary:p(r,.65),colorTextTertiary:p(r,.45),colorTextQuaternary:p(r,.25),colorFill:p(r,.15),colorFillSecondary:p(r,.06),colorFillTertiary:p(r,.04),colorFillQuaternary:p(r,.02),colorBgLayout:v(n,4),colorBgContainer:v(n,0),colorBgElevated:v(n,0),colorBgSpotlight:p(r,.85),colorBgBlur:"transparent",colorBorder:v(n,15),colorBorderSecondary:v(n,6)}};const g=(0,o.an)((function(e){const t=Object.keys(l).map((t=>{const n=(0,a.cM)(e[t]);return new Array(10).fill(1).reduce(((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e)),{})})).reduce(((e,t)=>e=Object.assign(Object.assign({},e),t)),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),function(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:l,colorPrimary:c,colorBgBase:u,colorTextBase:d}=e,f=n(c),p=n(o),v=n(i),m=n(a),h=n(l),g=r(u,d),b=n(e.colorLink||e.colorInfo);return Object.assign(Object.assign({},g),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[10],colorWarningBg:v[1],colorWarningBgHover:v[2],colorWarningBorder:v[3],colorWarningBorderHover:v[4],colorWarningHover:v[4],colorWarning:v[6],colorWarningActive:v[7],colorWarningTextHover:v[8],colorWarningText:v[9],colorWarningTextActive:v[10],colorInfoBg:h[1],colorInfoBgHover:h[2],colorInfoBorder:h[3],colorInfoBorderHover:h[4],colorInfoHover:h[4],colorInfo:h[6],colorInfoActive:h[7],colorInfoTextHover:h[8],colorInfoText:h[9],colorInfoTextActive:h[10],colorLinkHover:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new s.q("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:m,generateNeutralColorPalettes:h})),f(e.fontSize)),function(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}(e)),d(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:o+1},u(r))}(e))})),b={token:c,override:{override:c},hashed:!0},y=r.createContext(b);function A(e){return e>=0&&e<=255}const w=function(e,t){const{r:n,g:r,b:o,a:i}=new s.q(e).toRgb();if(i<1)return e;const{r:a,g:l,b:c}=new s.q(t).toRgb();for(let u=.01;u<=1;u+=.01){const e=Math.round((n-a*(1-u))/u),t=Math.round((r-l*(1-u))/u),i=Math.round((o-c*(1-u))/u);if(A(e)&&A(t)&&A(i))return new s.q({r:e,g:t,b:i,a:Math.round(100*u)/100}).toRgbString()}return new s.q({r:n,g:r,b:o,a:1}).toRgbString()};var S=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{delete r[e]}));const o=Object.assign(Object.assign({},n),r),i=1200,a=1600;if(!1===o.motion){const e="0s";o.motionDurationFast=e,o.motionDurationMid=e,o.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:w(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:w(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:w(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:4*o.lineWidth,lineWidth:o.lineWidth,controlOutlineWidth:2*o.lineWidth,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:w(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:i,screenXLMin:i,screenXLMax:1599,screenXXL:a,screenXXLMin:a,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n 0 1px 2px -2px ${new s.q("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new s.q("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new s.q("rgba(0, 0, 0, 0.09)").toRgbString()}\n `,boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var C=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const r=n.getDerivativeToken(e),{override:o}=t,i=C(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=x(a),i&&Object.entries(i).forEach((e=>{let[t,n]=e;const{theme:r}=n,o=C(n,["theme"]);let i=o;r&&(i=$(Object.assign(Object.assign({},a),o),{override:o},r)),a[t]=i})),a};function O(){const{token:e,hashed:t,theme:n,override:a,cssVar:l}=r.useContext(y),s=`${i}-${t||""}`,u=n||g,[d,f,p]=(0,o.hV)(u,[c,e],{salt:s,override:a,getComputedToken:$,formatToken:x,cssVar:l&&{prefix:l.prefix,key:l.key,unitless:k,ignore:E,preserve:M}});return[u,p,t?f:"",d,l]}},665:(e,t,n)=>{"use strict";n.d(t,{OF:()=>M});var r=n(6540),o=n(1466);n(6956),n(2533),n(8719);"undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;n(8210);var i=n(2279),a=n(5905),l=n(3511),c=n(3029),s=n(2901),u=n(3954),d=n(2176),f=n(6822);function p(e,t,n){return t=(0,u.A)(t),(0,f.A)(e,(0,d.A)()?Reflect.construct(t,n||[],(0,u.A)(e).constructor):t.apply(e,n))}var v=n(5501);const m=(0,s.A)((function e(){(0,c.A)(this,e)})),h="CALC_UNIT",g=new RegExp(h,"g");function b(e){return"number"==typeof e?`${e}${h}`:e}let y=function(e){function t(e){var n;return(0,c.A)(this,t),(n=p(this,t)).result="",e instanceof t?n.result=`(${e.result})`:"number"==typeof e?n.result=b(e):"string"==typeof e&&(n.result=e),n}return(0,v.A)(t,e),(0,s.A)(t,[{key:"add",value:function(e){return e instanceof t?this.result=`${this.result} + ${e.getResult()}`:"number"!=typeof e&&"string"!=typeof e||(this.result=`${this.result} + ${b(e)}`),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof t?this.result=`${this.result} - ${e.getResult()}`:"number"!=typeof e&&"string"!=typeof e||(this.result=`${this.result} - ${b(e)}`),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result=`(${this.result})`),e instanceof t?this.result=`${this.result} * ${e.getResult(!0)}`:"number"!=typeof e&&"string"!=typeof e||(this.result=`${this.result} * ${e}`),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result=`(${this.result})`),e instanceof t?this.result=`${this.result} / ${e.getResult(!0)}`:"number"!=typeof e&&"string"!=typeof e||(this.result=`${this.result} / ${e}`),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?`(${this.result})`:this.result}},{key:"equal",value:function(e){const{unit:t=!0}=e||{};return this.result=this.result.replace(g,t?"px":""),void 0!==this.lowPriority?`calc(${this.result})`:this.result}}])}(m),A=function(e){function t(e){var n;return(0,c.A)(this,t),(n=p(this,t)).result=0,e instanceof t?n.result=e.result:"number"==typeof e&&(n.result=e),n}return(0,v.A)(t,e),(0,s.A)(t,[{key:"add",value:function(e){return e instanceof t?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof t?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof t?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof t?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}])}(m);const w=e=>{const t="css"===e?y:A;return e=>new t(e)};var S=n(336);const x=(e,t)=>{const[n,r]=(0,l.Ay)();return(0,o.IV)({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce},(()=>[{[`.${e}`]:Object.assign(Object.assign({},(0,a.Nk)()),{[`.${e} .${e}-icon`]:{display:"block"}})}]))},C=(e,t,n)=>{var r;return"function"==typeof n?n((0,S.h1)(t,null!==(r=t[e])&&void 0!==r?r:{})):null!=n?n:{}},k=(e,t,n,r)=>{const o=Object.assign({},t[e]);if(null==r?void 0:r.deprecatedTokens){const{deprecatedTokens:e}=r;e.forEach((e=>{let[t,n]=e;var r;((null==o?void 0:o[t])||(null==o?void 0:o[n]))&&(null!==(r=o[n])&&void 0!==r||(o[n]=null==o?void 0:o[t]))}))}const i=Object.assign(Object.assign({},n),o);return Object.keys(i).forEach((e=>{i[e]===t[e]&&delete i[e]})),i};function E(e,t,n){let c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const s=Array.isArray(e)?e:[e,e],[u]=s,d=s.join("-");return function(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const[f,p,v,m,h]=(0,l.Ay)(),{getPrefixCls:g,iconPrefixCls:b,csp:y}=(0,r.useContext)(i.QO),A=g(),E=h?"css":"js",M=w(E),{max:$,min:O}=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=new Array(e),n=0;n(0,o.zA)(e))).join(",")})`},min:function(){for(var e=arguments.length,t=new Array(e),n=0;n(0,o.zA)(e))).join(",")})`}}}(E),T={theme:f,token:m,hashId:v,nonce:()=>null==y?void 0:y.nonce,clientOnly:c.clientOnly,order:c.order||-999};(0,o.IV)(Object.assign(Object.assign({},T),{clientOnly:!1,path:["Shared",A]}),(()=>[{"&":(0,a.av)(m)}])),x(b,y);const R=(0,o.IV)(Object.assign(Object.assign({},T),{path:[d,e,b]}),(()=>{if(!1===c.injectStyle)return[];const{token:r,flush:i}=(0,S.Ay)(m),l=C(u,p,n),d=`.${e}`,f=k(u,p,l,{deprecatedTokens:c.deprecatedTokens});h&&Object.keys(l).forEach((e=>{l[e]=`var(${(0,o.Ki)(e,((e,t)=>`${[t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-")}`)(u,h.prefix))})`}));const g=(0,S.h1)(r,{componentCls:d,prefixCls:e,iconCls:`.${b}`,antCls:`.${A}`,calc:M,max:$,min:O},h?l:f),y=t(g,{hashId:v,prefixCls:e,rootPrefixCls:A,iconPrefixCls:b});return i(u,f),[!1===c.resetStyle?null:(0,a.vj)(g,e,s,c.resetFont),y]}));return[R,v]}}const M=(e,t,n,i)=>{const a=E(e,t,n,i),c=((e,t,n)=>{function i(t){return`${e}${t.slice(0,1).toUpperCase()}${t.slice(1)}`}const{unitless:a={},injectStyle:c=!0}=null!=n?n:{},s={[i("zIndexPopup")]:!0};Object.keys(a).forEach((e=>{s[i(e)]=a[e]}));const u=r=>{let{rootCls:a,cssVar:c}=r;const[,u]=(0,l.Ay)();return(0,o.RC)({path:[e],prefix:c.prefix,key:null==c?void 0:c.key,unitless:Object.assign(Object.assign({},l.Is),s),ignore:l.Xe,token:u,scope:a},(()=>{const r=C(e,u,t),o=k(e,u,r,{deprecatedTokens:null==n?void 0:n.deprecatedTokens});return Object.keys(r).forEach((e=>{o[i(e)]=o[e],delete o[e]})),o})),null};return t=>{const[,,,,n]=(0,l.Ay)();return[o=>c&&n?r.createElement(r.Fragment,null,r.createElement(u,{rootCls:t,cssVar:n,component:e}),o):o,null==n?void 0:n.key]}})(Array.isArray(e)?e[0]:e,n,i);return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const[,n]=a(e,t),[r,o]=c(t);return[r,n,o]}}},336:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>c,h1:()=>i});const r="undefined"!=typeof CSSINJS_STATISTIC;let o=!0;function i(){for(var e=arguments.length,t=new Array(e),n=0;n{Object.keys(e).forEach((t=>{Object.defineProperty(i,t,{configurable:!0,enumerable:!0,get:()=>e[t]})}))})),o=!0,i}const a={};function l(){}const c=e=>{let t,n=e,i=l;return r&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:(e,n)=>(o&&t.add(n),e[n])}),i=(e,n)=>{var r;a[e]={global:Array.from(t),component:Object.assign(Object.assign({},null===(r=a[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:i}}},1441:(e,t,n)=>{var r=n(8028),o=function(e){var t="",n=Object.keys(e);return n.forEach((function(o,i){var a=e[o];(function(e){return/[height|width]$/.test(e)})(o=r(o))&&"number"==typeof a&&(a+="px"),t+=!0===a?o:!1===a?"not "+o:"("+o+": "+a+")",i{"use strict";n.d(t,{Ay:()=>pe});var r=n(4467),o=n(9379),i=n(6636),a=n(2284),l=n(6942),c=n.n(l),s=n(4207),u=n(8719),d=n(6540),f=d.createContext({});var p=n(3029),v=n(2901),m=n(5501),h=n(9426);const g=function(e){(0,m.A)(n,e);var t=(0,h.A)(n);function n(){return(0,p.A)(this,n),t.apply(this,arguments)}return(0,v.A)(n,[{key:"render",value:function(){return this.props.children}}]),n}(d.Component);var b=n(1233),y="none",A="appear",w="enter",S="leave",x="none",C="prepare",k="start",E="active",M="end",$="prepared",O=n(998);function T(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var R,z,P,N=(R=(0,O.A)(),z="undefined"!=typeof window?window:{},P={animationend:T("Animation","AnimationEnd"),transitionend:T("Transition","TransitionEnd")},R&&("AnimationEvent"in z||delete P.animationend.animation,"TransitionEvent"in z||delete P.transitionend.transition),P),I={};if((0,O.A)()){var L=document.createElement("div");I=L.style}var j={};function _(e){if(j[e])return j[e];var t=N[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o1&&void 0!==arguments[1]?arguments[1]:2;t();var i=(0,q.A)((function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)}));e.current=i},t]}(),s=(0,i.A)(c,2),u=s[0],f=s[1];var p=t?U:Y;return G((function(){if(a!==x&&a!==M){var e=p.indexOf(a),t=p[e+1],r=n(a);r===V?l(t,!0):t&&u((function(e){function n(){e.isCanceled()||l(t,!0)}!0===r?n():Promise.resolve(r).then(n)}))}}),[e,a]),d.useEffect((function(){return function(){f()}}),[]),[function(){l(C,!0)},a]};const ee=function(e){var t=e;"object"===(0,a.A)(e)&&(t=e.transitionSupport);var n=d.forwardRef((function(e,n){var a=e.visible,l=void 0===a||a,p=e.removeOnLeave,v=void 0===p||p,m=e.forceRender,h=e.children,x=e.motionName,M=e.leavedClassName,O=e.eventProps,T=function(e,n){return!(!e.motionName||!t||!1===n)}(e,d.useContext(f).motion),R=(0,d.useRef)(),z=(0,d.useRef)();var P=function(e,t,n,a){var l=a.motionEnter,c=void 0===l||l,s=a.motionAppear,u=void 0===s||s,f=a.motionLeave,p=void 0===f||f,v=a.motionDeadline,m=a.motionLeaveImmediately,h=a.onAppearPrepare,g=a.onEnterPrepare,x=a.onLeavePrepare,M=a.onAppearStart,O=a.onEnterStart,T=a.onLeaveStart,R=a.onAppearActive,z=a.onEnterActive,P=a.onLeaveActive,N=a.onAppearEnd,I=a.onEnterEnd,L=a.onLeaveEnd,j=a.onVisibleChanged,_=(0,b.A)(),H=(0,i.A)(_,2),D=H[0],B=H[1],W=(0,b.A)(y),F=(0,i.A)(W,2),X=F[0],q=F[1],Y=(0,b.A)(null),U=(0,i.A)(Y,2),ee=U[0],te=U[1],ne=(0,d.useRef)(!1),re=(0,d.useRef)(null);function oe(){return n()}var ie=(0,d.useRef)(!1);function ae(){q(y,!0),te(null,!0)}function le(e){var t=oe();if(!e||e.deadline||e.target===t){var n,r=ie.current;X===A&&r?n=null==N?void 0:N(t,e):X===w&&r?n=null==I?void 0:I(t,e):X===S&&r&&(n=null==L?void 0:L(t,e)),X!==y&&r&&!1!==n&&ae()}}var ce=K(le),se=(0,i.A)(ce,1)[0],ue=function(e){var t,n,o;switch(e){case A:return t={},(0,r.A)(t,C,h),(0,r.A)(t,k,M),(0,r.A)(t,E,R),t;case w:return n={},(0,r.A)(n,C,g),(0,r.A)(n,k,O),(0,r.A)(n,E,z),n;case S:return o={},(0,r.A)(o,C,x),(0,r.A)(o,k,T),(0,r.A)(o,E,P),o;default:return{}}},de=d.useMemo((function(){return ue(X)}),[X]),fe=J(X,!e,(function(e){if(e===C){var t=de[C];return t?t(oe()):V}var n;return me in de&&te((null===(n=de[me])||void 0===n?void 0:n.call(de,oe(),null))||null),me===E&&(se(oe()),v>0&&(clearTimeout(re.current),re.current=setTimeout((function(){le({deadline:!0})}),v))),me===$&&ae(),Q})),pe=(0,i.A)(fe,2),ve=pe[0],me=pe[1],he=Z(me);ie.current=he,G((function(){B(t);var n,r=ne.current;ne.current=!0,!r&&t&&u&&(n=A),r&&t&&c&&(n=w),(r&&!t&&p||!r&&m&&!t&&p)&&(n=S);var o=ue(n);n&&(e||o[C])?(q(n),ve()):q(y)}),[t]),(0,d.useEffect)((function(){(X===A&&!u||X===w&&!c||X===S&&!p)&&q(y)}),[u,c,p]),(0,d.useEffect)((function(){return function(){ne.current=!1,clearTimeout(re.current)}}),[]);var ge=d.useRef(!1);(0,d.useEffect)((function(){D&&(ge.current=!0),void 0!==D&&X===y&&((ge.current||D)&&(null==j||j(D)),ge.current=!0)}),[D,X]);var be=ee;return de[C]&&me===k&&(be=(0,o.A)({transition:"none"},be)),[X,me,be,null!=D?D:t]}(T,l,(function(){try{return R.current instanceof HTMLElement?R.current:(0,s.A)(z.current)}catch(e){return null}}),e),N=(0,i.A)(P,4),I=N[0],L=N[1],j=N[2],_=N[3],H=d.useRef(_);_&&(H.current=!0);var D,B=d.useCallback((function(e){R.current=e,(0,u.Xf)(n,e)}),[n]),W=(0,o.A)((0,o.A)({},O),{},{visible:l});if(h)if(I===y)D=_?h((0,o.A)({},W),B):!v&&H.current&&M?h((0,o.A)((0,o.A)({},W),{},{className:M}),B):m||!v&&!M?h((0,o.A)((0,o.A)({},W),{},{style:{display:"none"}}),B):null;else{var F,q;L===C?q="prepare":Z(L)?q="active":L===k&&(q="start");var Y=X(x,"".concat(I,"-").concat(q));D=h((0,o.A)((0,o.A)({},W),{},{className:c()(X(x,I),(F={},(0,r.A)(F,Y,Y&&q),(0,r.A)(F,x,"string"==typeof x),F)),style:j}),B)}else D=null;d.isValidElement(D)&&(0,u.f3)(D)&&(D.ref||(D=d.cloneElement(D,{ref:B})));return d.createElement(g,{ref:z},D)}));return n.displayName="CSSMotion",n}(B);var te=n(8168),ne=n(45),re=n(9417),oe="add",ie="keep",ae="remove",le="removed";function ce(e){var t;return t=e&&"object"===(0,a.A)(e)&&"key"in e?e:{key:e},(0,o.A)((0,o.A)({},t),{},{key:String(t.key)})}function se(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(ce)}var ue=["component","children","onVisibleChanged","onAllRemoved"],de=["status"],fe=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ee,n=function(e){(0,m.A)(i,e);var n=(0,h.A)(i);function i(){var e;(0,p.A)(this,i);for(var t=arguments.length,a=new Array(t),l=0;l0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,i=t.length,a=se(e),l=se(t);a.forEach((function(e){for(var t=!1,a=r;a1})).forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==ae}))).forEach((function(t){t.key===e&&(t.status=ie)}))})),n}(r,i);return{keyEntities:a.filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||t.status!==le||e.status!==ae}))}}}]),i}(d.Component);(0,r.A)(n,"defaultProps",{component:"div"})}(B);const pe=ee},998:(e,t,n)=>{"use strict";function r(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}n.d(t,{A:()=>r})},4808:(e,t,n)=>{"use strict";function r(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}n.d(t,{A:()=>r})},5089:(e,t,n)=>{"use strict";n.d(t,{BD:()=>h,m6:()=>m});var r=n(9379),o=n(998),i=n(4808),a="data-rc-order",l="data-rc-priority",c="rc-util-key",s=new Map;function u(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):c}function d(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function f(e){return Array.from((s.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(0,o.A)())return null;var n=t.csp,r=t.prepend,i=t.priority,c=void 0===i?0:i,s=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r),u="prependQueue"===s,p=document.createElement("style");p.setAttribute(a,s),u&&c&&p.setAttribute(l,"".concat(c)),null!=n&&n.nonce&&(p.nonce=null==n?void 0:n.nonce),p.innerHTML=e;var v=d(t),m=v.firstChild;if(r){if(u){var h=(t.styles||f(v)).filter((function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(a)))return!1;var t=Number(e.getAttribute(l)||0);return c>=t}));if(h.length)return v.insertBefore(p,h[h.length-1].nextSibling),p}v.insertBefore(p,m)}else v.appendChild(p);return p}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=d(t);return(t.styles||f(n)).find((function(n){return n.getAttribute(u(t))===e}))}function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=v(e,t);n&&d(t).removeChild(n)}function h(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=d(n),a=f(o),l=(0,r.A)((0,r.A)({},n),{},{styles:a});!function(e,t){var n=s.get(e);if(!n||!(0,i.A)(document,n)){var r=p("",t),o=r.parentNode;s.set(e,o),e.removeChild(r)}}(o,l);var c=v(t,l);if(c){var m,h,g;if(null!==(m=l.csp)&&void 0!==m&&m.nonce&&c.nonce!==(null===(h=l.csp)||void 0===h?void 0:h.nonce))c.nonce=null===(g=l.csp)||void 0===g?void 0:g.nonce;return c.innerHTML!==e&&(c.innerHTML=e),c}var b=p(e,l);return b.setAttribute(u(l),t),b}},4207:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,f:()=>i});var r=n(6540),o=n(961);function i(e){return e instanceof HTMLElement||e instanceof SVGElement}function a(e){return i(e)?e:e instanceof r.Component?o.findDOMNode(e):null}},2633:(e,t,n)=>{"use strict";function r(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function o(e){return function(e){return r(e)instanceof ShadowRoot}(e)?r(e):null}n.d(t,{j:()=>o})},6928:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=r.F1&&t<=r.F12)return!1;switch(t){case r.ALT:case r.CAPS_LOCK:case r.CONTEXT_MENU:case r.CTRL:case r.DOWN:case r.END:case r.ESC:case r.HOME:case r.INSERT:case r.LEFT:case r.MAC_FF_META:case r.META:case r.NUMLOCK:case r.NUM_CENTER:case r.PAGE_DOWN:case r.PAGE_UP:case r.PAUSE:case r.PRINT_SCREEN:case r.RIGHT:case r.SHIFT:case r.UP:case r.WIN_KEY:case r.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=r.ZERO&&e<=r.NINE)return!0;if(e>=r.NUM_ZERO&&e<=r.NUM_MULTIPLY)return!0;if(e>=r.A&&e<=r.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case r.SPACE:case r.QUESTION_MARK:case r.NUM_PLUS:case r.NUM_MINUS:case r.NUM_PERIOD:case r.NUM_DIVISION:case r.SEMICOLON:case r.DASH:case r.EQUALS:case r.COMMA:case r.PERIOD:case r.SLASH:case r.APOSTROPHE:case r.SINGLE_QUOTE:case r.OPEN_SQUARE_BRACKET:case r.BACKSLASH:case r.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const o=r},6956:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(6540);function o(e){var t=r.useRef();t.current=e;var n=r.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o{"use strict";var r;n.d(t,{A:()=>s});var o=n(6636),i=n(9379),a=n(6540);var l=0;var c=(0,i.A)({},r||(r=n.t(a,2))).useId;const s=c?function(e){var t=c();return e||t}:function(e){var t=a.useState("ssr-id"),n=(0,o.A)(t,2),r=n[0],i=n[1];return a.useEffect((function(){var e=l;l+=1,i("rc_unique_".concat(e))}),[]),e||r}},981:(e,t,n)=>{"use strict";n.d(t,{A:()=>l,o:()=>a});var r=n(6540),o=(0,n(998).A)()?r.useLayoutEffect:r.useEffect,i=function(e,t){var n=r.useRef(!0);o((function(){return e(n.current)}),t),o((function(){return n.current=!1,function(){n.current=!0}}),[])},a=function(e,t){i((function(t){if(!t)return e()}),t)};const l=i},8104:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(6540);function o(e,t,n){var o=r.useRef({});return"value"in o.current&&!n(o.current.condition,t)||(o.current.value=e(),o.current.condition=t),o.current.value}},2533:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(6636),o=n(6956),i=n(981),a=n(1233);function l(e){return void 0!==e}function c(e,t){var n=t||{},c=n.defaultValue,s=n.value,u=n.onChange,d=n.postState,f=(0,a.A)((function(){return l(s)?s:l(c)?"function"==typeof c?c():c:"function"==typeof e?e():e})),p=(0,r.A)(f,2),v=p[0],m=p[1],h=void 0!==s?s:v,g=d?d(h):h,b=(0,o.A)(u),y=(0,a.A)([h]),A=(0,r.A)(y,2),w=A[0],S=A[1];return(0,i.o)((function(){var e=w[0];v!==e&&b(v,e)}),[w]),(0,i.o)((function(){l(s)||m(s)}),[s]),[g,(0,o.A)((function(e,t){m(e,t),S([h],t)}))]}},1233:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(6636),o=n(6540);function i(e){var t=o.useRef(!1),n=o.useState(e),i=(0,r.A)(n,2),a=i[0],l=i[1];return o.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),[a,function(e,n){n&&t.current||l(e)}]}},3210:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(2284),o=n(8210);const i=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=new Set;return function e(t,a){var l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,c=i.has(t);if((0,o.Ay)(!c,"Warning: There may be circular references"),c)return!1;if(t===a)return!0;if(n&&l>1)return!1;i.add(t);var s=l+1;if(Array.isArray(t)){if(!Array.isArray(a)||t.length!==a.length)return!1;for(var u=0;u{"use strict";n.d(t,{A:()=>o});var r=n(9379);function o(e,t){var n=(0,r.A)({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}},5371:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=function(e){return+setTimeout(e,16)},o=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(r=function(e){return window.requestAnimationFrame(e)},o=function(e){return window.cancelAnimationFrame(e)});var i=0,a=new Map;function l(e){a.delete(e)}var c=function(e){var t=i+=1;return function n(o){if(0===o)l(t),e();else{var i=r((function(){n(o-1)}));a.set(t,i)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};c.cancel=function(e){var t=a.get(e);return l(e),o(t)};const s=c},8719:(e,t,n)=>{"use strict";n.d(t,{K4:()=>l,Xf:()=>a,f3:()=>s,xK:()=>c});var r=n(2284),o=(n(6540),n(6351)),i=n(8104);function a(e,t){"function"==typeof e?e(t):"object"===(0,r.A)(e)&&e&&"current"in e&&(e.current=t)}function l(){for(var e=arguments.length,t=new Array(e),n=0;n{"use strict";n.d(t,{$e:()=>i,Ay:()=>s});var r={},o=[];function i(e,t){}function a(e,t){}function l(e,t,n){t||r[n]||(e(!1,n),r[n]=!0)}function c(e,t){l(i,e,t)}c.preMessage=function(e){o.push(e)},c.resetWarned=function(){r={}},c.noteOnce=function(e,t){l(a,e,t)};const s=c},7787:(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function g(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case l:case a:case f:case p:return e;default:switch(e=e&&e.$$typeof){case u:case s:case d:case m:case v:case c:return e;default:return t}}case o:return t}}}n=Symbol.for("react.module.reference"),t.ForwardRef=d,t.isFragment=function(e){return g(e)===i},t.isMemo=function(e){return g(e)===v}},6351:(e,t,n)=>{"use strict";e.exports=n(7787)},3591:(e,t,n)=>{"use strict";n.d(t,{A:()=>C});var r=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n0},e.prototype.connect_=function(){o&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),c?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){o&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;l.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),u=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),S="undefined"!=typeof WeakMap?new WeakMap:new r,x=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=s.getInstance(),r=new w(t,n,this);S.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){x.prototype[e]=function(){var t;return(t=S.get(this))[e].apply(t,arguments)}}));const C=void 0!==i.ResizeObserver?i.ResizeObserver:x},8028:e=>{e.exports=function(e){return e.replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()})).toLowerCase()}},6942:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);nr})},9417:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{A:()=>r})},3029:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{A:()=>r})},2901:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(8406);function o(e,t){for(var n=0;n{"use strict";n.d(t,{A:()=>a});var r=n(3954),o=n(2176),i=n(6822);function a(e){var t=(0,o.A)();return function(){var n,o=(0,r.A)(e);if(t){var a=(0,r.A)(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return(0,i.A)(this,n)}}},4467:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(8406);function o(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},3954:(e,t,n)=>{"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{A:()=>r})},5501:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(3662);function o(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&&(0,r.A)(e,t)}},2176:(e,t,n)=>{"use strict";function r(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(r=function(){return!!e})()}n.d(t,{A:()=>r})},9379:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(4467);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t{"use strict";n.d(t,{A:()=>o});var r=n(8587);function o(e,t){if(null==e)return{};var n,o,i=(0,r.A)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},6822:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(2284),o=n(9417);function i(e,t){if(t&&("object"===(0,r.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.A)(e)}},6636:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(7800);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||(0,r.A)(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.")}()}},4241:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(3145);var o=n(7800);function i(e){return function(e){if(Array.isArray(e))return(0,r.A)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,o.A)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},8406:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(2284);function o(e){var t=function(e,t){if("object"!=(0,r.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=(0,r.A)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,r.A)(t)?t:t+""}},2284:(e,t,n)=>{"use strict";function r(e){return r="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},r(e)}n.d(t,{A:()=>r})},7800:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(3145);function o(e,t){if(e){if("string"==typeof e)return(0,r.A)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.A)(e,t):void 0}}},8453:(e,t,n)=>{"use strict";n.d(t,{R:()=>a,x:()=>l});var r=n(6540);const o={},i=r.createContext(o);function a(e){const t=r.useContext(i);return r.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function l(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:a(e.components),r.createElement(i.Provider,{value:t},e.children)}}}]);
\ No newline at end of file
+/*! For license information please see 6256.73278753.js.LICENSE.txt */
+(self.webpackChunkcodec_wiki=self.webpackChunkcodec_wiki||[]).push([[6256],{2200:(e,t,n)=>{"use strict";n.d(t,{z1:()=>S,cM:()=>b});var r=n(2456),o=n(6250),i=2,a=.16,l=.05,c=.05,s=.15,u=5,d=4,f=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function p(e){var t=e.r,n=e.g,o=e.b,i=(0,r.wE)(t,n,o);return{h:360*i.h,s:i.s,v:i.v}}function v(e){var t=e.r,n=e.g,o=e.b;return"#".concat((0,r.Ob)(t,n,o,!1))}function m(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-i*t:Math.round(e.h)+i*t:n?Math.round(e.h)+i*t:Math.round(e.h)-i*t)<0?r+=360:r>=360&&(r-=360),r}function h(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-a*t:t===d?e.s+a:e.s+l*t)>1&&(r=1),n&&t===u&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function g(e,t,n){var r;return(r=n?e.v+c*t:e.v-s*t)>1&&(r=1),Number(r.toFixed(2))}function b(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=(0,o.RO)(e),i=u;i>0;i-=1){var a=p(r),l=v((0,o.RO)({h:m(a,i,!0),s:h(a,i,!0),v:g(a,i,!0)}));n.push(l)}n.push(v(r));for(var c=1;c<=d;c+=1){var s=p(r),b=v((0,o.RO)({h:m(s,c),s:h(s,c),v:g(s,c)}));n.push(b)}return"dark"===t.theme?f.map((function(e){var r,i,a,l=e.index,c=e.opacity;return v((r=(0,o.RO)(t.backgroundColor||"#141414"),i=(0,o.RO)(n[l]),a=100*c/100,{r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b}))})):n}var y={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},A={},w={};Object.keys(y).forEach((function(e){A[e]=b(y[e]),A[e].primary=A[e][5],w[e]=b(y[e],{theme:"dark",backgroundColor:"#141414"}),w[e].primary=w[e][5]}));A.red,A.volcano,A.gold,A.orange,A.yellow,A.lime,A.green,A.cyan;var S=A.blue;A.geekblue,A.purple,A.magenta,A.grey,A.grey},1466:(e,t,n)=>{"use strict";n.d(t,{Mo:()=>lt,an:()=>O,Ki:()=>_,zA:()=>L,RC:()=>it,hV:()=>ee,IV:()=>rt});var r=n(4467),o=n(6636),i=n(4241),a=n(9379);const l=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)};var c=n(5089),s=n(6540),u=n.t(s,2),d=(n(8104),n(3210),n(3029)),f=n(2901),p="%";function v(e){return e.join(p)}const m=function(){function e(t){(0,d.A)(this,e),(0,r.A)(this,"instanceId",void 0),(0,r.A)(this,"cache",new Map),this.instanceId=t}return(0,f.A)(e,[{key:"get",value:function(e){return this.opGet(v(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(v(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}();var h="data-token-hash",g="data-css-hash",b="__cssinjs_instance__";function y(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(g,"]"))||[],n=document.head.firstChild;Array.from(t).forEach((function(t){t[b]=t[b]||e,t[b]===e&&document.head.insertBefore(t,n)}));var r={};Array.from(document.querySelectorAll("style[".concat(g,"]"))).forEach((function(t){var n,o=t.getAttribute(g);r[o]?t[b]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0}))}return new m(e)}var A=s.createContext({hashPriority:"low",cache:y(),defaultCache:!0});const w=A;var S=n(2284),x=n(998);var C=function(){function e(){(0,d.A)(this,e),(0,r.A)(this,"cache",void 0),(0,r.A)(this,"keys",void 0),(0,r.A)(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return(0,f.A)(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach((function(e){var t;o?o=null===(t=o)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):o=void 0})),null!==(t=o)&&void 0!==t&&t.value&&r&&(o.value[1]=this.cacheCallTimes++),null===(n=o)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce((function(e,t){var n=(0,o.A)(e,2)[1];return r.internalGet(t)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),E+=1}return(0,f.A)(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce((function(t,n){return n(e,t)}),void 0)}}]),e}(),$=new C;function O(e){var t=Array.isArray(e)?e:[e];return $.has(t)||$.set(t,new M(t)),$.get(t)}var T=new WeakMap,R={};var z=new WeakMap;function P(e){var t=z.get(e)||"";return t||(Object.keys(e).forEach((function(n){var r=e[n];t+=n,r instanceof M?t+=r.id:r&&"object"===(0,S.A)(r)?t+=P(r):t+=r})),z.set(e,t)),t}function N(e,t){return l("".concat(t,"_").concat(P(e)))}"random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,"");var I=(0,x.A)();function L(e){return"number"==typeof e?"".concat(e,"px"):e}function j(e,t,n){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var l=(0,a.A)((0,a.A)({},i),{},(o={},(0,r.A)(o,h,t),(0,r.A)(o,g,n),o)),c=Object.keys(l).map((function(e){var t=l[e];return t?"".concat(e,'="').concat(t,'"'):null})).filter((function(e){return e})).join(" ");return"")}var _=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},H=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!=n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map((function(e){var t=(0,o.A)(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")})).join(""),"}"):""},D=function(e,t,n){var r={},i={};return Object.entries(e).forEach((function(e){var t,a,l=(0,o.A)(e,2),c=l[0],s=l[1];if(null!=n&&null!==(t=n.preserve)&&void 0!==t&&t[c])i[c]=s;else if(!("string"!=typeof s&&"number"!=typeof s||null!=n&&null!==(a=n.ignore)&&void 0!==a&&a[c])){var u,d=_(c,null==n?void 0:n.prefix);r[d]="number"!=typeof s||null!=n&&null!==(u=n.unitless)&&void 0!==u&&u[c]?String(s):"".concat(s,"px"),i[c]="var(".concat(d,")")}})),[i,H(r,t,{scope:null==n?void 0:n.scope})]},B=n(981),W=(0,a.A)({},u).useInsertionEffect;const F=W?function(e,t,n){return W((function(){return e(),t()}),n)}:function(e,t,n){s.useMemo(e,n),(0,B.A)((function(){return t(!0)}),n)};const X=void 0!==(0,a.A)({},u).useInsertionEffect?function(e){var t=[],n=!1;return s.useEffect((function(){return n=!1,function(){n=!0,t.length&&t.forEach((function(e){return e()}))}}),e),function(e){n||t.push(e)}}:function(){return function(e){e()}};const K=function(){return!1};function G(e,t,n,r,a){var l=s.useContext(w).cache,c=v([e].concat((0,i.A)(t))),u=X([c]),d=(K(),function(e){l.opUpdate(c,(function(t){var r=t||[void 0,void 0],i=(0,o.A)(r,2),a=i[0];var l=[void 0===a?0:a,i[1]||n()];return e?e(l):l}))});s.useMemo((function(){d()}),[c]);var f=l.opGet(c)[1];return F((function(){null==a||a(f)}),(function(e){return d((function(t){var n=(0,o.A)(t,2),r=n[0],i=n[1];return e&&0===r&&(null==a||a(f)),[r+1,i]})),function(){l.opUpdate(c,(function(t){var n=t||[],i=(0,o.A)(n,2),a=i[0],s=void 0===a?0:a,d=i[1];return 0===s-1?(u((function(){!e&&l.opGet(c)||null==r||r(d,!1)})),null):[s-1,d]}))}}),[c]),f}var q={},Y="css",U=new Map;var V=0;function Q(e,t){U.set(e,(U.get(e)||0)-1);var n=Array.from(U.keys()),r=n.filter((function(e){return(U.get(e)||0)<=0}));n.length-r.length>V&&r.forEach((function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(h,'="').concat(e,'"]')).forEach((function(e){var n;e[b]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))}))}(e,t),U.delete(e)}))}var Z=function(e,t,n,r){var o=n.getDerivativeToken(e),i=(0,a.A)((0,a.A)({},o),t);return r&&(i=r(i)),i},J="token";function ee(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,s.useContext)(w),u=r.cache.instanceId,d=r.container,f=n.salt,p=void 0===f?"":f,v=n.override,m=void 0===v?q:v,y=n.formatToken,A=n.getComputedToken,S=n.cssVar,x=function(e,t){for(var n=T,r=0;r0?ve(ke,--xe):0,we--,10===Ce&&(we=1,Ae--),Ce}function $e(){return Ce=xe2||ze(Ce)>3?"":" "}function je(e,t){for(;--t&&$e()&&!(Ce<48||Ce>102||Ce>57&&Ce<65||Ce>70&&Ce<97););return Re(e,Te()+(t<6&&32==Oe()&&32==$e()))}function _e(e){for(;$e();)switch(Ce){case e:return xe;case 34:case 39:34!==e&&39!==e&&_e(Ce);break;case 40:41===e&&_e(e);break;case 92:$e()}return xe}function He(e,t){for(;$e()&&e+Ce!==57&&(e+Ce!==84||47!==Oe()););return"/*"+Re(t,xe-1)+"*"+ue(47===e?e:$e())}function De(e){for(;!ze(Oe());)$e();return Re(e,xe)}function Be(e){return Ne(We("",null,null,null,[""],e=Pe(e),0,[0],e))}function We(e,t,n,r,o,i,a,l,c){for(var s=0,u=0,d=a,f=0,p=0,v=0,m=1,h=1,g=1,b=0,y="",A=o,w=i,S=r,x=y;h;)switch(v=b,b=$e()){case 40:if(108!=v&&58==ve(x,d-1)){-1!=pe(x+=fe(Ie(b),"&","&\f"),"&\f",se(s?l[s-1]:0))&&(g=-1);break}case 34:case 39:case 91:x+=Ie(b);break;case 9:case 10:case 13:case 32:x+=Le(v);break;case 92:x+=je(Te()-1,7);continue;case 47:switch(Oe()){case 42:case 47:ge(Xe(He($e(),Te()),t,n,c),c);break;default:x+="/"}break;case 123*m:l[s++]=he(x)*g;case 125*m:case 59:case 0:switch(b){case 0:case 125:h=0;case 59+u:-1==g&&(x=fe(x,/\f/g,"")),p>0&&he(x)-d&&ge(p>32?Ke(x+";",r,n,d-1,c):Ke(fe(x," ","")+";",r,n,d-2,c),c);break;case 59:x+=";";default:if(ge(S=Fe(x,t,n,s,u,o,l,y,A=[],w=[],d,i),i),123===b)if(0===u)We(x,t,S,S,A,i,d,l,w);else switch(99===f&&110===ve(x,3)?100:f){case 100:case 108:case 109:case 115:We(e,S,S,r&&ge(Fe(e,S,S,0,0,o,l,y,o,A=[],d,w),w),o,w,d,l,r?A:w);break;default:We(x,S,S,S,[""],w,0,l,w)}}s=u=p=0,m=g=1,y=x="",d=a;break;case 58:d=1+he(x),p=v;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==Me())continue;switch(x+=ue(b),b*m){case 38:g=u>0?1:(x+="\f",-1);break;case 44:l[s++]=(he(x)-1)*g,g=1;break;case 64:45===Oe()&&(x+=Ie($e())),f=Oe(),u=d=he(y=x+=De(Te())),b++;break;case 45:45===v&&2==he(x)&&(m=0)}}return i}function Fe(e,t,n,r,o,i,a,l,c,s,u,d){for(var f=o-1,p=0===o?i:[""],v=function(e){return e.length}(p),m=0,h=0,g=0;m0?p[b]+" "+y:fe(y,/&\f/g,p[b])))&&(c[g++]=A);return Ee(e,t,n,0===o?oe:l,c,s,u,d)}function Xe(e,t,n,r){return Ee(e,t,n,re,ue(Ce),me(e,2,-2),0,r)}function Ke(e,t,n,r,o){return Ee(e,t,n,ie,me(e,0,r),me(e,r+1,-1),r,o)}var Ge,qe="data-ant-cssinjs-cache-path",Ye="_FILE_STYLE__";var Ue=!0;function Ve(e){return function(){if(!Ge&&(Ge={},(0,x.A)())){var e=document.createElement("div");e.className=qe,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";(t=t.replace(/^"/,"").replace(/"$/,"")).split(";").forEach((function(e){var t=e.split(":"),n=(0,o.A)(t,2),r=n[0],i=n[1];Ge[r]=i}));var n,r=document.querySelector("style[".concat(qe,"]"));r&&(Ue=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!Ge[e]}var Qe="_multi_value_";function Ze(e){return be(Be(e),ye).replace(/\{%%%\:[^;];}/g,";")}var Je=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},l=r.root,c=r.injectHash,s=r.parentSelectors,u=n.hashId,d=n.layer,f=(n.path,n.hashPriority),p=n.transformers,v=void 0===p?[]:p,m=(n.linters,""),h={};function g(t){var r=t.getName(u);if(!h[r]){var i=e(t.style,n,{root:!1,parentSelectors:s}),a=(0,o.A)(i,1)[0];h[r]="@keyframes ".concat(t.getName(u)).concat(a)}}var b=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach((function(t){Array.isArray(t)?e(t,n):t&&n.push(t)})),n}(Array.isArray(t)?t:[t]);return b.forEach((function(t){var r="string"!=typeof t||l?t:{};if("string"==typeof r)m+="".concat(r,"\n");else if(r._keyframe)g(r);else{var d=v.reduce((function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e}),r);Object.keys(d).forEach((function(t){var r=d[t];if("object"!==(0,S.A)(r)||!r||"animationName"===t&&r._keyframe||function(e){return"object"===(0,S.A)(e)&&e&&("_skip_check_"in e||Qe in e)}(r)){var p;function E(e,t){var n=e.replace(/[A-Z]/g,(function(e){return"-".concat(e.toLowerCase())})),r=t;ne[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(g(t),r=t.getName(u)),m+="".concat(n,":").concat(r,";")}var v=null!==(p=null==r?void 0:r.value)&&void 0!==p?p:r;"object"===(0,S.A)(r)&&null!=r&&r[Qe]&&Array.isArray(v)?v.forEach((function(e){E(t,e)})):E(t,v)}else{var b=!1,y=t.trim(),A=!1;(l||c)&&u?y.startsWith("@")?b=!0:y=function(e,t,n){if(!t)return e;var r=".".concat(t),o="low"===n?":where(".concat(r,")"):r;return e.split(",").map((function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",a=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(a).concat(o).concat(r.slice(a.length))].concat((0,i.A)(n.slice(1))).join(" ")})).join(",")}(t,u,f):!l||u||"&"!==y&&""!==y||(y="",A=!0);var w=e(r,n,{root:A,injectHash:b,parentSelectors:[].concat((0,i.A)(s),[y])}),x=(0,o.A)(w,2),C=x[0],k=x[1];h=(0,a.A)((0,a.A)({},h),k),m+="".concat(y).concat(C)}}))}})),l?d&&(m="@layer ".concat(d.name," {").concat(m,"}"),d.dependencies&&(h["@layer ".concat(d.name)]=d.dependencies.map((function(e){return"@layer ".concat(e,", ").concat(d.name,";")})).join("\n"))):m="{".concat(m,"}"),[m,h]};function et(e,t){return l("".concat(e.join("%")).concat(t))}function tt(){return null}var nt="style";function rt(e,t){var n=e.token,l=e.path,u=e.hashId,d=e.layer,f=e.nonce,p=e.clientOnly,v=e.order,m=void 0===v?0:v,y=s.useContext(w),A=y.autoClear,S=(y.mock,y.defaultCache),C=y.hashPriority,k=y.container,E=y.ssrInline,M=y.transformers,$=y.linters,O=y.cache,T=y.layer,R=n._tokenKey,z=[R];T&&z.push("layer"),z.push.apply(z,(0,i.A)(l));var P=I;var N=G(nt,z,(function(){var e=z.join("|");if(Ve(e)){var n=function(e){var t=Ge[e],n=null;if(t&&(0,x.A)())if(Ue)n=Ye;else{var r=document.querySelector("style[".concat(g,'="').concat(Ge[e],'"]'));r?n=r.innerHTML:delete Ge[e]}return[n,t]}(e),r=(0,o.A)(n,2),i=r[0],a=r[1];if(i)return[i,R,a,{},p,m]}var c=t(),s=Je(c,{hashId:u,hashPriority:C,layer:T?d:void 0,path:l.join("-"),transformers:M,linters:$}),f=(0,o.A)(s,2),v=f[0],h=f[1],b=Ze(v),y=et(z,b);return[b,R,y,h,p,m]}),(function(e,t){var n=(0,o.A)(e,3)[2];(t||A)&&I&&(0,c.m6)(n,{mark:g})}),(function(e){var t=(0,o.A)(e,4),n=t[0],r=(t[1],t[2]),i=t[3];if(P&&n!==Ye){var l={mark:g,prepend:!T&&"queue",attachTo:k,priority:m},s="function"==typeof f?f():f;s&&(l.csp={nonce:s});var u=[],d=[];Object.keys(i).forEach((function(e){e.startsWith("@layer")?u.push(e):d.push(e)})),u.forEach((function(e){(0,c.BD)(Ze(i[e]),"_layer-".concat(e),(0,a.A)((0,a.A)({},l),{},{prepend:!0}))}));var p=(0,c.BD)(n,r,l);p[b]=O.instanceId,p.setAttribute(h,R),d.forEach((function(e){(0,c.BD)(Ze(i[e]),"_effect-".concat(e),l)}))}})),L=(0,o.A)(N,3),j=L[0],_=L[1],H=L[2];return function(e){var t,n;E&&!P&&S?t=s.createElement("style",(0,te.A)({},(n={},(0,r.A)(n,h,_),(0,r.A)(n,g,H),n),{dangerouslySetInnerHTML:{__html:j}})):t=s.createElement(tt,null);return s.createElement(s.Fragment,null,t,e)}}var ot="cssVar";const it=function(e,t){var n=e.key,r=e.prefix,a=e.unitless,l=e.ignore,u=e.token,d=e.scope,f=void 0===d?"":d,p=(0,s.useContext)(w),v=p.cache.instanceId,m=p.container,y=u._tokenKey,A=[].concat((0,i.A)(e.path),[n,f,y]);return G(ot,A,(function(){var e=t(),i=D(e,n,{prefix:r,unitless:a,ignore:l,scope:f}),c=(0,o.A)(i,2),s=c[0],u=c[1];return[s,u,et(A,u),n]}),(function(e){var t=(0,o.A)(e,3)[2];I&&(0,c.m6)(t,{mark:g})}),(function(e){var t=(0,o.A)(e,3),r=t[1],i=t[2];if(r){var a=(0,c.BD)(r,i,{mark:g,prepend:"queue",attachTo:m,priority:-999});a[b]=v,a.setAttribute(h,n)}}))};var at;at={},(0,r.A)(at,nt,(function(e,t,n){var r=(0,o.A)(e,6),i=r[0],a=r[1],l=r[2],c=r[3],s=r[4],u=r[5],d=(n||{}).plain;if(s)return null;var f=i,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return f=j(i,a,l,p,d),c&&Object.keys(c).forEach((function(e){if(!t[e]){t[e]=!0;var n=j(Ze(c[e]),a,"_effect-".concat(e),p,d);e.startsWith("@layer")?f=n+f:f+=n}})),[u,l,f]})),(0,r.A)(at,J,(function(e,t,n){var r=(0,o.A)(e,5),i=r[2],a=r[3],l=r[4],c=(n||{}).plain;if(!a)return null;var s=i._tokenKey;return[-999,s,j(a,l,s,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},c)]})),(0,r.A)(at,ot,(function(e,t,n){var r=(0,o.A)(e,4),i=r[1],a=r[2],l=r[3],c=(n||{}).plain;if(!i)return null;return[-999,a,j(i,l,a,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},c)]}));const lt=function(){function e(t,n){(0,d.A)(this,e),(0,r.A)(this,"name",void 0),(0,r.A)(this,"style",void 0),(0,r.A)(this,"_keyframe",!0),this.name=t,this.style=n}return(0,f.A)(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();function ct(e){return e.notSplit=!0,e}ct(["borderTop","borderBottom"]),ct(["borderTop"]),ct(["borderBottom"]),ct(["borderLeft","borderRight"]),ct(["borderLeft"]),ct(["borderRight"])},8046:(e,t,n)=>{"use strict";n.d(t,{A:()=>O});var r=n(8168),o=n(6636),i=n(4467),a=n(45),l=n(6540),c=n(6942),s=n.n(c),u=n(2200);const d=(0,l.createContext)({});var f=n(9379),p=n(2284),v=n(5089),m=n(2633),h=n(8210);function g(e){return"object"===(0,p.A)(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===(0,p.A)(e.icon)||"function"==typeof e.icon)}function b(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r,o=e[n];if("class"===n)t.className=o,delete t.class;else delete t[n],t[(r=n,r.replace(/-(.)/g,(function(e,t){return t.toUpperCase()})))]=o;return t}),{})}function y(e,t,n){return n?l.createElement(e.tag,(0,f.A)((0,f.A)({key:t},b(e.attrs)),n),(e.children||[]).map((function(n,r){return y(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))):l.createElement(e.tag,(0,f.A)({key:t},b(e.attrs)),(e.children||[]).map((function(n,r){return y(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function A(e){return(0,u.cM)(e)[0]}function w(e){return e?Array.isArray(e)?e:[e]:[]}var S=["icon","className","onClick","style","primaryColor","secondaryColor"],x={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var C=function(e){var t,n,r,o,i,c,s,u=e.icon,p=e.className,b=e.onClick,w=e.style,C=e.primaryColor,k=e.secondaryColor,E=(0,a.A)(e,S),M=l.useRef(),$=x;if(C&&($={primaryColor:C,secondaryColor:k||A(C)}),t=M,n=(0,l.useContext)(d),r=n.csp,o=n.prefixCls,i="\n.anticon {\n display: inline-flex;\n alignItems: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",o&&(i=i.replace(/anticon/g,o)),(0,l.useEffect)((function(){var e=t.current,n=(0,m.j)(e);(0,v.BD)(i,"@ant-design-icons",{prepend:!0,csp:r,attachTo:n})}),[]),c=g(u),s="icon should be icon definiton, but got ".concat(u),(0,h.Ay)(c,"[@ant-design/icons] ".concat(s)),!g(u))return null;var O=u;return O&&"function"==typeof O.icon&&(O=(0,f.A)((0,f.A)({},O),{},{icon:O.icon($.primaryColor,$.secondaryColor)})),y(O.icon,"svg-".concat(O.name),(0,f.A)((0,f.A)({className:p,onClick:b,style:w,"data-icon":O.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},E),{},{ref:M}))};C.displayName="IconReact",C.getTwoToneColors=function(){return(0,f.A)({},x)},C.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;x.primaryColor=t,x.secondaryColor=n||A(t),x.calculated=!!n};const k=C;function E(e){var t=w(e),n=(0,o.A)(t,2),r=n[0],i=n[1];return k.setTwoToneColors({primaryColor:r,secondaryColor:i})}var M=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];E(u.z1.primary);var $=l.forwardRef((function(e,t){var n=e.className,c=e.icon,u=e.spin,f=e.rotate,p=e.tabIndex,v=e.onClick,m=e.twoToneColor,h=(0,a.A)(e,M),g=l.useContext(d),b=g.prefixCls,y=void 0===b?"anticon":b,A=g.rootClassName,S=s()(A,y,(0,i.A)((0,i.A)({},"".concat(y,"-").concat(c.name),!!c.name),"".concat(y,"-spin"),!!u||"loading"===c.name),n),x=p;void 0===x&&v&&(x=-1);var C=f?{msTransform:"rotate(".concat(f,"deg)"),transform:"rotate(".concat(f,"deg)")}:void 0,E=w(m),$=(0,o.A)(E,2),O=$[0],T=$[1];return l.createElement("span",(0,r.A)({role:"img","aria-label":c.name},h,{ref:t,tabIndex:x,onClick:v,className:S}),l.createElement(k,{icon:c,primaryColor:O,secondaryColor:T,style:C}))}));$.displayName="AntdIcon",$.getTwoToneColor=function(){var e=k.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},$.setTwoToneColor=E;const O=$},6467:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(8168),o=n(6540);const i={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};var a=n(8046),l=function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))};const c=o.forwardRef(l)},8633:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(8168),o=n(6540);const i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};var a=n(8046),l=function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))};const c=o.forwardRef(l)},363:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(8168),o=n(6540);const i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};var a=n(8046),l=function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))};const c=o.forwardRef(l)},2456:(e,t,n)=>{"use strict";n.d(t,{H:()=>d,K6:()=>i,Me:()=>s,Ob:()=>u,YL:()=>l,_:()=>o,g8:()=>v,n6:()=>p,oS:()=>m,wE:()=>c});var r=n(9244);function o(e,t,n){return{r:255*(0,r.Cg)(e,255),g:255*(0,r.Cg)(t,255),b:255*(0,r.Cg)(n,255)}}function i(e,t,n){e=(0,r.Cg)(e,255),t=(0,r.Cg)(t,255),n=(0,r.Cg)(n,255);var o=Math.max(e,t,n),i=Math.min(e,t,n),a=0,l=0,c=(o+i)/2;if(o===i)l=0,a=0;else{var s=o-i;switch(l=c>.5?s/(2-o-i):s/(o+i),o){case e:a=(t-n)/s+(t1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function l(e,t,n){var o,i,l;if(e=(0,r.Cg)(e,360),t=(0,r.Cg)(t,100),n=(0,r.Cg)(n,100),0===t)i=n,l=n,o=n;else{var c=n<.5?n*(1+t):n+t-n*t,s=2*n-c;o=a(s,c,e+1/3),i=a(s,c,e),l=a(s,c,e-1/3)}return{r:255*o,g:255*i,b:255*l}}function c(e,t,n){e=(0,r.Cg)(e,255),t=(0,r.Cg)(t,255),n=(0,r.Cg)(n,255);var o=Math.max(e,t,n),i=Math.min(e,t,n),a=0,l=o,c=o-i,s=0===o?0:c/o;if(o===i)a=0;else{switch(o){case e:a=(t-n)/c+(t>16,g:(65280&e)>>8,b:255&e}}},2434:(e,t,n)=>{"use strict";n.d(t,{D:()=>r});var r={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}},6250:(e,t,n)=>{"use strict";n.d(t,{RO:()=>a});var r=n(2456),o=n(2434),i=n(9244);function a(e){var t={r:0,g:0,b:0},n=1,a=null,l=null,c=null,s=!1,f=!1;return"string"==typeof e&&(e=function(e){if(e=e.trim().toLowerCase(),0===e.length)return!1;var t=!1;if(o.D[e])e=o.D[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=u.rgb.exec(e);if(n)return{r:n[1],g:n[2],b:n[3]};if(n=u.rgba.exec(e),n)return{r:n[1],g:n[2],b:n[3],a:n[4]};if(n=u.hsl.exec(e),n)return{h:n[1],s:n[2],l:n[3]};if(n=u.hsla.exec(e),n)return{h:n[1],s:n[2],l:n[3],a:n[4]};if(n=u.hsv.exec(e),n)return{h:n[1],s:n[2],v:n[3]};if(n=u.hsva.exec(e),n)return{h:n[1],s:n[2],v:n[3],a:n[4]};if(n=u.hex8.exec(e),n)return{r:(0,r.g8)(n[1]),g:(0,r.g8)(n[2]),b:(0,r.g8)(n[3]),a:(0,r.n6)(n[4]),format:t?"name":"hex8"};if(n=u.hex6.exec(e),n)return{r:(0,r.g8)(n[1]),g:(0,r.g8)(n[2]),b:(0,r.g8)(n[3]),format:t?"name":"hex"};if(n=u.hex4.exec(e),n)return{r:(0,r.g8)(n[1]+n[1]),g:(0,r.g8)(n[2]+n[2]),b:(0,r.g8)(n[3]+n[3]),a:(0,r.n6)(n[4]+n[4]),format:t?"name":"hex8"};if(n=u.hex3.exec(e),n)return{r:(0,r.g8)(n[1]+n[1]),g:(0,r.g8)(n[2]+n[2]),b:(0,r.g8)(n[3]+n[3]),format:t?"name":"hex"};return!1}(e)),"object"==typeof e&&(d(e.r)&&d(e.g)&&d(e.b)?(t=(0,r._)(e.r,e.g,e.b),s=!0,f="%"===String(e.r).substr(-1)?"prgb":"rgb"):d(e.h)&&d(e.s)&&d(e.v)?(a=(0,i.Px)(e.s),l=(0,i.Px)(e.v),t=(0,r.Me)(e.h,a,l),s=!0,f="hsv"):d(e.h)&&d(e.s)&&d(e.l)&&(a=(0,i.Px)(e.s),c=(0,i.Px)(e.l),t=(0,r.YL)(e.h,a,c),s=!0,f="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=(0,i.TV)(n),{ok:s,format:e.format||f,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var l="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),c="[\\s|\\(]+(".concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")\\s*\\)?"),s="[\\s|\\(]+(".concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")[,|\\s]+(").concat(l,")\\s*\\)?"),u={CSS_UNIT:new RegExp(l),rgb:new RegExp("rgb"+c),rgba:new RegExp("rgba"+s),hsl:new RegExp("hsl"+c),hsla:new RegExp("hsla"+s),hsv:new RegExp("hsv"+c),hsva:new RegExp("hsva"+s),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function d(e){return Boolean(u.CSS_UNIT.exec(String(e)))}},4978:(e,t,n)=>{"use strict";n.d(t,{q:()=>l});var r=n(2456),o=n(2434),i=n(6250),a=n(9244),l=function(){function e(t,n){var o;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"==typeof t&&(t=(0,r.oS)(t)),this.originalInput=t;var a=(0,i.RO)(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(o=n.format)&&void 0!==o?o:a.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=(0,a.TV)(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){return 0===this.toHsl().s},e.prototype.toHsv=function(){var e=(0,r.wE)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=(0,r.wE)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=(0,r.K6)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=(0,r.K6)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),(0,r.Ob)(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),(0,r.H)(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toHexShortString=function(e){return void 0===e&&(e=!1),1===this.a?this.toHexString(e):this.toHex8String(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*(0,a.Cg)(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*(0,a.Cg)(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+(0,r.Ob)(this.r,this.g,this.b,!1),t=0,n=Object.entries(o.D);t=0;return t||!r||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=(0,a.J$)(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=(0,a.J$)(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=(0,a.J$)(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=(0,a.J$)(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100;return new e({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],l=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+l)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),o=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/o,g:(n.g*n.a+r.g*r.a*(1-n.a))/o,b:(n.b*n.a+r.b*r.a*(1-n.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a{"use strict";function r(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function o(e){return Math.min(1,Math.max(0,e))}function i(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function a(e){return e<=1?"".concat(100*Number(e),"%"):e}function l(e){return 1===e.length?"0"+e:String(e)}n.d(t,{Cg:()=>r,J$:()=>o,Px:()=>a,TV:()=>i,wl:()=>l})},5470:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var r=n(6636),o=n(6540),i=n(961),a=n(998),l=(n(8210),n(8719));const c=o.createContext(null);var s=n(4241),u=n(981),d=[];var f=n(5089);function p(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r,o,i=n.style;if(i.position="absolute",i.left="0",i.top="0",i.width="100px",i.height="100px",i.overflow="scroll",e){var a=getComputedStyle(e);i.scrollbarColor=a.scrollbarColor,i.scrollbarWidth=a.scrollbarWidth;var l=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(l.width,10),s=parseInt(l.height,10);try{var u=c?"width: ".concat(l.width,";"):"",d=s?"height: ".concat(l.height,";"):"";(0,f.BD)("\n#".concat(t,"::-webkit-scrollbar {\n").concat(u,"\n").concat(d,"\n}"),t)}catch(m){console.error(m),r=c,o=s}}document.body.appendChild(n);var p=e&&r&&!isNaN(r)?r:n.offsetWidth-n.clientWidth,v=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),(0,f.m6)(t),{width:p,height:v}}var v="rc-util-locker-".concat(Date.now()),m=0;function h(e){var t=!!e,n=o.useState((function(){return m+=1,"".concat(v,"_").concat(m)})),i=(0,r.A)(n,1)[0];(0,u.A)((function(){if(t){var e=(r=document.body,"undefined"!=typeof document&&r&&r instanceof Element?p(r):{width:0,height:0}).width,n=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;(0,f.BD)("\nhtml body {\n overflow-y: hidden;\n ".concat(n?"width: calc(100% - ".concat(e,"px);"):"","\n}"),i)}else(0,f.m6)(i);var r;return function(){(0,f.m6)(i)}}),[t,i])}var g=!1;var b=function(e){return!1!==e&&((0,a.A)()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)};const y=o.forwardRef((function(e,t){var n=e.open,f=e.autoLock,p=e.getContainer,v=(e.debug,e.autoDestroy),m=void 0===v||v,y=e.children,A=o.useState(n),w=(0,r.A)(A,2),S=w[0],x=w[1],C=S||n;o.useEffect((function(){(m||n)&&x(n)}),[n,m]);var k=o.useState((function(){return b(p)})),E=(0,r.A)(k,2),M=E[0],$=E[1];o.useEffect((function(){var e=b(p);$(null!=e?e:null)}));var O=function(e,t){var n=o.useState((function(){return(0,a.A)()?document.createElement("div"):null})),i=(0,r.A)(n,1)[0],l=o.useRef(!1),f=o.useContext(c),p=o.useState(d),v=(0,r.A)(p,2),m=v[0],h=v[1],g=f||(l.current?void 0:function(e){h((function(t){return[e].concat((0,s.A)(t))}))});function b(){i.parentElement||document.body.appendChild(i),l.current=!0}function y(){var e;null===(e=i.parentElement)||void 0===e||e.removeChild(i),l.current=!1}return(0,u.A)((function(){return e?f?f(b):b():y(),y}),[e]),(0,u.A)((function(){m.length&&(m.forEach((function(e){return e()})),h(d))}),[m]),[i,g]}(C&&!M),T=(0,r.A)(O,2),R=T[0],z=T[1],P=null!=M?M:R;h(f&&n&&(0,a.A)()&&(P===R||P===document.body));var N=null;y&&(0,l.f3)(y)&&t&&(N=y.ref);var I=(0,l.xK)(N,t);if(!C||!(0,a.A)()||void 0===M)return null;var L,j=!1===P||("boolean"==typeof L&&(g=L),g),_=y;return t&&(_=o.cloneElement(y,{ref:I})),o.createElement(c.Provider,{value:z},j?_:(0,i.createPortal)(_,P))}))},3723:(e,t,n)=>{"use strict";n.d(t,{b:()=>r});const r=(e,t,n)=>void 0!==n?n:`${e}-${t}`},3864:(e,t,n)=>{"use strict";n.d(t,{A:()=>bo});var r=n(6540),o=n(6942),i=n.n(o),a=n(9853),l=n(2279);const c=r.createContext(void 0),s=c,u=e=>{const t=r.useContext(s);return r.useMemo((()=>e?"string"==typeof e?null!=e?e:t:e instanceof Function?e(t):t:t),[e,t])},d=e=>{const{prefixCls:t,className:n,style:o,size:a,shape:l}=e,c=i()({[`${t}-lg`]:"large"===a,[`${t}-sm`]:"small"===a}),s=i()({[`${t}-circle`]:"circle"===l,[`${t}-square`]:"square"===l,[`${t}-round`]:"round"===l}),u=r.useMemo((()=>"number"==typeof a?{width:a,height:a,lineHeight:`${a}px`}:{}),[a]);return r.createElement("span",{className:i()(t,c,s,n),style:Object.assign(Object.assign({},u),o)})};var f=n(1466),p=n(665),v=n(336);const m=new f.Mo("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),h=e=>({height:e,lineHeight:(0,f.zA)(e)}),g=e=>Object.assign({width:e},h(e)),b=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:m,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),y=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},h(e)),A=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i}=e;return{[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},g(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},g(o)),[`${t}${t}-sm`]:Object.assign({},g(i))}},w=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return{[`${r}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},y(t,l)),[`${r}-lg`]:Object.assign({},y(o,l)),[`${r}-sm`]:Object.assign({},y(i,l))}},S=e=>Object.assign({width:e},h(e)),x=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o,calc:i}=e;return{[`${t}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:r,borderRadius:o},S(i(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},S(n)),{maxWidth:i(n).mul(4).equal(),maxHeight:i(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},C=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},k=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},h(e)),E=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:l(r).mul(2).equal(),minWidth:l(r).mul(2).equal()},k(r,l))},C(e,r,n)),{[`${n}-lg`]:Object.assign({},k(o,l))}),C(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},k(i,l))}),C(e,i,`${n}-sm`))},M=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:l,controlHeight:c,controlHeightLG:s,controlHeightSM:u,gradientFromColor:d,padding:f,marginSM:p,borderRadius:v,titleHeight:m,blockRadius:h,paragraphLiHeight:y,controlHeightXS:S,paragraphMarginTop:C}=e;return{[`${t}`]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:f,verticalAlign:"top",[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:d},g(c)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},g(s)),[`${n}-sm`]:Object.assign({},g(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${r}`]:{width:"100%",height:m,background:d,borderRadius:h,[`+ ${o}`]:{marginBlockStart:u}},[`${o}`]:{padding:0,"> li":{width:"100%",height:y,listStyle:"none",background:d,borderRadius:h,"+ li":{marginBlockStart:S}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:v}}},[`${t}-with-avatar ${t}-content`]:{[`${r}`]:{marginBlockStart:p,[`+ ${o}`]:{marginBlockStart:C}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},E(e)),A(e)),w(e)),x(e)),[`${t}${t}-block`]:{width:"100%",[`${i}`]:{width:"100%"},[`${a}`]:{width:"100%"}},[`${t}${t}-active`]:{[`\n ${r},\n ${o} > li,\n ${n},\n ${i},\n ${a},\n ${l}\n `]:Object.assign({},b(e))}}},$=(0,p.OF)("Skeleton",(e=>{const{componentCls:t,calc:n}=e,r=(0,v.h1)(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[M(r)]}),(e=>{const{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n,gradientFromColor:t,gradientToColor:n,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}}),{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),O=e=>{const{prefixCls:t,className:n,rootClassName:o,active:c,shape:s="circle",size:u="default"}=e,{getPrefixCls:f}=r.useContext(l.QO),p=f("skeleton",t),[v,m,h]=$(p),g=(0,a.A)(e,["prefixCls","className"]),b=i()(p,`${p}-element`,{[`${p}-active`]:c},n,o,m,h);return v(r.createElement("div",{className:b},r.createElement(d,Object.assign({prefixCls:`${p}-avatar`,shape:s,size:u},g))))},T=e=>{const{prefixCls:t,className:n,rootClassName:o,active:c,block:s=!1,size:u="default"}=e,{getPrefixCls:f}=r.useContext(l.QO),p=f("skeleton",t),[v,m,h]=$(p),g=(0,a.A)(e,["prefixCls"]),b=i()(p,`${p}-element`,{[`${p}-active`]:c,[`${p}-block`]:s},n,o,m,h);return v(r.createElement("div",{className:b},r.createElement(d,Object.assign({prefixCls:`${p}-button`,size:u},g))))},R=e=>{const{prefixCls:t,className:n,rootClassName:o,style:a,active:c}=e,{getPrefixCls:s}=r.useContext(l.QO),u=s("skeleton",t),[d,f,p]=$(u),v=i()(u,`${u}-element`,{[`${u}-active`]:c},n,o,f,p);return d(r.createElement("div",{className:v},r.createElement("div",{className:i()(`${u}-image`,n),style:a},r.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${u}-image-svg`},r.createElement("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",className:`${u}-image-path`})))))},z=e=>{const{prefixCls:t,className:n,rootClassName:o,active:c,block:s,size:u="default"}=e,{getPrefixCls:f}=r.useContext(l.QO),p=f("skeleton",t),[v,m,h]=$(p),g=(0,a.A)(e,["prefixCls"]),b=i()(p,`${p}-element`,{[`${p}-active`]:c,[`${p}-block`]:s},n,o,m,h);return v(r.createElement("div",{className:b},r.createElement(d,Object.assign({prefixCls:`${p}-input`,size:u},g))))};var P=n(8168);const N={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"};var I=n(8046),L=function(e,t){return r.createElement(I.A,(0,P.A)({},e,{ref:t,icon:N}))};const j=r.forwardRef(L),_=e=>{const{prefixCls:t,className:n,rootClassName:o,style:a,active:c,children:s}=e,{getPrefixCls:u}=r.useContext(l.QO),d=u("skeleton",t),[f,p,v]=$(d),m=i()(d,`${d}-element`,{[`${d}-active`]:c},p,n,o,v),h=null!=s?s:r.createElement(j,null);return f(r.createElement("div",{className:m},r.createElement("div",{className:i()(`${d}-image`,n),style:a},h)))};var H=n(4241);const D=(e,t)=>{const{width:n,rows:r=2}=t;return Array.isArray(n)?n[e]:r-1===e?n:void 0},B=e=>{const{prefixCls:t,className:n,style:o,rows:a}=e,l=(0,H.A)(Array(a)).map(((t,n)=>r.createElement("li",{key:n,style:{width:D(n,e)}})));return r.createElement("ul",{className:i()(t,n),style:o},l)},W=e=>{let{prefixCls:t,className:n,width:o,style:a}=e;return r.createElement("h3",{className:i()(t,n),style:Object.assign({width:o},a)})};function F(e){return e&&"object"==typeof e?e:{}}const X=e=>{const{prefixCls:t,loading:n,className:o,rootClassName:a,style:c,children:s,avatar:u=!1,title:f=!0,paragraph:p=!0,active:v,round:m}=e,{getPrefixCls:h,direction:g,skeleton:b}=r.useContext(l.QO),y=h("skeleton",t),[A,w,S]=$(y);if(n||!("loading"in e)){const e=!!u,t=!!f,n=!!p;let l,s;if(e){const e=Object.assign(Object.assign({prefixCls:`${y}-avatar`},function(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(t,n)),F(u));l=r.createElement("div",{className:`${y}-header`},r.createElement(d,Object.assign({},e)))}if(t||n){let o,i;if(t){const t=Object.assign(Object.assign({prefixCls:`${y}-title`},function(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}(e,n)),F(f));o=r.createElement(W,Object.assign({},t))}if(n){const n=Object.assign(Object.assign({prefixCls:`${y}-paragraph`},function(e,t){const n={};return e&&t||(n.width="61%"),n.rows=!e&&t?3:2,n}(e,t)),F(p));i=r.createElement(B,Object.assign({},n))}s=r.createElement("div",{className:`${y}-content`},o,i)}const h=i()(y,{[`${y}-with-avatar`]:e,[`${y}-active`]:v,[`${y}-rtl`]:"rtl"===g,[`${y}-round`]:m},null==b?void 0:b.className,o,a,w,S);return A(r.createElement("div",{className:h,style:Object.assign(Object.assign({},null==b?void 0:b.style),c)},l,s))}return null!=s?s:null};X.Button=T,X.Avatar=O,X.Input=z,X.Image=R,X.Node=_;const K=X;var G=n(6467);const q={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};var Y=function(e,t){return r.createElement(I.A,(0,P.A)({},e,{ref:t,icon:q}))};const U=r.forwardRef(Y);const V={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};var Q=function(e,t){return r.createElement(I.A,(0,P.A)({},e,{ref:t,icon:V}))};const Z=r.forwardRef(Q);var J=n(4467),ee=n(9379),te=n(6636),ne=n(2284),re=n(45),oe=n(2533);const ie=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4))},ae=(0,r.createContext)(null);var le=n(6351);function ce(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return r.Children.forEach(e,(function(e){(null!=e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(ce(e)):(0,le.isFragment)(e)&&e.props?n=n.concat(ce(e.props.children,t)):n.push(e))})),n}var se=n(8210),ue=n(6588),de=n(8719),fe=r.createContext(null);var pe=n(3591),ve=new Map;var me=new pe.A((function(e){e.forEach((function(e){var t,n=e.target;null===(t=ve.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));var he=n(3029),ge=n(2901),be=n(5501),ye=n(9426),Ae=function(e){(0,be.A)(n,e);var t=(0,ye.A)(n);function n(){return(0,he.A)(this,n),t.apply(this,arguments)}return(0,ge.A)(n,[{key:"render",value:function(){return this.props.children}}]),n}(r.Component);function we(e,t){var n=e.children,o=e.disabled,i=r.useRef(null),a=r.useRef(null),l=r.useContext(fe),c="function"==typeof n,s=c?n(i):n,u=r.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!c&&r.isValidElement(s)&&(0,de.f3)(s),f=d?s.ref:null,p=(0,de.xK)(f,i),v=function(){var e;return(0,ue.A)(i.current)||(i.current&&"object"===(0,ne.A)(i.current)?(0,ue.A)(null===(e=i.current)||void 0===e?void 0:e.nativeElement):null)||(0,ue.A)(a.current)};r.useImperativeHandle(t,(function(){return v()}));var m=r.useRef(e);m.current=e;var h=r.useCallback((function(e){var t=m.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),i=o.width,a=o.height,c=e.offsetWidth,s=e.offsetHeight,d=Math.floor(i),f=Math.floor(a);if(u.current.width!==d||u.current.height!==f||u.current.offsetWidth!==c||u.current.offsetHeight!==s){var p={width:d,height:f,offsetWidth:c,offsetHeight:s};u.current=p;var v=c===Math.round(i)?i:c,h=s===Math.round(a)?a:s,g=(0,ee.A)((0,ee.A)({},p),{},{offsetWidth:v,offsetHeight:h});null==l||l(g,e,r),n&&Promise.resolve().then((function(){n(g,e)}))}}),[]);return r.useEffect((function(){var e,t,n=v();return n&&!o&&(e=n,t=h,ve.has(e)||(ve.set(e,new Set),me.observe(e)),ve.get(e).add(t)),function(){return function(e,t){ve.has(e)&&(ve.get(e).delete(t),ve.get(e).size||(me.unobserve(e),ve.delete(e)))}(n,h)}}),[i.current,o]),r.createElement(Ae,{ref:a},d?r.cloneElement(s,{ref:p}):s)}const Se=r.forwardRef(we);function xe(e,t){var n=e.children;return("function"==typeof n?[n]:ce(n)).map((function(n,o){var i=(null==n?void 0:n.key)||"".concat("rc-observer-key","-").concat(o);return r.createElement(Se,(0,P.A)({},e,{key:i,ref:0===o?t:void 0}),n)}))}var Ce=r.forwardRef(xe);Ce.Collection=function(e){var t=e.children,n=e.onBatchResize,o=r.useRef(0),i=r.useRef([]),a=r.useContext(fe),l=r.useCallback((function(e,t,r){o.current+=1;var l=o.current;i.current.push({size:e,element:t,data:r}),Promise.resolve().then((function(){l===o.current&&(null==n||n(i.current),i.current=[])})),null==a||a(e,t,r)}),[n,a]);return r.createElement(fe.Provider,{value:l},t)};const ke=Ce;var Ee=n(6956),Me=n(5371);const $e=function(e){var t=e.activeTabOffset,n=e.horizontal,o=e.rtl,i=e.indicator,a=void 0===i?{}:i,l=a.size,c=a.align,s=void 0===c?"center":c,u=(0,r.useState)(),d=(0,te.A)(u,2),f=d[0],p=d[1],v=(0,r.useRef)(),m=r.useCallback((function(e){return"function"==typeof l?l(e):"number"==typeof l?l:e}),[l]);function h(){Me.A.cancel(v.current)}return(0,r.useEffect)((function(){var e={};if(t)if(n){e.width=m(t.width);var r=o?"right":"left";"start"===s&&(e[r]=t[r]),"center"===s&&(e[r]=t[r]+t.width/2,e.transform=o?"translateX(50%)":"translateX(-50%)"),"end"===s&&(e[r]=t[r]+t.width,e.transform="translateX(-100%)")}else e.height=m(t.height),"start"===s&&(e.top=t.top),"center"===s&&(e.top=t.top+t.height/2,e.transform="translateY(-50%)"),"end"===s&&(e.top=t.top+t.height,e.transform="translateY(-100%)");return h(),v.current=(0,Me.A)((function(){p(e)})),h}),[t,n,o,s,m]),{style:f}};var Oe={width:0,height:0,left:0,top:0};function Te(e,t){var n=r.useRef(e),o=r.useState({}),i=(0,te.A)(o,2)[1];return[n.current,function(e){var r="function"==typeof e?e(n.current):e;r!==n.current&&t(r,n.current),n.current=r,i({})}]}var Re=Math.pow(.995,20);var ze=n(981);function Pe(e){var t=(0,r.useState)(0),n=(0,te.A)(t,2),o=n[0],i=n[1],a=(0,r.useRef)(0),l=(0,r.useRef)();return l.current=e,(0,ze.o)((function(){var e;null===(e=l.current)||void 0===e||e.call(l)}),[o]),function(){a.current===o&&(a.current+=1,i(a.current))}}var Ne={width:0,height:0,left:0,top:0,right:0};function Ie(e){var t;return e instanceof Map?(t={},e.forEach((function(e,n){t[n]=e}))):t=e,JSON.stringify(t)}function Le(e){return String(e).replace(/"/g,"TABS_DQ")}function je(e,t,n,r){return!(!n||r||!1===e||void 0===e&&(!1===t||null===t))}var _e=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.editable,i=e.locale,a=e.style;return o&&!1!==o.showAdd?r.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:a,"aria-label":(null==i?void 0:i.addAriaLabel)||"Add tab",onClick:function(e){o.onEdit("add",{event:e})}},o.addIcon||"+"):null}));const He=_e;const De=r.forwardRef((function(e,t){var n,o=e.position,i=e.prefixCls,a=e.extra;if(!a)return null;var l={};return"object"!==(0,ne.A)(a)||r.isValidElement(a)?l.right=a:l=a,"right"===o&&(n=l.right),"left"===o&&(n=l.left),n?r.createElement("div",{className:"".concat(i,"-extra-content"),ref:t},n):null}));var Be=n(5470),We=n(2633),Fe=n(6855),Xe=n(8542);function Ke(e){var t=e.prefixCls,n=e.align,o=e.arrow,a=e.arrowPos,l=o||{},c=l.className,s=l.content,u=a.x,d=void 0===u?0:u,f=a.y,p=void 0===f?0:f,v=r.useRef();if(!n||!n.points)return null;var m={position:"absolute"};if(!1!==n.autoArrow){var h=n.points[0],g=n.points[1],b=h[0],y=h[1],A=g[0],w=g[1];b!==A&&["t","b"].includes(b)?"t"===b?m.top=0:m.bottom=0:m.top=p,y!==w&&["l","r"].includes(y)?"l"===y?m.left=0:m.right=0:m.left=d}return r.createElement("div",{ref:v,className:i()("".concat(t,"-arrow"),c),style:m},s)}function Ge(e){var t=e.prefixCls,n=e.open,o=e.zIndex,a=e.mask,l=e.motion;return a?r.createElement(Xe.Ay,(0,P.A)({},l,{motionAppear:!0,visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return r.createElement("div",{style:{zIndex:o},className:i()("".concat(t,"-mask"),n)})})):null}const qe=r.memo((function(e){return e.children}),(function(e,t){return t.cache}));var Ye=r.forwardRef((function(e,t){var n=e.popup,o=e.className,a=e.prefixCls,l=e.style,c=e.target,s=e.onVisibleChanged,u=e.open,d=e.keepDom,f=e.fresh,p=e.onClick,v=e.mask,m=e.arrow,h=e.arrowPos,g=e.align,b=e.motion,y=e.maskMotion,A=e.forceRender,w=e.getPopupContainer,S=e.autoDestroy,x=e.portal,C=e.zIndex,k=e.onMouseEnter,E=e.onMouseLeave,M=e.onPointerEnter,$=e.ready,O=e.offsetX,T=e.offsetY,R=e.offsetR,z=e.offsetB,N=e.onAlign,I=e.onPrepare,L=e.stretch,j=e.targetWidth,_=e.targetHeight,H="function"==typeof n?n():n,D=u||d,B=(null==w?void 0:w.length)>0,W=r.useState(!w||!B),F=(0,te.A)(W,2),X=F[0],K=F[1];if((0,ze.A)((function(){!X&&B&&c&&K(!0)}),[X,B,c]),!X)return null;var G="auto",q={left:"-1000vw",top:"-1000vh",right:G,bottom:G};if($||!u){var Y,U=g.points,V=g.dynamicInset||(null===(Y=g._experimental)||void 0===Y?void 0:Y.dynamicInset),Q=V&&"r"===U[0][1],Z=V&&"b"===U[0][0];Q?(q.right=R,q.left=G):(q.left=O,q.right=G),Z?(q.bottom=z,q.top=G):(q.top=T,q.bottom=G)}var J={};return L&&(L.includes("height")&&_?J.height=_:L.includes("minHeight")&&_&&(J.minHeight=_),L.includes("width")&&j?J.width=j:L.includes("minWidth")&&j&&(J.minWidth=j)),u||(J.pointerEvents="none"),r.createElement(x,{open:A||D,getContainer:w&&function(){return w(c)},autoDestroy:S},r.createElement(Ge,{prefixCls:a,open:u,zIndex:C,mask:v,motion:y}),r.createElement(ke,{onResize:N,disabled:!u},(function(e){return r.createElement(Xe.Ay,(0,P.A)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:A,leavedClassName:"".concat(a,"-hidden")},b,{onAppearPrepare:I,onEnterPrepare:I,visible:u,onVisibleChanged:function(e){var t;null==b||null===(t=b.onVisibleChanged)||void 0===t||t.call(b,e),s(e)}}),(function(n,c){var s=n.className,d=n.style,v=i()(a,s,o);return r.createElement("div",{ref:(0,de.K4)(e,t,c),className:v,style:(0,ee.A)((0,ee.A)((0,ee.A)((0,ee.A)({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},q),J),d),{},{boxSizing:"border-box",zIndex:C},l),onMouseEnter:k,onMouseLeave:E,onPointerEnter:M,onClick:p},m&&r.createElement(Ke,{prefixCls:a,arrow:m,arrowPos:h,align:g}),r.createElement(qe,{cache:!u&&!f},H))}))})))}));const Ue=Ye;const Ve=r.forwardRef((function(e,t){var n=e.children,o=e.getTriggerDOMNode,i=(0,de.f3)(n),a=r.useCallback((function(e){(0,de.Xf)(t,o?o(e):e)}),[o]),l=(0,de.xK)(a,n.ref);return i?r.cloneElement(n,{ref:l}):n}));const Qe=r.createContext(null);function Ze(e){return e?Array.isArray(e)?e:[e]:[]}const Je=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1};function et(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function tt(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function nt(e){return e.ownerDocument.defaultView}function rt(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=nt(n).getComputedStyle(n);[o.overflowX,o.overflowY,o.overflow].some((function(e){return r.includes(e)}))&&t.push(n),n=n.parentElement}return t}function ot(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function it(e){return ot(parseFloat(e),0)}function at(e,t){var n=(0,ee.A)({},e);return(t||[]).forEach((function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=nt(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,l=t.borderLeftWidth,c=t.borderRightWidth,s=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,f=e.offsetWidth,p=e.clientWidth,v=it(i),m=it(a),h=it(l),g=it(c),b=ot(Math.round(s.width/f*1e3)/1e3),y=ot(Math.round(s.height/u*1e3)/1e3),A=(f-p-h-g)*b,w=(u-d-v-m)*y,S=v*y,x=m*y,C=h*b,k=g*b,E=0,M=0;if("clip"===r){var $=it(o);E=$*b,M=$*y}var O=s.x+C-E,T=s.y+S-M,R=O+s.width+2*E-C-k-A,z=T+s.height+2*M-S-x-w;n.left=Math.max(n.left,O),n.top=Math.max(n.top,T),n.right=Math.min(n.right,R),n.bottom=Math.min(n.bottom,z)}})),n}function lt(e){var t="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),n=t.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(t)}function ct(e,t){var n=t||[],r=(0,te.A)(n,2),o=r[0],i=r[1];return[lt(e.width,o),lt(e.height,i)]}function st(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function ut(e,t){var n,r=t[0],o=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function dt(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map((function(e,r){return r===t?n[e]||"c":e})).join("")}var ft=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];const pt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Be.A,t=r.forwardRef((function(t,n){var o=t.prefixCls,a=void 0===o?"rc-trigger-popup":o,l=t.children,c=t.action,s=void 0===c?"hover":c,u=t.showAction,d=t.hideAction,f=t.popupVisible,p=t.defaultPopupVisible,v=t.onPopupVisibleChange,m=t.afterPopupVisibleChange,h=t.mouseEnterDelay,g=t.mouseLeaveDelay,b=void 0===g?.1:g,y=t.focusDelay,A=t.blurDelay,w=t.mask,S=t.maskClosable,x=void 0===S||S,C=t.getPopupContainer,k=t.forceRender,E=t.autoDestroy,M=t.destroyPopupOnHide,$=t.popup,O=t.popupClassName,T=t.popupStyle,R=t.popupPlacement,z=t.builtinPlacements,P=void 0===z?{}:z,N=t.popupAlign,I=t.zIndex,L=t.stretch,j=t.getPopupClassNameFromAlign,_=t.fresh,D=t.alignPoint,B=t.onPopupClick,W=t.onPopupAlign,F=t.arrow,X=t.popupMotion,K=t.maskMotion,G=t.popupTransitionName,q=t.popupAnimation,Y=t.maskTransitionName,U=t.maskAnimation,V=t.className,Q=t.getTriggerDOMNode,Z=(0,re.A)(t,ft),J=E||M||!1,ne=r.useState(!1),oe=(0,te.A)(ne,2),ae=oe[0],le=oe[1];(0,ze.A)((function(){le(ie())}),[]);var ce=r.useRef({}),se=r.useContext(Qe),de=r.useMemo((function(){return{registerSubPopup:function(e,t){ce.current[e]=t,null==se||se.registerSubPopup(e,t)}}}),[se]),fe=(0,Fe.A)(),pe=r.useState(null),ve=(0,te.A)(pe,2),me=ve[0],he=ve[1],ge=r.useRef(null),be=(0,Ee.A)((function(e){ge.current=e,(0,ue.f)(e)&&me!==e&&he(e),null==se||se.registerSubPopup(fe,e)})),ye=r.useState(null),Ae=(0,te.A)(ye,2),we=Ae[0],Se=Ae[1],xe=r.useRef(null),Ce=(0,Ee.A)((function(e){(0,ue.f)(e)&&we!==e&&(Se(e),xe.current=e)})),Me=r.Children.only(l),$e=(null==Me?void 0:Me.props)||{},Oe={},Te=(0,Ee.A)((function(e){var t,n,r=we;return(null==r?void 0:r.contains(e))||(null===(t=(0,We.j)(r))||void 0===t?void 0:t.host)===e||e===r||(null==me?void 0:me.contains(e))||(null===(n=(0,We.j)(me))||void 0===n?void 0:n.host)===e||e===me||Object.values(ce.current).some((function(t){return(null==t?void 0:t.contains(e))||e===t}))})),Re=tt(a,X,q,G),Pe=tt(a,K,U,Y),Ne=r.useState(p||!1),Ie=(0,te.A)(Ne,2),Le=Ie[0],je=Ie[1],_e=null!=f?f:Le,He=(0,Ee.A)((function(e){void 0===f&&je(e)}));(0,ze.A)((function(){je(f||!1)}),[f]);var De=r.useRef(_e);De.current=_e;var Be=r.useRef([]);Be.current=[];var Xe=(0,Ee.A)((function(e){var t;He(e),(null!==(t=Be.current[Be.current.length-1])&&void 0!==t?t:_e)!==e&&(Be.current.push(e),null==v||v(e))})),Ke=r.useRef(),Ge=function(){clearTimeout(Ke.current)},qe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Ge(),0===t?Xe(e):Ke.current=setTimeout((function(){Xe(e)}),1e3*t)};r.useEffect((function(){return Ge}),[]);var Ye=r.useState(!1),it=(0,te.A)(Ye,2),lt=it[0],pt=it[1];(0,ze.A)((function(e){e&&!_e||pt(!0)}),[_e]);var vt=r.useState(null),mt=(0,te.A)(vt,2),ht=mt[0],gt=mt[1],bt=r.useState([0,0]),yt=(0,te.A)(bt,2),At=yt[0],wt=yt[1],St=function(e){wt([e.clientX,e.clientY])},xt=function(e,t,n,o,i,a,l){var c=r.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[o]||{}}),s=(0,te.A)(c,2),u=s[0],d=s[1],f=r.useRef(0),p=r.useMemo((function(){return t?rt(t):[]}),[t]),v=r.useRef({});e||(v.current={});var m=(0,Ee.A)((function(){if(t&&n&&e){var r,c,s,u=t,f=u.ownerDocument,m=nt(u).getComputedStyle(u),h=m.width,g=m.height,b=m.position,y=u.style.left,A=u.style.top,w=u.style.right,S=u.style.bottom,x=u.style.overflow,C=(0,ee.A)((0,ee.A)({},i[o]),a),k=f.createElement("div");if(null===(r=u.parentElement)||void 0===r||r.appendChild(k),k.style.left="".concat(u.offsetLeft,"px"),k.style.top="".concat(u.offsetTop,"px"),k.style.position=b,k.style.height="".concat(u.offsetHeight,"px"),k.style.width="".concat(u.offsetWidth,"px"),u.style.left="0",u.style.top="0",u.style.right="auto",u.style.bottom="auto",u.style.overflow="hidden",Array.isArray(n))s={x:n[0],y:n[1],width:0,height:0};else{var E=n.getBoundingClientRect();s={x:E.x,y:E.y,width:E.width,height:E.height}}var M=u.getBoundingClientRect(),$=f.documentElement,O=$.clientWidth,T=$.clientHeight,R=$.scrollWidth,z=$.scrollHeight,P=$.scrollTop,N=$.scrollLeft,I=M.height,L=M.width,j=s.height,_=s.width,H={left:0,top:0,right:O,bottom:T},D={left:-N,top:-P,right:R-N,bottom:z-P},B=C.htmlRegion,W="visible",F="visibleFirst";"scroll"!==B&&B!==F&&(B=W);var X=B===F,K=at(D,p),G=at(H,p),q=B===W?G:K,Y=X?G:q;u.style.left="auto",u.style.top="auto",u.style.right="0",u.style.bottom="0";var U=u.getBoundingClientRect();u.style.left=y,u.style.top=A,u.style.right=w,u.style.bottom=S,u.style.overflow=x,null===(c=u.parentElement)||void 0===c||c.removeChild(k);var V=ot(Math.round(L/parseFloat(h)*1e3)/1e3),Q=ot(Math.round(I/parseFloat(g)*1e3)/1e3);if(0===V||0===Q||(0,ue.f)(n)&&!Je(n))return;var Z=C.offset,J=C.targetOffset,ne=ct(M,Z),re=(0,te.A)(ne,2),oe=re[0],ie=re[1],ae=ct(s,J),le=(0,te.A)(ae,2),ce=le[0],se=le[1];s.x-=ce,s.y-=se;var de=C.points||[],fe=(0,te.A)(de,2),pe=fe[0],ve=st(fe[1]),me=st(pe),he=ut(s,ve),ge=ut(M,me),be=(0,ee.A)({},C),ye=he.x-ge.x+oe,Ae=he.y-ge.y+ie;function wt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:q,r=M.x+e,o=M.y+t,i=r+L,a=o+I,l=Math.max(r,n.left),c=Math.max(o,n.top),s=Math.min(i,n.right),u=Math.min(a,n.bottom);return Math.max(0,(s-l)*(u-c))}var we,Se,xe,Ce,ke=wt(ye,Ae),Ee=wt(ye,Ae,G),Me=ut(s,["t","l"]),$e=ut(M,["t","l"]),Oe=ut(s,["b","r"]),Te=ut(M,["b","r"]),Re=C.overflow||{},ze=Re.adjustX,Pe=Re.adjustY,Ne=Re.shiftX,Ie=Re.shiftY,Le=function(e){return"boolean"==typeof e?e:e>=0};function St(){we=M.y+Ae,Se=we+I,xe=M.x+ye,Ce=xe+L}St();var je=Le(Pe),_e=me[0]===ve[0];if(je&&"t"===me[0]&&(Se>Y.bottom||v.current.bt)){var He=Ae;_e?He-=I-j:He=Me.y-Te.y-ie;var De=wt(ye,He),Be=wt(ye,He,G);De>ke||De===ke&&(!X||Be>=Ee)?(v.current.bt=!0,Ae=He,ie=-ie,be.points=[dt(me,0),dt(ve,0)]):v.current.bt=!1}if(je&&"b"===me[0]&&(weke||Fe===ke&&(!X||Xe>=Ee)?(v.current.tb=!0,Ae=We,ie=-ie,be.points=[dt(me,0),dt(ve,0)]):v.current.tb=!1}var Ke=Le(ze),Ge=me[1]===ve[1];if(Ke&&"l"===me[1]&&(Ce>Y.right||v.current.rl)){var qe=ye;Ge?qe-=L-_:qe=Me.x-Te.x-oe;var Ye=wt(qe,Ae),Ue=wt(qe,Ae,G);Ye>ke||Ye===ke&&(!X||Ue>=Ee)?(v.current.rl=!0,ye=qe,oe=-oe,be.points=[dt(me,1),dt(ve,1)]):v.current.rl=!1}if(Ke&&"r"===me[1]&&(xeke||Qe===ke&&(!X||Ze>=Ee)?(v.current.lr=!0,ye=Ve,oe=-oe,be.points=[dt(me,1),dt(ve,1)]):v.current.lr=!1}St();var et=!0===Ne?0:Ne;"number"==typeof et&&(xeG.right&&(ye-=Ce-G.right-oe,s.x>G.right-et&&(ye+=s.x-G.right+et)));var tt=!0===Ie?0:Ie;"number"==typeof tt&&(weG.bottom&&(Ae-=Se-G.bottom-ie,s.y>G.bottom-tt&&(Ae+=s.y-G.bottom+tt)));var rt=M.x+ye,it=rt+L,lt=M.y+Ae,ft=lt+I,pt=s.x,vt=pt+_,mt=s.y,ht=mt+j,gt=(Math.max(rt,pt)+Math.min(it,vt))/2-rt,bt=(Math.max(lt,mt)+Math.min(ft,ht))/2-lt;null==l||l(t,be);var yt=U.right-M.x-(ye+M.width),At=U.bottom-M.y-(Ae+M.height);d({ready:!0,offsetX:ye/V,offsetY:Ae/Q,offsetR:yt/V,offsetB:At/Q,arrowX:gt/V,arrowY:bt/Q,scaleX:V,scaleY:Q,align:be})}})),h=function(){d((function(e){return(0,ee.A)((0,ee.A)({},e),{},{ready:!1})}))};return(0,ze.A)(h,[o]),(0,ze.A)((function(){e||h()}),[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,function(){f.current+=1;var e=f.current;Promise.resolve().then((function(){f.current===e&&m()}))}]}(_e,me,D?At:we,R,P,N,W),Ct=(0,te.A)(xt,11),kt=Ct[0],Et=Ct[1],Mt=Ct[2],$t=Ct[3],Ot=Ct[4],Tt=Ct[5],Rt=Ct[6],zt=Ct[7],Pt=Ct[8],Nt=Ct[9],It=Ct[10],Lt=function(e,t,n,o){return r.useMemo((function(){var r=Ze(null!=n?n:t),i=Ze(null!=o?o:t),a=new Set(r),l=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[a,l]}),[e,t,n,o])}(ae,s,u,d),jt=(0,te.A)(Lt,2),_t=jt[0],Ht=jt[1],Dt=_t.has("click"),Bt=Ht.has("click")||Ht.has("contextMenu"),Wt=(0,Ee.A)((function(){lt||It()}));!function(e,t,n,r,o){(0,ze.A)((function(){if(e&&t&&n){var i=n,a=rt(t),l=rt(i),c=nt(i),s=new Set([c].concat((0,H.A)(a),(0,H.A)(l)));function u(){r(),o()}return s.forEach((function(e){e.addEventListener("scroll",u,{passive:!0})})),c.addEventListener("resize",u,{passive:!0}),r(),function(){s.forEach((function(e){e.removeEventListener("scroll",u),c.removeEventListener("resize",u)}))}}}),[e,t,n])}(_e,we,me,Wt,(function(){De.current&&D&&Bt&&qe(!1)})),(0,ze.A)((function(){Wt()}),[At,R]),(0,ze.A)((function(){!_e||null!=P&&P[R]||Wt()}),[JSON.stringify(N)]);var Ft=r.useMemo((function(){var e=function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a1?a-1:0),c=1;c1?n-1:0),o=1;o1?n-1:0),o=1;oh,ge=(0,r.useMemo)((function(){var e=l;return ve?e=null===O&&k?l:l.slice(0,Math.min(l.length,R/f)):"number"==typeof h&&(e=l.slice(0,h)),e}),[l,f,O,h,ve]),be=(0,r.useMemo)((function(){return ve?l.slice(ae+1):l.slice(ge.length)}),[l,ge,ve,ae]),ye=(0,r.useCallback)((function(e,t){var n;return"function"==typeof u?u(e):null!==(n=u&&(null==e?void 0:e[u]))&&void 0!==n?n:t}),[u]),Ae=(0,r.useCallback)(c||function(e){return e},[c]);function we(e,t,n){(oe!==e||void 0!==t&&t!==Q)&&(ie(e),n||(ue(eR){we(r-1,e-o-q+F);break}}y&&xe(0)+q>R&&Z(null)}}),[R,I,F,q,ye,ge]);var Ce=se&&!!be.length,Ee={};null!==Q&&ve&&(Ee={position:"absolute",left:Q,top:0});var Me,$e={prefixCls:de,responsive:ve,component:S,invalidate:me},Oe=s?function(e,t){var n=ye(e,t);return r.createElement(zt.Provider,{key:n,value:(0,ee.A)((0,ee.A)({},$e),{},{order:t,item:e,itemKey:n,registerSize:Se,display:t<=ae})},s(e,t))}:function(e,t){var n=ye(e,t);return r.createElement($t,(0,P.A)({},$e,{order:t,key:n,item:e,renderItem:Ae,itemKey:n,registerSize:Se,display:t<=ae}))},Te={order:Ce?ae:Number.MAX_SAFE_INTEGER,className:"".concat(de,"-rest"),registerSize:function(e,t){X(t),D(F)},display:Ce};if(b)b&&(Me=r.createElement(zt.Provider,{value:(0,ee.A)((0,ee.A)({},$e),Te)},b(be)));else{var Re=g||Wt;Me=r.createElement($t,(0,P.A)({},$e,Te),"function"==typeof Re?Re(be):Re)}var Pe=r.createElement(w,(0,P.A)({className:i()(!me&&o,m),style:v,ref:t},C),ge.map(Oe),he?Me:null,y&&r.createElement($t,(0,P.A)({},$e,{responsive:pe,responsiveDisabled:!ve,order:ae,className:"".concat(de,"-suffix"),registerSize:function(e,t){Y(t)},display:!0,style:Ee}),y));return pe&&(Pe=r.createElement(ke,{onResize:function(e,t){T(t.clientWidth)},disabled:!ve},Pe)),Pe}var Xt=r.forwardRef(Ft);Xt.displayName="Overflow",Xt.Item=_t,Xt.RESPONSIVE=Dt,Xt.INVALIDATE=Bt;const Kt=Xt;var Gt=n(3210),qt=r.createContext(null);function Yt(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function Ut(e){return Yt(r.useContext(qt),e)}var Vt=n(8104),Qt=["children","locked"],Zt=r.createContext(null);function Jt(e){var t=e.children,n=e.locked,o=(0,re.A)(e,Qt),i=r.useContext(Zt),a=(0,Vt.A)((function(){return e=i,t=o,n=(0,ee.A)({},e),Object.keys(t).forEach((function(e){var r=t[e];void 0!==r&&(n[e]=r)})),n;var e,t,n}),[i,o],(function(e,t){return!(n||e[0]===t[0]&&(0,Gt.A)(e[1],t[1],!0))}));return r.createElement(Zt.Provider,{value:a},t)}var en=[],tn=r.createContext(null);function nn(){return r.useContext(tn)}var rn=r.createContext(en);function on(e){var t=r.useContext(rn);return r.useMemo((function(){return void 0!==e?[].concat((0,H.A)(t),[e]):t}),[t,e])}var an=r.createContext(null);const ln=r.createContext({});function cn(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Je(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&null===a&&(a=0),r&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}function sn(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,H.A)(e.querySelectorAll("*")).filter((function(e){return cn(e,t)}));return cn(e,t)&&n.unshift(e),n}var un=vt.A.LEFT,dn=vt.A.RIGHT,fn=vt.A.UP,pn=vt.A.DOWN,vn=vt.A.ENTER,mn=vt.A.ESC,hn=vt.A.HOME,gn=vt.A.END,bn=[fn,pn,un,dn];function yn(e,t){return sn(e,!0).filter((function(e){return t.has(e)}))}function An(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=yn(e,t),i=o.length,a=o.findIndex((function(e){return n===e}));return r<0?-1===a?a=i-1:a-=1:r>0&&(a+=1),o[a=(a+i)%i]}var wn=function(e,t){var n=new Set,r=new Map,o=new Map;return e.forEach((function(e){var i=document.querySelector("[data-menu-id='".concat(Yt(t,e),"']"));i&&(n.add(i),o.set(i,e),r.set(e,i))})),{elements:n,key2element:r,element2key:o}};function Sn(e,t,n,o,i,a,l,c,s,u){var d=r.useRef(),f=r.useRef();f.current=t;var p=function(){Me.A.cancel(d.current)};return r.useEffect((function(){return function(){p()}}),[]),function(r){var v=r.which;if([].concat(bn,[vn,mn,hn,gn]).includes(v)){var m=a(),h=wn(m,o),g=h,b=g.elements,y=g.key2element,A=g.element2key,w=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(y.get(t),b),S=A.get(w),x=function(e,t,n,r){var o,i="prev",a="next",l="children",c="parent";if("inline"===e&&r===vn)return{inlineTrigger:!0};var s=(0,J.A)((0,J.A)({},fn,i),pn,a),u=(0,J.A)((0,J.A)((0,J.A)((0,J.A)({},un,n?a:i),dn,n?i:a),pn,l),vn,l),d=(0,J.A)((0,J.A)((0,J.A)((0,J.A)((0,J.A)((0,J.A)({},fn,i),pn,a),vn,l),mn,c),un,n?l:c),dn,n?c:l);switch(null===(o={inline:s,horizontal:u,vertical:d,inlineSub:s,horizontalSub:d,verticalSub:d}["".concat(e).concat(t?"":"Sub")])||void 0===o?void 0:o[r]){case i:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case c:return{offset:-1,sibling:!1};case l:return{offset:1,sibling:!1};default:return null}}(e,1===l(S,!0).length,n,v);if(!x&&v!==hn&&v!==gn)return;(bn.includes(v)||[hn,gn].includes(v))&&r.preventDefault();var C=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var r=A.get(e);c(r),p(),d.current=(0,Me.A)((function(){f.current===r&&t.focus()}))}};if([hn,gn].includes(v)||x.sibling||!w){var k,E,M=yn(k=w&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(w):i.current,b);E=v===hn?M[0]:v===gn?M[M.length-1]:An(k,b,w,x.offset),C(E)}else if(x.inlineTrigger)s(S);else if(x.offset>0)s(S,!0),p(),d.current=(0,Me.A)((function(){h=wn(m,o);var e=w.getAttribute("aria-controls"),t=An(document.getElementById(e),h.elements);C(t)}),5);else if(x.offset<0){var $=l(S,!0),O=$[$.length-2],T=y.get(O);s(O,!1),C(T)}}null==u||u(r)}}var xn="__RC_UTIL_PATH_SPLIT__",Cn=function(e){return e.join(xn)},kn="rc-menu-more";function En(){var e=r.useState({}),t=(0,te.A)(e,2)[1],n=(0,r.useRef)(new Map),o=(0,r.useRef)(new Map),i=r.useState([]),a=(0,te.A)(i,2),l=a[0],c=a[1],s=(0,r.useRef)(0),u=(0,r.useRef)(!1),d=(0,r.useCallback)((function(e,r){var i=Cn(r);o.current.set(i,e),n.current.set(e,i),s.current+=1;var a,l=s.current;a=function(){l===s.current&&(u.current||t({}))},Promise.resolve().then(a)}),[]),f=(0,r.useCallback)((function(e,t){var r=Cn(t);o.current.delete(r),n.current.delete(e)}),[]),p=(0,r.useCallback)((function(e){c(e)}),[]),v=(0,r.useCallback)((function(e,t){var r=n.current.get(e)||"",o=r.split(xn);return t&&l.includes(o[0])&&o.unshift(kn),o}),[l]),m=(0,r.useCallback)((function(e,t){return e.some((function(e){return v(e,!0).includes(t)}))}),[v]),h=(0,r.useCallback)((function(e){var t="".concat(n.current.get(e)).concat(xn),r=new Set;return(0,H.A)(o.current.keys()).forEach((function(e){e.startsWith(t)&&r.add(o.current.get(e))})),r}),[]);return r.useEffect((function(){return function(){u.current=!0}}),[]),{registerPath:d,unregisterPath:f,refreshOverflowKeys:p,isSubPathKey:m,getKeyPath:v,getKeys:function(){var e=(0,H.A)(n.current.keys());return l.length&&e.push(kn),e},getSubPathKeys:h}}function Mn(e){var t=r.useRef(e);t.current=e;var n=r.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o1&&(y.motionAppear=!1);var A=y.onVisibleChanged;return y.onVisibleChanged=function(e){return p.current||e||g(!0),null==A?void 0:A(e)},h?null:r.createElement(Jt,{mode:a,locked:!p.current},r.createElement(Xe.Ay,(0,P.A)({visible:b},y,{forceRender:s,removeOnLeave:!1,leavedClassName:"".concat(c,"-hidden")}),(function(e){var n=e.className,o=e.style;return r.createElement(Kn,{id:t,className:n,style:o},i)})))}var er=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],tr=["active"],nr=function(e){var t=e.style,n=e.className,o=e.title,a=e.eventKey,l=(e.warnKey,e.disabled),c=e.internalPopupClose,s=e.children,u=e.itemIcon,d=e.expandIcon,f=e.popupClassName,p=e.popupOffset,v=e.popupStyle,m=e.onClick,h=e.onMouseEnter,g=e.onMouseLeave,b=e.onTitleClick,y=e.onTitleMouseEnter,A=e.onTitleMouseLeave,w=(0,re.A)(e,er),S=Ut(a),x=r.useContext(Zt),C=x.prefixCls,k=x.mode,E=x.openKeys,M=x.disabled,$=x.overflowDisabled,O=x.activeKey,T=x.selectedKeys,R=x.itemIcon,z=x.expandIcon,N=x.onItemClick,I=x.onOpenChange,L=x.onActive,j=r.useContext(ln)._internalRenderSubMenuItem,_=r.useContext(an).isSubPathKey,H=on(),D="".concat(C,"-submenu"),B=M||l,W=r.useRef(),F=r.useRef();var X=null!=u?u:R,K=null!=d?d:z,G=E.includes(a),q=!$&&G,Y=_(T,a),U=Tn(a,B,y,A),V=U.active,Q=(0,re.A)(U,tr),Z=r.useState(!1),ne=(0,te.A)(Z,2),oe=ne[0],ie=ne[1],ae=function(e){B||ie(e)},le=r.useMemo((function(){return V||"inline"!==k&&(oe||_([O],a))}),[k,V,O,oe,a,_]),ce=Rn(H.length),se=Mn((function(e){null==m||m(Nn(e)),N(e)})),ue=S&&"".concat(S,"-popup"),de=r.createElement("div",(0,P.A)({role:"menuitem",style:ce,className:"".concat(D,"-title"),tabIndex:B?null:-1,ref:W,title:"string"==typeof o?o:null,"data-menu-id":$&&S?null:S,"aria-expanded":q,"aria-haspopup":!0,"aria-controls":ue,"aria-disabled":B,onClick:function(e){B||(null==b||b({key:a,domEvent:e}),"inline"===k&&I(a,!G))},onFocus:function(){L(a)}},Q),o,r.createElement(zn,{icon:"horizontal"!==k?K:void 0,props:(0,ee.A)((0,ee.A)({},e),{},{isOpen:q,isSubMenu:!0})},r.createElement("i",{className:"".concat(D,"-arrow")}))),fe=r.useRef(k);if("inline"!==k&&H.length>1?fe.current="vertical":fe.current=k,!$){var pe=fe.current;de=r.createElement(Zn,{mode:pe,prefixCls:D,visible:!c&&q&&"inline"!==k,popupClassName:f,popupOffset:p,popupStyle:v,popup:r.createElement(Jt,{mode:"horizontal"===pe?"vertical":pe},r.createElement(Kn,{id:ue,ref:F},s)),disabled:B,onVisibleChange:function(e){"inline"!==k&&I(a,e)}},de)}var ve=r.createElement(Kt.Item,(0,P.A)({role:"none"},w,{component:"li",style:t,className:i()(D,"".concat(D,"-").concat(k),n,(0,J.A)((0,J.A)((0,J.A)((0,J.A)({},"".concat(D,"-open"),q),"".concat(D,"-active"),le),"".concat(D,"-selected"),Y),"".concat(D,"-disabled"),B)),onMouseEnter:function(e){ae(!0),null==h||h({key:a,domEvent:e})},onMouseLeave:function(e){ae(!1),null==g||g({key:a,domEvent:e})}}),de,!$&&r.createElement(Jn,{id:ue,open:q,keyPath:H},s));return j&&(ve=j(ve,e,{selected:Y,active:le,open:q,disabled:B})),r.createElement(Jt,{onItemClick:se,mode:"horizontal"===k?"vertical":k,itemIcon:X,expandIcon:K},ve)};function rr(e){var t,n=e.eventKey,o=e.children,i=on(n),a=Gn(o,i),l=nn();return r.useEffect((function(){if(l)return l.registerPath(n,i),function(){l.unregisterPath(n,i)}}),[i]),t=l?a:r.createElement(nr,e,a),r.createElement(rn.Provider,{value:i},t)}var or=["className","title","eventKey","children"],ir=["children"],ar=function(e){var t=e.className,n=e.title,o=(e.eventKey,e.children),a=(0,re.A)(e,or),l=r.useContext(Zt).prefixCls,c="".concat(l,"-item-group");return r.createElement("li",(0,P.A)({role:"presentation"},a,{onClick:function(e){return e.stopPropagation()},className:i()(c,t)}),r.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:"string"==typeof n?n:void 0},n),r.createElement("ul",{role:"group",className:"".concat(c,"-list")},o))};function lr(e){var t=e.children,n=(0,re.A)(e,ir),o=Gn(t,on(n.eventKey));return nn()?o:r.createElement(ar,(0,a.A)(n,["warnKey"]),o)}function cr(e){var t=e.className,n=e.style,o=r.useContext(Zt).prefixCls;return nn()?null:r.createElement("li",{role:"separator",className:i()("".concat(o,"-item-divider"),t),style:n})}var sr=["label","children","key","type"];function ur(e){return(e||[]).map((function(e,t){if(e&&"object"===(0,ne.A)(e)){var n=e,o=n.label,i=n.children,a=n.key,l=n.type,c=(0,re.A)(n,sr),s=null!=a?a:"tmp-".concat(t);return i||"group"===l?"group"===l?r.createElement(lr,(0,P.A)({key:s},c,{title:o}),ur(i)):r.createElement(rr,(0,P.A)({key:s},c,{title:o}),ur(i)):"divider"===l?r.createElement(cr,(0,P.A)({key:s},c)):r.createElement(Bn,(0,P.A)({key:s},c),o)}return null})).filter((function(e){return e}))}function dr(e,t,n){var r=e;return t&&(r=ur(t)),Gn(r,n)}var fr=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],pr=[],vr=r.forwardRef((function(e,t){var n,o=e,a=o.prefixCls,l=void 0===a?"rc-menu":a,c=o.rootClassName,s=o.style,u=o.className,d=o.tabIndex,f=void 0===d?0:d,p=o.items,v=o.children,m=o.direction,h=o.id,g=o.mode,b=void 0===g?"vertical":g,y=o.inlineCollapsed,A=o.disabled,w=o.disabledOverflow,S=o.subMenuOpenDelay,x=void 0===S?.1:S,C=o.subMenuCloseDelay,k=void 0===C?.1:C,E=o.forceSubMenuRender,M=o.defaultOpenKeys,$=o.openKeys,O=o.activeKey,T=o.defaultActiveFirst,R=o.selectable,z=void 0===R||R,N=o.multiple,I=void 0!==N&&N,L=o.defaultSelectedKeys,j=o.selectedKeys,_=o.onSelect,D=o.onDeselect,B=o.inlineIndent,W=void 0===B?24:B,F=o.motion,X=o.defaultMotions,K=o.triggerSubMenuAction,G=void 0===K?"hover":K,q=o.builtinPlacements,Y=o.itemIcon,U=o.expandIcon,V=o.overflowedIndicator,Q=void 0===V?"...":V,Z=o.overflowedIndicatorPopupClassName,ne=o.getPopupContainer,ie=o.onClick,ae=o.onOpenChange,le=o.onKeyDown,ce=(o.openAnimation,o.openTransitionName,o._internalRenderMenuItem),se=o._internalRenderSubMenuItem,ue=(0,re.A)(o,fr),de=r.useMemo((function(){return dr(v,p,pr)}),[v,p]),fe=r.useState(!1),pe=(0,te.A)(fe,2),ve=pe[0],me=pe[1],he=r.useRef(),ge=function(e){var t=(0,oe.A)(e,{value:e}),n=(0,te.A)(t,2),o=n[0],i=n[1];return r.useEffect((function(){On+=1;var e="".concat($n,"-").concat(On);i("rc-menu-uuid-".concat(e))}),[]),o}(h),be="rtl"===m;var ye=(0,oe.A)(M,{value:$,postState:function(e){return e||pr}}),Ae=(0,te.A)(ye,2),we=Ae[0],Se=Ae[1],xe=function(e){function t(){Se(e),null==ae||ae(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?(0,Ot.flushSync)(t):t()},Ce=r.useState(we),ke=(0,te.A)(Ce,2),Ee=ke[0],Me=ke[1],$e=r.useRef(!1),Oe=r.useMemo((function(){return"inline"!==b&&"vertical"!==b||!y?[b,!1]:["vertical",y]}),[b,y]),Te=(0,te.A)(Oe,2),Re=Te[0],ze=Te[1],Pe="inline"===Re,Ne=r.useState(Re),Ie=(0,te.A)(Ne,2),Le=Ie[0],je=Ie[1],_e=r.useState(ze),He=(0,te.A)(_e,2),De=He[0],Be=He[1];r.useEffect((function(){je(Re),Be(ze),$e.current&&(Pe?Se(Ee):xe(pr))}),[Re,ze]);var We=r.useState(0),Fe=(0,te.A)(We,2),Xe=Fe[0],Ke=Fe[1],Ge=Xe>=de.length-1||"horizontal"!==Le||w;r.useEffect((function(){Pe&&Me(we)}),[we]),r.useEffect((function(){return $e.current=!0,function(){$e.current=!1}}),[]);var qe=En(),Ye=qe.registerPath,Ue=qe.unregisterPath,Ve=qe.refreshOverflowKeys,Qe=qe.isSubPathKey,Ze=qe.getKeyPath,Je=qe.getKeys,et=qe.getSubPathKeys,tt=r.useMemo((function(){return{registerPath:Ye,unregisterPath:Ue}}),[Ye,Ue]),nt=r.useMemo((function(){return{isSubPathKey:Qe}}),[Qe]);r.useEffect((function(){Ve(Ge?pr:de.slice(Xe+1).map((function(e){return e.key})))}),[Xe,Ge]);var rt=(0,oe.A)(O||T&&(null===(n=de[0])||void 0===n?void 0:n.key),{value:O}),ot=(0,te.A)(rt,2),it=ot[0],at=ot[1],lt=Mn((function(e){at(e)})),ct=Mn((function(){at(void 0)}));(0,r.useImperativeHandle)(t,(function(){return{list:he.current,focus:function(e){var t,n,r=Je(),o=wn(r,ge),i=o.elements,a=o.key2element,l=o.element2key,c=yn(he.current,i),s=null!=it?it:c[0]?l.get(c[0]):null===(t=de.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key,u=a.get(s);s&&u&&(null==u||null===(n=u.focus)||void 0===n||n.call(u,e))}}}));var st=(0,oe.A)(L||[],{value:j,postState:function(e){return Array.isArray(e)?e:null==e?pr:[e]}}),ut=(0,te.A)(st,2),dt=ut[0],ft=ut[1],pt=Mn((function(e){null==ie||ie(Nn(e)),function(e){if(z){var t,n=e.key,r=dt.includes(n);t=I?r?dt.filter((function(e){return e!==n})):[].concat((0,H.A)(dt),[n]):[n],ft(t);var o=(0,ee.A)((0,ee.A)({},e),{},{selectedKeys:t});r?null==D||D(o):null==_||_(o)}!I&&we.length&&"inline"!==Le&&xe(pr)}(e)})),vt=Mn((function(e,t){var n=we.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==Le){var r=et(e);n=n.filter((function(e){return!r.has(e)}))}(0,Gt.A)(we,n,!0)||xe(n,!0)})),mt=Sn(Le,it,be,ge,he,Je,Ze,at,(function(e,t){var n=null!=t?t:!we.includes(e);vt(e,n)}),le);r.useEffect((function(){me(!0)}),[]);var ht=r.useMemo((function(){return{_internalRenderMenuItem:ce,_internalRenderSubMenuItem:se}}),[ce,se]),gt="horizontal"!==Le||w?de:de.map((function(e,t){return r.createElement(Jt,{key:e.key,overflowDisabled:t>Xe},e)})),bt=r.createElement(Kt,(0,P.A)({id:h,ref:he,prefixCls:"".concat(l,"-overflow"),component:"ul",itemComponent:Bn,className:i()(l,"".concat(l,"-root"),"".concat(l,"-").concat(Le),u,(0,J.A)((0,J.A)({},"".concat(l,"-inline-collapsed"),De),"".concat(l,"-rtl"),be),c),dir:m,style:s,role:"menu",tabIndex:f,data:gt,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?de.slice(-t):null;return r.createElement(rr,{eventKey:kn,title:Q,disabled:Ge,internalPopupClose:0===t,popupClassName:Z},n)},maxCount:"horizontal"!==Le||w?Kt.INVALIDATE:Kt.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){Ke(e)},onKeyDown:mt},ue));return r.createElement(ln.Provider,{value:ht},r.createElement(qt.Provider,{value:ge},r.createElement(Jt,{prefixCls:l,rootClassName:c,mode:Le,openKeys:we,rtl:be,disabled:A,motion:ve?F:null,defaultMotions:ve?X:null,activeKey:it,onActive:lt,onInactive:ct,selectedKeys:dt,inlineIndent:W,subMenuOpenDelay:x,subMenuCloseDelay:k,forceSubMenuRender:E,builtinPlacements:q,triggerSubMenuAction:G,getPopupContainer:ne,itemIcon:Y,expandIcon:U,onItemClick:pt,onOpenChange:vt},r.createElement(an.Provider,{value:nt},bt),r.createElement("div",{style:{display:"none"},"aria-hidden":!0},r.createElement(tn.Provider,{value:tt},de)))))}));var mr=vr;mr.Item=Bn,mr.SubMenu=rr,mr.ItemGroup=lr,mr.Divider=cr;const hr=mr;var gr=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.id,a=e.tabs,l=e.locale,c=e.mobile,s=e.moreIcon,u=void 0===s?"More":s,d=e.moreTransitionName,f=e.style,p=e.className,v=e.editable,m=e.tabBarGutter,h=e.rtl,g=e.removeAriaLabel,b=e.onTabClick,y=e.getPopupContainer,A=e.popupClassName,w=(0,r.useState)(!1),S=(0,te.A)(w,2),x=S[0],C=S[1],k=(0,r.useState)(null),E=(0,te.A)(k,2),M=E[0],$=E[1],O="".concat(o,"-more-popup"),T="".concat(n,"-dropdown"),R=null!==M?"".concat(O,"-").concat(M):null,z=null==l?void 0:l.dropdownAriaLabel;var P=r.createElement(hr,{onClick:function(e){var t=e.key,n=e.domEvent;b(t,n),C(!1)},prefixCls:"".concat(T,"-menu"),id:O,tabIndex:-1,role:"listbox","aria-activedescendant":R,selectedKeys:[M],"aria-label":void 0!==z?z:"expanded dropdown"},a.map((function(e){var t=e.closable,n=e.disabled,i=e.closeIcon,a=e.key,l=e.label,c=je(t,i,v,n);return r.createElement(Bn,{key:a,id:"".concat(O,"-").concat(a),role:"option","aria-controls":o&&"".concat(o,"-panel-").concat(a),disabled:n},r.createElement("span",null,l),c&&r.createElement("button",{type:"button","aria-label":g||"remove",tabIndex:0,className:"".concat(T,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),v.onEdit("remove",{key:t,event:e})}(e,a)}},i||v.removeIcon||"\xd7"))})));function N(e){for(var t=a.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===M}))||0,r=t.length,o=0;ot?"left":"right"})})),R=(0,te.A)(T,2),z=R[0],N=R[1],I=Te(0,(function(e,t){!O&&g&&g({direction:e>t?"top":"bottom"})})),L=(0,te.A)(I,2),j=L[0],_=L[1],D=(0,r.useState)([0,0]),B=(0,te.A)(D,2),W=B[0],F=B[1],X=(0,r.useState)([0,0]),K=(0,te.A)(X,2),G=K[0],q=K[1],Y=(0,r.useState)([0,0]),U=(0,te.A)(Y,2),V=U[0],Q=U[1],Z=(0,r.useState)([0,0]),ne=(0,te.A)(Z,2),re=ne[0],oe=ne[1],ie=function(e){var t=(0,r.useRef)([]),n=(0,r.useState)({}),o=(0,te.A)(n,2)[1],i=(0,r.useRef)("function"==typeof e?e():e),a=Pe((function(){var e=i.current;t.current.forEach((function(t){e=t(e)})),t.current=[],i.current=e,o({})}));return[i.current,function(e){t.current.push(e),a()}]}(new Map),le=(0,te.A)(ie,2),ce=le[0],se=le[1],ue=function(e,t,n){return(0,r.useMemo)((function(){for(var n,r=new Map,o=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||Oe,i=o.left+o.width,a=0;aAe?Ae:e}O&&s?(ye=0,Ae=Math.max(0,pe-ge)):(ye=Math.min(0,ge-pe),Ae=0);var Se=(0,r.useRef)(null),xe=(0,r.useState)(),Ce=(0,te.A)(xe,2),Me=Ce[0],ze=Ce[1];function je(){ze(Date.now())}function _e(){Se.current&&clearTimeout(Se.current)}!function(e,t){var n=(0,r.useState)(),o=(0,te.A)(n,2),i=o[0],a=o[1],l=(0,r.useState)(0),c=(0,te.A)(l,2),s=c[0],u=c[1],d=(0,r.useState)(0),f=(0,te.A)(d,2),p=f[0],v=f[1],m=(0,r.useState)(),h=(0,te.A)(m,2),g=h[0],b=h[1],y=(0,r.useRef)(),A=(0,r.useRef)(),w=(0,r.useRef)(null);w.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,r=t.screenY;a({x:n,y:r}),window.clearInterval(y.current)},onTouchMove:function(e){if(i){e.preventDefault();var n=e.touches[0],r=n.screenX,o=n.screenY;a({x:r,y:o});var l=r-i.x,c=o-i.y;t(l,c);var d=Date.now();u(d),v(d-s),b({x:l,y:c})}},onTouchEnd:function(){if(i&&(a(null),b(null),g)){var e=g.x/p,n=g.y/p,r=Math.abs(e),o=Math.abs(n);if(Math.max(r,o)<.1)return;var l=e,c=n;y.current=window.setInterval((function(){Math.abs(l)<.01&&Math.abs(c)<.01?window.clearInterval(y.current):t(20*(l*=Re),20*(c*=Re))}),20)}},onWheel:function(e){var n=e.deltaX,r=e.deltaY,o=0,i=Math.abs(n),a=Math.abs(r);i===a?o="x"===A.current?n:r:i>a?(o=n,A.current="x"):(o=r,A.current="y"),t(-o,-o)&&e.preventDefault()}},r.useEffect((function(){function t(e){w.current.onTouchMove(e)}function n(e){w.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!1}),e.current.addEventListener("touchstart",(function(e){w.current.onTouchStart(e)}),{passive:!1}),e.current.addEventListener("wheel",(function(e){w.current.onWheel(e)})),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}}),[])}(k,(function(e,t){function n(e,t){e((function(e){return we(e+t)}))}return!!he&&(O?n(N,e):n(_,t),_e(),je(),!0)})),(0,r.useEffect)((function(){return _e(),Me&&(Se.current=setTimeout((function(){ze(0)}),100)),_e}),[Me]);var Be=function(e,t,n,o,i,a,l){var c,s,u,d=l.tabs,f=l.tabPosition,p=l.rtl;return["top","bottom"].includes(f)?(c="width",s=p?"right":"left",u=Math.abs(n)):(c="height",s="top",u=-n),(0,r.useMemo)((function(){if(!d.length)return[0,0];for(var n=d.length,r=n,o=0;ou+t){r=o-1;break}}for(var a=0,l=n-1;l>=0;l-=1)if((e.get(d[l].key)||Ne)[s]=r?[0,0]:[a,r]}),[e,t,o,i,a,u,f,d.map((function(e){return e.key})).join("_"),p])}(ue,ge,O?z:j,pe,ve,me,(0,ee.A)((0,ee.A)({},e),{},{tabs:w})),We=(0,te.A)(Be,2),Fe=We[0],Xe=We[1],Ke=(0,Ee.A)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=ue.get(e)||{width:0,height:0,left:0,right:0,top:0};if(O){var n=z;s?t.rightz+ge&&(n=t.right+t.width-ge):t.left<-z?n=-t.left:t.left+t.width>-z+ge&&(n=-(t.left+t.width-ge)),_(0),N(we(n))}else{var r=j;t.top<-j?r=-t.top:t.top+t.height>-j+ge&&(r=-(t.top+t.height-ge)),N(0),_(we(r))}})),Ge={};"top"===p||"bottom"===p?Ge[s?"marginRight":"marginLeft"]=v:Ge.marginTop=v;var qe=w.map((function(e,t){var n=e.key;return r.createElement(yr,{id:a,prefixCls:A,key:n,tab:e,style:0===t?void 0:Ge,closable:e.closable,editable:d,active:n===c,renderWrapper:m,removeAriaLabel:null==f?void 0:f.removeAriaLabel,onClick:function(e){h(n,e)},onFocus:function(){Ke(n),je(),k.current&&(s||(k.current.scrollLeft=0),k.current.scrollTop=0)}})})),Ye=function(){return se((function(){var e,t=new Map,n=null===(e=E.current)||void 0===e?void 0:e.getBoundingClientRect();return w.forEach((function(e){var r,o=e.key,i=null===(r=E.current)||void 0===r?void 0:r.querySelector('[data-node-key="'.concat(Le(o),'"]'));if(i){var a=function(e,t){var n=e.offsetWidth,r=e.offsetHeight,o=e.offsetTop,i=e.offsetLeft,a=e.getBoundingClientRect(),l=a.width,c=a.height,s=a.x,u=a.y;return Math.abs(l-n)<1?[l,c,s-t.x,u-t.y]:[n,r,i,o]}(i,n),l=(0,te.A)(a,4),c=l[0],s=l[1],u=l[2],d=l[3];t.set(o,{width:c,height:s,left:u,top:d})}})),t}))};(0,r.useEffect)((function(){Ye()}),[w.map((function(e){return e.key})).join("_")]);var Ue=Pe((function(){var e=Ar(S),t=Ar(x),n=Ar(C);F([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var r=Ar($);Q(r);var o=Ar(M);oe(o);var i=Ar(E);q([i[0]-r[0],i[1]-r[1]]),Ye()})),Ve=w.slice(0,Fe),Qe=w.slice(Xe+1),Ze=[].concat((0,H.A)(Ve),(0,H.A)(Qe)),Je=ue.get(c),et=$e({activeTabOffset:Je,horizontal:O,indicator:b,rtl:s}).style;(0,r.useEffect)((function(){Ke()}),[c,ye,Ae,Ie(Je),Ie(ue),O]),(0,r.useEffect)((function(){Ue()}),[s]);var tt,nt,rt,ot,it=!!Ze.length,at="".concat(A,"-nav-wrap");return O?s?(nt=z>0,tt=z!==Ae):(tt=z<0,nt=z!==ye):(rt=j<0,ot=j!==ye),r.createElement(ke,{onResize:Ue},r.createElement("div",{ref:(0,de.xK)(t,S),role:"tablist",className:i()("".concat(A,"-nav"),n),style:o,onKeyDown:function(){je()}},r.createElement(De,{ref:x,position:"left",extra:u,prefixCls:A}),r.createElement(ke,{onResize:Ue},r.createElement("div",{className:i()(at,(0,J.A)((0,J.A)((0,J.A)((0,J.A)({},"".concat(at,"-ping-left"),tt),"".concat(at,"-ping-right"),nt),"".concat(at,"-ping-top"),rt),"".concat(at,"-ping-bottom"),ot)),ref:k},r.createElement(ke,{onResize:Ue},r.createElement("div",{ref:E,className:"".concat(A,"-nav-list"),style:{transform:"translate(".concat(z,"px, ").concat(j,"px)"),transition:Me?"none":void 0}},qe,r.createElement(He,{ref:$,prefixCls:A,locale:f,editable:d,style:(0,ee.A)((0,ee.A)({},0===qe.length?void 0:Ge),{},{visibility:it?"hidden":null})}),r.createElement("div",{className:i()("".concat(A,"-ink-bar"),(0,J.A)({},"".concat(A,"-ink-bar-animated"),l.inkBar)),style:et}))))),r.createElement(br,(0,P.A)({},e,{removeAriaLabel:null==f?void 0:f.removeAriaLabel,ref:M,prefixCls:A,tabs:Ze,className:!it&&be,tabMoving:!!Me})),r.createElement(De,{ref:C,position:"right",extra:u,prefixCls:A})))}));const xr=Sr;var Cr=r.forwardRef((function(e,t){var n=e.prefixCls,o=e.className,a=e.style,l=e.id,c=e.active,s=e.tabKey,u=e.children;return r.createElement("div",{id:l&&"".concat(l,"-panel-").concat(s),role:"tabpanel",tabIndex:c?0:-1,"aria-labelledby":l&&"".concat(l,"-tab-").concat(s),"aria-hidden":!c,style:a,className:i()(n,c&&"".concat(n,"-active"),o),ref:t},u)}));const kr=Cr;var Er=["renderTabBar"],Mr=["label","key"];const $r=function(e){var t=e.renderTabBar,n=(0,re.A)(e,Er),o=r.useContext(ae).tabs;return t?t((0,ee.A)((0,ee.A)({},n),{},{panes:o.map((function(e){var t=e.label,n=e.key,o=(0,re.A)(e,Mr);return r.createElement(kr,(0,P.A)({tab:t,key:n,tabKey:n},o))}))}),xr):r.createElement(xr,n)};var Or=["key","forceRender","style","className","destroyInactiveTabPane"];const Tr=function(e){var t=e.id,n=e.activeKey,o=e.animated,a=e.tabPosition,l=e.destroyInactiveTabPane,c=r.useContext(ae),s=c.prefixCls,u=c.tabs,d=o.tabPane,f="".concat(s,"-tabpane");return r.createElement("div",{className:i()("".concat(s,"-content-holder"))},r.createElement("div",{className:i()("".concat(s,"-content"),"".concat(s,"-content-").concat(a),(0,J.A)({},"".concat(s,"-content-animated"),d))},u.map((function(e){var a=e.key,c=e.forceRender,s=e.style,u=e.className,p=e.destroyInactiveTabPane,v=(0,re.A)(e,Or),m=a===n;return r.createElement(Xe.Ay,(0,P.A)({key:a,visible:m,forceRender:c,removeOnLeave:!(!l&&!p),leavedClassName:"".concat(f,"-hidden")},o.tabPaneMotion),(function(e,n){var o=e.style,l=e.className;return r.createElement(kr,(0,P.A)({},v,{prefixCls:f,id:t,tabKey:a,animated:d,active:m,style:(0,ee.A)((0,ee.A)({},s),o),className:i()(u,l),ref:n}))}))}))))};var Rr=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],zr=0;const Pr=r.forwardRef((function(e,t){var n=e.id,o=e.prefixCls,a=void 0===o?"rc-tabs":o,l=e.className,c=e.items,s=e.direction,u=e.activeKey,d=e.defaultActiveKey,f=e.editable,p=e.animated,v=e.tabPosition,m=void 0===v?"top":v,h=e.tabBarGutter,g=e.tabBarStyle,b=e.tabBarExtraContent,y=e.locale,A=e.moreIcon,w=e.moreTransitionName,S=e.destroyInactiveTabPane,x=e.renderTabBar,C=e.onChange,k=e.onTabClick,E=e.onTabScroll,M=e.getPopupContainer,$=e.popupClassName,O=e.indicator,T=(0,re.A)(e,Rr),R=r.useMemo((function(){return(c||[]).filter((function(e){return e&&"object"===(0,ne.A)(e)&&"key"in e}))}),[c]),z="rtl"===s,N=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(e=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!1}:(0,ee.A)({inkBar:!0},"object"===(0,ne.A)(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&(e.tabPane=!1),e}(p),I=(0,r.useState)(!1),L=(0,te.A)(I,2),j=L[0],_=L[1];(0,r.useEffect)((function(){_(ie())}),[]);var H=(0,oe.A)((function(){var e;return null===(e=R[0])||void 0===e?void 0:e.key}),{value:u,defaultValue:d}),D=(0,te.A)(H,2),B=D[0],W=D[1],F=(0,r.useState)((function(){return R.findIndex((function(e){return e.key===B}))})),X=(0,te.A)(F,2),K=X[0],G=X[1];(0,r.useEffect)((function(){var e,t=R.findIndex((function(e){return e.key===B}));-1===t&&(t=Math.max(0,Math.min(K,R.length-1)),W(null===(e=R[t])||void 0===e?void 0:e.key));G(t)}),[R.map((function(e){return e.key})).join("_"),B,K]);var q=(0,oe.A)(null,{value:n}),Y=(0,te.A)(q,2),U=Y[0],V=Y[1];(0,r.useEffect)((function(){n||(V("rc-tabs-".concat(zr)),zr+=1)}),[]);var Q={id:U,activeKey:B,animated:N,tabPosition:m,rtl:z,mobile:j},Z=(0,ee.A)((0,ee.A)({},Q),{},{editable:f,locale:y,moreIcon:A,moreTransitionName:w,tabBarGutter:h,onTabClick:function(e,t){null==k||k(e,t);var n=e!==B;W(e),n&&(null==C||C(e))},onTabScroll:E,extra:b,style:g,panes:null,getPopupContainer:M,popupClassName:$,indicator:O});return r.createElement(ae.Provider,{value:{tabs:R,prefixCls:a}},r.createElement("div",(0,P.A)({ref:t,id:n,className:i()(a,"".concat(a,"-").concat(m),(0,J.A)((0,J.A)((0,J.A)({},"".concat(a,"-mobile"),j),"".concat(a,"-editable"),f),"".concat(a,"-rtl"),z),l)},T),r.createElement($r,(0,P.A)({},Z,{renderTabBar:x})),r.createElement(Tr,(0,P.A)({destroyInactiveTabPane:S},Q,{animated:N}))))}));var Nr=n(934),Ir=n(3723);const Lr={motionAppear:!1,motionEnter:!0,motionLeave:!0};var jr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=Dr[t];return[(0,Hr.b)(r,o,i,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},Wr=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[Br(e,"slide-up"),Br(e,"slide-down")]]},Fr=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:i,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${(0,f.zA)(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:(0,f.zA)(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${(0,f.zA)(e.borderRadiusLG)} ${(0,f.zA)(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${(0,f.zA)(e.borderRadiusLG)} ${(0,f.zA)(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:(0,f.zA)(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,f.zA)(e.borderRadiusLG)} 0 0 ${(0,f.zA)(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,f.zA)(e.borderRadiusLG)} ${(0,f.zA)(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},Xr=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},(0,_r.dF)(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${(0,f.zA)(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},_r.L9),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${(0,f.zA)(e.paddingXXS)} ${(0,f.zA)(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Kr=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:a,calc:l}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${(0,f.zA)(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},\n right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,\n > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:l(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:(0,f.zA)(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${(0,f.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${(0,f.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},Gr=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:o,horizontalItemPaddingLG:i}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${(0,f.zA)(e.borderRadius)} ${(0,f.zA)(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${(0,f.zA)(e.borderRadius)} ${(0,f.zA)(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${(0,f.zA)(e.borderRadius)} ${(0,f.zA)(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${(0,f.zA)(e.borderRadius)} 0 0 ${(0,f.zA)(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},qr=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:l,itemColor:c}=e,s=`${t}-tab`;return{[s]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:c,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},(0,_r.K8)(e)),"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${s}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${s}-active ${s}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${s}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${s}-disabled ${s}-btn, &${s}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${s}-remove ${o}`]:{margin:0},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${s} + ${s}`]:{margin:{_skip_check_:!0,value:i}}}},Yr=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:i}=e,a=`${t}-rtl`;return{[a]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:(0,f.zA)(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:(0,f.zA)(e.marginXS)},marginLeft:{_skip_check_:!0,value:(0,f.zA)(i(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Ur=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,_r.dF)(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:o},padding:`0 ${(0,f.zA)(e.paddingXS)}`,background:"transparent",border:`${(0,f.zA)(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${(0,f.zA)(e.borderRadiusLG)} ${(0,f.zA)(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a}},(0,_r.K8)(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),qr(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},Vr=(0,p.OF)("Tabs",(e=>{const t=(0,v.h1)(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${(0,f.zA)(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${(0,f.zA)(e.horizontalItemGutter)}`});return[Gr(t),Yr(t),Kr(t),Xr(t),Fr(t),Ur(t),Wr(t)]}),(e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${1.5*e.paddingXXS}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${1.5*e.paddingXXS}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}}));var Qr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var t,n,o,a,c,s,d,f;const{type:p,className:v,rootClassName:m,size:h,onEdit:g,hideAdd:b,centered:y,addIcon:A,removeIcon:w,moreIcon:S,popupClassName:x,children:C,items:k,animated:E,style:M,indicatorSize:$,indicator:O}=e,T=Qr(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:R}=T,{direction:z,tabs:P,getPrefixCls:N,getPopupContainer:I}=r.useContext(l.QO),L=N("tabs",R),j=(0,Nr.A)(L),[_,H,D]=Vr(L,j);let B;"editable-card"===p&&(B={onEdit:(e,t)=>{let{key:n,event:r}=t;null==g||g("add"===e?r:n,e)},removeIcon:null!==(t=null!=w?w:null==P?void 0:P.removeIcon)&&void 0!==t?t:r.createElement(G.A,null),addIcon:(null!=A?A:null==P?void 0:P.addIcon)||r.createElement(Z,null),showAdd:!0!==b});const W=N();const F=u(h),X=function(e,t){return e||function(e){return e.filter((e=>e))}(ce(t).map((e=>{if(r.isValidElement(e)){const{key:t,props:n}=e,r=n||{},{tab:o}=r,i=jr(r,["tab"]);return Object.assign(Object.assign({key:String(t)},i),{label:o})}return null})))}(k,C),K=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{inkBar:!0,tabPane:!1};return t=!1===n?{inkBar:!1,tabPane:!1}:!0===n?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"==typeof n?n:{}),t.tabPane&&(t.tabPaneMotion=Object.assign(Object.assign({},Lr),{motionName:(0,Ir.b)(e,"switch")})),t}(L,E),q=Object.assign(Object.assign({},null==P?void 0:P.style),M),Y={align:null!==(n=null==O?void 0:O.align)&&void 0!==n?n:null===(o=null==P?void 0:P.indicator)||void 0===o?void 0:o.align,size:null!==(d=null!==(c=null!==(a=null==O?void 0:O.size)&&void 0!==a?a:$)&&void 0!==c?c:null===(s=null==P?void 0:P.indicator)||void 0===s?void 0:s.size)&&void 0!==d?d:null==P?void 0:P.indicatorSize};return _(r.createElement(Pr,Object.assign({direction:z,getPopupContainer:I,moreTransitionName:`${W}-slide-up`},T,{items:X,className:i()({[`${L}-${F}`]:F,[`${L}-card`]:["card","editable-card"].includes(p),[`${L}-editable-card`]:"editable-card"===p,[`${L}-centered`]:y},null==P?void 0:P.className,v,m,H,D,j),popupClassName:i()(x,H,D,j),style:q,editable:B,moreIcon:null!==(f=null!=S?S:null==P?void 0:P.moreIcon)&&void 0!==f?f:r.createElement(U,null),prefixCls:L,animated:K,indicator:Y})))};Zr.TabPane=()=>null;const Jr=Zr;var eo=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var{prefixCls:t,className:n,hoverable:o=!0}=e,a=eo(e,["prefixCls","className","hoverable"]);const{getPrefixCls:c}=r.useContext(l.QO),s=c("card",t),u=i()(`${s}-grid`,n,{[`${s}-grid-hoverable`]:o});return r.createElement("div",Object.assign({},a,{className:u}))},no=e=>{const{antCls:t,componentCls:n,headerHeight:r,cardPaddingBase:o,tabsMarginBottom:i}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${(0,f.zA)(o)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${(0,f.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${(0,f.zA)(e.borderRadiusLG)} ${(0,f.zA)(e.borderRadiusLG)} 0 0`},(0,_r.t6)()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},_r.L9),{[`\n > ${n}-typography,\n > ${n}-typography-edit-content\n `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:i,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${(0,f.zA)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},ro=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:o}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`\n ${(0,f.zA)(o)} 0 0 0 ${n},\n 0 ${(0,f.zA)(o)} 0 0 ${n},\n ${(0,f.zA)(o)} ${(0,f.zA)(o)} 0 0 ${n},\n ${(0,f.zA)(o)} 0 0 0 ${n} inset,\n 0 ${(0,f.zA)(o)} 0 0 ${n} inset;\n `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},oo=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:o,colorBorderSecondary:i,actionsBg:a}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:a,borderTop:`${(0,f.zA)(e.lineWidth)} ${e.lineType} ${i}`,display:"flex",borderRadius:`0 0 ${(0,f.zA)(e.borderRadiusLG)} ${(0,f.zA)(e.borderRadiusLG)}`},(0,_r.t6)()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:(0,f.zA)(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:o,lineHeight:(0,f.zA)(e.calc(o).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${(0,f.zA)(e.lineWidth)} ${e.lineType} ${i}`}}})},io=e=>Object.assign(Object.assign({margin:`${(0,f.zA)(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},(0,_r.t6)()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},_r.L9),"&-description":{color:e.colorTextDescription}}),ao=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:r}=e;return{[`${t}-head`]:{padding:`0 ${(0,f.zA)(n)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${(0,f.zA)(e.padding)} ${(0,f.zA)(n)}`}}},lo=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},co=e=>{const{antCls:t,componentCls:n,cardShadow:r,cardHeadPadding:o,colorBorderSecondary:i,boxShadowTertiary:a,cardPaddingBase:l,extraColor:c}=e;return{[n]:Object.assign(Object.assign({},(0,_r.dF)(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${n}-bordered)`]:{boxShadow:a},[`${n}-head`]:no(e),[`${n}-extra`]:{marginInlineStart:"auto",color:c,fontWeight:"normal",fontSize:e.fontSize},[`${n}-body`]:Object.assign({padding:l,borderRadius:`0 0 ${(0,f.zA)(e.borderRadiusLG)} ${(0,f.zA)(e.borderRadiusLG)}`},(0,_r.t6)()),[`${n}-grid`]:ro(e),[`${n}-cover`]:{"> *":{display:"block",width:"100%"},[`img, img + ${t}-image-mask`]:{borderRadius:`${(0,f.zA)(e.borderRadiusLG)} ${(0,f.zA)(e.borderRadiusLG)} 0 0`}},[`${n}-actions`]:oo(e),[`${n}-meta`]:io(e)}),[`${n}-bordered`]:{border:`${(0,f.zA)(e.lineWidth)} ${e.lineType} ${i}`,[`${n}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${n}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:r}},[`${n}-contain-grid`]:{borderRadius:`${(0,f.zA)(e.borderRadiusLG)} ${(0,f.zA)(e.borderRadiusLG)} 0 0 `,[`${n}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${n}-loading) ${n}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${n}-contain-tabs`]:{[`> ${n}-head`]:{minHeight:0,[`${n}-head-title, ${n}-extra`]:{paddingTop:o}}},[`${n}-type-inner`]:ao(e),[`${n}-loading`]:lo(e),[`${n}-rtl`]:{direction:"rtl"}}},so=e=>{const{componentCls:t,cardPaddingSM:n,headerHeightSM:r,headerFontSizeSM:o}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:r,padding:`0 ${(0,f.zA)(n)}`,fontSize:o,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},uo=(0,p.OF)("Card",(e=>{const t=(0,v.h1)(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[co(t),so(t)]}),(e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+2*e.padding,headerHeightSM:e.fontSize*e.lineHeight+2*e.paddingXS,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText})));var fo=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{actionClasses:t,actions:n=[],actionStyle:o}=e;return r.createElement("ul",{className:t,style:o},n.map(((e,t)=>{const o=`action-${t}`;return r.createElement("li",{style:{width:100/n.length+"%"},key:o},r.createElement("span",null,e))})))},vo=r.forwardRef(((e,t)=>{const{prefixCls:n,className:o,rootClassName:c,style:s,extra:d,headStyle:f={},bodyStyle:p={},title:v,loading:m,bordered:h=!0,size:g,type:b,cover:y,actions:A,tabList:w,children:S,activeTabKey:x,defaultActiveTabKey:C,tabBarExtraContent:k,hoverable:E,tabProps:M={},classNames:$,styles:O}=e,T=fo(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:R,direction:z,card:P}=r.useContext(l.QO);const N=e=>{var t;return i()(null===(t=null==P?void 0:P.classNames)||void 0===t?void 0:t[e],null==$?void 0:$[e])},I=e=>{var t;return Object.assign(Object.assign({},null===(t=null==P?void 0:P.styles)||void 0===t?void 0:t[e]),null==O?void 0:O[e])},L=r.useMemo((()=>{let e=!1;return r.Children.forEach(S,(t=>{t&&t.type&&t.type===to&&(e=!0)})),e}),[S]),j=R("card",n),[_,H,D]=uo(j),B=r.createElement(K,{loading:!0,active:!0,paragraph:{rows:4},title:!1},S),W=void 0!==x,F=Object.assign(Object.assign({},M),{[W?"activeKey":"defaultActiveKey"]:W?x:C,tabBarExtraContent:k});let X;const G=u(g),q=G&&"default"!==G?G:"large",Y=w?r.createElement(Jr,Object.assign({size:q},F,{className:`${j}-head-tabs`,onChange:t=>{var n;null===(n=e.onTabChange)||void 0===n||n.call(e,t)},items:w.map((e=>{var{tab:t}=e,n=fo(e,["tab"]);return Object.assign({label:t},n)}))})):null;if(v||d||Y){const e=i()(`${j}-head`,N("header")),t=i()(`${j}-head-title`,N("title")),n=i()(`${j}-extra`,N("extra")),o=Object.assign(Object.assign({},f),I("header"));X=r.createElement("div",{className:e,style:o},r.createElement("div",{className:`${j}-head-wrapper`},v&&r.createElement("div",{className:t,style:I("title")},v),d&&r.createElement("div",{className:n,style:I("extra")},d)),Y)}const U=i()(`${j}-cover`,N("cover")),V=y?r.createElement("div",{className:U,style:I("cover")},y):null,Q=i()(`${j}-body`,N("body")),Z=Object.assign(Object.assign({},p),I("body")),J=r.createElement("div",{className:Q,style:Z},m?B:S),ee=i()(`${j}-actions`,N("actions")),te=A&&A.length?r.createElement(po,{actionClasses:ee,actionStyle:I("actions"),actions:A}):null,ne=(0,a.A)(T,["onTabChange"]),re=i()(j,null==P?void 0:P.className,{[`${j}-loading`]:m,[`${j}-bordered`]:h,[`${j}-hoverable`]:E,[`${j}-contain-grid`]:L,[`${j}-contain-tabs`]:w&&w.length,[`${j}-${G}`]:G,[`${j}-type-${b}`]:!!b,[`${j}-rtl`]:"rtl"===z},o,c,H,D),oe=Object.assign(Object.assign({},null==P?void 0:P.style),s);return _(r.createElement("div",Object.assign({ref:t},ne,{className:re,style:oe}),X,V,J,te))}));var mo=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{const{prefixCls:t,className:n,avatar:o,title:a,description:c}=e,s=mo(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:u}=r.useContext(l.QO),d=u("card",t),f=i()(`${d}-meta`,n),p=o?r.createElement("div",{className:`${d}-meta-avatar`},o):null,v=a?r.createElement("div",{className:`${d}-meta-title`},a):null,m=c?r.createElement("div",{className:`${d}-meta-description`},c):null,h=v||m?r.createElement("div",{className:`${d}-meta-detail`},v,m):null;return r.createElement("div",Object.assign({},s,{className:f}),p,h)},go=vo;go.Grid=to,go.Meta=ho;const bo=go},3517:(e,t,n)=>{"use strict";n.d(t,{A:()=>ge});var r=n(6540),o=n(8168),i=n(9379),a=n(3029),l=n(2901),c=n(6822),s=n(2176),u=n(3954),d=n(5501),f=n(4467),p=n(2284),v=n(45);const m={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0};function h(e,t,n){var r=(n||{}).atBegin;return function(e,t,n){var r,o=n||{},i=o.noTrailing,a=void 0!==i&&i,l=o.noLeading,c=void 0!==l&&l,s=o.debounceMode,u=void 0===s?void 0:s,d=!1,f=0;function p(){r&&clearTimeout(r)}function v(){for(var n=arguments.length,o=new Array(n),i=0;ie?c?(f=Date.now(),a||(r=setTimeout(u?m:v,e))):v():!0!==a&&(r=setTimeout(u?m:v,void 0===u?e-s:e)))}return v.cancel=function(e){var t=(e||{}).upcomingOnly,n=void 0!==t&&t;p(),d=!n},v}(e,t,{debounceMode:!1!==(void 0!==r&&r)})}var g=n(6942),b=n.n(g);const y={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(e){return r.createElement("ul",{style:{display:"block"}},e)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(e){return r.createElement("button",null,e+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0,asNavFor:null};function A(e,t,n){return Math.max(t,Math.min(e,n))}var w=function(e){["onTouchStart","onTouchMove","onWheel"].includes(e._reactName)||e.preventDefault()},S=function(e){for(var t=[],n=x(e),r=C(e),o=n;o0?1:0):0},E=function(e){return e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow},M=function(e){return e&&e.offsetWidth||0},$=function(e){return e&&e.offsetHeight||0},O=function(e){var t,n,r,o,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t=e.startX-e.curX,n=e.startY-e.curY,r=Math.atan2(n,t),(o=Math.round(180*r/Math.PI))<0&&(o=360-Math.abs(o)),o<=45&&o>=0||o<=360&&o>=315?"left":o>=135&&o<=225?"right":!0===i?o>=35&&o<=135?"up":"down":"vertical"},T=function(e){var t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1),t},R=function(e,t){var n={};return t.forEach((function(t){return n[t]=e[t]})),n},z=function(e,t){var n=function(e){for(var t=e.infinite?2*e.slideCount:e.slideCount,n=e.infinite?-1*e.slidesToShow:0,r=e.infinite?-1*e.slidesToShow:0,o=[];nn[n.length-1])t=n[n.length-1];else for(var o in n){if(t-1*e.swipeLeft)return n=r,!1}else if(r.offsetLeft-t+M(r)/2>-1*e.swipeLeft)return n=r,!1;return!0})),!n)return 0;var i=!0===e.rtl?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(n.dataset.index-i)||1}return e.slidesToScroll},N=function(e,t){return t.reduce((function(t,n){return t&&e.hasOwnProperty(n)}),!0)?null:console.error("Keys Missing:",e)},I=function(e){var t,n;(N(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]),e.vertical)?n=(e.unslick?e.slideCount:e.slideCount+2*e.slidesToShow)*e.slideHeight:t=D(e)*e.slideWidth;var r={opacity:1,transition:"",WebkitTransition:""};if(e.useTransform){var o=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",a=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",l=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)";r=(0,i.A)((0,i.A)({},r),{},{WebkitTransform:o,transform:a,msTransform:l})}else e.vertical?r.top=e.left:r.left=e.left;return e.fade&&(r={opacity:1}),t&&(r.width=t),n&&(r.height=n),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?r.marginTop=e.left+"px":r.marginLeft=e.left+"px"),r},L=function(e){N(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var t=I(e);return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t},j=function(e){if(e.unslick)return 0;N(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var t,n,r=e.slideIndex,o=e.trackRef,i=e.infinite,a=e.centerMode,l=e.slideCount,c=e.slidesToShow,s=e.slidesToScroll,u=e.slideWidth,d=e.listWidth,f=e.variableWidth,p=e.slideHeight,v=e.fade,m=e.vertical;if(v||1===e.slideCount)return 0;var h=0;if(i?(h=-_(e),l%s!=0&&r+s>l&&(h=-(r>l?c-(r-l):l%s)),a&&(h+=parseInt(c/2))):(l%s!=0&&r+s>l&&(h=c-l%s),a&&(h=parseInt(c/2))),t=m?r*p*-1+h*p:r*u*-1+h*u,!0===f){var g,b=o&&o.node;if(g=r+_(e),t=(n=b&&b.childNodes[g])?-1*n.offsetLeft:0,!0===a){g=i?r+_(e):r,n=b&&b.children[g],t=0;for(var y=0;ye.currentSlide?e.targetSlide>e.currentSlide+W(e)?"left":"right":e.targetSlide0&&(i+=1),r&&t%2==0&&(i+=1),i}return r?0:t-1},F=function(e){var t=e.slidesToShow,n=e.centerMode,r=e.rtl,o=e.centerPadding;if(n){var i=(t-1)/2+1;return parseInt(o)>0&&(i+=1),r||t%2!=0||(i+=1),i}return r?t-1:0},X=function(){return!("undefined"==typeof window||!window.document||!window.document.createElement)},K=Object.keys(y);var G=function(e){var t,n,r,o,i;return r=(i=e.rtl?e.slideCount-1-e.index:e.index)<0||i>=e.slideCount,e.centerMode?(o=Math.floor(e.slidesToShow/2),n=(i-e.currentSlide)%e.slideCount==0,i>e.currentSlide-o-1&&i<=e.currentSlide+o&&(t=!0)):t=e.currentSlide<=i&&i=e.slideCount?e.targetSlide-e.slideCount:e.targetSlide)}},q=function(e,t){return e.key+"-"+t},Y=function(e){var t,n=[],o=[],a=[],l=r.Children.count(e.children),c=x(e),s=C(e);return r.Children.forEach(e.children,(function(u,d){var f,p={message:"children",index:d,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};f=!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(d)>=0?u:r.createElement("div",null);var v=function(e){var t={};return void 0!==e.variableWidth&&!1!==e.variableWidth||(t.width=e.slideWidth),e.fade&&(t.position="relative",e.vertical&&e.slideHeight?t.top=-e.index*parseInt(e.slideHeight):t.left=-e.index*parseInt(e.slideWidth),t.opacity=e.currentSlide===e.index?1:0,t.zIndex=e.currentSlide===e.index?999:998,e.useCSS&&(t.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase)),t}((0,i.A)((0,i.A)({},e),{},{index:d})),m=f.props.className||"",h=G((0,i.A)((0,i.A)({},e),{},{index:d}));if(n.push(r.cloneElement(f,{key:"original"+q(f,d),"data-index":d,className:b()(h,m),tabIndex:"-1","aria-hidden":!h["slick-active"],style:(0,i.A)((0,i.A)({outline:"none"},f.props.style||{}),v),onClick:function(t){f.props&&f.props.onClick&&f.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(p)}})),e.infinite&&l>1&&!1===e.fade&&!e.unslick){var g=l-d;g<=_(e)&&((t=-g)>=c&&(f=u),h=G((0,i.A)((0,i.A)({},e),{},{index:t})),o.push(r.cloneElement(f,{key:"precloned"+q(f,t),"data-index":t,tabIndex:"-1",className:b()(h,m),"aria-hidden":!h["slick-active"],style:(0,i.A)((0,i.A)({},f.props.style||{}),v),onClick:function(t){f.props&&f.props.onClick&&f.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(p)}}))),(t=l+d)=w&&d<=g:d===w}),x={message:"dots",index:m,slidesToScroll:c,currentSlide:d},C=this.clickHandler.bind(this,x);v=v.concat(r.createElement("li",{key:m,className:S},r.cloneElement(this.props.customPaging(m),{onClick:C})))}return r.cloneElement(this.props.appendDots(v),(0,i.A)({className:this.props.dotsClass},p))}}])}(r.PureComponent);function Q(e,t,n){return t=(0,u.A)(t),(0,c.A)(e,(0,s.A)()?Reflect.construct(t,n||[],(0,u.A)(e).constructor):t.apply(e,n))}var Z=function(e){function t(){return(0,a.A)(this,t),Q(this,t,arguments)}return(0,d.A)(t,e),(0,l.A)(t,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-prev":!0},t=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(0===this.props.currentSlide||this.props.slideCount<=this.props.slidesToShow)&&(e["slick-disabled"]=!0,t=null);var n={key:"0","data-role":"none",className:b()(e),style:{display:"block"},onClick:t},a={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.prevArrow?r.cloneElement(this.props.prevArrow,(0,i.A)((0,i.A)({},n),a)):r.createElement("button",(0,o.A)({key:"0",type:"button"},n)," ","Previous")}}])}(r.PureComponent),J=function(e){function t(){return(0,a.A)(this,t),Q(this,t,arguments)}return(0,d.A)(t,e),(0,l.A)(t,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-next":!0},t=this.clickHandler.bind(this,{message:"next"});T(this.props)||(e["slick-disabled"]=!0,t=null);var n={key:"1","data-role":"none",className:b()(e),style:{display:"block"},onClick:t},a={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.nextArrow?r.cloneElement(this.props.nextArrow,(0,i.A)((0,i.A)({},n),a)):r.createElement("button",(0,o.A)({key:"1",type:"button"},n)," ","Next")}}])}(r.PureComponent),ee=n(3591),te=["animating"];var ne=function(e){function t(e){var n,l,d,p;(0,a.A)(this,t),l=this,d=t,p=[e],d=(0,u.A)(d),n=(0,c.A)(l,(0,s.A)()?Reflect.construct(d,p||[],(0,u.A)(l).constructor):d.apply(l,p)),(0,f.A)(n,"listRefHandler",(function(e){return n.list=e})),(0,f.A)(n,"trackRefHandler",(function(e){return n.track=e})),(0,f.A)(n,"adaptHeight",(function(){if(n.props.adaptiveHeight&&n.list){var e=n.list.querySelector('[data-index="'.concat(n.state.currentSlide,'"]'));n.list.style.height=$(e)+"px"}})),(0,f.A)(n,"componentDidMount",(function(){if(n.props.onInit&&n.props.onInit(),n.props.lazyLoad){var e=S((0,i.A)((0,i.A)({},n.props),n.state));e.length>0&&(n.setState((function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}})),n.props.onLazyLoad&&n.props.onLazyLoad(e))}var t=(0,i.A)({listRef:n.list,trackRef:n.track},n.props);n.updateState(t,!0,(function(){n.adaptHeight(),n.props.autoplay&&n.autoPlay("playing")})),"progressive"===n.props.lazyLoad&&(n.lazyLoadTimer=setInterval(n.progressiveLazyLoad,1e3)),n.ro=new ee.A((function(){n.state.animating?(n.onWindowResized(!1),n.callbackTimers.push(setTimeout((function(){return n.onWindowResized()}),n.props.speed))):n.onWindowResized()})),n.ro.observe(n.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),(function(e){e.onfocus=n.props.pauseOnFocus?n.onSlideFocus:null,e.onblur=n.props.pauseOnFocus?n.onSlideBlur:null})),window.addEventListener?window.addEventListener("resize",n.onWindowResized):window.attachEvent("onresize",n.onWindowResized)})),(0,f.A)(n,"componentWillUnmount",(function(){n.animationEndCallback&&clearTimeout(n.animationEndCallback),n.lazyLoadTimer&&clearInterval(n.lazyLoadTimer),n.callbackTimers.length&&(n.callbackTimers.forEach((function(e){return clearTimeout(e)})),n.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",n.onWindowResized):window.detachEvent("onresize",n.onWindowResized),n.autoplayTimer&&clearInterval(n.autoplayTimer),n.ro.disconnect()})),(0,f.A)(n,"componentDidUpdate",(function(e){if(n.checkImagesLoad(),n.props.onReInit&&n.props.onReInit(),n.props.lazyLoad){var t=S((0,i.A)((0,i.A)({},n.props),n.state));t.length>0&&(n.setState((function(e){return{lazyLoadedList:e.lazyLoadedList.concat(t)}})),n.props.onLazyLoad&&n.props.onLazyLoad(t))}n.adaptHeight();var o=(0,i.A)((0,i.A)({listRef:n.list,trackRef:n.track},n.props),n.state),a=n.didPropsChange(e);a&&n.updateState(o,a,(function(){n.state.currentSlide>=r.Children.count(n.props.children)&&n.changeSlide({message:"index",index:r.Children.count(n.props.children)-n.props.slidesToShow,currentSlide:n.state.currentSlide}),e.autoplay===n.props.autoplay&&e.autoplaySpeed===n.props.autoplaySpeed||(!e.autoplay&&n.props.autoplay?n.autoPlay("playing"):n.props.autoplay?n.autoPlay("update"):n.pause("paused"))}))})),(0,f.A)(n,"onWindowResized",(function(e){n.debouncedResize&&n.debouncedResize.cancel(),n.debouncedResize=h(50,(function(){return n.resizeWindow(e)})),n.debouncedResize()})),(0,f.A)(n,"resizeWindow",(function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(Boolean(n.track&&n.track.node)){var t=(0,i.A)((0,i.A)({listRef:n.list,trackRef:n.track},n.props),n.state);n.updateState(t,e,(function(){n.props.autoplay?n.autoPlay("update"):n.pause("paused")})),n.setState({animating:!1}),clearTimeout(n.animationEndCallback),delete n.animationEndCallback}})),(0,f.A)(n,"updateState",(function(e,t,o){var a=function(e){var t,n=r.Children.count(e.children),o=e.listRef,a=Math.ceil(M(o)),l=e.trackRef&&e.trackRef.node,c=Math.ceil(M(l));if(e.vertical)t=a;else{var s=e.centerMode&&2*parseInt(e.centerPadding);"string"==typeof e.centerPadding&&"%"===e.centerPadding.slice(-1)&&(s*=a/100),t=Math.ceil((a-s)/e.slidesToShow)}var u=o&&$(o.querySelector('[data-index="0"]')),d=u*e.slidesToShow,f=void 0===e.currentSlide?e.initialSlide:e.currentSlide;e.rtl&&void 0===e.currentSlide&&(f=n-1-e.initialSlide);var p=e.lazyLoadedList||[],v=S((0,i.A)((0,i.A)({},e),{},{currentSlide:f,lazyLoadedList:p})),m={slideCount:n,slideWidth:t,listWidth:a,trackWidth:c,currentSlide:f,slideHeight:u,listHeight:d,lazyLoadedList:p=p.concat(v)};return null===e.autoplaying&&e.autoplay&&(m.autoplaying="playing"),m}(e);e=(0,i.A)((0,i.A)((0,i.A)({},e),a),{},{slideIndex:a.currentSlide});var l=j(e);e=(0,i.A)((0,i.A)({},e),{},{left:l});var c=I(e);(t||r.Children.count(n.props.children)!==r.Children.count(e.children))&&(a.trackStyle=c),n.setState(a,o)})),(0,f.A)(n,"ssrInit",(function(){if(n.props.variableWidth){var e=0,t=0,o=[],a=_((0,i.A)((0,i.A)((0,i.A)({},n.props),n.state),{},{slideCount:n.props.children.length})),l=H((0,i.A)((0,i.A)((0,i.A)({},n.props),n.state),{},{slideCount:n.props.children.length}));n.props.children.forEach((function(t){o.push(t.props.style.width),e+=t.props.style.width}));for(var c=0;c=t&&n.onWindowResized()};if(e.onclick){var i=e.onclick;e.onclick=function(t){i(t),e.parentNode.focus()}}else e.onclick=function(){return e.parentNode.focus()};e.onload||(n.props.lazyLoad?e.onload=function(){n.adaptHeight(),n.callbackTimers.push(setTimeout(n.onWindowResized,n.props.speed))}:(e.onload=o,e.onerror=function(){o(),n.props.onLazyLoadError&&n.props.onLazyLoadError()}))}))})),(0,f.A)(n,"progressiveLazyLoad",(function(){for(var e=[],t=(0,i.A)((0,i.A)({},n.props),n.state),r=n.state.currentSlide;r=-_(t);o--)if(n.state.lazyLoadedList.indexOf(o)<0){e.push(o);break}e.length>0?(n.setState((function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}})),n.props.onLazyLoad&&n.props.onLazyLoad(e)):n.lazyLoadTimer&&(clearInterval(n.lazyLoadTimer),delete n.lazyLoadTimer)})),(0,f.A)(n,"slideHandler",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=n.props,o=r.asNavFor,a=r.beforeChange,l=r.onLazyLoad,c=r.speed,s=r.afterChange,u=n.state.currentSlide,d=function(e){var t=e.waitForAnimate,n=e.animating,r=e.fade,o=e.infinite,a=e.index,l=e.slideCount,c=e.lazyLoad,s=e.currentSlide,u=e.centerMode,d=e.slidesToScroll,f=e.slidesToShow,p=e.useCSS,v=e.lazyLoadedList;if(t&&n)return{};var m,h,g,b=a,y={},w={},x=o?a:A(a,0,l-1);if(r){if(!o&&(a<0||a>=l))return{};a<0?b=a+l:a>=l&&(b=a-l),c&&v.indexOf(b)<0&&(v=v.concat(b)),y={animating:!0,currentSlide:b,lazyLoadedList:v,targetSlide:b},w={animating:!1,targetSlide:b}}else m=b,b<0?(m=b+l,o?l%d!=0&&(m=l-l%d):m=0):!T(e)&&b>s?b=m=s:u&&b>=l?(b=o?l:l-1,m=o?0:l-1):b>=l&&(m=b-l,o?l%d!=0&&(m=0):m=l-f),!o&&b+f>=l&&(m=l-f),h=j((0,i.A)((0,i.A)({},e),{},{slideIndex:b})),g=j((0,i.A)((0,i.A)({},e),{},{slideIndex:m})),o||(h===g&&(b=m),h=g),c&&(v=v.concat(S((0,i.A)((0,i.A)({},e),{},{currentSlide:b})))),p?(y={animating:!0,currentSlide:m,trackStyle:L((0,i.A)((0,i.A)({},e),{},{left:h})),lazyLoadedList:v,targetSlide:x},w={animating:!1,currentSlide:m,trackStyle:I((0,i.A)((0,i.A)({},e),{},{left:g})),swipeLeft:null,targetSlide:x}):y={currentSlide:m,trackStyle:I((0,i.A)((0,i.A)({},e),{},{left:g})),lazyLoadedList:v,targetSlide:x};return{state:y,nextState:w}}((0,i.A)((0,i.A)((0,i.A)({index:e},n.props),n.state),{},{trackRef:n.track,useCSS:n.props.useCSS&&!t})),f=d.state,p=d.nextState;if(f){a&&a(u,f.currentSlide);var m=f.lazyLoadedList.filter((function(e){return n.state.lazyLoadedList.indexOf(e)<0}));l&&m.length>0&&l(m),!n.props.waitForAnimate&&n.animationEndCallback&&(clearTimeout(n.animationEndCallback),s&&s(u),delete n.animationEndCallback),n.setState(f,(function(){o&&n.asNavForIndex!==e&&(n.asNavForIndex=e,o.innerSlider.slideHandler(e)),p&&(n.animationEndCallback=setTimeout((function(){var e=p.animating,t=(0,v.A)(p,te);n.setState(t,(function(){n.callbackTimers.push(setTimeout((function(){return n.setState({animating:e})}),10)),s&&s(f.currentSlide),delete n.animationEndCallback}))}),c))}))}})),(0,f.A)(n,"changeSlide",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=function(e,t){var n,r,o,a,l=e.slidesToScroll,c=e.slidesToShow,s=e.slideCount,u=e.currentSlide,d=e.targetSlide,f=e.lazyLoad,p=e.infinite;if(n=s%l!=0?0:(s-u)%l,"previous"===t.message)a=u-(o=0===n?l:c-n),f&&!p&&(a=-1==(r=u-o)?s-1:r),p||(a=d-l);else if("next"===t.message)a=u+(o=0===n?l:n),f&&!p&&(a=(u+l)%s+n),p||(a=d+l);else if("dots"===t.message)a=t.index*t.slidesToScroll;else if("children"===t.message){if(a=t.index,p){var v=B((0,i.A)((0,i.A)({},e),{},{targetSlide:a}));a>t.currentSlide&&"left"===v?a-=s:a10)return{scrolling:!0};l&&(b.swipeLength=E);var M=(c?-1:1)*(b.curX>b.startX?1:-1);l&&(M=b.curY>b.startY?1:-1);var $=Math.ceil(m/h),R=O(t.touchObject,l),z=b.swipeLength;return g||(0===s&&("right"===R||"down"===R)||s+1>=$&&("left"===R||"up"===R)||!T(t)&&("left"===R||"up"===R))&&(z=b.swipeLength*u,!1===d&&f&&(f(R),C.edgeDragged=!0)),!p&&y&&(y(R),C.swiped=!0),x=o?k+z*(A/S)*M:c?k-z*M:k+z*M,l&&(x=k+z*M),C=(0,i.A)((0,i.A)({},C),{},{touchObject:b,swipeLeft:x,trackStyle:I((0,i.A)((0,i.A)({},t),{},{left:x}))}),Math.abs(b.curX-b.startX)<.8*Math.abs(b.curY-b.startY)||b.swipeLength>10&&(C.swiping=!0,w(e)),C}}(e,(0,i.A)((0,i.A)((0,i.A)({},n.props),n.state),{},{trackRef:n.track,listRef:n.list,slideIndex:n.state.currentSlide}));t&&(t.swiping&&(n.clickable=!1),n.setState(t))})),(0,f.A)(n,"swipeEnd",(function(e){var t=function(e,t){var n=t.dragging,r=t.swipe,o=t.touchObject,a=t.listWidth,l=t.touchThreshold,c=t.verticalSwiping,s=t.listHeight,u=t.swipeToSlide,d=t.scrolling,f=t.onSwipe,p=t.targetSlide,v=t.currentSlide,m=t.infinite;if(!n)return r&&w(e),{};var h=c?s/l:a/l,g=O(o,c),b={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(d)return b;if(!o.swipeLength)return b;if(o.swipeLength>h){var y,A;w(e),f&&f(g);var S=m?v:p;switch(g){case"left":case"up":A=S+P(t),y=u?z(t,A):A,b.currentDirection=0;break;case"right":case"down":A=S-P(t),y=u?z(t,A):A,b.currentDirection=1;break;default:y=S}b.triggerSlideHandler=y}else{var x=j(t);b.trackStyle=L((0,i.A)((0,i.A)({},t),{},{left:x}))}return b}(e,(0,i.A)((0,i.A)((0,i.A)({},n.props),n.state),{},{trackRef:n.track,listRef:n.list,slideIndex:n.state.currentSlide}));if(t){var r=t.triggerSlideHandler;delete t.triggerSlideHandler,n.setState(t),void 0!==r&&(n.slideHandler(r),n.props.verticalSwiping&&n.enableBodyScroll())}})),(0,f.A)(n,"touchEnd",(function(e){n.swipeEnd(e),n.clickable=!0})),(0,f.A)(n,"slickPrev",(function(){n.callbackTimers.push(setTimeout((function(){return n.changeSlide({message:"previous"})}),0))})),(0,f.A)(n,"slickNext",(function(){n.callbackTimers.push(setTimeout((function(){return n.changeSlide({message:"next"})}),0))})),(0,f.A)(n,"slickGoTo",(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e=Number(e),isNaN(e))return"";n.callbackTimers.push(setTimeout((function(){return n.changeSlide({message:"index",index:e,currentSlide:n.state.currentSlide},t)}),0))})),(0,f.A)(n,"play",(function(){var e;if(n.props.rtl)e=n.state.currentSlide-n.props.slidesToScroll;else{if(!T((0,i.A)((0,i.A)({},n.props),n.state)))return!1;e=n.state.currentSlide+n.props.slidesToScroll}n.slideHandler(e)})),(0,f.A)(n,"autoPlay",(function(e){n.autoplayTimer&&clearInterval(n.autoplayTimer);var t=n.state.autoplaying;if("update"===e){if("hovered"===t||"focused"===t||"paused"===t)return}else if("leave"===e){if("paused"===t||"focused"===t)return}else if("blur"===e&&("paused"===t||"hovered"===t))return;n.autoplayTimer=setInterval(n.play,n.props.autoplaySpeed+50),n.setState({autoplaying:"playing"})})),(0,f.A)(n,"pause",(function(e){n.autoplayTimer&&(clearInterval(n.autoplayTimer),n.autoplayTimer=null);var t=n.state.autoplaying;"paused"===e?n.setState({autoplaying:"paused"}):"focused"===e?"hovered"!==t&&"playing"!==t||n.setState({autoplaying:"focused"}):"playing"===t&&n.setState({autoplaying:"hovered"})})),(0,f.A)(n,"onDotsOver",(function(){return n.props.autoplay&&n.pause("hovered")})),(0,f.A)(n,"onDotsLeave",(function(){return n.props.autoplay&&"hovered"===n.state.autoplaying&&n.autoPlay("leave")})),(0,f.A)(n,"onTrackOver",(function(){return n.props.autoplay&&n.pause("hovered")})),(0,f.A)(n,"onTrackLeave",(function(){return n.props.autoplay&&"hovered"===n.state.autoplaying&&n.autoPlay("leave")})),(0,f.A)(n,"onSlideFocus",(function(){return n.props.autoplay&&n.pause("focused")})),(0,f.A)(n,"onSlideBlur",(function(){return n.props.autoplay&&"focused"===n.state.autoplaying&&n.autoPlay("blur")})),(0,f.A)(n,"render",(function(){var e,t,a,l=b()("slick-slider",n.props.className,{"slick-vertical":n.props.vertical,"slick-initialized":!0}),c=(0,i.A)((0,i.A)({},n.props),n.state),s=R(c,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),u=n.props.pauseOnHover;if(s=(0,i.A)((0,i.A)({},s),{},{onMouseEnter:u?n.onTrackOver:null,onMouseLeave:u?n.onTrackLeave:null,onMouseOver:u?n.onTrackOver:null,focusOnSelect:n.props.focusOnSelect&&n.clickable?n.selectHandler:null}),!0===n.props.dots&&n.state.slideCount>=n.props.slidesToShow){var d=R(c,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),f=n.props.pauseOnDotsHover;d=(0,i.A)((0,i.A)({},d),{},{clickHandler:n.changeSlide,onMouseEnter:f?n.onDotsLeave:null,onMouseOver:f?n.onDotsOver:null,onMouseLeave:f?n.onDotsLeave:null}),e=r.createElement(V,d)}var p=R(c,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);p.clickHandler=n.changeSlide,n.props.arrows&&(t=r.createElement(Z,p),a=r.createElement(J,p));var v=null;n.props.vertical&&(v={height:n.state.listHeight});var m=null;!1===n.props.vertical?!0===n.props.centerMode&&(m={padding:"0px "+n.props.centerPadding}):!0===n.props.centerMode&&(m={padding:n.props.centerPadding+" 0px"});var h=(0,i.A)((0,i.A)({},v),m),g=n.props.touchMove,y={className:"slick-list",style:h,onClick:n.clickHandler,onMouseDown:g?n.swipeStart:null,onMouseMove:n.state.dragging&&g?n.swipeMove:null,onMouseUp:g?n.swipeEnd:null,onMouseLeave:n.state.dragging&&g?n.swipeEnd:null,onTouchStart:g?n.swipeStart:null,onTouchMove:n.state.dragging&&g?n.swipeMove:null,onTouchEnd:g?n.touchEnd:null,onTouchCancel:n.state.dragging&&g?n.swipeEnd:null,onKeyDown:n.props.accessibility?n.keyHandler:null},A={className:l,dir:"ltr",style:n.props.style};return n.props.unslick&&(y={className:"slick-list"},A={className:l,style:n.props.style}),r.createElement("div",A,n.props.unslick?"":t,r.createElement("div",(0,o.A)({ref:n.listRefHandler},y),r.createElement(U,(0,o.A)({ref:n.trackRefHandler},s),n.props.children)),n.props.unslick?"":a,n.props.unslick?"":e)})),n.list=null,n.track=null,n.state=(0,i.A)((0,i.A)({},m),{},{currentSlide:n.props.initialSlide,targetSlide:n.props.initialSlide?n.props.initialSlide:0,slideCount:r.Children.count(n.props.children)}),n.callbackTimers=[],n.clickable=!0,n.debouncedResize=null;var g=n.ssrInit();return n.state=(0,i.A)((0,i.A)({},n.state),g),n}return(0,d.A)(t,e),(0,l.A)(t,[{key:"didPropsChange",value:function(e){for(var t=!1,n=0,o=Object.keys(this.props);n