PageSourceSearch

https://app.chattytutor.com/assets/index-969f006d.js

js chattytutor.com collected 2026-10-09 01:06:16 UTC 2,600,890 bytes, 579 lines download raw bytes

vendor: 6,516 bytes, lines 1-9
1var Tce=Object.defineProperty;var Ace=(e,t,r)=>t in e?Tce(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Mce=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Qe=(e,t,r)=>(Ace(e,typeof t!="symbol"?t+"":t,r),r);var dnt=Mce((Dit,V0)=>{function KG(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(n,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=r(i);fetch(i.href,o)}})();var Ht=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Mo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function xw(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var YG={exports:{}},Ow={},XG={exports:{}},Cr={};/**
2 * @license React
3 * react.production.min.js
4 *
5 * Copyright (c) Facebook, Inc. and its affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var Vy=Symbol.for("react.element"),$ce=Symbol.for("react.portal"),kce=Symbol.for("react.fragment"),Nce=Symbol.for("react.strict_mode"),Dce=Symbol.for("react.profiler"),Lce=Symbol.for("react.provider"),jce=Symbol.for("react.context"),Fce=Symbol.for("react.forward_ref"),zce=Symbol.for("react.suspense"),Bce=Symbol.for("react.memo"),Hce=Symbol.for("react.lazy"),oL=Symbol.iterator;function Vce(e){return e===null||typeof e!="object"?null:(e=oL&&e[oL]||e["@@iterator"],typeof e=="function"?e:null)}var QG={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},JG=Object.assign,ZG={};function Bp(e,t,r){this.props=e,this.context=t,this.refs=ZG,this.updater=r||QG}Bp.prototype.isReactComponent={};Bp.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Bp.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function eK(){}eK.prototype=Bp.prototype;function oN(e,t,r){this.props=e,this.context=t,this.refs=ZG,this.updater=r||QG}var aN=oN.prototype=new eK;aN.constructor=oN;JG(aN,Bp.prototype);aN.isPureReactComponent=!0;var aL=Array.isArray,tK=Object.prototype.hasOwnProperty,sN={current:null},rK={key:!0,ref:!0,__self:!0,__source:!0};function nK(e,t,r){var n,i={},o=null,a=null;if(t!=null)for(n in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)tK.call(t,n)&&!rK.hasOwnProperty(n)&&(i[n]=t[n]);var s=arguments.length-2;if(s===1)i.children=r;else if(1<s){for(var l=Array(s),c=0;c<s;c++)l[c]=arguments[c+2];i.children=l}if(e&&e.defaultProps)for(n in s=e.defaultProps,s)i[n]===void 0&&(i[n]=s[n]);return{$$typeof:Vy,type:e,key:o,ref:a,props:i,_owner:sN.current}}function Uce(e,t){return{$$typeof:Vy,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function lN(e){return typeof e=="object"&&e!==null&&e.$$typeof===Vy}function Wce(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var sL=/\/+/g;function oP(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Wce(""+e.key):t.toString(36)}function U1(e,t,r,n,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case Vy:case $ce:a=!0}}if(a)return a=e,i=i(a),e=n===""?"."+oP(a,0):n,aL(i)?(r="",e!=null&&(r=e.replace(sL,"$&/")+"/"),U1(i,t,r,"",function(c){return c})):i!=null&&(lN(i)&&(i=Uce(i,r+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(sL,"$&/")+"/")+e)),t.push(i)),1;if(a=0,n=n===""?".":n+":",aL(e))for(var s=0;s<e.length;s++){o=e[s];var l=n+oP(o,s);a+=U1(o,t,r,l,i)}else if(l=Vce(e),typeof l=="function")for(e=l.call(e),s=0;!(o=e.next()).done;)o=o.value,l=n+oP(o,s++),a+=U1(o,t,r,l,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function aS(e,t,r){if(e==null)return e;var n=[],i=0;return U1(e,n,"","",function(o){return t.call(r,o,i++)}),n}function qce(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var po={current:null},W1={transition:null},Gce={ReactCurrentDispatcher:po,ReactCurrentBatchConfig:W1,ReactCurrentOwner:sN};function iK(){throw Error("act(...) is not supported in production builds of React.")}Cr.Children={map:aS,forEach:function(e,t,r){aS(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return aS(e,function(){t++}),t},toArray:function(e){return aS(e,function(t){return t})||[]},only:function(e){if(!lN(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Cr.Component=Bp;Cr.Fragment=kce;Cr.Profiler=Dce;Cr.PureComponent=oN;Cr.StrictMode=Nce;Cr.Suspense=zce;
9Cr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Gce;Cr.act=iK;Cr.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=JG({},e.props),i=e.key,o=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,a=sN.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)tK.call(t,l)&&!rK.hasOwnProperty(l)&&(n[l]=t[l]===void 0&&s!==void 0?s[l]:t[l])}var l=arguments.length-2;if(l===1)n.children=r;else if(1<l){s=Array(l);for(var c=0;c<l;c++)s[c]=arguments[c+2];n.children=s}return{$$typeof:Vy,type:e.type,key:i,ref:o,props:n,_owner:a}};Cr.createContext=function(e){return e={$$typeof:jce,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Lce,_context:e},e.Consumer=e};Cr.createElement=nK;Cr.createFactory=function(e){var t=nK.bind(null,e);return t.type=e,t};Cr.createRef=function(){return{current:null}};Cr.forwardRef=function(e){return{$$typeof:Fce,render:e}};Cr.isValidElement=lN;Cr.lazy=function(e){return{$$typeof:Hce,_payload:{_status:-1,_result:e},_init:qce}};Cr.memo=function(e,t){return{$$typeof:Bce,type:e,compare:t===void 0?null:t}};Cr.startTransition=function(e){var t=W1.transition;W1.transition={};try{e()}finally{W1.transition=t}};Cr.unstable_act=iK;Cr.useCallback=function(e,t){return po.current.useCallback(e,t)};Cr.useContext=function(e){return po.current.useContext(e)};Cr.useDebugValue=function(){};Cr.useDeferredValue=function(e){return po.current.useDeferredValue(e)};Cr.useEffect=function(e,t){return po.current.useEffect(e,t)};Cr.useId=function(){return po.current.useId()};Cr.useImperativeHandle=function(e,t,r){return po.current.useImperativeHandle(e,t,r)};Cr.useInsertionEffect=function(e,t){return po.current.useInsertionEffect(e,t)};Cr.useLayoutEffect=function(e,t){return po.current.useLayoutEffect(e,t)};Cr.useMemo=function(e,t){return po.current.useMemo(e,t)};Cr.useReducer=function(e,t,r){return po.current.useReducer(e,t,r)};Cr.useRef=function(e){return po.current.useRef(e)};Cr.useState=function(e){return po.current.useState(e)};Cr.useSyncExternalStore=function(e,t,r){return po.current.useSyncExternalStore(e,t,r)};Cr.useTransition=function(){return po.current.useTransition()};Cr.version="18.3.1";XG.exports=Cr;var p=XG.exports;const de=Mo(p),Uy=KG({__proto__:null,default:de},[p]);/**
10 * @license React
11 * react-jsx-runtime.production.min.js
12 *
13 * Copyright (c) Facebook, Inc. and its affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var Kce=p,Yce=Symbol.for("react.element"),Xce=Symbol.for("react.fragment"),Qce=Object.prototype.hasOwnProperty,Jce=Kce.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Zce={key:!0,ref:!0,__self:!0,__source:!0};function oK(e,t,r){var n,i={},o=null,a=null;r!==void 0&&(o=""+r),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(n in t)Qce.call(t,n)&&!Zce.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)i[n]===void 0&&(i[n]=t[n]);return{$$typeof:Yce,type:e,key:o,ref:a,props:i,_owner:Jce.current}}Ow.Fragment=Xce;Ow.jsx=oK;Ow.jsxs=oK;YG.exports=Ow;var cN=YG.exports;const nn=cN.Fragment,B=cN.jsx,Oe=cN.jsxs;var eue={exports:{}};(function(e){var t=function(r){var n=Object.prototype,i=n.hasOwnProperty,o=Object.defineProperty||function(L,M,$){L[M]=$.value},a,s=typeof Symbol=="function"?Symbol:{},l=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",d=s.toStringTag||"@@toStringTag";function u(L,M,$){return Object.defineProperty(L,M,{value:$,enumerable:!0,configurable:!0,writable:!0}),L[M]}try{u({},"")}catch{u=function(M,$,F){return M[$]=F}}function f(L,M,$,F){var z=M&&M.prototype instanceof C?M:C,H=Object.create(z.prototype),U=new k(F||[]);return o(H,"_invoke",{value:A(L,$,U)}),H}r.wrap=f;function h(L,M,$){try{return{type:"normal",arg:L.call(M,$)}}catch(F){return{type:"throw",arg:F}}}var v="suspendedStart",y="suspendedYield",g="executing",m="completed",S={};function C(){}function b(){}function w(){}var E={};u(E,l,function(){return this});var _=Object.getPrototypeOf,R=_&&_(_(j([])));R&&R!==n&&i.call(R,l)&&(E=R);var P=w.prototype=C.prototype=Object.create(E);b.prototype=w,o(P,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:b,configurable:!0}),b.displayName=u(w,d,"GeneratorFunction");function I(L){["next","throw","return"].forEach(function(M){u(L,M,function($){return this._invoke(M,$)})})}r.isGeneratorFunction=function(L){var M=typeof L=="function"&&L.constructor;return M?M===b||(M.displayName||M.name)==="GeneratorFunction":!1},r.mark=function(L){return Object.setPrototypeOf?Object.setPrototypeOf(L,w):(L.__proto__=w,u(L,d,"GeneratorFunction")),L.prototype=Object.create(P),L},r.awrap=function(L){return{__await:L}};function O(L,M){function $(H,U,V,W){var K=h(L[H],L,U);if(K.type==="throw")W(K.arg);else{var Z=K.arg,q=Z.value;return q&&typeof q=="object"&&i.call(q,"__await")?M.resolve(q.__await).then(function(Y){$("next",Y,V,W)},function(Y){$("throw",Y,V,W)}):M.resolve(q).then(function(Y){Z.value=Y,V(Z)},function(Y){return $("throw",Y,V,W)})}}var F;function z(H,U){function V(){return new M(function(W,K){$(H,U,W,K)})}return F=F?F.then(V,V):V()}o(this,"_invoke",{value:z})}I(O.prototype),u(O.prototype,c,function(){return this}),r.AsyncIterator=O,r.async=function(L,M,$,F,z){z===void 0&&(z=Promise);var H=new O(f(L,M,$,F),z);return r.isGeneratorFunction(M)?H:H.next().then(function(U){return U.done?U.value:H.next()})};function A(L,M,$){var F=v;return function(H,U){if(F===g)throw new Error("Generator is already running");if(F===m){if(H==="throw")throw U;return N()}for($.method=H,$.arg=U;;){var V=$.delegate;if(V){var W=x(V,$);if(W){if(W===S)continue;return W}}if($.method==="next")$.sent=$._sent=$.arg;else if($.method==="throw"){if(F===v)throw F=m,$.arg;$.dispatchException($.arg)}else $.method==="return"&&$.abrupt("return",$.arg);F=g;var K=h(L,M,$);if(K.type==="normal"){if(F=$.done?m:y,K.arg===S)continue;return{value:K.arg,done:$.done}}else K.type==="throw"&&(F=m,$.method="throw",$.arg=K.arg)}}}function x(L,M){var $=M.method,F=L.iterator[$];if(F===a)return M.delegate=null,$==="throw"&&L.iterator.return&&
17(M.method="return",M.arg=a,x(L,M),M.method==="throw")||$!=="return"&&(M.method="throw",M.arg=new TypeError("The iterator does not provide a '"+$+"' method")),S;var z=h(F,L.iterator,M.arg);if(z.type==="throw")return M.method="throw",M.arg=z.arg,M.delegate=null,S;var H=z.arg;if(!H)return M.method="throw",M.arg=new TypeError("iterator result is not an object"),M.delegate=null,S;if(H.done)M[L.resultName]=H.value,M.next=L.nextLoc,M.method!=="return"&&(M.method="next",M.arg=a);else return H;return M.delegate=null,S}I(P),u(P,d,"Generator"),u(P,l,function(){return this}),u(P,"toString",function(){return"[object Generator]"});function T(L){var M={tryLoc:L[0]};1 in L&&(M.catchLoc=L[1]),2 in L&&(M.finallyLoc=L[2],M.afterLoc=L[3]),this.tryEntries.push(M)}function D(L){var M=L.completion||{};M.type="normal",delete M.arg,L.completion=M}function k(L){this.tryEntries=[{tryLoc:"root"}],L.forEach(T,this),this.reset(!0)}r.keys=function(L){var M=Object(L),$=[];for(var F in M)$.push(F);return $.reverse(),function z(){for(;$.length;){var H=$.pop();if(H in M)return z.value=H,z.done=!1,z}return z.done=!0,z}};function j(L){if(L){var M=L[l];if(M)return M.call(L);if(typeof L.next=="function")return L;if(!isNaN(L.length)){var $=-1,F=function z(){for(;++$<L.length;)if(i.call(L,$))return z.value=L[$],z.done=!1,z;return z.value=a,z.done=!0,z};return F.next=F}}return{next:N}}r.values=j;function N(){return{value:a,done:!0}}return k.prototype={constructor:k,reset:function(L){if(this.prev=0,this.next=0,this.sent=this._sent=a,this.done=!1,this.delegate=null,this.method="next",this.arg=a,this.tryEntries.forEach(D),!L)for(var M in this)M.charAt(0)==="t"&&i.call(this,M)&&!isNaN(+M.slice(1))&&(this[M]=a)},stop:function(){this.done=!0;var L=this.tryEntries[0],M=L.completion;if(M.type==="throw")throw M.arg;return this.rval},dispatchException:function(L){if(this.done)throw L;var M=this;function $(W,K){return H.type="throw",H.arg=L,M.next=W,K&&(M.method="next",M.arg=a),!!K}for(var F=this.tryEntries.length-1;F>=0;--F){var z=this.tryEntries[F],H=z.completion;if(z.tryLoc==="root")return $("end");if(z.tryLoc<=this.prev){var U=i.call(z,"catchLoc"),V=i.call(z,"finallyLoc");if(U&&V){if(this.prev<z.catchLoc)return $(z.catchLoc,!0);if(this.prev<z.finallyLoc)return $(z.finallyLoc)}else if(U){if(this.prev<z.catchLoc)return $(z.catchLoc,!0)}else if(V){if(this.prev<z.finallyLoc)return $(z.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(L,M){for(var $=this.tryEntries.length-1;$>=0;--$){var F=this.tryEntries[$];if(F.tryLoc<=this.prev&&i.call(F,"finallyLoc")&&this.prev<F.finallyLoc){var z=F;break}}z&&(L==="break"||L==="continue")&&z.tryLoc<=M&&M<=z.finallyLoc&&(z=null);var H=z?z.completion:{};return H.type=L,H.arg=M,z?(this.method="next",this.next=z.finallyLoc,S):this.complete(H)},complete:function(L,M){if(L.type==="throw")throw L.arg;return L.type==="break"||L.type==="continue"?this.next=L.arg:L.type==="return"?(this.rval=this.arg=L.arg,this.method="return",this.next="end"):L.type==="normal"&&M&&(this.next=M),S},finish:function(L){for(var M=this.tryEntries.length-1;M>=0;--M){var $=this.tryEntries[M];if($.finallyLoc===L)return this.complete($.completion,$.afterLoc),D($),S}},catch:function(L){for(var M=this.tryEntries.length-1;M>=0;--M){var $=this.tryEntries[M];if($.tryLoc===L){var F=$.completion;if(F.type==="throw"){var z=F.arg;D($)}return z}}throw new Error("illegal catch attempt")},delegateYield:function(L,M,$){return this.delegate={iterator:j(L),resultName:M,nextLoc:$},this.method==="next"&&(this.arg=a),S}},r}(e.exports);try{regeneratorRuntime=t}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}})(eue);var dA={},aK={exports:{}},Zo={},sK={exports:{}},lK={};/**
18 * @license React
19 * scheduler.production.min.js
20 *
21 * Copyright (c) Facebook, Inc. and its affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */(function(e){function t(N,L){var M=N.length;N.push(L);e:for(;0<M;){var $=M-1>>>1,F=N[$];if(0<i(F,L))N[$]=L,N[M]=F,M=$;else break e}}function r(N){return N.length===0?null:N[0]}function n(N){if(N.length===0)return null;var L=N[0],M=N.pop();if(M!==L){N[0]=M;e:for(var $=0,F=N.length,z=F>>>1;$<z;){var H=2*($+1)-1,U=N[H],V=H+1,W=N[V];if(0>i(U,M))V<F&&0>i(W,U)?(N[$]=W,N[V]=M,$=V):(N[$]=U,N[H]=M,$=H);else if(V<F&&0>i(W,M))N[$]=W,N[V]=M,$=V;else break e}}return L}function i(N,L){var M=N.sortIndex-L.sortIndex;return M!==0?M:N.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],c=[],d=1,u=null,f=3,h=!1,v=!1,y=!1,g=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,S=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function C(N){for(var L=r(c);L!==null;){if(L.callback===null)n(c);else if(L.startTime<=N)n(c),L.sortIndex=L.expirationTime,t(l,L);else break;L=r(c)}}function b(N){if(y=!1,C(N),!v)if(r(l)!==null)v=!0,k(w);else{var L=r(c);L!==null&&j(b,L.startTime-N)}}function w(N,L){v=!1,y&&(y=!1,m(R),R=-1),h=!0;var M=f;try{for(C(L),u=r(l);u!==null&&(!(u.expirationTime>L)||N&&!O());){var $=u.callback;if(typeof $=="function"){u.callback=null,f=u.priorityLevel;var F=$(u.expirationTime<=L);L=e.unstable_now(),typeof F=="function"?u.callback=F:u===r(l)&&n(l),C(L)}else n(l);u=r(l)}if(u!==null)var z=!0;else{var H=r(c);H!==null&&j(b,H.startTime-L),z=!1}return z}finally{u=null,f=M,h=!1}}var E=!1,_=null,R=-1,P=5,I=-1;function O(){return!(e.unstable_now()-I<P)}function A(){if(_!==null){var N=e.unstable_now();I=N;var L=!0;try{L=_(!0,N)}finally{L?x():(E=!1,_=null)}}else E=!1}var x;if(typeof S=="function")x=function(){S(A)};else if(typeof MessageChannel<"u"){var T=new MessageChannel,D=T.port2;T.port1.onmessage=A,x=function(){D.postMessage(null)}}else x=function(){g(A,0)};function k(N){_=N,E||(E=!0,x())}function j(N,L){R=g(function(){N(e.unstable_now())},L)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(N){N.callback=null},e.unstable_continueExecution=function(){v||h||(v=!0,k(w))},e.unstable_forceFrameRate=function(N){0>N||125<N||(P=0<N?Math.floor(1e3/N):5)},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return r(l)},e.unstable_next=function(N){switch(f){case 1:case 2:case 3:var L=3;break;default:L=f}var M=f;f=L;try{return N()}finally{f=M}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(N,L){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var M=f;f=N;try{return L()}finally{f=M}},e.unstable_scheduleCallback=function(N,L,M){var $=e.unstable_now();switch(typeof M=="object"&&M!==null?(M=M.delay,M=typeof M=="number"&&0<M?$+M:$):M=$,N){case 1:var F=-1;break;case 2:F=250;break;case 5:F=1073741823;break;case 4:F=1e4;break;default:F=5e3}return F=M+F,N={id:d++,callback:L,priorityLevel:N,startTime:M,expirationTime:F,sortIndex:-1},M>$?(N.sortIndex=M,t(c,N),r(l)===null&&N===r(c)&&(y?(m(R),R=-1):y=!0,j(b,M-$))):(N.sortIndex=F,t(l,N),v||h||(v=!0,k(w))),N},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(N){var L=f;return function(){var M=f;f=L;try{return N.apply(this,arguments)}finally{f=M}}}})(lK);sK.exports=lK;var tue=sK.exports;/**
26 * @license React
27 * react-dom.production.min.js
28 *
29 * Copyright (c) Facebook, Inc. and its affiliates.
30 *
31 * This source code is licensed under the MIT license found in the
32 * LICENSE file in the root directory of this source tree.
33 */var rue=p,Xo=tue;function wt(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var cK=new Set,xm={};function Ed(e,t){sp(e,t),sp(e+"Capture",t)}function sp(e,t){for(xm[e]=t,e=0;e<t.length;e++)cK.add(t[e])}var ml=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),fA=Object.prototype.hasOwnProperty,nue=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,lL={},cL={};function iue(e){return fA.call(cL,e)?!0:fA.call(lL,e)?!1:nue.test(e)?cL[e]=!0:(lL[e]=!0,!1)}function oue(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function aue(e,t,r,n){if(t===null||typeof t>"u"||oue(e,t,r,n))return!0;
vendor: 5,203 bytes, lines 33-34
33if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ho(e,t,r,n,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var Ei={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ei[e]=new ho(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ei[t]=new ho(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ei[e]=new ho(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ei[e]=new ho(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ei[e]=new ho(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ei[e]=new ho(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ei[e]=new ho(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ei[e]=new ho(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ei[e]=new ho(e,5,!1,e.toLowerCase(),null,!1,!1)});var uN=/[\-:]([a-z])/g;function dN(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(uN,dN);Ei[t]=new ho(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(uN,dN);Ei[t]=new ho(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(uN,dN);Ei[t]=new ho(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ei[e]=new ho(e,1,!1,e.toLowerCase(),null,!1,!1)});Ei.xlinkHref=new ho("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ei[e]=new ho(e,1,!1,e.toLowerCase(),null,!0,!0)});function fN(e,t,r,n){var i=Ei.hasOwnProperty(t)?Ei[t]:null;(i!==null?i.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(aue(t,r,i,n)&&(r=null),n||i===null?iue(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):i.mustUseProperty?e[i.propertyName]=r===null?i.type===3?!1:"":r:(t=i.attributeName,n=i.attributeNamespace,r===null?e.removeAttribute(t):(i=i.type,r=i===3||i===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var Il=rue.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,sS=Symbol.for("react.element"),bf=Symbol.for("react.portal"),wf=Symbol.for("react.fragment"),pN=Symbol.for("react.strict_mode"),pA=Symbol.for("react.profiler"),uK=Symbol.for("react.provider"),dK=Symbol.for("react.context"),hN=Symbol.for("react.forward_ref"),hA=Symbol.for("react.suspense"),vA=Symbol.for("react.suspense_list"),vN=Symbol.for("react.memo"),Zl=Symbol.for("react.lazy"),fK=Symbol.for("react.offscreen"),uL=Symbol.iterator;function wh(e){return e===null||typeof e!="object"?null:(e=uL&&e[uL]||e["@@iterator"],typeof e=="function"?e:null)}var Rn=Object.assign,aP;function Bg(e){if(aP===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);aP=t&&t[1]||""}return`
34`+aP+e}var sP=!1;function lP(e,t){if(!e||sP)return"";sP=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var n=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){n=c}e.call(t.prototype)}else{try{throw Error()}catch(c){n=c}e()}}
vendor: 5,293 bytes, lines 34-37
34catch(c){if(c&&n&&typeof c.stack=="string"){for(var i=c.stack.split(`
35`),o=n.stack.split(`
36`),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(a!==1||s!==1)do if(a--,s--,0>s||i[a]!==o[s]){var l=`
37`+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{sP=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Bg(e):""}function sue(e){switch(e.tag){case 5:return Bg(e.type);case 16:return Bg("Lazy");case 13:return Bg("Suspense");case 19:return Bg("SuspenseList");case 0:case 2:case 15:return e=lP(e.type,!1),e;case 11:return e=lP(e.type.render,!1),e;case 1:return e=lP(e.type,!0),e;default:return""}}function gA(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case wf:return"Fragment";case bf:return"Portal";case pA:return"Profiler";case pN:return"StrictMode";case hA:return"Suspense";case vA:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case dK:return(e.displayName||"Context")+".Consumer";case uK:return(e._context.displayName||"Context")+".Provider";case hN:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case vN:return t=e.displayName||null,t!==null?t:gA(e.type)||"Memo";case Zl:t=e._payload,e=e._init;try{return gA(e(t))}catch{}}return null}function lue(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return gA(t);case 8:return t===pN?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Oc(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function pK(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function cue(e){var t=pK(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){n=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function lS(e){e._valueTracker||(e._valueTracker=cue(e))}function hK(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=pK(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function NC(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function mA(e,t){var r=t.checked;return Rn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function dL(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Oc(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function vK(e,t){t=t.checked,t!=null&&fN(e,"checked",t,!1)}function yA(e,t){vK(e,t);var r=Oc(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?SA(e,t.type,r):t.hasOwnProperty("defaultValue")&&SA(e,t.type,Oc(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function fL(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function SA(e,t,r){(t!=="number"||NC(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Hg=Array.isArray;function Gf(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i<r.length;i++)t["$"+r[i]]=!0;for(r=0;r<e.length;r++)i=t.hasOwnProperty("$"+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&n&&(e[r].defaultSelected=!0)}else{for(r=""+Oc(r),t=null,i=0;i<e.length;i++){if(e[i].value===r){e[i].selected=!0,n&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function CA(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(wt(91)
vendor: 9,524 bytes, line 37
37);return Rn({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function pL(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(wt(92));if(Hg(r)){if(1<r.length)throw Error(wt(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:Oc(r)}}function gK(e,t){var r=Oc(t.value),n=Oc(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function hL(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function mK(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function bA(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?mK(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var cS,yK=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,i){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(cS=cS||document.createElement("div"),cS.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=cS.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Om(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var rm={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},uue=["Webkit","ms","Moz","O"];Object.keys(rm).forEach(function(e){uue.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),rm[t]=rm[e]})});function SK(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||rm.hasOwnProperty(e)&&rm[e]?(""+t).trim():t+"px"}function CK(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=SK(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var due=Rn({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function wA(e,t){if(t){if(due[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(wt(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(wt(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(wt(61))}if(t.style!=null&&typeof t.style!="object")throw Error(wt(62))}}function _A(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var EA=null;function gN(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var RA=null,Kf=null,Yf=null;function vL(e){if(e=Gy(e)){if(typeof RA!="function")throw Error(wt(280));var t=e.stateNode;t&&(t=kw(t),RA(e.stateNode,e.type,t))}}function bK(e){Kf?Yf?Yf.push(e):Yf=[e]:Kf=e}function wK(){if(Kf){var e=Kf,t=Yf;if(Yf=Kf=null,vL(e),t)for(e=0;e<t.length;e++)vL(t[e])}}function _K(e,t){return e(t)}function EK(){}var cP=!1;function RK(e,t,r){if(cP)return e(t,r);cP=!0;try{return _K(e,t,r)}finally{cP=!1,(Kf!==null||Yf!==null)&&(EK(),wK())}}function Tm(e,t){var r=e.stateNode;if(r===null)return null;var n=kw(r);if(n===null)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(wt(231,t,typeof r));return r}var PA=!1;if(ml)try{var _h={};Object.defineProperty(_h,"passive",{get:function(){PA=!0}}),window.addEventListener("test",_h,_h),window.removeEventListener("test",_h,_h)}catch{PA=!1}function fue(e,t,r,n,i,o,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(r,c)}catch(d){this.onError(d)}}var nm=!1,DC=null,LC=!1,IA=null,pue={onError:function(e){nm=!0,DC=e}};function hue(e,t,r,n,i,o,a,s,l){nm=!1,DC=null,fue.apply(pue,arguments)}function vue(e,t,r,n,i,o,a,s,l){if(hue.apply(this,arguments),nm){if(nm){var c=DC;nm=!1,DC=null}else throw Error(wt(198));LC||(LC=!0,IA=c)}}function Rd(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function PK(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function gL(e){if(Rd(e)!==e)throw Error(wt(188))}function gue(e){var t=e.alternate;if(!t){if(t=Rd(e),t===null)throw Error(wt(188));return t!==e?null:e}for(var r=e,n=t;;){var i=r.return;if(i===null)break;var o=i.alternate;if(o===null){if(n=i.return,n!==null){r=n;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===r)return gL(i),e;if(o===n)return gL(i),t;o=o.sibling}throw Error(wt(188))}if(r.return!==n.return)r=i,n=o;else{for(var a=!1,s=i.child;s;){if(s===r){a=!0,r=i,n=o;break}if(s===n){a=!0,n=i,r=o;break}s=s.sibling}if(!a){for(s=o.child;s;){if(s===r){a=!0,r=o,n=i;break}if(s===n){a=!0,n=o,r=i;break}s=s.sibling}if(!a)throw Error(wt(189))}}if(r.alternate!==n)throw Error(wt(190))}if(r.tag!==3)throw Error(wt(188));return r.stateNode.current===r?e:t}function IK(e){return e=gue(e),e!==null?xK(e):null}function xK(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=xK(e);if(t!==null)return t;e=e.sibling}return null}var OK=Xo.unstable_scheduleCallback,mL=Xo.unstable_cancelCallback,mue=Xo.unstable_shouldYield,yue=Xo.unstable_requestPaint,kn=Xo.unstable_now,Sue=Xo.unstable_getCurrentPriorityLevel,mN=Xo.unstable_ImmediatePriority,TK=Xo.unstable_UserBlockingPriority,jC=Xo.unstable_NormalPriority,Cue=Xo.unstable_LowPriority,AK=Xo.unstable_IdlePriority,Tw=null,Ms=null;function bue(e){if(Ms&&typeof Ms.onCommitFiberRoot=="function")try{Ms.onCommitFiberRoot(Tw,e,void 0,(e.current.flags&128)===128)}catch{}}var Qa=Math.clz32?Math.clz32:Eue,wue=Math.log,_ue=Math.LN2;function Eue(e){return e>>>=0,e===0?32:31-(wue(e)/_ue|0)|0}var uS=64,dS=4194304;function Vg(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function FC(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,o=e.pingedLanes,a=r&268435455;if(a!==0){var s=a&~i;s!==0?n=Vg(s):(o&=a,o!==0&&(n=Vg(o)))}else a=r&~i,a!==0?n=Vg(a):o!==0&&(n=Vg(o));if(n===0)return 0;if(t!==0&&t!==n&&!(t&i)&&(i=n&-n,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-Qa(t),i=1<<r,n|=e[r],t&=~i;return n}function Rue(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Pue(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-Qa(o),s=1<<a,l=i[a];l===-1?(!(s&r)||s&n)&&(i[a]=Rue(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}function xA(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function MK(){var e=uS;return uS<<=1,!(uS&4194240)&&(uS=64),e}function uP(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Wy(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Qa(t),e[t]=r}function Iue(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var i=31-Qa(r),o=1<<i;t[i]=0,n[i]=-1,e[i]=-1,r&=~o}}function yN(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-Qa(r),i=1<<n;i&t|e[n]&t&&(e[n]|=t),r&=~i}}var Gr=0;function $K(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var kK,SN,NK,DK,LK,OA=!1,fS=[],vc=null,gc=null,mc=null,Am=new Map,Mm=new Map,nc=[],xue="mou
37sedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function yL(e,t){switch(e){case"focusin":case"focusout":vc=null;break;case"dragenter":case"dragleave":gc=null;break;case"mouseover":case"mouseout":mc=null;break;case"pointerover":case"pointerout":Am.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Mm.delete(t.pointerId)}}function Eh(e,t,r,n,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:o,targetContainers:[i]},t!==null&&(t=Gy(t),t!==null&&SN(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Oue(e,t,r,n,i){switch(t){case"focusin":return vc=Eh(vc,e,t,r,n,i),!0;case"dragenter":return gc=Eh(gc,e,t,r,n,i),!0;case"mouseover":return mc=Eh(mc,e,t,r,n,i),!0;case"pointerover":var o=i.pointerId;return Am.set(o,Eh(Am.get(o)||null,e,t,r,n,i)),!0;case"gotpointercapture":return o=i.pointerId,Mm.set(o,Eh(Mm.get(o)||null,e,t,r,n,i)),!0}return!1}function jK(e){var t=zu(e.target);if(t!==null){var r=Rd(t);if(r!==null){if(t=r.tag,t===13){if(t=PK(r),t!==null){e.blockedOn=t,LK(e.priority,function(){NK(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function q1(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=TA(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);EA=n,r.target.dispatchEvent(n),EA=null}else return t=Gy(r),t!==null&&SN(t),e.blockedOn=r,!1;t.shift()}return!0}function SL(e,t,r){q1(e)&&r.delete(t)}function Tue(){OA=!1,vc!==null&&q1(vc)&&(vc=null),gc!==null&&q1(gc)&&(gc=null),mc!==null&&q1(mc)&&(mc=null),Am.forEach(SL),Mm.forEach(SL)}function Rh(e,t){e.blockedOn===t&&(e.blockedOn=null,OA||(OA=!0,Xo.unstable_scheduleCallback(Xo.unstable_NormalPriority,Tue)))}function $m(e){function t(i){return Rh(i,e)}if(0<fS.length){Rh(fS[0],e);for(var r=1;r<fS.length;r++){var n=fS[r];n.blockedOn===e&&(n.blockedOn=null)}}for(vc!==null&&Rh(vc,e),gc!==null&&Rh(gc,e),mc!==null&&Rh(mc,e),Am.forEach(t),Mm.forEach(t),r=0;r<nc.length;r++)n=nc[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<nc.length&&(r=nc[0],r.blockedOn===null);)jK(r),r.blockedOn===null&&nc.shift()}var Xf=Il.ReactCurrentBatchConfig,zC=!0;function Aue(e,t,r,n){var i=Gr,o=Xf.transition;Xf.transition=null;try{Gr=1,CN(e,t,r,n)}finally{Gr=i,Xf.transition=o}}function Mue(e,t,r,n){var i=Gr,o=Xf.transition;Xf.transition=null;try{Gr=4,CN(e,t,r,n)}finally{Gr=i,Xf.transition=o}}function CN(e,t,r,n){if(zC){var i=TA(e,t,r,n);if(i===null)CP(e,t,n,BC,r),yL(e,n);else if(Oue(i,e,t,r,n))n.stopPropagation();else if(yL(e,n),t&4&&-1<xue.indexOf(e)){for(;i!==null;){var o=Gy(i);if(o!==null&&kK(o),o=TA(e,t,r,n),o===null&&CP(e,t,n,BC,r),o===i)break;i=o}i!==null&&n.stopPropagation()}else CP(e,t,n,null,r)}}var BC=null;function TA(e,t,r,n){if(BC=null,e=gN(n),e=zu(e),e!==null)if(t=Rd(e),t===null)e=null;else if(r=t.tag,r===13){if(e=PK(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return BC=e,null}function FK(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Sue()){case mN:return 1;case TK:return 4;case jC:case Cue:return 16;case AK:return 536870912;default:return 16}default:return 16}}var oc=null,bN=null,G1=null;function zK(){if(G1)return G1;var e,t=bN,r=t.length,n,i="value"in oc?oc.value:oc.textContent,o=i.length;for(e=0;e<r&&t[e]===i[e];e++);var a=r-e;for(n=1;n<=a&&t[r-n]===i[o-n];n++);return G1=i.slice(e,1<n?1-n:void 0)}function K1(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function pS(){return!0}function CL(){return!1}function ea(e){function t(r,n,i,o,a){this._reactName=r,this._targetInst=i,this.type=n,this.nativeEvent=o,this.target=a,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(r=e[s],this[s]=r?r(o):o[s]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?pS:CL,this.isPropagationStopped=CL,this}return Rn(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=pS)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=pS)},persist:function(){},isPersistent:pS}),t}var Hp={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wN=ea(Hp),qy=Rn({},Hp,{view:0,detail:0}),$ue=ea(qy),dP,fP,Ph,Aw=Rn({},qy,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_N,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Ph&&(Ph&&e.type==="mousemove"?(dP=e.screenX-Ph.screenX,fP=e.screenY-Ph.screenY):fP=dP=0,Ph=e),dP)},movementY:function(e){return"movementY"in e?e.movementY:fP}}),bL=ea(Aw),kue=Rn({},Aw,{dataTransfer:0}),Nue=ea(kue),Due=Rn({},qy,{relatedTarget:0}),pP=ea(Due),Lue=Rn({},Hp,{animationName:0,elapsedTime:0,pseudoElement:0}),jue=ea(Lue),Fue=Rn({},Hp,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),zue=ea(Fue),Bue=Rn({},Hp,{data:0}),wL=ea(Bue),Hue={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"}
vendor: 4,238 bytes, line 37
37,Vue={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Uue={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Wue(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Uue[e])?!!t[e]:!1}function _N(){return Wue}var que=Rn({},qy,{key:function(e){if(e.key){var t=Hue[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=K1(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Vue[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_N,charCode:function(e){return e.type==="keypress"?K1(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?K1(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Gue=ea(que),Kue=Rn({},Aw,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),_L=ea(Kue),Yue=Rn({},qy,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_N}),Xue=ea(Yue),Que=Rn({},Hp,{propertyName:0,elapsedTime:0,pseudoElement:0}),Jue=ea(Que),Zue=Rn({},Aw,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),ede=ea(Zue),tde=[9,13,27,32],EN=ml&&"CompositionEvent"in window,im=null;ml&&"documentMode"in document&&(im=document.documentMode);var rde=ml&&"TextEvent"in window&&!im,BK=ml&&(!EN||im&&8<im&&11>=im),EL=String.fromCharCode(32),RL=!1;function HK(e,t){switch(e){case"keyup":return tde.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function VK(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var _f=!1;function nde(e,t){switch(e){case"compositionend":return VK(t);case"keypress":return t.which!==32?null:(RL=!0,EL);case"textInput":return e=t.data,e===EL&&RL?null:e;default:return null}}function ide(e,t){if(_f)return e==="compositionend"||!EN&&HK(e,t)?(e=zK(),G1=bN=oc=null,_f=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return BK&&t.locale!=="ko"?null:t.data;default:return null}}var ode={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function PL(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ode[e.type]:t==="textarea"}function UK(e,t,r,n){bK(n),t=HC(t,"onChange"),0<t.length&&(r=new wN("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var om=null,km=null;function ade(e){tY(e,0)}function Mw(e){var t=Pf(e);if(hK(t))return e}function sde(e,t){if(e==="change")return t}var WK=!1;if(ml){var hP;if(ml){var vP="oninput"in document;if(!vP){var IL=document.createElement("div");IL.setAttribute("oninput","return;"),vP=typeof IL.oninput=="function"}hP=vP}else hP=!1;WK=hP&&(!document.documentMode||9<document.documentMode)}function xL(){om&&(om.detachEvent("onpropertychange",qK),km=om=null)}function qK(e){if(e.propertyName==="value"&&Mw(km)){var t=[];UK(t,km,e,gN(e)),RK(ade,t)}}function lde(e,t,r){e==="focusin"?(xL(),om=t,km=r,om.attachEvent("onpropertychange",qK)):e==="focusout"&&xL()}function cde(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Mw(km)}function ude(e,t){if(e==="click")return Mw(t)}function dde(e,t){if(e==="input"||e==="change")return Mw(t)}function fde(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var as=typeof Object.is=="function"?Object.is:fde;function Nm(e,t){if(as(e,t))return!0;
vendor: 3,346 bytes, line 37
37if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var i=r[n];if(!fA.call(t,i)||!as(e[i],t[i]))return!1}return!0}function OL(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function TL(e,t){var r=OL(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=OL(r)}}function GK(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?GK(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function KK(){for(var e=window,t=NC();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=NC(e.document)}return t}function RN(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function pde(e){var t=KK(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&GK(r.ownerDocument.documentElement,r)){if(n!==null&&RN(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,o=Math.min(n.start,i);n=n.end===void 0?o:Math.min(n.end,i),!e.extend&&o>n&&(i=n,n=o,o=i),i=TL(r,o);var a=TL(r,n);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var hde=ml&&"documentMode"in document&&11>=document.documentMode,Ef=null,AA=null,am=null,MA=!1;function AL(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;MA||Ef==null||Ef!==NC(n)||(n=Ef,"selectionStart"in n&&RN(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),am&&Nm(am,n)||(am=n,n=HC(AA,"onSelect"),0<n.length&&(t=new wN("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=Ef)))}function hS(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Rf={animationend:hS("Animation","AnimationEnd"),animationiteration:hS("Animation","AnimationIteration"),animationstart:hS("Animation","AnimationStart"),transitionend:hS("Transition","TransitionEnd")},gP={},YK={};ml&&(YK=document.createElement("div").style,"AnimationEvent"in window||(delete Rf.animationend.animation,delete Rf.animationiteration.animation,delete Rf.animationstart.animation),"TransitionEvent"in window||delete Rf.transitionend.transition);function $w(e){if(gP[e])return gP[e];
vendor: 6,251 bytes, line 37
37if(!Rf[e])return e;var t=Rf[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in YK)return gP[e]=t[r];return e}var XK=$w("animationend"),QK=$w("animationiteration"),JK=$w("animationstart"),ZK=$w("transitionend"),eY=new Map,ML="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function jc(e,t){eY.set(e,t),Ed(t,[e])}for(var mP=0;mP<ML.length;mP++){var yP=ML[mP],vde=yP.toLowerCase(),gde=yP[0].toUpperCase()+yP.slice(1);jc(vde,"on"+gde)}jc(XK,"onAnimationEnd");jc(QK,"onAnimationIteration");jc(JK,"onAnimationStart");jc("dblclick","onDoubleClick");jc("focusin","onFocus");jc("focusout","onBlur");jc(ZK,"onTransitionEnd");sp("onMouseEnter",["mouseout","mouseover"]);sp("onMouseLeave",["mouseout","mouseover"]);sp("onPointerEnter",["pointerout","pointerover"]);sp("onPointerLeave",["pointerout","pointerover"]);Ed("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ed("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ed("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ed("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ed("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ed("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ug="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),mde=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ug));function $L(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,vue(n,t,void 0,e),e.currentTarget=null}function tY(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],i=n.event;n=n.listeners;e:{var o=void 0;if(t)for(var a=n.length-1;0<=a;a--){var s=n[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;$L(i,s,c),o=l}else for(a=0;a<n.length;a++){if(s=n[a],l=s.instance,c=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;$L(i,s,c),o=l}}}if(LC)throw e=IA,LC=!1,IA=null,e}function fn(e,t){var r=t[LA];r===void 0&&(r=t[LA]=new Set);var n=e+"__bubble";r.has(n)||(rY(t,e,2,!1),r.add(n))}function SP(e,t,r){var n=0;t&&(n|=4),rY(r,e,n,t)}var vS="_reactListening"+Math.random().toString(36).slice(2);function Dm(e){if(!e[vS]){e[vS]=!0,cK.forEach(function(r){r!=="selectionchange"&&(mde.has(r)||SP(r,!1,e),SP(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[vS]||(t[vS]=!0,SP("selectionchange",!1,t))}}function rY(e,t,r,n){switch(FK(t)){case 1:var i=Aue;break;case 4:i=Mue;break;default:i=CN}r=i.bind(null,t,r,e),i=void 0,!PA||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),n?i!==void 0?e.addEventListener(t,r,{capture:!0,passive:i}):e.addEventListener(t,r,!0):i!==void 0?e.addEventListener(t,r,{passive:i}):e.addEventListener(t,r,!1)}function CP(e,t,r,n,i){var o=n;if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var a=n.tag;if(a===3||a===4){var s=n.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(a===4)for(a=n.return;a!==null;){var l=a.tag;if((l===3||l===4)&&(l=a.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;a=a.return}for(;s!==null;){if(a=zu(s),a===null)return;if(l=a.tag,l===5||l===6){n=o=a;continue e}s=s.parentNode}}n=n.return}RK(function(){var c=o,d=gN(r),u=[];e:{var f=eY.get(e);if(f!==void 0){var h=wN,v=e;switch(e){case"keypress":if(K1(r)===0)break e;case"keydown":case"keyup":h=Gue;break;case"focusin":v="focus",h=pP;break;case"focusout":v="blur",h=pP;break;case"beforeblur":case"afterblur":h=pP;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=bL;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=Nue;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=Xue;break;case XK:case QK:case JK:h=jue;break;case ZK:h=Jue;break;case"scroll":h=$ue;break;case"wheel":h=ede;break;case"copy":case"cut":case"paste":h=zue;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=_L}var y=(t&4)!==0,g=!y&&e==="scroll",m=y?f!==null?f+"Capture":null:f;y=[];for(var S=c,C;S!==null;){C=S;var b=C.stateNode;if(C.tag===5&&b!==null&&(C=b,m!==null&&(b=Tm(S,m),b!=null&&y.push(Lm(S,b,C)))),g)break;S=S.return}0<y.length&&(f=new h(f,v,null,r,d),u.push({event:f,listeners:y}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",f&&r!==EA&&(v=r.relatedTarget||r.fromElement)&&(zu(v)||v[yl]))break e;if((h||f)&&(f=d.window===d?d:(f=d.ownerDocument)?f.defaultView||f.parentWindow:window,h?(v=r.relatedTarget||r.toElement,h=c,v=v?zu(v):null,v!==null&&(g=Rd(v),v!==g||v.tag!==5&&v.tag!==6)&&(v=null)):(h=null,v=c),h!==v)){if(y=bL,b="onMouseLeave",m="onMouseEnter",S="mouse",(e==="pointerout"||e==="pointerover")&&(y=_L,b="onPointerLeave",m="onPointerEnter",S="pointer"),g=h==null?f:Pf(h),C=v==null?f:Pf(v),f=new y(b,S+"leave",h,r,d),f.target=g,f.relatedTarget=C,b=null,zu(d)===c&&(y=new y(m,S+"enter",v,r,d),y.target=C,y.relatedTarget=g,b=y),g=b,h&&v)t:{for(y=h,m=v,S=0,C=y;C;C=Jd(C))S++;for(C=0,b=m;b;b=Jd(b))C++;for(;0<S-C;)y=Jd(y),S--;for(;0<C-S;)m=Jd(m),C--;for(;S--;){if(y===m||m!==null&&y===m.alternate)break t;y=Jd(y),m=Jd(m)}y=null}else y=null;h!==null&&kL(u,f,h,y,!1),v!==null&&g!==null&&kL(u,g,v,y,!0)}}
vendor: 4,456 bytes, lines 37-38
37e:{if(f=c?Pf(c):window,h=f.nodeName&&f.nodeName.toLowerCase(),h==="select"||h==="input"&&f.type==="file")var w=sde;else if(PL(f))if(WK)w=dde;else{w=cde;var E=lde}else(h=f.nodeName)&&h.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(w=ude);if(w&&(w=w(e,c))){UK(u,w,r,d);break e}E&&E(e,f,c),e==="focusout"&&(E=f._wrapperState)&&E.controlled&&f.type==="number"&&SA(f,"number",f.value)}switch(E=c?Pf(c):window,e){case"focusin":(PL(E)||E.contentEditable==="true")&&(Ef=E,AA=c,am=null);break;case"focusout":am=AA=Ef=null;break;case"mousedown":MA=!0;break;case"contextmenu":case"mouseup":case"dragend":MA=!1,AL(u,r,d);break;case"selectionchange":if(hde)break;case"keydown":case"keyup":AL(u,r,d)}var _;if(EN)e:{switch(e){case"compositionstart":var R="onCompositionStart";break e;case"compositionend":R="onCompositionEnd";break e;case"compositionupdate":R="onCompositionUpdate";break e}R=void 0}else _f?HK(e,r)&&(R="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(R="onCompositionStart");R&&(BK&&r.locale!=="ko"&&(_f||R!=="onCompositionStart"?R==="onCompositionEnd"&&_f&&(_=zK()):(oc=d,bN="value"in oc?oc.value:oc.textContent,_f=!0)),E=HC(c,R),0<E.length&&(R=new wL(R,e,null,r,d),u.push({event:R,listeners:E}),_?R.data=_:(_=VK(r),_!==null&&(R.data=_)))),(_=rde?nde(e,r):ide(e,r))&&(c=HC(c,"onBeforeInput"),0<c.length&&(d=new wL("onBeforeInput","beforeinput",null,r,d),u.push({event:d,listeners:c}),d.data=_))}tY(u,t)})}function Lm(e,t,r){return{instance:e,listener:t,currentTarget:r}}function HC(e,t){for(var r=t+"Capture",n=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=Tm(e,r),o!=null&&n.unshift(Lm(e,o,i)),o=Tm(e,t),o!=null&&n.push(Lm(e,o,i))),e=e.return}return n}function Jd(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function kL(e,t,r,n,i){for(var o=t._reactName,a=[];r!==null&&r!==n;){var s=r,l=s.alternate,c=s.stateNode;if(l!==null&&l===n)break;s.tag===5&&c!==null&&(s=c,i?(l=Tm(r,o),l!=null&&a.unshift(Lm(r,l,s))):i||(l=Tm(r,o),l!=null&&a.push(Lm(r,l,s)))),r=r.return}a.length!==0&&e.push({event:t,listeners:a})}var yde=/\r\n?/g,Sde=/\u0000|\uFFFD/g;function NL(e){return(typeof e=="string"?e:""+e).replace(yde,`
38`).replace(Sde,"")}function gS(e,t,r){if(t=NL(t),NL(e)!==t&&r)throw Error(wt(425))}function VC(){}var $A=null,kA=null;function NA(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var DA=typeof setTimeout=="function"?setTimeout:void 0,Cde=typeof clearTimeout=="function"?clearTimeout:void 0,DL=typeof Promise=="function"?Promise:void 0,bde=typeof queueMicrotask=="function"?queueMicrotask:typeof DL<"u"?function(e){return DL.resolve(null).then(e).catch(wde)}:DA;function wde(e){setTimeout(function(){throw e})}function bP(e,t){var r=t,n=0;do{var i=r.nextSibling;if(e.removeChild(r),i&&i.nodeType===8)if(r=i.data,r==="/$"){if(n===0){e.removeChild(i),$m(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=i}while(r);$m(t)}function yc(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function LL(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var Vp=Math.random().toString(36).slice(2),Ps="__reactFiber$"+Vp,jm="__reactProps$"+Vp,yl="__reactContainer$"+Vp,LA="__reactEvents$"+Vp,_de="__reactListeners$"+Vp,Ede="__reactHandles$"+Vp;function zu(e){var t=e[Ps];if(t)return t;for(var r=e.parentNode;r;){if(t=r[yl]||r[Ps]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=LL(e);e!==null;){if(r=e[Ps])return r;e=LL(e)}return t}e=r,r=e.parentNode}return null}function Gy(e){return e=e[Ps]||e[yl],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Pf(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(wt(33))}function kw(e){return e[jm]||null}var jA=[],If=-1;function Fc(e){return{current:e}}function pn(e){0>If||(e.current=jA[If],jA[If]=null,If--)}function sn(e,t){If++,jA[If]=e.current,e.current=t}var Tc={},Ki=Fc(Tc),Po=Fc(!1),nd=Tc;function lp(e,t){var r=e.type.contextTypes;if(!r)return Tc;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},o;
vendor: 11,501 bytes, line 38
38for(o in r)i[o]=t[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Io(e){return e=e.childContextTypes,e!=null}function UC(){pn(Po),pn(Ki)}function jL(e,t,r){if(Ki.current!==Tc)throw Error(wt(168));sn(Ki,t),sn(Po,r)}function nY(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(wt(108,lue(e)||"Unknown",i));return Rn({},r,n)}function WC(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Tc,nd=Ki.current,sn(Ki,e),sn(Po,Po.current),!0}function FL(e,t,r){var n=e.stateNode;if(!n)throw Error(wt(169));r?(e=nY(e,t,nd),n.__reactInternalMemoizedMergedChildContext=e,pn(Po),pn(Ki),sn(Ki,e)):pn(Po),sn(Po,r)}var nl=null,Nw=!1,wP=!1;function iY(e){nl===null?nl=[e]:nl.push(e)}function Rde(e){Nw=!0,iY(e)}function zc(){if(!wP&&nl!==null){wP=!0;var e=0,t=Gr;try{var r=nl;for(Gr=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}nl=null,Nw=!1}catch(i){throw nl!==null&&(nl=nl.slice(e+1)),OK(mN,zc),i}finally{Gr=t,wP=!1}}return null}var xf=[],Of=0,qC=null,GC=0,ba=[],wa=0,id=null,sl=1,ll="";function Tu(e,t){xf[Of++]=GC,xf[Of++]=qC,qC=e,GC=t}function oY(e,t,r){ba[wa++]=sl,ba[wa++]=ll,ba[wa++]=id,id=e;var n=sl;e=ll;var i=32-Qa(n)-1;n&=~(1<<i),r+=1;var o=32-Qa(t)+i;if(30<o){var a=i-i%5;o=(n&(1<<a)-1).toString(32),n>>=a,i-=a,sl=1<<32-Qa(t)+i|r<<i|n,ll=o+e}else sl=1<<o|r<<i|n,ll=e}function PN(e){e.return!==null&&(Tu(e,1),oY(e,1,0))}function IN(e){for(;e===qC;)qC=xf[--Of],xf[Of]=null,GC=xf[--Of],xf[Of]=null;for(;e===id;)id=ba[--wa],ba[wa]=null,ll=ba[--wa],ba[wa]=null,sl=ba[--wa],ba[wa]=null}var Yo=null,Go=null,Sn=!1,Ka=null;function aY(e,t){var r=Pa(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function zL(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Yo=e,Go=yc(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Yo=e,Go=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=id!==null?{id:sl,overflow:ll}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=Pa(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,Yo=e,Go=null,!0):!1;default:return!1}}function FA(e){return(e.mode&1)!==0&&(e.flags&128)===0}function zA(e){if(Sn){var t=Go;if(t){var r=t;if(!zL(e,t)){if(FA(e))throw Error(wt(418));t=yc(r.nextSibling);var n=Yo;t&&zL(e,t)?aY(n,r):(e.flags=e.flags&-4097|2,Sn=!1,Yo=e)}}else{if(FA(e))throw Error(wt(418));e.flags=e.flags&-4097|2,Sn=!1,Yo=e}}}function BL(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Yo=e}function mS(e){if(e!==Yo)return!1;if(!Sn)return BL(e),Sn=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!NA(e.type,e.memoizedProps)),t&&(t=Go)){if(FA(e))throw sY(),Error(wt(418));for(;t;)aY(e,t),t=yc(t.nextSibling)}if(BL(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(wt(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Go=yc(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Go=null}}else Go=Yo?yc(e.stateNode.nextSibling):null;return!0}function sY(){for(var e=Go;e;)e=yc(e.nextSibling)}function cp(){Go=Yo=null,Sn=!1}function xN(e){Ka===null?Ka=[e]:Ka.push(e)}var Pde=Il.ReactCurrentBatchConfig;function Ih(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(wt(309));var n=r.stateNode}if(!n)throw Error(wt(147,e));var i=n,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(a){var s=i.refs;a===null?delete s[o]:s[o]=a},t._stringRef=o,t)}if(typeof e!="string")throw Error(wt(284));if(!r._owner)throw Error(wt(290,e))}return e}function yS(e,t){throw e=Object.prototype.toString.call(t),Error(wt(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function HL(e){var t=e._init;return t(e._payload)}function lY(e){function t(m,S){if(e){var C=m.deletions;C===null?(m.deletions=[S],m.flags|=16):C.push(S)}}function r(m,S){if(!e)return null;for(;S!==null;)t(m,S),S=S.sibling;return null}function n(m,S){for(m=new Map;S!==null;)S.key!==null?m.set(S.key,S):m.set(S.index,S),S=S.sibling;return m}function i(m,S){return m=wc(m,S),m.index=0,m.sibling=null,m}function o(m,S,C){return m.index=C,e?(C=m.alternate,C!==null?(C=C.index,C<S?(m.flags|=2,S):C):(m.flags|=2,S)):(m.flags|=1048576,S)}function a(m){return e&&m.alternate===null&&(m.flags|=2),m}function s(m,S,C,b){return S===null||S.tag!==6?(S=OP(C,m.mode,b),S.return=m,S):(S=i(S,C),S.return=m,S)}function l(m,S,C,b){var w=C.type;return w===wf?d(m,S,C.props.children,b,C.key):S!==null&&(S.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===Zl&&HL(w)===S.type)?(b=i(S,C.props),b.ref=Ih(m,S,C),b.return=m,b):(b=tC(C.type,C.key,C.props,null,m.mode,b),b.ref=Ih(m,S,C),b.return=m,b)}function c(m,S,C,b){return S===null||S.tag!==4||S.stateNode.containerInfo!==C.containerInfo||S.stateNode.implementation!==C.implementation?(S=TP(C,m.mode,b),S.return=m,S):(S=i(S,C.children||[]),S.return=m,S)}function d(m,S,C,b,w){return S===null||S.tag!==7?(S=Ju(C,m.mode,b,w),S.return=m,S):(S=i(S,C),S.return=m,S)}function u(m,S,C){if(typeof S=="string"&&S!==""||typeof S=="number")return S=OP(""+S,m.mode,C),S.return=m,S;if(typeof S=="object"&&S!==null){switch(S.$$typeof){case sS:return C=tC(S.type,S.key,S.props,null,m.mode,C),C.ref=Ih(m,null,S),C.return=m,C;case bf:return S=TP(S,m.mode,C),S.return=m,S;case Zl:var b=S._init;return u(m,b(S._payload),C)}if(Hg(S)||wh(S))return S=Ju(S,m.mode,C,null),S.return=m,S;yS(m,S)}return null}function f(m,S,C,b){var w=S!==null?S.key:null;if(typeof C=="string"&&C!==""||typeof C=="number")return w!==null?null:s(m,S,""+C,b);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case sS:return C.key===w?l(m,S,C,b):null;case bf:return C.key===w?c(m,S,C,b):null;case Zl:return w=C._init,f(m,S,w(C._payload),b)}if(Hg(C)||wh(C))return w!==null?null:d(m,S,C,b,null);yS(m,C)}return null}function h(m,S,C,b,w){if(typeof b=="string"&&b!==""||typeof b=="number")return m=m.get(C)||null,s(S,m,""+b,w);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case sS:return m=m.get(b.key===null?C:b.key)||null,l(S,m,b,w);case bf:return m=m.get(b.key===null?C:b.key)||null,c(S,m,b,w);case Zl:var E=b._init;return h(m,S,C,E(b._payload),w)}if(Hg(b)||wh(b))return m=m.get(C)||null,d(S,m,b,w,null);yS(S,b)}return null}function v(m,S,C,b){for(var w=null,E=null,_=S,R=S=0,P=null;_!==null&&R<C.length;R++){_.index>R?(P=_,_=null):P=_.sibling;var I=f(m,_,C[R],b);if(I===null){_===null&&(_=P);break}e&&_&&I.alternate===null&&t(m,_),S=o(I,S,R),E===null?w=I:E.sibling=I,E=I,_=P}if(R===C.length)return r(m,_),Sn&&Tu(m,R),w;if(_===null){for(;R<C.length;R++)_=u(m,C[R],b),_!==null&&(S=o(_,S,R),E===null?w=_:E.sibling=_,E=_);return Sn&&Tu(m,R),w}for(_=n(m,_);R<C.length;R++)P=h(_,m,R,C[R],b),P!==null&&(e&&P.alternate!==null&&_.delete(P.key===null?R:P.key),S=o(P,S,R),E===null?w=P:E.sibling=P,E=P);return e&&_.forEach(function(O){return t(m,O)}),Sn&&Tu(m,R),w}function y(m,S,C,b){var w=wh(C);if(typeof w!="function")throw Error(wt(150));if(C=w.call(C),C==null)throw Error(wt(151));for(var E=w=null,_=S,R=S=0,P=null,I=C.next();_!==null&&!I.done;R++,I=C.next()){_.index>R?(P=_,_=null):P=_.sibling;var O=f(m,_,I.value,b);if(O===null){_===null&&(_=P);break}e&&_&&O.alternate===null&&t(m,_),S=o(O,S,R),E===null?w=O:E.sibling=O,E=O,_=P}if(I.done)return r(m,_),Sn&&Tu(m,R),w;if(_===null){for(;!I.done;R++,I=C.next())I=u(m,I.value,b),I!==null&&(S=o(I,S,R),E===null?w=I:E.sibling=I,E=I);return Sn&&Tu(m,R),w}for(_=n(m,_);!I.done;R++,I=C.next())I=h(_,m,R,I.value,b),I!==null&&(e&&I.alternate!==null&&_.delete(I.key===null?R:I.key),S=o(I,S,R),E===null?w=I:E.sibling=I,E=I);return e&&_.forEach(function(A){return t(m,A)}),Sn&&Tu(m,R),w}function g(m,S,C,b){if(typeof C=="object"&&C!==null&&C.type===wf&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case sS:e:{for(var w=C.key,E=S;E!==null;){if(E.key===w){if(w=C.type,w===wf){if(E.tag===7){r(m,E.sibling),S=i(E,C.props.children),S.return=m,m=S;break e}}else if(E.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===Zl&&HL(w)===E.type){r(m,E.sibling),S=i(E,C.props),S.ref=Ih(m,E,C),S.return=m,m=S;break e}r(m,E);break}else t(m,E);E=E.sibling}C.type===wf?(S=Ju(C.props.children,m.mode,b,C.key),S.return=m,m=S):(b=tC(C.type,C.key,C.props,null,m.mode,b),b.ref=Ih(m,S,C),b.return=m,m=b)}return a(m);case bf:e:{for(E=C.key;S!==null;){if(S.key===E)if(S.tag===4&&S.stateNode.containerInfo===C.containerInfo&&S.stateNode.implementation===C.implementation){r(m,S.sibling),S=i(S,C.children||[]),S.return=m,m=S;break e}else{r(m,S);break}else t(m,S);S=S.sibling}S=TP(C,m.mode,b),S.return=m,m=S}return a(m);case Zl:return E=C._init,g(m,S,E(C._payload),b)}if(Hg(C))return v(m,S,C,b);if(wh(C))return y(m,S,C,b);yS(m,C)}return typeof C=="string"&&C!==""||typeof C=="number"?(C=""+C,S!==null&&S.tag===6?(r(m,S.sibling),S=i(S,C),S.return=m,m=S):(r(m,S),S=OP(C,m.mode,b),S.return=m,m=S),a(m)):r(m,S)}return g}var up=lY(!0),cY=lY(!1),KC=Fc(null),YC=null,Tf=null,ON=null;function TN(){ON=Tf=YC=null}function AN(e){var t=KC.current;pn(KC),e._currentValue=t}function BA(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Qf(e,t){YC=e,ON=Tf=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ro=!0),e.firstContext=null)}function Aa(e){var t=e._currentValue;if(ON!==e)if(e={context:e,memoizedValue:t,next:null},Tf===null){if(YC===null)throw Error(wt(308));Tf=e,YC.dependencies={lanes:0,firstContext:e}}else Tf=Tf.next=e;return t}var Bu=null;function MN(e){Bu===null?Bu=[e]:Bu.push(e)}function uY(e,t,r,n){var i=t.interleaved;return i===null?(r.next=r,MN(t)):(r.next=i.next,i.next=r),t.interleaved=r,Sl(e,n)}function Sl(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var ec=!1;function $N(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function dY(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ul(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Sc(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,$r&2){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,Sl(e,r)}return i=n.interleaved,i===null?(t.next=t,MN(n)):(t.next=i.next,i.next=t),n.interleaved=t,Sl(e,r)}function Y1(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,yN(e,r)}}function VL(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,o=null;if(r=r.firstBaseUpdate,r!==null){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};o===null?i=o=a:o=o.next=a,r=r.next}
vendor: 4,970 bytes, line 38
38while(r!==null);o===null?i=o=t:o=o.next=t}else i=o=t;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function XC(e,t,r,n){var i=e.updateQueue;ec=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,c=l.next;l.next=null,a===null?o=c:a.next=c,a=l;var d=e.alternate;d!==null&&(d=d.updateQueue,s=d.lastBaseUpdate,s!==a&&(s===null?d.firstBaseUpdate=c:s.next=c,d.lastBaseUpdate=l))}if(o!==null){var u=i.baseState;a=0,d=c=l=null,s=o;do{var f=s.lane,h=s.eventTime;if((n&f)===f){d!==null&&(d=d.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var v=e,y=s;switch(f=t,h=r,y.tag){case 1:if(v=y.payload,typeof v=="function"){u=v.call(h,u,f);break e}u=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=y.payload,f=typeof v=="function"?v.call(h,u,f):v,f==null)break e;u=Rn({},u,f);break e;case 2:ec=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[s]:f.push(s))}else h={eventTime:h,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},d===null?(c=d=h,l=u):d=d.next=h,a|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;f=s,s=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(1);if(d===null&&(l=u),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do a|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);ad|=a,e.lanes=a,e.memoizedState=u}}function UL(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],i=n.callback;if(i!==null){if(n.callback=null,n=r,typeof i!="function")throw Error(wt(191,i));i.call(n)}}}var Ky={},$s=Fc(Ky),Fm=Fc(Ky),zm=Fc(Ky);function Hu(e){if(e===Ky)throw Error(wt(174));return e}function kN(e,t){switch(sn(zm,t),sn(Fm,e),sn($s,Ky),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:bA(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=bA(t,e)}pn($s),sn($s,t)}function dp(){pn($s),pn(Fm),pn(zm)}function fY(e){Hu(zm.current);var t=Hu($s.current),r=bA(t,e.type);t!==r&&(sn(Fm,e),sn($s,r))}function NN(e){Fm.current===e&&(pn($s),pn(Fm))}var _n=Fc(0);function QC(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var _P=[];function DN(){for(var e=0;e<_P.length;e++)_P[e]._workInProgressVersionPrimary=null;_P.length=0}var X1=Il.ReactCurrentDispatcher,EP=Il.ReactCurrentBatchConfig,od=0,En=null,Kn=null,ii=null,JC=!1,sm=!1,Bm=0,Ide=0;function $i(){throw Error(wt(321))}function LN(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!as(e[r],t[r]))return!1;return!0}function jN(e,t,r,n,i,o){if(od=o,En=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,X1.current=e===null||e.memoizedState===null?Ade:Mde,e=r(n,i),sm){o=0;do{if(sm=!1,Bm=0,25<=o)throw Error(wt(301));o+=1,ii=Kn=null,t.updateQueue=null,X1.current=$de,e=r(n,i)}while(sm)}if(X1.current=ZC,t=Kn!==null&&Kn.next!==null,od=0,ii=Kn=En=null,JC=!1,t)throw Error(wt(300));return e}function FN(){var e=Bm!==0;return Bm=0,e}function Es(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ii===null?En.memoizedState=ii=e:ii=ii.next=e,ii}function Ma(){if(Kn===null){var e=En.alternate;e=e!==null?e.memoizedState:null}else e=Kn.next;var t=ii===null?En.memoizedState:ii.next;if(t!==null)ii=t,Kn=e;else{if(e===null)throw Error(wt(310));Kn=e,e={memoizedState:Kn.memoizedState,baseState:Kn.baseState,baseQueue:Kn.baseQueue,queue:Kn.queue,next:null},ii===null?En.memoizedState=ii=e:ii=ii.next=e}return ii}function Hm(e,t){return typeof t=="function"?t(e):t}function RP(e){var t=Ma(),r=t.queue;if(r===null)throw Error(wt(311));r.lastRenderedReducer=e;var n=Kn,i=n.baseQueue,o=r.pending;if(o!==null){if(i!==null){var a=i.next;i.next=o.next,o.next=a}n.baseQueue=i=o,r.pending=null}if(i!==null){o=i.next,n=n.baseState;var s=a=null,l=null,c=o;do{var d=c.lane;if((od&d)===d)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),n=c.hasEagerState?c.eagerState:e(n,c.action);else{var u={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(s=l=u,a=n):l=l.next=u,En.lanes|=d,ad|=d}c=c.next}while(c!==null&&c!==o);l===null?a=n:l.next=s,as(n,t.memoizedState)||(Ro=!0),t.memoizedState=n,t.baseState=a,t.baseQueue=l,r.lastRenderedState=n}if(e=r.interleaved,e!==null){i=e;do o=i.lane,En.lanes|=o,ad|=o,i=i.next;while(i!==e)}else i===null&&(r.lanes=0);
vendor: 4,908 bytes, line 38
38return[t.memoizedState,r.dispatch]}function PP(e){var t=Ma(),r=t.queue;if(r===null)throw Error(wt(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,o=t.memoizedState;if(i!==null){r.pending=null;var a=i=i.next;do o=e(o,a.action),a=a.next;while(a!==i);as(o,t.memoizedState)||(Ro=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),r.lastRenderedState=o}return[o,n]}function pY(){}function hY(e,t){var r=En,n=Ma(),i=t(),o=!as(n.memoizedState,i);if(o&&(n.memoizedState=i,Ro=!0),n=n.queue,zN(mY.bind(null,r,n,e),[e]),n.getSnapshot!==t||o||ii!==null&&ii.memoizedState.tag&1){if(r.flags|=2048,Vm(9,gY.bind(null,r,n,i,t),void 0,null),oi===null)throw Error(wt(349));od&30||vY(r,t,i)}return i}function vY(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=En.updateQueue,t===null?(t={lastEffect:null,stores:null},En.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function gY(e,t,r,n){t.value=r,t.getSnapshot=n,yY(t)&&SY(e)}function mY(e,t,r){return r(function(){yY(t)&&SY(e)})}function yY(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!as(e,r)}catch{return!0}}function SY(e){var t=Sl(e,1);t!==null&&Ja(t,e,1,-1)}function WL(e){var t=Es();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Hm,lastRenderedState:e},t.queue=e,e=e.dispatch=Tde.bind(null,En,e),[t.memoizedState,e]}function Vm(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=En.updateQueue,t===null?(t={lastEffect:null,stores:null},En.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function CY(){return Ma().memoizedState}function Q1(e,t,r,n){var i=Es();En.flags|=e,i.memoizedState=Vm(1|t,r,void 0,n===void 0?null:n)}function Dw(e,t,r,n){var i=Ma();n=n===void 0?null:n;var o=void 0;if(Kn!==null){var a=Kn.memoizedState;if(o=a.destroy,n!==null&&LN(n,a.deps)){i.memoizedState=Vm(t,r,o,n);return}}En.flags|=e,i.memoizedState=Vm(1|t,r,o,n)}function qL(e,t){return Q1(8390656,8,e,t)}function zN(e,t){return Dw(2048,8,e,t)}function bY(e,t){return Dw(4,2,e,t)}function wY(e,t){return Dw(4,4,e,t)}function _Y(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function EY(e,t,r){return r=r!=null?r.concat([e]):null,Dw(4,4,_Y.bind(null,t,e),r)}function BN(){}function RY(e,t){var r=Ma();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&LN(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function PY(e,t){var r=Ma();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&LN(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function IY(e,t,r){return od&21?(as(r,t)||(r=MK(),En.lanes|=r,ad|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ro=!0),e.memoizedState=r)}function xde(e,t){var r=Gr;Gr=r!==0&&4>r?r:4,e(!0);var n=EP.transition;EP.transition={};try{e(!1),t()}finally{Gr=r,EP.transition=n}}function xY(){return Ma().memoizedState}function Ode(e,t,r){var n=bc(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},OY(e))TY(t,r);else if(r=uY(e,t,r,n),r!==null){var i=oo();Ja(r,e,n,i),AY(r,t,n)}}function Tde(e,t,r){var n=bc(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(OY(e))TY(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,s=o(a,r);if(i.hasEagerState=!0,i.eagerState=s,as(s,a)){var l=t.interleaved;l===null?(i.next=i,MN(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}r=uY(e,t,i,n),r!==null&&(i=oo(),Ja(r,e,n,i),AY(r,t,n))}}function OY(e){var t=e.alternate;return e===En||t!==null&&t===En}function TY(e,t){sm=JC=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function AY(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,yN(e,r)}}var ZC={readContext:Aa,useCallback:$i,useContext:$i,useEffect:$i,useImperativeHandle:$i,useInsertionEffect:$i,useLayoutEffect:$i,useMemo:$i,useReducer:$i,useRef:$i,useState:$i,useDebugValue:$i,useDeferredValue:$i,useTransition:$i,useMutableSource:$i,useSyncExternalStore:$i,useId:$i,unstable_isNewReconciler:!1},Ade={readContext:Aa,useCallback:function(e,t){return Es().memoizedState=[e,t===void 0?null:t],e},useContext:Aa,useEffect:qL,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Q1(4194308,4,_Y.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Q1(4194308,4,e,t)},useInsertionEffect:function(e,t){return Q1(4,2,e,t)},useMemo:function(e,t){var r=Es();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Es();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=Ode.bind(null,En,e),[n.memoizedState,e]}
vendor: 7,420 bytes, lines 38-40
38,useRef:function(e){var t=Es();return e={current:e},t.memoizedState=e},useState:WL,useDebugValue:BN,useDeferredValue:function(e){return Es().memoizedState=e},useTransition:function(){var e=WL(!1),t=e[0];return e=xde.bind(null,e[1]),Es().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=En,i=Es();if(Sn){if(r===void 0)throw Error(wt(407));r=r()}else{if(r=t(),oi===null)throw Error(wt(349));od&30||vY(n,t,r)}i.memoizedState=r;var o={value:r,getSnapshot:t};return i.queue=o,qL(mY.bind(null,n,o,e),[e]),n.flags|=2048,Vm(9,gY.bind(null,n,o,r,t),void 0,null),r},useId:function(){var e=Es(),t=oi.identifierPrefix;if(Sn){var r=ll,n=sl;r=(n&~(1<<32-Qa(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Bm++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=Ide++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Mde={readContext:Aa,useCallback:RY,useContext:Aa,useEffect:zN,useImperativeHandle:EY,useInsertionEffect:bY,useLayoutEffect:wY,useMemo:PY,useReducer:RP,useRef:CY,useState:function(){return RP(Hm)},useDebugValue:BN,useDeferredValue:function(e){var t=Ma();return IY(t,Kn.memoizedState,e)},useTransition:function(){var e=RP(Hm)[0],t=Ma().memoizedState;return[e,t]},useMutableSource:pY,useSyncExternalStore:hY,useId:xY,unstable_isNewReconciler:!1},$de={readContext:Aa,useCallback:RY,useContext:Aa,useEffect:zN,useImperativeHandle:EY,useInsertionEffect:bY,useLayoutEffect:wY,useMemo:PY,useReducer:PP,useRef:CY,useState:function(){return PP(Hm)},useDebugValue:BN,useDeferredValue:function(e){var t=Ma();return Kn===null?t.memoizedState=e:IY(t,Kn.memoizedState,e)},useTransition:function(){var e=PP(Hm)[0],t=Ma().memoizedState;return[e,t]},useMutableSource:pY,useSyncExternalStore:hY,useId:xY,unstable_isNewReconciler:!1};function Ua(e,t){if(e&&e.defaultProps){t=Rn({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function HA(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:Rn({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Lw={isMounted:function(e){return(e=e._reactInternals)?Rd(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=oo(),i=bc(e),o=ul(n,i);o.payload=t,r!=null&&(o.callback=r),t=Sc(e,o,i),t!==null&&(Ja(t,e,i,n),Y1(t,e,i))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=oo(),i=bc(e),o=ul(n,i);o.tag=1,o.payload=t,r!=null&&(o.callback=r),t=Sc(e,o,i),t!==null&&(Ja(t,e,i,n),Y1(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=oo(),n=bc(e),i=ul(r,n);i.tag=2,t!=null&&(i.callback=t),t=Sc(e,i,n),t!==null&&(Ja(t,e,n,r),Y1(t,e,n))}};function GL(e,t,r,n,i,o,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,o,a):t.prototype&&t.prototype.isPureReactComponent?!Nm(r,n)||!Nm(i,o):!0}function MY(e,t,r){var n=!1,i=Tc,o=t.contextType;return typeof o=="object"&&o!==null?o=Aa(o):(i=Io(t)?nd:Ki.current,n=t.contextTypes,o=(n=n!=null)?lp(e,i):Tc),t=new t(r,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Lw,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function KL(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&Lw.enqueueReplaceState(t,t.state,null)}function VA(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs={},$N(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=Aa(o):(o=Io(t)?nd:Ki.current,i.context=lp(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(HA(e,t,o,r),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Lw.enqueueReplaceState(i,i.state,null),XC(e,r,i,n),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function fp(e,t){try{var r="",n=t;do r+=sue(n),n=n.return;while(n);var i=r}catch(o){i=`
39Error generating stack: `+o.message+`
40`+o.stack}return{value:e,source:t,stack:i,digest:null}}function IP(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function UA(e,t){try{}catch(r){setTimeout(function(){throw r})}}var kde=typeof WeakMap=="function"?WeakMap:Map;function $Y(e,t,r){r=ul(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){tb||(tb=!0,eM=n),UA(e,t)},r}function kY(e,t,r){r=ul(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return n(i)},r.callback=function(){UA(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(r.callback=function(){UA(e,t),typeof n!="function"&&(Cc===null?Cc=new Set([this]):Cc.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),r}function YL(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new kde;var i=new Set;n.set(t,i)}else i=n.get(t),i===void 0&&(i=new Set,n.set(t,i));i.has(r)||(i.add(r),e=Kde.bind(null,e,t,r),t.then(e,e))}function XL(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function QL(e,t,r,n,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=ul(-1,1),t.tag=2,Sc(r,t,1))),r.lanes|=1),e)}var Nde=Il.ReactCurrentOwner,Ro=!1;function to(e,t,r,n){t.child=e===null?cY(t,null,r,n):up(t,e.child,r,n)}function JL(e,t,r,n,i){r=r.render;var o=t.ref;return Qf(t,i),n=jN(e,t,r,n,o,i),r=FN(),e!==null&&!Ro?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Cl(e,t,i)):(Sn&&r&&PN(t),t.flags|=1,to(e,t,n,i),t.child)}function ZL(e,t,r,n,i){if(e===null){var o=r.type;return typeof o=="function"&&!YN(o)&&o.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=o,NY(e,t,o,n,i)):(e=tC(r.type,null,n,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var a=o.memoizedProps;if(r=r.compare,r=r!==null?r:Nm,r(a,n)&&e.ref===t.ref)return Cl(e,t,i)}return t.flags|=1,e=wc(o,n),e.ref=t.ref,e.return=t,t.child=e}function NY(e,t,r,n,i){if(e!==null){var o=e.memoizedProps;if(Nm(o,n)&&e.ref===t.ref)if(Ro=!1,t.pendingProps=n=o,(e.lanes&i)!==0)e.flags&131072&&(Ro=!0);else return t.lanes=e.lanes,Cl(e,t,i)}return WA(e,t,r,n,i)}function DY(e,t,r){var n=t.pendingProps,i=n.children,o=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},sn(Mf,Vo),Vo|=r;else{if(!(r&1073741824))return e=o!==null?o.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,sn(Mf,Vo),Vo|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=o!==null?o.baseLanes:r,sn(Mf,Vo),Vo|=n}else o!==null?(n=o.baseLanes|r,t.memoizedState=null):n=r,sn(Mf,Vo),Vo|=n;return to(e,t,i,r),t.child}function LY(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}
vendor: 4,713 bytes, line 40
40function WA(e,t,r,n,i){var o=Io(r)?nd:Ki.current;return o=lp(t,o),Qf(t,i),r=jN(e,t,r,n,o,i),n=FN(),e!==null&&!Ro?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Cl(e,t,i)):(Sn&&n&&PN(t),t.flags|=1,to(e,t,r,i),t.child)}function e8(e,t,r,n,i){if(Io(r)){var o=!0;WC(t)}else o=!1;if(Qf(t,i),t.stateNode===null)J1(e,t),MY(t,r,n),VA(t,r,n,i),n=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=r.contextType;typeof c=="object"&&c!==null?c=Aa(c):(c=Io(r)?nd:Ki.current,c=lp(t,c));var d=r.getDerivedStateFromProps,u=typeof d=="function"||typeof a.getSnapshotBeforeUpdate=="function";u||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==n||l!==c)&&KL(t,a,n,c),ec=!1;var f=t.memoizedState;a.state=f,XC(t,n,a,i),l=t.memoizedState,s!==n||f!==l||Po.current||ec?(typeof d=="function"&&(HA(t,r,d,n),l=t.memoizedState),(s=ec||GL(t,r,s,n,f,l,c))?(u||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),a.props=n,a.state=l,a.context=c,n=s):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{a=t.stateNode,dY(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:Ua(t.type,s),a.props=c,u=t.pendingProps,f=a.context,l=r.contextType,typeof l=="object"&&l!==null?l=Aa(l):(l=Io(r)?nd:Ki.current,l=lp(t,l));var h=r.getDerivedStateFromProps;(d=typeof h=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==u||f!==l)&&KL(t,a,n,l),ec=!1,f=t.memoizedState,a.state=f,XC(t,n,a,i);var v=t.memoizedState;s!==u||f!==v||Po.current||ec?(typeof h=="function"&&(HA(t,r,h,n),v=t.memoizedState),(c=ec||GL(t,r,c,n,f,v,l)||!1)?(d||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(n,v,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(n,v,l)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=v),a.props=n,a.state=v,a.context=l,n=c):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),n=!1)}return qA(e,t,r,n,o,i)}function qA(e,t,r,n,i,o){LY(e,t);var a=(t.flags&128)!==0;if(!n&&!a)return i&&FL(t,r,!1),Cl(e,t,o);n=t.stateNode,Nde.current=t;var s=a&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&a?(t.child=up(t,e.child,null,o),t.child=up(t,null,s,o)):to(e,t,s,o),t.memoizedState=n.state,i&&FL(t,r,!0),t.child}function jY(e){var t=e.stateNode;t.pendingContext?jL(e,t.pendingContext,t.pendingContext!==t.context):t.context&&jL(e,t.context,!1),kN(e,t.containerInfo)}function t8(e,t,r,n,i){return cp(),xN(i),t.flags|=256,to(e,t,r,n),t.child}var GA={dehydrated:null,treeContext:null,retryLane:0};function KA(e){return{baseLanes:e,cachePool:null,transitions:null}}function FY(e,t,r){var n=t.pendingProps,i=_n.current,o=!1,a=(t.flags&128)!==0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),sn(_n,i&1),e===null)return zA(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=n.children,e=n.fallback,o?(n=t.mode,o=t.child,a={mode:"hidden",children:a},!(n&1)&&o!==null?(o.childLanes=0,o.pendingProps=a):o=zw(a,n,0,null),e=Ju(e,n,r,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=KA(r),t.memoizedState=GA,e):HN(t,a));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return Dde(e,t,a,n,s,i,r);if(o){o=n.fallback,a=t.mode,i=e.child,s=i.sibling;var l={mode:"hidden",children:n.children};return!(a&1)&&t.child!==i?(n=t.child,n.childLanes=0,n.pendingProps=l,t.deletions=null):(n=wc(i,l),n.subtreeFlags=i.subtreeFlags&14680064),s!==null?o=wc(s,o):(o=Ju(o,a,r,null),o.flags|=2),o.return=t,n.return=t,n.sibling=o,t.child=n,n=o,o=t.child,a=e.child.memoizedState,a=a===null?KA(r):{base
vendor: 6,063 bytes, line 40
40Lanes:a.baseLanes|r,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&~r,t.memoizedState=GA,n}return o=e.child,e=o.sibling,n=wc(o,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function HN(e,t){return t=zw({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function SS(e,t,r,n){return n!==null&&xN(n),up(t,e.child,null,r),e=HN(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Dde(e,t,r,n,i,o,a){if(r)return t.flags&256?(t.flags&=-257,n=IP(Error(wt(422))),SS(e,t,a,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=n.fallback,i=t.mode,n=zw({mode:"visible",children:n.children},i,0,null),o=Ju(o,i,a,null),o.flags|=2,n.return=t,o.return=t,n.sibling=o,t.child=n,t.mode&1&&up(t,e.child,null,a),t.child.memoizedState=KA(a),t.memoizedState=GA,o);if(!(t.mode&1))return SS(e,t,a,null);if(i.data==="$!"){if(n=i.nextSibling&&i.nextSibling.dataset,n)var s=n.dgst;return n=s,o=Error(wt(419)),n=IP(o,n,void 0),SS(e,t,a,n)}if(s=(a&e.childLanes)!==0,Ro||s){if(n=oi,n!==null){switch(a&-a){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(n.suspendedLanes|a)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,Sl(e,i),Ja(n,e,i,-1))}return KN(),n=IP(Error(wt(421))),SS(e,t,a,n)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Yde.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Go=yc(i.nextSibling),Yo=t,Sn=!0,Ka=null,e!==null&&(ba[wa++]=sl,ba[wa++]=ll,ba[wa++]=id,sl=e.id,ll=e.overflow,id=t),t=HN(t,n.children),t.flags|=4096,t)}function r8(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),BA(e.return,t,r)}function xP(e,t,r,n,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=r,o.tailMode=i)}function zY(e,t,r){var n=t.pendingProps,i=n.revealOrder,o=n.tail;if(to(e,t,n.children,r),n=_n.current,n&2)n=n&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&r8(e,r,t);else if(e.tag===19)r8(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(sn(_n,n),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(r=t.child,i=null;r!==null;)e=r.alternate,e!==null&&QC(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),xP(t,!1,i,r,o);break;case"backwards":for(r=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&QC(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}xP(t,!0,r,null,o);break;case"together":xP(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function J1(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Cl(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),ad|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(wt(153));if(t.child!==null){for(e=t.child,r=wc(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=wc(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function Lde(e,t,r){switch(t.tag){case 3:jY(t),cp();break;case 5:fY(t);break;case 1:Io(t.type)&&WC(t);break;case 4:kN(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,i=t.memoizedProps.value;sn(KC,n._currentValue),n._currentValue=i;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(sn(_n,_n.current&1),t.flags|=128,null):r&t.child.childLanes?FY(e,t,r):(sn(_n,_n.current&1),e=Cl(e,t,r),e!==null?e.sibling:null);sn(_n,_n.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return zY(e,t,r);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),sn(_n,_n.current),n)break;return null;case 22:case 23:return t.lanes=0,DY(e,t,r)}return Cl(e,t,r)}var BY,YA,HY,VY;BY=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};YA=function(){};HY=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,Hu($s.current);var o=null;switch(r){case"input":i=mA(e,i),n=mA(e,n),o=[];break;case"select":i=Rn({},i,{value:void 0}),n=Rn({},n,{value:void 0}),o=[];break;case"textarea":i=CA(e,i),n=CA(e,n),o=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=VC)}wA(r,n);var a;r=null;for(c in i)if(!n.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var s=i[c];for(a in s)s.hasOwnProperty(a)&&(r||(r={}),r[a]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(xm.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in n){var l=n[c];if(s=i!=null?i[c]:void 0,n.hasOwnProperty(c)&&l!==s&&(l!=null||s!=null))if(c==="style")if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(r||(r={}),r[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(r||(r={}),r[a]=l[a])}else r||(o||(o=[]),o.push(c,r)),r=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(o=o||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(xm.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&fn("scroll",e),o||s===l||(
vendor: 4,660 bytes, line 40
40o=[])):(o=o||[]).push(c,l))}r&&(o=o||[]).push("style",r);var c=o;(t.updateQueue=c)&&(t.flags|=4)}};VY=function(e,t,r,n){r!==n&&(t.flags|=4)};function xh(e,t){if(!Sn)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function ki(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags&14680064,n|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function jde(e,t,r){var n=t.pendingProps;switch(IN(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ki(t),null;case 1:return Io(t.type)&&UC(),ki(t),null;case 3:return n=t.stateNode,dp(),pn(Po),pn(Ki),DN(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(mS(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ka!==null&&(nM(Ka),Ka=null))),YA(e,t),ki(t),null;case 5:NN(t);var i=Hu(zm.current);if(r=t.type,e!==null&&t.stateNode!=null)HY(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(wt(166));return ki(t),null}if(e=Hu($s.current),mS(t)){n=t.stateNode,r=t.type;var o=t.memoizedProps;switch(n[Ps]=t,n[jm]=o,e=(t.mode&1)!==0,r){case"dialog":fn("cancel",n),fn("close",n);break;case"iframe":case"object":case"embed":fn("load",n);break;case"video":case"audio":for(i=0;i<Ug.length;i++)fn(Ug[i],n);break;case"source":fn("error",n);break;case"img":case"image":case"link":fn("error",n),fn("load",n);break;case"details":fn("toggle",n);break;case"input":dL(n,o),fn("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!o.multiple},fn("invalid",n);break;case"textarea":pL(n,o),fn("invalid",n)}wA(r,o),i=null;for(var a in o)if(o.hasOwnProperty(a)){var s=o[a];a==="children"?typeof s=="string"?n.textContent!==s&&(o.suppressHydrationWarning!==!0&&gS(n.textContent,s,e),i=["children",s]):typeof s=="number"&&n.textContent!==""+s&&(o.suppressHydrationWarning!==!0&&gS(n.textContent,s,e),i=["children",""+s]):xm.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&fn("scroll",n)}switch(r){case"input":lS(n),fL(n,o,!0);break;case"textarea":lS(n),hL(n);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(n.onclick=VC)}n=i,t.updateQueue=n,n!==null&&(t.flags|=4)}else{a=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=mK(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[Ps]=t,e[jm]=n,BY(e,t,!1,!1),t.stateNode=e;e:{switch(a=_A(r,n),r){case"dialog":fn("cancel",e),fn("close",e),i=n;break;case"iframe":case"object":case"embed":fn("load",e),i=n;break;case"video":case"audio":for(i=0;i<Ug.length;i++)fn(Ug[i],e);i=n;break;case"source":fn("error",e),i=n;break;case"img":case"image":case"link":fn("error",e),fn("load",e),i=n;break;case"details":fn("toggle",e),i=n;break;case"input":dL(e,n),i=mA(e,n),fn("invalid",e);break;case"option":i=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=Rn({},n,{value:void 0}),fn("invalid",e);break;case"textarea":pL(e,n),i=CA(e,n),fn("invalid",e);break;default:i=n}wA(r,i),s=i;for(o in s)if(s.hasOwnProperty(o)){var l=s[o];o==="style"?CK(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&yK(e,l)):o==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&Om(e,l):typeof l=="number"&&Om(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(xm.hasOwnProperty(o)?l!=null&&o==="onScroll"&&fn("scroll",e):l!=null&&fN(e,o,l,a))}switch(r){case"input":lS(e),fL(e,n,!1);break;case"textarea":lS(e),hL(e);break;case"option":n.value!=null&&e.setAttribute("value",""+Oc(n.value));break;case"select":e.multiple=!!n.multiple,o=n.value,o!=null?Gf(e,!!n.multiple,o,!1):n.defaultValue!=null&&Gf(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=VC)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}
vendor: 12,676 bytes, line 40
40return ki(t),null;case 6:if(e&&t.stateNode!=null)VY(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(wt(166));if(r=Hu(zm.current),Hu($s.current),mS(t)){if(n=t.stateNode,r=t.memoizedProps,n[Ps]=t,(o=n.nodeValue!==r)&&(e=Yo,e!==null))switch(e.tag){case 3:gS(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&gS(n.nodeValue,r,(e.mode&1)!==0)}o&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[Ps]=t,t.stateNode=n}return ki(t),null;case 13:if(pn(_n),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Sn&&Go!==null&&t.mode&1&&!(t.flags&128))sY(),cp(),t.flags|=98560,o=!1;else if(o=mS(t),n!==null&&n.dehydrated!==null){if(e===null){if(!o)throw Error(wt(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(wt(317));o[Ps]=t}else cp(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ki(t),o=!1}else Ka!==null&&(nM(Ka),Ka=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,t.mode&1&&(e===null||_n.current&1?Yn===0&&(Yn=3):KN())),t.updateQueue!==null&&(t.flags|=4),ki(t),null);case 4:return dp(),YA(e,t),e===null&&Dm(t.stateNode.containerInfo),ki(t),null;case 10:return AN(t.type._context),ki(t),null;case 17:return Io(t.type)&&UC(),ki(t),null;case 19:if(pn(_n),o=t.memoizedState,o===null)return ki(t),null;if(n=(t.flags&128)!==0,a=o.rendering,a===null)if(n)xh(o,!1);else{if(Yn!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=QC(e),a!==null){for(t.flags|=128,xh(o,!1),n=a.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)o=r,e=n,o.flags&=14680066,a=o.alternate,a===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,e=a.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return sn(_n,_n.current&1|2),t.child}e=e.sibling}o.tail!==null&&kn()>pp&&(t.flags|=128,n=!0,xh(o,!1),t.lanes=4194304)}else{if(!n)if(e=QC(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),xh(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!Sn)return ki(t),null}else 2*kn()-o.renderingStartTime>pp&&r!==1073741824&&(t.flags|=128,n=!0,xh(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(r=o.last,r!==null?r.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=kn(),t.sibling=null,r=_n.current,sn(_n,n?r&1|2:r&1),t):(ki(t),null);case 22:case 23:return GN(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Vo&1073741824&&(ki(t),t.subtreeFlags&6&&(t.flags|=8192)):ki(t),null;case 24:return null;case 25:return null}throw Error(wt(156,t.tag))}function Fde(e,t){switch(IN(t),t.tag){case 1:return Io(t.type)&&UC(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return dp(),pn(Po),pn(Ki),DN(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return NN(t),null;case 13:if(pn(_n),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(wt(340));cp()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return pn(_n),null;case 4:return dp(),null;case 10:return AN(t.type._context),null;case 22:case 23:return GN(),null;case 24:return null;default:return null}}var CS=!1,Ui=!1,zde=typeof WeakSet=="function"?WeakSet:Set,Dt=null;function Af(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Tn(e,t,n)}else r.current=null}function XA(e,t,r){try{r()}catch(n){Tn(e,t,n)}}var n8=!1;function Bde(e,t){if($A=zC,e=KK(),RN(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break e}var a=0,s=-1,l=-1,c=0,d=0,u=e,f=null;t:for(;;){for(var h;u!==r||i!==0&&u.nodeType!==3||(s=a+i),u!==o||n!==0&&u.nodeType!==3||(l=a+n),u.nodeType===3&&(a+=u.nodeValue.length),(h=u.firstChild)!==null;)f=u,u=h;for(;;){if(u===e)break t;if(f===r&&++c===i&&(s=a),f===o&&++d===n&&(l=a),(h=u.nextSibling)!==null)break;u=f,f=u.parentNode}u=h}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(kA={focusedElem:e,selectionRange:r},zC=!1,Dt=t;Dt!==null;)if(t=Dt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Dt=e;else for(;Dt!==null;){t=Dt;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var y=v.memoizedProps,g=v.memoizedState,m=t.stateNode,S=m.getSnapshotBeforeUpdate(t.elementType===t.type?y:Ua(t.type,y),g);m.__reactInternalSnapshotBeforeUpdate=S}break;case 3:var C=t.stateNode.containerInfo;C.nodeType===1?C.textContent="":C.nodeType===9&&C.documentElement&&C.removeChild(C.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(wt(163))}}catch(b){Tn(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,Dt=e;break}Dt=t.return}return v=n8,n8=!1,v}function lm(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&XA(t,r,o)}i=i.next}while(i!==n)}}function jw(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function QA(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function UY(e){var t=e.alternate;t!==null&&(e.alternate=null,UY(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ps],delete t[jm],delete t[LA],delete t[_de],delete t[Ede])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function WY(e){return e.tag===5||e.tag===3||e.tag===4}function i8(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||WY(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function JA(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=VC));else if(n!==4&&(e=e.child,e!==null))for(JA(e,t,r),e=e.sibling;e!==null;)JA(e,t,r),e=e.sibling}function ZA(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(ZA(e,t,r),e=e.sibling;e!==null;)ZA(e,t,r),e=e.sibling}var Si=null,Wa=!1;function Hl(e,t,r){for(r=r.child;r!==null;)qY(e,t,r),r=r.sibling}function qY(e,t,r){if(Ms&&typeof Ms.onCommitFiberUnmount=="function")try{Ms.onCommitFiberUnmount(Tw,r)}catch{}switch(r.tag){case 5:Ui||Af(r,t);case 6:var n=Si,i=Wa;Si=null,Hl(e,t,r),Si=n,Wa=i,Si!==null&&(Wa?(e=Si,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Si.removeChild(r.stateNode));break;case 18:Si!==null&&(Wa?(e=Si,r=r.stateNode,e.nodeType===8?bP(e.parentNode,r):e.nodeType===1&&bP(e,r),$m(e)):bP(Si,r.stateNode));break;case 4:n=Si,i=Wa,Si=r.stateNode.containerInfo,Wa=!0,Hl(e,t,r),Si=n,Wa=i;break;case 0:case 11:case 14:case 15:if(!Ui&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&XA(r,t,a),i=i.next}while(i!==n)}Hl(e,t,r);break;case 1:if(!Ui&&(Af(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){Tn(r,t,s)}Hl(e,t,r);break;case 21:Hl(e,t,r);break;case 22:r.mode&1?(Ui=(n=Ui)||r.memoizedState!==null,Hl(e,t,r),Ui=n):Hl(e,t,r);break;default:Hl(e,t,r)}}function o8(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new zde),t.forEach(function(n){var i=Xde.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function za(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var i=r[n];try{var o=e,a=t,s=a;e:for(;s!==null;){switch(s.tag){case 5:Si=s.stateNode,Wa=!1;break e;case 3:Si=s.stateNode.containerInfo,Wa=!0;break e;case 4:Si=s.stateNode.containerInfo,Wa=!0;break e}s=s.return}if(Si===null)throw Error(wt(160));qY(o,a,i),Si=null,Wa=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(c){Tn(i,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)GY(t,e),t=t.sibling}function GY(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(za(t,e),Cs(e),n&4){try{lm(3,e,e.return),jw(3,e)}catch(y){Tn(e,e.return,y)}try{lm(5,e,e.return)}catch(y){Tn(e,e.return,y)}}break;case 1:za(t,e),Cs(e),n&512&&r!==null&&Af(r,r.return);break;case 5:if(za(t,e),Cs(e),n&512&&r!==null&&Af(r,r.return),e.flags&32){var i=e.stateNode;try{Om(i,"")}catch(y){Tn(e,e.return,y)}}if(n&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,a=r!==null?r.memoizedProps:o,s=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{s==="input"&&o.type==="radio"&&o.name!=null&&vK(i,o),_A(s,a);var c=_A(s,o);for(a=0;a<l.length;a+=2){var d=l[a],u=l[a+1];d==="style"?CK(i,u):d==="dangerouslySetInnerHTML"?yK(i,u):d==="children"?Om(i,u):fN(i,d,u,c)}switch(s){case"input":yA(i,o);break;case"textarea":gK(i,o);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var h=o.value;h!=null?Gf(i,!!o.multiple,h,!1):f!==!!o.multiple&&(o.defaultValue!=null?Gf(i,!!o.multiple,o.defaultValue,!0):Gf(i,!!o.multiple,o.multiple?[]:"",!1))}i[jm]=o}catch(y){Tn(e,e.return,y)}}break;case 6:if(za(t,e),Cs(e),n&4){if(e.stateNode===null)throw Error(wt(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(y){Tn(e,e.return,y)}}break;case 3:if(za(t,e),Cs(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{$m(t.containerInfo)}catch(y){Tn(e,e.return,y)}break;case 4:za(t,e),Cs(e);break;case 13:za(t,e),Cs(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(WN=kn())),n&4&&o8(e);break;case 22:if(d=r!==null&&r.memoizedState!==null,e.mode&1?(Ui=(c=Ui)||d,za(t,e),Ui=c):za(t,e),Cs(e),n&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!d&&e.mode&1)for(Dt=e,d=e.child;d!==null;){for(u=Dt=d;Dt!==null;){switch(f=Dt,h=f.child,f.tag){case 0:case 11:case 14:case 15:lm(4,f,f.return);break;case 1:Af(f,f.return);var v=f.stateNode;if(typeof v.componentWillUnmount=="function"){n=f,r=f.return;try{t=n,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(y){Tn(n,r,y)}}break;case 5:Af(f,f.return);break;case 22:if(f.memoizedState!==null){s8(u);continue}}h!==null?(h.return=f,Dt=h):s8(u)}d=d.sibling}e:for(d=null,u=e;;){if(u.tag===5){if(d===null){d=u;try{i=u.stateNode,c?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(s=u.stateNode,l=u.memoizedProps.style,a=l!=null&&l.hasOwnProperty("display")?l.display:null,s.style.display=SK("display",a))}catch(y){Tn(e,e.return,y)}}}else if(u.tag===6){if(d===null)try{u.stateNode.nodeValue=c?"":u.memoizedProps}catch(y){Tn(e,e.return,y)}}else if((u.tag!==22&&u.tag!==23||u.memoizedState===null||u===e)&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===e)break e;for(;u.sibling===null;){if(u.return===null||u.return===e)break e;d===u&&(d=null),u=u.return}d===u&&(d=null),u.sibling.return=u.return,u=u.sibling}}break;case 19:za(t,e),Cs(e),n&4&&o8(e);break;case 21:break;default:za(t,e),Cs(e)}}function Cs(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(WY(r)){var n=r;break e}r=r.return}throw Error(wt(160))}switch(n.tag){case 5:var i=n.stateNode;n.flags&32&&(Om(i,""),n.flags&=-33);var o=i8(e);ZA(e,o,i);break;case 3:case 4:var a=n.stateNode.containerInfo,s=i8(e);JA(e,s,a);break;default:throw Error(wt(161))}}catch(l){Tn(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Hde(e,t,r){Dt=e,KY(e)}function KY(e,t,r){for(var n=(e.mode&1)!==0;Dt!==null;){var i=Dt,o=i.child;if(i.tag===22&&n){var a=i.memoizedState!==null||CS;
vendor: 10,391 bytes, line 40
40if(!a){var s=i.alternate,l=s!==null&&s.memoizedState!==null||Ui;s=CS;var c=Ui;if(CS=a,(Ui=l)&&!c)for(Dt=i;Dt!==null;)a=Dt,l=a.child,a.tag===22&&a.memoizedState!==null?l8(i):l!==null?(l.return=a,Dt=l):l8(i);for(;o!==null;)Dt=o,KY(o),o=o.sibling;Dt=i,CS=s,Ui=c}a8(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,Dt=o):a8(e)}}function a8(e){for(;Dt!==null;){var t=Dt;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ui||jw(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!Ui)if(r===null)n.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:Ua(t.type,r.memoizedProps);n.componentDidUpdate(i,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&UL(t,o,n);break;case 3:var a=t.updateQueue;if(a!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}UL(t,a,r)}break;case 5:var s=t.stateNode;if(r===null&&t.flags&4){r=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var d=c.memoizedState;if(d!==null){var u=d.dehydrated;u!==null&&$m(u)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(wt(163))}Ui||t.flags&512&&QA(t)}catch(f){Tn(t,t.return,f)}}if(t===e){Dt=null;break}if(r=t.sibling,r!==null){r.return=t.return,Dt=r;break}Dt=t.return}}function s8(e){for(;Dt!==null;){var t=Dt;if(t===e){Dt=null;break}var r=t.sibling;if(r!==null){r.return=t.return,Dt=r;break}Dt=t.return}}function l8(e){for(;Dt!==null;){var t=Dt;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{jw(4,t)}catch(l){Tn(t,r,l)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var i=t.return;try{n.componentDidMount()}catch(l){Tn(t,i,l)}}var o=t.return;try{QA(t)}catch(l){Tn(t,o,l)}break;case 5:var a=t.return;try{QA(t)}catch(l){Tn(t,a,l)}}}catch(l){Tn(t,t.return,l)}if(t===e){Dt=null;break}var s=t.sibling;if(s!==null){s.return=t.return,Dt=s;break}Dt=t.return}}var Vde=Math.ceil,eb=Il.ReactCurrentDispatcher,VN=Il.ReactCurrentOwner,Ta=Il.ReactCurrentBatchConfig,$r=0,oi=null,Vn=null,wi=0,Vo=0,Mf=Fc(0),Yn=0,Um=null,ad=0,Fw=0,UN=0,cm=null,wo=null,WN=0,pp=1/0,tl=null,tb=!1,eM=null,Cc=null,bS=!1,ac=null,rb=0,um=0,tM=null,Z1=-1,eC=0;function oo(){return $r&6?kn():Z1!==-1?Z1:Z1=kn()}function bc(e){return e.mode&1?$r&2&&wi!==0?wi&-wi:Pde.transition!==null?(eC===0&&(eC=MK()),eC):(e=Gr,e!==0||(e=window.event,e=e===void 0?16:FK(e.type)),e):1}function Ja(e,t,r,n){if(50<um)throw um=0,tM=null,Error(wt(185));Wy(e,r,n),(!($r&2)||e!==oi)&&(e===oi&&(!($r&2)&&(Fw|=r),Yn===4&&ic(e,wi)),xo(e,n),r===1&&$r===0&&!(t.mode&1)&&(pp=kn()+500,Nw&&zc()))}function xo(e,t){var r=e.callbackNode;Pue(e,t);var n=FC(e,e===oi?wi:0);if(n===0)r!==null&&mL(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&mL(r),t===1)e.tag===0?Rde(c8.bind(null,e)):iY(c8.bind(null,e)),bde(function(){!($r&6)&&zc()}),r=null;else{switch($K(n)){case 1:r=mN;break;case 4:r=TK;break;case 16:r=jC;break;case 536870912:r=AK;break;default:r=jC}r=rX(r,YY.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function YY(e,t){if(Z1=-1,eC=0,$r&6)throw Error(wt(327));var r=e.callbackNode;if(Jf()&&e.callbackNode!==r)return null;var n=FC(e,e===oi?wi:0);if(n===0)return null;if(n&30||n&e.expiredLanes||t)t=nb(e,n);else{t=n;var i=$r;$r|=2;var o=QY();(oi!==e||wi!==t)&&(tl=null,pp=kn()+500,Qu(e,t));do try{qde();break}catch(s){XY(e,s)}while(1);TN(),eb.current=o,$r=i,Vn!==null?t=0:(oi=null,wi=0,t=Yn)}if(t!==0){if(t===2&&(i=xA(e),i!==0&&(n=i,t=rM(e,i))),t===1)throw r=Um,Qu(e,0),ic(e,n),xo(e,kn()),r;if(t===6)ic(e,n);else{if(i=e.current.alternate,!(n&30)&&!Ude(i)&&(t=nb(e,n),t===2&&(o=xA(e),o!==0&&(n=o,t=rM(e,o))),t===1))throw r=Um,Qu(e,0),ic(e,n),xo(e,kn()),r;switch(e.finishedWork=i,e.finishedLanes=n,t){case 0:case 1:throw Error(wt(345));case 2:Au(e,wo,tl);break;case 3:if(ic(e,n),(n&130023424)===n&&(t=WN+500-kn(),10<t)){if(FC(e,0)!==0)break;if(i=e.suspendedLanes,(i&n)!==n){oo(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=DA(Au.bind(null,e,wo,tl),t);break}Au(e,wo,tl);break;case 4:if(ic(e,n),(n&4194240)===n)break;for(t=e.eventTimes,i=-1;0<n;){var a=31-Qa(n);o=1<<a,a=t[a],a>i&&(i=a),n&=~o}if(n=i,n=kn()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Vde(n/1960))-n,10<n){e.timeoutHandle=DA(Au.bind(null,e,wo,tl),n);break}Au(e,wo,tl);break;case 5:Au(e,wo,tl);break;default:throw Error(wt(329))}}}return xo(e,kn()),e.callbackNode===r?YY.bind(null,e):null}function rM(e,t){var r=cm;return e.current.memoizedState.isDehydrated&&(Qu(e,t).flags|=256),e=nb(e,t),e!==2&&(t=wo,wo=r,t!==null&&nM(t)),e}function nM(e){wo===null?wo=e:wo.push.apply(wo,e)}function Ude(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var i=r[n],o=i.getSnapshot;i=i.value;try{if(!as(o(),i))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ic(e,t){for(t&=~UN,t&=~Fw,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Qa(t),n=1<<r;e[r]=-1,t&=~n}}function c8(e){if($r&6)throw Error(wt(327));Jf();var t=FC(e,0);if(!(t&1))return xo(e,kn()),null;var r=nb(e,t);if(e.tag!==0&&r===2){var n=xA(e);n!==0&&(t=n,r=rM(e,n))}if(r===1)throw r=Um,Qu(e,0),ic(e,t),xo(e,kn()),r;if(r===6)throw Error(wt(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Au(e,wo,tl),xo(e,kn()),null}function qN(e,t){var r=$r;$r|=1;try{return e(t)}finally{$r=r,$r===0&&(pp=kn()+500,Nw&&zc())}}function sd(e){ac!==null&&ac.tag===0&&!($r&6)&&Jf();var t=$r;$r|=1;var r=Ta.transition,n=Gr;try{if(Ta.transition=null,Gr=1,e)return e()}finally{Gr=n,Ta.transition=r,$r=t,!($r&6)&&zc()}}function GN(){Vo=Mf.current,pn(Mf)}function Qu(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,Cde(r)),Vn!==null)for(r=Vn.return;r!==null;){var n=r;switch(IN(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&UC();break;case 3:dp(),pn(Po),pn(Ki),DN();break;case 5:NN(n);break;case 4:dp();break;case 13:pn(_n);break;case 19:pn(_n);break;case 10:AN(n.type._context);break;case 22:case 23:GN()}r=r.return}if(oi=e,Vn=e=wc(e.current,null),wi=Vo=t,Yn=0,Um=null,UN=Fw=ad=0,wo=cm=null,Bu!==null){for(t=0;t<Bu.length;t++)if(r=Bu[t],n=r.interleaved,n!==null){r.interleaved=null;var i=n.next,o=r.pending;if(o!==null){var a=o.next;o.next=i,n.next=a}r.pending=n}Bu=null}return e}function XY(e,t){do{var r=Vn;try{if(TN(),X1.current=ZC,JC){for(var n=En.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}JC=!1}if(od=0,ii=Kn=En=null,sm=!1,Bm=0,VN.current=null,r===null||r.return===null){Yn=1,Um=t,Vn=null;break}e:{var o=e,a=r.return,s=r,l=t;if(t=wi,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,d=s,u=d.tag;if(!(d.mode&1)&&(u===0||u===11||u===15)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=XL(a);if(h!==null){h.flags&=-257,QL(h,a,s,o,t),h.mode&1&&YL(o,c,t),t=h,l=c;var v=t.updateQueue;if(v===null){var y=new Set;y.add(l),t.updateQueue=y}else v.add(l);break e}else{if(!(t&1)){YL(o,c,t),KN();break e}l=Error(wt(426))}}else if(Sn&&s.mode&1){var g=XL(a);if(g!==null){!(g.flags&65536)&&(g.flags|=256),QL(g,a,s,o,t),xN(fp(l,s));break e}}o=l=fp(l,s),Yn!==4&&(Yn=2),cm===null?cm=[o]:cm.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var m=$Y(o,l,t);VL(o,m);break e;case 1:s=l;var S=o.type,C=o.stateNode;if(!(o.flags&128)&&(typeof S.getDerivedStateFromError=="function"||C!==null&&typeof C.componentDidCatch=="function"&&(Cc===null||!Cc.has(C)))){o.flags|=65536,t&=-t,o.lanes|=t;var b=kY(o,s,t);VL(o,b);break e}}o=o.return}while(o!==null)}ZY(r)}catch(w){t=w,Vn===r&&r!==null&&(Vn=r=r.return);continue}break}while(1)}function QY(){var e=eb.current;return eb.current=ZC,e===null?ZC:e}function KN(){(Yn===0||Yn===3||Yn===2)&&(Yn=4),oi===null||!(ad&268435455)&&!(Fw&268435455)||ic(oi,wi)}function nb(e,t){var r=$r;$r|=2;var n=QY();(oi!==e||wi!==t)&&(tl=null,Qu(e,t));do try{Wde();break}catch(i){XY(e,i)}while(1);if(TN(),$r=r,eb.current=n,Vn!==null)throw Error(wt(261));return oi=null,wi=0,Yn}function Wde(){for(;Vn!==null;)JY(Vn)}function qde(){for(;Vn!==null&&!mue();)JY(Vn)}function JY(e){var t=tX(e.alternate,e,Vo);e.memoizedProps=e.pendingProps,t===null?ZY(e):Vn=t,VN.current=null}function ZY(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=Fde(r,t),r!==null){r.flags&=32767,Vn=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Yn=6,Vn=null;return}}else if(r=jde(r,t,Vo),r!==null){Vn=r;return}if(t=t.sibling,t!==null){Vn=t;return}Vn=t=e}while(t!==null);Yn===0&&(Yn=5)}function Au(e,t,r){var n=Gr,i=Ta.transition;try{Ta.transition=null,Gr=1,Gde(e,t,r,n)}finally{Ta.transition=i,Gr=n}return null}function Gde(e,t,r,n){do Jf();while(ac!==null);if($r&6)throw Error(wt(327));r=e.finishedWork;var i=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(wt(177));e.callbackNode=null,e.callbackPriority=0;var o=r.lanes|r.childLanes;if(Iue(e,o),e===oi&&(Vn=oi=null,wi=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||bS||(bS=!0,rX(jC,function(){return Jf(),null})),o=(r.flags&15990)!==0,r.subtreeFlags&15990||o){o=Ta.transition,Ta.transition=null;var a=Gr;Gr=1;var s=$r;$r|=4,VN.current=null,Bde(e,r),GY(r,e),pde(kA),zC=!!$A,kA=$A=null,e.current=r,Hde(r),yue(),$r=s,Gr=a,Ta.transition=o}else e.current=r;if(bS&&(bS=!1,ac=e,rb=i),o=e.pendingLanes,o===0&&(Cc=null),bue(r.stateNode),xo(e,kn()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)i=t[r],n(i.value,{componentStack:i.stack,digest:i.digest});if(tb)throw tb=!1,e=eM,eM=null,e;return rb&1&&e.tag!==0&&Jf(),o=e.pendingLanes,o&1?e===tM?um++:(um=0,tM=e):um=0,zc(),null}function Jf(){if(ac!==null){var e=$K(rb),t=Ta.transition,r=Gr;try{if(Ta.transition=null,Gr=16>e?16:e,ac===null)var n=!1;else{if(e=ac,ac=null,rb=0,$r&6)throw Error(wt(331));var i=$r;for($r|=4,Dt=e.current;Dt!==null;){var o=Dt,a=o.child;
vendor: 6,258 bytes, line 40
40if(Dt.flags&16){var s=o.deletions;if(s!==null){for(var l=0;l<s.length;l++){var c=s[l];for(Dt=c;Dt!==null;){var d=Dt;switch(d.tag){case 0:case 11:case 15:lm(8,d,o)}var u=d.child;if(u!==null)u.return=d,Dt=u;else for(;Dt!==null;){d=Dt;var f=d.sibling,h=d.return;if(UY(d),d===c){Dt=null;break}if(f!==null){f.return=h,Dt=f;break}Dt=h}}}var v=o.alternate;if(v!==null){var y=v.child;if(y!==null){v.child=null;do{var g=y.sibling;y.sibling=null,y=g}while(y!==null)}}Dt=o}}if(o.subtreeFlags&2064&&a!==null)a.return=o,Dt=a;else e:for(;Dt!==null;){if(o=Dt,o.flags&2048)switch(o.tag){case 0:case 11:case 15:lm(9,o,o.return)}var m=o.sibling;if(m!==null){m.return=o.return,Dt=m;break e}Dt=o.return}}var S=e.current;for(Dt=S;Dt!==null;){a=Dt;var C=a.child;if(a.subtreeFlags&2064&&C!==null)C.return=a,Dt=C;else e:for(a=S;Dt!==null;){if(s=Dt,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:jw(9,s)}}catch(w){Tn(s,s.return,w)}if(s===a){Dt=null;break e}var b=s.sibling;if(b!==null){b.return=s.return,Dt=b;break e}Dt=s.return}}if($r=i,zc(),Ms&&typeof Ms.onPostCommitFiberRoot=="function")try{Ms.onPostCommitFiberRoot(Tw,e)}catch{}n=!0}return n}finally{Gr=r,Ta.transition=t}}return!1}function u8(e,t,r){t=fp(r,t),t=$Y(e,t,1),e=Sc(e,t,1),t=oo(),e!==null&&(Wy(e,1,t),xo(e,t))}function Tn(e,t,r){if(e.tag===3)u8(e,e,r);else for(;t!==null;){if(t.tag===3){u8(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Cc===null||!Cc.has(n))){e=fp(r,e),e=kY(t,e,1),t=Sc(t,e,1),e=oo(),t!==null&&(Wy(t,1,e),xo(t,e));break}}t=t.return}}function Kde(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=oo(),e.pingedLanes|=e.suspendedLanes&r,oi===e&&(wi&r)===r&&(Yn===4||Yn===3&&(wi&130023424)===wi&&500>kn()-WN?Qu(e,0):UN|=r),xo(e,t)}function eX(e,t){t===0&&(e.mode&1?(t=dS,dS<<=1,!(dS&130023424)&&(dS=4194304)):t=1);var r=oo();e=Sl(e,t),e!==null&&(Wy(e,t,r),xo(e,r))}function Yde(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),eX(e,r)}function Xde(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(wt(314))}n!==null&&n.delete(t),eX(e,r)}var tX;tX=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Po.current)Ro=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Ro=!1,Lde(e,t,r);Ro=!!(e.flags&131072)}else Ro=!1,Sn&&t.flags&1048576&&oY(t,GC,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;J1(e,t),e=t.pendingProps;var i=lp(t,Ki.current);Qf(t,r),i=jN(null,t,n,e,i,r);var o=FN();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Io(n)?(o=!0,WC(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,$N(t),i.updater=Lw,t.stateNode=i,i._reactInternals=t,VA(t,n,e,r),t=qA(null,t,n,!0,o,r)):(t.tag=0,Sn&&o&&PN(t),to(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(J1(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=Jde(n),e=Ua(n,e),i){case 0:t=WA(null,t,n,e,r);break e;case 1:t=e8(null,t,n,e,r);break e;case 11:t=JL(null,t,n,e,r);break e;case 14:t=ZL(null,t,n,Ua(n.type,e),r);break e}throw Error(wt(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Ua(n,i),WA(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Ua(n,i),e8(e,t,n,i,r);case 3:e:{if(jY(t),e===null)throw Error(wt(387));n=t.pendingProps,o=t.memoizedState,i=o.element,dY(e,t),XC(t,n,null,r);var a=t.memoizedState;if(n=a.element,o.isDehydrated)if(o={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=fp(Error(wt(423)),t),t=t8(e,t,n,r,i);break e}else if(n!==i){i=fp(Error(wt(424)),t),t=t8(e,t,n,r,i);break e}else for(Go=yc(t.stateNode.containerInfo.firstChild),Yo=t,Sn=!0,Ka=null,r=cY(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(cp(),n===i){t=Cl(e,t,r);break e}to(e,t,n,r)}t=t.child}return t;case 5:return fY(t),e===null&&zA(t),n=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,NA(n,i)?a=null:o!==null&&NA(n,o)&&(t.flags|=32),LY(e,t),to(e,t,a,r),t.child;case 6:return e===null&&zA(t),null;case 13:return FY(e,t,r);case 4:return kN(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=up(t,null,n,r):to(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Ua(n,i),JL(e,t,n,i,r);case 7:return to(e,t,t.pendingProps,r),t.child;case 8:return to(e,t,t.pendingProps.children,r),t.child;case 12:return to(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,sn(KC,n._currentValue),n._currentValue=a,o!==null)if(as(o.value,a)){if(o.children===i.children&&!Po.current){t=Cl(e,t,r);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){a=o.child;for(var l=s.firstContext;l!==null;){if(l.context===n){if(o.tag===1){l=ul(-1,r&-r),l.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?l.next=l:(l.next=d.next,d.next=l),c.pending=l}}o.lanes|=r,l=o.alternate,l!==null&&(l.lanes|=r),BA(o.return,r,t),s.lanes|=r;break}l=l.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(wt(341));a.lanes|=r,s=a.alternate,s!==null&&(s.lanes|=r),BA(a,r,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}to(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,Qf(t,r),i=Aa(i),n=n(i),t.flags|=1,to(e,t,n,r),t.child;case 14:return n=t.type,i=Ua(n,t.pendingProps),i=Ua(n.type,i),ZL(e,t,n,i,r);case 15:return NY(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Ua(n,i),J1(e,t),t.tag=1,Io(n)?(e=!0,WC(t)):e=!1,Qf(t,r),MY(t,n,i),VA(t,n,i,r),qA(null,t,n,!0,e,r);case 19:return zY(e,t,r);case 22:return DY(e,t,r)}throw Error(wt(156,t.tag))};function rX(e,t){return OK(e,t)}function Qde(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.t
vendor: 5,770 bytes, line 40
40ype=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Pa(e,t,r,n){return new Qde(e,t,r,n)}function YN(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Jde(e){if(typeof e=="function")return YN(e)?1:0;if(e!=null){if(e=e.$$typeof,e===hN)return 11;if(e===vN)return 14}return 2}function wc(e,t){var r=e.alternate;return r===null?(r=Pa(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function tC(e,t,r,n,i,o){var a=2;if(n=e,typeof e=="function")YN(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case wf:return Ju(r.children,i,o,t);case pN:a=8,i|=8;break;case pA:return e=Pa(12,r,t,i|2),e.elementType=pA,e.lanes=o,e;case hA:return e=Pa(13,r,t,i),e.elementType=hA,e.lanes=o,e;case vA:return e=Pa(19,r,t,i),e.elementType=vA,e.lanes=o,e;case fK:return zw(r,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case uK:a=10;break e;case dK:a=9;break e;case hN:a=11;break e;case vN:a=14;break e;case Zl:a=16,n=null;break e}throw Error(wt(130,e==null?e:typeof e,""))}return t=Pa(a,r,t,i),t.elementType=e,t.type=n,t.lanes=o,t}function Ju(e,t,r,n){return e=Pa(7,e,n,t),e.lanes=r,e}function zw(e,t,r,n){return e=Pa(22,e,n,t),e.elementType=fK,e.lanes=r,e.stateNode={isHidden:!1},e}function OP(e,t,r){return e=Pa(6,e,null,t),e.lanes=r,e}function TP(e,t,r){return t=Pa(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Zde(e,t,r,n,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=uP(0),this.expirationTimes=uP(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=uP(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function XN(e,t,r,n,i,o,a,s,l){return e=new Zde(e,t,r,s,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Pa(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},$N(o),e}function efe(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:bf,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function nX(e){if(!e)return Tc;e=e._reactInternals;e:{if(Rd(e)!==e||e.tag!==1)throw Error(wt(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Io(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(wt(171))}if(e.tag===1){var r=e.type;if(Io(r))return nY(e,r,t)}return t}function iX(e,t,r,n,i,o,a,s,l){return e=XN(r,n,!0,e,i,o,a,s,l),e.context=nX(null),r=e.current,n=oo(),i=bc(r),o=ul(n,i),o.callback=t??null,Sc(r,o,i),e.current.lanes=i,Wy(e,i,n),xo(e,n),e}function Bw(e,t,r,n){var i=t.current,o=oo(),a=bc(i);return r=nX(r),t.context===null?t.context=r:t.pendingContext=r,t=ul(o,a),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=Sc(i,t,a),e!==null&&(Ja(e,i,a,o),Y1(e,i,a)),a}function ib(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function d8(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function QN(e,t){d8(e,t),(e=e.alternate)&&d8(e,t)}function tfe(){return null}var oX=typeof reportError=="function"?reportError:function(e){};function JN(e){this._internalRoot=e}Hw.prototype.render=JN.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(wt(409));Bw(e,t,null,null)};Hw.prototype.unmount=JN.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;sd(function(){Bw(null,e,null,null)}),t[yl]=null}};function Hw(e){this._internalRoot=e}Hw.prototype.unstable_scheduleHydration=function(e){if(e){var t=DK();e={blockedOn:null,target:e,priority:t};for(var r=0;r<nc.length&&t!==0&&t<nc[r].priority;r++);nc.splice(r,0,e),r===0&&jK(e)}};function ZN(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Vw(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function f8(){}function rfe(e,t,r,n,i){if(i){if(typeof n=="function"){var o=n;n=function(){var c=ib(a);o.call(c)}}var a=iX(t,n,e,0,null,!1,!1,"",f8);return e._reactRootContainer=a,e[yl]=a.current,Dm(e.nodeType===8?e.parentNode:e),sd(),a}for(;i=e.lastChild;)e.removeChild(i);if(typeof n=="function"){var s=n;n=function(){var c=ib(l);s.call(c)}}var l=XN(e,0,!1,null,null,!1,!1,"",f8);return e._reactRootContainer=l,e[yl]=l.current,Dm(e.nodeType===8?e.parentNode:e),sd(function(){Bw(t,l,r,n)}),l}function Uw(e,t,r,n,i){var o=r._reactRootContainer;if(o){var a=o;if(typeof i=="function"){var s=i;i=function(){var l=ib(a);s.call(l)}}Bw(t,a,e,i)}else a=rfe(r,t,e,i,n);return ib(a)}kK=function(e){switch(e.tag){case 3:var t=e.stateNode;
vendor: 4,618 bytes, lines 40-49
40if(t.current.memoizedState.isDehydrated){var r=Vg(t.pendingLanes);r!==0&&(yN(t,r|1),xo(t,kn()),!($r&6)&&(pp=kn()+500,zc()))}break;case 13:sd(function(){var n=Sl(e,1);if(n!==null){var i=oo();Ja(n,e,1,i)}}),QN(e,1)}};SN=function(e){if(e.tag===13){var t=Sl(e,134217728);if(t!==null){var r=oo();Ja(t,e,134217728,r)}QN(e,134217728)}};NK=function(e){if(e.tag===13){var t=bc(e),r=Sl(e,t);if(r!==null){var n=oo();Ja(r,e,t,n)}QN(e,t)}};DK=function(){return Gr};LK=function(e,t){var r=Gr;try{return Gr=e,t()}finally{Gr=r}};RA=function(e,t,r){switch(t){case"input":if(yA(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var i=kw(n);if(!i)throw Error(wt(90));hK(n),yA(n,i)}}}break;case"textarea":gK(e,r);break;case"select":t=r.value,t!=null&&Gf(e,!!r.multiple,t,!1)}};_K=qN;EK=sd;var nfe={usingClientEntryPoint:!1,Events:[Gy,Pf,kw,bK,wK,qN]},Oh={findFiberByHostInstance:zu,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},ife={bundleType:Oh.bundleType,version:Oh.version,rendererPackageName:Oh.rendererPackageName,rendererConfig:Oh.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Il.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=IK(e),e===null?null:e.stateNode},findFiberByHostInstance:Oh.findFiberByHostInstance||tfe,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var wS=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!wS.isDisabled&&wS.supportsFiber)try{Tw=wS.inject(ife),Ms=wS}catch{}}Zo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=nfe;Zo.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ZN(t))throw Error(wt(200));return efe(e,t,null,r)};Zo.createRoot=function(e,t){if(!ZN(e))throw Error(wt(299));var r=!1,n="",i=oX;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=XN(e,1,!1,null,null,r,!1,n,i),e[yl]=t.current,Dm(e.nodeType===8?e.parentNode:e),new JN(t)};Zo.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(wt(188)):(e=Object.keys(e).join(","),Error(wt(268,e)));return e=IK(t),e=e===null?null:e.stateNode,e};Zo.flushSync=function(e){return sd(e)};Zo.hydrate=function(e,t,r){if(!Vw(t))throw Error(wt(200));return Uw(null,e,t,!0,r)};Zo.hydrateRoot=function(e,t,r){if(!ZN(e))throw Error(wt(405));var n=r!=null&&r.hydratedSources||null,i=!1,o="",a=oX;if(r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(o=r.identifierPrefix),r.onRecoverableError!==void 0&&(a=r.onRecoverableError)),t=iX(t,null,e,1,r??null,i,!1,o,a),e[yl]=t.current,Dm(e),n)for(e=0;e<n.length;e++)r=n[e],i=r._getVersion,i=i(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new Hw(t)};Zo.render=function(e,t,r){if(!Vw(t))throw Error(wt(200));return Uw(null,e,t,!1,r)};Zo.unmountComponentAtNode=function(e){if(!Vw(e))throw Error(wt(40));return e._reactRootContainer?(sd(function(){Uw(null,null,e,!1,function(){e._reactRootContainer=null,e[yl]=null})}),!0):!1};Zo.unstable_batchedUpdates=qN;Zo.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Vw(r))throw Error(wt(200));if(e==null||e._reactInternals===void 0)throw Error(wt(38));return Uw(e,t,r,!1,n)};Zo.version="18.3.1-next-f1338f8080-20240426";function aX(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(aX)}catch{}}aX(),aK.exports=Zo;var Qo=aK.exports;const Wm=Mo(Qo),ofe=KG({__proto__:null,default:Wm},[Qo]);var p8=Qo;dA.createRoot=p8.createRoot,dA.hydrateRoot=p8.hydrateRoot;/**
41 * @remix-run/router v1.23.0
42 *
43 * Copyright (c) Remix Software Inc.
44 *
45 * This source code is licensed under the MIT license found in the
46 * LICENSE.md file in the root directory of this source tree.
47 *
48 * @license MIT
49 */function yn(){return yn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
vendor: 3,101 bytes, line 49
49for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},yn.apply(this,arguments)}var $n;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})($n||($n={}));const h8="popstate";function afe(e){e===void 0&&(e={});function t(n,i){let{pathname:o,search:a,hash:s}=n.location;return qm("",{pathname:o,search:a,hash:s},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function r(n,i){return typeof i=="string"?i:Yy(i)}return lfe(t,r,null,e)}function Er(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function hp(e,t){if(!e)try{throw new Error(t)}catch{}}function sfe(){return Math.random().toString(36).substr(2,8)}function v8(e,t){return{usr:e.state,key:e.key,idx:t}}function qm(e,t,r,n){return r===void 0&&(r=null),yn({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?xl(t):t,{state:r,key:t&&t.key||n||sfe()})}function Yy(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function xl(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function lfe(e,t,r,n){n===void 0&&(n={});let{window:i=document.defaultView,v5Compat:o=!1}=n,a=i.history,s=$n.Pop,l=null,c=d();c==null&&(c=0,a.replaceState(yn({},a.state,{idx:c}),""));function d(){return(a.state||{idx:null}).idx}function u(){s=$n.Pop;let g=d(),m=g==null?null:g-c;c=g,l&&l({action:s,location:y.location,delta:m})}function f(g,m){s=$n.Push;let S=qm(y.location,g,m);r&&r(S,g),c=d()+1;let C=v8(S,c),b=y.createHref(S);try{a.pushState(C,"",b)}catch(w){if(w instanceof DOMException&&w.name==="DataCloneError")throw w;i.location.assign(b)}o&&l&&l({action:s,location:y.location,delta:1})}function h(g,m){s=$n.Replace;let S=qm(y.location,g,m);r&&r(S,g),c=d();let C=v8(S,c),b=y.createHref(S);a.replaceState(C,"",b),o&&l&&l({action:s,location:y.location,delta:0})}function v(g){let m=i.location.origin!=="null"?i.location.origin:i.location.href,S=typeof g=="string"?g:Yy(g);return S=S.replace(/ $/,"%20"),Er(m,"No window.location.(origin|href) available to create URL for href: "+S),new URL(S,m)}let y={get action(){return s},get location(){return e(i,a)},listen(g){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(h8,u),l=g,()=>{i.removeEventListener(h8,u),l=null}},createHref(g){return t(i,g)},createURL:v,encodeLocation(g){let m=v(g);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:f,replace:h,go(g){return a.go(g)}};return y}var qr;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(qr||(qr={}));const cfe=new Set(["lazy","caseSensitive","path","id","index","children"]);function ufe(e){return e.index===!0}function ob(e,t,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),e.map((i,o)=>{let a=[...r,String(o)],s=typeof i.id=="string"?i.id:a.join("-");if(Er(i.index!==!0||!i.children,"Cannot specify children on an index route"),Er(!n[s],'Found a route id collision on i
49d "'+s+`".  Route id's must be globally unique within Data Router usages`),ufe(i)){let l=yn({},i,t(i),{id:s});return n[s]=l,l}else{let l=yn({},i,t(i),{id:s,children:void 0});return n[s]=l,i.children&&(l.children=ob(i.children,t,a,n)),l}})}function $u(e,t,r){return r===void 0&&(r="/"),rC(e,t,r,!1)}function rC(e,t,r,n){let i=typeof t=="string"?xl(t):t,o=Xy(i.pathname||"/",r);if(o==null)return null;let a=sX(e);ffe(a);let s=null;for(let l=0;s==null&&l<a.length;++l){let c=_fe(o);s=bfe(a[l],c,n)}return s}function dfe(e,t){let{route:r,pathname:n,params:i}=e;return{id:r.id,pathname:n,params:i,data:t[r.id],handle:r.handle}}function sX(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");let i=(o,a,s)=>{let l={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};l.relativePath.startsWith("/")&&(Er(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let c=_c([n,l.relativePath]),d=r.concat(l);o.children&&o.children.length>0&&(Er(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),sX(o.children,t,d,c)),!(o.path==null&&!o.index)&&t.push({path:c,score:Sfe(c,o.index),routesMeta:d})};return e.forEach((o,a)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))i(o,a);else for(let l of lX(o.path))i(o,a,l)}),t}function lX(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,i=r.endsWith("?"),o=r.replace(/\?$/,"");if(n.length===0)return i?[o,""]:[o];let a=lX(n.join("/")),s=[];return s.push(...a.map(l=>l===""?o:[o,l].join("/"))),i&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function ffe(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:Cfe(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const pfe=/^:[\w-]+$/,hfe=3,vfe=2,gfe=1,mfe=10,yfe=-2,g8=e=>e==="*";function Sfe(e,t){let r=e.split("/"),n=r.length;return r.some(g8)&&(n+=yfe),t&&(n+=vfe),r.filter(i=>!g8(i)).reduce((i,o)=>i+(pfe.test(o)?hfe:o===""?gfe:mfe),n)}function Cfe(e,t){return e.length===t.length&&e.slice(0,-1).every((n,i)=>n===t[i])?e[e.length-1]-t[t.length-1]:0}function bfe(e,t,r){r===void 0&&(r=!1);let{routesMeta:n}=e,i={},o="/",a=[];for(let s=0;s<n.length;++s){let l=n[s],c=s===n.length-1,d=o==="/"?t:t.slice(o.length)||"/",u=m8({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},d),f=l.route;if(!u&&c&&r&&!n[n.length-1].route.index&&(u=m8({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},d)),!u)return null;
vendor: 43,138 bytes, lines 49-59
49Object.assign(i,u.params),a.push({params:i,pathname:_c([o,u.pathname]),pathnameBase:Pfe(_c([o,u.pathnameBase])),route:f}),u.pathnameBase!=="/"&&(o=_c([o,u.pathnameBase]))}return a}function m8(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=wfe(e.path,e.caseSensitive,e.end),i=t.match(r);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:n.reduce((c,d,u)=>{let{paramName:f,isOptional:h}=d;if(f==="*"){let y=s[u]||"";a=o.slice(0,o.length-y.length).replace(/(.)\/+$/,"$1")}const v=s[u];return h&&!v?c[f]=void 0:c[f]=(v||"").replace(/%2F/g,"/"),c},{}),pathname:o,pathnameBase:a,pattern:e}}function wfe(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),hp(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,l)=>(n.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),n]}function _fe(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return hp(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Xy(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function Efe(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:i=""}=typeof e=="string"?xl(e):e;return{pathname:r?r.startsWith("/")?r:Rfe(r,t):t,search:Ife(n),hash:xfe(i)}}function Rfe(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function AP(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"].  Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function cX(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function uX(e,t){let r=cX(e);return t?r.map((n,i)=>i===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function dX(e,t,r,n){n===void 0&&(n=!1);let i;typeof e=="string"?i=xl(e):(i=yn({},e),Er(!i.pathname||!i.pathname.includes("?"),AP("?","pathname","search",i)),Er(!i.pathname||!i.pathname.includes("#"),AP("#","pathname","hash",i)),Er(!i.search||!i.search.includes("#"),AP("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,s;if(a==null)s=r;else{let u=t.length-1;if(!n&&a.startsWith("..")){let f=a.split("/");for(;f[0]==="..";)f.shift(),u-=1;i.pathname=f.join("/")}s=u>=0?t[u]:"/"}let l=Efe(i,s),c=a&&a!=="/"&&a.endsWith("/"),d=(o||a===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(c||d)&&(l.pathname+="/"),l}const _c=e=>e.join("/").replace(/\/\/+/g,"/"),Pfe=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Ife=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,xfe=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class ab{constructor(t,r,n,i){i===void 0&&(i=!1),this.status=t,this.statusText=r||"",this.internal=i,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function Gm(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const fX=["post","put","patch","delete"],Ofe=new Set(fX),Tfe=["get",...fX],Afe=new Set(Tfe),Mfe=new Set([301,302,303,307,308]),$fe=new Set([307,308]),MP={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},kfe={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Th={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},e4=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Nfe=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),pX="remix-router-transitions";function Dfe(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",n=!r;Er(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let ae=e.detectErrorBoundary;i=ue=>({hasErrorBoundary:ae(ue)})}else i=Nfe;let o={},a=ob(e.routes,i,void 0,o),s,l=e.basename||"/",c=e.dataStrategy||zfe,d=e.patchRoutesOnNavigation,u=yn({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),f=null,h=new Set,v=null,y=null,g=null,m=e.hydrationData!=null,S=$u(a,e.history.location,l),C=!1,b=null;if(S==null&&!d){let ae=Co(404,{pathname:e.history.location.pathname}),{matches:ue,route:ve}=x8(a);S=ue,b={[ve.id]:ae}}S&&!e.hydrationData&&mt(S,a,e.history.location.pathname).active&&(S=null);let w;if(S)if(S.some(ae=>ae.route.lazy))w=!1;else if(!S.some(ae=>ae.route.loader))w=!0;else if(u.v7_partialHydration){let ae=e.hydrationData?e.hydrationData.loaderData:null,ue=e.hydrationData?e.hydrationData.errors:null;if(ue){let ve=S.findIndex(Ce=>ue[Ce.route.id]!==void 0);w=S.slice(0,ve+1).every(Ce=>!oM(Ce.route,ae,ue))}else w=S.every(ve=>!oM(ve.route,ae,ue))}else w=e.hydrationData!=null;else if(w=!1,S=[],u.v7_partialHydration){let ae=mt(null,a,e.history.location.pathname);ae.active&&ae.matches&&(C=!0,S=ae.matches)}let E,_={historyAction:e.history.action,location:e.history.location,matches:S,initialized:w,navigation:MP,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||b,fetchers:new Map,blockers:new Map},R=$n.Pop,P=!1,I,O=!1,A=new Map,x=null,T=!1,D=!1,k=[],j=new Set,N=new Map,L=0,M=-1,$=new Map,F=new Set,z=new Map,H=new Map,U=new Set,V=new Map,W=new Map,K;function Z(){if(f=e.history.listen(ae=>{let{action:ue,location:ve,delta:Ce}=ae;if(K){K(),K=void 0;return}hp(W.size===0||Ce!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs.  This can also happen if you are using createHashRouter and the user manually changes the URL.");let Fe=lt({currentLocation:_.location,nextLocation:ve,historyAction:ue});if(Fe&&Ce!=null){let Ze=new Promise(et=>{K=et});e.history.go(Ce*-1),We(Fe,{state:"blocked",location:ve,proceed(){We(Fe,{state:"proceeding",proceed:void 0,reset:void 0,location:ve}),Ze.then(()=>e.history.go(Ce))},reset(){let et=new Map(_.blockers);et.set(Fe,Th),G({blockers:et})}});return}return te(ue,ve)}),r){epe(t,A);let ae=()=>tpe(t,A);t.addEventListener("pagehide",ae),x=()=>t.removeEventListener("pagehide",ae)}return _.initialized||te($n.Pop,_.location,{initialHydration:!0}),E}function q(){f&&f(),x&&x(),h.clear(),I&&I.abort(),_.fetchers.forEach((ae,ue)=>Le(ue)),_.blockers.forEach((ae,ue)=>Ae(ue))}function Y(ae){return h.add(ae),()=>h.delete(ae)}function G(ae,ue){ue===void 0&&(ue={}),_=yn({},_,ae);let ve=[],Ce=[];u.v7_fetcherPersist&&_.fetchers.forEach((Fe,Ze)=>{Fe.state==="idle"&&(U.has(Ze)?Ce.push(Ze):ve.push(Ze))}),U.forEach(Fe=>{!_.fetchers.has(Fe)&&!N.has(Fe)&&Ce.push(Fe)}),[...h].forEach(Fe=>Fe(_,{deletedFetchers:Ce,viewTransitionOpts:ue.viewTransitionOpts,flushSync:ue.flushSync===!0})),u.v7_fetcherPersist?(ve.forEach(Fe=>_.fetchers.delete(Fe)),Ce.forEach(Fe=>Le(Fe))):Ce.forEach(Fe=>U.delete(Fe))}function re(ae,ue,ve){var Ce,Fe;let{flushSync:Ze}=ve===void 0?{}:ve,et=_.actionData!=null&&_.navigation.formMethod!=null&&qa(_.navigation.formMethod)&&_.navigation.state==="loading"&&((Ce=ae.state)==null?void 0:Ce._isRedirect)!==!0,tt;ue.actionData?Object.keys(ue.actionData).length>0?tt=ue.actionData:tt=null:et?tt=_.actionData:tt=null;let ot=ue.loaderData?P8(_.loaderData,ue.loaderData,ue.matches||[],ue.errors):_.loaderData,rt=_.blockers;rt.size>0&&(rt=new Map(rt),rt.forEach((we,Ie)=>rt.set(Ie,Th)));let ft=P===!0||_.navigation.formMethod!=null&&qa(_.navigation.formMethod)&&((Fe=ae.state)==null?void 0:Fe._isRedirect)!==!0;s&&(a=s,s=void 0),T||R===$n.Pop||(R===$n.Push?e.history.push(ae,ae.state):R===$n.Replace&&e.history.replace(ae,ae.state));let ge;if(R===$n.Pop){let we=A.get(_.location.pathname);we&&we.has(ae.pathname)?ge={currentLocation:_.location,nextLocation:ae}:A.has(ae.pathname)&&(ge={currentLocation:ae,nextLocation:_.location})}else if(O){let we=A.get(_.location.pathname);we?we.add(ae.pathname):(we=new Set([ae.pathname]),A.set(_.location.pathname,we)),ge={currentLocation:_.location,nextLocation:ae}}G(yn({},ue,{actionData:tt,loaderData:ot,historyAction:R,location:ae,initialized:!0,navigation:MP,revalidation:"idle",restoreScrollPosition:vt(ae,ue.matches||_.matches),preventScrollReset:ft,blockers:rt}),{viewTransitionOpts:ge,flushSync:Ze===!0}),R=$n.Pop,P=!1,O=!1,T=!1,D=!1,k=[]}async function ee(ae,ue){if(typeof ae=="number"){e.history.go(ae);return}let ve=iM(_.location,_.matches,l,u.v7_prependBasename,ae,u.v7_relativeSplatPath,ue==null?void 0:ue.fromRouteId,ue==null?void 0:ue.relative),{path:Ce,submission:Fe,error:Ze}=y8(u.v7_normalizeFormMethod,!1,ve,ue),et=_.location,tt=qm(_.location,Ce,ue&&ue.state);tt=yn({},tt,e.history.encodeLocation(tt));let ot=ue&&ue.replace!=null?ue.replace:void 0,rt=$n.Push;ot===!0?rt=$n.Replace:ot===!1||Fe!=null&&qa(Fe.formMethod)&&Fe.formAction===_.location.pathname+_.location.search&&(rt=$n.Replace);let ft=ue&&"preventScrollReset"in ue?ue.preventScrollReset===!0:void 0,ge=(ue&&ue.flushSync)===!0,we=lt({currentLocation:et,nextLocation:tt,historyAction:rt});if(we){We(we,{state:"blocked",location:tt,proceed(){We(we,{state:"proceeding",proceed:void 0,reset:void 0,location:tt}),ee(ae,ue)},reset(){let Ie=new Map(_.blockers);Ie.set(we,Th),G({blockers:Ie})}});return}return await te(rt,tt,{submission:Fe,pendingError:Ze,preventScrollReset:ft,replace:ue&&ue.replace,enableViewTransition:ue&&ue.viewTransition,flushSync:ge})}function ne(){if(ze(),G({revalidation:"loading"}),_.navigation.state!=="submitting"){if(_.navigation.state==="idle"){te(_.historyAction,_.location,{startUninterruptedRevalidation:!0});return}te(R||_.historyAction,_.navigation.location,{overrideNavigation:_.navigation,enableViewTransition:O===!0})}}async function te(ae,ue,ve){I&&I.abort(),I=null,R=ae,T=(ve&&ve.startUninterruptedRevalidation)===!0,Ye(_.location,_.matches),P=(ve&&ve.preventScrollReset)===!0,O=(ve&&ve.enableViewTransition)===!0;let Ce=s||a,Fe=ve&&ve.overrideNavigation,Ze=ve!=null&&ve.initialHydration&&_.matches&&_.matches.length>0&&!C?_.matches:$u(Ce,ue,l),et=(ve&&ve.flushSync)===!0;if(Ze&&_.initialized&&!D&&qfe(_.location,ue)&&!(ve&&ve.submission&&qa(ve.submission.formMethod))){re(ue,{matches:Ze},{flushSync:et});return}let tt=mt(Ze,Ce,ue.pathname);if(tt.active&&tt.matches&&(Ze=tt.matches),!Ze){let{error:Ne,notFoundMatches:Be,route:Xe}=yt(ue.pathname);re(ue,{matches:Be,loaderData:{},errors:{[Xe.id]:Ne}},{flushSync:et});return}I=new AbortController;let ot=Zd(e.history,ue,I.signal,ve&&ve.submission),rt;if(ve&&ve.pendingError)rt=[ku(Ze).route.id,{type:qr.error,error:ve.pendingError}];else if(ve&&ve.submission&&qa(ve.submission.formMethod)){let Ne=await pe(ot,ue,ve.submission,Ze,tt.active,{replace:ve.replace,flushSync:et});if(Ne.shortCircuited)return;if(Ne.pendingActionResult){let[Be,Xe]=Ne.pendingActionResult;if(Uo(Xe)&&Gm(Xe.error)&&Xe.error.status===404){I=null,re(ue,{matches:Ne.matches,loaderData:{},errors:{[Be]:Xe.error}});return}}Ze=Ne.matches||Ze,rt=Ne.pendingActionResult,Fe=$P(ue,ve.submission),et=!1,tt.active=!1,ot=Zd(e.history,ot.url,ot.signal)}let{shortCircuited:ft,matches:ge,loaderData:we,errors:Ie}=await le(ot,ue,Ze,tt.active,Fe,ve&&ve.submission,ve&&ve.fetcherSubmission,ve&&ve.replace,ve&&ve.initialHydration===!0,et,rt);ft||(I=null,re(ue,yn({matches:ge||Ze},I8(rt),{loaderData:we,errors:Ie})))}async function pe(ae,ue,ve,Ce,Fe,Ze){Ze===void 0&&(Ze={}),ze();let et=Jfe(ue,ve);if(G({navigation:et},{flushSync:Ze.flushSync===!0}),Fe){let rt=await St(Ce,ue.pathname,ae.signal);if(rt.type==="aborted")return{shortCircuited:!0};if(rt.type==="error"){let ft=ku(rt.partialMatches).route.id;return{matches:rt.partialMatches,pendingActionResult:[ft,{type:qr.error,error:rt.error}]}}else if(rt.matches)Ce=rt.matches;else{let{notFoundMatches:ft,error:ge,route:we}=yt(ue.pathname);return{matches:ft,pendingActionResult:[we.id,{type:qr.error,error:ge}]}}}let tt,ot=Wg(Ce,ue);if(!ot.route.action&&!ot.route.lazy)tt={type:qr.error,error:Co(405,{method:ae.method,pathname:ue.pathname,routeId:ot.route.id})};else if(tt=(await Pe("action",_,ae,[ot],Ce,null))[ot.route.id],ae.signal.aborted)return{shortCircuited:!0};if(Vu(tt)){let rt;return Ze&&Ze.replace!=null?rt=Ze.replace:rt=_8(tt.response.headers.get("Location"),new URL(ae.url),l)===_.location.pathname+_.location.search,await se(ae,tt,!0,{submission:ve,replace:rt}),{shortCircuited:!0}}if(sc(tt))throw Co(400,{type:"defer-action"});if(Uo(tt)){let rt=ku(Ce,ot.route.id);return(Ze&&Ze.replace)!==!0&&(R=$n.Push),{matches:Ce,pendingActionResult:[rt.route.id,tt]}}return{matches:Ce,pendingActionResult:[ot.route.id,tt]}}async function le(ae,ue,ve,Ce,Fe,Ze,et,tt,ot,rt,ft){let ge=Fe||$P(ue,Ze),we=Ze||et||T8(ge),Ie=!T&&(!u.v7_partialHydration||!ot);if(Ce){if(Ie){let Et=ye(ft);G(yn({navigation:ge},Et!==void 0?{actionData:Et}:{}),{flushSync:rt})}let dt=await St(ve,ue.pathname,ae.signal);if(dt.type==="aborted")return{shortCircuited:!0};if(dt.type==="error"){let Et=ku(dt.partialMatches).route.id;return{matches:dt.partialMatches,loaderData:{},errors:{[Et]:dt.error}}}else if(dt.matches)ve=dt.matches;else{let{error:Et,notFoundMatches:pr,route:br}=yt(ue.pathname);return{matches:pr,loaderData:{},errors:{[br.id]:Et}}}}let Ne=s||a,[Be,Xe]=C8(e.history,_,ve,we,ue,u.v7_partialHydration&&ot===!0,u.v7_skipActionErrorRevalidation,D,k,j,U,z,F,Ne,l,ft);if(nt(dt=>!(ve&&ve.some(Et=>Et.route.id===dt))||Be&&Be.some(Et=>Et.route.id===dt)),M=++L,Be.length===0&&Xe.length===0){let dt=Re();return re(ue,yn({matches:ve,loaderData:{},errors:ft&&Uo(ft[1])?{[ft[0]]:ft[1].error}:null},I8(ft),dt?{fetchers:new Map(_.fetchers)}:{}),{flushSync:rt}),{shortCircuited:!0}}if(Ie){let dt={};if(!Ce){dt.navigation=ge;let Et=ye(ft);Et!==void 0&&(dt.actionData=Et)}Xe.length>0&&(dt.fetchers=Se(Xe)),G(dt,{flushSync:rt})}Xe.forEach(dt=>{je(dt.key),dt.controller&&N.set(dt.key,dt.controller)});let He=()=>Xe.forEach(dt=>je(dt.key));I&&I.signal.addEventListener("abort",He);let{loaderResults:ct,fetcherResults:at}=await Te(_,ve,Be,Xe,ae);if(ae.signal.aborted)return{shortCircuited:!0};I&&I.signal.removeEventListener("abort",He),Xe.forEach(dt=>N.delete(dt.key));let Je=_S(ct);if(Je)return await se(ae,Je.result,!0,{replace:tt}),{shortCircuited:!0};if(Je=_S(at),Je)return F.add(Je.key),await se(ae,Je.result,!0,{replace:tt}),{shortCircuited:!0};let{loaderData:ut,errors:st}=R8(_,ve,ct,ft,Xe,at,V);V.forEach((dt,Et)=>{dt.subscribe(pr=>{(pr||dt.done)&&V.delete(Et)})}),u.v7_partialHydration&&ot&&_.errors&&(st=yn({},_.errors,st));let _t=Re(),zt=me(M),ht=_t||zt||Xe.length>0;return yn({matches:ve,loaderData:ut,errors:st},ht?{fetchers:new Map(_.fetchers)}:{})}function ye(ae){if(ae&&!Uo(ae[1]))return{[ae[0]]:ae[1].data};if(_.actionData)return Object.keys(_.actionData).length===0?null:_.actionData}function Se(ae){return ae.forEach(ue=>{let ve=_.fetchers.get(ue.key),Ce=Ah(void 0,ve?ve.data:void 0);_.fetchers.set(ue.key,Ce)}),new Map(_.fetchers)}function _e(ae,ue,ve,Ce){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");je(ae);let Fe=(Ce&&Ce.flushSync)===!0,Ze=s||a,et=iM(_.location,_.matches,l,u.v7_prependBasename,ve,u.v7_relativeSplatPath,ue,Ce==null?void 0:Ce.relative),tt=$u(Ze,et,l),ot=mt(tt,Ze,et);if(ot.active&&ot.matches&&(tt=ot.matches),!tt){Me(ae,ue,Co(404,{pathname:et}),{flushSync:Fe});return}let{path:rt,submission:ft,error:ge}=y8(u.v7_normalizeFormMethod,!0,et,Ce);if(ge){Me(ae,ue,ge,{flushSync:Fe});return}let we=Wg(tt,rt),Ie=(Ce&&Ce.preventScrollReset)===!0;if(ft&&qa(ft.formMethod)){De(ae,ue,rt,we,tt,ot.active,Fe,Ie,ft);return}z.set(ae,{routeId:ue,path:rt}),be(ae,ue,rt,we,tt,ot.active,Fe,Ie,ft)}async function De(ae,ue,ve,Ce,Fe,Ze,et,tt,ot){ze(),z.delete(ae);function rt(Yt){if(!Yt.route.action&&!Yt.route.lazy){let Ur=Co(405,{method:ot.formMethod,pathname:ve,routeId:ue});return Me(ae,ue,Ur,{flushSync:et}),!0}return!1}if(!Ze&&rt(Ce))return;let ft=_.fetchers.get(ae);ke(ae,Zfe(ot,ft),{flushSync:et});let ge=new AbortController,we=Zd(e.history,ve,ge.signal,ot);if(Ze){let Yt=await St(Fe,new URL(we.url).pathname,we.signal,ae);if(Yt.type==="aborted")return;if(Yt.type==="error"){Me(ae,ue,Yt.error,{flushSync:et});return}else if(Yt.matches){if(Fe=Yt.matches,Ce=Wg(Fe,ve),rt(Ce))return}else{Me(ae,ue,Co(404,{pathname:ve}),{flushSync:et});return}}N.set(ae,ge);let Ie=L,Be=(await Pe("action",_,we,[Ce],Fe,ae))[Ce.route.id];if(we.signal.aborted){N.get(ae)===ge&&N.delete(ae);return}if(u.v7_fetcherPersist&&U.has(ae)){if(Vu(Be)||Uo(Be)){ke(ae,Xl(void 0));return}}else{if(Vu(Be))if(N.delete(ae),M>Ie){ke(ae,Xl(void 0));return}else return F.add(ae),ke(ae,Ah(ot)),se(we,Be,!1,{fetcherSubmission:ot,preventScrollReset:tt});if(Uo(Be)){Me(ae,ue,Be.error);return}}if(sc(Be))throw Co(400,{type:"defer-action"});let Xe=_.navigation.location||_.location,He=Zd(e.history,Xe,ge.signal),ct=s||a,at=_.navigation.state!=="idle"?$u(ct,_.navigation.location,l):_.matches;Er(at,"Didn't find any matches after fetcher action");let Je=++L;$.set(ae,Je);let ut=Ah(ot,Be.data);_.fetchers.set(ae,ut);let[st,_t]=C8(e.history,_,at,ot,Xe,!1,u.v7_skipActionErrorRevalidation,D,k,j,U,z,F,ct,l,[Ce.route.id,Be]);_t.filter(Yt=>Yt.key!==ae).forEach(Yt=>{let Ur=Yt.key,tn=_.fetchers.get(Ur),Fn=Ah(void 0,tn?tn.data:void 0);_.fetchers.set(Ur,Fn),je(Ur),Yt.controller&&N.set(Ur,Yt.controller)}),G({fetchers:new Map(_.fetchers)});let zt=()=>_t.forEach(Yt=>je(Yt.key));ge.signal.addEventListener("abort",zt);let{loaderResults:ht,fetcherResults:dt}=await Te(_,at,st,_t,He);if(ge.signal.aborted)return;ge.signal.removeEventListener("abort",zt),$.delete(ae),N.delete(ae),_t.forEach(Yt=>N.delete(Yt.key));let Et=_S(ht);if(Et)return se(He,Et.result,!1,{preventScrollReset:tt});if(Et=_S(dt),Et)return F.add(Et.key),se(He,Et.result,!1,{preventScrollReset:tt});let{loaderData:pr,errors:br}=R8(_,at,ht,void 0,_t,dt,V);if(_.fetchers.has(ae)){let Yt=Xl(Be.data);_.fetchers.set(ae,Yt)}me(Je),_.navigation.state==="loading"&&Je>M?(Er(R,"Expected pending action"),I&&I.abort(),re(_.navigation.location,{matches:at,loaderData:pr,errors:br,fetchers:new Map(_.fetchers)})):(G({errors:br,loaderData:P8(_.loaderData,pr,at,br),fetchers:new Map(_.fetchers)}),D=!1)}async function be(ae,ue,ve,Ce,Fe,Ze,et,tt,ot){let rt=_.fetchers.get(ae);ke(ae,Ah(ot,rt?rt.data:void 0),{flushSync:et});let ft=new AbortController,ge=Zd(e.history,ve,ft.signal);if(Ze){let Be=await St(Fe,new URL(ge.url).pathname,ge.signal,ae);if(Be.type==="aborted")return;if(Be.type==="error"){Me(ae,ue,Be.error,{flushSync:et});return}else if(Be.matches)Fe=Be.matches,Ce=Wg(Fe,ve);else{Me(ae,ue,Co(404,{pathname:ve}),{flushSync:et});return}}N.set(ae,ft);let we=L,Ne=(await Pe("loader",_,ge,[Ce],Fe,ae))[Ce.route.id];if(sc(Ne)&&(Ne=await t4(Ne,ge.signal,!0)||Ne),N.get(ae)===ft&&N.delete(ae),!ge.signal.aborted){if(U.has(ae)){ke(ae,Xl(void 0));return}if(Vu(Ne))if(M>we){ke(ae,Xl(void 0));return}else{F.add(ae),await se(ge,Ne,!1,{preventScrollReset:tt});return}if(Uo(Ne)){Me(ae,ue,Ne.error);return}Er(!sc(Ne),"Unhandled fetcher deferred data"),ke(ae,Xl(Ne.data))}}async function se(ae,ue,ve,Ce){let{submission:Fe,fetcherSubmission:Ze,preventScrollReset:et,replace:tt}=Ce===void 0?{}:Ce;ue.response.headers.has("X-Remix-Revalidate")&&(D=!0);let ot=ue.response.headers.get("Location");Er(ot,"Expected a Location header on the redirect Response"),ot=_8(ot,new URL(ae.url),l);let rt=qm(_.location,ot,{_isRedirect:!0});if(r){let Be=!1;if(ue.response.headers.has("X-Remix-Reload-Document"))Be=!0;else if(e4.test(ot)){const Xe=e.history.createURL(ot);Be=Xe.origin!==t.location.origin||Xy(Xe.pathname,l)==null}if(Be){tt?t.location.replace(ot):t.location.assign(ot);return}}I=null;let ft=tt===!0||ue.response.headers.has("X-Remix-Replace")?$n.Replace:$n.Push,{formMethod:ge,formAction:we,formEncType:Ie}=_.navigation;!Fe&&!Ze&&ge&&we&&Ie&&(Fe=T8(_.navigation));let Ne=Fe||Ze;if($fe.has(ue.response.status)&&Ne&&qa(Ne.formMethod))await te(ft,rt,{submission:yn({},Ne,{formAction:ot}),preventScrollReset:et||P,enableViewTransition:ve?O:void 0});else{let Be=$P(rt,Fe);await te(ft,rt,{overrideNavigation:Be,fetcherSubmission:Ze,preventScrollReset:et||P,enableViewTransition:ve?O:void 0})}}async function Pe(ae,ue,ve,Ce,Fe,Ze){let et,tt={};try{et=await Bfe(c,ae,ue,ve,Ce,Fe,Ze,o,i)}catch(ot){return Ce.forEach(rt=>{tt[rt.route.id]={type:qr.error,error:ot}}),tt}for(let[ot,rt]of Object.entries(et))if(Gfe(rt)){let ft=rt.result;tt[ot]={type:qr.redirect,response:Ufe(ft,ve,ot,Fe,l,u.v7_relativeSplatPath)}}else tt[ot]=await Vfe(rt);return tt}async function Te(ae,ue,ve,Ce,Fe){let Ze=ae.matches,et=Pe("loader",ae,Fe,ve,ue,null),tt=Promise.all(Ce.map(async ft=>{if(ft.matches&&ft.match&&ft.controller){let we=(await Pe("loader",ae,Zd(e.history,ft.path,ft.controller.signal),[ft.match],ft.matches,ft.key))[ft.match.route.id];return{[ft.key]:we}}else return Promise.resolve({[ft.key]:{type:qr.error,error:Co(404,{pathname:ft.path})}})})),ot=await et,rt=(await tt).reduce((ft,ge)=>Object.assign(ft,ge),{});return await Promise.all([Xfe(ue,ot,Fe.signal,Ze,ae.loaderData),Qfe(ue,rt,Ce)]),{loaderResults:ot,fetcherResults:rt}}function ze(){D=!0,k.push(...nt()),z.forEach((ae,ue)=>{N.has(ue)&&j.add(ue),je(ue)})}function ke(ae,ue,ve){ve===void 0&&(ve={}),_.fetchers.set(ae,ue),G({fetchers:new Map(_.fetchers)},{flushSync:(ve&&ve.flushSync)===!0})}function Me(ae,ue,ve,Ce){Ce===void 0&&(Ce={});let Fe=ku(_.matches,ue);Le(ae),G({errors:{[Fe.route.id]:ve},fetchers:new Map(_.fetchers)},{flushSync:(Ce&&Ce.flushSync)===!0})}function qe(ae){return H.set(ae,(H.get(ae)||0)+1),U.has(ae)&&U.delete(ae),_.fetchers.get(ae)||kfe}function Le(ae){let ue=_.fetchers.get(ae);N.has(ae)&&!(ue&&ue.state==="loading"&&$.has(ae))&&je(ae),z.delete(ae),$.delete(ae),F.delete(ae),u.v7_fetcherPersist&&U.delete(ae),j.delete(ae),_.fetchers.delete(ae)}function xe(ae){let ue=(H.get(ae)||0)-1;ue<=0?(H.delete(ae),U.add(ae),u.v7_fetcherPersist||Le(ae)):H.set(ae,ue),G({fetchers:new Map(_.fetchers)})}function je(ae){let ue=N.get(ae);ue&&(ue.abort(),N.delete(ae))}function Ee(ae){for(let ue of ae){let ve=qe(ue),Ce=Xl(ve.data);_.fetchers.set(ue,Ce)}}function Re(){let ae=[],ue=!1;for(let ve of F){let Ce=_.fetchers.get(ve);Er(Ce,"Expected fetcher: "+ve),Ce.state==="loading"&&(F.delete(ve),ae.push(ve),ue=!0)}return Ee(ae),ue}function me(ae){let ue=[];for(let[ve,Ce]of $)if(Ce<ae){let Fe=_.fetchers.get(ve);Er(Fe,"Expected fetcher: "+ve),Fe.state==="loading"&&(je(ve),$.delete(ve),ue.push(ve))}return Ee(ue),ue.length>0}function ce(ae,ue){let ve=_.blockers.get(ae)||Th;return W.get(ae)!==ue&&W.set(ae,ue),ve}function Ae(ae){_.blockers.delete(ae),W.delete(ae)}function We(ae,ue){let ve=_.blockers.get(ae)||Th;Er(ve.state==="unblocked"&&ue.state==="blocked"||ve.state==="blocked"&&ue.state==="blocked"||ve.state==="blocked"&&ue.state==="proceeding"||ve.state==="blocked"&&ue.state==="unblocked"||ve.state==="proceeding"&&ue.state==="unblocked","Invalid blocker state transition: "+ve.state+" -> "+ue.state);let Ce=new Map(_.blockers);Ce.set(ae,ue),G({blockers:Ce})}function lt(ae){let{currentLocation:ue,nextLocation:ve,historyAction:Ce}=ae;if(W.size===0)return;W.size>1&&hp(!1,"A router only supports one blocker at a time");let Fe=Array.from(W.entries()),[Ze,et]=Fe[Fe.length-1],tt=_.blockers.get(Ze);if(!(tt&&tt.state==="proceeding")&&et({currentLocation:ue,nextLocation:ve,historyAction:Ce}))return Ze}function yt(ae){let ue=Co(404,{pathname:ae}),ve=s||a,{matches:Ce,route:Fe}=x8(ve);return nt(),{notFoundMatches:Ce,route:Fe,error:ue}}function nt(ae){let ue=[];return V.forEach((ve,Ce)=>{(!ae||ae(Ce))&&(ve.cancel(),ue.push(Ce),V.delete(Ce))}),ue}function it(ae,ue,ve){if(v=ae,g=ue,y=ve||null,!m&&_.navigation===MP){m=!0;let Ce=vt(_.location,_.matches);Ce!=null&&G({restoreScrollPosition:Ce})}return()=>{v=null,g=null,y=null}}function gt(ae,ue){return y&&y(ae,ue.map(Ce=>dfe(Ce,_.loaderData)))||ae.key}function Ye(ae,ue){if(v&&g){let ve=gt(ae,ue);v[ve]=g()}}function vt(ae,ue){if(v){let ve=gt(ae,ue),Ce=v[ve];if(typeof Ce=="number")return Ce}return null}function mt(ae,ue,ve){if(d)if(ae){if(Object.keys(ae[0].params).length>0)return{active:!0,matches:rC(ue,ve,l,!0)}}else return{active:!0,matches:rC(ue,ve,l,!0)||[]};return{active:!1,matches:null}}async function St(ae,ue,ve,Ce){if(!d)return{type:"success",matches:ae};let Fe=ae;for(;;){let Ze=s==null,et=s||a,tt=o;try{await d({signal:ve,path:ue,matches:Fe,fetcherKey:Ce,patch:(ft,ge)=>{ve.aborted||w8(ft,ge,et,tt,i)}})}catch(ft){return{type:"error",error:ft,partialMatches:Fe}}finally{Ze&&!ve.aborted&&(a=[...a])}if(ve.aborted)return{type:"aborted"};let ot=$u(et,ue,l);if(ot)return{type:"success",matches:ot};let rt=rC(et,ue,l,!0);if(!rt||Fe.length===rt.length&&Fe.every((ft,ge)=>ft.route.id===rt[ge].route.id))return{type:"success",matches:null};Fe=rt}}function pt(ae){o={},s=ob(ae,i,void 0,o)}function Rt(ae,ue){let ve=s==null;w8(ae,ue,s||a,o,i),ve&&(a=[...a],G({}))}return E={get basename(){return l},get future(){return u},get state(){return _},get routes(){return a},get window(){return t},initialize:Z,subscribe:Y,enableScrollRestoration:it,navigate:ee,fetch:_e,revalidate:ne,createHref:ae=>e.history.createHref(ae),encodeLocation:ae=>e.history.encodeLocation(ae),getFetcher:qe,deleteFetcher:xe,dispose:q,getBlocker:ce,deleteBlocker:Ae,patchRoutes:Rt,_internalFetchControllers:N,_internalActiveDeferreds:V,_internalSetRoutes:pt},E}function Lfe(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function iM(e,t,r,n,i,o,a,s){let l,c;if(a){l=[];for(let u of t)if(l.push(u),u.route.id===a){c=u;break}}else l=t,c=t[t.length-1];let d=dX(i||".",uX(l,o),Xy(e.pathname,r)||e.pathname,s==="path");if(i==null&&(d.search=e.search,d.hash=e.hash),(i==null||i===""||i===".")&&c){let u=r4(d.search);if(c.route.index&&!u)d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index";else if(!c.route.index&&u){let f=new URLSearchParams(d.search),h=f.getAll("index");f.delete("index"),h.filter(y=>y).forEach(y=>f.append("index",y));let v=f.toString();d.search=v?"?"+v:""}}return n&&r!=="/"&&(d.pathname=d.pathname==="/"?r:_c([r,d.pathname])),Yy(d)}function y8(e,t,r,n){if(!n||!Lfe(n))return{path:r};if(n.formMethod&&!Yfe(n.formMethod))return{path:r,error:Co(405,{method:n.formMethod})};let i=()=>({path:r,error:Co(400,{type:"invalid-body"})}),o=n.formMethod||"get",a=e?o.toUpperCase():o.toLowerCase(),s=gX(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!qa(a))return i();let f=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((h,v)=>{let[y,g]=v;return""+h+y+"="+g+`
50`},""):String(n.body);return{path:r,submission:{formMethod:a,formAction:s,formEncType:n.formEncType,formData:void 0,json:void 0,text:f}}}else if(n.formEncType==="application/json"){if(!qa(a))return i();try{let f=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:a,formAction:s,formEncType:n.formEncType,formData:void 0,json:f,text:void 0}}}catch{return i()}}}Er(typeof FormData=="function","FormData is not available in this environment");let l,c;if(n.formData)l=aM(n.formData),c=n.formData;else if(n.body instanceof FormData)l=aM(n.body),c=n.body;else if(n.body instanceof URLSearchParams)l=n.body,c=E8(l);else if(n.body==null)l=new URLSearchParams,c=new FormData;else try{l=new URLSearchParams(n.body),c=E8(l)}catch{return i()}let d={formMethod:a,formAction:s,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(qa(d.formMethod))return{path:r,submission:d};let u=xl(r);return t&&u.search&&r4(u.search)&&l.append("index",""),u.search="?"+l,{path:Yy(u),submission:d}}function S8(e,t,r){r===void 0&&(r=!1);let n=e.findIndex(i=>i.route.id===t);return n>=0?e.slice(0,r?n+1:n):e}function C8(e,t,r,n,i,o,a,s,l,c,d,u,f,h,v,y){let g=y?Uo(y[1])?y[1].error:y[1].data:void 0,m=e.createURL(t.location),S=e.createURL(i),C=r;o&&t.errors?C=S8(r,Object.keys(t.errors)[0],!0):y&&Uo(y[1])&&(C=S8(r,y[0]));let b=y?y[1].statusCode:void 0,w=a&&b&&b>=400,E=C.filter((R,P)=>{let{route:I}=R;if(I.lazy)return!0;if(I.loader==null)return!1;if(o)return oM(I,t.loaderData,t.errors);if(jfe(t.loaderData,t.matches[P],R)||l.some(x=>x===R.route.id))return!0;let O=t.matches[P],A=R;return b8(R,yn({currentUrl:m,currentParams:O.params,nextUrl:S,nextParams:A.params},n,{actionResult:g,actionStatus:b,defaultShouldRevalidate:w?!1:s||m.pathname+m.search===S.pathname+S.search||m.search!==S.search||hX(O,A)}))}),_=[];return u.forEach((R,P)=>{if(o||!r.some(T=>T.route.id===R.routeId)||d.has(P))return;let I=$u(h,R.path,v);if(!I){_.push({key:P,routeId:R.routeId,path:R.path,matches:null,match:null,controller:null});return}let O=t.fetchers.get(P),A=Wg(I,R.path),x=!1;f.has(P)?x=!1:c.has(P)?(c.delete(P),x=!0):O&&O.state!=="idle"&&O.data===void 0?x=s:x=b8(A,yn({currentUrl:m,currentParams:t.matches[t.matches.length-1].params,nextUrl:S,nextParams:r[r.length-1].params},n,{actionResult:g,actionStatus:b,defaultShouldRevalidate:w?!1:s})),x&&_.push({key:P,routeId:R.routeId,path:R.path,matches:I,match:A,controller:new AbortController})}),[E,_]}function oM(e,t,r){if(e.lazy)return!0;if(!e.loader)return!1;let n=t!=null&&t[e.id]!==void 0,i=r!=null&&r[e.id]!==void 0;return!n&&i?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!n&&!i}function jfe(e,t,r){let n=!t||r.route.id!==t.route.id,i=e[r.route.id]===void 0;return n||i}function hX(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function b8(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}function w8(e,t,r,n,i){var o;let a;if(e){let c=n[e];Er(c,"No route found to patch children into: routeId = "+e),c.children||(c.children=[]),a=c.children}else a=r;let s=t.filter(c=>!a.some(d=>vX(c,d))),l=ob(s,i,[e||"_","patch",String(((o=a)==null?void 0:o.length)||"0")],n);a.push(...l)}function vX(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((r,n)=>{var i;return(i=t.children)==null?void 0:i.some(o=>vX(r,o))}):!1}async function Ffe(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let i=r[e.id];Er(i,"No route found in manifest");let o={};for(let a in n){let l=i[a]!==void 0&&a!=="hasErrorBoundary";hp(!l,'Route "'+i.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!l&&!cfe.has(a)&&(o[a]=n[a])}Object.assign(i,o),Object.assign(i,yn({},t(i),{lazy:void 0}))}async function zfe(e){let{matches:t}=e,r=t.filter(i=>i.shouldLoad);return(await Promise.all(r.map(i=>i.resolve()))).reduce((i,o,a)=>Object.assign(i,{[r[a].route.id]:o}),{})}async function Bfe(e,t,r,n,i,o,a,s,l,c){let d=o.map(h=>h.route.lazy?Ffe(h.route,l,s):void 0),u=o.map((h,v)=>{let y=d[v],g=i.some(S=>S.route.id===h.route.id);return yn({},h,{shouldLoad:g,resolve:async S=>(S&&n.method==="GET"&&(h.route.lazy||h.route.loader)&&(g=!0),g?Hfe(t,n,h,y,S,c):Promise.resolve({type:qr.data,result:void 0}))})}),f=await e({matches:u,request:n,params:o[0].params,fetcherKey:a,context:c});try{await Promise.all(d)}catch{}return f}async function Hfe(e,t,r,n,i,o){let a,s,l=c=>{let d,u=new Promise((v,y)=>d=y);s=()=>d(),t.signal.addEventListener("abort",s);let f=v=>typeof c!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+r.route.id+"]"))):c({request:t,params:r.params,context:o},...v!==void 0?[v]:[]),h=(async()=>{try{return{type:"data",result:await(i?i(y=>f(y)):f())}}catch(v){return{type:"error",result:v}}})();return Promise.race([h,u])};try{let c=r.route[e];if(n)if(c){let d,[u]=await Promise.all([l(c).catch(f=>{d=f}),n]);if(d!==void 0)throw d;a=u}else if(await n,c=r.route[e],c)a=await l(c);else if(e==="action"){let d=new URL(t.url),u=d.pathname+d.search;throw Co(405,{method:t.method,pathname:u,routeId:r.route.id})}else return{type:qr.data,result:void 0};else if(c)a=await l(c);else{let d=new URL(t.url),u=d.pathname+d.search;throw Co(404,{pathname:u})}Er(a.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(c){return{type:qr.error,result:c}}finally{s&&t.signal.removeEventListener("abort",s)}return a}async function Vfe(e){let{result:t,type:r}=e;if(mX(t)){let u;try{let f=t.headers.get("Content-Type");f&&/\bapplication\/json\b/.test(f)?t.body==null?u=null:u=await t.json():u=await t.text()}catch(f){return{type:qr.error,error:f}}return r===qr.error?{type:qr.error,error:new ab(t.status,t.statusText,u),statusCode:t.status,headers:t.headers}:{type:qr.data,data:u,statusCode:t.status,headers:t.headers}}if(r===qr.error){if(O8(t)){var n,i;if(t.data instanceof Error){var o,a;return{type:qr.error,error:t.data,statusCode:(o=t.init)==null?void 0:o.status,headers:(a=t.init)!=null&&a.headers?new Headers(t.init.headers):void 0}}return{type:qr.error,error:new ab(((n=t.init)==null?void 0:n.status)||500,void 0,t.data),statusCode:Gm(t)?t.status:void 0,headers:(i=t.init)!=null&&i.headers?new Headers(t.init.headers):void 0}}return{type:qr.error,error:t,statusCode:Gm(t)?t.status:void 0}}if(Kfe(t)){var s,l;return{type:qr.deferred,deferredData:t,statusCode:(s=t.init)==null?void 0:s.status,headers:((l=t.init)==null?void 0:l.headers)&&new Headers(t.init.headers)}}if(O8(t)){var c,d;return{type:qr.data,data:t.data,statusCode:(c=t.init)==null?void 0:c.status,headers:(d=t.init)!=null&&d.headers?new Headers(t.init.headers):void 0}}return{type:qr.data,data:t}}function Ufe(e,t,r,n,i,o){let a=e.headers.get("Location");if(Er(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!e4.test(a)){let s=n.slice(0,n.findIndex(l=>l.route.id===r)+1);a=iM(new URL(t.url),s,i,!0,a,o),e.headers.set("Location",a)}return e}function _8(e,t,r){if(e4.test(e)){let n=e,i=n.startsWith("//")?new URL(t.protocol+n):new URL(n),o=Xy(i.pathname,r)!=null;if(i.origin===t.origin&&o)return i.pathname+i.search+i.hash}return e}function Zd(e,t,r,n){let i=e.createURL(gX(t)).toString(),o={signal:r};if(n&&qa(n.formMethod)){let{formMethod:a,formEncType:s}=n;o.method=a.toUpperCase(),s==="application/json"?(o.headers=new Headers({"Content-Type":s}),o.body=JSON.stringify(n.json)):s==="text/plain"?o.body=n.text:s==="application/x-www-form-urlencoded"&&n.formData?o.body=aM(n.formData):o.body=n.formData}return new Request(i,o)}function aM(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function E8(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function Wfe(e,t,r,n,i){let o={},a=null,s,l=!1,c={},d=r&&Uo(r[1])?r[1].error:void 0;return e.forEach(u=>{if(!(u.route.id in t))return;let f=u.route.id,h=t[f];if(Er(!Vu(h),"Cannot handle redirect results in processLoaderData"),Uo(h)){let v=h.error;if(d!==void 0&&(v=d,d=void 0),a=a||{},i)a[f]=v;else{let y=ku(e,f);a[y.route.id]==null&&(a[y.route.id]=v)}o[f]=void 0,l||(l=!0,s=Gm(h.error)?h.error.status:500),h.headers&&(c[f]=h.headers)}else sc(h)?(n.set(f,h.deferredData),o[f]=h.deferredData.data,h.statusCode!=null&&h.statusCode!==200&&!l&&(s=h.statusCode),h.headers&&(c[f]=h.headers)):(o[f]=h.data,h.statusCode&&h.statusCode!==200&&!l&&(s=h.statusCode),h.headers&&(c[f]=h.headers))}),d!==void 0&&r&&(a={[r[0]]:d},o[r[0]]=void 0),{loaderData:o,errors:a,statusCode:s||200,loaderHeaders:c}}function R8(e,t,r,n,i,o,a){let{loaderData:s,errors:l}=Wfe(t,r,n,a,!1);return i.forEach(c=>{let{key:d,match:u,controller:f}=c,h=o[d];if(Er(h,"Did not find corresponding fetcher result"),!(f&&f.signal.aborted))if(Uo(h)){let v=ku(e.matches,u==null?void 0:u.route.id);l&&l[v.route.id]||(l=yn({},l,{[v.route.id]:h.error})),e.fetchers.delete(d)}else if(Vu(h))Er(!1,"Unhandled fetcher revalidation redirect");else if(sc(h))Er(!1,"Unhandled fetcher deferred data");else{let v=Xl(h.data);e.fetchers.set(d,v)}}),{loaderData:s,errors:l}}function P8(e,t,r,n){let i=yn({},t);for(let o of r){let a=o.route.id;if(t.hasOwnProperty(a)?t[a]!==void 0&&(i[a]=t[a]):e[a]!==void 0&&o.route.loader&&(i[a]=e[a]),n&&n.hasOwnProperty(a))break}return i}function I8(e){return e?Uo(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function ku(e,t){return(t?e.slice(0,e.findIndex(n=>n.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function x8(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Co(e,t){let{pathname:r,routeId:n,method:i,type:o,message:a}=t===void 0?{}:t,s="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(s="Bad Request",i&&r&&n?l="You made a "+i+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":o==="defer-action"?l="defer() is not supported in actions":o==="invalid-body"&&(l="Unable to encode submission body")):e===403?(s="Forbidden",l='Route "'+n+'" does not match URL "'+r+'"'):e===404?(s="Not Found",l='No route matches URL "'+r+'"'):e===405&&(s="Method Not Allowed",i&&r&&n?l="You made a "+i.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":i&&(l='Invalid request method "'+i.toUpperCase()+'"')),new ab(e||500,s,new Error(l),!0)}function _S(e){let t=Object.entries(e);for(let r=t.length-1;r>=0;r--){let[n,i]=t[r];if(Vu(i))return{key:n,result:i}}}function gX(e){let t=typeof e=="string"?xl(e):e;return Yy(yn({},t,{hash:""}))}function qfe(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Gfe(e){return mX(e.result)&&Mfe.has(e.result.status)}function sc(e){return e.type===qr.deferred}function Uo(e){return e.type===qr.error}function Vu(e){return(e&&e.type)===qr.redirect}function O8(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function Kfe(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function mX(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Yfe(e){return Afe.has(e.toLowerCase())}function qa(e){return Ofe.has(e.toLowerCase())}async function Xfe(e,t,r,n,i){let o=Object.entries(t);for(let a=0;a<o.length;a++){let[s,l]=o[a],c=e.find(f=>(f==null?void 0:f.route.id)===s);if(!c)continue;let d=n.find(f=>f.route.id===c.route.id),u=d!=null&&!hX(d,c)&&(i&&i[c.route.id])!==void 0;sc(l)&&u&&await t4(l,r,!1).then(f=>{f&&(t[s]=f)})}}async function Qfe(e,t,r){for(let n=0;n<r.length;n++){let{key:i,routeId:o,controller:a}=r[n],s=t[i];e.find(c=>(c==null?void 0:c.route.id)===o)&&sc(s)&&(Er(a,"Expected an AbortController for revalidating fetcher deferred result"),await t4(s,a.signal,!0).then(c=>{c&&(t[i]=c)}))}}async function t4(e,t,r){if(r===void 0&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:qr.data,data:e.deferredData.unwrappedData}}catch(i){return{type:qr.error,error:i}}return{type:qr.data,data:e.deferredData.data}}}function r4(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Wg(e,t){let r=typeof t=="string"?xl(t).search:t.search;if(e[e.length-1].route.index&&r4(r||""))return e[e.length-1];let n=cX(e);return n[n.length-1]}function T8(e){let{formMethod:t,formAction:r,formEncType:n,text:i,formData:o,json:a}=e;if(!(!t||!r||!n)){if(i!=null)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:i};if(o!=null)return{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0};if(a!==void 0)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:a,text:void 0}}}function $P(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Jfe(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Ah(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Zfe(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Xl(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function epe(e,t){try{let r=e.sessionStorage.getItem(pX);if(r){let n=JSON.parse(r);for(let[i,o]of Object.entries(n||{}))o&&Array.isArray(o)&&t.set(i,new Set(o||[]))}}catch{}}function tpe(e,t){if(t.size>0){let r={};for(let[n,i]of t)r[n]=[...i];try{e.sessionStorage.setItem(pX,JSON.stringify(r))}catch(n){hp(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}/**
51 * React Router v6.30.1
52 *
53 * Copyright (c) Remix Software Inc.
54 *
55 * This source code is licensed under the MIT license found in the
56 * LICENSE.md file in the root directory of this source tree.
57 *
58 * @license MIT
59 */function Km(){return Km=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
vendor: 4,922 bytes, line 59
59for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Km.apply(this,arguments)}const Ww=p.createContext(null),yX=p.createContext(null),qw=p.createContext(null),Gw=p.createContext(null),Pd=p.createContext({outlet:null,matches:[],isDataRoute:!1}),SX=p.createContext(null);function Kw(){return p.useContext(Gw)!=null}function ta(){return Kw()||Er(!1),p.useContext(Gw).location}function CX(e){p.useContext(qw).static||p.useLayoutEffect(e)}function Vs(){let{isDataRoute:e}=p.useContext(Pd);return e?vpe():rpe()}function rpe(){Kw()||Er(!1);let e=p.useContext(Ww),{basename:t,future:r,navigator:n}=p.useContext(qw),{matches:i}=p.useContext(Pd),{pathname:o}=ta(),a=JSON.stringify(uX(i,r.v7_relativeSplatPath)),s=p.useRef(!1);return CX(()=>{s.current=!0}),p.useCallback(function(c,d){if(d===void 0&&(d={}),!s.current)return;if(typeof c=="number"){n.go(c);return}let u=dX(c,JSON.parse(a),o,d.relative==="path");e==null&&t!=="/"&&(u.pathname=u.pathname==="/"?t:_c([t,u.pathname])),(d.replace?n.replace:n.push)(u,d.state,d)},[t,n,a,o,e])}const npe=p.createContext(null);function ipe(e){let t=p.useContext(Pd).outlet;return t&&p.createElement(npe.Provider,{value:e},t)}function ope(e,t,r,n){Kw()||Er(!1);let{navigator:i}=p.useContext(qw),{matches:o}=p.useContext(Pd),a=o[o.length-1],s=a?a.params:{};a&&a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let c=ta(),d;if(t){var u;let g=typeof t=="string"?xl(t):t;l==="/"||(u=g.pathname)!=null&&u.startsWith(l)||Er(!1),d=g}else d=c;let f=d.pathname||"/",h=f;if(l!=="/"){let g=l.replace(/^\//,"").split("/");h="/"+f.replace(/^\//,"").split("/").slice(g.length).join("/")}let v=$u(e,{pathname:h}),y=upe(v&&v.map(g=>Object.assign({},g,{params:Object.assign({},s,g.params),pathname:_c([l,i.encodeLocation?i.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?l:_c([l,i.encodeLocation?i.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),o,r,n);return t&&y?p.createElement(Gw.Provider,{value:{location:Km({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:$n.Pop}},y):y}function ape(){let e=hpe(),t=Gm(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},o=null;return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),r?p.createElement("pre",{style:i},r):null,o)}const spe=p.createElement(ape,null);class lpe extends p.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){}render(){return this.state.error!==void 0?p.createElement(Pd.Provider,{value:this.props.routeContext},p.createElement(SX.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function cpe(e){let{routeContext:t,match:r,children:n}=e,i=p.useContext(Ww);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),p.createElement(Pd.Provider,{value:t},n)}function upe(e,t,r,n){var i;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var o;if(!r)return null;if(r.errors)e=r.matches;else if((o=n)!=null&&o.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let a=e,s=(i=r)==null?void 0:i.errors;if(s!=null){let d=a.findIndex(u=>u.route.id&&(s==null?void 0:s[u.route.id])!==void 0);d>=0||Er(!1),a=a.slice(0,Math.min(a.length,d+1))}let l=!1,c=-1;if(r&&n&&n.v7_partialHydration)for(let d=0;d<a.length;d++){let u=a[d];if((u.route.HydrateFallback||u.route.hydrateFallbackElement)&&(c=d),u.route.id){let{loaderData:f,errors:h}=r,v=u.route.loader&&f[u.route.id]===void 0&&(!h||h[u.route.id]===void 0);if(u.route.lazy||v){l=!0,c>=0?a=a.slice(0,c+1):a=[a[0]];break}}}return a.reduceRight((d,u,f)=>{let h,v=!1,y=null,g=null;r&&(h=s&&u.route.id?s[u.route.id]:void 0,y=u.route.errorElement||spe,l&&(c<0&&f===0?(gpe("route-fallback",!1),v=!0,g=null):c===f&&(v=!0,g=u.route.hydrateFallbackElement||null)));let m=t.concat(a.slice(0,f+1)),S=()=>{let C;return h?C=y:v?C=g:u.route.Component?C=p.createElement(u.route.Component,null):u.route.element?C=u.route.element:C=d,p.createElement(cpe,{match:u,routeContext:{outlet:d,matches:m,isDataRoute:r!=null},children:C})};return r&&(u.route.ErrorBoundary||u.route.errorElement||f===0)?p.createElement(lpe,{location:r.location,revalidation:r.revalidation,component:y,error:h,children:S(),routeC
59ontext:{outlet:null,matches:m,isDataRoute:!0}}):S()},null)}var bX=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(bX||{}),sb=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(sb||{});function dpe(e){let t=p.useContext(Ww);return t||Er(!1),t}function fpe(e){let t=p.useContext(yX);return t||Er(!1),t}function ppe(e){let t=p.useContext(Pd);return t||Er(!1),t}function wX(e){let t=ppe(),r=t.matches[t.matches.length-1];return r.route.id||Er(!1),r.route.id}function hpe(){var e;let t=p.useContext(SX),r=fpe(sb.UseRouteError),n=wX(sb.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function vpe(){let{router:e}=dpe(bX.UseNavigateStable),t=wX(sb.UseNavigateStable),r=p.useRef(!1);return CX(()=>{r.current=!0}),p.useCallback(function(i,o){o===void 0&&(o={}),r.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Km({fromRouteId:t},o)))},[e,t])}const A8={};function gpe(e,t,r){!t&&!A8[e]&&(A8[e]=!0)}function mpe(e,t){e==null||e.v7_startTransition,(e==null?void 0:e.v7_relativeSplatPath)===void 0&&(!t||t.v7_relativeSplatPath),t&&(t.v7_fetcherPersist,t.v7_normalizeFormMethod,t.v7_partialHydration,t.v7_skipActionErrorRevalidation)}const ype="startTransition",M8=Uy[ype];function Spe(e){let{fallbackElement:t,router:r,future:n}=e,[i,o]=p.useState(r.state),{v7_startTransition:a}=n||{},s=p.useCallback(u=>{a&&M8?M8(()=>o(u)):o(u)},[o,a]);p.useLayoutEffect(()=>r.subscribe(s),[r,s]),p.useEffect(()=>{},[]);let l=p.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:u=>r.navigate(u),push:(u,f,h)=>r.navigate(u,{state:f,preventScrollReset:h==null?void 0:h.preventScrollReset}),replace:(u,f,h)=>r.navigate(u,{replace:!0,state:f,preventScrollReset:h==null?void 0:h.preventScrollReset})}),[r]),c=r.basename||"/",d=p.useMemo(()=>({router:r,navigator:l,static:!1,basename:c}),[r,l,c]);return p.useEffect(()=>mpe(n,r.future),[r,n]),p.createElement(p.Fragment,null,p.createElement(Ww.Provider,{value:d},p.createElement(yX.Provider,{value:i},p.createElement(bpe,{basename:c,location:i.location,navigationType:i.historyAction,navigator:l,future:{v7_relativeSplatPath:r.future.v7_relativeSplatPath}},i.initialized||r.future.v7_partialHydration?p.createElement(Cpe,{routes:r.routes,future:r.future,state:i}):t))),null)}function Cpe(e){let{routes:t,future:r,state:n}=e;return ope(t,void 0,n,r)}function sM(e){return ipe(e.context)}function bpe(e){let{basename:t="/",children:r=null,location:n,navigationType:i=$n.Pop,navigator:o,static:a=!1,future:s}=e;Kw()&&Er(!1);let l=t.replace(/^\/*/,"/"),c=p.useMemo(()=>({basename:l,navigator:o,static:a,future:Km({v7_relativeSplatPath:!1},s)}),[l,s,o,a]);typeof n=="string"&&(n=xl(n));let{pathname:d="/",search:u="",hash:f="",state:h=null,key:v="default"}=n,y=p.useMemo(()=>{let g=Xy(d,l);return g==null?null:{location:{pathname:g,search:u,hash:f,state:h,key:v},navigationType:i}},[l,d,u,f,h,v,i]);return y==null?null:p.createElement(qw.Provider,{value:c},p.createElement(Gw.Provider,{children:r,value:y}))}new Promise(()=>{});function wpe(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:p.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:p.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:p.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/**
60 * React Router DOM v6.30.1
61 *
62 * Copyright (c) Remix Software Inc.
63 *
64 * This source code is licensed under the MIT license found in the
65 * LICENSE.md file in the root directory of this source tree.
66 *
67 * @license MIT
68 */function lb(){return lb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
68for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},lb.apply(this,arguments)}const _pe="6";try{window.__reactRouterVersion=_pe}catch{}function Epe(e,t){return Dfe({basename:t==null?void 0:t.basename,future:lb({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:afe({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||Rpe(),routes:e,mapRouteProperties:wpe,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function Rpe(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=lb({},t,{errors:Ppe(t.errors)})),t}function Ppe(e){if(!e)return null;let t=Object.entries(e),r={};for(let[n,i]of t)if(i&&i.__type==="RouteErrorResponse")r[n]=new ab(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let o=window[i.__subType];if(typeof o=="function")try{let a=new o(i.message);a.stack="",r[n]=a}catch{}}if(r[n]==null){let o=new Error(i.message);o.stack="",r[n]=o}}else r[n]=i;return r}var $8;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})($8||($8={}));var k8;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(k8||(k8={}));const Ipe="_SitePc_19r8h_1",xpe="_navbar_19r8h_7",Ope="_container_19r8h_51",kP={SitePc:Ipe,navbar:xpe,container:Ope},Tpe="_LeftNav_hn12u_1",Ape="_NoLabel_hn12u_21",Mpe="_NavIcon_hn12u_31",$pe="_NavList_hn12u_42",kpe="_NavItem_hn12u_49",Npe="_NavItemActive_hn12u_68",Dpe="_HasLabel_hn12u_77",Lpe="_icon_hn12u_123",jpe="_iconLabel_hn12u_130",Fpe="_NavFoot_hn12u_153",zpe="_title_hn12u_159",Bpe="_NavDropLogo_hn12u_173",Hpe="_NavDropList_hn12u_178",Vpe="_NavDropItem_hn12u_184",Upe="_NavDropicon_hn12u_200",Wpe="_NavDropiconLabel_hn12u_209",qpe="_NavDropItemActive_hn12u_215",ua={LeftNav:Tpe,NoLabel:Ape,NavIcon:Mpe,NavList:$pe,NavItem:kpe,NavItemActive:Npe,HasLabel:Dpe,icon:Lpe,iconLabel:jpe,NavFoot:Fpe,title:zpe,NavDropLogo:Bpe,NavDropList:Hpe,NavDropItem:Vpe,NavDropicon:Upe,NavDropiconLabel:Wpe,NavDropItemActive:qpe};var _X={exports:{}};/*!
69	Copyright (c) 2018 Jed Watson.
70	Licensed under the MIT License (MIT), see
71	http://jedwatson.github.io/classnames
72*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var o="",a=0;a<arguments.length;a++){var s=arguments[a];s&&(o=i(o,n(s)))}return o}function n(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return r.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var a="";for(var s in o)t.call(o,s)&&o[s]&&(a=i(a,s));return a}function i(o,a){return a?o?o+" "+a:o+a:o}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(_X);var Gpe=_X.exports;const ie=Mo(Gpe),Kpe=()=>B("svg",{viewBox:"0 0 32 31",xmlns:"http://www.w3.org/2000/svg",children:B("path",{d:"M16 0C24.8364 0 32 6.83782 32 15.2727C32 23.7076 24.8364 30.5455 16 30.5455C13.2289 30.5525 10.5005 29.8623 8.06618 28.5382L4.09818 30.2647C3.85044 30.3724 3.57761 30.409 3.31026 30.3703C3.0429 30.3317 2.79159 30.2194 2.58449 30.0459C2.37738 29.8725 2.22267 29.6448 2.13767 29.3884C2.05268 29.132 2.04077 28.857 2.10327 28.5942L3.11782 24.3324C1.15782 21.7978 0 18.664 0 15.2727C0 6.83782 7.16364 0 16 0ZM16 2.18182C8.34618 2.18182 2.18182 8.06545 2.18182 15.2727C2.18182 17.9855 3.05309 20.5716 4.65527 22.7484L4.84364 22.9978L5.48145 23.8225L4.56218 27.6829L8.17527 26.112L9.112 26.624C11.1884 27.7578 13.5447 28.3636 16 28.3636C23.6538 28.3636 29.8182 22.48 29.8182 15.2727C29.8182 8.06545 23.6538 2.18182 16 2.18182ZM10.624 13.8182C11.0098 13.8182 11.3797 13.9714 11.6525 14.2442C11.9253 14.517 12.0785 14.887 12.0785 15.2727C12.0785 15.6585 11.9253 16.0285 11.6525 16.3012C11.3797 16.574 11.0098 16.7273 10.624 16.7273C10.2382 16.7273 9.86826 16.574 9.59548 16.3012
72C9.3227 16.0285 9.16945 15.6585 9.16945 15.2727C9.16945 14.887 9.3227 14.517 9.59548 14.2442C9.86826 13.9714 10.2382 13.8182 10.624 13.8182ZM16.0451 13.8182C16.4309 13.8182 16.8008 13.9714 17.0736 14.2442C17.3464 14.517 17.4996 14.887 17.4996 15.2727C17.4996 15.6585 17.3464 16.0285 17.0736 16.3012C16.8008 16.574 16.4309 16.7273 16.0451 16.7273C15.6593 16.7273 15.2894 16.574 15.0166 16.3012C14.7438 16.0285 14.5905 15.6585 14.5905 15.2727C14.5905 14.887 14.7438 14.517 15.0166 14.2442C15.2894 13.9714 15.6593 13.8182 16.0451 13.8182ZM21.4655 13.8182C21.8512 13.8182 22.2212 13.9714 22.494 14.2442C22.7668 14.517 22.92 14.887 22.92 15.2727C22.92 15.6585 22.7668 16.0285 22.494 16.3012C22.2212 16.574 21.8512 16.7273 21.4655 16.7273C21.0797 16.7273 20.7097 16.574 20.4369 16.3012C20.1642 16.0285 20.0109 15.6585 20.0109 15.2727C20.0109 14.887 20.1642 14.517 20.4369 14.2442C20.7097 13.9714 21.0797 13.8182 21.4655 13.8182Z"})}),Ype=()=>Oe("svg",{fill:"#000000",viewBox:"0 0 32 32",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:[B("g",{id:"SVGRepo_bgCarrier","stroke-width":"0"}),B("g",{id:"SVGRepo_tracerCarrier","stroke-linecap":"round","stroke-linejoin":"round"}),Oe("g",{id:"SVGRepo_iconCarrier",children:[" ",B("title",{children:"phone-call"})," ",B("path",{d:"M18.037 6.635c-0.011-0.001-0.023-0.001-0.035-0.001-0.414 0-0.75 0.336-0.75 0.75 0 0.399 0.312 0.726 0.706 0.749l0.002 0c3.533 0.231 6.311 3.153 6.311 6.723 0 0.186-0.008 0.37-0.022 0.552l0.002-0.024c0 0.414 0.336 0.75 0.75 0.75s0.75-0.336 0.75-0.75v0c0.009-0.143 0.014-0.31 0.014-0.479 0-4.38-3.397-7.967-7.7-8.269l-0.026-0.001zM17.963 2.749c0.449 0.022 10.998 0.688 10.998 12.635 0 0.414 0.336 0.75 0.75 0.75s0.75-0.336 0.75-0.75v0c0.015-0.238 0.024-0.515 0.024-0.795 0-7.059-5.471-12.841-12.405-13.335l-0.043-0.002c-0.009-0-0.019-0.001-0.029-0.001-0.403 0-0.732 0.314-0.757 0.71l-0 0.002c-0.001 0.011-0.001 0.024-0.001 0.037 0 0.401 0.315 0.729 0.711 0.749l0.002 0zM30.637 23.15c-0.109-0.675-0.334-1.281-0.654-1.823l0.013 0.024c-0.114-0.186-0.301-0.317-0.521-0.353l-0.004-0.001-8.969-1.424c-0.035-0.006-0.076-0.009-0.117-0.009-0.207 0-0.395 0.083-0.531 0.218l0-0c-0.676 0.68-1.194 1.516-1.496 2.451l-0.012 0.044c-4.016-1.64-7.141-4.765-8.742-8.675l-0.038-0.105c0.978-0.314 1.814-0.833 2.493-1.509l-0 0c0.136-0.136 0.22-0.324 0.22-0.531 0-0.041-0.003-0.081-0.010-0.12l0.001 0.004-1.425-8.969c-0.036-0.224-0.167-0.412-0.35-0.524l-0.003-0.002c-0.505-0.301-1.094-0.522-1.724-0.626l-0.029-0.004c-0.315-0.070-0.677-0.111-1.048-0.111-0.025 0-0.050 0-0.075 0.001l0.004-0h-0.006c-3.497 0.024-6.326 2.855-6.347 6.351v0.002c0.015 12.761 10.355 23.102 23.115 23.117h0.002c3.5-0.023 6.331-2.854 6.354-6.351v-0.002c0-0.020 0-0.044 0-0.068 0-0.356-0.036-0.703-0.106-1.038l0.006 0.033zM24.383 29.076c-11.933-0.014-21.602-9.684-21.616-21.616v-0.001c0.019-2.673 2.182-4.835 4.854-4.853h0.002c0.016-0 0.036-0 0.055-0 0.272 0 0.537 0.030 0.793 0.086l-0.024-0.005c0.366 0.060 0.695 0.161 1.003 0.3l-0.025-0.010 1.302 8.202c-0.628 0.528-1.404 0.901-2.257 1.050l-0.029 0.004c-0.355 0.064-0.62 0.37-0.62 0.739 0 0.088 0.015 0.172 0.043 0.25l-0.002-0.005c1.772 5.072 5.695 8.994 10.646 10.729l0.121 0.037c0.073 0.026 0.157 0.041 0.245 0.041 0.368 0 0.674-0.265 0.737-0.615l0.001-0.005c0.153-0.882 0.526-1.658 1.061-2.295l-0.006 0.007 8.201 1.303c0.133 0.294 0.237 0.636 0.296 0.994l0.003 0.024c0.046 0.219 0.073 0.471 0.073 0.729 0 0.018-0 0.035-0 0.053l0-0.003c-0.016 2.675-2.179 4.84-4.852 4.859h-0.002z"})," "]})]}),Xpe=()=>B("svg",{version:"1.1",id:"图层_1",xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 32 32",children:B("path",{d:`M29.8,12.8c-0.7-0.5-1.6-0.4-2.3,0.1l-3.6,2.6c-0.1,0.1-0.3,0.1-0.4,0l-5.8-5.9c1.4-0.7,2.4-2.2,2.4-3.8
73	c0-2.4-1.9-4.3-4.3-4.3s-4.3,1.9-4.3,4.3c0,1.7,1,3.1,2.4,3.8l-5.7,5.9c-0.1,0.1-0.3,0.1-0.4,0L4.5,13c-0.7-0.5-1.6-0.5-2.3,0
74	c-0.7,0.5-1.1,1.3-0.9,2.1L4,29c0.2,1,1,1.7,2,1.7h20c1,0,1.8-0.7,2-1.7l2.7-14.1C30.9,14.1,30.5,13.3,29.8,12.8L29.8,12.8z
75	 M15.9,3.1c1.4,0,2.5,1.1,2.5,2.5s-1.1,2.5-2.5,2.5S13.3,7,13.3,5.6S14.5,3.1,15.9,3.1z M29,14.6l-2.7,14.1c0,0.1-0.1,0.2-0.3,0.2H6
76	c-0.1,0-0.3-0.1-0.3-0.2L3,14.7c0-0.2,0.1-0.2,0.1-0.3c0.1,0,0.2-0.1,0.3,0l3.4,2.4c0.8,0.6,2,0.5,2.6-0.3l6.1-6.4
77	c0.1-0.1,0.2-0.1,0.2-0.1c0,0,0.1,0,0.2,0.1l6.2,6.4c0.7,0.7,1.8,0.8,2.7,0.2l3.6-2.6c0.1-0.1,0.2-0.1,0.3,0
78	C28.9,14.3,29,14.4,29,14.6L29,14.6z`})}),Qpe=()=>B("svg",{width:"34",height:"33",viewBox:"0 0 34 33",xmlns:"http://www.w3.org/2000/svg",children:B("path",{d:"M26.7174 22.1629L26.7134 22.1695L26.71 22.1764C25.822 23.9524 25.4735 25.9546 25.89 27.8616C24.8467 28.7797 23.6081 29.5046 22.2652 30.0344C20.8044 28.7222 19.0127 27.9547 17 27.9547C15.0988 27.9547 13.2037 28.7201 11.7378 30.0319C10.4955 29.502 9.25575 28.7764 8.11138 27.8555C8.52571 25.9504 8.17708 23.950
785 7.29 22.1764L7.28656 22.1695L7.28261 22.1629C6.2824 20.4959 4.73447 19.1485 2.84667 18.5559C2.74178 17.8194 2.64444 17.0971 2.64444 16.3769C2.64444 15.6568 2.74178 14.9344 2.84667 14.1979C4.73447 13.6053 6.2824 12.258 7.28261 10.5909L7.28656 10.5843L7.29 10.5775C8.17803 8.8014 8.52645 6.79921 8.11004 4.89228C9.15328 3.97415 10.392 3.24922 11.7349 2.71937C13.2012 4.03271 15.0975 4.79915 17 4.79915C19.0114 4.79915 20.8021 4.03269 22.2623 2.72198C23.5046 3.25191 24.7442 3.97743 25.8885 4.89832C25.4717 6.79871 25.7085 8.9095 26.7174 10.5909C27.7176 12.258 29.2655 13.6053 31.1533 14.1979C31.2582 14.9344 31.3556 15.6568 31.3556 16.3769C31.3556 17.0971 31.2582 17.8194 31.1533 18.5559C29.2655 19.1485 27.7176 20.4959 26.7174 22.1629ZM11.7112 32.1211L11.7435 32.1325H11.7778H12C12.2787 32.1325 12.5509 31.9978 12.697 31.8517L12.7034 31.8453L12.7092 31.8383C13.7774 30.5564 15.3846 29.9103 17 29.9103C18.6024 29.9103 20.1096 30.6582 21.303 31.8517C21.4242 31.9728 21.5613 32.0804 21.7284 32.1361C21.9007 32.1935 22.0845 32.1892 22.2855 32.1222L22.2856 32.1227L22.2984 32.1174C24.1952 31.3364 25.9865 30.3307 27.5577 28.9877C27.8786 28.809 27.9828 28.3678 27.8584 27.9865C27.4271 26.3645 27.5379 24.7553 28.3959 23.2539L28.3959 23.254L28.3983 23.2495C29.1448 21.8631 30.538 20.8923 32.1626 20.4591L32.1823 20.4538L32.2006 20.4447C32.4691 20.3104 32.7281 20.0472 32.8564 19.6624L32.8603 19.6506L32.8628 19.6384C33.0871 18.5168 33.2 17.5035 33.2 16.488C33.2 15.4814 33.089 14.3639 32.8664 13.3538C32.856 12.9189 32.5514 12.6462 32.1744 12.5205L32.1625 12.5166L32.1503 12.5141C30.5448 12.193 29.2584 11.2315 28.3959 9.72214L28.396 9.72209L28.3926 9.71655C27.5366 8.32565 27.3207 6.61441 27.8524 5.00767C27.9305 4.84029 27.9217 4.65144 27.8721 4.48612C27.8205 4.31401 27.7192 4.14664 27.5859 4.01328L27.586 4.01318L27.5805 4.00814C26.0054 2.54547 24.2067 1.5333 22.2993 0.858714C22.1315 0.779678 21.9418 0.78835 21.7759 0.838135C21.6037 0.88977 21.4364 0.991027 21.303 1.12439L21.2966 1.13081L21.2908 1.13777C20.2226 2.41967 18.6154 3.06581 17 3.06581C15.3976 3.06581 13.8904 2.31786 12.697 1.12439C12.5758 1.00324 12.4387 0.895665 12.2716 0.839964C12.0993 0.782525 11.9155 0.786859 11.7145 0.853853L11.7144 0.853402L11.7016 0.858654C9.8048 1.6397 8.0135 2.6454 6.44227 3.9884C6.12139 4.1671 6.01716 4.6083 6.14156 4.98956C6.57286 6.61152 6.46206 8.22076 5.60413 9.72214L5.60407 9.72211L5.60168 9.72655C4.85516 11.113 3.46205 12.0838 1.83736 12.517L1.81767 12.5223L1.79945 12.5314C1.53092 12.6656 1.27188 12.9288 1.1436 13.3137L1.13966 13.3255L1.13722 13.3377C0.912906 14.4593 0.8 15.4726 0.8 16.488C0.8 17.4947 0.910963 18.6122 1.13361 19.6223C1.14403 20.0571 1.44857 20.3299 1.82564 20.4555L1.83746 20.4595L1.84967 20.4619C3.45523 20.783 4.74163 21.7446 5.60413 23.2539L5.60404 23.254L5.60745 23.2595C6.46338 24.6504 6.67926 26.3617 6.14757 27.9684C6.06949 28.1358 6.07828 28.3246 6.12788 28.4899C6.17951 28.6621 6.28077 28.8294 6.41413 28.9628L6.41404 28.9629L6.41947 28.9679C7.99755 30.4333 9.79991 31.4465 11.7112 32.1211ZM17.0203 23.0777C20.6908 23.0777 23.5536 20.0946 23.5536 16.4332C23.5536 12.7695 20.5775 9.78876 17.0203 9.78876C13.3498 9.78876 10.487 12.7718 10.487 16.4332C10.487 20.097 13.4632 23.0777 17.0203 23.0777ZM17.0203 20.8999C14.5752 20.8999 12.5536 18.8783 12.5536 16.4332C12.5536 13.9881 14.5752 11.9665 17.0203 11.9665C19.4654 11.9665 21.487 13.9881 21.487 16.4332C21.487 18.8783 19.4654 20.8999 17.0203 20.8999Z",stroke:"#B2BBC2",strokeWidth:"0.4"})});function $e(){return $e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$e.apply(null,arguments)}function Pt(e){"@babel/helpers - typeof";return Pt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pt(e)}var Jpe=Symbol.for("react.element"),Zpe=Symbol.for("react.transitional.element"),ehe=Symbol.for("react.fragment");function EX(e){return e&&Pt(e)==="object"&&(e.$$typeof===Jpe||e.$$typeof===Zpe)&&e.type===ehe}function Jo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[];
78return de.Children.forEach(e,function(n){n==null&&!t.keepEmpty||(Array.isArray(n)?r=r.concat(Jo(n)):EX(n)&&n.props?r=r.concat(Jo(n.props.children,t)):r.push(n))}),r}var lM={},the=function(t){};function rhe(e,t){}function nhe(e,t){}function ihe(){lM={}}function RX(e,t,r){!t&&!lM[r]&&(e(!1,r),lM[r]=!0)}function Nn(e,t){RX(rhe,e,t)}function ohe(e,t){RX(nhe,e,t)}Nn.preMessage=the;Nn.resetWarned=ihe;Nn.noteOnce=ohe;function ahe(e,t){if(Pt(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Pt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function PX(e){var t=ahe(e,"string");return Pt(t)=="symbol"?t:t+""}function J(e,t,r){return(t=PX(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function N8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Q(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?N8(Object(r),!0).forEach(function(n){J(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):N8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ym(e){return e instanceof HTMLElement||e instanceof SVGElement}function IX(e){return e&&Pt(e)==="object"&&Ym(e.nativeElement)?e.nativeElement:Ym(e)?e:null}function nC(e){var t=IX(e);if(t)return t;if(e instanceof de.Component){var r;return(r=Wm.findDOMNode)===null||r===void 0?void 0:r.call(Wm,e)}return null}var xX={exports:{}},Jr={};/**
79 * @license React
80 * react-is.production.min.js
81 *
82 * Copyright (c) Facebook, Inc. and its affiliates.
83 *
84 * This source code is licensed under the MIT license found in the
85 * LICENSE file in the root directory of this source tree.
86 */var n4=Symbol.for("react.element"),i4=Symbol.for("react.portal"),Yw=Symbol.for("react.fragment"),Xw=Symbol.for("react.strict_mode"),Qw=Symbol.for("react.profiler"),Jw=Symbol.for("react.provider"),Zw=Symbol.for("react.context"),she=Symbol.for("react.server_context"),e_=Symbol.for("react.forward_ref"),t_=Symbol.for("react.suspense"),r_=Symbol.for("react.suspense_list"),n_=Symbol.for("react.memo"),i_=Symbol.for("react.lazy"),lhe=Symbol.for("react.offscreen"),OX;OX=Symbol.for("react.module.reference");function La(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case n4:switch(e=e.type,e){case Yw:case Qw:case Xw:case t_:case r_:return e;default:switch(e=e&&e.$$typeof,e){case she:case Zw:case e_:case i_:case n_:case Jw:return e;default:return t}}case i4:return t}}}Jr.ContextConsumer=Zw;Jr.ContextProvider=Jw;Jr.Element=n4;Jr.ForwardRef=e_;Jr.Fragment=Yw;Jr.Lazy=i_;Jr.Memo=n_;Jr.Portal=i4;Jr.Profiler=Qw;Jr.StrictMode=Xw;Jr.Suspense=t_;Jr.SuspenseList=r_;Jr.isAsyncMode=function(){return!1};Jr.isConcurrentMode=function(){return!1};Jr.isContextConsumer=function(e){return La(e)===Zw};Jr.isContextProvider=function(e){return La(e)===Jw};Jr.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===n4};Jr.isForwardRef=function(e){return La(e)===e_};Jr.isFragment=function(e){return La(e)===Yw};Jr.isLazy=function(e){return La(e)===i_};Jr.isMemo=function(e){return La(e)===n_};Jr.isPortal=function(e){return La(e)===i4};Jr.isProfiler=function(e){return La(e)===Qw};Jr.isStrictMode=function(e){return La(e)===Xw};Jr.isSuspense=function(e){return La(e)===t_};Jr.isSuspenseList=function(e){return La(e)===r_};Jr.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Yw||e===Qw||e===Xw||e===t_||e===r_||e===lhe||typeof e=="object"&&e!==null&&(e.$$typeof===i_||e.$$typeof===n_||e.$$typeof===Jw||e.$$typeof===Zw||e.$$typeof===e_||e.$$typeof===OX||e.getModuleId!==void 0)};Jr.typeOf=La;xX.exports=Jr;var NP=xX.exports;function Qy(e,t,r){var n=p.useRef({});return(!("value"in n.current)||r(n.current.condition,t))&&(n.current.value=e(),n.current.condition=t),n.current.value}var che=Number(p.version.split(".")[0]),o4=function(t,r){typeof t=="function"?t(r):Pt(t)==="object"&&t&&"current"in t&&(t.current=r)},ui=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r.filter(Boolean);return i.length<=1?i[0]:function(o){r.forEach(function(a){o4(a,o)})}},Bc=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Qy(function(){return ui.apply(void 0,r)},r,function(i,o){return i.length!==o.length||i.every(function(a,s){return a!==o[s]})})},Hc=function(t){var r,n;if(!t)return!1;if(TX(t)&&che>=19)return!0;var i=NP.isMemo(t)?t.type.type:t.type;return!(typeof i=="function"&&!((r=i.prototype)!==null&&r!==void 0&&r.render)&&i.$$typeof!==NP.ForwardRef||typeof t=="function"&&!((n=t.prototype)!==null&&n!==void 0&&n.render)&&t.$$typeof!==NP.ForwardRef)};function TX(e){return p.isValidElement(e)&&!EX(e)}var Id=function(t){if(t&&TX(t)){var r=t;return r.props.propertyIsEnumerable("ref")?r.props.ref:r.ref}return null},cM=p.createContext(null);function uhe(e){var t=e.children,r=e.onBatchResize,n=p.useRef(0),i=p.useRef([]),o=p.useContext(cM),a=p.useCallback(function(s,l,c){n.current+=1;var d=n.current;i.current.push({size:s,element:l,data:c}),Promise.resolve().then(function(){d===n.current&&(r==null||r(i.current),i.current=[])}),o==null||o(s,l,c)},[r,o]);return p.createElement(cM.Provider,{value:a},t)}var AX=function(){if(typeof Map<"u")return Map;function e(t,r){var n=-1;return t.some(function(i,o){return i[0]===r?(n=o,!0):!1}),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(r){var n=e(this.__entries__,r),i=this.__entries__[n];return i&&i[1]},t.prototype.set=function(r,n){var i=e(this.__entries__,r);~i?this.__entries__[i][1]=n:this.__entries__.push([r,n])},t.prototype.delete=function(r){var n=this.__entries__,i=e(n,r);~i&&n.splice(i,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var i=0,o=this.__entries__;i<o.length;i++){var a=o[i];r.call(n,a[1],a[0])}},t}()}(),uM=typeof window<"u"&&typeof document<"u"&&window.document===document,cb=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),dhe=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(cb):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),fhe=2;function phe(e,t){var r=!1,n=!1,i=0;function o(){r&&(r=!1,e()),n&&s()}function a(){dhe(o)}function s(){var l=Date.now();if(r){if(l-i<fhe)return;n=!0}else r=!0,n=!1,setTimeout(a,t);i=l}return s}var hhe=20,vhe=["top","right","bottom","left","width","height","size","weight"],ghe=typeof MutationObserver<"u",mhe=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=phe(this.refresh.bind(this),hhe)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var r=this.observers_,n=r.indexOf(t);~n&&r.splice(n,1),!r.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return t.forEach(function(r){return r.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!uM||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),ghe?(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(){!uM||!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(t){var r=t.propertyName,n=r===void 0?"":r,i=vhe.some(function(o){return!!~n.indexOf(o)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=ne
86w e),this.instance_},e.instance_=null,e}(),MX=function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var i=n[r];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},vp=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||cb},$X=o_(0,0,0,0);function ub(e){return parseFloat(e)||0}function D8(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(n,i){var o=e["border-"+i+"-width"];return n+ub(o)},0)}function yhe(e){for(var t=["top","right","bottom","left"],r={},n=0,i=t;n<i.length;n++){var o=i[n],a=e["padding-"+o];r[o]=ub(a)}return r}function She(e){var t=e.getBBox();return o_(0,0,t.width,t.height)}function Che(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return $X;var n=vp(e).getComputedStyle(e),i=yhe(n),o=i.left+i.right,a=i.top+i.bottom,s=ub(n.width),l=ub(n.height);if(n.boxSizing==="border-box"&&(Math.round(s+o)!==t&&(s-=D8(n,"left","right")+o),Math.round(l+a)!==r&&(l-=D8(n,"top","bottom")+a)),!whe(e)){var c=Math.round(s+o)-t,d=Math.round(l+a)-r;Math.abs(c)!==1&&(s-=c),Math.abs(d)!==1&&(l-=d)}return o_(i.left,i.top,s,l)}var bhe=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof vp(e).SVGGraphicsElement}:function(e){return e instanceof vp(e).SVGElement&&typeof e.getBBox=="function"}}();function whe(e){return e===vp(e).document.documentElement}function _he(e){return uM?bhe(e)?She(e):Che(e):$X}function Ehe(e){var t=e.x,r=e.y,n=e.width,i=e.height,o=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,a=Object.create(o.prototype);return MX(a,{x:t,y:r,width:n,height:i,top:r,right:t+n,bottom:i+r,left:t}),a}function o_(e,t,r,n){return{x:e,y:t,width:r,height:n}}var Rhe=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=o_(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=_he(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),Phe=function(){function e(t,r){var n=Ehe(r);MX(this,{target:t,contentRect:n})}return e}(),Ihe=function(){function e(t,r,n){if(this.activeObservations_=[],this.observations_=new AX,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=r,this.callbackCtx_=n}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof vp(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new Rhe(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof vp(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new Phe(n.target,n.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),kX=typeof WeakMap<"u"?new WeakMap:new AX,NX=function(){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 r=mhe.getInstance(),n=new Ihe(t,r,this);kX.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){NX.prototype[e]=function(){var t;return(t=kX.get(this))[e].apply(t,arguments)}});var DX=function(){return typeof cb.ResizeObserver<"u"?cb.ResizeObserver:NX}(),lc=new Map;function xhe(e){e.forEach(function(t){var r,n=t.target;(r=lc.get(n))===null||r===void 0||r.forEach(function(i){return i(n)})})}var LX=new DX(xhe);function Ohe(e,t){lc.has(e)||(lc.set(e,new Set),LX.observe(e)),lc.get(e).add(t)}function The(e,t){lc.has(e)&&(lc.get(e).delete(t),lc.get(e).size||(LX.unobserve(e),lc.delete(e)))}function zr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function L8(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,PX(n.key),n)}}function Br(e,t,r){return t&&L8(e.prototype,t),r&&L8(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Xm(e,t){return Xm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Xm(e,t)}function di(e,t){if(typeof t!="function"&&t!==null)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&&Xm(e,t)}
86function Ri(e){return Ri=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ri(e)}function Ol(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ol=function(){return!!e})()}function Ut(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xd(e,t){if(t&&(Pt(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ut(e)}function us(e){var t=Ol();return function(){var r,n=Ri(e);if(t){var i=Ri(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return xd(this,r)}}var Ahe=function(e){di(r,e);var t=us(r);function r(){return zr(this,r),t.apply(this,arguments)}return Br(r,[{key:"render",value:function(){return this.props.children}}]),r}(p.Component);function Mhe(e,t){var r=e.children,n=e.disabled,i=p.useRef(null),o=p.useRef(null),a=p.useContext(cM),s=typeof r=="function",l=s?r(i):r,c=p.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!s&&p.isValidElement(l)&&Hc(l),u=d?Id(l):null,f=Bc(u,i),h=function(){var m;return nC(i.current)||(i.current&&Pt(i.current)==="object"?nC((m=i.current)===null||m===void 0?void 0:m.nativeElement):null)||nC(o.current)};p.useImperativeHandle(t,function(){return h()});var v=p.useRef(e);v.current=e;var y=p.useCallback(function(g){var m=v.current,S=m.onResize,C=m.data,b=g.getBoundingClientRect(),w=b.width,E=b.height,_=g.offsetWidth,R=g.offsetHeight,P=Math.floor(w),I=Math.floor(E);if(c.current.width!==P||c.current.height!==I||c.current.offsetWidth!==_||c.current.offsetHeight!==R){var O={width:P,height:I,offsetWidth:_,offsetHeight:R};c.current=O;var A=_===Math.round(w)?w:_,x=R===Math.round(E)?E:R,T=Q(Q({},O),{},{offsetWidth:A,offsetHeight:x});a==null||a(T,g,C),S&&Promise.resolve().then(function(){S(T,g)})}},[]);return p.useEffect(function(){var g=h();return g&&!n&&Ohe(g,y),function(){return The(g,y)}},[i.current,n]),p.createElement(Ahe,{ref:o},d?p.cloneElement(l,{ref:f}):l)}var $he=p.forwardRef(Mhe),khe="rc-observer-key";function Nhe(e,t){var r=e.children,n=typeof r=="function"?[r]:Jo(r);return n.map(function(i,o){var a=(i==null?void 0:i.key)||"".concat(khe,"-").concat(o);return p.createElement($he,$e({},e,{key:a,ref:o===0?t:void 0}),i)})}var ao=p.forwardRef(Nhe);ao.Collection=uhe;function dM(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Dhe(e){if(Array.isArray(e))return dM(e)}function jX(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function a4(e,t){if(e){if(typeof e=="string")return dM(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?dM(e,t):void 0}}function Lhe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
87In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ge(e){return Dhe(e)||jX(e)||a4(e)||Lhe()}var FX=function(t){return+setTimeout(t,16)},zX=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(FX=function(t){return window.requestAnimationFrame(t)},zX=function(t){return window.cancelAnimationFrame(t)});var j8=0,s4=new Map;function BX(e){s4.delete(e)}var Gt=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;j8+=1;var n=j8;function i(o){if(o===0)BX(n),t();else{var a=FX(function(){i(o-1)});s4.set(n,a)}}return i(r),n};Gt.cancel=function(e){var t=s4.get(e);return BX(e),zX(t)};function HX(e){if(Array.isArray(e))return e}function jhe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,o,a,s=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(d){c=!0,i=d}
87finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}function VX(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
88In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oe(e,t){return HX(e)||jhe(e,t)||a4(e,t)||VX()}function Qm(e){for(var t=0,r,n=0,i=e.length;i>=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function Pi(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function fM(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var r=t;r;){if(r===e)return!0;r=r.parentNode}return!1}var F8="data-rc-order",z8="data-rc-priority",Fhe="rc-util-key",pM=new Map;function UX(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):Fhe}function a_(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function zhe(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function l4(e){return Array.from((pM.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function WX(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Pi())return null;var r=t.csp,n=t.prepend,i=t.priority,o=i===void 0?0:i,a=zhe(n),s=a==="prependQueue",l=document.createElement("style");l.setAttribute(F8,a),s&&o&&l.setAttribute(z8,"".concat(o)),r!=null&&r.nonce&&(l.nonce=r==null?void 0:r.nonce),l.innerHTML=e;var c=a_(t),d=c.firstChild;if(n){if(s){var u=(t.styles||l4(c)).filter(function(f){if(!["prepend","prependQueue"].includes(f.getAttribute(F8)))return!1;var h=Number(f.getAttribute(z8)||0);return o>=h});if(u.length)return c.insertBefore(l,u[u.length-1].nextSibling),l}c.insertBefore(l,d)}else c.appendChild(l);return l}function qX(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=a_(t);return(t.styles||l4(r)).find(function(n){return n.getAttribute(UX(t))===e})}function Jm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=qX(e,t);if(r){var n=a_(t);n.removeChild(r)}}function Bhe(e,t){var r=pM.get(e);if(!r||!fM(document,r)){var n=WX("",t),i=n.parentNode;pM.set(e,i),e.removeChild(n)}}function dl(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=a_(r),i=l4(n),o=Q(Q({},r),{},{styles:i});Bhe(n,o);var a=qX(t,o);if(a){var s,l;if((s=o.csp)!==null&&s!==void 0&&s.nonce&&a.nonce!==((l=o.csp)===null||l===void 0?void 0:l.nonce)){var c;a.nonce=(c=o.csp)===null||c===void 0?void 0:c.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var d=WX(e,o);return d.setAttribute(UX(o),t),d}function Hhe(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Nt(e,t){if(e==null)return{};var r,n,i=Hhe(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function ld(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=new Set;function i(o,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=n.has(o);if(Nn(!l,"Warning: There may be circular references"),l)return!1;if(o===a)return!0;if(r&&s>1)return!1;n.add(o);var c=s+1;if(Array.isArray(o)){if(!Array.isArray(a)||o.length!==a.length)return!1;for(var d=0;d<o.length;d++)if(!i(o[d],a[d],c))return!1;return!0}if(o&&a&&Pt(o)==="object"&&Pt(a)==="object"){var u=Object.keys(o);return u.length!==Object.keys(a).length?!1:u.every(function(f){return i(o[f],a[f],c)})}return!1}return i(e,t)}var Vhe="%";function hM(e){return e.join(Vhe)}var Uhe=function(){function e(t){zr(this,e),J(this,"instanceId",void 0),J(this,"cac
88he",new Map),J(this,"extracted",new Set),this.instanceId=t}return Br(e,[{key:"get",value:function(r){return this.opGet(hM(r))}},{key:"opGet",value:function(r){return this.cache.get(r)||null}},{key:"update",value:function(r,n){return this.opUpdate(hM(r),n)}},{key:"opUpdate",value:function(r,n){var i=this.cache.get(r),o=n(i);o===null?this.cache.delete(r):this.cache.set(r,o)}}]),e}(),gp="data-token-hash",Za="data-css-hash",cc="__cssinjs_instance__";function Whe(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Za,"]"))||[],r=document.head.firstChild;Array.from(t).forEach(function(i){i[cc]=i[cc]||e,i[cc]===e&&document.head.insertBefore(i,r)});var n={};Array.from(document.querySelectorAll("style[".concat(Za,"]"))).forEach(function(i){var o=i.getAttribute(Za);if(n[o]){if(i[cc]===e){var a;(a=i.parentNode)===null||a===void 0||a.removeChild(i)}}else n[o]=!0})}return new Uhe(e)}var Jy=p.createContext({hashPriority:"low",cache:Whe(),defaultCache:!0});function qhe(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}var c4=function(){function e(){zr(this,e),J(this,"cache",void 0),J(this,"keys",void 0),J(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Br(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(r){var n,i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return r.forEach(function(s){if(!a)a=void 0;else{var l;a=(l=a)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(s)}}),(n=a)!==null&&n!==void 0&&n.value&&o&&(a.value[1]=this.cacheCallTimes++),(i=a)===null||i===void 0?void 0:i.value}},{key:"get",value:function(r){var n;return(n=this.internalGet(r,!0))===null||n===void 0?void 0:n[0]}},{key:"has",value:function(r){return!!this.internalGet(r)}},{key:"set",value:function(r,n){var i=this;if(!this.has(r)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(c,d){var u=oe(c,2),f=u[1];return i.internalGet(d)[1]<f?[d,i.internalGet(d)[1]]:c}
88,[this.keys[0],this.cacheCallTimes]),a=oe(o,1),s=a[0];this.delete(s)}this.keys.push(r)}var l=this.cache;r.forEach(function(c,d){if(d===r.length-1)l.set(c,{value:[n,i.cacheCallTimes++]});else{var u=l.get(c);u?u.map||(u.map=new Map):l.set(c,{map:new Map}),l=l.get(c).map}})}},{key:"deleteByPath",value:function(r,n){var i=r.get(n[0]);if(n.length===1){var o;return i.map?r.set(n[0],{map:i.map}):r.delete(n[0]),(o=i.value)===null||o===void 0?void 0:o[0]}var a=this.deleteByPath(i.map,n.slice(1));return(!i.map||i.map.size===0)&&!i.value&&r.delete(n[0]),a}},{key:"delete",value:function(r){if(this.has(r))return this.keys=this.keys.filter(function(n){return!qhe(n,r)}),this.deleteByPath(this.cache,r)}}]),e}();J(c4,"MAX_CACHE_SIZE",20);J(c4,"MAX_CACHE_OFFSET",5);var B8=0,GX=function(){function e(t){zr(this,e),J(this,"derivatives",void 0),J(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=B8,t.length===0&&(t.length>0,void 0),B8+=1}return Br(e,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(n,i){return i(r,n)},void 0)}}]),e}(),DP=new c4;function vM(e){var t=Array.isArray(e)?e:[e];return DP.has(t)||DP.set(t,new GX(t)),DP.get(t)}var Ghe=new WeakMap,LP={};function Khe(e,t){for(var r=Ghe,n=0;n<t.length;n+=1){var i=t[n];r.has(i)||r.set(i,new WeakMap),r=r.get(i)}return r.has(LP)||r.set(LP,e()),r.get(LP)}var H8=new WeakMap;function dm(e){var t=H8.get(e)||"";return t||(Object.keys(e).forEach(function(r){var n=e[r];t+=r,n instanceof GX?t+=n.id:n&&Pt(n)==="object"?t+=dm(n):t+=n}),t=Qm(t),H8.set(e,t)),t}function V8(e,t){return Qm("".concat(t,"_").concat(dm(e)))}var gM=Pi();function fe(e){return typeof e=="number"?"".concat(e,"px"):e}function db(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(i)return e;var o=Q(Q({},n),{},J(J({},gp,t),Za,r)),a=Object.keys(o).map(function(s){var l=o[s];return l?"".concat(s,'="').concat(l,'"'):null}).filter(function(s){return s}).join(" ");return"<style ".concat(a,">").concat(e,"</style>")}var iC=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(r?"".concat(r,"-"):"").concat(t).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()},Yhe=function(t,r,n){return Object.keys(t).length?".".concat(r).concat(n!=null&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(t).map(function(i){var o=oe(i,2),a=o[0],s=o[1];return"".concat(a,":").concat(s,";")}).join(""),"}"):""},KX=function(t,r,n){var i={},o={};return Object.entries(t).forEach(function(a){var s,l,c=oe(a,2),d=c[0],u=c[1];if(n!=null&&(s=n.preserve)!==null&&s!==void 0&&s[d])o[d]=u;else if((typeof u=="string"||typeof u=="number")&&!(n!=null&&(l=n.ignore)!==null&&l!==void 0&&l[d])){var f,h=iC(d,n==null?void 0:n.prefix);i[h]=typeof u=="number"&&!(n!=null&&(f=n.unitless)!==null&&f!==void 0&&f[d])?"".concat(u,"px"):String(u),o[d]="var(".concat(h,")")}}),[o,Yhe(i,r,{scope:n==null?void 0:n.scope})]},U8=Pi()?p.useLayoutEffect:p.useEffect,nr=function(t,r){var n=p.useRef(!0);U8(function(){return t(n.current)},r),U8(function(){return n.current=!1,function(){n.current=!0}},[])},Zu=function(t,r){nr(function(n){if(!n)return t()},r)},Xhe=Q({},Uy),W8=Xhe.useInsertionEffect,Qhe=function(t,r,n){p.useMemo(t,n),nr(function(){return r(!0)},n)},Jhe=W8?function(e,t,r){return W8(function(){return e(),t()},r)}:Qhe,Zhe=Q({},Uy),eve=Zhe.useInsertionEffect,tve=function(t){var r=[],n=!1;function i(o){n||r.push(o)}return p.useEffect(function(){return n=!1,function(){n=!0,r.length&&r.forEach(function(o){return o()})}},t),i},rve=function(){return function(t){t()}},nve=typeof eve<"u"?tve:rve;function u4(e,t,r,n,i){var o=p.useContext(Jy),a=o.cache,s=[e].concat(Ge(t)),l=hM(s),c=nve([l]),d=function(v){a.opUpdate(l,function(y){var g=y||[void 0,void 0],m=oe(g,2),S=m[0],C=S===void 0?0:S,b=m[1],w=b,E=w||r(),_=[C,E];return v?v(_):_})};p.useMemo(function(){d()},[l]);var u=a.opGet(l),f=u[1];return Jhe(function(){i==null||i(f)},function(h){return d(function(v){var y=oe(v,2),g=y[0],m=y[1];return h&&g===0&&(i==null||i(f)),[g+1,m]}),function(){a.opUpdate(l,function(v){var y=v||[],g=oe(y,2),m=g[0],S=m===void 0?0:m,C=g[1],b=S-1;
88return b===0?(c(function(){(h||!a.opGet(l))&&(n==null||n(C,!1))}),null):[S-1,C]})}},[l]),f}var ive={},ove="css",Nu=new Map;function ave(e){Nu.set(e,(Nu.get(e)||0)+1)}function sve(e,t){if(typeof document<"u"){var r=document.querySelectorAll("style[".concat(gp,'="').concat(e,'"]'));r.forEach(function(n){if(n[cc]===t){var i;(i=n.parentNode)===null||i===void 0||i.removeChild(n)}})}}var lve=0;function cve(e,t){Nu.set(e,(Nu.get(e)||0)-1);var r=new Set;Nu.forEach(function(n,i){n<=0&&r.add(i)}),Nu.size-r.size>lve&&r.forEach(function(n){sve(n,t),Nu.delete(n)})}var uve=function(t,r,n,i){var o=n.getDerivativeToken(t),a=Q(Q({},o),r);return i&&(a=i(a)),a},YX="token";function dve(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=p.useContext(Jy),i=n.cache.instanceId,o=n.container,a=r.salt,s=a===void 0?"":a,l=r.override,c=l===void 0?ive:l,d=r.formatToken,u=r.getComputedToken,f=r.cssVar,h=Khe(function(){return Object.assign.apply(Object,[{}].concat(Ge(t)))},t),v=dm(h),y=dm(c),g=f?dm(f):"",m=u4(YX,[s,e.id,v,y,g],function(){var S,C=u?u(h,c,e):uve(h,c,e,d),b=Q({},C),w="";if(f){var E=KX(C,f.key,{prefix:f.prefix,ignore:f.ignore,unitless:f.unitless,preserve:f.preserve}),_=oe(E,2);C=_[0],w=_[1]}var R=V8(C,s);C._tokenKey=R,b._tokenKey=V8(b,s);var P=(S=f==null?void 0:f.key)!==null&&S!==void 0?S:R;C._themeKey=P,ave(P);var I="".concat(ove,"-").concat(Qm(R));return C._hashId=I,[C,I,b,w,(f==null?void 0:f.key)||""]},function(S){cve(S[0]._themeKey,i)},function(S){var C=oe(S,4),b=C[0],w=C[3];if(f&&w){var E=dl(w,Qm("css-variables-".concat(b._themeKey)),{mark:Za,prepend:"queue",attachTo:o,priority:-999});E[cc]=i,E.setAttribute(gp,b._themeKey)}});return m}var fve=function(t,r,n){var i=oe(t,5),o=i[2],a=i[3],s=i[4],l=n||{},c=l.plain;if(!a)return null;var d=o._tokenKey,u=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},h=db(a,s,d,f,c);return[u,d,h]},pve={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},XX="comm",QX="rule",JX="decl",hve="@import",vve="@namespace",gve="@keyframes",mve="@layer",ZX=Math.abs,d4=String.fromCharCode;function eQ(e){return e.trim()}function oC(e,t,r){return e.replace(t,r)}function yve(e,t,r){return e.indexOf(t,r)}function Zf(e,t){return e.charCodeAt(t)|0}function mp(e,t,r){return e.slice(t,r)}function Rs(e){return e.length}function Sve(e){return e.length}function ES(e,t){return t.push(e),e}var s_=1,yp=1,tQ=0,$a=0,Hn=0,Up="";function f4(e,t,r,n,i,o,a,s){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:s_,column:yp,length:a,return:"",siblings:s}}function Cve(){return Hn}function bve(){return Hn=$a>0?Zf(Up,--$a):0,yp--,Hn===10&&(yp=1,s_--),Hn}function es(){return Hn=$a<tQ?Zf(Up,$a++):0,yp++,Hn===10&&(yp=1,s_++),Hn}function uc(){return Zf(Up,$a)}function aC(){return $a}function l_(e,t){return mp(Up,e,t)}function Zm(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function wve(e){return s_=yp=1,tQ=Rs(Up=e),$a=0,[]}function _ve(e){return Up="",e}function jP(e){return eQ(l_($a-1,mM(e===91?e+2:e===40?e+1:e)))}function Eve(e){for(;(Hn=uc())&&Hn<33;)es();return Zm(e)>2||Zm(Hn)>3?"":" "}function Rve(e,t){for(;--t&&es()&&!(Hn<48||Hn>102||Hn>57&&Hn<65||Hn>70&&Hn<97););return l_(e,aC()+(t<6&&uc()==32&&es()==32))}function mM(e){for(;es();)switch(Hn){case e:return $a;case 34:case 39:e!==34&&e!==39&&mM(Hn);break;case 40:e===41&&mM(e);break;case 92:es();break}return $a}function Pve(e,t){for(;es()&&e+Hn!==47+10;)if(e+Hn===42+42&&uc()===47)break;return"/*"+l_(t,$a-1)+"*"+d4(e===47?e:es())}function Ive(e){for(;!Zm(uc());)es();return l_(e,$a)}function xve(e){return _ve(sC("",null,null,null,[""],e=wve(e),0,[0],e))}function sC(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,f=0,h=0,v=0,y=1,g=1,m=1,S=0,C="",b=i,w=o,E=n,_=C;g;)switch(v=S,S=es()){case 40:if(v!=108&&Zf(_,u-1)==58){yve(_+=oC(jP(S),"&","&\f"),"&\f",ZX(c?s[c-1]:0))!=-1&&(m=-1);break}case 34:case 39:case 91:_+=jP(S);break;case 9:case 10:case 13:case 32:_+=Eve(v);break;case 92:_+=Rve(aC()-1,7);continue;case 47:switch(uc()){case 42:case 47:ES(Ove(Pve(es(),aC()),t,r,l),l),(Zm(v||1)==5||Zm(uc()||1)==5)&&Rs(_)&&mp(_,-1,void 0)!==" "&&(_+=" ");break;default:_+="/"}break;case 123*y:s[c++]=Rs(_)*m;case 125*y:case 59:case 0:switch(S){case 0:case 125:g=0;case 59+d:m==-1&&(_=oC(_,/\f/g,"")),h>0&&(Rs(_)-u||y===0&&v===47)&&ES(h>32?G8(_+";",n,r,u-1,l):G8(oC(_," ","")+";",n,r,u-2,l),l);break;case 59:_+=";";default:if(ES(E=q8(_,t,r,c,d,i,s,C,b=[],w=[],u,o),o),S===123)if(d===0)sC(_,t,E,E,b,o,u,s,w);else{switch(f){case 99:if(Zf(_,3)===110)break;case 108:if(Zf(_,2)===97)break;default:d=0;case 100:case 109:case 115:}d?sC(e,E,E,n&&ES(q8(e,E,E,0,0,i,s,C,i,b=[],u,w),w),i,w,u,s,n?b:w):sC(_,E,E,E,[""],w,0,s,w)}}c=d=h=0,y=m=1,C=_="",u=a;break;case 58:u=1+Rs(_),h=v;default:if(y<1){if(S==123)--y;else if(S==125&&y++==0&&bve()==125)continue}switch(_+=d4(S),S*y){case 38:m=d>0?1:(_+="\f",-1);break;case 44:s[c++]=(Rs(_)-1)*m,m=1;break;case 64:uc()===45&&(_+=jP(es())),f=uc(),d=u=Rs(C=_+=Ive(aC())),S++;break;case 45:v===45&&Rs(_)==2&&(y=0)}}return o}function q8(e,t,r,n,i,o,a,s,l,c,d,u){for(var f=i-1,h=i===0?o:[""],v=Sve(h),y=0,g=0,m=0;y<n;++y)for(var S=0,C=mp(e,f+1,f=ZX(g=a[y])),b=e;S<v;++S)(b=eQ(g>
880?h[S]+" "+C:oC(C,/&\f/g,h[S])))&&(l[m++]=b);return f4(e,t,r,i===0?QX:s,l,c,d,u)}function Ove(e,t,r,n){return f4(e,t,r,XX,d4(Cve()),mp(e,2,-2),0,n)}function G8(e,t,r,n,i){return f4(e,t,r,JX,mp(e,0,n),mp(e,n+1,-1),n,i)}function yM(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Tve(e,t,r,n){switch(e.type){case mve:if(e.children.length)break;case hve:case vve:case JX:return e.return=e.return||e.value;case XX:return"";case gve:return e.return=e.value+"{"+yM(e.children,n)+"}";case QX:if(!Rs(e.value=e.props.join(",")))return""}return Rs(r=yM(e.children,n))?e.return=e.value+"{"+r+"}":""}var K8="data-ant-cssinjs-cache-path",rQ="_FILE_STYLE__",ed,nQ=!0;function Ave(){if(!ed&&(ed={},Pi())){var e=document.createElement("div");e.className=K8,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(/"$/,""),t.split(";").forEach(function(i){var o=i.split(":"),a=oe(o,2),s=a[0],l=a[1];ed[s]=l});var r=document.querySelector("style[".concat(K8,"]"));if(r){var n;nQ=!1,(n=r.parentNode)===null||n===void 0||n.removeChild(r)}document.body.removeChild(e)}}function Mve(e){return Ave(),!!ed[e]}function $ve(e){var t=ed[e],r=null;if(t&&Pi())if(nQ)r=rQ;else{var n=document.querySelector("style[".concat(Za,'="').concat(ed[e],'"]'));n?r=n.innerHTML:delete ed[e]}return[r,t]}var kve="_skip_check_",iQ="_multi_value_";function lC(e){var t=yM(xve(e),Tve);return t.replace(/\{%%%\:[^;];}/g,";")}function Nve(e){return Pt(e)==="object"&&e&&(kve in e||iQ in e)}function Y8(e,t,r){if(!t)return e;var n=".".concat(t),i=r==="low"?":where(".concat(n,")"):n,o=e.split(",").map(function(a){var s,l=a.trim().split(/\s+/),c=l[0]||"",d=((s=c.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return c="".concat(d).concat(i).concat(c.slice(d.length)),[c].concat(Ge(l.slice(1))).join(" ")});return o.join(",")}var Dve=function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},i=n.root,o=n.injectHash,a=n.parentSelectors,s=r.hashId,l=r.layer;r.path;var c=r.hashPriority,d=r.transformers,u=d===void 0?[]:d;r.linters;var f="",h={};function v(m){var S=m.getName(s);if(!h[S]){var C=e(m.style,r,{root:!1,parentSelectors:a}),b=oe(C,1),w=b[0];h[S]="@keyframes ".concat(m.getName(s)).concat(w)}}function y(m){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return m.forEach(function(C){Array.isArray(C)?y(C,S):C&&S.push(C)}),S}var g=y(Array.isArray(t)?t:[t]);return g.forEach(function(m){var S=typeof m=="string"&&!i?{}:m;if(typeof S=="string")f+="".concat(S,`
89`);else if(S._keyframe)v(S);else{var C=u.reduce(function(b,w){var E;return(w==null||(E=w.visit)===null||E===void 0?void 0:E.call(w,b))||b},S);Object.keys(C).forEach(function(b){var w=C[b];if(Pt(w)==="object"&&w&&(b!=="animationName"||!w._keyframe)&&!Nve(w)){var E=!1,_=b.trim(),R=!1;(i||o)&&s?_.startsWith("@")?E=!0:_==="&"?_=Y8("",s,c):_=Y8(b,s,c):i&&!s&&(_==="&"||_==="")&&(_="",R=!0);var P=e(w,r,{root:R,injectHash:E,parentSelectors:[].concat(Ge(a),[_])}),I=oe(P,2),O=I[0],A=I[1];h=Q(Q({},h),A),f+="".concat(_).concat(O)}else{let k=function(j,N){var L=j.replace(/[A-Z]/g,function($){return"-".concat($.toLowerCase())}),M=N;!pve[j]&&typeof M=="number"&&M!==0&&(M="".concat(M,"px")),j==="animationName"&&N!==null&&N!==void 0&&N._keyframe&&(v(N),M=N.getName(s)),f+="".concat(L,":").concat(M,";")};var D=k,x,T=(x=w==null?void 0:w.value)!==null&&x!==void 0?x:w;Pt(w)==="object"&&w!==null&&w!==void 0&&w[iQ]&&Array.isArray(T)?T.forEach(function(j){k(b,j)}):k(b,T)}})}}),i?l&&(f&&(f="@layer ".concat(l.name," {").concat(f,"}")),l.dependencies&&(h["@layer ".concat(l.name)]=l.dependencies.map(function(m){return"@layer ".concat(m,", ").concat(l.name,";")}).join(`
90`))):f="{".concat(f,"}"),[f,h]};function oQ(e,t){return Qm("".concat(e.join("%")).concat(t))}function Lve(){return null}var aQ="style";function SM(e,t){var r=e.token,n=e.path,i=e.hashId,o=e.layer,a=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,d=p.useContext(Jy),u=d.autoClear;d.mock;var f=d.defaultCache,h=d.hashPriority,v=d.container,y=d.ssrInline,g=d.transformers,m=d.linters,S=d.cache,C=d.layer,b=r._tokenKey,w=[b];C&&w.push("layer"),w.push.apply(w,Ge(n));var E=gM,_=u4(aQ,w,function(){var A=w.join("|");if(Mve(A)){var x=$ve(A),T=oe(x,2),D=T[0],k=T[1];if(D)return[D,b,k,{},s,c]}var j=t(),N=Dve(j,{hashId:i,hashPriority:h,layer:C?o:void 0,path:n.join("-"),transformers:g,linters:m}),L=oe(N,2),M=L[0],$=L[1],F=lC(M),z=oQ(w,F);return[F,b,z,$,s,c]},function(A,x){var T=oe(A,3),D=T[2];
90(x||u)&&gM&&Jm(D,{mark:Za,attachTo:v})},function(A){var x=oe(A,4),T=x[0];x[1];var D=x[2],k=x[3];if(E&&T!==rQ){var j={mark:Za,prepend:C?!1:"queue",attachTo:v,priority:c},N=typeof a=="function"?a():a;N&&(j.csp={nonce:N});var L=[],M=[];Object.keys(k).forEach(function(F){F.startsWith("@layer")?L.push(F):M.push(F)}),L.forEach(function(F){dl(lC(k[F]),"_layer-".concat(F),Q(Q({},j),{},{prepend:!0}))});var $=dl(T,D,j);$[cc]=S.instanceId,$.setAttribute(gp,b),M.forEach(function(F){dl(lC(k[F]),"_effect-".concat(F),j)})}}),R=oe(_,3),P=R[0],I=R[1],O=R[2];return function(A){var x;return!y||E||!f?x=p.createElement(Lve,null):x=p.createElement("style",$e({},J(J({},gp,I),Za,O),{dangerouslySetInnerHTML:{__html:P}})),p.createElement(p.Fragment,null,x,A)}}var jve=function(t,r,n){var i=oe(t,6),o=i[0],a=i[1],s=i[2],l=i[3],c=i[4],d=i[5],u=n||{},f=u.plain;if(c)return null;var h=o,v={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)};return h=db(o,a,s,v,f),l&&Object.keys(l).forEach(function(y){if(!r[y]){r[y]=!0;var g=lC(l[y]),m=db(g,a,"_effect-".concat(y),v,f);y.startsWith("@layer")?h=m+h:h+=m}}),[d,s,h]},sQ="cssVar",Fve=function(t,r){var n=t.key,i=t.prefix,o=t.unitless,a=t.ignore,s=t.token,l=t.scope,c=l===void 0?"":l,d=p.useContext(Jy),u=d.cache.instanceId,f=d.container,h=s._tokenKey,v=[].concat(Ge(t.path),[n,c,h]),y=u4(sQ,v,function(){var g=r(),m=KX(g,n,{prefix:i,unitless:o,ignore:a,scope:c}),S=oe(m,2),C=S[0],b=S[1],w=oQ(v,b);return[C,b,w,n]},function(g){var m=oe(g,3),S=m[2];gM&&Jm(S,{mark:Za,attachTo:f})},function(g){var m=oe(g,3),S=m[1],C=m[2];if(S){var b=dl(S,C,{mark:Za,prepend:"queue",attachTo:f,priority:-999});b[cc]=u,b.setAttribute(gp,n)}});return y},zve=function(t,r,n){var i=oe(t,4),o=i[1],a=i[2],s=i[3],l=n||{},c=l.plain;if(!o)return null;var d=-999,u={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},f=db(o,s,a,u,c);return[d,a,f]};J(J(J({},aQ,jve),YX,fve),sQ,zve);var mr=function(){function e(t,r){zr(this,e),J(this,"name",void 0),J(this,"style",void 0),J(this,"_keyframe",!0),this.name=t,this.style=r}return Br(e,[{key:"getName",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return r?"".concat(r,"-").concat(this.name):this.name}}]),e}();function ef(e){return e.notSplit=!0,e}ef(["borderTop","borderBottom"]),ef(["borderTop"]),ef(["borderBottom"]),ef(["borderLeft","borderRight"]),ef(["borderLeft"]),ef(["borderRight"]);var Bve=p.createContext({});const p4=Bve;function lQ(e){return HX(e)||jX(e)||a4(e)||VX()}function Ia(e,t){for(var r=e,n=0;n<t.length;n+=1){if(r==null)return;r=r[t[n]]}return r}function cQ(e,t,r,n){if(!t.length)return r;var i=lQ(t),o=i[0],a=i.slice(1),s;return!e&&typeof o=="number"?s=[]:Array.isArray(e)?s=Ge(e):s=Q({},e),n&&r===void 0&&a.length===1?delete s[o][a[0]]:s[o]=cQ(s[o],a,r,n),s}function Ca(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&n&&r===void 0&&!Ia(e,t.slice(0,-1))?e:cQ(e,t,r,n)}function Hve(e){return Pt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function X8(e){return Array.isArray(e)?[]:{}}var Vve=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function $f(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=X8(t[0]);return t.forEach(function(i){function o(a,s){var l=new Set(s),c=Ia(i,a),d=Array.isArray(c);if(d||Hve(c)){if(!l.has(c)){l.add(c);var u=Ia(n,a);d?n=Ca(n,a,[]):(!u||Pt(u)!=="object")&&(n=Ca(n,a,X8(c))),Vve(c).forEach(function(f){o([].concat(Ge(a),[f]),l)})}}else n=Ca(n,a,c)}o([])}),n}function Uve(){}const Wve=p.createContext({}),c_=()=>{const e=()=>{};return e.deprecated=Uve,e},uQ=p.createContext(void 0);var dQ={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},qve={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},Gve=Q(Q({},qve),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D
90/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const Kve={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},fQ=Kve,Yve={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},Gve),timePickerLocale:Object.assign({},fQ)},fb=Yve,jo="${label} is not a valid ${type}",Xve={locale:"en",Pagination:dQ,DatePicker:fb,TimePicker:fQ,Calendar:fb,global:{placeholder:"Please select",close:"Close"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:jo,method:jo,array:jo,object:jo,number:jo,date:jo,boolean:jo,integer:jo,float:jo,regexp:jo,email:jo,url:jo,hex:jo},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}},Fs=Xve;let cC=Object.assign({},Fs.Modal),uC=[];const Q8=()=>uC.reduce((e,t)=>Object.assign(Object.assign({},e),t),Fs.Modal);function Qve(e){if(e){const t=Object.assign({},e);return uC.push(t),cC=Q8(),()=>{uC=uC.filter(r=>r!==t),cC=Q8()}}cC=Object.assign({},Fs.Modal)}function pQ(){return cC}const Jve=p.createContext(void 0),h4=Jve,Zve=(e,t)=>{const r=p.useContext(h4),n=p.useMemo(()=>{var o;const a=t||Fs[e],s=(o=r==null?void 0:r[e])!==null&&o!==void 0?o:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),s||{})},[e,t,r]),i=p.useMemo(()=>{const o=r==null?void 0:r.locale;return r!=null&&r.exist&&!o?Fs.locale:o},[r]);return[n,i]},$o=Zve,ege="internalMark",tge=e=>{const{locale:t={},children:r,_ANT_MARK__:n}=e;p.useEffect(()=>Qve(t==null?void 0:t.Modal),[t]);const i=p.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return p.createElement(h4.Provider,{value:i},r)},rge=tge,hQ={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"},nge=Object.assign(Object.assign({},hQ),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
91'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
92'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:"cub
92ic-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}),ey=nge,ni=Math.round;function FP(e,t){const r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=r.map(i=>parseFloat(i));for(let i=0;i<3;i+=1)n[i]=t(n[i]||0,r[i]||"",i);return r[3]?n[3]=r[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}const J8=(e,t,r)=>r===0?e:e/100;function Mh(e,t){const r=t||255;return e>r?r:e<0?0:e}class ar{constructor(t){J(this,"isValid",!0),J(this,"r",0),J(this,"g",0),J(this,"b",0),J(this,"a",1),J(this,"_h",void 0),J(this,"_s",void 0),J(this,"_l",void 0),J(this,"_v",void 0),J(this,"_max",void 0),J(this,"_min",void 0),J(this,"_brightness",void 0);function r(i){return i[0]in t&&i[1]in t&&i[2]in t}if(t)if(typeof t=="string"){let o=function(a){return i.startsWith(a)};var n=o;const i=t.trim();/^#?[A-F\d]{3,8}$/i.test(i)?this.fromHexString(i):o("rgb")?this.fromRgbString(i):o("hsl")?this.fromHslString(i):(o("hsv")||o("hsb"))&&this.fromHsvString(i)}else if(t instanceof ar)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(r("rgb"))this.r=Mh(t.r),this.g=Mh(t.g),this.b=Mh(t.b),this.a=typeof t.a=="number"?Mh(t.a,1):1;else if(r("hsl"))this.fromHsl(t);else if(r("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const r=this.toHsv();return r.h=t,this._c(r)}getLuminance(){function t(o){const a=o/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}const r=t(this.r),n=t(this.g),i=t(this.b);return .2126*r+.7152*n+.0722*i}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=ni(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const r=this.getHue(),n=this.getSaturation();let i=this.getLightness()-t/100;return i<0&&(i=0),this._c({h:r,s:n,l:i,a:this.a})}lighten(t=10){const r=this.getHue(),n=this.getSaturation();let i=this.getLightness()+t/100;return i>1&&(i=1),this._c({h:r,s:n,l:i,a:this.a})}mix(t,r=50){const n=this._c(t),i=r/100,o=s=>(n[s]-this[s])*i+this[s],a={r:ni(o("r")),g:ni(o("g")),b:ni(o("b")),a:ni(o("a")*100)/100};return this._c(a)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const r=this._c(t),n=this.a+r.a*(1-this.a),i=o=>ni((this[o]*this.a+r[o]*r.a*(1-this.a))/n);return this._c({r:i("r"),g:i("g"),b:i("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const r=(this.r||0).toString(16);t+=r.length===2?r:"0"+r;const n=(this.g||0).toString(16);t+=n.length===2?n:"0"+n;const i=(this.b||0).toString(16);if(t+=i.length===2?i:"0"+i,typeof this.a=="number"&&this.a>=0&&this.a<1){const o=ni(this.a*255).toString(16);t+=o.length===2?o:"0"+o}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),r=ni(this.getSaturation()*100),n=ni(this.getLightness()*100);return this.a!==1?`hsla(${t},${r}%,${n}%,${this.a})`:`hsl(${t},${r}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,r,n){const i=this.clone();return i[t]=Mh(r,n),i}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const r=t.replace("#","");function n(i,o){return parseInt(r[i]+r[o||i],16)}r.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=r[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=r[6]?n(6,7)/255:1)}fromHsl({h:t,s:r,l:n,a:i}){if(this._h=t%360,this._s=r,this._l=n,this.a=typeof i=="number"?i:1,r<=0){const f=ni(n*255);this.r=f,this.g=f,this.b=f}let o=0,a=0,s=0;const l=t/60,c=(1-Math.abs(2*n-1))*r,d=c*(1-Math.abs(l%2-1));l>=0&&l<1?(o=c,a=d):l>=1&&l<2?(o=d,a=c):l>=2&&l<3?(a=c,s=d):l>=3&&l<4?(a=d,s=c):l>=4&&l<5?(o=d,s=c):l>=5&&l<6&&(o=c,s=d);const u=n-c/2;this.r=ni((o+u)*255),this.g=ni((a+u)*255),this.b=ni((s+u)*255)}fromHsv({h:t,s:r,v:n,a:i}){this._h=t%360,this._s=r,this._v=n,this.a=typeof i=="number"?i:1;const o=ni(n*255);if(this.r=o,this.g=o,this.b=o,r<=0)return;const a=t/60,s=Math.floor(a),l=a-s,c=ni(n*(1-r)*255),d=ni(n*(1-r*l)*255),u=ni(n*(1-r*(1-l))*255);switch(s){case 0:this.g=u,this.b=c;break;
92case 1:this.r=d,this.b=c;break;case 2:this.r=c,this.b=u;break;case 3:this.r=c,this.g=d;break;case 4:this.r=u,this.g=c;break;case 5:default:this.g=c,this.b=d;break}}fromHsvString(t){const r=FP(t,J8);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(t){const r=FP(t,J8);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(t){const r=FP(t,(n,i)=>i.includes("%")?ni(n/100*255):n);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}}var RS=2,Z8=.16,ige=.05,oge=.05,age=.15,vQ=5,gQ=4,sge=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function e5(e,t,r){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-RS*t:Math.round(e.h)+RS*t:n=r?Math.round(e.h)+RS*t:Math.round(e.h)-RS*t,n<0?n+=360:n>=360&&(n-=360),n}function t5(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-Z8*t:t===gQ?n=e.s+Z8:n=e.s+ige*t,n>1&&(n=1),r&&t===vQ&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(n*100)/100}function r5(e,t,r){var n;return r?n=e.v+oge*t:n=e.v-age*t,n=Math.max(0,Math.min(1,n)),Math.round(n*100)/100}function ty(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=new ar(e),i=n.toHsv(),o=vQ;o>0;o-=1){var a=new ar({h:e5(i,o,!0),s:t5(i,o,!0),v:r5(i,o,!0)});r.push(a)}r.push(n);for(var s=1;s<=gQ;s+=1){var l=new ar({h:e5(i,s),s:t5(i,s),v:r5(i,s)});r.push(l)}return t.theme==="dark"?sge.map(function(c){var d=c.index,u=c.amount;return new ar(t.backgroundColor||"#141414").mix(r[d],u).toHexString()}):r.map(function(c){return c.toHexString()})}var ep={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"},CM=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];CM.primary=CM[5];var bM=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];bM.primary=bM[5];var wM=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];wM.primary=wM[5];var pb=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];pb.primary=pb[5];var _M=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];_M.primary=_M[5];var EM=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];EM.primary=EM[5];var RM=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];RM.primary=RM[5];var PM=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];PM.primary=PM[5];var Sp=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Sp.primary=Sp[5];var IM=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];IM.primary=IM[5];var xM=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];xM.primary=xM[5];var OM=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];OM.primary=OM[5];var TM=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];TM.primary=TM[5];var zP={red:CM,volcano:bM,orange:wM,gold:pb,yellow:_M,lime:EM,green:RM,cyan:PM,blue:Sp,geekblue:IM,purple:xM,magenta:OM,grey:TM};function lge(e,{generateColorPalettes:t,generateNeutralColorPalettes:r}){const{colorSuccess:n,colorWarning:i,colorError:o,colorInfo:a,colorPrimary:s,colorBgBase:l,colorTextBase:c}=e,d=t(s),u=t(n),f=t(i),h=t(o),v=t(a),y=r(l,c),g=e.colorLink||e.colorInfo,m=t(g),S=new ar(h[1]).mix(new ar(h[3]),50).toHexString();return Object.assign(Object.assign({},y),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:
92d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:u[1],colorSuccessBgHover:u[2],colorSuccessBorder:u[3],colorSuccessBorderHover:u[4],colorSuccessHover:u[4],colorSuccess:u[6],colorSuccessActive:u[7],colorSuccessTextHover:u[8],colorSuccessText:u[9],colorSuccessTextActive:u[10],colorErrorBg:h[1],colorErrorBgHover:h[2],colorErrorBgFilledHover:S,colorErrorBgActive:h[3],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[10],colorWarningBg:f[1],colorWarningBgHover:f[2],colorWarningBorder:f[3],colorWarningBorderHover:f[4],colorWarningHover:f[4],colorWarning:f[6],colorWarningActive:f[7],colorWarningTextHover:f[8],colorWarningText:f[9],colorWarningTextActive:f[10],colorInfoBg:v[1],colorInfoBgHover:v[2],colorInfoBorder:v[3],colorInfoBorderHover:v[4],colorInfoHover:v[4],colorInfo:v[6],colorInfoActive:v[7],colorInfoTextHover:v[8],colorInfoText:v[9],colorInfoTextActive:v[10],colorLinkHover:m[4],colorLink:m[6],colorLinkActive:m[7],colorBgMask:new ar("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const cge=e=>{let t=e,r=e,n=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:i}},uge=cge;function dge(e){const{motionUnit:t,motionBase:r,borderRadius:n,lineWidth:i}=e;return Object.assign({motionDurationFast:`${(r+t).toFixed(1)}s`,motionDurationMid:`${(r+t*2).toFixed(1)}s`,motionDurationSlow:`${(r+t*3).toFixed(1)}s`,lineWidthBold:i+1},uge(n))}const fge=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},pge=fge;function dC(e){return(e+8)/e}function hge(e){const t=Array.from({length:10}).map((r,n)=>{const i=n-1,o=e*Math.pow(Math.E,i/5),a=n>1?Math.floor(o):Math.ceil(o);return Math.floor(a/2)*2});return t[1]=e,t.map(r=>({size:r,lineHeight:dC(r)}))}const vge=e=>{const t=hge(e),r=t.map(d=>d.size),n=t.map(d=>d.lineHeight),i=r[1],o=r[0],a=r[2],s=n[1],l=n[0],c=n[2];return{fontSizeSM:o,fontSize:i,fontSizeLG:a,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*i),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(l*o),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}},gge=vge;function mge(e){const{sizeUnit:t,sizeStep:r}=e;return{sizeXXL:t*(r+8),sizeXL:t*(r+4),sizeLG:t*(r+2),sizeMD:t*(r+1),sizeMS:t*r,size:t*r,sizeSM:t*(r-1),sizeXS:t*(r-2),sizeXXS:t*(r-3)}}const da=(e,t)=>new ar(e).setA(t).toRgbString(),$h=(e,t)=>new ar(e).darken(t).toHexString(),yge=e=>{const t=ty(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]}},Sge=(e,t)=>{const r=e||"#fff",n=t||"#000";return{colorBgBase:r,colorTextBase:n,colorText:da(n,.88),colorTextSecondary:da(n,.65),colorTextTertiary:da(n,.45),colorTextQuaternary:da(n,.25),colorFill:da(n,.15),colorFillSecondary:da(n,.06),colorFillTertiary:da(n,.04),colorFillQuaternary:da(n,.02),colorBgSolid:da(n,1),colorBgSolidHover:da(n,.75),colorBgSolidActive:da(n,.95),colorBgLayout:$h(r,4),colorBgContainer:$h(r,0),colorBgElevated:$h(r,0),colorBgSpotlight:da(n,.85),colorBgBlur:"transparent",colorBorder:$h(r,15),colorBorderSecondary:$h(r,6)}};function Cge(e){ep.pink=ep.magenta,zP.pink=zP.magenta;const t=Object.keys(hQ).map(r=>{const n=e[r]===ep[r]?zP[r]:ty(e[r]);return Array.from({length:10},()=>1).reduce((i,o,a)=>(i[`${r}-${a+1}`]=n[a],i[`${r}${a+1}`]=n[a],i),{})}).reduce((r,n)=>(r=Object.assign(Object.assign({},r),n),r),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),lge(e,{generateColorPalettes:yge,generateNeutralColorPalettes:Sge})),gge(e.fontSize)),mge(e)),pge(e)),dge(e))}const bge=vM(Cge),mQ=bge,AM={token:ey,override:{override:ey},hashed:!0},yQ=de.createContext(AM),ry="ant",u_="anticon",wge=["outlined","borderless","filled","underlined"],_ge=(e,t)=>
92t||(e?`${ry}-${e}`:ry),Vt=p.createContext({getPrefixCls:_ge,iconPrefixCls:u_}),n5={};function Jn(e){const t=p.useContext(Vt),{getPrefixCls:r,direction:n,getPopupContainer:i}=t,o=t[e];return Object.assign(Object.assign({classNames:n5,styles:n5},o),{getPrefixCls:r,direction:n,getPopupContainer:i})}const Ege=`-ant-${Date.now()}-${Math.random()}`;function Rge(e,t){const r={},n=(a,s)=>{let l=a.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},i=(a,s)=>{const l=new ar(a),c=ty(l.toRgbString());r[`${s}-color`]=n(l),r[`${s}-color-disabled`]=c[1],r[`${s}-color-hover`]=c[4],r[`${s}-color-active`]=c[6],r[`${s}-color-outline`]=l.clone().setA(.2).toRgbString(),r[`${s}-color-deprecated-bg`]=c[0],r[`${s}-color-deprecated-border`]=c[2]};if(t.primaryColor){i(t.primaryColor,"primary");const a=new ar(t.primaryColor),s=ty(a.toRgbString());s.forEach((c,d)=>{r[`primary-${d+1}`]=c}),r["primary-color-deprecated-l-35"]=n(a,c=>c.lighten(35)),r["primary-color-deprecated-l-20"]=n(a,c=>c.lighten(20)),r["primary-color-deprecated-t-20"]=n(a,c=>c.tint(20)),r["primary-color-deprecated-t-50"]=n(a,c=>c.tint(50)),r["primary-color-deprecated-f-12"]=n(a,c=>c.setA(c.a*.12));const l=new ar(s[0]);r["primary-color-active-deprecated-f-30"]=n(l,c=>c.setA(c.a*.3)),r["primary-color-active-deprecated-d-02"]=n(l,c=>c.darken(2))}return t.successColor&&i(t.successColor,"success"),t.warningColor&&i(t.warningColor,"warning"),t.errorColor&&i(t.errorColor,"error"),t.infoColor&&i(t.infoColor,"info"),`
93  :root {
94    ${Object.keys(r).map(a=>`--${e}-${a}: ${r[a]};`).join(`
95`)}
96  }
97  `.trim()}function Pge(e,t){const r=Rge(e,t);Pi()&&dl(r,`${Ege}-dynamic-theme`)}const MM=p.createContext(!1),v4=({children:e,disabled:t})=>{const r=p.useContext(MM);return p.createElement(MM.Provider,{value:t??r},e)},ra=MM,$M=p.createContext(void 0),Ige=({children:e,size:t})=>{const r=p.useContext($M);return p.createElement($M.Provider,{value:t||r},e)},Zy=$M;function xge(){const e=p.useContext(ra),t=p.useContext(Zy);return{componentDisabled:e,componentSize:t}}var SQ=Br(function e(){zr(this,e)}),CQ="CALC_UNIT",Oge=new RegExp(CQ,"g");function BP(e){return typeof e=="number"?"".concat(e).concat(CQ):e}var Tge=function(e){di(r,e);var t=us(r);function r(n,i){var o;zr(this,r),o=t.call(this),J(Ut(o),"result",""),J(Ut(o),"unitlessCssVar",void 0),J(Ut(o),"lowPriority",void 0);var a=Pt(n);return o.unitlessCssVar=i,n instanceof r?o.result="(".concat(n.result,")"):a==="number"?o.result=BP(n):a==="string"&&(o.result=n),o}return Br(r,[{key:"add",value:function(i){return i instanceof r?this.result="".concat(this.result," + ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," + ").concat(BP(i))),this.lowPriority=!0,this}},{key:"sub",value:function(i){return i instanceof r?this.result="".concat(this.result," - ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," - ").concat(BP(i))),this.lowPriority=!0,this}},{key:"mul",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof r?this.result="".concat(this.result," * ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," * ").concat(i)),this.lowPriority=!1,this}},{key:"div",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof r?this.result="".concat(this.result," / ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," / ").concat(i)),this.lowPriority=!1,this}},{key:"getResult",value:function(i){return this.lowPriority||i?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(i){var o=this,a=i||{},s=a.unit,l=!0;return typeof s=="boolean"?l=s:Array.from(this.unitlessCssVar).some(function(c){return o.result.includes(c)})&&(l=!1),this.result=this.result.replace(Oge,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),r}(SQ),Age=function(e){di(r,e);var t=us(r);function r(n){var i;return zr(this,r),i=t.call(this),J(Ut(i),"result",0),n instanceof r?i.result=n.result:typeof n=="number"&&(i.result=n),i}return Br(r,[{key:"add",value:function(i){return i instanceof r?this.result+=i.result:typeof i=="number"&&(this.result+=i),this}},{key:"sub",value:function(i){return i instanceof r?this.result-=i.result:typeof i=="number"&&(this.result-=i),this}},{key:"mul",value:function(i){return i instanceof r?this.result*=i.result:typeof i=="number"&&(this.result*=i),this}},{key:"div",value:function(i){return i instanceof r?this.result/=i.result:typeof i=="number"&&(this.result/=i),this}},{key:"equal",value:function(){return this.result}}]),r}(SQ),Mge=function(t,r){var n=t==="css"?Tge:Age;return function(i){return new n(i,r)}},i5=function(t,r){return"".concat([r,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(
97Boolean).join("-"))};function lr(e){var t=p.useRef();t.current=e;var r=p.useCallback(function(){for(var n,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return(n=t.current)===null||n===void 0?void 0:n.call.apply(n,[t].concat(o))},[]);return r}function cd(e){var t=p.useRef(!1),r=p.useState(e),n=oe(r,2),i=n[0],o=n[1];p.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function a(s,l){l&&t.current||o(s)}return[i,a]}function HP(e){return e!==void 0}function Or(e,t){var r=t||{},n=r.defaultValue,i=r.value,o=r.onChange,a=r.postState,s=cd(function(){return HP(i)?i:HP(n)?typeof n=="function"?n():n:typeof e=="function"?e():e}),l=oe(s,2),c=l[0],d=l[1],u=i!==void 0?i:c,f=a?a(u):u,h=lr(o),v=cd([u]),y=oe(v,2),g=y[0],m=y[1];Zu(function(){var C=g[0];c!==C&&h(c,C)},[g]),Zu(function(){HP(i)||d(i)},[i]);var S=lr(function(C,b){d(C,b),m([u],b)});return[f,S]}function o5(e,t,r,n){var i=Q({},t[e]);if(n!=null&&n.deprecatedTokens){var o=n.deprecatedTokens;o.forEach(function(s){var l=oe(s,2),c=l[0],d=l[1];if(i!=null&&i[c]||i!=null&&i[d]){var u;(u=i[d])!==null&&u!==void 0||(i[d]=i==null?void 0:i[c])}})}var a=Q(Q({},r),i);return Object.keys(a).forEach(function(s){a[s]===t[s]&&delete a[s]}),a}var bQ=typeof CSSINJS_STATISTIC<"u",kM=!0;function sr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!bQ)return Object.assign.apply(Object,[{}].concat(t));kM=!1;var n={};return t.forEach(function(i){if(Pt(i)==="object"){var o=Object.keys(i);o.forEach(function(a){Object.defineProperty(n,a,{configurable:!0,enumerable:!0,get:function(){return i[a]}})})}}),kM=!0,n}var a5={};function $ge(){}var kge=function(t){var r,n=t,i=$ge;return bQ&&typeof Proxy<"u"&&(r=new Set,n=new Proxy(t,{get:function(a,s){if(kM){var l;(l=r)===null||l===void 0||l.add(s)}return a[s]}}),i=function(a,s){var l;a5[a]={global:Array.from(r),component:Q(Q({},(l=a5[a])===null||l===void 0?void 0:l.component),s)}}),{token:n,keys:r,flush:i}};function s5(e,t,r){if(typeof r=="function"){var n;return r(sr(t,(n=t[e])!==null&&n!==void 0?n:{}))}return r??{}}function Nge(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return"max(".concat(n.map(function(o){return fe(o)}).join(","),")")},min:function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return"min(".concat(n.map(function(o){return fe(o)}).join(","),")")}}}var Dge=1e3*60*10,Lge=function(){function e(){zr(this,e),J(this,"map",new Map),J(this,"objectIDMap",new WeakMap),J(this,"nextID",0),J(this,"lastAccessBeat",new Map),J(this,"accessBeat",0)}return Br(e,[{key:"set",value:function(r,n){this.clear();var i=this.getCompositeKey(r);this.map.set(i,n),this.lastAccessBeat.set(i,Date.now())}},{key:"get",value:function(r){var n=this.getCompositeKey(r),i=this.map.get(n);return this.lastAccessBeat.set(n,Date.now()),this.accessBeat+=1,i}},{key:"getCompositeKey",value:function(r){var n=this,i=r.map(function(o){return o&&Pt(o)==="object"?"obj_".concat(n.getObjectID(o)):"".concat(Pt(o),"_").concat(o)});return i.join("|")}},{key:"getObjectID",value:function(r){if(this.objectIDMap.has(r))return this.objectIDMap.get(r);var n=this.nextID;return this.objectIDMap.set(r,n),this.nextID+=1,n}},{key:"clear",value:function(){var r=this;if(this.accessBeat>1e4){var n=Date.now();this.lastAccessBeat.forEach(function(i,o){n-i>Dge&&(r.map.delete(o),r.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e}(),l5=new Lge;function jge(e,t){return de.useMemo(function(){var r=l5.get(t);if(r)return r;var n=e();return l5.set(t,n),n},t)}var Fge=function(){return{}};function zge(e){var t=e.useCSP,r=t===void 0?Fge:t,n=e.useToken,i=e.usePrefix,o=e.getResetStyles,a=e.getCommonStyle,s=e.getCompUnitless;function l(f,h,v,y){var g=Array.isArray(f)?f[0]:f;function m(R){return"".concat(String(g)).concat(R.slice(0,1).toUpperCase()).concat(R.slice(1))}var S=(y==null?void 0:y.unitless)||{},C=typeof s=="function"?s(f):{},b=Q(Q({},C),{},J({},m("zIndexPopup"),!0));Object.keys(S).forEach(function(R){b[m(R)]=S[R]});var w=Q(Q({},y),{},{unitless:b,prefixToken:m}),E=d(f,h,v,w),_=c(g,v,w);return function(R){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:R,I=E(R,P),O=oe(I,2),A=O[1],x=_(P),T=oe(x,2),D=T[0],k=T[1];return[D,A,k]}}function c(f,h,v){var y=v.unitless,g=v.injectStyle,m=g===void 0?!0:g,S=v.prefixToken,
97C=v.ignore,b=function(_){var R=_.rootCls,P=_.cssVar,I=P===void 0?{}:P,O=n(),A=O.realToken;return Fve({path:[f],prefix:I.prefix,key:I.key,unitless:y,ignore:C,token:A,scope:R},function(){var x=s5(f,A,h),T=o5(f,A,x,{deprecatedTokens:v==null?void 0:v.deprecatedTokens});return Object.keys(x).forEach(function(D){T[S(D)]=T[D],delete T[D]}),T}),null},w=function(_){var R=n(),P=R.cssVar;return[function(I){return m&&P?de.createElement(de.Fragment,null,de.createElement(b,{rootCls:_,cssVar:P,component:f}),I):I},P==null?void 0:P.key]};return w}function d(f,h,v){var y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},g=Array.isArray(f)?f:[f,f],m=oe(g,1),S=m[0],C=g.join("-"),b=e.layer||{name:"antd"};return function(w){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w,_=n(),R=_.theme,P=_.realToken,I=_.hashId,O=_.token,A=_.cssVar,x=i(),T=x.rootPrefixCls,D=x.iconPrefixCls,k=r(),j=A?"css":"js",N=jge(function(){var H=new Set;return A&&Object.keys(y.unitless||{}).forEach(function(U){H.add(iC(U,A.prefix)),H.add(iC(U,i5(S,A.prefix)))}),Mge(j,H)},[j,S,A==null?void 0:A.prefix]),L=Nge(j),M=L.max,$=L.min,F={theme:R,token:O,hashId:I,nonce:function(){return k.nonce},clientOnly:y.clientOnly,layer:b,order:y.order||-999};typeof o=="function"&&SM(Q(Q({},F),{},{clientOnly:!1,path:["Shared",T]}),function(){return o(O,{prefix:{rootPrefixCls:T,iconPrefixCls:D},csp:k})});var z=SM(Q(Q({},F),{},{path:[C,w,D]}),function(){if(y.injectStyle===!1)return[];var H=kge(O),U=H.token,V=H.flush,W=s5(S,P,v),K=".".concat(w),Z=o5(S,P,W,{deprecatedTokens:y.deprecatedTokens});A&&W&&Pt(W)==="object"&&Object.keys(W).forEach(function(re){W[re]="var(".concat(iC(re,i5(S,A.prefix)),")")});var q=sr(U,{componentCls:K,prefixCls:w,iconCls:".".concat(D),antCls:".".concat(T),calc:N,max:M,min:$},A?W:Z),Y=h(q,{hashId:I,prefixCls:w,rootPrefixCls:T,iconPrefixCls:D});V(S,Z);var G=typeof a=="function"?a(q,w,E,y.resetFont):null;return[y.resetStyle===!1?null:G,Y]});return[z,I]}}function u(f,h,v){var y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},g=d(f,h,v,Q({resetStyle:!1,order:-998},y)),m=function(C){var b=C.prefixCls,w=C.rootCls,E=w===void 0?b:w;return g(b,E),null};return m}return{genStyleHooks:l,genSubStyleComponent:u,genComponentStyleHook:d}}const Ac=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],Bge="5.27.0";function VP(e){return e>=0&&e<=255}function qg(e,t){const{r,g:n,b:i,a:o}=new ar(e).toRgb();if(o<1)return e;const{r:a,g:s,b:l}=new ar(t).toRgb();for(let c=.01;c<=1;c+=.01){const d=Math.round((r-a*(1-c))/c),u=Math.round((n-s*(1-c))/c),f=Math.round((i-l*(1-c))/c);if(VP(d)&&VP(u)&&VP(f))return new ar({r:d,g:u,b:f,a:Math.round(c*100)/100}).toRgbString()}return new ar({r,g:n,b:i,a:1}).toRgbString()}var Hge=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function wQ(e){const{override:t}=e,r=Hge(e,["override"]),n=Object.assign({},t);Object.keys(ey).forEach(f=>{delete n[f]});const i=Object.assign(Object.assign({},r),n),o=480,a=576,s=768,l=992,c=1200,d=1600;if(i.motion===!1){const f="0s";i.motionDurationFast=f,i.motionDurationMid=f,i.motionDurationSlow=f}return Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:qg(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:qg(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:qg(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*3,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:qg(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:`
98      0 6px 16px 0 rgba(0, 0, 0, 0.08),
99      0 3px 6px -4px rgba(0, 0, 0, 0.12),
100      0 9px 28px 8px rgba(0, 0, 0, 0.05)
101    `,boxShadowSecondary:`
102      0 6px 16px 0 rgba(0, 0, 0, 0.08),
103      0 3px 6px -4px rgba(0, 0, 0, 0.12),
104      0 9px 28px 8px rgba(0, 0, 0, 0.05)
105    `,boxShadowTertiary:`
106      0 1px 2px 0 rgba(0, 0, 0, 0.03),
107      0 1px 6px -1px rgba(0, 0, 0, 0.02),
108      0 2px 4px 0 rgba(0, 0, 0, 0.02)
109    `,screenXS:o,screenXSMin:o,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:d-1,screenXXL:d,screenXXLMin:d,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
110      0 1px 2px -2px ${new ar("rgba(0, 0, 0, 0.16)").toRgbString()},
111      0 3px 6px 0 ${new ar("rgba(0, 0, 0, 0.12)").toRgbString()},
112      0 5px 12px 4px ${new ar("rgba(0, 0, 0, 0.09)").toRgbString()}
113    `,boxShadowDrawerRight:`
114      -6px 0 16px 0 rgba(0, 0, 0, 0.08),
115      -3px 0 6px -4px rgba(0, 0, 0, 0.12),
116      -9px 0 28px 8px rgba(0, 0, 0, 0.05)
117    `,boxShadowDrawerLeft:`
118      6px 0 16px 0 rgba(0, 0, 0, 0.08),
119      3px 0 6px -4px rgba(0, 0, 0, 0.12),
120      9px 0 28px 8px rgba(0, 0, 0, 0.05)
121    `,boxShadowDrawerUp:`
122      0 6px 16px 0 rgba(0, 0, 0, 0.08),
123      0 3px 6px -4px rgba(0, 0, 0, 0.12),
124      0 9px 28px 8px rgba(0, 0, 0, 0.05)
125    `,boxShadowDrawerDown:`
126      0 -6px 16px 0 rgba(0, 0, 0, 0.08),
127      0 -3px 6px -4px rgba(0, 0, 0, 0.12),
128      0 -9px 28px 8px rgba(0, 0, 0, 0.05)
129    `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTo
129p:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),n)}var c5=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const _Q={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},Vge={motionBase:!0,motionUnit:!0},Uge={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},EQ=(e,t,r)=>{const n=r.getDerivativeToken(e),{override:i}=t,o=c5(t,["override"]);let a=Object.assign(Object.assign({},n),{override:i});return a=wQ(a),o&&Object.entries(o).forEach(([s,l])=>{const{theme:c}=l,d=c5(l,["theme"]);let u=d;c&&(u=EQ(Object.assign(Object.assign({},a),d),{override:d},c)),a[s]=u}),a};function ko(){const{token:e,hashed:t,theme:r,override:n,cssVar:i}=de.useContext(yQ),o=`${Bge}-${t||""}`,a=r||mQ,[s,l,c]=dve(a,[ey,e],{salt:o,override:n,getComputedToken:EQ,formatToken:wQ,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:_Q,ignore:Vge,preserve:Uge}});return[a,c,t?l:"",s,i]}const zs={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Kr=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),e0=()=>({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"}}),Vc=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),Wge=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, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),qge=(e,t,r,n)=>{const i=`[class^="${t}"], [class*=" ${t}"]`,o=r?`.${r}`:i,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return n!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},s),a),{[i]:a})}},ny=(e,t)=>({outline:`${fe(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),Mc=(e,t)=>({"&:focus-visible":ny(e,t)}),RQ=e=>({[`.${e}`]:Object.assign(Object.assign({},e0()),{[`.${e} .${e}-icon`]:{display:"block"}})}),PQ=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},Mc(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),{genStyleHooks:Nr,genComponentStyleHook:Gge,genSubStyleComponent:Wp}=zge({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=p.useContext(Vt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,r,n,i]=ko();return{theme:e,realToken:t,hashId:r,token:n,cssVar:i}},useCSP:()=>{const{csp:e}=p.useContext(Vt);return e??{}},getResetStyles:(e,t)=>{var r;const n=Wge(e);return[n,{"&":n},RQ((r=t==null?void 0:t.prefix.iconPrefixCls)!==null&&r!==void 0?r:u_)]},getCommonStyle:qge,getCompUnitless:()=>_Q});function IQ(e,t){return Ac.reduce((r,n)=>{const i=e[`${n}1`],o=e[`${n}3`],a=e[`${n}6`],s=e[`${n}7`];return Object.assign(Object.assign({},r),t(n,{lightColor:i,lightBorderColor:o,darkColor:a,textColor:s}))},{})}const Kge=(e,t)=>
129{const[r,n]=ko();return SM({theme:r,token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>RQ(e))},Yge=Kge,Xge=Object.assign({},Uy),{useId:u5}=Xge,Qge=()=>"",Jge=typeof u5>"u"?Qge:u5,Zge=Jge;function eme(e,t,r){var n;c_();const i=e||{},o=i.inherit===!1||!t?Object.assign(Object.assign({},AM),{hashed:(n=t==null?void 0:t.hashed)!==null&&n!==void 0?n:AM.hashed,cssVar:t==null?void 0:t.cssVar}):t,a=Zge();return Qy(()=>{var s,l;if(!e)return t;const c=Object.assign({},o.components);Object.keys(e.components||{}).forEach(f=>{c[f]=Object.assign(Object.assign({},c[f]),e.components[f])});const d=`css-var-${a.replace(/:/g,"")}`,u=((s=i.cssVar)!==null&&s!==void 0?s:o.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:r==null?void 0:r.prefixCls},typeof o.cssVar=="object"?o.cssVar:{}),typeof i.cssVar=="object"?i.cssVar:{}),{key:typeof i.cssVar=="object"&&((l=i.cssVar)===null||l===void 0?void 0:l.key)||d});return Object.assign(Object.assign(Object.assign({},o),i),{token:Object.assign(Object.assign({},o.token),i.token),components:c,cssVar:u})},[i,o],(s,l)=>s.some((c,d)=>{const u=l[d];return!ld(c,u,!0)}))}var tme=["children"],xQ=p.createContext({});function rme(e){var t=e.children,r=Nt(e,tme);return p.createElement(xQ.Provider,{value:r},t)}var nme=function(e){di(r,e);var t=us(r);function r(){return zr(this,r),t.apply(this,arguments)}return Br(r,[{key:"render",value:function(){return this.props.children}}]),r}(p.Component);function ime(e){var t=p.useReducer(function(s){return s+1},0),r=oe(t,2),n=r[1],i=p.useRef(e),o=lr(function(){return i.current}),a=lr(function(s){i.current=typeof s=="function"?s(i.current):s,n()});return[o,a]}var Ql="none",PS="appear",IS="enter",xS="leave",d5="none",Ga="prepare",kf="start",Nf="active",g4="end",OQ="prepared";function f5(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit".concat(e)]="webkit".concat(t),r["Moz".concat(e)]="moz".concat(t),r["ms".concat(e)]="MS".concat(t),r["O".concat(e)]="o".concat(t.toLowerCase()),r}function ome(e,t){var r={animationend:f5("Animation","AnimationEnd"),transitionend:f5("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var ame=ome(Pi(),typeof window<"u"?window:{}),TQ={};if(Pi()){var sme=document.createElement("div");TQ=sme.style}var OS={};function AQ(e){if(OS[e])return OS[e];var t=ame[e];if(t)for(var r=Object.keys(t),n=r.length,i=0;i<n;i+=1){var o=r[i];if(Object.prototype.hasOwnProperty.call(t,o)&&o in TQ)return OS[e]=t[o],OS[e]}return""}var MQ=AQ("animationend"),$Q=AQ("transitionend"),kQ=!!(MQ&&$Q),p5=MQ||"animationend",h5=$Q||"transitionend";function v5(e,t){if(!e)return null;if(Pt(e)==="object"){var r=t.replace(/-\w/g,function(n){return n[1].toUpperCase()});return e[r]}return"".concat(e,"-").concat(t)}const lme=function(e){var t=p.useRef();function r(i){i&&(i.removeEventListener(h5,e),i.removeEventListener(p5,e))}function n(i){t.current&&t.current!==i&&r(t.current),i&&i!==t.current&&(i.addEventListener(h5,e),i.addEventListener(p5,e),t.current=i)}return p.useEffect(function(){return function(){r(t.current)}},[]),[n,r]};var NQ=Pi()?p.useLayoutEffect:p.useEffect;const cme=function(){var e=p.useRef(null);function t(){Gt.cancel(e.current)}function r(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var o=Gt(function(){i<=1?n({isCanceled:function(){return o!==e.current}}):r(n,i-1)});e.current=o}return p.useEffect(function(){return function(){t()}},[]),[r,t]};var ume=[Ga,kf,Nf,g4],dme=[Ga,OQ],DQ=!1,fme=!0;function LQ(e){return e===Nf||e===g4}const pme=function(e,t,r){var n=cd(d5),i=oe(n,2),o=i[0],a=i[1],s=cme(),l=oe(s,2),c=l[0],d=l[1];function u(){a(Ga,!0)}var f=t?dme:ume;return NQ(function(){if(o!==d5&&o!==g4){var h=f.indexOf(o),v=f[h+1],y=r(o);y===DQ?a(v,!0):v&&c(function(g){function m(){g.isCanceled()||a(v,!0)}y===!0?m():Promise.resolve(y).then(m)})}},[e,o]),p.useEffect(function(){return function(){d()}},[]),[u,o]};function hme(e,t,r,n){var i=n.motionEnter,o=i===void 0?!0:i,a=n.motionAppear,s=a===void 0?!0:a,l=n.motionLeave,c=l===void 0?!0:l,d=n.motionDeadline,u=n.motionLeaveImmediately,f=n.onAppearPrepare,h=n.onEnterPrepare,v=n.onLeavePrepare,y=n.onAppearStart,g=n.onEnterStart,m=n.onLeaveStart,S=n.onAppearActive,C=n.onEnterActive,b=n.onLeaveActive,w=n.onAppearEnd,E=n.onEnterEnd,_=n.onLeaveEnd,R=n.onVisibleChanged,P=cd(),I=oe(P,2),O=I[0],A=I[1],x=ime(Ql),T=oe(x,2),D=T[0],k=T[1],j=cd(null),N=oe(j,2),L=N[0],M=N[1],$=D(),F=p.useRef(!1),z=p.useRef(null);function H(){return r()}var U=p.useRef(!1);function V(){k(Ql),M(null,!0)}var W=lr(function(_e){var De=D();if(De!==Ql){var be=H();if(!(_e&&!_e.deadline&&_e.target!==be)){var se=U.current,Pe;De===PS&&se?Pe=w==null?void 0:w(be,_e):De===IS&&se?Pe=E==null?void 0:E(be,_e):De===xS&&se&&(Pe=_==null?void 0:_(be,_e)),se&&Pe!==!1&&V()}}}),K=lme(W),Z=oe(K,1),q=Z[0],Y=function(De){switch(De){case PS:return J(J(J({},Ga,f),kf,y),Nf,S);case IS:return J(J(J({},Ga,h),kf,g),Nf,C);case xS:return J(J(J({},Ga,v),kf,m),Nf,b);default:return{}}},G=p.useMemo(function(){return Y($)},[$]),re=pme($,!e,function(_e){if(_e===Ga){var De=G[Ga];return De?De(H()):DQ}if(te in G){var be;M(((be=G[te])===null||be===void 0?void 0:be.call(G,H(),null))||null)}return te===Nf&&$!==Ql&&(q(H()),d>0&&(clearTimeout(z.current),z.current=setTimeout(function(){W({deadline:!0})},d))),te===OQ&&V(),fme}),ee=oe(re,2),ne=ee[0],te=ee[1],pe=LQ(te);U.current=pe;var le=p.useRef(null);NQ(function(){if(!(F.current&&le.current===t)){A(t);var _e=F.current;F.current=!0;var De;!_e&&t&&s&&(De=PS),_e&&t&&o&&(De=IS),(_e&&!t&&c||!_e&&u&&!t&&c)&&(De=xS);var be=Y(De);
129De&&(e||be[Ga])?(k(De),ne()):k(Ql),le.current=t}},[t]),p.useEffect(function(){($===PS&&!s||$===IS&&!o||$===xS&&!c)&&k(Ql)},[s,o,c]),p.useEffect(function(){return function(){F.current=!1,clearTimeout(z.current)}},[]);var ye=p.useRef(!1);p.useEffect(function(){O&&(ye.current=!0),O!==void 0&&$===Ql&&((ye.current||O)&&(R==null||R(O)),ye.current=!0)},[O,$]);var Se=L;return G[Ga]&&te===kf&&(Se=Q({transition:"none"},Se)),[$,te,Se,O??t]}function vme(e){var t=e;Pt(e)==="object"&&(t=e.transitionSupport);function r(i,o){return!!(i.motionName&&t&&o!==!1)}var n=p.forwardRef(function(i,o){var a=i.visible,s=a===void 0?!0:a,l=i.removeOnLeave,c=l===void 0?!0:l,d=i.forceRender,u=i.children,f=i.motionName,h=i.leavedClassName,v=i.eventProps,y=p.useContext(xQ),g=y.motion,m=r(i,g),S=p.useRef(),C=p.useRef();function b(){try{return S.current instanceof HTMLElement?S.current:nC(C.current)}catch{return null}}var w=hme(m,s,b,i),E=oe(w,4),_=E[0],R=E[1],P=E[2],I=E[3],O=p.useRef(I);I&&(O.current=!0);var A=p.useCallback(function(N){S.current=N,o4(o,N)},[o]),x,T=Q(Q({},v),{},{visible:s});if(!u)x=null;else if(_===Ql)I?x=u(Q({},T),A):!c&&O.current&&h?x=u(Q(Q({},T),{},{className:h}),A):d||!c&&!h?x=u(Q(Q({},T),{},{style:{display:"none"}}),A):x=null;else{var D;R===Ga?D="prepare":LQ(R)?D="active":R===kf&&(D="start");var k=v5(f,"".concat(_,"-").concat(D));x=u(Q(Q({},T),{},{className:ie(v5(f,_),J(J({},k,k&&D),f,typeof f=="string")),style:P}),A)}if(p.isValidElement(x)&&Hc(x)){var j=Id(x);j||(x=p.cloneElement(x,{ref:A}))}return p.createElement(nme,{ref:C},x)});return n.displayName="CSSMotion",n}const No=vme(kQ);var NM="add",DM="keep",LM="remove",UP="removed";function gme(e){var t;return e&&Pt(e)==="object"&&"key"in e?t=e:t={key:e},Q(Q({},t),{},{key:String(t.key)})}function jM(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(gme)}function mme(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=[],n=0,i=t.length,o=jM(e),a=jM(t);o.forEach(function(c){for(var d=!1,u=n;u<i;u+=1){var f=a[u];if(f.key===c.key){n<u&&(r=r.concat(a.slice(n,u).map(function(h){return Q(Q({},h),{},{status:NM})})),n=u),r.push(Q(Q({},f),{},{status:DM})),n+=1,d=!0;break}}d||r.push(Q(Q({},c),{},{status:LM}))}),n<i&&(r=r.concat(a.slice(n).map(function(c){return Q(Q({},c),{},{status:NM})})));var s={};r.forEach(function(c){var d=c.key;s[d]=(s[d]||0)+1});var l=Object.keys(s).filter(function(c){return s[c]>1});return l.forEach(function(c){r=r.filter(function(d){var u=d.key,f=d.status;return u!==c||f!==LM}),r.forEach(function(d){d.key===c&&(d.status=DM)})}),r}var yme=["component","children","onVisibleChanged","onAllRemoved"],Sme=["status"],Cme=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function bme(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:No,r=function(n){di(o,n);var i=us(o);function o(){var a;zr(this,o);for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return a=i.call.apply(i,[this].concat(l)),J(Ut(a),"state",{keyEntities:[]}),J(Ut(a),"removeKey",function(d){a.setState(function(u){var f=u.keyEntities.map(function(h){return h.key!==d?h:Q(Q({},h),{},{status:UP})});return{keyEntities:f}},function(){var u=a.state.keyEntities,f=u.filter(function(h){var v=h.status;return v!==UP}).length;f===0&&a.props.onAllRemoved&&a.props.onAllRemoved()})}),a}return Br(o,[{key:"render",value:function(){var s=this,l=this.state.keyEntities,c=this.props,d=c.component,u=c.children,f=c.onVisibleChanged;c.onAllRemoved;var h=Nt(c,yme),v=d||p.Fragment,y={};return Cme.forEach(function(g){y[g]=h[g],delete h[g]}),delete h.keys,p.createElement(v,h,l.map(function(g,m){var S=g.status,C=Nt(g,Sme),b=S===NM||S===DM;return p.createElement(t,$e({},y,{key:C.key,visible:b,eventProps:C,onVisibleChanged:function(E){f==null||f(E,{key:C.key}),E||s.removeKey(C.key)}}),function(w,E){return u(Q(Q({},w),{},{index:m}),E)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var c=s.keys,d=l.keyEntities,u=jM(c),f=mme(d,u);return{keyEntities:f.filter(function(h){var v=d.find(function(y){var g=y.key;return h.key===g});return!(v&&v.status===UP&&h.status===LM)})}}}]),o}(p.Component);return J(r,"defaultProps",{component:"div"}),r}const m4=bme(kQ),g5=p.createContext(!0);function wme(e){const t=p.useContext(g5),{children:r}=e,[,n]=ko(),{motion:i}=n,o=p.useRef(!1);return o.current||(o.current=t!==i),o.current?p.createElement(g5.Provider,{value:i},p.createElement(rme,{motion:i},r)):r}const _me=()=>null;var Eme=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const Rme=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let hb,jQ,FQ,zQ;function fC(){return hb||ry}function Pme(){return jQ||u_}function Ime(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const xme=e=>{const{prefixCls:t,iconPrefixCls:r,theme:n,holderRender:i}=e;t!==void 0&&(hb=t),r!==void 0&&(jQ=r),"holderRender"in e&&(zQ=i),n&&(Ime(n)?Pge
129(fC(),n):FQ=n)},BQ=()=>({getPrefixCls:(e,t)=>t||(e?`${fC()}-${e}`:fC()),getIconPrefixCls:Pme,getRootPrefixCls:()=>hb||fC(),getTheme:()=>FQ,holderRender:zQ}),Ome=e=>{const{children:t,csp:r,autoInsertSpaceInButton:n,alert:i,anchor:o,form:a,locale:s,componentSize:l,direction:c,space:d,splitter:u,virtual:f,dropdownMatchSelectWidth:h,popupMatchSelectWidth:v,popupOverflow:y,legacyLocale:g,parentContext:m,iconPrefixCls:S,theme:C,componentDisabled:b,segmented:w,statistic:E,spin:_,calendar:R,carousel:P,cascader:I,collapse:O,typography:A,checkbox:x,descriptions:T,divider:D,drawer:k,skeleton:j,steps:N,image:L,layout:M,list:$,mentions:F,modal:z,progress:H,result:U,slider:V,breadcrumb:W,menu:K,pagination:Z,input:q,textArea:Y,empty:G,badge:re,radio:ee,rate:ne,switch:te,transfer:pe,avatar:le,message:ye,tag:Se,table:_e,card:De,tabs:be,timeline:se,timePicker:Pe,upload:Te,notification:ze,tree:ke,colorPicker:Me,datePicker:qe,rangePicker:Le,flex:xe,wave:je,dropdown:Ee,warning:Re,tour:me,tooltip:ce,popover:Ae,popconfirm:We,floatButton:lt,floatButtonGroup:yt,variant:nt,inputNumber:it,treeSelect:gt}=e,Ye=p.useCallback((et,tt)=>{const{prefixCls:ot}=e;if(tt)return tt;const rt=ot||m.getPrefixCls("");return et?`${rt}-${et}`:rt},[m.getPrefixCls,e.prefixCls]),vt=S||m.iconPrefixCls||u_,mt=r||m.csp;Yge(vt,mt);const St=eme(C,m.theme,{prefixCls:Ye("")}),pt={csp:mt,autoInsertSpaceInButton:n,alert:i,anchor:o,locale:s||g,direction:c,space:d,splitter:u,virtual:f,popupMatchSelectWidth:v??h,popupOverflow:y,getPrefixCls:Ye,iconPrefixCls:vt,theme:St,segmented:w,statistic:E,spin:_,calendar:R,carousel:P,cascader:I,collapse:O,typography:A,checkbox:x,descriptions:T,divider:D,drawer:k,skeleton:j,steps:N,image:L,input:q,textArea:Y,layout:M,list:$,mentions:F,modal:z,progress:H,result:U,slider:V,breadcrumb:W,menu:K,pagination:Z,empty:G,badge:re,radio:ee,rate:ne,switch:te,transfer:pe,avatar:le,message:ye,tag:Se,table:_e,card:De,tabs:be,timeline:se,timePicker:Pe,upload:Te,notification:ze,tree:ke,colorPicker:Me,datePicker:qe,rangePicker:Le,flex:xe,wave:je,dropdown:Ee,warning:Re,tour:me,tooltip:ce,popover:Ae,popconfirm:We,floatButton:lt,floatButtonGroup:yt,variant:nt,inputNumber:it,treeSelect:gt},Rt=Object.assign({},m);Object.keys(pt).forEach(et=>{pt[et]!==void 0&&(Rt[et]=pt[et])}),Rme.forEach(et=>{const tt=e[et];tt&&(Rt[et]=tt)}),typeof n<"u"&&(Rt.button=Object.assign({autoInsertSpace:n},Rt.button));const ae=Qy(()=>Rt,Rt,(et,tt)=>{const ot=Object.keys(et),rt=Object.keys(tt);return ot.length!==rt.length||ot.some(ft=>et[ft]!==tt[ft])}),{layer:ue}=p.useContext(Jy),ve=p.useMemo(()=>({prefixCls:vt,csp:mt,layer:ue?"antd":void 0}),[vt,mt,ue]);let Ce=p.createElement(p.Fragment,null,p.createElement(_me,{dropdownMatchSelectWidth:h}),t);const Fe=p.useMemo(()=>{var et,tt,ot,rt;return $f(((et=Fs.Form)===null||et===void 0?void 0:et.defaultValidateMessages)||{},((ot=(tt=ae.locale)===null||tt===void 0?void 0:tt.Form)===null||ot===void 0?void 0:ot.defaultValidateMessages)||{},((rt=ae.form)===null||rt===void 0?void 0:rt.validateMessages)||{},(a==null?void 0:a.validateMessages)||{})},[ae,a==null?void 0:a.validateMessages]);Object.keys(Fe).length>0&&(Ce=p.createElement(uQ.Provider,{value:Fe},Ce)),s&&(Ce=p.createElement(rge,{locale:s,_ANT_MARK__:ege},Ce)),(vt||mt)&&(Ce=p.createElement(p4.Provider,{value:ve},Ce)),l&&(Ce=p.createElement(Ige,{size:l},Ce)),Ce=p.createElement(wme,null,Ce);const Ze=p.useMemo(()=>{const et=St||{},{algorithm:tt,token:ot,components:rt,cssVar:ft}=et,ge=Eme(et,["algorithm","token","components","cssVar"]),we=tt&&(!Array.isArray(tt)||tt.length>0)?vM(tt):mQ,Ie={};Object.entries(rt||{}).forEach(([Be,Xe])=>{const He=Object.assign({},Xe);"algorithm"in He&&(He.algorithm===!0?He.theme=we:(Array.isArray(He.algorithm)||typeof He.algorithm=="function")&&(He.theme=vM(He.algorithm)),delete He.algorithm),Ie[Be]=He});const Ne=Object.assign(Object.assign({},ey),ot);return Object.assign(Object.assign({},ge),{theme:we,token:Ne,components:Ie,override:Object.assign({override:Ne},Ie),cssVar:ft})},[St]);return C&&(Ce=p.createElement(yQ.Provider,{value:Ze},Ce)),ae.warning&&(Ce=p.createElement(Wve.Provider,{value:ae.warning},Ce)),b!==void 0&&(Ce=p.createElement(v4,{disabled:b},Ce)),p.createElement(Vt.Provider,{value:ae},Ce)},qp=e=>{const t=p.useContext(Vt),r=p.useContext(h4);return p.createElement(Ome,Object.assign({parentContext:t,legacyLocale:r},e))};qp.ConfigContext=Vt;qp.SizeContext=Zy;qp.config=xme;qp.useConfig=xge;Object.defineProperty(qp,"SizeContext",{get:()=>Zy});const Ii=qp;var Tme={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};const Ame=Tme;function HQ(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function Mme(e){return HQ(e)instanceof ShadowRoot}function vb(e){return Mme(e)?HQ(e):null}function $me(e){return e.replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function kme(e,t){Nn(e,"[@ant-design/icons] ".concat(t))}function m5(e){return Pt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Pt(e.icon)==="object"||typeof e.icon=="function")}function y5(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];switch(r){case"class":t.className=n,delete t.class;break;default:delete t[r],t[$me(r)]=n}return t},{})}function FM(e,t,r){return r?de.createElement(e.tag,Q(Q({key:t},y5(e.attrs)),r),(e.children||[]).map(function(n,i){return FM(n,"".concat(t,"-").concat(e.tag,"-").concat(i))})):de.createElement(e.tag,Q({key:t},y5(e.attrs)),(e.children||[]).map(function(n,i){return FM(n,"".concat(t,"-").concat(e.tag,"-").concat(i))}))}function VQ(e){return ty(e)[0]}function UQ(e){return e?Array.isArray(e)?e:[e]:[]}var Nme=`
130.anticon {
131  display: inline-flex;
132  align-items: center;
133  color: inherit;
134  font-style: normal;
135  line-height: 0;
136  text-align: center;
137  text-transform: none;
138  vertical-align: -0.125em;
139  text-rendering: optimizeLegibility;
140  -webkit-font-smoothing: antialiased;
141  -moz-osx-font-smoothing: grayscale;
142}
143
144.anticon > * {
145  line-height: 1;
146}
147
148.anticon svg {
149  display: inline-block;
150}
151
152.anticon::before {
153  display: none;
154}
155
156.anticon .anticon-icon {
157  display: block;
158}
159
160.anticon[tabindex] {
161  cursor: pointer;
162}
163
164.anticon-spin::before,
165.anticon-spin {
166  display: inline-block;
167  -webkit-animation: loadingCircle 1s infinite linear;
168  animation: loadingCircle 1s infinite linear;
169}
170
171@-webkit-keyframes loadingCircle {
172  100% {
173    -webkit-transform: rotate(360deg);
174    transform: rotate(360deg);
175  }
176}
177
178@keyframes loadingCircle {
179  100% {
180    -webkit-transform: rotate(360deg);
181    transform: rotate(360deg);
182  }
183}
184`,Dme=function(t){var r=p.useContext(p4),n=r.csp,i=r.prefixCls,o=r.layer,a=Nme;i&&(a=a.replace(/anticon/g,i)),o&&(a="@layer ".concat(o,` {
185`).concat(a,`
186}`)),p.useEffect(function(){var s=t.current,l=vb(s);dl(a,"@ant-design-icons",{prepend:!o,csp:n,attachTo:l})},[])},Lme=["icon","className","onClick","style","primaryColor","secondaryColor"],fm={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function jme(e){var t=e.primaryColor,r=e.secondaryColor;fm.primaryColor=t,fm.secondaryColor=r||VQ(t),fm.calculated=!!r}function Fme(){return Q({},fm)}var d_=function(t){var r=t.icon,n=t.className,i=t.onClick,o=t.style,a=t.primaryColor,s=t.secondaryColor,l=Nt(t,Lme),c=p.useRef(),d=fm;if(a&&(d={primaryColor:a,secondaryColor:s||VQ(a)}),Dme(c),kme(m5(r),"icon should be icon definiton, but got ".concat(r)),!m5(r))return null;var u=r;return u&&typeof u.icon=="function"&&(u=Q(Q({},u),{},{icon:u.icon(d.primaryColor,d.secondaryColor)})),FM(u.icon,"svg-".concat(u.name),Q(Q({className:n,onClick:i,style:o,"data-icon":u.name,width:"1em",height:"1em",fill:"
186currentColor","aria-hidden":"true"},l),{},{ref:c}))};d_.displayName="IconReact";d_.getTwoToneColors=Fme;d_.setTwoToneColors=jme;const y4=d_;function WQ(e){var t=UQ(e),r=oe(t,2),n=r[0],i=r[1];return y4.setTwoToneColors({primaryColor:n,secondaryColor:i})}function zme(){var e=y4.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Bme=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];WQ(Sp.primary);var f_=p.forwardRef(function(e,t){var r=e.className,n=e.icon,i=e.spin,o=e.rotate,a=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=Nt(e,Bme),d=p.useContext(p4),u=d.prefixCls,f=u===void 0?"anticon":u,h=d.rootClassName,v=ie(h,f,J(J({},"".concat(f,"-").concat(n.name),!!n.name),"".concat(f,"-spin"),!!i||n.name==="loading"),r),y=a;y===void 0&&s&&(y=-1);var g=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,m=UQ(l),S=oe(m,2),C=S[0],b=S[1];return p.createElement("span",$e({role:"img","aria-label":n.name},c,{ref:t,tabIndex:y,onClick:s,className:v}),p.createElement(y4,{icon:n,primaryColor:C,secondaryColor:b,style:g}))});f_.displayName="AntdIcon";f_.getTwoToneColor=zme;f_.setTwoToneColor=WQ;const Jt=f_;var Hme=function(t,r){return p.createElement(Jt,$e({},t,{ref:r,icon:Ame}))},Vme=p.forwardRef(Hme);const Gp=Vme;var Ume={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};const Wme=Ume;var qme=function(t,r){return p.createElement(Jt,$e({},t,{ref:r,icon:Wme}))},Gme=p.forwardRef(qme);const Uc=Gme;var Kme={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"}
186,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"};const Yme=Kme;var Xme=function(t,r){return p.createElement(Jt,$e({},t,{ref:r,icon:Yme}))},Qme=p.forwardRef(Xme);const Tl=Qme;var Jme={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};const Zme=Jme;var eye=function(t,r){return p.createElement(Jt,$e({},t,{ref:r,icon:Zme}))},tye=p.forwardRef(eye);const t0=tye;var rye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};const nye=rye;var iye=function(t,r){return p.createElement(Jt,$e({},t,{ref:r,icon:nye}))},oye=p.forwardRef(iye);const S4=oye;var aye=`accept acceptCharset accessKey action allowFullScreen allowTransparency
187    alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
188    charSet checked classID className colSpan cols content contentEditable contextMenu
189    controls coords crossOrigin data dateTime default defer dir disabled download draggable
190    encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
191    headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
192    is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
193    mediaGroup method min minLength multiple muted name noValidate nonce open
194    optimum pattern placeholder poster preload radioGroup readOnly rel required
195    reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
196    shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
197    summary tabIndex target title type useMap value width wmode wrap`,sye=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
198    onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
199    onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
200    onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
201    onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
202    onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
203    onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,lye="".concat(aye," ").concat(sye).split(/[\s\n]+/),cye="aria-",uye="data-";function S5(e,t){return e.indexOf(t)===0}function lo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r;t===!1?r={aria:!0,data:!0,attr:!0}:t===!0?r={aria:!0}:r=Q({},t);var n={};return Object.keys(e).forEach(function(i){(r.aria&&(i==="role"||S5(i,cye))||r.data&&S5(i,uye)||r.attr&&lye.includes(i))&&(n[i]=e[i])}),n}function qQ(e){return e&&de.isValidElement(e)&&e.type===de.Fragment}const C4=(e,t,r)=>de.isValidElement(e)?de.cloneElement(e,typeof r=="function"?r(e.props||{}):r):t;function ka(e,t){return C4(e,e,t)}const TS=(e,t,r,n,i)=>({background:e,border:`${fe(n.lineWidth)} ${n.lineType} ${t}`,[`${i}-icon`]:{color:r}}),dye=e=>{const{componentCls:t,motionDurationSlow:r,marginXS:n,marginSM:i,fontSize:o,fontSizeLG:a,lineHeight:s,borderRadiusLG:l,motionEaseInOutCirc:c,withDescriptionIconSize:d,colorText:u,colorTextHeading:f,withDescriptionPadding:h,defaultPadding:v}=e;return{[t]:Object.assign(Object.assign({},Kr(e)),{position:"relative",display:"flex",alignItems:"center",padding:v,wordWrap:"break-word",borderRadius:l,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:n,lineHeight:0},"&-description":{display:"none",fontSize:o,lineHeight:s},"&-message":{color:f},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${r} ${c}, opacity ${r} ${c},
204        padding-top ${r} ${c}, padding-bottom ${r} ${c},
205        margin-bottom ${r} ${c}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}
205}),[`${t}-with-description`]:{alignItems:"flex-start",padding:h,[`${t}-icon`]:{marginInlineEnd:i,fontSize:d,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:n,color:f,fontSize:a},[`${t}-description`]:{display:"block",color:u}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},fye=e=>{const{componentCls:t,colorSuccess:r,colorSuccessBorder:n,colorSuccessBg:i,colorWarning:o,colorWarningBorder:a,colorWarningBg:s,colorError:l,colorErrorBorder:c,colorErrorBg:d,colorInfo:u,colorInfoBorder:f,colorInfoBg:h}=e;return{[t]:{"&-success":TS(i,n,r,e,t),"&-info":TS(h,f,u,e,t),"&-warning":TS(s,a,o,e,t),"&-error":Object.assign(Object.assign({},TS(d,c,l,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},pye=e=>{const{componentCls:t,iconCls:r,motionDurationMid:n,marginXS:i,fontSizeIcon:o,colorIcon:a,colorIconHover:s}=e;return{[t]:{"&-action":{marginInlineStart:i},[`${t}-close-icon`]:{marginInlineStart:i,padding:0,overflow:"hidden",fontSize:o,lineHeight:fe(o),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${r}-close`]:{color:a,transition:`color ${n}`,"&:hover":{color:s}}},"&-close-text":{color:a,transition:`color ${n}`,"&:hover":{color:s}}}}},hye=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),vye=Nr("Alert",e=>[dye(e),fye(e),pye(e)],hye);var C5=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const gye={success:Gp,info:S4,error:Uc,warning:t0},mye=e=>{const{icon:t,prefixCls:r,type:n}=e,i=gye[n]||null;return t?C4(t,p.createElement("span",{className:`${r}-icon`},t),()=>({className:ie(`${r}-icon`,t.props.className)})):p.createElement(i,{className:`${r}-icon`})},yye=e=>{const{isClosable:t,prefixCls:r,closeIcon:n,handleClose:i,ariaProps:o}=e,a=n===!0||n===void 0?p.createElement(Tl,null):n;return t?p.createElement("button",Object.assign({type:"button",onClick:i,className:`${r}-close-icon`,tabIndex:0},o),a):null},Sye=p.forwardRef((e,t)=>{const{description:r,prefixCls:n,message:i,banner:o,className:a,rootClassName:s,style:l,onMouseEnter:c,onMouseLeave:d,onClick:u,afterClose:f,showIcon:h,closable:v,closeText:y,closeIcon:g,action:m,id:S}=e,C=C5(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[b,w]=p.useState(!1),E=p.useRef(null);p.useImperativeHandle(t,()=>({nativeElement:E.current}));const{getPrefixCls:_,direction:R,closable:P,closeIcon:I,className:O,style:A}=Jn("alert"),x=_("alert",n),[T,D,k]=vye(x),j=U=>{var V;w(!0),(V=e.onClose)===null||V===void 0||V.call(e,U)},N=p.useMemo(()=>e.type!==void 0?e.type:o?"warning":"info",[e.type,o]),L=p.useMemo(()=>typeof v=="object"&&v.closeIcon||y?!0:typeof v=="boolean"?v:g!==!1&&g!==null&&g!==void 0?!0:!!P,[y,g,v,P]),M=o&&h===void 0?!0:h,$=ie(x,`${x}-${N}`,{[`${x}-with-description`]:!!r,[`${x}-no-icon`]:!M,[`${x}-banner`]:!!o,[`${x}-rtl`]:R==="rtl"},O,a,s,k,D),F=lo(C,{aria:!0,data:!0}),z=p.useMemo(()=>typeof v=="object"&&v.closeIcon?v.closeIcon:y||(g!==void 0?g:typeof P=="object"&&P.closeIcon?P.closeIcon:I),[g,v,y,I]),H=p.useMemo(()=>{const U=v??P;return typeof U=="object"?C5(U,["closeIcon"]):{}},[v,P]);return T(p.createElement(No,{visible:!b,motionName:`${x}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:U=>({maxHeight:U.offsetHeight}),onLeaveEnd:f},({className:U,style:V},W)=>p.createElement("div",Object.assign({id:S,ref:ui(E,W),"data-show":!b,className:ie($,U),style:Object.assign(Object.assign(Object.assign({},A),l),V),onMouseEnter:c,onMouseLeave:d,onClick:u,role:"alert"},F),M?p.createElement(mye,{description:r,icon:e.icon,prefixCls:x,type:N}):null,p.createElement("div",{className:`${x}-content`},i?p.createElement("div",{className:`${x}-message`},i):null,r?p.createElement("div",{className:`${x}-description`},r):null),m?p.createElement("div",{className:`${x}-action`},m):null,p.createElement(yye,{isClosable:L,prefixCls:x,closeIcon:z,handleClose:j,ariaProps:H}))))}),GQ=Sye;function Cye(e,t,r){return t=Ri(t),xd(e,Ol()?Reflect.construct(t,r||[],Ri(e).constructor):t.apply(e,r))}let bye=function(e){function t(){var r;return zr(this,t),r=Cye(this,t,arguments),r.state={error:void 0,info:{componentStack:""}},r}
205return di(t,e),Br(t,[{key:"componentDidCatch",value:function(n,i){this.setState({error:n,info:i})}},{key:"render",value:function(){const{message:n,description:i,id:o,children:a}=this.props,{error:s,info:l}=this.state,c=(l==null?void 0:l.componentStack)||null,d=typeof n>"u"?(s||"").toString():n,u=typeof i>"u"?c:i;return s?p.createElement(GQ,{id:o,type:"error",message:d,description:p.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},u)}):a}}])}(p.Component);const wye=bye,KQ=GQ;KQ.ErrorBoundary=wye;const b5=KQ,w5=e=>typeof e=="object"&&e!=null&&e.nodeType===1,_5=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",AS=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const r=getComputedStyle(e,null);return _5(r.overflowY,t)||_5(r.overflowX,t)||(n=>{const i=(o=>{if(!o.ownerDocument||!o.ownerDocument.defaultView)return null;try{return o.ownerDocument.defaultView.frameElement}catch{return null}})(n);return!!i&&(i.clientHeight<n.scrollHeight||i.clientWidth<n.scrollWidth)})(e)}return!1},MS=(e,t,r,n,i,o,a,s)=>o<e&&a>t||o>e&&a<t?0:o<=e&&s<=r||a>=t&&s>=r?o-e-n:a>t&&s<r||o<e&&s>r?a-t+i:0,_ye=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},E5=(e,t)=>{var r,n,i,o;if(typeof document>"u")return[];const{scrollMode:a,block:s,inline:l,boundary:c,skipOverflowHiddenElements:d}=t,u=typeof c=="function"?c:k=>k!==c;if(!w5(e))throw new TypeError("Invalid target");const f=document.scrollingElement||document.documentElement,h=[];let v=e;for(;w5(v)&&u(v);){if(v=_ye(v),v===f){h.push(v);break}v!=null&&v===document.body&&AS(v)&&!AS(document.documentElement)||v!=null&&AS(v,d)&&h.push(v)}const y=(n=(r=window.visualViewport)==null?void 0:r.width)!=null?n:innerWidth,g=(o=(i=window.visualViewport)==null?void 0:i.height)!=null?o:innerHeight,{scrollX:m,scrollY:S}=window,{height:C,width:b,top:w,right:E,bottom:_,left:R}=e.getBoundingClientRect(),{top:P,right:I,bottom:O,left:A}=(k=>{const j=window.getComputedStyle(k);return{top:parseFloat(j.scrollMarginTop)||0,right:parseFloat(j.scrollMarginRight)||0,bottom:parseFloat(j.scrollMarginBottom)||0,left:parseFloat(j.scrollMarginLeft)||0}})(e);let x=s==="start"||s==="nearest"?w-P:s==="end"?_+O:w+C/2-P+O,T=l==="center"?R+b/2-A+I:l==="end"?E+I:R-A;const D=[];for(let k=0;k<h.length;k++){const j=h[k],{height:N,width:L,top:M,right:$,bottom:F,left:z}=j.getBoundingClientRect();if(a==="if-needed"&&w>=0&&R>=0&&_<=g&&E<=y&&(j===f&&!AS(j)||w>=M&&_<=F&&R>=z&&E<=$))return D;const H=getComputedStyle(j),U=parseInt(H.borderLeftWidth,10),V=parseInt(H.borderTopWidth,10),W=parseInt(H.borderRightWidth,10),K=parseInt(H.borderBottomWidth,10);let Z=0,q=0;const Y="offsetWidth"in j?j.offsetWidth-j.clientWidth-U-W:0,G="offsetHeight"in j?j.offsetHeight-j.clientHeight-V-K:0,re="offsetWidth"in j?j.offsetWidth===0?0:L/j.offsetWidth:0,ee="offsetHeight"in j?j.offsetHeight===0?0:N/j.offsetHeight:0;if(f===j)Z=s==="start"?x:s==="end"?x-g:s==="nearest"?MS(S,S+g,g,V,K,S+x,S+x+C,C):x-g/2,q=l==="start"?T:l==="center"?T-y/2:l==="end"?T-y:MS(m,m+y,y,U,W,m+T,m+T+b,b),Z=Math.max(0,Z+S),q=Math.max(0,q+m);else{Z=s==="start"?x-M-V:s==="end"?x-F+K+G:s==="nearest"?MS(M,F,N,V,K+G,x,x+C,C):x-(M+N/2)+G/2,q=l==="start"?T-z-U:l==="center"?T-(z+L/2)+Y/2:l==="end"?T-$+W+Y:MS(z,$,L,U,W+Y,T,T+b,b);const{scrollLeft:ne,scrollTop:te}=j;Z=ee===0?0:Math.max(0,Math.min(te+Z/ee,j.scrollHeight-N/ee+G)),q=re===0?0:Math.max(0,Math.min(ne+q/re,j.scrollWidth-L/re+Y)),x+=te-Z,T+=ne-q}D.push({el:j,top:Z,left:q})}return D},Eye=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function Rye(e,t){if(!e.isConnected||!(i=>{let o=i;for(;o&&o.parentNode;){if(o.parentNode===document)return!0;o=o.parentNode instanceof ShadowRoot?o.parentNode.host:o.parentNode}return!1})(e))return;const r=(i=>{const o=window.getComputedStyle(i);return{top:parseFloat(o.scrollMarginTop)||0,right:parseFloat(o.scrollMarginRight)||0,bottom:parseFloat(o.scrollMarginBottom)||0,left:parseFloat(o.scrollMarginLeft)||0}})(e);if((i=>typeof i=="object"&&typeof i.behavior=="function")(t))return t.behavior(E5(e,t));const n=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:i,top:o,left:a}of E5(e,Eye(t))){const s=o-r.top+r.bottom,l=a-r.left+r.right;i.scroll({top:s,left:l,behavior:n})}}const Pye=e=>{const[,,,,t]=ko();return t?`${e}-css-var`:""},fi=Pye;var Ue={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_
205SIX: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(t){var r=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||r>=Ue.F1&&r<=Ue.F12)return!1;switch(r){case Ue.ALT:case Ue.CAPS_LOCK:case Ue.CONTEXT_MENU:case Ue.CTRL:case Ue.DOWN:case Ue.END:case Ue.ESC:case Ue.HOME:case Ue.INSERT:case Ue.LEFT:case Ue.MAC_FF_META:case Ue.META:case Ue.NUMLOCK:case Ue.NUM_CENTER:case Ue.PAGE_DOWN:case Ue.PAGE_UP:case Ue.PAUSE:case Ue.PRINT_SCREEN:case Ue.RIGHT:case Ue.SHIFT:case Ue.UP:case Ue.WIN_KEY:case Ue.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=Ue.ZERO&&t<=Ue.NINE||t>=Ue.NUM_ZERO&&t<=Ue.NUM_MULTIPLY||t>=Ue.A&&t<=Ue.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case Ue.SPACE:case Ue.QUESTION_MARK:case Ue.NUM_PLUS:case Ue.NUM_MINUS:case Ue.NUM_PERIOD:case Ue.NUM_DIVISION:case Ue.SEMICOLON:case Ue.DASH:case Ue.EQUALS:case Ue.COMMA:case Ue.PERIOD:case Ue.SLASH:case Ue.APOSTROPHE:case Ue.SINGLE_QUOTE:case Ue.OPEN_SQUARE_BRACKET:case Ue.BACKSLASH:case Ue.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},YQ=p.forwardRef(function(e,t){var r=e.prefixCls,n=e.style,i=e.className,o=e.duration,a=o===void 0?4.5:o,s=e.showProgress,l=e.pauseOnHover,c=l===void 0?!0:l,d=e.eventKey,u=e.content,f=e.closable,h=e.closeIcon,v=h===void 0?"x":h,y=e.props,g=e.onClick,m=e.onNoticeClose,S=e.times,C=e.hovering,b=p.useState(!1),w=oe(b,2),E=w[0],_=w[1],R=p.useState(0),P=oe(R,2),I=P[0],O=P[1],A=p.useState(0),x=oe(A,2),T=x[0],D=x[1],k=C||E,j=a>0&&s,N=function(){m(d)},L=function(U){(U.key==="Enter"||U.code==="Enter"||U.keyCode===Ue.ENTER)&&N()};p.useEffect(function(){if(!k&&a>0){var H=Date.now()-T,U=setTimeout(function(){N()},a*1e3-T);return function(){c&&clearTimeout(U),D(Date.now()-H)}}},[a,k,S]),p.useEffect(function(){if(!k&&j&&(c||T===0)){var H=performance.now(),U,V=function W(){cancelAnimationFrame(U),U=requestAnimationFrame(function(K){var Z=K+T-H,q=Math.min(Z/(a*1e3),1);O(q*100),q<1&&W()})};return V(),function(){c&&cancelAnimationFrame(U)}}},[a,T,k,j,S]);var M=p.useMemo(function(){return Pt(f)==="object"&&f!==null?f:f?{closeIcon:v}:{}},[f,v]),$=lo(M,!0),F=100-(!I||I<0?0:I>100?100:I),z="".concat(r,"-notice");return p.createElement("div",$e({},y,{ref:t,className:ie(z,i,J({},"".concat(z,"-closable"),f)),style:n,onMouseEnter:function(U){var V;_(!0),y==null||(V=y.onMouseEnter)===null||V===void 0||V.call(y,U)},onMouseLeave:function(U){var V;_(!1),y==null||(V=y.onMouseLeave)===null||V===void 0||V.call(y,U)},onClick:g}),p.createElement("div",{className:"".concat(z,"-content")},u),f&&p.createElement("a",$e({tabIndex:0,className:"".concat(z,"-close"),onKeyDown:L,"aria-label":"Close"},$,{onClick:function(U){U.preventDefault(),U.stopPropagation(),N()}}),M.closeIcon),j&&p.createElement("progress",{className:"".concat(z,"-progress"),max:"100",value:F},F+"%"))}),XQ=de.createContext({}),Iye=function(t){var r=t.children,n=t.classNames;return de.createElement(XQ.Provider,{value:{classNames:n}},r)},R5=8,P5=3,I5=16,xye=function(t){var r={offset:R5,threshold:P5,gap:I5};if(t&&Pt(t)==="object"){var n,i,o;r.offset=(n=t.offset)!==null&&n!==void 0?n:R5,r.threshold=(i=t.threshold)!==null&&i!==void 0?i:P5,r.gap=(o=t.gap)!==null&&o!==void 0?o:I5}return[!!t,r]},Oye=["className","style","classNames","styles"],Tye=function(t){var r=t.configList,n=t.placement,i=t.prefixCls,o=t.className,a=t.style,s=t.motion,l=t.onAllNoticeRemoved,c=t.onNoticeClose,d=t.stack,u=p.useContext(XQ),f=u.classNames,h=p.useRef({}),v=p.useState(null),y=oe(v,2),g=y[0],m=y[1],S=p.useState([]),C=oe(S,2),b=C[0],w=C[1],E=r.map(function(k){return{config:k,key:String(k.key)}}),_=xye(d),R=oe(_,2),P=R[0],I=R[1],O=I.offset,A=I.threshold,x=I.gap,T=P&&(b.length>0||E.length<=A),D=typeof s=="function"?s(n):s;return p.useEffect(function(){P&&b.length>1&&w(function(k){return k.filter(function(j){return E.some(function(N){var L=N.key;return j===L})})})},[b,E,P]),p.useEffect(function(){var k;if(P&&h.current[(k=E[E.length-1])===null||k===void 0?void 0:k.key]){var j;m(h.current[(j=E[E.length-1])===null||j===void 0?void 0:j.key])}},[E,P]),de.createElement(m4,$e({key:n,className:ie(i,"".concat(i,"-").concat(n),f==null?void 0:f.list,o,J(J({},"".concat(i,"-stack"),!!P),"".concat(i,"-stack-expanded"),T)),style:a,keys:E,motionAppear:!0},D,{onAllRemoved:function(){l(n)}}),function(k,j){var N=k.config,L=k.className,M=k.style,$=k.index,F=N,z=F.key,H=F.times,U=String(z),V=N,W=V.className,K=V.style,Z=V.classNames,q=V.styles,Y=Nt(V,Oye),G=E.findIndex(function(se){return se.key===U}),re={};if(P){var ee=E.length-1-(G>-1?G:$-1),ne=n==="top"||n==="bottom"?"-50%":"0";if(ee>0){var te,pe,le;re.height=T?(te=h.current[U])===null||te===void 0?void 0:te.offsetHeight:g==null?void 0:g.offsetHeight;for(var ye=0,Se=0;Se<ee;Se++){var _e;ye+=((_e=h.current[E[E.length-1-Se].key])===null||_e===void 0?void 0:_e.offsetHeight)+x}var De=(T?ye:ee*O)*(n.startsWith("top")?1:-1),be=!T&&g!==null&&g!==void 0&&g.offsetWidth&&(pe=h.current[U])!==null&&pe!==void 0&&pe.offsetWidth?((g==null?void 0:g.offsetWidth)-O*2*(ee<3?ee:3))/((le=h.current[U])===null||le===void 0?void 0:le.offsetWidth):1;re.transform="translate3d(".concat(ne,", ").concat(De,"px, 0) scaleX(").concat(be,")")}else re.transform="translate3d(".concat(ne,", 0, 0)")}return de.createElement("div",{ref:j,className:ie("".concat(i,"-notice-wrapper"),L,Z==null?void 0:Z.wrapper),style:Q(Q(Q({},M),re),q==null?void 0:q.wrapper),onMouseEnter:function(){return w(function(Pe){return Pe.includes(U)?Pe:[].concat(Ge(Pe),[U])})},onMouseLeave:function(){return w(function(Pe){return Pe.filter(function(Te){return Te!==U})})}},de.createElement(YQ,$e({},Y,{ref:function(Pe){G>-1?h.current[U]=Pe:delete h.current[U]},prefixCls:i,classNames:Z,styles:q,className:ie(W,f==null?void 0:f.notice),style:K,times:H,key:z,eventKe
205y:z,onNoticeClose:c,hovering:P&&b.length>0})))})},Aye=p.forwardRef(function(e,t){var r=e.prefixCls,n=r===void 0?"rc-notification":r,i=e.container,o=e.motion,a=e.maxCount,s=e.className,l=e.style,c=e.onAllRemoved,d=e.stack,u=e.renderNotifications,f=p.useState([]),h=oe(f,2),v=h[0],y=h[1],g=function(P){var I,O=v.find(function(A){return A.key===P});O==null||(I=O.onClose)===null||I===void 0||I.call(O),y(function(A){return A.filter(function(x){return x.key!==P})})};p.useImperativeHandle(t,function(){return{open:function(P){y(function(I){var O=Ge(I),A=O.findIndex(function(D){return D.key===P.key}),x=Q({},P);if(A>=0){var T;x.times=(((T=I[A])===null||T===void 0?void 0:T.times)||0)+1,O[A]=x}else x.times=0,O.push(x);return a>0&&O.length>a&&(O=O.slice(-a)),O})},close:function(P){g(P)},destroy:function(){y([])}}});var m=p.useState({}),S=oe(m,2),C=S[0],b=S[1];p.useEffect(function(){var R={};v.forEach(function(P){var I=P.placement,O=I===void 0?"topRight":I;O&&(R[O]=R[O]||[],R[O].push(P))}),Object.keys(C).forEach(function(P){R[P]=R[P]||[]}),b(R)},[v]);var w=function(P){b(function(I){var O=Q({},I),A=O[P]||[];return A.length||delete O[P],O})},E=p.useRef(!1);if(p.useEffect(function(){Object.keys(C).length>0?E.current=!0:E.current&&(c==null||c(),E.current=!1)},[C]),!i)return null;var _=Object.keys(C);return Qo.createPortal(p.createElement(p.Fragment,null,_.map(function(R){var P=C[R],I=p.createElement(Tye,{key:R,configList:P,placement:R,prefixCls:n,className:s==null?void 0:s(R),style:l==null?void 0:l(R),motion:o,onNoticeClose:g,onAllNoticeRemoved:w,stack:d});return u?u(I,{prefixCls:n,key:R}):I})),i)}),Mye=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],$ye=function(){return document.body},x5=0;function kye(){for(var e={},t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];
205return r.forEach(function(i){i&&Object.keys(i).forEach(function(o){var a=i[o];a!==void 0&&(e[o]=a)})}),e}function Nye(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,r=t===void 0?$ye:t,n=e.motion,i=e.prefixCls,o=e.maxCount,a=e.className,s=e.style,l=e.onAllRemoved,c=e.stack,d=e.renderNotifications,u=Nt(e,Mye),f=p.useState(),h=oe(f,2),v=h[0],y=h[1],g=p.useRef(),m=p.createElement(Aye,{container:v,ref:g,prefixCls:i,motion:n,maxCount:o,className:a,style:s,onAllRemoved:l,stack:c,renderNotifications:d}),S=p.useState([]),C=oe(S,2),b=C[0],w=C[1],E=lr(function(R){var P=kye(u,R);(P.key===null||P.key===void 0)&&(P.key="rc-notification-".concat(x5),x5+=1),w(function(I){return[].concat(Ge(I),[{type:"open",config:P}])})}),_=p.useMemo(function(){return{open:E,close:function(P){w(function(I){return[].concat(Ge(I),[{type:"close",key:P}])})},destroy:function(){w(function(P){return[].concat(Ge(P),[{type:"destroy"}])})}}},[]);return p.useEffect(function(){y(r())}),p.useEffect(function(){if(g.current&&b.length){b.forEach(function(I){switch(I.type){case"open":g.current.open(I.config);break;case"close":g.current.close(I.key);break;case"destroy":g.current.destroy();break}});var R,P;w(function(I){return(R!==I||!P)&&(R=I,P=I.filter(function(O){return!b.includes(O)})),P})}},[b]),[_,m]}var Dye={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};const Lye=Dye;var jye=function(t,r){return p.createElement(Jt,$e({},t,{ref:r,icon:Lye}))},Fye=p.forwardRef(jye);const $c=Fye,zye=de.createContext(void 0),b4=zye,Jl=100,Bye=10,QQ=Jl*Bye,JQ={Modal:Jl,Drawer:Jl,Popover:Jl,Popconfirm:Jl,Tooltip:Jl,Tour:Jl,FloatButton:Jl},Hye={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function Vye(e){return e in JQ}const Od=(e,t)=>{const[,r]=ko(),n=de.useContext(b4),i=Vye(e);let o;if(t!==void 0)o=[t,t];else{let a=n??0;i?a+=(n?0:r.zIndexPopupBase)+JQ[e]:a+=Hye[e],o=[n===void 0?t:a,a]}return o},Uye=e=>{const{componentCls:t,iconCls:r,boxShadow:n,colorText:i,colorSuccess:o,colorError:a,colorWarning:s,colorInfo:l,fontSizeLG:c,motionEaseInOutCirc:d,motionDurationSlow:u,marginXS:f,paddingXS:h,borderRadiusLG:v,zIndexPopup:y,contentPadding:g,contentBg:m}=e,S=`${t}-notice`,C=new mr("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:h,transform:"translateY(0)",opacity:1}}),b=new mr("MessageMoveOut",{"0%":{maxHeight:e.height,padding:h,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),w={padding:h,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${r}`]:{marginInlineEnd:f,fontSize:c},[`${S}-content`]:{display:"inline-block",padding:g,background:m,borderRadius:v,boxShadow:n,pointerEvents:"all"},[`${t}-success > ${r}`]:{color:o},[`${t}-error > ${r}`]:{color:a},[`${t}-warning > ${r}`]:{color:s},[`${t}-info > ${r},
206      ${t}-loading > ${r}`]:{color:l}};return[{[t]:Object.assign(Object.assign({},Kr(e)),{color:i,position:"fixed",top:f,width:"100%",pointerEvents:"none",zIndex:y,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
207        ${t}-move-up-appear,
208        ${t}-move-up-enter
209      `]:{animationName:C,animationDuration:u,animationPlayState:"paused",animationTimingFunction:d},[`
210        ${t}-move-up-appear${t}-move-up-appear-active,
211        ${t}-move-up-enter${t}-move-up-enter-active
212      `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:b,animationDuration:u,animationPlayState:"paused",animationTimingFunction:d},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${S}-wrapper`]:Object.assign({},w)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},w),{padding:0,textAlign:"start"})}]},Wye=e=>({zIndexPopup:e.zIndexPopupBase+QQ+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),ZQ=Nr("Message",e=>{const t=sr(e,{height:150});return Uye(t)},Wye);var qye=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const Gye={info:p.createElement(S4,null),success:p.createElement(Gp,null),error:p.createElement(Uc,null),warning:p.createElement(t0,null),loading:p.createElement($c,null)},eJ=({prefixCls:e,type:t,icon:r,children:n})=>p.createElement("div",{className:ie(`${e}-custom-content`,`${e}-${t}`)},r||Gye[t],p.createElement("span",null,n)),Kye=e=>{const{prefixCls:t,className:r,type:n,icon:i,content:o}=e,a=qye(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=p.useContext(Vt),l=t||s("message"),c=fi(l),[d,u,f]=ZQ(l,c);return d(p.createElement(YQ,Object.assign({},a,{prefixCls:l,className:ie(r,u,`${l}-notice-pure-panel`,f,c),eventKey:"pure",duration:null,content:p.createElement(eJ,{prefixCls:l,type:n,icon:i},o)})))},Yye=Kye;function Xye(e,t){return{motionName:t??`${e}-move-up`}}function w4(e){let t;const r=new Promise(i=>{t=e(()=>{i(!0)})}),n=()=>{t==null||t()};return n.then=(i,o)=>r.then(i,o),n.promise=r,n}var Qye=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const Jye=8,Zye=3,e0e=({children:e,prefixCls:t})=>{const r=fi(t),[n,i,o]=ZQ(t,r);return n(p.createElement(Iye,{classNames:{list:ie(i,o,r)}},e))},t0e=(e,{prefixCls:t,key:r})=>p.createElement(e0e,{prefixCls:t,key:r},e),r0e=p.forwardRef((e,t)=>
212{const{top:r,prefixCls:n,getContainer:i,maxCount:o,duration:a=Zye,rtl:s,transitionName:l,onAllRemoved:c}=e,{getPrefixCls:d,getPopupContainer:u,message:f,direction:h}=p.useContext(Vt),v=n||d("message"),y=()=>({left:"50%",transform:"translateX(-50%)",top:r??Jye}),g=()=>ie({[`${v}-rtl`]:s??h==="rtl"}),m=()=>Xye(v,l),S=p.createElement("span",{className:`${v}-close-x`},p.createElement(Tl,{className:`${v}-close-icon`})),[C,b]=Nye({prefixCls:v,style:y,className:g,motion:m,closable:!1,closeIcon:S,duration:a,getContainer:()=>(i==null?void 0:i())||(u==null?void 0:u())||document.body,maxCount:o,onAllRemoved:c,renderNotifications:t0e});return p.useImperativeHandle(t,()=>Object.assign(Object.assign({},C),{prefixCls:v,message:f})),b});let O5=0;function tJ(e){const t=p.useRef(null);return c_(),[p.useMemo(()=>{const n=l=>{var c;(c=t.current)===null||c===void 0||c.close(l)},i=l=>{if(!t.current){const E=()=>{};return E.then=()=>{},E}const{open:c,prefixCls:d,message:u}=t.current,f=`${d}-notice`,{content:h,icon:v,type:y,key:g,className:m,style:S,onClose:C}=l,b=Qye(l,["content","icon","type","key","className","style","onClose"]);let w=g;return w==null&&(O5+=1,w=`antd-message-${O5}`),w4(E=>(c(Object.assign(Object.assign({},b),{key:w,content:p.createElement(eJ,{prefixCls:d,type:y,icon:v},h),placement:"top",className:ie(y&&`${f}-${y}`,m,u==null?void 0:u.className),style:Object.assign(Object.assign({},u==null?void 0:u.style),S),onClose:()=>{C==null||C(),E()}})),()=>{n(w)}))},a={open:i,destroy:l=>{var c;l!==void 0?n(l):(c=t.current)===null||c===void 0||c.destroy()}};return["info","success","warning","error","loading"].forEach(l=>{const c=(d,u,f)=>{let h;d&&typeof d=="object"&&"content"in d?h=d:h={content:d};let v,y;typeof u=="function"?y=u:(v=u,y=f);const g=Object.assign(Object.assign({onClose:y,duration:v},h),{type:l});return i(g)};a[l]=c}),a},[]),p.createElement(r0e,Object.assign({key:"message-holder"},e,{ref:t}))]}function n0e(e){return tJ(e)}function i0e(){const[e,t]=p.useState([]),r=p.useCallback(n=>(t(i=>[].concat(Ge(i),[n])),()=>{t(i=>i.filter(o=>o!==n))}),[]);return[e,r]}function rJ(e,t){this.v=e,this.k=t}function Fi(e,t,r,n){var i=Object.defineProperty;try{i({},"",{})}catch{i=0}Fi=function(a,s,l,c){function d(u,f){Fi(a,u,function(h){return this._invoke(u,f,h)})}s?i?i(a,s,{value:l,enumerable:!c,configurable:!c,writable:!c}):a[s]=l:(d("next",0),d("throw",1),d("return",2))},Fi(e,t,r,n)}function _4(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r=typeof Symbol=="function"?Symbol:{},n=r.iterator||"@@iterator",i=r.toStringTag||"@@toStringTag";function o(h,v,y,g){var m=v&&v.prototype instanceof s?v:s,S=Object.create(m.prototype);return Fi(S,"_invoke",function(C,b,w){var E,_,R,P=0,I=w||[],O=!1,A={p:0,n:0,v:e,a:x,f:x.bind(e,4),d:function(D,k){return E=D,_=0,R=e,A.n=k,a}};function x(T,D){for(_=T,R=D,t=0;!O&&P&&!k&&t<I.length;t++){var k,j=I[t],N=A.p,L=j[2];T>3?(k=L===D)&&(R=j[(_=j[4])?5:(_=3,3)],j[4]=j[5]=e):j[0]<=N&&((k=T<2&&N<j[1])?(_=0,A.v=D,A.n=j[1]):N<L&&(k=T<3||j[0]>D||D>L)&&(j[4]=T,j[5]=D,A.n=L,_=0))}if(k||T>1)return a;throw O=!0,D}return function(T,D,k){if(P>1)throw TypeError("Generator is already running");for(O&&D===1&&x(D,k),_=D,R=k;(t=_<2?e:R)||!O;){E||(_?_<3?(_>1&&(A.n=-1),x(_,R)):A.n=R:A.v=R);try{if(P=2,E){if(_||(T="next"),t=E[T]){if(!(t=t.call(E,R)))throw TypeError("iterator result is not an object");if(!t.done)return t;R=t.value,_<2&&(_=0)}else _===1&&(t=E.return)&&t.call(E),_<2&&(R=TypeError("The iterator does not provide a '"+T+"' method"),_=1);E=e}else if((t=(O=A.n<0)?R:C.call(b,A))!==a)break}catch(j){E=e,_=1,R=j}finally{P=1}}return{value:t,done:O}}}(h,y,g),!0),S}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var d=[][n]?t(t([][n]())):(Fi(t={},n,function(){return this}),t),u=c.prototype=s.prototype=Object.create(d);function f(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,c):(h.__proto__=c,Fi(h,i,"GeneratorFunction")),h.prototype=Object.create(u),h}return l.prototype=c,Fi(u,"constructor",c),Fi(c,"constructor",l),l.displayName="GeneratorFunction",Fi(c,i,"GeneratorFunction"),Fi(u),Fi(u,i,"Generator"),Fi(u,n,function(){return this}),Fi(u,"toString",function(){return"[object Generator]"}),(_4=function(){return{w:o,m:f}})()}function gb(e,t){function r(i,o,a,s){try{var l=e[i](o),c=l.value;return c instanceof rJ?t.resolve(c.v).then(function(d){r("next",d,a,s)},function(d){r("throw",d,a,s)}):t.resolve(c).then(function(d){l.value=d,a(l)},function(d){return r("throw",d,a,s)})}catch(d){s(d)}}var n;this.next||(Fi(gb.prototype),Fi(gb.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),Fi(this,"_invoke",function(i,o,a){function s(){return new t(function(l,c){r(i,a,l,c)})}return n=n?n.then(s,s):s()},!0)}function nJ(e,t,r,n,i){return new gb(_4().w(e,t,r,n),i||Promise)}function o0e(e,t,r,n,i){var o=nJ(e,t,r,n,i);return o.next().then(function(a){return a.done?a.value:o.next()})}function a0e(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function i(){for(;r.length;)if((n=r.pop())in t)return i.value=n,i.done=!1,i;return i.done=!0,i}}function T5(e){if(e!=null){var t=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);
212if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw new TypeError(Pt(e)+" is not iterable")}function Dr(){var e=_4(),t=e.m(Dr),r=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function n(a){var s=typeof a=="function"&&a.constructor;return!!s&&(s===r||(s.displayName||s.name)==="GeneratorFunction")}var i={throw:1,return:2,break:3,continue:3};function o(a){var s,l;return function(c){s||(s={stop:function(){return l(c.a,2)},catch:function(){return c.v},abrupt:function(u,f){return l(c.a,i[u],f)},delegateYield:function(u,f,h){return s.resultName=f,l(c.d,T5(u),h)},finish:function(u){return l(c.f,u)}},l=function(u,f,h){c.p=s.prev,c.n=s.next;try{return u(f,h)}finally{s.next=c.n}}),s.resultName&&(s[s.resultName]=c.v,s.resultName=void 0),s.sent=c.v,s.next=c.n;try{return a.call(this,s)}finally{c.p=s.prev,c.n=s.next}}}return(Dr=function(){return{wrap:function(l,c,d,u){return e.w(o(l),c,d,u&&u.reverse())},isGeneratorFunction:n,mark:e.m,awrap:function(l,c){return new rJ(l,c)},AsyncIterator:gb,async:function(l,c,d,u,f){return(n(c)?nJ:o0e)(o(l),c,d,u,f)},keys:a0e,values:T5}})()}function A5(e,t,r,n,i,o,a){try{var s=e[o](a),l=s.value}catch(c){return void r(c)}s.done?t(l):Promise.resolve(l).then(n,i)}function io(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function a(l){A5(o,n,i,a,s,"next",l)}function s(l){A5(o,n,i,a,s,"throw",l)}a(void 0)})}}var r0=Q({},ofe),s0e=r0.version,WP=r0.render,l0e=r0.unmountComponentAtNode,p_;try{var c0e=Number((s0e||"").split(".")[0]);c0e>=18&&(p_=r0.createRoot)}catch{}function M5(e){var t=r0.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&Pt(t)==="object"&&(t.usingClientEntryPoint=e)}var mb="__rc_react_root__";function u0e(e,t){M5(!0);var r=t[mb]||p_(t);M5(!1),r.render(e),t[mb]=r}function d0e(e,t){WP==null||WP(e,t)}function f0e(e,t){if(p_){u0e(e,t);return}d0e(e,t)}function p0e(e){return zM.apply(this,arguments)}function zM(){return zM=io(Dr().mark(function e(t){return Dr().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.resolve().then(function(){var i;(i=t[mb])===null||i===void 0||i.unmount(),delete t[mb]}));case 1:case"end":return n.stop()}},e)})),zM.apply(this,arguments)}function h0e(e){l0e(e)}function v0e(e){return BM.apply(this,arguments)}function BM(){return BM=io(Dr().mark(function e(t){return Dr().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(p_===void 0){n.next=2;break}return n.abrupt("return",p0e(t));case 2:h0e(t);case 3:case"end":return n.stop()}},e)})),BM.apply(this,arguments)}const g0e=(e,t)=>(f0e(e,t),()=>v0e(t));let $5=g0e;function E4(e){return e&&($5=e),$5}const qP=()=>({height:0,opacity:0}),k5=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},m0e=e=>({height:e?e.offsetHeight:0}),GP=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",HM=(e=ry)=>({motionName:`${e}-motion-collapse`,onAppearStart:qP,onEnterStart:qP,onAppearActive:k5,onEnterActive:k5,onLeaveStart:m0e,onLeaveActive:qP,onAppearEnd:GP,onEnterEnd:GP,onLeaveEnd:GP,motionDeadline:500}),Na=(e,t,r)=>r!==void 0?r:`${e}-${t}`;function Dn(e,t){var r=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(n){delete r[n]}),r}const n0=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),r=t.width,n=t.height;if(r||n)return!0}if(e.getBoundingClientRect){var i=e.getBoundingClientRect(),o=i.width,a=i.height;if(o||a)return!0}}return!1},y0e=e=>{const{componentCls:t,colorPrimary:r}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${r})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},S0e=Gge("Wave",y0e),iJ=`${ry}-wave-target`;function KP(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"&&e!=="canvastext"}function C0e(e){const{borderTopColor:t,borderColor:r,backgroundColor:n}=getComputedStyle(e);return KP(t)?t:KP(r)?r:KP(n)?n:null}function YP(e){return Number.isNaN(e)?0:e}const b0e=e=>{const{className:t,target:r,component:n,registerUnmount:i}=e,o=p.useRef(null),a=p.useRef(null);p.useEffect(()=>{a.current=i()},[]);const[s,l]=p.useState(null),[c,d]=p.useState([]),[u,f]=p.useState(0),[h,v]=p.useState(0),[y,g]=p.useState(0),[m,S]=p.useState(0),[C,b]=p.useState(!1),w={left:u,top:h,width:y,height:m,borderRadius:c.map(R=>`${R}px`).join(" ")};s&&(w["--wave-color"]=s);function E(){const R=getComputedStyle(r);l(C0e(r));const P=R.position==="static",{borderLeftWidth:I,borderTopWidth:O}=R;f(P?r.offsetLeft:YP(-parseFloat(I))),v(P?r.offsetTop:YP(-parseFloat(O))),g(r.offsetWidth),S(r.offsetHeight);const{borderTopLeftRadius:A,borderTopRightRadius:x,borderBottomLeftRadius:T,borderBottomRightRadius:D}=R;d([A,x,D,T].map(k=>YP(parseFloat(k))))}if(p.useEffect(()=>{if(r){const R=Gt(()=>{E(),b(!0)});let P;return typeof ResizeObserver<"u"&&(P=new ResizeObserver(E),P.observe(r)),()=>{Gt.cancel(R),P==null||P.disconnect()}}},[]),!C)return null;const _=(n==="Checkbox"||n==="Radio")&&(r==null?void 0:r.classList.contains(iJ));return p.createElement(No,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(R,P)=>{var I,O;if(P.deadline||P.propertyName==="opacity"){const A=(I=o.current)===null||I===void 0?void 0:I.parentElement;(O=a.current)===null||O===void 0||O.call(a).then(()=>{A==null||A.remove()})}return!1}},({className:R},P)=>p.createElement("div",{ref:ui(o,P),className:ie(t,R,{"wave-quick":_}),style:w}))},w0e=(e,t)=>{var r;const{component:n}=t;if(n==="Checkbox"&&!(!((r=e.querySelector("input"))===null||r===void 0)&&r.checked))return;const i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",e==null||e.insertBefore(i,e==null?void 0:e.firstChild);const o=E4();let a=null;function s(){return a}
212a=o(p.createElement(b0e,Object.assign({},t,{target:e,registerUnmount:s})),i)},_0e=w0e,E0e=(e,t,r)=>{const{wave:n}=p.useContext(Vt),[,i,o]=ko(),a=lr(c=>{const d=e.current;if(n!=null&&n.disabled||!d)return;const u=d.querySelector(`.${iJ}`)||d,{showEffect:f}=n||{};(f||_0e)(u,{className:t,token:i,component:r,event:c,hashId:o})}),s=p.useRef(null);return c=>{Gt.cancel(s.current),s.current=Gt(()=>{a(c)})}},R0e=E0e,P0e=e=>{const{children:t,disabled:r,component:n}=e,{getPrefixCls:i}=p.useContext(Vt),o=p.useRef(null),a=i("wave"),[,s]=S0e(a),l=R0e(o,ie(a,s),n);if(de.useEffect(()=>{const d=o.current;if(!d||d.nodeType!==1||r)return;const u=f=>{!n0(f.target)||!d.getAttribute||d.getAttribute("disabled")||d.disabled||d.className.includes("disabled")||d.className.includes("-leave")||l(f)};return d.addEventListener("click",u,!0),()=>{d.removeEventListener("click",u,!0)}},[r]),!de.isValidElement(t))return t??null;const c=Hc(t)?ui(Id(t),o):o;return ka(t,{ref:c})},R4=P0e,I0e=e=>{const t=de.useContext(Zy);return de.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},Xi=I0e,x0e=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},O0e=x0e,T0e=e=>{const{componentCls:t,antCls:r}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${r}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},A0e=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},oJ=Nr("Space",e=>{const t=sr(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[T0e(t),A0e(t),O0e(t)]},()=>({}),{resetStyle:!1});var aJ=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const h_=p.createContext(null),Wc=(e,t)=>{const r=p.useContext(h_),n=p.useMemo(()=>{if(!r)return"";const{compactDirection:i,isFirstItem:o,isLastItem:a}=r,s=i==="vertical"?"-vertical-":"-";return ie(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:o,[`${e}-compact${s}last-item`]:a,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,r]);return{compactSize:r==null?void 0:r.compactSize,compactDirection:r==null?void 0:r.compactDirection,compactItemClassnames:n}},M0e=e=>{const{children:t}=e;return p.createElement(h_.Provider,{value:null},t)},$0e=e=>{const{children:t}=e,r=aJ(e,["children"]);return p.createElement(h_.Provider,{value:p.useMemo(()=>r,[r])},t)},k0e=e=>{const{getPrefixCls:t,direction:r}=p.useContext(Vt),{size:n,direction:i,block:o,prefixCls:a,className:s,rootClassName:l,children:c}=e,d=aJ(e,["size","direction","block","prefixCls","className","rootClassName","children"]),u=Xi(C=>n??C),f=t("space-compact",a),[h,v]=oJ(f),y=ie(f,v,{[`${f}-rtl`]:r==="rtl",[`${f}-block`]:o,[`${f}-vertical`]:i==="vertical"},s,l),g=p.useContext(h_),m=Jo(c),S=p.useMemo(()=>m.map((C,b)=>{const w=(C==null?void 0:C.key)||`${f}-item-${b}`;return p.createElement($0e,{key:w,compactSize:u,compactDirection:i,isFirstItem:b===0&&(!g||(g==null?void 0:g.isFirstItem)),isLastItem:b===m.length-1&&(!g||(g==null?void 0:g.isLastItem))},C)}),[n,m,g]);return m.length===0?null:h(p.createElement("div",Object.assign({className:y},d),S))},N0e=k0e;var D0e=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const sJ=p.createContext(void 0),L0e=e=>{const{getPrefixCls:t,direction:r}=p.useContext(Vt),{prefixCls:n,size:i,className:o}=e,a=D0e(e,["prefixCls","size","className"]),s=t("btn-group",n),[,,l]=ko(),c=p.useMemo(()=>{switch(i){case"large":return"lg";case"small":return"sm";default:return""}},[i]),d=ie(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:r==="rtl"},o,l);return p.createElement(sJ.Provider,{value:i},p.createElement("div",Object.assign({},a,{className:d})))},j0e=L0e,N5=/^[\u4E00-\u9FA5]{2}$/,VM=N5.test.bind(N5);function lJ(e){return e==="danger"?{danger:!0}:{type:e}}function D5(e){return typeof e=="string"}function XP(e){return e==="text"||e==="link"}function F0e(e,t){if(e==null)return;const r=t?" ":"";return typeof e!="string"&&typeof e!="number"&&D5(e.type)&&VM(e.props.children)?ka(e,{children:e.props.children.split("").join(r)}):D5(e)?VM(e)?de.createElement("span",null,e.split("").join(r)):de.createElement("span",null,e):qQ(e)?de.createElement("span",null,e):e}function z0e(e,t){let r=!1;const n=[];
212return de.Children.forEach(e,i=>{const o=typeof i,a=o==="string"||o==="number";if(r&&a){const s=n.length-1,l=n[s];n[s]=`${l}${i}`}else n.push(i);r=a}),de.Children.map(n,i=>F0e(i,t))}["default","primary","danger"].concat(Ge(Ac));const B0e=p.forwardRef((e,t)=>{const{className:r,style:n,children:i,prefixCls:o}=e,a=ie(`${o}-icon`,r);return de.createElement("span",{ref:t,className:a,style:n},i)}),UM=B0e,L5=p.forwardRef((e,t)=>{const{prefixCls:r,className:n,style:i,iconClassName:o}=e,a=ie(`${r}-loading-icon`,n);return de.createElement(UM,{prefixCls:r,className:a,style:i,ref:t},de.createElement($c,{className:o}))}),QP=()=>({width:0,opacity:0,transform:"scale(0)"}),JP=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),H0e=e=>{const{prefixCls:t,loading:r,existIcon:n,className:i,style:o,mount:a}=e,s=!!r;return n?de.createElement(L5,{prefixCls:t,className:i,style:o}):de.createElement(No,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!a,motionEnter:!a,motionLeave:!a,removeOnLeave:!0,onAppearStart:QP,onAppearActive:JP,onEnterStart:QP,onEnterActive:JP,onLeaveStart:JP,onLeaveActive:QP},({className:l,style:c},d)=>{const u=Object.assign(Object.assign({},o),c);return de.createElement(L5,{prefixCls:t,className:ie(i,l),style:u,ref:d})})},V0e=H0e,j5=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),U0e=e=>{const{componentCls:t,fontSize:r,lineWidth:n,groupBorderColor:i,colorErrorHover:o}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(n).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:r}},j5(`${t}-primary`,i),j5(`${t}-danger`,o)]}},W0e=U0e;var q0e=["b"],G0e=["v"],ZP=function(t){return Math.round(Number(t||0))},K0e=function(t){if(t instanceof ar)return t;if(t&&Pt(t)==="object"&&"h"in t&&"b"in t){var r=t,n=r.b,i=Nt(r,q0e);return Q(Q({},i),{},{v:n})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},iy=function(e){di(r,e);var t=us(r);function r(n){return zr(this,r),t.call(this,K0e(n))}return Br(r,[{key:"toHsbString",value:function(){var i=this.toHsb(),o=ZP(i.s*100),a=ZP(i.b*100),s=ZP(i.h),l=i.a,c="hsb(".concat(s,", ").concat(o,"%, ").concat(a,"%)"),d="hsba(".concat(s,", ").concat(o,"%, ").concat(a,"%, ").concat(l.toFixed(l===0?0:2),")");return l===1?c:d}},{key:"toHsb",value:function(){var i=this.toHsv(),o=i.v,a=Nt(i,G0e);return Q(Q({},a),{},{b:o,a:this.a})}}]),r}(ar),Y0e=function(t){return t instanceof iy?t:new iy(t)};Y0e("#1677ff");const X0e=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",Q0e=(e,t)=>e?X0e(e,t):"";let WM=function(){function e(t){zr(this,e);var r;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(r=t.colors)===null||r===void 0?void 0:r.map(i=>({color:new e(i.color),percent:i.percent})),this.cleared=t.cleared;return}const n=Array.isArray(t);n&&t.length?(this.colors=t.map(({color:i,percent:o})=>({color:new e(i),percent:o})),this.metaColor=new iy(this.colors[0].color.metaColor)):this.metaColor=new iy(n?"":t),(!t||n&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return Br(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return Q0e(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:r}=this;return r?`linear-gradient(90deg, ${r.map(i=>`${i.color.toRgbString()} ${i.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(r){return!r||this.isGradient()!==r.isGradient()?!1:this.isGradient()?this.colors.length===r.colors.length&&this.colors.every((n,i)=>{const o=r.colors[i];return n.percent===o.percent&&n.color.equals(o.color)}):this.toHexString()===r.toHexString()}}])}();var J0e={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.9
2126 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};const Z0e=J0e;var eSe=function(t,r){return p.createElement(Jt,$e({},t,{ref:r,icon:Z0e}))},tSe=p.forwardRef(eSe);const oy=tSe,rSe=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
213        opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
214        opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),cJ=rSe,nSe=e=>({animationDuration:e,animationFillMode:"both"}),iSe=e=>({animationDuration:e,animationFillMode:"both"}),v_=(e,t,r,n,i=!1)=>{const o=i?"&":"";return{[`
215      ${o}${e}-enter,
216      ${o}${e}-appear
217    `]:Object.assign(Object.assign({},nSe(n)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},iSe(n)),{animationPlayState:"paused"}),[`
218      ${o}${e}-enter${e}-enter-active,
219      ${o}${e}-appear${e}-appear-active
220    `]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:r,animationPlayState:"running",pointerEvents:"none"}}},oSe=new mr("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),aSe=new mr("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),P4=(e,t=!1)=>{const{antCls:r}=e,n=`${r}-fade`,i=t?"&":"";return[v_(n,oSe,aSe,e.motionDurationMid,t),{[`
221        ${i}${n}-enter,
222        ${i}${n}-appear
223      `]:{opacity:0,animationTimingFunction:"linear"},[`${i}${n}-leave`]:{animationTimingFunction:"linear"}}]},sSe=new mr("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),lSe=new mr("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),cSe=new mr("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),uSe=new mr("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),dSe=new mr("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),fSe=new mr("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),pSe=new mr("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),hSe=new mr("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),vSe={"move-up":{inKeyframes:pSe,outKeyframes:hSe},"move-down":{inKeyframes:sSe,outKeyframes:lSe},"move-left":{inKeyframes:cSe,outKeyframes:uSe},"move-right":{inKeyframes:dSe,outKeyframes:fSe}},yb=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:i,outKeyframes:o}=vSe[t];return[v_(n,i,o,e.motionDurationMid),{[`
224        ${n}-enter,
225        ${n}-appear
226      `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]}
226,I4=new mr("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),x4=new mr("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),O4=new mr("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),T4=new mr("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),gSe=new mr("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),mSe=new mr("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),ySe=new mr("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}
vendor: 1,063 bytes, lines 226-229
226,"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),SSe=new mr("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),CSe={"slide-up":{inKeyframes:I4,outKeyframes:x4},"slide-down":{inKeyframes:O4,outKeyframes:T4},"slide-left":{inKeyframes:gSe,outKeyframes:mSe},"slide-right":{inKeyframes:ySe,outKeyframes:SSe}},Cp=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:i,outKeyframes:o}=CSe[t];return[v_(n,i,o,e.motionDurationMid),{[`
227      ${n}-enter,
228      ${n}-appear
229    `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},A4=new mr("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),bSe=new mr("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),F5=new mr("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0}
229,"100%":{transform:"scale(1)",opacity:1}}),z5=new mr("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),wSe=new mr("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),_Se=new mr("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),ESe=new mr("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),RSe=new mr("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),PSe=new mr("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),ISe=new mr("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}
229}),xSe=new mr("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),OSe=new mr("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),TSe={zoom:{inKeyframes:A4,outKeyframes:bSe},"zoom-big":{inKeyframes:F5,outKeyframes:z5},"zoom-big-fast":{inKeyframes:F5,outKeyframes:z5},"zoom-left":{inKeyframes:ESe,outKeyframes:RSe},"zoom-right":{inKeyframes:PSe,outKeyframes:ISe},"zoom-up":{inKeyframes:wSe,outKeyframes:_Se},"zoom-down":{inKeyframes:xSe,outKeyframes:OSe}},g_=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:i,outKeyframes:o}=TSe[t];return[v_(n,i,o,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
230        ${n}-enter,
231        ${n}-appear
232      `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},ASe=e=>e instanceof WM?e:new WM(e),MSe=(e,t)=>{const{r,g:n,b:i,a:o}=e.toRgb(),a=new iy(e.toRgbString()).onBackground(t).toHsv();return o<=.5?a.v>.5:r*.299+n*.587+i*.114>192},uJ=e=>{const{paddingInline:t,onlyIconSize:r}=e;return sr(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:r})},dJ=e=>{var t,r,n,i,o,a;const s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,l=(r=e.contentFontSizeSM)!==null&&r!==void 0?r:e.fontSize,c=(n=e.contentFontSizeLG)!==null&&n!==void 0?n:e.fontSizeLG,d=(i=e.contentLineHeight)!==null&&i!==void 0?i:dC(s),u=(o=e.contentLineHeightSM)!==null&&o!==void 0?o:dC(l),f=(a=e.contentLineHeightLG)!==null&&a!==void 0?a:dC(c),h=MSe(new WM(e.colorBgSolid),"#fff")?"#000":"#fff",v=Ac.reduce((y,g)=>Object.assign(Object.assign({},y),{[`${g}ShadowColor`]:`0 ${fe(e.controlOutlineWidth)} 0 ${qg(e[`${g}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},v),{fontWeight:400,iconGap:e.marginXS,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:h,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:c,contentLineHeight:d,contentLineHeightSM:u,contentLineHeightLG:f,paddingBlock:Math.max((e.controlHeight-s*d)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*u)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*f)/2-e.lineWidth,0)})},$Se=e=>{const{componentCls:t,iconCls:r,fontWeight:n,opacityLoading:i,motionDurationSlow:o,motionEaseInOut:a,iconGap:s,calc:l}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:s,alignItems:"center",justifyContent:"center",fontWeight:n,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${fe(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:e0(),"> a":{color:"currentColor"},"&:not(:disabled)":Mc(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${r})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"},[`&${t}-round`]:{width:"auto"}},[`&${t}-loading`]:{opacity:i,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(c=>`${c} ${o} ${a}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:l(s).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:l(s).mul(-1).equal()}}}}}},fJ=(e,t,r)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":r}}),kSe=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),NSe=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),DSe=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBg
232ContainerDisabled,boxShadow:"none"}),m_=(e,t,r,n,i,o,a,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:r||void 0,background:t,borderColor:n||void 0,boxShadow:"none"},fJ(e,Object.assign({background:t},a),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:i||void 0,borderColor:o||void 0}})}),LSe=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},DSe(e))}),jSe=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),y_=(e,t,r,n)=>{const o=n&&["link","text"].includes(n)?jSe:LSe;return Object.assign(Object.assign({},o(e)),fJ(e.componentCls,t,r))},S_=(e,t,r,n,i)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:r},y_(e,n,i))}),C_=(e,t,r,n,i)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:r},y_(e,n,i))}),b_=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),w_=(e,t,r,n)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},y_(e,r,n))}),Bs=(e,t,r,n,i)=>({[`&${e.componentCls}-variant-${r}`]:Object.assign({color:t,boxShadow:"none"},y_(e,n,i,r))}),FSe=e=>{const{componentCls:t}=e;return Ac.reduce((r,n)=>{const i=e[`${n}6`],o=e[`${n}1`],a=e[`${n}5`],s=e[`${n}2`],l=e[`${n}3`],c=e[`${n}7`];return Object.assign(Object.assign({},r),{[`&${t}-color-${n}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:i,boxShadow:e[`${n}ShadowColor`]},S_(e,e.colorTextLightSolid,i,{background:a},{background:c})),C_(e,i,e.colorBgContainer,{color:a,borderColor:a,background:e.colorBgContainer},{color:c,borderColor:c,background:e.colorBgContainer})),b_(e)),w_(e,o,{color:i,background:s},{color:i,background:l})),Bs(e,i,"link",{color:a},{color:c})),Bs(e,i,"text",{color:a,background:o},{color:c,background:l}))})},{})},zSe=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},S_(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),b_(e)),w_(e,e.colorFillTertiary,{color:e.defaultColor,background:e.colorFillSecondary},{color:e.defaultColor,background:e.colorFill})),m_(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),Bs(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),BSe=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},C_(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),b_(e)),w_(e,e.colorPrimaryBg,{color:e.colorPrimary,background:e.colorPrimaryBgHover},{color:e.colorPrimary,background:e.colorPrimaryBorder})),Bs(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),Bs(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),m_(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),HSe=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},S_(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),C_(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),b_(e)),w_(e,e.colorErrorBg,{color:e.colorError,background:e.colorErrorBgFilledHover},{color:e.colorError,background:e.colorErrorBgActive})),Bs(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),Bs(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),m_(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),VSe=e=>Object.assign(Object.assign({},Bs(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),m_(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),USe=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:zSe(e),[`${t}-color-primary`]:BSe(e),[`${t}-color-dangerous`]:HSe(e),[`${t}-color-link`]:VSe(e)},FSe(e))},WSe=e=>Object.assign(Object.assign(Object.assign(Object.assign({},C_(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Bs(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),S_(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),Bs(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),M4=(e,t="")=>{const{componentCls:r,controlHeight:n,fontSize:i,borderRadius:o,buttonPaddingHorizontal:a,iconCls:s,buttonPaddingVertical:l,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:i,height:n,padding:`${fe(l)} ${fe(a)}`,borderRadius:o,[`&${r}-icon-only`]:{width:n,[s]:{fontSize:c}}}},{[`${r}${r}-circle${t}`]:kSe(e)},{[`${r}${r}-round${t}`]:NSe(e)}]},qSe=e=>{const t=sr(e,{fontSize:e.contentFontSize});return M4(t,e.componentCls)},GSe=e=>{const t=sr(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return M4(t,`${e.componentCls}-sm`)},KSe=e=>{const t=sr(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return M4(t,`${e.componentCls}-lg`)},YSe=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},XSe=Nr("Button",e=>{const t=uJ(e);return[$Se(t),qSe(t),GSe(t),KSe(t),YSe(t),USe(t),WSe(t),W0e(t)]},dJ,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function QSe(e,t,r,n){const{focusElCls:i,focus:o,borderElCls:a}=r,s=a?">
232 *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map(c=>`&:${c} ${s}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${n}-status-success)`]:{zIndex:2},"&-item":Object.assign(Object.assign({[l]:{zIndex:3}},i?{[`&${i}`]:{zIndex:3}}:{}),{[`&[disabled] ${s}`]:{zIndex:0}})}}function JSe(e,t,r){const{borderElCls:n}=r,i=n?`> ${n}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function i0(e,t={focus:!0}){const{componentCls:r}=e,n=`${r}-compact`;return{[n]:Object.assign(Object.assign({},QSe(e,n,t,r)),JSe(r,n,t))}}function ZSe(e,t,r){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":{"&:hover,&:focus,&:active":{zIndex:3},"&[disabled]":{zIndex:0}}}}function e1e(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function t1e(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},ZSe(e,t,e.componentCls)),e1e(e.componentCls,t))}}const r1e=e=>{const{componentCls:t,colorPrimaryHover:r,lineWidth:n,calc:i}=e,o=i(n).mul(-1).equal(),a=s=>{const l=`${t}-compact${s?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${l} + ${l}::before`]:{position:"absolute",top:s?o:0,insetInlineStart:s?0:o,backgroundColor:r,content:'""',width:s?"100%":n,height:s?n:"100%"}}};return Object.assign(Object.assign({},a()),a(!0))},n1e=Wp(["Button","compact"],e=>{const t=uJ(e);return[i0(t),t1e(t),r1e(t)]},dJ);var i1e=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function o1e(e){if(typeof e=="object"&&e){let t=e==null?void 0:e.delay;return t=!Number.isNaN(t)&&typeof t=="number"?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}const a1e={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},s1e=de.forwardRef((e,t)=>{var r,n;const{loading:i=!1,prefixCls:o,color:a,variant:s,type:l,danger:c=!1,shape:d,size:u,styles:f,disabled:h,className:v,rootClassName:y,children:g,icon:m,iconPosition:S="start",ghost:C=!1,block:b=!1,htmlType:w="button",classNames:E,style:_={},autoInsertSpace:R,autoFocus:P}=e,I=i1e(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),O=l||"default",{button:A}=de.useContext(Vt),x=d||(A==null?void 0:A.shape)||"default",[T,D]=p.useMemo(()=>{if(a&&s)return[a,s];if(l||c){const ce=a1e[O]||[];return c?["danger",ce[1]]:ce}return A!=null&&A.color&&(A!=null&&A.variant)?[A.color,A.variant]:["default","outlined"]},[l,a,s,c,A==null?void 0:A.variant,A==null?void 0:A.color]),j=T==="danger"?"dangerous":T,{getPrefixCls:N,direction:L,autoInsertSpace:M,className:$,style:F,classNames:z,styles:H}=Jn("button"),U=(r=R??M)!==null&&r!==void 0?r:!0,V=N("btn",o),[W,K,Z]=XSe(V),q=p.useContext(ra),Y=h??q,G=p.useContext(sJ),re=p.useMemo(()=>o1e(i),[i]),[ee,ne]=p.useState(re.loading),[te,pe]=p.useState(!1),le=p.useRef(null),ye=Bc(t,le),Se=p.Children.count(g)===1&&!m&&!XP(D),_e=p.useRef(!0);de.useEffect(()=>(_e.current=!1,()=>{_e.current=!0}),[]),nr(()=>{let ce=null;re.delay>0?ce=setTimeout(()=>{ce=null,ne(!0)},re.delay):ne(re.loading);function Ae(){ce&&(clearTimeout(ce),ce=null)}return Ae},[re.delay,re.loading]),p.useEffect(()=>{if(!le.current||!U)return;const ce=le.current.textContent||"";Se&&VM(ce)?te||pe(!0):te&&pe(!1)}),p.useEffect(()=>{P&&le.current&&le.current.focus()},[]);const De=de.useCallback(ce=>{var Ae;if(ee||Y){ce.preventDefault();return}(Ae=e.onClick)===null||Ae===void 0||Ae.call(e,("href"in e,ce))},[e.onClick,ee,Y]),{compactSize:be,compactItemClassnames:se}=Wc(V,L),Pe={large:"lg",small:"sm",middle:void 0},Te=Xi(ce=>{var Ae,We;return(We=(Ae=u??be)!==null&&Ae!==void 0?Ae:G)!==null&&We!==void 0?We:ce}),ze=Te&&(n=Pe[Te])!==null&&n!==void 0?n:"",ke=ee?"loading":m,Me
232=Dn(I,["navigate"]),qe=ie(V,K,Z,{[`${V}-${x}`]:x!=="default"&&x,[`${V}-${O}`]:O,[`${V}-dangerous`]:c,[`${V}-color-${j}`]:j,[`${V}-variant-${D}`]:D,[`${V}-${ze}`]:ze,[`${V}-icon-only`]:!g&&g!==0&&!!ke,[`${V}-background-ghost`]:C&&!XP(D),[`${V}-loading`]:ee,[`${V}-two-chinese-chars`]:te&&U&&!ee,[`${V}-block`]:b,[`${V}-rtl`]:L==="rtl",[`${V}-icon-end`]:S==="end"},se,v,y,$),Le=Object.assign(Object.assign({},F),_),xe=ie(E==null?void 0:E.icon,z.icon),je=Object.assign(Object.assign({},(f==null?void 0:f.icon)||{}),H.icon||{}),Ee=m&&!ee?de.createElement(UM,{prefixCls:V,className:xe,style:je},m):i&&typeof i=="object"&&i.icon?de.createElement(UM,{prefixCls:V,className:xe,style:je},i.icon):de.createElement(V0e,{existIcon:!!m,prefixCls:V,loading:ee,mount:_e.current}),Re=g||g===0?z0e(g,Se&&U):null;if(Me.href!==void 0)return W(de.createElement("a",Object.assign({},Me,{className:ie(qe,{[`${V}-disabled`]:Y}),href:Y?void 0:Me.href,style:Le,onClick:De,ref:ye,tabIndex:Y?-1:0}),Ee,Re));let me=de.createElement("button",Object.assign({},I,{type:w,className:qe,style:Le,onClick:De,disabled:Y,ref:ye}),Ee,Re,se&&de.createElement(n1e,{prefixCls:V}));return XP(D)||(me=de.createElement(R4,{component:"Button",disabled:ee},me)),W(me)}),$4=s1e;$4.Group=j0e;$4.__ANT_BUTTON=!0;const hn=$4;function eI(e){return!!(e!=null&&e.then)}const l1e=e=>{const{type:t,children:r,prefixCls:n,buttonProps:i,close:o,autoFocus:a,emitEvent:s,isSilent:l,quitOnNullishReturnValue:c,actionFn:d}=e,u=p.useRef(!1),f=p.useRef(null),[h,v]=cd(!1),y=(...S)=>{o==null||o.apply(void 0,S)};p.useEffect(()=>{let S=null;return a&&(S=setTimeout(()=>{var C;(C=f.current)===null||C===void 0||C.focus({preventScroll:!0})}
232)),()=>{S&&clearTimeout(S)}},[]);const g=S=>{eI(S)&&(v(!0),S.then((...C)=>{v(!1,!0),y.apply(void 0,C),u.current=!1},C=>{if(v(!1,!0),u.current=!1,!(l!=null&&l()))return Promise.reject(C)}))},m=S=>{if(u.current)return;if(u.current=!0,!d){y();return}let C;if(s){if(C=d(S),c&&!eI(C)){u.current=!1,y(S);return}}else if(d.length)C=d(o),u.current=!1;else if(C=d(),!eI(C)){y();return}g(C)};return p.createElement(hn,Object.assign({},lJ(t),{onClick:m,loading:h,prefixCls:n},i,{ref:f}),r)},pJ=l1e,o0=de.createContext({}),{Provider:hJ}=o0,c1e=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:r,isSilent:n,mergedOkCancel:i,rootPrefixCls:o,close:a,onCancel:s,onConfirm:l}=p.useContext(o0);return i?de.createElement(pJ,{isSilent:n,actionFn:s,close:(...c)=>{a==null||a.apply(void 0,c),l==null||l(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${o}-btn`},r):null},B5=c1e,u1e=()=>{const{autoFocusButton:e,close:t,isSilent:r,okButtonProps:n,rootPrefixCls:i,okTextLocale:o,okType:a,onConfirm:s,onOk:l}=p.useContext(o0);return de.createElement(pJ,{isSilent:r,type:a||"primary",actionFn:l,close:(...c)=>{t==null||t.apply(void 0,c),s==null||s(!0)},autoFocus:e==="ok",buttonProps:n,prefixCls:`${i}-btn`},o)},H5=u1e;var vJ=p.createContext(null),V5=[];function d1e(e,t){var r=p.useState(function(){if(!Pi())return null;var v=document.createElement("div");return v}),n=oe(r,1),i=n[0],o=p.useRef(!1),a=p.useContext(vJ),s=p.useState(V5),l=oe(s,2),c=l[0],d=l[1],u=a||(o.current?void 0:function(v){d(function(y){var g=[v].concat(Ge(y));return g})});function f(){i.parentElement||document.body.appendChild(i),o.current=!0}function h(){var v;(v=i.parentElement)===null||v===void 0||v.removeChild(i),o.current=!1}return nr(function(){return e?a?a(f):f():h(),h},[e]),nr(function(){c.length&&(c.forEach(function(v){return v()}),d(V5))},[c]),[i,u]}function f1e(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),r=document.createElement("div");r.id=t;var n=r.style;n.position="absolute",n.left="0",n.top="0",n.width="100px",n.height="100px",n.overflow="scroll";var i,o;if(e){var a=getComputedStyle(e);n.scrollbarColor=a.scrollbarColor,n.scrollbarWidth=a.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),c=parseInt(s.height,10);try{var d=l?"width: ".concat(s.width,";"):"",u=c?"height: ".concat(s.height,";"):"";dl(`
233#`.concat(t,`::-webkit-scrollbar {
234`).concat(d,`
235`).concat(u,`
236}`),t)}catch{i=l,o=c}}document.body.appendChild(r);var f=e&&i&&!isNaN(i)?i:r.offsetWidth-r.clientWidth,h=e&&o&&!isNaN(o)?o:r.offsetHeight-r.clientHeight;return document.body.removeChild(r),Jm(t),{width:f,height:h}}function p1e(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:f1e(e)}function h1e(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var v1e="rc-util-locker-".concat(Date.now()),U5=0;function g1e(e){var t=!!e,r=p.useState(function(){return U5+=1,"".concat(v1e,"_").concat(U5)}),n=oe(r,1),i=n[0];nr(function(){if(t){var o=p1e(document.body).width,a=h1e();dl(`
237html body {
238  overflow-y: hidden;
239  `.concat(a?"width: calc(100% - ".concat(o,"px);"):"",`
240}`),i)}else Jm(i);return function(){Jm(i)}},[t,i])}var W5=!1;function m1e(e){return typeof e=="boolean"&&(W5=e),W5}var q5=function(t){return t===!1?!1:!Pi()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},__=p.forwardRef(function(e,t){var r=e.open,n=e.autoLock,i=e.getContainer;e.debug;var o=e.autoDestroy,a=o===void 0?!0:o,s=e.children,l=p.useState(r),c=oe(l,2),d=c[0],u=c[1],f=d||r;p.useEffect(function(){(a||r)&&u(r)},[r,a]);var h=p.useState(function(){return q5(i)}),v=oe(h,2),y=v[0],g=v[1];p.useEffect(function(){var O=q5(i);g(O??null)});var m=d1e(f&&!y),S=oe(m,2),C=S[0],b=S[1],w=y??C;g1e(n&&r&&Pi()&&(w===C||w===document.body));var E=null;if(s&&Hc(s)&&t){var _=s;E=_.ref}var R=Bc(E,t);if(!f||!Pi()||y===void 0)return null;var P=w===!1||m1e(),I=s;return t&&(I=p.cloneElement(s,{ref:R})),p.createElement(vJ.Provider,{value:b},P?I:Qo.createPortal(I,w))}),gJ=p.createContext({});function y1e(){var e=Q({},Uy);return e.useId}var G5=0,K5=y1e();const k4=K5?function(t){var r=K5();return t||r}:function(t){var r=p.useState("ssr-id"),n=oe(r,2),i=n[0],o=n[1];return p.useEffect(function(){var a=G5;G5+=1,o("rc_unique_".concat(a))},[]),t||i};function Y5(e,t,r){var n=t;return!n&&r&&(n="".concat(e,"-").concat(r)),n}function X5(e,t){var r=e["page".concat(t?"Y":"X","Offset")],n="scroll".concat(t?"Top":"Left");if(typeof r!="number"){var i=e.document;r=i.documentElement[n],typeof r!="number"&&(r=i.body[n])}return r}function S1e(e){var t=e.getBoundingClientRect(),r={left:t.left,top:t.top},n=e.ownerDocument,i=n.defaultView||n.parentWindow;return r.left+=X5(i),r.top+=X5(i,!0),r}const C1e=p.memo(function(e){var t=e.children;return t},function(e,t){var r=t.shouldUpdate;return!r});var b1e={width:0,height:0,overflow:"hidden",outline:"none"},w1e={outline:"none"},mJ=de.forwardRef(function(e,t){var r=e.prefixCls,n=e.className,i=e.style,o=e.title,a=e.ariaId,s=e.footer,l=e.closable,c=e.closeIcon,d=e.onClose,u=e.children,f=e.bodyStyle,h=e.bodyProps,v=e.modalRender,y=e.onMouseDown,g=e.onMouseUp,m=e.holderRef,S=e.visible,C=e.forceRender,b=e.width,w=e.height,E=e.classNames,_=e.styles,R=de.useContext(gJ),P=R.panel,I=Bc(m,P),O=p.useRef(),A=p.useRef();de.useImperativeHandle(t,function(){return{focus:function(){var F;(F=O.current)===null||F===void 0||F.focus({preventScroll:!0})},changeActive:function(F){var z=document,H=z.activeElement;F&&H===A.current?O.current.focus({preventScroll:!0}):!F&&H===O.current&&A.current.focus({preventScroll:!0})}}});var x={};b!==void 0&&(x.width=b),w!==void 0&&(x.height=w);var T=s?de.createElement("div",{className:ie("".concat(r,"-footer"),E==null?void 0:E.footer),style:Q({},_==null?void 0:_.footer)},s):null,D=o?de.createElement("div",{className:ie("".concat(r,"-header"),E==null?void 0:E.header),style:Q({},_==null?void 0:_.header)},de.createElement("div",{className:"".concat(r,"-title"),id:a},o)):null,k=p.useMemo(function(){return Pt(l)==="object"&&l!==null?l:l?{closeIcon:c??de.createElement("span",{className:"".concat(r,"-close-x")})}:{}},[l,c,r]),j=lo(k,!0),N=Pt(l)==="object"&&l.disabled,L=l?de.createElement("button",$e({type:"button",onClick:d,"aria-label":"Close"},j,{className:"".concat(r,"-close"),disabled:N}),k.closeIcon):null,M=de.createElement("div",{className:ie("".concat(r,"-content"),E==null?void 0:E.
240content),style:_==null?void 0:_.content},L,D,de.createElement("div",$e({className:ie("".concat(r,"-body"),E==null?void 0:E.body),style:Q(Q({},f),_==null?void 0:_.body)},h),u),T);return de.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":o?a:null,"aria-modal":"true",ref:I,style:Q(Q({},i),x),className:ie(r,n),onMouseDown:y,onMouseUp:g},de.createElement("div",{ref:O,tabIndex:0,style:w1e},de.createElement(C1e,{shouldUpdate:S||C},v?v(M):M)),de.createElement("div",{tabIndex:0,ref:A,style:b1e}))}),yJ=p.forwardRef(function(e,t){var r=e.prefixCls,n=e.title,i=e.style,o=e.className,a=e.visible,s=e.forceRender,l=e.destroyOnClose,c=e.motionName,d=e.ariaId,u=e.onVisibleChanged,f=e.mousePosition,h=p.useRef(),v=p.useState(),y=oe(v,2),g=y[0],m=y[1],S={};g&&(S.transformOrigin=g);function C(){var b=S1e(h.current);m(f&&(f.x||f.y)?"".concat(f.x-b.left,"px ").concat(f.y-b.top,"px"):"")}return p.createElement(No,{visible:a,onVisibleChanged:u,onAppearPrepare:C,onEnterPrepare:C,forceRender:s,motionName:c,removeOnLeave:l,ref:h},function(b,w){var E=b.className,_=b.style;return p.createElement(mJ,$e({},e,{ref:t,title:n,ariaId:d,prefixCls:r,holderRef:w,style:Q(Q(Q({},_),i),S),className:ie(o,E)}))})});yJ.displayName="Content";var _1e=function(t){var r=t.prefixCls,n=t.style,i=t.visible,o=t.maskProps,a=t.motionName,s=t.className;return p.createElement(No,{key:"mask",visible:i,motionName:a,leavedClassName:"".concat(r,"-mask-hidden")},function(l,c){var d=l.className,u=l.style;return p.createElement("div",$e({ref:c,style:Q(Q({},u),n),className:ie("".concat(r,"-mask"),d,s)},o))})},E1e=function(t){var r=t.prefixCls,n=r===void 0?"rc-dialog":r,i=t.zIndex,o=t.visible,a=o===void 0?!1:o,s=t.keyboard,l=s===void 0?!0:s,c=t.focusTriggerAfterClose,d=c===void 0?!0:c,u=t.wrapStyle,f=t.wrapClassName,h=t.wrapProps,v=t.onClose,y=t.afterOpenChange,g=t.afterClose,m=t.transitionName,S=t.animation,C=t.closable,b=C===void 0?!0:C,w=t.mask,E=w===void 0?!0:w,_=t.maskTransitionName,R=t.maskAnimation,P=t.maskClosable,I=P===void 0?!0:P,O=t.maskStyle,A=t.maskProps,x=t.rootClassName,T=t.classNames,D=t.styles,k=p.useRef(),j=p.useRef(),N=p.useRef(),L=p.useState(a),M=oe(L,2),$=M[0],F=M[1],z=k4();function H(){fM(j.current,document.activeElement)||(k.current=document.activeElement)}function U(){if(!fM(j.current,document.activeElement)){var ne;(ne=N.current)===null||ne===void 0||ne.focus()}}function V(ne){if(ne)U();else{if(F(!1),E&&k.current&&d){try{k.current.focus({preventScroll:!0})}catch{}k.current=null}$&&(g==null||g())}y==null||y(ne)}function W(ne){v==null||v(ne)}var K=p.useRef(!1),Z=p.useRef(),q=function(){clearTimeout(Z.current),K.current=!0},Y=function(){Z.current=setTimeout(function(){K.current=!1})},G=null;I&&(G=function(te){K.current?K.current=!1:j.current===te.target&&W(te)});function re(ne){if(l&&ne.keyCode===Ue.ESC){ne.stopPropagation(),W(ne);return}a&&ne.keyCode===Ue.TAB&&N.current.changeActive(!ne.shiftKey)}p.useEffect(function(){a&&(F(!0),H())},[a]),p.useEffect(function(){return function(){clearTimeout(Z.current)}},[]);var ee=Q(Q(Q({zIndex:i},u),D==null?void 0:D.wrapper),{},{display:$?null:"none"});return p.createElement("div",$e({className:ie("".concat(n,"-root"),x)},lo(t,{data:!0})),p.createElement(_1e,{prefixCls:n,visible:E&&a,motionName:Y5(n,_,R),style:Q(Q({zIndex:i},O),D==null?void 0:D.mask),maskProps:A,className:T==null?void 0:T.mask}),p.createElement("div",$e({tabIndex:-1,onKeyDown:re,className:ie("".concat(n,"-wrap"),f,T==null?void 0:T.wrapper),ref:j,onClick:G,style:ee},h),p.createElement(yJ,$e({},t,{onMouseDown:q,onMouseUp:Y,ref:N,closable:b,ariaId:z,prefixCls:n,visible:a&&$,onClose:W,onVisibleChanged:V,motionName:Y5(n,m,S)}))))},N4=function(t){var r=t.visible,n=t.getContainer,i=t.forceRender,o=t.destroyOnClose,a=o===void 0?!1:o,s=t.afterClose,l=t.panelRef,c=p.useState(r),d=oe(c,2),u=d[0],f=d[1],h=p.useMemo(function(){return{panel:l}},[l]);return p.useEffect(function(){r&&f(!0)},[r]),!i&&a&&!u?null:p.createElement(gJ.Provider,{value:h},p.createElement(__,{open:r||i||u,autoDestroy:!1,getContainer:n,autoLock:r||u},p.createElement(E1e,$e({},t,{destroyOnClose:a,afterClose:function(){s==null||s(),f(!1)}}))))};N4.displayName="Dialog";var Uu="RC_FORM_INTERNAL_HOOKS",en=function(){Nn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},ud=p.createContext({getFieldValue:en,getFieldsValue:en,getFieldError:en,getFieldWarning:en,getFieldsError:en,isFieldsTouched:en,isFieldTouched:en,isFieldValidating:en,isFieldsValidating:en,resetFields:en,setFields:en,setFieldValue:en,setFieldsValue:en,validateFields:en,submit:en,getInternalHooks:function(){return en(),{dispatch:en,initEntityValue:en,registerField:en,useSubscribe:en,setInitialValues:en,destroyForm:en,setCallbacks:en,registerWatch:en,getFields:en,setValidateMessages:en,setPreserve:en,getInitialValue:en}}}),ay=p.createContext(null);function qM(e){return e==null?[]:Array.isArray(e)?e:[e]}function R1e(e){return e&&!!e._init}function GM(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invali
240d for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var KM=GM();function P1e(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function I1e(e,t,r){if(Ol())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var i=new(e.bind.apply(e,n));return r&&Xm(i,r.prototype),i}function YM(e){var t=typeof Map=="function"?new Map:void 0;return YM=function(n){if(n===null||!P1e(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,i)}function i(){return I1e(n,arguments,Ri(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Xm(i,n)},YM(e)}var x1e=/%[sdj%]/g,O1e=function(){};typeof process<"u"&&process.env;function XM(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var n=r.field;t[n]=t[n]||[],t[n].push(r)}),t}function Ko(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=0,o=r.length;if(typeof e=="function")return e.apply(null,r);if(typeof e=="string"){var a=e.replace(x1e,function(s){if(s==="%%")return"%";if(i>=o)return s;switch(s){case"%s":return String(r[i++]);case"%d":return Number(r[i++]);case"%j":try{return JSON.stringify(r[i++])}catch{return"[Circular]"}break;default:return s}});return a}return e}function T1e(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Qn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||T1e(t)&&typeof e=="string"&&!e)}function A1e(e,t,r){var n=[],i=0,o=e.length;function a(s){n.push.apply(n,Ge(s||[])),i++,i===o&&r(n)}e.forEach(function(s){t(s,a)})}function Q5(e,t,r){var n=0,i=e.length;function o(a){if(a&&a.length){r(a);return}var s=n;n=n+1,s<i?t(e[s],o):r([])}o([])}function M1e(e){var t=[];return Object.keys(e).forEach(function(r){t.push.apply(t,Ge(e[r]||[]))}),t}var J5=function(e){di(r,e);var t=us(r);function r(n,i){var o;return zr(this,r),o=t.call(this,"Async Validation Error"),J(Ut(o),"errors",void 0),J(Ut(o),"fields",void 0),o.errors=n,o.fields=i,o}return Br(r)}(YM(Error));function $1e(e,t,r,n,i){if(t.first){var o=new Promise(function(f,h){var v=function(m){return n(m),m.length?h(new J5(m,XM(m))):f(i)},y=M1e(e);Q5(y,r,v)});return o.catch(function(f){return f}),o}var a=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,d=[],u=new Promise(function(f,h){var v=function(g){if(d.push.apply(d,g),c++,c===l)return n(d),d.length?h(new J5(d,XM(d))):f(i)};s.length||(n(d),f(i)),s.forEach(function(y){var g=e[y];a.indexOf(y)!==-1?Q5(g,r,v):A1e(g,r,v)})});return u.catch(function(f){return f}),u}function k1e(e){return!!(e&&e.message!==void 0)}function N1e(e,t){for(var r=e,n=0;n<t.length;n++){if(r==null)return r;r=r[t[n]]}return r}function Z5(e,t){return function(r){var n;return e.fullFields?n=N1e(t,e.fullFields):n=t[r.field||e.fullField],k1e(r)?(r.field=r.field||e.fullField,r.fieldValue=n,r):{message:typeof r=="function"?r():r,fieldValue:n,field:r.field||e.fullField}
240}}function ej(e,t){if(t){for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];Pt(n)==="object"&&Pt(e[r])==="object"?e[r]=Q(Q({},e[r]),n):e[r]=n}}return e}var tf="enum",D1e=function(t,r,n,i,o){t[tf]=Array.isArray(t[tf])?t[tf]:[],t[tf].indexOf(r)===-1&&i.push(Ko(o.messages[tf],t.fullField,t[tf].join(", ")))},L1e=function(t,r,n,i,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||i.push(Ko(o.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(r)||i.push(Ko(o.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},j1e=function(t,r,n,i,o){var a=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=r,u=null,f=typeof r=="number",h=typeof r=="string",v=Array.isArray(r);if(f?u="number":h?u="string":v&&(u="array"),!u)return!1;v&&(d=r.length),h&&(d=r.replace(c,"_").length),a?d!==t.len&&i.push(Ko(o.messages[u].len,t.fullField,t.len)):s&&!l&&d<t.min?i.push(Ko(o.messages[u].min,t.fullField,t.min)):l&&!s&&d>t.max?i.push(Ko(o.messages[u].max,t.fullField,t.max)):s&&l&&(d<t.min||d>t.max)&&i.push(Ko(o.messages[u].range,t.fullField,t.min,t.max))},SJ=function(t,r,n,i,o,a){t.required&&(!n.hasOwnProperty(t.field)||Qn(r,a||t.type))&&i.push(Ko(o.messages.required,t.fullField))},$S;const F1e=function(){if($S)return $S;var e="[a-fA-F\\d:]",t=function(E){return E&&E.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},r="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",n="[a-fA-F\\d]{1,4}",i=["(?:".concat(n,":){7}(?:").concat(n,"|:)"),"(?:".concat(n,":){6}(?:").concat(r,"|:").concat(n,"|:)"),"(?:".concat(n,":){5}(?::").concat(r,"|(?::").concat(n,"){1,2}|:)"),"(?:".concat(n,":){4}(?:(?::").concat(n,"){0,1}:").concat(r,"|(?::").concat(n,"){1,3}|:)"),"(?:".concat(n,":){3}(?:(?::").concat(n,"){0,2}:").concat(r,"|(?::").concat(n,"){1,4}|:)"),"(?:".concat(n,":){2}(?:(?::").concat(n,"){0,3}:").concat(r,"|(?::").concat(n,"){1,5}|:)"),"(?:".concat(n,":){1}(?:(?::").concat(n,"){0,4}:").concat(r,"|(?::").concat(n,"){1,6}|:)"),"(?::(?:(?::".concat(n,"){0,5}:").concat(r,"|(?::").concat(n,"){1,7}|:))")],o="(?:%[0-9a-zA-Z]{1,})?",a="(?:".concat(i.join("|"),")").concat(o),s=new RegExp("(?:^".concat(r,"$)|(?:^").concat(a,"$)")),l=new RegExp("^".concat(r,"$")),c=new RegExp("^".concat(a,"$")),d=function(E){return E&&E.exact?s:new RegExp("(?:".concat(t(E)).concat(r).concat(t(E),")|(?:").concat(t(E)).concat(a).concat(t(E),")"),"g")};d.v4=function(w){return w&&w.exact?l:new RegExp("".concat(t(w)).concat(r).concat(t(w)),"g")},d.v6=function(w){return w&&w.exact?c:new RegExp("".concat(t(w)).concat(a).concat(t(w)),"g")};var u="(?:(?:[a-z]+:)?//)",f="(?:\\S+(?::\\S*)?@)?",h=d.v4().source,v=d.v6().source,y="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",g="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",m="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",S="(?::\\d{2,5})?",C='(?:[/?#][^\\s"]*)?',b="(?:".concat(u,"|www\\.)").concat(f,"(?:localhost|").concat(h,"|").concat(v,"|").concat(y).concat(g).concat(m,")").concat(S).concat(C);return $S=new RegExp("(?:^".concat(b,"$)"),"i"),$S};var tj={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Gg={integer:function(t){return Gg.number(t)&&parseInt(t,10)===t},float:function(t){return Gg.number(t)&&!Gg.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return Pt(t)==="object"&&!Gg.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(tj.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(F1e())},hex:function(t){return typeof t=="string"&&!!t.match(tj.hex)}},z1e=function(t,r,n,i,o){if(t.required&&r===void 0){SJ(t,r,n,i,o);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;a.indexOf(s)>-1?Gg[s](r)||i.push(Ko(o.messages.types[s],t.fullField,t.type)):s&&Pt(r)!==t.type&&i.push(Ko(o.messages.types[s],t.fullField,t.type))},B1e=function(t,r,n,i,o){(/^\s+$/.test(r)||r==="")&&i.push(Ko(o.messages.whitespace,t.fullField))};const Rr={required:SJ,whitespace:B1e,type:z1e,range:j1e,enum:D1e,pattern:L1e};var H1e=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Qn(r)&&!t.required)return n();Rr.required(t,r,i,a,o)}n(a)},V1e=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(r==null&&!t.required)return n();Rr.required(t,r,i,a,o,"array"),r!=null&&(Rr.type(t,r,i,a,o),Rr.range(t,r,i,a,o))}n(a)},U1e=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Qn(r)&&!t.required)return n();Rr.required(t,r,i,a,o),r!==void 0&&Rr.type(t,r,i,a,o)}n(a)},W1e=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Qn(r,"date")&&!t.required)return n();if(Rr.required(t,r,i,a,o),!Qn(r,"date")){var l;r instanceof Date?l=r:l=new Date(r),Rr.type(t,l,i,a,o),l&&Rr.range(t,l.getTime(),i,a,o)}}n(a)},q1e="enum",G1e=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Qn(r)&&!t.required)return n();Rr.required(t,r,i,a,o),r!==void 0&&Rr[q1e](t,r,i,a,o)}n(a)},K1e=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Qn(r)&&!t.required)return n();Rr.required(t,r,i,a,o),r!==void 0&&(Rr.type(t,r,i,a,o),Rr.range(t,r,i,a,o))}n(a)},Y1e=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Qn(r)&&!t.required)return n();Rr.required(t,r,i,a,o),r!==void 0&&(Rr.type(t,r,i,a,o),Rr.range(t,r,i,a,o))}n(a)},X1e=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Qn(r)&&!t.required)return n();Rr.required(t,r,i,a,o),r!==void 0&&Rr.type(t,r,i,a,o)}n(a)},Q1e=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),Qn(r)&&!t.required)return n();Rr.required(t,r,i,a,o),r!==void 0&&(Rr.type(t,r,i,a,o),Rr.range(t,r,i,a,o))}n(a)},J1e=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Qn(r)&&!t.required)return n();Rr.required(t,r,i,a,o),r!==void 0&&Rr.type(t,r,i,a,o)}n(a)},Z1e=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Qn(r,"string")&&!t.required)return n();Rr.required(t,r,i,a,o),Qn(r,"string")||Rr.pattern(t,r,i,a,o)}n(a)},eCe=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Qn(r)&&!t.required)return n();Rr.required(t,r,i,a,o),Qn(r)||Rr.type(t,r,i,a,o)}n(a)},tCe=function(t,r,n,i,o){var a=[],s=Array.isArray(r)?"array":Pt(r);Rr.required(t,r,i,a,o,s),n(a)},rCe=function(t,r,n,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Qn(r,"string")&&!t.required)return n();Rr.required(t,r,i,a,o,"string"),Qn(r,"string")||(Rr.type(t,r,i,a,o),Rr.range(t,r,i,a,o),Rr.pattern(t,r,i,a,o),t.whitespace===!0&&Rr.whitespace(t,r,i,a,o))}n(a)},tI=function(t,r,n,i,o){var a=t.type,s=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(Qn(r,a)&&!t.required)return n();Rr.required(t,r,i,s,o,a),Qn(r,a)||Rr.type(t,r,i,s,o)}n(s)};const pm={string:rCe,method:X1e,number:Q1e,boolean:U1e,regexp:eCe,integer:Y1e,float:K1e,array:V1e,object:J1e,enum:G1e,pattern:Z1e,date:W1e,url:tI,hex:tI,email:tI,required:tCe,any:H1e};var a0=function(){function e(t){zr(this,e),J(this,"rules",null),J(this,"_messages",KM),this.define(t)}return Br(e,[{key:"define",value:function(r){var n=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(Pt(r)!=="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(i){var o=r[i];n.rules[i]=Array.isArray(o)?o:[o]})}},{key:"messages",value:function(r){return r&&(this._messages=ej(GM(),r)),this._messages}},{key:"validate",value:function(r){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},a=r,s=i,l=o;if(typeof s=="function"&&(l=s,s={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,a),Promise.resolve(a);function c(v){var y=[],g={};function m(C){if(Array.isArray(C)){var b;y=(b=y).concat.apply(b,Ge(C))}else y.push(C)}for(var S=0;S<v.length;S++)m(v[S]);y.length?(g=XM(y),l(y,g)):l(null,a)}if(s.messages){var d=this.messages();d===KM&&(d=GM()),ej(d,s.messages),s.messages=d}else s.messages=this.messages();var u={},f=s.keys||Object.keys(this.rules);f.forEach(function(v){var y=n.rules[v],g=a[v];
240y.forEach(function(m){var S=m;typeof S.transform=="function"&&(a===r&&(a=Q({},a)),g=a[v]=S.transform(g),g!=null&&(S.type=S.type||(Array.isArray(g)?"array":Pt(g)))),typeof S=="function"?S={validator:S}:S=Q({},S),S.validator=n.getValidationMethod(S),S.validator&&(S.field=v,S.fullField=S.fullField||v,S.type=n.getType(S),u[v]=u[v]||[],u[v].push({rule:S,value:g,source:a,field:v}))})});var h={};return $1e(u,s,function(v,y){var g=v.rule,m=(g.type==="object"||g.type==="array")&&(Pt(g.fields)==="object"||Pt(g.defaultField)==="object");m=m&&(g.required||!g.required&&v.value),g.field=v.field;function S(_,R){return Q(Q({},R),{},{fullField:"".concat(g.fullField,".").concat(_),fullFields:g.fullFields?[].concat(Ge(g.fullFields),[_]):[_]})}function C(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],R=Array.isArray(_)?_:[_];!s.suppressWarning&&R.length&&e.warning("async-validator:",R),R.length&&g.message!==void 0&&(R=[].concat(g.message));var P=R.map(Z5(g,a));if(s.first&&P.length)return h[g.field]=1,y(P);if(!m)y(P);else{if(g.required&&!v.value)return g.message!==void 0?P=[].concat(g.message).map(Z5(g,a)):s.error&&(P=[s.error(g,Ko(s.messages.required,g.field))]),y(P);var I={};g.defaultField&&Object.keys(v.value).map(function(x){I[x]=g.defaultField}),I=Q(Q({},I),v.rule.fields);var O={};Object.keys(I).forEach(function(x){var T=I[x],D=Array.isArray(T)?T:[T];O[x]=D.map(S.bind(null,x))});var A=new e(O);A.messages(s.messages),v.rule.options&&(v.rule.options.messages=s.messages,v.rule.options.error=s.error),A.validate(v.value,v.rule.options||s,function(x){var T=[];P&&P.length&&T.push.apply(T,Ge(P)),x&&x.length&&T.push.apply(T,Ge(x)),y(T.length?T:null)})}}var b;if(g.asyncValidator)b=g.asyncValidator(g,v.value,C,v.source,s);else if(g.validator){try{b=g.validator(g,v.value,C,v.source,s)}catch(_){var w,E;(w=(E=console).error)===null||w===void 0||w.call(E,_),s.suppressValidatorError||setTimeout(function(){throw _},0),C(_.message)}b===!0?C():b===!1?C(typeof g.message=="function"?g.message(g.fullField||g.field):g.message||"".concat(g.fullField||g.field," fails")):b instanceof Array?C(b):b instanceof Error&&C(b.message)}b&&b.then&&b.then(function(){return C()},function(_){return C(_)})},function(v){c(v)},a)}},{key:"getType",value:function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!pm.hasOwnProperty(r.type))throw new Error(Ko("Unknown rule type %s",r.type));return r.type||"string"}},{key:"getValidationMethod",value:function(r){if(typeof r.validator=="function")return r.validator;var n=Object.keys(r),i=n.indexOf("message");return i!==-1&&n.splice(i,1),n.length===1&&n[0]==="required"?pm.required:pm[this.getType(r)]||void 0}}]),e}();J(a0,"register",function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");pm[t]=r});J(a0,"warning",O1e);J(a0,"messages",KM);J(a0,"validators",pm);var Fo="'${name}' is not a valid ${type}",CJ={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:Fo,method:Fo,array:Fo,object:Fo,number:Fo,date:Fo,boolean:Fo,integer:Fo,float:Fo,regexp:Fo,email:Fo,url:Fo,hex:Fo},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},rj=a0;function nCe(e,t){return e.replace(/\\?\$\{\w+\}/g,function(r){if(r.startsWith("\\"))return r.slice(1);var n=r.slice(2,-1);return t[n]})}var nj="CODE_LOGIC_ERROR";function QM(e,t,r,n,i){return JM.apply(this,arguments)}function JM(){return JM=io(Dr().mark(function e(t,r,n,i,o){var a,s,l,c,d,u,f,h,v;return Dr().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return a=Q({},n),delete a.ruleIndex,rj.warning=function(){},a.validator&&(s=a.validator,a.validator=function(){try{return s.apply(void 0,arguments)}catch{return Promise.reject(nj)}}),l=null,a&&a.type==="array"&&a.defaultField&&(l=a.defaultField,delete a.defaultField),c=new rj(J({},t,[a])),d=$f(CJ,i.validateMessages),c.messages(d),u=[],g.prev=10,g.next=13,Promise.resolve(c.validate(J({},t,r),Q({},i)));case 13:g.next=18;break;case 15:g.prev=15,g.t0=g.catch(10),g.t0.errors&&(u=g.t0.errors.map(function(m,S){var C=m.message,b=C===nj?d.default:C;
240return p.isValidElement(b)?p.cloneElement(b,{key:"error_".concat(S)}):b}));case 18:if(!(!u.length&&l)){g.next=23;break}return g.next=21,Promise.all(r.map(function(m,S){return QM("".concat(t,".").concat(S),m,l,i,o)}));case 21:return f=g.sent,g.abrupt("return",f.reduce(function(m,S){return[].concat(Ge(m),Ge(S))},[]));case 23:return h=Q(Q({},n),{},{name:t,enum:(n.enum||[]).join(", ")},o),v=u.map(function(m){return typeof m=="string"?nCe(m,h):m}),g.abrupt("return",v);case 26:case"end":return g.stop()}},e,null,[[10,15]])})),JM.apply(this,arguments)}function iCe(e,t,r,n,i,o){var a=e.join("."),s=r.map(function(d,u){var f=d.validator,h=Q(Q({},d),{},{ruleIndex:u});return f&&(h.validator=function(v,y,g){var m=!1,S=function(){for(var w=arguments.length,E=new Array(w),_=0;_<w;_++)E[_]=arguments[_];Promise.resolve().then(function(){Nn(!m,"Your validator function has already return a promise. `callback` will be ignored."),m||g.apply(void 0,E)})},C=f(v,y,S);m=C&&typeof C.then=="function"&&typeof C.catch=="function",Nn(m,"`callback` is deprecated. Please return a promise instead."),m&&C.then(function(){g()}).catch(function(b){g(b||" ")})}),h}).sort(function(d,u){var f=d.warningOnly,h=d.ruleIndex,v=u.warningOnly,y=u.ruleIndex;return!!f==!!v?h-y:f?1:-1}),l;if(i===!0)l=new Promise(function(){var d=io(Dr().mark(function u(f,h){var v,y,g;return Dr().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:v=0;case 1:if(!(v<s.length)){S.next=12;break}return y=s[v],S.next=5,QM(a,t,y,n,o);case 5:if(g=S.sent,!g.length){S.next=9;break}return h([{errors:g,rule:y}]),S.abrupt("return");case 9:v+=1,S.next=1;break;case 12:f([]);case 13:case"end":return S.stop()}},u)}));return function(u,f){return d.apply(this,arguments)}}());else{var c=s.map(function(d){return QM(a,t,d,n,o).then(function(u){return{errors:u,rule:d}})});l=(i?aCe(c):oCe(c)).then(function(d){return Promise.reject(d)})}return l.catch(function(d){return d}),l}function oCe(e){return ZM.apply(this,arguments)}function ZM(){return ZM=io(Dr().mark(function e(t){return Dr().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.all(t).then(function(i){var o,a=(o=[]).concat.apply(o,Ge(i));return a}));case 1:case"end":return n.stop()}},e)})),ZM.apply(this,arguments)}function aCe(e){return e$.apply(this,arguments)}function e$(){return e$=io(Dr().mark(function e(t){var r;return Dr().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return r=0,i.abrupt("return",new Promise(function(o){t.forEach(function(a){a.then(function(s){s.errors.length&&o([s]),r+=1,r===t.length&&o([])})})}));case 2:case"end":return i.stop()}},e)})),e$.apply(this,arguments)}function Mn(e){return qM(e)}function ij(e,t){var r={};return t.forEach(function(n){var i=Ia(e,n);r=Ca(r,n,i)}),r}function tp(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(n){return bJ(t,n,r)})}function bJ(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!r&&e.length!==t.length?!1:t.every(function(n,i){return e[i]===n})}function sCe(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||Pt(e)!=="object"||Pt(t)!=="object")return!1;var r=Object.keys(e),n=Object.keys(t),i=new Set([].concat(r,n));return Ge(i).every(function(o){var a=e[o],s=t[o];return typeof a=="function"&&typeof s=="function"?!0:a===s})}function lCe(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Pt(t.target)==="object"&&e in t.target?t.target[e]:t}function oj(e,t,r){var n=e.length;if(t<0||t>=n||r<0||r>=n)return e;var i=e[t],o=t-r;return o>0?[].concat(Ge(e.slice(0,r)),[i],Ge(e.slice(r,t)),Ge(e.slice(t+1,n))):o<0?[].concat(Ge(e.slice(0,t)),Ge(e.slice(t+1,r+1)),[i],Ge(e.slice(r+1,n))):e}var cCe=["name"],fa=[];function rI(e,t,r,n,i,o){return typeof e=="function"?e(t,r,"source"in o?{source:o.source}:{}):n!==i}var D4=function(e){di(r,e);var t=us(r);function r(n){var i;if(zr(this,r),i=t.call(this,n),J(Ut(i),"state",{resetCount:0}),J(Ut(i),"cancelRegisterFunc",null),J(Ut(i),"mounted",!1),J(Ut(i),"touched",!1),J(Ut(i),"dirty",!1),J(Ut(i),"validatePromise",void 0),J(Ut(i),"prevValidating",void 0),J(Ut(i),"errors",fa),J(Ut(i),"warnings",fa),J(Ut(i),"cancelRegister",function(){var l=i.props,c=l.preserve,d=l.isListField,u=l.name;i.cancelRegisterFunc&&i.cancelRegisterFunc(d,c,Mn(u)),i.cancelRegisterFunc=null}),J(Ut(i),"getNamePath",function(){var l=i.props,c=l.name,d=l.fieldContext,u=d.prefixName,f=u===void 0?[]:u;return c!==void 0?[].concat(Ge(f),Ge(c)):[]}),J(Ut(i),"getRules",function(){var l=i.props,c=l.rules,d=c===void 0?[]:c,u=l.fieldContext;return d.map(function(f){return typeof f=="function"?f(u):f})}),J(Ut(i),"refresh",function(){i.mounted&&i.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),J(Ut(i),"metaCache",null),J(Ut(i),"triggerMetaEvent",function(l){var c=i.props.onMetaChange;if(c){var d=Q(Q({},i.getMeta()),{},{destroy:l});ld(i.metaCache,d)||c(d),i.metaCache=d}else i.metaCache=null}),J(Ut(i),"onStoreChange",function(l,c,d){var u=i.props,f=u.shouldUpdate,h=u.dependencies,v=h===void 0?[]:h,y=u.onReset,g=
240d.store,m=i.getNamePath(),S=i.getValue(l),C=i.getValue(g),b=c&&tp(c,m);switch(d.type==="valueUpdate"&&d.source==="external"&&!ld(S,C)&&(i.touched=!0,i.dirty=!0,i.validatePromise=null,i.errors=fa,i.warnings=fa,i.triggerMetaEvent()),d.type){case"reset":if(!c||b){i.touched=!1,i.dirty=!1,i.validatePromise=void 0,i.errors=fa,i.warnings=fa,i.triggerMetaEvent(),y==null||y(),i.refresh();return}break;case"remove":{if(f&&rI(f,l,g,S,C,d)){i.reRender();return}break}case"setField":{var w=d.data;if(b){"touched"in w&&(i.touched=w.touched),"validating"in w&&!("originRCField"in w)&&(i.validatePromise=w.validating?Promise.resolve([]):null),"errors"in w&&(i.errors=w.errors||fa),"warnings"in w&&(i.warnings=w.warnings||fa),i.dirty=!0,i.triggerMetaEvent(),i.reRender();return}else if("value"in w&&tp(c,m,!0)){i.reRender();return}if(f&&!m.length&&rI(f,l,g,S,C,d)){i.reRender();return}break}case"dependenciesUpdate":{var E=v.map(Mn);if(E.some(function(_){return tp(d.relatedFields,_)})){i.reRender();return}break}default:if(b||(!v.length||m.length||f)&&rI(f,l,g,S,C,d)){i.reRender();return}break}f===!0&&i.reRender()}),J(Ut(i),"validateRules",function(l){var c=i.getNamePath(),d=i.getValue(),u=l||{},f=u.triggerName,h=u.validateOnly,v=h===void 0?!1:h,y=Promise.resolve().then(io(Dr().mark(function g(){var m,S,C,b,w,E,_;return Dr().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:if(i.mounted){P.next=2;break}return P.abrupt("return",[]);case 2:if(m=i.props,S=m.validateFirst,C=S===void 0?!1:S,b=m.messageVariables,w=m.validateDebounce,E=i.getRules(),f&&(E=E.filter(function(I){return I}).filter(function(I){var O=I.validateTrigger;if(!O)return!0;var A=qM(O);return A.includes(f)})),!(w&&f)){P.next=10;break}return P.next=8,new Promise(function(I){setTimeout(I,w)});case 8:if(i.validatePromise===y){P.next=10;break}return P.abrupt("return",[]);case 10:return _=iCe(c,d,E,l,C,b),_.catch(function(I){return I}).then(function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:fa;if(i.validatePromise===y){var O;i.validatePromise=null;var A=[],x=[];(O=I.forEach)===null||O===void 0||O.call(I,function(T){var D=T.rule.warningOnly,k=T.errors,j=k===void 0?fa:k;D?x.push.apply(x,Ge(j)):A.push.apply(A,Ge(j))}),i.errors=A,i.warnings=x,i.triggerMetaEvent(),i.reRender()}}),P.abrupt("return",_);case 13:case"end":return P.stop()}},g)})));return v||(i.validatePromise=y,i.dirty=!0,i.errors=fa,i.warnings=fa,i.triggerMetaEvent(),i.reRender()),y}),J(Ut(i),"isFieldValidating",function(){return!!i.validatePromise}),J(Ut(i),"isFieldTouched",function(){return i.touched}),J(Ut(i),"isFieldDirty",function(){if(i.dirty||i.props.initialValue!==void 0)return!0;var l=i.props.fieldContext,c=l.getInternalHooks(Uu),d=c.getInitialValue;return d(i.getNamePath())!==void 0}),J(Ut(i),"getErrors",function(){return i.errors}),J(Ut(i),"getWarnings",function(){return i.warnings}),J(Ut(i),"isListField",function(){return i.props.isListField}),J(Ut(i),"isList",function(){return i.props.isList}),J(Ut(i),"isPreserve",function(){return i.props.preserve}),J(Ut(i),"getMeta",function(){i.prevValidating=i.isFieldValidating();var l={touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath(),validated:i.validatePromise===null};return l}),J(Ut(i),"getOnlyChild",function(l){if(typeof l=="function"){var c=i.getMeta();return Q(Q({},i.getOnlyChild(l(i.getControlled(),c,i.props.fieldContext))),{},{isFunction:!0})}var d=Jo(l);return d.length!==1||!p.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),J(Ut(i),"getValue",function(l){var c=i.props.fieldContext.getFieldsValue,d=i.getNamePath();return Ia(l||c(!0),d)}),J(Ut(i),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=i.props,d=c.name,u=c.trigger,f=c.validateTrigger,h=c.getValueFromEvent,v=c.normalize,y=c.valuePropName,g=c.getValueProps,m=c.fieldContext,S=f!==void 0?f:m.validateTrigger,C=i.getNamePath(),b=m.getInternalHooks,w=m.getFieldsValue,E=b(Uu),_=E.dispatch,R=i.getValue(),P=g||function(T){return J({},y,T)},I=l[u],O=d!==void 0?P(R):{},A=Q(Q({},l),O);A[u]=function(){i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var T,D=arguments.length,k=new Array(D),j=0;j<D;j++)k[j]=arguments[j];h?T=h.apply(void 0,k):T=lCe.apply(void 0,[y].concat(k)),v&&(T=v(T,R,w(!0))),T!==R&&_({type:"updateV
240alue",namePath:C,value:T}),I&&I.apply(void 0,k)};var x=qM(S||[]);return x.forEach(function(T){var D=A[T];A[T]=function(){D&&D.apply(void 0,arguments);var k=i.props.rules;k&&k.length&&_({type:"validateField",namePath:C,triggerName:T})}}),A}),n.fieldContext){var o=n.fieldContext.getInternalHooks,a=o(Uu),s=a.initEntityValue;s(Ut(i))}return i}return Br(r,[{key:"componentDidMount",value:function(){var i=this.props,o=i.shouldUpdate,a=i.fieldContext;if(this.mounted=!0,a){var s=a.getInternalHooks,l=s(Uu),c=l.registerField;this.cancelRegisterFunc=c(this)}o===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var i=this.state.resetCount,o=this.props.children,a=this.getOnlyChild(o),s=a.child,l=a.isFunction,c;return l?c=s:p.isValidElement(s)?c=p.cloneElement(s,this.getControlled(s.props)):(Nn(!s,"`children` of Field is not validate ReactElement."),c=s),p.createElement(p.Fragment,{key:i},c)}}]),r}(p.Component);J(D4,"contextType",ud);J(D4,"defaultProps",{trigger:"onChange",valuePropName:"value"});function L4(e){var t,r=e.name,n=Nt(e,cCe),i=p.useContext(ud),o=p.useContext(ay),a=r!==void 0?Mn(r):void 0,s=(t=n.isListField)!==null&&t!==void 0?t:!!o,l="keep";return s||(l="_".concat((a||[]).join("_"))),p.createElement(D4,$e({key:l,name:a,isListField:s},n,{fieldContext:i}))}function wJ(e){var t=e.name,r=e.initialValue,n=e.children,i=e.rules,o=e.validateTrigger,a=e.isListField,s=p.useContext(ud),l=p.useContext(ay),c=p.useRef({keys:[],id:0}),d=c.current,u=p.useMemo(function(){var y=Mn(s.prefixName)||[];return[].concat(Ge(y),Ge(Mn(t)))},[s.prefixName,t]),f=p.useMemo(function(){return Q(Q({},s),{},{prefixName:u})},[s,u]),h=p.useMemo(function(){return{getKey:function(g){var m=u.length,S=g[m];return[d.keys[S],g.slice(m+1)]}}},[u]);if(typeof n!="function")return Nn(!1,"Form.List only accepts function as children."),null;var v=function(g,m,S){var C=S.source;return C==="internal"?!1:g!==m};return p.createElement(ay.Provider,{value:h},p.createElement(ud.Provider,{value:f},p.createElement(L4,{name:[],shouldUpdate:v,rules:i,validateTrigger:o,initialValue:r,isList:!0,isListField:a??!!l},function(y,g){var m=y.value,S=m===void 0?[]:m,C=y.onChange,b=s.getFieldValue,w=function(){var P=b(u||[]);return P||[]},E={add:function(P,I){var O=w();I>=0&&I<=O.length?(d.keys=[].concat(Ge(d.keys.slice(0,I)),[d.id],Ge(d.keys.slice(I))),C([].concat(Ge(O.slice(0,I)),[P],Ge(O.slice(I))))):(d.keys=[].concat(Ge(d.keys),[d.id]),C([].concat(Ge(O),[P]))),d.id+=1},remove:function(P){var I=w(),O=new Set(Array.isArray(P)?P:[P]);O.size<=0||(d.keys=d.keys.filter(function(A,x){return!O.has(x)}),C(I.filter(function(A,x){return!O.has(x)})))},move:function(P,I){if(P!==I){var O=w();P<0||P>=O.length||I<0||I>=O.length||(d.keys=oj(d.keys,P,I),C(oj(O,P,I)))}}},_=S||[];return Array.isArray(_)||(_=[]),n(_.map(function(R,P){var I=d.keys[P];return I===void 0&&(d.keys[P]=d.id,I=d.keys[P],d.id+=1),{name:P,key:I,isListField:!0}}),E,g)})))}function uCe(e){var t=!1,r=e.length,n=[];return e.length?new Promise(function(i,o){e.forEach(function(a,s){a.catch(function(l){return t=!0,l}).then(function(l){r-=1,n[s]=l,!(r>0)&&(t&&o(n),i(n))})})}):Promise.resolve([])}var _J="__@field_split__";function nI(e){return e.map(function(t){return"".concat(Pt(t),":").concat(t)}).join(_J)}var rf=function(){function e(){zr(this,e),J(this,"kvs",new Map)}return Br(e,[{key:"set",value:function(r,n){this.kvs.set(nI(r),n)}},{key:"get",value:function(r){return this.kvs.get(nI(r))}},{key:"update",value:function(r,n){var i=this.get(r),o=n(i);o?this.set(r,o):this.delete(r)}},{key:"delete",value:function(r){this.kvs.delete(nI(r))}},{key:"map",value:function(r){return Ge(this.kvs.entries()).map(function(n){var i=oe(n,2),o=i[0],a=i[1],s=o.split(_J);return r({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),d=oe(c,3),u=d[1],f=d[2];return u==="number"?Number(f):f}),value:a})})}},{key:"toJSON",value:function(){var r={};return this.map(function(n){var i=n.key,o=n.value;return r[i.join(".")]=o,null}),r}}]),e}(),dCe=["name"],fCe=Br(function e(t){var r=this;zr(this,e),J(this,"formHooked",!1),J(this,"forceRootUpdate",void 0),J(this,"subscribable",!0),J(this,"store",{}),J(this,"fieldEntities",[]),J(this,"initialValues",{}),J(this,"callbacks",{}),J(this,"validateMessages",null),J(this,"preserve",null),J(this,"lastValidatePromise",null),J(this,"getForm",function(){return{getFieldValue:r.getFieldValue,getFieldsValue:r.getFieldsValue,getFieldError:r.getFieldError,getFieldWarning:r.getFieldWarning,getFieldsError:r.getFieldsError,isFieldsTouched:r.isFieldsTouched,isFieldTouched:r.isFieldTouched,isFieldValidating:r.isFieldValidating,is
240FieldsValidating:r.isFieldsValidating,resetFields:r.resetFields,setFields:r.setFields,setFieldValue:r.setFieldValue,setFieldsValue:r.setFieldsValue,validateFields:r.validateFields,submit:r.submit,_init:!0,getInternalHooks:r.getInternalHooks}}),J(this,"getInternalHooks",function(n){return n===Uu?(r.formHooked=!0,{dispatch:r.dispatch,initEntityValue:r.initEntityValue,registerField:r.registerField,useSubscribe:r.useSubscribe,setInitialValues:r.setInitialValues,destroyForm:r.destroyForm,setCallbacks:r.setCallbacks,setValidateMessages:r.setValidateMessages,getFields:r.getFields,setPreserve:r.setPreserve,getInitialValue:r.getInitialValue,registerWatch:r.registerWatch}):(Nn(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),J(this,"useSubscribe",function(n){r.subscribable=n}),J(this,"prevWithoutPreserves",null),J(this,"setInitialValues",function(n,i){if(r.initialValues=n||{},i){var o,a=$f(n,r.store);(o=r.prevWithoutPreserves)===null||o===void 0||o.map(function(s){var l=s.key;a=Ca(a,l,Ia(n,l))}),r.prevWithoutPreserves=null,r.updateStore(a)}}),J(this,"destroyForm",function(n){if(n)r.updateStore({});else{var i=new rf;r.getFieldEntities(!0).forEach(function(o){r.isMergedPreserve(o.isPreserve())||i.set(o.getNamePath(),!0)}),r.prevWithoutPreserves=i}}),J(this,"getInitialValue",function(n){var i=Ia(r.initialValues,n);return n.length?$f(i):i}),J(this,"setCallbacks",function(n){r.callbacks=n}),J(this,"setValidateMessages",function(n){r.validateMessages=n}),J(this,"setPreserve",function(n){r.preserve=n}),J(this,"watchList",[]),J(this,"registerWatch",function(n){return r.watchList.push(n),function(){r.watchList=r.watchList.filter(function(i){return i!==n})}}),J(this,"notifyWatch",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(r.watchList.length){var i=r.getFieldsValue(),o=r.getFieldsValue(!0);r.watchList.forEach(function(a){a(i,o,n)})}}),J(this,"timeoutId",null),J(this,"warningUnhooked",function(){}),J(this,"updateStore",function(n){r.store=n}),J(this,"getFieldEntities",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return n?r.fieldEntities.filter(function(i){return i.getNamePath().length}):r.fieldEntities}),J(this,"getFieldsMap",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=new rf;return r.getFieldEntities(n).forEach(function(o){var a=o.getNamePath();i.set(a,o)}),i}),J(this,"getFieldEntitiesForNamePathList",function(n){if(!n)return r.getFieldEntities(!0);var i=r.getFieldsMap(!0);return n.map(function(o){var a=Mn(o);return i.get(a)||{INVALIDATE_NAME_PATH:Mn(o)}})}),J(this,"getFieldsValue",function(n,i){r.warningUnhooked();var o,a,s;if(n===!0||Array.isArray(n)?(o=n,a=i):n&&Pt(n)==="object"&&(s=n.strict,a=n.filter),o===!0&&!a)return r.store;var l=r.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),c=[];return l.forEach(function(d){var u,f,h="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(s){var v,y;if((v=(y=d).isList)!==null&&v!==void 0&&v.call(y))return}else if(!o&&(u=(f=d).isListField)!==null&&u!==void 0&&u.call(f))return;if(!a)c.push(h);else{var g="getMeta"in d?d.getMeta():null;a(g)&&c.push(h)}}),ij(r.store,c.map(Mn))}),J(this,"getFieldValue",function(n){r.warningUnhooked();var i=Mn(n);return Ia(r.store,i)}),J(this,"getFieldsError",function(n){r.warningUnhooked();var i=r.getFieldEntitiesForNamePathList(n);return i.map(function(o,a){return o&&!("INVALIDATE_NAME_PATH"in o)?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:Mn(n[a]),errors:[],warnings:[]}})}),J(this,"getFieldError",function(n){r.warningUnhooked();var i=Mn(n),o=r.getFieldsError([i])[0];return o.errors}),J(this,"getFieldWarning",function(n){r.warningUnhooked();var i=Mn(n),o=r.getFieldsError([i])[0];return o.warnings}),J(this,"isFieldsTouched",function(){r.warningUnhooked();for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];var a=i[0],s=i[1],l,c=!1;i.length===0?l=null:i.length===1?Array.isArray(a)?(l=a.map(Mn),c=!1):(l=null,c=a):(l=a.map(Mn),c=s);var d=r.getFieldEntities(!0),u=function(g){return g.isFieldTouched()};if(!l)return c?d.every(function(y){return u(y)||y.isList()}):d.some(u);var f=new rf;l.forEach(function(y){f.set(y,[])}),d.forEach(function(y){var g=y.getNamePath();l.forEach(function(m){m.every(function(S,C){return g[C]===S})&&f.update(m,function(S){return[].concat(Ge(S),[y])})})});var h=function(g){return g.some(u)},v=f.map(function(y){var g=y.value;return g});return c?v.every(h):v.some(h)}),J(this,"isFieldTouched",function(n){return r.warningUnhooked(),r.isFieldsTouched([n])}),J(this,"isFieldsValidating",function(n){r.warningUnhooked();var i=r.getFieldEntities();if(!n)return i.some(function(a){return a.isFieldValidating()});var o=n.map(Mn);return i.some(function(a){var s=a.getNamePath();return tp(o,s)&&a.isFieldValidating()})}),J(this,"isFieldValidating",function(n){return r.warningUnhooked(),r.isFieldsValidating([n])}),J(this,"resetWithFieldInitialValue",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=new rf,o=r.getFieldEntities(!0);o.forEach(function(l){var c=l.props.initialValue,d=l.getNamePath();if(c!==void 0){var u=i.get(d)||new Set;u.add({entity:l,value:c}),i.set(d,u)}});
240var a=function(c){c.forEach(function(d){var u=d.props.initialValue;if(u!==void 0){var f=d.getNamePath(),h=r.getInitialValue(f);if(h!==void 0)Nn(!1,"Form already set 'initialValues' with path '".concat(f.join("."),"'. Field can not overwrite it."));else{var v=i.get(f);if(v&&v.size>1)Nn(!1,"Multiple Field with path '".concat(f.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(v){var y=r.getFieldValue(f),g=d.isListField();!g&&(!n.skipExist||y===void 0)&&r.updateStore(Ca(r.store,f,Ge(v)[0].value))}}}})},s;n.entities?s=n.entities:n.namePathList?(s=[],n.namePathList.forEach(function(l){var c=i.get(l);if(c){var d;(d=s).push.apply(d,Ge(Ge(c).map(function(u){return u.entity})))}})):s=o,a(s)}),J(this,"resetFields",function(n){r.warningUnhooked();var i=r.store;if(!n){r.updateStore($f(r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(i,null,{type:"reset"}),r.notifyWatch();return}var o=n.map(Mn);o.forEach(function(a){var s=r.getInitialValue(a);r.updateStore(Ca(r.store,a,s))}),r.resetWithFieldInitialValue({namePathList:o}),r.notifyObservers(i,o,{type:"reset"}),r.notifyWatch(o)}),J(this,"setFields",function(n){r.warningUnhooked();var i=r.store,o=[];n.forEach(function(a){var s=a.name,l=Nt(a,dCe),c=Mn(s);o.push(c),"value"in l&&r.updateStore(Ca(r.store,c,l.value)),r.notifyObservers(i,[c],{type:"setField",data:a})}),r.notifyWatch(o)}),J(this,"getFields",function(){var n=r.getFieldEntities(!0),i=n.map(function(o){var a=o.getNamePath(),s=o.getMeta(),l=Q(Q({},s),{},{name:a,value:r.getFieldValue(a)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return i}),J(this,"initEntityValue",function(n){var i=n.props.initialValue;if(i!==void 0){var o=n.getNamePath(),a=Ia(r.store,o);a===void 0&&r.updateStore(Ca(r.store,o,i))}}),J(this,"isMergedPreserve",function(n){var i=n!==void 0?n:r.preserve;return i??!0}),J(this,"registerField",function(n){r.fieldEntities.push(n);var i=n.getNamePath();if(r.notifyWatch([i]),n.props.initialValue!==void 0){var o=r.store;r.resetWithFieldInitialValue({entities:[n],skipExist:!0}),r.notifyObservers(o,[n.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(a,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.fieldEntities=r.fieldEntities.filter(function(u){return u!==n}),!r.isMergedPreserve(s)&&(!a||l.length>1)){var c=a?void 0:r.getInitialValue(i);if(i.length&&r.getFieldValue(i)!==c&&r.fieldEntities.every(function(u){return!bJ(u.getNamePath(),i)})){var d=r.store;r.updateStore(Ca(d,i,c,!0)),r.notifyObservers(d,[i],{type:"remove"}),r.triggerDependenciesUpdate(d,i)}}r.notifyWatch([i])}}),J(this,"dispatch",function(n){switch(n.type){case"updateValue":{var i=n.namePath,o=n.value;r.updateValue(i,o);break}case"validateField":{var a=n.namePath,s=n.triggerName;r.validateFields([a],{triggerName:s});break}}}),J(this,"notifyObservers",function(n,i,o){if(r.subscribable){var a=Q(Q({},o),{},{store:r.getFieldsValue(!0)});r.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(n,i,a)})}else r.forceRootUpdate()}),J(this,"triggerDependenciesUpdate",function(n,i){var o=r.getDependencyChildrenFields(i);return o.length&&r.validateFields(o),r.notifyObservers(n,o,{type:"dependenciesUpdate",relatedFields:[i].concat(Ge(o))}),o}),J(this,"updateValue",function(n,i){var o=Mn(n),a=r.store;r.updateStore(Ca(r.store,o,i)),r.notifyObservers(a,[o],{type:"valueUpdate",source:"internal"}),r.notifyWatch([o]);
240var s=r.triggerDependenciesUpdate(a,o),l=r.callbacks.onValuesChange;if(l){var c=ij(r.store,[o]);l(c,r.getFieldsValue())}r.triggerOnFieldsChange([o].concat(Ge(s)))}),J(this,"setFieldsValue",function(n){r.warningUnhooked();var i=r.store;if(n){var o=$f(r.store,n);r.updateStore(o)}r.notifyObservers(i,null,{type:"valueUpdate",source:"external"}),r.notifyWatch()}),J(this,"setFieldValue",function(n,i){r.setFields([{name:n,value:i,errors:[],warnings:[]}])}),J(this,"getDependencyChildrenFields",function(n){var i=new Set,o=[],a=new rf;r.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(d){var u=Mn(d);a.update(u,function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return f.add(l),f})})});var s=function l(c){var d=a.get(c)||new Set;d.forEach(function(u){if(!i.has(u)){i.add(u);var f=u.getNamePath();u.isFieldDirty()&&f.length&&(o.push(f),l(f))}})};return s(n),o}),J(this,"triggerOnFieldsChange",function(n,i){var o=r.callbacks.onFieldsChange;if(o){var a=r.getFields();if(i){var s=new rf;i.forEach(function(c){var d=c.name,u=c.errors;s.set(d,u)}),a.forEach(function(c){c.errors=s.get(c.name)||c.errors})}var l=a.filter(function(c){var d=c.name;return tp(n,d)});l.length&&o(l,a)}}),J(this,"validateFields",function(n,i){r.warningUnhooked();var o,a;Array.isArray(n)||typeof n=="string"||typeof i=="string"?(o=n,a=i):a=n;var s=!!o,l=s?o.map(Mn):[],c=[],d=String(Date.now()),u=new Set,f=a||{},h=f.recursive,v=f.dirty;r.getFieldEntities(!0).forEach(function(S){if(s||l.push(S.getNamePath()),!(!S.props.rules||!S.props.rules.length)&&!(v&&!S.isFieldDirty())){var C=S.getNamePath();if(u.add(C.join(d)),!s||tp(l,C,h)){var b=S.validateRules(Q({validateMessages:Q(Q({},CJ),r.validateMessages)},a));c.push(b.then(function(){return{name:C,errors:[],warnings:[]}}).catch(function(w){var E,_=[],R=[];return(E=w.forEach)===null||E===void 0||E.call(w,function(P){var I=P.rule.warningOnly,O=P.errors;I?R.push.apply(R,Ge(O)):_.push.apply(_,Ge(O))}),_.length?Promise.reject({name:C,errors:_,warnings:R}):{name:C,errors:_,warnings:R}}))}}});var y=uCe(c);r.lastValidatePromise=y,y.catch(function(S){return S}).then(function(S){var C=S.map(function(b){var w=b.name;return w});r.notifyObservers(r.store,C,{type:"validateFinish"}),r.triggerOnFieldsChange(C,S)});var g=y.then(function(){return r.lastValidatePromise===y?Promise.resolve(r.getFieldsValue(l)):Promise.reject([])}).catch(function(S){var C=S.filter(function(b){return b&&b.errors.length});return Promise.reject({values:r.getFieldsValue(l),errorFields:C,outOfDate:r.lastValidatePromise!==y})});g.catch(function(S){return S});var m=l.filter(function(S){return u.has(S.join(d))});return r.triggerOnFieldsChange(m),g}),J(this,"submit",function(){r.warningUnhooked(),r.validateFields().then(function(n){var i=r.callbacks.onFinish;if(i)try{i(n)}catch{}}).catch(function(n){var i=r.callbacks.onFinishFailed;i&&i(n)})}),this.forceRootUpdate=t});function j4(e){var t=p.useRef(),r=p.useState({}),n=oe(r,2),i=n[1];if(!t.current)if(e)t.current=e;else{var o=function(){i({})},a=new fCe(o);t.current=a.getForm()}return[t.current]}var t$=p.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),EJ=function(t){var r=t.validateMessages,n=t.onFormChange,i=t.onF
240ormFinish,o=t.children,a=p.useContext(t$),s=p.useRef({});return p.createElement(t$.Provider,{value:Q(Q({},a),{},{validateMessages:Q(Q({},a.validateMessages),r),triggerFormChange:function(c,d){n&&n(c,{changedFields:d,forms:s.current}),a.triggerFormChange(c,d)},triggerFormFinish:function(c,d){i&&i(c,{values:d,forms:s.current}),a.triggerFormFinish(c,d)},registerForm:function(c,d){c&&(s.current=Q(Q({},s.current),{},J({},c,d))),a.registerForm(c,d)},unregisterForm:function(c){var d=Q({},s.current);delete d[c],s.current=d,a.unregisterForm(c)}})},o)},pCe=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],hCe=function(t,r){var n=t.name,i=t.initialValues,o=t.fields,a=t.form,s=t.preserve,l=t.children,c=t.component,d=c===void 0?"form":c,u=t.validateMessages,f=t.validateTrigger,h=f===void 0?"onChange":f,v=t.onValuesChange,y=t.onFieldsChange,g=t.onFinish,m=t.onFinishFailed,S=t.clearOnDestroy,C=Nt(t,pCe),b=p.useRef(null),w=p.useContext(t$),E=j4(a),_=oe(E,1),R=_[0],P=R.getInternalHooks(Uu),I=P.useSubscribe,O=P.setInitialValues,A=P.setCallbacks,x=P.setValidateMessages,T=P.setPreserve,D=P.destroyForm;p.useImperativeHandle(r,function(){return Q(Q({},R),{},{nativeElement:b.current})}),p.useEffect(function(){return w.registerForm(n,R),function(){w.unregisterForm(n)}},[w,R,n]),x(Q(Q({},w.validateMessages),u)),A({onValuesChange:v,onFieldsChange:function(H){if(w.triggerFormChange(n,H),y){for(var U=arguments.length,V=new Array(U>1?U-1:0),W=1;W<U;W++)V[W-1]=arguments[W];y.apply(void 0,[H].concat(V))}},onFinish:function(H){w.triggerFormFinish(n,H),g&&g(H)},onFinishFailed:m}),T(s);var k=p.useRef(null);O(i,!k.current),k.current||(k.current=!0),p.useEffect(function(){return function(){return D(S)}},[]);var j,N=typeof l=="function";if(N){var L=R.getFieldsValue(!0);j=l(L,R)}else j=l;I(!N);var M=p.useRef();p.useEffect(function(){sCe(M.current||[],o||[])||R.setFields(o||[]),M.current=o},[o,R]);var $=p.useMemo(function(){return Q(Q({},R),{},{validateTrigger:h})},[R,h]),F=p.createElement(ay.Provider,{value:null},p.createElement(ud.Provider,{value:$},j));return d===!1?F:p.createElement(d,$e({},C,{ref:b,onSubmit:function(H){H.preventDefault(),H.stopPropagation(),R.submit()},onReset:function(H){var U;H.preventDefault(),R.resetFields(),(U=C.onReset)===null||U===void 0||U.call(C,H)}}),F)};function aj(e){try{return JSON.stringify(e)}catch{return Math.random()}}function RJ(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],i=t[1],o=i===void 0?{}:i,a=R1e(o)?{form:o}:o,s=a.form,l=p.useState(),c=oe(l,2),d=c[0],u=c[1],f=p.useMemo(function(){return aj(d)},[d]),h=p.useRef(f);h.current=f;var v=p.useContext(ud),y=s||v,g=y&&y._init,m=Mn(n),S=p.useRef(m);return S.current=m,p.useEffect(function(){if(g){var C=y.getFieldsValue,b=y.getInternalHooks,w=b(Uu),E=w.registerWatch,_=function(O,A){var x=a.preserve?A:O;return typeof n=="function"?n(x):Ia(x,S.current)},R=E(function(I,O){var A=_(I,O),x=aj(A);h.current!==x&&(h.current=x,u(A))}),P=_(C(),C(!0));return d!==P&&u(P),R}},[g]),d}var vCe=p.forwardRef(hCe),Kp=vCe;Kp.FormProvider=EJ;Kp.Field=L4;Kp.List=wJ;Kp.useForm=j4;Kp.useWatch=RJ;const bl=p.createContext({labelAlign:"right",layout:"horizontal",itemRef:()=>{}}),PJ=p.createContext(null),IJ=e=>{const t=Dn(e,["prefixCls"]);return p.createElement(EJ,Object.assign({},t))},F4=p.createContext({prefixCls:""}),Yi=p.createContext({}),gCe=({children:e,status:t,override:r})=>{const n=p.useContext(Yi),i=p.useMemo(()=>{const o=Object.assign({},n);return r&&delete o.isFormItemInput,t&&(delete o.status,delete o.hasFeedback,delete o.feedbackIcon),o},[t,r,n]);return p.createElement(Yi.Provider,{value:i},e)},xJ=p.createContext(void 0),mCe=e=>{const{space:t,form:r,children:n}=e;if(n==null)return null;let i=n;return r&&(i=de.createElement(gCe,{override:!0,status:!0},i)),t&&(i=de.createElement(M0e,null,i)),i},wl=mCe;function sj(...e){const t={};return e.forEach(r=>{r&&Object.keys(r).forEach(n=>{r[n]!==void 0&&(t[n]=r[n])})}),t}function Sb(e){if(!e)return;const{closable:t,closeIcon:r}=e;return{closable:t,closeIcon:r}}function lj(e){const{closable:t,closeIcon:r}=e||{};return de.useMemo(()=>
240{if(!t&&(t===!1||r===!1||r===null))return!1;if(t===void 0&&r===void 0)return null;let n={closeIcon:typeof r!="boolean"&&r!==null?r:void 0};return t&&typeof t=="object"&&(n=Object.assign(Object.assign({},n),t)),n},[t,r])}const yCe={};function OJ(e,t,r=yCe){const n=lj(e),i=lj(t),[o]=$o("global",Fs.global),a=typeof n!="boolean"?!!(n!=null&&n.disabled):!1,s=de.useMemo(()=>Object.assign({closeIcon:de.createElement(Tl,null)},r),[r]),l=de.useMemo(()=>n===!1?!1:n?sj(s,i,n):i===!1?!1:i?sj(s,i):s.closable?s:!1,[n,i,s]);return de.useMemo(()=>{var c,d;if(l===!1)return[!1,null,a,{}];const{closeIconRender:u}=s,{closeIcon:f}=l;let h=f;const v=lo(l,!0);return h!=null&&(u&&(h=u(f)),h=de.isValidElement(h)?de.cloneElement(h,Object.assign(Object.assign(Object.assign({},h.props),{"aria-label":(d=(c=h.props)===null||c===void 0?void 0:c["aria-label"])!==null&&d!==void 0?d:o.close}),v)):de.createElement("span",Object.assign({"aria-label":o.close},v),h)),[!0,h,a,v]},[l,s])}var TJ=function(t){if(Pi()&&window.document.documentElement){var r=Array.isArray(t)?t:[t],n=window.document.documentElement;return r.some(function(i){return i in n.style})}return!1},SCe=function(t,r){if(!TJ(t))return!1;var n=document.createElement("div"),i=n.style[t];return n.style[t]=r,n.style[t]!==i};function cj(e,t){return!Array.isArray(e)&&t!==void 0?SCe(e,t):TJ(e)}const CCe=()=>Pi()&&window.document.documentElement,bCe=e=>{const{prefixCls:t,className:r,style:n,size:i,shape:o}=e,a=ie({[`${t}-lg`]:i==="large",[`${t}-sm`]:i==="small"}),s=ie({[`${t}-circle`]:o==="circle",[`${t}-square`]:o==="square",[`${t}-round`]:o==="round"}),l=p.useMemo(()=>typeof i=="number"?{width:i,height:i,lineHeight:`${i}px`}:{},[i]);return p.createElement("span",{className:ie(t,a,s,r),style:Object.assign(Object.assign({},l),n)})},E_=bCe,wCe=new mr("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),R_=e=>({height:e,lineHeight:fe(e)}),rp=e=>Object.assign({width:e},R_(e)),_Ce=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:wCe,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),iI=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},R_(e)),ECe=e=>{const{skeletonAvatarCls:t,gradientFromColor:r,controlHeight:n,controlHeightLG:i,controlHeightSM:o}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:r},rp(n)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},rp(i)),[`${t}${t}-sm`]:Object.assign({},rp(o))}},RCe=e=>{const{controlHeight:t,borderRadiusSM:r,skeletonInputCls:n,controlHeightLG:i,controlHeightSM:o,gradientFromColor:a,calc:s}=e;return{[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:r},iI(t,s)),[`${n}-lg`]:Object.assign({},iI(i,s)),[`${n}-sm`]:Object.assign({},iI(o,s))}},uj=e=>Object.assign({width:e},R_(e)),PCe=e=>{const{skeletonImageCls:t,imageSizeBase:r,gradientFromColor:n,borderRadiusSM:i,calc:o}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:n,borderRadius:i},uj(o(r).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},uj(r)),{maxWidth:o(r).mul(4).equal(),maxHeight:o(r).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},oI=(e,t,r)=>{const{skeletonButtonCls:n}=e;return{[`${r}${n}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${r}${n}-round`]:{borderRadius:t}}},aI=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},R_(e)),ICe=e=>{const{borderRadiusSM:t,skeletonButtonCls:r,controlHeight:n,controlHeightLG:i,controlHeightSM:o,gradientFromColor:a,calc:s}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:s(n).mul(2).equal(),minWidth:s(n).mul(2).equal()},aI(n,s))},oI(e,n,r)),{[`${r}-lg`]:Object.assign({},aI(i,s))}),oI(e,i,`${r}-lg`)),{[`${r}-sm`]:Object.assign({}
240,aI(o,s))}),oI(e,o,`${r}-sm`))},xCe=e=>{const{componentCls:t,skeletonAvatarCls:r,skeletonTitleCls:n,skeletonParagraphCls:i,skeletonButtonCls:o,skeletonInputCls:a,skeletonImageCls:s,controlHeight:l,controlHeightLG:c,controlHeightSM:d,gradientFromColor:u,padding:f,marginSM:h,borderRadius:v,titleHeight:y,blockRadius:g,paragraphLiHeight:m,controlHeightXS:S,paragraphMarginTop:C}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:f,verticalAlign:"top",[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:u},rp(l)),[`${r}-circle`]:{borderRadius:"50%"},[`${r}-lg`]:Object.assign({},rp(c)),[`${r}-sm`]:Object.assign({},rp(d))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[n]:{width:"100%",height:y,background:u,borderRadius:g,[`+ ${i}`]:{marginBlockStart:d}},[i]:{padding:0,"> li":{width:"100%",height:m,listStyle:"none",background:u,borderRadius:g,"+ li":{marginBlockStart:S}}},[`${i}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${n}, ${i} > li`]:{borderRadius:v}}},[`${t}-with-avatar ${t}-content`]:{[n]:{marginBlockStart:h,[`+ ${i}`]:{marginBlockStart:C}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},ICe(e)),ECe(e)),RCe(e)),PCe(e)),[`${t}${t}-block`]:{width:"100%",[o]:{width:"100%"},[a]:{width:"100%"}},[`${t}${t}-active`]:{[`
241        ${n},
242        ${i} > li,
243        ${r},
244        ${o},
245        ${a},
246        ${s}
247      `]:Object.assign({},_Ce(e))}}},OCe=e=>{const{colorFillContent:t,colorFill:r}=e,n=t,i=r;return{color:n,colorGradientEnd:i,gradientFromColor:n,gradientToColor:i,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},Yp=Nr("Skeleton",e=>{const{componentCls:t,calc:r}=e,n=sr(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:r(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 xCe(n)},OCe,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),TCe=e=>{const{prefixCls:t,className:r,rootClassName:n,active:i,shape:o="circle",size:a="default"}=e,{getPrefixCls:s}=p.useContext(Vt),l=s("skeleton",t),[c,d,u]=Yp(l),f=Dn(e,["prefixCls","className"]),h=ie(l,`${l}-element`,{[`${l}-active`]:i},r,n,d,u);return c(p.createElement("div",{className:h},p.createElement(E_,Object.assign({prefixCls:`${l}-avatar`,shape:o,size:a},f))))},ACe=TCe,MCe=e=>{const{prefixCls:t,className:r,rootClassName:n,active:i,block:o=!1,size:a="default"}=e,{getPrefixCls:s}=p.useContext(Vt),l=s("skeleton",t),[c,d,u]=Yp(l),f=Dn(e,["prefixCls"]),h=ie(l,`${l}-element`,{[`${l}-active`]:i,[`${l}-block`]:o},r,n,d,u);return c(p.createElement("div",{className:h},p.createElement(E_,Object.assign({prefixCls:`${l}-button`,size:a},f))))},$Ce=MCe,kCe="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",NCe=e=>{const{prefixCls:t,className:r,rootClassName:n,style:i,active:o}=e,{getPrefixCls:a}=p.useContext(Vt),s=a("skeleton",t),[l,c,d]=Yp(s),u=ie(s,`${s}-element`,{[`${s}-active`]:o},r,n,c,d);return l(p.createElement("div",{className:u},p.createElement("div",{className:ie(`${s}-image`,r),style:i},p.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},p.createElement("title",null,"Image placeholder"),p.createElement("path",{d:kCe,className:`${s}-image-path`})))))},DCe=NCe,LCe=e=>{const{prefixCls:t,className:r,rootClassName:n,active:i,block:o,size:a="default"}=e,{getPrefixCls:s}=p.useContext(Vt),l=s("skeleton",t),[c,d,u]=Yp(l),f=Dn(e,["prefixCls"]),h=ie(l,`${l}-element`,{[`${l}-active`]:i,[`${l}-block`]:o},r,n,d,u);return c(p.createElement("div",{className:h},p.createElement(E_,Object.assign({prefixCls:`${l}-input`,size:a},f))))},jCe=LCe,FCe=e=>{const{prefixCls:t,className:r,rootClassName:n,style:i,active:o,children:a}=e,{getPrefixCls:s}=p.useContext(Vt),l=s("skeleton",t),[c,d,u]=Yp(l),f=ie(l,`${l}-element`,{[`${l}-active`]:o},d,r,n,u);return c(p.createElement("div",{className:f},p.createElement("div",{className:ie(`${l}-image`,r),style:i},a)))},zCe=FCe,BCe=(e,t)=>{const{width:r,rows:n=2}=t;if(Array.isArray(r))return r[e];if(n-1===e)return r},HCe=e=>{const{prefixCls:t,className:r,style:n,rows:i=0}=e,o=Array.from({length:i}).map((a,s)=>p.createElement("li",{key:s,style:{width:BCe(s,e)}}));return p.createElement("ul",{className:ie(t,r),style:n},o)},VCe=HCe,UCe=({prefixCls:e,className:t,width:r,style:n})=>p.createElement("h3",{className:ie(e,t),style:Object.assign({width:r},n)}),WCe=UCe;function sI(e){return e&&typeof e=="object"?e:{}}function qCe(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function GCe(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function KCe(e,t){const r={};return(!e||!t)&&(r.width="61%"),!e&&t?r.rows=3:r.rows=2,r}const Xp=e=>{const{prefixCls:t,loading:r,className:n,rootClassName:i,style:o,children:a,avatar:s=!1,title:l=!0,paragraph:c=!0,active:d,roun
247d:u}=e,{getPrefixCls:f,direction:h,className:v,style:y}=Jn("skeleton"),g=f("skeleton",t),[m,S,C]=Yp(g);if(r||!("loading"in e)){const b=!!s,w=!!l,E=!!c;let _;if(b){const I=Object.assign(Object.assign({prefixCls:`${g}-avatar`},qCe(w,E)),sI(s));_=p.createElement("div",{className:`${g}-header`},p.createElement(E_,Object.assign({},I)))}let R;if(w||E){let I;if(w){const A=Object.assign(Object.assign({prefixCls:`${g}-title`},GCe(b,E)),sI(l));I=p.createElement(WCe,Object.assign({},A))}let O;if(E){const A=Object.assign(Object.assign({prefixCls:`${g}-paragraph`},KCe(b,w)),sI(c));O=p.createElement(VCe,Object.assign({},A))}R=p.createElement("div",{className:`${g}-content`},I,O)}const P=ie(g,{[`${g}-with-avatar`]:b,[`${g}-active`]:d,[`${g}-rtl`]:h==="rtl",[`${g}-round`]:u},v,n,i,S,C);return m(p.createElement("div",{className:P,style:Object.assign(Object.assign({},y),o)},_,R))}return a??null};Xp.Button=$Ce;Xp.Avatar=ACe;Xp.Input=jCe;Xp.Image=DCe;Xp.Node=zCe;const Cb=Xp;function dj(){}const YCe=p.createContext({add:dj,remove:dj});function XCe(e){const t=p.useContext(YCe),r=p.useRef(null);return lr(i=>{if(i){const o=e?i.querySelector(e):i;t.add(o),r.current=o}else t.remove(r.current)})}const QCe=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:r}=p.useContext(o0);return de.createElement(hn,Object.assign({onClick:r},e),t)},fj=QCe,JCe=()=>{const{confirmLoading:e,okButtonProps:t,okType:r,okTextLocale:n,onOk:i}=p.useContext(o0);return de.createElement(hn,Object.assign({},lJ(r),{loading:e,onClick:i},t),n)},pj=JCe;function AJ(e,t){return de.createElement("span",{className:`${e}-close-x`},t||de.createElement(Tl,{className:`${e}-close-icon`}))}const MJ=e=>{const{okText:t,okType:r="primary",cancelText:n,confirmLoading:i,onOk:o,onCancel:a,okButtonProps:s,cancelButtonProps:l,footer:c}=e,[d]=$o("Modal",pQ()),u=t||(d==null?void 0:d.okText),f=n||(d==null?void 0:d.cancelText),h={confirmLoading:i,okButtonProps:s,cancelButtonProps:l,okTextLocale:u,cancelTextLocale:f,okType:r,onOk:o,onCancel:a},v=de.useMemo(()=>h,Ge(Object.values(h)));let y;return typeof c=="function"||typeof c>"u"?(y=de.createElement(de.Fragment,null,de.createElement(fj,null),de.createElement(pj,null)),typeof c=="function"&&(y=c(y,{OkBtn:pj,CancelBtn:fj})),y=de.createElement(hJ,{value:v},y)):y=c,de.createElement(v4,{disabled:!1},y)},ZCe=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},ebe=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},tbe=(e,t)=>{const{prefixCls:r,componentCls:n,gridColumns:i}=e,o={};for(let a=i;a>=0;a--)a===0?(o[`${n}${t}-${a}`]={display:"none"},o[`${n}-push-${a}`]={insetInlineStart:"auto"},o[`${n}-pull-${a}`]={insetInlineEnd:"auto"},o[`${n}${t}-push-${a}`]={insetInlineStart:"auto"},o[`${n}${t}-pull-${a}`]={insetInlineEnd:"auto"},o[`${n}${t}-offset-${a}`]={marginInlineStart:0},o[`${n}${t}-order-${a}`]={order:0}):(o[`${n}${t}-${a}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${a/i*100}%`,maxWidth:`${a/i*100}%`}],o[`${n}${t}-push-${a}`]={insetInlineStart:`${a/i*100}%`},o[`${n}${t}-pull-${a}`]={insetInlineEnd:`${a/i*100}%`},o[`${n}${t}-offset-${a}`]={marginInlineStart:`${a/i*100}%`},o[`${n}${t}-order-${a}`]={order:a});return o[`${n}${t}-flex`]={flex:`var(--${r}${t}-flex)`},o},r$=(e,t)=>tbe(e,t),rbe=(e,t,r)=>({[`@media (min-width: ${fe(t)})`]:Object.assign({},r$(e,r))}),nbe=()=>({}),ibe=()=>({}),obe=Nr("Grid",ZCe,nbe),$J=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),abe=Nr("Grid",e=>{const t=sr(e,{gridColumns:24}),r=$J(t);return delete r.xs,[ebe(t),r$(t,""),r$(t,"-xs"),Object.keys(r).map(n=>rbe(t,r[n],`-${n}`)).reduce((n,i)=>Object.assign(Object.assign({},n),i),{})]},ibe);function hj(e){return{position:e,inset:0}}const kJ=e=>{const{componentCls:t,antCls:r}=e;return[{[`${t}-root`]:{[`${t}${r}-zoom-enter, ${t}${r}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${r}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},hj("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},hj("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:P4(e)}]},sbe=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:`${fe(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},Kr(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${fe(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:fe(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},Mc(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${fe(e.borderRadiusLG)} ${fe(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}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${fe(e.margin)} auto`}},[`${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,
248          ${t}-body,
249          ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},lbe=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},cbe=e=>{const{componentCls:t}=e,r=$J(e),n=Object.assign({},r);delete n.xs;const i=`--${t.replace(".","")}-`,o=Object.keys(n).map(a=>
249({[`@media (min-width: ${fe(n[a])})`]:{width:`var(${i}${a}-width)`}}));return{[`${t}-root`]:{[t]:[].concat(Ge(Object.keys(r).map((a,s)=>{const l=Object.keys(r)[s-1];return l?{[`${i}${a}-width`]:`var(${i}${l}-width)`}:null})),[{width:`var(${i}xs-width)`}],Ge(o))}}},NJ=e=>{const t=e.padding,r=e.fontSizeHeading5,n=e.lineHeightHeading5;return sr(e,{modalHeaderHeight:e.calc(e.calc(n).mul(r).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()})},DJ=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${fe(e.paddingMD)} ${fe(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${fe(e.padding)} ${fe(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${fe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${fe(e.paddingXS)} ${fe(e.padding)}`:0,footerBorderTop:e.wireframe?`${fe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${fe(e.borderRadiusLG)} ${fe(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${fe(e.padding*2)} ${fe(e.padding*2)} ${fe(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),LJ=Nr("Modal",e=>{const t=NJ(e);return[sbe(t),lbe(t),kJ(t),g_(t,"zoom"),cbe(t)]},DJ,{unitless:{titleLineHeight:!0}});var ube=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let n$;const dbe=e=>{n$={x:e.pageX,y:e.pageY},setTimeout(()=>{n$=null},100)};CCe()&&document.documentElement.addEventListener("click",dbe,!0);const fbe=e=>{const{prefixCls:t,className:r,rootClassName:n,open:i,wrapClassName:o,centered:a,getContainer:s,focusTriggerAfterClose:l=!0,style:c,visible:d,width:u=520,footer:f,classNames:h,styles:v,children:y,loading:g,confirmLoading:m,zIndex:S,mousePosition:C,onOk:b,onCancel:w,destroyOnHidden:E,destroyOnClose:_,panelRef:R=null}=e,P=ube(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading","confirmLoading","zIndex","mousePosition","onOk","onCancel","destroyOnHidden","destroyOnClose","panelRef"]),{getPopupContainer:I,getPrefixCls:O,direction:A,modal:x}=p.useContext(Vt),T=ne=>{m||w==null||w(ne)},D=ne=>{b==null||b(ne)},k=O("modal",t),j=O(),N=fi(k),[L,M,$]=LJ(k,N),F=ie(o,{[`${k}-centered`]:a??(x==null?void 0:x.centered),[`${k}-wrap-rtl`]:A==="rtl"}),z=f!==null&&!g?p.createElement(MJ,Object.assign({},e,{onOk:D,onCancel:T})):null,[H,U,V,W]=OJ(Sb(e),Sb(x),{closable:!0,closeIcon:p.createElement(Tl,{className:`${k}-close-icon`}),closeIconRender:ne=>AJ(k,ne)}),K=XCe(`.${k}-content`),Z=ui(R,K),[q,Y]=Od("Modal",S),[G,re]=p.useMemo(()=>u&&typeof u=="object"?[void 0,u]:[u,void 0],[u]),ee=p.useMemo(()=>{const ne={};return re&&Object.keys(re).forEach(te=>{const pe=re[te];pe!==void 0&&(ne[`--${k}-${te}-width`]=typeof pe=="number"?`${pe}px`:pe)}),ne},[re]);return L(p.createElement(wl,{form:!0,space:!0},p.createElement(b4.Provider,{value:Y},p.createElement(N4,Object.assign({width:G},P,{zIndex:q,getContainer:s===void 0?I:s,prefixCls:k,rootClassName:ie(M,n,$,N),footer:z,visible:i??d,mousePosition:C??n$,onClose:T,closable:H&&Object.assign({disabled:V,closeIcon:U},W),closeIcon:U,focusTriggerAfterClose:l,transitionName:Na(j,"zoom",e.transitionName),maskTransitionName:Na(j,"fade",e.maskTransitionName),className:ie(M,r,x==null?void 0:x.className),style:Object.assign(Object.assign(Object.assign({},x==null?void 0:x.style),c),ee),classNames:Object.assign(Object.assign(Object.assign({},x==null?void 0:x.classNames),h),{wrapper:ie(F,h==null?void 0:h.wrapper)}),styles:Object.assign(Object.assign({},x==null?void 0:x.styles),v),panelRef:Z,destroyOnClose:E??_}),g?p.createElement(Cb,{active:!0,title:!1,paragraph:{rows:4},className:`${k}-body-skeleton`}):y))))},jJ=fbe,pbe=e=>{const{componentCls:t,titleFontSize:r,titleLineHeight:n,modalConfirmIconSize:i,fontSize:o,lineHeight:a,modalTitleHeight:s,fontHeight:l,confirmBodyPadding:c}=e,d=`${t}-confirm`;return{[d]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${d}-body-wrapper`]:Object.assign({},Vc()),[`&${t} ${t}-body`]:{padding:c},[`${d}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:i,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(l).sub(i).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(i).equal()).div(2).equal()}},[`${d}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${fe(e.marginSM)})`},[`${e.iconCls} + ${d}-paragraph`]:{maxWidth:`calc(100% - ${fe(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${d}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:r,lineHeight:n},[`${d}-content`]:{color:e.colorText,fontSize:o,lineHeight:a},[`${d}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${d}-error ${d}-body > ${e.iconCls}`]:{color:e.colorError},[`${d}-warning ${d}-body > ${e.iconCls},
250        ${d}-confirm ${d}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${d}-info ${d}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${d}-success ${d}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},hbe=Wp(["Modal","confirm"],e=>{const t=NJ(e);return pbe(t)},DJ,{order:-1e3});var vbe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function FJ(e){const{prefixCls:t,icon:r,okText:n,cancelText:i,confirmPrefixCls:o,type:a,okCancel:s,footer:l,locale:c}
250=e,d=vbe(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let u=r;if(!r&&r!==null)switch(a){case"info":u=p.createElement(S4,null);break;case"success":u=p.createElement(Gp,null);break;case"error":u=p.createElement(Uc,null);break;default:u=p.createElement(t0,null)}const f=s??a==="confirm",h=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[v]=$o("Modal"),y=c||v,g=n||(f?y==null?void 0:y.okText:y==null?void 0:y.justOkText),m=i||(y==null?void 0:y.cancelText),S=Object.assign({autoFocusButton:h,cancelTextLocale:m,okTextLocale:g,mergedOkCancel:f},d),C=p.useMemo(()=>S,Ge(Object.values(S))),b=p.createElement(p.Fragment,null,p.createElement(B5,null),p.createElement(H5,null)),w=e.title!==void 0&&e.title!==null,E=`${o}-body`;return p.createElement("div",{className:`${o}-body-wrapper`},p.createElement("div",{className:ie(E,{[`${E}-has-title`]:w})},u,p.createElement("div",{className:`${o}-paragraph`},w&&p.createElement("span",{className:`${o}-title`},e.title),p.createElement("div",{className:`${o}-content`},e.content))),l===void 0||typeof l=="function"?p.createElement(hJ,{value:C},p.createElement("div",{className:`${o}-btns`},typeof l=="function"?l(b,{OkBtn:H5,CancelBtn:B5}):b)):l,p.createElement(hbe,{prefixCls:t}))}const gbe=e=>{const{close:t,zIndex:r,maskStyle:n,direction:i,prefixCls:o,wrapClassName:a,rootPrefixCls:s,bodyStyle:l,closable:c=!1,onConfirm:d,styles:u}=e,f=`${o}-confirm`,h=e.width||416,v=e.style||{},y=e.mask===void 0?!0:e.mask,g=e.maskClosable===void 0?!1:e.maskClosable,m=ie(f,`${f}-${e.type}`,{[`${f}-rtl`]:i==="rtl"},e.className),[,S]=ko(),C=p.useMemo(()=>r!==void 0?r:S.zIndexPopupBase+QQ,[r,S]);return p.createElement(jJ,Object.assign({},e,{className:m,wrapClassName:ie({[`${f}-centered`]:!!e.centered},a),onCancel:()=>{t==null||t({triggerCancel:!0}),d==null||d(!1)},title:"",footer:null,transitionName:Na(s||"","zoom",e.transitionName),maskTransitionName:Na(s||"","fade",e.maskTransitionName),mask:y,maskClosable:g,style:v,styles:Object.assign({body:l,mask:n},u),width:h,zIndex:C,closable:c}),p.createElement(FJ,Object.assign({},e,{confirmPrefixCls:f})))},zJ=e=>{const{rootPrefixCls:t,iconPrefixCls:r,direction:n,theme:i}=e;return p.createElement(Ii,{prefixCls:t,iconPrefixCls:r,direction:n,theme:i},p.createElement(gbe,Object.assign({},e)))},mbe=[],Wu=mbe;let BJ="";function HJ(){return BJ}const ybe=e=>{var t,r;const{prefixCls:n,getContainer:i,direction:o}=e,a=pQ(),s=p.useContext(Vt),l=HJ()||s.getPrefixCls(),c=n||`${l}-modal`;let d=i;return d===!1&&(d=void 0),de.createElement(zJ,Object.assign({},e,{rootPrefixCls:l,prefixCls:c,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:o??s.direction,locale:(r=(t=s.locale)===null||t===void 0?void 0:t.Modal)!==null&&r!==void 0?r:a,getContainer:d}))};function s0(e){const t=BQ(),r=document.createDocumentFragment();let n=Object.assign(Object.assign({},e),{close:l,open:!0}),i,o;function a(...d){var u;if(d.some(v=>v==null?void 0:v.triggerCancel)){var h;(u=e.onCancel)===null||u===void 0||(h=u).call.apply(h,[e,()=>{}].concat(Ge(d.slice(1))))}for(let v=0;v<Wu.length;v++)if(Wu[v]===l){Wu.splice(v,1);break}o()}function s(d){clearTimeout(i),i=setTimeout(()=>{const u=t.getPrefixCls(void 0,HJ()),f=t.getIconPrefixCls(),h=t.getTheme(),v=de.createElement(ybe,Object.assign({},d));o=E4()(de.createElement(Ii,{prefixCls:u,iconPrefixCls:f,theme:h},t.holderRender?t.holderRender(v):v),r)})}function l(...d){n=Object.assign(Object.assign({},n),{open:!1,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),a.apply(this,d)}}),n.visible&&delete n.visible,s(n)}function c(d){typeof d=="function"?n=d(n):n=Object.assign(Object.assign({},n),d),s(n)}return s(n),Wu.push(l),{destroy:l,update:c}}function VJ(e){return Object.assign(Object.assign({},e),{type:"warning"})}function UJ(e){return Object.assign(Object.assign({},e),{type:"info"})}function WJ(e){return Object.assign(Object.assign({},e),{type:"success"})}function qJ(e){return Object.assign(Object.assign({},e),{type:"error"})}function GJ(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function Sbe({rootPrefixCls:e}){BJ=e}var Cbe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const bbe=(e,t)=>
250{var r,{afterClose:n,config:i}=e,o=Cbe(e,["afterClose","config"]);const[a,s]=p.useState(!0),[l,c]=p.useState(i),{direction:d,getPrefixCls:u}=p.useContext(Vt),f=u("modal"),h=u(),v=()=>{var S;n(),(S=l.afterClose)===null||S===void 0||S.call(l)},y=(...S)=>{var C;if(s(!1),S.some(E=>E==null?void 0:E.triggerCancel)){var w;(C=l.onCancel)===null||C===void 0||(w=C).call.apply(w,[l,()=>{}].concat(Ge(S.slice(1))))}};p.useImperativeHandle(t,()=>({destroy:y,update:S=>{c(C=>{const b=typeof S=="function"?S(C):S;return Object.assign(Object.assign({},C),b)})}}));const g=(r=l.okCancel)!==null&&r!==void 0?r:l.type==="confirm",[m]=$o("Modal",Fs.Modal);return p.createElement(zJ,Object.assign({prefixCls:f,rootPrefixCls:h},l,{close:y,open:a,afterClose:v,okText:l.okText||(g?m==null?void 0:m.okText:m==null?void 0:m.justOkText),direction:l.direction||d,cancelText:l.cancelText||(m==null?void 0:m.cancelText)},o))},wbe=p.forwardRef(bbe);let vj=0;const _be=p.memo(p.forwardRef((e,t)=>{const[r,n]=i0e();return p.useImperativeHandle(t,()=>({patchElement:n}),[]),p.createElement(p.Fragment,null,r)}));function Ebe(){const e=p.useRef(null),[t,r]=p.useState([]);p.useEffect(()=>{t.length&&(Ge(t).forEach(a=>{a()}),r([]))},[t]);const n=p.useCallback(o=>function(s){var l;vj+=1;const c=p.createRef();let d;const u=new Promise(g=>{d=g});let f=!1,h;const v=p.createElement(wbe,{key:`modal-${vj}`,config:o(s),ref:c,afterClose:()=>{h==null||h()},isSilent:()=>f,onConfirm:g=>{d(g)}});return h=(l=e.current)===null||l===void 0?void 0:l.patchElement(v),h&&Wu.push(h),{destroy:()=>{function g(){var m;(m=c.current)===null||m===void 0||m.destroy()}c.current?g():r(m=>[].concat(Ge(m),[g]))},update:g=>{function m(){var S;(S=c.current)===null||S===void 0||S.update(g)}c.current?m():r(S=>[].concat(Ge(S),[m]))},then:g=>(f=!0,u.then(g))}},[]);return[p.useMemo(()=>({info:n(UJ),success:n(WJ),error:n(qJ),warning:n(VJ),confirm:n(GJ)}),[]),p.createElement(_be,{key:"modal-holder",ref:e})]}const Rbe=de.createContext({});function KJ(e){return t=>p.createElement(Ii,{theme:{token:{motion:!1,zIndexPopupBase:0}}},p.createElement(e,Object.assign({},t)))}const Pbe=(e,t,r,n,i)=>KJ(a=>{const{prefixCls:s,style:l}=a,c=p.useRef(null),[d,u]=p.useState(0),[f,h]=p.useState(0),[v,y]=Or(!1,{value:a.open}),{getPrefixCls:g}=p.useContext(Vt),m=g(n||"select",s);p.useEffect(()=>{if(y(!0),typeof ResizeObserver<"u"){const b=new ResizeObserver(E=>{const _=E[0].target;u(_.offsetHeight+8),h(_.offsetWidth)}),w=setInterval(()=>{var E;const _=i?`.${i(m)}`:`.${m}-dropdown`,R=(E=c.current)===null||E===void 0?void 0:E.querySelector(_);R&&(clearInterval(w),b.observe(R))},10);return()=>{clearInterval(w),b.disconnect()}}},[]);let S=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},l),{margin:0}),open:v,visible:v,getPopupContainer:()=>c.current});r&&(S=r(S)),t&&Object.assign(S,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const C={paddingBottom:d,position:"relative",minWidth:f};return p.createElement("div",{ref:c,style:C},p.createElement(e,Object.assign({},S)))}),z4=Pbe,P_=function(){if(typeof navigator>"u"||typeof window>"u")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(e==null?void 0:e.substr(0,4))};var I_=function(t){var r=t.className,n=t.customizeIcon,i=t.customizeIconProps,o=t.children,a=t.onMouseDown,s=t.onClick,l=typeof n=="function"?n(i):n;return p.createElement("span",{className:r,onMouseDown:function(d){d.preventDefault(),a==null||a(d)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},l!==void 0?l:p.createElement("span",{className:ie(r.split(/\s+/).map(function(c){return"".concat(c,"-icon")}))},o))},Ibe=function(t,r,n,i,o){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,s=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,c=de.useMemo(function(){if(Pt(i)==="object")return i.clearIcon;if(o)return o},[i,o]),d=de.useMemo(function(){return!!(!a&&i&&(n.length||s)&&!(l==="combobox"&&s===""))},[i,a,n.length,s,l]);return{allowClear:d,clearIcon:de.createElement(I_,{className:"".concat(t,"-clear"),onMouseDown:r,customizeIcon:c},"×")}},YJ=p.createContext(null);function xbe(){return p.useContext(YJ)}function Obe(){var e=arguments.length>
2500&&arguments[0]!==void 0?arguments[0]:10,t=p.useState(!1),r=oe(t,2),n=r[0],i=r[1],o=p.useRef(null),a=function(){window.clearTimeout(o.current)};p.useEffect(function(){return a},[]);var s=function(c,d){a(),o.current=window.setTimeout(function(){i(c),d&&d()},e)};return[n,s,a]}function XJ(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=p.useRef(null),r=p.useRef(null);p.useEffect(function(){return function(){window.clearTimeout(r.current)}},[]);function n(i){(i||t.current===null)&&(t.current=i),window.clearTimeout(r.current),r.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},n]}function Tbe(e,t,r,n){var i=p.useRef(null);i.current={open:t,triggerOpen:r,customizedTrigger:n},p.useEffect(function(){function o(a){var s;if(!((s=i.current)!==null&&s!==void 0&&s.customizedTrigger)){var l=a.target;l.shadowRoot&&a.composed&&(l=a.composedPath()[0]||l),i.current.open&&e().filter(function(c){return c}).every(function(c){return!c.contains(l)&&c!==l})&&i.current.triggerOpen(!1)}}return window.addEventListener("mousedown",o),function(){return window.removeEventListener("mousedown",o)}},[])}function Abe(e){return e&&![Ue.ESC,Ue.SHIFT,Ue.BACKSPACE,Ue.TAB,Ue.WIN_KEY,Ue.ALT,Ue.META,Ue.WIN_KEY_RIGHT,Ue.CTRL,Ue.SEMICOLON,Ue.EQUALS,Ue.CAPS_LOCK,Ue.CONTEXT_MENU,Ue.F1,Ue.F2,Ue.F3,Ue.F4,Ue.F5,Ue.F6,Ue.F7,Ue.F8,Ue.F9,Ue.F10,Ue.F11,Ue.F12].includes(e)}var Mbe=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],nf=void 0;function $be(e,t){var r=e.prefixCls,n=e.invalidate,i=e.item,o=e.renderItem,a=e.responsive,s=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,d=e.className,u=e.style,f=e.children,h=e.display,v=e.order,y=e.component,g=y===void 0?"div":y,m=Nt(e,Mbe),S=a&&!h;function C(R){l(c,R)}p.useEffect(function(){return function(){C(null)}},[]);var b=o&&i!==nf?o(i,{index:v}):f,w;n||(w={opacity:S?0:1,height:S?0:nf,overflowY:S?"hidden":nf,order:a?v:nf,pointerEvents:S?"none":nf,position:S?"absolute":nf});var E={};S&&(E["aria-hidden"]=!0);var _=p.createElement(g,$e({className:ie(!n&&r,d),style:Q(Q({},w),u)},E,m,{ref:t}),b);return a&&(_=p.createElement(ao,{onResize:function(P){var I=P.offsetWidth;C(I)},disabled:s},_)),_}var hm=p.forwardRef($be);hm.displayName="Item";function kbe(e){if(typeof MessageChannel>"u")Gt(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function Nbe(){var e=p.useRef(null),t=function(n){e.current||(e.current=[],kbe(function(){Qo.unstable_batchedUpdates(function(){e.current.forEach(function(i){i()}),e.current=null})})),e.current.push(n)};return t}function kh(e,t){var r=p.useState(t),n=oe(r,2),i=n[0],o=n[1],a=lr(function(s){e(function(){o(s)})});return[i,a]}var bb=de.createContext(null),Dbe=["component"],Lbe=["className"],jbe=["className"],Fbe=function(t,r){var n=p.useContext(bb);if(!n){var i=t.component,o=i===void 0?"div":i,a=Nt(t,Dbe);return p.createElement(o,$e({},a,{ref:r}))}var s=n.className,l=Nt(n,Lbe),c=t.className,d=Nt(t,jbe);return p.createElement(bb.Provider,{value:null},p.createElement(hm,$e({ref:r,className:ie(s,c)},l,d)))},QJ=p.forwardRef(Fbe);QJ.displayName="RawItem";var zbe=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],JJ="responsive",ZJ="invalidate";function Bbe(e){return"+ ".concat(e.length," ...")}function Hbe(e,t){var r=e.prefixCls,n=r===void 0?"rc-overflow":r,i=e.data,o=i===void 0?[]:i,a=e.renderItem,s=e.renderRawItem,l=e.itemKey,c=e.itemWidth,d=c===void 0?10:c,u=e.ssr,f=e.style,h=e.className,v=e.maxCount,y=e.renderRest,g=e.renderRawRest,m=e.suffix,S=e.component,C=S===void 0?"div":S,b=e.itemComponent,w=e.onVisibleChange,E=Nt(e,zbe),_=u==="full",R=Nbe(),P=kh(R,null),I=oe(P,2),O=I[0],A=I[1],x=O||0,T=kh(R,new Map),D=oe(T,2),k=D[0],j=D[1],N=kh(R,0),L=oe(N,2),M=L[0],$=L[1],F=kh(R,0),z=oe(F,2),H=z[0],U=z[1],V=kh(R,0),W=oe(V,2),K=W[0],Z=W[1],q=p.useState(null),Y=oe(q,2),G=Y[0],re=Y[1],ee=p.useState(null),ne=oe(ee,2),te=ne[0],pe=ne[1],le=p.useMemo(function(){return te===null&&_?Number.MAX_SAFE_INTEGER:te||0}
250,[te,O]),ye=p.useState(!1),Se=oe(ye,2),_e=Se[0],De=Se[1],be="".concat(n,"-item"),se=Math.max(M,H),Pe=v===JJ,Te=o.length&&Pe,ze=v===ZJ,ke=Te||typeof v=="number"&&o.length>v,Me=p.useMemo(function(){var mt=o;return Te?O===null&&_?mt=o:mt=o.slice(0,Math.min(o.length,x/d)):typeof v=="number"&&(mt=o.slice(0,v)),mt},[o,d,O,v,Te]),qe=p.useMemo(function(){return Te?o.slice(le+1):o.slice(Me.length)},[o,Me,Te,le]),Le=p.useCallback(function(mt,St){var pt;return typeof l=="function"?l(mt):(pt=l&&(mt==null?void 0:mt[l]))!==null&&pt!==void 0?pt:St},[l]),xe=p.useCallback(a||function(mt){return mt},[a]);function je(mt,St,pt){te===mt&&(St===void 0||St===G)||(pe(mt),pt||(De(mt<o.length-1),w==null||w(mt)),St!==void 0&&re(St))}function Ee(mt,St){A(St.clientWidth)}function Re(mt,St){j(function(pt){var Rt=new Map(pt);return St===null?Rt.delete(mt):Rt.set(mt,St),Rt})}function me(mt,St){U(St),$(H)}function ce(mt,St){Z(St)}function Ae(mt){return k.get(Le(Me[mt],mt))}nr(function(){if(x&&typeof se=="number"&&Me){var mt=K,St=Me.length,pt=St-1;if(!St){je(0,null);return}for(var Rt=0;Rt<St;Rt+=1){var ae=Ae(Rt);if(_&&(ae=ae||0),ae===void 0){je(Rt-1,void 0,!0);break}if(mt+=ae,pt===0&&mt<=x||Rt===pt-1&&mt+Ae(pt)<=x){je(pt,null);break}else if(mt+se>x){je(Rt-1,mt-ae-K+H);break}}m&&Ae(0)+K>x&&re(null)}},[x,k,H,K,Le,Me]);var We=_e&&!!qe.length,lt={};G!==null&&Te&&(lt={position:"absolute",left:G,top:0});var yt={prefixCls:be,responsive:Te,component:b,invalidate:ze},nt=s?function(mt,St){var pt=Le(mt,St);return p.createElement(bb.Provider,{key:pt,value:Q(Q({},yt),{},{order:St,item:mt,itemKey:pt,registerSize:Re,display:St<=le})},s(mt,St))}:function(mt,St){var pt=Le(mt,St);return p.createElement(hm,$e({},yt,{order:St,key:pt,item:mt,renderItem:xe,itemKey:pt,registerSize:Re,display:St<=le}))},it={order:We?le:Number.MAX_SAFE_INTEGER,className:"".concat(be,"-rest"),registerSize:me,display:We},gt=y||Bbe,Ye=g?p.createElement(bb.Provider,{value:Q(Q({},yt),it)},g(qe)):p.createElement(hm,$e({},yt,it),typeof gt=="function"?gt(qe):gt),vt=p.createElement(C,$e({className:ie(!ze&&n,h),style:f,ref:t},E),Me.map(nt),ke?Ye:null,m&&p.createElement(hm,$e({},yt,{responsive:Pe,responsiveDisabled:!Te,order:le,className:"".concat(be,"-suffix"),registerSize:ce,display:!0,style:lt}),m));return Pe?p.createElement(ao,{onResize:Ee,disabled:!Te},vt):vt}var ts=p.forwardRef(Hbe);ts.displayName="Overflow";ts.Item=QJ;ts.RESPONSIVE=JJ;ts.INVALIDATE=ZJ;function Vbe(e,t,r){var n=Q(Q({},e),r?t:{});return Object.keys(t).forEach(function(i){var o=t[i];typeof o=="function"&&(n[i]=function(){for(var a,s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return o.apply(void 0,l),(a=e[i])===null||a===void 0?void 0:a.call.apply(a,[e].concat(l))})}),n}var Ube=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],Wbe=function(t,r){var n=t.prefixCls,i=t.id,o=t.inputElement,a=t.autoFocus,s=t.autoComplete,l=t.editable,c=t.activeDescendantId,d=t.value,u=t.open,f=t.attrs,h=Nt(t,Ube),v=o||p.createElement("input",null),y=v,g=y.ref,m=y.props;return"maxLength"in v.props,v=p.cloneElement(v,Q(Q(Q({type:"search"},Vbe(h,m,!0)),{},{id:i,ref:ui(r,g),autoComplete:s||"off",autoFocus:a,className:ie("".concat(n,"-selection-search-input"),m==null?void 0:m.className),role:"combobox","aria-expanded":u||!1,"aria-haspopup":"listbox","aria-owns":"".concat(i,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(i,"_list"),"aria-activedescendant":u?c:void 0},f),{},{value:l?d:"",readOnly:!l,unselectable:l?null:"on",style:Q(Q({},m.style),{},{opacity:l?null:0})})),v},eZ=p.forwardRef(Wbe);function tZ(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var qbe=typeof window<"u"&&window.document&&window.document.documentElement,Gbe=qbe;function Kbe(e){return e!=null}function Ybe(e){return!e&&e!==0}function gj(e){return["string","number"].includes(Pt(e))}function rZ(e){var t=void 0;return e&&(gj(e.title)?t=e.title.toString():gj(e.label)&&(t=e.label.toString())),t}function Xbe(e,t){Gbe?p.useLayoutEffect(e,t):p.useEffect(e,t)}function Qbe(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var mj=function(t){t.preventDefault(),t.stopPropagation()},Jbe=function(t){var r=t.id,n=t.prefixCls,i=t.values,o=t.open,a=t.searchValue,s=t.autoClearSearchValue,l=t.inputRef,c=t.placeholder,d=t.disabled,u=t.mode,f=t.showSearch,h=t.autoF
250ocus,v=t.autoComplete,y=t.activeDescendantId,g=t.tabIndex,m=t.removeIcon,S=t.maxTagCount,C=t.maxTagTextLength,b=t.maxTagPlaceholder,w=b===void 0?function(ee){return"+ ".concat(ee.length," ...")}:b,E=t.tagRender,_=t.onToggleOpen,R=t.onRemove,P=t.onInputChange,I=t.onInputPaste,O=t.onInputKeyDown,A=t.onInputMouseDown,x=t.onInputCompositionStart,T=t.onInputCompositionEnd,D=t.onInputBlur,k=p.useRef(null),j=p.useState(0),N=oe(j,2),L=N[0],M=N[1],$=p.useState(!1),F=oe($,2),z=F[0],H=F[1],U="".concat(n,"-selection"),V=o||u==="multiple"&&s===!1||u==="tags"?a:"",W=u==="tags"||u==="multiple"&&s===!1||f&&(o||z);Xbe(function(){M(k.current.scrollWidth)},[V]);var K=function(ne,te,pe,le,ye){return p.createElement("span",{title:rZ(ne),className:ie("".concat(U,"-item"),J({},"".concat(U,"-item-disabled"),pe))},p.createElement("span",{className:"".concat(U,"-item-content")},te),le&&p.createElement(I_,{className:"".concat(U,"-item-remove"),onMouseDown:mj,onClick:ye,customizeIcon:m},"×"))},Z=function(ne,te,pe,le,ye,Se){var _e=function(be){mj(be),_(!o)};return p.createElement("span",{onMouseDown:_e},E({label:te,value:ne,disabled:pe,closable:le,onClose:ye,isMaxTag:!!Se}))},q=function(ne){var te=ne.disabled,pe=ne.label,le=ne.value,ye=!d&&!te,Se=pe;
250if(typeof C=="number"&&(typeof pe=="string"||typeof pe=="number")){var _e=String(Se);_e.length>C&&(Se="".concat(_e.slice(0,C),"..."))}var De=function(se){se&&se.stopPropagation(),R(ne)};return typeof E=="function"?Z(le,Se,te,ye,De):K(ne,Se,te,ye,De)},Y=function(ne){if(!i.length)return null;var te=typeof w=="function"?w(ne):w;return typeof E=="function"?Z(void 0,te,!1,!1,void 0,!0):K({title:te},te,!1)},G=p.createElement("div",{className:"".concat(U,"-search"),style:{width:L},onFocus:function(){H(!0)},onBlur:function(){H(!1)}},p.createElement(eZ,{ref:l,open:o,prefixCls:n,id:r,inputElement:null,disabled:d,autoFocus:h,autoComplete:v,editable:W,activeDescendantId:y,value:V,onKeyDown:O,onMouseDown:A,onChange:P,onPaste:I,onCompositionStart:x,onCompositionEnd:T,onBlur:D,tabIndex:g,attrs:lo(t,!0)}),p.createElement("span",{ref:k,className:"".concat(U,"-search-mirror"),"aria-hidden":!0},V," ")),re=p.createElement(ts,{prefixCls:"".concat(U,"-overflow"),data:i,renderItem:q,renderRest:Y,suffix:G,itemKey:Qbe,maxCount:S});return p.createElement("span",{className:"".concat(U,"-wrap")},re,!i.length&&!V&&p.createElement("span",{className:"".concat(U,"-placeholder")},c))},Zbe=function(t){var r=t.inputElement,n=t.prefixCls,i=t.id,o=t.inputRef,a=t.disabled,s=t.autoFocus,l=t.autoComplete,c=t.activeDescendantId,d=t.mode,u=t.open,f=t.values,h=t.placeholder,v=t.tabIndex,y=t.showSearch,g=t.searchValue,m=t.activeValue,S=t.maxLength,C=t.onInputKeyDown,b=t.onInputMouseDown,w=t.onInputChange,E=t.onInputPaste,_=t.onInputCompositionStart,R=t.onInputCompositionEnd,P=t.onInputBlur,I=t.title,O=p.useState(!1),A=oe(O,2),x=A[0],T=A[1],D=d==="combobox",k=D||y,j=f[0],N=g||"";D&&m&&!x&&(N=m),p.useEffect(function(){D&&T(!1)},[D,m]);var L=d!=="combobox"&&!u&&!y?!1:!!N,M=I===void 0?rZ(j):I,$=p.useMemo(function(){return j?null:p.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:L?{visibility:"hidden"}:void 0},h)},[j,L,h,n]);return p.createElement("span",{className:"".concat(n,"-selection-wrap")},p.createElement("span",{className:"".concat(n,"-selection-search")},p.createElement(eZ,{ref:o,prefixCls:n,id:i,open:u,inputElement:r,disabled:a,autoFocus:s,autoComplete:l,editable:k,activeDescendantId:c,value:N,onKeyDown:C,onMouseDown:b,onChange:function(z){T(!0),w(z)},onPaste:E,onCompositionStart:_,onCompositionEnd:R,onBlur:P,tabIndex:v,attrs:lo(t,!0),maxLength:D?S:void 0})),!D&&j?p.createElement("span",{className:"".concat(n,"-selection-item"),title:M,style:L?{visibility:"hidden"}:void 0},j.label):null,$)},ewe=function(t,r){var n=p.useRef(null),i=p.useRef(!1),o=t.prefixCls,a=t.open,s=t.mode,l=t.showSearch,c=t.tokenWithEnter,d=t.disabled,u=t.prefix,f=t.autoClearSearchValue,h=t.onSearch,v=t.onSearchSubmit,y=t.onToggleOpen,g=t.onInputKeyDown,m=t.onInputBlur,S=t.domRef;p.useImperativeHandle(r,function(){return{focus:function(M){n.current.focus(M)},blur:function(){n.current.blur()}}});var C=XJ(0),b=oe(C,2),w=b[0],E=b[1],_=function(M){var $=M.which,F=n.current instanceof HTMLTextAreaElement;!F&&a&&($===Ue.UP||$===Ue.DOWN)&&M.preventDefault(),g&&g(M),$===Ue.ENTER&&s==="tags"&&!i.current&&!a&&(v==null||v(M.target.value)),!(F&&!a&&~[Ue.UP,Ue.DOWN,Ue.LEFT,Ue.RIGHT].indexOf($))&&Abe($)&&y(!0)},R=function(){E(!0)},P=p.useRef(null),I=function(M){h(M,!0,i.current)!==!1&&y(!0)},O=function(){i.current=!0},A=function(M){i.current=!1,s!=="combobox"&&I(M.target.value)},x=function(M){var $=M.target.value;if(c&&P.current&&/[\r\n]/.test(P.current)){var F=P.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");$=$.replace(F,P.current)}P.current=null,I($)},T=function(M){var $=M.clipboardData,F=$==null?void 0:$.getData("text");P.current=F||""},D=function(M){var $=M.target;if($!==n.current){var F=document.body.style.msTouchAction!==void 0;F?setTimeout(function(){n.current.focus()}):n.current.focus()}},k=function(M){var $=w();M.target!==n.current&&!$&&!(s==="combobox"&&d)&&M.preventDefault(),(s!=="combobox"&&(!l||!$)||!a)&&(a&&f!==!1&&h("",!0,!1),y())},j={inputRef:n,onInputKeyDown:_,onInputMouseDown:R,onInputChange:x,onInputPaste:T,onInputCompositionStart:O,onInputCompositionEnd:A,onInputBlur:m},N=s==="multiple"||s==="tags"?p.createElement(Jbe,$e({},t,j)):p.createElement(Zbe,$e({},t,j));return p.createElement("div",{ref:S,className:"".concat(o,"-selector"),onClick:D,onMouseDown:k},u&&p.createElement("div",{className:"".concat(o,"-prefix")},u),N)},twe=p.forwardRef(ewe);function rwe(e){var t=e.prefixCls,r=e.align,n=e.arrow,i=e.arrowPos,o=n||{}
250,a=o.className,s=o.content,l=i.x,c=l===void 0?0:l,d=i.y,u=d===void 0?0:d,f=p.useRef();if(!r||!r.points)return null;var h={position:"absolute"};if(r.autoArrow!==!1){var v=r.points[0],y=r.points[1],g=v[0],m=v[1],S=y[0],C=y[1];g===S||!["t","b"].includes(g)?h.top=u:g==="t"?h.top=0:h.bottom=0,m===C||!["l","r"].includes(m)?h.left=c:m==="l"?h.left=0:h.right=0}return p.createElement("div",{ref:f,className:ie("".concat(t,"-arrow"),a),style:h},s)}function nwe(e){var t=e.prefixCls,r=e.open,n=e.zIndex,i=e.mask,o=e.motion;return i?p.createElement(No,$e({},o,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(a){var s=a.className;return p.createElement("div",{style:{zIndex:n},className:ie("".concat(t,"-mask"),s)})}):null}var iwe=p.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),owe=p.forwardRef(function(e,t){var r=e.popup,n=e.className,i=e.prefixCls,o=e.style,a=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,d=e.fresh,u=e.onClick,f=e.mask,h=e.arrow,v=e.arrowPos,y=e.align,g=e.motion,m=e.maskMotion,S=e.forceRender,C=e.getPopupContainer,b=e.autoDestroy,w=e.portal,E=e.zIndex,_=e.onMouseEnter,R=e.onMouseLeave,P=e.onPointerEnter,I=e.onPointerDownCapture,O=e.ready,A=e.offsetX,x=e.offsetY,T=e.offsetR,D=e.offsetB,k=e.onAlign,j=e.onPrepare,N=e.stretch,L=e.targetWidth,M=e.targetHeight,$=typeof r=="function"?r():r,F=l||c,z=(C==null?void 0:C.length)>0,H=p.useState(!C||!z),U=oe(H,2),V=U[0],W=U[1];if(nr(function(){!V&&z&&a&&W(!0)},[V,z,a]),!V)return null;var K="auto",Z={left:"-1000vw",top:"-1000vh",right:K,bottom:K};if(O||!l){var q,Y=y.points,G=y.dynamicInset||((q=y._experimental)===null||q===void 0?void 0:q.dynamicInset),re=G&&Y[0][1]==="r",ee=G&&Y[0][0]==="b";re?(Z.right=T,Z.left=K):(Z.left=A,Z.right=K),ee?(Z.bottom=D,Z.top=K):(Z.top=x,Z.bottom=K)}var ne={};return N&&(N.includes("height")&&M?ne.height=M:N.includes("minHeight")&&M&&(ne.minHeight=M),N.includes("width")&&L?ne.width=L:N.includes("minWidth")&&L&&(ne.minWidth=L)),l||(ne.pointerEvents="none"),p.createElement(w,{open:S||F,getContainer:C&&function(){return C(a)},autoDestroy:b},p.createElement(nwe,{prefixCls:i,open:l,zIndex:E,mask:f,motion:m}),p.createElement(ao,{onResize:k,disabled:!l},function(te){return p.createElement(No,$e({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:S,leavedClassName:"".concat(i,"-hidden")},g,{onAppearPrepare:j,onEnterPrepare:j,visible:l,onVisibleChanged:function(le){var ye;g==null||(ye=g.onVisibleChanged)===null||ye===void 0||ye.call(g,le),s(le)}}),function(pe,le){var ye=pe.className,Se=pe.style,_e=ie(i,ye,n);return p.createElement("div",{ref:ui(te,t,le),className:_e,style:Q(Q(Q(Q({"--arrow-x":"".concat(v.x||0,"px"),"--arrow-y":"".concat(v.y||0,"px")},Z),ne),Se),{},{boxSizing:"border-box",zIndex:E},o),onMouseEnter:_,onMouseLeave:R,onPointerEnter:P,onClick:u,onPointerDownCapture:I},h&&p.createElement(rwe,{prefixCls:i,arrow:h,arrowPos:v,align:y}),p.createElement(iwe,{cache:!l&&!d},$))})}))}),awe=p.forwardRef(function(e,t){var r=e.children,n=e.getTriggerDOMNode,i=Hc(r),o=p.useCallback(function(s){o4(t,n?n(s):s)},[n]),a=Bc(o,Id(r));return i?p.cloneElement(r,{ref:a}):r}),yj=p.createContext(null);function Sj(e){return e?Array.isArray(e)?e:[e]:[]}function swe(e,t,r,n){return p.useMemo(function(){var i=Sj(r??t),o=Sj(n??t),a=new Set(i),s=new Set(o);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]},[e,t,r,n])}function lwe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;return r?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function cwe(e,t,r,n){for(var i=r.points,o=Object.keys(e),a=0;a<o.length;a+=1){var s,l=o[a];if(lwe((s=e[l])===null||s===void 0?void 0:s.points,i,n))return"".concat(t,"-placement-").concat(l)}return""}function Cj(e,t,r,n){return t||(r?{motionName:"".concat(e,"-").concat(r)}:n?{motionName:n}:null)}function l0(e){return e.ownerDocument.defaultView}function i$(e){for(var t=[],r=e==null?void 0:e.parentElement,n=["hidden","scroll","clip","auto"];r;){var i=l0(r).getComputedStyle(r),o=i.overflowX,a=i.overflowY,s=i.overflow;[o,a,s].some(function(l){return n.includes(l)}
250)&&t.push(r),r=r.parentElement}return t}function sy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Nh(e){return sy(parseFloat(e),0)}function bj(e,t){var r=Q({},e);return(t||[]).forEach(function(n){if(!(n instanceof HTMLBodyElement||n instanceof HTMLHtmlElement)){var i=l0(n).getComputedStyle(n),o=i.overflow,a=i.overflowClipMargin,s=i.borderTopWidth,l=i.borderBottomWidth,c=i.borderLeftWidth,d=i.borderRightWidth,u=n.getBoundingClientRect(),f=n.offsetHeight,h=n.clientHeight,v=n.offsetWidth,y=n.clientWidth,g=Nh(s),m=Nh(l),S=Nh(c),C=Nh(d),b=sy(Math.round(u.width/v*1e3)/1e3),w=sy(Math.round(u.height/f*1e3)/1e3),E=(v-y-S-C)*b,_=(f-h-g-m)*w,R=g*w,P=m*w,I=S*b,O=C*b,A=0,x=0;if(o==="clip"){var T=Nh(a);A=T*b,x=T*w}var D=u.x+I-A,k=u.y+R-x,j=D+u.width+2*A-I-O-E,N=k+u.height+2*x-R-P-_;r.left=Math.max(r.left,D),r.top=Math.max(r.top,k),r.right=Math.min(r.right,j),r.bottom=Math.min(r.bottom,N)}}),r}function wj(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r="".concat(t),n=r.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(r)}function _j(e,t){var r=t||[],n=oe(r,2),i=n[0],o=n[1];return[wj(e.width,i),wj(e.height,o)]}function Ej(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function of(e,t){var r=t[0],n=t[1],i,o;return r==="t"?o=e.y:r==="b"?o=e.y+e.height:o=e.y+e.height/2,n==="l"?i=e.x:n==="r"?i=e.x+e.width:i=e.x+e.width/2,{x:i,y:o}}function Vl(e,t){var r={t:"b",b:"t",l:"r",r:"l"};return e.map(function(n,i){return i===t?r[n]||"c":n}).join("")}function uwe(e,t,r,n,i,o,a){var s=p.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[n]||{}}),l=oe(s,2),c=l[0],d=l[1],u=p.useRef(0),f=p.useMemo(function(){return t?i$(t):[]},[t]),h=p.useRef({}),v=function(){h.current={}};e||v();var y=lr(function(){if(t&&r&&e){let mo=function(Xd,Bl){var Qd=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Pe,rS=F.x+Xd,nS=F.y+Bl,nP=rS+ee,jt=nS+re,Xt=Math.max(rS,Qd.left),gn=Math.max(nS,Qd.top),An=Math.min(nP,Qd.right),mn=Math.min(jt,Qd.bottom);return Math.max(0,(An-Xt)*(mn-gn))},du=function(){we=F.y+Rt,Ie=we+re,Ne=F.x+pt,Be=Ne+ee};var zn=mo,Yd=du,S,C,b,w,E=t,_=E.ownerDocument,R=l0(E),P=R.getComputedStyle(E),I=P.position,O=E.style.left,A=E.style.top,x=E.style.right,T=E.style.bottom,D=E.style.overflow,k=Q(Q({},i[n]),o),j=_.createElement("div");(S=E.parentElement)===null||S===void 0||S.appendChild(j),j.style.left="".concat(E.offsetLeft,"px"),j.style.top="".concat(E.offsetTop,"px"),j.style.position=I,j.style.height="".concat(E.offsetHeight,"px"),j.style.width="".concat(E.offsetWidth,"px"),E.style.left="0",E.style.top="0",E.style.right="auto",E.style.bottom="auto",E.style.overflow="hidden";var N;if(Array.isArray(r))N={x:r[0],y:r[1],width:0,height:0};else{var L,M,$=r.getBoundingClientRect();$.x=(L=$.x)!==null&&L!==void 0?L:$.left,$.y=(M=$.y)!==null&&M!==void 0?M:$.top,N={x:$.x,y:$.y,width:$.width,height:$.height}}var F=E.getBoundingClientRect(),z=R.getComputedStyle(E),H=z.height,U=z.width;F.x=(C=F.x)!==null&&C!==void 0?C:F.left,F.y=(b=F.y)!==null&&b!==void 0?b:F.top;var V=_.documentElement,W=V.clientWidth,K=V.clientHeight,Z=V.scrollWidth,q=V.scrollHeight,Y=V.scrollTop,G=V.scrollLeft,re=F.height,ee=F.width,ne=N.height,te=N.width,pe={left:0,top:0,right:W,bottom:K},le={left:-G,top:-Y,right:Z-G,bottom:q-Y},ye=k.htmlRegion,Se="visible",_e="visibleFirst";ye!=="scroll"&&ye!==_e&&(ye=Se);var De=ye===_e,be=bj(le,f),se=bj(pe,f),Pe=ye===Se?se:be,Te=De?se:Pe;E.style.left="auto",E.style.top="auto",E.style.right="0",E.style.bottom="0";var ze=E.getBoundingClientRect();E.style.left=O,E.style.top=A,E.style.right=x,E.style.bottom=T,E.style.overflow=D,(w=E.parentElement)===null||w===void 0||w.removeChild(j);var ke=sy(Math.round(ee/parseFloat(U)*1e3)/1e3),Me=sy(Math.round(re/parseFloat(H)*1e3)/1e3);if(ke===0||Me===0||Ym(r)&&!n0(r))return;var qe=k.offset,Le=k.targetOffset,xe=_j(F,qe),je=oe(xe,2),Ee=je[0],Re=je[1],me=_j(N,Le),ce=oe(me,2),Ae=ce[0],We=ce[1];N.x-=Ae,N.y-=We;var lt=k.points||[],yt=oe(lt,2),nt=yt[0],it=yt[1],gt=Ej(it),Ye=Ej(nt),vt=of(N,gt),mt=of(F,Ye),St=Q({},k),pt=vt.x-mt.x+Ee,Rt=vt.y-mt.y+Re,ae=mo(pt,Rt),ue=mo(pt,Rt,se),ve=of(N,["t","l"]),Ce=of(F,["t","l"]),Fe=of(N,["b","r"]),Ze=of(F,["b","r"]),et=k.overflow||{},tt=et.adjustX,ot=et.adjustY,rt=et.shiftX,ft=et.shiftY,ge=function(Bl){return typeof Bl=="boolean"?Bl:Bl>=0},we,Ie,Ne,Be;du();var Xe=ge(ot),He=Ye[0]===gt[0];if(Xe&&Ye[0]==="t"&&(Ie>Te.bottom||h.current.bt)){var ct=Rt;He?ct-=re-ne:ct=ve.y-Ze.y-Re;var at=mo(pt,ct),Je=mo(pt,ct,se);at>ae||at===ae&&(!De||Je>=ue)?(h.current.bt=!0,Rt=ct,Re=-Re,St.points=[Vl(Ye,0),Vl(gt,0)]):h.current.bt=!1}
250if(Xe&&Ye[0]==="b"&&(we<Te.top||h.current.tb)){var ut=Rt;He?ut+=re-ne:ut=Fe.y-Ce.y-Re;var st=mo(pt,ut),_t=mo(pt,ut,se);st>ae||st===ae&&(!De||_t>=ue)?(h.current.tb=!0,Rt=ut,Re=-Re,St.points=[Vl(Ye,0),Vl(gt,0)]):h.current.tb=!1}var zt=ge(tt),ht=Ye[1]===gt[1];if(zt&&Ye[1]==="l"&&(Be>Te.right||h.current.rl)){var dt=pt;ht?dt-=ee-te:dt=ve.x-Ze.x-Ee;var Et=mo(dt,Rt),pr=mo(dt,Rt,se);Et>ae||Et===ae&&(!De||pr>=ue)?(h.current.rl=!0,pt=dt,Ee=-Ee,St.points=[Vl(Ye,1),Vl(gt,1)]):h.current.rl=!1}if(zt&&Ye[1]==="r"&&(Ne<Te.left||h.current.lr)){var br=pt;ht?br+=ee-te:br=Fe.x-Ce.x-Ee;var Yt=mo(br,Rt),Ur=mo(br,Rt,se);Yt>ae||Yt===ae&&(!De||Ur>=ue)?(h.current.lr=!0,pt=br,Ee=-Ee,St.points=[Vl(Ye,1),Vl(gt,1)]):h.current.lr=!1}du();var tn=rt===!0?0:rt;typeof tn=="number"&&(Ne<se.left&&(pt-=Ne-se.left-Ee,N.x+te<se.left+tn&&(pt+=N.x-se.left+te-tn)),Be>se.right&&(pt-=Be-se.right-Ee,N.x>se.right-tn&&(pt+=N.x-se.right+tn)));var Fn=ft===!0?0:ft;typeof Fn=="number"&&(we<se.top&&(Rt-=we-se.top-Re,N.y+ne<se.top+Fn&&(Rt+=N.y-se.top+ne-Fn)),Ie>se.bottom&&(Rt-=Ie-se.bottom-Re,N.y>se.bottom-Fn&&(Rt+=N.y-se.bottom+Fn)));var ti=F.x+pt,Mi=ti+ee,go=F.y+Rt,Tr=go+re,kt=N.x,At=kt+te,Sr=N.y,Mt=Sr+ne,Tt=Math.max(ti,kt),vr=Math.min(Mi,At),on=(Tt+vr)/2,Pn=on-ti,gi=Math.max(go,Sr),ri=Math.min(Tr,Mt),mi=(gi+ri)/2,er=mi-go;a==null||a(t,St);var Bt=ze.right-F.x-(pt+F.width),ir=ze.bottom-F.y-(Rt+F.height);ke===1&&(pt=Math.round(pt),Bt=Math.round(Bt)),Me===1&&(Rt=Math.round(Rt),ir=Math.round(ir));var rn={ready:!0,offsetX:pt/ke,offsetY:Rt/Me,offsetR:Bt/ke,offsetB:ir/Me,arrowX:Pn/ke,arrowY:er/Me,scaleX:ke,scaleY:Me,align:St};d(rn)}}),g=function(){u.current+=1;var C=u.current;Promise.resolve().then(function(){u.current===C&&y()})},m=function(){d(function(C){return Q(Q({},C),{},{ready:!1})})};return nr(m,[n]),nr(function(){e||m()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,g]}function dwe(e,t,r,n,i){nr(function(){if(e&&t&&r){let f=function(){n(),i()};var u=f,o=t,a=r,s=i$(o),l=i$(a),c=l0(a),d=new Set([c].concat(Ge(s),Ge(l)));return d.forEach(function(h){h.addEventListener("scroll",f,{passive:!0})}),c.addEventListener("resize",f,{passive:!0}),n(),function(){d.forEach(function(h){h.removeEventListener("scroll",f),c.removeEventListener("resize",f)})}}},[e,t,r])}function fwe(e,t,r,n,i,o,a,s){var l=p.useRef(e);l.current=e;var c=p.useRef(!1);p.useEffect(function(){if(t&&n&&(!i||o)){var u=function(){c.current=!1},f=function(g){var m;l.current&&!a(((m=g.composedPath)===null||m===void 0||(m=m.call(g))===null||m===void 0?void 0:m[0])||g.target)&&!c.current&&s(!1)},h=l0(n);h.addEventListener("pointerdown",u,!0),h.addEventListener("mousedown",f,!0),h.addEventListener("contextmenu",f,!0);var v=vb(r);return v&&(v.addEventListener("mousedown",f,!0),v.addEventListener("contextmenu",f,!0)),function(){h.removeEventListener("pointerdown",u,!0),h.removeEventListener("mousedown",f,!0),h.removeEventListener("contextmenu",f,!0),v&&(v.removeEventListener("mousedown",f,!0),v.removeEventListener("contextmenu",f,!0))}}},[t,r,n,i,o]);function d(){c.current=!0}return d}var pwe=["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"];function hwe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:__,t=p.forwardRef(function(r,n){var i=r.prefixCls,o=i===void 0?"rc-trigger-popup":i,a=r.children,s=r.action,l=s===void 0?"hover":s,c=r.showAction,d=r.hideAction,u=r.popupVisible,f=r.defaultPopupVisible,h=r.onPopupVisibleChange,v=r.afterPopupVisibleChange,y=r.mouseEnterDelay,g=r.mouseLeaveDelay,m=g===void 0?.1:g,S=r.focusDelay,C=r.blurDelay,b=r.mask,w=r.maskClosable,E=w===void 0?!0:w,_=r.getPopupContainer,R=r.forceRender,P=r.autoDestroy,I=r.destroyPopupOnHide,O=r.popup,A=r.popupClassName,x=r.popupStyle,T=r.popupPlacement,D=r.builtinPlacements,k=D===void 0?{}:D,j=r.popupAlign,N=r.zIndex,L=r.stretch,M=r.getPopupClassNameFromAlign,$=r.fresh,F=r.alignPoint,z=r.onPopupClick,H=r.onPopupAlign,U=r.arrow,V=r.popupMotion,W=r.maskMotion,K=r.popupTransitionName,Z=r.popupAnimation,q=r.maskTransitionName,Y=r.maskAnimation,G=r.className,re=r.getTriggerDOMNode,ee=Nt(r,pwe),ne=P||I||!1,te=p.useState(!1),pe
250=oe(te,2),le=pe[0],ye=pe[1];nr(function(){ye(P_())},[]);var Se=p.useRef({}),_e=p.useContext(yj),De=p.useMemo(function(){return{registerSubPopup:function(Xt,gn){Se.current[Xt]=gn,_e==null||_e.registerSubPopup(Xt,gn)}}},[_e]),be=k4(),se=p.useState(null),Pe=oe(se,2),Te=Pe[0],ze=Pe[1],ke=p.useRef(null),Me=lr(function(jt){ke.current=jt,Ym(jt)&&Te!==jt&&ze(jt),_e==null||_e.registerSubPopup(be,jt)}),qe=p.useState(null),Le=oe(qe,2),xe=Le[0],je=Le[1],Ee=p.useRef(null),Re=lr(function(jt){Ym(jt)&&xe!==jt&&(je(jt),Ee.current=jt)}),me=p.Children.only(a),ce=(me==null?void 0:me.props)||{},Ae={},We=lr(function(jt){var Xt,gn,An=xe;return(An==null?void 0:An.contains(jt))||((Xt=vb(An))===null||Xt===void 0?void 0:Xt.host)===jt||jt===An||(Te==null?void 0:Te.contains(jt))||((gn=vb(Te))===null||gn===void 0?void 0:gn.host)===jt||jt===Te||Object.values(Se.current).some(function(mn){return(mn==null?void 0:mn.contains(jt))||jt===mn})}),lt=Cj(o,V,Z,K),yt=Cj(o,W,Y,q),nt=p.useState(f||!1),it=oe(nt,2),gt=it[0],Ye=it[1],vt=u??gt,mt=lr(function(jt){u===void 0&&Ye(jt)});nr(function(){Ye(u||!1)},[u]);var St=p.useRef(vt);St.current=vt;var pt=p.useRef([]);pt.current=[];var Rt=lr(function(jt){var Xt;mt(jt),((Xt=pt.current[pt.current.length-1])!==null&&Xt!==void 0?Xt:vt)!==jt&&(pt.current.push(jt),h==null||h(jt))}),ae=p.useRef(),ue=function(){clearTimeout(ae.current)},ve=function(Xt){var gn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;ue(),gn===0?Rt(Xt):ae.current=setTimeout(function(){Rt(Xt)},gn*1e3)};p.useEffect(function(){return ue},[]);var Ce=p.useState(!1),Fe=oe(Ce,2),Ze=Fe[0],et=Fe[1];nr(function(jt){(!jt||vt)&&et(!0)},[vt]);var tt=p.useState(null),ot=oe(tt,2),rt=ot[0],ft=ot[1],ge=p.useState(null),we=oe(ge,2),Ie=we[0],Ne=we[1],Be=function(Xt){Ne([Xt.clientX,Xt.clientY])},Xe=uwe(vt,Te,F&&Ie!==null?Ie:xe,T,k,j,H),He=oe(Xe,11),ct=He[0],at=He[1],Je=He[2],ut=He[3],st=He[4],_t=He[5],zt=He[6],ht=He[7],dt=He[8],Et=He[9],pr=He[10],br=swe(le,l,c,d),Yt=oe(br,2),Ur=Yt[0],tn=Yt[1],Fn=Ur.has("click"),ti=tn.has("click")||tn.has("contextMenu"),Mi=lr(function(){Ze||pr()}),go=function(){St.current&&F&&ti&&ve(!1)};dwe(vt,xe,Te,Mi,go),nr(function(){Mi()},[Ie,T]),nr(function(){vt&&!(k!=null&&k[T])&&Mi()},[JSON.stringify(j)]);var Tr=p.useMemo(function(){var jt=cwe(k,o,Et,F);return ie(jt,M==null?void 0:M(Et))},[Et,M,k,o,F]);p.useImperativeHandle(n,function(){return{nativeElement:Ee.current,popupElement:ke.current,forceAlign:Mi}});var kt=p.useState(0),At=oe(kt,2),Sr=At[0],Mt=At[1],Tt=p.useState(0),vr=oe(Tt,2),on=vr[0],Pn=vr[1],gi=function(){if(L&&xe){var Xt=xe.getBoundingClientRect();Mt(Xt.width),Pn(Xt.height)}},ri=function(){gi(),Mi()},mi=function(Xt){et(!1),pr(),v==null||v(Xt)},er=function(){return new Promise(function(Xt){gi(),ft(function(){return Xt})})};nr(function(){rt&&(pr(),rt(),ft(null))},[rt]);function Bt(jt,Xt,gn,An){Ae[jt]=function(mn){var iS;An==null||An(mn),ve(Xt,gn);for(var iP=arguments.length,iL=new Array(iP>1?iP-1:0),oS=1;oS<iP;oS++)iL[oS-1]=arguments[oS];(iS=ce[jt])===null||iS===void 0||iS.call.apply(iS,[ce,mn].concat(iL))}}(Fn||ti)&&(Ae.onClick=function(jt){var Xt;St.current&&ti?ve(!1):!St.current&&Fn&&(Be(jt),ve(!0));for(var gn=arguments.length,An=new Array(gn>1?gn-1:0),mn=1;mn<gn;mn++)An[mn-1]=arguments[mn];(Xt=ce.onClick)===null||Xt===void 0||Xt.call.apply(Xt,[ce,jt].concat(An))});var ir=fwe(vt,ti,xe,Te,b,E,We,ve),rn=Ur.has("hover"),zn=tn.has("hover"),Yd,mo;rn&&(Bt("onMouseEnter",!0,y,function(jt){Be(jt)}),Bt("onPointerEnter",!0,y,function(jt){Be(jt)}),Yd=function(Xt){(vt||Ze)&&Te!==null&&Te!==void 0&&Te.contains(Xt.target)&&ve(!0,y)},F&&(Ae.onMouseMove=function(jt){var Xt;(Xt=ce.onMouseMove)===null||Xt===void 0||Xt.call(ce,jt)})),zn&&(Bt("onMouseLeave",!1,m),Bt("onPointerLeave",!1,m),mo=function(){ve(!1,m)}),Ur.has("focus")&&Bt("onFocus",!0,S),tn.has("focus")&&Bt("onBlur",!1,C),Ur.has("contextMenu")&&(Ae.onContextMenu=function(jt){var Xt;St.current&&tn.has("contextMenu")?ve(!1):(Be(jt),ve(!0)),jt.preventDefault();for(var gn=arguments.length,An=new Array(gn>1?gn-1:0),mn=1;mn<gn;mn++)An[mn-1]=arguments[mn];(Xt=ce.onContextMenu)===null||Xt===void 0||Xt.call.apply(Xt,[ce,jt].
250concat(An))}),G&&(Ae.className=ie(ce.className,G));var du=p.useRef(!1);du.current||(du.current=R||vt||Ze);var Xd=Q(Q({},ce),Ae),Bl={},Qd=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Qd.forEach(function(jt){ee[jt]&&(Bl[jt]=function(){for(var Xt,gn=arguments.length,An=new Array(gn),mn=0;mn<gn;mn++)An[mn]=arguments[mn];(Xt=Xd[jt])===null||Xt===void 0||Xt.call.apply(Xt,[Xd].concat(An)),ee[jt].apply(ee,An)})});var rS=p.cloneElement(me,Q(Q({},Xd),Bl)),nS={x:_t,y:zt},nP=U?Q({},U!==!0?U:{}):null;return p.createElement(p.Fragment,null,p.createElement(ao,{disabled:!vt,ref:Re,onResize:ri},p.createElement(awe,{getTriggerDOMNode:re},rS)),du.current&&p.createElement(yj.Provider,{value:De},p.createElement(owe,{portal:e,ref:Me,prefixCls:o,popup:O,className:ie(A,Tr),style:x,target:xe,onMouseEnter:Yd,onMouseLeave:mo,onPointerEnter:Yd,zIndex:N,open:vt,keepDom:Ze,fresh:$,onClick:z,onPointerDownCapture:ir,mask:b,motion:lt,maskMotion:yt,onVisibleChanged:mi,onPrepare:er,forceRender:R,autoDestroy:ne,getPopupContainer:_,align:Et,arrow:nP,arrowPos:nS,ready:ct,offsetX:at,offsetY:Je,offsetR:ut,offsetB:st,onAlign:Mi,stretch:L,targetWidth:Sr/ht,targetHeight:on/dt})))});return t}const c0=hwe(__);var vwe=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],gwe=function(t){var r=t===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:r,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:r,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:r,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:r,adjustY:1},htmlRegion:"scroll"}}},mwe=function(t,r){var n=t.prefixCls;t.disabled;var i=t.visible,o=t.children,a=t.popupElement,s=t.animation,l=t.transitionName,c=t.dropdownStyle,d=t.dropdownClassName,u=t.direction,f=u===void 0?"ltr":u,h=t.placement,v=t.builtinPlacements,y=t.dropdownMatchSelectWidth,g=t.dropdownRender,m=t.dropdownAlign,S=t.getPopupContainer,C=t.empty,b=t.getTriggerDOMNode,w=t.onPopupVisibleChange,E=t.onPopupMouseEnter,_=Nt(t,vwe),R="".concat(n,"-dropdown"),P=a;g&&(P=g(a));var I=p.useMemo(function(){return v||gwe(y)},[v,y]),O=s?"".concat(R,"-").concat(s):l,A=typeof y=="number",x=p.useMemo(function(){return A?null:y===!1?"minWidth":"width"},[y,A]),T=c;A&&(T=Q(Q({},T),{},{width:y}));var D=p.useRef(null);return p.useImperativeHandle(r,function(){return{getPopupElement:function(){var j;return(j=D.current)===null||j===void 0?void 0:j.popupElement}}}),p.createElement(c0,$e({},_,{showAction:w?["click"]:[],hideAction:w?["click"]:[],popupPlacement:h||(f==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:I,prefixCls:R,popupTransitionName:O,popup:p.createElement("div",{onMouseEnter:E},P),ref:D,stretch:x,popupAlign:m,popupVisible:i,getPopupContainer:S,popupClassName:ie(d,J({},"".concat(R,"-empty"),C)),popupStyle:T,getTriggerDOMNode:b,onPopupVisibleChange:w}),o)},ywe=p.forwardRef(mwe);function Rj(e,t){var r=e.key,n;return"value"in e&&(n=e.value),r??(n!==void 0?n:"rc-index-key-".concat(t))}function o$(e){return typeof e<"u"&&!Number.isNaN(e)}function nZ(e,t){var r=e||{},n=r.label,i=r.value,o=r.options,a=r.groupLabel,s=n||(t?"children":"label");return{label:s,value:i||"value",options:o||"options",groupLabel:a||s}}function Swe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.fieldNames,n=t.childrenAsData,i=[],o=nZ(r,!1),a=o.label,s=o.value,l=o.options,c=o.groupLabel;function d(u,f){Array.isArray(u)&&u.forEach(function(h){if(f||!(l in h)){var v=h[s];i.push({key:Rj(h,i.length),groupOption:f,data:h,label:h[a],value:v})}else{var y=h[c];y===void 0&&n&&(y=h.label),i.push({key:Rj(h,i.length),group:!0,data:h,label:y}),d(h[l],!0)}})}return d(e,!1),i}function a$(e){var t=Q({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Nn(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var Cwe=function(t,r,n){if(!r||!r.length)return null;var i=!1,o=function s(l,c){var d=lQ(c),u=d[0],f=d.slice(1);if(!u)return[l];var h=l.split(u);return i=i||h.length>1,h.reduce(function(v,y){return[].concat(Ge(v),Ge(s(y,f)))}
250,[]).filter(Boolean)},a=o(t,r);return i?typeof n<"u"?a.slice(0,n):a:null},B4=p.createContext(null);function bwe(e){var t=e.visible,r=e.values;if(!t)return null;var n=50;return p.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(r.slice(0,n).map(function(i){var o=i.label,a=i.value;return["number","string"].includes(Pt(o))?o:a}).join(", ")),r.length>n?", ...":null)}var wwe=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],_we=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],s$=function(t){return t==="tags"||t==="multiple"},Ewe=p.forwardRef(function(e,t){var r,n=e.id,i=e.prefixCls,o=e.className,a=e.showSearch,s=e.tagRender,l=e.direction,c=e.omitDomProps,d=e.displayValues,u=e.onDisplayValuesChange,f
250=e.emptyOptions,h=e.notFoundContent,v=h===void 0?"Not Found":h,y=e.onClear,g=e.mode,m=e.disabled,S=e.loading,C=e.getInputElement,b=e.getRawInputElement,w=e.open,E=e.defaultOpen,_=e.onDropdownVisibleChange,R=e.activeValue,P=e.onActiveValueChange,I=e.activeDescendantId,O=e.searchValue,A=e.autoClearSearchValue,x=e.onSearch,T=e.onSearchSplit,D=e.tokenSeparators,k=e.allowClear,j=e.prefix,N=e.suffixIcon,L=e.clearIcon,M=e.OptionList,$=e.animation,F=e.transitionName,z=e.dropdownStyle,H=e.dropdownClassName,U=e.dropdownMatchSelectWidth,V=e.dropdownRender,W=e.dropdownAlign,K=e.placement,Z=e.builtinPlacements,q=e.getPopupContainer,Y=e.showAction,G=Y===void 0?[]:Y,re=e.onFocus,ee=e.onBlur,ne=e.onKeyUp,te=e.onKeyDown,pe=e.onMouseDown,le=Nt(e,wwe),ye=s$(g),Se=(a!==void 0?a:ye)||g==="combobox",_e=Q({},le);_we.forEach(function(kt){delete _e[kt]}),c==null||c.forEach(function(kt){delete _e[kt]});var De=p.useState(!1),be=oe(De,2),se=be[0],Pe=be[1];p.useEffect(function(){Pe(P_())},[]);var Te=p.useRef(null),ze=p.useRef(null),ke=p.useRef(null),Me=p.useRef(null),qe=p.useRef(null),Le=p.useRef(!1),xe=Obe(),je=oe(xe,3),Ee=je[0],Re=je[1],me=je[2];p.useImperativeHandle(t,function(){var kt,At;return{focus:(kt=Me.current)===null||kt===void 0?void 0:kt.focus,blur:(At=Me.current)===null||At===void 0?void 0:At.blur,scrollTo:function(Mt){var Tt;return(Tt=qe.current)===null||Tt===void 0?void 0:Tt.scrollTo(Mt)},nativeElement:Te.current||ze.current}});var ce=p.useMemo(function(){var kt;if(g!=="combobox")return O;var At=(kt=d[0])===null||kt===void 0?void 0:kt.value;return typeof At=="string"||typeof At=="number"?String(At):""},[O,g,d]),Ae=g==="combobox"&&typeof C=="function"&&C()||null,We=typeof b=="function"&&b(),lt=Bc(ze,We==null||(r=We.props)===null||r===void 0?void 0:r.ref),yt=p.useState(!1),nt=oe(yt,2),it=nt[0],gt=nt[1];nr(function(){gt(!0)},[]);var Ye=Or(!1,{defaultValue:E,value:w}),vt=oe(Ye,2),mt=vt[0],St=vt[1],pt=it?mt:!1,Rt=!v&&f;(m||Rt&&pt&&g==="combobox")&&(pt=!1);var ae=Rt?!1:pt,ue=p.useCallback(function(kt){var At=kt!==void 0?kt:!pt;m||(St(At),pt!==At&&(_==null||_(At)))},[m,pt,St,_]),ve=p.useMemo(function(){return(D||[]).some(function(kt){return[`
251`,`\r
252`].includes(kt)})},[D]),Ce=p.useContext(B4)||{},Fe=Ce.maxCount,Ze=Ce.rawValues,et=function(At,Sr,Mt){if(!(ye&&o$(Fe)&&(Ze==null?void 0:Ze.size)>=Fe)){var Tt=!0,vr=At;P==null||P(null);var on=Cwe(At,D,o$(Fe)?Fe-Ze.size:void 0),Pn=Mt?null:on;return g!=="combobox"&&Pn&&(vr="",T==null||T(Pn),ue(!1),Tt=!1),x&&ce!==vr&&x(vr,{source:Sr?"typing":"effect"}),Tt}},tt=function(At){!At||!At.trim()||x(At,{source:"submit"})};p.useEffect(function(){!pt&&!ye&&g!=="combobox"&&et("",!1,!1)},[pt]),p.useEffect(function(){mt&&m&&St(!1),m&&!Le.current&&Re(!1)},[m]);var ot=XJ(),rt=oe(ot,2),ft=rt[0],ge=rt[1],we=p.useRef(!1),Ie=function(At){var Sr=ft(),Mt=At.key,Tt=Mt==="Enter";if(Tt&&(g!=="combobox"&&At.preventDefault(),pt||ue(!0)),ge(!!ce),Mt==="Backspace"&&!Sr&&ye&&!ce&&d.length){for(var vr=Ge(d),on=null,Pn=vr.length-1;Pn>=0;Pn-=1){var gi=vr[Pn];if(!gi.disabled){vr.splice(Pn,1),on=gi;break}}on&&u(vr,{type:"remove",values:[on]})}for(var ri=arguments.length,mi=new Array(ri>1?ri-1:0),er=1;er<ri;er++)mi[er-1]=arguments[er];if(pt&&(!Tt||!we.current)){var Bt;Tt&&(we.current=!0),(Bt=qe.current)===null||Bt===void 0||Bt.onKeyDown.apply(Bt,[At].concat(mi))}te==null||te.apply(void 0,[At].concat(mi))},Ne=function(At){for(var Sr=arguments.length,Mt=new Array(Sr>1?Sr-1:0),Tt=1;Tt<Sr;Tt++)Mt[Tt-1]=arguments[Tt];if(pt){var vr;(vr=qe.current)===null||vr===void 0||vr.onKeyUp.apply(vr,[At].concat(Mt))}At.key==="Enter"&&(we.current=!1),ne==null||ne.apply(void 0,[At].concat(Mt))},Be=function(At){var Sr=d.filter(function(Mt){return Mt!==At});u(Sr,{type:"remove",values:[At]})},Xe=function(){we.current=!1},He=p.useRef(!1),ct=function(){Re(!0),m||(re&&!He.current&&re.apply(void 0,arguments),G.includes("focus")&&ue(!0)),He.current=!0},at=function(){Le.current=!0,Re(!1,function(){He.current=!1,Le.current=!1,ue(!1)}),!m&&(ce&&(g==="tags"?x(ce,{source:"submit"}):g==="multiple"&&x("",{source:"blur"})),ee&&ee.apply(void 0,arguments))},Je=[];p.useEffect(function(){return function(){Je.forEach(function(kt){return clearTimeout(kt)}),Je.splice(0,Je.length)}},[]);var ut=function(At){var Sr,Mt=At.target,Tt=(Sr=ke.current)===null||Sr===void 0?void 0:Sr.getPopupElement();if(Tt&&Tt.contains(Mt)){var vr=setTimeout(function(){var ri=Je.indexOf(vr);if(ri!==-1&&Je.splice(ri,1),me(),!se&&!Tt.contains(document.activeElement)){var mi;(mi=Me.current)===null||mi===void 0||mi.focus()}});Je.push(vr)}for(var on=arguments.length,Pn=new Array(on>1?on-1:0),gi=1;gi<on;gi++)Pn[gi-1]=arguments[gi];pe==null||pe.apply(void 0,[At].concat(Pn))},st=p.useState({}),_t=oe(st,2),zt=_t[1];function ht(){zt({})}var dt;We&&(dt=function(At){ue(At)}),Tbe(function(){var kt;return[Te.current,(kt=ke.current)===null||kt===void 0?void 0:kt.getPopupElement()]},ae,ue,!!We);var Et=p.useMemo(function(){return Q(Q({},e),{},{notFoundContent:v,open:pt,triggerOpen:ae,id:n,showSearch:Se,multiple:ye,toggleOpen:ue})},[e,v,ae,pt,n,Se,ye,ue]),pr=!!N||S,br;pr&&(br=p.createElement(I_,{className:ie("".concat(i,"-arrow"),J({},"".concat(i,"-arrow-loading"),S)),customizeIcon:N,customizeIconProps:{loading:S,searchValue:ce,open:pt,focused:Ee,showSearch:Se}}));var Yt=function(){var At;y==null||y(),(At=Me.current)===null||At===void 0||At.focus(),u([],{type:"clear",values:d}),et("",!1,!1)},Ur=Ibe(i,Yt,d,k,L,m,ce,g),tn=Ur.allowClear,Fn=Ur.clearIcon,ti=p.createElement(M,{ref:qe}),Mi=ie(i,o,J(J(J(J(J(J(J(J(J(J({},"".concat(i,"-focused"),Ee),"".concat(i,"-multiple"),ye),"".concat(i,"-single"),!ye),"".concat(i,"-allow-clear"),k),"".concat(i,"-show-arrow"),pr),"".concat(i,"-disabled"),m),"".concat(i,"-loading"),S),"".concat(i,"-open"),pt),"".concat(i,"-customize-input"),Ae),"".concat(i,"-show-search"),Se)),go=p.createElement(ywe,{ref:ke,disabled:m,prefixCls:i,visible:ae,popupElement:ti,animation:$,transitionName:F,dropdownStyle:z,dropdownClassName:H,direction:l,dropdownMatchSelectWidth:U,dropdownRender:V,dropdownAlign:W,placement:K,builtinPlacements:Z,getPopupContainer:q,empty:f,getTriggerDOMNode:function(At){return ze.current||At},onPopupVisibleChange:dt,onPopupMouseEnter:ht},We?p.cloneElement(We,{ref:lt}
252):p.createElement(twe,$e({},e,{domRef:ze,prefixCls:i,inputElement:Ae,ref:Me,id:n,prefix:j,showSearch:Se,autoClearSearchValue:A,mode:g,activeDescendantId:I,tagRender:s,values:d,open:pt,onToggleOpen:ue,activeValue:R,searchValue:ce,onSearch:et,onSearchSubmit:tt,onRemove:Be,tokenWithEnter:ve,onInputBlur:Xe}))),Tr;return We?Tr=go:Tr=p.createElement("div",$e({className:Mi},_e,{ref:Te,onMouseDown:ut,onKeyDown:Ie,onKeyUp:Ne,onFocus:ct,onBlur:at}),p.createElement(bwe,{visible:Ee&&!pt,values:d}),go,br,tn&&Fn),p.createElement(YJ.Provider,{value:Et},Tr)}),H4=function(){return null};H4.isSelectOptGroup=!0;var V4=function(){return null};V4.isSelectOption=!0;var iZ=p.forwardRef(function(e,t){var r=e.height,n=e.offsetY,i=e.offsetX,o=e.children,a=e.prefixCls,s=e.onInnerResize,l=e.innerProps,c=e.rtl,d=e.extra,u={},f={display:"flex",flexDirection:"column"};return n!==void 0&&(u={height:r,position:"relative",overflow:"hidden"},f=Q(Q({},f),{},J(J(J(J(J({transform:"translateY(".concat(n,"px)")},c?"marginRight":"marginLeft",-i),"position","absolute"),"left",0),"right",0),"top",0))),p.createElement("div",{style:u},p.createElement(ao,{onResize:function(v){var y=v.offsetHeight;y&&s&&s()}},p.createElement("div",$e({style:f,className:ie(J({},"".concat(a,"-holder-inner"),a)),ref:t},l),o,d)))});iZ.displayName="Filler";function Rwe(e){var t=e.children,r=e.setRef,n=p.useCallback(function(i){r(i)},[]);return p.cloneElement(t,{ref:n})}function Pwe(e,t,r,n,i,o,a,s){var l=s.getKey;return e.slice(t,r+1).map(function(c,d){var u=t+d,f=a(c,u,{style:{width:n},offsetX:i}),h=l(c);return p.createElement(Rwe,{key:h,setRef:function(y){return o(c,y)}},f)})}function Iwe(e,t,r){var n=e.length,i=t.length,o,a;if(n===0&&i===0)return null;n<i?(o=e,a=t):(o=t,a=e);var s={__EMPTY_ITEM__:!0};function l(v){return v!==void 0?r(v):s}for(var c=null,d=Math.abs(n-i)!==1,u=0;u<a.length;u+=1){var f=l(o[u]),h=l(a[u]);if(f!==h){c=u,d=d||f!==l(a[u+1]);break}}return c===null?null:{index:c,multiple:d}}function xwe(e,t,r){var n=p.useState(e),i=oe(n,2),o=i[0],a=i[1],s=p.useState(null),l=oe(s,2),c=l[0],d=l[1];return p.useEffect(function(){var u=Iwe(o||[],e||[],t);(u==null?void 0:u.index)!==void 0&&(r==null||r(u.index),d(e[u.index])),a(e)},[e]),[c]}var Pj=(typeof navigator>"u"?"undefined":Pt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const oZ=function(e,t,r,n){var i=p.useRef(!1),o=p.useRef(null);function a(){clearTimeout(o.current),i.current=!0,o.current=setTimeout(function(){i.current=!1},50)}var s=p.useRef({top:e,bottom:t,left:r,right:n});return s.current.top=e,s.current.bottom=t,s.current.left=r,s.current.right=n,function(l,c){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,u=l?c<0&&s.current.left||c>0&&s.current.right:c<0&&s.current.top||c>0&&s.current.bottom;return d&&u?(clearTimeout(o.current),i.current=!1):(!u||i.current)&&a(),!i.current&&u}};function Owe(e,t,r,n,i,o,a){var s=p.useRef(0),l=p.useRef(null),c=p.useRef(null),d=p.useRef(!1),u=oZ(t,r,n,i);function f(S,C){if(Gt.cancel(l.current),!u(!1,C)){var b=S;if(!b._virtualHandled)b._virtualHandled=!0;else return;s.current+=C,c.current=C,Pj||b.preventDefault(),l.current=Gt(function(){var w=d.current?10:1;a(s.current*w,!1),s.current=0})}}function h(S,C){a(C,!0),Pj||S.preventDefault()}var v=p.useRef(null),y=p.useRef(null);function g(S){if(e){Gt.cancel(y.current),y.current=Gt(function(){v.current=null},2);var C=S.deltaX,b=S.deltaY,w=S.shiftKey,E=C,_=b;(v.current==="sx"||!v.current&&w&&b&&!C)&&(E=b,_=0,v.current="sx");var R=Math.abs(E),P=Math.abs(_);v.current===null&&(v.current=o&&R>P?"x":"y"),v.current==="y"?f(S,_):h(S,E)}}function m(S){e&&(d.current=S.detail===c.current)}return[g,m]}function Twe(e,t,r,n){var i=p.useMemo(function(){return[new Map,[]]},[e,r.id,n]),o=oe(i,2),a=o[0],s=o[1],l=function(d){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d,f=a.get(d),h=a.get(u);if(f===void 0||h===void 0)for(var v=e.length,y=s.length;y<v;y+=1){var g,m=e[y],S=t(m);a.set(S,y);var C=(g=r.get(S))!==null&&g!==void 0?g:n;if(s[y]=(s[y-1]||0)+C,S===d&&(f=y),S===u&&(h=y),f!==void 0&&h!==void 0)break}return{top:s[f-1]||0,bottom:s[h]}};return l}var Awe=function(){function e(){zr(this,e),J(this,"maps",void 0),J(this,"id",0),J(this,"diffRecords",new Map),this.maps=Object.create(null)}return Br(e,[{key:"set",value:function(r,n){this.diffRecords.set(r,this.maps[r]),this.maps[r]=n,this.id+=1}},{key:"get",value:function(r){return this.maps[r]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),e}();function Ij(e){var t=parseFloat(e);return isNaN(t)?0:t}function Mwe(e,t,r){var n=p.useState(0),i=oe(n,2),o=i[0],a=i[1],s=p.useRef(new Map),l=p.useRef(new Awe),c=p.useRef(0);function d(){c.current+=1}function u(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;d();var v=function(){var m=!1;s.current.forEach(function(S,C){if(S&&S.offsetParent){var b=S.offsetHeight,w=getComputedStyle(S),E=w.marginTop,_=w.marginBottom,R=Ij(E),P=Ij(_),I=b+R+P;l.current.get(C)!==I&&(l.current.set(C,I),m=!0)}}),m&&a(function(S){return S+1})};if(h)v();else{c.current+=1;var y=c.current;Promise.resolve().then(function(){y===c.current&&v()})}}function f(h,v){var y=e(h),g=s.current.get(y);v?(s.current.set(y,v),u()):s.current.delete(y),!g!=!v&&(v?t==null||t(h):r==null||r(h))}return p.useEffect(function(){return d},[]),[f,u,l.current,o]}var xj=14/15;function $we(e,t,r){var n=p.useRef(!1),i=p.useRef(0),o=p.useRef(0),a=p.useRef(null),s=p.useRef(null),l,c=function(h){if(n.current){var v=Math.ceil(h.touches[0].pageX),y=Math.ceil(h.touches[0].pageY),g=i.current-v,m=o.current-y,S=Math.abs(g)>Math.abs(m);S?i.current=v:o.current=y;var C=r(S,S?g:m,!1,h);C&&h.preventDefault(),clearInterval(s.current),C&&(s.current=setInterval(function(){S?g*=xj:m*=xj;var b=Math.floor(S?g:m);(!r(S,b,!0)||Math.abs(b)<=.1)&&clearInterval(s.current)},16))}},d=function(){n.current=!1,l()},u=function(h){l(),h.touches.length===1&&!n.current&&(n.current=!0,i.current=Math.ceil(h.touches[0].pageX),o.current=Math.ceil(h.touches[0].pageY),a.current=h.target,a.
252current.addEventListener("touchmove",c,{passive:!1}),a.current.addEventListener("touchend",d,{passive:!0}))};l=function(){a.current&&(a.current.removeEventListener("touchmove",c),a.current.removeEventListener("touchend",d))},nr(function(){return e&&t.current.addEventListener("touchstart",u,{passive:!0}),function(){var f;(f=t.current)===null||f===void 0||f.removeEventListener("touchstart",u),l(),clearInterval(s.current)}},[e])}function Oj(e){return Math.floor(Math.pow(e,.5))}function l$(e,t){var r="touches"in e?e.touches[0]:e;return r[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function kwe(e,t,r){p.useEffect(function(){var n=t.current;if(e&&n){var i=!1,o,a,s=function(){Gt.cancel(o)},l=function f(){s(),o=Gt(function(){r(a),f()})},c=function(h){if(!(h.target.draggable||h.button!==0)){var v=h;v._virtualHandled||(v._virtualHandled=!0,i=!0)}},d=function(){i=!1,s()},u=function(h){if(i){var v=l$(h,!1),y=n.getBoundingClientRect(),g=y.top,m=y.bottom;if(v<=g){var S=g-v;a=-Oj(S),l()}else if(v>=m){var C=v-m;a=Oj(C),l()}else s()}};return n.addEventListener("mousedown",c),n.ownerDocument.addEventListener("mouseup",d),n.ownerDocument.addEventListener("mousemove",u),function(){n.removeEventListener("mousedown",c),n.ownerDocument.removeEventListener("mouseup",d),n.ownerDocument.removeEventListener("mousemove",u),s()}}},[e])}var Nwe=10;function Dwe(e,t,r,n,i,o,a,s){var l=p.useRef(),c=p.useState(null),d=oe(c,2),u=d[0],f=d[1];return nr(function(){if(u&&u.times<Nwe){if(!e.current){f(function(L){return Q({},L)});return}o();var h=u.targetAlign,v=u.originAlign,y=u.index,g=u.offset,m=e.current.clientHeight,S=!1,C=h,b=null;if(m){for(var w=h||v,E=0,_=0,R=0,P=Math.min(t.length-1,y),I=0;I<=P;I+=1){var O=i(t[I]);_=E;var A=r.get(O);R=_+(A===void 0?n:A),E=R}for(var x=w==="top"?g:m-g,T=P;T>=0;T-=1){var D=i(t[T]),k=r.get(D);if(k===void 0){S=!0;break}if(x-=k,x<=0)break}switch(w){case"top":b=_-g;break;case"bottom":b=R-m+g;break;default:{var j=e.current.scrollTop,N=j+m;_<j?C="top":R>N&&(C="bottom")}}b!==null&&a(b),b!==u.lastTop&&(S=!0)}S&&f(Q(Q({},u),{},{times:u.times+1,targetAlign:C,lastTop:b}))}},[u,e.current]),function(h){if(h==null){s();return}if(Gt.cancel(l.current),typeof h=="number")a(h);else if(h&&Pt(h)==="object"){var v,y=h.align;"index"in h?v=h.index:v=t.findIndex(function(S){return i(S)===h.key});var g=h.offset,m=g===void 0?0:g;f({times:0,index:v,offset:m,originAlign:y})}}}var Tj=p.forwardRef(function(e,t){var r=e.prefixCls,n=e.rtl,i=e.scrollOffset,o=e.scrollRange,a=e.onStartMove,s=e.onStopMove,l=e.onScroll,c=e.horizontal,d=e.spinSize,u=e.containerSize,f=e.style,h=e.thumbStyle,v=e.showScrollBar,y=p.useState(!1),g=oe(y,2),m=g[0],S=g[1],C=p.useState(null),b=oe(C,2),w=b[0],E=b[1],_=p.useState(null),R=oe(_,2),P=R[0],I=R[1],O=!n,A=p.useRef(),x=p.useRef(),T=p.useState(v),D=oe(T,2),k=D[0],j=D[1],N=p.useRef(),L=function(){v===!0||v===!1||(clearTimeout(N.current),j(!0),N.current=setTimeout(function(){j(!1)},3e3))},M=o-u||0,$=u-d||0,F=p.useMemo(function(){if(i===0||M===0)return 0;var Y=i/M;return Y*$},[i,M,$]),z=function(G){G.stopPropagation(),G.preventDefault()},H=p.useRef({top:F,dragging:m,pageY:w,startTop:P});H.current={top:F,dragging:m,pageY:w,startTop:P};var U=function(G){S(!0),E(l$(G,c)),I(H.current.top),a(),G.stopPropagation(),G.preventDefault()};p.useEffect(function(){var Y=function(ne){ne.preventDefault()},G=A.current,re=x.current;return G.addEventListener("touchstart",Y,{passive:!1}),re.addEventListener("touchstart",U,{passive:!1}),function(){G.removeEventListener("touchstart",Y),re.removeEventListener("touchstart",U)}},[]);var V=p.useRef();V.current=M;var W=p.useRef();W.current=$,p.useEffect(function(){if(m){var Y,G=function(ne){var te=H.current,pe=te.dragging,le=te.pageY,ye=te.startTop;Gt.cancel(Y);var Se=A.current.getBoundingClientRect(),_e=u/(c?Se.width:Se.height);if(pe){var De=(l$(ne,c)-le)*_e,be=ye;!O&&c?be-=De:be+=De;var se=V.current,Pe=W.current,Te=Pe?be/Pe:0,ze=Math.ceil(Te*se);ze=Math.max(ze,0),ze=Math.min(ze,se),Y=Gt(function(){l(ze,c)})}},re=function(){S(!1),s()};return window.addEventListener("mousemove",G,{passive:!0}),window.addEventListener("touchmove",G,{passive:!0}),window.addEventListener("mouseup",re,{passive:!0}),window.addEventListener("touchend",re,{passive:!0}),function(){window.removeEventListener("mousemove",G),window.removeEventListener("touchmove",G),window.removeEventListener("mouseup",re),window.removeEventListener("touchend",re),Gt.cancel(Y)}}},[m]),p.useEffect(function(){return L(),function(){clearTimeout(N.current)}},[i]),p.useImperativeHandle(t,function(){return{delayHidden:L}});var K="".concat(r,"-scrollbar"),Z={position:"absolute",visibility:k?null:"hidden"},q={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return c?(Object.assign(Z,{height:8,left:0,right:0,bottom:0}),Object.assign(q,J({height:"100%",width:d}
252,O?"left":"right",F))):(Object.assign(Z,J({width:8,top:0,bottom:0},O?"right":"left",0)),Object.assign(q,{width:"100%",height:d,top:F})),p.createElement("div",{ref:A,className:ie(K,J(J(J({},"".concat(K,"-horizontal"),c),"".concat(K,"-vertical"),!c),"".concat(K,"-visible"),k)),style:Q(Q({},Z),f),onMouseDown:z,onMouseMove:L},p.createElement("div",{ref:x,className:ie("".concat(K,"-thumb"),J({},"".concat(K,"-thumb-moving"),m)),style:Q(Q({},q),h),onMouseDown:U}))}),Lwe=20;function Aj(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=e/t*e;return isNaN(r)&&(r=0),r=Math.max(r,Lwe),Math.floor(r)}var jwe=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Fwe=[],zwe={overflowY:"auto",overflowAnchor:"none"};function Bwe(e,t){var r=e.prefixCls,n=r===void 0?"rc-virtual-list":r,i=e.className,o=e.height,a=e.itemHeight,s=e.fullHeight,l=s===void 0?!0:s,c=e.style,d=e.data,u=e.children,f=e.itemKey,h=e.virtual,v=e.direction,y=e.scrollWidth,g=e.component,m=g===void 0?"div":g,S=e.onScroll,C=e.onVirtualScroll,b=e.onVisibleChange,w=e.innerProps,E=e.extraRender,_=e.styles,R=e.showScrollBar,P=R===void 0?"optional":R,I=Nt(e,jwe),O=p.useCallback(function(He){return typeof f=="function"?f(He):He==null?void 0:He[f]},[f]),A=Mwe(O,null,null),x=oe(A,4),T=x[0],D=x[1],k=x[2],j=x[3],N=!!(h!==!1&&o&&a),L=p.useMemo(function(){return Object.values(k.maps).reduce(function(He,ct){return He+ct},0)},[k.id,k.maps]),M=N&&d&&(Math.max(a*d.length,L)>o||!!y),$=v==="rtl",F=ie(n,J({},"".concat(n,"-rtl"),$),i),z=d||Fwe,H=p.useRef(),U=p.useRef(),V=p.useRef(),W=p.useState(0),K=oe(W,2),Z=K[0],q=K[1],Y=p.useState(0),G=oe(Y,2),re=G[0],ee=G[1],ne=p.useState(!1),te=oe(ne,2),pe=te[0],le=te[1],ye=function(){le(!0)},Se=function(){le(!1)},_e={getKey:O};function De(He){q(function(ct){var at;typeof He=="function"?at=He(ct):at=He;var Je=gt(at);return H.current.scrollTop=Je,Je})}var be=p.useRef({start:0,end:z.length}),se=p.useRef(),Pe=xwe(z,O),Te=oe(Pe,1),ze=Te[0];se.current=ze;var ke=p.useMemo(function(){if(!N)return{scrollHeight:void 0,start:0,end:z.length-1,offset:void 0};if(!M){var He;return{scrollHeight:((He=U.current)===null||He===void 0?void 0:He.offsetHeight)||0,start:0,end:z.length-1,offset:void 0}}for(var ct=0,at,Je,ut,st=z.length,_t=0;_t<st;_t+=1){var zt=z[_t],ht=O(zt),dt=k.get(ht),Et=ct+(dt===void 0?a:dt);Et>=Z&&at===void 0&&(at=_t,Je=ct),Et>Z+o&&ut===void 0&&(ut=_t),ct=Et}return at===void 0&&(at=0,Je=0,ut=Math.ceil(o/a)),ut===void 0&&(ut=z.length-1),ut=Math.min(ut+1,z.length-1),{scrollHeight:ct,start:at,end:ut,offset:Je}},[M,N,Z,z,j,o]),Me=ke.scrollHeight,qe=ke.start,Le=ke.end,xe=ke.offset;be.current.start=qe,be.current.end=Le,p.useLayoutEffect(function(){var He=k.getRecord();if(He.size===1){var ct=Array.from(He.keys())[0],at=He.get(ct),Je=z[qe];if(Je&&at===void 0){var ut=O(Je);if(ut===ct){var st=k.get(ct),_t=st-a;De(function(zt){return zt+_t})}}}k.resetRecord()},[Me]);var je=p.useState({width:0,height:o}),Ee=oe(je,2),Re=Ee[0],me=Ee[1],ce=function(ct){me({width:ct.offsetWidth,height:ct.offsetHeight})},Ae=p.useRef(),We=p.useRef(),lt=p.useMemo(function(){return Aj(Re.width,y)},[Re.width,y]),yt=p.useMemo(function(){return Aj(Re.height,Me)},[Re.height,Me]),nt=Me-o,it=p.useRef(nt);it.current=nt;function gt(He){var ct=He;return Number.isNaN(it.current)||(ct=Math.min(ct,it.current)),ct=Math.max(ct,0),ct}var Ye=Z<=0,vt=Z>=nt,mt=re<=0,St=re>=y,pt=oZ(Ye,vt,mt,St),Rt=function(){return{x:$?-re:re,y:Z}},ae=p.useRef(Rt()),ue=lr(function(He){if(C){var ct=Q(Q({},Rt()),He);(ae.current.x!==ct.x||ae.current.y!==ct.y)&&(C(ct),ae.current=ct)}});function ve(He,ct){var at=He;ct?(Qo.flushSync(function(){ee(at)}),ue()):De(at)}function Ce(He){var ct=He.currentTarget.scrollTop;ct!==Z&&De(ct),S==null||S(He),ue()}var Fe=function(ct){var at=ct,Je=y?y-Re.width:0;return at=Math.max(at,0),at=Math.min(at,Je),at},Ze=lr(function(He,ct){ct?(Qo.flushSync(function(){ee(function(at){var Je=at+($?-He:He);return Fe(Je)})}),ue()):De(function(at){var Je=at+He;return Je})}),et=Owe(N,Ye,vt,mt,St,!!y,Ze),tt=oe(et,2),ot=tt[0],rt=tt[1];$we(N,H,function(He,ct,at,Je){var ut=Je;return pt(He,ct,at)?!1:!ut||!ut._virtualHandled?(ut&&(ut._virtualHandled=!0),ot({preventDefault:function(){},deltaX:He?ct:0,deltaY:He?0:ct}),!0):!1}
252),kwe(M,H,function(He){De(function(ct){return ct+He})}),nr(function(){function He(at){var Je=Ye&&at.detail<0,ut=vt&&at.detail>0;N&&!Je&&!ut&&at.preventDefault()}var ct=H.current;return ct.addEventListener("wheel",ot,{passive:!1}),ct.addEventListener("DOMMouseScroll",rt,{passive:!0}),ct.addEventListener("MozMousePixelScroll",He,{passive:!1}),function(){ct.removeEventListener("wheel",ot),ct.removeEventListener("DOMMouseScroll",rt),ct.removeEventListener("MozMousePixelScroll",He)}},[N,Ye,vt]),nr(function(){if(y){var He=Fe(re);ee(He),ue({x:He})}},[Re.width,y]);var ft=function(){var ct,at;(ct=Ae.current)===null||ct===void 0||ct.delayHidden(),(at=We.current)===null||at===void 0||at.delayHidden()},ge=Dwe(H,z,k,a,O,function(){return D(!0)},De,ft);p.useImperativeHandle(t,function(){return{nativeElement:V.current,getScrollInfo:Rt,scrollTo:function(ct){function at(Je){return Je&&Pt(Je)==="object"&&("left"in Je||"top"in Je)}at(ct)?(ct.left!==void 0&&ee(Fe(ct.left)),ge(ct.top)):ge(ct)}}}),nr(function(){if(b){var He=z.slice(qe,Le+1);b(He,z)}},[qe,Le,z]);var we=Twe(z,O,k,a),Ie=E==null?void 0:E({start:qe,end:Le,virtual:M,offsetX:re,offsetY:xe,rtl:$,getSize:we}),Ne=Pwe(z,qe,Le,y,re,T,u,_e),Be=null;o&&(Be=Q(J({},l?"height":"maxHeight",o),zwe),N&&(Be.overflowY="hidden",y&&(Be.overflowX="hidden"),pe&&(Be.pointerEvents="none")));var Xe={};return $&&(Xe.dir="rtl"),p.createElement("div",$e({ref:V,style:Q(Q({},c),{},{position:"relative"}),className:F},Xe,I),p.createElement(ao,{onResize:ce},p.createElement(m,{className:"".concat(n,"-holder"),style:Be,ref:H,onScroll:Ce,onMouseEnter:ft},p.createElement(iZ,{prefixCls:n,height:Me,offsetX:re,offsetY:xe,scrollWidth:y,onInnerResize:D,ref:U,innerProps:w,rtl:$,extra:Ie},Ne))),M&&Me>o&&p.createElement(Tj,{ref:Ae,prefixCls:n,scrollOffset:Z,scrollRange:Me,rtl:$,onScroll:ve,onStartMove:ye,onStopMove:Se,spinSize:yt,containerSize:Re.height,style:_==null?void 0:_.verticalScrollBar,thumbStyle:_==null?void 0:_.verticalScrollBarThumb,showScrollBar:P}),M&&y>Re.width&&p.createElement(Tj,{ref:We,prefixCls:n,scrollOffset:re,scrollRange:y,rtl:$,onScroll:ve,onStartMove:ye,onStopMove:Se,spinSize:lt,containerSize:Re.width,horizontal:!0,style:_==null?void 0:_.horizontalScrollBar,thumbStyle:_==null?void 0:_.horizontalScrollBarThumb,showScrollBar:P}))}var aZ=p.forwardRef(Bwe);aZ.displayName="List";function Hwe(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Vwe=["disabled","title","children","style","className"];function Mj(e){return typeof e=="string"||typeof e=="number"}var Uwe=function(t,r){var n=xbe(),i=n.prefixCls,o=n.id,a=n.open,s=n.multiple,l=n.mode,c=n.searchValue,d=n.toggleOpen,u=n.notFoundContent,f=n.onPopupScroll,h=p.useContext(B4),v=h.maxCount,y=h.flattenOptions,g=h.onActiveValue,m=h.defaultActiveFirstOption,S=h.onSelect,C=h.menuItemSelectedIcon,b=h.rawValues,w=h.fieldNames,E=h.virtual,_=h.direction,R=h.listHeight,P=h.listItemHeight,I=h.optionRender,O="".concat(i,"-item"),A=Qy(function(){return y},[a,y],function(Y,G){return G[0]&&Y[1]!==G[1]}),x=p.useRef(null),T=p.useMemo(function(){return s&&o$(v)&&(b==null?void 0:b.size)>=v},[s,v,b==null?void 0:b.size]),D=function(G){G.preventDefault()},k=function(G){var re;(re=x.current)===null||re===void 0||re.scrollTo(typeof G=="number"?{index:G}:G)},j=p.useCallback(function(Y){return l==="combobox"?!1:b.has(Y)},[l,Ge(b).toString(),b.size]),N=function(G){for(var re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ee=A.length,ne=0;ne<ee;ne+=1){var te=(G+ne*re+ee)%ee,pe=A[te]||{},le=pe.group,ye=pe.data;if(!le&&!(ye!=null&&ye.disabled)&&(j(ye.value)||!T))return te}return-1},L=p.useState(function(){return N(0)}),M=oe(L,2),$=M[0],F=M[1],z=function(G){var re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;F(G);var ee={source:re?"keyboard":"mouse"},ne=A[G];if(!ne){g(null,-1,ee);return}g(ne.value,G,ee)};p.useEffect(function(){z(m!==!1?N(0):-1)},[A.length,c]);var H=p.useCallback(function(Y){return l==="combobox"?String(Y).toLowerCase()===c.toLowerCase():b.has(Y)},[l,c,Ge(b).toString(),b.size]);p.useEffect(function(){var Y=setTimeout(function(){if(!s&&a&&b.size===1){var re=Array.from(b)[0],ee=A.findIndex(function(ne){var te=ne.data;return c?String(te.value).startsWith(c):te.value===re});ee!==-1&&(z(ee),k(ee))}});if(a){var G;(G=x.current)===null||G===void 0||G.scrollTo(void 0)}return function(){return clearTimeout(Y)}},[a,c]);var U=function(G){G!==void 0&&S(G,{selected:!b.has(G)}),s||d(!1)};if(p.useImperativeHandle(r,function(){return{onKeyDown:function(G){var re=G.which,ee=G.ctrlKey;
252switch(re){case Ue.N:case Ue.P:case Ue.UP:case Ue.DOWN:{var ne=0;if(re===Ue.UP?ne=-1:re===Ue.DOWN?ne=1:Hwe()&&ee&&(re===Ue.N?ne=1:re===Ue.P&&(ne=-1)),ne!==0){var te=N($+ne,ne);k(te),z(te,!0)}break}case Ue.TAB:case Ue.ENTER:{var pe,le=A[$];le&&!(le!=null&&(pe=le.data)!==null&&pe!==void 0&&pe.disabled)&&!T?U(le.value):U(void 0),a&&G.preventDefault();break}case Ue.ESC:d(!1),a&&G.stopPropagation()}},onKeyUp:function(){},scrollTo:function(G){k(G)}}}),A.length===0)return p.createElement("div",{role:"listbox",id:"".concat(o,"_list"),className:"".concat(O,"-empty"),onMouseDown:D},u);var V=Object.keys(w).map(function(Y){return w[Y]}),W=function(G){return G.label};function K(Y,G){var re=Y.group;return{role:re?"presentation":"option",id:"".concat(o,"_list_").concat(G)}}var Z=function(G){var re=A[G];if(!re)return null;var ee=re.data||{},ne=ee.value,te=re.group,pe=lo(ee,!0),le=W(re);return re?p.createElement("div",$e({"aria-label":typeof le=="string"&&!te?le:null},pe,{key:G},K(re,G),{"aria-selected":H(ne)}),ne):null},q={role:"listbox",id:"".concat(o,"_list")};return p.createElement(p.Fragment,null,E&&p.createElement("div",$e({},q,{style:{height:0,width:0,overflow:"hidden"}}),Z($-1),Z($),Z($+1)),p.createElement(aZ,{itemKey:"key",ref:x,data:A,height:R,itemHeight:P,fullHeight:!1,onMouseDown:D,onScroll:f,virtual:E,direction:_,innerProps:E?null:q},function(Y,G){var re=Y.group,ee=Y.groupOption,ne=Y.data,te=Y.label,pe=Y.value,le=ne.key;if(re){var ye,Se=(ye=ne.title)!==null&&ye!==void 0?ye:Mj(te)?te.toString():void 0;return p.createElement("div",{className:ie(O,"".concat(O,"-group"),ne.className),title:Se},te!==void 0?te:le)}var _e=ne.disabled,De=ne.title;ne.children;var be=ne.style,se=ne.className,Pe=Nt(ne,Vwe),Te=Dn(Pe,V),ze=j(pe),ke=_e||!ze&&T,Me="".concat(O,"-option"),qe=ie(O,Me,se,J(J(J(J({},"".concat(Me,"-grouped"),ee),"".concat(Me,"-active"),$===G&&!ke),"".concat(Me,"-disabled"),ke),"".concat(Me,"-selected"),ze)),Le=W(Y),xe=!C||typeof C=="function"||ze,je=typeof Le=="number"?Le:Le||pe,Ee=Mj(je)?
252je.toString():void 0;return De!==void 0&&(Ee=De),p.createElement("div",$e({},lo(Te),E?{}:K(Y,G),{"aria-selected":H(pe),className:qe,title:Ee,onMouseMove:function(){$===G||ke||z(G)},onClick:function(){ke||U(pe)},style:be}),p.createElement("div",{className:"".concat(Me,"-content")},typeof I=="function"?I(Y,{index:G}):je),p.isValidElement(C)||ze,xe&&p.createElement(I_,{className:"".concat(O,"-option-state"),customizeIcon:C,customizeIconProps:{value:pe,disabled:ke,isSelected:ze}},ze?"✓":null))}))},Wwe=p.forwardRef(Uwe);const qwe=function(e,t){var r=p.useRef({values:new Map,options:new Map}),n=p.useMemo(function(){var o=r.current,a=o.values,s=o.options,l=e.map(function(u){if(u.label===void 0){var f;return Q(Q({},u),{},{label:(f=a.get(u.value))===null||f===void 0?void 0:f.label})}return u}),c=new Map,d=new Map;return l.forEach(function(u){c.set(u.value,u),d.set(u.value,t.get(u.value)||s.get(u.value))}),r.current.values=c,r.current.options=d,l},[e,t]),i=p.useCallback(function(o){return t.get(o)||r.current.options.get(o)},[t]);return[n,i]};function lI(e,t){return tZ(e).join("").toUpperCase().includes(t)}const Gwe=function(e,t,r,n,i){return p.useMemo(function(){if(!r||n===!1)return e;var o=t.options,a=t.label,s=t.value,l=[],c=typeof n=="function",d=r.toUpperCase(),u=c?n:function(h,v){return i?lI(v[i],d):v[o]?lI(v[a!=="children"?a:"label"],d):lI(v[s],d)},f=c?function(h){return a$(h)}:function(h){return h};return e.forEach(function(h){if(h[o]){var v=u(r,f(h));if(v)l.push(h);else{var y=h[o].filter(function(g){return u(r,f(g))});y.length&&l.push(Q(Q({},h),{},J({},o,y)))}return}u(r,f(h))&&l.push(h)}),l},[e,n,i,r,t])};var $j=0,Kwe=Pi();function Ywe(){var e;return Kwe?(e=$j,$j+=1):e="TEST_OR_SSR",e}function Xwe(e){var t=p.useState(),r=oe(t,2),n=r[0],i=r[1];return p.useEffect(function(){i("rc_select_".concat(Ywe()))},[]),e||n}var Qwe=["children","value"],Jwe=["children"];function Zwe(e){var t=e,r=t.key,n=t.props,i=n.children,o=n.value,a=Nt(n,Qwe);return Q({key:r,value:o!==void 0?o:r,children:i},a)}function sZ(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Jo(e).map(function(r,n){if(!p.isValidElement(r)||!r.type)return null;var i=r,o=i.type.isSelectOptGroup,a=i.key,s=i.props,l=s.children,c=Nt(s,Jwe);return t||!o?Zwe(r):Q(Q({key:"__RC_SELECT_GRP__".concat(a===null?n:a,"__"),label:a},c),{},{options:sZ(l)})}).filter(function(r){return r})}var e_e=function(t,r,n,i,o){return p.useMemo(function(){var a=t,s=!t;s&&(a=sZ(r));var l=new Map,c=new Map,d=function(h,v,y){y&&typeof y=="string"&&h.set(v[y],v)},u=function f(h){for(var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,y=0;y<h.length;y+=1){var g=h[y];!g[n.options]||v?(l.set(g[n.value],g),d(c,g,n.label),d(c,g,i),d(c,g,o)):f(g[n.options],!0)}};return u(a),{options:a,valueOptions:l,labelOptions:c}},[t,r,n,i,o])};function kj(e){var t=p.useRef();t.current=e;var r=p.useCallback(function(){return t.current.apply(t,arguments)},[]);return r}var t_e=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],r_e=["inputValue"];function n_e(e){return!e||Pt(e)!=="object"}var i_e=p.forwardRef(function(e,t){var r=e.id,n=e.mode,i=e.prefixCls,o=i===void 0?"rc-select":i,a=e.backfill,s=e.fieldNames,l=e.inputValue,c=e.searchValue,d=e.onSearch,u=e.autoClearSearchValue,f=u===void 0?!0:u,h=e.onSelect,v=e.onDeselect,y=e.dropdownMatchSelectWidth,g=y===void 0?!0:y,m=e.filterOption,S=e.filterSort,C=e.optionFilterProp,b=e.optionLabelProp,w=e.options,E=e.optionRender,_=e.children,R=e.defaultActiveFirstOption,P=e.menuItemSelectedIcon,I=e.virtual,O=e.direction,A=e.listHeight,x=A===void 0?200:A,T=e.listItemHeight,D=T===void 0?20:T,k=e.labelRender,j=e.value,N=e.defaultValue,L=e.labelInValue,M=e.onChange,$=e.maxCount,F=Nt(e,t_e),z=Xwe(r),H=s$(n),U=!!(!w&&_),V=p.useMemo(function(){return m===void 0&&n==="combobox"?!1:m},[m,n]),W=p.useMemo(function(){return nZ(s,U)},[JSON.stringify(s),U]),K=Or("",{value:c!==void 0?c:l,postState:function(ve){return ve||""}}),Z=oe(K,2),q=Z[0],Y=Z[1],G=e_e(w,_,W,C,b),re=G.valueOptions,ee=G.labelOptions,ne=G.options,te=p.useCallback(function(ue){var ve=tZ(ue);return ve.map(function(Ce){var Fe,Ze,et,tt,ot;if(n_e(Ce))Fe=Ce;else{var rt;et=Ce.key,Ze=Ce.label,Fe=(rt=Ce.value)!==null&&rt!==void 0?rt:et}var ft=re.get(Fe);if(ft){var ge;Ze===void 0&&(Ze=ft==null?void 0:ft[b||W.label]),et===void 0&&(et=(ge=ft==null?void 0:ft.key)!==null&&ge!==void 0?ge:Fe),tt=ft==null?void 0:ft.disabled,ot=ft==null?void 0:ft.title}return{label:Ze,value:Fe,key:et,disabled:tt,title:ot}})},[W,b,re]),pe=Or(N,{value:j}),le=oe(pe,2),ye=le[0],Se=le[1],_e=p.useMemo(function(){var ue,ve=H&&ye===null?[]:ye,Ce=te(ve);return n==="combobox"&&Ybe((ue=Ce[0])===null||ue===void 0?void 0:ue.value)?[]:Ce},[ye,te,n,H]),De=qwe(_e,re),be=oe(De,2),se=be[0],Pe=be[1],Te=p.useMemo(function(){if(!n&&se.length===1){var ue=se[0];if(ue.value===null&&(ue.label===null||ue.label===void 0))return[]}return se.map(function(ve){var Ce;return Q(Q({},ve),{},{label:(Ce=typeof k=="function"?k(ve):ve.label)!==null&&Ce!==void 0?Ce:ve.value})})},[n,se,k]),ze=p.useMemo(function(){return new Set(se.map(function(ue){return ue.value}))},[se]);p.useEffect(function(){if(n==="combobox"){var ue,ve=(ue=se[0])===null||ue===void 0?void 0:ue.value;Y(Kbe(ve)?String(ve):"")}},[se]);var ke=kj(function(ue,ve){var Ce=ve??ue;return J(J({},W.value,ue),W.label,Ce)}),Me=p.useMemo(function(){if(n!=="tags")return ne;var ue=Ge(ne),ve=function(Fe){return re.has(Fe)};return Ge(se).sort(function(Ce,Fe){return Ce.value<Fe.value?-1:1}
252).forEach(function(Ce){var Fe=Ce.value;ve(Fe)||ue.push(ke(Fe,Ce.label))}),ue},[ke,ne,re,se,n]),qe=Gwe(Me,W,q,V,C),Le=p.useMemo(function(){return n!=="tags"||!q||qe.some(function(ue){return ue[C||"value"]===q})||qe.some(function(ue){return ue[W.value]===q})?qe:[ke(q)].concat(Ge(qe))},[ke,C,n,qe,q,W]),xe=function ue(ve){var Ce=Ge(ve).sort(function(Fe,Ze){return S(Fe,Ze,{searchValue:q})});return Ce.map(function(Fe){return Array.isArray(Fe.options)?Q(Q({},Fe),{},{options:Fe.options.length>0?ue(Fe.options):Fe.options}):Fe})},je=p.useMemo(function(){return S?xe(Le):Le},[Le,S,q]),Ee=p.useMemo(function(){return Swe(je,{fieldNames:W,childrenAsData:U})},[je,W,U]),Re=function(ve){var Ce=te(ve);if(Se(Ce),M&&(Ce.length!==se.length||Ce.some(function(et,tt){var ot;return((ot=se[tt])===null||ot===void 0?void 0:ot.value)!==(et==null?void 0:et.value)}))){var Fe=L?Ce:Ce.map(function(et){return et.value}),Ze=Ce.map(function(et){return a$(Pe(et.value))});M(H?Fe:Fe[0],H?Ze:Ze[0])}},me=p.useState(null),ce=oe(me,2),Ae=ce[0],We=ce[1],lt=p.useState(0),yt=oe(lt,2),nt=yt[0],it=yt[1],gt=R!==void 0?R:n!=="combobox",Ye=p.useCallback(function(ue,ve){var Ce=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Fe=Ce.source,Ze=Fe===void 0?"keyboard":Fe;it(ve),a&&n==="combobox"&&ue!==null&&Ze==="keyboard"&&We(String(ue))},[a,n]),vt=function(ve,Ce,Fe){var Ze=function(){var Be,Xe=Pe(ve);return[L?{label:Xe==null?void 0:Xe[W.label],value:ve,key:(Be=Xe==null?void 0:Xe.key)!==null&&Be!==void 0?Be:ve}:ve,a$(Xe)]};if(Ce&&h){var et=Ze(),tt=oe(et,2),ot=tt[0],rt=tt[1];h(ot,rt)}else if(!Ce&&v&&Fe!=="clear"){var ft=Ze(),ge=oe(ft,2),we=ge[0],Ie=ge[1];v(we,Ie)}},mt=kj(function(ue,ve){var Ce,Fe=H?ve.selected:!0;Fe?Ce=H?[].concat(Ge(se),[ue]):[ue]:Ce=se.filter(function(Ze){return Ze.value!==ue}),Re(Ce),vt(ue,Fe),n==="combobox"?We(""):(!s$||f)&&(Y(""),We(""))}),St=function(ve,Ce){Re(ve);var Fe=Ce.type,Ze=Ce.values;(Fe==="remove"||Fe==="clear")&&Ze.forEach(function(et){vt(et.value,!1,Fe)})},pt=function(ve,Ce){if(Y(ve),We(null),Ce.source==="submit"){var Fe=(ve||"").trim();if(Fe){var Ze=Array.from(new Set([].concat(Ge(ze),[Fe])));Re(Ze),vt(Fe,!0),Y("")}return}Ce.source!=="blur"&&(n==="combobox"&&Re(ve),d==null||d(ve))},Rt=function(ve){var Ce=ve;n!=="tags"&&(Ce=ve.map(function(Ze){var et=ee.get(Ze);return et==null?void 0:et.value}).filter(function(Ze){return Ze!==void 0}));var Fe=Array.from(new Set([].concat(Ge(ze),Ge(Ce))));Re(Fe),Fe.forEach(function(Ze){vt(Ze,!0)})},ae=p.useMemo(function(){var ue=I!==!1&&g!==!1;return Q(Q({},G),{},{flattenOptions:Ee,onActiveValue:Ye,defaultActiveFirstOption:gt,onSelect:mt,menuItemSelectedIcon:P,rawValues:ze,fieldNames:W,virtual:ue,direction:O,listHeight:x,listItemHeight:D,childrenAsData:U,maxCount:$,optionRender:E})},[$,G,Ee,Ye,gt,mt,P,ze,W,I,g,O,x,D,U,E]);return p.createElement(B4.Provider,{value:ae},p.createElement(Ewe,$e({},F,{id:z,prefixCls:o,ref:t,omitDomProps:r_e,mode:n,displayValues:Te,onDisplayValuesChange:St,direction:O,searchValue:q,onSearch:pt,autoClearSearchValue:f,onSearchSplit:Rt,dropdownMatchSelectWidth:g,OptionList:Wwe,emptyOptions:!Ee.length,activeValue:Ae,activeDescendantId:"".concat(z,"_list_").concat(nt)})))}),U4=i_e;U4.Option=V4;U4.OptGroup=H4;function kc(e,t,r){return ie({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:r})}const Td=(e,t)=>t||e,o_e=()=>{const[,e]=ko(),[t]=$o("Empty"),n=new ar(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return p.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},p.createElement("title",null,(t==null?void 0:t.description)||"Empty"),p.createElement("g",{fill:"none",fillRule:"evenodd"},p.createElement("g",{transform:"translate(24 31.67)"},p.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),p.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),p.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),p.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),p.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.51
2525c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),p.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),p.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},p.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),p.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},a_e=o_e,s_e=()=>{const[,e]=ko(),[t]=$o("Empty"),{colorFill:r,colorFillTertiary:n,colorFillQuaternary:i,colorBgContainer:o}=e,{borderColor:a,shadowColor:s,contentColor:l}=p.useMemo(()=>({borderColor:new ar(r).onBackground(o).toHexString(),shadowColor:new ar(n).onBackground(o).toHexString(),contentColor:new ar(i).onBackground(o).toHexString()}),[r,n,i,o]);return p.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},p.createElement("title",null,(t==null?void 0:t.description)||"Empty"),p.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},p.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),p.createElement("g",{fillRule:"nonzero",stroke:a},p.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),p.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:l}))))},l_e=s_e,c_e=e=>{const{componentCls:t,margin:r,marginXS:n,marginXL:i,fontSize:o,lineHeight:a}=e;return{[t]:{marginInline:n,fontSize:o,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:n,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:r},"&-normal":{marginBlock:i,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:n,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},u_e=Nr("Empty",e=>{const{componentCls:t,controlHeightLG:r,calc:n}=e,i=sr(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n(r).mul(2.5).equal(),emptyImgHeightMD:r,emptyImgHeightSM:n(r).mul(.875).equal()});return c_e(i)});var d_e=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const lZ=p.createElement(a_e,null),cZ=p.createElement(l_e,null),W4=e=>{var t;const{className:r,rootClassName:n,prefixCls:i,image:o,description:a,children:s,imageStyle:l,style:c,classNames:d,styles:u}=e,f=d_e(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:h,direction:v,className:y,style:g,classNames:m,styles:S,image:C}=Jn("empty"),b=h("empty",i),[w,E,_]=u_e(b),[R]=$o("Empty"),P=typeof a<"u"?a:R==null?void 0:R.description,I=typeof P=="string"?P:"empty",O=(t=o??C)!==null&&t!==void 0?t:lZ;let A=null;return typeof O=="string"?A=p.createElement("img",{alt:I,src:O}):A=O,w(p.createElement("div",Object.assign({className:ie(E,_,b,y,{[`${b}-normal`]:O===cZ,[`${b}-rtl`]:v==="rtl"},r,n,m.root,d==null?void 0:d.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},S.root),g),u==null?void 0:u.root),c)},f),p.createElement("div",{className:ie(`${b}-image`,m.image,d==null?void 0:d.image),style:Object.assign(Object.assign(Object.assign({},l),S.image),u==null?void 0:u.image)},A),P&&p.createElement("div",{className:ie(`${b}-description`,m.description,d==null?void 0:d.description),style:Object.assign(Object.assign({},S.description),u==null?void 0:u.description)},P),s&&p.createElement("div",{className:ie(`${b}-footer`,m.footer,d==null?void 0:d.footer),style:Object.assign(Object.assign({},S.footer),u==null?void 0:u.footer)},s)))};W4.PRESENTED_IMAGE_DEFAULT=lZ;W4.PRESENTED_IMAGE_SIMPLE=cZ;const Du=W4,f_e=e=>{const{componentName:t}=e,{getPrefixCls:r}=p.useContext(Vt),n=r("empty");switch(t){case"Table":case"List":return de.createElement(Du,{image:Du.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return de.createElement(Du,{image:Du.PRESENTED_IMAGE_SIMPLE,className:`${n}-small`});case"Table.filter":return null;default:return de.createElement(Du,null)}},p_e=f_e,h_e=(e,t,r=void 0)=>{var n,i;const{variant:o,[e]:a}=p.useContext(Vt),s=p.useContext(xJ),l=a==null?void 0:a.variant;let c;typeof t<"u"?c=t:r===!1?c="borderless":c=(i=(n=s??l)!==null&&n!==void 0?n:o)!==null&&i!==void 0?i:"outlined";const d=wge.includes(c);return[c,d]},Ad=h_e,v_e=e=>{const r={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},r),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},r),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},r),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},r),{points:["br","tr"],offset:[0,-4]})}};function g_e(e,t){return e||v_e(t)}const Nj=e=>{const{optionHeight:t,optionFontSize:r,optionLineHeight:n,optionPadding:i}=e;return{position:"relative",display:"block",minHeight:t,padding:i,color:e.colorText,fontWeight:"normal",fontSize:r,lineHeight:n,boxSizing:"border-box"}},m_e=e=>
vendor: 4,707 bytes, lines 252-265
252{const{antCls:t,componentCls:r}=e,n=`${r}-item`,i=`&${t}-slide-up-enter${t}-slide-up-enter-active`,o=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${r}-dropdown-placement-`,l=`${n}-option-selected`;return[{[`${r}-dropdown`]:Object.assign(Object.assign({},Kr(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`
253          ${i}${s}bottomLeft,
254          ${o}${s}bottomLeft
255        `]:{animationName:I4},[`
256          ${i}${s}topLeft,
257          ${o}${s}topLeft,
258          ${i}${s}topRight,
259          ${o}${s}topRight
260        `]:{animationName:O4},[`${a}${s}bottomLeft`]:{animationName:x4},[`
261          ${a}${s}topLeft,
262          ${a}${s}topRight
263        `]:{animationName:T4},"&-hidden":{display:"none"},[n]:Object.assign(Object.assign({},Nj(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},zs),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${n}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${n}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${n}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${n}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},Nj(e)),{color:e.colorTextDisabled})}),[`${l}:has(+ ${l})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${l}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},Cp(e,"slide-up"),Cp(e,"slide-down"),yb(e,"move-up"),yb(e,"move-down")]},y_e=m_e,uZ=e=>{const{multipleSelectItemHeight:t,paddingXXS:r,lineWidth:n,INTERNAL_FIXED_ITEM_MARGIN:i}=e,o=e.max(e.calc(r).sub(n).equal(),0),a=e.max(e.calc(o).sub(i).equal(),0);return{basePadding:o,containerPadding:a,itemHeight:fe(t),itemLineHeight:fe(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},S_e=e=>{const{multipleSelectItemHeight:t,selectHeight:r,lineWidth:n}=e;return e.calc(r).sub(t).div(2).sub(n).equal()},dZ=e=>{const{componentCls:t,iconCls:r,borderRadiusSM:n,motionDurationSlow:i,paddingXS:o,multipleItemColorDisabled:a,multipleItemBorderColorDisabled:s,colorIcon:l,colorIconHover:c,INTERNAL_FIXED_ITEM_MARGIN:d}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"calc(100% - 4px)",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:d,borderRadius:n,cursor:"default",transition:`font-size ${i}, line-height ${i}, height ${i}`,marginInlineEnd:e.calc(d).mul(2).equal(),paddingInlineStart:o,paddingInlineEnd:e.calc(o).div(2).equal(),[`${t}-disabled&`]:{color:a,borderColor:s,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(o).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},e0()),{display:"inline-flex",alignItems:"center",color:l,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},C_e=(e,t)=>{const{componentCls:r,INTERNAL_FIXED_ITEM_MARGIN:n}=e,i=`${r}-selection-overflow`,o=e.multipleSelectItemHeight,a=S_e(e),s=t?`${r}-${t}`:"",l=uZ(e);return{[`${r}-multiple${s}`]:Object.assign(Object.assign({},dZ(e)),{[`${r}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:l.basePadding,paddingBlock:l.containerPadding,borderRadius:e.borderRadius,[`${r}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${fe(n)} 0`,lineHeight:fe(o),visibility:"hidden",content:'"\\a0"'}},[`${r}-selection-item`]:{height:l.itemHeight,lineHeight:fe(l.itemLineHeight)},[`${r}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:fe(o),marginBlock:n}},[`${r}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l.basePadding).equal()},[`${i}-item + ${i}-item,
264        ${r}-prefix + ${r}-selection-wrap
265      `]:{[`${r}-selection-search`]:{marginInlineStart:0},[`${r}
265-selection-placeholder`]:{insetInlineStart:0}},[`${i}-item-suffix`]:{minHeight:l.itemHeight,marginBlock:n},[`${r}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(a).equal(),"\n          &-input,\n          &-mirror\n        ":{height:o,fontFamily:e.fontFamily,lineHeight:fe(o),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${r}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function cI(e,t){const{componentCls:r}=e,n=t?`${r}-${t}`:"",i={[`${r}-multiple${n}`]:{fontSize:e.fontSize,[`${r}-selector`]:{[`${r}-show-search&`]:{cursor:"text"}},[`
266        &${r}-show-arrow ${r}-selector,
267        &${r}-allow-clear ${r}-selector
268      `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[C_e(e,t),i]}const b_e=e=>{const{componentCls:t}=e,r=sr(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),n=sr(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[cI(e),cI(r,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}
268-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},cI(n,"lg")]},w_e=b_e;function uI(e,t){const{componentCls:r,inputPaddingHorizontalBase:n,borderRadius:i}=e,o=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),a=t?`${r}-${t}`:"";return{[`${r}-single${a}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${r}-selector`]:Object.assign(Object.assign({},Kr(e,!0)),{display:"flex",borderRadius:i,flex:"1 1 auto",[`${r}-selection-wrap:after`]:{lineHeight:fe(o)},[`${r}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
269          ${r}-selection-item,
270          ${r}-selection-placeholder
271        `]:{display:"block",padding:0,lineHeight:fe(o),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${r}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${r}-selection-item:empty:after`,`${r}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
272        &${r}-show-arrow ${r}-selection-item,
273        &${r}-show-arrow ${r}-selection-search,
274        &${r}-show-arrow ${r}
vendor: 1,124 bytes, lines 274-277
274-selection-placeholder
275      `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${r}-open ${r}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${r}-customize-input)`]:{[`${r}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${fe(n)}`,[`${r}-selection-search-input`]:{height:o,fontSize:e.fontSize},"&:after":{lineHeight:fe(o)}}},[`&${r}-customize-input`]:{[`${r}-selector`]:{"&:after":{display:"none"},[`${r}-selection-search`]:{position:"static",width:"100%"},[`${r}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${fe(n)}`,"&:after":{display:"none"}}}}}}}function __e(e){const{componentCls:t}=e,r=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[uI(e),uI(sr(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${fe(r)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(r).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
276            &${t}-show-arrow ${t}-selection-item,
277            &${t}-show-arrow ${t}
277-selection-placeholder
278          `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},uI(sr(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const E_e=e=>{const{fontSize:t,lineHeight:r,lineWidth:n,controlHeight:i,controlHeightSM:o,controlHeightLG:a,paddingXXS:s,controlPaddingHorizontal:l,zIndexPopupBase:c,colorText:d,fontWeightStrong:u,controlItemBgActive:f,controlItemBgHover:h,colorBgContainer:v,colorFillSecondary:y,colorBgContainerDisabled:g,colorTextDisabled:m,colorPrimaryHover:S,colorPrimary:C,controlOutline:b}=e,w=s*2,E=n*2,_=Math.min(i-w,i-E),R=Math.min(o-w,o-E),P=Math.min(a-w,a-E);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:c+50,optionSelectedColor:d,optionSelectedFontWeight:u,optionSelectedBg:f,optionActiveBg:h,optionPadding:`${(i-t*r)/2}px ${l}px`,optionFontSize:t,optionLineHeight:r,optionHeight:i,selectorBg:v,clearBg:v,singleItemHeightLG:a,multipleItemBg:y,multipleItemBorderColor:"transparent",multipleItemHeight:_,multipleItemHeightSM:R,multipleItemHeightLG:P,multipleSelectorBgDisabled:g,multipleItemColorDisabled:m,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:S,activeBorderColor:C,activeOutlineColor:b,selectAffixPadding:s}},fZ=(e,t)=>{const{componentCls:r,antCls:n,controlOutlineWidth:i}=e;return{[`&:not(${r}-customize-input) ${r}-selector`]:{border:`${fe(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${r}-disabled):not(${r}-customize-input):not(${n}-pagination-size-changer)`]:{[`&:hover ${r}-selector`]:{borderColor:t.hoverBorderHover},[`${r}-focused& ${r}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${fe(i)} ${t.activeOutlineColor}`,outline:0},[`${r}-prefix`]:{color:t.color}}}},Dj=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},fZ(e,t))}),R_e=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},fZ(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),Dj(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),Dj(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${fe(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),pZ=(e,t)=>{const{componentCls:r,antCls:n}=e;return{[`&:not(${r}-customize-input) ${r}-selector`]:{background:t.bg,border:`${fe(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${r}-disabled):not(${r}-customize-input):not(${n}-pagination-size-changer)`]:{[`&:hover ${r}-selector`]:{background:t.hoverBg},[`${r}-focused& ${r}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},Lj=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},pZ(e,t))}),P_e=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},pZ(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),Lj(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),Lj(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${fe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),I_e=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${fe(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${fe(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),hZ=(e,t)=>{const{componentCls:r,antCls:n}=e;return{[`&:not(${r}-customize-input) ${r}-selector`]:{borderWidth:`0 0 ${fe(e.lineWidth)} 0`,borderStyle:`none none ${e.lineType} none`,borderColor:t.borderColor,background:e.selectorBg,borderRadius:0},[`&:not(${r}-disabled):not(${r}-customize-input):not(${n}-pagination-size-changer)`]:{[`&:hover ${r}-selector`]:{borderColor:t.hoverBorderHover},[`${r}-focused& ${r}-selector`]:{borderColor:t.activeBorderColor,outline:0},[`${r}-prefix`]:{color:t.color}}}},jj=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},hZ(e,t))}),x_e=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},hZ(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),jj(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),jj(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${fe(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),O_e=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},R_e(e)),P_e(e)),I_e(e)),x_e(e))}),T_e=O_e,A_e=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}
278-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},M_e=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},$_e=e=>{const{antCls:t,componentCls:r,inputPaddingHorizontalBase:n,iconCls:i}=e,o={[`${r}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[r]:Object.assign(Object.assign({},Kr(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${r}-customize-input) ${r}-selector`]:Object.assign(Object.assign({},A_e(e)),M_e(e)),[`${r}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},zs),{[`> ${t}-typography`]:{display:"inline"}}),[`${r}-selection-placeholder`]:Object.assign(Object.assign({},zs),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${r}-arrow`]:Object.assign(Object.assign({},e0()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[i]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${r}-suffix)`]:{pointerEvents:"auto"}},[`${r}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${r}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${r}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${r}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto",transform:"translateZ(0)","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":o,"&:hover":o}),[`${r}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${r}-has-feedback`]:{[`${r}-clear`]:{insetInlineEnd:e.calc(n).add(e.fontSize).add(e.paddingXS).equal()}}}}}},k_e=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},$_e(e),__e(e),w_e(e),y_e(e),{[`${t}-rtl`]:{direction:"rtl"}},i0(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},N_e=Nr("Select",(e,{rootPrefixCls:t})=>{const r=sr(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[k_e(r),T_e(r)]},E_e,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var D_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};const L_e=D_e;var j_e=function(t,r){return p.createElement(Jt,$e({},t,{ref:r,icon:L_e}))},F_e=p.forwardRef(j_e);const u0=F_e;var z_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};const B_e=z_e;var H_e=function(t,r){return p.createElement(Jt,$e({},t,{ref:r,icon:B_e}))},V_e=p.forwardRef(H_e);const x_=V_e;var U_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};const W_e=U_e;var q_e=function(t,r){return p.createElement(Jt,$e({},t,{ref:r,icon:W_e}))},G_e=p.forwardRef(q_e);const vZ=G_e;function gZ({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:r,removeIcon:n,loading:i,multiple:o,hasFeedback:a,prefixCls:s,showSuffixIcon:l,feedbackIcon:c,showArrow:d,componentName:u}){const f=t??p.createElement(Uc,null),h=m=>e===null&&!a&&!d?null:p.createElement(p.Fragment,null,l!==!1&&m,a&&c);let v=null;if(e!==void 0)v=h(e);else if(i)v=h(p.createElement($c,{spin:!0}));else{const m=`${s}-suffix`;v=({open:S,showSearch:C})=>h(S&&C?p.createElement(vZ,{className:m}):p.createElement(x_,{className:m}))}let y=null;r!==void 0?y=r:o?y=p.createElement(u0,null):y=null;let g=null;return n!==void 0?g=n:g=p.createElement(Tl,null),{clearIcon:f,suffixIcon:v,itemIcon:y,removeIcon:g}}function K_e(e){return de.useMemo(()=>
278{if(e)return(...t)=>de.createElement(wl,{space:!0},e.apply(void 0,t))},[e])}function Y_e(e,t){return t!==void 0?t:e!==null}var X_e=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const mZ="SECRET_COMBOBOX_MODE_DO_NOT_USE",Q_e=(e,t)=>{var r,n,i,o,a;const{prefixCls:s,bordered:l,className:c,rootClassName:d,getPopupContainer:u,popupClassName:f,dropdownClassName:h,listHeight:v=256,placement:y,listItemHeight:g,size:m,disabled:S,notFoundContent:C,status:b,builtinPlacements:w,dropdownMatchSelectWidth:E,popupMatchSelectWidth:_,direction:R,style:P,allowClear:I,variant:O,dropdownStyle:A,transitionName:x,tagRender:T,maxCount:D,prefix:k,dropdownRender:j,popupRender:N,onDropdownVisibleChange:L,onOpenChange:M,styles:$,classNames:F}=e,z=X_e(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix","dropdownRender","popupRender","onDropdownVisibleChange","onOpenChange","styles","classNames"]),{getPopupContainer:H,getPrefixCls:U,renderEmpty:V,direction:W,virtual:K,popupMatchSelectWidth:Z,popupOverflow:q}=p.useContext(Vt),{showSearch:Y,style:G,styles:re,className:ee,classNames:ne}=Jn("select"),[,te]=ko(),pe=g??(te==null?void 0:te.controlHeight),le=U("select",s),ye=U(),Se=R??W,{compactSize:_e,compactItemClassnames:De}=Wc(le,Se),[be,se]=Ad("select",O,l),Pe=fi(le),[Te,ze,ke]=N_e(le,Pe),Me=p.useMemo(()=>{const{mode:Fe}=e;if(Fe!=="combobox")return Fe===mZ?"combobox":Fe},[e.mode]),qe=Me==="multiple"||Me==="tags",Le=Y_e(e.suffixIcon,e.showArrow),xe=(r=_??E)!==null&&r!==void 0?r:Z,je=((n=$==null?void 0:$.popup)===null||n===void 0?void 0:n.root)||((i=re.popup)===null||i===void 0?void 0:i.root)||A,Ee=K_e(N||j),Re=M||L,{status:me,hasFeedback:ce,isFormItemInput:Ae,feedbackIcon:We}=p.useContext(Yi),lt=Td(me,b);let yt;C!==void 0?yt=C:Me==="combobox"?yt=null:yt=(V==null?void 0:V("Select"))||p.createElement(p_e,{componentName:"Select"});const{suffixIcon:nt,itemIcon:it,removeIcon:gt,clearIcon:Ye}=gZ(Object.assign(Object.assign({},z),{multiple:qe,hasFeedback:ce,feedbackIcon:We,showSuffixIcon:Le,prefixCls:le,componentName:"Select"})),vt=I===!0?{clearIcon:Ye}:I,mt=Dn(z,["suffixIcon","itemIcon"]),St=ie(((o=F==null?void 0:F.popup)===null||o===void 0?void 0:o.root)||((a=ne==null?void 0:ne.popup)===null||a===void 0?void 0:a.root)||f||h,{[`${le}-dropdown-${Se}`]:Se==="rtl"},d,ne.root,F==null?void 0:F.root,ke,Pe,ze),pt=Xi(Fe=>{var Ze;return(Ze=m??_e)!==null&&Ze!==void 0?Ze:Fe}),Rt=p.useContext(ra),ae=S??Rt,ue=ie({[`${le}-lg`]:pt==="large",[`${le}-sm`]:pt==="small",[`${le}-rtl`]:Se==="rtl",[`${le}-${be}`]:se,[`${le}-in-form-item`]:Ae},kc(le,lt,ce),De,ee,c,ne.root,F==null?void 0:F.root,d,ke,Pe,ze),ve=p.useMemo(()=>y!==void 0?y:Se==="rtl"?"bottomRight":"bottomLeft",[y,Se]),[Ce]=Od("SelectLike",je==null?void 0:je.zIndex);return Te(p.createElement(U4,Object.assign({ref:t,virtual:K,showSearch:Y},mt,{style:Object.assign(Object.assign(Object.assign(Object.assign({},re.root),$==null?void 0:$.root),G),P),dropdownMatchSelectWidth:xe,transitionName:Na(ye,"slide-up",x),builtinPlacements:g_e(w,q),listHeight:v,listItemHeight:pe,mode:Me,prefixCls:le,placement:ve,direction:Se,prefix:k,suffixIcon:nt,menuItemSelectedIcon:it,removeIcon:gt,allowClear:vt,notFoundContent:yt,className:ue,getPopupContainer:u||H,dropdownClassName:St,disabled:ae,dropdownStyle:Object.assign(Object.assign({},je),{zIndex:Ce}),maxCount:qe?D:void 0,tagRender:qe?T:void 0,dropdownRender:Ee,onDropdownVisibleChange:Re})))},Qp=p.forwardRef(Q_e),J_e=z4(Qp,"dropdownAlign");Qp.SECRET_COMBOBOX_MODE_DO_NOT_USE=mZ;Qp.Option=V4;Qp.OptGroup=H4;Qp._InternalPanelDoNotUseOrYouWillBeFired=J_e;
278const ks=Qp,Z_e=(e,t)=>{typeof(e==null?void 0:e.addEventListener)<"u"?e.addEventListener("change",t):typeof(e==null?void 0:e.addListener)<"u"&&e.addListener(t)},eEe=(e,t)=>{typeof(e==null?void 0:e.removeEventListener)<"u"?e.removeEventListener("change",t):typeof(e==null?void 0:e.removeListener)<"u"&&e.removeListener(t)},bp=["xxl","xl","lg","md","sm","xs"],tEe=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),rEe=e=>{const t=e,r=[].concat(bp).reverse();return r.forEach((n,i)=>{const o=n.toUpperCase(),a=`screen${o}Min`,s=`screen${o}`;if(!(t[a]<=t[s]))throw new Error(`${a}<=${s} fails : !(${t[a]}<=${t[s]})`);if(i<r.length-1){const l=`screen${o}Max`;if(!(t[s]<=t[l]))throw new Error(`${s}<=${l} fails : !(${t[s]}<=${t[l]})`);const d=`screen${r[i+1].toUpperCase()}Min`;if(!(t[l]<=t[d]))throw new Error(`${l}<=${d} fails : !(${t[l]}<=${t[d]})`)}}),e},nEe=()=>{const[,e]=ko(),t=tEe(rEe(e));return de.useMemo(()=>{const r=new Map;let n=-1,i={};return{responsiveMap:t,matchHandlers:{},dispatch(o){return i=o,r.forEach(a=>a(i)),r.size>=1},subscribe(o){return r.size||this.register(),n+=1,r.set(n,o),o(i),n},unsubscribe(o){r.delete(o),r.size||this.unregister()},register(){Object.entries(t).forEach(([o,a])=>{const s=({matches:c})=>{this.dispatch(Object.assign(Object.assign({},i),{[o]:c}))},l=window.matchMedia(a);Z_e(l,s),this.matchHandlers[a]={mql:l,listener:s},s(l)})},unregister(){Object.values(t).forEach(o=>{const a=this.matchHandlers[o];eEe(a==null?void 0:a.mql,a==null?void 0:a.listener)}),r.clear()}}},[e])},iEe=nEe;function yZ(){const[,e]=p.useReducer(t=>t+1,0);return e}function q4(e=!0,t={}){const r=p.useRef(t),n=yZ(),i=iEe();return nr(()=>{const o=i.subscribe(a=>{r.current=a,e&&n()});return()=>i.unsubscribe(o)},[]),r.current}const oEe=p.createContext({}),c$=oEe,aEe=e=>{const{antCls:t,componentCls:r,iconCls:n,avatarBg:i,avatarColor:o,containerSize:a,containerSizeLG:s,containerSizeSM:l,textFontSize:c,textFontSizeLG:d,textFontSizeSM:u,iconFontSize:f,iconFontSizeLG:h,iconFontSizeSM:v,borderRadius:y,borderRadiusLG:g,borderRadiusSM:m,lineWidth:S,lineType:C}=e,b=(w,E,_,R)=>({width:w,height:w,borderRadius:"50%",fontSize:E,[`&${r}-square`]:{borderRadius:R},[`&${r}-icon`]:{fontSize:_,[`> ${n}`]:{margin:0}}});return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({},Kr(e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:o,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:i,border:`${fe(S)} ${C} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),b(a,c,f,y)),{"&-lg":Object.assign({},b(s,d,h,g)),"&-sm":Object.assign({},b(l,u,v,m)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},sEe=e=>{const{componentCls:t,groupBorderColor:r,groupOverlapping:n,groupSpace:i}=e;return{[`${t}-group`]:{display:"inline-flex",[t]:{borderColor:r},"> *:not(:first-child)":{marginInlineStart:n}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:i}}}},lEe=e=>{const{controlHeight:t,controlHeightLG:r,controlHeightSM:n,fontSize:i,fontSizeLG:o,fontSizeXL:a,fontSizeHeading3:s,marginXS:l,marginXXS:c,colorBorderBg:d}=e;return{containerSize:t,containerSizeLG:r,containerSizeSM:n,textFontSize:i,textFontSizeLG:i,textFontSizeSM:i,iconFontSize:Math.round((o+a)/2),iconFontSizeLG:s,iconFontSizeSM:i,groupSpace:c,groupOverlapping:-l,groupBorderColor:d}},SZ=Nr("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:r}=e,n=sr(e,{avatarBg:r,avatarColor:t});return[aEe(n),sEe(n)]},lEe);var cEe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const uEe=p.forwardRef((e,t)=>
278{const{prefixCls:r,shape:n,size:i,src:o,srcSet:a,icon:s,className:l,rootClassName:c,style:d,alt:u,draggable:f,children:h,crossOrigin:v,gap:y=4,onError:g}=e,m=cEe(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","style","alt","draggable","children","crossOrigin","gap","onError"]),[S,C]=p.useState(1),[b,w]=p.useState(!1),[E,_]=p.useState(!0),R=p.useRef(null),P=p.useRef(null),I=ui(t,R),{getPrefixCls:O,avatar:A}=p.useContext(Vt),x=p.useContext(c$),T=()=>{if(!P.current||!R.current)return;const Y=P.current.offsetWidth,G=R.current.offsetWidth;Y!==0&&G!==0&&y*2<G&&C(G-y*2<Y?(G-y*2)/Y:1)};p.useEffect(()=>{w(!0)},[]),p.useEffect(()=>{_(!0),C(1)},[o]),p.useEffect(T,[y]);const D=()=>{(g==null?void 0:g())!==!1&&_(!1)},k=Xi(Y=>{var G,re;return(re=(G=i??(x==null?void 0:x.size))!==null&&G!==void 0?G:Y)!==null&&re!==void 0?re:"default"}),j=Object.keys(typeof k=="object"?k||{}:{}).some(Y=>["xs","sm","md","lg","xl","xxl"].includes(Y)),N=q4(j),L=p.useMemo(()=>{if(typeof k!="object")return{};const Y=bp.find(re=>N[re]),G=k[Y];return G?{width:G,height:G,fontSize:G&&(s||h)?G/2:18}:{}},[N,k]),M=O("avatar",r),$=fi(M),[F,z,H]=SZ(M,$),U=ie({[`${M}-lg`]:k==="large",[`${M}-sm`]:k==="small"}),V=p.isValidElement(o),W=n||(x==null?void 0:x.shape)||"circle",K=ie(M,U,A==null?void 0:A.className,`${M}-${W}`,{[`${M}-image`]:V||o&&E,[`${M}-icon`]:!!s},H,$,l,c,z),Z=typeof k=="number"?{width:k,height:k,fontSize:s?k/2:18}:{};let q;if(typeof o=="string"&&E)q=p.createElement("img",{src:o,draggable:f,srcSet:a,onError:D,alt:u,crossOrigin:v});else if(V)q=o;else if(s)q=s;else if(b||S!==1){const Y=`scale(${S})`,G={msTransform:Y,WebkitTransform:Y,transform:Y};q=p.createElement(ao,{onResize:T},p.createElement("span",{className:`${M}-string`,ref:P,style:Object.assign({},G)},h))}else q=p.createElement("span",{className:`${M}-string`,style:{opacity:0},ref:P},h);return F(p.createElement("span",Object.assign({},m,{style:Object.assign(Object.assign(Object.assign(Object.assign({},Z),L),A==null?void 0:A.style),d),className:K,ref:I}),q))}),CZ=uEe,wb=e=>e?typeof e=="function"?e():e:null;function G4(e){var t=e.children,r=e.prefixCls,n=e.id,i=e.overlayInnerStyle,o=e.bodyClassName,a=e.className,s=e.style;return p.createElement("div",{className:ie("".concat(r,"-content"),a),style:s},p.createElement("div",{className:ie("".concat(r,"-inner"),o),id:n,role:"tooltip",style:i},typeof t=="function"?t():t))}var af={shiftX:64,adjustY:1},sf={adjustX:1,shiftY:!0},pa=[0,0],dEe={left:{points:["cr","cl"],overflow:sf,offset:[-4,0],targetOffset:pa},right:{points:["cl","cr"],overflow:sf,offset:[4,0],targetOffset:pa},top:{points:["bc","tc"],overflow:af,offset:[0,-4],targetOffset:pa},bottom:{points:["tc","bc"],overflow:af,offset:[0,4],targetOffset:pa},topLeft:{points:["bl","tl"],overflow:af,offset:[0,-4],targetOffset:pa},leftTop:{points:["tr","tl"],overflow:sf,offset:[-4,0],targetOffset:pa},topRight:{points:["br","tr"],overflow:af,offset:[0,-4],targetOffset:pa},rightTop:{points:["tl","tr"],overflow:sf,offset:[4,0],targetOffset:pa},bottomRight:{points:["tr","br"],overflow:af,offset:[0,4],targetOffset:pa},rightBottom:{points:["bl","br"],overflow:sf,offset:[4,0],targetOffset:pa},bottomLeft:{points:["tl","bl"],overflow:af,offset:[0,4],targetOffset:pa},leftBottom:{points:["br","bl"],overflow:sf,offset:[-4,0],targetOffset:pa}},fEe=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],pEe=function(t,r){var n=t.overlayClassName,i=t.trigger,o=i===void 0?["hover"]:i,a=t.mouseEnterDelay,s=a===void 0?0:a,l=t.mouseLeaveDelay,c=l===void 0?.1:l,d=t.overlayStyle,u=t.prefixCls,f=u===void 0?"rc-tooltip":u,h=t.children,v=t.onVisibleChange,y=t.afterVisibleChange,g=t.transitionName,m=t.animation,S=t.motion,C=t.placement,b=C===void 0?"right":C,w=t.align,E=w===void 0?{}:w,_=t.destroyTooltipOnHide,R=_===void 0?!1:_,P=t.defaultVisible,I=t.getTooltipContainer,O=t.overlayInnerStyle;t.arrowContent;var A=t.overlay,x=t.id,T=t.showArrow,D=T===void 0?!0:T,k=t.classNames,j=t.styles,N=Nt(t,fEe),L=k4(x),M=p.useRef(null);p.useImperativeHandle(r,function(){return M.current});var $=Q({},N);"visible"in t&&($.popupVisible=t.visible);
278var F=function(){return p.createElement(G4,{key:"content",prefixCls:f,id:L,bodyClassName:k==null?void 0:k.body,overlayInnerStyle:Q(Q({},O),j==null?void 0:j.body)},A)},z=function(){var U=p.Children.only(h),V=(U==null?void 0:U.props)||{},W=Q(Q({},V),{},{"aria-describedby":A?L:null});return p.cloneElement(h,W)};return p.createElement(c0,$e({popupClassName:ie(n,k==null?void 0:k.root),prefixCls:f,popup:F,action:o,builtinPlacements:dEe,popupPlacement:b,ref:M,popupAlign:E,getPopupContainer:I,onPopupVisibleChange:v,afterPopupVisibleChange:y,popupTransitionName:g,popupAnimation:m,popupMotion:S,defaultPopupVisible:P,autoDestroy:R,mouseLeaveDelay:c,popupStyle:Q(Q({},d),j==null?void 0:j.root),mouseEnterDelay:s,arrow:D},$),z())};const hEe=p.forwardRef(pEe);function K4(e){const{sizePopupArrow:t,borderRadiusXS:r,borderRadiusOuter:n}=e,i=t/2,o=0,a=i,s=n*1/Math.sqrt(2),l=i-n*(1-1/Math.sqrt(2)),c=i-r*(1/Math.sqrt(2)),d=n*(Math.sqrt(2)-1)+r*(1/Math.sqrt(2)),u=2*i-c,f=d,h=2*i-s,v=l,y=2*i-o,g=a,m=i*Math.sqrt(2)+n*(Math.sqrt(2)-2),S=n*(Math.sqrt(2)-1),C=`polygon(${S}px 100%, 50% ${S}px, ${2*i-S}px 100%, ${S}px 100%)`,b=`path('M ${o} ${a} A ${n} ${n} 0 0 0 ${s} ${l} L ${c} ${d} A ${r} ${r} 0 0 1 ${u} ${f} L ${h} ${v} A ${n} ${n} 0 0 0 ${y} ${g} Z')`;return{arrowShadowWidth:m,arrowPath:b,arrowPolygon:C}}const bZ=(e,t,r)=>{const{sizePopupArrow:n,arrowPolygon:i,arrowPath:o,arrowShadowWidth:a,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:n,height:n,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:n,height:l(n).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,o]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${fe(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"}}},wZ=8;function Y4(e){const{contentRadius:t,limitVerticalRadius:r}=e,n=t>12?t+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:r?wZ:n}}function kS(e,t){return e?t:{}}function _Z(e,t,r){const{componentCls:n,boxShadowPopoverArrow:i,arrowOffsetVertical:o,arrowOffsetHorizontal:a}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}=r||{};return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},bZ(e,t,i)),{"&:before":{background:t}})]},kS(!!l.top,{[[`&-placement-top > ${n}-arrow`,`&-placement-topLeft > ${n}-arrow`,`&-placement-topRight > ${n}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${fe(a)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),kS(!!l.bottom,{[[`&-placement-bottom > ${n}-arrow`,`&-placement-bottomLeft > ${n}-arrow`,`&-placement-bottomRight > ${n}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${fe(a)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),kS(!!l.left,{[[`&-placement-left > ${n}-arrow`,`&-placement-leftTop > ${n}-arrow`,`&-placement-leftBottom > ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${n}-arrow`]:{top:o},[`&-placement-leftBottom > ${n}-arrow`]:{bottom:o}})),kS(!!l.right,{[[`&-placement-right > ${n}-arrow`,`&-placement-rightTop > ${n}-arrow`,`&-placement-rightBottom > ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${n}-arrow`]:{top:o},[`&-placement-rightBottom > ${n}-arrow`]:{bottom:o}}))}}function vEe(e,t,r,n){if(n===!1)return{adjustX:!1,adjustY:!1};const i=n&&typeof n=="object"?n:{},o={};switch(e){case"top":case"bottom":o.shiftX=t.arrowOffsetHorizontal*2+r,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=t.arrowOffsetVertical*2+r,o.shiftX=!0,o.adjustX=!0;break}const a=Object.assign(Object.assign({},o),i);
278return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}const Fj={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},gEe={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},mEe=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function yEe(e){const{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:n,offset:i,borderRadius:o,visibleFirst:a}=e,s=t/2,l={},c=Y4({contentRadius:o,limitVerticalRadius:!0});return Object.keys(Fj).forEach(d=>{const u=n&&gEe[d]||Fj[d],f=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(l[d]=f,mEe.has(d)&&(f.autoArrow=!1),d){case"top":case"topLeft":case"topRight":f.offset[1]=-s-i;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=s+i;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-s-i;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=s+i;break}if(n)switch(d){case"topLeft":case"bottomLeft":f.offset[0]=-c.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":f.offset[0]=c.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":f.offset[1]=-c.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":f.offset[1]=c.arrowOffsetHorizontal*2-s;break}f.overflow=vEe(d,c,t,r),a&&(f.htmlRegion="visibleFirst")}),l}const SEe=e=>{const{calc:t,componentCls:r,tooltipMaxWidth:n,tooltipColor:i,tooltipBg:o,tooltipBorderRadius:a,zIndexPopup:s,controlHeight:l,boxShadowSecondary:c,paddingSM:d,paddingXS:u,arrowOffsetHorizontal:f,sizePopupArrow:h}=e,v=t(a).add(h).add(f).equal(),y=t(a).mul(2).add(h).equal();return[{[r]:Object.assign(Object.assign(Object.assign(Object.assign({},Kr(e)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:n,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${r}-inner`]:{minWidth:y,minHeight:l,padding:`${fe(e.calc(d).div(2).equal())} ${fe(u)}`,color:`var(--ant-tooltip-color,${i})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:a,boxShadow:c,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:v},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${r}-inner`]:{borderRadius:e.min(a,wZ)}},[`${r}-content`]:{position:"relative"}}),IQ(e,(g,{darkColor:m})=>({[`&${r}-${g}`]:{[`${r}-inner`]:{backgroundColor:m},[`${r}-arrow`]:{"--antd-arrow-background-color":m}}}))),{"&-rtl":{direction:"rtl"}})},_Z(e,"var(--antd-arrow-background-color)"),{[`${r}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},CEe=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Y4({contentRadius:e.borderRadius,limitVerticalRadius:!0})),K4(sr(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),EZ=(e,t=!0)=>Nr("Tooltip",n=>{const{borderRadius:i,colorTextLightSolid:o,colorBgSpotlight:a}=n,s=sr(n,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:i,tooltipBg:a});return[SEe(s),g_(n,"zoom-big-fast")]},CEe,{resetStyle:!1,injectStyle:t})(e),bEe=Ac.map(e=>`${e}-inverse`),wEe=["success","processing","error","default","warning"];function RZ(e,t=!0){return t?[].concat(Ge(bEe),Ge(Ac)).includes(e):Ac.includes(e)}function _Ee(e){return wEe.includes(e)}function PZ(e,t){const r=RZ(t),n=ie({[`${e}-${t}`]:t&&r}),i={},o={},a=ASe(t).toRgb(),l=(.299*a.r+.587*a.g+.114*a.b)/255<.5?"#FFF":"#000";return t&&!r&&(i.background=t,i["--ant-tooltip-color"]=l,o["--antd-arrow-background-color"]=t),{className:n,overlayStyle:i,arrowStyle:o}}const EEe=e=>{const{prefixCls:t,className:r,placement:n="top",title:i,color:o,overlayInnerStyle:a}=e,{getPrefixCls:s}=p.useContext(Vt),l=s("tooltip",t),[c,d,u]=EZ(l),f=PZ(l,o),h=f.arrowStyle,v=Object.assign(Object.assign({},a),f.overlayStyle),y=ie(d,u,l,`${l}-pure`,`${l}-placement-${n}`,r,f.className);return c(p.createElement("div",{className:y,style:h},p.createElement("div",{className:`${l}-arrow`}),p.createElement(G4,Object.assign({},e,{className:d,prefixCls:l,overlayInnerStyle:v}),i)))},REe=EEe;var PEe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const IEe=p.forwardRef((e,t)=>
278{var r,n;const{prefixCls:i,openClassName:o,getTooltipContainer:a,color:s,overlayInnerStyle:l,children:c,afterOpenChange:d,afterVisibleChange:u,destroyTooltipOnHide:f,destroyOnHidden:h,arrow:v=!0,title:y,overlay:g,builtinPlacements:m,arrowPointAtCenter:S=!1,autoAdjustOverflow:C=!0,motion:b,getPopupContainer:w,placement:E="top",mouseEnterDelay:_=.1,mouseLeaveDelay:R=.1,overlayStyle:P,rootClassName:I,overlayClassName:O,styles:A,classNames:x}=e,T=PEe(e,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","destroyOnHidden","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),D=!!v,[,k]=ko(),{getPopupContainer:j,getPrefixCls:N,direction:L,className:M,style:$,classNames:F,styles:z}=Jn("tooltip"),H=c_(),U=p.useRef(null),V=()=>{var Le;(Le=U.current)===null||Le===void 0||Le.forceAlign()};p.useImperativeHandle(t,()=>{var Le,xe;return{forceAlign:V,forcePopupAlign:()=>{H.deprecated(!1,"forcePopupAlign","forceAlign"),V()},nativeElement:(Le=U.current)===null||Le===void 0?void 0:Le.nativeElement,popupElement:(xe=U.current)===null||xe===void 0?void 0:xe.popupElement}});const[W,K]=Or(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(n=e.defaultOpen)!==null&&n!==void 0?n:e.defaultVisible}),Z=!y&&!g&&y!==0,q=Le=>{var xe,je;K(Z?!1:Le),Z||((xe=e.onOpenChange)===null||xe===void 0||xe.call(e,Le),(je=e.onVisibleChange)===null||je===void 0||je.call(e,Le))},Y=p.useMemo(()=>{var Le,xe;let je=S;return typeof v=="object"&&(je=(xe=(Le=v.pointAtCenter)!==null&&Le!==void 0?Le:v.arrowPointAtCenter)!==null&&xe!==void 0?xe:S),m||yEe({arrowPointAtCenter:je,autoAdjustOverflow:C,arrowWidth:D?k.sizePopupArrow:0,borderRadius:k.borderRadius,offset:k.marginXXS,visibleFirst:!0})},[S,v,m,k]),G=p.useMemo(()=>y===0?y:g||y||"",[g,y]),re=p.createElement(wl,{space:!0},typeof G=="function"?G():G),ee=N("tooltip",i),ne=N(),te=e["data-popover-inject"];let pe=W;!("open"in e)&&!("visible"in e)&&Z&&(pe=!1);const le=p.isValidElement(c)&&!qQ(c)?c:p.createElement("span",null,c),ye=le.props,Se=!ye.className||typeof ye.className=="string"?ie(ye.className,o||`${ee}-open`):ye.className,[_e,De,be]=EZ(ee,!te),se=PZ(ee,s),Pe=se.arrowStyle,Te=ie(O,{[`${ee}-rtl`]:L==="rtl"},se.className,I,De,be,M,F.root,x==null?void 0:x.root),ze=ie(F.body,x==null?void 0:x.body),[ke,Me]=Od("Tooltip",T.zIndex),qe=p.createElement(hEe,Object.assign({},T,{zIndex:ke,showArrow:D,placement:E,mouseEnterDelay:_,mouseLeaveDelay:R,prefixCls:ee,classNames:{root:Te,body:ze},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Pe),z.root),$),P),A==null?void 0:A.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},z.body),l),A==null?void 0:A.body),se.overlayStyle)},getTooltipContainer:w||a||j,ref:U,builtinPlacements:Y,overlay:re,visible:pe,onVisibleChange:q,afterVisibleChange:d??u,arrowContent:p.createElement("span",{className:`${ee}-arrow-content`}),motion:{motionName:Na(ne,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:h??!!f}),pe?ka(le,{className:Se}):le);return _e(p.createElement(b4.Provider,{value:Me},qe))}),IZ=IEe;IZ._InternalPanelDoNotUseOrYouWillBeFired=REe;const co=IZ,xEe=e=>{const{componentCls:t,popoverColor:r,titleMinWidth:n,fontWeightStrong:i,innerPadding:o,boxShadowSecondary:a,colorTextHeading:s,borderRadiusLG:l,zIndexPopup:c,titleMarginBottom:d,colorBgElevated:u,popoverBg:f,titleBorderBottom:h,innerContentPadding:v,titlePadding:y}=e;return[{[t]:Object.assign(Object.assign({},Kr(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":u,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:f,backgroundClip:"padding-box",borderRadius:l,boxShadow:a,padding:o},[`${t}
278-title`]:{minWidth:n,marginBottom:d,color:s,fontWeight:i,borderBottom:h,padding:y},[`${t}-inner-content`]:{color:r,padding:v}})},_Z(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},OEe=e=>{const{componentCls:t}=e;return{[t]:Ac.map(r=>{const n=e[`${r}6`];return{[`&${t}-${r}`]:{"--antd-arrow-background-color":n,[`${t}-inner`]:{backgroundColor:n},[`${t}-arrow`]:{background:"transparent"}}}})}},TEe=e=>{const{lineWidth:t,controlHeight:r,fontHeight:n,padding:i,wireframe:o,zIndexPopupBase:a,borderRadiusLG:s,marginXS:l,lineType:c,colorSplit:d,paddingSM:u}=e,f=r-n,h=f/2,v=f/2-t,y=i;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:a+30},K4(e)),Y4({contentRadius:s,limitVerticalRadius:!0})),{innerPadding:o?0:12,titleMarginBottom:o?0:l,titlePadding:o?`${h}px ${y}px ${v}px`:0,titleBorderBottom:o?`${t}px ${c} ${d}`:"none",innerContentPadding:o?`${u}px ${y}px`:0})},xZ=Nr("Popover",e=>{const{colorBgElevated:t,colorText:r}=e,n=sr(e,{popoverBg:t,popoverColor:r});return[xEe(n),OEe(n),g_(n,"zoom-big")]},TEe,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var AEe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const OZ=({title:e,content:t,prefixCls:r})=>!e&&!t?null:p.createElement(p.Fragment,null,e&&p.createElement("div",{className:`${r}-title`},e),t&&p.createElement("div",{className:`${r}-inner-content`},t)),MEe=e=>{const{hashId:t,prefixCls:r,className:n,style:i,placement:o="top",title:a,content:s,children:l}=e,c=wb(a),d=wb(s),u=ie(t,r,`${r}-pure`,`${r}-placement-${o}`,n);return p.createElement("div",{className:u,style:i},p.createElement("div",{className:`${r}-arrow`}),p.createElement(G4,Object.assign({},e,{className:t,prefixCls:r}),l||p.createElement(OZ,{prefixCls:r,title:c,content:d})))},$Ee=e=>{const{prefixCls:t,className:r}=e,n=AEe(e,["prefixCls","className"]),{getPrefixCls:i}=p.useContext(Vt),o=i("popover",t),[a,s,l]=xZ(o);return a(p.createElement(MEe,Object.assign({},n,{prefixCls:o,hashId:s,className:ie(r,l)})))},kEe=$Ee;var NEe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const DEe=p.forwardRef((e,t)=>{var r,n;const{prefixCls:i,title:o,content:a,overlayClassName:s,placement:l="top",trigger:c="hover",children:d,mouseEnterDelay:u=.1,mouseLeaveDelay:f=.1,onOpenChange:h,overlayStyle:v={},styles:y,classNames:g}=e,m=NEe(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:S,className:C,style:b,classNames:w,styles:E}=Jn("popover"),_=S("popover",i),[R,P,I]=xZ(_),O=S(),A=ie(s,P,I,C,w.root,g==null?void 0:g.root),x=ie(w.body,g==null?void 0:g.body),[T,D]=Or(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(n=e.defaultOpen)!==null&&n!==void 0?n:e.defaultVisible}),k=($,F)=>{D($,!0),h==null||h($,F)},j=$=>{$.keyCode===Ue.ESC&&k(!1,$)},N=$=>{k($)},L=wb(o),M=wb(a);return R(p.createElement(co,Object.assign({placement:l,trigger:c,mouseEnterDelay:u,mouseLeaveDelay:f},m,{prefixCls:_,classNames:{root:A,body:x},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},E.root),b),v),y==null?void 0:y.root),body:Object.assign(Object.assign({},E.body),y==null?void 0:y.body)},ref:t,open:T,onOpenChange:N,overlay:L||M?p.createElement(OZ,{prefixCls:_,title:L,content:M}):null,transitionName:Na(O,"zoom-big",m.transitionName),"data-popover-inject":!0}),ka(d,{onKeyDown:$=>{var F,z;p.isValidElement(d)&&((z=d==null?void 0:(F=d.props).onKeyDown)===null||z===void 0||z.call(F,$)),j($)}})))}),TZ=DEe;TZ._InternalPanelDoNotUseOrYouWillBeFired=kEe;const O_=TZ,zj=e=>{const{size:t,shape:r}=p.useContext(c$),n=p.useMemo(()=>({size:e.size||t,shape:e.shape||r}),[e.size,e.shape,t,r]);return p.createElement(c$.Provider,{value:n},e.children)},LEe=e=>{var t,r,n,i;const{getPrefixCls:o,direction:a}=p.useContext(Vt),{prefixCls:s,className:l,rootClassName:c,style:d,maxCount:u,maxStyle:f,size:h,shape:v,maxPopoverPlacement:y,maxPopoverTrigger:g,children:m,max:S}=e,C=o("avatar",s),b=`${C}-group`,w=fi(C),[E,_,R]=SZ(C,w),P=ie(b,{[`${b}-rtl`]:a==="rtl"},R,w,l,c,_),I=Jo(m).map((x,T)=>ka(x,{key:`avatar-key-${T}`})),O=(S==null?void 0:S.count)||u,A=I.length;if(O&&O<A){const x=I.slice(0,O),T=I.slice(O,A),D=(S==null?void 0:S.style)||f,k=((t=S==null?void 0:S.popover)===null||t===void 0?void 0:t.trigger)||g||"hover",j=((r=S==null?void 0:S.popover)===null||r===void 0?void 0:r.placement)||y||"top",N=Object.assign(Object.assign({content:T},S==null?void 0:S.popover),{classNames:{root:ie(`${b}
278-popover`,(i=(n=S==null?void 0:S.popover)===null||n===void 0?void 0:n.classNames)===null||i===void 0?void 0:i.root)},placement:j,trigger:k});return x.push(p.createElement(O_,Object.assign({key:"avatar-popover-key",destroyOnHidden:!0},N),p.createElement(CZ,{style:D},`+${A-O}`))),E(p.createElement(zj,{shape:v,size:h},p.createElement("div",{className:P,style:d},x)))}return E(p.createElement(zj,{shape:v,size:h},p.createElement("div",{className:P,style:d},I)))},jEe=LEe,AZ=CZ;AZ.Group=jEe;const FEe=AZ;var zEe={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"};const BEe=zEe;var HEe=function(t,r){return p.createElement(Jt,$e({},t,{ref:r,icon:BEe}))},VEe=p.forwardRef(HEe);const ly=VEe;var UEe=Ue.ESC,WEe=Ue.TAB;function qEe(e){var t=e.visible,r=e.triggerRef,n=e.onVisibleChange,i=e.autoFocus,o=e.overlayRef,a=p.useRef(!1),s=function(){if(t){var u,f;(u=r.current)===null||u===void 0||(f=u.focus)===null||f===void 0||f.call(u),n==null||n(!1)}},l=function(){var u;return(u=o.current)!==null&&u!==void 0&&u.focus?(o.current.focus(),a.current=!0,!0):!1},c=function(u){switch(u.keyCode){case UEe:s();break;case WEe:{var f=!1;a.current||(f=l()),f?u.preventDefault():s();break}}};p.useEffect(function(){return t?(window.addEventListener("keydown",c),i&&Gt(l,3),function(){window.removeEventListener("keydown",c),a.current=!1}):function(){a.current=!1}},[t])}var GEe=p.forwardRef(function(e,t){var r=e.overlay,n=e.arrow,i=e.prefixCls,o=p.useMemo(function(){var s;return typeof r=="function"?s=r():s=r,s},[r]),a=ui(t,Id(o));return de.createElement(de.Fragment,null,n&&de.createElement("div",{className:"".concat(i,"-arrow")}),de.cloneElement(o,{ref:Hc(o)?a:void 0}))}),lf={adjustX:1,adjustY:1},cf=[0,0],KEe={topLeft:{points:["bl","tl"],overflow:lf,offset:[0,-4],targetOffset:cf},top:{points:["bc","tc"],overflow:lf,offset:[0,-4],targetOffset:cf},topRight:{points:["br","tr"],overflow:lf,offset:[0,-4],targetOffset:cf},bottomLeft:{points:["tl","bl"],overflow:lf,offset:[0,4],targetOffset:cf},bottom:{points:["tc","bc"],overflow:lf,offset:[0,4],targetOffset:cf},bottomRight:{points:["tr","br"],overflow:lf,offset:[0,4],targetOffset:cf}},YEe=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function XEe(e,t){var r,n=e.arrow,i=n===void 0?!1:n,o=e.prefixCls,a=o===void 0?"rc-dropdown":o,s=e.transitionName,l=e.animation,c=e.align,d=e.placement,u=d===void 0?"bottomLeft":d,f=e.placements,h=f===void 0?KEe:f,v=e.getPopupContainer,y=e.showAction,g=e.hideAction,m=e.overlayClassName,S=e.overlayStyle,C=e.visible,b=e.trigger,w=b===void 0?["hover"]:b,E=e.autoFocus,_=e.overlay,R=e.children,P=e.onVisibleChange,I=Nt(e,YEe),O=de.useState(),A=oe(O,2),x=A[0],T=A[1],D="visible"in e?C:x,k=de.useRef(null),j=de.useRef(null),N=de.useRef(null);de.useImperativeHandle(t,function(){return k.current});var L=function(K){T(K),P==null||P(K)};qEe({visible:D,triggerRef:N,onVisibleChange:L,autoFocus:E,overlayRef:j});var M=function(K){var Z=e.onOverlayClick;T(!1),Z&&Z(K)},$=function(){return de.createElement(GEe,{ref:j,overlay:_,prefixCls:a,arrow:i})},F=function(){return typeof _=="function"?$:$()},z=function(){var K=e.minOverlayWidthMatchTrigger,Z=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?K:!Z},H=function(){var K=e.openClassName;return K!==void 0?K:"".concat(a,"-open")},U=de.cloneElement(R,{className:ie((r=R.props)===null||r===void 0?void 0:r.className,D&&H()),ref:Hc(R)?ui(N,Id(R)):void 0}),V=g;return!V&&w.indexOf("contextMenu")!==-1&&(V=["click"]),de.createElement(c0,$e({builtinPlacements:h},I,{prefixCls:a,ref:k,popupClassName:ie(m,J({},"".concat(a,"-show-arrow"),i)),popupStyle:S,action:w,showAction:y,hideAction:V,popupPlacement:u,popupAlign:c,popupTransitionName:s,popupAnimation:l,popupVisible:D,stretch:z()?"minWidth":"",popup:F(),onPopupVisibleChange:L,onPopupClick:M,getPopupContainer:v}),U)}const QEe=de.forwardRef(XEe);var MZ=p.createContext(null);function $Z(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function kZ(e){var t=p.useContext(MZ);return $Z(t,e)}var JEe=["children","locked"],ss=p.createContext(null);function ZEe(e,t){var r=Q({},e);return Object.keys(t).forEach(function(n){var i=t[n];i!==void 0&&(r[n]=i)}),r}function cy(e){var t=e.children,r=e.locked,n=Nt(e,JEe),i=p.useContext(ss),o=Qy(function(){return ZEe(i,n)},[i,n],function(a,s){return!r&&(a[0]!==s[0]||!ld(a[1],s[1],!0))});return p.createElement(ss.Provider,{value:o},t)}var eRe=[],NZ=p.createContext(null);
278function T_(){return p.useContext(NZ)}var DZ=p.createContext(eRe);function d0(e){var t=p.useContext(DZ);return p.useMemo(function(){return e!==void 0?[].concat(Ge(t),[e]):t},[t,e])}var LZ=p.createContext(null),X4=p.createContext({});function Bj(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(n0(e)){var r=e.nodeName.toLowerCase(),n=["input","select","textarea","button"].includes(r)||e.isContentEditable||r==="a"&&!!e.getAttribute("href"),i=e.getAttribute("tabindex"),o=Number(i),a=null;return i&&!Number.isNaN(o)?a=o:n&&a===null&&(a=0),n&&e.disabled&&(a=null),a!==null&&(a>=0||t&&a<0)}return!1}function tRe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=Ge(e.querySelectorAll("*")).filter(function(n){return Bj(n,t)});return Bj(e,t)&&r.unshift(e),r}var u$=Ue.LEFT,d$=Ue.RIGHT,f$=Ue.UP,pC=Ue.DOWN,hC=Ue.ENTER,jZ=Ue.ESC,Dh=Ue.HOME,Lh=Ue.END,Hj=[f$,pC,u$,d$];function rRe(e,t,r,n){var i,o="prev",a="next",s="children",l="parent";if(e==="inline"&&n===hC)return{inlineTrigger:!0};var c=J(J({},f$,o),pC,a),d=J(J(J(J({},u$,r?a:o),d$,r?o:a),pC,s),hC,s),u=J(J(J(J(J(J({},f$,o),pC,a),hC,s),jZ,l),u$,r?s:l),d$,r?l:s),f={inline:c,horizontal:d,vertical:u,inlineSub:c,horizontalSub:u,verticalSub:u},h=(i=f["".concat(e).concat(t?"":"Sub")])===null||i===void 0?void 0:i[n];switch(h){case o:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case l:return{offset:-1,sibling:!1};case s:return{offset:1,sibling:!1};default:return null}}function nRe(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function iRe(e,t){for(var r=e||document.activeElement;r;){if(t.has(r))return r;r=r.parentElement}return null}function Q4(e,t){var r=tRe(e,!0);return r.filter(function(n){return t.has(n)})}function Vj(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var i=Q4(e,t),o=i.length,a=i.findIndex(function(s){return r===s});return n<0?a===-1?a=o-1:a-=1:n>0&&(a+=1),a=(a+o)%o,i[a]}var p$=function(t,r){var n=new Set,i=new Map,o=new Map;return t.forEach(function(a){var s=document.querySelector("[data-menu-id='".concat($Z(r,a),"']"));s&&(n.add(s),o.set(s,a),i.set(a,s))}),{elements:n,key2element:i,element2key:o}};function oRe(e,t,r,n,i,o,a,s,l,c){var d=p.useRef(),u=p.useRef();u.current=t;var f=function(){Gt.cancel(d.current)};return p.useEffect(function(){return function(){f()}},[]),function(h){var v=h.which;if([].concat(Hj,[hC,jZ,Dh,Lh]).includes(v)){var y=o(),g=p$(y,n),m=g,S=m.elements,C=m.key2element,b=m.element2key,w=C.get(t),E=iRe(w,S),_=b.get(E),R=rRe(e,a(_,!0).length===1,r,v);if(!R&&v!==Dh&&v!==Lh)return;(Hj.includes(v)||[Dh,Lh].includes(v))&&h.preventDefault();var P=function(j){if(j){var N=j,L=j.querySelector("a");L!=null&&L.getAttribute("href")&&(N=L);var M=b.get(j);s(M),f(),d.current=Gt(function(){u.current===M&&N.focus()})}};if([Dh,Lh].includes(v)||R.sibling||!E){var I;!E||e==="inline"?I=i.current:I=nRe(E);var O,A=Q4(I,S);v===Dh?O=A[0]:v===Lh?O=A[A.length-1]:O=Vj(I,S,E,R.offset),P(O)}else if(R.inlineTrigger)l(_);else if(R.offset>0)l(_,!0),f(),d.current=Gt(function(){g=p$(y,n);var k=E.getAttribute("aria-controls"),j=document.getElementById(k),N=Vj(j,g.elements);P(N)},5);else if(R.offset<0){var x=a(_,!0),T=x[x.length-2],D=C.get(T);l(T,!1),P(D)}}c==null||c(h)}}function aRe(e){Promise.resolve().then(e)}var J4="__RC_UTIL_PATH_SPLIT__",Uj=function(t){return t.join(J4)},sRe=function(t){return t.split(J4)},h$="rc-menu-more";function lRe(){var e=p.useState({}),t=oe(e,2),r=t[1],n=p.useRef(new Map),i=p.useRef(new Map),o=p.useState([]),a=oe(o,2),s=a[0],l=a[1],c=p.useRef(0),d=p.useRef(!1),u=function(){d.current||r({})},f=p.useCallback(function(C,b){var w=Uj(b);i.current.set(w,C),n.current.set(C,w),c.current+=1;var E=c.current;aRe(function(){E===c.current&&u()})},[]),h=p.useCallback(function(C,b){var w=Uj(b);i.current.delete(w),n.current.delete(C)},[]),v=p.useCallback(function(C){l(C)},[]),y=p.useCallback(function(C,b){var w=n.current.get(C)||"",E=sRe(w);return b&&s.includes(E[0])&&E.unshift(h$),E},[s]),g=p.useCallback(function(C,b){return C.filter(function(w){return w!==void 0}).some(function(w){var E=y(w,!0);return E.includes(b)})},[y]),m=function(){var b=Ge(n.current.keys());return s.length&&b.push(h$),b},S=p.useCallback(function(C){var b="".concat(n.current.get(C)).concat(J4),w=new Set;
278return Ge(i.current.keys()).forEach(function(E){E.startsWith(b)&&w.add(i.current.get(E))}),w},[]);return p.useEffect(function(){return function(){d.current=!0}},[]),{registerPath:f,unregisterPath:h,refreshOverflowKeys:v,isSubPathKey:g,getKeyPath:y,getKeys:m,getSubPathKeys:S}}function Kg(e){var t=p.useRef(e);t.current=e;var r=p.useCallback(function(){for(var n,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return(n=t.current)===null||n===void 0?void 0:n.call.apply(n,[t].concat(o))},[]);return e?r:void 0}var cRe=Math.random().toFixed(5).toString().slice(2),Wj=0;function uRe(e){var t=Or(e,{value:e}),r=oe(t,2),n=r[0],i=r[1];return p.useEffect(function(){Wj+=1;var o="".concat(cRe,"-").concat(Wj);i("rc-menu-uuid-".concat(o))},[]),n}function FZ(e,t,r,n){var i=p.useContext(ss),o=i.activeKey,a=i.onActive,s=i.onInactive,l={active:o===e};return t||(l.onMouseEnter=function(c){r==null||r({key:e,domEvent:c}),a(e)},l.onMouseLeave=function(c){n==null||n({key:e,domEvent:c}),s(e)}),l}function zZ(e){var t=p.useContext(ss),r=t.mode,n=t.rtl,i=t.inlineIndent;if(r!=="inline")return null;var o=e;return n?{paddingRight:o*i}:{paddingLeft:o*i}}function BZ(e){var t=e.icon,r=e.props,n=e.children,i;return t===null||t===!1?null:(typeof t=="function"?i=p.createElement(t,Q({},r)):typeof t!="boolean"&&(i=t),i||n||null)}var dRe=["item"];function _b(e){var t=e.item,r=Nt(e,dRe);return Object.defineProperty(r,"item",{get:function(){return Nn(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),r}var fRe=["title","attribute","elementRef"],pRe=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],hRe=["active"],vRe=function(e){di(r,e);var t=us(r);function r(){return zr(this,r),t.apply(this,arguments)}return Br(r,[{key:"render",value:function(){var i=this.props,o=i.title,a=i.attribute,s=i.elementRef,l=Nt(i,fRe),c=Dn(l,["eventKey","popupClassName","popupOffset","onTitleClick"]);return Nn(!a,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),p.createElement(ts.Item,$e({},a,{title:typeof o=="string"?o:void 0},c,{ref:s}))}}]),r}(p.Component),gRe=p.forwardRef(function(e,t){var r=e.style,n=e.className,i=e.eventKey;e.warnKey;var o=e.disabled,a=e.itemIcon,s=e.children,l=e.role,c=e.onMouseEnter,d=e.onMouseLeave,u=e.onClick,f=e.onKeyDown,h=e.onFocus,v=Nt(e,pRe),y=kZ(i),g=p.useContext(ss),m=g.prefixCls,S=g.onItemClick,C=g.disabled,b=g.overflowDisabled,w=g.itemIcon,E=g.selectedKeys,_=g.onActive,R=p.useContext(X4),P=R._internalRenderMenuItem,I="".concat(m,"-item"),O=p.useRef(),A=p.useRef(),x=C||o,T=Bc(t,A),D=d0(i),k=function(Z){return{key:i,keyPath:Ge(D).reverse(),item:O.current,domEvent:Z}},j=a||w,N=FZ(i,x,c,d),L=N.active,M=Nt(N,hRe),$=E.includes(i),F=zZ(D.length),z=function(Z){if(!x){var q=k(Z);u==null||u(_b(q)),S(q)}},H=function(Z){if(f==null||f(Z),Z.which===Ue.ENTER){var q=k(Z);u==null||u(_b(q)),S(q)}},U=function(Z){_(i),h==null||h(Z)},V={};e.role==="option"&&(V["aria-selected"]=$);var W=p.createElement(vRe,$e({ref:O,elementRef:T,role:l===null?"none":l||"menuitem",tabIndex:o?null:-1,"data-menu-id":b&&y?null:y},Dn(v,["extra"]),M,V,{component:"li","aria-disabled":o,style:Q(Q({},F),r),className:ie(I,J(J(J({},"".concat(I,"-active"),L),"".concat(I,"-selected"),$),"".concat(I,"-disabled"),x),n),onClick:z,onKeyDown:H,onFocus:U}),s,p.createElement(BZ,{props:Q(Q({},e),{},{isSelected:$}),icon:j}));return P&&(W=P(W,e,{selected:$})),W});function mRe(e,t){var r=e.eventKey,n=T_(),i=d0(r);return p.useEffect(function(){if(n)return n.registerPath(r,i),function(){n.unregisterPath(r,i)}},[i]),n?null:p.createElement(gRe,$e({},e,{ref:t}))}const A_=p.forwardRef(mRe);var yRe=["className","children"],SRe=function(t,r){var n=t.className,i=t.children,o=Nt(t,yRe),a=p.useContext(ss),s=a.prefixCls,l=a.mode,c=a.rtl;return p.createElement("ul",$e({className:ie(s,c&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat(l==="inline"?"inline":"vertical"),n),role:"menu"},o,{"data-menu-list":!0,ref:r}),i)},Z4=p.forwardRef(SRe);Z4.displayName="SubMenuList";function e3(e,t){return Jo(e).map(function(r,n){if(p.isValidElement(r)){var i,o,a=r.key,s=(i=(o=r.props)===null||o===void 0?void 0:o.eventKey)!==null&&i!==void 0?i:a,l=s==null;l&&(s="tmp_key-".concat([].concat(Ge(t),[n]).join("-")));var c={key:s,eventKey:s};return p.cloneElement(r,c)}return r})}var zi={adjustX:1,adjustY:1},CRe={topLeft:{points:["bl","tl"],overflow:zi},topRight:{points:["br","tr"],overflow:zi},bottomLeft:{points:["tl","bl"],overflow:zi},bottomRight:{points:["tr","br"],overflow:zi},leftTop:{points:["tr","tl"],overflow:zi},leftBottom:{points:["br","bl"],overflow:zi},rightTop:{points:["tl","tr"],overflow:zi},rightBottom:{points:["bl","br"],overflow:zi}},bRe={topLeft:{points:["bl","tl"],overflow:zi},topRight:{points:["br","tr"],overflow:zi},bottomLeft:{points:["tl","bl"],overflow:zi},bottomRight:{points:["tr","br"],overflow:zi},rightTop:{points:["tr","tl"],overflow:zi},rightBottom:{points:["br","bl"],overflow:zi},leftTop:{points:["tl","tr"],overflow:zi},leftBottom:{points:["bl","br"],overflow:zi}};function HZ(e,t,r){if(t)return t;if(r)return r[e]||r.other}var wRe={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"r
278ightTop","vertical-right":"leftTop"};function _Re(e){var t=e.prefixCls,r=e.visible,n=e.children,i=e.popup,o=e.popupStyle,a=e.popupClassName,s=e.popupOffset,l=e.disabled,c=e.mode,d=e.onVisibleChange,u=p.useContext(ss),f=u.getPopupContainer,h=u.rtl,v=u.subMenuOpenDelay,y=u.subMenuCloseDelay,g=u.builtinPlacements,m=u.triggerSubMenuAction,S=u.forceSubMenuRender,C=u.rootClassName,b=u.motion,w=u.defaultMotions,E=p.useState(!1),_=oe(E,2),R=_[0],P=_[1],I=Q(h?Q({},bRe):Q({},CRe),g),O=wRe[c],A=HZ(c,b,w),x=p.useRef(A);c!=="inline"&&(x.current=A);var T=Q(Q({},x.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),D=p.useRef();return p.useEffect(function(){return D.current=Gt(function(){P(r)}),function(){Gt.cancel(D.current)}},[r]),p.createElement(c0,{prefixCls:t,popupClassName:ie("".concat(t,"-popup"),J({},"".concat(t,"-rtl"),h),a,C),stretch:c==="horizontal"?"minWidth":null,getPopupContainer:f,builtinPlacements:I,popupPlacement:O,popupVisible:R,popup:i,popupStyle:o,popupAlign:s&&{offset:s},action:l?[]:[m],mouseEnterDelay:v,mouseLeaveDelay:y,onPopupVisibleChange:d,forceRender:S,popupMotion:T,fresh:!0},n)}function ERe(e){var t=e.id,r=e.open,n=e.keyPath,i=e.children,o="inline",a=p.useContext(ss),s=a.prefixCls,l=a.forceSubMenuRender,c=a.motion,d=a.defaultMotions,u=a.mode,f=p.useRef(!1);f.current=u===o;var h=p.useState(!f.current),v=oe(h,2),y=v[0],g=v[1],m=f.current?r:!1;p.useEffect(function(){f.current&&g(!1)},[u]);var S=Q({},HZ(o,c,d));n.length>1&&(S.motionAppear=!1);var C=S.onVisibleChanged;return S.onVisibleChanged=function(b){return!f.current&&!b&&g(!0),C==null?void 0:C(b)},y?null:p.createElement(cy,{mode:o,locked:!f.current},p.createElement(No,$e({visible:m},S,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(b){var w=b.className,E=b.style;return p.createElement(Z4,{id:t,className:w,style:E},i)}))}var RRe=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],PRe=["active"],IRe=p.forwardRef(function(e,t){var r=e.style,n=e.className,i=e.title,o=e.eventKey;e.warnKey;var a=e.disabled,s=e.internalPopupClose,l=e.children,c=e.itemIcon,d=e.expandIcon,u=e.popupClassName,f=e.popupOffset,h=e.popupStyle,v=e.onClick,y=e.onMouseEnter,g=e.onMouseLeave,m=e.onTitleClick,S=e.onTitleMouseEnter,C=e.onTitleMouseLeave,b=Nt(e,RRe),w=kZ(o),E=p.useContext(ss),_=E.prefixCls,R=E.mode,P=E.openKeys,I=E.disabled,O=E.overflowDisabled,A=E.activeKey,x=E.selectedKeys,T=E.itemIcon,D=E.expandIcon,k=E.onItemClick,j=E.onOpenChange,N=E.onActive,L=p.useContext(X4),M=L._internalRenderSubMenuItem,$=p.useContext(LZ),F=$.isSubPathKey,z=d0(),H="".concat(_,"-submenu"),U=I||a,V=p.useRef(),W=p.useRef(),K=c??T,Z=d??D,q=P.includes(o),Y=!O&&q,G=F(x,o),re=FZ(o,U,S,C),ee=re.active,ne=Nt(re,PRe),te=p.useState(!1),pe=oe(te,2),le=pe[0],ye=pe[1],Se=function(me){U||ye(me)},_e=function(me){Se(!0),y==null||y({key:o,domEvent:me})},De=function(me){Se(!1),g==null||g({key:o,domEvent:me})},be=p.useMemo(function(){return ee||(R!=="inline"?le||F([A],o):!1)},[R,ee,A,le,o,F]),se=zZ(z.length),Pe=function(me){U||(m==null||m({key:o,domEvent:me}),R==="inline"&&j(o,!q))},Te=Kg(function(Re){v==null||v(_b(Re)),k(Re)}),ze=function(me){R!=="inline"&&j(o,me)},ke=function(){N(o)},Me=w&&"".concat(w,"-popup"),qe=p.useMemo(function(){return p.createElement(BZ,{icon:R!=="horizontal"?Z:void 0,props:Q(Q({},e),{},{isOpen:Y,isSubMenu:!0})},p.createElement("i",{className:"".concat(H,"-arrow")}))},[R,Z,e,Y,H]),Le=p.createElement("div",$e({role:"menuitem",style:se,className:"".concat(H,"-title"),tabIndex:U?null:-1,ref:V,title:typeof i=="string"?i:null,"data-menu-id":O&&w?null:w,"aria-expanded":Y,"aria-haspopup":!0,"aria-controls":Me,"aria-disabled":U,onClick:Pe,onFocus:ke},ne),i,qe),xe=p.useRef(R);if(R!=="inline"&&z.length>1?xe.current="vertical":xe.current=R,!O){var je=xe.current;Le=p.createElement(_Re,{mode:je,prefixCls:H,visible:!s&&Y&&R!=="inline",popupClassName:u,popupOffset:f,popupStyle:h,popup:p.createElement(cy,{mode:je==="horizontal"?"vertical":je},p.createElement(Z4,{id:Me,ref:W},l)),disabled:U,onVisibleChange:ze},Le)}var Ee=p.createElement(ts.Item,$e({ref:t,role:"none"},b,{component:"li",style:r,className:ie(H,"".concat(H,"-").concat(R),n,J(J(J(J({},"".concat(H,"-open"),Y),"".concat(H,"-active"),be),"".concat(H,"-selected"),G),"".concat(H,"-disabled"),U)),onMouseEnter:_e,onMouseLeave:De}),Le,!O&&p.createElement(ERe,{id:Me,open:Y,keyPath:z},l));return M&&(Ee=M(Ee,e,{selected:G,active:be,open:Y,disabled:U})),p.createElement(cy,{onItemClick:Te,mode:R==="horizontal"?"vertical":R,itemIcon:K,expandIcon:Z},Ee)}
278),t3=p.forwardRef(function(e,t){var r=e.eventKey,n=e.children,i=d0(r),o=e3(n,i),a=T_();p.useEffect(function(){if(a)return a.registerPath(r,i),function(){a.unregisterPath(r,i)}},[i]);var s;return a?s=o:s=p.createElement(IRe,$e({ref:t},e),o),p.createElement(DZ.Provider,{value:i},s)});function VZ(e){var t=e.className,r=e.style,n=p.useContext(ss),i=n.prefixCls,o=T_();return o?null:p.createElement("li",{role:"separator",className:ie("".concat(i,"-item-divider"),t),style:r})}var xRe=["className","title","eventKey","children"],ORe=p.forwardRef(function(e,t){var r=e.className,n=e.title;e.eventKey;var i=e.children,o=Nt(e,xRe),a=p.useContext(ss),s=a.prefixCls,l="".concat(s,"-item-group");return p.createElement("li",$e({ref:t,role:"presentation"},o,{onClick:function(d){return d.stopPropagation()},className:ie(l,r)}),p.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:typeof n=="string"?n:void 0},n),p.createElement("ul",{role:"group",className:"".concat(l,"-list")},i))}),UZ=p.forwardRef(function(e,t){var r=e.eventKey,n=e.children,i=d0(r),o=e3(n,i),a=T_();return a?o:p.createElement(ORe,$e({ref:t},Dn(e,["warnKey"])),o)}),TRe=["label","children","key","type","extra"];function v$(e,t,r){var n=t.item,i=t.group,o=t.submenu,a=t.divider;return(e||[]).map(function(s,l){if(s&&Pt(s)==="object"){var c=s,d=c.label,u=c.children,f=c.key,h=c.type,v=c.extra,y=Nt(c,TRe),g=f??"tmp-".concat(l);return u||h==="group"?h==="group"?p.createElement(i,$e({key:g},y,{title:d}),v$(u,t,r)):p.createElement(o,$e({key:g},y,{title:d}),v$(u,t,r)):h==="divider"?p.createElement(a,$e({key:g},y)):p.createElement(n,$e({key:g},y,{extra:v}),d,(!!v||v===0)&&p.createElement("span",{className:"".concat(r,"-item-extra")},v))}return null}).filter(function(s){return s})}function qj(e,t,r,n,i){var o=e,a=Q({divider:VZ,item:A_,group:UZ,submenu:t3},n);return t&&(o=v$(t,a,i)),e3(o,r)}var ARe=["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","_internalComponents"],fu=[],MRe=p.forwardRef(function(e,t){var r,n=e,i=n.prefixCls,o=i===void 0?"rc-menu":i,a=n.rootClassName,s=n.style,l=n.className,c=n.tabIndex,d=c===void 0?0:c,u=n.items,f=n.children,h=n.direction,v=n.id,y=n.mode,g=y===void 0?"vertical":y,m=n.inlineCollapsed,S=n.disabled,C=n.disabledOverflow,b=n.subMenuOpenDelay,w=b===void 0?.1:b,E=n.subMenuCloseDelay,_=E===void 0?.1:E,R=n.forceSubMenuRender,P=n.defaultOpenKeys,I=n.openKeys,O=n.activeKey,A=n.defaultActiveFirst,x=n.selectable,T=x===void 0?!0:x,D=n.multiple,k=D===void 0?!1:D,j=n.defaultSelectedKeys,N=n.selectedKeys,L=n.onSelect,M=n.onDeselect,$=n.inlineIndent,F=$===void 0?24:$,z=n.motion,H=n.defaultMotions,U=n.triggerSubMenuAction,V=U===void 0?"hover":U,W=n.builtinPlacements,K=n.itemIcon,Z=n.expandIcon,q=n.overflowedIndicator,Y=q===void 0?"...":q,G=n.overflowedIndicatorPopupClassName,re=n.getPopupContainer,ee=n.onClick,ne=n.onOpenChange,te=n.onKeyDown;n.openAnimation,n.openTransitionName;var pe=n._internalRenderMenuItem,le=n._internalRenderSubMenuItem,ye=n._internalComponents,Se=Nt(n,ARe),_e=p.useMemo(function(){return[qj(f,u,fu,ye,o),qj(f,u,fu,{},o)]},[f,u,ye]),De=oe(_e,2),be=De[0],se=De[1],Pe=p.useState(!1),Te=oe(Pe,2),ze=Te[0],ke=Te[1],Me=p.useRef(),qe=uRe(v),Le=h==="rtl",xe=Or(P,{value:I,postState:function(kt){return kt||fu}}),je=oe(xe,2),Ee=je[0],Re=je[1],me=function(kt){var At=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Sr(){Re(kt),ne==null||ne(kt)}At?Qo.flushSync(Sr):Sr()},ce=p.useState(Ee),Ae=oe(ce,2),We=Ae[0],lt=Ae[1],yt=p.useRef(!1),nt=p.useMemo(function(){return(g==="inline"||g==="vertical")&&m?["vertical",m]:[g,!1]}
278,[g,m]),it=oe(nt,2),gt=it[0],Ye=it[1],vt=gt==="inline",mt=p.useState(gt),St=oe(mt,2),pt=St[0],Rt=St[1],ae=p.useState(Ye),ue=oe(ae,2),ve=ue[0],Ce=ue[1];p.useEffect(function(){Rt(gt),Ce(Ye),yt.current&&(vt?Re(We):me(fu))},[gt,Ye]);var Fe=p.useState(0),Ze=oe(Fe,2),et=Ze[0],tt=Ze[1],ot=et>=be.length-1||pt!=="horizontal"||C;p.useEffect(function(){vt&&lt(Ee)},[Ee]),p.useEffect(function(){return yt.current=!0,function(){yt.current=!1}},[]);var rt=lRe(),ft=rt.registerPath,ge=rt.unregisterPath,we=rt.refreshOverflowKeys,Ie=rt.isSubPathKey,Ne=rt.getKeyPath,Be=rt.getKeys,Xe=rt.getSubPathKeys,He=p.useMemo(function(){return{registerPath:ft,unregisterPath:ge}},[ft,ge]),ct=p.useMemo(function(){return{isSubPathKey:Ie}},[Ie]);p.useEffect(function(){we(ot?fu:be.slice(et+1).map(function(Tr){return Tr.key}))},[et,ot]);var at=Or(O||A&&((r=be[0])===null||r===void 0?void 0:r.key),{value:O}),Je=oe(at,2),ut=Je[0],st=Je[1],_t=Kg(function(Tr){st(Tr)}),zt=Kg(function(){st(void 0)});p.useImperativeHandle(t,function(){return{list:Me.current,focus:function(kt){var At,Sr=Be(),Mt=p$(Sr,qe),Tt=Mt.elements,vr=Mt.key2element,on=Mt.element2key,Pn=Q4(Me.current,Tt),gi=ut??(Pn[0]?on.get(Pn[0]):(At=be.find(function(er){return!er.props.disabled}))===null||At===void 0?void 0:At.key),ri=vr.get(gi);if(gi&&ri){var mi;ri==null||(mi=ri.focus)===null||mi===void 0||mi.call(ri,kt)}}}});var ht=Or(j||[],{value:N,postState:function(kt){return Array.isArray(kt)?kt:kt==null?fu:[kt]}}),dt=oe(ht,2),Et=dt[0],pr=dt[1],br=function(kt){if(T){var At=kt.key,Sr=Et.includes(At),Mt;k?Sr?Mt=Et.filter(function(vr){return vr!==At}):Mt=[].concat(Ge(Et),[At]):Mt=[At],pr(Mt);var Tt=Q(Q({},kt),{},{selectedKeys:Mt});Sr?M==null||M(Tt):L==null||L(Tt)}!k&&Ee.length&&pt!=="inline"&&me(fu)},Yt=Kg(function(Tr){ee==null||ee(_b(Tr)),br(Tr)}),Ur=Kg(function(Tr,kt){var At=Ee.filter(function(Mt){return Mt!==Tr});if(kt)At.push(Tr);else if(pt!=="inline"){var Sr=Xe(Tr);At=At.filter(function(Mt){return!Sr.has(Mt)})}ld(Ee,At,!0)||me(At,!0)}),tn=function(kt,At){var Sr=At??!Ee.includes(kt);Ur(kt,Sr)},Fn=oRe(pt,ut,Le,qe,Me,Be,Ne,st,tn,te);p.useEffect(function(){ke(!0)},[]);var ti=p.useMemo(function(){return{_internalRenderMenuItem:pe,_internalRenderSubMenuItem:le}},[pe,le]),Mi=pt!=="horizontal"||C?be:be.map(function(Tr,kt){return p.createElement(cy,{key:Tr.key,overflowDisabled:kt>et},Tr)}),go=p.createElement(ts,$e({id:v,ref:Me,prefixCls:"".concat(o,"-overflow"),component:"ul",itemComponent:A_,className:ie(o,"".concat(o,"-root"),"".concat(o,"-").concat(pt),l,J(J({},"".concat(o,"-inline-collapsed"),ve),"".concat(o,"-rtl"),Le),a),dir:h,style:s,role:"menu",tabIndex:d,data:Mi,renderRawItem:function(kt){return kt},renderRawRest:function(kt){var At=kt.length,Sr=At?be.slice(-At):null;return p.createElement(t3,{eventKey:h$,title:Y,disabled:ot,internalPopupClose:At===0,popupClassName:G},Sr)},maxCount:pt!=="horizontal"||C?ts.INVALIDATE:ts.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(kt){tt(kt)},onKeyDown:Fn},Se));return p.createElement(X4.Provider,{value:ti},p.createElement(MZ.Provider,{value:qe},p.createElement(cy,{prefixCls:o,rootClassName:a,mode:pt,openKeys:Ee,rtl:Le,disabled:S,motion:ze?z:null,defaultMotions:ze?H:null,activeKey:ut,onActive:_t,onInactive:zt,selectedKeys:Et,inlineIndent:F,subMenuOpenDelay:w,subMenuCloseDelay:_,forceSubMenuRender:R,builtinPlacements:W,triggerSubMenuAction:V,getPopupContainer:re,itemIcon:K,expandIcon:Z,onItemClick:Yt,onOpenChange:Ur},p.createElement(LZ.Provider,{value:ct},go),p.createElement("div",{style:{display:"none"},"aria-hidden":!0},p.createElement(NZ.Provider,{value:He},se)))))}),f0=MRe;f0.Item=A_;f0.SubMenu=t3;f0.ItemGroup=UZ;f0.Divider=VZ;var $Re={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"};const kRe=$Re;var NRe=function(t,r){return p.createElement(Jt,$e({},t,{ref:r,icon:kRe}))},DRe=p.forwardRef(NRe);const LRe=DRe;var WZ={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Ht,function(){var r=1e3,n=6e4,i=36e5,o="millisecond",a="second",s="minute",l="hour",c="day",d="week",u="month",f="quarter",h="year",v="date",y="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}
vendor: 1,089 bytes, line 278
278|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,S={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(T){var D=["th","st","nd","rd"],k=T%100;return"["+T+(D[(k-20)%10]||D[k]||D[0])+"]"}},C=function(T,D,k){var j=String(T);return!j||j.length>=D?T:""+Array(D+1-j.length).join(k)+T},b={s:C,z:function(T){var D=-T.utcOffset(),k=Math.abs(D),j=Math.floor(k/60),N=k%60;return(D<=0?"+":"-")+C(j,2,"0")+":"+C(N,2,"0")},m:function T(D,k){if(D.date()<k.date())return-T(k,D);var j=12*(k.year()-D.year())+(k.month()-D.month()),N=D.clone().add(j,u),L=k-N<0,M=D.clone().add(j+(L?-1:1),u);return+(-(j+(k-N)/(L?N-M:M-N))||0)},a:function(T){return T<0?Math.ceil(T)||0:Math.floor(T)},p:function(T){return{M:u,y:h,w:d,d:c,D:v,h:l,m:s,s:a,ms:o,Q:f}[T]||String(T||"").toLowerCase().replace(/s$/,"")},u:function(T){return T===void 0}},w="en",E={};E[w]=S;var _="$isDayjsObject",R=function(T){return T instanceof A||!(!T||!T[_])},P=function T(D,k,j){var N;if(!D)return w;
vendor: 4,332 bytes, line 278
278if(typeof D=="string"){var L=D.toLowerCase();E[L]&&(N=L),k&&(E[L]=k,N=L);var M=D.split("-");if(!N&&M.length>1)return T(M[0])}else{var $=D.name;E[$]=D,N=$}return!j&&N&&(w=N),N||!j&&w},I=function(T,D){if(R(T))return T.clone();var k=typeof D=="object"?D:{};return k.date=T,k.args=arguments,new A(k)},O=b;O.l=P,O.i=R,O.w=function(T,D){return I(T,{locale:D.$L,utc:D.$u,x:D.$x,$offset:D.$offset})};var A=function(){function T(k){this.$L=P(k.locale,null,!0),this.parse(k),this.$x=this.$x||k.x||{},this[_]=!0}var D=T.prototype;return D.parse=function(k){this.$d=function(j){var N=j.date,L=j.utc;if(N===null)return new Date(NaN);if(O.u(N))return new Date;if(N instanceof Date)return new Date(N);if(typeof N=="string"&&!/Z$/i.test(N)){var M=N.match(g);if(M){var $=M[2]-1||0,F=(M[7]||"0").substring(0,3);return L?new Date(Date.UTC(M[1],$,M[3]||1,M[4]||0,M[5]||0,M[6]||0,F)):new Date(M[1],$,M[3]||1,M[4]||0,M[5]||0,M[6]||0,F)}}return new Date(N)}(k),this.init()},D.init=function(){var k=this.$d;this.$y=k.getFullYear(),this.$M=k.getMonth(),this.$D=k.getDate(),this.$W=k.getDay(),this.$H=k.getHours(),this.$m=k.getMinutes(),this.$s=k.getSeconds(),this.$ms=k.getMilliseconds()},D.$utils=function(){return O},D.isValid=function(){return this.$d.toString()!==y},D.isSame=function(k,j){var N=I(k);return this.startOf(j)<=N&&N<=this.endOf(j)},D.isAfter=function(k,j){return I(k)<this.startOf(j)},D.isBefore=function(k,j){return this.endOf(j)<I(k)},D.$g=function(k,j,N){return O.u(k)?this[j]:this.set(N,k)},D.unix=function(){return Math.floor(this.valueOf()/1e3)},D.valueOf=function(){return this.$d.getTime()},D.startOf=function(k,j){var N=this,L=!!O.u(j)||j,M=O.p(k),$=function(Z,q){var Y=O.w(N.$u?Date.UTC(N.$y,q,Z):new Date(N.$y,q,Z),N);return L?Y:Y.endOf(c)},F=function(Z,q){return O.w(N.toDate()[Z].apply(N.toDate("s"),(L?[0,0,0,0]:[23,59,59,999]).slice(q)),N)},z=this.$W,H=this.$M,U=this.$D,V="set"+(this.$u?"UTC":"");switch(M){case h:return L?$(1,0):$(31,11);case u:return L?$(1,H):$(0,H+1);case d:var W=this.$locale().weekStart||0,K=(z<W?z+7:z)-W;return $(L?U-K:U+(6-K),H);case c:case v:return F(V+"Hours",0);case l:return F(V+"Minutes",1);case s:return F(V+"Seconds",2);case a:return F(V+"Milliseconds",3);default:return this.clone()}},D.endOf=function(k){return this.startOf(k,!1)},D.$set=function(k,j){var N,L=O.p(k),M="set"+(this.$u?"UTC":""),$=(N={},N[c]=M+"Date",N[v]=M+"Date",N[u]=M+"Month",N[h]=M+"FullYear",N[l]=M+"Hours",N[s]=M+"Minutes",N[a]=M+"Seconds",N[o]=M+"Milliseconds",N)[L],F=L===c?this.$D+(j-this.$W):j;if(L===u||L===h){var z=this.clone().set(v,1);z.$d[$](F),z.init(),this.$d=z.set(v,Math.min(this.$D,z.daysInMonth())).$d}else $&&this.$d[$](F);return this.init(),this},D.set=function(k,j){return this.clone().$set(k,j)},D.get=function(k){return this[O.p(k)]()},D.add=function(k,j){var N,L=this;k=Number(k);var M=O.p(j),$=function(H){var U=I(L);return O.w(U.date(U.date()+Math.round(H*k)),L)};if(M===u)return this.set(u,this.$M+k);if(M===h)return this.set(h,this.$y+k);if(M===c)return $(1);if(M===d)return $(7);var F=(N={},N[s]=n,N[l]=i,N[a]=r,N)[M]||1,z=this.$d.getTime()+k*F;return O.w(z,this)},D.subtract=function(k,j){return this.add(-1*k,j)},D.format=function(k){var j=this,N=this.$locale();if(!this.isValid())return N.invalidDate||y;var L=k||"YYYY-MM-DDTHH:mm:ssZ",M=O.z(this),$=this.$H,F=this.$m,z=this.$M,H=N.weekdays,U=N.months,V=N.meridiem,W=function(q,Y,G,re){return q&&(q[Y]||q(j,L))||G[Y].slice(0,re)},K=function(q){return O.s($%12||12,q,"0")},Z=V||function(q,Y,G){var re=q<12?"AM":"PM";return G?re.toLowerCase():re};return L.replace(m,function(q,Y){return Y||function(G){switch(G){case"YY":return String(j.$y).slice(-2);case"YYYY":return O.s(j.$y,4,"0");case"M":return z+1;case"MM":return O.s(z+1,2,"0");case"MMM":return W(N.monthsShort,z,U,3);case"MMMM":return W(U,z);case"D":return j.$D;case"DD":return O.s(j.$D,2,"0");case"d":return String(j.$W);case"dd":return W(N.weekdaysMin,j.$W,H,2);case"ddd":return W(N.weekdaysShort,j.$W,H,3);case"dddd":return H[j.$W];case"H":return String($);case"HH":return O.s($,2,"0");case"h":return K(1);case"hh":return K(2);case"a":return Z($,F,!0);case"A":return Z($,F,!1);case"m":return String(F);case"mm":return O.s(F,2,"0");case"s":return String(j.$s);case"ss":return O.s(j.$s,2,"0");case"SSS":return O.s(j.$ms,3,"0");case"Z":return M}return null}(q)||M.replace(":","")})}
vendor: 6,896 bytes, line 278
278,D.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},D.diff=function(k,j,N){var L,M=this,$=O.p(j),F=I(k),z=(F.utcOffset()-this.utcOffset())*n,H=this-F,U=function(){return O.m(M,F)};switch($){case h:L=U()/12;break;case u:L=U();break;case f:L=U()/3;break;case d:L=(H-z)/6048e5;break;case c:L=(H-z)/864e5;break;case l:L=H/i;break;case s:L=H/n;break;case a:L=H/r;break;default:L=H}return N?L:O.a(L)},D.daysInMonth=function(){return this.endOf(u).$D},D.$locale=function(){return E[this.$L]},D.locale=function(k,j){if(!k)return this.$L;var N=this.clone(),L=P(k,j,!0);return L&&(N.$L=L),N},D.clone=function(){return O.w(this.$d,this)},D.toDate=function(){return new Date(this.valueOf())},D.toJSON=function(){return this.isValid()?this.toISOString():null},D.toISOString=function(){return this.$d.toISOString()},D.toString=function(){return this.$d.toUTCString()},T}(),x=A.prototype;return I.prototype=x,[["$ms",o],["$s",a],["$m",s],["$H",l],["$W",c],["$M",u],["$y",h],["$D",v]].forEach(function(T){x[T[1]]=function(D){return this.$g(D,T[0],T[1])}}),I.extend=function(T,D){return T.$i||(T(D,A,I),T.$i=!0),I},I.locale=P,I.isDayjs=R,I.unix=function(T){return I(1e3*T)},I.en=E[w],I.Ls=E,I.p={},I})})(WZ);var r3=WZ.exports;const bo=Mo(r3);var qZ={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Ht,function(){return function(r,n){n.prototype.weekday=function(i){var o=this.$locale().weekStart||0,a=this.$W,s=(a<o?a+7:a)-o;return this.$utils().u(i)?s:this.subtract(s,"day").add(i,"day")}}})})(qZ);var jRe=qZ.exports;const FRe=Mo(jRe);var GZ={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Ht,function(){return function(r,n,i){var o=n.prototype,a=function(u){return u&&(u.indexOf?u:u.s)},s=function(u,f,h,v,y){var g=u.name?u:u.$locale(),m=a(g[f]),S=a(g[h]),C=m||S.map(function(w){return w.slice(0,v)});if(!y)return C;var b=g.weekStart;return C.map(function(w,E){return C[(E+(b||0))%7]})},l=function(){return i.Ls[i.locale()]},c=function(u,f){return u.formats[f]||function(h){return h.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(v,y,g){return y||g.slice(1)})}(u.formats[f.toUpperCase()])},d=function(){var u=this;return{months:function(f){return f?f.format("MMMM"):s(u,"months")},monthsShort:function(f){return f?f.format("MMM"):s(u,"monthsShort","months",3)},firstDayOfWeek:function(){return u.$locale().weekStart||0},weekdays:function(f){return f?f.format("dddd"):s(u,"weekdays")},weekdaysMin:function(f){return f?f.format("dd"):s(u,"weekdaysMin","weekdays",2)},weekdaysShort:function(f){return f?f.format("ddd"):s(u,"weekdaysShort","weekdays",3)},longDateFormat:function(f){return c(u.$locale(),f)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};o.localeData=function(){return d.bind(this)()},i.localeData=function(){var u=l();return{firstDayOfWeek:function(){return u.weekStart||0},weekdays:function(){return i.weekdays()},weekdaysShort:function(){return i.weekdaysShort()},weekdaysMin:function(){return i.weekdaysMin()},months:function(){return i.months()},monthsShort:function(){return i.monthsShort()},longDateFormat:function(f){return c(u,f)},meridiem:u.meridiem,ordinal:u.ordinal}},i.months=function(){return s(l(),"months")},i.monthsShort=function(){return s(l(),"monthsShort","months",3)},i.weekdays=function(u){return s(l(),"weekdays",null,null,u)},i.weekdaysShort=function(u){return s(l(),"weekdaysShort","weekdays",3,u)},i.weekdaysMin=function(u){return s(l(),"weekdaysMin","weekdays",2,u)}}})})(GZ);var zRe=GZ.exports;const BRe=Mo(zRe);var KZ={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Ht,function(){var r="week",n="year";return function(i,o,a){var s=o.prototype;s.week=function(l){if(l===void 0&&(l=null),l!==null)return this.add(7*(l-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var d=a(this).startOf(n).add(1,n).date(c),u=a(this).endOf(r);if(d.isBefore(u))return 1}var f=a(this).startOf(n).date(c).startOf(r).subtract(1,"millisecond"),h=this.diff(f,r,!0);return h<0?a(this).startOf("week").week():Math.ceil(h)},s.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})})(KZ);var HRe=KZ.exports;const VRe=Mo(HRe);var YZ={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Ht,function(){return function(r,n){n.prototype.weekYear=function(){var i=this.month(),o=this.week(),a=this.year();return o===1&&i===11?a+1:i===0&&o>=52?a-1:a}}})})(YZ);var URe=YZ.exports;const WRe=Mo(URe);var XZ={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Ht,function(){return function(r,n){var i=n.prototype,o=i.format;i.format=function(a){var s=this,l=this.$locale();if(!this.isValid())return o.bind(this)(a);var c=this.$utils(),d=(a||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(u){switch(u){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return l.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return l.ordinal(s.week(),"W");case"w":case"ww":return c.s(s.week(),u==="w"?1:2,"0");case"W":case"WW":return c.s(s.isoWeek(),u==="W"?1:2,"0");case"k":case"kk":return c.s(String(s.$H===0?24:s.$H),u==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return u}});return o.bind(this)(d)}}})})(XZ);var qRe=XZ.exports;const GRe=Mo(qRe);var QZ={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Ht,function(){var r={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,o=/\d\d/,a=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,l={},c=function(g){return(g=+g)+(g>68?1900:2e3)},d=function(g){return function(m){this[g]=+m}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=function(m){if(!m||m==="Z")return 0;var S=m.match(/([+-]|\d\d)/g),C=60*S[1]+(+S[2]||0);return C===0?0:S[0]==="+"?-C:C}(g)}],f=function(g){var m=l[g];return m&&(m.indexOf?m:m.s.concat(m.f))},h=function(g,m){var S,C=l.meridiem;if(C){for(var b=1;b<=24;b+=1)if(g.indexOf(C(b,0,m))>-1){S=b>12;break}}else S=g===(m?"pm":"PM");return S},v={A:[s,function(g){this.afternoon=h(g,!1)}],a:[s,function(g){this.afternoon=h(g,!0)}],Q:[i,function(g){this.month=3*(g-1)+1}],S:[i,function(g){this.milliseconds=100*+g}],SS:[o,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[a,d("seconds")],ss:[a,d("seconds")],m:[a,d("minutes")],mm:[a,d("minutes")],H:[a,d("hours")],h:[a,d("hours")],HH:[a,d("hours")],hh:[a,d("hours")],D:[a,d("day")],DD:[o,d("day")],Do:[s,function(g){var m=l.ordinal,S=g.match(/\d+/);if(this.day=S[0],m)for(var C=1;C<=31;C+=1)m(C).replace(/\[|\]/g,"")===g&&(this.day=C)}],w:[a,d("week")],ww:[o,d("week")],M:[a,d("month")],MM:[o,d("month")],MM
278M:[s,function(g){var m=f("months"),S=(f("monthsShort")||m.map(function(C){return C.slice(0,3)})).indexOf(g)+1;if(S<1)throw new Error;this.month=S%12||S}],MMMM:[s,function(g){var m=f("months").indexOf(g)+1;if(m<1)throw new Error;this.month=m%12||m}],Y:[/[+-]?\d+/,d("year")],YY:[o,function(g){this.year=c(g)}],YYYY:[/\d{4}/,d("year")],Z:u,ZZ:u};function y(g){var m,S;m=g,S=l&&l.formats;for(var C=(g=m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(I,O,A){var x=A&&A.toUpperCase();return O||S[A]||r[A]||S[x].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(T,D,k){return D||k.slice(1)})})).match(n),b=C.length,w=0;w<b;w+=1){var E=C[w],_=v[E],R=_&&_[0],P=_&&_[1];C[w]=P?{regex:R,parser:P}:E.replace(/^\[|\]$/g,"")}return function(I){for(var O={},A=0,x=0;A<b;A+=1){var T=C[A];if(typeof T=="string")x+=T.length;else{var D=T.regex,k=T.parser,j=I.slice(x),N=D.exec(j)[0];k.call(O,N),I=I.replace(N,"")}}return function(L){var M=L.afternoon;if(M!==void 0){var $=L.hours;M?$<12&&(L.hours+=12):$===12&&(L.hours=0),delete L.afternoon}}(O),O}}return function(g,m,S){S.p.customParseFormat=!0,g&&g.parseTwoDigitYear&&(c=g.parseTwoDigitYear);var C=m.prototype,b=C.parse;C.parse=function(w){var E=w.date,_=w.utc,R=w.args;this.$u=_;var P=R[1];if(typeof P=="string"){var I=R[2]===!0,O=R[3]===!0,A=I||O,x=R[2];O&&(x=R[2]),l=this.$locale(),!I&&x&&(l=S.Ls[x]),this.$d=function(j,N,L,M){try{if(["x","X"].indexOf(N)>-1)return new Date((N==="X"?1e3:1)*j);var $=y(N)(j),F=$.year,z=$.month,H=$.day,U=$.hours,V=$.minutes,W=$.seconds,K=$.milliseconds,Z=$.zone,q=$.week,Y=new Date,G=H||(F||z?1:Y.getDate()),re=F||Y.getFullYear(),ee=0;F&&!z||(ee=z>0?z-1:Y.getMonth());var ne,te=U||0,pe=V||0,le=W||0,ye=K||0;return Z?new Date(Date.UTC(re,ee,G,te,pe,le,ye+60*Z.offset*1e3)):L?new Date(Date.UTC(re,ee,G,te,pe,le,ye)):(ne=new Date(re,ee,G,te,pe,le,ye),q&&(ne=M(ne).week(q).toDate()),ne)}catch{return new Date("")}}(E,P,_,S),this.init(),x&&x!==!0&&(this.$L=this.locale(x).$L),A&&E!=this.format(P)&&(this.$d=new Date("")),l={}}else if(P instanceof Array)for(var T=P.length,D=1;D<=T;D+=1){R[1]=P[D-1];var k=S.apply(this,R);if(k.isValid()){this.$d=k.$d,this.$L=k.$L,this.init();break}D===T&&(this.$d=new Date(""))}else b.call(this,w)}}})})(QZ);var KRe=QZ.exports;const YRe=Mo(KRe);bo.extend(YRe);bo.extend(GRe);bo.extend(FRe);bo.extend(BRe);bo.extend(VRe);bo.extend(WRe);bo.extend(function(e,t){var r=t.prototype,n=r.format;r.format=function(o){var a=(o||"").replace("Wo","wo");return n.bind(this)(a)}});var XRe={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},pu=function(t){var r=XRe[t];return r||t.split("_")[0]},QRe={getNow:function(){var t=bo();return typeof t.tz=="function"?t.tz():t},getFixedDate:function(t){return bo(t,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(t){return t.endOf("month")},getWeekDay:function(t){var r=t.locale("en");return r.weekday()+r.localeData().firstDayOfWeek()},getYear:function(t){return t.year()},getMonth:function(t){return t.month()},getDate:function(t){return t.date()},getHour:function(t){return t.hour()},getMinute:function(t){return t.minute()},getSecond:function(t){return t.second()},getMillisecond:function(t){return t.millisecond()},addYear:function(t,r){return t.add(r,"year")},addMonth:function(t,r){return t.add(r,"month")},addDate:function(t,r){return t.add(r,"day")},setYear:function(t,r){return t.year(r)},setMonth:function(t,r){return t.month(r)},setDate:function(t,r){return t.date(r)},setHour:function(t,r){return t.hour(r)},setMinute:function(t,r){return t.minute(r)},setSecond:function(t,r){return t.second(r)},setMillisecond:function(t,r){return t.millisecond(r)},isAfter:function(t,r){return t.isAfter(r)},isValidate:function(t){return t.isValid()},locale:{getWeekFirstDay:function(t){return bo().locale(pu(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,r){return r.locale(pu(t)).weekday(0)},getWeek:function(t,r){return r.locale(pu(t)).week()},getShortWeekDays:function(t){return bo().locale(pu(t)).localeData().weekdaysMin()},getShortMonths:function(t){return bo().locale(pu(t)).localeData().monthsShort()},format:function(t,r,n){return r.locale(pu(t)).format(n)},parse:function(t,r,n){for(var i=pu(t),o=0;o<n.length;o+=1){var a=n[o],s=r;if(a.includes("wo")||a.includes("Wo")){for(var l=s.split("-")[0],c=s.split("-")[1],d=bo(l,"YYYY").startOf("year").locale(i),u=0;u<=52;u+=1){var f=d.add(u,"week");if(f.format("Wo")===c)return f}return null}var h=bo(s,a,!0).locale(i);if(h.isValid())return h}return null}}};function JRe(e,t){return e!==void 0?e:t?"bottomRight":"bottomLeft"}var ds=p.createContext(null),ZRe={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function JZ(e){var t=e.popupElement,r=e.popupStyle,n=e.popupClassName,i=e.popupAlign,o=e.transitionName,a=e.getPopupContainer,s=e.children,l=e.range,c=e.placement,d=e.builtinPlacements,u=d===void 0?ZRe:d,f=e.direction,h=e.visible,v=e.onClose,y=p.useContext(ds),g=y.prefixCls,m="".concat(g,"-dropdown"),S=JRe(c,f==="rtl");return p.createElement(c0,{showAction:[],hideAction:["click"],popupPlacement:S,builtinPlacements:u,prefixCls:m,popupTransitionName:o,popup:t,popupAlign:i,popupVisible:h,popupClassName:ie(n,J(J({},"".concat(m,"-range"),l),"".concat(m,"-rtl"),f==="rtl")),popupStyle:r,stretch:"minWidth",getPopupContainer:a,onPopupVisibleChange:function(b){b||v()}},s)}function n3(e,t){for(var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",n=String(e);n.length<t;)n="".concat(r).concat(n);return n}function Md(e){return e==null?[]:Array.isArray(e)?e:[e]}function vm(e,t,r){var n=Ge(e);return n[t]=r,n}function M_(e,t){var r={},n=t||Object.keys(e);
278return n.forEach(function(i){e[i]!==void 0&&(r[i]=e[i])}),r}function ZZ(e,t,r){if(r)return r;switch(e){case"time":return t.fieldTimeFormat;case"datetime":return t.fieldDateTimeFormat;case"month":return t.fieldMonthFormat;case"year":return t.fieldYearFormat;case"quarter":return t.fieldQuarterFormat;case"week":return t.fieldWeekFormat;default:return t.fieldDateFormat}}function eee(e,t,r){var n=r!==void 0?r:t[t.length-1],i=t.find(function(o){return e[o]});return n!==i?e[i]:void 0}function tee(e){return M_(e,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function i3(e,t,r,n){var i=p.useMemo(function(){return e||function(a,s){var l=a;return t&&s.type==="date"?t(l,s.today):r&&s.type==="month"?r(l,s.locale):s.originNode}},[e,r,t]),o=p.useCallback(function(a,s){return i(a,Q(Q({},s),{},{range:n}))},[i,n]);return o}function ree(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],n=p.useState([!1,!1]),i=oe(n,2),o=i[0],a=i[1],s=function(d,u){a(function(f){return vm(f,u,d)})},l=p.useMemo(function(){return o.map(function(c,d){if(c)return!0;var u=e[d];return u?!!(!r[d]&&!u||u&&t(u,{activeIndex:d})):!1})},[e,o,t,r]);return[l,s]}function nee(e,t,r,n,i){var o="",a=[];return e&&a.push(i?"hh":"HH"),t&&a.push("mm"),r&&a.push("ss"),o=a.join(":"),n&&(o+=".SSS"),i&&(o+=" A"),o}function ePe(e,t,r,n,i,o){var a=e.fieldDateTimeFormat,s=e.fieldDateFormat,l=e.fieldTimeFormat,c=e.fieldMonthFormat,d=e.fieldYearFormat,u=e.fieldWeekFormat,f=e.fieldQuarterFormat,h=e.yearFormat,v=e.cellYearFormat,y=e.cellQuarterFormat,g=e.dayFormat,m=e.cellDateFormat,S=nee(t,r,n,i,o);return Q(Q({},e),{},{fieldDateTimeFormat:a||"YYYY-MM-DD ".concat(S),fieldDateFormat:s||"YYYY-MM-DD",fieldTimeFormat:l||S,fieldMonthFormat:c||"YYYY-MM",fieldYearFormat:d||"YYYY",fieldWeekFormat:u||"gggg-wo",fieldQuarterFormat:f||"YYYY-[Q]Q",yearFormat:h||"YYYY",cellYearFormat:v||"YYYY",cellQuarterFormat:y||"[Q]Q",cellDateFormat:m||g||"D"})}function iee(e,t){var r=t.showHour,n=t.showMinute,i=t.showSecond,o=t.showMillisecond,a=t.use12Hours;return de.useMemo(function(){return ePe(e,r,n,i,o,a)},[e,r,n,i,o,a])}function jh(e,t,r){return r??t.some(function(n){return e.includes(n)})}var tPe=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function rPe(e){var t=M_(e,tPe),r=e.format,n=e.picker,i=null;return r&&(i=r,Array.isArray(i)&&(i=i[0]),i=Pt(i)==="object"?i.format:i),n==="time"&&(t.format=i),[t,i]}function nPe(e){return e&&typeof e=="string"}function oee(e,t,r,n){return[e,t,r,n].some(function(i){return i!==void 0})}function aee(e,t,r,n,i){var o=t,a=r,s=n;if(!e&&!o&&!a&&!s&&!i)o=!0,a=!0,s=!0;else if(e){var l,c,d,u=[o,a,s].some(function(v){return v===!1}),f=[o,a,s].some(function(v){return v===!0}),h=u?!0:!f;o=(l=o)!==null&&l!==void 0?l:h,a=(c=a)!==null&&c!==void 0?c:h,s=(d=s)!==null&&d!==void 0?d:h}return[o,a,s,i]}function see(e){var t=e.showTime,r=rPe(e),n=oe(r,2),i=n[0],o=n[1],a=t&&Pt(t)==="object"?t:{},s=Q(Q({defaultOpenValue:a.defaultOpenValue||a.defaultValue},i),a),l=s.showMillisecond,c=s.showHour,d=s.showMinute,u=s.showSecond,f=oee(c,d,u,l),h=aee(f,c,d,u,l),v=oe(h,3);return c=v[0],d=v[1],u=v[2],[s,Q(Q({},s),{},{showHour:c,showMinute:d,showSecond:u,showMillisecond:l}),s.format,o]}function lee(e,t,r,n,i){var o=e==="time";if(e==="datetime"||o){for(var a=n,s=ZZ(e,i,null),l=s,c=[t,r],d=0;d<c.length;d+=1){var u=Md(c[d])[0];if(nPe(u)){l=u;break}}var f=a.showHour,h=a.showMinute,v=a.showSecond,y=a.showMillisecond,g=a.use12Hours,m=jh(l,["a","A","LT","LLL","LTS"],g),S=oee(f,h,v,y);S||(f=jh(l,["H","h","k","LT","LLL"]),h=jh(l,["m","LT","LLL"]),v=jh(l,["s","LTS"]),y=jh(l,["SSS"]));var C=aee(S,f,h,v,y),b=oe(C,3);f=b[0],h=b[1],v=b[2];var w=t||nee(f,h,v,y,m);return Q(Q({},a),{},{format:w,showHour:f,showMinute:h,showSecond:v,showMillisecond:y,use12Hours:m})}return null}function iPe(e,t,r){if(t===!1)return null;var n=t&&Pt(t)==="object"?t:{};return n.clearIcon||r||p.createElement("span",{className:"".concat(e,"-clear-btn")})}var dI=7;function qc(e,t,r){return!e&&!t||e===t?!0:!e||!t?!1:r()}function g$(e,t,r){return qc(t,r,function(){var n=Math.floor(e.getYear(t)/10),i=Math.floor(e.getYear(r)/10);return n===i})}function dd(e,t,r){return qc(t,r,function(){return e.getYear(t)===e.getYear(r)})}function Gj(e,t){var r=Math.floor(e.getMonth(t)/3);return r+1}function oPe(e,t,r){return qc(t,r,function(){return dd(e,t,r)&&Gj(e,t)===Gj(e,r)})}function o3(e,t,r){return qc(t,r,function(){return dd(e,t,r)&&e.getMonth(t)===e.getMonth(r)})}function a3(e,t,r){return qc(t,r,function(){return dd(e,t,r)&&o3(e,t,r)&&e.getDate(t)===e.getDate(r)})}function cee(e,t,r){return qc(t,r,function(){return e.getHour(t)===e.getHour(r)&&e.getMinute(t)===e.getMinute(r)&&e.getSecond(t)===e.getSecond(r)})}function uee(e,t,r){return qc(t,r,function(){return a3(e,t,r)&&cee(e,t,r)&&e.getMillisecond(t)===e.getMillisecond(r)})}function Yg(e,t,r,n){return qc(r,n,function(){var i=e.locale.getWeekFirstDate(t,r),o=e.locale.getWeekFirstDate(t,n);return dd(e,i,o)&&e.locale.getWeek(t,r)===e.locale.getWeek(t,n)})}function Gi(e,t,r,n,i){switch(i){case"date":return a3(e,r,n);case"week":return Yg(e,t.locale,r,n);case"month":return o3(e,r,n);case"quarter":return oPe(e,r,n);case"year":return dd(e,r,n);case"decade":return g$(e,r,n);case"time":return cee(e,r,n);default:return uee(e,r,n)}}function $_(e,t,r,n){return!t||!r||!n?!1:e.isAfter(n,t)&&e.isAfter(r,n)}function NS(e,t,r,n,i){return Gi(e,t,r,n,i)?!0:e.isAfter(r,n)}function aPe(e,t,r){var n=t.locale.getWeekFirstDay(e),i=t.setDate(r,1),o=t.getWeekDay(i),a=t.addDate(i,n-o);return t.getMonth(a)===t.getMonth(r)&&t.getDate(a)>1&&(a=t.addDate(a,-7)),a}function Xn(e,t){var r=t.generateConfig,n=t.locale,i=t.format;return e?typeof i=="function"?i(e):r.locale.format(n.locale,e,i):""}function Eb(e,t,r){var n=t,i=["getHour","getMinute","getSecond","getMillisecond"],o=["setHour","setMinute","setSecond","setMillisecond"];return o.forEach(function(a,s){r?n=e[a](n,e[i[s]](r)):n=e[a](n,0)}),n}function sPe(e,t,r,n,i){var o=lr(function(a,s){return!!(r&&r(a,s)||n&&e.isAfter(n,a)&&!Gi(e,t,n,a,s.type)||i&&e.isAfter(a,i)&&!Gi(e,t,i,a,s.type))});return o}function lPe(e,t,r){return p.useMemo(function(){var n=ZZ(e,t,r),i=Md(n),o=i[0],a=Pt(o)==="object"&&o.type==="mask"?o.format:null;return[i.map(function(s){return typeof s=="string"||typeof s=="function"?s:s.format}),a]},[e,t,r])}function cPe(e,t,r){return typeof e[0]=="function"||r?!0:t}function uPe(e,t,r,n){var i=lr(function(o,a){var s=Q({type:t},a);if(delete s.activeIndex,!e.isValidate(o)||r&&r(o,s))return!0;
278if((t==="date"||t==="time")&&n){var l,c=a&&a.activeIndex===1?"end":"start",d=((l=n.disabledTime)===null||l===void 0?void 0:l.call(n,o,c,{from:s.from}))||{},u=d.disabledHours,f=d.disabledMinutes,h=d.disabledSeconds,v=d.disabledMilliseconds,y=n.disabledHours,g=n.disabledMinutes,m=n.disabledSeconds,S=u||y,C=f||g,b=h||m,w=e.getHour(o),E=e.getMinute(o),_=e.getSecond(o),R=e.getMillisecond(o);if(S&&S().includes(w)||C&&C(w).includes(E)||b&&b(w,E).includes(_)||v&&v(w,E,_).includes(R))return!0}return!1});return i}function DS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=p.useMemo(function(){var n=e&&Md(e);return t&&n&&(n[1]=n[1]||n[0]),n},[e,t]);return r}function dee(e,t){var r=e.generateConfig,n=e.locale,i=e.picker,o=i===void 0?"date":i,a=e.prefixCls,s=a===void 0?"rc-picker":a,l=e.styles,c=l===void 0?{}:l,d=e.classNames,u=d===void 0?{}:d,f=e.order,h=f===void 0?!0:f,v=e.components,y=v===void 0?{}:v,g=e.inputRender,m=e.allowClear,S=e.clearIcon,C=e.needConfirm,b=e.multiple,w=e.format,E=e.inputReadOnly,_=e.disabledDate,R=e.minDate,P=e.maxDate,I=e.showTime,O=e.value,A=e.defaultValue,x=e.pickerValue,T=e.defaultPickerValue,D=DS(O),k=DS(A),j=DS(x),N=DS(T),L=o==="date"&&I?"datetime":o,M=L==="time"||L==="datetime",$=M||b,F=C??M,z=see(e),H=oe(z,4),U=H[0],V=H[1],W=H[2],K=H[3],Z=iee(n,V),q=p.useMemo(function(){return lee(L,W,K,U,Z)},[L,W,K,U,Z]),Y=p.useMemo(function(){return Q(Q({},e),{},{prefixCls:s,locale:Z,picker:o,styles:c,classNames:u,order:h,components:Q({input:g},y),clearIcon:iPe(s,m,S),showTime:q,value:D,defaultValue:k,pickerValue:j,defaultPickerValue:N},t==null?void 0:t())},[e]),G=lPe(L,Z,w),re=oe(G,2),ee=re[0],ne=re[1],te=cPe(ee,E,b),pe=sPe(r,n,_,R,P),le=uPe(r,o,pe,q),ye=p.useMemo(function(){return Q(Q({},Y),{},{needConfirm:F,inputReadOnly:te,disabledDate:pe})},[Y,F,te,pe]);return[ye,L,$,ee,ne,le]}function dPe(e,t,r){var n=Or(t,{value:e}),i=oe(n,2),o=i[0],a=i[1],s=de.useRef(e),l=de.useRef(),c=function(){Gt.cancel(l.current)},d=lr(function(){a(s.current),r&&o!==s.current&&r(s.current)}),u=lr(function(f,h){c(),s.current=f,f||h?d():l.current=Gt(d)});return de.useEffect(function(){return c},[]),[o,u]}function fee(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],n=arguments.length>3?arguments[3]:void 0,i=r.every(function(d){return d})?!1:e,o=dPe(i,t||!1,n),a=oe(o,2),s=a[0],l=a[1];function c(d){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!u.inherit||s)&&l(d,u.force)}return[s,c]}function pee(e){var t=p.useRef();return p.useImperativeHandle(e,function(){var r;return{nativeElement:(r=t.current)===null||r===void 0?void 0:r.nativeElement,focus:function(i){var o;(o=t.current)===null||o===void 0||o.focus(i)},blur:function(){var i;(i=t.current)===null||i===void 0||i.blur()}}}),t}function hee(e,t){return p.useMemo(function(){return e||(t?(Nn(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(r){var n=oe(r,2),i=n[0],o=n[1];return{label:i,value:o}})):[])},[e,t])}function s3(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,n=p.useRef(t);n.current=t,Zu(function(){if(e)n.current(e);else{var i=Gt(function(){n.current(e)},r);return function(){Gt.cancel(i)}}},[e])}function vee(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=p.useState(0),i=oe(n,2),o=i[0],a=i[1],s=p.useState(!1),l=oe(s,2),c=l[0],d=l[1],u=p.useRef([]),f=p.useRef(null),h=p.useRef(null),v=function(b){f.current=b},y=function(b){return f.current===b},g=function(b){d(b)},m=function(b){return b&&(h.current=b),h.current},S=function(b){var w=u.current,E=new Set(w.filter(function(R){return b[R]||t[R]})),_=w[w.length-1]===0?1:0;return E.size>=2||e[_]?null:_};return s3(c||r,function(){c||(u.current=[],v(null))}),p.useEffect(function(){c&&u.current.push(o)},[c,o]),[c,g,m,o,a,S,u.current,v,y]}function fPe(e,t,r,n,i,o){var a=r[r.length-1],s=function(c,d){var u=oe(e,2),f=u[0],h=u[1],v=Q(Q({},d),{},{from:eee(e,r)});return a===1&&t[0]&&f&&!Gi(n,i,f,c,v.type)&&n.isAfter(f,c)||a===0&&t[1]&&h&&!Gi(n,i,h,c,v.type)&&n.isAfter(c,h)?!0:o==null?void 0:o(c,v)};return s}function Xg(e,t,r,n){switch(t){case"date":case"week":return e.addMonth(r,n);case"month":case"quarter":return e.addYear(r,n);case"year":return e.addYear(r,n*10);case"decade":return e.addYear(r,n*100);default:return r}}var fI=[];function gee(e,t,r,n,i,o,a,s){var l=arguments.length>8&&arguments[8]!==void 0?arguments[8]:fI,c=arguments.length>9&&arguments[9]!==void 0?arguments[9]:fI,d=arguments.length>10&&arguments[10]!==void 0?arguments[10]:fI,u=arguments.length>11?arguments[11]:void 0,f=arguments.length>12?arguments[12]:void 0,h=arguments.length>13?arguments[13]:void 0,v=a==="time",y=o||0,g=function(j){var N=e.getNow();return v&&(N=Eb(e,N)),l[j]||r[j]||N},m=oe(c,2),S=m[0],C=m[1],b=Or(function(){return g(0)},{value:S}),w=oe(b,2),E=w[0],_=w[1],R=Or(function(){return g(1)},{value:C}),P=oe(R,2),I=P[0],O=P[1],A=p.useMemo(function(){var k=[E,I][y];return v?k:Eb(e,k,d[y])}
278,[v,E,I,y,e,d]),x=function(j){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",L=[_,O][y];L(j);var M=[E,I];M[y]=j,u&&(!Gi(e,t,E,M[0],a)||!Gi(e,t,I,M[1],a))&&u(M,{source:N,range:y===1?"end":"start",mode:n})},T=function(j,N){if(s){var L={date:"month",week:"month",month:"year",quarter:"year"},M=L[a];if(M&&!Gi(e,t,j,N,M))return Xg(e,a,N,-1);if(a==="year"&&j){var $=Math.floor(e.getYear(j)/10),F=Math.floor(e.getYear(N)/10);if($!==F)return Xg(e,a,N,-1)}}return N},D=p.useRef(null);return nr(function(){if(i&&!l[y]){var k=v?null:e.getNow();if(D.current!==null&&D.current!==y?k=[E,I][y^1]:r[y]?k=y===0?r[0]:T(r[0],r[1]):r[y^1]&&(k=r[y^1]),k){f&&e.isAfter(f,k)&&(k=f);var j=s?Xg(e,a,k,1):k;h&&e.isAfter(j,h)&&(k=s?Xg(e,a,h,-1):h),x(k,"reset")}}},[i,y,r[y]]),p.useEffect(function(){i?D.current=y:D.current=null},[i,y]),nr(function(){i&&l&&l[y]&&x(l[y],"reset")},[i,y]),[A,x]}function mee(e,t){var r=p.useRef(e),n=p.useState({}),i=oe(n,2),o=i[1],a=function(c){return c&&t!==void 0?t:r.current},s=function(c){r.current=c,o({})};return[a,s,a(!0)]}var pPe=[];function yee(e,t,r){var n=function(a){return a.map(function(s){return Xn(s,{generateConfig:e,locale:t,format:r[0]})})},i=function(a,s){for(var l=Math.max(a.length,s.length),c=-1,d=0;d<l;d+=1){var u=a[d]||null,f=s[d]||null;if(u!==f&&!uee(e,u,f)){c=d;break}}return[c<0,c!==0]};return[n,i]}function See(e,t){return Ge(e).sort(function(r,n){return t.isAfter(r,n)?1:-1})}function hPe(e){var t=mee(e),r=oe(t,2),n=r[0],i=r[1],o=lr(function(){i(e)});return p.useEffect(function(){o()},[e]),[n,i]}function Cee(e,t,r,n,i,o,a,s,l){var c=Or(o,{value:a}),d=oe(c,2),u=d[0],f=d[1],h=u||pPe,v=hPe(h),y=oe(v,2),g=y[0],m=y[1],S=yee(e,t,r),C=oe(S,2),b=C[0],w=C[1],E=lr(function(R){var P=Ge(R);if(n)for(var I=0;I<2;I+=1)P[I]=P[I]||null;else i&&(P=See(P.filter(function(k){return k}),e));var O=w(g(),P),A=oe(O,2),x=A[0],T=A[1];if(!x&&(m(P),s)){var D=b(P);s(P,D,{range:T?"end":"start"})}}),_=function(){l&&l(g())};return[h,f,g,E,_]}function bee(e,t,r,n,i,o,a,s,l,c){var d=e.generateConfig,u=e.locale,f=e.picker,h=e.onChange,v=e.allowEmpty,y=e.order,g=o.some(function(x){return x})?!1:y,m=yee(d,u,a),S=oe(m,2),C=S[0],b=S[1],w=mee(t),E=oe(w,2),_=E[0],R=E[1],P=lr(function(){R(t)});p.useEffect(function(){P()},[t]);var I=lr(function(x){var T=x===null,D=Ge(x||_());if(T)for(var k=Math.max(o.length,D.length),j=0;j<k;j+=1)o[j]||(D[j]=null);g&&D[0]&&D[1]&&(D=See(D,d)),i(D);var N=D,L=oe(N,2),M=L[0],$=L[1],F=!M,z=!$,H=v?(!F||v[0])&&(!z||v[1]):!0,U=!y||F||z||Gi(d,u,M,$,f)||d.isAfter($,M),V=(o[0]||!M||!c(M,{activeIndex:0}))&&(o[1]||!$||!c($,{from:M,activeIndex:1})),W=T||H&&U&&V;if(W){r(D);var K=b(D,t),Z=oe(K,1),q=Z[0];h&&!q&&h(T&&D.every(function(Y){return!Y})?null:D,C(D))}return W}),O=lr(function(x,T){var D=vm(_(),x,n()[x]);R(D),T&&I()}),A=!s&&!l;return s3(!A,function(){A&&(I(),i(t),P())},2),[O,I]}function wee(e,t,r,n,i){return t!=="date"&&t!=="time"?!1:r!==void 0?r:n!==void 0?n:!i&&(e==="date"||e==="time")}function vPe(e,t,r,n,i,o){var a=e;function s(u,f,h){var v=o[u](a),y=h.find(function(C){return C.value===v});if(!y||y.disabled){var g=h.filter(function(C){return!C.disabled}),m=Ge(g).reverse(),S=m.find(function(C){return C.value<=v})||g[0];S&&(v=S.value,a=o[f](a,v))}return v}var l=s("getHour","setHour",t()),c=s("getMinute","setMinute",r(l)),d=s("getSecond","setSecond",n(l,c));return s("getMillisecond","setMillisecond",i(l,c,d)),a}function LS(){return[]}function jS(e,t){for(var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,a=[],s=r>=1?r|0:1,l=e;l<=t;l+=s){var c=i.includes(l);(!c||!n)&&a.push({label:n3(l,o),value:l,disabled:c})}return a}function l3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=t||{},i=n.use12Hours,o=n.hourStep,a=o===void 0?1:o,s=n.minuteStep,l=s===void 0?1:s,c=n.secondStep,d=c===void 0?1:c,u=n.millisecondStep,f=u===void 0?100:u,h=n.hideDisabledOptions,v=n.disabledTime,y=n.disabledHours,g=n.disabledMinutes,m=n.disabledSeconds,S=p.useMemo(function(){return r||e.getNow()},[r,e]),C=p.useCallback(function(N){var L=(v==null?void 0:v(N))||{};return[L.disabledHours||y||LS,L.disabledMinutes||g||LS,L.disabledSeconds||m||LS,L.disabledMilliseconds||LS]},[v,y,g,m]),b=p.useMemo(function(){return C(S)},[S,C]),w=oe(b,4),E=w[0],_=w[1],R=w[2],P=w[3],I=p.useCallback(function(N,L,M,$){var F=jS(0,23,a,h,N()),z=i?F.map(function(W){return Q(Q({},W),{},{label:n3(W.value%12||12,2)})}):F,H=function(K){return jS(0,59,l,h,L(K))},U=function(K,Z){return jS(0,59,d,h,M(K,Z))},V=function(K,Z,q){return jS(0,999,f,h,$(K,Z,q),3)};return[z,H,U,V]},[h,a,i,f,l,d]),O=p.useMemo(function(){return I(E,_,R,P)},[I,E,_,R,P]),A=oe(O,4),x=A[0],T=A[1],D=A[2],k=A[3],j=function(L,M){var $=function(){return x},F=T,z=D,H=k;if(M){var U=C(M),V=oe(U,4),W=V[0],K=V[1],Z=V[2],q=V[3],Y=I(W,K,Z,q),G=oe(Y,4),re=G[0],ee=G[1],ne=G[2],te=G[3];$=function(){return re},F=ee,z=ne,H=te}var pe=vPe(L,$,F,z,H,e);return pe};return[j,x,T,D,k]}function gPe(e){var t=e.mode,r=e.internalMode,n=e.renderExtraFooter,i=e.showNow,o=e.showTime,a=e.onSubmit,s=e.onNow,l=e.invalid,c=e.needConfirm,d=e.generateConfig,u=e.disabledDate,f=p.useContext(ds),h=f.prefixCls,v=f.locale,y=f.button,g=y===void 0?"button":y,m=d.getNow(),S=l3(d,o,m),C=oe(S,1),b=C[0],w=n==null?void 0:n(t),E=u(m,{type:t}),_=function(){if(!E){var T=b(m);s(T)}},R="".concat(h,"-now"),P="".concat(R,"-btn"),I=i&&p.createElement("li",{className:R},p.createElement("a",{className:ie(P,E&&"".concat(P,"-disabled")),"aria-disabled":E,onClick:_},r==="date"?v.today:v.now)),O=c&&p.createElement("li",{className:"".concat(h,"-ok")},p.createElement(g,{disabled:l,onClick:a},v.ok)),A=(I||O)&&p.createElement("ul",{className:"".concat(h,"-ranges")},I,O);return!w&&!A?null:p.createElement("div",{className:"".concat(h,"-footer")},w&&p.createElement("div",{className:"".concat(h,"-footer-extra")},w),A)}function _ee(e,t,r){function n(i,o){var a=i.findIndex(function(l){return Gi(e,t,l,o,r)});if(a===-1)return[].concat(Ge(i),[o]);var s=Ge(i);return s.splice(a,1),s}return n}var $d=p.createContext(null);function k_(){return p.useContext($d)}function Jp(e,t){var r=e.prefixCls,n=e.generateConfig,i=e.locale,o=e.disabledDate,a=e.minDate,s=e.maxDate,l=e.cellRender,c=e.hoverValue,d=e.hoverRangeValue,u=e.onHover,f=e.values,h=e.pickerValue,v=e.onSelect,y=e.prevIcon,g=e.nextIcon,m=e.superPrevIcon,S=e.superNextIcon,C=n.getNow(),b={now:C,values:f,pickerValue:h,prefixCls:r,disabledDate:o,minDate:a,maxDate:s,cellRender:l,hoverValue:c,hoverRangeValue:d,onHover:u,locale:i,generateConfig:n,onSelect:v,panelType:t,prevIcon:y,nextIcon:g,superPrevIcon:m,superNextIcon:S};return[b,C]}var Ec=p.createContext({});
278function p0(e){for(var t=e.rowNum,r=e.colNum,n=e.baseDate,i=e.getCellDate,o=e.prefixColumn,a=e.rowClassName,s=e.titleFormat,l=e.getCellText,c=e.getCellClassName,d=e.headerCells,u=e.cellSelection,f=u===void 0?!0:u,h=e.disabledDate,v=k_(),y=v.prefixCls,g=v.panelType,m=v.now,S=v.disabledDate,C=v.cellRender,b=v.onHover,w=v.hoverValue,E=v.hoverRangeValue,_=v.generateConfig,R=v.values,P=v.locale,I=v.onSelect,O=h||S,A="".concat(y,"-cell"),x=p.useContext(Ec),T=x.onCellDblClick,D=function(z){return R.some(function(H){return H&&Gi(_,P,z,H,g)})},k=[],j=0;j<t;j+=1){for(var N=[],L=void 0,M=function(){var z=j*r+$,H=i(n,z),U=O==null?void 0:O(H,{type:g});$===0&&(L=H,o&&N.push(o(L)));var V=!1,W=!1,K=!1;if(f&&E){var Z=oe(E,2),q=Z[0],Y=Z[1];V=$_(_,q,Y,H),W=Gi(_,P,H,q,g),K=Gi(_,P,H,Y,g)}var G=s?Xn(H,{locale:P,format:s,generateConfig:_}):void 0,re=p.createElement("div",{className:"".concat(A,"-inner")},l(H));N.push(p.createElement("td",{key:$,title:G,className:ie(A,Q(J(J(J(J(J(J({},"".concat(A,"-disabled"),U),"".concat(A,"-hover"),(w||[]).some(function(ee){return Gi(_,P,H,ee,g)})),"".concat(A,"-in-range"),V&&!W&&!K),"".concat(A,"-range-start"),W),"".concat(A,"-range-end"),K),"".concat(y,"-cell-selected"),!E&&g!=="week"&&D(H)),c(H))),onClick:function(){U||I(H)},onDoubleClick:function(){!U&&T&&T()},onMouseEnter:function(){U||b==null||b(H)},onMouseLeave:function(){U||b==null||b(null)}},C?C(H,{prefixCls:y,originNode:re,today:m,type:g,locale:P}):re))},$=0;$<r;$+=1)M();k.push(p.createElement("tr",{key:j,className:a==null?void 0:a(L)},N))}return p.createElement("div",{className:"".concat(y,"-body")},p.createElement("table",{className:"".concat(y,"-content")},d&&p.createElement("thead",null,p.createElement("tr",null,d)),p.createElement("tbody",null,k)))}var FS={visibility:"hidden"};function Zp(e){var t=e.offset,r=e.superOffset,n=e.onChange,i=e.getStart,o=e.getEnd,a=e.children,s=k_(),l=s.prefixCls,c=s.prevIcon,d=c===void 0?"‹":c,u=s.nextIcon,f=u===void 0?"›":u,h=s.superPrevIcon,v=h===void 0?"«":h,y=s.superNextIcon,g=y===void 0?"»":y,m=s.minDate,S=s.maxDate,C=s.generateConfig,b=s.locale,w=s.pickerValue,E=s.panelType,_="".concat(l,"-header"),R=p.useContext(Ec),P=R.hidePrev,I=R.hideNext,O=R.hideHeader,A=p.useMemo(function(){if(!m||!t||!o)return!1;var F=o(t(-1,w));return!NS(C,b,F,m,E)},[m,t,w,o,C,b,E]),x=p.useMemo(function(){if(!m||!r||!o)return!1;var F=o(r(-1,w));return!NS(C,b,F,m,E)},[m,r,w,o,C,b,E]),T=p.useMemo(function(){if(!S||!t||!i)return!1;var F=i(t(1,w));return!NS(C,b,S,F,E)},[S,t,w,i,C,b,E]),D=p.useMemo(function(){if(!S||!r||!i)return!1;var F=i(r(1,w));return!NS(C,b,S,F,E)},[S,r,w,i,C,b,E]),k=function(z){t&&n(t(z,w))},j=function(z){r&&n(r(z,w))};if(O)return null;var N="".concat(_,"-prev-btn"),L="".concat(_,"-next-btn"),M="".concat(_,"-super-prev-btn"),$="".concat(_,"-super-next-btn");return p.createElement("div",{className:_},r&&p.createElement("button",{type:"button","aria-label":b.previousYear,onClick:function(){return j(-1)},tabIndex:-1,className:ie(M,x&&"".concat(M,"-disabled")),disabled:x,style:P?FS:{}},v),t&&p.createElement("button",{type:"button","aria-label":b.previousMonth,onClick:function(){return k(-1)},tabIndex:-1,className:ie(N,A&&"".concat(N,"-disabled")),disabled:A,style:P?FS:{}},d),p.createElement("div",{className:"".concat(_,"-view")},a),t&&p.createElement("button",{type:"button","aria-label":b.nextMonth,onClick:function(){return k(1)},tabIndex:-1,className:ie(L,T&&"".concat(L,"-disabled")),disabled:T,style:I?FS:{}},f),r&&p.createElement("button",{type:"button","aria-label":b.nextYear,onClick:function(){return j(1)},tabIndex:-1,className:ie($,D&&"".concat($,"-disabled")),disabled:D,style:I?FS:{}},g))}function N_(e){var t=e.prefixCls,r=e.panelName,n=r===void 0?"date":r,i=e.locale,o=e.generateConfig,a=e.pickerValue,s=e.onPickerValueChange,l=e.onModeChange,c=e.mode,d=c===void 0?"date":c,u=e.disabledDate,f=e.onSelect,h=e.onHover,v=e.showWeek,y="".concat(t,"-").concat(n,"-panel"),g="".concat(t,"-cell"),m=d==="week",S=Jp(e,d),C=oe(S,2),b=C[0],w=C[1],E=o.locale.getWeekFirstDay(i.locale),_=o.setDate(a,1),R=aPe(i.locale,o,_),P=o.getMonth(a),I=v===void 0?m:v,O=I?function(F){var z=u==null?void 0:u(F,{type:"week"});return p.createElement("td",{key:"week",className:ie(g,"".concat(g,"-week"),J({},"".concat(g,"-disabled"),z)),onClick:function(){z||f(F)},onMouseEnter:function(){z||h==null||h(F)},onMouseLeave:function(){z||h==null||h(null)}},p.createElement("div",{className:"".concat(g,"-inner")},o.locale.getWeek(i.locale,F)))}:null,A=[],x=i.shortWeekDays||(o.locale.getShortWeekDays?o.locale.getShortWeekDays(i.locale):[]);O&&A.push(p.createElement("th",{key:"empty"},p.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}
278},i.week)));for(var T=0;T<dI;T+=1)A.push(p.createElement("th",{key:T},x[(T+E)%dI]));var D=function(z,H){return o.addDate(z,H)},k=function(z){return Xn(z,{locale:i,format:i.cellDateFormat,generateConfig:o})},j=function(z){var H=J(J({},"".concat(t,"-cell-in-view"),o3(o,z,a)),"".concat(t,"-cell-today"),a3(o,z,w));return H},N=i.shortMonths||(o.locale.getShortMonths?o.locale.getShortMonths(i.locale):[]),L=p.createElement("button",{type:"button","aria-label":i.yearSelect,key:"year",onClick:function(){l("year",a)},tabIndex:-1,className:"".concat(t,"-year-btn")},Xn(a,{locale:i,format:i.yearFormat,generateConfig:o})),M=p.createElement("button",{type:"button","aria-label":i.monthSelect,key:"month",onClick:function(){l("month",a)},tabIndex:-1,className:"".concat(t,"-month-btn")},i.monthFormat?Xn(a,{locale:i,format:i.monthFormat,generateConfig:o}):N[P]),$=i.monthBeforeYear?[M,L]:[L,M];return p.createElement($d.Provider,{value:b},p.createElement("div",{className:ie(y,v&&"".concat(y,"-show-week"))},p.createElement(Zp,{offset:function(z){return o.addMonth(a,z)},superOffset:function(z){return o.addYear(a,z)},onChange:s,getStart:function(z){return o.setDate(z,1)},getEnd:function(z){var H=o.setDate(z,1);return H=o.addMonth(H,1),o.addDate(H,-1)}},$),p.createElement(p0,$e({titleFormat:i.fieldDateFormat},e,{colNum:dI,rowNum:6,baseDate:R,headerCells:A,getCellDate:D,getCellText:k,getCellClassName:j,prefixColumn:O,cellSelection:!m}))))}var mPe=1/3;function yPe(e,t){var r=p.useRef(!1),n=p.useRef(null),i=p.useRef(null),o=function(){return r.current},a=function(){Gt.cancel(n.current),r.current=!1},s=p.useRef(),l=function(){var u=e.current;if(i.current=null,s.current=0,u){var f=u.querySelector('[data-value="'.concat(t,'"]')),h=u.querySelector("li"),v=function y(){a(),r.current=!0,s.current+=1;var g=u.scrollTop,m=h.offsetTop,S=f.offsetTop,C=S-m;if(S===0&&f!==h||!n0(u)){s.current<=5&&(n.current=Gt(y));return}var b=g+(C-g)*mPe,w=Math.abs(C-b);if(i.current!==null&&i.current<w){a();return}if(i.current=w,w<=1){u.scrollTop=C,a();return}u.scrollTop=b,n.current=Gt(y)};f&&h&&v()}},c=lr(l);return[c,a,o]}var SPe=300;function CPe(e){return e.map(function(t){var r=t.value,n=t.label,i=t.disabled;return[r,n,i].join(",")}).join(";")}function Fh(e){var t=e.units,r=e.value,n=e.optionalValue,i=e.type,o=e.onChange,a=e.onHover,s=e.onDblClick,l=e.changeOnScroll,c=k_(),d=c.prefixCls,u=c.cellRender,f=c.now,h=c.locale,v="".concat(d,"-time-panel"),y="".concat(d,"-time-panel-cell"),g=p.useRef(null),m=p.useRef(),S=function(){clearTimeout(m.current)},C=yPe(g,r??n),b=oe(C,3),w=b[0],E=b[1],_=b[2];nr(function(){return w(),S(),function(){E(),S()}},[r,n,CPe(t)]);var R=function(O){S();var A=O.target;!_()&&l&&(m.current=setTimeout(function(){var x=g.current,T=x.querySelector("li").offsetTop,D=Array.from(x.querySelectorAll("li")),k=D.map(function($){return $.offsetTop-T}),j=k.map(function($,F){return t[F].disabled?Number.MAX_SAFE_INTEGER:Math.abs($-A.scrollTop)}),N=Math.min.apply(Math,Ge(j)),L=j.findIndex(function($){return $===N}),M=t[L];M&&!M.disabled&&o(M.value)},SPe))},P="".concat(v,"-column");return p.createElement("ul",{className:P,ref:g,"data-type":i,onScroll:R},t.map(function(I){var O=I.label,A=I.value,x=I.disabled,T=p.createElement("div",{className:"".concat(y,"-inner")},O);return p.createElement("li",{key:A,className:ie(y,J(J({},"".concat(y,"-selected"),r===A),"".concat(y,"-disabled"),x)),onClick:function(){x||o(A)},onDoubleClick:function(){!x&&s&&s()},onMouseEnter:function(){a(A)},onMouseLeave:function(){a(null)},"data-value":A},u?u(A,{prefixCls:d,originNode:T,today:f,type:"time",subType:i,locale:h}):T)}))}function Ul(e){return e<12}function bPe(e){var t=e.showHour,r=e.showMinute,n=e.showSecond,i=e.showMillisecond,o=e.use12Hours,a=e.changeOnScroll,s=k_(),l=s.prefixCls,c=s.values,d=s.generateConfig,u=s.locale,f=s.onSelect,h=s.onHover,v=h===void 0?function(){}:h,y=s.pickerValue,g=(c==null?void 0:c[0])||null,m=p.useContext(Ec),S=m.onCellDblClick,C=l3(d,e,g),b=oe(C,5),w=b[0],E=b[1],_=b[2],R=b[3],P=b[4],I=function(Ae){var We=g&&d[Ae](g),lt=y&&d[Ae](y);return[We,lt]},O=I("getHour"),A=oe(O,2),x=A[0],T=A[1],D=I("getMinute"),k=oe(D,2),j=k[0],N=k[1],L=I("getSecond"),M=oe(L,2),$=M[0],F=M[1],z=I("getMillisecond"),H=oe(z,2),U=H[0],V=H[1],W=x===null?null:Ul(x)?"am":"pm",K=p.useMemo(function(){return o?Ul(x)?E.filter(function(ce){return Ul(ce.value)}):E.filter(function(ce){return!Ul(ce.value)}):E},[x,E,o]),Z=function(Ae,We){var lt,yt=Ae.filter(function(nt){return!nt.disabled});return We??(yt==null||(lt=yt[0])===null||lt===void 0?void 0:lt.value)},q=Z(E,x),Y=p.useMemo(function(){return _(q)},[_,q]),G=Z(Y,j),re=p.useMemo(function(){return R(q,G)},[R,q,G]),ee=Z(re,$),ne=p.useMemo(function(){return P(q,G,ee)},[P,q,G,ee]),te=Z(ne,U),pe=p.useMemo(function(){if(!o)return[];var ce=d.getNow(),Ae=d.setHour(ce,6),We=d.setHour(ce,18),lt=function(nt,it){var gt=u.cellMeridiemFormat;return gt?Xn(nt,{generateConfig:d,locale:u,format:gt}):it};return[{label:lt(Ae,"AM"),value:"am",disabled:E.every(function(yt){return yt.disabled||!Ul(yt.value)})},{label:lt(We,"PM"),value:"pm",disabled:E.every(function(yt){return yt.disabled||Ul(yt.value)})}]},[E,o,d,u]),le=function(Ae){var We=w(Ae);f(We)},ye=p.useMemo(function(){var ce=g||y||d.getNow(),Ae=function(lt){return lt!=null};return Ae(x)?(ce=d.setHour(ce,x),ce=d.setMinute(ce,j),ce=d.setSecond(ce,$),ce=d.setMillisecond(ce,
278U)):Ae(T)?(ce=d.setHour(ce,T),ce=d.setMinute(ce,N),ce=d.setSecond(ce,F),ce=d.setMillisecond(ce,V)):Ae(q)&&(ce=d.setHour(ce,q),ce=d.setMinute(ce,G),ce=d.setSecond(ce,ee),ce=d.setMillisecond(ce,te)),ce},[g,y,x,j,$,U,q,G,ee,te,T,N,F,V,d]),Se=function(Ae,We){return Ae===null?null:d[We](ye,Ae)},_e=function(Ae){return Se(Ae,"setHour")},De=function(Ae){return Se(Ae,"setMinute")},be=function(Ae){return Se(Ae,"setSecond")},se=function(Ae){return Se(Ae,"setMillisecond")},Pe=function(Ae){return Ae===null?null:Ae==="am"&&!Ul(x)?d.setHour(ye,x-12):Ae==="pm"&&Ul(x)?d.setHour(ye,x+12):ye},Te=function(Ae){le(_e(Ae))},ze=function(Ae){le(De(Ae))},ke=function(Ae){le(be(Ae))},Me=function(Ae){le(se(Ae))},qe=function(Ae){le(Pe(Ae))},Le=function(Ae){v(_e(Ae))},xe=function(Ae){v(De(Ae))},je=function(Ae){v(be(Ae))},Ee=function(Ae){v(se(Ae))},Re=function(Ae){v(Pe(Ae))},me={onDblClick:S,changeOnScroll:a};return p.createElement("div",{className:"".concat(l,"-content")},t&&p.createElement(Fh,$e({units:K,value:x,optionalValue:T,type:"hour",onChange:Te,onHover:Le},me)),r&&p.createElement(Fh,$e({units:Y,value:j,optionalValue:N,type:"minute",onChange:ze,onHover:xe},me)),n&&p.createElement(Fh,$e({units:re,value:$,optionalValue:F,type:"second",onChange:ke,onHover:je},me)),i&&p.createElement(Fh,$e({units:ne,value:U,optionalValue:V,type:"millisecond",onChange:Me,onHover:Ee},me)),o&&p.createElement(Fh,$e({units:pe,value:W,type:"meridiem",onChange:qe,onHover:Re},me)))}function Eee(e){var t=e.prefixCls,r=e.value,n=e.locale,i=e.generateConfig,o=e.showTime,a=o||{},s=a.format,l="".concat(t,"-time-panel"),c=Jp(e,"time"),d=oe(c,1),u=d[0];return p.createElement($d.Provider,{value:u},p.createElement("div",{className:ie(l)},p.createElement(Zp,null,r?Xn(r,{locale:n,format:s,generateConfig:i}):" "),p.createElement(bPe,o)))}function wPe(e){var t=e.prefixCls,r=e.generateConfig,n=e.showTime,i=e.onSelect,o=e.value,a=e.pickerValue,s=e.onHover,l="".concat(t,"-datetime-panel"),c=l3(r,n),d=oe(c,1),u=d[0],f=function(g){return o?Eb(r,g,o):Eb(r,g,a)},h=function(g){s==null||s(g&&f(g))},v=function(g){var m=f(g);i(u(m,m))};return p.createElement("div",{className:l},p.createElement(N_,$e({},e,{onSelect:v,onHover:h})),p.createElement(Eee,e))}function _Pe(e){var t=e.prefixCls,r=e.locale,n=e.generateConfig,i=e.pickerValue,o=e.disabledDate,a=e.onPickerValueChange,s="".concat(t,"-decade-panel"),l=Jp(e,"decade"),c=oe(l,1),d=c[0],u=function(E){var _=Math.floor(n.getYear(E)/100)*100;return n.setYear(E,_)},f=function(E){var _=u(E);return n.addYear(_,99)},h=u(i),v=f(i),y=n.addYear(h,-10),g=function(E,_){return n.addYear(E,_*10)},m=function(E){var _=r.cellYearFormat,R=Xn(E,{locale:r,format:_,generateConfig:n}),P=Xn(n.addYear(E,9),{locale:r,format:_,generateConfig:n});return"".concat(R,"-").concat(P)},S=function(E){return J({},"".concat(t,"-cell-in-view"),g$(n,E,h)||g$(n,E,v)||$_(n,h,v,E))},C=o?function(w,E){var _=n.setDate(w,1),R=n.setMonth(_,0),P=n.setYear(R,Math.floor(n.getYear(R)/10)*10),I=n.addYear(P,10),O=n.addDate(I,-1);return o(P,E)&&o(O,E)}:null,b="".concat(Xn(h,{locale:r,format:r.yearFormat,generateConfig:n}),"-").concat(Xn(v,{locale:r,format:r.yearFormat,generateConfig:n}));return p.createElement($d.Provider,{value:d},p.createElement("div",{className:s},p.createElement(Zp,{superOffset:function(E){return n.addYear(i,E*100)},onChange:a,getStart:u,getEnd:f},b),p.createElement(p0,$e({},e,{disabledDate:C,colNum:3,rowNum:4,baseDate:y,getCellDate:g,getCellText:m,getCellClassName:S}))))}function EPe(e){var t=e.prefixCls,r=e.locale,n=e.generateConfig,i=e.pickerValue,o=e.disabledDate,a=e.onPickerValueChange,s=e.onModeChange,l="".concat(t,"-month-panel"),c=Jp(e,"month"),d=oe(c,1),u=d[0],f=n.setMonth(i,0),h=r.shortMonths||(n.locale.getShortMonths?n.locale.getShortMonths(r.locale):[]),v=function(b,w){return n.addMonth(b,w)},y=function(b){var w=n.getMonth(b);return r.monthFormat?Xn(b,{locale:r,format:r.monthFormat,generateConfig:n}):h[w]},g=function(){return J({},"".concat(t,"-cell-in-view"),!0)},m=o?function(C,b){var w=n.setDate(C,1),E=n.setMonth(w,n.getMonth(w)+1),_=n.addDate(E,-1);return o(w,b)&&o(_,b)}:null,S=p.createElement("button",{type:"button",key:"year","aria-label":r.yearSelect,onClick:function(){s("year")}
278,tabIndex:-1,className:"".concat(t,"-year-btn")},Xn(i,{locale:r,format:r.yearFormat,generateConfig:n}));return p.createElement($d.Provider,{value:u},p.createElement("div",{className:l},p.createElement(Zp,{superOffset:function(b){return n.addYear(i,b)},onChange:a,getStart:function(b){return n.setMonth(b,0)},getEnd:function(b){return n.setMonth(b,11)}},S),p.createElement(p0,$e({},e,{disabledDate:m,titleFormat:r.fieldMonthFormat,colNum:3,rowNum:4,baseDate:f,getCellDate:v,getCellText:y,getCellClassName:g}))))}function RPe(e){var t=e.prefixCls,r=e.locale,n=e.generateConfig,i=e.pickerValue,o=e.onPickerValueChange,a=e.onModeChange,s="".concat(t,"-quarter-panel"),l=Jp(e,"quarter"),c=oe(l,1),d=c[0],u=n.setMonth(i,0),f=function(m,S){return n.addMonth(m,S*3)},h=function(m){return Xn(m,{locale:r,format:r.cellQuarterFormat,generateConfig:n})},v=function(){return J({},"".concat(t,"-cell-in-view"),!0)},y=p.createElement("button",{type:"button",key:"year","aria-label":r.yearSelect,onClick:function(){a("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},Xn(i,{locale:r,format:r.yearFormat,generateConfig:n}));return p.createElement($d.Provider,{value:d},p.createElement("div",{className:s},p.createElement(Zp,{superOffset:function(m){return n.addYear(i,m)},onChange:o,getStart:function(m){return n.setMonth(m,0)},getEnd:function(m){return n.setMonth(m,11)}},y),p.createElement(p0,$e({},e,{titleFormat:r.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:u,getCellDate:f,getCellText:h,getCellClassName:v}))))}function PPe(e){var t=e.prefixCls,r=e.generateConfig,n=e.locale,i=e.value,o=e.hoverValue,a=e.hoverRangeValue,s=n.locale,l="".concat(t,"-week-panel-row"),c=function(u){var f={};if(a){var h=oe(a,2),v=h[0],y=h[1],g=Yg(r,s,v,u),m=Yg(r,s,y,u);f["".concat(l,"-range-start")]=g,f["".concat(l,"-range-end")]=m,f["".concat(l,"-range-hover")]=!g&&!m&&$_(r,v,y,u)}return o&&(f["".concat(l,"-hover")]=o.some(function(S){return Yg(r,s,u,S)})),ie(l,J({},"".concat(l,"-selected"),!a&&Yg(r,s,i,u)),f)};return p.createElement(N_,$e({},e,{mode:"week",panelName:"week",rowClassName:c}))}function IPe(e){var t=e.prefixCls,r=e.locale,n=e.generateConfig,i=e.pickerValue,o=e.disabledDate,a=e.onPickerValueChange,s=e.onModeChange,l="".concat(t,"-year-panel"),c=Jp(e,"year"),d=oe(c,1),u=d[0],f=function(_){var R=Math.floor(n.getYear(_)/10)*10;return n.setYear(_,R)},h=function(_){var R=f(_);return n.addYear(R,9)},v=f(i),y=h(i),g=n.addYear(v,-1),m=function(_,R){return n.addYear(_,R)},S=function(_){return Xn(_,{locale:r,format:r.cellYearFormat,generateConfig:n})},C=function(_){return J({},"".concat(t,"-cell-in-view"),dd(n,_,v)||dd(n,_,y)||$_(n,v,y,_))},b=o?function(E,_){var R=n.setMonth(E,0),P=n.setDate(R,1),I=n.addYear(P,1),O=n.addDate(I,-1);return o(P,_)&&o(O,_)}:null,w=p.createElement("button",{type:"button",key:"decade","aria-label":r.decadeSelect,onClick:function(){s("decade")},tabIndex:-1,className:"".concat(t,"-decade-btn")},Xn(v,{locale:r,format:r.yearFormat,generateConfig:n}),"-",Xn(y,{locale:r,format:r.yearFormat,generateConfig:n}));return p.createElement($d.Provider,{value:u},p.createElement("div",{className:l},p.createElement(Zp,{superOffset:function(_){return n.addYear(i,_*10)},onChange:a,getStart:f,getEnd:h},w),p.createElement(p0,$e({},e,{disabledDate:b,titleFormat:r.fieldYearFormat,colNum:3,rowNum:4,baseDate:g,getCellDate:m,getCellText:S,getCellClassName:C}))))}var xPe={date:N_,datetime:wPe,week:PPe,month:EPe,quarter:RPe,year:IPe,decade:_Pe,time:Eee};function OPe(e,t){var r,n=e.locale,i=e.generateConfig,o=e.direction,a=e.prefixCls,s=e.tabIndex,l=s===void 0?0:s,c=e.multiple,d=e.defaultValue,u=e.value,f=e.onChange,h=e.onSelect,v=e.defaultPickerValue,y=e.pickerValue,g=e.onPickerValueChange,m=e.mode,S=e.onPanelChange,C=e.picker,b=C===void 0?"date":C,w=e.showTime,E=e.hoverValue,_=e.hoverRangeValue,R=e.cellRender,P=e.dateRender,I=e.monthCellRender,O=e.components,A=O===void 0?{}:O,x=e.hideHeader,T=((r=p.useContext(ds))===null||r===void 0?void 0:r.prefixCls)||a||"rc-picker",D=p.useRef();p.useImperativeHandle(t,function(){return{nativeElement:D.current}});var k=see(e),j=oe(k,4),N=j[0],L=j[1],M=j[2],$=j[3],F=iee(n,L),z=b==="date"&&w?"datetime":b,H=p.useMemo(function(){return lee(z,M,$,N,F)},[z,M,$,N,F]),U=i.getNow(),V=Or(b,{value:m,postState:function(Re){return Re||"date"}}),W=oe(V,2),K=W[0],Z=W[1],q=K==="date"&&H?"datetime":K,Y=_ee(i,n,z),G=Or(d,{value:u}),re=oe(G,2),ee=re[0],ne=re[1],te=p.useMemo(function(){var Ee=Md(ee).filter(function(Re){return Re});return c?Ee:Ee.slice(0,1)},[ee,c]),pe=lr(function(Ee){ne(Ee),f&&(Ee===null||te.length!==Ee.length||te.some(function(Re,me){return!Gi(i,n,Re,Ee[me],z)}
278))&&(f==null||f(c?Ee:Ee[0]))}),le=lr(function(Ee){if(h==null||h(Ee),K===b){var Re=c?Y(te,Ee):[Ee];pe(Re)}}),ye=Or(v||te[0]||U,{value:y}),Se=oe(ye,2),_e=Se[0],De=Se[1];p.useEffect(function(){te[0]&&!y&&De(te[0])},[te[0]]);var be=function(Re,me){S==null||S(Re||y,me||K)},se=function(Re){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;De(Re),g==null||g(Re),me&&be(Re)},Pe=function(Re,me){Z(Re),me&&se(me),be(me,Re)},Te=function(Re){if(le(Re),se(Re),K!==b){var me=["decade","year"],ce=[].concat(me,["month"]),Ae={quarter:[].concat(me,["quarter"]),week:[].concat(Ge(ce),["week"]),date:[].concat(Ge(ce),["date"])},We=Ae[b]||ce,lt=We.indexOf(K),yt=We[lt+1];yt&&Pe(yt,Re)}},ze=p.useMemo(function(){var Ee,Re;if(Array.isArray(_)){var me=oe(_,2);Ee=me[0],Re=me[1]}else Ee=_;return!Ee&&!Re?null:(Ee=Ee||Re,Re=Re||Ee,i.isAfter(Ee,Re)?[Re,Ee]:[Ee,Re])},[_,i]),ke=i3(R,P,I),Me=A[q]||xPe[q]||N_,qe=p.useContext(Ec),Le=p.useMemo(function(){return Q(Q({},qe),{},{hideHeader:x})},[qe,x]),xe="".concat(T,"-panel"),je=M_(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return p.createElement(Ec.Provider,{value:Le},p.createElement("div",{ref:D,tabIndex:l,className:ie(xe,J({},"".concat(xe,"-rtl"),o==="rtl"))},p.createElement(Me,$e({},je,{showTime:H,prefixCls:T,locale:F,generateConfig:i,onModeChange:Pe,pickerValue:_e,onPickerValueChange:function(Re){se(Re,!0)},value:te[0],onSelect:Te,values:te,cellRender:ke,hoverRangeValue:ze,hoverValue:E}))))}var pI=p.memo(p.forwardRef(OPe));function TPe(e){var t=e.picker,r=e.multiplePanel,n=e.pickerValue,i=e.onPickerValueChange,o=e.needConfirm,a=e.onSubmit,s=e.range,l=e.hoverValue,c=p.useContext(ds),d=c.prefixCls,u=c.generateConfig,f=p.useCallback(function(S,C){return Xg(u,t,S,C)},[u,t]),h=p.useMemo(function(){return f(n,1)},[n,f]),v=function(C){i(f(C,-1))},y={onCellDblClick:function(){o&&a()}},g=t==="time",m=Q(Q({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:g});return s?m.hoverRangeValue=l:m.hoverValue=l,r?p.createElement("div",{className:"".concat(d,"-panels")},p.createElement(Ec.Provider,{value:Q(Q({},y),{},{hideNext:!0})},p.createElement(pI,m)),p.createElement(Ec.Provider,{value:Q(Q({},y),{},{hidePrev:!0})},p.createElement(pI,$e({},m,{pickerValue:h,onPickerValueChange:v})))):p.createElement(Ec.Provider,{value:Q({},y)},p.createElement(pI,m))}function Kj(e){return typeof e=="function"?e():e}function APe(e){var t=e.prefixCls,r=e.presets,n=e.onClick,i=e.onHover;return r.length?p.createElement("div",{className:"".concat(t,"-presets")},p.createElement("ul",null,r.map(function(o,a){var s=o.label,l=o.value;return p.createElement("li",{key:a,onClick:function(){n(Kj(l))},onMouseEnter:function(){i(Kj(l))},onMouseLeave:function(){i(null)}},s)}))):null}function Ree(e){var t=e.panelRender,r=e.internalMode,n=e.picker,i=e.showNow,o=e.range,a=e.multiple,s=e.activeInfo,l=s===void 0?[0,0,0]:s,c=e.presets,d=e.onPresetHover,u=e.onPresetSubmit,f=e.onFocus,h=e.onBlur,v=e.onPanelMouseDown,y=e.direction,g=e.value,m=e.onSelect,S=e.isInvalid,C=e.defaultOpenValue,b=e.onOk,w=e.onSubmit,E=p.useContext(ds),_=E.prefixCls,R="".concat(_,"-panel"),P=y==="rtl",I=p.useRef(null),O=p.useRef(null),A=p.useState(0),x=oe(A,2),T=x[0],D=x[1],k=p.useState(0),j=oe(k,2),N=j[0],L=j[1],M=p.useState(0),$=oe(M,2),F=$[0],z=$[1],H=function(Te){Te.width&&D(Te.width)},U=oe(l,3),V=U[0],W=U[1],K=U[2],Z=p.useState(0),q=oe(Z,2),Y=q[0],G=q[1];p.useEffect(function(){G(10)},[V]),p.useEffect(function(){if(o&&O.current){var Pe,Te=((Pe=I.current)===null||Pe===void 0?void 0:Pe.offsetWidth)||0,ze=O.current.getBoundingClientRect();if(!ze.height||ze.right<0){G(function(Le){return Math.max(0,Le-1)});return}var ke=(P?W-Te:V)-ze.left;if(z(ke),T&&T<K){var Me=P?ze.right-(W-Te+T):V+Te-ze.left-T,qe=Math.max(0,Me);L(qe)}else L(0)}},[Y,P,T,V,W,K,o]);function re(Pe){return Pe.filter(function(Te){return Te})}var ee=p.useMemo(function(){return re(Md(g))},[g]),ne=n==="time"&&!ee.length,te=p.useMemo(function(){return ne?re([C]):ee},[ne,ee,C]),pe=ne?C:ee,le=p.useMemo(function(){return te.length?te.some(function(Pe){return S(Pe)}):!0},[te,S]),ye=function(){ne&&m(C),b(),w()},Se=p.createElement("div",{className:"".concat(_,"-panel-layout")},p.createElement(APe,{prefixCls:_,presets:c,onClick:u,onHover:d}),p.createElement("div",null,p.createElement(TPe,$e({},e,{value:pe})),p.createElement(gPe,$e({},e,{showNow:a?!1:i,invalid:le,onSubmit:ye}))));t&&(Se=t(Se));var _e="".concat(R,"-container"),De="marginLeft",be="marginRight",se=p.createElement("div",{onMouseDown:v,tabIndex:-1,
278className:ie(_e,"".concat(_,"-").concat(r,"-panel-container")),style:J(J({},P?be:De,N),P?De:be,"auto"),onFocus:f,onBlur:h},Se);return o&&(se=p.createElement("div",{onMouseDown:v,ref:O,className:ie("".concat(_,"-range-wrapper"),"".concat(_,"-").concat(n,"-range-wrapper"))},p.createElement("div",{ref:I,className:"".concat(_,"-range-arrow"),style:{left:F}}),p.createElement(ao,{onResize:H},se))),se}function Pee(e,t){var r=e.format,n=e.maskFormat,i=e.generateConfig,o=e.locale,a=e.preserveInvalidOnBlur,s=e.inputReadOnly,l=e.required,c=e["aria-required"],d=e.onSubmit,u=e.onFocus,f=e.onBlur,h=e.onInputChange,v=e.onInvalid,y=e.open,g=e.onOpenChange,m=e.onKeyDown,S=e.onChange,C=e.activeHelp,b=e.name,w=e.autoComplete,E=e.id,_=e.value,R=e.invalid,P=e.placeholder,I=e.disabled,O=e.activeIndex,A=e.allHelp,x=e.picker,T=function(F,z){var H=i.locale.parse(o.locale,F,[z]);return H&&i.isValidate(H)?H:null},D=r[0],k=p.useCallback(function($){return Xn($,{locale:o,format:D,generateConfig:i})},[o,i,D]),j=p.useMemo(function(){return _.map(k)},[_,k]),N=p.useMemo(function(){var $=x==="time"?8:10,F=typeof D=="function"?D(i.getNow()).length:D.length;return Math.max($,F)+2},[D,x,i]),L=function(F){for(var z=0;z<r.length;z+=1){var H=r[z];if(typeof H=="string"){var U=T(F,H);if(U)return U}}return!1},M=function(F){function z(V){return F!==void 0?V[F]:V}var H=lo(e,{aria:!0,data:!0}),U=Q(Q({},H),{},{format:n,validateFormat:function(W){return!!L(W)},preserveInvalidOnBlur:a,readOnly:s,required:l,"aria-required":c,name:b,autoComplete:w,size:N,id:z(E),value:z(j)||"",invalid:z(R),placeholder:z(P),active:O===F,helped:A||C&&O===F,disabled:z(I),onFocus:function(W){u(W,F)},onBlur:function(W){f(W,F)},onSubmit:d,onChange:function(W){h();var K=L(W);if(K){v(!1,F),S(K,F);return}v(!!W,F)},onHelp:function(){g(!0,{index:F})},onKeyDown:function(W){var K=!1;if(m==null||m(W,function(){K=!0}),!W.defaultPrevented&&!K)switch(W.key){case"Escape":g(!1,{index:F});break;case"Enter":y||g(!0);break}}},t==null?void 0:t({valueTexts:j}));return Object.keys(U).forEach(function(V){U[V]===void 0&&delete U[V]}),U};return[M,k]}var MPe=["onMouseEnter","onMouseLeave"];function Iee(e){return p.useMemo(function(){return M_(e,MPe)},[e])}var $Pe=["icon","type"],kPe=["onClear"];function D_(e){var t=e.icon,r=e.type,n=Nt(e,$Pe),i=p.useContext(ds),o=i.prefixCls;return t?p.createElement("span",$e({className:"".concat(o,"-").concat(r)},n),t):null}function m$(e){var t=e.onClear,r=Nt(e,kPe);return p.createElement(D_,$e({},r,{type:"clear",role:"button",onMouseDown:function(i){i.preventDefault()},onClick:function(i){i.stopPropagation(),t()}}))}var hI=["YYYY","MM","DD","HH","mm","ss","SSS"],Yj="é¡§",NPe=function(){function e(t){zr(this,e),J(this,"format",void 0),J(this,"maskFormat",void 0),J(this,"cells",void 0),J(this,"maskCells",void 0),this.format=t;var r=hI.map(function(s){return"(".concat(s,")")}).join("|"),n=new RegExp(r,"g");this.maskFormat=t.replace(n,function(s){return Yj.repeat(s.length)});var i=new RegExp("(".concat(hI.join("|"),")")),o=(t.split(i)||[]).filter(function(s){return s}),a=0;this.cells=o.map(function(s){var l=hI.includes(s),c=a,d=a+s.length;return a=d,{text:s,mask:l,start:c,end:d}}),this.maskCells=this.cells.filter(function(s){return s.mask})}return Br(e,[{key:"getSelection",value:function(r){var n=this.maskCells[r]||{},i=n.start,o=n.end;return[i||0,o||0]}},{key:"match",value:function(r){for(var n=0;n<this.maskFormat.length;n+=1){var i=this.maskFormat[n],o=r[n];if(!o||i!==Yj&&i!==o)return!1}return!0}},{key:"size",value:function(){return this.maskCells.length}},{key:"getMaskCellIndex",value:function(r){for(var n=Number.MAX_SAFE_INTEGER,i=0,o=0;o<this.maskCells.length;o+=1){var a=this.maskCells[o],s=a.start,l=a.end;if(r>=s&&r<=l)return o;var c=Math.min(Math.abs(r-s),Math.abs(r-l));c<n&&(n=c,i=o)}return i}}]),e}();function DPe(e){var t={YYYY:[0,9999,new Date().getFullYear()],MM:[1,12],DD:[1,31],HH:[0,23],mm:[0,59],ss:[0,59],SSS:[0,999]};return t[e]}var LPe=["active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invali
278d","clearIcon"],y$=p.forwardRef(function(e,t){var r=e.active,n=e.showActiveCls,i=n===void 0?!0:n,o=e.suffixIcon,a=e.format,s=e.validateFormat,l=e.onChange;e.onInput;var c=e.helped,d=e.onHelp,u=e.onSubmit,f=e.onKeyDown,h=e.preserveInvalidOnBlur,v=h===void 0?!1:h,y=e.invalid,g=e.clearIcon,m=Nt(e,LPe),S=e.value,C=e.onFocus,b=e.onBlur,w=e.onMouseUp,E=p.useContext(ds),_=E.prefixCls,R=E.input,P=R===void 0?"input":R,I="".concat(_,"-input"),O=p.useState(!1),A=oe(O,2),x=A[0],T=A[1],D=p.useState(S),k=oe(D,2),j=k[0],N=k[1],L=p.useState(""),M=oe(L,2),$=M[0],F=M[1],z=p.useState(null),H=oe(z,2),U=H[0],V=H[1],W=p.useState(null),K=oe(W,2),Z=K[0],q=K[1],Y=j||"";p.useEffect(function(){N(S)},[S]);var G=p.useRef(),re=p.useRef();p.useImperativeHandle(t,function(){return{nativeElement:G.current,inputElement:re.current,focus:function(Ee){re.current.focus(Ee)},blur:function(){re.current.blur()}}});var ee=p.useMemo(function(){return new NPe(a||"")},[a]),ne=p.useMemo(function(){return c?[0,0]:ee.getSelection(U)},[ee,U,c]),te=oe(ne,2),pe=te[0],le=te[1],ye=function(Ee){Ee&&Ee!==a&&Ee!==S&&d()},Se=lr(function(je){s(je)&&l(je),N(je),ye(je)}),_e=function(Ee){if(!a){var Re=Ee.target.value;ye(Re),N(Re),l(Re)}},De=function(Ee){var Re=Ee.clipboardData.getData("text");s(Re)&&Se(Re)},be=p.useRef(!1),se=function(){be.current=!0},Pe=function(Ee){var Re=Ee.target,me=Re.selectionStart,ce=ee.getMaskCellIndex(me);V(ce),q({}),w==null||w(Ee),be.current=!1},Te=function(Ee){T(!0),V(0),F(""),C(Ee)},ze=function(Ee){b(Ee)},ke=function(Ee){T(!1),ze(Ee)};s3(r,function(){!r&&!v&&N(S)});var Me=function(Ee){Ee.key==="Enter"&&s(Y)&&u(),f==null||f(Ee)},qe=function(Ee){Me(Ee);var Re=Ee.key,me=null,ce=null,Ae=le-pe,We=a.slice(pe,le),lt=function(gt){V(function(Ye){var vt=Ye+gt;return vt=Math.max(vt,0),vt=Math.min(vt,ee.size()-1),vt})},yt=function(gt){var Ye=DPe(We),vt=oe(Ye,3),mt=vt[0],St=vt[1],pt=vt[2],Rt=Y.slice(pe,le),ae=Number(Rt);if(isNaN(ae))return String(pt||(gt>0?mt:St));var ue=ae+gt,ve=St-mt+1;return String(mt+(ve+ue-mt)%ve)};switch(Re){case"Backspace":case"Delete":me="",ce=We;break;case"ArrowLeft":me="",lt(-1);break;case"ArrowRight":me="",lt(1);break;case"ArrowUp":me="",ce=yt(1);break;case"ArrowDown":me="",ce=yt(-1);break;default:isNaN(Number(Re))||(me=$+Re,ce=me);break}if(me!==null&&(F(me),me.length>=Ae&&(lt(1),F(""))),ce!==null){var nt=Y.slice(0,pe)+n3(ce,Ae)+Y.slice(le);Se(nt.slice(0,a.length))}q({})},Le=p.useRef();nr(function(){if(!(!x||!a||be.current)){if(!ee.match(Y)){Se(a);return}return re.current.setSelectionRange(pe,le),Le.current=Gt(function(){re.current.setSelectionRange(pe,le)}),function(){Gt.cancel(Le.current)}}},[ee,a,x,Y,U,pe,le,Z,Se]);var xe=a?{onFocus:Te,onBlur:ke,onKeyDown:qe,onMouseDown:se,onMouseUp:Pe,onPaste:De}:{};return p.createElement("div",{ref:G,className:ie(I,J(J({},"".concat(I,"-active"),r&&i),"".concat(I,"-placeholder"),c))},p.createElement(P,$e({ref:re,"aria-invalid":y,autoComplete:"off"},m,{onKeyDown:Me,onBlur:ze},xe,{value:Y,onChange:_e})),p.createElement(D_,{type:"suffix",icon:o}),g)}),jPe=["id","prefix","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveInfo","placement","onMouseDown","required","aria-required","autoFocus","tabIndex"],FPe=["index"];function zPe(e,t){var r=e.id,n=e.prefix,i=e.clearIcon,o=e.suffixIcon,a=e.separator,s=a===void 0?"~":a,l=e.activeIndex;e.activeHelp,e.allHelp;var c=e.focused;e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig;var d=e.placeholder,u=e.className,f=e.style,h=e.onClick,v=e.onClear,y=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var g=e.disabled,m=e.invalid;e.inputReadOnly;var S=e.direction;e.onOpenChange;var C=e.onActiveInfo;e.placement;var b=e.onMouseDown;e.required,e["aria-required"];var w=e.autoFocus,E=e.tabIndex,_=Nt(e,jPe),R=S==="rtl",P=p.useContext(ds),I=P.prefixCls,O=p.useMemo(function(){if(typeof r=="string")return[r];var Z=r||{};return[Z.start,Z.end]},[r]),A=p.useRef(),x=p.useRef(),T=p.useRef(),D=function(q){var Y;return(Y=[x,T][q])===null||Y===void 0?void 0:Y.current};p.useImperativeHandle(t,function(){return{nativeElement:A.current,focus:function(q){if(Pt(q)==="object"){var Y,G=q||{},re=G.index,ee=re===void 0?0:re,ne=Nt(G,FPe);(Y=D(ee))===null||Y===void 0||Y.focus(ne)}else{var te;(te=D(q??0))===null||te===void 0||te.focus()}},blur:function(){var q,Y;(q=D(0))===null||q===void 0||q.blur(),(Y=D(1))===null||Y===void 0||Y.blur()}}});var k=Iee(_),j=p.useMemo(function(){return Array.isArray(d)?d:[d,d]},[d]),N=Pee(Q(Q({},e),{},{id:O,placeholder:j}
278)),L=oe(N,1),M=L[0],$=p.useState({position:"absolute",width:0}),F=oe($,2),z=F[0],H=F[1],U=lr(function(){var Z=D(l);if(Z){var q=Z.nativeElement.getBoundingClientRect(),Y=A.current.getBoundingClientRect(),G=q.left-Y.left;H(function(re){return Q(Q({},re),{},{width:q.width,left:G})}),C([q.left,q.right,Y.width])}});p.useEffect(function(){U()},[l]);var V=i&&(y[0]&&!g[0]||y[1]&&!g[1]),W=w&&!g[0],K=w&&!W&&!g[1];return p.createElement(ao,{onResize:U},p.createElement("div",$e({},k,{className:ie(I,"".concat(I,"-range"),J(J(J(J({},"".concat(I,"-focused"),c),"".concat(I,"-disabled"),g.every(function(Z){return Z})),"".concat(I,"-invalid"),m.some(function(Z){return Z})),"".concat(I,"-rtl"),R),u),style:f,ref:A,onClick:h,onMouseDown:function(q){var Y=q.target;Y!==x.current.inputElement&&Y!==T.current.inputElement&&q.preventDefault(),b==null||b(q)}}),n&&p.createElement("div",{className:"".concat(I,"-prefix")},n),p.createElement(y$,$e({ref:x},M(0),{autoFocus:W,tabIndex:E,"date-range":"start"})),p.createElement("div",{className:"".concat(I,"-range-separator")},s),p.createElement(y$,$e({ref:T},M(1),{autoFocus:K,tabIndex:E,"date-range":"end"})),p.createElement("div",{className:"".concat(I,"-active-bar"),style:z}),p.createElement(D_,{type:"suffix",icon:o}),V&&p.createElement(m$,{icon:i,onClear:v})))}var BPe=p.forwardRef(zPe);function Xj(e,t){var r=e??t;return Array.isArray(r)?r:[r,r]}function zS(e){return e===1?"end":"start"}function HPe(e,t){var r=dee(e,function(){var er=e.disabled,Bt=e.allowEmpty,ir=Xj(er,!1),rn=Xj(Bt,!1);return{disabled:ir,allowEmpty:rn}}),n=oe(r,6),i=n[0],o=n[1],a=n[2],s=n[3],l=n[4],c=n[5],d=i.prefixCls,u=i.styles,f=i.classNames,h=i.defaultValue,v=i.value,y=i.needConfirm,g=i.onKeyDown,m=i.disabled,S=i.allowEmpty,C=i.disabledDate,b=i.minDate,w=i.maxDate,E=i.defaultOpen,_=i.open,R=i.onOpenChange,P=i.locale,I=i.generateConfig,O=i.picker,A=i.showNow,x=i.showToday,T=i.showTime,D=i.mode,k=i.onPanelChange,j=i.onCalendarChange,N=i.onOk,L=i.defaultPickerValue,M=i.pickerValue,$=i.onPickerValueChange,F=i.inputReadOnly,z=i.suffixIcon,H=i.onFocus,U=i.onBlur,V=i.presets,W=i.ranges,K=i.components,Z=i.cellRender,q=i.dateRender,Y=i.monthCellRender,G=i.onClick,re=pee(t),ee=fee(_,E,m,R),ne=oe(ee,2),te=ne[0],pe=ne[1],le=function(Bt,ir){(m.some(function(rn){return!rn})||!Bt)&&pe(Bt,ir)},ye=Cee(I,P,s,!0,!1,h,v,j,N),Se=oe(ye,5),_e=Se[0],De=Se[1],be=Se[2],se=Se[3],Pe=Se[4],Te=be(),ze=vee(m,S,te),ke=oe(ze,9),Me=ke[0],qe=ke[1],Le=ke[2],xe=ke[3],je=ke[4],Ee=ke[5],Re=ke[6],me=ke[7],ce=ke[8],Ae=function(Bt,ir){qe(!0),H==null||H(Bt,{range:zS(ir??xe)})},We=function(Bt,ir){qe(!1),U==null||U(Bt,{range:zS(ir??xe)})},lt=p.useMemo(function(){if(!T)return null;var er=T.disabledTime,Bt=er?function(ir){var rn=zS(xe),zn=eee(Te,Re,xe);return er(ir,rn,{from:zn})}:void 0;return Q(Q({},T),{},{disabledTime:Bt})},[T,xe,Te,Re]),yt=Or([O,O],{value:D}),nt=oe(yt,2),it=nt[0],gt=nt[1],Ye=it[xe]||O,vt=Ye==="date"&&lt?"datetime":Ye,mt=vt===O&&vt!=="time",St=wee(O,Ye,A,x,!0),pt=bee(i,_e,De,be,se,m,s,Me,te,c),Rt=oe(pt,2),ae=Rt[0],ue=Rt[1],ve=fPe(Te,m,Re,I,P,C),Ce=ree(Te,c,S),Fe=oe(Ce,2),Ze=Fe[0],et=Fe[1],tt=gee(I,P,Te,it,te,xe,o,mt,L,M,lt==null?void 0:lt.defaultOpenValue,$,b,w),ot=oe(tt,2),rt=ot[0],ft=ot[1],ge=lr(function(er,Bt,ir){var rn=vm(it,xe,Bt);if((rn[0]!==it[0]||rn[1]!==it[1])&&gt(rn),k&&ir!==!1){var zn=Ge(Te);er&&(zn[xe]=er),k(zn,rn)}}),we=function(Bt,ir){return vm(Te,ir,Bt)},Ie=function(Bt,ir){var rn=Te;Bt&&(rn=we(Bt,xe)),me(xe);var zn=Ee(rn);se(rn),ae(xe,zn===null),zn===null?le(!1,{force:!0}):ir||re.current.focus({index:zn})},Ne=function(Bt){var ir,rn=Bt.target.getRootNode();if(!re.current.nativeElement.contains((ir=rn.activeElement)!==null&&ir!==void 0?ir:document.activeElement)){var zn=m.findIndex(function(Yd){return!Yd});zn>=0&&re.current.focus({index:zn})}le(!0),G==null||G(Bt)},Be=function(){ue(null),le(!1,{force:!0})},Xe=p.useState(null),He=oe(Xe,2),ct=He[0],at=He[1],Je=p.useState(null),ut=oe(Je,2),st=ut[0],_t=ut[1],zt=p.useMemo(function(){return st||Te},[Te,st]);p.useEffect(function(){te||_t(null)},[te]);var ht=p.useState([0,0,0]),dt=oe(ht,2),Et=dt[0],pr=dt[1],br=hee(V,W),Yt=function(Bt){_t(Bt),at("preset")},Ur=function(Bt){var ir=ue(Bt);ir&&le(!1,{force:!0})},tn=function(Bt){Ie(Bt)},Fn=function(Bt){_t(Bt?we(Bt,xe):null),at("cell")},ti=function(Bt){le(!0),Ae(Bt)},Mi=function(){Le("panel")},go=function(Bt){var ir=vm(Te,xe,Bt);se(ir),!y&&!a&&o===vt&&Ie(Bt)},Tr=function(){le(!1)},kt=i3(Z,q,Y,zS(xe)),At=Te[xe]||null,Sr=lr(function(er){return c(er,{activeIndex:xe})}),Mt=p.useMemo(function(){var er=lo(i,!1),Bt=Dn(i,[].concat(Ge(Object.keys(er)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return Bt},[i]),Tt=p.createElement(Ree,$e({},Mt,{showNow:St,showTime:lt,range:!0,multiplePanel:mt,activeInfo:Et,disabledDate:ve,onFocus:ti,onBlur:We,onPanelMouseDown:Mi,picker:O,mode:Ye,internalMode:vt,onPanelChange:ge,format:l,value:At,isInvalid:Sr,onChange:null,onSelect:go,pickerValue:rt,defaultOpenValue:Md(T==null?void 0:T.defaultOpenValue)[xe],onPickerValueChange:ft,hoverValue:zt,onHover:Fn,needConfirm:y,onSubmit:Ie,onOk:Pe,presets:br,onPresetHover:Yt,onPresetSubmit:Ur,onNow:tn,cellRender:kt}
278)),vr=function(Bt,ir){var rn=we(Bt,ir);se(rn)},on=function(){Le("input")},Pn=function(Bt,ir){var rn=Re.length,zn=Re[rn-1];if(rn&&zn!==ir&&y&&!S[zn]&&!ce(zn)&&Te[zn]){re.current.focus({index:zn});return}Le("input"),le(!0,{inherit:!0}),xe!==ir&&te&&!y&&a&&Ie(null,!0),je(ir),Ae(Bt,ir)},gi=function(Bt,ir){if(le(!1),!y&&Le()==="input"){var rn=Ee(Te);ae(xe,rn===null)}We(Bt,ir)},ri=function(Bt,ir){Bt.key==="Tab"&&Ie(null,!0),g==null||g(Bt,ir)},mi=p.useMemo(function(){return{prefixCls:d,locale:P,generateConfig:I,button:K.button,input:K.input}},[d,P,I,K.button,K.input]);return nr(function(){te&&xe!==void 0&&ge(null,O,!1)},[te,xe,O]),nr(function(){var er=Le();!te&&er==="input"&&(le(!1),Ie(null,!0)),!te&&a&&!y&&er==="panel"&&(le(!0),Ie())},[te]),p.createElement(ds.Provider,{value:mi},p.createElement(JZ,$e({},tee(i),{popupElement:Tt,popupStyle:u.popup,popupClassName:f.popup,visible:te,onClose:Tr,range:!0}),p.createElement(BPe,$e({},i,{ref:re,suffixIcon:z,activeIndex:Me||te?xe:null,activeHelp:!!st,allHelp:!!st&&ct==="preset",focused:Me,onFocus:Pn,onBlur:gi,onKeyDown:ri,onSubmit:Ie,value:zt,maskFormat:l,onChange:vr,onInputChange:on,format:s,inputReadOnly:F,disabled:m,open:te,onOpenChange:le,onClick:Ne,onClear:Be,invalid:Ze,onInvalid:et,onActiveInfo:pr}))))}var VPe=p.forwardRef(HPe);function UPe(e){var t=e.prefixCls,r=e.value,n=e.onRemove,i=e.removeIcon,o=i===void 0?"×":i,a=e.formatDate,s=e.disabled,l=e.maxTagCount,c=e.placeholder,d="".concat(t,"-selector"),u="".concat(t,"-selection"),f="".concat(u,"-overflow");function h(g,m){return p.createElement("span",{className:ie("".concat(u,"-item")),title:typeof g=="string"?g:null},p.createElement("span",{className:"".concat(u,"-item-content")},g),!s&&m&&p.createElement("span",{onMouseDown:function(C){C.preventDefault()},onClick:m,className:"".concat(u,"-item-remove")},o))}function v(g){var m=a(g),S=function(b){b&&b.stopPropagation(),n(g)};return h(m,S)}function y(g){var m="+ ".concat(g.length," ...");return h(m)}return p.createElement("div",{className:d},p.createElement(ts,{prefixCls:f,data:r,renderItem:v,renderRest:y,itemKey:function(m){return a(m)},maxCount:l}),!r.length&&p.createElement("span",{className:"".concat(t,"-selection-placeholder")},c))}var WPe=["id","open","prefix","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","tabIndex","removeIcon"];function qPe(e,t){e.id;var r=e.open,n=e.prefix,i=e.clearIcon,o=e.suffixIcon;e.activeHelp,e.allHelp;var a=e.focused;e.onFocus,e.onBlur,e.onKeyDown;var s=e.locale,l=e.generateConfig,c=e.placeholder,d=e.className,u=e.style,f=e.onClick,h=e.onClear,v=e.internalPicker,y=e.value,g=e.onChange,m=e.onSubmit;e.onInputChange;var S=e.multiple,C=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var b=e.disabled,w=e.invalid;e.inputReadOnly;var E=e.direction;e.onOpenChange;var _=e.onMouseDown;e.required,e["aria-required"];var R=e.autoFocus,P=e.tabIndex,I=e.removeIcon,O=Nt(e,WPe),A=E==="rtl",x=p.useContext(ds),T=x.prefixCls,D=p.useRef(),k=p.useRef();p.useImperativeHandle(t,function(){return{nativeElement:D.current,focus:function(W){var K;(K=k.current)===null||K===void 0||K.focus(W)},blur:function(){var W;(W=k.current)===null||W===void 0||W.blur()}}});var j=Iee(O),N=function(W){g([W])},L=function(W){var K=y.filter(function(Z){return Z&&!Gi(l,s,Z,W,v)});g(K),r||m()},M=Pee(Q(Q({},e),{},{onChange:N}),function(V){var W=V.valueTexts;return{value:W[0]||"",active:a}}),$=oe(M,2),F=$[0],z=$[1],H=!!(i&&y.length&&!b),U=S?p.createElement(p.Fragment,null,p.createElement(UPe,{prefixCls:T,value:y,onRemove:L,formatDate:z,maxTagCount:C,disabled:b,removeIcon:I,placeholder:c}),p.createElement("input",{className:"".concat(T,"-multiple-input"),value:y.map(z).join(","),ref:k,readOnly:!0,autoFocus:R,tabIndex:P}),p.createElement(D_,{type:"suffix",icon:o}),H&&p.createElement(m$,{icon:i,onClear:h})):p.createElement(y$,$e({ref:k},F(),{autoFocus:R,tabIndex:P,suffixIcon:o,clearIcon:H&&p.createElement(m$,{icon:i,onClear:h}),showActiveCls:!1}));return p.createElement("div",$e({},j,{className:ie(T,J(J(J(J(J({},"".concat(T,"-multiple"),S),"".concat(T,"-focused"),a),"".concat(T,"-disabled"),b),"".concat(T,"-invalid"),w),"".concat(T,"-rtl"),A),d),style:u,ref:D,onClick:f,onMouseDown:function(W){var K,Z=W.target;Z!==((K=k.current)===null||K===void 0?void 0:K.inputElement)&&W.preventDefault(),_==null||_(W)}}),n&&p.createElement("div",{className:"".concat(T,"-prefix")},n),U)}var GPe=p.forwardRef(qPe);function KPe(e,t){var r=dee(e),n=oe(r,6),i=n[0],o=n[1],a=n[2],s=n[3],l=n[4],c=n[5],d=i,u=d.prefixCls,f=d.styles,h=d.classNames,v=d.order,y=d.defaultValue,g=d.value,m=d.needConfirm,S=d.onChange,C=d.onKeyDown,b=d.disabled,w=d.disabledDate,E=d.minDate,_=d.maxDate,R=d.defaultOpen,P=d.open,I=d.onOpenChange,O=d.locale,A=d.generateConfig,x=d.picker,T=d.showNow,D=d.showToday,k=d.showTime,j=d.mode,N=d.onPanelChange,L=d.onCalendarChange,M=d.onOk,$=d.multiple,F=d.defaultPickerValue,z=d.pickerValue,H=d.onPickerValueChange,U=d.inputReadOnly,V=d.suffixIcon,W=d.removeIcon,K=d.onFocus,Z=d.onBlur,q=d.presets,Y=d.components,G=d.cellRender,re=d.dateRender,ee=d.monthCellRender,ne=d.onClick,te=pee(t);function pe(Mt){return Mt===null?null:$?Mt:Mt[0]}var le=_ee(A,O,o),ye=fee(P,R,[b],I),Se=oe(ye,2),_e=Se[0],De=Se[1],be=function(Tt,vr,on){if(L){var Pn=Q({},on);delete Pn.range,L(pe(Tt),pe(vr),Pn)}},se=function(Tt){M==null||M(pe(Tt))},Pe=Cee(A,O,s,!1,v,y,g,be,se),Te=oe(Pe,5),ze=Te[0],ke=Te[1],Me=Te[2],qe=Te[3],Le=Te[4],xe=Me(),je=vee([b]),Ee=oe(je,4),Re=Ee[0],me=Ee[1],ce=Ee[2],Ae=Ee[3],We=function(Tt){me(!0),K==null||K(Tt,{})},lt=function(Tt){me(!1),Z==null||Z(Tt,{})},yt=Or(x,{value:j}),nt=oe(yt,2),it=nt[0],gt=nt[1],Ye=it==="date"&&k?"datetime":it,vt=wee(x,it,T,D),mt=S&&function(Mt,Tt){S(
278pe(Mt),pe(Tt))},St=bee(Q(Q({},i),{},{onChange:mt}),ze,ke,Me,qe,[],s,Re,_e,c),pt=oe(St,2),Rt=pt[1],ae=ree(xe,c),ue=oe(ae,2),ve=ue[0],Ce=ue[1],Fe=p.useMemo(function(){return ve.some(function(Mt){return Mt})},[ve]),Ze=function(Tt,vr){if(H){var on=Q(Q({},vr),{},{mode:vr.mode[0]});delete on.range,H(Tt[0],on)}},et=gee(A,O,xe,[it],_e,Ae,o,!1,F,z,Md(k==null?void 0:k.defaultOpenValue),Ze,E,_),tt=oe(et,2),ot=tt[0],rt=tt[1],ft=lr(function(Mt,Tt,vr){if(gt(Tt),N&&vr!==!1){var on=Mt||xe[xe.length-1];N(on,Tt)}}),ge=function(){Rt(Me()),De(!1,{force:!0})},we=function(Tt){!b&&!te.current.nativeElement.contains(document.activeElement)&&te.current.focus(),De(!0),ne==null||ne(Tt)},Ie=function(){Rt(null),De(!1,{force:!0})},Ne=p.useState(null),Be=oe(Ne,2),Xe=Be[0],He=Be[1],ct=p.useState(null),at=oe(ct,2),Je=at[0],ut=at[1],st=p.useMemo(function(){var Mt=[Je].concat(Ge(xe)).filter(function(Tt){return Tt});return $?Mt:Mt.slice(0,1)},[xe,Je,$]),_t=p.useMemo(function(){return!$&&Je?[Je]:xe.filter(function(Mt){return Mt})},[xe,Je,$]);p.useEffect(function(){_e||ut(null)},[_e]);var zt=hee(q),ht=function(Tt){ut(Tt),He("preset")},dt=function(Tt){var vr=$?le(Me(),Tt):[Tt],on=Rt(vr);on&&!$&&De(!1,{force:!0})},Et=function(Tt){dt(Tt)},pr=function(Tt){ut(Tt),He("cell")},br=function(Tt){De(!0),We(Tt)},Yt=function(Tt){if(ce("panel"),!($&&Ye!==x)){var vr=$?le(Me(),Tt):[Tt];qe(vr),!m&&!a&&o===Ye&&ge()}},Ur=function(){De(!1)},tn=i3(G,re,ee),Fn=p.useMemo(function(){var Mt=lo(i,!1),Tt=Dn(i,[].concat(Ge(Object.keys(Mt)),["onChange","onCalendarChange","style","className","onPanelChange"]));return Q(Q({},Tt),{},{multiple:i.multiple})},[i]),ti=p.createElement(Ree,$e({},Fn,{showNow:vt,showTime:k,disabledDate:w,onFocus:br,onBlur:lt,picker:x,mode:it,internalMode:Ye,onPanelChange:ft,format:l,value:xe,isInvalid:c,onChange:null,onSelect:Yt,pickerValue:ot,defaultOpenValue:k==null?void 0:k.defaultOpenValue,onPickerValueChange:rt,hoverValue:st,onHover:pr,needConfirm:m,onSubmit:ge,onOk:Le,presets:zt,onPresetHover:ht,onPresetSubmit:dt,onNow:Et,cellRender:tn})),Mi=function(Tt){qe(Tt)},go=function(){ce("input")},Tr=function(Tt){ce("input"),De(!0,{inherit:!0}),We(Tt)},kt=function(Tt){De(!1),lt(Tt)},At=function(Tt,vr){Tt.key==="Tab"&&ge(),C==null||C(Tt,vr)},Sr=p.useMemo(function(){return{prefixCls:u,locale:O,generateConfig:A,button:Y.button,input:Y.input}},[u,O,A,Y.button,Y.input]);return nr(function(){_e&&Ae!==void 0&&ft(null,x,!1)},[_e,Ae,x]),nr(function(){var Mt=ce();!_e&&Mt==="input"&&(De(!1),ge()),!_e&&a&&!m&&Mt==="panel"&&ge()},[_e]),p.createElement(ds.Provider,{value:Sr},p.createElement(JZ,$e({},tee(i),{popupElement:ti,popupStyle:f.popup,popupClassName:h.popup,visible:_e,onClose:Ur}),p.createElement(GPe,$e({},i,{ref:te,suffixIcon:V,removeIcon:W,activeHelp:!!Je,allHelp:!!Je&&Xe==="preset",focused:Re,onFocus:Tr,onBlur:kt,onKeyDown:At,onSubmit:ge,value:_t,maskFormat:l,onChange:Mi,onInputChange:go,internalPicker:o,format:s,inputReadOnly:U,disabled:b,open:_e,onOpenChange:De,onClick:we,onClear:Ie,invalid:Fe,onInvalid:function(Tt){Ce(Tt,0)}}))))}var YPe=p.forwardRef(KPe);const XPe=["parentNode"],QPe="form_item";function gm(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function xee(e,t){if(!e.length)return;const r=e.join("_");return t?`${t}_${r}`:XPe.includes(r)?`${QPe}_${r}`:r}function Oee(e,t,r,n,i,o){let a=n;return o!==void 0?a=o:r.validating?a="validating":e.length?a="error":t.length?a="warning":(r.touched||i&&r.validated)&&(a="success"),a}var JPe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function Qj(e){return gm(e).join("_")}function Jj(e,t){const r=t.getFieldInstance(e),n=IX(r);if(n)return n;const i=xee(gm(e),t.__INTERNAL__.name);if(i)return document.getElementById(i)}function Gc(e){const[t]=j4(),r=p.useRef({}),n=p.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:i=>o=>{const a=Qj(i);o?r.current[a]=o:delete r.current[a]}},scrollToField:(i,o={})=>{const{focus:a}=o,s=JPe(o,["focus"]),l=Jj(i,n);l&&(Rye(l,Object.assign({scrollMode:"if-needed",block:"nearest"},s)),a&&n.focusField(i))},focusField:i=>{var o,a;const s=n.getFieldInstance(i);typeof(s==null?void 0:s.focus)=="function"?s.focus():(a=(o=Jj(i,n))===null||o===void 0?void 0:o.focus)===null||a===void 0||a.call(o)},getFieldInstance:i=>{const o=Qj(i);return r.current[o]}}),[e,t]);return[n]}function kd(e){return sr(e,{inputAffixPadding:e.paddingXXS})}const Nd=e=>{const{controlHeight:t,fontSize:r,lineHeight:n,lineWidth:i,controlHeightSM:o,controlHeightLG:a,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:d,controlPaddingHorizontal:u,colorFillAlter:f,colorPrimaryHover:h,colorPrimary:v,controlOutlineWidth:y,controlOutline:g,colorErrorOutline:m,colorWarningOutline:S,colorBgContainer:C,inputFontSize:b,inputFontSizeLG:w,inputFontSizeSM:E}=e,_=b||r,R=E||_,P=w||s,I=Math.round((t-_*n)/2*10)/10-i,O=Math.round((o-R*n)/2*10)/10-i,A=Math.ceil((a-P*l)/2*10)/10-i;return{paddingBlock:Math.max(I,0),paddingBlockSM:Math.max(O,0),paddingBlockLG:Math.max(A,0),paddingInline:c-i,paddingInlineSM:d-i,paddingInlineLG:u-i,addonBg:f,activeBorderColor:v,hoverBorderColor:h,activeShadow:`0 0 0 ${y}px ${g}`,errorActiveShadow:`0 0 0 ${y}px ${m}`,warningActiveShadow:`0 0 0 ${y}px ${S}
278`,hoverBg:C,activeBg:C,inputFontSize:_,inputFontSizeLG:P,inputFontSizeSM:R}},ZPe=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),L_=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},ZPe(sr(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),c3=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),Zj=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},c3(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),u3=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},c3(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},L_(e))}),Zj(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Zj(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),e7=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),Tee=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${fe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},e7(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),e7(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},L_(e))}})}),d3=(e,t)=>{const{componentCls:r}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${r}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${r}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${r}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},Aee=(e,t)=>{var r;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(r=t==null?void 0:t.inputColor)!==null&&r!==void 0?r:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},t7=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Aee(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),f3=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Aee(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},L_(e))}),t7(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),t7(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),r7=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),Mee=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},r7(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText}
vendor: 13,829 bytes, lines 278-293
278)),r7(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${fe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${fe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${fe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${fe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${fe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${fe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),$ee=(e,t)=>({background:e.colorBgContainer,borderWidth:`${fe(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.borderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),n7=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},$ee(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),p3=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},$ee(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),n7(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),n7(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),h3=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),kee=e=>{const{paddingBlockLG:t,lineHeightLG:r,borderRadiusLG:n,paddingInlineLG:i}=e;return{padding:`${fe(t)} ${fe(i)}`,fontSize:e.inputFontSizeLG,lineHeight:r,borderRadius:n}},v3=e=>({padding:`${fe(e.paddingBlockSM)} ${fe(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),h0=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${fe(e.paddingBlock)} ${fe(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},h3(e.colorTextPlaceholder)),{"&-lg":Object.assign({},kee(e)),"&-sm":Object.assign({},v3(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),Nee=e=>{const{componentCls:t,antCls:r}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},kee(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},v3(e)),[`&-lg ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${fe(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${r}-select`]:{margin:`${fe(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${fe(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${r}-select-single:not(${r}-select-customize-input):not(${r}-pagination-size-changer)`]:{[`${r}-select-selector`]:{backgroundColor:"inherit",border:`${fe(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${r}-cascader-picker`]:{margin:`-9px ${fe(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${r}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${r}-select ${r}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${r}-select ${r}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},Vc()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
279        & > ${t}-affix-wrapper,
280        & > ${t}-number-affix-wrapper,
281        & > ${r}-picker-range
282      `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${r}-select > ${r}-select-selector,
283      & > ${r}-select-auto-complete ${t},
284      & > ${r}-cascader-picker ${t},
285      & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${r}-select-focused`]:{zIndex:1},[`& > ${r}-select > ${r}-select-arrow`]:{zIndex:1},[`& > *:first-child,
286      & > ${r}-select:first-child > ${r}-select-selector,
287      & > ${r}-select-auto-complete:first-child ${t},
288      & > ${r}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
289      & > ${r}-select:last-child > ${r}-select-selector,
290      & > ${r}-cascader-picker:last-child ${t},
291      & > ${r}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${r}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},eIe=e=>{const{componentCls:t,controlHeightSM:r,lineWidth:n,calc:i}=e,o=16,a=i(r).sub(i(n).mul(2)).sub(o).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Kr(e)),h0(e)),u3(e)),f3(e)),d3(e)),p3(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:r,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},tIe=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorIcon},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${fe(e.inputAffixPadding)}`}}}},rIe=e=>{const{componentCls:t,inputAffixPadding:r,colorTextDescription:n,motionDurationSlow:i,colorIcon:o,colorIconHover:a,iconCls:s}=e,l=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[l]:Object.assign(Object.assign(Object.assign(Object.assign({},h0(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:n,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:r},"&-suffix":{marginInlineStart:r}}}),tIe(e)),{[`${s}${t}-password-icon`]:{color:o,cursor:"pointer",transition:`all ${i}`,"&:hover":{color:a}}}),[`${t}-underlined`]:{borderRadius:0},[c]:{[`${s}${t}-password-icon`]:{color:o,cursor:"not-allowed","&:hover":{color:o}}}}},nIe=e=>{const{componentCls:t,borderRadiusLG:r,borderRadiusSM:n}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Kr(e)),Nee(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:r,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:n}}},Tee(e)),Mee(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},iIe=e=>{const{componentCls:t,antCls:r}=e,n=`${t}-search`;return{[n]:{[t]:{"&:hover, &:focus":{[`+ ${t}-group-addon ${n}-button:not(${r}-btn-color-primary):not(${r}-btn-variant-text)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${n}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${n}-button:not(${r}-btn-color-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${r}-btn-loading::before`]:{inset:0}}}},[`${n}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${n}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${n}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,
292        > ${t},
293        ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},oIe=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},Dee=Nr(["Input","Shared"],e=>{const t=sr(e,kd(e));return[eIe(t),rIe(t)]},Nd,{resetFont:!1}),Lee=Nr(["Input","Component"],e=>{const t=sr(e,kd(e));return[nIe(t),iIe(t),oIe(t),i0(t)]},Nd,{resetFont:!1}),vI=(e,t)=>{const{componentCls:r,controlHeight:n}=e,i=t?`${r}-${t}`:"",o=uZ(e);return[{[`${r}-multiple${i}`]:{paddingBlock:o.containerPadding,paddingInlineStart:o.basePadding,minHeight:n,[`${r}-selection-item`]:{height:o.itemHeight,lineHeight:fe(o.itemLineHeight)}}}]},aIe=e=>{const{componentCls:t,calc:r,lineWidth:n}=e,i=sr(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),o=sr(e,{fontHeight:r(e.multipleItemHeightLG).sub(r(n).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[vI(i,"small"),vI(e),vI(o,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}
293-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}}},dZ(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},sIe=aIe,lIe=e=>{const{pickerCellCls:t,pickerCellInnerCls:r,cellHeight:n,borderRadiusSM:i,motionDurationMid:o,cellHoverBg:a,lineWidth:s,lineType:l,colorPrimary:c,cellActiveWithRangeBg:d,colorTextLightSolid:u,colorTextDisabled:f,cellBgDisabled:h,colorFillSecondary:v}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:n,transform:"translateY(-50%)",content:'""',pointerEvents:"none"},[r]:{position:"relative",zIndex:2,display:"inline-block",minWidth:n,height:n,lineHeight:fe(n),borderRadius:i,transition:`background ${o}`},[`&:hover:not(${t}-in-view):not(${t}-disabled),
294    &:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-disabled)`]:{[r]:{background:a}},[`&-in-view${t}-today ${r}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${fe(s)} ${l} ${c}`,borderRadius:i,content:'""'}},[`&-in-view${t}-in-range,
295      &-in-view${t}-range-start,
296      &-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:d}},[`&-in-view${t}-selected,
297      &-in-view${t}-range-start,
298      &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${r}`]:{color:u,background:c},[`&${t}-disabled ${r}`]:{background:v}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${r}`]:{borderStartStartRadius:i,borderEndStartRadius:i,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${r}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i},"&-disabled":{color:f,cursor:"not-allowed",[r]:{background:"transparent"},"&::before":{background:h}},[`&-disabled${t}-today ${r}::before`]:{borderColor:f}}},cIe=e=>{const{componentCls:t,pickerCellCls:r,pickerCellInnerCls:n,pickerYearMonthCellWidth:i,pickerControlIconSize:o,cellWidth:a,paddingSM:s,paddingXS:l,paddingXXS:c,colorBgContainer:d,lineWidth:u,lineType:f,borderRadiusLG:h,colorPrimary:v,colorTextHeading:y,colorSplit:g,pickerControlIconBorderWidth:m,colorIcon:S,textHeight:C,motionDurationMid:b,colorIconHover:w,fontWeightStrong:E,cellHeight:_,pickerCellPaddingVertical:R,colorTextDisabled:P,colorText:I,fontSize:O,motionDurationSlow:A,withoutTimeCellHeight:x,pickerQuarterPanelContentHeight:T,borderRadiusSM:D,colorTextLightSolid:k,cellHoverBg:j,timeColumnHeight:N,timeColumnWidth:L,timeCellHeight:M,controlItemBgActive:$,marginXXS:F,pickerDatePanelPaddingHorizontal:z,pickerControlIconMargin:H}=e,U=e.calc(a).mul(7).add(e.calc(z).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:d,borderRadius:h,outline:"none","&-focused":{borderColor:v},"&-rtl":{[`${t}-prev-icon,
299              ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon,
300              ${t}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${t}-time-panel`]:{[`${t}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n        &-year-panel,\n        &-quarter-panel,\n        &-month-panel,\n        &-week-panel,\n        &-date-panel,\n        &-time-panel":{display:"flex",flexDirection:"column",width:U},"&-header":{display:"flex",padding:`0 ${fe(l)}`,color:y,borderBottom:`${fe(u)} ${f} ${g}`,"> *":{flex:"none"},button:{padding:0,color:S,lineHeight:fe(C),background:"transparent",border:0,cursor:"pointer",transition:`color ${b}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:O,"&:hover":{color:w},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:E,lineHeight:fe(C),"> button":{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:l},"&:hover":{color:v}}}},"&-prev-icon,\n        &-next-icon,\n        &-super-prev-icon,\n        &-super-next-icon":{position:"relative",width:o,height:o,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:o,height:o,border:"0 solid currentcolor",borderBlockStartWidth:m,borderInlineStartWidth:m,content:'""'}},"&-super-prev-icon,\n        &-super-next-icon":{"&::after":{position:"absolute",top:H,insetInlineStart:H,display:"inline-block",width:o,height:o,border:"0 solid currentcolor",borderBlockStartWidth:m,borderInlineStartWidth:m,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:_,fontWeight:"normal"}
vendor: 5,143 bytes, lines 300-302
300,th:{height:e.calc(_).add(e.calc(R).mul(2)).equal(),color:I,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${fe(R)} 0`,color:P,cursor:"pointer","&-in-view":{color:I}},lIe(e)),"&-decade-panel,\n        &-year-panel,\n        &-quarter-panel,\n        &-month-panel":{[`${t}-content`]:{height:e.calc(x).mul(4).equal()},[n]:{padding:`0 ${fe(l)}`}},"&-quarter-panel":{[`${t}-content`]:{height:T}},"&-decade-panel":{[n]:{padding:`0 ${fe(e.calc(l).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n        &-quarter-panel,\n        &-month-panel":{[`${t}-body`]:{padding:`0 ${fe(l)}`},[n]:{width:i}},"&-date-panel":{[`${t}-body`]:{padding:`${fe(l)} ${fe(z)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel-row":{td:{"&:before":{transition:`background ${b}`},"&:first-child:before":{borderStartStartRadius:D,borderEndStartRadius:D},"&:last-child:before":{borderStartEndRadius:D,borderEndEndRadius:D}},"&:hover td:before":{background:j},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${r}`]:{"&:before":{background:v},[`&${t}-cell-week`]:{color:new ar(k).setA(.5).toHexString()},[n]:{color:k}}},"&-range-hover td:before":{background:$}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${fe(l)} ${fe(s)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${fe(u)} ${f} ${g}`},[`${t}-date-panel,
301          ${t}-time-panel`]:{transition:`opacity ${A}`},"&-active":{[`${t}-date-panel,
302            ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:N},"&-column":{flex:"1 0 auto",width:L,margin:`${fe(c)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${b}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:`calc(100% - ${fe(M)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${fe(u)} ${f} ${g}`},"&-active":{background:new ar($).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:F,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(L).sub(e.calc(F).mul(2)).equal(),height:M,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(L).sub(M).div(2).equal(),color:I,lineHeight:fe(M),borderRadius:D,cursor:"pointer",transition:`background ${b}`,"&:hover":{background:j}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:$}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:P,background:"transparent",cursor:"not-allowed"}}}}}}}}},uIe=e=>{const{componentCls:t,textHeight:r,lineWidth:n,paddingSM:i,antCls:o,colorPrimary:a,cellActiveWithRangeBg:s,colorPrimaryBorder:l,lineType:c,colorSplit:d}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${fe(n)} ${c} ${d}`,"&-extra":{padding:`0 ${fe(i)}`,lineHeight:fe(e.calc(r).sub(e.calc(n).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${fe(n)} ${c} ${d}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:fe(i),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:fe(e.calc(r).sub(e.calc(n).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${o}-tag-blue`]:{color:a,background:s,borderColor:l,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(n).mul(2).equal(),marginInlineStart:"auto"}}}}},dIe=uIe,fIe=e=>{const{componentCls:t,controlHeightLG:r,paddingXXS:n,padding:i}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(r).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(r).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(n).add(e.calc(n).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(i).add(e.calc(n).div(2)).equal()}},pIe=e=>{const{colorBgContainerDisabled:t,controlHeight:r,controlHeightSM:n,controlHeightLG:i,paddingXXS:o,lineWidth:a}=e,s=o*2,l=a*2,c=Math.min(r-s,r-l),d=Math.min(n-s,n-l),u=Math.min(i-s,i-l);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(o/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new ar(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new ar(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:i*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:n*1.5,cellHeight:n,textHeight:i,withoutTimeCellHeight:i*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:c,multipleItemHeightSM:d,multipleItemHeightLG:u,multipleSelectorBgDisabled:t,multipleItem
vendor: 8,567 bytes, lines 302-312
302ColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},hIe=e=>Object.assign(Object.assign(Object.assign(Object.assign({},Nd(e)),pIe(e)),K4(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),vIe=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign(Object.assign({},u3(e)),p3(e)),f3(e)),d3(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${fe(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${fe(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${fe(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-underlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${fe(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},gIe=vIe,gI=(e,t)=>({padding:`${fe(e)} ${fe(t)}`}),mIe=e=>{const{componentCls:t,colorError:r,colorWarning:n}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:r}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:n}}}}},yIe=e=>{var t;const{componentCls:r,antCls:n,paddingInline:i,lineWidth:o,lineType:a,colorBorder:s,borderRadius:l,motionDurationMid:c,colorTextDisabled:d,colorTextPlaceholder:u,fontSizeLG:f,inputFontSizeLG:h,fontSizeSM:v,inputFontSizeSM:y,controlHeightSM:g,paddingInlineSM:m,paddingXS:S,marginXS:C,colorIcon:b,lineWidthBold:w,colorPrimary:E,motionDurationSlow:_,zIndexPopup:R,paddingXXS:P,sizePopupArrow:I,colorBgElevated:O,borderRadiusLG:A,boxShadowSecondary:x,borderRadiusSM:T,colorSplit:D,cellHoverBg:k,presetsWidth:j,presetsMaxWidth:N,boxShadowPopoverArrow:L,fontHeight:M,lineHeightLG:$}=e;return[{[r]:Object.assign(Object.assign(Object.assign({},Kr(e)),gI(e.paddingBlock,e.paddingInline)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:l,transition:`border ${c}, box-shadow ${c}, background ${c}`,[`${r}-prefix`]:{flex:"0 0 auto",marginInlineEnd:e.inputAffixPadding},[`${r}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:(t=e.inputFontSize)!==null&&t!==void 0?t:e.fontSize,lineHeight:e.lineHeight,transition:`all ${c}`},h3(u)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:d,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:u}}},"&-large":Object.assign(Object.assign({},gI(e.paddingBlockLG,e.paddingInlineLG)),{[`${r}-input > input`]:{fontSize:h??f,lineHeight:$}}),"&-small":Object.assign(Object.assign({},gI(e.paddingBlockSM,e.paddingInlineSM)),{[`${r}-input > input`]:{fontSize:y??v}}),[`${r}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(S).div(2).equal(),color:d,lineHeight:1,pointerEvents:"none",transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:C}}},[`${r}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:d,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top"},"&:hover":{color:b}},"&:hover":{[`${r}-clear`]:{opacity:1},[`${r}-suffix:not(:last-child)`]:{opacity:0}},[`${r}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:f,color:d,fontSize:f,verticalAlign:"top",cursor:"default",[`${r}-focused &`]:{color:b},[`${r}-range-separator &`]:{[`${r}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${r}-active-bar`]:{bottom:e.calc(o).mul(-1).equal(),height:w,background:E,opacity:0,transition:`all ${_} ease-out`,pointerEvents:"none"},[`&${r}-focused`]:{[`${r}-active-bar`]:{opacity:1}},[`${r}-range-separator`]:{alignItems:"center",padding:`0 ${fe(S)}`,lineHeight:1}},"&-range, &-multiple":{[`${r}-clear`]:{insetInlineEnd:i},[`&${r}-small`]:{[`${r}-clear`]:{insetInlineEnd:m}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},Kr(e)),cIe(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:R,[`&${r}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${r}-dropdown-placement-bottomLeft,
303            &${r}-dropdown-placement-bottomRight`]:{[`${r}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${r}-dropdown-placement-topLeft,
304            &${r}-dropdown-placement-topRight`]:{[`${r}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${n}-slide-up-appear, &${n}-slide-up-enter`]:{[`${r}-range-arrow${r}-range-arrow`]:{transition:"none"}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${r}-dropdown-placement-topLeft,
305          &${n}-slide-up-enter${n}-slide-up-enter-active${r}-dropdown-placement-topRight,
306          &${n}-slide-up-appear${n}-slide-up-appear-active${r}-dropdown-placement-topLeft,
307          &${n}-slide-up-appear${n}-slide-up-appear-active${r}-dropdown-placement-topRight`]:{animationName:O4},[`&${n}-slide-up-enter${n}-slide-up-enter-active${r}-dropdown-placement-bottomLeft,
308          &${n}-slide-up-enter${n}-slide-up-enter-active${r}-dropdown-placement-bottomRight,
309          &${n}-slide-up-appear${n}-slide-up-appear-active${r}-dropdown-placement-bottomLeft,
310          &${n}-slide-up-appear${n}-slide-up-appear-active${r}-dropdown-placement-bottomRight`]:{animationName:I4},[`&${n}-slide-up-leave ${r}-panel-container`]:{pointerEvents:"none"},[`&${n}-slide-up-leave${n}-slide-up-leave-active${r}-dropdown-placement-topLeft,
311          &${n}-slide-up-leave${n}-slide-up-leave-active${r}-dropdown-placement-topRight`]:{animationName:T4},[`&${n}-slide-up-leave${n}-slide-up-leave-active${r}-dropdown-placement-bottomLeft,
312          &${n}-slide-up-leave${n}-slide-up-leave-active${r}-dropdown-placement-bottomRight`]:{animationName:x4},[`${r}-panel > ${r}-time-panel`]:{paddingTop:P},[`${r}-range-wrapper`]:{display:"flex",position:"relative"},[`${r}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(i).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${_} ease-out`},bZ(e,O,L)),{"&:before":{insetInlineStart:e.calc(i).mul(1.5).equal()}}),[`${r}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:O,borderRadius:A,boxShadow:x,transition:`margin ${_}`,display:"inline-block",pointerEvents:"auto",[`${r}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${r}-presets`]:{display:"flex",flexDirection:"column",minWidth:j,maxWidth:N,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:S,borderInlineEnd:`${fe(o)} ${a} ${D}`,li:Object.assign(Object.assign({},zs),{borderRadius:T,paddingInline:S,paddingBlock:e.calc(g).sub(M).div(2).equal(),cursor:"pointer",transition:`all ${_}`,"+ li":{marginTop:C},"&:hover":{background:k}})}},[`${r}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${r}-panel`]:{borderWidth:0}}},[`${r}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${r}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:s}}}}),"&-dropdown-range":{padding:`${fe(e.calc(I).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${r}-separator`]:{transform:"scale(-1, 1)"},[`${r}-footer`]:{"&-extra":{direction:"rtl"}}}})},Cp(e,"slide-up"),Cp(e,"slide-down"),yb(e,"move-up"),yb(e,"move-down")]},jee=Nr("DatePicker",e=>{const t=sr(kd(e),fIe(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[dIe(t),yIe(t),gIe(t),mIe(t),sIe(t),i0(e,{focusElCls:`${e.componentCls}-focused`})]},hIe);var SIe={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"};const CIe=SIe;var bIe=function(t,r){return p.createElement(Jt,$e({},t,{ref:r,icon:CIe}))},wIe=p.forwardRef(bIe);const Fee=wIe,j_=p.createContext(null);var _Ie=function(t){var r=t.activeTabOffset,n=t.horizontal,i=t.rtl,o=t.indicator,a=o===void 0?{}
312:o,s=a.size,l=a.align,c=l===void 0?"center":l,d=p.useState(),u=oe(d,2),f=u[0],h=u[1],v=p.useRef(),y=de.useCallback(function(m){return typeof s=="function"?s(m):typeof s=="number"?s:m},[s]);function g(){Gt.cancel(v.current)}return p.useEffect(function(){var m={};if(r)if(n){m.width=y(r.width);var S=i?"right":"left";c==="start"&&(m[S]=r[S]),c==="center"&&(m[S]=r[S]+r.width/2,m.transform=i?"translateX(50%)":"translateX(-50%)"),c==="end"&&(m[S]=r[S]+r.width,m.transform="translateX(-100%)")}else m.height=y(r.height),c==="start"&&(m.top=r.top),c==="center"&&(m.top=r.top+r.height/2,m.transform="translateY(-50%)"),c==="end"&&(m.top=r.top+r.height,m.transform="translateY(-100%)");return g(),v.current=Gt(function(){var C=f&&m&&Object.keys(m).every(function(b){var w=m[b],E=f[b];return typeof w=="number"&&typeof E=="number"?Math.round(w)===Math.round(E):w===E});C||h(m)}),g},[JSON.stringify(r),n,i,c,y]),{style:f}},i7={width:0,height:0,left:0,top:0};function EIe(e,t,r){return p.useMemo(function(){for(var n,i=new Map,o=t.get((n=e[0])===null||n===void 0?void 0:n.key)||i7,a=o.left+o.width,s=0;s<e.length;s+=1){var l=e[s].key,c=t.get(l);if(!c){var d;c=t.get((d=e[s-1])===null||d===void 0?void 0:d.key)||i7}var u=i.get(l)||Q({},c);u.right=a-u.left-u.width,i.set(l,u)}return i},[e.map(function(n){return n.key}).join("_"),t,r])}function o7(e,t){var r=p.useRef(e),n=p.useState({}),i=oe(n,2),o=i[1];function a(s){var l=typeof s=="function"?s(r.current):s;l!==r.current&&t(l,r.current),r.current=l,o({})}return[r.current,a]}var RIe=.1,a7=.01,vC=20,s7=Math.pow(.995,vC);function PIe(e,t){var r=p.useState(),n=oe(r,2),i=n[0],o=n[1],a=p.useState(0),s=oe(a,2),l=s[0],c=s[1],d=p.useState(0),u=oe(d,2),f=u[0],h=u[1],v=p.useState(),y=oe(v,2),g=y[0],m=y[1],S=p.useRef();function C(P){var I=P.touches[0],O=I.screenX,A=I.screenY;o({x:O,y:A}),window.clearInterval(S.current)}function b(P){if(i){var I=P.touches[0],O=I.screenX,A=I.screenY;o({x:O,y:A});var x=O-i.x,T=A-i.y;t(x,T);var D=Date.now();c(D),h(D-l),m({x,y:T})}}function w(){if(i&&(o(null),m(null),g)){var P=g.x/f,I=g.y/f,O=Math.abs(P),A=Math.abs(I);if(Math.max(O,A)<RIe)return;var x=P,T=I;S.current=window.setInterval(function(){if(Math.abs(x)<a7&&Math.abs(T)<a7){window.clearInterval(S.current);return}x*=s7,T*=s7,t(x*vC,T*vC)},vC)}}var E=p.useRef();function _(P){var I=P.deltaX,O=P.deltaY,A=0,x=Math.abs(I),T=Math.abs(O);x===T?A=E.current==="x"?I:O:x>T?(A=I,E.current="x"):(A=O,E.current="y"),t(-A,-A)&&P.preventDefault()}var R=p.useRef(null);R.current={onTouchStart:C,onTouchMove:b,onTouchEnd:w,onWheel:_},p.useEffect(function(){function P(x){R.current.onTouchStart(x)}function I(x){R.current.onTouchMove(x)}function O(x){R.current.onTouchEnd(x)}function A(x){R.current.onWheel(x)}return document.addEventListener("touchmove",I,{passive:!1}),document.addEventListener("touchend",O,{passive:!0}),e.current.addEventListener("touchstart",P,{passive:!0}),e.current.addEventListener("wheel",A,{passive:!1}),function(){document.removeEventListener("touchmove",I),document.removeEventListener("touchend",O)}},[])}function zee(e){var t=p.useState(0),r=oe(t,2),n=r[0],i=r[1],o=p.useRef(0),a=p.useRef();return a.current=e,Zu(function(){var s;(s=a.current)===null||s===void 0||s.call(a)},[n]),function(){o.current===n&&(o.current+=1,i(o.current))}}function IIe(e){var t=p.useRef([]),r=p.useState({}),n=oe(r,2),i=n[1],o=p.useRef(typeof e=="function"?e():e),a=zee(function(){var l=o.current;t.current.forEach(function(c){l=c(l)}),t.current=[],o.current=l,i({})});function s(l){t.current.push(l),a()}return[o.current,s]}var l7={width:0,height:0,left:0,top:0,right:0};function xIe(e,t,r,n,i,o,a){var s=a.tabs,l=a.tabPosition,c=a.rtl,d,u,f;return["top","bottom"].includes(l)?(d="width",u=c?"right":"left",f=Math.abs(r)):(d="height",u="top",f=-r),p.useMemo(function(){if(!s.length)return[0,0];for(var h=s.length,v=h,y=0;y<h;y+=1){var g=e.get(s[y].key)||l7;if(Math.floor(g[u]+g[d])>Math.floor(f+t)){v=y-1;break}}for(var m=0,S=h-1;S>=0;S-=1){var C=e.get(s[S].key)||l7;if(C[u]<f){m=S+1;break}}return m>v?[0,-1]:[m,v]},[e,t,n,i,o,f,l,s.map(function(h){return h.key}).join("_"),c])}function c7(e){var t;return e instanceof Map?(t={},e.forEach(function(r,n){t[n]=r})):t=e,JSON.stringify(t)}var OIe="TABS_DQ";function Bee(e){return String(e).replace(/"/g,OIe)}function g3(e,t,r,n){return!(!r||n||e===!1||e===void 0&&(t===!1||t===null))}var Hee=p.forwardRef(function(e,t){var r=e.prefixCls,n=e.editable,i=e.locale,o=e.style;return!n||n.showAdd===!1?null:p.createElement("button",{ref:t,type:"button",className:"".concat(r,"-nav-add"),style:o,"aria-label":(i==null?void 0:i.addAriaLabel)||"Add tab",onClick:function(s){n.onEdit("add",{event:s})}},n.addIcon||"+")}),u7=p.forwardRef(function(e,t){var r=e.position,n=e.prefixCls,i=e.extra;if(!i)return null;var o,a={};return Pt(i)==="object"&&!p.isValidElement(i)?a=i:a.right=i,r==="right"&&(o=a.right),r==="left"&&(o=a.left),o?p.createElement("div",{className:"".concat(n,"-extra-content"),ref:t},o):null}),TIe=p.forwardRef(function(e,t){var r=e.prefixCls,n=e.id,i=e.tabs,o=e.locale,a=e.mobile,s=e.more,l=s===void 0?{}:s,c=e.style,d=e.className,u=e.editable,f=e.tabBarGutter,h=e.rtl,v=e.removeAriaLabel,y=e.onTabClick,g=e.getPopupContainer,m=e.popupClassName,S=p.useState(!1),C=oe(S,2),b=C[0],w=C[1],E=p.useState(null),_=oe(E,2),R=_[0],P=_[1],I=l.icon,O=I===void 0?"More":I,A="".concat(n,"-more-popup"),x="".concat(r,"-dropdown"),T=R!==null?"".concat(A,"-").concat(R):null,D=o==null?void 0:o.dropdownAriaLabel;function k(z,H){z.preventDefault(),z.stopPropagation(),u.onEdit("remove",{key:H,event:z})}var j=p.createElement(f0,{onClick:function(H){var U=H.key,V=H.domEvent;y(U,V),w(!1)},prefixCls:"".concat(x,"-menu"),id:A,tabIndex:-1,role:"listbox","aria-activedescendant":T,selectedKeys:[R],"aria-label":D!==void 0?D:"expanded dropdown"},i.map(function(z){var H=z.closable,U=z.disabled,V=z.closeIcon,W=z.key,K=z.label,Z=g3(H,V,u,U);return p.createElement(A_,{key:W,id:"".concat(A,"-").concat(W),role:"option","aria-controls":n&&"".concat(n,"-panel-").concat(W),disabled:U},p.createElement("span",null,K),Z&&p.createElement("button",{type:"button","aria-label":v||"remove",tabIndex:0,className:"".concat(x,"-menu-item-remove"),onClick:function(Y){Y.stopPropagation(),k(Y,W)}},V||u.removeIcon||"×"))}));function N(z){for(var H=i.filter(function(Z){return!Z.disabled}),U=H.findIndex(function(Z){return Z.key===R})||0,V=H.length,W=0;W<V;W+=1){U=(U+z+V)%V;var K=H[U];if(!K.disabled){P(K.key);return}}}function L(z){var H=z.which;if(!b){[Ue.DOWN,Ue.SPACE,Ue.ENTER].includes(H)&&(w(!0),z.preventDefault());return}switch(H){case Ue.UP:N(-1),z.preventDefault();break;case Ue.DOWN:N(1),z.preventDefault();break;case Ue.ESC:w(!1);break;case Ue.SPACE:case Ue.ENTER:R!==null&&y(R,z);break}}p.useEffect(function(){var z=document.getElementById(T);z&&z.scrollIntoView&&z.scrollIntoView(!1)},[R]),p.useEffect(function(){b||P(null)},[b]);var M=J({},h?"marginRight":"marginLeft",f);i.length||(M.visibility="hidden",M.order=1);var $=ie(J({},"".concat(x,"-rtl"),h)),F=a?null:p.createElement(QEe,$e({prefixCls:x,overlay:j,visible:i.length?b:!1,onVisibleChange:w,overlayClassName:ie($,m),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:g},l),p.createElement("button",{type:"button",className:"".concat(r,"-nav-more"),style:M,"aria-haspopup":"listbox","aria-controls":A,id:"".concat(n,"-more"),"aria-expanded":b,onKeyDown:L},O));return p.createElement("div",{className:ie("".concat(r,"-nav-operations"),d),style:c,ref:t},F,p.createElement(Hee,{prefixCls:r,locale:o,editable:u}))});const AIe=p.memo(TIe,function(e,t){return t.tabMoving});var MIe=function(t){var r=t.prefixCls,n=t.id,i=t.active,o=t.focus,a=t.tab,s=a.key,l=a.label,c=a.disabled,d=a.closeIcon,u=a.icon,f=t.closable,h=t.renderWrapper,v=t.removeAriaLabel,y=t.editable,g=t.onClick,m=t.onFocus,S=t.onBlur,C=t.onKeyDown,b=t.onMouseDown,w=t.onMouseUp,E=t.style,_=t.tabCount,R=t.currentPosition,P="".concat(r,"-tab"),I=g3(f,d,y,c);function O(k){c||g(k)}function A(k){k.preventDefault(),k.stopPropagation(),y.onEdit("remove",{key:s,event:k})}var x=p.useMemo(function(){return u&&typeof l=="string"?p.createElement("span",null,l):l},[l,u]),T=p.useRef(null);p.useEffect(function(){o&&T.current&&T.current.focus()},[o]);var D=p.createElement("div",{key:s,"data-node-key":Bee(s),className:ie(P,J(J(J(J({},"".concat(P,"-with-remove"),I),"".concat(P,"-active"),i),"".concat(P,"-disabled"),c),"".concat(P,"-focus"),o)),style:E,onClick:O},p.createElement("div",{ref:T,role:"tab","aria-selected":i,id:n&&"".concat(n,"-tab-").concat(s),className:"".concat(P,"-btn"),"aria-controls":n&&"".concat(n,"-panel-").concat(s),"aria-disabled":c,tabIndex:c?null:i?0:-1,onClick:function(j){j.stopPropagation(),O(j)},onKeyDown:C,onMouseDown:b,onMouseUp:w,onFocus:m,onBlur:S},o&&p.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}
312},"Tab ".concat(R," of ").concat(_)),u&&p.createElement("span",{className:"".concat(P,"-icon")},u),l&&x),I&&p.createElement("button",{type:"button",role:"tab","aria-label":v||"remove",tabIndex:i?0:-1,className:"".concat(P,"-remove"),onClick:function(j){j.stopPropagation(),A(j)}},d||y.removeIcon||"×"));return h?h(D):D},$Ie=function(t,r){var n=t.offsetWidth,i=t.offsetHeight,o=t.offsetTop,a=t.offsetLeft,s=t.getBoundingClientRect(),l=s.width,c=s.height,d=s.left,u=s.top;return Math.abs(l-n)<1?[l,c,d-r.left,u-r.top]:[n,i,a,o]},uf=function(t){var r=t.current||{},n=r.offsetWidth,i=n===void 0?0:n,o=r.offsetHeight,a=o===void 0?0:o;if(t.current){var s=t.current.getBoundingClientRect(),l=s.width,c=s.height;if(Math.abs(l-i)<1)return[l,c]}return[i,a]},BS=function(t,r){return t[r?0:1]},d7=p.forwardRef(function(e,t){var r=e.className,n=e.style,i=e.id,o=e.animated,a=e.activeKey,s=e.rtl,l=e.extra,c=e.editable,d=e.locale,u=e.tabPosition,f=e.tabBarGutter,h=e.children,v=e.onTabClick,y=e.onTabScroll,g=e.indicator,m=p.useContext(j_),S=m.prefixCls,C=m.tabs,b=p.useRef(null),w=p.useRef(null),E=p.useRef(null),_=p.useRef(null),R=p.useRef(null),P=p.useRef(null),I=p.useRef(null),O=u==="top"||u==="bottom",A=o7(0,function(ut,st){O&&y&&y({direction:ut>st?"left":"right"})}),x=oe(A,2),T=x[0],D=x[1],k=o7(0,function(ut,st){!O&&y&&y({direction:ut>st?"top":"bottom"})}),j=oe(k,2),N=j[0],L=j[1],M=p.useState([0,0]),$=oe(M,2),F=$[0],z=$[1],H=p.useState([0,0]),U=oe(H,2),V=U[0],W=U[1],K=p.useState([0,0]),Z=oe(K,2),q=Z[0],Y=Z[1],G=p.useState([0,0]),re=oe(G,2),ee=re[0],ne=re[1],te=IIe(new Map),pe=oe(te,2),le=pe[0],ye=pe[1],Se=EIe(C,le,V[0]),_e=BS(F,O),De=BS(V,O),be=BS(q,O),se=BS(ee,O),Pe=Math.floor(_e)<Math.floor(De+be),Te=Pe?_e-se:_e-be,ze="".concat(S,"-nav-operations-hidden"),ke=0,Me=0;O&&s?(ke=0,Me=Math.max(0,De-Te)):(ke=Math.min(0,Te-De),Me=0);function qe(ut){return ut<ke?ke:ut>Me?Me:ut}var Le=p.useRef(null),xe=p.useState(),je=oe(xe,2),Ee=je[0],Re=je[1];function me(){Re(Date.now())}function ce(){Le.current&&clearTimeout(Le.current)}PIe(_,function(ut,st){function _t(zt,ht){zt(function(dt){var Et=qe(dt+ht);return Et})}return Pe?(O?_t(D,ut):_t(L,st),ce(),me(),!0):!1}),p.useEffect(function(){return ce(),Ee&&(Le.current=setTimeout(function(){Re(0)},100)),ce},[Ee]);var Ae=xIe(Se,Te,O?T:N,De,be,se,Q(Q({},e),{},{tabs:C})),We=oe(Ae,2),lt=We[0],yt=We[1],nt=lr(function(){var ut=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a,st=Se.get(ut)||{width:0,height:0,left:0,right:0,top:0};if(O){var _t=T;s?st.right<T?_t=st.right:st.right+st.width>T+Te&&(_t=st.right+st.width-Te):st.left<-T?_t=-st.left:st.left+st.width>-T+Te&&(_t=-(st.left+st.width-Te)),L(0),D(qe(_t))}else{var zt=N;st.top<-N?zt=-st.top:st.top+st.height>-N+Te&&(zt=-(st.top+st.height-Te)),D(0),L(qe(zt))}}),it=p.useState(),gt=oe(it,2),Ye=gt[0],vt=gt[1],mt=p.useState(!1),St=oe(mt,2),pt=St[0],Rt=St[1],ae=C.filter(function(ut){return!ut.disabled}).map(function(ut){return ut.key}),ue=function(st){var _t=ae.indexOf(Ye||a),zt=ae.length,ht=(_t+st+zt)%zt,dt=ae[ht];vt(dt)},ve=function(st,_t){var zt=ae.indexOf(st),ht=C.find(function(Et){return Et.key===st}),dt=g3(ht==null?void 0:ht.closable,ht==null?void 0:ht.closeIcon,c,ht==null?void 0:ht.disabled);dt&&(_t.preventDefault(),_t.stopPropagation(),c.onEdit("remove",{key:st,event:_t}),zt===ae.length-1?ue(-1):ue(1))},Ce=function(st,_t){Rt(!0),_t.button===1&&ve(st,_t)},Fe=function(st){var _t=st.code,zt=s&&O,ht=ae[0],dt=ae[ae.length-1];switch(_t){case"ArrowLeft":{O&&ue(zt?1:-1);break}case"ArrowRight":{O&&ue(zt?-1:1);break}case"ArrowUp":{st.preventDefault(),O||ue(-1);break}case"ArrowDown":{st.preventDefault(),O||ue(1);break}case"Home":{st.preventDefault(),vt(ht);break}case"End":{st.preventDefault(),vt(dt);break}case"Enter":case"Space":{st.preventDefault(),v(Ye??a,st);break}case"Backspace":case"Delete":{ve(Ye,st);break}}},Ze={};O?Ze[s?"marginRight":"marginLeft"]=f:Ze.marginTop=f;var et=C.map(function(ut,st){var _t=ut.key;return p.createElement(MIe,{id:i,prefixCls:S,key:_t,tab:ut,style:st===0?void 0:Ze,closable:ut.closable,editable:c,active:_t===a,focus:_t===Ye,renderWrapper:h,removeAriaLabel:d==null?void 0:d.removeAriaLabel,tabCount:ae.length,currentPosition:st+1,onClick:function(ht){v(_t,ht)},onKeyDown:Fe,onFocus:function(){pt||vt(_t),nt(_t),me(),_.current&&(s||(_.current.scrollLeft=0),_.current.scrollTop=0)},onBlur:function(){vt(void 0)},onMouseDown:function(ht){return Ce(_t,ht)},onMouseUp:function(){Rt(!1)}})}),tt=function(){return ye(function(){var st,_t=new Map,zt=(st=R.current)===null||st===void 0?void 0:st.getBoundingClientRect();
312return C.forEach(function(ht){var dt,Et=ht.key,pr=(dt=R.current)===null||dt===void 0?void 0:dt.querySelector('[data-node-key="'.concat(Bee(Et),'"]'));if(pr){var br=$Ie(pr,zt),Yt=oe(br,4),Ur=Yt[0],tn=Yt[1],Fn=Yt[2],ti=Yt[3];_t.set(Et,{width:Ur,height:tn,left:Fn,top:ti})}}),_t})};p.useEffect(function(){tt()},[C.map(function(ut){return ut.key}).join("_")]);var ot=zee(function(){var ut=uf(b),st=uf(w),_t=uf(E);z([ut[0]-st[0]-_t[0],ut[1]-st[1]-_t[1]]);var zt=uf(I);Y(zt);var ht=uf(P);ne(ht);var dt=uf(R);W([dt[0]-zt[0],dt[1]-zt[1]]),tt()}),rt=C.slice(0,lt),ft=C.slice(yt+1),ge=[].concat(Ge(rt),Ge(ft)),we=Se.get(a),Ie=_Ie({activeTabOffset:we,horizontal:O,indicator:g,rtl:s}),Ne=Ie.style;p.useEffect(function(){nt()},[a,ke,Me,c7(we),c7(Se),O]),p.useEffect(function(){ot()},[s]);var Be=!!ge.length,Xe="".concat(S,"-nav-wrap"),He,ct,at,Je;return O?s?(ct=T>0,He=T!==Me):(He=T<0,ct=T!==ke):(at=N<0,Je=N!==ke),p.createElement(ao,{onResize:ot},p.createElement("div",{ref:Bc(t,b),role:"tablist","aria-orientation":O?"horizontal":"vertical",className:ie("".concat(S,"-nav"),r),style:n,onKeyDown:function(){me()}},p.createElement(u7,{ref:w,position:"left",extra:l,prefixCls:S}),p.createElement(ao,{onResize:ot},p.createElement("div",{className:ie(Xe,J(J(J(J({},"".concat(Xe,"-ping-left"),He),"".concat(Xe,"-ping-right"),ct),"".concat(Xe,"-ping-top"),at),"".concat(Xe,"-ping-bottom"),Je)),ref:_},p.createElement(ao,{onResize:ot},p.createElement("div",{ref:R,className:"".concat(S,"-nav-list"),style:{transform:"translate(".concat(T,"px, ").concat(N,"px)"),transition:Ee?"none":void 0}},et,p.createElement(Hee,{ref:I,prefixCls:S,locale:d,editable:c,style:Q(Q({},et.length===0?void 0:Ze),{},{visibility:Be?"hidden":null})}),p.createElement("div",{className:ie("".concat(S,"-ink-bar"),J({},"".concat(S,"-ink-bar-animated"),o.inkBar)),style:Ne}))))),p.createElement(AIe,$e({},e,{removeAriaLabel:d==null?void 0:d.removeAriaLabel,ref:P,prefixCls:S,tabs:ge,className:!Be&&ze,tabMoving:!!Ee})),p.createElement(u7,{ref:E,position:"right",extra:l,prefixCls:S})))}),Vee=p.forwardRef(function(e,t){var r=e.prefixCls,n=e.className,i=e.style,o=e.id,a=e.active,s=e.tabKey,l=e.children;return p.createElement("div",{id:o&&"".concat(o,"-panel-").concat(s),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":o&&"".concat(o,"-tab-").concat(s),"aria-hidden":!a,style:i,className:ie(r,a&&"".concat(r,"-active"),n),ref:t},l)}),kIe=["renderTabBar"],NIe=["label","key"],DIe=function(t){var r=t.renderTabBar,n=Nt(t,kIe),i=p.useContext(j_),o=i.tabs;if(r){var a=Q(Q({},n),{},{panes:o.map(function(s){var l=s.label,c=s.key,d=Nt(s,NIe);return p.createElement(Vee,$e({tab:l,key:c,tabKey:c},d))})});return r(a,d7)}return p.createElement(d7,n)},LIe=["key","forceRender","style","className","destroyInactiveTabPane"],jIe=function(t){var r=t.id,n=t.activeKey,i=t.animated,o=t.tabPosition,a=t.destroyInactiveTabPane,s=p.useContext(j_),l=s.prefixCls,c=s.tabs,d=i.tabPane,u="".concat(l,"-tabpane");return p.createElement("div",{className:ie("".concat(l,"-content-holder"))},p.createElement("div",{className:ie("".concat(l,"-content"),"".concat(l,"-content-").concat(o),J({},"".concat(l,"-content-animated"),d))},c.map(function(f){var h=f.key,v=f.forceRender,y=f.style,g=f.className,m=f.destroyInactiveTabPane,S=Nt(f,LIe),C=h===n;return p.createElement(No,$e({key:h,visible:C,forceRender:v,removeOnLeave:!!(a||m),leavedClassName:"".concat(u,"-hidden")},i.tabPaneMotion),function(b,w){var E=b.style,_=b.className;return p.createElement(Vee,$e({},S,{prefixCls:u,id:r,tabKey:h,animated:d,active:C,style:Q(Q({},y),E),className:ie(g,_),ref:w}))})})))};function FIe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=Q({inkBar:!0},Pt(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var zIe=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],f7=0,BIe=p.forwardRef(function(e,t){var r=e.id,n=e.prefixCls,i=n===void 0?"rc-tabs":n,o=e.className,a=e.items,s=e.direction,l=e.activeKey,c=e.defaultActiveKey,d=e.editable,u=e.animated,f=e.tabPosition,h=f===void 0?"top":f,v=e.tabBarGutter,y=e.tabBarStyle,g=e.tabBarExtraContent,m=e.locale,S=e.more,C=e.destroyInactiveTabPane,b=e.renderTabBar,w=e.onCh
312ange,E=e.onTabClick,_=e.onTabScroll,R=e.getPopupContainer,P=e.popupClassName,I=e.indicator,O=Nt(e,zIe),A=p.useMemo(function(){return(a||[]).filter(function(ee){return ee&&Pt(ee)==="object"&&"key"in ee})},[a]),x=s==="rtl",T=FIe(u),D=p.useState(!1),k=oe(D,2),j=k[0],N=k[1];p.useEffect(function(){N(P_())},[]);var L=Or(function(){var ee;return(ee=A[0])===null||ee===void 0?void 0:ee.key},{value:l,defaultValue:c}),M=oe(L,2),$=M[0],F=M[1],z=p.useState(function(){return A.findIndex(function(ee){return ee.key===$})}),H=oe(z,2),U=H[0],V=H[1];p.useEffect(function(){var ee=A.findIndex(function(te){return te.key===$});if(ee===-1){var ne;ee=Math.max(0,Math.min(U,A.length-1)),F((ne=A[ee])===null||ne===void 0?void 0:ne.key)}V(ee)},[A.map(function(ee){return ee.key}).join("_"),$,U]);var W=Or(null,{value:r}),K=oe(W,2),Z=K[0],q=K[1];p.useEffect(function(){r||(q("rc-tabs-".concat(f7)),f7+=1)},[]);function Y(ee,ne){E==null||E(ee,ne);var te=ee!==$;F(ee),te&&(w==null||w(ee))}var G={id:Z,activeKey:$,animated:T,tabPosition:h,rtl:x,mobile:j},re=Q(Q({},G),{},{editable:d,locale:m,more:S,tabBarGutter:v,onTabClick:Y,onTabScroll:_,extra:g,style:y,panes:null,getPopupContainer:R,popupClassName:P,indicator:I});return p.createElement(j_.Provider,{value:{tabs:A,prefixCls:i}},p.createElement("div",$e({ref:t,id:r,className:ie(i,"".concat(i,"-").concat(h),J(J(J({},"".concat(i,"-mobile"),j),"".concat(i,"-editable"),d),"".concat(i,"-rtl"),x),o)},O),p.createElement(DIe,$e({},re,{renderTabBar:b})),p.createElement(jIe,$e({destroyInactiveTabPane:C},G,{animated:T}))))});const HIe={motionAppear:!1,motionEnter:!0,motionLeave:!0};function VIe(e,t={inkBar:!0,tabPane:!1}){let r;return t===!1?r={inkBar:!1,tabPane:!1}:t===!0?r={inkBar:!0,tabPane:!0}:r=Object.assign({inkBar:!0},typeof t=="object"?t:{}),r.tabPane&&(r.tabPaneMotion=Object.assign(Object.assign({},HIe),{motionName:Na(e,"switch")})),r}var UIe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function WIe(e){return e.filter(t=>t)}function qIe(e,t){if(e)return e.map(n=>{var i;const o=(i=n.destroyOnHidden)!==null&&i!==void 0?i:n.destroyInactiveTabPane;return Object.assign(Object.assign({},n),{destroyInactiveTabPane:o})});const r=Jo(t).map(n=>{if(p.isValidElement(n)){const{key:i,props:o}=n,a=o||{},{tab:s}=a,l=UIe(a,["tab"]);return Object.assign(Object.assign({key:String(i)},l),{label:s})}return null});return WIe(r)}const GIe=e=>{const{componentCls:t,motionDurationSlow:r}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0}
vendor: 9,480 bytes, lines 312-314
312,"&-active":{opacity:1,transition:`opacity ${r}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${r}`}}}}},[Cp(e,"slide-up"),Cp(e,"slide-down")]]},KIe=GIe,YIe=e=>{const{componentCls:t,tabsCardPadding:r,cardBg:n,cardGutter:i,colorBorderSecondary:o,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:r,background:n,border:`${fe(e.lineWidth)} ${e.lineType} ${o}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:ny(e,-3),[`& ${t}-tab${t}-tab-focus ${t}-tab-btn:focus-visible`]:{outline:"none"},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:fe(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${fe(e.borderRadiusLG)} ${fe(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${fe(e.borderRadiusLG)} ${fe(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:fe(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${fe(e.borderRadiusLG)} 0 0 ${fe(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 ${fe(e.borderRadiusLG)} ${fe(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},XIe=e=>{const{componentCls:t,itemHoverColor:r,dropdownEdgeChildVerticalPadding:n}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Kr(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:`${fe(n)} 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({},zs),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${fe(e.paddingXXS)} ${fe(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.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:r}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},QIe=e=>{const{componentCls:t,margin:r,colorBorderSecondary:n,horizontalMargin:i,verticalItemPadding:o,verticalItemMargin:a,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:i,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${fe(e.lineWidth)} ${e.lineType} ${n}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
313            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,
314        > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:r,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:s(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:o,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:fe(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${fe(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:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${fe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},JIe=e=>{const{componentCls:t,cardPaddingSM:r,cardPaddingLG:n,cardHeightSM:i,cardHeightLG:o,horizontalItemPaddingSM:a,horizontalItemPaddingLG:s}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:s,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:i,minHeight:i}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${fe(e.borderRadius)} ${fe(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${fe(e.borderRadius)} ${fe(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${fe(e.borderRadius)} ${fe(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${fe(e.borderRadius)} 0 0 ${fe(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:o,minHeight:o}}}}}},ZIe=e=>{const{componentCls:t,itemActiveColor:r,itemHoverColor:n,iconCls:i,tabsHorizontalItemMargin:o,horizontalItemPadding:a,itemSelectedColor:s,itemColor:l}=e,c=`${t}-tab`;return{[c]:{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:l,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:r}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${c}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":Object.assign({flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},Mc(e)),"&:hover":{color:n},[`&${c}-active ${c}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${c}-focus ${c}-btn:focus-visible`]:ny(e),[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${i}`]:{margin:0},[`${i}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:o}}}},e2e=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:r,iconCls:n,cardGutter:i,calc:o}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:r},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[n]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:fe(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:fe(e.marginXS)},marginLeft:{_skip_check_:!0,value:fe(o(e.marginXXS).mul(-1).equal())},[n]:{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:i},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},t2e=e=>
314{const{componentCls:t,tabsCardPadding:r,cardHeight:n,cardGutter:i,itemHoverColor:o,itemActiveColor:a,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Kr(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:r,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:n,minHeight:n,marginLeft:{_skip_check_:!0,value:i},background:"transparent",border:`${fe(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${fe(e.borderRadiusLG)} ${fe(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:o},"&:active, &:focus:not(:focus-visible)":{color:a}},Mc(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),ZIe(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},Mc(e)),{"&-hidden":{display:"none"}})}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}},r2e=e=>{const{cardHeight:t,cardHeightSM:r,cardHeightLG:n,controlHeight:i,controlHeightLG:o}=e,a=t||o,s=r||i,l=n||o+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:a,cardHeightSM:s,cardHeightLG:l,cardPadding:`${(a-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(s-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(l-e.fontHeightLG)/2-e.lineWidth}px ${e.padding}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}},n2e=Nr("Tabs",e=>{const t=sr(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${fe(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${fe(e.horizontalItemGutter)}`});return[JIe(t),e2e(t),QIe(t),XIe(t),YIe(t),t2e(t),KIe(t)]},r2e),i2e=()=>null,o2e=i2e;var a2e=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const s2e=p.forwardRef((e,t)=>{var r,n,i,o,a,s,l,c,d,u,f;const{type:h,className:v,rootClassName:y,size:g,onEdit:m,hideAdd:S,centered:C,addIcon:b,removeIcon:w,moreIcon:E,more:_,popupClassName:R,children:P,items:I,animated:O,style:A,indicatorSize:x,indicator:T,destroyInactiveTabPane:D,destroyOnHidden:k}=e,j=a2e(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator","destroyInactiveTabPane","destroyOnHidden"]),{prefixCls:N}=j,{direction:L,tabs:M,getPrefixCls:$,getPopupContainer:F}=p.useContext(Vt),z=$("tabs",N),H=fi(z),[U,V,W]=n2e(z,H),K=p.useRef(null);p.useImperativeHandle(t,()=>({nativeElement:K.current}));let Z;h==="editable-card"&&(Z={onEdit:(te,{key:pe,event:le})=>{m==null||m(te==="add"?le:pe,te)},removeIcon:(r=w??(M==null?void 0:M.removeIcon))!==null&&r!==void 0?r:p.createElement(Tl,null),addIcon:(b??(M==null?void 0:M.addIcon))||p.
314createElement(Fee,null),showAdd:S!==!0});const q=$(),Y=Xi(g),G=qIe(I,P),re=VIe(z,O),ee=Object.assign(Object.assign({},M==null?void 0:M.style),A),ne={align:(n=T==null?void 0:T.align)!==null&&n!==void 0?n:(i=M==null?void 0:M.indicator)===null||i===void 0?void 0:i.align,size:(l=(a=(o=T==null?void 0:T.size)!==null&&o!==void 0?o:x)!==null&&a!==void 0?a:(s=M==null?void 0:M.indicator)===null||s===void 0?void 0:s.size)!==null&&l!==void 0?l:M==null?void 0:M.indicatorSize};return U(p.createElement(BIe,Object.assign({ref:K,direction:L,getPopupContainer:F},j,{items:G,className:ie({[`${z}-${Y}`]:Y,[`${z}-card`]:["card","editable-card"].includes(h),[`${z}-editable-card`]:h==="editable-card",[`${z}-centered`]:C},M==null?void 0:M.className,v,y,V,W,H),popupClassName:ie(R,V,W,H),style:ee,editable:Z,more:Object.assign({icon:(f=(u=(d=(c=M==null?void 0:M.more)===null||c===void 0?void 0:c.icon)!==null&&d!==void 0?d:M==null?void 0:M.moreIcon)!==null&&u!==void 0?u:E)!==null&&f!==void 0?f:p.createElement(LRe,null),transitionName:`${q}-slide-up`},_),prefixCls:z,animated:re,indicator:ne,destroyInactiveTabPane:k??D})))}),Uee=s2e;Uee.TabPane=o2e;const l2e=Uee;var c2e=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const u2e=e=>{var{prefixCls:t,className:r,hoverable:n=!0}=e,i=c2e(e,["prefixCls","className","hoverable"]);const{getPrefixCls:o}=p.useContext(Vt),a=o("card",t),s=ie(`${a}-grid`,r,{[`${a}-grid-hoverable`]:n});return p.createElement("div",Object.assign({},i,{className:s}))},Wee=u2e,d2e=e=>{const{antCls:t,componentCls:r,headerHeight:n,headerPadding:i,tabsMarginBottom:o}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:n,marginBottom:-1,padding:`0 ${fe(i)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${fe(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${fe(e.borderRadiusLG)} ${fe(e.borderRadiusLG)} 0 0`},Vc()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},zs),{[`
315          > ${r}-typography,
316          > ${r}-typography-edit-content
317        `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:o,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${fe(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},f2e=e=>{const{cardPaddingBase:t,colorBorderSecondary:r,cardShadow:n,lineWidth:i}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
318      ${fe(i)} 0 0 0 ${r},
319      0 ${fe(i)} 0 0 ${r},
320      ${fe(i)} ${fe(i)} 0 0 ${r},
321      ${fe(i)} 0 0 0 ${r} inset,
322      0 ${fe(i)} 0 0 ${r} inset;
323    `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:n}}},p2e=e=>{const{componentCls:t,iconCls:r,actionsLiMargin:n,cardActionsIconSize:i,colorBorderSecondary:o,actionsBg:a}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:a,borderTop:`${fe(e.lineWidth)} ${e.lineType} ${o}`,display:"flex",borderRadius:`0 0 ${fe(e.borderRadiusLG)} ${fe(e.borderRadiusLG)}`},Vc()),{"& > li":{margin:n,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), > ${r}`]:{display:"inline-block",width:"100%",color:e.colorIcon,lineHeight:fe(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${r}`]:{fontSize:i,lineHeight:fe(e.calc(i).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${fe(e.lineWidth)} ${e.lineType} ${o}`}}})},h2e=e=>Object.assign(Object.assign({margin:`${fe(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},Vc()),{"&-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},zs),"&-description":{color:e.colorTextDescription}}),v2e=e=>{const{componentCls:t,colorFillAlter:r,headerPadding:n,bodyPadding:i}=e;return{[`${t}-head`]:{padding:`0 ${fe(n)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${fe(e.padding)} ${fe(i)}`}}},g2e=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},m2e=e=>{const{componentCls:t,cardShadow:r,cardHeadPadding:n,colorBorderSecondary:i,boxShadowTertiary:o,bodyPadding:a,extraColor:s}=e;return{[t]:Object.assign(Object.assign({}
323,Kr(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:o},[`${t}-head`]:d2e(e),[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:a,borderRadius:`0 0 ${fe(e.borderRadiusLG)} ${fe(e.borderRadiusLG)}`},Vc()),[`${t}-grid`]:f2e(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${fe(e.borderRadiusLG)} ${fe(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:p2e(e),[`${t}-meta`]:h2e(e)}),[`${t}-bordered`]:{border:`${fe(e.lineWidth)} ${e.lineType} ${i}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:r}},[`${t}-contain-grid`]:{borderRadius:`${fe(e.borderRadiusLG)} ${fe(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:n}}},[`${t}-type-inner`]:v2e(e),[`${t}-loading`]:g2e(e),[`${t}-rtl`]:{direction:"rtl"}}},y2e=e=>{const{componentCls:t,bodyPaddingSM:r,headerPaddingSM:n,headerHeightSM:i,headerFontSizeSM:o}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:i,padding:`0 ${fe(n)}`,fontSize:o,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:r}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},S2e=e=>{var t,r;return{headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:(t=e.bodyPadding)!==null&&t!==void 0?t:e.paddingLG,headerPadding:(r=e.headerPadding)!==null&&r!==void 0?r:e.paddingLG}},C2e=Nr("Card",e=>{const t=sr(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[m2e(t),y2e(t)]},S2e);var p7=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const b2e=e=>{const{actionClasses:t,actions:r=[],actionStyle:n}=e;return p.createElement("ul",{className:t,style:n},r.map((i,o)=>{const a=`action-${o}`;return p.createElement("li",{style:{width:`${100/r.length}%`},key:a},p.createElement("span",null,i))}))},w2e=p.forwardRef((e,t)=>{const{prefixCls:r,className:n,rootClassName:i,style:o,extra:a,headStyle:s={},bodyStyle:l={},title:c,loading:d,bordered:u,variant:f,size:h,type:v,cover:y,actions:g,tabList:m,children:S,activeTabKey:C,defaultActiveTabKey:b,tabBarExtraContent:w,hoverable:E,tabProps:_={},classNames:R,styles:P}=e,I=p7(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","variant","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:O,direction:A,card:x}=p.useContext(Vt),[T]=Ad("card",f,u),D=Se=>{var _e;(_e=e.onTabChange)===null||_e===void 0||_e.call(e,Se)},k=Se=>{var _e;return ie((_e=x==null?void 0:x.classNames)===null||_e===void 0?void 0:_e[Se],R==null?void 0:R[Se])},j=Se=>{var _e;return Object.assign(Object.assign({},(_e=x==null?void 0:x.styles)===null||_e===void 0?void 0:_e[Se]),P==null?void 0:P[Se])},N=p.useMemo(()=>{let Se=!1;
323return p.Children.forEach(S,_e=>{(_e==null?void 0:_e.type)===Wee&&(Se=!0)}),Se},[S]),L=O("card",r),[M,$,F]=C2e(L),z=p.createElement(Cb,{loading:!0,active:!0,paragraph:{rows:4},title:!1},S),H=C!==void 0,U=Object.assign(Object.assign({},_),{[H?"activeKey":"defaultActiveKey"]:H?C:b,tabBarExtraContent:w});let V;const W=Xi(h),K=!W||W==="default"?"large":W,Z=m?p.createElement(l2e,Object.assign({size:K},U,{className:`${L}-head-tabs`,onChange:D,items:m.map(Se=>{var{tab:_e}=Se,De=p7(Se,["tab"]);return Object.assign({label:_e},De)})})):null;if(c||a||Z){const Se=ie(`${L}-head`,k("header")),_e=ie(`${L}-head-title`,k("title")),De=ie(`${L}-extra`,k("extra")),be=Object.assign(Object.assign({},s),j("header"));V=p.createElement("div",{className:Se,style:be},p.createElement("div",{className:`${L}-head-wrapper`},c&&p.createElement("div",{className:_e,style:j("title")},c),a&&p.createElement("div",{className:De,style:j("extra")},a)),Z)}const q=ie(`${L}-cover`,k("cover")),Y=y?p.createElement("div",{className:q,style:j("cover")},y):null,G=ie(`${L}-body`,k("body")),re=Object.assign(Object.assign({},l),j("body")),ee=p.createElement("div",{className:G,style:re},d?z:S),ne=ie(`${L}-actions`,k("actions")),te=g!=null&&g.length?p.createElement(b2e,{actionClasses:ne,actionStyle:j("actions"),actions:g}):null,pe=Dn(I,["onTabChange"]),le=ie(L,x==null?void 0:x.className,{[`${L}-loading`]:d,[`${L}-bordered`]:T!=="borderless",[`${L}-hoverable`]:E,[`${L}-contain-grid`]:N,[`${L}-contain-tabs`]:m==null?void 0:m.length,[`${L}-${W}`]:W,[`${L}-type-${v}`]:!!v,[`${L}-rtl`]:A==="rtl"},n,i,$,F),ye=Object.assign(Object.assign({},x==null?void 0:x.style),o);return M(p.createElement("div",Object.assign({ref:t},pe,{className:le,style:ye}),V,Y,ee,te))}),_2e=w2e;var E2e=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const R2e=e=>{const{prefixCls:t,className:r,avatar:n,title:i,description:o}=e,a=E2e(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=p.useContext(Vt),l=s("card",t),c=ie(`${l}-meta`,r),d=n?p.createElement("div",{className:`${l}-meta-avatar`},n):null,u=i?p.createElement("div",{className:`${l}-meta-title`},i):null,f=o?p.createElement("div",{className:`${l}-meta-description`},o):null,h=u||f?p.createElement("div",{className:`${l}-meta-detail`},u,f):null;return p.createElement("div",Object.assign({},a,{className:c}),d,h)},P2e=R2e,m3=_2e;m3.Grid=Wee;m3.Meta=P2e;const I2e=m3;var x2e={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 O2e(e,t,r){var n=r||{},i=n.noTrailing,o=i===void 0?!1:i,a=n.noLeading,s=a===void 0?!1:a,l=n.debounceMode,c=l===void 0?void 0:l,d,u=!1,f=0;function h(){d&&clearTimeout(d)}function v(g){var m=g||{},S=m.upcomingOnly,C=S===void 0?!1:S;h(),u=!C}function y(){for(var g=arguments.length,m=new Array(g),S=0;S<g;S++)m[S]=arguments[S];var C=this,b=Date.now()-f;if(u)return;function w(){f=Date.now(),t.apply(C,m)}function E(){d=void 0}!s&&c&&!d&&w(),h(),c===void 0&&b>e?s?(f=Date.now(),o||(d=setTimeout(c?E:w,e))):w():o!==!0&&(d=setTimeout(c?E:w,c===void 0?e-b:e))}return y.cancel=v,y}function qee(e,t,r){var n=r||{},i=n.atBegin,o=i===void 0?!1:i;return O2e(e,t,{debounceMode:o!==!1})}var S$={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(t){return de.createElement("ul",{style:{display:"block"}},t)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(t){return de.createElement("button",null,t+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 C$(e,t,r){return Math.max(t,Math.min(e,r))}var np=function(t){var r=["onTouchStart","onTouchMove","onWheel"];r.includes(t._reactName)||t.preventDefault()},Rb=function(t){for(var r=[],n=Gee(t),i=Kee(t),o=n;o<i;o++)t.lazyLoadedList.indexOf(o)<0&&r.push(o);return r},Gee=function(t){return t.currentSlide-T2e(t)},Kee=function(t){return t.currentSlide+A2e(t)},T2e=function(t){return t.centerMode?Math.floor(t.slidesToShow/2)+(p
vendor: 10,687 bytes, line 323
323arseInt(t.centerPadding)>0?1:0):0},A2e=function(t){return t.centerMode?Math.floor((t.slidesToShow-1)/2)+1+(parseInt(t.centerPadding)>0?1:0):t.slidesToShow},b$=function(t){return t&&t.offsetWidth||0},y3=function(t){return t&&t.offsetHeight||0},Yee=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n,i,o,a;return n=t.startX-t.curX,i=t.startY-t.curY,o=Math.atan2(i,n),a=Math.round(o*180/Math.PI),a<0&&(a=360-Math.abs(a)),a<=45&&a>=0||a<=360&&a>=315?"left":a>=135&&a<=225?"right":r===!0?a>=35&&a<=135?"up":"down":"vertical"},F_=function(t){var r=!0;return t.infinite||(t.centerMode&&t.currentSlide>=t.slideCount-1||t.slideCount<=t.slidesToShow||t.currentSlide>=t.slideCount-t.slidesToShow)&&(r=!1),r},mI=function(t,r){var n={};return r.forEach(function(i){return n[i]=t[i]}),n},M2e=function(t){var r=de.Children.count(t.children),n=t.listRef,i=Math.ceil(b$(n)),o=t.trackRef&&t.trackRef.node,a=Math.ceil(b$(o)),s;if(t.vertical)s=i;else{var l=t.centerMode&&parseInt(t.centerPadding)*2;typeof t.centerPadding=="string"&&t.centerPadding.slice(-1)==="%"&&(l*=i/100),s=Math.ceil((i-l)/t.slidesToShow)}var c=n&&y3(n.querySelector('[data-index="0"]')),d=c*t.slidesToShow,u=t.currentSlide===void 0?t.initialSlide:t.currentSlide;t.rtl&&t.currentSlide===void 0&&(u=r-1-t.initialSlide);var f=t.lazyLoadedList||[],h=Rb(Q(Q({},t),{},{currentSlide:u,lazyLoadedList:f}));f=f.concat(h);var v={slideCount:r,slideWidth:s,listWidth:i,trackWidth:a,currentSlide:u,slideHeight:c,listHeight:d,lazyLoadedList:f};return t.autoplaying===null&&t.autoplay&&(v.autoplaying="playing"),v},$2e=function(t){var r=t.waitForAnimate,n=t.animating,i=t.fade,o=t.infinite,a=t.index,s=t.slideCount,l=t.lazyLoad,c=t.currentSlide,d=t.centerMode,u=t.slidesToScroll,f=t.slidesToShow,h=t.useCSS,v=t.lazyLoadedList;if(r&&n)return{};var y=a,g,m,S,C={},b={},w=o?a:C$(a,0,s-1);if(i){if(!o&&(a<0||a>=s))return{};a<0?y=a+s:a>=s&&(y=a-s),l&&v.indexOf(y)<0&&(v=v.concat(y)),C={animating:!0,currentSlide:y,lazyLoadedList:v,targetSlide:y},b={animating:!1,targetSlide:y}}else g=y,y<0?(g=y+s,o?s%u!==0&&(g=s-s%u):g=0):!F_(t)&&y>c?y=g=c:d&&y>=s?(y=o?s:s-1,g=o?0:s-1):y>=s&&(g=y-s,o?s%u!==0&&(g=0):g=s-f),!o&&y+f>=s&&(g=s-f),m=dy(Q(Q({},t),{},{slideIndex:y})),S=dy(Q(Q({},t),{},{slideIndex:g})),o||(m===S&&(y=g),m=S),l&&(v=v.concat(Rb(Q(Q({},t),{},{currentSlide:y})))),h?(C={animating:!0,currentSlide:g,trackStyle:Xee(Q(Q({},t),{},{left:m})),lazyLoadedList:v,targetSlide:w},b={animating:!1,currentSlide:g,trackStyle:uy(Q(Q({},t),{},{left:S})),swipeLeft:null,targetSlide:w}):C={currentSlide:g,trackStyle:uy(Q(Q({},t),{},{left:S})),lazyLoadedList:v,targetSlide:w};return{state:C,nextState:b}},k2e=function(t,r){var n,i,o,a,s,l=t.slidesToScroll,c=t.slidesToShow,d=t.slideCount,u=t.currentSlide,f=t.targetSlide,h=t.lazyLoad,v=t.infinite;if(a=d%l!==0,n=a?0:(d-u)%l,r.message==="previous")o=n===0?l:c-n,s=u-o,h&&!v&&(i=u-o,s=i===-1?d-1:i),v||(s=f-l);else if(r.message==="next")o=n===0?l:n,s=u+o,h&&!v&&(s=(u+l)%d+n),v||(s=f+l);else if(r.message==="dots")s=r.index*r.slidesToScroll;else if(r.message==="children"){if(s=r.index,v){var y=B2e(Q(Q({},t),{},{targetSlide:s}));s>r.currentSlide&&y==="left"?s=s-d:s<r.currentSlide&&y==="right"&&(s=s+d)}}else r.message==="index"&&(s=Number(r.index));return s},N2e=function(t,r,n){return t.target.tagName.match("TEXTAREA|INPUT|SELECT")||!r?"":t.keyCode===37?n?"next":"previous":t.keyCode===39?n?"previous":"next":""},D2e=function(t,r,n){return t.target.tagName==="IMG"&&np(t),!r||!n&&t.type.indexOf("mouse")!==-1?"":{dragging:!0,touchObject:{startX:t.touches?t.touches[0].pageX:t.clientX,startY:t.touches?t.touches[0].pageY:t.clientY,curX:t.touches?t.touches[0].pageX:t.clientX,curY:t.touches?t.touches[0].pageY:t.clientY}}},L2e=function(t,r){var n=r.scrolling,i=r.animating,o=r.vertical,a=r.swipeToSlide,s=r.verticalSwiping,l=r.rtl,c=r.currentSlide,d=r.edgeFriction,u=r.edgeDragged,f=r.onEdge,h=r.swiped,v=r.swiping,y=r.slideCount,g=r.slidesToScroll,m=r.infinite,S=r.touchObject,C=r.swipeEvent,b=r.listHeight,w=r.listWidth;if(!n){if(i)return np(t);o&&a&&s&&np(t);var E,_={},R=dy(r);S.curX=t.touches?t.touches[0].pageX:t.clientX,S.curY=t.touches?t.touches[0].pageY:t.clientY,S.swipeLength=Math.round(Math.sqrt(Math.pow(S.curX-S.startX,2)));var P=Math.round(Math.sqrt(Math.pow(S.curY-S.startY,2)));if(!s&&!v&&P>10)return{scrolling:!0};s&&(S.swipeLength=P);var I=(l?-1:1)*(S.curX>S.startX?1:-1);s&&(I=S.curY>S.startY?1:-1);var O=Math.ceil(y/g),A=Yee(r.touchObject,s),x=S.swipeLength;return m||(c===0&&(A==="right"||A==="down")||c+1>=O&&(A==="left"||A==="up")||!F_(r)&&(A==="left"||A==="up"))&&(x=S.swipeLength*d,u===!1&&f&&(f(A),_.edgeDragged=!0)),!h&&C&&(C(A),_.swiped=!0),o?E=R+x*(b/w)*I:l?E=R-x*I:E=R+x*I,s&&(E=R+x*I),_=Q(Q({},_),{},{touchObject:S,swipeLeft:E,trackStyle:uy(Q(Q({},r),{},{left:E}))}),Math.abs(S.curX-S.startX)<Math.abs(S.curY-S.startY)*.8||S.swipeLength>10&&(_.swiping=!0,np(t)),_}},j2e=function(t,r){var n=r.dragging,i=r.swipe,o=r.touchObject,a=r.listWidth,s=r.touchThreshold,l=r.verticalSwiping,c=r.listHeight,d=r.swipeToSlide,u=r.scrolling,f=r.onSwipe,h=r.targetSlide,v=r.currentSlide,y=r.infinite;if(!n)return i&&np(t),{};var g=l?c/s:a/s,m=Yee(o,l),S={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(u||!o.swipeLength)return S;if(o.swipeLength>g){np(t),f&&f(m);var C,b,w=y?v:h;switch(m){case"left":case"up":b=w+v7(r),C=d?h7(r,b):b,S.currentDirection=0;break;case"right":case"down":b=w-v7(r),C=d?h7(r,b):b,S.currentDirection=1;break;default:C=w}S.triggerSlideHandler=C}else{var E=dy(r);S.trackStyle=Xee(Q(Q({},r),{},{left:E}))}return S},F2e=function(t){for(var r=t.infinite?t.slideCount*2:t.slideCount,n=t.infinite?t.slidesToShow*-1:0,i=t.infinite?t.slidesToShow*-1:0,o=[];n<r;)o.push(n),n=i+t.slidesToScroll,i+=Math.min(t.slidesToScroll,t.slidesToShow);return o},h7=function(t,r){var n=F2e(t),i=0;if(r>n[n.length-1])r=n[n.length-1];else for(var o in n){if(r<n[o]){r=i;break}i=n[o]}return r},v7=function(t){var r=t.centerMode?t.slideWidth*Math.floor(t.slidesToShow/2):0;if(t.swipeToSlide){var n,i=t.listRef,o=i.querySelectorAll&&i.querySelectorAll(".slick-slide")||[];if(Array.from(o).every(function(l){if(t.vertical){if(l.offsetTop+y3(l)/2>t.swipeLeft*-1)return n=l,!1}else if(l.offsetLeft-r+b$(l)/2>t.swipeLeft*-1)return n=l,!1;return!0}),!n)return 0;var a=t.rtl===!0?t.slideCount-t.currentSlide:t.currentSlide,s=Math.abs(n.dataset.index-a)||1;return s}else return t.slidesToScroll},S3=function(t,r){return r.reduce(function(n,i){return n&&t.hasOwnProperty(i)},!0)?null:void 0},uy=function(t){S3(t,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var r,n;if(!t.vertical)r=z2e(t)*t.slideWidth;else{var i=t.unslick?t.slideCount:t.slideCount+2*t.slidesToShow;n=i*t.slideHeight}var o={opacity:1,transition:"",WebkitTransition:""};if(t.useTransform){var a=t.vertical?"translate3d(0px, "+t.left+"px, 0px)":"translate3d("+t.left+"px, 0px, 0px)",s=t.vertical?"translate3d(0px, "+t.left+"px, 0px)":"translate3d("+t.left+"px, 0px, 0px)",l=t.vertical?"translateY("+t.left+"px)":"translateX("+t.left+"px)";o=Q(Q({},o),{},{WebkitTransform:a,transform:s,msTransform:l})}else t.vertical?o.top=t.left:o.left=t.left;return t.fade&&(o={opacity:1}),r&&(o.width=r),n&&(o.height=n),window&&!window.addEventListener&&window.attachEvent&&(t.vertical?o.marginTop=t.left+"px":o.marginLeft=t.left+"px"),o},Xee=function(t){S3(t,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var r=uy(t);return t.useTransform?(r.WebkitTransition="-webkit-transform "+t.speed+"ms "+t.cssEase,r.transition="transform "+t.speed+"ms "+t.cssEase):t.vertical?r.transition="top "+t.speed+"ms "+t.cssEase:r.transition="left "+t.speed+"ms "+t.cssEase,r},dy=function(t){if(t.unslick)return 0;S3(t,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var r=t.slideIndex,n=t.trackRef,i=t.infinite,o=t.centerMode,a=t.slideCount,s=t.slidesToShow,l=t.slidesToScroll,c=t.slideWidth,d=t.listWidth,u=t.variableWidth,f=t.slideHeight,h=t.fade,v=t.vertical,y=0,g,m,S=0;if(h||t.slideCount===1)return 0;var C=0;if(i?(C=-cl(t),a%l!==0&&r+l>a&&(C=-(r>a?s-(r-a):a%l)),o&&(C+=parseInt(s/2))):(a%l!==0&&r+l>a&&(C=s-a%l),o&&(C=parseInt(s/2))),y=C*c,S=C*f,v?g=r*f*-1+S:g=r*c*-1+y,u===!0){var b,w=n&&n.node;if(b=r+cl(t),m=w&&w.childNodes[b],g=m?m.offsetLeft*-1:0,o===!0){b=i?r+cl(t):r,m=w&&w.children[b],g=0;for(var E=0;E<b;E++)g-=w&&w.children[E]&&w.children[E].offsetWidth;g-=parseInt(t.centerPadding),g+=m&&(d-m.offsetWidth)/2}}return g},cl=function(t){return t.unslick||!t.infinite?0:t.variableWidth?t.slideCount:t.slidesToShow+(t.centerMode?1:0)},gC=function(t){return t.unslick||!t.infinite?0:t.slideCount},z2e=function(t){return t.slideCount===1?1:cl(t)+t.slideCount+gC(t)},B2e=function(t){return t.targetSlide>t.currentSlide?t.targetSlide>t.currentSlide+H2e(t)?"left":"right":t.targetSlide<t.currentSlide-V2e(t)?"right":"left"},H2e=function(t){var r=t.slidesToShow,n=t.centerMode,i=t.rtl,o=t.centerPadding;if(n){var a=(r-1)/2+1;return parseInt(o)>0&&(a+=1),i&&r%2===0&&(a+=1),a}return i?0:r-1},V2e=function(t){var r=t.slidesToShow,n=t.centerMode,i=t.rtl,o=t.centerPadding;if(n){var a=(r-1)/2+1;return parseInt(o)>0&&(a+=1),!i&&r%2===0&&(a+=1),a}return i?r-1:0},g7=function(){return!!(typeof window<"u"&&window.document&&window.document.createElement)},U2e=Object.keys(S$);function W2e(e){return U2e.reduce(function(t,r){return e.hasOwnProperty(r)&&(t[r]=e[r]),t},{})}function q2e(e,t,r){return t=Ri(t),xd(e,Ol()?Reflect.construct(t,r||[],Ri(e).constructor):t.apply(e,r))}var yI=function(t){var r,n,i,o,a;t.rtl?a=t.slideCount-1-t.index:a=t.index,i=a<0||a>=t.slideCount,t.centerMode?(o=Math.floor(t.slidesToShow/2),n=(a-t.currentSlide)%t.slideCount===0,a>t.currentSlide-o-1&&a<=t.currentSlide+o&&(r=!0)):r=t.currentSlide<=a&&a<t.currentSlide+t.slidesToShow;var s;t.targetSlide<0?s=t.targetSlide+t.slideCount:t.targetSlide>=t.slideCount?s=t.targetSlide-t.slideCount:s=t.targetSlide;var l=a===s;return{"slick-slide":!0,"slick-active":r,"slick-center":n,"slick-cloned":i,"slick-current":l}},G2e=function(t){var r={};return(t.variableWidth===void 0||t.variableWidth===!1)&&(r.width=t.slideWidth),t.fade&&(r.position="relative",t.vertical&&t.slideHeight?r.top=-t.index*parseInt(t.slideHeight):r.left=-t.index*parseInt(t.slideWidth),r.opacity=t.currentSlide===t.index?1:0,r.zIndex=t.currentSlide===t.index?999:998,t.useCSS&&(r.transition="opacity "+t.speed+"ms "+t.cssEase+", visibility "+t.speed+"ms "+t.cssEase)),r},SI=function(t,r){return t.key+"-"+r},K2e=function(t){var r,n=[],i=[],o=[],a=de.Children.count(t.children),s=Gee(t),l=Kee(t);
323return de.Children.forEach(t.children,function(c,d){var u,f={message:"children",index:d,slidesToScroll:t.slidesToScroll,currentSlide:t.currentSlide};!t.lazyLoad||t.lazyLoad&&t.lazyLoadedList.indexOf(d)>=0?u=c:u=de.createElement("div",null);var h=G2e(Q(Q({},t),{},{index:d})),v=u.props.className||"",y=yI(Q(Q({},t),{},{index:d}));if(n.push(de.cloneElement(u,{key:"original"+SI(u,d),"data-index":d,className:ie(y,v),tabIndex:"-1","aria-hidden":!y["slick-active"],style:Q(Q({outline:"none"},u.props.style||{}),h),onClick:function(S){u.props&&u.props.onClick&&u.props.onClick(S),t.focusOnSelect&&t.focusOnSelect(f)}})),t.infinite&&a>1&&t.fade===!1&&!t.unslick){var g=a-d;g<=cl(t)&&(r=-g,r>=s&&(u=c),y=yI(Q(Q({},t),{},{index:r})),i.push(de.cloneElement(u,{key:"precloned"+SI(u,r),"data-index":r,tabIndex:"-1",className:ie(y,v),"aria-hidden":!y["slick-active"],style:Q(Q({},u.props.style||{}),h),onClick:function(S){u.props&&u.props.onClick&&u.props.onClick(S),t.focusOnSelect&&t.focusOnSelect(f)}}))),r=a+d,r<l&&(u=c),y=yI(Q(Q({},t),{},{index:r})),o.push(de.cloneElement(u,{key:"postcloned"+SI(u,r),"data-index":r,tabIndex:"-1",className:ie(y,v),"aria-hidden":!y["slick-active"],style:Q(Q({},u.props.style||{}),h),onClick:function(S){u.props&&u.props.onClick&&u.props.onClick(S),t.focusOnSelect&&t.focusOnSelect(f)}}))}}),t.rtl?i.concat(n,o).reverse():i.concat(n,o)},Y2e=function(e){function t(){var r;zr(this,t);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return r=q2e(this,t,[].concat(i)),J(r,"node",null),J(r,"handleRef",function(a){r.node=a}),r}return di(t,e),Br(t,[{key:"render",value:function(){var n=K2e(this.props),i=this.props,o=i.onMouseEnter,a=i.onMouseOver,s=i.onMouseLeave,l={onMouseEnter:o,onMouseOver:a,onMouseLeave:s};return de.createElement("div",$e({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},l),n)}}])}(de.PureComponent);function X2e(e,t,r){return t=Ri(t),xd(e,Ol()?Reflect.construct(t,r||[],Ri(e).constructor):t.apply(e,r))}var Q2e=function(t){var r;return t.infinite?r=Math.ceil(t.slideCount/t.slidesToScroll):r=Math.ceil((t.slideCount-t.slidesToShow)/t.slidesToScroll)+1,r},J2e=function(e){function t(){return zr(this,t),X2e(this,t,arguments)}return di(t,e),Br(t,[{key:"clickHandler",value:function(n,i){i.preventDefault(),this.props.clickHandler(n)}},{key:"render",value:function(){for(var n=this.props,i=n.onMouseEnter,o=n.onMouseOver,a=n.onMouseLeave,s=n.infinite,l=n.slidesToScroll,c=n.slidesToShow,d=n.slideCount,u=n.currentSlide,f=Q2e({slideCount:d,slidesToScroll:l,slidesToShow:c,infinite:s}),h={onMouseEnter:i,onMouseOver:o,onMouseLeave:a},v=[],y=0;y<f;y++){var g=(y+1)*l-1,m=s?g:C$(g,0,d-1),S=m-(l-1),C=s?S:C$(S,0,d-1),b=ie({"slick-active":s?u>=C&&u<=m:u===C}),w={message:"dots",index:y,slidesToScroll:l,currentSlide:u},E=this.clickHandler.bind(this,w);v=v.concat(de.createElement("li",{key:y,className:b},de.cloneElement(this.props.customPaging(y),{onClick:E})))}return de.cloneElement(this.props.appendDots(v),Q({className:this.props.dotsClass},h))}}])}(de.PureComponent);function Qee(e,t,r){return t=Ri(t),xd(e,Ol()?Reflect.construct(t,r||[],Ri(e).constructor):t.apply(e,r))}var Z2e=function(e){function t(){return zr(this,t),Qee(this,t,arguments)}return di(t,e),Br(t,[{key:"clickHandler",value:function(n,i){i&&i.preventDefault(),this.props.clickHandler(n,i)}},{key:"render",value:function(){var n={"slick-arrow":!0,"slick-prev":!0},i=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(this.props.currentSlide===0||this.props.slideCount<=this.props.slidesToShow)&&(n["slick-disabled"]=!0,i=null);var o={key:"0","data-role":"none",className:ie(n),style:{display:"block"},onClick:i},a={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},s;return this.props.prevArrow?s=de.cloneElement(this.props.prevArrow,Q(Q({},o),a)):s=de.createElement("button",$e({key:"0",type:"button"},o)," ","Previous"),s}}])}(de.PureComponent),exe=function(e){function t(){return zr(this,t),Qee(this,t,arguments)}return di(t,e),Br(t,[{key:"clickHandler",value:function(n,i){i&&i.preventDefault(),this.props.clickHandler(n,i)}},{key:"render",value:function(){var n={"slick-arrow":!0,"slick-next":!0},i=this.clickHandler.bind(this,{message:"next"});F_(this.props)||(n["slick-disabled"]=!0,i=null);var o={key:"1","data-role":"none",className:ie(n),style:{display:"block"},onClick:i},a={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},s;return this.props.nextArrow?s=de.cloneElement(this.props.nextArrow,Q(Q({},o),a)):s=de.createElement("button",$e({key:"1",type:"button"},o)," ","Next"),s}}])}(de.PureComponent),txe=["animating"];function rxe(e,t,r){return t=Ri(t),xd(e,Ol()?Reflect.construct(t,r||[],Ri(e).constructor):t.apply(e,r))}var nxe=function(e){function t(r){var n;zr(this,t),n=rxe(this,t,[r]),J(n,"listRefHandler",function(o){return n.list=o}),J(n,"trackRefHandler",function(o){return n.track=o}),J(n,"adaptHeight",function(){if(n.props.adaptiveHeight&&n.list){var o=n.list.querySelector('[data-index="'.concat(n.state.currentSlide,'"]'));n.list.style.height=y3(o)+"px"}}),J(n,"componentDidMount",function(){if(n.props.onInit&&n.props.onInit(),n.props.lazyLoad){var o=Rb(Q(Q({},n.props),n.state));o.length>0&&(n.setState(function(s){return{lazyLoadedList:s.lazyLoadedList.concat(o)}}),n.props.onLazyLoad&&n.props.onLazyLoad(o))}var a=Q({listRef:n.list,trackRef:n.track},n.props);n.updateState(a,!0,function(){n.adaptHeight(),n.props.autoplay&&n.autoPlay("playing")}),n.props.lazyLoad==="progressive"&&(n.lazyLoadTimer=setInterval(n.progressiveLazyLoad,1e3)),n.ro=new DX(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(s){s.onfocus=n.props.pauseOnFocus?n.onSlideFocus:null,
323s.onblur=n.props.pauseOnFocus?n.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",n.onWindowResized):window.attachEvent("onresize",n.onWindowResized)}),J(n,"componentWillUnmount",function(){n.animationEndCallback&&clearTimeout(n.animationEndCallback),n.lazyLoadTimer&&clearInterval(n.lazyLoadTimer),n.callbackTimers.length&&(n.callbackTimers.forEach(function(o){return clearTimeout(o)}),n.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",n.onWindowResized):window.detachEvent("onresize",n.onWindowResized),n.autoplayTimer&&clearInterval(n.autoplayTimer),n.ro.disconnect()}),J(n,"componentDidUpdate",function(o){if(n.checkImagesLoad(),n.props.onReInit&&n.props.onReInit(),n.props.lazyLoad){var a=Rb(Q(Q({},n.props),n.state));a.length>0&&(n.setState(function(c){return{lazyLoadedList:c.lazyLoadedList.concat(a)}}),n.props.onLazyLoad&&n.props.onLazyLoad(a))}n.adaptHeight();var s=Q(Q({listRef:n.list,trackRef:n.track},n.props),n.state),l=n.didPropsChange(o);l&&n.updateState(s,l,function(){n.state.currentSlide>=de.Children.count(n.props.children)&&n.changeSlide({message:"index",index:de.Children.count(n.props.children)-n.props.slidesToShow,currentSlide:n.state.currentSlide}),(o.autoplay!==n.props.autoplay||o.autoplaySpeed!==n.props.autoplaySpeed)&&(!o.autoplay&&n.props.autoplay?n.autoPlay("playing"):n.props.autoplay?n.autoPlay("update"):n.pause("paused"))})}),J(n,"onWindowResized",function(o){n.debouncedResize&&n.debouncedResize.cancel(),n.debouncedResize=qee(50,function(){return n.resizeWindow(o)}),n.debouncedResize()}),J(n,"resizeWindow",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,a=!!(n.track&&n.track.node);if(a){var s=Q(Q({listRef:n.list,trackRef:n.track},n.props),n.state);n.updateState(s,o,function(){n.props.autoplay?n.autoPlay("update"):n.pause("paused")}),n.setState({animating:!1}),clearTimeout(n.animationEndCallback),delete n.animationEndCallback}}),J(n,"updateState",function(o,a,s){var l=M2e(o);o=Q(Q(Q({},o),l),{},{slideIndex:l.currentSlide});var c=dy(o);o=Q(Q({},o),{},{left:c});var d=uy(o);(a||de.Children.count(n.props.children)!==de.Children.count(o.children))&&(l.trackStyle=d),n.setState(l,s)}),J(n,"ssrInit",function(){if(n.props.variableWidth){var o=0,a=0,s=[],l=cl(Q(Q(Q({},n.props),n.state),{},{slideCount:n.props.children.length})),c=gC(Q(Q(Q({},n.props),n.state),{},{slideCount:n.props.children.length}));n.props.children.forEach(function(E){s.push(E.props.style.width),o+=E.props.style.width});for(var d=0;d<l;d++)a+=s[s.length-1-d],o+=s[s.length-1-d];for(var u=0;u<c;u++)o+=s[u];for(var f=0;f<n.state.currentSlide;f++)a+=s[f];var h={width:o+"px",left:-a+"px"};if(n.props.centerMode){var v="".concat(s[n.state.currentSlide],"px");h.left="calc(".concat(h.left," + (100% - ").concat(v,") / 2 ) ")}return{trackStyle:h}}var y=de.Children.count(n.props.children),g=Q(Q(Q({},n.props),n.state),{},{slideCount:y}),m=cl(g)+gC(g)+y,S=100/n.props.slidesToShow*m,C=100/m,b=-C*(cl(g)+n.state.currentSlide)*S/100;n.props.centerMode&&(b+=(100-C*S/100)/2);var w={width:S+"%",left:b+"%"};return{slideWidth:C+"%",trackStyle:w}}),J(n,"checkImagesLoad",function(){var o=n.list&&n.list.querySelectorAll&&n.list.querySelectorAll(".slick-slide img")||[],a=o.length,s=0;Array.prototype.forEach.call(o,function(l){var c=function(){return++s&&s>=a&&n.onWindowResized()};if(!l.onclick)l.onclick=function(){return l.parentNode.focus()};else{var d=l.onclick;l.onclick=function(u){d(u),l.parentNode.focus()}}l.onload||(n.props.lazyLoad?l.onload=function(){n.adaptHeight(),n.callbackTimers.push(setTimeout(n.onWindowResized,n.props.speed))}:(l.onload=c,l.onerror=function(){c(),n.props.onLazyLoadError&&n.props.onLazyLoadError()}))})}),J(n,"progressiveLazyLoad",function(){for(var o=[],a=Q(Q({},n.props),n.state),s=n.state.currentSlide;s<n.state.slideCount+gC(a);s++)if(n.state.lazyLoadedList.indexOf(s)<0){o.push(s);break}for(var l=n.state.currentSlide-1;l>=-cl(a);l--)if(n.state.lazyLoadedList.indexOf(l)<0){o.push(l);break}o.length>0?(n.setState(function(c){return{lazyLoadedList:c.lazyLoadedList.concat(o)}}),n.props.onLazyLoad&&n.props.onLazyLoad(o)):n.lazyLoadTimer&&(clearInterval(n.lazyLoadTimer),delete n.lazyLoadTimer)}),J(n,"slideHandler",function(o){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s=n.props,l=s.asNavFor,c=s.beforeChange,d=s.onLazyLoad,u=s.speed,f=s.afterChange,h=n.state.currentSlide,v=$2e(Q(Q(Q({index:o},n.props),n.state),{},{trackRef:n.track,useCSS:n.props.useCSS&&!a})),y=v.state,g=v.nextState;if(y){c&&c(h,y.currentSlide);var m=y.lazyLoadedList.filter(function(S){return n.state.lazyLoadedList.indexOf(S)<0});d&&m.length>0&&d(m),!n.props.waitForAnimate&&n.animationEndCallback&&(clearTimeout(n.animationEndCallback),f&&f(h),delete n.animationEndCallback),n.setState(y,function(){l&&n.asNavForIndex!==o&&(n.asNavForIndex=o,l.innerSlider.slideHandler(o)),g&&(n.animationEndCallback=setTimeout(function(){var S=g.animating,C=Nt(g,txe);n.setState(C,function(){n.callbackTimers.push(setTimeout(function(){return n.setState({animating:S})},10)),f&&f(y.currentSlide),delete n.animationEndCallback})},u))})}}),J(n,"changeSlide",function(o){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s=Q(Q({},n.props),n.state),l=k2e(s,o);if(!(l!==0&&!l)&&(a===!0?n.slideHandler(l,a):n.slideHandler(l),n.props.autoplay&&n.autoPlay("update"),n.props.focusOnSelect)){var c=n.list.querySelectorAll(".slick-current");c[0]&&c[0].focus()}}),J(n,"clickHandler",function(o){n.clickable===!1&&(o.stopPropagation(),o.preventDefault()),n.clickable=!0}),J(n,"keyHandler",function(o){var a=N2e(o,n.props.accessibility,n.props.rtl);a!==""&&n.changeSlide({message:a})}),J(n,"selectHandler",function(o){n.changeSlide(o)}),J(n,"disableBodyScroll",function(){var o=function(s){s=s||window.event,s.preventDefault&&s.preventDefault(),s.returnValue=!1};window.ontouchmove=o}),J(n,"enableBodyScroll",function(){window.ontouchmove=null}),J(n,"swipeStart",function(o){n.props.verticalSwiping&&n.disableBodyScroll();var a=D2e(o,n.props.swipe,n.props.draggable);a!==""&&n.setState(a)}),J(n,"swipeMove",function(o){var a=L2e(o,Q(Q(Q({},n.props),n.state),{},{trackRef:n.track,listRef:n.list,slideIndex:n.state.currentSlide}));a&&(a.swiping&&(n.clickable=!1),n.setState(a))}),J(n,"swipeEnd",function(o){var a=j2e(o,Q(Q(Q({},n.props),n.state),{},{trackRef:n.track,listRef:n.list,slideIndex:n.state.currentSlide}));if(a){var s=a.triggerSlideHandler;delete a.triggerSlideHandler,n.setState(a),s!==void 0&&(n.slideHandler(s),n.props.verticalSwiping&&n.enableBodyScroll())}}),J(n,"touchEnd",function(o){n.swipeEnd(o),n.clickable=!0}),J(n,"slickPrev",function(){n.callbackTimers.push(setTimeout(function(){return n.changeSlide({message:"previous"})},0))}),J(n,"slickNext",function(){n.callbackTimers.push(setTimeout(function(){return n.changeSlide({message:"next"})},0))}),J(n,"slickGoTo",function(o){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(o=Number(o),isNaN(o))return"";n.callbackTimers.push(setTimeout(function(){return n.changeSlide({message:"index",index:o,currentSlide:n.state.currentSlide},a)},0))}),J(n,"play",function(){var o;if(n.props.rtl)o=n.state.currentSlide-n.props.slidesToScroll;else if(F_(Q(Q({},n.props),n.state)))o=n.state.currentSlide+n.props.slidesToScroll;else return!1;n.slideHandler(o)}),J(n,"autoPlay",function(o){n.autoplayTimer&&clearInterval(n.autoplayTimer);var a=n.state.autoplaying;if(o==="update"){if(a==="hovered"||a==="focused"||a==="paused")return}else if(o==="leave"){if(a==="paused"||a==="focused")return}else if(o==="blur"&&(a==="paused"||a==="hovered"))return;n.autoplayTimer=setInterval(n.play,n.props.autoplaySpeed+50),n.setState({auto
323playing:"playing"})}),J(n,"pause",function(o){n.autoplayTimer&&(clearInterval(n.autoplayTimer),n.autoplayTimer=null);var a=n.state.autoplaying;o==="paused"?n.setState({autoplaying:"paused"}):o==="focused"?(a==="hovered"||a==="playing")&&n.setState({autoplaying:"focused"}):a==="playing"&&n.setState({autoplaying:"hovered"})}),J(n,"onDotsOver",function(){return n.props.autoplay&&n.pause("hovered")}),J(n,"onDotsLeave",function(){return n.props.autoplay&&n.state.autoplaying==="hovered"&&n.autoPlay("leave")}),J(n,"onTrackOver",function(){return n.props.autoplay&&n.pause("hovered")}),J(n,"onTrackLeave",function(){return n.props.autoplay&&n.state.autoplaying==="hovered"&&n.autoPlay("leave")}),J(n,"onSlideFocus",function(){return n.props.autoplay&&n.pause("focused")}),J(n,"onSlideBlur",function(){return n.props.autoplay&&n.state.autoplaying==="focused"&&n.autoPlay("blur")}),J(n,"render",function(){var o=ie("slick-slider",n.props.className,{"slick-vertical":n.props.vertical,"slick-initialized":!0}),a=Q(Q({},n.props),n.state),s=mI(a,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),l=n.props.pauseOnHover;s=Q(Q({},s),{},{onMouseEnter:l?n.onTrackOver:null,onMouseLeave:l?n.onTrackLeave:null,onMouseOver:l?n.onTrackOver:null,focusOnSelect:n.props.focusOnSelect&&n.clickable?n.selectHandler:null});var c;if(n.props.dots===!0&&n.state.slideCount>=n.props.slidesToShow){var d=mI(a,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),u=n.props.pauseOnDotsHover;d=Q(Q({},d),{},{clickHandler:n.changeSlide,onMouseEnter:u?n.onDotsLeave:null,onMouseOver:u?n.onDotsOver:null,onMouseLeave:u?n.onDotsLeave:null}),c=de.createElement(J2e,d)}var f,h,v=mI(a,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);v.clickHandler=n.changeSlide,n.props.arrows&&(f=de.createElement(Z2e,v),h=de.createElement(exe,v));var y=null;n.props.vertical&&(y={height:n.state.listHeight});var g=null;n.props.vertical===!1?n.props.centerMode===!0&&(g={padding:"0px "+n.props.centerPadding}):n.props.centerMode===!0&&(g={padding:n.props.centerPadding+" 0px"});var m=Q(Q({},y),g),S=n.props.touchMove,C={className:"slick-list",style:m,onClick:n.clickHandler,onMouseDown:S?n.swipeStart:null,onMouseMove:n.state.dragging&&S?n.swipeMove:null,onMouseUp:S?n.swipeEnd:null,onMouseLeave:n.state.dragging&&S?n.swipeEnd:null,onTouchStart:S?n.swipeStart:null,onTouchMove:n.state.dragging&&S?n.swipeMove:null,onTouchEnd:S?n.touchEnd:null,onTouchCancel:n.state.dragging&&S?n.swipeEnd:null,onKeyDown:n.props.accessibility?n.keyHandler:null},b={className:o,dir:"ltr",style:n.props.style};return n.props.unslick&&(C={className:"slick-list"},b={className:o,style:n.props.style}),de.createElement("div",b,n.props.unslick?"":f,de.createElement("div",$e({ref:n.listRefHandler},C),de.createElement(Y2e,$e({ref:n.trackRefHandler},s),n.props.children)),n.props.unslick?"":h,n.props.unslick?"":c)}),n.list=null,n.track=null,n.state=Q(Q({},x2e),{},{currentSlide:n.props.initialSlide,targetSlide:n.props.initialSlide?n.props.initialSlide:0,slideCount:de.Children.count(n.props.children)}),n.callbackTimers=[],n.clickable=!0,n.debouncedResize=null;var i=n.ssrInit();return n.state=Q(Q({},n.state),i),n}return di(t,e),Br(t,[{key:"didPropsChange",value:function(n){for(var i=!1,o=0,a=Object.keys(this.props);o<a.length;o++){var s=a[o];if(!n.hasOwnProperty(s)){i=!0;break}if(!(Pt(n[s])==="object"||typeof n[s]=="function"||isNaN(n[s]))&&n[s]!==this.props[s]){i=!0;break}}return i||de.Children.count(this.props.children)!==de.Children.count(n.children)}}])}(de.Component),ixe=function(e){return e.replace(/[A-Z]/g,function(t){return"-"+t.toLowerCase()}).toLowerCase()},oxe=ixe,axe=oxe,sxe=function(e){var t=/[height|width]$/;return t.test(e)},m7=function(e){var t="",r=Object.keys(e);return r.forEach(function(n,i){var o=e[n];n=axe(n),sxe(n)&&typeof o=="number"&&(o=o+"px"),o===!0?t+=n:o===!1?t+="not "+n:t+="("+n+": "+o+")",i<r.length-1&&(t+=" and ")}),t},lxe=function(e){var t="";return typeof e=="string"?e:e instanceof Array?(e.forEach(function(r,n){t+=m7(r),n<e.length-1&&(t+=", ")}),t):m7(e)},cxe=lxe;const CI=Mo(cxe);function uxe(e,t,r){return t=Ri(t),xd(e,Ol()?Reflect.construct(t,r||[],Ri(e).constructor):t.apply(e,r))}var dxe=function(e){function t(r){var n;return zr(this,t),n=uxe(this,t,[r]),J(n,"innerSliderRefHandler",function(i){return n.innerSlider=i}),J(n,"slickPrev",function(){return n.innerSlider.slickPrev()}),J(n,"slickNext",function(){return n.innerSlider.slickNext()}),J(n,"slickGoTo",function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return n.innerSlider.slickGoTo(i,o)}),J(n,"slickPause",function(){return n.innerSlider.pause("paused")}),J(n,"slickPlay",function(){return n.innerSlider.autoPlay("play")}),n.state={breakpoint:null},n._responsiveMediaHandlers=[],n}return di(t,e),Br(t,[{key:"media",value:function(n,i){var o=window.matchMedia(n),a=function(l){var c=l.matches;c&&i()};o.addListener(a),a(o),this._responsiveMediaHandlers.push({mql:o,query:n,listener:a})}},{key:"componentDidMount",value:function(){var n=this;if(this.props.responsive){var i=this.props.responsive.map(function(a){return a.breakpoint});i.sort(function(a,s){return a-s}
323),i.forEach(function(a,s){var l;s===0?l=CI({minWidth:0,maxWidth:a}):l=CI({minWidth:i[s-1]+1,maxWidth:a}),g7()&&n.media(l,function(){n.setState({breakpoint:a})})});var o=CI({minWidth:i.slice(-1)[0]});g7()&&this.media(o,function(){n.setState({breakpoint:null})})}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach(function(n){n.mql.removeListener(n.listener)})}},{key:"render",value:function(){var n=this,i,o;this.state.breakpoint?(o=this.props.responsive.filter(function(y){return y.breakpoint===n.state.breakpoint}),i=o[0].settings==="unslick"?"unslick":Q(Q(Q({},S$),this.props),o[0].settings)):i=Q(Q({},S$),this.props),i.centerMode&&(i.slidesToScroll>1,i.slidesToScroll=1),i.fade&&(i.slidesToShow>1,i.slidesToScroll>1,i.slidesToShow=1,i.slidesToScroll=1);var a=de.Children.toArray(this.props.children);a=a.filter(function(y){return typeof y=="string"?!!y.trim():!!y}),i.variableWidth&&(i.rows>1||i.slidesPerRow>1)&&(i.variableWidth=!1);for(var s=[],l=null,c=0;c<a.length;c+=i.rows*i.slidesPerRow){for(var d=[],u=c;u<c+i.rows*i.slidesPerRow;u+=i.slidesPerRow){for(var f=[],h=u;
323h<u+i.slidesPerRow&&(i.variableWidth&&a[h].props.style&&(l=a[h].props.style.width),!(h>=a.length));h+=1)f.push(de.cloneElement(a[h],{key:100*c+10*u+h,tabIndex:-1,style:{width:"".concat(100/i.slidesPerRow,"%"),display:"inline-block"}}));d.push(de.createElement("div",{key:10*c+u},f))}i.variableWidth?s.push(de.createElement("div",{key:c,style:{width:l}},d)):s.push(de.createElement("div",{key:c},d))}if(i==="unslick"){var v="regular slider "+(this.props.className||"");return de.createElement("div",{className:v},a)}else s.length<=i.slidesToShow&&!i.infinite&&(i.unslick=!0);return de.createElement(nxe,$e({style:this.props.style,ref:this.innerSliderRefHandler},W2e(i)),s)}}])}(de.Component);const C3="--dot-duration",fxe=e=>{const{componentCls:t,antCls:r}=e;return{[t]:Object.assign(Object.assign({},Kr(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${r}-radio-input, input${r}-checkbox-input`]:{visibility:"hidden"},"&.slick-active":{pointerEvents:"auto",[`input${r}-radio-input, input${r}-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"}})}},pxe=e=>{const{componentCls:t,motionDurationSlow:r,arrowSize:n,arrowOffset:i}=e,o=e.calc(n).div(Math.SQRT2).equal();return{[t]:{".slick-prev, .slick-next":{position:"absolute",top:"50%",width:n,height:n,transform:"translateY(-50%)",color:"#fff",opacity:.4,background:"transparent",padding:0,lineHeight:0,border:0,outline:"none",cursor:"pointer",zIndex:1,transition:`opacity ${r}`,"&:hover, &:focus":{opacity:1},"&.slick-disabled":{pointerEvents:"none",opacity:0},"&::after":{boxSizing:"border-box",position:"absolute",top:e.calc(n).sub(o).div(2).equal(),insetInlineStart:e.calc(n).sub(o).div(2).equal(),display:"inline-block",width:o,height:o,border:"0 solid currentcolor",borderInlineStartWidth:2,borderBlockStartWidth:2,borderRadius:1,content:'""'}},".slick-prev":{insetInlineStart:i,"&::after":{transform:"rotate(-45deg)"}},".slick-next":{insetInlineEnd:i,"&::after":{transform:"rotate(135deg)"}}}}},hxe=e=>{const{componentCls:t,dotOffset:r,dotWidth:n,dotHeight:i,dotGap:o,colorBgContainer:a,motionDurationSlow:s}=e;return{[t]:{".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:r},"&-top":{top:r,bottom:"auto"},li:{position:"relative",display:"inline-block",flex:"0 1 auto",boxSizing:"content-box",width:n,height:i,marginInline:o,padding:0,textAlign:"center",textIndent:-999,verticalAlign:"top",transition:`all ${s}`,borderRadius:i,overflow:"hidden","&::after":{display:"block",position:"absolute",top:0,insetInlineStart:0,width:"100%",height:i,content:'""',background:"transparent",borderRadius:i,opacity:1,outline:"none",cursor:"pointer",overflow:"hidden",transform:"translate3d(-100%, 0, 0)"},button:{position:"relative",display:"block",width:"100%",height:i,padding:0,color:"transparent",fontSize:0,background:a,border:0,borderRadius:i,outline:"none",cursor:"pointer",opacity:.2,transition:`all ${s}`,overflow:"hidden","&:hover":{opacity:.75},"&::after":{position:"absolute",inset:e.calc(o).mul(-1).equal(),content:'""'}},"&.slick-active":{width:e.dotActiveWidth,position:"relative","&:hover":{opacity:1},"&::after":{background:a,transform:"translate3d(0, 0, 0)",transition:`transform var(${C3}) ease-out`}}}}}}},vxe=e=>{const{componentCls:t,dotOffset:r,arrowOffset:n,marginXXS:i}=e,o={width:e.dotHeight,height:e.dotWidth};return{[`${t}-vertical`]:{".slick-prev, .slick-next":{insetInlineStart:"50%",marginBlockStart:"unset",transform:"translateX(-50%)"},".slick-prev":{insetBlockStart:n,insetInlineStart:"50%","&::after":{transform:"rotate(45deg)"}},".slick-next":{insetBlockStart:"auto",insetBlockEnd:n,"&::after":{transform:"rotate(-135deg)"}},".slick-dots":{top:"50%",bottom:"auto",flexDirection:"column",width:e.dotHeight,height:"auto",margin:0,transform:"translateY(-50%)","&-left":{insetInlineEnd:"auto",insetInlineStart:r},"&-right":{insetInlineEnd:r,insetInlineStart:"auto"},li:Object.assign(Object.assign({},o),{margin:`${fe(i)} 0`,verticalAlign:"baseline",button:o,"&::after":Object.assign(Object.assign({},o),{height:0}),"&.slick-active":Object.assign(Object.assign({},o),{button:o,"&::after":Object.assign(Object.assign({},o),{transition:`height var(${C3}) ease-out`})})})}}}}
323,gxe=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"}}}}]},mxe=e=>({arrowSize:16,arrowOffset:e.marginXS,dotWidth:16,dotHeight:3,dotGap:e.marginXXS,dotOffset:12,dotWidthActive:24,dotActiveWidth:24}),yxe=Nr("Carousel",e=>[fxe(e),pxe(e),hxe(e),vxe(e),gxe(e)],mxe,{deprecatedTokens:[["dotWidthActive","dotActiveWidth"]]});var Jee=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const y7="slick-dots",S7=e=>{var t=Jee(e,["currentSlide","slideCount"]);return p.createElement("button",Object.assign({type:"button"},t))},Sxe=p.forwardRef((e,t)=>{const{dots:r=!0,arrows:n=!1,prevArrow:i=p.createElement(S7,{"aria-label":"prev"}),nextArrow:o=p.createElement(S7,{"aria-label":"next"}),draggable:a=!1,waitForAnimate:s=!1,dotPosition:l="bottom",vertical:c=l==="left"||l==="right",rootClassName:d,className:u,style:f,id:h,autoplay:v=!1,autoplaySpeed:y=3e3}=e,g=Jee(e,["dots","arrows","prevArrow","nextArrow","draggable","waitForAnimate","dotPosition","vertical","rootClassName","className","style","id","autoplay","autoplaySpeed"]),{getPrefixCls:m,direction:S,className:C,style:b}=Jn("carousel"),w=p.useRef(null),E=(N,L=!1)=>{w.current.slickGoTo(N,L)};p.useImperativeHandle(t,()=>({goTo:E,autoPlay:w.current.innerSlider.autoPlay,innerSlider:w.current.innerSlider,prev:w.current.slickPrev,next:w.current.slickNext}),[w.current]);const _=p.useRef(p.Children.count(e.children));p.useEffect(()=>{_.current!==p.Children.count(e.children)&&(E(e.initialSlide||0,!1),_.current=p.Children.count(e.children))},[e.children]);const R=Object.assign({vertical:c,className:ie(u,C),style:Object.assign(Object.assign({},b),f),autoplay:!!v},g);R.effect==="fade"&&(R.fade=!0);const P=m("carousel",R.prefixCls),I=!!r,O=ie(y7,`${y7}-${l}`,typeof r=="boolean"?!1:r==null?void 0:r.className),[A,x,T]=yxe(P),D=ie(P,{[`${P}-rtl`]:S==="rtl",[`${P}-vertical`]:R.vertical},x,T,d),j=v&&(typeof v=="object"?v.dotDuration:!1)?{[C3]:`${y}ms`}:{};return A(p.createElement("div",{className:D,id:h,style:j},p.createElement(dxe,Object.assign({ref:w},R,{dots:I,dotsClass:O,arrows:n,prevArrow:i,nextArrow:o,draggable:a,verticalSwiping:c,autoplaySpeed:y,waitForAnimate:s}))))}),Cxe=Sxe,bxe=p.createContext({}),Zee=bxe;var wxe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function C7(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const _xe=["xs","sm","md","lg","xl","xxl"],Exe=p.forwardRef((e,t)=>{const{getPrefixCls:r,direction:n}=p.useContext(Vt),{gutter:i,wrap:o}=p.useContext(Zee),{prefixCls:a,span:s,order:l,offset:c,push:d,pull:u,className:f,children:h,flex:v,style:y}=e,g=wxe(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),m=r("col",a),[S,C,b]=abe(m),w={};let E={};_xe.forEach(P=>{let I={};const O=e[P];typeof O=="number"?I.span=O:typeof O=="object"&&(I=O||{}),delete g[P],E=Object.assign(Object.assign({},E),{[`${m}-${P}-${I.span}`]:I.span!==void 0,[`${m}-${P}-order-${I.order}`]:I.order||I.order===0,[`${m}-${P}-offset-${I.offset}`]:I.offset||I.offset===0,[`${m}-${P}-push-${I.push}`]:I.push||I.push===0,[`${m}-${P}-pull-${I.pull}`]:I.pull||I.pull===0,[`${m}-rtl`]:n==="rtl"}),I.flex&&(E[`${m}-${P}-flex`]=!0,w[`--${m}-${P}-flex`]=C7(I.flex))});const _=ie(m,{[`${m}-${s}`]:s!==void 0,[`${m}-order-${l}`]:l,[`${m}-offset-${c}`]:c,[`${m}-push-${d}`]:d,[`${m}-pull-${u}`]:u},f,E,C,b),R={};if(i&&i[0]>0){const P=i[0]/2;R.paddingLeft=P,R.paddingRight=P}return v&&(R.flex=C7(v),o===!1&&!R.minWidth&&(R.minWidth=0)),S(p.createElement("div",Object.assign({},g,{style:Object.assign(Object.assign(Object.assign({},R),y),w),className:_,ref:t}),h))}),Df=Exe;function Rxe(e,t){const r=[void 0,void 0],n=Array.isArray(e)?e:[e,void 0],i=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0};
323return n.forEach((o,a)=>{if(typeof o=="object"&&o!==null)for(let s=0;s<bp.length;s++){const l=bp[s];if(i[l]&&o[l]!==void 0){r[a]=o[l];break}}else r[a]=o}),r}var Pxe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function b7(e,t){const[r,n]=p.useState(typeof e=="string"?e:""),i=()=>{if(typeof e=="string"&&n(e),typeof e=="object")for(let o=0;o<bp.length;o++){const a=bp[o];if(!t||!t[a])continue;const s=e[a];if(s!==void 0){n(s);return}}};return p.useEffect(()=>{i()},[JSON.stringify(e),t]),r}const Ixe=p.forwardRef((e,t)=>{const{prefixCls:r,justify:n,align:i,className:o,style:a,children:s,gutter:l=0,wrap:c}=e,d=Pxe(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:u,direction:f}=p.useContext(Vt),h=q4(!0,null),v=b7(i,h),y=b7(n,h),g=u("row",r),[m,S,C]=obe(g),b=Rxe(l,h),w=ie(g,{[`${g}-no-wrap`]:c===!1,[`${g}-${y}`]:y,[`${g}-${v}`]:v,[`${g}-rtl`]:f==="rtl"},o,S,C),E={},_=b[0]!=null&&b[0]>0?b[0]/-2:void 0;_&&(E.marginLeft=_,E.marginRight=_);const[R,P]=b;E.rowGap=P;const I=p.useMemo(()=>({gutter:[R,P],wrap:c}),[R,P,c]);return m(p.createElement(Zee.Provider,{value:I},p.createElement("div",Object.assign({},d,{className:w,style:Object.assign(Object.assign({},E),a),ref:t}),s)))}),xxe=Ixe;var Oxe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};const Txe=Oxe;var Axe=function(t,r){return p.createElement(Jt,$e({},t,{ref:r,icon:Txe}))},Mxe=p.forwardRef(Axe);const $xe=Mxe;function w$(){return typeof BigInt=="function"}function ete(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function td(e){var t=e.trim(),r=t.startsWith("-");r&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var n=t||"0",i=n.split("."),o=i[0]||"0",a=i[1]||"0";o==="0"&&a==="0"&&(r=!1);var s=r?"-":"";return{negative:r,negativeStr:s,trimStr:n,integerStr:o,decimalStr:a,fullStr:"".concat(s).concat(n)}}function b3(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function qu(e){var t=String(e);if(b3(e)){var r=Number(t.slice(t.indexOf("e-")+2)),n=t.match(/\.(\d+)/);return n!=null&&n[1]&&(r+=n[1].length),r}return t.includes(".")&&w3(t)?t.length-t.indexOf(".")-1:0}function z_(e){var t=String(e);if(b3(e)){if(e>Number.MAX_SAFE_INTEGER)return String(w$()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(w$()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(qu(t))}return td(t).fullStr}function w3(e){return typeof e=="number"?!Number.isNaN(e):e?/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e):!1}var kxe=function(){function e(t){if(zr(this,e),J(this,"origin",""),J(this,"negative",void 0),J(this,"integer",void 0),J(this,"decimal",void 0),J(this,"decimalLen",void 0),J(this,"empty",void 0),J(this,"nan",void 0),ete(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var r=t;if(b3(r)&&(r=Number(r)),r=typeof r=="string"?r:z_(r),w3(r)){var n=td(r);this.negative=n.negative;var i=n.trimStr.split(".");this.integer=BigInt(i[0]);var o=i[1]||"0";this.decimal=BigInt(o),this.decimalLen=o.length}else this.nan=!0}return Br(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(r){var n="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(r,"0"));return BigInt(n)}},{key:"negate",value:function(){var r=new e(this.toString());return r.negative=!r.negative,r}},{key:"cal",value:function(r,n,i){var o=Math.max(this.getDecimalStr().length,r.getDecimalStr().length),a=this.alignDecimal(o),s=r.alignDecimal(o),l=n(a,s).toString(),c=i(o),d=td(l),u=d.negativeStr,f=d.trimStr,h="".concat(u).
323concat(f.padStart(c+1,"0"));return new e("".concat(h.slice(0,-c),".").concat(h.slice(-c)))}},{key:"add",value:function(r){if(this.isInvalidate())return new e(r);var n=new e(r);return n.isInvalidate()?this:this.cal(n,function(i,o){return i+o},function(i){return i})}},{key:"multi",value:function(r){var n=new e(r);return this.isInvalidate()||n.isInvalidate()?new e(NaN):this.cal(n,function(i,o){return i*o},function(i){return i*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(r){return this.toString()===(r==null?void 0:r.toString())}},{key:"lessEquals",value:function(r){return this.add(r.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return r?this.isInvalidate()?"":td("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),Nxe=function(){function e(t){if(zr(this,e),J(this,"origin",""),J(this,"number",void 0),J(this,"empty",void 0),ete(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return Br(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(r){if(this.isInvalidate())return new e(r);var n=Number(r);if(Number.isNaN(n))return this;var i=this.number+n;if(i>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(i<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max(qu(this.number),qu(n));return new e(i.toFixed(o))}},{key:"multi",value:function(r){var n=Number(r);if(this.isInvalidate()||Number.isNaN(n))return new e(NaN);var i=this.number*n;if(i>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(i<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max(qu(this.number),qu(n));return new e(i.toFixed(o))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(r){return this.toNumber()===(r==null?void 0:r.toNumber())}},{key:"lessEquals",value:function(r){return this.add(r.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return r?this.isInvalidate()?"":z_(this.number):this.origin}}]),e}();function Va(e){return w$()?new kxe(e):new Nxe(e)}function mC(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var i=td(e),o=i.negativeStr,a=i.integerStr,s=i.decimalStr,l="".concat(t).concat(s),c="".concat(o).concat(a);if(r>=0){var d=Number(s[r]);if(d>=5&&!n){var u=Va(e).add("".concat(o,"0.").concat("0".repeat(r)).concat(10-d));return mC(u.toString(),t,r,n)}return r===0?c:"".concat(c).concat(t).concat(s.padEnd(r,"0").slice(0,r))}return l===".0"?c:"".concat(c).concat(l)}function Dxe(e){return!!(e.addonBefore||e.addonAfter)}function Lxe(e){return!!(e.prefix||e.suffix||e.allowClear)}function w7(e,t,r){var n=t.cloneNode(!0),i=Object.create(e,{target:{value:n},currentTarget:{value:n}});return n.value=r,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(n.selectionStart=t.selectionStart,n.selectionEnd=t.selectionEnd),n.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},i}function Pb(e,t,r,n){if(r){var i=t;if(t.type==="click"){i=w7(t,e,""),r(i);return}if(e.type!=="file"&&n!==void 0){i=w7(t,e,n),r(i);return}r(i)}}function _3(e,t){if(e){e.focus(t);var r=t||{},n=r.cursor;if(n){var i=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(i,i);break;default:e.setSelectionRange(0,i)}}}}var E3=de.forwardRef(function(e,t){var r,n,i,o=e.inputElement,a=e.children,s=e.prefixCls,l=e.prefix,c=e.suffix,d=e.addonBefore,u=e.addonAfter,f=e.className,h=e.style,v=e.disabled,y=e.readOnly,g=e.focused,m=e.triggerFocus,S=e.allowClear,C=e.value,b=e.handleReset,w=e.hidden,E=e.classes,_=e.classNames,R=e.dataAttrs,P=e.styles,I=e.components,O=e.onClear,A=a??o,x=(I==null?void 0:I.affixWrapper)||"span",T=(I==null?void 0:I.groupWrapper)||"span",D=(I==null?void 0:I.wrapper)||"span",k=(I==null?void 0:I.groupAddon)||"span",j=p.useRef(null),N=function(ne){var te;(te=j.current)!==null&&te!==void 0&&te.contains(ne.target)&&(m==null||m())},L=Lxe(e),M=p.cloneElement(A,{value:C,className:ie((r=A.props)===null||r===void 0?void 0:r.className,!L&&(_==null?void 0:_.variant))||null}),$=p.useRef(null);if(de.useImperativeHandle(t,function(){return{nativeElement:$.current||j.current}}),L){var F=null;if(S){var z=!v&&!y&&C,H="".concat(s,"-clear-icon"),U=Pt(S)==="object"&&S!==null&&S!==void 0&&S.clearIcon?S.clearIcon:"✖";F=de.createElement("button",{type:"button",tabIndex:-1,onClick:function(ne){b==null||b(ne),O==null||O()},onMouseDown:function(ne){return ne.preventDefault()},className:ie(H,J(J({},"".concat(H,"-hidden"),!z),"".concat(H,"-has-suffix"),!!c))},U)}var V="".concat(s,"-affix-wrapper"),W=ie(V,J(J(J(J(J({},"".concat(s,"-disabled"),v),"".concat(V,"-disabled"),v),"".concat(V,"-focused"),g),"".concat(V,"-readonly"),y),"".concat(V,"-input-with-clear-btn"),c&&S&&C),E==null?void 0:E.affixWrapper,_==null?void 0:_.affixWrapper,_==null?void 0:_.variant),K=(c||S)&&de.createElement("span",{className:ie("".concat(s,"-suffix"),_==null?void 0:_.suffix),style:P==null?void 0:P.suffix},F,c);M=de.createElement(x,$e({className:W,style:P==null?void 0:P.affixWrapper,onClick:N},R==null?void 0:R.affixWrapper,{ref:j}),l&&de.createElement("span",{className:ie("".concat(s,"-prefix"),_==null?void 0:_.prefix),style:P==null?void 0:P.prefix},l),M,K)}if(Dxe(e)){var Z="".concat(s,"-group"),q="".concat(Z,"-addon"),Y="".concat(Z,"-wrapper"),G=ie("".concat(s,"-wrapper"),Z,E==null?void 0:E.wrapper,_==null?void 0:_.wrapper),re=ie(Y,J
323({},"".concat(Y,"-disabled"),v),E==null?void 0:E.group,_==null?void 0:_.groupWrapper);M=de.createElement(T,{className:re,ref:$},de.createElement(D,{className:G},d&&de.createElement(k,{className:q},d),M,u&&de.createElement(k,{className:q},u)))}return de.cloneElement(M,{className:ie((n=M.props)===null||n===void 0?void 0:n.className,f)||null,style:Q(Q({},(i=M.props)===null||i===void 0?void 0:i.style),h),hidden:w})}),jxe=["show"];function tte(e,t){return p.useMemo(function(){var r={};t&&(r.show=Pt(t)==="object"&&t.formatter?t.formatter:!!t),r=Q(Q({},r),e);var n=r,i=n.show,o=Nt(n,jxe);return Q(Q({},o),{},{show:!!i,showFormatter:typeof i=="function"?i:void 0,strategy:o.strategy||function(a){return a.length}})},[e,t])}var Fxe=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],zxe=p.forwardRef(function(e,t){var r=e.autoComplete,n=e.onChange,i=e.onFocus,o=e.onBlur,a=e.onPressEnter,s=e.onKeyDown,l=e.onKeyUp,c=e.prefixCls,d=c===void 0?"rc-input":c,u=e.disabled,f=e.htmlSize,h=e.className,v=e.maxLength,y=e.suffix,g=e.showCount,m=e.count,S=e.type,C=S===void 0?"text":S,b=e.classes,w=e.classNames,E=e.styles,_=e.onCompositionStart,R=e.onCompositionEnd,P=Nt(e,Fxe),I=p.useState(!1),O=oe(I,2),A=O[0],x=O[1],T=p.useRef(!1),D=p.useRef(!1),k=p.useRef(null),j=p.useRef(null),N=function(se){k.current&&_3(k.current,se)},L=Or(e.defaultValue,{value:e.value}),M=oe(L,2),$=M[0],F=M[1],z=$==null?"":String($),H=p.useState(null),U=oe(H,2),V=U[0],W=U[1],K=tte(m,g),Z=K.max||v,q=K.strategy(z),Y=!!Z&&q>Z;p.useImperativeHandle(t,function(){var be;return{focus:N,blur:function(){var Pe;(Pe=k.current)===null||Pe===void 0||Pe.blur()},setSelectionRange:function(Pe,Te,ze){var ke;(ke=k.current)===null||ke===void 0||ke.setSelectionRange(Pe,Te,ze)},select:function(){var Pe;(Pe=k.current)===null||Pe===void 0||Pe.select()},input:k.current,nativeElement:((be=j.current)===null||be===void 0?void 0:be.nativeElement)||k.current}}),p.useEffect(function(){D.current&&(D.current=!1),x(function(be){return be&&u?!1:be})},[u]);var G=function(se,Pe,Te){var ze=Pe;if(!T.current&&K.exceedFormatter&&K.max&&K.strategy(Pe)>K.max){if(ze=K.exceedFormatter(Pe,{max:K.max}),Pe!==ze){var ke,Me;W([((ke=k.current)===null||ke===void 0?void 0:ke.selectionStart)||0,((Me=k.current)===null||Me===void 0?void 0:Me.selectionEnd)||0])}}else if(Te.source==="compositionEnd")return;F(ze),k.current&&Pb(k.current,se,n,ze)};p.useEffect(function(){if(V){var be;(be=k.current)===null||be===void 0||be.setSelectionRange.apply(be,Ge(V))}},[V]);var re=function(se){G(se,se.target.value,{source:"change"})},ee=function(se){T.current=!1,G(se,se.currentTarget.value,{source:"compositionEnd"}),R==null||R(se)},ne=function(se){a&&se.key==="Enter"&&!D.current&&(D.current=!0,a(se)),s==null||s(se)},te=function(se){se.key==="Enter"&&(D.current=!1),l==null||l(se)},pe=function(se){x(!0),i==null||i(se)},le=function(se){D.current&&(D.current=!1),x(!1),o==null||o(se)},ye=function(se){F(""),N(),k.current&&Pb(k.current,se,n)},Se=Y&&"".concat(d,"-out-of-range"),_e=function(){var se=Dn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return de.createElement("input",$e({autoComplete:r},se,{onChange:re,onFocus:pe,onBlur:le,onKeyDown:ne,onKeyUp:te,className:ie(d,J({},"".concat(d,"-disabled"),u),w==null?void 0:w.input),style:E==null?void 0:E.input,ref:k,size:f,type:C,onCompositionStart:function(Te){T.current=!0,_==null||_(Te)},onCompositionEnd:ee}))},De=function(){var se=Number(Z)>0;if(y||K.show){var Pe=K.showFormatter?K.showFormatter({value:z,count:q,maxLength:Z}):"".concat(q).concat(se?" / ".concat(Z):"");return de.createElement(de.Fragment,null,K.show&&de.createElement("span",{className:ie("".concat(d,"-show-count-suffix"),J({},"".concat(d,"-show-count-has-suffix"),!!y),w==null?void 0:w.count),style:Q({}
323,E==null?void 0:E.count)},Pe),y)}return null};return de.createElement(E3,$e({},P,{prefixCls:d,className:ie(h,Se),handleReset:ye,value:z,focused:A,triggerFocus:N,suffix:De(),disabled:u,classes:b,classNames:w,styles:E,ref:j}),_e())});function Bxe(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(n,i){if(t[i])return t[i];var o=n[i];return typeof o=="function"?o.bind(n):o}}):e}function Hxe(e,t){var r=p.useRef(null);function n(){try{var o=e.selectionStart,a=e.selectionEnd,s=e.value,l=s.substring(0,o),c=s.substring(a);r.current={start:o,end:a,value:s,beforeTxt:l,afterTxt:c}}catch{}}function i(){if(e&&r.current&&t)try{var o=e.value,a=r.current,s=a.beforeTxt,l=a.afterTxt,c=a.start,d=o.length;if(o.startsWith(s))d=s.length;else if(o.endsWith(l))d=o.length-r.current.afterTxt.length;else{var u=s[c-1],f=o.indexOf(u,c-1);f!==-1&&(d=f+1)}e.setSelectionRange(d,d)}catch(h){Nn(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(h.message))}}return[n,i]}var Vxe=function(){var t=p.useState(!1),r=oe(t,2),n=r[0],i=r[1];return nr(function(){i(P_())},[]),n},Uxe=200,Wxe=600;function qxe(e){var t=e.prefixCls,r=e.upNode,n=e.downNode,i=e.upDisabled,o=e.downDisabled,a=e.onStep,s=p.useRef(),l=p.useRef([]),c=p.useRef();c.current=a;var d=function(){clearTimeout(s.current)},u=function(C,b){C.preventDefault(),d(),c.current(b);function w(){c.current(b),s.current=setTimeout(w,Uxe)}s.current=setTimeout(w,Wxe)};p.useEffect(function(){return function(){d(),l.current.forEach(function(S){return Gt.cancel(S)})}},[]);var f=Vxe();if(f)return null;var h="".concat(t,"-handler"),v=ie(h,"".concat(h,"-up"),J({},"".concat(h,"-up-disabled"),i)),y=ie(h,"".concat(h,"-down"),J({},"".concat(h,"-down-disabled"),o)),g=function(){return l.current.push(Gt(d))},m={unselectable:"on",role:"button",onMouseUp:g,onMouseLeave:g};return p.createElement("div",{className:"".concat(h,"-wrap")},p.createElement("span",$e({},m,{onMouseDown:function(C){u(C,!0)},"aria-label":"Increase Value","aria-disabled":i,className:v}),r||p.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),p.createElement("span",$e({},m,{onMouseDown:function(C){u(C,!1)},"aria-label":"Decrease Value","aria-disabled":o,className:y}),n||p.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function _7(e){var t=typeof e=="number"?z_(e):td(e).fullStr,r=t.includes(".");return r?td(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const Gxe=function(){var e=p.useRef(0),t=function(){Gt.cancel(e.current)};return p.useEffect(function(){return t},[]),function(r){t(),e.current=Gt(function(){r()})}};var Kxe=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],Yxe=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],E7=function(t,r){return t||r.isEmpty()?r.toString():r.toNumber()},R7=function(t){var r=Va(t);return r.isInvalidate()?null:r},Xxe=p.forwardRef(function(e,t){var r=e.prefixCls,n=e.className,i=e.style,o=e.min,a=e.max,s=e.step,l=s===void 0?1:s,c=e.defaultValue,d=e.value,u=e.disabled,f=e.readOnly,h=e.upHandler,v=e.downHandler,y=e.keyboard,g=e.changeOnWheel,m=g===void 0?!1:g,S=e.controls,C=S===void 0?!0:S;e.classNames;var b=e.stringMode,w=e.parser,E=e.formatter,_=e.precision,R=e.decimalSeparator,P=e.onChange,I=e.onInput,O=e.onPressEnter,A=e.onStep,x=e.changeOnBlur,T=x===void 0?!0:x,D=e.domRef,k=Nt(e,Kxe),j="".concat(r,"-input"),N=p.useRef(null),L=p.useState(!1),M=oe(L,2),$=M[0],F=M[1],z=p.useRef(!1),H=p.useRef(!1),U=p.useRef(!1),V=p.useState(function(){return Va(d??c)}),W=oe(V,2),K=W[0],Z=W[1];function q(nt){d===void 0&&Z(nt)}var Y=p.useCallback(function(nt,it){if(!it)return _>=0?_:Math.max(qu(nt),qu(l))},[_,l]),G=p.useCallback(function(nt){var it=String(nt);if(w)return w(it);var gt=it;return R&&(gt=gt.replace(R,".")),gt.replace(/[^\w.-]+/g,"")},[w,R]),re=p.useRef(""),ee=p.useCallback(function(nt,it){if(E)return E(nt,{userTyping:it,input:String(re.current)});var gt=typeof nt=="number"?z_(nt):nt;if(!it){var Ye=Y(gt,it);if(w3(gt)&&(R||Ye>=0)){var vt=R||".";gt=mC(gt,vt,Ye)}}return gt}
323,[E,Y,R]),ne=p.useState(function(){var nt=c??d;return K.isInvalidate()&&["string","number"].includes(Pt(nt))?Number.isNaN(nt)?"":nt:ee(K.toString(),!1)}),te=oe(ne,2),pe=te[0],le=te[1];re.current=pe;function ye(nt,it){le(ee(nt.isInvalidate()?nt.toString(!1):nt.toString(!it),it))}var Se=p.useMemo(function(){return R7(a)},[a,_]),_e=p.useMemo(function(){return R7(o)},[o,_]),De=p.useMemo(function(){return!Se||!K||K.isInvalidate()?!1:Se.lessEquals(K)},[Se,K]),be=p.useMemo(function(){return!_e||!K||K.isInvalidate()?!1:K.lessEquals(_e)},[_e,K]),se=Hxe(N.current,$),Pe=oe(se,2),Te=Pe[0],ze=Pe[1],ke=function(it){return Se&&!it.lessEquals(Se)?Se:_e&&!_e.lessEquals(it)?_e:null},Me=function(it){return!ke(it)},qe=function(it,gt){var Ye=it,vt=Me(Ye)||Ye.isEmpty();if(!Ye.isEmpty()&&!gt&&(Ye=ke(Ye)||Ye,vt=!0),!f&&!u&&vt){var mt=Ye.toString(),St=Y(mt,gt);return St>=0&&(Ye=Va(mC(mt,".",St)),Me(Ye)||(Ye=Va(mC(mt,".",St,!0)))),Ye.equals(K)||(q(Ye),P==null||P(Ye.isEmpty()?null:E7(b,Ye)),d===void 0&&ye(Ye,gt)),Ye}return K},Le=Gxe(),xe=function nt(it){if(Te(),re.current=it,le(it),!H.current){var gt=G(it),Ye=Va(gt);Ye.isNaN()||qe(Ye,!0)}I==null||I(it),Le(function(){var vt=it;w||(vt=it.replace(/。/g,".")),vt!==it&&nt(vt)})},je=function(){H.current=!0},Ee=function(){H.current=!1,xe(N.current.value)},Re=function(it){xe(it.target.value)},me=function(it){var gt;if(!(it&&De||!it&&be)){z.current=!1;var Ye=Va(U.current?_7(l):l);it||(Ye=Ye.negate());var vt=(K||Va(0)).add(Ye.toString()),mt=qe(vt,!1);A==null||A(E7(b,mt),{offset:U.current?_7(l):l,type:it?"up":"down"}),(gt=N.current)===null||gt===void 0||gt.focus()}},ce=function(it){var gt=Va(G(pe)),Ye;gt.isNaN()?Ye=qe(K,it):Ye=qe(gt,it),d!==void 0?ye(K,!1):Ye.isNaN()||ye(Ye,!1)},Ae=function(){z.current=!0},We=function(it){var gt=it.key,Ye=it.shiftKey;z.current=!0,U.current=Ye,gt==="Enter"&&(H.current||(z.current=!1),ce(!1),O==null||O(it)),y!==!1&&!H.current&&["Up","ArrowUp","Down","ArrowDown"].includes(gt)&&(me(gt==="Up"||gt==="ArrowUp"),it.preventDefault())},lt=function(){z.current=!1,U.current=!1};p.useEffect(function(){if(m&&$){var nt=function(Ye){me(Ye.deltaY<0),Ye.preventDefault()},it=N.current;if(it)return it.addEventListener("wheel",nt,{passive:!1}),function(){return it.removeEventListener("wheel",nt)}}});var yt=function(){T&&ce(!1),F(!1),z.current=!1};return Zu(function(){K.isInvalidate()||ye(K,!1)},[_,E]),Zu(function(){var nt=Va(d);Z(nt);var it=Va(G(pe));(!nt.equals(it)||!z.current||E)&&ye(nt,z.current)},[d]),Zu(function(){E&&ze()},[pe]),p.createElement("div",{ref:D,className:ie(r,n,J(J(J(J(J({},"".concat(r,"-focused"),$),"".concat(r,"-disabled"),u),"".concat(r,"-readonly"),f),"".concat(r,"-not-a-number"),K.isNaN()),"".concat(r,"-out-of-range"),!K.isInvalidate()&&!Me(K))),style:i,onFocus:function(){F(!0)},onBlur:yt,onKeyDown:We,onKeyUp:lt,onCompositionStart:je,onCompositionEnd:Ee,onBeforeInput:Ae},C&&p.createElement(qxe,{prefixCls:r,upNode:h,downNode:v,upDisabled:De,downDisabled:be,onStep:me}),p.createElement("div",{className:"".concat(j,"-wrap")},p.createElement("input",$e({autoComplete:"off",role:"spinbutton","aria-valuemin":o,"aria-valuemax":a,"aria-valuenow":K.isInvalidate()?null:K.toString(),step:l},k,{ref:ui(N,t),className:j,value:pe,onChange:Re,disabled:u,readOnly:f}))))}),Qxe=p.forwardRef(function(e,t){var r=e.disabled,n=e.style,i=e.prefixCls,o=i===void 0?"rc-input-number":i,a=e.value,s=e.prefix,l=e.suffix,c=e.addonBefore,d=e.addonAfter,u=e.className,f=e.classNames,h=Nt(e,Yxe),v=p.useRef(null),y=p.useRef(null),g=p.useRef(null),m=function(C){g.current&&_3(g.current,C)};return p.useImperativeHandle(t,function(){return Bxe(g.current,{focus:m,nativeElement:v.current.nativeElement||y.current})}),p.createElement(E3,{className:u,triggerFocus:m,prefixCls:o,value:a,disabled:r,style:n,prefix:s,suffix:l,addonAfter:d,addonBefore:c,classNames:f,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:v},p.createElement(Xxe,$e({prefixCls:o,disabled:r,ref:g,domRef:y,className:f==null?void 0:f.input},h)))});const Jxe=e=>{var t;const r=(t=e.handleVisible)!==null&&t!==void 0?t:"auto",n=e.controlHeightSM-e.lineWidth*2;return Object.assign(Object.assign({},Nd(e)),{controlWidth:90,handleWidth:n,handleFontSize:e.fontSize/2,handleVisible:r,handleActiveBg:e.colorFillAlter,handleBg:e.colorBg
vendor: 4,654 bytes, lines 323-331
323Container,filledHandleBg:new ar(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:r===!0?1:0,handleVisibleWidth:r===!0?n:0})},P7=({componentCls:e,borderRadiusSM:t,borderRadiusLG:r},n)=>{const i=n==="lg"?r:t;return{[`&-${n}`]:{[`${e}-handler-wrap`]:{borderStartEndRadius:i,borderEndEndRadius:i},[`${e}-handler-up`]:{borderStartEndRadius:i},[`${e}-handler-down`]:{borderEndEndRadius:i}}}},Zxe=e=>{const{componentCls:t,lineWidth:r,lineType:n,borderRadius:i,inputFontSizeSM:o,inputFontSizeLG:a,controlHeightLG:s,controlHeightSM:l,colorError:c,paddingInlineSM:d,paddingBlockSM:u,paddingBlockLG:f,paddingInlineLG:h,colorIcon:v,motionDurationMid:y,handleHoverColor:g,handleOpacity:m,paddingInline:S,paddingBlock:C,handleBg:b,handleActiveBg:w,colorTextDisabled:E,borderRadiusSM:_,borderRadiusLG:R,controlWidth:P,handleBorderColor:I,filledHandleBg:O,lineHeightLG:A,calc:x}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Kr(e)),h0(e)),{display:"inline-block",width:P,margin:0,padding:0,borderRadius:i}),u3(e,{[`${t}-handler-wrap`]:{background:b,[`${t}-handler-down`]:{borderBlockStart:`${fe(r)} ${n} ${I}`}}})),f3(e,{[`${t}-handler-wrap`]:{background:O,[`${t}-handler-down`]:{borderBlockStart:`${fe(r)} ${n} ${I}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:b}}})),p3(e,{[`${t}-handler-wrap`]:{background:b,[`${t}-handler-down`]:{borderBlockStart:`${fe(r)} ${n} ${I}`}}})),d3(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,lineHeight:A,borderRadius:R,[`input${t}-input`]:{height:x(s).sub(x(r).mul(2)).equal(),padding:`${fe(f)} ${fe(h)}`}},"&-sm":{padding:0,fontSize:o,borderRadius:_,[`input${t}-input`]:{height:x(l).sub(x(r).mul(2)).equal(),padding:`${fe(u)} ${fe(d)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},Kr(e)),Nee(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:R,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:_}}},Tee(e)),Mee(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},Kr(e)),{width:"100%",padding:`${fe(C)} ${fe(S)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:i,outline:0,transition:`all ${y} linear`,appearance:"textfield",fontSize:"inherit"}),h3(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1}})},{[t]:Object.assign(Object.assign(Object.assign({[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:m,height:"100%",borderStartStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${y}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
324              ${t}-handler-up-inner,
325              ${t}-handler-down-inner
326            `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:v,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${fe(r)} ${n} ${I}`,transition:`all ${y} linear`,"&:active":{background:w},"&:hover":{height:"60%",[`
327              ${t}-handler-up-inner,
328              ${t}-handler-down-inner
329            `]:{color:g}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},e0()),{color:v,transition:`all ${y} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:i},[`${t}-handler-down`]:{borderEndEndRadius:i}},P7(e,"lg")),P7(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`
330          ${t}-handler-up-disabled,
331          ${t}-handler-down-disabled
332        `]:{cursor:"not-allowed"},[`
333          ${t}-handler-up-disabled:hover &-handler-up-inner,
334          ${t}-handler-down-disabled:hover &-handler-down-inner
335        `]:{color:E}})}]},eOe=e=>{const{componentCls:t,paddingBlock:r,paddingInline:n,inputAffixPadding:i,controlWidth:o,borderRadiusLG:a,borderRadiusSM:s,paddingInlineLG:l,paddingInlineSM:c,paddingBlockLG:d,paddingBlockSM:u,motionDurationMid:f}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${fe(r)} 0`}},h0(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:o,padding:0,paddingInlineStart:n,"&-lg":{borderRadius:a,paddingInlineStart:l,[`input${t}-input`]:{padding:`${fe(d)} 0`}},"&-sm":{borderRadius:s,paddingInlineStart:c,[`input${t}-input`]:{padding:`${fe(u)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:i},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:n,marginInlineStart:i,transition:`margin ${f}`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:not(${t}
335-affix-wrapper-without-controls):hover ${t}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(n).equal()}}),[`${t}-underlined`]:{borderRadius:0}}},tOe=Nr("InputNumber",e=>{const t=sr(e,kd(e));return[Zxe(t),eOe(t),i0(t)]},Jxe,{unitless:{handleOpacity:!0},resetFont:!1});var rOe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const rte=p.forwardRef((e,t)=>{const{getPrefixCls:r,direction:n}=p.useContext(Vt),i=p.useRef(null);p.useImperativeHandle(t,()=>i.current);const{className:o,rootClassName:a,size:s,disabled:l,prefixCls:c,addonBefore:d,addonAfter:u,prefix:f,suffix:h,bordered:v,readOnly:y,status:g,controls:m,variant:S}=e,C=rOe(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),b=r("input-number",c),w=fi(b),[E,_,R]=tOe(b,w),{compactSize:P,compactItemClassnames:I}=Wc(b,n);let O=p.createElement($xe,{className:`${b}-handler-up-inner`}),A=p.createElement(x_,{className:`${b}-handler-down-inner`});const x=typeof m=="boolean"?m:void 0;typeof m=="object"&&(O=typeof m.upIcon>"u"?O:p.createElement("span",{className:`${b}-handler-up-inner`},m.upIcon),A=typeof m.downIcon>"u"?A:p.createElement("span",{className:`${b}-handler-down-inner`},m.downIcon));const{hasFeedback:T,status:D,isFormItemInput:k,feedbackIcon:j}=p.useContext(Yi),N=Td(D,g),L=Xi(K=>{var Z;return(Z=s??P)!==null&&Z!==void 0?Z:K}),M=p.useContext(ra),$=l??M,[F,z]=Ad("inputNumber",S,v),H=T&&p.createElement(p.Fragment,null,j),U=ie({[`${b}-lg`]:L==="large",[`${b}-sm`]:L==="small",[`${b}-rtl`]:n==="rtl",[`${b}-in-form-item`]:k},_),V=`${b}-group`,W=p.createElement(Qxe,Object.assign({ref:i,disabled:$,className:ie(R,w,o,a,I),upHandler:O,downHandler:A,prefixCls:b,readOnly:y,controls:x,prefix:f,suffix:H||h,addonBefore:d&&p.createElement(wl,{form:!0,space:!0},d),addonAfter:u&&p.createElement(wl,{form:!0,space:!0},u),classNames:{input:U,variant:ie({[`${b}-${F}`]:z},kc(b,N,T)),affixWrapper:ie({[`${b}-affix-wrapper-sm`]:L==="small",[`${b}-affix-wrapper-lg`]:L==="large",[`${b}-affix-wrapper-rtl`]:n==="rtl",[`${b}
335-affix-wrapper-without-controls`]:m===!1||$||y},_),wrapper:ie({[`${V}-rtl`]:n==="rtl"},_),groupWrapper:ie({[`${b}-group-wrapper-sm`]:L==="small",[`${b}-group-wrapper-lg`]:L==="large",[`${b}-group-wrapper-rtl`]:n==="rtl",[`${b}-group-wrapper-${F}`]:z},kc(`${b}-group-wrapper`,N,T),_)}},C));return E(W)}),nte=rte,nOe=e=>p.createElement(Ii,{theme:{components:{InputNumber:{handleVisible:!0}}}},p.createElement(rte,Object.assign({},e)));nte._InternalPanelDoNotUseOrYouWillBeFired=nOe;const Mu=nte,iOe=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:de.createElement(Uc,null)}),t},ite=iOe;function ote(e,t){const r=p.useRef([]),n=()=>{r.current.push(setTimeout(()=>{var i,o,a,s;!((i=e.current)===null||i===void 0)&&i.input&&((o=e.current)===null||o===void 0?void 0:o.input.getAttribute("type"))==="password"&&(!((a=e.current)===null||a===void 0)&&a.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return p.useEffect(()=>(t&&n(),()=>r.current.forEach(i=>{i&&clearTimeout(i)})),[]),n}function oOe(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var aOe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const sOe=p.forwardRef((e,t)=>{const{prefixCls:r,bordered:n=!0,status:i,size:o,disabled:a,onBlur:s,onFocus:l,suffix:c,allowClear:d,addonAfter:u,addonBefore:f,className:h,style:v,styles:y,rootClassName:g,onChange:m,classNames:S,variant:C}=e,b=aOe(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:w,direction:E,allowClear:_,autoComplete:R,className:P,style:I,classNames:O,styles:A}=Jn("input"),x=w("input",r),T=p.useRef(null),D=fi(x),[k,j,N]=Dee(x,g),[L]=Lee(x,D),{compactSize:M,compactItemClassnames:$}=Wc(x,E),F=Xi(le=>{var ye;return(ye=o??M)!==null&&ye!==void 0?ye:le}),z=de.useContext(ra),H=a??z,{status:U,hasFeedback:V,feedbackIcon:W}=p.useContext(Yi),K=Td(U,i),Z=oOe(e)||!!V;p.useRef(Z);const q=ote(T,!0),Y=le=>{q(),s==null||s(le)},G=le=>{q(),l==null||l(le)},re=le=>{q(),m==null||m(le)},ee=(V||c)&&de.createElement(de.Fragment,null,c,V&&W),ne=ite(d??_),[te,pe]=Ad("input",C,n);return k(L(de.createElement(zxe,Object.assign({ref:ui(t,T),prefixCls:x,autoComplete:R},b,{disabled:H,onBlur:Y,onFocus:G,style:Object.assign(Object.assign({},I),v),styles:Object.assign(Object.assign({},A),y),suffix:ee,allowClear:ne,className:ie(h,g,N,D,$,P),onChange:re,addonBefore:f&&de.createElement(wl,{form:!0,space:!0},f),addonAfter:u&&de.createElement(wl,{form:!0,space:!0},u),classNames:Object.assign(Object.assign(Object.assign({},S),O),{input:ie({[`${x}-sm`]:F==="small",[`${x}-lg`]:F==="large",[`${x}-rtl`]:E==="rtl"},S==null?void 0:S.input,O.input,j),variant:ie({[`${x}-${te}`]:pe},kc(x,K)),affixWrapper:ie({[`${x}-affix-wrapper-sm`]:F==="small",[`${x}-affix-wrapper-lg`]:F==="large",[`${x}-affix-wrapper-rtl`]:E==="rtl"},j),wrapper:ie({[`${x}-group-rtl`]:E==="rtl"},j),groupWrapper:ie({[`${x}-group-wrapper-sm`]:F==="small",[`${x}-group-wrapper-lg`]:F==="large",[`${x}-group-wrapper-rtl`]:E==="rtl",[`${x}-group-wrapper-${te}`]:pe},kc(`${x}-group-wrapper`,K,V),j)})}))))}),B_=sOe;function _$(e,t,r){return(e-t)/(r-t)}function R3(e,t,r,n){var i=_$(t,r,n),o={};switch(e){case"rtl":o.right="".concat(i*100,"%"),o.transform="translateX(50%)";break;case"btt":o.bottom="".concat(i*100,"%"),o.transform="translateY(50%)";break;case"ttb":o.top="".concat(i*100,"%"),o.transform="translateY(-50%)";break;default:o.left="".concat(i*100,"%"),o.transform="translateX(-50%)";break}return o}function Lu(e,t){return Array.isArray(e)?e[t]:e}var Dd=p.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),lOe=p.createContext({}),cOe=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onF
335ocus","onMouseEnter"],I7=p.forwardRef(function(e,t){var r=e.prefixCls,n=e.value,i=e.valueIndex,o=e.onStartMove,a=e.onDelete,s=e.style,l=e.render,c=e.dragging,d=e.draggingDelete,u=e.onOffsetChange,f=e.onChangeComplete,h=e.onFocus,v=e.onMouseEnter,y=Nt(e,cOe),g=p.useContext(Dd),m=g.min,S=g.max,C=g.direction,b=g.disabled,w=g.keyboard,E=g.range,_=g.tabIndex,R=g.ariaLabelForHandle,P=g.ariaLabelledByForHandle,I=g.ariaRequired,O=g.ariaValueTextFormatterForHandle,A=g.styles,x=g.classNames,T="".concat(r,"-handle"),D=function(U){b||o(U,i)},k=function(U){h==null||h(U,i)},j=function(U){v(U,i)},N=function(U){if(!b&&w){var V=null;switch(U.which||U.keyCode){case Ue.LEFT:V=C==="ltr"||C==="btt"?-1:1;break;case Ue.RIGHT:V=C==="ltr"||C==="btt"?1:-1;break;case Ue.UP:V=C!=="ttb"?1:-1;break;case Ue.DOWN:V=C!=="ttb"?-1:1;break;case Ue.HOME:V="min";break;case Ue.END:V="max";break;case Ue.PAGE_UP:V=2;break;case Ue.PAGE_DOWN:V=-2;break;case Ue.BACKSPACE:case Ue.DELETE:a(i);break}V!==null&&(U.preventDefault(),u(V,i))}},L=function(U){switch(U.which||U.keyCode){case Ue.LEFT:case Ue.RIGHT:case Ue.UP:case Ue.DOWN:case Ue.HOME:case Ue.END:case Ue.PAGE_UP:case Ue.PAGE_DOWN:f==null||f();break}},M=R3(C,n,m,S),$={};if(i!==null){var F;$={tabIndex:b?null:Lu(_,i),role:"slider","aria-valuemin":m,"aria-valuemax":S,"aria-valuenow":n,"aria-disabled":b,"aria-label":Lu(R,i),"aria-labelledby":Lu(P,i),"aria-required":Lu(I,i),"aria-valuetext":(F=Lu(O,i))===null||F===void 0?void 0:F(n),"aria-orientation":C==="ltr"||C==="rtl"?"horizontal":"vertical",onMouseDown:D,onTouchStart:D,onFocus:k,onMouseEnter:j,onKeyDown:N,onKeyUp:L}}var z=p.createElement("div",$e({ref:t,className:ie(T,J(J(J({},"".concat(T,"-").concat(i+1),i!==null&&E),"".concat(T,"-dragging"),c),"".concat(T,"-dragging-delete"),d),x.handle),style:Q(Q(Q({},M),s),A.handle)},$,y));return l&&(z=l(z,{index:i,prefixCls:r,value:n,dragging:c,draggingDelete:d})),z}),uOe=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onF
335ocus"],dOe=p.forwardRef(function(e,t){var r=e.prefixCls,n=e.style,i=e.onStartMove,o=e.onOffsetChange,a=e.values,s=e.handleRender,l=e.activeHandleRender,c=e.draggingIndex,d=e.draggingDelete,u=e.onFocus,f=Nt(e,uOe),h=p.useRef({}),v=p.useState(!1),y=oe(v,2),g=y[0],m=y[1],S=p.useState(-1),C=oe(S,2),b=C[0],w=C[1],E=function(O){w(O),m(!0)},_=function(O,A){E(A),u==null||u(O)},R=function(O,A){E(A)};p.useImperativeHandle(t,function(){return{focus:function(O){var A;(A=h.current[O])===null||A===void 0||A.focus()},hideHelp:function(){Qo.flushSync(function(){m(!1)})}}});var P=Q({prefixCls:r,onStartMove:i,onOffsetChange:o,render:s,onFocus:_,onMouseEnter:R},f);return p.createElement(p.Fragment,null,a.map(function(I,O){var A=c===O;return p.createElement(I7,$e({ref:function(T){T?h.current[O]=T:delete h.current[O]},dragging:A,draggingDelete:A&&d,style:Lu(n,O),key:O,value:I,valueIndex:O},P))}),l&&g&&p.createElement(I7,$e({key:"a11y"},P,{value:a[b],valueIndex:null,dragging:c!==-1,draggingDelete:d,render:l,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),fOe=function(t){var r=t.prefixCls,n=t.style,i=t.children,o=t.value,a=t.onClick,s=p.useContext(Dd),l=s.min,c=s.max,d=s.direction,u=s.includedStart,f=s.includedEnd,h=s.included,v="".concat(r,"-text"),y=R3(d,o,l,c);return p.createElement("span",{className:ie(v,J({},"".concat(v,"-active"),h&&u<=o&&o<=f)),style:Q(Q({},y),n),onMouseDown:function(m){m.stopPropagation()},onClick:function(){a(o)}},i)},pOe=function(t){var r=t.prefixCls,n=t.marks,i=t.onClick,o="".concat(r,"-mark");return n.length?p.createElement("div",{className:o},n.map(function(a){var s=a.value,l=a.style,c=a.label;return p.createElement(fOe,{key:s,prefixCls:o,style:l,value:s,onClick:i},c)})):null},hOe=function(t){var r=t.prefixCls,n=t.value,i=t.style,o=t.activeStyle,a=p.useContext(Dd),s=a.min,l=a.max,c=a.direction,d=a.included,u=a.includedStart,f=a.includedEnd,h="".concat(r,"-dot"),v=d&&u<=n&&n<=f,y=Q(Q({},R3(c,n,s,l)),typeof i=="function"?i(n):i);return v&&(y=Q(Q({},y),typeof o=="function"?o(n):o)),p.createElement("span",{className:ie(h,J({},"".concat(h,"-active"),v)),style:y})},vOe=function(t){var r=t.prefixCls,n=t.marks,i=t.dots,o=t.style,a=t.activeStyle,s=p.useContext(Dd),l=s.min,c=s.max,d=s.step,u=p.useMemo(function(){var f=new Set;if(n.forEach(function(v){f.add(v.value)}),i&&d!==null)for(var h=l;h<=c;)f.add(h),h+=d;return Array.from(f)},[l,c,d,i,n]);return p.createElement("div",{className:"".concat(r,"-step")},u.map(function(f){return p.createElement(hOe,{prefixCls:r,key:f,value:f,style:o,activeStyle:a})}))},x7=function(t){var r=t.prefixCls,n=t.style,i=t.start,o=t.end,a=t.index,s=t.onStartMove,l=t.replaceCls,c=p.useContext(Dd),d=c.direction,u=c.min,f=c.max,h=c.disabled,v=c.range,y=c.classNames,g="".concat(r,"-track"),m=_$(i,u,f),S=_$(o,u,f),C=function(_){!h&&s&&s(_,-1)},b={};switch(d){case"rtl":b.right="".concat(m*100,"%"),b.width="".concat(S*100-m*100,"%");break;case"btt":b.bottom="".concat(m*100,"%"),b.height="".concat(S*100-m*100,"%");break;case"ttb":b.top="".concat(m*100,"%"),b.height="".concat(S*100-m*100,"%");break;default:b.left="".concat(m*100,"%"),b.width="".concat(S*100-m*100,"%")}var w=l||ie(g,J(J({},"".concat(g,"-").concat(a+1),a!==null&&v),"".concat(r,"-track-draggable"),s),y.track);return p.createElement("div",{className:w,style:Q(Q({},b),n),onMouseDown:C,onTouchStart:C})},gOe=function(t){var r=t.prefixCls,n=t.style,i=t.values,o=t.startPoint,a=t.onStartMove,s=p.useContext(Dd),l=s.included,c=s.range,d=s.min,u=s.styles,f=s.classNames,h=p.useMemo(function(){if(!c){if(i.length===0)return[];var y=o??d,g=i[0];return[{start:Math.min(y,g),end:Math.max(y,g)}]}for(var m=[],S=0;S<i.length-1;S+=1)m.push({start:i[S],end:i[S+1]});return m},[i,c,o,d]);if(!l)return null;var v=h!=null&&h.length&&(f.tracks||u.tracks)?p.createElement(x7,{index:null,prefixCls:r,start:h[0].start,end:h[h.length-1].end,replaceCls:ie(f.tracks,"".concat(r,"-tracks")),style:u.tracks}):null;return p.createElement(p.Fragment,null,v,h.map(function(y,g){var m=y.start,S=y.end;return p.createElement(x7,{index:g,prefixCls:r,style:Q(Q({},Lu(n,g)),u.track),start:m,end:S,key:g,onStartMove:a})}))},mOe=130;function O7(e){var t="targetTouches"in e?e.targetTouches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function yOe(e,t,r,n,i,o,a,s,l,c,d){var u=p.useState(null),f=oe(u,2),h=f[0],v=f[1],y=p.useState(-1),g=oe(y,2),m=g[0],S=g[1],C=p.useState(!1),b=oe(C,2),w=b[0],E=b[1],_=p.useState(r),R=oe(_,2),P=R[0],I=R[1],O=p.useState(r),A=oe(O,2),x=A[0],T=A[1],D=p.useRef(null),k=p.useRef(null),j=p.useRef(null),N=p.useContext(lOe),L=N.onDragStart,M=N.onDragChange;nr(function(){m===-1&&I(r)},[r,m]),p.useEffect(function(){return function(){document.removeEventListener("mousemove",D.current),document.removeEventListener("mouseup",k.current),j.current&&(j.current.removeEventListener("touchmove",D.current),j.current.removeEventListener("touchend",k.current))}},[]);var $=function(V,W,K){W!==void 0&&v(W),I(V);var Z=V;K&&(Z=V.filter(function(q,Y){return Y!==m})),a(Z),M&&M({rawValues:V,deleteIndex:K?m:-1,draggingIndex:m,draggingValue:W})},F=lr(function(U,V,W){if(U===-1){var K=x[0],Z=x[x.length-1],q=n-K,Y=i-Z,G=V*(i-n);
335G=Math.max(G,q),G=Math.min(G,Y);var re=o(K+G);G=re-K;var ee=x.map(function(le){return le+G});$(ee)}else{var ne=(i-n)*V,te=Ge(P);te[U]=x[U];var pe=l(te,ne,U,"dist");$(pe.values,pe.value,W)}}),z=function(V,W,K){V.stopPropagation();var Z=K||r,q=Z[W];S(W),v(q),T(Z),I(Z),E(!1);var Y=O7(V),G=Y.pageX,re=Y.pageY,ee=!1;L&&L({rawValues:Z,draggingIndex:W,draggingValue:q});var ne=function(le){le.preventDefault();var ye=O7(le),Se=ye.pageX,_e=ye.pageY,De=Se-G,be=_e-re,se=e.current.getBoundingClientRect(),Pe=se.width,Te=se.height,ze,ke;switch(t){case"btt":ze=-be/Te,ke=De;break;case"ttb":ze=be/Te,ke=De;break;case"rtl":ze=-De/Pe,ke=be;break;default:ze=De/Pe,ke=be}ee=c?Math.abs(ke)>mOe&&d<P.length:!1,E(ee),F(W,ze,ee)},te=function pe(le){le.preventDefault(),document.removeEventListener("mouseup",pe),document.removeEventListener("mousemove",ne),j.current&&(j.current.removeEventListener("touchmove",D.current),j.current.removeEventListener("touchend",k.current)),D.current=null,k.current=null,j.current=null,s(ee),S(-1),E(!1)};document.addEventListener("mouseup",te),document.addEventListener("mousemove",ne),V.currentTarget.addEventListener("touchend",te),V.currentTarget.addEventListener("touchmove",ne),D.current=ne,k.current=te,j.current=V.currentTarget},H=p.useMemo(function(){var U=Ge(r).sort(function(q,Y){return q-Y}),V=Ge(P).sort(function(q,Y){return q-Y}),W={};V.forEach(function(q){W[q]=(W[q]||0)+1}),U.forEach(function(q){W[q]=(W[q]||0)-1});var K=c?1:0,Z=Object.values(W).reduce(function(q,Y){return q+Math.abs(Y)},0);return Z<=K?P:r},[r,P,c]);return[m,h,w,H,z]}function SOe(e,t,r,n,i,o){var a=p.useCallback(function(h){return Math.max(e,Math.min(t,h))},[e,t]),s=p.useCallback(function(h){if(r!==null){var v=e+Math.round((a(h)-e)/r)*r,y=function(C){return(String(C).split(".")[1]||"").length},g=Math.max(y(r),y(t),y(e)),m=Number(v.toFixed(g));return e<=m&&m<=t?m:null}return null},[r,e,t,a]),l=p.useCallback(function(h){var v=a(h),y=n.map(function(S){return S.value});r!==null&&y.push(s(h)),y.push(e,t);var g=y[0],m=t-e;return y.forEach(function(S){var C=Math.abs(v-S);C<=m&&(g=S,m=C)}),g},[e,t,n,r,a,s]),c=function h(v,y,g){var m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof y=="number"){var S,C=v[g],b=C+y,w=[];n.forEach(function(I){w.push(I.value)}),w.push(e,t),w.push(s(C));var E=y>0?1:-1;m==="unit"?w.push(s(C+E*r)):w.push(s(b)),w=w.filter(function(I){return I!==null}).filter(function(I){return y<0?I<=C:I>=C}),m==="unit"&&(w=w.filter(function(I){return I!==C}));var _=m==="unit"?C:b;S=w[0];var R=Math.abs(S-_);if(w.forEach(function(I){var O=Math.abs(I-_);O<R&&(S=I,R=O)}),S===void 0)return y<0?e:t;if(m==="dist")return S;if(Math.abs(y)>1){var P=Ge(v);return P[g]=S,h(P,y-E,g,m)}return S}else{if(y==="min")return e;if(y==="max")return t}},d=function(v,y,g){var m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",S=v[g],C=c(v,y,g,m);return{value:C,changed:C!==S}},u=function(v){return o===null&&v===0||typeof o=="number"&&v<o},f=function(v,y,g){var m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",S=v.map(l),C=S[g],b=c(S,y,g,m);if(S[g]=b,i===!1){var w=o||0;g>0&&S[g-1]!==C&&(S[g]=Math.max(S[g],S[g-1]+w)),g<S.length-1&&S[g+1]!==C&&(S[g]=Math.min(S[g],S[g+1]-w))}else if(typeof o=="number"||o===null){for(var E=g+1;E<S.length;E+=1)for(var _=!0;u(S[E]-S[E-1])&&_;){var R=d(S,1,E);S[E]=R.value,_=R.changed}for(var P=g;P>0;P-=1)for(var I=!0;u(S[P]-S[P-1])&&I;){var O=d(S,-1,P-1);S[P-1]=O.value,I=O.changed}for(var A=S.length-1;A>0;A-=1)for(var x=!0;u(S[A]-S[A-1])&&x;){var T=d(S,-1,A-1);S[A-1]=T.value,x=T.changed}for(var D=0;D<S.length-1;D+=1)for(var k=!0;u(S[D+1]-S[D])&&k;){var j=d(S,1,D+1);S[D+1]=j.value,k=j.changed}}return{value:S[g],values:S}};return[l,f]}function COe(e){return p.useMemo(function(){if(e===!0||!e)return[!!e,!1,!1,0];var t=e.editable,r=e.draggableTrack,n=e.minCount,i=e.maxCount;return[!0,t,!t&&r,n||0,i]},[e])}var bOe=p.forwardRef(function(e,t){var r=e.prefixCls,n=r===void 0?"rc-slider":r,i=e.className,o=e.style,a=e.classNames,s=e.styles,l=e.id,c=e.disabled,d=c===void 0?!1:c,u=e.keyboard,f=u===void 0?!0:u,h=e.autoFocus,v=e.onFocus,y=e.onBlur,g=e.min,m=g===void 0?0:g,S=e.max,C=S===void 0?100:S,b=e.step,w=b===void 0?1:b,E=e.value,_=e.defaultValue,R=e.range,P=e.count,I=e.onChange,O=e.onBeforeChange,A=e.onAfterChange,x=e.onChangeComplete,T=e.allowCross,D=T===void 0?!0:T,k=e.pushable,j=k===void 0?!1:k,N=e.reverse,L=e.vertical,M=e.included,$=M===void 0?!0:M,F=e.startPoint,z=e.trackStyle,H=e.handleStyle,U=e.railStyle,V=e.dotStyle,W=e.activeDotStyle,K=e.marks,Z=e.dots,q=e.handleRender,Y=e.activeHandleRender,G=e.track,re=e.tabIndex,ee=re===void 0?0:re,ne=e.ariaLabelForHandle,te=e.ariaLabelledByForHandle,pe=e.ariaRequired,le=e.ariaValueTextFormatterForHandle,ye=p.useRef(null),Se=p.useRef(null),_e=p.useMemo(function(){return L?N?"ttb":"btt":N?"rtl":"ltr"},[N,L]),De=COe(R),be=oe(De,5),se=be[0],Pe=be[1],Te=be[2],ze=be[3],ke=be[4],Me=p.useMemo(function(){return isFinite(m)?m:0},[m]),qe=p.useMemo(function(){return isFinite(C)?C:100},[C]),Le=p.useMemo(function(){return w!==null&&w<=0?1:w},[w]),xe=p.useMemo(function(){return typeof j=="boolean"?j?Le:!1:j>=0?j:!1},[j,Le]),je=p.useMemo(function(){return Object.keys(K||{}).map(function(at){var Je=K[at],ut={value:Number(at)};return Je&&Pt(Je)==="object"&&!p.isValidElement(Je)&&("label"in Je||"style"in Je)?(ut.style=Je.style,ut.label=Je.label):ut.label=Je,ut}).filter(function(at){var Je=at.label;return Je||typeof Je=="number"}).sort(function(at,Je){return at.value-Je.value})},[K]),Ee=SOe(Me,qe,Le,je,D,xe),Re=oe(Ee,2),me=Re[0],ce=Re[1],Ae=Or(_,{value:E}),We=oe(Ae,2),lt=We[0],yt=We[1],nt=p.useMemo(function(){var at=lt==null?[]:Array.isArray(lt)?lt:[lt],Je=oe(at,1),ut=Je[0],st=ut===void 0?Me:ut,_t=lt===null?[]:[st];if(se){if(_t=Ge(at),P||lt===void 0){var zt=P>=0?P+1:2;for(_t=_t.slice(0,zt);_t.length<zt;){var ht;_t.push((ht=_t[_t.length-1])!==null&&ht!==void 0?ht:Me)}}_t.sort(function(dt,Et){return dt-Et})}return _t.forEach(function(dt,Et){_t[Et]=me(dt)}),_t},[lt,se,Me,P,me]),it=function(Je){return se?Je:Je[0]}
335,gt=lr(function(at){var Je=Ge(at).sort(function(ut,st){return ut-st});I&&!ld(Je,nt,!0)&&I(it(Je)),yt(Je)}),Ye=lr(function(at){at&&ye.current.hideHelp();var Je=it(nt);A==null||A(Je),Nn(!A,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),x==null||x(Je)}),vt=function(Je){if(!(d||!Pe||nt.length<=ze)){var ut=Ge(nt);ut.splice(Je,1),O==null||O(it(ut)),gt(ut);var st=Math.max(0,Je-1);ye.current.hideHelp(),ye.current.focus(st)}},mt=yOe(Se,_e,nt,Me,qe,me,gt,Ye,ce,Pe,ze),St=oe(mt,5),pt=St[0],Rt=St[1],ae=St[2],ue=St[3],ve=St[4],Ce=function(Je,ut){if(!d){var st=Ge(nt),_t=0,zt=0,ht=qe-Me;nt.forEach(function(Yt,Ur){var tn=Math.abs(Je-Yt);tn<=ht&&(ht=tn,_t=Ur),Yt<Je&&(zt=Ur)});var dt=_t;Pe&&ht!==0&&(!ke||nt.length<ke)?(st.splice(zt+1,0,Je),dt=zt+1):st[_t]=Je,se&&!nt.length&&P===void 0&&st.push(Je);var Et=it(st);if(O==null||O(Et),gt(st),ut){var pr,br;(pr=document.activeElement)===null||pr===void 0||(br=pr.blur)===null||br===void 0||br.call(pr),ye.current.focus(dt),ve(ut,dt,st)}else A==null||A(Et),Nn(!A,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),x==null||x(Et)}},Fe=function(Je){Je.preventDefault();var ut=Se.current.getBoundingClientRect(),st=ut.width,_t=ut.height,zt=ut.left,ht=ut.top,dt=ut.bottom,Et=ut.right,pr=Je.clientX,br=Je.clientY,Yt;switch(_e){case"btt":Yt=(dt-br)/_t;break;case"ttb":Yt=(br-ht)/_t;break;case"rtl":Yt=(Et-pr)/st;break;default:Yt=(pr-zt)/st}var Ur=Me+Yt*(qe-Me);Ce(me(Ur),Je)},Ze=p.useState(null),et=oe(Ze,2),tt=et[0],ot=et[1],rt=function(Je,ut){if(!d){var st=ce(nt,Je,ut);O==null||O(it(nt)),gt(st.values),ot(st.value)}};p.useEffect(function(){if(tt!==null){var at=nt.indexOf(tt);at>=0&&ye.current.focus(at)}ot(null)},[tt]);var ft=p.useMemo(function(){return Te&&Le===null?!1:Te},[Te,Le]),ge=lr(function(at,Je){ve(at,Je),O==null||O(it(nt))}),we=pt!==-1;p.useEffect(function(){if(!we){var at=nt.lastIndexOf(Rt);ye.current.focus(at)}},[we]);var Ie=p.useMemo(function(){return Ge(ue).sort(function(at,Je){return at-Je})},[ue]),Ne=p.useMemo(function(){return se?[Ie[0],Ie[Ie.length-1]]:[Me,Ie[0]]},[Ie,se,Me]),Be=oe(Ne,2),Xe=Be[0],He=Be[1];p.useImperativeHandle(t,function(){return{focus:function(){ye.current.focus(0)},blur:function(){var Je,ut=document,st=ut.activeElement;(Je=Se.current)!==null&&Je!==void 0&&Je.contains(st)&&(st==null||st.blur())}}}),p.useEffect(function(){h&&ye.current.focus(0)},[]);var ct=p.useMemo(function(){return{min:Me,max:qe,direction:_e,disabled:d,keyboard:f,step:Le,included:$,includedStart:Xe,includedEnd:He,range:se,tabIndex:ee,ariaLabelForHandle:ne,ariaLabelledByForHandle:te,ariaRequired:pe,ariaValueTextFormatterForHandle:le,styles:s||{},classNames:a||{}}},[Me,qe,_e,d,f,Le,$,Xe,He,se,ee,ne,te,pe,le,s,a]);return p.createElement(Dd.Provider,{value:ct},p.createElement("div",{ref:Se,className:ie(n,i,J(J(J(J({},"".concat(n,"-disabled"),d),"".concat(n,"-vertical"),L),"".concat(n,"-horizontal"),!L),"".concat(n,"-with-marks"),je.length)),style:o,onMouseDown:Fe,id:l},p.createElement("div",{className:ie("".concat(n,"-rail"),a==null?void 0:a.rail),style:Q(Q({},U),s==null?void 0:s.rail)}),G!==!1&&p.createElement(gOe,{prefixCls:n,style:z,values:nt,startPoint:F,onStartMove:ft?ge:void 0}),p.createElement(vOe,{prefixCls:n,marks:je,dots:Z,style:V,activeStyle:W}),p.createElement(dOe,{ref:ye,prefixCls:n,style:H,values:ue,draggingIndex:pt,draggingDelete:ae,onStartMove:ge,onOffsetChange:rt,onFocus:v,onBlur:y,handleRender:q,activeHandleRender:Y,onChangeComplete:Ye,onDelete:Pe?vt:void 0}),p.createElement(pOe,{prefixCls:n,marks:je,onClick:Ce})))});const wOe=p.createContext({}),_Oe=wOe,EOe=p.forwardRef((e,t)=>{const{open:r,draggingDelete:n,value:i}=e,o=p.useRef(null),a=r&&!n,s=p.useRef(null);function l(){Gt.cancel(s.current),s.current=null}function c(){s.current=Gt(()=>{var d;(d=o.current)===null||d===void 0||d.forceAlign(),s.current=null})}return p.useEffect(()=>(a?c():l(),l),[a,e.title,i]),p.createElement(co,Object.assign({ref:ui(o,t)},e,{open:a}))}),T7=EOe,ROe=e=>{const{componentCls:t,antCls:r,controlSize:n,dotSize:i,marginFull:o,marginPart:a,colorFillContentHover:s,handleColorDisabled:l,calc:c,handleSize:d,handleSizeHover:u,handleActiveColor:f,handleActiveOutlineColor:h,handleLineWidth:v,handleLineWidthHover:y,motionDurationMid:g}=e;return{[t]:Object.assign(Object.assign({},Kr(e)),{position:"relative",height:n,margin:`${fe(a)} ${fe(o)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${fe(o)} ${fe(a)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${g}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${g}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:s},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${fe(v)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:d,height:d,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0}
335,"&::before":{content:'""',position:"absolute",insetInlineStart:c(v).mul(-1).equal(),insetBlockStart:c(v).mul(-1).equal(),width:c(d).add(c(v).mul(2)).equal(),height:c(d).add(c(v).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:d,height:d,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${fe(v)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:`
336            inset-inline-start ${g},
337            inset-block-start ${g},
338            width ${g},
339            height ${g},
340            box-shadow ${g},
341            outline ${g}
342          `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:c(u).sub(d).div(2).add(y).mul(-1).equal(),insetBlockStart:c(u).sub(d).div(2).add(y).mul(-1).equal(),width:c(u).add(c(y).mul(2)).equal(),height:c(u).add(c(y).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${fe(y)} ${f}`,outline:`6px solid ${h}`,width:u,height:u,insetInlineStart:e.calc(d).sub(u).div(2).equal(),insetBlockStart:e.calc(d).sub(u).div(2).equal()}}},[`&-lock ${t}-handle`]:{"&::before, &::after":{transition:"none"}},[`${t}-mark`]:{position:"absolute",fontSize:e.fontSize},[`${t}-mark-text`]:{position:"absolute",display:"inline-block",color:e.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:e.colorText}},[`${t}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${t}-dot`]:{position:"absolute",width:i,height:i,backgroundColor:e.colorBgElevated,border:`${fe(v)} solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[`
343          ${t}-dot
344        `]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:d,height:d,boxShadow:`0 0 0 ${fe(v)} ${l}`,insetInlineStart:0,insetBlockStart:0},[`
345          ${t}-mark-text,
346          ${t}-dot
347        `]:{cursor:"not-allowed !important"}},[`&-tooltip ${r}-tooltip-inner`]:{minWidth:"unset"}})}},ate=(e,t)=>{const{componentCls:r,railSize:n,handleSize:i,dotSize:o,marginFull:a,calc:s}=e,l=t?"paddingBlock":"paddingInline",c=t?"width":"height",d=t?"height":"width",u=t?"insetBlockStart":"insetInlineStart",f=t?"top":"insetInlineStart",h=s(n).mul(3).sub(i).div(2).equal(),v=s(i).sub(n).div(2).equal(),y=t?{borderWidth:`${fe(v)} 0`,transform:`translateY(${fe(s(v).mul(-1).equal())})`}:{borderWidth:`0 ${fe(v)}`,transform:`translateX(${fe(e.calc(v).mul(-1).equal())})`};return{[l]:n,[d]:s(n).mul(3).equal(),[`${r}-rail`]:{[c]:"100%",[d]:n},[`${r}-track,${r}-tracks`]:{[d]:n},[`${r}-track-draggable`]:Object.assign({},y),[`${r}-handle`]:{[u]:h},[`${r}-mark`]:{insetInlineStart:0,top:0,[f]:s(n).mul(3).add(t?0:a).equal(),[c]:"100%"},[`${r}-step`]:{insetInlineStart:0,top:0,[f]:n,[c]:"100%",[d]:n},[`${r}-dot`]:{position:"absolute",[u]:s(n).sub(o).div(2).equal()}}},POe=e=>{const{componentCls:t,marginPartWithMark:r}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},ate(e,!0)),{[`&${t}-with-marks`]:{marginBottom:r}})}},IOe=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},ate(e,!1)),{height:"100%"})}},xOe=e=>{const r=e.controlHeightLG/4,n=e.controlHeightSM/2,i=e.lineWidth+1,o=e.lineWidth+1*1.5,a=e.colorPrimary,s=new ar(a).setA(.2).toRgbString();return{controlSize:r,railSize:4,handleSize:r,handleSizeHover:n,dotSize:8,handleLineWidth:i,handleLineWidthHover:o,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:a,handleActiveOutlineColor:s,handleColorDisabled:new ar(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBg
347ContainerDisabled}},OOe=Nr("Slider",e=>{const t=sr(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[ROe(t),POe(t),IOe(t)]},xOe);function bI(){const[e,t]=p.useState(!1),r=p.useRef(null),n=()=>{Gt.cancel(r.current)},i=o=>{n(),o?t(o):r.current=Gt(()=>{t(o)})};return p.useEffect(()=>n,[]),[e,i]}var TOe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function AOe(e,t){return e||e===null?e:t||t===null?t:r=>typeof r=="number"?r.toString():""}const MOe=de.forwardRef((e,t)=>{const{prefixCls:r,range:n,className:i,rootClassName:o,style:a,disabled:s,tooltipPrefixCls:l,tipFormatter:c,tooltipVisible:d,getTooltipPopupContainer:u,tooltipPlacement:f,tooltip:h={},onChangeComplete:v,classNames:y,styles:g}=e,m=TOe(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete","classNames","styles"]),{vertical:S}=e,{getPrefixCls:C,direction:b,className:w,style:E,classNames:_,styles:R,getPopupContainer:P}=Jn("slider"),I=de.useContext(ra),O=s??I,{handleRender:A,direction:x}=de.useContext(_Oe),D=(x||b)==="rtl",[k,j]=bI(),[N,L]=bI(),M=Object.assign({},h),{open:$,placement:F,getPopupContainer:z,prefixCls:H,formatter:U}=M,V=$??d,W=(k||N)&&V!==!1,K=AOe(U,c),[Z,q]=bI(),Y=se=>{v==null||v(se),q(!1)},G=(se,Pe)=>se||(Pe?D?"left":"right":"top"),re=C("slider",r),[ee,ne,te]=OOe(re),pe=ie(i,w,_.root,y==null?void 0:y.root,o,{[`${re}-rtl`]:D,[`${re}-lock`]:Z},ne,te);D&&!m.vertical&&(m.reverse=!m.reverse),de.useEffect(()=>{const se=()=>{Gt(()=>{L(!1)},1)};return document.addEventListener("mouseup",se),()=>{document.removeEventListener("mouseup",se)}},[]);const le=n&&!V,ye=A||((se,Pe)=>{const{index:Te}=Pe,ze=se.props;function ke(xe,je,Ee){var Re,me,ce,Ae;Ee&&((me=(Re=m)[xe])===null||me===void 0||me.call(Re,je)),(Ae=(ce=ze)[xe])===null||Ae===void 0||Ae.call(ce,je)}const Me=Object.assign(Object.assign({},ze),{onMouseEnter:xe=>{j(!0),ke("onMouseEnter",xe)},onMouseLeave:xe=>{j(!1),ke("onMouseLeave",xe)},onMouseDown:xe=>{L(!0),q(!0),ke("onMouseDown",xe)},onFocus:xe=>{var je;L(!0),(je=m.onFocus)===null||je===void 0||je.call(m,xe),ke("onFocus",xe,!0)},onBlur:xe=>{var je;L(!1),(je=m.onBlur)===null||je===void 0||je.call(m,xe),ke("onBlur",xe,!0)}}),qe=de.cloneElement(se,Me),Le=(!!V||W)&&K!==null;return le?qe:de.createElement(T7,Object.assign({},M,{prefixCls:C("tooltip",H??l),title:K?K(Pe.value):"",value:Pe.value,open:Le,placement:G(F??f,S),key:Te,classNames:{root:`${re}-tooltip`},getPopupContainer:z||u||P}),qe)}),Se=le?(se,Pe)=>{const Te=de.cloneElement(se,{style:Object.assign(Object.assign({},se.props.style),{visibility:"hidden"})});return de.createElement(T7,Object.assign({},M,{prefixCls:C("tooltip",H??l),title:K?K(Pe.value):"",open:K!==null&&W,placement:G(F??f,S),key:"tooltip",classNames:{root:`${re}-tooltip`},getPopupContainer:z||u||P,draggingDelete:Pe.draggingDelete}),Te)}:void 0,_e=Object.assign(Object.assign(Object.assign(Object.assign({},R.root),E),g==null?void 0:g.root),a),De=Object.assign(Object.assign({},R.tracks),g==null?void 0:g.tracks),be=ie(_.tracks,y==null?void 0:y.tracks);return ee(de.createElement(bOe,Object.assign({},m,{classNames:Object.assign({handle:ie(_.handle,y==null?void 0:y.handle),rail:ie(_.rail,y==null?void 0:y.rail),track:ie(_.track,y==null?void 0:y.track)},be?{tracks:be}:{}),styles:Object.assign({handle:Object.assign(Object.assign({},R.handle),g==null?void 0:g.handle),rail:Object.assign(Object.assign({},R.rail),g==null?void 0:g.rail),track:Object.assign(Object.assign({},R.track),g==null?void 0:g.track)},Object.keys(De).length?{tracks:De}:{}),step:m.step,range:n,className:pe,style:_e,disabled:O,ref:t,prefixCls:re,handleRender:ye,activeHandleRender:Se,onChangeComplete:Y})))}),ste=MOe;var $Oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"};const kOe=$Oe;var NOe=function(t,r){return p.createElement(Jt,$e({},t,{ref:r,icon:kOe}))},DOe=p.forwardRef(NOe);const lte=DOe;var LOe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"};const jOe=LOe;var FOe=function(t,r){return p.createElement(Jt,$e({},t,{ref:r,icon:jOe}))},zOe=p.forwardRef(FOe);const cte=zOe;
347var BOe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"};const HOe=BOe;var VOe=function(t,r){return p.createElement(Jt,$e({},t,{ref:r,icon:HOe}))},UOe=p.forwardRef(VOe);const WOe=UOe;function qOe(e,t,r){return r!==void 0?r:t==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function GOe(e,t,r){return r!==void 0?r:t==="year"&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function ute(e,t){const{allowClear:r=!0}=e,{clearIcon:n,removeIcon:i}=gZ(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[p.useMemo(()=>r===!1?!1:Object.assign({clearIcon:n},r===!0?{}:r),[r,n]),i]}const[KOe,YOe]=["week","WeekPicker"],[XOe,QOe]=["month","MonthPicker"],[JOe,ZOe]=["year","YearPicker"],[eTe,tTe]=["quarter","QuarterPicker"],[E$,A7]=["time","TimePicker"],rTe=e=>p.createElement(hn,Object.assign({size:"small",type:"primary"},e)),nTe=rTe;function dte(e){return p.useMemo(()=>Object.assign({button:nTe},e),[e])}function fte(e,...t){const r=e||{};return t.reduce((n,i)=>(Object.keys(i||{}).forEach(o=>{const a=r[o],s=i[o];if(a&&typeof a=="object")if(s&&typeof s=="object")n[o]=fte(a,n[o],s);else{const{_default:l}=a;n[o]=n[o]||{},n[o][l]=ie(n[o][l],s)}else n[o]=ie(n[o],s)}),n),{})}function iTe(e,...t){return p.useMemo(()=>fte.apply(void 0,[e].concat(t)),[t])}function oTe(...e){return p.useMemo(()=>e.reduce((t,r={})=>(Object.keys(r).forEach(n=>{t[n]=Object.assign(Object.assign({},t[n]),r[n])}),t),{}),[e])}function R$(e,t){const r=Object.assign({},e);return Object.keys(t).forEach(n=>{if(n!=="_default"){const i=t[n],o=r[n]||{};r[n]=i?R$(o,i):o}}),r}function aTe(e,t,r){const n=iTe.apply(void 0,[r].concat(Ge(e))),i=oTe.apply(void 0,Ge(t));return p.useMemo(()=>[R$(n,r),R$(i,r)],[n,i])}const sTe=(e,t,r,n,i)=>{const{classNames:o,styles:a}=Jn(e),[s,l]=aTe([o,t],[a,r],{popup:{_default:"root"}});return p.useMemo(()=>{var c,d;const u=Object.assign(Object.assign({},s),{popup:Object.assign(Object.assign({},s.popup),{root:ie((c=s.popup)===null||c===void 0?void 0:c.root,n)})}),f=Object.assign(Object.assign({},l),{popup:Object.assign(Object.assign({},l.popup),{root:Object.assign(Object.assign({},(d=l.popup)===null||d===void 0?void 0:d.root),i)})});return[u,f]},[s,l,n,i])},pte=sTe;var lTe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const cTe=e=>p.forwardRef((r,n)=>{var i;const{prefixCls:o,getPopupContainer:a,components:s,className:l,style:c,placement:d,size:u,disabled:f,bordered:h=!0,placeholder:v,popupStyle:y,popupClassName:g,dropdownClassName:m,status:S,rootClassName:C,variant:b,picker:w,styles:E,classNames:_}=r,R=lTe(r,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupStyle","popupClassName","dropdownClassName","status","rootClassName","variant","picker","styles","classNames"]),P=w===E$?"timePicker":"datePicker",I=p.useRef(null),{getPrefixCls:O,direction:A,getPopupContainer:x,rangePicker:T}=p.useContext(Vt),D=O("picker",o),{compactSize:k,compactItemClassnames:j}=Wc(D,A),N=O(),[L,M]=Ad("rangePicker",b,h),$=fi(D),[F,z,H]=jee(D,$),[U,V]=pte(P,_,E,g||m,y),[W]=ute(r,D),K=dte(s),Z=Xi(Se=>{var _e;return(_e=u??k)!==null&&_e!==void 0?_e:Se}),q=p.useContext(ra),Y=f??q,G=p.useContext(Yi),{hasFeedback:re,status:ee,feedbackIcon:ne}=G,te=p.createElement(p.Fragment,null,w===E$?p.createElement(cte,null):p.createElement(lte,null),re&&ne);p.useImperativeHandle(n,()=>I.current);const[pe]=$o("Calendar",fb),le=Object.assign(Object.assign({},pe),r.locale),[ye]=Od("DatePicker",(i=V.popup.root)===null||i===void 0?void 0:i.zIndex);return F(p.createElement(wl,{space:!0},p.createElement(VPe,Object.assign({separator:p.createElement("span",{"aria-label":"to",className:`${D}-separator`},p.createElement(WOe,null)),disabled:Y,ref:I,placement:d,placeholder:GOe(le,w,v),suffixIcon:te,prevIcon:p.createElement("span",{className:`${D}-prev-icon`}),nextIcon:p.createElement("span",{className:`${D}-next-icon`}),superPrevIcon:p.createElement("span",{className:`${D}-super-prev-icon`}),superNextIcon:p.createElement("span",{className:`${D}-super-next-icon`}),transitionName:`${N}-slide-up`,picker:w},R,{className:ie({[`${D}-${Z}`]:Z,[`${D}-${L}`]:M},kc(D,Td(ee,S),re),z,j,l,T==null?void 0:T.className,H,$,C,U.root),style:Object.assign(Object.assign(Object.assign({},T==null?void 0:T.style),c),V.root),locale:le.lang,prefixCls:D,getPopupContainer:a||x,generateConfig:e,components:K,direction:A,classNames:{popup:ie(z,H,$,C,U.popup.root)},styles:{popup:Object.assign(Object.assign({},V.popup.root),{zIndex:ye})},allowClear:W}))))}),uTe=cTe;var dTe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const fTe=e=>{const t=(l,c)=>{const d=c===A7?"timePicker":"datePicker";return p.forwardRef((f,h)=>{var v;const{prefixCls:y,getPopupContainer:g,components:m,style:S,className:C,rootClassName:b,size:w,bordered:E,placement:_,placeholder:R,popupStyle:P,popupClassName:I,dropdownClassName:O,disabled:A,status:x,variant:T,onCalendarChange:D,styles:k,classNames:j}=f,N=dTe(f,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupStyle","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange","styles","classNames"]),{getPrefixCls:L,direction:M,getPopupContainer:$,[d]:F}=p.useContext(Vt),z=L("picker",y),{compactSize:H,compactItemClassnames:U}=Wc(z,M),V=p.useRef(null),[W,K]=Ad("datePicker",T,E),Z=fi(z),[q,Y,G]=jee
347(z,Z);p.useImperativeHandle(h,()=>V.current);const re={showToday:!0},ee=l||f.picker,ne=L(),{onSelect:te,multiple:pe}=N,le=te&&l==="time"&&!pe,ye=(me,ce,Ae)=>{D==null||D(me,ce,Ae),le&&te(me)},[Se,_e]=pte(d,j,k,I||O,P),[De,be]=ute(f,z),se=dte(m),Pe=Xi(me=>{var ce;return(ce=w??H)!==null&&ce!==void 0?ce:me}),Te=p.useContext(ra),ze=A??Te,ke=p.useContext(Yi),{hasFeedback:Me,status:qe,feedbackIcon:Le}=ke,xe=p.createElement(p.Fragment,null,ee==="time"?p.createElement(cte,null):p.createElement(lte,null),Me&&Le),[je]=$o("DatePicker",fb),Ee=Object.assign(Object.assign({},je),f.locale),[Re]=Od("DatePicker",(v=_e.popup.root)===null||v===void 0?void 0:v.zIndex);return q(p.createElement(wl,{space:!0},p.createElement(YPe,Object.assign({ref:V,placeholder:qOe(Ee,ee,R),suffixIcon:xe,placement:_,prevIcon:p.createElement("span",{className:`${z}-prev-icon`}),nextIcon:p.createElement("span",{className:`${z}-next-icon`}),superPrevIcon:p.createElement("span",{className:`${z}-super-prev-icon`}),superNextIcon:p.createElement("span",{className:`${z}-super-next-icon`}),transitionName:`${ne}-slide-up`,picker:l,onCalendarChange:ye},re,N,{locale:Ee.lang,className:ie({[`${z}-${Pe}`]:Pe,[`${z}-${W}`]:K},kc(z,Td(qe,x),Me),Y,U,F==null?void 0:F.className,C,G,Z,b,Se.root),style:Object.assign(Object.assign(Object.assign({},F==null?void 0:F.style),S),_e.root),prefixCls:z,getPopupContainer:g||$,generateConfig:e,components:se,direction:M,disabled:ze,classNames:{popup:ie(Y,G,Z,b,Se.popup.root)},styles:{popup:Object.assign(Object.assign({},_e.popup.root),{zIndex:Re})},allowClear:De,removeIcon:be}))))})},r=t(),n=t(KOe,YOe),i=t(XOe,QOe),o=t(JOe,ZOe),a=t(eTe,tTe),s=t(E$,A7);return{DatePicker:r,WeekPicker:n,MonthPicker:i,YearPicker:o,TimePicker:s,QuarterPicker:a}},pTe=fTe,hTe=e=>{const{DatePicker:t,WeekPicker:r,MonthPicker:n,YearPicker:i,TimePicker:o,QuarterPicker:a}=pTe(e),s=uTe(e),l=t;return l.WeekPicker=r,l.MonthPicker=n,l.YearPicker=i,l.RangePicker=s,l.TimePicker=o,l.QuarterPicker=a,l},hte=hTe,eh=hte(QRe),vTe=z4(eh,"popupAlign",void 0,"picker");eh._InternalPanelDoNotUseOrYouWillBeFired=vTe;const gTe=z4(eh.RangePicker,"popupAlign",void 0,"picker");eh._InternalRangePanelDoNotUseOrYouWillBeFired=gTe;eh.generatePicker=hte;const mTe=eh;function M7(e){return["small","middle","large"].includes(e)}function $7(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const vte=de.createContext({latestIndex:0}),yTe=vte.Provider,STe=({className:e,index:t,children:r,split:n,style:i})=>{const{latestIndex:o}=p.useContext(vte);return r==null?null:p.createElement(p.Fragment,null,p.createElement("div",{className:e,style:i},r),t<o&&n&&p.createElement("span",{className:`${e}-split`},n))},CTe=STe;var bTe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const wTe=p.forwardRef((e,t)=>{var r;const{getPrefixCls:n,direction:i,size:o,className:a,style:s,classNames:l,styles:c}=Jn("space"),{size:d=o??"small",align:u,className:f,rootClassName:h,children:v,direction:y="horizontal",prefixCls:g,split:m,style:S,wrap:C=!1,classNames:b,styles:w}=e,E=bTe(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[_,R]=Array.isArray(d)?d:[d,d],P=M7(R),I=M7(_),O=$7(R),A=$7(_),x=Jo(v,{keepEmpty:!0}),T=u===void 0&&y==="horizontal"?"center":u,D=n("space",g),[k,j,N]=oJ(D),L=ie(D,a,j,`${D}-${y}`,{[`${D}-rtl`]:i==="rtl",[`${D}-align-${T}`]:T,[`${D}-gap-row-${R}`]:P,[`${D}-gap-col-${_}`]:I},f,h,N),M=ie(`${D}-item`,(r=b==null?void 0:b.item)!==null&&r!==void 0?r:l.item);let $=0;const F=x.map((U,V)=>{var W;U!=null&&($=V);const K=(U==null?void 0:U.key)||`${M}-${V}`;return p.createElement(CTe,{className:M,key:K,index:V,split:m,style:(W=w==null?void 0:w.item)!==null&&W!==void 0?W:c.item},U)}),z=p.useMemo(()=>({latestIndex:$}),[$]);if(x.length===0)return null;const H={};return C&&(H.flexWrap="wrap"),!I&&A&&(H.columnGap=_),!P&&O&&(H.rowGap=R),k(p.createElement("div",Object.assign({ref:t,className:L,style:Object.assign(Object.assign(Object.assign({},H),s),S)},E),p.createElement(yTe,{value:z},F)))}),gte=wTe;gte.Compact=N0e;const Qg=gte;function _Te(e){return e==null?null:typeof e=="object"&&!p.isValidElement(e)?e:{title:e}}function Ib(e){const[t,r]=p.useState(e);return p.useEffect(()=>{const n=setTimeout(()=>{r(e)},e.length?0:10);return()=>{clearTimeout(n)}},[e]),t}const ETe=e=>{const{componentCls:t}=e,r=`${t}-show-help`,n=`${t}-show-help-item`;return{[r]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}
vendor: 4,570 bytes, lines 347-350
347},[n]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut},
348                     opacity ${e.motionDurationFast} ${e.motionEaseInOut},
349                     transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${n}-appear, &${n}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${n}-leave-active`]:{transform:"translateY(-5px)"}}}}},RTe=ETe,PTe=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${fe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n  input[type='radio']:focus,\n  input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${fe(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),k7=(e,t)=>{const{formItemCls:r}=e;return{[r]:{[`${r}-label > label`]:{height:t},[`${r}-control-input`]:{minHeight:t}}}},ITe=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},Kr(e)),PTe(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},k7(e,e.controlHeightSM)),"&-large":Object.assign({},k7(e,e.controlHeightLG))})}},xTe=e=>{const{formItemCls:t,iconCls:r,rootPrefixCls:n,antCls:i,labelRequiredMarkColor:o,labelColor:a,labelFontSize:s,labelHeight:l,labelColonMarginInlineStart:c,labelColonMarginInlineEnd:d,itemMarginBottom:u}=e;return{[t]:Object.assign(Object.assign({},Kr(e)),{marginBottom:u,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
350        &-hidden${i}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset","> label":{verticalAlign:"middle",textWrap:"balance"}},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:l,color:a,fontSize:s,[`> ${r}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:e.marginXXS,color:o,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${t}-required-mark-hidden, &${t}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`&${t}-required-mark-hidden`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:c,marginInlineEnd:d},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${n}-col-'"]):not([class*="' ${n}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%",[`&:has(> ${i}-switch:only-child, > ${i}-rate:only-child)`]:{display:"flex",alignItems:"center"}}}},[t]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:A4,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},ju=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),OTe=e=>
350{const{antCls:t,formItemCls:r}=e;return{[`${r}-horizontal`]:{[`${r}-label`]:{flexGrow:0},[`${r}-control`]:{flex:"1 1 0",minWidth:0},[`${r}-label[class$='-24'], ${r}-label[class*='-24 ']`]:{[`& + ${r}-control`]:{minWidth:"unset"}},[`${t}-col-24${r}-label,
351        ${t}-col-xl-24${r}-label`]:ju(e)}}},TTe=e=>{const{componentCls:t,formItemCls:r,inlineItemMarginBottom:n}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[`${r}-inline`]:{flex:"none",marginInlineEnd:e.margin,marginBottom:n,"&-row":{flexWrap:"nowrap"},[`> ${r}-label,
352        > ${r}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${r}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${r}-has-feedback`]:{display:"inline-block"}}}}},ATe=e=>{const{componentCls:t,formItemCls:r,rootPrefixCls:n}=e;return{[`${r} ${r}-label`]:ju(e),[`${t}:not(${t}-inline)`]:{[r]:{flexWrap:"wrap",[`${r}-label, ${r}-control`]:{[`&:not([class*=" ${n}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},MTe=e=>{const{componentCls:t,formItemCls:r,antCls:n}=e;return{[`${r}-vertical`]:{[`${r}-row`]:{flexDirection:"column"},[`${r}-label > label`]:{height:"auto"},[`${r}-control`]:{width:"100%"},[`${r}-label,
353        ${n}-col-24${r}-label,
354        ${n}-col-xl-24${r}-label`]:ju(e)},[`@media (max-width: ${fe(e.screenXSMax)})`]:[ATe(e),{[t]:{[`${r}:not(${r}-horizontal)`]:{[`${n}-col-xs-24${r}-label`]:ju(e)}}}],[`@media (max-width: ${fe(e.screenSMMax)})`]:{[t]:{[`${r}:not(${r}-horizontal)`]:{[`${n}-col-sm-24${r}-label`]:ju(e)}}},[`@media (max-width: ${fe(e.screenMDMax)})`]:{[t]:{[`${r}:not(${r}-horizontal)`]:{[`${n}-col-md-24${r}-label`]:ju(e)}}},[`@media (max-width: ${fe(e.screenLGMax)})`]:{[t]:{[`${r}:not(${r}-horizontal)`]:{[`${n}-col-lg-24${r}-label`]:ju(e)}}}}},$Te=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),mte=(e,t)=>sr(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),P3=Nr("Form",(e,{rootPrefixCls:t})=>{const r=mte(e,t);return[ITe(r),xTe(r),RTe(r),OTe(r),TTe(r),MTe(r),cJ(r),A4]},$Te,{order:-1e3}),N7=[];function wI(e,t,r,n=0){return{key:typeof e=="string"?e:`${t}-${n}`,error:e,errorStatus:r}}const kTe=({help:e,helpStatus:t,errors:r=N7,warnings:n=N7,className:i,fieldId:o,onVisibleChanged:a})=>{const{prefixCls:s}=p.useContext(F4),l=`${s}-item-explain`,c=fi(s),[d,u,f]=P3(s,c),h=p.useMemo(()=>HM(s),[s]),v=Ib(r),y=Ib(n),g=p.useMemo(()=>e!=null?[wI(e,"help",t)]:[].concat(Ge(v.map((C,b)=>wI(C,"error","error",b))),Ge(y.map((C,b)=>wI(C,"warning","warning",b)))),[e,t,v,y]),m=p.useMemo(()=>{const C={};return g.forEach(({key:b})=>{C[b]=(C[b]||0)+1}),g.map((b,w)=>Object.assign(Object.assign({},b),{key:C[b.key]>1?`${b.key}-fallback-${w}`:b.key}))},[g]),S={};return o&&(S.id=`${o}_help`),d(p.createElement(No,{motionDeadline:h.motionDeadline,motionName:`${s}-show-help`,visible:!!m.length,onVisibleChanged:a},C=>{const{className:b,style:w}=C;return p.createElement("div",Object.assign({},S,{className:ie(l,b,f,c,i,u),style:w}),p.createElement(m4,Object.assign({keys:m},HM(s),{motionName:`${s}-show-help-item`,component:!1}),E=>{const{key:_,error:R,errorStatus:P,className:I,style:O}=E;return p.createElement("div",{key:_,className:ie(I,{[`${l}-${P}`]:P}),style:O},R)}))}))},yte=kTe;var NTe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const DTe=(e,t)=>{const r=p.useContext(ra),{getPrefixCls:n,direction:i,requiredMark:o,colon:a,scrollToFirstError:s,className:l,style:c}=Jn("form"),{prefixCls:d,className:u,rootClassName:f,size:h,disabled:v=r,form:y,colon:g,labelAlign:m,labelWrap:S,labelCol:C,wrapperCol:b,hideRequiredMark:w,layout:E="horizontal",scrollToFirstError:_,requiredMark:R,onFinishFailed:P,name:I,style:O,feedbackIcons:A,variant:x}=e,T=NTe(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),D=Xi(h),k=p.useContext(uQ),j=p.useMemo(()=>R!==void 0?R:w?!1:o!==void 0?o:!0,[w,R,o]),N=g??a,L=n("form",d),M=fi(L),[$,F,z]=P3(L,M),H=ie(L,`${L}-${E}`,{[`${L}-hide-required-mark`]:j===!1,[`${L}-rtl`]:i==="rtl",[`${L}-${D}`]:D},z,M,F,l,u,f),[U]=Gc(y),{__INTERNAL__:V}=U;V.name=I;const W=p.useMemo(()=>({name:I,labelAlign:m,labelCol:C,labelWrap:S,wrapperCol:b,layout:E,colon:N,requiredMark:j,itemRef:V.itemRef,form:U,feedbackIcons:A}),[I,m,C,b,E,N,j,U,A]),K=p.useRef(null);p.useImperativeHandle(t,()=>{var Y;return Object.assign(Object.assign({},U),{nativeElement:(Y=K.current)===null||Y===void 0?void 0:Y.nativeElement})});const Z=(Y,G)=>{if(Y){let re={block:"nearest"};typeof Y=="object"&&(re=Object.assign(Object.assign({},re),Y)),U.scrollToField(G,re)}},q=Y=>{if(P==null||P(Y),Y.errorFields.length){const G=Y.errorFields[0].name;if(_!==void 0){Z(_,G);return}s!==void 0&&Z(s,G)}};return $(p.createElement(xJ.Provider,{value:x},p.createElement(v4,{disabled:v},p.createElement(Zy.Provider,{value:D}
354,p.createElement(IJ,{validateMessages:k},p.createElement(bl.Provider,{value:W},p.createElement(Kp,Object.assign({id:I},T,{name:I,onFinishFailed:q,form:U,ref:K,style:Object.assign(Object.assign({},c),O),className:H}))))))))},LTe=p.forwardRef(DTe);function jTe(e){if(typeof e=="function")return e;const t=Jo(e);return t.length<=1?t[0]:t}const Ste=()=>{const{status:e,errors:t=[],warnings:r=[]}=p.useContext(Yi);return{status:e,errors:t,warnings:r}};Ste.Context=Yi;const FTe=Ste;function zTe(e){const[t,r]=p.useState(e),n=p.useRef(null),i=p.useRef([]),o=p.useRef(!1);p.useEffect(()=>(o.current=!1,()=>{o.current=!0,Gt.cancel(n.current),n.current=null}),[]);function a(s){o.current||(n.current===null&&(i.current=[],n.current=Gt(()=>{n.current=null,r(l=>{let c=l;return i.current.forEach(d=>{c=d(c)}),c})})),i.current.push(s))}return[t,a]}function BTe(){const{itemRef:e}=p.useContext(bl),t=p.useRef({});function r(n,i){const o=i&&typeof i=="object"&&Id(i),a=n.join("_");return(t.current.name!==a||t.current.originRef!==o)&&(t.current.name=a,t.current.originRef=o,t.current.ref=ui(e(n),o)),t.current.ref}return r}const HTe=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},VTe=Wp(["Form","item-item"],(e,{rootPrefixCls:t})=>{const r=mte(e,t);return HTe(r)});var UTe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const WTe=24,qTe=e=>{const{prefixCls:t,status:r,labelCol:n,wrapperCol:i,children:o,errors:a,warnings:s,_internalItemRender:l,extra:c,help:d,fieldId:u,marginBottom:f,onErrorVisibleChanged:h,label:v}=e,y=`${t}-item`,g=p.useContext(bl),m=p.useMemo(()=>{let T=Object.assign({},i||g.wrapperCol||{});return v===null&&!n&&!i&&g.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(k=>{const j=k?[k]:[],N=Ia(g.labelCol,j),L=typeof N=="object"?N:{},M=Ia(T,j),$=typeof M=="object"?M:{};"span"in L&&!("offset"in $)&&L.span<WTe&&(T=Ca(T,[].concat(j,["offset"]),L.span))}),T},[i,g]),S=ie(`${y}-control`,m.className),C=p.useMemo(()=>UTe(g,["labelCol","wrapperCol"]),[g]),b=p.useRef(null),[w,E]=p.useState(0);nr(()=>{c&&b.current?E(b.current.clientHeight):E(0)},[c]);const _=p.createElement("div",{className:`${y}-control-input`},p.createElement("div",{className:`${y}-control-input-content`},o)),R=p.useMemo(()=>({prefixCls:t,status:r}),[t,r]),P=f!==null||a.length||s.length?p.createElement(F4.Provider,{value:R},p.createElement(yte,{fieldId:u,errors:a,warnings:s,help:d,helpStatus:r,className:`${y}-explain-connected`,onVisibleChanged:h})):null,I={};u&&(I.id=`${u}_extra`);const O=c?p.createElement("div",Object.assign({},I,{className:`${y}-extra`,ref:b}),c):null,A=P||O?p.createElement("div",{className:`${y}-additional`,style:f?{minHeight:f+w}:{}},P,O):null,x=l&&l.mark==="pro_table_render"&&l.render?l.render(e,{input:_,errorList:P,extra:O}):p.createElement(p.Fragment,null,_,A);return p.createElement(bl.Provider,{value:C},p.createElement(Df,Object.assign({},m,{className:S}),x),p.createElement(VTe,{prefixCls:t}))},GTe=qTe;var KTe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};const YTe=KTe;var XTe=function(t,r){return p.createElement(Jt,$e({},t,{ref:r,icon:YTe}))},QTe=p.forwardRef(XTe);const JTe=QTe;var ZTe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const eAe=({prefixCls:e,label:t,htmlFor:r,labelCol:n,labelAlign:i,colon:o,required:a,requiredMark:s,tooltip:l,vertical:c})=>{var d;const[u]=$o("Form"),{labelAlign:f,labelCol:h,labelWrap:v,colon:y}=p.useContext(bl);if(!t)return null;const g=n||h||{},m=i||f,S=`${e}-item-label`,C=ie(S,m==="left"&&`${S}-left`,g.className,{[`${S}-wrap`]:!!v});let b=t;const w=o===!0||y!==!1&&o!==!1;w&&!c&&typeof t=="string"&&t.trim()&&(b=t.replace(/[:|:]\s*$/,""));const _=_Te(l);if(_){const{icon:x=p.createElement(JTe,null)}
354=_,T=ZTe(_,["icon"]),D=p.createElement(co,Object.assign({},T),p.cloneElement(x,{className:`${e}-item-tooltip`,title:"",onClick:k=>{k.preventDefault()},tabIndex:null}));b=p.createElement(p.Fragment,null,b,D)}const R=s==="optional",P=typeof s=="function",I=s===!1;P?b=s(b,{required:!!a}):R&&!a&&(b=p.createElement(p.Fragment,null,b,p.createElement("span",{className:`${e}-item-optional`,title:""},(u==null?void 0:u.optional)||((d=Fs.Form)===null||d===void 0?void 0:d.optional))));let O;I?O="hidden":(R||P)&&(O="optional");const A=ie({[`${e}-item-required`]:a,[`${e}-item-required-mark-${O}`]:O,[`${e}-item-no-colon`]:!w});return p.createElement(Df,Object.assign({},g,{className:C}),p.createElement("label",{htmlFor:r,className:A,title:typeof t=="string"?t:""},b))},tAe=eAe,rAe={success:Gp,warning:t0,error:Uc,validating:$c};function Cte({children:e,errors:t,warnings:r,hasFeedback:n,validateStatus:i,prefixCls:o,meta:a,noStyle:s,name:l}){const c=`${o}-item`,{feedbackIcons:d}=p.useContext(bl),u=Oee(t,r,a,null,!!n,i),{isFormItemInput:f,status:h,hasFeedback:v,feedbackIcon:y,name:g}=p.useContext(Yi),m=p.useMemo(()=>{var S;let C;if(n){const w=n!==!0&&n.icons||d,E=u&&((S=w==null?void 0:w({status:u,errors:t,warnings:r}))===null||S===void 0?void 0:S[u]),_=u&&rAe[u];C=E!==!1&&_?p.createElement("span",{className:ie(`${c}-feedback-icon`,`${c}-feedback-icon-${u}`)},E||p.createElement(_,null)):null}const b={status:u||"",errors:t,warnings:r,hasFeedback:!!n,feedbackIcon:C,isFormItemInput:!0,name:l};return s&&(b.status=(u??h)||"",b.isFormItemInput=f,b.hasFeedback=!!(n??v),b.feedbackIcon=n!==void 0?b.feedbackIcon:y,b.name=l??g),b},[u,n,s,f,h]);return p.createElement(Yi.Provider,{value:m},e)}var nAe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function iAe(e){const{prefixCls:t,className:r,rootClassName:n,style:i,help:o,errors:a,warnings:s,validateStatus:l,meta:c,hasFeedback:d,hidden:u,children:f,fieldId:h,required:v,isRequired:y,onSubItemMetaChange:g,layout:m,name:S}=e,C=nAe(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout","name"]),b=`${t}-item`,{requiredMark:w,layout:E}=p.useContext(bl),_=m||E,R=_==="vertical",P=p.useRef(null),I=Ib(a),O=Ib(s),A=o!=null,x=!!(A||a.length||s.length),T=!!P.current&&n0(P.current),[D,k]=p.useState(null);nr(()=>{if(x&&P.current){const $=getComputedStyle(P.current);k(parseInt($.marginBottom,10))}},[x,T]);const j=$=>{$||k(null)},L=(($=!1)=>{const F=$?I:c.errors,z=$?O:c.warnings;return Oee(F,z,c,"",!!d,l)})(),M=ie(b,r,n,{[`${b}-with-help`]:A||I.length||O.length,[`${b}-has-feedback`]:L&&d,[`${b}-has-success`]:L==="success",[`${b}-has-warning`]:L==="warning",[`${b}-has-error`]:L==="error",[`${b}-is-validating`]:L==="validating",[`${b}-hidden`]:u,[`${b}-${_}`]:_});return p.createElement("div",{className:M,style:i,ref:P},p.createElement(xxe,Object.assign({className:`${b}-row`},Dn(C,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),p.createElement(tAe,Object.assign({htmlFor:h},e,{requiredMark:w,required:v??y,prefixCls:t,vertical:R})),p.createElement(GTe,Object.assign({},e,c,{errors:I,warnings:O,prefixCls:t,status:L,help:o,marginBottom:D,onErrorVisibleChanged:j}),p.createElement(PJ.Provider,{value:g},p.createElement(Cte,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:d,validateStatus:L,name:S},f)))),!!D&&p.createElement("div",{className:`${b}-margin-offset`,style:{marginBottom:-D}}))}const oAe="__SPLIT__";function aAe(e,t){const r=Object.keys(e),n=Object.keys(t);return r.length===n.length&&r.every(i=>{const o=e[i],a=t[i];return o===a||typeof o=="function"||typeof a=="function"})}const sAe=p.memo(({children:e})=>e,(e,t)=>aAe(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((r,n)=>r===t.childProps[n]));function D7(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function lAe(e){const{name:t,noStyle:r,className:n,dependencies:i,prefixCls:o,shouldUpdate:a,rules:s,children:l,required:c,label:d,messageVariables:u,trigger:f="onChange",validateTrigger:h,hidden:v,help:y,layout:g}=e,{getPrefixCls:m}=p.useContext(Vt),{name:S}=p.useContext(bl),C=jTe(l),b=typeof C=="function",w=p.useContext(PJ),{validateTrigger:E}=p.useContext(ud),_=h!==void 0?h:E,R=t!=null,P=m("form",o),I=fi(P),[O,A,x]=P3(P,I);c_();const T=p.useContext(ay),D=p.useRef(null),[k,j]=zTe({}),[N,L]=cd(()=>D7()),M=W=>{const K=T==null?void 0:T.getKey(W.name);if(L(W.destroy?D7():W,!0),r&&y!==!1&&w){let Z=W.name;if(W.destroy)Z=D.current||Z;else if(K!==void 0){const[q,Y]=K;Z=[q].concat(Ge(Y)),D.current=Z}w(W,Z)}},$=(W,K)=>{j(Z=>{const q=Object.assign({},Z),G=[].concat(Ge(W.name.slice(0,-1)),Ge(K)).join(oAe);return W.destroy?delete q[G]:q[G]=W,q})},[F,z]=p.useMemo(()=>{const W=Ge(N.errors),K=Ge(N.warnings);
354return Object.values(k).forEach(Z=>{W.push.apply(W,Ge(Z.errors||[])),K.push.apply(K,Ge(Z.warnings||[]))}),[W,K]},[k,N.errors,N.warnings]),H=BTe();function U(W,K,Z){return r&&!v?p.createElement(Cte,{prefixCls:P,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:N,errors:F,warnings:z,noStyle:!0,name:t},W):p.createElement(iAe,Object.assign({key:"row"},e,{className:ie(n,x,I,A),prefixCls:P,fieldId:K,isRequired:Z,errors:F,warnings:z,meta:N,onSubItemMetaChange:$,layout:g,name:t}),W)}if(!R&&!b&&!i)return O(U(C));let V={};return typeof d=="string"?V.label=d:t&&(V.label=String(t)),u&&(V=Object.assign(Object.assign({},V),u)),O(p.createElement(L4,Object.assign({},e,{messageVariables:V,trigger:f,validateTrigger:_,onMetaChange:M}),(W,K,Z)=>{const q=gm(t).length&&K?K.name:[],Y=xee(q,S),G=c!==void 0?c:!!(s!=null&&s.some(ne=>{if(ne&&typeof ne=="object"&&ne.required&&!ne.warningOnly)return!0;if(typeof ne=="function"){const te=ne(Z);return(te==null?void 0:te.required)&&!(te!=null&&te.warningOnly)}return!1})),re=Object.assign({},W);let ee=null;if(Array.isArray(C)&&R)ee=C;else if(!(b&&(!(a||i)||R))){if(!(i&&!b&&!R))if(p.isValidElement(C)){const ne=Object.assign(Object.assign({},C.props),re);if(ne.id||(ne.id=Y),y||F.length>0||z.length>0||e.extra){const le=[];(y||F.length>0)&&le.push(`${Y}_help`),e.extra&&le.push(`${Y}_extra`),ne["aria-describedby"]=le.join(" ")}F.length>0&&(ne["aria-invalid"]="true"),G&&(ne["aria-required"]="true"),Hc(C)&&(ne.ref=H(q,C)),new Set([].concat(Ge(gm(f)),Ge(gm(_)))).forEach(le=>{ne[le]=(...ye)=>{var Se,_e,De,be,se;(De=re[le])===null||De===void 0||(Se=De).call.apply(Se,[re].concat(ye)),(se=(be=C.props)[le])===null||se===void 0||(_e=se).call.apply(_e,[be].concat(ye))}});const pe=[ne["aria-required"],ne["aria-invalid"],ne["aria-describedby"]];ee=p.createElement(sAe,{control:re,update:C,childProps:pe},ka(C,ne))}else b&&(a||i)&&!R?ee=C(Z):ee=C}return U(ee,Y,G)}))}const bte=lAe;bte.useStatus=FTe;const cAe=bte;var uAe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const dAe=e=>{var{prefixCls:t,children:r}=e,n=uAe(e,["prefixCls","children"]);const{getPrefixCls:i}=p.useContext(Vt),o=i("form",t),a=p.useMemo(()=>({prefixCls:o,status:"error"}),[o]);return p.createElement(wJ,Object.assign({},n),(s,l,c)=>p.createElement(F4.Provider,{value:a},r(s.map(d=>Object.assign(Object.assign({},d),{fieldKey:d.key})),l,{errors:c.errors,warnings:c.warnings})))},fAe=dAe;function pAe(){const{form:e}=p.useContext(bl);return e}const Al=LTe;Al.Item=cAe;Al.List=fAe;Al.ErrorList=yte;Al.useForm=Gc;Al.useFormInstance=pAe;Al.useWatch=RJ;Al.Provider=IJ;Al.create=()=>{};const Hr=Al;var hAe={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"};const vAe=hAe;var gAe=function(t,r){return p.createElement(Jt,$e({},t,{ref:r,icon:vAe}))},mAe=p.forwardRef(gAe);const I3=mAe;function wte(){var e=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:t}}function yAe(e){var t=e.getBoundingClientRect(),r=document.documentElement;return{left:t.left+(window.pageXOffset||r.scrollLeft)-(r.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||r.scrollTop)-(r.clientTop||document.body.clientTop||0)}}function Lf(e,t,r,n){var i=Wm.unstable_batchedUpdates?function(a){Wm.unstable_batchedUpdates(r,a)}:r;return e!=null&&e.addEventListener&&e.addEventListener(t,i,n),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,i,n)}}}var v0=p.createContext(null),SAe=function(t){var r=t.visible,n=t.maskTransitionName,i=t.getContainer,o=t.prefixCls,a=t.rootClassName,s=t.icons,l=t.countRender,c=t.showSwitch,d=t.showProgress,u=t.current,f=t.transform,h=t.count,v=t.scale,y=t.minScale,g=t.maxScale,m=t.closeIcon,S=t.onActive,C=t.onClose,b=t.onZoomIn,w=t.onZoomOut,E=t.onRotateRight,_=t.onRotateLeft,R=t.onFlipX,P=t.onFlipY,I=t.onReset,O=t.toolbarRender,A=t.zIndex,x=t.image,T=p.useContext(v0),D=s.rotateLeft,k=s.rotateRight,j=s.zoomIn,N=s.zoomOut,L=s.close,M=s.left,$=s.right,F=s.flipX,z=s.flipY,H="".concat(o,"-operations-operation");p.useEffect(function(){var te=function(le){le.keyCode===Ue.ESC&&C()};return r&&window.addEventListener("keydown",te),function(){window.removeEventListener("keydown",te)}},[r]);var U=function(pe,le){pe.preventDefault(),pe.stopPropagation(),S(le)},V=p.useCallback(function(te){var pe=te.type,le=te.disabled,ye=te.onClick,Se=te.icon;return p.createElement("div",{key:pe,className:ie(H,"".concat(o,"-operations-operation-").concat(pe),J({},"".concat(o,"-operations-operation-disabled"),!!le)),onClick:ye},Se)},[H,o]),W=c?V({icon:M,onClick:function(pe){return U(pe,-1)},type:"prev",disabled:u===0}):void 0,K=c?V({icon:$,onClick:function(pe){return U(pe,1)},type:"next",disabled:u===h-1}):void 0,Z=V({icon:z,onClick:P,type:"flipY"}),q=V({icon:F,onClick:R,type:"flipX"}),Y=V({icon:D,onClick:_,type:"rotateLeft"}),G=V({icon:k,onClick:E,type:"rotateRight"}),re=V({icon:N,onClick:w,type:"zoomOut",disabled:v<=y}),ee=V({icon:j,onClick:b,type:"zoomIn",disabled:v===g}),ne=p.createElement("div",{className:"".concat(o,"-operations")},Z,q,Y,G,re,ee);return p.createElement(No,{visible:r,motionName:n},function(te){var pe=te.className,le=te.style;return p.createElement(__,{open:!0,getContainer:i??document.body},p.createElement("div",{className:ie("".concat(o,"-operations-wrapper"),pe,a),style:Q(Q({},le),{},{zIndex:A})},m===null?null:p.createElement("button",{className:"".concat(o,"-close"),onClick:C},m||L),c&&p.createElement(p.Fragment,null,p.createElement("div",{className:ie("".concat(o,"-switch-left"),J({},"".concat(o,"-switch-left-disabled"),u===0)),onClick:function(Se){return U(Se,-1)}},M),p.createElement("div",{className:ie("".concat(o,"-switch-right"),J({},"".concat(o,"-switch-right-disabled"),u===h-1)),onClick:function(Se){return U(Se,1)}},$)),p.createElement("div",{className:"".concat(o,"-footer")},d&&p.createElement("div",{className:"".concat(o,"-progress")},l?l(u+1,h):p.createElement("bdi",null,"".concat(u+1," / ").concat(h))),O?O(ne,Q(Q({icons:{prevIcon:W,nextIcon:K,flipYIcon:Z,flipXIcon:q,rotateLeftIcon:Y,rotateRightIcon:G,zoomOutIcon:re,zoomInIcon:ee},actions:{onActive:S,onFlipY:P,onFlipX:R,onRotateLeft:_,onRotateRight:E,onZoomOut:w,onZoomIn:b,onReset:I,onClose:C},transform:f},T?{current:u,total:h}:{}),{},{image:x})):ne)))})},HS={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function CAe(e,t,r,n){var i=p.useRef(null),o=p.useRef([]),a=p.useState(HS),s=oe(a,2),l=s[0],c=s[1],d=function(v){c(HS),ld(HS,l)||n==null||n({transform:HS,action:v})},u=function(v,y){i.current===null&&(o.current=[],i.current=Gt(function(){c(function(g){var m=g;return o.current.forEach(function(S){m=Q(Q({},m),S)}),i.current=null,n==null||n({transform:m,action:y}),m})})),o.current.push(Q(Q({},l),v))},f=function(v,y,g,m,S){var C=e.current,b=C.width,w=C.height,E=C.offsetWidth,_=C.offsetHeight,R=C.offsetLeft,P=C.offsetTop,I=v,O=l.scale*v;O>r?(O=r,I=r/l.scale):O<t&&(O=S?O:t,I=O/l.scale);var A=g??innerWidth/2,x=m??innerHeight/2,T=I-1,D=T*b*.5,k=T*w*.5,j=T*(A-l.x-R),N=T*(x-l.y-P),L=l.x-(j-D),M=l.y-(N-k);if(v<1&&O===1){var $=E*O,F=_*O,z=wte(),H=z.width,U=z.height;$<=H&&F<=U&&(L=0,M=0)}u({x:L,y:M,scale:O},y)};return{transform:l,resetTransform:d,updateTransform:u,dispatchZoomChange:f}}function L7(e,t,r,n){var i=t+r,o=(r-n)/2;if(r>n){if(t>0)return J({},e,o);if(t<0&&i<n)return J({},e,-o)}else if(t<0||i>n)return J({},e,t<0?o:-o);return{}}function _te(e,t,r,n){var i=wte(),o=i.width,a=i.height,s=null;return e<=o&&t<=a?s={x:0,y:0}:(e>o||t>a)&&(s=Q(Q({},L7("x",r,e,o)),L7("y",n,t,a))),s}var jf=1,bAe=1;function wAe(e,t,r,n,i,o,a){var s=i.rotate,l=i.scale,c=i.x,d=i.y,u=p.useState(!1),f=oe(u,2),h=f[0],v=f[1],y=p.useRef({diffX:0,diffY:0,transformX:0,transformY:0}
354),g=function(w){!t||w.button!==0||(w.preventDefault(),w.stopPropagation(),y.current={diffX:w.pageX-c,diffY:w.pageY-d,transformX:c,transformY:d},v(!0))},m=function(w){r&&h&&o({x:w.pageX-y.current.diffX,y:w.pageY-y.current.diffY},"move")},S=function(){if(r&&h){v(!1);var w=y.current,E=w.transformX,_=w.transformY,R=c!==E&&d!==_;if(!R)return;var P=e.current.offsetWidth*l,I=e.current.offsetHeight*l,O=e.current.getBoundingClientRect(),A=O.left,x=O.top,T=s%180!==0,D=_te(T?I:P,T?P:I,A,x);D&&o(Q({},D),"dragRebound")}},C=function(w){if(!(!r||w.deltaY==0)){var E=Math.abs(w.deltaY/100),_=Math.min(E,bAe),R=jf+_*n;w.deltaY>0&&(R=jf/R),a(R,"wheel",w.clientX,w.clientY)}};return p.useEffect(function(){var b,w,E,_;if(t){E=Lf(window,"mouseup",S,!1),_=Lf(window,"mousemove",m,!1);try{window.top!==window.self&&(b=Lf(window.top,"mouseup",S,!1),w=Lf(window.top,"mousemove",m,!1))}catch{}}return function(){var R,P,I,O;(R=E)===null||R===void 0||R.remove(),(P=_)===null||P===void 0||P.remove(),(I=b)===null||I===void 0||I.remove(),(O=w)===null||O===void 0||O.remove()}},[r,h,c,d,s,t]),{isMoving:h,onMouseDown:g,onMouseMove:m,onMouseUp:S,onWheel:C}}function _Ae(e){return new Promise(function(t){if(!e){t(!1);return}var r=document.createElement("img");r.onerror=function(){return t(!1)},r.onload=function(){return t(!0)},r.src=e})}function Ete(e){var t=e.src,r=e.isCustomPlaceholder,n=e.fallback,i=p.useState(r?"loading":"normal"),o=oe(i,2),a=o[0],s=o[1],l=p.useRef(!1),c=a==="error";p.useEffect(function(){var h=!0;return _Ae(t).then(function(v){!v&&h&&s("error")}),function(){h=!1}},[t]),p.useEffect(function(){r&&!l.current?s("loading"):c&&s("normal")},[t]);var d=function(){s("normal")},u=function(v){l.current=!1,a==="loading"&&v!==null&&v!==void 0&&v.complete&&(v.naturalWidth||v.naturalHeight)&&(l.current=!0,d())},f=c&&n?{src:n}:{onLoad:d,src:t};return[u,f,a]}function xb(e,t){var r=e.x-t.x,n=e.y-t.y;return Math.hypot(r,n)}function EAe(e,t,r,n){var i=xb(e,r),o=xb(t,n);if(i===0&&o===0)return[e.x,e.y];var a=i/(i+o),s=e.x+a*(t.x-e.x),l=e.y+a*(t.y-e.y);return[s,l]}function RAe(e,t,r,n,i,o,a){var s=i.rotate,l=i.scale,c=i.x,d=i.y,u=p.useState(!1),f=oe(u,2),h=f[0],v=f[1],y=p.useRef({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),g=function(w){y.current=Q(Q({},y.current),w)},m=function(w){if(t){w.stopPropagation(),v(!0);var E=w.touches,_=E===void 0?[]:E;_.length>1?g({point1:{x:_[0].clientX,y:_[0].clientY},point2:{x:_[1].clientX,y:_[1].clientY},eventType:"touchZoom"}):g({point1:{x:_[0].clientX-c,y:_[0].clientY-d},eventType:"move"})}},S=function(w){var E=w.touches,_=E===void 0?[]:E,R=y.current,P=R.point1,I=R.point2,O=R.eventType;if(_.length>1&&O==="touchZoom"){var A={x:_[0].clientX,y:_[0].clientY},x={x:_[1].clientX,y:_[1].clientY},T=EAe(P,I,A,x),D=oe(T,2),k=D[0],j=D[1],N=xb(A,x)/xb(P,I);a(N,"touchZoom",k,j,!0),g({point1:A,point2:x,eventType:"touchZoom"})}else O==="move"&&(o({x:_[0].clientX-P.x,y:_[0].clientY-P.y},"move"),g({eventType:"move"}))},C=function(){if(r){if(h&&v(!1),g({eventType:"none"}),n>l)return o({x:0,y:0,scale:n},"touchZoom");var w=e.current.offsetWidth*l,E=e.current.offsetHeight*l,_=e.current.getBoundingClientRect(),R=_.left,P=_.top,I=s%180!==0,O=_te(I?E:w,I?w:E,R,P);O&&o(Q({},O),"dragRebound")}};return p.useEffect(function(){var b;return r&&t&&(b=Lf(window,"touchmove",function(w){return w.preventDefault()},{passive:!1})),function(){var w;(w=b)===null||w===void 0||w.remove()}},[r,t]),{isTouching:h,onTouchStart:m,onTouchMove:S,onTouchEnd:C}}var PAe=["fallback","src","imgRef"],IAe=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],xAe=function(t){var r=t.fallback,n=t.src,i=t.imgRef,o=Nt(t,PAe),a=Ete({src:n,fallback:r}),s=oe(a,2),l=s[0],c=s[1];return de.createElement("img",$e({ref:function(u){i.current=u,l(u)}},o,c))},Rte=function(t){var r=t.prefixCls,n=t.src,i=t.alt,o=t.imageInfo,a=t.fallback,s=t.movable,l=s===void 0?!0:s,c=t.onClose,d=t.visible,u=t.icons,f=u===void 0?{}:u,h=t.rootClassName,v=t.closeIcon,y=t.getContainer,g=t.current,m=g===void 0?0:g,S=t.count,C=S===void 0?1:S,b=t.countRender,w=t.scaleStep,E=w===void 0?.5:w,_=t.minScale,R=_===void 0?1:_,P=t.maxScale,I=P===void 0?50:P,O=t.transitionName,A=O===void 0?"zoom":O,x=t.maskTransitionName,T=x===void 0?"fade":x,D=t.imageRender,k=t.imgCommonProps,j=t.toolbarRender,N=t.onTransform,L=t.onChange,M=Nt(t,IAe),$=p.useRef(),F=p.useContext(v0),z=F&&C>1,H=F&&C>=1,U=p.useState(!0),V=oe(U,2),W=V[0],K=V[1],Z=CAe($,R,I,N),q=Z.transform,Y=Z.resetTransform,G=Z.updateTransform,re=Z.dispatchZoomChange,ee=wAe($,l,d,E,q,G,re),ne=ee.isMoving,te=ee.onMouseDown,pe=ee.onWheel,le=RAe($,l,d,R,q,G,re),ye=le.isTouching,Se=le.onTouchStart,_e=le.onTouchMove,De=le.onTouchEnd,be=q.rotate,se=q.scale,Pe=ie(J({},"".concat(r,"-moving"),ne));p.useEffect(function(){W||K(!0)},[W]);var Te=function(){Y("close")},ze=function(){re(jf+E,"zoomIn")},ke=function(){re(jf/(jf+E),"zoomOut")},Me=function(){G({rotate:be+90},"rotateRight")},qe=function(){G({rotate:be-90},"rotateLeft")},Le=function(){G({flipX:!q.flipX},"flipX")},xe=function(){G({flipY:!q.flipY},"flipY")},je=function(){Y("reset")},Ee=function(lt){var yt=m+lt;!Number.isInteger(yt)||yt<0||yt>C-1||(K(!1),Y(lt<0?"prev":"next"),L==null||L(yt,m))},Re=function(lt){!d||!z||(lt.keyCode===Ue.LEFT?Ee(-1):lt.keyCode===Ue.RIGHT&&Ee(1))},me=function(lt){d&&(se!==1?G({x:0,y:0,scale:1},"doubleClick"):re(jf+E,"doubleClick",lt.clientX,lt.clientY))};p.useEffect(function(){var We=Lf(window,"keydown",Re,!1);return function(){We.remove()}},[d,z,m]);var ce=de.createElement(xAe,$e({},k,{width:t.width,height:t.height,imgRef:$,className:"".concat(r,"-img"),alt:i,style:{transform:"translate3d(".concat(q.x,"px, ").concat(q.y,"px, 0) scale3d(").concat(q.flipX?"-":"").concat(se,", ").concat(q.flipY?"-":"").concat(se,", 1) rotate(").concat(be,"deg)"),transitionDuration:(!W||ye)&&"0s"},fallback:a,src:n,onWheel:pe,onMouseDown:te,onDoubleClick:me,onTouchStart:Se,onTouchMove:_e,onTouchEnd:De,onTouchCancel:De})),Ae=Q({url:n,alt:i},o);return de.createElement(de.Fragment,null,de.createElement(N4,$e({transitionName:A,maskTransitionName:T,closable:!1,keyboard:!0,prefixCls:r,onClose:c,visible:d,classNames:{wrapper:Pe},rootClassName:h,getContainer:y},M,{afterClose:Te}),de.createElement("div",{className:"".concat(r,"-img-wrapper")},D?D(ce,Q({transform:q,image:Ae},F?{current:m}:{})):ce)),de.createElement(SAe,{visible:d,transform:q,maskTransitionName:T,closeIcon:v,getContainer:y,prefixCls:r,rootClassName:h,icons:f,countRender:b,showSwitch:z,showProgress:H,current:m,count:C,scale:se,minScale:R,maxScale:I,toolbarRender:j,onActive:Ee,onZoomIn:ze,onZoomOut:ke,onRotateRight:Me,onRotateLeft:qe,onFlipX:Le,onFlipY:xe,onClose:c,onReset:je,zIndex:M.zIndex!==void 0?M.zIndex+1:void 0,image:Ae}))},P$=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];
354function OAe(e){var t=p.useState({}),r=oe(t,2),n=r[0],i=r[1],o=p.useCallback(function(s,l){return i(function(c){return Q(Q({},c),{},J({},s,l))}),function(){i(function(c){var d=Q({},c);return delete d[s],d})}},[]),a=p.useMemo(function(){return e?e.map(function(s){if(typeof s=="string")return{data:{src:s}};var l={};return Object.keys(s).forEach(function(c){["src"].concat(Ge(P$)).includes(c)&&(l[c]=s[c])}),{data:l}}):Object.keys(n).reduce(function(s,l){var c=n[l],d=c.canPreview,u=c.data;return d&&s.push({data:u,id:l}),s},[])},[e,n]);return[a,o,!!e]}var TAe=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],AAe=["src"],MAe=function(t){var r,n=t.previewPrefixCls,i=n===void 0?"rc-image-preview":n,o=t.children,a=t.icons,s=a===void 0?{}:a,l=t.items,c=t.preview,d=t.fallback,u=Pt(c)==="object"?c:{},f=u.visible,h=u.onVisibleChange,v=u.getContainer,y=u.current,g=u.movable,m=u.minScale,S=u.maxScale,C=u.countRender,b=u.closeIcon,w=u.onChange,E=u.onTransform,_=u.toolbarRender,R=u.imageRender,P=Nt(u,TAe),I=OAe(l),O=oe(I,3),A=O[0],x=O[1],T=O[2],D=Or(0,{value:y}),k=oe(D,2),j=k[0],N=k[1],L=p.useState(!1),M=oe(L,2),$=M[0],F=M[1],z=((r=A[j])===null||r===void 0?void 0:r.data)||{},H=z.src,U=Nt(z,AAe),V=Or(!!f,{value:f,onChange:function(ye,Se){h==null||h(ye,Se,j)}}),W=oe(V,2),K=W[0],Z=W[1],q=p.useState(null),Y=oe(q,2),G=Y[0],re=Y[1],ee=p.useCallback(function(le,ye,Se,_e){var De=T?A.findIndex(function(be){return be.data.src===ye}):A.findIndex(function(be){return be.id===le});N(De<0?0:De),Z(!0),re({x:Se,y:_e}),F(!0)},[A,T]);p.useEffect(function(){K?$||N(0):F(!1)},[K]);var ne=function(ye,Se){N(ye),w==null||w(ye,Se)},te=function(){Z(!1),re(null)},pe=p.useMemo(function(){return{register:x,onPreview:ee}},[x,ee]);return p.createElement(v0.Provider,{value:pe},o,p.createElement(Rte,$e({"aria-hidden":!K,movable:g,visible:K,prefixCls:i,closeIcon:b,onClose:te,mousePosition:G,imgCommonProps:U,src:H,fallback:d,icons:s,minScale:m,maxScale:S,getContainer:v,current:j,count:A.length,countRender:C,onTransform:E,toolbarRender:_,imageRender:R,onChange:ne},P)))},j7=0;function $Ae(e,t){var r=p.useState(function(){return j7+=1,String(j7)}),n=oe(r,1),i=n[0],o=p.useContext(v0),a={data:t,canPreview:e};return p.useEffect(function(){if(o)return o.register(i,a)},[]),p.useEffect(function(){o&&o.register(i,a)},[e,t]),i}var kAe=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],NAe=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],x3=function(t){var r=t.src,n=t.alt,i=t.onPreviewClose,o=t.prefixCls,a=o===void 0?"rc-image":o,s=t.previewPrefixCls,l=s===void 0?"".concat(a,"-preview"):s,c=t.placeholder,d=t.fallback,u=t.width,f=t.height,h=t.style,v=t.preview,y=v===void 0?!0:v,g=t.className,m=t.onClick,S=t.onError,C=t.wrapperClassName,b=t.wrapperStyle,w=t.rootClassName,E=Nt(t,kAe),_=c&&c!==!0,R=Pt(y)==="object"?y:{},P=R.src,I=R.visible,O=I===void 0?void 0:I,A=R.onVisibleChange,x=A===void 0?i:A,T=R.getContainer,D=T===void 0?void 0:T,k=R.mask,j=R.maskClassName,N=R.movable,L=R.icons,M=R.scaleStep,$=R.minScale,F=R.maxScale,z=R.imageRender,H=R.toolbarRender,U=Nt(R,NAe),V=P??r,W=Or(!!O,{value:O,onChange:x}),K=oe(W,2),Z=K[0],q=K[1],Y=Ete({src:r,isCustomPlaceholder:_,fallback:d}),G=oe(Y,3),re=G[0],ee=G[1],ne=G[2],te=p.useState(null),pe=oe(te,2),le=pe[0],ye=pe[1],Se=p.useContext(v0),_e=!!y,De=function(){q(!1),ye(null)},be=ie(a,C,w,J({},"".concat(a,"-error"),ne==="error")),se=p.useMemo(function(){var ke={};return P$.forEach(function(Me){t[Me]!==void 0&&(ke[Me]=t[Me])}),ke},P$.map(function(ke){return t[ke]})),Pe=p.useMemo(function(){return Q(Q({},se),{},{src:V})},[V,se]),Te=$Ae(_e,Pe),ze=function(Me){var qe=yAe(Me.target),Le=qe.left,xe=qe.top;Se?Se.onPreview(Te,V,Le,xe):(ye({x:Le,y:xe}),q(!0)),m==null||m(Me)};return p.createElement(p.Fragment,null,p.createElement("div",$e({},E,{className:be,onClick:_e?ze:m,style:Q({width:u,height:f},b)}),p.createElement("img",$e({},se,{className:ie("".concat(a,"-img"),J({},"".concat(a,"-img-placeholder"),c===!0),g),style:Q({height:f},h),ref:re},ee,{width:u,height:f,onError:S})),ne==="loading"&&p.createElement("div",{"aria-hidden":"true",className:"".concat(a,"-placeholder")},c),k&&_e&&p.createElement("div",{className:ie("".concat(a,"-mask"),j),style:{display:(h==null?void 0:h.display)==="none"?"none":void 0}},k)),!Se&&_e&&p.createElement(Rte,$e({"aria-hidden":!Z,visible:Z,prefixCls:l,onClose:De,mousePosition:le,src:V,alt:n,imageInfo:{width:u,height:f},fallback:d,getContainer:D,icons:L,movable:N,scaleStep:M,minScale:$,maxScale:F,rootClassName:w,imageRender:z,imgCommonProps:se,toolbarRender:H},U)))};x3.PreviewGroup=MAe;var DAe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"};const LAe=DAe;var jAe=function(t,r){return p.createElement(Jt,$e({},t,{ref:r,icon:LAe}))},FAe=p.forwardRef(jAe);const zAe=FAe;var BAe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-
3545.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"};const HAe=BAe;var VAe=function(t,r){return p.createElement(Jt,$e({},t,{ref:r,icon:HAe}))},UAe=p.forwardRef(VAe);const WAe=UAe;var qAe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"};const GAe=qAe;var KAe=function(t,r){return p.createElement(Jt,$e({},t,{ref:r,icon:GAe}))},YAe=p.forwardRef(KAe);const F7=YAe;var XAe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"};const QAe=XAe;var JAe=function(t,r){return p.createElement(Jt,$e({},t,{ref:r,icon:QAe}))},ZAe=p.forwardRef(JAe);const eMe=ZAe;var tMe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"};const rMe=tMe;var nMe=function(t,r){return p.createElement(Jt,$e({},t,{ref:r,icon:rMe}))},iMe=p.forwardRef(nMe);const oMe=iMe,I$=e=>({position:e||"absolute",inset:0}),aMe=e=>{const{iconCls:t,motionDurationSlow:r,paddingXXS:n,marginXXS:i,prefixCls:o,colorTextLightSolid:a}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:a,background:new ar("#000").setA(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${r}`,[`.${o}-mask-info`]:Object.assign(Object.assign({},zs),{padding:`0 ${fe(n)}`,[t]:{marginInlineEnd:i,svg:{verticalAlign:"baseline"}}})}},sMe=e=>{const{previewCls:t,modalMaskBg:r,paddingSM:n,marginXL:i,margin:o,paddingLG:a,previewOperationColorDisabled:s,previewOperationHoverColor:l,motionDurationSlow:c,iconCls:d,colorTextLightSolid:u}=e,f=new ar(r).setA(.1),h=f.clone().setA(.2);return{[`${t}-footer`]:{position:"fixed",bottom:i,left:{_skip_check_:!0,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor,transform:"translateX(-50%)"},[`${t}-progress`]:{marginBottom:o},[`${t}-close`]:{position:"fixed",top:i,right:{_skip_check_:!0,value:i},display:"flex",color:u,backgroundColor:f.toRgbString(),borderRadius:"50%",padding:n,outline:0,border:0,cursor:"pointer",transition:`all ${c}`,"&:hover":{backgroundColor:h.toRgbString()},[`& > ${d}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${fe(a)}`,backgroundColor:f.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:n,padding:n,cursor:"pointer",transition:`all ${c}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${d}`]:{color:l},"&-disabled":{color:s,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${d}`]:{fontSize:e.previewOperationSize}}}}},lMe=e=>{const{modalMaskBg:t,iconCls:r,previewOperationColorDisabled:n,previewCls:i,zIndexPopup:o,motionDurationSlow:a}=e,s=new ar(t).setA(.1),l=s.clone().setA(.2);return{[`${i}-switch-left, ${i}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(o).add(1).equal(),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:s.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${a}`,userSelect:"none","&:hover":{background:l.toRgbString()},"&-disabled":{"&, &:hover":{color:n,background:"transparent",curs
354or:"not-allowed",[`> ${r}`]:{cursor:"not-allowed"}}},[`> ${r}`]:{fontSize:e.previewOperationSize}},[`${i}-switch-left`]:{insetInlineStart:e.marginSM},[`${i}-switch-right`]:{insetInlineEnd:e.marginSM}}},cMe=e=>{const{motionEaseOut:t,previewCls:r,motionDurationSlow:n,componentCls:i}=e;return[{[`${i}-preview-root`]:{[r]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${r}-body`]:Object.assign(Object.assign({},I$()),{overflow:"hidden"}),[`${r}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${n} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},I$()),{transition:`transform ${n} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${r}-moving`]:{[`${r}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${i}-preview-root`]:{[`${r}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${i}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal()},"&":[sMe(e),lMe(e)]}]},uMe=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({},aMe(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},I$())}}},dMe=e=>{const{previewCls:t}=e;return{[`${t}-root`]:g_(e,"zoom"),"&":P4(e,!0)}},fMe=e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new ar(e.colorTextLightSolid).setA(.65).toRgbString(),previewOperationHoverColor:new ar(e.colorTextLightSolid).setA(.85).toRgbString(),previewOperationColorDisabled:new ar(e.colorTextLightSolid).setA(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5}),Pte=Nr("Image",e=>{const t=`${e.componentCls}-preview`,r=sr(e,{previewCls:t,modalMaskBg:new ar("#000").setA(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[uMe(r),cMe(r),kJ(sr(r,{componentCls:t})),dMe(r)]},fMe);var pMe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const Ite={rotateLeft:p.createElement(zAe,null),rotateRight:p.createElement(WAe,null),zoomIn:p.createElement(eMe,null),zoomOut:p.createElement(oMe,null),close:p.createElement(Tl,null),left:p.createElement(ly,null),right:p.createElement(oy,null),flipX:p.createElement(F7,null),flipY:p.createElement(F7,{rotate:90})},hMe=e=>{var{previewPrefixCls:t,preview:r}=e,n=pMe(e,["previewPrefixCls","preview"]);const{getPrefixCls:i,direction:o}=p.useContext(Vt),a=i("image",t),s=`${a}-preview`,l=i(),c=fi(a),[d,u,f]=Pte(a,c),[h]=Od("ImagePreview",typeof r=="object"?r.zIndex:void 0),v=p.useMemo(()=>Object.assign(Object.assign({},Ite),{left:o==="rtl"?p.createElement(oy,null):p.createElement(ly,null),right:o==="rtl"?p.createElement(ly,null):p.createElement(oy,null)}),[o]),y=p.useMemo(()=>{var g;if(r===!1)return r;const m=typeof r=="object"?r:{},S=ie(u,f,c,(g=m.rootClassName)!==null&&g!==void 0?g:"");return Object.assign(Object.assign({},m),{transitionName:Na(l,"zoom",m.transitionName),maskTransitionName:Na(l,"fade",m.maskTransitionName),rootClassName:S,zIndex:h})},[r]);return d(p.createElement(x3.PreviewGroup,Object.assign({preview:y,previewPrefixCls:s,icons:v},n)))},vMe=hMe;var z7=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const xte=e=>{const{prefixCls:t,preview:r,className:n,rootClassName:i,style:o}=e,a=z7(e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:s,getPopupContainer:l,className:c,style:d,preview:u}=Jn("image"),[f]=$o("Image"),h=s("image",t),v=s(),y=fi(h),[g,m,S]=Pte(h,y),C=ie(i,m,S,y),b=ie(n,m,c),[w]=Od("ImagePreview",typeof r=="object"?r.zIndex:void 0),E=p.useMemo(()=>
354{if(r===!1)return r;const R=typeof r=="object"?r:{},{getContainer:P,closeIcon:I,rootClassName:O,destroyOnClose:A,destroyOnHidden:x}=R,T=z7(R,["getContainer","closeIcon","rootClassName","destroyOnClose","destroyOnHidden"]);return Object.assign(Object.assign({mask:p.createElement("div",{className:`${h}-mask-info`},p.createElement(I3,null),f==null?void 0:f.preview),icons:Ite},T),{destroyOnClose:x??A,rootClassName:ie(C,O),getContainer:P??l,transitionName:Na(v,"zoom",R.transitionName),maskTransitionName:Na(v,"fade",R.maskTransitionName),zIndex:w,closeIcon:I??(u==null?void 0:u.closeIcon)})},[r,f,u==null?void 0:u.closeIcon]),_=Object.assign(Object.assign({},d),o);return g(p.createElement(x3,Object.assign({prefixCls:h,preview:E,rootClassName:C,className:b,style:_},a)))};xte.PreviewGroup=vMe;const Ob=xte,gMe=e=>{const{getPrefixCls:t,direction:r}=p.useContext(Vt),{prefixCls:n,className:i}=e,o=t("input-group",n),a=t("input"),[s,l,c]=Lee(a),d=ie(o,c,{[`${o}-lg`]:e.size==="large",[`${o}-sm`]:e.size==="small",[`${o}-compact`]:e.compact,[`${o}-rtl`]:r==="rtl"},l,i),u=p.useContext(Yi),f=p.useMemo(()=>Object.assign(Object.assign({},u),{isFormItemInput:!1}),[u]);return s(p.createElement("span",{className:d,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},p.createElement(Yi.Provider,{value:f},e.children)))},mMe=gMe,yMe=e=>{const{componentCls:t,paddingXS:r}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:r,[`${t}-input-wrapper`]:{position:"relative",[`${t}-mask-icon`]:{position:"absolute",zIndex:"1",top:"50%",right:"50%",transform:"translate(50%, -50%)",pointerEvents:"none"},[`${t}-mask-input`]:{color:"transparent",caretColor:e.colorText},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":"none",margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":"textfield"}},"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},SMe=Nr(["Input","OTP"],e=>{const t=sr(e,kd(e));return yMe(t)},Nd);var CMe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const bMe=p.forwardRef((e,t)=>{const{className:r,value:n,onChange:i,onActiveChange:o,index:a,mask:s}=e,l=CMe(e,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:c}=p.useContext(Vt),d=c("otp"),u=typeof s=="string"?s:n,f=p.useRef(null);p.useImperativeHandle(t,()=>f.current);const h=m=>{i(a,m.target.value)},v=()=>{Gt(()=>{var m;const S=(m=f.current)===null||m===void 0?void 0:m.input;document.activeElement===S&&S&&S.select()})},y=m=>{const{key:S,ctrlKey:C,metaKey:b}=m;S==="ArrowLeft"?o(a-1):S==="ArrowRight"?o(a+1):S==="z"&&(C||b)&&m.preventDefault(),v()},g=m=>{m.key==="Backspace"&&!n&&o(a-1),v()};return p.createElement("span",{className:`${d}-input-wrapper`,role:"presentation"},s&&n!==""&&n!==void 0&&p.createElement("span",{className:`${d}-mask-icon`,"aria-hidden":"true"},u),p.createElement(B_,Object.assign({"aria-label":`OTP Input ${a+1}`,type:s===!0?"password":"text"},l,{ref:f,value:n,onInput:h,onFocus:v,onKeyDown:y,onKeyUp:g,onMouseDown:v,onMouseUp:v,className:ie(r,{[`${d}-mask-input`]:s})})))}),wMe=bMe;var _Me=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function VS(e){return(e||"").split("")}const EMe=e=>{const{index:t,prefixCls:r,separator:n}=e,i=typeof n=="function"?n(t):n;return i?p.createElement("span",{className:`${r}-separator`},i):null},RMe=p.forwardRef((e,t)=>
354{const{prefixCls:r,length:n=6,size:i,defaultValue:o,value:a,onChange:s,formatter:l,separator:c,variant:d,disabled:u,status:f,autoFocus:h,mask:v,type:y,onInput:g,inputMode:m}=e,S=_Me(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:C,direction:b}=p.useContext(Vt),w=C("otp",r),E=lo(S,{aria:!0,data:!0,attr:!0}),[_,R,P]=SMe(w),I=Xi(H=>i??H),O=p.useContext(Yi),A=Td(O.status,f),x=p.useMemo(()=>Object.assign(Object.assign({},O),{status:A,hasFeedback:!1,feedbackIcon:null}),[O,A]),T=p.useRef(null),D=p.useRef({});p.useImperativeHandle(t,()=>({focus:()=>{var H;(H=D.current[0])===null||H===void 0||H.focus()},blur:()=>{var H;for(let U=0;U<n;U+=1)(H=D.current[U])===null||H===void 0||H.blur()},nativeElement:T.current}));const k=H=>l?l(H):H,[j,N]=p.useState(()=>VS(k(o||"")));p.useEffect(()=>{a!==void 0&&N(VS(a))},[a]);const L=lr(H=>{N(H),g&&g(H),s&&H.length===n&&H.every(U=>U)&&H.some((U,V)=>j[V]!==U)&&s(H.join(""))}),M=lr((H,U)=>{let V=Ge(j);for(let K=0;K<H;K+=1)V[K]||(V[K]="");U.length<=1?V[H]=U:V=V.slice(0,H).concat(VS(U)),V=V.slice(0,n);for(let K=V.length-1;K>=0&&!V[K];K-=1)V.pop();const W=k(V.map(K=>K||" ").join(""));return V=VS(W).map((K,Z)=>K===" "&&!V[Z]?V[Z]:K),V}),$=(H,U)=>{var V;const W=M(H,U),K=Math.min(H+U.length,n-1);K!==H&&W[H]!==void 0&&((V=D.current[K])===null||V===void 0||V.focus()),L(W)},F=H=>{var U;(U=D.current[H])===null||U===void 0||U.focus()},z={variant:d,disabled:u,status:A,mask:v,type:y,inputMode:m};return _(p.createElement("div",Object.assign({},E,{ref:T,className:ie(w,{[`${w}-sm`]:I==="small",[`${w}-lg`]:I==="large",[`${w}-rtl`]:b==="rtl"},P,R),role:"group"}),p.createElement(Yi.Provider,{value:x},Array.from({length:n}).map((H,U)=>{const V=`otp-${U}`,W=j[U]||"";return p.createElement(p.Fragment,{key:V},p.createElement(wMe,Object.assign({ref:K=>{D.current[U]=K},index:U,size:I,htmlSize:1,className:`${w}-input`,onChange:$,value:W,onActiveChange:F,autoFocus:U===0&&h},z)),U<n-1&&p.createElement(EMe,{separator:c,index:U,prefixCls:w}))}))))}),PMe=RMe;var IMe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};const xMe=IMe;var OMe=function(t,r){return p.createElement(Jt,$e({},t,{ref:r,icon:xMe}))},TMe=p.forwardRef(OMe);const AMe=TMe;var MMe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const $Me=e=>e?p.createElement(I3,null):p.createElement(AMe,null),kMe={click:"onClick",hover:"onMouseOver"},NMe=p.forwardRef((e,t)=>{const{disabled:r,action:n="click",visibilityToggle:i=!0,iconRender:o=$Me,suffix:a}=e,s=p.useContext(ra),l=r??s,c=typeof i=="object"&&i.visible!==void 0,[d,u]=p.useState(()=>c?i.visible:!1),f=p.useRef(null);p.useEffect(()=>{c&&u(i.visible)},[c,i]);const h=ote(f),v=()=>{var O;if(l)return;d&&h();const A=!d;u(A),typeof i=="object"&&((O=i.onVisibleChange)===null||O===void 0||O.call(i,A))},y=O=>{const A=kMe[n]||"",x=o(d),T={[A]:v,className:`${O}-icon`,key:"passwordIcon",onMouseDown:D=>{D.preventDefault()},onMouseUp:D=>{D.preventDefault()}};return p.cloneElement(p.isValidElement(x)?x:p.createElement("span",null,x),T)},{className:g,prefixCls:m,inputPrefixCls:S,size:C}=e,b=MMe(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:w}=p.useContext(Vt),E=w("input",S),_=w("input-password",m),R=i&&y(_),P=ie(_,g,{[`${_}-${C}`]:!!C}),I=Object.assign(Object.assign({},Dn(b,["suffix","iconRender","visibilityToggle"])),{type:d?"text":"password",className:P,prefixCls:E,suffix:p.createElement(p.Fragment,null,R,a)});return C&&(I.size=C),p.createElement(B_,Object.assign({ref:ui(t,f)},I))}),DMe=NMe;var LMe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const jMe=p.forwardRef((e,t)=>
354{const{prefixCls:r,inputPrefixCls:n,className:i,size:o,suffix:a,enterButton:s=!1,addonAfter:l,loading:c,disabled:d,onSearch:u,onChange:f,onCompositionStart:h,onCompositionEnd:v,variant:y,onPressEnter:g}=e,m=LMe(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd","variant","onPressEnter"]),{getPrefixCls:S,direction:C}=p.useContext(Vt),b=p.useRef(!1),w=S("input-search",r),E=S("input",n),{compactSize:_}=Wc(w,C),R=Xi(z=>{var H;return(H=o??_)!==null&&H!==void 0?H:z}),P=p.useRef(null),I=z=>{z!=null&&z.target&&z.type==="click"&&u&&u(z.target.value,z,{source:"clear"}),f==null||f(z)},O=z=>{var H;document.activeElement===((H=P.current)===null||H===void 0?void 0:H.input)&&z.preventDefault()},A=z=>{var H,U;u&&u((U=(H=P.current)===null||H===void 0?void 0:H.input)===null||U===void 0?void 0:U.value,z,{source:"input"})},x=z=>{b.current||c||(g==null||g(z),A(z))},T=typeof s=="boolean"?p.createElement(vZ,null):null,D=`${w}-button`;let k;const j=s||{},N=j.type&&j.type.__ANT_BUTTON===!0;N||j.type==="button"?k=ka(j,Object.assign({onMouseDown:O,onClick:z=>{var H,U;(U=(H=j==null?void 0:j.props)===null||H===void 0?void 0:H.onClick)===null||U===void 0||U.call(H,z),A(z)},key:"enterButton"},N?{className:D,size:R}:{})):k=p.createElement(hn,{className:D,color:s?"primary":"default",size:R,disabled:d,key:"enterButton",onMouseDown:O,onClick:A,loading:c,icon:T,variant:y==="borderless"||y==="filled"||y==="underlined"?"text":s?"solid":void 0},s),l&&(k=[k,ka(l,{key:"addonAfter"})]);const L=ie(w,{[`${w}-rtl`]:C==="rtl",[`${w}-${R}`]:!!R,[`${w}-with-button`]:!!s},i),M=z=>{b.current=!0,h==null||h(z)},$=z=>{b.current=!1,v==null||v(z)},F=Object.assign(Object.assign({},m),{className:L,prefixCls:E,type:"search",size:R,variant:y,onPressEnter:x,onCompositionStart:M,onCompositionEnd:$,addonAfter:k,suffix:a,onChange:I,disabled:d});return p.createElement(B_,Object.assign({ref:ui(P,t)},F))}),FMe=jMe;var zMe=`
355  min-height:0 !important;
356  max-height:none !important;
357  height:0 !important;
358  visibility:hidden !important;
359  overflow:hidden !important;
360  position:absolute !important;
361  z-index:-1000 !important;
362  top:0 !important;
363  right:0 !important;
364  pointer-events: none !important;
365`,BMe=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],_I={},zo;function HMe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&_I[r])return _I[r];var n=window.getComputedStyle(e),i=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),o=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),a=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),s=BMe.map(function(c){return"".concat(c,":").concat(n.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:o,borderSize:a,boxSizing:i};return t&&r&&(_I[r]=l),l}function VMe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;zo||(zo=document.createElement("textarea"),zo.setAttribute("tab-index","-1"),zo.setAttribute("aria-hidden","true"),zo.setAttribute("name","hiddenTextarea"),document.body.appendChild(zo)),e.getAttribute("wrap")?zo.setAttribute("wrap",e.getAttribute("wrap")):zo.removeAttribute("wrap");var i=HMe(e,t),o=i.paddingSize,a=i.borderSize,s=i.boxSizing,l=i.sizingStyle;zo.setAttribute("style","".concat(l,";").concat(zMe)),zo.value=e.value||e.placeholder||"";var c=void 0,d=void 0,u,f=zo.scrollHeight;if(s==="border-box"?f+=a:s==="content-box"&&(f-=o),r!==null||n!==null){zo.value=" ";var h=zo.scrollHeight-o;r!==null&&(c=h*r,s==="border-box"&&(c=c+o+a),f=Math.max(c,f)),n!==null&&(d=h*n,s==="border-box"&&(d=d+o+a),u=f>d?"":"hidden",f=Math.min(d,f))}var v={height:f,overflowY:u,resize:"none"};return c&&(v.minHeight=c),d&&(v.maxHeight=d),v}var UMe=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],EI=0,RI=1,PI=2,WMe=p.forwardRef(function(e,t){var r=e,n=r.prefixCls,i=r.defaultValue,o=r.value,a=r.autoSize,s=r.onResize,l=r.className,c=r.style,d=r.disabled,u=r.onChange;r.onInternalAutoSize;var f=Nt(r,UMe),h=Or(i,{value:o,postState:function(z){return z??""}}),v=oe(h,2),y=v[0],g=v[1],m=function(z){g(z.target.value),u==null||u(z)},S=p.useRef();p.useImperativeHandle(t,function(){return{textArea:S.current}});var C=p.useMemo(function(){return a&&Pt(a)==="object"?[a.minRows,a.maxRows]:[]}
365,[a]),b=oe(C,2),w=b[0],E=b[1],_=!!a,R=p.useState(PI),P=oe(R,2),I=P[0],O=P[1],A=p.useState(),x=oe(A,2),T=x[0],D=x[1],k=function(){O(EI)};nr(function(){_&&k()},[o,w,E,_]),nr(function(){if(I===EI)O(RI);else if(I===RI){var F=VMe(S.current,!1,w,E);O(PI),D(F)}},[I]);var j=p.useRef(),N=function(){Gt.cancel(j.current)},L=function(z){I===PI&&(s==null||s(z),a&&(N(),j.current=Gt(function(){k()})))};p.useEffect(function(){return N},[]);var M=_?T:null,$=Q(Q({},c),M);return(I===EI||I===RI)&&($.overflowY="hidden",$.overflowX="hidden"),p.createElement(ao,{onResize:L,disabled:!(a||s)},p.createElement("textarea",$e({},f,{ref:S,style:$,className:ie(n,l,J({},"".concat(n,"-disabled"),d)),disabled:d,value:y,onChange:m})))}),qMe=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],GMe=de.forwardRef(function(e,t){var r,n=e.defaultValue,i=e.value,o=e.onFocus,a=e.onBlur,s=e.onChange,l=e.allowClear,c=e.maxLength,d=e.onCompositionStart,u=e.onCompositionEnd,f=e.suffix,h=e.prefixCls,v=h===void 0?"rc-textarea":h,y=e.showCount,g=e.count,m=e.className,S=e.style,C=e.disabled,b=e.hidden,w=e.classNames,E=e.styles,_=e.onResize,R=e.onClear,P=e.onPressEnter,I=e.readOnly,O=e.autoSize,A=e.onKeyDown,x=Nt(e,qMe),T=Or(n,{value:i,defaultValue:n}),D=oe(T,2),k=D[0],j=D[1],N=k==null?"":String(k),L=de.useState(!1),M=oe(L,2),$=M[0],F=M[1],z=de.useRef(!1),H=de.useState(null),U=oe(H,2),V=U[0],W=U[1],K=p.useRef(null),Z=p.useRef(null),q=function(){var Ee;return(Ee=Z.current)===null||Ee===void 0?void 0:Ee.textArea},Y=function(){q().focus()};p.useImperativeHandle(t,function(){var je;return{resizableTextArea:Z.current,focus:Y,blur:function(){q().blur()},nativeElement:((je=K.current)===null||je===void 0?void 0:je.nativeElement)||q()}}),p.useEffect(function(){F(function(je){return!C&&je})},[C]);var G=de.useState(null),re=oe(G,2),ee=re[0],ne=re[1];de.useEffect(function(){if(ee){var je;(je=q()).setSelectionRange.apply(je,Ge(ee))}},[ee]);var te=tte(g,y),pe=(r=te.max)!==null&&r!==void 0?r:c,le=Number(pe)>0,ye=te.strategy(N),Se=!!pe&&ye>pe,_e=function(Ee,Re){var me=Re;!z.current&&te.exceedFormatter&&te.max&&te.strategy(Re)>te.max&&(me=te.exceedFormatter(Re,{max:te.max}),Re!==me&&ne([q().selectionStart||0,q().selectionEnd||0])),j(me),Pb(Ee.currentTarget,Ee,s,me)},De=function(Ee){z.current=!0,d==null||d(Ee)},be=function(Ee){z.current=!1,_e(Ee,Ee.currentTarget.value),u==null||u(Ee)},se=function(Ee){_e(Ee,Ee.target.value)},Pe=function(Ee){Ee.key==="Enter"&&P&&P(Ee),A==null||A(Ee)},Te=function(Ee){F(!0),o==null||o(Ee)},ze=function(Ee){F(!1),a==null||a(Ee)},ke=function(Ee){j(""),Y(),Pb(q(),Ee,s)},Me=f,qe;te.show&&(te.showFormatter?qe=te.showFormatter({value:N,count:ye,maxLength:pe}):qe="".concat(ye).concat(le?" / ".concat(pe):""),Me=de.createElement(de.Fragment,null,Me,de.createElement("span",{className:ie("".concat(v,"-data-count"),w==null?void 0:w.count),style:E==null?void 0:E.count},qe)));var Le=function(Ee){var Re;_==null||_(Ee),(Re=q())!==null&&Re!==void 0&&Re.style.height&&W(!0)},xe=!O&&!y&&!l;return de.createElement(E3,{ref:K,value:N,allowClear:l,handleReset:ke,suffix:Me,prefixCls:v,classNames:Q(Q({},w),{},{affixWrapper:ie(w==null?void 0:w.affixWrapper,J(J({},"".concat(v,"-show-count"),y),"".concat(v,"-textarea-allow-clear"),l))}),disabled:C,focused:$,className:ie(m,Se&&"".concat(v,"-out-of-range")),style:Q(Q({},S),V&&!xe?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof qe=="string"?qe:void 0}},hidden:b,readOnly:I,onClear:R},de.createElement(WMe,$e({},x,{autoSize:O,maxLength:c,onKeyDown:Pe,onChange:se,onFocus:Te,onBlur:ze,onCompositionStart:De,onCompositionEnd:be,className:ie(w==null?void 0:w.textarea),style:Q(Q({},E==null?void 0:E.textarea),{},{resize:S==null?void 0:S.resize}),disabled:C,prefixCls:v,onResize:Le,ref:Z,readOnly:I})))});const KMe=e=>{const{componentCls:t,paddingLG:r}=e,n=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[n]:{position:"relative","&-show-count":{[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
366        &-allow-clear > ${t},
367        &-affix-wrapper${n}-has-feedback ${t}
368      `]:{paddingInlineEnd:r},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${n}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},YMe=Nr(["Input","TextArea"],e=>{const t=sr(e,kd(e));return KMe(t)},Nd,{resetFont:!1});var XMe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const QMe=p.forwardRef((e,t)=>
368{var r;const{prefixCls:n,bordered:i=!0,size:o,disabled:a,status:s,allowClear:l,classNames:c,rootClassName:d,className:u,style:f,styles:h,variant:v,showCount:y,onMouseDown:g,onResize:m}=e,S=XMe(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:C,direction:b,allowClear:w,autoComplete:E,className:_,style:R,classNames:P,styles:I}=Jn("textArea"),O=p.useContext(ra),A=a??O,{status:x,hasFeedback:T,feedbackIcon:D}=p.useContext(Yi),k=Td(x,s),j=p.useRef(null);p.useImperativeHandle(t,()=>{var te;return{resizableTextArea:(te=j.current)===null||te===void 0?void 0:te.resizableTextArea,focus:pe=>{var le,ye;_3((ye=(le=j.current)===null||le===void 0?void 0:le.resizableTextArea)===null||ye===void 0?void 0:ye.textArea,pe)},blur:()=>{var pe;return(pe=j.current)===null||pe===void 0?void 0:pe.blur()}}});const N=C("input",n),L=fi(N),[M,$,F]=Dee(N,d),[z]=YMe(N,L),{compactSize:H,compactItemClassnames:U}=Wc(N,b),V=Xi(te=>{var pe;return(pe=o??H)!==null&&pe!==void 0?pe:te}),[W,K]=Ad("textArea",v,i),Z=ite(l??w),[q,Y]=p.useState(!1),[G,re]=p.useState(!1),ee=te=>{Y(!0),g==null||g(te);const pe=()=>{Y(!1),document.removeEventListener("mouseup",pe)};document.addEventListener("mouseup",pe)},ne=te=>{var pe,le;if(m==null||m(te),q&&typeof getComputedStyle=="function"){const ye=(le=(pe=j.current)===null||pe===void 0?void 0:pe.nativeElement)===null||le===void 0?void 0:le.querySelector("textarea");ye&&getComputedStyle(ye).resize==="both"&&re(!0)}};return M(z(p.createElement(GMe,Object.assign({autoComplete:E},S,{style:Object.assign(Object.assign({},R),f),styles:Object.assign(Object.assign({},I),h),disabled:A,allowClear:Z,className:ie(F,L,u,d,U,_,G&&`${N}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},c),P),{textarea:ie({[`${N}-sm`]:V==="small",[`${N}-lg`]:V==="large"},$,c==null?void 0:c.textarea,P.textarea,q&&`${N}-mouse-active`),variant:ie({[`${N}-${W}`]:K},kc(N,k)),affixWrapper:ie(`${N}-textarea-affix-wrapper`,{[`${N}-affix-wrapper-rtl`]:b==="rtl",[`${N}-affix-wrapper-sm`]:V==="small",[`${N}-affix-wrapper-lg`]:V==="large",[`${N}-textarea-show-count`]:y||((r=e.count)===null||r===void 0?void 0:r.show)},$)}),prefixCls:N,suffix:T&&p.createElement("span",{className:`${N}-textarea-suffix`},D),showCount:y,ref:j,onResize:ne,onMouseDown:ee}))))}),Ote=QMe,th=B_;th.Group=mMe;th.Search=FMe;th.TextArea=Ote;th.Password=DMe;th.OTP=PMe;const Un=th;var JMe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};const ZMe=JMe;var e$e=function(t,r){return p.createElement(Jt,$e({},t,{ref:r,icon:ZMe}))},t$e=p.forwardRef(e$e);const B7=t$e;var r$e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};const n$e=r$e;var i$e=function(t,r){return p.createElement(Jt,$e({},t,{ref:r,icon:n$e}))},o$e=p.forwardRef(i$e);const H7=o$e;var a$e={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},s$e=[10,20,50,100],l$e=function(t){var r=t.pageSizeOptions,n=r===void 0?s$e:r,i=t.locale,o=t.changeSize,a=t.pageSize,s=t.goButton,l=t.quickGo,c=t.rootPrefixCls,d=t.disabled,u=t.buildOptionText,f=t.showSizeChanger,h=t.sizeChangerRender,v=de.useState(""),y=oe(v,2),g=y[0],m=y[1],S=function(){return!g||Number.isNaN(g)?void 0:Number(g)},C=typeof u=="function"?u:function(A){return"".concat(A," ").concat(i.items_per_page)},b=function(x){m(x.target.value)},w=function(x){s||g===""||(m(""),!(x.relatedTarget&&(x.relatedTarget.className.indexOf("".concat(c,"-item-link"))>=0||x.relatedTarget.className.indexOf("".concat(c,"-item"))>=0))&&(l==null||l(S())))},E=function(x){g!==""&&(x.keyCode===Ue.ENTER||x.type==="click")&&(m(""),l==null||l(S()))},_=function(){return n.some(function(x){return x.toString()===a.toString()})?n:n.concat([a]).sort(function(x,T){var D=Number.isNaN(Number(x))?0:Number(x),k=Number.isNaN(Number(T))?0:Number(T);return D-k})},R="".concat(c,"-options");
368if(!f&&!l)return null;var P=null,I=null,O=null;return f&&h&&(P=h({disabled:d,size:a,onSizeChange:function(x){o==null||o(Number(x))},"aria-label":i.page_size,className:"".concat(R,"-size-changer"),options:_().map(function(A){return{label:C(A),value:A}})})),l&&(s&&(O=typeof s=="boolean"?de.createElement("button",{type:"button",onClick:E,onKeyUp:E,disabled:d,className:"".concat(R,"-quick-jumper-button")},i.jump_to_confirm):de.createElement("span",{onClick:E,onKeyUp:E},s)),I=de.createElement("div",{className:"".concat(R,"-quick-jumper")},i.jump_to,de.createElement("input",{disabled:d,type:"text",value:g,onChange:b,onKeyUp:E,onBlur:w,"aria-label":i.page}),i.page,O)),de.createElement("li",{className:R},P,I)},zh=function(t){var r=t.rootPrefixCls,n=t.page,i=t.active,o=t.className,a=t.showTitle,s=t.onClick,l=t.onKeyPress,c=t.itemRender,d="".concat(r,"-item"),u=ie(d,"".concat(d,"-").concat(n),J(J({},"".concat(d,"-active"),i),"".concat(d,"-disabled"),!n),o),f=function(){s(n)},h=function(g){l(g,s,n)},v=c(n,"page",de.createElement("a",{rel:"nofollow"},n));return v?de.createElement("li",{title:a?String(n):null,className:u,onClick:f,onKeyDown:h,tabIndex:0},v):null},c$e=function(t,r,n){return n};function V7(){}function U7(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function hu(e,t,r){var n=typeof e>"u"?t:e;return Math.floor((r-1)/n)+1}var u$e=function(t){var r=t.prefixCls,n=r===void 0?"rc-pagination":r,i=t.selectPrefixCls,o=i===void 0?"rc-select":i,a=t.className,s=t.current,l=t.defaultCurrent,c=l===void 0?1:l,d=t.total,u=d===void 0?0:d,f=t.pageSize,h=t.defaultPageSize,v=h===void 0?10:h,y=t.onChange,g=y===void 0?V7:y,m=t.hideOnSinglePage,S=t.align,C=t.showPrevNextJumpers,b=C===void 0?!0:C,w=t.showQuickJumper,E=t.showLessItems,_=t.showTitle,R=_===void 0?!0:_,P=t.onShowSizeChange,I=P===void 0?V7:P,O=t.locale,A=O===void 0?a$e:O,x=t.style,T=t.totalBoundaryShowSizeChanger,D=T===void 0?50:T,k=t.disabled,j=t.simple,N=t.showTotal,L=t.showSizeChanger,M=L===void 0?u>D:L,$=t.sizeChangerRender,F=t.pageSizeOptions,z=t.itemRender,H=z===void 0?c$e:z,U=t.jumpPrevIcon,V=t.jumpNextIcon,W=t.prevIcon,K=t.nextIcon,Z=de.useRef(null),q=Or(10,{value:f,defaultValue:v}),Y=oe(q,2),G=Y[0],re=Y[1],ee=Or(1,{value:s,defaultValue:c,postState:function(dt){return Math.max(1,Math.min(dt,hu(void 0,G,u)))}}),ne=oe(ee,2),te=ne[0],pe=ne[1],le=de.useState(te),ye=oe(le,2),Se=ye[0],_e=ye[1];p.useEffect(function(){_e(te)},[te]);var De=Math.max(1,te-(E?3:5)),be=Math.min(hu(void 0,G,u),te+(E?3:5));function se(ht,dt){var Et=ht||de.createElement("button",{type:"button","aria-label":dt,className:"".concat(n,"-item-link")});return typeof ht=="function"&&(Et=de.createElement(ht,Q({},t))),Et}function Pe(ht){var dt=ht.target.value,Et=hu(void 0,G,u),pr;return dt===""?pr=dt:Number.isNaN(Number(dt))?pr=Se:dt>=Et?pr=Et:pr=Number(dt),pr}function Te(ht){return U7(ht)&&ht!==te&&U7(u)&&u>0}var ze=u>G?w:!1;function ke(ht){(ht.keyCode===Ue.UP||ht.keyCode===Ue.DOWN)&&ht.preventDefault()}function Me(ht){var dt=Pe(ht);switch(dt!==Se&&_e(dt),ht.keyCode){case Ue.ENTER:xe(dt);break;case Ue.UP:xe(dt-1);break;case Ue.DOWN:xe(dt+1);break}}function qe(ht){xe(Pe(ht))}function Le(ht){var dt=hu(ht,G,u),Et=te>dt&&dt!==0?dt:te;re(ht),_e(Et),I==null||I(te,ht),pe(Et),g==null||g(Et,ht)}function xe(ht){if(Te(ht)&&!k){var dt=hu(void 0,G,u),Et=ht;return ht>dt?Et=dt:ht<1&&(Et=1),Et!==Se&&_e(Et),pe(Et),g==null||g(Et,G),Et}return te}var je=te>1,Ee=te<hu(void 0,G,u);function Re(){je&&xe(te-1)}function me(){Ee&&xe(te+1)}function ce(){xe(De)}function Ae(){xe(be)}function We(ht,dt){if(ht.key==="Enter"||ht.charCode===Ue.ENTER||ht.keyCode===Ue.ENTER){for(var Et=arguments.length,pr=new Array(Et>2?Et-2:0),br=2;br<Et;br++)pr[br-2]=arguments[br];dt.apply(void 0,pr)}}function lt(ht){We(ht,Re)}function yt(ht){We(ht,me)}function nt(ht){We(ht,ce)}function it(ht){We(ht,Ae)}function gt(ht){var dt=H(ht,"prev",se(W,"prev page"));return de.isValidElement(dt)?de.cloneElement(dt,{disabled:!je}):dt}function Ye(ht){var dt=H(ht,"next",se(K,"next page"));return de.isValidElement(dt)?de.cloneElement(dt,{disabled:!Ee}):dt}function vt(ht){(ht.type==="click"||ht.keyCode===Ue.ENTER)&&xe(Se)}var mt=null,St=lo(t,{aria:!0,data:!0}),pt=N&&de.createElement("li",{className:"".concat(n,"-total-text")},N(u,[u===0?0:(te-1)*G+1,te*G>u?u:te*G])),Rt=null,ae=hu(void 0,G,u);if(m&&u<=G)return null;var ue=[],ve={rootPrefixCls:n,onClick:xe,onKeyPress:We,showTitle:R,itemRender:H,page:-1},Ce=te-1>0?te-1:0,Fe=te+1<ae?te+1:ae,Ze=w&&w.goButton,et=Pt(j)==="object"?j.readOnly:!j,tt=Ze,ot=null;j&&(Ze&&(typeof Ze=="boolean"?tt=de.createElement("button",{type:"button",onClick:vt,onKeyUp:vt},A.jump_to_confirm):tt=de.createElement("span",{onClick:vt,onKeyUp:vt},Ze),tt=de.createElement("li",{title:R?"".concat(A.jump_to).concat(te,"/").concat(ae):null,className:"".concat(n,"-simple-pager")},tt)),ot=de.createElement("li",{title:R?"".concat(te,"/").concat(ae):null,className:"".concat(n,"-simple-pager")},et?Se:de.createElement("input",{type:"text","aria-label":A.jump_to,value:Se,disabled:k,onKeyDown:ke,onKeyUp:Me,onCh
368ange:Me,onBlur:qe,size:3}),de.createElement("span",{className:"".concat(n,"-slash")},"/"),ae));var rt=E?1:2;if(ae<=3+rt*2){ae||ue.push(de.createElement(zh,$e({},ve,{key:"noPager",page:1,className:"".concat(n,"-item-disabled")})));for(var ft=1;ft<=ae;ft+=1)ue.push(de.createElement(zh,$e({},ve,{key:ft,page:ft,active:te===ft})))}else{var ge=E?A.prev_3:A.prev_5,we=E?A.next_3:A.next_5,Ie=H(De,"jump-prev",se(U,"prev page")),Ne=H(be,"jump-next",se(V,"next page"));b&&(mt=Ie?de.createElement("li",{title:R?ge:null,key:"prev",onClick:ce,tabIndex:0,onKeyDown:nt,className:ie("".concat(n,"-jump-prev"),J({},"".concat(n,"-jump-prev-custom-icon"),!!U))},Ie):null,Rt=Ne?de.createElement("li",{title:R?we:null,key:"next",onClick:Ae,tabIndex:0,onKeyDown:it,className:ie("".concat(n,"-jump-next"),J({},"".concat(n,"-jump-next-custom-icon"),!!V))},Ne):null);var Be=Math.max(1,te-rt),Xe=Math.min(te+rt,ae);te-1<=rt&&(Xe=1+rt*2),ae-te<=rt&&(Be=ae-rt*2);for(var He=Be;He<=Xe;He+=1)ue.push(de.createElement(zh,$e({},ve,{key:He,page:He,active:te===He})));if(te-1>=rt*2&&te!==1+2&&(ue[0]=de.cloneElement(ue[0],{className:ie("".concat(n,"-item-after-jump-prev"),ue[0].props.className)}),ue.unshift(mt)),ae-te>=rt*2&&te!==ae-2){var ct=ue[ue.length-1];ue[ue.length-1]=de.cloneElement(ct,{className:ie("".concat(n,"-item-before-jump-next"),ct.props.className)}),ue.push(Rt)}Be!==1&&ue.unshift(de.createElement(zh,$e({},ve,{key:1,page:1}))),Xe!==ae&&ue.push(de.createElement(zh,$e({},ve,{key:ae,page:ae})))}var at=gt(Ce);if(at){var Je=!je||!ae;at=de.createElement("li",{title:R?A.prev_page:null,onClick:Re,tabIndex:Je?null:0,onKeyDown:lt,className:ie("".concat(n,"-prev"),J({},"".concat(n,"-disabled"),Je)),"aria-disabled":Je},at)}var ut=Ye(Fe);if(ut){var st,_t;j?(st=!Ee,_t=je?0:null):(st=!Ee||!ae,_t=st?null:0),ut=de.createElement("li",{title:R?A.next_page:null,onClick:me,tabIndex:_t,onKeyDown:yt,className:ie("".concat(n,"-next"),J({},"".concat(n,"-disabled"),st)),"aria-disabled":st},ut)}var zt=ie(n,a,J(J(J(J(J({},"".concat(n,"-start"),S==="start"),"".concat(n,"-center"),S==="center"),"".concat(n,"-end"),S==="end"),"".concat(n,"-simple"),j),"".concat(n,"-disabled"),k));return de.createElement("ul",$e({className:zt,style:x,ref:Z},St),pt,at,j?ot:ue,ut,de.createElement(l$e,{locale:A,rootPrefixCls:n,disabled:k,selectPrefixCls:o,changeSize:Le,pageSize:G,pageSizeOptions:F,quickGo:ze?xe:null,goButton:tt,showSizeChanger:M,sizeChangerRender:$}))};const d$e=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},f$e=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:fe(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:fe(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:fe(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`
369    &${t}-mini ${t}-prev ${t}-item-link,
370    &${t}-mini ${t}-next ${t}-item-link
371    `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:fe(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:fe(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:fe(e.itemSizeSM),input
vendor: 5,894 bytes, lines 371-383
371:Object.assign(Object.assign({},v3(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},p$e=e=>{const{componentCls:t}=e;return{[`
372    &${t}-simple ${t}-prev,
373    &${t}-simple ${t}-next
374    `]:{height:e.itemSizeSM,lineHeight:fe(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:fe(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${fe(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${fe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${fe(e.inputOutlineOffset)} 0 ${fe(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},h$e=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`
375    ${t}-prev,
376    ${t}-jump-prev,
377    ${t}-jump-next
378    `]:{marginInlineEnd:e.marginXS},[`
379    ${t}-prev,
380    ${t}-next,
381    ${t}-jump-prev,
382    ${t}-jump-next
383    `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:fe(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${fe(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:fe(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},h0(e)),c3(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},L_(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},v$e=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:fe(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${fe(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${fe(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},g$e=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Kr(e)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:fe(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),v$e(e)),h$e(e)),p$e(e)),f$e(e)),d$e(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},m$e=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},Mc(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}
383},ny(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:ny(e)}}}},Tte=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},Nd(e)),Ate=e=>sr(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},kd(e)),y$e=Nr("Pagination",e=>{const t=Ate(e);return[g$e(t),m$e(t)]},Tte),S$e=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${fe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},C$e=Wp(["Pagination","bordered"],e=>{const t=Ate(e);return S$e(t)},Tte);function W7(e){return p.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}var b$e=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const w$e=e=>{const{align:t,prefixCls:r,selectPrefixCls:n,className:i,rootClassName:o,style:a,size:s,locale:l,responsive:c,showSizeChanger:d,selectComponentClass:u,pageSizeOptions:f}=e,h=b$e(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:v}=q4(c),[,y]=ko(),{getPrefixCls:g,direction:m,showSizeChanger:S,className:C,style:b}=Jn("pagination"),w=g("pagination",r),[E,_,R]=y$e(w),P=Xi(s),I=P==="small"||!!(v&&!P&&c),[O]=$o("Pagination",dQ),A=Object.assign(Object.assign({},O),l),[x,T]=W7(d),[D,k]=W7(S),j=x??D,N=T??k,L=u||ks,M=p.useMemo(()=>f?f.map(V=>Number(V)):void 0,[f]),$=V=>{var W;const{disabled:K,size:Z,onSizeChange:q,"aria-label":Y,className:G,options:re}=V,{className:ee,onChange:ne}=N||{},te=(W=re.find(pe=>String(pe.value)===String(Z)))===null||W===void 0?void 0:W.value;return p.createElement(L,Object.assign({disabled:K,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:pe=>pe.parentNode,"aria-label":Y,options:re},N,{value:te,onChange:(pe,le)=>{q==null||q(pe),ne==null||ne(pe,le)},size:I?"small":"middle",className:ie(G,ee)}))},F=p.useMemo(()=>{const V=p.createElement("span",{className:`${w}-item-ellipsis`},"•••"),W=p.createElement("button",{className:`${w}-item-link`,type:"button",tabIndex:-1},m==="rtl"?p.createElement(oy,null):p.createElement(ly,null)),K=p.createElement("button",{className:`${w}-item-link`,type:"button",tabIndex:-1},m==="rtl"?p.createElement(ly,null):p.createElement(oy,null)),Z=p.createElement("a",{className:`${w}-item-link`},p.createElement("div",{className:`${w}-item-container`},m==="rtl"?p.createElement(H7,{className:`${w}-item-link-icon`}):p.createElement(B7,{className:`${w}-item-link-icon`}),V)),q=p.createElement("a",{className:`${w}-item-link`},p.createElement("div",{className:`${w}-item-container`},m==="rtl"?p.createElement(B7,{className:`${w}-item-link-icon`}):p.createElement(H7,{className:`${w}-item-link-icon`}),V));return{prevIcon:W,nextIcon:K,jumpPrevIcon:Z,jumpNextIcon:q}},[m,w]),z=g("select",n),H=ie({[`${w}-${t}`]:!!t,[`${w}-mini`]:I,[`${w}-rtl`]:m==="rtl",[`${w}-bordered`]:y.wireframe},C,i,o,_,R),U=Object.assign(Object.assign({},b),a);return E(p.createElement(p.Fragment,null,y.wireframe&&p.createElement(C$e,{prefixCls:w}),p.createElement(u$e,Object.assign({},F,h,{style:U,prefixCls:w,selectPrefixCls:z,className:H,locale:A,pageSizeOptions:M,showSizeChanger:j,sizeChangerRender:$}))))},_$e=w$e,Tb=100,Mte=Tb/5,$te=Tb/2-Mte/2,II=$te*2*Math.PI,q7=50,G7=e=>{const{dotClassName:t,style:r,hasCircleCls:n}=e;return p.createElement("circle",{className:ie(`${t}-circle`,{[`${t}-circle-bg`]:n}
vendor: 3,913 bytes, line 383
383),r:$te,cx:q7,cy:q7,strokeWidth:Mte,style:r})},E$e=({percent:e,prefixCls:t})=>{const r=`${t}-dot`,n=`${r}-holder`,i=`${n}-hidden`,[o,a]=p.useState(!1);nr(()=>{e!==0&&a(!0)},[e!==0]);const s=Math.max(Math.min(e,100),0);if(!o)return null;const l={strokeDashoffset:`${II/4}`,strokeDasharray:`${II*s/100} ${II*(100-s)/100}`};return p.createElement("span",{className:ie(n,`${r}-progress`,s<=0&&i)},p.createElement("svg",{viewBox:`0 0 ${Tb} ${Tb}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":s},p.createElement(G7,{dotClassName:r,hasCircleCls:!0}),p.createElement(G7,{dotClassName:r,style:l})))},R$e=E$e;function P$e(e){const{prefixCls:t,percent:r=0}=e,n=`${t}-dot`,i=`${n}-holder`,o=`${i}-hidden`;return p.createElement(p.Fragment,null,p.createElement("span",{className:ie(i,r>0&&o)},p.createElement("span",{className:ie(n,`${t}-dot-spin`)},[1,2,3,4].map(a=>p.createElement("i",{className:`${t}-dot-item`,key:a})))),p.createElement(R$e,{prefixCls:t,percent:r}))}function I$e(e){var t;const{prefixCls:r,indicator:n,percent:i}=e,o=`${r}-dot`;return n&&p.isValidElement(n)?ka(n,{className:ie((t=n.props)===null||t===void 0?void 0:t.className,o),percent:i}):p.createElement(P$e,{prefixCls:r,percent:i})}const x$e=new mr("antSpinMove",{to:{opacity:1}}),O$e=new mr("antRotate",{to:{transform:"rotate(405deg)"}}),T$e=e=>{const{componentCls:t,calc:r}=e;return{[t]:Object.assign(Object.assign({},Kr(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:r(r(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:r(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:r(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:r(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:r(r(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:r(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:r(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:r(r(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:r(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}
383},[`${t}-dot-progress`]:{position:"absolute",inset:0},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:r(e.dotSize).sub(r(e.marginXXS).div(2)).div(2).equal(),height:r(e.dotSize).sub(r(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:x$e,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:O$e,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(n=>`${n} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:r(r(e.dotSizeSM).sub(r(e.marginXXS).div(2))).div(2).equal(),height:r(r(e.dotSizeSM).sub(r(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:r(r(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:r(r(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},A$e=e=>{const{controlHeightLG:t,controlHeight:r}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:r}},M$e=Nr("Spin",e=>{const t=sr(e,{spinDotDefault:e.colorTextDescription});return T$e(t)},A$e),$$e=200,K7=[[30,.05],[70,.03],[96,.01]];function k$e(e,t){const[r,n]=p.useState(0),i=p.useRef(null),o=t==="auto";return p.useEffect(()=>(o&&e&&(n(0),i.current=setInterval(()=>{n(a=>{const s=100-a;for(let l=0;l<K7.length;l+=1){const[c,d]=K7[l];if(a<=c)return a+s*d}return a})},$$e)),()=>{clearInterval(i.current)}),[o,e]),o?r:t}var N$e=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};let kte;function D$e(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}const Nte=e=>{var t;const{prefixCls:r,spinning:n=!0,delay:i=0,className:o,rootClassName:a,size:s="default",tip:l,wrapperClassName:c,style:d,children:u,fullscreen:f=!1,indicator:h,percent:v}=e,y=N$e(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:g,direction:m,className:S,style:C,indicator:b}=Jn("spin"),w=g("spin",r),[E,_,R]=M$e(w),[P,I]=p.useState(()=>n&&!D$e(n,i)),O=k$e(P,v);p.useEffect(()=>{if(n){const N=qee(i,()=>{I(!0)});return N(),()=>{var L;(L=N==null?void 0:N.cancel)===null||L===void 0||L.call(N)}}I(!1)},[i,n]);const A=p.useMemo(()=>typeof u<"u"&&!f,[u,f]),x=ie(w,S,{[`${w}-sm`]:s==="small",[`${w}-lg`]:s==="large",[`${w}-spinning`]:P,[`${w}-show-text`]:!!l,[`${w}-rtl`]:m==="rtl"},o,!f&&a,_,R),T=ie(`${w}-container`,{[`${w}-blur`]:P}),D=(t=h??b)!==null&&t!==void 0?t:kte,k=Object.assign(Object.assign({},C),d),j=p.createElement("div",Object.assign({},y,{style:k,className:x,"aria-live":"polite","aria-busy":P}),p.createElement(I$e,{prefixCls:w,indicator:D,percent:O}),l&&(A||f)?p.createElement("div",{className:`${w}-text`},l):null);return E(A?p.createElement("div",Object.assign({},y,{className:ie(`${w}-nested-loading`,c,_,R)}),P&&p.createElement("div",{key:"loading"},j),p.createElement("div",{className:T,key:"container"},u)):f?p.createElement("div",{className:ie(`${w}-fullscreen`,{[`${w}-fullscreen-show`]:P},a,_,R)},j):j)};Nte.setDefaultIndicator=e=>{kte=e};const na=Nte,L$e=(e,t=!1)=>t&&e==null?[]:Array.isArray(e)?e:[e],j$e=L$e;let Sa=null,Gu=e=>e(),fy=[],py={};function Y7(){const{getContainer:e,duration:t,rtl:r,maxCount:n,top:i}=py,o=(e==null?void 0:e())||document.body;return{getContainer:()=>o,duration:t,rtl:r,maxCount:n,top:i}}const F$e=de.forwardRef((e,t)=>
383{const{messageConfig:r,sync:n}=e,{getPrefixCls:i}=p.useContext(Vt),o=py.prefixCls||i("message"),a=p.useContext(Rbe),[s,l]=tJ(Object.assign(Object.assign(Object.assign({},r),{prefixCls:o}),a.message));return de.useImperativeHandle(t,()=>{const c=Object.assign({},s);return Object.keys(c).forEach(d=>{c[d]=(...u)=>(n(),s[d].apply(s,u))}),{instance:c,sync:n}}),l}),z$e=de.forwardRef((e,t)=>{const[r,n]=de.useState(Y7),i=()=>{n(Y7)};de.useEffect(i,[]);const o=BQ(),a=o.getRootPrefixCls(),s=o.getIconPrefixCls(),l=o.getTheme(),c=de.createElement(F$e,{ref:t,sync:i,messageConfig:r});return de.createElement(Ii,{prefixCls:a,iconPrefixCls:s,theme:l},o.holderRender?o.holderRender(c):c)}),H_=()=>{if(!Sa){const e=document.createDocumentFragment(),t={fragment:e};Sa=t,Gu(()=>{E4()(de.createElement(z$e,{ref:n=>{const{instance:i,sync:o}=n||{};Promise.resolve().then(()=>{!t.instance&&i&&(t.instance=i,t.sync=o,H_())})}}),e)});return}Sa.instance&&(fy.forEach(e=>{const{type:t,skipped:r}=e;if(!r)switch(t){case"open":{Gu(()=>{const n=Sa.instance.open(Object.assign(Object.assign({},py),e.config));n==null||n.then(e.resolve),e.setCloseFn(n)});break}case"destroy":Gu(()=>{Sa==null||Sa.instance.destroy(e.key)});break;default:Gu(()=>{var n;const i=(n=Sa.instance)[t].apply(n,Ge(e.args));i==null||i.then(e.resolve),e.setCloseFn(i)})}}),fy=[])};function B$e(e){py=Object.assign(Object.assign({},py),e),Gu(()=>{var t;(t=Sa==null?void 0:Sa.sync)===null||t===void 0||t.call(Sa)})}function H$e(e){const t=w4(r=>{let n;const i={type:"open",config:e,resolve:r,setCloseFn:o=>{n=o}};return fy.push(i),()=>{n?Gu(()=>{n()}):i.skipped=!0}});return H_(),t}function V$e(e,t){const r=w4(n=>{let i;const o={type:e,args:t,resolve:n,setCloseFn:a=>{i=a}};return fy.push(o),()=>{i?Gu(()=>{i()}):o.skipped=!0}});return H_(),r}const U$e=e=>{fy.push({type:"destroy",key:e}),H_()},W$e=["success","info","warning","error","loading"],q$e={open:H$e,destroy:U$e,config:B$e,useMessage:n0e,_InternalPanelDoNotUseOrYouWillBeFired:Yye},Dte=q$e;W$e.forEach(e=>{Dte[e]=(...t)=>V$e(e,t)});const bt=Dte;var G$e=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const K$e=e=>{const{prefixCls:t,className:r,closeIcon:n,closable:i,type:o,title:a,children:s,footer:l}=e,c=G$e(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:d}=p.useContext(Vt),u=d(),f=t||d("modal"),h=fi(u),[v,y,g]=LJ(f,h),m=`${f}-confirm`;let S={};return o?S={closable:i??!1,title:"",footer:"",children:p.createElement(FJ,Object.assign({},e,{prefixCls:f,confirmPrefixCls:m,rootPrefixCls:u,content:s}))}:S={closable:i??!0,title:a,footer:l!==null&&p.createElement(MJ,Object.assign({},e)),children:s},v(p.createElement(mJ,Object.assign({prefixCls:f,className:ie(y,`${f}-pure-panel`,o&&m,o&&`${m}-${o}`,r,g,h)},c,{closeIcon:AJ(f,n),closable:i},S)))},Y$e=KJ(K$e);function Lte(e){return s0(VJ(e))}const fs=jJ;fs.useModal=Ebe;fs.info=function(t){return s0(UJ(t))};fs.success=function(t){return s0(WJ(t))};fs.error=function(t){return s0(qJ(t))};fs.warning=Lte;fs.warn=Lte;fs.confirm=function(t){return s0(GJ(t))};fs.destroyAll=function(){for(;Wu.length;){const t=Wu.pop();t&&t()}};fs.config=Sbe;fs._InternalPanelDoNotUseOrYouWillBeFired=Y$e;const V_=fs;var X$e={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Q$e=function(){var t=p.useRef([]),r=p.useRef(null);return p.useEffect(function(){var n=Date.now(),i=!1;t.current.forEach(function(o){if(o){i=!0;var a=o.style;a.transitionDuration=".3s, .3s, .3s, .06s",r.current&&n-r.current<100&&(a.transitionDuration="0s, 0s")}}),i&&(r.current=Date.now())}),t.current},X7=0,J$e=Pi();function Z$e(){var e;return J$e?(e=X7,X7+=1):e="TEST_OR_SSR",e}const eke=function(e){var t=p.useState(),r=oe(t,2),n=r[0],i=r[1];return p.useEffect(function(){i("rc_progress_".concat(Z$e()))},[]),e||n};var Q7=function(t){var r=t.bg,n=t.children;return p.createElement("div",{style:{width:"100%",height:"100%",background:r}},n)};function J7(e,t){return Object.keys(e).map(function(r){var n=parseFloat(r),i="".concat(Math.floor(n*t),"%");return"".concat(e[r]," ").concat(i)})}
383var tke=p.forwardRef(function(e,t){var r=e.prefixCls,n=e.color,i=e.gradientId,o=e.radius,a=e.style,s=e.ptg,l=e.strokeLinecap,c=e.strokeWidth,d=e.size,u=e.gapDegree,f=n&&Pt(n)==="object",h=f?"#FFF":void 0,v=d/2,y=p.createElement("circle",{className:"".concat(r,"-circle-path"),r:o,cx:v,cy:v,stroke:h,strokeLinecap:l,strokeWidth:c,opacity:s===0?0:1,style:a,ref:t});if(!f)return y;var g="".concat(i,"-conic"),m=u?"".concat(180+u/2,"deg"):"0deg",S=J7(n,(360-u)/360),C=J7(n,1),b="conic-gradient(from ".concat(m,", ").concat(S.join(", "),")"),w="linear-gradient(to ".concat(u?"bottom":"top",", ").concat(C.join(", "),")");return p.createElement(p.Fragment,null,p.createElement("mask",{id:g},y),p.createElement("foreignObject",{x:0,y:0,width:d,height:d,mask:"url(#".concat(g,")")},p.createElement(Q7,{bg:w},p.createElement(Q7,{bg:b}))))}),Jg=100,xI=function(t,r,n,i,o,a,s,l,c,d){var u=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,f=n/100*360*((360-a)/360),h=a===0?0:{bottom:0,top:180,left:90,right:-90}[s],v=(100-i)/100*r;c==="round"&&i!==100&&(v+=d/2,v>=r&&(v=r-.01));var y=Jg/2;return{stroke:typeof l=="string"?l:void 0,strokeDasharray:"".concat(r,"px ").concat(t),strokeDashoffset:v+u,transform:"rotate(".concat(o+f+h,"deg)"),transformOrigin:"".concat(y,"px ").concat(y,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},rke=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Z7(e){var t=e??[];return Array.isArray(t)?t:[t]}var nke=function(t){var r=Q(Q({},X$e),t),n=r.id,i=r.prefixCls,o=r.steps,a=r.strokeWidth,s=r.trailWidth,l=r.gapDegree,c=l===void 0?0:l,d=r.gapPosition,u=r.trailColor,f=r.strokeLinecap,h=r.style,v=r.className,y=r.strokeColor,g=r.percent,m=Nt(r,rke),S=Jg/2,C=eke(n),b="".concat(C,"-gradient"),w=S-a/2,
383E=Math.PI*2*w,_=c>0?90+c/2:-90,R=E*((360-c)/360),P=Pt(o)==="object"?o:{count:o,gap:2},I=P.count,O=P.gap,A=Z7(g),x=Z7(y),T=x.find(function($){return $&&Pt($)==="object"}),D=T&&Pt(T)==="object",k=D?"butt":f,j=xI(E,R,0,100,_,c,d,u,k,a),N=Q$e(),L=function(){var F=0;return A.map(function(z,H){var U=x[H]||x[x.length-1],V=xI(E,R,F,z,_,c,d,U,k,a);return F+=z,p.createElement(tke,{key:H,color:U,ptg:z,radius:w,prefixCls:i,gradientId:b,style:V,strokeLinecap:k,strokeWidth:a,gapDegree:c,ref:function(K){N[H]=K},size:Jg})}).reverse()},M=function(){var F=Math.round(I*(A[0]/100)),z=100/I,H=0;return new Array(I).fill(null).map(function(U,V){var W=V<=F-1?x[0]:u,K=W&&Pt(W)==="object"?"url(#".concat(b,")"):void 0,Z=xI(E,R,H,z,_,c,d,W,"butt",a,O);return H+=(R-Z.strokeDashoffset+O)*100/R,p.createElement("circle",{key:V,className:"".concat(i,"-circle-path"),r:w,cx:S,cy:S,stroke:K,strokeWidth:a,opacity:1,style:Z,ref:function(Y){N[V]=Y}})})};return p.createElement("svg",$e({className:ie("".concat(i,"-circle"),v),viewBox:"0 0 ".concat(Jg," ").concat(Jg),style:h,id:n,role:"presentation"},m),!I&&p.createElement("circle",{className:"".concat(i,"-circle-trail"),r:w,cx:S,cy:S,stroke:u,strokeLinecap:k,strokeWidth:s||a,style:j}),I?M():L())};function Rc(e){return!e||e<0?0:e>100?100:e}function Ab({success:e,successPercent:t}){let r=t;return e&&"progress"in e&&(r=e.progress),e&&"percent"in e&&(r=e.percent),r}const ike=({percent:e,success:t,successPercent:r})=>{const n=Rc(Ab({success:t,successPercent:r}));return[n,Rc(Rc(e)-n)]},oke=({success:e={},strokeColor:t})=>{const{strokeColor:r}=e;return[r||ep.green,t||null]},U_=(e,t,r)=>{var n,i,o,a;let s=-1,l=-1;if(t==="step"){const c=r.steps,d=r.strokeWidth;typeof e=="string"||typeof e>"u"?(s=e==="small"?2:14,l=d??8):typeof e=="number"?[s,l]=[e,e]:[s=14,l=8]=Array.isArray(e)?e:[e.width,e.height],s*=c}else if(t==="line"){const c=r==null?void 0:r.strokeWidth;typeof e=="string"||typeof e>"u"?l=c||(e==="small"?6:8):typeof e=="number"?[s,l]=[e,e]:[s=-1,l=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[s,l]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[s,l]=[e,e]:Array.isArray(e)&&(s=(i=(n=e[0])!==null&&n!==void 0?n:e[1])!==null&&i!==void 0?i:120,l=(a=(o=e[0])!==null&&o!==void 0?o:e[1])!==null&&a!==void 0?a:120));return[s,l]},ake=3,ske=e=>ake/e*100,lke=e=>{const{prefixCls:t,trailColor:r=null,strokeLinecap:n="round",gapPosition:i,gapDegree:o,width:a=120,type:s,children:l,success:c,size:d=a,steps:u}=e,[f,h]=U_(d,"circle");let{strokeWidth:v}=e;v===void 0&&(v=Math.max(ske(f),6));const y={width:f,height:h,fontSize:f*.15+6},g=p.useMemo(()=>{if(o||o===0)return o;if(s==="dashboard")return 75},[o,s]),m=ike(e),S=i||s==="dashboard"&&"bottom"||void 0,C=Object.prototype.toString.call(e.strokeColor)==="[object Object]",b=oke({success:c,strokeColor:e.strokeColor}),w=ie(`${t}-inner`,{[`${t}-circle-gradient`]:C}),E=p.createElement(nke,{steps:u,percent:u?m[1]:m,strokeWidth:v,trailWidth:v,strokeColor:u?b[1]:b,strokeLinecap:n,trailColor:r,prefixCls:t,gapDegree:g,gapPosition:S}),_=f<=20,R=p.createElement("div",{className:w,style:y},E,!_&&l);return _?p.createElement(co,{title:l},R):R},cke=lke,Mb="--progress-line-stroke-color",jte="--progress-percent",eF=e=>{const t=e?"100%":"-100%";return new mr(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},uke=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:Object.assign(Object.assign({},Kr(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${Mb})`]},height:"100%",width:`calc(1 / var(${jte}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[r]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${fe(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBg
383Container,borderRadius:e.lineBorderRadius,opacity:0,animationName:eF(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:eF(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},dke=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[r]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},fke=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},pke=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${r}`]:{fontSize:e.fontSizeSM}}}},hke=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),vke=Nr("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),r=sr(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[uke(r),dke(r),fke(r),pke(r)]},hke);var gke=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const mke=e=>{let t=[];return Object.keys(e).forEach(r=>{const n=parseFloat(r.replace(/%/g,""));Number.isNaN(n)||t.push({key:n,value:e[r]})}),t=t.sort((r,n)=>r.key-n.key),t.map(({key:r,value:n})=>`${n} ${r}%`).join(", ")},yke=(e,t)=>{const{from:r=ep.blue,to:n=ep.blue,direction:i=t==="rtl"?"to left":"to right"}=e,o=gke(e,["from","to","direction"]);if(Object.keys(o).length!==0){const s=mke(o),l=`linear-gradient(${i}, ${s})`;return{background:l,[Mb]:l}}const a=`linear-gradient(${i}, ${r}, ${n})`;return{background:a,[Mb]:a}},Ske=e=>{const{prefixCls:t,direction:r,percent:n,size:i,strokeWidth:o,strokeColor:a,strokeLinecap:s="round",children:l,trailColor:c=null,percentPosition:d,success:u}=e,{align:f,type:h}=d,v=a&&typeof a!="string"?yke(a,r):{[Mb]:a,background:a},y=s==="square"||s==="butt"?0:void 0,g=i??[-1,o||(i==="small"?6:8)],[m,S]=U_(g,"line",{strokeWidth:o}),C={backgroundColor:c||void 0,borderRadius:y},b=Object.assign(Object.assign({width:`${Rc(n)}%`,height:S,borderRadius:y},v),{[jte]:Rc(n)/100}),w=Ab(e),E={width:`${Rc(w)}%`,height:S,borderRadius:y,backgroundColor:u==null?void 0:u.strokeColor},_={width:m<0?"100%":m},R=p.createElement("div",{className:`${t}-inner`,style:C},p.createElement("div",{className:ie(`${t}-bg`,`${t}-bg-${h}`),style:b},h==="inner"&&l),w!==void 0&&p.createElement("div",{className:`${t}-success-bg`,style:E}
383)),P=h==="outer"&&f==="start",I=h==="outer"&&f==="end";return h==="outer"&&f==="center"?p.createElement("div",{className:`${t}-layout-bottom`},R,l):p.createElement("div",{className:`${t}-outer`,style:_},P&&l,R,I&&l)},Cke=Ske,bke=e=>{const{size:t,steps:r,rounding:n=Math.round,percent:i=0,strokeWidth:o=8,strokeColor:a,trailColor:s=null,prefixCls:l,children:c}=e,d=n(r*(i/100)),f=t??[t==="small"?2:14,o],[h,v]=U_(f,"step",{steps:r,strokeWidth:o}),y=h/r,g=Array.from({length:r});for(let m=0;m<r;m++){const S=Array.isArray(a)?a[m]:a;g[m]=p.createElement("div",{key:m,className:ie(`${l}-steps-item`,{[`${l}-steps-item-active`]:m<=d-1}),style:{backgroundColor:m<=d-1?S:s,width:y,height:v}})}return p.createElement("div",{className:`${l}-steps-outer`},g,c)},wke=bke;var _ke=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const Eke=["normal","exception","active","success"],Rke=p.forwardRef((e,t)=>{const{prefixCls:r,className:n,rootClassName:i,steps:o,strokeColor:a,percent:s=0,size:l="default",showInfo:c=!0,type:d="line",status:u,format:f,style:h,percentPosition:v={}}=e,y=_ke(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:g="end",type:m="outer"}=v,S=Array.isArray(a)?a[0]:a,C=typeof a=="string"||Array.isArray(a)?a:void 0,b=p.useMemo(()=>{if(S){const L=typeof S=="string"?S:Object.values(S)[0];return new ar(L).isLight()}return!1},[a]),w=p.useMemo(()=>{var L,M;const $=Ab(e);return parseInt($!==void 0?(L=$??0)===null||L===void 0?void 0:L.toString():(M=s??0)===null||M===void 0?void 0:M.toString(),10)},[s,e.success,e.successPercent]),E=p.useMemo(()=>!Eke.includes(u)&&w>=100?"success":u||"normal",[u,w]),{getPrefixCls:_,direction:R,progress:P}=p.useContext(Vt),I=_("progress",r),[O,A,x]=vke(I),T=d==="line",D=T&&!o,k=p.useMemo(()=>{if(!c)return null;const L=Ab(e);let M;const $=f||(z=>`${z}%`),F=T&&b&&m==="inner";return m==="inner"||f||E!=="exception"&&E!=="success"?M=$(Rc(s),Rc(L)):E==="exception"?M=T?p.createElement(Uc,null):p.createElement(Tl,null):E==="success"&&(M=T?p.createElement(Gp,null):p.createElement(u0,null)),p.createElement("span",{className:ie(`${I}-text`,{[`${I}-text-bright`]:F,[`${I}-text-${g}`]:D,[`${I}-text-${m}`]:D}),title:typeof M=="string"?M:void 0},M)},[c,s,w,E,d,I,f]);let j;d==="line"?j=o?p.createElement(wke,Object.assign({},e,{strokeColor:C,prefixCls:I,steps:typeof o=="object"?o.count:o}),k):p.createElement(Cke,Object.assign({},e,{strokeColor:S,prefixCls:I,direction:R,percentPosition:{align:g,type:m}}),k):(d==="circle"||d==="dashboard")&&(j=p.createElement(cke,Object.assign({},e,{strokeColor:S,prefixCls:I,progressStatus:E}),k));const N=ie(I,`${I}-status-${E}`,{[`${I}-${d==="dashboard"&&"circle"||d}`]:d!=="line",[`${I}-inline-circle`]:d==="circle"&&U_(l,"circle")[0]<=20,[`${I}-line`]:D,[`${I}-line-align-${g}`]:D,[`${I}-line-position-${m}`]:D,[`${I}-steps`]:o,[`${I}-show-info`]:c,[`${I}-${l}`]:typeof l=="string",[`${I}-rtl`]:R==="rtl"},P==null?void 0:P.className,n,i,A,x);return O(p.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},P==null?void 0:P.style),h),className:N,role:"progressbar","aria-valuenow":w,"aria-valuemin":0,"aria-valuemax":100},Dn(y,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),j))}),hy=Rke;var Pke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M842 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254S258 594.3 258 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 168.7 126.6 307.9 290 327.6V884H326.7c-13.7 0-24.7 14.3-24.7 32v36c0 4.4 2.8 8 6.2 8h407.6c3.4 0 6.2-3.6 6.2-8v-36c0-17.7-11-32-24.7-32H548V782.1c165.3-18 294-158 294-328.1zM512 624c93.9 0 170-75.2 170-168V232c0-92.8-76.1-168-170-168s-170 75.2-170 168v224c0 92.8 76.1 168 170 168zm-94-392c0-50.6 41.9-92 94-92s94 41.4 94 92v224c0 50.6-41.9 92-94 92s-94-41.4-94-92V232z"}}]},name:"audio",theme:"outlined"};const Ike=Pke;var xke=function(t,r){return p.createElement(Jt,$e({},t,{ref:r,icon:Ike}))},Oke=p.forwardRef(xke);const Tke=Oke;var Ake={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6a25.95 25.95 0 0025.6 30.4h723c1.5 0 3-.1 4.4-.4a25.88 25.88 0 0021.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z"}}]},name:"clear",theme:"outlined"};const Mke=Ake;var $ke=function(t,r){return p.createElement(Jt,$e({},t,{ref:r,icon:Mke}))}
383,kke=p.forwardRef($ke);const tF=kke;var Nke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};const Dke=Nke;var Lke=function(t,r){return p.createElement(Jt,$e({},t,{ref:r,icon:Dke}))},jke=p.forwardRef(Lke);const Fke=jke;var zke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M899.6 276.5L705 396.4 518.4 147.5a8.06 8.06 0 00-12.9 0L319 396.4 124.3 276.5c-5.7-3.5-13.1 1.2-12.2 7.9L188.5 865c1.1 7.9 7.9 14 16 14h615.1c8 0 14.9-6 15.9-14l76.4-580.6c.8-6.7-6.5-11.4-12.3-7.9zm-126 534.1H250.3l-53.8-409.4 139.8 86.1L512 252.9l175.7 234.4 139.8-86.1-53.9 409.4zM512 509c-62.1 0-112.6 50.5-112.6 112.6S449.9 734.2 512 734.2s112.6-50.5 112.6-112.6S574.1 509 512 509zm0 160.9c-26.6 0-48.2-21.6-48.2-48.3 0-26.6 21.6-48.3 48.2-48.3s48.2 21.6 48.2 48.3c0 26.6-21.6 48.3-48.2 48.3z"}}]},name:"crown",theme:"outlined"};const Bke=zke;var Hke=function(t,r){return p.createElement(Jt,$e({},t,{ref:r,icon:Bke}))},Vke=p.forwardRef(Hke);const Uke=Vke;var Wke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};const qke=Wke;var Gke=function(t,r){return p.createElement(Jt,$e({},t,{ref:r,icon:qke}))},Kke=p.forwardRef(Gke);const Yke=Kke;var Xke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};const Qke=Xke;var Jke=function(t,r){return p.createElement(Jt,$e({},t,{ref:r,icon:Qke}))},Zke=p.forwardRef(Jke);const eNe=Zke;var tNe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};const rNe=tNe;var nNe=function(t,r){return p.createElement(Jt,$e({},t,{ref:r,icon:rNe}))},iNe=p.forwardRef(nNe);const oNe=iNe;var aNe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"};const sNe=aNe;var lNe=function(t,r){return p.createElement(Jt,$e({},t,{ref:r,icon:sNe}))},cNe=p.forwardRef(lNe);const uNe=cNe;var dNe={icon:function(t,r){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:r}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}}]}},name:"file",theme:"twotone"};const fNe=dNe;var pNe=function(t,r){return p.createElement(Jt,$e({},t,{ref:r,icon:fNe}))},hNe=p.forwardRef(pNe);const vNe=hNe;
383var gNe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"};const mNe=gNe;var yNe=function(t,r){return p.createElement(Jt,$e({},t,{ref:r,icon:mNe}))},SNe=p.forwardRef(yNe);const CNe=SNe;var bNe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"};const wNe=bNe;var _Ne=function(t,r){return p.createElement(Jt,$e({},t,{ref:r,icon:wNe}))},ENe=p.forwardRef(_Ne);const RNe=ENe;var PNe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"};const INe=PNe;var xNe=function(t,r){return p.createElement(Jt,$e({},t,{ref:r,icon:INe}))},ONe=p.forwardRef(xNe);const TNe=ONe;var ANe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.6 230.2L779.1 123.8a80.83 80.83 0 00-57.3-23.8c-21.7 0-42.1 8.5-57.4 23.8L549.8 238.4a80.83 80.83 0 00-23.8 57.3c0 21.7 8.5 42.1 23.8 57.4l83.8 83.8A393.82 393.82 0 01553.1 553 395.34 395.34 0 01437 633.8L353.2 550a80.83 80.83 0 00-57.3-23.8c-21.7 0-42.1 8.5-57.4 23.8L123.8 664.5a80.89 80.89 0 00-23.8 57.4c0 21.7 8.5 42.1 23.8 57.4l106.3 106.3c24.4 24.5 58.1 38.4 92.7 38.4 7.3 0 14.3-.6 21.2-1.8 134.8-22.2 268.5-93.9 376.4-201.7C828.2 612.8 899.8 479.2 922.3 344c6.8-41.3-6.9-83.8-36.7-113.8z"}}]},name:"phone",theme:"filled"};const MNe=ANe;var $Ne=function(t,r){return p.createElement(Jt,$e({},t,{ref:r,icon:MNe}))},kNe=p.forwardRef($Ne);const NNe=kNe;var DNe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M877.1 238.7L770.6 132.3c-13-13-30.4-20.3-48.8-20.3s-35.8 7.2-48.8 20.3L558.3 246.8c-13 13-20.3 30.5-20.3 48.9 0 18.5 7.2 35.8 20.3 48.9l89.6 89.7a405.46 405.46 0 01-86.4 127.3c-36.7 36.9-79.6 66-127.2 86.6l-89.6-89.7c-13-13-30.4-20.3-48.8-20.3a68.2 68.2 0 00-48.8 20.3L132.3 673c-13 13-20.3 30.5-20.3 48.9 0 18.5 7.2 35.8 20.3 48.9l106.4 106.4c22.2 22.2 52.8 34.9 84.2 34.9 6.5 0 12.8-.5 19.2-1.6 132.4-21.8 263.8-92.3 369.9-198.3C818 606 888.4 474.6 910.4 342.1c6.3-37.6-6.3-76.3-33.3-103.4zm-37.6 91.5c-19.5 117.9-82.9 235.5-178.4 331s-213 158.9-330.9 178.4c-14.8 2.5-30-2.5-40.8-13.2L184.9 721.9 295.7 611l119.8 120 .9.9 21.6-8a481.29 481.29 0 00285.7-285.8l8-21.6-120.8-120.7 110.8-110.9 104.5 104.5c10.8 10.8 15.8 26 13.3 40.8z"}}]},name:"phone",theme:"outlined"};const LNe=DNe;var jNe=function(t,r){return p.createElement(Jt,$e({},t,{ref:r,icon:LNe}))},FNe=p.forwardRef(jNe);const zNe=FNe;var BNe={icon:function(t,r){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:r}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:r}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:r}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:t}}]}},name:"picture",theme:"twotone"};const HNe=BNe;var VNe=function(t,r){return p.createElement(Jt,$e({},t,{ref:r,icon:HNe}))},UNe=p.forwardRef(VNe);const WNe=UNe;var qNe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M719.4 499.1l-296.1-215A15.9 15.9 0 00398 297v430c0 13.1 14.8 20.5 25.3 12.9l296.1-215a15.9 15.9 0 000-25.8zm-257.6 134V390.9L628.5 512 461.8 633.1z"}}
383]},name:"play-circle",theme:"outlined"};const GNe=qNe;var KNe=function(t,r){return p.createElement(Jt,$e({},t,{ref:r,icon:GNe}))},YNe=p.forwardRef(KNe);const g0=YNe;var XNe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M705.6 124.9a8 8 0 00-11.6 7.2v64.2c0 5.5 2.9 10.6 7.5 13.6a352.2 352.2 0 0162.2 49.8c32.7 32.8 58.4 70.9 76.3 113.3a355 355 0 0127.9 138.7c0 48.1-9.4 94.8-27.9 138.7a355.92 355.92 0 01-76.3 113.3 353.06 353.06 0 01-113.2 76.4c-43.8 18.6-90.5 28-138.5 28s-94.7-9.4-138.5-28a353.06 353.06 0 01-113.2-76.4A355.92 355.92 0 01184 650.4a355 355 0 01-27.9-138.7c0-48.1 9.4-94.8 27.9-138.7 17.9-42.4 43.6-80.5 76.3-113.3 19-19 39.8-35.6 62.2-49.8 4.7-2.9 7.5-8.1 7.5-13.6V132c0-6-6.3-9.8-11.6-7.2C178.5 195.2 82 339.3 80 506.3 77.2 745.1 272.5 943.5 511.2 944c239 .5 432.8-193.3 432.8-432.4 0-169.2-97-315.7-238.4-386.7zM480 560h64c4.4 0 8-3.6 8-8V88c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8z"}}]},name:"poweroff",theme:"outlined"};const QNe=XNe;var JNe=function(t,r){return p.createElement(Jt,$e({},t,{ref:r,icon:QNe}))},ZNe=p.forwardRef(JNe);const e4e=ZNe;var t4e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"};const r4e=t4e;var n4e=function(t,r){return p.createElement(Jt,$e({},t,{ref:r,icon:r4e}))},i4e=p.forwardRef(n4e);const $b=i4e;var o4e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M925.6 405.1l-203-253.7a6.5 6.5 0 00-5-2.4H306.4c-1.9 0-3.8.9-5 2.4l-203 253.7a6.5 6.5 0 00.2 8.3l408.6 459.5c1.2 1.4 3 2.1 4.8 2.1 1.8 0 3.5-.8 4.8-2.1l408.6-459.5a6.5 6.5 0 00.2-8.3zM645.2 206.4l34.4 133.9-132.5-133.9h98.1zm8.2 178.5H370.6L512 242l141.4 142.9zM378.8 206.4h98.1L344.3 340.3l34.5-133.9zm-53.4 7l-44.1 171.5h-93.1l137.2-171.5zM194.6 434.9H289l125.8 247.7-220.2-247.7zM512 763.4L345.1 434.9h333.7L512 763.4zm97.1-80.8L735 434.9h94.4L609.1 682.6zm133.6-297.7l-44.1-171.5 137.2 171.5h-93.1z"}}]},name:"sketch",theme:"outlined"};const a4e=o4e;var s4e=function(t,r){return p.createElement(Jt,$e({},t,{ref:r,icon:a4e}))},l4e=p.forwardRef(s4e);const c4e=l4e;var u4e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M140 188h584v164h76V144c0-17.7-14.3-32-32-32H96c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h544v-76H140V188z"}},{tag:"path",attrs:{d:"M414.3 256h-60.6c-3.4 0-6.4 2.2-7.6 5.4L219 629.4c-.3.8-.4 1.7-.4 2.6 0 4.4 3.6 8 8 8h55.1c3.4 0 6.4-2.2 7.6-5.4L322 540h196.2L422 261.4a8.42 8.42 0 00-7.7-5.4zm12.4 228h-85.5L384 360.2 426.7 484zM936 528H800v-93c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v93H592c-13.3 0-24 10.7-24 24v176c0 13.3 10.7 24 24 24h136v152c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V752h136c13.3 0 24-10.7 24-24V552c0-13.3-10.7-24-24-24zM728 680h-88v-80h88v80zm160 0h-88v-80h88v80z"}}]},name:"translation",theme:"outlined"};const d4e=u4e;var f4e=function(t,r){return p.createElement(Jt,$e({},t,{ref:r,icon:d4e}))},p4e=p.forwardRef(f4e);const Fte=p4e;
383var h4e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"};const v4e=h4e;var g4e=function(t,r){return p.createElement(Jt,$e({},t,{ref:r,icon:v4e}))},m4e=p.forwardRef(g4e);const y4e=m4e,S4e=()=>p.createElement("svg",{width:"252",height:"294"},p.createElement("title",null,"No Found"),p.createElement("g",{fill:"none",fillRule:"evenodd"},p.createElement("circle",{cx:"126.75",cy:"128.1",r:"126",fill:"#E4EBF7"}),p.createElement("circle",{cx:"31.55",cy:"130.8",r:"8.3",fill:"#FFF"}),p.createElement("path",{stroke:"#FFF",d:"m37 134.3 10.5 6m.9 6.2-12.7 10.8",strokeWidth:"2"}),p.createElement("path",{fill:"#FFF",d:"M39.9 159.4a5.7 5.7 0 1 1-11.3-1.2 5.7 5.7 0 0 1 11.3 1.2m17.7-16.2a5.7 5.7 0 1 1-11.4-1.1 5.7 5.7 0 0 1 11.4 1.1M99 27h29.8a4.6 4.6 0 1 0 0-9.2H99a4.6 4.6 0 1 0 0 9.2m11.4 18.3h29.8a4.6 4.6 0 0 0 0-9.2h-29.8a4.6 4.6 0 1 0 0 9.2"}),p.createElement("path",{fill:"#FFF",d:"M112.8 26.9h15.8a4.6 4.6 0 1 0 0 9.1h-15.8a4.6 4.6 0 0 0 0-9.1m71.7 108.8a10 10 0 1 1-19.8-2 10 10 0 0 1 19.8 2"}),p.createElement("path",{stroke:"#FFF",d:"m179.3 141.8 12.6 7.1m1.1 7.6-15.2 13",strokeWidth:"2"}),p.createElement("path",{fill:"#FFF",d:"M184.7 170a6.8 6.8 0 1 1-13.6-1.3 6.8 6.8 0 0 1 13.6 1.4m18.6-16.8a6.9 6.9 0 1 1-13.7-1.4 6.9 6.9 0 0 1 13.7 1.4"}),p.createElement("path",{stroke:"#FFF",d:"M152 192.3a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.4 0zm73.3-76.2a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.5 0zm-9 35a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.5 0zM177 107.6a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm18.4-15.4a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.5 0zm6.8 88.5a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.5 0z",strokeWidth:"2"}),p.createElement("path",{stroke:"#FFF",d:"m214.4 153.3-2 20.2-10.8 6m-28-4.7-6.3 9.8H156l-4.5 6.5m23.5-66v-15.7m46 7.8-13 8-15.2-8V94.4",strokeWidth:"2"}),p.createElement("path",{fill:"#FFF",d:"M166.6 66h-4a4.8 4.8 0 0 1-4.7-4.8 4.8 4.8 0 0 1 4.7-4.7h4a4.8 4.8 0 0 1 4.7 4.7 4.8 4.8 0 0 1-4.7 4.7"}),p.createElement("circle",{cx:"204.3",cy:"30",r:"29.5",fill:"#1677ff"}),p.createElement("path",{fill:"#FFF",d:"M206 38.4c.5.5.7 1.1.7 2s-.2 1.4-.7 1.9a3 3 0 0 1-2 .7c-.8 0-1.5-.3-2-.8s-.8-1.1-.8-1.9.3-1.4.8-2c.5-.4 1.2-.7 2-.7.7 0 1.4.3 2 .8m4.2-19.5c1.5 1.3 2.2 3 2.2 5.2a7.2 7.2 0 0 1-1.5 4.5l-3 2.7a5 5 0 0 0-1.3 1.7 5.2 5.2 0 0 0-.6 2.4v.5h-4v-.5c0-1.4.1-2.5.6-3.5s1.9-2.5 4.2-4.5l.4-.5a4 4 0 0 0 1-2.6c0-1.2-.4-2-1-2.8-.7-.6-1.6-1-2.9-1-1.5 0-2.6.5-3.3 1.5-.4.5-.6 1-.8 1.9a2 2 0 0 1-2 1.6 2 2 0 0 1-2-2.4c.4-1.6 1-2.8 2.1-3.8a8.5 8.5 0 0 1 6.3-2.3c2.3 0 4.2.6 5.6 2"}),p.createElement("path",{fill:"#FFB594",d:"M52 76.1s21.8 5.4 27.3 16c5.6 10.7-6.3 9.2-15.7 5C52.8 92 39 85 52 76"}),p.createElement("path",{fill:"#FFC6A0",d:"m90.5 67.5-.5 2.9c-.7.5-4.7-2.7-4.7-2.7l-1.7.8-1.3-5.7s6.8-4.6 9-5c2.4-.5 9.8 1 10.6 2.3 0 0 1.3.4-2.2.6-3.6.3-5 .5-6.8 3.2l-2.4 3.6"}),p.createElement("path",{fill:"#FFF",d:"M128 111.4a36.7 36.7 0 0 0-8.9-15.5c-3.5-3-9.3-2.2-11.3-4.2-1.3-1.2-3.2-1.2-3.2-1.2L87.7 87c-2.3-.4-2.1-.7-6-1.4-1.6-1.9-3-1.1-3-1.1l-7-1.4c-1-1.5-2.5-1-2.5-1l-2.4-.9C65 91.2 59 95 59 95c1.8 1.1 15.7 8.3 15.7 8.3l5.1 37.1s-3.3 5.7 1.4 9.1c0 0 19.9-3.7 34.9-.3 0 0 3-2.6 1-8.8.5-3 1.4-8.3 1.7-11.6.4.7 2 1.9 3.1 3.4 0 0 9.4-7.3 11-14a17 17 0 0 1-2.2-2.4c-.5-.8-.3-2-.7-2.8-.7-1-1.8-1.3-2-1.6"}),p.createElement("path",{fill:"#CBD1D1",d:"M101 290s4.4 2 7.4 1c2.9-1 4.6.7 7.1 1.2 2.6.5 6.9 1.1 11.7-1.3 0-5.5-6.9-4-12-6.7-2.5-1.4-3.7-4.7-3.5-8.8h-9.5s-1.2 10.6-1 14.6"}),p.createElement("path",{fill:"#2B0849",d:"M101 289.8s2.5 1.3 6.8.7c3-.5 3.7.5 7.4 1 3.8.6 10.8 0 11.9-.9.4 1.1-.4 2-.4 2s-1.5.7-4.8.9c-2 .1-5.8.3-7.6-.5-1.8-1.4-5.2-1.9-5.7-.2-4 1-7.4-.3-7.4-.3l-.1-2.7z"}),p.createElement("path",{fill:"#A4AABA",d:"M108.3 276h3.1s0 6.7 4.6 8.6c-4.7.6-8.6-2.3-7.7-8.6"}),p.createElement("path",{fill:"#CBD1D1",d:"M57.5 272.4s-2 7.4-4.4 12.3c-1.8 3.7-4.3 7.5 5.4 7.5 6.7 0 9-.5 7.4-6.6-1.5-6.1.3-13.2.3-13.2h-8.7z"}),p.createElement("path",{fill:"#2B0849",d:"M51.5 289.8s2 1.2 6.6 1.2c6 0 8.3-1.7 8.3-1.7s.6 1.1-.7 2.2c-1 .8-3.6 1.6-7.4 1.5-4.1 0-5.8-.5-6.7-1.1-.8-.6-.7-1.6-.1-2.1"}),p.createElement("path",{fill:"#A4AABA",d:"M58.4 274.3s0 1.5-.3 3c-.3 1.4-1 3-1.1 4 0 1.2 4.5 1.7 5.1.1.6-1.5 1.3-6.4 2-7.2.6-.9-5-2.2-5.7.1"}),p.createElement("path",{fill:"#7BB2F9",d:"m99.7 278.5 13.3.1s1.3-54.5 1.9-64.4c.5-9.9 3.8-43.4 1-63.1l-12.6-.7-22.8.8-1.2 10c0 .5-.7.8-.7 1.4-.1.5.4 1.3.3 2-2.4 14-6.4 33-8.8 46.6 0 .7-1.2 1-1.4 2.7 0 .3.2 1.5 0 1.8-6.8 18.7-10.9 47.8-14.2 61.9h14.6s2.2-8.6 4-17c2.9-12.9 23.2-85 23.2-85l3-.5 1 46.3s-.2 1.2.4 2c.5.8-.6 1.1-.4 2.3l.4 1.8-1 11.8c-.4 4.8 0 39.2 0 39.2"}),p.createElement("path",{stroke:"#648BD8",d:"M76 221.6c1.2.1 4.1-2 7-5m23.4 8.5s2.7-1 6-3.8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),p.createElement("path",{stroke:"#648BD8",d:"M107.3 222.1s2.7-1.1 6-3.9",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{stroke:"#648BD8",d:"M74.7 224.8s2.7-.6 6.5-3.4m4.8-69.8c-.2 3.1.3 8.6-4.3 9.2m22-11s0 14-1.4 15.1a15 15 0 0 1-3 2m.5-16.5s0 13-1.2 24.4m-5 1.1s7.3-1.7 9.5-1.7M74.3 206a212 212 0 0 1-1 4.5s-1.4 1.9-1 3.8c.5 2-1 2-5 15.4A353 353 0 0 0 61 257l-.2 1.2m14.9-60.5a321 321 0 0 1-.9 4.8m7.8-50.4-1.2 10.5s-1.1.1-.5 2.2c.1 1.4-2.7 15.8-5.2 30.5m-19.6 79h13.3",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),p.createElement("path",{fill:"#192064",d:"M116.2 148.2s-17-3-35.9.2c.2 2.5 0 4.2 0 4.2s14.7-2.8 35.7-.3c.3-2.4.2-4 .2-4"}),p.createElement("path",{fill:"#FFF",d:"M106.3 151.2v-5a.8.8 0 0 0-.8-.8h-7.8a.8.8 0 0 0-.8.8v5a.8.8 0 0 0 .8.8h7.8a.8.8 0 0 0 .8-.8"}),p.createElement("path",{fill:"#192064",d:"M105.2 150.2v-3a.6.6 0 0 0-.6-.7 94.3 94.3 0 0 0-5.9 0 .7.7 0 0 0-.6.6v3.1a.6.6 0 0 0 .6.7 121.1 121.1 0 0 1 5.8 0c.4 0 .7-.3.7-.7"}),p.createElement("path",{stroke:"#648BD8",d:"M100.3 275.4h12.3m-11.2-4.9.1 6.5m0-12.5a915.8 915.8 0 0 0 0 4.4m-.5-94 .9 44.7s.7 1.6-.2 2.7c-1 1.1 2.4.7.9 2.2-1.6 1.6.9 1.2 0 3.4-.6 1.5-1 21.1-1.1 35.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),p.createElement("path",{fill:"#FFC6A0",d:"M46.9 83.4s-.5 6 7.2 5.6c11.2-.7 9.2-9.4 31.5-21.7-.7-2.7-2.4-4.7-2.4-4.7s-11 3-22.6 8c-6.8 3-13.4 6.4-13.7 12.8m57.6 7.7.9-5.4-8.9-11.4-5 5.3-1.8 7.9a.3.3 0 0 0 .1.3c1 .8 6.5 5 14.4 3.5a.3.3 0 0 0 .3-.2"}),p.createElement("path",{fill:"#FFC6A0",d:"M94 79.4s-4.6-2.9-2.5-6.9c1.6-3 4.5 1.2 4.5 1.2s.5-3.7 3.1-3.7c.6-1 1.6-4.1 1.6-4.1l13.5 3c0 5.3-2.3 19.5-7.8 20-8.9.6-12.5-9.5-12.5-9.5"}),p.createElement("path",{fill:"#520038",d:"M113.9 73.4c2.6-2 3.4-9.7 3.4-9.7s-2.4-.5-6.6-2c-4.7-2.1-12.8-4.8-17.5 1-9.6 3.2-2 19.8-2 19.8l2.7-3s-4-3.3-2-6.3c2-3.5 3.8 1 3.8 1s.7-2.3 3.6-3.3c.4-.7 1-2.6 1.4-3.8a1 1 0 0 1 1.3-.7l11.4 2.6c.5.2.8.7.8 1.2l-.3 3.2z"}),p.createElement("path",{fill:"#552950",d:"M105 76c-.1.7-.6 1.1-1 1-.6 0-.9-.6-.8-1.2.1-.6.6-1 1-1 .6 0 .9.7.8 1.3m7.1 1.6c0 .6-.5 1-1 1-.5-.1-.8-.7-.7-1.3 0-.6.5-1 1-1 .5.1.8.7.7 1.3"}),p.createElement("path",{stroke:"#DB836E",d:"m110.1 74.8-.9 1.7-.3 4.3h-2.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),p.createElement("path",{stroke:"#5C2552",d:"M110.8 74.5s1.8-.7 2.6.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),p.createElement("path",{stroke:"#DB836E",d:"M92.4 74.3s.5-1.1 1.1-.7c.6.4 1.3 1.4.6 2-.8.5.1 1.6.1 1.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),p.createElement("path",{stroke:"#5C2552",d:"M103.3 73s1.8 1 4.1.9",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),p.createElement("path",{stroke:"#DB836E",d:"M103.7 81.8s2.2 1.2 4.4 1.2m-3.5 1.3s1 .4 1.6.3m-11.5-3.4s2.3 7.4 10.4 7.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),p.createElement("path",{stroke:"#E4EBF7",d:"M81.5 89.4s.4 5.6-5 12.8M69 82.7s-.7 9.2-8.2 14.2m68.6 26s-5.3 7.4-9.4 10.7m-.7-26.3s.5 4.4-2.1 32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),p.createElement("path",{fill:"#F2D7AD",d:"M150 151.2h-49.8a1 1 0 0 1-1-1v-31.7c0-.5.4-1 1-1H150c.6 0 1 .5 1 1v31.7a1 1 0 0 1-1 1"}),p.createElement("path",{fill:"#F4D19D",d:"M150.3 151.2h-19.9v-33.7h20.8v32.8a1 1 0 0 1-1 1"}),p.createElement("path",{fill:"#F2D7AD",d:"M123.6 127.9H92.9a.5.5 0 0 1-.4-.8l6.4-9.1c.2-.3.5-.5.8-.5h31.1l
383-7.2 10.4z"}),p.createElement("path",{fill:"#CC9B6E",d:"M123.7 128.4H99.2v-.5h24.2l7.2-10.2.4.3z"}),p.createElement("path",{fill:"#F4D19D",d:"M158.3 127.9h-18.7a2 2 0 0 1-1.6-.8l-7.2-9.6h20c.5 0 1 .3 1.2.6l6.7 9a.5.5 0 0 1-.4.8"}),p.createElement("path",{fill:"#CC9B6E",d:"M157.8 128.5h-19.3l-7.9-10.5.4-.3 7.7 10.3h19.1zm-27.2 22.2v-8.2h.4v8.2zm-.1-10.9v-21.4h.4l.1 21.4zm-18.6 1.1-.5-.1 1.5-5.2.5.2zm-3.5.2-2.6-3 2.6-3.4.4.3-2.4 3.1 2.4 2.6zm8.2 0-.4-.4 2.4-2.6-2.4-3 .4-.4 2.7 3.4z"}),p.createElement("path",{fill:"#FFC6A0",d:"m154.3 131.9-3.1-2v3.5l-1 .1a85 85 0 0 1-4.8.3c-1.9 0-2.7 2.2 2.2 2.6l-2.6-.6s-2.2 1.3.5 2.3c0 0-1.6 1.2.6 2.6-.6 3.5 5.2 4 7 3.6a6.1 6.1 0 0 0 4.6-5.2 8 8 0 0 0-3.4-7.2"}),p.createElement("path",{stroke:"#DB836E",d:"M153.7 133.6s-6.5.4-8.4.3c-1.8 0-1.9 2.2 2.4 2.3 3.7.2 5.4 0 5.4 0",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),p.createElement("path",{stroke:"#DB836E",d:"M145.2 135.9c-1.9 1.3.5 2.3.5 2.3s3.5 1 6.8.6m-.6 2.9s-6.3.1-6.7-2.1c-.3-1.4.4-1.4.4-1.4m.5 2.7s-1 3.1 5.5 3.5m-.4-14.5v3.5M52.8 89.3a18 18 0 0 0 13.6-7.8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),p.createElement("path",{fill:"#5BA02E",d:"M168.6 248.3a6.6 6.6 0 0 1-6.7-6.6v-66.5a6.6 6.6 0 1 1 13.3 0v66.5a6.6 6.6 0 0 1-6.6 6.6"}),p.createElement("path",{fill:"#92C110",d:"M176.5 247.7a6.6 6.6 0 0 1-6.6-6.7v-33.2a6.6 6.6 0 1 1 13.3 0V241a6.6 6.6 0 0 1-6.7 6.7"}),p.createElement("path",{fill:"#F2D7AD",d:"M186.4 293.6H159a3.2 3.2 0 0 1-3.2-3.2v-46.1a3.2 3.2 0 0 1 3.2-3.2h27.5a3.2 3.2 0 0 1 3.2 3.2v46.1a3.2 3.2 0 0 1-3.2 3.2"}),p.createElement("path",{stroke:"#E4EBF7",d:"M89 89.5s7.8 5.4 16.6 2.8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}))),C4e=S4e,b4e=()=>p.createElement("svg",{width:"254",height:"294"},p.createElement("title",null,"Server Error"),p.createElement("g",{fill:"none",fillRule:"evenodd"},p.createElement("path",{fill:"#E4EBF7",d:"M0 128.1v-2C0 56.5 56.3.2 125.7.2h2.1C197.2.3 253.5 56.6 253.5 126v2.1c0 69.5-56.3 125.7-125.7 125.7h-2.1A125.7 125.7 0 0 1 0 128.1"}),p.createElement("path",{fill:"#FFF",d:"M40 132.1a8.3 8.3 0 1 1-16.6-1.7 8.3 8.3 0 0 1 16.6 1.7"}),p.createElement("path",{stroke:"#FFF",d:"m37.2 135.6 10.5 6m1 6.3-12.8 10.8",strokeWidth:"2"}),p.createElement("path",{fill:"#FFF",d:"M40.1 160.8a5.7 5.7 0 1 1-11.3-1.1 5.7 5.7 0 0 1 11.3 1.1M58 144.6a5.7 5.7 0 1 1-11.4-1.2 5.7 5.7 0 0 1 11.4 1.2M99.7 27.4h30a4.6 4.6 0 1 0 0-9.2h-30a4.6 4.6 0 0 0 0 9.2M111 46h30a4.6 4.6 0 1 0 0-9.3h-30a4.6 4.6 0 1 0 0 9.3m2.5-18.6h16a4.6 4.6 0 1 0 0 9.3h-16a4.6 4.6 0 0 0 0-9.3m36.7 42.7h-4a4.8 4.8 0 0 1-4.8-4.8 4.8 4.8 0 0 1 4.8-4.8h4a4.8 4.8 0 0 1 4.7 4.8 4.8 4.8 0 0 1-4.7 4.8"}),p.createElement("circle",{cx:"201.35",cy:"30.2",r:"29.7",fill:"#FF603B"}),p.createElement("path",{fill:"#FFF",d:"m203.6 19.4-.7 15a1.5 1.5 0 0 1-3 0l-.7-15a2.2 2.2 0 1 1 4.4 0m-.3 19.4c.5.5.8 1.1.8 1.9s-.3 1.4-.8 1.9a3 3 0 0 1-2 .7 2.5 2.5 0 0 1-1.8-.7c-.6-.6-.8-1.2-.8-2 0-.7.2-1.3.8-1.8.5-.5 1.1-.7 1.8-.7.8 0 1.5.2 2 .7"}),p.createElement("path",{fill:"#FFB594",d:"M119.3 133.3c4.4-.6 3.6-1.2 4-4.8.8-5.2-3-17-8.2-25.1-1-10.7-12.6-11.3-12.6-11.3s4.3 5 4.2 16.2c1.4 5.3.8 14.5.8 14.5s5.3 11.4 11.8 10.5"}),p.createElement("path",{fill:"#FFF",d:"M101 91.6s1.4-.6 3.2.6c8 1.4 10.3 6.7 11.3 11.4 1.8 1.2 1.8 2.3 1.8 3.5l1.5 3s-7.2 1.7-11 6.7c-1.3-6.4-6.9-25.2-6.9-25.2"}),p.createElement("path",{fill:"#FFB594",d:"m94 90.5 1-5.8-9.2-11.9-5.2 5.6-2.6 9.9s8.4 5 16 2.2"}),p.createElement("path",{fill:"#FFC6A0",d:"M83 78.2s-4.6-2.9-2.5-6.9c1.6-3 4.5 1.2 4.5 1.2s.5-3.7 3.2-3.7c.5-1 1.5-4.2 1.5-4.2l13.6 3.2c0 5.2-2.3 19.5-7.9 20-8.9.6-12.5-9.6-12.5-9.6"}),p.createElement("path",{fill:"#520038",d:"M103 72.2c2.6-2 3.5-9.7 3.5-9.7s-2.5-.5-6.7-2c-4.7-2.2-12.9-4.9-17.6.9-9.5 4.4-2 20-2 20l2.7-3.1s-4-3.3-2.1-6.3c2.2-3.5 4 1 4 1s.6-2.3 3.5-3.3c.4-.7 1-2.7 1.5-3.8A1 1 0 0 1 91 65l11.5 2.7c.5.1.8.6.8 1.2l-.3 3.2z"}),p.createElement("path",{fill:"#552950",d:"M101.2 76.5c0 .6-.6 1-1 1-.5-.1-.9-.7-.8-1.3.1-.6.6-1 1.1-1 .5.1.8.7.7 1.3m-7-1.4c0 .6-.5 1-1 1-.5-.1-.8-.7-.7-1.3 0-.6.6-1 1-1 .5.1.9.7.8 1.3"}),p.createElement("path",{stroke:"#DB836E",d:"m99.2 73.6-.9 1.7-.3 4.3h-2.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),p.createElement("path",{stroke:"#5C2552",d:"M100 73.3s1.7-.7 2.4.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),p.createElement("path",{stroke:"#DB836E",d:"M81.4 73s.4-1 1-.6c.7.4 1.4 1.4.6 2s.2 1.6.2 
3831.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),p.createElement("path",{stroke:"#5C2552",d:"M92.3 71.7s1.9 1.1 4.2 1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),p.createElement("path",{stroke:"#DB836E",d:"M92.7 80.6s2.3 1.2 4.4 1.2m-3.4 1.4s1 .4 1.5.3M83.7 80s1.8 6.6 9.2 8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),p.createElement("path",{stroke:"#E4EBF7",d:"M95.5 91.7s-1 2.8-8.2 2c-7.3-.6-10.3-5-10.3-5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),p.createElement("path",{fill:"#FFF",d:"M78.1 87.5s6.6 5 16.5 2.5c0 0 9.6 1 11.5 5.3 5.4 11.8.6 36.8 0 40 3.5 4-.4 8.4-.4 8.4-15.7-3.5-35.8-.6-35.8-.6-4.9-3.5-1.3-9-1.3-9l-6.2-23.8c-2.5-15.2.8-19.8 3.5-20.7 3-1 8-1.3 8-1.3.6 0 1.1 0 1.4-.2 2.4-1.3 2.8-.6 2.8-.6"}),p.createElement("path",{fill:"#FFC6A0",d:"M65.8 89.8s-6.8.5-7.6 8.2c-.4 8.8 3 11 3 11s6.1 22 16.9 22.9c8.4-2.2 4.7-6.7 4.6-11.4-.2-11.3-7-17-7-17s-4.3-13.7-9.9-13.7"}),p.createElement("path",{fill:"#FFC6A0",d:"M71.7 124.2s.9 11.3 9.8 6.5c4.8-2.5 7.6-13.8 9.8-22.6A201 201 0 0 0 94 96l-5-1.7s-2.4 5.6-7.7 12.3c-4.4 5.5-9.2 11.1-9.5 17.7"}),p.createElement("path",{stroke:"#E4EBF7",d:"M108.5 105.2s1.7 2.7-2.4 30.5c2.4 2.2 1 6-.2 7.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),p.createElement("path",{fill:"#FFC6A0",d:"M123.3 131.5s-.5 2.8-11.8 2c-15.2-1-25.3-3.2-25.3-3.2l.9-5.8s.7.2 9.7-.1c11.9-.4 18.7-6 25-1 4 3.2 1.5 8.1 1.5 8.1"}),p.createElement("path",{fill:"#FFF",d:"M70.2 91s-5.6-4.8-11 2.7c-3.3 7.2.5 15.2 2.6 19.5-.3 3.8 2.4 4.3 2.4 4.3s0 1 1.5 2.7c4-7 6.7-9.1 13.7-12.5-.3-.7-1.9-3.3-1.8-3.8.2-1.7-1.3-2.6-1.3-2.6s-.3-.2-1.2-2.8c-.8-2.3-2-5.1-4.9-7.5"}),p.createElement("path",{fill:"#CBD1D1",d:"M90.2 288s4.9 2.3 8.3 1.2c3.2-1 5.2.7 8 1.3a20 20 0 0 0 13.3-1.4c-.2-6.2-7.8-4.5-13.6-7.6-2.9-1.6-4.2-5.3-4-10H91.5s-1.5 12-1.3 16.5"}),p.createElement("path",{fill:"#2B0849",d:"M90.2 287.8s2.8 1.5 7.6.8c3.5-.5 3.3.6 7.5 1.3 4.2.6 13-.2 14.3-1.2.5 1.3-.4 2.4-.4 2.4s-1.7.6-5.4.9c-2.3.1-8.1.3-10.2-.6-2-1.6-4.9-1.5-6-.3-4.5 1.1-7.2-.3-7.2-.3l-.2-3z"}),p.createElement("path",{fill:"#A4AABA",d:"M98.4 272.3h3.5s0 7.5 5.2 9.6c-5.3.7-9.7-2.6-8.7-9.6"}),p.createElement("path",{fill:"#CBD1D1",d:"M44.4 272s-2.2 7.8-4.7 13c-1.9 3.8-4.4 7.8 5.8 7.8 7 0 9.3-.5 7.7-7-1.6-6.3.3-13.8.3-13.8h-9z"}),p.createElement("path",{fill:"#2B0849",d:"M38 290.3s2.3 1.2 7 1.2c6.4 0 8.7-1.7 8.7-1.7s.6 1.1-.7 2.2c-1 1-3.8 1.7-7.7 1.7-4.4 0-6.1-.6-7-1.3-1-.5-.8-1.6-.2-2.1"}),p.createElement("path",{fill:"#A4AABA",d:"M45.3 274s0 1.6-.3 3.1-1.1 3.3-1.2 4.4c0 1.2 4.8 1.6 5.4 0 .7-1.6 1.4-6.8 2-7.6.7-.9-5.1-2.2-5.9.1"}),p.createElement("path",{fill:"#7BB2F9",d:"M89.5 277.6h13.9s1.3-56.6 1.9-66.8c.6-10.3 4-45.1 1-65.6l-13-.7-23.7.8-1.3 10.4c0 .5-.7.9-.8 1.4 0 .6.5 1.4.4 2L59.6 206c-.1.7-1.3 1-1.5 2.8 0 .3.2 1.6.1 1.8-7.1 19.5-12.2 52.6-15.6 67.2h15.1L62 259c3-13.3 24-88.3 24-88.3l3.2-1-.2 48.6s-.2 1.3.4 2.1c.5.8-.6 1.2-.4 2.4l.4 1.8-1 12.4c-.4 4.9 1.2 40.7 1.2 40.7"}),p.createElement("path",{stroke:"#648BD8",d:"M64.6 218.9c1.2 0 4.2-2.1 7.2-5.1m24.2 8.7s3-1.1 6.4-4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),p.createElement("path",{stroke:"#648BD8",d:"M97 219.4s2.9-1.2 6.3-4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1"}),p.createElement("path",{stroke:"#648BD8",d:"M63.2 222.1s2.7-.6 6.7-3.5m5-72.4c-.3 3.2.3 8.8-4.5 9.4m22.8-11.3s.1 14.6-1.4 15.7c-2.3 1.7-3 2-3 2m.4-17s.3 13
383-1 25m-4.7.7s6.8-1 9.1-1M46 270l-.9 4.6m1.8-11.3-.8 4.1m16.6-64.9c-.3 1.6 0 2-.4 3.4 0 0-2.8 2-2.3 4s-.3 3.4-4.5 17.2c-1.8 5.8-4.3 19-6.2 28.3l-1.1 5.8m16-67-1 4.9m8.1-52.3-1.2 10.9s-1.2.1-.5 2.3c0 1.4-2.8 16.4-5.4 31.6m-20 82.1h13.9",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),p.createElement("path",{fill:"#192064",d:"M106.2 142.1c-3-.5-18.8-2.7-36.2.2a.6.6 0 0 0-.6.7v3a.6.6 0 0 0 .8.6c3.3-.5 17-2.4 35.6-.3.4 0 .7-.2.7-.5.2-1.4.2-2.5.2-3a.6.6 0 0 0-.5-.7"}),p.createElement("path",{fill:"#FFF",d:"M96.4 145.3v-5.1a.8.8 0 0 0-.8-.9 114.1 114.1 0 0 0-8.1 0 .8.8 0 0 0-.9.8v5.1c0 .5.4.9.9.9h8a.8.8 0 0 0 .9-.8"}),p.createElement("path",{fill:"#192064",d:"M95.2 144.3v-3.2a.7.7 0 0 0-.6-.7h-6.1a.7.7 0 0 0-.6.7v3.2c0 .4.3.7.6.7h6c.4 0 .7-.3.7-.7"}),p.createElement("path",{stroke:"#648BD8",d:"M90.1 273.5h12.8m-11.7-3.7v6.3m-.3-12.6v4.5m-.5-97.6 1 46.4s.7 1.6-.3 2.8c-.9 1.1 2.6.7 1 2.3-1.7 1.6.9 1.2 0 3.5-.6 1.6-1 22-1.2 36.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),p.createElement("path",{stroke:"#E4EBF7",d:"M73.7 98.7 76 103s2 .8 1.8 2.7l.8 2.2m-14.3 8.7c.2-1 2.2-7.1 12.6-10.5m.7-16s7.7 6 16.5 2.7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),p.createElement("path",{fill:"#FFC6A0",d:"M92 87s5.5-.9 7.5-4.6c1.3-.3.8 2.2-.3 3.7l-1 1.5s.2.3.2.9c0 .6-.2.6-.3 1v1l-.4 1c-.1.2 0 .6-.2.9-.2.4-1.6 1.8-2.6 2.8-3.8 3.6-5 1.7-6-.4-1-1.8-.7-5.1-.9-6.9-.3-2.9-2.6-3-2-4.4.4-.7 3 .7 3.4 1.8.7 2 2.9 1.8 2.6 1.7"}),p.createElement("path",{stroke:"#DB836E",d:"M99.8 82.4c-.5.1-.3.3-1 1.3-.6 1-4.8 2.9-6.4 3.2-2.5.5-2.2-1.6-4.2-2.9-1.7-1-3.6-.6-1.4 1.4 1 1 1 1.1 1.4 3.2.3 1.5-.7 3.7.7 5.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),p.createElement("path",{stroke:"#E59788",d:"M79.5 108.7c-2 2.9-4.2 6.1-5.5 8.7",
383strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),p.createElement("path",{fill:"#FFC6A0",d:"M87.7 124.8s-2-2-5.1-2.8c-3-.7-3.6-.1-5.5.1-2 .3-4-.9-3.7.7.3 1.7 5 1 5.2 2.1.2 1.1-6.3 2.8-8.3 2.2-.8.8.5 1.9 2 2.2.3 1.5 2.3 1.5 2.3 1.5s.7 1 2.6 1.1c2.5 1.3 9-.7 11-1.5 2-.9-.5-5.6-.5-5.6"}),p.createElement("path",{stroke:"#E59788",d:"M73.4 122.8s.7 1.2 3.2 1.4c2.3.3 2.6.6 2.6.6s-2.6 3-9.1 2.3m2.3 2.2s3.8 0 5-.7m-2.4 2.2s2 0 3.3-.6m-1 1.7s1.7 0 2.8-.5m-6.8-9s-.6-1.1 1.3-.5c1.7.5 2.8 0 5.1.1 1.4.1 3-.2 4 .2 1.6.8 3.6 2.2 3.6 2.2s10.6 1.2 19-1.1M79 108s-8.4 2.8-13.2 12.1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),p.createElement("path",{stroke:"#E4EBF7",d:"M109.3 112.5s3.4-3.6 7.6-4.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),p.createElement("path",{stroke:"#E59788",d:"M107.4 123s9.7-2.7 11.4-.9",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),p.createElement("path",{stroke:"#BFCDDD",d:"m194.6 83.7 4-4M187.2 91l3.7-3.6m.9-3-4.5-4.7m11.2 11.5-4.2-4.3m-65 76.3 3.7-3.7M122.3 170l3.5-3.5m.8-2.9-4.3-4.2M133 170l-4-4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}),p.createElement("path",{fill:"#A3B4C6",d:"M190.2 211.8h-1.6a4 4 0 0 1-4-4v-32.1a4 4 0 0 1 4-4h1.6a4 4 0 0 1 4 4v32a4 4 0 0 1-4 4"}),p.createElement("path",{fill:"#A3B4C6",d:"M237.8 213a4.8 4.8 0 0 1-4.8 4.8h-86.6a4.8 4.8 0 0 1 0-9.6H233a4.8 4.8 0 0 1 4.8 4.8"}),p.createElement("path",{fill:"#A3B4C6",d:"M154.1 190.1h70.5v-84.6h-70.5z"}),p.createElement("path",{fill:"#BFCDDD",d:"M225 190.1h-71.2a3.2 3.2 0 0 1-3.2-3.2v-19a3.2 3.2 0 0 1 3.2-3.2h71.1a3.2 3.2 0 0 1 3.2 3.2v19a3.2 3.2 0 0 1-3.2 3.2m0-59.3h-71.1a3.2 3.2 0 0 1-3.2-3.2v-19a3.2 3.2 0 0 1 3.2-3.2h71.1a3.2 3.2 0 0 1 3.2 3.3v19a3.2 3.2 0 0 1-3.2 3.1"}),p.createElement("path",{fill:"#FFF",d:"M159.6 120.5a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m48.1 0h-22.4a.8.8 0 0 1-.8-.8v-3.2c0-.4.3-.8.8-.8h22.4c.5 0 .8.4.8.8v3.2c0 .5-.3.8-.8.8"}),p.createElement("path",{fill:"#BFCDDD",d:"M225 160.5h-71.2a3.2 3.2 0 0 1-3.2-3.2v-19a3.2 3.2 0 0 1 3.2-3.2h71.1a3.2 3.2 0 0 1 3.2 3.2v19a3.2 3.2 0 0 1-3.2 3.2"}),p.createElement("path",{stroke:"#7C90A5",d:"M173.5 130.8h49.3m-57.8 0h6m-15 0h6.7m11.1 29.8h49.3m-57.7 0h6m-15.8 0h6.7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),p.createElement("path",{fill:"#FFF",d:"M159.6 151a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m48.1 0h-22.4a.8.8 0 0 1-.8-.8V147c0-.4.3-.8.8-.8h22.4c.5 0 .8.4.8.8v3.2c0 .5-.3.8-.8.8m-63 29a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.5 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m7.4 0a2.4 2.4 0 1 1 0-4.8 2.4 2.4 0 0 1 0 4.8m48.1 0h-22.4a.8.8 0 0 1-.8-.8V176c0-.5.3-.8.8-.8h22.4c.5 0 .8.3.8.8v3.2c0 .4-.3.8-.8.8"}),p.createElement("path",{fill:"#BFCDDD",d:"M203 221.1h-27.3a2.4 2.4 0 0 1-2.4-2.4v-11.4a2.4 2.4 0 0 1 2.4-2.5H203a2.4 2.4 0 0 1 2.4 2.5v11.4a2.4 2.4 0 0 1-2.4 2.4"}),p.createElement("path",{stroke:"#A3B4C6",d:"M177.3 207.2v11.5m23.8-11.5v11.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),p.createElement("path",{fill:"#5BA02E",d:"M162.9 267.9a9.4 9.4 0 0 1-9.4-9.4v-14.8a9.4 9.4 0 0 1 18.8 0v14.8a9.4 9.4 0 0 1-9.4 9.4"}),p.createElement("path",{fill:"#92C110",d:"M171.2 267.8a9.4 9.4 0 0 1-9.4-9.4V255a9.4 9.4 0 0 1 18.8 0v3.4a9.4 9.4 0 0 1-9.4 9.4"}),p.createElement("path",{fill:"#F2D7AD",d:"M181.3 293.7h-27.7a3.2 3.2 0 0 1-3.2-3.2v-20.7a3.2 3.2 0 0 1 3.2-3.2h27.7a3.2 3.2 0 0 1 3.2 3.2v20.7a3.2 3.2 0 0 1-3.2 3.2"}))),w4e=b4e,_4e=e=>{const{componentCls:t,lineHeightHeading3:r,iconCls:n,padding:i,paddingXL:o,paddingXS:a,paddingLG:s,marginXS:l,lineHeight:c}=e;return{[t]:{padding:`${fe(e.calc(s).mul(2).equal())} ${fe(o)}`,"&-rtl":{direction:"rtl"}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:"auto"},[`${t} ${t}-icon`]:{marginBottom:s,textAlign:"center",[`& > ${n}`]:{fontSize:e.iconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.titleFontSize,lineHeight:r,marginBlock:l,textAlign:"center"},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.subtitleFontSize,lineHeight:c,textAlign:"center"},[`${t} ${t}-content`]:{marginTop:s,padding:`${fe(s)} ${fe(e.calc(i).mul(2.5).equal())}`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.extraMargin,textAlign:"center","& > *":{marginInlineEnd:a,"&:last-child":{marginInlineEnd:0}}}}},E4e=e=>{const{componentCls:t,iconCls:r}=e;return{[`${t}-success ${t}-icon > ${r}`]:{color:e.resultSuccessIconColor},[`${t}-error ${t}-icon > ${r}`]:{color:e.resultErrorIconColor},[`${t}-info ${t}-icon > ${r}`]:{color:e.resultInfoIconColor},[`${t}-warning ${t}-icon > ${r}`]:{color:e.resultWarningIconColor}}},R4e=e=>[_4e(e),E4e(e)],P4e=e=>R4e(e),I4e=e=>({titleFontSize:e.fontSizeHeading3,subtitleFontSize:e.fontSize,iconFontSize:e.fontSizeHeading3*3,extraMargin:`${e.paddingLG}px 0 0 0`}),x4e=Nr("Result",e=>{const t=e.colorInfo,r=e.colorError,n=e.colorSuccess,i=e.colorWarning,o=sr(e,{resultInfoIconColor:t,resultErrorIconColor:r,resultSuccessIconColor:n,resultWarningIconColor:i,imageWidth:250,imageHeight:295});return[P4e(o)]},I4e),O4e=()=>p.createElement("svg",{width:"251",height:"294"},p.createElement("title",null,"Unauthorized"),p.createElement("g",{fill:"none",fillRule:"evenodd"},p.createElement("path",{fill:"#E4EBF7",d:"M0 129v-2C0 58.3 55.6 2.7 124.2 2.7h2c68.6 0 124.2 55.6 124.2 124.1v2.1c0 68.6-55.6 124.2-124.1 124.2h-2.1A124.2 124.2 0 0 1 0 129"}),p.createElement("path",{fill:"#FFF",d:"M41.4 133a8.2 8.2 0 1 1-16.4-1.7 8.2 8.2 0 0 1 16.4 1.6"}),p.createElement("path",{stroke:"#FFF",d:"m38.7 136.4 10.4 5.9m.9 6.2-12.6 10.7",strokeWidth:"2"}
383),p.createElement("path",{fill:"#FFF",d:"M41.5 161.3a5.6 5.6 0 1 1-11.2-1.2 5.6 5.6 0 0 1 11.2 1.2m17.7-16a5.7 5.7 0 1 1-11.3-1.2 5.7 5.7 0 0 1 11.3 1.2m41.2-115.8H130a4.6 4.6 0 1 0 0-9.1h-29.6a4.6 4.6 0 0 0 0 9.1m11.3 18.3h29.7a4.6 4.6 0 1 0 0-9.2h-29.7a4.6 4.6 0 1 0 0 9.2"}),p.createElement("path",{fill:"#FFF",d:"M114 29.5h15.8a4.6 4.6 0 1 0 0 9.1H114a4.6 4.6 0 0 0 0-9.1m71.3 108.2a10 10 0 1 1-19.8-2 10 10 0 0 1 19.8 2"}),p.createElement("path",{stroke:"#FFF",d:"m180.2 143.8 12.5 7.1m1.1 7.5-15.1 13",strokeWidth:"2"}),p.createElement("path",{fill:"#FFF",d:"M185.6 172a6.8 6.8 0 1 1-13.6-1.4 6.8 6.8 0 0 1 13.5 1.3m18.6-16.6a6.8 6.8 0 1 1-13.6-1.4 6.8 6.8 0 0 1 13.6 1.4"}),p.createElement("path",{stroke:"#FFF",d:"M153 194a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm73-75.8a2.2 2.2 0 1 1-4.5 0 2.2 2.2 0 0 1 4.4 0zm-9 34.9a2.2 2.2 0 1 1-4.3 0 2.2 2.2 0 0 1 4.4 0zm-39.2-43.3a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm18.3-15.3a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0zm6.7 88a2.2 2.2 0 1 1-4.4 0 2.2 2.2 0 0 1 4.4 0z",strokeWidth:"2"}),p.createElement("path",{stroke:"#FFF",d:"m215.1 155.3-1.9 20-10.8 6m-27.8-4.7-6.3 9.8H157l-4.5 6.4m23.4-65.5v-15.7m45.6 7.8-12.8 7.9-15.2-7.9V96.7",strokeWidth:"2"}),p.createElement("path",{fill:"#A26EF4",d:"M180.7 29.3a29.3 29.3 0 1 1 58.6 0 29.3 29.3 0 0 1-58.6 0"}),p.createElement("path",{fill:"#FFF",d:"m221.4 41.7-21.5-.1a1.7 1.7 0 0 1-1.7-1.8V27.6a1.7 1.7 0 0 1 1.8-1.7h21.5c1 0 1.8.9 1.8 1.8l-.1 12.3a1.7 1.7 0 0 1-1.7 1.7"}),p.createElement("path",{fill:"#FFF",d:"M215.1 29.2c0 2.6-2 4.6-4.5 4.6a4.6 4.6 0 0 1-4.5-4.7v-6.9c0-2.6 2-4.6 4.6-4.6 2.5 0 4.5 2 4.4 4.7v6.9zm-4.5-14a6.9 6.9 0 0 0-7 6.8v7.3a6.9 6.9 0 0 0 13.8.1V22a6.9 6.9 0 0 0-6.8-6.9zm-43 53.2h-4a4.7 4.7 0 0 1-4.7-4.8 4.7 4.7 0 0 1 4.7-4.7h4a4.7 4.7 0 0 1 4.7 4.8 4.7 4.7 0 0 1-4.7 4.7"}),p.createElement("path",{fill:"#5BA02E",d:"M168.2 248.8a6.6 6.6 0 0 1-6.6-6.6v-66a6.6 6.6 0 0 1 13.2 0v66a6.6 6.6 0 0 1-6.6 6.6"}),p.createElement("path",{fill:"#92C110",d:"M176.1 248.2a6.6 6.6 0 0 1-6.6-6.6v-33a6.6 6.6 0 1 1 13.3 0v33a6.6 6.6 0 0 1-6.7 6.6"}),p.createElement("path",{fill:"#F2D7AD",d:"M186 293.9h-27.4a3.2 3.2 0 0 1-3.2-3.2v-45.9a3.2 3.2 0 0 1 3.2-3.1H186a3.2 3.2 0 0 1 3.2 3.1v46a3.2 3.2 0 0 1-3.2 3"}),p.createElement("path",{fill:"#FFF",d:"M82 147.7s6.3-1 17.5-1.3c11.8-.4 17.6 1 17.6 1s3.7-3.8 1-8.3c1.3-12.1 6-32.9.3-48.3-1.1-1.4-3.7-1.5-7.5-.6-1.4.3-7.2-.2-8-.1l-15.3-.4-8-.5c-1.6-.1-4.3-1.7-5.5-.3-.4.4-2.4 5.6-2 16l8.7 35.7s-3.2 3.6 1.2 7"}),p.createElement("path",{fill:"#FFC6A0",d:"m75.8 73.3-1-6.4 12-6.5s7.4-.1 8 1.2c.8 1.3-5.5 1-5.5 1s-1.9 1.4-2.6 2.5c-1.7 2.4-1 6.5-8.4 6-1.7.3-2.5 2.2-2.5 2.2"}),p.createElement("path",{fill:"#FFB594",d:"M52.4 77.7S66.7 87 77.4 92c1 .5-2 16.2-11.9 11.8-7.4-3.3-20.1-8.4-21.5-14.5-.7-3.2 2.6-7.6 8.4-11.7M142 80s-6.7 3-13.9 6.9c-3.9 2.1-10.1 4.7-12.3 8-6.2 9.3 3.5 11.2 13 7.5 6.6-2.7 29-12.1 13.2-22.4"}),p.createElement("path",{fill:"#FFC6A0",d:"m76.2 66.4 3 3.8S76.4 73 73 76c-7 6.2-12.8 14.3-16 16.4-4 2.7-9.7 3.3-12.2 0-3.5-5.1.5-14.7 31.5-26"}),p.createElement("path",{fill:"#FFF",d:"M64.7 85.1s-2.4 8.4-9 14.5c.7.5 18.6 10.5 22.2 10 5.2-.6 6.4-19 1.2-20.5-.8-.2-6-1.3-8.9-2.2-.9-.2-1.6-1.7-3.5-1l-2-.8zm63.7.7s5.3 2 7.3 13.8c-.6.2-17.6 12.3-21.8 7.8-6.6-7-.8-17.4 4.2-18.6 4.7-1.2 5-1.4 10.3-3"}),p.createElement("path",{stroke:"#E4EBF7",d:"M78.2 94.7s.9 7.4-5 13",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),p.createElement("path",{stroke:"#E4EBF7",d:"M87.4 94.7s3.1 2.6 10.3 2.6c7.1 0 9-3.5 9-3.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".9"}),p.createElement("path",{fill:"#FFC6A0",d:"m117.2 68.6-6.8-6.1s-5.4-4.4-9.2-1c-3.9 3.5 4.4 2.2 5.6 4.2 1.2 2.1.9 1.2-2 .5-5.7-1.4-2.1.9 3 5.3 2 1.9 7 1 7 1l2.4-3.9z"}),p.createElement("path",{fill:"#FFB594",d:"m105.3 91.3-.3-11H89l-.5 10.5c0 .4.2.8.6 1 2 1.3 9.3 5 15.8.4.2-.2.4-.5.4-.9"}),p.createElement("path",{fill:"#5C2552",d:"M107.6 74.2c.8-1.1 1-9 1-11.9a1 1 0 0 0-1-1l-4.6-.4c-7.7-1-17 .6-18.3 6.3-5.4 5.9-.4 13.3-.4 13.3s2 3.5 4.3 6.8c.8 1 .4-3.8 3-6a47.9 47.9 0 0 1 16-7"}),p.createElement("path",{fill:"#FFC6A0",d:"M88.4 83.2s2.7 6.2 11.6 6.5c7.8.3 9-7 7.5-17.5l-1-5.5c-6-2.9-15.4.6-15.4.6s-.6 2-.2 5.5c-2.3 2-1.8 5.6-1.8 5.6s-1-2-2-2.3c-.9-.3-2 0-2.3 2-1 4.6 3.6 5.1 3.6 5.1"}),p.createElement("path",{stroke:"#DB836E",d:"m100.8 77.1 1.7-1-1-4.3.7-1.4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),p.createElement("path",{fill:"#552950",d:"M105.5 74c0 .8-.4 1.4-1 1.4-.4 0-.8-.7-.8-1.4s.5-1.2 1-1.2.9.6.8 1.3m-8 .2c0 .8-.4 1.3-.9 1.3s-.9-.6-.9-1.3c0-.7.5-1.3 1-1.3s1 .6.9 1.3"}),p.createElement("path",{stroke:"#DB836E",d:"M91.1 86.8s5.3 5 12.7 2.3",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),p.createElement("path",{fill:"#DB836E",d:"M99.8 81.9s-3.6.2-1.5-2.8c1.6-1.5 5-.4 5-.4s1 3.9-3.5 3.2"}),p.createElement("path",{stroke:"#5C2552",d:"M102.9 70.6s2.5.8 3.4.7m-12.4.7s2.5-1.2 4.8-1.1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"}),p.createElement("path",{stroke:"#DB836E",d:"M86.3 77.4s1 .9 1.5 2c-.4.6-1 1.2-.3 1.9m11.8 2.4s2 .2 2.5-.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),p.createElement("path",{stroke:"#E4EBF7",d:"m87.8 115.8 15.7-3m-3.3 3 10-2m-43.7-27s-1.
3836 8.8-6.7 14M128.3 88s3 4 4 11.7",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),p.createElement("path",{stroke:"#DB836E",d:"M64 84.8s-6 10-13.5 10",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),p.createElement("path",{fill:"#FFC6A0",d:"m112.4 66-.2 5.2 12 9.2c4.5 3.6 8.9 7.5 11 8.7 4.8 2.8 8.9 3.3 11 1.8 4.1-2.9 4.4-9.9-8.1-15.3-4.3-1.8-16.1-6.3-25.7-9.7"}),p.createElement("path",{stroke:"#DB836E",d:"M130.5 85.5s4.6 5.7 11.7 6.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),p.createElement("path",{stroke:"#E4EBF7",d:"M121.7 105.7s-.4 8.6-1.3 13.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),p.createElement("path",{stroke:"#648BD8",d:"M115.8 161.5s-3.6-1.5-2.7-7.1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),p.createElement("path",{fill:"#CBD1D1",d:"M101.5 290.2s4.3 2.1 7.4 1c2.9-.9 4.6.7 7.2 1.3 2.5.5 6.9 1 11.7-1.3 0-5.6-7-4-12-6.8-2.6-1.4-3.8-4.7-3.6-8.8h-9.5s-1.4 10.6-1.2 14.6"}),p.createElement("path",{fill:"#2B0849",d:"M101.5 290s2.4 1.4 6.8.7c3-.4 3.7.5 7.5 1 3.7.6 10.8 0 11.9-.8.4 1-.4 2-.4 2s-1.5.7-4.8.9c-2 .1-5.8.3-7.7-.5-1.8-1.4-5.2-2-5.7-.3-4 1-7.4-.3-7.4-.3l-.2-2.6z"}),p.createElement("path",{fill:"#A4AABA",d:"M108.8 276.2h3.1s0 6.7 4.6 8.6c-4.7.6-8.6-2.3-7.7-8.6"}),p.createElement("path",{fill:"#CBD1D1",d:"M57.6 272.5s-2 7.5-4.5 12.4c-1.8 3.7-4.2 7.6 5.5 7.6 6.7 0 9-.5 7.5-6.7-1.5-6.1.3-13.3.3-13.3h-8.8z"}),p.createElement("path",{fill:"#2B0849",d:"M51.5 290s2.2 1.2 6.7 1.2c6.1 0 8.3-1.6 8.3-1.6s.6 1-.6 2.1c-1 .9-3.6 1.6-7.4 1.6-4.2 0-6-.6-6.8-1.2-.9-.5-.7-1.6-.2-2"}),p.createElement("path",{fill:"#A4AABA",d:"M58.5 274.4s0 1.6-.3 3-1 3.1-1.1 4.2c0 1.1 4.5 1.5 5.2 0 .6-1.6 1.3-6.5 1.9-7.3.6-.8-5-2.1-5.7.1"}),p.createElement("path",{fill:"#7BB2F9",d:"m100.9 277 13.3.1s1.3-54.2 1.8-64c.6-9.9 3.8-43.2 1-62.8l-12.4-.7-22.8.8-1.2 10c0 .4-.6.8-.7 1.3 0 .6.4 1.3.3 2-2.3 14-6.3 32.9-8.7 46.4-.1.6-1.2 1-1.4 2.6 0 .3.2 1.6 0 1.8-6.8 18.7-10.8 47.6-14.1 61.6h14.5s2.2-8.6 4-17a3984 3984 0 0 1 23-84.5l3-.5 1 46.1s-.2 1.2.4 2c.5.8-.6 1.1-.4 2.3l.4 1.7-1 11.9c-.4 4.6 0 39 0 39"}),p.createElement("path",{stroke:"#648BD8",d:"M77.4 220.4c1.2.1 4-2 7-4.9m23.1 8.4s2.8-1 6.1-3.8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),p.createElement("path",{stroke:"#648BD8",d:"M108.5 221s2.7-1.2 6-4",strokeLinecap:"round",strokeLinejoin:"round"}),p.createElement("path",{stroke:"#648BD8",d:"M76.1 223.6s2.6-.6 6.5-3.4m4.7-69.4c-.2 3.1.3 8.5-4.3 9m21.8-10.7s.1 14-1.3 15c-2.2 1.6-3 1.9-3 1.9m.5-16.4s0 12.8-1.2 24.3m-4.9 1s7.2-1.6 9.4-1.6m-28.6 31.5-1 4.5s-1.5 1.8-1 3.7c.4 2-1 2-5 15.3-1.7 5.6-4.4 18.5-6.3 27.5l-4 18.4M77 196.7a313.3 313.3 0 0 1-.8 4.8m7.7-50-1.2 10.3s-1 .2-.5 2.3c.1 1.3-2.6 15.6-5.1 30.2M57.6 273h13.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),p.createElement("path",{fill:"#192064",d:"M117.4 147.4s-17-3-35.7.2v4.2s14.6-2.9 35.5-.4l.2-4"}),p.createElement("path",{fill:"#FFF",d:"M107.5 150.4v-5a.8.8 0 0 0-.8-.7H99a.8.8 0 0 0-.7.8v4.8c0 .5.3.9.8.8a140.8 140.8 0 0 1 7.7 0 .8.8 0 0 0 .8-.7"}),p.createElement("path",{fill:"#192064",d:"M106.4 149.4v-3a.6.6 0 0 0-.6-.7 94.1 94.1 0 0 0-5.8 0 .6.6 0 0 0-.7.7v3c0 .4.3.7.7.7h5.7c.4 0 .7-.3.7-.7"}),p.createElement("path",{stroke:"#648BD8",d:"M101.5 274h12.3m-11.1-5v6.5m0-12.4v4.3m-.5-93.4.9 44.4s.7 1.6-.2 2.7c-1 1.1 2.4.7.9 2.2-1.6 1.6.9 1.1 0 3.4-.6 1.5-1 21-1.1 35",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}))),T4e=O4e,A4e={success:Gp,error:Uc,info:t0,warning:y4e},m0={404:C4e,500:w4e,403:T4e},M4e=Object.keys(m0),$4e=({prefixCls:e,icon:t,status:r})=>{const n=ie(`${e}-icon`);if(M4e.includes(`${r}`)){const o=m0[r];return p.createElement("div",{className:`${n} ${e}-image`},p.createElement(o,null))}const i=p.createElement(A4e[r]);return t===null||t===!1?null:p.createElement("div",{className:n},t||i)},k4e=({prefixCls:e,extra:t})=>t?p.createElement("div",{className:`${e}-extra`},t):null,W_=({prefixCls:e,className:t,rootClassName:r,subTitle:n,title:i,style:o,children:a,status:s="info",icon:l,extra:c})=>{const{getPrefixCls:d,direction:u,result:f}
vendor: 6,291 bytes, line 383
383=p.useContext(Vt),h=d("result",e),[v,y,g]=x4e(h),m=ie(h,`${h}-${s}`,t,f==null?void 0:f.className,r,{[`${h}-rtl`]:u==="rtl"},y,g),S=Object.assign(Object.assign({},f==null?void 0:f.style),o);return v(p.createElement("div",{className:m,style:S},p.createElement($4e,{prefixCls:h,status:s,icon:l}),p.createElement("div",{className:`${h}-title`},i),n&&p.createElement("div",{className:`${h}-subtitle`},n),p.createElement(k4e,{prefixCls:h,extra:c}),a&&p.createElement("div",{className:`${h}-content`},a)))};W_.PRESENTED_IMAGE_403=m0[403];W_.PRESENTED_IMAGE_404=m0[404];W_.PRESENTED_IMAGE_500=m0[500];const q_=W_;var N4e=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],zte=p.forwardRef(function(e,t){var r,n=e.prefixCls,i=n===void 0?"rc-switch":n,o=e.className,a=e.checked,s=e.defaultChecked,l=e.disabled,c=e.loadingIcon,d=e.checkedChildren,u=e.unCheckedChildren,f=e.onClick,h=e.onChange,v=e.onKeyDown,y=Nt(e,N4e),g=Or(!1,{value:a,defaultValue:s}),m=oe(g,2),S=m[0],C=m[1];function b(R,P){var I=S;return l||(I=R,C(I),h==null||h(I,P)),I}function w(R){R.which===Ue.LEFT?b(!1,R):R.which===Ue.RIGHT&&b(!0,R),v==null||v(R)}function E(R){var P=b(!S,R);f==null||f(P,R)}var _=ie(i,o,(r={},J(r,"".concat(i,"-checked"),S),J(r,"".concat(i,"-disabled"),l),r));return p.createElement("button",$e({},y,{type:"button",role:"switch","aria-checked":S,disabled:l,className:_,ref:t,onKeyDown:w,onClick:E}),c,p.createElement("span",{className:"".concat(i,"-inner")},p.createElement("span",{className:"".concat(i,"-inner-checked")},d),p.createElement("span",{className:"".concat(i,"-inner-unchecked")},u)))});zte.displayName="Switch";const D4e=e=>{const{componentCls:t,trackHeightSM:r,trackPadding:n,trackMinWidthSM:i,innerMinMarginSM:o,innerMaxMarginSM:a,handleSizeSM:s,calc:l}=e,c=`${t}-inner`,d=fe(l(s).add(l(n).mul(2)).equal()),u=fe(l(a).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:i,height:r,lineHeight:fe(r),[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:o,[`${c}-checked, ${c}-unchecked`]:{minHeight:r},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${d} - ${u})`,marginInlineEnd:`calc(100% - ${d} + ${u})`},[`${c}-unchecked`]:{marginTop:l(r).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:l(l(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${d} + ${u})`,marginInlineEnd:`calc(-100% + ${d} - ${u})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${fe(l(s).add(n).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:l(e.marginXXS).div(2).equal(),marginInlineEnd:l(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:l(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:l(e.marginXXS).div(2).equal()}}}}}}},L4e=e=>{const{componentCls:t,handleSize:r,calc:n}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:n(n(r).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},j4e=e=>{const{componentCls:t,trackPadding:r,handleBg:n,handleShadow:i,handleSize:o,calc:a}=e,s=`${t}-handle`;return{[t]:{[s]:{position:"absolute",top:r,insetInlineStart:r,width:o,height:o,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:n,borderRadius:a(o).div(2).equal(),boxShadow:i,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${fe(a(o).add(r).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},F4e=e=>{const{componentCls:t,trackHeight:r,trackPadding:n,innerMinMargin:i,innerMaxMargin:o,handleSize:a,calc:s}=e,l=`${t}-inner`,c=fe(s(a).add(s(n).mul(2)).equal()),d=fe(s(o).mul(2).equal());return{[t]:{[l]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:o,paddingInlineEnd:i,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${l}-checked, ${l}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:r},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${c} - ${d})`,marginInlineEnd:`calc(100% - ${c} + ${d})`},[`${l}-unchecked`]:{marginTop:s(r).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${l}`]:{paddingInlineStart:i,paddingInlineEnd:o,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${c} + ${d})`,marginInlineEnd:`calc(-100% + ${c} - ${d})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:s(n).mul(2).equal(),marginInlineEnd:s(n).mul(-1).mul(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:s(n).mul(-1).mul(2).equal(),marginInlineEnd:s(n).mul(2).equal()}}}}}},z4e=e=>{const{componentCls:t,trackHeight:r,trackMinWidth:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Kr(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:n,height:r,lineHeight:fe(r),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),Mc(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},B4e=e=>
383{const{fontSize:t,lineHeight:r,controlHeight:n,colorWhite:i}=e,o=t*r,a=n/2,s=2,l=o-s*2,c=a-s*2;return{trackHeight:o,trackHeightSM:a,trackMinWidth:l*2+s*4,trackMinWidthSM:c*2+s*2,trackPadding:s,handleBg:i,handleSize:l,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new ar("#00230b").setA(.2).toRgbString()}`,innerMinMargin:l/2,innerMaxMargin:l+s+s*2,innerMinMarginSM:c/2,innerMaxMarginSM:c+s+s*2}},H4e=Nr("Switch",e=>{const t=sr(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[z4e(t),F4e(t),j4e(t),L4e(t),D4e(t)]},B4e);var V4e=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const U4e=p.forwardRef((e,t)=>{const{prefixCls:r,size:n,disabled:i,loading:o,className:a,rootClassName:s,style:l,checked:c,value:d,defaultChecked:u,defaultValue:f,onChange:h}=e,v=V4e(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[y,g]=Or(!1,{value:c??d,defaultValue:u??f}),{getPrefixCls:m,direction:S,switch:C}=p.useContext(Vt),b=p.useContext(ra),w=(i??b)||o,E=m("switch",r),_=p.createElement("div",{className:`${E}-handle`},o&&p.createElement($c,{className:`${E}-loading-icon`})),[R,P,I]=H4e(E),O=Xi(n),A=ie(C==null?void 0:C.className,{[`${E}-small`]:O==="small",[`${E}-loading`]:o,[`${E}-rtl`]:S==="rtl"},a,s,P,I),x=Object.assign(Object.assign({},C==null?void 0:C.style),l),T=(...D)=>{g(D[0]),h==null||h.apply(void 0,D)};return R(p.createElement(R4,{component:"Switch"},p.createElement(zte,Object.assign({},v,{checked:y,onChange:T,prefixCls:E,className:A,style:x,disabled:w,ref:t,loadingIcon:_}))))}),Bte=U4e;Bte.__ANT_SWITCH=!0;const US=Bte,W4e=e=>{const{paddingXXS:t,lineWidth:r,tagPaddingHorizontal:n,componentCls:i,calc:o}=e,a=o(n).sub(r).equal(),s=o(t).sub(r).equal();return{[i]:Object.assign(Object.assign({},Kr(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${fe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${i}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${i}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorIcon,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${i}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${i}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:a}}),[`${i}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},O3=e=>{const{lineWidth:t,fontSizeIcon:r,calc:n}=e,i=e.fontSizeSM;return sr(e,{tagFontSize:i,tagLineHeight:fe(n(e.lineHeightSM).mul(i).equal()),tagIconSize:n(r).sub(n(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},T3=e=>({defaultBg:new ar(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),Hte=Nr("Tag",e=>{const t=O3(e);return W4e(t)},T3);var q4e=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const G4e=p.forwardRef((e,t)=>
383{const{prefixCls:r,style:n,className:i,checked:o,children:a,icon:s,onChange:l,onClick:c}=e,d=q4e(e,["prefixCls","style","className","checked","children","icon","onChange","onClick"]),{getPrefixCls:u,tag:f}=p.useContext(Vt),h=C=>{l==null||l(!o),c==null||c(C)},v=u("tag",r),[y,g,m]=Hte(v),S=ie(v,`${v}-checkable`,{[`${v}-checkable-checked`]:o},f==null?void 0:f.className,i,g,m);return y(p.createElement("span",Object.assign({},d,{ref:t,style:Object.assign(Object.assign({},n),f==null?void 0:f.style),className:S,onClick:h}),s,p.createElement("span",null,a)))}),K4e=G4e,Y4e=e=>IQ(e,(t,{textColor:r,lightBorderColor:n,lightColor:i,darkColor:o})=>({[`${e.componentCls}${e.componentCls}-${t}`]:{color:r,background:i,borderColor:n,"&-inverse":{color:e.colorTextLightSolid,background:o,borderColor:o},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}})),X4e=Wp(["Tag","preset"],e=>{const t=O3(e);return Y4e(t)},T3);function Q4e(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const WS=(e,t,r)=>{const n=Q4e(r);return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${r}`],background:e[`color${n}Bg`],borderColor:e[`color${n}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},J4e=Wp(["Tag","status"],e=>{const t=O3(e);return[WS(t,"success","Success"),WS(t,"processing","Info"),WS(t,"error","Error"),WS(t,"warning","Warning")]},T3);var Z4e=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const e3e=p.forwardRef((e,t)=>{const{prefixCls:r,className:n,rootClassName:i,style:o,children:a,icon:s,color:l,onClose:c,bordered:d=!0,visible:u}=e,f=Z4e(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:h,direction:v,tag:y}=p.useContext(Vt),[g,m]=p.useState(!0),S=Dn(f,["closeIcon","closable"]);p.useEffect(()=>{u!==void 0&&m(u)},[u]);const C=RZ(l),b=_Ee(l),w=C||b,E=Object.assign(Object.assign({backgroundColor:l&&!w?l:void 0},y==null?void 0:y.style),o),_=h("tag",r),[R,P,I]=Hte(_),O=ie(_,y==null?void 0:y.className,{[`${_}-${l}`]:w,[`${_}-has-color`]:l&&!w,[`${_}-hidden`]:!g,[`${_}-rtl`]:v==="rtl",[`${_}-borderless`]:!d},n,i,P,I),A=N=>{N.stopPropagation(),c==null||c(N),!N.defaultPrevented&&m(!1)},[,x]=OJ(Sb(e),Sb(y),{closable:!1,closeIconRender:N=>{const L=p.createElement("span",{className:`${_}-close-icon`,onClick:A},N);return C4(N,L,M=>({onClick:$=>{var F;(F=M==null?void 0:M.onClick)===null||F===void 0||F.call(M,$),A($)},className:ie(M==null?void 0:M.className,`${_}-close-icon`)}))}}),T=typeof f.onClick=="function"||a&&a.type==="a",D=s||null,k=D?p.createElement(p.Fragment,null,D,a&&p.createElement("span",null,a)):a,j=p.createElement("span",Object.assign({},S,{ref:t,className:O,style:E}),k,x,C&&p.createElement(X4e,{key:"preset",prefixCls:_}),b&&p.createElement(J4e,{key:"status",prefixCls:_}));return R(T?p.createElement(R4,{component:"Tag"},j):j)}),Vte=e3e;Vte.CheckableTag=K4e;const OI=Vte,t3e=(e,t,r,n)=>{const{titleMarginBottom:i,fontWeightStrong:o}=n;return{marginBottom:i,color:r,fontWeight:o,fontSize:e,lineHeight:t}},r3e=e=>{const t=[1,2,3,4,5],r={};return t.forEach(n=>{r[`
384      h${n}&,
385      div&-h${n},
386      div&-h${n} > textarea,
387      h${n}
388    `]=t3e(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)}),r},n3e=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},PQ(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},i3e=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:pb[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:e.fontWeightStrong},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),o3e=e=>{const{componentCls:t,paddingSM:r}=e,n=r;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(n).mul(-1).equal(),marginBottom:`calc(1em - ${fe(n)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},a3e=e=>({[`${e.componentCls}-copy-success`]:{"\n    &,\n    &:hover,\n    &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),s3e=()=>({"\n  a&-ellipsis,\n  span&-ellipsis\n  ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),l3e=e=>{const{componentCls:t,titleMarginTop:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger`]:{color:e.colorErrorText,"a&:active, a&:focus":{color:e.colorErrorTextActive},"a&:hover":{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n        div&,\n        p\n      ":{marginBottom:"1em"}},r3e(e)),{[`
389      & + h1${t},
390      & + h2${t},
391      & + h3${t},
392      & + h4${t},
393      & + h5${t}
394      `]:{marginTop:r},"\n      div,\n      ul,\n      li,\n      p,\n      h1,\n      h2,\n      h3,\n      h4,\n      h5":{"\n        + h1,\n        + h2,\n        + h3,\n        + h4,\n        + h5\n        ":{marginTop:r}}}),i3e(e)),n3e(e)),{[`
395        ${t}-expand,
396        ${t}-collapse,
397        ${t}-edit,
398        ${t}-copy
399      `]:Object.assign(Object.assign({},PQ(e)),{marginInlineStart:e.marginXXS})}),o3e(e)),a3e(e)),s3e()),{"&-rtl":{direction:"rtl"}})}},c3e=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),Ute=Nr("Typography",l3e,c3e),u3e=e=>{const{prefixCls:t,"aria-label":r,className:n,style:i,direction:o,maxLength:a,autoSize:s=!0,value:l,onSave:c,onCancel:d,onEnd:u,component:f,enterIcon:h=p.createElement(uNe,null)}=e,v=p.useRef(null),y=p.useRef(!1),g=p.useRef(null),[m,S]=p.useState(l);p.useEffect(()=>{S(l)},[l]),p.useEffect(()=>{var T;if(!((T=v.current)===null||T===void 0)&&T.resizableTextArea){const{textArea:D}=v.current.resizableTextArea;D.focus();const{length:k}=D.value;D.setSelectionRange(k,k)}},[]);const C=({target:T})=>{S(T.value.replace(/[\n\r]/g,""))},b=()=>{y.current=!0},w=()=>{y.current=!1},E=({keyCode:T})=>{y.current||(g.current=T)},_=()=>{c(m.trim())},R=({keyCode:T,ctrlKey:D,altKey:k,metaKey:j,shiftKey:N})=>{g.current!==T||y.current||D||k||j||N||(T===Ue.ENTER?(_(),u==null||u()):T===Ue.ESC&&d())},P=()=>{_()},[I,O,A]=Ute(t),x=ie(t,`${t}-edit-content`,{[`${t}-rtl`]:o==="rtl",[`${t}-${f}`]:!!f},n,O,A);return I(p.createElement("div",{className:x,style:i},p.createElement(Ote,{ref:v,maxLength:a,value:m,onChange:C,onKeyDown:E,onKeyUp:R,onCompositionStart:b,onCompositionEnd:w,onBlur:P,"aria-label":r,rows:1,autoSize:s}),h!==null?ka(h,{className:`${t}-edit-content-confirm`}):null))},d3e=u3e;var f3e=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||r.forEach(function(i){e.addRange(i)}),t&&t.focus()}},p3e=f3e,rF={"text/plain":"Text","text/html":"Url",default:"Text"},h3e="Copy to clipboard: #{key}, Enter";function v3e(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function g3e(e,t){var r,n,i,o,a,s,l=!1;t||(t={}),r=t.debug||!1;try{i=p3e(),o=document.createRange(),a=document.getSelection(),s=document.createElement("span"),s.textContent=e,s.ariaHidden="true",s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",function(d){if(d.stopPropagation(),t.format)if(d.preventDefault(),typeof d.clipboardData>"u"){window.clipboardData.clearData();var u=rF[t.format]||rF.default;window.clipboardData.setData(u,e)}else d.clipboardData.clearData(),d.clipboardData.setData(t.format,e);t.onCopy&&(d.preventDefault(),t.onCopy(d.clipboardData))}),document.body.appendChild(s),o.selectNodeContents(s),a.addRange(o);var c=document.execCommand("copy");if(!c)throw new Error("copy command was unsuccessful");l=!0}catch{try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch{n=v3e("message"in t?t.message:h3e),window.prompt(n,e)}}finally{a&&(typeof a.removeRange=="function"?a.removeRange(o):a.removeAllRanges()),s&&document.body.removeChild(s),i()}return l}var m3e=g3e;const y3e=Mo(m3e);var S3e=globalThis&&globalThis.__awaiter||function(e,t,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{c(n.next(d))}catch(u){a(u)}}function l(d){try{c(n.throw(d))}catch(u){a(u)}}function c(d){d.done?o(d.value):i(d.value).then(s,l)}c((n=n.apply(e,t||[])).next())})};const C3e=({copyConfig:e,children:t})=>{const[r,n]=p.useState(!1),[i,o]=p.useState(!1),a=p.useRef(null),s=()=>{a.current&&clearTimeout(a.current)},l={};e.format&&(l.format=e.format),p.useEffect(()=>s,[]);const c=lr(d=>S3e(void 0,void 0,void 0,function*(){var u;d==null||d.preventDefault(),d==null||d.stopPropagation(),o(!0);try{const f=typeof e.text=="function"?yield e.text():e.text;y3e(f||j$e(t,!0).join("")||"",l),o(!1),n(!0),s(),a.current=setTimeout(()=>{n(!1)},3e3),(u=e.onCopy)===null||u===void 0||u.call(e,d)}catch(f){throw o(!1),f}}));return{copied:r,copyLoading:i,onClick:c}},b3e=C3e;function TI(e,t){return p.useMemo(()=>{const r=!!e;return[r,Object.assign(Object.assign({},t),r&&typeof e=="object"?e:null)]},[e])}const w3e=e=>{const t=p.useRef(void 0);return p.useEffect(()=>{t.current=e}),t.current},_3e=w3e,E3e=(e,t,r)=>p.useMemo(()=>e===!0?{title:t??r}:p.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??r},e):{title:e},[e,t,r]),R3e=E3e;var P3e=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const I3e=p.forwardRef((e,t)=>
399{const{prefixCls:r,component:n="article",className:i,rootClassName:o,setContentRef:a,children:s,direction:l,style:c}=e,d=P3e(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:u,direction:f,className:h,style:v}=Jn("typography"),y=l??f,g=a?ui(t,a):t,m=u("typography",r),[S,C,b]=Ute(m),w=ie(m,h,{[`${m}-rtl`]:y==="rtl"},i,o,C,b),E=Object.assign(Object.assign({},v),c);return S(p.createElement(n,Object.assign({className:w,style:E,ref:g},d),s))}),Wte=I3e;function nF(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function AI(e,t,r){return e===!0||e===void 0?t:e||r&&t}function x3e(e){const t=document.createElement("em");e.appendChild(t);const r=e.getBoundingClientRect(),n=t.getBoundingClientRect();return e.removeChild(t),r.left>n.left||n.right>r.right||r.top>n.top||n.bottom>r.bottom}const A3=e=>["string","number"].includes(typeof e),O3e=({prefixCls:e,copied:t,locale:r,iconOnly:n,tooltips:i,icon:o,tabIndex:a,onCopy:s,loading:l})=>{const c=nF(i),d=nF(o),{copied:u,copy:f}=r??{},h=t?u:f,v=AI(c[t?1:0],h),y=typeof v=="string"?v:h;return p.createElement(co,{title:v,getPopupContainer:g=>g.parentNode},p.createElement("button",{type:"button",className:ie(`${e}-copy`,{[`${e}-copy-success`]:t,[`${e}-copy-icon-only`]:n}),onClick:s,"aria-label":y,tabIndex:a},t?AI(d[1],p.createElement(u0,null),!0):AI(d[0],l?p.createElement($c,null):p.createElement(Fke,null),!0)))},T3e=O3e,qS=p.forwardRef(({style:e,children:t},r)=>{const n=p.useRef(null);return p.useImperativeHandle(r,()=>({isExceed:()=>{const i=n.current;return i.scrollHeight>i.clientHeight},getHeight:()=>n.current.clientHeight})),p.createElement("span",{"aria-hidden":!0,ref:n,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},e)},t)}),A3e=e=>e.reduce((t,r)=>t+(A3(r)?String(r).length:1),0);function iF(e,t){let r=0;const n=[];for(let i=0;i<e.length;i+=1){if(r===t)return n;const o=e[i],s=A3(o)?String(o).length:1,l=r+s;if(l>t){const c=t-r;return n.push(String(o).slice(0,c)),n}n.push(o),r=l}return e}const MI=0,$I=1,kI=2,NI=3,oF=4,GS={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function M3e(e){const{enableMeasure:t,width:r,text:n,children:i,rows:o,expanded:a,miscDeps:s,onEllipsis:l}=e,c=p.useMemo(()=>Jo(n),[n]),d=p.useMemo(()=>A3e(c),[n]),u=p.useMemo(()=>i(c,!1),[n]),[f,h]=p.useState(null),v=p.useRef(null),y=p.useRef(null),g=p.useRef(null),m=p.useRef(null),S=p.useRef(null),[C,b]=p.useState(!1),[w,E]=p.useState(MI),[_,R]=p.useState(0),[P,I]=p.useState(null);nr(()=>{E(t&&r&&d?$I:MI)},[r,n,o,t,c]),nr(()=>{var T,D,k,j;if(w===$I){E(kI);const N=y.current&&getComputedStyle(y.current).whiteSpace;I(N)}else if(w===kI){const N=!!(!((T=g.current)===null||T===void 0)&&T.isExceed());E(N?NI:oF),h(N?[0,d]:null),b(N);const L=((D=g.current)===null||D===void 0?void 0:D.getHeight())||0,M=o===1?0:((k=m.current)===null||k===void 0?void 0:k.getHeight())||0,$=((j=S.current)===null||j===void 0?void 0:j.getHeight())||0,F=Math.max(L,M+$);R(F+1),l(N)}},[w]);const O=f?Math.ceil((f[0]+f[1])/2):0;nr(()=>{var T;const[D,k]=f||[0,0];if(D!==k){const N=(((T=v.current)===null||T===void 0?void 0:T.getHeight())||0)>_;let L=O;k-D===1&&(L=N?D:k),h(N?[D,L]:[L,k])}},[f,O]);const A=p.useMemo(()=>{if(!t)return i(c,!1);if(w!==NI||!f||f[0]!==f[1]){const T=i(c,!1);return[oF,MI].includes(w)?T:p.createElement("span",{style:Object.assign(Object.assign({},GS),{WebkitLineClamp:o})},T)}return i(a?c:iF(c,f[0]),C)},[a,w,f,c].concat(Ge(s))),x={width:r,margin:0,padding:0,whiteSpace:P==="nowrap"?"normal":"inherit"};return p.createElement(p.Fragment,null,A,w===kI&&p.createElement(p.Fragment,null,p.createElement(qS,{style:Object.assign(Object.assign(Object.assign({},x),GS),{WebkitLineClamp:o}),ref:g},u),p.createElement(qS,{style:Object.assign(Object.assign(Object.assign({},x),GS),{WebkitLineClamp:o-1}),ref:m},u),p.createElement(qS,{style:Object.assign(Object.assign(Object.assign({},x),GS),{WebkitLineClamp:1}),ref:S},i([],!0))),w===NI&&f&&f[0]!==f[1]&&p.createElement(qS,{style:Object.assign(Object.assign({},x),{top:400}),ref:v},i(iF(c,O),!0)),w===$I&&p.createElement("span",{style:{whiteSpace:"inherit"},ref:y}))}const $3e=({enableEllipsis:e,isEllipsis:t,children:r,tooltipProps:n})=>
399!(n!=null&&n.title)||!e?r:p.createElement(co,Object.assign({open:t?void 0:!1},n),r),k3e=$3e;var N3e=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function D3e({mark:e,code:t,underline:r,delete:n,strong:i,keyboard:o,italic:a},s){let l=s;function c(d,u){u&&(l=p.createElement(d,{},l))}return c("strong",i),c("u",r),c("del",n),c("code",t),c("mark",e),c("kbd",o),c("i",a),l}const L3e="...",aF=["delete","mark","code","underline","strong","keyboard","italic"],j3e=p.forwardRef((e,t)=>{var r;const{prefixCls:n,className:i,style:o,type:a,disabled:s,children:l,ellipsis:c,editable:d,copyable:u,component:f,title:h}=e,v=N3e(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:y,direction:g}=p.useContext(Vt),[m]=$o("Text"),S=p.useRef(null),C=p.useRef(null),b=y("typography",n),w=Dn(v,aF),[E,_]=TI(d),[R,P]=Or(!1,{value:_.editing}),{triggerType:I=["icon"]}=_,O=me=>{var ce;me&&((ce=_.onStart)===null||ce===void 0||ce.call(_)),P(me)},A=_3e(R);nr(()=>{var me;!R&&A&&((me=C.current)===null||me===void 0||me.focus())},[R]);const x=me=>{me==null||me.preventDefault(),O(!0)},T=me=>{var ce;(ce=_.onChange)===null||ce===void 0||ce.call(_,me),O(!1)},D=()=>{var me;(me=_.onCancel)===null||me===void 0||me.call(_),O(!1)},[k,j]=TI(u),{copied:N,copyLoading:L,onClick:M}=b3e({copyConfig:j,children:l}),[$,F]=p.useState(!1),[z,H]=p.useState(!1),[U,V]=p.useState(!1),[W,K]=p.useState(!1),[Z,q]=p.useState(!0),[Y,G]=TI(c,{expandable:!1,symbol:me=>me?m==null?void 0:m.collapse:m==null?void 0:m.expand}),[re,ee]=Or(G.defaultExpanded||!1,{value:G.expanded}),ne=Y&&(!re||G.expandable==="collapsible"),{rows:te=1}=G,pe=p.useMemo(()=>ne&&(G.suffix!==void 0||G.onEllipsis||G.expandable||E||k),[ne,G,E,k]);nr(()=>{Y&&!pe&&(F(cj("webkitLineClamp")),H(cj("textOverflow")))},[pe,Y]);const[le,ye]=p.useState(ne),Se=p.useMemo(()=>pe?!1:te===1?z:$,[pe,z,$]);nr(()=>{ye(Se&&ne)},[Se,ne]);const _e=ne&&(le?W:U),De=ne&&te===1&&le,be=ne&&te>1&&le,se=(me,ce)=>{var Ae;ee(ce.expanded),(Ae=G.onExpand)===null||Ae===void 0||Ae.call(G,me,ce)},[Pe,Te]=p.useState(0),ze=({offsetWidth:me})=>{Te(me)},ke=me=>{var ce;V(me),U!==me&&((ce=G.onEllipsis)===null||ce===void 0||ce.call(G,me))};p.useEffect(()=>{const me=S.current;if(Y&&le&&me){const ce=x3e(me);W!==ce&&K(ce)}},[Y,le,l,be,Z,Pe]),p.useEffect(()=>{const me=S.current;if(typeof IntersectionObserver>"u"||!me||!le||!ne)return;const ce=new IntersectionObserver(()=>{q(!!me.offsetParent)});return ce.observe(me),()=>{ce.disconnect()}},[le,ne]);const Me=R3e(G.tooltip,_.text,l),qe=p.useMemo(()=>{if(!(!Y||le))return[_.text,l,h,Me.title].find(A3)},[Y,le,h,Me.title,_e]);if(R)return p.createElement(d3e,{value:(r=_.text)!==null&&r!==void 0?r:typeof l=="string"?l:"",onSave:T,onCancel:D,onEnd:_.onEnd,prefixCls:b,className:i,style:o,direction:g,component:f,maxLength:_.maxLength,autoSize:_.autoSize,enterIcon:_.enterIcon});const Le=()=>{const{expandable:me,symbol:ce}=G;return me?p.createElement("button",{type:"button",key:"expand",className:`${b}-${re?"collapse":"expand"}`,onClick:Ae=>se(Ae,{expanded:!re}),"aria-label":re?m.collapse:m==null?void 0:m.expand},typeof ce=="function"?ce(re):ce):null},xe=()=>{if(!E)return;const{icon:me,tooltip:ce,tabIndex:Ae}=_,We=Jo(ce)[0]||(m==null?void 0:m.edit),lt=typeof We=="string"?We:"";return I.includes("icon")?p.createElement(co,{key:"edit",title:ce===!1?"":We},p.createElement("button",{type:"button",ref:C,className:`${b}-edit`,onClick:x,"aria-label":lt,tabIndex:Ae},me||p.createElement(oNe,{role:"button"}))):null},je=()=>k?p.createElement(T3e,Object.assign({key:"copy"},j,{prefixCls:b,copied:N,locale:m,onCopy:M,loading:L,iconOnly:l==null})):null,Ee=me=>[me&&Le(),xe(),je()],Re=me=>[me&&!re&&p.createElement("span",{"aria-hidden":!0,key:"ellipsis"},L3e),G.suffix,Ee(me)];return p.createElement(ao,{onResize:ze,disabled:!ne},me=>p.createElement(k3e,{tooltipProps:Me,enableEllipsis:ne,isEllipsis:_e},p.createElement(Wte,Object.assign({className:ie({[`${b}-${a}`]:a,[`${b}-disabled`]:s,[`${b}-ellipsis`]:Y,[`${b}-ellipsis-single-line`]:De,[`${b}-ellipsis-multiple-line`]:be},i),prefixCls:n,style:Object.assign(Object.assign({},o),{WebkitLineClamp:be?te:void 0}),component:f,ref:ui(me,S,t),direction:g,onClick:I.includes("text")?x:void 0,"aria-label":qe==null?void 0:qe.toString(),title:h},w),p.createElement(M3e,{enableMeasure:ne&&!le,text:l,rows:te,width:Pe,onEllipsis:ke,expanded:re,miscDeps:[N,re,L,E,k,m].concat(Ge(aF.map(ce=>e[ce])))},(ce,Ae)=>D3e(e,p.createElement(p.Fragment,null,ce.length>0&&Ae&&!re&&qe?p.createElement("span",{key:"show-content","aria-hidden":!0},ce):ce,Re(Ae)))))))}),G_=j3e;var F3e=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const z3e=p.forwardRef((e,t)=>
399{var{ellipsis:r,rel:n}=e,i=F3e(e,["ellipsis","rel"]);const o=Object.assign(Object.assign({},i),{rel:n===void 0&&i.target==="_blank"?"noopener noreferrer":n});return delete o.navigate,p.createElement(G_,Object.assign({},o,{ref:t,ellipsis:!!r,component:"a"}))}),B3e=z3e,H3e=p.forwardRef((e,t)=>p.createElement(G_,Object.assign({ref:t},e,{component:"div"}))),qte=H3e;var V3e=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const U3e=(e,t)=>{var{ellipsis:r}=e,n=V3e(e,["ellipsis"]);const i=p.useMemo(()=>r&&typeof r=="object"?Dn(r,["expandable","rows"]):r,[r]);return p.createElement(G_,Object.assign({ref:t},n,{ellipsis:i,component:"span"}))},W3e=p.forwardRef(U3e);var q3e=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const G3e=[1,2,3,4,5],K3e=p.forwardRef((e,t)=>{const{level:r=1}=e,n=q3e(e,["level"]),i=G3e.includes(r)?`h${r}`:"h1";return p.createElement(G_,Object.assign({ref:t},n,{component:i}))}),Y3e=K3e,y0=Wte;y0.Text=W3e;y0.Link=B3e;y0.Title=Y3e;y0.Paragraph=qte;const vy=y0,DI=function(e,t){if(e&&t){var r=Array.isArray(t)?t:t.split(","),n=e.name||"",i=e.type||"",o=i.replace(/\/.*$/,"");return r.some(function(a){var s=a.trim();if(/^\*(\/\*)?$/.test(a))return!0;if(s.charAt(0)==="."){var l=n.toLowerCase(),c=s.toLowerCase(),d=[c];return(c===".jpg"||c===".jpeg")&&(d=[".jpg",".jpeg"]),d.some(function(u){return l.endsWith(u)})}return/\/\*$/.test(s)?o===s.replace(/\/.*$/,""):i===s?!0:/^\w+$/.test(s)?(Nn(!1,"Upload takes an invalidate 'accept' type '".concat(s,"'.Skip for check.")),!0):!1})}return!0};function X3e(e,t){var r="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),n=new Error(r);return n.status=t.status,n.method=e.method,n.url=e.action,n}function sF(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function Q3e(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(o){o.total>0&&(o.percent=o.loaded/o.total*100),e.onProgress(o)});var r=new FormData;e.data&&Object.keys(e.data).forEach(function(i){var o=e.data[i];if(Array.isArray(o)){o.forEach(function(a){r.append("".concat(i,"[]"),a)});return}r.append(i,o)}),e.file instanceof Blob?r.append(e.filename,e.file,e.file.name):r.append(e.filename,e.file),t.onerror=function(o){e.onError(o)},t.onload=function(){return t.status<200||t.status>=300?e.onError(X3e(e,t),sF(t)):e.onSuccess(sF(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var n=e.headers||{};return n["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(n).forEach(function(i){n[i]!==null&&t.setRequestHeader(i,n[i])}),t.send(r),{abort:function(){t.abort()}}}var J3e=function(){var e=io(Dr().mark(function t(r,n){var i,o,a,s,l,c,d,u;return Dr().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:c=function(){return c=io(Dr().mark(function y(g){return Dr().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return S.abrupt("return",new Promise(function(C){g.file(function(b){n(b)?(g.fullPath&&!b.webkitRelativePath&&(Object.defineProperties(b,{webkitRelativePath:{writable:!0}}),b.webkitRelativePath=g.fullPath.replace(/^\//,""),Object.defineProperties(b,{webkitRelativePath:{writable:!1}})),C(b)):C(null)})}));case 1:case"end":return S.stop()}},y)})),c.apply(this,arguments)},l=function(y){return c.apply(this,arguments)},s=function(){return s=io(Dr().mark(function y(g){var m,S,C,b,w;return Dr().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:m=g.createReader(),S=[];case 2:return _.next=5,new Promise(function(R){m.readEntries(R,function(){return R([])})});case 5:if(C=_.sent,b=C.length,b){_.next=9;break}return _.abrupt("break",12);case 9:for(w=0;w<b;w++)S.push(C[w]);_.next=2;break;case 12:return _.abrupt("return",S);case 13:case"end":return _.stop()}},y)})),s.apply(this,arguments)},a=function(y){return s.apply(this,arguments)},i=[],o=[],r.forEach(function(v){return o.push(v.webkitGetAsEntry())}),d=function(){var v=io(Dr().mark(function y(g,m){var S,C;return Dr().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:if(g){w.next=2;break}return w.abrupt("return");case 2:if(g.path=m||"",!g.isFile){w.next=10;break}return w.next=6,l(g);case 6:S=w.sent,S&&i.push(S),w.next=15;break;case 10:if(!g.isDirectory){w.next=15;break}return w.next=13,a(g);case 13:C=w.sent,o.push.apply(o,Ge(C));case 15:case"end":return w.stop()}},y)}));return function(g,m){return v.apply(this,arguments)}}(),u=0;case 9:if(!(u<o.length)){h.next=15;break}return h.next=12,d(o[u]);case 12:u++,h.next=9;break;case 15:return h.abrupt("return",i);case 16:case"end":return h.stop()}},t)}));return function(r,n){return e.apply(this,arguments)}}(),Z3e=+new Date,eDe=0;function LI(){return"rc-upload-".concat(Z3e,"-").concat(++eDe)}var tDe=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],rDe=function(e){di(r,e);var t=us(r);function r(){var n;zr(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),J(Ut(n),"state",{uid:LI()}),J(Ut(n),"reqs",{}),J(Ut(n),"fileInput",void 0),J(Ut(n),"_isMounted",void 0),J(Ut(n),"onChange",function(s){var l=n.props,c=l.accept,d=l.directory,u=s.target.files,f=Ge(u).filter(function(h){return!d||DI(h,c)});n.uploadFiles(f),n.reset()}),J(Ut(n),"onClick",function(s){var l=n.fileInput;if(l){var c=s.target,d=n.props.onClick;if(c&&c.tagName==="BUTTON"){var u=l.parentNode;u.focus(),c.blur()}l.click(),d&&d(s)}}),J(Ut(n),"onKeyDown",function(s){s.key==="Enter"&&n.onClick(s)}),J(Ut(n),"onDataTransferFiles",function(){var s=io(Dr().mark(function l(c,d){var u,f,h,v,y,g,m;return Dr().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:if(u=n.props,f=u.multiple,h=u.accept,v=u.directory,y=Ge(c.items||[]),g=Ge(c.files||[]),(g.length>0||y.some(function(b){return b.kind==="file"}))&&(d==null||d()),!v){C.next=11;break}return C.next=7,J3e(Array.prototype.slice.call(y),function(b){return DI(b,n.props.accept)});case 7:g=C.sent,n.uploadFiles(g),C.next=14;break;case 11:m=Ge(g).filter(function(b){return DI(b,h)}
399),f===!1&&(m=g.slice(0,1)),n.uploadFiles(m);case 14:case"end":return C.stop()}},l)}));return function(l,c){return s.apply(this,arguments)}}()),J(Ut(n),"onFilePaste",function(){var s=io(Dr().mark(function l(c){var d,u;return Dr().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:if(d=n.props.pastable,d){h.next=3;break}return h.abrupt("return");case 3:if(c.type!=="paste"){h.next=6;break}return u=c.clipboardData,h.abrupt("return",n.onDataTransferFiles(u,function(){c.preventDefault()}));case 6:case"end":return h.stop()}},l)}));return function(l){return s.apply(this,arguments)}}()),J(Ut(n),"onFileDragOver",function(s){s.preventDefault()}),J(Ut(n),"onFileDrop",function(){var s=io(Dr().mark(function l(c){var d;return Dr().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(c.preventDefault(),c.type!=="drop"){f.next=4;break}return d=c.dataTransfer,f.abrupt("return",n.onDataTransferFiles(d));case 4:case"end":return f.stop()}},l)}));return function(l){return s.apply(this,arguments)}}()),J(Ut(n),"uploadFiles",function(s){var l=Ge(s),c=l.map(function(d){return d.uid=LI(),n.processFile(d,l)});Promise.all(c).then(function(d){var u=n.props.onBatchStart;u==null||u(d.map(function(f){var h=f.origin,v=f.parsedFile;return{file:h,parsedFile:v}})),d.filter(function(f){return f.parsedFile!==null}).forEach(function(f){n.post(f)})})}),J(Ut(n),"processFile",function(){var s=io(Dr().mark(function l(c,d){var u,f,h,v,y,g,m,S,C;return Dr().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:if(u=n.props.beforeUpload,f=c,!u){w.next=14;break}return w.prev=3,w.next=6,u(c,d);case 6:f=w.sent,w.next=12;break;case 9:w.prev=9,w.t0=w.catch(3),f=!1;case 12:if(f!==!1){w.next=14;break}return w.abrupt("return",{origin:c,parsedFile:null,action:null,data:null});case 14:if(h=n.props.action,typeof h!="function"){w.next=21;break}return w.next=18,h(c);case 18:v=w.sent,w.next=22;break;case 21:v=h;case 22:if(y=n.props.data,typeof y!="function"){w.next=29;break}return w.next=26,y(c);case 26:g=w.sent,w.next=30;break;case 29:g=y;case 30:return m=(Pt(f)==="object"||typeof f=="string")&&f?f:c,m instanceof File?S=m:S=new File([m],c.name,{type:c.type}),C=S,C.uid=c.uid,w.abrupt("return",{origin:c,data:g,parsedFile:C,action:v});case 35:case"end":return w.stop()}},l,null,[[3,9]])}));return function(l,c){return s.apply(this,arguments)}}()),J(Ut(n),"saveFileInput",function(s){n.fileInput=s}),n}return Br(r,[{key:"componentDidMount",value:function(){this._isMounted=!0;var i=this.props.pastable;i&&document.addEventListener("paste",this.onFilePaste)}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort(),document.removeEventListener("paste",this.onFilePaste)}},{key:"componentDidUpdate",value:function(i){var o=this.props.pastable;o&&!i.pastable?document.addEventListener("paste",this.onFilePaste):!o&&i.pastable&&document.removeEventListener("paste",this.onFilePaste)}},{key:"post",value:function(i){var o=this,a=i.data,s=i.origin,l=i.action,c=i.parsedFile;if(this._isMounted){var d=this.props,u=d.onStart,f=d.customRequest,h=d.name,v=d.headers,y=d.withCredentials,g=d.method,m=s.uid,S=f||Q3e,C={action:l,filename:h,data:a,file:c,headers:v,withCredentials:y,method:g||"post",onProgress:function(w){var E=o.props.onProgress;E==null||E(w,c)},onSuccess:function(w,E){var _=o.props.onSuccess;_==null||_(w,c,E),delete o.reqs[m]},onError:function(w,E){var _=o.props.onError;_==null||_(w,E,c),delete o.reqs[m]}};u(s),this.reqs[m]=S(C)}}},{key:"reset",value:function(){this.setState({uid:LI()})}},{key:"abort",value:function(i){var o=this.reqs;if(i){var a=i.uid?i.uid:i;o[a]&&o[a].abort&&o[a].abort(),delete o[a]}else Object.keys(o).forEach(function(s){o[s]&&o[s].abort&&o[s].abort(),delete o[s]})}},{key:"render",value:function(){var i=this.props,o=i.component,a=i.prefixCls,s=i.className,l=i.classNames,c=l===void 0?{}:l,d=i.disabled,u=i.id,f=i.name,h=i.style,v=i.styles,y=v===void 0?{}:v,g=i.multiple,m=i.accept,S=i.capture,C=i.children,b=i.directory,w=i.openFileDialogOnClick,E=i.onMouseEnter,_=i.onMouseLeave,R=i.hasControlInside,P=Nt(i,tDe),I=ie(J(J(J({}
vendor: 5,149 bytes, lines 399-412
399,a,!0),"".concat(a,"-disabled"),d),s,s)),O=b?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},A=d?{}:{onClick:w?this.onClick:function(){},onKeyDown:w?this.onKeyDown:function(){},onMouseEnter:E,onMouseLeave:_,onDrop:this.onFileDrop,onDragOver:this.onFileDragOver,tabIndex:R?void 0:"0"};return de.createElement(o,$e({},A,{className:I,role:R?void 0:"button",style:h}),de.createElement("input",$e({},lo(P,{aria:!0,data:!0}),{id:u,name:f,disabled:d,type:"file",ref:this.saveFileInput,onClick:function(T){return T.stopPropagation()},key:this.state.uid,style:Q({display:"none"},y.input),className:c.input,accept:m},O,{multiple:g,onChange:this.onChange},S!=null?{capture:S}:{})),C)}}]),r}(p.Component);function jI(){}var x$=function(e){di(r,e);var t=us(r);function r(){var n;zr(this,r);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=t.call.apply(t,[this].concat(o)),J(Ut(n),"uploader",void 0),J(Ut(n),"saveUploader",function(s){n.uploader=s}),n}return Br(r,[{key:"abort",value:function(i){this.uploader.abort(i)}},{key:"render",value:function(){return de.createElement(rDe,$e({},this.props,{ref:this.saveUploader}))}}]),r}(p.Component);J(x$,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:jI,onError:jI,onSuccess:jI,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});const nDe=e=>{const{componentCls:t,iconCls:r}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${fe(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${fe(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`
400          &:not(${t}-disabled):hover,
401          &-hover:not(${t}-disabled)
402        `]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[r]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${fe(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${r},
403            p${t}-text,
404            p${t}-hint
405          `]:{color:e.colorTextDisabled}}}}}},iDe=nDe,oDe=e=>{const{componentCls:t,iconCls:r,fontSize:n,lineHeight:i,calc:o}=e,a=`${t}-list-item`,s=`${a}-actions`,l=`${a}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},Vc()),{lineHeight:e.lineHeight,[a]:{position:"relative",height:o(e.lineHeight).mul(n).equal(),marginTop:e.marginXS,fontSize:n,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${a}-name`]:Object.assign(Object.assign({},zs),{padding:`0 ${fe(e.paddingXS)}`,lineHeight:i,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[s]:{whiteSpace:"nowrap",[l]:{opacity:0},[r]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[`
406              ${l}:focus-visible,
407              &.picture ${l}
408            `]:{opacity:1}},[`${t}-icon ${r}`]:{color:e.colorIcon,fontSize:n},[`${a}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:o(n).add(e.paddingXS).equal(),fontSize:n,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${a}:hover ${l}`]:{opacity:1},[`${a}-error`]:{color:e.colorError,[`${a}-name, ${t}-icon ${r}`]:{color:e.colorError},[s]:{[`${r}, ${r}:hover`]:{color:e.colorError},[l]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},aDe=oDe,sDe=e=>{const{componentCls:t}=e,r=new mr("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),n=new mr("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),i=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${i}-appear, ${i}-enter, ${i}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${i}-appear, ${i}-enter`]:{animationName:r},[`${i}-leave`]:{animationName:n}}},{[`${t}-wrapper`]:P4(e)},r,n]},lDe=sDe,cDe=e=>{const{componentCls:t,iconCls:r,uploadThumbnailSize:n,uploadProgressOffset:i,calc:o}=e,a=`${t}-list`,s=`${a}-item`;return{[`${t}-wrapper`]:{[`
409        ${a}${a}-picture,
410        ${a}${a}-picture-card,
411        ${a}${a}-picture-circle
412      `]:{[s]:{position:"relative",height:o(n).add(o(e.lineWidth).mul(2)).add(o(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${fe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${s}
412-thumbnail`]:Object.assign(Object.assign({},zs),{width:n,height:n,lineHeight:fe(o(n).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[r]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${s}-progress`]:{bottom:i,width:`calc(100% - ${fe(o(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:o(n).add(e.paddingXS).equal()}},[`${s}-error`]:{borderColor:e.colorError,[`${s}-thumbnail ${r}`]:{[`svg path[fill='${Sp[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${Sp.primary}']`]:{fill:e.colorError}}},[`${s}-uploading`]:{borderStyle:"dashed",[`${s}-name`]:{marginBottom:i}}},[`${a}${a}-picture-circle ${s}`]:{[`&, &::before, ${s}-thumbnail`]:{borderRadius:"50%"}}}}},uDe=e=>{const{componentCls:t,iconCls:r,fontSizeLG:n,colorTextLightSolid:i,calc:o}=e,a=`${t}-list`,s=`${a}-item`,l=e.uploadPicCardSize;return{[`
413      ${t}-wrapper${t}-picture-card-wrapper,
414      ${t}-wrapper${t}-picture-circle-wrapper
415    `]:Object.assign(Object.assign({},Vc()),{display:"block",[`${t}${t}-select`]:{width:l,height:l,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${fe(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${a}${a}-picture-card, ${a}${a}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${a}-item-container`]:{display:"inline-block",width:l,height:l,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[s]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${fe(o(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${fe(o(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${s}:hover`]:{[`&::before, ${s}-actions`]:{opacity:1}},[`${s}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`
416            ${r}-eye,
417            ${r}-download,
418            ${r}-delete
419          `]:{zIndex:10,width:n,margin:`0 ${fe(e.marginXXS)}`,fontSize:n,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:i,"&:hover":{color:i},svg:{verticalAlign:"baseline"}}},[`${s}-thumbnail, ${s}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${s}-name`]:{display:"none",textAlign:"center"},[`${s}-file + ${s}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${fe(o(e.paddingXS).mul(2).equal())})`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${r}-eye, ${r}-download, ${r}-delete`]:{display:"none"}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${fe(o(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},dDe=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},fDe=dDe,pDe=e=>{const{componentCls:t,colorTextDisabled:r}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},Kr(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-hidden`]:{display:"none"},[`${t}-disabled`]:{color:r,cursor:"not-allowed"}})}},hDe=e=>({actionsColor:e.colorIcon}),vDe=Nr("Upload",e=>{const{fontSizeHeading3:t,fontHeight:r,lineWidth:n,controlHeightLG:i,calc:o}=e,a=sr(e,{uploadThumbnailSize:o(t).mul(2).equal(),uploadProgressOffset:o(o(r).div(2)).add(n).equal(),uploadPicCardSize:o(i).mul(2.55).equal()});return[pDe(a),iDe(a),cDe(a),uDe(a),aDe(a),lDe(a),fDe(a),cJ(a)]},hDe);function KS(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function YS(e,t){const r=Ge(t),n=r.findIndex(({uid:i})=>i===e.uid);return n===-1?r.push(e):r[n]=e,r}function FI(e,t){const r=e.uid!==void 0?"uid":"name";return t.filter(n=>n[r]===e[r])[0]}function gDe(e,t){const r=e.uid!==void 0?"uid":"name",n=t.filter(i=>i[r]!==e[r]);return n.length===t.length?null:n}const mDe=(e="")=>{const t=e.split("/"),n=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(n)||[""])[0]},Gte=e=>e.indexOf("image/")===0,yDe=e=>{if(e.type&&!e.thumbUrl)return Gte(e.type);const t=e.thumbUrl||e.url||"",r=mDe(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(r)?!0:!(/^data:/.test(t)||r)},Wl=200;function SDe(e){return new Promise(t=>{if(!e.type||!Gte(e.type)){t("");return}const r=document.createElement("canvas");r.width=Wl,r.height=Wl,r.style.cssText=`position: fixed; left: 0; top: 0; width: ${Wl}px; height: ${Wl}px; z-index: 9999; display: none;`,document.body.appendChild(r);const n=r.getContext("2d"),i=new Image;if(i.onload=()=>{const{width:o,height:a}=i;let s=Wl,l=Wl,c=0,d=0;o>a?(l=a*(Wl/o),d=-(l-s)/2):(s=o*(Wl/a),c=-(s-l)/2),n.drawImage(i,c,d,s,l);const u=r.toDataURL();document.body.removeChild(r),window.URL.revokeObjectURL(i.src),t(u)},i.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const o=new FileReader;o.onload=()=>{o.result&&typeof o.result=="string"&&(i.src=o.result)},o.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const o=new FileReader;o.onload=()=>{o.result&&t(o.result)},o.readAsDataURL(e)}else i.src=window.URL.createObjectURL(e)})}const CDe=p.forwardRef(({prefixCls:e,className:t,style:r,locale:n,listType:i,file:o,items:a,progress:s,iconRender:l,actionIconRender:c,itemRender:d,isImgUrl:u,showPreviewIcon:f,showRemoveIcon:h,showDownloadIcon:v,previewIcon:y,removeIcon:g,downloadIcon:m,extra:S,onPreview:C,onDownload:b,onClose:w},E)=>{var _,R;const{status:P}=o,[I,O]=p.useState(P);p.useEffect(()=>{P!=="removed"&&O(P)},[P]);
419const[A,x]=p.useState(!1);p.useEffect(()=>{const G=setTimeout(()=>{x(!0)},300);return()=>{clearTimeout(G)}},[]);const T=l(o);let D=p.createElement("div",{className:`${e}-icon`},T);if(i==="picture"||i==="picture-card"||i==="picture-circle")if(I==="uploading"||!o.thumbUrl&&!o.url){const G=ie(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:I!=="uploading"});D=p.createElement("div",{className:G},T)}else{const G=u!=null&&u(o)?p.createElement("img",{src:o.thumbUrl||o.url,alt:o.name,className:`${e}-list-item-image`,crossOrigin:o.crossOrigin}):T,re=ie(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:u&&!u(o)});D=p.createElement("a",{className:re,onClick:ee=>C(o,ee),href:o.url||o.thumbUrl,target:"_blank",rel:"noopener noreferrer"},G)}const k=ie(`${e}-list-item`,`${e}-list-item-${I}`),j=typeof o.linkProps=="string"?JSON.parse(o.linkProps):o.linkProps,N=(typeof h=="function"?h(o):h)?c((typeof g=="function"?g(o):g)||p.createElement(Yke,null),()=>w(o),e,n.removeFile,!0):null,L=(typeof v=="function"?v(o):v)&&I==="done"?c((typeof m=="function"?m(o):m)||p.createElement(eNe,null),()=>b(o),e,n.downloadFile):null,M=i!=="picture-card"&&i!=="picture-circle"&&p.createElement("span",{key:"download-delete",className:ie(`${e}-list-item-actions`,{picture:i==="picture"})},L,N),$=typeof S=="function"?S(o):S,F=$&&p.createElement("span",{className:`${e}-list-item-extra`},$),z=ie(`${e}-list-item-name`),H=o.url?p.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:z,title:o.name},j,{href:o.url,onClick:G=>C(o,G)}),o.name,F):p.createElement("span",{key:"view",className:z,onClick:G=>C(o,G),title:o.name},o.name,F),U=(typeof f=="function"?f(o):f)&&(o.url||o.thumbUrl)?p.createElement("a",{href:o.url||o.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:G=>C(o,G),title:n.previewFile},typeof y=="function"?y(o):y||p.createElement(I3,null)):null,V=(i==="picture-card"||i==="picture-circle")&&I!=="uploading"&&p.createElement("span",{className:`${e}-list-item-actions`},U,I==="done"&&L,N),{getPrefixCls:W}=p.useContext(Vt),K=W(),Z=p.createElement("div",{className:k},D,H,M,V,A&&p.createElement(No,{motionName:`${K}-fade`,visible:I==="uploading",motionDeadline:2e3},({className:G})=>{const re="percent"in o?p.createElement(hy,Object.assign({type:"line",percent:o.percent,"aria-label":o["aria-label"],"aria-labelledby":o["aria-labelledby"]},s)):null;return p.createElement("div",{className:ie(`${e}-list-item-progress`,G)},re)})),q=o.response&&typeof o.response=="string"?o.response:((_=o.error)===null||_===void 0?void 0:_.statusText)||((R=o.error)===null||R===void 0?void 0:R.message)||n.uploadError,Y=I==="error"?p.createElement(co,{title:q,getPopupContainer:G=>G.parentNode},Z):Z;return p.createElement("div",{className:ie(`${e}-list-item-container`,t),style:r,ref:E},d?d(Y,o,a,{download:b.bind(null,o),preview:C.bind(null,o),remove:w.bind(null,o)}):Y)}),bDe=CDe,wDe=(e,t)=>{const{listType:r="text",previewFile:n=SDe,onPreview:i,onDownload:o,onRemove:a,locale:s,iconRender:l,isImageUrl:c=yDe,prefixCls:d,items:u=[],showPreviewIcon:f=!0,showRemoveIcon:h=!0,showDownloadIcon:v=!1,removeIcon:y,previewIcon:g,downloadIcon:m,extra:S,progress:C={size:[-1,2],showInfo:!1},appendAction:b,appendActionVisible:w=!0,itemRender:E,disabled:_}=e,R=yZ(),[P,I]=p.useState(!1),O=["picture-card","picture-circle"].includes(r);p.useEffect(()=>{r.startsWith("picture")&&(u||[]).forEach(z=>{!(z.originFileObj instanceof File||z.originFileObj instanceof Blob)||z.thumbUrl!==void 0||(z.thumbUrl="",n==null||n(z.originFileObj).then(H=>{z.thumbUrl=H||"",R()}))})},[r,u,n]),p.useEffect(()=>{I(!0)},[]);const A=(z,H)=>{if(i)return H==null||H.preventDefault(),i(z)},x=z=>{typeof o=="function"?o(z):z.url&&window.open(z.url)},T=z=>{a==null||a(z)},D=z=>{if(l)return l(z,r);const H=z.status==="uploading";if(r.startsWith("picture")){const U=r==="picture"?p.createElement($c,null):s.uploading,V=c!=null&&c(z)?p.createElement(WNe,null):p.createElement(vNe,null);return H?U:V}return H?p.createElement($c,null):p.createElement(TNe,null)},k=(z,H,U,V,W)=>{const K={type:"text",size:"small",title:V,onClick:Z=>{var q,Y;H(),p.isValidElement(z)&&((Y=(q=z.props).onClick)===null||Y===void 0||Y.call(q,Z))},className:`${U}-list-item-action`,disabled:W?_:!1};return p.isValidElement(z)?p.createElement(hn,Object.assign({},K,{icon:ka(z,Object.assign(Object.assign({},z.props),{onClick:()=>{}}))})):p.createElement(hn,Object.assign({},K),p.createElement("span",null,z))};p.useImperativeHandle(t,()=>({handlePreview:A,handleDownload:x}));const{getPrefixCls:j}=p.useContext(Vt),N=j("upload",d),L=j(),M=ie(`${N}-list`,`${N}-list-${r}`),$=p.useMemo(()=>Dn(HM(L),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[L]),F=Object.assign(Object.assign({},O?{}:$),{motionDeadline:2e3,motionName:`${N}-${O?"animate-inline":"animate"}`,keys:Ge(u.map(z=>({key:z.uid,file:z}))),motionAppear:P});return p.createElement("div",{className:M},p.createElement(m4,Object.assign({},F,{component:!1}),({key:z,file:H,className:U,style:V})=>p.createElement(bDe,{key:z,locale:s,prefixCls:N,className:U,style:V,file:H,items:u,progress:C,listType:r,isImgUrl:c,showPreviewIcon:f,showRemoveIcon:h,showDownloadIcon:v,removeIcon:y,previewIcon:g,downloadIcon:m,extra:S,iconRender:D,actionIconRender:k,itemRender:E,onPreview:A,onDownload:x,onClose:T})),b&&p.createElement(No,Object.assign({},F,{visible:w,forceRender:!0}),({className:z,style:H})=>ka(b,U=>({className:ie(U.className,z),style:Object.assign(Object.assign(Object.assign({},H),{pointerEvents:z?"none":void 0}),U.style)}))))},_De=p.forwardRef(wDe),EDe=_De;var RDe=globalThis&&globalThis.__awaiter||function(e,t,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function s(d){try{c(n.next(d))}catch(u){a(u)}}function l(d){try{c(n.throw(d))}catch(u){a(u)}}function c(d){d.done?o(d.value):i(d.value).then(s,l)}c((n=n.apply(e,t||[])).next())})};
419const Zg=`__LIST_IGNORE_${Date.now()}__`,PDe=(e,t)=>{const r=Jn("upload"),{fileList:n,defaultFileList:i,onRemove:o,showUploadList:a=!0,listType:s="text",onPreview:l,onDownload:c,onChange:d,onDrop:u,previewFile:f,disabled:h,locale:v,iconRender:y,isImageUrl:g,progress:m,prefixCls:S,className:C,type:b="select",children:w,style:E,itemRender:_,maxCount:R,data:P={},multiple:I=!1,hasControlInside:O=!0,action:A="",accept:x="",supportServerRender:T=!0,rootClassName:D}=e,k=p.useContext(ra),j=h??k,N=e.customRequest||r.customRequest,[L,M]=Or(i||[],{value:n,postState:me=>me??[]}),[$,F]=p.useState("drop"),z=p.useRef(null),H=p.useRef(null);p.useMemo(()=>{const me=Date.now();(n||[]).forEach((ce,Ae)=>{!ce.uid&&!Object.isFrozen(ce)&&(ce.uid=`__AUTO__${me}_${Ae}__`)})},[n]);const U=(me,ce,Ae)=>{let We=Ge(ce),lt=!1;R===1?We=We.slice(-1):R&&(lt=We.length>R,We=We.slice(0,R)),Qo.flushSync(()=>{M(We)});const yt={file:me,fileList:We};Ae&&(yt.event=Ae),(!lt||me.status==="removed"||We.some(nt=>nt.uid===me.uid))&&Qo.flushSync(()=>{d==null||d(yt)})},V=(me,ce)=>RDe(void 0,void 0,void 0,function*(){const{beforeUpload:Ae,transformFile:We}=e;let lt=me;if(Ae){const yt=yield Ae(me,ce);if(yt===!1)return!1;if(delete me[Zg],yt===Zg)return Object.defineProperty(me,Zg,{value:!0,configurable:!0}),!1;typeof yt=="object"&&yt&&(lt=yt)}return We&&(lt=yield We(lt)),lt}),W=me=>{const ce=me.filter(lt=>!lt.file[Zg]);if(!ce.length)return;const Ae=ce.map(lt=>KS(lt.file));let We=Ge(L);Ae.forEach(lt=>{We=YS(lt,We)}),Ae.forEach((lt,yt)=>{let nt=lt;if(ce[yt].parsedFile)lt.status="uploading";else{const{originFileObj:it}=lt;let gt;try{gt=new File([it],it.name,{type:it.type})}catch{gt=new Blob([it],{type:it.type}),gt.name=it.name,gt.lastModifiedDate=new Date,gt.lastModified=new Date().getTime()}gt.uid=lt.uid,nt=gt}U(nt,We)})},K=(me,ce,Ae)=>{try{typeof me=="string"&&(me=JSON.parse(me))}catch{}if(!FI(ce,L))return;const We=KS(ce);We.status="done",We.percent=100,We.response=me,We.xhr=Ae;const lt=YS(We,L);U(We,lt)},Z=(me,ce)=>{if(!FI(ce,L))return;const Ae=KS(ce);Ae.status="uploading",Ae.percent=me.percent;const We=YS(Ae,L);U(Ae,We,me)},q=(me,ce,Ae)=>{if(!FI(Ae,L))return;const We=KS(Ae);We.error=me,We.response=ce,We.status="error";const lt=YS(We,L);U(We,lt)},Y=me=>{let ce;Promise.resolve(typeof o=="function"?o(me):o).then(Ae=>{var We;if(Ae===!1)return;const lt=gDe(me,L);lt&&(ce=Object.assign(Object.assign({},me),{status:"removed"}),L==null||L.forEach(yt=>{const nt=ce.uid!==void 0?"uid":"name";yt[nt]===ce[nt]&&!Object.isFrozen(yt)&&(yt.status="removed")}),(We=z.current)===null||We===void 0||We.abort(ce),U(ce,lt))})},G=me=>{F(me.type),me.type==="drop"&&(u==null||u(me))};p.useImperativeHandle(t,()=>({onBatchStart:W,onSuccess:K,onProgress:Z,onError:q,fileList:L,upload:z.current,nativeElement:H.current}));const{getPrefixCls:re,direction:ee,upload:ne}=p.useContext(Vt),te=re("upload",S),pe=Object.assign(Object.assign({onBatchStart:W,onError:q,onProgress:Z,onSuccess:K},e),{customRequest:N,data:P,multiple:I,action:A,accept:x,supportServerRender:T,prefixCls:te,disabled:j,beforeUpload:V,onChange:void 0,hasControlInside:O});delete pe.className,delete pe.style,(!w||j)&&delete pe.id;const le=`${te}-wrapper`,[ye,Se,_e]=vDe(te,le),[De]=$o("Upload",Fs.Upload),{showRemoveIcon:be,showPreviewIcon:se,showDownloadIcon:Pe,removeIcon:Te,previewIcon:ze,downloadIcon:ke,extra:Me}=typeof a=="boolean"?{}:a,qe=typeof be>"u"?!j:be,Le=(me,ce)=>a?p.createElement(EDe,{prefixCls:te,listType:s,items:L,previewFile:f,onPreview:l,onDownload:c,onRemove:Y,showRemoveIcon:qe,showPreviewIcon:se,showDownloadIcon:Pe,removeIcon:Te,previewIcon:ze,downloadIcon:ke,iconRender:y,extra:Me,locale:Object.assign(Object.assign({},De),v),isImageUrl:g,progress:m,appendAction:me,appendActionVisible:ce,itemRender:_,disabled:j}):me,xe=ie(le,C,D,Se,_e,ne==null?void 0:ne.className,{[`${te}-rtl`]:ee==="rtl",[`${te}-picture-card-wrapper`]:s==="picture-card",[`${te}-picture-circle-wrapper`]:s==="picture-circle"}),je=Object.assign(Object.assign({},ne==null?void 0:ne.style),E);if(b==="drag"){const me=ie(Se,te,`${te}-drag`,{[`${te}-drag-uploading`]:L.some(ce=>ce.status==="uploading"),[`${te}-drag-hover`]:$==="dragover",[`${te}-disabled`]:j,[`${te}-rtl`]:ee==="rtl"});return ye(p.createElement("span",{className:xe,ref:H},p.createElement("div",{className:me,style:je,onDrop:G,onDragOver:G,onDragLeave:G},p.createElement(x$,Object.assign({},pe,{ref:z,className:`${te}-btn`}),p.createElement("div",{className:`${te}-drag-container`},w))),Le()))}const Ee=ie(te,`${te}-select`,{[`${te}-disabled`]:j,[`${te}-hidden`]:!w}),Re=p.createElement("div",{className:Ee,style:je},p.createElement(x$,Object.assign({},pe,{ref:z})));return ye(s==="picture-card"||s==="picture-circle"?p.createElement("span",{className:xe,ref:H},Le(Re,!!w)):p.createElement("span",{className:xe,ref:H},Re,Le()))},IDe=p.forwardRef(PDe),Kte=IDe;var xDe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};const ODe=p.forwardRef((e,t)=>
vendor: 5,539 bytes, line 419
419{var{style:r,height:n,hasControlInside:i=!1}=e,o=xDe(e,["style","height","hasControlInside"]);return p.createElement(Kte,Object.assign({ref:t,hasControlInside:i},o,{type:"drag",style:Object.assign(Object.assign({},r),{height:n})}))}),TDe=ODe,M3=Kte;M3.Dragger=TDe;M3.LIST_IGNORE=Zg;const ADe=M3;let XS;const MDe=new Uint8Array(16);function Yte(){if(!XS&&(XS=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!XS))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return XS(MDe)}const $De=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function K_(e){return typeof e=="string"&&$De.test(e)}const yi=[];for(let e=0;e<256;++e)yi.push((e+256).toString(16).slice(1));function Y_(e,t=0){return yi[e[t+0]]+yi[e[t+1]]+yi[e[t+2]]+yi[e[t+3]]+"-"+yi[e[t+4]]+yi[e[t+5]]+"-"+yi[e[t+6]]+yi[e[t+7]]+"-"+yi[e[t+8]]+yi[e[t+9]]+"-"+yi[e[t+10]]+yi[e[t+11]]+yi[e[t+12]]+yi[e[t+13]]+yi[e[t+14]]+yi[e[t+15]]}function kDe(e,t=0){const r=Y_(e,t);if(!K_(r))throw TypeError("Stringified UUID is invalid");return r}let lF,zI,BI=0,HI=0;function NDe(e,t,r){let n=t&&r||0;const i=t||new Array(16);e=e||{};let o=e.node||lF,a=e.clockseq!==void 0?e.clockseq:zI;if(o==null||a==null){const f=e.random||(e.rng||Yte)();o==null&&(o=lF=[f[0]|1,f[1],f[2],f[3],f[4],f[5]]),a==null&&(a=zI=(f[6]<<8|f[7])&16383)}let s=e.msecs!==void 0?e.msecs:Date.now(),l=e.nsecs!==void 0?e.nsecs:HI+1;const c=s-BI+(l-HI)/1e4;if(c<0&&e.clockseq===void 0&&(a=a+1&16383),(c<0||s>BI)&&e.nsecs===void 0&&(l=0),l>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");BI=s,HI=l,zI=a,s+=122192928e5;const d=((s&268435455)*1e4+l)%4294967296;i[n++]=d>>>24&255,i[n++]=d>>>16&255,i[n++]=d>>>8&255,i[n++]=d&255;const u=s/4294967296*1e4&268435455;i[n++]=u>>>8&255,i[n++]=u&255,i[n++]=u>>>24&15|16,i[n++]=u>>>16&255,i[n++]=a>>>8|128,i[n++]=a&255;for(let f=0;f<6;++f)i[n+f]=o[f];return t||Y_(i)}function Xte(e){if(!K_(e))throw TypeError("Invalid UUID");let t;const r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=t&255,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=t&255,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=t&255,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=t&255,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=t&255,r}function DDe(e){e=unescape(encodeURIComponent(e));const t=[];for(let r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}const LDe="6ba7b810-9dad-11d1-80b4-00c04fd430c8",jDe="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Qte(e,t,r){function n(i,o,a,s){var l;if(typeof i=="string"&&(i=DDe(i)),typeof o=="string"&&(o=Xte(o)),((l=o)===null||l===void 0?void 0:l.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let c=new Uint8Array(16+i.length);if(c.set(o),c.set(i,o.length),c=r(c),c[6]=c[6]&15|t,c[8]=c[8]&63|128,a){s=s||0;for(let d=0;d<16;++d)a[s+d]=c[d];return a}return Y_(c)}try{n.name=e}catch{}return n.DNS=LDe,n.URL=jDe,n}function FDe(e){if(typeof e=="string"){const t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let r=0;r<t.length;++r)e[r]=t.charCodeAt(r)}return zDe(BDe(HDe(e),e.length*8))}function zDe(e){const t=[],r=e.length*32,n="0123456789abcdef";for(let i=0;i<r;i+=8){const o=e[i>>5]>>>i%32&255,a=parseInt(n.charAt(o>>>4&15)+n.charAt(o&15),16);t.push(a)}return t}function Jte(e){return(e+64>>>9<<4)+14+1}function BDe(e,t){e[t>>5]|=128<<t%32,e[Jte(t)-1]=t;let r=1732584193,n=-271733879,i=-1732584194,o=271733878;for(let a=0;a<e.length;a+=16){const s=r,l=n,c=i,d=o;r=Ni(r,n,i,o,e[a],7,-680876936),o=Ni(o,r,n,i,e[a+1],12,-389564586),i=Ni(i,o,r,n,e[a+2],17,606105819),n=Ni(n,i,o,r,e[a+3],22,-1044525330),r=Ni(r,n,i,o,e[a+4],7,-176418897),o=Ni(o,r,n,i,e[a+5],12,1200080426),i=Ni(i,o,r,n,e[a+6],17,-1473231341),n=Ni(n,i,o,r,e[a+7],22,-45705983),r=Ni(r,n,i,o,e[a+8],7,1770035416),o=Ni(o,r,n,i,e[a+9],12,-1958414417),i=Ni(i,o,r,n,e[a+10],17,-42063),n=Ni(n,i,o,r,e[a+11],22,-1990404162),r=Ni(r,n,i,o,e[a+12],7,1804603682),o=Ni(o,r,n,i,e[a+13],12,-40341101),i=Ni(i,o,r,n,e[a+14],17,-1502002290),n=Ni(n,i,o,r,e[a+15],22,1236535329),r=Di(r,n,i,o,e[a+1],5,-165796510),o=Di(o,r,n,i,e[a+6],9,-1069501632),i=Di(i,o,r,n,e[a+11],14,643717713),n=Di(n,i,o,r,e[a],20,-373897302),r=Di(r,n,i,o,e[a+5],5,-701558691),o=Di(o,r,n,i,e[a+10],9,38016083),i=Di(i,o,r,n,e[a+15],14,-660478335),n=Di(n,i,o,r,e[a+4],20,-405537848),r=Di(r,n,i,o,e[a+9],5,568446438),o=Di(o,r,n,i,e[a+14],9,-1019803690),i=Di(i,o,r,n,e[a+3],14,-187363961),n=Di(n,i,o,r,e[a+8],20,1163531501),r=Di(r,n,i,o,e[a+13],5,-1444681467),o=Di(o,r,n,i,e[a+2],9,-51403784),i=Di(i,o,r,n,e[a+7],14,1735328473),n=Di(n,i,o,r,e[a+12],20,-1926607734),r=Li(r,n,i,o,e[a+5],4,-378558),o=Li(o,r,n,i,e[a+8],11,-2022574463),i=Li(i,o,r,n,e[a+11],16,1839030562),n=Li(n,i,o,r,e[a+14],23,-35309556),r=Li(r,n,i,o,e[a+1],4,-1530992060),o=Li(o,r,n,i,e[a+4],11,1272893353),i=Li(i,o,r,n,e[a+7],16,-155497632),n=Li(n,i,o,r,e[a+10],23,-1094730640),r=Li(r,n,i,o,e[a+13],4,681279174),o=Li(o,r,n,i,e[a],11,-358537222),i=Li(i,o,r,n,e[a+3],16,-722521979),n=Li(n,i,o,r,e[a+6],23,76029189),r=Li(r,n,i,o,e[a+9],4,-640364487),o=Li(o,r,n,i,e[a+12],11,-421815835),i=Li(i,o,r,n,e[a+15],16,530742520),n=Li(n,i,o,r,e[a+2],23,-995338651),r=ji(r,n,i,o,e[a],6,-198630844),o=ji(o,r,n,i,e[a+7],10,1126891415),i=ji(i,o,r,n,e[a+14],15,-1416354905),n=ji(n,i,o,r,e[a+5],21,-57434055),r
419=ji(r,n,i,o,e[a+12],6,1700485571),o=ji(o,r,n,i,e[a+3],10,-1894986606),i=ji(i,o,r,n,e[a+10],15,-1051523),n=ji(n,i,o,r,e[a+1],21,-2054922799),r=ji(r,n,i,o,e[a+8],6,1873313359),o=ji(o,r,n,i,e[a+15],10,-30611744),i=ji(i,o,r,n,e[a+6],15,-1560198380),n=ji(n,i,o,r,e[a+13],21,1309151649),r=ji(r,n,i,o,e[a+4],6,-145523070),o=ji(o,r,n,i,e[a+11],10,-1120210379),i=ji(i,o,r,n,e[a+2],15,718787259),n=ji(n,i,o,r,e[a+9],21,-343485551),r=dc(r,s),n=dc(n,l),i=dc(i,c),o=dc(o,d)}return[r,n,i,o]}function HDe(e){if(e.length===0)return[];const t=e.length*8,r=new Uint32Array(Jte(t));for(let n=0;n<t;n+=8)r[n>>5]|=(e[n/8]&255)<<n%32;return r}function dc(e,t){const r=(e&65535)+(t&65535);return(e>>16)+(t>>16)+(r>>16)<<16|r&65535}function VDe(e,t){return e<<t|e>>>32-t}function X_(e,t,r,n,i,o){return dc(VDe(dc(dc(t,e),dc(n,o)),i),r)}function Ni(e,t,r,n,i,o,a){return X_(t&r|~t&n,e,t,i,o,a)}function Di(e,t,r,n,i,o,a){return X_(t&n|r&~n,e,t,i,o,a)}function Li(e,t,r,n,i,o,a){return X_(t^r^n,e,t,i,o,a)}function ji(e,t,r,n,i,o,a){return X_(r^(t|~n),e,t,i,o,a)}const UDe=Qte("v3",48,FDe),WDe=UDe,qDe=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),cF={randomUUID:qDe};function GDe(e,t,r){if(cF.randomUUID&&!t&&!e)return cF.randomUUID();e=e||{};const n=e.random||(e.rng||Yte)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,t){r=r||0;for(let i=0;i<16;++i)t[r+i]=n[i];return t}return Y_(n)}function KDe(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:return t^r^n;case 2:return t&r^t&n^r&n;case 3:return t^r^n}}function VI(e,t){return e<<t|e>>>32-t}function YDe(e){const t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e=="string"){const a=unescape(encodeURIComponent(e));e=[];for(let s=0;s<a.length;++s)e.push(a.charCodeAt(s))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);const n=e.length/4+2,i=Math.ceil(n/16),o=new Array(i);for(let a=0;a<i;++a){const s=new Uint32Array(16);for(let l=0;l<16;++l)s[l]=e[a*64+l*4]<<24|e[a*64+l*4+1]<<16|e[a*64+l*4+2]<<8|e[a*64+l*4+3];o[a]=s}o[i-1][14]=(e.length-1)*8/Math.pow(2,32),o[i-1][14]=Math.floor(o[i-1][14]),o[i-1][15]=(e.length-1)*8&4294967295;for(let a=0;a<i;++a){const s=new Uint32Array(80);for(let h=0;h<16;++h)s[h]=o[a][h];for(let h=16;h<80;++h)s[h]=VI(s[h-3]^s[h-8]^s[h-14]^s[h-16],1);let l=r[0],c=r[1],d=r[2],u=r[3],f=r[4];for(let h=0;h<80;++h){const v=Math.floor(h/20),y=VI(l,5)+KDe(v,c,d,u)+f+t[v]+s[h]>>>0;f=u,u=d,d=VI(c,30)>>>0,c=l,l=y}r[0]=r[0]+l>>>0,r[1]=r[1]+c>>>0,r[2]=r[2]+d>>>0,r[3]=r[3]+u>>>0,r[4]=r[4]+f>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,r[0]&255,r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,r[1]&255,r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,r[2]&255,r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,r[3]&255,r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,r[4]&255]}const XDe=Qte("v5",80,YDe),O$=XDe,QDe="00000000-0000-0000-0000-000000000000";function JDe(e){if(!K_(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)}const ZDe=Object.freeze(Object.defineProperty({__proto__:null,NIL:QDe,parse:Xte,stringify:kDe,v1:NDe,v3:WDe,v4:GDe,v5:O$,validate:K_,version:JDe},Symbol.toStringTag,{value:"Module"}));var $3={},Zte={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Zte);var Zn=Zte.exports,UI={},WI={exports:{}},uF;function Q_(){return uF||(uF=1,function(e){function t(r){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(WI)),WI.exports}var qI={exports:{}},dF;function rh(){return dF||(dF=1,function(e){function t(r,n,i){return n in r?Object.defineProperty(r,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[n]=i,r}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(qI)),qI.exports}var GI={},df={},KI={exports:{}},fF;function e6e(){return fF||(fF=1,function(e){var t=Q_().default;function r(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exp
vendor: 4,485 bytes, line 419
419orts=r=function(){return n},e.exports.__esModule=!0,e.exports.default=e.exports;var n={},i=Object.prototype,o=i.hasOwnProperty,a=typeof Symbol=="function"?Symbol:{},s=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function d(x,T,D){return Object.defineProperty(x,T,{value:D,enumerable:!0,configurable:!0,writable:!0}),x[T]}try{d({},"")}catch{d=function(D,k,j){return D[k]=j}}function u(x,T,D,k){var j=T&&T.prototype instanceof v?T:v,N=Object.create(j.prototype),L=new I(k||[]);return N._invoke=function(M,$,F){var z="suspendedStart";return function(H,U){if(z==="executing")throw new Error("Generator is already running");if(z==="completed"){if(H==="throw")throw U;return A()}for(F.method=H,F.arg=U;;){var V=F.delegate;if(V){var W=_(V,F);if(W){if(W===h)continue;return W}}if(F.method==="next")F.sent=F._sent=F.arg;else if(F.method==="throw"){if(z==="suspendedStart")throw z="completed",F.arg;F.dispatchException(F.arg)}else F.method==="return"&&F.abrupt("return",F.arg);z="executing";var K=f(M,$,F);if(K.type==="normal"){if(z=F.done?"completed":"suspendedYield",K.arg===h)continue;return{value:K.arg,done:F.done}}K.type==="throw"&&(z="completed",F.method="throw",F.arg=K.arg)}}}(x,D,L),N}function f(x,T,D){try{return{type:"normal",arg:x.call(T,D)}}catch(k){return{type:"throw",arg:k}}}n.wrap=u;var h={};function v(){}function y(){}function g(){}var m={};d(m,s,function(){return this});var S=Object.getPrototypeOf,C=S&&S(S(O([])));C&&C!==i&&o.call(C,s)&&(m=C);var b=g.prototype=v.prototype=Object.create(m);function w(x){["next","throw","return"].forEach(function(T){d(x,T,function(D){return this._invoke(T,D)})})}function E(x,T){function D(j,N,L,M){var $=f(x[j],x,N);if($.type!=="throw"){var F=$.arg,z=F.value;return z&&t(z)=="object"&&o.call(z,"__await")?T.resolve(z.__await).then(function(H){D("next",H,L,M)},function(H){D("throw",H,L,M)}):T.resolve(z).then(function(H){F.value=H,L(F)},function(H){return D("throw",H,L,M)})}M($.arg)}var k;this._invoke=function(j,N){function L(){return new T(function(M,$){D(j,N,M,$)})}return k=k?k.then(L,L):L()}}function _(x,T){var D=x.iterator[T.method];if(D===void 0){if(T.delegate=null,T.method==="throw"){if(x.iterator.return&&(T.method="return",T.arg=void 0,_(x,T),T.method==="throw"))return h;T.method="throw",T.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var k=f(D,x.iterator,T.arg);if(k.type==="throw")return T.method="throw",T.arg=k.arg,T.delegate=null,h;var j=k.arg;return j?j.done?(T[x.resultName]=j.value,T.next=x.nextLoc,T.method!=="return"&&(T.method="next",T.arg=void 0),T.delegate=null,h):j:(T.method="throw",T.arg=new TypeError("iterator result is not an object"),T.delegate=null,h)}function R(x){var T={tryLoc:x[0]};1 in x&&(T.catchLoc=x[1]),2 in x&&(T.finallyLoc=x[2],T.afterLoc=x[3]),this.tryEntries.push(T)}function P(x){var T=x.completion||{};T.type="normal",delete T.arg,x.completion=T}function I(x){this.tryEntries=[{tryLoc:"root"}],x.forEach(R,this),this.reset(!0)}function O(x){if(x){var T=x[s];if(T)return T.call(x);if(typeof x.next=="function")return x;if(!isNaN(x.length)){var D=-1,k=function j(){for(;++D<x.length;)if(o.call(x,D))return j.value=x[D],j.done=!1,j;return j.value=void 0,j.done=!0,j};return k.next=k}}return{next:A}}function A(){return{value:void 0,done:!0}}return y.prototype=g,d(b,"constructor",g),d(g,"constructor",y),y.displayName=d(g,c,"GeneratorFunction"),n.isGeneratorFunction=function(x){var T=typeof x=="function"&&x.constructor;return!!T&&(T===y||(T.displayName||T.name)==="GeneratorFunction")},n.mark=function(x){return Object.setPrototypeOf?Object.setPrototypeOf(x,g):(x.__proto__=g,d(x,c,"GeneratorFunction")),x.prototype=Object.create(b),x},n.awrap=function(x){return{__await:x}},w(E.prototype),d(E.prototype,l,function(){return this}),n.AsyncIterator=E,n.async=function(x,T,D,k,j){j===void 0&&(j=Promise);var N=new E(u(x,T,D,k),j);return n.isGeneratorFunction(T)?N:N.next().then(function(L){return L.done?L.value:N.next()})},w(b),d(b,c,"Generator"),d(b,s,function(){return this}),d(b,"toString",function(){return"[object Generator]"}),n.keys=function(x){var T=[];for(var D in x)T.push(D);return T.reverse(),function k(){for(;T.length;){var j=T.pop();if(j in x)return k.value=j,k.done=!1,k}return k.done=!0,k}},n.values=O,I.prototype={constructor:I,reset:function(T){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEac
419h(P),!T)for(var D in this)D.charAt(0)==="t"&&o.call(this,D)&&!isNaN(+D.slice(1))&&(this[D]=void 0)},stop:function(){this.done=!0;var T=this.tryEntries[0].completion;if(T.type==="throw")throw T.arg;return this.rval},dispatchException:function(T){if(this.done)throw T;var D=this;function k(F,z){return L.type="throw",L.arg=T,D.next=F,z&&(D.method="next",D.arg=void 0),!!z}for(var j=this.tryEntries.length-1;j>=0;--j){var N=this.tryEntries[j],L=N.completion;if(N.tryLoc==="root")return k("end");if(N.tryLoc<=this.prev){var M=o.call(N,"catchLoc"),$=o.call(N,"finallyLoc");if(M&&$){if(this.prev<N.catchLoc)return k(N.catchLoc,!0);if(this.prev<N.finallyLoc)return k(N.finallyLoc)}else if(M){if(this.prev<N.catchLoc)return k(N.catchLoc,!0)}else{if(!$)throw new Error("try statement without catch or finally");if(this.prev<N.finallyLoc)return k(N.finallyLoc)}}}},abrupt:function(T,D){for(var k=this.tryEntries.length-1;k>=0;--k){var j=this.tryEntries[k];if(j.tryLoc<=this.prev&&o.call(j,"finallyLoc")&&this.prev<j.finallyLoc){var N=j;break}}N&&(T==="break"||T==="continue")&&N.tryLoc<=D&&D<=N.finallyLoc&&(N=null);var L=N?N.completion:{};return L.type=T,L.arg=D,N?(this.method="next",this.next=N.finallyLoc,h):this.complete(L)},complete:function(T,D){if(T.type==="throw")throw T.arg;return T.type==="break"||T.type==="continue"?this.next=T.arg:T.type==="return"?(this.rval=this.arg=T.arg,this.method="return",this.next="end"):T.type==="normal"&&D&&(this.next=D),h},finish:function(T){for(var D=this.tryEntries.length-1;D>=0;--D){var k=this.tryEntries[D];if(k.finallyLoc===T)return this.complete(k.completion,k.afterLoc),P(k),h}},catch:function(T){for(var D=this.tryEntries.length-1;D>=0;--D){var k=this.tryEntries[D];if(k.tryLoc===T){var j=k.completion;if(j.type==="throw"){var N=j.arg;P(k)}return N}}throw new Error("illegal catch attempt")},delegateYield:function(T,D,k){return this.delegate={iterator:O(T),resultName:D,nextLoc:k},this.method==="next"&&(this.arg=void 0),h}},n}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(KI)),KI.exports}var YI,pF;function Us(){if(pF)return YI;pF=1;var e=e6e()();YI=e;try{regeneratorRuntime=e}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}return YI}var XI={exports:{}},QI={exports:{}},JI={exports:{}},hF;function ere(){return hF||(hF=1,function(e){function t(r,n){(n==null||n>r.length)&&(n=r.length);for(var i=0,o=new Array(n);i<n;i++)o[i]=r[i];return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(JI)),JI.exports}var vF;function t6e(){return vF||(vF=1,function(e){var t=ere();function r(n){if(Array.isArray(n))return t(n)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(QI)),QI.exports}var ZI={exports:{}},gF;function r6e(){return gF||(gF=1,function(e){function t(r){if(typeof Symbol<"u"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(ZI)),ZI.exports}var e2={exports:{}},mF;function n6e(){return mF||(mF=1,function(e){var t=ere();function r(n,i){if(n){if(typeof n=="string")return t(n,i);var o=Object.prototype.toString.call(n).slice(8,-1);if(o==="Object"&&n.constructor&&(o=n.constructor.name),o==="Map"||o==="Set")return Array.from(n);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return t(n,i)}}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(e2)),e2.exports}var t2={exports:{}},yF;function i6e(){return yF||(yF=1,function(e){function t(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
420In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(t2)),t2.exports}var SF;function o6e(){return SF||(SF=1,function(e){var t=t6e(),r=r6e(),n=n6e(),i=i6e();function o(a){return t(a)||r(a)||n(a)||i()}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports}(XI)),XI.exports}var r2={exports:{}},CF;function Ws(){return CF||(CF=1,function(e){function t(n,i,o,a,s,l,c){try{var d=n[l](c),u=d.value}catch(f){o(f);return}d.done?i(u):Promise.resolve(u).then(a,s)}function r(n){return function(){var i=this,o=arguments;return new Promise(function(a,s){var l=n.apply(i,o);function c(u){t(l,a,s,c,d,"next",u)}function d(u){t(l,a,s,c,d,"throw",u)}c(void 0)})}}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(r2)),r2.exports}var n2={exports:{}},bF;function Kc(){return bF||(bF=1,function(e){function t(n,i){for(var o=0;o<i.length;o++){var a=i[o];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(n,a.key,a)}}
420function r(n,i,o){return i&&t(n.prototype,i),o&&t(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(n2)),n2.exports}var i2={exports:{}},wF;function Yc(){return wF||(wF=1,function(e){function t(r,n){if(!(r instanceof n))throw new TypeError("Cannot call a class as a function")}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(i2)),i2.exports}var o2={exports:{}},a2={exports:{}},_F;function a6e(){return _F||(_F=1,function(e){function t(r,n){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,a){return o.__proto__=a,o},e.exports.__esModule=!0,e.exports.default=e.exports,t(r,n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(a2)),a2.exports}var EF;function J_(){return EF||(EF=1,function(e){var t=a6e();function r(n,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(i&&i.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),i&&t(n,i)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(o2)),o2.exports}var s2={exports:{}},l2={exports:{}},RF;function s6e(){return RF||(RF=1,function(e){function t(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(l2)),l2.exports}var PF;function Z_(){return PF||(PF=1,function(e){var t=Q_().default,r=s6e();function n(i,o){if(o&&(t(o)==="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return r(i)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(s2)),s2.exports}var c2={exports:{}},IF;function eE(){return IF||(IF=1,function(e){function t(r){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(c2)),c2.exports}var ha={},u2={exports:{}},d2={exports:{}},f2={exports:{}},xF;function tre(){return xF||(xF=1,function(e){function t(r,n){(n==null||n>r.length)&&(n=r.length);for(var i=0,o=Array(n);i<n;i++)o[i]=r[i];return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(f2)),f2.exports}var OF;function l6e(){return OF||(OF=1,function(e){var t=tre();function r(n){if(Array.isArray(n))return t(n)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(d2)),d2.exports}var p2={exports:{}},TF;function c6e(){return TF||(TF=1,function(e){function t(r){if(typeof Symbol<"u"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(p2)),p2.exports}var h2={exports:{}},AF;function u6e(){return AF||(AF=1,function(e){var t=tre();function r(n,i){if(n){if(typeof n=="string")return t(n,i);var o={}.toString.call(n).slice(8,-1);return o==="Object"&&n.constructor&&(o=n.constructor.name),o==="Map"||o==="Set"?Array.from(n):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?t(n,i):void 0}}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(h2)),h2.exports}var v2={exports:{}},MF;function d6e(){return MF||(MF=1,function(e){function t(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
421In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(v2)),v2.exports}var $F;function f6e(){return $F||($F=1,function(e){var t=l6e(),r=c6e(),n=u6e(),i=d6e();function o(a){return t(a)||r(a)||n(a)||i()}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports}(u2)),u2.exports}var g2={exports:{}},m2={exports:{}},y2={exports:{}},kF;function k3(){return kF||(kF=1,function(e){function t(r){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(y2)),y2.exports}var NF;function rre(){return NF||(NF=1,function(e){var t=k3();function r(n,i){for(;!{}.hasOwnProperty.call(n,i)&&(n=t(n))!==null;);return n}
421e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(m2)),m2.exports}var S2={exports:{}},C2={exports:{}},b2={exports:{}},DF;function tE(){return DF||(DF=1,function(e){function t(r){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(b2)),b2.exports}var w2={exports:{}},LF;function p6e(){return LF||(LF=1,function(e){var t=tE().default;function r(n,i){if(t(n)!="object"||!n)return n;var o=n[Symbol.toPrimitive];if(o!==void 0){var a=o.call(n,i||"default");if(t(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(n)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(w2)),w2.exports}var jF;function nre(){return jF||(jF=1,function(e){var t=tE().default,r=p6e();function n(i){var o=r(i,"string");return t(o)=="symbol"?o:o+""}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(C2)),C2.exports}var FF;function ire(){return FF||(FF=1,function(e){var t=nre();function r(n,i,o){return(i=t(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o,n}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(S2)),S2.exports}var zF;function h6e(){return zF||(zF=1,function(e){var t=rre(),r=ire();function n(o,a,s,l){return n=typeof Reflect<"u"&&Reflect.set?Reflect.set:function(c,d,u,f){var h,v=t(c,d);if(v){if((h=Object.getOwnPropertyDescriptor(v,d)).set)return h.set.call(f,u),!0;if(!h.writable)return!1}if(h=Object.getOwnPropertyDescriptor(f,d)){if(!h.writable)return!1;h.value=u,Object.defineProperty(f,d,h)}else r(f,d,u);return!0},n(o,a,s,l)}function i(o,a,s,l,c){if(!n(o,a,s,l||o)&&c)throw new TypeError("failed to set property");return s}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports}(g2)),g2.exports}var _2={exports:{}},BF;function v6e(){return BF||(BF=1,function(e){var t=rre();function r(){return e.exports=r=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(n,i,o){var a=t(n,i);if(a){var s=Object.getOwnPropertyDescriptor(a,i);return s.get?s.get.call(arguments.length<3?n:o):s.value}},e.exports.__esModule=!0,e.exports.default=e.exports,r.apply(null,arguments)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(_2)),_2.exports}var E2={exports:{}},HF;function ore(){return HF||(HF=1,function(e){function t(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(E2)),E2.exports}var R2={exports:{}},P2={exports:{}},VF;function N3(){return VF||(VF=1,function(e){function t(r,n){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,o){return i.__proto__=o,i},e.exports.__esModule=!0,e.exports.default=e.exports,t(r,n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(P2)),P2.exports}var UF;function g6e(){return UF||(UF=1,function(e){var t=N3();function r(n,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(i&&i.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),i&&t(n,i)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(R2)),R2.exports}var I2={exports:{}},WF;function m6e(){return WF||(WF=1,function(e){var t=tE().default,r=ore();function n(i,o){if(o&&(t(o)=="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return r(i)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(I2)),I2.exports}var x2={exports:{}},O2={exports:{}},qF;function y6e(){return qF||(qF=1,function(e){function t(r){try{return Function.toString.call(r).indexOf("[native code]")!==-1}catch{return typeof r=="function"}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(O2)),O2.exports}var T2={exports:{}},A2={exports:{}},GF;function S6e(){return GF||(GF=1,function(e){function t(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(e.exports=t=function(){return!!r},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(A2)),A2.exports}var KF;function C6e(){return KF||(KF=1,function(e){var t=S6e(),r=N3();function n(i,o,a){if(t())return Reflect.construct.apply(null,arguments);var s=[null];s.push.apply(s,o);var l=new(i.bind.apply(i,s));return a&&r(l,a.prototype),l}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(T2)),T2.exports}var YF;function b6e(){return YF||(YF=1,function(e){var t=k3(),r=N3(),n=y6e(),i=C6e();function o(a){var s=typeof Map=="function"?new Map:void 0;return e.exports=o=function(c){if(c===null||!n(c))return c;if(typeof c!="function")throw new TypeError("Super expression must either be null or a function");if(s!==void 0){if(s.has(c))return s.get(c);s.set(c,d)}function d(){return i(c,arguments,t(this).constructor)}return d.prototype=Object.create(c.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),r(d,c)},e.exports.__esModule=!0,e.exports.default=e.exports,o(a)}
421e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports}(x2)),x2.exports}var M2={exports:{}},XF;function w6e(){return XF||(XF=1,function(e){function t(r,n){if(!(r instanceof n))throw new TypeError("Cannot call a class as a function")}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(M2)),M2.exports}var $2={exports:{}},QF;function _6e(){return QF||(QF=1,function(e){var t=nre();function r(i,o){for(var a=0;a<o.length;a++){var s=o[a];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,t(s.key),s)}}function n(i,o,a){return o&&r(i.prototype,o),a&&r(i,a),Object.defineProperty(i,"prototype",{writable:!1}),i}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}($2)),$2.exports}var JF;function rE(){if(JF)return ha;JF=1,Object.defineProperty(ha,"__esModule",{value:!0});var e=f6e(),t=h6e(),r=v6e(),n=ore(),i=g6e(),o=m6e(),a=k3(),s=b6e(),l=ire(),c=w6e(),d=_6e(),u=tE();function f(ge){return ge&&typeof ge=="object"&&"default"in ge?ge:{default:ge}}var h=f(e),v=f(t),y=f(r),g=f(n),m=f(i),S=f(o),C=f(a),b=f(s),w=f(l),E=f(c),_=f(d),R=f(u);function P(ge){var we=I();return function(){var Ne=C.default(ge),Be;if(we){var Xe=C.default(this).constructor;Be=Reflect.construct(Ne,arguments,Xe)}else Be=Ne.apply(this,arguments);return S.default(this,Be)}}function I(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function O(ge,we){var Ie=Object.keys(ge);if(Object.getOwnPropertySymbols){var Ne=Object.getOwnPropertySymbols(ge);we&&(Ne=Ne.filter(function(Be){return Object.getOwnPropertyDescriptor(ge,Be).enumerable})),Ie.push.apply(Ie,Ne)}return Ie}function A(ge){for(var we=1;we<arguments.length;we++){var Ie=arguments[we]!=null?arguments[we]:{};we%2?O(Object(Ie),!0).forEach(function(Ne){w.default(ge,Ne,Ie[Ne])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ge,Object.getOwnPropertyDescriptors(Ie)):O(Object(Ie)).forEac
421h(function(Ne){Object.defineProperty(ge,Ne,Object.getOwnPropertyDescriptor(Ie,Ne))})}return ge}function x(ge,we){if(!ge){for(var Ie=arguments.length,Ne=new Array(Ie>2?Ie-2:0),Be=2;Be<Ie;Be++)Ne[Be-2]=arguments[Be];throw new TypeError(T(we,Ne))}}function T(ge,we){var Ie=0;return ge.replace(/%[os]/g,function(){return D(we[Ie++])})}function D(ge){return R.default(ge)!=="object"||ge===null?String(ge):Object.prototype.toString.call(ge)}var k;function j(ge){x(typeof ge=="function"||ge===void 0,"The error handler must be a function or undefined, but got %o.",ge),k=ge}function N(ge){try{var we=ge instanceof Error?ge:new Error(D(ge));if(k){k(we);return}if(typeof dispatchEvent=="function"&&typeof ErrorEvent=="function")dispatchEvent(new ErrorEvent("error",{error:we,message:we.message}));else if(typeof process<"u"&&typeof process.emit=="function"){process.emit("uncaughtException",we);return}}catch{}}var L=typeof window<"u"?window:typeof self<"u"?self:typeof Ht<"u"?Ht:typeof globalThis<"u"?globalThis:void 0,M;function $(ge){x(typeof ge=="function"||ge===void 0,"The warning handler must be a function or undefined, but got %o.",ge),M=ge}var F=function(){function ge(we,Ie){E.default(this,ge),this.code=we,this.message=Ie}return _.default(ge,[{key:"warn",value:function(){var Ie;try{for(var Ne,Be=arguments.length,Xe=new Array(Be),He=0;He<Be;He++)Xe[He]=arguments[He];if(M){M(A(A({},this),{},{args:Xe}));return}var ct=((Ie=new Error().stack)!==null&&Ie!==void 0?Ie:"").replace(/^(?:(?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+?\n){2}/g,`
422`);(Ne=console).warn.apply(Ne,[this.message].concat(Xe,[ct]))}catch{}}}]),ge}(),z=new F("W01","Unable to initialize event under dispatching."),H=new F("W02","Assigning any falsy value to 'cancelBubble' property has no effect."),U=new F("W03","Assigning any truthy value to 'returnValue' property has no effect."),V=new F("W04","Unable to preventDefault on non-cancelable events."),W=new F("W05","Unable to preventDefault inside passive event listener invocation."),K=new F("W06","An event listener wasn't added because it has been added already: %o, %o"),Z=new F("W07","The %o option value was abandoned because the event listener wasn't added as duplicated."),q=new F("W08","The 'callback' argument must be a function or an object that has 'handleEvent' method: %o"),Y=new F("W09","Event attribute handler must be a function: %o"),G=function(){_.default(ge,null,[{key:"NONE",get:function(){return re}},{key:"CAPTURING_PHASE",get:function(){return ee}},{key:"AT_TARGET",get:function(){return ne}},{key:"BUBBLING_PHASE",get:function(){return te}}]);function ge(we,Ie){E.default(this,ge),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});var Ne=Ie??{};pe.set(this,{type:String(we),bubbles:!!Ne.bubbles,cancelable:!!Ne.cancelable,composed:!!Ne.composed,target:null,currentTarget:null,stopPropagationFlag:!1,stopImmediatePropagationFlag:!1,canceledFlag:!1,inPassiveListenerFlag:!1,dispatchFlag:!1,timeStamp:Date.now()})}return _.default(ge,[{key:"composedPath",value:function(){var Ie=le(this).currentTarget;return Ie?[Ie]:[]}},{key:"stopPropagation",value:function(){le(this).stopPropagationFlag=!0}},{key:"stopImmediatePropagation",value:function(){var Ie=le(this);Ie.stopPropagationFlag=Ie.stopImmediatePropagationFlag=!0}},{key:"preventDefault",value:function(){ye(le(this))}},{key:"initEvent",value:function(Ie){var Ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Xe=le(this);if(Xe.dispatchFlag){z.warn();return}pe.set(this,A(A({},Xe),{},{type:String(Ie),bubbles:!!Ne,cancelable:!!Be,target:null,currentTarget:null,stopPropagationFlag:!1,stopImmediatePropagationFlag:!1,canceledFlag:!1}))}},{key:"type",get:function(){return le(this).type}},{key:"target",get:function(){return le(this).target}},{key:"srcElement",get:function(){return le(this).target}},{key:"currentTarget",get:function(){return le(this).currentTarget}},{key:"NONE",get:function(){return re}},{key:"CAPTURING_PHASE",get:function(){return ee}},{key:"AT_TARGET",get:function(){return ne}},{key:"BUBBLING_PHASE",get:function(){return te}},{key:"eventPhase",get:function(){return le(this).dispatchFlag?2:0}},{key:"cancelBubble",get:function(){return le(this).stopPropagationFlag},set:function(Ie){Ie?le(this).stopPropagationFlag=!0:H.warn()}},{key:"bubbles",get:function(){return le(this).bubbles}},{key:"cancelable",get:function(){return le(this).cancelable}}
422,{key:"returnValue",get:function(){return!le(this).canceledFlag},set:function(Ie){Ie?U.warn():ye(le(this))}},{key:"defaultPrevented",get:function(){return le(this).canceledFlag}},{key:"composed",get:function(){return le(this).composed}},{key:"isTrusted",get:function(){return!1}},{key:"timeStamp",get:function(){return le(this).timeStamp}}]),ge}(),re=0,ee=1,ne=2,te=3,pe=new WeakMap;function le(ge){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"this",Ie=pe.get(ge);return x(Ie!=null,"'%s' must be an object that Event constructor created, but got another one: %o",we,ge),Ie}function ye(ge){if(ge.inPassiveListenerFlag){W.warn();return}if(!ge.cancelable){V.warn();return}ge.canceledFlag=!0}Object.defineProperty(G,"NONE",{enumerable:!0}),Object.defineProperty(G,"CAPTURING_PHASE",{enumerable:!0}),Object.defineProperty(G,"AT_TARGET",{enumerable:!0}),Object.defineProperty(G,"BUBBLING_PHASE",{enumerable:!0});for(var Se=Object.getOwnPropertyNames(G.prototype),_e=0;_e<Se.length;++_e)Se[_e]!=="constructor"&&Object.defineProperty(G.prototype,Se[_e],{enumerable:!0});typeof L<"u"&&typeof L.Event<"u"&&Object.setPrototypeOf(G.prototype,L.Event.prototype);function De(ge){return L.DOMException?new L.DOMException(ge,"InvalidStateError"):(be==null&&(be=function(we){m.default(Ne,we);var Ie=P(Ne);function Ne(Be){var Xe;return E.default(this,Ne),Xe=Ie.call(this,Be),Error.captureStackTrace&&Error.captureStackTrace(g.default(Xe),Ne),Xe}return _.default(Ne,[{key:"code",get:function(){return 11}},{key:"name",get:function(){return"InvalidStateError"}}]),Ne}(b.default(Error)),Object.defineProperties(be.prototype,{code:{enumerable:!0},name:{enumerable:!0}}),Pe(be),Pe(be.prototype)),new be(ge))}var be,se={INDEX_SIZE_ERR:1,DOMSTRING_SIZE_ERR:2,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,INVALID_CHARACTER_ERR:5,NO_DATA_ALLOWED_ERR:6,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INUSE_ATTRIBUTE_ERR:10,INVALID_STATE_ERR:11,SYNTAX_ERR:12,INVALID_MODIFICATION_ERR:13,NAMESPACE_ERR:14,INVALID_ACCESS_ERR:15,VALIDATION_ERR:16,TYPE_MISMATCH_ERR:17,SECURITY_ERR:18,NETWORK_ERR:19,ABORT_ERR:20,URL_MISMATCH_ERR:21,QUOTA_EXCEEDED_ERR:22,TIMEOUT_ERR:23,INVALID_NODE_TYPE_ER
422R:24,DATA_CLONE_ERR:25};function Pe(ge){for(var we=Object.keys(se),Ie=function(Xe){var He=we[Xe],ct=se[He];Object.defineProperty(ge,He,{get:function(){return ct},configurable:!0,enumerable:!0})},Ne=0;Ne<we.length;++Ne)Ie(Ne)}var Te=function(ge){m.default(Ie,ge);var we=P(Ie);_.default(Ie,null,[{key:"wrap",value:function(Be){return new(qe(Be))(Be)}}]);function Ie(Ne){var Be,Xe,He;E.default(this,Ie),He=we.call(this,Ne.type,{bubbles:Ne.bubbles,cancelable:Ne.cancelable,composed:Ne.composed}),Ne.cancelBubble&&y.default((Be=g.default(He),C.default(Ie.prototype)),"stopPropagation",Be).call(Be),Ne.defaultPrevented&&y.default((Xe=g.default(He),C.default(Ie.prototype)),"preventDefault",Xe).call(Xe),ze.set(g.default(He),{original:Ne});for(var ct=Object.keys(Ne),at=0;at<ct.length;++at){var Je=ct[at];Je in g.default(He)||Object.defineProperty(g.default(He),Je,xe(Ne,Je))}return He}return _.default(Ie,[{key:"stopPropagation",value:function(){y.default(C.default(Ie.prototype),"stopPropagation",this).call(this);var Be=ke(this),Xe=Be.original;"stopPropagation"in Xe&&Xe.stopPropagation()}},{key:"stopImmediatePropagation",value:function(){y.default(C.default(Ie.prototype),"stopImmediatePropagation",this).call(this);var Be=ke(this),Xe=Be.original;"stopImmediatePropagation"in Xe&&Xe.stopImmediatePropagation()}},{key:"preventDefault",value:function(){y.default(C.default(Ie.prototype),"preventDefault",this).call(this);var Be=ke(this),Xe=Be.original;"preventDefault"in Xe&&Xe.preventDefault()}},{key:"cancelBubble",get:function(){return y.default(C.default(Ie.prototype),"cancelBubble",this)},set:function(Be){v.default(C.default(Ie.prototype),"cancelBubble",Be,this,!0);var Xe=ke(this),He=Xe.original;"cancelBubble"in He&&(He.cancelBubble=Be)}},{key:"returnValue",get:function(){return y.default(C.default(Ie.prototype),"returnValue",this)},set:function(Be){v.default(C.default(Ie.prototype),"returnValue",Be,this,!0);var Xe=ke(this),He=Xe.original;"returnValue"in He&&(He.returnValue=Be)}},{key:"timeStamp",get:function(){var Be=ke(this),Xe=Be.original;return"timeStamp"in Xe?Xe.timeStamp:y.default(C.default(Ie.prototype),"timeStamp",this)}}]),Ie}(G),ze=new WeakMap;function ke(ge){var we=ze.get(ge);return x(we!=null,"'this' is expected an Event object, but got",ge),we}var Me=new WeakMap;Me.set(Object.prototype,Te),typeof L<"u"&&typeof L.Event<"u"&&Me.set(L.Event.prototype,Te);function qe(ge){var we=Object.getPrototypeOf(ge);if(we==null)return Te;var Ie=Me.get(we);return Ie==null&&(Ie=Le(qe(we),we),Me.set(we,Ie)),Ie}function Le(ge,we){for(var Ie=function(Xe){m.default(ct,Xe);var He=P(ct);function ct(){return E.default(this,ct),He.apply(this,arguments)}return ct}(ge),Ne=Object.keys(we),Be=0;Be<Ne.length;++Be)Object.defineProperty(Ie.prototype,Ne[Be],xe(we,Ne[Be]));return Ie}function xe(ge,we){var Ie=Object.getOwnPropertyDescriptor(ge,we);return{get:function(){var Be=ke(this).original,Xe=Be[we];return typeof Xe=="function"?Xe.bind(Be):Xe},set:function(Be){var Xe=ke(this).original;Xe[we]=Be},configurable:Ie.configurable,enumerable:Ie.enumerable}}function je(ge,we,Ie,Ne,Be,Xe){return{callback:ge,flags:(we?1:0)|(Ie?2:0)|(Ne?4:0),signal:Be,signalListener:Xe}}function Ee(ge){ge.flags|=8}function Re(ge){return(ge.flags&1)===1}function me(ge){return(ge.flags&2)===2}function ce(ge){return(ge.flags&4)===4}function Ae(ge){return(ge.flags&8)===8}function We(ge,we,Ie){var Ne=ge.callback;try{typeof Ne=="function"?Ne.call(we,Ie):typeof Ne.handleEvent=="function"&&Ne.handleEvent(Ie)}catch(Be){N(Be)}}function lt(ge,we,Ie){for(var Ne=ge.listeners,Be=0;Be<Ne.length;++Be)if(Ne[Be].callback===we&&Re(Ne[Be])===Ie)return Be;return-1}function yt(ge,we,Ie,Ne,Be,Xe){var He;Xe&&(He=nt.bind(null,ge,we,Ie),Xe.addEventListener("abort",He));var ct=je(we,Ie,Ne,Be,Xe,He);return ge.cow?(ge.cow=!1,ge.listeners=[].concat(h.default(ge.listeners),[ct])):ge.listeners.push(ct),ct}function nt(ge,we,Ie){var Ne=lt(ge,we,Ie);return Ne!==-1?it(ge,Ne):!1}function it(ge,we){var Ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Ne=ge.listeners[we];return Ee(Ne),Ne.signal&&Ne.signal.removeEventListener("abort",Ne.signalListener),ge.cow&&!Ie?(ge.cow=!1,ge.listeners=ge.listeners.filter(function(Be,Xe){return Xe!==we}),!1):(ge.listeners.splice(we,1),!0)}function gt(){return Object.create(null)}function Ye(ge,we){var Ie;return(Ie=ge[we])!==null&&Ie!==void 0?Ie:ge[we]={attrCallback:void 0,attrListener:void 0,cow:!1,listeners:[]}}var vt=function(){function ge(){E.default(this,ge),mt.set(this,gt())}return _.default(ge,[{key:"addEventListener",value:function(Ie,Ne,Be){var Xe=St(this),He=pt(Ie,Ne,Be),ct=He.callback,at=He.capture,Je=He.once,ut=He.passive,st=He.signal,_t=He.type;if(!(ct==null||st!=null&&st.aborted)){var zt=Ye(Xe,_t),ht=lt(zt,ct,at);if(ht!==-1){ue(zt.listeners[ht],ut,Je,st);return}yt(zt,ct,at,ut,Je,st)}}},{key:"removeEventListener",value:function(Ie,Ne,Be){var Xe=St(this),He=Rt(Ie,Ne,Be),ct=He.callback,at=He.capture,Je=He.type,ut=Xe[Je];ct!=null&&ut&&nt(ut,ct,at)}},{key:"dispatchEvent",value:function(Ie){var Ne=St(this)[String(Ie.type)];if(Ne==null)return!0;var Be=Ie instanceof G?Ie:Te.wrap(Ie),Xe=le(Be,"event");
422if(Xe.dispatchFlag)throw De("This event has been in dispatching.");if(Xe.dispatchFlag=!0,Xe.target=Xe.currentTarget=this,!Xe.stopPropagationFlag){var He=Ne.cow,ct=Ne.listeners;Ne.cow=!0;for(var at=0;at<ct.length;++at){var Je=ct[at];if(!Ae(Je)&&(ce(Je)&&it(Ne,at,!He)&&(at-=1),Xe.inPassiveListenerFlag=me(Je),We(Je,this,Be),Xe.inPassiveListenerFlag=!1,Xe.stopImmediatePropagationFlag))break}He||(Ne.cow=!1)}return Xe.target=null,Xe.currentTarget=null,Xe.stopImmediatePropagationFlag=!1,Xe.stopPropagationFlag=!1,Xe.dispatchFlag=!1,!Xe.canceledFlag}}]),ge}(),mt=new WeakMap;function St(ge){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"this",Ie=mt.get(ge);return x(Ie!=null,"'%s' must be an object that EventTarget constructor created, but got another one: %o",we,ge),Ie}function pt(ge,we,Ie){var Ne;return ae(we),R.default(Ie)==="object"&&Ie!==null?{type:String(ge),callback:we??void 0,capture:!!Ie.capture,passive:!!Ie.passive,once:!!Ie.once,signal:(Ne=Ie.signal)!==null&&Ne!==void 0?Ne:void 0}:{type:String(ge),callback:we??void 0,capture:!!Ie,passive:!1,once:!1,signal:void 0}}function Rt(ge,we,Ie){return ae(we),R.default(Ie)==="object"&&Ie!==null?{type:String(ge),callback:we??void 0,capture:!!Ie.capture}:{type:String(ge),callback:we??void 0,capture:!!Ie}}function ae(ge){if(!(typeof ge=="function"||R.default(ge)==="object"&&ge!==null&&typeof ge.handleEvent=="function")){if(ge==null||R.default(ge)==="object"){q.warn(ge);return}throw new TypeError(T(q.message,[ge]))}}function ue(ge,we,Ie,Ne){K.warn(Re(ge)?"capture":"bubble",ge.callback),me(ge)!==we&&Z.warn("passive"),ce(ge)!==Ie&&Z.warn("once"),ge.signal!==Ne&&Z.warn("signal")}for(var ve=Object.getOwnPropertyNames(vt.prototype),Ce=0;Ce<ve.length;++Ce)ve[Ce]!=="constructor"&&Object.defineProperty(vt.prototype,ve[Ce],{enumerable:!0});typeof L<"u"&&typeof L.EventTarget<"u"&&Object.setPrototypeOf(vt.prototype,L.EventTarget.prototype);function Fe(ge,we){var Ie,Ne,Be=St(ge,"target");return(Ne=(Ie=Be[we])===null||Ie===void 0?void 0:Ie.attrCallback)!==null&&Ne!==void 0?Ne:null}function Ze(ge,we,Ie){Ie!=null&&typeof Ie!="function"&&Y.warn(Ie),typeof Ie=="function"||R.default(Ie)==="object"&&Ie!==null?et(ge,we,Ie):tt(ge,we)}function et(ge,we,Ie){var Ne=Ye(St(ge,"target"),String(we));Ne.attrCallback=Ie,Ne.attrListener==null&&(Ne.attrListener=yt(Ne,ot(Ne),!1,!1,!1,void 0))}function tt(ge,we){var Ie=St(ge,"target"),Ne=Ie[String(we)];Ne&&Ne.attrListener&&(nt(Ne,Ne.attrListener.callback,!1),Ne.attrCallback=Ne.attrListener=void 0)}function ot(ge){return function(we){var Ie=ge.attrCallback;typeof Ie=="function"&&Ie.call(this,we)}}function rt(){for(var ge=function(Ie){m.default(Be,Ie);var Ne=P(Be);function Be(){return E.default(this,Be),Ne.apply(this,arguments)}return Be}(vt),we=0;we<arguments.length;++we)ft(ge.prototype,we<0||arguments.length<=we?void 0:arguments[we]);return ge}function ft(ge,we,Ie){Object.defineProperty(ge,"on".concat(we),{get:function(){return Fe(this,we)},set:function(Be){Ze(this,we,Be)},configurable:!0,enumerable:!0})}return ha.Event=G,ha.EventTarget=vt,ha.default=vt,ha.defineCustomEventTarget=rt,ha.defineEventAttribute=ft,ha.getEventAttributeValue=Fe,ha.setErrorHandler=j,ha.setEventAttributeValue=Ze,ha.setWarningHandler=$,ha}var QS={},JS={},ZF;function E6e(){if(ZF)return JS;ZF=1;var e=Zn;Object.defineProperty(JS,"__esModule",{value:!0}),JS.default=i;var t=e(rh());function r(o,a){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(o);a&&(l=l.filter(function(c){return Object.getOwnPropertyDescriptor(o,c).enumerable})),s.push.apply(s,l)}return s}function n(o){for(var a=1;a<arguments.length;a++){var s=arguments[a]!=null?arguments[a]:{};a%2?r(Object(s),!0).forEach(function(l){(0,t.default)(o,l,s[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(s)):r(Object(s)).forEach(function(l){Object.defineProperty(o,l,Object.getOwnPropertyDescriptor(s,l))})}return o}function i(o,a){var s=n(n(n({},[].reduce.call(o,function(l,c,d){return l[d]=c,l},{})),a),{},(0,t.default)({length:o.length},Symbol.iterator,function(){return[].slice.call(s)[Symbol.iterator]()}));return s}return JS}var Bh={},eo={},k2={},nE={},N2={},xn={},nh={},Da={};const R6e=xw(ZDe);Object.defineProperty(Da,"__esModule",{value:!0});Da.createNoDashGuid=Da.createGuid=void 0;const P6e=R6e,are=()=>(0,P6e.v4)();Da.createGuid=are;const I6e=()=>are().replace(new RegExp("-","g"),"").toUpperCase();Da.createNoDashGuid=I6e;
vendor: 23,521 bytes, line 422
422(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PlatformEvent=e.EventType=void 0;const t=Da;(function(n){n[n.Debug=0]="Debug",n[n.Info=1]="Info",n[n.Warning=2]="Warning",n[n.Error=3]="Error",n[n.None=4]="None"})(e.EventType||(e.EventType={}));class r{constructor(i,o){this.privName=i,this.privEventId=(0,t.createNoDashGuid)(),this.privEventTime=new Date().toISOString(),this.privEventType=o,this.privMetadata={}}get name(){return this.privName}get eventId(){return this.privEventId}get eventTime(){return this.privEventTime}get eventType(){return this.privEventType}get metadata(){return this.privMetadata}}e.PlatformEvent=r})(nh);Object.defineProperty(xn,"__esModule",{value:!0});xn.AudioStreamNodeErrorEvent=xn.AudioStreamNodeDetachedEvent=xn.AudioStreamNodeAttachedEvent=xn.AudioStreamNodeAttachingEvent=xn.AudioStreamNodeEvent=xn.AudioSourceErrorEvent=xn.AudioSourceOffEvent=xn.AudioSourceReadyEvent=xn.AudioSourceInitializingEvent=xn.AudioSourceEvent=void 0;const T$=nh;class ih extends T$.PlatformEvent{constructor(t,r,n=T$.EventType.Info){super(t,n),this.privAudioSourceId=r}get audioSourceId(){return this.privAudioSourceId}}xn.AudioSourceEvent=ih;class x6e extends ih{constructor(t){super("AudioSourceInitializingEvent",t)}}xn.AudioSourceInitializingEvent=x6e;class O6e extends ih{constructor(t){super("AudioSourceReadyEvent",t)}}xn.AudioSourceReadyEvent=O6e;class T6e extends ih{constructor(t){super("AudioSourceOffEvent",t)}}xn.AudioSourceOffEvent=T6e;class A6e extends ih{constructor(t,r){super("AudioSourceErrorEvent",t,T$.EventType.Error),this.privError=r}get error(){return this.privError}}xn.AudioSourceErrorEvent=A6e;class S0 extends ih{constructor(t,r,n){super(t,r),this.privAudioNodeId=n}get audioNodeId(){return this.privAudioNodeId}}xn.AudioStreamNodeEvent=S0;class M6e extends S0{constructor(t,r){super("AudioStreamNodeAttachingEvent",t,r)}}xn.AudioStreamNodeAttachingEvent=M6e;class $6e extends S0{constructor(t,r){super("AudioStreamNodeAttachedEvent",t,r)}}xn.AudioStreamNodeAttachedEvent=$6e;class k6e extends S0{constructor(t,r){super("AudioStreamNodeDetachedEvent",t,r)}}xn.AudioStreamNodeDetachedEvent=k6e;class N6e extends S0{constructor(t,r,n){super("AudioStreamNodeErrorEvent",t,r),this.privError=n}get error(){return this.privError}}xn.AudioStreamNodeErrorEvent=N6e;var On={};Object.defineProperty(On,"__esModule",{value:!0});On.ConnectionRedirectEvent=On.ConnectionMessageSentEvent=On.ConnectionMessageReceivedEvent=On.ConnectionEstablishErrorEvent=On.ConnectionErrorEvent=On.ConnectionClosedEvent=On.ConnectionEstablishedEvent=On.ConnectionStartEvent=On.ConnectionEvent=On.ServiceEvent=void 0;const Nc=nh;class D6e extends Nc.PlatformEvent{constructor(t,r,n=Nc.EventType.Info){super(t,n),this.privJsonResult=r}get jsonString(){return this.privJsonResult}}On.ServiceEvent=D6e;class Ml extends Nc.PlatformEvent{constructor(t,r,n=Nc.EventType.Info){super(t,n),this.privConnectionId=r}get connectionId(){return this.privConnectionId}}On.ConnectionEvent=Ml;class L6e extends Ml{constructor(t,r,n){super("ConnectionStartEvent",t),this.privUri=r,this.privHeaders=n}get uri(){return this.privUri}get headers(){return this.privHeaders}}On.ConnectionStartEvent=L6e;class j6e extends Ml{constructor(t){super("ConnectionEstablishedEvent",t)}}On.ConnectionEstablishedEvent=j6e;class F6e extends Ml{constructor(t,r,n){super("ConnectionClosedEvent",t,Nc.EventType.Debug),this.privReason=n,this.privStatusCode=r}get reason(){return this.privReason}get statusCode(){return this.privStatusCode}}On.ConnectionClosedEvent=F6e;class z6e extends Ml{constructor(t,r,n){super("ConnectionErrorEvent",t,Nc.EventType.Debug),this.privMessage=r,this.privType=n}get message(){return this.privMessage}get type(){return this.privType}}On.ConnectionErrorEvent=z6e;class B6e extends Ml{constructor(t,r,n){super("ConnectionEstablishErrorEvent",t,Nc.EventType.Error),this.privStatusCode=r,this.privReason=n}get reason(){return this.privReason}get statusCode(){return this.privStatusCode}}On.ConnectionEstablishErrorEvent=B6e;class H6e extends Ml{constructor(t,r,n){super("ConnectionMessageReceivedEvent",t),this.privNetworkReceivedTime=r,this.privMessage=n}get networkReceivedTime(){return this.privNetworkReceivedTime}get message(){return this.privMessage}}On.ConnectionMessageReceivedEvent=H6e;class V6e extends Ml{constructor(t,r,n){super("ConnectionMessageSentEvent",t),this.privNetworkSentTime=r,this.privMessage=n}get networkSentTime(){return this.privNetworkSentTime}get message(){return this.privMessage}}On.ConnectionMessageSentEvent=V6e;class U6e extends Ml{constructor(t,r,n,i){super("ConnectionRedirectEvent",t,Nc.EventType.Info),this.privRedirectUrl=r,this.privOriginalUrl=n,this.privContext=i}get redirectUrl(){return this.privRedirectUrl}get originalUrl(){return this.privOriginalUrl}get context(){return this.privContext}}On.ConnectionRedirectEvent=U6e;var D3={},_i={};Object.defineProperty(_i,"__esModule",{value:!0});_i.ObjectDisposedError=_i.InvalidOperationError=_i.ArgumentNullError=void 0;class W6e extends Error{constructor(t){super(t),this.name="ArgumentNull",this.message=t}}_i.ArgumentNullError=W6e;class q6e extends Error{constructor(t){super(t),this.name="InvalidOperation",this.message=t}}_i.InvalidOperationError=q6e;class G6e extends Error{constructor(t,r){super(r),this.name=t+"ObjectDisposed",this.message=r}}_i.ObjectDisposedError=G6e;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ConnectionMessage=e.MessageType=void 0;const t=_i,r=Da;var n;(function(o){o[o.Text=0]="Text",o[o.Binary=1]="Binary"})(n=e.MessageType||(e.MessageType={}));class i{constructor(a,s,l,c){if(this.privBody=null,a===n.Text&&s&&typeof s!="string")throw new t.InvalidOperationError("Payload must be a string");if(a===n.Binary&&s&&!(s instanceof ArrayBuffer))throw new t.InvalidOperationError("Payload must be ArrayBuffer");switch(this.privMessageType=a,this.privBody=s,this.privHeaders=l||{},this.privId=c||(0,r.createNoDashGuid)(),this.messageType){case n.Binary:this.privSize=this.binaryBody!==null?this.binaryBody.byteLength:0;break;case n.Text:this.privSize=this.textBody.length}}get messageType(){return this.privMessageType}get headers(){return this.privHeaders}get body(){return this.privBody}get textBody(){if(this.privMessageType===n.Binary)throw new t.InvalidOperationError("Not supported for binary message");return this.privBody}get binaryBody(){if(this.privMessageType===n.Text)throw new t.InvalidOperationError("Not supported for text message");return this.privBody}get id(){return this.privId}}e.ConnectionMessage=i})(D3);var iE={};Object.defineProperty(iE,"__esModule",{value:!0});iE.ConnectionOpenResponse=void 0;class K6e{constructor(t,r){this.privStatusCode=t,this.privReason=r}get statusCode(){return this.privStatusCode}get reason(){return this.privReason}}iE.ConnectionOpenResponse=K6e;var oE={};Object.defineProperty(oE,"__esModule",{value:!0});oE.DeferralMap=void 0;class Y6e{constructor(){this.privMap={}}add(t,r){this.privMap[t]=r}getId(t){return this.privMap[t]}complete(t,r){try{this.privMap[t].resolve(r)}catch(n){this.privMap[t].reject(n)}finally{this.privMap[t]=void 0}}}oE.DeferralMap=Y6e;var fd={};Object.defineProperty(fd,"__esModule",{value:!0});fd.SendingAgentContextMessageEvent=fd.DialogEvent=void 0;const ez=nh;class sre extends ez.PlatformEvent{constructor(t,r=ez.EventType.Info){super(t,r)}}fd.DialogEvent=sre;class X6e extends sre{constructor(t){super("SendingAgentContextMessageEvent"),this.privAgentConfig=t}get agentConfig(){return this.privAgentConfig}}fd.SendingAgentContextMessageEvent=X6e;var aE={},C0={};Object.defineProperty(C0,"__esModule",{value:!0});C0.EventSource=void 0;const Q6e=_i,J6e=Da;class Z6e{constructor(t){this.privEventListeners={},this.privIsDisposed=!1,this.privConsoleListener=void 0,this.privMetadata=t}onEvent(t){if(this.isDisposed())throw new Q6e.ObjectDisposedError("EventSource");if(this.metadata)for(const r in this.metadata)r&&t.metadata&&(t.metadata[r]||(t.metadata[r]=this.metadata[r]));for(const r in this.privEventListeners)r&&this.privEventListeners[r]&&this.privEventListeners[r](t)}attach(t){const r=(0,J6e.createNoDashGuid)();return this.privEventListeners[r]=t,{detach:()=>(delete this.privEventListeners[r],Promise.resolve())}}attachListener(t){return this.attach(r=>t.onEvent(r))}attachConsoleListener(t){return this.privConsoleListener&&this.privConsoleListener.detach(),this.privConsoleListener=this.attach(r=>t.onEvent(r)),this.privConsoleListener}isDisposed(){return this.privIsDisposed}dispose(){this.privEventListeners=null,this.privIsDisposed=!0}get metadata(){return this.privMetadata}}C0.EventSource=Z6e;Object.defineProperty(aE,"__esModule",{value:!0});aE.Events=void 0;const eLe=_i,tLe=C0;class gy{static setEventSource(t){if(!t)throw new eLe.ArgumentNullError("eventSource");gy.privInstance=t}static get instance(){return gy.privInstance}}aE.Events=gy;gy.privInstance=new tLe.EventSource;var lre={};Object.defineProperty(lre,"__esModule",{value:!0});var cre={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ConnectionState=void 0,function(t){t[t.None=0]="None",t[t.Connected=1]="Connected",t[t.Connecting=2]="Connecting",t[t.Disconnected=3]="Disconnected"}(e.ConnectionState||(e.ConnectionState={}))})(cre);var ure={};Object.defineProperty(ure,"__esModule",{value:!0});var dre={};Object.defineProperty(dre,"__esModule",{value:!0});var fre={};Object.defineProperty(fre,"__esModule",{value:!0});var pre={};Object.defineProperty(pre,"__esModule",{value:!0});var hre={};Object.defineProperty(hre,"__esModule",{value:!0});var vre={};Object.defineProperty(vre,"__esModule",{value:!0});var gre={};Object.defineProperty(gre,"__esModule",{value:!0});var mre={};Object.defineProperty(mre,"__esModule",{value:!0});var b0={};Object.defineProperty(b0,"__esModule",{value:!0});b0.List=void 0;const rLe=_i;class tc{constructor(t){if(this.privSubscriptionIdCounter=0,this.privAddSubscriptions={},this.privRemoveSubscriptions={},this.privDisposedSubscriptions={},this.privDisposeReason=null,this.privList=[],t)for(const r of t)this.privList.push(r)}get(t){return this.throwIfDisposed(),this.privList[t]}first(){return this.get(0)}last(){return this.get(this.length()-1)}add(t){this.throwIfDisposed(),this.insertAt(this.privList.length,t)}insertAt(t,r){this.throwIfDisposed(),t===0?this.privList.unshift(r):t===this.privList.length?this.privList.push(r):this.privList.splice(t,0,r),this.triggerSubscriptions(this.privAddSubscriptions)}removeFirst(){return this.throwIfDisposed(),this.removeAt(0)}removeLast(){return this.throwIfDisposed(),this.removeAt(this.length()-1)}removeAt(t){return this.throwIfDisposed(),this.remove(t,1)[0]}remove(t,r){this.throwIfDisposed();const n=this.privList.splice(t,r);return this.triggerSubscriptions(this.privRemoveSubscriptions),n}clear(){this.throwIfDisposed(),this.remove(0,this.length())}length(){return this.throwIfDisposed(),this.privList.length}onAdded(t){this.throwIfDisposed();const r=this.privSubscriptionIdCounter++;return this.privAddSubscriptions[r]=t,{detach:()=>(delete this.privAddSubscriptions[r],Promise.resolve())}}onRemoved(t){this.throwIfDisposed();const r=this.privSubscriptionIdCounter++;return this.privRemoveSubscriptions[r]=t,{detach:()=>(delete this.privRemoveSubscriptions[r],Promise.resolve())}}onDisposed(t){this.throwIfDisposed();const r=this.privSubscriptionIdCounter++;return this.privDisposedSubscriptions[r]=t,{detach:()=>(delete this.privDisposedSubscriptions[r],Promise.resolve())}}join(t){return this.throwIfDisposed(),this.privList.join(t)}toArray(){const t=Array();return this.privList.forEach(r=>{t.push(r)}),t}any(t){return this.throwIfDisposed(),t?this.where(t).length()>0:this.length()>0}all(t){return this.throwIfDisposed(),this.where(t).length()===this.length()}forEach(t){this.throwIfDisposed();for(let r=0;r<this.length();r++)t(this.privList[r],r)}select(t){this.throwIfDisposed();const r=[];for(let n=0;n<this.privList.length;n++)r.push(t(this.privList[n],n));return new tc(r)}where(t){this.throwIfDisposed();const r=new tc;for(let n=0;n<this.privList.length;n++)t(this.privList[n],n)&&r.add(this.privList[n]);return r}orderBy(t){this.throwIfDisposed();const n=this.toArray().sort(t);return new tc(n)}orderByDesc(t){return this.throwIfDisposed(),this.orderBy((r,n)=>t(n,r))}clone(){return this.throwIfDisposed(),new tc(this.toArray())}concat(t){return this.throwIfDisposed(),new tc(this.privList.concat(t.toArray()))}concatArray(t){return this.throwIfDisposed(),new tc(this.privList.concat(t))}isDisposed(){return this.privList==null}dispose(t){this.isDisposed()||(this.privDisposeReason=t,this.privList=null,this.privAddSubscriptions=null,this.privRemoveSubscriptions=null,this.triggerSubscriptions(this.privDisposedSubscriptions))}throwIfDisposed(){if(this.isDisposed())throw new rLe.ObjectDisposedError("List",this.privDisposeReason)}triggerSubscriptions(t){if(t)for(const r in t)r&&t[r]()}}b0.List=tc;var L3={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.marshalPromiseToCallbacks=e.Sink=e.Deferred=e.PromiseResultEventSource=e.PromiseResult=e.PromiseState=void 0;var t;(function(s){s[s.None=0]="None",s[s.Resolved=1]="Resolved",s[s.Rejected=2]="Rejected"})(t=e.PromiseState||(e.PromiseState={}));class r{constructor(l){this.throwIfError=()=>{if(this.isError)throw this.error},l.on(c=>{this.privIsCompleted||(this.privIsCompleted=!0,this.privIsError=!1,this.privResult=c)},c=>{this.privIsCompleted||(this.privIsCompleted=!0,this.privIsError=!0,this.privError=c)})}get isCompleted(){return this.privIsCompleted}get isError(){return this.privIsError}get error(){return this.privError}get result(){return this.privResult}}e.PromiseResult=r;class n{constructor(){this.setResult=l=>{this.privOnSetResult(l)},this.setError=l=>{this.privOnSetError(l)},this.on=(l,c)=>{this.privOnSetResult=l,this.privOnSetError=c}}}e.PromiseResultEventSource=n;class i{constructor(){this.resolve=l=>(this.privResolve(l),this),this.reject=l=>(this.privReject(l),this),this.privPromise=new Promise((l,c)=>{this.privResolve=l,this.privReject=c})}get promise(){return this.privPromise}}e.Deferred=i;class o{constructor(){this.privState=t.None,this.privPromiseResult=null,this.privPromiseResultEvents=null,this.privSuccessHandlers=[],this.privErrorHandlers=[],this.privPromiseResultEvents=new n,this.privPromiseResult=new r(this.privPromiseResultEvents)}get state(){return this.privState}get result(){return this.privPromiseResult}resolve(l){if(this.privState!==t.None)throw new Error("'Cannot resolve a completed promise'");this.privState=t.Resolved,this.privPromiseResultEvents.setResult(l);for(let c=0;c<this.privSuccessHandlers.length;c++)this.executeSuccessCallback(l,this.privSuccessHandlers[c],this.privErrorHandlers[c]);this.detachHandlers()}reject(l){if(this.privState!==t.None)throw new Error("'Cannot reject a completed promise'");this.privState=t.Rejected,this.privPromiseResultEvents.setError(l);for(const c of this.privErrorHandlers)this.executeErrorCallback(l,c);this.detachHandlers()}on(l,c){l==null&&(l=()=>{}),this.privState===t.None?(this.privSuccessHandlers.push(l),this.privErrorHandlers.push(c)):(this.privState===t.Resolved?this.executeSuccessCallback(this.privPromiseResult.result,l,c):this.privState===t.Rejected&&this.executeErrorCallback(this.privPromiseResult.error,c),this.detachHandlers())}executeSuccessCallback(l,c,d){try{c(l)}catch(u){this.executeErrorCallback(`'Unhandled callback error: ${u}'`,d)}}executeErrorCallback(l,c){if(c)try{c(l)}catch(d){throw new Error(`'Unhandled callback error: ${d}. InnerError: ${l}'`)}else throw new Error(`'Unhandled error: ${l}'`)}detachHandlers(){this.privErrorHandlers=[],this.privSuccessHandlers=[]}}e.Sink=o;function a(s,l,c){s.then(d=>{try{l&&l(d)}catch(u){if(c)try{if(u instanceof Error){const f=u;c(f.name+": "+f.message)}else c(u)}catch{}}},d=>{if(c)try{if(d instanceof Error){const u=d;c(u.name+": "+u.message)}else c(d)}catch{}})}e.marshalPromiseToCallbacks=a})(L3);var w0={};Object.defineProperty(w0,"__esModule",{value:!0});w0.Queue=void 0;const D2=_i,L2=b0,tz=L3;var mm;(function(e){e[e.Dequeue=0]="Dequeue",e[e.Peek=1]="Peek"})(mm||(mm={}));class nLe{constructor(t){this.privPromiseStore=new L2.List,this.privIsDrainInProgress=!1,this.privIsDisposing=!1,this.privDisposeReason=null,this.privList=t||new L2.List,this.privDetachables=[],this.privSubscribers=new L2.List,this.privDetachables.push(this.privList.onAdded(()=>this.drain()))}enqueue(t){this.throwIfDispose(),this.enqueueFromPromise(new Promise(r=>r(t)))}enqueueFromPromise(t){this.throwIfDispose(),t.then(r=>{this.privList.add(r)},()=>{})}dequeue(){this.throwIfDispose();const t=new tz.Deferred;return this.privSubscribers&&(this.privSubscribers.add({deferral:t,type:mm.Dequeue}),this.drain()),t.promise}peek(){this.throwIfDispose();const t=new tz.Deferred;return this.privSubscribers&&(this.privSubscribers.add({deferral:t,type:mm.Peek}),this.drain()),t.promise}length(){return this.throwIfDispose(),this.privList.length()}isDisposed(){return this.privSubscribers==null}async drainAndDispose(t,r){if(!this.isDisposed()&&!this.privIsDisposing){this.privDisposeReason=r,this.privIsDisposing=!0;const n=this.privSubscribers;if(n){for(;n.length()>0;)n.removeFirst().deferral.resolve(void 0);this.privSubscribers===n&&(this.privSubscribers=n)}for(const i of this.privDetachables)await i.detach();if(this.privPromiseStore.length()>0&&t){const i=[];return this.privPromiseStore.toArray().forEach(o=>{i.push(o)}),Promise.all(i).finally(()=>{this.privSubscribers=null,this.privList.forEach(o=>{t(o)}),this.privList=null}).then()}else this.privSubscribers=null,this.privList=null}}async dispose(t){await this.drainAndDispose(null,t)}drain(){if(!this.privIsDrainInProgress&&!this.privIsDisposing){this.privIsDrainInProgress=!0;const t=this.privSubscribers,r=this.privList;if(t&&r){for(;r.length()>0&&t.length()>0&&!this.privIsDisposing;){const n=t.removeFirst();if(n.type===mm.Peek)n.deferral.resolve(r.first());else{const i=r.removeFirst();n.deferral.resolve(i)}}this.privSubscribers===t&&(this.privSubscribers=t),this.privList===r&&(this.privList=r)}this.privIsDrainInProgress=!1}}throwIfDispose(){if(this.isDisposed())throw this.privDisposeReason?new D2.InvalidOperationError(this.privDisposeReason):new D2.ObjectDisposedError("Queue");if(this.privIsDisposing)throw new D2.InvalidOperationError("Queue disposing")}}w0.Queue=nLe;var sE={};Object.defineProperty(sE,"__esModule",{value:!0});sE.RawWebsocketMessage=void 0;const ZS=D3,Hh=_i,iLe=Da;class oLe{constructor(t,r,n){if(this.privPayload=null,!r)throw new Hh.ArgumentNullError("payload");if(t===ZS.MessageType.Binary&&Object.getPrototypeOf(r).constructor.name!=="ArrayBuffer")throw new Hh.InvalidOperationError("Payload must be ArrayBuffer");if(t===ZS.MessageType.Text&&typeof r!="string")throw new Hh.InvalidOperationError("Payload must be a string");this.privMessageType=t,this.privPayload=r,this.privId=n||(0,iLe.createNoDashGuid)()}get messageType(){return this.privMessageType}get payload(){return this.privPayload}get textContent(){if(this.privMessageType===ZS.MessageType.Binary)throw new Hh.InvalidOperationError("Not supported for binary message");return this.privPayload}get binaryContent(){if(this.privMessageType===ZS.MessageType.Text)throw new Hh.InvalidOperationError("Not supported for text message");return this.privPayload}get id(){return this.privId}}sE.RawWebsocketMessage=oLe;var lE={};Object.defineProperty(lE,"__esModule",{value:!0});lE.RiffPcmEncoder=void 0;class aLe{constructor(t,r){this.privActualSampleRate=t,this.privDesiredSampleRate=r}encode(t){const r=this.downSampleAudioFrame(t,this.privActualSampleRate,this.privDesiredSampleRate);if(!r)return null;const n=r.length*2,i=new ArrayBuffer(n),o=new DataView(i);return this.floatTo16BitPCM(o,0,r),i}setString(t,r,n){for(let i=0;i<n.length;i++)t.setUint8(r+i,n.charCodeAt(i))}floatTo16BitPCM(t,r,n){for(let i=0;i<n.length;i++,r+=2){const o=Math.max(-1,Math.min(1,n[i]));t.setInt16(r,o<0?o*32768:o*32767,!0)}}downSampleAudioFrame(t,r,n){if(!t)return null;if(n===r||n>r)return t;const i=r/n,o=Math.round(t.length/i),a=new Float32Array(o);let s=0,l=0;for(;l<o;){const c=Math.round((l+1)*i);let d=0,u=0;for(;s<c&&s<t.length;)d+=t[s++],u++;a[l++]=d/u}return a}}lE.RiffPcmEncoder=aLe;var cE={};Object.defineProperty(cE,"__esModule",{value:!0});cE.Stream=void 0;const rz=_i,sLe=Da,nz=w0;class lLe{constructor(t){this.privIsWriteEnded=!1,this.privIsReadEnded=!1,this.privId=t||(0,sLe.createNoDashGuid)(),this.privReaderQueue=new nz.Queue}get isClosed(){return this.privIsWriteEnded}get isReadEnded(){return this.privIsReadEnded}get id(){return this.privId}close(){this.privIsWriteEnded||(this.writeStreamChunk({buffer:null,isEnd:!0,timeReceived:Date.now()}),this.privIsWriteEnded=!0)}writeStreamChunk(t){if(this.throwIfClosed(),!this.privReaderQueue.isDisposed())try{this.privReaderQueue.enqueue(t)}catch{}}read(){if(this.privIsReadEnded)throw new rz.InvalidOperationError("Stream read has already finished");return this.privReaderQueue.dequeue().then(async t=>((t===void 0||t.isEnd)&&await this.privReaderQueue.dispose("End of stream reached"),t))}readEnded(){this.privIsReadEnded||(this.privIsReadEnded=!0,this.privReaderQueue=new nz.Queue)}throwIfClosed(){if(this.privIsWriteEnded)throw new rz.InvalidOperationError("Stream closed")}}cE.Stream=lLe;var uE={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TranslationStatus=void 0,function(t){t[t.Success=0]="Success",t[t.Error=1]="Error"}(e.TranslationStatus||(e.TranslationStatus={}))})(uE);var Vh={},iz;function cLe(){if(iz)return Vh;iz=1,Object.defineProperty(Vh,"__esModule",{value:!0}),Vh.ChunkedArrayBufferStream=void 0;const e=Wt();let t=class extends e.Stream{constructor(n,i){super(i),this.privTargetChunkSize=Math.round(n),this.privNextBufferReadyBytes=0}writeStreamChunk(n){if(n.isEnd||this.privNextBufferReadyBytes===0&&n.buffer.byteLength===this.privTargetChunkSize){super.writeStreamChunk(n);return}let i=0;for(;i<n.buffer.byteLength;){this.privNextBufferToWrite===void 0&&(this.privNextBufferToWrite=new ArrayBuffer(this.privTargetChunkSize),this.privNextBufferStartTime=n.timeReceived);const o=Math.min(n.buffer.byteLength-i,this.privTargetChunkSize-this.privNextBufferReadyBytes),a=new Uint8Array(this.privNextBufferToWrite),s=new Uint8Array(n.buffer.slice(i,o+i));a.set(s,this.privNextBufferReadyBytes),this.privNextBufferReadyBytes+=o,i+=o,this.privNextBufferReadyBytes===this.privTargetChunkSize&&(super.writeStreamChunk({buffer:this.privNextBufferToWrite,isEnd:!1,timeReceived:this.privNextBufferStartTime}),this.privNextBufferReadyBytes=0,this.privNextBufferToWrite=void 0)}}close(){this.privNextBufferReadyBytes!==0&&!this.isClosed&&super.writeStreamChunk({buffer:this.privNextBufferToWrite.slice(0,this.privNextBufferReadyBytes),isEnd:!1,timeReceived:this.privNextBufferStartTime}),super.close()}};return Vh.ChunkedArrayBufferStream=t,Vh}var yre={};Object.defineProperty(yre,"__esModule",{value:!0});var dE={};Object.defineProperty(dE,"__esModule",{value:!0});dE.Timeout=void 0;class Hi{static load(){const t=new Map([[0,()=>{}]]),r=new Map,i="data:text/javascript;base64,"+btoa(`!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}
422),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=14)}([function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return d}));const r=new Map,o=new Map,i=e=>{const t=r.get(e);if(void 0===t)throw new Error('There is no interval scheduled with the given id "'.concat(e,'".'));clearTimeout(t),r.delete(e)},u=e=>{const t=o.get(e);if(void 0===t)throw new Error('There is no timeout scheduled with the given id "'.concat(e,'".'));clearTimeout(t),o.delete(e)},f=(e,t)=>{let n,r;if("performance"in self){const o=performance.now();n=o,r=e-Math.max(0,o-t)}else n=Date.now(),r=e;return{expected:n+r,remainingDelay:r}},c=(e,t,n,r)=>{const o="performance"in self?performance.now():Date.now();o>n?postMessage({id:null,method:"call",params:{timerId:t}}):e.set(t,setTimeout(c,n-o,e,t,n))},a=(e,t,n)=>{const{expected:o,remainingDelay:i}=f(e,n);r.set(t,setTimeout(c,i,r,t,o))},d=(e,t,n)=>{const{expected:r,remainingDelay:i}=f(e,n);o.set(t,setTimeout(c,i,o,t,r))}},function(e,t,n){"use strict";n.r(t);var r=n(2);for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);var i=n(3);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var u=n(4);for(var o in u)"default"!==o&&function(e){n.d(t,e,(function(){return u[e]}))}(o);var f=n(5);for(var o in f)"default"!==o&&function(e){n.d(t,e,(function(){return f[e]}))}(o);var c=n(6);for(var o in c)"default"!==o&&function(e){n.d(t,e,(function(){return c[e]}))}(o);var a=n(7);for(var o in a)"default"!==o&&function(e){n.d(t,e,(function(){return a[e]}))}(o);var d=n(8);for(var o in d)"default"!==o&&function(e){n.d(t,e,(function(){return d[e]}))}(o);var s=n(9);for(var o in s)"default"!==o&&function(e){n.d(t,e,(function(){return s[e]}))}(o)},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";n.r(t);var r=n(11);for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);var i=n(12);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var u=n(13);for(var o in u)"default"!==o&&function(e){n.d(t,e,(function(){return u[e]}))}(o)},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n(1);for(var i in o)"default"!==i&&function(e){n.d(t,e,(function(){return o[e]}))}(i);var u=n(10);for(var i in u)"default"!==i&&function(e){n.d(t,e,(function(){return u[e]}))}(i);addEventListener("message",({data:e})=>{try{if("clear"===e.method){const{id:t,params:{timerId:n}}=e;Object(r.b)(n),postMessage({error:null,id:t})}else{if("set"!==e.method)throw new Error('The given method "'.concat(e.method,'" is not supported'));{const{params:{delay:t,now:n,timerId:o}}=e;Object(r.d)(t,o,n)}}}catch(t){postMessage({error:{message:t.message},id:e.id,result:null})}})}]);`),o=new Worker(i);return o.addEventListener("message",({data:l})=>{if(Hi.isCallNotification(l)){const{params:{timerId:c}}=l,d=t.get(c);if(typeof d=="number"){const u=r.get(d);if(u===void 0||u!==c)throw new Error("The timer is in an undefined state.")}else if(typeof d<"u")d(),t.delete(c);else throw new Error("The timer is in an undefined state.")}else if(Hi.isClearResponse(l)){const{id:c}=l,d=r.get(c);if(d===void 0)throw new Error("The timer is in an undefined state.");r.delete(c),t.delete(d)}else{const{error:{message:c}}=l;throw new Error(c)}}),{clearTimeout:l=>{const c=Math.random();r.set(c,l),t.set(l,c),o.postMessage({id:c,method:"clear",params:{timerId:l}})},setTimeout:(l,c)=>{const d=Math.random();return t.set(d,l),o.postMessage({id:null,method:"set",params:{delay:c,now:performance.now(),timerId:d}}),d}}}static loadWorkerTimers(){return()=>(Hi.workerTimers!==null||(Hi.workerTimers=Hi.load()),Hi.workerTimers)}static isCallNotification(t){return t.method!==void 0&&t.method==="call"}static isClearResponse(t){return t.error===null&&typeof t.id=="number"}}dE.Timeout=Hi;Hi.workerTimers=null;Hi.clearTimeout=e=>Hi.timers().clearTimeout(e);Hi.setTimeout=(e,t)=>Hi.timers().setTimeout(e,t);Hi.timers=Hi.loadWorkerTimers();var wr={};
vendor: 61,723 bytes, lines 422-439
422Object.defineProperty(wr,"__esModule",{value:!0});wr.OCSPCacheUpdateErrorEvent=wr.OCSPResponseRetrievedEvent=wr.OCSPCacheFetchErrorEvent=wr.OCSPVerificationFailedEvent=wr.OCSPCacheHitEvent=wr.OCSPCacheEntryNeedsRefreshEvent=wr.OCSPCacheEntryExpiredEvent=wr.OCSPWSUpgradeStartedEvent=wr.OCSPStapleReceivedEvent=wr.OCSPCacheUpdateCompleteEvent=wr.OCSPDiskCacheStoreEvent=wr.OCSPMemoryCacheStoreEvent=wr.OCSPCacheUpdateNeededEvent=wr.OCSPDiskCacheHitEvent=wr.OCSPCacheMissEvent=wr.OCSPMemoryCacheHitEvent=wr.OCSPEvent=void 0;const Oi=nh;class Ti extends Oi.PlatformEvent{constructor(t,r,n){super(t,r),this.privSignature=n}}wr.OCSPEvent=Ti;class uLe extends Ti{constructor(t){super("OCSPMemoryCacheHitEvent",Oi.EventType.Debug,t)}}wr.OCSPMemoryCacheHitEvent=uLe;class dLe extends Ti{constructor(t){super("OCSPCacheMissEvent",Oi.EventType.Debug,t)}}wr.OCSPCacheMissEvent=dLe;class fLe extends Ti{constructor(t){super("OCSPDiskCacheHitEvent",Oi.EventType.Debug,t)}}wr.OCSPDiskCacheHitEvent=fLe;class pLe extends Ti{constructor(t){super("OCSPCacheUpdateNeededEvent",Oi.EventType.Debug,t)}}wr.OCSPCacheUpdateNeededEvent=pLe;class hLe extends Ti{constructor(t){super("OCSPMemoryCacheStoreEvent",Oi.EventType.Debug,t)}}wr.OCSPMemoryCacheStoreEvent=hLe;class vLe extends Ti{constructor(t){super("OCSPDiskCacheStoreEvent",Oi.EventType.Debug,t)}}wr.OCSPDiskCacheStoreEvent=vLe;class gLe extends Ti{constructor(t){super("OCSPCacheUpdateCompleteEvent",Oi.EventType.Debug,t)}}wr.OCSPCacheUpdateCompleteEvent=gLe;class mLe extends Ti{constructor(){super("OCSPStapleReceivedEvent",Oi.EventType.Debug,"")}}wr.OCSPStapleReceivedEvent=mLe;class yLe extends Ti{constructor(t){super("OCSPWSUpgradeStartedEvent",Oi.EventType.Debug,t)}}wr.OCSPWSUpgradeStartedEvent=yLe;class SLe extends Ti{constructor(t,r){super("OCSPCacheEntryExpiredEvent",Oi.EventType.Debug,t),this.privExpireTime=r}}wr.OCSPCacheEntryExpiredEvent=SLe;class CLe extends Ti{constructor(t,r,n){super("OCSPCacheEntryNeedsRefreshEvent",Oi.EventType.Debug,t),this.privExpireTime=n,this.privStartTime=r}}wr.OCSPCacheEntryNeedsRefreshEvent=CLe;class bLe extends Ti{constructor(t,r,n){super("OCSPCacheHitEvent",Oi.EventType.Debug,t),this.privExpireTime=n,this.privExpireTimeString=new Date(n).toLocaleDateString(),this.privStartTime=r,this.privStartTimeString=new Date(r).toLocaleTimeString()}}wr.OCSPCacheHitEvent=bLe;class wLe extends Ti{constructor(t,r){super("OCSPVerificationFailedEvent",Oi.EventType.Debug,t),this.privError=r}}wr.OCSPVerificationFailedEvent=wLe;class _Le extends Ti{constructor(t,r){super("OCSPCacheFetchErrorEvent",Oi.EventType.Debug,t),this.privError=r}}wr.OCSPCacheFetchErrorEvent=_Le;class ELe extends Ti{constructor(t){super("OCSPResponseRetrievedEvent",Oi.EventType.Debug,t)}}wr.OCSPResponseRetrievedEvent=ELe;class RLe extends Ti{constructor(t,r){super("OCSPCacheUpdateErrorEvent",Oi.EventType.Debug,t),this.privError=r}}wr.OCSPCacheUpdateErrorEvent=RLe;var Uh={},oz;function PLe(){if(oz)return Uh;oz=1,Object.defineProperty(Uh,"__esModule",{value:!0}),Uh.BackgroundEvent=void 0;const e=Wt();class t extends e.PlatformEvent{constructor(n){super("BackgroundEvent",e.EventType.Error),this.privError=n}get error(){return this.privError}}return Uh.BackgroundEvent=t,Uh}var az;function Wt(){return az||(az=1,function(e){var t=Ht&&Ht.__createBinding||(Object.create?function(i,o,a,s){s===void 0&&(s=a),Object.defineProperty(i,s,{enumerable:!0,get:function(){return o[a]}})}:function(i,o,a,s){s===void 0&&(s=a),i[s]=o[a]}),r=Ht&&Ht.__exportStar||function(i,o){for(var a in i)a!=="default"&&!Object.prototype.hasOwnProperty.call(o,a)&&t(o,i,a)};Object.defineProperty(e,"__esModule",{value:!0}),e.TranslationStatus=void 0,r(xn,e),r(On,e),r(D3,e),r(iE,e),r(oE,e),r(fd,e),r(_i,e),r(aE,e),r(C0,e),r(Da,e),r(lre,e),r(cre,e),r(ure,e),r(dre,e),r(fre,e),r(pre,e),r(hre,e),r(vre,e),r(gre,e),r(mre,e),r(b0,e),r(nh,e),r(L3,e),r(w0,e),r(sE,e),r(lE,e),r(cE,e);var n=uE;Object.defineProperty(e,"TranslationStatus",{enumerable:!0,get:function(){return n.TranslationStatus}}),r(cLe(),e),r(yre,e),r(dE,e),r(wr,e),r(PLe(),e)}(N2)),N2}var pi={};Object.defineProperty(pi,"__esModule",{value:!0});pi.HeaderNames=void 0;class ps{}pi.HeaderNames=ps;ps.AuthKey="Ocp-Apim-Subscription-Key";ps.Authorization="Authorization";ps.SpIDAuthKey="Apim-Subscription-Id";ps.ConnectionId="X-ConnectionId";ps.ContentType="Content-Type";ps.CustomCommandsAppId="X-CommandsAppId";ps.Path="Path";ps.RequestId="X-RequestId";ps.RequestStreamId="X-StreamId";ps.RequestTimestamp="X-Timestamp";var oh={};Object.defineProperty(oh,"__esModule",{value:!0});oh.AuthInfo=void 0;class ILe{constructor(t,r){this.privHeaderName=t,this.privToken=r}get headerName(){return this.privHeaderName}get token(){return this.privToken}}oh.AuthInfo=ILe;Object.defineProperty(nE,"__esModule",{value:!0});nE.CognitiveSubscriptionKeyAuthentication=void 0;const xLe=Wt(),OLe=pi,TLe=oh;class ALe{constructor(t){if(!t)throw new xLe.ArgumentNullError("subscriptionKey");this.privAuthInfo=new TLe.AuthInfo(OLe.HeaderNames.AuthKey,t)}fetch(t){return Promise.resolve(this.privAuthInfo)}fetchOnExpiry(t){return Promise.resolve(this.privAuthInfo)}}nE.CognitiveSubscriptionKeyAuthentication=ALe;var fE={};Object.defineProperty(fE,"__esModule",{value:!0});fE.CognitiveTokenAuthentication=void 0;const sz=Wt(),lz=oh,cz=pi;class my{constructor(t,r){if(!t)throw new sz.ArgumentNullError("fetchCallback");if(!r)throw new sz.ArgumentNullError("fetchOnExpiryCallback");this.privFetchCallback=t,this.privFetchOnExpiryCallback=r}fetch(t){return this.privFetchCallback(t).then(r=>new lz.AuthInfo(cz.HeaderNames.Authorization,r===void 0?void 0:my.privTokenPrefix+r))}fetchOnExpiry(t){return this.privFetchOnExpiryCallback(t).then(r=>new lz.AuthInfo(cz.HeaderNames.Authorization,r===void 0?void 0:my.privTokenPrefix+r))}}fE.CognitiveTokenAuthentication=my;my.privTokenPrefix="Bearer ";var Sre={};Object.defineProperty(Sre,"__esModule",{value:!0});var Cre={};Object.defineProperty(Cre,"__esModule",{value:!0});var Wh={},j2={},pE={};const MLe={},$Le=Object.freeze(Object.defineProperty({__proto__:null,default:MLe},Symbol.toStringTag,{value:"Module"})),Ld=xw($Le);var j3={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.LogLevel=void 0;const t=Wt();Object.defineProperty(e,"LogLevel",{enumerable:!0,get:function(){return t.EventType}})})(j3);var Zt={};Object.defineProperty(Zt,"__esModule",{value:!0});Zt.Contracts=void 0;class rl{static throwIfNullOrUndefined(t,r){if(t==null)throw new Error("throwIfNullOrUndefined:"+r)}static throwIfNull(t,r){if(t===null)throw new Error("throwIfNull:"+r)}static throwIfNullOrWhitespace(t,r){if(rl.throwIfNullOrUndefined(t,r),(""+t).trim().length<1)throw new Error("throwIfNullOrWhitespace:"+r)}static throwIfNullOrTooLong(t,r,n){if(rl.throwIfNullOrUndefined(t,r),(""+t).length>n)throw new Error("throwIfNullOrTooLong:"+r+" (more than "+n.toString()+" characters)")}static throwIfNullOrTooShort(t,r,n){if(rl.throwIfNullOrUndefined(t,r),(""+t).length<n)throw new Error("throwIfNullOrTooShort:"+r+" (less than "+n.toString()+" characters)")}static throwIfDisposed(t){if(t)throw new Error("the object is already disposed")}static throwIfArrayEmptyOrWhitespace(t,r){if(rl.throwIfNullOrUndefined(t,r),t.length===0)throw new Error("throwIfArrayEmptyOrWhitespace:"+r);for(const n of t)rl.throwIfNullOrWhitespace(n,r)}static throwIfFileDoesNotExist(t,r){rl.throwIfNullOrWhitespace(t,r)}static throwIfNotUndefined(t,r){if(t!==void 0)throw new Error("throwIfNotUndefined:"+r)}static throwIfNumberOutOfRange(t,r,n,i){if(rl.throwIfNullOrUndefined(t,r),t<n||t>i)throw new Error("throwIfNumberOutOfRange:"+r+" (must be between "+n.toString()+" and "+i.toString()+")")}}Zt.Contracts=rl;var kLe=Ht&&Ht.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),NLe=Ht&&Ht.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),DLe=Ht&&Ht.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&kLe(t,e,r);return NLe(t,e),t};Object.defineProperty(pE,"__esModule",{value:!0});pE.ConsoleLoggingListener=void 0;const uz=DLe(Ld),qh=j3,LLe=Zt;class jLe{constructor(t=qh.LogLevel.None){this.privLogPath=void 0,this.privEnableConsoleOutput=!0,this.privLogLevelFilter=t}set logPath(t){LLe.Contracts.throwIfNullOrUndefined(uz.openSync,`
423File System access not available`),this.privLogPath=t}set enableConsoleOutput(t){this.privEnableConsoleOutput=t}onEvent(t){if(t.eventType>=this.privLogLevelFilter){const r=this.toString(t);if(this.logCallback&&this.logCallback(r),this.privLogPath&&uz.writeFileSync(this.privLogPath,r+`
424`,{flag:"a+"}),this.privEnableConsoleOutput)switch(t.eventType){case qh.LogLevel.Debug:break;case qh.LogLevel.Info:break;case qh.LogLevel.Warning:break;case qh.LogLevel.Error:break;default:break}}}toString(t){const r=[`${t.eventTime}`,`${t.name}`],n=t;for(const i in n)if(i&&t.hasOwnProperty(i)&&i!=="eventTime"&&i!=="eventType"&&i!=="eventId"&&i!=="name"&&i!=="constructor"){const o=n[i];let a="<NULL>";o!=null&&(typeof o=="number"||typeof o=="string"?a=o.toString():a=JSON.stringify(o)),r.push(`${i}: ${a}`)}return r.join(" | ")}}pE.ConsoleLoggingListener=jLe;var bre={};Object.defineProperty(bre,"__esModule",{value:!0});var F2={},Xc={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AudioStreamFormatImpl=e.AudioStreamFormat=e.AudioFormatTag=void 0;var t;(function(i){i[i.PCM=1]="PCM",i[i.MuLaw=2]="MuLaw",i[i.Siren=3]="Siren",i[i.MP3=4]="MP3",i[i.SILKSkype=5]="SILKSkype",i[i.OGG_OPUS=6]="OGG_OPUS",i[i.WEBM_OPUS=7]="WEBM_OPUS",i[i.ALaw=8]="ALaw",i[i.FLAC=9]="FLAC",i[i.OPUS=10]="OPUS",i[i.AMR_WB=11]="AMR_WB",i[i.G722=12]="G722"})(t=e.AudioFormatTag||(e.AudioFormatTag={}));class r{static getDefaultInputFormat(){return n.getDefaultInputFormat()}static getWaveFormat(o,a,s,l){return new n(o,a,s,l)}static getWaveFormatPCM(o,a,s){return new n(o,a,s)}}e.AudioStreamFormat=r;class n extends r{constructor(o=16e3,a=16,s=1,l=t.PCM){super();let c=!0;switch(l){case t.PCM:this.formatTag=1;break;case t.ALaw:this.formatTag=6;break;case t.MuLaw:this.formatTag=7;break;default:c=!1}if(this.bitsPerSample=a,this.samplesPerSec=o,this.channels=s,this.avgBytesPerSec=this.samplesPerSec*this.channels*(this.bitsPerSample/8),this.blockAlign=this.channels*Math.max(this.bitsPerSample,8),c){this.privHeader=new ArrayBuffer(44);const d=new DataView(this.privHeader);this.setString(d,0,"RIFF"),d.setUint32(4,0,!0),this.setString(d,8,"WAVEfmt "),d.setUint32(16,16,!0),d.setUint16(20,this.formatTag,!0),d.setUint16(22,this.channels,!0),d.setUint32(24,this.samplesPerSec,!0),d.setUint32(28,this.avgBytesPerSec,!0),d.setUint16(32,this.channels*(this.bitsPerSample/8),!0),d.setUint16(34,this.bitsPerSample,!0),this.setString(d,36,"data"),d.setUint32(40,0,!0)}}static getDefaultInputFormat(){return new n}static getAudioContext(o){const a=window.AudioContext||window.webkitAudioContext||!1;if(a)return o!==void 0&&navigator.mediaDevices.getSupportedConstraints().sampleRate?new a({sampleRate:o}):new a;throw new Error("Browser does not support Web Audio API (AudioContext is not available).")}close(){}get header(){return this.privHeader}setString(o,a,s){for(let l=0;l<s.length;l++)o.setUint8(a+l,s.charCodeAt(l))}}e.AudioStreamFormatImpl=n})(Xc);var dz;function FLe(){return dz||(dz=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.MicAudioSource=e.AudioWorkletSourceURLPropertyName=void 0;const t=Lt(),r=Wt(),n=Xc;e.AudioWorkletSourceURLPropertyName="MICROPHONE-WorkletSourceUrl";class i{constructor(a,s,l,c){this.privRecorder=a,this.deviceId=s,this.privStreams={},this.privOutputChunkSize=i.AUDIOFORMAT.avgBytesPerSec/10,this.privId=l||(0,r.createNoDashGuid)(),this.privEvents=new r.EventSource,this.privMediaStream=c||null,this.privIsClosing=!1}get format(){return Promise.resolve(i.AUDIOFORMAT)}turnOn(){if(this.privInitializeDeferral)return this.privInitializeDeferral.promise;this.privInitializeDeferral=new r.Deferred;try{this.createAudioContext()}catch(l){if(l instanceof Error){const c=l;this.privInitializeDeferral.reject(c.name+": "+c.message)}else this.privInitializeDeferral.reject(l);return this.privInitializeDeferral.promise}const a=window.navigator;let s=a.getUserMedia||a.webkitGetUserMedia||a.mozGetUserMedia||a.msGetUserMedia;if(a.mediaDevices&&(s=(l,c,d)=>{a.mediaDevices.getUserMedia(l).then(c).catch(d)}),s){const l=()=>{this.onEvent(new r.AudioSourceInitializingEvent(this.privId)),this.privMediaStream&&this.privMediaStream.active?(this.onEvent(new r.AudioSourceReadyEvent(this.privId)),this.privInitializeDeferral.resolve()):s({audio:this.deviceId?{deviceId:this.deviceId}:!0,video:!1},c=>{this.privMediaStream=c,this.onEvent(new r.AudioSourceReadyEvent(this.privId)),this.privInitializeDeferral.resolve()},c=>{const d=`Error occurred during microphone initialization: ${c}`;this.privInitializeDeferral.reject(d),this.onEvent(new r.AudioSourceErrorEvent(this.privId,d))})};this.privContext.state==="suspended"?this.privContext.resume().then(l).catch(c=>{this.privInitializeDeferral.reject(`Failed to initialize audio context: ${c}`)}):l()}else{const l="Browser does not support getUserMedia.";this.privInitializeDeferral.reject(l),this.onEvent(new r.AudioSourceErrorEvent(l,""))}return this.privInitializeDeferral.promise}id(){return this.privId}attach(a){return this.onEvent(new r.AudioStreamNodeAttachingEvent(this.privId,a)),this.listen(a).then(s=>(this.onEvent(new r.AudioStreamNodeAttachedEvent(this.privId,a)),{detach:async()=>(s.readEnded(),delete this.privStreams[a],this.onEvent(new r.AudioStreamNodeDetachedEvent(this.privId,a)),this.turnOff()),id:()=>a,read:()=>s.read()}))}detach(a){a&&this.privStreams[a]&&(this.privStreams[a].close(),delete this.privStreams[a],this.onEvent(new r.AudioStreamNodeDetachedEvent(this.privId,a)))}async turnOff(){for(const a in this.privStreams)if(a){const s=this.privStreams[a];s&&s.close()}this.onEvent(new r.AudioSourceOffEvent(this.privId)),this.privInitializeDeferral&&(await this.privInitializeDeferral,this.privInitializeDeferral=null),await this.destroyAudioContext()}get events(){return this.privEvents}get deviceInfo(){return this.getMicrophoneLabel().then(a=>({bitspersample:i.AUDIOFORMAT.bitsPerSample,channelcount:i.AUDIOFORMAT.channels,connectivity:t.connectivity.Unknown,manufacturer:"Speech SDK",model:a,samplerate:i.AUDIOFORMAT.samplesPerSec,type:t.type.Microphones}))}setProperty(a,s){if(a===e.AudioWorkletSourceURLPropertyName)this.privRecorder.setWorkletUrl(s);else throw new Error("Property '"+a+"' is not supported on Microphone.")}getMicrophoneLabel(){const a="microphone";if(this.privMicrophoneLabel!==void 0)return Promise.resolve(this.privMicrophoneLabel);if(this.privMediaStream===void 0||!this.privMediaStream.active)return Promise.resolve(a);this.privMicrophoneLabel=a;const s=this.privMediaStream.getTracks()[0].getSettings().deviceId;if(s===void 0)return Promise.resolve(this.privMicrophoneLabel);const l=new r.Deferred;return navigator.mediaDevices.enumerateDevices().then(c=>{for(const d of c)if(d.deviceId===s){this.privMicrophoneLabel=d.label;break}l.resolve(this.privMicrophoneLabel)},()=>l.resolve(this.privMicrophoneLabel)),l.promise}async listen(a){await this.turnOn();const s=new r.ChunkedArrayBufferStream(this.privOutputChunkSize,a);this.privStreams[a]=s;try{this.privRecorder.record(this.privContext,this.privMediaStream,s)}catch(c){throw this.onEvent(new r.AudioStreamNodeErrorEvent(this.privId,a,c)),c}return s}onEvent(a){this.privEvents.onEvent(a),r.Events.instance.onEvent(a)}createAudioContext(){this.privContext||(this.privContext=n.AudioStreamFormatImpl.getAudioContext(i.AUDIOFORMAT.samplesPerSec))}async destroyAudioContext(){if(!this.privContext)return;this.privRecorder.releaseMediaResources(this.privContext);let a=!1;"close"in this.privContext&&(a=!0),a?this.privIsClosing||(this.privIsClosing=!0,await this.privContext.close(),this.privContext=null,this.privIsClosing=!1):this.privContext!==null&&this.privContext.state==="running"&&await this.privContext.suspend()}}e.MicAudioSource=i,i.AUDIOFORMAT=n.AudioStreamFormat.getDefaultInputFormat()}(F2)),F2}var Gh={},fz;function zLe(){if(fz)return Gh;fz=1,Object.defineProperty(Gh,"__esModule",{value:!0}),Gh.FileAudioSource=void 0;const e=Lt(),t=Wt(),r=Xc;let n=class{constructor(o,a,s){this.privStreams={},this.privHeaderEnd=44,this.privId=s||(0,t.createNoDashGuid)(),this.privEvents=new t.EventSource,this.privSource=o,typeof window<"u"&&typeof Blob<"u"&&this.privSource instanceof Blob?this.privFilename=o.name:this.privFilename=a||"unknown.wav",this.privAudioFormatPromise=this.readHeader()}get format(){return this.privAudioFormatPromise}turnOn(){if(this.privFilename.lastIndexOf(".wav")!==this.privFilename.length-4){const o=this.privFilename+" is not supported. Only WAVE files are allowed at the moment.";return this.onEvent(new t.AudioSourceErrorEvent(o,"")),Promise.reject(o)}this.onEvent(new t.AudioSourceInitializingEvent(this.privId)),this.onEvent(new t.AudioSourceReadyEvent(this.privId))}id(){return this.privId}async attach(o){this.onEvent(new t.AudioStreamNodeAttachingEvent(this.privId,o));const a=await this.upload(o);return this.onEvent(new t.AudioStreamNodeAttachedEvent(this.privId,o)),Promise.resolve({detach:async()=>{a.readEnded(),delete this.privStreams[o],this.onEvent(new t.AudioStreamNodeDetachedEvent(this.privId,o)),await this.turnOff()},id:()=>o,read:()=>a.read()})}detach(o){o&&this.privStreams[o]&&(this.privStreams[o].close(),delete this.privStreams[o],this.onEvent(new t.AudioStreamNodeDetachedEvent(this.privId,o)))}turnOff(){for(const o in this.privStreams)if(o){const a=this.privStreams[o];a&&!a.isClosed&&a.close()}return this.onEvent(new t.AudioSourceOffEvent(this.privId)),Promise.resolve()}get events(){return this.privEvents}get deviceInfo(){return this.privAudioFormatPromise.then(o=>Promise.resolve({bitspersample:o.bitsPerSample,channelcount:o.channels,connectivity:e.connectivity.Unknown,manufacturer:"Speech SDK",model:"File",samplerate:o.samplesPerSec,type:e.type.File}))}readHeader(){const a=this.privSource.slice(0,4296),s=new t.Deferred,l=c=>{const d=new DataView(c),u=m=>String.fromCharCode(d.getUint8(m),d.getUint8(m+1),d.getUint8(m+2),d.getUint8(m+3));if(u(0)!=="RIFF"){s.reject("Invalid WAV header in file, RIFF was not found");return}if(u(8)!=="WAVE"||u(12)!=="fmt "){s.reject("Invalid WAV header in file, WAVEfmt was not found");return}const f=d.getInt32(16,!0),h=d.getUint16(22,!0),v=d.getUint32(24,!0),y=d.getUint16(34,!0);let g=36+Math.max(f-16,0);for(;u(g)!=="data";g+=2)if(g>4296-8){s.reject("Invalid WAV header in file, data block was not found");return}this.privHeaderEnd=g+8,s.resolve(r.AudioStreamFormat.getWaveFormatPCM(v,y,h))};if(typeof window<"u"&&typeof Blob<"u"&&a instanceof Blob){const c=new FileReader;c.onload=d=>{const u=d.target.result;l(u)},c.readAsArrayBuffer(a)}else{const c=a;l(c.buffer.slice(c.byteOffset,c.byteOffset+c.byteLength))}return s.promise}async upload(o){const a=s=>{const l=`Error occurred while processing '${this.privFilename}'. ${s}`;throw this.onEvent(new t.AudioStreamNodeErrorEvent(this.privId,o,l)),new Error(l)};try{await this.turnOn();const s=await this.privAudioFormatPromise,l=new t.ChunkedArrayBufferStream(s.avgBytesPerSec/10,o);this.privStreams[o]=l;const c=this.privSource.slice(this.privHeaderEnd),d=u=>{l.isClosed||(l.writeStreamChunk({buffer:u,isEnd:!1,timeReceived:Date.now()}),l.close())};if(typeof window<"u"&&typeof Blob<"u"&&c instanceof Blob){const u=new FileReader;u.onerror=f=>a(f.toString()),u.onload=f=>{const h=f.target.result;d(h)},u.readAsArrayBuffer(c)}else{const u=c;d(u.buffer.slice(u.byteOffset,u.byteOffset+u.byteLength))}return l}catch(s){a(s)}}onEvent(o){this.privEvents.onEvent(o),t.Events.instance.onEvent(o)}};return Gh.FileAudioSource=n,Gh}var hE={};Object.defineProperty(hE,"__esModule",{value:!0});hE.PcmRecorder=void 0;const BLe=Wt();class HLe{constructor(t){this.privStopInputOnRelease=t}record(t,r,n){const o=new BLe.RiffPcmEncoder(t.sampleRate,16e3),a=t.createMediaStreamSource(r),s=()=>{const c=(()=>{let d=0;try{return t.createScriptProcessor(d,1,1)}catch{d=2048;let f=t.sampleRate;for(;d<16384&&f>=32e3;)d<<=1,f>>=1;return t.createScriptProcessor(d,1,1)}})();c.onaudioprocess=d=>{const u=d.inputBuffer.getChannelData(0);if(n&&!n.isClosed){const f=o.encode(u);f&&n.writeStreamChunk({buffer:f,isEnd:!1,timeReceived:Date.now()})}},a.connect(c),c.connect(t.destination),this.privMediaResources={scriptProcessorNode:c,source:a,stream:r}},l=!!this.privSpeechProcessorScript&&this.privSpeechProcessorScript.toLowerCase()==="ignore";if(t.audioWorklet&&!l){if(!this.privSpeechProcessorScript){const c=`class SP extends AudioWorkletProcessor {
425                    constructor(options) {
426                      super(options);
427                    }
428                    process(inputs, outputs) {
429                      const input = inputs[0];
430                      const output = [];
431                      for (let channel = 0; channel < input.length; channel += 1) {
432                        output[channel] = input[channel];
433                      }
434                      this.port.postMessage(output[0]);
435                      return true;
436                    }
437                  }
438                  registerProcessor('speech-processor', SP);`,d=new Blob([c],{type:"application/javascript; charset=utf-8"});this.privSpeechProcessorScript=URL.createObjectURL(d)}t.audioWorklet.addModule(this.privSpeechProcessorScript).then(()=>{const c=new AudioWorkletNode(t,"speech-processor");c.port.onmessage=d=>{const u=d.data;if(n&&!n.isClosed){const f=o.encode(u);f&&n.writeStreamChunk({buffer:f,isEnd:!1,timeReceived:Date.now()})}},a.connect(c),c.connect(t.destination),this.privMediaResources={scriptProcessorNode:c,source:a,stream:r}}).catch(()=>{s()})}else try{s()}catch(c){throw new Error(`Unable to start audio worklet node for PCMRecorder: ${c}`)}}releaseMediaResources(t){this.privMediaResources&&(this.privMediaResources.scriptProcessorNode&&(this.privMediaResources.scriptProcessorNode.disconnect(t.destination),this.privMediaResources.scriptProcessorNode=null),this.privMediaResources.source&&(this.privMediaResources.source.disconnect(),this.privStopInputOnRelease&&this.privMediaResources.stream.getTracks().forEach(r=>r.stop()),this.privMediaResources.source=null))}setWorkletUrl(t){this.privSpeechProcessorScript=t}}hE.PcmRecorder=HLe;var vE={},_0={},VLe=Ht&&Ht.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),ULe=Ht&&Ht.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),wre=Ht&&Ht.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&VLe(t,e,r);return ULe(t,e),t},F3=Ht&&Ht.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_0,"__esModule",{value:!0});_0.WebsocketMessageAdapter=void 0;const WLe=wre(Ld),qLe=wre(Ld),GLe=F3(Ld),KLe=F3(Ld),YLe=F3(Ld),XLe=pi,tr=Wt();class yy{constructor(t,r,n,i,o,a){if(!t)throw new tr.ArgumentNullError("uri");if(!n)throw new tr.ArgumentNullError("messageFormatter");this.proxyInfo=i,this.privConnectionEvents=new tr.EventSource,this.privConnectionId=r,this.privMessageFormatter=n,this.privConnectionState=tr.ConnectionState.None,this.privUri=t,this.privHeaders=o,this.privEnableCompression=a,this.privHeaders[XLe.HeaderNames.ConnectionId]=this.privConnectionId,this.privHeaders.connectionId=this.privConnectionId,this.privLastErrorReceived=""}get state(){return this.privConnectionState}open(){if(this.privConnectionState===tr.ConnectionState.Disconnected)return Promise.reject(`Cannot open a connection that is in ${this.privConnectionState} state`);if(this.privConnectionEstablishDeferral)return this.privConnectionEstablishDeferral.promise;this.privConnectionEstablishDeferral=new tr.Deferred,this.privCertificateValidatedDeferral=new tr.Deferred,this.privConnectionState=tr.ConnectionState.Connecting;try{if(typeof WebSocket<"u"&&!yy.forceNpmWebSocket)this.privCertificateValidatedDeferral.resolve(),this.privWebsocketClient=new WebSocket(this.privUri);else{let r=new URL(this.privUri).protocol;(r==null?void 0:r.toLocaleLowerCase())==="wss:"?r="https:":(r==null?void 0:r.toLocaleLowerCase())==="ws:"&&(r="http:");const n={headers:this.privHeaders,perMessageDeflate:this.privEnableCompression,followRedirects:r.toLocaleLowerCase()==="https:"};this.privCertificateValidatedDeferral.resolve(),n.agent=this.getAgent(),n.agent.protocol=r,this.privWebsocketClient=new YLe.default(this.privUri,n),this.privWebsocketClient.on("redirect",i=>{const o=new tr.ConnectionRedirectEvent(this.privConnectionId,i,this.privUri,`Getting redirect URL from endpoint ${this.privUri} with redirect URL '${i}'`);tr.Events.instance.onEvent(o)})}this.privWebsocketClient.binaryType="arraybuffer",this.privReceivingMessageQueue=new tr.Queue,this.privDisconnectDeferral=new tr.Deferred,this.privSendMessageQueue=new tr.Queue,this.processSendQueue().catch(t=>{tr.Events.instance.onEvent(new tr.BackgroundEvent(t))})}catch(t){return this.privConnectionEstablishDeferral.resolve(new tr.ConnectionOpenResponse(500,t)),this.privConnectionEstablishDeferral.promise}return this.onEvent(new tr.ConnectionStartEvent(this.privConnectionId,this.privUri)),this.privWebsocketClient.onopen=()=>{this.privCertificateValidatedDeferral.promise.then(()=>{this.privConnectionState=tr.ConnectionState.Connected,this.onEvent(new tr.ConnectionEstablishedEvent(this.privConnectionId)),this.privConnectionEstablishDeferral.resolve(new tr.ConnectionOpenResponse(200,""))},t=>{this.privConnectionEstablishDeferral.reject(t)})},this.privWebsocketClient.onerror=t=>{this.onEvent(new tr.ConnectionErrorEvent(this.privConnectionId,t.message,t.type)),this.privLastErrorReceived=t.message},this.privWebsocketClient.onclose=t=>{this.privConnectionState===tr.ConnectionState.Connecting?(this.privConnectionState=tr.ConnectionState.Disconnected,this.privConnectionEstablishDeferral.resolve(new tr.ConnectionOpenResponse(t.code,t.reason+" "+this.privLastErrorReceived))):(this.privConnectionState=tr.ConnectionState.Disconnected,this.privWebsocketClient=null,this.onEvent(new tr.ConnectionClosedEvent(this.privConnectionId,t.code,t.reason))),this.onClose(t.code,t.reason).catch(r=>{tr.Events.instance.onEvent(new tr.BackgroundEvent(r))})},this.privWebsocketClient.onmessage=t=>{const r=new Date().toISOString();if(this.privConnectionState===tr.ConnectionState.Connected){const n=new tr.Deferred;if(this.privReceivingMessageQueue.enqueueFromPromise(n.promise),t.data instanceof ArrayBuffer){const i=new tr.RawWebsocketMessage(tr.MessageType.Binary,t.data);this.privMessageFormatter.toConnectionMessage(i).then(o=>{this.onEvent(new tr.ConnectionMessageReceivedEvent(this.privConnectionId,r,o)),n.resolve(o)},o=>{n.reject(`Invalid binary message format. Error: ${o}`)})}else{const i=new tr.RawWebsocketMessage(tr.MessageType.Text,t.data);this.privMessageFormatter.toConnectionMessage(i).then(o=>{this.onEvent(new tr.ConnectionMessageReceivedEvent(this.privConnectionId,r,o)),n.resolve(o)},o=>{n.reject(`Invalid text message format. Error: ${o}`)})}}},this.privConnectionEstablishDeferral.promise}send(t){if(this.privConnectionState!==tr.ConnectionState.Connected)return Promise.reject(`Cannot send on connection that is in ${tr.ConnectionState[this.privConnectionState]} state`);const r=new tr.Deferred,n=new tr.Deferred;return this.privSendMessageQueue.enqueueFromPromise(n.promise),this.privMessageFormatter.fromConnectionMessage(t).then(i=>{n.resolve({Message:t,RawWebsocketMessage:i,sendStatusDeferral:r})},i=>{n.reject(`Error formatting the message. ${i}`)}),r.promise}read(){return this.privConnectionState!==tr.ConnectionState.Connected?Promise.reject(`Cannot read on connection that is in ${this.privConnectionState} state`):this.privReceivingMessageQueue.dequeue()}close(t){if(this.privWebsocketClient)this.privConnectionState!==tr.ConnectionState.Disconnected&&this.privWebsocketClient.close(1e3,t||"Normal closure by client");else return Promise.resolve();return this.privDisconnectDeferral.promise}get events(){return this.privConnectionEvents}sendRawMessage(t){try{if(!t)return Promise.resolve();if(this.onEvent(new tr.ConnectionMessageSentEvent(this.privConnectionId,new Date().toISOString(),t.Message)),this.isWebsocketOpen)this.privWebsocketClient.send(t.RawWebsocketMessage.payload);else return Promise.reject("websocket send error: Websocket not ready "+this.privConnectionId+" "+t.Message.id+" "+new Error().stack);return Promise.resolve()}catch(r){return Promise.reject(`websocket send error: ${r}`)}}async onClose(t,r){const n=`Connection closed. ${t}: ${r}`;this.privConnectionState=tr.ConnectionState.Disconnected,this.privDisconnectDeferral.resolve(),await this.privReceivingMessageQueue.drainAndDispose(()=>{},n),await this.privSendMessageQueue.drainAndDispose(i=>{i.sendStatusDeferral.reject(n)},n)}async processSendQueue(){for(;;){const r=await this.privSendMessageQueue.dequeue();if(!r)return;try{await this.sendRawMessage(r),r.sendStatusDeferral.resolve()}catch(n){r.sendStatusDeferral.reject(n)}}}onEvent(t){this.privConnectionEvents.onEvent(t),tr.Events.instance.onEvent(t)}getAgent(){const t=new GLe.default.Agent(this.createConnection);return this.proxyInfo!==void 0&&this.proxyInfo.HostName!==void 0&&this.proxyInfo.Port>0&&(t.proxyInfo=this.proxyInfo),t}static GetProxyAgent(t){const r={host:t.HostName,port:t.Port};return t.UserName?r.headers={"Proxy-Authentication":"Basic "+Buffer.from(`${t.UserName}:${t.Password===void 0?"":t.Password}`).toString("base64")}:r.headers={},r.headers.requestOCSP="true",new KLe.default(r)}createConnection(t,r){let n;if(r={...r,requestOCSP:!0,servername:r.host},this.proxyInfo){const o=yy.GetProxyAgent(this.proxyInfo);n=new Promise((a,s)=>{o.callback(t,r,(l,c)=>{l?s(l):a(c)})})}else r.secureEndpoint?n=Promise.resolve(qLe.connect(r)):n=Promise.resolve(WLe.connect(r));return n}get isWebsocketOpen(){return this.privWebsocketClient&&this.privWebsocketClient.readyState===this.privWebsocketClient.OPEN}}_0.WebsocketMessageAdapter=yy;yy.forceNpmWebSocket=!1;Object.defineProperty(vE,"__esModule",{value:!0});vE.WebsocketConnection=void 0;const z2=Wt(),QLe=_0;class JLe{constructor(t,r,n,i,o,a=!1,s){if(this.privIsDisposed=!1,!t)throw new z2.ArgumentNullError("uri");if(!i)throw new z2.ArgumentNullError("messageFormatter");this.privMessageFormatter=i;let l="",c=0;if(r){for(const d in r)if(d){l+=c===0&&t.indexOf("?")===-1?"?":"&";const u=encodeURIComponent(d);l+=u;let f=r[d];f&&(f=encodeURIComponent(f),l+=`=${f}`),c++}}if(n){for(const d in n)if(d){l+=c===0&&t.indexOf("?")===-1?"?":"&";const u=encodeURIComponent(n[d]);l+=`${d}=${u}`,c++}}this.privUri=t+l,this.privId=s||(0,z2.createNoDashGuid)(),this.privConnectionMessageAdapter=new QLe.WebsocketMessageAdapter(this.privUri,this.id,this.privMessageFormatter,o,n,a)}async dispose(){this.privIsDisposed=!0,this.privConnectionMessageAdapter&&await this.privConnectionMessageAdapter.close()}isDisposed(){return this.privIsDisposed}get id(){return this.privId}get uri(){return this.privUri}state(){return this.privConnectionMessageAdapter.state}open(){return this.privConnectionMessageAdapter.open()}send(t){return this.privConnectionMessageAdapter.send(t)}read(){return this.privConnectionMessageAdapter.read()}get events(){return this.privConnectionMessageAdapter.events}}vE.WebsocketConnection=JLe;var gE={};Object.defineProperty(gE,"__esModule",{value:!0});gE.ReplayableAudioNode=void 0;class ZLe{constructor(t,r){this.privBuffers=[],this.privReplayOffset=0,this.privLastShrinkOffset=0,this.privBufferStartOffset=0,this.privBufferSerial=0,this.privBufferedBytes=0,this.privReplay=!1,this.privLastChunkAcquiredTime=0,this.privAudioNode=t,this.privBytesPerSecond=r}id(){return this.privAudioNode.id()}read(){if(this.privReplay&&this.privBuffers.length!==0){const t=this.privReplayOffset-this.privBufferStartOffset;let r=Math.round(t*this.privBytesPerSecond*1e-7);r%2!==0&&r++;let n=0;for(;n<this.privBuffers.length&&r>=this.privBuffers[n].chunk.buffer.byteLength;)r-=this.privBuffers[n++].chunk.buffer.byteLength;if(n<this.privBuffers.length){const i=this.privBuffers[n].chunk.buffer.slice(r);return this.privReplayOffset+=i.byteLength/this.privBytesPerSecond*1e7,n===this.privBuffers.length-1&&(this.privReplay=!1),Promise.resolve({buffer:i,isEnd:!1,timeReceived:this.privBuffers[n].chunk.timeReceived})}}return this.privAudioNode.read().then(t=>(t&&t.buffer&&this.privBuffers&&(this.privBuffers.push(new e8e(t,this.privBufferSerial++,this.privBufferedBytes)),this.privBufferedBytes+=t.buffer.byteLength),t))}detach(){return this.privBuffers=void 0,this.privAudioNode.detach()}replay(){this.privBuffers&&this.privBuffers.length!==0&&(this.privReplay=!0,this.privReplayOffset=this.privLastShrinkOffset)}shrinkBuffers(t){if(this.privBuffers===void 0||this.privBuffers.length===0)return;this.privLastShrinkOffset=t;const r=t-this.privBufferStartOffset;let n=Math.round(r*this.privBytesPerSecond*1e-7),i=0;for(;i<this.privBuffers.length&&n>=this.privBuffers[i].chunk.buffer.byteLength;)n-=this.privBuffers[i++].chunk.buffer.byteLength;this.privBufferStartOffset=Math.round(t-n/this.privBytesPerSecond*1e7),this.privBuffers=this.privBuffers.slice(i)}findTimeAtOffset(t){if(t<this.privBufferStartOffset||this.privBuffers===void 0)return 0;for(const r of this.privBuffers){const n=r.byteOffset/this.privBytesPerSecond*1e7,i=n+r.chunk.buffer.byteLength/this.privBytesPerSecond*1e7;if(t>=n&&t<=i)return r.chunk.timeReceived}return 0}}gE.ReplayableAudioNode=ZLe;class e8e{constructor(t,r,n){this.chunk=t,this.serial=r,this.byteOffset=n}}var Kh={},B2={},Xs={},E0={},t8e=Ht&&Ht.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),r8e=Ht&&Ht.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n8e=Ht&&Ht.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&t8e(t,e,r);return r8e(t,e),t};Object.defineProperty(E0,"__esModule",{value:!0});E0.AudioFileWriter=void 0;const Yh=n8e(Ld),H2=Zt;class i8e{constructor(t){H2.Contracts.throwIfNullOrUndefined(Yh.openSync,`
439File System access not available, please use Push or PullAudioOutputStream`),this.privFd=Yh.openSync(t,"w")}set format(t){H2.Contracts.throwIfNotUndefined(this.privAudioFormat,"format is already set"),this.privAudioFormat=t;let r=0;this.privAudioFormat.hasHeader&&(r=this.privAudioFormat.header.byteLength),this.privFd!==void 0&&(this.privWriteStream=Yh.createWriteStream("",{fd:this.privFd,start:r,autoClose:!1}))}write(t){H2.Contracts.throwIfNullOrUndefined(this.privAudioFormat,"must set format before writing."),this.privWriteStream!==void 0&&this.privWriteStream.write(new Uint8Array(t.slice(0)))}close(){this.privFd!==void 0&&(this.privWriteStream.on("finish",()=>{this.privAudioFormat.hasHeader&&(this.privAudioFormat.updateHeader(this.privWriteStream.bytesWritten),Yh.writeSync(this.privFd,new Int8Array(this.privAudioFormat.header),0,this.privAudioFormat.header.byteLength,0)),Yh.closeSync(this.privFd),this.privFd=void 0}),this.privWriteStream.end())}id(){return this.privId}}E0.AudioFileWriter=i8e;var Bo={},pz;function _re(){if(pz)return Bo;pz=1,Object.defineProperty(Bo,"__esModule",{value:!0}),Bo.PullAudioInputStreamImpl=Bo.PullAudioInputStream=Bo.PushAudioInputStreamImpl=Bo.PushAudioInputStream=Bo.AudioInputStream=void 0;const e=Lt(),t=Wt(),r=Da,n=Ct(),i=Xc;let o=class{constructor(){}static createPushStream(u){return a.create(u)}static createPullStream(u,f){return l.create(u,f)}};Bo.AudioInputStream=o;class a extends o{static create(u){return new s(u)}}Bo.PushAudioInputStream=a;class s extends a{constructor(u){super(),u===void 0?this.privFormat=i.AudioStreamFormatImpl.getDefaultInputFormat():this.privFormat=u,this.privEvents=new t.EventSource,this.privId=(0,r.createNoDashGuid)(),this.privStream=new t.ChunkedArrayBufferStream(this.privFormat.avgBytesPerSec/10)}get format(){return Promise.resolve(this.privFormat)}write(u){this.privStream.writeStreamChunk({buffer:u,isEnd:!1,timeReceived:Date.now()})}close(){this.privStream.close()}id(){return this.privId}turnOn(){this.onEvent(new t.AudioSourceInitializingEvent(this.privId)),this.onEvent(new t.AudioSourceReadyEvent(this.privId))}async attach(u){this.onEvent(new t.AudioStreamNodeAttachingEvent(this.privId,u)),await this.turnOn();const f=this.privStream;return this.onEvent(new t.AudioStreamNodeAttachedEvent(this.privId,u)),{detach:async()=>(this.onEvent(new t.AudioStreamNodeDetachedEvent(this.privId,u)),this.turnOff()),id:()=>u,read:()=>f.read()}}detach(u){this.onEvent(new t.AudioStreamNodeDetachedEvent(this.privId,u))}turnOff(){}get events(){return this.privEvents}get deviceInfo(){return Promise.resolve({bitspersample:this.privFormat.bitsPerSample,channelcount:this.privFormat.channels,connectivity:e.connectivity.Unknown,manufacturer:"Speech SDK",model:"PushStream",samplerate:this.privFormat.samplesPerSec,type:e.type.Stream})}onEvent(u){this.privEvents.onEvent(u),t.Events.instance.onEvent(u)}toBuffer(u){const f=Buffer.alloc(u.byteLength),h=new Uint8Array(u);for(let v=0;v<f.length;++v)f[v]=h[v];return f}}Bo.PushAudioInputStreamImpl=s;class l extends o{constructor(){super()}static create(u,f){return new c(u,f)}}Bo.PullAudioInputStream=l;class c extends l{constructor(u,f){super(),f===void 0?this.privFormat=n.AudioStreamFormat.getDefaultInputFormat():this.privFormat=f,this.privEvents=new t.EventSource,this.privId=(0,r.createNoDashGuid)(),this.privCallback=u,this.privIsClosed=!1,this.privBufferSize=this.privFormat.avgBytesPerSec/10}get format(){return Promise.resolve(this.privFormat)}close(){this.privIsClosed=!0,this.privCallback.close()}id(){return this.privId}turnOn(){this.onEvent(new t.AudioSourceInitializingEvent(this.privId)),this.onEvent(new t.AudioSourceReadyEvent(this.privId))}async attach(u){return this.onEvent(new t.AudioStreamNodeAttachingEvent(this.privId,u)),await this.turnOn(),this.onEvent(new t.AudioStreamNodeAttachedEvent(this.privId,u)),{detach:()=>(this.privCallback.close(),this.onEvent(new t.AudioStreamNodeDetachedEvent(this.privId,u)),this.turnOff()),id:()=>u,read:()=>{let f=0,h;for(;f<this.privBufferSize;){const v=new ArrayBuffer(this.privBufferSize-f),y=this.privCallback.read(v);if(h===void 0?h=v:new Int8Array(h).set(new Int8Array(v),f),y===0)break;f+=y}return Promise.resolve({buffer:h.slice(0,f),isEnd:this.privIsClosed||f===0,timeReceived:Date.now()})}}}detach(u){this.onEvent(new t.AudioStreamNodeDetachedEvent(this.privId,u))}turnOff(){}get events(){return this.privEvents}get deviceInfo(){return Promise.resolve({bitspersample:this.privFormat.bitsPerSample,channelcount:this.privFormat.channels,connectivity:e.connectivity.Unknown,manufacturer:"Speech SDK",model:"PullStream",samplerate:this.privFormat.samplesPerSec,type:e.type.Stream})}onEvent(u){this.privEvents.onEvent(u),t.Events.instance.onEvent(u)}}return Bo.PullAudioInputStreamImpl=c,Bo}var Ci={},Qc={},z3={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SpeechSynthesisOutputFormat=void 0,function(t){t[t.Raw8Khz8BitMonoMULaw=0]="Raw8Khz8BitMonoMULaw",t[t.Riff16Khz16KbpsMonoSiren=1]="Riff16Khz16KbpsMonoSiren",t[t.Audio16Khz16KbpsMonoSiren=2]="Audio16Khz16KbpsMonoSiren",t[t.Audio16Khz32KBitRateMonoMp3=3]="Audio16Khz32KBitRateMonoMp3",t[t.Audio16Khz128KBitRateMonoMp3=4]="Audio16Khz128KBitRateMonoMp3",t[t.Audio16Khz64KBitRateMonoMp3=5]="Audio16Khz64KBitRateMonoMp3",t[t.Audio24Khz48KBitRateMonoMp3=6]="Audio24Khz48KBitRateMonoMp3",t[t.Audio24Khz96KBitRateMonoMp3=7]="Audio24Khz96KBitRateMonoMp3",t[t.Audio24Khz160KBitRateMonoMp3=8]="Audio24Khz160KBitRateMonoMp3",t[t.Raw16Khz16BitMonoTrueSilk=9]="Raw16Khz16BitMonoTrueSilk",t[t.Riff16Khz16BitMonoPcm=10]="Riff16Khz16BitMonoPcm",t[t.Riff8Khz16BitMonoPcm=11]="Riff8Khz16BitMonoPcm",t[t.Riff24Khz16BitMonoPcm=12]="Riff24Khz16BitMonoPcm",t[t.Riff8Khz8BitMonoMULaw=13]="Riff8Khz8BitMonoMULaw",t[t.Raw16Khz16BitMonoPcm=14]="Raw16Khz16BitMonoPcm",t[t.Raw24Khz16BitMonoPcm=15]="Raw24Khz16BitMonoPcm",t[t.Raw8Khz16BitMonoPcm=16]="Raw8Khz16BitMonoPcm",t[t.Ogg16Khz16BitMonoOpus=17]="Ogg16Khz16BitMonoOpus",t[t.Ogg24Khz16BitMonoOpus=18]="Ogg24Khz16BitMonoOpus",t[t.Raw48Khz16BitMonoPcm=19]="Raw48Khz16BitMonoPcm",t[t.Riff48Khz16BitMonoPcm=20]="Riff48Khz16BitMonoPcm",t[t.Audio48Khz96KBitRateMonoMp3=21]="Audio48Khz96KBitRateMonoMp3",t[t.Audio48Khz192KBitRateMonoMp3=22]="Audio48Khz192KBitRateMonoMp3",t[t.Ogg48Khz16BitMonoOpus=23]="Ogg48Khz16BitMonoOpus",t[t.Webm16Khz16BitMonoOpus=24]="Webm16Khz16BitMonoOpus",t[t.Webm24Khz16BitMonoOpus=25]="Webm24Khz16BitMonoOpus",t[t.Raw24Khz16BitMonoTrueSilk=26]="Raw24Khz16BitMonoTrueSilk",t[t.Raw8Khz8BitMonoALaw=27]="Raw8Khz8BitMonoALaw",t[t.Riff8Khz8BitMonoALaw=28]="Riff8Khz8BitMonoALaw",t[t.Webm24Khz16Bit24KbpsMonoOpus=29]="Webm24Khz16Bit24KbpsMonoOpus",t[t.Audio16Khz16Bit32KbpsMonoOpus=30]="Audio16Khz16Bit32KbpsMonoOpus",t[t.Audio24Khz16Bit48KbpsMonoOpus=31]="Audio24Khz16Bit48KbpsMonoOpus",t[t.Audio24Khz16Bit24KbpsMonoOpus=32]="Audio24Khz16Bit24KbpsMonoOpus",t[t.Raw22050Hz16BitMonoPcm=33]="Raw22050Hz16BitMonoPcm",t[t.Riff22050Hz16BitMonoPcm=34]="Riff22050Hz16BitMonoPcm",t[t.Raw44100Hz16BitMonoPcm=35]="Raw44100Hz16BitMonoPcm",t[t.Riff44100Hz16BitMonoPcm=36]="Riff44100Hz16BitMonoPcm",t[t.AmrWb16000Hz=37]="AmrWb16000Hz",t[t.G72216Khz64Kbps=38]="G72216Khz64Kbps"}(e.SpeechSynthesisOutputFormat||(e.SpeechSynthesisOutputFormat={}))})(z3);Object.defineProperty(Qc,"__esModule",{value:!0});Qc.AudioOutputFormatImpl=void 0;const gr=z3,ur=Xc;class Qt extends ur.AudioStreamFormatImpl{constructor(t,r,n,i,o,a,s,l,c){super(n,a,r,t),this.formatTag=t,this.avgBytesPerSec=i,this.blockAlign=o,this.priAudioFormatString=s,this.priRequestAudioFormatString=l,this.priHasHeader=c}static fromSpeechSynthesisOutputFormat(t){return t===void 0?Qt.getDefaultOutputFormat():Qt.fromSpeechSynthesisOutputFormatString(Qt.SpeechSynthesisOutputFormatToString[t])}static fromSpeechSynthesisOutputFormatString(t){switch(t){case"raw-8khz-8bit-mono-mulaw":return new Qt(ur.AudioFormatTag.MuLaw,1,8e3,8e3,1,8,t,t,!1);case"riff-16khz-16kbps-mono-siren":return new Qt(ur.AudioFormatTag.Siren,1,16e3,2e3,40,0,t,"audio-16khz-16kbps-mono-siren",!0);case"audio-16khz-16kbps-mono-siren":return new Qt(ur.AudioFormatTag.Siren,1,16e3,2e3,40,0,t,t,!1);case"audio-16khz-32kbitrate-mono-mp3":return new Qt(ur.AudioFormatTag.MP3,1,16e3,4096,2,16,t,t,!1);case"audio-16khz-128kbitrate-mono-mp3":return new Qt(ur.AudioFormatTag.MP3,1,16e3,16384,2,16,t,t,!1);case"audio-16khz-64kbitrate-mono-mp3":return new Qt(ur.AudioFormatTag.MP3,1,16e3,8192,2,16,t,t,!1);case"audio-24khz-48kbitrate-mono-mp3":return new Qt(ur.AudioFormatTag.MP3,1,24e3,6144,2,16,t,t,!1);case"audio-24khz-96kbitrate-mono-mp3":return new Qt(ur.AudioFormatTag.MP3,1,24e3,12288,2,16,t,t,!1);case"audio-24khz-160kbitrate-mono-mp3":return new Qt(ur.AudioFormatTag.MP3,1,24e3,20480,2,16,t,t,!1);case"raw-16khz-16bit-mono-truesilk":return new Qt(ur.AudioFormatTag.SILKSkype,1,16e3,32e3,2,16,t,t,!1);case"riff-8khz-16bit-mono-pcm":return new Qt(ur.AudioFormatTag.PCM,1,8e3,16e3,2,16,t,"raw-8khz-16bit-mono-pcm",!0);case"riff-24khz-16bit-mono-pcm":return new Qt(ur.AudioFormatTag.PCM,1,24e3,48e3,2,16,t,"raw-24khz-16bit-mono-pcm",!0);case"riff-8khz-8bit-mono-mulaw":return new Qt(ur.AudioFormatTag.MuLaw,1,8e3,8e3,1,8,t,"raw-8khz-8bit-mono-mulaw",!0);case"raw-16khz-16bit-mono-pcm":return new Qt(ur.AudioFormatTag.PCM,1,16e3,32e3,2,16,t,"raw-16khz-16bit-mono-pcm",!1);case"raw-24khz-16bit-mono-pcm":return new Qt(ur.AudioFormatTag.PCM,1,24e3,48e3,2,16,t,"raw-24khz-16bit-mono-pcm",!1);case"raw-8khz-16bit-mono-pcm":return new Qt(ur.AudioFormatTag.PCM,1,8e3,16e3,2,16,t,"raw-8khz-16bit-mono-pcm",!1);case"ogg-16khz-16bit-mono-opus":return new Qt(ur.AudioFormatTag.OGG_OPUS,1,16e3,8192,2,16,t,t,!1);case"ogg-24khz-16bit-mono-opus":return new Qt(ur.AudioFormatTag.OGG_OPUS,1,24e3,8192,2,16,t,t,!1);case"raw-48khz-16bit-mono-pcm":return new Qt(ur.AudioFormatTag.PCM,1,48e3,96e3,2,16,t,"raw-48khz-16bit-mono-pcm",!1);case"riff-48khz-16bit-mono-pcm":return new Qt(ur.AudioFormatTag.PCM,1,48e3,96e3,2,16,t,"raw-48khz-16bit-mono-pcm",!0);case"audio-48khz-96kbitrate-mono-mp3":return new Qt(ur.AudioFormatTag.MP3,1,48e3,12288,2,16,t,t,!1);case"audio-48khz-192kbitrate-mono-mp3":return new Qt(ur.AudioFormatTag.MP3,1,48e3,24576,2,16,t,t,!1);case"ogg-48khz-16bit-mono-opus":return new Qt(ur.AudioFormatTag.OGG_OPUS,1,48e3,12e3,2,16,t,t,!1);case"webm-16khz-16bit-mono-opus":return new Qt(ur.AudioFormatTag.WEBM_OPUS,1,16e3,4e3,2,16,t,t,!1);case"webm-24khz-16bit-mono-opus":return new Qt(ur.AudioFormatTag.WEBM_OPUS,1,24e3,6e3,2,16,t,t,!1);case"webm-24khz-16bit-24kbps-mono-opus":return new Qt(ur.AudioFormatTag.WEBM_OPUS,1,24e3,3e3,2,16,t,t,!1);case"audio-16khz-16bit-32kbps-mono-opus":return new Qt(ur.AudioFormatTag.OPUS,1,16e3,4e3,2,16,t,t,!1);case"audio-24khz-16bit-48kbps-mono-opus":return new Qt(ur.AudioFormatTag.OPUS,1,24e3,6e3,2,16,t,t,!1);case"audio-24khz-16bit-24kbps-mono-opus":return new Qt(ur.AudioFormatTag.OPUS,1,24e3,3e3,2,16,t,t,!1);case"audio-24khz-16bit-mono-flac":return new Qt(ur.AudioFormatTag.FLAC,1,24e3,24e3,2,16,t,t,!1);case"audio-48khz-16bit-mono-flac":return new Qt(ur.AudioFormatTag.FLAC,1,48e3,3e4,2,16,t,t,!1);case"raw-24khz-16bit-mono-truesilk":return new Qt(ur.AudioFormatTag.SILKSkype,1,24e3,48e3,2,16,t,t,!1);case"raw-8khz-8bit-mono-alaw":return new Qt(ur.AudioFormatTag.ALaw,1,8e3,8e3,1,8,t,t,!1);case"riff-8khz-8bit-mono-alaw":return new Qt(ur.AudioFormatTag.ALaw,1,8e3,8e3,1,8,t,"raw-8khz-8bit-mono-alaw",!0);case"raw-22050hz-16bit-mono-pcm":return new Qt(ur.AudioFormatTag.PCM,1,22050,44100,2,16,t,t,!1);case"riff-22050hz-16bit-mono-pcm":return new Qt(ur.AudioFormatTag.PCM,1,22050,44100,2,16,t,"raw-22050hz-16bit-mono-pcm",!0);case"raw-44100hz-16bit-mono-pcm":return new Qt(ur.AudioFormatTag.PCM,1,44100,88200,2,16,t,t,!1);case"riff-44100hz-16bit-mono-pcm":return new Qt(ur.AudioFormatTag.PCM,1,44100,88200,2,16,t,"raw-44100hz-16bit-mono-pcm",!0);case"amr-wb-16000h":return new Qt(ur.AudioFormatTag.AMR_WB,1,16e3,3052,2,16,t,t,!1);case"g722-16khz-64kbps":return new Qt(ur.AudioFormatTag.G722,1,16e3,8e3,2,16,t,t,!1);case"riff-16khz-16bit-mono-pcm":default:return new Qt(ur.AudioFormatTag.PCM,1,16e3,32e3,2,16,"riff-16khz-16bit-mono-pcm","raw-16khz-16bit-mono-pcm",!0)}}static getDefaultOutputFormat(){return Qt.fromSpeechSynthesisOutputFormatString(typeof window<"u"?"audio-24khz-48kbitrate-mono-mp3":"riff-16khz-16bit-mono-pcm")}get hasHeader(){return this.priHasHeader}get header(){if(this.hasHeader)return this.privHeader}updateHeader(t){if(this.priHasHeader){const r=new DataView(this.privHeader);r.setUint32(4,t+this.privHeader.byteLength-8,!0),r.setUint32(40,t,!0)}}get requestAudioFormatString(){return this.priRequestAudioFormatString}addHeader(t){if(!this.hasHeader)return t;this.updateHeader(t.byteLength);const r=new Uint8Array(t.byteLength+this.header.byteLength);return r.set(new Uint8Array(this.header),0),r.set(new Uint8Array(t),this.header.byteLength),r.buffer}}Qc.AudioOutputFormatImpl=Qt;Qt.SpeechSynthesisOutputFormatToString={[gr.SpeechSynthesisOutputFormat.Raw8Khz8BitMonoMULaw]:"raw-8khz-8bit-mono-mulaw",[gr.SpeechSynthesisOutputFormat.Riff16Khz16KbpsMonoSiren]:"riff-16khz-16kbps-mono-siren",[gr.SpeechSynthesisOutputFormat.Audio16Khz16KbpsMonoSiren]:"audio-16khz-16kbps-mono-siren",[gr.SpeechSynthesisOutputFormat.Audio16Khz32KBitRateMonoMp3]:"audio-16khz-32kbitrate-mono-mp3",[gr.SpeechSynthesisOutputFormat.Audio16Khz128KBitRateMonoMp3]:"audio-16khz-128kbitrate-mono-mp3",[gr.SpeechSynthesisOutputFormat.Audio16Khz64KBitRateMonoMp3]:"audio-16khz-64kbitrate-mono-mp3",[gr.SpeechSynthesisOutputFormat.Audio24Khz48KBitRateMonoMp3]:"audio-24khz-48kbitrate-mono-mp3",[gr.SpeechSynthesisOutputFormat.Audio24Khz96KBitRateMonoMp3]:"audio-24khz-96kbitrate-mono-mp3",[gr.SpeechSynthesisOutputFormat.Audio24Khz160KBitRateMonoMp3]:"audio-24khz-160kbitrate-mono-mp3",[gr.SpeechSynthesisOutputFormat.Raw16Khz16BitMonoTrueSilk]:"raw-16khz-16bit-mono-truesilk",[gr.SpeechSynthesisOutputFormat.Riff16Khz16BitMonoPcm]:"riff-16khz-16bit-mono-pcm",[gr.SpeechSynthesisOutputFormat.Riff8Khz16BitMonoPcm]:"riff-8khz-16bit-mono-pcm",[gr.SpeechSynthesisOutputFormat.Riff24Khz16BitMonoPcm]:"riff-24khz-16bit-mono-pcm",[gr.SpeechSynthesisOutputFormat.Riff8Khz8BitMonoMULaw]:"riff-8khz-8bit-mono-mulaw",[gr.SpeechSynthesisOutputFormat.Raw16Khz16BitMonoPcm]:"raw-16khz-16bit-mono-pcm",[gr.SpeechSynthesisOutputFormat.Raw24Khz16BitMonoPcm]:"raw-24khz-16bit-mono-pcm",[gr.SpeechSynthesisOutputFormat.Raw8Khz16BitMonoPcm]:"raw-8khz-16bit-mono-pcm",[gr.SpeechSynthesisOutputFormat.Ogg16Khz16BitMonoOpus]:"ogg-16khz-16bit-mono-opus",[gr.SpeechSynthesisOutputFormat.Ogg24Khz16BitMonoOpus]:"ogg-24khz-16bit-mono-opus",[gr.SpeechSynthesisOutputFormat.Raw48Khz16BitMonoPcm]:"raw-48khz-16bit-mono-pcm",[gr.SpeechSynthesisOutputFormat.Riff48Khz16BitMonoPcm]:"riff-48khz-16bit-mono-pcm",[gr.SpeechSynthesisOutputFormat.Audio48Khz96KBitRateMonoMp3]:"audio-48khz-96kbitrate-mono-mp3",[gr.SpeechSynthesisOutputFormat.Audio48Khz192KBitRateMonoMp3]:"audio-48khz-192kbitrate-mono-mp3",[gr.SpeechSynthesisOutputFormat.Ogg48Khz16BitMonoOpus]:"ogg-48khz-16bit-mono-opus",[gr.SpeechSynthesisOutputFormat.Webm16Khz16BitMonoOpus]:"webm-16khz-16bit-mono-opus",[gr.SpeechSynthesisOutputFormat.Webm24Khz16BitMonoOpus]:"webm-24khz-16bit-mono-opus",[gr.SpeechSynthesisOutputFormat.Webm24Khz16Bit24KbpsMonoOpus]:"webm-24khz-16bit-24kbps-mono-opus",[gr.SpeechSynthesisOutputFormat.Raw24Khz16BitMonoTrueSilk]:"raw-24khz-16bit-mono-truesilk",[gr.SpeechSynthesisOutputFormat.Raw8Khz8BitMonoALaw]:"raw-8khz-8bit-mono-alaw",[gr.SpeechSynthesisOutputFormat.Riff8Khz8BitMonoALaw]:"riff-8khz-8bit-mono-alaw",[gr.SpeechSynthesisOutputFormat.Audio16Khz16Bit32KbpsMonoOpus]:"audio-16khz-16bit-32kbps-mono-opus",[gr.SpeechSynthesisOutputFormat.Audio24Khz16Bit48KbpsMonoOpus]:"audio-24khz-16bit-48kbps-mono-opus",[gr.SpeechSynthesisOutputFormat.Audio24Khz16Bit24KbpsMonoOpus]:"audio-24khz-16bit-24kbps-mono-opus",[gr.SpeechSynthesisOutputFormat.Raw22050Hz16BitMonoPcm]:"raw-22050hz-16bit-mono-pcm",[gr.SpeechSynthesisOutputFormat.Riff22050Hz16BitMonoPcm]:"riff-22050hz-16bit-mono-pcm",[gr.SpeechSynthesisOutputFormat.Raw44100Hz16BitMonoPcm]:"raw-44100hz-16bit-mono-pcm",[gr.SpeechSynthesisOutputFormat.Riff44100Hz16BitMonoPcm]:"riff-44100hz-16bit-mono-pcm",[gr.SpeechSynthesisOutputFormat.AmrWb16000Hz]:"amr-wb-16000hz",[gr.SpeechSynthesisOutputFormat.G72216Khz64Kbps]:"g722-16khz-64kbps"};Object.defineProperty(Ci,"__esModule",{value:!0});Ci.PushAudioOutputStreamImpl=Ci.PushAudioOutputStream=Ci.PullAudioOutputStreamImpl=Ci.PullAudioOutputStream=Ci.AudioOutputStream=void 0;const A$=Wt(),o8e=Zt,a8e=Qc;class B3{constructor(){}static createPullStream(){return H3.create()}}Ci.AudioOutputStream=B3;class H3 extends B3{static create(){return new Ere}}Ci.PullAudioOutputStream=H3;class Ere extends H3{constructor(){super(),this.privId=(0,A$.createNoDashGuid)(),this.privStream=new A$.Stream}set format(t){t==null&&(this.privFormat=a8e.AudioOutputFormatImpl.getDefaultOutputFormat()),this.privFormat=t}get format(){return this.privFormat}get isClosed(){return this.privStream.isClosed}id(){return this.privId}async read(t){const r=new Int8Array(t);let n=0;if(this.privLastChunkView!==void 0){if(this.privLastChunkView.length>t.byteLength)return r.set(this.privLastChunkView.slice(0,t.byteLength)),this.privLastChunkView=this.privLastChunkView.slice(t.byteLength),Promise.resolve(t.byteLength);r.set(this.privLastChunkView),n=this.privLastChunkView.length,this.privLastChunkView=void 0}for(;n<t.byteLength&&!this.privStream.isReadEnded;){const i=await this.privStream.read();if(i!==void 0&&!i.isEnd){let o;i.buffer.byteLength>t.byteLength-n?(o=i.buffer.slice(0,t.byteLength-n),this.privLastChunkView=new Int8Array(i.buffer.slice(t.byteLength-n))):o=i.buffer,r.set(new Int8Array(o),n),n+=o.byteLength}else this.privStream.readEnded()}return n}write(t){o8e.Contracts.throwIfNullOrUndefined(this.privStream,"must set format before writing"),this.privStream.writeStreamChunk({buffer:t,isEnd:!1,timeReceived:Date.now()})}close(){this.privStream.close()}}Ci.PullAudioOutputStreamImpl=Ere;class Rre extends B3{constructor(){super()}static create(t){return new Pre(t)}}Ci.PushAudioOutputStream=Rre;class Pre extends Rre{constructor(t){super(),this.privId=(0,A$.createNoDashGuid)(),this.privCallback=t}set format(t){}write(t){this.privCallback.write&&this.privCallback.write(t)}close(){this.privCallback.close&&this.privCallback.close()}id(){return this.privId}}Ci.PushAudioOutputStreamImpl=Pre;var hz;function xre(){if(hz)return Xs;hz=1,Object.defineProperty(Xs,"__esModule",{value:!0}),Xs.AudioOutputConfigImpl=Xs.AudioConfigImpl=Xs.AudioConfig=void 0;const e=hi(),t=Zt,r=Ct(),n=E0,i=_re(),o=Ci;let a=class Ire{static fromDefaultMicrophoneInput(){const d=new e.PcmRecorder(!0);return new s(new e.MicAudioSource(d))}static fromMicrophoneInput(d){const u=new e.PcmRecorder(!0);return new s(new e.MicAudioSource(u,d))}static fromWavFileInput(d,u="unnamedBuffer.wav"){return new s(new e.FileAudioSource(d,u))}static fromStreamInput(d){if(d instanceof r.PullAudioInputStreamCallback)return new s(new i.PullAudioInputStreamImpl(d));if(d instanceof r.AudioInputStream)return new s(d);if(typeof MediaStream<"u"&&d instanceof MediaStream){const u=new e.PcmRecorder(!1);return new s(new e.MicAudioSource(u,null,null,d))}throw new Error("Not Supported Type")}static fromDefaultSpeakerOutput(){return new l(new r.SpeakerAudioDestination)}static fromSpeakerOutput(d){if(d===void 0)return Ire.fromDefaultSpeakerOutput();if(d instanceof r.SpeakerAudioDestination)return new l(d);throw new Error("Not Supported Type")}static fromAudioFileOutput(d){return new l(new n.AudioFileWriter(d))}static fromStreamOutput(d){if(d instanceof r.PushAudioOutputStreamCallback)return new l(new o.PushAudioOutputStreamImpl(d));if(d instanceof r.PushAudioOutputStream)return new l(d);if(d instanceof r.PullAudioOutputStream)return new l(d);throw new Error("Not Supported Type")}};Xs.AudioConfig=a;class s extends a{constructor(d){super(),this.privSource=d}get format(){return this.privSource.format}close(d,u){this.privSource.turnOff().then(()=>{d&&d()},f=>{u&&u(f)})}id(){return this.privSource.id()}turnOn(){return this.privSource.turnOn()}attach(d){return this.privSource.attach(d)}detach(d){return this.privSource.detach(d)}turnOff(){return this.privSource.turnOff()}get events(){return this.privSource.events}setProperty(d,u){if(t.Contracts.throwIfNull(u,"value"),this.privSource.setProperty!==void 0)this.privSource.setProperty(d,u);else throw new Error("This AudioConfig instance does not support setting properties.")}getProperty(d,u){if(this.privSource.getProperty!==void 0)return this.privSource.getProperty(d,u);throw new Error("This AudioConfig instance does not support getting properties.")}get deviceInfo(){return this.privSource.deviceInfo}}Xs.AudioConfigImpl=s;class l extends a{constructor(d){super(),this.privDestination=d}set format(d){this.privDestination.format=d}write(d){this.privDestination.write(d)}close(){this.privDestination.close()}id(){return this.privDestination.id()}setProperty(){throw new Error("This AudioConfig instance does not support setting properties.")}getProperty(){throw new Error("This AudioConfig instance does not support getting properties.")}}return Xs.AudioOutputConfigImpl=l,Xs}var Ore={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CancellationReason=void 0,function(t){t[t.Error=0]="Error",t[t.EndOfStream=1]="EndOfStream"}(e.CancellationReason||(e.CancellationReason={}))})(Ore);var mE={};Object.defineProperty(mE,"__esModule",{value:!0});mE.PullAudioInputStreamCallback=void 0;class s8e{}mE.PullAudioInputStreamCallback=s8e;var yE={};Object.defineProperty(yE,"__esModule",{value:!0});yE.PushAudioOutputStreamCallback=void 0;class l8e{}yE.PushAudioOutputStreamCallback=l8e;var SE={};Object.defineProperty(SE,"__esModule",{value:!0});SE.KeywordRecognitionModel=void 0;const vz=Zt;class c8e{constructor(){this.privDisposed=!1}static fromFile(t){throw vz.Contracts.throwIfFileDoesNotExist(t,"fileName"),new Error("Not yet implemented.")}static fromStream(t){throw vz.Contracts.throwIfNull(t,"file"),new Error("Not yet implemented.")}close(){this.privDisposed||(this.privDisposed=!0)}}SE.KeywordRecognitionModel=c8e;var CE={};Object.defineProperty(CE,"__esModule",{value:!0});CE.SessionEventArgs=void 0;class u8e{constructor(t){this.privSessionId=t}get sessionId(){return this.privSessionId}}CE.SessionEventArgs=u8e;var Xh={},gz;function d8e(){if(gz)return Xh;gz=1,Object.defineProperty(Xh,"__esModule",{value:!0}),Xh.RecognitionEventArgs=void 0;const e=Ct();let t=class extends e.SessionEventArgs{constructor(n,i){super(i),this.privOffset=n}get offset(){return this.privOffset}};return Xh.RecognitionEventArgs=t,Xh}var Tre={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.OutputFormat=void 0,function(t){t[t.Simple=0]="Simple",t[t.Detailed=1]="Detailed"}(e.OutputFormat||(e.OutputFormat={}))})(Tre);var Qh={},mz;function f8e(){if(mz)return Qh;mz=1,Object.defineProperty(Qh,"__esModule",{value:!0}),Qh.IntentRecognitionEventArgs=void 0;const e=Ct();let t=class extends e.RecognitionEventArgs{constructor(n,i,o){super(i,o),this.privResult=n}get result(){return this.privResult}};return Qh.IntentRecognitionEventArgs=t,Qh}var bE={};Object.defineProperty(bE,"__esModule",{value:!0});bE.RecognitionResult=void 0;class p8e{constructor(t,r,n,i,o,a,s,l,c,d){this.privResultId=t,this.privReason=r,this.privText=n,this.privDuration=i,this.privOffset=o,this.privLanguage=a,this.privLanguageDetectionConfidence=s,this.privErrorDetails=l,this.privJson=c,this.privProperties=d}get resultId(){return this.privResultId}get reason(){return this.privReason}get text(){return this.privText}get duration(){return this.privDuration}get offset(){return this.privOffset}get language(){return this.privLanguage}get languageDetectionConfidence(){return this.privLanguageDetectionConfidence}get errorDetails(){return this.privErrorDetails}get json(){return this.privJson}get properties(){return this.privProperties}}bE.RecognitionResult=p8e;var Jh={},yz;function h8e(){if(yz)return Jh;yz=1,Object.defineProperty(Jh,"__esModule",{value:!0}),Jh.SpeechRecognitionResult=void 0;const e=Ct();let t=class extends e.RecognitionResult{constructor(n,i,o,a,s,l,c,d,u,f,h){super(n,i,o,a,s,l,c,u,f,h),this.privSpeakerId=d}get speakerId(){return this.privSpeakerId}};return Jh.SpeechRecognitionResult=t,Jh}var Zh={},Sz;function v8e(){if(Sz)return Zh;Sz=1,Object.defineProperty(Zh,"__esModule",{value:!0}),Zh.IntentRecognitionResult=void 0;const e=Ct();let t=class extends e.SpeechRecognitionResult{constructor(n,i,o,a,s,l,c,d,u,f,h){super(i,o,a,s,l,c,d,void 0,u,f,h),this.privIntentId=n}get intentId(){return this.privIntentId}};return Zh.IntentRecognitionResult=t,Zh}var wp={};Object.defineProperty(wp,"__esModule",{value:!0});wp.LanguageUnderstandingModelImpl=wp.LanguageUnderstandingModel=void 0;const ff=Zt;class Are{constructor(){}static fromEndpoint(t){ff.Contracts.throwIfNull(t,"uri"),ff.Contracts.throwIfNullOrWhitespace(t.hostname,"uri");const r=new yC,n=t.host.indexOf(".");if(n===-1)throw new Error("Could not determine region from endpoint");r.region=t.host.substr(0,n);const i=t.pathname.lastIndexOf("/")+1;if(i===-1)throw new Error("Could not determine appId from endpoint");if(r.appId=t.pathname.substr(i),r.subscriptionKey=t.searchParams.get("subscription-key"),r.subscriptionKey===void 0)throw new Error("Could not determine subscription key from endpoint");return r}static fromAppId(t){ff.Contracts.throwIfNullOrWhitespace(t,"appId");const r=new yC;return r.appId=t,r}static fromSubscription(t,r,n){ff.Contracts.throwIfNullOrWhitespace(t,"subscriptionKey"),ff.Contracts.throwIfNullOrWhitespace(r,"appId"),ff.Contracts.throwIfNullOrWhitespace(n,"region");const i=new yC;return i.appId=r,i.region=n,i.subscriptionKey=t,i}}wp.LanguageUnderstandingModel=Are;class yC extends Are{}wp.LanguageUnderstandingModelImpl=yC;var Qs={},Cz;function g8e(){if(Cz)return Qs;Cz=1,Object.defineProperty(Qs,"__esModule",{value:!0}),Qs.MeetingTranscriptionEventArgs=Qs.ConversationTranscriptionEventArgs=Qs.SpeechRecognitionEventArgs=void 0;const e=Ct();let t=class extends e.RecognitionEventArgs{constructor(o,a,s){super(a,s),this.privResult=o}get result(){return this.privResult}};Qs.SpeechRecognitionEventArgs=t;class r extends e.RecognitionEventArgs{constructor(o,a,s){super(a,s),this.privResult=o}get result(){return this.privResult}}Qs.ConversationTranscriptionEventArgs=r;class n extends t{}return Qs.MeetingTranscriptionEventArgs=n,Qs}var ev={},tv={},bz;function R0(){if(bz)return tv;bz=1,Object.defineProperty(tv,"__esModule",{value:!0}),tv.CancellationEventArgsBase=void 0;const e=Ct();let t=class extends e.RecognitionEventArgs{constructor(n,i,o,a,s){super(a,s),this.privReason=n,this.privErrorDetails=i,this.privErrorCode=o}get reason(){return this.privReason}get errorCode(){return this.privErrorCode}get errorDetails(){return this.privErrorDetails}};return tv.CancellationEventArgsBase=t,tv}var wz;function m8e(){if(wz)return ev;
439wz=1,Object.defineProperty(ev,"__esModule",{value:!0}),ev.SpeechRecognitionCanceledEventArgs=void 0;const e=R0();let t=class extends e.CancellationEventArgsBase{};return ev.SpeechRecognitionCanceledEventArgs=t,ev}var rv={},_z;function y8e(){if(_z)return rv;_z=1,Object.defineProperty(rv,"__esModule",{value:!0}),rv.TranslationRecognitionEventArgs=void 0;const e=Ct();let t=class extends e.RecognitionEventArgs{constructor(n,i,o){super(i,o),this.privResult=n}get result(){return this.privResult}};return rv.TranslationRecognitionEventArgs=t,rv}var nv={},Ez;function S8e(){if(Ez)return nv;Ez=1,Object.defineProperty(nv,"__esModule",{value:!0}),nv.TranslationSynthesisEventArgs=void 0;const e=Ct();let t=class extends e.SessionEventArgs{constructor(n,i){super(i),this.privResult=n}get result(){return this.privResult}};return nv.TranslationSynthesisEventArgs=t,nv}var iv={},Rz;function $re(){if(Rz)return iv;Rz=1,Object.defineProperty(iv,"__esModule",{value:!0}),iv.TranslationRecognitionResult=void 0;const e=Ct();let t=class Mre extends e.SpeechRecognitionResult{constructor(n,i,o,a,s,l,c,d,u,f,h){super(i,o,a,s,l,c,d,void 0,u,f,h),this.privTranslations=n}static fromSpeechRecognitionResult(n){return new Mre(void 0,n.resultId,n.reason,n.text,n.duration,n.offset,n.language,n.languageDetectionConfidence,n.errorDetails,n.json,n.properties)}get translations(){return this.privTranslations}};return iv.TranslationRecognitionResult=t,iv}var wE={};Object.defineProperty(wE,"__esModule",{value:!0});wE.TranslationSynthesisResult=void 0;class C8e{constructor(t,r){this.privReason=t,this.privAudio=r}get audio(){return this.privAudio}get reason(){return this.privReason}}wE.TranslationSynthesisResult=C8e;var kre={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ResultReason=void 0,function(t){t[t.NoMatch=0]="NoMatch",t[t.Canceled=1]="Canceled",t[t.RecognizingSpeech=2]="RecognizingSpeech",t[t.RecognizedSpeech=3]="RecognizedSpeech",t[t.RecognizedKeyword=4]="RecognizedKeyword",t[t.RecognizingIntent=5]="RecognizingIntent",t[t.RecognizedIntent=6]="RecognizedIntent",t[t.TranslatingSpeech=7]="TranslatingSpeech",t[t.TranslatedSpeech=8]="TranslatedSpeech",t[t.SynthesizingAudio=9]="SynthesizingAudio",t[t.SynthesizingAudioCompleted=10]="SynthesizingAudioCompleted",t[t.SynthesizingAudioStarted=11]="SynthesizingAudioStarted",t[t.EnrollingVoiceProfile=12]="EnrollingVoiceProfile",t[t.EnrolledVoiceProfile=13]="EnrolledVoiceProfile",t[t.RecognizedSpeakers=14]="RecognizedSpeakers",t[t.RecognizedSpeaker=15]="RecognizedSpeaker",t[t.ResetVoiceProfile=16]="ResetVoiceProfile",t[t.DeletedVoiceProfile=17]="DeletedVoiceProfile",t[t.VoicesListRetrieved=18]="VoicesListRetrieved",t[t.TranslatingParticipantSpeech=19]="TranslatingParticipantSpeech",t[t.TranslatedParticipantSpeech=20]="TranslatedParticipantSpeech",t[t.TranslatedInstantMessage=21]="TranslatedInstantMessage",t[t.TranslatedParticipantInstantMessage=22]="TranslatedParticipantInstantMessage"}(e.ResultReason||(e.ResultReason={}))})(kre);var vu={},Pz;function b8e(){if(Pz)return vu;Pz=1,Object.defineProperty(vu,"__esModule",{value:!0}),vu.SpeechConfigImpl=vu.SpeechConfig=void 0;const e=Lt(),t=Zt,r=Ct();let n=class{constructor(){}static fromSubscription(a,s){t.Contracts.throwIfNullOrWhitespace(a,"subscriptionKey"),t.Contracts.throwIfNullOrWhitespace(s,"region");const l=new i;return l.setProperty(r.PropertyId.SpeechServiceConnection_Region,s),l.setProperty(r.PropertyId.SpeechServiceConnection_IntentRegion,s),l.setProperty(r.PropertyId.SpeechServiceConnection_Key,a),l}static fromEndpoint(a,s){t.Contracts.throwIfNull(a,"endpoint");const l=typeof s=="string"&&s.trim().length>0,c=typeof s=="object"&&s!==null&&typeof s.getToken=="function",d=typeof s=="object"&&s!==null&&typeof s.key=="string";if(s!==void 0&&!l&&!c&&!d)throw new Error("Invalid 'auth' parameter: expected a non-empty API key string, a TokenCredential, or a KeyCredential.");let u;return typeof s=="string"?(u=new i,u.setProperty(r.PropertyId.SpeechServiceConnection_Key,s)):typeof s=="object"&&typeof s.getToken=="function"?u=new i(s):typeof s=="object"&&typeof s.key=="string"?(u=new i,u.setProperty(r.PropertyId.SpeechServiceConnection_Key,s.key)):u=new i,u.setProperty(r.PropertyId.SpeechServiceConnection_Endpoint,a.href),u}static fromHost(a,s){t.Contracts.throwIfNull(a,"hostName");const l=new i;return l.setProperty(r.PropertyId.SpeechServiceConnection_Host,a.protocol+"//"+a.hostname+(a.port===""?"":":"+a.port)),l.setProperty(r.PropertyId.SpeechServiceConnection_RecognitionEndpointVersion,"1"),s!==void 0&&l.setProperty(r.PropertyId.SpeechServiceConnection_Key,s),l}static fromAuthorizationToken(a,s){t.Contracts.throwIfNull(a,"authorizationToken"),t.Contracts.throwIfNullOrWhitespace(s,"region");const l=new i;return l.setProperty(r.PropertyId.SpeechServiceConnection_Region,s),l.setProperty(r.PropertyId.SpeechServiceConnection_IntentRegion,s),l.authorizationToken=a,l}close(){}};vu.SpeechConfig=n;
vendor: 5,805 bytes, line 439
439class i extends n{constructor(a){super(),this.privProperties=new r.PropertyCollection,this.speechRecognitionLanguage="en-US",this.outputFormat=r.OutputFormat.Simple,this.privTokenCredential=a}get properties(){return this.privProperties}get endPoint(){return new URL(this.privProperties.getProperty(r.PropertyId.SpeechServiceConnection_Endpoint))}get subscriptionKey(){return this.privProperties.getProperty(r.PropertyId.SpeechServiceConnection_Key)}get region(){return this.privProperties.getProperty(r.PropertyId.SpeechServiceConnection_Region)}get authorizationToken(){return this.privProperties.getProperty(r.PropertyId.SpeechServiceAuthorization_Token)}set authorizationToken(a){this.privProperties.setProperty(r.PropertyId.SpeechServiceAuthorization_Token,a)}get speechRecognitionLanguage(){return this.privProperties.getProperty(r.PropertyId.SpeechServiceConnection_RecoLanguage)}set speechRecognitionLanguage(a){this.privProperties.setProperty(r.PropertyId.SpeechServiceConnection_RecoLanguage,a)}get autoDetectSourceLanguages(){return this.privProperties.getProperty(r.PropertyId.SpeechServiceConnection_AutoDetectSourceLanguages)}set autoDetectSourceLanguages(a){this.privProperties.setProperty(r.PropertyId.SpeechServiceConnection_AutoDetectSourceLanguages,a)}get outputFormat(){return r.OutputFormat[this.privProperties.getProperty(e.OutputFormatPropertyName,void 0)]}set outputFormat(a){this.privProperties.setProperty(e.OutputFormatPropertyName,r.OutputFormat[a])}get endpointId(){return this.privProperties.getProperty(r.PropertyId.SpeechServiceConnection_EndpointId)}set endpointId(a){this.privProperties.setProperty(r.PropertyId.SpeechServiceConnection_EndpointId,a)}get tokenCredential(){return this.privTokenCredential}setProperty(a,s){t.Contracts.throwIfNull(s,"value"),this.privProperties.setProperty(a,s)}getProperty(a,s){return this.privProperties.getProperty(a,s)}setProxy(a,s,l,c){this.setProperty(r.PropertyId[r.PropertyId.SpeechServiceConnection_ProxyHostName],a),this.setProperty(r.PropertyId[r.PropertyId.SpeechServiceConnection_ProxyPort],s),this.setProperty(r.PropertyId[r.PropertyId.SpeechServiceConnection_ProxyUserName],l),this.setProperty(r.PropertyId[r.PropertyId.SpeechServiceConnection_ProxyPassword],c)}setServiceProperty(a,s){const l=JSON.parse(this.privProperties.getProperty(e.ServicePropertiesPropertyName,"{}"));l[a]=s,this.privProperties.setProperty(e.ServicePropertiesPropertyName,JSON.stringify(l))}setProfanity(a){this.privProperties.setProperty(r.PropertyId.SpeechServiceResponse_ProfanityOption,r.ProfanityOption[a])}enableAudioLogging(){this.privProperties.setProperty(r.PropertyId.SpeechServiceConnection_EnableAudioLogging,"true")}requestWordLevelTimestamps(){this.privProperties.setProperty(r.PropertyId.SpeechServiceResponse_RequestWordLevelTimestamps,"true"),this.privProperties.setProperty(e.OutputFormatPropertyName,r.OutputFormat[r.OutputFormat.Detailed])}enableDictation(){this.privProperties.setProperty(e.ForceDictationPropertyName,"true")}clone(){const a=new i(this.tokenCredential);return a.privProperties=this.privProperties.clone(),a}get speechSynthesisLanguage(){return this.privProperties.getProperty(r.PropertyId.SpeechServiceConnection_SynthLanguage)}set speechSynthesisLanguage(a){this.privProperties.setProperty(r.PropertyId.SpeechServiceConnection_SynthLanguage,a)}get speechSynthesisVoiceName(){return this.privProperties.getProperty(r.PropertyId.SpeechServiceConnection_SynthVoice)}set speechSynthesisVoiceName(a){this.privProperties.setProperty(r.PropertyId.SpeechServiceConnection_SynthVoice,a)}get speechSynthesisOutputFormat(){return r.SpeechSynthesisOutputFormat[this.privProperties.getProperty(r.PropertyId.SpeechServiceConnection_SynthOutputFormat,void 0)]}set speechSynthesisOutputFormat(a){this.privProperties.setProperty(r.PropertyId.SpeechServiceConnection_SynthOutputFormat,r.SpeechSynthesisOutputFormat[a])}}return vu.SpeechConfigImpl=i,vu}var gu={},Iz;function w8e(){if(Iz)return gu;Iz=1,Object.defineProperty(gu,"__esModule",{value:!0}),gu.SpeechTranslationConfigImpl=gu.SpeechTranslationConfig=void 0;const e=Lt(),t=Zt,r=Ct();let n=class extends r.SpeechConfig{constructor(){super()}static fromSubscription(a,s){t.Contracts.throwIfNullOrWhitespace(a,"subscriptionKey"),t.Contracts.throwIfNullOrWhitespace(s,"region");const l=new i;return l.properties.setProperty(r.PropertyId.SpeechServiceConnection_Key,a),l.properties.setProperty(r.PropertyId.SpeechServiceConnection_Region,s),l}static fromAuthorizationToken(a,s){t.Contracts.throwIfNullOrWhitespace(a,"authorizationToken"),t.Contracts.throwIfNullOrWhitespace(s,"region");const l=new i;return l.properties.setProperty(r.PropertyId.SpeechServiceAuthorization_Token,a),l.properties.setProperty(r.PropertyId.SpeechServiceConnection_Region,s),l}static fromHost(a,s){t.Contracts.throwIfNull(a,"hostName");const l=new i;return l.setProperty(r.PropertyId.SpeechServiceConnection_Host,a.protocol+"//"+a.hostname+(a.port===""?"":":"+a.port)),s!==void 0&&l.setProperty(r.PropertyId.SpeechServiceConnection_Key,s),l}static fromEndpoint(a,s){t.Contracts.throwIfNull(a,"endpoint");const l=typeof s=="string"&&s.trim().length>0,c=typeof s=="object"&&s!==null&&typeof s.getToken=="function",d=typeof s=="object"&&s!==null&&typeof s.key=="string";if(s!==void 0&&!l&&!c&&!d)throw new Error("Invalid 'auth' parameter: expected a non-empty API key string, a TokenCredential, or a KeyCredential.");let u;return typeof s=="string"?(u=new i,u.setProperty(r.PropertyId.SpeechServiceConnection_Key,s)):typeof s=="object"&&typeof s.getToken=="function"?u=new i(s):typeof s=="object"&&typeof s.key=="string"?(u=new i,u.setProperty(r.PropertyId.SpeechServiceConnection_Key,s.key)):u=new i,u.setProperty(r.PropertyId.SpeechServiceConnection_Endpoint,a.href),u}};gu.SpeechTranslationConfig=n;
vendor: 65,903 bytes, line 439
439class i extends n{constructor(a){super(),this.privSpeechProperties=new r.PropertyCollection,this.outputFormat=r.OutputFormat.Simple,this.privTokenCredential=a}set authorizationToken(a){t.Contracts.throwIfNullOrWhitespace(a,"value"),this.privSpeechProperties.setProperty(r.PropertyId.SpeechServiceAuthorization_Token,a)}set speechRecognitionLanguage(a){t.Contracts.throwIfNullOrWhitespace(a,"value"),this.privSpeechProperties.setProperty(r.PropertyId.SpeechServiceConnection_RecoLanguage,a)}get speechRecognitionLanguage(){return this.privSpeechProperties.getProperty(r.PropertyId[r.PropertyId.SpeechServiceConnection_RecoLanguage])}get subscriptionKey(){return this.privSpeechProperties.getProperty(r.PropertyId[r.PropertyId.SpeechServiceConnection_Key])}get outputFormat(){return r.OutputFormat[this.privSpeechProperties.getProperty(e.OutputFormatPropertyName,void 0)]}set outputFormat(a){this.privSpeechProperties.setProperty(e.OutputFormatPropertyName,r.OutputFormat[a])}get endpointId(){return this.privSpeechProperties.getProperty(r.PropertyId.SpeechServiceConnection_EndpointId)}set endpointId(a){this.privSpeechProperties.setProperty(r.PropertyId.SpeechServiceConnection_EndpointId,a)}addTargetLanguage(a){t.Contracts.throwIfNullOrWhitespace(a,"value");const s=this.targetLanguages;s.includes(a)||(s.push(a),this.privSpeechProperties.setProperty(r.PropertyId.SpeechServiceConnection_TranslationToLanguages,s.join(",")))}get targetLanguages(){return this.privSpeechProperties.getProperty(r.PropertyId.SpeechServiceConnection_TranslationToLanguages,void 0)!==void 0?this.privSpeechProperties.getProperty(r.PropertyId.SpeechServiceConnection_TranslationToLanguages).split(","):[]}get voiceName(){return this.getProperty(r.PropertyId[r.PropertyId.SpeechServiceConnection_TranslationVoice])}set voiceName(a){t.Contracts.throwIfNullOrWhitespace(a,"value"),this.privSpeechProperties.setProperty(r.PropertyId.SpeechServiceConnection_TranslationVoice,a)}get region(){return this.privSpeechProperties.getProperty(r.PropertyId.SpeechServiceConnection_Region)}get tokenCredential(){return this.privTokenCredential}setProxy(a,s,l,c){this.setProperty(r.PropertyId[r.PropertyId.SpeechServiceConnection_ProxyHostName],a),this.setProperty(r.PropertyId[r.PropertyId.SpeechServiceConnection_ProxyPort],s),this.setProperty(r.PropertyId[r.PropertyId.SpeechServiceConnection_ProxyUserName],l),this.setProperty(r.PropertyId[r.PropertyId.SpeechServiceConnection_ProxyPassword],c)}getProperty(a,s){return this.privSpeechProperties.getProperty(a,s)}setProperty(a,s){this.privSpeechProperties.setProperty(a,s)}get properties(){return this.privSpeechProperties}close(){}setServiceProperty(a,s){const l=JSON.parse(this.privSpeechProperties.getProperty(e.ServicePropertiesPropertyName,"{}"));l[a]=s,this.privSpeechProperties.setProperty(e.ServicePropertiesPropertyName,JSON.stringify(l))}setProfanity(a){this.privSpeechProperties.setProperty(r.PropertyId.SpeechServiceResponse_ProfanityOption,r.ProfanityOption[a])}enableAudioLogging(){this.privSpeechProperties.setProperty(r.PropertyId.SpeechServiceConnection_EnableAudioLogging,"true")}requestWordLevelTimestamps(){this.privSpeechProperties.setProperty(r.PropertyId.SpeechServiceResponse_RequestWordLevelTimestamps,"true")}enableDictation(){this.privSpeechProperties.setProperty(e.ForceDictationPropertyName,"true")}get speechSynthesisLanguage(){return this.privSpeechProperties.getProperty(r.PropertyId.SpeechServiceConnection_SynthLanguage)}set speechSynthesisLanguage(a){this.privSpeechProperties.setProperty(r.PropertyId.SpeechServiceConnection_SynthLanguage,a)}get speechSynthesisVoiceName(){return this.privSpeechProperties.getProperty(r.PropertyId.SpeechServiceConnection_SynthVoice)}set speechSynthesisVoiceName(a){this.privSpeechProperties.setProperty(r.PropertyId.SpeechServiceConnection_SynthVoice,a)}get speechSynthesisOutputFormat(){return r.SpeechSynthesisOutputFormat[this.privSpeechProperties.getProperty(r.PropertyId.SpeechServiceConnection_SynthOutputFormat,void 0)]}set speechSynthesisOutputFormat(a){this.privSpeechProperties.setProperty(r.PropertyId.SpeechServiceConnection_SynthOutputFormat,r.SpeechSynthesisOutputFormat[a])}}return gu.SpeechTranslationConfigImpl=i,gu}var ov={},xz;function Dre(){if(xz)return ov;xz=1,Object.defineProperty(ov,"__esModule",{value:!0}),ov.PropertyCollection=void 0;const e=Ct();let t=class Nre{constructor(){this.privKeys=[],this.privValues=[]}getProperty(n,i){let o;typeof n=="string"?o=n:o=e.PropertyId[n];for(let a=0;a<this.privKeys.length;a++)if(this.privKeys[a]===o)return this.privValues[a];if(i!==void 0)return String(i)}setProperty(n,i){let o;typeof n=="string"?o=n:o=e.PropertyId[n];for(let a=0;a<this.privKeys.length;a++)if(this.privKeys[a]===o){this.privValues[a]=i;return}this.privKeys.push(o),this.privValues.push(i)}clone(){const n=new Nre;for(let i=0;i<this.privKeys.length;i++)n.privKeys.push(this.privKeys[i]),n.privValues.push(this.privValues[i]);return n}mergeTo(n){this.privKeys.forEach(i=>{if(n.getProperty(i,void 0)===void 0){const o=this.getProperty(i);n.setProperty(i,o)}})}get keys(){return this.privKeys}};return ov.PropertyCollection=t,ov}var _E={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PropertyId=void 0,function(t){t[t.SpeechServiceConnection_Key=0]="SpeechServiceConnection_Key",t[t.SpeechServiceConnection_Endpoint=1]="SpeechServiceConnection_Endpoint",t[t.SpeechServiceConnection_Region=2]="SpeechServiceConnection_Region",t[t.SpeechServiceAuthorization_Token=3]="SpeechServiceAuthorization_Token",t[t.SpeechServiceAuthorization_Type=4]="SpeechServiceAuthorization_Type",t[t.SpeechServiceConnection_EndpointId=5]="SpeechServiceConnection_EndpointId",t[t.SpeechServiceConnection_TranslationToLanguages=6]="SpeechServiceConnection_TranslationToLanguages",t[t.SpeechServiceConnection_TranslationVoice=7]="SpeechServiceConnection_TranslationVoice",t[t.SpeechServiceConnection_TranslationFeatures=8]="SpeechServiceConnection_TranslationFeatures",t[t.SpeechServiceConnection_TranslationCategoryId=9]="SpeechServiceConnection_TranslationCategoryId",t[t.SpeechServiceConnection_IntentRegion=10]="SpeechServiceConnection_IntentRegion",t[t.SpeechServiceConnection_ProxyHostName=11]="SpeechServiceConnection_ProxyHostName",t[t.SpeechServiceConnection_ProxyPort=12]="SpeechServiceConnection_ProxyPort",t[t.SpeechServiceConnection_ProxyUserName=13]="SpeechServiceConnection_ProxyUserName",t[t.SpeechServiceConnection_ProxyPassword=14]="SpeechServiceConnection_ProxyPassword",t[t.SpeechServiceConnection_RecoMode=15]="SpeechServiceConnection_RecoMode",t[t.SpeechServiceConnection_RecoLanguage=16]="SpeechServiceConnection_RecoLanguage",t[t.Speech_SessionId=17]="Speech_SessionId",t[t.SpeechServiceConnection_SynthLanguage=18]="SpeechServiceConnection_SynthLanguage",t[t.SpeechServiceConnection_SynthVoice=19]="SpeechServiceConnection_SynthVoice",t[t.SpeechServiceConnection_SynthOutputFormat=20]="SpeechServiceConnection_SynthOutputFormat",t[t.SpeechServiceConnection_AutoDetectSourceLanguages=21]="SpeechServiceConnection_AutoDetectSourceLanguages",t[t.SpeechServiceResponse_RequestDetailedResultTrueFalse=22]="SpeechServiceResponse_RequestDetailedResultTrueFalse",t[t.SpeechServiceResponse_RequestProfanityFilterTrueFalse=23]="SpeechServiceResponse_RequestProfanityFilterTrueFalse",t[t.SpeechServiceResponse_JsonResult=24]="SpeechServiceResponse_JsonResult",t[t.SpeechServiceResponse_JsonErrorDetails=25]="SpeechServiceResponse_JsonErrorDetails",t[t.CancellationDetails_Reason=26]="CancellationDetails_Reason",t[t.CancellationDetails_ReasonText=27]="CancellationDetails_ReasonText",t[t.CancellationDetails_ReasonDetailedText=28]="CancellationDetails_ReasonDetailedText",t[t.LanguageUnderstandingServiceResponse_JsonResult=29]="LanguageUnderstandingServiceResponse_JsonResult",t[t.SpeechServiceConnection_Url=30]="SpeechServiceConnection_Url",t[t.SpeechServiceConnection_InitialSilenceTimeoutMs=31]="SpeechServiceConnection_InitialSilenceTimeoutMs",t[t.SpeechServiceConnection_EndSilenceTimeoutMs=32]="SpeechServiceConnection_EndSilenceTimeoutMs",t[t.Speech_SegmentationSilenceTimeoutMs=33]="Speech_SegmentationSilenceTimeoutMs",t[t.Speech_SegmentationMaximumTimeMs=34]="Speech_SegmentationMaximumTimeMs",t[t.Speech_SegmentationStrategy=35]="Speech_SegmentationStrategy",t[t.SpeechServiceConnection_EnableAudioLogging=36]="SpeechServiceConnection_EnableAudioLogging",t[t.SpeechServiceConnection_LanguageIdMode=37]="SpeechServiceConnection_LanguageIdMode",t[t.SpeechServiceConnection_RecognitionEndpointVersion=38]="SpeechServiceConnection_RecognitionEndpointVersion",t[t.SpeechServiceConnection_SpeakerIdMode=39]="SpeechServiceConnection_SpeakerIdMode",t[t.SpeechServiceResponse_ProfanityOption=40]="SpeechServiceResponse_ProfanityOption",t[t.SpeechServiceResponse_PostProcessingOption=41]="SpeechServiceResponse_PostProcessingOption",t[t.SpeechServiceResponse_RequestWordLevelTimestamps=42]="SpeechServiceResponse_RequestWordLevelTimestamps",t[t.SpeechServiceResponse_StablePartialResultThreshold=43]="SpeechServiceResponse_StablePartialResultThreshold",t[t.SpeechServiceResponse_OutputFormatOption=44]="SpeechServiceResponse_OutputFormatOption",t[t.SpeechServiceResponse_TranslationRequestStablePartialResult=45]="SpeechServiceResponse_TranslationRequestStablePartialResult",t[t.SpeechServiceResponse_RequestWordBoundary=46]="SpeechServiceResponse_RequestWordBoundary",t[t.SpeechServiceResponse_RequestPunctuationBoundary=47]="SpeechServiceResponse_RequestPunctuationBoundary",t[t.SpeechServiceResponse_RequestSentenceBoundary=48]="SpeechServiceResponse_RequestSentenceBoundary",t[t.SpeechServiceResponse_DiarizeIntermediateResults=49]="SpeechServiceResponse_DiarizeIntermediateResults",t[t.Conversation_ApplicationId=50]="Conversation_ApplicationId",t[t.Conversation_DialogType=51]="Conversation_DialogType",t[t.Conversation_Initial_Silence_Timeout=52]="Conversation_Initial_Silence_Timeout",t[t.Conversation_From_Id=53]="Conversation_From_Id",t[t.Conversation_Conversation_Id=54]="Conversation_Conversation_Id",t[t.Conversation_Custom_Voice_Deployment_Ids=55]="Conversation_Custom_Voice_Deployment_Ids",t[t.Conversation_Speech_Activity_Template=56]="Conversation_Speech_Activity_Template",t[t.Conversation_Request_Bot_Status_Messages=57]="Conversation_Request_Bot_Status_Messages",t[t.Conversation_Agent_Connection_Id=58]="Conversation_Agent_Connection_Id",t[t.SpeechServiceConnection_Host=59]="SpeechServiceConnection_Host",t[t.ConversationTranslator_Host=60]="ConversationTranslator_Host",t[t.ConversationTranslator_Name=61]="ConversationTranslator_Name",t[t.ConversationTranslator_CorrelationId=62]="ConversationTranslator_CorrelationId",t[t.ConversationTranslator_Token=63]="ConversationTranslator_Token",t[t.PronunciationAssessment_ReferenceText=64]="PronunciationAssessment_ReferenceText",t[t.PronunciationAssessment_GradingSystem=65]="PronunciationAssessment_GradingSystem",t[t.PronunciationAssessment_Granularity=66]="PronunciationAssessment_Granularity",t[t.PronunciationAssessment_EnableMiscue=67]="PronunciationAssessment_EnableMiscue",t[t.PronunciationAssessment_Json=68]="PronunciationAssessment_Json",t[t.PronunciationAssessment_Params=69]="PronunciationAssessment_Params",t[t.SpeakerRecognition_Api_Version=70]="SpeakerRecognition_Api_Version",t[t.WebWorkerLoadType=71]="WebWorkerLoadType",t[t.TalkingAvatarService_WebRTC_SDP=72]="TalkingAvatarService_WebRTC_SDP"}(e.PropertyId||(e.PropertyId={}))})(_E);var av={},Oz;function _8e(){if(Oz)return av;Oz=1,Object.defineProperty(av,"__esModule",{value:!0}),av.Recognizer=void 0;const e=Lt(),t=Wt(),r=Zt,n=Ct();let i=class Lre{constructor(a,s,l,c){this.audioConfig=a!==void 0?a:n.AudioConfig.fromDefaultMicrophoneInput(),this.privDisposed=!1,this.privProperties=s.clone(),this.privConnectionFactory=l,this.tokenCredential=c,this.implCommonRecognizerSetup()}close(a,s){r.Contracts.throwIfDisposed(this.privDisposed),(0,t.marshalPromiseToCallbacks)(this.dispose(!0),a,s)}get internalData(){return this.privReco}async dispose(a){this.privDisposed||(this.privDisposed=!0,a&&this.privReco&&(await this.privReco.audioSource.turnOff(),await this.privReco.dispose()))}static get telemetryEnabled(){return e.ServiceRecognizerBase.telemetryDataEnabled}static enableTelemetry(a){e.ServiceRecognizerBase.telemetryDataEnabled=a}implCommonRecognizerSetup(){let a=typeof window<"u"?"Browser":"Node",s="unknown",l="unknown";typeof navigator<"u"&&(a=a+"/"+navigator.platform,s=navigator.userAgent,l=navigator.appVersion);const c=this.createRecognizerConfig(new e.SpeechServiceConfig(new e.Context(new e.OS(a,s,l))));this.privReco=this.createServiceRecognizer(Lre.getAuth(this.privProperties,this.tokenCredential),this.privConnectionFactory,this.audioConfig,c)}async recognizeOnceAsyncImpl(a){r.Contracts.throwIfDisposed(this.privDisposed);const s=new t.Deferred;await this.implRecognizerStop(),await this.privReco.recognize(a,s.resolve,s.reject);const l=await s.promise;return await this.implRecognizerStop(),l}async startContinuousRecognitionAsyncImpl(a){r.Contracts.throwIfDisposed(this.privDisposed),await this.implRecognizerStop(),await this.privReco.recognize(a,void 0,void 0)}async stopContinuousRecognitionAsyncImpl(){r.Contracts.throwIfDisposed(this.privDisposed),await this.implRecognizerStop()}async implRecognizerStop(){this.privReco&&await this.privReco.stopRecognizing()}static getAuth(a,s){const l=a.getProperty(n.PropertyId.SpeechServiceConnection_Key,void 0);return l&&l!==""?new e.CognitiveSubscriptionKeyAuthentication(l):s?new e.CognitiveTokenAuthentication(async()=>{try{const c=await s.getToken("https://cognitiveservices.azure.com/.default");return(c==null?void 0:c.token)??""}catch(c){throw c}},async()=>{try{const c=await s.getToken("https://cognitiveservices.azure.com/.default");return(c==null?void 0:c.token)??""}catch(c){throw c}}):new e.CognitiveTokenAuthentication(()=>{const c=a.getProperty(n.PropertyId.SpeechServiceAuthorization_Token,void 0);return Promise.resolve(c)},()=>{const c=a.getProperty(n.PropertyId.SpeechServiceAuthorization_Token,void 0);return Promise.resolve(c)})}};return av.Recognizer=i,av}var sv={},ia={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.RecognitionMode=void 0,function(t){t.Interactive="Interactive",t.Dictation="Dictation",t.Conversation="Conversation",t.None="None"}(e.RecognitionMode||(e.RecognitionMode={}))})(ia);var Tz;function E8e(){if(Tz)return sv;Tz=1,Object.defineProperty(sv,"__esModule",{value:!0}),sv.SpeechRecognizer=void 0;const e=Lt(),t=ia,r=Wt(),n=Zt,i=Ct();let o=class jre extends i.Recognizer{constructor(s,l){const c=s;n.Contracts.throwIfNull(c,"speechConfig"),n.Contracts.throwIfNullOrWhitespace(c.properties.getProperty(i.PropertyId.SpeechServiceConnection_RecoLanguage),i.PropertyId[i.PropertyId.SpeechServiceConnection_RecoLanguage]),super(l,c.properties,new e.SpeechConnectionFactory,s.tokenCredential),this.privDisposedRecognizer=!1}static FromConfig(s,l,c){const d=s;return l.properties.mergeTo(d.properties),new jre(s,c)}get endpointId(){return n.Contracts.throwIfDisposed(this.privDisposedRecognizer),this.properties.getProperty(i.PropertyId.SpeechServiceConnection_EndpointId,"00000000-0000-0000-0000-000000000000")}get authorizationToken(){return this.properties.getProperty(i.PropertyId.SpeechServiceAuthorization_Token)}set authorizationToken(s){n.Contracts.throwIfNullOrWhitespace(s,"token"),this.properties.setProperty(i.PropertyId.SpeechServiceAuthorization_Token,s)}get speechRecognitionLanguage(){return n.Contracts.throwIfDisposed(this.privDisposedRecognizer),this.properties.getProperty(i.PropertyId.SpeechServiceConnection_RecoLanguage)}get outputFormat(){return n.Contracts.throwIfDisposed(this.privDisposedRecognizer),this.properties.getProperty(e.OutputFormatPropertyName,i.OutputFormat[i.OutputFormat.Simple])===i.OutputFormat[i.OutputFormat.Simple]?i.OutputFormat.Simple:i.OutputFormat.Detailed}get properties(){return this.privProperties}recognizeOnceAsync(s,l){(0,r.marshalPromiseToCallbacks)(this.recognizeOnceAsyncImpl(t.RecognitionMode.Interactive),s,l)}startContinuousRecognitionAsync(s,l){(0,r.marshalPromiseToCallbacks)(this.startContinuousRecognitionAsyncImpl(this.properties.getProperty(e.ForceDictationPropertyName,void 0)===void 0?t.RecognitionMode.Conversation:t.RecognitionMode.Dictation),s,l)}stopContinuousRecognitionAsync(s,l){(0,r.marshalPromiseToCallbacks)(this.stopContinuousRecognitionAsyncImpl(),s,l)}startKeywordRecognitionAsync(s,l,c){n.Contracts.throwIfNull(s,"model"),c&&c("Not yet implemented.")}stopKeywordRecognitionAsync(s){s&&s()}close(s,l){n.Contracts.throwIfDisposed(this.privDisposedRecognizer),(0,r.marshalPromiseToCallbacks)(this.dispose(!0),s,l)}async dispose(s){this.privDisposedRecognizer||(s&&(this.privDisposedRecognizer=!0,await this.implRecognizerStop()),await super.dispose(s))}createRecognizerConfig(s){return new e.RecognizerConfig(s,this.privProperties)}createServiceRecognizer(s,l,c,d){const u=c;return new e.SpeechServiceRecognizer(s,l,u,d,this)}};return sv.SpeechRecognizer=o,sv}var lv={},Az;function R8e(){if(Az)return lv;Az=1,Object.defineProperty(lv,"__esModule",{value:!0}),lv.IntentRecognizer=void 0;const e=Lt(),t=ia,r=Wt(),n=Zt,i=Ct();let o=class extends i.Recognizer{constructor(s,l){n.Contracts.throwIfNullOrUndefined(s,"speechConfig");const c=s;n.Contracts.throwIfNullOrUndefined(c,"speechConfig"),super(l,c.properties,new e.IntentConnectionFactory),this.privAddedIntents=[],this.privAddedLmIntents={},this.privDisposedIntentRecognizer=!1,this.privProperties=c.properties,n.Contracts.throwIfNullOrWhitespace(this.properties.getProperty(i.PropertyId.SpeechServiceConnection_RecoLanguage),i.PropertyId[i.PropertyId.SpeechServiceConnection_RecoLanguage])}get speechRecognitionLanguage(){return n.Contracts.throwIfDisposed(this.privDisposedIntentRecognizer),this.properties.getProperty(i.PropertyId.SpeechServiceConnection_RecoLanguage)}get authorizationToken(){return this.properties.getProperty(i.PropertyId.SpeechServiceAuthorization_Token)}set authorizationToken(s){this.properties.setProperty(i.PropertyId.SpeechServiceAuthorization_Token,s)}get properties(){return this.privProperties}recognizeOnceAsync(s,l){if(n.Contracts.throwIfDisposed(this.privDisposedIntentRecognizer),Object.keys(this.privAddedLmIntents).length!==0||this.privUmbrellaIntent!==void 0){const c=this.buildSpeechContext();this.privReco.speechContext.getContext().intent=c.Intent,this.privReco.dynamicGrammar.addReferenceGrammar(c.ReferenceGrammars),this.privReco.setIntents(this.privAddedLmIntents,this.privUmbrellaIntent)}(0,r.marshalPromiseToCallbacks)(this.recognizeOnceAsyncImpl(t.RecognitionMode.Interactive),s,l)}startContinuousRecognitionAsync(s,l){if(Object.keys(this.privAddedLmIntents).length!==0||this.privUmbrellaIntent!==void 0){const c=this.buildSpeechContext();this.privReco.speechContext.getContext().intent=c.Intent,this.privReco.dynamicGrammar.addReferenceGrammar(c.ReferenceGrammars),this.privReco.setIntents(this.privAddedLmIntents,this.privUmbrellaIntent)}(0,r.marshalPromiseToCallbacks)(this.startContinuousRecognitionAsyncImpl(t.RecognitionMode.Conversation),s,l)}stopContinuousRecognitionAsync(s,l){(0,r.marshalPromiseToCallbacks)(this.stopContinuousRecognitionAsyncImpl(),s,l)}startKeywordRecognitionAsync(s,l,c){n.Contracts.throwIfNull(s,"model"),c&&c("Not yet implemented.")}stopKeywordRecognitionAsync(s,l){if(s)try{s()}catch(c){l&&l(c)}}addIntent(s,l){n.Contracts.throwIfDisposed(this.privDisposedIntentRecognizer),n.Contracts.throwIfNullOrWhitespace(l,"intentId"),n.Contracts.throwIfNullOrWhitespace(s,"simplePhrase"),this.privAddedIntents.push([l,s])}addIntentWithLanguageModel(s,l,c){n.Contracts.throwIfDisposed(this.privDisposedIntentRecognizer),n.Contracts.throwIfNullOrWhitespace(s,"intentId"),n.Contracts.throwIfNull(l,"model");const d=l;n.Contracts.throwIfNullOrWhitespace(d.appId,"model.appId"),this.privAddedLmIntents[s]=new e.AddedLmIntent(d,c)}addAllIntents(s,l){n.Contracts.throwIfNull(s,"model");const c=s;n.Contracts.throwIfNullOrWhitespace(c.appId,"model.appId"),this.privUmbrellaIntent=new e.AddedLmIntent(c,l)}close(s,l){n.Contracts.throwIfDisposed(this.privDisposedIntentRecognizer),(0,r.marshalPromiseToCallbacks)(this.dispose(!0),s,l)}createRecognizerConfig(s){return new e.RecognizerConfig(s,this.privProperties)}createServiceRecognizer(s,l,c,d){const u=c;return new e.IntentServiceRecognizer(s,l,u,d,this)}async dispose(s){this.privDisposedIntentRecognizer||s&&(this.privDisposedIntentRecognizer=!0,await super.dispose(s))}buildSpeechContext(){let s,l,c;const d=[];this.privUmbrellaIntent!==void 0&&(s=this.privUmbrellaIntent.modelImpl.appId,l=this.privUmbrellaIntent.modelImpl.region,c=this.privUmbrellaIntent.modelImpl.subscriptionKey);for(const u of Object.keys(this.privAddedLmIntents)){const f=this.privAddedLmIntents[u];if(s===void 0)s=f.modelImpl.appId;else if(s!==f.modelImpl.appId)throw new Error("Intents must all be from the same LUIS model");if(l===void 0)l=f.modelImpl.region;else if(l!==f.modelImpl.region)throw new Error("Intents must all be from the same LUIS model in a single region");if(c===void 0)c=f.modelImpl.subscriptionKey;else if(c!==f.modelImpl.subscriptionKey)throw new Error("Intents must all use the same subscription key");const h="luis/"+s+"-PRODUCTION#"+u;d.push(h)}return{Intent:{id:s,key:c===void 0?this.privProperties.getProperty(i.PropertyId[i.PropertyId.SpeechServiceConnection_Key]):c,provider:"LUIS"},ReferenceGrammars:this.privUmbrellaIntent===void 0?d:["luis/"+s+"-PRODUCTION"]}}};return lv.IntentRecognizer=o,lv}var Fre={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.VoiceProfileType=void 0,function(t){t[t.TextIndependentIdentification=0]="TextIndependentIdentification",t[t.TextDependentVerification=1]="TextDependentVerification",t[t.TextIndependentVerification=2]="TextIndependentVerification"}(e.VoiceProfileType||(e.VoiceProfileType={}))})(Fre);var cv={},uv={},mu={},Mz;function zre(){if(Mz)return mu;Mz=1,Object.defineProperty(mu,"__esModule",{value:!0}),mu.ConnectionMessageImpl=mu.ConnectionMessage=void 0;const e=pi,t=Wt(),r=Dre(),n=_E;let i=class{};mu.ConnectionMessage=i;class o{constructor(s){this.privConnectionMessage=s,this.privProperties=new r.PropertyCollection,this.privConnectionMessage.headers[e.HeaderNames.ConnectionId]&&this.privProperties.setProperty(n.PropertyId.Speech_SessionId,this.privConnectionMessage.headers[e.HeaderNames.ConnectionId]),Object.keys(this.privConnectionMessage.headers).forEach(l=>{this.privProperties.setProperty(l,this.privConnectionMessage.headers[l])})}get path(){return this.privConnectionMessage.headers[Object.keys(this.privConnectionMessage.headers).find(s=>s.toLowerCase()==="path".toLowerCase())]}get isTextMessage(){return this.privConnectionMessage.messageType===t.MessageType.Text}get isBinaryMessage(){return this.privConnectionMessage.messageType===t.MessageType.Binary}get TextMessage(){return this.privConnectionMessage.textBody}get binaryMessage(){return this.privConnectionMessage.binaryBody}get properties(){return this.privProperties}toString(){return""}}return mu.ConnectionMessageImpl=o,mu}var $z;function Bre(){if($z)return uv;$z=1,Object.defineProperty(uv,"__esModule",{value:!0}),uv.Connection=void 0;const e=Lt(),t=Wt(),r=zre(),n=Zt,i=Ct();let o=class M${static fromRecognizer(s){const l=s.internalData,c=new M$;return c.privInternalData=l,c.setupEvents(),c}static fromSynthesizer(s){const l=s.internalData,c=new M$;return c.privInternalData=l,c.setupEvents(),c}openConnection(s,l){(0,t.marshalPromiseToCallbacks)(this.privInternalData.connect(),s,l)}closeConnection(s,l){if(this.privInternalData instanceof e.SynthesisAdapterBase)throw new Error("Disconnecting a synthesizer's connection is currently not supported");(0,t.marshalPromiseToCallbacks)(this.privInternalData.disconnect(),s,l)}setMessageProperty(s,l,c){if(n.Contracts.throwIfNullOrWhitespace(l,"propertyName"),this.privInternalData instanceof e.ServiceRecognizerBase){if(s.toLowerCase()!=="speech.context")throw new Error("Only speech.context message property sets are currently supported for recognizer");{const d=this.privInternalData.speechContext.getContext();d[l]=c}}else if(this.privInternalData instanceof e.SynthesisAdapterBase){if(s.toLowerCase()!=="speech.config"&&s.toLowerCase()!=="synthesis.context")throw new Error("Only speech.config and synthesis.context message paths are currently supported for synthesizer");if(s.toLowerCase()==="speech.config"){if(l.toLowerCase()!=="context")throw new Error("Only context property is currently supported for speech.config message path for synthesizer");this.privInternalData.synthesizerConfig.setContextFromJson(c)}else this.privInternalData.synthesisContext.setSection(l,c)}}sendMessageAsync(s,l,c,d){(0,t.marshalPromiseToCallbacks)(this.privInternalData.sendNetworkMessage(s,l),c,d)}close(){}setupEvents(){this.privEventListener=this.privInternalData.connectionEvents.attach(s=>{s.name==="ConnectionEstablishedEvent"?this.connected&&this.connected(new i.ConnectionEventArgs(s.connectionId)):s.name==="ConnectionClosedEvent"?this.disconnected&&this.disconnected(new i.ConnectionEventArgs(s.connectionId)):s.name==="ConnectionMessageSentEvent"?this.messageSent&&this.messageSent(new i.ConnectionMessageEventArgs(new r.ConnectionMessageImpl(s.message))):s.name==="ConnectionMessageReceivedEvent"&&this.messageReceived&&this.messageReceived(new i.ConnectionMessageEventArgs(new r.ConnectionMessageImpl(s.message)))}),this.privServiceEventListener=this.privInternalData.serviceEvents.attach(s=>{this.receivedServiceMessage&&this.receivedServiceMessage(new i.ServiceEventArgs(s.jsonString,s.name))})}};return uv.Connection=o,uv}var kz;function P8e(){if(kz)return cv;kz=1,Object.defineProperty(cv,"__esModule",{value:!0}),cv.TranslationRecognizer=void 0;const e=Lt(),t=ia,r=Wt(),n=Bre(),i=Zt,o=Ct();let a=class Hre extends o.Recognizer{constructor(l,c,d){const u=l;i.Contracts.throwIfNull(u,"speechConfig"),super(c,u.properties,d||new e.TranslationConnectionFactory,l.tokenCredential),this.privDisposedTranslationRecognizer=!1,this.properties.getProperty(o.PropertyId.SpeechServiceConnection_TranslationVoice,void 0)!==void 0&&i.Contracts.throwIfNullOrWhitespace(this.properties.getProperty(o.PropertyId.SpeechServiceConnection_TranslationVoice),o.PropertyId[o.PropertyId.SpeechServiceConnection_TranslationVoice]),i.Contracts.throwIfNullOrWhitespace(this.properties.getProperty(o.PropertyId.SpeechServiceConnection_TranslationToLanguages),o.PropertyId[o.PropertyId.SpeechServiceConnection_TranslationToLanguages]),i.Contracts.throwIfNullOrWhitespace(this.properties.getProperty(o.PropertyId.SpeechServiceConnection_RecoLanguage),o.PropertyId[o.PropertyId.SpeechServiceConnection_RecoLanguage])}static FromConfig(l,c,d){const u=l;return c.properties.mergeTo(u.properties),c.properties.getProperty(o.PropertyId.SpeechServiceConnection_AutoDetectSourceLanguages,void 0)===e.AutoDetectSourceLanguagesOpenRangeOptionName&&u.properties.setProperty(o.PropertyId.SpeechServiceConnection_RecoLanguage,"en-US"),new Hre(l,d)}get speechRecognitionLanguage(){return i.Contracts.throwIfDisposed(this.privDisposedTranslationRecognizer),this.properties.getProperty(o.PropertyId.SpeechServiceConnection_RecoLanguage)}get targetLanguages(){return i.Contracts.throwIfDisposed(this.privDisposedTranslationRecognizer),this.properties.getProperty(o.PropertyId.SpeechServiceConnection_TranslationToLanguages).split(",")}get voiceName(){return i.Contracts.throwIfDisposed(this.privDisposedTranslationRecognizer),this.properties.getProperty(o.PropertyId.SpeechServiceConnection_TranslationVoice,void 0)}get properties(){return this.privProperties}get authorizationToken(){return this.properties.getProperty(o.PropertyId.SpeechServiceAuthorization_Token)}set authorizationToken(l){this.properties.setProperty(o.PropertyId.SpeechServiceAuthorization_Token,l)}recognizeOnceAsync(l,c){i.Contracts.throwIfDisposed(this.privDisposedTranslationRecognizer),(0,r.marshalPromiseToCallbacks)(this.recognizeOnceAsyncImpl(t.RecognitionMode.Interactive),l,c)}startContinuousRecognitionAsync(l,c){(0,r.marshalPromiseToCallbacks)(this.startContinuousRecognitionAsyncImpl(t.RecognitionMode.Conversation),l,c)}stopContinuousRecognitionAsync(l,c){(0,r.marshalPromiseToCallbacks)(this.stopContinuousRecognitionAsyncImpl(),l,c)}removeTargetLanguage(l){if(i.Contracts.throwIfNullOrUndefined(l,"language to be removed"),this.properties.getProperty(o.PropertyId.SpeechServiceConnection_TranslationToLanguages,void 0)!==void 0){const c=this.properties.getProperty(o.PropertyId.SpeechServiceConnection_TranslationToLanguages).split(","),d=c.indexOf(l);d>-1&&(c.splice(d,1),this.properties.setProperty(o.PropertyId.SpeechServiceConnection_TranslationToLanguages,c.join(",")),this.updateLanguages(c))}}addTargetLanguage(l){i.Contracts.throwIfNullOrUndefined(l,"language to be added");let c=[];this.properties.getProperty(o.PropertyId.SpeechServiceConnection_TranslationToLanguages,void 0)!==void 0?(c=this.properties.getProperty(o.PropertyId.SpeechServiceConnection_TranslationToLanguages).split(","),c.includes(l)||(c.push(l),this.properties.setProperty(o.PropertyId.SpeechServiceConnection_TranslationToLanguages,c.join(",")))):(this.properties.setProperty(o.PropertyId.SpeechServiceConnection_TranslationToLanguages,l),c=[l]),this.updateLanguages(c)}close(l,c){i.Contracts.throwIfDisposed(this.privDisposedTranslationRecognizer),(0,r.marshalPromiseToCallbacks)(this.dispose(!0),l,c)}onConnection(){}async dispose(l){this.privDisposedTranslationRecognizer||(this.privDisposedTranslationRecognizer=!0,l&&(await this.implRecognizerStop(),await super.dispose(l)))}createRecognizerConfig(l){return new e.RecognizerConfig(l,this.privProperties)}createServiceRecognizer(l,c,d,u){const f=d;return new e.TranslationServiceRecognizer(l,c,f,u,this)}updateLanguages(l){const c=n.Connection.fromRecognizer(this);c&&(c.setMessageProperty("speech.context","translationcontext",{to:l}),c.sendMessageAsync("event",JSON.stringify({id:"translation",name:"updateLanguage",to:l})))}};return cv.TranslationRecognizer=a,cv}var dv={},Nz;function I8e(){if(Nz)return dv;Nz=1,Object.defineProperty(dv,"__esModule",{value:!0}),dv.Translations=void 0;const e=Ct();let t=class{constructor(){this.privMap=new e.PropertyCollection}get languages(){return this.privMap.keys}get(n,i){return this.privMap.getProperty(n,i)}set(n,i){this.privMap.setProperty(n,i)}};return dv.Translations=t,dv}var Vre={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NoMatchReason=void 0,function(t){t[t.NotRecognized=0]="NotRecognized",t[t.InitialSilenceTimeout=1]="InitialSilenceTimeout",t[t.InitialBabbleTimeout=2]="InitialBabbleTimeout"}(e.NoMatchReason||(e.NoMatchReason={}))})(Vre);var fv={},Dz;function x8e(){if(Dz)return fv;Dz=1,Object.defineProperty(fv,"__esModule",{value:!0}),fv.NoMatchDetails=void 0;const e=Lt(),t=Ct();let r=class Ure{constructor(i){this.privReason=i}static fromResult(i){const o=e.SimpleSpeechPhrase.fromJSON(i.json,0);let a=t.NoMatchReason.NotRecognized;switch(o.RecognitionStatus){case e.RecognitionStatus.BabbleTimeout:a=t.NoMatchReason.InitialBabbleTimeout;break;case e.RecognitionStatus.InitialSilenceTimeout:a=t.NoMatchReason.InitialSilenceTimeout;break;default:a=t.NoMatchReason.NotRecognized;break}return new Ure(a)}get reason(){return this.privReason}};return fv.NoMatchDetails=r,fv}var EE={};Object.defineProperty(EE,"__esModule",{value:!0});EE.TranslationRecognitionCanceledEventArgs=void 0;class O8e{constructor(t,r,n,i,o){this.privCancelReason=r,this.privErrorDetails=n,this.privResult=o,this.privSessionId=t,this.privErrorCode=i}get result(){return this.privResult}get sessionId(){return this.privSessionId}get reason(){return this.privCancelReason}get errorCode(){return this.privErrorCode}get errorDetails(){return this.privErrorDetails}}EE.TranslationRecognitionCanceledEventArgs=O8e;var pv={},Lz;function T8e(){if(Lz)return pv;Lz=1,Object.defineProperty(pv,"__esModule",{value:!0}),pv.IntentRecognitionCanceledEventArgs=void 0;const e=Ct();let t=class extends e.IntentRecognitionEventArgs{constructor(n,i,o,a,s,l){super(a,s,l),this.privReason=n,this.privErrorDetails=i,this.privErrorCode=o}get reason(){return this.privReason}get errorCode(){return this.privErrorCode}get errorDetails(){return this.privErrorDetails}};return pv.IntentRecognitionCanceledEventArgs=t,pv}var P0={};Object.defineProperty(P0,"__esModule",{value:!0});P0.CancellationDetailsBase=void 0;class A8e{constructor(t,r,n){this.privReason=t,this.privErrorDetails=r,this.privErrorCode=n}get reason(){return this.privReason}get errorDetails(){return this.privErrorDetails}get ErrorCode(){return this.privErrorCode}}P0.CancellationDetailsBase=A8e;var hv={},jz;function M8e(){if(jz)return hv;jz=1,Object.defineProperty(hv,"__esModule",{value:!0}),hv.CancellationDetails=void 0;const e=Lt(),t=P0,r=Ct();let n=class Wre extends t.CancellationDetailsBase{constructor(o,a,s){super(o,a,s)}static fromResult(o){let a=r.CancellationReason.Error,s=r.CancellationErrorCode.NoError;if(o instanceof r.RecognitionResult&&o.json){const l=e.SimpleSpeechPhrase.fromJSON(o.json,0);a=e.EnumTranslation.implTranslateCancelResult(l.RecognitionStatus)}return o.properties&&(s=r.CancellationErrorCode[o.properties.getProperty(e.CancellationErrorCodePropertyName,r.CancellationErrorCode[r.CancellationErrorCode.NoError])]),new Wre(a,o.errorDetails||e.EnumTranslation.implTranslateErrorDetails(s),s)}};return hv.CancellationDetails=n,hv}var qre={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CancellationErrorCode=void 0,function(t){t[t.NoError=0]="NoError",t[t.AuthenticationFailure=1]="AuthenticationFailure",t[t.BadRequestParameters=2]="BadRequestParameters",t[t.TooManyRequests=3]="TooManyRequests",t[t.ConnectionFailure=4]="ConnectionFailure",t[t.ServiceTimeout=5]="ServiceTimeout",t[t.ServiceError=6]="ServiceError",t[t.RuntimeError=7]="RuntimeError",t[t.Forbidden=8]="Forbidden"}(e.CancellationErrorCode||(e.CancellationErrorCode={}))})(qre);var vv={},Fz;function $8e(){if(Fz)return vv;Fz=1,Object.defineProperty(vv,"__esModule",{value:!0}),vv.ConnectionEventArgs=void 0;const e=Ct();let t=class extends e.SessionEventArgs{};return vv.ConnectionEventArgs=t,vv}var gv={},zz;function k8e(){if(zz)return gv;zz=1,Object.defineProperty(gv,"__esModule",{value:!0}),gv.ServiceEventArgs=void 0;const e=Ct();let t=class extends e.SessionEventArgs{constructor(n,i,o){super(o),this.privJsonResult=n,this.privEventName=i}get jsonString(){return this.privJsonResult}get eventName(){return this.privEventName}};return gv.ServiceEventArgs=t,gv}var RE={};Object.defineProperty(RE,"__esModule",{value:!0});RE.PhraseListGrammar=void 0;const N8e=Zt;class V3{constructor(t){this.privGrammerBuilder=t.dynamicGrammar}static fromRecognizer(t){const r=t.internalData;return new V3(r)}addPhrase(t){this.privGrammerBuilder.addPhrase(t)}addPhrases(t){this.privGrammerBuilder.addPhrase(t)}clear(){this.privGrammerBuilder.clearPhrases()}setWeight(t){N8e.Contracts.throwIfNumberOutOfRange(t,"weight",0,2),this.privGrammerBuilder.setWeight(t)}}RE.PhraseListGrammar=V3;var yu={},Bz;function U3(){if(Bz)return yu;Bz=1,Object.defineProperty(yu,"__esModule",{value:!0}),yu.DialogServiceConfigImpl=yu.DialogServiceConfig=void 0;const e=Zt,t=Ct();let r=class{constructor(){}set applicationId(o){}static get DialogTypes(){return{BotFramework:"bot_framework",CustomCommands:"custom_commands"}}};yu.DialogServiceConfig=r;class n extends r{constructor(){super(),this.privSpeechConfig=new t.SpeechConfigImpl}get properties(){return this.privSpeechConfig.properties}get speechRecognitionLanguage(){return this.privSpeechConfig.speechRecognitionLanguage}set speechRecognitionLanguage(o){e.Contracts.throwIfNullOrWhitespace(o,"value"),this.privSpeechConfig.speechRecognitionLanguage=o}get outputFormat(){return this.privSpeechConfig.outputFormat}set outputFormat(o){this.privSpeechConfig.outputFormat=o}setProperty(o,a){this.privSpeechConfig.setProperty(o,a)}getProperty(o,a){return this.privSpeechConfig.getProperty(o)}setProxy(o,a,s,l){this.setProperty(t.PropertyId.SpeechServiceConnection_ProxyHostName,o),this.setProperty(t.PropertyId.SpeechServiceConnection_ProxyPort,`${a}`),s&&this.setProperty(t.PropertyId.SpeechServiceConnection_ProxyUserName,s),l&&this.setProperty(t.PropertyId.SpeechServiceConnection_ProxyPassword,l)}setServiceProperty(o,a,s){this.privSpeechConfig.setServiceProperty(o,a)}close(){}}return yu.DialogServiceConfigImpl=n,yu}var mv={},Hz;function D8e(){if(Hz)return mv;Hz=1,Object.defineProperty(mv,"__esModule",{value:!0}),mv.BotFrameworkConfig=void 0;const e=Zt,t=U3(),r=Ct();let n=class extends t.DialogServiceConfigImpl{constructor(){super()}static fromSubscription(o,a,s){e.Contracts.throwIfNullOrWhitespace(o,"subscription"),e.Contracts.throwIfNullOrWhitespace(a,"region");const l=new t.DialogServiceConfigImpl;return l.setProperty(r.PropertyId.Conversation_DialogType,t.DialogServiceConfig.DialogTypes.BotFramework),l.setProperty(r.PropertyId.SpeechServiceConnection_Key,o),l.setProperty(r.PropertyId.SpeechServiceConnection_Region,a),s&&l.setProperty(r.PropertyId.Conversation_ApplicationId,s),l}static fromAuthorizationToken(o,a,s){e.Contracts.throwIfNullOrWhitespace(o,"authorizationToken"),e.Contracts.throwIfNullOrWhitespace(a,"region");const l=new t.DialogServiceConfigImpl;return l.setProperty(r.PropertyId.Conversation_DialogType,t.DialogServiceConfig.DialogTypes.BotFramework),l.setProperty(r.PropertyId.SpeechServiceAuthorization_Token,o),l.setProperty(r.PropertyId.SpeechServiceConnection_Region,a),s&&l.setProperty(r.PropertyId.Conversation_ApplicationId,s),l}static fromHost(o,a,s){e.Contracts.throwIfNullOrUndefined(o,"host");const l=o instanceof URL?o:new URL(`wss://${o}.convai.speech.azure.us`);e.Contracts.throwIfNullOrUndefined(l,"resolvedHost");const c=new t.DialogServiceConfigImpl;return c.setProperty(r.PropertyId.Conversation_DialogType,t.DialogServiceConfig.DialogTypes.BotFramework),c.setProperty(r.PropertyId.SpeechServiceConnection_Host,l.toString()),a!==void 0&&c.setProperty(r.PropertyId.SpeechServiceConnection_Key,a),c}static fromEndpoint(o,a){e.Contracts.throwIfNull(o,"endpoint");const s=new t.DialogServiceConfigImpl;return s.setProperty(r.PropertyId.Conversation_DialogType,t.DialogServiceConfig.DialogTypes.BotFramework),s.setProperty(r.PropertyId.SpeechServiceConnection_Endpoint,o.toString()),a!==void 0&&s.setProperty(r.PropertyId.SpeechServiceConnection_Key,a),s}};return mv.BotFrameworkConfig=n,mv}var yv={},Vz;function L8e(){if(Vz)return yv;Vz=1,Object.defineProperty(yv,"__esModule",{value:!0}),yv.CustomCommandsConfig=void 0;const e=Zt,t=U3(),r=Ct();let n=class extends t.DialogServiceConfigImpl{constructor(){super()}static fromSubscription(o,a,s){e.Contracts.throwIfNullOrWhitespace(o,"applicationId"),e.Contracts.throwIfNullOrWhitespace(a,"subscription"),e.Contracts.throwIfNullOrWhitespace(s,"region");const l=new t.DialogServiceConfigImpl;return l.setProperty(r.PropertyId.Conversation_DialogType,t.DialogServiceConfig.DialogTypes.CustomCommands),l.setProperty(r.PropertyId.Conversation_ApplicationId,o),l.setProperty(r.PropertyId.SpeechServiceConnection_Key,a),l.setProperty(r.PropertyId.SpeechServiceConnection_Region,s),l}static fromAuthorizationToken(o,a,s){e.Contracts.throwIfNullOrWhitespace(o,"applicationId"),e.Contracts.throwIfNullOrWhitespace(a,"authorizationToken"),e.Contracts.throwIfNullOrWhitespace(s,"region");const l=new t.DialogServiceConfigImpl;return l.setProperty(r.PropertyId.Conversation_DialogType,t.DialogServiceConfig.DialogTypes.CustomCommands),l.setProperty(r.PropertyId.Conversation_ApplicationId,o),l.setProperty(r.PropertyId.SpeechServiceAuthorization_Token,a),l.setProperty(r.PropertyId.SpeechServiceConnection_Region,s),l}set applicationId(o){e.Contracts.throwIfNullOrWhitespace(o,"value"),this.setProperty(r.PropertyId.Conversation_ApplicationId,o)}get applicationId(){return this.getProperty(r.PropertyId.Conversation_ApplicationId)}};return yv.CustomCommandsConfig=n,yv}var Sv={},Cv={},bv={},hs={};Object.defineProperty(hs,"__esModule",{value:!0});hs.QueryParameterNames=void 0;class Cn{}hs.QueryParameterNames=Cn;Cn.BotId="botid";Cn.CustomSpeechDeploymentId="cid";Cn.CustomVoiceDeploymentId="deploymentId";Cn.EnableAudioLogging="storeAudio";Cn.EnableLanguageId="lidEnabled";Cn.EnableWordLevelTimestamps="wordLevelTimestamps";Cn.EndSilenceTimeoutMs="endSilenceTimeoutMs";Cn.SegmentationSilenceTimeoutMs="segmentationSilenceTimeoutMs";Cn.SegmentationMaximumTimeMs="segmentationMaximumTimeMs";Cn.SegmentationStrategy="segmentationStrategy";Cn.Format="format";Cn.InitialSilenceTimeoutMs="initialSilenceTimeoutMs";Cn.Language="language";Cn.Profanity="profanity";Cn.RequestBotStatusMessages="enableBotMessageStatus";Cn.StableIntermediateThreshold="stableIntermediateThreshold";Cn.StableTranslation="stableTranslation";Cn.TestHooks="testhooks";Cn.Postprocessing="postprocessing";Cn.CtsMeetingId="meetingId";Cn.CtsDeviceId="deviceId";Cn.CtsIsParticipant="isParticipant";Cn.EnableAvatar="enableTalkingAvatar";var Uz;function vs(){if(Uz)return bv;Uz=1,Object.defineProperty(bv,"__esModule",{value:!0}),bv.ConnectionFactoryBase=void 0;const e=Lt(),t=Wt(),r=Ct(),n=hs;let i=class{static getHostSuffix(a){if(a){if(a.toLowerCase().startsWith("china"))return".azure.cn";if(a.toLowerCase().startsWith("usgov"))return".azure.us"}return".microsoft.com"}setCommonUrlParams(a,s,l){new Map([[r.PropertyId.Speech_SegmentationSilenceTimeoutMs,n.QueryParameterNames.SegmentationSilenceTimeoutMs],[r.PropertyId.SpeechServiceConnection_EnableAudioLogging,n.QueryParameterNames.EnableAudioLogging],[r.PropertyId.SpeechServiceConnection_EndSilenceTimeoutMs,n.QueryParameterNames.EndSilenceTimeoutMs],[r.PropertyId.SpeechServiceConnection_InitialSilenceTimeoutMs,n.QueryParameterNames.InitialSilenceTimeoutMs],[r.PropertyId.SpeechServiceResponse_PostProcessingOption,n.QueryParameterNames.Postprocessing],[r.PropertyId.SpeechServiceResponse_ProfanityOption,n.QueryParameterNames.Profanity],[r.PropertyId.SpeechServiceResponse_RequestWordLevelTimestamps,n.QueryParameterNames.EnableWordLevelTimestamps],[r.PropertyId.SpeechServiceResponse_StablePartialResultThreshold,n.QueryParameterNames.StableIntermediateThreshold]]).forEach((u,f)=>{this.setUrlParameter(f,u,a,s,l)});const d=JSON.parse(a.parameters.getProperty(e.ServicePropertiesPropertyName,"{}"));Object.keys(d).forEach(u=>{s[u]=d[u]})}setUrlParameter(a,s,l,c,d){const u=l.parameters.getProperty(a,void 0);u&&(!d||d.search(s)===-1)&&(c[s]=u.toLocaleLowerCase())}static async getRedirectUrlFromEndpoint(a){const s=new URL(a);s.protocol="https:",s.port="443",s.searchParams.append("GenerateRedirectResponse","true");const c=s.toString();t.Events.instance.onEvent(new t.ConnectionRedirectEvent("",c,void 0,"ConnectionFactoryBase: redirectUrl request"));const d=await fetch(c);if(d.status!==200)return a;const u=await d.text();t.Events.instance.onEvent(new t.ConnectionRedirectEvent("",u,a,"ConnectionFactoryBase: redirectUrlString"));try{return new URL(u.trim()).toString()}catch{return a}}};return bv.ConnectionFactoryBase=i,bv}var Wz;function j8e(){if(Wz)return Cv;Wz=1,Object.defineProperty(Cv,"__esModule",{value:!0}),Cv.DialogConnectionFactory=void 0;const e=hi(),t=Lt(),r=Ct(),n=vs(),i=Lt(),o=pi,a=hs;class s extends n.ConnectionFactoryBase{create(c,d,u){const f=c.parameters.getProperty(r.PropertyId.Conversation_ApplicationId,""),h=c.parameters.getProperty(r.PropertyId.Conversation_DialogType),v=c.parameters.getProperty(r.PropertyId.SpeechServiceConnection_Region),y=c.parameters.getProperty(r.PropertyId.SpeechServiceConnection_RecoLanguage,"en-US"),g=c.parameters.getProperty(r.PropertyId.Conversation_Request_Bot_Status_Messages,"true"),m={};m[o.HeaderNames.ConnectionId]=u,m[a.QueryParameterNames.Format]=c.parameters.getProperty(t.OutputFormatPropertyName,r.OutputFormat[r.OutputFormat.Simple]).toLowerCase(),m[a.QueryParameterNames.Language]=y,m[a.QueryParameterNames.RequestBotStatusMessages]=g,f&&(m[a.QueryParameterNames.BotId]=f,h===r.DialogServiceConfig.DialogTypes.CustomCommands&&(m[o.HeaderNames.CustomCommandsAppId]=f));const S=h===r.DialogServiceConfig.DialogTypes.CustomCommands?"commands/":"",C=h===r.DialogServiceConfig.DialogTypes.CustomCommands?"v1":h===r.DialogServiceConfig.DialogTypes.BotFramework?"v3":"v0",b={};d.token!=null&&d.token!==""&&(b[d.headerName]=d.token);let w=c.parameters.getProperty(r.PropertyId.SpeechServiceConnection_Endpoint,"");if(!w){const _=n.ConnectionFactoryBase.getHostSuffix(v),R=c.parameters.getProperty(r.PropertyId.SpeechServiceConnection_Host,`wss://${v}.${s.BaseUrl}${_}`);w=`${R.endsWith("/")?R:R+"/"}${S}${s.ApiKey}/${C}`}this.setCommonUrlParams(c,m,w);const E=c.parameters.getProperty("SPEECH-EnableWebsocketCompression","false")==="true";return Promise.resolve(new e.WebsocketConnection(w,m,b,new i.WebsocketMessageFormatter,e.ProxyInfo.fromRecognizerConfig(c),E,u))}}return Cv.DialogConnectionFactory=s,s.ApiKey="api",s.BaseUrl="convai.speech",Cv}var qz;function F8e(){if(qz)return Sv;qz=1,Object.defineProperty(Sv,"__esModule",{value:!0}),Sv.DialogServiceConnector=void 0;const e=j8e(),t=Lt(),r=ia,n=Wt(),i=Zt,o=Ct(),a=_E;let s=class extends o.Recognizer{constructor(c,d){const u=c;i.Contracts.throwIfNull(c,"dialogConfig"),super(d,u.properties,new e.DialogConnectionFactory),this.isTurnComplete=!0,this.privIsDisposed=!1,this.privProperties=u.properties.clone();const f=this.buildAgentConfig();this.privReco.agentConfig.set(f)}connect(c,d){(0,n.marshalPromiseToCallbacks)(this.privReco.connect(),c,d)}disconnect(c,d){(0,n.marshalPromiseToCallbacks)(this.privReco.disconnect(),c,d)}get authorizationToken(){return this.properties.getProperty(a.PropertyId.SpeechServiceAuthorization_Token)}set authorizationToken(c){i.Contracts.throwIfNullOrWhitespace(c,"token"),this.properties.setProperty(a.PropertyId.SpeechServiceAuthorization_Token,c)}get properties(){return this.privProperties}get speechActivityTemplate(){return this.properties.getProperty(a.PropertyId.Conversation_Speech_Activity_Template)}set speechActivityTemplate(c){this.properties.setProperty(a.PropertyId.Conversation_Speech_Activity_Template,c)}listenOnceAsync(c,d){if(this.isTurnComplete){i.Contracts.throwIfDisposed(this.privIsDisposed);const f=(async()=>{await this.privReco.connect(),await this.implRecognizerStop(),this.isTurnComplete=!1;const h=new n.Deferred;await this.privReco.recognize(r.RecognitionMode.Conversation,h.resolve,h.reject);const v=await h.promise;return await this.implRecognizerStop(),v})();f.catch(()=>{this.dispose(!0).catch(()=>{})}),(0,n.marshalPromiseToCallbacks)(f.finally(()=>{this.isTurnComplete=!0}),c,d)}}sendActivityAsync(c,d,u){(0,n.marshalPromiseToCallbacks)(this.privReco.sendMessage(c),d,u)}close(c,d){i.Contracts.throwIfDisposed(this.privIsDisposed),(0,n.marshalPromiseToCallbacks)(this.dispose(!0),c,d)}async dispose(c){this.privIsDisposed||c&&(this.privIsDisposed=!0,await this.implRecognizerStop(),await super.dispose(c))}createRecognizerConfig(c){return new t.RecognizerConfig(c,this.privProperties)}createServiceRecognizer(c,d,u,f){const h=u;return new t.DialogServiceAdapter(c,d,h,f,this)}buildAgentConfig(){return{botInfo:{commType:this.properties.getProperty("Conversation_Communication_Type","Default"),commandsCulture:void 0,connectionId:this.properties.getProperty(a.PropertyId.Conversation_Agent_Connection_Id),conversationId:this.properties.getProperty(a.PropertyId.Conversation_Conversation_Id,void 0),fromId:this.properties.getProperty(a.PropertyId.Conversation_From_Id,void 0),ttsAudioFormat:this.properties.getProperty(a.PropertyId.SpeechServiceConnection_SynthOutputFormat,void 0)},version:.2}}};return Sv.DialogServiceConnector=s,Sv}var PE={};Object.defineProperty(PE,"__esModule",{value:!0});PE.ActivityReceivedEventArgs=void 0;class z8e{constructor(t,r){this.privActivity=t,this.privAudioStream=r}get activity(){return this.privActivity}get audioStream(){return this.privAudioStream}}PE.ActivityReceivedEventArgs=z8e;var IE={},xE={};Object.defineProperty(xE,"__esModule",{value:!0});xE.TurnStatusResponsePayload=void 0;class W3{constructor(t){this.privMessageStatusResponse=JSON.parse(t)}static fromJSON(t){return new W3(t)}get interactionId(){return this.privMessageStatusResponse.interactionId}get conversationId(){return this.privMessageStatusResponse.conversationId}get statusCode(){switch(this.privMessageStatusResponse.statusCode){case"Success":return 200;case"Failed":return 400;case"TimedOut":return 429;default:return this.privMessageStatusResponse.statusCode}}}xE.TurnStatusResponsePayload=W3;Object.defineProperty(IE,"__esModule",{value:!0});IE.TurnStatusReceivedEventArgs=void 0;const B8e=xE;class H8e{constructor(t){this.privTurnStatus=B8e.TurnStatusResponsePayload.fromJSON(t)}get interactionId(){return this.privTurnStatus.interactionId}get conversationId(){return this.privTurnStatus.conversationId}get statusCode(){return this.privTurnStatus.statusCode}}IE.TurnStatusReceivedEventArgs=H8e;var Gre={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ServicePropertyChannel=void 0,function(t){t[t.UriQueryParameter=0]="UriQueryParameter"}(e.ServicePropertyChannel||(e.ServicePropertyChannel={}))})(Gre);var Kre={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ProfanityOption=void 0,function(t){t[t.Masked=0]="Masked",t[t.Removed=1]="Removed",t[t.Raw=2]="Raw"}(e.ProfanityOption||(e.ProfanityOption={}))})(Kre);var wv={},Gz;function V8e(){if(Gz)return wv;Gz=1,Object.defineProperty(wv,"__esModule",{value:!0}),wv.BaseAudioPlayer=void 0;const e=_i,t=Ct(),r=Xc;let n=class{constructor(o){this.audioContext=null,this.gainNode=null,this.autoUpdateBufferTimer=0,o===void 0&&(o=t.AudioStreamFormat.getDefaultInputFormat()),this.init(o)}playAudioSample(o,a,s){try{this.ensureInitializedContext();const l=this.formatAudioData(o),c=new Float32Array(this.samples.length+l.length);c.set(this.samples,0),c.set(l,this.samples.length),this.samples=c,a&&a()}catch(l){s&&s(l)}}stopAudio(o,a){this.audioContext!==null&&(this.samples=new Float32Array,clearInterval(this.autoUpdateBufferTimer),this.audioContext.close().then(()=>{o&&o()},s=>{a&&a(s)}),this.audioContext=null)}init(o){this.audioFormat=o,this.samples=new Float32Array}ensureInitializedContext(){if(this.audioContext===null){this.createAudioContext();const o=200;this.autoUpdateBufferTimer=setInterval(()=>{this.updateAudioBuffer()},o)}}createAudioContext(){this.audioContext=r.AudioStreamFormatImpl.getAudioContext(),this.gainNode=this.audioContext.createGain(),this.gainNode.gain.value=1,this.gainNode.connect(this.audioContext.destination),this.startTime=this.audioContext.currentTime}formatAudioData(o){switch(this.audioFormat.bitsPerSample){case 8:return this.formatArrayBuffer(new Int8Array(o),128);case 16:return this.formatArrayBuffer(new Int16Array(o),32768);case 32:return this.formatArrayBuffer(new Int32Array(o),2147483648);default:throw new e.InvalidOperationError("Only WAVE_FORMAT_PCM (8/16/32 bps) format supported at this time")}}formatArrayBuffer(o,a){const s=new Float32Array(o.length);for(let l=0;l<o.length;l++)s[l]=o[l]/a;return s}updateAudioBuffer(){if(this.samples.length===0)return;const o=this.audioFormat.channels,a=this.audioContext.createBufferSource(),s=this.samples.length/o,l=this.audioContext.createBuffer(o,s,this.audioFormat.samplesPerSec);for(let c=0;c<o;c++){let d=c;const u=l.getChannelData(c);for(let f=0;f<this.samples.length;f++,d+=o)u[f]=this.samples[d]}this.startTime<this.audioContext.currentTime&&(this.startTime=this.audioContext.currentTime),a.buffer=l,a.connect(this.gainNode),a.start(this.startTime),this.startTime+=l.duration,this.samples=new Float32Array}async playAudio(o){this.audioContext===null&&this.createAudioContext();const a=this.audioContext.createBufferSource(),s=this.audioContext.destination;await this.audioContext.decodeAudioData(o,l=>{a.buffer=l,a.connect(s),a.start(0)})}};return wv.BaseAudioPlayer=n,wv}var OE={};Object.defineProperty(OE,"__esModule",{value:!0});OE.ConnectionMessageEventArgs=void 0;class U8e{constructor(t){this.privConnectionMessage=t}get message(){return this.privConnectionMessage}toString(){return"Message: "+this.privConnectionMessage.toString()}}OE.ConnectionMessageEventArgs=U8e;var TE={};Object.defineProperty(TE,"__esModule",{value:!0});TE.VoiceProfile=void 0;class W8e{constructor(t,r){this.privId=t,this.privProfileType=r}get profileId(){return this.privId}get profileType(){return this.privProfileType}}TE.VoiceProfile=W8e;var Su={},Kz;function q8e(){if(Kz)return Su;Kz=1,Object.defineProperty(Su,"__esModule",{value:!0}),Su.VoiceProfileEnrollmentCancellationDetails=Su.VoiceProfileEnrollmentResult=void 0;const e=Lt(),t=Ct();let r=class $${constructor(o,a,s){this.privReason=o,this.privProperties=new t.PropertyCollection,this.privReason!==t.ResultReason.Canceled?a&&(this.privDetails=JSON.parse(a),this.privDetails.enrollmentStatus.toLowerCase()==="enrolling"&&(this.privReason=t.ResultReason.EnrollingVoiceProfile)):(this.privErrorDetails=s,this.privProperties.setProperty(e.CancellationErrorCodePropertyName,t.CancellationErrorCode[t.CancellationErrorCode.ServiceError]))}get reason(){return this.privReason}get enrollmentsCount(){return this.privDetails.enrollmentsCount}get enrollmentsLength(){return this.privDetails.enrollmentsLength}get properties(){return this.privProperties}get enrollmentResultDetails(){return this.privDetails}get errorDetails(){return this.privErrorDetails}static FromIdentificationProfileList(o){const a=[];for(const s of o.value){const l=s.enrollmentStatus.toLowerCase()==="enrolling"?t.ResultReason.EnrollingVoiceProfile:s.enrollmentStatus.toLowerCase()==="enrolled"?t.ResultReason.EnrolledVoiceProfile:t.ResultReason.Canceled,c=new $$(l,null,null);c.privDetails=this.getIdentificationDetails(s),a.push(c)}return a}static FromVerificationProfileList(o){const a=[];for(const s of o.value){const l=s.enrollmentStatus.toLowerCase()==="enrolling"?t.ResultReason.EnrollingVoiceProfile:s.enrollmentStatus.toLowerCase()==="enrolled"?t.ResultReason.EnrolledVoiceProfile:t.ResultReason.Canceled,c=new $$(l,null,null);c.privDetails=this.getVerificationDetails(s),a.push(c)}return a}static getIdentificationDetails(o){return{audioLength:o.audioLength?parseFloat(o.audioLength):0,audioSpeechLength:o.audioSpeechLength?parseFloat(o.audioSpeechLength):0,enrollmentStatus:o.enrollmentStatus,enrollmentsCount:o.enrollmentsCount||0,enrollmentsLength:o.enrollmentsLength?parseFloat(o.enrollmentsLength):0,enrollmentsSpeechLength:o.enrollmentsSpeechLength?parseFloat(o.enrollmentsSpeechLength):0,profileId:o.profileId||o.identificationProfileId,remainingEnrollmentsSpeechLength:o.remainingEnrollmentsSpeechLength?parseFloat(o.remainingEnrollmentsSpeechLength):0}}static getVerificationDetails(o){return{audioLength:o.audioLength?parseFloat(o.audioLength):0,audioSpeechLength:o.audioSpeechLength?parseFloat(o.audioSpeechLength):0,enrollmentStatus:o.enrollmentStatus,enrollmentsCount:o.enrollmentsCount,enrollmentsLength:o.enrollmentsLength?parseFloat(o.enrollmentsLength):0,enrollmentsSpeechLength:o.enrollmentsSpeechLength?parseFloat(o.enrollmentsSpeechLength):0,profileId:o.profileId||o.verificationProfileId,remainingEnrollmentsCount:o.remainingEnrollments||o.remainingEnrollmentsCount,remainingEnrollmentsSpeechLength:o.remainingEnrollmentsSpeechLength?parseFloat(o.remainingEnrollmentsSpeechLength):0}}};Su.VoiceProfileEnrollmentResult=r;class n extends t.CancellationDetailsBase{constructor(o,a,s){super(o,a,s)}static fromResult(o){const a=t.CancellationReason.Error;let s=t.CancellationErrorCode.NoError;return o.properties&&(s=t.CancellationErrorCode[o.properties.getProperty(e.CancellationErrorCodePropertyName,t.CancellationErrorCode[t.CancellationErrorCode.NoError])]),new n(a,o.errorDetails,s)}}return Su.VoiceProfileEnrollmentCancellationDetails=n,Su}var Cu={},Yz;function G8e(){if(Yz)return Cu;Yz=1,Object.defineProperty(Cu,"__esModule",{value:!0}),Cu.VoiceProfileCancellationDetails=Cu.VoiceProfileResult=void 0;const e=Lt(),t=Zt,r=Ct();let n=class{constructor(a,s){this.privReason=a,this.privProperties=new r.PropertyCollection,a===r.ResultReason.Canceled&&(t.Contracts.throwIfNullOrUndefined(s,"statusText"),this.privErrorDetails=s,this.privProperties.setProperty(e.CancellationErrorCodePropertyName,r.CancellationErrorCode[r.CancellationErrorCode.ServiceError]))}get reason(){return this.privReason}get properties(){return this.privProperties}get errorDetails(){return this.privErrorDetails}};Cu.VoiceProfileResult=n;class i extends r.CancellationDetailsBase{constructor(a,s,l){super(a,s,l)}static fromResult(a){const s=r.CancellationReason.Error;let l=r.CancellationErrorCode.NoError;return a.properties&&(l=r.CancellationErrorCode[a.properties.getProperty(e.CancellationErrorCodePropertyName,r.CancellationErrorCode[r.CancellationErrorCode.NoError])]),new i(s,a.errorDetails,l)}}return Cu.VoiceProfileCancellationDetails=i,Cu}var _v={},Xz;function K8e(){if(Xz)return _v;Xz=1,Object.defineProperty(_v,"__esModule",{value:!0}),_v.VoiceProfilePhraseResult=void 0;const e=Zt,t=Ct();let r=class extends t.VoiceProfileResult{constructor(i,o,a,s){super(i,o),this.privPhrases=[],e.Contracts.throwIfNullOrUndefined(s,"phrase array"),this.privType=a,s&&s[0]&&(this.privPhrases=s)}get phrases(){return this.privPhrases}get type(){return this.privType}};return _v.VoiceProfilePhraseResult=r,_v}var Ev={},Qz;function Y8e(){if(Qz)return Ev;Qz=1,Object.defineProperty(Ev,"__esModule",{value:!0}),Ev.VoiceProfileClient=void 0;const e=Lt(),t=xre(),r=Zt,n=Ct();let i=class extends n.Recognizer{constructor(a){r.Contracts.throwIfNullOrUndefined(a,"speechConfig");const s=a;r.Contracts.throwIfNull(s,"speechConfig"),super(t.AudioConfig.fromStreamInput(n.AudioInputStream.createPushStream()),s.properties,new e.VoiceProfileConnectionFactory),this.privProperties=s.properties.clone(),this.privVoiceAdapter=this.privReco,this.privDisposedVoiceAdapter=!1}get properties(){return this.privProperties}get authorizationToken(){return this.properties.getProperty(n.PropertyId.SpeechServiceAuthorization_Token)}set authorizationToken(a){r.Contracts.throwIfNullOrWhitespace(a,"token"),this.properties.setProperty(n.PropertyId.SpeechServiceAuthorization_Token,a)}async createProfileAsync(a,s){const l=await this.privVoiceAdapter.createProfile(a,s);return new n.VoiceProfile(l[0],a)}async retrieveEnrollmentResultAsync(a){return this.privVoiceAdapter.retrieveEnrollmentResult(a)}async getAllProfilesAsync(a){return this.privVoiceAdapter.getAllProfiles(a)}async getActivationPhrasesAsync(a,s){return this.privVoiceAdapter.getActivationPhrases(a,s)}async enrollProfileAsync(a,s){const l=s;return r.Contracts.throwIfNullOrUndefined(l,"audioConfig"),this.audioConfig=s,this.privVoiceAdapter.SpeakerAudioSource=l,this.privVoiceAdapter.enrollProfile(a)}async deleteProfileAsync(a){return this.privVoiceAdapter.deleteProfile(a)}async resetProfileAsync(a){return this.privVoiceAdapter.resetProfile(a)}async close(){await this.dispose(!0)}createServiceRecognizer(a,s,l,c){const d=l;return new e.VoiceServiceRecognizer(a,s,d,c,this)}async dispose(a){this.privDisposedVoiceAdapter||(this.privDisposedVoiceAdapter=!0,a&&await super.dispose(a))}createRecognizerConfig(a){return new e.RecognizerConfig(a,this.properties)}getResult(a,s){return new n.VoiceProfileResult(a.ok?s:n.ResultReason.Canceled,a.statusText)}};return Ev.VoiceProfileClient=i,Ev}var Rv={},Jz;function X8e(){if(Jz)return Rv;Jz=1,Object.defineProperty(Rv,"__esModule",{value:!0}),Rv.SpeakerRecognizer=void 0;const e=Lt(),t=Zt,r=Ct();let n=class extends r.Recognizer{constructor(o,a){t.Contracts.throwIfNullOrUndefined(o,"speechConfig");const s=o;t.Contracts.throwIfNullOrUndefined(s,"speechConfig"),super(a,s.properties,new e.SpeakerRecognitionConnectionFactory),this.privAudioConfigImpl=a,t.Contracts.throwIfNull(this.privAudioConfigImpl,"audioConfig"),this.privDisposedSpeakerRecognizer=!1,this.privProperties=s.properties}get authorizationToken(){return this.properties.getProperty(r.PropertyId.SpeechServiceAuthorization_Token)}set authorizationToken(o){t.Contracts.throwIfNullOrWhitespace(o,"token"),this.properties.setProperty(r.PropertyId.SpeechServiceAuthorization_Token,o)}get properties(){return this.privProperties}async recognizeOnceAsync(o){return t.Contracts.throwIfDisposed(this.privDisposedSpeakerRecognizer),this.recognizeSpeakerOnceAsyncImpl(o)}async close(){t.Contracts.throwIfDisposed(this.privDisposedSpeakerRecognizer),await this.dispose(!0)}async recognizeSpeakerOnceAsyncImpl(o){t.Contracts.throwIfDisposed(this.privDisposedSpeakerRecognizer),await this.implRecognizerStop();const a=await this.privReco.recognizeSpeaker(o);return await this.implRecognizerStop(),a}async implRecognizerStop(){this.privReco&&await this.privReco.stopRecognizing()}createRecognizerConfig(o){return new e.RecognizerConfig(o,this.privProperties)}createServiceRecognizer(o,a,s,l){const c=s;return new e.SpeakerServiceRecognizer(o,a,c,l,this)}async dispose(o){this.privDisposedSpeakerRecognizer||o&&(this.privDisposedSpeakerRecognizer=!0,await super.dispose(o))}};return Rv.SpeakerRecognizer=n,Rv}var Pv={},Zz;function Q8e(){if(Zz)return Pv;Zz=1,Object.defineProperty(Pv,"__esModule",{value:!0}),Pv.SpeakerIdentificationModel=void 0;const e=Zt,t=Ct();let r=class Yre{constructor(i){if(this.privVoiceProfiles=[],this.privProfileIds=[],e.Contracts.throwIfNullOrUndefined(i,"VoiceProfiles"),i.length===0)throw new Error("Empty Voice Profiles array");for(const o of i){if(o.profileType!==t.VoiceProfileType.TextIndependentIdentification)throw new Error("Identification model can only be created from Identification profile: "+o.profileId);this.privVoiceProfiles.push(o),this.privProfileIds.push(o.profileId)}}static fromProfiles(i){return new Yre(i)}get voiceProfileIds(){return this.privProfileIds.join(",")}get profileIds(){return this.privProfileIds}get scenario(){return"TextIndependentIdentification"}};return Pv.SpeakerIdentificationModel=r,Pv}var Iv={},eB;function J8e(){if(eB)return Iv;eB=1,Object.defineProperty(Iv,"__esModule",{value:!0}),Iv.SpeakerVerificationModel=void 0;const e=Zt,t=Ct();let r=class Xre{constructor(i){if(e.Contracts.throwIfNullOrUndefined(i,"VoiceProfile"),i.profileType===t.VoiceProfileType.TextIndependentIdentification)throw new Error("Verification model cannot be created from Identification profile");this.privVoiceProfile=i}static fromProfile(i){return new Xre(i)}get voiceProfile(){return this.privVoiceProfile}get profileIds(){return[this.voiceProfile.profileId]}get scenario(){return this.voiceProfile.profileType===t.VoiceProfileType.TextDependentVerification?"TextDependentVerification":"TextIndependentVerification"}};return Iv.SpeakerVerificationModel=r,Iv}var xv={},q3={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.LanguageIdMode=void 0,function(t){t[t.AtStart=0]="AtStart",t[t.Continuous=1]="Continuous"}(e.LanguageIdMode||(e.LanguageIdMode={}))})(q3);var tB;function Z8e(){if(tB)return xv;tB=1,Object.defineProperty(xv,"__esModule",{value:!0}),xv.AutoDetectSourceLanguageConfig=void 0;const e=Lt(),t=Zt,r=Ct(),n=q3;let i=class SC{constructor(){this.privProperties=new r.PropertyCollection,this.privProperties.setProperty(r.PropertyId.SpeechServiceConnection_LanguageIdMode,"AtStart"),this.privLanguageIdMode=n.LanguageIdMode.AtStart}static fromOpenRange(){const a=new SC;return a.properties.setProperty(r.PropertyId.SpeechServiceConnection_AutoDetectSourceLanguages,e.AutoDetectSourceLanguagesOpenRangeOptionName),a.properties.setProperty(r.PropertyId.SpeechServiceConnection_RecoLanguage,"en-US"),a}static fromLanguages(a){t.Contracts.throwIfArrayEmptyOrWhitespace(a,"languages");const s=new SC;return s.properties.setProperty(r.PropertyId.SpeechServiceConnection_AutoDetectSourceLanguages,a.join()),s}static fromSourceLanguageConfigs(a){if(a.length<1)throw new Error("Expected non-empty SourceLanguageConfig array.");const s=new SC,l=[];return a.forEach(c=>{if(l.push(c.language),c.endpointId!==void 0&&c.endpointId!==""){const d=c.language+r.PropertyId.SpeechServiceConnection_EndpointId.toString();s.properties.setProperty(d,c.endpointId)}}),s.properties.setProperty(r.PropertyId.SpeechServiceConnection_AutoDetectSourceLanguages,l.join()),s}get properties(){return this.privProperties}set mode(a){a===n.LanguageIdMode.Continuous?(this.privProperties.setProperty(r.PropertyId.SpeechServiceConnection_RecognitionEndpointVersion,"2"),this.privProperties.setProperty(r.PropertyId.SpeechServiceConnection_LanguageIdMode,"Continuous")):(this.privProperties.setProperty(r.PropertyId.SpeechServiceConnection_RecognitionEndpointVersion,"1"),this.privProperties.setProperty(r.PropertyId.SpeechServiceConnection_LanguageIdMode,"AtStart")),this.privLanguageIdMode=a}};return xv.AutoDetectSourceLanguageConfig=i,xv}var AE={};Object.defineProperty(AE,"__esModule",{value:!0});AE.AutoDetectSourceLanguageResult=void 0;const rB=Zt;class kb{constructor(t,r){rB.Contracts.throwIfNullOrUndefined(t,"language"),rB.Contracts.throwIfNullOrUndefined(r,"languageDetectionConfidence"),this.privLanguage=t,this.privLanguageDetectionConfidence=r}static fromResult(t){return new kb(t.language,t.languageDetectionConfidence)}static fromConversationTranscriptionResult(t){return new kb(t.language,t.languageDetectionConfidence)}get language(){return this.privLanguage}get languageDetectionConfidence(){return this.privLanguageDetectionConfidence}}AE.AutoDetectSourceLanguageResult=kb;var ME={};Object.defineProperty(ME,"__esModule",{value:!0});ME.SourceLanguageConfig=void 0;const e5e=Zt;class G3{constructor(t,r){e5e.Contracts.throwIfNullOrUndefined(t,"language"),this.privLanguage=t,this.privEndpointId=r}static fromLanguage(t,r){return new G3(t,r)}get language(){return this.privLanguage}get endpointId(){return this.privEndpointId}}ME.SourceLanguageConfig=G3;var V2={},nB;function t5e(){return nB||(nB=1,function(e){Object.defineProperty(e,"__esMo
439dule",{value:!0}),e.SpeakerRecognitionCancellationDetails=e.SpeakerRecognitionResult=e.SpeakerRecognitionResultType=void 0;const t=Lt(),r=Ct();var n;(function(a){a[a.Verify=0]="Verify",a[a.Identify=1]="Identify"})(n=e.SpeakerRecognitionResultType||(e.SpeakerRecognitionResultType={}));class i{constructor(s,l=r.ResultReason.RecognizedSpeaker,c=r.CancellationErrorCode.NoError,d=""){this.privProperties=new r.PropertyCollection;const u=s.scenario==="TextIndependentIdentification"?n.Identify:n.Verify;this.privReason=l,this.privReason!==r.ResultReason.Canceled?u===n.Identify?(this.privProfileId=s.identificationResult.identifiedProfile.profileId,this.privScore=s.identificationResult.identifiedProfile.score,this.privReason=r.ResultReason.RecognizedSpeakers):(this.privScore=s.verificationResult.score,s.verificationResult.recognitionResult.toLowerCase()!=="accept"&&(this.privReason=r.ResultReason.NoMatch),s.verificationResult.profileId!==void 0&&s.verificationResult.profileId!==""&&(this.privProfileId=s.verificationResult.profileId)):(this.privErrorDetails=d,this.privProperties.setProperty(t.CancellationErrorCodePropertyName,r.CancellationErrorCode[c])),this.privProperties.setProperty(r.PropertyId.SpeechServiceResponse_JsonResult,JSON.stringify(s))}get properties(){return this.privProperties}get reason(){return this.privReason}get profileId(){return this.privProfileId}get errorDetails(){return this.privErrorDetails}get score(){return this.privScore}}e.SpeakerRecognitionResult=i;class o extends r.CancellationDetailsBase{constructor(s,l,c){super(s,l,c)}static fromResult(s){const l=r.CancellationReason.Error;let c=r.CancellationErrorCode.NoError;return s.properties&&(c=r.CancellationErrorCode[s.properties.getProperty(t.CancellationErrorCodePropertyName,r.CancellationErrorCode[r.CancellationErrorCode.NoError])]),new o(l,s.errorDetails,c)}}e.SpeakerRecognitionCancellationDetails=o}(V2)),V2}var U2={},bu={},iB;function Qre(){if(iB)return bu;iB=1,Object.defineProperty(bu,"__esModule",{value:!0}),bu.ConversationImpl=bu.Conversation=void 0;const e=Lt(),t=Wt(),r=Zt,n=Ct();class i{constructor(){}static createConversationAsync(s,l,c,d){r.Contracts.throwIfNullOrUndefined(s,e.ConversationConnectionConfig.restErrors.invalidArgs.replace("{arg}","config")),r.Contracts.throwIfNullOrUndefined(s.region,e.ConversationConnectionConfig.restErrors.invalidArgs.replace("{arg}","SpeechServiceConnection_Region")),!s.subscriptionKey&&!s.getProperty(n.PropertyId[n.PropertyId.SpeechServiceAuthorization_Token])&&r.Contracts.throwIfNullOrUndefined(s.subscriptionKey,e.ConversationConnectionConfig.restErrors.invalidArgs.replace("{arg}","SpeechServiceConnection_Key"));let u,f,h;return typeof l=="string"?(u=new o(s,l),(0,t.marshalPromiseToCallbacks)((async()=>{})(),c,d)):(u=new o(s),f=l,h=c,u.createConversationAsync(()=>{f&&f()},v=>{h&&h(v)})),u}}bu.Conversation=i;class o extends i{constructor(s,l){if(super(),this.privErrors=e.ConversationConnectionConfig.restErrors,this.onConnected=u=>{var f;this.privIsConnected=!0;try{(f=this.privConversationTranslator)!=null&&f.sessionStarted&&this.privConversationTranslator.sessionStarted(this.privConversationTranslator,u)}catch{}},this.onDisconnected=u=>{var f;try{(f=this.privConversationTranslator)!=null&&f.sessionStopped&&this.privConversationTranslator.sessionStopped(this.privConversationTranslator,u)}catch{}finally{this.close(!1)}},this.onCanceled=(u,f)=>{var h;try{(h=this.privConversationTranslator)!=null&&h.canceled&&this.privConversationTranslator.canceled(this.privConversationTranslator,f)}catch{}},this.onParticipantUpdateCommandReceived=(u,f)=>{try{const h=this.privParticipants.getParticipant(f.id);if(h!==void 0){switch(f.key){case e.ConversationTranslatorCommandTypes.changeNickname:h.displayName=f.value;break;case e.ConversationTranslatorCommandTypes.setUseTTS:h.isUsingTts=f.value;break;case e.ConversationTranslatorCommandTypes.setProfanityFiltering:h.profanity=f.value;break;case e.ConversationTranslatorCommandTypes.setMute:h.isMuted=f.value;break;case e.ConversationTranslatorCommandTypes.setTranslateToLanguages:h.translateToLanguages=f.value;break}this.privParticipants.addOrUpdateParticipant(h),this.privConversationTranslator&&this.privConversationTranslator.participantsChanged(this.privConversationTranslator,new n.ConversationParticipantsChangedEventArgs(n.ParticipantChangedReason.Updated,[this.toParticipant(h)],f.sessionId))}}catch{}},this.onLockRoomCommandReceived=()=>{},this.onMuteAllCommandReceived=(u,f)=>
vendor: 31,259 bytes, line 439
439{try{this.privParticipants.participants.forEach(h=>h.isMuted=h.isHost?!1:f.isMuted),this.privConversationTranslator&&this.privConversationTranslator.participantsChanged(this.privConversationTranslator,new n.ConversationParticipantsChangedEventArgs(n.ParticipantChangedReason.Updated,this.toParticipants(!1),f.sessionId))}catch{}},this.onParticipantJoinCommandReceived=(u,f)=>{try{const h=this.privParticipants.addOrUpdateParticipant(f.participant);h!==void 0&&this.privConversationTranslator&&this.privConversationTranslator.participantsChanged(this.privConversationTranslator,new n.ConversationParticipantsChangedEventArgs(n.ParticipantChangedReason.JoinedConversation,[this.toParticipant(h)],f.sessionId))}catch{}},this.onParticipantLeaveCommandReceived=(u,f)=>{try{const h=this.privParticipants.getParticipant(f.participant.id);h!==void 0&&(this.privParticipants.deleteParticipant(f.participant.id),this.privConversationTranslator&&this.privConversationTranslator.participantsChanged(this.privConversationTranslator,new n.ConversationParticipantsChangedEventArgs(n.ParticipantChangedReason.LeftConversation,[this.toParticipant(h)],f.sessionId)))}catch{}},this.onTranslationReceived=(u,f)=>{try{switch(f.command){case e.ConversationTranslatorMessageTypes.final:this.privConversationTranslator&&this.privConversationTranslator.transcribed(this.privConversationTranslator,new n.ConversationTranslationEventArgs(f.payload,void 0,f.sessionId));break;case e.ConversationTranslatorMessageTypes.partial:this.privConversationTranslator&&this.privConversationTranslator.transcribing(this.privConversationTranslator,new n.ConversationTranslationEventArgs(f.payload,void 0,f.sessionId));break;case e.ConversationTranslatorMessageTypes.instantMessage:this.privConversationTranslator&&this.privConversationTranslator.textMessageReceived(this.privConversationTranslator,new n.ConversationTranslationEventArgs(f.payload,void 0,f.sessionId));break}}catch{}},this.onParticipantsListReceived=(u,f)=>{var h;try{if(f.sessionToken!==void 0&&f.sessionToken!==null&&(this.privRoom.token=f.sessionToken),this.privParticipants.participants=[...f.participants],this.privParticipants.me!==void 0&&(this.privIsReady=!0),this.privConversationTranslator&&this.privConversationTranslator.participantsChanged(this.privConversationTranslator,new n.ConversationParticipantsChangedEventArgs(n.ParticipantChangedReason.JoinedConversation,this.toParticipants(!0),f.sessionId)),this.me.isHost){const v=(h=this.privConversationTranslator)==null?void 0:h.properties.getProperty(n.PropertyId.ConversationTranslator_Name);v!==void 0&&v.length>0&&v!==this.me.displayName&&this.changeNicknameAsync(v)}}catch{}},this.onConversationExpiration=(u,f)=>{try{this.privConversationTranslator&&this.privConversationTranslator.conversationExpiration(this.privConversationTranslator,f)}catch{}},this.privIsConnected=!1,this.privIsDisposed=!1,this.privConversationId="",this.privProperties=new n.PropertyCollection,this.privManager=new e.ConversationManager,s.getProperty(n.PropertyId[n.PropertyId.SpeechServiceConnection_RecoLanguage])||s.setProperty(n.PropertyId[n.PropertyId.SpeechServiceConnection_RecoLanguage],e.ConversationConnectionConfig.defaultLanguageCode),this.privLanguage=s.getProperty(n.PropertyId[n.PropertyId.SpeechServiceConnection_RecoLanguage]),l)this.privConversationId=l;else{s.targetLanguages.length===0&&s.addTargetLanguage(this.privLanguage),s.getProperty(n.PropertyId[n.PropertyId.SpeechServiceResponse_ProfanityOption])||s.setProfanity(n.ProfanityOption.Masked);let f=s.getProperty(n.PropertyId[n.PropertyId.ConversationTranslator_Name]);f==null&&(f="Host"),r.Contracts.throwIfNullOrTooLong(f,"nickname",50),r.Contracts.throwIfNullOrTooShort(f,"nickname",2),s.setProperty(n.PropertyId[n.PropertyId.ConversationTranslator_Name],f)}this.privConfig=s;const d=s;r.Contracts.throwIfNull(d,"speechConfig"),this.privProperties=d.properties.clone(),this.privIsConnected=!1,this.privParticipants=new e.InternalParticipants,this.privIsReady=!1,this.privTextMessageMaxLength=1e3}get room(){return this.privRoom}get connection(){return this.privConversationRecognizer}get config(){return this.privConfig}get conversationId(){return this.privRoom?this.privRoom.roomId:this.privConversationId}get properties(){return this.privProperties}get speechRecognitionLanguage(){return this.privLanguage}get isMutedByHost(){var s,l;return(s=this.privParticipants.me)!=null&&s.isHost?!1:(l=this.privParticipants.me)==null?void 0:l.isMuted}get isConnected(){return this.privIsConnected&&this.privIsReady}get participants(){return this.toParticipants(!0)}get me(){return this.toParticipant(this.privParticipants.me)}get host(){return this.toParticipant(this.privParticipants.host)}get transcriberRecognizer(){return this.privTranscriberRecognizer}get conversationInfo(){const s=this.conversationId,l=this.participants.map(u=>({id:u.id,preferredLanguage:u.preferredLanguage,voice:u.voice})),c={};for(const u of e.ConversationConnectionConfig.transcriptionEventKeys){const f=this.properties.getProperty(u,"");f!==""&&(c[u]=f)}return{id:s,participants:l,conversationProperties:c}}get canSend(){var s;return this.privIsConnected&&!((s=this.privParticipants.me)!=null&&s.isMuted)}get canSendAsHost(){var s;return this.privIsConnected&&((s=this.privParticipants.me)==null?void 0:s.isHost)}get authorizationToken(){return this.privToken}set authorizationToken(s){r.Contracts.throwIfNullOrWhitespace(s,"authorizationToken"),this.privToken=s}set conversationTranslator(s){this.privConversationTranslator=s}onToken(s){this.privConversationTranslator.onToken(s)}createConversationAsync(s,l){try{this.privConversationRecognizer&&this.handleError(new Error(this.privErrors.permissionDeniedStart),l),this.privManager.createOrJoin(this.privProperties,void 0,c=>{c||this.handleError(new Error(this.privErrors.permissionDeniedConnect),l),this.privRoom=c,this.handleCallback(s,l)},c=>{this.handleError(c,l)})}catch(c){this.handleError(c,l)}}startConversationAsync(s,l){try{this.privConversationRecognizer&&this.handleError(new Error(this.privErrors.permissionDeniedStart),l),r.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedConnect),this.privParticipants.meId=this.privRoom.participantId,this.privConversationRecognizer=e.ConversationRecognizerFactory.fromConfig(this,this.privConfig),this.privConversationRecognizer.connected=this.onConnected,this.privConversationRecognizer.disconnected=this.onDisconnected,this.privConversationRecognizer.canceled=this.onCanceled,this.privConversationRecognizer.participantUpdateCommandReceived=this.onParticipantUpdateCommandReceived,this.privConversationRecognizer.lockRoomCommandReceived=this.onLockRoomCommandReceived,this.privConversationRecognizer.muteAllCommandReceived=this.onMuteAllCommandReceived,this.privConversationRecognizer.participantJoinCommandReceived=this.onParticipantJoinCommandReceived,this.privConversationRecognizer.participantLeaveCommandReceived=this.onParticipantLeaveCommandReceived,this.privConversationRecognizer.translationReceived=this.onTranslationReceived,this.privConversationRecognizer.participantsListReceived=this.onParticipantsListReceived,this.privConversationRecognizer.conversationExpiration=this.onConversationExpiration,this.privConversationRecognizer.connect(this.privRoom.token,()=>{this.handleCallback(s,l)},c=>{this.handleError(c,l)})}catch(c){this.handleError(c,l)}}addParticipantAsync(s,l,c){r.Contracts.throwIfNullOrUndefined(s,"Participant"),(0,t.marshalPromiseToCallbacks)(this.addParticipantImplAsync(s),l,c)}joinConversationAsync(s,l,c,d,u){try{r.Contracts.throwIfNullOrWhitespace(s,this.privErrors.invalidArgs.replace("{arg}","conversationId")),r.Contracts.throwIfNullOrWhitespace(l,this.privErrors.invalidArgs.replace("{arg}","nickname")),r.Contracts.throwIfNullOrWhitespace(c,this.privErrors.invalidArgs.replace("{arg}","language")),this.privManager.createOrJoin(this.privProperties,s,f=>{r.Contracts.throwIfNullOrUndefined(f,this.privErrors.permissionDeniedConnect),this.privRoom=f,this.privConfig.authorizationToken=f.cognitiveSpeechAuthToken,d&&d(f.cognitiveSpeechAuthToken)},f=>{this.handleError(f,u)})}catch(f){this.handleError(f,u)}}deleteConversationAsync(s,l){(0,t.marshalPromiseToCallbacks)(this.deleteConversationImplAsync(),s,l)}async deleteConversationImplAsync(){r.Contracts.throwIfNullOrUndefined(this.privProperties,this.privErrors.permissionDeniedConnect),r.Contracts.throwIfNullOrWhitespace(this.privRoom.token,this.privErrors.permissionDeniedConnect),await this.privManager.leave(this.privProperties,this.privRoom.token),this.dispose()}endConversationAsync(s,l){(0,t.marshalPromiseToCallbacks)(this.endConversationImplAsync(),s,l)}endConversationImplAsync(){return this.close(!0)}lockConversationAsync(s,l){try{r.Contracts.throwIfDisposed(this.privIsDisposed),r.Contracts.throwIfDisposed(this.privConversationRecognizer.isDisposed()),r.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedSend),this.canSendAsHost||this.handleError(new Error(this.privErrors.permissionDeniedConversation.replace("{command}","lock")),l),this.privConversationRecognizer&&this.privConversationRecognizer.sendRequest(this.getLockCommand(!0),()=>{this.handleCallback(s,l)},c=>{this.handleError(c,l)})}catch(c){this.handleError(c,l)}}muteAllParticipantsAsync(s,l){try{r.Contracts.throwIfDisposed(this.privIsDisposed),r.Contracts.throwIfDisposed(this.privConversationRecognizer.isDisposed()),r.Contracts.throwIfNullOrUndefined(this.privConversationRecognizer,this.privErrors.permissionDeniedSend),r.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedSend),this.canSendAsHost||this.handleError(new Error(this.privErrors.permissionDeniedConversation.replace("{command}","mute")),l),this.privConversationRecognizer&&this.privConversationRecognizer.sendRequest(this.getMuteAllCommand(!0),()=>{this.handleCallback(s,l)},c=>{this.handleError(c,l)})}catch(c){this.handleError(c,l)}}muteParticipantAsync(s,l,c){try{r.Contracts.throwIfDisposed(this.privIsDisposed),r.Contracts.throwIfDisposed(this.privConversationRecognizer.isDisposed()),r.Contracts.throwIfNullOrWhitespace(s,this.privErrors.invalidArgs.replace("{arg}","userId")),r.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedSend),this.canSend||this.handleError(new Error(this.privErrors.permissionDeniedSend),c),!this.me.isHost&&this.me.id!==s&&this.handleError(new Error(this.privErrors.permissionDeniedParticipant.replace("{command}","mute")),c),this.privParticipants.getParticipantIndex(s)===-1&&this.handleError(new Error(this.privErrors.invalidParticipantRequest),c),this.privConversationRecognizer&&this.privConversationRecognizer.sendRequest(this.getMuteCommand(s,!0),()=>{this.handleCallback(l,c)},u=>{this.handleError(u,c)})}catch(d){this.handleError(d,c)}}removeParticipantAsync(s,l,c){try{if(r.Contracts.throwIfDisposed(this.privIsDisposed),this.privTranscriberRecognizer&&s.hasOwnProperty("id"))(0,t.marshalPromiseToCallbacks)(this.removeParticipantImplAsync(s),l,c);else{r.Contracts.throwIfDisposed(this.privConversationRecognizer.isDisposed()),r.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedSend),this.canSendAsHost||this.handleError(new Error(this.privErrors.permissionDeniedParticipant.replace("{command}","remove")),c);let d="";typeof s=="string"?d=s:s.hasOwnProperty("id")?d=s.id:s.hasOwnProperty("userId")&&(d=s.userId),r.Contracts.throwIfNullOrWhitespace(d,this.privErrors.invalidArgs.replace("{arg}","userId")),this.participants.findIndex(f=>f.id===d)===-1&&this.handleError(new Error(this.privErrors.invalidParticipantRequest),c),this.privConversationRecognizer&&this.privConversationRecognizer.sendRequest(this.getEjectCommand(d),()=>{this.handleCallback(l,c)},f=>{this.handleError(f,c)})}}catch(d){this.handleError(d,c)}}unlockConversationAsync(s,l){try{r.Contracts.throwIfDisposed(this.privIsDisposed),r.Contracts.throwIfDisposed(this.privConversationRecognizer.isDisposed()),r.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedSend),this.canSendAsHost||this.handleError(new Error(this.privErrors.permissionDeniedConversation.replace("{command}","unlock")),l),this.privConversationRecognizer&&this.privConversationRecognizer.sendRequest(this.getLockCommand(!1),()=>{this.handleCallback(s,l)},c=>{this.handleError(c,l)})}catch(c){this.handleError(c,l)}}unmuteAllParticipantsAsync(s,l){try{r.Contracts.throwIfDisposed(this.privIsDisposed),r.Contracts.throwIfDisposed(this.privConversationRecognizer.isDisposed()),r.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedSend),this.canSendAsHost||this.handleError(new Error(this.privErrors.permissionDeniedConversation.replace("{command}","unmute all")),l),this.privConversationRecognizer&&this.privConversationRecognizer.sendRequest(this.getMuteAllCommand(!1),()=>{this.handleCallback(s,l)},c=>{this.handleError(c,l)})}catch(c){this.handleError(c,l)}}unmuteParticipantAsync(s,l,c){try{r.Contracts.throwIfDisposed(this.privIsDisposed),r.Contracts.throwIfDisposed(this.privConversationRecognizer.isDisposed()),r.Contracts.throwIfNullOrWhitespace(s,this.privErrors.invalidArgs.replace("{arg}","userId")),r.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedSend),this.canSend||this.handleError(new Error(this.privErrors.permissionDeniedSend),c),!this.me.isHost&&this.me.id!==s&&this.handleError(new Error(this.privErrors.permissionDeniedParticipant.replace("{command}","mute")),c),this.privParticipants.getParticipantIndex(s)===-1&&this.handleError(new Error(this.privErrors.invalidParticipantRequest),c),this.privConversationRecognizer&&this.privConversationRecognizer.sendRequest(this.getMuteCommand(s,!1),()=>{this.handleCallback(l,c)},u=>{this.handleError(u,c)})}catch(d){this.handleError(d,c)}}sendTextMessageAsync(s,l,c){try{r.Contracts.throwIfDisposed(this.privIsDisposed),r.Contracts.throwIfDisposed(this.privConversationRecognizer.isDisposed()),r.Contracts.throwIfNullOrWhitespace(s,this.privErrors.invalidArgs.replace("{arg}","message")),r.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedSend),this.canSend||this.handleError(new Error(this.privErrors.permissionDeniedSend),c),s.length>this.privTextMessageMaxLength&&this.handleError(new Error(this.privErrors.invalidArgs.replace("{arg}","message length")),c),this.privConversationRecognizer&&this.privConversationRecognizer.sendRequest(this.getMessageCommand(s),()=>{this.handleCallback(l,c)},d=>{this.handleError(d,c)})}catch(d){this.handleError(d,c)}}setTranslatedLanguagesAsync(s,l,c){try{r.Contracts.throwIfDisposed(this.privIsDisposed),r.Contracts.throwIfDisposed(this.privConversationRecognizer.isDisposed()),r.Contracts.throwIfArrayEmptyOrWhitespace(s,this.privErrors.invalidArgs.replace("{arg}","languages")),r.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedSend),this.canSend||this.handleError(new Error(this.privErrors.permissionDeniedSend),c),this.privConversationRecognizer&&this.privConversationRecognizer.sendRequest(this.getSetTranslateToLanguagesCommand(s),()=>{this.handleCallback(l,c)},d=>{this.handleError(d,c)})}catch(d){this.handleError(d,c)}}changeNicknameAsync(s,l,c){try{r.Contracts.throwIfDisposed(this.privIsDisposed),r.Contracts.throwIfDisposed(this.privConversationRecognizer.isDisposed()),r.Contracts.throwIfNullOrWhitespace(s,this.privErrors.invalidArgs.replace("{arg}","nickname")),r.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedSend),this.canSend||this.handleError(new Error(this.privErrors.permissionDeniedSend),c),this.privConversationRecognizer&&this.privConversationRecognizer.sendRequest(this.getChangeNicknameCommand(s),()=>{this.handleCallback(l,c)},d=>{this.handleError(d,c)})}catch(d){this.handleError(d,c)}}isDisposed(){return this.privIsDisposed}dispose(){this.isDisposed||(this.privIsDisposed=!0,this.config&&this.config.close(),this.privConfig=void 0,this.privLanguage=void 0,this.privProperties=void 0,this.privRoom=void 0,this.privToken=void 0,this.privManager=void 0,this.privIsConnected=!1,this.privIsReady=!1,this.privParticipants=void 0)}async connectTranscriberRecognizer(s){this.privTranscriberRecognizer&&await this.privTranscriberRecognizer.close(),await s.enforceAudioGating(),this.privTranscriberRecognizer=s,this.privTranscriberRecognizer.conversation=this}getKeepAlive(){const s=this.me?this.me.displayName:"default_nickname";return JSON.stringify({id:"0",nickname:s,participantId:this.privRoom.participantId,roomId:this.privRoom.roomId,type:e.ConversationTranslatorMessageTypes.keepAlive})}addParticipantImplAsync(s){if(this.privParticipants.addOrUpdateParticipant(s)!==void 0&&this.privTranscriberRecognizer){const c=this.conversationInfo;return c.participants=[s],this.privTranscriberRecognizer.pushConversationEvent(c,"join")}}removeParticipantImplAsync(s){this.privParticipants.deleteParticipant(s.id);const l=this.conversationInfo;return l.participants=[s],this.privTranscriberRecognizer.pushConversationEvent(l,"leave")}async close(s){var l;try{this.privIsConnected=!1,await((l=this.privConversationRecognizer)==null?void 0:l.close()),this.privConversationRecognizer=void 0,this.privConversationTranslator&&this.privConversationTranslator.dispose()}catch(c){throw c}s&&this.dispose()}handleCallback(s,l){if(s){try{s()}catch(c){l&&l(c)}s=void 0}}handleError(s,l){if(l)if(s instanceof Error){const c=s;l(c.name+": "+c.message)}else l(s)}toParticipants(s){const l=this.privParticipants.participants.map(c=>this.toParticipant(c));return s?l:l.filter(c=>c.isHost===!1)}toParticipant(s){return new n.Participant(s.id,s.avatar,s.displayName,s.isHost,s.isMuted,s.isUsingTts,s.preferredLanguage,s.voice)}getMuteAllCommand(s){return r.Contracts.throwIfNullOrWhitespace(this.privRoom.roomId,"conversationId"),r.Contracts.throwIfNullOrWhitespace(this.privRoom.participantId,"participantId"),JSON.stringify({command:e.ConversationTranslatorCommandTypes.setMuteAll,participantId:this.privRoom.participantId,roomid:this.privRoom.roomId,type:e.ConversationTranslatorMessageTypes.participantCommand,value:s})}getMuteCommand(s,l){return r.Contracts.throwIfNullOrWhitespace(this.privRoom.roomId,"conversationId"),r.Contracts.throwIfNullOrWhitespace(s,"participantId"),JSON.stringify({command:e.ConversationTranslatorCommandTypes.setMute,participantId:s,roomid:this.privRoom.roomId,type:e.ConversationTranslatorMessageTypes.participantCommand,value:l})}getLockCommand(s){return r.Contracts.throwIfNullOrWhitespace(this.privRoom.roomId,"conversationId"),r.Contracts.throwIfNullOrWhitespace(this.privRoom.participantId,"participantId"),JSON.stringify({command:e.ConversationTranslatorCommandTypes.setLockState,participantId:this.privRoom.participantId,roomid:this.privRoom.roomId,type:e.ConversationTranslatorMessageTypes.participantCommand,value:s})}getEjectCommand(s){return r.Contracts.throwIfNullOrWhitespace(this.privRoom.roomId,"conversationId"),r.Contracts.throwIfNullOrWhitespace(s,"participantId"),JSON.stringify({command:e.ConversationTranslatorCommandTypes.ejectParticipant,participantId:s,roomid:this.privRoom.roomId,type:e.ConversationTranslatorMessageTypes.participantCommand})}getSetTranslateToLanguagesCommand(s){return r.Contracts.throwIfNullOrWhitespace(this.privRoom.roomId,"conversationId"),r.Contracts.throwIfNullOrWhitespace(this.privRoom.participantId,"participantId"),JSON.stringify({command:e.ConversationTranslatorCommandTypes.setTranslateToLanguages,participantId:this.privRoom.participantId,roomid:this.privRoom.roomId,type:e.ConversationTranslatorMessageTypes.participantCommand,value:s})}getChangeNicknameCommand(s){return r.Contracts.throwIfNullOrWhitespace(this.privRoom.roomId,"conversationId"),r.Contracts.throwIfNullOrWhitespace(s,"nickname"),r.Contracts.throwIfNullOrWhitespace(this.privRoom.participantId,"participantId"),JSON.stringify({command:e.ConversationTranslatorCommandTypes.changeNickname,nickname:s,participantId:this.privRoom.participantId,roomid:this.privRoom.roomId,type:e.ConversationTranslatorMessageTypes.participantCommand,value:s})}getMessageCommand(s){return r.Contracts.throwIfNullOrWhitespace(this.privRoom.roomId,"conversationId"),r.Contracts.throwIfNullOrWhitespace(this.privRoom.participantId,"participantId"),r.Contracts.throwIfNullOrWhitespace(s,"message"),JSON.stringify({participantId:this.privRoom.participantId,roomId:this.privRoom.roomId,text:s,type:e.ConversationTranslatorMessageTypes.instantMessage})}}return bu.ConversationImpl=o,bu}var $E={};Object.defineProperty($E,"__esModule",{value:!0});$E.ConversationCommon=void 0;class r5e{constructor(t){this.privAudioConfig=t}handleCallback(t,r){if(t){try{t()}catch(n){r&&r(n)}t=void 0}}handleError(t,r){if(r)if(t instanceof Error){const n=t;r(n.name+": "+n.message)}else r(t)}}$E.ConversationCommon=r5e;var Ov={},oB;function n5e(){if(oB)return Ov;oB=1,Object.defineProperty(Ov,"__esModule",{value:!0}),Ov.ConversationExpirationEventArgs=void 0;const e=Ct();let t=class extends e.SessionEventArgs{constructor(n,i){super(i),this.privExpirationTime=n}get expirationTime(){return this.privExpirationTime}};return Ov.ConversationExpirationEventArgs=t,Ov}var Tv={},aB;function i5e(){if(aB)return Tv;aB=1,Object.defineProperty(Tv,"__esModule",{value:!0}),Tv.ConversationParticipantsChangedEventArgs=void 0;const e=Ct();let t=class extends e.SessionEventArgs{constructor(n,i,o){super(o),this.privReason=n,this.privParticipant=i}get reason(){return this.privReason}get participants(){return this.privParticipant}};return Tv.ConversationParticipantsChangedEventArgs=t,Tv}var Av={},sB;function o5e(){if(sB)return Av;sB=1,Object.defineProperty(Av,"__esModule",{value:!0}),Av.ConversationTranslationCanceledEventArgs=void 0;const e=R0();let t=class extends e.CancellationEventArgsBase{};return Av.ConversationTranslationCanceledEventArgs=t,Av}var Mv={},lB;function a5e(){if(lB)return Mv;lB=1,Object.defineProperty(Mv,"__esModule",{value:!0}),Mv.ConversationTranslationEventArgs=void 0;const e=Ct();let t=class extends e.RecognitionEventArgs{constructor(n,i,o){super(i,o),this.privResult=n}get result(){return this.privResult}};return Mv.ConversationTranslationEventArgs=t,Mv}var $v={},cB;function s5e(){if(cB)return $v;cB=1,Object.defineProperty($v,"__esModule",{value:!0}),$v.ConversationTranslationResult=void 0;const e=$re();let t=class extends e.TranslationRecognitionResult{constructor(n,i,o,a,s,l,c,d,u,f,h){super(i,a,s,l,c,d,void 0,void 0,u,f,h),this.privId=n,this.privOrigLang=o}get participantId(){return this.privId}get originalLang(){return this.privOrigLang}};return $v.ConversationTranslationResult=t,$v}var W2={},kv={},I0={};Object.defineProperty(I0,"__esModule",{value:!0});I0.StringUtils=void 0;class l5e{static formatString(t,r){if(!t)return"";if(!r)return t;let n="",i="";const o=l=>{n+=l},a=l=>{i+=l};let s=o;for(let l=0;l<t.length;l++){const c=t[l],d=l+1<t.length?t[l+1]:"";switch(c){case"{":d==="{"?(s("{"),l++):s=a;break;case"}":d==="}"?(s("}"),l++):(r.hasOwnProperty(i)&&(n+=r[i]),s=o,i="");break;default:s(c);break}}return n}}I0.StringUtils=l5e;var uB;function c5e(){if(uB)return kv;uB=1,Object.defineProperty(kv,"__esModule",{value:!0}),kv.ConversationTranslatorConnectionFactory=void 0;const e=hi(),t=I0,r=Zt,n=Ct(),i=pi,o=hs,a=vs(),s=Lt();let l=class Jre extends a.ConnectionFactoryBase{constructor(d){super(),r.Contracts.throwIfNullOrUndefined(d,"convGetter"),this.privConvGetter=d}create(d,u,f){const h=d.parameters.getProperty("ConversationTranslator_MultiChannelAudio","").toUpperCase()==="TRUE",v=this.privConvGetter().room,y=v.cognitiveSpeechRegion||d.parameters.getProperty(n.PropertyId.SpeechServiceConnection_Region,""),g={hostSuffix:a.ConnectionFactoryBase.getHostSuffix(y),path:Jre.CTS_VIRT_MIC_PATH,region:encodeURIComponent(y)};g[o.QueryParameterNames.Language]=encodeURIComponent(d.parameters.getProperty(n.PropertyId.SpeechServiceConnection_RecoLanguage,"")),g[o.QueryParameterNames.CtsMeetingId]=encodeURIComponent(v.roomId),g[o.QueryParameterNames.CtsDeviceId]=encodeURIComponent(v.participantId),g[o.QueryParameterNames.CtsIsParticipant]=v.isHost?"":"&"+o.QueryParameterNames.CtsIsParticipant;let m="";const S={},C={};if(h){m=d.parameters.getProperty(n.PropertyId.SpeechServiceConnection_Endpoint),m||(m="wss://"+d.parameters.getProperty(n.PropertyId.SpeechServiceConnection_Host,"transcribe.{region}.cts.speech{hostSuffix}")+"{path}"),m=t.StringUtils.formatString(m,g);const w=new URL(m);w.searchParams.forEach((_,R)=>{S[R]=_}),new s.TranscriberConnectionFactory().setQueryParams(S,d,m),S[o.QueryParameterNames.CtsMeetingId]=g[o.QueryParameterNames.CtsMeetingId],S[o.QueryParameterNames.CtsDeviceId]=g[o.QueryParameterNames.CtsDeviceId],v.isHost||(S[o.QueryParameterNames.CtsIsParticipant]=""),o.QueryParameterNames.Format in S||(S[o.QueryParameterNames.Format]="simple"),w.searchParams.forEach((_,R)=>{w.searchParams.set(R,S[R]),delete S[R]}),m=w.toString()}else{const w=new s.TranslationConnectionFactory;m=w.getEndpointUrl(d,!0),m=t.StringUtils.formatString(m,g),w.setQueryParams(S,d,m)}C[i.HeaderNames.ConnectionId]=f,C[e.RestConfigBase.configParams.token]=v.token,u.token&&(C[u.headerName]=u.token);const b=d.parameters.getProperty("SPEECH-EnableWebsocketCompression","").toUpperCase()==="TRUE";return Promise.resolve(new e.WebsocketConnection(m,S,C,new s.WebsocketMessageFormatter,e.ProxyInfo.fromRecognizerConfig(d),b,f))}};return kv.ConversationTranslatorConnectionFactory=l,l.CTS_VIRT_MIC_PATH="/speech/recognition/dynamicaudio",kv}var dB;function u5e(){return dB||(dB=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ConversationTranslator=e.SpeechState=void 0;const t=Lt(),r=c5e(),n=Wt(),i=Zt,o=Ct(),a=Qre(),s=K3();var l;(function(u){u[u.Inactive=0]="Inactive",u[u.Connecting=1]="Connecting",u[u.Connected=2]="Connected"})(l=e.SpeechState||(e.SpeechState={}));class c extends o.TranslationRecognizer{constructor(f,h,v,y){super(f,h,new r.ConversationTranslatorConnectionFactory(y)),this.privSpeechState=l.Inactive,v&&(this.privTranslator=v,this.sessionStarted=()=>{this.privSpeechState=l.Connected},this.sessionStopped=()=>{this.privSpeechState=l.Inactive},this.recognizing=(g,m)=>{this.privTranslator.recognizing&&this.privTranslator.recognizing(this.privTranslator,m)},this.recognized=async(g,m)=>{var S;(S=m.result)!=null&&S.errorDetails?(await this.cancelSpeech(),this.fireCancelEvent(m.result.errorDetails)):this.privTranslator.recognized&&this.privTranslator.recognized(this.privTranslator,m)},this.canceled=async()=>{if(this.privSpeechState!==l.Inactive)try{await this.cancelSpeech()}catch{this.privSpeechState=l.Inactive}})}get state(){return this.privSpeechState}set state(f){this.privSpeechState=f}set authentication(f){this.privReco.authentication=f}onConnection(){this.privSpeechState=l.Connected}async onCancelSpeech(){this.privSpeechState=l.Inactive,await this.cancelSpeech()}fireCancelEvent(f){try{if(this.privTranslator.canceled){const h=new s.ConversationTranslationCanceledEventArgs(o.CancellationReason.Error,f,o.CancellationErrorCode.RuntimeError);this.privTranslator.canceled(this.privTranslator,h)}}catch{}}async cancelSpeech(){var f;try{this.stopContinuousRecognitionAsync(),await((f=this.privReco)==null?void 0:f.disconnect()),this.privSpeechState=l.Inactive}catch{}}}class d extends s.ConversationCommon{constructor(f){super(f),this.privErrors=t.ConversationConnectionConfig.restErrors,this.privIsDisposed=!1,this.privIsSpeaking=!1,this.privPlaceholderKey="abcdefghijklmnopqrstuvwxyz012345",this.privPlaceholderRegion="westus",this.privProperties=new o.PropertyCollection}get properties(){return this.privProperties}get speechRecognitionLanguage(){return this.privSpeechRecognitionLanguage}get participants(){var f;return(f=this.privConversation)==null?void 0:f.participants}get canSpeak(){return!(!this.privConversation.isConnected||!this.privCTRecognizer||this.privIsSpeaking||this.privCTRecognizer.state===l.Connected||this.privCTRecognizer.state===l.Connecting||this.privConversation.isMutedByHost)}onToken(f){this.privCTRecognizer.authentication=f}setServiceProperty(f,h){const v=JSON.parse(this.privProperties.getProperty(t.ServicePropertiesPropertyName,"{}"));v[f]=h,this.privProperties.setProperty(t.ServicePropertiesPropertyName,JSON.stringify(v))}joinConversationAsync(f,h,v,y,g){try{if(typeof f=="string"){i.Contracts.throwIfNullOrUndefined(f,this.privErrors.invalidArgs.replace("{arg}","conversation id")),i.Contracts.throwIfNullOrWhitespace(h,this.privErrors.invalidArgs.replace("{arg}","nickname")),this.privConversation&&this.handleError(new Error(this.privErrors.permissionDeniedStart),g);let m=v;(m==null||m==="")&&(m=t.ConversationConnectionConfig.defaultLanguageCode),this.privSpeechTranslationConfig=o.SpeechTranslationConfig.fromSubscription(this.privPlaceholderKey,this.privPlaceholderRegion),this.privSpeechTranslationConfig.setProfanity(o.ProfanityOption.Masked),this.privSpeechTranslationConfig.addTargetLanguage(m),this.privSpeechTranslationConfig.setProperty(o.PropertyId[o.PropertyId.SpeechServiceConnection_RecoLanguage],m),this.privSpeechTranslationConfig.setProperty(o.PropertyId[o.PropertyId.ConversationTranslator_Name],h);const S=[o.PropertyId.SpeechServiceConnection_Host,o.PropertyId.ConversationTranslator_Host,o.PropertyId.SpeechServiceConnection_Endpoint,o.PropertyId.SpeechServiceConnection_ProxyHostName,o.PropertyId.SpeechServiceConnection_ProxyPassword,o.PropertyId.SpeechServiceConnection_ProxyPort,o.PropertyId.SpeechServiceConnection_ProxyUserName,"ConversationTranslator_MultiChannelAudio","ConversationTranslator_Region"];for(const b of S){const w=this.privProperties.getProperty(b);if(w){const E=typeof b=="string"?b:o.PropertyId[b];this.privSpeechTranslationConfig.setProperty(E,w)}}const C=JSON.parse(this.privProperties.getProperty(t.ServicePropertiesPropertyName,"{}"));for(const b of Object.keys(C))this.privSpeechTranslationConfig.setServiceProperty(b,C[b],o.ServicePropertyChannel.UriQueryParameter);this.privConversation=new a.ConversationImpl(this.privSpeechTranslationConfig),this.privConversation.conversationTranslator=this,this.privConversation.joinConversationAsync(f,h,m,b=>{b||this.handleError(new Error(this.privErrors.permissionDeniedConnect),g),this.privSpeechTranslationConfig.authorizationToken=b,this.privConversation.room.isHost=!1,this.privConversation.startConversationAsync(()=>{this.handleCallback(y,g)},w=>{this.handleError(w,g)})},b=>{this.handleError(b,g)})}else typeof f=="object"?(i.Contracts.throwIfNullOrUndefined(f,this.privErrors.invalidArgs.replace("{arg}","conversation id")),i.Contracts.throwIfNullOrWhitespace(h,this.privErrors.invalidArgs.replace("{arg}","nickname")),this.privProperties.setProperty(o.PropertyId.ConversationTranslator_Name,h),this.privConversation=f,this.privConversation.conversationTranslator=this,this.privConversation.room.isHost=!0,i.Contracts.throwIfNullOrUndefined(this.privConversation,this.privErrors.permissionDeniedConnect),i.Contracts.throwIfNullOrUndefined(this.privConversation.room.token,this.privErrors.permissionDeniedConnect),this.privSpeechTranslationConfig=f.config,this.handleCallback(v,y)):this.handleError(new Error(this.privErrors.invalidArgs.replace("{arg}
439","invalid conversation type")),y)}catch(m){this.handleError(m,typeof v=="string"?g:y)}}leaveConversationAsync(f,h){(0,n.marshalPromiseToCallbacks)((async()=>{await this.cancelSpeech(),await this.privConversation.endConversationImplAsync(),await this.privConversation.deleteConversationImplAsync(),this.dispose()})(),f,h)}sendTextMessageAsync(f,h,v){try{i.Contracts.throwIfNullOrUndefined(this.privConversation,this.privErrors.permissionDeniedSend),i.Contracts.throwIfNullOrWhitespace(f,this.privErrors.invalidArgs.replace("{arg}",f)),this.privConversation.sendTextMessageAsync(f,h,v)}catch(y){this.handleError(y,v)}}startTranscribingAsync(f,h){(0,n.marshalPromiseToCallbacks)((async()=>{try{i.Contracts.throwIfNullOrUndefined(this.privConversation,this.privErrors.permissionDeniedSend),i.Contracts.throwIfNullOrUndefined(this.privConversation.room.token,this.privErrors.permissionDeniedConnect),this.privCTRecognizer===void 0&&await this.connectTranslatorRecognizer(),i.Contracts.throwIfNullOrUndefined(this.privCTRecognizer,this.privErrors.permissionDeniedSend),this.canSpeak||this.handleError(new Error(this.privErrors.permissionDeniedSend),h),await this.startContinuousRecognition(),this.privIsSpeaking=!0}catch(v){throw this.privIsSpeaking=!1,await this.cancelSpeech(),v}})(),f,h)}stopTranscribingAsync(f,h){(0,n.marshalPromiseToCallbacks)((async()=>{try{if(!this.privIsSpeaking){await this.cancelSpeech();return}this.privIsSpeaking=!1,await new Promise((v,y)=>{this.privCTRecognizer.stopContinuousRecognitionAsync(v,y)})}catch{await this.cancelSpeech()}})(),f,h)}isDisposed(){return this.privIsDisposed}dispose(f,h,v){(0,n.marshalPromiseToCallbacks)((async()=>{this.isDisposed&&!this.privIsSpeaking||(await this.cancelSpeech(),this.privIsDisposed=!0,this.privSpeechTranslationConfig.close(),this.privSpeechRecognitionLanguage=void 0,this.privProperties=void 0,this.privAudioConfig=void 0,this.privSpeechTranslationConfig=void 0,this.privConversation.dispose(),this.privConversation=void 0)})(),h,v)}async cancelSpeech(){var f;try{this.privIsSpeaking=!1,await((f=this.privCTRecognizer)==null?void 0:f.onCancelSpeech()),this.privCTRecognizer=void 0}catch{}}async connectTranslatorRecognizer(){try{this.privAudioConfig===void 0&&(this.privAudioConfig=o.AudioConfig.fromDefaultMicrophoneInput()),this.privSpeechTranslationConfig.getProperty(o.PropertyId[o.PropertyId.SpeechServiceConnection_Key])===this.privPlaceholderKey&&this.privSpeechTranslationConfig.setProperty(o.PropertyId[o.PropertyId.SpeechServiceConnection_Key],"");const f=()=>this.privConversation;this.privCTRecognizer=new c(this.privSpeechTranslationConfig,this.privAudioConfig,this,f)}catch(f){throw await this.cancelSpeech(),f}}startContinuousRecognition(){return new Promise((f,h)=>{this.privCTRecognizer.startContinuousRecognitionAsync(f,h)})}}e.ConversationTranslator=d}(W2)),W2}var Nv={},fB;function d5e(){if(fB)return Nv;fB=1,Object.defineProperty(Nv,"__esModule",{value:!0}),Nv.ConversationTranscriber=void 0;const e=Lt(),t=ia,r=Wt(),n=Zt,i=Ct();let o=class Zre extends i.Recognizer{constructor(s,l){const c=s;n.Contracts.throwIfNull(c,"speechConfig"),n.Contracts.throwIfNullOrWhitespace(c.properties.getProperty(i.PropertyId.SpeechServiceConnection_RecoLanguage),i.PropertyId[i.PropertyId.SpeechServiceConnection_RecoLanguage]),super(l,c.properties,new e.ConversationTranscriberConnectionFactory,s.tokenCredential),this.privProperties.setProperty(i.PropertyId.SpeechServiceConnection_RecognitionEndpointVersion,"2"),this.privDisposedRecognizer=!1}static FromConfig(s,l,c){const d=s;return l.properties.mergeTo(d.properties),new Zre(s,c)}get endpointId(){return n.Contracts.throwIfDisposed(this.privDisposedRecognizer),this.properties.getProperty(i.PropertyId.SpeechServiceConnection_EndpointId,"00000000-0000-0000-0000-000000000000")}get authorizationToken(){return this.properties.getProperty(i.PropertyId.SpeechServiceAuthorization_Token)}set authorizationToken(s){n.Contracts.throwIfNullOrWhitespace(s,"token"),this.properties.setProperty(i.PropertyId.SpeechServiceAuthorization_Token,s)}get speechRecognitionLanguage(){return n.Contracts.throwIfDisposed(this.privDisposedRecognizer),this.properties.getProperty(i.PropertyId.SpeechServiceConnection_RecoLanguage)}get outputFormat(){return n.Contracts.throwIfDisposed(this.privDisposedRecognizer),this.properties.getProperty(e.OutputFormatPropertyName,i.OutputFormat[i.OutputFormat.Simple])===i.OutputFormat[i.OutputFormat.Simple]?i.OutputFormat.Simple:i.OutputFormat.Detailed}get properties(){return this.privProperties}startTranscribingAsync(s,l){(0,r.marshalPromiseToCallbacks)(this.startContinuousRecognitionAsyncImpl(t.RecognitionMode.Conversation),s,l)}stopTranscribingAsync(s,l){(0,r.marshalPromiseToCallbacks)(this.stopContinuousRecognitionAsyncImpl(),s,l)}close(s,l){n.Contracts.throwIfDisposed(this.privDisposedRecognizer),(0,r.marshalPromiseToCallbacks)(this.dispose(!0),s,l)}async dispose(s){this.privDisposedRecognizer||(s&&(this.privDisposedRecognizer=!0,await this.implRecognizerStop()),await super.dispose(s))}createRecognizerConfig(s){return new e.RecognizerConfig(s,this.privProperties)}createServiceRecognizer(s,l,c,d){const u=c;return d.isSpeakerDiarizationEnabled=!0,new e.ConversationTranscriptionServiceRecognizer(s,l,u,d,this)}};return Nv.ConversationTranscriber=o,Nv}var wu={},pB;function f5e(){if(pB)return wu;
vendor: 31,712 bytes, line 439
439pB=1,Object.defineProperty(wu,"__esModule",{value:!0}),wu.Participant=wu.User=void 0;const e=Ct();class t{constructor(i){this.privUserId=i}get userId(){return this.privUserId}}wu.User=t;class r{constructor(i,o,a,s,l,c,d,u){this.privId=i,this.privAvatar=o,this.privDisplayName=a,this.privIsHost=s,this.privIsMuted=l,this.privIsUsingTts=c,this.privPreferredLanguage=d,this.privVoice=u,this.privProperties=new e.PropertyCollection}get avatar(){return this.privAvatar}get displayName(){return this.privDisplayName}get id(){return this.privId}get preferredLanguage(){return this.privPreferredLanguage}get isHost(){return this.privIsHost}get isMuted(){return this.privIsMuted}get isUsingTts(){return this.privIsUsingTts}get voice(){return this.privVoice}get properties(){return this.privProperties}static From(i,o,a){return new r(i,"",i,!1,!1,!1,o,a)}}return wu.Participant=r,wu}var ene={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ParticipantChangedReason=void 0,function(t){t[t.JoinedConversation=0]="JoinedConversation",t[t.LeftConversation=1]="LeftConversation",t[t.Updated=2]="Updated"}(e.ParticipantChangedReason||(e.ParticipantChangedReason={}))})(ene);var _u={},hB;function p5e(){if(hB)return _u;hB=1,Object.defineProperty(_u,"__esModule",{value:!0}),_u.MeetingImpl=_u.Meeting=void 0;const e=Lt(),t=Wt(),r=Zt,n=Ct();let i=class{constructor(){}static createMeetingAsync(s,l,c,d){if(r.Contracts.throwIfNullOrUndefined(s,e.ConversationConnectionConfig.restErrors.invalidArgs.replace("{arg}","config")),r.Contracts.throwIfNullOrUndefined(s.region,e.ConversationConnectionConfig.restErrors.invalidArgs.replace("{arg}","SpeechServiceConnection_Region")),r.Contracts.throwIfNull(l,"meetingId"),l.length===0)throw new Error("meetingId cannot be empty");!s.subscriptionKey&&!s.getProperty(n.PropertyId[n.PropertyId.SpeechServiceAuthorization_Token])&&r.Contracts.throwIfNullOrUndefined(s.subscriptionKey,e.ConversationConnectionConfig.restErrors.invalidArgs.replace("{arg}","SpeechServiceConnection_Key"));const u=new o(s,l);return(0,t.marshalPromiseToCallbacks)((async()=>{})(),c,d),u}};_u.Meeting=i;class o extends i{constructor(s,l){super(),this.privErrors=e.ConversationConnectionConfig.restErrors,this.onConnected=u=>{var f;this.privIsConnected=!0;try{(f=this.privConversationTranslator)!=null&&f.sessionStarted&&this.privConversationTranslator.sessionStarted(this.privConversationTranslator,u)}catch{}},this.onDisconnected=u=>{var f;try{(f=this.privConversationTranslator)!=null&&f.sessionStopped&&this.privConversationTranslator.sessionStopped(this.privConversationTranslator,u)}catch{}finally{this.close(!1)}},this.onCanceled=(u,f)=>{var h;try{(h=this.privConversationTranslator)!=null&&h.canceled&&this.privConversationTranslator.canceled(this.privConversationTranslator,f)}catch{}},this.onParticipantUpdateCommandReceived=(u,f)=>{try{const h=this.privParticipants.getParticipant(f.id);if(h!==void 0){switch(f.key){case e.ConversationTranslatorCommandTypes.changeNickname:h.displayName=f.value;break;case e.ConversationTranslatorCommandTypes.setUseTTS:h.isUsingTts=f.value;break;case e.ConversationTranslatorCommandTypes.setProfanityFiltering:h.profanity=f.value;break;case e.ConversationTranslatorCommandTypes.setMute:h.isMuted=f.value;break;case e.ConversationTranslatorCommandTypes.setTranslateToLanguages:h.translateToLanguages=f.value;break}this.privParticipants.addOrUpdateParticipant(h),this.privConversationTranslator&&this.privConversationTranslator.participantsChanged(this.privConversationTranslator,new n.ConversationParticipantsChangedEventArgs(n.ParticipantChangedReason.Updated,[this.toParticipant(h)],f.sessionId))}}catch{}},this.onLockRoomCommandReceived=()=>{},this.onMuteAllCommandReceived=(u,f)=>{try{this.privParticipants.participants.forEach(h=>h.isMuted=h.isHost?!1:f.isMuted),this.privConversationTranslator&&this.privConversationTranslator.participantsChanged(this.privConversationTranslator,new n.ConversationParticipantsChangedEventArgs(n.ParticipantChangedReason.Updated,this.toParticipants(!1),f.sessionId))}catch{}},this.onParticipantJoinCommandReceived=(u,f)=>{try{const h=this.privParticipants.addOrUpdateParticipant(f.participant);h!==void 0&&this.privConversationTranslator&&this.privConversationTranslator.participantsChanged(this.privConversationTranslator,new n.ConversationParticipantsChangedEventArgs(n.ParticipantChangedReason.JoinedConversation,[this.toParticipant(h)],f.sessionId))}catch{}},this.onParticipantLeaveCommandReceived=(u,f)=>{try{const h=this.privParticipants.getParticipant(f.participant.id);h!==void 0&&(this.privParticipants.deleteParticipant(f.participant.id),this.privConversationTranslator&&this.privConversationTranslator.participantsChanged(this.privConversationTranslator,new n.ConversationParticipantsChangedEventArgs(n.ParticipantChangedReason.LeftConversation,[this.toParticipant(h)],f.sessionId)))}catch{}},this.onTranslationReceived=(u,f)=>{try{switch(f.command){case e.ConversationTranslatorMessageTypes.final:this.privConversationTranslator&&this.privConversationTranslator.transcribed(this.privConversationTranslator,new n.ConversationTranslationEventArgs(f.payload,void 0,f.sessionId));break;case e.ConversationTranslatorMessageTypes.partial:this.privConversationTranslator&&this.privConversationTranslator.transcribing(this.privConversationTranslator,new n.ConversationTranslationEventArgs(f.payload,void 0,f.sessionId));break;case e.ConversationTranslatorMessageTypes.instantMessage:this.privConversationTranslator&&this.privConversationTranslator.textMessageReceived(this.privConversationTranslator,new n.ConversationTranslationEventArgs(f.payload,void 0,f.sessionId));break}}catch{}},this.onParticipantsListReceived=(u,f)=>{var h;try{if(f.sessionToken!==void 0&&f.sessionToken!==null&&(this.privRoom.token=f.sessionToken),this.privParticipants.participants=[...f.participants],this.privParticipants.me!==void 0&&(this.privIsReady=!0),this.privConversationTranslator&&this.privConversationTranslator.participantsChanged(this.privConversationTranslator,new n.ConversationParticipantsChangedEventArgs(n.ParticipantChangedReason.JoinedConversation,this.toParticipants(!0),f.sessionId)),this.me.isHost){const v=(h=this.privConversationTranslator)==null?void 0:h.properties.getProperty(n.PropertyId.ConversationTranslator_Name);v!==void 0&&v.length>0&&v!==this.me.displayName&&this.changeNicknameAsync(v)}}catch{}},this.onConversationExpiration=(u,f)=>{try{this.privConversationTranslator&&this.privConversationTranslator.conversationExpiration(this.privConversationTranslator,f)}catch{}},this.privIsConnected=!1,this.privIsDisposed=!1,this.privConversationId="",this.privProperties=new n.PropertyCollection,this.privManager=new e.ConversationManager,s.getProperty(n.PropertyId[n.PropertyId.SpeechServiceConnection_RecoLanguage])||s.setProperty(n.PropertyId[n.PropertyId.SpeechServiceConnection_RecoLanguage],e.ConversationConnectionConfig.defaultLanguageCode),this.privLanguage=s.getProperty(n.PropertyId[n.PropertyId.SpeechServiceConnection_RecoLanguage]),this.privConversationId=l,this.privConfig=s;const d=s;r.Contracts.throwIfNull(d,"speechConfig"),this.privProperties=d.properties.clone(),this.privIsConnected=!1,this.privParticipants=new e.InternalParticipants,this.privIsReady=!1,this.privTextMessageMaxLength=1e3}get room(){return this.privRoom}get connection(){return this.privConversationRecognizer}get config(){return this.privConfig}get meetingId(){return this.privRoom?this.privRoom.roomId:this.privConversationId}get properties(){return this.privProperties}get speechRecognitionLanguage(){return this.privLanguage}get isMutedByHost(){var s,l;return(s=this.privParticipants.me)!=null&&s.isHost?!1:(l=this.privParticipants.me)==null?void 0:l.isMuted}get isConnected(){return this.privIsConnected&&this.privIsReady}get participants(){return this.toParticipants(!0)}get me(){return this.toParticipant(this.privParticipants.me)}get host(){return this.toParticipant(this.privParticipants.host)}get transcriberRecognizer(){return this.privTranscriberRecognizer}get meetingInfo(){const s=this.meetingId,l=this.participants.map(u=>({id:u.id,preferredLanguage:u.preferredLanguage,voice:u.voice})),c={};for(const u of e.ConversationConnectionConfig.transcriptionEventKeys){const f=this.properties.getProperty(u,"");f!==""&&(c[u]=f)}return{id:s,participants:l,meetingProperties:c}}get canSend(){var s;return this.privIsConnected&&!((s=this.privParticipants.me)!=null&&s.isMuted)}get canSendAsHost(){var s;return this.privIsConnected&&((s=this.privParticipants.me)==null?void 0:s.isHost)}get authorizationToken(){return this.privToken}set authorizationToken(s){r.Contracts.throwIfNullOrWhitespace(s,"authorizationToken"),this.privToken=s}createMeetingAsync(s,l){try{this.privConversationRecognizer&&this.handleError(new Error(this.privErrors.permissionDeniedStart),l),this.privManager.createOrJoin(this.privProperties,void 0,c=>{c||this.handleError(new Error(this.privErrors.permissionDeniedConnect),l),this.privRoom=c,this.handleCallback(s,l)},c=>{this.handleError(c,l)})}catch(c){this.handleError(c,l)}}startMeetingAsync(s,l){try{this.privConversationRecognizer&&this.handleError(new Error(this.privErrors.permissionDeniedStart),l),r.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedConnect),this.privParticipants.meId=this.privRoom.participantId,this.privConversationRecognizer.connected=this.onConnected,this.privConversationRecognizer.disconnected=this.onDisconnected,this.privConversationRecognizer.canceled=this.onCanceled,this.privConversationRecognizer.participantUpdateCommandReceived=this.onParticipantUpdateCommandReceived,this.privConversationRecognizer.lockRoomCommandReceived=this.onLockRoomCommandReceived,this.privConversationRecognizer.muteAllCommandReceived=this.onMuteAllCommandReceived,this.privConversationRecognizer.participantJoinCommandReceived=this.onParticipantJoinCommandReceived,this.privConversationRecognizer.participantLeaveCommandReceived=this.onParticipantLeaveCommandReceived,this.privConversationRecognizer.translationReceived=this.onTranslationReceived,this.privConversationRecognizer.participantsListReceived=this.onParticipantsListReceived,this.privConversationRecognizer.conversationExpiration=this.onConversationExpiration,this.privConversationRecognizer.connect(this.privRoom.token,()=>{this.handleCallback(s,l)},c=>{this.handleError(c,l)})}catch(c){this.handleError(c,l)}}addParticipantAsync(s,l,c){r.Contracts.throwIfNullOrUndefined(s,"Participant"),(0,t.marshalPromiseToCallbacks)(this.addParticipantImplAsync(s),l,c)}joinMeetingAsync(s,l,c,d,u){try{r.Contracts.throwIfNullOrWhitespace(s,this.privErrors.invalidArgs.replace("{arg}","conversationId")),r.Contracts.throwIfNullOrWhitespace(l,this.privErrors.invalidArgs.replace("{arg}","nickname")),r.Contracts.throwIfNullOrWhitespace(c,this.privErrors.invalidArgs.replace("{arg}","language")),this.privManager.createOrJoin(this.privProperties,s,f=>{r.Contracts.throwIfNullOrUndefined(f,this.privErrors.permissionDeniedConnect),this.privRoom=f,this.privConfig.authorizationToken=f.cognitiveSpeechAuthToken,d&&d(f.cognitiveSpeechAuthToken)},f=>{this.handleError(f,u)})}catch(f){this.handleError(f,u)}}deleteMeetingAsync(s,l){(0,t.marshalPromiseToCallbacks)(this.deleteMeetingImplAsync(),s,l)}async deleteMeetingImplAsync(){r.Contracts.throwIfNullOrUndefined(this.privProperties,this.privErrors.permissionDeniedConnect),r.Contracts.throwIfNullOrWhitespace(this.privRoom.token,this.privErrors.permissionDeniedConnect),await this.privManager.leave(this.privProperties,this.privRoom.token),this.dispose()}endMeetingAsync(s,l){(0,t.marshalPromiseToCallbacks)(this.endMeetingImplAsync(),s,l)}endMeetingImplAsync(){return this.close(!0)}lockMeetingAsync(s,l){try{r.Contracts.throwIfDisposed(this.privIsDisposed),r.Contracts.throwIfDisposed(this.privConversationRecognizer.isDisposed()),r.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedSend),this.canSendAsHost||this.handleError(new Error(this.privErrors.permissionDeniedConversation.replace("{command}","lock")),l),this.privConversationRecognizer&&this.privConversationRecognizer.sendRequest(this.getLockCommand(!0),()=>{this.handleCallback(s,l)},c=>{this.handleError(c,l)})}catch(c){this.handleError(c,l)}}muteAllParticipantsAsync(s,l){try{r.Contracts.throwIfDisposed(this.privIsDisposed),r.Contracts.throwIfDisposed(this.privConversationRecognizer.isDisposed()),r.Contracts.throwIfNullOrUndefined(this.privConversationRecognizer,this.privErrors.permissionDeniedSend),r.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedSend),this.canSendAsHost||this.handleError(new Error(this.privErrors.permissionDeniedConversation.replace("{command}","mute")),l),this.privConversationRecognizer&&this.privConversationRecognizer.sendRequest(this.getMuteAllCommand(!0),()=>{this.handleCallback(s,l)},c=>{this.handleError(c,l)})}catch(c){this.handleError(c,l)}}muteParticipantAsync(s,l,c){try{r.Contracts.throwIfDisposed(this.privIsDisposed),r.Contracts.throwIfDisposed(this.privConversationRecognizer.isDisposed()),r.Contracts.throwIfNullOrWhitespace(s,this.privErrors.invalidArgs.replace("{arg}","userId")),r.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedSend),this.canSend||this.handleError(new Error(this.privErrors.permissionDeniedSend),c),!this.me.isHost&&this.me.id!==s&&this.handleError(new Error(this.privErrors.permissionDeniedParticipant.replace("{command}","mute")),c),this.privParticipants.getParticipantIndex(s)===-1&&this.handleError(new Error(this.privErrors.invalidParticipantRequest),c),this.privConversationRecognizer&&this.privConversationRecognizer.sendRequest(this.getMuteCommand(s,!0),()=>{this.handleCallback(l,c)},u=>{this.handleError(u,c)})}catch(d){this.handleError(d,c)}}removeParticipantAsync(s,l,c){try{if(r.Contracts.throwIfDisposed(this.privIsDisposed),this.privTranscriberRecognizer&&s.hasOwnProperty("id"))(0,t.marshalPromiseToCallbacks)(this.removeParticipantImplAsync(s),l,c);else{r.Contracts.throwIfDisposed(this.privConversationRecognizer.isDisposed()),r.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedSend),this.canSendAsHost||this.handleError(new Error(this.privErrors.permissionDeniedParticipant.replace("{command}","remove")),c);let d="";typeof s=="string"?d=s:s.hasOwnProperty("id")?d=s.id:s.hasOwnProperty("userId")&&(d=s.userId),r.Contracts.throwIfNullOrWhitespace(d,this.privErrors.invalidArgs.replace("{arg}","userId")),this.participants.findIndex(f=>f.id===d)===-1&&this.handleError(new Error(this.privErrors.invalidParticipantRequest),c),this.privConversationRecognizer&&this.privConversationRecognizer.sendRequest(this.getEjectCommand(d),()=>{this.handleCallback(l,c)},f=>{this.handleError(f,c)})}}catch(d){this.handleError(d,c)}}unlockMeetingAsync(s,l){try{r.Contracts.throwIfDisposed(this.privIsDisposed),r.Contracts.throwIfDisposed(this.privConversationRecognizer.isDisposed()),r.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedSend),this.canSendAsHost||this.handleError(new Error(this.privErrors.permissionDeniedConversation.replace("{command}","unlock")),l),this.privConversationRecognizer&&this.privConversationRecognizer.sendRequest(this.getLockCommand(!1),()=>{this.handleCallback(s,l)},c=>{this.handleError(c,l)})}catch(c){this.handleError(c,l)}}unmuteAllParticipantsAsync(s,l){try{r.Contracts.throwIfDisposed(this.privIsDisposed),r.Contracts.throwIfDisposed(this.privConversationRecognizer.isDisposed()),r.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedSend),this.canSendAsHost||this.handleError(new Error(this.privErrors.permissionDeniedConversation.replace("{command}","unmute all")),l),this.privConversationRecognizer&&this.privConversationRecognizer.sendRequest(this.getMuteAllCommand(!1),()=>{this.handleCallback(s,l)},c=>{this.handleError(c,l)})}catch(c){this.handleError(c,l)}}unmuteParticipantAsync(s,l,c){try{r.Contracts.throwIfDisposed(this.privIsDisposed),r.Contracts.throwIfDisposed(this.privConversationRecognizer.isDisposed()),r.Contracts.throwIfNullOrWhitespace(s,this.privErrors.invalidArgs.replace("{arg}","userId")),r.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedSend),this.canSend||this.handleError(new Error(this.privErrors.permissionDeniedSend),c),!this.me.isHost&&this.me.id!==s&&this.handleError(new Error(this.privErrors.permissionDeniedParticipant.replace("{command}","mute")),c),this.privParticipants.getParticipantIndex(s)===-1&&this.handleError(new Error(this.privErrors.invalidParticipantRequest),c),this.privConversationRecognizer&&this.privConversationRecognizer.sendRequest(this.getMuteCommand(s,!1),()=>{this.handleCallback(l,c)},u=>{this.handleError(u,c)})}catch(d){this.handleError(d,c)}}sendTextMessageAsync(s,l,c){try{r.Contracts.throwIfDisposed(this.privIsDisposed),r.Contracts.throwIfDisposed(this.privConversationRecognizer.isDisposed()),r.Contracts.throwIfNullOrWhitespace(s,this.privErrors.invalidArgs.replace("{arg}","message")),r.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedSend),this.canSend||this.handleError(new Error(this.privErrors.permissionDeniedSend),c),s.length>this.privTextMessageMaxLength&&this.handleError(new Error(this.privErrors.invalidArgs.replace("{arg}","message length")),c),this.privConversationRecognizer&&this.privConversationRecognizer.sendRequest(this.getMessageCommand(s),()=>{this.handleCallback(l,c)},d=>{this.handleError(d,c)})}catch(d){this.handleError(d,c)}}setTranslatedLanguagesAsync(s,l,c){try{r.Contracts.throwIfDisposed(this.privIsDisposed),r.Contracts.throwIfDisposed(this.privConversationRecognizer.isDisposed()),r.Contracts.throwIfArrayEmptyOrWhitespace(s,this.privErrors.invalidArgs.replace("{arg}","languages")),r.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedSend),this.canSend||this.handleError(new Error(this.privErrors.permissionDeniedSend),c),this.privConversationRecognizer&&this.privConversationRecognizer.sendRequest(this.getSetTranslateToLanguagesCommand(s),()=>{this.handleCallback(l,c)},d=>{this.handleError(d,c)})}catch(d){this.handleError(d,c)}}changeNicknameAsync(s,l,c){try{r.Contracts.throwIfDisposed(this.privIsDisposed),r.Contracts.throwIfDisposed(this.privConversationRecognizer.isDisposed()),r.Contracts.throwIfNullOrWhitespace(s,this.privErrors.invalidArgs.replace("{arg}","nickname")),r.Contracts.throwIfNullOrUndefined(this.privRoom,this.privErrors.permissionDeniedSend),this.canSend||this.handleError(new Error(this.privErrors.permissionDeniedSend),c),this.privConversationRecognizer&&this.privConversationRecognizer.sendRequest(this.getChangeNicknameCommand(s),()=>{this.handleCallback(l,c)},d=>{this.handleError(d,c)})}catch(d){this.handleError(d,c)}}isDisposed(){return this.privIsDisposed}dispose(){this.isDisposed||(this.privIsDisposed=!0,this.config&&this.config.close(),this.privConfig=void 0,this.privLanguage=void 0,this.privProperties=void 0,this.privRoom=void 0,this.privToken=void 0,this.privManager=void 0,this.privIsConnected=!1,this.privIsReady=!1,this.privParticipants=void 0)}async connectTranscriberRecognizer(s){this.privTranscriberRecognizer&&await this.privTranscriberRecognizer.close(),await s.enforceAudioGating(),this.privTranscriberRecognizer=s,this.privTranscriberRecognizer.meeting=this}getKeepAlive(){const s=this.me?this.me.displayName:"default_nickname";return JSON.stringify({id:"0",nickname:s,participantId:this.privRoom.participantId,roomId:this.privRoom.roomId,type:e.ConversationTranslatorMessageTypes.keepAlive})}addParticipantImplAsync(s){if(this.privParticipants.addOrUpdateParticipant(s)!==void 0&&this.privTranscriberRecognizer){const c=this.meetingInfo;return c.participants=[s],this.privTranscriberRecognizer.pushMeetingEvent(c,"join")}}removeParticipantImplAsync(s){this.privParticipants.deleteParticipant(s.id);const l=this.meetingInfo;return l.participants=[s],this.privTranscriberRecognizer.pushMeetingEvent(l,"leave")}async close(s){var l;try{this.privIsConnected=!1,await((l=this.privConversationRecognizer)==null?void 0:l.close()),this.privConversationRecognizer=void 0,this.privConversationTranslator&&this.privConversationTranslator.dispose()}catch(c){throw c}s&&this.dispose()}handleCallback(s,l){if(s){try{s()}catch(c){l&&l(c)}s=void 0}}handleError(s,l){if(l)if(s instanceof Error){const c=s;l(c.name+": "+c.message)}else l(s)}toParticipants(s){const l=this.privParticipants.participants.map(c=>this.toParticipant(c));return s?l:l.filter(c=>c.isHost===!1)}toParticipant(s){return new n.Participant(s.id,s.avatar,s.displayName,s.isHost,s.isMuted,s.isUsingTts,s.preferredLanguage,s.voice)}getMuteAllCommand(s){return r.Contracts.throwIfNullOrWhitespace(this.privRoom.roomId,"meetingd"),r.Contracts.throwIfNullOrWhitespace(this.privRoom.participantId,"participantId"),JSON.stringify({command:e.ConversationTranslatorCommandTypes.setMuteAll,participantId:this.privRoom.participantId,roomid:this.privRoom.roomId,type:e.ConversationTranslatorMessageTypes.participantCommand,value:s})}getMuteCommand(s,l){return r.Contracts.throwIfNullOrWhitespace(this.privRoom.roomId,"conversationId"),r.Contracts.throwIfNullOrWhitespace(s,"participantId"),JSON.stringify({command:e.ConversationTranslatorCommandTypes.setMute,participantId:s,roomid:this.privRoom.roomId,type:e.ConversationTranslatorMessageTypes.participantCommand,value:l})}getLockCommand(s){return r.Contracts.throwIfNullOrWhitespace(this.privRoom.roomId,"meetingId"),r.Contracts.throwIfNullOrWhitespace(this.privRoom.participantId,"participantId"),JSON.stringify({command:e.ConversationTranslatorCommandTypes.setLockState,participantId:this.privRoom.participantId,roomid:this.privRoom.roomId,type:e.ConversationTranslatorMessageTypes.participantCommand,value:s})}getEjectCommand(s){return r.Contracts.throwIfNullOrWhitespace(this.privRoom.roomId,"meetingId"),r.Contracts.throwIfNullOrWhitespace(s,"participantId"),JSON.stringify({command:e.ConversationTranslatorCommandTypes.ejectParticipant,participantId:s,roomid:this.privRoom.roomId,type:e.ConversationTranslatorMessageTypes.participantCommand})}getSetTranslateToLanguagesCommand(s){return r.Contracts.throwIfNullOrWhitespace(this.privRoom.roomId,"meetingId"),r.Contracts.throwIfNullOrWhitespace(this.privRoom.participantId,"participantId"),JSON.stringify({command:e.ConversationTranslatorCommandTypes.setTranslateToLanguages,participantId:this.privRoom.participantId,roomid:this.privRoom.roomId,type:e.ConversationTranslatorMessageTypes.participantCommand,value:s})}getChangeNicknameCommand(s){return r.Contracts.throwIfNullOrWhitespace(this.privRoom.roomId,"meetingId"),r.Contracts.throwIfNullOrWhitespace(s,"nickname"),r.Contracts.throwIfNullOrWhitespace(this.privRoom.participantId,"participantId"),JSON.stringify({command:e.ConversationTranslatorCommandTypes.changeNickname,nickname:s,participantId:this.privRoom.participantId,roomid:this.privRoom.roomId,type:e.ConversationTranslatorMessageTypes.participantCommand,value:s})}getMessageCommand(s){return r.Contracts.throwIfNullOrWhitespace(this.privRoom.roomId,"meetingId"),r.Contracts.throwIfNullOrWhitespace(this.privRoom.participantId,"participantId"),r.Contracts.throwIfNullOrWhitespace(s,"message"),JSON.stringify({participantId:this.privRoom.participantId,roomId:this.privRoom.roomId,text:s,type:e.ConversationTranslatorMessageTypes.instantMessage})}}return _u.MeetingImpl=o,_u}var Dv={},vB;function h5e(){if(vB)return Dv;vB=1,Object.defineProperty(Dv,"__esModule",{value:!0}),Dv.MeetingTranscriptionCanceledEventArgs=void 0;const e=R0();class t extends e.CancellationEventArgsBase{}return Dv.MeetingTranscriptionCanceledEventArgs=t,Dv}var Lv={},gB;function v5e(){if(gB)return Lv;gB=1,Object.defineProperty(Lv,"__esModule",{value:!0}),Lv.MeetingTranscriber=void 0;const e=Lt(),t=Wt(),r=Zt,n=Ct(),i=K3();let o=class{constructor(s){this.privAudioConfig=s,this.privProperties=new n.PropertyCollection,this.privRecognizer=void 0,this.privDisposedRecognizer=!1}get speechRecognitionLanguage(){return r.Contracts.throwIfDisposed(this.privDisposedRecognizer),this.properties.getProperty(n.PropertyId.SpeechServiceConnection_RecoLanguage)}get properties(){return this.privProperties}get internalData(){return this.privRecognizer.internalData}get connection(){return n.Connection.fromRecognizer(this.privRecognizer)}get authorizationToken(){return this.properties.getProperty(n.PropertyId.SpeechServiceAuthorization_Token)}set authorizationToken(s){r.Contracts.throwIfNullOrWhitespace(s,"token"),this.properties.setProperty(n.PropertyId.SpeechServiceAuthorization_Token,s)}joinMeetingAsync(s,l,c){const d=s;r.Contracts.throwIfNullOrUndefined(i.MeetingImpl,"Meeting"),this.privRecognizer=new e.TranscriberRecognizer(s.config,this.privAudioConfig),r.Contracts.throwIfNullOrUndefined(this.privRecognizer,"Recognizer"),this.privRecognizer.connectMeetingCallbacks(this),(0,t.marshalPromiseToCallbacks)(d.connectTranscriberRecognizer(this.privRecognizer),l,c)}startTranscribingAsync(s,l){this.privRecognizer.startContinuousRecognitionAsync(s,l)}stopTranscribingAsync(s,l){this.privRecognizer.stopContinuousRecognitionAsync(s,l)}leaveMeetingAsync(s,l){this.privRecognizer.disconnectCallbacks(),(0,t.marshalPromiseToCallbacks)((async()=>{})(),s,l)}close(s,l){r.Contracts.throwIfDisposed(this.privDisposedRecognizer),(0,t.marshalPromiseToCallbacks)(this.dispose(!0),s,l)}async dispose(s){this.privDisposedRecognizer||(this.privRecognizer&&(await this.privRecognizer.close(),this.privRecognizer=void 0),s&&(this.privDisposedRecognizer=!0))}};return Lv.MeetingTranscriber=o,Lv}var jv={},mB;function g5e(){if(mB)return jv;mB=1,Object.defineProperty(jv,"__esModule",{value:!0}),jv.ConversationTranscriptionResult=void 0;const e=Ct();let t=class extends e.RecognitionResult{constructor(n,i,o,a,s,l,c,d,u,f,h){super(n,i,o,a,s,l,c,u,f,h),this.privSpeakerId=d}get speakerId(){return this.privSpeakerId}};return jv.ConversationTranscriptionResult=t,jv}var yB;function K3(){return yB||(yB=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ConversationTranscriptionResult=e.MeetingTranscriber=e.MeetingTranscriptionCanceledEventArgs=e.MeetingImpl=e.Meeting=e.ParticipantChangedReason=e.User=e.Participant=e.ConversationTranscriber=e.ConversationTranslator=e.ConversationTranslationResult=e.ConversationTranslationEventArgs=e.ConversationTranslationCanceledEventArgs=e.ConversationParticipantsChangedEventArgs=e.ConversationExpirationEventArgs=e.ConversationCommon=e.ConversationImpl=e.Conversation=void 0;var t=Qre();Object.defineProperty(e,"Conversation",{enumerable:!0,get:function(){return t.Conversation}}),Object.defineProperty(e,"ConversationImpl",{enumerable:!0,get:function(){return t.ConversationImpl}});var r=$E;Object.defineProperty(e,"ConversationCommon",{enumerable:!0,get:function(){return r.ConversationCommon}});var n=n5e();Object.defineProperty(e,"ConversationExpirationEventArgs",{enumerable:!0,get:function(){return n.ConversationExpirationEventArgs}});var i=i5e();Object.defineProperty(e,"ConversationParticipantsChangedEventArgs",{enumerable:!0,get:function(){return i.ConversationParticipantsChangedEventArgs}});var o=o5e();Object.defineProperty(e,"ConversationTranslationCanceledEventArgs",{enumerable:!0,get:function(){return o.ConversationTranslationCanceledEventArgs}});var a=a5e();Object.defineProperty(e,"ConversationTranslationEventArgs",{enumerable:!0,get:function(){return a.ConversationTranslationEventArgs}});var s=s5e();Object.defineProperty(e,"ConversationTranslationResult",{enumerable:!0,get:function(){return s.ConversationTranslationResult}});var l=u5e();Object.defineProperty(e,"ConversationTranslator",{enumerable:!0,get:function(){return l.ConversationTranslator}});var c=d5e();Object.defineProperty(e,"ConversationTranscriber",{enumerable:!0,get:function(){return c.ConversationTranscriber}});var d=f5e();Object.defineProperty(e,"Participant",{enumerable:!0,get:function(){return d.Participant}}),Object.defineProperty(e,"User",{enumerable:!0,get:function(){return d.User}});var u=ene;Object.defineProperty(e,"ParticipantChangedReason",{enumerable:!0,get:function(){return u.ParticipantChangedReason}});var f=p5e();Object.defineProperty(e,"Meeting",{enumerable:!0,get:function(){return f.Meeting}}),Object.defineProperty(e,"MeetingImpl",{enumerable:!0,get:function(){return f.MeetingImpl}});var h=h5e();Object.defineProperty(e,"MeetingTranscriptionCanceledEventArgs",{enumerable:!0,get:function(){return h.MeetingTranscriptionCanceledEventArgs}});var v=v5e();Object.defineProperty(e,"MeetingTranscriber",{enumerable:!0,get:function(){return v.MeetingTranscriber}});var y=g5e();Object.defineProperty(e,"ConversationTranscriptionResult",{enumerable:!0,get:function(){return y.ConversationTranscriptionResult}})}(U2)),U2}var Eu={},SB;function Y3(){if(SB)return Eu;SB=1,Object.defineProperty(Eu,"__esModule",{value:!0}),Eu.SynthesisRequest=Eu.Synthesizer=void 0;const e=Lt(),t=Wt(),r=Zt,n=Ct();let i=class tne{constructor(s){const l=s;r.Contracts.throwIfNull(l,"speechConfig"),this.privProperties=l.properties.clone(),this.privDisposed=!1,this.privSynthesizing=!1,this.synthesisRequestQueue=new t.Queue,this.tokenCredential=s.tokenCredential}get authorizationToken(){return this.properties.getProperty(n.PropertyId.SpeechServiceAuthorization_Token)}set authorizationToken(s){r.Contracts.throwIfNullOrWhitespace(s,"token"),this.properties.setProperty(n.PropertyId.SpeechServiceAuthorization_Token,s)}get properties(){return this.privProperties}get autoDetectSourceLanguage(){return this.properties.getProperty(n.PropertyId.SpeechServiceConnection_AutoDetectSourceLanguages)===e.AutoDetectSourceLanguagesOpenRangeOptionName}buildSsml(s){const l={"af-ZA":"af-ZA-AdriNeural","am-ET":"am-ET-AmehaNeural","ar-AE":"ar-AE-FatimaNeural","ar-BH":"ar-BH-AliNeural","ar-DZ":"ar-DZ-AminaNeural","ar-EG":"ar-EG-SalmaNeural","ar-IQ":"ar-IQ-BasselNeural","ar-JO":"ar-JO-SanaNeural","ar-KW":"ar-KW-FahedNeural","ar-LY":"ar-LY-ImanNeural","ar-MA":"ar-MA-JamalNeural","ar-QA":"ar-QA-AmalNeural","ar-SA":"ar-SA-HamedNeural","ar-SY":"ar-SY-AmanyNeural","ar-TN":"ar-TN-HediNeural","ar-YE":"ar-YE-MaryamNeural","bg-BG":"bg-BG-BorislavNeural","bn-BD":"bn-BD-NabanitaNeural","bn-IN":"bn-IN-BashkarNeural","ca-ES":"ca-ES-JoanaNeural","cs-CZ":"cs-CZ-AntoninNeural","cy-GB":"cy-GB-AledNeural","da-DK":"da-DK-ChristelNeural","de-AT":"de-AT-IngridNeural","de-CH":"de-CH-JanNeural","de-DE":"de-DE-KatjaNeural","el-GR":"el-GR-AthinaNeural","en-AU":"en-AU-NatashaNeural","en-CA":"en-CA-ClaraNeural","en-GB":"en-GB-LibbyNeural","en-HK":"en-HK-SamNeural","en-IE":"en-IE-ConnorNeural","en-IN":"en-IN-NeerjaNeural","en-KE":"en-KE-AsiliaNeural","en-NG":"en-NG-AbeoNeural","en-NZ":"en-NZ-MitchellNeural","en-PH":"en-PH-JamesNeural","en-SG":"en-SG-LunaNeural","en-TZ":"en-TZ-ElimuNeural","en-US":"en-US-AvaMultilingualNeural","en-ZA":"en-ZA-LeahNeural","es-AR":"es-AR-ElenaNeural","es-BO":"es-BO-MarceloNeural","es-CL":"es-CL-CatalinaNeural","es-CO":"es-CO-GonzaloNeural","es-CR":"es-CR-JuanNeural","es-CU":"es-CU-BelkysNeural","es-DO":"es-DO-EmilioNeural","es-EC":"es-EC-AndreaNeural","es-ES":"es-ES-AlvaroNeural","es-GQ":"es-GQ-JavierNeural","es-GT":"es-GT-AndresNeural","es-HN":"es-HN-CarlosNeural","es-MX":"es-MX-DaliaNeural","es-NI":"es-NI-FedericoNeural","es-PA":"es-PA-MargaritaNeural","es-PE":"es-PE-AlexNeural","es-PR":"es-PR-KarinaNeural","es-PY":"es-PY-MarioNeural","es-SV":"es-SV-LorenaNeural","es-US":"es-US-AlonsoNeural","es-UY":"es-UY-MateoNeural","es-VE":"es-VE-PaolaNeural","et-EE":"et-EE-AnuNeural","fa-IR":"fa-IR-DilaraNeural","fi-FI":"fi-FI-SelmaNeural","fil-PH":"fil-PH-AngeloNeural","fr
439-BE":"fr-BE-CharlineNeural","fr-CA":"fr-CA-SylvieNeural","fr-CH":"fr-CH-ArianeNeural","fr-FR":"fr-FR-DeniseNeural","ga-IE":"ga-IE-ColmNeural","gl-ES":"gl-ES-RoiNeural","gu-IN":"gu-IN-DhwaniNeural","he-IL":"he-IL-AvriNeural","hi-IN":"hi-IN-MadhurNeural","hr-HR":"hr-HR-GabrijelaNeural","hu-HU":"hu-HU-NoemiNeural","id-ID":"id-ID-ArdiNeural","is-IS":"is-IS-GudrunNeural","it-IT":"it-IT-IsabellaNeural","ja-JP":"ja-JP-NanamiNeural","jv-ID":"jv-ID-DimasNeural","kk-KZ":"kk-KZ-AigulNeural","km-KH":"km-KH-PisethNeural","kn-IN":"kn-IN-GaganNeural","ko-KR":"ko-KR-SunHiNeural","lo-LA":"lo-LA-ChanthavongNeural","lt-LT":"lt-LT-LeonasNeural","lv-LV":"lv-LV-EveritaNeural","mk-MK":"mk-MK-AleksandarNeural","ml-IN":"ml-IN-MidhunNeural","mr-IN":"mr-IN-AarohiNeural","ms-MY":"ms-MY-OsmanNeural","mt-MT":"mt-MT-GraceNeural","my-MM":"my-MM-NilarNeural","nb-NO":"nb-NO-PernilleNeural","nl-BE":"nl-BE-ArnaudNeural","nl-NL":"nl-NL-ColetteNeural","pl-PL":"pl-PL-AgnieszkaNeural","ps-AF":"ps-AF-GulNawazNeural","pt-BR":"pt-BR-FranciscaNeural","pt-PT":"pt-PT-DuarteNeural","ro-RO":"ro-RO-AlinaNeural","ru-RU":"ru-RU-SvetlanaNeural","si-LK":"si-LK-SameeraNeural","sk-SK":"sk-SK-LukasNeural","sl-SI":"sl-SI-PetraNeural","so-SO":"so-SO-MuuseNeural","sr-RS":"sr-RS-NicholasNeural","su-ID":"su-ID-JajangNeural","sv-SE":"sv-SE-SofieNeural","sw-KE":"sw-KE-RafikiNeural","sw-TZ":"sw-TZ-DaudiNeural","ta-IN":"ta-IN-PallaviNeural","ta-LK":"ta-LK-KumarNeural","ta-SG":"ta-SG-AnbuNeural","te-IN":"te-IN-MohanNeural","th-TH":"th-TH-PremwadeeNeural","tr-TR":"tr-TR-AhmetNeural","uk-UA":"uk-UA-OstapNeural","ur-IN":"ur-IN-GulNeural","ur-PK":"ur-PK-AsadNeural","uz-UZ":"uz-UZ-MadinaNeural","vi-VN":"vi-VN-HoaiMyNeural","zh-CN":"zh-CN-XiaoxiaoNeural","zh-HK":"zh-HK-HiuMaanNeural","zh-TW":"zh-TW-HsiaoChenNeural","zu-ZA":"zu-ZA-ThandoNeural"};let c=this.properties.getProperty(n.PropertyId.SpeechServiceConnection_SynthLanguage,"en-US"),d=this.properties.getProperty(n.PropertyId.SpeechServiceConnection_SynthVoice,""),u=tne.XMLEncode(s);return this.autoDetectSourceLanguage?c="en-US":d=d||l[c],d&&(u=`<voice name='${d}'>${u}</voice>`),u=`<speak version='1.0' xmlns='http://www.w3.org/2001/10/synthesis' xmlns:mstts='http://www.w3.org/2001/mstts' xmlns:emo='http://www.w3.org/2009/10/emotionml' xml:lang='${c}'>${u}</speak>`,u}async dispose(s){this.privDisposed||(s&&this.privAdapter&&await this.privAdapter.dispose(),this.privDisposed=!0)}async adapterSpeak(){if(!this.privDisposed&&!this.privSynthesizing){this.privSynthesizing=!0;const s=await this.synthesisRequestQueue.dequeue();return this.privAdapter.Speak(s.text,s.isSSML,s.requestId,s.cb,s.err,s.dataStream)}}createSynthesizerConfig(s){return new e.SynthesizerConfig(s,this.privProperties)}implCommonSynthesizeSetup(){let s=typeof window<"u"?"Browser":"Node",l="unknown",c="unknown";typeof navigator<"u"&&(s=s+"/"+navigator.platform,l=navigator.userAgent,c=navigator.appVersion);const d=this.createSynthesizerConfig(new e.SpeechServiceConfig(new e.Context(new e.OS(s,l,c)))),u=this.privProperties.getProperty(n.PropertyId.SpeechServiceConnection_Key,void 0),f=u&&u!==""?new e.CognitiveSubscriptionKeyAuthentication(u):this.tokenCredential?new e.CognitiveTokenAuthentication(async()=>{try{const h=await this.tokenCredential.getToken("https://cognitiveservices.azure.com/.default");return(h==null?void 0:h.token)??""}catch(h){throw h}},async()=>{try{const h=await this.tokenCredential.getToken("https://cognitiveservices.azure.com/.default");return(h==null?void 0:h.token)??""}catch(h){throw h}}):new e.CognitiveTokenAuthentication(()=>{const h=this.privProperties.getProperty(n.PropertyId.SpeechServiceAuthorization_Token,void 0);return Promise.resolve(h)},()=>{const h=this.privProperties.getProperty(n.PropertyId.SpeechServiceAuthorization_Token,void 0);return Promise.resolve(h)});this.privAdapter=this.createSynthesisAdapter(f,this.privConnectionFactory,d),this.privRestAdapter=this.createRestSynthesisAdapter(f,d)}static XMLEncode(s){return s.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}};Eu.Synthesizer=i;class o{constructor(s,l,c,d,u,f){this.requestId=s,this.text=l,this.isSSML=c,this.cb=d,this.err=u,this.dataStream=f}}return Eu.SynthesisRequest=o,Eu}var Fv={},CB;function m5e(){if(CB)return Fv;
vendor: 30,424 bytes, line 439
439CB=1,Object.defineProperty(Fv,"__esModule",{value:!0}),Fv.SpeechSynthesizer=void 0;const e=Lt(),t=Wt(),r=E0,n=Qc,i=Ci,o=Zt,a=Ct(),s=Y3();let l=class rne extends a.Synthesizer{constructor(d,u){super(d),u!==null&&(u===void 0?this.audioConfig=typeof window>"u"?void 0:a.AudioConfig.fromDefaultSpeakerOutput():this.audioConfig=u),this.privConnectionFactory=new e.SpeechSynthesisConnectionFactory,this.implCommonSynthesizeSetup()}static FromConfig(d,u,f){const h=d;return u.properties.mergeTo(h.properties),new rne(d,f)}speakTextAsync(d,u,f,h){this.speakImpl(d,!1,u,f,h)}speakSsmlAsync(d,u,f,h){this.speakImpl(d,!0,u,f,h)}async getVoicesAsync(d=""){return this.getVoices(d)}close(d,u){o.Contracts.throwIfDisposed(this.privDisposed),(0,t.marshalPromiseToCallbacks)(this.dispose(!0),d,u)}get internalData(){return this.privAdapter}createSynthesisAdapter(d,u,f){return new e.SpeechSynthesisAdapter(d,u,f,this,this.audioConfig)}createRestSynthesisAdapter(d,u){return new e.SynthesisRestAdapter(u,d)}implCommonSynthesizeSetup(){super.implCommonSynthesizeSetup(),this.privAdapter.audioOutputFormat=n.AudioOutputFormatImpl.fromSpeechSynthesisOutputFormat(a.SpeechSynthesisOutputFormat[this.properties.getProperty(a.PropertyId.SpeechServiceConnection_SynthOutputFormat,void 0)])}speakImpl(d,u,f,h,v){try{o.Contracts.throwIfDisposed(this.privDisposed);const y=(0,t.createNoDashGuid)();let g;v instanceof a.PushAudioOutputStreamCallback?g=new i.PushAudioOutputStreamImpl(v):v instanceof a.PullAudioOutputStream?g=v:v!==void 0?g=new r.AudioFileWriter(v):g=void 0,this.synthesisRequestQueue.enqueue(new s.SynthesisRequest(y,d,u,m=>{if(this.privSynthesizing=!1,f)try{f(m)}catch(S){h&&h(S)}f=void 0,this.adapterSpeak().catch(()=>{})},m=>{h&&h(m)},g)),this.adapterSpeak().catch(()=>{})}catch(y){if(h)if(y instanceof Error){const g=y;h(g.name+": "+g.message)}else h(y);this.dispose(!0).catch(()=>{})}}async getVoices(d){const u=(0,t.createNoDashGuid)(),f=await this.privRestAdapter.getVoicesList(u);if(f.ok&&Array.isArray(f.json)){let h=f.json;return d&&d.length>0&&(h=h.filter(v=>!!v.Locale&&v.Locale.toLowerCase()===d.toLowerCase())),new a.SynthesisVoicesResult(u,h,void 0)}else return new a.SynthesisVoicesResult(u,void 0,`Error: ${f.status}: ${f.statusText}`)}};return Fv.SpeechSynthesizer=l,Fv}var kE={};Object.defineProperty(kE,"__esModule",{value:!0});kE.SynthesisResult=void 0;class y5e{constructor(t,r,n,i){this.privResultId=t,this.privReason=r,this.privErrorDetails=n,this.privProperties=i}get resultId(){return this.privResultId}get reason(){return this.privReason}get errorDetails(){return this.privErrorDetails}get properties(){return this.privProperties}}kE.SynthesisResult=y5e;var zv={},bB;function S5e(){if(bB)return zv;bB=1,Object.defineProperty(zv,"__esModule",{value:!0}),zv.SpeechSynthesisResult=void 0;const e=Ct();let t=class extends e.SynthesisResult{constructor(n,i,o,a,s,l){super(n,i,a,s),this.privAudioData=o,this.privAudioDuration=l}get audioData(){return this.privAudioData}get audioDuration(){return this.privAudioDuration}};return zv.SpeechSynthesisResult=t,zv}var NE={};Object.defineProperty(NE,"__esModule",{value:!0});NE.SpeechSynthesisEventArgs=void 0;class C5e{constructor(t){this.privResult=t}get result(){return this.privResult}}NE.SpeechSynthesisEventArgs=C5e;var DE={};Object.defineProperty(DE,"__esModule",{value:!0});DE.SpeechSynthesisWordBoundaryEventArgs=void 0;class b5e{constructor(t,r,n,i,o,a){this.privAudioOffset=t,this.privDuration=r,this.privText=n,this.privWordLength=i,this.privTextOffset=o,this.privBoundaryType=a}get audioOffset(){return this.privAudioOffset}get duration(){return this.privDuration}get text(){return this.privText}get wordLength(){return this.privWordLength}get textOffset(){return this.privTextOffset}get boundaryType(){return this.privBoundaryType}}DE.SpeechSynthesisWordBoundaryEventArgs=b5e;var LE={};Object.defineProperty(LE,"__esModule",{value:!0});LE.SpeechSynthesisBookmarkEventArgs=void 0;class w5e{constructor(t,r){this.privAudioOffset=t,this.privText=r}get audioOffset(){return this.privAudioOffset}get text(){return this.privText}}LE.SpeechSynthesisBookmarkEventArgs=w5e;var jE={};Object.defineProperty(jE,"__esModule",{value:!0});jE.SpeechSynthesisVisemeEventArgs=void 0;class _5e{constructor(t,r,n){this.privAudioOffset=t,this.privVisemeId=r,this.privAnimation=n}get audioOffset(){return this.privAudioOffset}get visemeId(){return this.privVisemeId}get animation(){return this.privAnimation}}jE.SpeechSynthesisVisemeEventArgs=_5e;var nne={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SpeechSynthesisBoundaryType=void 0,function(t){t.Word="WordBoundary",t.Punctuation="PunctuationBoundary",t.Sentence="SentenceBoundary"}(e.SpeechSynthesisBoundaryType||(e.SpeechSynthesisBoundaryType={}))})(nne);var Bv={},wB;function E5e(){if(wB)return Bv;wB=1,Object.defineProperty(Bv,"__esModule",{value:!0}),Bv.SynthesisVoicesResult=void 0;const e=Ct();let t=class extends e.SynthesisResult{constructor(n,i,o){if(Array.isArray(i)){super(n,e.ResultReason.VoicesListRetrieved,void 0,new e.PropertyCollection),this.privVoices=[];for(const a of i)this.privVoices.push(new e.VoiceInfo(a))}else super(n,e.ResultReason.Canceled,o||"Error information unavailable",new e.PropertyCollection)}get voices(){return this.privVoices}};return Bv.SynthesisVoicesResult=t,Bv}var ine={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.VoiceInfo=e.SynthesisVoiceType=e.SynthesisVoiceGender=void 0;var t;(function(a){a[a.Unknown=0]="Unknown",a[a.Female=1]="Female",a[a.Male=2]="Male",a[a.Neutral=3]="Neutral"})(t=e.SynthesisVoiceGender||(e.SynthesisVoiceGender={}));var r;(function(a){a[a.Unknown=0]="Unknown",a[a.OnlineNeural=1]="OnlineNeural",a[a.OnlineStandard=2]="OnlineStandard",a[a.OfflineNeural=3]="OfflineNeural",a[a.OfflineStandard=4]="OfflineStandard",a[a.OnlineNeuralHD=5]="OnlineNeuralHD"})(r=e.SynthesisVoiceType||(e.SynthesisVoiceType={}));const n={[t[t.Neutral]]:t.Neutral,[t[t.Male]]:t.Male,[t[t.Female]]:t.Female},i={Neural:r.OnlineNeural,NeuralHD:r.OnlineNeuralHD};class o{constructor(s){if(this.privStyleList=[],s){if(this.privName=s.Name,this.privLocale=s.Locale,this.privShortName=s.ShortName,this.privLocaleName=s.LocaleName,this.privDisplayName=s.DisplayName,this.privLocalName=s.LocalName,this.privVoiceType=i[s.VoiceType]||r.Unknown,this.privGender=n[s.Gender]||t.Unknown,s.StyleList&&Array.isArray(s.StyleList))for(const l of s.StyleList)this.privStyleList.push(l);this.privSampleRateHertz=s.SampleRateHertz,this.privStatus=s.Status,s.ExtendedPropertyMap&&(this.privExtendedPropertyMap=s.ExtendedPropertyMap),this.privWordsPerMinute=s.WordsPerMinute,Array.isArray(s.SecondaryLocaleList)&&(this.privSecondaryLocaleList=[...s.SecondaryLocaleList]),Array.isArray(s.RolePlayList)&&(this.privRolePlayList=[...s.RolePlayList]),s.VoiceTag&&(this.privVoiceTag=s.VoiceTag)}}get name(){return this.privName}get locale(){return this.privLocale}get shortName(){return this.privShortName}get displayName(){return this.privDisplayName}get localName(){return this.privLocalName}get localeName(){return this.privLocaleName}get gender(){return this.privGender}get voiceType(){return this.privVoiceType}get styleList(){return this.privStyleList}get sampleRateHertz(){return this.privSampleRateHertz}get status(){return this.privStatus}get extendedPropertyMap(){return this.privExtendedPropertyMap}get wordsPerMinute(){return this.privWordsPerMinute}get secondaryLocaleList(){return this.privSecondaryLocaleList}get rolePlayList(){return this.privRolePlayList}get voiceTag(){return this.privVoiceTag}}e.VoiceInfo=o})(ine);var FE={};Object.defineProperty(FE,"__esModule",{value:!0});FE.SpeakerAudioDestination=void 0;const Ru=Wt(),R5e=Ci,ya=Xc,P5e=60*30,_B={[ya.AudioFormatTag.PCM]:"audio/wav",[ya.AudioFormatTag.MuLaw]:"audio/x-wav",[ya.AudioFormatTag.MP3]:"audio/mpeg",[ya.AudioFormatTag.OGG_OPUS]:"audio/ogg",[ya.AudioFormatTag.WEBM_OPUS]:"audio/webm; codecs=opus",[ya.AudioFormatTag.ALaw]:"audio/x-wav",[ya.AudioFormatTag.FLAC]:"audio/flac",[ya.AudioFormatTag.AMR_WB]:"audio/amr-wb",[ya.AudioFormatTag.G722]:"audio/G722"};class I5e{constructor(t){this.privPlaybackStarted=!1,this.privAppendingToBuffer=!1,this.privMediaSourceOpened=!1,this.privBytesReceived=0,this.privId=t||(0,Ru.createNoDashGuid)(),this.privIsPaused=!1,this.privIsClosed=!1}id(){return this.privId}write(t,r,n){this.privAudioBuffer!==void 0?(this.privAudioBuffer.push(t),this.updateSourceBuffer().then(()=>{r&&r()},i=>{n&&n(i)})):this.privAudioOutputStream!==void 0&&(this.privAudioOutputStream.write(t),this.privBytesReceived+=t.byteLength)}close(t,r){if(this.privIsClosed=!0,this.privSourceBuffer!==void 0)this.handleSourceBufferUpdateEnd().then(()=>{t&&t()},n=>{r&&r(n)});else if(this.privAudioOutputStream!==void 0&&typeof window<"u")if((this.privFormat.formatTag===ya.AudioFormatTag.PCM||this.privFormat.formatTag===ya.AudioFormatTag.MuLaw||this.privFormat.formatTag===ya.AudioFormatTag.ALaw)&&this.privFormat.hasHeader===!1)this.onAudioEnd&&this.onAudioEnd(this);else{let n=new ArrayBuffer(this.privBytesReceived);this.privAudioOutputStream.read(n).then(()=>{n=this.privFormat.addHeader(n);const i=new Blob([n],{type:_B[this.privFormat.formatTag]});this.privAudio.src=window.URL.createObjectURL(i),this.notifyPlayback().then(()=>{t&&t()},o=>{r&&r(o)})},i=>{r&&r(i)})}else this.onAudioEnd&&this.onAudioEnd(this)}set format(t){if(typeof AudioContext<"u"||typeof window<"u"&&typeof window.webkitAudioContext<"u"){this.privFormat=t;const r=_B[this.privFormat.formatTag];r===void 0||(typeof MediaSource<"u"&&MediaSource.isTypeSupported(r)?(this.privAudio=new Audio,this.privAudioBuffer=[],this.privMediaSource=new MediaSource,this.privAudio.src=URL.createObjectURL(this.privMediaSource),this.privAudio.load(),this.privMediaSource.onsourceopen=()=>{this.privMediaSourceOpened=!0,this.privMediaSource.duration=P5e,this.privSourceBuffer=this.privMediaSource.addSourceBuffer(r),this.privSourceBuffer.onupdate=()=>{this.updateSourceBuffer().catch(n=>{Ru.Events.instance.onEvent(new Ru.BackgroundEvent(n))})},this.privSourceBuffer.onupdateend=()=>{this.handleSourceBufferUpdateEnd().catch(n=>{Ru.Events.instance.onEvent(new Ru.BackgroundEvent(n))})},this.privSourceBuffer.onupdatestart=()=>{this.privAppendingToBuffer=!1}},this.updateSourceBuffer().catch(n=>{Ru.Events.instance.onEvent(new Ru.BackgroundEvent(n))})):(this.privAudioOutputStream=new R5e.PullAudioOutputStreamImpl,this.privAudioOutputStream.format=this.privFormat,this.privAudio=new Audio))}}get volume(){var t;return((t=this.privAudio)==null?void 0:t.volume)??-1}set volume(t){this.privAudio&&(this.privAudio.volume=t)}mute(){this.privAudio&&(this.privAudio.muted=!0)}unmute(){this.privAudio&&(this.privAudio.muted=!1)}get isClosed(){return this.privIsClosed}get currentTime(){return this.privAudio!==void 0?this.privAudio.currentTime:-1}pause(){!this.privIsPaused&&this.privAudio!==void 0&&(this.privAudio.pause(),this.privIsPaused=!0)}resume(t,r){this.privIsPaused&&this.privAudio!==void 0&&(this.privAudio.play().then(()=>{t&&t()},n=>{r&&r(n)}),this.privIsPaused=!1)}get internalAudio(){return this.privAudio}async updateSourceBuffer(){if(this.privAudioBuffer!==void 0&&this.privAudioBuffer.length>0&&this.sourceBufferAvailable()){this.privAppendingToBuffer=!0;const t=this.privAudioBuffer.shift();try{this.privSourceBuffer.appendBuffer(t)}catch{this.privAudioBuffer.unshift(t);return}await this.notifyPlayback()}else this.canEndStream()&&await this.handleSourceBufferUpdateEnd()}async handleSourceBufferUpdateEnd(){this.canEndStream()&&this.sourceBufferAvailable()&&(this.privMediaSource.endOfStream(),await this.notifyPlayback())}async notifyPlayback(){!this.privPlaybackStarted&&this.privAudio!==void 0&&(this.privPlaybackStarted=!0,this.onAudioStart&&this.onAudioStart(this),this.privAudio.onended=()=>{this.onAudioEnd&&this.onAudioEnd(this)},this.privIsPaused||await this.privAudio.play())}canEndStream(){return this.isClosed&&this.privSourceBuffer!==void 0&&this.privAudioBuffer.length===0&&this.privMediaSourceOpened&&!this.privAppendingToBuffer&&this.privMediaSource.readyState==="open"}sourceBufferAvailable(){return this.privSourceBuffer!==void 0&&!this.privSourceBuffer.updating}}FE.SpeakerAudioDestination=I5e;var Hv={},EB;function x5e(){if(EB)return Hv;EB=1,Object.defineProperty(Hv,"__esModule",{value:!0}),Hv.ConversationTranscriptionCanceledEventArgs=void 0;const e=R0();let t=class extends e.CancellationEventArgsBase{};return Hv.ConversationTranscriptionCanceledEventArgs=t,Hv}var Vv={},RB;function O5e(){if(RB)return Vv;RB=1,Object.defineProperty(Vv,"__esModule",{value:!0}),Vv.MeetingTranscriptionCanceledEventArgs=void 0;const e=R0();let t=class extends e.CancellationEventArgsBase{};return Vv.MeetingTranscriptionCanceledEventArgs=t,Vv}var one={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PronunciationAssessmentGradingSystem=void 0,function(t){t[t.FivePoint=1]="FivePoint",t[t.HundredMark=2]="HundredMark"}(e.PronunciationAssessmentGradingSystem||(e.PronunciationAssessmentGradingSystem={}))})(one);var ane={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PronunciationAssessmentGranularity=void 0,function(t){t[t.Phoneme=1]="Phoneme",t[t.Word=2]="Word",t[t.FullText=3]="FullText"}(e.PronunciationAssessmentGranularity||(e.PronunciationAssessmentGranularity={}))})(ane);var Uv={},PB;function T5e(){if(PB)return Uv;PB=1,Object.defineProperty(Uv,"__esModule",{value:!0}),Uv.PronunciationAssessmentConfig=void 0;const e=Zt,t=Ct();let r=class sne{constructor(i,o=t.PronunciationAssessmentGradingSystem.FivePoint,a=t.PronunciationAssessmentGranularity.Phoneme,s=!1){e.Contracts.throwIfNullOrUndefined(i,"referenceText"),this.privProperties=new t.PropertyCollection,this.privProperties.setProperty(t.PropertyId.PronunciationAssessment_ReferenceText,i),this.privProperties.setProperty(t.PropertyId.PronunciationAssessment_GradingSystem,t.PronunciationAssessmentGradingSystem[o]),this.privProperties.setProperty(t.PropertyId.PronunciationAssessment_Granularity,t.PronunciationAssessmentGranularity[a]),this.privProperties.setProperty(t.PropertyId.PronunciationAssessment_EnableMiscue,String(s))}static fromJSON(i){e.Contracts.throwIfNullOrUndefined(i,"json");const o=new sne("");return o.privProperties=new t.PropertyCollection,o.properties.setProperty(t.PropertyId.PronunciationAssessment_Json,i),o}toJSON(){return this.updateJson(),this.privProperties.getProperty(t.PropertyId.PronunciationAssessment_Params)}applyTo(i){this.updateJson();const o=i.internalData;o.expectContentAssessmentResponse=!!this.privContentAssessmentTopic,o.speechContext.setPronunciationAssessmentParams(this.properties.getProperty(t.PropertyId.PronunciationAssessment_Params),this.privContentAssessmentTopic,o.isSpeakerDiarizationEnabled)}get referenceText(){return this.properties.getProperty(t.PropertyId.PronunciationAssessment_ReferenceText)}set referenceText(i){e.Contracts.throwIfNullOrWhitespace(i,"referenceText"),this.properties.setProperty(t.PropertyId.PronunciationAssessment_ReferenceText,i)}set phonemeAlphabet(i){e.Contracts.throwIfNullOrWhitespace(i,"phonemeAlphabet"),this.privPhonemeAlphabet=i}set enableMiscue(i){const o=i?"true":"false";this.properties.setProperty(t.PropertyId.PronunciationAssessment_EnableMiscue,o)}get enableMiscue(){return this.properties.getProperty(t.PropertyId.PronunciationAssessment_EnableMiscue,"false").toLowerCase()==="true"}set nbestPhonemeCount(i){this.privNBestPhonemeCount=i}set enableProsodyAssessment(i){this.privEnableProsodyAssessment=i}enableContentAssessmentWithTopic(i){this.privContentAssessmentTopic=i}get properties(){return this.privProperties}updateJson(){const i=this.privProperties.getProperty(t.PropertyId.PronunciationAssessment_Json,"{}"),o=JSON.parse(i),a=this.privProperties.getProperty(t.PropertyId.PronunciationAssessment_ReferenceText);a&&(o.referenceText=a);const s=this.privProperties.getProperty(t.PropertyId.PronunciationAssessment_GradingSystem);s&&(o.gradingSystem=s);const l=this.privProperties.getProperty(t.PropertyId.PronunciationAssessment_Granularity);l&&(o.granularity=l),this.privPhonemeAlphabet&&(o.phonemeAlphabet=this.privPhonemeAlphabet),this.privNBestPhonemeCount&&(o.nbestPhonemeCount=this.privNBestPhonemeCount),o.enableProsodyAssessment=this.privEnableProsodyAssessment,o.dimension="Comprehensive",this.privProperties.getProperty(t.PropertyId.PronunciationAssessment_EnableMiscue)&&(o.enableMiscue=this.enableMiscue),this.privProperties.setProperty(t.PropertyId.PronunciationAssessment_Params,JSON.stringify(o))}};return Uv.PronunciationAssessmentConfig=r,Uv}var Pu={},IB;function A5e(){if(IB)return Pu;IB=1,Object.defineProperty(Pu,"__esModule",{value:!0}),Pu.PronunciationAssessmentResult=Pu.ContentAssessmentResult=void 0;const e=Zt,t=Ct();class r{constructor(o){this.privPronJson=o}get grammarScore(){return this.privPronJson.ContentAssessment.GrammarScore}get vocabularyScore(){return this.privPronJson.ContentAssessment.VocabularyScore}get topicScore(){return this.privPronJson.ContentAssessment.TopicScore}}Pu.ContentAssessmentResult=r;let n=class lne{constructor(o){const a=JSON.parse(o);e.Contracts.throwIfNullOrUndefined(a.NBest[0],"NBest"),this.privPronJson=a.NBest[0]}static fromResult(o){e.Contracts.throwIfNullOrUndefined(o,"result");const a=o.properties.getProperty(t.PropertyId.SpeechServiceResponse_JsonResult);return e.Contracts.throwIfNullOrUndefined(a,"json"),new lne(a)}get detailResult(){return this.privPronJson}get accuracyScore(){var o;return(o=this.detailResult.PronunciationAssessment)==null?void 0:o.AccuracyScore}get pronunciationScore(){var o;return(o=this.detailResult.PronunciationAssessment)==null?void 0:o.PronScore}get completenessScore(){var o;return(o=this.detailResult.PronunciationAssessment)==null?void 0:o.CompletenessScore}get fluencyScore(){var o;return(o=this.detailResult.PronunciationAssessment)==null?void 0:o.FluencyScore}get prosodyScore(){var o;return(o=this.detailResult.PronunciationAssessment)==null?void 0:o.ProsodyScore}get contentAssessmentResult(){if(this.detailResult.ContentAssessment!==void 0)return new r(this.detailResult)}};return Pu.PronunciationAssessmentResult=n,Pu}var Wv={},xB;function M5e(){if(xB)return Wv;xB=1,Object.defineProperty(Wv,"__esModule",{value:!0}),Wv.AvatarConfig=void 0;const e=Zt,t=Ct();let r=class{constructor(i,o,a){this.privCustomized=!1,this.privUseBuiltInVoice=!1,e.Contracts.throwIfNullOrWhitespace(i,"character"),this.character=i,this.style=o,a===void 0&&(a=new t.AvatarVideoFormat),this.videoFormat=a}get customized(){return this.privCustomized}set customized(i){this.privCustomized=i}get useBuiltInVoice(){return this.privUseBuiltInVoice}set useBuiltInVoice(i){this.privUseBuiltInVoice=i}get backgroundColor(){return this.privBackgroundColor}set backgroundColor(i){this.privBackgroundColor=i}get backgroundImage(){return this.privBackgroundImage}set backgroundImage(i){this.privBackgroundImage=i}get remoteIceServers(){return this.privRemoteIceServers}set remoteIceServers(i){this.privRemoteIceServers=i}};return Wv.AvatarConfig=r,Wv}var cne={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AvatarEventArgs=e.AvatarEventTypes=void 0,function(r){r.SwitchedToSpeaking="SwitchedToSpeaking",r.SwitchedToIdle="SwitchedToIdle",r.SessionClosed="SessionClosed"}(e.AvatarEventTypes||(e.AvatarEventTypes={}));class t{constructor(n,i){this.privOffset=n,this.privDescription=i}get type(){return this.privType}get offset(){return this.privOffset}get description(){return this.privDescription}}e.AvatarEventArgs=t})(cne);var qv={},Gv={},OB;function une(){if(OB)return Gv;OB=1,Object.defineProperty(Gv,"__esModule",{value:!0}),Gv.SpeechSynthesisConnectionFactory=void 0;const e=hi(),t=Ct(),r=vs(),n=Lt(),i=pi,o=hs;let a=class{constructor(){this.synthesisUri="/tts/cognitiveservices/websocket/v1"}async create(l,c,d){let u=l.parameters.getProperty(t.PropertyId.SpeechServiceConnection_Endpoint,void 0);const f=l.parameters.getProperty(t.PropertyId.SpeechServiceConnection_Region,void 0),h=r.ConnectionFactoryBase.getHostSuffix(f),v=l.parameters.getProperty(t.PropertyId.SpeechServiceConnection_EndpointId,void 0),y=v===void 0?"tts":"voice",g=l.parameters.getProperty(t.PropertyId.SpeechServiceConnection_Host,"wss://"+f+"."+y+".speech"+h),m={},S={};if(c.token!==void 0&&c.token!==""&&(S[c.headerName]=c.token),S[i.HeaderNames.ConnectionId]=d,v!==void 0&&v!==""&&(!u||u.search(o.QueryParameterNames.CustomVoiceDeploymentId)===-1)&&(m[o.QueryParameterNames.CustomVoiceDeploymentId]=v),l.avatarEnabled&&(!u||u.search(o.QueryParameterNames.EnableAvatar)===-1)&&(m[o.QueryParameterNames.EnableAvatar]="true"),u){const b=new URL(u),w=b.pathname;(w===""||w==="/")&&(b.pathname=this.synthesisUri,u=await r.ConnectionFactoryBase.getRedirectUrlFromEndpoint(b.toString()))}u||(u=g+this.synthesisUri),l.parameters.setProperty(t.PropertyId.SpeechServiceConnection_Url,u);const C=l.parameters.getProperty("SPEECH-EnableWebsocketCompression","false")==="true";return new e.WebsocketConnection(u,m,S,new n.WebsocketMessageFormatter,e.ProxyInfo.fromParameters(l.parameters),C,d)}};return Gv.SpeechSynthesisConnectionFactory=a,Gv}var TB;function $5e(){if(TB)return qv;TB=1,Object.defineProperty(qv,"__esModule",{value:!0}),qv.AvatarSynthesizer=void 0;const e=une(),t=Lt(),r=Wt(),n=Qc,i=Ct(),o=Zt,a=Y3();let s=class extends i.Synthesizer{constructor(c,d){super(c),o.Contracts.throwIfNullOrUndefined(d,"avatarConfig"),this.privConnectionFactory=new e.SpeechSynthesisConnectionFactory,this.privAvatarConfig=d,this.implCommonSynthesizeSetup()}implCommonSynthesizeSetup(){super.implCommonSynthesizeSetup(),this.privAdapter.audioOutputFormat=n.AudioOutputFormatImpl.fromSpeechSynthesisOutputFormat(i.SpeechSynthesisOutputFormat.Riff24Khz16BitMonoPcm)}async startAvatarAsync(c){o.Contracts.throwIfNullOrUndefined(c,"peerConnection"),this.privIceServers=c.getConfiguration().iceServers,o.Contracts.throwIfNullOrUndefined(this.privIceServers,"Ice servers must be set.");const d=new r.Deferred;c.onicegatheringstatechange=()=>{r.Events.instance.onEvent(new r.PlatformEvent("peer connection: ice gathering state: "+c.iceGatheringState,r.EventType.Debug)),c.iceGatheringState==="complete"&&(r.Events.instance.onEvent(new r.PlatformEvent("peer connection: ice gathering complete.",r.EventType.Info)),d.resolve())},c.onicecandidate=y=>{y.candidate?r.Events.instance.onEvent(new r.PlatformEvent("peer connection: ice candidate: "+y.candidate.candidate,r.EventType.Debug)):(r.Events.instance.onEvent(new r.PlatformEvent("peer connection: ice candidate: complete",r.EventType.Debug)),d.resolve())},setTimeout(()=>{c.iceGatheringState!=="complete"&&(r.Events.instance.onEvent(new r.PlatformEvent("peer connection: ice gathering timeout.",r.EventType.Warning)),d.resolve())},2e3);const u=await c.createOffer();await c.setLocalDescription(u),await d.promise,r.Events.instance.onEvent(new r.PlatformEvent("peer connection: got local SDP.",r.EventType.Info)),this.privProperties.setProperty(i.PropertyId.TalkingAvatarService_WebRTC_SDP,JSON.stringify(c.localDescription));const f=await this.speak("",!1);if(f.reason!==i.ResultReason.SynthesizingAudioCompleted)return new i.SynthesisResult(f.resultId,f.reason,f.errorDetails,f.properties);const h=atob(f.properties.getProperty(i.PropertyId.TalkingAvatarService_WebRTC_SDP)),v=new RTCSessionDescription(JSON.parse(h));return await c.setRemoteDescription(v),new i.SynthesisResult(f.resultId,f.reason,void 0,f.properties)}async speakTextAsync(c){const d=await this.speak(c,!1);return new i.SynthesisResult(d.resultId,d.reason,d.errorDetails,d.properties)}async speakSsmlAsync(c){const d=await this.speak(c,!0);return new i.SynthesisResult(d.resultId,d.reason,d.errorDetails,d.properties)}async stopSpeakingAsync(){for(;this.synthesisRequestQueue.length()>0;)(await this.synthesisRequestQueue.dequeue()).err("Synthesis is canceled by user.");return this.privAdapter.stopSpeaking()}async stopAvatarAsync(){return o.Contracts.throwIfDisposed(this.privDisposed),this.dispose(!0)}async close(){if(!this.privDisposed)return this.dispose(!0)}get iceServers(){return this.privIceServers}createSynthesisAdapter(c,d,u){return new t.AvatarSynthesisAdapter(c,d,u,this,this.privAvatarConfig)}createRestSynthesisAdapter(c,d){}createSynthesizerConfig(c){const d=super.createSynthesizerConfig(c);return d.avatarEnabled=!0,d}async speak(c,d){const u=(0,r.createNoDashGuid)(),f=new r.Deferred;return this.synthesisRequestQueue.enqueue(new a.SynthesisRequest(u,c,d,h=>{f.resolve(h),this.privSynthesizing=!1,this.adapterSpeak()},h=>{f.reject(h),this.privSynthesizing=!1})),this.adapterSpeak(),f.promise}};return qv.AvatarSynthesizer=s,qv}var _p={};Object.defineProperty(_p,"__esModule",{value:!0});_p.AvatarVideoFormat=_p.Coordinate=void 0;class k5e{constructor(t,r){this.x=t,this.y=r}}_p.Coordinate=k5e;class N5e{constructor(t="H264",r=2e6,n=1920,i=1080){this.codec=t,this.bitrate=r,this.width=n,this.height=i}setCropRange(t,r){this.cropRange={bottomRight:r,topLeft:t}}}_p.AvatarVideoFormat=N5e;var Kv={},AB;function D5e(){if(AB)return Kv;AB=1,Object.defineProperty(Kv,"__esModule",{value:!0}),Kv.AvatarWebRTCConnectionResult=void 0;const e=Ct();let t=class extends e.SynthesisResult{constructor(n,i,o,a,s){super(i,o,a,s),this.privSDPAnswer=n}get SDPAnswer(){return this.privSDPAnswer}};return Kv.AvatarWebRTCConnectionResult=t,Kv}var Yv={},MB;function L5e(){if(MB)return Yv;MB=1,Object.defineProperty(Yv,"__esModule",{value:!0}),Yv.Diagnostics=void 0;const e=hi(),t=Wt();let r=class{static SetLoggingLevel(i){this.privListener=new e.ConsoleLoggingListener(i),t.Events.instance.attachConsoleListener(this.privListener)}static StartConsoleOutput(){this.privListener&&(this.privListener.enableConsoleOutput=!0)}static StopConsoleOutput(){this.privListener&&(this.privListener.enableConsoleOutput=!1)}static SetLogOutputPath(i){if(typeof window>"u")this.privListener&&(this.privListener.logPath=i);else throw new Error("File system logging not available in browser.")}static set onLogOutput(i){this.privListener&&(this.privListener.logCallback=i)}};return Yv.Diagnostics=r,r.privListener=void 0,Yv}var $B;function Ct(){return $B||($B=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ConnectionEventArgs=e.CancellationErrorCode=e.CancellationDetails=e.CancellationDetailsBase=e.IntentRecognitionCanceledEventArgs=e.TranslationRecognitionCanceledEventArgs=e.NoMatchDetails=e.NoMatchReason=e.Translations=e.TranslationRecognizer=e.VoiceProfileType=e.IntentRecognizer=e.SpeechRecognizer=e.Recognizer=e.PropertyId=e.PropertyCollection=e.SpeechTranslationConfigImpl=e.SpeechTranslationConfig=e.SpeechConfigImpl=e.SpeechConfig=e.ResultReason=e.TranslationSynthesisResult=e.TranslationRecognitionResult=e.TranslationSynthesisEventArgs=e.TranslationRecognitionEventArgs=e.SpeechRecognitionCanceledEventArgs=e.MeetingTranscriptionEventArgs=e.ConversationTranscriptionEventArgs=e.SpeechRecognitionEventArgs=e.LanguageUnderstandingModel=e.IntentRecognitionResult=e.SpeechRecognitionResult=e.RecognitionResult=e.IntentRecognitionEventArgs=e.OutputFormat=e.RecognitionEventArgs=e.SessionEventArgs=e.KeywordRecognitionModel=e.PushAudioOutputStreamCallback=e.PullAudioInputStreamCallback=e.CancellationReason=e.PushAudioOutputStream=e.PullAudioOutputStream=e.AudioOutputStream=e.PushAudioInputStream=e.PullAudioInputStream=e.AudioInputStream=e.AudioFormatTag=e.AudioStreamFormat=e.AudioConfig=void 0,e.SpeechSynthesisEventArgs=e.SpeechSynthesisResult=e.SynthesisResult=e.SpeechSynthesizer=e.SpeechSynthesisOutputFormat=e.Synthesizer=e.User=e.ParticipantChangedReason=e.Participant=e.MeetingTranscriber=e.Meeting=e.ConversationTranscriptionResult=e.ConversationTranscriber=e.ConversationTranslator=e.ConversationTranslationResult=e.ConversationTranslationEventArgs=e.ConversationTranslationCanceledEventArgs=e.ConversationParticipantsChangedEventArgs=e.ConversationExpirationEventArgs=e.Conversation=e.SpeakerRecognitionCancellationDetails=e.SpeakerRecognitionResultType=e.SpeakerRecognitionResult=e.SourceLanguageConfig=e.AutoDetectSourceLanguageResult=e.AutoDetectSourceLanguageConfig=e.SpeakerVerificationModel=e.SpeakerIdentificationModel=e.SpeakerRecognizer=e.VoiceProfileClient=e.VoiceProfilePhraseResult=e.VoiceProfileCancellationDetails=e.VoiceProfileResult=e.VoiceProfileEnrollmentCancellationDetails=e.VoiceProfileEnrollmentResult=e.VoiceProfile=e.ConnectionMessage=e.ConnectionMessageEventArgs=e.BaseAudioPlayer=e.ProfanityOption=e.ServicePropertyChannel=e.TurnStatusReceivedEventArgs=e.ActivityReceivedEventArgs=e.DialogServiceConnector=e.CustomCommandsConfig=e.BotFrameworkConfig=e.DialogServiceConfig=e.PhraseListGrammar=e.Connection=e.ServiceEventArgs=void 0,e.LogLevel=e.Diagnostics=e.AvatarWebRTCConnectionResult=e.Coordinate=e.AvatarVideoFormat=e.AvatarSynthesizer=e.AvatarEventArgs=e.AvatarConfig=e.LanguageIdMode=e.PronunciationAssessmentResult=e.PronunciationAssessmentConfig=e.PronunciationAssessmentGranularity=e.PronunciationAssessmentGradingSystem=e.MeetingTranscriptionCanceledEventArgs=e.ConversationTranscriptionCanceledEventArgs=e.SpeakerAudioDestination=e.VoiceInfo=e.SynthesisVoiceType=e.SynthesisVoiceGender=e.SynthesisVoicesResult=e.SpeechSynthesisBoundaryType=e.SpeechSynthesisVisemeEventArgs=e.SpeechSynthesisBookmarkEventArgs=e.SpeechSynthesisWordBoundaryEventArgs=void 0;var t=xre();Object.defineProperty(e,"AudioConfig",{enumerable:!0,get:function(){return t.AudioConfig}});var r=Xc;Object.defineProperty(e,"AudioStreamFormat",{enumerable:!0,get:function(){return r.AudioStreamFormat}}),Object.defineProperty(e,"AudioFormatTag",{enumerable:!0,get:function(){return r.AudioFormatTag}});var n=_re();Object.defineProperty(e,"AudioInputStream",{enumerable:!0,get:function(){return n.AudioInputStream}}),Object.defineProperty(e,"PullAudioInputStream",{enumerable:!0,get:function(){return n.PullAudioInputStream}}),Object.defineProperty(e,"PushAudioInputStream",{enumerable:!0,get:function(){return n.PushAudioInputStream}});var i=Ci;Object.defineProperty(e,"AudioOutputStream",{enumerable:!0,get:function(){return i.AudioOutputStream}}),Object.defineProperty(e,"PullAudioOutputStream",{enumerable:!0,get:function(){return i.PullAudioOutputStream}}),Object.defineProperty(e,"PushAudioOutputStream",{enumerable:!0,get:function(){return i.PushAudioOutputStream}});var o=Ore;Object.defineProperty(e,"CancellationReason",{enumerable:!0,get:function(){return o.CancellationReason}});
439var a=mE;Object.defineProperty(e,"PullAudioInputStreamCallback",{enumerable:!0,get:function(){return a.PullAudioInputStreamCallback}});var s=yE;Object.defineProperty(e,"PushAudioOutputStreamCallback",{enumerable:!0,get:function(){return s.PushAudioOutputStreamCallback}});var l=SE;Object.defineProperty(e,"KeywordRecognitionModel",{enumerable:!0,get:function(){return l.KeywordRecognitionModel}});var c=CE;Object.defineProperty(e,"SessionEventArgs",{enumerable:!0,get:function(){return c.SessionEventArgs}});var d=d8e();Object.defineProperty(e,"RecognitionEventArgs",{enumerable:!0,get:function(){return d.RecognitionEventArgs}});var u=Tre;Object.defineProperty(e,"OutputFormat",{enumerable:!0,get:function(){return u.OutputFormat}});var f=f8e();Object.defineProperty(e,"IntentRecognitionEventArgs",{enumerable:!0,get:function(){return f.IntentRecognitionEventArgs}});var h=bE;Object.defineProperty(e,"RecognitionResult",{enumerable:!0,get:function(){return h.RecognitionResult}});var v=h8e();Object.defineProperty(e,"SpeechRecognitionResult",{enumerable:!0,get:function(){return v.SpeechRecognitionResult}});var y=v8e();Object.defineProperty(e,"IntentRecognitionResult",{enumerable:!0,get:function(){return y.IntentRecognitionResult}});var g=wp;Object.defineProperty(e,"LanguageUnderstandingModel",{enumerable:!0,get:function(){return g.LanguageUnderstandingModel}});var m=g8e();Object.defineProperty(e,"SpeechRecognitionEventArgs",{enumerable:!0,get:function(){return m.SpeechRecognitionEventArgs}}),Object.defineProperty(e,"ConversationTranscriptionEventArgs",{enumerable:!0,get:function(){return m.ConversationTranscriptionEventArgs}}),Object.defineProperty(e,"MeetingTranscriptionEventArgs",{enumerable:!0,get:function(){return m.MeetingTranscriptionEventArgs}});var S=m8e();Object.defineProperty(e,"SpeechRecognitionCanceledEventArgs",{enumerable:!0,get:function(){return S.SpeechRecognitionCanceledEventArgs}});var C=y8e();Object.defineProperty(e,"TranslationRecognitionEventArgs",{enumerable:!0,get:function(){return C.TranslationRecognitionEventArgs}});var b=S8e();Object.defineProperty(e,"TranslationSynthesisEventArgs",{enumerable:!0,get:function(){return b.TranslationSynthesisEventArgs}});var w=$re();Object.defineProperty(e,"TranslationRecognitionResult",{enumerable:!0,get:function(){return w.TranslationRecognitionResult}});var E=wE;Object.defineProperty(e,"TranslationSynthesisResult",{enumerable:!0,get:function(){return E.TranslationSynthesisResult}});var _=kre;Object.defineProperty(e,"ResultReason",{enumerable:!0,get:function(){return _.ResultReason}});var R=b8e();Object.defineProperty(e,"SpeechConfig",{enumerable:!0,get:function(){return R.SpeechConfig}}),Object.defineProperty(e,"SpeechConfigImpl",{enumerable:!0,get:function(){return R.SpeechConfigImpl}});var P=w8e();Object.defineProperty(e,"SpeechTranslationConfig",{enumerable:!0,get:function(){return P.SpeechTranslationConfig}}),Object.defineProperty(e,"SpeechTranslationConfigImpl",{enumerable:!0,get:function(){return P.SpeechTranslationConfigImpl}});var I=Dre();Object.defineProperty(e,"PropertyCollection",{enumerable:!0,get:function(){return I.PropertyCollection}});var O=_E;Object.defineProperty(e,"PropertyId",{enumerable:!0,get:function(){return O.PropertyId}});var A=_8e();Object.defineProperty(e,"Recognizer",{enumerable:!0,get:function(){return A.Recognizer}});var x=E8e();Object.defineProperty(e,"SpeechRecognizer",{enumerable:!0,get:function(){return x.SpeechRecognizer}});var T=R8e();Object.defineProperty(e,"IntentRecognizer",{enumerable:!0,get:function(){return T.IntentRecognizer}});var D=Fre;Object.defineProperty(e,"VoiceProfileType",{enumerable:!0,get:function(){return D.VoiceProfileType}});var k=P8e();Object.defineProperty(e,"TranslationRecognizer",{enumerable:!0,get:function(){return k.TranslationRecognizer}});var j=I8e();Object.defineProperty(e,"Translations",{enumerable:!0,get:function(){return j.Translations}});var N=Vre;Object.defineProperty(e,"NoMatchReason",{enumerable:!0,get:function(){return N.NoMatchReason}});var L=x8e();Object.defineProperty(e,"NoMatchDetails",{enumerable:!0,get:function(){return L.NoMatchDetails}});var M=EE;Object.defineProperty(e,"TranslationRecognitionCanceledEventArgs",{enumerable:!0,get:function(){return M.TranslationRecognitionCanceledEventArgs}});var $=T8e();Object.defineProperty(e,"IntentRecognitionCanceledEventArgs",{enumerable:!0,get:function(){return $.IntentRecognitionCanceledEventArgs}});var F=P0;
439Object.defineProperty(e,"CancellationDetailsBase",{enumerable:!0,get:function(){return F.CancellationDetailsBase}});var z=M8e();Object.defineProperty(e,"CancellationDetails",{enumerable:!0,get:function(){return z.CancellationDetails}});var H=qre;Object.defineProperty(e,"CancellationErrorCode",{enumerable:!0,get:function(){return H.CancellationErrorCode}});var U=$8e();Object.defineProperty(e,"ConnectionEventArgs",{enumerable:!0,get:function(){return U.ConnectionEventArgs}});var V=k8e();Object.defineProperty(e,"ServiceEventArgs",{enumerable:!0,get:function(){return V.ServiceEventArgs}});var W=Bre();Object.defineProperty(e,"Connection",{enumerable:!0,get:function(){return W.Connection}});var K=RE;Object.defineProperty(e,"PhraseListGrammar",{enumerable:!0,get:function(){return K.PhraseListGrammar}});var Z=U3();Object.defineProperty(e,"DialogServiceConfig",{enumerable:!0,get:function(){return Z.DialogServiceConfig}});var q=D8e();Object.defineProperty(e,"BotFrameworkConfig",{enumerable:!0,get:function(){return q.BotFrameworkConfig}});var Y=L8e();Object.defineProperty(e,"CustomCommandsConfig",{enumerable:!0,get:function(){return Y.CustomCommandsConfig}});var G=F8e();Object.defineProperty(e,"DialogServiceConnector",{enumerable:!0,get:function(){return G.DialogServiceConnector}});var re=PE;Object.defineProperty(e,"ActivityReceivedEventArgs",{enumerable:!0,get:function(){return re.ActivityReceivedEventArgs}});var ee=IE;Object.defineProperty(e,"TurnStatusReceivedEventArgs",{enumerable:!0,get:function(){return ee.TurnStatusReceivedEventArgs}});var ne=Gre;Object.defineProperty(e,"ServicePropertyChannel",{enumerable:!0,get:function(){return ne.ServicePropertyChannel}});var te=Kre;Object.defineProperty(e,"ProfanityOption",{enumerable:!0,get:function(){return te.ProfanityOption}});var pe=V8e();Object.defineProperty(e,"BaseAudioPlayer",{enumerable:!0,get:function(){return pe.BaseAudioPlayer}});var le=OE;Object.defineProperty(e,"ConnectionMessageEventArgs",{enumerable:!0,get:function(){return le.ConnectionMessageEventArgs}});var ye=zre();Object.defineProperty(e,"ConnectionMessage",{enumerable:!0,get:function(){return ye.ConnectionMessage}});var Se=TE;Object.defineProperty(e,"VoiceProfile",{enumerable:!0,get:function(){return Se.VoiceProfile}});var _e=q8e();Object.defineProperty(e,"VoiceProfileEnrollmentResult",{enumerable:!0,get:function(){return _e.VoiceProfileEnrollmentResult}}),Object.defineProperty(e,"VoiceProfileEnrollmentCancellationDetails",{enumerable:!0,get:function(){return _e.VoiceProfileEnrollmentCancellationDetails}});var De=G8e();Object.defineProperty(e,"VoiceProfileResult",{enumerable:!0,get:function(){return De.VoiceProfileResult}}),Object.defineProperty(e,"VoiceProfileCancellationDetails",{enumerable:!0,get:function(){return De.VoiceProfileCancellationDetails}});var be=K8e();Object.defineProperty(e,"VoiceProfilePhraseResult",{enumerable:!0,get:function(){return be.VoiceProfilePhraseResult}});var se=Y8e();Object.defineProperty(e,"VoiceProfileClient",{enumerable:!0,get:function(){return se.VoiceProfileClient}});var Pe=X8e();Object.defineProperty(e,"SpeakerRecognizer",{enumerable:!0,get:function(){return Pe.SpeakerRecognizer}});var Te=Q8e();Object.defineProperty(e,"SpeakerIdentificationModel",{enumerable:!0,get:function(){return Te.SpeakerIdentificationModel}});var ze=J8e();Object.defineProperty(e,"SpeakerVerificationModel",{enumerable:!0,get:function(){return ze.SpeakerVerificationModel}});var ke=Z8e();Object.defineProperty(e,"AutoDetectSourceLanguageConfig",{enumerable:!0,get:function(){return ke.AutoDetectSourceLanguageConfig}});var Me=AE;Object.defineProperty(e,"AutoDetectSourceLanguageResult",{enumerable:!0,get:function(){return Me.AutoDetectSourceLanguageResult}});var qe=ME;Object.defineProperty(e,"SourceLanguageConfig",{enumerable:!0,get:function(){return qe.SourceLanguageConfig}});var Le=t5e();Object.defineProperty(e,"SpeakerRecognitionResult",{enumerable:!0,get:function(){return Le.SpeakerRecognitionResult}}),Object.defineProperty(e,"SpeakerRecognitionResultType",{enumerable:!0,get:function(){return Le.SpeakerRecognitionResultType}}
439),Object.defineProperty(e,"SpeakerRecognitionCancellationDetails",{enumerable:!0,get:function(){return Le.SpeakerRecognitionCancellationDetails}});var xe=K3();Object.defineProperty(e,"Conversation",{enumerable:!0,get:function(){return xe.Conversation}}),Object.defineProperty(e,"ConversationExpirationEventArgs",{enumerable:!0,get:function(){return xe.ConversationExpirationEventArgs}}),Object.defineProperty(e,"ConversationParticipantsChangedEventArgs",{enumerable:!0,get:function(){return xe.ConversationParticipantsChangedEventArgs}}),Object.defineProperty(e,"ConversationTranslationCanceledEventArgs",{enumerable:!0,get:function(){return xe.ConversationTranslationCanceledEventArgs}}),Object.defineProperty(e,"ConversationTranslationEventArgs",{enumerable:!0,get:function(){return xe.ConversationTranslationEventArgs}}),Object.defineProperty(e,"ConversationTranslationResult",{enumerable:!0,get:function(){return xe.ConversationTranslationResult}}),Object.defineProperty(e,"ConversationTranslator",{enumerable:!0,get:function(){return xe.ConversationTranslator}}),Object.defineProperty(e,"ConversationTranscriber",{enumerable:!0,get:function(){return xe.ConversationTranscriber}}),Object.defineProperty(e,"ConversationTranscriptionResult",{enumerable:!0,get:function(){return xe.ConversationTranscriptionResult}}),Object.defineProperty(e,"Meeting",{enumerable:!0,get:function(){return xe.Meeting}}),Object.defineProperty(e,"MeetingTranscriber",{enumerable:!0,get:function(){return xe.MeetingTranscriber}}),Object.defineProperty(e,"Participant",{enumerable:!0,get:function(){return xe.Participant}}),Object.defineProperty(e,"ParticipantChangedReason",{enumerable:!0,get:function(){return xe.ParticipantChangedReason}}),Object.defineProperty(e,"User",{enumerable:!0,get:function(){return xe.User}});var je=Y3();Object.defineProperty(e,"Synthesizer",{enumerable:!0,get:function(){return je.Synthesizer}});var Ee=z3;Object.defineProperty(e,"SpeechSynthesisOutputFormat",{enumerable:!0,get:function(){return Ee.SpeechSynthesisOutputFormat}});var Re=m5e();Object.defineProperty(e,"SpeechSynthesizer",{enumerable:!0,get:function(){return Re.SpeechSynthesizer}});var me=kE;Object.defineProperty(e,"SynthesisResult",{enumerable:!0,get:function(){return me.SynthesisResult}});var ce=S5e();Object.defineProperty(e,"SpeechSynthesisResult",{enumerable:!0,get:function(){return ce.SpeechSynthesisResult}});var Ae=NE;Object.defineProperty(e,"SpeechSynthesisEventArgs",{enumerable:!0,get:function(){return Ae.SpeechSynthesisEventArgs}});var We=DE;Object.defineProperty(e,"SpeechSynthesisWordBoundaryEventArgs",{enumerable:!0,get:function(){return We.SpeechSynthesisWordBoundaryEventArgs}});var lt=LE;Object.defineProperty(e,"SpeechSynthesisBookmarkEventArgs",{enumerable:!0,get:function(){return lt.SpeechSynthesisBookmarkEventArgs}});var yt=jE;Object.defineProperty(e,"SpeechSynthesisVisemeEventArgs",{enumerable:!0,get:function(){return yt.SpeechSynthesisVisemeEventArgs}});var nt=nne;Object.defineProperty(e,"SpeechSynthesisBoundaryType",{enumerable:!0,get:function(){return nt.SpeechSynthesisBoundaryType}});var it=E5e();Object.defineProperty(e,"SynthesisVoicesResult",{enumerable:!0,get:function(){return it.SynthesisVoicesResult}});var gt=ine;Object.defineProperty(e,"SynthesisVoiceGender",{enumerable:!0,get:function(){return gt.SynthesisVoiceGender}}),Object.defineProperty(e,"SynthesisVoiceType",{enumerable:!0,get:function(){return gt.SynthesisVoiceType}}),Object.defineProperty(e,"VoiceInfo",{enumerable:!0,get:function(){return gt.VoiceInfo}});var Ye=FE;Object.defineProperty(e,"SpeakerAudioDestination",{enumerable:!0,get:function(){return Ye.SpeakerAudioDestination}});var vt=x5e();Object.defineProperty(e,"ConversationTranscriptionCanceledEventArgs",{enumerable:!0,get:function(){return vt.ConversationTranscriptionCanceledEventArgs}});var mt=O5e();Object.defineProperty(e,"MeetingTranscriptionCanceledEventArgs",{enumerable:!0,get:function(){return mt.MeetingTranscriptionCanceledEventArgs}});var St=one;Object.defineProperty(e,"PronunciationAssessmentGradingSystem",{enumerable:!0,get:function(){return St.PronunciationAssessmentGradingSystem}});var pt=ane;Object.defineProperty(e,"PronunciationAssessmentGranularity",{enumerable:!0,get:function(){return pt.PronunciationAssessmentGranularity}});var Rt=T5e();Object.defineProperty(e,"PronunciationAssessmentConfig",{enumerable:!0,get:function(){return Rt.PronunciationAssessmentConfig}});var ae=A5e();Object.defineProperty(e,"PronunciationAssessmentResult",{enumerable:!0,get:function(){return ae.PronunciationAssessmentResult}});var ue=q3;Object.defineProperty(e,"LanguageIdMode",{enumerable:!0,get:function(){return ue.LanguageIdMode}});var ve=M5e();Object.defineProperty(e,"AvatarConfig",{enumerable:!0,get:function(){return ve.AvatarConfig}});var Ce=cne;Object.defineProperty(e,"AvatarEventArgs",{enumerable:!0,get:function(){return Ce.AvatarEventArgs}});var Fe=$5e();Object.defineProperty(e,"AvatarSynthesizer",{enumerable:!0,get:function(){return Fe.AvatarSynthesizer}});var Ze=_p;Object.defineProperty(e,"AvatarVideoFormat",{enumerable:!0,get:function(){return Ze.AvatarVideoFormat}}),Object.defineProperty(e,"Coordinate",{enumerable:!0,get:function(){return Ze.Coordinate}});var et=D5e();Object.defineProperty(e,"AvatarWebRTCConnectionResult",{enumerable:!0,get:function(){return et.AvatarWebRTCConnectionResult}});var tt=L5e();Object.defineProperty(e,"Diagnostics",{enumerable:!0,get:function(){return tt.Diagnostics}});var ot=j3;Object.defineProperty(e,"LogLevel",{enumerable:!0,get:function(){return ot.LogLevel}})}(B2)),B2}var kB;
vendor: 148,225 bytes, lines 439-443
439function j5e(){if(kB)return Kh;kB=1,Object.defineProperty(Kh,"__esModule",{value:!0}),Kh.ProxyInfo=void 0;const e=Ct();let t=class dne{constructor(n,i,o,a){this.privProxyHostName=n,this.privProxyPort=i,this.privProxyUserName=o,this.privProxyPassword=a}static fromParameters(n){return new dne(n.getProperty(e.PropertyId.SpeechServiceConnection_ProxyHostName),parseInt(n.getProperty(e.PropertyId.SpeechServiceConnection_ProxyPort),10),n.getProperty(e.PropertyId.SpeechServiceConnection_ProxyUserName),n.getProperty(e.PropertyId.SpeechServiceConnection_ProxyPassword))}static fromRecognizerConfig(n){return this.fromParameters(n.parameters)}get HostName(){return this.privProxyHostName}get Port(){return this.privProxyPort}get UserName(){return this.privProxyUserName}get Password(){return this.privProxyPassword}};return Kh.ProxyInfo=t,Kh}var fne={};const F5e=new Set(["json","buffer","string"]);var z5e=e=>(...t)=>{const r=new Set;let n,i,o,a="";return t.forEach(s=>{if(typeof s=="string")if(s.toUpperCase()===s)if(n){const l=`Can't set method to ${s}, already set to ${n}.`;throw new Error(l)}else n=s;else if(s.startsWith("http:")||s.startsWith("https:"))a=s;else if(F5e.has(s))i=s;else throw new Error(`Unknown encoding, ${s}`);else if(typeof s=="number")r.add(s);else if(typeof s=="object")if(Array.isArray(s)||s instanceof Set)s.forEach(l=>r.add(l));else{if(o)throw new Error("Cannot set headers twice.");o=s}else throw new Error(`Unknown type: ${typeof s}`)}),n||(n="GET"),r.size===0&&r.add(200),e(r,n,i,o,a)};const B5e=z5e;class X3 extends Error{constructor(t,...r){super(...r),Error.captureStackTrace&&Error.captureStackTrace(this,X3),this.name="StatusError",this.message=t.statusMessage,this.statusCode=t.status,this.res=t,this.json=t.json.bind(t),this.text=t.text.bind(t),this.arrayBuffer=t.arrayBuffer.bind(t);let n;Object.defineProperty(this,"responseBody",{get:()=>(n||(n=this.arrayBuffer()),n)}),this.headers={};for(const[o,a]of t.headers.entries())this.headers[o.toLowerCase()]=a}}const H5e=(e,t,r,n,i)=>async(o,a,s={})=>{o=i+(o||"");let l=new URL(o);if(n||(n={}),l.username&&(n.Authorization="Basic "+btoa(l.username+":"+l.password),l=new URL(l.protocol+"//"+l.host+l.pathname+l.search)),l.protocol!=="https:"&&l.protocol!=="http:")throw new Error(`Unknown protocol, ${l.protocol}`);if(a&&!(a instanceof ArrayBuffer||ArrayBuffer.isView(a)||typeof a=="string"))if(typeof a=="object")a=JSON.stringify(a),n["Content-Type"]="application/json";else throw new Error("Unknown body type.");s=new Headers({...n||{},...s});const c=await fetch(l,{method:t,headers:s,body:a});if(c.statusCode=c.status,!e.has(c.status))throw new X3(c);return r==="json"?c.json():r==="buffer"?c.arrayBuffer():r==="string"?c.text():c};var V5e=B5e(H5e);(function(e){var t=Ht&&Ht.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(e,"__esModule",{value:!0}),e.RestMessageAdapter=e.RestRequestType=void 0;const r=t(V5e),n=Wt();var i;(function(a){a.Get="GET",a.Post="POST",a.Delete="DELETE",a.File="file"})(i=e.RestRequestType||(e.RestRequestType={}));class o{constructor(s){if(!s)throw new n.ArgumentNullError("configParams");this.privHeaders=s.headers,this.privIgnoreCache=s.ignoreCache}static extractHeaderValue(s,l){let c="";try{const d=l.trim().split(/[\r\n]+/),u={};d.forEach(f=>{const h=f.split(": "),v=h.shift().toLowerCase(),y=h.join(": ");u[v]=y}),c=u[s.toLowerCase()]}catch{}return c}set options(s){this.privHeaders=s.headers,this.privIgnoreCache=s.ignoreCache}setHeaders(s,l){this.privHeaders[s]=l}request(s,l,c={},d=null){const u=new n.Deferred,f=s===i.File?"POST":s,h=(y,g={})=>{const m=y;return{data:JSON.stringify(g),headers:JSON.stringify(y.headers),json:g,ok:y.statusCode>=200&&y.statusCode<300,status:y.statusCode,statusText:g.error?g.error.message:m.statusText?m.statusText:m.statusMessage}},v=y=>{const g=(0,r.default)(l,f,this.privHeaders,200,201,202,204,400,401,402,403,404),m=this.queryParams(c)===""?"":`?${this.queryParams(c)}`;g(m,y).then(async S=>{if(s===i.Delete||S.statusCode===204)u.resolve(h(S));else try{const C=await S.json();u.resolve(h(S,C))}catch{u.resolve(h(S))}}).catch(S=>{u.reject(S)})};return this.privIgnoreCache&&(this.privHeaders["Cache-Control"]="no-cache"),s===i.Post&&d&&(this.privHeaders["content-type"]="application/json",this.privHeaders["Content-Type"]="application/json"),v(d),u.promise}queryParams(s={}){return Object.keys(s).map(l=>encodeURIComponent(l)+"="+encodeURIComponent(s[l])).join("&")}}e.RestMessageAdapter=o})(fne);var x0={};Object.defineProperty(x0,"__esModule",{value:!0});x0.RestConfigBase=void 0;class Pc{static get requestOptions(){return Pc.privDefaultRequestOptions}static get configParams(){return Pc.privDefaultParams}static get restErrors(){return Pc.privRestErrors}}x0.RestConfigBase=Pc;Pc.privDefaultRequestOptions={headers:{Accept:"application/json"},ignoreCache:!1,timeout:1e4};Pc.privRestErrors={authInvalidSubscriptionKey:"You must specify either an authentication token to use, or a Cognitive Speech subscription key.",authInvalidSubscriptionRegion:"You must specify the Cognitive Speech region to use.",invalidArgs:"Required input not found: {arg}.",invalidCreateJoinConversationResponse:"Creating/Joining conversation failed with HTTP {status}.",invalidParticipantRequest:"The requested participant was not found.",permissionDeniedConnect:"Required credentials not found.",permissionDeniedConversation:"Invalid operation: only the host can {command} the conversation.",permissionDeniedParticipant:"Invalid operation: only the host can {command} a participant.",permissionDeniedSend:"Invalid operation: the conversation is not in a connected state.",permissionDeniedStart:"Invalid operation: there is already an active conversation."};Pc.privDefaultParams={apiVersion:"api-version",authorization:"Authorization",clientAppId:"X-ClientAppId",contentTypeKey:"Content-Type",correlationId:"X-CorrelationId",languageCode:"language",nickname:"nickname",profanity:"profanity",requestId:"X-RequestId",roomId:"roomid",sessionToken:"token",subscriptionKey:"Ocp-Apim-Subscription-Key",subscriptionRegion:"Ocp-Apim-Subscription-Region",token:"X-CapitoToken"};var NB;function hi(){return NB||(NB=1,function(e){var t=Ht&&Ht.__createBinding||(Object.create?function(n,i,o,a){a===void 0&&(a=o),Object.defineProperty(n,a,{enumerable:!0,get:function(){return i[o]}})}:function(n,i,o,a){a===void 0&&(a=o),n[a]=i[o]}),r=Ht&&Ht.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&t(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),r(pE,e),r(bre,e),r(FLe(),e),r(zLe(),e),r(hE,e),r(vE,e),r(_0,e),r(gE,e),r(j5e(),e),r(fne,e),r(x0,e)}(j2)),j2}var DB;function U5e(){if(DB)return Wh;DB=1,Object.defineProperty(Wh,"__esModule",{value:!0}),Wh.IntentConnectionFactory=void 0;const e=hi(),t=Ct(),r=vs(),n=Lt(),i=pi;let o=class extends r.ConnectionFactoryBase{create(s,l,c){let d=s.parameters.getProperty(t.PropertyId.SpeechServiceConnection_Endpoint);if(!d){const v=s.parameters.getProperty(t.PropertyId.SpeechServiceConnection_IntentRegion),y=r.ConnectionFactoryBase.getHostSuffix(v);d=s.parameters.getProperty(t.PropertyId.SpeechServiceConnection_Host,"wss://"+v+".sr.speech"+y)+"/speech/recognition/interactive/cognitiveservices/v1"}const u={format:"simple",language:s.parameters.getProperty(t.PropertyId.SpeechServiceConnection_RecoLanguage)};this.setCommonUrlParams(s,u,d);const f={};l.token!==void 0&&l.token!==""&&(f[l.headerName]=l.token),f[i.HeaderNames.ConnectionId]=c,s.parameters.setProperty(t.PropertyId.SpeechServiceConnection_Url,d);const h=s.parameters.getProperty("SPEECH-EnableWebsocketCompression","false")==="true";return Promise.resolve(new e.WebsocketConnection(d,u,f,new n.WebsocketMessageFormatter,e.ProxyInfo.fromRecognizerConfig(s),h,c))}getSpeechRegionFromIntentRegion(s){switch(s){case"West US":case"US West":case"westus":return"uswest";case"West US 2":case"US West 2":case"westus2":return"uswest2";case"South Central US":case"US South Central":case"southcentralus":return"ussouthcentral";case"West Central US":case"US West Central":case"westcentralus":return"uswestcentral";case"East US":case"US East":case"eastus":return"useast";case"East US 2":case"US East 2":case"eastus2":return"useast2";case"West Europe":case"Europe West":case"westeurope":return"europewest";case"North Europe":case"Europe North":case"northeurope":return"europenorth";case"Brazil South":case"South Brazil":case"southbrazil":return"brazilsouth";case"Australia East":case"East Australia":case"eastaustralia":return"australiaeast";case"Southeast Asia":case"Asia Southeast":case"southeastasia":return"asiasoutheast";case"East Asia":case"Asia East":case"eastasia":return"asiaeast";default:return s}}};return Wh.IntentConnectionFactory=o,Wh}var Iu={},LB;function W5e(){if(LB)return Iu;LB=1,Object.defineProperty(Iu,"__esModule",{value:!0}),Iu.VoiceProfileConnectionFactory=Iu.SpeakerRecognitionConnectionFactory=void 0;const e=hi(),t=Ct(),r=vs(),n=Lt(),i=pi;class o extends r.ConnectionFactoryBase{create(c,d,u,f){let h=c.parameters.getProperty(t.PropertyId.SpeechServiceConnection_Endpoint);if(!h){const m=c.parameters.getProperty(t.PropertyId.SpeechServiceConnection_Region),S=r.ConnectionFactoryBase.getHostSuffix(m),C=c.parameters.getProperty(t.PropertyId.SpeechServiceConnection_Host,`wss://${m}.spr-frontend.speech${S}`),b=c.parameters.getProperty(t.PropertyId.SpeechServiceConnection_SpeakerIdMode,"TextIndependentIdentification");h=`${C}/speaker/ws/${this.scenarioToPath(b)}/${u}`}const v={format:"simple",language:c.parameters.getProperty(t.PropertyId.SpeechServiceConnection_RecoLanguage)};this.setCommonUrlParams(c,v,h);const y={};d.token!==void 0&&d.token!==""&&(y[d.headerName]=d.token),y[i.HeaderNames.ConnectionId]=f,y[i.HeaderNames.SpIDAuthKey]=c.parameters.getProperty(t.PropertyId.SpeechServiceConnection_Key),c.parameters.setProperty(t.PropertyId.SpeechServiceConnection_Url,h);const g=c.parameters.getProperty("SPEECH-EnableWebsocketCompression","false")==="true";return Promise.resolve(new e.WebsocketConnection(h,v,y,new n.WebsocketMessageFormatter,e.ProxyInfo.fromRecognizerConfig(c),g,f))}scenarioToPath(c){switch(c){case"TextIndependentVerification":case"2":return"verification/text-independent";case"TextDependentVerification":case"1":return"verification/text-dependent";default:return"identification/text-independent"}}}let a=class extends o{create(c,d,u){return super.create(c,d,"recognition",u)}};Iu.SpeakerRecognitionConnectionFactory=a;class s extends o{create(c,d,u){return super.create(c,d,"profile",u)}}return Iu.VoiceProfileConnectionFactory=s,Iu}var zE={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.RecognitionEndedEvent=e.RecognitionCompletionStatus=e.RecognitionStartedEvent=e.ConnectingToServiceEvent=e.ListeningStartedEvent=e.RecognitionTriggeredEvent=e.SpeechRecognitionEvent=void 0;const t=Wt();class r extends t.PlatformEvent{constructor(d,u,f,h=t.EventType.Info){super(d,h),this.privRequestId=u,this.privSessionId=f}get requestId(){return this.privRequestId}get sessionId(){return this.privSessionId}}e.SpeechRecognitionEvent=r;class n extends r{constructor(d,u,f,h){super("RecognitionTriggeredEvent",d,u),this.privAudioSourceId=f,this.privAudioNodeId=h}get audioSourceId(){return this.privAudioSourceId}get audioNodeId(){return this.privAudioNodeId}}e.RecognitionTriggeredEvent=n;class i extends r{constructor(d,u,f,h){super("ListeningStartedEvent",d,u),this.privAudioSourceId=f,this.privAudioNodeId=h}get audioSourceId(){return this.privAudioSourceId}get audioNodeId(){return this.privAudioNodeId}}e.ListeningStartedEvent=i;class o extends r{constructor(d,u,f){super("ConnectingToServiceEvent",d,f),this.privAuthFetchEventid=u}get authFetchEventid(){return this.privAuthFetchEventid}}e.ConnectingToServiceEvent=o;class a extends r{constructor(d,u,f,h,v){super("RecognitionStartedEvent",d,v),this.privAudioSourceId=u,this.privAudioNodeId=f,this.privAuthFetchEventId=h}get audioSourceId(){return this.privAudioSourceId}get audioNodeId(){return this.privAudioNodeId}get authFetchEventId(){return this.privAuthFetchEventId}}e.RecognitionStartedEvent=a;var s;(function(c){c[c.Success=0]="Success",c[c.AudioSourceError=1]="AudioSourceError",c[c.AudioSourceTimeout=2]="AudioSourceTimeout",c[c.AuthTokenFetchError=3]="AuthTokenFetchError",c[c.AuthTokenFetchTimeout=4]="AuthTokenFetchTimeout",c[c.UnAuthorized=5]="UnAuthorized",c[c.ConnectTimeout=6]="ConnectTimeout",c[c.ConnectError=7]="ConnectError",c[c.ClientRecognitionActivityTimeout=8]="ClientRecognitionActivityTimeout",c[c.UnknownError=9]="UnknownError"})(s=e.RecognitionCompletionStatus||(e.RecognitionCompletionStatus={}));class l extends r{constructor(d,u,f,h,v,y,g,m){super("RecognitionEndedEvent",d,v,g===s.Success?t.EventType.Info:t.EventType.Error),this.privAudioSourceId=u,this.privAudioNodeId=f,this.privAuthFetchEventId=h,this.privStatus=g,this.privError=m,this.privServiceTag=y}get audioSourceId(){return this.privAudioSourceId}get audioNodeId(){return this.privAudioNodeId}get authFetchEventId(){return this.privAuthFetchEventId}get serviceTag(){return this.privServiceTag}get status(){return this.privStatus}get error(){return this.privError}}e.RecognitionEndedEvent=l})(zE);var Xv={},$l={};Object.defineProperty($l,"__esModule",{value:!0});$l.SpeechConnectionMessage=void 0;const q2=Wt(),Js=pi;class Q3 extends q2.ConnectionMessage{constructor(t,r,n,i,o,a,s,l){if(!r)throw new q2.ArgumentNullError("path");if(!n)throw new q2.ArgumentNullError("requestId");const c={};if(c[Js.HeaderNames.Path]=r,c[Js.HeaderNames.RequestId]=n,c[Js.HeaderNames.RequestTimestamp]=new Date().toISOString(),i&&(c[Js.HeaderNames.ContentType]=i),a&&(c[Js.HeaderNames.RequestStreamId]=a),s)for(const d in s)d&&(c[d]=s[d]);l?super(t,o,c,l):super(t,o,c),this.privPath=r,this.privRequestId=n,this.privContentType=i,this.privStreamId=a,this.privAdditionalHeaders=s}get path(){return this.privPath}get requestId(){return this.privRequestId}get contentType(){return this.privContentType}get streamId(){return this.privStreamId}get additionalHeaders(){return this.privAdditionalHeaders}static fromConnectionMessage(t){let r=null,n=null,i=null,o=null;const a={};if(t.headers)for(const s in t.headers)s&&(s.toLowerCase()===Js.HeaderNames.Path.toLowerCase()?r=t.headers[s]:s.toLowerCase()===Js.HeaderNames.RequestId.toLowerCase()?n=t.headers[s]:s.toLowerCase()===Js.HeaderNames.ContentType.toLowerCase()?i=t.headers[s]:s.toLowerCase()===Js.HeaderNames.RequestStreamId.toLowerCase()?o=t.headers[s]:a[s]=t.headers[s]);return new Q3(t.messageType,r,n,i,t.body,o,a,t.id)}}$l.SpeechConnectionMessage=Q3;var pne={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SegmentationMode=void 0,function(t){t.Normal="Normal",t.Disabled="Disabled",t.Custom="Custom",t.Semantic="Semantic"}(e.SegmentationMode||(e.SegmentationMode={}))})(pne);var hne={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NextAction=void 0,function(t){t.None="None",t.Synthesize="Synthesize"}(e.NextAction||(e.NextAction={}))})(hne);var vne={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Mode=void 0,function(t){t.None="None",t.Always="Always"}(e.Mode||(e.Mode={}))})(vne);var gne={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.LanguageIdDetectionPriority=e.LanguageIdDetectionMode=void 0,function(t){t.DetectAtAudioStart="DetectAtAudioStart",t.DetectContinuous="DetectContinuous",t.DetectSegments="DetectSegments"}(e.LanguageIdDetectionMode||(e.LanguageIdDetectionMode={})),function(t){t.Auto="Auto",t.PrioritizeLatency="PrioritizeLatency",t.PrioritizeAccuracy="PrioritizeAccuracy"}(e.LanguageIdDetectionPriority||(e.LanguageIdDetectionPriority={}))})(gne);var mne={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NextAction=void 0,function(t){t.Recognize="Recognize",t.None="None"}(e.NextAction||(e.NextAction={}))})(mne);var yne={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.OnUnknownAction=void 0,function(t){t.RecognizeWithDefaultLanguage="RecognizeWithDefaultLanguage",t.None="None"}(e.OnUnknownAction||(e.OnUnknownAction={}))})(yne);var Sne={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ResultType=void 0,function(t){t.Auto="Auto",t.StableFragment="StableFragment",t.Hypothesis="Hypothesis",t.None="None"}(e.ResultType||(e.ResultType={}))})(Sne);var Cne={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.PhraseResultOutputType=void 0,function(t){t.Always="Always",t.None="None"}(e.PhraseResultOutputType||(e.PhraseResultOutputType={}))})(Cne);var bne={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.NextAction=void 0,function(t){t.None="None",t.Translate="Translate"}(e.NextAction||(e.NextAction={}))})(bne);var jB;function q5e(){if(jB)return Xv;jB=1,Object.defineProperty(Xv,"__esModule",{value:!0}),Xv.ServiceRecognizerBase=void 0;const e=hi(),t=Wt(),r=Ct(),n=Lt(),i=$l,o=pne,a=ia,s=hne,l=vne,c=gne,d=mne,u=yne,f=Sne,h=Cne,v=bne;let y=class em{constructor(m,S,C,b,w){if(this.privConnectionConfigurationPromise=void 0,this.privConnectionPromise=void 0,this.privSetTimeout=setTimeout,this.privIsLiveAudio=!1,this.privAverageBytesPerMs=0,this.privEnableSpeakerId=!1,this.privExpectContentAssessmentResponse=!1,this.recognizeOverride=void 0,this.recognizeSpeaker=void 0,this.disconnectOverride=void 0,this.receiveMessageOverride=void 0,this.sendPrePayloadJSONOverride=void 0,this.postConnectImplOverride=void 0,this.configConnectionOverride=void 0,this.handleSpeechPhraseMessage=void 0,this.handleSpeechHypothesisMessage=void 0,!m)throw new t.ArgumentNullError("authentication");if(!S)throw new t.ArgumentNullError("connectionFactory");if(!C)throw new t.ArgumentNullError("audioSource");if(!b)throw new t.ArgumentNullError("recognizerConfig");this.privEnableSpeakerId=b.isSpeakerDiarizationEnabled,this.privMustReportEndOfStream=!1,this.privAuthentication=m,this.privConnectionFactory=S,this.privAudioSource=C,this.privRecognizerConfig=b,this.privIsDisposed=!1,this.privRecognizer=w,this.privRequestSession=new n.RequestSession(this.privAudioSource.id()),this.privConnectionEvents=new t.EventSource,this.privServiceEvents=new t.EventSource,this.privDynamicGrammar=new n.DynamicGrammarBuilder,this.privSpeechContext=new n.SpeechContext(this.privDynamicGrammar),this.privAgentConfig=new n.AgentConfig,this.privRecognizerConfig.parameters.getProperty(r.PropertyId.WebWorkerLoadType,"on").toLowerCase()==="on"&&typeof Blob<"u"&&typeof Worker<"u"?this.privSetTimeout=t.Timeout.setTimeout:(typeof window<"u"&&(this.privSetTimeout=window.setTimeout.bind(window)),typeof globalThis<"u"&&(this.privSetTimeout=globalThis.setTimeout.bind(globalThis))),this.connectionEvents.attach(_=>{if(_.name==="ConnectionClosedEvent"){const R=_;(R.statusCode===1003||R.statusCode===1007||R.statusCode===1002||R.statusCode===4e3||this.privRequestSession.numConnectionAttempts>this.privRecognizerConfig.maxRetryCount)&&this.cancelRecognitionLocal(r.CancellationReason.Error,R.statusCode===1007?r.CancellationErrorCode.BadRequestParameters:r.CancellationErrorCode.ConnectionFailure,`${R.reason} websocket error code: ${R.statusCode}`)}}),this.privEnableSpeakerId&&(this.privDiarizationSessionId=(0,t.createNoDashGuid)())}setTranslationJson(){const m=this.privRecognizerConfig.parameters.getProperty(r.PropertyId.SpeechServiceConnection_TranslationToLanguages,void 0);if(m!==void 0){const S=m.split(","),C=this.privRecognizerConfig.parameters.getProperty(r.PropertyId.SpeechServiceConnection_TranslationVoice,void 0),b=this.privRecognizerConfig.parameters.getProperty(r.PropertyId.SpeechServiceConnection_TranslationCategoryId,void 0),w=C!==void 0?s.NextAction.Synthesize:s.NextAction.None;if(this.privSpeechContext.getContext().translation={onPassthrough:{action:w},onSuccess:{action:w},output:{includePassThroughResults:!0,interimResults:{mode:l.Mode.Always}},targetLanguages:S},b!==void 0&&(this.privSpeechContext.getContext().translation.category=b),C!==void 0){const _={};for(const R of S)_[R]=C;this.privSpeechContext.getContext().synthesis={defaultVoices:_}}const E=this.privSpeechContext.getContext().phraseDetection||{};E.onSuccess={action:v.NextAction.Translate},E.onInterim={action:v.NextAction.Translate},this.privSpeechContext.getContext().phraseDetection=E}}setSpeechSegmentationTimeoutJson(){const m=this.privRecognizerConfig.parameters.getProperty(r.PropertyId.Speech_SegmentationSilenceTimeoutMs,void 0),S=this.privRecognizerConfig.parameters.getProperty(r.PropertyId.Speech_SegmentationMaximumTimeMs,void 0),C=this.privRecognizerConfig.parameters.getProperty(r.PropertyId.Speech_SegmentationStrategy,void 0),b={mode:o.SegmentationMode.Normal};let w=!1;if(C!==void 0){w=!0;let E=o.SegmentationMode.Normal;switch(C.toLowerCase()){case"default":break;case"time":E=o.SegmentationMode.Custom;break;case"semantic":E=o.SegmentationMode.Semantic;break}b.mode=E}if(m!==void 0){w=!0;const E=parseInt(m,10);b.mode=o.SegmentationMode.Custom,b.segmentationSilenceTimeoutMs=E}if(S!==void 0){w=!0;const E=parseInt(S,10);b.mode=o.SegmentationMode.Custom,b.segmentationForcedTimeoutMs=E}if(w){const E=this.privSpeechContext.getContext().phraseDetection||{};switch(E.mode=this.recognitionMode,this.recognitionMode){case a.RecognitionMode.Conversation:E.conversation=E.conversation??{segmentation:{}},E.conversation.segmentation=b;break;case a.RecognitionMode.Interactive:E.interactive=E.interactive??{segmentation:{}},E.interactive.segmentation=b;break;case a.RecognitionMode.Dictation:E.dictation=E.dictation??{},E.dictation.segmentation=b;break}this.privSpeechContext.getContext().phraseDetection=E}}setLanguageIdJson(){const m=this.privSpeechContext.getContext().phraseDetection||{};if(this.privRecognizerConfig.autoDetectSourceLanguages!==void 0){const S=this.privRecognizerConfig.autoDetectSourceLanguages.split(",");S.length===1&&S[0]===n.AutoDetectSourceLanguagesOpenRangeOptionName&&(S[0]="UND");let C;this.privRecognizerConfig.languageIdMode==="Continuous"?C=c.LanguageIdDetectionMode.DetectContinuous:C=c.LanguageIdDetectionMode.DetectAtAudioStart,this.privSpeechContext.getContext().languageId={languages:S,mode:C,onSuccess:{action:d.NextAction.Recognize},onUnknown:{action:u.OnUnknownAction.None},priority:c.LanguageIdDetectionPriority.PrioritizeLatency},this.privSpeechContext.getContext().phraseOutput={interimResults:{resultType:f.ResultType.Auto},phraseResults:{resultType:h.PhraseResultOutputType.Always}};const b=this.privRecognizerConfig.sourceLanguageModels;b!==void 0&&(m.customModels=b,m.onInterim={action:v.NextAction.None},m.onSuccess={action:v.NextAction.None})}this.privSpeechContext.getContext().phraseDetection=m}setOutputDetailLevelJson(){this.privEnableSpeakerId&&(this.privRecognizerConfig.parameters.getProperty(r.PropertyId.SpeechServiceResponse_RequestWordLevelTimestamps,"false").toLowerCase()==="true"?this.privSpeechContext.setWordLevelTimings():this.privRecognizerConfig.parameters.getProperty(n.OutputFormatPropertyName,r.OutputFormat[r.OutputFormat.Simple]).toLowerCase()===r.OutputFormat[r.OutputFormat.Detailed].toLocaleLowerCase()&&this.privSpeechContext.setDetailedOutputFormat())}get isSpeakerDiarizationEnabled(){return this.privEnableSpeakerId}get audioSource(){return this.privAudioSource}get speechContext(){return this.privSpeechContext}get dynamicGrammar(){return this.privDynamicGrammar}get agentConfig(){return this.privAgentConfig}set conversationTranslatorToken(m){this.privRecognizerConfig.parameters.setProperty(r.PropertyId.ConversationTranslator_Token,m)}set voiceProfileType(m){this.privRecognizerConfig.parameters.setProperty(r.PropertyId.SpeechServiceConnection_SpeakerIdMode,m)}set authentication(m){this.privAuthentication=m}isDisposed(){return this.privIsDisposed}async dispose(m){if(this.privIsDisposed=!0,this.privConnectionPromise!==void 0)try{await(await this.privConnectionPromise).dispose(m)}catch{return}}get connectionEvents(){return this.privConnectionEvents}get serviceEvents(){return this.privServiceEvents}get recognitionMode(){return this.privRecognizerConfig.recognitionMode}async recognize(m,S,C){if(this.recognizeOverride!==void 0){await this.recognizeOverride(m,S,C);return}if(this.privConnectionConfigurationPromise=void 0,this.privRecognizerConfig.recognitionMode=m,this.privRecognizerConfig.recognitionEndpointVersion==="2"){const R=this.privSpeechContext.getContext().phraseDetection||{};R.mode=m,this.privSpeechContext.getContext().phraseDetection=R}this.setLanguageIdJson(),this.setTranslationJson(),this.privRecognizerConfig.autoDetectSourceLanguages!==void 0&&this.privRecognizerConfig.parameters.getProperty(r.PropertyId.SpeechServiceConnection_TranslationToLanguages,void 0)!==void 0&&this.setupTranslationWithLanguageId(),this.setSpeechSegmentationTimeoutJson(),this.setOutputDetailLevelJson(),this.privSuccessCallback=S,this.privErrorCallback=C,this.privRequestSession.startNewRecognition(),this.privRequestSession.listenForServiceTelemetry(this.privAudioSource.events);const b=this.connectImpl();let w;try{const R=await this.audioSource.attach(this.privRequestSession.audioNodeId),P=await this.audioSource.format,I=await this.audioSource.deviceInfo;this.privIsLiveAudio=I.type&&I.type===n.type.Microphones,w=new e.ReplayableAudioNode(R,P.avgBytesPerSec),await this.privRequestSession.onAudioSourceAttachCompleted(w,!1),this.privRecognizerConfig.SpeechServiceConfig.Context.audio={source:I}}catch(R){throw await this.privRequestSession.onStopRecognizing(),R}try{await b}catch(R){await this.cancelRecognitionLocal(r.CancellationReason.Error,r.CancellationErrorCode.ConnectionFailure,R);return}const E=new r.SessionEventArgs(this.privRequestSession.sessionId);this.privRecognizer.sessionStarted&&this.privRecognizer.sessionStarted(this.privRecognizer,E),this.receiveMessage(),this.sendAudio(w).catch(async R=>{await this.cancelRecognitionLocal(r.CancellationReason.Error,r.CancellationErrorCode.RuntimeError,R)})}async stopRecognizing(){if(this.privRequestSession.isRecognizing)try{await this.audioSource.turnOff(),await this.sendFinalAudio(),await this.privRequestSession.onStopRecognizing(),await this.privRequestSession.turnCompletionPromise}finally{await this.privRequestSession.dispose()}}async connect(){return await this.connectImpl(),Promise.resolve()}connectAsync(m,S){this.connectImpl().then(()=>{try{m&&m()}catch(C){S&&S(C)}},C=>{try{S&&S(C)}catch{}})}async disconnect(){if(await this.cancelRecognitionLocal(r.CancellationReason.Error,r.CancellationErrorCode.NoError,"Disconnecting"),this.disconnectOverride!==void 0&&await this.disconnectOverride(),this.privConnectionPromise!==void 0)try{await(await this.privConnectionPromise).dispose()}catch{}this.privConnectionPromise=void 0}sendMessage(m){}async sendNetworkMessage(m,S){const C=typeof S=="string"?t.MessageType.Text:t.MessageType.Binary,b=typeof S=="string"?"application/json":"";return(await this.fetchConnection()).send(new i.SpeechConnectionMessage(C,m,this.privRequestSession.requestId,b,S))}set activityTemplate(m){this.privActivityTemplate=m}get activityTemplate(){return this.privActivityTemplate}set expectContentAssessmentResponse(m){this.privExpectContentAssessmentResponse=m}async sendTelemetryData(){const m=this.privRequestSession.getTelemetry();if(em.telemetryDataEnabled!==!0||this.privIsDisposed||m===null)return;if(em.telemetryData)try{em.telemetryData(m)}catch{}await(await this.fetchConnection()).send(new i.SpeechConnectionMessage(t.MessageType.Text,"telemetry",this.privRequestSession.requestId,"application/json",m))}async cancelRecognitionLocal(m,S,C){this.privRequestSession.isRecognizing&&(await this.privRequestSession.onStopRecognizing(),this.cancelRecognition(this.privRequestSession.sessionId,this.privRequestSession.requestId,m,S,C))}async receiveMessage(){try{if(this.privIsDisposed)return;let m=await this.fetchConnection();const S=await m.read();if(this.receiveMessageOverride!==void 0)return this.receiveMessageOverride();if(!S)return this.receiveMessage();this.privServiceHasSentMessage=!0;const C=i.SpeechConnectionMessage.fromConnectionMessage(S);if(C.requestId.toLowerCase()===this.privRequestSession.requestId.toLowerCase())switch(C.path.toLowerCase()){case"turn.start":this.privMustReportEndOfStream=!0,this.privRequestSession.onServiceTurnStartResponse();break;case"speech.startdetected":const b=n.SpeechDetected.fromJSON(C.textBody,this.privRequestSession.currentTurnAudioOffset),w=new r.RecognitionEventArgs(b.Offset,this.privRequestSession.sessionId);this.privRecognizer.speechStartDetected&&this.privRecognizer.speechStartDetected(this.privRecognizer,w);break;case"speech.enddetected":let E;C.textBody.length>0?E=C.textBody:E="{ Offset: 0 }";const _=n.SpeechDetected.fromJSON(E,this.privRequestSession.currentTurnAudioOffset),R=new r.RecognitionEventArgs(_.Offset+this.privRequestSession.currentTurnAudioOffset,this.privRequestSession.sessionId);this.privRecognizer.speechEndDetected&&this.privRecognizer.speechEndDetected(this.privRecognizer,R);break;case"turn.end":await this.sendTelemetryData(),this.privRequestSession.isSpeechEnded&&this.privMustReportEndOfStream&&(this.privMustReportEndOfStream=!1,await this.cancelRecognitionLocal(r.CancellationReason.EndOfStream,r.CancellationErrorCode.NoError,void 0));const P=new r.SessionEventArgs(this.privRequestSession.sessionId);if(await this.privRequestSession.onServiceTurnEndResponse(this.privRecognizerConfig.isContinuousRecognition),!this.privRecognizerConfig.isContinuousRecognition||this.privRequestSession.isSpeechEnded||!this.privRequestSession.isRecognizing){this.privRecognizer.sessionStopped&&this.privRecognizer.sessionStopped(this.privRecognizer,P);return}else m=await this.fetchConnection(),await this.sendPrePayloadJSON(m);break;default:await this.processTypeSpecificMessages(C)||this.privServiceEvents&&this.serviceEvents.onEvent(new t.ServiceEvent(C.path.toLowerCase(),C.textBody))}return this.receiveMessage()}catch{return null}}updateSpeakerDiarizationAudioOffset(){const m=this.privRequestSession.recognitionBytesSent,S=this.privAverageBytesPerMs!==0?m/this.privAverageBytesPerMs:0;this.privSpeechContext.setSpeakerDiarizationAudioOffsetMs(S)}sendSpeechContext(m,S){this.privEnableSpeakerId&&this.updateSpeakerDiarizationAudioOffset();const C=this.speechContext.toJSON();if(S&&this.privRequestSession.onSpeechContext(),C)return m.send(new i.SpeechConnectionMessage(t.MessageType.Text,"speech.context",this.privRequestSession.requestId,"application/json",C))}setupTranslationWithLanguageId(){const m=this.privRecognizerConfig.parameters.getProperty(r.PropertyId.SpeechServiceConnection_TranslationToLanguages,void 0),S=this.privRecognizerConfig.autoDetectSourceLanguages!==void 0;if(m!==void 0&&S){this.privSpeechContext.getContext().phraseOutput={interimResults:{resultType:f.ResultType.None},phraseResults:{resultType:h.PhraseResultOutputType.None}};const C=this.privSpeechContext.getContext().translation;if(C){const b=this.privRecognizerConfig.sourceLanguageModels;if(b!==void 0&&b.length>0){const E=this.privSpeechContext.getContext().phraseDetection||{};E.customModels=b,this.privSpeechContext.getContext().phraseDetection=E}this.privRecognizerConfig.parameters.getProperty(r.PropertyId.SpeechServiceConnection_TranslationVoice,void 0)!==void 0&&(C.onSuccess={action:s.NextAction.Synthesize},C.onPassthrough={action:s.NextAction.Synthesize})}}}noOp(){}async sendPrePayloadJSON(m,S=!0){if(this.sendPrePayloadJSONOverride!==void 0)return this.sendPrePayloadJSONOverride(m);await this.sendSpeechContext(m,S),await this.sendWaveHeader(m)}async sendWaveHeader(m){const S=await this.audioSource.format;return m.send(new i.SpeechConnectionMessage(t.MessageType.Binary,"audio",this.privRequestSession.requestId,"audio/x-wav",S.header))}connectImpl(){return this.privConnectionPromise!==void 0?this.privConnectionPromise.then(m=>m.state()===t.ConnectionState.Disconnected?(this.privConnectionId=null,this.privConnectionPromise=void 0,this.privServiceHasSentMessage=!1,this.connectImpl()):this.privConnectionPromise,()=>(this.privConnectionId=null,this.privConnectionPromise=void 0,this.privServiceHasSentMessage=!1,this.connectImpl())):(this.privConnectionPromise=this.retryableConnect(),this.privConnectionPromise.catch(()=>{}),this.postConnectImplOverride!==void 0?this.postConnectImplOverride(this.privConnectionPromise):this.privConnectionPromise)}sendSpeechServiceConfig(m,S,C){if(S.onSpeechContext(),em.telemetryDataEnabled!==!0){const w={context:{system:JSON.parse(C).context.system}};C=JSON.stringify(w)}if(this.privRecognizerConfig.parameters.getProperty("f0f5debc-f8c9-4892-ac4b-90a7ab359fd2","false").toLowerCase()==="true"){const b=JSON.parse(C);b.context.DisableReferenceChannel="True",b.context.MicSpec="1_0_0",C=JSON.stringify(b)}if(C)return m.send(new i.SpeechConnectionMessage(t.MessageType.Text,"speech.config",S.requestId,"application/json",C))}async fetchConnection(){return this.privConnectionConfigurationPromise!==void 0?this.privConnectionConfigurationPromise.then(m=>m.state()===t.ConnectionState.Disconnected?(this.privConnectionId=null,this.privConnectionConfigurationPromise=void 0,this.privServiceHasSentMessage=!1,this.fetchConnection()):this.privConnectionConfigurationPromise,()=>(this.privConnectionId=null,this.privConnectionConfigurationPromise=void 0,this.privServiceHasSentMessage=!1,this.fetchConnection())):(this.privConnectionConfigurationPromise=this.configureConnection(),await this.privConnectionConfigurationPromise)}async sendAudio(m){const S=await this.audioSource.format;this.privAverageBytesPerMs=S.avgBytesPerSec/1e3;let C=Date.now();const b=this.privRecognizerConfig.parameters.getProperty("SPEECH-TransmitLengthBeforThrottleMs","5000"),w=S.avgBytesPerSec/1e3*parseInt(b,10),E=this.privRequestSession.recogNumber,_=async()=>{if(!this.privIsDisposed&&!this.privRequestSession.isSpeechEnded&&this.privRequestSession.isRecognizing&&this.privRequestSession.recogNumber===E){const R=await this.fetchConnection(),P=await m.read();if(this.privRequestSession.isSpeechEnded)return;let I,O;if(!P||P.isEnd?(I=null,O=0):(I=P.buffer,this.privRequestSession.onAudioSent(I.byteLength),w>=this.privRequestSession.bytesSent?O=0:O=Math.max(0,C-Date.now())),O!==0&&await this.delay(O),I!==null&&(C=Date.now()+I.byteLength*1e3/(S.avgBytesPerSec*2)),!this.privIsDisposed&&!this.privRequestSession.isSpeechEnded&&this.privRequestSession.isRecognizing&&this.privRequestSession.recogNumber===E)if(R.send(new i.SpeechConnectionMessage(t.MessageType.Binary,"audio",this.privRequestSession.requestId,null,I)).catch(()=>{this.privRequestSession.onServiceTurnEndResponse(this.privRecognizerConfig.isContinuousRecognition).catch(()=>{})}),P!=null&&P.isEnd)this.privIsLiveAudio||this.privRequestSession.onSpeechEnded();else return _()}};return _()}async retryableConnect(){let m=!1;this.privAuthFetchEventId=(0,t.createNoDashGuid)();const S=this.privRequestSession.sessionId;this.privConnectionId=S!==void 0?S:(0,t.createNoDashGuid)(),this.privRequestSession.onPreConnectionStart(this.privAuthFetchEventId,this.privConnectionId);let C=0,b="";for(;this.privRequestSession.numConnectionAttempts<=this.privRecognizerConfig.maxRetryCount;){this.privRequestSession.onRetryConnection();const E=await(m?this.privAuthentication.fetchOnExpiry(this.privAuthFetchEventId):this.privAuthentication.fetch(this.privAuthFetchEventId));await this.privRequestSession.onAuthCompleted(!1);const _=await this.privConnectionFactory.create(this.privRecognizerConfig,E,this.privConnectionId);this.privRequestSession.listenForServiceTelemetry(_.events),_.events.attach(P=>{this.connectionEvents.onEvent(P)});const R=await _.open();if(R.statusCode===200)return await this.privRequestSession.onConnectionEstablishCompleted(R.statusCode),Promise.resolve(_);R.statusCode===1006&&(m=!0),C=R.statusCode,b=R.reason}return await this.privRequestSession.onConnectionEstablishCompleted(C,b),Promise.reject(`Unable to contact server. StatusCode: ${C}, ${this.privRecognizerConfig.parameters.getProperty(r.PropertyId.SpeechServiceConnection_Endpoint)} Reason: ${b}`)}delay(m){return new Promise(S=>this.privSetTimeout(S,m))}writeBufferToConsole(m){let S="Buffer Size: ";if(m===null)S+="null";else{const C=new Uint8Array(m);S+=`${m.byteLength}\r
440`;for(let b=0;b<m.byteLength;b++)S+=C[b].toString(16).padStart(2,"0")+" ",(b+1)%16===0&&(S="")}}async sendFinalAudio(){await(await this.fetchConnection()).send(new i.SpeechConnectionMessage(t.MessageType.Binary,"audio",this.privRequestSession.requestId,null,null))}async configureConnection(){const m=await this.connectImpl();return this.configConnectionOverride!==void 0?this.configConnectionOverride(m):(await this.sendSpeechServiceConfig(m,this.privRequestSession,this.privRecognizerConfig.SpeechServiceConfig.serialize()),await this.sendPrePayloadJSON(m,!1),m)}};return Xv.ServiceRecognizerBase=y,y.telemetryDataEnabled=!0,Xv}var Qv={},FB;function G5e(){if(FB)return Qv;FB=1,Object.defineProperty(Qv,"__esModule",{value:!0}),Qv.ConversationServiceRecognizer=void 0;const e=Ct(),t=Lt();let r=class extends t.ServiceRecognizerBase{constructor(i,o,a,s,l){super(i,o,a,s,l),this.handleSpeechPhraseMessage=async c=>this.handleSpeechPhrase(c),this.handleSpeechHypothesisMessage=c=>this.handleSpeechHypothesis(c)}processTypeSpecificMessages(i){}handleRecognizedCallback(i,o,a){}handleRecognizingCallback(i,o,a){}async processSpeechMessages(i){let o=!1;switch(i.path.toLowerCase()){case"speech.hypothesis":case"speech.fragment":this.handleSpeechHypothesisMessage&&this.handleSpeechHypothesisMessage(i.textBody),o=!0;break;case"speech.phrase":this.handleSpeechPhraseMessage&&await this.handleSpeechPhraseMessage(i.textBody),o=!0;break}return o}cancelRecognition(i,o,a,s,l){}async handleSpeechPhrase(i){const o=t.SimpleSpeechPhrase.fromJSON(i,this.privRequestSession.currentTurnAudioOffset),a=t.EnumTranslation.implTranslateRecognitionResult(o.RecognitionStatus);let s;const l=new e.PropertyCollection;if(l.setProperty(e.PropertyId.SpeechServiceResponse_JsonResult,i),this.privRequestSession.onPhraseRecognized(o.Offset+o.Duration),e.ResultReason.Canceled===a){const c=t.EnumTranslation.implTranslateCancelResult(o.RecognitionStatus),d=t.EnumTranslation.implTranslateCancelErrorCode(o.RecognitionStatus);await this.cancelRecognitionLocal(c,d,t.EnumTranslation.implTranslateErrorDetails(d))}else if(o.RecognitionStatus!==t.RecognitionStatus.EndOfDictation){if(this.privRecognizerConfig.parameters.getProperty(t.OutputFormatPropertyName)===e.OutputFormat[e.OutputFormat.Simple])s=new e.SpeechRecognitionResult(this.privRequestSession.requestId,a,o.DisplayText,o.Duration,o.Offset,o.Language,o.LanguageDetectionConfidence,o.SpeakerId,void 0,o.asJson(),l);else{const c=t.DetailedSpeechPhrase.fromJSON(i,this.privRequestSession.currentTurnAudioOffset);s=new e.SpeechRecognitionResult(this.privRequestSession.requestId,a,c.Text,c.Duration,c.Offset,c.Language,c.LanguageDetectionConfidence,c.SpeakerId,void 0,c.asJson(),l)}this.handleRecognizedCallback(s,s.offset,this.privRequestSession.sessionId)}}handleSpeechHypothesis(i){const o=t.SpeechHypothesis.fromJSON(i,this.privRequestSession.currentTurnAudioOffset),a=new e.PropertyCollection;a.setProperty(e.PropertyId.SpeechServiceResponse_JsonResult,i);const s=new e.SpeechRecognitionResult(this.privRequestSession.requestId,e.ResultReason.RecognizingSpeech,o.Text,o.Duration,o.Offset,o.Language,o.LanguageDetectionConfidence,o.SpeakerId,void 0,o.asJson(),a);this.privRequestSession.onHypothesis(o.Offset),this.handleRecognizingCallback(s,o.Duration,this.privRequestSession.sessionId)}};return Qv.ConversationServiceRecognizer=r,Qv}var G2={},zB;function K5e(){return zB||(zB=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.RecognizerConfig=e.SpeechResultFormat=void 0;const t=Ct(),r=Lt(),n=ia;(function(o){o[o.Simple=0]="Simple",o[o.Detailed=1]="Detailed"})(e.SpeechResultFormat||(e.SpeechResultFormat={}));class i{constructor(a,s){this.privSpeechServiceConfig=a||new r.SpeechServiceConfig(new r.Context(null)),this.privParameters=s,this.privMaxRetryCount=parseInt(s.getProperty("SPEECH-Error-MaxRetryCount","4"),10),this.privLanguageIdMode=s.getProperty(t.PropertyId.SpeechServiceConnection_LanguageIdMode,void 0),this.privEnableSpeakerId=!1}get parameters(){return this.privParameters}get recognitionMode(){return this.privRecognitionMode}set recognitionMode(a){this.privRecognitionMode=a,this.privRecognitionActivityTimeout=a===n.RecognitionMode.Interactive?8e3:25e3,this.privSpeechServiceConfig.Recognition=n.RecognitionMode[a]}get SpeechServiceConfig(){return this.privSpeechServiceConfig}get recognitionActivityTimeout(){return this.privRecognitionActivityTimeout}get isContinuousRecognition(){return this.privRecognitionMode!==n.RecognitionMode.Interactive}get languageIdMode(){return this.privLanguageIdMode}get autoDetectSourceLanguages(){return this.parameters.getProperty(t.PropertyId.SpeechServiceConnection_AutoDetectSourceLanguages,void 0)}get recognitionEndpointVersion(){return this.parameters.getProperty(t.PropertyId.SpeechServiceConnection_RecognitionEndpointVersion,"2")}set recognitionEndpointVersion(a){this.parameters.setProperty(t.PropertyId.SpeechServiceConnection_RecognitionEndpointVersion,a)}get sourceLanguageModels(){const a=[];let s=!1;if(this.autoDetectSourceLanguages!==void 0)for(const l of this.autoDetectSourceLanguages.split(",")){const c=l+t.PropertyId.SpeechServiceConnection_EndpointId.toString(),d=this.parameters.getProperty(c,void 0);d!==void 0?(a.push({language:l,endpoint:d}),s=!0):a.push({language:l,endpoint:""})}return s?a:void 0}get maxRetryCount(){return this.privMaxRetryCount}get isSpeakerDiarizationEnabled(){return this.privEnableSpeakerId}set isSpeakerDiarizationEnabled(a){this.privEnableSpeakerId=a}}e.RecognizerConfig=i}(G2)),G2}var wne={};Object.defineProperty(wne,"__esModule",{value:!0});var BE={};Object.defineProperty(BE,"__esModule",{value:!0});BE.WebsocketMessageFormatter=void 0;const va=Wt(),BB=`\r
441`;class Y5e{toConnectionMessage(t){const r=new va.Deferred;try{if(t.messageType===va.MessageType.Text){const n=t.textContent;let i={},o=null;if(n){const a=n.split(`\r
442\r
443`);a&&a.length>0&&(i=this.parseHeaders(a[0]),a.length>1&&(o=a[1]))}r.resolve(new va.ConnectionMessage(t.messageType,o,i,t.id))}else if(t.messageType===va.MessageType.Binary){const n=t.binaryContent;let i={},o=null;if(!n||n.byteLength<2)throw new Error("Invalid binary message format. Header length missing.");const a=new DataView(n),s=a.getInt16(0);if(n.byteLength<s+2)throw new Error("Invalid binary message format. Header content missing.");let l="";for(let c=0;c<s;c++)l+=String.fromCharCode(a.getInt8(c+2));i=this.parseHeaders(l),n.byteLength>s+2&&(o=n.slice(2+s)),r.resolve(new va.ConnectionMessage(t.messageType,o,i,t.id))}}catch(n){r.reject(`Error formatting the message. Error: ${n}`)}return r.promise}fromConnectionMessage(t){const r=new va.Deferred;try{if(t.messageType===va.MessageType.Text){const n=`${this.makeHeaders(t)}${BB}${t.textBody?t.textBody:""}`;r.resolve(new va.RawWebsocketMessage(va.MessageType.Text,n,t.id))}else if(t.messageType===va.MessageType.Binary){const n=this.makeHeaders(t),i=t.binaryBody,o=this.stringToArrayBuffer(n),a=new Int8Array(o),s=a.byteLength,l=new Int8Array(2+s+(i?i.byteLength:0));if(l[0]=s>>8&255,l[1]=s&255,l.set(a,2),i){const d=new Int8Array(i);l.set(d,2+s)}const c=l.buffer;r.resolve(new va.RawWebsocketMessage(va.MessageType.Binary,c,t.id))}}catch(n){r.reject(`Error formatting the message. ${n}`)}return r.promise}makeHeaders(t){let r="";if(t.headers)for(const n in t.headers)n&&(r+=`${n}: ${t.headers[n]}${BB}`);return r}parseHeaders(t){const r={};if(t){const n=t.match(/[^\r\n]+/g);if(r){for(const i of n)if(i){const o=i.indexOf(":"),a=o>0?i.substr(0,o).trim().toLowerCase():i,s=o>0&&i.length>o+1?i.substr(o+1).trim():"";r[a]=s}}}return r}stringToArrayBuffer(t){const r=new ArrayBuffer(t.length),n=new DataView(r);for(let i=0;i<t.length;i++)n.setUint8(i,t.charCodeAt(i));return r}}BE.WebsocketMessageFormatter=Y5e;var Jv={},HB;function X5e(){if(HB)return Jv;HB=1,Object.defineProperty(Jv,"__esModule",{value:!0}),Jv.SpeechConnectionFactory=void 0;const e=hi(),t=Lt(),r=Ct(),n=vs(),i=Lt(),o=pi,a=hs,s=ia;let l=class extends n.ConnectionFactoryBase{constructor(){super(...arguments),this.interactiveRelativeUri="/speech/recognition/interactive/cognitiveservices/v1",this.conversationRelativeUri="/speech/recognition/conversation/cognitiveservices/v1",this.dictationRelativeUri="/speech/recognition/dictation/cognitiveservices/v1",this.universalUri="/stt/speech/universal/v"}async create(d,u,f){let h=d.parameters.getProperty(r.PropertyId.SpeechServiceConnection_Endpoint,void 0);const v=d.parameters.getProperty(r.PropertyId.SpeechServiceConnection_Region,void 0),y=n.ConnectionFactoryBase.getHostSuffix(v),g=d.parameters.getProperty(r.PropertyId.SpeechServiceConnection_Host,"wss://"+v+".stt.speech"+y),m={},S=d.parameters.getProperty(r.PropertyId.SpeechServiceConnection_EndpointId,void 0),C=d.parameters.getProperty(r.PropertyId.SpeechServiceConnection_RecoLanguage,void 0);if(S?(!h||h.search(a.QueryParameterNames.CustomSpeechDeploymentId)===-1)&&(m[a.QueryParameterNames.CustomSpeechDeploymentId]=S):C&&(!h||h.search(a.QueryParameterNames.Language)===-1)&&(m[a.QueryParameterNames.Language]=C),(!h||h.search(a.QueryParameterNames.Format)===-1)&&(m[a.QueryParameterNames.Format]=d.parameters.getProperty(t.OutputFormatPropertyName,r.OutputFormat[r.OutputFormat.Simple]).toLowerCase()),d.autoDetectSourceLanguages!==void 0&&(m[a.QueryParameterNames.EnableLanguageId]="true"),this.setCommonUrlParams(d,m,h),h){const R=new URL(h),P=R.pathname;(P===""||P==="/")&&(R.pathname=this.universalUri+d.recognitionEndpointVersion,h=await n.ConnectionFactoryBase.getRedirectUrlFromEndpoint(R.toString()))}if(!h)switch(d.recognitionMode){case s.RecognitionMode.Conversation:d.parameters.getProperty(t.ForceDictationPropertyName,"false")==="true"?h=g+this.dictationRelativeUri:d.recognitionEndpointVersion!==void 0&&parseInt(d.recognitionEndpointVersion,10)>1?h=`${g}${this.universalUri}${d.recognitionEndpointVersion}`:h=g+this.conversationRelativeUri;break;case s.RecognitionMode.Dictation:h=g+this.dictationRelativeUri;break;default:d.recognitionEndpointVersion!==void 0&&parseInt(d.recognitionEndpointVersion,10)>1?h=`${g}${this.universalUri}${d.recognitionEndpointVersion}`:h=g+this.interactiveRelativeUri;break}const b={};u.token!==void 0&&u.token!==""&&(b[u.headerName]=u.token),b[o.HeaderNames.ConnectionId]=f,b.connectionId=f;const w=d.parameters.getProperty("SPEECH-EnableWebsocketCompression","false")==="true",E=new e.WebsocketConnection(h,m,b,new i.WebsocketMessageFormatter,e.ProxyInfo.fromRecognizerConfig(d),w,f),_=E.uri;return d.parameters.setProperty(r.PropertyId.SpeechServiceConnection_Url,_),E}};return Jv.SpeechConnectionFactory=l,Jv}var Zv={},VB;function Q5e(){if(VB)return Zv;VB=1,Object.defineProperty(Zv,"__esModule",{value:!0}),Zv.ConversationTranscriberConnectionFactory=void 0;const e=hi(),t=Ct(),r=Lt(),n=vs(),i=Lt(),o=pi,a=hs;let s=class extends n.ConnectionFactoryBase{constructor(){super(...arguments),this.universalUri="/stt/speech/universal/v2"}async create(c,d,u){let f=c.parameters.getProperty(t.PropertyId.SpeechServiceConnection_Endpoint,void 0);const h=c.parameters.getProperty(t.PropertyId.SpeechServiceConnection_Region,void 0),v=n.ConnectionFactoryBase.getHostSuffix(h),y=c.parameters.getProperty(t.PropertyId.SpeechServiceConnection_Host,"wss://"+h+".stt.speech"+v),g={},m=c.parameters.getProperty(t.PropertyId.SpeechServiceConnection_EndpointId,void 0),S=c.parameters.getProperty(t.PropertyId.SpeechServiceConnection_RecoLanguage,void 0);if(m?(!f||f.search(a.QueryParameterNames.CustomSpeechDeploymentId)===-1)&&(g[a.QueryParameterNames.CustomSpeechDeploymentId]=m):S&&(!f||f.search(a.QueryParameterNames.Language)===-1)&&(g[a.QueryParameterNames.Language]=S),c.autoDetectSourceLanguages!==void 0&&(g[a.QueryParameterNames.EnableLanguageId]="true"),this.setV2UrlParams(c,g,f),f){const _=new URL(f),R=_.pathname;(R===""||R==="/")&&(_.pathname=this.universalUri,f=await n.ConnectionFactoryBase.getRedirectUrlFromEndpoint(_.toString()))}f||(f=`${y}${this.universalUri}`);const C={};d.token!==void 0&&d.token!==""&&(C[d.headerName]=d.token),C[o.HeaderNames.ConnectionId]=u;const b=c.parameters.getProperty("SPEECH-EnableWebsocketCompression","false")==="true",w=new e.WebsocketConnection(f,g,C,new i.WebsocketMessageFormatter,e.ProxyInfo.fromRecognizerConfig(c),b,u),E=w.uri;return c.parameters.setProperty(t.PropertyId.SpeechServiceConnection_Url,E),w}setV2UrlParams(c,d,u){new Map([[t.PropertyId.Speech_SegmentationSilenceTimeoutMs,a.QueryParameterNames.SegmentationSilenceTimeoutMs],[t.PropertyId.SpeechServiceConnection_EnableAudioLogging,a.QueryParameterNames.EnableAudioLogging],[t.PropertyId.SpeechServiceConnection_EndSilenceTimeoutMs,a.QueryParameterNames.EndSilenceTimeoutMs],[t.PropertyId.SpeechServiceConnection_InitialSilenceTimeoutMs,a.QueryParameterNames.InitialSilenceTimeoutMs],[t.PropertyId.SpeechServiceResponse_PostProcessingOption,a.QueryParameterNames.Postprocessing],[t.PropertyId.SpeechServiceResponse_ProfanityOption,a.QueryParameterNames.Profanity],[t.PropertyId.SpeechServiceResponse_StablePartialResultThreshold,a.QueryParameterNames.StableIntermediateThreshold]]).forEach((v,y)=>{this.setUrlParameter(y,v,c,d,u)});const h=JSON.parse(c.parameters.getProperty(r.ServicePropertiesPropertyName,"{}"));Object.keys(h).forEach(v=>{d[v]=h[v]})}};return Zv.ConversationTranscriberConnectionFactory=s,Zv}var eg={},UB;function J5e(){if(UB)return eg;UB=1,Object.defineProperty(eg,"__esModule",{value:!0}),eg.TranscriberConnectionFactory=void 0;const e=hi(),t=Ct(),r=vs(),n=Lt(),i=pi,o=hs;let a=class extends r.ConnectionFactoryBase{constructor(){super(...arguments),this.multiaudioRelativeUri="/speech/recognition/multiaudio"}create(l,c,d){let u=l.parameters.getProperty(t.PropertyId.SpeechServiceConnection_Endpoint,void 0);const f=l.parameters.getProperty(t.PropertyId.SpeechServiceConnection_Region,"centralus"),h=r.ConnectionFactoryBase.getHostSuffix(f),v="wss://transcribe."+f+".cts.speech"+h+this.multiaudioRelativeUri,y=l.parameters.getProperty(t.PropertyId.SpeechServiceConnection_Host,v),g={};this.setQueryParams(g,l,u),u||(u=y);const m={};c.token!==void 0&&c.token!==""&&(m[c.headerName]=c.token),m[i.HeaderNames.ConnectionId]=d,l.parameters.setProperty(t.PropertyId.SpeechServiceConnection_Url,u);const S=l.parameters.getProperty("SPEECH-EnableWebsocketCompression","false")==="true";return Promise.resolve(new e.WebsocketConnection(u,g,m,new n.WebsocketMessageFormatter,e.ProxyInfo.fromRecognizerConfig(l),S,d))}setQueryParams(l,c,d){const u=c.parameters.getProperty(t.PropertyId.SpeechServiceConnection_EndpointId,void 0),f=c.parameters.getProperty(t.PropertyId.SpeechServiceConnection_RecoLanguage,void 0);u&&!(o.QueryParameterNames.CustomSpeechDeploymentId in l)&&(l[o.QueryParameterNames.CustomSpeechDeploymentId]=u),f&&!(o.QueryParameterNames.Language in l)&&(l[o.QueryParameterNames.Language]=f);const h=c.parameters.getProperty(t.PropertyId.SpeechServiceResponse_RequestWordLevelTimestamps,"false").toLowerCase()==="true",v=c.parameters.getProperty(n.OutputFormatPropertyName,t.OutputFormat[t.OutputFormat.Simple])!==t.OutputFormat[t.OutputFormat.Simple];(h||v)&&(l[o.QueryParameterNames.Format]=t.OutputFormat[t.OutputFormat.Detailed].toLowerCase()),this.setCommonUrlParams(c,l,d)}};return eg.TranscriberConnectionFactory=a,eg}var tg={},WB;function Z5e(){if(WB)return tg;WB=1,Object.defineProperty(tg,"__esModule",{value:!0}),tg.TranslationConnectionFactory=void 0;const e=hi(),t=I0,r=Ct(),n=vs(),i=Lt(),o=pi,a=hs,s=ia;let l=class extends n.ConnectionFactoryBase{constructor(){super(...arguments),this.universalUri="/stt/speech/universal/v2",this.translationV1Uri="/speech/translation/cognitiveservices/v1"}async create(d,u,f){let h=this.getEndpointUrl(d);const v={};if(this.setQueryParams(v,d,h),h){const S=new URL(h),C=S.pathname;(C===""||C==="/")&&(S.pathname=this.universalUri,h=await n.ConnectionFactoryBase.getRedirectUrlFromEndpoint(S.toString()))}const y={};u.token!==void 0&&u.token!==""&&(y[u.headerName]=u.token),y[o.HeaderNames.ConnectionId]=f,d.parameters.setProperty(r.PropertyId.SpeechServiceConnection_Url,h);const g=d.parameters.getProperty("SPEECH-EnableWebsocketCompression","false")==="true";return new e.WebsocketConnection(h,v,y,new i.WebsocketMessageFormatter,e.ProxyInfo.fromRecognizerConfig(d),g,f)}getEndpointUrl(d,u){const f=d.parameters.getProperty(r.PropertyId.SpeechServiceConnection_Region),h=n.ConnectionFactoryBase.getHostSuffix(f);let v=d.parameters.getProperty(r.PropertyId.SpeechServiceConnection_Endpoint,void 0);return v?u===!0?v:t.StringUtils.formatString(v,{region:f}):(d.parameters.getProperty("SPEECH-ForceV1Endpoint","false")==="true"?v=d.parameters.getProperty(r.PropertyId.SpeechServiceConnection_Host,"wss://{region}.s2s.speech"+h)+this.translationV1Uri:v=d.parameters.getProperty(r.PropertyId.SpeechServiceConnection_Host,"wss://{region}.stt.speech"+h)+this.universalUri,u===!0?v:t.StringUtils.formatString(v,{region:f}))}setQueryParams(d,u,f){d.from=u.parameters.getProperty(r.PropertyId.SpeechServiceConnection_RecoLanguage),d.to=u.parameters.getProperty(r.PropertyId.SpeechServiceConnection_TranslationToLanguages),d.scenario=u.recognitionMode===s.RecognitionMode.Interactive?"interactive":u.recognitionMode===s.RecognitionMode.Conversation?"conversation":"",this.setCommonUrlParams(u,d,f),this.setUrlParameter(r.PropertyId.SpeechServiceResponse_TranslationRequestStablePartialResult,a.QueryParameterNames.StableTranslation,u,d,f);const h=u.parameters.getProperty(r.PropertyId.SpeechServiceConnection_TranslationVoice,void 0);h!==void 0&&(d.voice=h,d.features="requireVoice")}};return tg.TranslationConnectionFactory=l,tg}var rg={},qB;function eje(){if(qB)return rg;qB=1,Object.defineProperty(rg,"__esModule",{value:!0}),rg.EnumTranslation=void 0;const e=Ct(),t=Lt();let r=class{static implTranslateRecognitionResult(i,o=!1){let a=e.ResultReason.Canceled;switch(i){case t.RecognitionStatus.Success:a=e.ResultReason.RecognizedSpeech;break;case t.RecognitionStatus.EndOfDictation:a=o?e.ResultReason.RecognizedSpeech:e.ResultReason.NoMatch;break;case t.RecognitionStatus.NoMatch:case t.RecognitionStatus.InitialSilenceTimeout:case t.RecognitionStatus.BabbleTimeout:a=e.ResultReason.NoMatch;break;case t.RecognitionStatus.Error:case t.RecognitionStatus.BadRequest:case t.RecognitionStatus.Forbidden:default:a=e.ResultReason.Canceled;break}return a}static implTranslateCancelResult(i){let o=e.CancellationReason.EndOfStream;switch(i){case t.RecognitionStatus.Success:case t.RecognitionStatus.EndOfDictation:case t.RecognitionStatus.NoMatch:o=e.CancellationReason.EndOfStream;break;case t.RecognitionStatus.InitialSilenceTimeout:case t.RecognitionStatus.BabbleTimeout:case t.RecognitionStatus.Error:case t.RecognitionStatus.BadRequest:case t.RecognitionStatus.Forbidden:default:o=e.CancellationReason.Error;break}return o}static implTranslateCancelErrorCode(i){let o=e.CancellationErrorCode.NoError;switch(i){case t.RecognitionStatus.Error:o=e.CancellationErrorCode.ServiceError;break;case t.RecognitionStatus.TooManyRequests:o=e.CancellationErrorCode.TooManyRequests;break;case t.RecognitionStatus.BadRequest:o=e.CancellationErrorCode.BadRequestParameters;break;case t.RecognitionStatus.Forbidden:o=e.CancellationErrorCode.Forbidden;break;default:o=e.CancellationErrorCode.NoError;break}return o}static implTranslateErrorDetails(i){let o="The speech service encountered an internal error and could not continue.";switch(i){case e.CancellationErrorCode.Forbidden:o="The recognizer is using a free subscription that ran out of quota.";break;case e.CancellationErrorCode.BadRequestParameters:o="Invalid parameter or unsupported audio format in the request.";break;case e.CancellationErrorCode.TooManyRequests:o="The number of parallel requests exceeded the number of allowed concurrent transcriptions.";break}return o}};return rg.EnumTranslation=r,rg}var _ne={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.RecognitionStatus=e.SynthesisStatus=void 0,function(t){t[t.Success=0]="Success",t[t.SynthesisEnd=1]="SynthesisEnd",t[t.Error=2]="Error"}(e.SynthesisStatus||(e.SynthesisStatus={})),function(t){t[t.Success=0]="Success",t[t.NoMatch=1]="NoMatch",t[t.InitialSilenceTimeout=2]="InitialSilenceTimeout",t[t.BabbleTimeout=3]="BabbleTimeout",t[t.Error=4]="Error",t[t.EndOfDictation=5]="EndOfDictation",t[t.TooManyRequests=6]="TooManyRequests",t[t.BadRequest=7]="BadRequest",t[t.Forbidden=8]="Forbidden"}(e.RecognitionStatus||(e.RecognitionStatus={}))})(_ne);var ng={},GB;function tje(){if(GB)return ng;GB=1,Object.defineProperty(ng,"__esModule",{value:!0}),ng.TranslationSynthesisEnd=void 0;const e=Lt();let t=class Ene{constructor(n){this.privSynthesisEnd=JSON.parse(n),this.privSynthesisEnd.SynthesisStatus&&(this.privSynthesisEnd.SynthesisStatus=e.SynthesisStatus[this.privSynthesisEnd.SynthesisStatus]),this.privSynthesisEnd.Status&&(this.privSynthesisEnd.SynthesisStatus=e.SynthesisStatus[this.privSynthesisEnd.Status])}static fromJSON(n){return new Ene(n)}get SynthesisStatus(){return this.privSynthesisEnd.SynthesisStatus}get FailureReason(){return this.privSynthesisEnd.FailureReason}};return ng.TranslationSynthesisEnd=t,ng}var HE={};Object.defineProperty(HE,"__esModule",{value:!0});HE.TranslationHypothesis=void 0;const rje=Zt,KB=uE;class Nb{constructor(t,r){this.privTranslationHypothesis=t,this.privTranslationHypothesis.Offset+=r,this.privTranslationHypothesis.Translation.TranslationStatus=this.mapTranslationStatus(this.privTranslationHypothesis.Translation.TranslationStatus)}static fromJSON(t,r){return new Nb(JSON.parse(t),r)}static fromTranslationResponse(t,r){rje.Contracts.throwIfNullOrUndefined(t,"translationHypothesis");const n=t.SpeechHypothesis;return t.SpeechHypothesis=void 0,n.Translation=t,new Nb(n,r)}get Duration(){return this.privTranslationHypothesis.Duration}get Offset(){return this.privTranslationHypothesis.Offset}get Text(){return this.privTranslationHypothesis.Text}get Translation(){return this.privTranslationHypothesis.Translation}get Language(){var t;return(t=this.privTranslationHypothesis.PrimaryLanguage)==null?void 0:t.Language}asJson(){const t={...this.privTranslationHypothesis};return t.Translation!==void 0?JSON.stringify({...t,TranslationStatus:KB.TranslationStatus[t.Translation.TranslationStatus]}):JSON.stringify(t)}mapTranslationStatus(t){if(typeof t=="string")return KB.TranslationStatus[t];if(typeof t=="number")return t}}HE.TranslationHypothesis=Nb;var ig={},YB;function nje(){if(YB)return ig;YB=1,Object.defineProperty(ig,"__esModule",{value:!0}),ig.TranslationPhrase=void 0;const e=Zt,t=Lt(),r=uE;let n=class k${constructor(o,a){this.privTranslationPhrase=o,this.privTranslationPhrase.Offset+=a,this.privTranslationPhrase.RecognitionStatus=this.mapRecognitionStatus(this.privTranslationPhrase.RecognitionStatus),this.privTranslationPhrase.Translation!==void 0&&(this.privTranslationPhrase.Translation.TranslationStatus=this.mapTranslationStatus(this.privTranslationPhrase.Translation.TranslationStatus))}static fromJSON(o,a){return new k$(JSON.parse(o),a)}static fromTranslationResponse(o,a){e.Contracts.throwIfNullOrUndefined(o,"translationResponse");const s=o.SpeechPhrase;return o.SpeechPhrase=void 0,s.Translation=o,s.Text=s.DisplayText,new k$(s,a)}get RecognitionStatus(){return this.privTranslationPhrase.RecognitionStatus}get Offset(){return this.privTranslationPhrase.Offset}get Duration(){return this.privTranslationPhrase.Duration}get Text(){return this.privTranslationPhrase.Text}get Language(){var o;return(o=this.privTranslationPhrase.PrimaryLanguage)==null?void 0:o.Language}get Confidence(){var o;return(o=this.privTranslationPhrase.PrimaryLanguage)==null?void 0:o.Confidence}get Translation(){return this.privTranslationPhrase.Translation}asJson(){const o={...this.privTranslationPhrase},a={...o,RecognitionStatus:t.RecognitionStatus[o.RecognitionStatus]};return o.Translation&&(a.Translation={...o.Translation,TranslationStatus:r.TranslationStatus[o.Translation.TranslationStatus]}),JSON.stringify(a)}mapRecognitionStatus(o){if(typeof o=="string")return t.RecognitionStatus[o];if(typeof o=="number")return o}mapTranslationStatus(o){if(typeof o=="string")return r.TranslationStatus[o];if(typeof o=="number")return o}};return ig.TranslationPhrase=n,ig}var og={},XB;function ije(){if(XB)return og;XB=1,Object.defineProperty(og,"__esModule",{value:!0}),og.TranslationServiceRecognizer=void 0;const e=Wt(),t=Ct(),r=Lt();let n=class extends r.ConversationServiceRecognizer{constructor(o,a,s,l,c){super(o,a,s,l,c),this.privTranslationRecognizer=c,this.connectionEvents.attach(d=>{d.name==="ConnectionEstablishedEvent"&&this.privTranslationRecognizer.onConnection()})}async processTypeSpecificMessages(o){const a=new t.PropertyCollection;let s=await this.processSpeechMessages(o);if(s)return!0;const l=async d=>{if(a.setProperty(t.PropertyId.SpeechServiceResponse_JsonResult,d.asJson()),this.privRequestSession.onPhraseRecognized(d.Offset+d.Duration),d.RecognitionStatus===r.RecognitionStatus.Success){const u=this.fireEventForResult(d,a);if(this.privTranslationRecognizer.recognized)try{this.privTranslationRecognizer.recognized(this.privTranslationRecognizer,u)}catch{}if(this.privSuccessCallback){try{this.privSuccessCallback(u.result)}catch(f){this.privErrorCallback&&this.privErrorCallback(f)}this.privSuccessCallback=void 0,this.privErrorCallback=void 0}}else{const u=r.EnumTranslation.implTranslateRecognitionResult(d.RecognitionStatus),f=new t.TranslationRecognitionResult(void 0,this.privRequestSession.requestId,u,d.Text,d.Duration,d.Offset,d.Language,d.Confidence,void 0,d.asJson(),a);if(u===t.ResultReason.Canceled){const h=r.EnumTranslation.implTranslateCancelResult(d.RecognitionStatus),v=r.EnumTranslation.implTranslateCancelErrorCode(d.RecognitionStatus);await this.cancelRecognitionLocal(h,v,r.EnumTranslation.implTranslateErrorDetails(v))}else if(d.RecognitionStatus!==r.RecognitionStatus.EndOfDictation){const h=new t.TranslationRecognitionEventArgs(f,f.offset,this.privRequestSession.sessionId);if(this.privTranslationRecognizer.recognized)try{this.privTranslationRecognizer.recognized(this.privTranslationRecognizer,h)}catch{}if(this.privSuccessCallback){try{this.privSuccessCallback(f)}catch(v){this.privErrorCallback&&this.privErrorCallback(v)}this.privSuccessCallback=void 0,this.privErrorCallback=void 0}}s=!0}},c=d=>{a.setProperty(t.PropertyId.SpeechServiceResponse_JsonResult,d.asJson());const u=this.fireEventForResult(d,a);if(this.privRequestSession.onHypothesis(u.offset),this.privTranslationRecognizer.recognizing)try{this.privTranslationRecognizer.recognizing(this.privTranslationRecognizer,u)}catch{}s=!0};switch(o.messageType===e.MessageType.Text&&a.setProperty(t.PropertyId.SpeechServiceResponse_JsonResult,o.textBody),o.path.toLowerCase()){case"translation.hypothesis":c(r.TranslationHypothesis.fromJSON(o.textBody,this.privRequestSession.currentTurnAudioOffset));break;case"translation.response":const d=JSON.parse(o.textBody);if(d.SpeechPhrase)await l(r.TranslationPhrase.fromTranslationResponse(d,this.privRequestSession.currentTurnAudioOffset));else{const f=JSON.parse(o.textBody);f.SpeechHypothesis&&c(r.TranslationHypothesis.fromTranslationResponse(f,this.privRequestSession.currentTurnAudioOffset))}break;case"translation.phrase":await l(r.TranslationPhrase.fromJSON(o.textBody,this.privRequestSession.currentTurnAudioOffset));break;case"translation.synthesis":case"audio":this.sendSynthesisAudio(o.binaryBody,this.privRequestSession.sessionId),s=!0;break;case"audio.end":case"translation.synthesis.end":const u=r.TranslationSynthesisEnd.fromJSON(o.textBody);switch(u.SynthesisStatus){case r.SynthesisStatus.Error:if(this.privTranslationRecognizer.synthesizing){const f=new t.TranslationSynthesisResult(t.ResultReason.Canceled,void 0),h=new t.TranslationSynthesisEventArgs(f,this.privRequestSession.sessionId);try{this.privTranslationRecognizer.synthesizing(this.privTranslationRecognizer,h)}catch{}}if(this.privTranslationRecognizer.canceled){const f=new t.TranslationRecognitionCanceledEventArgs(this.privRequestSession.sessionId,t.CancellationReason.Error,u.FailureReason,t.CancellationErrorCode.ServiceError,null);try{this.privTranslationRecognizer.canceled(this.privTranslationRecognizer,f)}catch{}}break;case r.SynthesisStatus.Success:this.sendSynthesisAudio(void 0,this.privRequestSession.sessionId);break}s=!0;break}return s}cancelRecognition(o,a,s,l,c){const d=new t.PropertyCollection;if(d.setProperty(r.CancellationErrorCodePropertyName,t.CancellationErrorCode[l]),this.privTranslationRecognizer.canceled){const u=new t.TranslationRecognitionCanceledEventArgs(o,s,c,l,void 0);try{this.privTranslationRecognizer.canceled(this.privTranslationRecognizer,u)}catch{}}if(this.privSuccessCallback){const u=new t.TranslationRecognitionResult(void 0,a,t.ResultReason.Canceled,void 0,void 0,void 0,void 0,void 0,c,void 0,d);try{this.privSuccessCallback(u),this.privSuccessCallback=void 0}catch{}}}handleRecognizingCallback(o,a,s){try{const l=new t.TranslationRecognitionEventArgs(t.TranslationRecognitionResult.fromSpeechRecognitionResult(o),a,s);this.privTranslationRecognizer.recognizing(this.privTranslationRecognizer,l)}catch{}}handleRecognizedCallback(o,a,s){try{const l=new t.TranslationRecognitionEventArgs(t.TranslationRecognitionResult.fromSpeechRecognitionResult(o),a,s);this.privTranslationRecognizer.recognized(this.privTranslationRecognizer,l)}catch{}}fireEventForResult(o,a){let s;if(o.Translation.Translations!==void 0){s=new t.Translations;for(const h of o.Translation.Translations)s.set(h.Language,h.Text||h.DisplayText)}let l,c;o instanceof r.TranslationPhrase?(o.Translation&&o.Translation.TranslationStatus===e.TranslationStatus.Success?l=t.ResultReason.TranslatedSpeech:l=t.ResultReason.RecognizedSpeech,c=o.Confidence):l=t.ResultReason.TranslatingSpeech;const d=o.Language,u=new t.TranslationRecognitionResult(s,this.privRequestSession.requestId,l,o.Text,o.Duration,o.Offset,d,c,o.Translation.FailureReason,o.asJson(),a);return new t.TranslationRecognitionEventArgs(u,o.Offset,this.privRequestSession.sessionId)}sendSynthesisAudio(o,a){const s=o===void 0?t.ResultReason.SynthesizingAudioCompleted:t.ResultReason.SynthesizingAudio,l=new t.TranslationSynthesisResult(s,o),c=new t.TranslationSynthesisEventArgs(l,a);if(this.privTranslationRecognizer.synthesizing)try{this.privTranslationRecognizer.synthesizing(this.privTranslationRecognizer,c)}catch{}}};return og.TranslationServiceRecognizer=n,og}var VE={};Object.defineProperty(VE,"__esModule",{value:!0});VE.SpeechDetected=void 0;class J3{constructor(t,r){this.privSpeechStartDetected=JSON.parse(t),this.privSpeechStartDetected.Offset+=r}static fromJSON(t,r){return new J3(t,r)}get Offset(){return this.privSpeechStartDetected.Offset}}VE.SpeechDetected=J3;var UE={};Object.defineProperty(UE,"__esModule",{value:!0});UE.SpeechHypothesis=void 0;class Z3{constructor(t,r){this.privSpeechHypothesis=JSON.parse(t),this.updateOffset(r)}static fromJSON(t,r){return new Z3(t,r)}updateOffset(t){this.privSpeechHypothesis.Offset+=t}asJson(){return JSON.stringify(this.privSpeechHypothesis)}get Text(){return this.privSpeechHypothesis.Text}get Offset(){return this.privSpeechHypothesis.Offset}get Duration(){return this.privSpeechHypothesis.Duration}get Language(){return this.privSpeechHypothesis.PrimaryLanguage===void 0?void 0:this.privSpeechHypothesis.PrimaryLanguage.Language}get LanguageDetectionConfidence(){return this.privSpeechHypothesis.PrimaryLanguage===void 0?void 0:this.privSpeechHypothesis.PrimaryLanguage.Confidence}get SpeakerId(){return this.privSpeechHypothesis.SpeakerId}}UE.SpeechHypothesis=Z3;var WE={};Object.defineProperty(WE,"__esModule",{value:!0});WE.SpeechKeyword=void 0;class eD{constructor(t,r){this.privSpeechKeyword=JSON.parse(t),this.privSpeechKeyword.Offset+=r}static fromJSON(t,r){return new eD(t,r)}get Status(){return this.privSpeechKeyword.Status}get Text(){return this.privSpeechKeyword.Text}get Offset(){return this.privSpeechKeyword.Offset}get Duration(){return this.privSpeechKeyword.Duration}asJson(){return JSON.stringify(this.privSpeechKeyword)}}WE.SpeechKeyword=eD;var ag={},QB;function oje(){if(QB)return ag;QB=1,Object.defineProperty(ag,"__esModule",{value:!0}),ag.SpeechServiceRecognizer=void 0;const e=Ct(),t=Lt();let r=class extends t.ServiceRecognizerBase{constructor(i,o,a,s,l){super(i,o,a,s,l),this.privSpeechRecognizer=l}async processTypeSpecificMessages(i){let o;const a=new e.PropertyCollection;let s=!1;switch(i.path.toLowerCase()){case"speech.hypothesis":case"speech.fragment":const l=t.SpeechHypothesis.fromJSON(i.textBody,this.privRequestSession.currentTurnAudioOffset);a.setProperty(e.PropertyId.SpeechServiceResponse_JsonResult,l.asJson()),o=new e.SpeechRecognitionResult(this.privRequestSession.requestId,e.ResultReason.RecognizingSpeech,l.Text,l.Duration,l.Offset,l.Language,l.LanguageDetectionConfidence,void 0,void 0,l.asJson(),a),this.privRequestSession.onHypothesis(l.Offset);const c=new e.SpeechRecognitionEventArgs(o,l.Offset,this.privRequestSession.sessionId);if(this.privSpeechRecognizer.recognizing)try{this.privSpeechRecognizer.recognizing(this.privSpeechRecognizer,c)}catch{}s=!0;break;case"speech.phrase":const d=t.SimpleSpeechPhrase.fromJSON(i.textBody,this.privRequestSession.currentTurnAudioOffset);a.setProperty(e.PropertyId.SpeechServiceResponse_JsonResult,d.asJson());const u=t.EnumTranslation.implTranslateRecognitionResult(d.RecognitionStatus,this.privExpectContentAssessmentResponse);if(this.privRequestSession.onPhraseRecognized(d.Offset+d.Duration),e.ResultReason.Canceled===u){const f=t.EnumTranslation.implTranslateCancelResult(d.RecognitionStatus),h=t.EnumTranslation.implTranslateCancelErrorCode(d.RecognitionStatus);await this.cancelRecognitionLocal(f,h,t.EnumTranslation.implTranslateErrorDetails(h))}else{if(d.RecognitionStatus===t.RecognitionStatus.EndOfDictation)break;if(this.privRecognizerConfig.parameters.getProperty(t.OutputFormatPropertyName)===e.OutputFormat[e.OutputFormat.Simple])o=new e.SpeechRecognitionResult(this.privRequestSession.requestId,u,d.DisplayText,d.Duration,d.Offset,d.Language,d.LanguageDetectionConfidence,void 0,void 0,d.asJson(),a);else{const h=t.DetailedSpeechPhrase.fromJSON(i.textBody,this.privRequestSession.currentTurnAudioOffset);a.setProperty(e.PropertyId.SpeechServiceResponse_JsonResult,h.asJson()),o=new e.SpeechRecognitionResult(this.privRequestSession.requestId,u,h.RecognitionStatus===t.RecognitionStatus.Success?h.NBest[0].Display:"",h.Duration,h.Offset,h.Language,h.LanguageDetectionConfidence,void 0,void 0,h.asJson(),a)}const f=new e.SpeechRecognitionEventArgs(o,o.offset,this.privRequestSession.sessionId);if(this.privSpeechRecognizer.recognized)try{this.privSpeechRecognizer.recognized(this.privSpeechRecognizer,f)}catch{}if(this.privSuccessCallback){try{this.privSuccessCallback(o)}catch(h){this.privErrorCallback&&this.privErrorCallback(h)}this.privSuccessCallback=void 0,this.privErrorCallback=void 0}}s=!0;break}return s}cancelRecognition(i,o,a,s,l){const c=new e.PropertyCollection;if(c.setProperty(t.CancellationErrorCodePropertyName,e.CancellationErrorCode[s]),this.privSpeechRecognizer.canceled){const d=new e.SpeechRecognitionCanceledEventArgs(a,l,s,void 0,i);try{this.privSpeechRecognizer.canceled(this.privSpeechRecognizer,d)}catch{}}if(this.privSuccessCallback){const d=new e.SpeechRecognitionResult(o,e.ResultReason.Canceled,void 0,void 0,void 0,void 0,void 0,void 0,l,void 0,c);try{this.privSuccessCallback(d),this.privSuccessCallback=void 0}catch{}}}};return ag.SpeechServiceRecognizer=r,ag}var sg={},Rne={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.IdentityProvider=e.SpeakerDiarizationMode=void 0,function(t){t.None="None",t.Identity="Identity",t.Anonymous="Anonymous"}(e.SpeakerDiarizationMode||(e.SpeakerDiarizationMode={})),function(t){t.CallCenter="CallCenter"}(e.IdentityProvider||(e.IdentityProvider={}))})(Rne);var JB;function aje(){if(JB)return sg;JB=1,Object.defineProperty(sg,"__esModule",{value:!0}),sg.ConversationTranscriptionServiceRecognizer=void 0;const e=Ct(),t=Lt(),r=Rne,n=ia;let i=class extends t.ServiceRecognizerBase{constructor(a,s,l,c,d){super(a,s,l,c,d),this.privConversationTranscriber=d,this.setSpeakerDiarizationJson()}setSpeakerDiarizationJson(){if(this.privEnableSpeakerId){const a=this.privSpeechContext.getContext().phraseDetection||{};a.mode=n.RecognitionMode.Conversation;const s={};s.mode=r.SpeakerDiarizationMode.Anonymous,s.audioSessionId=this.privDiarizationSessionId,s.audioOffsetMs=0,s.diarizeIntermediates=this.privRecognizerConfig.parameters.getProperty(e.PropertyId.SpeechServiceResponse_DiarizeIntermediateResults,"false")==="true",a.speakerDiarization=s,this.privSpeechContext.getContext().phraseDetection=a}}async processTypeSpecificMessages(a){let s;const l=new e.PropertyCollection;l.setProperty(e.PropertyId.SpeechServiceResponse_JsonResult,a.textBody);let c=!1;switch(a.path.toLowerCase()){case"speech.hypothesis":case"speech.fragment":const d=t.SpeechHypothesis.fromJSON(a.textBody,this.privRequestSession.currentTurnAudioOffset);s=new e.ConversationTranscriptionResult(this.privRequestSession.requestId,e.ResultReason.RecognizingSpeech,d.Text,d.Duration,d.Offset,d.Language,d.LanguageDetectionConfidence,d.SpeakerId,void 0,d.asJson(),l),this.privRequestSession.onHypothesis(d.Offset);const u=new e.ConversationTranscriptionEventArgs(s,d.Duration,this.privRequestSession.sessionId);if(this.privConversationTranscriber.transcribing)try{this.privConversationTranscriber.transcribing(this.privConversationTranscriber,u)}catch{}c=!0;break;case"speech.phrase":const f=t.SimpleSpeechPhrase.fromJSON(a.textBody,this.privRequestSession.currentTurnAudioOffset),h=t.EnumTranslation.implTranslateRecognitionResult(f.RecognitionStatus);if(this.privRequestSession.onPhraseRecognized(f.Offset+f.Duration),e.ResultReason.Canceled===h){const v=t.EnumTranslation.implTranslateCancelResult(f.RecognitionStatus),y=t.EnumTranslation.implTranslateCancelErrorCode(f.RecognitionStatus);await this.cancelRecognitionLocal(v,y,t.EnumTranslation.implTranslateErrorDetails(y))}else if(!(this.privRequestSession.isSpeechEnded&&h===e.ResultReason.NoMatch&&f.RecognitionStatus!==t.RecognitionStatus.InitialSilenceTimeout)){if(this.privRecognizerConfig.parameters.getProperty(t.OutputFormatPropertyName)===e.OutputFormat[e.OutputFormat.Simple])s=new e.ConversationTranscriptionResult(this.privRequestSession.requestId,h,f.DisplayText,f.Duration,f.Offset,f.Language,f.LanguageDetectionConfidence,f.SpeakerId,void 0,f.asJson(),l);else{const y=t.DetailedSpeechPhrase.fromJSON(a.textBody,this.privRequestSession.currentTurnAudioOffset);s=new e.ConversationTranscriptionResult(this.privRequestSession.requestId,h,y.RecognitionStatus===t.RecognitionStatus.Success?y.NBest[0].Display:void 0,y.Duration,y.Offset,y.Language,y.LanguageDetectionConfidence,f.SpeakerId,void 0,y.asJson(),l)}const v=new e.ConversationTranscriptionEventArgs(s,s.offset,this.privRequestSession.sessionId);if(this.privConversationTranscriber.transcribed)try{this.privConversationTranscriber.transcribed(this.privConversationTranscriber,v)}catch{}}c=!0;break}return c}cancelRecognition(a,s,l,c,d){if(new e.PropertyCollection().setProperty(t.CancellationErrorCodePropertyName,e.CancellationErrorCode[c]),this.privConversationTranscriber.canceled){const f=new e.ConversationTranscriptionCanceledEventArgs(l,d,c,void 0,a);try{this.privConversationTranscriber.canceled(this.privConversationTranscriber,f)}catch{}}}};return sg.ConversationTranscriptionServiceRecognizer=i,sg}var lg={},ZB;function sje(){if(ZB)return lg;ZB=1,Object.defineProperty(lg,"__esModule",{value:!0}),lg.TranscriptionServiceRecognizer=void 0;const e=Wt(),t=Ct(),r=Lt(),n=$l;let i=class extends r.ConversationServiceRecognizer{constructor(a,s,l,c,d){super(a,s,l,c,d),this.privTranscriberRecognizer=d,this.sendPrePayloadJSONOverride=u=>this.sendTranscriptionStartJSON(u),this.privRecognizerConfig.parameters.getProperty(t.PropertyId.SpeechServiceResponse_RequestWordLevelTimestamps)==="true"&&this.privSpeechContext.setWordLevelTimings()}async sendSpeechEventAsync(a,s){if(this.privRequestSession.isRecognizing){const l=await this.fetchConnection();await this.sendSpeechEvent(l,this.createSpeechEventPayload(a,s))}}async sendMeetingSpeechEventAsync(a,s){if(this.privRequestSession.isRecognizing){const l=await this.fetchConnection();await this.sendSpeechEvent(l,this.createMeetingSpeechEventPayload(a,s))}}processTypeSpecificMessages(a){return this.processSpeechMessages(a)}handleRecognizedCallback(a,s,l){try{const c=new t.SpeechRecognitionEventArgs(a,s,l);if(this.privTranscriberRecognizer.recognized(this.privTranscriberRecognizer,c),this.privSuccessCallback){try{this.privSuccessCallback(a)}catch(d){this.privErrorCallback&&this.privErrorCallback(d)}this.privSuccessCallback=void 0,this.privErrorCallback=void 0}}catch{}}handleRecognizingCallback(a,s,l){try{const c=new t.SpeechRecognitionEventArgs(a,s,l);this.privTranscriberRecognizer.recognizing(this.privTranscriberRecognizer,c)}catch{}}cancelRecognition(a,s,l,c,d){const u=new t.PropertyCollection;if(u.setProperty(r.CancellationErrorCodePropertyName,t.CancellationErrorCode[c]),this.privTranscriberRecognizer.IsMeetingRecognizer()){if(this.privTranscriberRecognizer.canceled){const f=new t.MeetingTranscriptionCanceledEventArgs(l,d,c,void 0,a);try{this.privTranscriberRecognizer.canceled(this.privTranscriberRecognizer,f)}catch{}}}else if(this.privTranscriberRecognizer.canceled){const f=new t.ConversationTranscriptionCanceledEventArgs(l,d,c,void 0,a);try{this.privTranscriberRecognizer.canceled(this.privTranscriberRecognizer,f)}catch{}}if(this.privSuccessCallback){const f=new t.SpeechRecognitionResult(s,t.ResultReason.Canceled,void 0,void 0,void 0,void 0,void 0,void 0,d,void 0,u);try{this.privSuccessCallback(f),this.privSuccessCallback=void 0}catch{}}}async sendTranscriptionStartJSON(a){if(await this.sendSpeechContext(a,!0),this.privTranscriberRecognizer.IsMeetingRecognizer()){const s=this.privTranscriberRecognizer.getMeetingInfo(),l=this.createMeetingSpeechEventPayload(s,"start");await this.sendSpeechEvent(a,l)}else{const s=this.privTranscriberRecognizer.getConversationInfo(),l=this.createSpeechEventPayload(s,"start");await this.sendSpeechEvent(a,l)}await this.sendWaveHeader(a)}sendSpeechEvent(a,s){const l=JSON.stringify(s);if(l)return a.send(new n.SpeechConnectionMessage(e.MessageType.Text,"speech.event",this.privRequestSession.requestId,"application/json",l))}createSpeechEventPayload(a,s){const l={id:"meeting",name:s,meeting:a.conversationProperties};return l.meeting.id=a.id,l.meeting.attendees=a.participants,l}createMeetingSpeechEventPayload(a,s){const l={id:"meeting",name:s,meeting:a.meetingProperties};return l.meeting.id=a.id,l.meeting.attendees=a.participants,l}};return lg.TranscriptionServiceRecognizer=i,lg}var cg={},e9;function lje(){if(e9)return cg;e9=1,Object.defineProperty(cg,"__esModule",{value:!0}),cg.DetailedSpeechPhrase=void 0;const e=Lt();let t=class Pne{constructor(n,i){this.privDetailedSpeechPhrase=JSON.parse(n),this.privDetailedSpeechPhrase.RecognitionStatus=this.mapRecognitionStatus(this.privDetailedSpeechPhrase.RecognitionStatus),this.updateOffsets(i)}static fromJSON(n,i){return new Pne(n,i)}updateOffsets(n){if(this.privDetailedSpeechPhrase.Offset+=n,this.privDetailedSpeechPhrase.NBest)for(const i of this.privDetailedSpeechPhrase.NBest){if(i.Words)for(const o of i.Words)o.Offset+=n;if(i.DisplayWords)for(const o of i.DisplayWords)o.Offset+=n}}asJson(){const n={...this.privDetailedSpeechPhrase};return JSON.stringify({...n,RecognitionStatus:e.RecognitionStatus[n.RecognitionStatus]})}get RecognitionStatus(){return this.privDetailedSpeechPhrase.RecognitionStatus}get NBest(){return this.privDetailedSpeechPhrase.NBest}get Duration(){return this.privDetailedSpeechPhrase.Duration}get Offset(){return this.privDetailedSpeechPhrase.Offset}get Language(){return this.privDetailedSpeechPhrase.PrimaryLanguage===void 0?void 0:this.privDetailedSpeechPhrase.PrimaryLanguage.Language}get LanguageDetectionConfidence(){return this.privDetailedSpeechPhrase.PrimaryLanguage===void 0?void 0:this.privDetailedSpeechPhrase.PrimaryLanguage.Confidence}get Text(){return this.privDetailedSpeechPhrase.NBest&&this.privDetailedSpeechPhrase.NBest[0]?this.privDetailedSpeechPhrase.NBest[0].Display||this.privDetailedSpeechPhrase.NBest[0].DisplayText:this.privDetailedSpeechPhrase.DisplayText}get SpeakerId(){return this.privDetailedSpeechPhrase.SpeakerId}mapRecognitionStatus(n){if(typeof n=="string")return e.RecognitionStatus[n];if(typeof n=="number")return n}};return cg.DetailedSpeechPhrase=t,cg}var ug={},t9;function cje(){if(t9)return ug;t9=1,Object.defineProperty(ug,"__esModule",{value:!0}),ug.SimpleSpeechPhrase=void 0;const e=Lt();let t=class Ine{constructor(n,i=0){this.privSimpleSpeechPhrase=JSON.parse(n),this.privSimpleSpeechPhrase.RecognitionStatus=this.mapRecognitionStatus(this.privSimpleSpeechPhrase.RecognitionStatus),this.updateOffset(i)}static fromJSON(n,i){return new Ine(n,i)}updateOffset(n){this.privSimpleSpeechPhrase.Offset+=n}asJson(){const n={...this.privSimpleSpeechPhrase};return JSON.stringify({...n,RecognitionStatus:e.RecognitionStatus[n.RecognitionStatus]})}get RecognitionStatus(){return this.privSimpleSpeechPhrase.RecognitionStatus}get DisplayText(){return this.privSimpleSpeechPhrase.DisplayText}get Offset(){return this.privSimpleSpeechPhrase.Offset}get Duration(){return this.privSimpleSpeechPhrase.Duration}get Language(){return this.privSimpleSpeechPhrase.PrimaryLanguage===void 0?void 0:this.privSimpleSpeechPhrase.PrimaryLanguage.Language}get LanguageDetectionConfidence(){return this.privSimpleSpeechPhrase.PrimaryLanguage===void 0?void 0:this.privSimpleSpeechPhrase.PrimaryLanguage.Confidence}get SpeakerId(){return this.privSimpleSpeechPhrase.SpeakerId}mapRecognitionStatus(n){if(typeof n=="string")return e.RecognitionStatus[n];if(typeof n=="number")return n}};return ug.SimpleSpeechPhrase=t,ug}var qE={};Object.defineProperty(qE,"__esModule",{value:!0});qE.AddedLmIntent=void 0;class uje{constructor(t,r){this.modelImpl=t,this.intentName=r}}qE.AddedLmIntent=uje;var dg={},r9;function dje(){if(r9)return dg;r9=1,Object.defineProperty(dg,"__esModule",{value:!0}),dg.IntentServiceRecognizer=void 0;const e=Wt(),t=Ct(),r=Lt();let n=class extends r.ServiceRecognizerBase{constructor(o,a,s,l,c){super(o,a,s,l,c),this.privIntentRecognizer=c,this.privIntentDataSent=!1,l.recognitionEndpointVersion="1"}setIntents(o,a){this.privAddedLmIntents=o,this.privUmbrellaIntent=a,this.privIntentDataSent=!0}processTypeSpecificMessages(o){let a,s,l=!1;const c=new t.PropertyCollection;switch(o.messageType===e.MessageType.Text&&c.setProperty(t.PropertyId.SpeechServiceResponse_JsonResult,o.textBody),o.path.toLowerCase()){case"speech.hypothesis":const u=r.SpeechHypothesis.fromJSON(o.textBody,this.privRequestSession.currentTurnAudioOffset);if(a=new t.IntentRecognitionResult(void 0,this.privRequestSession.requestId,t.ResultReason.RecognizingIntent,u.Text,u.Duration,u.Offset,u.Language,u.LanguageDetectionConfidence,void 0,u.asJson(),c),this.privRequestSession.onHypothesis(a.offset),s=new t.IntentRecognitionEventArgs(a,u.Offset,this.privRequestSession.sessionId),this.privIntentRecognizer.recognizing)try{this.privIntentRecognizer.recognizing(this.privIntentRecognizer,s)}catch{}l=!0;break;case"speech.phrase":const f=r.SimpleSpeechPhrase.fromJSON(o.textBody,this.privRequestSession.currentTurnAudioOffset);a=new t.IntentRecognitionResult(void 0,this.privRequestSession.requestId,r.EnumTranslation.implTranslateRecognitionResult(f.RecognitionStatus),f.DisplayText,f.Duration,f.Offset,f.Language,f.LanguageDetectionConfidence,void 0,f.asJson(),c),s=new t.IntentRecognitionEventArgs(a,a.offset,this.privRequestSession.sessionId);const h=()=>{if(this.privIntentRecognizer.recognized)try{this.privIntentRecognizer.recognized(this.privIntentRecognizer,s)}catch{}if(this.privSuccessCallback){try{this.privSuccessCallback(a)}catch(y){this.privErrorCallback&&this.privErrorCallback(y)}this.privSuccessCallback=void 0,this.privErrorCallback=void 0}};this.privIntentDataSent===!1||t.ResultReason.NoMatch===s.result.reason?(this.privRequestSession.onPhraseRecognized(s.offset+s.result.duration),h()):this.privPendingIntentArgs=s,l=!0;break;case"response":if(s=this.privPendingIntentArgs,this.privPendingIntentArgs=void 0,s===void 0){if(o.textBody==="")return;s=new t.IntentRecognitionEventArgs(new t.IntentRecognitionResult,0,this.privRequestSession.sessionId)}const v=r.IntentResponse.fromJSON(o.textBody);if(v!==null&&v.topScoringIntent&&v.topScoringIntent.intent){let y=this.privAddedLmIntents[v.topScoringIntent.intent];if(this.privUmbrellaIntent!==void 0&&(y=this.privUmbrellaIntent),y){const g=y===void 0||y.intentName===void 0?v.topScoringIntent.intent:y.intentName;let m=s.result.reason;g!==void 0&&(m=t.ResultReason.RecognizedIntent);const S=s.result.properties!==void 0?s.result.properties:new t.PropertyCollection;S.setProperty(t.PropertyId.LanguageUnderstandingServiceResponse_JsonResult,o.textBody),s=new t.IntentRecognitionEventArgs(new t.IntentRecognitionResult(g,s.result.resultId,m,s.result.text,s.result.duration,s.result.offset,void 0,void 0,s.result.errorDetails,s.result.json,S),s.offset,s.sessionId)}}if(this.privRequestSession.onPhraseRecognized(s.offset+s.result.duration),this.privIntentRecognizer.recognized)try{this.privIntentRecognizer.recognized(this.privIntentRecognizer,s)}catch{}if(this.privSuccessCallback){try{this.privSuccessCallback(s.result)}catch(y){this.privErrorCallback&&this.privErrorCallback(y)}this.privSuccessCallback=void 0,this.privErrorCallback=void 0}l=!0;break}const d=new e.Deferred;return d.resolve(l),d.promise}cancelRecognition(o,a,s,l,c){const d=new t.PropertyCollection;if(d.setProperty(r.CancellationErrorCodePropertyName,t.CancellationErrorCode[l]),this.privIntentRecognizer.canceled){const u=new t.IntentRecognitionCanceledEventArgs(s,c,l,void 0,void 0,o);try{this.privIntentRecognizer.canceled(this.privIntentRecognizer,u)}catch{}}if(this.privSuccessCallback){const u=new t.IntentRecognitionResult(void 0,a,t.ResultReason.Canceled,void 0,void 0,void 0,void 0,void 0,c,void 0,d);try{this.privSuccessCallback(u),this.privSuccessCallback=void 0}catch{}}}};return dg.IntentServiceRecognizer=n,dg}var GE={};Object.defineProperty(GE,"__esModule",{value:!0});GE.IntentResponse=void 0;class tD{constructor(t){t===""?this.privIntentResponse={}:this.privIntentResponse=JSON.parse(t)}static fromJSON(t){return new tD(t)}get query(){return this.privIntentResponse.query}get topScoringIntent(){return this.privIntentResponse.topScoringIntent}get entities(){return this.privIntentResponse.entities}}GE.IntentResponse=tD;var xne={};Object.defineProperty(xne,"__esModule",{value:!0});var KE={},YE={};Object.defineProperty(YE,"__esModule",{value:!0});YE.ServiceTelemetryListener=void 0;const Zs=Wt(),n9=zE;class fje{constructor(t,r,n){this.privIsDisposed=!1,this.privListeningTriggerMetric=null,this.privMicMetric=null,this.privConnectionEstablishMetric=null,this.privRequestId=t,this.privAudioSourceId=r,this.privAudioNodeId=n,this.privReceivedMessages={},this.privPhraseLatencies=[],this.privHypothesisLatencies=[]}phraseReceived(t){t>0&&this.privPhraseLatencies.push(Date.now()-t)}hypothesisReceived(t){t>0&&this.privHypothesisLatencies.push(Date.now()-t)}onEvent(t){if(!this.privIsDisposed&&(t instanceof n9.RecognitionTriggeredEvent&&t.requestId===this.privRequestId&&(this.privListeningTriggerMetric={End:t.eventTime,Name:"ListeningTrigger",Start:t.eventTime}),t instanceof Zs.AudioStreamNodeAttachingEvent&&t.audioSourceId===this.privAudioSourceId&&t.audioNodeId===this.privAudioNodeId&&(this.privMicStartTime=t.eventTime),t instanceof Zs.AudioStreamNodeAttachedEvent&&t.audioSourceId===this.privAudioSourceId&&t.audioNodeId===this.privAudioNodeId&&(this.privMicStartTime=t.eventTime),t instanceof Zs.AudioSourceErrorEvent&&t.audioSourceId===this.privAudioSourceId&&(this.privMicMetric||(this.privMicMetric={End:t.eventTime,Error:t.error,Name:"Microphone",Start:this.privMicStartTime})),t instanceof Zs.AudioStreamNodeErrorEvent&&t.audioSourceId===this.privAudioSourceId&&t.audioNodeId===this.privAudioNodeId&&(this.privMicMetric||(this.privMicMetric={End:t.eventTime,Error:t.error,Name:"Microphone",Start:this.privMicStartTime})),t instanceof Zs.AudioStreamNodeDetachedEvent&&t.audioSourceId===this.privAudioSourceId&&t.audioNodeId===this.privAudioNodeId&&(this.privMicMetric||(this.privMicMetric={End:t.eventTime,Name:"Microphone",Start:this.privMicStartTime})),t instanceof n9.ConnectingToServiceEvent&&t.requestId===this.privRequestId&&(this.privConnectionId=t.sessionId),t instanceof Zs.ConnectionStartEvent&&t.connectionId===this.privConnectionId&&(this.privConnectionStartTime=t.eventTime),t instanceof Zs.ConnectionEstablishedEvent&&t.connectionId===this.privConnectionId&&(this.privConnectionEstablishMetric||(this.privConnectionEstablishMetric={End:t.eventTime,Id:this.privConnectionId,Name:"Connection",Start:this.privConnectionStartTime})),t instanceof Zs.ConnectionEstablishErrorEvent&&t.connectionId===this.privConnectionId&&(this.privConnectionEstablishMetric||(this.privConnectionEstablishMetric={End:t.eventTime,Error:this.getConnectionError(t.statusCode),Id:this.privConnectionId,Name:"Connection",Start:this.privConnectionStartTime})),t instanceof Zs.ConnectionMessageReceivedEvent&&t.connectionId===this.privConnectionId&&t.message&&t.message.headers&&t.message.headers.path)){this.privReceivedMessages[t.message.headers.path]||(this.privReceivedMessages[t.message.headers.path]=new Array);const r=50;this.privReceivedMessages[t.message.headers.path].length<r&&this.privReceivedMessages[t.message.headers.path].push(t.networkReceivedTime)}}getTelemetry(){const t=new Array;this.privListeningTriggerMetric&&t.push(this.privListeningTriggerMetric),this.privMicMetric&&t.push(this.privMicMetric),this.privConnectionEstablishMetric&&t.push(this.privConnectionEstablishMetric),this.privPhraseLatencies.length>0&&t.push({PhraseLatencyMs:this.privPhraseLatencies}),this.privHypothesisLatencies.length>0&&t.push({FirstHypothesisLatencyMs:this.privHypothesisLatencies});const r={Metrics:t,ReceivedMessages:this.privReceivedMessages},n=JSON.stringify(r);return this.privReceivedMessages={},this.privListeningTriggerMetric=null,this.privMicMetric=null,this.privConnectionEstablishMetric=null,this.privPhraseLatencies=[],this.privHypothesisLatencies=[],n}get hasTelemetry(){return Object.keys(this.privReceivedMessages).length!==0||this.privListeningTriggerMetric!==null||this.privMicMetric!==null||this.privConnectionEstablishMetric!==null||this.privPhraseLatencies.length!==0||this.privHypothesisLatencies.length!==0}dispose(){this.privIsDisposed=!0}getConnectionError(t){switch(t){case 400:case 1002:case 1003:case 1005:case 1007:case 1008:case 1009:return"BadRequest";case 401:return"Unauthorized";case 403:return"Forbidden";case 503:case 1001:return"ServerUnavailable";case 500:case 1011:return"ServerError";case 408:case 504:return"Timeout";default:return"statuscode:"+t.toString()}}}YE.ServiceTelemetryListener=fje;Object.defineProperty(KE,"__esModule",{value:!0});KE.RequestSession=void 0;const pf=Wt(),e1=zE,pje=YE;class hje{constructor(t){this.privIsDisposed=!1,this.privDetachables=new Array,this.privIsAudioNodeDetached=!1,this.privIsRecognizing=!1,this.privIsSpeechEnded=!1,this.privTurnStartAudioOffset=0,this.privLastRecoOffset=0,this.privHypothesisReceived=!1,this.privBytesSent=0,this.privRecognitionBytesSent=0,this.privRecogNumber=0,this.privInTurn=!1,this.privConnectionAttempts=0,this.privAudioSourceId=t,this.privRequestId=(0,pf.createNoDashGuid)(),this.privAudioNodeId=(0,pf.createNoDashGuid)(),this.privTurnDeferral=new pf.Deferred,this.privTurnDeferral.resolve()}get sessionId(){return this.privSessionId}get requestId(){return this.privRequestId}get audioNodeId(){return this.privAudioNodeId}get turnCompletionPromise(){return this.privTurnDeferral.promise}get isSpeechEnded(){return this.privIsSpeechEnded}get isRecognizing(){return this.privIsRecognizing}get currentTurnAudioOffset(){return this.privTurnStartAudioOffset}get recogNumber(){return this.privRecogNumber}get numConnectionAttempts(){return this.privConnectionAttempts}get bytesSent(){return this.privBytesSent}get recognitionBytesSent(){return this.privRecognitionBytesSent}listenForServiceTelemetry(t){this.privServiceTelemetryListener&&this.privDetachables.push(t.attachListener(this.privServiceTelemetryListener))}startNewRecognition(){this.privRecognitionBytesSent=0,this.privIsSpeechEnded=!1,this.privIsRecognizing=!0,this.privTurnStartAudioOffset=0,this.privLastRecoOffset=0,this.privRecogNumber++,this.privServiceTelemetryListener=new pje.ServiceTelemetryListener(this.privRequestId,this.privAudioSourceId,this.privAudioNodeId),this.onEvent(new e1.RecognitionTriggeredEvent(this.requestId,this.privSessionId,this.privAudioSourceId,this.privAudioNodeId))}async onAudioSourceAttachCompleted(t,r){this.privAudioNode=t,this.privIsAudioNodeDetached=!1,r?await this.onComplete():this.onEvent(new e1.ListeningStartedEvent(this.privRequestId,this.privSessionId,this.privAudioSourceId,this.privAudioNodeId))}onPreConnectionStart(t,r){this.privAuthFetchEventId=t,this.privSessionId=r,this.onEvent(new e1.ConnectingToServiceEvent(this.privRequestId,this.privAuthFetchEventId,this.privSessionId))}async onAuthCompleted(t){t&&await this.onComplete()}async onConnectionEstablishCompleted(t,r){if(t===200){this.onEvent(new e1.RecognitionStartedEvent(this.requestId,this.privAudioSourceId,this.privAudioNodeId,this.privAuthFetchEventId,this.privSessionId)),this.privAudioNode&&this.privAudioNode.replay(),this.privTurnStartAudioOffset=this.privLastRecoOffset,this.privBytesSent=0;return}else t===403&&await this.onComplete()}async onServiceTurnEndResponse(t){this.privTurnDeferral.resolve(),!t||this.isSpeechEnded?(await this.onComplete(),this.privInTurn=!1):(this.privTurnStartAudioOffset=this.privLastRecoOffset,this.privAudioNode.replay())}onSpeechContext(){this.privRequestId=(0,pf.createNoDashGuid)()}onServiceTurnStartResponse(){this.privTurnDeferral&&this.privInTurn&&(this.privTurnDeferral.reject("Another turn started before current completed."),this.privTurnDeferral.promise.then().catch(()=>{})),this.privInTurn=!0,this.privTurnDeferral=new pf.Deferred}onHypothesis(t){this.privHypothesisReceived||(this.privHypothesisReceived=!0,this.privServiceTelemetryListener.hypothesisReceived(this.privAudioNode.findTimeAtOffset(t)))}onPhraseRecognized(t){this.privServiceTelemetryListener.phraseReceived(this.privAudioNode.findTimeAtOffset(t)),this.onServiceRecognized(t)}onServiceRecognized(t){this.privLastRecoOffset=t,this.privHypothesisReceived=!1,this.privAudioNode.shrinkBuffers(t),this.privConnectionAttempts=0}onAudioSent(t){this.privBytesSent+=t,this.privRecognitionBytesSent+=t}onRetryConnection(){this.privConnectionAttempts++}async dispose(){if(!this.privIsDisposed){this.privIsDisposed=!0;for(const t of this.privDetachables)await t.detach();this.privServiceTelemetryListener&&this.privServiceTelemetryListener.dispose(),this.privIsRecognizing=!1}}getTelemetry(){return this.privServiceTelemetryListener.hasTelemetry?this.privServiceTelemetryListener.getTelemetry():null}async onStopRecognizing(){await this.onComplete()}onSpeechEnded(){this.privIsSpeechEnded=!0}onEvent(t){this.privServiceTelemetryListener&&this.privServiceTelemetryListener.onEvent(t),pf.Events.instance.onEvent(t)}async onComplete(){this.privIsRecognizing&&(this.privIsRecognizing=!1,await this.detachAudioNode())}async detachAudioNode(){this.privIsAudioNodeDetached||(this.privIsAudioNodeDetached=!0,this.privAudioNode&&await this.privAudioNode.detach())}}KE.RequestSession=hje;var XE={},One={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TentativePhraseResultsOption=e.OutputFormat=e.PhraseExtension=e.PhraseOption=void 0,function(t){t.WordTimings="WordTimings",t.SNR="SNR",t.Pronunciation="Pronunciation",t.WordPronunciation="WordPronunciation",t.WordConfidence="WordConfidence",t.Words="Words",t.Sentiment="Sentiment",t.PronunciationAssessment="PronunciationAssessment",t.ContentAssessment="ContentAssessment",t.PhraseAMScore="PhraseAMScore",t.PhraseLMScore="PhraseLMScore",t.WordAMScore="WordAMScore",t.WordLMScore="WordLMScore",t.RuleTree="RuleTree",t.NBestTimings="NBestTimings",t.DecoderDiagnostics="DecoderDiagnostics",t.DisplayWordTimings="DisplayWordTimings",t.DisplayWords="DisplayWords"}(e.PhraseOption||(e.PhraseOption={})),function(t){t.Graph="Graph",t.Corrections="Corrections",t.Sentiment="Sentiment"}(e.PhraseExtension||(e.PhraseExtension={})),function(t){t.Simple="Simple",t.Detailed="Detailed"}(e.OutputFormat||(e.OutputFormat={})),function(t){t.None="None",t.Always="Always"}(e.TentativePhraseResultsOption||(e.TentativePhraseResultsOption={}))})(One);Object.defineProperty(XE,"__esModule",{value:!0});XE.SpeechContext=void 0;const vje=ia,ql=One;class gje{constructor(t){this.privContext={},this.privDynamicGrammar=t}getContext(){return this.privContext}setPronunciationAssessmentParams(t,r,n=!1){this.privContext.phraseDetection===void 0&&(this.privContext.phraseDetection={enrichment:{pronunciationAssessment:{}}}),this.privContext.phraseDetection.enrichment===void 0&&(this.privContext.phraseDetection.enrichment={pronunciationAssessment:{}}),this.privContext.phraseDetection.enrichment.pronunciationAssessment=JSON.parse(t)||{},n&&(this.privContext.phraseDetection.mode=vje.RecognitionMode.Conversation),this.setWordLevelTimings(),this.privContext.phraseOutput.detailed.options.push(ql.PhraseOption.PronunciationAssessment),this.privContext.phraseOutput.detailed.options.indexOf(ql.PhraseOption.SNR)===-1&&this.privContext.phraseOutput.detailed.options.push(ql.PhraseOption.SNR),r&&(this.privContext.phraseDetection.enrichment.contentAssessment={topic:r},this.privContext.phraseOutput.detailed.options.push(ql.PhraseOption.ContentAssessment))}setDetailedOutputFormat(){this.privContext.phraseOutput===void 0&&(this.privContext.phraseOutput={detailed:{options:[]}}),this.privContext.phraseOutput.detailed===void 0&&(this.privContext.phraseOutput.detailed={options:[]}),this.privContext.phraseOutput.format=ql.OutputFormat.Detailed}setWordLevelTimings(){this.privContext.phraseOutput===void 0&&(this.privContext.phraseOutput={detailed:{options:[]}}),this.privContext.phraseOutput.detailed===void 0&&(this.privContext.phraseOutput.detailed={options:[]}),this.privContext.phraseOutput.format=ql.OutputFormat.Detailed,this.privContext.phraseOutput.detailed.options.indexOf(ql.PhraseOption.WordTimings)===-1&&this.privContext.phraseOutput.detailed.options.push(ql.PhraseOption.WordTimings)}setSpeakerDiarizationAudioOffsetMs(t){this.privContext.phraseDetection.speakerDiarization.audioOffsetMs=t}toJSON(){const t=this.privDynamicGrammar.generateGrammarObject();return this.privContext.dgi=t,JSON.stringify(this.privContext)}}XE.SpeechContext=gje;var QE={},Tne={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SubstringMatchType=e.GroupType=void 0,function(t){t.IntentText="IntentText",t.IntentEntity="IntentEntity",t.Generic="Generic",t.People="People",t.Place="Place",t.DynamicEntity="DynamicEntity"}(e.GroupType||(e.GroupType={})),function(t){t.None="None",t.LeftRooted="LeftRooted",t.PartialName="PartialName",t.MiddleOfSentence="MiddleOfSentence"}(e.SubstringMatchType||(e.SubstringMatchType={}))})(Tne);Object.defineProperty(QE,"__esModule",{value:!0});QE.DynamicGrammarBuilder=void 0;const mje=Tne;class yje{constructor(){this.privWeight=1}addPhrase(t){this.privPhrases||(this.privPhrases=[]),t instanceof Array?this.privPhrases=this.privPhrases.concat(t):this.privPhrases.push(t)}clearPhrases(){this.privPhrases=void 0}addReferenceGrammar(t){this.privGrammars||(this.privGrammars=[]),t instanceof Array?this.privGrammars=this.privGrammars.concat(t):this.privGrammars.push(t)}clearGrammars(){this.privGrammars=void 0}setWeight(t){this.privWeight=t}generateGrammarObject(){if(this.privGrammars===void 0&&this.privPhrases===void 0)return;const t={};if(t.referenceGrammars=this.privGrammars,this.privPhrases!==void 0&&this.privPhrases.length!==0){const r=[];this.privPhrases.forEach(n=>{r.push({text:n})}),t.groups=[{type:mje.GroupType.Generic,items:r}],t.bias=this.privWeight}return t}}QE.DynamicGrammarBuilder=yje;var fg={},JE={},ZE={},rD={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.MessageDataStreamType=e.ActivityPayloadResponse=void 0;class t{constructor(n){this.privActivityResponse=JSON.parse(n)}static fromJSON(n){return new t(n)}get conversationId(){return this.privActivityResponse.conversationId}get messageDataStreamType(){return this.privActivityResponse.messageDataStreamType}get messagePayload(){return this.privActivityResponse.messagePayload}get version(){return this.privActivityResponse.version}}e.ActivityPayloadResponse=t,function(r){r[r.None=0]="None",r[r.TextToSpeechAudio=1]="TextToSpeechAudio"}(e.MessageDataStreamType||(e.MessageDataStreamType={}))})(rD);Object.defineProperty(ZE,"__esModule",{value:!0});ZE.DialogServiceTurnState=void 0;const Sje=Qc,Cje=Ci,bje=rD;class wje{constructor(t,r){this.privRequestId=r,this.privIsCompleted=!1,this.privAudioStream=null,this.privTurnManager=t,this.resetTurnEndTimeout()}get audioStream(){return this.resetTurnEndTimeout(),this.privAudioStream}processActivityPayload(t,r){return t.messageDataStreamType===bje.MessageDataStreamType.TextToSpeechAudio&&(this.privAudioStream=Cje.AudioOutputStream.createPullStream(),this.privAudioStream.format=r!==void 0?r:Sje.AudioOutputFormatImpl.getDefaultOutputFormat()),this.privAudioStream}endAudioStream(){this.privAudioStream!==null&&!this.privAudioStream.isClosed&&this.privAudioStream.close()}complete(){this.privTimeoutToken!==void 0&&clearTimeout(this.privTimeoutToken),this.endAudioStream()}resetTurnEndTimeout(){this.privTimeoutToken!==void 0&&clearTimeout(this.privTimeoutToken),this.privTimeoutToken=setTimeout(()=>{this.privTurnManager.CompleteTurn(this.privRequestId)},2e3)}}ZE.DialogServiceTurnState=wje;Object.defineProperty(JE,"__esModule",{value:!0});JE.DialogServiceTurnStateManager=void 0;const i9=_i,_je=ZE;class Eje{constructor(){this.privTurnMap=new Map}StartTurn(t){if(this.privTurnMap.has(t))throw new i9.InvalidOperationError("Service error: There is already a turn with id:"+t);const r=new _je.DialogServiceTurnState(this,t);return this.privTurnMap.set(t,r),this.privTurnMap.get(t)}GetTurn(t){return this.privTurnMap.get(t)}CompleteTurn(t){if(!this.privTurnMap.has(t))throw new i9.InvalidOperationError("Service error: Received turn end for an unknown turn id:"+t);const r=this.privTurnMap.get(t);return r.complete(),this.privTurnMap.delete(t),r}}JE.DialogServiceTurnStateManager=Eje;var Ane={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.InvocationSource=void 0,function(t){t.None="None",t.VoiceActivationWithKeyword="VoiceActivationWithKeyword"}(e.InvocationSource||(e.InvocationSource={}))})(Ane);var Mne={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.OnRejectAction=e.KeywordDetectionType=void 0,function(t){t.StartTrigger="StartTrigger"}(e.KeywordDetectionType||(e.KeywordDetectionType={})),function(t){t.EndOfTurn="EndOfTurn",t.Continue="Continue"}(e.OnRejectAction||(e.OnRejectAction={}))})(Mne);var o9;function Rje(){if(o9)return fg;o9=1,Object.defineProperty(fg,"__esModule",{value:!0}),fg.DialogServiceAdapter=void 0;const e=hi(),t=fd,r=Wt(),n=Qc,i=Ct(),o=JE,a=Lt(),s=rD,l=Ane,c=Mne,d=$l;let u=class extends a.ServiceRecognizerBase{constructor(h,v,y,g,m){super(h,v,y,g,m),this.privEvents=new r.EventSource,this.privDialogServiceConnector=m,this.receiveMessageOverride=()=>this.receiveDialogMessageOverride(),this.privTurnStateManager=new o.DialogServiceTurnStateManager,this.recognizeOverride=(S,C,b)=>this.listenOnce(S,C,b),this.postConnectImplOverride=S=>this.dialogConnectImpl(S),this.configConnectionOverride=S=>this.configConnection(S),this.disconnectOverride=()=>this.privDisconnect(),this.privDialogAudioSource=y,this.agentConfigSent=!1,this.privLastResult=null,this.connectionEvents.attach(S=>{S.name==="ConnectionClosedEvent"&&(this.terminateMessageLoop=!0)})}async sendMessage(h){const v=(0,r.createGuid)(),y=(0,r.createNoDashGuid)(),g={context:{interactionId:v},messagePayload:JSON.parse(h),version:.5},m=JSON.stringify(g);await(await this.fetchConnection()).send(new d.SpeechConnectionMessage(r.MessageType.Text,"agent",y,"application/json",m))}async privDisconnect(){await this.cancelRecognition(this.privRequestSession.sessionId,this.privRequestSession.requestId,i.CancellationReason.Error,i.CancellationErrorCode.NoError,"Disconnecting"),this.terminateMessageLoop=!0,this.agentConfigSent=!1}processTypeSpecificMessages(h){const v=new i.PropertyCollection;h.messageType===r.MessageType.Text&&v.setProperty(i.PropertyId.SpeechServiceResponse_JsonResult,h.textBody);let y,g;switch(h.path.toLowerCase()){case"speech.phrase":const S=a.SimpleSpeechPhrase.fromJSON(h.textBody,this.privRequestSession.currentTurnAudioOffset);if(this.privRequestSession.onPhraseRecognized(S.Offset+S.Duration),S.RecognitionStatus!==a.RecognitionStatus.TooManyRequests&&S.RecognitionStatus!==a.RecognitionStatus.Error){const _=this.fireEventForResult(S,v);if(this.privLastResult=_.result,this.privDialogServiceConnector.recognized)try{this.privDialogServiceConnector.recognized(this.privDialogServiceConnector,_)}catch{}}g=!0;break;case"speech.hypothesis":const C=a.SpeechHypothesis.fromJSON(h.textBody,this.privRequestSession.currentTurnAudioOffset);y=new i.SpeechRecognitionResult(this.privRequestSession.requestId,i.ResultReason.RecognizingSpeech,C.Text,C.Duration,C.Offset,C.Language,C.LanguageDetectionConfidence,void 0,void 0,C.asJson(),v),this.privRequestSession.onHypothesis(C.Offset);const b=new i.SpeechRecognitionEventArgs(y,C.Offset,this.privRequestSession.sessionId);if(this.privDialogServiceConnector.recognizing)try{this.privDialogServiceConnector.recognizing(this.privDialogServiceConnector,b)}catch{}g=!0;break;case"speech.keyword":const w=a.SpeechKeyword.fromJSON(h.textBody,this.privRequestSession.currentTurnAudioOffset);y=new i.SpeechRecognitionResult(this.privRequestSession.requestId,w.Status==="Accepted"?i.ResultReason.RecognizedKeyword:i.ResultReason.NoMatch,w.Text,w.Duration,w.Offset,void 0,void 0,void 0,void 0,w.asJson(),v),w.Status!=="Accepted"&&(this.privLastResult=y);const E=new i.SpeechRecognitionEventArgs(y,y.duration,y.resultId);if(this.privDialogServiceConnector.recognized)try{this.privDialogServiceConnector.recognized(this.privDialogServiceConnector,E)}catch{}g=!0;break;case"audio":{const _=h.requestId.toUpperCase(),R=this.privTurnStateManager.GetTurn(_);try{h.binaryBody?R.audioStream.write(h.binaryBody):R.endAudioStream()}catch{}}g=!0;break;case"response":this.handleResponseMessage(h),g=!0;break}const m=new r.Deferred;return m.resolve(g),m.promise}async cancelRecognition(h,v,y,g,m){if(this.terminateMessageLoop=!0,this.privRequestSession.isRecognizing&&await this.privRequestSession.onStopRecognizing(),this.privDialogServiceConnector.canceled){const S=new i.PropertyCollection;S.setProperty(a.CancellationErrorCodePropertyName,i.CancellationErrorCode[g]);const C=new i.SpeechRecognitionCanceledEventArgs(y,m,g,void 0,h);try{this.privDialogServiceConnector.canceled(this.privDialogServiceConnector,C)}catch{}if(this.privSuccessCallback){const b=new i.SpeechRecognitionResult(void 0,i.ResultReason.Canceled,void 0,void 0,void 0,void 0,void 0,void 0,m,void 0,S);try{this.privSuccessCallback(b),this.privSuccessCallback=void 0}catch{}}}}async listenOnce(h,v,y){this.privRecognizerConfig.recognitionMode=h,this.privSuccessCallback=v,this.privErrorCallback=y,this.privRequestSession.startNewRecognition(),this.privRequestSession.listenForServiceTelemetry(this.privDialogAudioSource.events),this.privRecognizerConfig.parameters.setProperty(i.PropertyId.Speech_SessionId,this.privRequestSession.sessionId);const g=this.connectImpl(),m=this.sendPreAudioMessages(),S=await this.privDialogAudioSource.attach(this.privRequestSession.audioNodeId),C=await this.privDialogAudioSource.format,b=await this.privDialogAudioSource.deviceInfo,w=new e.ReplayableAudioNode(S,C.avgBytesPerSec);await this.privRequestSession.onAudioSourceAttachCompleted(w,!1),this.privRecognizerConfig.SpeechServiceConfig.Context.audio={source:b};try{await g,await m}catch(R){return await this.cancelRecognition(this.privRequestSession.sessionId,this.privRequestSession.requestId,i.CancellationReason.Error,i.CancellationErrorCode.ConnectionFailure,R),Promise.resolve()}const E=new i.SessionEventArgs(this.privRequestSession.sessionId);this.privRecognizer.sessionStarted&&this.privRecognizer.sessionStarted(this.privRecognizer,E),this.sendAudio(w).then(()=>{},async R=>{await this.cancelRecognition(this.privRequestSession.sessionId,this.privRequestSession.requestId,i.CancellationReason.Error,i.CancellationErrorCode.RuntimeError,R)})}dialogConnectImpl(h){return this.privConnectionLoop=this.startMessageLoop(),h}receiveDialogMessageOverride(){const h=new r.Deferred,v=async()=>{try{const y=this.isDisposed(),g=!this.isDisposed()&&this.terminateMessageLoop;if(y||g){h.resolve(void 0);return}const S=await(await this.fetchConnection()).read();if(!S)return v();const C=d.SpeechConnectionMessage.fromConnectionMessage(S);switch(C.path.toLowerCase()){case"turn.start":{const I=C.requestId.toUpperCase(),O=this.privRequestSession.requestId.toUpperCase();I!==O?this.privTurnStateManager.StartTurn(I):this.privRequestSession.onServiceTurnStartResponse()}break;case"speech.startdetected":const w=a.SpeechDetected.fromJSON(C.textBody,this.privRequestSession.currentTurnAudioOffset),E=new i.RecognitionEventArgs(w.Offset,this.privRequestSession.sessionId);this.privRecognizer.speechStartDetected&&this.privRecognizer.speechStartDetected(this.privRecognizer,E);break;case"speech.enddetected":let _;C.textBody.length>0?_=C.textBody:_="{ Offset: 0 }";const R=a.SpeechDetected.fromJSON(_,this.privRequestSession.currentTurnAudioOffset);this.privRequestSession.onServiceRecognized(R.Offset);const P=new i.RecognitionEventArgs(R.Offset,this.privRequestSession.sessionId);this.privRecognizer.speechEndDetected&&this.privRecognizer.speechEndDetected(this.privRecognizer,P);break;case"turn.end":{const I=C.requestId.toUpperCase(),O=this.privRequestSession.requestId.toUpperCase();if(I!==O)this.privTurnStateManager.CompleteTurn(I);else{const A=new i.SessionEventArgs(this.privRequestSession.sessionId);if(await this.privRequestSession.onServiceTurnEndResponse(!1),(!this.privRecognizerConfig.isContinuousRecognition||this.privRequestSession.isSpeechEnded||!this.privRequestSession.isRecognizing)&&this.privRecognizer.sessionStopped&&this.privRecognizer.sessionStopped(this.privRecognizer,A),this.privSuccessCallback&&this.privLastResult){try{this.privSuccessCallback(this.privLastResult),this.privLastResult=null}catch(x){this.privErrorCallback&&this.privErrorCallback(x)}this.privSuccessCallback=void 0,this.privErrorCallback=void 0}}}break;default:try{await this.processTypeSpecificMessages(C)||this.serviceEvents&&this.serviceEvents.onEvent(new r.ServiceEvent(C.path.toLowerCase(),C.textBody))}catch{}}return v()}catch{this.terminateMessageLoop=!0,h.resolve()}};return v().catch(y=>{r.Events.instance.onEvent(new r.BackgroundEvent(y))}),h.promise}async startMessageLoop(){this.terminateMessageLoop=!1;try{await this.receiveDialogMessageOverride()}catch(h){await this.cancelRecognition(this.privRequestSession.sessionId,this.privRequestSession.requestId,i.CancellationReason.Error,i.CancellationErrorCode.RuntimeError,h)}return Promise.resolve()}async configConnection(h){return this.terminateMessageLoop?(this.terminateMessageLoop=!1,Promise.reject("Connection to service terminated.")):(await this.sendSpeechServiceConfig(h,this.privRequestSession,this.privRecognizerConfig.SpeechServiceConfig.serialize()),await this.sendAgentConfig(h),h)}async sendPreAudioMessages(){const h=await this.fetchConnection();this.addKeywordContextData(),await this.sendSpeechContext(h,!0),await this.sendAgentContext(h),await this.sendWaveHeader(h)}sendAgentConfig(h){if(this.agentConfig&&!this.agentConfigSent){if(this.privRecognizerConfig.parameters.getProperty(i.PropertyId.Conversation_DialogType)===i.DialogServiceConfig.DialogTypes.CustomCommands){const y=this.agentConfig.get();y.botInfo.commandsCulture=this.privRecognizerConfig.parameters.getProperty(i.PropertyId.SpeechServiceConnection_RecoLanguage,"en-us"),this.agentConfig.set(y)}this.onEvent(new t.SendingAgentContextMessageEvent(this.agentConfig));const v=this.agentConfig.toJsonString();return this.agentConfigSent=!0,h.send(new d.SpeechConnectionMessage(r.MessageType.Text,"agent.config",this.privRequestSession.requestId,"application/json",v))}}sendAgentContext(h){const v=(0,r.createGuid)(),y=this.privDialogServiceConnector.properties.getProperty(i.PropertyId.Conversation_Speech_Activity_Template),m=JSON.stringify({channelData:"",context:{interactionId:v},messagePayload:typeof y===void 0?void 0:y,version:.5});return h.send(new d.SpeechConnectionMessage(r.MessageType.Text,"speech.agent.context",this.privRequestSession.requestId,"application/json",m))}fireEventForResult(h,v){const y=a.EnumTranslation.implTranslateRecognitionResult(h.RecognitionStatus),g=new i.SpeechRecognitionResult(this.privRequestSession.requestId,y,h.DisplayText,h.Duration,h.Offset,h.Language,h.LanguageDetectionConfidence,void 0,void 0,h.asJson(),v);return new i.SpeechRecognitionEventArgs(g,h.Offset,this.privRequestSession.sessionId)}handleResponseMessage(h){const v=JSON.parse(h.textBody);switch(v.messageType.toLowerCase()){case"message":const y=h.requestId.toUpperCase(),g=s.ActivityPayloadResponse.fromJSON(h.textBody),m=this.privTurnStateManager.GetTurn(y);if(g.conversationId){const b=this.agentConfig.get();b.botInfo.conversationId=g.conversationId,this.agentConfig.set(b)}const S=m.processActivityPayload(g,n.AudioOutputFormatImpl.fromSpeechSynthesisOutputFormatString(this.privDialogServiceConnector.properties.getProperty(i.PropertyId.SpeechServiceConnection_SynthOutputFormat,void 0))),C=new i.ActivityReceivedEventArgs(g.messagePayload,S);if(this.privDialogServiceConnector.activityReceived)try{this.privDialogServiceConnector.activityReceived(this.privDialogServiceConnector,C)}catch{}break;case"messagestatus":if(this.privDialogServiceConnector.turnStatusReceived)try{this.privDialogServiceConnector.turnStatusReceived(this.privDialogServiceConnector,new i.TurnStatusReceivedEventArgs(h.textBody))}catch{}break;default:r.Events.instance.onEvent(new r.BackgroundEvent(`Unexpected response of type ${v.messageType}. Ignoring.`));break}}onEvent(h){this.privEvents.onEvent(h),r.Events.instance.onEvent(h)}addKeywordContextData(){const h=this.privRecognizerConfig.parameters.getProperty("SPEECH-KeywordsToDetect");if(h===void 0)return;const v=this.privRecognizerConfig.parameters.getProperty("SPEECH-KeywordsToDetect-Offsets"),y=this.privRecognizerConfig.parameters.getProperty("SPEECH-KeywordsToDetect-Durations"),g=h.split(";"),m=v===void 0?[]:v.split(";"),S=y===void 0?[]:y.split(";"),C=[];for(let b=0;b<g.length;b++){const w={text:g[b]};b<m.length&&(w.startOffset=Number(m[b])),b<S.length&&(w.duration=Number(S[b])),C.push(w)}this.speechContext.getContext().invocationSource=l.InvocationSource.VoiceActivationWithKeyword,this.speechContext.getContext().keywordDetection=[{clientDetectedKeywords:C,onReject:{action:c.OnRejectAction.EndOfTurn},type:c.KeywordDetectionType.StartTrigger}]}};return fg.DialogServiceAdapter=u,fg}var eR={};Object.defineProperty(eR,"__esModule",{value:!0});eR.AgentConfig=void 0;class Pje{toJsonString(){return JSON.stringify(this.iPrivConfig)}get(){return this.iPrivConfig}set(t){this.iPrivConfig=t}}eR.AgentConfig=Pje;var K2={},pg={},ah={};Object.defineProperty(ah,"__esModule",{value:!0});ah.ConversationConnectionConfig=void 0;const Ije=x0;class Vi extends Ije.RestConfigBase{static get host(){return Vi.privHost}static get apiVersion(){return Vi.privApiVersion}static get clientAppId(){return Vi.privClientAppId}static get defaultLanguageCode(){return Vi.privDefaultLanguageCode}static get restPath(){return Vi.privRestPath}static get webSocketPath(){return Vi.privWebSocketPath}static get transcriptionEventKeys(){return Vi.privTranscriptionEventKeys}}ah.ConversationConnectionConfig=Vi;Vi.privHost="dev.microsofttranslator.com";Vi.privRestPath="/capito/room";Vi.privApiVersion="2.0";Vi.privDefaultLanguageCode="en-US";Vi.privClientAppId="FC539C22-1767-4F1F-84BC-B4D811114F15";Vi.privWebSocketPath="/capito/translate";Vi.privTranscriptionEventKeys=["iCalUid","callId","organizer","FLAC","MTUri","DifferentiateGuestSpeakers","audiorecording","Threadid","OrganizerMri","OrganizerTenantId","UserToken"];var a9;function xje(){if(a9)return pg;a9=1,Object.defineProperty(pg,"__esModule",{value:!0}),pg.ConversationManager=void 0;const e=hi(),t=Zt,r=Ct(),n=ah;let i=class{constructor(){this.privRequestParams=n.ConversationConnectionConfig.configParams,this.privErrors=n.ConversationConnectionConfig.restErrors,this.privHost=n.ConversationConnectionConfig.host,this.privApiVersion=n.ConversationConnectionConfig.apiVersion,this.privRestPath=n.ConversationConnectionConfig.restPath,this.privRestAdapter=new e.RestMessageAdapter({})}createOrJoin(a,s,l,c){try{t.Contracts.throwIfNullOrUndefined(a,"args");const d=a.getProperty(r.PropertyId.SpeechServiceConnection_RecoLanguage,n.ConversationConnectionConfig.defaultLanguageCode),u=a.getProperty(r.PropertyId.ConversationTranslator_Name,"conversation_host"),f=a.getProperty(r.PropertyId.ConversationTranslator_Host,this.privHost),h=a.getProperty(r.PropertyId.ConversationTranslator_CorrelationId),v=a.getProperty(r.PropertyId.SpeechServiceConnection_Key),y=a.getProperty(r.PropertyId.SpeechServiceConnection_Region),g=a.getProperty(r.PropertyId.SpeechServiceAuthorization_Token);t.Contracts.throwIfNullOrWhitespace(d,"languageCode"),t.Contracts.throwIfNullOrWhitespace(u,"nickname"),t.Contracts.throwIfNullOrWhitespace(f,"endpointHost");const m={};m[this.privRequestParams.apiVersion]=this.privApiVersion,m[this.privRequestParams.languageCode]=d,m[this.privRequestParams.nickname]=u;const S={};h&&(S[this.privRequestParams.correlationId]=h),S[this.privRequestParams.clientAppId]=n.ConversationConnectionConfig.clientAppId,s!==void 0?m[this.privRequestParams.roomId]=s:(t.Contracts.throwIfNullOrUndefined(y,this.privErrors.authInvalidSubscriptionRegion),S[this.privRequestParams.subscriptionRegion]=y,v?S[this.privRequestParams.subscriptionKey]=v:g?S[this.privRequestParams.authorization]=`Bearer ${g}`:t.Contracts.throwIfNullOrUndefined(v,this.privErrors.authInvalidSubscriptionKey));const C={};C.headers=S,this.privRestAdapter.options=C;const b=`https://${f}${this.privRestPath}`;this.privRestAdapter.request(e.RestRequestType.Post,b,m,null).then(w=>{const E=e.RestMessageAdapter.extractHeaderValue(this.privRequestParams.requestId,w.headers);if(!w.ok){if(c){let R=this.privErrors.invalidCreateJoinConversationResponse.replace("{status}",w.status.toString()),P;try{P=JSON.parse(w.data),R+=` [${P.error.code}: ${P.error.message}]`}catch{R+=` [${w.data}]`}E&&(R+=` ${E}`),c(R)}return}const _=JSON.parse(w.data);if(_&&(_.requestId=E),l){try{l(_)}catch(R){c&&c(R)}l=void 0}}).catch(()=>{})}catch(d){if(c)if(d instanceof Error){const u=d;c(u.name+": "+u.message)}else c(d)}}leave(a,s){return new Promise((l,c)=>{try{t.Contracts.throwIfNullOrUndefined(a,this.privErrors.invalidArgs.replace("{arg}","config")),t.Contracts.throwIfNullOrWhitespace(s,this.privErrors.invalidArgs.replace("{arg}","token"));const d=a.getProperty(r.PropertyId.ConversationTranslator_Host,this.privHost),u=a.getProperty(r.PropertyId.ConversationTranslator_CorrelationId),f={};f[this.privRequestParams.apiVersion]=this.privApiVersion,f[this.privRequestParams.sessionToken]=s;const h={};u&&(h[this.privRequestParams.correlationId]=u);const v={};v.headers=h,this.privRestAdapter.options=v;const y=`https://${d}${this.privRestPath}`;this.privRestAdapter.request(e.RestRequestType.Delete,y,f,null).then(g=>{g.ok,l()}).catch(()=>{})}catch(d){if(d instanceof Error){const u=d;c(u.name+": "+u.message)}else c(d)}})}};return pg.ConversationManager=i,pg}var xu={},hg={},tR={},O0={};Object.defineProperty(O0,"__esModule",{value:!0});O0.ConversationConnectionMessage=void 0;const Oje=Wt();class Tje extends Oje.ConnectionMessage{constructor(t,r,n,i){super(t,r,n,i);const o=JSON.parse(this.textBody);o.type!==void 0&&(this.privConversationMessageType=o.type)}get conversationMessageType(){return this.privConversationMessageType}}O0.ConversationConnectionMessage=Tje;Object.defineProperty(tR,"__esModule",{value:!0});tR.ConversationWebsocketMessageFormatter=void 0;const Ou=Wt(),s9=O0;class Aje{toConnectionMessage(t){const r=new Ou.Deferred;try{if(t.messageType===Ou.MessageType.Text){const n=new s9.ConversationConnectionMessage(t.messageType,t.textContent,{},t.id);r.resolve(n)}else t.messageType===Ou.MessageType.Binary&&r.resolve(new s9.ConversationConnectionMessage(t.messageType,t.binaryContent,void 0,t.id))}catch(n){r.reject(`Error formatting the message. Error: ${n}`)}return r.promise}fromConnectionMessage(t){const r=new Ou.Deferred;try{if(t.messageType===Ou.MessageType.Text){const n=`${t.textBody?t.textBody:""}`;r.resolve(new Ou.RawWebsocketMessage(Ou.MessageType.Text,n,t.id))}}catch(n){r.reject(`Error formatting the message. ${n}`)}return r.promise}}tR.ConversationWebsocketMessageFormatter=Aje;var l9;function Mje(){if(l9)return hg;l9=1,Object.defineProperty(hg,"__esModule",{value:!0}),hg.ConversationConnectionFactory=void 0;const e=hi(),t=Wt(),r=Zt,n=Ct(),i=vs(),o=ah,a=tR;let s=class extends i.ConnectionFactoryBase{create(c,d,u){const f=c.parameters.getProperty(n.PropertyId.ConversationTranslator_Host,o.ConversationConnectionConfig.host),h=c.parameters.getProperty(n.PropertyId.ConversationTranslator_CorrelationId,(0,t.createGuid)()),v=`wss://${f}${o.ConversationConnectionConfig.webSocketPath}`,y=c.parameters.getProperty(n.PropertyId.ConversationTranslator_Token,void 0);r.Contracts.throwIfNullOrUndefined(y,"token");const g={};g[o.ConversationConnectionConfig.configParams.apiVersion]=o.ConversationConnectionConfig.apiVersion,g[o.ConversationConnectionConfig.configParams.token]=y,g[o.ConversationConnectionConfig.configParams.correlationId]=h;const m=c.parameters.getProperty("SPEECH-EnableWebsocketCompression","false")==="true";return Promise.resolve(new e.WebsocketConnection(v,g,{},new a.ConversationWebsocketMessageFormatter,e.ProxyInfo.fromRecognizerConfig(c),m,u))}};return hg.ConversationConnectionFactory=s,hg}var vg={},rR={};Object.defineProperty(rR,"__esModule",{value:!0});rR.ConversationRequestSession=void 0;const Y2=Wt();class $je{constructor(t){this.privIsDisposed=!1,this.privDetachables=new Array,this.privSessionId=t,this.privRequestId=(0,Y2.createNoDashGuid)(),this.privRequestCompletionDeferral=new Y2.Deferred}get sessionId(){return this.privSessionId}get requestId(){return this.privRequestId}get completionPromise(){return this.privRequestCompletionDeferral.promise}onPreConnectionStart(t,r){this.privSessionId=r}onAuthCompleted(t){t&&this.onComplete()}onConnectionEstablishCompleted(t){t!==200&&t===403&&this.onComplete()}onServiceTurnEndResponse(t){t?this.privRequestId=(0,Y2.createNoDashGuid)():this.onComplete()}async dispose(){if(!this.privIsDisposed){this.privIsDisposed=!0;for(const t of this.privDetachables)await t.detach()}}onComplete(){}}rR.ConversationRequestSession=$je;var Zi={},c9;function $ne(){if(c9)return Zi;c9=1,Object.defineProperty(Zi,"__esModule",{value:!0}),Zi.ConversationReceivedTranslationEventArgs=Zi.ParticipantsListEventArgs=Zi.ParticipantAttributeEventArgs=Zi.ParticipantEventArgs=Zi.LockRoomEventArgs=Zi.MuteAllEventArgs=void 0;const e=Ct();class t extends e.SessionEventArgs{constructor(l,c){super(c),this.privIsMuted=l}get isMuted(){return this.privIsMuted}}Zi.MuteAllEventArgs=t;class r extends e.SessionEventArgs{constructor(l,c){super(c),this.privIsLocked=l}get isMuted(){return this.privIsLocked}}Zi.LockRoomEventArgs=r;class n extends e.SessionEventArgs{constructor(l,c){super(c),this.privParticipant=l}get participant(){return this.privParticipant}}Zi.ParticipantEventArgs=n;class i extends e.SessionEventArgs{constructor(l,c,d,u){super(u),this.privKey=c,this.privValue=d,this.privParticipantId=l}get value(){return this.privValue}get key(){return this.privKey}get id(){return this.privParticipantId}}Zi.ParticipantAttributeEventArgs=i;class o extends e.SessionEventArgs{constructor(l,c,d,u,f,h,v,y,g){super(g),this.privRoomId=l,this.privSessionToken=c,this.privTranslateTo=d,this.privProfanityFilter=u,this.privRoomProfanityFilter=f,this.privIsRoomLocked=h,this.privIsRoomLocked=v,this.privParticipants=y}get sessionToken(){return this.privSessionToken}get conversationId(){return this.privRoomId}get translateTo(){return this.privTranslateTo}get profanityFilter(){return this.privProfanityFilter}get roomProfanityFilter(){return this.privRoomProfanityFilter}get isRoomLocked(){return this.privIsRoomLocked}get isMuteAll(){return this.privIsMuteAll}get participants(){return this.privParticipants}}Zi.ParticipantsListEventArgs=o;class a{constructor(l,c,d){this.privPayload=c,this.privCommand=l,this.privSessionId=d}get payload(){return this.privPayload}get command(){return this.privCommand}get sessionId(){return this.privSessionId}}return Zi.ConversationReceivedTranslationEventArgs=a,Zi}var fl={};Object.defineProperty(fl,"__esModule",{value:!0});fl.ConversationTranslatorCommandTypes=fl.ConversationTranslatorMessageTypes=fl.InternalParticipants=void 0;class kje{constructor(t=[],r){this.participants=t,this.meId=r}addOrUpdateParticipant(t){if(t===void 0)return;const r=this.getParticipantIndex(t.id);return r>-1?this.participants.splice(r,1,t):this.participants.push(t),this.getParticipant(t.id)}getParticipantIndex(t){return this.participants.findIndex(r=>r.id===t)}getParticipant(t){return this.participants.find(r=>r.id===t)}deleteParticipant(t){this.participants=this.participants.filter(r=>r.id!==t)}get host(){return this.participants.find(t=>t.isHost===!0)}get me(){return this.getParticipant(this.meId)}}fl.InternalParticipants=kje;fl.ConversationTranslatorMessageTypes={command:"command",final:"final",info:"info",instantMessage:"instant_message",keepAlive:"keep_alive",partial:"partial",participantCommand:"participant_command",translatedMessage:"translated_message"};fl.ConversationTranslatorCommandTypes={changeNickname:"ChangeNickname",disconnectSession:"DisconnectSession",ejectParticipant:"EjectParticipant",instant_message:"instant_message",joinSession:"JoinSession",leaveSession:"LeaveSession",participantList:"ParticipantList",roomExpirationWarning:"RoomExpirationWarning",setLockState:"SetLockState",setMute:"SetMute",setMuteAll:"SetMuteAll",setProfanityFiltering:"SetProfanityFiltering",setTranslateToLanguages:"SetTranslateToLanguages",setUseTTS:"SetUseTTS"};var kne={},nR={};Object.defineProperty(nR,"__esModule",{value:!0});nR.CommandResponsePayload=void 0;const Nje=e=>JSON.parse(e);class nD{constructor(t){this.privCommandResponse=Nje(t)}get type(){return this.privCommandResponse.type}get command(){return this.privCommandResponse.command}get id(){return this.privCommandResponse.id}get nickname(){return this.privCommandResponse.nickname}get participantId(){return this.privCommandResponse.participantId}get roomid(){return this.privCommandResponse.roomid}get value(){return this.privCommandResponse.value}get token(){return this.privCommandResponse.token}static fromJSON(t){return new nD(t)}}nR.CommandResponsePayload=nD;var Ep={};Object.defineProperty(Ep,"__esModule",{value:!0});Ep.ParticipantPayloadResponse=Ep.ParticipantsListPayloadResponse=void 0;const Dje=e=>JSON.parse(e),Lje=e=>JSON.parse(e);class iD{constructor(t){this.privParticipantsPayloadResponse=Dje(t)}get roomid(){return this.privParticipantsPayloadResponse.roomid}get id(){return this.privParticipantsPayloadResponse.id}get command(){return this.privParticipantsPayloadResponse.command}get participants(){return this.privParticipantsPayloadResponse.participants}get token(){return this.privParticipantsPayloadResponse.token}get translateTo(){return this.privParticipantsPayloadResponse.translateTo}get profanityFilter(){return this.privParticipantsPayloadResponse.profanityFilter}get roomProfanityFilter(){return this.privParticipantsPayloadResponse.roomProfanityFilter}get roomLocked(){return this.privParticipantsPayloadResponse.roomLocked}get muteAll(){return this.privParticipantsPayloadResponse.muteAll}get type(){return this.privParticipantsPayloadResponse.type}static fromJSON(t){return new iD(t)}}Ep.ParticipantsListPayloadResponse=iD;class oD{constructor(t){this.privParticipantPayloadResponse=Lje(t)}get nickname(){return this.privParticipantPayloadResponse.nickname}get locale(){return this.privParticipantPayloadResponse.locale}get usetts(){return this.privParticipantPayloadResponse.usetts}get ismuted(){return this.privParticipantPayloadResponse.ismuted}get ishost(){return this.privParticipantPayloadResponse.ishost}get participantId(){return this.privParticipantPayloadResponse.participantId}get avatar(){return this.privParticipantPayloadResponse.avatar}static fromJSON(t){return new oD(t)}}Ep.ParticipantPayloadResponse=oD;var Rp={};Object.defineProperty(Rp,"__esModule",{value:!0});Rp.TextResponsePayload=Rp.SpeechResponsePayload=void 0;const jje=e=>JSON.parse(e),Fje=e=>JSON.parse(e);class aD{constructor(t){this.privSpeechResponse=jje(t)}get recognition(){return this.privSpeechResponse.recognition}get translations(){return this.privSpeechResponse.translations}get id(){return this.privSpeechResponse.id}get language(){return this.privSpeechResponse.language}get nickname(){return this.privSpeechResponse.nickname}get participantId(){return this.privSpeechResponse.participantId}get roomid(){return this.privSpeechResponse.roomid}get timestamp(){return this.privSpeechResponse.timestamp}get type(){return this.privSpeechResponse.type}get isFinal(){return this.privSpeechResponse.type==="final"}static fromJSON(t){return new aD(t)}}Rp.SpeechResponsePayload=aD;class sD{constructor(t){this.privTextResponse=Fje(t)}get originalText(){return this.privTextResponse.originalText}get translations(){return this.privTextResponse.translations}get id(){return this.privTextResponse.id}get language(){return this.privTextResponse.language}get nickname(){return this.privTextResponse.nickname}get participantId(){return this.privTextResponse.participantId}get roomid(){return this.privTextResponse.roomid}get timestamp(){return this.privTextResponse.timestamp}get type(){return this.privTextResponse.type}static fromJSON(t){return new sD(t)}}Rp.TextResponsePayload=sD;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TextResponsePayload=e.SpeechResponsePayload=e.ParticipantPayloadResponse=e.ParticipantsListPayloadResponse=e.CommandResponsePayload=void 0;var t=nR;Object.defineProperty(e,"CommandResponsePayload",{enumerable:!0,get:function(){return t.CommandResponsePayload}});var r=Ep;Object.defineProperty(e,"ParticipantsListPayloadResponse",{enumerable:!0,get:function(){return r.ParticipantsListPayloadResponse}}),Object.defineProperty(e,"ParticipantPayloadResponse",{enumerable:!0,get:function(){return r.ParticipantPayloadResponse}});var n=Rp;Object.defineProperty(e,"SpeechResponsePayload",{enumerable:!0,get:function(){return n.SpeechResponsePayload}}),Object.defineProperty(e,"TextResponsePayload",{enumerable:!0,get:function(){return n.TextResponsePayload}})})(kne);var u9;function zje(){if(u9)return vg;u9=1,Object.defineProperty(vg,"__esModule",{value:!0}),vg.ConversationServiceAdapter=void 0;const e=Wt(),t=Ct(),r=Lt(),n=O0,i=rR,o=$ne(),a=fl,s=kne;let l=class extends r.ServiceRecognizerBase{constructor(d,u,f,h,v){super(d,u,f,h,v),this.privConnectionConfigPromise=void 0,this.privLastPartialUtteranceId="",this.privConversationServiceConnector=v,this.privConversationAuthentication=d,this.receiveMessageOverride=()=>this.receiveConversationMessageOverride(),this.recognizeOverride=()=>this.noOp(),this.postConnectImplOverride=y=>this.conversationConnectImpl(y),this.configConnectionOverride=()=>this.configConnection(),this.disconnectOverride=()=>this.privDisconnect(),this.privConversationRequestSession=new i.ConversationRequestSession((0,e.createNoDashGuid)()),this.privConversationConnectionFactory=u,this.privConversationIsDisposed=!1}isDisposed(){return super.isDisposed()||this.privConversationIsDisposed}async dispose(d){this.privConversationIsDisposed=!0,this.privConnectionConfigPromise!==void 0&&await(await this.privConnectionConfigPromise).dispose(d),await super.dispose(d)}async sendMessage(d){return(await this.fetchConnection()).send(new n.ConversationConnectionMessage(e.MessageType.Text,d))}async sendMessageAsync(d){await(await this.fetchConnection()).send(new n.ConversationConnectionMessage(e.MessageType.Text,d))}privDisconnect(){if(!this.terminateMessageLoop)return this.cancelRecognition(this.privConversationRequestSession.sessionId,this.privConversationRequestSession.requestId,t.CancellationReason.Error,t.CancellationErrorCode.NoError,"Disconnecting"),this.terminateMessageLoop=!0,Promise.resolve()}async processTypeSpecificMessages(){return!0}cancelRecognition(d,u,f,h,v){this.terminateMessageLoop=!0;const y=new t.ConversationTranslationCanceledEventArgs(f,v,h,void 0,d);try{this.privConversationServiceConnector.canceled&&this.privConversationServiceConnector.canceled(this.privConversationServiceConnector,y)}catch{}}async conversationConnectImpl(d){return this.privConnectionLoop=this.startMessageLoop(),d}async receiveConversationMessageOverride(){if(this.isDisposed()||this.terminateMessageLoop)return Promise.resolve();const d=new e.Deferred;try{const f=await(await this.fetchConnection()).read();if(this.isDisposed()||this.terminateMessageLoop)return d.resolve(),Promise.resolve();if(!f)return this.receiveConversationMessageOverride();const h=this.privConversationRequestSession.sessionId,v=f.conversationMessageType.toLowerCase();let y=!1;try{switch(v){case"info":case"participant_command":case"command":const g=s.CommandResponsePayload.fromJSON(f.textBody);switch(g.command.toLowerCase()){case"participantlist":const E=s.ParticipantsListPayloadResponse.fromJSON(f.textBody),_=E.participants.map(x=>({avatar:x.avatar,displayName:x.nickname,id:x.participantId,isHost:x.ishost,isMuted:x.ismuted,isUsingTts:x.usetts,preferredLanguage:x.locale}));this.privConversationServiceConnector.participantsListReceived&&this.privConversationServiceConnector.participantsListReceived(this.privConversationServiceConnector,new o.ParticipantsListEventArgs(E.roomid,E.token,E.translateTo,E.profanityFilter,E.roomProfanityFilter,E.roomLocked,E.muteAll,_,h));break;case"settranslatetolanguages":this.privConversationServiceConnector.participantUpdateCommandReceived&&this.privConversationServiceConnector.participantUpdateCommandReceived(this.privConversationServiceConnector,new o.ParticipantAttributeEventArgs(g.participantId,a.ConversationTranslatorCommandTypes.setTranslateToLanguages,g.value,h));break;case"setprofanityfiltering":this.privConversationServiceConnector.participantUpdateCommandReceived&&this.privConversationServiceConnector.participantUpdateCommandReceived(this.privConversationServiceConnector,new o.ParticipantAttributeEventArgs(g.participantId,a.ConversationTranslatorCommandTypes.setProfanityFiltering,g.value,h));break;case"setmute":this.privConversationServiceConnector.participantUpdateCommandReceived&&this.privConversationServiceConnector.participantUpdateCommandReceived(this.privConversationServiceConnector,new o.ParticipantAttributeEventArgs(g.participantId,a.ConversationTranslatorCommandTypes.setMute,g.value,h));break;case"setmuteall":this.privConversationServiceConnector.muteAllCommandReceived&&this.privConversationServiceConnector.muteAllCommandReceived(this.privConversationServiceConnector,new o.MuteAllEventArgs(g.value,h));break;case"roomexpirationwarning":this.privConversationServiceConnector.conversationExpiration&&this.privConversationServiceConnector.conversationExpiration(this.privConversationServiceConnector,new t.ConversationExpirationEventArgs(g.value,this.privConversationRequestSession.sessionId));break;case"setusetts":this.privConversationServiceConnector.participantUpdateCommandReceived&&this.privConversationServiceConnector.participantUpdateCommandReceived(this.privConversationServiceConnector,new o.ParticipantAttributeEventArgs(g.participantId,a.ConversationTranslatorCommandTypes.setUseTTS,g.value,h));break;case"setlockstate":this.privConversationServiceConnector.lockRoomCommandReceived&&this.privConversationServiceConnector.lockRoomCommandReceived(this.privConversationServiceConnector,new o.LockRoomEventArgs(g.value,h));break;case"changenickname":this.privConversationServiceConnector.participantUpdateCommandReceived&&this.privConversationServiceConnector.participantUpdateCommandReceived(this.privConversationServiceConnector,new o.ParticipantAttributeEventArgs(g.participantId,a.ConversationTranslatorCommandTypes.changeNickname,g.value,h));break;case"joinsession":const R=s.ParticipantPayloadResponse.fromJSON(f.textBody),P={avatar:R.avatar,displayName:R.nickname,id:R.participantId,isHost:R.ishost,isMuted:R.ismuted,isUsingTts:R.usetts,preferredLanguage:R.locale};this.privConversationServiceConnector.participantJoinCommandReceived&&this.privConversationServiceConnector.participantJoinCommandReceived(this.privConversationServiceConnector,new o.ParticipantEventArgs(P,h));break;case"leavesession":const I={id:g.participantId};this.privConversationServiceConnector.participantLeaveCommandReceived&&this.privConversationServiceConnector.participantLeaveCommandReceived(this.privConversationServiceConnector,new o.ParticipantEventArgs(I,h));break;case"disconnectsession":const O={id:g.participantId};break;case"token":const A=new r.CognitiveTokenAuthentication(()=>{const x=g.token;return Promise.resolve(x)},()=>{const x=g.token;return Promise.resolve(x)});this.authentication=A,this.privConversationServiceConnector.onToken(A);break;default:break}break;case"partial":case"final":const m=s.SpeechResponsePayload.fromJSON(f.textBody),S=v==="final"?t.ResultReason.TranslatedParticipantSpeech:t.ResultReason.TranslatingParticipantSpeech,C=new t.ConversationTranslationResult(m.participantId,this.getTranslations(m.translations),m.language,m.id,S,m.recognition,void 0,void 0,f.textBody,void 0);m.isFinal?((C.text!==void 0&&C.text.length>0||m.id===this.privLastPartialUtteranceId)&&(y=!0),y&&this.privConversationServiceConnector.translationReceived&&this.privConversationServiceConnector.translationReceived(this.privConversationServiceConnector,new o.ConversationReceivedTranslationEventArgs(a.ConversationTranslatorMessageTypes.final,C,h))):C.text!==void 0&&(this.privLastPartialUtteranceId=m.id,this.privConversationServiceConnector.translationReceived&&this.privConversationServiceConnector.translationReceived(this.privConversationServiceConnector,new o.ConversationReceivedTranslationEventArgs(a.ConversationTranslatorMessageTypes.partial,C,h)));break;case"translated_message":const b=s.TextResponsePayload.fromJSON(f.textBody),w=new t.ConversationTranslationResult(b.participantId,this.getTranslations(b.translations),b.language,void 0,void 0,b.originalText,void 0,void 0,void 0,f.textBody,void 0);this.privConversationServiceConnector.translationReceived&&this.privConversationServiceConnector.translationReceived(this.privConversationServiceConnector,new o.ConversationReceivedTranslationEventArgs(a.ConversationTranslatorMessageTypes.instantMessage,w,h));break;default:break}}catch{}return this.receiveConversationMessageOverride()}catch{this.terminateMessageLoop=!0}return d.promise}async startMessageLoop(){if(this.isDisposed())return Promise.resolve();this.terminateMessageLoop=!1;const d=this.receiveConversationMessageOverride();try{return await d}catch(u){return this.cancelRecognition(this.privRequestSession?this.privRequestSession.sessionId:"",this.privRequestSession?this.privRequestSession.requestId:"",t.CancellationReason.Error,t.CancellationErrorCode.RuntimeError,u),null}}configConnection(){return this.isDisposed()?Promise.resolve(void 0):this.privConnectionConfigPromise!==void 0?this.privConnectionConfigPromise.then(d=>d.state()===e.ConnectionState.Disconnected?(this.privConnectionId=null,this.privConnectionConfigPromise=void 0,this.configConnection()):this.privConnectionConfigPromise,()=>(this.privConnectionId=null,this.privConnectionConfigPromise=void 0,this.configConnection())):this.terminateMessageLoop?Promise.resolve(void 0):(this.privConnectionConfigPromise=this.connectImpl().then(d=>d),this.privConnectionConfigPromise)}getTranslations(d){let u;if(d!==void 0){u=new t.Translations;for(const f of d)u.set(f.lang,f.translation)}return u}};return vg.ConversationServiceAdapter=l,vg}var d9;function Bje(){if(d9)return xu;d9=1,Object.defineProperty(xu,"__esModule",{value:!0}),xu.ConversationTranslatorRecognizer=xu.ConversationRecognizerFactory=void 0;const e=Lt(),t=Wt(),r=Zt,n=Ct(),i=Mje(),o=zje();class a{static fromConfig(c,d,u){return new s(c,d,u)}}xu.ConversationRecognizerFactory=a;let s=class extends n.Recognizer{constructor(c,d,u){const f=d;r.Contracts.throwIfNull(f,"speechConfig");const h=c;r.Contracts.throwIfNull(h,"conversationImpl"),super(u,f.properties,new i.ConversationConnectionFactory),this.privConversation=h,this.privIsDisposed=!1,this.privProperties=f.properties.clone(),this.privConnection=n.Connection.fromRecognizer(this),this.privProperties.getProperty(n.PropertyId.WebWorkerLoadType,"on").toLowerCase()==="on"&&typeof Blob<"u"&&typeof Worker<"u"?(this.privSetTimeout=t.Timeout.setTimeout,this.privClearTimeout=t.Timeout.clearTimeout):typeof window<"u"?(this.privSetTimeout=window.setTimeout.bind(window),this.privClearTimeout=window.clearTimeout.bind(window)):(this.privSetTimeout=setTimeout,this.privClearTimeout=clearTimeout)}set connected(c){this.privConnection.connected=c}set disconnected(c){this.privConnection.disconnected=c}get speechRecognitionLanguage(){return this.privSpeechRecognitionLanguage}get properties(){return this.privProperties}isDisposed(){return this.privIsDisposed}connect(c,d,u){try{r.Contracts.throwIfDisposed(this.privIsDisposed),r.Contracts.throwIfNullOrWhitespace(c,"token"),this.privReco.conversationTranslatorToken=c,this.resetConversationTimeout(),this.privReco.connectAsync(d,u)}catch(f){if(u)if(f instanceof Error){const h=f;u(h.name+": "+h.message)}else u(f)}}disconnect(c,d){try{r.Contracts.throwIfDisposed(this.privIsDisposed),this.privTimeoutToken!==void 0&&this.privClearTimeout(this.privTimeoutToken),this.privReco.disconnect().then(()=>{c&&c()},u=>{d&&d(u)})}catch(u){if(d)if(u instanceof Error){const f=u;d(f.name+": "+f.message)}else d(u);this.dispose(!0).catch(f=>{t.Events.instance.onEvent(new t.BackgroundEvent(f))})}}sendRequest(c,d,u){try{r.Contracts.throwIfDisposed(this.privIsDisposed),this.sendMessage(c,d,u)}catch(f){if(u)if(f instanceof Error){const h=f;u(h.name+": "+h.message)}else u(f);this.dispose(!0).catch(h=>{t.Events.instance.onEvent(new t.BackgroundEvent(h))})}}onToken(c){this.privConversation.onToken(c)}async close(){this.privIsDisposed||(this.privConnection&&(this.privConnection.closeConnection(),this.privConnection.close()),this.privConnection=void 0,await this.dispose(!0))}async dispose(c){this.privIsDisposed||c&&(this.privTimeoutToken!==void 0&&this.privClearTimeout(this.privTimeoutToken),this.privIsDisposed=!0,this.privConnection&&(this.privConnection.closeConnection(),this.privConnection.close(),this.privConnection=void 0),await super.dispose(c))}createRecognizerConfig(c){return new e.RecognizerConfig(c,this.privProperties)}createServiceRecognizer(c,d,u,f){const h=u;return new o.ConversationServiceAdapter(c,d,h,f,this)}sendMessage(c,d,u){const f=this.privReco;((v,y,g)=>{v!==void 0?v.then(()=>{try{y&&y()}catch(m){g&&g(`'Unhandled error on promise callback: ${m}'`)}},m=>{try{g&&g(m)}catch{}}):g&&g("Null promise")})(f.sendMessageAsync(c),d,u),this.resetConversationTimeout()}resetConversationTimeout(){this.privTimeoutToken!==void 0&&this.privClearTimeout(this.privTimeoutToken),this.privTimeoutToken=this.privSetTimeout(()=>{this.sendRequest(this.privConversation.getKeepAlive())},6e4)}};return xu.ConversationTranslatorRecognizer=s,xu}var gg={},f9;function Hje(){if(f9)return gg;f9=1,Object.defineProperty(gg,"__esModule",{value:!0}),gg.TranscriberRecognizer=void 0;const e=Wt(),t=Zt,r=Ct(),n=Lt(),i=ia;let o=class extends r.Recognizer{constructor(s,l){const c=s;t.Contracts.throwIfNull(c,"speechTranslationConfig");const d=l;t.Contracts.throwIfNull(d,"audioConfigImpl"),t.Contracts.throwIfNullOrWhitespace(c.speechRecognitionLanguage,r.PropertyId[r.PropertyId.SpeechServiceConnection_RecoLanguage]),super(l,c.properties,new n.TranscriberConnectionFactory),this.privDisposedRecognizer=!1,this.isMeetingRecognizer=!1}get speechRecognitionLanguage(){return t.Contracts.throwIfDisposed(this.privDisposedRecognizer),this.properties.getProperty(r.PropertyId.SpeechServiceConnection_RecoLanguage)}get properties(){return this.privProperties}get authorizationToken(){return this.properties.getProperty(r.PropertyId.SpeechServiceAuthorization_Token)}set authorizationToken(s){t.Contracts.throwIfNullOrWhitespace(s,"token"),this.properties.setProperty(r.PropertyId.SpeechServiceAuthorization_Token,s)}set conversation(s){t.Contracts.throwIfNullOrUndefined(s,"Conversation"),this.isMeetingRecognizer=!1,this.privConversation=s}getConversationInfo(){return t.Contracts.throwIfNullOrUndefined(this.privConversation,"Conversation"),this.privConversation.conversationInfo}set meeting(s){t.Contracts.throwIfNullOrUndefined(s,"Meeting"),this.isMeetingRecognizer=!0,this.privMeeting=s}getMeetingInfo(){return t.Contracts.throwIfNullOrUndefined(this.privMeeting,"Meeting"),this.privMeeting.meetingInfo}IsMeetingRecognizer(){return this.isMeetingRecognizer}startContinuousRecognitionAsync(s,l){(0,e.marshalPromiseToCallbacks)(this.startContinuousRecognitionAsyncImpl(i.RecognitionMode.Conversation),s,l)}stopContinuousRecognitionAsync(s,l){(0,e.marshalPromiseToCallbacks)(this.stopContinuousRecognitionAsyncImpl(),s,l)}async close(){this.privDisposedRecognizer||await this.dispose(!0)}async pushConversationEvent(s,l){const c=this.privReco;t.Contracts.throwIfNullOrUndefined(c,"serviceRecognizer"),await c.sendSpeechEventAsync(s,l)}async pushMeetingEvent(s,l){const c=this.privReco;t.Contracts.throwIfNullOrUndefined(c,"serviceRecognizer"),await c.sendMeetingSpeechEventAsync(s,l)}async enforceAudioGating(){const c=(await this.audioConfig.format).channels;if(c===1){if(this.properties.getProperty("f0f5debc-f8c9-4892-ac4b-90a7ab359fd2","false").toLowerCase()!=="true")throw new Error("Single channel audio configuration for MeetingTranscriber is currently under private preview, please contact [email protected] for more details")}else if(c!==8)throw new Error(`Unsupported audio configuration: Detected ${c}-channel audio`)}connectMeetingCallbacks(s){this.isMeetingRecognizer=!0,this.canceled=(l,c)=>{s.canceled&&s.canceled(s,c)},this.recognizing=(l,c)=>{s.transcribing&&s.transcribing(s,c)},this.recognized=(l,c)=>{s.transcribed&&s.transcribed(s,c)},this.sessionStarted=(l,c)=>{s.sessionStarted&&s.sessionStarted(s,c)},this.sessionStopped=(l,c)=>{s.sessionStopped&&s.sessionStopped(s,c)}}disconnectCallbacks(){this.canceled=void 0,this.recognizing=void 0,this.recognized=void 0,this.sessionStarted=void 0,this.sessionStopped=void 0}async dispose(s){this.privDisposedRecognizer||(s&&(this.privDisposedRecognizer=!0,await this.implRecognizerStop()),await super.dispose(s))}createRecognizerConfig(s){return new n.RecognizerConfig(s,this.properties)}createServiceRecognizer(s,l,c,d){const u=c;return new n.TranscriptionServiceRecognizer(s,l,u,d,this)}};return gg.TranscriberRecognizer=o,gg}var p9;function Vje(){return p9||(p9=1,function(e){Object.defineProperty(e,"__esMo
443dule",{value:!0}),e.InternalParticipants=e.ConversationTranslatorMessageTypes=e.ConversationTranslatorCommandTypes=e.ParticipantsListEventArgs=e.ParticipantEventArgs=e.ParticipantAttributeEventArgs=e.MuteAllEventArgs=e.LockRoomEventArgs=e.ConversationReceivedTranslationEventArgs=e.TranscriberRecognizer=e.ConversationRecognizerFactory=e.ConversationConnectionConfig=e.ConversationManager=void 0;var t=xje();Object.defineProperty(e,"ConversationManager",{enumerable:!0,get:function(){return t.ConversationManager}});var r=ah;Object.defineProperty(e,"ConversationConnectionConfig",{enumerable:!0,get:function(){return r.ConversationConnectionConfig}});var n=Bje();Object.defineProperty(e,"ConversationRecognizerFactory",{enumerable:!0,get:function(){return n.ConversationRecognizerFactory}});var i=Hje();Object.defineProperty(e,"TranscriberRecognizer",{enumerable:!0,get:function(){return i.TranscriberRecognizer}});var o=$ne();Object.defineProperty(e,"ConversationReceivedTranslationEventArgs",{enumerable:!0,get:function(){return o.ConversationReceivedTranslationEventArgs}}),Object.defineProperty(e,"LockRoomEventArgs",{enumerable:!0,get:function(){return o.LockRoomEventArgs}}),Object.defineProperty(e,"MuteAllEventArgs",{enumerable:!0,get:function(){return o.MuteAllEventArgs}}),Object.defineProperty(e,"ParticipantAttributeEventArgs",{enumerable:!0,get:function(){return o.ParticipantAttributeEventArgs}}),Object.defineProperty(e,"ParticipantEventArgs",{enumerable:!0,get:function(){return o.ParticipantEventArgs}}),Object.defineProperty(e,"ParticipantsListEventArgs",{enumerable:!0,get:function(){return o.ParticipantsListEventArgs}});var a=fl;Object.defineProperty(e,"ConversationTranslatorCommandTypes",{enumerable:!0,get:function(){return a.ConversationTranslatorCommandTypes}}),Object.defineProperty(e,"ConversationTranslatorMessageTypes",{enumerable:!0,get:function(){return a.ConversationTranslatorMessageTypes}}),Object.defineProperty(e,"InternalParticipants",{enumerable:!0,get:function(){return a.InternalParticipants}})}(K2)),K2}var lD={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SynthesisAudioMetadata=e.MetadataType=void 0,function(r){r.WordBoundary="WordBoundary",r.Bookmark="Bookmark",r.Viseme="Viseme",r.SentenceBoundary="SentenceBoundary",r.SessionEnd="SessionEnd",r.AvatarSignal="TalkingAvatarSignal"}(e.MetadataType||(e.MetadataType={}));class t{constructor(n){this.privSynthesisAudioMetadata=JSON.parse(n)}static fromJSON(n){return new t(n)}get Metadata(){return this.privSynthesisAudioMetadata.Metadata}}e.SynthesisAudioMetadata=t})(lD);var mg={},xs={};Object.defineProperty(xs,"__esModule",{value:!0});xs.SynthesisStartedEvent=xs.ConnectingToSynthesisServiceEvent=xs.SynthesisTriggeredEvent=xs.SpeechSynthesisEvent=void 0;const h9=Wt();let iR=class extends h9.PlatformEvent{constructor(t,r,n=h9.EventType.Info){super(t,n),this.privRequestId=r}get requestId(){return this.privRequestId}};xs.SpeechSynthesisEvent=iR;class Uje extends iR{constructor(t,r,n){super("SynthesisTriggeredEvent",t),this.privSessionAudioDestinationId=r,this.privTurnAudioDestinationId=n}get audioSessionDestinationId(){return this.privSessionAudioDestinationId}get audioTurnDestinationId(){return this.privTurnAudioDestinationId}}xs.SynthesisTriggeredEvent=Uje;class Wje extends iR{constructor(t,r){super("ConnectingToSynthesisServiceEvent",t),this.privAuthFetchEventId=r}get authFetchEventId(){return this.privAuthFetchEventId}}xs.ConnectingToSynthesisServiceEvent=Wje;class qje extends iR{constructor(t,r){super("SynthesisStartedEvent",t),this.privAuthFetchEventId=r}get authFetchEventId(){return this.privAuthFetchEventId}}xs.SynthesisStartedEvent=qje;var v9;function Gje(){if(v9)return mg;v9=1,Object.defineProperty(mg,"__esModule",{value:!0}),mg.SynthesisTurn=void 0;const e=Wt(),t=Ci,r=Ct(),n=lD,i=xs;let o=class N${constructor(){this.privIsDisposed=!1,this.privIsSynthesizing=!1,this.privIsSynthesisEnded=!1,this.privBytesReceived=0,this.privInTurn=!1,this.privTextOffset=0,this.privNextSearchTextIndex=0,this.privSentenceOffset=0,this.privNextSearchSentenceIndex=0,this.privRequestId=(0,e.createNoDashGuid)(),this.privTurnDeferral=new e.Deferred,this.privTurnDeferral.resolve()}get requestId(){return this.privRequestId}get streamId(){return this.privStreamId}set streamId(s){this.privStreamId=s}get audioOutputFormat(){return this.privAudioOutputFormat}set audioOutputFormat(s){this.privAudioOutputFormat=s}get turnCompletionPromise(){return this.privTurnDeferral.promise}get isSynthesisEnded(){return this.privIsSynthesisEnded}get isSynthesizing(){return this.privIsSynthesizing}get currentTextOffset(){return this.privTextOffset}get currentSentenceOffset(){return this.privSentenceOffset}get bytesReceived(){return this.privBytesReceived}get audioDuration(){return this.privAudioDuration}get extraProperties(){if(this.privWebRTCSDP){const s=new r.PropertyCollection;return s.setProperty(r.PropertyId.TalkingAvatarService_WebRTC_SDP,this.privWebRTCSDP),s}}async getAllReceivedAudio(){return this.privReceivedAudio?Promise.resolve(this.privReceivedAudio):this.privIsSynthesisEnded?(await this.readAllAudioFromStream(),Promise.resolve(this.privReceivedAudio)):null}
vendor: 35,235 bytes, lines 443-444
443async getAllReceivedAudioWithHeader(){if(this.privReceivedAudioWithHeader)return this.privReceivedAudioWithHeader;if(!this.privIsSynthesisEnded)return null;if(this.audioOutputFormat.hasHeader){const s=await this.getAllReceivedAudio();return this.privReceivedAudioWithHeader=this.audioOutputFormat.addHeader(s),this.privReceivedAudioWithHeader}else return this.getAllReceivedAudio()}startNewSynthesis(s,l,c,d){this.privIsSynthesisEnded=!1,this.privIsSynthesizing=!0,this.privRequestId=s,this.privRawText=l,this.privIsSSML=c,this.privAudioOutputStream=new t.PullAudioOutputStreamImpl,this.privAudioOutputStream.format=this.privAudioOutputFormat,this.privReceivedAudio=null,this.privReceivedAudioWithHeader=null,this.privBytesReceived=0,this.privTextOffset=0,this.privNextSearchTextIndex=0,this.privSentenceOffset=0,this.privNextSearchSentenceIndex=0,this.privPartialVisemeAnimation="",this.privWebRTCSDP="",d!==void 0&&(this.privTurnAudioDestination=d,this.privTurnAudioDestination.format=this.privAudioOutputFormat),this.onEvent(new i.SynthesisTriggeredEvent(this.requestId,void 0,d===void 0?void 0:d.id()))}onPreConnectionStart(s){this.privAuthFetchEventId=s,this.onEvent(new i.ConnectingToSynthesisServiceEvent(this.privRequestId,this.privAuthFetchEventId))}onAuthCompleted(s){s&&this.onComplete()}onConnectionEstablishCompleted(s){if(s===200){this.onEvent(new i.SynthesisStartedEvent(this.requestId,this.privAuthFetchEventId)),this.privBytesReceived=0;return}else s===403&&this.onComplete()}onServiceResponseMessage(s){const l=JSON.parse(s);this.streamId=l.audio.streamId}onServiceTurnEndResponse(){this.privInTurn=!1,this.privTurnDeferral.resolve(),this.onComplete()}onServiceTurnStartResponse(s){this.privTurnDeferral&&this.privInTurn&&(this.privTurnDeferral.reject("Another turn started before current completed."),this.privTurnDeferral.promise.then().catch(()=>{})),this.privInTurn=!0,this.privTurnDeferral=new e.Deferred;const l=JSON.parse(s);l.webrtc&&(this.privWebRTCSDP=l.webrtc.connectionString)}onAudioChunkReceived(s){this.isSynthesizing&&(this.privAudioOutputStream.write(s),this.privBytesReceived+=s.byteLength,this.privTurnAudioDestination!==void 0&&this.privTurnAudioDestination.write(s))}onTextBoundaryEvent(s){this.updateTextOffset(s.Data.text.Text,s.Type)}onVisemeMetadataReceived(s){s.Data.AnimationChunk!==void 0&&(this.privPartialVisemeAnimation+=s.Data.AnimationChunk)}onSessionEnd(s){this.privAudioDuration=s.Data.Offset}async constructSynthesisResult(){const s=await this.getAllReceivedAudioWithHeader();return new r.SpeechSynthesisResult(this.requestId,r.ResultReason.SynthesizingAudioCompleted,s,void 0,this.extraProperties,this.audioDuration)}dispose(){this.privIsDisposed||(this.privIsDisposed=!0)}onStopSynthesizing(){this.onComplete()}getAndClearVisemeAnimation(){const s=this.privPartialVisemeAnimation;return this.privPartialVisemeAnimation="",s}onEvent(s){e.Events.instance.onEvent(s)}static isXmlTag(s){return s.length>=2&&s[0]==="<"&&s[s.length-1]===">"}updateTextOffset(s,l){l===n.MetadataType.WordBoundary?(this.privTextOffset=this.privRawText.indexOf(s,this.privNextSearchTextIndex),this.privTextOffset>=0&&(this.privNextSearchTextIndex=this.privTextOffset+s.length,this.privIsSSML&&this.withinXmlTag(this.privTextOffset)&&!N$.isXmlTag(s)&&this.updateTextOffset(s,l))):(this.privSentenceOffset=this.privRawText.indexOf(s,this.privNextSearchSentenceIndex),this.privSentenceOffset>=0&&(this.privNextSearchSentenceIndex=this.privSentenceOffset+s.length,this.privIsSSML&&this.withinXmlTag(this.privSentenceOffset)&&!N$.isXmlTag(s)&&this.updateTextOffset(s,l)))}onComplete(){this.privIsSynthesizing&&(this.privIsSynthesizing=!1,this.privIsSynthesisEnded=!0,this.privAudioOutputStream.close(),this.privInTurn=!1,this.privTurnAudioDestination!==void 0&&(this.privTurnAudioDestination.close(),this.privTurnAudioDestination=void 0))}async readAllAudioFromStream(){if(this.privIsSynthesisEnded){this.privReceivedAudio=new ArrayBuffer(this.bytesReceived);try{await this.privAudioOutputStream.read(this.privReceivedAudio)}catch{this.privReceivedAudio=new ArrayBuffer(0)}}}withinXmlTag(s){return this.privRawText.indexOf("<",s+1)>this.privRawText.indexOf(">",s+1)}};return mg.SynthesisTurn=o,mg}var yg={},g9;function Kje(){if(g9)return yg;g9=1,Object.defineProperty(yg,"__esModule",{value:!0}),yg.SynthesisAdapterBase=void 0;const e=Wt(),t=Ct(),r=Lt(),n=$l;let i=class{constructor(a,s,l,c){if(this.speakOverride=void 0,this.receiveMessageOverride=void 0,this.connectImplOverride=void 0,this.configConnectionOverride=void 0,this.privConnectionConfigurationPromise=void 0,!a)throw new e.ArgumentNullError("authentication");if(!s)throw new e.ArgumentNullError("connectionFactory");if(!l)throw new e.ArgumentNullError("synthesizerConfig");this.privAuthentication=a,this.privConnectionFactory=s,this.privSynthesizerConfig=l,this.privIsDisposed=!1,this.privSessionAudioDestination=c,this.privSynthesisTurn=new r.SynthesisTurn,this.privConnectionEvents=new e.EventSource,this.privServiceEvents=new e.EventSource,this.privSynthesisContext=new r.SynthesisContext,this.privAgentConfig=new r.AgentConfig,this.connectionEvents.attach(d=>{if(d.name==="ConnectionClosedEvent"){const u=d;u.statusCode!==1e3&&this.cancelSynthesisLocal(t.CancellationReason.Error,u.statusCode===1007?t.CancellationErrorCode.BadRequestParameters:t.CancellationErrorCode.ConnectionFailure,`${u.reason} websocket error code: ${u.statusCode}`)}})}get synthesizerConfig(){return this.privSynthesizerConfig}get synthesisContext(){return this.privSynthesisContext}get agentConfig(){return this.privAgentConfig}get connectionEvents(){return this.privConnectionEvents}get serviceEvents(){return this.privServiceEvents}set activityTemplate(a){this.privActivityTemplate=a}get activityTemplate(){return this.privActivityTemplate}set audioOutputFormat(a){this.privAudioOutputFormat=a,this.privSynthesisTurn.audioOutputFormat=a,this.privSessionAudioDestination!==void 0&&(this.privSessionAudioDestination.format=a),this.synthesisContext!==void 0&&(this.synthesisContext.audioOutputFormat=a)}isDisposed(){return this.privIsDisposed}async dispose(a){this.privIsDisposed=!0,this.privSessionAudioDestination!==void 0&&this.privSessionAudioDestination.close(),this.privConnectionConfigurationPromise!==void 0&&await(await this.privConnectionConfigurationPromise).dispose(a)}async connect(){await this.connectImpl()}async sendNetworkMessage(a,s){const l=typeof s=="string"?e.MessageType.Text:e.MessageType.Binary,c=typeof s=="string"?"application/json":"";return(await this.fetchConnection()).send(new n.SpeechConnectionMessage(l,a,this.privSynthesisTurn.requestId,c,s))}async Speak(a,s,l,c,d,u){let f;if(s?f=a:f=this.privSynthesizer.buildSsml(a),this.speakOverride!==void 0)return this.speakOverride(f,l,c,d);this.privSuccessCallback=c,this.privErrorCallback=d,this.privSynthesisTurn.startNewSynthesis(l,a,s,u);try{await this.connectImpl();const h=await this.fetchConnection();await this.sendSynthesisContext(h),await this.sendSsmlMessage(h,f,l),this.onSynthesisStarted(l),this.receiveMessage()}catch(h){return this.cancelSynthesisLocal(t.CancellationReason.Error,t.CancellationErrorCode.ConnectionFailure,h),Promise.reject(h)}}async stopSpeaking(){return await this.connectImpl(),(await this.fetchConnection()).send(new n.SpeechConnectionMessage(e.MessageType.Text,"synthesis.control",this.privSynthesisTurn.requestId,"application/json",JSON.stringify({action:"stop"})))}cancelSynthesis(a,s,l,c){const d=new t.PropertyCollection;d.setProperty(r.CancellationErrorCodePropertyName,t.CancellationErrorCode[l]);const u=new t.SpeechSynthesisResult(a,t.ResultReason.Canceled,void 0,c,d);if(this.onSynthesisCancelled(u),this.privSuccessCallback)try{this.privSuccessCallback(u)}catch{}}cancelSynthesisLocal(a,s,l){this.privSynthesisTurn.isSynthesizing&&(this.privSynthesisTurn.onStopSynthesizing(),this.cancelSynthesis(this.privSynthesisTurn.requestId,a,s,l))}processTypeSpecificMessages(a){return!0}async receiveMessage(){try{const s=await(await this.fetchConnection()).read();if(this.receiveMessageOverride!==void 0)return this.receiveMessageOverride();if(this.privIsDisposed)return;if(!s)return this.privSynthesisTurn.isSynthesizing?this.receiveMessage():void 0;const l=n.SpeechConnectionMessage.fromConnectionMessage(s);if(l.requestId.toLowerCase()===this.privSynthesisTurn.requestId.toLowerCase())switch(l.path.toLowerCase()){case"turn.start":this.privSynthesisTurn.onServiceTurnStartResponse(l.textBody);break;case"response":this.privSynthesisTurn.onServiceResponseMessage(l.textBody);break;case"audio":this.privSynthesisTurn.streamId.toLowerCase()===l.streamId.toLowerCase()&&l.binaryBody&&(this.privSynthesisTurn.onAudioChunkReceived(l.binaryBody),this.onSynthesizing(l.binaryBody),this.privSessionAudioDestination!==void 0&&this.privSessionAudioDestination.write(l.binaryBody));break;case"audio.metadata":const c=r.SynthesisAudioMetadata.fromJSON(l.textBody).Metadata;for(const u of c)switch(u.Type){case r.MetadataType.WordBoundary:case r.MetadataType.SentenceBoundary:this.privSynthesisTurn.onTextBoundaryEvent(u);const f=new t.SpeechSynthesisWordBoundaryEventArgs(u.Data.Offset,u.Data.Duration,u.Data.text.Text,u.Data.text.Length,u.Type===r.MetadataType.WordBoundary?this.privSynthesisTurn.currentTextOffset:this.privSynthesisTurn.currentSentenceOffset,u.Data.text.BoundaryType);this.onWordBoundary(f);break;case r.MetadataType.Bookmark:const h=new t.SpeechSynthesisBookmarkEventArgs(u.Data.Offset,u.Data.Bookmark);this.onBookmarkReached(h);break;case r.MetadataType.Viseme:if(this.privSynthesisTurn.onVisemeMetadataReceived(u),u.Data.IsLastAnimation){const v=new t.SpeechSynthesisVisemeEventArgs(u.Data.Offset,u.Data.VisemeId,this.privSynthesisTurn.getAndClearVisemeAnimation());this.onVisemeReceived(v)}break;case r.MetadataType.AvatarSignal:this.onAvatarEvent(u);break;case r.MetadataType.SessionEnd:this.privSynthesisTurn.onSessionEnd(u);break}break;case"turn.end":this.privSynthesisTurn.onServiceTurnEndResponse();let d;try{d=await this.privSynthesisTurn.constructSynthesisResult(),this.privSuccessCallback&&this.privSuccessCallback(d)}catch(u){this.privErrorCallback&&this.privErrorCallback(u)}this.onSynthesisCompleted(d);break;default:this.processTypeSpecificMessages(l)||this.privServiceEvents&&this.serviceEvents.onEvent(new e.ServiceEvent(l.path.toLowerCase(),l.textBody))}return this.receiveMessage()}catch{}}sendSynthesisContext(a){this.setSynthesisContextSynthesisSection();const s=this.synthesisContext.toJSON();if(s)return a.send(new n.SpeechConnectionMessage(e.MessageType.Text,"synthesis.context",this.privSynthesisTurn.requestId,"application/json",s))}setSpeechConfigSynthesisSection(){}connectImpl(a=!1){if(this.privConnectionPromise!=null)return this.privConnectionPromise.then(l=>l.state()===e.ConnectionState.Disconnected?(this.privConnectionId=null,this.privConnectionPromise=null,this.connectImpl()):this.privConnectionPromise,()=>(this.privConnectionId=null,this.privConnectionPromise=null,this.connectImpl()));this.privAuthFetchEventId=(0,e.createNoDashGuid)(),this.privConnectionId=(0,e.createNoDashGuid)(),this.privSynthesisTurn.onPreConnectionStart(this.privAuthFetchEventId);const s=a?this.privAuthentication.fetchOnExpiry(this.privAuthFetchEventId):this.privAuthentication.fetch(this.privAuthFetchEventId);return this.privConnectionPromise=s.then(async l=>{this.privSynthesisTurn.onAuthCompleted(!1);const c=await this.privConnectionFactory.create(this.privSynthesizerConfig,l,this.privConnectionId);c.events.attach(u=>{this.connectionEvents.onEvent(u)});const d=await c.open();return d.statusCode===200?(this.privSynthesisTurn.onConnectionEstablishCompleted(d.statusCode),Promise.resolve(c)):d.statusCode===403&&!a?this.connectImpl(!0):(this.privSynthesisTurn.onConnectionEstablishCompleted(d.statusCode),Promise.reject(`Unable to contact server. StatusCode: ${d.statusCode},
444                    ${this.privSynthesizerConfig.parameters.getProperty(t.PropertyId.SpeechServiceConnection_Url)} Reason: ${d.reason}`))},l=>{throw this.privSynthesisTurn.onAuthCompleted(!0),new Error(l)}),this.privConnectionPromise.catch(()=>{}),this.privConnectionPromise}sendSpeechServiceConfig(a,s){if(s)return a.send(new n.SpeechConnectionMessage(e.MessageType.Text,"speech.config",this.privSynthesisTurn.requestId,"application/json",s))}sendSsmlMessage(a,s,l){return a.send(new n.SpeechConnectionMessage(e.MessageType.Text,"ssml",l,"application/ssml+xml",s))}async fetchConnection(){return this.privConnectionConfigurationPromise!==void 0?this.privConnectionConfigurationPromise.then(a=>a.state()===e.ConnectionState.Disconnected?(this.privConnectionId=null,this.privConnectionConfigurationPromise=void 0,this.fetchConnection()):this.privConnectionConfigurationPromise,()=>(this.privConnectionId=null,this.privConnectionConfigurationPromise=void 0,this.fetchConnection())):(this.privConnectionConfigurationPromise=this.configureConnection(),await this.privConnectionConfigurationPromise)}async configureConnection(){const a=await this.connectImpl();return this.configConnectionOverride!==void 0?this.configConnectionOverride(a):(this.setSpeechConfigSynthesisSection(),await this.sendSpeechServiceConfig(a,this.privSynthesizerConfig.SpeechServiceConfig.serialize()),a)}onAvatarEvent(a){}onSynthesisStarted(a){}onSynthesizing(a){}onSynthesisCancelled(a){}onSynthesisCompleted(a){}onWordBoundary(a){}onVisemeReceived(a){}onBookmarkReached(a){}};return yg.SynthesisAdapterBase=i,i.telemetryDataEnabled=!0,yg}var Sg={},m9;function Yje(){if(m9)return Sg;m9=1,Object.defineProperty(Sg,"__esModule",{value:!0}),Sg.AvatarSynthesisAdapter=void 0;const e=Ct(),t=Lt();let r=class extends t.SynthesisAdapterBase{constructor(i,o,a,s,l){super(i,o,a,void 0),this.privAvatarSynthesizer=s,this.privSynthesizer=s,this.privAvatarConfig=l}setSynthesisContextSynthesisSection(){this.privSynthesisContext.setSynthesisSection(void 0)}setSpeechConfigSynthesisSection(){var i,o,a,s,l,c,d,u,f,h,v,y,g,m,S,C,b;this.privSynthesizerConfig.synthesisVideoSection={format:{bitrate:(i=this.privAvatarConfig.videoFormat)==null?void 0:i.bitrate,codec:(o=this.privAvatarConfig.videoFormat)==null?void 0:o.codec,crop:{bottomRight:{x:(l=(s=(a=this.privAvatarConfig.videoFormat)==null?void 0:a.cropRange)==null?void 0:s.bottomRight)==null?void 0:l.x,y:(u=(d=(c=this.privAvatarConfig.videoFormat)==null?void 0:c.cropRange)==null?void 0:d.bottomRight)==null?void 0:u.y},topLeft:{x:(v=(h=(f=this.privAvatarConfig.videoFormat)==null?void 0:f.cropRange)==null?void 0:h.topLeft)==null?void 0:v.x,y:(m=(g=(y=this.privAvatarConfig.videoFormat)==null?void 0:y.cropRange)==null?void 0:g.topLeft)==null?void 0:m.y}},resolution:{height:(S=this.privAvatarConfig.videoFormat)==null?void 0:S.height,width:(C=this.privAvatarConfig.videoFormat)==null?void 0:C.width}},protocol:{name:"WebRTC",webrtcConfig:{clientDescription:btoa(this.privSynthesizerConfig.parameters.getProperty(e.PropertyId.TalkingAvatarService_WebRTC_SDP)),iceServers:this.privAvatarConfig.remoteIceServers??this.privAvatarSynthesizer.iceServers}},talkingAvatar:{background:{color:this.privAvatarConfig.backgroundColor,image:{url:(b=this.privAvatarConfig.backgroundImage)==null?void 0:b.toString()}},character:this.privAvatarConfig.character,customized:this.privAvatarConfig.customized,style:this.privAvatarConfig.style,useBuiltInVoice:this.privAvatarConfig.useBuiltInVoice}}}onAvatarEvent(i){if(this.privAvatarSynthesizer.avatarEventReceived){const o=new e.AvatarEventArgs(i.Data.Offset,i.Data.Name);try{this.privAvatarSynthesizer.avatarEventReceived(this.privAvatarSynthesizer,o)}catch{}}}};return Sg.AvatarSynthesisAdapter=r,Sg}var Cg={},y9;function Xje(){if(y9)return Cg;y9=1,Object.defineProperty(Cg,"__esModule",{value:!0}),Cg.SpeechSynthesisAdapter=void 0;const e=Ct(),t=Lt();let r=class extends t.SynthesisAdapterBase{constructor(i,o,a,s,l){super(i,o,a,l),this.privSpeechSynthesizer=s,this.privSynthesizer=s}setSynthesisContextSynthesisSection(){this.privSynthesisContext.setSynthesisSection(this.privSpeechSynthesizer)}onSynthesisStarted(i){const o=new e.SpeechSynthesisEventArgs(new e.SpeechSynthesisResult(i,e.ResultReason.SynthesizingAudioStarted));this.privSpeechSynthesizer.synthesisStarted&&this.privSpeechSynthesizer.synthesisStarted(this.privSpeechSynthesizer,o)}onSynthesizing(i){if(this.privSpeechSynthesizer.synthesizing)try{const o=this.privSynthesisTurn.audioOutputFormat.addHeader(i),a=new e.SpeechSynthesisEventArgs(new e.SpeechSynthesisResult(this.privSynthesisTurn.requestId,e.ResultReason.SynthesizingAudio,o));this.privSpeechSynthesizer.synthesizing(this.privSpeechSynthesizer,a)}catch{}}onSynthesisCancelled(i){if(this.privSpeechSynthesizer.SynthesisCanceled){const o=new e.SpeechSynthesisEventArgs(i);try{this.privSpeechSynthesizer.SynthesisCanceled(this.privSpeechSynthesizer,o)}catch{}}}onSynthesisCompleted(i){if(this.privSpeechSynthesizer.synthesisCompleted)try{this.privSpeechSynthesizer.synthesisCompleted(this.privSpeechSynthesizer,new e.SpeechSynthesisEventArgs(i))}catch{}}onWordBoundary(i){if(this.privSpeechSynthesizer.wordBoundary)try{this.privSpeechSynthesizer.wordBoundary(this.privSpeechSynthesizer,i)}catch{}}onVisemeReceived(i){if(this.privSpeechSynthesizer.visemeReceived)try{this.privSpeechSynthesizer.visemeReceived(this.privSpeechSynthesizer,i)}catch{}}onBookmarkReached(i){if(this.privSpeechSynthesizer.bookmarkReached)try{this.privSpeechSynthesizer.bookmarkReached(this.privSpeechSynthesizer,i)}catch{}}};return Cg.SpeechSynthesisAdapter=r,Cg}var bg={},S9;function Qje(){if(S9)return bg;S9=1,Object.defineProperty(bg,"__esModule",{value:!0}),bg.SynthesisRestAdapter=void 0;const e=hi(),t=Ct(),r=vs(),n=pi;let i=class{constructor(a,s){let l=a.parameters.getProperty(t.PropertyId.SpeechServiceConnection_Endpoint,void 0);if(!l){const d=a.parameters.getProperty(t.PropertyId.SpeechServiceConnection_Region,"westus"),u=r.ConnectionFactoryBase.getHostSuffix(d);l=a.parameters.getProperty(t.PropertyId.SpeechServiceConnection_Host,`https://${d}.tts.speech${u}`)}this.privUri=`${l}/cognitiveservices/voices/list`;const c=e.RestConfigBase.requestOptions;this.privRestAdapter=new e.RestMessageAdapter(c),this.privAuthentication=s}getVoicesList(a){return this.privRestAdapter.setHeaders(n.HeaderNames.ConnectionId,a),this.privAuthentication.fetch(a).then(s=>(this.privRestAdapter.setHeaders(s.headerName,s.token),this.privRestAdapter.request(e.RestRequestType.Get,this.privUri)))}};return bg.SynthesisRestAdapter=i,bg}var X2={},C9;function Jje(){return C9||(C9=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SynthesizerConfig=e.SynthesisServiceType=void 0;const t=Lt();var r;(function(i){i[i.Standard=0]="Standard",i[i.Custom=1]="Custom"})(r=e.SynthesisServiceType||(e.SynthesisServiceType={}));class n{constructor(o,a){this.privSynthesisServiceType=r.Standard,this.avatarEnabled=!1,this.privSpeechServiceConfig=o||new t.SpeechServiceConfig(new t.Context(null)),this.privParameters=a}get parameters(){return this.privParameters}get synthesisServiceType(){return this.privSynthesisServiceType}set synthesisServiceType(o){this.privSynthesisServiceType=o}set synthesisVideoSection(o){this.privSpeechServiceConfig.Context.synthesis={video:o}}get SpeechServiceConfig(){return this.privSpeechServiceConfig}setContextFromJson(o){const a=JSON.parse(o);a.system&&(this.privSpeechServiceConfig.Context.system=a.system),a.os&&(this.privSpeechServiceConfig.Context.os=a.os),a.audio&&(this.privSpeechServiceConfig.Context.audio=a.audio),a.synthesis&&(this.privSpeechServiceConfig.Context.synthesis=a.synthesis)}}e.SynthesizerConfig=n}(X2)),X2}var wg={},b9;function Zje(){if(b9)return wg;b9=1,Object.defineProperty(wg,"__esModule",{value:!0}),wg.SynthesisContext=void 0;const e=Ct();let t=class{constructor(){this.privContext={}}setSection(n,i){this.privContext[n]=i}set audioOutputFormat(n){this.privAudioOutputFormat=n}toJSON(){return JSON.stringify(this.privContext)}setSynthesisSection(n){const i=this.buildSynthesisContext(n);this.setSection("synthesis",i)}buildSynthesisContext(n){return{audio:{metadataOptions:{bookmarkEnabled:!!(n!=null&&n.bookmarkReached),punctuationBoundaryEnabled:n==null?void 0:n.properties.getProperty(e.PropertyId.SpeechServiceResponse_RequestPunctuationBoundary,!!(n!=null&&n.wordBoundary)),sentenceBoundaryEnabled:n==null?void 0:n.properties.getProperty(e.PropertyId.SpeechServiceResponse_RequestSentenceBoundary,!1),sessionEndEnabled:!0,visemeEnabled:!!(n!=null&&n.visemeReceived),wordBoundaryEnabled:n==null?void 0:n.properties.getProperty(e.PropertyId.SpeechServiceResponse_RequestWordBoundary,!!(n!=null&&n.wordBoundary))},outputFormat:this.privAudioOutputFormat.requestAudioFormatString},language:{autoDetection:n==null?void 0:n.autoDetectSourceLanguage}}}};return wg.SynthesisContext=t,wg}var _g={},w9;function e7e(){if(w9)return _g;w9=1,Object.defineProperty(_g,"__esModule",{value:!0}),_g.SpeakerRecognitionConfig=void 0;const e=Lt();let t=class{constructor(n,i){this.privContext=n||new e.Context(null),this.privParameters=i}get parameters(){return this.privParameters}get Context(){return this.privContext}};return _g.SpeakerRecognitionConfig=t,_g}var Eg={},_9;function t7e(){if(_9)return Eg;_9=1,Object.defineProperty(Eg,"__esModule",{value:!0}),Eg.SpeakerServiceRecognizer=void 0;const e=hi(),t=Wt(),r=Ct(),n=Lt(),i=$l;let o=class extends n.ServiceRecognizerBase{constructor(s,l,c,d,u){super(s,l,c,d,u),this.privSpeakerRecognizer=u,this.privSpeakerAudioSource=c,this.recognizeSpeaker=f=>this.recognizeSpeakerOnce(f),this.sendPrePayloadJSONOverride=()=>this.noOp()}processTypeSpecificMessages(s){let l=!1;const c=new r.PropertyCollection;switch(s.messageType===t.MessageType.Text&&c.setProperty(r.PropertyId.SpeechServiceResponse_JsonResult,s.textBody),s.path.toLowerCase()){case"speaker.response":const u=JSON.parse(s.textBody);let f;u.status.statusCode.toLowerCase()!=="success"?f=new r.SpeakerRecognitionResult(u,r.ResultReason.Canceled,r.CancellationErrorCode.ServiceError,u.status.reason):f=new r.SpeakerRecognitionResult(u,r.ResultReason.RecognizedSpeaker),this.privResultDeferral&&this.privResultDeferral.resolve(f),l=!0;break}const d=new t.Deferred;return d.resolve(l),d.promise}cancelRecognition(s,l,c,d,u){if(new r.PropertyCollection().setProperty(n.CancellationErrorCodePropertyName,r.CancellationErrorCode[d]),this.privResultDeferral){const h=new r.SpeakerRecognitionResult({scenario:this.privSpeakerModel.scenario,status:{statusCode:u,reason:u}},r.ResultReason.Canceled,d,u);try{this.privResultDeferral.resolve(h)}catch(v){this.privResultDeferral.reject(v)}}}async recognizeSpeakerOnce(s){this.privSpeakerModel=s,this.voiceProfileType=s.scenario,this.privResultDeferral||(this.privResultDeferral=new t.Deferred),this.privRequestSession.startNewRecognition(),this.privRequestSession.listenForServiceTelemetry(this.privSpeakerAudioSource.events),this.privRecognizerConfig.parameters.setProperty(r.PropertyId.Speech_SessionId,this.privRequestSession.sessionId);const l=this.connectImpl(),c=this.sendPreAudioMessages(this.extractSpeakerContext(s)),d=await this.privSpeakerAudioSource.attach(this.privRequestSession.audioNodeId),u=await this.privSpeakerAudioSource.format,f=await this.privSpeakerAudioSource.deviceInfo,h=new e.ReplayableAudioNode(d,u.avgBytesPerSec);await this.privRequestSession.onAudioSourceAttachCompleted(h,!1),this.privRecognizerConfig.SpeechServiceConfig.Context.audio={source:f};try{await l,await c}catch(g){this.cancelRecognition(this.privRequestSession.sessionId,this.privRequestSession.requestId,r.CancellationReason.Error,r.CancellationErrorCode.ConnectionFailure,g)}const v=new r.SessionEventArgs(this.privRequestSession.sessionId);return this.privRecognizer.sessionStarted&&this.privRecognizer.sessionStarted(this.privRecognizer,v),this.receiveMessage(),this.sendAudio(h).then(()=>{},g=>{this.cancelRecognition(this.privRequestSession.sessionId,this.privRequestSession.requestId,r.CancellationReason.Error,r.CancellationErrorCode.RuntimeError,g)}),this.privResultDeferral.promise}async sendPreAudioMessages(s){const l=await this.fetchConnection();await this.sendSpeakerRecognition(l,s)}async sendSpeakerRecognition(s,l){const c=JSON.stringify(l);return s.send(new i.SpeechConnectionMessage(t.MessageType.Text,"speaker.context",this.privRequestSession.requestId,"application/json; charset=utf-8",c))}extractSpeakerContext(s){return{features:{interimResult:"enabled",progressiveDetection:"disabled"},profileIds:s.profileIds,scenario:s.scenario}}};return Eg.SpeakerServiceRecognizer=o,Eg}var Rg={},E9;function r7e(){if(E9)return Rg;E9=1,Object.defineProperty(Rg,"__esModule",{value:!0}),Rg.VoiceServiceRecognizer=void 0;const e=hi(),t=Wt(),r=Ct(),n=Lt(),i=$l;let o=class extends n.ServiceRecognizerBase{constructor(s,l,c,d,u){super(s,l,c,d,u),this.privDeferralMap=new t.DeferralMap,this.privSpeakerAudioSource=c,this.sendPrePayloadJSONOverride=()=>this.noOp()}set SpeakerAudioSource(s){this.privSpeakerAudioSource=s}processTypeSpecificMessages(s){let l=!1;const c=new r.PropertyCollection;switch(s.messageType===t.MessageType.Text&&c.setProperty(r.PropertyId.SpeechServiceResponse_JsonResult,s.textBody),s.path.toLowerCase()){case"speaker.profiles":const u=JSON.parse(s.textBody);switch(u.operation.toLowerCase()){case"create":this.handleCreateResponse(u,s.requestId);break;case"delete":case"reset":this.handleResultResponse(u,s.requestId);break;case"fetch":const y=JSON.parse(s.textBody);this.handleFetchResponse(y,s.requestId);break}l=!0;break;case"speaker.phrases":const f=JSON.parse(s.textBody);this.handlePhrasesResponse(f,s.requestId),l=!0;break;case"speaker.profile.enrollment":const h=JSON.parse(s.textBody),v=new r.VoiceProfileEnrollmentResult(this.enrollmentReasonFrom(h.enrollment?h.enrollment.enrollmentStatus:h.status.statusCode),h.enrollment?JSON.stringify(h.enrollment):void 0,h.status.reason);this.privDeferralMap.getId(s.requestId)&&this.privDeferralMap.complete(s.requestId,v),this.privRequestSession.onSpeechEnded(),l=!0;break}const d=new t.Deferred;return d.resolve(l),d.promise}cancelRecognition(s,l,c,d,u){new r.PropertyCollection().setProperty(n.CancellationErrorCodePropertyName,r.CancellationErrorCode[d]);const h=new r.VoiceProfileEnrollmentResult(r.ResultReason.Canceled,u,u);this.privDeferralMap.getId(l)&&this.privDeferralMap.complete(l,h)}async createProfile(s,l){this.voiceProfileType=s.toString();const c=this.connectImpl();try{const d=new t.Deferred;return await c,await this.sendCreateProfile(d,s,l),this.receiveMessage(),d.promise}catch(d){throw d}}async resetProfile(s){return this.voiceProfileType=s.profileType.toString(),this.sendCommonRequest("reset",s.profileType,s)}async deleteProfile(s){return this.voiceProfileType=s.profileType.toString(),this.sendCommonRequest("delete",s.profileType,s)}async retrieveEnrollmentResult(s){return this.voiceProfileType=s.profileType.toString(),this.privExpectedProfileId=s.profileId,this.sendCommonRequest("fetch",s.profileType,s)}async getAllProfiles(s){return this.voiceProfileType=s.toString(),this.sendCommonRequest("fetch",s)}async getActivationPhrases(s,l){this.voiceProfileType=s.toString();const c=this.connectImpl();try{const d=new t.Deferred;return await c,await this.sendPhrasesRequest(d,s,l),this.receiveMessage(),d.promise}catch(d){throw d}}async enrollProfile(s){this.voiceProfileType=s.profileType.toString();const l=new t.Deferred;this.privRequestSession.startNewRecognition(),this.privRequestSession.listenForServiceTelemetry(this.privSpeakerAudioSource.events),this.privRecognizerConfig.parameters.setProperty(r.PropertyId.Speech_SessionId,this.privRequestSession.sessionId);const c=this.connectImpl(),d=this.sendPreAudioMessages(s,l),u=await this.privSpeakerAudioSource.attach(this.privRequestSession.audioNodeId),f=await this.privSpeakerAudioSource.format,h=await this.privSpeakerAudioSource.deviceInfo,v=new e.ReplayableAudioNode(u,f.avgBytesPerSec);await this.privRequestSession.onAudioSourceAttachCompleted(v,!1),this.privRecognizerConfig.SpeechServiceConfig.Context.audio={source:h};try{await c,await d}catch(m){this.cancelRecognition(this.privRequestSession.sessionId,this.privRequestSession.requestId,r.CancellationReason.Error,r.CancellationErrorCode.ConnectionFailure,m)}const y=new r.SessionEventArgs(this.privRequestSession.sessionId);return this.privRecognizer.sessionStarted&&this.privRecognizer.sessionStarted(this.privRecognizer,y),this.receiveMessage(),this.sendAudio(v).then(()=>{},m=>{this.cancelRecognition(this.privRequestSession.sessionId,this.privRequestSession.requestId,r.CancellationReason.Error,r.CancellationErrorCode.RuntimeError,m)}),l.promise}async sendPreAudioMessages(s,l){const c=await this.fetchConnection();this.privRequestSession.onSpeechContext(),this.privDeferralMap.add(this.privRequestSession.requestId,l),await this.sendBaseRequest(c,"enroll",this.scenarioFrom(s.profileType),s)}async sendPhrasesRequest(s,l,c){const d=await this.fetchConnection();this.privRequestSession.onSpeechContext(),this.privDeferralMap.add(this.privRequestSession.requestId,s);const u=this.scenarioFrom(l),f={locale:c,scenario:u};return d.send(new i.SpeechConnectionMessage(t.MessageType.Text,"speaker.profile.phrases",this.privRequestSession.requestId,"application/json; charset=utf-8",JSON.stringify(f)))}async sendCreateProfile(s,l,c){const d=await this.fetchConnection();this.privRequestSession.onSpeechContext(),this.privDeferralMap.add(this.privRequestSession.requestId,s);const u=l===r.VoiceProfileType.TextIndependentIdentification?"TextIndependentIdentification":l===r.VoiceProfileType.TextIndependentVerification?"TextIndependentVerification":"TextDependentVerification",f={locale:c,number:"1",scenario:u};return d.send(new i.SpeechConnectionMessage(t.MessageType.Text,"speaker.profile.create",this.privRequestSession.requestId,"application/json; charset=utf-8",JSON.stringify(f)))}async sendCommonRequest(s,l,c=void 0){const d=this.connectImpl();try{const u=new t.Deferred;this.privRequestSession.onSpeechContext(),await d;const f=await this.fetchConnection();return this.privDeferralMap.add(this.privRequestSession.requestId,u),await this.sendBaseRequest(f,s,this.scenarioFrom(l),c),this.receiveMessage(),u.promise}catch(u){throw u}}async sendBaseRequest(s,l,c,d){const u={scenario:c};return d?u.profileIds=[d.profileId]:u.maxPageSize=-1,s.send(new i.SpeechConnectionMessage(t.MessageType.Text,`speaker.profile.${l}`,this.privRequestSession.requestId,"application/json; charset=utf-8",JSON.stringify(u)))}extractSpeakerContext(s){return{features:{interimResult:"enabled",progressiveDetection:"disabled"},profileIds:s.profileIds,scenario:s.scenario}}handlePhrasesResponse(s,l){if(this.privDeferralMap.getId(l))if(s.status.statusCode.toLowerCase()!=="success"){const c=r.ResultReason.Canceled,d=new r.VoiceProfilePhraseResult(c,s.status.statusCode,s.passPhraseType,[]);this.privDeferralMap.complete(l,d)}else if(s.phrases&&s.phrases.length>0){const c=r.ResultReason.EnrollingVoiceProfile,d=new r.VoiceProfilePhraseResult(c,s.status.statusCode,s.passPhraseType,s.phrases);this.privDeferralMap.complete(l,d)}else throw new Error("Voice Profile get activation phrases failed, no phrases received");else throw new Error(`Voice Profile get activation phrases request for requestID ${l} not found`)}handleCreateResponse(s,l){if(s.profiles&&s.profiles.length>0)if(this.privDeferralMap.getId(l)){const c=s.profiles.map(d=>d.profileId);this.privDeferralMap.complete(l,c)}else throw new Error(`Voice Profile create request for requestID ${l} not found`);else throw new Error("Voice Profile create failed, no profile id received")}handleResultResponse(s,l){if(this.privDeferralMap.getId(l)){const c=s.operation.toLowerCase()==="delete"?r.ResultReason.DeletedVoiceProfile:r.ResultReason.ResetVoiceProfile,d=s.status.statusCode.toLowerCase()==="success"?c:r.ResultReason.Canceled,u=new r.VoiceProfileResult(d,`statusCode: ${s.status.statusCode}, errorDetails: ${s.status.reason}`);this.privDeferralMap.complete(l,u)}else throw new Error(`Voice Profile create request for requestID ${l} not found`)}handleFetchResponse(s,l){if(this.privDeferralMap.getId(l)&&s.profiles[0]){if(this.privExpectedProfileId&&s.profiles.length===1&&s.profiles[0].profileId===this.privExpectedProfileId){this.privExpectedProfileId=void 0;const c=s.profiles[0],d=new r.VoiceProfileEnrollmentResult(this.enrollmentReasonFrom(c.enrollmentStatus),JSON.stringify(c),s.status.reason);this.privDeferralMap.complete(l,d)}else if(s.profiles.length>0){const c=s.profiles,d=[];for(const u of c)d.push(new r.VoiceProfileEnrollmentResult(this.enrollmentReasonFrom(u.enrollmentStatus),JSON.stringify(u),s.status.reason));this.privDeferralMap.complete(l,d)}}else throw new Error(`Voice Profile fetch request for requestID ${l} not found`)}enrollmentReasonFrom(s){switch(s.toLowerCase()){case"enrolled":return r.ResultReason.EnrolledVoiceProfile;case"invalidlocale":case"invalidphrase":case"invalidaudioformat":case"invalidscenario":case"invalidprofilecount":case"invalidoperation":case"audiotooshort":case"audiotoolong":case"toomanyenrollments":case"storageconflict":case"profilenotfound":case"incompatibleprofiles":case"incompleteenrollment":return r.ResultReason.Canceled;default:return r.ResultReason.EnrollingVoiceProfile}}scenarioFrom(s){return s===r.VoiceProfileType.TextIndependentIdentification?"TextIndependentIdentification":s===r.VoiceProfileType.TextIndependentVerification?"TextIndependentVerification":"TextDependentVerification"}};return Rg.VoiceServiceRecognizer=o,Rg}var Nne={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.type=e.connectivity=e.Device=e.OS=e.System=e.Context=e.SpeechServiceConfig=void 0;class t{constructor(s){this.context=s}serialize(){return JSON.stringify(this,(s,l)=>{if(l&&typeof l=="object"&&!Array.isArray(l)){const c={};for(const d in l)Object.hasOwnProperty.call(l,d)&&(c[d&&d.charAt(0).toLowerCase()+d.substring(1)]=l[d]);return c}return l})}get Context(){return this.context}get Recognition(){return this.recognition}set Recognition(s){this.recognition=s.toLowerCase()}}e.SpeechServiceConfig=t;class r{constructor(s){this.system=new n,this.os=s}}e.Context=r;class n{constructor(){const s="1.45.0";this.name="SpeechSDK",this.version=s,this.build="JavaScript",this.lang="JavaScript"}}e.System=n;class i{constructor(s,l,c){this.platform=s,this.name=l,this.version=c}}e.OS=i;class o{constructor(s,l,c){this.manufacturer=s,this.model=l,this.version=c}}e.Device=o,function(a){a.Bluetooth="Bluetooth",a.Wired="Wired",a.WiFi="WiFi",a.Cellular="Cellular",a.InBuilt="InBuilt",a.Unknown="Unknown"}(e.connectivity||(e.connectivity={})),function(a){a.Phone="Phone",a.Speaker="Speaker",a.Car="Car",a.Headset="Headset",a.Thermostat="Thermostat",a.Microphones="Microphones",a.Deskphone="Deskphone",a.RemoteControl="RemoteControl",a.Unknown="Unknown",a.File="File",a.Stream="Stream"}(e.type||(e.type={}))})(Nne);var R9;function Lt(){return R9||(R9=1,function(e){var t=Ht&&Ht.__createBinding||(Object.create?function(o,a,s,l){l===void 0&&(l=s),Object.defineProperty(o,l,{enumerable:!0,get:function(){return a[s]}})}:function(o,a,s,l){l===void 0&&(l=s),o[l]=a[s]}),r=Ht&&Ht.__exportStar||function(o,a){for(var s in o)s!=="default"&&!Object.prototype.hasOwnProperty.call(a,s)&&t(a,o,s)};
444Object.defineProperty(e,"__esModule",{value:!0}),e.AutoDetectSourceLanguagesOpenRangeOptionName=e.ForceDictationPropertyName=e.ServicePropertiesPropertyName=e.CancellationErrorCodePropertyName=e.OutputFormatPropertyName=e.SpeechSynthesisAdapter=e.AvatarSynthesisAdapter=void 0,r(nE,e),r(fE,e),r(oh,e),r(Sre,e),r(Cre,e),r(U5e(),e),r(W5e(),e),r(zE,e),r(q5e(),e),r(G5e(),e),r(K5e(),e),r(wne,e),r(BE,e),r(X5e(),e),r(Q5e(),e),r(J5e(),e),r(Z5e(),e),r(une(),e),r(eje(),e),r(_ne,e),r(tje(),e),r(HE,e),r(nje(),e),r(ije(),e),r(VE,e),r(UE,e),r(WE,e),r(oje(),e),r(aje(),e),r(sje(),e),r(lje(),e),r(cje(),e),r(qE,e),r(dje(),e),r(GE,e),r(xne,e),r(KE,e),r(XE,e),r(QE,e),r(Rje(),e),r(eR,e),r(Vje(),e),r(lD,e),r(Gje(),e),r(Kje(),e);var n=Yje();Object.defineProperty(e,"AvatarSynthesisAdapter",{enumerable:!0,get:function(){return n.AvatarSynthesisAdapter}});var i=Xje();Object.defineProperty(e,"SpeechSynthesisAdapter",{enumerable:!0,get:function(){return i.SpeechSynthesisAdapter}}),r(Qje(),e),r(Jje(),e),r(Zje(),e),r(e7e(),e),r(t7e(),e),r(r7e(),e),r(Nne,e),e.OutputFormatPropertyName="OutputFormat",e.CancellationErrorCodePropertyName="CancellationErrorCode",e.ServicePropertiesPropertyName="ServiceProperties",e.ForceDictationPropertyName="ForceDictation",e.AutoDetectSourceLanguagesOpenRangeOptionName="UND"}(k2)),k2}(function(e){var t=Ht&&Ht.__createBinding||(Object.create?function(i,o,a,s){s===void 0&&(s=a),Object.defineProperty(i,s,{enumerable:!0,get:function(){return o[a]}})}:function(i,o,a,s){s===void 0&&(s=a),i[s]=o[a]}),r=Ht&&Ht.__exportStar||function(i,o){for(var a in i)a!=="default"&&!Object.prototype.hasOwnProperty.call(o,a)&&t(o,i,a)};Object.defineProperty(e,"__esModule",{value:!0});const n=Lt();new n.AgentConfig,r(Ct(),e)})(eo);var P9;function Dne(){if(P9)return Bh;P9=1,Object.defineProperty(Bh,"__esModule",{value:!0}),Bh.default=void 0;var e=eo,t={AudioConfig:e.AudioConfig,OutputFormat:e.OutputFormat,ResultReason:e.ResultReason,SpeechConfig:e.SpeechConfig,SpeechRecognizer:e.SpeechRecognizer};return Bh.default=t,Bh}var I9;function n7e(){if(I9)return QS;I9=1;var e=Zn;Object.defineProperty(QS,"__esModule",{value:!0}),QS.default=a;var t=e(E6e()),r=e(Dne()),n=r.default.ResultReason,i=n.RecognizingSpeech,o=n.RecognizedSpeech;function a(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=l.maxAlternatives,d=c===void 0?1/0:c,u=l.textNormalization,f=u===void 0?"display":u;if(s.reason===i||s.reason===o&&!s.json.NBest){var h=[{confidence:.5,transcript:s.text}];return s.reason===o&&(h.isFinal=!0),h}else if(s.reason===o){var v=(0,t.default)((s.json.NBest||[]).slice(0,d).map(function(y){var g=y.Confidence,m=y.Display,S=y.ITN,C=y.Lexical,b=y.MaskedITN;return{confidence:g,transcript:f==="itn"?S:f==="lexical"?C:f==="maskeditn"?b:m}}),{isFinal:!0});return v}return[]}return QS}var t1={},Q2={exports:{}},x9;function i7e(){return x9||(x9=1,function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Q2)),Q2.exports}var O9={},T9={},J2,A9;function qn(){if(A9)return J2;A9=1;var e=function(t){return t&&t.Math===Math&&t};return J2=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof Ht=="object"&&Ht)||e(typeof Ht=="object"&&Ht)||function(){return this}()||Function("return this")(),J2}var Z2,M9;function oa(){return M9||(M9=1,Z2=function(e){try{return!!e()}catch{return!0}}),Z2}var ex,$9;function oR(){if($9)return ex;$9=1;var e=oa();return ex=!e(function(){var t=(function(){}).bind();return typeof t!="function"||t.hasOwnProperty("prototype")}),ex}var tx,k9;function cD(){if(k9)return tx;k9=1;var e=oR(),t=Function.prototype,r=t.apply,n=t.call;return tx=typeof Reflect=="object"&&Reflect.apply||(e?n.bind(r):function(){return n.apply(r,arguments)}),tx}var rx,N9;function Do(){if(N9)return rx;N9=1;var e=oR(),t=Function.prototype,r=t.call,n=e&&t.bind.bind(r,r);return rx=e?n:function(i){return function(){return r.apply(i,arguments)}},rx}var nx,D9;function aR(){if(D9)return nx;D9=1;var e=Do(),t=e({}.toString),r=e("".slice);return nx=function(n){return r(t(n),8,-1)},nx}var ix,L9;function Lne(){if(L9)return ix;L9=1;var e=aR(),t=Do();return ix=function(r){if(e(r)==="Function")return t(r)},ix}var ox,j9;function ei(){if(j9)return ox;j9=1;var e=typeof document=="object"&&document.all;return ox=typeof e>"u"&&e!==void 0?function(t){return typeof t=="function"||t===e}:function(t){return typeof t=="function"},ox}var ax={},sx,F9;function qs(){if(F9)return sx;F9=1;var e=oa();return sx=!e(function(){return Object.defineProperty({},1,{get:function(){return 7}}
444)[1]!==7}),sx}var lx,z9;function ja(){if(z9)return lx;z9=1;var e=oR(),t=Function.prototype.call;return lx=e?t.bind(t):function(){return t.apply(t,arguments)},lx}var cx={},B9;function o7e(){if(B9)return cx;B9=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,r=t&&!e.call({1:2},1);return cx.f=r?function(i){var o=t(this,i);return!!o&&o.enumerable}:e,cx}var ux,H9;function T0(){return H9||(H9=1,ux=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}),ux}var dx,V9;function a7e(){if(V9)return dx;V9=1;var e=Do(),t=oa(),r=aR(),n=Object,i=e("".split);return dx=t(function(){return!n("z").propertyIsEnumerable(0)})?function(o){return r(o)==="String"?i(o,""):n(o)}:n,dx}var fx,U9;function sR(){return U9||(U9=1,fx=function(e){return e==null}),fx}var px,W9;function lR(){if(W9)return px;W9=1;var e=sR(),t=TypeError;return px=function(r){if(e(r))throw new t("Can't call method on "+r);return r},px}var hx,q9;function A0(){if(q9)return hx;q9=1;var e=a7e(),t=lR();return hx=function(r){return e(t(r))},hx}var vx,G9;function gs(){if(G9)return vx;G9=1;var e=ei();return vx=function(t){return typeof t=="object"?t!==null:e(t)},vx}var gx,K9;function cR(){return K9||(K9=1,gx={}),gx}var mx,Y9;function kl(){if(Y9)return mx;Y9=1;var e=cR(),t=qn(),r=ei(),n=function(i){return r(i)?i:void 0};return mx=function(i,o){return arguments.length<2?n(e[i])||n(t[i]):e[i]&&e[i][o]||t[i]&&t[i][o]},mx}var yx,X9;function uR(){if(X9)return yx;X9=1;var e=Do();return yx=e({}.isPrototypeOf),yx}var Sx,Q9;function M0(){if(Q9)return Sx;Q9=1;var e=qn(),t=e.navigator,r=t&&t.userAgent;return Sx=r?String(r):"",Sx}var Cx,J9;function jne(){if(J9)return Cx;J9=1;var e=qn(),t=M0(),r=e.process,n=e.Deno,i=r&&r.versions||n&&n.version,o=i&&i.v8,a,s;return o&&(a=o.split("."),s=a[0]>0&&a[0]<4?1:+(a[0]+a[1])),!s&&t&&(a=t.match(/Edge\/(\d+)/),(!a||a[1]>=74)&&(a=t.match(/Chrome\/(\d+)/),a&&(s=+a[1]))),Cx=s,Cx}var bx,Z9;function Fne(){if(Z9)return bx;Z9=1;var e=jne(),t=oa(),r=qn(),n=r.String;return bx=!!Object.getOwnPropertySymbols&&!t(function(){var i=Symbol("symbol detection");return!n(i)||!(Object(i)instanceof Symbol)||!Symbol.sham&&e&&e<41}),bx}var wx,eH;function zne(){if(eH)return wx;eH=1;var e=Fne();return wx=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol",wx}var _x,tH;function Bne(){if(tH)return _x;tH=1;var e=kl(),t=ei(),r=uR(),n=zne(),i=Object;return _x=n?function(o){return typeof o=="symbol"}:function(o){var a=e("Symbol");return t(a)&&r(a.prototype,i(o))},_x}var Ex,rH;function dR(){if(rH)return Ex;rH=1;var e=String;return Ex=function(t){try{return e(t)}catch{return"Object"}},Ex}var Rx,nH;function ms(){if(nH)return Rx;nH=1;var e=ei(),t=dR(),r=TypeError;return Rx=function(n){if(e(n))return n;throw new r(t(n)+" is not a function")},Rx}var Px,iH;function uD(){if(iH)return Px;iH=1;var e=ms(),t=sR();return Px=function(r,n){var i=r[n];return t(i)?void 0:e(i)},Px}var Ix,oH;function s7e(){if(oH)return Ix;oH=1;var e=ja(),t=ei(),r=gs(),n=TypeError;return Ix=function(i,o){var a,s;if(o==="string"&&t(a=i.toString)&&!r(s=e(a,i))||t(a=i.valueOf)&&!r(s=e(a,i))||o!=="string"&&t(a=i.toString)&&!r(s=e(a,i)))return s;throw new n("Can't convert object to primitive value")},Ix}var xx={exports:{}},Ox,aH;function Nl(){return aH||(aH=1,Ox=!0),Ox}var Tx,sH;function l7e(){if(sH)return Tx;sH=1;var e=qn(),t=Object.defineProperty;return Tx=function(r,n){try{t(e,r,{value:n,configurable:!0,writable:!0})}catch{e[r]=n}return n},Tx}var lH;function fR(){if(lH)return xx.exports;lH=1;var e=Nl(),t=qn(),r=l7e(),n="__core-js_shared__",i=xx.exports=t[n]||r(n,{});return(i.versions||(i.versions=[])).push({version:"3.45.0",mode:e?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.45.0/LICENSE",source:"https://github.com/zloirock/core-js"}),xx.exports}var Ax,cH;function Hne(){if(cH)return Ax;cH=1;var e=fR();return Ax=function(t,r){return e[t]||(e[t]=r||{})},Ax}var Mx,uH;function Vne(){if(uH)return Mx;uH=1;var e=lR(),t=Object;return Mx=function(r){return t(e(r))},Mx}var $x,dH;function Gs(){if(dH)return $x;dH=1;var e=Do(),t=Vne(),r=e({}.hasOwnProperty);return $x=Object.hasOwn||function(i,o){return r(t(i),o)},$x}var kx,fH;function Une(){if(fH)return kx;fH=1;var e=Do(),t=0,r=Math.random(),n=e(1.1.toString);return kx=function(i){return"Symbol("+(i===void 0?"":i)+")_"+n(++t+r,36)},kx}var Nx,pH;function aa(){if(pH)return Nx;pH=1;var e=qn(),t=Hne(),r=Gs(),n=Une(),i=Fne(),o=zne(),a=e.Symbol,s=t("wks"),l=o?a.for||a:a&&a.withoutSetter||n;return Nx=function(c){return r(s,c)||(s[c]=i&&r(a,c)?a[c]:l("Symbol."+c)),s[c]},Nx}var Dx,hH;
444function c7e(){if(hH)return Dx;hH=1;var e=ja(),t=gs(),r=Bne(),n=uD(),i=s7e(),o=aa(),a=TypeError,s=o("toPrimitive");return Dx=function(l,c){if(!t(l)||r(l))return l;var d=n(l,s),u;if(d){if(c===void 0&&(c="default"),u=e(d,l,c),!t(u)||r(u))return u;throw new a("Can't convert object to primitive value")}return c===void 0&&(c="number"),i(l,c)},Dx}var Lx,vH;function Wne(){if(vH)return Lx;vH=1;var e=c7e(),t=Bne();return Lx=function(r){var n=e(r,"string");return t(n)?n:n+""},Lx}var jx,gH;function dD(){if(gH)return jx;gH=1;var e=qn(),t=gs(),r=e.document,n=t(r)&&t(r.createElement);return jx=function(i){return n?r.createElement(i):{}},jx}var Fx,mH;function qne(){if(mH)return Fx;mH=1;var e=qs(),t=oa(),r=dD();return Fx=!e&&!t(function(){return Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a!==7}),Fx}var yH;function Gne(){if(yH)return ax;yH=1;var e=qs(),t=ja(),r=o7e(),n=T0(),i=A0(),o=Wne(),a=Gs(),s=qne(),l=Object.getOwnPropertyDescriptor;return ax.f=e?l:function(d,u){if(d=i(d),u=o(u),s)try{return l(d,u)}catch{}if(a(d,u))return n(!t(r.f,d,u),d[u])},ax}var zx,SH;function Kne(){if(SH)return zx;SH=1;var e=oa(),t=ei(),r=/#|\.prototype\./,n=function(l,c){var d=o[i(l)];return d===s?!0:d===a?!1:t(c)?e(c):!!c},i=n.normalize=function(l){return String(l).replace(r,".").toLowerCase()},o=n.data={},a=n.NATIVE="N",s=n.POLYFILL="P";return zx=n,zx}var Bx,CH;function pR(){if(CH)return Bx;CH=1;var e=Lne(),t=ms(),r=oR(),n=e(e.bind);return Bx=function(i,o){return t(i),o===void 0?i:r?n(i,o):function(){return i.apply(o,arguments)}},Bx}var Hx={},Vx,bH;function Yne(){if(bH)return Vx;bH=1;var e=qs(),t=oa();return Vx=e&&t(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),Vx}var Ux,wH;function Dl(){if(wH)return Ux;wH=1;var e=gs(),t=String,r=TypeError;return Ux=function(n){if(e(n))return n;throw new r(t(n)+" is not an object")},Ux}var _H;function sh(){if(_H)return Hx;_H=1;var e=qs(),t=qne(),r=Yne(),n=Dl(),i=Wne(),o=TypeError,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l="enumerable",c="configurable",d="writable";return Hx.f=e?r?function(f,h,v){if(n(f),h=i(h),n(v),typeof f=="function"&&h==="prototype"&&"value"in v&&d in v&&!v[d]){var y=s(f,h);y&&y[d]&&(f[h]=v.value,v={configurable:c in v?v[c]:y[c],enumerable:l in v?v[l]:y[l],writable:!1})}return a(f,h,v)}:a:function(f,h,v){if(n(f),h=i(h),n(v),t)try{return a(f,h,v)}catch{}if("get"in v||"set"in v)throw new o("Accessors not supported");return"value"in v&&(f[h]=v.value),f},Hx}var Wx,EH;function Jc(){if(EH)return Wx;EH=1;var e=qs(),t=sh(),r=T0();return Wx=e?function(n,i,o){return t.f(n,i,r(1,o))}:function(n,i,o){return n[i]=o,n},Wx}var qx,RH;function sa(){if(RH)return qx;RH=1;var e=qn(),t=cD(),r=Lne(),n=ei(),i=Gne().f,o=Kne(),a=cR(),s=pR(),l=Jc(),c=Gs();fR();var d=function(u){var f=function(h,v,y){if(this instanceof f){switch(arguments.length){case 0:return new u;case 1:return new u(h);case 2:return new u(h,v)}return new u(h,v,y)}return t(u,this,arguments)};return f.prototype=u.prototype,f};return qx=function(u,f){var h=u.target,v=u.global,y=u.stat,g=u.proto,m=v?e:y?e[h]:e[h]&&e[h].prototype,S=v?a:a[h]||l(a,h,{})[h],C=S.prototype,b,w,E,_,R,P,I,O,A;for(_ in f)b=o(v?_:h+(y?".":"#")+_,u.forced),w=!b&&m&&c(m,_),P=S[_],w&&(u.dontCallGetSet?(A=i(m,_),I=A&&A.value):I=m[_]),R=w&&I?I:f[_],!(!b&&!g&&typeof P==typeof R)&&(u.bind&&w?O=s(R,e):u.wrap&&w?O=d(R):g&&n(R)?O=r(R):O=R,(u.sham||R&&R.sham||P&&P.sham)&&l(O,"sham",!0),l(S,_,O),g&&(E=h+"Prototype",c(a,E)||l(a,E,{}),l(a[E],_,R),u.real&&C&&(b||!C[_])&&l(C,_,R)))},qx}var Gx,PH;function fD(){if(PH)return Gx;PH=1;var e=Hne(),t=Une(),r=e("keys");return Gx=function(n){return r[n]||(r[n]=t(n))},Gx}var Kx,IH;function u7e(){if(IH)return Kx;IH=1;var e=oa();return Kx=!e(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),Kx}var Yx,xH;function pD(){if(xH)return Yx;xH=1;var e=Gs(),t=ei(),r=Vne(),n=fD(),i=u7e(),o=n("IE_PROTO"),a=Object,s=a.prototype;return Yx=i?a.getPrototypeOf:function(l){var c=r(l);if(e(c,o))return c[o];var d=c.constructor;return t(d)&&c instanceof d?d.prototype:c instanceof a?s:null},Yx}var Xx,OH;function d7e(){if(OH)return Xx;OH=1;var e=Do(),t=ms();return Xx=function(r,n,i){try{return e(t(Object.getOwnPropertyDescriptor(r,n)[i]))}catch{}},Xx}var Qx,TH;function f7e(){if(TH)return Qx;TH=1;var e=gs();return Qx=function(t){return e(t)||t===null},Qx}var Jx,AH;function p7e(){if(AH)return Jx;AH=1;var e=f7e(),t=String,r=TypeError;return Jx=function(n){if(e(n))return n;throw new r("Can't set "+t(n)+" as a prototype")},Jx}var Zx,MH;function hD(){if(MH)return Zx;MH=1;var e=d7e(),t=gs(),r=lR(),n=p7e();
444return Zx=Object.setPrototypeOf||("__proto__"in{}?function(){var i=!1,o={},a;try{a=e(Object.prototype,"__proto__","set"),a(o,[]),i=o instanceof Array}catch{}return function(l,c){return r(l),n(c),t(l)&&(i?a(l,c):l.__proto__=c),l}}():void 0),Zx}var eO={},tO,$H;function h7e(){if($H)return tO;$H=1;var e=Math.ceil,t=Math.floor;return tO=Math.trunc||function(n){var i=+n;return(i>0?t:e)(i)},tO}var rO,kH;function vD(){if(kH)return rO;kH=1;var e=h7e();return rO=function(t){var r=+t;return r!==r||r===0?0:e(r)},rO}var nO,NH;function v7e(){if(NH)return nO;NH=1;var e=vD(),t=Math.max,r=Math.min;return nO=function(n,i){var o=e(n);return o<0?t(o+i,0):r(o,i)},nO}var iO,DH;function g7e(){if(DH)return iO;DH=1;var e=vD(),t=Math.min;return iO=function(r){var n=e(r);return n>0?t(n,9007199254740991):0},iO}var oO,LH;function Xne(){if(LH)return oO;LH=1;var e=g7e();return oO=function(t){return e(t.length)},oO}var aO,jH;function m7e(){if(jH)return aO;jH=1;var e=A0(),t=v7e(),r=Xne(),n=function(i){return function(o,a,s){var l=e(o),c=r(l);if(c===0)return!i&&-1;var d=t(s,c),u;if(i&&a!==a){for(;c>d;)if(u=l[d++],u!==u)return!0}else for(;c>d;d++)if((i||d in l)&&l[d]===a)return i||d||0;return!i&&-1}};return aO={includes:n(!0),indexOf:n(!1)},aO}var sO,FH;function gD(){return FH||(FH=1,sO={}),sO}var lO,zH;function Qne(){if(zH)return lO;zH=1;var e=Do(),t=Gs(),r=A0(),n=m7e().indexOf,i=gD(),o=e([].push);return lO=function(a,s){var l=r(a),c=0,d=[],u;
444for(u in l)!t(i,u)&&t(l,u)&&o(d,u);for(;s.length>c;)t(l,u=s[c++])&&(~n(d,u)||o(d,u));return d},lO}var cO,BH;function mD(){return BH||(BH=1,cO=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]),cO}var HH;function y7e(){if(HH)return eO;HH=1;var e=Qne(),t=mD(),r=t.concat("length","prototype");return eO.f=Object.getOwnPropertyNames||function(i){return e(i,r)},eO}var uO={},VH;function S7e(){return VH||(VH=1,uO.f=Object.getOwnPropertySymbols),uO}var dO,UH;function C7e(){if(UH)return dO;UH=1;var e=kl(),t=Do(),r=y7e(),n=S7e(),i=Dl(),o=t([].concat);return dO=e("Reflect","ownKeys")||function(s){var l=r.f(i(s)),c=n.f;return c?o(l,c(s)):l},dO}var fO,WH;function b7e(){if(WH)return fO;WH=1;var e=Gs(),t=C7e(),r=Gne(),n=sh();return fO=function(i,o,a){for(var s=t(o),l=n.f,c=r.f,d=0;d<s.length;d++){var u=s[d];!e(i,u)&&!(a&&e(a,u))&&l(i,u,c(o,u))}},fO}var pO={},hO,qH;function w7e(){if(qH)return hO;qH=1;var e=Qne(),t=mD();return hO=Object.keys||function(n){return e(n,t)},hO}var GH;function _7e(){if(GH)return pO;GH=1;var e=qs(),t=Yne(),r=sh(),n=Dl(),i=A0(),o=w7e();return pO.f=e&&!t?Object.defineProperties:function(s,l){n(s);for(var c=i(l),d=o(l),u=d.length,f=0,h;u>f;)r.f(s,h=d[f++],c[h]);return s},pO}var vO,KH;function Jne(){if(KH)return vO;KH=1;var e=kl();return vO=e("document","documentElement"),vO}var gO,YH;function yD(){if(YH)return gO;YH=1;var e=Dl(),t=_7e(),r=mD(),n=gD(),i=Jne(),o=dD(),a=fD(),s=">",l="<",c="prototype",d="script",u=a("IE_PROTO"),f=function(){},h=function(S){return l+d+s+S+l+"/"+d+s},v=function(S){S.write(h("")),S.close();var C=S.parentWindow.Object;return S=null,C},y=function(){var S=o("iframe"),C="java"+d+":",b;return S.style.display="none",i.appendChild(S),S.src=String(C),b=S.contentWindow.document,b.open(),b.write(h("document.F=Object")),b.close(),b.F},g,m=function(){try{g=new ActiveXObject("htmlfile")}catch{}m=typeof document<"u"?document.domain&&g?v(g):y():v(g);for(var S=r.length;S--;)delete m[c][r[S]];return m()};return n[u]=!0,gO=Object.create||function(C,b){var w;return C!==null?(f[c]=e(C),w=new f,f[c]=null,w[u]=C):w=m(),b===void 0?w:t.f(w,b)},gO}var mO,XH;function E7e(){if(XH)return mO;XH=1;var e=gs(),t=Jc();return mO=function(r,n){e(n)&&"cause"in n&&t(r,"cause",n.cause)},mO}var yO,QH;function R7e(){if(QH)return yO;QH=1;var e=Do(),t=Error,r=e("".replace),n=function(a){return String(new t(a).stack)}("zxcasd"),i=/\n\s*at [^:]*:[^\n]*/,o=i.test(n);return yO=function(a,s){if(o&&typeof a=="string"&&!t.prepareStackTrace)for(;s--;)a=r(a,i,"");return a},yO}var SO,JH;function P7e(){if(JH)return SO;JH=1;var e=oa(),t=T0();return SO=!e(function(){var r=new Error("a");return"stack"in r?(Object.defineProperty(r,"stack",t(1,7)),r.stack!==7):!0}),SO}var CO,ZH;function I7e(){if(ZH)return CO;ZH=1;var e=Jc(),t=R7e(),r=P7e(),n=Error.captureStackTrace;return CO=function(i,o,a,s){r&&(n?n(i,o):e(i,"stack",t(a,s)))},CO}var bO,eV;function lh(){return eV||(eV=1,bO={}),bO}var wO,tV;function x7e(){if(tV)return wO;tV=1;var e=aa(),t=lh(),r=e("iterator"),n=Array.prototype;return wO=function(i){return i!==void 0&&(t.Array===i||n[r]===i)},wO}var _O,rV;function SD(){if(rV)return _O;rV=1;var e=aa(),t=e("toStringTag"),r={};return r[t]="z",_O=String(r)==="[object z]",_O}var EO,nV;function hR(){if(nV)return EO;nV=1;var e=SD(),t=ei(),r=aR(),n=aa(),i=n("toStringTag"),o=Object,a=r(function(){return arguments}())==="Arguments",s=function(l,c){try{return l[c]}catch{}};return EO=e?r:function(l){var c,d,u;return l===void 0?"Undefined":l===null?"Null":typeof(d=s(c=o(l),i))=="string"?d:a?r(c):(u=r(c))==="Object"&&t(c.callee)?"Arguments":u},EO}var RO,iV;function Zne(){if(iV)return RO;iV=1;var e=hR(),t=uD(),r=sR(),n=lh(),i=aa(),o=i("iterator");return RO=function(a){if(!r(a))return t(a,o)||t(a,"@@iterator")||n[e(a)]},RO}var PO,oV;function O7e(){if(oV)return PO;oV=1;var e=ja(),t=ms(),r=Dl(),n=dR(),i=Zne(),o=TypeError;return PO=function(a,s){var l=arguments.length<2?i(a):s;if(t(l))return r(e(l,a));throw new o(n(a)+" is not iterable")},PO}var IO,aV;function T7e(){if(aV)return IO;aV=1;var e=ja(),t=Dl(),r=uD();return IO=function(n,i,o){var a,s;t(n);try{if(a=r(n,"return"),!a){if(i==="throw")throw o;return o}a=e(a,n)}catch(l){s=!0,a=l}if(i==="throw")throw o;if(s)throw a;return t(a),o},IO}var xO,sV;function $0(){if(sV)return xO;sV=1;var e=pR(),t=ja(),r=Dl(),n=dR(),i=x7e(),o=Xne(),a=uR(),s=O7e(),l=Zne(),c=T7e(),d=TypeError,u=function(h,v){this.stopped=h,this.result=v},f=u.prototype;return xO=function(h,v,y){var g=y&&y.that,m=!!(y&&y.AS_ENTRIES),S=!!(y&&y.IS_RECORD),C=!!(y&&y.IS_ITERATOR),b=!!(y&&y.INTERRUPTED),w=e(v,g),E,_,R,P,I,O,A,x=function(D){return E&&c(E,"normal"),new u(!0,D)},T=function(D){return m?(r(D),b?w(D[0],D[1],x):w(D[0],D[1])):b?w(D,x):w(D)};if(S)E=h.iterator;else if(C)E=h;else{if(_=l(h),!_)throw new d(n(h)+" is not iterable");if(i(_)){for(R=0,P=o(h);P>R;R++)if(I=T(h[R]),I&&a(f,I))return I;return new u(!1)}E=s(h,_)}for(O=S?h.next:E.next;!(A=t(O,E)).done;){try{I=T(A.value)}catch(D){c(E,"throw",D)}if(typeof I=="object"&&I&&a(f,I))return I}return new u(!1)},xO}var OO,lV;function CD(){if(lV)return OO;lV=1;var e=hR(),t=String;return OO=function(r){if(e(r)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return t(r)},OO}var TO,cV;function A7e(){if(cV)return TO;cV=1;var e=CD();return TO=function(t,r){return t===void 0?arguments.length<2?"":r:e(t)},TO}var uV;function M7e(){if(uV)return T9;uV=1;var e=sa(),t=uR(),r=pD(),n=hD(),i=b7e(),o=yD(),a=Jc(),s=T0(),l=E7e(),c=I7e(),d=$0(),u=A7e(),f=aa(),h=f("toStringTag"),v=Error,y=[].push,g=function(C,b){var w=t(m,this),E;n?E=n(new v,w?r(this):m):(E=w?this:o(m),a(E,h,"Error")),b!==void 0&&a(E,"message",u(b)),c(E,g,E.stack,1),arguments.length>2&&l(E,arguments[2]);var _=[];return d(C,y,{that:_}),a(E,"errors",_),E};n?n(g,v):i(g,v,{name:!0});var m=g.prototype=o(v.prototype,{constructor:s(1,g),message:s(1,""),name:s(1,"AggregateError")});return e({global:!0,constructor:!0,arity:2},{AggregateError:g}),T9}var dV;function $7e(){return dV||(dV=1,M7e()),O9}var AO,fV;function k7e(){return fV||(fV=1,AO=function(){}),AO}var MO,pV;
444function N7e(){if(pV)return MO;pV=1;var e=qn(),t=ei(),r=e.WeakMap;return MO=t(r)&&/native code/.test(String(r)),MO}var $O,hV;function bD(){if(hV)return $O;hV=1;var e=N7e(),t=qn(),r=gs(),n=Jc(),i=Gs(),o=fR(),a=fD(),s=gD(),l="Object already initialized",c=t.TypeError,d=t.WeakMap,u,f,h,v=function(S){return h(S)?f(S):u(S,{})},y=function(S){return function(C){var b;if(!r(C)||(b=f(C)).type!==S)throw new c("Incompatible receiver, "+S+" required");return b}};if(e||o.state){var g=o.state||(o.state=new d);g.get=g.get,g.has=g.has,g.set=g.set,u=function(S,C){if(g.has(S))throw new c(l);return C.facade=S,g.set(S,C),C},f=function(S){return g.get(S)||{}},h=function(S){return g.has(S)}}else{var m=a("state");s[m]=!0,u=function(S,C){if(i(S,m))throw new c(l);return C.facade=S,n(S,m,C),C},f=function(S){return i(S,m)?S[m]:{}},h=function(S){return i(S,m)}}return $O={set:u,get:f,has:h,enforce:v,getterFor:y},$O}var kO,vV;function D7e(){if(vV)return kO;vV=1;var e=qs(),t=Gs(),r=Function.prototype,n=e&&Object.getOwnPropertyDescriptor,i=t(r,"name"),o=i&&(function(){}).name==="something",a=i&&(!e||e&&n(r,"name").configurable);return kO={EXISTS:i,PROPER:o,CONFIGURABLE:a},kO}var NO,gV;function k0(){if(gV)return NO;gV=1;var e=Jc();return NO=function(t,r,n,i){return i&&i.enumerable?t[r]=n:e(t,r,n),t},NO}var DO,mV;function eie(){if(mV)return DO;mV=1;var e=oa(),t=ei(),r=gs(),n=yD(),i=pD(),o=k0(),a=aa(),s=Nl(),l=a("iterator"),c=!1,d,u,f;[].keys&&(f=[].keys(),"next"in f?(u=i(i(f)),u!==Object.prototype&&(d=u)):c=!0);var h=!r(d)||e(function(){var v={};return d[l].call(v)!==v});return h?d={}:s&&(d=n(d)),t(d[l])||o(d,l,function(){return this}),DO={IteratorPrototype:d,BUGGY_SAFARI_ITERATORS:c},DO}var LO,yV;function L7e(){if(yV)return LO;yV=1;var e=SD(),t=hR();return LO=e?{}.toString:function(){return"[object "+t(this)+"]"},LO}var jO,SV;function vR(){if(SV)return jO;SV=1;var e=SD(),t=sh().f,r=Jc(),n=Gs(),i=L7e(),o=aa(),a=o("toStringTag");return jO=function(s,l,c,d){var u=c?s:s&&s.prototype;u&&(n(u,a)||t(u,a,{configurable:!0,value:l}),d&&!e&&r(u,"toString",i))},jO}var FO,CV;function j7e(){if(CV)return FO;CV=1;var e=eie().IteratorPrototype,t=yD(),r=T0(),n=vR(),i=lh(),o=function(){return this};return FO=function(a,s,l,c){var d=s+" Iterator";return a.prototype=t(e,{next:r(+!c,l)}),n(a,d,!1,!0),i[d]=o,a},FO}var zO,bV;function tie(){if(bV)return zO;bV=1;var e=sa(),t=ja(),r=Nl(),n=D7e(),i=ei(),o=j7e(),a=pD(),s=hD(),l=vR(),c=Jc(),d=k0(),u=aa(),f=lh(),h=eie(),v=n.PROPER,y=n.CONFIGURABLE,g=h.IteratorPrototype,m=h.BUGGY_SAFARI_ITERATORS,S=u("iterator"),C="keys",b="values",w="entries",E=function(){return this};return zO=function(_,R,P,I,O,A,x){o(P,R,I);var T=function(H){if(H===O&&L)return L;if(!m&&H&&H in j)return j[H];switch(H){case C:return function(){return new P(this,H)};case b:return function(){return new P(this,H)};case w:return function(){return new P(this,H)}}return function(){return new P(this)}},D=R+" Iterator",k=!1,j=_.prototype,N=j[S]||j["@@iterator"]||O&&j[O],L=!m&&N||T(O),M=R==="Array"&&j.entries||N,$,F,z;if(M&&($=a(M.call(new _)),$!==Object.prototype&&$.next&&(!r&&a($)!==g&&(s?s($,g):i($[S])||d($,S,E)),l($,D,!0,!0),r&&(f[D]=E))),v&&O===b&&N&&N.name!==b&&(!r&&y?c(j,"name",b):(k=!0,L=function(){return t(N,this)})),O)if(F={values:T(b),keys:A?L:T(C),entries:T(w)},x)for(z in F)(m||k||!(z in j))&&d(j,z,F[z]);else e({target:R,proto:!0,forced:m||k},F);return(!r||x)&&j[S]!==L&&d(j,S,L,{name:O}),f[R]=L,F},zO}var BO,wV;function rie(){return wV||(wV=1,BO=function(e,t){return{value:e,done:t}}),BO}var HO,_V;function nie(){if(_V)return HO;_V=1;var e=A0(),t=k7e(),r=lh(),n=bD(),i=sh().f,o=tie(),a=rie(),s=Nl(),l=qs(),c="Array Iterator",d=n.set,u=n.getterFor(c);HO=o(Array,"Array",function(h,v){d(this,{type:c,target:e(h),index:0,kind:v})},function(){var h=u(this),v=h.target,y=h.index++;if(!v||y>=v.length)return h.target=null,a(void 0,!0);switch(h.kind){case"keys":return a(y,!1);case"values":return a(v[y],!1)}return a([y,v[y]],!1)},"values");var f=r.Arguments=r.Array;if(t("keys"),t("values"),t("entries"),!s&&l&&f.name!=="values")try{i(f,"name",{value:"values"})}catch{}return HO}var EV={},RV={},VO,PV;function iie(){if(PV)return VO;PV=1;var e=qn(),t=M0(),r=aR(),n=function(i){return t.slice(0,i.length)===i};return VO=function(){return n("Bun/")?"BUN":n("Cloudflare-Workers")?"CLOUDFLARE":n("Deno/")?"DENO":n("Node.js/")?"NODE":e.Bun&&typeof Bun.version=="str
444ing"?"BUN":e.Deno&&typeof Deno.version=="object"?"DENO":r(e.process)==="process"?"NODE":e.window&&e.document?"BROWSER":"REST"}(),VO}var UO,IV;function wD(){if(IV)return UO;IV=1;var e=iie();return UO=e==="NODE",UO}var WO,xV;function F7e(){if(xV)return WO;xV=1;var e=sh();return WO=function(t,r,n){return e.f(t,r,n)},WO}var qO,OV;function z7e(){if(OV)return qO;OV=1;var e=kl(),t=F7e(),r=aa(),n=qs(),i=r("species");return qO=function(o){var a=e(o);n&&a&&!a[i]&&t(a,i,{configurable:!0,get:function(){return this}})},qO}var GO,TV;function B7e(){if(TV)return GO;TV=1;var e=uR(),t=TypeError;return GO=function(r,n){if(e(n,r))return r;throw new t("Incorrect invocation")},GO}var KO,AV;function oie(){if(AV)return KO;AV=1;var e=Do(),t=ei(),r=fR(),n=e(Function.toString);return t(r.inspectSource)||(r.inspectSource=function(i){return n(i)}),KO=r.inspectSource,KO}var YO,MV;function H7e(){if(MV)return YO;MV=1;var e=Do(),t=oa(),r=ei(),n=hR(),i=kl(),o=oie(),a=function(){},s=i("Reflect","construct"),l=/^\s*(?:class|function)\b/,c=e(l.exec),d=!l.test(a),u=function(v){if(!r(v))return!1;try{return s(a,[],v),!0}catch{return!1}},f=function(v){if(!r(v))return!1;switch(n(v)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return d||!!c(l,o(v))}catch{return!0}};return f.sham=!0,YO=!s||t(function(){var h;return u(u.call)||!u(Object)||!u(function(){h=!0})||h})?f:u,YO}var XO,$V;function V7e(){if($V)return XO;$V=1;var e=H7e(),t=dR(),r=TypeError;return XO=function(n){if(e(n))return n;throw new r(t(n)+" is not a constructor")},XO}var QO,kV;function aie(){if(kV)return QO;kV=1;var e=Dl(),t=V7e(),r=sR(),n=aa(),i=n("species");return QO=function(o,a){var s=e(o).constructor,l;return s===void 0||r(l=e(s)[i])?a:t(l)},QO}var JO,NV;function sie(){if(NV)return JO;NV=1;var e=Do();return JO=e([].slice),JO}var ZO,DV;function U7e(){if(DV)return ZO;DV=1;var e=TypeError;return ZO=function(t,r){if(t<r)throw new e("Not enough arguments");return t},ZO}var eT,LV;function lie(){if(LV)return eT;LV=1;var e=M0();return eT=/(?:ipad|iphone|ipod).*applewebkit/i.test(e),eT}var tT,jV;function cie(){if(jV)return tT;jV=1;var e=qn(),t=cD(),r=pR(),n=ei(),i=Gs(),o=oa(),a=Jne(),s=sie(),l=dD(),c=U7e(),d=lie(),u=wD(),f=e.setImmediate,h=e.clearImmediate,v=e.process,y=e.Dispatch,g=e.Function,m=e.MessageChannel,S=e.String,C=0,b={},w="onreadystatechange",E,_,R,P;o(function(){E=e.location});var I=function(T){if(i(b,T)){var D=b[T];delete b[T],D()}},O=function(T){return function(){I(T)}},A=function(T){I(T.data)},x=function(T){e.postMessage(S(T),E.protocol+"//"+E.host)};return(!f||!h)&&(f=function(D){c(arguments.length,1);var k=n(D)?D:g(D),j=s(arguments,1);return b[++C]=function(){t(k,void 0,j)},_(C),C},h=function(D){delete b[D]},u?_=function(T){v.nextTick(O(T))}:y&&y.now?_=function(T){y.now(O(T))}:m&&!d?(R=new m,P=R.port2,R.port1.onmessage=A,_=r(P.postMessage,P)):e.addEventListener&&n(e.postMessage)&&!e.importScripts&&E&&E.protocol!=="file:"&&!o(x)?(_=x,e.addEventListener("message",A,!1)):w in l("script")?_=function(T){a.appendChild(l("script"))[w]=function(){a.removeChild(this),I(T)}}:_=function(T){setTimeout(O(T),0)}),tT={set:f,clear:h},tT}var rT,FV;function W7e(){if(FV)return rT;FV=1;var e=qn(),t=qs(),r=Object.getOwnPropertyDescriptor;return rT=function(n){if(!t)return e[n];var i=r(e,n);return i&&i.value},rT}var nT,zV;function uie(){if(zV)return nT;zV=1;var e=function(){this.head=null,this.tail=null};return e.prototype={add:function(t){var r={item:t,next:null},n=this.tail;n?n.next=r:this.head=r,this.tail=r},get:function(){var t=this.head;if(t){var r=this.head=t.next;return r===null&&(this.tail=null),t.item}}},nT=e,nT}var iT,BV;function q7e(){if(BV)return iT;BV=1;var e=M0();return iT=/ipad|iphone|ipod/i.test(e)&&typeof Pebble<"u",iT}var oT,HV;function G7e(){if(HV)return oT;HV=1;var e=M0();return oT=/web0s(?!.*chrome)/i.test(e),oT}var aT,VV;function K7e(){if(VV)return aT;VV=1;var e=qn(),t=W7e(),r=pR(),n=cie().set,i=uie(),o=lie(),a=q7e(),s=G7e(),l=wD(),c=e.MutationObserver||e.WebKitMutationObserver,d=e.document,u=e.process,f=e.Promise,h=t("queueMicrotask"),v,y,g,m,S;if(!h){var C=new i,b=function(){var w,E;for(l&&(w=u.domain)&&w.exit();E=C.get();)try{E()}catch(_){throw C.head&&v(),_}w&&w.enter()};!o&&!l&&!s&&c&&d?(y=!0,g=d.createTextNode(""),new c(b).observe(g,{characterData:!0}
vendor: 6,304 bytes, line 444
444),v=function(){g.data=y=!y}):!a&&f&&f.resolve?(m=f.resolve(void 0),m.constructor=f,S=r(m.then,m),v=function(){S(b)}):l?v=function(){u.nextTick(b)}:(n=r(n,e),v=function(){n(b)}),h=function(w){C.head||v(),C.add(w)}}return aT=h,aT}var sT,UV;function Y7e(){return UV||(UV=1,sT=function(e,t){try{arguments.length}catch{}}),sT}var lT,WV;function ch(){return WV||(WV=1,lT=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}),lT}var cT,qV;function uh(){if(qV)return cT;qV=1;var e=qn();return cT=e.Promise,cT}var uT,GV;function N0(){if(GV)return uT;GV=1;var e=qn(),t=uh(),r=ei(),n=Kne(),i=oie(),o=aa(),a=iie(),s=Nl(),l=jne(),c=t&&t.prototype,d=o("species"),u=!1,f=r(e.PromiseRejectionEvent),h=n("Promise",function(){var v=i(t),y=v!==String(t);if(!y&&l===66||s&&!(c.catch&&c.finally))return!0;if(!l||l<51||!/native code/.test(v)){var g=new t(function(C){C(1)}),m=function(C){C(function(){},function(){})},S=g.constructor={};if(S[d]=m,u=g.then(function(){})instanceof m,!u)return!0}return!y&&(a==="BROWSER"||a==="DENO")&&!f});return uT={CONSTRUCTOR:h,REJECTION_EVENT:f,SUBCLASSING:u},uT}var dT={},KV;function Ll(){if(KV)return dT;KV=1;var e=ms(),t=TypeError,r=function(n){var i,o;this.promise=new n(function(a,s){if(i!==void 0||o!==void 0)throw new t("Bad Promise constructor");i=a,o=s}),this.resolve=e(i),this.reject=e(o)};return dT.f=function(n){return new r(n)},dT}var YV;function X7e(){if(YV)return RV;YV=1;var e=sa(),t=Nl(),r=wD(),n=qn(),i=cR(),o=ja(),a=k0(),s=hD(),l=vR(),c=z7e(),d=ms(),u=ei(),f=gs(),h=B7e(),v=aie(),y=cie().set,g=K7e(),m=Y7e(),S=ch(),C=uie(),b=bD(),w=uh(),E=N0(),_=Ll(),R="Promise",P=E.CONSTRUCTOR,I=E.REJECTION_EVENT,O=E.SUBCLASSING,A=b.getterFor(R),x=b.set,T=w&&w.prototype,D=w,k=T,j=n.TypeError,N=n.document,L=n.process,M=_.f,$=M,F=!!(N&&N.createEvent&&n.dispatchEvent),z="unhandledrejection",H="rejectionhandled",U=0,V=1,W=2,K=1,Z=2,q,Y,G,re,ee=function(se){var Pe;return f(se)&&u(Pe=se.then)?Pe:!1},ne=function(se,Pe){var Te=Pe.value,ze=Pe.state===V,ke=ze?se.ok:se.fail,Me=se.resolve,qe=se.reject,Le=se.domain,xe,je,Ee;try{ke?(ze||(Pe.rejection===Z&&Se(Pe),Pe.rejection=K),ke===!0?xe=Te:(Le&&Le.enter(),xe=ke(Te),Le&&(Le.exit(),Ee=!0)),xe===se.promise?qe(new j("Promise-chain cycle")):(je=ee(xe))?o(je,xe,Me,qe):Me(xe)):qe(Te)}catch(Re){Le&&!Ee&&Le.exit(),qe(Re)}},te=function(se,Pe){se.notified||(se.notified=!0,g(function(){for(var Te=se.reactions,ze;ze=Te.get();)ne(ze,se);se.notified=!1,Pe&&!se.rejection&&le(se)}))},pe=function(se,Pe,Te){var ze,ke;F?(ze=N.createEvent("Event"),ze.promise=Pe,ze.reason=Te,ze.initEvent(se,!1,!0),n.dispatchEvent(ze)):ze={promise:Pe,reason:Te},!I&&(ke=n["on"+se])?ke(ze):se===z&&m("Unhandled promise rejection",Te)},le=function(se){o(y,n,function(){var Pe=se.facade,Te=se.value,ze=ye(se),ke;if(ze&&(ke=S(function(){r?L.emit("unhandledRejection",Te,Pe):pe(z,Pe,Te)}),se.rejection=r||ye(se)?Z:K,ke.error))throw ke.value})},ye=function(se){return se.rejection!==K&&!se.parent},Se=function(se){o(y,n,function(){var Pe=se.facade;r?L.emit("rejectionHandled",Pe):pe(H,Pe,se.value)})},_e=function(se,Pe,Te){return function(ze){se(Pe,ze,Te)}},De=function(se,Pe,Te){se.done||(se.done=!0,Te&&(se=Te),se.value=Pe,se.state=W,te(se,!0))},be=function(se,Pe,Te){if(!se.done){se.done=!0,Te&&(se=Te);try{if(se.facade===Pe)throw new j("Promise can't be resolved itself");var ze=ee(Pe);ze?g(function(){var ke={done:!1};try{o(ze,Pe,_e(be,ke,se),_e(De,ke,se))}catch(Me){De(ke,Me,se)}}):(se.value=Pe,se.state=V,te(se,!1))}catch(ke){De({done:!1},ke,se)}}};if(P&&(D=function(Pe){h(this,k),d(Pe),o(q,this);var Te=A(this);try{Pe(_e(be,Te),_e(De,Te))}catch(ze){De(Te,ze)}},k=D.prototype,q=function(Pe){x(this,{type:R,done:!1,notified:!1,parent:!1,reactions:new C,rejection:!1,state:U,value:null})},q.prototype=a(k,"then",function(Pe,Te){var ze=A(this),ke=M(v(this,D));return ze.parent=!0,ke.ok=u(Pe)?Pe:!0,ke.fail=u(Te)&&Te,ke.domain=r?L.domain:void 0,ze.state===U?ze.reactions.add(ke):g(function(){ne(ke,ze)}),ke.promise}),Y=function(){var se=new q,Pe=A(se);this.promise=se,this.resolve=_e(be,Pe),this.reject=_e(De,Pe)},_.f=M=function(se){return se===D||se===G?new Y(se):$(se)},!t&&u(w)&&T!==Object.prototype)){re=T.then,O||a(T,"then",function(Pe,Te){var ze=this;return new D(function(ke,Me){o(re,ze,ke,Me)}).then(Pe,Te)},{unsafe:!0});try{delete T.constructor}catch{}s&&s(T,k)}return e({global:!0,constructor:!0,wrap:!0,forced:P},{Promise:D}),G=i.Promise,l(D,R,!1,!0),c(R),RV}var XV={},fT,QV;function Q7e(){if(QV)return fT;QV=1;var e=aa(),t=e("iterator"),r=!1;try{var n=0,i={next:function(){return{done:!!n++}},return:function(){r=!0}};i[t]=function(){return this},Array.from(i,function(){throw 2})}catch{}return fT=function(o,a){try{if(!a&&!r)return!1}catch{return!1}var s=!1;try{var l={};l[t]=function(){return{next:function(){return{done:s=!0}}}},o(l)}catch{}return s},fT}var pT,JV;function gR(){if(JV)return pT;JV=1;var e=uh(),t=Q7e(),r=N0().CONSTRUCTOR;return pT=r||!t(function(n){e.all(n).then(void 0,function(){})}),pT}var ZV;function J7e(){if(ZV)return XV;ZV=1;var e=sa(),t=ja(),r=ms(),n=Ll(),i=ch(),o=$0(),a=gR();return e({target:"Promise",stat:!0,forced:a},{all:function(l){var c=this,d=n.f(c),u=d.resolve,f=d.reject,h=i(function(){var v=r(c.resolve),y=[],g=0,m=1;o(l,function(S){var C=g++,b=!1;m++,t(v,c,S).then(function(w){b||(b=!0,y[C]=w,--m||u(y))},f)}),--m||u(y)});return h.error&&f(h.value),d.promise}}),XV}var eU={},tU;function Z7e(){if(tU)return eU;tU=1;var e=sa(),t=Nl(),r=N0().CONSTRUCTOR,n=uh(),i=kl(),o=ei(),a=k0(),s=n&&n.prototype;if(e({target:"Promise",proto:!0,forced:r,real:!0},{catch:function(c){return this.then(void 0,c)}}),!t&&o(n)){var l=i("Promise").prototype.catch;s.catch!==l&&a(s,"catch",l,{unsafe:!0})}return eU}var rU={},nU;function eFe(){if(nU)return rU;nU=1;var e=sa(),t=ja(),r=ms(),n=Ll(),i=ch(),o=$0(),a=gR();return e({target:"Promise",stat:!0,forced:a},{race:function(l){var c=this,d=n.f(c),u=d.reject,f=i(function(){var h=r(c.resolve);o(l,function(v){t(h,c,v).then(d.resolve,u)})});return f.error&&u(f.value),d.promise}}),rU}var iU={},oU;function tFe(){if(oU)return iU;oU=1;var e=sa(),t=Ll(),r=N0().CONSTRUCTOR;return e({target:"Promise",stat:!0,forced:r},{reject:function(i){var o=t.f(this),a=o.reject;return a(i),o.promise}}),iU}var aU={},hT,sU;function die(){if(sU)return hT;sU=1;var e=Dl(),t=gs(),r=Ll();
444return hT=function(n,i){if(e(n),t(i)&&i.constructor===n)return i;var o=r.f(n),a=o.resolve;return a(i),o.promise},hT}var lU;function rFe(){if(lU)return aU;lU=1;var e=sa(),t=kl(),r=Nl(),n=uh(),i=N0().CONSTRUCTOR,o=die(),a=t("Promise"),s=r&&!i;return e({target:"Promise",stat:!0,forced:r||i},{resolve:function(c){return o(s&&this===a?n:this,c)}}),aU}var cU;function nFe(){return cU||(cU=1,X7e(),J7e(),Z7e(),eFe(),tFe(),rFe()),EV}var uU={},dU;function iFe(){if(dU)return uU;dU=1;var e=sa(),t=ja(),r=ms(),n=Ll(),i=ch(),o=$0(),a=gR();return e({target:"Promise",stat:!0,forced:a},{allSettled:function(l){var c=this,d=n.f(c),u=d.resolve,f=d.reject,h=i(function(){var v=r(c.resolve),y=[],g=0,m=1;o(l,function(S){var C=g++,b=!1;m++,t(v,c,S).then(function(w){b||(b=!0,y[C]={status:"fulfilled",value:w},--m||u(y))},function(w){b||(b=!0,y[C]={status:"rejected",reason:w},--m||u(y))})}),--m||u(y)});return h.error&&f(h.value),d.promise}}),uU}var fU={},pU;function oFe(){if(pU)return fU;pU=1;var e=sa(),t=ja(),r=ms(),n=kl(),i=Ll(),o=ch(),a=$0(),s=gR(),l="No one promise resolved";return e({target:"Promise",stat:!0,forced:s},{any:function(d){var u=this,f=n("AggregateError"),h=i.f(u),v=h.resolve,y=h.reject,g=o(function(){var m=r(u.resolve),S=[],C=0,b=1,w=!1;a(d,function(E){var _=C++,R=!1;b++,t(m,u,E).then(function(P){R||w||(w=!0,v(P))},function(P){R||w||(R=!0,S[_]=P,--b||y(new f(S,l)))})}),--b||y(new f(S,l))});return g.error&&y(g.value),h.promise}}),fU}var hU={},vU;function aFe(){if(vU)return hU;vU=1;var e=sa(),t=qn(),r=cD(),n=sie(),i=Ll(),o=ms(),a=ch(),s=t.Promise,l=!1,c=!s||!s.try||a(function(){s.try(function(d){l=d===8},8)}).error||!l;return e({target:"Promise",stat:!0,forced:c},{try:function(d){var u=arguments.length>1?n(arguments,1):[],f=i.f(this),h=a(function(){return r(o(d),void 0,u)});
444return(h.error?f.reject:f.resolve)(h.value),f.promise}}),hU}var gU={},mU;function sFe(){if(mU)return gU;mU=1;var e=sa(),t=Ll();return e({target:"Promise",stat:!0},{withResolvers:function(){var n=t.f(this);return{promise:n.promise,resolve:n.resolve,reject:n.reject}}}),gU}var yU={},SU;function lFe(){if(SU)return yU;SU=1;var e=sa(),t=Nl(),r=uh(),n=oa(),i=kl(),o=ei(),a=aie(),s=die(),l=k0(),c=r&&r.prototype,d=!!r&&n(function(){c.finally.call({then:function(){}},function(){})});if(e({target:"Promise",proto:!0,real:!0,forced:d},{finally:function(f){var h=a(this,i("Promise")),v=o(f);return this.then(v?function(y){return s(h,f()).then(function(){return y})}:f,v?function(y){return s(h,f()).then(function(){throw y})}:f)}}),!t&&o(r)){var u=i("Promise").prototype.finally;c.finally!==u&&l(c,"finally",u,{unsafe:!0})}return yU}var CU={},vT,bU;function cFe(){if(bU)return vT;bU=1;var e=Do(),t=vD(),r=CD(),n=lR(),i=e("".charAt),o=e("".charCodeAt),a=e("".slice),s=function(l){return function(c,d){var u=r(n(c)),f=t(d),h=u.length,v,y;return f<0||f>=h?l?"":void 0:(v=o(u,f),v<55296||v>56319||f+1===h||(y=o(u,f+1))<56320||y>57343?l?i(u,f):v:l?a(u,f,f+2):(v-55296<<10)+(y-56320)+65536)}};return vT={codeAt:s(!1),charAt:s(!0)},vT}var wU;function uFe(){if(wU)return CU;wU=1;var e=cFe().charAt,t=CD(),r=bD(),n=tie(),i=rie(),o="String Iterator",a=r.set,s=r.getterFor(o);return n(String,"String",function(l){a(this,{type:o,string:t(l),index:0})},function(){var c=s(this),d=c.string,u=c.index,f;return u>=d.length?i(void 0,!0):(f=e(d,u),c.index+=f.length,i(f,!1))}),CU}var gT,_U;function dFe(){if(_U)return gT;_U=1,$7e(),nie(),nFe(),iFe(),oFe(),aFe(),sFe(),lFe(),uFe();var e=cR();return gT=e.Promise,gT}var EU={},mT,RU;function fFe(){return RU||(RU=1,mT={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}),mT}var PU;function pFe(){if(PU)return EU;PU=1,nie();var e=fFe(),t=qn(),r=vR(),n=lh();for(var i in e)r(t[i],i),n[i]=n.Array;return EU}var yT,IU;function hFe(){if(IU)return yT;IU=1;var e=dFe();return pFe(),yT=e,yT}var ST,xU;function vFe(){return xU||(xU=1,ST=hFe()),ST}var CT,OU;function fie(){if(OU)return CT;OU=1;var e=i7e().default,t=e(vFe());function r(){var n={};return n.promise=new t.default(function(i,o){n.resolve=i,n.reject=o}),n}return CT=r,CT}var TU;function gFe(){if(TU)return t1;TU=1;var e=Zn;Object.defineProperty(t1,"__esModule",{value:!0}),t1.default=r;var t=e(fie());function r(){var n,i=[],o=function(l){if(n){var c=n,d=c.resolve;n=null,d(l)}else i.push(l)},a=function(){return i.length?Promise.resolve(i.shift()):(n||(n=(0,t.default)())).promise};return{push:o,shift:a}}return t1}var r1={},bT={exports:{}},wT={exports:{}},AU;function mFe(){return AU||(AU=1,function(e){function t(r,n){if(r==null)return{};var i={},o=Object.keys(r),a,s;for(s=0;s<o.length;s++)a=o[s],!(n.indexOf(a)>=0)&&(i[a]=r[a]);return i}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(wT)),wT.exports}var MU;function yFe(){return MU||(MU=1,function(e){var t=mFe();function r(n,i){if(n==null)return{};var o=t(n,i),a,s;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(n);for(s=0;s<l.length;s++)a=l[s],!(i.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(n,a)&&(o[a]=n[a])}return o}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(bT)),bT.exports}var n1={},$U;function SFe(){if($U)return n1;$U=1,Object.defineProperty(n1,"__esModule",{value:!0}),n1.default=e;function e(t){return typeof t=="function"?t():t}return n1}var kU;function pie(){if(kU)return r1;kU=1;var e=Zn;Object.defineProperty(r1,"__esModule",{value:!0}),r1.default=d;var t=e(Us()),r=e(rh()),n=e(Ws()),i=e(yFe()),o=e(SFe()),a=["authorizationToken","credentials","looseEvent","looseEvents","region","subscriptionKey"];function s(u,f){var h=Object.keys(u);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(u);f&&(v=v.filter(function(y){return Object.getOwnPropertyDescriptor(u,y).enumerable})),h.push.apply(h,v)}return h}function l(u){for(var f=1;f<arguments.length;f++){var h=arguments[f]!=null?arguments[f]:{};
444f%2?s(Object(h),!0).forEach(function(v){(0,r.default)(u,v,h[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(h)):s(Object(h)).forEach(function(v){Object.defineProperty(u,v,Object.getOwnPropertyDescriptor(h,v))})}return u}var c=!0;function d(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},f=u.authorizationToken,h=u.credentials,v=u.looseEvent,y=u.looseEvents,g=u.region,m=g===void 0?"westus":g,S=u.subscriptionKey,C=(0,i.default)(u,a);if(typeof v<"u"&&(y=v),!h){if(!f&&!S)throw new Error("web-speech-cognitive-services: Credentials must be specified.");h=function(){var b=(0,n.default)(t.default.mark(function w(){return t.default.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:if(!f){_.next=8;break}return _.next=3,(0,o.default)(f);case 3:_.t1=_.sent,_.t2=m,_.t0={authorizationToken:_.t1,region:_.t2},_.next=13;break;case 8:return _.t3=m,_.next=11,(0,o.default)(S);case 11:_.t4=_.sent,_.t0={region:_.t3,subscriptionKey:_.t4};case 13:return _.abrupt("return",_.t0);case 14:case"end":return _.stop()}},w)}));return function(){return b.apply(this,arguments)}}()}return l(l({},C),{},{fetchCredentials:function(){var b=(0,n.default)(t.default.mark(function E(){var _,R,P,I,O,A,x,T;return t.default.wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return k.next=2,(0,o.default)(h);case 2:if(_=k.sent,R=_.authorizationToken,P=_.customVoiceHostname,I=_.region,O=_.speechRecognitionHostname,A=_.speechSynthesisHostname,x=_.subscriptionKey,!(!R&&!x||R&&x)){k.next=13;break}throw new Error('web-speech-cognitive-services: Either "authorizationToken" or "subscriptionKey" must be provided.');case 13:if(!(!I&&!(O&&A))){k.next=17;break}throw new Error('web-speech-cognitive-services: Either "region" or "speechRecognitionHostname" and "speechSynthesisHostname" must be set.');case 17:if(!(I&&(P||O||A))){k.next=21;break}throw new Error('web-speech-cognitive-services: Only either "region" or "customVoiceHostname", "speechRecognitionHostname" and "speechSynthesisHostname" can be set.');case 21:if(!R){k.next=26;break}if(typeof R=="string"){k.next=24;break}throw new Error('web-speech-cognitive-services: "authorizationToken" must be a string.');case 24:k.next=28;break;case 26:if(typeof x=="string"){k.next=28;break}throw new Error('web-speech-cognitive-services: "subscriptionKey" must be a string.');case 28:return c&&x&&(c=!1),T=R?{authorizationToken:R}:{subscriptionKey:x},I?T.region=I:(T.customVoiceHostname=P,T.speechRecognitionHostname=O,T.speechSynthesisHostname=A),k.abrupt("return",T);case 32:case"end":return k.stop()}},E)}));function w(){return b.apply(this,arguments)}return w}(),looseEvents:y})}return r1}var Pg={},NU;function CFe(){if(NU)return Pg;NU=1;var e=Zn;Object.defineProperty(Pg,"__esModule",{value:!0}),Pg.default=void 0;var t=e(Yc()),r=e(Kc()),n=function(){function i(){(0,t.default)(this,i),this._phrases=[]}return(0,r.default)(i,[{key:"addFromString",value:function(){throw new Error("JSGF is not supported")}},{key:"phrases",get:function(){return this._phrases},set:function(a){if(Array.isArray(a))this._phrases=a;else if(typeof a=="string")this._phrases=[a];else throw new Error("The provided value is not an array or of type 'string'")}}]),i}();return Pg.default=n,Pg}var DU;function bFe(){if(DU)return df;DU=1;var e=Zn;Object.defineProperty(df,"__esModule",{value:!0}),df.createSpeechRecognitionPonyfillFromRecognizer=T,df.default=void 0;var t=e(Us()),r=e(o6e()),n=e(rh()),i=e(Ws()),o=e(Kc()),a=e(Yc()),s=e(J_()),l=e(Z_()),c=e(eE()),d=rE(),u=e(n7e()),f=e(gFe()),h=e(pie()),v=e(CFe()),y=e(Dne());function g(k,j){var N=Object.keys(k);if(Object.getOwnPropertySymbols){var L=Object.getOwnPropertySymbols(k);j&&(L=L.filter(function(M){return Object.getOwnPropertyDescriptor(k,M).enumerable})),N.push.apply(N,L)}return N}function m(k){for(var j=1;j<arguments.length;j++){var N=arguments[j]!=null?arguments[j]:{};j%2?g(Object(N),!0).forEach(function(L){(0,n.default)(k,L,N[L])}):Object.getOwnPropertyDescriptors?Object.defineProperties(k,Object.getOwnPropertyDescriptors(N)):g(Object(N)).forEach(function(L){Object.defineProperty(k,L,Object.getOwnPropertyDescriptor(N,L))})}return k}function S(k){var j=C();return function(){var L=(0,c.default)(k),M;if(j){var $=(0,c.default)(this).constructor;M=Reflect.construct(L,arguments,$)}else M=L.apply(this,arguments);return(0,l.default)(this,M)}}function C(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var b=y.default.AudioConfig,w=y.default.OutputFormat,E=y.default.ResultReason,_=y.default.SpeechConfig,R=y.default.SpeechRecognizer;function P(k){var j=k.duration,N=k.errorDetails,L=k.json,M=k.offset,$=k.properties,F=k.reason,z=k.resultId,H=k.text;return{duration:j,errorDetails:N,json:JSON.parse(L),offset:M,properties:$,reason:F,resultId:z,text:H}}function I(k){var j=new Int16Array(k);return[].reduce.call(j,function(N,L){return N+Math.abs(L)},0)/j.length}function O(k){return function(){for(var j=arguments.length,N=new Array(j),L=0;L<j;L++)N[L]=arguments[L];
444return new Promise(function(M,$){return k.apply(void 0,N.concat([M,$]))})}}var A=function(k){(0,s.default)(N,k);var j=S(N);function N(L){var M,$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},F=$.data,z=$.emma,H=$.interpretation,U=$.resultIndex,V=$.results;return(0,a.default)(this,N),M=j.call(this,L),M.data=F,M.emma=z,M.interpretation=H,M.resultIndex=U,M.results=V,M}return(0,o.default)(N)}(d.Event);function x(k){var j=k.attach,N=k.attach.bind(k),L,M;return k.attach=(0,i.default)(t.default.mark(function $(){var F;return t.default.wrap(function(H){for(;;)switch(H.prev=H.next){case 0:return H.next=2,N();case 2:return F=H.sent,H.abrupt("return",m(m({},F),{},{read:function(){var U=(0,i.default)(t.default.mark(function W(){var K;return t.default.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return q.next=2,F.read();case 2:if(K=q.sent,!L&&I(K.buffer)>150&&(k.events.onEvent({name:"FirstAudibleChunk"}),L=!0),!M){q.next=6;break}return q.abrupt("return",{buffer:new ArrayBuffer(0),isEnd:!0,timeReceived:Date.now()});case 6:return q.abrupt("return",K);case 7:case"end":return q.stop()}},W)}));function V(){return U.apply(this,arguments)}return V}()}));case 4:case"end":return H.stop()}},$)})),{audioConfig:k,pause:function(){M=!0},unprepare:function(){k.attach=j}}}function T(k){var j=k.createRecognizer,N=k.enableTelemetry,L=k.looseEvents,M=k.referenceGrammars,$=k.textNormalization;R.enableTelemetry(N!==!1);var F=function(z){(0,s.default)(U,z);var H=S(U);function U(){var V;return(0,a.default)(this,U),V=H.call(this),V._continuous=!1,V._interimResults=!1,V._lang=typeof window<"u"?window.document.documentElement.getAttribute("lang")||window.navigator.language:"en-US",V._grammars=new v.default,V._maxAlternatives=1,V}return(0,o.default)(U,[{key:"emitCognitiveServices",value:function(W,K){this.dispatchEvent(new A("cognitiveservices",{data:m(m({},K),{},{type:W})}))}},{key:"continuous",get:function(){return this._continuous},set:function(W){this._continuous=W}},{key:"grammars",get:function(){return this._grammars},set:function(W){if(W instanceof v.default)this._grammars=W;else throw new Error("The provided value is not of type 'SpeechGrammarList'")}},{key:"interimResults",get:function(){return this._interimResults},set:function(W){this._interimResults=W}},{key:"maxAlternatives",get:function(){return this._maxAlternatives},set:function(W){this._maxAlternatives=W}},{key:"lang",get:function(){return this._lang},set:function(W){this._lang=W}},{key:"onaudioend",get:function(){return(0,d.getEventAttributeValue)(this,"audioend")},set:function(W){(0,d.setEventAttributeValue)(this,"audioend",W)}},{key:"onaudiostart",get:function(){return(0,d.getEventAttributeValue)(this,"audiostart")},set:function(W){(0,d.setEventAttributeValue)(this,"audiostart",W)}},{key:"oncognitiveservices",get:function(){return(0,d.getEventAttributeValue)(this,"cognitiveservices")},set:function(W){(0,d.setEventAttributeValue)(this,"cognitiveservices",W)}},{key:"onend",get:function(){return(0,d.getEventAttributeValue)(this,"end")},set:function(W){(0,d.setEventAttributeValue)(this,"end",W)}},{key:"onerror",get:function(){return(0,d.getEventAttributeValue)(this,"error")}
444,set:function(W){(0,d.setEventAttributeValue)(this,"error",W)}},{key:"onresult",get:function(){return(0,d.getEventAttributeValue)(this,"result")},set:function(W){(0,d.setEventAttributeValue)(this,"result",W)}},{key:"onsoundend",get:function(){return(0,d.getEventAttributeValue)(this,"soundend")},set:function(W){(0,d.setEventAttributeValue)(this,"soundend",W)}},{key:"onsoundstart",get:function(){return(0,d.getEventAttributeValue)(this,"soundstart")},set:function(W){(0,d.setEventAttributeValue)(this,"soundstart",W)}},{key:"onspeechend",get:function(){return(0,d.getEventAttributeValue)(this,"speechend")},set:function(W){(0,d.setEventAttributeValue)(this,"speechend",W)}},{key:"onspeechstart",get:function(){return(0,d.getEventAttributeValue)(this,"speechstart")},set:function(W){(0,d.setEventAttributeValue)(this,"speechstart",W)}},{key:"onstart",get:function(){return(0,d.getEventAttributeValue)(this,"start")},set:function(W){(0,d.setEventAttributeValue)(this,"start",W)}},{key:"start",value:function(){var W=this;this._startOnce().catch(function(K){W.dispatchEvent(new ErrorEvent("error",{error:K,message:K&&(K.stack||K.message)}))})}},{key:"_startOnce",value:function(){var V=(0,i.default)(t.default.mark(function K(){var Z=this,q,Y,G,re,ee,ne,te,pe,le,ye,Se,_e,De,be,se,Pe,Te,ze;return t.default.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return Me.next=2,j(this.lang);case 2:return q=Me.sent,Y=x(q.audioConfig),G=Y.pause,re=Y.unprepare,Me.prev=4,ee=(0,f.default)(),le=q.audioConfig.events.attach(function(qe){var Le=qe.name;Le==="AudioSourceReadyEvent"?ee.push({audioSourceReady:{}}):Le==="AudioSourceOffEvent"?ee.push({audioSourceOff:{}}):Le==="FirstAudibleChunk"&&ee.push({firstAudibleChunk:{}})}),ye=le.detach,q.canceled=function(qe,Le){var xe=Le.errorDetails,je=Le.offset,Ee=Le.reason,Re=Le.sessionId;ee.push({canceled:{errorDetails:xe,offset:je,reason:Ee,sessionId:Re}})},q.recognized=function(qe,Le){var xe=Le.offset,je=Le.result,Ee=Le.sessionId;ee.push({recognized:{offset:xe,result:P(je),sessionId:Ee}})},q.recognizing=function(qe,Le){var xe=Le.offset,je=Le.result,Ee=Le.sessionId;ee.push({recognizing:{offset:xe,result:P(je),sessionId:Ee}})},q.sessionStarted=function(qe,Le){var xe=Le.sessionId;ee.push({sessionStarted:{sessionId:xe}})},q.sessionStopped=function(qe,Le){var xe=Le.sessionId;ee.push({sessionStopped:{sessionId:xe}})},q.speechStartDetected=function(qe,Le){var xe=Le.offset,je=Le.sessionId;ee.push({speechStartDetected:{offset:xe,sessionId:je}})},q.speechEndDetected=function(qe,Le){var xe=Le.sessionId;ee.push({speechEndDetected:{sessionId:xe}})},Se=this.grammars.phrases,_e=q.privReco.dynamicGrammar,M&&M.length&&_e.addReferenceGrammar(M),Se&&Se.length&&_e.addPhrase(Se),Me.next=20,O(q.startContinuousRecognitionAsync.bind(q))();case 20:q.stopContinuousRecognitionAsync?(this.abort=function(){return ee.push({abort:{}})},this.stop=function(){return ee.push({stop:{}})}):this.abort=this.stop=void 0,se=[],Pe=t.default.mark(function qe(Le){var xe,je,Ee,Re,me,ce,Ae,We,lt,yt,nt,it;return t.default.wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:return Ye.next=2,ee.shift();case 2:if(xe=Ye.sent,je=xe.abort,Ee=xe.audioSourceOff,Re=xe.audioSourceReady,me=xe.canceled,ce=xe.firstAudibleChunk,Ae=xe.recognized,We=xe.recognizing,lt=xe.stop,Object.keys(xe).forEach(function(vt){return Z.emitCognitiveServices(vt,xe[vt])}),yt=me&&me.errorDetails,!/Permission[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]denied/.test(yt||"")){Ye.next=9;break}return be={error:"not-allowed",type:"error"},Ye.abrupt("return","break");case 9:if(Le||Z.dispatchEvent(new A("start")),!yt){Ye.next=15;break}return/1006/.test(yt)?(De||(Z.dispatchEvent(new A("audiostart")),Z.dispatchEvent(new A("audioend"))),be={error:"network",type:"error"}):be={error:"unknown",type:"error"},Ye.abrupt("return","break");case 15:if(!(je||lt)){Ye.next=22;break}if(je?(be={error:"aborted",type:"error"},pe="abort"):(G(),pe="stop"),!(je&&q.stopContinuousRecognitionAsync)){Ye.next=20;break}return Ye.next=20,O(q.stopContinuousRecognitionAsync.bind(q))();case 20:Ye.next=61;break;case 22:if(!Re){Ye.next=27;break}Z.dispatchEvent(new A("audiostart")),De=!0,Ye.next=61;break;case 27:if(!ce){Ye.next=32;break}Z.dispatchEvent(new A("soundstart")),ne=!0,Ye.next=61;break;case 32:if(!Ee){Ye.next=40;break}return te&&Z.dispatchEvent(new A("speechend")),ne&&Z.dispatchEvent(new A("soundend")),De&&Z.dispatchEvent(new A("audioend")),De=ne=te=!1,Ye.abrupt("return","break");case 40:if(pe==="abort"){Ye.next=61;break}if(!(Ae&&Ae.result&&Ae.result.reason===E.NoMatch)){Ye.next=45;break}be={error:"no-speech",type:"error"},Ye.next=61;break;case 45:if(!(Ae||We)){Ye.next=61;break}if(De||(Z.dispatchEvent(new A("audiostart")),De=!0),ne||(Z.dispatchEvent(new A("soundstart")),ne=!0),te||(Z.dispatchEvent(new A("speechstart")),te=!0),!Ae){Ye.next=60;break}if(nt=(0,u.default)(Ae.result,{maxAlternatives:Z.maxAlternatives,textNormalization:$}),it=!!nt[0].transcript,it&&(se=[].concat((0,r.default)(se),[nt]),Z.continuous&&Z.dispatchEvent(new A("result",{results:se}))),Z.continuous&&it?be=null:be={results:se,type:"result"},!(!Z.continuous&&q.stopContinuousRecognitionAsync)){Ye.next=57;break}return Ye.next=57,O(q.stopContinuousRecognitionAsync.bind(q))();case 57:L&&be&&it&&(Z.dispatchEvent(new A(be.type,be)),be=null),Ye.next=61;break;case 60:We&&Z.interimResults&&Z.dispatchEvent(new A("result",{results:[].concat((0,r.default)(se),[(0,u.default)(We.result,{maxAlternatives:Z.maxAlternatives,textNormalization:$})])}));case 61:case"end":return Ye.stop()}},qe)}),Te=0;case 24:if(!(!pe||De)){Me.next=32;break}return Me.delegateYield(Pe(Te),"t0",26);case 26:if(ze=Me.t0,ze!=="break"){Me.next=29;break}return Me.abrupt("break",32);case 29:Te++,Me.next=24;break;case 32:te&&this.dispatchEvent(new A("speechend")),ne&&this.dispatchEvent(new A("soundend")),De&&this.dispatchEvent(new A("audioend")),be&&(be.type==="result"&&!be.results.length&&(be={error:"no-speech",type:"error"}),be.type==="error"?this.dispatchEvent(new ErrorEvent("error",be)):this.dispatchEvent(new A(be.type,be))),this.dispatchEvent(new A("end")),ye(),Me.next=44;break;case 40:throw Me.prev=40,Me.t1=Me.catch(4),Me.t1;case 44:return Me.prev=44,re(),q.dispose(),Me.finish(44);case 48:case"end":return Me.stop()}},K,this,[[4,40,44,48]])}));function W(){return V.apply(this,arguments)}return W}()}]),U}(d.EventTarget);return{SpeechGrammarList:v.default,SpeechRecognition:F,SpeechRecognitionEvent:A}}
444var D=function(j){var N=(0,h.default)(j),L=N.audioConfig,M=L===void 0?b.fromDefaultMicrophoneInput():L,$=N.enableTelemetry,F=$===void 0?!0:$,z=N.fetchCredentials,H=N.looseEvents,U=N.referenceGrammars,V=N.speechRecognitionEndpointId,W=N.textNormalization,K=W===void 0?"display":W;if(!M&&(!window.navigator.mediaDevices||!window.navigator.mediaDevices.getUserMedia))return{};var Z=function(){var q=(0,i.default)(t.default.mark(function Y(G){var re,ee,ne,te,pe,le,ye;return t.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:return _e.next=2,z();case 2:return re=_e.sent,ee=re.authorizationToken,ne=re.region,te=re.speechRecognitionHostname,pe=re.subscriptionKey,te?(ye={hostname:te,port:443,protocol:"wss:"},ee?(le=_.fromHost(ye),le.authorizationToken=ee):le=_.fromHost(ye,pe)):le=ee?_.fromAuthorizationToken(ee,ne):_.fromSubscription(pe,ne),V&&(le.endpointId=V),le.outputFormat=w.Detailed,le.speechRecognitionLanguage=G||"en-US",_e.abrupt("return",new R(le,M));case 12:case"end":return _e.stop()}},Y)}));return function(G){return q.apply(this,arguments)}}();return T({audioConfig:M,createRecognizer:Z,enableTelemetry:F,looseEvents:H,referenceGrammars:U,textNormalization:K})};return df.default=D,df}var LU;function wFe(){return LU||(LU=1,function(e){var t=Q_();Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"createSpeechRecognitionPonyfillFromRecognizer",{enumerable:!0,get:function(){return r.createSpeechRecognitionPonyfillFromRecognizer}}),e.default=void 0;var r=i(bFe());function n(a){if(typeof WeakMap!="function")return null;var s=new WeakMap,l=new WeakMap;return(n=function(d){return d?l:s})(a)}function i(a,s){if(!s&&a&&a.__esModule)return a;
444if(a===null||t(a)!=="object"&&typeof a!="function")return{default:a};var l=n(s);if(l&&l.has(a))return l.get(a);var c={},d=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in a)if(u!=="default"&&Object.prototype.hasOwnProperty.call(a,u)){var f=d?Object.getOwnPropertyDescriptor(a,u):null;f&&(f.get||f.set)?Object.defineProperty(c,u,f):c[u]=a[u]}return c.default=a,l&&l.set(a,c),c}var o=r.default;e.default=o}(GI)),GI}var Ig={},xg={},i1={exports:{}},jU;function _Fe(){return jU||(jU=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;try{var o=n.call(i);return typeof o.then=="function"?new Promise(function(a){o.then(a,function(){return a()})}):o}catch{}}e.exports=t.default,e.exports.default=t.default}(i1,i1.exports)),i1.exports}var Og={},FU=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function EFe(e,t){return!!(e===t||FU(e)&&FU(t))}function RFe(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!EFe(e[r],t[r]))return!1;return!0}function PFe(e,t){t===void 0&&(t=RFe);var r=null;function n(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(r&&r.lastThis===this&&t(i,r.lastArgs))return r.lastResult;var a=e.apply(this,i);return r={lastResult:a,lastArgs:i,lastThis:this},a}return n.clear=function(){r=null},n}const IFe=Object.freeze(Object.defineProperty({__proto__:null,default:PFe},Symbol.toStringTag,{value:"Module"})),xFe=xw(IFe);var Tg={},zU;function OFe(){if(zU)return Tg;zU=1;var e=Zn;Object.defineProperty(Tg,"__esModule",{value:!0}),Tg.default=void 0;var t=e(Us()),r=e(Ws()),n=e(Yc()),i=e(Kc()),o=function(){function a(s){(0,n.default)(this,a),this.audioContext=s}return(0,i.default)(a,[{key:"pause",value:function(){this.audioContext&&this.audioContext.suspend(),this.playingUtterance&&this.playingUtterance.dispatchEvent(new CustomEvent("pause"))}},{key:"resume",value:function(){this.audioContext&&this.audioContext.resume(),this.playingUtterance&&this.playingUtterance.dispatchEvent(new CustomEvent("resume"))}},{key:"start",value:function(){var s=(0,r.default)(t.default.mark(function c(d){var u;return t.default.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:if(!(u=d.shift())){h.next=7;break}return this.playingUtterance=u,h.next=4,u.play(this.audioContext);case 4:this.playingUtterance=null,h.next=0;break;case 7:case"end":return h.stop()}},c,this)}));function l(c){return s.apply(this,arguments)}return l}()},{key:"stop",value:function(){this.playingUtterance&&this.playingUtterance.stop(),this.audioContext.state==="suspended"&&this.audioContext.resume()}}]),a}();return Tg.default=o,Tg}var BU;function TFe(){if(BU)return Og;BU=1;var e=Zn;Object.defineProperty(Og,"__esModule",{value:!0}),Og.default=void 0;var t=e(Us()),r=e(Ws()),n=e(Yc()),i=e(Kc()),o=e(xFe),a=e(OFe()),s=function(){function l(c){var d=c.audioContext,u=c.ponyfill;(0,n.default)(this,l),this.consumer=null,this.paused=!1,this.queue=[],this.getAudioContext=(0,o.default)(function(){return d||new u.AudioContext})}return(0,i.default)(l,[{key:"pause",value:function(){this.paused=!0,this.consumer&&this.consumer.pause()}},{key:"push",value:function(d){this.queue.push(d),this.startConsumer()}},{key:"resume",value:function(){this.paused=!1,this.consumer?this.consumer.resume():this.startConsumer()}},{key:"speaking",get:function(){return!!this.consumer}},{key:"startConsumer",value:function(){var c=(0,r.default)(t.default.mark(function u(){return t.default.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:if(!(!this.paused&&this.queue.length&&!this.consumer)){h.next=7;break}return this.consumer=new a.default(this.getAudioContext()),h.next=4,this.consumer.start(this.queue);case 4:this.consumer=null,h.next=0;break;case 7:case"end":return h.stop()}},u,this)}));function d(){return c.apply(this,arguments)}return d}()},{key:"stop",value:function(){this.queue.splice(0),this.consumer&&this.consumer.stop()}}]),l}();return Og.default=s,Og}var o1={},Ag={},HU;function hie(){if(HU)return Ag;HU=1;var e=Zn;
444Object.defineProperty(Ag,"__esModule",{value:!0}),Ag.default=void 0;var t=e(Yc()),r=e(Kc()),n=function(){function i(o){var a=o.gender,s=o.lang,l=o.voiceURI;(0,t.default)(this,i),this._default=!1,this._gender=a,this._lang=s,this._localService=!1,this._name=l,this._voiceURI=l}return(0,r.default)(i,[{key:"default",get:function(){return this._default}},{key:"gender",get:function(){return this._gender}},{key:"lang",get:function(){return this._lang}},{key:"localService",get:function(){return this._localService}},{key:"name",get:function(){return this._name}},{key:"voiceURI",get:function(){return this._voiceURI}}]),i}();return Ag.default=n,Ag}var VU;function AFe(){if(VU)return o1;VU=1;var e=Zn;Object.defineProperty(o1,"__esModule",{value:!0}),o1.default=a;var t=e(Us()),r=e(Ws()),n=e(hie());function i(l){return o.apply(this,arguments)}function o(){return o=(0,r.default)(t.default.mark(function l(c){var d,u,f,h,v,y;return t.default.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return d=c.customVoiceHostname,u=c.deploymentId,f=c.region,h=c.subscriptionKey,v=d||"".concat(f,".customvoice.api.speech.microsoft.com"),m.next=4,fetch("https://".concat(encodeURI(v),"/api/texttospeech/v2.0/endpoints/").concat(encodeURIComponent(u)),{headers:{accept:"application/json","ocp-apim-subscription-key":h}});case 4:if(y=m.sent,y.ok){m.next=7;break}throw new Error("Failed to fetch custom voices");case 7:return m.abrupt("return",y.json());case 8:case"end":return m.stop()}},l)})),o.apply(this,arguments)}function a(l){return s.apply(this,arguments)}function s(){return s=(0,r.default)(t.default.mark(function l(c){var d,u,f,h,v,y;return t.default.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return d=c.customVoiceHostname,u=c.deploymentId,f=c.region,h=c.subscriptionKey,m.next=3,i({customVoiceHostname:d,deploymentId:u,region:f,subscriptionKey:h});case 3:return v=m.sent,y=v.models,m.abrupt("return",y.map(function(S){var C=S.properties.Gender,b=S.locale,w=S.name;return new n.default({gender:C,lang:b,voiceURI:w})}).sort(function(S,C){var b=S.name,w=C.name;return b>w?1:b<w?-1:0}));case 6:case"end":return m.stop()}},l)})),s.apply(this,arguments)}return o1}var a1={},UU;function MFe(){if(UU)return a1;UU=1;var e=Zn;Object.defineProperty(a1,"__esModule",{value:!0}),a1.default=s;var t=e(Us()),r=e(rh()),n=e(Ws()),i=e(hie());function o(c,d){var u=Object.keys(c);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(c);d&&(f=f.filter(function(h){return Object.getOwnPropertyDescriptor(c,h).enumerable})),u.push.apply(u,f)}return u}function a(c){for(var d=1;d<arguments.length;d++){var u=arguments[d]!=null?arguments[d]:{};d%2?o(Object(u),!0).forEach(function(f){(0,r.default)(c,f,u[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(u)):o(Object(u)).forEach(function(f){Object.defineProperty(c,f,Object.getOwnPropertyDescriptor(u,f))})}return c}function s(c){return l.apply(this,arguments)}function l(){return l=(0,n.default)(t.default.mark(function c(d){var u,f,h,v,y,g,m;return t.default.wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return u=d.authorizationToken,f=d.region,h=d.speechSynthesisHostname,v=d.subscriptionKey,y=h||"".concat(encodeURI(f),".tts.speech.microsoft.com"),C.next=4,fetch("https://".concat(y,"/cognitiveservices/voices/list"),{headers:a({"content-type":"application/json"},u?{authorization:"Bearer ".concat(u)}:{"Ocp-Apim-Subscription-Key":v})});case 4:if(g=C.sent,g.ok){C.next=7;break}throw new Error("Failed to fetch voices");case 7:return C.next=9,g.json();case 9:return m=C.sent,C.abrupt("return",m.map(function(b){var w=b.Gender,E=b.Locale,_=b.Name;return new i.default({gender:w,lang:E,voiceURI:_})}).sort(function(b,w){var E=b.name,_=w.name;return E>_?1:E<_?-1:0}));case 11:case"end":return C.stop()}},c)})),l.apply(this,arguments)}return a1}var Mg={},WU;function vie(){if(WU)return Mg;WU=1;var e=Zn;Object.defineProperty(Mg,"__esModule",{value:!0}),Mg.default=void 0;var t=e(Kc()),r=e(Yc()),n=e(J_()),i=e(Z_()),o=e(eE()),a=rE();function s(d){var u=l();return function(){var h=(0,o.default)(d),v;if(u){var y=(0,o.default)(this).constructor;v=Reflect.construct(h,arguments,y)}else v=h.apply(this,arguments);return(0,i.default)(this,v)}}function l(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var c=function(d){(0,n.default)(f,d);var u=s(f);function f(h){return(0,r.default)(this,f),u.call(this,h)}return(0,t.default)(f)}(a.Event);return Mg.default=c,Mg}var $g={},s1={exports:{}},_T,qU;function $Fe(){return qU||(qU=1,_T=function(){var e={};return e.promise=new Promise(function(t,r){e.resolve=t,e.reject=r}),e}),_T}var GU;function kFe(){return GU||(GU=1,function(e,t){Object.defineProperty(t,"__esMo
444dule",{value:!0}),t.default=void 0;var r=n($Fe());function n(l){return l&&l.__esModule?l:{default:l}}function i(l,c){if(!(l instanceof c))throw new TypeError("Cannot call a class as a function")}function o(l,c){for(var d=0;d<c.length;d++){var u=c[d];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(l,u.key,u)}}function a(l,c,d){return c&&o(l.prototype,c),d&&o(l,d),l}var s=function(){function l(){var c=this,d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};i(this,l),this.defers=[],this.upcomingDeferred=null,this.eventListener=this.eventListener.bind(this),this.options=d,this.one=this.one.bind(this),this.upcoming=this.upcoming.bind(this),this[Symbol.iterator]=function(){return{next:function(){return{done:!1,value:c.upcoming()}}}}}return a(l,[{key:"eventListener",value:function(d){var u=this.defers.shift(),f=this.options.array?[].slice.call(arguments):d;u&&u.resolve(f),this.upcomingDeferred&&(this.upcomingDeferred.resolve(f),this.upcomingDeferred=null)}},{key:"one",value:function(){var d=(0,r.default)();return this.defers.push(d),d.promise}},{key:"upcoming",value:function(){return this.upcomingDeferred||(this.upcomingDeferred=(0,r.default)()),this.upcomingDeferred.promise}}]),l}();t.default=s,e.exports=t.default,e.exports.default=t.default}(s1,s1.exports)),s1.exports}var l1={},Ff="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",tm=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var c1=0;c1<Ff.length;c1++)tm[Ff.charCodeAt(c1)]=c1;var NFe=function(e){var t=new Uint8Array(e),r,n=t.length,i="";for(r=0;r<n;r+=3)i+=Ff[t[r]>>2],i+=Ff[(t[r]&3)<<4|t[r+1]>>4],i+=Ff[(t[r+1]&15)<<2|t[r+2]>>6],i+=Ff[t[r+2]&63];return n%3===2?i=i.substring(0,i.length-1)+"=":n%3===1&&(i=i.substring(0,i.length-2)+"=="),i},DFe=function(e){var t=e.length*.75,r=e.length,n,i=0,o,a,s,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);var c=new ArrayBuffer(t),d=new Uint8Array(c);for(n=0;n<r;n+=4)o=tm[e.charCodeAt(n)],a=tm[e.charCodeAt(n+1)],s=tm[e.charCodeAt(n+2)],l=tm[e.charCodeAt(n+3)],d[i++]=o<<2|a>>4,d[i++]=(a&15)<<4|s>>2,d[i++]=(s&3)<<6|l&63;return c};const LFe=Object.freeze(Object.defineProperty({__proto__:null,decode:DFe,encode:NFe},Symbol.toStringTag,{value:"Module"})),jFe=xw(LFe);var u1={},KU;function FFe(){if(KU)return u1;KU=1,Object.defineProperty(u1,"__esModule",{value:!0}),u1.default=t;function e(r){var n=Math.round((r-1)*100);return n>=0&&(n="+"+n),n+"%"}function t(r){var n=r.lang,i=r.pitch,o=i===void 0?1:i,a=r.rate,s=a===void 0?1:a,l=r.text,c=r.voice,d=r.volume;return'<speak version="1.0" xml:lang="'.concat(n,`">
445  <voice xml:lang="`).concat(n,'" name="').concat(c,`">
446    <prosody pitch="`).concat(e(o),'" rate="').concat(e(s),'" volume="').concat(e(d),`">
447      `).concat(l,`
448    </prosody>
449  </voice>
450</speak>`)}return u1}var d1={},YU;function zFe(){if(YU)return d1;YU=1,Object.defineProperty(d1,"__esModule",{value:!0}),d1.default=r;var e=/^[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*<speak([\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]|\/?>)/,t=/^[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*<\?xml[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]/;function r(n){return e.test(n)||t.test(n)}return d1}var XU;function BFe(){if(XU)return l1;XU=1;var e=Zn;Object.defineProperty(l1,"__esModule",{value:!0}),l1.default=h;var t=e(Us()),r=e(rh()),n=e(Ws()),i=jFe,o=e(FFe()),a=e(zFe());function s(y,g){var m=Object.keys(y);if(Object.getOwnPropertySymbols){var S=Object.getOwnPropertySymbols(y);g&&(S=S.filter(function(C){return Object.getOwnPropertyDescriptor(y,C).enumerable})),m.push.apply(m,S)}return m}function l(y){for(var g=1;g<arguments.length;g++){var m=arguments[g]!=null?arguments[g]:{};g%2?s(Object(m),!0).forEach(function(S){(0,r.default)(y,S,m[S])}):Object.getOwnPropertyDescriptors?Object.defineProperties(y,Object.getOwnPropertyDescriptors(m)):s(Object(m)).forEach(function(S){Object.defineProperty(y,S,Object.getOwnPropertyDescriptor(m,S))})}return y}var c="en-US",d="riff-16khz-16bit-mono-pcm",u="Microsoft Server Speech Text to Speech Voice (en-US, AriaNeural)",f="SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU3LjU2LjEwMQAAAAAAAAAAAAAA//tAwAAAAAAAAAAAAAAAAAAAAAAASW5mbwAAAA8AAAACAAABhgC7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7u7//////////////////////////////////////////////////////////////////8AAAAATGF2YzU3LjY0AAAAAAAAAAAAAAAAJAUHAAAAAAAAAYYoRBqpAAAAAAD/+xDEAAPAAAGkAAAAIAAANIAAAARMQU1FMy45OS41VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVf/7EMQpg8AAAaQAAAAgAAA0gAAABFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV";function h(y){return v.apply(this,arguments)}function v(){return v=(0,n.default)(t.default.mark(function y(g){var m,S,C,b,w,E,_,R,P,I,O,A,x,T,D,k,j,N,L,M,$,F;return t.default.wrap(function(H){for(;;)switch(H.prev=H.next){case 0:if(m=g.deploymentId,S=g.fetchCredentials,C=g.lang,b=C===void 0?c:C,w=g.outputFormat,E=w===void 0?d:w,_=g.pitch,R=g.rate,P=g.text,I=g.voice,O=I===void 0?u:I,A=g.volume,P){H.next=3;break}return H.abrupt("return",(0,i.decode)(f));case 3:return H.next=5,S();case 5:if(x=H.sent,T=x.authorizationToken,D=x.region,k=x.speechSynthesisHostname,j=x.subscriptionKey,!(T&&j||!T&&!j)){H.next=14;break}throw new Error('Only "authorizationToken" or "subscriptionKey" should be set.');case 14:if(!(D&&k||!D&&!k)){H.next=16;break}throw new Error('Only "region" or "speechSynthesisHostnamename" should be set.');case 16:return N=(0,a.default)(P)?P:(0,o.default)({lang:b,pitch:_,rate:R,text:P,voice:O,volume:A}),L=k||(m?"".concat(encodeURI(D),".voice.speech.microsoft.com"):"".concat(encodeURI(D),".tts.speech.microsoft.com")),M=m?"?deploymentId=".concat(encodeURI(m)):"",$="https://".concat(L,"/cognitiveservices/v1").concat(M),H.next=22,fetch($,{headers:l({"Content-Type":"application/ssml+xml","X-Microsoft-OutputFormat":E},T?{Authorization:"Bearer ".concat(T)}:{"Ocp-Apim-Subscription-Key":j}),method:"POST",body:N});case 22:if(F=H.sent,F.ok){H.next=25;break}
450throw new Error("web-speech-cognitive-services: Failed to syntheis speech, server returned ".concat(F.status));case 25:return H.abrupt("return",F.arrayBuffer());case 26:case"end":return H.stop()}},y)})),v.apply(this,arguments)}return l1}var f1={},QU;function HFe(){if(QU)return f1;QU=1,Object.defineProperty(f1,"__esModule",{value:!0}),f1.default=e;function e(t,r,n){return t.addEventListener(r,n),function(){return t.removeEventListener(r,n)}}return f1}var JU;function VFe(){if(JU)return $g;JU=1;var e=Zn;Object.defineProperty($g,"__esModule",{value:!0}),$g.default=void 0;var t=e(Us()),r=e(Ws()),n=e(Yc()),i=e(Kc()),o=e(J_()),a=e(Z_()),s=e(eE()),l=rE(),c=e(kFe()),d=e(BFe()),u=e(vie()),f=e(HFe());function h(C){var b=v();return function(){var E=(0,s.default)(C),_;if(b){var R=(0,s.default)(this).constructor;_=Reflect.construct(E,arguments,R)}else _=E.apply(this,arguments);return(0,a.default)(this,_)}}function v(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function y(C,b){return new Promise(function(w,E){var _=C.decodeAudioData(b,w,E);_&&typeof _.then=="function"&&w(_)})}function g(C,b,w){return new Promise(function(E,_){var R=new c.default,P=new c.default,I=(0,f.default)(C,"statechange",function(O){var A=O.target.state;return A==="closed"&&R.eventListener()});try{w.buffer=b,w.onended=P.eventListener,w.connect(C.destination),w.start(0),Promise.race([R.upcoming(),P.upcoming()]).then(E)}catch(O){_(O)}finally{I()}})}var m=function(C){(0,o.default)(w,C);var b=h(w);function w(E){var _;return(0,n.default)(this,w),_=b.call(this),_._lang=null,_._pitch=1,_._rate=1,_._voice=null,_._volume=1,_.text=E,_.onboundary=null,_.onend=null,_.onerror=null,_.onmark=null,_.onpause=null,_.onresume=null,_.onstart=null,_}return(0,i.default)(w,[{key:"lang",get:function(){return this._lang},set:function(_){this._lang=_}},{key:"onboundary",get:function(){return(0,l.getEventAttributeValue)(this,"boundary")},set:function(_){(0,l.setEventAttributeValue)(this,"boundary",_)}},{key:"onend",get:function(){return(0,l.getEventAttributeValue)(this,"end")},set:function(_){(0,l.setEventAttributeValue)(this,"end",_)}},{key:"onerror",get:function(){return(0,l.getEventAttributeValue)(this,"error")}
450,set:function(_){(0,l.setEventAttributeValue)(this,"error",_)}},{key:"onmark",get:function(){return(0,l.getEventAttributeValue)(this,"mark")},set:function(_){(0,l.setEventAttributeValue)(this,"mark",_)}},{key:"onpause",get:function(){return(0,l.getEventAttributeValue)(this,"pause")},set:function(_){(0,l.setEventAttributeValue)(this,"pause",_)}},{key:"onresume",get:function(){return(0,l.getEventAttributeValue)(this,"resume")},set:function(_){(0,l.setEventAttributeValue)(this,"resume",_)}},{key:"onstart",get:function(){return(0,l.getEventAttributeValue)(this,"start")},set:function(_){(0,l.setEventAttributeValue)(this,"start",_)}},{key:"pitch",get:function(){return this._pitch},set:function(_){this._pitch=_}},{key:"rate",get:function(){return this._rate},set:function(_){this._rate=_}},{key:"voice",get:function(){return this._voice},set:function(_){this._voice=_}},{key:"volume",get:function(){return this._volume},set:function(_){this._volume=_}},{key:"preload",value:function(_){var R=_.deploymentId,P=_.fetchCredentials,I=_.outputFormat;this.arrayBufferPromise=(0,d.default)({fetchCredentials:P,deploymentId:R,lang:this.lang||window.navigator.language,outputFormat:I,pitch:this.pitch,rate:this.rate,text:this.text,voice:this.voice&&this.voice.voiceURI,volume:this.volume}),this.arrayBufferPromise.catch()}},{key:"play",value:function(){var E=(0,r.default)(t.default.mark(function R(P){var I,O;return t.default.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.prev=0,this.dispatchEvent(new u.default("start")),I=P.createBufferSource(),x.t0=y,x.t1=P,x.next=7,this.arrayBufferPromise;case 7:return x.t2=x.sent,x.next=10,(0,x.t0)(x.t1,x.t2);case 10:return O=x.sent,this._playingSource=I,x.next=14,g(P,O,I);case 14:this._playingSource=null,this.dispatchEvent(new u.default("end")),x.next=21;break;case 18:x.prev=18,x.t3=x.catch(0),this.dispatchEvent(new ErrorEvent("error",{error:"synthesis-failed",message:x.t3.stack}));case 21:case"end":return x.stop()}},R,this,[[0,18]])}));function _(R){return E.apply(this,arguments)}return _}()},{key:"stop",value:function(){this._playingSource&&this._playingSource.stop()}}]),w}(l.EventTarget),S=m;return $g.default=S,$g}var ZU;function UFe(){if(ZU)return xg;ZU=1;var e=Zn;Object.defineProperty(xg,"__esModule",{value:!0}),xg.default=void 0;var t=e(Us()),r=e(Ws()),n=e(Yc()),i=e(Kc()),o=e(J_()),a=e(Z_()),s=e(eE()),l=rE(),c=e(fie()),d=e(_Fe()),u=e(TFe()),f=e(AFe()),h=e(MFe()),v=e(pie()),y=e(vie()),g=e(VFe());function m(E){var _=S();return function(){var P=(0,s.default)(E),I;if(_){var O=(0,s.default)(this).constructor;I=Reflect.construct(P,arguments,O)}else I=P.apply(this,arguments);return(0,a.default)(this,I)}}function S(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var C="audio-24khz-160kbitrate-mono-mp3",b=[],w=function(_){var R=(0,v.default)(_),P=R.audioContext,I=R.fetchCredentials,O=R.ponyfill,A=O===void 0?{AudioContext:window.AudioContext||window.webkitAudioContext}:O,x=R.speechSynthesisDeploymentId,T=R.speechSynthesisOutputFormat,D=T===void 0?C:T;if(!P&&!A.AudioContext)return{};var k=function(j){(0,o.default)(L,j);var N=m(L);function L(){var M;return(0,n.default)(this,L),M=N.call(this),M.queue=new u.default({audioContext:P,ponyfill:A}),M.updateVoices(),M}return(0,i.default)(L,[{key:"cancel",value:function(){this.queue.stop()}},{key:"getVoices",value:function(){return b}},{key:"onvoiceschanged",get:function(){return(0,l.getEventAttributeValue)(this,"voiceschanged")},set:function($){(0,l.setEventAttributeValue)(this,"voiceschanged",$)}},{key:"pause",value:function(){this.queue.pause()}},{key:"resume",value:function(){this.queue.resume()}},{key:"speak",value:function($){if(!($ instanceof g.default))throw new Error("invalid utterance");var F=(0,c.default)(),z=F.reject,H=F.resolve,U=F.promise,V=function(K){var Z=K.error,q=K.message,Y=new Error(Z);Y.stack=q,z(Y)};return $.addEventListener("end",H),$.addEventListener("error",V),$.preload({deploymentId:x,fetchCredentials:I,outputFormat:D}),this.queue.push($),U.finally(function(){$.removeEventListener("end",H),$.removeEventListener("error",V)})}},{key:"speaking",get:function(){return this.queue.speaking}},{key:"updateVoices",value:function(){var M=(0,r.default)(t.default.mark(function F(){var z=this,H,U,V,W,K;return t.default.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return q.next=2,I();case 2:if(H=q.sent,U=H.customVoiceHostname,V=H.region,W=H.speechSynthesisHostname,K=H.subscriptionKey,!x){q.next=14;break}if(!K){q.next=12;break}return q.next=12,(0,d.default)((0,r.default)(t.default.mark(function Y(){var G;return t.default.wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:return ee.next=2,(0,f.default)({customVoiceHostname:U,deploymentId:x,region:V,speechSynthesisHostname:W,subscriptionKey:K});case 2:G=ee.sent,z.getVoices=function(){return G};case 4:case"end":return ee.stop()}},Y)})));case 12:q.next=16;break;case 14:return q.next=16,(0,d.default)((0,r.default)(t.default.mark(function Y(){var G;return t.default.wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:return ee.t0=h.default,ee.next=3,I();case 3:return ee.t1=ee.sent,ee.next=6,(0,ee.t0)(ee.t1);case 6:G=ee.sent,z.getVoices=function(){return G};case 8:case"end":return ee.stop()}},Y)})));case 16:this.dispatchEvent(new y.default("voiceschanged"));case 17:case"end":return q.stop()}},F,this)}));function $(){return M.apply(this,arguments)}return $}()}]),L}(l.EventTarget);return{speechSynthesis:new k,SpeechSynthesisEvent:y.default,SpeechSynthesisUtterance:g.default}};return xg.default=w,xg}var eW;function WFe(){if(eW)return Ig;eW=1;var e=Zn;
450Object.defineProperty(Ig,"__esModule",{value:!0}),Ig.default=void 0;var t=e(UFe()),r=t.default;return Ig.default=r,Ig}var p1={},tW;function qFe(){if(tW)return p1;tW=1;var e=Zn;Object.defineProperty(p1,"__esModule",{value:!0}),p1.default=i;var t=e(Us()),r=e(Ws()),n="https://{region}.api.cognitive.microsoft.com/sts/v1.0/issueToken";function i(a){return o.apply(this,arguments)}function o(){return o=(0,r.default)(t.default.mark(function a(s){var l,c,d;return t.default.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return l=s.region,c=s.subscriptionKey,f.next=3,fetch(n.replace(/\{region\}/,l),{headers:{"Ocp-Apim-Subscription-Key":c},method:"POST"});case 3:if(d=f.sent,d.ok){f.next=6;break}throw new Error("Failed to fetch authorization token, server returned ".concat(d.status));case 6:return f.abrupt("return",d.text());case 7:case"end":return f.stop()}},a)})),o.apply(this,arguments)}return p1}var rW;function GFe(){return rW||(rW=1,function(e){var t=Zn,r=Q_();Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"createSpeechRecognitionPonyfill",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"createSpeechRecognitionPonyfillFromRecognizer",{enumerable:!0,get:function(){return i.createSpeechRecognitionPonyfillFromRecognizer}}),Object.defineProperty(e,"createSpeechSynthesisPonyfill",{enumerable:!0,get:function(){return o.default}}),e.default=u,Object.defineProperty(e,"fetchAuthorizationToken",{enumerable:!0,get:function(){return a.default}});var n=t(rh()),i=l(wFe()),o=t(WFe()),a=t(qFe());function s(h){if(typeof WeakMap!="function")return null;var v=new WeakMap,y=new WeakMap;return(s=function(m){return m?y:v})(h)}function l(h,v){if(!v&&h&&h.__esModule)return h;if(h===null||r(h)!=="object"&&typeof h!="function")return{default:h};var y=s(v);if(y&&y.has(h))return y.get(h);var g={},m=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var S in h)if(S!=="default"&&Object.prototype.hasOwnProperty.call(h,S)){var C=m?Object.getOwnPropertyDescriptor(h,S):null;C&&(C.get||C.set)?Object.defineProperty(g,S,C):g[S]=h[S]}return g.default=h,y&&y.set(h,g),g}function c(h,v){var y=Object.keys(h);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(h);v&&(g=g.filter(function(m){return Object.getOwnPropertyDescriptor(h,m).enumerable})),y.push.apply(y,g)}return y}function d(h){for(var v=1;v<arguments.length;v++){var y=arguments[v]!=null?arguments[v]:{};v%2?c(Object(y),!0).forEach(function(g){(0,n.default)(h,g,y[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(y)):c(Object(y)).forEach(function(g){Object.defineProperty(h,g,Object.getOwnPropertyDescriptor(y,g))})}return h}function u(){for(var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},v=arguments.length,y=new Array(v>1?v-1:0),g=1;g<v;g++)y[g-1]=arguments[g];var m=d(d({},i.default.apply(void 0,[h].concat(y))),o.default.apply(void 0,[h].concat(y)));return d(d({},m),{},{then:function(C){C(m)}})}var f=document.createElement("meta");f.setAttribute("name","web-speech-cognitive-services"),f.setAttribute("content","version=".concat("7.1.3")),document.head.appendChild(f)}(UI)),UI}var KFe=Zn;Object.defineProperty($3,"__esModule",{value:!0});$3.default=void 0;var YFe=KFe(GFe()),XFe=YFe.default;$3.default=XFe;var _D={},gie={},Eo={};Object.defineProperty(Eo,"__esModule",{value:!0});Eo.browserSupportsPolyfills=Eo.compareTwoStringsUsingDiceCoefficient=Eo.commandToRegExp=Eo.concatTranscripts=Eo.debounce=void 0;var QFe=function(t,r,n){var i;return function(){var o=this,a=arguments,s=function(){i=null,n||t.apply(o,a)},l=n&&!i;clearTimeout(i),i=setTimeout(s,r),l&&t.apply(o,a)}};Eo.debounce=QFe;var JFe=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.map(function(i){return i.trim()}).join(" ").trim()};Eo.concatTranscripts=JFe;var ZFe=/\s*\((.*?)\)\s*/g,eze=/(\(\?:[^)]+\))\?/g,tze=/(\(\?)?:\w+/g,rze=/\*/g,nze=/[-{}[\]+?.,\\^$|#]/g,ize=function(t){return t instanceof RegExp?new RegExp(t.source,"i"):(t=t.replace(nze,"\\$&").replace(ZFe,"(?:$1)?").replace(tze,function(r,n){return n?r:"([^\\s]+)"}).replace(rze,"(.*?)").replace(eze,"\\s*$1?\\s*"),new RegExp("^"+t+"$","i"))};Eo.commandToRegExp=ize;var oze=function(t,r){if(t=t.replace(/\s+/g,"").toLowerCase(),r=r.replace(/\s+/g,"").toLowerCase(),!t.length&&!r.length)return 1;if(!t.length||!r.length)return 0;if(t===r)return 1;if(t.length===1&&r.length===1||t.length<2||r.length<2)return 0;for(var n=new Map,i=0;i<t.length-1;i++){var o=t.substring(i,i+2),a=n.has(o)?n.get(o)+1:1;n.set(o,a)}for(var s=0,l=0;l<r.length-1;l++){var c=r.substring(l,l+2),d=n.has(c)?n.get(c):0;d>0&&(n.set(c,d-1),s++)}return 2*s/(t.length+r.length-2)};Eo.compareTwoStringsUsingDiceCoefficient=oze;var aze=function(){return typeof window<"u"&&window.navigator!==void 0&&window.navigator.mediaDevices!==void 0&&window.navigator.mediaDevices.getUserMedia!==void 0&&(window.AudioContext!==void 0||window.webkitAudioContext!==void 0)};Eo.browserSupportsPolyfills=aze;var Pp={},pd={};Object.defineProperty(pd,"__esModule",{value:!0});pd.APPEND_TRANSCRIPT=pd.CLEAR_TRANSCRIPT=void 0;var sze="CLEAR_TRANSCRIPT";pd.CLEAR_TRANSCRIPT=sze;var lze="APPEND_TRANSCRIPT";pd.APPEND_TRANSCRIPT=lze;Object.defineProperty(Pp,"__esModule",{value:!0});Pp.appendTranscript=Pp.clearTranscript=void 0;var mie=pd,cze=function(){return{type:mie.CLEAR_TRANSCRIPT}};Pp.clearTranscript=cze;var uze=function(t,r){return{type:mie.APPEND_TRANSCRIPT,payload:{interimTranscript:t,finalTranscript:r}}};Pp.appendTranscript=uze;var mR={};Object.defineProperty(mR,"__esModule",{value:!0});mR.transcriptReducer=void 0;var nW=pd,dze=Eo,fze=function(t,r){switch(r.type){case nW.CLEAR_TRANSCRIPT:return{interimTranscript:"",finalTranscript:""};case nW.APPEND_TRANSCRIPT:return{interimTranscript:r.payload.interimTranscript,finalTranscript:(0,dze.concatTranscripts)(t.finalTranscript,r.payload.finalTranscript)};default:throw new Error}};mR.transcriptReducer=fze;var yie={},ED={};
450(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=function(){return/(android)/i.test(typeof navigator<"u"?navigator.userAgent:"")};e.default=t})(ED);var RD={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.isNative=void 0;var t=typeof window<"u"&&(window.SpeechRecognition||window.webkitSpeechRecognition||window.mozSpeechRecognition||window.msSpeechRecognition||window.oSpeechRecognition),r=function(o){return o===t};e.isNative=r;var n=t;e.default=n})(RD);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=i(ED),r=Eo,n=RD;function i(u){return u&&u.__esModule?u:{default:u}}function o(u,f,h,v,y,g,m){try{var S=u[g](m),C=S.value}catch(b){h(b);return}S.done?f(C):Promise.resolve(C).then(v,y)}function a(u){return function(){var f=this,h=arguments;return new Promise(function(v,y){var g=u.apply(f,h);function m(C){o(g,v,y,m,S,"next",C)}function S(C){o(g,v,y,m,S,"throw",C)}m(void 0)})}}function s(u,f){if(!(u instanceof f))throw new TypeError("Cannot call a class as a function")}function l(u,f){for(var h=0;h<f.length;h++){var v=f[h];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(u,v.key,v)}}function c(u,f,h){return f&&l(u.prototype,f),h&&l(u,h),u}var d=function(){function u(f){s(this,u),this.recognition=null,this.pauseAfterDisconnect=!1,this.interimTranscript="",this.finalTranscript="",this.listening=!1,this.isMicrophoneAvailable=!0,this.subscribers={},this.onStopListening=function(){},this.previousResultWasFinalOnly=!1,this.resetTranscript=this.resetTranscript.bind(this),this.startListening=this.startListening.bind(this),this.stopListening=this.stopListening.bind(this),this.abortListening=this.abortListening.bind(this),this.setSpeechRecognition=this.setSpeechRecognition.bind(this),this.disableRecognition=this.disableRecognition.bind(this),this.setSpeechRecognition(f),(0,t.default)()&&(this.updateFinalTranscript=(0,r.debounce)(this.updateFinalTranscript,250,!0))}return c(u,[{key:"setSpeechRecognition",value:function(h){var v=!!h&&((0,n.isNative)(h)||(0,r.browserSupportsPolyfills)());v&&(this.disableRecognition(),this.recognition=new h,this.recognition.continuous=!1,this.recognition.interimResults=!0,this.recognition.onresult=this.updateTranscript.bind(this),this.recognition.onend=this.onRecognitionDisconnect.bind(this),this.recognition.onerror=this.onError.bind(this)),this.emitBrowserSupportsSpeechRecognitionChange(v)}},{key:"subscribe",value:function(h,v){this.subscribers[h]=v}},{key:"unsubscribe",value:function(h){delete this.subscribers[h]}},{key:"emitListeningChange",value:function(h){var v=this;this.listening=h,Object.keys(this.subscribers).forEach(function(y){var g=v.subscribers[y].onListeningChange;g(h)})}},{key:"emitMicrophoneAvailabilityChange",value:function(h){var v=this;this.isMicrophoneAvailable=h,Object.keys(this.subscribers).forEach(function(y){var g=v.subscribers[y].onMicrophoneAvailabilityChange;g(h)})}},{key:"emitTranscriptChange",value:function(h,v){var y=this;Object.keys(this.subscribers).forEach(function(g){var m=y.subscribers[g].onTranscriptChange;m(h,v)})}},{key:"emitClearTranscript",value:function(){var h=this;Object.keys(this.subscribers).forEach(function(v){var y=h.subscribers[v].onClearTranscript;y()})}},{key:"emitBrowserSupportsSpeechRecognitionChange",value:function(h){var v=this;Object.keys(this.subscribers).forEach(function(y){var g=v.subscribers[y],m=g.onBrowserSupportsSpeechRecognitionChange,S=g.onBrowserSupportsContinuousListeningChange;m(h),S(h)})}},{key:"disconnect",value:function(h){if(this.recognition&&this.listening)switch(h){case"ABORT":this.pauseAfterDisconnect=!0,this.abort();break;case"RESET":this.pauseAfterDisconnect=!1,this.abort();break;case"STOP":default:this.pauseAfterDisconnect=!0,this.stop()}}},{key:"disableRecognition",value:function(){this.recognition&&(this.recognition.onresult=function(){},this.recognition.onend=function(){},this.recognition.onerror=function(){},this.listening&&this.stopListening())}},{key:"onError",value:function(h){h&&h.error&&h.error==="not-allowed"&&(this.emitMicrophoneAvailabilityChange(!1),this.disableRecognition())}},{key:"onRecognitionDisconnect",value:function(){this.onStopListening(),this.listening=!1,this.pauseAfterDisconnect?this.emitListeningChange(!1):this.recognition&&(this.recognition.continuous?this.startListening({continuous:this.recognition.continuous}):this.emitListeningChange(!1)),this.pauseAfterDisconnect=!1}},{key:"updateTranscript",value:function(h){var v=h.results,y=h.resultIndex,g=y===void 0?v.length-1:y;this.interimTranscript="",this.finalTranscript="";for(var m=g;m<v.length;++m)v[m].isFinal&&(!(0,t.default)()||v[m][0].confidence>0)?this.updateFinalTranscript(v[m][0].transcript):this.interimTranscript=(0,r.concatTranscripts)(this.interimTranscript,v[m][0].transcript);var S=!1;this.interimTranscript===""&&this.finalTranscript!==""?(this.previousResultWasFinalOnly&&
450(S=!0),this.previousResultWasFinalOnly=!0):this.previousResultWasFinalOnly=!1,S||this.emitTranscriptChange(this.interimTranscript,this.finalTranscript)}},{key:"updateFinalTranscript",value:function(h){this.finalTranscript=(0,r.concatTranscripts)(this.finalTranscript,h)}},{key:"resetTranscript",value:function(){this.disconnect("RESET")}},{key:"startListening",value:function(){var f=a(regeneratorRuntime.mark(function v(){var y,g,m,S,C,b,w=arguments;return regeneratorRuntime.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:if(y=w.length>0&&w[0]!==void 0?w[0]:{},g=y.continuous,m=g===void 0?!1:g,S=y.language,this.recognition){_.next=3;break}return _.abrupt("return");case 3:if(C=m!==this.recognition.continuous,b=S&&S!==this.recognition.lang,!(C||b)){_.next=11;break}if(!this.listening){_.next=9;break}return _.next=9,this.stopListening();case 9:this.recognition.continuous=C?m:this.recognition.continuous,this.recognition.lang=b?S:this.recognition.lang;case 11:if(this.listening){_.next=22;break}return this.recognition.continuous||(this.resetTranscript(),this.emitClearTranscript()),_.prev=13,_.next=16,this.start();case 16:this.emitListeningChange(!0),_.next=22;break;case 19:_.prev=19,_.t0=_.catch(13),_.t0 instanceof DOMException||this.emitMicrophoneAvailabilityChange(!1);case 22:case"end":return _.stop()}},v,this,[[13,19]])}));function h(){return f.apply(this,arguments)}return h}()},{key:"abortListening",value:function(){var f=a(regeneratorRuntime.mark(function v(){var y=this;return regeneratorRuntime.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return this.disconnect("ABORT"),this.emitListeningChange(!1),m.next=4,new Promise(function(S){y.onStopListening=S});case 4:case"end":return m.stop()}},v,this)}));function h(){return f.apply(this,arguments)}return h}()},{key:"stopListening",value:function(){var f=a(regeneratorRuntime.mark(function v(){var y=this;return regeneratorRuntime.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return this.disconnect("STOP"),this.emitListeningChange(!1),m.next=4,new Promise(function(S){y.onStopListening=S});case 4:case"end":return m.stop()}},v,this)}));function h(){return f.apply(this,arguments)}return h}()},{key:"getRecognition",value:function(){return this.recognition}},{key:"start",value:function(){var f=a(regeneratorRuntime.mark(function v(){return regeneratorRuntime.wrap(function(g){for(;;)switch(g.prev=g.next){case 0:if(!(this.recognition&&!this.listening)){g.next=4;break}return g.next=3,this.recognition.start();case 3:this.listening=!0;case 4:case"end":return g.stop()}},v,this)}));function h(){return f.apply(this,arguments)}return h}()},{key:"stop",value:function(){this.recognition&&this.listening&&(this.recognition.stop(),this.listening=!1)}},{key:"abort",value:function(){this.recognition&&this.listening&&(this.recognition.abort(),this.listening=!1)}}]),u}();e.default=d})(yie);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.useSpeechRecognition=void 0;var t=p,r=Eo,n=Pp,i=mR,o=l(yie),a=l(ED),s=l(RD);function l(A){return A&&A.__esModule?A:{default:A}}function c(A,x,T,D,k,j,N){try{var L=A[j](N),M=L.value}catch($){T($);return}L.done?x(M):Promise.resolve(M).then(D,k)}function d(A){return function(){var x=this,T=arguments;return new Promise(function(D,k){var j=A.apply(x,T);function N(M){c(j,D,k,N,L,"next",M)}function L(M){c(j,D,k,N,L,"throw",M)}N(void 0)})}}function u(A){return v(A)||h(A)||S(A)||f()}function f(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
451In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function h(A){if(typeof Symbol<"u"&&Symbol.iterator in Object(A))return Array.from(A)}function v(A){if(Array.isArray(A))return C(A)}function y(A){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(T){return typeof T}:y=function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},y(A)}function g(A,x){return w(A)||b(A,x)||S(A,x)||m()}function m(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
452In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function S(A,x){if(A){if(typeof A=="string")return C(A,x);var T=Object.prototype.toString.call(A).slice(8,-1);
452if(T==="Object"&&A.constructor&&(T=A.constructor.name),T==="Map"||T==="Set")return Array.from(A);if(T==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T))return C(A,x)}}function C(A,x){(x==null||x>A.length)&&(x=A.length);for(var T=0,D=new Array(x);T<x;T++)D[T]=A[T];return D}function b(A,x){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(A)))){var T=[],D=!0,k=!1,j=void 0;try{for(var N=A[Symbol.iterator](),L;!(D=(L=N.next()).done)&&(T.push(L.value),!(x&&T.length===x));D=!0);}catch(M){k=!0,j=M}finally{try{!D&&N.return!=null&&N.return()}finally{if(k)throw j}}return T}}function w(A){if(Array.isArray(A))return A}var E=!!s.default,_=E&&!(0,a.default)(),R,P=function(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},T=x.transcribing,D=T===void 0?!0:T,k=x.clearTranscriptOnListen,j=k===void 0?!0:k,N=x.commands,L=N===void 0?[]:N,M=(0,t.useState)(I.getRecognitionManager()),$=g(M,1),F=$[0],z=(0,t.useState)(E),H=g(z,2),U=H[0],V=H[1],W=(0,t.useState)(_),K=g(W,2),Z=K[0],q=K[1],Y=(0,t.useReducer)(i.transcriptReducer,{interimTranscript:F.interimTranscript,finalTranscript:""}),G=g(Y,2),re=G[0],ee=re.interimTranscript,ne=re.finalTranscript,te=G[1],pe=(0,t.useState)(F.listening),le=g(pe,2),ye=le[0],Se=le[1],_e=(0,t.useState)(F.isMicrophoneAvailable),De=g(_e,2),be=De[0],se=De[1],Pe=(0,t.useRef)(L);Pe.current=L;var Te=function(){te((0,n.clearTranscript)())},ze=(0,t.useCallback)(function(){F.resetTranscript(),Te()},[F]),ke=function(Re,me,ce){var Ae=y(Re)==="object"?Re.toString():Re,We=Ae.replace(/[&/\\#,+()!$~%.'":*?<>{}]/g,"").replace(/  +/g," ").trim(),lt=(0,r.compareTwoStringsUsingDiceCoefficient)(We,me);return lt>=ce?{command:Re,commandWithoutSpecials:We,howSimilar:lt,isFuzzyMatch:!0}:null},Me=function(Re,me){var ce=(0,r.commandToRegExp)(Re),Ae=ce.exec(me);return Ae?{command:Re,parameters:Ae.slice(1)}:null},qe=(0,t.useCallback)(function(Ee,Re){Pe.current.forEach(function(me){var ce=me.command,Ae=me.callback,We=me.matchInterim,lt=We===void 0?!1:We,yt=me.isFuzzyMatch,nt=yt===void 0?!1:yt,it=me.fuzzyMatchingThreshold,gt=it===void 0?.8:it,Ye=me.bestMatchOnly,vt=Ye===void 0?!1:Ye,mt=!Re&&lt?Ee.trim():Re.trim(),St=Array.isArray(ce)?ce:[ce],pt=St.map(function(Ce){return nt?ke(Ce,mt,gt):Me(Ce,mt)}).filter(function(Ce){return Ce});if(nt&&vt&&pt.length>=2){pt.sort(function(Ce,Fe){return Fe.howSimilar-Ce.howSimilar});var Rt=pt[0],ae=Rt.command,ue=Rt.commandWithoutSpecials,ve=Rt.howSimilar;Ae(ue,mt,ve,{command:ae,resetTranscript:ze})}else pt.forEach(function(Ce){if(Ce.isFuzzyMatch){var Fe=Ce.command,Ze=Ce.commandWithoutSpecials,et=Ce.howSimilar;Ae(Ze,mt,et,{command:Fe,resetTranscript:ze})}else{var tt=Ce.command,ot=Ce.parameters;Ae.apply(void 0,u(ot).concat([{command:tt,resetTranscript:ze}]))}})})},[ze]),Le=(0,t.useCallback)(function(Ee,Re){D&&te((0,n.appendTranscript)(Ee,Re)),qe(Ee,Re)},[qe,D]),xe=(0,t.useCallback)(function(){j&&Te()},[j]);(0,t.useEffect)(function(){var Ee=I.counter;I.counter+=1;var Re={onListeningChange:Se,onMicrophoneAvailabilityChange:se,onTranscriptChange:Le,onClearTranscript:xe,onBrowserSupportsSpeechRecognitionChange:V,onBrowserSupportsContinuousListeningChange:q};return F.subscribe(Ee,Re),function(){F.unsubscribe(Ee)}},[D,j,F,Le,xe]);var je=(0,r.concatTranscripts)(ne,ee);return{transcript:je,interimTranscript:ee,finalTranscript:ne,listening:ye,isMicrophoneAvailable:be,resetTranscript:ze,browserSupportsSpeechRecognition:U,browserSupportsContinuousListening:Z}};e.useSpeechRecognition=P;var I={counter:0,applyPolyfill:function(x){R?R.setSpeechRecognition(x):R=new o.default(x);var T=!!x&&(0,r.browserSupportsPolyfills)();E=T,_=T},removePolyfill:function(){R?R.setSpeechRecognition(s.default):R=new o.default(s.default),E=!!s.default,_=E&&!(0,a.default)()},getRecognitionManager:function(){return R||(R=new o.default(s.default)),R},getRecognition:function(){var x=I.getRecognitionManager();return x.getRecognition()},startListening:function(){var A=d(regeneratorRuntime.mark(function T(){var D,k,j,N,L=arguments;return regeneratorRuntime.wrap(function($){for(;;)switch($.prev=$.next){case 0:return D=L.length>0&&L[0]!==void 0?L[0]:{},k=D.continuous,j=D.language,N=I.getRecognitionManager(),$.next=4,N.startListening({continuous:k,language:j});case 4:case"end":return $.stop()}},T)}));function x(){return A.apply(this,arguments)}return x}(),stopListening:function(){var A=d(regeneratorRuntime.mark(function T(){var D;return regeneratorRuntime.wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return D=I.getRecognitionManager(),j.next=3,D.stopListening();case 3:case"end":return j.stop()}},T)}));function x(){return A.apply(this,arguments)}return x}(),abortListening:function(){var A=d(regeneratorRuntime.mark(function T(){var D;return regeneratorRuntime.wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return D=I.getRecognitionManager(),j.next=3,D.abortListening();case 3:case"end":return j.stop()}},T)}));function x(){return A.apply(this,arguments)}return x}(),browserSupportsSpeechRecognition:function(){return E},browserSupportsContinuousListening:function(){return _}},O=I;e.default=O})(gie);(function(e){function t(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(l){return typeof l}:t=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},t(a)}
452Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"useSpeechRecognition",{enumerable:!0,get:function(){return r.useSpeechRecognition}}),e.default=void 0;var r=i(gie);function n(){if(typeof WeakMap!="function")return null;var a=new WeakMap;return n=function(){return a},a}function i(a){if(a&&a.__esModule)return a;if(a===null||t(a)!=="object"&&typeof a!="function")return{default:a};var s=n();if(s&&s.has(a))return s.get(a);var l={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var d in a)if(Object.prototype.hasOwnProperty.call(a,d)){var u=c?Object.getOwnPropertyDescriptor(a,d):null;u&&(u.get||u.set)?Object.defineProperty(l,d,u):l[d]=a[d]}return l.default=a,s&&s.set(a,l),l}var o=r.default;e.default=o})(_D);const D$=Mo(_D);function Sie(e,t){return function(){return e.apply(t,arguments)}}const{toString:pze}=Object.prototype,{getPrototypeOf:PD}=Object,{iterator:yR,toStringTag:Cie}=Symbol,SR=(e=>t=>{const r=pze.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),ys=e=>(e=e.toLowerCase(),t=>SR(t)===e),CR=e=>t=>typeof t===e,{isArray:dh}=Array,Sy=CR("undefined");function D0(e){return e!==null&&!Sy(e)&&e.constructor!==null&&!Sy(e.constructor)&&Oo(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const bie=ys("ArrayBuffer");function hze(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&bie(e.buffer),t}const vze=CR("string"),Oo=CR("function"),wie=CR("number"),L0=e=>e!==null&&typeof e=="object",gze=e=>e===!0||e===!1,CC=e=>{if(SR(e)!=="object")return!1;const t=PD(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Cie in e)&&!(yR in e)},mze=e=>{if(!L0(e)||D0(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},yze=ys("Date"),Sze=ys("File"),Cze=ys("Blob"),bze=ys("FileList"),wze=e=>L0(e)&&Oo(e.pipe),_ze=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Oo(e.append)&&((t=SR(e))==="formdata"||t==="object"&&Oo(e.toString)&&e.toString()==="[object FormData]"))},Eze=ys("URLSearchParams"),[Rze,Pze,Ize,xze]=["ReadableStream","Request","Response","Headers"].map(ys),Oze=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function j0(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),dh(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{if(D0(e))return;const o=r?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let s;for(n=0;n<a;n++)s=o[n],t.call(null,e[s],s,e)}}function _ie(e,t){if(D0(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n=r.length,i;for(;n-- >0;)if(i=r[n],t===i.toLowerCase())return i;return null}const Ku=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Eie=e=>!Sy(e)&&e!==Ku;function L$(){const{caseless:e}=Eie(this)&&this||{},t={},r=(n,i)=>{const o=e&&_ie(t,i)||i;CC(t[o])&&CC(n)?t[o]=L$(t[o],n):CC(n)?t[o]=L$({},n):dh(n)?t[o]=n.slice():t[o]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&j0(arguments[n],r);return t}const Tze=(e,t,r,{allOwnKeys:n}={})=>(j0(t,(i,o)=>{r&&Oo(i)?e[o]=Sie(i,r):e[o]=i},{allOwnKeys:n}),e),Aze=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Mze=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},$ze=(e,t,r,n)=>{let i,o,a;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],(!n||n(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=r!==!1&&PD(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kze=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},Nze=e=>{if(!e)return null;if(dh(e))return e;let t=e.length;if(!wie(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Dze=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&PD(Uint8Array)),Lze=(e,t)=>{const n=(e&&e[yR]).call(e);let i;for(;(i=n.next())&&!i.done;){const o=i.value;t.call(e,o[0],o[1])}},jze=(e,t)=>
vendor: 5,486 bytes, line 452
452{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},Fze=ys("HTMLFormElement"),zze=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,i){return n.toUpperCase()+i}),iW=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Bze=ys("RegExp"),Rie=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};j0(r,(i,o)=>{let a;(a=t(i,o,e))!==!1&&(n[o]=a||i)}),Object.defineProperties(e,n)},Hze=e=>{Rie(e,(t,r)=>{if(Oo(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Oo(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Vze=(e,t)=>{const r={},n=i=>{i.forEach(o=>{r[o]=!0})};return dh(e)?n(e):n(String(e).split(t)),r},Uze=()=>{},Wze=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function qze(e){return!!(e&&Oo(e.append)&&e[Cie]==="FormData"&&e[yR])}const Gze=e=>{const t=new Array(10),r=(n,i)=>{if(L0(n)){if(t.indexOf(n)>=0)return;if(D0(n))return n;if(!("toJSON"in n)){t[i]=n;const o=dh(n)?[]:{};return j0(n,(a,s)=>{const l=r(a,i+1);!Sy(l)&&(o[s]=l)}),t[i]=void 0,o}}return n};return r(e,0)},Kze=ys("AsyncFunction"),Yze=e=>e&&(L0(e)||Oo(e))&&Oo(e.then)&&Oo(e.catch),Pie=((e,t)=>e?setImmediate:t?((r,n)=>(Ku.addEventListener("message",({source:i,data:o})=>{i===Ku&&o===r&&n.length&&n.shift()()},!1),i=>{n.push(i),Ku.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Oo(Ku.postMessage)),Xze=typeof queueMicrotask<"u"?queueMicrotask.bind(Ku):typeof process<"u"&&process.nextTick||Pie,Qze=e=>e!=null&&Oo(e[yR]),Ke={isArray:dh,isArrayBuffer:bie,isBuffer:D0,isFormData:_ze,isArrayBufferView:hze,isString:vze,isNumber:wie,isBoolean:gze,isObject:L0,isPlainObject:CC,isEmptyObject:mze,isReadableStream:Rze,isRequest:Pze,isResponse:Ize,isHeaders:xze,isUndefined:Sy,isDate:yze,isFile:Sze,isBlob:Cze,isRegExp:Bze,isFunction:Oo,isStream:wze,isURLSearchParams:Eze,isTypedArray:Dze,isFileList:bze,forEach:j0,merge:L$,extend:Tze,trim:Oze,stripBOM:Aze,inherits:Mze,toFlatObject:$ze,kindOf:SR,kindOfTest:ys,endsWith:kze,toArray:Nze,forEachEntry:Lze,matchAll:jze,isHTMLForm:Fze,hasOwnProperty:iW,hasOwnProp:iW,reduceDescriptors:Rie,freezeMethods:Hze,toObjectSet:Vze,toCamelCase:zze,noop:Uze,toFiniteNumber:Wze,findKey:_ie,global:Ku,isContextDefined:Eie,isSpecCompliantForm:qze,toJSONObject:Gze,isAsyncFn:Kze,isThenable:Yze,setImmediate:Pie,asap:Xze,isIterable:Qze};function fr(e,t,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status?i.status:null)}Ke.inherits(fr,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Ke.toJSONObject(this.config),code:this.code,status:this.status}}});const Iie=fr.prototype,xie={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{xie[e]={value:e}});Object.defineProperties(fr,xie);Object.defineProperty(Iie,"isAxiosError",{value:!0});fr.from=(e,t,r,n,i,o)=>{const a=Object.create(Iie);return Ke.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),fr.call(a,e.message,t,r,n,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const Jze=null;function j$(e){return Ke.isPlainObject(e)||Ke.isArray(e)}function Oie(e){return Ke.endsWith(e,"[]")?e.slice(0,-2):e}function oW(e,t,r){return e?e.concat(t).map(function(i,o){return i=Oie(i),!r&&o?"["+i+"]":i}).join(r?".":""):t}function Zze(e){return Ke.isArray(e)&&!e.some(j$)}const eBe=Ke.toFlatObject(Ke,{},null,function(t){return/^is[A-Z]/.test(t)});function bR(e,t,r){if(!Ke.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=Ke.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,g){return!Ke.isUndefined(g[y])});const n=r.metaTokens,i=r.visitor||d,o=r.dots,a=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&Ke.isSpecCompliantForm(t);if(!Ke.isFunction(i))throw new TypeError("visitor must be a function");function c(v){if(v===null)return"";if(Ke.isDate(v))return v.toISOString();if(Ke.isBoolean(v))return v.toString();if(!l&&Ke.isBlob(v))throw new fr("Blob is not supported. Use a Buffer instead.");return Ke.isArrayBuffer(v)||Ke.isTypedArray(v)?l&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function d(v,y,g){let m=v;if(v&&!g&&typeof v=="object"){if(Ke.endsWith(y,"{}"))y=n?y:y.slice(0,-2),v=JSON.stringify(v);else if(Ke.isArray(v)&&Zze(v)||(Ke.isFileList(v)||Ke.endsWith(y,"[]"))&&(m=Ke.toArray(v)))return y=Oie(y),m.forEach(function(C,b){!(Ke.isUndefined(C)||C===null)&&t.append(a===!0?oW([y],b,o):a===null?y:y+"[]",c(C))}),!1}return j$(v)?!0:(t.append(oW(g,y,o),c(v)),!1)}const u=[],f=Object.assign(eBe,{defaultVisitor:d,convertValue:c,isVisitable:j$});function h(v,y){if(!Ke.isUndefined(v)){if(u.indexOf(v)!==-1)throw Error("Circular reference detected in "+y.join("."));u.push(v),Ke.forEach(v,function(m,S){(!(Ke.isUndefined(m)||m===null)&&i.call(t,m,Ke.isString(S)?S.trim():S,y,f))===!0&&h(m,y?y.concat(S):[S])}),u.pop()}}if(!Ke.isObject(e))throw new TypeError("data must be an object");return h(e),t}
vendor: 14,617 bytes, lines 452-454
452function aW(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function ID(e,t){this._pairs=[],e&&bR(e,this,t)}const Tie=ID.prototype;Tie.append=function(t,r){this._pairs.push([t,r])};Tie.toString=function(t){const r=t?function(n){return t.call(this,n,aW)}:aW;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function tBe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Aie(e,t,r){if(!t)return e;const n=r&&r.encode||tBe;Ke.isFunction(r)&&(r={serialize:r});const i=r&&r.serialize;let o;if(i?o=i(t,r):o=Ke.isURLSearchParams(t)?t.toString():new ID(t,r).toString(n),o){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class rBe{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Ke.forEach(this.handlers,function(n){n!==null&&t(n)})}}const sW=rBe,Mie={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},nBe=typeof URLSearchParams<"u"?URLSearchParams:ID,iBe=typeof FormData<"u"?FormData:null,oBe=typeof Blob<"u"?Blob:null,aBe={isBrowser:!0,classes:{URLSearchParams:nBe,FormData:iBe,Blob:oBe},protocols:["http","https","file","blob","url","data"]},xD=typeof window<"u"&&typeof document<"u",F$=typeof navigator=="object"&&navigator||void 0,sBe=xD&&(!F$||["ReactNative","NativeScript","NS"].indexOf(F$.product)<0),lBe=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),cBe=xD&&window.location.href||"http://localhost",uBe=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:xD,hasStandardBrowserEnv:sBe,hasStandardBrowserWebWorkerEnv:lBe,navigator:F$,origin:cBe},Symbol.toStringTag,{value:"Module"})),Wi={...uBe,...aBe};function dBe(e,t){return bR(e,new Wi.classes.URLSearchParams,{visitor:function(r,n,i,o){return Wi.isNode&&Ke.isBuffer(r)?(this.append(n,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function fBe(e){return Ke.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function pBe(e){const t={},r=Object.keys(e);let n;const i=r.length;let o;for(n=0;n<i;n++)o=r[n],t[o]=e[o];return t}function $ie(e){function t(r,n,i,o){let a=r[o++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),l=o>=r.length;return a=!a&&Ke.isArray(i)?i.length:a,l?(Ke.hasOwnProp(i,a)?i[a]=[i[a],n]:i[a]=n,!s):((!i[a]||!Ke.isObject(i[a]))&&(i[a]=[]),t(r,n,i[a],o)&&Ke.isArray(i[a])&&(i[a]=pBe(i[a])),!s)}if(Ke.isFormData(e)&&Ke.isFunction(e.entries)){const r={};return Ke.forEachEntry(e,(n,i)=>{t(fBe(n),i,r,0)}),r}return null}function hBe(e,t,r){if(Ke.isString(e))try{return(t||JSON.parse)(e),Ke.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const OD={transitional:Mie,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",i=n.indexOf("application/json")>-1,o=Ke.isObject(t);if(o&&Ke.isHTMLForm(t)&&(t=new FormData(t)),Ke.isFormData(t))return i?JSON.stringify($ie(t)):t;if(Ke.isArrayBuffer(t)||Ke.isBuffer(t)||Ke.isStream(t)||Ke.isFile(t)||Ke.isBlob(t)||Ke.isReadableStream(t))return t;if(Ke.isArrayBufferView(t))return t.buffer;if(Ke.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return dBe(t,this.formSerializer).toString();if((s=Ke.isFileList(t))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return bR(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||i?(r.setContentType("application/json",!1),hBe(t)):t}],transformResponse:[function(t){const r=this.transitional||OD.transitional,n=r&&r.forcedJSONParsing,i=this.responseType==="json";if(Ke.isResponse(t)||Ke.isReadableStream(t))return t;if(t&&Ke.isString(t)&&(n&&!this.responseType||i)){const a=!(r&&r.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?fr.from(s,fr.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Wi.classes.FormData,Blob:Wi.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ke.forEach(["delete","get","head","post","put","patch"],e=>{OD.headers[e]={}});const TD=OD,vBe=Ke.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),gBe=e=>{const t={};let r,n,i;return e&&e.split(`
453`).forEach(function(a){i=a.indexOf(":"),r=a.substring(0,i).trim().toLowerCase(),n=a.substring(i+1).trim(),!(!r||t[r]&&vBe[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},lW=Symbol("internals");function kg(e){return e&&String(e).trim().toLowerCase()}function bC(e){return e===!1||e==null?e:Ke.isArray(e)?e.map(bC):String(e)}function mBe(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const yBe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ET(e,t,r,n,i){if(Ke.isFunction(n))return n.call(this,t,r);if(i&&(t=r),!!Ke.isString(t)){if(Ke.isString(n))return t.indexOf(n)!==-1;if(Ke.isRegExp(n))return n.test(t)}}function SBe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function CBe(e,t){const r=Ke.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(i,o,a){return this[n].call(this,t,i,o,a)},configurable:!0})})}class wR{constructor(t){t&&this.set(t)}set(t,r,n){const i=this;function o(s,l,c){const d=kg(l);if(!d)throw new Error("header name must be a non-empty string");const u=Ke.findKey(i,d);(!u||i[u]===void 0||c===!0||c===void 0&&i[u]!==!1)&&(i[u||l]=bC(s))}const a=(s,l)=>Ke.forEach(s,(c,d)=>o(c,d,l));if(Ke.isPlainObject(t)||t instanceof this.constructor)a(t,r);else if(Ke.isString(t)&&(t=t.trim())&&!yBe(t))a(gBe(t),r);else if(Ke.isObject(t)&&Ke.isIterable(t)){let s={},l,c;for(const d of t){if(!Ke.isArray(d))throw TypeError("Object iterator must return a key-value pair");s[c=d[0]]=(l=s[c])?Ke.isArray(l)?[...l,d[1]]:[l,d[1]]:d[1]}a(s,r)}else t!=null&&o(r,t,n);return this}get(t,r){if(t=kg(t),t){const n=Ke.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return mBe(i);if(Ke.isFunction(r))return r.call(this,i,n);if(Ke.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=kg(t),t){const n=Ke.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||ET(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function o(a){if(a=kg(a),a){const s=Ke.findKey(n,a);s&&(!r||ET(n,n[s],s,r))&&(delete n[s],i=!0)}}return Ke.isArray(t)?t.forEach(o):o(t),i}clear(t){const r=Object.keys(this);let n=r.length,i=!1;for(;n--;){const o=r[n];(!t||ET(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){const r=this,n={};return Ke.forEach(this,(i,o)=>{const a=Ke.findKey(n,o);if(a){r[a]=bC(i),delete r[o];return}const s=t?SBe(o):String(o).trim();s!==o&&delete r[o],r[s]=bC(i),n[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return Ke.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=t&&Ke.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
454`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(i=>n.set(i)),n}static accessor(t){const n=(this[lW]=this[lW]={accessors:{}}).accessors,i=this.prototype;function o(a){const s=kg(a);n[s]||(CBe(i,a),n[s]=!0)}return Ke.isArray(t)?t.forEach(o):o(t),this}}wR.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Ke.reduceDescriptors(wR.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});Ke.freezeMethods(wR);const rs=wR;function RT(e,t){const r=this||TD,n=t||r,i=rs.from(n.headers);let o=n.data;return Ke.forEach(e,function(s){o=s.call(r,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function kie(e){return!!(e&&e.__CANCEL__)}function fh(e,t,r){fr.call(this,e??"canceled",fr.ERR_CANCELED,t,r),this.name="CanceledError"}Ke.inherits(fh,fr,{__CANCEL__:!0});function Nie(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new fr("Request failed with status code "+r.status,[fr.ERR_BAD_REQUEST,fr.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function bBe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function wBe(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i=0,o=0,a;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),d=n[o];a||(a=c),r[i]=l,n[i]=c;let u=o,f=0;for(;u!==i;)f+=r[u++],u=u%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),c-a<t)return;const h=d&&c-d;return h?Math.round(f*1e3/h):void 0}}function _Be(e,t){let r=0,n=1e3/t,i,o;const a=(c,d=Date.now())=>{r=d,i=null,o&&(clearTimeout(o),o=null),e(...c)};return[(...c)=>{const d=Date.now(),u=d-r;u>=n?a(c,d):(i=c,o||(o=setTimeout(()=>{o=null,a(i)},n-u)))},()=>i&&a(i)]}const Db=(e,t,r=3)=>{let n=0;const i=wBe(50,250);return _Be(o=>{const a=o.loaded,s=o.lengthComputable?o.total:void 0,l=a-n,c=i(l),d=a<=s;n=a;const u={loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&d?(s-a)/c:void 0,event:o,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(u)},r)},cW=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},uW=e=>(...t)=>Ke.asap(()=>e(...t)),EBe=Wi.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Wi.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Wi.origin),Wi.navigator&&/(msie|trident)/i.test(Wi.navigator.userAgent)):()=>!0,RBe=Wi.hasStandardBrowserEnv?{write(e,t,r,n,i,o){const a=[e+"="+encodeURIComponent(t)];Ke.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),Ke.isString(n)&&a.push("path="+n),Ke.isString(i)&&a.push("domain="+i),o===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function PBe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function IBe(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Die(e,t,r){let n=!PBe(t);return e&&(n||r==!1)?IBe(e,t):t}const dW=e=>e instanceof rs?{...e}:e;function hd(e,t){t=t||{};const r={};function n(c,d,u,f){return Ke.isPlainObject(c)&&Ke.isPlainObject(d)?Ke.merge.call({caseless:f},c,d):Ke.isPlainObject(d)?Ke.merge({},d):Ke.isArray(d)?d.slice():d}function i(c,d,u,f){if(Ke.isUndefined(d)){if(!Ke.isUndefined(c))return n(void 0,c,u,f)}else return n(c,d,u,f)}function o(c,d){if(!Ke.isUndefined(d))return n(void 0,d)}function a(c,d){if(Ke.isUndefined(d)){if(!Ke.isUndefined(c))return n(void 0,c)}else return n(void 0,d)}function s(c,d,u){if(u in t)return n(c,d);if(u in e)return n(void 0,c)}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(c,d,u)=>i(dW(c),dW(d),u,!0)};return Ke.forEach(Object.keys({...e,...t}),function(d){const u=l[d]||i,f=u(e[d],t[d],d);Ke.isUndefined(f)&&u!==s||(r[d]=f)}),r}const Lie=e=>{const t=hd({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:s}=t;t.headers=a=rs.from(a),t.url=Aie(Die(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(Ke.isFormData(r)){if(Wi.hasStandardBrowserEnv||Wi.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[c,...d]=l?l.split(";").map(u=>u.trim()).filter(Boolean):[];a.setContentType([c||"multipart/form-data",...d].join("; "))}}if(Wi.hasStandardBrowserEnv&&(n&&Ke.isFunction(n)&&(n=n(t)),n||n!==!1&&EBe(t.url))){const c=i&&o&&RBe.read(o);c&&a.set(i,c)}return t},xBe=typeof XMLHttpRequest<"u",OBe=xBe&&function(e){return new Promise(function(r,n){const i=Lie(e);let o=i.data;const a=rs.from(i.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:c}=i,d,u,f,h,v;function y(){h&&h(),v&&v(),i.cancelToken&&i.cancelToken.unsubscribe(d),i.signal&&i.signal.removeEventListener("abort",d)}let g=new XMLHttpRequest;g.open(i.method.toUpperCase(),i.url,!0),g.timeout=i.timeout;function m(){if(!g)return;const C=rs.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),w={data:!s||s==="text"||s==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:C,config:e,request:g};Nie(function(_){r(_),y()},function(_){n(_),y()},w),g=null}"onloadend"in g?g.onloadend=m:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(m)},g.onabort=function(){g&&(n(new fr("Request aborted",fr.ECONNABORTED,e,g)),g=null)},g.onerror=function(){n(new fr("Network Error",fr.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let b=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const w=i.transitional||Mie;i.timeoutErrorMessage&&(b=i.timeoutErrorMessage),n(new fr(b,w.clarifyTimeoutError?fr.ETIMEDOUT:fr.ECONNABORTED,e,g)),g=null},o===void 0&&a.setContentType(null),"setRequestHeader"in g&&Ke.forEach(a.toJSON(),function(b,w){g.setRequestHeader(w,b)}),Ke.isUndefined(i.withCredentials)||(g.withCredentials=!!i.withCredentials),s&&s!=="json"&&(g.responseType=i.responseType),c&&
vendor: 9,844 bytes, lines 454-457
454([f,v]=Db(c,!0),g.addEventListener("progress",f)),l&&g.upload&&([u,h]=Db(l),g.upload.addEventListener("progress",u),g.upload.addEventListener("loadend",h)),(i.cancelToken||i.signal)&&(d=C=>{g&&(n(!C||C.type?new fh(null,e,g):C),g.abort(),g=null)},i.cancelToken&&i.cancelToken.subscribe(d),i.signal&&(i.signal.aborted?d():i.signal.addEventListener("abort",d)));const S=bBe(i.url);if(S&&Wi.protocols.indexOf(S)===-1){n(new fr("Unsupported protocol "+S+":",fr.ERR_BAD_REQUEST,e));return}g.send(o||null)})},TBe=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,i;const o=function(c){if(!i){i=!0,s();const d=c instanceof Error?c:this.reason;n.abort(d instanceof fr?d:new fh(d instanceof Error?d.message:d))}};let a=t&&setTimeout(()=>{a=null,o(new fr(`timeout ${t} of ms exceeded`,fr.ETIMEDOUT))},t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(o):c.removeEventListener("abort",o)}),e=null)};e.forEach(c=>c.addEventListener("abort",o));const{signal:l}=n;return l.unsubscribe=()=>Ke.asap(s),l}},ABe=TBe,MBe=function*(e,t){let r=e.byteLength;if(!t||r<t){yield e;return}let n=0,i;for(;n<r;)i=n+t,yield e.slice(n,i),n=i},$Be=async function*(e,t){for await(const r of kBe(e))yield*MBe(r,t)},kBe=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},fW=(e,t,r,n)=>{const i=$Be(e,t);let o=0,a,s=l=>{a||(a=!0,n&&n(l))};return new ReadableStream({async pull(l){try{const{done:c,value:d}=await i.next();if(c){s(),l.close();return}let u=d.byteLength;if(r){let f=o+=u;r(f)}l.enqueue(new Uint8Array(d))}catch(c){throw s(c),c}},cancel(l){return s(l),i.return()}},{highWaterMark:2})},_R=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",jie=_R&&typeof ReadableStream=="function",NBe=_R&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Fie=(e,...t)=>{try{return!!e(...t)}catch{return!1}},DBe=jie&&Fie(()=>{let e=!1;const t=new Request(Wi.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),pW=64*1024,z$=jie&&Fie(()=>Ke.isReadableStream(new Response("").body)),Lb={stream:z$&&(e=>e.body)};_R&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Lb[t]&&(Lb[t]=Ke.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new fr(`Response type '${t}' is not supported`,fr.ERR_NOT_SUPPORT,n)})})})(new Response);const LBe=async e=>{if(e==null)return 0;if(Ke.isBlob(e))return e.size;if(Ke.isSpecCompliantForm(e))return(await new Request(Wi.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(Ke.isArrayBufferView(e)||Ke.isArrayBuffer(e))return e.byteLength;if(Ke.isURLSearchParams(e)&&(e=e+""),Ke.isString(e))return(await NBe(e)).byteLength},jBe=async(e,t)=>{const r=Ke.toFiniteNumber(e.getContentLength());return r??LBe(t)},FBe=_R&&(async e=>{let{url:t,method:r,data:n,signal:i,cancelToken:o,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:d,withCredentials:u="same-origin",fetchOptions:f}=Lie(e);c=c?(c+"").toLowerCase():"text";let h=ABe([i,o&&o.toAbortSignal()],a),v;const y=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let g;try{if(l&&DBe&&r!=="get"&&r!=="head"&&(g=await jBe(d,n))!==0){let w=new Request(t,{method:"POST",body:n,duplex:"half"}),E;if(Ke.isFormData(n)&&(E=w.headers.get("content-type"))&&d.setContentType(E),w.body){const[_,R]=cW(g,Db(uW(l)));n=fW(w.body,pW,_,R)}}Ke.isString(u)||(u=u?"include":"omit");const m="credentials"in Request.prototype;v=new Request(t,{...f,signal:h,method:r.toUpperCase(),headers:d.normalize().toJSON(),body:n,duplex:"half",credentials:m?u:void 0});let S=await fetch(v,f);const C=z$&&(c==="stream"||c==="response");if(z$&&(s||C&&y)){const w={};["status","statusText","headers"].forEach(P=>{w[P]=S[P]});const E=Ke.toFiniteNumber(S.headers.get("content-length")),[_,R]=s&&cW(E,Db(uW(s),!0))||[];S=new Response(fW(S.body,pW,_,()=>{R&&R(),y&&y()}),w)}c=c||"text";let b=await Lb[Ke.findKey(Lb,c)||"text"](S,e);return!C&&y&&y(),await new Promise((w,E)=>{Nie(w,E,{data:b,headers:rs.from(S.headers),status:S.status,statusText:S.statusText,config:e,request:v})})}catch(m){throw y&&y(),m&&m.name==="TypeError"&&/Load failed|fetch/i.test(m.message)?Object.assign(new fr("Network Error",fr.ERR_NETWORK,e,v),{cause:m.cause||m}):fr.from(m,m&&m.code,e,v)}}),B$={http:Jze,xhr:OBe,fetch:FBe};Ke.forEach(B$,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const hW=e=>`- ${e}`,zBe=e=>Ke.isFunction(e)||e===null||e===!1,zie={getAdapter:e=>{e=Ke.isArray(e)?e:[e];const{length:t}=e;let r,n;const i={};for(let o=0;o<t;o++){r=e[o];let a;if(n=r,!zBe(r)&&(n=B$[(a=String(r)).toLowerCase()],n===void 0))throw new fr(`Unknown adapter '${a}'`);if(n)break;i[a||"#"+o]=n}if(!n){const o=Object.entries(i).map(([s,l])=>`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?o.length>1?`since :
455`+o.map(hW).join(`
456`):" "+hW(o[0]):"as no adapter specified";throw new fr("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return n},adapters:B$};function PT(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new fh(null,e)}function vW(e){return PT(e),e.headers=rs.from(e.headers),e.data=RT.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),zie.getAdapter(e.adapter||TD.adapter)(e).then(function(n){return PT(e),n.data=RT.call(e,e.transformResponse,n),n.headers=rs.from(n.headers),n},function(n){return kie(n)||(PT(e),n&&n.response&&(n.response.data=RT.call(e,e.transformResponse,n.response),n.response.headers=rs.from(n.response.headers))),Promise.reject(n)})}const Bie="1.11.0",ER={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ER[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const gW={};ER.transitional=function(t,r,n){function i(o,a){return"[Axios v"+Bie+"] Transitional option '"+o+"'"+a+(n?". "+n:"")}return(o,a,s)=>{if(t===!1)throw new fr(i(a," has been removed"+(r?" in "+r:"")),fr.ERR_DEPRECATED);return r&&!gW[a]&&(gW[a]=!0),t?t(o,a,s):!0}};ER.spelling=function(t){return(r,n)=>!0};function BBe(e,t,r){if(typeof e!="object")throw new fr("options must be an object",fr.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const o=n[i],a=t[o];if(a){const s=e[o],l=s===void 0||a(s,o,e);if(l!==!0)throw new fr("option "+o+" must be "+l,fr.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new fr("Unknown option "+o,fr.ERR_BAD_OPTION)}}const wC={assertOptions:BBe,validators:ER},bs=wC.validators;class jb{constructor(t){this.defaults=t||{},this.interceptors={request:new sW,response:new sW}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const o=i.stack?i.stack.replace(/^.+\n/,""):"";try{n.stack?o&&!String(n.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(n.stack+=`
457`+o):n.stack=o}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=hd(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:o}=r;n!==void 0&&wC.assertOptions(n,{silentJSONParsing:bs.transitional(bs.boolean),forcedJSONParsing:bs.transitional(bs.boolean),clarifyTimeoutError:bs.transitional(bs.boolean)},!1),i!=null&&(Ke.isFunction(i)?r.paramsSerializer={serialize:i}:wC.assertOptions(i,{encode:bs.function,serialize:bs.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),wC.assertOptions(r,{baseUrl:bs.spelling("baseURL"),withXsrfToken:bs.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let a=o&&Ke.merge(o.common,o[r.method]);o&&Ke.forEach(["delete","get","head","post","put","patch","common"],v=>{delete o[v]}),r.headers=rs.concat(a,o);const s=[];let l=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(r)===!1||(l=l&&y.synchronous,s.unshift(y.fulfilled,y.rejected))});const c=[];this.interceptors.response.forEach(function(y){c.push(y.fulfilled,y.rejected)});let d,u=0,f;if(!l){const v=[vW.bind(this),void 0];for(v.unshift(...s),v.push(...c),f=v.length,d=Promise.resolve(r);u<f;)d=d.then(v[u++],v[u++]);return d}f=s.length;let h=r;for(u=0;u<f;){const v=s[u++],y=s[u++];try{h=v(h)}catch(g){y.call(this,g);break}}try{d=vW.call(this,h)}catch(v){return Promise.reject(v)}for(u=0,f=c.length;u<f;)d=d.then(c[u++],c[u++]);return d}getUri(t){t=hd(this.defaults,t);const r=Die(t.baseURL,t.url,t.allowAbsoluteUrls);return Aie(r,t.params,t.paramsSerializer)}}Ke.forEach(["delete","get","head","options"],function(t){jb.prototype[t]=function(r,n){return this.request(hd(n||{},{method:t,url:r,data:(n||{}).data}))}});Ke.forEach(["post","put","patch"],function(t){function r(n){return function(o,a,s){return this.request(hd(s||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}jb.prototype[t]=r(),jb.prototype[t+"Form"]=r(!0)});const _C=jb;class AD{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(o){r=o});const n=this;this.promise.then(i=>{if(!n._listeners)return;let o=n._listeners.length;for(;o-- >0;)n._listeners[o](i);n._listeners=null}),this.promise.then=i=>{let o;const a=new Promise(s=>{n.subscribe(s),o=s}).then(i);return a.cancel=function(){n.unsubscribe(o)},a},t(function(o,a,s){n.reason||(n.reason=new fh(o,a,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}
457subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new AD(function(i){t=i}),cancel:t}}}const HBe=AD;function VBe(e){return function(r){return e.apply(null,r)}}function UBe(e){return Ke.isObject(e)&&e.isAxiosError===!0}const H$={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(H$).forEach(([e,t])=>{H$[t]=e});const WBe=H$;function Hie(e){const t=new _C(e),r=Sie(_C.prototype.request,t);return Ke.extend(r,_C.prototype,t,{allOwnKeys:!0}),Ke.extend(r,t,null,{allOwnKeys:!0}),r.create=function(i){return Hie(hd(e,i))},r}const Wn=Hie(TD);Wn.Axios=_C;Wn.CanceledError=fh;Wn.CancelToken=HBe;Wn.isCancel=kie;Wn.VERSION=Bie;Wn.toFormData=bR;Wn.AxiosError=fr;Wn.Cancel=Wn.CanceledError;Wn.all=function(t){return Promise.all(t)};Wn.spread=VBe;Wn.isAxiosError=UBe;Wn.mergeConfig=hd;Wn.AxiosHeaders=rs;Wn.formToJSON=e=>$ie(Ke.isHTMLForm(e)?new FormData(e):e);Wn.getAdapter=zie.getAdapter;Wn.HttpStatusCode=WBe;Wn.default=Wn;const Zr=Wn;var Vie="1.13.7",mW=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global||Function("return this")()||{},RR=Array.prototype,MD=Object.prototype,yW=typeof Symbol<"u"?Symbol.prototype:null,qBe=RR.push,F0=RR.slice,Cy=MD.toString,GBe=MD.hasOwnProperty,Uie=typeof ArrayBuffer<"u",KBe=typeof DataView<"u",YBe=Array.isArray,SW=Object.keys,CW=Object.create,bW=Uie&&ArrayBuffer.isView,XBe=isNaN,QBe=isFinite,Wie=!{toString:null}.propertyIsEnumerable("toString"),wW=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],JBe=Math.pow(2,53)-1;function To(e,t){return t=t==null?e.length-1:+t,function(){for(var r=Math.max(arguments.length-t,0),n=Array(r),i=0;i<r;i++)n[i]=arguments[i+t];switch(t){case 0:return e.call(this,n);case 1:return e.call(this,arguments[0],n);case 2:return e.call(this,arguments[0],arguments[1],n)}var o=Array(t+1);for(i=0;i<t;i++)o[i]=arguments[i];return o[t]=n,e.apply(this,o)}}function jd(e){var t=typeof e;return t==="function"||t==="object"&&!!e}function ZBe(e){return e===null}function qie(e){return e===void 0}function Gie(e){return e===!0||e===!1||Cy.call(e)==="[object Boolean]"}function e9e(e){return!!(e&&e.nodeType===1)}function Qi(e){var t="[object "+e+"]";return function(r){return Cy.call(r)===t}}const $D=Qi("String"),Kie=Qi("Number"),t9e=Qi("Date"),r9e=Qi("RegExp"),n9e=Qi("Error"),Yie=Qi("Symbol"),Xie=Qi("ArrayBuffer");var Qie=Qi("Function"),i9e=mW.document&&mW.document.childNodes;typeof/./!="function"&&typeof Int8Array!="object"&&typeof i9e!="function"&&(Qie=function(e){return typeof e=="function"||!1});const uo=Qie,Jie=Qi("Object");var Zie=KBe&&(!/\[native code\]/.test(String(DataView))||Jie(new DataView(new ArrayBuffer(8)))
457),kD=typeof Map<"u"&&Jie(new Map),o9e=Qi("DataView");function a9e(e){return e!=null&&uo(e.getInt8)&&Xie(e.buffer)}const Fb=Zie?a9e:o9e,Fd=YBe||Qi("Array");function Zc(e,t){return e!=null&&GBe.call(e,t)}var V$=Qi("Arguments");(function(){V$(arguments)||(V$=function(e){return Zc(e,"callee")})})();const ND=V$;function s9e(e){return!Yie(e)&&QBe(e)&&!isNaN(parseFloat(e))}function eoe(e){return Kie(e)&&XBe(e)}function toe(e){return function(){return e}}function roe(e){return function(t){var r=e(t);return typeof r=="number"&&r>=0&&r<=JBe}}function noe(e){return function(t){return t==null?void 0:t[e]}}const zb=noe("byteLength"),l9e=roe(zb);var c9e=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function u9e(e){return bW?bW(e)&&!Fb(e):l9e(e)&&c9e.test(Cy.call(e))}const ioe=Uie?u9e:toe(!1),Ao=noe("length");function d9e(e){for(var t={},r=e.length,n=0;n<r;++n)t[e[n]]=!0;return{contains:function(i){return t[i]===!0},push:function(i){return t[i]=!0,e.push(i)}}}function ooe(e,t){t=d9e(t);var r=wW.length,n=e.constructor,i=uo(n)&&n.prototype||MD,o="constructor";for(Zc(e,o)&&!t.contains(o)&&t.push(o);r--;)o=wW[r],o in e&&e[o]!==i[o]&&!t.contains(o)&&t.push(o)}function si(e){if(!jd(e))return[];if(SW)return SW(e);var t=[];for(var r in e)Zc(e,r)&&t.push(r);return Wie&&ooe(e,t),t}function f9e(e){if(e==null)return!0;var t=Ao(e);return typeof t=="number"&&(Fd(e)||$D(e)||ND(e))?t===0:Ao(si(e))===0}function aoe(e,t){var r=si(t),n=r.length;if(e==null)return!n;for(var i=Object(e),o=0;o<n;o++){var a=r[o];if(t[a]!==i[a]||!(a in i))return!1}return!0}function Wr(e){if(e instanceof Wr)return e;if(!(this instanceof Wr))return new Wr(e);this._wrapped=e}Wr.VERSION=Vie;Wr.prototype.value=function(){return this._wrapped};Wr.prototype.valueOf=Wr.prototype.toJSON=Wr.prototype.value;Wr.prototype.toString=function(){return String(this._wrapped)};function _W(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,zb(e))}var EW="[object DataView]";function U$(e,t,r,n){if(e===t)return e!==0||1/e===1/t;if(e==null||t==null)return!1;if(e!==e)return t!==t;var i=typeof e;return i!=="function"&&i!=="object"&&typeof t!="object"?!1:soe(e,t,r,n)}function soe(e,t,r,n){e instanceof Wr&&(e=e._wrapped),t instanceof Wr&&(t=t._wrapped);var i=Cy.call(e);if(i!==Cy.call(t))return!1;if(Zie&&i=="[object Object]"&&Fb(e)){if(!Fb(t))return!1;i=EW}switch(i){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:+e==0?1/+e===1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return yW.valueOf.call(e)===yW.valueOf.call(t);case"[object ArrayBuffer]":case EW:return soe(_W(e),_W(t),r,n)}var o=i==="[object Array]";if(!o&&ioe(e)){var a=zb(e);if(a!==zb(t))return!1;if(e.buffer===t.buffer&&e.byteOffset===t.byteOffset)return!0;o=!0}if(!o){if(typeof e!="object"||typeof t!="object")return!1;var s=e.constructor,l=t.constructor;if(s!==l&&!(uo(s)&&s instanceof s&&uo(l)&&l instanceof l)&&"constructor"in e&&"constructor"in t)return!1}r=r||[],n=n||[];for(var c=r.length;c--;)if(r[c]===e)return n[c]===t;if(r.push(e),n.push(t),o){if(c=e.length,c!==t.length)return!1;for(;c--;)if(!U$(e[c],t[c],r,n))return!1}else{var d=si(e),u;if(c=d.length,si(t).length!==c)return!1;for(;c--;)if(u=d[c],!(Zc(t,u)&&U$(e[u],t[u],r,n)))return!1}return r.pop(),n.pop(),!0}function p9e(e,t){return U$(e,t)}function z0(e){if(!jd(e))return[];var t=[];for(var r in e)t.push(r);return Wie&&ooe(e,t),t}function DD(e){var t=Ao(e);return function(r){if(r==null)return!1;var n=z0(r);if(Ao(n))return!1;for(var i=0;i<t;i++)if(!uo(r[e[i]]))return!1;return e!==uoe||!uo(r[LD])}}var LD="forEach",loe="has",jD=["clear","delete"],coe=["get",loe,"set"],h9e=jD.concat(LD,coe),uoe=jD.concat(coe),v9e=["add"].concat(jD,LD,loe);const g9e=kD?DD(h9e):Qi("Map"),m9e=kD?DD(uoe):Qi("WeakMap"),y9e=kD?DD(v9e):Qi("Set"),S9e=Qi("WeakSet");function ph(e){for(var t=si(e),r=t.length,n=Array(r),i=0;i<r;i++)n[i]=e[t[i]];return n}function C9e(e){for(var t=si(e),r=t.length,n=Array(r),i=0;i<r;i++)n[i]=[t[i],e[t[i]]];return n}function doe(e){for(var t={},r=si(e),n=0,i=r.length;n<i;n++)t[e[r[n]]]=r[n];return t}function W$(e){var t=[];for(var r in e)uo(e[r])&&t.push(r);return t.sort()}function FD(e,t){return function(r){var n=arguments.length;if(t&&(r=Object(r)),n<2||r==null)return r;for(var i=1;i<n;i++)for(var o=arguments[i],a=e(o),s=a.length,l=0;l<s;l++){var c=a[l];(!t||r[c]===void 0)&&(r[c]=o[c])}return r}}
457const foe=FD(z0),Bb=FD(si),poe=FD(z0,!0);function b9e(){return function(){}}function hoe(e){if(!jd(e))return{};if(CW)return CW(e);var t=b9e();t.prototype=e;var r=new t;return t.prototype=null,r}function w9e(e,t){var r=hoe(e);return t&&Bb(r,t),r}function _9e(e){return jd(e)?Fd(e)?e.slice():foe({},e):e}function E9e(e,t){return t(e),e}function voe(e){return Fd(e)?e:[e]}Wr.toPath=voe;function B0(e){return Wr.toPath(e)}function zD(e,t){for(var r=t.length,n=0;n<r;n++){if(e==null)return;e=e[t[n]]}return r?e:void 0}function goe(e,t,r){var n=zD(e,B0(t));return qie(n)?r:n}function R9e(e,t){t=B0(t);for(var r=t.length,n=0;n<r;n++){var i=t[n];if(!Zc(e,i))return!1;e=e[i]}return!!r}function BD(e){return e}function by(e){return e=Bb({},e),function(t){return aoe(t,e)}}function HD(e){return e=B0(e),function(t){return zD(t,e)}}function H0(e,t,r){if(t===void 0)return e;switch(r??3){case 1:return function(n){return e.call(t,n)};case 3:return function(n,i,o){return e.call(t,n,i,o)};case 4:return function(n,i,o,a){return e.call(t,n,i,o,a)}}return function(){return e.apply(t,arguments)}}function moe(e,t,r){return e==null?BD:uo(e)?H0(e,t,r):jd(e)&&!Fd(e)?by(e):HD(e)}function VD(e,t){return moe(e,t,1/0)}Wr.iteratee=VD;function Lo(e,t,r){return Wr.iteratee!==VD?Wr.iteratee(e,t):moe(e,t,r)}function P9e(e,t,r){t=Lo(t,r);for(var n=si(e),i=n.length,o={},a=0;a<i;a++){var s=n[a];o[s]=t(e[s],s,e)}return o}function yoe(){}function I9e(e){return e==null?yoe:function(t){return goe(e,t)}}function x9e(e,t,r){var n=Array(Math.max(0,e));t=H0(t,r,1);for(var i=0;i<e;i++)n[i]=t(i);return n}function q$(e,t){return t==null&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}const wy=Date.now||function(){return new Date().getTime()};function Soe(e){var t=function(o){return e[o]},r="(?:"+si(e).join("|")+")",n=RegExp(r),i=RegExp(r,"g");return function(o){return o=o==null?"":""+o,n.test(o)?o.replace(i,t):o}}const Coe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},O9e=Soe(Coe),T9e=doe(Coe),A9e=Soe(T9e),M9e=Wr.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var IT=/(.)^/,$9e={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},k9e=/\\|'|\r|\n|\u2028|\u2029/g;function N9e(e){return"\\"+$9e[e]}var D9e=/^\s*(\w|\$)+\s*$/;function L9e(e,t,r){!t&&r&&(t=r),t=poe({},t,Wr.templateSettings);var n=RegExp([(t.escape||IT).source,(t.interpolate||IT).source,(t.evaluate||IT).source].join("|")+"|$","g"),i=0,o="__p+='";e.replace(n,function(c,d,u,f,h){return o+=e.slice(i,h).replace(k9e,N9e),i=h+c.length,d?o+=`'+
458((__t=(`+d+`))==null?'':_.escape(__t))+
459'`:u?o+=`'+
460((__t=(`+u+`))==null?'':__t)+
461'`:f&&(o+=`';
462`+f+`
463__p+='`),c}),o+=`';
464`;var a=t.variable;if(a){if(!D9e.test(a))throw new Error("variable is not a bare identifier: "+a)}else o=`with(obj||{}){
465`+o+`}
466`,a="obj";o=`var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};
467`+o+`return __p;
468`;var s;try{s=new Function(a,"_",o)}catch(c){throw c.source=o,c}var l=function(c){return s.call(this,c,Wr)};return l.source="function("+a+`){
469`+o+"}",l}function j9e(e,t,r){t=B0(t);var n=t.length;if(!n)return uo(r)?r.call(e):r;for(var i=0;i<n;i++){var o=e==null?void 0:e[t[i]];o===void 0&&(o=r,i=n),e=uo(o)?o.call(e):o}return e}var F9e=0;function z9e(e){var t=++F9e+"";return e?e+t:t}function B9e(e){var t=Wr(e);return t._chain=!0,t}function boe(e,t,r,n,i){if(!(n instanceof t))return e.apply(r,i);var o=hoe(e.prototype),a=e.apply(o,i);return jd(a)?a:o}var hh=To(function(e,t){var r=hh.placeholder,n=function(){for(var i=0,o=t.length,a=Array(o),s=0;s<o;s++)a[s]=t[s]===r?arguments[i++]:t[s];for(;i<arguments.length;)a.push(arguments[i++]);return boe(e,n,this,this,a)};return n});hh.placeholder=Wr;const woe=To(function(e,t,r){if(!uo(e))throw new TypeError("Bind must be called on a function");var n=To(function(i){return boe(e,n,t,this,r.concat(i))});return n}),la=roe(Ao);function zd(e,t,r,n){if(n=n||[],!t&&t!==0)t=1/0;else if(t<=0)return n.concat(e);for(var i=n.length,o=0,a=Ao(e);o<a;o++){var s=e[o];if(la(s)&&(Fd(s)||ND(s)))if(t>1)zd(s,t-1,r,n),i=n.length;else for(var l=0,c=s.length;l<c;)n[i++]=s[l++];else r||(n[i++]=s)}return n}const H9e=To(function(e,t){t=zd(t,!1,!1);var r=t.length;if(r<1)throw new Error("bindAll must be passed function names");for(;r--;){var n=t[r];e[n]=woe(e[n],e)}return e});function V9e(e,t){var r=function(n){var i=r.cache,o=""+(t?t.apply(this,arguments):n);return Zc(i,o)||(i[o]=e.apply(this,arguments)),i[o]};return r.cache={},r}const _oe=To(function(e,t,r){return setTimeout(function(){return e.apply(null,r)},t)}),U9e=hh(_oe,Wr,1);function W9e(e,t,r){var n,i,o,a,s=0;r||(r={});var l=function(){s=r.leading===!1?0:wy(),n=null,a=e.apply(i,o),n||(i=o=null)},c=function(){var d=wy();!s&&r.leading===!1&&(s=d);var u=t-(d-s);return i=this,o=arguments,u<=0||u>t?(n&&(clearTimeout(n),n=null),s=d,a=e.apply(i,o),n||(i=o=null)):!n&&r.trailing!==!1&&(n=setTimeout(l,u)),a};return c.cancel=function(){clearTimeout(n),s=0,n=i=o=null},c}function PR(e,t,r){var n,i,o,a,s,l=function(){var d=wy()-i;t>d?n=setTimeout(l,t-d):(n=null,r||(a=e.apply(s,o)),n||(o=s=null))},c=To(function(d){return s=this,o=d,i=wy(),n||(n=setTimeout(l,t),r&&(a=e.apply(s,o))),a});return c.cancel=function(){clearTimeout(n),n=o=s=null},c}function q9e(e,t){return hh(t,e)}function UD(e){return function(){return!e.apply(this,arguments)}}function G9e(){var e=arguments,t=e.length-1;return function(){for(var r=t,n=e[t].apply(this,arguments);r--;)n=e[r].call(this,n);return n}}function K9e(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}function Eoe(e,t){var r;return function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=null),r}}const Y9e=hh(Eoe,2);function Roe(e,t,r){t=Lo(t,r);for(var n=si(e),i,o=0,a=n.length;o<a;o++)if(i=n[o],t(e[i],i,e))return i}function Poe(e){return function(t,r,n){r=Lo(r,n);for(var i=Ao(t),o=e>0?0:i-1;o>=0&&o<i;o+=e)if(r(t[o],o,t))return o;return-1}}const WD=Poe(1),Ioe=Poe(-1);function xoe(e,t,r,n){r=Lo(r,n,1);for(var i=r(t),o=0,a=Ao(e);o<a;){var s=Math.floor((o+a)/2);r(e[s])<i?o=s+1:a=s}return o}function Ooe(e,t,r){return function(n,i,o){var a=0,s=Ao(n);if(typeof o=="number")e>0?a=o>=0?o:Math.max(o+s,a):s=o>=0?Math.min(o+1,s):o+s+1;else if(r&&o&&s)return o=r(n,i),n[o]===i?o:-1;if(i!==i)return o=t(F0.call(n,a,s),eoe),o>=0?o+a:-1;for(o=e>0?a:s-1;o>=0&&o<s;o+=e)if(n[o]===i)return o;return-1}}const Toe=Ooe(1,WD,xoe),X9e=Ooe(-1,Ioe);function G$(e,t,r){var n=la(e)?WD:Roe,i=n(e,t,r);if(i!==void 0&&i!==-1)return e[i]}function Q9e(e,t){return G$(e,by(t))}function _l(e,t,r){t=H0(t,r);var n,i;if(la(e))for(n=0,i=e.length;n<i;n++)t(e[n],n,e);else{var o=si(e);for(n=0,i=o.length;n<i;n++)t(e[o[n]],o[n],e)}return e}function vd(e,t,r){t=Lo(t,r);for(var n=!la(e)&&si(e),i=(n||e).length,o=Array(i),a=0;a<i;a++){var s=n?n[a]:a;o[a]=t(e[s],s,e)}return o}function Aoe(e){var t=function(r,n,i,o){var a=!la(r)&&si(r),s=(a||r).length,l=e>0?0:s-1;for(o||(i=r[a?a[l]:l],l+=e);l>=0&&l<s;l+=e){var c=a?a[l]:l;i=n(i,r[c],c,r)}return i};return function(r,n,i,o){var a=arguments.length>=3;return t(r,H0(n,o,4),i,a)}}const xT=Aoe(1),RW=Aoe(-1);function Ip(e,t,r){var n=[];return t=Lo(t,r),_l(e,function(i,o,a){t(i,o,a)&&n.push(i)}),n}function J9e(e,t,r){return Ip(e,UD(Lo(t)),r)}function PW(e,t,r){t=Lo(t,r);for(var n=!la(e)&&si(e),i=(n||e).length,o=0;o<i;o++){var a=n?n[o]:o;if(!t(e[a],a,e))return!1}return!0}function IW(e,t,r){t=Lo(t,r);for(var n=!la(e)&&si(e),i=(n||e).length,o=0;o<i;o++){var a=n?n[o]:o;if(t(e[a],a,e))return!0}return!1}function pl(e,t,r,n){return la(e)||(e=ph(e)),(typeof r!="number"||n)&&(r=0),Toe(e,t,r)>=0}const Z9e=To(function(e,t,r){var n,i;return uo(t)?i=t:(t=B0(t),n=t.slice(0,-1),t=t[t.length-1]),vd(e,function(o){var a=i;if(!a){if(n&&n.length&&(o=zD(o,n)),o==null)return;a=o[t]}return a==null?a:a.apply(o,r)})});function qD(e,t){return vd(e,HD(t))}function eHe(e,t){return Ip(e,by(t))}function Moe(e,t,r){var n=-1/0,i=-1/0,o,a;if(t==null||typeof t=="number"&&typeof e[0]!="object"&&e!=null){e=la(e)?e:ph(e);for(var s=0,l=e.length;s<l;s++)o=e[s],o!=null&&o>n&&(n=o)}else t=Lo(t,r),_l(e,function(c,d,u){a=t(c,d,u),(a>i||a===-1/0&&n===-1/0)&&(n=c,i=a)});return n}function tHe(e,t,r){var n=1/0,i=1/0,o,a;if(t==null||typeof t=="number"&&typeof e[0]!="object"&&e!=null){e=la(e)?e:ph(e);for(var s=0,l=e.length;s<l;s++)o=e[s],o!=null&&o<n&&(n=o)}else t=Lo(t,r),_l(e,function(c,d,u){a=t(c,d,u),(a<i||a===1/0&&n===1/0)&&(n=c,i=a)});return n}var rHe=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function $oe(e){return e?Fd(e)?F0.call(e):$D(e)?e.match(rHe):la(e)?vd(e,BD):ph(e):[]}function koe(e,t,r){if(t==null||r)return la(e)||(e=ph(e)),e[q$(e.length-1)];var n=$oe(e),i=Ao(n);t=Math.max(Math.min(t,i),0);for(var o=i-1,a=0;a<t;a++){var s=q$(a,o),l=n[a];n[a]=n[s],n[s]=l}return n.slice(0,t)}function nHe(e){return koe(e,1/0)}function iHe(e,t,r){var n=0;return t=Lo(t,r),qD(vd(e,function(i,o,a){return{value:i,index:n++,criteria:t(i,o,a)}}).sort(function(i,o){var a=i.criteria,s=o.criteria;
469if(a!==s){if(a>s||a===void 0)return 1;if(a<s||s===void 0)return-1}return i.index-o.index}),"value")}function IR(e,t){return function(r,n,i){var o=t?[[],[]]:{};return n=Lo(n,i),_l(r,function(a,s){var l=n(a,s,r);e(o,a,l)}),o}}const oHe=IR(function(e,t,r){Zc(e,r)?e[r].push(t):e[r]=[t]}),aHe=IR(function(e,t,r){e[r]=t}),sHe=IR(function(e,t,r){Zc(e,r)?e[r]++:e[r]=1}),lHe=IR(function(e,t,r){e[r?0:1].push(t)},!0);function cHe(e){return e==null?0:la(e)?e.length:si(e).length}function uHe(e,t,r){return t in r}const Noe=To(function(e,t){var r={},n=t[0];if(e==null)return r;uo(n)?(t.length>1&&(n=H0(n,t[1])),t=z0(e)):(n=uHe,t=zd(t,!1,!1),e=Object(e));for(var i=0,o=t.length;i<o;i++){var a=t[i],s=e[a];n(s,a,e)&&(r[a]=s)}return r}),dHe=To(function(e,t){var r=t[0],n;return uo(r)?(r=UD(r),t.length>1&&(n=t[1])):(t=vd(zd(t,!1,!1),String),r=function(i,o){return!pl(t,o)}),Noe(e,r,n)});function Doe(e,t,r){return F0.call(e,0,Math.max(0,e.length-(t==null||r?1:t)))}function OT(e,t,r){return e==null||e.length<1?t==null||r?void 0:[]:t==null||r?e[0]:Doe(e,e.length-t)}function EC(e,t,r){return F0.call(e,t==null||r?1:t)}function fHe(e,t,r){return e==null||e.length<1?t==null||r?void 0:[]:t==null||r?e[e.length-1]:EC(e,Math.max(0,e.length-t))}function pHe(e){return Ip(e,Boolean)}function hHe(e,t){return zd(e,t,!1)}const Loe=To(function(e,t){return t=zd(t,!0,!0),Ip(e,function(r){return!pl(t,r)})}),vHe=To(function(e,t){return Loe(e,t)});function K$(e,t,r,n){Gie(t)||(n=r,r=t,t=!1),r!=null&&(r=Lo(r,n));for(var i=[],o=[],a=0,s=Ao(e);a<s;a++){var l=e[a],c=r?r(l,a,e):l;t&&!r?((!a||o!==c)&&i.push(l),o=c):r?pl(o,c)||(o.push(c),i.push(l)):pl(i,l)||i.push(l)}return i}const gHe=To(function(e){return K$(zd(e,!0,!0))});function mHe(e){for(var t=[],r=arguments.length,n=0,i=Ao(e);n<i;n++){var o=e[n];if(!pl(t,o)){var a;for(a=1;a<r&&pl(arguments[a],o);a++);a===r&&t.push(o)}}return t}function Y$(e){for(var t=e&&Moe(e,Ao).length||0,r=Array(t),n=0;n<t;n++)r[n]=qD(e,n);return r}const yHe=To(Y$);function SHe(e,t){for(var r={},n=0,i=Ao(e);n<i;n++)t?r[e[n]]=t[n]:r[e[n][0]]=e[n][1];return r}function CHe(e,t,r){t==null&&(t=e||0,e=0),r||(r=t<e?-1:1);for(var n=Math.max(Math.ceil((t-e)/r),0),i=Array(n),o=0;o<n;o++,e+=r)i[o]=e;return i}function bHe(e,t){if(t==null||t<1)return[];for(var r=[],n=0,i=e.length;n<i;)r.push(F0.call(e,n,n+=t));return r}function GD(e,t){return e._chain?Wr(t).chain():t}function joe(e){return _l(W$(e),function(t){var r=Wr[t]=e[t];Wr.prototype[t]=function(){var n=[this._wrapped];return qBe.apply(n,arguments),GD(this,r.apply(Wr,n))}}),Wr}_l(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=RR[e];Wr.prototype[e]=function(){var r=this._wrapped;return r!=null&&(t.apply(r,arguments),(e==="shift"||e==="splice")&&r.length===0&&delete r[0]),GD(this,r)}});_l(["concat","join","slice"],function(e){var t=RR[e];Wr.prototype[e]=function(){var r=this._wrapped;return r!=null&&(r=t.apply(r,arguments)),GD(this,r)}});const wHe=Object.freeze(Object.defineProperty({__proto__:null,VERSION:Vie,after:K9e,all:PW,allKeys:z0,any:IW,assign:Bb,before:Eoe,bind:woe,bindAll:H9e,chain:B9e,chunk:bHe,clone:_9e,collect:vd,compact:pHe,compose:G9e,constant:toe,contains:pl,countBy:sHe,create:w9e,debounce:PR,default:Wr,defaults:poe,defer:U9e,delay:_oe,detect:G$,difference:Loe,drop:EC,each:_l,escape:O9e,every:PW,extend:foe,extendOwn:Bb,filter:Ip,find:G$,findIndex:WD,findKey:Roe,findLastIndex:Ioe,findWhere:Q9e,first:OT,flatten:hHe,foldl:xT,foldr:RW,forEach:_l,functions:W$,get:goe,groupBy:oHe,has:R9e,head:OT,identity:BD,include:pl,includes:pl,indexBy:aHe,indexOf:Toe,initial:Doe,inject:xT,intersection:mHe,invert:doe,invoke:Z9e,isArguments:ND,isArray:Fd,isArrayBuffer:Xie,isBoolean:Gie,isDataView:Fb,isDate:t9e,isElement:e9e,isEmpty:f9e,isEqual:p9e,isError:n9e,isFinite:s9e,isFunction:uo,isMap:g9e,isMatch:aoe,isNaN:eoe,isNull:ZBe,isNumber:Kie,isObject:jd,isRegExp:r9e,isSet:y9e,isString:$D,isSymbol:Yie,isTypedArray:ioe,isUndefined:qie,isWeakMap:m9e,isWeakSet:S9e,iteratee:VD,keys:si,last:fHe,lastIndexOf:X9e,map:vd,mapObject:P9e,matcher:by,matches:by,max:Moe,memoize:V9e,methods:W$,min:tHe,mixin:joe,negate:UD,noop:yoe,now:wy,object:SHe,omit:dHe,once:Y9e,pairs:C9e,partial:hh,partition:lHe,pick:Noe,pluck:qD,property:HD,propertyOf:I9e,random:q$,range:CHe,reduce:xT,reduceRight:RW,reject:J9e,rest:EC,restArguments:To,result:j9e,sample:koe,select:Ip,shuffle:nHe,size:cHe,some:IW,sortBy:iHe,sortedIndex:xoe,tail:EC,take:OT,tap:E9e,template:L9e,templateSettings:M9e,throttle:W9e,times:x9e,toArray:$oe,toPath:voe,transpose:Y$,unescape:A9e,union:gHe,uniq:K$,unique:K$,uniqueId:z9e,unzip:Y$,values:ph,where:eHe,without:vHe,wrap:q9e,zip:yHe},Symbol.toStringTag,{value:"Module"}));var xW=joe(wHe);xW._=xW;var V0={};(function e(t,r,n,i){var o=!!(t.Worker&&t.Blob&&t.Promise&&t.OffscreenCanvas&&t.OffscreenCanvasRenderingContext2D&&t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype.transferControlToOffscreen&&t.URL&&t.URL.createObjectURL),a=typeof Path2D=="function"&&typeof DOMMatrix=="function",s=function(){if(!t.OffscreenCanvas)return!1;var M=new OffscreenCanvas(1,1),$=M.getContext("2d");$.fillRect(0,0,1,1);var F=M.transferToImageBitmap();try{$.createPattern(F,"no-repeat")}catch{return!1}return!0}();function l(){}function c(M){var $=r.exports.Promise,F=$!==void 0?$:t.Promise;return typeof F=="function"?new F(M):(M(l,l),null)}var d=function(M,$){return{transform:function(F){if(M)return F;if($.has(F))return $.get(F);var z=new OffscreenCanvas(F.width,F.height),H=z.getContext("2d");return H.drawImage(F,0,0),$.set(F,z),z},clear:function(){$.clear()}}}
vendor: 8,898 bytes, lines 469-470
469(s,new Map),u=function(){var M=Math.floor(16.666666666666668),$,F,z={},H=0;return typeof requestAnimationFrame=="function"&&typeof cancelAnimationFrame=="function"?($=function(U){var V=Math.random();return z[V]=requestAnimationFrame(function W(K){H===K||H+M-1<K?(H=K,delete z[V],U()):z[V]=requestAnimationFrame(W)}),V},F=function(U){z[U]&&cancelAnimationFrame(z[U])}):($=function(U){return setTimeout(U,M)},F=function(U){return clearTimeout(U)}),{frame:$,cancel:F}}(),f=function(){var M,$,F={};function z(H){function U(V,W){H.postMessage({options:V||{},callback:W})}H.init=function(W){var K=W.transferControlToOffscreen();H.postMessage({canvas:K},[K])},H.fire=function(W,K,Z){if($)return U(W,null),$;var q=Math.random().toString(36).slice(2);return $=c(function(Y){function G(re){re.data.callback===q&&(delete F[q],H.removeEventListener("message",G),$=null,d.clear(),Z(),Y())}H.addEventListener("message",G),U(W,q),F[q]=G.bind(null,{data:{callback:q}})}),$},H.reset=function(){H.postMessage({reset:!0});for(var W in F)F[W](),delete F[W]}}return function(){if(M)return M;if(!n&&o){var H=["var CONFETTI, SIZE = {}, module = {};","("+e.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {","  if (msg.data.options) {","    CONFETTI(msg.data.options).then(function () {","      if (msg.data.callback) {","        postMessage({ callback: msg.data.callback });","      }","    });","  } else if (msg.data.reset) {","    CONFETTI && CONFETTI.reset();","  } else if (msg.data.resize) {","    SIZE.width = msg.data.resize.width;","    SIZE.height = msg.data.resize.height;","  } else if (msg.data.canvas) {","    SIZE.width = msg.data.canvas.width;","    SIZE.height = msg.data.canvas.height;","    CONFETTI = module.exports.create(msg.data.canvas);","  }","}"].join(`
470`);try{M=new Worker(URL.createObjectURL(new Blob([H])))}catch{return null}z(M)}return M}}(),h={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function v(M,$){return $?$(M):M}function y(M){return M!=null}function g(M,$,F){return v(M&&y(M[$])?M[$]:h[$],F)}function m(M){return M<0?0:Math.floor(M)}function S(M,$){return Math.floor(Math.random()*($-M))+M}function C(M){return parseInt(M,16)}function b(M){return M.map(w)}function w(M){var $=String(M).replace(/[^0-9a-f]/gi,"");return $.length<6&&($=$[0]+$[0]+$[1]+$[1]+$[2]+$[2]),{r:C($.substring(0,2)),g:C($.substring(2,4)),b:C($.substring(4,6))}}function E(M){var $=g(M,"origin",Object);return $.x=g($,"x",Number),$.y=g($,"y",Number),$}function _(M){M.width=document.documentElement.clientWidth,M.height=document.documentElement.clientHeight}function R(M){var $=M.getBoundingClientRect();M.width=$.width,M.height=$.height}function P(M){var $=document.createElement("canvas");return $.style.position="fixed",$.style.top="0px",$.style.left="0px",$.style.pointerEvents="none",$.style.zIndex=M,$}function I(M,$,F,z,H,U,V,W,K){M.save(),M.translate($,F),M.rotate(U),M.scale(z,H),M.arc(0,0,1,V,W,K),M.restore()}function O(M){var $=M.angle*(Math.PI/180),F=M.spread*(Math.PI/180);return{x:M.x,y:M.y,wobble:Math.random()*10,wobbleSpeed:Math.min(.11,Math.random()*.1+.05),velocity:M.startVelocity*.5+Math.random()*M.startVelocity,angle2D:-$+(.5*F-Math.random()*F),tiltAngle:(Math.random()*(.75-.25)+.25)*Math.PI,color:M.color,shape:M.shape,tick:0,totalTicks:M.ticks,decay:M.decay,drift:M.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:M.gravity*3,ovalScalar:.6,scalar:M.scalar,flat:M.flat}}function A(M,$){$.x+=Math.cos($.angle2D)*$.velocity+$.drift,$.y+=Math.sin($.angle2D)*$.velocity+$.gravity,$.velocity*=$.decay,$.flat?($.wobble=0,$.wobbleX=$.x+10*$.scalar,$.wobbleY=$.y+10*$.scalar,$.tiltSin=0,$.tiltCos=0,$.random=1):($.wobble+=$.wobbleSpeed,$.wobbleX=$.x+10*$.scalar*Math.cos($.wobble),$.wobbleY=$.y+10*$.scalar*Math.sin($.wobble),$.tiltAngle+=.1,$.tiltSin=Math.sin($.tiltAngle),$.tiltCos=Math.cos($.tiltAngle),$.random=Math.random()+2);var F=$.tick++/$.totalTicks,z=$.x+$.random*$.tiltCos,H=$.y+$.random*$.tiltSin,U=$.wobbleX+$.random*$.tiltCos,V=$.wobbleY+$.random*$.tiltSin;if(M.fillStyle="rgba("+$.color.r+", "+$.color.g+", "+$.color.b+", "+(1-F)+")",M.beginPath(),a&&$.shape.type==="path"&&typeof $.shape.path=="string"&&Array.isArray($.shape.matrix))M.fill(j($.shape.path,$.shape.matrix,$.x,$.y,Math.abs(U-z)*.1,Math.abs(V-H)*.1,Math.PI/10*$.wobble));else if($.shape.type==="bitmap"){var W=Math.PI/10*$.wobble,K=Math.abs(U-z)*.1,Z=Math.abs(V-H)*.1,q=$.shape.bitmap.width*$.scalar,Y=$.shape.bitmap.height*$.scalar,G=new DOMMatrix([Math.cos(W)*K,Math.sin(W)*K,-Math.sin(W)*Z,Math.cos(W)*Z,$.x,$.y]);G.multiplySelf(new DOMMatrix($.shape.matrix));var re=M.createPattern(d.transform($.shape.bitmap),"no-repeat");re.setTransform(G),M.globalAlpha=1-F,M.fillStyle=re,M.fillRect($.x-q/2,$.y-Y/2,q,Y),M.globalAlpha=1}else if($.shape==="circle")M.ellipse?M.ellipse($.x,$.y,Math.abs(U-z)*$.ovalScalar,Math.abs(V-H)*$.ovalScalar,Math.PI/10*$.wobble,0,2*Math.PI):I(M,$.x,$.y,Math.abs(U-z)*$.ovalScalar,Math.abs(V-H)*$.ovalScalar,Math.PI/10*$.wobble,0,2*Math.PI);else if($.shape==="star")for(var ee=Math.PI/2*3,ne=4*$.scalar,te=8*$.scalar,pe=$.x,le=$.y,ye=5,Se=Math.PI/ye;ye--;)pe=$.x+Math.cos(ee)*te,le=$.y+Math.sin(ee)*te,M.lineTo(pe,le),ee+=Se,pe=$.x+Math.cos(ee)*ne,le=$.y+Math.sin(ee)*ne,M.lineTo(pe,le),ee+=Se;else M.moveTo(Math.floor($.x),Math.floor($.y)),M.lineTo(Math.floor($.wobbleX),Math.floor(H)),M.lineTo(Math.floor(U),Math.floor(V)),M.lineTo(Math.floor(z),Math.floor($.wobbleY));return M.closePath(),M.fill(),$.tick<$.totalTicks}function x(M,$,F,z,H){var U=$.slice(),V=M.getContext("2d"),W,K,Z=c(function(q){function Y(){W=K=null,V.clearRect(0,0,z.width,z.height),d.clear(),H(),q()}function G(){n&&!(z.width===i.width&&z.height===i.height)&&(z.width=M.width=i.width,z.height=M.height=i.height),!z.width&&!z.height&&(F(M),z.width=M.width,z.height=M.height),V.clearRect(0,0,z.width,z.height),U=U.filter(function(re){return A(V,re)}),U.length?W=u.frame(G):Y()}W=u.frame(G),K=Y});return{addFettis:function(q){return U=U.concat(q),Z},canvas:M,promise:Z,reset:function(){W&&u.cancel(W),K&&K()}}}function T(M,$){var F=!M,z=!!g($||{},"resize"),H=!1,U=g($,"disableForReducedMotion",Boolean),V=o&&!!g($||{},"useWorker"),W=V?f():null,K=F?_:R,Z=M&&W?!!M.__confetti_initialized:!1,q=typeof matchMedia=="function"&&matchMedia("(prefers-reduced-motion)").matches,Y;function G(ee,ne,te){for(var pe=g(ee,"particleCount",m),le=g(ee,"angle",Number),ye=g(ee,"spread",Number),Se=g(ee,"startVelocity",Number),_e=g(ee,"decay",Number),De=g(ee,"gravity",Number),be=g(ee,"drift",Number),se=g(ee,"colors",b),Pe=g(ee,"ticks",Number),Te=g(ee,"shapes"),ze=g(ee,"scalar"),ke=!!g(ee,"flat"),Me=E(ee),qe=pe,Le=[],xe=M.width*Me.x,je=M.height*Me.y;qe--;)Le.push(O({x:xe,y:je,angle:le,spread:ye,startVelocity:Se,color:se[qe%se.length],shape:Te[S(0,Te.length)],ticks:Pe,decay:_e,gravity:De,drift:be,scalar:ze,flat:ke}));return Y?Y.addFettis(Le):(Y=x(M,Le,K,ne,te),Y.promise)}function re(ee){var ne=U||g(ee,"disableForReducedMotion",Boolean),te=g(ee,"zIndex",Number);if(ne&&q)return c(function(Se){Se()});F&&Y?M=Y.canvas:F&&!M&&(M=P(te),document.body.appendChild(M)),z&&!Z&&K(M);var pe={width:M.width,height:M.height};W&&!Z&&W.init(M),Z=!0,W&&(M.__confetti_initialized=!0);function le(){if(W){var Se={getBoundingClientRect:function(){if(!F)return M.getBoundingClientRect()}};K(Se),W.postMessage({resize:{width:Se.width,height:Se.height}});return}pe.width=pe.height=null}function ye(){Y=null,z&&(H=!1,t.removeEventListener("resize",le)),F&&M&&(document.body.contains(M)&&document.body.removeChild(M),M=null,Z=!1)}return z&&!H&&(H=!0,t.addEventListener("resize",le,!1)),W?W.fire(ee,pe,ye):G(ee,pe,ye)}return re.reset=function(){W&&W.reset(),Y&&Y.reset()},re}var D;function k(){return D||(D=T(null,{useWorker:!0,resize:!0})),D}function j(M,$,F,z,H,U,V){var W=new Path2D(M),K=new Path2D;K.addPath(W,new DOMMatrix($));var Z=new Path2D;return Z.addPath(K,new DOMMatrix([Math.cos(V)*H,Math.sin(V)*H,-Math.sin(V)*U,Math.cos(V)*U,F,z])),Z}function N(M){if(!a)throw new Error("path confetti are not supported in this browser");var $,F;typeof M=="string"?$=M:($=M.path,F=M.matrix);var z=new Path2D($),H=document.createElement("canvas"),U=H.getContext("2d");if(!F){for(var V=1e3,W=V,K=V,Z=0,q=0,Y,G,re=0;re<V;re+=2)for(var ee=0;ee<V;ee+=2)U.isPointInPath(z,re,ee,"nonzero")&&(W=Math.min(W,re),K=Math.min(K,ee),Z=Math.max(Z,re),q=Math.max(q,ee));Y=Z-W,G=q-K;var ne=10,te=Math.min(ne/Y,ne/G);F=[te,0,0,te,-Math.round(Y/2+W)*te,-Math.round(G/2+K)*te]}return{type:"path",path:$,matrix:F}}function L(M){var $,F=1,z="#000000",H='"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif';
470typeof M=="string"?$=M:($=M.text,F="scalar"in M?M.scalar:F,H="fontFamily"in M?M.fontFamily:H,z="color"in M?M.color:z);var U=10*F,V=""+U+"px "+H,W=new OffscreenCanvas(U,U),K=W.getContext("2d");K.font=V;var Z=K.measureText($),q=Math.ceil(Z.actualBoundingBoxRight+Z.actualBoundingBoxLeft),Y=Math.ceil(Z.actualBoundingBoxAscent+Z.actualBoundingBoxDescent),G=2,re=Z.actualBoundingBoxLeft+G,ee=Z.actualBoundingBoxAscent+G;q+=G+G,Y+=G+G,W=new OffscreenCanvas(q,Y),K=W.getContext("2d"),K.font=V,K.fillStyle=z,K.fillText($,re,ee);var ne=1/F;return{type:"bitmap",bitmap:W.transferToImageBitmap(),matrix:[ne,0,0,ne,-q*ne/2,-Y*ne/2]}}r.exports=function(){return k().apply(this,arguments)},r.exports.reset=function(){k().reset()},r.exports.create=T,r.exports.shapeFromPath=N,r.exports.shapeFromText=L})(function(){return typeof window<"u"?window:typeof self<"u"?self:this||{}}(),V0,!1);const _He=V0.exports;V0.exports.create;const Ng={CET4:{count:6320},CET6:{count:7985},IETLS:{count:6021}};function Foe(){window.localStorage.removeItem("is_login"),window.localStorage.removeItem("user_nickname"),window.localStorage.removeItem("user_email"),window.localStorage.removeItem("user_quota"),window.localStorage.removeItem("user_has_mobile"),window.localStorage.removeItem("user_token")}function EHe(){return window.localStorage.getItem("first_time_onboarding")==="true"}function RHe(){window.localStorage.setItem("first_time_onboarding","true")}function PHe(e){return e?e.subscription_type===0:!1}function zoe(){return O$((window.localStorage.getItem("user_email")||"")+new Date().valueOf(),O$.DNS)}function IHe(e,t="YYYY-MM-DD HH:mm:ss"){return e?r3.unix(e).format(t):""}function xHe(e){return e.split(" ").filter(t=>{var r;return t=t.trim(),!(((r=t.match(/[^a-zA-Z]+/g))==null?void 0:r.join())===t||!t)}).map(t=>(t=t.trim(),t.replace(/(^[^a-zA-Z]+)|([^a-zA-Z]+$)/,"").toLowerCase()))}class OHe{constructor(){Qe(this,"streaming_buffer",[]);Qe(this,"max_chunk_size",30);Qe(this,"content","");Qe(this,"sentences",[]);Qe(this,"onNewSentence")}update(t,r=!1){var a,s,l,c;this.content+=t;const n=this.sentences.reduce((d,u)=>d+u.length,0);let i="";const o=n;for(let d=o;d<this.content.length;d++){let u=this.content[d];if(i+=u,(s=(a=window.store.user)==null?void 0:a.config)!=null&&s.apikey&&i.length>200&&[",",".","!","?","。","?","!"].includes(u)){this.sentences.push(i),(l=this.onNewSentence)==null||l.call(this,i,r);break}}r&&(this.sentences.push(i),(c=this.onNewSentence)==null||c.call(this,i,r))}get length(){return this.sentences.length}clear(){this.sentences=[],this.streaming_buffer=[],this.content=""}}function KD(e){e.startsWith("?")&&(e=e.slice(1));let t={},r=e.split("&");for(let n in r){let i=r[n].split("=");
470t[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return t}function YD(e){window.localStorage.setItem("user_token",e),Zr.defaults.headers.common.Authorization=e}function THe(){const[e,t]=p.useState();return p.useEffect(()=>{function r(){t({width:window.innerWidth,height:window.innerHeight})}return window.addEventListener("resize",r),r(),()=>window.removeEventListener("resize",r)},[]),e}function eu(){const[e,t]=p.useState(!1),r=THe();return p.useEffect(()=>{t(((r==null?void 0:r.width)||0)<481)},[r]),e}function AHe(e){const t=window.getComputedStyle(e),r=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight);return e.clientWidth-r}function OW(e,t){let r=document.getElementById(e);return r||(r=document.createElement("span"),r.style.position="absolute",r.style.wordBreak="break-word",r.style.fontSize="14px",r.style.transform="translateY(-200vh)",r.style.pointerEvents="none",r.style.opacity="0",r.id=e,document.body.appendChild(r),t==null||t(r)),r}function MHe(e){const t=OW("__measure"),r=OW("__single_measure",l=>{l.innerText="TEXT_FOR_MEASURE"}),n=AHe(e);t.style.width=n+"px",t.innerText=e.value.trim().length>0?e.value:"1";const i=Math.max(0,e.value.split(`
471`).length-1),o=parseFloat(window.getComputedStyle(t).height),a=parseFloat(window.getComputedStyle(r).height);return Math.round(o/a)+i}function $He(){var e=60,t={origin:{y:.4}};function r(n,i){_He(Object.assign({},t,i,{particleCount:Math.floor(e*n)}))}r(.25,{spread:26,startVelocity:55}),r(.2,{spread:60}),r(.35,{spread:100,decay:.91,scalar:.8}),r(.1,{spread:120,startVelocity:25,decay:.92,scalar:1.2}),r(.1,{spread:120,startVelocity:45})}const XD=async e=>{await window.store.conversations_manager.addConversation(e)};PR(e=>window.store.conversations_manager.deleteConversation(e),500,!0);function X$(){return"en"}function Q$(e){const t=[];try{for(let r=0;r<e.split(`
472`).length;r++){const n=e.split(`
473`)[r];if(!n.trim()){bt.warning(`剧本第${r+1}行格式错误, 不能有空行`);return}if(n.replace(":",":"),!n.includes(":")){bt.warning(`剧本第${r+1}行格式错误, ${n}`);return}let i=n.split(":");if(i.length<2){bt.warning(`剧本第${r+1}行格式错误, ${n}`);return}else i.shift(),t.push({role:r%2?"student":"teacher",text:i.join(":")})}}catch(r){throw bt.warning("剧本格式错误"),r}return t}const Boe=[{label:"🇺🇸 English",value:"English"},{label:"🇷🇺 Русский",value:"Russian"},{label:"🇨🇳 中文",value:"Chinese"},{label:"🇯🇵 日本語",value:"Japanese"},{label:"🇰🇷 한국어",value:"Korean"},{label:"🇫🇷 Français",value:"French"},{label:"🇩🇪 Deutsch",value:"German"},{label:"🇪🇸 Español",value:"Spanish"},{label:"🇮🇹 Italiano",value:"Italian"},{label:"🇵🇹 Português",value:"Portuguese"},{label:"🇳🇱 Nederlands",value:"Dutch"},{label:"🇸🇪 Svenska",value:"Swedish"},{label:"🇳🇴 Norsk",value:"Norwegian"},{label:"🇩🇰 Dansk",value:"Danish"},{label:"🇫🇮 Suomi",value:"Finnish"},{label:"🇵🇱 Polski",value:"Polish"},{label:"🇨🇿 Čeština",value:"Czech"},{label:"🇭🇺 Magyar",value:"Hungarian"},{label:"🇬🇷 Ελληνικά",value:"Greek"},{label:"🇹🇷 Türkçe",value:"Turkish"},{label:"🇦🇷 العربية",value:"Arabic"},{label:"🇮🇳 हिन्दी",value:"Hindi"},{label:"🇹🇭 ไทย",value:"Thai"},{label:"🇻🇳 Tiếng Việt",value:"Vietnamese"},{label:"🇮🇩 Bahasa Indonesia",value:"Indonesian"}];function TW(e){return e.replace(/[\u{1F600}-\u{1F64F}]/gu,"").replace(/[\u{1F300}-\u{1F5FF}]/gu,"").replace(/[\u{1F680}-\u{1F6FF}]/gu,"").replace(/[\u{1F1E0}-\u{1F1FF}]/gu,"").replace(/[\u{2600}-\u{26FF}]/gu,"").replace(/[\u{2700}-\u{27BF}]/gu,"").replace(/[\u{1F900}-\u{1F9FF}]/gu,"").replace(/[\u{1F018}-\u{1F270}]/gu,"").replace(/[\u{238C}-\u{2454}]/gu,"").replace(/[\u{20D0}-\u{20FF}]/gu,"").replace(/[\u{FE00}-\u{FE0F}]/gu,"").replace(/[\u{1F3FB}-\u{1F3FF}]/gu,"").replace(/[\u{1F9B0}-\u{1F9B3}]/gu,"").replace(/[\u{200D}]/gu,"").replace(/[\u{200B}-\u{200D}]/gu,"").replace(/[\u{2060}-\u{2064}]/gu,"").replace(/[\u{206A}-\u{206F}]/gu,"").replace(/[\u{2060}]/gu,"").replace(/[\u{FEFF}]/gu,"").replace(/[\u{0000}-\u{001F}]/gu,"").replace(/[\u{007F}-\u{009F}]/gu,"").replace(/[\u{2028}-\u{2029}]/gu,"").replace(/[\u{202A}-\u{202E}]/gu,"").replace(/[\u{2066}-\u{2069}]/gu,"").replace(/\s+/g," ").trim()}const rr=e=>typeof e=="string",Dg=()=>{let e,t;const r=new Promise((n,i)=>{e=n,t=i});return r.resolve=e,r.reject=t,r},AW=e=>e==null?"":""+e,kHe=(e,t,r)=>{e.forEach(n=>{t[n]&&(r[n]=t[n])})},NHe=/###/g,MW=e=>e&&e.indexOf("###")>-1?e.replace(NHe,"."):e,$W=e=>!e||rr(e),ym=(e,t,r)=>{const n=rr(t)?t.split("."):t;let i=0;for(;i<n.length-1;){if($W(e))return{};const o=MW(n[i]);!e[o]&&r&&(e[o]=new r),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={},++i}return $W(e)?{}:{obj:e,k:MW(n[i])}},kW=(e,t,r)=>{const{obj:n,k:i}=ym(e,t,Object);if(n!==void 0||t.length===1){n[i]=r;return}let o=t[t.length-1],a=t.slice(0,t.length-1),s=ym(e,a,Object);for(;s.obj===void 0&&a.length;)o=`${a[a.length-1]}.${o}`,a=a.slice(0,a.length-1),s=ym(e,a,Object),s&&s.obj&&typeof s.obj[`${s.k}.${o}`]<"u"&&(s.obj=void 0);s.obj[`${s.k}.${o}`]=r},DHe=(e,t,r,n)=>{const{obj:i,k:o}=ym(e,t,Object);i[o]=i[o]||[],i[o].push(r)},Hb=(e,t)=>
vendor: 6,213 bytes, line 473
473{const{obj:r,k:n}=ym(e,t);if(r)return r[n]},LHe=(e,t,r)=>{const n=Hb(e,r);return n!==void 0?n:Hb(t,r)},Hoe=(e,t,r)=>{for(const n in t)n!=="__proto__"&&n!=="constructor"&&(n in e?rr(e[n])||e[n]instanceof String||rr(t[n])||t[n]instanceof String?r&&(e[n]=t[n]):Hoe(e[n],t[n],r):e[n]=t[n]);return e},hf=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var jHe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const FHe=e=>rr(e)?e.replace(/[&<>"'\/]/g,t=>jHe[t]):e;class zHe{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const r=this.regExpMap.get(t);if(r!==void 0)return r;const n=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,n),this.regExpQueue.push(t),n}}const BHe=[" ",",","?","!",";"],HHe=new zHe(20),VHe=(e,t,r)=>{t=t||"",r=r||"";const n=BHe.filter(a=>t.indexOf(a)<0&&r.indexOf(a)<0);if(n.length===0)return!0;const i=HHe.getRegExp(`(${n.map(a=>a==="?"?"\\?":a).join("|")})`);let o=!i.test(e);if(!o){const a=e.indexOf(r);a>0&&!i.test(e.substring(0,a))&&(o=!0)}return o},J$=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const n=t.split(r);let i=e;for(let o=0;o<n.length;){if(!i||typeof i!="object")return;let a,s="";for(let l=o;l<n.length;++l)if(l!==o&&(s+=r),s+=n[l],a=i[s],a!==void 0){if(["string","number","boolean"].indexOf(typeof a)>-1&&l<n.length-1)continue;o+=l-o+1;break}i=a}return i},Vb=e=>e&&e.replace("_","-"),UHe={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]}};class Ub{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,r)}init(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=t||UHe,this.options=r,this.debug=r.debug}log(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"log","",!0)}warn(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"warn","",!0)}error(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"error","")}deprecate(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}forward(t,r,n,i){return i&&!this.debug?null:(rr(t[0])&&(t[0]=`${n}${this.prefix} ${t[0]}`),this.logger[r](t))}create(t){return new Ub(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Ub(this.logger,t)}}var Os=new Ub;class xR{constructor(){this.observers={}}on(t,r){return t.split(" ").forEach(n=>{this.observers[n]||(this.observers[n]=new Map);const i=this.observers[n].get(r)||0;this.observers[n].set(r,i+1)}),this}off(t,r){if(this.observers[t]){if(!r){delete this.observers[t];return}this.observers[t].delete(r)}}emit(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(a=>{let[s,l]=a;for(let c=0;c<l;c++)s(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(a=>{let[s,l]=a;for(let c=0;c<l;c++)s.apply(s,[t,...n])})}}class NW extends xR{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const r=this.options.ns.indexOf(t);r>-1&&this.options.ns.splice(r,1)}getResource(t,r,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,a=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let s;t.indexOf(".")>-1?s=t.split("."):(s=[t,r],n&&(Array.isArray(n)?s.push(...n):rr(n)&&o?s.push(...n.split(o)):s.push(n)));const l=Hb(this.data,s);return!l&&!r&&!n&&t.indexOf(".")>-1&&(t=s[0],r=s[1],n=s.slice(2).join(".")),l||!a||!rr(n)?l:J$(this.data&&this.data[t]&&this.data[t][r],n,o)}addResource(t,r,n,i){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const a=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let s=[t,r];n&&(s=s.concat(a?n.split(a):n)),t.indexOf(".")>-1&&(s=t.split("."),i=r,r=s[1]),this.addNamespaces(r),kW(this.data,s,i),o.silent||this.emit("added",t,r,n,i)}addResources(t,r,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const o in n)(rr(n[o])||Array.isArray(n[o]))&&this.addResource(t,r,o,n[o],{silent:!0});i.silent||this.emit("added",t,r,n)}addResourceBundle(t,r,n,i,o){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},s=[t,r];t.indexOf(".")>-1&&(s=t.split("."),i=n,n=r,r=s[1]),this.addNamespaces(r);let l=Hb(this.data,s)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),i?Hoe(l,n,o):l={...l,...n},kW(this.data,s,l),a.silent||this.emit("added",t,r,n)}removeResourceBundle(t,r){this.hasResourceBundle(t,r)&&delete this.data[t][r],this.removeNamespaces(r),this.emit("removed",t,r)}hasResourceBundle(t,r){return this.getResource(t,r)!==void 0}getResourceBundle(t,r){return r||(r=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,r)}:this.getResource(t,r)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const r=this.getDataByLanguage(t);return!!(r&&Object.keys(r)||[]).find(i=>r[i]&&Object.keys(r[i]).length>0)}toJSON(){return this.data}}var Voe={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,n,i){return e.forEach(o=>{this.processors[o]&&(t=this.processors[o].process(t,r,n,i))}),t}};const DW={};class Wb extends xR{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),kHe(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
473i18nFormat","utils"],t,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Os.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const n=this.resolve(t,r);return n&&n.res!==void 0}extractFromKey(t,r){let n=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;n===void 0&&(n=":");const i=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let o=r.ns||this.options.defaultNS||[];const a=n&&t.indexOf(n)>-1,s=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!VHe(t,n,i);if(a&&!s){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:rr(o)?[o]:o};const c=t.split(n);(n!==i||n===i&&this.options.ns.indexOf(c[0])>-1)&&(o=c.shift()),t=c.join(i)}return{key:t,namespaces:rr(o)?[o]:o}}translate(t,r,n){if(typeof r!="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),typeof r=="object"&&(r={...r}),r||(r={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const i=r.returnDetails!==void 0?r.returnDetails:this.options.returnDetails,o=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:a,namespaces:s}=this.extractFromKey(t[t.length-1],r),l=s[s.length-1],c=r.lng||this.language,d=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&c.toLowerCase()==="cimode"){if(d){const b=r.nsSeparator||this.options.nsSeparator;return i?{res:`${l}${b}${a}`,usedKey:a,exactUsedKey:a,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:`${l}${b}${a}`}return i?{res:a,usedKey:a,exactUsedKey:a,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:a}const u=this.resolve(t,r);let f=u&&u.res;const h=u&&u.usedKey||a,v=u&&u.exactUsedKey||a,y=Object.prototype.toString.apply(f),g=["[object Number]","[object Function]","[object RegExp]"],m=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,S=!this.i18nFormat||this.i18nFormat.handleAsObject,C=!rr(f)&&typeof f!="boolean"&&typeof f!="number";if(S&&f&&C&&g.indexOf(y)<0&&!(rr(m)&&Array.isArray(f))){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const b=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,f,{...r,ns:s}):`key '${a} (${this.language})' returned an object instead of string.`;return i?(u.res=b,u.usedParams=this.getUsedParamsDetails(r),u):b}if(o){const b=Array.isArray(f),w=b?[]:{},E=b?v:h;for(const _ in f)if(Object.prototype.hasOwnProperty.call(f,_)){const R=`${E}${o}${_}`;w[_]=this.translate(R,{...r,joinArrays:!1,ns:s}),w[_]===R&&(w[_]=f[_])}f=w}}else if(S&&rr(m)&&Array.isArray(f))f=f.join(m),f&&(f=this.extendTranslation(f,t,r,n));else{let b=!1,w=!1;const E=r.count!==void 0&&!rr(r.count),_=Wb.hasDefaultValue(r),R=E?this.pluralResolver.getSuffix(c,r.count,r):"",P=r.ordinal&&E?this.pluralResolver.getSuffix(c,r.count,{ordinal:!1}):"",I=E&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),O=I&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${R}`]||r[`defaultValue${P}`]||r.defaultValue;!this.isValidLookup(f)&&_&&(b=!0,f=O),this.isValidLookup(f)||(w=!0,f=a);const x=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&w?void 0:f,T=_&&O!==f&&this.options.updateMissing;if(w||b||T){if(this.logger.log(T?"updateKey":"missingKey",c,l,a,T?O:f),o){const N=this.resolve(a,{...r,keySeparator:!1});N&&N.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let D=[];const k=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&k&&k[0])for(let N=0;N<k.length;N++)D.push(k[N]);else this.options.saveMissingTo==="all"?D=this.languageUtils.toResolveHierarchy(r.lng||this.language):D.push(r.lng||this.language);const j=(N,L,M)=>{const $=_&&M!==f?M:x;this.options.missingKeyHandler?this.options.missingKeyHandler(N,l,L,$,T,r):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(N,l,L,$,T,r),this.emit
vendor: 12,014 bytes, line 473
473("missingKey",N,l,L,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&E?D.forEach(N=>{const L=this.pluralResolver.getSuffixes(N,r);I&&r[`defaultValue${this.options.pluralSeparator}zero`]&&L.indexOf(`${this.options.pluralSeparator}zero`)<0&&L.push(`${this.options.pluralSeparator}zero`),L.forEach(M=>{j([N],a+M,r[`defaultValue${M}`]||O)})}):j(D,a,O))}f=this.extendTranslation(f,t,r,u,n),w&&f===a&&this.options.appendNamespaceToMissingKey&&(f=`${l}:${a}`),(w||b)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${a}`:a,b?f:void 0):f=this.options.parseMissingKeyHandler(f))}return i?(u.res=f,u.usedParams=this.getUsedParamsDetails(r),u):f}extendTranslation(t,r,n,i,o){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const c=rr(t)&&(n&&n.interpolation&&n.interpolation.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(c){const f=t.match(this.interpolator.nestingRegexp);d=f&&f.length}let u=n.replace&&!rr(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(u={...this.options.interpolation.defaultVariables,...u}),t=this.interpolator.interpolate(t,u,n.lng||this.language||i.usedLng,n),c){const f=t.match(this.interpolator.nestingRegexp),h=f&&f.length;d<h&&(n.nest=!1)}!n.lng&&this.options.compatibilityAPI!=="v1"&&i&&i.res&&(n.lng=this.language||i.usedLng),n.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var f=arguments.length,h=new Array(f),v=0;v<f;v++)h[v]=arguments[v];return o&&o[0]===h[0]&&!n.context?(a.logger.warn(`It seems you are nesting recursively key: ${h[0]} in key: ${r[0]}`),null):a.translate(...h,r)},n)),n.interpolation&&this.interpolator.reset()}const s=n.postProcess||this.options.postProcess,l=rr(s)?[s]:s;return t!=null&&l&&l.length&&n.applyPostProcessor!==!1&&(t=Voe.handle(l,t,r,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),t}resolve(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,i,o,a,s;return rr(t)&&(t=[t]),t.forEach(l=>{if(this.isValidLookup(n))return;const c=this.extractFromKey(l,r),d=c.key;i=d;let u=c.namespaces;this.options.fallbackNS&&(u=u.concat(this.options.fallbackNS));const f=r.count!==void 0&&!rr(r.count),h=f&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),v=r.context!==void 0&&(rr(r.context)||typeof r.context=="number")&&r.context!=="",y=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);u.forEach(g=>{this.isValidLookup(n)||(s=g,!DW[`${y[0]}-${g}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(s)&&(DW[`${y[0]}-${g}`]=!0,this.logger.warn(`key "${i}" for languages "${y.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),y.forEach(m=>{if(this.isValidLookup(n))return;a=m;const S=[d];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(S,d,m,g,r);else{let b;f&&(b=this.pluralResolver.getSuffix(m,r.count,r));const w=`${this.options.pluralSeparator}zero`,E=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(f&&(S.push(d+b),r.ordinal&&b.indexOf(E)===0&&S.push(d+b.replace(E,this.options.pluralSeparator)),h&&S.push(d+w)),v){const _=`${d}${this.options.contextSeparator}${r.context}`;S.push(_),f&&(S.push(_+b),r.ordinal&&b.indexOf(E)===0&&S.push(_+b.replace(E,this.options.pluralSeparator)),h&&S.push(_+w))}}let C;for(;C=S.pop();)this.isValidLookup(n)||(o=C,n=this.getResource(m,g,C,r))}))})}),{res:n,usedKey:i,exactUsedKey:o,usedLng:a,usedNS:s}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,r,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,r,n,i):this.resourceStore.getResource(t,r,n,i)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=t.replace&&!rr(t.replace);let i=n?t.replace:t;if(n&&typeof t.count<"u"&&(i.count=t.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!n){i={...i};for(const o of r)delete i[o]}return i}static hasDefaultValue(t){const r="defaultValue";for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&r===n.substring(0,r.length)&&t[n]!==void 0)return!0;return!1}}const TT=e=>e.charAt(0).toUpperCase()+e.slice(1);class LW{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Os.create("languageUtils")}getScriptPartFromCode(t){if(t=Vb(t),!t||t.indexOf("-")<0)return null;const r=t.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}getLanguagePartFromCode(t){if(t=Vb(t),!t||t.indexOf("-")<0)return t;const r=t.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(t){if(rr(t)&&t.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let i=Intl.getCanonicalLocales(t)[0];if(i&&this.options.lowerCaseLng&&(i=i.toLowerCase()),i)return i}catch{}const r=["hans","hant","latn","cyrl","cans","mong","arab"];let n=t.split("-");return this.options.lowerCaseLng?n=n.map(i=>i.toLowerCase()):n.length===2?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=TT(n[1].toLowerCase()))):n.length===3&&(n[0]=n[0].toLowerCase(),n[1].length===2&&(n[1]=n[1].toUpperCase()),n[0]!=="sgn"&&n[2].length===2&&(n[2]=n[2].toUpperCase()),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=TT(n[1].toLowerCase())),r.indexOf(n[2].toLowerCase())>-1&&(n[2]=TT(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let r;return t.forEach(n=>{if(r)return;const i=this.formatLanguageCode(n);(!this.options.supportedLngs||this.isSupportedCode(i))&&(r=i)}),!r&&this.options.supportedLngs&&t.forEach(n=>{if(r)return;const i=this.getLanguagePartFromCode(n);if(this.isSupportedCode(i))return r=i;r=this.options.supportedLngs.find(o=>{if(o===i)return o;if(!(o.indexOf("-")<0&&i.indexOf("-")<0)&&(o.indexOf("-")>0&&i.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===i||o.indexOf(i)===0&&i.length>1))return o})}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(t,r){if(!t)return[];if(typeof t=="function"&&(t=t(r)),rr(t)&&(t=[t]),Array.isArray(t))return t;if(!r)return t.default||[];let n=t[r];return n||(n=t[this.getScriptPartFromCode(r)]),n||(n=t[this.formatLanguageCode(r)]),n||(n=t[this.getLanguagePartFromCode(r)]),n||(n=t.default),n||[]}toResolveHierarchy(t,r){const n=this.getFallbackCodes(r||this.options.fallbackLng||[],t),i=[],o=a=>{a&&(this.isSupportedCode(a)?i.push(a):this.logger.warn(`rejecting language code not found in supportedLngs: ${a}`))};return rr(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(t))):rr(t)&&o(this.formatLanguageCode(t)),n.forEach(a=>{i.indexOf(a)<0&&o(this.formatLanguageCode(a))}),i}}let WHe=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],qHe={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3};const GHe=["v1","v2","v3"],KHe=["v4"],jW={zero:0,one:1,two:2,few:3,many:4,other:5},YHe=()=>{const e={};return WHe.forEach(t=>{t.lngs.forEach(r=>{e[r]={numbers:t.nr,plurals:qHe[t.fc]}})}),e};class XHe{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=r,this.logger=Os.create("pluralResolver"),(!this.options.compatibilityJSON||KHe.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=YHe(),this.pluralRulesCache={}}addRule(t,r){this.rules[t]=r}clearCache(){this.pluralRulesCache={}}getRule(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){const n=Vb(t==="dev"?"en":t),i=r.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:n,type:i});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];let a;try{a=new Intl.PluralRules(n,{type:i})}catch{if(!t.match(/-|_/))return;const l=this.languageUtils.getLanguagePartFromCode(t);a=this.getRule(l,r)}return this.pluralRulesCache[o]=a,a}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=this.getRule(t,r);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};
vendor: 1,299 bytes, line 473
473return this.getSuffixes(t,n).map(i=>`${r}${i}`)}getSuffixes(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=this.getRule(t,r);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((i,o)=>jW[i]-jW[o]).map(i=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i}`):n.numbers.map(i=>this.getSuffix(t,i,r)):[]}getSuffix(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=this.getRule(t,n);return i?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i.select(r)}`:this.getSuffixRetroCompatible(i,r):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,r){const n=t.noAbs?t.plurals(r):t.plurals(Math.abs(r));let i=t.numbers[n];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(i===2?i="plural":i===1&&(i=""));const o=()=>this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString();return this.options.compatibilityJSON==="v1"?i===1?"":typeof i=="number"?`_plural_${i.toString()}`:o():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?o():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}
vendor: 4,300 bytes, line 473
473shouldUseIntlApi(){return!GHe.includes(this.options.compatibilityJSON)}}const FW=function(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=LHe(e,t,r);return!o&&i&&rr(r)&&(o=J$(e,r,n),o===void 0&&(o=J$(t,r,n))),o},AT=e=>e.replace(/\$/g,"$$$$");class QHe{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Os.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(r=>r),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:r,escapeValue:n,useRawValueToEscape:i,prefix:o,prefixEscaped:a,suffix:s,suffixEscaped:l,formatSeparator:c,unescapeSuffix:d,unescapePrefix:u,nestingPrefix:f,nestingPrefixEscaped:h,nestingSuffix:v,nestingSuffixEscaped:y,nestingOptionsSeparator:g,maxReplaces:m,alwaysFormat:S}=t.interpolation;this.escape=r!==void 0?r:FHe,this.escapeValue=n!==void 0?n:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=o?hf(o):a||"{{",this.suffix=s?hf(s):l||"}}",this.formatSeparator=c||",",this.unescapePrefix=d?"":u||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=f?hf(f):h||hf("$t("),this.nestingSuffix=v?hf(v):y||hf(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=m||1e3,this.alwaysFormat=S!==void 0?S:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(r,n)=>r&&r.source===n?(r.lastIndex=0,r):new RegExp(n,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,r,n,i){let o,a,s;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=h=>{if(h.indexOf(this.formatSeparator)<0){const m=FW(r,l,h,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(m,void 0,n,{...i,...r,interpolationkey:h}):m}const v=h.split(this.formatSeparator),y=v.shift().trim(),g=v.join(this.formatSeparator).trim();return this.format(FW(r,l,y,this.options.keySeparator,this.options.ignoreJSONStructure),g,n,{...i,...r,interpolationkey:y})};this.resetRegExp();const d=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,u=i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:h=>AT(h)},{regex:this.regexp,safeValue:h=>this.escapeValue?AT(this.escape(h)):AT(h)}].forEach(h=>{for(s=0;o=h.regex.exec(t);){const v=o[1].trim();if(a=c(v),a===void 0)if(typeof d=="function"){const g=d(t,o,i);a=rr(g)?g:""}else if(i&&Object.prototype.hasOwnProperty.call(i,v))a="";else if(u){a=o[0];continue}else this.logger.warn(`missed to pass in variable ${v} for interpolating ${t}`),a="";else!rr(a)&&!this.useRawValueToEscape&&(a=AW(a));const y=h.safeValue(a);if(t=t.replace(o[0],y),u?(h.regex.lastIndex+=a.length,h.regex.lastIndex-=o[0].length):h.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),t}nest(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,o,a;const s=(l,c)=>{const d=this.nestingOptionsSeparator;if(l.indexOf(d)<0)return l;const u=l.split(new RegExp(`${d}[ ]*{`));let f=`{${u[1]}`;l=u[0],f=this.interpolate(f,a);const h=f.match(/'/g),v=f.match(/"/g);(h&&h.length%2===0&&!v||v.length%2!==0)&&(f=f.replace(/'/g,'"'));try{a=JSON.parse(f),c&&(a={...c,...a})}catch(y){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,y),`${l}${d}${f}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,l};for(;i=this.nestingRegexp.exec(t);){let l=[];a={...n},a=a.replace&&!rr(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=!1;if(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){const d=i[1].split(this.formatSeparator).map(u=>u.trim());i[1]=d.shift(),l=d,c=!0}if(o=r(s.call(this,i[1].trim(),a),a),o&&i[0]===t&&!rr(o))return o;rr(o)||(o=AW(o)),o||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}
473`),o=""),c&&(o=l.reduce((d,u)=>this.format(d,u,n.lng,{...n,interpolationkey:i[1].trim()}),o.trim())),t=t.replace(i[0],o),this.regexp.lastIndex=0}return t}}const JHe=e=>{let t=e.toLowerCase().trim();const r={};if(e.indexOf("(")>-1){const n=e.split("(");t=n[0].toLowerCase().trim();const i=n[1].substring(0,n[1].length-1);t==="currency"&&i.indexOf(":")<0?r.currency||(r.currency=i.trim()):t==="relativetime"&&i.indexOf(":")<0?r.range||(r.range=i.trim()):i.split(";").forEach(a=>{if(a){const[s,...l]=a.split(":"),c=l.join(":").trim().replace(/^'+|'+$/g,""),d=s.trim();r[d]||(r[d]=c),c==="false"&&(r[d]=!1),c==="true"&&(r[d]=!0),isNaN(c)||(r[d]=parseInt(c,10))}})}return{formatName:t,formatOptions:r}},vf=e=>{const t={};return(r,n,i)=>{let o=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(o={...o,[i.interpolationkey]:void 0});const a=n+JSON.stringify(o);let s=t[a];return s||(s=e(Vb(n),i),t[a]=s),s(r)}};class ZHe{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Os.create("formatter"),this.options=t,this.formats={number:vf((r,n)=>{const i=new Intl.NumberFormat(r,{...n});return o=>i.format(o)}),currency:vf((r,n)=>{const i=new Intl.NumberFormat(r,{...n,style:"currency"});return o=>i.format(o)}),datetime:vf((r,n)=>{const i=new Intl.DateTimeFormat(r,{...n});return o=>i.format(o)}),relativetime:vf((r,n)=>{const i=new Intl.RelativeTimeFormat(r,{...n});return o=>i.format(o,n.range||"day")}),list:vf((r,n)=>{const i=new Intl.ListFormat(r,{...n});return o=>i.format(o)})},this.init(t)}init(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=r.interpolation.formatSeparator||","}add(t,r){this.formats[t.toLowerCase().trim()]=r}addCached(t,r){this.formats[t.toLowerCase().trim()]=vf(r)}format(t,r,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=r.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(s=>s.indexOf(")")>-1)){const s=o.findIndex(l=>l.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,s)].join(this.formatSeparator)}return o.reduce((s,l)=>{const{formatName:c,formatOptions:d}=JHe(l);if(this.formats[c]){let u=s;try{const f=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},h=f.locale||f.lng||i.locale||i.lng||n;u=this.formats[c](s,h,{...d,...i,...f})}catch(f){this.logger.warn(f)}return u}else this.logger.warn(`there was no format function for ${c}`);return s},t)}}const eVe=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class tVe extends xR{constructor(t,r,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=r,this.services=n,this.languageUtils=n.languageUtils,this.options=i,this.logger=Os.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,i.backend,i)}queueLoad(t,r,n,i){const o={},a={},s={},l={};return t.forEach(c=>{let d=!0;r.forEach(u=>{const f=`${c}|${u}`;!n.reload&&this.store.hasResourceBundle(c,u)?this.state[f]=2:this.state[f]<0||(this.state[f]===1?a[f]===void 0&&(a[f]=!0):(this.state[f]=1,d=!1,a[f]===void 0&&(a[f]=!0),o[f]===void 0&&(o[f]=!0),l[u]===void 0&&(l[u]=!0)))}),d||(s[c]=!0)}),(Object.keys(o).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(o),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(l)}}loaded(t,r,n){const i=t.split("|"),o=i[0],a=i[1];r&&this.emit("failedLoading",o,a,r),!r&&n&&this.store.addResourceBundle(o,a,n,void 0,void 0,{skipCopy:!0}),this.state[t]=r?-1:2,r&&n&&(this.state[t]=0);const s={};this.queue.forEach(l=>{DHe(l.loaded,[o],a),eVe(l,t),r&&l.errors.push(r),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(c=>{s[c]||(s[c]={});const d=l.loaded[c];d.length&&d.forEach(u=>{s[c][u]===void 0&&(s[c][u]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}
vendor: 15,497 bytes, line 473
473),this.emit("loaded",s),this.queue=this.queue.filter(l=>!l.done)}read(t,r,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!t.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:r,fcName:n,tried:i,wait:o,callback:a});return}this.readingCalls++;const s=(c,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const u=this.waitingReads.shift();this.read(u.lng,u.ns,u.fcName,u.tried,u.wait,u.callback)}if(c&&d&&i<this.maxRetries){setTimeout(()=>{this.read.call(this,t,r,n,i+1,o*2,a)},o);return}a(c,d)},l=this.backend[n].bind(this.backend);if(l.length===2){try{const c=l(t,r);c&&typeof c.then=="function"?c.then(d=>s(null,d)).catch(s):s(null,c)}catch(c){s(c)}return}return l(t,r,s)}prepareLoading(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();rr(t)&&(t=this.languageUtils.toResolveHierarchy(t)),rr(r)&&(r=[r]);const o=this.queueLoad(t,r,n,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach(a=>{this.loadOne(a)})}load(t,r,n){this.prepareLoading(t,r,{},n)}reload(t,r,n){this.prepareLoading(t,r,{reload:!0},n)}loadOne(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const n=t.split("|"),i=n[0],o=n[1];this.read(i,o,"read",void 0,void 0,(a,s)=>{a&&this.logger.warn(`${r}loading namespace ${o} for language ${i} failed`,a),!a&&s&&this.logger.log(`${r}loaded namespace ${o} for language ${i}`,s),this.loaded(t,a,s)})}saveMissing(t,r,n,i,o){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(r)){this.logger.warn(`did not save key "${n}" as the namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(n==null||n==="")){if(this.backend&&this.backend.create){const l={...a,isUpdate:o},c=this.backend.create.bind(this.backend);if(c.length<6)try{let d;c.length===5?d=c(t,r,n,i,l):d=c(t,r,n,i),d&&typeof d.then=="function"?d.then(u=>s(null,u)).catch(s):s(null,d)}catch(d){s(d)}else c(t,r,n,i,s,l)}!t||!t[0]||this.store.addResource(t[0],r,n,i)}}}const zW=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),rr(e[1])&&(t.defaultValue=e[1]),rr(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const r=e[3]||e[2];Object.keys(r).forEach(n=>{t[n]=r[n]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),BW=e=>(rr(e.ns)&&(e.ns=[e.ns]),rr(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),rr(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),h1=()=>{},rVe=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(r=>{typeof e[r]=="function"&&(e[r]=e[r].bind(e))})};class _y extends xR{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(super(),this.options=BW(t),this.services={},this.logger=Os,this.modules={external:[]},rVe(this),r&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,r),this;setTimeout(()=>{this.init(t,r)},0)}}init(){var t=this;let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof r=="function"&&(n=r,r={}),!r.defaultNS&&r.defaultNS!==!1&&r.ns&&(rr(r.ns)?r.defaultNS=r.ns:r.ns.indexOf("translation")<0&&(r.defaultNS=r.ns[0]));const i=zW();this.options={...i,...this.options,...BW(r)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...i.interpolation,...this.options.interpolation}),r.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=r.keySeparator),r.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=r.nsSeparator);const o=d=>d?typeof d=="function"?new d:d:null;if(!this.options.isClone){this.modules.logger?Os.init(o(this.modules.logger),this.options):Os.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:typeof Intl<"u"&&(d=ZHe);const u=new LW(this.options);this.store=new NW(this.options.resources,this.options);const f=this.services;f.logger=Os,f.resourceStore=this.store,f.languageUtils=u,f.pluralResolver=new XHe(u,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(f.formatter=o(d),f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new QHe(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new tVe(o(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",function(h){for(var v=arguments.length,y=new Array(v>1?v-1:0),g=1;g<v;g++)y[g-1]=arguments[g];t.emit(h,...y)}),this.modules.languageDetector&&(f.languageDetector=o(this.modules.languageDetector),f.languageDetector.init&&f.languageDetector.init(f,this.options.detection,this.options)),this.modules.i18nFormat&&(f.i18nFormat=o(this.modules.i18nFormat),f.i18nFormat.init&&f.i18nFormat.init(this)),this.translator=new Wb(this.services,this.options),this.translator.on("*",function(h){for(var v=arguments.length,y=new Array(v>1?v-1:0),g=1;g<v;g++)y[g-1]=arguments[g];t.emit(h,...y)}),this.modules.external.forEach(h=>{h.init&&h.init(this)})}if(this.format=this.options.interpolation.format,n||(n=h1),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(d=>{this[d]=function(){return t.store[d](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=function(){return t.store[d](...arguments),t}});const l=Dg(),c=()=>{const d=(u,f)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(f),n(u,f)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),l}loadResources(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h1;const i=rr(t)?t:this.language;if(typeof t=="function"&&(n=t),!this.options.resources||this.options.partialBundledLanguages){if(i&&i.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();const o=[],a=s=>{if(!s||s==="cimode")return;this.services.languageUtils.toResolveHierarchy(s).forEach(c=>{c!=="cimode"&&o.indexOf(c)<0&&o.push(c)})};i?a(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>a(l)),this.options.preload&&this.options.preload.forEach(s=>a(s)),this.services.backendConnector.load(o,this.options.ns,s=>{!s&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(s)})}else n(null)}reloadResources(t,r,n){const i=Dg();return typeof t=="function"&&(n=t,t=void 0),typeof r=="function"&&(n=r,r=void 0),t||(t=this.languages),r||(r=this.options.ns),n||(n=h1),this.services.backendConnector.reload(t,r,o=>{i.resolve(),n(o)}),i}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&Voe.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let r=0;r<this.languages.length;r++){const n=this.languages[r];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}changeLanguage(t,r){var n=this;this.isLanguageChangingTo=t;const i=Dg();this.emit("languageChanging",t);const o=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},a=(l,c)=>{c?(o(c),this.translator.changeLanguage(c),this.isLanguageChangingTo=void 0,this.emit("languageChanged",c),this.logger.log("languageChanged",c)):this.isLanguageChangingTo=void 0,i.resolve(function(){return n.t(...arguments)}),r&&r(l,function(){return n.t(...arguments)})},s=l=>{!t&&!l&&this.services.languageDetector&&(l=[]);const c=rr(l)?l:this.services.languageUtils.getBestMatchFromCodes(l);c&&(this.language||o(c),this.translator.language||this.translator.changeLanguage(c),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(c)),this.loadResources(c,d=>{a(d,c)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(t),i}getFixedT(t,r,n){var i=this;const o=function(a,s){let l;if(typeof s!="object"){for(var c=arguments.length,d=new Array(c>2?c-2:0),u=2;u<c;u++)d[u-2]=arguments[u];l=i.options.overloadTranslationOptionHandler([a,s].concat(d))}else l={...s};l.lng=l.lng||o.lng,l.lngs=l.lngs||o.lngs,l.ns=l.ns||o.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||n||o.keyPrefix);const f=i.options.keySeparator||".";let h;return l.keyPrefix&&Array.isArray(a)?h=a.map(v=>`${l.keyPrefix}${f}${v}`):h=l.keyPrefix?`${l.keyPrefix}${f}${a}`:a,i.t(h,l)};return rr(t)?o.lng=t:o.lngs=t,o.ns=r,o.keyPrefix=n,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=r.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const a=(s,l)=>{const c=this.services.backendConnector.state[`${s}|${l}`];return c===-1||c===0||c===2};if(r.precheck){const s=r.precheck(this,a);if(s!==void 0)return s}return!!(this.hasResourceBundle(n,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,t)&&(!i||a(o,t)))}loadNamespaces(t,r){const n=Dg();return this.options.ns?(rr(t)&&(t=[t]),t.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{n.resolve(),r&&r(i)}),n):(r&&r(),Promise.resolve())}loadLanguages(t,r){const n=Dg();rr(t)&&(t=[t]);const i=this.options.preload||[],o=t.filter(a=>i.indexOf(a)<0&&this.services.languageUtils.isSupportedCode(a));return o.length?(this.options.preload=i.concat(o),this.loadResources(a=>{n.resolve(),r&&r(a)}),n):(r&&r(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const r=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],n=this.services&&this.services.languageUtils||new LW(zW());return r.indexOf(n.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new _y(t,r)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h1;const n=t.forkResourceStore;n&&delete t.forkResourceStore;const i={...this.options,...t,isClone:!0},o=new _y(i);return(t.debug!==void 0||t.prefix!==void 0)&&(o.logger=o.logger.clone(t)),["store","services","language"].forEach(s=>{o[s]=this[s]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},n&&(o.store=new NW(this.store.data,i),o.services.resourceStore=o.store),o.translator=new Wb(o.services,i),o.translator.on("*",function(s){for(var l=arguments.length,c=new Array(l>1?l-1:0),d=1;d<l;d++)c[d-1]=arguments[d];o.emit(s,...c)}),o.init(i,r),o.translator.options=i,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const li=_y.createInstance();li.createInstance=_y.createInstance;li.createInstance;li.dir;li.init;li.loadResources;li.reloadResources;li.use;li.changeLanguage;li.getFixedT;const he=li.t;li.exists;li.setDefaultNamespace;li.hasLoadedNamespace;li.loadNamespaces;li.loadLanguages;var Uoe={exports:{}};(function(e,t){(function(n,i){e.exports=i()})(Ht,function(){return function(){var r={
473"./packages/@logrocket/console/src/index.js":function(a,s,l){var c=l("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;var d=c(l("./packages/@logrocket/console/src/registerConsole.js")),u=d.default;s.default=u},
473"./packages/@logrocket/console/src/registerConsole.js":function(a,s,l){var c=l("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(s,"__esModule",{value:!0}),s.default=h;var d=c(l("./node_modules/@babel/runtime/helpers/typeof.js")),u=c(l("./packages/@logrocket/utils/src/enhanceFunc.js")),f=l("./packages/@logrocket/exceptions/src/index.js");function h(v){var y=[],g=["log","warn","info","error","debug"];return g.forEach(function(m){y.push((0,u.default)(console,m,function(){for(var S=arguments.length,C=new Array(S),b=0;b<S;b++)C[b]=arguments[b];v.addEvent("lr.core.LogEvent",function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},E=w.isEnabled;return(0,d.default)(E)==="object"&&E[m]===!1||E===!1?null:(m==="error"&&w.shouldAggregateConsoleErrors&&f.Capture.captureMessage(v,C[0],C,{},!0),{logLevel:m.toUpperCase(),args:C})})}))}),function(){y.forEach(function(m){return m()})}}},
473"./packages/@logrocket/exceptions/src/Capture.js":function(a,s,l){var c=l("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(s,"__esModule",{value:!0}),s.captureMessage=y,s.captureException=g;var d=c(l("./node_modules/@babel/runtime/helpers/typeof.js")),u=c(l("./packages/@logrocket/utils/src/TraceKit.js")),f=c(l("./packages/@logrocket/exceptions/src/stackTraceFromError.js"));function h(m){return/boolean|number|string/.test((0,d.default)(m))}function v(m,S){if(S){for(var C=["level","logger"],b=0,w=C;b<w.length;b++){var E=w[b],_=S[E];h(_)&&(m[E]=_.toString())}for(var R=["tags","extra"],P=0,I=R;P<I.length;P++){for(var O=I[P],A=S[O]||{},x={},T=0,D=Object.keys(A);T<D.length;T++){var k=D[T],j=A[k];h(j)&&(x[k.toString()]=j.toString())}m[O]=x}}}function y(m,S,C){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},w=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,E={exceptionType:w?"CONSOLE":"MESSAGE",message:S,messageArgs:C,browserHref:window.location?window.location.href:""};v(E,b),m.addEvent("lr.core.Exception",function(){return E})}function g(m,S){var C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,w=b||u.default.computeStackTrace(S),E={exceptionType:"WINDOW",errorType:w.name,message:w.message,browserHref:window.location?window.location.href:""};v(E,C);var _={_stackTrace:(0,f.default)(w)};m.addEvent("lr.core.Exception",function(){return E},_)}},
vendor: 1,069 bytes, line 473
473"./packages/@logrocket/exceptions/src/index.js":function(a,s,l){var c=l("./node_modules/@babel/runtime/helpers/interopRequireDefault.js"),d=l("./node_modules/@babel/runtime/helpers/typeof.js");Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(s,"registerExceptions",{enumerable:!0,get:function(){return u.default}}),s.Capture=void 0;var u=c(l("./packages/@logrocket/exceptions/src/registerExceptions.js")),f=v(l("./packages/@logrocket/exceptions/src/Capture.js"));s.Capture=f;function h(y){if(typeof WeakMap!="function")return null;var g=new WeakMap,m=new WeakMap;return(h=function(C){return C?m:g})(y)}function v(y,g){if(!g&&y&&y.__esModule)return y;if(y===null||d(y)!=="object"&&typeof y!="function")return{default:y};var m=h(g);if(m&&m.has(y))return m.get(y);var S={},C=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var b in y)if(b!=="default"&&Object.prototype.hasOwnProperty.call(y,b)){var w=C?Object.getOwnPropertyDescriptor(y,b):null;w&&(w.get||w.set)?Object.defineProperty(S,b,w):S[b]=y[b]}return S.default=y,m&&m.set(y,S),S}},
473"./packages/@logrocket/exceptions/src/raven/raven.js":function(a,s,l){var c=l("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;var d=c(l("./node_modules/@babel/runtime/helpers/classCallCheck.js")),u=c(l("./node_modules/@babel/runtime/helpers/createClass.js")),f=c(l("./packages/@logrocket/utils/src/TraceKit.js")),h=Object.prototype;function v(b){return b===void 0}function y(b){return typeof b=="function"}function g(b,w){return h.hasOwnProperty.call(b,w)}function m(b,w,E,_){var R=b[w];b[w]=E(R),_&&_.push([b,w,R])}var S=typeof window<"u"?window:typeof l.g<"u"?l.g:typeof self<"u"?self:{};S.document;var C=function(){function b(w){var E=w.captureException;(0,d.default)(this,b),this._errorHandler=this._errorHandler.bind(this),this._ignoreOnError=0,this._wrappedBuiltIns=[],this.captureException=E,f.default.report.subscribe(this._errorHandler),this._instrumentTryCatch()}return(0,u.default)(b,[{key:"uninstall",value:function(){f.default.report.unsubscribe(this._errorHandler);for(var E;this._wrappedBuiltIns.length;){E=this._wrappedBuiltIns.shift();var _=E[0],R=E[1],P=E[2];_[R]=P}}},{key:"_errorHandler",value:function(E){this._ignoreOnError||this.captureException(E)}},{key:"_ignoreNextOnError",value:function(){var E=this;this._ignoreOnError+=1,setTimeout(function(){E._ignoreOnError-=1})}},{key:"context",value:function(E,_,R){return y(E)&&(R=_||[],_=E,E=void 0),this.wrap(E,_).apply(this,R)}},{key:"wrap",value:function(E,_,R){var P=this;if(v(_)&&!y(E))return E;if(y(E)&&(_=E,E=void 0),!y(_))return _;try{if(_.__lr__)return _;if(_.__lr_wrapper__)return _.__lr_wrapper__;if(!Object.isExtensible(_))return _}catch{return _}function I(){var A=[],x=arguments.length,T=!E||E&&E.deep!==!1;for(R&&y(R)&&R.apply(this,arguments);x--;)A[x]=T?P.wrap(E,arguments[x]):arguments[x];try{return _.apply(this,A)}catch(D){throw P._ignoreNextOnError(),P.captureException(f.default.computeStackTrace(D),E),D}}for(var O in _)g(_,O)&&(I[O]=_[O]);return I.prototype=_.prototype,_.__lr_wrapper__=I,I.__lr__=!0,I.__inner__=_,I}},{key:"_instrumentTryCatch",value:function(){var E=this,_=E._wrappedBuiltIns;function R(x){return function(T,D){for(var k=new Array(arguments.length),j=0;j<k.length;++j)k[j]=arguments[j];var N=k[0];return y(N)&&(k[0]=E.wrap(N)),x.apply?x.apply(this,k):x(k[0],k[1])}}function P(x){var T=S[x]&&S[x].prototype;T&&T.hasOwnProperty&&T.hasOwnProperty("addEventListener")&&(m(T,"addEventListener",function(D){return function(k,j,N,L){try{j&&j.handleEvent&&(j.handleEvent=E.wrap(j.handleEvent))}catch{}var M;return D.call(this,k,E.wrap(j,void 0,M),N,L)}},_),m(T,"removeEventListener",function(D){return function(k,j,N,L){try{j=j&&(j.__lr_wrapper__?j.__lr_wrapper__:j)}catch{}return D.call(this,k,j,N,L)}},_))}m(S,"setTimeout",R,_),m(S,"setInterval",R,_),S.requestAnimationFrame&&m(S,"requestAnimationFrame",function(x){return function(T){return x(E.wrap(T))}},_);for(var I=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],O=0;O<I.length;O++)P(I[O]);var A=S.jQuery||S.$;A&&A.fn&&A.fn.ready&&m(A.fn,"ready",function(x){return function(T){return x.call(this,E.wrap(T))}},_)}}]),b}();s.default=C},
473"./packages/@logrocket/exceptions/src/registerExceptions.js":function(a,s,l){var c=l("./node_modules/@babel/runtime/helpers/interopRequireDefault.js"),d=l("./node_modules/@babel/runtime/helpers/typeof.js");Object.defineProperty(s,"__esModule",{value:!0}),s.default=y;var u=c(l("./packages/@logrocket/exceptions/src/raven/raven.js")),f=v(l("./packages/@logrocket/exceptions/src/Capture.js"));function h(g){if(typeof WeakMap!="function")return null;var m=new WeakMap,S=new WeakMap;return(h=function(b){return b?S:m})(g)}function v(g,m){if(!m&&g&&g.__esModule)return g;if(g===null||d(g)!=="object"&&typeof g!="function")return{default:g};var S=h(m);if(S&&S.has(g))return S.get(g);var C={},b=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var w in g)if(w!=="default"&&Object.prototype.hasOwnProperty.call(g,w)){var E=b?Object.getOwnPropertyDescriptor(g,w):null;E&&(E.get||E.set)?Object.defineProperty(C,w,E):C[w]=g[w]}return C.default=g,S&&S.set(g,C),C}function y(g){var m=new u.default({captureException:function(b){f.captureException(g,null,null,b)}}),S=function(b){g.addEvent("lr.core.Exception",function(){return{exceptionType:"UNHANDLED_REJECTION",message:b.reason||"Unhandled Promise rejection"}})};return window.addEventListener("unhandledrejection",S),function(){window.removeEventListener("unhandledrejection",S),m.uninstall()}}},
473"./packages/@logrocket/exceptions/src/stackTraceFromError.js":function(a,s){Object.defineProperty(s,"__esModule",{value:!0}),s.default=l;function l(c){function d(u){return u===null?void 0:u}return c.stack?c.stack.map(function(u){return{lineNumber:d(u.line),columnNumber:d(u.column),fileName:d(u.url),functionName:d(u.func)}}):void 0}},
473"./packages/@logrocket/network/src/fetchIntercept.js":function(a,s,l){var c=l("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;var d=c(l("./node_modules/@babel/runtime/helpers/toConsumableArray.js")),u=l("./packages/@logrocket/network/src/registerXHR.js"),f=[];function h(m,S){for(var C=f.reduce(function(R,P){return[P].concat(R)},[]),b=arguments.length,w=new Array(b>2?b-2:0),E=2;E<b;E++)w[E-2]=arguments[E];var _=Promise.resolve(w);return C.forEach(function(R){var P=R.request,I=R.requestError;(P||I)&&(_=_.then(function(O){return P.apply(void 0,[S].concat((0,d.default)(O)))},function(O){return I.apply(void 0,[S].concat((0,d.default)(O)))}))}),_=_.then(function(R){(0,u.setActive)(!1);var P,I;try{P=m.apply(void 0,(0,d.default)(R))}catch(O){I=O}if((0,u.setActive)(!0),I)throw I;return P}),C.forEach(function(R){var P=R.response,I=R.responseError;(P||I)&&(_=_.then(function(O){return P(S,O)},function(O){return I&&I(S,O)}))}),_}function v(m){if(!(!m.fetch||!m.Promise)){var S=m.fetch.polyfill;m.fetch=function(C){var b=0;return function(){for(var w=arguments.length,E=new Array(w),_=0;_<w;_++)E[_]=arguments[_];return h.apply(void 0,[C,b++].concat(E))}}(m.fetch),S&&(m.fetch.polyfill=S)}}var y=!1,g={register:function(S){return y||(y=!0,v(window)),f.push(S),function(){var C=f.indexOf(S);C>=0&&f.splice(C,1)}},clear:function(){f=[]}};s.default=g},
473"./packages/@logrocket/network/src/index.js":function(a,s,l){var c=l("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(s,"__esModule",{value:!0}),s.default=C;var d=c(l("./node_modules/@babel/runtime/helpers/defineProperty.js")),u=c(l("./node_modules/@babel/runtime/helpers/typeof.js")),f=c(l("./packages/@logrocket/network/src/registerFetch.js")),h=l("./packages/@logrocket/network/src/registerIonic.ts"),v=c(l("./packages/@logrocket/network/src/registerNetworkInformation.js")),y=c(l("./packages/@logrocket/network/src/registerXHR.js")),g=c(l("./packages/@logrocket/utils/src/mapValues.js"));function m(b,w){var E=Object.keys(b);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(b);w&&(_=_.filter(function(R){return Object.getOwnPropertyDescriptor(b,R).enumerable})),E.push.apply(E,_)}return E}function S(b){for(var w=1;w<arguments.length;w++){var E=arguments[w]!=null?arguments[w]:{};w%2?m(Object(E),!0).forEach(function(_){(0,d.default)(b,_,E[_])}):Object.getOwnPropertyDescriptors?Object.defineProperties(b,Object.getOwnPropertyDescriptors(E)):m(Object(E)).forEach(function(_){Object.defineProperty(b,_,Object.getOwnPropertyDescriptor(E,_))})}return b}function C(b){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{isReactNative:!1},E=w.isReactNative,_=w.shouldAugmentNPS,R=w.shouldParseXHRBlob,P={},I=function(L){var M=4096e3,$=L;if((0,u.default)(L)==="object"&&L!=null){var F=Object.getPrototypeOf(L);(F===Object.prototype||F===null)&&($=JSON.stringify(L))}if($&&$.length&&$.length>M&&typeof $=="string"){var z=$.substring(0,1e3);return"".concat(z,` ... LogRocket truncating to first 1000 characters.
474      Keep data under 4MB to prevent truncation. https://docs.logrocket.com/reference/network`)}return L},O=function(L,M){var $=M.method;b.addEvent("lr.network.RequestEvent",function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},z=F.isEnabled,H=z===void 0?!0:z,U=F.requestSanitizer,V=U===void 0?function(q){return q}:U;if(!H)return null;var W=null;try{W=V(S(S({},M),{},{reqId:L}))}catch{}if(W){var K=W.url;if(typeof document<"u"&&typeof document.createElement=="function"){var Z=document.createElement("a");Z.href=W.url,K=Z.href}return{reqId:L,url:K,headers:(0,g.default)(W.headers,function(q){return"".concat(q)}),body:I(W.body),method:$,referrer:W.referrer||void 0,mode:W.mode||void 0,credentials:W.credentials||void 0}}return P[L]=!0,null})},A=function(L,M){var $=M.method,F=M.status;b.addEvent("lr.network.ResponseEvent",function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},H=z.isEnabled,U=H===void 0?!0:H,V=z.responseSanitizer,W=V===void 0?function(Z){return Z}:V;if(U){if(P[L])return delete P[L],null}else return null;var K=null;try{K=W(S(S({},M),{},{reqId:L}))}catch{}return K?{reqId:L,status:K.status,headers:(0,g.default)(K.headers,function(Z){return"".concat(Z)}),body:I(K.body),method:$}:{reqId:L,status:F,headers:{},body:null,method:$}})},x=function(L){return b.isDisabled||P[L]===!0},T=(0,f.default)({addRequest:O,addResponse:A,isIgnored:x}),D=(0,y.default)({addRequest:O,addResponse:A,isIgnored:x,logger:b,shouldAugmentNPS:_,shouldParseXHRBlob:R}),k=(0,h.registerIonic)({addRequest:O,addResponse:A,isIgnored:x}),j=E?function(){}:(0,v.default)(b);return function(){j(),T(),D(),k()}}},
474"./packages/@logrocket/network/src/registerFetch.js":function(a,s,l){var c=l("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(s,"__esModule",{value:!0}),s.default=S;var d=c(l("./node_modules/@babel/runtime/helpers/defineProperty.js")),u=c(l("./packages/@logrocket/utils/src/mapValues.js")),f=c(l("./packages/@logrocket/network/src/fetchIntercept.js"));function h(C,b){var w=Object.keys(C);if(Object.getOwnPropertySymbols){var E=Object.getOwnPropertySymbols(C);b&&(E=E.filter(function(_){return Object.getOwnPropertyDescriptor(C,_).enumerable})),w.push.apply(w,E)}return w}function v(C){for(var b=1;b<arguments.length;b++){var w=arguments[b]!=null?arguments[b]:{};b%2?h(Object(w),!0).forEach(function(E){(0,d.default)(C,E,w[E])}):Object.getOwnPropertyDescriptors?Object.defineProperties(C,Object.getOwnPropertyDescriptors(w)):h(Object(w)).forEach(function(E){Object.defineProperty(C,E,Object.getOwnPropertyDescriptor(w,E))})}return C}function y(C){if(C==null||typeof C.forEach!="function")return C;var b={};
474return C.forEach(function(w,E){b[E]?b[E]="".concat(b[E],",").concat(w):b[E]="".concat(w)}),b}var g=function(b){return(0,u.default)(y(b),function(w){return"".concat(w)})};function m(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return{url:C.url,headers:g(C.headers),method:C.method&&C.method.toUpperCase(),referrer:C.referrer||void 0,mode:C.mode||void 0,credentials:C.credentials||void 0}}function S(C){var b=C.addRequest,w=C.addResponse,E=C.isIgnored,_="fetch-",R={},P=f.default.register({request:function(O){for(var A=arguments.length,x=new Array(A>1?A-1:0),T=1;T<A;T++)x[T-1]=arguments[T];var D;if(typeof Request<"u"&&x[0]instanceof Request){var k;try{k=x[0].clone().text()}catch(j){k=Promise.resolve("LogRocket fetch error: ".concat(j.message))}D=k.then(function(j){return v(v({},m(x[0])),{},{body:j})},function(j){return v(v({},m(x[0])),{},{body:"LogRocket fetch error: ".concat(j.message)})})}else D=Promise.resolve(v(v({},m(x[1])),{},{url:"".concat(x[0]),body:(x[1]||{}).body}));return D.then(function(j){return R[O]=j.method,b("".concat(_).concat(O),j),x})},requestError:function(O,A){return Promise.reject(A)},response:function(O,A){var x,T;if(E("".concat(_).concat(O)))return A;try{x=A.clone()}catch(L){var D={url:A.url,status:A.status,headers:g(A.headers),body:"LogRocket fetch error: ".concat(L.message),method:R[O]};return delete R[O],w("".concat(_).concat(O),D),A}try{if(window.TextDecoder&&x.body){var k=x.body.getReader(),j=new window.TextDecoder("utf-8"),N="";T=k.read().then(function L(M){var $=M.done,F=M.value;if($)return N;var z=F?j.decode(F,{stream:!0}):"";return N+=z,k.read().then(L)})}else T=x.text()}catch(L){T=Promise.resolve("LogRocket error reading body: ".concat(L.message))}return T.catch(function(L){if(!(L.name==="AbortError"&&L instanceof DOMException))return"LogRocket error reading body: ".concat(L.message)}).then(function(L){var M={url:A.url,status:A.status,headers:g(A.headers),body:L,method:R[O]};delete R[O],w("".concat(_).concat(O),M)}),A},responseError:function(O,A){var x={url:void 0,status:0,headers:{},body:"".concat(A)};return w("".concat(_).concat(O),x),Promise.reject(A)}});return P}},
474"./packages/@logrocket/network/src/registerIonic.ts":function(a,s,l){var c=l("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(s,"__esModule",{value:!0}),s.mergeHeaders=k,s.serializeQueryParams=F,s.appendQueryParamsString=z,s.processData=V,s.registerIonic=Z;var d=c(l("./node_modules/@babel/runtime/helpers/defineProperty.js")),u=c(l("./node_modules/@babel/runtime/helpers/typeof.js")),f=c(l("./node_modules/@babel/runtime/helpers/toConsumableArray.js")),h=c(l("./packages/@logrocket/utils/src/protectFunc.js"));function v(q,Y){var G=typeof Symbol<"u"&&q[Symbol.iterator]||q["@@iterator"];if(!G){if(Array.isArray(q)||(G=y(q))||Y&&q&&typeof q.length=="number"){G&&(q=G);var re=0,ee=function(){};return{s:ee,n:function(){return re>=q.length?{done:!0}:{done:!1,value:q[re++]}},e:function(ye){throw ye},f:ee}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
475In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ne=!0,te=!1,pe;return{s:function(){G=G.call(q)},n:function(){var ye=G.next();return ne=ye.done,ye},e:function(ye){te=!0,pe=ye},f:function(){try{!ne&&G.return!=null&&G.return()}finally{if(te)throw pe}}}}function y(q,Y){if(q){if(typeof q=="string")return g(q,Y);var G=Object.prototype.toString.call(q).slice(8,-1);if(G==="Object"&&q.constructor&&(G=q.constructor.name),G==="Map"||G==="Set")return Array.from(q);if(G==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(G))return g(q,Y)}}function g(q,Y){(Y==null||Y>q.length)&&(Y=q.length);for(var G=0,re=new Array(Y);G<Y;G++)re[G]=q[G];return re}function m(q,Y){var G=Object.keys(q);if(Object.getOwnPropertySymbols){var re=Object.getOwnPropertySymbols(q);Y&&(re=re.filter(function(ee){return Object.getOwnPropertyDescriptor(q,ee).enumerable})),G.push.apply(G,re)}return G}function S(q){for(var Y=1;Y<arguments.length;Y++){var G=arguments[Y]!=null?arguments[Y]:{};Y%2?m(Object(G),!0).forEach(function(re){(0,d.default)(q,re,G[re])}):Object.getOwnPropertyDescriptors?Object.defineProperties(q,Object.getOwnPropertyDescriptors(G)):m(Object(G)).forEach(function(re){Object.defineProperty(q,re,Object.getOwnPropertyDescriptor(G,re))})}return q}var C=new Set(["get","put","post","patch","head","delete","options","upload","download"]),b=new Set(["urlencoded","json","utf8"]),w=new Set(["raw","multipart"]),E="ionic-",_=new Set(["desktop","mobileweb","pwa"]),R=new Set(["FormData"]),P=new Set,I=new Set(["string"]),O=new Set(["string","array"]),A={utf8:I,urlencoded:new Set(["object"]),json:new Set(["array","object"]),raw:new Set(["Uint8Array","ArrayBuffer"]),default:P};function x(q,Y,G){if(typeof Y!="string")throw new Error("".concat(G," must be one of: ").concat((0,f.default)(q).join(", ")));if(Y=Y.trim().toLowerCase(),!q.has(Y))throw new Error("".concat(G," must be one of: ").concat((0,f.default)(q).join(", ")));return Y}function T(q,Y,G){if((0,u.default)(q)!=="object")throw new Error(G);for(var re=0,ee=Object.keys(q);re<ee.length;re++){var ne=ee[re];if(!Y.has((0,u.default)(q[ne])))throw new Error(G)}return q}function D(q,Y){var G=new URL(q),re=G.host;return Y.getHeaders(re)||null}function k(q,Y){return S(S({},q),Y)}function j(q,Y,G){var re=G.getHeaders("*")||{},ee=D(q,G)||{};return k(k(re,ee),Y)}function N(q,Y){return Y?encodeURIComponent(q):q}function L(q,Y,G){return q.length?G?"".concat(encodeURIComponent(q),"[").concat(encodeURIComponent(Y),"]"):"".concat(q,"[").concat(Y,"]"):G?encodeURIComponent(Y):Y}function M(q,Y,G){var re=[],ee=v(Y),ne;try{for(ee.s();!(ne=ee.n()).done;){var te=ne.value;if(Array.isArray(te)){re.push(M("".concat(q,"[]"),te,G));continue}else if((0,u.default)(te)==="object"){re.push($("".concat(q,"[]").concat(te),G,void 0));continue}re.push("".concat(L(q,"",G),"=").concat(N(te,G)))}}catch(pe){ee.e(pe)}finally{ee.f()}return re.join("&")}function $(q,Y,G){var re=[];for(var ee in Y)if(Y.hasOwnProperty(ee)){var ne=q.length?"".concat(q,"[").concat(ee,"]"):ee;if(Array.isArray(Y[ee])){re.push(M(ne,Y[ee],G));continue}else if((0,u.default)(Y[ee])==="object"&&Y[ee]!==null){re.push($(ne,Y[ee],G));continue}re.push("".concat(L(q,ee,G),"=").concat(N(Y[ee],G)))}return re.join("&")}function F(q,Y){return $("",q,Y)}function z(q,Y){if(!q.length||!Y.length)return q;var G=new URL(q),re=G.host,ee=G.pathname,ne=G.search,te=G.hash,pe=G.protocol;return"".concat(pe,"//").concat(re).concat(ee).concat(ne.length?"".concat(ne,"&").concat(Y):"?".concat(Y)).concat(te)}function H(q){return A[q]||A.default}function U(q){return q==="multipart"?R:P}function V(q,Y){var G=(0,u.default)(q),re=H(Y),ee=U(Y);if(ee.size>0){var ne=!1;if(ee.forEach(function(te){l.g[te]&&q instanceof l.g[te]&&(ne=!0)}),!ne)throw new Error("INSTANCE_TYPE_MISMATCH_DATA ".concat((0,f.default)(ee).join(", ")))}if(ee.size===0&&!re.has(G))throw new Error("TYPE_MISMATCH_DATA ".concat((0,f.default)(re).join(", ")));switch(Y){case"utf8":return q;default:return JSON.stringify(q,void 0,2)}}function W(q,Y){q=q||{};var G,re=q.data;try{G=x(b,q.serializer||Y.getDataSerializer(),"serializer / data payload type")}catch{G=x(w,q.serializer||Y.getDataSerializer(),"serializer / data payload type"),re={}}return{data:re,filePath:q.filePath,followRedirect:q.followRedirect,headers:T(q.headers||{},I,"Invalid header type, must be string"),method:x(C,q.method||C[0],"method"),name:q.name,params:T(q.params||{},O,"Invalid param, must be of type string or array"),responseType:q.responseType,serializer:G,connectTimeout:q.connectTimeout,readTimeout:q.readTimeout,timeout:q.timeout}}var K=0;function Z(q){var Y,G,re,ee=q.addRequest,ne=q.addResponse,te=q.isIgnored,pe=(Y=window.cordova)===null||Y===void 0||(G=Y.plugin)===null||G===void 0?void 0:G.http,le={},ye=!1;if(typeof pe>"u")return function(){};var Se=(re=window.ionic)===null||re===void 0?void 0:re.platforms;if(typeof Se<"u"&&typeof Se.some=="function"&&Se.some(function(be){return _.has(be)}))return function(){};var _e=pe.sendRequest,De=(0,h.default)(function(be,se,Pe){if(!te("".concat(E).concat(Pe)))try{var Te={url:be.url||"",status:be.status<600&&be.status>=100?be.status:0,headers:be.headers||{},body:se?be.data:be.error,method:le[Pe].toUpperCase()};ne("".concat(E).concat(Pe),Te)}catch(ke){var ze={url:be.url||"",status:be.status<600&&be.status>=100?be.status:0,headers:be.headers||{},body:"LogRocket fetch error: ".concat(ke.message),method:le[Pe].toUpperCase()};ne("".concat(E).concat(Pe),ze)}});return pe.sendRequest=function(be,se,Pe,Te){var ze=++K,ke=function(ce){ye||(De(ce,!0,ze),delete le[ze]),Pe(ce)},Me=function(ce){ye||(De(ce,!1,ze),delete le[ze]),Te(ce)};if(!ye)try{var qe=W(se,pe),Le=z(be,$("",qe.params,!0)),xe=j(be,qe.headers,pe),je=qe.method||"get";le[ze]=je;var Ee={url:Le,method:je.toUpperCase(),headers:xe||{},body:V(qe.data||{},qe.serializer)};ee("".concat(E).concat(ze),Ee)}catch(me){var Re={url:be,method:(se.method||"get").toUpperCase(),headers:{},body:"LogRocket fetch error: ".concat(me.message)};ee("".concat(E).concat(ze),Re)}return _e(be,se,ke,Me)},function(){ye=!0,pe.sendRequest=_e,le={}}}},
475"./packages/@logrocket/network/src/registerNetworkInformation.js":function(a,s){Object.defineProperty(s,"__esModule",{value:!0}),s.default=c;var l={"slow-2g":"SLOW2G","2g":"TWOG","3g":"THREEG","4g":"FOURG"};function c(d){var u=void 0;function f(){var h={online:window.navigator.onLine,effectiveType:"UNKOWN"};window.navigator.onLine?window.navigator.connection&&window.navigator.connection.effectiveType&&(h.effectiveType=l[window.navigator.connection.effectiveType]||"UNKNOWN"):h.effectiveType="NONE",!(u&&h.online===u.online&&h.effectiveType===u.effectiveType)&&(u=h,d.addEvent("lr.network.NetworkStatusEvent",function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},y=v.isEnabled,g=y===void 0?!0:y;return g?h:null}))}return setTimeout(f),window.navigator.connection&&typeof window.navigator.connection.addEventListener=="function"&&window.navigator.connection.addEventListener("change",f),window.addEventListener("online",f),window.addEventListener("offline",f),function(){window.removeEventListener("offline",f),window.removeEventListener("online",f),window.navigator.connection&&typeof window.navigator.connection.removeEventListener=="function"&&window.navigator.connection.removeEventListener("change",f)}}},
475"./packages/@logrocket/network/src/registerXHR.js":function(a,s,l){var c=l("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(s,"__esModule",{value:!0}),s.setActive=y,s.default=m;var d=c(l("./packages/@logrocket/utils/src/mapValues.js")),u=c(l("./packages/@logrocket/utils/src/enhanceFunc.js")),f=c(l("./packages/@logrocket/utils/src/startsWith.js")),h=l("./packages/@logrocket/utils/src/constants/nps.js"),v=!0;function y(S){v=S}var g=0;function m(S){var C=S.addRequest,b=S.addResponse,w=S.isIgnored,E=S.logger,_=S.shouldAugmentNPS,R=_===void 0?!0:_,P=S.shouldParseXHRBlob,I=P===void 0?!1:P,O=XMLHttpRequest,A=new WeakMap,x=!1,T="xhr-";return window._lrXMLHttpRequest=XMLHttpRequest,XMLHttpRequest=function(k,j){var N=new O(k,j);if(!v)return N;A.set(N,{xhrId:++g,headers:{}});var L=N.open;function M(){for(var H=arguments.length,U=new Array(H),V=0;V<H;V++)U[V]=arguments[V];try{var W=U[1];if(window.URL&&typeof window.URL=="function"&&W.search(h.WOOTRIC_RESPONSES_REGEX)===0){var K=new window.URL(E.recordingURL);K.searchParams.set("nps","wootric");var Z=new window.URL(W),q=Z.searchParams.get("response[text]"),Y=q?"".concat(q,`
476
477`):"";Z.searchParams.set("response[text]","".concat(Y,"<").concat(K.href,"|View LogRocket session>")),U[1]=Z.href}}catch{}return L.apply(this,U)}var $=N.send;function F(){for(var H=arguments.length,U=new Array(H),V=0;V<H;V++)U[V]=arguments[V];try{var W=A.get(N);if(window.URL&&typeof window.URL=="function"&&W&&W.url&&W.url.search(h.DELIGHTED_RESPONSES_REGEX)===0&&U.length&&U[0].indexOf(h.DELIGHTED_FEEDBACK_PREFIX)!==-1){var K=new window.URL(E.recordingURL);K.searchParams.set("nps","delighted");var Z=encodeURIComponent(K.href),q=U[0].split("&").map(function(Y){if((0,f.default)(Y,h.DELIGHTED_FEEDBACK_PREFIX)){var G=Y===h.DELIGHTED_FEEDBACK_PREFIX;return"".concat(Y).concat(G?"":`
478
479`,"<").concat(Z,"|View LogRocket session>")}return Y}).join("&");U[0]=q}}catch{}return $.apply(this,U)}R&&(N.open=M,N.send=F),(0,u.default)(N,"open",function(H,U){if(!x){var V=A.get(N);V.method=H,V.url=U}}),(0,u.default)(N,"send",function(H){if(!x){var U=A.get(N);if(U){var V={url:U.url,method:U.method&&U.method.toUpperCase(),headers:(0,d.default)(U.headers||{},function(W){return W.join(", ")}),body:H};C("".concat(T).concat(U.xhrId),V)}}}),(0,u.default)(N,"setRequestHeader",function(H,U){if(!x){var V=A.get(N);V&&(V.headers=V.headers||{},V.headers[H]=V.headers[H]||[],V.headers[H].push(U))}});var z={readystatechange:function(){if(!x&&N.readyState===4){var U=A.get(N);if(!U||w("".concat(T).concat(U.xhrId)))return;var V=N.getAllResponseHeaders()||"",W=V.split(/[\r\n]+/).reduce(function(Y,G){var re=Y,ee=G.split(": ");if(ee.length>0){var ne=ee.shift(),te=ee.join(": ");Y[ne]?re[ne]+=", ".concat(te):re[ne]=te}return re},{}),K;try{switch(N.responseType){case"json":K=E._shouldCloneResponse?JSON.parse(JSON.stringify(N.response)):N.response;break;case"arraybuffer":case"blob":{K=N.response;break}case"document":{K=N.responseXML;break}case"text":case"":{K=N.responseText;break}default:K=""}}catch{K="LogRocket: Error accessing response."}var Z={url:U.url,status:N.status,headers:W,body:K,method:(U.method||"").toUpperCase()};if(I&&Z.body instanceof Blob){var q=new FileReader;q.readAsText(Z.body),q.onload=function(){try{Z.body=JSON.parse(q.result)}catch{}b("".concat(T).concat(U.xhrId),Z)}}else b("".concat(T).concat(U.xhrId),Z)}}};return Object.keys(z).forEach(function(H){N.addEventListener(H,z[H])}),N},XMLHttpRequest.prototype=O.prototype,["UNSENT","OPENED","HEADERS_RECEIVED","LOADING","DONE"].forEach(function(D){XMLHttpRequest[D]=O[D]}),function(){x=!0,XMLHttpRequest=O}}},
479"./packages/@logrocket/now/src/index.js":function(a,s){Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;var l=Date.now.bind(Date),c=l(),d=typeof performance<"u"&&performance.now?performance.now.bind(performance):function(){return l()-c};s.default=d},
479"./packages/@logrocket/redux/src/createEnhancer.js":function(a,s,l){var c=l("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(s,"__esModule",{value:!0}),s.default=y;var d=c(l("./node_modules/@babel/runtime/helpers/defineProperty.js")),u=c(l("./packages/@logrocket/now/src/index.js"));function f(g,m){var S=Object.keys(g);if(Object.getOwnPropertySymbols){var C=Object.getOwnPropertySymbols(g);m&&(C=C.filter(function(b){return Object.getOwnPropertyDescriptor(g,b).enumerable})),S.push.apply(S,C)}return S}function h(g){for(var m=1;m<arguments.length;m++){var S=arguments[m]!=null?arguments[m]:{};m%2?f(Object(S),!0).forEach(function(C){(0,d.default)(g,C,S[C])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(S)):f(Object(S)).forEach(function(C){Object.defineProperty(g,C,Object.getOwnPropertyDescriptor(S,C))})}return g}var v=0;function y(g){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},S=m.stateSanitizer,C=S===void 0?function(E){return E}:S,b=m.actionSanitizer,w=b===void 0?function(E){return E}:b;return function(E){return function(_,R,P){var I=E(_,R,P),O=I.dispatch,A=v++;g.addEvent("lr.redux.InitialState",function(){var T;try{T=C(I.getState())}catch{}return{state:T,storeId:A}});var x=function(D){var k=(0,u.default)(),j,N;try{N=O(D)}catch(M){j=M}finally{var L=(0,u.default)()-k;g.addEvent("lr.redux.ReduxAction",function(){var M=null,$=null;try{M=C(I.getState()),$=w(D)}catch{}return M&&$?{storeId:A,action:$,duration:L,stateDelta:M}:null})}if(j)throw j;return N};return h(h({},I),{},{dispatch:x})}}}},
479"./packages/@logrocket/redux/src/createMiddleware.js":function(a,s,l){var c=l("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(s,"__esModule",{value:!0}),s.default=f;var d=c(l("./packages/@logrocket/now/src/index.js")),u=0;function f(h){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},y=v.stateSanitizer,g=y===void 0?function(C){return C}:y,m=v.actionSanitizer,S=m===void 0?function(C){return C}:m;return function(C){var b=u++;return h.addEvent("lr.redux.InitialState",function(){var w;try{w=g(C.getState())}catch{}return{state:w,storeId:b}}),function(w){return function(E){var _=(0,d.default)(),R,P;try{P=w(E)}catch(O){R=O}finally{var I=(0,d.default)()-_;h.addEvent("lr.redux.ReduxAction",function(){var O=null,A=null;try{O=g(C.getState()),A=S(E)}catch{}return O&&A?{storeId:b,action:A,duration:I,stateDelta:O}:null})}if(R)throw R;return P}}}}},
479"./packages/@logrocket/redux/src/index.js":function(a,s,l){var c=l("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(s,"createEnhancer",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(s,"createMiddleware",{enumerable:!0,get:function(){return u.default}});var d=c(l("./packages/@logrocket/redux/src/createEnhancer.js")),u=c(l("./packages/@logrocket/redux/src/createMiddleware.js"))},
479"./packages/@logrocket/utils/src/TraceKit.js":function(a,s,l){Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;var c={collectWindowErrors:!0,debug:!1},d=typeof window<"u"?window:typeof l.g<"u"?l.g:typeof self<"u"?self:{},u=[].slice,f="?",h=/^(?:Uncaught (?:exception: )?)?((?:Eval|Internal|Range|Reference|Syntax|Type|URI)Error): ?(.*)$/;function v(){return typeof document>"u"||typeof document.location>"u"?"":document.location.href}c.report=function(){var m=[],S=null,C=null,b=null;function w(k){A(),m.push(k)}function E(k){for(var j=m.length-1;j>=0;--j)m[j]===k&&m.splice(j,1)}function _(){x(),m=[]}function R(k,j){var N=null;if(!(j&&!c.collectWindowErrors)){for(var L in m)if(m.hasOwnProperty(L))try{m[L].apply(null,[k].concat(u.call(arguments,2)))}catch(M){N=M}if(N)throw N}}var P,I;function O(k,j,N,L,M){var $=null;if(b)c.computeStackTrace.augmentStackTraceWithInitialElement(b,j,N,k),T();else if(M)$=c.computeStackTrace(M),R($,!0);else{var F={url:j,line:N,column:L},z=void 0,H=k,U;if({}.toString.call(k)==="[object String]"){var U=k.match(h);U&&(z=U[1],H=U[2])}F.func=f,$={name:z,message:H,url:v(),stack:[F]},R($,!0)}return P?P.apply(this,arguments):!1}function A(){I||(P=d.onerror,d.onerror=O,I=!0)}function x(){I&&(d.onerror=P,I=!1,P=void 0)}function T(){var k=b,j=S;S=null,b=null,C=null,R.apply(null,[k,!1].concat(j))}function D(k,j){var N=u.call(arguments,1);if(b){if(C===k)return;T()}var L=c.computeStackTrace(k);if(b=L,C=k,S=N,setTimeout(function(){C===k&&T()},L.incomplete?2e3:0),j!==!1)throw k}return D.subscribe=w,D.unsubscribe=E,D.uninstall=_,D}(),c.computeStackTrace=function(){function m(w){if(!(typeof w.stack>"u"||!w.stack)){var E=/^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|<anonymous>).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,_=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|resource|\[native).*?)(?::(\d+))?(?::(\d+))?\s*$/i,R=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,P=w.stack.split(`
480`),I=[],O,A;/^(.*) is undefined$/.exec(w.message);for(var x=0,T=P.length;x<T;++x){if(O=E.exec(P[x])){var D=O[2]&&O[2].indexOf("native")!==-1;A={url:D?null:O[2],func:O[1]||f,args:D?[O[2]]:[],line:O[3]?+O[3]:null,column:O[4]?+O[4]:null}}else if(O=R.exec(P[x]))A={url:O[2],func:O[1]||f,args:[],line:+O[3],column:O[4]?+O[4]:null};else if(O=_.exec(P[x]))A={url:O[3],func:O[1]||f,args:O[2]?O[2].split(","):[],line:O[4]?+O[4]:null,column:O[5]?+O[5]:null};else continue;!A.func&&A.line&&(A.func=f),I.push(A)}return I.length?(!I[0].column&&typeof w.columnNumber<"u"&&(I[0].column=w.columnNumber+1),{name:w.name,message:w.message,url:v(),stack:I}):null}}function S(w,E,_,R){var P={url:E,line:_};if(P.url&&P.line){if(w.incomplete=!1,P.func||(P.func=f),w.stack.length>0&&w.stack[0].url===P.url){if(w.stack[0].line===P.line)return!1;if(!w.stack[0].line&&w.stack[0].func===P.func)return w.stack[0].line=P.line,!1}return w.stack.unshift(P),w.partial=!0,!0}else w.incomplete=!0;return!1}function C(w,E){for(var _=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,R=[],P={},I=!1,O,A,x=C.caller;x&&!I;x=x.caller)if(!(x===b||x===c.report)){if(A={url:null,func:f,line:null,column:null},x.name?A.func=x.name:(O=_.exec(x.toString()))&&(A.func=O[1]),typeof A.func>"u")try{A.func=O.input.substring(0,O.input.indexOf("{"))}catch{}P[""+x]?I=!0:P[""+x]=!0,R.push(A)}E&&R.splice(0,E);var T={name:w.name,message:w.message,url:v(),stack:R};return S(T,w.sourceURL||w.fileName,w.line||w.lineNumber,w.message||w.description),T}function b(w,E){var _=null;E=E==null?0:+E;try{if(_=m(w),_)return _}catch(R){if(c.debug)throw R}try{if(_=C(w,E+1),_)return _}catch(R){if(c.debug)throw R}return{name:w.name,message:w.message,url:v()}}return b.augmentStackTraceWithInitialElement=S,b.computeStackTraceFromStackProp=m,b}();var y=c;s.default=y},
480"./packages/@logrocket/utils/src/constants/nps.js":function(a,s){Object.defineProperty(s,"__esModule",{value:!0}),s.DELIGHTED_FEEDBACK_PREFIX=s.DELIGHTED_RESPONSES_REGEX=s.WOOTRIC_RESPONSES_REGEX=void 0;var l=/^https:\/\/production.wootric.com\/responses/;s.WOOTRIC_RESPONSES_REGEX=l;var c=/^https:\/\/web.delighted.com\/e\/[a-zA-Z-]*\/c/;s.DELIGHTED_RESPONSES_REGEX=c;var d="comment=";s.DELIGHTED_FEEDBACK_PREFIX=d},
480"./packages/@logrocket/utils/src/enhanceFunc.js":function(a,s){Object.defineProperty(s,"__esModule",{value:!0}),s.default=l;function l(c,d,u){var f=c[d];function h(){for(var v,y=arguments.length,g=new Array(y),m=0;m<y;m++)g[m]=arguments[m];return f&&(v=f.apply(this,g)),u.apply(this,g),v}return c[d]=h,function(){c[d]=f}}},
480"./packages/@logrocket/utils/src/logError.js":function(a,s){Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;var l=typeof console<"u"&&console.error&&console.error.bind,c=l?void 0:function(){},d=c;s.default=d},
480"./packages/@logrocket/utils/src/mapValues.js":function(a,s){Object.defineProperty(s,"__esModule",{value:!0}),s.default=l;function l(c,d){if(c==null)return{};var u={};return Object.keys(c).forEach(function(f){u[f]=d(c[f])}),u}},
480"./packages/@logrocket/utils/src/protectFunc.js":function(a,s,l){var c=l("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(s,"__esModule",{value:!0}),s.default=f;var d=c(l("./packages/@logrocket/utils/src/sendTelemetryData.js")),u=c(l("./packages/@logrocket/utils/src/logError.js"));function f(h){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){};return function(){var y;try{y=h.apply(void 0,arguments)}catch(m){if(typeof window<"u"&&window._lrdebug)throw m;var g=v(m);(0,u.default)("LogRocket",m),(0,d.default)(m,g)}return y}}},
480"./packages/@logrocket/utils/src/sendTelemetryData.js":function(a,s,l){var c=l("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(s,"__esModule",{value:!0}),s.sendTelemetry=m,s.default=S;var d=c(l("./node_modules/@babel/runtime/helpers/defineProperty.js")),u=c(l("./packages/@logrocket/utils/src/logError.js")),f=c(l("./packages/@logrocket/utils/src/TraceKit.js"));function h(C,b){var w=Object.keys(C);if(Object.getOwnPropertySymbols){var E=Object.getOwnPropertySymbols(C);b&&(E=E.filter(function(_){return Object.getOwnPropertyDescriptor(C,_).enumerable})),w.push.apply(w,E)}return w}function v(C){for(var b=1;b<arguments.length;b++){var w=arguments[b]!=null?arguments[b]:{};b%2?h(Object(w),!0).forEach(function(E){(0,d.default)(C,E,w[E])}):Object.getOwnPropertyDescriptors?Object.defineProperties(C,Object.getOwnPropertyDescriptors(w)):h(Object(w)).forEach(function(E){Object.defineProperty(C,E,Object.getOwnPropertyDescriptor(w,E))})}return C}var y="7aa896f8c74c1f52e4ad1d4bccaeeea0b664b03c";function g(C){var b=window._lrXMLHttpRequest||XMLHttpRequest;try{var w=new b,E=C.message,_="https://e.logrocket.com/api/3/store/?sentry_version=7&sentry_client=http%2F3.8.0&sentry_key=b64162b4187a4c5caae8a68a7e291793";w.open("POST",_),w.send(JSON.stringify(v({message:E,logger:"javascript",platform:"javascript",request:{headers:{"User-Agent":typeof navigator<"u"&&navigator.userAgent},url:typeof location<"u"&&location.href},release:y,environment:"test"},C)))}catch(R){(0,u.default)("Failed to send",R)}}function m(C,b){if(typeof window<"u"&&window._lrdebug)return void(0,u.default)(C);b&&b.extra&&b.extra.appID&&typeof b.extra.appID.indexOf=="function"&&b.extra.appID.indexOf("au2drp/")===0&&Math.random()>=.25||g(v({message:C},b))}function S(C,b){try{var w=C.message,E;try{E=JSON.stringify(b).slice(0,1e3)}catch{try{E="Could not stringify payload: ".concat(Object.prototype.toString.call(b))}catch{}}var _;try{_=f.default.computeStackTrace(C).stack.map(function(R){return{filename:R.url,lineno:R.line,colno:R.column,function:R.func||"?"}})}catch{}g({message:w,extra:{stringPayload:E},exception:{values:[{type:C.type,value:w,stacktrace:{frames:_}}]}})}catch(R){(0,u.default)("Failed to send",R)}}},
480"./packages/@logrocket/utils/src/startsWith.js":function(a,s){Object.defineProperty(s,"__esModule",{value:!0}),s.default=l;function l(c,d){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return c&&d&&c.substring(u,u+d.length)===d}},
480"./packages/logrocket/src/LogRocket.js":function(a,s,l){var c=l("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(s,"__esModule",{value:!0}),s.default=s.MAX_QUEUE_SIZE=void 0;var d=c(l("./node_modules/@babel/runtime/helpers/classCallCheck.js")),u=c(l("./node_modules/@babel/runtime/helpers/createClass.js")),f=c(l("./node_modules/@babel/runtime/helpers/defineProperty.js")),h=c(l("./node_modules/@babel/runtime/helpers/objectWithoutProperties.js")),v=c(l("./packages/@logrocket/network/src/index.js")),y=l("./packages/@logrocket/exceptions/src/index.js"),g=c(l("./packages/@logrocket/console/src/index.js")),m=l("./packages/@logrocket/redux/src/index.js");function S(_,R){var P=Object.keys(_);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(_);R&&(I=I.filter(function(O){return Object.getOwnPropertyDescriptor(_,O).enumerable})),P.push.apply(P,I)}return P}function C(_){for(var R=1;R<arguments.length;R++){var P=arguments[R]!=null?arguments[R]:{};R%2?S(Object(P),!0).forEach(function(I){(0,f.default)(_,I,P[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors(P)):S(Object(P)).forEach(function(I){Object.defineProperty(_,I,Object.getOwnPropertyDescriptor(P,I))})}return _}var b=1e3;s.MAX_QUEUE_SIZE=b;var w=function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},P=R.ingestServer,I=(0,h.default)(R,["ingestServer"]);return P?C({serverURL:"".concat(P,"/i"),statsURL:"".concat(P,"/s")},I):I},E=function(){function _(){var R=this;(0,d.default)(this,_),this._buffer=[],["log","info","warn","error","debug"].forEach(function(P){R[P]=function(){for(var I=arguments.length,O=new Array(I),A=0;A<I;A++)O[A]=arguments[A];R.addEvent("lr.core.LogEvent",function(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return P==="error"&&x.shouldAggregateConsoleErrors&&y.Capture.captureMessage(R,O[0],O,{},!0),{logLevel:P.toUpperCase(),args:O}},{shouldCaptureStackTrace:!0})}}),this._isInitialized=!1,this._installed=[],window._lr_surl_cb=this.getSessionURL.bind(this)}return(0,u.default)(_,[{key:"addEvent",value:function(P,I){var O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},A=Date.now();this._run(function(x){x.addEvent(P,I,C(C({},O),{},{timeOverride:A}))})}},{key:"onLogger",value:function(P){for(this._logger=P;this._buffer.length>0;){var I=this._buffer.shift();I(this._logger)}}},{key:"_run",value:function(P){if(!this._isDisabled)if(this._logger)P(this._logger);else{if(this._buffer.length>=b){this._isDisabled=!0,this.uninstall();return}this._buffer.push(P.bind(this))}}},{key:"init",value:function(P){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this._isInitialized){var O=I.shouldAugmentNPS,A=O===void 0?!0:O,x=I.shouldParseXHRBlob,T=x===void 0?!1:x,D=I.shouldDetectExceptions,k=D===void 0?!0:D;k&&this._installed.push((0,y.registerExceptions)(this)),this._installed.push((0,v.default)(this,{shouldAugmentNPS:!!A,shouldParseXHRBlob:!!T})),this._installed.push((0,g.default)(this)),this._isInitialized=!0,this._run(function(j){j.init(P,w(I))})}}},{key:"start",value:function(){this._run(function(P){P.start()})}},{key:"uninstall",value:function(){this._installed.forEach(function(P){return P()}),this._buffer=[],this._run(function(P){P.uninstall()})}},{key:"identify",value:function(P,I){this._run(function(O){O.identify(P,I)})}},{key:"startNewSession",value:function(){this._run(function(P){P.startNewSession()})}},{key:"track",value:function(P,I){this._run(function(O){O.track(P,I)})}},{key:"getSessionURL",value:function(P){if(typeof P!="function")throw new Error("LogRocket: must pass callback to getSessionURL()");this._run(function(I){I.getSessionURL?I.getSessionURL(P):P(I.recordingURL)})}},{key:"getVersion",value:function(P){this._run(function(I){P(I.version)})}},{key:"captureMessage",value:function(P){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};y.Capture.captureMessage(this,P,[P],I)}},{key:"captureException",value:function(P){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};y.Capture.captureException(this,P,I)}},{key:"version",get:function(){return this._logger&&this._logger.version}},{key:"sessionURL",get:function(){return this._logger&&this._logger.recordingURL}},{key:"recordingURL",get:function(){return this._logger&&this._logger.recordingURL}},{key:"recordingID",get:function(){return this._logger&&this._logger.recordingID}},{key:"threadID",get:function(){return this._logger&&this._logger.threadID}},{key:"tabID",get:function(){return this._logger&&this._logger.tabID}},{key:"reduxEnhancer",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return(0,m.createEnhancer)(this,P)}},{key:"reduxMiddleware",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return(0,m.createMiddleware)(this,P)}},{key:"isDisabled",get:function(){return!!(this._isDisabled||this._logger&&this._logger._isDisabled)}}]),_}();s.default=E},
480"./packages/logrocket/src/makeLogRocket.js":function(a,s,l){var c=l("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(s,"__esModule",{value:!0}),s.default=h;var d=c(l("./packages/logrocket/src/LogRocket.js")),u="LogRocket does not yet support React Native.",f=function(){return{init:function(){},uninstall:function(){},log:function(){},info:function(){},warn:function(){},error:function(){},debug:function(){},addEvent:function(){},identify:function(){},start:function(){},get threadID(){return null},get recordingID(){return null},get recordingURL(){return null},reduxEnhancer:function(){return function(g){return function(){return g.apply(void 0,arguments)}}},reduxMiddleware:function(){return function(){return function(g){return function(m){return g(m)}}}},track:function(){},getSessionURL:function(){},getVersion:function(){},startNewSession:function(){},onLogger:function(){},setClock:function(){},captureMessage:function(){},captureException:function(){}}};function h(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};if(typeof navigator<"u"&&navigator.product==="ReactNative")throw new Error(u);if(typeof window<"u"){if(window._disableLogRocket)return f();if(window.MutationObserver&&window.WeakMap){window._lrMutationObserver=window.MutationObserver;var y=new d.default;return v(y),y}}return f()}},
480"./packages/logrocket/src/setup.js":function(a,s,l){var c=l("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(s,"__esModule",{value:!0}),s.default=h;var d=c(l("./node_modules/@babel/runtime/helpers/objectWithoutProperties.js")),u=c(l("./packages/logrocket/src/makeLogRocket.js")),f={"cdn.logrocket.io":"https://r.logrocket.io","cdn.lr-ingest.io":"https://r.lr-ingest.io","cdn.lr-in.com":"https://r.lr-in.com","cdn.lr-in-prod.com":"https://r.lr-in-prod.com","cdn.lr-ingest.com":"https://r.lr-ingest.com","cdn-staging.logrocket.io":"https://staging-i.logrocket.io","cdn-staging.lr-ingest.io":"https://staging-i.lr-ingest.io","cdn-staging.lr-in.com":"https://staging-i.lr-in.com","cdn-staging.lr-in-prod.com":"https://staging-i.lr-in-prod.com","cdn-staging.lr-ingest.com":"https://staging-i.lr-ingest.com"};function h(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},y=v.enterpriseServer,g=v.sdkVersion,m=g===void 0?"4.0.4":g,S=(0,d.default)(v,["enterpriseServer","sdkVersion"]),C="https://cdn.logrocket.io",b;if(m==="script")try{var w=document.currentScript,E=w.src.match(/^(https?:\/\/([^\\]+))\/.+$/),_=E&&E[2];_&&f[_]&&(C=E&&E[1],b=f[_])}catch{}else C="https://cdn.lr-ingest.com",b="https://r.lr-ingest.com";var R=S.sdkServer||y,P=S.ingestServer||y||b,I=(0,u.default)(function(){var O=document.createElement("script");P&&(typeof window.__SDKCONFIG__>"u"&&(window.__SDKCONFIG__={}),window.__SDKCONFIG__.serverURL="".concat(P,"/i"),window.__SDKCONFIG__.statsURL="".concat(P,"/s")),R?O.src="".concat(R,"/logger.min.js"):window.__SDKCONFIG__&&window.__SDKCONFIG__.loggerURL?O.src=window.__SDKCONFIG__.loggerURL:window._lrAsyncScript?O.src=window._lrAsyncScript:O.src="".concat(C,"/logger-1.min.js"),O.async=!0,document.head.appendChild(O),O.onload=function(){typeof window._LRLogger=="function"?I.onLogger(new window._LRLogger({sdkVersion:m})):I.uninstall()},O.onerror=function(){I.uninstall()}});return I}},
vendor: 243 bytes, line 480
480"./node_modules/@babel/runtime/helpers/arrayLikeToArray.js":function(a){function s(l,c){(c==null||c>l.length)&&(c=l.length);for(var d=0,u=new Array(c);d<c;d++)u[d]=l[d];return u}a.exports=s,a.exports.__esModule=!0,a.exports.default=a.exports},
vendor: 257 bytes, line 480
480"./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js":function(a,s,l){var c=l("./node_modules/@babel/runtime/helpers/arrayLikeToArray.js");function d(u){if(Array.isArray(u))return c(u)}a.exports=d,a.exports.__esModule=!0,a.exports.default=a.exports},
vendor: 229 bytes, line 480
480"./node_modules/@babel/runtime/helpers/classCallCheck.js":function(a){function s(l,c){if(!(l instanceof c))throw new TypeError("Cannot call a class as a function")}a.exports=s,a.exports.__esModule=!0,a.exports.default=a.exports},
vendor: 479 bytes, line 480
480"./node_modules/@babel/runtime/helpers/createClass.js":function(a,s,l){var c=l("./node_modules/@babel/runtime/helpers/toPropertyKey.js");function d(f,h){for(var v=0;v<h.length;v++){var y=h[v];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(f,c(y.key),y)}}function u(f,h,v){return h&&d(f.prototype,h),v&&d(f,v),Object.defineProperty(f,"prototype",{writable:!1}),f}a.exports=u,a.exports.__esModule=!0,a.exports.default=a.exports},
vendor: 332 bytes, line 480
480"./node_modules/@babel/runtime/helpers/defineProperty.js":function(a,s,l){var c=l("./node_modules/@babel/runtime/helpers/toPropertyKey.js");function d(u,f,h){return f=c(f),f in u?Object.defineProperty(u,f,{value:h,enumerable:!0,configurable:!0,writable:!0}):u[f]=h,u}a.exports=d,a.exports.__esModule=!0,a.exports.default=a.exports},
vendor: 193 bytes, line 480
480"./node_modules/@babel/runtime/helpers/interopRequireDefault.js":function(a){function s(l){return l&&l.__esModule?l:{default:l}}a.exports=s,a.exports.__esModule=!0,a.exports.default=a.exports},
vendor: 241 bytes, line 480
480"./node_modules/@babel/runtime/helpers/iterableToArray.js":function(a){function s(l){if(typeof Symbol<"u"&&l[Symbol.iterator]!=null||l["@@iterator"]!=null)return Array.from(l)}a.exports=s,a.exports.__esModule=!0,a.exports.default=a.exports},
vendor: 306 bytes, lines 480-481
480"./node_modules/@babel/runtime/helpers/nonIterableSpread.js":function(a){function s(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
481In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}a.exports=s,a.exports.__esModule=!0,a.exports.default=a.exports},
vendor: 473 bytes, line 481
481"./node_modules/@babel/runtime/helpers/objectWithoutProperties.js":function(a,s,l){var c=l("./node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js");function d(u,f){if(u==null)return{};var h=c(u,f),v,y;if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(u);for(y=0;y<g.length;y++)v=g[y],!(f.indexOf(v)>=0)&&Object.prototype.propertyIsEnumerable.call(u,v)&&(h[v]=u[v])}return h}a.exports=d,a.exports.__esModule=!0,a.exports.default=a.exports},
vendor: 286 bytes, line 481
481"./node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js":function(a){function s(l,c){if(l==null)return{};var d={},u=Object.keys(l),f,h;for(h=0;h<u.length;h++)f=u[h],!(c.indexOf(f)>=0)&&(d[f]=l[f]);return d}a.exports=s,a.exports.__esModule=!0,a.exports.default=a.exports},
vendor: 460 bytes, line 481
481"./node_modules/@babel/runtime/helpers/toConsumableArray.js":function(a,s,l){var c=l("./node_modules/@babel/runtime/helpers/arrayWithoutHoles.js"),d=l("./node_modules/@babel/runtime/helpers/iterableToArray.js"),u=l("./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js"),f=l("./node_modules/@babel/runtime/helpers/nonIterableSpread.js");function h(v){return c(v)||d(v)||u(v)||f()}a.exports=h,a.exports.__esModule=!0,a.exports.default=a.exports},
vendor: 463 bytes, line 481
481"./node_modules/@babel/runtime/helpers/toPrimitive.js":function(a,s,l){var c=l("./node_modules/@babel/runtime/helpers/typeof.js").default;function d(u,f){if(c(u)!=="object"||u===null)return u;var h=u[Symbol.toPrimitive];if(h!==void 0){var v=h.call(u,f||"default");if(c(v)!=="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(f==="string"?String:Number)(u)}a.exports=d,a.exports.__esModule=!0,a.exports.default=a.exports},
vendor: 334 bytes, line 481
481"./node_modules/@babel/runtime/helpers/toPropertyKey.js":function(a,s,l){var c=l("./node_modules/@babel/runtime/helpers/typeof.js").default,d=l("./node_modules/@babel/runtime/helpers/toPrimitive.js");function u(f){var h=d(f,"string");return c(h)==="symbol"?h:String(h)}a.exports=u,a.exports.__esModule=!0,a.exports.default=a.exports},
vendor: 445 bytes, line 481
481"./node_modules/@babel/runtime/helpers/typeof.js":function(a){function s(l){"@babel/helpers - typeof";return a.exports=s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},a.exports.__esModule=!0,a.exports.default=a.exports,s(l)}a.exports=s,a.exports.__esModule=!0,a.exports.default=a.exports},
vendor: 512 bytes, line 481
481"./node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":function(a,s,l){var c=l("./node_modules/@babel/runtime/helpers/arrayLikeToArray.js");function d(u,f){if(u){if(typeof u=="string")return c(u,f);var h=Object.prototype.toString.call(u).slice(8,-1);if(h==="Object"&&u.constructor&&(h=u.constructor.name),h==="Map"||h==="Set")return Array.from(u);if(h==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h))return c(u,f)}}a.exports=d,a.exports.__esModule=!0,a.exports.default=a.exports}
481},n={};function i(a){var s=n[a];if(s!==void 0)return s.exports;var l=n[a]={exports:{}};return r[a](l,l.exports,i),l.exports}(function(){i.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}()})();var o={};return function(){var a=o;/*!**********************************************!*\
482  !*** ./packages/logrocket/src/module-npm.js ***!
483  \**********************************************/var s=i("./node_modules/@babel/runtime/helpers/interopRequireDefault.js");Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var l=s(i("./packages/logrocket/src/setup.js")),c=(0,l.default)(),d=c;a.default=d}(),o=o.default,o}()})})(Uoe);var nVe=Uoe.exports;const Woe=Mo(nVe);function kr(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw new Error(typeof e=="number"?"[MobX] minified error nr: "+e+(r.length?" "+r.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+e)}var iVe={};function OR(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:iVe}var qoe=Object.assign,qb=Object.getOwnPropertyDescriptor,Ns=Object.defineProperty,TR=Object.prototype,Z$=[];Object.freeze(Z$);var Goe={};Object.freeze(Goe);var oVe=typeof Proxy<"u",aVe=Object.toString();function Koe(){oVe||kr("Proxy not available")}function Yoe(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var zf=function(){};function ls(e){return typeof e=="function"}function gd(e){var t=typeof e;switch(t){case"string":case"symbol":case"number":return!0}return!1}function AR(e){return e!==null&&typeof e=="object"}function El(e){if(!AR(e))return!1;var t=Object.getPrototypeOf(e);if(t==null)return!0;var r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r.toString()===aVe}function Xoe(e){var t=e==null?void 0:e.constructor;return t?t.name==="GeneratorFunction"||t.displayName==="GeneratorFunction":!1}function U0(e,t,r){Ns(e,t,{enumerable:!1,writable:!0,configurable:!0,value:r})}function Qoe(e,t,r){Ns(e,t,{enumerable:!1,writable:!1,configurable:!0,value:r})}function Bd(e,t){var r="isMobX"+e;return t.prototype[r]=!0,function(n){return AR(n)&&n[r]===!0}}function vh(e){return e!=null&&Object.prototype.toString.call(e)==="[object Map]"}function sVe(e){var t=Object.getPrototypeOf(e),r=Object.getPrototypeOf(t),n=Object.getPrototypeOf(r);return n===null}function ol(e){return e!=null&&Object.prototype.toString.call(e)==="[object Set]"}var Joe=typeof Object.getOwnPropertySymbols<"u";function lVe(e){var t=Object.keys(e);if(!Joe)return t;var r=Object.getOwnPropertySymbols(e);return r.length?[].concat(t,r.filter(function(n){return TR.propertyIsEnumerable.call(e,n)})):t}var xp=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Joe?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function Zoe(e){return e===null?null:typeof e=="object"?""+e:e}function hl(e,t){return TR.hasOwnProperty.call(e,t)}var cVe=Object.getOwnPropertyDescriptors||function(t){var r={};return xp(t).forEach(function(n){r[n]=qb(t,n)}),r};function Wo(e,t){return!!(e&t)}function qo(e,t,r){return r?e|=t:e&=~t,e}function HW(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function VW(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,dVe(n.key),n)}}function gh(e,t,r){return t&&VW(e.prototype,t),r&&VW(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Bf(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=fVe(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
484In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function md(){return md=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}
484).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},md.apply(null,arguments)}function eae(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ek(e,t)}function ek(e,t){return ek=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},ek(e,t)}function uVe(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dVe(e){var t=uVe(e,"string");return typeof t=="symbol"?t:t+""}function fVe(e,t){if(e){if(typeof e=="string")return HW(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?HW(e,t):void 0}}var Ts=Symbol("mobx-stored-annotations");function Ds(e){function t(r,n){if(q0(n))return e.decorate_20223_(r,n);W0(r,n,e)}return Object.assign(t,e)}function W0(e,t,r){hl(e,Ts)||U0(e,Ts,md({},e[Ts])),bVe(r)||(e[Ts][t]=r)}function pVe(e){return hl(e,Ts)||U0(e,Ts,md({},e[Ts])),e[Ts]}function q0(e){return typeof e=="object"&&typeof e.kind=="string"}var Kt=Symbol("mobx administration"),tu=function(){function e(r){r===void 0&&(r="Atom"),this.name_=void 0,this.flags_=0,this.observers_=new Set,this.lastAccessedBy_=0,this.lowestObserverState_=jr.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=r}var t=e.prototype;
484return t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(n){return n()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(n){return n()})},t.reportObserved=function(){return gae(this)},t.reportChanged=function(){xa(),mae(this),Oa()},t.toString=function(){return this.name_},gh(e,[{key:"isBeingObserved",get:function(){return Wo(this.flags_,e.isBeingObservedMask_)},set:function(n){this.flags_=qo(this.flags_,e.isBeingObservedMask_,n)}},{key:"isPendingUnobservation",get:function(){return Wo(this.flags_,e.isPendingUnobservationMask_)},set:function(n){this.flags_=qo(this.flags_,e.isPendingUnobservationMask_,n)}},{key:"diffValue",get:function(){return Wo(this.flags_,e.diffValueMask_)?1:0},set:function(n){this.flags_=qo(this.flags_,e.diffValueMask_,n===1)}}])}();tu.isBeingObservedMask_=1;tu.isPendingUnobservationMask_=2;tu.diffValueMask_=4;var QD=Bd("Atom",tu);function tae(e,t,r){t===void 0&&(t=zf),r===void 0&&(r=zf);var n=new tu(e);return t!==zf&&RUe(n,t),r!==zf&&wae(n,r),n}function hVe(e,t){return e===t}function vVe(e,t){return i6(e,t)}function gVe(e,t){return i6(e,t,1)}function mVe(e,t){return Object.is?Object.is(e,t):e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Gb={identity:hVe,structural:vVe,default:mVe,shallow:gVe};function yd(e,t,r){return Iae(e)?e:Array.isArray(e)?bi.array(e,{name:r}):El(e)?bi.object(e,void 0,{name:r}):vh(e)?bi.map(e,{name:r}):ol(e)?bi.set(e,{name:r}):typeof e=="function"&&!Ry(e)&&!Py(e)?Xoe(e)?Op(e):Ey(r,e):e}function yVe(e,t,r){if(e==null||Iy(e)||DR(e)||Vd(e)||Is(e))return e;if(Array.isArray(e))return bi.array(e,{name:r,deep:!1});if(El(e))return bi.object(e,void 0,{name:r,deep:!1});if(vh(e))return bi.map(e,{name:r,deep:!1});if(ol(e))return bi.set(e,{name:r,deep:!1})}function MR(e){return e}function SVe(e,t){return i6(e,t)?t:e}var CVe="override";function bVe(e){return e.annotationType_===CVe}function G0(e,t){return{annotationType_:e,options_:t,make_:wVe,extend_:_Ve,decorate_20223_:EVe}}function wVe(e,t,r,n){var i;if((i=this.options_)!=null&&i.bound)return this.extend_(e,t,r,!1)===null?0:1;if(n===e.target_)return this.extend_(e,t,r,!1)===null?0:2;if(Ry(r.value))return 1;var o=rae(e,this,t,r,!1);return Ns(n,t,o),2}function _Ve(e,t,r,n){var i=rae(e,this,t,r);return e.defineProperty_(t,i,n)}function EVe(e,t){var r=t.kind,n=t.name,i=t.addInitializer,o=this,a=function(c){var d,u,f,h;return Sd((d=(u=o.options_)==null?void 0:u.name)!=null?d:n.toString(),c,(f=(h=o.options_)==null?void 0:h.autoAction)!=null?f:!1)};if(r=="field")return function(l){var c,d=l;return Ry(d)||(d=a(d)),(c=o.options_)!=null&&c.bound&&(d=d.bind(this),d.isMobxAction=!0),d};if(r=="method"){var s;return Ry(e)||(e=a(e)),(s=this.options_)!=null&&s.bound&&i(function(){var l=this,c=l[n].bind(l);c.isMobxAction=!0,l[n]=c}),e}kr("Cannot apply '"+o.annotationType_+"' to '"+String(n)+"' (kind: "+r+"):"+(`
485'`+o.annotationType_+"' can only be used on properties with a function value."))}function RVe(e,t,r,n){t.annotationType_,n.value}function rae(e,t,r,n,i){var o,a,s,l,c,d,u;i===void 0&&(i=Ot.safeDescriptors),RVe(e,t,r,n);var f=n.value;if((o=t.options_)!=null&&o.bound){var h;f=f.bind((h=e.proxy_)!=null?h:e.target_)}return{value:Sd((a=(s=t.options_)==null?void 0:s.name)!=null?a:r.toString(),f,(l=(c=t.options_)==null?void 0:c.autoAction)!=null?l:!1,(d=t.options_)!=null&&d.bound?(u=e.proxy_)!=null?u:e.target_:void 0),configurable:i?e.isPlainObject_:!0,enumerable:!1,writable:!i}}function nae(e,t){return{annotationType_:e,options_:t,make_:PVe,extend_:IVe,decorate_20223_:xVe}}function PVe(e,t,r,n){var i;if(n===e.target_)return this.extend_(e,t,r,!1)===null?0:2;if((i=this.options_)!=null&&i.bound&&(!hl(e.target_,t)||!Py(e.target_[t]))&&this.extend_(e,t,r,!1)===null)return 0;if(Py(r.value))return 1;var o=iae(e,this,t,r,!1,!1);return Ns(n,t,o),2}function IVe(e,t,r,n){var i,o=iae(e,this,t,r,(i=this.options_)==null?void 0:i.bound);return e.defineProperty_(t,o,n)}function xVe(e,t){var r,n=t.name,i=t.addInitializer;return Py(e)||(e=Op(e)),(r=this.options_)!=null&&r.bound&&i(function(){var o=this,a=o[n].bind(o);a.isMobXFlow=!0,o[n]=a}),e}function OVe(e,t,r,n){t.annotationType_,n.value}function iae(e,t,r,n,i,o){o===void 0&&(o=Ot.safeDescriptors),OVe(e,t,r,n);var a=n.value;if(Py(a)||(a=Op(a)),i){var s;a=a.bind((s=e.proxy_)!=null?s:e.target_),a.isMobXFlow=!0}return{value:a,configurable:o?e.isPlainObject_:!0,enumerable:!1,writable:!o}}function JD(e,t){return{annotationType_:e,options_:t,make_:TVe,extend_:AVe,decorate_20223_:MVe}}function TVe(e,t,r){return this.extend_(e,t,r,!1)===null?0:1}function AVe(e,t,r,n){return $Ve(e,this,t,r),e.defineComputedProperty_(t,md({},this.options_,{get:r.get,set:r.set}),n)}function MVe(e,t){var r=this,n=t.name,i=t.addInitializer;return i(function(){var o=Ud(this)[Kt],a=md({},r.options_,{get:e,context:this});a.name||(a.name="ObservableObject."+n.toString()),o.values_.set(n,new cs(a))}),function(){return this[Kt].getObservablePropValue_(n)}}function $Ve(e,t,r,n){t.annotationType_,n.get}function $R(e,t){return{annotationType_:e,options_:t,make_:kVe,extend_:NVe,decorate_20223_:DVe}}function kVe(e,t,r){return this.extend_(e,t,r,!1)===null?0:1}function NVe(e,t,r,n){var i,o;return LVe(e,this),e.defineObservableProperty_(t,r.value,(i=(o=this.options_)==null?void 0:o.enhancer)!=null?i:yd,n)}function DVe(e,t){var r=this,n=t.kind,i=t.name,o=new WeakSet;function a(s,l){var c,d,u=Ud(s)[Kt],f=new rd(l,(c=(d=r.options_)==null?void 0:d.enhancer)!=null?c:yd,"ObservableObject."+i.toString(),!1);u.values_.set(i,f),o.add(s)}if(n=="accessor")return{get:function(){return o.has(this)||a(this,e.get.call(this)),this[Kt].getObservablePropValue_(i)},set:function(l){return o.has(this)||a(this,l),this[Kt].setObservablePropValue_(i,l)},init:function(l){return o.has(this)||a(this,l),l}}}function LVe(e,t,r,n){t.annotationType_}var jVe="true",FVe=oae();function oae(e){return{annotationType_:jVe,options_:e,make_:zVe,extend_:BVe,decorate_20223_:HVe}}function zVe(e,t,r,n){var i,o;if(r.get)return kR.make_(e,t,r,n);if(r.set){var a=Sd(t.toString(),r.set);return n===e.target_?e.defineProperty_(t,{configurable:Ot.safeDescriptors?e.isPlainObject_:!0,set:a})===null?0:2:(Ns(n,t,{configurable:!0,set:a}),2)}if(n!==e.target_&&typeof r.value=="function"){var s;if(Xoe(r.value)){var l,c=(l=this.options_)!=null&&l.autoBind?Op.bound:Op;return c.make_(e,t,r,n)}var d=(s=this.options_)!=null&&s.autoBind?Ey.bound:Ey;return d.make_(e,t,r,n)}var u=((i=this.options_)==null?void 0:i.deep)===!1?bi.ref:bi;if(typeof r.value=="function"&&(o=this.options_)!=null&&o.autoBind){var f;r.value=r.value.bind((f=e.proxy_)!=null?f:e.target_)}return u.make_(e,t,r,n)}function BVe(e,t,r,n){var i,o;if(r.get)return kR.extend_(e,t,r,n);if(r.set)return e.defineProperty_(t,{configurable:Ot.safeDescriptors?e.isPlainObject_:!0,set:Sd(t.toString(),r.set)},n);if(typeof r.value=="function"&&(i=this.options_)!=null&&i.autoBind){var a;r.value=r.value.bind((a=e.proxy_)!=null?a:e.target_)}var s=((o=this.options_)==null?void 0:o.deep)===!1?bi.ref:bi;return s.extend_(e,t,r,n)}function HVe(e,t){kr("'"+this.annotationType_+"' cannot be used as a decorator")}var VVe="observable",UVe="observable.ref",WVe="observable.shallow",qVe="observable.struct",aae={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(aae);function v1(e){return e||aae}var tk=$R(VVe),GVe=$R(UVe,{enhancer:MR}),KVe=$R(WVe,{enhancer:yVe}),YVe=$R(qVe,{enhancer:SVe}),sae=Ds(tk);function g1(e){return e.deep===!0?yd:e.deep===!1?MR:QVe(e.defaultDecorator)}function XVe(e){var t;return e?(t=e.defaultDecorator)!=null?t:oae(e):void 0}function QVe(e){var t,r;return e&&(t=(r=e.options_)==null?void 0:r.enhancer)!=null?t:yd}function lae(e,t,r){if(q0(t))return tk.decorate_20223_(e,t);if(gd(t)){W0(e,t,tk);return}return Iae(e)?e:El(e)?bi.object(e,t,r):Array.isArray(e)?bi.array(e,t):vh(e)?bi.map(e,t):ol(e)?bi.set(e,t):typeof e=="object"&&e!==null?e:bi.box(e,t)}
485qoe(lae,sae);var JVe={box:function(t,r){var n=v1(r);return new rd(t,g1(n),n.name,!0,n.equals)},array:function(t,r){var n=v1(r);return(Ot.useProxies===!1||n.proxy===!1?KUe:jUe)(t,g1(n),n.name)},map:function(t,r){var n=v1(r);return new Tae(t,g1(n),n.name)},set:function(t,r){var n=v1(r);return new Aae(t,g1(n),n.name)},object:function(t,r,n){return ru(function(){return Eae(Ot.useProxies===!1||(n==null?void 0:n.proxy)===!1?Ud({},n):NUe({},n),t,r)})},ref:Ds(GVe),shallow:Ds(KVe),deep:sae,struct:Ds(YVe)},bi=qoe(lae,JVe),cae="computed",ZVe="computed.struct",rk=JD(cae),eUe=JD(ZVe,{equals:Gb.structural}),kR=function(t,r){if(q0(r))return rk.decorate_20223_(t,r);if(gd(r))return W0(t,r,rk);if(El(t))return Ds(JD(cae,t));var n=El(r)?r:{};return n.get=t,n.name||(n.name=t.name||""),new cs(n)};Object.assign(kR,rk);kR.struct=Ds(eUe);var UW,WW,Kb=0,tUe=1,rUe=(UW=(WW=qb(function(){},"name"))==null?void 0:WW.configurable)!=null?UW:!1,qW={value:"action",configurable:!0,writable:!1,enumerable:!1};function Sd(e,t,r,n){r===void 0&&(r=!1);function i(){return nUe(e,r,t,n||this,arguments)}return i.isMobxAction=!0,i.toString=function(){return t.toString()},rUe&&(qW.value=e,Ns(i,"name",qW)),i}function nUe(e,t,r,n,i){var o=iUe(e,t);try{return r.apply(n,i)}catch(a){throw o.error_=a,a}finally{oUe(o)}}function iUe(e,t,r,n){var i=!1,o=0,a=Ot.trackingDerivation,s=!t||!a;xa();var l=Ot.allowStateChanges;s&&(Hd(),l=ZD(!0));var c=t6(!0),d={runAsAction_:s,prevDerivation_:a,prevAllowStateChanges_:l,prevAllowStateReads_:c,notifySpy_:i,startTime_:o,actionId_:tUe++,parentActionId_:Kb};return Kb=d.actionId_,d}function oUe(e){Kb!==e.actionId_&&kr(30),Kb=e.parentActionId_,e.error_!==void 0&&(Ot.suppressReactionErrors=!0),e6(e.prevAllowStateChanges_),Sm(e.prevAllowStateReads_),Oa(),e.runAsAction_&&vl(e.prevDerivation_),Ot.suppressReactionErrors=!1}function ZD(e){var t=Ot.allowStateChanges;return Ot.allowStateChanges=e,t}function e6(e){Ot.allowStateChanges=e}var rd=function(e){function t(n,i,o,a,s){var l;return o===void 0&&(o="ObservableValue"),s===void 0&&(s=Gb.default),l=e.call(this,o)||this,l.enhancer=void 0,l.name_=void 0,l.equals=void 0,l.hasUnreportedChange_=!1,l.interceptors_=void 0,l.changeListeners_=void 0,l.value_=void 0,l.dehancer=void 0,l.enhancer=i,l.name_=o,l.equals=s,l.value_=i(n,void 0,o),l}eae(t,e);var r=t.prototype;return r.dehanceValue=function(i){return this.dehancer!==void 0?this.dehancer(i):i},r.set=function(i){this.value_,i=this.prepareNewValue_(i),i!==Ot.UNCHANGED&&this.setNewValue_(i)},r.prepareNewValue_=function(i){if(_a(this)){var o=Ea(this,{object:this,type:Ls,newValue:i});if(!o)return Ot.UNCHANGED;i=o.newValue}return i=this.enhancer(i,this.value_,this.name_),this.equals(this.value_,i)?Ot.UNCHANGED:i},r.setNewValue_=function(i){var o=this.value_;this.value_=i,this.reportChanged(),ns(this)&&is(this,{type:Ls,object:this,newValue:i,oldValue:o})},r.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},r.intercept_=function(i){return K0(this,i)},r.observe_=function(i,o){return o&&i({observableKind:"value",debugObjectName:this.name_,object:this,type:Ls,newValue:this.value_,oldValue:void 0}),Y0(this,i)},r.raw=function(){return this.value_},r.toJSON=function(){return this.get()},r.toString=function(){return this.name_+"["+this.value_+"]"},r.valueOf=function(){return Zoe(this.get())},r[Symbol.toPrimitive]=function(){return this.valueOf()},t}(tu),cs=function(){function e(r){this.dependenciesState_=jr.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.observers_=new Set,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=jr.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new Xb(null),this.name_=void 0,this.triggeredBy_=void 0,this.flags_=0,this.derivation=void 0,this.setter_=void 0,this.isTracing_=Yb.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,r.get||kr(31),this.derivation=r.get,this.name_=r.name||"ComputedValue",r.set&&(this.setter_=Sd("ComputedValue-setter",r.set)),this.equals_=r.equals||(r.compareStructural||r.struct?Gb.structural
485:Gb.default),this.scope_=r.context,this.requiresReaction_=r.requiresReaction,this.keepAlive_=!!r.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){uUe(this)},t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(n){return n()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(n){return n()})},t.get=function(){if(this.isComputing&&kr(32,this.name_,this.derivation),Ot.inBatch===0&&this.observers_.size===0&&!this.keepAlive_)nk(this)&&(this.warnAboutUntrackedRead_(),xa(),this.value_=this.computeValue_(!1),Oa());else if(gae(this),nk(this)){var n=Ot.trackingContext;this.keepAlive_&&!n&&(Ot.trackingContext=this),this.trackAndCompute()&&cUe(this),Ot.trackingContext=n}var i=this.value_;if(RC(i))throw i.cause;return i},t.set=function(n){if(this.setter_){this.isRunningSetter&&kr(33,this.name_),this.isRunningSetter=!0;try{this.setter_.call(this.scope_,n)}finally{this.isRunningSetter=!1}}else kr(34,this.name_)},t.trackAndCompute=function(){var n=this.value_,i=this.dependenciesState_===jr.NOT_TRACKING_,o=this.computeValue_(!0),a=i||RC(n)||RC(o)||!this.equals_(n,o);return a&&(this.value_=o),a},t.computeValue_=function(n){this.isComputing=!0;var i=ZD(!1),o;if(n)o=uae(this,this.derivation,this.scope_);else if(Ot.disableErrorBoundaries===!0)o=this.derivation.call(this.scope_);else try{o=this.derivation.call(this.scope_)}catch(a){o=new Xb(a)}return e6(i),this.isComputing=!1,o},t.suspend_=function(){this.keepAlive_||(ik(this),this.value_=void 0)},t.observe_=function(n,i){var o=this,a=!0,s=void 0;return CUe(function(){var l=o.get();if(!a||i){var c=Hd();n({observableKind:"computed",debugObjectName:o.name_,type:Ls,object:o,newValue:l,oldValue:s}),vl(c)}a=!1,s=l})},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return Zoe(this.get())},t[Symbol.toPrimitive]=function(){return this.valueOf()},gh(e,[{key:"isComputing",get:function(){return Wo(this.flags_,e.isComputingMask_)},set:function(n){this.flags_=qo(this.flags_,e.isComputingMask_,n)}},{key:"isRunningSetter",get:function(){return Wo(this.flags_,e.isRunningSetterMask_)},set:function(n){this.flags_=qo(this.flags_,e.isRunningSetterMask_,n)}},{key:"isBeingObserved",get:function(){return Wo(this.flags_,e.isBeingObservedMask_)},set:function(n){this.flags_=qo(this.flags_,e.isBeingObservedMask_,n)}},{key:"isPendingUnobservation",get:function(){return Wo(this.flags_,e.isPendingUnobservationMask_)},set:function(n){this.flags_=qo(this.flags_,e.isPendingUnobservationMask_,n)}},{key:"diffValue",get:function(){return Wo(this.flags_,e.diffValueMask_)?1:0},set:function(n){this.flags_=qo(this.flags_,e.diffValueMask_,n===1)}}])}();cs.isComputingMask_=1;cs.isRunningSetterMask_=2;cs.isBeingObservedMask_=4;cs.isPendingUnobservationMask_=8;cs.diffValueMask_=16;var NR=Bd("ComputedValue",cs),jr;(function(e){e[e.NOT_TRACKING_=-1]="NOT_TRACKING_",e[e.UP_TO_DATE_=0]="UP_TO_DATE_",e[e.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",e[e.STALE_=2]="STALE_"})(jr||(jr={}));var Yb;(function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"})(Yb||(Yb={}));var Xb=function(t){this.cause=void 0,this.cause=t};function RC(e){return e instanceof Xb}function nk(e){switch(e.dependenciesState_){case jr.UP_TO_DATE_:return!1;case jr.NOT_TRACKING_:case jr.STALE_:return!0;case jr.POSSIBLY_STALE_:{for(var t=t6(!0),r=Hd(),n=e.observing_,i=n.length,o=0;o<i;o++){var a=n[o];if(NR(a)){if(Ot.disableErrorBoundaries)a.get();else try{a.get()}catch{return vl(r),Sm(t),!0}if(e.dependenciesState_===jr.STALE_)return vl(r),Sm(t),!0}}return fae(e),vl(r),Sm(t),!1}}}function uae(e,t,r){var n=t6(!0);fae(e),e.newObserving_=new Array(e.runId_===0?100:e.observing_.length),e.unboundDepsCount_=0,e.runId_=++Ot.runId;var i=Ot.trackingDerivation;Ot.trackingDerivation=e,Ot.inBatch++;var o;if(Ot.disableErrorBoundaries===!0)o=t.call(r);else try{o=t.call(r)}catch(a){o=new Xb(a)}return Ot.inBatch--,Ot.trackingDerivation=i,aUe(e),Sm(n),o}function aUe(e){for(var t=e.observing_,r=e.observing_=e.newObserving_,n=jr.UP_TO_DATE_,i=0,o=e.unboundDepsCount_,a=0;a<o;a++){var s=r[a];s.diffValue===0&&(s.diffValue=1,i!==a&&(r[i]=s),i++),s.dependenciesState_>n&&(n=s.dependenciesState_)}for(r.length=i,e.newObserving_=null,o=t.length;o--;){var l=t[o];l.diffValue===0&&hae(l,e),l.diffValue=0}for(;i--;){var c=r[i];c.diffValue===1&&(c.diffValue=0,lUe(c,e))}
vendor: 4,739 bytes, line 485
485n!==jr.UP_TO_DATE_&&(e.dependenciesState_=n,e.onBecomeStale_())}function ik(e){var t=e.observing_;e.observing_=[];for(var r=t.length;r--;)hae(t[r],e);e.dependenciesState_=jr.NOT_TRACKING_}function dae(e){var t=Hd();try{return e()}finally{vl(t)}}function Hd(){var e=Ot.trackingDerivation;return Ot.trackingDerivation=null,e}function vl(e){Ot.trackingDerivation=e}function t6(e){var t=Ot.allowStateReads;return Ot.allowStateReads=e,t}function Sm(e){Ot.allowStateReads=e}function fae(e){if(e.dependenciesState_!==jr.UP_TO_DATE_){e.dependenciesState_=jr.UP_TO_DATE_;for(var t=e.observing_,r=t.length;r--;)t[r].lowestObserverState_=jr.UP_TO_DATE_}}var PC=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},IC=!0,pae=!1,Ot=function(){var e=OR();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(IC=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==new PC().version&&(IC=!1),IC?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new PC):(setTimeout(function(){pae||kr(35)},1),new PC)}();function sUe(){if((Ot.pendingReactions.length||Ot.inBatch||Ot.isRunningReactions)&&kr(36),pae=!0,IC){var e=OR();--e.__mobxInstanceCount===0&&(e.__mobxGlobals=void 0),Ot=new PC}}function lUe(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function hae(e,t){e.observers_.delete(t),e.observers_.size===0&&vae(e)}function vae(e){e.isPendingUnobservation===!1&&(e.isPendingUnobservation=!0,Ot.pendingUnobservations.push(e))}function xa(){Ot.inBatch++}function Oa(){if(--Ot.inBatch===0){yae();for(var e=Ot.pendingUnobservations,t=0;t<e.length;t++){var r=e[t];r.isPendingUnobservation=!1,r.observers_.size===0&&(r.isBeingObserved&&(r.isBeingObserved=!1,r.onBUO()),r instanceof cs&&r.suspend_())}Ot.pendingUnobservations=[]}}function gae(e){var t=Ot.trackingDerivation;return t!==null?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved&&Ot.trackingContext&&(e.isBeingObserved=!0,e.onBO())),e.isBeingObserved):(e.observers_.size===0&&Ot.inBatch>0&&vae(e),!1)}function mae(e){e.lowestObserverState_!==jr.STALE_&&(e.lowestObserverState_=jr.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===jr.UP_TO_DATE_&&t.onBecomeStale_(),t.dependenciesState_=jr.STALE_}))}function cUe(e){e.lowestObserverState_!==jr.STALE_&&(e.lowestObserverState_=jr.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===jr.POSSIBLY_STALE_?t.dependenciesState_=jr.STALE_:t.dependenciesState_===jr.UP_TO_DATE_&&(e.lowestObserverState_=jr.UP_TO_DATE_)}))}function uUe(e){e.lowestObserverState_===jr.UP_TO_DATE_&&(e.lowestObserverState_=jr.POSSIBLY_STALE_,e.observers_.forEach(function(t){t.dependenciesState_===jr.UP_TO_DATE_&&(t.dependenciesState_=jr.POSSIBLY_STALE_,t.onBecomeStale_())}))}var Hs=function(){function e(r,n,i,o){r===void 0&&(r="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=jr.NOT_TRACKING_,this.runId_=0,this.unboundDepsCount_=0,this.flags_=0,this.isTracing_=Yb.NONE,this.name_=r,this.onInvalidate_=n,this.errorHandler_=i,this.requiresObservable_=o}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled||(this.isScheduled=!0,Ot.pendingReactions.push(this),yae())},t.runReaction_=function(){if(!this.isDisposed){xa(),this.isScheduled=!1;var n=Ot.trackingContext;if(Ot.trackingContext=this,nk(this)){this.isTrackPending=!0;try{this.onInvalidate_()}catch(i){this.reportExceptionInDerivation_(i)}}Ot.trackingContext=n,Oa()}},t.track=function(n){if(!this.isDisposed){xa(),this.isRunning=!0;var i=Ot.trackingContext;Ot.trackingContext=this;var o=uae(this,n,void 0);Ot.trackingContext=i,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&ik(this),RC(o)&&this.reportExceptionInDerivation_(o.cause),Oa()}},t.reportExceptionInDerivation_=function(n){var i=this;if(this.errorHandler_){this.errorHandler_(n,this);return}if(Ot.disableErrorBoundaries)throw n;var o="[mobx] uncaught error in '"+this+"'";
485Ot.suppressReactionErrors,Ot.globalReactionErrorHandlers.forEach(function(a){return a(n,i)})},t.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.isRunning||(xa(),ik(this),Oa()))},t.getDisposer_=function(n){var i=this,o=function a(){i.dispose(),n==null||n.removeEventListener==null||n.removeEventListener("abort",a)};return n==null||n.addEventListener==null||n.addEventListener("abort",o),o[Kt]=this,o},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(n){},gh(e,[{key:"isDisposed",get:function(){return Wo(this.flags_,e.isDisposedMask_)},set:function(n){this.flags_=qo(this.flags_,e.isDisposedMask_,n)}},{key:"isScheduled",get:function(){return Wo(this.flags_,e.isScheduledMask_)},set:function(n){this.flags_=qo(this.flags_,e.isScheduledMask_,n)}},{key:"isTrackPending",get:function(){return Wo(this.flags_,e.isTrackPendingMask_)},set:function(n){this.flags_=qo(this.flags_,e.isTrackPendingMask_,n)}},{key:"isRunning",get:function(){return Wo(this.flags_,e.isRunningMask_)},set:function(n){this.flags_=qo(this.flags_,e.isRunningMask_,n)}},{key:"diffValue",get:function(){return Wo(this.flags_,e.diffValueMask_)?1:0},set:function(n){this.flags_=qo(this.flags_,e.diffValueMask_,n===1)}}])}();Hs.isDisposedMask_=1;Hs.isScheduledMask_=2;Hs.isTrackPendingMask_=4;Hs.isRunningMask_=8;Hs.diffValueMask_=16;var dUe=100,ok=function(t){return t()};function yae(){Ot.inBatch>0||Ot.isRunningReactions||ok(fUe)}function fUe(){Ot.isRunningReactions=!0;for(var e=Ot.pendingReactions,t=0;e.length>0;){++t===dUe&&e.splice(0);for(var r=e.splice(0),n=0,i=r.length;n<i;n++)r[n].runReaction_()}Ot.isRunningReactions=!1}var Qb=Bd("Reaction",Hs);function pUe(e){var t=ok;ok=function(n){return e(function(){return t(n)})}}function Cm(){return!1}function hUe(e){return function(){}}var Sae="action",vUe="action.bound",Cae="autoAction",gUe="autoAction.bound",mUe="<unnamed action>",ak=G0(Sae),yUe=G0(vUe,{bound:!0}),sk=G0(Cae,{autoAction:!0}),SUe=G0(gUe,{autoAction:!0,bound:!0});function bae(e){var t=function(n,i){if(ls(n))return Sd(n.name||mUe,n,e);if(ls(i))return Sd(n,i,e);if(q0(i))return(e?sk:ak).decorate_20223_(n,i);if(gd(i))return W0(n,i,e?sk:ak);if(gd(n))return Ds(G0(e?Cae:Sae,{name:n,autoAction:e}))};return t}var Hf=bae(!1);Object.assign(Hf,ak);var Ey=bae(!0);Object.assign(Ey,sk);Hf.bound=Ds(yUe);Ey.bound=Ds(SUe);function Ry(e){return ls(e)&&e.isMobxAction===!0}function CUe(e,t){var r,n,i,o;t===void 0&&(t=Goe);var a=(r=(n=t)==null?void 0:n.name)!=null?r:"Autorun",s=!t.scheduler&&!t.delay,l;if(s)l=new Hs(a,function(){this.track(u)},t.onError,t.requiresObservable);else{var c=wUe(t),d=!1;l=new Hs(a,function(){d||(d=!0,c(function(){d=!1,l.isDisposed||l.track(u)}))},t.onError,t.requiresObservable)}function u(){e(l)}return(i=t)!=null&&(i=i.signal)!=null&&i.aborted||l.schedule_(),l.getDisposer_((o=t)==null?void 0:o.signal)}var bUe=function(t){return t()};function wUe(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:bUe}var _Ue="onBO",EUe="onBUO";function RUe(e,t,r){return _ae(_Ue,e,t,r)}function wae(e,t,r){return _ae(EUe,e,t,r)}function _ae(e,t,r,n){var i=typeof n=="function"?Tp(t,r):Tp(t),o=ls(n)?n:r,a=e+"L";return i[a]?i[a].add(o):i[a]=new Set([o]),function(){var s=i[a];s&&(s.delete(o),s.size===0&&delete i[a])}}var PUe="never",m1="always",IUe="observed";function xUe(e){e.isolateGlobalState===!0&&sUe();var t=e.useProxies,r=e.enforceActions;if(t!==void 0&&(Ot.useProxies=t===m1?!0:t===PUe?!1:typeof Proxy<"u"),t==="ifavailable"&&(Ot.verifyProxies=!0),r!==void 0){var n=r===m1?m1:r===IUe;Ot.enforceActions=n,Ot.allowStateChanges=!(n===!0||n===m1)}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach(function(i){i in e&&(Ot[i]=!!e[i])}),Ot.allowStateReads=!Ot.observableRequiresReaction,e.reactionScheduler&&pUe(e.reactionScheduler)}function Eae(e,t,r,n){var i=cVe(t);return ru(function(){var o=Ud(e,n)[Kt];xp(i).forEach(function(a){o.extend_(a,i[a],r&&a in r?r[a]:!0)})}),e}function OUe(e,t){return Rae(Tp(e,t))}function Rae(e){var t={name:e.name_};return e.observing_&&e.observing_.length>0&&(t.dependencies=TUe(e.observing_).map(Rae)),t}function TUe(e){return Array.from(new Set(e))}var AUe=0;function Pae(){this.message="FLOW_CANCELLED"}Pae.prototype=Object.create(Error.prototype);var MT=nae("flow"),MUe=nae("flow.bound",{bound:!0}),Op=Object.assign(function(t,r){if(q0(r))return MT.decorate_20223_(t,r);
485if(gd(r))return W0(t,r,MT);var n=t,i=n.name||"<unnamed flow>",o=function(){var s=this,l=arguments,c=++AUe,d=Hf(i+" - runid: "+c+" - init",n).apply(s,l),u,f=void 0,h=new Promise(function(v,y){var g=0;u=y;function m(b){f=void 0;var w;try{w=Hf(i+" - runid: "+c+" - yield "+g++,d.next).call(d,b)}catch(E){return y(E)}C(w)}function S(b){f=void 0;var w;try{w=Hf(i+" - runid: "+c+" - yield "+g++,d.throw).call(d,b)}catch(E){return y(E)}C(w)}function C(b){if(ls(b==null?void 0:b.then)){b.then(C,y);return}return b.done?v(b.value):(f=Promise.resolve(b.value),f.then(m,S))}m(void 0)});return h.cancel=Hf(i+" - runid: "+c+" - cancel",function(){try{f&&GW(f);var v=d.return(void 0),y=Promise.resolve(v.value);y.then(zf,zf),GW(y),u(new Pae)}catch(g){u(g)}}),h};return o.isMobXFlow=!0,o},MT);Op.bound=Ds(MUe);function GW(e){ls(e.cancel)&&e.cancel()}function Py(e){return(e==null?void 0:e.isMobXFlow)===!0}function $Ue(e,t){return e?t!==void 0?Iy(e)?e[Kt].values_.has(t):!1:Iy(e)||!!e[Kt]||QD(e)||Qb(e)||NR(e):!1}function Iae(e){return $Ue(e)}function al(e,t){t===void 0&&(t=void 0),xa();try{return e.apply(t)}finally{Oa()}}function gf(e){return e[Kt]}var kUe={has:function(t,r){return gf(t).has_(r)},get:function(t,r){return gf(t).get_(r)},set:function(t,r,n){var i;return gd(r)?(i=gf(t).set_(r,n,!0))!=null?i:!0:!1},deleteProperty:function(t,r){var n;return gd(r)?(n=gf(t).delete_(r,!0))!=null?n:!0:!1},defineProperty:function(t,r,n){var i;return(i=gf(t).defineProperty_(r,n))!=null?i:!0},ownKeys:function(t){return gf(t).ownKeys_()},preventExtensions:function(t){kr(13)}};function NUe(e,t){var r,n;return Koe(),e=Ud(e,t),(n=(r=e[Kt]).proxy_)!=null?n:r.proxy_=new Proxy(e,kUe)}function _a(e){return e.interceptors_!==void 0&&e.interceptors_.length>0}function K0(e,t){var r=e.interceptors_||(e.interceptors_=[]);return r.push(t),Yoe(function(){var n=r.indexOf(t);n!==-1&&r.splice(n,1)})}function Ea(e,t){var r=Hd();try{for(var n=[].concat(e.interceptors_||[]),i=0,o=n.length;i<o&&(t=n[i](t),t&&!t.type&&kr(14),!!t);i++);return t}finally{vl(r)}}function ns(e){return e.changeListeners_!==void 0&&e.changeListeners_.length>0}function Y0(e,t){var r=e.changeListeners_||(e.changeListeners_=[]);return r.push(t),Yoe(function(){var n=r.indexOf(t);n!==-1&&r.splice(n,1)})}function is(e,t){var r=Hd(),n=e.changeListeners_;if(n){n=n.slice();for(var i=0,o=n.length;i<o;i++)n[i](t);vl(r)}}function xae(e,t,r){return ru(function(){var n,i=Ud(e,r)[Kt];(n=t)!=null||(t=pVe(e)),xp(t).forEach(function(o){return i.make_(o,t[o])})}),e}var $T=Symbol("mobx-keys");function jl(e,t,r){return El(e)?Eae(e,e,t,r):(ru(function(){var n=Ud(e,r)[Kt];if(!e[$T]){var i=Object.getPrototypeOf(e),o=new Set([].concat(xp(e),xp(i)));o.delete("constructor"),o.delete(Kt),U0(i,$T,o)}e[$T].forEach(function(a){return n.make_(a,t&&a in t?t[a]:!0)})}),e)}var KW="splice",Ls="update",DUe=1e4,LUe={get:function(t,r){var n=t[Kt];return r===Kt?n:r==="length"?n.getArrayLength_():typeof r=="string"&&!isNaN(r)?n.get_(parseInt(r)):hl(Jb,r)?Jb[r]:t[r]},set:function(t,r,n){var i=t[Kt];return r==="length"&&i.setArrayLength_(n),typeof r=="symbol"||isNaN(r)?t[r]=n:i.set_(parseInt(r),n),!0},preventExtensions:function(){kr(15)}},r6=function(){function e(r,n,i,o){r===void 0&&(r="ObservableArray"),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=i,this.legacyMode_=o,this.atom_=new tu(r),this.enhancer_=function(a,s){return n(a,s,"ObservableArray[..]")}}var t=e.prototype;return t.dehanceValue_=function(n){return this.dehancer!==void 0?this.dehancer(n):n},t.dehanceValues_=function(n){return this.dehancer!==void 0&&n.length>0?n.map(this.dehancer):n},t.intercept_=function(n){return K0(this,n)},t.observe_=function(n,i){return i===void 0&&(i=!1),i&&n({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),Y0(this,n)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(n){(typeof n!="number"||isNaN(n)||n<0)&&kr("Out of range: "+n);var i=this.values_.length;if(n!==i)if(n>i){for(var o=new Array(n-i),a=0;a<n-i;a++)o[a]=void 0;this.spliceWithArray_(i,0,o)}else this.spliceWithArray_(n,i-n)}
485,t.updateArrayLength_=function(n,i){n!==this.lastKnownLength_&&kr(16),this.lastKnownLength_+=i,this.legacyMode_&&i>0&&Nae(n+i+1)},t.spliceWithArray_=function(n,i,o){var a=this;this.atom_;var s=this.values_.length;if(n===void 0?n=0:n>s?n=s:n<0&&(n=Math.max(0,s+n)),arguments.length===1?i=s-n:i==null?i=0:i=Math.max(0,Math.min(i,s-n)),o===void 0&&(o=Z$),_a(this)){var l=Ea(this,{object:this.proxy_,type:KW,index:n,removedCount:i,added:o});if(!l)return Z$;i=l.removedCount,o=l.added}if(o=o.length===0?o:o.map(function(u){return a.enhancer_(u,void 0)}),this.legacyMode_){var c=o.length-i;this.updateArrayLength_(s,c)}var d=this.spliceItemsIntoValues_(n,i,o);return(i!==0||o.length!==0)&&this.notifyArraySplice_(n,o,d),this.dehanceValues_(d)},t.spliceItemsIntoValues_=function(n,i,o){if(o.length<DUe){var a;return(a=this.values_).splice.apply(a,[n,i].concat(o))}else{var s=this.values_.slice(n,n+i),l=this.values_.slice(n+i);this.values_.length+=o.length-i;for(var c=0;c<o.length;c++)this.values_[n+c]=o[c];for(var d=0;d<l.length;d++)this.values_[n+o.length+d]=l[d];return s}},t.notifyArrayChildUpdate_=function(n,i,o){var a=!this.owned_&&Cm(),s=ns(this),l=s||a?{observableKind:"array",object:this.proxy_,type:Ls,debugObjectName:this.atom_.name_,index:n,newValue:i,oldValue:o}:null;this.atom_.reportChanged(),s&&is(this,l)},t.notifyArraySplice_=function(n,i,o){var a=!this.owned_&&Cm(),s=ns(this),l=s||a?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:KW,index:n,removed:o,added:i,removedCount:o.length,addedCount:i.length}:null;this.atom_.reportChanged(),s&&is(this,l)},t.get_=function(n){if(!(this.legacyMode_&&n>=this.values_.length))return this.atom_.reportObserved(),this.dehanceValue_(this.values_[n])},t.set_=function(n,i){var o=this.values_;if(this.legacyMode_&&n>o.length&&kr(17,n,o.length),n<o.length){this.atom_;var a=o[n];if(_a(this)){var s=Ea(this,{type:Ls,object:this.proxy_,index:n,newValue:i});if(!s)return;i=s.newValue}i=this.enhancer_(i,a);var l=i!==a;l&&(o[n]=i,this.notifyArrayChildUpdate_(n,i,a))}else{for(var c=new Array(n+1-o.length),d=0;d<c.length-1;d++)c[d]=void 0;c[c.length-1]=i,this.spliceWithArray_(o.length,0,c)}},e}();function jUe(e,t,r,n){return r===void 0&&(r="ObservableArray"),n===void 0&&(n=!1),Koe(),ru(function(){var i=new r6(r,t,n,!1);Qoe(i.values_,Kt,i);var o=new Proxy(i.values_,LUe);return i.proxy_=o,e&&e.length&&i.spliceWithArray_(0,0,e),o})}var Jb={clear:function(){return this.splice(0)},replace:function(t){var r=this[Kt];return r.spliceWithArray_(0,r.values_.length,t)},toJSON:function(){return this.slice()},splice:function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];var a=this[Kt];switch(arguments.length){case 0:return[];case 1:return a.spliceWithArray_(t);case 2:return a.spliceWithArray_(t,r)}return a.spliceWithArray_(t,r,i)},spliceWithArray:function(t,r,n){return this[Kt].spliceWithArray_(t,r,n)},push:function(){for(var t=this[Kt],r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return t.spliceWithArray_(t.values_.length,0,n),t.values_.length},pop:function(){return this.splice(Math.max(this[Kt].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var t=this[Kt],r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return t.spliceWithArray_(0,0,n),t.values_.length},reverse:function(){return Ot.trackingDerivation&&kr(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){Ot.trackingDerivation&&kr(37,"sort");var t=this.slice();return t.sort.apply(t,arguments),this.replace(t),this},remove:function(t){var r=this[Kt],n=r.dehanceValues_(r.values_).indexOf(t);return n>-1?(this.splice(n,1),!0):!1}};cn("at",ca);cn("concat",ca);cn("flat",ca);cn("includes",ca);cn("indexOf",ca);cn("join",ca);cn("lastIndexOf",ca);cn("slice",ca);cn("toString",ca);cn("toLocaleString",ca);cn("toSorted",ca);cn("toSpliced",ca);cn("with",ca);cn("every",Ss);cn("filter",Ss);cn("find",Ss);cn("findIndex",Ss);cn("findLast",Ss);cn("findLastIndex",Ss);cn("flatMap",Ss);cn("forEach",Ss);cn("map",Ss);
vendor: 4,141 bytes, line 485
485cn("some",Ss);cn("toReversed",Ss);cn("reduce",Oae);cn("reduceRight",Oae);function cn(e,t){typeof Array.prototype[e]=="function"&&(Jb[e]=t(e))}function ca(e){return function(){var t=this[Kt];t.atom_.reportObserved();var r=t.dehanceValues_(t.values_);return r[e].apply(r,arguments)}}function Ss(e){return function(t,r){var n=this,i=this[Kt];i.atom_.reportObserved();var o=i.dehanceValues_(i.values_);return o[e](function(a,s){return t.call(r,a,s,n)})}}function Oae(e){return function(){var t=this,r=this[Kt];r.atom_.reportObserved();var n=r.dehanceValues_(r.values_),i=arguments[0];return arguments[0]=function(o,a,s){return i(o,a,s,t)},n[e].apply(n,arguments)}}var FUe=Bd("ObservableArrayAdministration",r6);function DR(e){return AR(e)&&FUe(e[Kt])}var zUe={},fc="add",Zb="delete",Tae=function(){function e(r,n,i){var o=this;n===void 0&&(n=yd),i===void 0&&(i="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[Kt]=zUe,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=n,this.name_=i,ls(Map)||kr(18),ru(function(){o.keysAtom_=tae("ObservableMap.keys()"),o.data_=new Map,o.hasMap_=new Map,r&&o.merge(r)})}var t=e.prototype;return t.has_=function(n){return this.data_.has(n)},t.has=function(n){var i=this;if(!Ot.trackingDerivation)return this.has_(n);var o=this.hasMap_.get(n);if(!o){var a=o=new rd(this.has_(n),MR,"ObservableMap.key?",!1);this.hasMap_.set(n,a),wae(a,function(){return i.hasMap_.delete(n)})}return o.get()},t.set=function(n,i){var o=this.has_(n);if(_a(this)){var a=Ea(this,{type:o?Ls:fc,object:this,newValue:i,name:n});if(!a)return this;i=a.newValue}return o?this.updateValue_(n,i):this.addValue_(n,i),this},t.delete=function(n){var i=this;if(this.keysAtom_,_a(this)){var o=Ea(this,{type:Zb,object:this,name:n});if(!o)return!1}if(this.has_(n)){var a=Cm(),s=ns(this),l=s||a?{observableKind:"map",debugObjectName:this.name_,type:Zb,object:this,oldValue:this.data_.get(n).value_,name:n}:null;return al(function(){var c;i.keysAtom_.reportChanged(),(c=i.hasMap_.get(n))==null||c.setNewValue_(!1);var d=i.data_.get(n);d.setNewValue_(void 0),i.data_.delete(n)}),s&&is(this,l),!0}return!1},t.updateValue_=function(n,i){var o=this.data_.get(n);if(i=o.prepareNewValue_(i),i!==Ot.UNCHANGED){var a=Cm(),s=ns(this),l=s||a?{observableKind:"map",debugObjectName:this.name_,type:Ls,object:this,oldValue:o.value_,name:n,newValue:i}:null;o.setNewValue_(i),s&&is(this,l)}},t.addValue_=function(n,i){var o=this;this.keysAtom_,al(function(){var c,d=new rd(i,o.enhancer_,"ObservableMap.key",!1);o.data_.set(n,d),i=d.value_,(c=o.hasMap_.get(n))==null||c.setNewValue_(!0),o.keysAtom_.reportChanged()});var a=Cm(),s=ns(this),l=s||a?{observableKind:"map",debugObjectName:this.name_,type:fc,object:this,name:n,newValue:i}:null;s&&is(this,l)},t.get=function(n){return this.has(n)?this.dehanceValue_(this.data_.get(n).get()):this.dehanceValue_(void 0)},t.dehanceValue_=function(n){return this.dehancer!==void 0?this.dehancer(n):n},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var n=this,i=this.keys();return YW({next:function(){var a=i.next(),s=a.done,l=a.value;return{done:s,value:s?void 0:n.get(l)}}})},t.entries=function(){var n=this,i=this.keys();return YW({next:function(){var a=i.next(),s=a.done,l=a.value;return{done:s,value:s?void 0:[l,n.get(l)]}}})},t[Symbol.iterator]=function(){return this.entries()},t.forEach=function(n,i){for(var o=Bf(this),a;!(a=o()).done;){var s=a.value,l=s[0],c=s[1];n.call(i,c,l,this)}},t.merge=function(n){var i=this;return Vd(n)&&(n=new Map(n)),al(function(){El(n)?lVe(n).forEach(function(o){return i.set(o,n[o])}):Array.isArray(n)?n.forEach(function(o){var a=o[0],s=o[1];return i.set(a,s)}):vh(n)?(sVe(n)||kr(19,n),n.forEach(function(o,a){return i.set(a,o)})):n!=null&&kr(20,n)}),this},t.clear=function(){var n=this;al(function(){dae(function(){for(var i=Bf(n.keys()),o;!(o=i()).done;){var a=o.value;n.delete(a)}})})},t.replace=function(n){var i=this;return al(function(){for(var o=BUe(n),a=new Map,s=!1,l=Bf(i.data_.keys()),c;!(c=l()).done;){var d=c.value;
485if(!o.has(d)){var u=i.delete(d);if(u)s=!0;else{var f=i.data_.get(d);a.set(d,f)}}}for(var h=Bf(o.entries()),v;!(v=h()).done;){var y=v.value,g=y[0],m=y[1],S=i.data_.has(g);if(i.set(g,m),i.data_.has(g)){var C=i.data_.get(g);a.set(g,C),S||(s=!0)}}if(!s)if(i.data_.size!==a.size)i.keysAtom_.reportChanged();else for(var b=i.data_.keys(),w=a.keys(),E=b.next(),_=w.next();!E.done;){if(E.value!==_.value){i.keysAtom_.reportChanged();break}E=b.next(),_=w.next()}i.data_=a}),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(n,i){return Y0(this,n)},t.intercept_=function(n){return K0(this,n)},gh(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Map"}}])}(),Vd=Bd("ObservableMap",Tae);function YW(e){return e[Symbol.toStringTag]="MapIterator",o6(e)}function BUe(e){if(vh(e)||Vd(e))return e;if(Array.isArray(e))return new Map(e);if(El(e)){var t=new Map;for(var r in e)t.set(r,e[r]);return t}else return kr(21,e)}var HUe={},Aae=function(){function e(r,n,i){var o=this;n===void 0&&(n=yd),i===void 0&&(i="ObservableSet"),this.name_=void 0,this[Kt]=HUe,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=i,ls(Set)||kr(22),this.enhancer_=function(a,s){return n(a,s,i)},ru(function(){o.atom_=tae(o.name_),r&&o.replace(r)})}var t=e.prototype;return t.dehanceValue_=function(n){return this.dehancer!==void 0?this.dehancer(n):n},t.clear=function(){var n=this;al(function(){dae(function(){for(var i=Bf(n.data_.values()),o;!(o=i()).done;){var a=o.value;n.delete(a)}})})},t.forEach=function(n,i){for(var o=Bf(this),a;!(a=o()).done;){var s=a.value;n.call(i,s,s,this)}},t.add=function(n){var i=this;if(this.atom_,_a(this)){var o=Ea(this,{type:fc,object:this,newValue:n});if(!o)return this;n=o.newValue}if(!this.has(n)){al(function(){i.data_.add(i.enhancer_(n,void 0)),i.atom_.reportChanged()});var a=!1,s=ns(this),l=s||a?{observableKind:"set",debugObjectName:this.name_,type:fc,object:this,newValue:n}:null;s&&is(this,l)}return this},t.delete=function(n){var i=this;if(_a(this)){var o=Ea(this,{type:Zb,object:this,oldValue:n});if(!o)return!1}if(this.has(n)){var a=!1,s=ns(this),l=s||a?{observableKind:"set",debugObjectName:this.name_,type:Zb,object:this,oldValue:n}:null;return al(function(){i.atom_.reportChanged(),i.data_.delete(n)}),s&&is(this,l),!0}return!1},t.has=function(n){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(n))},t.entries=function(){var n=this.values();return XW({next:function(){var o=n.next(),a=o.value,s=o.done;return s?{value:void 0,done:s}:{value:[a,a],done:s}}})},t.keys=function(){return this.values()},t.values=function(){this.atom_.reportObserved();var n=this,i=this.data_.values();return XW({next:function(){var a=i.next(),s=a.value,l=a.done;return l?{value:void 0,done:l}:{value:n.dehanceValue_(s),done:l}}})},t.intersection=function(n){if(ol(n)&&!Is(n))return n.intersection(this);var i=new Set(this);return i.intersection(n)},t.union=function(n){if(ol(n)&&!Is(n))return n.union(this);var i=new Set(this);return i.union(n)},t.difference=function(n){return new Set(this).difference(n)},t.symmetricDifference=function(n){if(ol(n)&&!Is(n))return n.symmetricDifference(this);var i=new Set(this);return i.symmetricDifference(n)},t.isSubsetOf=function(n){return new Set(this).isSubsetOf(n)},t.isSupersetOf=function(n){return new Set(this).isSupersetOf(n)},t.isDisjointFrom=function(n){if(ol(n)&&!Is(n))return n.isDisjointFrom(this);var i=new Set(this);return i.isDisjointFrom(n)},t.replace=function(n){var i=this;return Is(n)&&(n=new Set(n)),al(function(){Array.isArray(n)?(i.clear(),n.forEach(function(o){return i.add(o)})):ol(n)?(i.clear(),n.forEach(function(o){return i.add(o)})):n!=null&&kr("Cannot initialize set from "+n)}),this},t.observe_=function(n,i){return Y0(this,n)},t.intercept_=function(n){return K0(this,n)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[Symbol.iterator]=function(){return this.values()},gh(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Set"}}])}(),Is=Bd("ObservableSet",Aae);function XW(e){return e[Symbol.toStringTag]="SetIterator",o6(e)}var QW=Object.create(null),JW="remove",Mae=function(){function e(r,n,i,o){n===void 0&&(n=new Map),o===void 0&&(o=
485FVe),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.target_=r,this.values_=n,this.name_=i,this.defaultAnnotation_=o,this.keysAtom_=new tu("ObservableObject.keys"),this.isPlainObject_=El(this.target_)}var t=e.prototype;return t.getObservablePropValue_=function(n){return this.values_.get(n).get()},t.setObservablePropValue_=function(n,i){var o=this.values_.get(n);if(o instanceof cs)return o.set(i),!0;if(_a(this)){var a=Ea(this,{type:Ls,object:this.proxy_||this.target_,name:n,newValue:i});if(!a)return null;i=a.newValue}if(i=o.prepareNewValue_(i),i!==Ot.UNCHANGED){var s=ns(this),l=!1,c=s||l?{type:Ls,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:o.value_,name:n,newValue:i}:null;o.setNewValue_(i),s&&is(this,c)}return!0},t.get_=function(n){return Ot.trackingDerivation&&!hl(this.target_,n)&&this.has_(n),this.target_[n]},t.set_=function(n,i,o){return o===void 0&&(o=!1),hl(this.target_,n)?this.values_.has(n)?this.setObservablePropValue_(n,i):o?Reflect.set(this.target_,n,i):(this.target_[n]=i,!0):this.extend_(n,{value:i,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,o)},t.has_=function(n){if(!Ot.trackingDerivation)return n in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var i=this.pendingKeys_.get(n);return i||(i=new rd(n in this.target_,MR,"ObservableObject.key?",!1),this.pendingKeys_.set(n,i)),i.get()},t.make_=function(n,i){if(i===!0&&(i=this.defaultAnnotation_),i!==!1){if(!(n in this.target_)){var o;if((o=this.target_[Ts])!=null&&o[n])return;kr(1,i.annotationType_,this.name_+"."+n.toString())}for(var a=this.target_;a&&a!==TR;){var s=qb(a,n);if(s){var l=i.make_(this,n,s,a);if(l===0)return;if(l===1)break}a=Object.getPrototypeOf(a)}eq(this,i,n)}},t.extend_=function(n,i,o,a){if(a===void 0&&(a=!1),o===!0&&(o=this.defaultAnnotation_),o===!1)return this.defineProperty_(n,i,a);var s=o.extend_(this,n,i,a);return s&&eq(this,o,n),s},t.defineProperty_=function(n,i,o){o===void 0&&(o=!1),this.keysAtom_;try{xa();var a=this.delete_(n);if(!a)return a;if(_a(this)){var s=Ea(this,{object:this.proxy_||this.target_,name:n,type:fc,newValue:i.value});if(!s)return null;var l=s.newValue;i.value!==l&&(i=md({},i,{value:l}))}if(o){if(!Reflect.defineProperty(this.target_,n,i))return!1}else Ns(this.target_,n,i);this.notifyPropertyAddition_(n,i.value)}finally{Oa()}return!0},t.defineObservableProperty_=function(n,i,o,a){a===void 0&&(a=!1),this.keysAtom_;try{xa();var s=this.delete_(n);if(!s)return s;if(_a(this)){var l=Ea(this,{object:this.proxy_||this.target_,name:n,type:fc,newValue:i});if(!l)return null;i=l.newValue}var c=ZW(n),d={configurable:Ot.safeDescriptors?this.isPlainObject_:!0,enumerable:!0,get:c.get,set:c.set};if(a){if(!Reflect.defineProperty(this.target_,n,d))return!1}else Ns(this.target_,n,d);var u=new rd(i,o,"ObservableObject.key",!1);this.values_.set(n,u),this.notifyPropertyAddition_(n,u.value_)}finally{Oa()}return!0},t.defineComputedProperty_=function(n,i,o){o===void 0&&(o=!1),this.keysAtom_;try{xa();var a=this.delete_(n);if(!a)return a;if(_a(this)){var s=Ea(this,{object:this.proxy_||this.target_,name:n,type:fc,newValue:void 0});if(!s)return null}i.name||(i.name="ObservableObject.key"),i.context=this.proxy_||this.target_;var l=ZW(n),c={configurable:Ot.safeDescriptors?this.isPlainObject_:!0,enumerable:!1,get:l.get,set:l.set};if(o){if(!Reflect.defineProperty(this.target_,n,c))return!1}else Ns(this.target_,n,c);this.values_.set(n,new cs(i)),this.notifyPropertyAddition_(n,void 0)}finally{Oa()}return!0},t.delete_=function(n,i){if(i===void 0&&(i=!1),this.keysAtom_,!hl(this.target_,n))return!0;if(_a(this)){var o=Ea(this,{object:this.proxy_||this.target_,name:n,type:JW});if(!o)return null}try{var a;xa();var s=ns(this),l=!1,c=this.values_.get(n),d=void 0;if(!c&&(s||l)){var u;d=(u=qb(this.target_,n))==null?void 0:u.value}if(i){if(!Reflect.deleteProperty(this.target_,n))return!1}else delete this.target_[n];if(c&&(this.values_.delete(n),c instanceof rd&&(d=c.value_),mae(c)),this.keysAtom_.reportChanged(),(a=this.pendingKeys_)==null||(a=a.get(n))==null||a.set(n in this.target_),s||l){var f={type:JW,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:d,name:n};s&&is(this,f)}}finally{Oa()}return!0},t.observe_=function(n,i){return Y0(this,n)},t.intercept_=function(n){return K0(this,n)},t.notifyPropertyAddition_=function(n,i){var o,a=ns(this),s=!1;if(a||s){var l=a||s?{type:fc,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:n,newValue:i}:null;a&&is(this,l)}(o=this.pendingKeys_)==null||(o=o.get(n))==null||o.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),xp(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function Ud(e,t){var r;if(hl(e,Kt))return e;var n=(r=t==null?void 0:t.name)!=null?r:"ObservableObject",i=new Mae(e,new Map,String(n),XVe(t));return U0(e,Kt,i),e}var VUe=Bd("ObservableObjectAdministration",Mae);function ZW(e){return QW[e]||(QW[e]={get:function(){return this[Kt].getObservablePropValue_(e)}
485,set:function(r){return this[Kt].setObservablePropValue_(e,r)}})}function Iy(e){return AR(e)?VUe(e[Kt]):!1}function eq(e,t,r){var n;(n=e.target_[Ts])==null||delete n[r]}var UUe=kae(0),WUe=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,e===!1}(),kT=0,$ae=function(){};function qUe(e,t){Object.setPrototypeOf?Object.setPrototypeOf(e.prototype,t):e.prototype.__proto__!==void 0?e.prototype.__proto__=t:e.prototype=t}qUe($ae,Array.prototype);var n6=function(e){function t(n,i,o,a){var s;return o===void 0&&(o="ObservableArray"),a===void 0&&(a=!1),s=e.call(this)||this,ru(function(){var l=new r6(o,i,a,!0);l.proxy_=s,Qoe(s,Kt,l),n&&n.length&&s.spliceWithArray(0,0,n),WUe&&Object.defineProperty(s,"0",UUe)}),s}eae(t,e);var r=t.prototype;return r.concat=function(){this[Kt].atom_.reportObserved();for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return Array.prototype.concat.apply(this.slice(),o.map(function(s){return DR(s)?s.slice():s}))},r[Symbol.iterator]=function(){var n=this,i=0;return o6({next:function(){return i<n.length?{value:n[i++],done:!1}:{done:!0,value:void 0}}})},gh(t,[{key:"length",get:function(){return this[Kt].getArrayLength_()},set:function(i){this[Kt].setArrayLength_(i)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])}($ae);Object.entries(Jb).forEach(function(e){var t=e[0],r=e[1];t!=="concat"&&U0(n6.prototype,t,r)});function kae(e){return{enumerable:!1,configurable:!0,get:function(){return this[Kt].get_(e)},set:function(r){this[Kt].set_(e,r)}}}function GUe(e){Ns(n6.prototype,""+e,kae(e))}function Nae(e){if(e>kT){for(var t=kT;t<e+100;t++)GUe(t);kT=e}}Nae(1e3);function KUe(e,t,r){return new n6(e,t,r)}function Tp(e,t){if(typeof e=="object"&&e!==null){if(DR(e))return t!==void 0&&kr(23),e[Kt].atom_;if(Is(e))return e.atom_;if(Vd(e)){if(t===void 0)return e.keysAtom_;var r=e.data_.get(t)||e.hasMap_.get(t);return r||kr(25,t,lk(e)),r}if(Iy(e)){if(!t)return kr(26);var n=e[Kt].values_.get(t);return n||kr(27,t,lk(e)),n}if(QD(e)||NR(e)||Qb(e))return e}else if(ls(e)&&Qb(e[Kt]))return e[Kt];kr(28)}function Dae(e,t){if(e||kr(29),t!==void 0)return Dae(Tp(e,t));if(QD(e)||NR(e)||Qb(e)||Vd(e)||Is(e))return e;if(e[Kt])return e[Kt];kr(24,e)}function lk(e,t){var r;if(t!==void 0)r=Tp(e,t);else{if(Ry(e))return e.name;Iy(e)||Vd(e)||Is(e)?r=Dae(e):r=Tp(e)}return r.name_}function ru(e){var t=Hd(),r=ZD(!0);xa();try{return e()}finally{Oa(),e6(r),vl(t)}}var tq=TR.toString;function i6(e,t,r){return r===void 0&&(r=-1),ck(e,t,r)}function ck(e,t,r,n,i){if(e===t)return e!==0||1/e===1/t;if(e==null||t==null)return!1;if(e!==e)return t!==t;var o=typeof e;if(o!=="function"&&o!=="object"&&typeof t!="object")return!1;var a=tq.call(e);if(a!==tq.call(t))return!1;switch(a){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:+e==0?1/+e===1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return typeof Symbol<"u"&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t);case"[object Map]":case"[object Set]":r>=0&&r++;break}e=rq(e),t=rq(t);var s=a==="[object Array]";if(!s){if(typeof e!="object"||typeof t!="object")return!1;var l=e.constructor,c=t.constructor;if(l!==c&&!(ls(l)&&l instanceof l&&ls(c)&&c instanceof c)&&"constructor"in e&&"constructor"in t)return!1}if(r===0)return!1;r<0&&(r=-1),n=n||[],i=i||[];for(var d=n.length;d--;)if(n[d]===e)return i[d]===t;if(n.push(e),i.push(t),s){if(d=e.length,d!==t.length)return!1;for(;d--;)if(!ck(e[d],t[d],r-1,n,i))return!1}else{var u=Object.keys(e),f=u.length;if(Object.keys(t).length!==f)return!1;for(var h=0;h<f;h++){var v=u[h];if(!(hl(t,v)&&ck(e[v],t[v],r-1,n,i)))return!1}}return n.pop(),i.pop(),!0}function rq(e){return DR(e)?e.slice():vh(e)||Vd(e)||ol(e)||Is(e)?Array.from(e.entries()):e}var nq,YUe=((nq=OR().Iterator)==null?void 0:nq.prototype)||{};function o6(e){return e[Symbol.iterator]=XUe,Object.assign(Object.create(YUe),e)}function XUe(){return this}["Symbol","Map","Set"].forEach(function(e){var t=OR();typeof t[e]>"u"&&kr("MobX requires global '"+e+"' to be available or polyfilled")});typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:hUe,extras:{getDebugName:lk},$mobx:Kt});var $t;if(typeof window>"u"){var iq={hostname:""};$t={crypto:{randomUUID:function(){throw Error("unsupported")}},navigator:{userAgent:"",onLine:!0},document:{createElement:function(){return{}},location:iq,referrer:""},screen:{width:0,height:0},location:iq,addEventListener:function(){},removeEventListener:function(){}}}
vendor: 1,062 bytes, line 485
485else $t=window;function oq(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function aq(e,t,r,n,i,o,a){try{var s=e[o](a),l=s.value}catch(c){r(c);return}s.done?t(l):Promise.resolve(l).then(n,i)}function a6(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function a(l){aq(o,n,i,a,s,"next",l)}function s(l){aq(o,n,i,a,s,"throw",l)}a(void 0)})}}function xC(e,t,r){return Lae()?xC=Reflect.construct:xC=function(i,o,a){var s=[null];s.push.apply(s,o);var l=Function.bind.apply(i,s),c=new l;return a&&Oy(c,a.prototype),c},xC.apply(null,arguments)}function QUe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ai(e,t,r){return t&&QUe(e.prototype,t),e}function Mr(){return Mr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Mr.apply(this,arguments)}
vendor: 20,822 bytes, line 485
485function uk(e){return uk=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},uk(e)}function Ji(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Oy(e,t)}function hr(e,t){return t!=null&&typeof Symbol<"u"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function JUe(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function xy(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function Oy(e,t){return Oy=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Oy(e,t)}function Pr(e){"@swc/helpers - typeof";return e&&typeof Symbol<"u"&&e.constructor===Symbol?"symbol":typeof e}function ZUe(e,t){if(e){if(typeof e=="string")return oq(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return oq(e,t)}}function ew(e){var t=typeof Map=="function"?new Map:void 0;return ew=function(n){if(n===null||!JUe(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(n))return t.get(n);t.set(n,i)}function i(){return xC(n,arguments,uk(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Oy(i,n)},ew(e)}function Lae(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Lae=function(){return!!e})()}function Ft(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=ZUe(e))||t){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ty(e,t){var r,n,i,o,a={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(c){return function(d){return l([c,d])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=c[0]&2?n.return:c[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,c[1])).done)return i;switch(n=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){a=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){a.label=c[1];break}if(c[0]===6&&a.label<i[1]){a.label=i[1],i=c;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(c);break}i[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(d){c=[6,d],n=0}finally{r=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function jae(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var eWe=Object.defineProperty,tWe=function(e,t,r){return t in e?eWe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},It=function(e,t,r){return tWe(e,(typeof t>"u"?"undefined":Pr(t))!=="symbol"?t+"":t,r)},sq,rWe=Object.defineProperty,nWe=function(e,t,r){return t in e?rWe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},lq=function(e,t,r){return nWe(e,(typeof t>"u"?"undefined":Pr(t))!=="symbol"?t+"":t,r)},Gn=function(e){return e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e}(Gn||{}),cq={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},uq={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},y1={},iWe=function(){return!!globalThis.Zone};function s6(e){if(y1[e])return y1[e];var t=globalThis[e],r=t.prototype,n=e in cq?cq[e]:void 0,i=!!(n&&n.every(function(d){var u,f;return!!((f=(u=Object.getOwnPropertyDescriptor(r,d))==null?void 0:u.get)!=null&&f.toString().includes("[native code]"))})),o=e in uq?uq[e]:void 0,a=!!(o&&o.every(function(d){var u;return typeof r[d]=="function"&&((u=r[d])==null?void 0:u.toString().includes("[native code]"))}));if(i&&a&&!iWe())return y1[e]=t.prototype,t.prototype;try{var s=document.createElement("iframe");document.body.appendChild(s);var l=s.contentWindow;if(!l)return t.prototype;var c=l[e].prototype;return document.body.removeChild(s),c?y1[e]=c:r}catch{return r}}var NT={};function nu(e,t,r){var n,i=e+"."+String(r);if(NT[i])return NT[i].call(t);var o=s6(e),a=(n=Object.getOwnPropertyDescriptor(o,r))==null?void 0:n.get;return a?(NT[i]=a,a.call(t)):t[r]}var DT={};function Fae(e,t,r){var n=e+"."+String(r);if(DT[n])return DT[n].bind(t);var i=s6(e),o=i[r];return typeof o!="function"?t[r]:(DT[n]=o,o.bind(t))}function oWe(e){return nu("Node",e,"childNodes")}function aWe(e){return nu("Node",e,"parentNode")}function sWe(e){return nu("Node",e,"parentElement")}function lWe(e){return nu("Node",e,"textContent")}function cWe(e,t){return Fae("Node",e,"contains")(t)}function uWe(e){return Fae("Node",e,"getRootNode")()}function dWe(e){return!e||!("host"in e)?null:nu("ShadowRoot",e,"host")}function fWe(e){return e.styleSheets}function pWe(e){return!e||!("shadowRoot"in e)?null:nu("Element",e,"shadowRoot")}function hWe(e,t){return nu("Element",e,"querySelector")(t)}function vWe(e,t){return nu("Element",e,"querySelectorAll")(t)}function gWe(){return s6("MutationObserver").constructor}var qi={childNodes:oWe,parentNode:aWe,parentElement:sWe,textContent:lWe,contains:cWe,getRootNode:uWe,host:dWe,styleSheets:fWe,shadowRoot:pWe,querySelector:hWe,querySelectorAll:vWe,mutationObserver:gWe};function zae(e){return e.nodeType===e.ELEMENT_NODE}function bm(e){var t=e&&"host"in e&&"mode"in e&&qi.host(e)||null;return!!(t&&"shadowRoot"in t&&qi.shadowRoot(t)===e)}function wm(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function mWe(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function yWe(e){var t=e.cssText;if(t.split('"').length<3)return t;var r=["@import","url("+JSON.stringify(e.href)+")"];return e.layerName===""?r.push("layer"):e.layerName&&r.push("layer("+e.layerName+")"),e.supportsText&&r.push("supports("+e.supportsText+")"),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}function dk(e){try{var t=e.rules||e.cssRules;if(!t)return null;var r=e.href;!r&&e.ownerNode&&e.ownerNode.ownerDocument&&(r=e.ownerNode.ownerDocument.location.href);var n=Array.from(t,function(i){return Bae(i,r)}).join("");return mWe(n)}catch{return null}}function Bae(e,t){if(CWe(e)){var r;try{r=dk(e.styleSheet)||yWe(e)}catch{r=e.cssText}return e.styleSheet.href?tw(r,e.styleSheet.href):r}else{var n=e.cssText;return bWe(e)&&e.selectorText.includes(":")&&(n=SWe(n)),t?tw(n,t):n}}function SWe(e){var t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function CWe(e){return"styleSheet"in e}function bWe(e){return"selectorText"in e}var Hae=function(){function e(){lq(this,"idNodeMap",new Map),lq(this,"nodeMetaMap",new WeakMap)}var t=e.prototype;return t.getId=function(n){var i;if(!n)return-1;var o=(i=this.getMeta(n))==null?void 0:i.id;return o??-1},t.getNode=function(n){return this.idNodeMap.get(n)||null},t.getIds=function(){return Array.from(this.idNodeMap.keys())},t.getMeta=function(n){return this.nodeMetaMap.get(n)||null},t.removeNodeFromMap=function(n){var i=this,o=this.getId(n);this.idNodeMap.delete(o),n.childNodes&&n.childNodes.forEach(function(a){return i.removeNodeFromMap(a)})},t.has=function(n){return this.idNodeMap.has(n)},t.hasNode=function(n){return this.nodeMetaMap.has(n)},t.add=function(n,i){var o=i.id;this.idNodeMap.set(o,n),this.nodeMetaMap.set(n,i)},t.replace=function(n,i){var o=this.getNode(n);if(o){var a=this.nodeMetaMap.get(o);a&&this.nodeMetaMap.set(i,a)}this.idNodeMap.set(n,i)},t.reset=function(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap},e}();function wWe(){return new Hae}function l6(e){var t=e.element,r=e.maskInputOptions,n=e.tagName,i=e.type,o=e.value,a=e.maskInputFn,s=o||"",l=i&&Cd(i);return(r[n.toLowerCase()]||l&&r[l])&&(a?s=a(s,t):s="*".repeat(s.length)),s}function Cd(e){return e.toLowerCase()}var dq="__rrweb_original__";function _We(e){var t=e.getContext("2d");if(!t)return!0;for(var r=50,n=0;n<e.width;n+=r)for(var i=0;i<e.height;i+=r){var o=t.getImageData,a=dq in o?o[dq]:o,s=new Uint32Array(a.call(t,n,i,Math.min(r,e.width-n),Math.min(r,e.height-i)).data.buffer);if(s.some(function(l){return l!==0}))return!1}return!0}function c6(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Cd(t):null}function Vae(e,t){var r;try{r=new URL(e,t??window.location.href)}catch{return null}var n=/\.([0-9a-z]+)(?:$)/i,i=r.pathname.match(n),o;return(o=i==null?void 0:i[1])!=null?o:null}function EWe(e){var t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}var RWe=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,PWe=/^(?:[a-z+]+:)?\/\//i,IWe=/^www\..*/i,xWe=/^(data:)([^,]*),(.*)/i;function tw(e,t){return(e||"").replace(RWe,function(r,n,i,o,a,s){var l=i||a||s,c=n||o||"";if(!l)return r;if(PWe.test(l)||IWe.test(l)||xWe.test(l))return"url("+c+l+c+")";if(l[0]==="/")return"url("+c+(EWe(t)+l)+c+")";var d=t.split("/"),u=l.split("/");d.pop();for(var f=Ft(u),h;!(h=f()).done;){var v=h.value;v!=="."&&(v===".."?d.pop():d.push(v))}return"url("+c+d.join("/")+c+")"})}function LT(e){return e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"")}function OWe(e,t){var r=Array.from(t.childNodes),n=[];if(r.length>1&&e&&typeof e=="string"){for(var i=LT(e),o=1;o<r.length;o++)if(r[o].textContent&&typeof r[o].textContent=="string")for(var a=LT(r[o].textContent),s=3;s<a.length;s++){var l=a.substring(0,s);if(i.split(l).length===2){for(var c=i.indexOf(l),d=c;d<e.length;d++)if(LT(e.substring(0,d)).length===c){n.push(e.substring(0,d)),e=e.substring(d);break}break}}}return n.push(e),n}function TWe(e,t){return OWe(e,t).join("/* rr_split */")}var AWe=1,MWe=new RegExp("[^a-z0-9-_:]"),Ay=-2;function Uae(){return AWe++}function $We(e){if(hr(e,HTMLFormElement))return"form";var t=Cd(e.tagName);return MWe.test(t)?"div":t}var mf,fq,kWe=/^[^ \t\n\r\u000c]+/,NWe=/^[, \t\n\r\u000c]+/;function DWe(e,t){if(t.trim()==="")return t;var r=0;function n(c){var d,u=c.exec(t.substring(r));return u?(d=u[0],r+=d.length,d):""}for(var i=[];n(NWe),!(r>=t.length);){var o=n(kWe);if(o.slice(-1)===",")o=Vf(e,o.substring(0,o.length-1)),i.push(o);else{var a="";o=Vf(e,o);for(var s=!1;;){var l=t.charAt(r);if(l===""){i.push((o+a).trim());break}else if(s)l===")"&&(s=!1);else if(l===","){r+=1,i.push((o+a).trim());break}else l==="("&&(s=!0);a+=l,r+=1}}}return i.join(", ")}var pq=new WeakMap;function Vf(e,t){return!t||t.trim()===""?t:u6(e,t)}function LWe(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function u6(e,t){var r=pq.get(e);if(r||(r=e.createElement("a"),pq.set(e,r)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return r.setAttribute("href",t),r.href}function Wae(e,t,r,n){return n&&(r==="src"||r==="href"&&!(t==="use"&&n[0]==="#")||r==="xlink:href"&&n[0]!=="#"||r==="background"&&(t==="table"||t==="td"||t==="th")?Vf(e,n):r==="srcset"?DWe(e,n):r==="style"?tw(n,u6(e)):t==="object"&&r==="data"?Vf(e,n):n)}function qae(e,t,r){return(e==="video"||e==="audio")&&t==="autoplay"}function jWe(e,t,r){try{if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}if(r)return e.matches(r)}catch{}return!1}function rw(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return r?rw(qi.parentNode(e),t,r):!1;for(var n=e.classList.length;n--;){var i=e.classList[n];if(t.test(i))return!0}return r?rw(qi.parentNode(e),t,r):!1}function Gae(e,t,r,n){var i;if(zae(e)){if(i=e,!qi.childNodes(i).length)return!1}else{if(qi.parentElement(e)===null)return!1;i=qi.parentElement(e)}try{if(typeof t=="string"){if(n){if(i.closest("."+t))return!0}else if(i.classList.contains(t))return!0}else if(rw(i,t,n))return!0;if(r){if(n){if(i.closest(r))return!0}else if(i.matches(r))return!0}}catch{}return!1}function FWe(e,t,r){var n=e.contentWindow;if(n){var i=!1,o;try{o=n.document.readyState}catch{return}if(o!=="complete"){var a=setTimeout(function(){i||(t(),i=!0)},r);e.addEventListener("load",function(){clearTimeout(a),i=!0,t()});return}var s="about:blank";if(n.location.href!==s||e.src===s||e.src==="")return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}}function zWe(e,t,r){var n=!1,i;try{i=e.sheet}catch{return}if(!i){var o=setTimeout(function(){n||(t(),n=!0)},r);e.addEventListener("load",function(){clearTimeout(o),n=!0,t()})}}function BWe(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,o=t.blockSelector,a=t.needsMask,s=t.inlineStylesheet,l=t.maskInputOptions,c=l===void 0?{}:l,d=t.maskTextFn,u=t.maskInputFn,f=t.dataURLOptions,h=f===void 0?{}:f,v=t.inlineImages,y=t.recordCanvas,g=t.keepIframeSrcFn,m=t.newlyAddedElement,S=m===void 0?!1:m,C=t.cssCaptured,b=C===void 0?!1:C,w=HWe(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:Gn.Document,childNodes:[],compatMode:e.compatMode}:{type:Gn.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Gn.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:w};case e.ELEMENT_NODE:return UWe(e,{doc:r,blockClass:i,blockSelector:o,inlineStylesheet:s,maskInputOptions:c,maskInputFn:u,dataURLOptions:h,inlineImages:v,recordCanvas:y,keepIframeSrcFn:g,newlyAddedElement:S,rootId:w});case e.TEXT_NODE:return VWe(e,{doc:r,needsMask:a,maskTextFn:d,rootId:w,cssCaptured:b});case e.CDATA_SECTION_NODE:return{type:Gn.CDATA,textContent:"",rootId:w};case e.COMMENT_NODE:return{type:Gn.Comment,textContent:qi.textContent(e)||"",rootId:w};default:return!1}}function HWe(e,t){if(t.hasNode(e)){var r=t.getId(e);return r===1?void 0:r}}function VWe(e,t){var r=t.needsMask,n=t.maskTextFn,i=t.rootId,o=t.cssCaptured,a=qi.parentNode(e),s=a&&a.tagName,l="",c=s==="STYLE"?!0:void 0,d=s==="SCRIPT"?!0:void 0;return d?l="SCRIPT_PLACEHOLDER":o||(l=qi.textContent(e),c&&l&&(l=tw(l,u6(t.doc)))),!c&&!d&&l&&r&&(l=n?n(l,qi.parentElement(e)):l.replace(/[\S]/g,"*")),{type:Gn.Text,textContent:l||"",rootId:i}}function UWe(e,t){for(var r=t.doc,n=t.blockClass,i=t.blockSelector,o=t.inlineStylesheet,a=t.maskInputOptions,s=a===void 0?{}:a,l=t.maskInputFn,c=t.dataURLOptions,d=c===void 0?{}:c,u=t.inlineImages,f=t.recordCanvas,h=t.keepIframeSrcFn,v=t.newlyAddedElement,y=v===void 0?!1:v,g=t.rootId,m=jWe(e,n,i),S=$We(e),C={},b=e.attributes.length,w=0;w<b;w++){var E=e.attributes[w];qae(S,E.name,E.value)||(C[E.name]=Wae(r,S,Cd(E.name),E.value))}if(S==="link"&&o){var _=Array.from(r.styleSheets).find(function(H){return H.href===e.href}),R=null;_&&(R=dk(_)),R&&(delete C.rel,delete C.href,C._cssText=R)}if(S==="style"&&e.sheet){var P=dk(e.sheet);P&&(e.childNodes.length>1&&(P=TWe(P,e)),C._cssText=P)}if(S==="input"||S==="textarea"||S==="select"){var I=e.value,O=e.checked;C.type!=="radio"&&C.type!=="checkbox"&&C.type!=="submit"&&C.type!=="button"&&I?C.value=l6({element:e,type:c6(e),tagName:S,value:I,maskInputOptions:s,maskInputFn:l}):O&&(C.checked=O)}if(S==="option"&&(e.selected&&!s.select?C.selected=!0:delete C.selected),S==="dialog"&&e.open&&(C.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),S==="canvas"&&f){if(e.__context==="2d")_We(e)||(C.rr_dataURL=e.toDataURL(d.type,d.quality));else if(!("__context"in e)){var A=e.toDataURL(d.type,d.quality),x=r.createElement("canvas");x.width=e.width,x.height=e.height;var T=x.toDataURL(d.type,d.quality);A!==T&&(C.rr_dataURL=A)}}if(S==="img"&&u){mf||(mf=r.createElement("canvas"),fq=mf.getContext("2d"));var D=e,k=D.currentSrc||D.getAttribute("src")||"<unknown-src>",j=D.crossOrigin,N=function(){D.removeEventListener("load",N);try{mf.width=D.naturalWidth,mf.height=D.naturalHeight,fq.drawImage(D,0,0),C.rr_dataURL=mf.toDataURL(d.type,d.quality)}catch{if(D.crossOrigin!=="anonymous"){D.crossOrigin="anonymous",D.complete&&D.naturalWidth!==0?N():D.addEventListener("load",N);return}}D.crossOrigin==="anonymous"&&(j?C.crossOrigin=j:D.removeAttribute("crossorigin"))};D.complete&&D.naturalWidth!==0?N():D.addEventListener("load",N)}if(S==="audio"||S==="video"){var L=C;L.rr_mediaState=e.paused?"paused":"played",L.rr_mediaCurrentTime=e.currentTime,L.rr_mediaPlaybackRate=e.playbackRate,L.rr_mediaMuted=e.muted,L.rr_mediaLoop=e.loop,L.rr_mediaVolume=e.volume}if(y||(e.scrollLeft&&(C.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(C.rr_scrollTop=e.scrollTop)),m){var M=e.getBoundingClientRect(),$=M.width,F=M.height;C={class:C.class,rr_width:""+$+"px",rr_height:""+F+"px"}}S==="iframe"&&!h(C.src)&&(e.contentDocument||(C.rr_src=C.src),delete C.src);var z;try{customElements.get(S)&&(z=!0)}catch{}return{type:Gn.Element,tagName:S,attributes:C,childNodes:[],isSVG:LWe(e)||void 0,needBlock:m,rootId:g,isCustom:z}}function an(e){return e==null?"":e.toLowerCase()}function WWe(e,t){if(t.comment&&e.type===Gn.Comment)return!0;if(e.type===Gn.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")&&e.attributes.as==="script"||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&Vae(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(an(e.attributes.name).match(/^msapplication-tile(image|color)$/)||an(e.attributes.name)==="application-name"||an(e.attributes.rel)==="icon"||an(e.attributes.rel)==="apple-touch-icon"||an(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&an(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(an(e.attributes.property).match(/^(og|twitter|fb):/)||an(e.attributes.name).match(/^(og|twitter):/)||an(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(an(e.attributes.name)==="robots"||an(e.attributes.name)==="googlebot"||an(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(an(e.attributes.name)==="author"||an(e.attributes.name)==="generator"||an(e.attributes.name)==="framework"||an(e.attributes.name)==="publisher"||an(e.attributes.name)==="progid"||an(e.attributes.property).match(/^article:/)||an(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(an(e.attributes.name)==="google-site-verification"||an(e.attributes.name)==="yandex-verification"||an(e.attributes.name)==="csrf-token"||an(e.attributes.name)==="p:domain_verify"||an(e.attributes.name)==="verify-v1"||an(e.attributes.name)==="verification"||an(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Uf(e,t){var r=t.doc,n=t.mirror,i=t.blockClass,o=t.blockSelector,a=t.maskTextClass,s=t.maskTextSelector,l=t.skipChild,c=l===void 0?!1:l,d=t.inlineStylesheet,u=d===void 0?!0:d,f=t.maskInputOptions,h=f===void 0?{}:f,v=t.maskTextFn,y=t.maskInputFn,g=t.slimDOMOptions,m=t.dataURLOptions,S=m===void 0?{}:m,C=t.inlineImages,b=C===void 0?!1:C,w=t.recordCanvas,E=w===void 0?!1:w,_=t.onSerialize,R=t.onIframeLoad,P=t.iframeLoadTimeout,I=P===void 0?5e3:P,O=t.onStylesheetLoad,A=t.stylesheetLoadTimeout,x=A===void 0?5e3:A,T=t.keepIframeSrcFn,D=T===void 0?function(){return!1}:T,k=t.newlyAddedElement,j=k===void 0?!1:k,N=t.cssCaptured,L=N===void 0?!1:N,M=t.needsMask,$=t.preserveWhiteSpace,F=$===void 0?!0:$;if(!M){var z=M===void 0;M=Gae(e,a,s,z)}var H=BWe(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:M,inlineStylesheet:u,maskInputOptions:h,maskTextFn:v,maskInputFn:y,dataURLOptions:S,inlineImages:b,recordCanvas:E,keepIframeSrcFn:D,newlyAddedElement:j,cssCaptured:L});if(!H)return null;var U;n.hasNode(e)?U=n.getId(e):WWe(H,g)||!F&&H.type===Gn.Text&&!H.textContent.replace(/^\s+|\s+$/gm,"").length?U=Ay:U=Uae();var V=Object.assign(H,{id:U});if(n.add(e,V),U===Ay)return null;_&&_(e);var W=!c;
vendor: 4,066 bytes, line 485
485if(V.type===Gn.Element){W=W&&!V.needBlock,delete V.needBlock;var K=qi.shadowRoot(e);K&&wm(K)&&(V.isShadowHost=!0)}if((V.type===Gn.Document||V.type===Gn.Element)&&W){g.headWhitespace&&V.type===Gn.Element&&V.tagName==="head"&&(F=!1);var Z={doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:M,maskTextClass:a,maskTextSelector:s,skipChild:c,inlineStylesheet:u,maskInputOptions:h,maskTextFn:v,maskInputFn:y,slimDOMOptions:g,dataURLOptions:S,inlineImages:b,recordCanvas:E,preserveWhiteSpace:F,onSerialize:_,onIframeLoad:R,iframeLoadTimeout:I,onStylesheetLoad:O,stylesheetLoadTimeout:x,keepIframeSrcFn:D,cssCaptured:!1};if(!(V.type===Gn.Element&&V.tagName==="textarea"&&V.attributes.value!==void 0)){V.type===Gn.Element&&V.attributes._cssText!==void 0&&typeof V.attributes._cssText=="string"&&(Z.cssCaptured=!0);for(var q=Ft(Array.from(qi.childNodes(e))),Y;!(Y=q()).done;){var G=Y.value,re=Uf(G,Z);re&&V.childNodes.push(re)}}var ee=null;if(zae(e)&&(ee=qi.shadowRoot(e)))for(var ne=Ft(Array.from(qi.childNodes(ee))),te;!(te=ne()).done;){var pe=te.value,le=Uf(pe,Z);le&&(wm(ee)&&(le.isShadow=!0),V.childNodes.push(le))}}var ye=qi.parentNode(e);return ye&&bm(ye)&&wm(ye)&&(V.isShadow=!0),V.type===Gn.Element&&V.tagName==="iframe"&&FWe(e,function(){var Se=e.contentDocument;if(Se&&R){var _e=Uf(Se,{doc:Se,mirror:n,blockClass:i,blockSelector:o,needsMask:M,maskTextClass:a,maskTextSelector:s,skipChild:!1,inlineStylesheet:u,maskInputOptions:h,maskTextFn:v,maskInputFn:y,slimDOMOptions:g,dataURLOptions:S,inlineImages:b,recordCanvas:E,preserveWhiteSpace:F,onSerialize:_,onIframeLoad:R,iframeLoadTimeout:I,onStylesheetLoad:O,stylesheetLoadTimeout:x,keepIframeSrcFn:D});_e&&R(e,_e)}},I),V.type===Gn.Element&&V.tagName==="link"&&typeof V.attributes.rel=="string"&&(V.attributes.rel==="stylesheet"||V.attributes.rel==="preload"&&typeof V.attributes.href=="string"&&Vae(V.attributes.href)==="css")&&zWe(e,function(){if(O){var Se=Uf(e,{doc:r,mirror:n,blockClass:i,blockSelector:o,needsMask:M,maskTextClass:a,maskTextSelector:s,skipChild:!1,inlineStylesheet:u,maskInputOptions:h,maskTextFn:v,maskInputFn:y,slimDOMOptions:g,dataURLOptions:S,inlineImages:b,recordCanvas:E,preserveWhiteSpace:F,onSerialize:_,onIframeLoad:R,iframeLoadTimeout:I,onStylesheetLoad:O,stylesheetLoadTimeout:x,keepIframeSrcFn:D});Se&&O(e,Se)}},x),V}function qWe(e,t){var r=t||{},n=r.mirror,i=n===void 0?new Hae:n,o=r.blockClass,a=o===void 0?"rr-block":o,s=r.blockSelector,l=s===void 0?null:s,c=r.maskTextClass,d=c===void 0?"rr-mask":c,u=r.maskTextSelector,f=u===void 0?null:u,h=r.inlineStylesheet,v=h===void 0?!0:h,y=r.inlineImages,g=y===void 0?!1:y,m=r.recordCanvas,S=m===void 0?!1:m,C=r.maskAllInputs,b=C===void 0?!1:C,w=r.maskTextFn,E=r.maskInputFn,_=r.slimDOM,R=_===void 0?!1:_,P=r.dataURLOptions,I=r.preserveWhiteSpace,O=r.onSerialize,A=r.onIframeLoad,x=r.iframeLoadTimeout,T=r.onStylesheetLoad,D=r.stylesheetLoadTimeout,k=r.keepIframeSrcFn,j=k===void 0?function(){return!1}:k,N=b===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:b===!1?{password:!0}:b,L=R===!0||R==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:R==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:R===!1?{}:R;return Uf(e,{doc:e,mirror:i,blockClass:a,blockSelector:l,maskTextClass:d,maskTextSelector:f,skipChild:!1,inlineStylesheet:v,maskInputOptions:N,maskTextFn:w,maskInputFn:E,slimDOMOptions:L,dataURLOptions:P,inlineImages:g,recordCanvas:S,preserveWhiteSpace:I,onSerialize:O,onIframeLoad:A,iframeLoadTimeout:x,onStylesheetLoad:T,stylesheetLoadTimeout:D,keepIframeSrcFn:j,newlyAddedElement:!1})}function GWe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function KWe(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return hr(this,n)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};
vendor: 14,697 bytes, lines 485-502
485return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var d6={exports:{}},un=String,Kae=function(){return{isColorSupported:!1,reset:un,bold:un,dim:un,italic:un,underline:un,inverse:un,hidden:un,strikethrough:un,black:un,red:un,green:un,yellow:un,blue:un,magenta:un,cyan:un,white:un,gray:un,bgBlack:un,bgRed:un,bgGreen:un,bgYellow:un,bgBlue:un,bgMagenta:un,bgCyan:un,bgWhite:un}};d6.exports=Kae();d6.exports.createColors=Kae;var YWe=d6.exports,XWe={},QWe=Object.freeze(Object.defineProperty({__proto__:null,default:XWe},Symbol.toStringTag,{value:"Module"})),Ln=KWe(QWe),hq=YWe,vq=Ln,fk=function(e){Ji(t,e);function t(n,i,o,a,s,l){var c;return c=e.call(this,n)||this,c.name="CssSyntaxError",c.reason=n,s&&(c.file=s),a&&(c.source=a),l&&(c.plugin=l),typeof i<"u"&&typeof o<"u"&&(typeof i=="number"?(c.line=i,c.column=o):(c.line=i.line,c.column=i.column,c.endLine=o.line,c.endColumn=o.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,t),c}var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(i){var o=this;if(!this.source)return"";var a=this.source;i==null&&(i=hq.isColorSupported),vq&&i&&(a=vq(a));var s=a.split(/\r?\n/),l=Math.max(this.line-3,0),c=Math.min(this.line+2,s.length),d=String(c).length,u,f;if(i){var h=hq.createColors(!0),v=h.bold,y=h.gray,g=h.red;u=function(m){return v(g(m))},f=function(m){return y(m)}}else u=f=function(m){return m};return s.slice(l,c).map(function(m,S){var C=l+1+S,b=" "+(" "+C).slice(-d)+" | ";if(C===o.line){var w=f(b.replace(/\d/g," "))+m.slice(0,o.column-1).replace(/[^\t]/g," ");return u(">")+f(b)+m+`
486 `+w+u("^")}return" "+f(b)+m}).join(`
487`)},r.toString=function(){var i=this.showSourceCode();return i&&(i=`
488
489`+i+`
490`),this.name+": "+this.message+i},t}(ew(Error)),f6=fk;fk.default=fk;var iu={};iu.isClean=Symbol("isClean");iu.my=Symbol("my");var gq={after:`
491`,beforeClose:`
492`,beforeComment:`
493`,beforeDecl:`
494`,beforeOpen:" ",beforeRule:`
495`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:"    ",semicolon:!1};function JWe(e){return e[0].toUpperCase()+e.slice(1)}var pk=function(){function e(r){this.builder=r}var t=e.prototype;return t.atrule=function(n,i){var o="@"+n.name,a=n.params?this.rawValue(n,"params"):"";if(typeof n.raws.afterName<"u"?o+=n.raws.afterName:a&&(o+=" "),n.nodes)this.block(n,o+a);else{var s=(n.raws.between||"")+(i?";":"");this.builder(o+a+s,n)}},t.beforeAfter=function(n,i){var o;n.type==="decl"?o=this.raw(n,null,"beforeDecl"):n.type==="comment"?o=this.raw(n,null,"beforeComment"):i==="before"?o=this.raw(n,null,"beforeRule"):o=this.raw(n,null,"beforeClose");for(var a=n.parent,s=0;a&&a.type!=="root";)s+=1,a=a.parent;if(o.includes(`
496`)){var l=this.raw(n,null,"indent");if(l.length)for(var c=0;c<s;c++)o+=l}return o},t.block=function(n,i){var o=this.raw(n,"between","beforeOpen");this.builder(i+o+"{",n,"start");var a;n.nodes&&n.nodes.length?(this.body(n),a=this.raw(n,"after")):a=this.raw(n,"after","emptyBody"),a&&this.builder(a),this.builder("}",n,"end")},t.body=function(n){for(var i=n.nodes.length-1;i>0&&n.nodes[i].type==="comment";)i-=1;for(var o=this.raw(n,"semicolon"),a=0;a<n.nodes.length;a++){var s=n.nodes[a],l=this.raw(s,"before");l&&this.builder(l),this.stringify(s,i!==a||o)}},t.comment=function(n){var i=this.raw(n,"left","commentLeft"),o=this.raw(n,"right","commentRight");this.builder("/*"+i+n.text+o+"*/",n)},t.decl=function(n,i){var o=this.raw(n,"between","colon"),a=n.prop+o+this.rawValue(n,"value");n.important&&(a+=n.raws.important||" !important"),i&&(a+=";"),this.builder(a,n)},t.document=function(n){this.body(n)},t.raw=function(n,i,o){var a;if(o||(o=i),i&&(a=n.raws[i],typeof a<"u"))return a;var s=n.parent;if(o==="before"&&(!s||s.type==="root"&&s.first===n||s&&s.type==="document"))return"";if(!s)return gq[o];var l=n.root();if(l.rawCache||(l.rawCache={}),typeof l.rawCache[o]<"u")return l.rawCache[o];if(o==="before"||o==="after")return this.beforeAfter(n,o);var c="raw"+JWe(o);return this[c]?a=this[c](l,n):l.walk(function(d){if(a=d.raws[i],typeof a<"u")return!1}),typeof a>"u"&&(a=gq[o]),l.rawCache[o]=a,a},t.rawBeforeClose=function(n){var i;return n.walk(function(o){if(o.nodes&&o.nodes.length>0&&typeof o.raws.after<"u")return i=o.raws.after,i.includes(`
497`)&&(i=i.replace(/[^\n]+$/,"")),!1}),i&&(i=i.replace(/\S/g,"")),i},t.rawBeforeComment=function(n,i){var o;return n.walkComments(function(a){if(typeof a.raws.before<"u")return o=a.raws.before,o.includes(`
498`)&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o>"u"?o=this.raw(i,null,"beforeDecl"):o&&(o=o.replace(/\S/g,"")),o},t.rawBeforeDecl=function(n,i){var o;return n.walkDecls(function(a){if(typeof a.raws.before<"u")return o=a.raws.before,o.includes(`
499`)&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o>"u"?o=this.raw(i,null,"beforeRule"):o&&(o=o.replace(/\S/g,"")),o},t.rawBeforeOpen=function(n){var i;return n.walk(function(o){if(o.type!=="decl"&&(i=o.raws.between,typeof i<"u"))return!1}),i},t.rawBeforeRule=function(n){var i;return n.walk(function(o){if(o.nodes&&(o.parent!==n||n.first!==o)&&typeof o.raws.before<"u")return i=o.raws.before,i.includes(`
500`)&&(i=i.replace(/[^\n]+$/,"")),!1}),i&&(i=i.replace(/\S/g,"")),i},t.rawColon=function(n){var i;return n.walkDecls(function(o){if(typeof o.raws.between<"u")return i=o.raws.between.replace(/[^\s:]/g,""),!1}),i},t.rawEmptyBody=function(n){var i;return n.walk(function(o){if(o.nodes&&o.nodes.length===0&&(i=o.raws.after,typeof i<"u"))return!1}),i},t.rawIndent=function(n){if(n.raws.indent)return n.raws.indent;var i;return n.walk(function(o){var a=o.parent;if(a&&a!==n&&a.parent&&a.parent===n&&typeof o.raws.before<"u"){var s=o.raws.before.split(`
501`);return i=s[s.length-1],i=i.replace(/\S/g,""),!1}}),i},t.rawSemicolon=function(n){var i;return n.walk(function(o){if(o.nodes&&o.nodes.length&&o.last.type==="decl"&&(i=o.raws.semicolon,typeof i<"u"))return!1}),i},t.rawValue=function(n,i){var o=n[i],a=n.raws[i];return a&&a.value===o?a.raw:o},t.root=function(n){this.body(n),n.raws.after&&this.builder(n.raws.after)},t.rule=function(n){this.block(n,this.rawValue(n,"selector")),n.raws.ownSemicolon&&this.builder(n.raws.ownSemicolon,n,"end")},t.stringify=function(n,i){if(!this[n.type])throw new Error("Unknown AST node type "+n.type+". Maybe you need to change PostCSS stringifier.");this[n.type](n,i)},e}(),Yae=pk;pk.default=pk;var ZWe=Yae;function hk(e,t){var r=new ZWe(t);r.stringify(e)}var LR=hk;hk.default=hk;var S1=iu.isClean,eqe=iu.my,tqe=f6,rqe=Yae,nqe=LR;function vk(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&n!=="proxyCache"){var i=e[n],o=typeof i>"u"?"undefined":Pr(i);n==="parent"&&o==="object"?t&&(r[n]=t):n==="source"?r[n]=i:Array.isArray(i)?r[n]=i.map(function(a){return vk(a,r)}):(o==="object"&&i!==null&&(i=vk(i)),r[n]=i)}return r}var gk=function(){function e(r){r===void 0&&(r={}),this.raws={},this[S1]=!1,this[eqe]=!0;for(var n in r)if(n==="nodes"){this.nodes=[];for(var i=Ft(r[n]),o;!(o=i()).done;){var a=o.value;typeof a.clone=="function"?this.append(a.clone()):this.append(a)}}else this[n]=r[n]}var t=e.prototype;return t.addToError=function(n){if(n.postcssNode=this,n.stack&&this.source&&/\n\s{4}at /.test(n.stack)){var i=this.source;n.stack=n.stack.replace(/\n\s{4}at /,"$&"+i.input.from+":"+i.start.line+":"+i.start.column+"$&")}return n},t.after=function(n){return this.parent.insertAfter(this,n),this},t.assign=function(n){n===void 0&&(n={});for(var i in n)this[i]=n[i];return this},t.before=function(n){return this.parent.insertBefore(this,n),this},t.cleanRaws=function(n){delete this.raws.before,delete this.raws.after,n||delete this.raws.between},t.clone=function(n){n===void 0&&(n={});var i=vk(this);for(var o in n)i[o]=n[o];return i},t.cloneAfter=function(n){n===void 0&&(n={});var i=this.clone(n);return this.parent.insertAfter(this,i),i},t.cloneBefore=function(n){n===void 0&&(n={});var i=this.clone(n);return this.parent.insertBefore(this,i),i},t.error=function(n,i){if(i===void 0&&(i={}),this.source){var o=this.rangeBy(i),a=o.end,s=o.start;return this.source.input.error(n,{column:s.column,line:s.line},{column:a.column,line:a.line},i)}return new tqe(n)},t.getProxyProcessor=function(){return{get:function(i,o){return o==="proxyOf"?i:o==="root"?function(){return i.root().toProxy()}:i[o]},set:function(i,o,a){return i[o]===a||(i[o]=a,(o==="prop"||o==="value"||o==="name"||o==="params"||o==="important"||o==="text")&&i.markDirty()),!0}}},t.markDirty=function(){if(this[S1]){this[S1]=!1;for(var n=this;n=n.parent;)n[S1]=!1}},t.next=function(){if(this.parent){var n=this.parent.index(this);return this.parent.nodes[n+1]}},t.positionBy=function(n,i){var o=this.source.start;if(n.index)o=this.positionInside(n.index,i);else if(n.word){i=this.toString();var a=i.indexOf(n.word);a!==-1&&(o=this.positionInside(a,i))}return o},t.positionInside=function(n,i){for(var o=i||this.toString(),a=this.source.start.column,s=this.source.start.line,l=0;l<n;l++)o[l]===`
502`?(a=1,s+=1):a+=1;return{column:a,line:s}},t.prev=function(){if(this.parent){var n=this.parent.index(this);return this.parent.nodes[n-1]}},t.rangeBy=function(n){var i={column:this.source.start.column,line:this.source.start.line},o=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:i.column+1,line:i.line};if(n.word){var a=this.toString(),s=a.indexOf(n.word);s!==-1&&(i=this.positionInside(s,a),o=this.positionInside(s+n.word.length,a))}else n.start?i={column:n.start.column,line:n.start.line}:n.index&&(i=this.positionInside(n.index)),n.end?o={column:n.end.column,line:n.end.line}:typeof n.endIndex=="number"?o=this.positionInside(n.endIndex):n.index&&(o=this.positionInside(n.index+1));return(o.line<i.line||o.line===i.line&&o.column<=i.column)&&(o={column:i.column+1,line:i.line}),{end:o,start:i}},t.raw=function(n,i){var o=new rqe;return o.raw(this,n,i)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];if(this.parent){for(var a=this,s=!1,l=Ft(i),c;!(c=l()).done;){var d=c.value;d===this?s=!0:s?(this.parent.insertAfter(a,d),a=d):this.parent.insertBefore(a,d)}s||this.remove()}return this},t.root=function(){for(var n=this;n.parent&&n.parent.type!=="document";)n=n.parent;return n},t.toJSON=function(n,i){var o={},a=i==null;i=i||new Map;var s=0;for(var l in this)if(Object.prototype.hasOwnProperty.call(this,l)&&!(l==="parent"||l==="proxyCache")){var c=this[l];if(Array.isArray(c))o[l]=c.map(function(u){return(typeof u>"u"?"undefined":Pr(u))==="object"&&u.toJSON?u.toJSON(null,i):u});else if((typeof c>"u"?"undefined":Pr(c))==="object"&&c.toJSON)o[l]=c.toJSON(null,i);else if(l==="source"){var d=i.get(c.input);d==null&&(d=s,i.set(c.input,s),s++),o[l]={end:c.end,inputId:d,start:c.start}}else o[l]=c}return a&&(o.inputs=[].concat(i.keys()).map(function(u){return u.toJSON()})),o},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(n){n===void 0&&(n=nqe),n.stringify&&(n=n.stringify);var i="";return n(this,function(o){i+=o}),i},t.warn=function(n,i,o){var a={node:this};for(var s in o)a[s]=o[s];return n.warn(i,a)},Ai(e,[{key:"proxyOf",get:function(){return this}}]),e}(),jR=gk;gk.default=gk;var iqe=jR,mk=function(e){Ji(t,e);function t(r){var n;return r&&typeof r.value<"u"&&typeof r.value!="string"&&(r=Mr({},r,{value:String(r.value)})),n=e.call(this,r)||this,n.type="decl",n}return Ai(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),t}(iqe),FR=mk;mk.default=mk;var oqe="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",aqe=function(e){e===void 0&&(e=21);for(var t="",r=e;r--;)t+=oqe[Math.random()*64|0];return t},sqe={nanoid:aqe},mq=Ln.SourceMapConsumer,yq=Ln.SourceMapGenerator,lqe=Ln.existsSync,cqe=Ln.readFileSync,jT=Ln.dirname,uqe=Ln.join;function dqe(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}var yk=function(){function e(r,n){if(n.map!==!1){this.loadAnnotation(r),this.inline=this.startWith(this.annotation,"data:");var i=n.map?n.map.prev:void 0,o=this.loadMap(n.from,i);!this.mapFile&&n.from&&(this.mapFile=n.from),this.mapFile&&(this.root=jT(this.mapFile)),o&&(this.text=o)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new mq(this.text)),this.consumerCache},t.decodeInline=function(n){var i=/^data:application\/json;charset=utf-?8;base64,/,o=/^data:application\/json;base64,/,a=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/;if(a.test(n)||s.test(n))return decodeURIComponent(n.substr(RegExp.lastMatch.length));if(i.test(n)||o.test(n))return dqe(n.substr(RegExp.lastMatch.length));var l=n.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+l)},t.getAnnotationURL=function(n){return n.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(n){return(typeof n>"u"?"undefined":Pr(n))!=="object"?!1:typeof n.mappings=="string"||typeof n._mappings=="string"||Array.isArray(n.sections)},t.loadAnnotation=function(n){var i=n.match(/\/\*\s*# sourceMappingURL=/gm);if(i){var o=n.lastIndexOf(i.pop()),a=n.indexOf("*/",o);o>-1&&a>-1&&(this.annotation=this.getAnnotationURL(n.substring(o,a)))}},t.loadFile=function(n){if(this.root=jT(n),lqe(n))return this.mapFile=n,cqe(n,"utf-8").toString().trim()},t.loadMap=function(n,i){if(i===!1)return!1;if(i){if(typeof i=="string")return i;if(typeof i=="function"){var o=i(n);if(o){var a=this.loadFile(o);if(!a)throw new Error("Unable to load previous source map: "+o.toString());return a}}else{if(hr(i,mq))return yq.fromSourceMap(i).toString();if(hr(i,yq))return i.toString();if(this.isMap(i))return JSON.stringify(i);throw new Error("Unsupported previous source map format: "+i.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var s=this.annotation;return n&&(s=uqe(jT(n),s)),this.loadFile(s)}}},t.startWith=function(n,i){return n?n.substr(0,i.length)===i:!1},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),Xae=yk;yk.default=yk;var fqe=Ln.SourceMapConsumer,pqe=Ln.SourceMapGenerator,Sq=Ln.fileURLToPath,C1=Ln.pathToFileURL,Sk=Ln.isAbsolute,Ck=Ln.resolve,hqe=sqe.nanoid,FT=Ln,Cq=f6,vqe=Xae,zT=Symbol("fromOffsetCac
502he"),gqe=!!(fqe&&pqe),bq=!!(Ck&&Sk),nw=function(){function e(r,n){if(n===void 0&&(n={}),r===null||typeof r>"u"||(typeof r>"u"?"undefined":Pr(r))==="object"&&!r.toString)throw new Error("PostCSS received "+r+" instead of CSS string");if(this.css=r.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,n.from&&(!bq||/^\w+:\/\//.test(n.from)||Sk(n.from)?this.file=n.from:this.file=Ck(n.from)),bq&&gqe){var i=new vqe(this.css,n);if(i.text){this.map=i;var o=i.consumer().file;!this.file&&o&&(this.file=this.mapResolve(o))}}this.file||(this.id="<input css "+hqe(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(n,i,o,a){a===void 0&&(a={});var s,l,c;if(i&&(typeof i>"u"?"undefined":Pr(i))==="object"){var d=i,u=o;if(typeof d.offset=="number"){var f=this.fromOffset(d.offset);i=f.line,o=f.col}else i=d.line,o=d.column;if(typeof u.offset=="number"){var h=this.fromOffset(u.offset);l=h.line,c=h.col}else l=u.line,c=u.column}else if(!o){var v=this.fromOffset(i);i=v.line,o=v.col}var y=this.origin(i,o,l,c);return y?s=new Cq(n,y.endLine===void 0?y.line:{column:y.column,line:y.line},y.endLine===void 0?y.column:{column:y.endColumn,line:y.endLine},y.source,y.file,a.plugin):s=new Cq(n,l===void 0?i:{column:o,line:i},l===void 0?o:{column:c,line:l},this.css,this.file,a.plugin),s.input={column:o,endColumn:c,endLine:l,line:i,source:this.css},this.file&&(C1&&(s.input.url=C1(this.file).toString()),s.input.file=this.file),s},t.fromOffset=function(n){var i,o;if(this[zT])o=this[zT];else{var a=this.css.split(`
503`);o=new Array(a.length);for(var s=0,l=0,c=a.length;l<c;l++)o[l]=s,s+=a[l].length+1;this[zT]=o}i=o[o.length-1];var d=0;if(n>=i)d=o.length-1;else for(var u=o.length-2,f;d<u;)if(f=d+(u-d>>1),n<o[f])u=f-1;else if(n>=o[f+1])d=f+1;else{d=f;break}return{col:n-o[d]+1,line:d+1}},t.mapResolve=function(n){return/^\w+:\/\//.test(n)?n:Ck(this.map.consumer().sourceRoot||this.map.root||".",n)},t.origin=function(n,i,o,a){if(!this.map)return!1;var s=this.map.consumer(),l=s.originalPositionFor({column:i,line:n});if(!l.source)return!1;var c;typeof o=="number"&&(c=s.originalPositionFor({column:a,line:o}));var d;Sk(l.source)?d=C1(l.source):d=new URL(l.source,this.map.consumer().sourceRoot||C1(this.map.mapFile));var u={column:l.column,endColumn:c&&c.column,endLine:c&&c.line,line:l.line,url:d.toString()};if(d.protocol==="file:")if(Sq)u.file=Sq(d);else throw new Error("file: protocol is not available in this PostCSS build");var f=s.sourceContentFor(l.source);return f&&(u.source=f),u},t.toJSON=function(){for(var n={},i=0,o=["hasBOM","css","file","id"];i<o.length;i++){var a=o[i];this[a]!=null&&(n[a]=this[a])}return this.map&&(n.map=Mr({},this.map),n.map.consumerCache&&(n.map.consumerCache=void 0)),n},Ai(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),zR=nw;nw.default=nw;FT&&FT.registerInput&&FT.registerInput(nw);var Qae=Ln.SourceMapConsumer,OC=Ln.SourceMapGenerator,TC=Ln.dirname,Jae=Ln.relative,Zae=Ln.resolve,ese=Ln.sep,wq=Ln.pathToFileURL,mqe=zR,yqe=!!(Qae&&OC),Sqe=!!(TC&&Zae&&Jae&&ese),Cqe=function(){function e(r,n,i,o){this.stringify=r,this.mapOpts=i.map||{},this.root=n,this.opts=i,this.css=o,this.originalCSS=o,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var n;this.isInline()?n="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?n=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?n=this.mapOpts.annotation(this.opts.to,this.root):n=this.outputFile()+".map";var i=`
504`;this.css.includes(`\r
505`)&&(i=`\r
506`),this.css+=i+"/*# sourceMappingURL="+n+" */"},t.applyPrevMaps=function(){for(var n=Ft(this.previous()),i;!(i=n()).done;){var o=i.value,a=this.toUrl(this.path(o.file)),s=o.root||TC(o.file),l=void 0;this.mapOpts.sourcesContent===!1?(l=new Qae(o.text),l.sourcesContent&&(l.sourcesContent=null)):l=o.consumer(),this.map.applySourceMap(l,a,this.toUrl(this.path(s)))}},t.clearAnnotation=function(){if(this.mapOpts.annotation!==!1)if(this.root)for(var n,i=this.root.nodes.length-1;i>=0;i--)n=this.root.nodes[i],n.type==="comment"&&n.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(i);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),Sqe&&yqe&&this.isMap())return this.generateMap();var n="";return this.stringify(this.root,function(i){n+=i}),[n]},t.generateMap=function(){if(this.root)this.generateString();else if(this.previous().length===1){var n=this.previous()[0].consumer();n.file=this.outputFile(),this.map=OC.fromSourceMap(n,{ignoreInvalidMapping:!0})}else this.map=new OC({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.generateString=function(){var n=this;this.css="",this.map=new OC({file:this.outputFile(),ignoreInvalidMapping:!0});var i=1,o=1,a="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""},l,c;this.stringify(this.root,function(d,u,f){if(n.css+=d,u&&f!=="end"&&(s.generated.line=i,s.generated.column=o-1,u.source&&u.source.start?(s.source=n.sourcePath(u),s.original.line=u.source.start.line,s.original.column=u.source.start.column-1,n.map.addMapping(s)):(s.source=a,s.original.line=1,s.original.column=0,n.map.addMapping(s))),l=d.match(/\n/g),l?(i+=l.length,c=d.lastIndexOf(`
507`),o=d.length-c):o+=d.length,u&&f!=="start"){var h=u.parent||{raws:{}},v=u.type==="decl"||u.type==="atrule"&&!u.nodes;(!v||u!==h.last||h.raws.semicolon)&&(u.source&&u.source.end?(s.source=n.sourcePath(u),s.original.line=u.source.end.line,s.original.column=u.source.end.column-1,s.generated.line=i,s.generated.column=o-2,n.map.addMapping(s)):(s.source=a,s.original.line=1,s.original.column=0,s.generated.line=i,s.generated.column=o-1,n.map.addMapping(s)))}})},t.isAnnotation=function(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(function(n){return n.annotation}):!0},t.isInline=function(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;var n=this.mapOpts.annotation;return typeof n<"u"&&n!==!0?!1:this.previous().length?this.previous().some(function(i){return i.inline}):!0},t.isMap=function(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(function(n){return n.withContent()}):!0},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}
vendor: 4,425 bytes, line 507
507,t.path=function(n){if(this.mapOpts.absolute||n.charCodeAt(0)===60||/^\w+:\/\//.test(n))return n;var i=this.memoizedPaths.get(n);if(i)return i;var o=this.opts.to?TC(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(o=TC(Zae(o,this.mapOpts.annotation)));var a=Jae(o,n);return this.memoizedPaths.set(n,a),a},t.previous=function(){var n=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(o){if(o.source&&o.source.input.map){var a=o.source.input.map;n.previousMaps.includes(a)||n.previousMaps.push(a)}});else{var i=new mqe(this.originalCSS,this.opts);i.map&&this.previousMaps.push(i.map)}return this.previousMaps},t.setSourcesContent=function(){var n=this,i={};if(this.root)this.root.walk(function(a){if(a.source){var s=a.source.input.from;if(s&&!i[s]){i[s]=!0;var l=n.usesFileUrls?n.toFileUrl(s):n.toUrl(n.path(s));n.map.setSourceContent(l,a.source.input.css)}}});else if(this.css){var o=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(o,this.css)}},t.sourcePath=function(n){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(n.source.input.from):this.toUrl(this.path(n.source.input.from))},t.toBase64=function(n){return Buffer?Buffer.from(n).toString("base64"):window.btoa(unescape(encodeURIComponent(n)))},t.toFileUrl=function(n){var i=this.memoizedFileURLs.get(n);if(i)return i;if(wq){var o=wq(n).toString();return this.memoizedFileURLs.set(n,o),o}else throw new Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(n){var i=this.memoizedURLs.get(n);if(i)return i;ese==="\\"&&(n=n.replace(/\\/g,"/"));var o=encodeURI(n).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(n,o),o},e}(),tse=Cqe,bqe=jR,bk=function(e){Ji(t,e);function t(r){var n;return n=e.call(this,r)||this,n.type="comment",n}return t}(bqe),BR=bk;bk.default=bk;var rse=iu.isClean,nse=iu.my,ise=FR,ose=BR,wqe=jR,ase,p6,h6,sse;function lse(e){return e.map(function(t){return t.nodes&&(t.nodes=lse(t.nodes)),delete t.source,t})}function cse(e){if(e[rse]=!1,e.proxyOf.nodes)for(var t=Ft(e.proxyOf.nodes),r;!(r=t()).done;){var n=r.value;cse(n)}}var Rl=function(e){Ji(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.append=function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];for(var s=Ft(o),l;!(l=s()).done;)for(var c=l.value,d=this.normalize(c,this.last),u=Ft(d),f;!(f=u()).done;){var h=f.value;this.proxyOf.nodes.push(h)}return this.markDirty(),this},r.cleanRaws=function(i){if(e.prototype.cleanRaws.call(this,i),this.nodes)for(var o=Ft(this.nodes),a;!(a=o()).done;){var s=a.value;s.cleanRaws(i)}},r.each=function(i){if(this.proxyOf.nodes){for(var o=this.getIterator(),a,s;this.indexes[o]<this.proxyOf.nodes.length&&(a=this.indexes[o],s=i(this.proxyOf.nodes[a],a),s!==!1);)this.indexes[o]+=1;return delete this.indexes[o],s}},r.every=function(i){return this.nodes.every(i)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var i=this.lastEach;return this.indexes[i]=0,i},r.getProxyProcessor=function(){return{get:function(o,a){return a==="proxyOf"?o:o[a]?a==="each"||typeof a=="string"&&a.startsWith("walk")?function(){for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];var d;return(d=o)[a].apply(d,[].concat(l.map(function(u){return typeof u=="function"?function(f,h){return u(f.toProxy(),h)}:u})))}:a==="every"||a==="some"?function(s){return o[a](function(l){for(var c=arguments.length,d=new Array(c>1?c-1:0),u=1;u<c;u++)d[u-1]=arguments[u];return s.apply(void 0,[].concat([l.toProxy()],d))})}:a==="root"?function(){return o.root().toProxy()}:a==="nodes"?o.nodes.map(function(s){return s.toProxy()}):a==="first"||a==="last"?o[a].toProxy():o[a]:o[a]},set:function(o,a,s){return o[a]===s||(o[a]=s,(a==="name"||a==="params"||a==="selector")&&o.markDirty()),!0}}},r.index=function(i){return typeof i=="number"?i:(i.proxyOf&&(i=i.proxyOf),this.proxyOf.nodes.indexOf(i))},r.insertAfter=function(i,o){var a=this.index(i),s=this.normalize(o,this.proxyOf.nodes[a]).reverse();a=this.index(i);for(var l=Ft(s),c;!(c=l()).done;){var d=c.value;this.proxyOf.nodes.splice(a+1,0,d)}var u;for(var f in this.indexes)u=this.indexes[f],a<u&&(this.indexes[f]=u+s.length);return this.markDirty(),this},r.insertBefore=function(i,o){var a=this.index(i),s=a===0?"prepe
507nd":!1,l=this.normalize(o,this.proxyOf.nodes[a],s).reverse();a=this.index(i);for(var c=Ft(l),d;!(d=c()).done;){var u=d.value;this.proxyOf.nodes.splice(a,0,u)}var f;for(var h in this.indexes)f=this.indexes[h],a<=f&&(this.indexes[h]=f+l.length);return this.markDirty(),this},r.normalize=function(i,o){var a=this;if(typeof i=="string")i=lse(ase(i).nodes);else if(typeof i>"u")i=[];else if(Array.isArray(i)){i=i.slice(0);for(var s=Ft(i),l;!(l=s()).done;){var c=l.value;c.parent&&c.parent.removeChild(c,"ignore")}}else if(i.type==="root"&&this.type!=="document"){i=i.nodes.slice(0);for(var d=Ft(i),u;!(u=d()).done;){var f=u.value;f.parent&&f.parent.removeChild(f,"ignore")}}else if(i.type)i=[i];else if(i.prop){if(typeof i.value>"u")throw new Error("Value field is missed in node creation");typeof i.value!="string"&&(i.value=String(i.value)),i=[new ise(i)]}else if(i.selector)i=[new p6(i)];else if(i.name)i=[new h6(i)];else if(i.text)i=[new ose(i)];else throw new Error("Unknown node type in node creation");var h=i.map(function(v){return v[nse]||t.rebuild(v),v=v.proxyOf,v.parent&&v.parent.removeChild(v),v[rse]&&cse(v),typeof v.raws.before>"u"&&o&&typeof o.raws.before<"u"&&(v.raws.before=o.raws.before.replace(/\S/g,"")),v.parent=a.proxyOf,v});return h},r.prepend=function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];o=o.reverse();for(var s=Ft(o),l;!(l=s()).done;){for(var c=l.value,d=this.normalize(c,this.first,"prepend").reverse(),u=Ft(d),f;!(f=u()).done;){var h=f.value;this.proxyOf.nodes.unshift(h)}for(var v in this.indexes)this.indexes[v]=this.indexes[v]+d.length}return this.markDirty(),this},r.push=function(i){return i.parent=this,this.proxyOf.nodes.push(i),this},r.removeAll=function(){for(var i=Ft(this.proxyOf.nodes),o;!(o=i()).done;){var a=o.value;a.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(i){i=this.index(i),this.proxyOf.nodes[i].parent=void 0,this.proxyOf.nodes.splice(i,1);var o;for(var a in this.indexes)o=this.indexes[a],o>=i&&(this.indexes[a]=o-1);return this.markDirty(),this},r.replaceValues=function(i,o,a){return a||(a=o,o={}),this.walkDecls(function(s){o.props&&!o.props.includes(s.prop)||o.fast&&!s.value.includes(o.fast)||(s.value=s.value.replace(i,a))}),this.markDirty(),this},r.some=function(i){return this.nodes.some(i)},r.walk=function(i){return this.each(function(o,a){var s;try{s=i(o,a)}catch(l){throw o.addToError(l)}return s!==!1&&o.walk&&(s=o.walk(i)),s})},r.walkAtRules=function(i,o){return o?hr(i,RegExp)?this.walk(function(a,s){if(a.type==="atrule"&&i.test(a.name))return o(a,s)}):this.walk(function(a,s){if(a.type==="atrule"&&a.name===i)return o(a,s)}):(o=i,this.walk(function(a,s){if(a.type==="atrule")return o(a,s)}))},r.walkComments=function(i){return this.walk(function(o,a){if(o.type==="comment")return i(o,a)})},r.walkDecls=function(i,o){return o?hr(i,RegExp)?this.walk(function(a,s){if(a.type==="decl"&&i.test(a.prop))return o(a,s)}):this.walk(function(a,s){if(a.type==="decl"&&a.prop===i)return o(a,s)}):(o=i,this.walk(function(a,s){if(a.type==="decl")return o(a,s)}))},r.walkRules=function(i,o){return o?hr(i,RegExp)?this.walk(function(a,s){if(a.type==="rule"&&i.test(a.selector))return o(a,s)}):this.walk(function(a,s){if(a.type==="rule"&&a.selector===i)return o(a,s)}):(o=i,this.walk(function(a,s){if(a.type==="rule")return o(a,s)}))},Ai(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}(wqe);Rl.registerParse=function(e){ase=e};Rl.registerRule=function(e){p6=e};Rl.registerAtRule=function(e){h6=e};Rl.registerRoot=function(e){sse=e};var Wd=Rl;Rl.default=Rl;Rl.rebuild=function(e){e.type==="atrule"?Object.setPrototypeOf(e,h6.prototype):e.type==="rule"?Object.setPrototypeOf(e,p6.prototype):e.type==="decl"?Object.setPrototypeOf(e,ise.prototype):e.type==="comment"?Object.setPrototypeOf(e,ose.prototype):e.type==="root"&&Object.setPrototypeOf(e,sse.prototype),e[nse]=!0,e.nodes&&e.nodes.forEach(function(t){Rl.rebuild(t)})};var _qe=Wd,use,dse,My=function(e){Ji(t,e);function t(n){var i;return i=e.call(this,Mr({type:"document"},n))||this,i.nodes||(i.nodes=[]),i}
vendor: 7,416 bytes, lines 507-509
507var r=t.prototype;return r.toResult=function(i){i===void 0&&(i={});var o=new use(new dse,this,i);return o.stringify()},t}(_qe);My.registerLazyResult=function(e){use=e};My.registerProcessor=function(e){dse=e};var v6=My;My.default=My;var wk=function(){function e(r,n){if(n===void 0&&(n={}),this.type="warning",this.text=r,n.node&&n.node.source){var i=n.node.rangeBy(n);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(var o in n)this[o]=n[o]}var t=e.prototype;return t.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}(),fse=wk;wk.default=wk;var Eqe=fse,_k=function(){function e(r,n,i){this.processor=r,this.messages=[],this.root=n,this.opts=i,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(n,i){i===void 0&&(i={}),i.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(i.plugin=this.lastPlugin.postcssPlugin);var o=new Eqe(n,i);return this.messages.push(o),o},t.warnings=function(){return this.messages.filter(function(n){return n.type==="warning"})},Ai(e,[{key:"content",get:function(){return this.css}}]),e}(),g6=_k;_k.default=_k;var BT="'".charCodeAt(0),_q='"'.charCodeAt(0),b1="\\".charCodeAt(0),Eq="/".charCodeAt(0),w1=`
508`.charCodeAt(0),Lg=" ".charCodeAt(0),_1="\f".charCodeAt(0),E1="	".charCodeAt(0),R1="\r".charCodeAt(0),Rqe="[".charCodeAt(0),Pqe="]".charCodeAt(0),Iqe="(".charCodeAt(0),xqe=")".charCodeAt(0),Oqe="{".charCodeAt(0),Tqe="}".charCodeAt(0),Aqe=";".charCodeAt(0),Mqe="*".charCodeAt(0),$qe=":".charCodeAt(0),kqe="@".charCodeAt(0),P1=/[\t\n\f\r "#'()/;[\\\]{}]/g,I1=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Nqe=/.[\r\n"'(/\\]/,Rq=/[\da-f]/i,Dqe=function(t,r){r===void 0&&(r={});var n=t.css.valueOf(),i=r.ignoreErrors,o,a,s,l,c,d,u,f,h,v,y=n.length,g=0,m=[],S=[];function C(){return g}function b(R){throw t.error("Unclosed "+R,g)}function w(){return S.length===0&&g>=y}function E(R){if(S.length)return S.pop();if(!(g>=y)){var P=R?R.ignoreUnclosed:!1;switch(o=n.charCodeAt(g),o){case w1:case Lg:case E1:case R1:case _1:{a=g;do a+=1,o=n.charCodeAt(a);while(o===Lg||o===w1||o===E1||o===R1||o===_1);v=["space",n.slice(g,a)],g=a-1;break}case Rqe:case Pqe:case Oqe:case Tqe:case $qe:case Aqe:case xqe:{var I=String.fromCharCode(o);v=[I,I,g];break}case Iqe:{if(f=m.length?m.pop()[1]:"",h=n.charCodeAt(g+1),f==="url"&&h!==BT&&h!==_q&&h!==Lg&&h!==w1&&h!==E1&&h!==_1&&h!==R1){a=g;do{if(d=!1,a=n.indexOf(")",a+1),a===-1)if(i||P){a=g;break}else b("bracket");for(u=a;n.charCodeAt(u-1)===b1;)u-=1,d=!d}while(d);v=["brackets",n.slice(g,a+1),g,a],g=a}else a=n.indexOf(")",g+1),l=n.slice(g,a+1),a===-1||Nqe.test(l)?v=["(","(",g]:(v=["brackets",l,g,a],g=a);break}case BT:case _q:{s=o===BT?"'":'"',a=g;do{if(d=!1,a=n.indexOf(s,a+1),a===-1)if(i||P){a=g+1;break}else b("string");for(u=a;n.charCodeAt(u-1)===b1;)u-=1,d=!d}while(d);v=["string",n.slice(g,a+1),g,a],g=a;break}case kqe:{P1.lastIndex=g+1,P1.test(n),P1.lastIndex===0?a=n.length-1:a=P1.lastIndex-2,v=["at-word",n.slice(g,a+1),g,a],g=a;break}case b1:{for(a=g,c=!0;n.charCodeAt(a+1)===b1;)a+=1,c=!c;if(o=n.charCodeAt(a+1),c&&o!==Eq&&o!==Lg&&o!==w1&&o!==E1&&o!==R1&&o!==_1&&(a+=1,Rq.test(n.charAt(a)))){for(;Rq.test(n.charAt(a+1));)a+=1;n.charCodeAt(a+1)===Lg&&(a+=1)}v=["word",n.slice(g,a+1),g,a],g=a;break}default:{o===Eq&&n.charCodeAt(g+1)===Mqe?(a=n.indexOf("*/",g+2)+1,a===0&&(i||P?a=n.length:b("comment")),v=["comment",n.slice(g,a+1),g,a],g=a):(I1.lastIndex=g+1,I1.test(n),I1.lastIndex===0?a=n.length-1:a=I1.lastIndex-2,v=["word",n.slice(g,a+1),g,a],m.push(v),g=a);break}}return g++,v}}function _(R){S.push(R)}return{back:_,endOfFile:w,nextToken:E,position:C}},pse=Wd,iw=function(e){Ji(t,e);function t(n){var i;return i=e.call(this,n)||this,i.type="atrule",i}var r=t.prototype;return r.append=function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];var s;return this.proxyOf.nodes||(this.nodes=[]),(s=e.prototype.append).call.apply(s,[].concat([this],o))},r.prepend=function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];var s;return this.proxyOf.nodes||(this.nodes=[]),(s=e.prototype.prepend).call.apply(s,[].concat([this],o))},t}(pse),m6=iw;iw.default=iw;pse.registerAtRule(iw);var hse=Wd,vse,gse,Ap=function(e){Ji(t,e);function t(n){var i;return i=e.call(this,n)||this,i.type="root",i.nodes||(i.nodes=[]),i}var r=t.prototype;return r.normalize=function(i,o,a){var s=e.prototype.normalize.call(this,i);if(o){if(a==="prepend")this.nodes.length>1?o.raws.before=this.nodes[1].raws.before:delete o.raws.before;else if(this.first!==o)for(var l=Ft(s),c;!(c=l()).done;){var d=c.value;d.raws.before=o.raws.before}}return s},r.removeChild=function(i,o){var a=this.index(i);return!o&&a===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[a].raws.before),e.prototype.removeChild.call(this,i)},r.toResult=function(i){i===void 0&&(i={});var o=new vse(new gse,this,i);return o.stringify()},t}(hse);Ap.registerLazyResult=function(e){vse=e};Ap.registerProcessor=function(e){gse=e};var X0=Ap;Ap.default=Ap;hse.registerRoot(Ap);var $y={comma:function(t){return $y.split(t,[","],!0)},space:function(t){var r=[" ",`
509`,"	"];return $y.split(t,r)},split:function(t,r,n){for(var i=[],o="",a=!1,s=0,l=!1,c="",d=!1,u=Ft(t),f;!(f=u()).done;){var h=f.value;d?d=!1:h==="\\"?d=!0:l?h===c&&(l=!1):h==='"'||h==="'"?(l=!0,c=h):h==="("?s+=1:h===")"?s>0&&(s-=1):s===0&&r.includes(h)&&(a=!0),a?(o!==""&&i.push(o.trim()),o="",a=!1):o+=h}return(n||o!=="")&&i.push(o.trim()),i}},mse=$y;$y.default=$y;var yse=Wd,Lqe=mse,ow=function(e){Ji(t,e);function t(r){var n;return n=e.call(this,r)||this,n.type="rule",n.nodes||(n.nodes=[]),n}return Ai(t,[{key:"selectors",get:function(){return Lqe.comma(this.selector)},set:function(n){var i=this.selector?this.selector.match(/,\s*/):null,o=i?i[0]:","+this.raw("between","beforeOpen");this.selector=n.join(o)}}]),t}(yse),y6=ow;ow.default=ow;yse.registerRule(ow);var jqe=FR,Fqe=Dqe,zqe=BR,Bqe=m6,Hqe=X0,Pq=y6,Iq={empty:!0,space:!0};function Vqe(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}var Uqe=function(){function e(r){this.input=r,this.root=new Hqe,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:r,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(n){var i=new Bqe;i.name=n[1].slice(1),i.name===""&&this.unnamedAtrule(i,n),this.init(i,n[2]);for(var o,a,s,l=!1,c=!1,d=[],u=[];!this.tokenizer.endOfFile();){if(n=this.tokenizer.nextToken(),o=n[0],o==="("||o==="["?u.push(o==="("?")":"]"):o==="{"&&u.length>0?u.push("}"):o===u[u.length-1]&&u.pop(),u.length===0)if(o===";"){i.source.end=this.getPosition(n[2]),i.source.end.offset++,this.semicolon=!0;break}else if(o==="{"){c=!0;break}else if(o==="}"){if(d.length>0){for(s=d.length-1,a=d[s];a&&a[0]==="space";)a=d[--s];a&&(i.source.end=this.getPosition(a[3]||a[2]),i.source.end.offset++)}this.end(n);break}else d.push(n);else d.push(n);if(this.tokenizer.endOfFile()){l=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(d),d.length?(i.raws.afterName=this.spacesAndCommentsFromStart(d),this.raw(i,"params",d),l&&(n=d[d.length-1],i.source.end=this.getPosition(n[3]||n[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),c&&
vendor: 4,165 bytes, line 509
509(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(n){var i=this.colon(n);if(i!==!1){for(var o=0,a,s=i-1;s>=0&&(a=n[s],!(a[0]!=="space"&&(o+=1,o===2)));s--);throw this.input.error("Missed semicolon",a[0]==="word"?a[3]+1:a[2])}},t.colon=function(n){for(var i=0,o,a,s,l=Ft(n.entries()),c;!(c=l()).done;){var d=c.value,u=d[0],f=d[1];if(o=f,a=o[0],a==="("&&(i+=1),a===")"&&(i-=1),i===0&&a===":")if(!s)this.doubleColon(o);else{if(s[0]==="word"&&s[1]==="progid")continue;return u}s=o}return!1},t.comment=function(n){var i=new zqe;this.init(i,n[2]),i.source.end=this.getPosition(n[3]||n[2]),i.source.end.offset++;var o=n[1].slice(2,-2);if(/^\s*$/.test(o))i.text="",i.raws.left=o,i.raws.right="";else{var a=o.match(/^(\s*)([^]*\S)(\s*)$/);i.text=a[2],i.raws.left=a[1],i.raws.right=a[3]}},t.createTokenizer=function(){this.tokenizer=Fqe(this.input)},t.decl=function(n,i){var o=new jqe;this.init(o,n[0][2]);var a=n[n.length-1];for(a[0]===";"&&(this.semicolon=!0,n.pop()),o.source.end=this.getPosition(a[3]||a[2]||Vqe(n)),o.source.end.offset++;n[0][0]!=="word";)n.length===1&&this.unknownWord(n),o.raws.before+=n.shift()[1];for(o.source.start=this.getPosition(n[0][2]),o.prop="";n.length;){var s=n[0][0];if(s===":"||s==="space"||s==="comment")break;o.prop+=n.shift()[1]}o.raws.between="";for(var l;n.length;)if(l=n.shift(),l[0]===":"){o.raws.between+=l[1];break}else l[0]==="word"&&/\w/.test(l[1])&&this.unknownWord([l]),o.raws.between+=l[1];(o.prop[0]==="_"||o.prop[0]==="*")&&(o.raws.before+=o.prop[0],o.prop=o.prop.slice(1));for(var c=[],d;n.length&&(d=n[0][0],!(d!=="space"&&d!=="comment"));)c.push(n.shift());this.precheckMissedSemicolon(n);for(var u=n.length-1;u>=0;u--){if(l=n[u],l[1].toLowerCase()==="!important"){o.important=!0;var f=this.stringFrom(n,u);f=this.spacesFromEnd(n)+f,f!==" !important"&&(o.raws.important=f);break}else if(l[1].toLowerCase()==="important"){for(var h=n.slice(0),v="",y=u;y>0;y--){var g=h[y][0];if(v.trim().indexOf("!")===0&&g!=="space")break;v=h.pop()[1]+v}v.trim().indexOf("!")===0&&(o.important=!0,o.raws.important=v,n=h)}if(l[0]!=="space"&&l[0]!=="comment")break}var m=n.some(function(S){return S[0]!=="space"&&S[0]!=="comment"});m&&(o.raws.between+=c.map(function(S){return S[1]}).join(""),c=[]),this.raw(o,"value",c.concat(n),i),o.value.includes(":")&&!i&&this.checkMissedSemicolon(n)},t.doubleColon=function(n){throw this.input.error("Double colon",{offset:n[2]},{offset:n[2]+n[1].length})},t.emptyRule=function(n){var i=new Pq;this.init(i,n[2]),i.selector="",i.raws.between="",this.current=i},t.end=function(n){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(n[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(n)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(n){if(this.spaces+=n[1],this.current.nodes){var i=this.current.nodes[this.current.nodes.length-1];i&&i.type==="rule"&&!i.raws.ownSemicolon&&(i.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(n){var i=this.input.fromOffset(n);return{column:i.col,line:i.line,offset:n}},t.init=function(n,i){this.current.push(n),n.source={input:this.input,start:this.getPosition(i)},n.raws.before=this.spaces,this.spaces="",n.type!=="comment"&&(this.semicolon=!1)},t.other=function(n){for(var i=!1,o=null,a=!1,s=null,l=[],c=n[1].startsWith("--"),d=[],u=n;u;){if(o=u[0],d.push(u),o==="("||o==="[")s||(s=u),l.push(o==="("?")":"]");else if(c&&a&&o==="{")s||(s=u),l.push("}");else if(l.length===0)if(o===";")if(a){this.decl(d,c);return}else break;else if(o==="{"){this.rule(d);return}else if(o==="}"){this.tokenizer.back(d.pop()),i=!0;break}else o===":"&&(a=!0);else o===l[l.length-1]&&(l.pop(),l.length===0&&(s=null));u=this.tokenizer.nextToken()}
vendor: 30,218 bytes, lines 509-526
509if(this.tokenizer.endOfFile()&&(i=!0),l.length>0&&this.unclosedBracket(s),i&&a){if(!c)for(;d.length&&(u=d[d.length-1][0],!(u!=="space"&&u!=="comment"));)this.tokenizer.back(d.pop());this.decl(d,c)}else this.unknownWord(d)},t.parse=function(){for(var n;!this.tokenizer.endOfFile();)switch(n=this.tokenizer.nextToken(),n[0]){case"space":this.spaces+=n[1];break;case";":this.freeSemicolon(n);break;case"}":this.end(n);break;case"comment":this.comment(n);break;case"at-word":this.atrule(n);break;case"{":this.emptyRule(n);break;default:this.other(n);break}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(n,i,o,a){for(var s,l,c=o.length,d="",u=!0,f,h,v=0;v<c;v+=1)s=o[v],l=s[0],l==="space"&&v===c-1&&!a?u=!1:l==="comment"?(h=o[v-1]?o[v-1][0]:"empty",f=o[v+1]?o[v+1][0]:"empty",!Iq[h]&&!Iq[f]?d.slice(-1)===","?u=!1:d+=s[1]:u=!1):d+=s[1];if(!u){var y=o.reduce(function(g,m){return g+m[1]},"");n.raws[i]={raw:y,value:d}}n[i]=d},t.rule=function(n){n.pop();var i=new Pq;this.init(i,n[0][2]),i.raws.between=this.spacesAndCommentsFromEnd(n),this.raw(i,"selector",n),this.current=i},t.spacesAndCommentsFromEnd=function(n){for(var i,o="";n.length&&(i=n[n.length-1][0],!(i!=="space"&&i!=="comment"));)o=n.pop()[1]+o;return o},t.spacesAndCommentsFromStart=function(n){for(var i,o="";n.length&&(i=n[0][0],!(i!=="space"&&i!=="comment"));)o+=n.shift()[1];return o},t.spacesFromEnd=function(n){for(var i,o="";n.length&&(i=n[n.length-1][0],i==="space");)o=n.pop()[1]+o;return o},t.stringFrom=function(n,i){for(var o="",a=i;a<n.length;a++)o+=n[a][1];return n.splice(i,n.length-i),o},t.unclosedBlock=function(){var n=this.current.source.start;throw this.input.error("Unclosed block",n.line,n.column)},t.unclosedBracket=function(n){throw this.input.error("Unclosed bracket",{offset:n[2]},{offset:n[2]+1})},t.unexpectedClose=function(n){throw this.input.error("Unexpected }",{offset:n[2]},{offset:n[2]+1})},t.unknownWord=function(n){throw this.input.error("Unknown word",{offset:n[0][2]},{offset:n[0][2]+n[0][1].length})},t.unnamedAtrule=function(n,i){throw this.input.error("At-rule without name",{offset:i[2]},{offset:i[2]+i[1].length})},e}(),Wqe=Uqe,qqe=Wd,Gqe=Wqe,Kqe=zR;function aw(e,t){var r=new Kqe(e,t),n=new Gqe(r);try{n.parse()}catch(i){throw i}return n.root}var S6=aw;aw.default=aw;qqe.registerParse(aw);var ws=iu.isClean,Yqe=iu.my,Xqe=tse,Qqe=LR,Jqe=Wd,Zqe=v6,xq=g6,eGe=S6,tGe=X0,rGe={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},nGe={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},iGe={Once:!0,postcssPlugin:!0,prepare:!0},Mp=0;function jg(e){return(typeof e>"u"?"undefined":Pr(e))==="object"&&typeof e.then=="function"}function Sse(e){var t=!1,r=rGe[e.type];return e.type==="decl"?t=e.prop.toLowerCase():e.type==="atrule"&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,Mp,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,Mp,r+"Exit"]:[r,r+"Exit"]}function Oq(e){var t;return e.type==="document"?t=["Document",Mp,"DocumentExit"]:e.type==="root"?t=["Root",Mp,"RootExit"]:t=Sse(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function Ek(e){return e[ws]=!1,e.nodes&&e.nodes.forEach(function(t){return Ek(t)}),e}var Rk={},$p=function(){function e(r,n,i){var o=this;this.stringified=!1,this.processed=!1;var a;if((typeof n>"u"?"undefined":Pr(n))==="object"&&n!==null&&(n.type==="root"||n.type==="document"))a=Ek(n);else if(hr(n,e)||hr(n,xq))a=Ek(n.root),n.map&&(typeof i.map>"u"&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=n.map);else{var s=eGe;i.syntax&&(s=i.syntax.parse),i.parser&&(s=i.parser),s.parse&&(s=s.parse);try{a=s(n,i)}catch(l){this.processed=!0,this.error=l}a&&!a[Yqe]&&Jqe.rebuild(a)}this.result=new xq(r,a,i),this.helpers=Mr({},Rk,{postcss:Rk,result:this.result}),this.plugins=this.processor.plugins.map(function(l){return(typeof l>"u"?"undefined":Pr(l))==="object"&&l.prepare?Mr({},l,l.prepare(o.result)):l})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(n){return this.async().catch(n)},t.finally=function(n){return this.async().then(n,n)},t.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(n,i){var o=this.result.lastPlugin;try{if(i&&i.addToError(n),this.error=n,n.name==="CssSyntaxError"&&!n.plugin)n.plugin=o.postcssPlugin,n.setMessage();else if(o.postcssVersion)var a,s,l,c,d}catch{}return n},t.prepareVisitors=function(){var n=this;this.listeners={};for(var i=function(d,u,f){n.listeners[u]||(n.listeners[u]=[]),n.listeners[u].push([d,f])},o=Ft(this.plugins),a;!(a=o()).done;){var s=a.value;if((typeof s>"u"?"undefined":Pr(s))==="object")for(var l in s){if(!nGe[l]&&/^[A-Z]/.test(l))throw new Error("Unknown event "+l+" in "+s.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!iGe[l])if(Pr(s[l])==="object")for(var c in s[l])c==="*"?i(s,l,s[l][c]):i(s,l+"-"+c.toLowerCase(),s[l][c]);else typeof s[l]=="function"&&i(s,l,s[l])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var n=this;return a6(function(){var i,o,a,s,l,c,d,u,f,h,v,y;return Ty(this,function(g){switch(g.label){case 0:n.plugin=0,i=0,g.label=1;case 1:if(!(i<n.plugins.length))return[3,6];if(o=n.plugins[i],a=n.runOnRoot(o),!jg(a))return[3,5];g.label=2;case 2:return g.trys.push([2,4,,5]),[4,a];case 3:return g.sent(),[3,5];case 4:throw s=g.sent(),n.handleError(s);case 5:return i++,[3,1];case 6:if(n.prepareVisitors(),!n.hasListener)return[3,18];l=n.result.root,g.label=7;case 7:if(l[ws])return[3,14];l[ws]=!0,c=[Oq(l)],g.label=8;case 8:if(!(c.length>0))return[3,13];if(d=n.visitTick(c),!jg(d))return[3,12];g.label=9;case 9:return g.trys.push([9,11,,12]),[4,d];case 10:return g.sent(),[3,12];case 11:throw u=g.sent(),f=c[c.length-1].node,n.handleError(u,f);case 12:return[3,8];case 13:return[3,7];case 14:if(!n.listeners.OnceExit)return[3,18];h=function(){var m,S,C,b,w;return Ty(this,function(E){switch(E.label){case 0:m=y.value,S=m[0],C=m[1],n.result.lastPlugin=S,E.label=1;case 1:return E.trys.push([1,6,,7]),l.type!=="document"?[3,3]:(b=l.nodes.map(function(_){return C(_,n.helpers)}),[4,Promise.all(b)]);case 2:return E.sent(),[3,5];case 3:return[4,C(l,n.helpers)];case 4:E.sent(),E.label=5;case 5:return[3,7];case 6:throw w=E.sent(),n.handleError(w);case 7:return[2]}})},v=Ft(n.listeners.OnceExit),g.label=15;case 15:return(y=v()).done?[3,18]:[5,jae(h())];case 16:g.sent(),g.label=17;case 17:return[3,15];case 18:return n.processed=!0,[2,n.stringify()]}})})()},t.runOnRoot=function(n){var i=this;this.result.lastPlugin=n;try{if((typeof n>"u"?"undefined":Pr(n))==="object"&&n.Once){if(this.result.root.type==="document"){var o=this.result.root.nodes.map(function(a){return n.Once(a,i.helpers)});return jg(o[0])?Promise.all(o):o}return n.Once(this.result.root,this.helpers)}else if(typeof n=="function")return n(this.result.root,this.result)}catch(a){throw this.handleError(a)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var n=this.result.opts,i=Qqe;n.syntax&&(i=n.syntax.stringify),n.stringifier&&(i=n.stringifier),i.stringify&&(i=i.stringify);var o=new Xqe(i,this.result.root,this.result.opts),a=o.generate();return this.result.css=a[0],this.result.map=a[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var n=Ft(this.plugins),i;!(i=n()).done;){var o=i.value,a=this.runOnRoot(o);if(jg(a))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var s=this.result.root;!s[ws];)s[ws]=!0,this.walkSync(s);if(this.listeners.OnceExit)if(s.type==="document")for(var l=Ft(s.nodes),c;!(c=l()).done;){var d=c.value;this.visitSync(this.listeners.OnceExit,d)}else this.visitSync(this.listeners.OnceExit,s)}return this.result},t.then=function(n,i){return this.async().then(n,i)},t.toString=function(){return this.css},t.visitSync=function(n,i){for(var o=Ft(n),a;!(a=o()).done;){var s=a.value,l=s[0],c=s[1];this.result.lastPlugin=l;var d=void 0;try{d=c(i,this.helpers)}catch(u){throw this.handleError(u,i.proxyOf)}if(i.type!=="root"&&i.type!=="document"&&!i.parent)return!0;if(jg(d))throw this.getAsyncError()}},t.visitTick=function(n){var i=n[n.length-1],o=i.node,a=i.visitors;if(o.type!=="root"&&o.type!=="document"&&!o.parent){n.pop();return}if(a.length>0&&i.visitorIndex<a.length){var s=a[i.visitorIndex],l=s[0],c=s[1];i.visitorIndex+=1,i.visitorIndex===a.length&&(i.visitors=[],i.visitorIndex=0),this.result.lastPlugin=l;try{return c(o.toProxy(),this.helpers)}catch(v){throw this.handleError(v,o)}}if(i.iterator!==0){for(var d=i.iterator,u;u=o.nodes[o.indexes[d]];)if(o.indexes[d]+=1,!u[ws]){u[ws]=!0,n.push(Oq(u));return}i.iterator=0,delete o.indexes[d]}for(var f=i.events;i.eventIndex<f.length;){var h=f[i.eventIndex];if(i.eventIndex+=1,h===Mp){o.nodes&&o.nodes.length&&(o[ws]=!0,i.iterator=o.getIterator());return}else if(this.listeners[h]){i.visitors=this.listeners[h];return}}n.pop()},t.walkSync=function(n){var i=this;n[ws]=!0;for(var o=Sse(n),a=Ft(o),s;!(s=a()).done;){var l=s.value;if(l===Mp)n.nodes&&n.each(function(d){d[ws]||i.walkSync(d)});else{var c=this.listeners[l];if(c&&this.visitSync(c,n.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},Ai(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();$p.registerPostcss=function(e){Rk=e};var Cse=$p;$p.default=$p;tGe.registerLazyResult($p);Zqe.registerLazyResult($p);var oGe=tse,aGe=LR,sGe=S6,lGe=g6,Pk=function(){function e(r,n,i){n=n.toString(),this.stringified=!1,this._processor=r,this._css=n,this._opts=i,this._map=void 0;var o,a=aGe;this.result=new lGe(this._processor,o,this._opts),this.result.css=n;var s=this;Object.defineProperty(this.result,"root",{get:function(){return s.root}});var l=new oGe(a,o,this._opts,n);if(l.isMap()){var c=l.generate(),d=c[0],u=c[1];d&&(this.result.css=d),u&&(this.result.map=u)}else l.clearAnnotation(),this.result.css=l.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(n){return this.async().catch(n)},t.finally=function(n){return this.async().then(n,n)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(n,i){return this.async().then(n,i)},t.toString=function(){return this._css},t.warnings=function(){return[]},Ai(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var n,i=sGe;try{n=i(this._css,this._opts)}catch(o){this.error=o}if(this.error)throw this.error;return this._root=n,n}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),cGe=Pk;Pk.default=Pk;var uGe=cGe,dGe=Cse,fGe=v6,pGe=X0,ky=function(){function e(r){r===void 0&&(r=[]),this.version="8.4.38",this.plugins=this.normalize(r)}var t=e.prototype;return t.normalize=function(n){for(var i=[],o=Ft(n),a;!(a=o()).done;){var s=a.value;if(s.postcss===!0?s=s():s.postcss&&(s=s.postcss),(typeof s>"u"?"undefined":Pr(s))==="object"&&Array.isArray(s.plugins))i=i.concat(s.plugins);else if((typeof s>"u"?"undefined":Pr(s))==="object"&&s.postcssPlugin)i.push(s);else if(typeof s=="function")i.push(s);else if(!((typeof s>"u"?"undefined":Pr(s))==="object"&&(s.parse||s.stringify)))throw new Error(s+" is not a PostCSS plugin")}return i},t.process=function(n,i){return i===void 0&&(i={}),!this.plugins.length&&!i.parser&&!i.stringifier&&!i.syntax?new uGe(this,n,i):new dGe(this,n,i)},t.use=function(n){return this.plugins=this.plugins.concat(this.normalize([n])),this},e}(),hGe=ky;ky.default=ky;pGe.registerProcessor(ky);fGe.registerProcessor(ky);var vGe=FR,gGe=Xae,mGe=BR,yGe=m6,SGe=zR,CGe=X0,bGe=y6;function Ny(e,t){if(Array.isArray(e))return e.map(function(u){return Ny(u)});var r=e.inputs,n=xy(e,["inputs"]);if(r){t=[];for(var i=Ft(r),o;!(o=i()).done;){var a=o.value,s=Mr({},a,{__proto__:SGe.prototype});s.map&&(s.map=Mr({},s.map,{__proto__:gGe.prototype})),t.push(s)}}if(n.nodes&&(n.nodes=e.nodes.map(function(u){return Ny(u,t)})),n.source){var l=n.source,c=l.inputId,d=xy(l,["inputId"]);n.source=d,c!=null&&(n.source.input=t[c])}if(n.type==="root")return new CGe(n);if(n.type==="decl")return new vGe(n);if(n.type==="rule")return new bGe(n);if(n.type==="comment")return new mGe(n);if(n.type==="atrule")return new yGe(n);throw new Error("Unknown node type: "+e.type)}var wGe=Ny;Ny.default=Ny;var _Ge=f6,bse=FR,EGe=Cse,RGe=Wd,C6=hGe,PGe=LR,IGe=wGe,wse=v6,xGe=fse,_se=BR,Ese=m6,OGe=g6,TGe=zR,AGe=S6,MGe=mse,Rse=y6,Pse=X0,$Ge=jR;function Yr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new C6(t)}Yr.plugin=function(t,r){var n=!1;function i(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];console&&console.warn&&!n&&(n=!0,{}.LANG&&{}.LANG.startsWith("cn"));var c=r.apply(void 0,[].concat(s));return c.postcssPlugin=t,c.postcssVersion=new C6().version,c}var o;return Object.defineProperty(i,"postcss",{get:function(){return o||(o=i()),o}}),i.process=function(a,s,l){return Yr([i(l)]).process(a,s)},i};Yr.stringify=PGe;Yr.parse=AGe;Yr.fromJSON=IGe;Yr.list=MGe;Yr.comment=function(e){return new _se(e)};Yr.atRule=function(e){return new Ese(e)};Yr.decl=function(e){return new bse(e)};Yr.rule=function(e){return new Rse(e)};Yr.root=function(e){return new Pse(e)};Yr.document=function(e){return new wse(e)};Yr.CssSyntaxError=_Ge;Yr.Declaration=bse;Yr.Container=RGe;Yr.Processor=C6;Yr.Document=wse;Yr.Comment=_se;Yr.Warning=xGe;Yr.AtRule=Ese;Yr.Result=OGe;Yr.Input=TGe;Yr.Rule=Rse;Yr.Root=Pse;Yr.Node=$Ge;EGe.registerPostcss(Yr);var kGe=Yr;Yr.default=Yr;var bn=GWe(kGe);bn.stringify;bn.fromJSON;bn.plugin;bn.parse;bn.list;bn.document;bn.comment;bn.atRule;bn.rule;bn.decl;bn.root;bn.CssSyntaxError;bn.Declaration;bn.Container;bn.Processor;bn.Document;bn.Comment;bn.Warning;bn.AtRule;bn.Result;bn.Input;bn.Rule;bn.Root;bn.Node;var NGe=Object.defineProperty,DGe=function(e,t,r){return t in e?NGe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},ga=function(e,t,r){return DGe(e,(typeof t>"u"?"undefined":Pr(t))!=="symbol"?t+"":t,r)};function LGe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function jGe(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return hr(this,n)?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var b6={exports:{}},dn=String,Ise=function(){return{isColorSupported:!1,reset:dn,bold:dn,dim:dn,italic:dn,underline:dn,inverse:dn,hidden:dn,strikethrough:dn,black:dn,red:dn,green:dn,yellow:dn,blue:dn,magenta:dn,cyan:dn,white:dn,gray:dn,bgBlack:dn,bgRed:dn,bgGreen:dn,bgYellow:dn,bgBlue:dn,bgMagenta:dn,bgCyan:dn,bgWhite:dn}};b6.exports=Ise();b6.exports.createColors=Ise;var FGe=b6.exports,zGe={},BGe=Object.freeze(Object.defineProperty({__proto__:null,default:zGe},Symbol.toStringTag,{value:"Module"})),jn=jGe(BGe),Tq=FGe,Aq=jn,Ik=function(e){Ji(t,e);function t(n,i,o,a,s,l){var c;return c=e.call(this,n)||this,c.name="CssSyntaxError",c.reason=n,s&&(c.file=s),a&&(c.source=a),l&&(c.plugin=l),typeof i<"u"&&typeof o<"u"&&(typeof i=="number"?(c.line=i,c.column=o):(c.line=i.line,c.column=i.column,c.endLine=o.line,c.endColumn=o.column)),c.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(c,t),c}var r=t.prototype;return r.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},r.showSourceCode=function(i){var o=this;if(!this.source)return"";var a=this.source;i==null&&(i=Tq.isColorSupported),Aq&&i&&(a=Aq(a));var s=a.split(/\r?\n/),l=Math.max(this.line-3,0),c=Math.min(this.line+2,s.length),d=String(c).length,u,f;if(i){var h=Tq.createColors(!0),v=h.bold,y=h.gray,g=h.red;u=function(m){return v(g(m))},f=function(m){return y(m)}}else u=f=function(m){return m};return s.slice(l,c).map(function(m,S){var C=l+1+S,b=" "+(" "+C).slice(-d)+" | ";if(C===o.line){var w=f(b.replace(/\d/g," "))+m.slice(0,o.column-1).replace(/[^\t]/g," ");return u(">")+f(b)+m+`
510 `+w+u("^")}return" "+f(b)+m}).join(`
511`)},r.toString=function(){var i=this.showSourceCode();return i&&(i=`
512
513`+i+`
514`),this.name+": "+this.message+i},t}(ew(Error)),w6=Ik;Ik.default=Ik;var ou={};ou.isClean=Symbol("isClean");ou.my=Symbol("my");var Mq={after:`
515`,beforeClose:`
516`,beforeComment:`
517`,beforeDecl:`
518`,beforeOpen:" ",beforeRule:`
519`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:"    ",semicolon:!1};function HGe(e){return e[0].toUpperCase()+e.slice(1)}var xk=function(){function e(r){this.builder=r}var t=e.prototype;return t.atrule=function(n,i){var o="@"+n.name,a=n.params?this.rawValue(n,"params"):"";if(typeof n.raws.afterName<"u"?o+=n.raws.afterName:a&&(o+=" "),n.nodes)this.block(n,o+a);else{var s=(n.raws.between||"")+(i?";":"");this.builder(o+a+s,n)}},t.beforeAfter=function(n,i){var o;n.type==="decl"?o=this.raw(n,null,"beforeDecl"):n.type==="comment"?o=this.raw(n,null,"beforeComment"):i==="before"?o=this.raw(n,null,"beforeRule"):o=this.raw(n,null,"beforeClose");for(var a=n.parent,s=0;a&&a.type!=="root";)s+=1,a=a.parent;if(o.includes(`
520`)){var l=this.raw(n,null,"indent");if(l.length)for(var c=0;c<s;c++)o+=l}return o},t.block=function(n,i){var o=this.raw(n,"between","beforeOpen");this.builder(i+o+"{",n,"start");var a;n.nodes&&n.nodes.length?(this.body(n),a=this.raw(n,"after")):a=this.raw(n,"after","emptyBody"),a&&this.builder(a),this.builder("}",n,"end")},t.body=function(n){for(var i=n.nodes.length-1;i>0&&n.nodes[i].type==="comment";)i-=1;for(var o=this.raw(n,"semicolon"),a=0;a<n.nodes.length;a++){var s=n.nodes[a],l=this.raw(s,"before");l&&this.builder(l),this.stringify(s,i!==a||o)}},t.comment=function(n){var i=this.raw(n,"left","commentLeft"),o=this.raw(n,"right","commentRight");this.builder("/*"+i+n.text+o+"*/",n)},t.decl=function(n,i){var o=this.raw(n,"between","colon"),a=n.prop+o+this.rawValue(n,"value");n.important&&(a+=n.raws.important||" !important"),i&&(a+=";"),this.builder(a,n)},t.document=function(n){this.body(n)},t.raw=function(n,i,o){var a;if(o||(o=i),i&&(a=n.raws[i],typeof a<"u"))return a;var s=n.parent;if(o==="before"&&(!s||s.type==="root"&&s.first===n||s&&s.type==="document"))return"";if(!s)return Mq[o];var l=n.root();if(l.rawCache||(l.rawCache={}),typeof l.rawCache[o]<"u")return l.rawCache[o];if(o==="before"||o==="after")return this.beforeAfter(n,o);var c="raw"+HGe(o);return this[c]?a=this[c](l,n):l.walk(function(d){if(a=d.raws[i],typeof a<"u")return!1}),typeof a>"u"&&(a=Mq[o]),l.rawCache[o]=a,a},t.rawBeforeClose=function(n){var i;return n.walk(function(o){if(o.nodes&&o.nodes.length>0&&typeof o.raws.after<"u")return i=o.raws.after,i.includes(`
521`)&&(i=i.replace(/[^\n]+$/,"")),!1}),i&&(i=i.replace(/\S/g,"")),i},t.rawBeforeComment=function(n,i){var o;return n.walkComments(function(a){if(typeof a.raws.before<"u")return o=a.raws.before,o.includes(`
522`)&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o>"u"?o=this.raw(i,null,"beforeDecl"):o&&(o=o.replace(/\S/g,"")),o},t.rawBeforeDecl=function(n,i){var o;return n.walkDecls(function(a){if(typeof a.raws.before<"u")return o=a.raws.before,o.includes(`
523`)&&(o=o.replace(/[^\n]+$/,"")),!1}),typeof o>"u"?o=this.raw(i,null,"beforeRule"):o&&(o=o.replace(/\S/g,"")),o},t.rawBeforeOpen=function(n){var i;return n.walk(function(o){if(o.type!=="decl"&&(i=o.raws.between,typeof i<"u"))return!1}),i},t.rawBeforeRule=function(n){var i;return n.walk(function(o){if(o.nodes&&(o.parent!==n||n.first!==o)&&typeof o.raws.before<"u")return i=o.raws.before,i.includes(`
524`)&&(i=i.replace(/[^\n]+$/,"")),!1}),i&&(i=i.replace(/\S/g,"")),i},t.rawColon=function(n){var i;return n.walkDecls(function(o){if(typeof o.raws.between<"u")return i=o.raws.between.replace(/[^\s:]/g,""),!1}),i},t.rawEmptyBody=function(n){var i;return n.walk(function(o){if(o.nodes&&o.nodes.length===0&&(i=o.raws.after,typeof i<"u"))return!1}),i},t.rawIndent=function(n){if(n.raws.indent)return n.raws.indent;var i;return n.walk(function(o){var a=o.parent;if(a&&a!==n&&a.parent&&a.parent===n&&typeof o.raws.before<"u"){var s=o.raws.before.split(`
525`);return i=s[s.length-1],i=i.replace(/\S/g,""),!1}}),i},t.rawSemicolon=function(n){var i;return n.walk(function(o){if(o.nodes&&o.nodes.length&&o.last.type==="decl"&&(i=o.raws.semicolon,typeof i<"u"))return!1}),i},t.rawValue=function(n,i){var o=n[i],a=n.raws[i];return a&&a.value===o?a.raw:o},t.root=function(n){this.body(n),n.raws.after&&this.builder(n.raws.after)},t.rule=function(n){this.block(n,this.rawValue(n,"selector")),n.raws.ownSemicolon&&this.builder(n.raws.ownSemicolon,n,"end")},t.stringify=function(n,i){if(!this[n.type])throw new Error("Unknown AST node type "+n.type+". Maybe you need to change PostCSS stringifier.");this[n.type](n,i)},e}(),xse=xk;xk.default=xk;var VGe=xse;function Ok(e,t){var r=new VGe(t);r.stringify(e)}var HR=Ok;Ok.default=Ok;var x1=ou.isClean,UGe=ou.my,WGe=w6,qGe=xse,GGe=HR;function Tk(e,t){var r=new e.constructor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&n!=="proxyCache"){var i=e[n],o=typeof i>"u"?"undefined":Pr(i);n==="parent"&&o==="object"?t&&(r[n]=t):n==="source"?r[n]=i:Array.isArray(i)?r[n]=i.map(function(a){return Tk(a,r)}):(o==="object"&&i!==null&&(i=Tk(i)),r[n]=i)}return r}var Ak=function(){function e(r){r===void 0&&(r={}),this.raws={},this[x1]=!1,this[UGe]=!0;for(var n in r)if(n==="nodes"){this.nodes=[];for(var i=Ft(r[n]),o;!(o=i()).done;){var a=o.value;typeof a.clone=="function"?this.append(a.clone()):this.append(a)}}else this[n]=r[n]}var t=e.prototype;return t.addToError=function(n){if(n.postcssNode=this,n.stack&&this.source&&/\n\s{4}at /.test(n.stack)){var i=this.source;n.stack=n.stack.replace(/\n\s{4}at /,"$&"+i.input.from+":"+i.start.line+":"+i.start.column+"$&")}return n},t.after=function(n){return this.parent.insertAfter(this,n),this},t.assign=function(n){n===void 0&&(n={});for(var i in n)this[i]=n[i];return this},t.before=function(n){return this.parent.insertBefore(this,n),this},t.cleanRaws=function(n){delete this.raws.before,delete this.raws.after,n||delete this.raws.between},t.clone=function(n){n===void 0&&(n={});var i=Tk(this);for(var o in n)i[o]=n[o];return i},t.cloneAfter=function(n){n===void 0&&(n={});var i=this.clone(n);return this.parent.insertAfter(this,i),i},t.cloneBefore=function(n){n===void 0&&(n={});var i=this.clone(n);return this.parent.insertBefore(this,i),i},t.error=function(n,i){if(i===void 0&&(i={}),this.source){var o=this.rangeBy(i),a=o.end,s=o.start;return this.source.input.error(n,{column:s.column,line:s.line},{column:a.column,line:a.line},i)}return new WGe(n)},t.getProxyProcessor=function(){return{get:function(i,o){return o==="proxyOf"?i:o==="root"?function(){return i.root().toProxy()}:i[o]},set:function(i,o,a){return i[o]===a||(i[o]=a,(o==="prop"||o==="value"||o==="name"||o==="params"||o==="important"||o==="text")&&i.markDirty()),!0}}},t.markDirty=function(){if(this[x1]){this[x1]=!1;for(var n=this;n=n.parent;)n[x1]=!1}},t.next=function(){if(this.parent){var n=this.parent.index(this);return this.parent.nodes[n+1]}},t.positionBy=function(n,i){var o=this.source.start;if(n.index)o=this.positionInside(n.index,i);else if(n.word){i=this.toString();var a=i.indexOf(n.word);a!==-1&&(o=this.positionInside(a,i))}return o},t.positionInside=function(n,i){for(var o=i||this.toString(),a=this.source.start.column,s=this.source.start.line,l=0;l<n;l++)o[l]===`
526`?(a=1,s+=1):a+=1;return{column:a,line:s}},t.prev=function(){if(this.parent){var n=this.parent.index(this);return this.parent.nodes[n-1]}},t.rangeBy=function(n){var i={column:this.source.start.column,line:this.source.start.line},o=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:i.column+1,line:i.line};if(n.word){var a=this.toString(),s=a.indexOf(n.word);s!==-1&&(i=this.positionInside(s,a),o=this.positionInside(s+n.word.length,a))}else n.start?i={column:n.start.column,line:n.start.line}:n.index&&(i=this.positionInside(n.index)),n.end?o={column:n.end.column,line:n.end.line}:typeof n.endIndex=="number"?o=this.positionInside(n.endIndex):n.index&&(o=this.positionInside(n.index+1));return(o.line<i.line||o.line===i.line&&o.column<=i.column)&&(o={column:i.column+1,line:i.line}),{end:o,start:i}},t.raw=function(n,i){var o=new qGe;return o.raw(this,n,i)},t.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},t.replaceWith=function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];if(this.parent){for(var a=this,s=!1,l=Ft(i),c;!(c=l()).done;){var d=c.value;d===this?s=!0:s?(this.parent.insertAfter(a,d),a=d):this.parent.insertBefore(a,d)}s||this.remove()}return this},t.root=function(){for(var n=this;n.parent&&n.parent.type!=="document";)n=n.parent;return n},t.toJSON=function(n,i){var o={},a=i==null;i=i||new Map;var s=0;for(var l in this)if(Object.prototype.hasOwnProperty.call(this,l)&&!(l==="parent"||l==="proxyCache")){var c=this[l];if(Array.isArray(c))o[l]=c.map(function(u){return(typeof u>"u"?"undefined":Pr(u))==="object"&&u.toJSON?u.toJSON(null,i):u});else if((typeof c>"u"?"undefined":Pr(c))==="object"&&c.toJSON)o[l]=c.toJSON(null,i);else if(l==="source"){var d=i.get(c.input);d==null&&(d=s,i.set(c.input,s),s++),o[l]={end:c.end,inputId:d,start:c.start}}else o[l]=c}return a&&(o.inputs=[].concat(i.keys()).map(function(u){return u.toJSON()})),o},t.toProxy=function(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache},t.toString=function(n){n===void 0&&(n=GGe),n.stringify&&(n=n.stringify);var i="";return n(this,function(o){i+=o}),i},t.warn=function(n,i,o){var a={node:this};for(var s in o)a[s]=o[s];return n.warn(i,a)},Ai(e,[{key:"proxyOf",get:function(){return this}}]),e}(),VR=Ak;Ak.default=Ak;var KGe=VR,Mk=function(e){Ji(t,e);function t(r){var n;return r&&typeof r.value<"u"&&typeof r.value!="string"&&(r=Mr({},r,{value:String(r.value)})),n=e.call(this,r)||this,n.type="decl",n}return Ai(t,[{key:"variable",get:function(){return this.prop.startsWith("--")||this.prop[0]==="$"}}]),t}(KGe),UR=Mk;Mk.default=Mk;var YGe="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",XGe=function(e){e===void 0&&(e=21);for(var t="",r=e;r--;)t+=YGe[Math.random()*64|0];return t},QGe={nanoid:XGe},$q=jn.SourceMapConsumer,kq=jn.SourceMapGenerator,JGe=jn.existsSync,ZGe=jn.readFileSync,HT=jn.dirname,eKe=jn.join;function tKe(e){return Buffer?Buffer.from(e,"base64").toString():window.atob(e)}var $k=function(){function e(r,n){if(n.map!==!1){this.loadAnnotation(r),this.inline=this.startWith(this.annotation,"data:");var i=n.map?n.map.prev:void 0,o=this.loadMap(n.from,i);!this.mapFile&&n.from&&(this.mapFile=n.from),this.mapFile&&(this.root=HT(this.mapFile)),o&&(this.text=o)}}var t=e.prototype;return t.consumer=function(){return this.consumerCache||(this.consumerCache=new $q(this.text)),this.consumerCache},t.decodeInline=function(n){var i=/^data:application\/json;charset=utf-?8;base64,/,o=/^data:application\/json;base64,/,a=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/;if(a.test(n)||s.test(n))return decodeURIComponent(n.substr(RegExp.lastMatch.length));if(i.test(n)||o.test(n))return tKe(n.substr(RegExp.lastMatch.length));var l=n.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+l)},t.getAnnotationURL=function(n){return n.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()},t.isMap=function(n){return(typeof n>"u"?"undefined":Pr(n))!=="object"?!1:typeof n.mappings=="string"||typeof n._mappings=="string"||Array.isArray(n.sections)},t.loadAnnotation=function(n){var i=n.match(/\/\*\s*# sourceMappingURL=/gm);if(i){var o=n.lastIndexOf(i.pop()),a=n.indexOf("*/",o);o>-1&&a>-1&&(this.annotation=this.getAnnotationURL(n.substring(o,a)))}},t.loadFile=function(n){if(this.root=HT(n),JGe(n))return this.mapFile=n,ZGe(n,"utf-8").toString().trim()},t.loadMap=function(n,i){if(i===!1)return!1;if(i){if(typeof i=="string")return i;if(typeof i=="function"){var o=i(n);if(o){var a=this.loadFile(o);if(!a)throw new Error("Unable to load previous source map: "+o.toString());return a}}else{if(hr(i,$q))return kq.fromSourceMap(i).toString();if(hr(i,kq))return i.toString();if(this.isMap(i))return JSON.stringify(i);throw new Error("Unsupported previous source map format: "+i.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var s=this.annotation;return n&&(s=eKe(HT(n),s)),this.loadFile(s)}}},t.startWith=function(n,i){return n?n.substr(0,i.length)===i:!1},t.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e}(),Ose=$k;$k.default=$k;var rKe=jn.SourceMapConsumer,nKe=jn.SourceMapGenerator,Nq=jn.fileURLToPath,O1=jn.pathToFileURL,kk=jn.isAbsolute,Nk=jn.resolve,iKe=QGe.nanoid,VT=jn,Dq=w6,oKe=Ose,UT=Symbol("fromOffsetCac
526he"),aKe=!!(rKe&&nKe),Lq=!!(Nk&&kk),sw=function(){function e(r,n){if(n===void 0&&(n={}),r===null||typeof r>"u"||(typeof r>"u"?"undefined":Pr(r))==="object"&&!r.toString)throw new Error("PostCSS received "+r+" instead of CSS string");if(this.css=r.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,n.from&&(!Lq||/^\w+:\/\//.test(n.from)||kk(n.from)?this.file=n.from:this.file=Nk(n.from)),Lq&&aKe){var i=new oKe(this.css,n);if(i.text){this.map=i;var o=i.consumer().file;!this.file&&o&&(this.file=this.mapResolve(o))}}this.file||(this.id="<input css "+iKe(6)+">"),this.map&&(this.map.file=this.from)}var t=e.prototype;return t.error=function(n,i,o,a){a===void 0&&(a={});var s,l,c;if(i&&(typeof i>"u"?"undefined":Pr(i))==="object"){var d=i,u=o;if(typeof d.offset=="number"){var f=this.fromOffset(d.offset);i=f.line,o=f.col}else i=d.line,o=d.column;if(typeof u.offset=="number"){var h=this.fromOffset(u.offset);l=h.line,c=h.col}else l=u.line,c=u.column}else if(!o){var v=this.fromOffset(i);i=v.line,o=v.col}var y=this.origin(i,o,l,c);return y?s=new Dq(n,y.endLine===void 0?y.line:{column:y.column,line:y.line},y.endLine===void 0?y.column:{column:y.endColumn,line:y.endLine},y.source,y.file,a.plugin):s=new Dq(n,l===void 0?i:{column:o,line:i},l===void 0?o:{column:c,line:l},this.css,this.file,a.plugin),s.input={column:o,endColumn:c,endLine:l,line:i,source:this.css},this.file&&(O1&&(s.input.url=O1(this.file).toString()),s.input.file=this.file),s},t.fromOffset=function(n){var i,o;if(this[UT])o=this[UT];else{var a=this.css.split(`
527`);o=new Array(a.length);for(var s=0,l=0,c=a.length;l<c;l++)o[l]=s,s+=a[l].length+1;this[UT]=o}i=o[o.length-1];var d=0;if(n>=i)d=o.length-1;else for(var u=o.length-2,f;d<u;)if(f=d+(u-d>>1),n<o[f])u=f-1;else if(n>=o[f+1])d=f+1;else{d=f;break}return{col:n-o[d]+1,line:d+1}},t.mapResolve=function(n){return/^\w+:\/\//.test(n)?n:Nk(this.map.consumer().sourceRoot||this.map.root||".",n)},t.origin=function(n,i,o,a){if(!this.map)return!1;var s=this.map.consumer(),l=s.originalPositionFor({column:i,line:n});if(!l.source)return!1;var c;typeof o=="number"&&(c=s.originalPositionFor({column:a,line:o}));var d;kk(l.source)?d=O1(l.source):d=new URL(l.source,this.map.consumer().sourceRoot||O1(this.map.mapFile));var u={column:l.column,endColumn:c&&c.column,endLine:c&&c.line,line:l.line,url:d.toString()};if(d.protocol==="file:")if(Nq)u.file=Nq(d);else throw new Error("file: protocol is not available in this PostCSS build");var f=s.sourceContentFor(l.source);return f&&(u.source=f),u},t.toJSON=function(){for(var n={},i=0,o=["hasBOM","css","file","id"];i<o.length;i++){var a=o[i];this[a]!=null&&(n[a]=this[a])}return this.map&&(n.map=Mr({},this.map),n.map.consumerCache&&(n.map.consumerCache=void 0)),n},Ai(e,[{key:"from",get:function(){return this.file||this.id}}]),e}(),WR=sw;sw.default=sw;VT&&VT.registerInput&&VT.registerInput(sw);var Tse=jn.SourceMapConsumer,AC=jn.SourceMapGenerator,MC=jn.dirname,Ase=jn.relative,Mse=jn.resolve,$se=jn.sep,jq=jn.pathToFileURL,sKe=WR,lKe=!!(Tse&&AC),cKe=!!(MC&&Mse&&Ase&&$se),uKe=function(){function e(r,n,i,o){this.stringify=r,this.mapOpts=i.map||{},this.root=n,this.opts=i,this.css=o,this.originalCSS=o,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}var t=e.prototype;return t.addAnnotation=function(){var n;this.isInline()?n="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?n=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?n=this.mapOpts.annotation(this.opts.to,this.root):n=this.outputFile()+".map";var i=`
528`;this.css.includes(`\r
529`)&&(i=`\r
530`),this.css+=i+"/*# sourceMappingURL="+n+" */"},t.applyPrevMaps=function(){for(var n=Ft(this.previous()),i;!(i=n()).done;){var o=i.value,a=this.toUrl(this.path(o.file)),s=o.root||MC(o.file),l=void 0;this.mapOpts.sourcesContent===!1?(l=new Tse(o.text),l.sourcesContent&&(l.sourcesContent=null)):l=o.consumer(),this.map.applySourceMap(l,a,this.toUrl(this.path(s)))}},t.clearAnnotation=function(){if(this.mapOpts.annotation!==!1)if(this.root)for(var n,i=this.root.nodes.length-1;i>=0;i--)n=this.root.nodes[i],n.type==="comment"&&n.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(i);else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))},t.generate=function(){if(this.clearAnnotation(),cKe&&lKe&&this.isMap())return this.generateMap();var n="";return this.stringify(this.root,function(i){n+=i}),[n]},t.generateMap=function(){if(this.root)this.generateString();else if(this.previous().length===1){var n=this.previous()[0].consumer();n.file=this.outputFile(),this.map=AC.fromSourceMap(n,{ignoreInvalidMapping:!0})}else this.map=new AC({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},t.generateString=function(){var n=this;this.css="",this.map=new AC({file:this.outputFile(),ignoreInvalidMapping:!0});var i=1,o=1,a="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""},l,c;this.stringify(this.root,function(d,u,f){if(n.css+=d,u&&f!=="end"&&(s.generated.line=i,s.generated.column=o-1,u.source&&u.source.start?(s.source=n.sourcePath(u),s.original.line=u.source.start.line,s.original.column=u.source.start.column-1,n.map.addMapping(s)):(s.source=a,s.original.line=1,s.original.column=0,n.map.addMapping(s))),l=d.match(/\n/g),l?(i+=l.length,c=d.lastIndexOf(`
531`),o=d.length-c):o+=d.length,u&&f!=="start"){var h=u.parent||{raws:{}},v=u.type==="decl"||u.type==="atrule"&&!u.nodes;(!v||u!==h.last||h.raws.semicolon)&&(u.source&&u.source.end?(s.source=n.sourcePath(u),s.original.line=u.source.end.line,s.original.column=u.source.end.column-1,s.generated.line=i,s.generated.column=o-2,n.map.addMapping(s)):(s.source=a,s.original.line=1,s.original.column=0,s.generated.line=i,s.generated.column=o-1,n.map.addMapping(s)))}})},t.isAnnotation=function(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(function(n){return n.annotation}):!0},t.isInline=function(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;var n=this.mapOpts.annotation;return typeof n<"u"&&n!==!0?!1:this.previous().length?this.previous().some(function(i){return i.inline}):!0},t.isMap=function(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0},t.isSourcesContent=function(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(function(n){return n.withContent()}):!0},t.outputFile=function(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}
vendor: 4,425 bytes, line 531
531,t.path=function(n){if(this.mapOpts.absolute||n.charCodeAt(0)===60||/^\w+:\/\//.test(n))return n;var i=this.memoizedPaths.get(n);if(i)return i;var o=this.opts.to?MC(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(o=MC(Mse(o,this.mapOpts.annotation)));var a=Ase(o,n);return this.memoizedPaths.set(n,a),a},t.previous=function(){var n=this;if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(function(o){if(o.source&&o.source.input.map){var a=o.source.input.map;n.previousMaps.includes(a)||n.previousMaps.push(a)}});else{var i=new sKe(this.originalCSS,this.opts);i.map&&this.previousMaps.push(i.map)}return this.previousMaps},t.setSourcesContent=function(){var n=this,i={};if(this.root)this.root.walk(function(a){if(a.source){var s=a.source.input.from;if(s&&!i[s]){i[s]=!0;var l=n.usesFileUrls?n.toFileUrl(s):n.toUrl(n.path(s));n.map.setSourceContent(l,a.source.input.css)}}});else if(this.css){var o=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(o,this.css)}},t.sourcePath=function(n){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(n.source.input.from):this.toUrl(this.path(n.source.input.from))},t.toBase64=function(n){return Buffer?Buffer.from(n).toString("base64"):window.btoa(unescape(encodeURIComponent(n)))},t.toFileUrl=function(n){var i=this.memoizedFileURLs.get(n);if(i)return i;if(jq){var o=jq(n).toString();return this.memoizedFileURLs.set(n,o),o}else throw new Error("`map.absolute` option is not available in this PostCSS build")},t.toUrl=function(n){var i=this.memoizedURLs.get(n);if(i)return i;$se==="\\"&&(n=n.replace(/\\/g,"/"));var o=encodeURI(n).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(n,o),o},e}(),kse=uKe,dKe=VR,Dk=function(e){Ji(t,e);function t(r){var n;return n=e.call(this,r)||this,n.type="comment",n}return t}(dKe),qR=Dk;Dk.default=Dk;var Nse=ou.isClean,Dse=ou.my,Lse=UR,jse=qR,fKe=VR,Fse,_6,E6,zse;function Bse(e){return e.map(function(t){return t.nodes&&(t.nodes=Bse(t.nodes)),delete t.source,t})}function Hse(e){if(e[Nse]=!1,e.proxyOf.nodes)for(var t=Ft(e.proxyOf.nodes),r;!(r=t()).done;){var n=r.value;Hse(n)}}var Pl=function(e){Ji(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.append=function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];for(var s=Ft(o),l;!(l=s()).done;)for(var c=l.value,d=this.normalize(c,this.last),u=Ft(d),f;!(f=u()).done;){var h=f.value;this.proxyOf.nodes.push(h)}return this.markDirty(),this},r.cleanRaws=function(i){if(e.prototype.cleanRaws.call(this,i),this.nodes)for(var o=Ft(this.nodes),a;!(a=o()).done;){var s=a.value;s.cleanRaws(i)}},r.each=function(i){if(this.proxyOf.nodes){for(var o=this.getIterator(),a,s;this.indexes[o]<this.proxyOf.nodes.length&&(a=this.indexes[o],s=i(this.proxyOf.nodes[a],a),s!==!1);)this.indexes[o]+=1;return delete this.indexes[o],s}},r.every=function(i){return this.nodes.every(i)},r.getIterator=function(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;var i=this.lastEach;return this.indexes[i]=0,i},r.getProxyProcessor=function(){return{get:function(o,a){return a==="proxyOf"?o:o[a]?a==="each"||typeof a=="string"&&a.startsWith("walk")?function(){for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];var d;return(d=o)[a].apply(d,[].concat(l.map(function(u){return typeof u=="function"?function(f,h){return u(f.toProxy(),h)}:u})))}:a==="every"||a==="some"?function(s){return o[a](function(l){for(var c=arguments.length,d=new Array(c>1?c-1:0),u=1;u<c;u++)d[u-1]=arguments[u];return s.apply(void 0,[].concat([l.toProxy()],d))})}:a==="root"?function(){return o.root().toProxy()}:a==="nodes"?o.nodes.map(function(s){return s.toProxy()}):a==="first"||a==="last"?o[a].toProxy():o[a]:o[a]},set:function(o,a,s){return o[a]===s||(o[a]=s,(a==="name"||a==="params"||a==="selector")&&o.markDirty()),!0}}},r.index=function(i){return typeof i=="number"?i:(i.proxyOf&&(i=i.proxyOf),this.proxyOf.nodes.indexOf(i))},r.insertAfter=function(i,o){var a=this.index(i),s=this.normalize(o,this.proxyOf.nodes[a]).reverse();a=this.index(i);for(var l=Ft(s),c;!(c=l()).done;){var d=c.value;this.proxyOf.nodes.splice(a+1,0,d)}var u;for(var f in this.indexes)u=this.indexes[f],a<u&&(this.indexes[f]=u+s.length);return this.markDirty(),this},r.insertBefore=function(i,o){var a=this.index(i),s=a===0?"prepe
531nd":!1,l=this.normalize(o,this.proxyOf.nodes[a],s).reverse();a=this.index(i);for(var c=Ft(l),d;!(d=c()).done;){var u=d.value;this.proxyOf.nodes.splice(a,0,u)}var f;for(var h in this.indexes)f=this.indexes[h],a<=f&&(this.indexes[h]=f+l.length);return this.markDirty(),this},r.normalize=function(i,o){var a=this;if(typeof i=="string")i=Bse(Fse(i).nodes);else if(typeof i>"u")i=[];else if(Array.isArray(i)){i=i.slice(0);for(var s=Ft(i),l;!(l=s()).done;){var c=l.value;c.parent&&c.parent.removeChild(c,"ignore")}}else if(i.type==="root"&&this.type!=="document"){i=i.nodes.slice(0);for(var d=Ft(i),u;!(u=d()).done;){var f=u.value;f.parent&&f.parent.removeChild(f,"ignore")}}else if(i.type)i=[i];else if(i.prop){if(typeof i.value>"u")throw new Error("Value field is missed in node creation");typeof i.value!="string"&&(i.value=String(i.value)),i=[new Lse(i)]}else if(i.selector)i=[new _6(i)];else if(i.name)i=[new E6(i)];else if(i.text)i=[new jse(i)];else throw new Error("Unknown node type in node creation");var h=i.map(function(v){return v[Dse]||t.rebuild(v),v=v.proxyOf,v.parent&&v.parent.removeChild(v),v[Nse]&&Hse(v),typeof v.raws.before>"u"&&o&&typeof o.raws.before<"u"&&(v.raws.before=o.raws.before.replace(/\S/g,"")),v.parent=a.proxyOf,v});return h},r.prepend=function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];o=o.reverse();for(var s=Ft(o),l;!(l=s()).done;){for(var c=l.value,d=this.normalize(c,this.first,"prepend").reverse(),u=Ft(d),f;!(f=u()).done;){var h=f.value;this.proxyOf.nodes.unshift(h)}for(var v in this.indexes)this.indexes[v]=this.indexes[v]+d.length}return this.markDirty(),this},r.push=function(i){return i.parent=this,this.proxyOf.nodes.push(i),this},r.removeAll=function(){for(var i=Ft(this.proxyOf.nodes),o;!(o=i()).done;){var a=o.value;a.parent=void 0}return this.proxyOf.nodes=[],this.markDirty(),this},r.removeChild=function(i){i=this.index(i),this.proxyOf.nodes[i].parent=void 0,this.proxyOf.nodes.splice(i,1);var o;for(var a in this.indexes)o=this.indexes[a],o>=i&&(this.indexes[a]=o-1);return this.markDirty(),this},r.replaceValues=function(i,o,a){return a||(a=o,o={}),this.walkDecls(function(s){o.props&&!o.props.includes(s.prop)||o.fast&&!s.value.includes(o.fast)||(s.value=s.value.replace(i,a))}),this.markDirty(),this},r.some=function(i){return this.nodes.some(i)},r.walk=function(i){return this.each(function(o,a){var s;try{s=i(o,a)}catch(l){throw o.addToError(l)}return s!==!1&&o.walk&&(s=o.walk(i)),s})},r.walkAtRules=function(i,o){return o?hr(i,RegExp)?this.walk(function(a,s){if(a.type==="atrule"&&i.test(a.name))return o(a,s)}):this.walk(function(a,s){if(a.type==="atrule"&&a.name===i)return o(a,s)}):(o=i,this.walk(function(a,s){if(a.type==="atrule")return o(a,s)}))},r.walkComments=function(i){return this.walk(function(o,a){if(o.type==="comment")return i(o,a)})},r.walkDecls=function(i,o){return o?hr(i,RegExp)?this.walk(function(a,s){if(a.type==="decl"&&i.test(a.prop))return o(a,s)}):this.walk(function(a,s){if(a.type==="decl"&&a.prop===i)return o(a,s)}):(o=i,this.walk(function(a,s){if(a.type==="decl")return o(a,s)}))},r.walkRules=function(i,o){return o?hr(i,RegExp)?this.walk(function(a,s){if(a.type==="rule"&&i.test(a.selector))return o(a,s)}):this.walk(function(a,s){if(a.type==="rule"&&a.selector===i)return o(a,s)}):(o=i,this.walk(function(a,s){if(a.type==="rule")return o(a,s)}))},Ai(t,[{key:"first",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}},{key:"last",get:function(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}]),t}(fKe);Pl.registerParse=function(e){Fse=e};Pl.registerRule=function(e){_6=e};Pl.registerAtRule=function(e){E6=e};Pl.registerRoot=function(e){zse=e};var qd=Pl;Pl.default=Pl;Pl.rebuild=function(e){e.type==="atrule"?Object.setPrototypeOf(e,E6.prototype):e.type==="rule"?Object.setPrototypeOf(e,_6.prototype):e.type==="decl"?Object.setPrototypeOf(e,Lse.prototype):e.type==="comment"?Object.setPrototypeOf(e,jse.prototype):e.type==="root"&&Object.setPrototypeOf(e,zse.prototype),e[Dse]=!0,e.nodes&&e.nodes.forEach(function(t){Pl.rebuild(t)})};var pKe=qd,Vse,Use,Dy=function(e){Ji(t,e);function t(n){var i;return i=e.call(this,Mr({type:"document"},n))||this,i.nodes||(i.nodes=[]),i}
vendor: 7,416 bytes, lines 531-533
531var r=t.prototype;return r.toResult=function(i){i===void 0&&(i={});var o=new Vse(new Use,this,i);return o.stringify()},t}(pKe);Dy.registerLazyResult=function(e){Vse=e};Dy.registerProcessor=function(e){Use=e};var R6=Dy;Dy.default=Dy;var Lk=function(){function e(r,n){if(n===void 0&&(n={}),this.type="warning",this.text=r,n.node&&n.node.source){var i=n.node.rangeBy(n);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(var o in n)this[o]=n[o]}var t=e.prototype;return t.toString=function(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}(),Wse=Lk;Lk.default=Lk;var hKe=Wse,jk=function(){function e(r,n,i){this.processor=r,this.messages=[],this.root=n,this.opts=i,this.css=void 0,this.map=void 0}var t=e.prototype;return t.toString=function(){return this.css},t.warn=function(n,i){i===void 0&&(i={}),i.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(i.plugin=this.lastPlugin.postcssPlugin);var o=new hKe(n,i);return this.messages.push(o),o},t.warnings=function(){return this.messages.filter(function(n){return n.type==="warning"})},Ai(e,[{key:"content",get:function(){return this.css}}]),e}(),P6=jk;jk.default=jk;var WT="'".charCodeAt(0),Fq='"'.charCodeAt(0),T1="\\".charCodeAt(0),zq="/".charCodeAt(0),A1=`
532`.charCodeAt(0),Fg=" ".charCodeAt(0),M1="\f".charCodeAt(0),$1="	".charCodeAt(0),k1="\r".charCodeAt(0),vKe="[".charCodeAt(0),gKe="]".charCodeAt(0),mKe="(".charCodeAt(0),yKe=")".charCodeAt(0),SKe="{".charCodeAt(0),CKe="}".charCodeAt(0),bKe=";".charCodeAt(0),wKe="*".charCodeAt(0),_Ke=":".charCodeAt(0),EKe="@".charCodeAt(0),N1=/[\t\n\f\r "#'()/;[\\\]{}]/g,D1=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,RKe=/.[\r\n"'(/\\]/,Bq=/[\da-f]/i,PKe=function(t,r){r===void 0&&(r={});var n=t.css.valueOf(),i=r.ignoreErrors,o,a,s,l,c,d,u,f,h,v,y=n.length,g=0,m=[],S=[];function C(){return g}function b(R){throw t.error("Unclosed "+R,g)}function w(){return S.length===0&&g>=y}function E(R){if(S.length)return S.pop();if(!(g>=y)){var P=R?R.ignoreUnclosed:!1;switch(o=n.charCodeAt(g),o){case A1:case Fg:case $1:case k1:case M1:{a=g;do a+=1,o=n.charCodeAt(a);while(o===Fg||o===A1||o===$1||o===k1||o===M1);v=["space",n.slice(g,a)],g=a-1;break}case vKe:case gKe:case SKe:case CKe:case _Ke:case bKe:case yKe:{var I=String.fromCharCode(o);v=[I,I,g];break}case mKe:{if(f=m.length?m.pop()[1]:"",h=n.charCodeAt(g+1),f==="url"&&h!==WT&&h!==Fq&&h!==Fg&&h!==A1&&h!==$1&&h!==M1&&h!==k1){a=g;do{if(d=!1,a=n.indexOf(")",a+1),a===-1)if(i||P){a=g;break}else b("bracket");for(u=a;n.charCodeAt(u-1)===T1;)u-=1,d=!d}while(d);v=["brackets",n.slice(g,a+1),g,a],g=a}else a=n.indexOf(")",g+1),l=n.slice(g,a+1),a===-1||RKe.test(l)?v=["(","(",g]:(v=["brackets",l,g,a],g=a);break}case WT:case Fq:{s=o===WT?"'":'"',a=g;do{if(d=!1,a=n.indexOf(s,a+1),a===-1)if(i||P){a=g+1;break}else b("string");for(u=a;n.charCodeAt(u-1)===T1;)u-=1,d=!d}while(d);v=["string",n.slice(g,a+1),g,a],g=a;break}case EKe:{N1.lastIndex=g+1,N1.test(n),N1.lastIndex===0?a=n.length-1:a=N1.lastIndex-2,v=["at-word",n.slice(g,a+1),g,a],g=a;break}case T1:{for(a=g,c=!0;n.charCodeAt(a+1)===T1;)a+=1,c=!c;if(o=n.charCodeAt(a+1),c&&o!==zq&&o!==Fg&&o!==A1&&o!==$1&&o!==k1&&o!==M1&&(a+=1,Bq.test(n.charAt(a)))){for(;Bq.test(n.charAt(a+1));)a+=1;n.charCodeAt(a+1)===Fg&&(a+=1)}v=["word",n.slice(g,a+1),g,a],g=a;break}default:{o===zq&&n.charCodeAt(g+1)===wKe?(a=n.indexOf("*/",g+2)+1,a===0&&(i||P?a=n.length:b("comment")),v=["comment",n.slice(g,a+1),g,a],g=a):(D1.lastIndex=g+1,D1.test(n),D1.lastIndex===0?a=n.length-1:a=D1.lastIndex-2,v=["word",n.slice(g,a+1),g,a],m.push(v),g=a);break}}return g++,v}}function _(R){S.push(R)}return{back:_,endOfFile:w,nextToken:E,position:C}},qse=qd,lw=function(e){Ji(t,e);function t(n){var i;return i=e.call(this,n)||this,i.type="atrule",i}var r=t.prototype;return r.append=function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];var s;return this.proxyOf.nodes||(this.nodes=[]),(s=e.prototype.append).call.apply(s,[].concat([this],o))},r.prepend=function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];var s;return this.proxyOf.nodes||(this.nodes=[]),(s=e.prototype.prepend).call.apply(s,[].concat([this],o))},t}(qse),I6=lw;lw.default=lw;qse.registerAtRule(lw);var Gse=qd,Kse,Yse,kp=function(e){Ji(t,e);function t(n){var i;return i=e.call(this,n)||this,i.type="root",i.nodes||(i.nodes=[]),i}var r=t.prototype;return r.normalize=function(i,o,a){var s=e.prototype.normalize.call(this,i);if(o){if(a==="prepend")this.nodes.length>1?o.raws.before=this.nodes[1].raws.before:delete o.raws.before;else if(this.first!==o)for(var l=Ft(s),c;!(c=l()).done;){var d=c.value;d.raws.before=o.raws.before}}return s},r.removeChild=function(i,o){var a=this.index(i);return!o&&a===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[a].raws.before),e.prototype.removeChild.call(this,i)},r.toResult=function(i){i===void 0&&(i={});var o=new Kse(new Yse,this,i);return o.stringify()},t}(Gse);kp.registerLazyResult=function(e){Kse=e};kp.registerProcessor=function(e){Yse=e};var Q0=kp;kp.default=kp;Gse.registerRoot(kp);var Ly={comma:function(t){return Ly.split(t,[","],!0)},space:function(t){var r=[" ",`
533`,"	"];return Ly.split(t,r)},split:function(t,r,n){for(var i=[],o="",a=!1,s=0,l=!1,c="",d=!1,u=Ft(t),f;!(f=u()).done;){var h=f.value;d?d=!1:h==="\\"?d=!0:l?h===c&&(l=!1):h==='"'||h==="'"?(l=!0,c=h):h==="("?s+=1:h===")"?s>0&&(s-=1):s===0&&r.includes(h)&&(a=!0),a?(o!==""&&i.push(o.trim()),o="",a=!1):o+=h}return(n||o!=="")&&i.push(o.trim()),i}},Xse=Ly;Ly.default=Ly;var Qse=qd,IKe=Xse,cw=function(e){Ji(t,e);function t(r){var n;return n=e.call(this,r)||this,n.type="rule",n.nodes||(n.nodes=[]),n}return Ai(t,[{key:"selectors",get:function(){return IKe.comma(this.selector)},set:function(n){var i=this.selector?this.selector.match(/,\s*/):null,o=i?i[0]:","+this.raw("between","beforeOpen");this.selector=n.join(o)}}]),t}(Qse),x6=cw;cw.default=cw;Qse.registerRule(cw);var xKe=UR,OKe=PKe,TKe=qR,AKe=I6,MKe=Q0,Hq=x6,Vq={empty:!0,space:!0};function $Ke(e){for(var t=e.length-1;t>=0;t--){var r=e[t],n=r[3]||r[2];if(n)return n}}var kKe=function(){function e(r){this.input=r,this.root=new MKe,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:r,start:{column:1,line:1,offset:0}}}var t=e.prototype;return t.atrule=function(n){var i=new AKe;i.name=n[1].slice(1),i.name===""&&this.unnamedAtrule(i,n),this.init(i,n[2]);for(var o,a,s,l=!1,c=!1,d=[],u=[];!this.tokenizer.endOfFile();){if(n=this.tokenizer.nextToken(),o=n[0],o==="("||o==="["?u.push(o==="("?")":"]"):o==="{"&&u.length>0?u.push("}"):o===u[u.length-1]&&u.pop(),u.length===0)if(o===";"){i.source.end=this.getPosition(n[2]),i.source.end.offset++,this.semicolon=!0;break}else if(o==="{"){c=!0;break}else if(o==="}"){if(d.length>0){for(s=d.length-1,a=d[s];a&&a[0]==="space";)a=d[--s];a&&(i.source.end=this.getPosition(a[3]||a[2]),i.source.end.offset++)}this.end(n);break}else d.push(n);else d.push(n);if(this.tokenizer.endOfFile()){l=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(d),d.length?(i.raws.afterName=this.spacesAndCommentsFromStart(d),this.raw(i,"params",d),l&&(n=d[d.length-1],i.source.end=this.getPosition(n[3]||n[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),c&&
vendor: 4,165 bytes, line 533
533(i.nodes=[],this.current=i)},t.checkMissedSemicolon=function(n){var i=this.colon(n);if(i!==!1){for(var o=0,a,s=i-1;s>=0&&(a=n[s],!(a[0]!=="space"&&(o+=1,o===2)));s--);throw this.input.error("Missed semicolon",a[0]==="word"?a[3]+1:a[2])}},t.colon=function(n){for(var i=0,o,a,s,l=Ft(n.entries()),c;!(c=l()).done;){var d=c.value,u=d[0],f=d[1];if(o=f,a=o[0],a==="("&&(i+=1),a===")"&&(i-=1),i===0&&a===":")if(!s)this.doubleColon(o);else{if(s[0]==="word"&&s[1]==="progid")continue;return u}s=o}return!1},t.comment=function(n){var i=new TKe;this.init(i,n[2]),i.source.end=this.getPosition(n[3]||n[2]),i.source.end.offset++;var o=n[1].slice(2,-2);if(/^\s*$/.test(o))i.text="",i.raws.left=o,i.raws.right="";else{var a=o.match(/^(\s*)([^]*\S)(\s*)$/);i.text=a[2],i.raws.left=a[1],i.raws.right=a[3]}},t.createTokenizer=function(){this.tokenizer=OKe(this.input)},t.decl=function(n,i){var o=new xKe;this.init(o,n[0][2]);var a=n[n.length-1];for(a[0]===";"&&(this.semicolon=!0,n.pop()),o.source.end=this.getPosition(a[3]||a[2]||$Ke(n)),o.source.end.offset++;n[0][0]!=="word";)n.length===1&&this.unknownWord(n),o.raws.before+=n.shift()[1];for(o.source.start=this.getPosition(n[0][2]),o.prop="";n.length;){var s=n[0][0];if(s===":"||s==="space"||s==="comment")break;o.prop+=n.shift()[1]}o.raws.between="";for(var l;n.length;)if(l=n.shift(),l[0]===":"){o.raws.between+=l[1];break}else l[0]==="word"&&/\w/.test(l[1])&&this.unknownWord([l]),o.raws.between+=l[1];(o.prop[0]==="_"||o.prop[0]==="*")&&(o.raws.before+=o.prop[0],o.prop=o.prop.slice(1));for(var c=[],d;n.length&&(d=n[0][0],!(d!=="space"&&d!=="comment"));)c.push(n.shift());this.precheckMissedSemicolon(n);for(var u=n.length-1;u>=0;u--){if(l=n[u],l[1].toLowerCase()==="!important"){o.important=!0;var f=this.stringFrom(n,u);f=this.spacesFromEnd(n)+f,f!==" !important"&&(o.raws.important=f);break}else if(l[1].toLowerCase()==="important"){for(var h=n.slice(0),v="",y=u;y>0;y--){var g=h[y][0];if(v.trim().indexOf("!")===0&&g!=="space")break;v=h.pop()[1]+v}v.trim().indexOf("!")===0&&(o.important=!0,o.raws.important=v,n=h)}if(l[0]!=="space"&&l[0]!=="comment")break}var m=n.some(function(S){return S[0]!=="space"&&S[0]!=="comment"});m&&(o.raws.between+=c.map(function(S){return S[1]}).join(""),c=[]),this.raw(o,"value",c.concat(n),i),o.value.includes(":")&&!i&&this.checkMissedSemicolon(n)},t.doubleColon=function(n){throw this.input.error("Double colon",{offset:n[2]},{offset:n[2]+n[1].length})},t.emptyRule=function(n){var i=new Hq;this.init(i,n[2]),i.selector="",i.raws.between="",this.current=i},t.end=function(n){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(n[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(n)},t.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())},t.freeSemicolon=function(n){if(this.spaces+=n[1],this.current.nodes){var i=this.current.nodes[this.current.nodes.length-1];i&&i.type==="rule"&&!i.raws.ownSemicolon&&(i.raws.ownSemicolon=this.spaces,this.spaces="")}},t.getPosition=function(n){var i=this.input.fromOffset(n);return{column:i.col,line:i.line,offset:n}},t.init=function(n,i){this.current.push(n),n.source={input:this.input,start:this.getPosition(i)},n.raws.before=this.spaces,this.spaces="",n.type!=="comment"&&(this.semicolon=!1)},t.other=function(n){for(var i=!1,o=null,a=!1,s=null,l=[],c=n[1].startsWith("--"),d=[],u=n;u;){if(o=u[0],d.push(u),o==="("||o==="[")s||(s=u),l.push(o==="("?")":"]");else if(c&&a&&o==="{")s||(s=u),l.push("}");else if(l.length===0)if(o===";")if(a){this.decl(d,c);return}else break;else if(o==="{"){this.rule(d);return}else if(o==="}"){this.tokenizer.back(d.pop()),i=!0;break}else o===":"&&(a=!0);else o===l[l.length-1]&&(l.pop(),l.length===0&&(s=null));u=this.tokenizer.nextToken()}
vendor: 19,325 bytes, line 533
533if(this.tokenizer.endOfFile()&&(i=!0),l.length>0&&this.unclosedBracket(s),i&&a){if(!c)for(;d.length&&(u=d[d.length-1][0],!(u!=="space"&&u!=="comment"));)this.tokenizer.back(d.pop());this.decl(d,c)}else this.unknownWord(d)},t.parse=function(){for(var n;!this.tokenizer.endOfFile();)switch(n=this.tokenizer.nextToken(),n[0]){case"space":this.spaces+=n[1];break;case";":this.freeSemicolon(n);break;case"}":this.end(n);break;case"comment":this.comment(n);break;case"at-word":this.atrule(n);break;case"{":this.emptyRule(n);break;default:this.other(n);break}this.endFile()},t.precheckMissedSemicolon=function(){},t.raw=function(n,i,o,a){for(var s,l,c=o.length,d="",u=!0,f,h,v=0;v<c;v+=1)s=o[v],l=s[0],l==="space"&&v===c-1&&!a?u=!1:l==="comment"?(h=o[v-1]?o[v-1][0]:"empty",f=o[v+1]?o[v+1][0]:"empty",!Vq[h]&&!Vq[f]?d.slice(-1)===","?u=!1:d+=s[1]:u=!1):d+=s[1];if(!u){var y=o.reduce(function(g,m){return g+m[1]},"");n.raws[i]={raw:y,value:d}}n[i]=d},t.rule=function(n){n.pop();var i=new Hq;this.init(i,n[0][2]),i.raws.between=this.spacesAndCommentsFromEnd(n),this.raw(i,"selector",n),this.current=i},t.spacesAndCommentsFromEnd=function(n){for(var i,o="";n.length&&(i=n[n.length-1][0],!(i!=="space"&&i!=="comment"));)o=n.pop()[1]+o;return o},t.spacesAndCommentsFromStart=function(n){for(var i,o="";n.length&&(i=n[0][0],!(i!=="space"&&i!=="comment"));)o+=n.shift()[1];return o},t.spacesFromEnd=function(n){for(var i,o="";n.length&&(i=n[n.length-1][0],i==="space");)o=n.pop()[1]+o;return o},t.stringFrom=function(n,i){for(var o="",a=i;a<n.length;a++)o+=n[a][1];return n.splice(i,n.length-i),o},t.unclosedBlock=function(){var n=this.current.source.start;throw this.input.error("Unclosed block",n.line,n.column)},t.unclosedBracket=function(n){throw this.input.error("Unclosed bracket",{offset:n[2]},{offset:n[2]+1})},t.unexpectedClose=function(n){throw this.input.error("Unexpected }",{offset:n[2]},{offset:n[2]+1})},t.unknownWord=function(n){throw this.input.error("Unknown word",{offset:n[0][2]},{offset:n[0][2]+n[0][1].length})},t.unnamedAtrule=function(n,i){throw this.input.error("At-rule without name",{offset:i[2]},{offset:i[2]+i[1].length})},e}(),NKe=kKe,DKe=qd,LKe=NKe,jKe=WR;function uw(e,t){var r=new jKe(e,t),n=new LKe(r);try{n.parse()}catch(i){throw i}return n.root}var O6=uw;uw.default=uw;DKe.registerParse(uw);var _s=ou.isClean,FKe=ou.my,zKe=kse,BKe=HR,HKe=qd,VKe=R6,Uq=P6,UKe=O6,WKe=Q0,qKe={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},GKe={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},KKe={Once:!0,postcssPlugin:!0,prepare:!0},Np=0;function zg(e){return(typeof e>"u"?"undefined":Pr(e))==="object"&&typeof e.then=="function"}function Jse(e){var t=!1,r=qKe[e.type];return e.type==="decl"?t=e.prop.toLowerCase():e.type==="atrule"&&(t=e.name.toLowerCase()),t&&e.append?[r,r+"-"+t,Np,r+"Exit",r+"Exit-"+t]:t?[r,r+"-"+t,r+"Exit",r+"Exit-"+t]:e.append?[r,Np,r+"Exit"]:[r,r+"Exit"]}function Wq(e){var t;return e.type==="document"?t=["Document",Np,"DocumentExit"]:e.type==="root"?t=["Root",Np,"RootExit"]:t=Jse(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function Fk(e){return e[_s]=!1,e.nodes&&e.nodes.forEach(function(t){return Fk(t)}),e}var zk={},Dp=function(){function e(r,n,i){var o=this;this.stringified=!1,this.processed=!1;var a;if((typeof n>"u"?"undefined":Pr(n))==="object"&&n!==null&&(n.type==="root"||n.type==="document"))a=Fk(n);else if(hr(n,e)||hr(n,Uq))a=Fk(n.root),n.map&&(typeof i.map>"u"&&(i.map={}),i.map.inline||(i.map.inline=!1),i.map.prev=n.map);else{var s=UKe;i.syntax&&(s=i.syntax.parse),i.parser&&(s=i.parser),s.parse&&(s=s.parse);try{a=s(n,i)}catch(l){this.processed=!0,this.error=l}a&&!a[FKe]&&HKe.rebuild(a)}this.result=new Uq(r,a,i),this.helpers=Mr({},zk,{postcss:zk,result:this.result}),this.plugins=this.processor.plugins.map(function(l){return(typeof l>"u"?"undefined":Pr(l))==="object"&&l.prepare?Mr({},l,l.prepare(o.result)):l})}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)},t.catch=function(n){return this.async().catch(n)},t.finally=function(n){return this.async().then(n,n)},t.getAsyncError=function(){throw new Error("Use process(css).then(cb) to work with async plugins")},t.handleError=function(n,i){var o=this.result.lastPlugin;try{if(i&&i.addToError(n),this.error=n,n.name==="CssSyntaxError"&&!n.plugin)n.plugin=o.postcssPlugin,n.setMessage();else if(o.postcssVersion)var a,s,l,c,d}catch{}return n},t.prepareVisitors=function(){var n=this;this.listeners={};for(var i=function(d,u,f){n.listeners[u]||(n.listeners[u]=[]),n.listeners[u].push([d,f])},o=Ft(this.plugins),a;!(a=o()).done;){var s=a.value;if((typeof s>"u"?"undefined":Pr(s))==="object")for(var l in s){if(!GKe[l]&&/^[A-Z]/.test(l))throw new Error("Unknown event "+l+" in "+s.postcssPlugin+". Try to update PostCSS ("+this.processor.version+" now).");if(!KKe[l])if(Pr(s[l])==="object")for(var c in s[l])c==="*"?i(s,l,s[l][c]):i(s,l+"-"+c.toLowerCase(),s[l][c]);else typeof s[l]=="function"&&i(s,l,s[l])}}this.hasListener=Object.keys(this.listeners).length>0},t.runAsync=function(){var n=this;return a6(function(){var i,o,a,s,l,c,d,u,f,h,v,y;return Ty(this,function(g){switch(g.label){case 0:n.plugin=0,i=0,g.label=1;case 1:if(!(i<n.plugins.length))return[3,6];if(o=n.plugins[i],a=n.runOnRoot(o),!zg(a))return[3,5];g.label=2;case 2:return g.trys.push([2,4,,5]),[4,a];case 3:return g.sent(),[3,5];case 4:throw s=g.sent(),n.handleError(s);case 5:return i++,[3,1];case 6:if(n.prepareVisitors(),!n.hasListener)return[3,18];l=n.result.root,g.label=7;case 7:if(l[_s])return[3,14];l[_s]=!0,c=[Wq(l)],g.label=8;case 8:if(!(c.length>0))return[3,13];if(d=n.visitTick(c),!zg(d))return[3,12];g.label=9;case 9:return g.trys.push([9,11,,12]),[4,d];case 10:return g.sent(),[3,12];case 11:throw u=g.sent(),f=c[c.length-1].node,n.handleError(u,f);case 12:return[3,8];case 13:return[3,7];case 14:if(!n.listeners.OnceExit)return[3,18];h=function(){var m,S,C,b,w;return Ty(this,function(E){switch(E.label){case 0:m=y.value,S=m[0],C=m[1],n.result.lastPlugin=S,E.label=1;case 1:return E.trys.push([1,6,,7]),l.type!=="document"?[3,3]:(b=l.nodes.map(function(_){return C(_,n.helpers)}),[4,Promise.all(b)]);case 2:return E.sent(),[3,5];case 3:return[4,C(l,n.helpers)];case 4:E.sent(),E.label=5;case 5:return[3,7];case 6:throw w=E.sent(),n.handleError(w);case 7:return[2]}})},v=Ft(n.listeners.OnceExit),g.label=15;case 15:return(y=v()).done?[3,18]:[5,jae(h())];case 16:g.sent(),g.label=17;case 17:return[3,15];case 18:return n.processed=!0,[2,n.stringify()]}})})()},t.runOnRoot=function(n){var i=this;this.result.lastPlugin=n;try{if((typeof n>"u"?"undefined":Pr(n))==="object"&&n.Once){if(this.result.root.type==="document"){var o=this.result.root.nodes.map(function(a){return n.Once(a,i.helpers)});return zg(o[0])?Promise.all(o):o}return n.Once(this.result.root,this.helpers)}else if(typeof n=="function")return n(this.result.root,this.result)}catch(a){throw this.handleError(a)}},t.stringify=function(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();var n=this.result.opts,i=BKe;n.syntax&&(i=n.syntax.stringify),n.stringifier&&(i=n.stringifier),i.stringify&&(i=i.stringify);var o=new zKe(i,this.result.root,this.result.opts),a=o.generate();return this.result.css=a[0],this.result.map=a[1],this.result},t.sync=function(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(var n=Ft(this.plugins),i;!(i=n()).done;){var o=i.value,a=this.runOnRoot(o);if(zg(a))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){for(var s=this.result.root;!s[_s];)s[_s]=!0,this.walkSync(s);if(this.listeners.OnceExit)if(s.type==="document")for(var l=Ft(s.nodes),c;!(c=l()).done;){var d=c.value;this.visitSync(this.listeners.OnceExit,d)}else this.visitSync(this.listeners.OnceExit,s)}return this.result},t.then=function(n,i){return this.async().then(n,i)},t.toString=function(){return this.css},t.visitSync=function(n,i){for(var o=Ft(n),a;!(a=o()).done;){var s=a.value,l=s[0],c=s[1];this.result.lastPlugin=l;var d=void 0;try{d=c(i,this.helpers)}catch(u){throw this.handleError(u,i.proxyOf)}if(i.type!=="root"&&i.type!=="document"&&!i.parent)return!0;if(zg(d))throw this.getAsyncError()}},t.visitTick=function(n){var i=n[n.length-1],o=i.node,a=i.visitors;if(o.type!=="root"&&o.type!=="document"&&!o.parent){n.pop();return}if(a.length>0&&i.visitorIndex<a.length){var s=a[i.visitorIndex],l=s[0],c=s[1];i.visitorIndex+=1,i.visitorIndex===a.length&&(i.visitors=[],i.visitorIndex=0),this.result.lastPlugin=l;try{return c(o.toProxy(),this.helpers)}catch(v){throw this.handleError(v,o)}}if(i.iterator!==0){for(var d=i.iterator,u;u=o.nodes[o.indexes[d]];)if(o.indexes[d]+=1,!u[_s]){u[_s]=!0,n.push(Wq(u));return}i.iterator=0,delete o.indexes[d]}for(var f=i.events;i.eventIndex<f.length;){var h=f[i.eventIndex];if(i.eventIndex+=1,h===Np){o.nodes&&o.nodes.length&&(o[_s]=!0,i.iterator=o.getIterator());return}else if(this.listeners[h]){i.visitors=this.listeners[h];return}}n.pop()},t.walkSync=function(n){var i=this;n[_s]=!0;for(var o=Jse(n),a=Ft(o),s;!(s=a()).done;){var l=s.value;if(l===Np)n.nodes&&n.each(function(d){d[_s]||i.walkSync(d)});else{var c=this.listeners[l];if(c&&this.visitSync(c,n.toProxy()))return}}},t.warnings=function(){return this.sync().warnings()},Ai(e,[{key:"content",get:function(){return this.stringify().content}},{key:"css",get:function(){return this.stringify().css}},{key:"map",get:function(){return this.stringify().map}},{key:"messages",get:function(){return this.sync().messages}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){return this.sync().root}},{key:Symbol.toStringTag,get:function(){return"LazyResult"}}]),e}();Dp.registerPostcss=function(e){zk=e};var Zse=Dp;Dp.default=Dp;WKe.registerLazyResult(Dp);VKe.registerLazyResult(Dp);var YKe=kse,XKe=HR,QKe=O6,JKe=P6,Bk=function(){function e(r,n,i){n=n.toString(),this.stringified=!1,this._processor=r,this._css=n,this._opts=i,this._map=void 0;var o,a=XKe;this.result=new JKe(this._processor,o,this._opts),this.result.css=n;var s=this;Object.defineProperty(this.result,"root",{get:function(){return s.root}});var l=new YKe(a,o,this._opts,n);if(l.isMap()){var c=l.generate(),d=c[0],u=c[1];d&&(this.result.css=d),u&&(this.result.map=u)}else l.clearAnnotation(),this.result.css=l.css}var t=e.prototype;return t.async=function(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)},t.catch=function(n){return this.async().catch(n)},t.finally=function(n){return this.async().then(n,n)},t.sync=function(){if(this.error)throw this.error;return this.result},t.then=function(n,i){return this.async().then(n,i)},t.toString=function(){return this._css},t.warnings=function(){return[]},Ai(e,[{key:"content",get:function(){return this.result.css}},{key:"css",get:function(){return this.result.css}},{key:"map",get:function(){return this.result.map}},{key:"messages",get:function(){return[]}},{key:"opts",get:function(){return this.result.opts}},{key:"processor",get:function(){return this.result.processor}},{key:"root",get:function(){if(this._root)return this._root;var n,i=QKe;try{n=i(this._css,this._opts)}catch(o){this.error=o}if(this.error)throw this.error;return this._root=n,n}},{key:Symbol.toStringTag,get:function(){return"NoWorkResult"}}]),e}(),ZKe=Bk;Bk.default=Bk;var eYe=ZKe,tYe=Zse,rYe=R6,nYe=Q0,jy=function(){function e(r){r===void 0&&(r=[]),this.version="8.4.38",this.plugins=this.normalize(r)}var t=e.prototype;return t.normalize=function(n){for(var i=[],o=Ft(n),a;!(a=o()).done;){var s=a.value;if(s.postcss===!0?s=s():s.postcss&&(s=s.postcss),(typeof s>"u"?"undefined":Pr(s))==="object"&&Array.isArray(s.plugins))i=i.concat(s.plugins);else if((typeof s>"u"?"undefined":Pr(s))==="object"&&s.postcssPlugin)i.push(s);else if(typeof s=="function")i.push(s);else if(!((typeof s>"u"?"undefined":Pr(s))==="object"&&(s.parse||s.stringify)))throw new Error(s+" is not a PostCSS plugin")}return i},t.process=function(n,i){return i===void 0&&(i={}),!this.plugins.length&&!i.parser&&!i.stringifier&&!i.syntax?new eYe(this,n,i):new tYe(this,n,i)},t.use=function(n){return this.plugins=this.plugins.concat(this.normalize([n])),this},e}(),iYe=jy;jy.default=jy;nYe.registerProcessor(jy);rYe.registerProcessor(jy);var oYe=UR,aYe=Ose,sYe=qR,lYe=I6,cYe=WR,uYe=Q0,dYe=x6;function Fy(e,t){if(Array.isArray(e))return e.map(function(u){return Fy(u)});var r=e.inputs,n=xy(e,["inputs"]);if(r){t=[];for(var i=Ft(r),o;!(o=i()).done;){var a=o.value,s=Mr({},a,{__proto__:cYe.prototype});s.map&&(s.map=Mr({},s.map,{__proto__:aYe.prototype})),t.push(s)}}if(n.nodes&&(n.nodes=e.nodes.map(function(u){return Fy(u,t)})),n.source){var l=n.source,c=l.inputId,d=xy(l,["inputId"]);n.source=d,c!=null&&(n.source.input=t[c])}if(n.type==="root")return new uYe(n);if(n.type==="decl")return new oYe(n);if(n.type==="rule")return new dYe(n);if(n.type==="comment")return new sYe(n);if(n.type==="atrule")return new lYe(n);throw new Error("Unknown node type: "+e.type)}var fYe=Fy;Fy.default=Fy;var pYe=w6,ele=UR,hYe=Zse,vYe=qd,T6=iYe,gYe=HR,mYe=fYe,tle=R6,yYe=Wse,rle=qR,nle=I6,SYe=P6,CYe=WR,bYe=O6,wYe=Xse,ile=x6,ole=Q0,_Ye=VR;function Xr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new T6(t)}Xr.plugin=function(t,r){var n=!1;function i(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];console&&console.warn&&!n&&(n=!0,{}.LANG&&{}.LANG.startsWith("cn"));var c=r.apply(void 0,[].concat(s));return c.postcssPlugin=t,c.postcssVersion=new T6().version,c}var o;return Object.defineProperty(i,"postcss",{get:function(){return o||(o=i()),o}}),i.process=function(a,s,l){return Xr([i(l)]).process(a,s)},i};Xr.stringify=gYe;Xr.parse=bYe;Xr.fromJSON=mYe;Xr.list=wYe;Xr.comment=function(e){return new rle(e)};Xr.atRule=function(e){return new nle(e)};Xr.decl=function(e){return new ele(e)};Xr.rule=function(e){return new ile(e)};Xr.root=function(e){return new ole(e)};Xr.document=function(e){return new tle(e)};Xr.CssSyntaxError=pYe;Xr.Declaration=ele;Xr.Container=vYe;Xr.Processor=T6;Xr.Document=tle;Xr.Comment=rle;Xr.Warning=yYe;Xr.AtRule=nle;Xr.Result=SYe;Xr.Input=CYe;Xr.Rule=ile;Xr.Root=ole;Xr.Node=_Ye;hYe.registerPostcss(Xr);var EYe=Xr;Xr.default=Xr;var wn=LGe(EYe);wn.stringify;wn.fromJSON;wn.plugin;wn.parse;wn.list;wn.document;wn.comment;wn.atRule;wn.rule;wn.decl;wn.root;wn.CssSyntaxError;wn.Declaration;wn.Container;wn.Processor;wn.Document;wn.Comment;wn.Warning;wn.AtRule;wn.Result;wn.Input;wn.Rule;wn.Root;wn.Node;var RYe=function(){function e(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];ga(this,"parentElement",null),ga(this,"parentNode",null),ga(this,"ownerDocument"),ga(this,"firstChild",null),ga(this,"lastChild",null),ga(this,"previousSibling",null),ga(this,"nextSibling",null),ga(this,"ELEMENT_NODE",1),ga(this,"TEXT_NODE",3),ga(this,"nodeType"),ga(this,"nodeName"),ga(this,"RRNodeType")}var t=e.prototype;return t.contains=function(n){if(hr(n,e)){if(n.ownerDocument!==this.ownerDocument)return!1;if(n===this)return!0}else return!1;for(;n.parentNode;){if(n.parentNode===this)return!0;n=n.parentNode}return!1},t.appendChild=function(n){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")},t.insertBefore=function(n,i){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")},t.removeChild=function(n){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")},t.toString=function(){return"RRNode"},Ai(e,[{key:"childNodes",get:function(){for(var n=[],i=this.firstChild;i;)n.push(i),i=i.nextSibling;return n}}]),e}(),qq={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Gq={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},L1={},PYe=function(){return!!globalThis.Zone};function A6(e){if(L1[e])return L1[e];var t=globalThis[e],r=t.prototype,n=e in qq?qq[e]:void 0,i=!!(n&&n.every(function(d){var u,f;return!!((f=(u=Object.getOwnPropertyDescriptor(r,d))==null?void 0:u.get)!=null&&f.toString().includes("[native code]"))})),o=e in Gq?Gq[e]:void 0,a=!!(o&&o.every(function(d){var u;return typeof r[d]=="function"&&((u=r[d])==null?void 0:u.toString().includes("[native code]"))}));if(i&&a&&!PYe())return L1[e]=t.prototype,t.prototype;try{var s=document.createElement("iframe");document.body.appendChild(s);var l=s.contentWindow;if(!l)return t.prototype;var c=l[e].prototype;return document.body.removeChild(s),c?L1[e]=c:r}catch{return r}}var qT={};function au(e,t,r){var n,i=e+"."+String(r);if(qT[i])return qT[i].call(t);var o=A6(e),a=(n=Object.getOwnPropertyDescriptor(o,r))==null?void 0:n.get;return a?(qT[i]=a,a.call(t)):t[r]}var GT={};function ale(e,t,r){var n=e+"."+String(r);if(GT[n])return GT[n].bind(t);var i=A6(e),o=i[r];return typeof o!="function"?t[r]:(GT[n]=o,o.bind(t))}function IYe(e){return au("Node",e,"childNodes")}function xYe(e){return au("Node",e,"parentNode")}function OYe(e){return au("Node",e,"parentElement")}function TYe(e){return au("Node",e,"textContent")}function AYe(e,t){return ale("Node",e,"contains")(t)}function MYe(e){return ale("Node",e,"getRootNode")()}function $Ye(e){return!e||!("host"in e)?null:au("ShadowRoot",e,"host")}function kYe(e){return e.styleSheets}function NYe(e){return!e||!("shadowRoot"in e)?null:au("Element",e,"shadowRoot")}function DYe(e,t){return au("Element",e,"querySelector")(t)}function LYe(e,t){return au("Element",e,"querySelectorAll")(t)}function sle(){return A6("MutationObserver").constructor}var _r={childNodes:IYe,parentNode:xYe,parentElement:OYe,textContent:TYe,contains:AYe,getRootNode:MYe,host:$Ye,styleSheets:kYe,shadowRoot:NYe,querySelector:DYe,querySelectorAll:LYe,mutationObserver:sle};function ro(e,t,r){r===void 0&&(r=document);var n={capture:!0,passive:!0};return r.addEventListener(e,t,n),function(){return r.removeEventListener(e,t,n)}}var Kq={map:{},getId:function(){return-1},getNode:function(){return null},removeNodeFromMap:function(){},has:function(){return!1},reset:function(){}};typeof window<"u"&&window.Proxy&&window.Reflect&&(Kq=new Proxy(Kq,{get:function(t,r,n){return Reflect.get(t,r,n)}}));function zy(e,t,r){r===void 0&&(r={});var n=null,i=0;return function(){for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];var l=Date.now();!i&&r.leading===!1&&(i=l);var c=t-(l-i),d=this;c<=0||c>t?(n&&(clearTimeout(n),n=null),i=l,e.apply(d,a)):!n&&r.trailing!==!1&&(n=setTimeout(function(){i=r.leading===!1?0:Date.now(),n=null,e.apply(d,a)},c))}}function GR(e,t,r,n,i){i===void 0&&(i=window);var o=i.Object.getOwnPropertyDescriptor(e,t);
vendor: 7,442 bytes, line 533
533return i.Object.defineProperty(e,t,n?r:{set:function(s){var l=this;setTimeout(function(){r.set.call(l,s)},0),o&&o.set&&o.set.call(this,s)}}),function(){return GR(e,t,o||{},!0)}}function mh(e,t,r){try{if(!(t in e))return function(){};var n=e[t],i=r(n);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=i,function(){e[t]=n}}catch{return function(){}}}var dw=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(dw=function(){return new Date().getTime()});function lle(e){var t,r,n,i,o=e.document;return{left:o.scrollingElement?o.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:o.documentElement.scrollLeft||(o==null?void 0:o.body)&&((t=_r.parentElement(o.body))==null?void 0:t.scrollLeft)||((r=o==null?void 0:o.body)==null?void 0:r.scrollLeft)||0,top:o.scrollingElement?o.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:(o==null?void 0:o.documentElement.scrollTop)||(o==null?void 0:o.body)&&((n=_r.parentElement(o.body))==null?void 0:n.scrollTop)||((i=o==null?void 0:o.body)==null?void 0:i.scrollTop)||0}}function cle(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function ule(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function dle(e){if(!e)return null;var t=e.nodeType===e.ELEMENT_NODE?e:_r.parentElement(e);return t}function no(e,t,r,n){if(!e)return!1;var i=dle(e);if(!i)return!1;try{if(typeof t=="string"){if(i.classList.contains(t)||n&&i.closest("."+t)!==null)return!0}else if(rw(i,t,n))return!0}catch{}return!!(r&&(i.matches(r)||n&&i.closest(r)!==null))}function jYe(e,t){return t.getId(e)!==-1}function KT(e,t,r){return e.tagName==="TITLE"&&r.headTitleMutations?!0:t.getId(e)===Ay}function fle(e,t){if(bm(e))return!1;var r=t.getId(e);if(!t.has(r))return!0;var n=_r.parentNode(e);return n&&n.nodeType===e.DOCUMENT_NODE?!1:n?fle(n,t):!0}function Hk(e){return!!e.changedTouches}function FYe(e){e===void 0&&(e=window),"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function ple(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function hle(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function Vk(e){return e?hr(e,RYe)&&"shadowRoot"in e?!!e.shadowRoot:!!_r.shadowRoot(e):!1}var zYe=function(){function e(){It(this,"id",1),It(this,"styleIDMap",new WeakMap),It(this,"idStyleMap",new Map)}var t=e.prototype;return t.getId=function(n){var i;return(i=this.styleIDMap.get(n))!=null?i:-1},t.has=function(n){return this.styleIDMap.has(n)},t.add=function(n,i){if(this.has(n))return this.getId(n);var o;return i===void 0?o=this.id++:o=i,this.styleIDMap.set(n,o),this.idStyleMap.set(o,n),o},t.getStyle=function(n){return this.idStyleMap.get(n)||null},t.reset=function(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1},t.generateId=function(){return this.id++},e}();function vle(e){var t,r=null;return"getRootNode"in e&&((t=_r.getRootNode(e))==null?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&_r.host(_r.getRootNode(e))&&(r=_r.host(_r.getRootNode(e))),r}function BYe(e){for(var t=e,r;r=vle(t);)t=r;return t}function HYe(e){var t=e.ownerDocument;if(!t)return!1;var r=BYe(e);return _r.contains(t,r)}function gle(e){var t=e.ownerDocument;return t?_r.contains(t,e)||HYe(e):!1}var xr=function(e){return e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e}(xr||{}),or=function(e){return e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e}(or||{}),yo=function(e){return e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e}(yo||{}),el=function(e){return e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e}(el||{}),Lp=function(e){return e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e}(Lp||{}),Cf=function(e){return e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e}(Cf||{}),mle=function(e){return e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e}(mle||{});function Yq(e){return"__ln"in e}var VYe=function(){function e(){It(this,"length",0),It(this,"head",null),It(this,"tail",null)}var t=e.prototype;return t.get=function(n){if(n>=this.length)throw new Error("Position outside of list range");for(var i=this.head,o=0;o<n;o++)i=(i==null?void 0:i.next)||null;return i},t.addNode=function(n){var i={value:n,previous:null,next:null};if(n.__ln=i,n.previousSibling&&Yq(n.previousSibling)){var o=n.previousSibling.__ln.next;i.next=o,i.previous=n.previousSibling.__ln,n.previousSibling.__ln.next=i,o&&(o.previous=i)}else if(n.nextSibling&&Yq(n.nextSibling)&&n.nextSibling.__ln.previous){var a=n.nextSibling.__ln.previous;i.previous=a,i.next=n.nextSibling.__ln,n.nextSibling.__ln.previous=i,a&&(a.next=i)}else this.head&&(this.head.previous=i),i.next=this.head,this.head=i;i.next===null&&(this.tail=i),this.length++},t.removeNode=function(n){var i=n.__ln;this.head&&(i.previous?(i.previous.next=i.next,i.next?i.next.previous=i.previous:this.tail=i.previous):(this.head=i.next,this.head?this.head.previous=null:this.tail=null),n.__ln&&delete n.__ln,this.length--)},e}(),Xq=function(e,t){return e+"@"+t},UYe=function(){function e(){var r=this;It(this,"frozen",!1),It(this,"locked",!1),It(this,"texts",[]),It(this,"attributes",[]),It(this,"attributeMap",new WeakMap),It(this,"removes",[]),It(this,"mapRemoves",[]),It(this,"movedMap",{}),It(this,"addedSet",new Set),It(this,"movedSet",new Set),It(this,"droppedSet",new Set),It(this,"removesSubTreeCache",new Set),It(this,"mutationCb"),It(this,"blockClass"),It(this,"blockSelector"),It(this,"maskTextClass"),It(this,"maskTextSelector"),It(this,"inlineStylesheet"),It(this,"maskInputOptions"),It(this,"maskTextFn"),It(this,"maskInputFn"),It(this,"keepIframeSrcFn"),It(this,"recordCanvas"),It(this,"inlineImages"),It(this,"slimDOMOptions"),It(this,"dataURLOptions"),It(this,"doc"),It(this,"mirror"),It(this,"iframeManager"),It(this,"stylesheetManager"),It(this,"shadowDomManager"),It(this,"canvasManager"),It(this,"processedNodeManager"),It(this,"unattachedDoc"),It(this,"processMutations",function(n){n.forEac
vendor: 9,645 bytes, line 533
533h(r.processMutation),r.emit()}),It(this,"emit",function(){if(!(r.frozen||r.locked)){for(var n=[],i=new Set,o=new VYe,a=function(O){for(var A=O,x=Ay;x===Ay;)A=A&&A.nextSibling,x=A&&r.mirror.getId(A);return x},s=function(O){var A=_r.parentNode(O);if(!(!A||!gle(O))){var x=!1;if(O.nodeType===Node.TEXT_NODE){var T=A.tagName;if(T==="TEXTAREA")return;T==="STYLE"&&r.addedSet.has(A)&&(x=!0)}var D=bm(A)?r.mirror.getId(vle(O)):r.mirror.getId(A),k=a(O);if(D===-1||k===-1)return o.addNode(O);var j=Uf(O,{doc:r.doc,mirror:r.mirror,blockClass:r.blockClass,blockSelector:r.blockSelector,maskTextClass:r.maskTextClass,maskTextSelector:r.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:r.inlineStylesheet,maskInputOptions:r.maskInputOptions,maskTextFn:r.maskTextFn,maskInputFn:r.maskInputFn,slimDOMOptions:r.slimDOMOptions,dataURLOptions:r.dataURLOptions,recordCanvas:r.recordCanvas,inlineImages:r.inlineImages,onSerialize:function(N){ple(N,r.mirror)&&r.iframeManager.addIframe(N),hle(N,r.mirror)&&r.stylesheetManager.trackLinkElement(N),Vk(O)&&r.shadowDomManager.addShadowRoot(_r.shadowRoot(O),r.doc)},onIframeLoad:function(N,L){r.iframeManager.attachIframe(N,L),r.shadowDomManager.observeAttachShadow(N)},onStylesheetLoad:function(N,L){r.stylesheetManager.attachLinkElement(N,L)},cssCaptured:x});j&&(n.push({parentId:D,nextId:k,node:j}),i.add(j.id))}};r.mapRemoves.length;)r.mirror.removeNodeFromMap(r.mapRemoves.shift());for(var l=Ft(r.movedSet),c;!(c=l()).done;){var d=c.value;Qq(r.removesSubTreeCache,d,r.mirror)&&!r.movedSet.has(_r.parentNode(d))||s(d)}for(var u=Ft(r.addedSet),f;!(f=u()).done;){var h=f.value;!Jq(r.droppedSet,h)&&!Qq(r.removesSubTreeCache,h,r.mirror)||Jq(r.movedSet,h)?s(h):r.droppedSet.add(h)}for(var v=null;o.length;){var y=null;if(v){var g=r.mirror.getId(_r.parentNode(v.value)),m=a(v.value);g!==-1&&m!==-1&&(y=v)}if(!y)for(var S=o.tail;S;){var C=S;if(S=S.previous,C){var b=r.mirror.getId(_r.parentNode(C.value)),w=a(C.value);if(w===-1)continue;if(b!==-1){y=C;break}else{var E=C.value,_=_r.parentNode(E);if(_&&_.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var R=_r.host(_),P=r.mirror.getId(R);if(P!==-1){y=C;break}}}}}if(!y){for(;o.head;)o.removeNode(o.head.value);break}v=y.previous,o.removeNode(y.value),s(y.value)}var I={texts:r.texts.map(function(O){var A=O.node,x=_r.parentNode(A);return x&&x.tagName==="TEXTAREA"&&r.genTextAreaValueMutation(x),{id:r.mirror.getId(A),value:O.value}}).filter(function(O){return!i.has(O.id)}).filter(function(O){return r.mirror.has(O.id)}),attributes:r.attributes.map(function(O){var A=O.attributes;if(typeof A.style=="string"){var x=JSON.stringify(O.styleDiff),T=JSON.stringify(O._unchangedStyles);x.length<A.style.length&&(x+T).split("var(").length===A.style.split("var(").length&&(A.style=O.styleDiff)}return{id:r.mirror.getId(O.node),attributes:A}}).filter(function(O){return!i.has(O.id)}).filter(function(O){return r.mirror.has(O.id)}),removes:r.removes,adds:n};!I.texts.length&&!I.attributes.length&&!I.removes.length&&!I.adds.length||(r.texts=[],r.attributes=[],r.attributeMap=new WeakMap,r.removes=[],r.addedSet=new Set,r.movedSet=new Set,r.droppedSet=new Set,r.removesSubTreeCache=new Set,r.movedMap={},r.mutationCb(I))}}),It(this,"genTextAreaValueMutation",function(n){var i=r.attributeMap.get(n);i||(i={node:n,attributes:{},styleDiff:{},_unchangedStyles:{}},r.attributes.push(i),r.attributeMap.set(n,i)),i.attributes.value=Array.from(_r.childNodes(n),function(o){return _r.textContent(o)||""}).join("")}),It(this,"processMutation",function(n){if(!KT(n.target,r.mirror,r.slimDOMOptions))switch(n.type){case"characterData":{var i=_r.textContent(n.target);!no(n.target,r.blockClass,r.blockSelector,!1)&&i!==n.oldValue&&r.texts.push({value:Gae(n.target,r.maskTextClass,r.maskTextSelector,!0)&&i?r.maskTextFn?r.maskTextFn(i,dle(n.target)):i.replace(/[\S]/g,"*"):i,node:n.target});break}case"attributes":{var o=n.target,a=n.attributeName,s=n.target.getAttribute(a);if(a==="value"){var l=c6(o);s=l6({element:o,maskInputOptions:r.maskInputOptions,tagName:o.tagName,type:l,value:s,maskInputFn:r.maskInputFn})}if(no(n.target,r.blockClass,r.blockSelector,!1)||s===n.oldValue)return;var c=r.attributeMap.get(n.target);if(o.tagName==="IFRAME"&&a==="src"&&!r.keepIframeSrcFn(s))if(!o.contentDocument)a="rr_src";else return;if(c||(c={node:n.target,attributes:{},styleDiff:{},_unchangedStyles:{}},r.attributes.push(c),r.attributeMap.set(n.target,c)),a==="type"&&o.tagName==="INPUT"&&(n.oldValue||"").toLowerCase()==="password"&&o.setAttribute("data-rr-is-password","true"),!qae(o.tagName,a))if(c.attributes[a]=Wae(r.doc,Cd(o.tagName),Cd(a),s),a==="style"){if(!r.unattachedDoc)try{r.unattachedDoc=document.implementation.createHTMLDocument()}catch{r.unattachedDoc=r.doc}var d=r.unattachedDoc.createElement("span");n.oldValue&&d.setAttribute("style",n.oldValue);for(var u=Ft(Array.from(o.style)),f;!(f=u()).done;){var h=f.value,v=o.style.getPropertyValue(h),y=o.style.getPropertyPriority(h);v!==d.style.getPropertyValue(h)||y!==d.style.getPropertyPriority(h)?y===""?c.styleDiff[h]=v:c.styleDiff[h]=[v,y]:c._unchangedStyles[h]=[v,y]}for(var g=Ft(Array.from(d.style)),m;!(m=g()).done;){var S=m.value;o.style.getPropertyValue(S)===""&&(c.styleDiff[S]=!1)}}else a==="open"&&o.tagName==="DIALOG"&&(o.matches("dialog:modal")?c.attributes.rr_open_mode="modal":c.attributes.rr_open_mode="non-modal");break}case"childList":{if(no(n.target,r.blockClass,r.blockSelector,!0))return;if(n.target.tagName==="TEXTAREA"){r.genTextAreaValueMutation(n.target);return}n.addedNodes.forEach(function(C){return r.genAdds(C,n.target)}),n.removedNodes.forEach(function(C){var b=r.mirror.getId(C),w=bm(n.target)?r.mirror.getId(_r.host(n.target)):r.mirror.getId(n.target);no(n.target,r.blockClass,r.blockSelector,!1)||KT(C,r.mirror,r.slimDOMOptions)||!jYe(C,r.mirror)||(r.addedSet.has(C)?(Uk(r.addedSet,C),r.droppedSet.add(C)):r.addedSet.has(n.target)&&b===-1||fle(n.target,r.mirror)||(r.movedSet.has(C)&&r.movedMap[Xq(b,w)]?Uk(r.movedSet,C):(r.removes.push({parentId:w,id:b,isShadow:bm(n.target)&&wm(n.target)?!0:void 0}),WYe(C,r.removesSubTreeCache))),r.mapRemoves.push(C))});break}}}),It(this,"genAdds",function(n,i){if(!r.processedNodeManager.inOtherBuffer(n,r)&&!(r.addedSet.has(n)||r.movedSet.has(n))){if(r.mirror.hasNode(n)){if(KT(n,r.mirror,r.slimDOMOptions))return;r.movedSet.add(n);var o=null;i&&r.mirror.hasNode(i)&&(o=r.mirror.getId(i)),o&&o!==-1&&(r.movedMap[Xq(r.mirror.getId(n),o)]=!0)}else r.addedSet.add(n),r.droppedSet.delete(n);no(n,r.blockClass,r.blockSelector,!1)||(_r.childNodes(n).forEach(function(a){return r.genAdds(a)}),Vk(n)&&_r.childNodes(_r.shadowRoot(n)).forEach(function(a){r.processedNodeManager.add(a,r),r.genAdds(a,n)}))}})}var t=e.prototype;return t.init=function(n){var i=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(function(o){i[o]=n[o]})},t.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},t.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},t.isFrozen=function(){return this.frozen},t.lock=function(){this.locked=!0,this.canvasManager.lock()},t.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},t.reset=function(){this.shadowDomManager.reset(),this.canvasManager.reset()},e}();function Uk(e,t){e.delete(t),_r.childNodes(t).forEach(function(r){return Uk(e,r)})}function WYe(e,t){for(var r=[e];r.length;){var n=r.pop();t.has(n)||(t.add(n),_r.childNodes(n).forEach(function(i){return r.push(i)}))}}function Qq(e,t,r){return e.size===0?!1:qYe(e,t)}function qYe(e,t,r){var n=_r.parentNode(t);return n?e.has(n):!1}function Jq(e,t){return e.size===0?!1:yle(e,t)}function yle(e,t){var r=_r.parentNode(t);return r?e.has(r)?!0:yle(e,r):!1}var _m;function GYe(e){_m=e}function KYe(){_m=void 0}var Ar=function(e){if(!_m)return e;var t=function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];try{return e.apply(void 0,[].concat(n))}catch(o){if(_m&&_m(o)===!0)return;throw o}};return t},Yu=[];function J0(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function Sle(e,t){var r=new UYe;Yu.push(r),r.init(e);var n=new(sle())(Ar(r.processMutations.bind(r)));return n.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),n}function YYe(e){var t=e.mousemoveCb,r=e.sampling,n=e.doc,i=e.mirror;if(r.mousemove===!1)return function(){};var o=typeof r.mousemove=="number"?r.mousemove:50,a=typeof r.mousemoveCallback=="number"?r.mousemoveCallback:500,s=[],l,c=zy(Ar(function(f){var h=Date.now()-l;t(s.map(function(v){return v.timeOffset-=h,v}),f),s=[],l=null}),a),d=Ar(zy(Ar(function(f){var h=J0(f),v=Hk(f)?f.changedTouches[0]:f,y=v.clientX,g=v.clientY;l||(l=dw()),s.push({x:y,y:g,id:i.getId(h),timeOffset:dw()-l}),c(typeof DragEvent<"u"&&hr(f,DragEvent)?or.Drag:hr(f,MouseEvent)?or.MouseMove:or.TouchMove)}),o,{trailing:!1})),u=[ro("mousemove",d,n),ro("touchmove",d,n),ro("drag",d,n)];return Ar(function(){u.forEach(function(f){return f()})})}function XYe(e){var t=e.mouseInteractionCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,a=e.sampling;if(a.mouseInteraction===!1)return function(){};var s=a.mouseInteraction===!0||a.mouseInteraction===void 0?{}:a.mouseInteraction,l=[],c=null,d=function(u){return function(f){var h=J0(f);
vendor: 19,270 bytes, line 533
533if(!no(h,i,o,!0)){var v=null,y=u;if("pointerType"in f){switch(f.pointerType){case"mouse":v=el.Mouse;break;case"touch":v=el.Touch;break;case"pen":v=el.Pen;break}v===el.Touch?yo[u]===yo.MouseDown?y="TouchStart":yo[u]===yo.MouseUp&&(y="TouchEnd"):el.Pen}else Hk(f)&&(v=el.Touch);v!==null?(c=v,(y.startsWith("Touch")&&v===el.Touch||y.startsWith("Mouse")&&v===el.Mouse)&&(v=null)):yo[u]===yo.Click&&(v=c,c=null);var g=Hk(f)?f.changedTouches[0]:f;if(g){var m=n.getId(h),S=g.clientX,C=g.clientY;Ar(t)(Mr({type:yo[y],id:m,x:S,y:C},v!==null&&{pointerType:v}))}}}};return Object.keys(yo).filter(function(u){return Number.isNaN(Number(u))&&!u.endsWith("_Departed")&&s[u]!==!1}).forEach(function(u){var f=Cd(u),h=d(u);if(window.PointerEvent)switch(yo[u]){case yo.MouseDown:case yo.MouseUp:f=f.replace("mouse","pointer");break;case yo.TouchStart:case yo.TouchEnd:return}l.push(ro(f,h,r))}),Ar(function(){l.forEach(function(u){return u()})})}function Cle(e){var t=e.scrollCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,a=e.sampling,s=Ar(zy(Ar(function(l){var c=J0(l);if(!(!c||no(c,i,o,!0))){var d=n.getId(c);if(c===r&&r.defaultView){var u=lle(r.defaultView);t({id:d,x:u.left,y:u.top})}else t({id:d,x:c.scrollLeft,y:c.scrollTop})}}),a.scroll||100));return ro("scroll",s,r)}function QYe(e,t){var r=e.viewportResizeCb,n=t.win,i=-1,o=-1,a=Ar(zy(Ar(function(){var s=cle(),l=ule();(i!==s||o!==l)&&(r({width:Number(l),height:Number(s)}),i=s,o=l)}),200));return ro("resize",a,n)}var JYe=["INPUT","TEXTAREA","SELECT"],Zq=new WeakMap;function ZYe(e){var t=e.inputCb,r=e.doc,n=e.mirror,i=e.blockClass,o=e.blockSelector,a=e.ignoreClass,s=e.ignoreSelector,l=e.maskInputOptions,c=e.maskInputFn,d=e.sampling,u=e.userTriggeredOnInput;function f(b){var w=J0(b),E=b.isTrusted,_=w&&w.tagName;if(w&&_==="OPTION"&&(w=_r.parentElement(w)),!(!w||!_||JYe.indexOf(_)<0||no(w,i,o,!0))&&!(w.classList.contains(a)||s&&w.matches(s))){var R=w.value,P=!1,I=c6(w)||"";I==="radio"||I==="checkbox"?P=w.checked:(l[_.toLowerCase()]||l[I])&&(R=l6({element:w,maskInputOptions:l,tagName:_,type:I,value:R,maskInputFn:c})),h(w,u?{text:R,isChecked:P,userTriggered:E}:{text:R,isChecked:P});var O=w.name;I==="radio"&&O&&P&&r.querySelectorAll('input[type="radio"][name="'+O+'"]').forEach(function(A){if(A!==w){var x=A.value;h(A,u?{text:x,isChecked:!P,userTriggered:!1}:{text:x,isChecked:!P})}})}}function h(b,w){var E=Zq.get(b);if(!E||E.text!==w.text||E.isChecked!==w.isChecked){Zq.set(b,w);var _=n.getId(b);Ar(t)(Mr({},w,{id:_}))}}var v=d.input==="last"?["change"]:["input","change"],y=v.map(function(b){return ro(b,Ar(f),r)}),g=r.defaultView;if(!g)return function(){y.forEach(function(b){return b()})};var m=g.Object.getOwnPropertyDescriptor(g.HTMLInputElement.prototype,"value"),S=[[g.HTMLInputElement.prototype,"value"],[g.HTMLInputElement.prototype,"checked"],[g.HTMLSelectElement.prototype,"value"],[g.HTMLTextAreaElement.prototype,"value"],[g.HTMLSelectElement.prototype,"selectedIndex"],[g.HTMLOptionElement.prototype,"selected"]];if(m&&m.set){var C;(C=y).push.apply(C,[].concat(S.map(function(b){return GR(b[0],b[1],{set:function(){Ar(f)({target:this,isTrusted:!1})}},!1,g)})))}return Ar(function(){y.forEach(function(b){return b()})})}function fw(e){var t=[];function r(n,i){if(j1("CSSGroupingRule")&&hr(n.parentRule,CSSGroupingRule)||j1("CSSMediaRule")&&hr(n.parentRule,CSSMediaRule)||j1("CSSSupportsRule")&&hr(n.parentRule,CSSSupportsRule)||j1("CSSConditionRule")&&hr(n.parentRule,CSSConditionRule)){var o=Array.from(n.parentRule.cssRules),a=o.indexOf(n);i.unshift(a)}else if(n.parentStyleSheet){var s=Array.from(n.parentStyleSheet.cssRules),l=s.indexOf(n);i.unshift(l)}return i}return r(e,t)}function rc(e,t,r){var n,i;return e?(e.ownerNode?n=t.getId(e.ownerNode):i=r.getId(e),{styleId:i,id:n}):{}}function eXe(e,t){var r=e.styleSheetRuleCb,n=e.mirror,i=e.stylesheetManager,o=t.win;if(!o.CSSStyleSheet||!o.CSSStyleSheet.prototype)return function(){};var a=o.CSSStyleSheet.prototype.insertRule;o.CSSStyleSheet.prototype.insertRule=new Proxy(a,{apply:Ar(function(f,h,v){var y=v[0],g=v[1],m=rc(h,n,i.styleMirror),S=m.id,C=m.styleId;return(S&&S!==-1||C&&C!==-1)&&r({id:S,styleId:C,adds:[{rule:y,index:g}]}),f.apply(h,v)})}),o.CSSStyleSheet.prototype.addRule=function(f,h,v){v===void 0&&(v=this.cssRules.length);var y=f+" { "+h+" }";return o.CSSStyleSheet.prototype.insertRule.apply(this,[y,v])};var s=o.CSSStyleSheet.prototype.deleteRule;o.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:Ar(function(f,h,v){var y=v[0],g=rc(h,n,i.styleMirror),m=g.id,S=g.styleId;return(m&&m!==-1||S&&S!==-1)&&r({id:m,styleId:S,removes:[{index:y}]}),f.apply(h,v)})}),o.CSSStyleSheet.prototype.removeRule=function(f){return o.CSSStyleSheet.prototype.deleteRule.apply(this,[f])};var l;o.CSSStyleSheet.prototype.replace&&(l=o.CSSStyleSheet.prototype.replace,o.CSSStyleSheet.prototype.replace=new Proxy(l,{apply:Ar(function(f,h,v){var y=v[0],g=rc(h,n,i.styleMirror),m=g.id,S=g.styleId;return(m&&m!==-1||S&&S!==-1)&&r({id:m,styleId:S,replace:y}),f.apply(h,v)})}));var c;o.CSSStyleSheet.prototype.replaceSync&&(c=o.CSSStyleSheet.prototype.replaceSync,o.CSSStyleSheet.prototype.replaceSync=new Proxy(c,{apply:Ar(function(f,h,v){var y=v[0],g=rc(h,n,i.styleMirror),m=g.id,S=g.styleId;return(m&&m!==-1||S&&S!==-1)&&r({id:m,styleId:S,replaceSync:y}),f.apply(h,v)})}));var d={};F1("CSSGroupingRule")?d.CSSGroupingRule=o.CSSGroupingRule:(F1("CSSMediaRule")&&(d.CSSMediaRule=o.CSSMediaRule),F1("CSSConditionRule")&&(d.CSSConditionRule=o.CSSConditionRule),F1("CSSSupportsRule")&&(d.CSSSupportsRule=o.CSSSupportsRule));var u={};return Object.entries(d).forEach(function(f){var h=f[0],v=f[1];u[h]={insertRule:v.prototype.insertRule,deleteRule:v.prototype.deleteRule},v.prototype.insertRule=new Proxy(u[h].insertRule,{apply:Ar(function(y,g,m){var S=m[0],C=m[1],b=rc(g.parentStyleSheet,n,i.styleMirror),w=b.id,E=b.styleId;return(w&&w!==-1||E&&E!==-1)&&r({id:w,styleId:E,adds:[{rule:S,index:[].concat(fw(g),[C||0])}]}),y.apply(g,m)})}),v.prototype.deleteRule=new Proxy(u[h].deleteRule,{apply:Ar(function(y,g,m){var S=m[0],C=rc(g.parentStyleSheet,n,i.styleMirror),b=C.id,w=C.styleId;return(b&&b!==-1||w&&w!==-1)&&r({id:b,styleId:w,removes:[{index:[].concat(fw(g),[S])}]}),y.apply(g,m)})})}),Ar(function(){o.CSSStyleSheet.prototype.insertRule=a,o.CSSStyleSheet.prototype.deleteRule=s,l&&(o.CSSStyleSheet.prototype.replace=l),c&&(o.CSSStyleSheet.prototype.replaceSync=c),Object.entries(d).forEach(function(f){var h=f[0],v=f[1];v.prototype.insertRule=u[h].insertRule,v.prototype.deleteRule=u[h].deleteRule})})}function ble(e,t){var r=e.mirror,n=e.stylesheetManager,i,o,a,s=null;t.nodeName==="#document"?s=r.getId(t):s=r.getId(_r.host(t));var l=t.nodeName==="#document"?(i=t.defaultView)==null?void 0:i.Document:(a=(o=t.ownerDocument)==null?void 0:o.defaultView)==null?void 0:a.ShadowRoot,c=l!=null&&l.prototype?Object.getOwnPropertyDescriptor(l==null?void 0:l.prototype,"adoptedStyleSheets"):void 0;return s===null||s===-1||!l||!c?function(){}:(Object.defineProperty(t,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:function(){var u;return(u=c.get)==null?void 0:u.call(this)},set:function(u){var f,h=(f=c.set)==null?void 0:f.call(this,u);if(s!==null&&s!==-1)try{n.adoptStyleSheets(u,s)}catch{}return h}}),Ar(function(){Object.defineProperty(t,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:c.get,set:c.set})}))}function tXe(e,t){var r=e.styleDeclarationCb,n=e.mirror,i=e.ignoreCSSAttributes,o=e.stylesheetManager,a=t.win,s=a.CSSStyleDeclaration.prototype.setProperty;a.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:Ar(function(c,d,u){var f,h=u[0],v=u[1],y=u[2];if(i.has(h))return s.apply(d,[h,v,y]);var g=rc((f=d.parentRule)==null?void 0:f.parentStyleSheet,n,o.styleMirror),m=g.id,S=g.styleId;return(m&&m!==-1||S&&S!==-1)&&r({id:m,styleId:S,set:{property:h,value:v,priority:y},index:fw(d.parentRule)}),c.apply(d,u)})});var l=a.CSSStyleDeclaration.prototype.removeProperty;return a.CSSStyleDeclaration.prototype.removeProperty=new Proxy(l,{apply:Ar(function(c,d,u){var f,h=u[0];if(i.has(h))return l.apply(d,[h]);var v=rc((f=d.parentRule)==null?void 0:f.parentStyleSheet,n,o.styleMirror),y=v.id,g=v.styleId;return(y&&y!==-1||g&&g!==-1)&&r({id:y,styleId:g,remove:{property:h},index:fw(d.parentRule)}),c.apply(d,u)})}),Ar(function(){a.CSSStyleDeclaration.prototype.setProperty=s,a.CSSStyleDeclaration.prototype.removeProperty=l})}function rXe(e){var t=e.mediaInteractionCb,r=e.blockClass,n=e.blockSelector,i=e.mirror,o=e.sampling,a=e.doc,s=Ar(function(c){return zy(Ar(function(d){var u=J0(d);if(!(!u||no(u,r,n,!0))){var f=u.currentTime,h=u.volume,v=u.muted,y=u.playbackRate,g=u.loop;t({type:c,id:i.getId(u),currentTime:f,volume:h,muted:v,playbackRate:y,loop:g})}}),o.media||500)}),l=[ro("play",s(Cf.Play),a),ro("pause",s(Cf.Pause),a),ro("seeked",s(Cf.Seeked),a),ro("volumechange",s(Cf.VolumeChange),a),ro("ratechange",s(Cf.RateChange),a)];return Ar(function(){l.forEach(function(c){return c()})})}function nXe(e){var t=e.fontCb,r=e.doc,n=r.defaultView;if(!n)return function(){};var i=[],o=new WeakMap,a=n.FontFace;n.FontFace=function(c,d,u){var f=new a(c,d,u);return o.set(f,{family:c,buffer:typeof d!="string",descriptors:u,fontSource:typeof d=="string"?d:JSON.stringify(Array.from(new Uint8Array(d)))}),f};var s=mh(r.fonts,"add",function(l){return function(c){return setTimeout(Ar(function(){var d=o.get(c);d&&(t(d),o.delete(c))}),0),l.apply(this,[c])}});return i.push(function(){n.FontFace=a}),i.push(s),Ar(function(){i.forEach(function(l){return l()})})}function iXe(e){var t=e.doc,r=e.mirror,n=e.blockClass,i=e.blockSelector,o=e.selectionCb,a=!0,s=Ar(function(){var l=t.getSelection();if(!(!l||a&&(l!=null&&l.isCollapsed))){a=l.isCollapsed||!1;for(var c=[],d=l.rangeCount||0,u=0;u<d;u++){var f=l.getRangeAt(u),h=f.startContainer,v=f.startOffset,y=f.endContainer,g=f.endOffset,m=no(h,n,i,!0)||no(y,n,i,!0);m||c.push({start:r.getId(h),startOffset:v,end:r.getId(y),endOffset:g})}o({ranges:c})}});return s(),ro("selectionchange",s)}function oXe(e){var t=e.doc,r=e.customElementCb,n=t.defaultView;if(!n||!n.customElements)return function(){};var i=mh(n.customElements,"define",function(o){return function(a,s,l){try{r({define:{name:a}})}catch{}return o.apply(this,[a,s,l])}});return i}function aXe(e,t){var r=e.mutationCb,n=e.mousemoveCb,i=e.mouseInteractionCb,o=e.scrollCb,a=e.viewportResizeCb,s=e.inputCb,l=e.mediaInteractionCb,c=e.styleSheetRuleCb,d=e.styleDeclarationCb,u=e.canvasMutationCb,f=e.fontCb,h=e.selectionCb,v=e.customElementCb;e.mutationCb=function(){for(var y=arguments.length,g=new Array(y),m=0;m<y;m++)g[m]=arguments[m];if(t.mutation){var S;(S=t).mutation.apply(S,[].concat(g))}r.apply(void 0,[].concat(g))},e.mousemoveCb=function(){for(var y=arguments.length,g=new Array(y),m=0;m<y;m++)g[m]=arguments[m];if(t.mousemove){var S;(S=t).mousemove.apply(S,[].concat(g))}n.apply(void 0,[].concat(g))},e.mouseInteractionCb=function(){for(var y=arguments.length,g=new Array(y),m=0;m<y;m++)g[m]=arguments[m];if(t.mouseInteraction){var S;(S=t).mouseInteraction.apply(S,[].concat(g))}i.apply(void 0,[].concat(g))},e.scrollCb=function(){for(var y=arguments.length,g=new Array(y),m=0;m<y;m++)g[m]=arguments[m];if(t.scroll){var S;(S=t).scroll.apply(S,[].concat(g))}o.apply(void 0,[].concat(g))},e.viewportResizeCb=function(){for(var y=arguments.length,g=new Array(y),m=0;m<y;m++)g[m]=arguments[m];if(t.viewportResize){var S;(S=t).viewportResize.apply(S,[].concat(g))}a.apply(void 0,[].concat(g))},e.inputCb=function(){for(var y=arguments.length,g=new Array(y),m=0;m<y;m++)g[m]=arguments[m];if(t.input){var S;(S=t).input.apply(S,[].concat(g))}s.apply(void 0,[].concat(g))},e.mediaInteractionCb=function(){for(var y=arguments.length,g=new Array(y),m=0;m<y;m++)g[m]=arguments[m];if(t.mediaInteaction){var S;(S=t).mediaInteaction.apply(S,[].concat(g))}l.apply(void 0,[].concat(g))},e.styleSheetRuleCb=function(){for(var y=arguments.length,g=new Array(y),m=0;m<y;m++)g[m]=arguments[m];if(t.styleSheetRule){var S;(S=t).styleSheetRule.apply(S,[].concat(g))}c.apply(void 0,[].concat(g))},e.styleDeclarationCb=function(){for(var y=arguments.length,g=new Array(y),m=0;m<y;m++)g[m]=arguments[m];if(t.styleDeclaration){var S;(S=t).styleDeclaration.apply(S,[].concat(g))}d.apply(void 0,[].concat(g))},e.canvasMutationCb=function(){for(var y=arguments.length,g=new Array(y),m=0;m<y;m++)g[m]=arguments[m];if(t.canvasMutation){var S;(S=t).canvasMutation.apply(S,[].concat(g))}u.apply(void 0,[].concat(g))},e.fontCb=function(){for(var y=arguments.length,g=new Array(y),m=0;m<y;m++)g[m]=arguments[m];if(t.font){var S;(S=t).font.apply(S,[].concat(g))}f.apply(void 0,[].concat(g))},e.selectionCb=function(){for(var y=arguments.length,g=new Array(y),m=0;m<y;m++)g[m]=arguments[m];if(t.selection){var S;(S=t).selection.apply(S,[].concat(g))}h.apply(void 0,[].concat(g))},e.customElementCb=function(){for(var y=arguments.length,g=new Array(y),m=0;m<y;m++)g[m]=arguments[m];if(t.customElement){var S;(S=t).customElement.apply(S,[].concat(g))}v.apply(void 0,[].concat(g))}}function sXe(e,t){t===void 0&&(t={});var r=e.doc.defaultView;if(!r)return function(){};aXe(e,t);var n;e.recordDOM&&(n=Sle(e,e.doc));var i=YYe(e),o=XYe(e),a=Cle(e),s=QYe(e,{win:r}),l=ZYe(e),c=rXe(e),d=function(){},u=function(){},f=function(){},h=function(){};e.recordDOM&&(d=eXe(e,{win:r}),u=ble(e,e.doc),f=tXe(e,{win:r}),e.collectFonts&&(h=nXe(e)));for(var v=iXe(e),y=oXe(e),g=[],m=Ft(e.plugins),S;!(S=m()).done;){var C=S.value;g.push(C.observer(C.callback,r,C.options))}return Ar(function(){Yu.forEach(function(b){return b.reset()}),n==null||n.disconnect(),i(),o(),a(),s(),l(),c(),d(),u(),f(),h(),v(),y(),g.forEach(function(b){return b()})})}function j1(e){return typeof window[e]<"u"}function F1(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}var eG=function(){function e(r){It(this,"iframeIdToRemoteIdMap",new WeakMap),It(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=r}var t=e.prototype;return t.getId=function(n,i,o,a){var s=o||this.getIdToRemoteIdMap(n),l=a||this.getRemoteIdToIdMap(n),c=s.get(i);return c||(c=this.generateIdFn(),s.set(i,c),l.set(c,i)),c},t.getIds=function(n,i){var o=this,a=this.getIdToRemoteIdMap(n),s=this.getRemoteIdToIdMap(n);return i.map(function(l){return o.getId(n,l,a,s)})},t.getRemoteId=function(n,i,o){var a=o||this.getRemoteIdToIdMap(n);if(typeof i!="number")return i;var s=a.get(i);return s||-1},t.getRemoteIds=function(n,i){var o=this,a=this.getRemoteIdToIdMap(n);return i.map(function(s){return o.getRemoteId(n,s,a)})},t.reset=function(n){if(!n){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(n),this.iframeRemoteIdToIdMap.delete(n)},t.getIdToRemoteIdMap=function(n){var i=this.iframeIdToRemoteIdMap.get(n);return i||(i=new Map,this.iframeIdToRemoteIdMap.set(n,i)),i},t.getRemoteIdToIdMap=function(n){var i=this.iframeRemoteIdToIdMap.get(n);return i||(i=new Map,this.iframeRemoteIdToIdMap.set(n,i)),i},e}(),lXe=function(){function e(r){It(this,"iframes",new WeakMap),It(this,"crossOriginIframeMap",new WeakMap),It(this,"crossOriginIframeMirror",new eG(Uae)),It(this,"crossOriginIframeStyleMirror"),It(this,"crossOriginIframeRootIdMap",new WeakMap),It(this,"mirror"),It(this,"mutationCb"),It(this,"wrappedEmit"),It(this,"loadListener"),It(this,"stylesheetManager"),It(this,"recordCrossOriginIframes"),this.mutationCb=r.mutationCb,this.wrappedEmit=r.wrappedEmit,this.stylesheetManager=r.stylesheetManager,this.recordCrossOriginIframes=r.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new eG(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=r.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}var t=e.prototype;return t.addIframe=function(n){this.iframes.set(n,!0),n.contentWindow&&this.crossOriginIframeMap.set(n.contentWindow,n)},t.addLoadListener=function(n){this.loadListener=n},t.attachIframe=function(n,i){var o,a;this.mutationCb({adds:[{parentId:this.mirror.getId(n),nextId:null,node:i}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((o=n.contentWindow)==null||o.addEventListener("message",this.handleMessage.bind(this))),(a=this.loadListener)==null||a.call(this,n),n.contentDocument&&n.contentDocument.adoptedStyleSheets&&n.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(n.contentDocument.adoptedStyleSheets,this.mirror.getId(n.contentDocument))},t.handleMessage=function(n){var i=n;if(!(i.data.type!=="rrweb"||i.origin!==i.data.origin)){var o=n.source;if(o){var a=this.crossOriginIframeMap.get(n.source);if(a){var s=this.transformCrossOriginEvent(a,i.data.event);s&&this.wrappedEmit(s,i.data.isCheckout)}}}},t.transformCrossOriginEvent=function(n,i){var o=this,a;switch(i.type){case xr.FullSnapshot:{this.crossOriginIframeMirror.reset(n),this.crossOriginIframeStyleMirror.reset(n),this.replaceIdOnNode(i.data.node,n);var s=i.data.node.id;return this.crossOriginIframeRootIdMap.set(n,s),this.patchRootIdOnNode(i.data.node,s),{timestamp:i.timestamp,type:xr.IncrementalSnapshot,data:{source:or.Mutation,adds:[{parentId:this.mirror.getId(n),nextId:null,node:i.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case xr.Meta:case xr.Load:case xr.DomContentLoaded:return!1;case xr.Plugin:return i;case xr.Custom:return this.replaceIds(i.data.payload,n,["id","parentId","previousId","nextId"]),i;case xr.IncrementalSnapshot:switch(i.data.source){case or.Mutation:return i.data.adds.forEach(function(l){o.replaceIds(l,n,["parentId","nextId","previousId"]),o.replaceIdOnNode(l.node,n);var c=o.crossOriginIframeRootIdMap.get(n);c&&o.patchRootIdOnNode(l.node,c)}),i.data.removes.forEach(function(l){o.replaceIds(l,n,["parentId","id"])}),i.data.attributes.forEach(function(l){o.replaceIds(l,n,["id"])}),i.data.texts.forEach(function(l){o.replaceIds(l,n,["id"])}),i;case or.Drag:case or.TouchMove:case or.MouseMove:return i.data.positions.forEach(function(l){o.replaceIds(l,n,["id"])}),i;case or.ViewportResize:return!1;case or.MediaInteraction:case or.MouseInteraction:case or.Scroll:case or.CanvasMutation:case or.Input:return this.replaceIds(i.data,n,["id"]),i;case or.StyleSheetRule:case or.StyleDeclaration:return this.replaceIds(i.data,n,["id"]),this.replaceStyleIds(i.data,n,["styleId"]),i;case or.Font:return i;case or.Selection:return i.data.ranges.forEach(function(l){o.replaceIds(l,n,["start","end"])}),i;case or.AdoptedStyleSheet:return this.replaceIds(i.data,n,["id"]),this.replaceStyleIds(i.data,n,["styleIds"]),(a=i.data.styles)==null||a.forEach(function(l){o.replaceStyleIds(l,n,["styleId"])}),i}}return!1},t.replace=function(n,i,o,a){for(var s=Ft(a),l;!(l=s()).done;){var c=l.value;!Array.isArray(i[c])&&typeof i[c]!="number"||(Array.isArray(i[c])?i[c]=n.getIds(o,i[c]):i[c]=n.getId(o,i[c]))}return i},t.replaceIds=function(n,i,o){return this.replace(this.crossOriginIframeMirror,n,i,o)},t.replaceStyleIds=function(n,i,o){return this.replace(this.crossOriginIframeStyleMirror,n,i,o)},t.replaceIdOnNode=function(n,i){var o=this;this.replaceIds(n,i,["id","rootId"]),"childNodes"in n&&n.childNodes.forEac
vendor: 7,609 bytes, line 533
533h(function(a){o.replaceIdOnNode(a,i)})},t.patchRootIdOnNode=function(n,i){var o=this;n.type!==mle.Document&&!n.rootId&&(n.rootId=i),"childNodes"in n&&n.childNodes.forEach(function(a){o.patchRootIdOnNode(a,i)})},e}(),cXe=function(){function e(r){It(this,"shadowDoms",new WeakSet),It(this,"mutationCb"),It(this,"scrollCb"),It(this,"bypassOptions"),It(this,"mirror"),It(this,"restoreHandlers",[]),this.mutationCb=r.mutationCb,this.scrollCb=r.scrollCb,this.bypassOptions=r.bypassOptions,this.mirror=r.mirror,this.init()}var t=e.prototype;return t.init=function(){this.reset(),this.patchAttachShadow(Element,document)},t.addShadowRoot=function(n,i){var o=this;if(wm(n)&&!this.shadowDoms.has(n)){this.shadowDoms.add(n);var a=Sle(Mr({},this.bypassOptions,{doc:i,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),n);this.restoreHandlers.push(function(){return a.disconnect()}),this.restoreHandlers.push(Cle(Mr({},this.bypassOptions,{scrollCb:this.scrollCb,doc:n,mirror:this.mirror}))),setTimeout(function(){n.adoptedStyleSheets&&n.adoptedStyleSheets.length>0&&o.bypassOptions.stylesheetManager.adoptStyleSheets(n.adoptedStyleSheets,o.mirror.getId(_r.host(n))),o.restoreHandlers.push(ble({mirror:o.mirror,stylesheetManager:o.bypassOptions.stylesheetManager},n))},0)}},t.observeAttachShadow=function(n){!n.contentWindow||!n.contentDocument||this.patchAttachShadow(n.contentWindow.Element,n.contentDocument)},t.patchAttachShadow=function(n,i){var o=this;this.restoreHandlers.push(mh(n.prototype,"attachShadow",function(a){return function(s){var l=a.call(this,s),c=_r.shadowRoot(this);return c&&gle(this)&&o.addShadowRoot(c,i),l}}))},t.reset=function(){this.restoreHandlers.forEach(function(n){try{n()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet},e}(),Wf="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",uXe=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var z1=0;z1<Wf.length;z1++)uXe[Wf.charCodeAt(z1)]=z1;var dXe=function(t){var r=new Uint8Array(t),n,i=r.length,o="";for(n=0;n<i;n+=3)o+=Wf[r[n]>>2],o+=Wf[(r[n]&3)<<4|r[n+1]>>4],o+=Wf[(r[n+1]&15)<<2|r[n+2]>>6],o+=Wf[r[n+2]&63];return i%3===2?o=o.substring(0,o.length-1)+"=":i%3===1&&(o=o.substring(0,o.length-2)+"=="),o},tG=new Map;function fXe(e,t){var r=tG.get(e);return r||(r=new Map,tG.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}var wle=function(e,t,r){if(!(!e||!(Ele(e,t)||(typeof e>"u"?"undefined":Pr(e))==="object"))){var n=e.constructor.name,i=fXe(r,n),o=i.indexOf(e);return o===-1&&(o=i.length,i.push(e)),o}};function $C(e,t,r){if(hr(e,Array))return e.map(function(v){return $C(v,t,r)});if(e===null)return e;if(hr(e,Float32Array)||hr(e,Float64Array)||hr(e,Int32Array)||hr(e,Uint32Array)||hr(e,Uint8Array)||hr(e,Uint16Array)||hr(e,Int16Array)||hr(e,Int8Array)||hr(e,Uint8ClampedArray)){var n=e.constructor.name;return{rr_type:n,args:[Object.values(e)]}}else if(hr(e,ArrayBuffer)){var i=e.constructor.name,o=dXe(e);return{rr_type:i,base64:o}}else if(hr(e,DataView)){var a=e.constructor.name;return{rr_type:a,args:[$C(e.buffer,t,r),e.byteOffset,e.byteLength]}}else if(hr(e,HTMLImageElement)){var s=e.constructor.name,l=e.src;return{rr_type:s,src:l}}else if(hr(e,HTMLCanvasElement)){var c="HTMLImageElement",d=e.toDataURL();return{rr_type:c,src:d}}else if(hr(e,ImageData)){var u=e.constructor.name;return{rr_type:u,args:[$C(e.data,t,r),e.width,e.height]}}else if(Ele(e,t)||(typeof e>"u"?"undefined":Pr(e))==="object"){var f=e.constructor.name,h=wle(e,t,r);return{rr_type:f,index:h}}return e}var _le=function(e,t,r){return e.map(function(n){return $C(n,t,r)})},Ele=function(e,t){var r=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"],n=r.filter(function(i){return typeof t[i]=="function"});return!!n.find(function(i){return hr(e,t[i])})};function pXe(e,t,r,n){for(var i=function(){var c=l.value;try{if(typeof t.CanvasRenderingContext2D.prototype[c]!="function")return"continue";var d=mh(t.CanvasRenderingContext2D.prototype,c,function(f){return function(){for(var h=this,v=arguments.length,y=new Array(v),g=0;g<v;g++)y[g]=arguments[g];return no(this.canvas,r,n,!0)||setTimeout(function(){var m=_le(y,t,h);e(h.canvas,{type:Lp["2D"],property:c,args:m})},0),f.apply(this,y)}});o.push(d)}catch{var u=GR(t.CanvasRenderingContext2D.prototype,c,{set:function(v){e(this.canvas,{type:Lp["2D"],property:c,args:[v],setter:!0})}});o.push(u)}},o=[],a=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype),s=Ft(a),l;!(l=s()).done;)i();return function(){o.forEach(function(c){return c()})}}function hXe(e){return e==="experimental-webgl"?"webgl":e}function rG(e,t,r,n){var i=[];try{var o=mh(e.HTMLCanvasElement.prototype,"getContext",function(a){return function(s){for(var l=arguments.length,c=new Array(l>1?l-1:0),d=1;d<l;d++)c[d-1]=arguments[d];if(!no(this,t,r,!0)){var u=hXe(s);if("__context"in this||(this.__context=u),n&&["webgl","webgl2"].includes(u))if(c[0]&&Pr(c[0])==="object"){var f=c[0];f.preserveDrawingBuffer||(f.preserveDrawingBuffer=!0)}else c.splice(0,1,{preserveDrawingBuffer:!0})}return a.apply(this,[].concat([s],c))}});i.push(o)}catch{}return function(){i.forEach(function(a){return a()})}}function nG(e,t,r,n,i,o){for(var a=function(){var u=d.value;if(["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(u))return"continue";try{if(typeof e[u]!="function")return"continue";var f=mh(e,u,function(v){return function(){for(var y=arguments.length,g=new Array(y),m=0;m<y;m++)g[m]=arguments[m];var S=v.apply(this,g);if(wle(S,o,this),"tagName"in this.canvas&&!no(this.canvas,n,i,!0)){var C=_le(g,o,this),b={type:t,property:u,args:C};r(this.canvas,b)}return S}});s.push(f)}catch{var h=GR(e,u,{set:function(g){r(this.canvas,{type:t,property:u,args:[g],setter:!0})}});s.push(h)}},s=[],l=Object.getOwnPropertyNames(e),c=Ft(l),d;!(d=c()).done;)a();return s}function vXe(e,t,r,n){var i,o=[];if((i=o).push.apply(i,[].concat(nG(t.WebGLRenderingContext.prototype,Lp.WebGL,e,r,n,t))),typeof t.WebGL2RenderingContext<"u"){var a;(a=o).push.apply(a,[].concat(nG(t.WebGL2RenderingContext.prototype,Lp.WebGL2,e,r,n,t)))}return function(){o.forEach(function(s){return s()})}}var Rle="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3B
533hcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",gXe=function(e){return Uint8Array.from(atob(e),function(t){return t.charCodeAt(0)})},iG=typeof window<"u"&&window.Blob&&new Blob([gXe(Rle)],{type:"text/javascript;charset=utf-8"});function mXe(e){var t;try{if(t=iG&&(window.URL||window.webkitURL).createObjectURL(iG),!t)throw"";var r=new Worker(t,{name:e==null?void 0:e.name});return r.addEventListener("error",function(){(window.URL||window.webkitURL).revokeObjectURL(t)}),r}catch{return new Worker("data:text/javascript;base64,"+Rle,{name:e==null?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}var yXe=function(){function e(r){var n=this;It(this,"pendingCanvasMutations",new Map),It(this,"rafStamps",{latestId:0,invokeId:null}),It(this,"mirror"),It(this,"mutationCb"),It(this,"resetObservers"),It(this,"frozen",!1),It(this,"locked",!1),It(this,"processMutation",function(u,f){var h=n.rafStamps.invokeId&&n.rafStamps.latestId!==n.rafStamps.invokeId;(h||!n.rafStamps.invokeId)&&(n.rafStamps.invokeId=n.rafStamps.latestId),n.pendingCanvasMutations.has(u)||n.pendingCanvasMutations.set(u,[]),n.pendingCanvasMutations.get(u).push(f)});var i=r.sampling,o=i===void 0?"all":i,a=r.win,s=r.blockClass,l=r.blockSelector,c=r.recordCanvas,d=r.dataURLOptions;this.mutationCb=r.mutationCb,this.mirror=r.mirror,c&&o==="all"&&this.initCanvasMutationObserver(a,s,l),c&&typeof o=="number"&&this.initCanvasFPSObserver(o,a,s,l,{dataURLOptions:d})}var t=e.prototype;return t.reset=function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()},t.freeze=function(){this.frozen=!0},t.unfreeze=function(){this.frozen=!1},t.lock=function(){this.locked=!0},t.unlock=function(){this.locked=!1},t.initCanvasFPSObserver=function(n,i,o,a,s){var l=this,c=rG(i,o,a,!0),d=new Map,u=new mXe;u.onmessage=function(m){var S=m.data.id;if(d.set(S,!1),"base64"in m.data){var C=m.data,b=C.base64,w=C.type,E=C.width,_=C.height;l.mutationCb({id:S,type:Lp["2D"],commands:[{property:"clearRect",args:[0,0,E,_]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:b}],type:w}]},0,0]}]})}};var f=1e3/n,h=0,v,y=function(){var m=[];return i.document.querySelectorAll("canvas").forEach(function(S){no(S,o,a,!0)||m.push(S)}),m},g=function(m){if(h&&m-h<f){v=requestAnimationFrame(g);return}h=m;var S=l;
vendor: 8,518 bytes, line 533
533y().forEach(a6(function(C){var b,w,E,_;return Ty(this,function(R){switch(R.label){case 0:return w=S.mirror.getId(C),d.get(w)?[2]:C.width===0||C.height===0?[2]:(d.set(w,!0),["webgl","webgl2"].includes(C.__context)&&(E=C.getContext(C.__context),((b=E==null?void 0:E.getContextAttributes())==null?void 0:b.preserveDrawingBuffer)===!1&&E.clear(E.COLOR_BUFFER_BIT)),[4,createImageBitmap(C)]);case 1:return _=R.sent(),u.postMessage({id:w,bitmap:_,width:C.width,height:C.height,dataURLOptions:s.dataURLOptions},[_]),[2]}})})),v=requestAnimationFrame(g)};v=requestAnimationFrame(g),this.resetObservers=function(){c(),cancelAnimationFrame(v)}},t.initCanvasMutationObserver=function(n,i,o){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var a=rG(n,i,o,!1),s=pXe(this.processMutation.bind(this),n,i,o),l=vXe(this.processMutation.bind(this),n,i,o);this.resetObservers=function(){a(),s(),l()}},t.startPendingCanvasMutationFlusher=function(){var n=this;requestAnimationFrame(function(){return n.flushPendingCanvasMutations()})},t.startRAFTimestamping=function(){var n=this,i=function(o){n.rafStamps.latestId=o,requestAnimationFrame(i)};requestAnimationFrame(i)},t.flushPendingCanvasMutations=function(){var n=this;this.pendingCanvasMutations.forEach(function(i,o){var a=n.mirror.getId(o);n.flushPendingCanvasMutationFor(o,a)}),requestAnimationFrame(function(){return n.flushPendingCanvasMutations()})},t.flushPendingCanvasMutationFor=function(n,i){if(!(this.frozen||this.locked)){var o=this.pendingCanvasMutations.get(n);if(!(!o||i===-1)){var a=o.map(function(l){l.type;var c=xy(l,["type"]);return c}),s=o[0].type;this.mutationCb({id:i,type:s,commands:a}),this.pendingCanvasMutations.delete(n)}}},e}(),SXe=function(){function e(r){It(this,"trackedLinkElements",new WeakSet),It(this,"mutationCb"),It(this,"adoptedStyleSheetCb"),It(this,"styleMirror",new zYe),this.mutationCb=r.mutationCb,this.adoptedStyleSheetCb=r.adoptedStyleSheetCb}var t=e.prototype;return t.attachLinkElement=function(n,i){"_cssText"in i.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:i.id,attributes:i.attributes}]}),this.trackLinkElement(n)},t.trackLinkElement=function(n){this.trackedLinkElements.has(n)||(this.trackedLinkElements.add(n),this.trackStylesheetInLinkElement(n))},t.adoptStyleSheets=function(n,i){var o,a=function(){var u=d.value,f=void 0;o.styleMirror.has(u)?f=o.styleMirror.getId(u):(f=o.styleMirror.add(u),l.push({styleId:f,rules:Array.from(u.rules||CSSRule,function(h,v){return{rule:Bae(h,u.href),index:v}})})),s.styleIds.push(f)};if(n.length!==0){for(var s={id:i,styleIds:[]},l=[],c=Ft(n),d;!(d=c()).done;)o=this,a();l.length>0&&(s.styles=l),this.adoptedStyleSheetCb(s)}},t.reset=function(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet},t.trackStylesheetInLinkElement=function(n){},e}(),CXe=function(){function e(){It(this,"nodeMap",new WeakMap),It(this,"active",!1)}var t=e.prototype;return t.inOtherBuffer=function(n,i){var o=this.nodeMap.get(n);return o&&Array.from(o).some(function(a){return a!==i})},t.add=function(n,i){var o=this;this.active||(this.active=!0,requestAnimationFrame(function(){o.nodeMap=new WeakMap,o.active=!1})),this.nodeMap.set(n,(this.nodeMap.get(n)||new Set).add(i))},t.destroy=function(){},e}(),In,kC,YT,pw=!1;try{if(Array.from([1],function(e){return e*2})[0]!==2){var XT=document.createElement("iframe");document.body.appendChild(XT),Array.from=((sq=XT.contentWindow)==null?void 0:sq.Array.from)||Array.from,document.body.removeChild(XT)}}catch{}var Ha=wWe();function su(e){e===void 0&&(e={});var t=e.emit,r=e.checkoutEveryNms,n=e.checkoutEveryNth,i=e.blockClass,o=i===void 0?"rr-block":i,a=e.blockSelector,s=a===void 0?null:a,l=e.ignoreClass,c=l===void 0?"rr-ignore":l,d=e.ignoreSelector,u=d===void 0?null:d,f=e.maskTextClass,h=f===void 0?"rr-mask":f,v=e.maskTextSelector,y=v===void 0?null:v,g=e.inlineStylesheet,m=g===void 0?!0:g,S=e.maskAllInputs,C=e.maskInputOptions,b=e.slimDOMOptions,w=e.maskInputFn,E=e.maskTextFn,_=e.hooks,R=e.packFn,P=e.sampling,I=P===void 0?{}:P,O=e.dataURLOptions,A=O===void 0?{}:O,x=e.mousemoveWait,T=e.recordDOM,D=T===void 0?!0:T,k=e.recordCanvas,j=k===void 0?!1:k,N=e.recordCrossOriginIframes,L=N===void 0?!1:N,M=e.recordAfter,$=M===void 0?e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load":M,F=e.userTriggeredOnInput,z=F===void 0?!1:F,H=e.collectFonts,U=H===void 0?!1:H,V=e.inlineImages,W=V===void 0?!1:V,K=e.plugins,Z=e.keepIframeSrcFn,q=Z===void 0?function(){return!1}:Z,Y=e.ignoreCSSAttributes,G=Y===void 0?new Set([]):Y,re=e.errorHandler;GYe(re);var ee=L?window.parent===window:!0,ne=!1;if(!ee)try{window.parent.document&&(ne=!1)}catch{ne=!0}if(ee&&!t)throw new Error("emit function is required");if(!ee&&!ne)return function(){};x!==void 0&&I.mousemove===void 0&&(I.mousemove=x),Ha.reset();var te=S===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:C!==void 0?C:{password:!0},pe=b===!0||b==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:b==="all",headMetaDescKeywords:b==="all",headTitleMutations:b==="all"}:b||{};FYe();var le,ye=0,Se=function(Re){for(var me=Ft(K||[]),ce;!(ce=me()).done;){var Ae=ce.value;Ae.eventProcessor&&(Re=Ae.eventProcessor(Re))}return R&&!ne&&(Re=R(Re)),Re};In=function(Re,me){var ce,Ae=Re;if(Ae.timestamp=dw(),(ce=Yu[0])!=null&&ce.isFrozen()&&Ae.type!==xr.FullSnapshot&&!(Ae.type===xr.IncrementalSnapshot&&Ae.data.source===or.Mutation)&&Yu.forEach(function(nt){return nt.unfreeze()}),ee)t==null||t(Se(Ae),me);else if(ne){var We={type:"rrweb",event:Se(Ae),origin:window.location.origin,isCheckout:me};window.parent.postMessage(We,"*")}if(Ae.type===xr.FullSnapshot)le=Ae,ye=0;else if(Ae.type===xr.IncrementalSnapshot){if(Ae.data.source===or.Mutation&&Ae.data.isAttachIframe)return;ye++;var lt=n&&ye>=n,yt=r&&Ae.timestamp-le.timestamp>r;(lt||yt)&&kC(!0)}};for(var _e=function(Re){In({type:xr.IncrementalSnapshot,data:Mr({source:or.Mutation},Re)})},De=function(Re){return In({type:xr.IncrementalSnapshot,data:Mr({source:or.Scroll},Re)})},be=function(Re){return In({type:xr.IncrementalSnapshot,data:Mr({source:or.CanvasMutation},Re)})},se=function(Re){return In({type:xr.IncrementalSnapshot,data:Mr({source:or.AdoptedStyleSheet},Re)})},Pe=new SXe({mutationCb:_e,adoptedStyleSheetCb:se}),Te=new lXe({mirror:Ha,mutationCb:_e,stylesheetManager:Pe,recordCrossOriginIframes:L,wrappedEmit:In}),ze=Ft(K||[]),ke;!(ke=ze()).done;){var Me=ke.value;Me.getMirror&&Me.getMirror({nodeMirror:Ha,crossOriginIframeMirror:Te.crossOriginIframeMirror,crossOriginIframeStyleMirror:Te.crossOriginIframeStyleMirror})}var qe=new CXe;YT=new yXe({recordCanvas:j,mutationCb:be,win:window,blockClass:o,blockSelector:s,mirror:Ha,sampling:I.canvas,dataURLOptions:A});var Le=new cXe({mutationCb:_e,scrollCb:De,bypassOptions:{blockClass:o,blockSelector:s,maskTextClass:h,maskTextSelector:y,inlineStylesheet:m,maskInputOptions:te,dataURLOptions:A,maskTextFn:E,maskInputFn:w,recordCanvas:j,inlineImages:W,sampling:I,slimDOMOptions:pe,iframeManager:Te,stylesheetManager:Pe,canvasManager:YT,keepIframeSrcFn:q,processedNodeManager:qe},mirror:Ha});kC=function(Re){if(Re===void 0&&(Re=!1),!!D){In({type:xr.Meta,data:{href:window.location.href,width:ule(),height:cle()}},Re),Pe.reset(),Le.init(),Yu.forEach(function(ce){return ce.lock()});var me=qWe(document,{mirror:Ha,blockClass:o,blockSelector:s,maskTextClass:h,maskTextSelector:y,inlineStylesheet:m,maskAllInputs:te,maskTextFn:E,maskInputFn:w,slimDOM:pe,dataURLOptions:A,recordCanvas:j,inlineImages:W,onSerialize:function(ce){ple(ce,Ha)&&Te.addIframe(ce),hle(ce,Ha)&&Pe.trackLinkElement(ce),Vk(ce)&&Le.addShadowRoot(_r.shadowRoot(ce),document)},onIframeLoad:function(ce,Ae){Te.attachIframe(ce,Ae),Le.observeAttachShadow(ce)},onStylesheetLoad:function(ce,Ae){Pe.attachLinkElement(ce,Ae)},keepIframeSrcFn:q});me&&(In({type:xr.FullSnapshot,data:{node:me,initialOffset:lle(window)}},Re),Yu.forEach(function(ce){return ce.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Pe.adoptStyleSheets(document.adoptedStyleSheets,Ha.getId(document)))}};try{var xe=[],je=function(Re){var me;return Ar(sXe)({mutationCb:_e,mousemoveCb:function(ce,Ae){return In({type:xr.IncrementalSnapshot,data:{source:Ae,positions:ce}})},mouseInteractionCb:function(ce){return In({type:xr.IncrementalSnapshot,data:Mr({source:or.MouseInteraction},ce)}
vendor: 47,489 bytes, lines 533-539
533)},scrollCb:De,viewportResizeCb:function(ce){return In({type:xr.IncrementalSnapshot,data:Mr({source:or.ViewportResize},ce)})},inputCb:function(ce){return In({type:xr.IncrementalSnapshot,data:Mr({source:or.Input},ce)})},mediaInteractionCb:function(ce){return In({type:xr.IncrementalSnapshot,data:Mr({source:or.MediaInteraction},ce)})},styleSheetRuleCb:function(ce){return In({type:xr.IncrementalSnapshot,data:Mr({source:or.StyleSheetRule},ce)})},styleDeclarationCb:function(ce){return In({type:xr.IncrementalSnapshot,data:Mr({source:or.StyleDeclaration},ce)})},canvasMutationCb:be,fontCb:function(ce){return In({type:xr.IncrementalSnapshot,data:Mr({source:or.Font},ce)})},selectionCb:function(ce){In({type:xr.IncrementalSnapshot,data:Mr({source:or.Selection},ce)})},customElementCb:function(ce){In({type:xr.IncrementalSnapshot,data:Mr({source:or.CustomElement},ce)})},blockClass:o,ignoreClass:c,ignoreSelector:u,maskTextClass:h,maskTextSelector:y,maskInputOptions:te,inlineStylesheet:m,sampling:I,recordDOM:D,recordCanvas:j,inlineImages:W,userTriggeredOnInput:z,collectFonts:U,doc:Re,maskInputFn:w,maskTextFn:E,keepIframeSrcFn:q,blockSelector:s,slimDOMOptions:pe,dataURLOptions:A,mirror:Ha,iframeManager:Te,stylesheetManager:Pe,shadowDomManager:Le,processedNodeManager:qe,canvasManager:YT,ignoreCSSAttributes:G,plugins:((me=K==null?void 0:K.filter(function(ce){return ce.observer}))==null?void 0:me.map(function(ce){return{observer:ce.observer,options:ce.options,callback:function(Ae){return In({type:xr.Plugin,data:{plugin:ce.name,payload:Ae}})}}}))||[]},_)};Te.addLoadListener(function(Re){try{xe.push(je(Re.contentDocument))}catch{}});var Ee=function(){kC(),xe.push(je(document)),pw=!0};return document.readyState==="interactive"||document.readyState==="complete"?Ee():(xe.push(ro("DOMContentLoaded",function(){In({type:xr.DomContentLoaded,data:{}}),$==="DOMContentLoaded"&&Ee()})),xe.push(ro("load",function(){In({type:xr.Load,data:{}}),$==="load"&&Ee()},window))),function(){xe.forEach(function(Re){return Re()}),qe.destroy(),pw=!1,KYe()}}catch{}}su.addCustomEvent=function(e,t){if(!pw)throw new Error("please add custom event after start recording");In({type:xr.Custom,data:{tag:e,payload:t}})};su.freezePage=function(){Yu.forEach(function(e){return e.freeze()})};su.takeFullSnapshot=function(e){if(!pw)throw new Error("please take full snapshot after start recording");kC(e)};su.mirror=Ha;var oG;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(oG||(oG={}));su.addCustomEvent;su.freezePage;su.takeFullSnapshot;var aG=$t.setImmediate,Dc,Wk,qk,Ple=Object.prototype.toString,bXe=typeof aG<"u"?function(t){return aG(t)}:setTimeout;try{Object.defineProperty({},"x",{}),Dc=function(t,r,n,i){return Object.defineProperty(t,r,{value:n,writable:!0,configurable:i!==!1})}}catch{Dc=function(r,n,i){return r[n]=i,r}}qk=function(){var t,r,n;function i(o,a){this.fn=o,this.self=a,this.next=void 0}return{add:function(a,s){n=new i(a,s),r?r.next=n:t=n,r=n,n=void 0},drain:function(){var a=t;for(t=r=Wk=void 0;a;)a.fn.call(a.self),a=a.next}}}();function hw(e,t){qk.add(e,t),Wk||(Wk=bXe(qk.drain))}function Ile(e){var t,r=typeof e;return e!==null&&(r==="object"||r==="function")&&(t=e.then),typeof t=="function"?t:!1}function M6(){for(var e=0;e<this.chain.length;e++)wXe(this,this.state===1?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function wXe(e,t,r){var n,i;try{t===!1?r.reject(e.msg):(t===!0?n=e.msg:n=t.call(void 0,e.msg),n===r.promise?r.reject(TypeError("Promise-chain cycle")):(i=Ile(n))?i.call(n,r.resolve,r.reject):r.resolve(n))}catch(o){r.reject(o)}}function xle(e){var t,r=this;if(!r.triggered){r.triggered=!0,r.def&&(r=r.def);try{(t=Ile(e))?hw(function(){var n=new sG(r);try{t.call(e,function(){xle.apply(n,arguments)},function(){Em.apply(n,arguments)})}catch(i){Em.call(n,i)}}):(r.msg=e,r.state=1,r.chain.length>0&&hw(M6,r))}catch(n){Em.call(new sG(r),n)}}}function Em(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&hw(M6,t))}function Ole(e,t,r,n){for(var i=0;i<t.length;i++)(function(a){e.resolve(t[a]).then(function(l){r(a,l)},n)})(i)}function sG(e){this.def=e,this.triggered=!1}function _Xe(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function lu(e){if(typeof e!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var t=new _Xe(this);this.then=function(n,i){var o={success:typeof n=="function"?n:!0,failure:typeof i=="function"?i:!1};return o.promise=new this.constructor(function(s,l){if(typeof s!="function"||typeof l!="function")throw TypeError("Not a function");o.resolve=s,o.reject=l}),t.chain.push(o),t.state!==0&&hw(M6,t),o.promise},this.catch=function(n){return this.then(void 0,n)};try{e.call(void 0,function(n){xle.call(t,n)},function(n){Em.call(t,n)})}catch(r){Em.call(t,r)}}var Tle=Dc({},"constructor",lu,!1);lu.prototype=Tle;Dc(Tle,"__NPO__",0,!1);Dc(lu,"resolve",function(t){var r=this;return t&&typeof t=="object"&&t.__NPO__===1?t:new r(function(i,o){if(typeof i!="function"||typeof o!="function")throw TypeError("Not a function");i(t)})});Dc(lu,"reject",function(t){return new this(function(n,i){if(typeof n!="function"||typeof i!="function")throw TypeError("Not a function");i(t)})});Dc(lu,"all",function(t){var r=this;return Ple.call(t)!=="[object Array]"?r.reject(TypeError("Not an array")):t.length===0?r.resolve([]):new r(function(i,o){if(typeof i!="function"||typeof o!="function")throw TypeError("Not a function");var a=t.length,s=Array(a),l=0;Ole(r,t,function(d,u){s[d]=u,++l===a&&i(s)},o)})});Dc(lu,"race",function(t){var r=this;return Ple.call(t)!=="[object Array]"?r.reject(TypeError("Not an array")):new r(function(i,o){if(typeof i!="function"||typeof o!="function")throw TypeError("Not a function");Ole(r,t,function(s,l){i(l)},o)})});var Vr;typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1?Vr=Promise:Vr=lu;var os={DEBUG:!1,LIB_VERSION:"2.68.0"},Rm=24*60*60*1e3,QT=8*1e3,KR=Array.prototype,EXe=Function.prototype,Ale=Object.prototype,pc=KR.slice,Z0=Ale.toString,YR=Ale.hasOwnProperty,Bn=$t.console,hc=$t.navigator,Lr=$t.document,B1=$t.opera,lG=$t.screen,il=hc.userAgent,JT=EXe.bind,cG=KR.forEach,uG=KR.indexOf,dG=KR.map,RXe=Array.isArray,Gk={},X={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},Fr={log:function(){if(os.DEBUG&&!X.isUndefined(Bn)&&Bn)try{Bn.log.apply(Bn,arguments)}catch{X.each(arguments,function(t){Bn.log(t)})}},warn:function(){if(os.DEBUG&&!X.isUndefined(Bn)&&Bn){var e=["Mixpanel warning:"].concat(X.toArray(arguments));try{Bn.warn.apply(Bn,e)}catch{X.each(e,function(r){Bn.warn(r)})}}},error:function(){if(os.DEBUG&&!X.isUndefined(Bn)&&Bn){var e=["Mixpanel error:"].concat(X.toArray(arguments));try{Bn.error.apply(Bn,e)}catch{X.each(e,function(r){Bn.error(r)})}}},critical:function(){if(!X.isUndefined(Bn)&&Bn){var e=["Mixpanel error:"].concat(X.toArray(arguments));try{Bn.error.apply(Bn,e)}catch{X.each(e,function(r){Bn.error(r)})}}}},ZT=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(Fr,arguments)}},Gd=function(e){return{log:ZT(Fr.log,e),error:ZT(Fr.error,e),critical:ZT(Fr.critical,e)}},$6=function(e){return function(){try{return e.apply(this,arguments)}catch(t){Fr.critical("Implementation error. Please turn on debug and contact [email protected]."),os.DEBUG&&Fr.critical(t)}}},Mle=function(e){var t=e.prototype;for(var r in t)typeof t[r]=="function"&&(t[r]=$6(t[r]))};X.bind=function(e,t){var r,n;if(JT&&e.bind===JT)return JT.apply(e,pc.call(arguments,1));if(!X.isFunction(e))throw new TypeError;return r=pc.call(arguments,2),n=function(){if(!(this instanceof n))return e.apply(t,r.concat(pc.call(arguments)));var i={};i.prototype=e.prototype;var o=new i;i.prototype=null;var a=e.apply(o,r.concat(pc.call(arguments)));return Object(a)===a?a:o},n};X.each=function(e,t,r){if(e!=null){if(cG&&e.forEach===cG)e.forEach(t,r);else if(e.length===+e.length){for(var n=0,i=e.length;n<i;n++)if(n in e&&t.call(r,e[n],n,e)===Gk)return}else for(var o in e)if(YR.call(e,o)&&t.call(r,e[o],o,e)===Gk)return}};X.extend=function(e){return X.each(pc.call(arguments,1),function(t){for(var r in t)t[r]!==void 0&&(e[r]=t[r])}),e};X.isArray=RXe||function(e){return Z0.call(e)==="[object Array]"};X.isFunction=function(e){try{return/^\s*\bfunction\b/.test(e)}catch{return!1}};X.isArguments=function(e){return!!(e&&YR.call(e,"callee"))};X.toArray=function(e){return e?e.toArray?e.toArray():X.isArray(e)||X.isArguments(e)?pc.call(e):X.values(e):[]};X.map=function(e,t,r){if(dG&&e.map===dG)return e.map(t,r);var n=[];return X.each(e,function(i){n.push(t.call(r,i))}),n};X.keys=function(e){var t=[];return e===null||X.each(e,function(r,n){t[t.length]=n}),t};X.values=function(e){var t=[];return e===null||X.each(e,function(r){t[t.length]=r}),t};X.include=function(e,t){var r=!1;return e===null?r:uG&&e.indexOf===uG?e.indexOf(t)!=-1:(X.each(e,function(n){if(r||(r=n===t))return Gk}),r)};X.includes=function(e,t){return e.indexOf(t)!==-1};X.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e};X.isObject=function(e){return e===Object(e)&&!X.isArray(e)};X.isEmptyObject=function(e){if(X.isObject(e)){for(var t in e)if(YR.call(e,t))return!1;return!0}return!1};X.isUndefined=function(e){return e===void 0};X.isString=function(e){return Z0.call(e)=="[object String]"};X.isDate=function(e){return Z0.call(e)=="[object Date]"};X.isNumber=function(e){return Z0.call(e)=="[object Number]"};X.isElement=function(e){return!!(e&&e.nodeType===1)};X.encodeDates=function(e){return X.each(e,function(t,r){X.isDate(t)?e[r]=X.formatDate(t):X.isObject(t)&&(e[r]=X.encodeDates(t))}),e};X.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()};X.formatDate=function(e){function t(r){return r<10?"0"+r:r}return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())};X.strip_empty_properties=function(e){var t={};return X.each(e,function(r,n){X.isString(r)&&r.length>0&&(t[n]=r)}),t};X.truncate=function(e,t){var r;return typeof e=="string"?r=e.slice(0,t):X.isArray(e)?(r=[],X.each(e,function(n){r.push(X.truncate(n,t))})):X.isObject(e)?(r={},X.each(e,function(n,i){r[i]=X.truncate(n,t)})):r=e,r};X.JSONEncode=function(){return function(e){var t=e,r=function(i){var o=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,a={"\b":"\\b","	":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return o.lastIndex=0,o.test(i)?'"'+i.replace(o,function(s){var l=a[s];return typeof l=="string"?l:"\\u"+("0000"+s.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+i+'"'},n=function(i,o){var a="",s="    ",l=0,c="",d="",u=0,f=a,h=[],v=o[i];switch(v&&typeof v=="object"&&typeof v.toJSON=="function"&&(v=v.toJSON(i)),typeof v){case"string":return r(v);case"number":return isFinite(v)?String(v):"null";case"boolean":case"null":return String(v);case"object":if(!v)return"null";if(a+=s,h=[],Z0.apply(v)==="[object Array]"){for(u=v.length,l=0;l<u;l+=1)h[l]=n(l,v)||"null";return d=h.length===0?"[]":a?`[
534`+a+h.join(`,
535`+a)+`
536`+f+"]":"["+h.join(",")+"]",a=f,d}for(c in v)YR.call(v,c)&&(d=n(c,v),d&&h.push(r(c)+(a?": ":":")+d));return d=h.length===0?"{}":a?"{"+h.join(",")+f+"}":"{"+h.join(",")+"}",a=f,d}};return n("",{"":t})}}();X.JSONDecode=function(){var e,t,r={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
537`,r:"\r",t:"	"},n,i=function(h){var v=new SyntaxError(h);throw v.at=e,v.text=n,v},o=function(h){return h&&h!==t&&i("Expected '"+h+"' instead of '"+t+"'"),t=n.charAt(e),e+=1,t},a=function(){var h,v="";for(t==="-"&&(v="-",o("-"));t>="0"&&t<="9";)v+=t,o();if(t===".")for(v+=".";o()&&t>="0"&&t<="9";)v+=t;if(t==="e"||t==="E")for(v+=t,o(),(t==="-"||t==="+")&&(v+=t,o());t>="0"&&t<="9";)v+=t,o();if(h=+v,!isFinite(h))i("Bad number");else return h},s=function(){var h,v,y="",g;if(t==='"')for(;o();){if(t==='"')return o(),y;if(t==="\\")if(o(),t==="u"){for(g=0,v=0;v<4&&(h=parseInt(o(),16),!!isFinite(h));v+=1)g=g*16+h;y+=String.fromCharCode(g)}else if(typeof r[t]=="string")y+=r[t];else break;else y+=t}i("Bad string")},l=function(){for(;t&&t<=" ";)o()},c=function(){switch(t){case"t":return o("t"),o("r"),o("u"),o("e"),!0;case"f":return o("f"),o("a"),o("l"),o("s"),o("e"),!1;case"n":return o("n"),o("u"),o("l"),o("l"),null}i('Unexpected "'+t+'"')},d,u=function(){var h=[];if(t==="["){if(o("["),l(),t==="]")return o("]"),h;for(;t;){if(h.push(d()),l(),t==="]")return o("]"),h;o(","),l()}}i("Bad array")},f=function(){var h,v={};if(t==="{"){if(o("{"),l(),t==="}")return o("}"),v;for(;t;){if(h=s(),l(),o(":"),Object.hasOwnProperty.call(v,h)&&i('Duplicate key "'+h+'"'),v[h]=d(),l(),t==="}")return o("}"),v;o(","),l()}}i("Bad object")};return d=function(){switch(l(),t){case"{":return f();case"[":return u();case'"':return s();case"-":return a();default:return t>="0"&&t<="9"?a():c()}},function(h){var v;return n=h,e=0,t=" ",v=d(),l(),t&&i("Syntax error"),v}}();X.base64Encode=function(e){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",r,n,i,o,a,s,l,c,d=0,u=0,f="",h=[];if(!e)return e;e=X.utf8Encode(e);do r=e.charCodeAt(d++),n=e.charCodeAt(d++),i=e.charCodeAt(d++),c=r<<16|n<<8|i,o=c>>18&63,a=c>>12&63,s=c>>6&63,l=c&63,h[u++]=t.charAt(o)+t.charAt(a)+t.charAt(s)+t.charAt(l);while(d<e.length);switch(f=h.join(""),e.length%3){case 1:f=f.slice(0,-2)+"==";break;case 2:f=f.slice(0,-1)+"=";break}return f};X.utf8Encode=function(e){e=(e+"").replace(/\r\n/g,`
538`).replace(/\r/g,`
539`);var t="",r,n,i=0,o;for(r=n=0,i=e.length,o=0;o<i;o++){var a=e.charCodeAt(o),s=null;a<128?n++:a>127&&a<2048?s=String.fromCharCode(a>>6|192,a&63|128):s=String.fromCharCode(a>>12|224,a>>6&63|128,a&63|128),s!==null&&(n>r&&(t+=e.substring(r,n)),t+=s,r=n=o+1)}return n>r&&(t+=e.substring(r,e.length)),t};X.UUID=function(){try{return $t.crypto.randomUUID()}catch{for(var e=new Array(36),t=0;t<36;t++)e[t]=Math.floor(Math.random()*16);return e[14]=4,e[19]=e[19]&=-5,e[19]=e[19]|=8,e[8]=e[13]=e[18]=e[23]="-",X.map(e,function(n){return n.toString(16)}).join("")}};var fG=["ahrefsbot","ahrefssiteaudit","amazonbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","facebookexternal","petalbot","pinterest","screaming frog","yahoo! slurp","yandex","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"];X.isBlockedUA=function(e){var t;for(e=e.toLowerCase(),t=0;t<fG.length;t++)if(e.indexOf(fG[t])!==-1)return!0;return!1};X.HTTPBuildQuery=function(e,t){var r,n,i=[];return X.isUndefined(t)&&(t="&"),X.each(e,function(o,a){r=encodeURIComponent(o.toString()),n=encodeURIComponent(a),i[i.length]=n+"="+r}),i.join(t)};X.getQueryParam=function(e,t){t=t.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]");var r="[\\?&]"+t+"=([^&#]*)",n=new RegExp(r),i=n.exec(e);if(i===null||i&&typeof i[1]!="string"&&i[1].length)return"";var o=i[1];try{o=decodeURIComponent(o)}catch{Fr.error("Skipping decoding for malformed query param: "+o)}return o.replace(/\+/g," ")};X.cookie={get:function(e){for(var t=e+"=",r=Lr.cookie.split(";"),n=0;n<r.length;n++){for(var i=r[n];i.charAt(0)==" ";)i=i.substring(1,i.length);if(i.indexOf(t)===0)return decodeURIComponent(i.substring(t.length,i.length))}return null},parse:function(e){var t;try{t=X.JSONDecode(X.cookie.get(e))||{}}catch{}return t},set_seconds:function(e,t,r,n,i,o,a){var s="",l="",c="";if(a)s="; domain="+a;else if(n){var d=pG(Lr.location.hostname);s=d?"; domain=."+d:""}if(r){var u=new Date;u.setTime(u.getTime()+r*1e3),l="; expires="+u.toGMTString()}o&&(i=!0,c="; SameSite=None"),i&&(c+="; secure"),Lr.cookie=e+"="+encodeURIComponent(t)+l+"; path=/"+s+c},set:function(e,t,r,n,i,o,a){var s="",l="",c="";if(a)s="; domain="+a;else if(n){var d=pG(Lr.location.hostname);s=d?"; domain=."+d:""}if(r){var u=new Date;u.setTime(u.getTime()+r*24*60*60*1e3),l="; expires="+u.toGMTString()}o&&(i=!0,c="; SameSite=None"),i&&(c+="; secure");var f=e+"="+encodeURIComponent(t)+l+"; path=/"+s+c;return Lr.cookie=f,f},remove:function(e,t,r){X.cookie.set(e,"",-1,t,!1,!1,r)}};var $le=function(e){var t=!0;try{var r="__mplss_"+k6(8),n="xyz";e.setItem(r,n),e.getItem(r)!==n&&(t=!1),e.removeItem(r)}catch{t=!1}return t},eA=null,By=function(e,t){return eA!==null&&!t?eA:eA=$le(e||$t.localStorage)},tA=null,PXe=function(e,t){return tA!==null&&!t?tA:tA=$le(e||$t.sessionStorage)};function kle(e,t,r){var n=function(i){Fr.error(t+" error: "+i)};return{is_supported:function(i){var o=r(e,i);return o||Fr.error(t+" unsupported"),o},error:n,get:function(i){try{return e.getItem(i)}catch(o){n(o)}return null},parse:function(i){try{return X.JSONDecode(e.getItem(i))||{}}catch{}return null},set:function(i,o){try{e.setItem(i,o)}catch(a){n(a)}},remove:function(i){try{e.removeItem(i)}catch(o){n(o)}}}}X.localStorage=kle($t.localStorage,"localStorage",By);X.sessionStorage=kle($t.sessionStorage,"sessionStorage",PXe);X.register_event=function(){var e=function(n,i,o,a,s){if(!n){Fr.error("No valid element provided to register_event");return}if(n.addEventListener&&!a)n.addEventListener(i,o,!!s);else{var l="on"+i,c=n[l];n[l]=t(n,o,c)}};function t(n,i,o){var a=function(s){if(s=s||r($t.event),!!s){var l=!0,c,d;return X.isFunction(o)&&(c=o(s)),d=i.call(n,s),(c===!1||d===!1)&&(l=!1),l}};return a}function r(n){return n&&(n.preventDefault=r.preventDefault,n.stopPropagation=r.stopPropagation),n}return r.preventDefault=function(){this.returnValue=!1},r.stopPropagation=function(){this.cancelBubble=!0},e}();var IXe=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');X.dom_query=function(){function e(i){return i.all?i.all:i.getElementsByTagName("*")}var t=/[\t\r\n]/g;function r(i,o){var a=" "+o+" ";return(" "+i.className+" ").replace(t," ").indexOf(a)>=0}function n(i){if(!Lr.getElementsByTagName)return[];var o=i.split(" "),a,s,l,c,d,u,f,h,v,y,g=[Lr];for(u=0;u<o.length;u++){if(a=o[u].replace(/^\s+/,"").replace(/\s+$/,""),a.indexOf("#")>-1){s=a.split("#"),l=s[0];var m=s[1],S=Lr.getElementById(m);if(!S||l&&S.nodeName.toLowerCase()!=l)return[];g=[S];continue}if(a.indexOf(".")>-1){s=a.split("."),l=s[0];var C=s[1];for(l||(l="*"),c=[],d=0,f=0;f<g.length;f++)for(l=="*"?v=e(g[f]):v=g[f].getElementsByTagName(l),h=0;h<v.length;h++)c[d++]=v[h];for(g=[],y=0,f=0;f<c.length;f++)c[f].className&&X.isString(c[f].className)&&r(c[f],C)&&(g[y++]=c[f]);continue}var b=a.match(IXe);if(b){l=b[1];var w=b[2],E=b[3],_=b[4];for(l||(l="*"),c=[],d=0,f=0;f<g.length;f++)for(l=="*"?v=e(g[f]):v=g[f].getElementsByTagName(l),h=0;h<v.length;h++)c[d++]=v[h];g=[],y=0;var R;switch(E){case"=":R=function(P){return P.getAttribute(w)==_};break;case"~":R=function(P){return P.getAttribute(w).match(new RegExp("\\b"+_+"\\b"))};break;case"|":R=function(P){return P.getAttribute(w).match(new RegExp("^"+_+"-?"))};break;case"^":R=function(P){return P.getAttribute(w).indexOf(_)===0};break;case"$":R=function(P){return P.getAttribute(w).lastIndexOf(_)==P.getAttribute(w).length-_.length};break;case"*":R=function(P){return P.getAttribute(w).indexOf(_)>-1};break;default:R=function(P){return P.getAttribute(w)}}for(g=[],y=0,f=0;f<c.length;f++)R(c[f])&&(g[y++]=c[f]);continue}for(l=a,c=[],d=0,f=0;f<g.length;f++)for(v=g[f].getElementsByTagName(l),h=0;h<v.length;h++)c[d++]=v[h];g=c}return g}return function(i){return X.isElement(i)?[i]:X.isObject(i)&&!X.isUndefined(i.length)?i:n.call(this,i)}}();var xXe=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_campaign_id","utm_creative_format","utm_marketing_tactic"],OXe=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","sccid","ttclid","twclid","wbraid"];X.info={campaignParams:function(e){var t="",r={};return X.each(xXe,function(n){t=X.getQueryParam(Lr.URL,n),t.length?r[n]=t:e!==void 0&&(r[n]=e)}),r},clickParams:function(){var e="",t={};return X.each(OXe,function(r){e=X.getQueryParam(Lr.URL,r),e.length&&(t[r]=e)}),t},marketingParams:function(){return X.extend(X.info.campaignParams(),X.info.clickParams())},searchEngine:function(e){return e.search("https?://(.*)google.([^/?]*)")===0?"google":e.search("https?://(.*)bing.com")===0?"bing":e.search("https?://(.*)yahoo.com")===0?"yahoo":e.search("https?://(.*)duckduckgo.com")===0?"duckduckgo":null},searchInfo:function(e){var t=X.info.searchEngine(e),r=t!="yahoo"?"q":"p",n={};if(t!==null){n.$search_engine=t;var i=X.getQueryParam(e,r);i.length&&(n.mp_keyword=i)}return n},browser:function(e,t,r){return t=t||"",r||X.includes(e," OPR/")?X.includes(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":X.includes(e,"IEMobile")||X.includes(e,"WPDesktop")?"Internet Explorer Mobile":X.includes(e,"SamsungBrowser/")?"Samsung Internet":X.includes(e,"Edge")||X.includes(e,"Edg/")?"Microsoft Edge":X.includes(e,"FBIOS")?"Facebook Mobile":X.includes(e,"Whale/")?"Whale Browser":X.includes(e,"Chrome")?"Chrome":X.includes(e,"CriOS")?"Chrome iOS":X.includes(e,"UCWEB")||X.includes(e,"UCBrowser")?"UC Browser":X.includes(e,"FxiOS")?"Firefox iOS":X.includes(t,"Apple")?X.includes(e,"Mobile")?"Mobile Safari":"Safari":X.includes(e,"Android")?"Android Mobile":X.includes(e,"Konqueror")?"Konqueror":X.includes(e,"Firefox")?"Firefox":X.includes(e,"MSIE")||X.includes(e,"Trident/")?"Internet Explorer":X.includes(e,"Gecko")?"Mozilla":""},browserVersion:function(e,t,r){var n=X.info.browser(e,t,r),i={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/,"Whale Browser":/Whale\/(\d+(\.\d+)?)/},o=i[n];if(o===void 0)return null;var a=e.match(o);return a?parseFloat(a[a.length-2]):null},os:function(){var e=il;return/Windows/i.test(e)?/Phone/.test(e)||/WPDesktop/.test(e)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(e)?"iOS":/Android/.test(e)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Mac/i.test(e)?"Mac OS X":/Linux/.test(e)?"Linux":/CrOS/.test(e)?"Chrome OS":""},device:function(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)?"Android":""},referringDomain:function(e){var t=e.split("/");return t.length>=3?t[2]:""},currentUrl:function(){return $t.location.href},properties:function(e){return typeof e!="object"&&(e={}),X.extend(X.strip_empty_properties({$os:X.info.os(),$browser:X.info.browser(il,hc.vendor,B1),$referrer:Lr.referrer,$referring_domain:X.info.referringDomain(Lr.referrer),$device:X.info.device(il)}),{$current_url:X.info.currentUrl(),$browser_version:X.info.browserVersion(il,hc.vendor,B1),$screen_height:lG.height,$screen_width:lG.width,mp_lib:"web",$lib_version:os.LIB_VERSION,$insert_id:k6(),time:X.timestamp()/1e3},X.strip_empty_properties(e))},people_properties:function(){return X.extend(X.strip_empty_properties({$os:X.info.os(),$browser:X.info.browser(il,hc.vendor,B1)}),{$browser_version:X.info.browserVersion(il,hc.vendor,B1)})},mpPageViewProperties:function(){return X.strip_empty_properties({current_page_title:Lr.title,current_domain:$t.location.hostname,current_url_path:$t.location.pathname,current_url_protocol:$t.location.protocol,current_url_search:$t.location.search})}};var TXe=function(e,t){var r=null,n=[];return function(i){var o=this;return n.push(i),r||(r=new Vr(function(a){setTimeout(function(){var s=e.apply(o,[n]);r=null,n=[],a(s)},t)})),r}},k6=function(e){var t=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return e?t.substring(0,e):t},AXe=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,MXe=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,pG=function(e){var t=MXe,r=e.split("."),n=r[r.length-1];(n.length>4||n==="com"||n==="org")&&(t=AXe);var i=e.match(t);return i?i[0]:""},$Xe=function(){var e=$t.navigator.onLine;return X.isUndefined(e)||e},Ic=function(){},jp=null,vw=null;typeof JSON<"u"&&(jp=JSON.stringify,vw=JSON.parse);jp=jp||X.JSONEncode;vw=vw||X.JSONDecode;X.info=X.info;X.info.browser=X.info.browser;X.info.browserVersion=X.info.browserVersion;X.info.device=X.info.device;X.info.properties=X.info.properties;X.isBlockedUA=X.isBlockedUA;X.isEmptyObject=X.isEmptyObject;X.isObject=X.isObject;X.JSONDecode=X.JSONDecode;X.JSONEncode=X.JSONEncode;X.toArray=X.toArray;X.NPO=lu;var kXe="mixpanelBrowserDb",Nle="mixpanelRecordingEvents",N6="mixpanelRecordingRegistry",NXe=1,DXe=[Nle,N6],Ks=function(e){this.dbPromise=null,this.storeName=e};Ks.prototype._openDb=function(){return new Vr(function(e,t){var r=$t.indexedDB.open(kXe,NXe);r.onerror=function(){t(r.error)},r.onsuccess=function(){e(r.result)},r.onupgradeneeded=function(n){var i=n.target.result;DXe.forEach(function(o){i.createObjectStore(o)})}})};Ks.prototype.init=function(){return $t.indexedDB?(this.dbPromise||(this.dbPromise=this._openDb()),this.dbPromise.then(function(e){return e instanceof $t.IDBDatabase?Vr.resolve():Vr.reject(e)})):Vr.reject("indexedDB is not supported in this browser")};Ks.prototype.makeTransaction=function(e,t){var r=this.storeName,n=function(i){return new Vr(function(o,a){var s=i.transaction(r,e);s.oncomplete=function(){o(s)},s.onabort=s.onerror=function(){a(s.error)},t(s.objectStore(r))})};return this.dbPromise.then(n).catch((function(i){return i&&i.name==="InvalidStateError"?(this.dbPromise=this._openDb(),this.dbPromise.then(n)):Vr.reject(i)}).bind(this))};Ks.prototype.setItem=function(e,t){return this.makeTransaction("readwrite",function(r){r.put(t,e)})};Ks.prototype.getItem=function(e){var t;return this.makeTransaction("readonly",function(r){t=r.get(e)}).then(function(){return t.result})};Ks.prototype.removeItem=function(e){return this.makeTransaction("readwrite",function(t){t.delete(e)})};Ks.prototype.getAll=function(){var e;return this.makeTransaction("readonly",function(t){e=t.getAll()}).then(function(){return e.result})};var LXe="__mp_opt_in_out_";function jXe(e,t){jle(!0,e,t)}function FXe(e,t){jle(!1,e,t)}function zXe(e,t){return Lle(e,t)==="1"}function Dle(e,t){if(HXe(t))return Fr.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),!0;var r=Lle(e,t)==="0";return r&&Fr.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),r}function cu(e){return j6(e,function(t){return this.get_config(t)})}function uu(e){return j6(e,function(t){return this._get_config(t)})}function yh(e){return j6(e,function(t){return this._get_config(t)})}function BXe(e,t){t=t||{},D6(t).remove(L6(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function D6(e){return e=e||{},e.persistenceType==="localStorage"?X.localStorage:X.cookie}function L6(e,t){return t=t||{},(t.persistencePrefix||LXe)+e}function Lle(e,t){return D6(t).get(L6(e,t))}function HXe(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||$t,r=t.navigator||{},n=!1;return X.each([r.doNotTrack,r.msDoNotTrack,t.doNotTrack],function(i){X.includes([!0,1,"1","yes"],i)&&(n=!0)}),n}function jle(e,t,r){if(!X.isString(t)||!t.length){Fr.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token");return}r=r||{},D6(r).set(L6(t,r),e?1:0,X.isNumber(r.cookieExpiration)?r.cookieExpiration:null,!!r.crossSubdomainCookie,!!r.secureCookie,!!r.crossSiteCookie,r.cookieDomain),r.track&&e&&r.track(r.trackEventName||"$opt_in",r.trackProperties,{send_immediately:!0})}function j6(e,t){return function(){var r=!1;try{var n=t.call(this,"token"),i=t.call(this,"ignore_dnt"),o=t.call(this,"opt_out_tracking_persistence_type"),a=t.call(this,"opt_out_tracking_cookie_prefix"),s=t.call(this,"window");n&&(r=Dle(n,{ignoreDnt:i,persistenceType:o,persistencePrefix:a,window:s}))}catch(c){Fr.error("Unexpected error when checking tracking opt-out status: "+c)}if(!r)return e.apply(this,arguments);var l=arguments[arguments.length-1];typeof l=="function"&&l(0)}}var VXe=Gd("lock"),Fle=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||$t.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3,this.promiseImpl=t.promiseImpl||Vr};Fle.prototype.withLock=function(e,t){var r=this.promiseImpl;return new r(X.bind(function(n,i){var o=t||new Date().getTime()+"|"+Math.random(),a=new Date().getTime(),s=this.storageKey,l=this.pollIntervalMS,c=this.timeoutMS,d=this.storage,u=s+":X",f=s+":Y",h=s+":Z",v=function(C){if(new Date().getTime()-a>c){VXe.error("Timeout waiting for mutex on "+s+"; clearing lock. ["+o+"]"),d.removeItem(h),d.removeItem(f),m();return}setTimeout(function(){try{C()}catch(b){i(b)}},l*(Math.random()+.1))},y=function(C,b){C()?b():v(function(){y(C,b)})},g=function(){var C=d.getItem(f);return C&&C!==o?!1:(d.setItem(f,o),d.getItem(f)===o?!0:(By(d,!0)||i(new Error("localStorage support dropped while acquiring lock")),!1))},m=function(){d.setItem(u,o),y(g,function(){if(d.getItem(u)===o){S();return}v(function(){if(d.getItem(f)!==o){m();return}y(function(){return!d.getItem(h)},S)})})},S=function(){d.setItem(h,"1");var C=function(){d.removeItem(h),d.getItem(f)===o&&d.removeItem(f),d.getItem(u)===o&&d.removeItem(u)};e().then(function(b){C(),n(b)}).catch(function(b){C(),i(b)})};try{if(By(d,!0))m();else throw new Error("localStorage support check failed")}catch(C){i(C)}},this))};var eS=function(e){this.storage=e||$t.localStorage};eS.prototype.init=function(){return Vr.resolve()};eS.prototype.setItem=function(e,t){return new Vr(X.bind(function(r,n){try{this.storage.setItem(e,jp(t))}catch(i){n(i)}r()},this))};eS.prototype.getItem=function(e){return new Vr(X.bind(function(t,r){var n;try{n=vw(this.storage.getItem(e))}catch(i){r(i)}t(n)},this))};eS.prototype.removeItem=function(e){return new Vr(X.bind(function(t,r){try{this.storage.removeItem(e)}catch(n){r(n)}t()},this))};var hG=Gd("batch"),Ys=function(e,t){t=t||{},this.storageKey=e,this.usePersistence=t.usePersistence,this.usePersistence&&(this.queueStorage=t.queueStorage||new eS,this.lock=new Fle(e,{storage:t.sharedLockStorage||$t.localStorage,timeoutMS:t.sharedLockTimeoutMS})),this.reportError=t.errorReporter||X.bind(hG.error,hG),this.pid=t.pid||null,this.memQueue=[],this.initialized=!1,t.enqueueThrottleMs?this.enqueuePersisted=TXe(X.bind(this._enqueuePersisted,this),t.enqueueThrottleMs):this.enqueuePersisted=X.bind(function(r){return this._enqueuePersisted([r])},this)};Ys.prototype.ensureInit=function(){return this.initialized?Vr.resolve():this.queueStorage.init().then(X.bind(function(){this.initialized=!0},this)).catch(X.bind(function(e){this.reportError("Error initializing queue persistence. Disabling persistence",e),this.initialized=!0,this.usePersistence=!1},this))};Ys.prototype.enqueue=function(e,t){var r={id:k6(),flushAfter:new Date().getTime()+t*2,payload:e};return this.usePersistence?this.enqueuePersisted(r):(this.memQueue.push(r),Vr.resolve(!0))};Ys.prototype._enqueuePersisted=function(e){var t=X.bind(function(){return this.ensureInit().then(X.bind(function(){return this.readFromStorage()},this)).then(X.bind(function(r){return this.saveToStorage(r.concat(e))},this)).then(X.bind(function(r){return r&&(this.memQueue=this.memQueue.concat(e)),r},this)).catch(X.bind(function(r){return this.reportError("Error enqueueing items",r,e),!1},this))},this);return this.lock.withLock(t,this.pid).catch(X.bind(function(r){return this.reportError("Error acquiring storage lock",r),!1},this))};Ys.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);return this.usePersistence&&t.length<e?this.ensureInit().then(X.bind(function(){return this.readFromStorage()},this)).then(X.bind(function(r){if(r.length){var n={};X.each(t,function(a){n[a.id]=!0});for(var i=0;i<r.length;i++){var o=r[i];if(new Date().getTime()>o.flushAfter&&!n[o.id]&&(o.orphaned=!0,t.push(o),t.length>=e))break}}return t},this)):Vr.resolve(t)};var vG=function(e,t){var r=[];return X.each(e,function(n){n.id&&!t[n.id]&&r.push(n)}),r};Ys.prototype.removeItemsByID=function(e){var t={};if(X.each(e,function(n){t[n]=!0}),this.memQueue=vG(this.memQueue,t),this.usePersistence){var r=X.bind(function(){return this.ensureInit().then(X.bind(function(){return this.readFromStorage()},this)).then(X.bind(function(n){return n=vG(n,t),this.saveToStorage(n)},this)).then(X.bind(function(){return this.readFromStorage()},this)).then(X.bind(function(n){for(var i=0;i<n.length;i++){var o=n[i];if(o.id&&t[o.id])throw new Error("Item not removed from storage")}return!0},this)).catch(X.bind(function(n){return this.reportError("Error removing items",n,e),!1},this))},this);return this.lock.withLock(r,this.pid).catch(X.bind(function(n){return this.reportError("Error acquiring storage lock",n),By(this.lock.storage,!0)?!1:r().then(X.bind(function(i){return i||this.queueStorage.removeItem(this.storageKey).then(function(){return i})},this)).catch(X.bind(function(i){return this.reportError("Error clearing queue",i),!1},this))},this))}else return Vr.resolve(!0)};var gG=function(e,t){var r=[];return X.each(e,function(n){var i=n.id;if(i in t){var o=t[i];o!==null&&(n.payload=o,r.push(n))}else r.push(n)}),r};Ys.prototype.updatePayloads=function(e){return this.memQueue=gG(this.memQueue,e),this.usePersistence?this.lock.withLock(X.bind(function(){return this.ensureInit().then(X.bind(function(){return this.readFromStorage()},this)).then(X.bind(function(r){return r=gG(r,e),this.saveToStorage(r)},this)).catch(X.bind(function(r){return this.reportError("Error updating items",e,r),!1},this))},this),this.pid).catch(X.bind(function(t){return this.reportError("Error acquiring storage lock",t),!1},this)):Vr.resolve(!0)};Ys.prototype.readFromStorage=function(){return this.ensureInit().then(X.bind(function(){return this.queueStorage.getItem(this.storageKey)},this)).then(X.bind(function(e){return e&&(X.isArray(e)||(this.reportError("Invalid storage entry:",e),e=null)),e||[]},this)).catch(X.bind(function(e){return this.reportError("Error retrieving queue",e),[]},this))};Ys.prototype.saveToStorage=function(e){return this.ensureInit().then(X.bind(function(){return this.queueStorage.setItem(this.storageKey,e)},this)).then(function(){return!0}).catch(X.bind(function(t){return this.reportError("Error saving queue",t),!1},this))};Ys.prototype.clear=function(){return this.memQueue=[],this.usePersistence?this.ensureInit().then(X.bind(function(){return this.queueStorage.removeItem(this.storageKey)},this)):Vr.resolve()};var UXe=10*60*1e3,Pm=Gd("batch"),Fa=function(e,t){this.errorReporter=t.errorReporter,this.queue=new Ys(e,{errorReporter:X.bind(this.reportError,this),queueStorage:t.queueStorage,sharedLockStorage:t.sharedLockStorage,sharedLockTimeoutMS:t.sharedLockTimeoutMS,usePersistence:t.usePersistence,enqueueThrottleMs:t.enqueueThrottleMs}),this.libConfig=t.libConfig,this.sendRequest=t.sendRequestFunc,this.beforeSendHook=t.beforeSendHook,this.stopAllBatching=t.stopAllBatchingFunc,this.batchSize=this.libConfig.batch_size,this.flushInterval=this.libConfig.batch_flush_interval_ms,this.stopped=!this.libConfig.batch_autostart,this.consecutiveRemovalFailures=0,this.itemIdsSentSuccessfully={},this.flushOnlyOnInterval=t.flushOnlyOnInterval||!1,this._flushPromise=null};Fa.prototype.enqueue=function(e){return this.queue.enqueue(e,this.flushInterval)};Fa.prototype.start=function(){return this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()};Fa.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)};Fa.prototype.clear=function(){return this.queue.clear()};Fa.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size};Fa.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)};Fa.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(X.bind(function(){this.stopped||(this._flushPromise=this.flush())},this),this.flushInterval))};Fa.prototype.sendRequestPromise=function(e,t){return new Vr(X.bind(function(r){this.sendRequest(e,t,r)},this))};Fa.prototype.flush=function(e){if(this.requestInProgress)return Pm.log("Flush: Request already in progress"),Vr.resolve();this.requestInProgress=!0,e=e||{};var t=this.libConfig.batch_request_timeout_ms,r=new Date().getTime(),n=this.batchSize;return this.queue.fillBatch(n).then(X.bind(function(i){var o=i.length===n,a=[],s={};if(X.each(i,function(u){var f=u.payload;if(this.beforeSendHook&&!u.orphaned&&(f=this.beforeSendHook(f)),f){f.event&&f.properties&&(f.properties=X.extend({},f.properties,{mp_sent_by_lib_version:os.LIB_VERSION}));var h=!0,v=u.id;v?(this.itemIdsSentSuccessfully[v]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:u,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[v]}),h=!1):this.reportError("[dupe] found item with no ID",{item:u}),h&&a.push(f)}s[u.id]=f},this),a.length<1)return this.requestInProgress=!1,this.resetFlush(),Vr.resolve();var l=X.bind(function(){return this.queue.removeItemsByID(X.map(i,function(u){return u.id})).then(X.bind(function(u){return X.each(i,X.bind(function(f){var h=f.id;h?(this.itemIdsSentSuccessfully[h]=this.itemIdsSentSuccessfully[h]||0,this.itemIdsSentSuccessfully[h]++,this.itemIdsSentSuccessfully[h]>5&&this.reportError("[dupe] item ID sent too many times",{item:f,batchSize:i.length,timesSent:this.itemIdsSentSuccessfully[h]})):this.reportError("[dupe] found item with no ID while removing",{item:f})},this)),u?(this.consecutiveRemovalFailures=0,this.flushOnlyOnInterval&&!o?(this.resetFlush(),Vr.resolve()):this.flush()):(++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush(),Vr.resolve())},this))},this),c=X.bind(function(u){this.requestInProgress=!1;try{if(e.unloading)return this.queue.updatePayloads(s);if(X.isObject(u)&&u.error==="timeout"&&new Date().getTime()-r>=t)return this.reportError("Network timeout; retrying"),this.flush();if(X.isObject(u)&&(u.httpStatusCode>=500||u.httpStatusCode===429||u.httpStatusCode<=0&&!$Xe()||u.error==="timeout")){var f=this.flushInterval*2;return u.retryAfter&&(f=parseInt(u.retryAfter,10)*1e3||f),f=Math.min(UXe,f),this.reportError("Error; retry in "+f+" ms"),this.scheduleFlush(f),Vr.resolve()}else if(X.isObject(u)&&u.httpStatusCode===413)if(i.length>1){var h=Math.max(1,Math.floor(n/2));return this.batchSize=Math.min(this.batchSize,h,i.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush(),Vr.resolve()}else return this.reportError("Single-event request too large; dropping",i),this.resetBatchSize(),l();else return l()}catch(v){this.reportError("Error handling API response",v),this.resetFlush()}},this),d={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};return e.unloading&&(d.transport="sendBeacon"),Pm.log("MIXPANEL REQUEST:",a),this.sendRequestPromise(a,d).then(c)},this)).catch(X.bind(function(i){this.reportError("Error flushing request queue",i),this.resetFlush()},this))};Fa.prototype.reportError=function(e,t){if(Pm.error.apply(Pm.error,arguments),this.errorReporter)try{t instanceof Error||(t=new Error(e)),this.errorReporter(e,t)}catch(r){Pm.error(r)}};var F6=function(e){var t=Date.now();return!e||t>e.maxExpires||t>e.idleExpires},WXe=250,ip=Gd("recorder"),mG=$t.CompressionStream,qXe={batch_size:1e3,batch_flush_interval_ms:10*1e3,batch_request_timeout_ms:90*1e3,batch_autostart:!0},GXe=new Set([or.MouseMove,or.MouseInteraction,or.Scroll,or.ViewportResize,or.Input,or.TouchMove,or.MediaInteraction,or.Drag,or.Selection]);function KXe(e){return e.type===xr.IncrementalSnapshot&&GXe.has(e.data.source)}var xi=function(e){this._mixpanel=e.mixpanelInstance,this._onIdleTimeout=e.onIdleTimeout||Ic,this._onMaxLengthReached=e.onMaxLengthReached||Ic,this._onBatchSent=e.onBatchSent||Ic,this._rrwebRecord=e.rrwebRecord||null,this._stopRecording=null,this.replayId=e.replayId,this.batchStartUrl=e.batchStartUrl||null,this.replayStartUrl=e.replayStartUrl||null,this.idleExpires=e.idleExpires||null,this.maxExpires=e.maxExpires||null,this.replayStartTime=e.replayStartTime||null,this.seqNo=e.seqNo||0,this.idleTimeoutId=null,this.maxTimeoutId=null,this.recordMaxMs=Rm,this.recordMinMs=0;var t=By(e.sharedLockStorage,!0);this.batcherKey="__mprec_"+this.getConfig("name")+"_"+this.getConfig("token")+"_"+this.replayId,this.queueStorage=new Ks(Nle),this.batcher=new Fa(this.batcherKey,{errorReporter:this.reportError.bind(this),flushOnlyOnInterval:!0,libConfig:qXe,sendRequestFunc:this.flushEventsWithOptOut.bind(this),queueStorage:this.queueStorage,sharedLockStorage:e.sharedLockStorage,usePersistence:t,stopAllBatchingFunc:this.stopRecording.bind(this),enqueueThrottleMs:WXe,sharedLockTimeoutMS:10*1e3})};xi.prototype.getUserIdInfo=function(){if(this.finalFlushUserIdInfo)return this.finalFlushUserIdInfo;var e={distinct_id:String(this._mixpanel.get_distinct_id())},t=this._mixpanel.get_property("$device_id");t&&(e.$device_id=t);var r=this._mixpanel.get_property("$user_id");return r&&(e.$user_id=r),e};xi.prototype.unloadPersistedData=function(){return this.batcher.stop(),this.batcher.flush().then((function(){return this.queueStorage.removeItem(this.batcherKey)}).bind(this))};xi.prototype.getConfig=function(e){return this._mixpanel.get_config(e)};xi.prototype.get_config=function(e){return this.getConfig(e)};xi.prototype.startRecording=function(e){if(this._rrwebRecord===null){this.reportError("rrweb record function not provided. ");return}if(this._stopRecording!==null){ip.log("Recording already in progress, skipping startRecording.");return}this.recordMaxMs=this.getConfig("record_max_ms"),this.recordMaxMs>Rm&&(this.recordMaxMs=Rm,ip.critical("record_max_ms cannot be greater than "+Rm+"ms. Capping value.")),this.maxExpires||(this.maxExpires=new Date().getTime()+this.recordMaxMs),this.recordMinMs=this.getConfig("record_min_ms"),this.recordMinMs>QT&&(this.recordMinMs=QT,ip.critical("record_min_ms cannot be greater than "+QT+"ms. Capping value.")),this.replayStartTime||(this.replayStartTime=new Date().getTime(),this.batchStartUrl=X.info.currentUrl(),this.replayStartUrl=X.info.currentUrl()),e||this.recordMinMs>0?this.batcher.stop():this.batcher.start();var t=(function(){clearTimeout(this.idleTimeoutId);var i=this.getConfig("record_idle_timeout_ms");this.idleTimeoutId=setTimeout(this._onIdleTimeout,i),this.idleExpires=new Date().getTime()+i}).bind(this);t();var r=this.getConfig("record_block_selector");(r===""||r===null)&&(r=void 0);try{this._stopRecording=this._rrwebRecord({emit:(function(i){if(this.idleExpires&&this.idleExpires<i.timestamp){this._onIdleTimeout();return}KXe(i)&&(this.batcher.stopped&&new Date().getTime()-this.replayStartTime>=this.recordMinMs&&this.batcher.start(),t()),this.__enqueuePromise=this.batcher.enqueue(i)}).bind(this),blockClass:this.getConfig("record_block_class"),blockSelector:r,collectFonts:this.getConfig("record_collect_fonts"),dataURLOptions:{type:"image/webp",quality:.6},maskAllInputs:!0,maskTextClass:this.getConfig("record_mask_text_class"),maskTextSelector:this.getConfig("record_mask_text_selector"),recordCanvas:this.getConfig("record_canvas"),sampling:{canvas:15}})}catch(i){this.reportError("Unexpected error when starting rrweb recording.",i)}if(typeof this._stopRecording!="function"){this.reportError("rrweb failed to start, skipping this recording."),this._stopRecording=null,this.stopRecording();return}var n=this.maxExpires-new Date().getTime();this.maxTimeoutId=setTimeout(this._onMaxLengthReached.bind(this),n)};xi.prototype.stopRecording=function(e){if(this.finalFlushUserIdInfo=this.getUserIdInfo(),!this.isRrwebStopped()){try{this._stopRecording()}catch(r){this.reportError("Error with rrweb stopRecording",r)}this._stopRecording=null}var t;return this.batcher.stopped?t=this.batcher.clear():e||(t=this.batcher.flush()),this.batcher.stop(),clearTimeout(this.idleTimeoutId),clearTimeout(this.maxTimeoutId),t};xi.prototype.isRrwebStopped=function(){return this._stopRecording===null};xi.prototype.flushEventsWithOptOut=function(e,t,r){var n=(function(i){i===0&&(this.stopRecording(),r({error:"Tracking has been opted out, stopping recording."}))}).bind(this);this._flushEvents(e,t,r,n)};xi.prototype.serialize=function(){var e;try{e=this._mixpanel.get_tab_id()}catch(t){this.reportError("Error getting tab ID for serialization ",t),e=null}return{replayId:this.replayId,seqNo:this.seqNo,replayStartTime:this.replayStartTime,batchStartUrl:this.batchStartUrl,replayStartUrl:this.replayStartUrl,idleExpires:this.idleExpires,maxExpires:this.maxExpires,tabId:e}};xi.deserialize=function(e,t){var r=new xi(X.extend({},t,{replayId:e.replayId,batchStartUrl:e.batchStartUrl,replayStartUrl:e.replayStartUrl,idleExpires:e.idleExpires,maxExpires:e.maxExpires,replayStartTime:e.replayStartTime,seqNo:e.seqNo,sharedLockStorage:t.sharedLockStorage}));return r};xi.prototype._sendRequest=function(e,t,r,n){var i=(function(a,s){a.status===200&&this.replayId===e&&(this.seqNo++,this.batchStartUrl=X.info.currentUrl()),this._onBatchSent(),n({status:0,httpStatusCode:a.status,responseBody:s,retryAfter:a.headers.get("Retry-After")})}).bind(this),o=this._mixpanel.get_api_host&&this._mixpanel.get_api_host("record")||this.getConfig("api_host");$t.fetch(o+"/"+this.getConfig("api_routes").record+"?"+new URLSearchParams(t),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getConfig("token")+":"),"Content-Type":"application/octet-stream"},body:r}).then(function(a){a.json().then(function(s){i(a,s)}).catch(function(s){n({error:s})})}).catch(function(a){n({error:a,httpStatusCode:0})})};xi.prototype._flushEvents=cu(function(e,t,r){var n=e.length;if(n>0){for(var i=this.replayId,o=1/0,a=-1/0,s=!1,l=0;l<n;l++)o=Math.min(o,e[l].timestamp),a=Math.max(a,e[l].timestamp),e[l].type===xr.FullSnapshot&&(s=!0);if(this.seqNo===0){if(!s){r({error:"First batch does not contain a full snapshot. Aborting recording."}),this.stopRecording(!0);return}this.replayStartTime=o}else this.replayStartTime||(this.reportError("Replay start time not set but seqNo is not 0. Using current batch start time as a fallback."),this.replayStartTime=o);var c=a-this.replayStartTime,d={$current_url:this.batchStartUrl,$lib_version:os.LIB_VERSION,batch_start_time:o/1e3,mp_lib:"web",replay_id:i,replay_length_ms:c,replay_start_time:this.replayStartTime/1e3,replay_start_url:this.replayStartUrl,seq:this.seqNo},u=JSON.stringify(e);if(Object.assign(d,this.getUserIdInfo()),mG){var f=new Blob([u],{type:"application/json"}).stream(),h=f.pipeThrough(new mG("gzip"));new Response(h).blob().then((function(v){d.format="gzip",this._sendRequest(i,d,v,r)}).bind(this))}else d.format="body",this._sendRequest(i,d,u,r)}});xi.prototype.reportError=function(e,t){ip.error.apply(ip.error,arguments);try{!t&&!(e instanceof Error)&&(e=new Error(e)),this.getConfig("error_reporter")(e,t)}catch(r){ip.error(r)}};
539var Sh=function(e){this.idb=new Ks(N6),this.errorReporter=e.errorReporter,this.mixpanelInstance=e.mixpanelInstance,this.sharedLockStorage=e.sharedLockStorage};Sh.prototype.handleError=function(e){this.errorReporter("IndexedDB error: ",e)};Sh.prototype.setActiveRecording=function(e){var t=e.tabId;return t?this.idb.init().then((function(){return this.idb.setItem(t,e)}).bind(this)).catch(this.handleError.bind(this)):Vr.resolve()};Sh.prototype.getActiveRecording=function(){return this.idb.init().then((function(){return this.idb.getItem(this.mixpanelInstance.get_tab_id())}).bind(this)).then((function(e){return F6(e)?null:e}).bind(this)).catch(this.handleError.bind(this))};Sh.prototype.clearActiveRecording=function(){return this.getActiveRecording().then((function(e){if(e)return e.maxExpires=0,this.setActiveRecording(e)}).bind(this)).catch(this.handleError.bind(this))};Sh.prototype.flushInactiveRecordings=function(){return this.idb.init().then((function(){return this.idb.getAll()}).bind(this)).then((function(e){var t=e.filter(function(r){return F6(r)}).map((function(r){var n=xi.deserialize(r,{mixpanelInstance:this.mixpanelInstance,sharedLockStorage:this.sharedLockStorage});return n.unloadPersistedData().then((function(){return this.idb.removeItem(r.tabId)}).bind(this)).catch(this.handleError.bind(this))}).bind(this));return Vr.all(t)}).bind(this)).catch(this.handleError.bind(this))};var Im=Gd("recorder"),Fl=function(e,t,r){this.mixpanelInstance=e,this.rrwebRecord=t||su,this.sharedLockStorage=r,this.recordingRegistry=new Sh({mixpanelInstance:this.mixpanelInstance,errorReporter:Im.error,sharedLockStorage:r}),this._flushInactivePromise=this.recordingRegistry.flushInactiveRecordings(),this.activeRecording=null,this.stopRecordingInProgress=!1};Fl.prototype.startRecording=function(e){if(e=e||{},this.activeRecording&&!this.activeRecording.isRrwebStopped()){Im.log("Recording already in progress, skipping startRecording.");return}var t=(function(){Im.log("Idle timeout reached, restarting recording."),this.resetRecording()}).bind(this),r=(function(){Im.log("Max recording length reached, stopping recording."),this.resetRecording()}).bind(this),n=(function(){this.recordingRegistry.setActiveRecording(this.activeRecording.serialize()),this.__flushPromise=this.activeRecording.batcher._flushPromise}).bind(this),i={mixpanelInstance:this.mixpanelInstance,onBatchSent:n,onIdleTimeout:t,onMaxLengthReached:r,replayId:X.UUID(),rrwebRecord:this.rrwebRecord,sharedLockStorage:this.sharedLockStorage};return e.activeSerializedRecording?this.activeRecording=xi.deserialize(e.activeSerializedRecording,i):this.activeRecording=new xi(i),this.activeRecording.startRecording(e.shouldStopBatcher),this.recordingRegistry.setActiveRecording(this.activeRecording.serialize())};Fl.prototype.stopRecording=function(){return this.stopRecordingInProgress=!0,this._stopCurrentRecording(!1,!0).then((function(){return this.recordingRegistry.clearActiveRecording()}).bind(this)).then((function(){this.stopRecordingInProgress=!1}).bind(this))};Fl.prototype.pauseRecording=function(){return this._stopCurrentRecording(!1)};Fl.prototype._stopCurrentRecording=function(e,t){if(this.activeRecording){var r=this.activeRecording.stopRecording(e);return t&&(this.activeRecording=null),r}return Vr.resolve()};Fl.prototype.resumeRecording=function(e){return this.activeRecording&&this.activeRecording.isRrwebStopped()?(this.activeRecording.startRecording(!1),Vr.resolve(null)):this.recordingRegistry.getActiveRecording().then((function(t){return t&&!this.stopRecordingInProgress?this.startRecording({activeSerializedRecording:t}):e?this.startRecording({shouldStopBatcher:!1}):(Im.log("No resumable recording found."),null)}).bind(this))};Fl.prototype.resetRecording=function(){this.stopRecording(),this.startRecording({shouldStopBatcher:!0})};Fl.prototype.getActiveReplayId=function(){return this.activeRecording&&!this.activeRecording.isRrwebStopped()?this.activeRecording.replayId:null};Object.defineProperty(Fl.prototype,"replayId",{get:function(){return this.getActiveReplayId()}});$t.__mp_recorder=Fl;var gw="change",bd="click",yG="hashchange",yf="mp_locationchange",SG="popstate",CG="scrollend",Kk="submit",YXe=["clientX","clientY","offsetX","offsetY","pageX","pageY","screenX","screenY","x","y"],bG=["mp-include"],Yk=["mp-no-track"],wG=Yk.concat(["mp-sensitive"]),XXe=["aria-label","aria-labelledby","aria-describedby","href","name","role","title","type"],fo=Gd("autocapture");function Xk(e){for(var t={},r=zle(e).split(" "),n=0;n<r.length;n++){var i=r[n];i&&(t[i]=!0)}return t}function zle(e){switch(typeof e.className){case"string":return e.className;case"object":return e.className.baseVal||e.getAttribute("class")||"";default:return""}}function QXe(e){if(e.previousElementSibling)return e.previousElementSibling;do e=e.previousSibling;while(e&&!Ble(e));return e}function _G(e,t,r,n,i,o){var a={$classes:zle(e).split(" "),$tag_name:e.tagName.toLowerCase()},s=e.id;s&&(a.$id=s),z6(e,t,i,o)&&X.each(XXe.concat(n),function(u){if(e.hasAttribute(u)&&!r[u]){var f=e.getAttribute(u);mw(f)&&(a["$attr-"+u]=f)}});for(var l=1,c=1,d=e;d=QXe(d);)l++,d.tagName===e.tagName&&c++;return a.$nth_child=l,a.$nth_of_type=c,a}function JXe(e,t){var r=t.allowElementCallback,n=t.allowSelectors||[],i=t.blockAttrs||[],o=t.blockElementCallback,a=t.blockSelectors||[],s=t.captureTextContent||!1,l=t.captureExtraAttrs||[],c=t.captured
vendor: 6,730 bytes, line 539
539ForHeatMap||!1,d={};X.each(i,function(w){d[w]=!0});var u=null,f=typeof e.target>"u"?e.srcElement:e.target;if(Hle(f)&&(f=f.parentNode),tQe(f,e)&&Qk(f,e,r,n)&&!rA(f,e,o,a)){for(var h=[f],v=f;v.parentNode&&!As(v,"body");)h.push(v.parentNode),v=v.parentNode;var y=[],g,m=!1;if(X.each(h,function(w){var E=z6(w,e,r,n);!d.href&&w.tagName.toLowerCase()==="a"&&(g=w.getAttribute("href"),g=E&&mw(g)&&g),rA(w,e,o,a)&&(m=!0),y.push(_G(w,e,d,l,r,n))},this),!m){var S=Lr.documentElement;if(u={$event_type:e.type,$host:$t.location.host,$pathname:$t.location.pathname,$elements:y,$el_attr__href:g,$viewportHeight:Math.max(S.clientHeight,$t.innerHeight||0),$viewportWidth:Math.max(S.clientWidth,$t.innerWidth||0),$pageHeight:Lr.body.offsetHeight||0,$pageWidth:Lr.body.offsetWidth||0},X.each(l,function(w){if(!d[w]&&f.hasAttribute(w)){var E=f.getAttribute(w);mw(E)&&(u["$el_attr__"+w]=E)}}),s&&(C=EG(f,e,r,n),C&&C.length&&(u.$el_text=C)),e.type===bd&&(X.each(YXe,function(w){w in e&&(u["$"+w]=e[w])}),c&&(u.$captured_for_heatmap=!0),f=ZXe(e)),s){var C=EG(f,e,r,n);C&&C.length&&(u.$el_text=C)}if(f){if(!Qk(f,e,r,n)||rA(f,e,o,a))return null;var b=_G(f,e,d,l,r,n);u.$target=b,u.$el_classes=b.$classes,X.extend(u,X.strip_empty_properties({$el_id:b.$id,$el_tag_name:b.$tag_name}))}}}return u}function EG(e,t,r,n){var i="";return z6(e,t,r,n)&&e.childNodes&&e.childNodes.length&&X.each(e.childNodes,function(o){Hle(o)&&o.textContent&&(i+=X.trim(o.textContent).split(/(\s+)/).filter(mw).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),X.trim(i)}function ZXe(e){for(var t=e.target,r=e.composedPath(),n=0;n<r.length;n++){var i=r[n];if(As(i,"a")||As(i,"button")||As(i,"input")||As(i,"select")||i.getAttribute&&i.getAttribute("role")==="button"){t=i;break}if(i===t)break}return t}function Qk(e,t,r,n){if(r)try{if(!r(e,t))return!1}catch(a){return fo.critical("Error while checking element in allowElementCallback",a),!1}if(!n.length)return!0;for(var i=0;i<n.length;i++){var o=n[i];try{if(e.matches(o))return!0}catch(a){fo.critical("Error while checking selector: "+o,a)}}return!1}function rA(e,t,r,n){var i;if(r)try{if(r(e,t))return!0}catch(s){return fo.critical("Error while checking element in blockElementCallback",s),!0}if(n&&n.length)for(i=0;i<n.length;i++){var o=n[i];try{if(e.matches(o))return!0}catch(s){fo.critical("Error while checking selector: "+o,s)}}var a=Xk(e);for(i=0;i<Yk.length;i++)if(a[Yk[i]])return!0;return!1}function Ble(e){return e&&e.nodeType===1}function As(e,t){return e&&e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function Hle(e){return e&&e.nodeType===3}function eQe(){try{var e=Lr.createElement("div");return!!e.matches}catch{return!1}}function tQe(e,t){if(!e||As(e,"html")||!Ble(e))return!1;var r=e.tagName.toLowerCase();switch(r){case"form":return t.type===Kk;case"input":return["button","submit"].indexOf(e.getAttribute("type"))===-1?t.type===gw:t.type===bd;case"select":case"textarea":return t.type===gw;default:return t.type===bd}}function z6(e,t,r,n){var i;if(!Qk(e,t,r,n))return!1;for(var o=e;o.parentNode&&!As(o,"body");o=o.parentNode){var a=Xk(o);for(i=0;i<wG.length;i++)if(a[wG[i]])return!1}var s=Xk(e);for(i=0;i<bG.length;i++)if(s[bG[i]])return!0;if(As(e,"input")||As(e,"select")||As(e,"textarea")||e.getAttribute("contenteditable")==="true")return!1;var l=e.type||"";if(typeof l=="string")switch(l.toLowerCase()){case"hidden":return!1;case"password":return!1}var c=e.name||e.id||"";if(typeof c=="string"){var d=/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i;if(d.test(c.replace(/[^a-zA-Z0-9]/g,"")))return!1}return!0}function mw(e){if(e===null||X.isUndefined(e))return!1;if(typeof e=="string"){e=X.trim(e);var t=/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/;if(t.test((e||"").replace(/[- ]/g,"")))return!1;var r=/(^\d{3}-?\d{2}-?\d{4}$)/;if(r.test(e))return!1}return!0}var rQe=30,nQe=1e3,iQe=4;function Vle(){this.clicks=[]}Vle.prototype.isRageClick=function(e,t,r){r=r||{};var n=r.threshold_px||rQe,i=r.timeout_ms||nQe,o=r.click_count||iQe,a=Date.now(),s=this.clicks[this.clicks.length-1];if(s&&a-s.timestamp<i&&Math.sqrt(Math.pow(e-s.x,2)+Math.pow(t-s.y,2))<n){if(this.clicks.push({x:e,y:t,timestamp:a}),this.clicks.length>=o)return this.clicks=[],!0}else this.clicks=[{x:e,y:t,timestamp:a}];return!1};var Ule="autocapture",oQe="track_pageview",Wle="full-url",aQe="url-with-path-and-query-string",sQe="url-with-path",lQe="allow_element_callback",qle="allow_selectors",Gle="allow_url_regexes",Kle="block_attrs",Yle="block_element_callback",Xle="block_selectors",Qle="block_url_regexes",Jle="capture_extra_attrs",Zle="capture_text_content",ece="scroll_capture_all",tce="scroll_depth_percent_checkpoints",yw="click",Jk="input",rce="pageview",nce="rage_click",Zk="scroll",eN="submit",ci={};ci[qle]=[];ci[Gle]=[];ci[Kle]=[];ci[Yle]=null;ci[Xle]=[];ci[Qle]=[];ci[Jle]=[];ci[Zle]=!1;ci[ece]=!1;ci[tce]=[25,50,75,100];ci[yw]=!0;ci[Jk]=!0;ci[rce]=Wle;ci[nce]=!0;ci[Zk]=!0;ci[eN]=!0;var Sw={$mp_autocapture:!0},ice="$mp_click",cQe="$mp_input_change",oce="$mp_rage_click",uQe="$mp_scroll",dQe="$mp_submit",vo=function(e){this.mp=e};vo.prototype.init=function(){if(!eQe()){fo.critical("Autocapture unavailable: missing required DOM APIs");return}this.initPageviewTracking(),this.initClickTracking(),this.initInputTracking(),this.initScrollTracking(),this.initSubmitTracking(),this.initRageClickTracking()};vo.prototype.getFullConfig=function(){var e=this.mp.get_config(Ule);return e?X.isObject(e)?X.extend({},ci,e):ci:{}};vo.prototype.getConfig=function(e){return this.getFullConfig()[e]};vo.prototype.currentUrlBlocked=function(){var e,t=X.info.currentUrl(),r=this.getConfig(Gle)||[];if(r.length){var n=!1;for(e=0;e<r.length;e++){var i=r[e];try{if(t.match(i)){n=!0;break}}catch(a){return fo.critical("Error while checking block URL regex: "+i,a),!0}}if(!n)return!0}var o=this.getConfig(Qle)||[];if(!o||!o.length)return!1;for(e=0;e<o.length;e++)try{if(t.match(o[e]))return!0}catch(a){return fo.critical("Error while checking block URL regex: "+o[e],a),!0}return!1};vo.prototype.pageviewTrackingConfig=function(){return this.mp.get_config(Ule)?this.getConfig(rce):this.mp.get_config(oQe)};vo.prototype.trackDomEvent=function(e,t){if(!this.currentUrlBlocked()){var r=this.mp.is_recording_heatmap_data()&&(t===ice&&!this.getConfig(yw)||t===oce&&!this._getRageClickConfig()),n=JXe(e,{allowElementCallback:this.getConfig(lQe),allowSelectors:this.getConfig(qle),blockAttrs:this.getConfig(Kle),blockElementCallback:this.getConfig(Yle),blockSelectors:this.getConfig(Xle),captureExtraAttrs:this.getConfig(Jle),
539captureTextContent:this.getConfig(Zle),capturedForHeatMap:r});n&&(X.extend(n,Sw),this.mp.track(t,n))}};vo.prototype._getRageClickConfig=function(){var e=this.getConfig(nce);return e?e===!0?{}:typeof e=="object"?e:{}:null};vo.prototype.initClickTracking=function(){$t.removeEventListener(bd,this.listenerClick),!(!this.getConfig(yw)&&!this.mp.get_config("record_heatmap_data"))&&(fo.log("Initializing click tracking"),this.listenerClick=$t.addEventListener(bd,(function(e){!this.getConfig(yw)&&!this.mp.is_recording_heatmap_data()||this.trackDomEvent(e,ice)}).bind(this)))};vo.prototype.initInputTracking=function(){$t.removeEventListener(gw,this.listenerChange),this.getConfig(Jk)&&(fo.log("Initializing input tracking"),this.listenerChange=$t.addEventListener(gw,(function(e){this.getConfig(Jk)&&this.trackDomEvent(e,cQe)}).bind(this)))};vo.prototype.initPageviewTracking=function(){if($t.removeEventListener(SG,this.listenerPopstate),$t.removeEventListener(yG,this.listenerHashchange),$t.removeEventListener(yf,this.listenerLocationchange),!!this.pageviewTrackingConfig()){fo.log("Initializing pageview tracking");var e="",t=!1;this.currentUrlBlocked()||(t=this.mp.track_pageview(Sw)),t&&(e=X.info.currentUrl()),this.listenerPopstate=$t.addEventListener(SG,function(){$t.dispatchEvent(new Event(yf))}),this.listenerHashchange=$t.addEventListener(yG,function(){$t.dispatchEvent(new Event(yf))});var r=$t.history.pushState;typeof r=="function"&&($t.history.pushState=function(i,o,a){r.call($t.history,i,o,a),$t.dispatchEvent(new Event(yf))});var n=$t.history.replaceState;typeof n=="function"&&($t.history.replaceState=function(i,o,a){n.call($t.history,i,o,a),$t.dispatchEvent(new Event(yf))}),this.listenerLocationchange=$t.addEventListener(yf,$6((function(){if(!this.currentUrlBlocked()){var i=X.info.currentUrl(),o=!1,a=i.split("#")[0].split("?")[0]!==e.split("#")[0].split("?")[0],s=this.pageviewTrackingConfig();if(s===Wle?o=i!==e:s===aQe?o=i.split("#")[0]!==e.split("#")[0]:s===sQe&&(o=a),o){var l=this.mp.track_pageview(Sw);l&&(e=i),a&&(this.lastScrollCheckpoint=0,fo.log("Path change: re-initializing scroll depth checkpoints"))}}}).bind(this)))}};vo.prototype.initRageClickTracking=function(){$t.removeEventListener(bd,this.listenerRageClick);var e=this._getRageClickConfig();!e&&!this.mp.get_config("record_heatmap_data")||(fo.log("Initializing rage click tracking"),this._rageClickTracker||(this._rageClickTracker=new Vle),this.listenerRageClick=(function(t){var r=this._getRageClickConfig();!r&&!this.mp.is_recording_heatmap_data()||this.currentUrlBlocked()||this._rageClickTracker.isRageClick(t.pageX,t.pageY,r)&&this.trackDomEvent(t,oce)}).bind(this),$t.addEventListener(bd,this.listenerRageClick))};vo.prototype.initScrollTracking=function(){$t.removeEventListener(CG,this.listenerScroll),this.getConfig(Zk)&&(fo.log("Initializing scroll tracking"),this.lastScrollCheckpoint=0,this.listenerScroll=$t.addEventListener(CG,$6((function(){if(this.getConfig(Zk)&&!this.currentUrlBlocked()){var e=this.getConfig(ece),t=(this.getConfig(tce)||[]).slice().sort(function(l,c){return l-c}),r=$t.scrollY,n=X.extend({$scroll_top:r},Sw);try{var i=Lr.body.scrollHeight,o=Math.round(r/(i-$t.innerHeight)*100);if(n.$scroll_height=i,n.$scroll_percentage=o,o>this.lastScrollCheckpoint)for(var a=0;a<t.length;a++){var s=t[a];o>=s&&this.lastScrollCheckpoint<s&&(n.$scroll_checkpoint=s,this.lastScrollCheckpoint=s,e=!0)}}catch(l){fo.critical("Error while calculating scroll percentage",l)}e&&this.mp.track(uQe,n)}}).bind(this))))};vo.prototype.initSubmitTracking=function(){$t.removeEventListener(Kk,this.listenerSubmit),this.getConfig(eN)&&(fo.log("Initializing submit tracking"),this.listenerSubmit=$t.addEventListener(Kk,(function(e){this.getConfig(eN)&&this.trackDomEvent(e,dQe)}).bind(this)))};Mle(vo);var fQe=$t.fetch,so=Gd("flags"),Cw="flags",bw="context",tN={};tN[bw]={};var Ir=function(e){this.getFullApiRoute=e.getFullApiRoute,this.getMpConfig=e.getConfigFunc,this.setMpConfig=e.setConfigFunc,this.getMpProperty=e.getPropertyFunc,this.track=e.trackingFunc};Ir.prototype.init=function(){if(!pQe()){so.critical("Feature Flags unavailable: missing minimum required APIs");return}this.flags=null,this.fetchFlags(),this.trackedFeatures=new Set};Ir.prototype.getFullConfig=function(){var e=this.getMpConfig(Cw);return e?X.isObject(e)?X.extend({},tN,e):tN:{}};Ir.prototype.getConfig=function(e){return this.getFullConfig()[e]};Ir.prototype.isSystemEnabled=function(){return!!this.getMpConfig(Cw)};Ir.prototype.updateContext=function(e,t){if(!this.isSystemEnabled())return so.critical("Feature Flags not enabled, cannot update context"),Promise.resolve();var r=this.getMpConfig(Cw);X.isObject(r)||(r={});var n=t&&t.replace?{}:this.getConfig(bw);return r[bw]=X.extend({},n,e),this.setMpConfig(Cw,r),this.fetchFlags()};Ir.prototype.areFlagsReady=function(){return this.isSystemEnabled()||so.error("Feature Flags not enabled"),!!this.flags};Ir.prototype.fetchFlags=function(){if(!this.isSystemEnabled())return Promise.resolve();var e=this.getMpProperty("distinct_id"),t=this.getMpProperty("$device_id");so.log("Fetching flags for distinct ID: "+e);var r={context:X.extend({distinct_id:e,device_id:t},this.getConfig(bw))};return this._fetchInProgressStartTime=Date.now(),this.fetchPromise=$t.fetch(this.getFullApiRoute(),{method:"POST",headers:{Authorization:"Basic "+btoa(this.getMpConfig("token")+":"),"Content-Type":"application/octet-stream"},body:JSON.stringify(r)}).then((function(n){return this.markFetchComplete(),n.json().then((function(i){var o=i.flags;if(!o)throw new Error("No flags in API response");var a=new Map;X.each(o,function(s,l){a.set(l,{key:s.variant_key,value:s.variant_value})}),this.flags=a}).bind(this)).catch((function(i){this.markFetchComplete(),so.error(i)}).bind(this))}).bind(this)).catch((function(n){this.markFetchComplete(),so.error(n)}).bind(this)),this.fetchPromise};Ir.prototype.markFetchComplete=function(){if(!this._fetchInProgressStartTime){so.error("Fetch in progress started time not set, cannot mark fetch complete");return}this._fetchStartTime=this._fetchInProgressStartTime,this._fetchCompleteTime=Date.now(),this._fetchLatency=this._fetchCompleteTime-this._fetchStartTime,this._fetchInProgressStartTime=null};Ir.prototype.getVariant=function(e,t){return this.fetchPromise?this.fetchPromise.then((function(){return this.getVariantSync(e,t)}).bind(this)).catch(function(r){return so.error(r),t}):new Promise(function(r){so.critical("Feature Flags not initialized"),r(t)})};Ir.prototype.getVariantSync=function(e,t){if(!this.areFlagsReady())return so.log("Flags not loaded yet"),t;var r=this.flags.get(e);return r?(this.trackFeatureCheck(e,r),r):(so.log('No flag found: "'+e+'"'),t)};Ir.prototype.getVariantValue=function(e,t){return this.getVariant(e,{value:t}).then(function(r){return r.value}).catch(function(r){return so.error(r),t})};Ir.prototype.getFeatureData=function(e,t){return so.critical("mixpanel.flags.get_feature_data() is deprecated and will be removed in a future release. Use mixpanel.flags.get_variant_value(
539) instead."),this.getVariantValue(e,t)};Ir.prototype.getVariantValueSync=function(e,t){return this.getVariantSync(e,{value:t}).value};Ir.prototype.isEnabled=function(e,t){return this.getVariantValue(e).then((function(){return this.isEnabledSync(e,t)}).bind(this)).catch(function(r){return so.error(r),t})};Ir.prototype.isEnabledSync=function(e,t){t=t||!1;var r=this.getVariantValueSync(e,t);return r!==!0&&r!==!1&&(so.error('Feature flag "'+e+'" value: '+r+" is not a boolean; returning fallback value: "+t),r=t),r};Ir.prototype.trackFeatureCheck=function(e,t){this.trackedFeatures.has(e)||(this.trackedFeatures.add(e),this.track("$experiment_started",{"Experiment name":e,"Variant name":t.key,$experiment_type:"feature_flag","Variant fetch start time":new Date(this._fetchStartTime).toISOString(),"Variant fetch complete time":new Date(this._fetchCompleteTime).toISOString(),"Variant fetch latency (ms)":this._fetchLatency}))};function pQe(){return!!fQe&&typeof Promise<"u"&&typeof Map<"u"&&typeof Set<"u"}Mle(Ir);Ir.prototype.are_flags_ready=Ir.prototype.areFlagsReady;Ir.prototype.get_variant=Ir.prototype.getVariant;Ir.prototype.get_variant_sync=Ir.prototype.getVariantSync;Ir.prototype.get_variant_value=Ir.prototype.getVariantValue;Ir.prototype.get_variant_value_sync=Ir.prototype.getVariantValueSync;Ir.prototype.is_enabled=Ir.prototype.isEnabled;Ir.prototype.is_enabled_sync=Ir.prototype.isEnabledSync;Ir.prototype.update_context=Ir.prototype.updateContext;Ir.prototype.get_feature_data=Ir.prototype.getFeatureData;var zl=function(){};zl.prototype.create_properties=function(){};zl.prototype.event_handler=function(){};zl.prototype.after_track_handler=function(){};zl.prototype.init=function(e){return this.mp=e,this};zl.prototype.track=function(e,t,r,n){var i=this,o=X.dom_query(e);if(o.length===0){Fr.error("The DOM query ("+e+") returned 0 elements");return}return X.each(o,function(a){X.register_event(a,this.override_event,function(s){var l={},c=i.create_properties(r,this),d=i.mp.get_config("track_links_timeout");i.event_handler(s,this,l),window.setTimeout(i.track_callback(n,c,l,!0),d),i.mp.track(t,c,i.track_callback(n,c,l))})},this),!0};zl.prototype.track_callback=function(e,t,r,n){n=n||!1;var i=this;return function(){r.callback_fired||(r.callback_fired=!0,!(e&&e(n,t)===!1)&&i.after_track_handler(t,r,n))}};zl.prototype.create_properties=function(e,t){var r;return typeof e=="function"?r=e(t):r=X.extend({},e),r};var Fp=function(){this.override_event="click"};X.inherit(Fp,zl);Fp.prototype.create_properties=function(e,t){var r=Fp.superclass.create_properties.apply(this,arguments);return t.href&&(r.url=t.href),r};Fp.prototype.event_handler=function(e,t,r){r.new_tab=e.which===2||e.metaKey||e.ctrlKey||t.target==="_blank",r.href=t.href,r.new_tab||e.preventDefault()};Fp.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout(function(){window.location=t.href},0)};var XR=function(){this.override_event="submit"};X.inherit(XR,zl);XR.prototype.event_handler=function(e,t,r){r.element=t,e.preventDefault()};XR.prototype.after_track_handler=function(e,t){setTimeout(function(){t.element.submit()},0)};var Lc="$set",zp="$set_once",Ya="$unset",wd="$add",js="$append",_d="$union",gl="$remove",hQe="$delete",ace={set_action:function(e,t){var r={},n={};return X.isObject(e)?X.each(e,function(i,o){this._is_reserved_property(o)||(n[o]=i)},this):n[e]=t,r[Lc]=n,r},unset_action:function(e){var t={},r=[];return X.isArray(e)||(e=[e]),X.each(e,function(n){this._is_reserved_property(n)||r.push(n)},this),t[Ya]=r,t},set_once_action:function(e,t){var r={},n={};return X.isObject(e)?X.each(e,function(i,o){this._is_reserved_property(o)||(n[o]=i)},this):n[e]=t,r[zp]=n,r},union_action:function(e,t){var r={},n={};return X.isObject(e)?X.each(e,function(i,o){this._is_reserved_property(o)||(n[o]=X.isArray(i)?i:[i])},this):n[e]=X.isArray(t)?t:[t],r[_d]=n,r},append_action:function(e,t){var r={},n={};return X.isObject(e)?X.each(e,function(i,o){this._is_reserved_property(o)||(n[o]=i)},this):n[e]=t,r[js]=n,r},remove_action:function(e,t){var r={},n={};return X.isObject(e)?X.each(e,function(i,o){this._is_reserved_property(o)||(n[o]=i)},this):n[e]=t,r[gl]=n,r},delete_action:function(){var e={};return e[hQe]="",e}},vn=function(){};X.extend(vn.prototype,ace);vn.prototype._init=function(e,t,r){this._mixpanel=e,this._group_key=t,this._group_id=r};vn.prototype.set=yh(function(e,t,r){var n=this.set_action(e,t);return X.isObject(e)&&(r=t),this._send_request(n,r)});vn.prototype.set_once=yh(function(e,t,r){var n=this.set_once_action(e,t);return X.isObject(e)&&(r=t),this._send_request(n,r)});vn.prototype.unset=yh(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)});vn.prototype.union=yh(function(e,t,r){X.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)});vn.prototype.delete=yh(function(e){var t=this.delete_action();return this._send_request(t,e)});vn.prototype.remove=yh(function(e,t,r){var n=this.remove_action(e,t);return this._send_request(n,r)});vn.prototype._send_request=function(e,t){e.$group_key=this._group_key,e.$group_id=this._group_id,e.$token=this._get_config("token");var r=X.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:r,endpoint:this._mixpanel.get_api_host("groups")+"/"+this._get_config("api_routes").groups,batcher:this._mixpanel.request_batchers.groups},t)};vn.prototype._is_reserved_property=function(e){return e==="$group_key"||e==="$group_id"};vn.prototype._get_config=function(e){return this._mixpanel.get_config(e)};vn.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id};vn.prototype.remove=vn.prototype.remove;vn.prototype.set=vn.prototype.set;vn.prototype.set_once=vn.prototype.set_once;vn.prototype.union=vn.prototype.union;vn.prototype.unset=vn.prototype.unset;vn.prototype.toString=vn.prototype.toString;var cr=function(){};X.extend(cr.prototype,ace);cr.prototype._init=function(e){this._mixpanel=e};cr.prototype.set=uu(function(e,t,r){var n=this.set_action(e,t);return X.isObject(e)&&(r=t),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),n[Lc]=X.extend({},X.info.people_properties(),n[Lc]),this._send_request(n,r)});cr.prototype.set_once=uu(function(e,t,r){var n=this.set_once_action(e,t);return X.isObject(e)&&(r=t),this._send_request(n,r)});cr.prototype.unset=uu(function(e,t){var r=this.unset_action(e);return this._send_request(r,t)});cr.prototype.increment=uu(function(e,t,r){var n={},i={};return X.isObject(e)?(X.each(e,function(o,a){if(!this._is_reserved_property(a))if(isNaN(parseFloat(o))){Fr.error("Invalid increment value passed to mixpanel.people.increment - must be a number");return}else i[a]=o},this),r=t):(X.isUndefined(t)&&(t=1),i[e]=t),n[wd]=i,this._send_request(n,r)});cr.prototype.append=uu(function(e,t,r){X.isObject(e)&&(r=t);var n=this.append_action(e,t);return this._send_request(n,r)});cr.prototype.remove=uu(function(e,t,r){X.isObject(e)&&(r=t);var n=this.remove_action(e,t);return this._send_request(n,r)});cr.prototype.union=uu(function(e,t,r){X.isObject(e)&&(r=t);var n=this.union_action(e,t);return this._send_request(n,r)});cr.prototype.track_charge=uu(function(){Fr.error("mixpanel.people.track_charge() is deprecated and no longer has any effect.")});cr.prototype.clear_charges=function(e){return this.set("$transactions",[],e)};cr.prototype.delete_user=function(){if(!this._identify_called()){Fr.error("mixpanel.people.delete_user() requires you to call identify() first");return}var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)};cr.prototype.toString=function(){return this._mixpanel.toString()+".people"};cr.prototype._send_request=function(e,t){e.$token=this._get_config("token"),e.$distinct_id=this._mixpanel.get_distinct_id();var r=this._mixpanel.get_property("$device_id"),n=this._mixpanel.get_property("$user_id"),i=this._mixpanel.get_property("$had_persisted_distinct_id");r&&(e.$device_id=r),n&&(e.$user_id=n),i&&(e.$had_persisted_distinct_id=i);var o=X.encodeDates(e);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:o,endpoint:this._mixpanel.get_api_host("people")+"/"+this._get_config("api_routes").engage,batcher:this._mixpanel.request_batchers.people},t):(this._enqueue(e),X.isUndefined(t)||(this._get_config("verbose")?t({status:-1,error:null}):t(-1)),X.truncate(o,255))};cr.prototype._get_config=function(e){return this._mixpanel.get_config(e)};cr.prototype._identify_called=function(){return this._mixpanel._flags.identify_called===!0};cr.prototype._enqueue=function(e){Lc in e?this._mixpanel.persistence._add_to_people_queue(Lc,e):zp in e?this._mixpanel.persistence._add_to_people_queue(zp,e):Ya in e?this._mixpanel.persistence._add_to_people_queue(Ya,e):wd in e?this._mixpanel.persistence._add_to_people_queue(wd,e):js in e?this._mixpanel.persistence._add_to_people_queue(js,e):gl in e?this._mixpanel.persistence._add_to_people_queue(gl,e):_d in e?this._mixpanel.persistence._add_to_people_queue(_d,e):Fr.error("Invalid call to _enqueue():",e)};cr.prototype._flush_one_queue=function(e,t,r,n){var i=this,o=X.extend({},this._mixpanel.persistence.load_queue(e)),a=o;!X.isUndefined(o)&&X.isObject(o)&&!X.isEmptyObject(o)&&(i._mixpanel.persistence._pop_from_people_queue(e,o),i._mi
vendor: 33,206 bytes, line 539
539xpanel.persistence.save(),n&&(a=n(o)),t.call(i,a,function(s,l){s===0&&i._mixpanel.persistence._add_to_people_queue(e,o),X.isUndefined(r)||r(s,l)}))};cr.prototype._flush=function(e,t,r,n,i,o,a){var s=this;this._flush_one_queue(Lc,this.set,e),this._flush_one_queue(zp,this.set_once,n),this._flush_one_queue(Ya,this.unset,o,function(g){return X.keys(g)}),this._flush_one_queue(wd,this.increment,t),this._flush_one_queue(_d,this.union,i);var l=this._mixpanel.persistence.load_queue(js);if(!X.isUndefined(l)&&X.isArray(l)&&l.length)for(var c,d=function(g,m){g===0&&s._mixpanel.persistence._add_to_people_queue(js,c),X.isUndefined(r)||r(g,m)},u=l.length-1;u>=0;u--)l=this._mixpanel.persistence.load_queue(js),c=l.pop(),s._mixpanel.persistence.save(),X.isEmptyObject(c)||s.append(c,d);var f=this._mixpanel.persistence.load_queue(gl);if(!X.isUndefined(f)&&X.isArray(f)&&f.length)for(var h,v=function(g,m){g===0&&s._mixpanel.persistence._add_to_people_queue(gl,h),X.isUndefined(a)||a(g,m)},y=f.length-1;y>=0;y--)f=this._mixpanel.persistence.load_queue(gl),h=f.pop(),s._mixpanel.persistence.save(),X.isEmptyObject(h)||s.remove(h,v)};cr.prototype._is_reserved_property=function(e){return e==="$distinct_id"||e==="$token"||e==="$device_id"||e==="$user_id"||e==="$had_persisted_distinct_id"};cr.prototype.set=cr.prototype.set;cr.prototype.set_once=cr.prototype.set_once;cr.prototype.unset=cr.prototype.unset;cr.prototype.increment=cr.prototype.increment;cr.prototype.append=cr.prototype.append;cr.prototype.remove=cr.prototype.remove;cr.prototype.union=cr.prototype.union;cr.prototype.track_charge=cr.prototype.track_charge;cr.prototype.clear_charges=cr.prototype.clear_charges;cr.prototype.delete_user=cr.prototype.delete_user;cr.prototype.toString=cr.prototype.toString;var B6="__mps",H6="__mpso",V6="__mpus",U6="__mpa",W6="__mpap",q6="__mpr",G6="__mpu",sce="$people_distinct_id",ww="__alias",Hy="__timers",vQe=[B6,H6,V6,U6,W6,q6,G6,sce,ww,Hy],yr=function(e){this.props={},this.campaign_params_saved=!1,e.persistence_name?this.name="mp_"+e.persistence_name:this.name="mp_"+e.token+"_mixpanel";var t=e.persistence;t!=="cookie"&&t!=="localStorage"&&(Fr.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e.persistence="cookie"),t==="localStorage"&&X.localStorage.is_supported()?this.storage=X.localStorage:this.storage=X.cookie,this.load(),this.update_config(e),this.upgrade(),this.save()};yr.prototype.properties=function(){var e={};return this.load(),X.each(this.props,function(t,r){X.include(vQe,r)||(e[r]=t)}),e};yr.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=X.extend({},e))}};yr.prototype.upgrade=function(){var e,t;this.storage===X.localStorage?(e=X.cookie.parse(this.name),X.cookie.remove(this.name),X.cookie.remove(this.name,!0),e&&this.register_once(e)):this.storage===X.cookie&&(t=X.localStorage.parse(this.name),X.localStorage.remove(this.name),t&&this.register_once(t))};yr.prototype.save=function(){this.disabled||this.storage.set(this.name,jp(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)};yr.prototype.load_prop=function(e){return this.load(),this.props[e]};yr.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)};yr.prototype.clear=function(){this.remove(),this.props={}};yr.prototype.register_once=function(e,t,r){return X.isObject(e)?(typeof t>"u"&&(t="None"),this.expire_days=typeof r>"u"?this.default_expiry:r,this.load(),X.each(e,function(n,i){(!this.props.hasOwnProperty(i)||this.props[i]===t)&&(this.props[i]=n)},this),this.save(),!0):!1};yr.prototype.register=function(e,t){return X.isObject(e)?(this.expire_days=typeof t>"u"?this.default_expiry:t,this.load(),X.extend(this.props,e),this.save(),!0):!1};yr.prototype.unregister=function(e){this.load(),e in this.props&&(delete this.props[e],this.save())};yr.prototype.update_search_keyword=function(e){this.register(X.info.searchInfo(e))};yr.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:X.info.referringDomain(e)||"$direct"},"")};yr.prototype.get_referrer_info=function(){return X.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})};yr.prototype.update_config=function(e){this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cookie_domain(e.cookie_domain),this.set_cross_site(e.cross_site_cookie),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie)};yr.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()};yr.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())};yr.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())};yr.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())};yr.prototype.get_cross_subdomain=function(){return this.cross_subdomain};yr.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())};yr.prototype._add_to_people_queue=function(e,t){var r=this._get_queue_key(e),n=t[e],i=this._get_or_create_queue(Lc),o=this._get_or_create_queue(zp),a=this._get_or_create_queue(Ya),s=this._get_or_create_queue(wd),l=this._get_or_create_queue(_d),c=this._get_or_create_queue(gl,[]),d=this._get_or_create_queue(js,[]);r===B6?(X.extend(i,n),this._pop_from_people_queue(wd,n),this._pop_from_people_queue(_d,n),this._pop_from_people_queue(Ya,n)):r===H6?(X.each(n,function(u,f){f in o||(o[f]=u)}),this._pop_from_people_queue(Ya,n)):r===V6?X.each(n,function(u){X.each([i,o,s,l],function(f){u in f&&delete f[u]}),X.each(d,function(f){u in f&&delete f[u]}),a[u]=!0}):r===U6?(X.each(n,function(u,f){f in i?i[f]+=u:(f in s||(s[f]=0),s[f]+=u)},this),this._pop_from_people_queue(Ya,n)):r===G6?(X.each(n,function(u,f){X.isArray(u)&&(f in l||(l[f]=[]),X.each(u,function(h){X.include(l[f],h)||l[f].push(h)}))}),this._pop_from_people_queue(Ya,n)):r===q6?(c.push(n),this._pop_from_people_queue(js,n)):r===W6&&(d.push(n),this._pop_from_people_queue(Ya,n)),Fr.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),Fr.log(t),this.save()};yr.prototype._pop_from_people_queue=function(e,t){var r=this.props[this._get_queue_key(e)];X.isUndefined(r)||X.each(t,function(n,i){e===js||e===gl?X.each(r,function(o){o[i]===n&&delete o[i]}):delete r[i]},this)};yr.prototype.load_queue=function(e){return this.load_prop(this._get_queue_key(e))};yr.prototype._get_queue_key=function(e){if(e===Lc)return B6;if(e===zp)return H6;if(e===Ya)return V6;if(e===wd)return U6;if(e===js)return W6;if(e===gl)return q6;if(e===_d)return G6;Fr.error("Invalid queue:",e)};yr.prototype._get_or_create_queue=function(e,t){var r=this._get_queue_key(e);return t=X.isUndefined(t)?{}:t,this.props[r]||(this.props[r]=t)};yr.prototype.set_event_timer=function(e,t){var r=this.load_prop(Hy)||{};r[e]=t,this.props[Hy]=r,this.save()};yr.prototype.remove_event_timer=function(e){var t=this.load_prop(Hy)||{},r=t[e];return X.isUndefined(r)||(delete this.props[Hy][e],this.save()),r};var K6,lce=function(e,t){throw new Error(e+" not available in this build.")},Bi,cce=0,gQe=1,mQe=function(e){return e},Ra="mixpanel",uce="base64",yQe="json",Y6="$device:",op=$t.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,dce=!op&&il.indexOf("MSIE")===-1&&il.indexOf("Mozilla")===-1,_w=null;hc.sendBeacon&&(_w=function(){return hc.sendBeacon.apply(hc,arguments)});var fce={track:"track/",engage:"engage/",groups:"groups/",record:"record/",flags:"flags/"},RG={api_host:"https://api-js.mixpanel.com",api_hosts:{},api_routes:fce,api_extra_query_params:{},api_method:"POST",api_transport:"XHR",api_payload_format:uce,app_host:"https://mixpanel.com",autocapture:!1,cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:Ic,flags:!1,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:Ic,mp_loader:null,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,stop_utm_persistence:!1,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{},record_block_class:new RegExp("^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$"),record_block_selector:"img, video, audio",record_canvas:!1,record_collect_fonts:!1,record_heatmap_data:!1,record_idle_timeout_ms:30*60*1e3,record_mask_text_class:new RegExp("^(mp-mask|fs-mask|amp-mask|rr-mask|ph-mask)$"),record_mask_text_selector:"*",record_max_ms:Rm,record_min_ms:0,record_sessions_percent:0,recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"},pce=!1,Ve=function(){},rN=function(e,t,r){var n,i=r===Ra?Bi:Bi[r];if(i&&K6===cce)n=i;else{if(i&&!X.isArray(i)){Fr.error("You have already initialized "+r);return}n=new Ve}if(n._cached_groups={},n._init(e,t,r),n.people=new cr,n.people._init(n),!n.get_config("skip_first_touch_marketing")){var o=X.info.campaignParams(null),a={},s=!1;X.each(o,function(l,c){a["initial_"+c]=l,l&&(s=!0)}),s&&n.people.set_once(a)}return os.DEBUG=os.DEBUG||n.get_config("debug"),!X.isUndefined(i)&&X.isArray(i)&&(n._execute_array.call(n.people,i.people),n._execute_array(i)),n};Ve.prototype.init=function(e,t,r){if(X.isUndefined(r)){this.report_error("You must name your new library: init(token, config, name)");return}if(r===Ra){this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");return}var n=rN(e,t,r);return Bi[r]=n,n._loaded(),n};Ve.prototype._init=function(e,t,r){t=t||{},this.__loaded=!0,this.config={};var n={};if(!("api_payload_format"in t)){var i=t.api_host||RG.api_host;i.match(/\.mixpanel\.com/)&&(n.api_payload_format=yQe)}if(this.set_config(X.extend({},RG,n,t,{name:r,token:e,callback_fn:(r===Ra?r:Ra+"."+r)+"._jsc"})),this._jsc=Ic,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests){if(!X.localStorage.is_supported(!0)||!op)this._batch_requests=!1,Fr.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),X.each(this.get_batcher_configs(),function(s){Fr.log("Clearing batch queue "+s.queue_key),X.localStorage.remove(s.queue_key)});else if(this.init_batchers(),_w&&$t.addEventListener){var o=X.bind(function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})},this);$t.addEventListener("pagehide",function(s){s.persisted&&o()}),$t.addEventListener("visibilitychange",function(){Lr.visibilityState==="hidden"&&o()})}}this.persistence=this.cookie=new yr(this.config),this.unpersisted_superprops={},this._gdpr_init();var a=X.UUID();this.get_distinct_id()||this.register_once({distinct_id:Y6+a,$device_id:a},""),this.flags=new Ir({getFullApiRoute:X.bind(function(){return this.get_api_host("flags")+"/"+this.get_config("api_routes").flags},this),getConfigFunc:X.bind(this.get_config,this),setConfigFunc:X.bind(this.set_config,this),getPropertyFunc:X.bind(this.get_property,this),trackingFunc:X.bind(this.track,this)}),this.flags.init(),this.flags=this.flags,this.autocapture=new vo(this),this.autocapture.init(),this._init_tab_id(),this._check_and_start_session_recording()};Ve.prototype._init_tab_id=function(){if(X.sessionStorage.is_supported())try{var e=this.get_config("name")+"_"+this.get_config("token"),t="mp_tab_id_"+e,r="mp_gen_new_tab_id_"+e;(X.sessionStorage.get(r)||!X.sessionStorage.get(t))&&X.sessionStorage.set(t,"$tab-"+X.UUID()),X.sessionStorage.set(r,"1"),this.tab_id=X.sessionStorage.get(t),$t.addEventListener("beforeunload",function(){X.sessionStorage.remove(r)})}catch(n){this.report_error("Error initializing tab id",n)}else this.report_error("Session storage is not supported, cannot keep track of unique tab ID.")};Ve.prototype.get_tab_id=function(){return this.tab_id||null};Ve.prototype._should_load_recorder=function(){var e=new Ks(N6),t=this.get_tab_id();return e.init().then(function(){return e.getAll()}).then(function(r){for(var n=0;n<r.length;n++)if(F6(r[n])||r[n].tabId===t)return!0;return!1}).catch(X.bind(function(r){this.report_error("Error checking recording registry",r)},this))};Ve.prototype._check_and_start_session_recording=cu(function(e){if(!$t.MutationObserver){Fr.critical("Browser does not support MutationObserver; skipping session recording");return}var t=X.bind(function(n){var i=X.bind(function(){this._recorder=this._recorder||new $t.__mp_recorder(this),this._recorder.resumeRecording(n)},this);X.isUndefined($t.__mp_recorder)?lce(this.get_config("recorder_src"),i):i()},this),r=this.get_config("record_sessions_percent")>0&&Math.random()*100<=this.get_config("record_sessions_percent");e||r?t(!0):this._should_load_recorder().then(function(n){n&&t(!1)})});Ve.prototype.start_session_recording=function(){this._check_and_start_session_recording(!0)};Ve.prototype.stop_session_recording=function(){return this._recorder?this._recorder.stopRecording():Promise.resolve()};Ve.prototype.pause_session_recording=function(){return this._recorder?this._recorder.pauseRecording():Promise.resolve()};Ve.prototype.resume_session_recording=function(){return this._recorder?this._recorder.resumeRecording():Promise.resolve()};Ve.prototype.is_recording_heatmap_data=function(){return this._get_session_replay_id()&&this.get_config("record_heatmap_data")};Ve.prototype.get_session_recording_properties=function(){var e={},t=this._get_session_replay_id();return t&&(e.$mp_replay_id=t),e};Ve.prototype.get_session_replay_url=function(){var e=null,t=this._get_session_replay_id();if(t){var r=X.HTTPBuildQuery({replay_id:t,distinct_id:this.get_distinct_id(),token:this.get_config("token")});e="https://mixpanel.com/projects/replay-redirect?"+r}return e};Ve.prototype._get_session_replay_id=function(){var e=null;return this._recorder&&(e=this._recorder.replayId),e||null};Ve.prototype.__get_recorder=function(){return this._recorder};Ve.prototype._loaded=function(){if(this.get_config("loaded")(this),this._set_default_superprops(),this.people.set_once(this.persistence.get_referrer_info()),this.get_config("store_google")&&this.get_config("stop_utm_persistence")){var e=X.info.campaignParams(null);X.each(e,(function(t,r){this.unregister(r)}).bind(this))}};Ve.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(Lr.referrer),this.get_config("store_google")&&!this.get_config("stop_utm_persistence")&&this.register(X.info.campaignParams()),this.get_config("save_referrer")&&this.persistence.update_referrer_info(Lr.referrer)};Ve.prototype._dom_loaded=function(){X.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||X.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue};Ve.prototype._track_dom=function(e,t){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!pce)return this.__dom_loaded_queue.push([e,t]),!1;var r=new e().init(this);return r.track.apply(r,t)};Ve.prototype._prepare_callback=function(e,t){if(X.isUndefined(e))return null;if(op){var r=function(a){e(a,t)};return r}else{var n=this._jsc,i=""+Math.floor(Math.random()*1e8),o=this.get_config("callback_fn")+"["+i+"]";return n[i]=function(a){delete n[i],e(a,t)},o}};Ve.prototype._send_request=function(e,t,r,n){var i=!0;if(dce)return this.__request_queue.push(arguments),i;var o={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},a=null;!n&&(X.isFunction(r)||typeof r=="string")&&(n=r,r=null),r=X.extend(o,r||{}),op||(r.method="GET");var s=r.method==="POST",l=_w&&s&&r.transport.toLowerCase()==="sendbeacon",c=r.verbose;t.verbose&&(c=!0),this.get_config("test")&&(t.test=1),c&&(t.verbose=1),this.get_config("img")&&(t.img=1),op||(n?t.callback=n:(c||this.get_config("test"))&&(t.callback="(function(){})")),t.ip=this.get_config("ip")?1:0,t._=new Date().getTime().toString(),s&&(a="data="+encodeURIComponent(t.data),delete t.data),X.extend(t,this.get_config("api_extra_query_params")),e+="?"+X.HTTPBuildQuery(t);var d=this;if("img"in t){var u=Lr.createElement("img");u.src=e,Lr.body.appendChild(u)}else if(l){try{i=_w(e,a)}catch(m){d.report_error(m),i=!1}try{n&&n(i?1:0)}catch(m){d.report_error(m)}}else if(op)try{var f=new XMLHttpRequest;f.open(r.method,e,!0);var h=this.get_config("xhr_headers");if(s&&(h["Content-Type"]="application/x-www-form-urlencoded"),X.each(h,function(m,S){f.setRequestHeader(S,m)}),r.timeout_ms&&typeof f.timeout<"u"){f.timeout=r.timeout_ms;var v=new Date().getTime()}f.withCredentials=!0,f.onreadystatechange=function(){if(f.readyState===4)if(f.status===200){if(n)if(c){var m;try{m=X.JSONDecode(f.responseText)}catch(b){if(d.report_error(b),r.ignore_json_errors)m=f.responseText;else return}n(m)}else n(Number(f.responseText))}else{var S;if(f.timeout&&!f.status&&new Date().getTime()-v>=f.timeout?S="timeout":S="Bad HTTP status: "+f.status+" "+f.statusText,d.report_error(S),n)if(c){var C=f.responseHeaders||{};n({status:0,httpStatusCode:f.status,error:S,retryAfter:C["Retry-After"]})}else n(0)}},f.send(a)}catch(m){d.report_error(m),i=!1}else{var y=Lr.createElement("script");y.type="text/javascript",y.async=!0,y.defer=!0,y.src=e;var g=Lr.getElementsByTagName("script")[0];g.parentNode.insertBefore(y,g)}return i};Ve.prototype._execute_array=function(e){var t,r=[],n=[],i=[];X.each(e,function(a){a&&(t=a[0],X.isArray(t)?i.push(a):typeof a=="function"?a.call(this):X.isArray(a)&&t==="alias"?r.push(a):X.isArray(a)&&t.indexOf("track")!==-1&&typeof this[t]=="function"?i.push(a):n.push(a))},this);var o=function(a,s){X.each(a,function(l){if(X.isArray(l[0])){var c=s;X.each(l,function(d){c=c[d[0]].apply(c,d.slice(1))})}else this[l[0]].apply(this,l.slice(1))},s)};o(r,this),o(n,this),o(i,this)};Ve.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events};Ve.prototype.get_batcher_configs=function(){var e="__mpq_"+this.get_config("token");return this._batcher_configs=this._batcher_configs||{events:{type:"events",api_name:"track",queue_key:e+"_ev"},people:{type:"people",api_name:"engage",queue_key:e+"_pp"},groups:{type:"groups",api_name:"groups",queue_key:e+"_gr"}},this._batcher_configs};Ve.prototype.init_batchers=function(){if(!this.are_batchers_initialized()){var e=X.bind(function(r){return new Fa(r.queue_key,{libConfig:this.config,errorReporter:this.get_config("error_reporter"),sendRequestFunc:X.bind(function(n,i,o){var a=this.get_config("api_routes");this._send_request(this.get_api_host(r.api_name)+"/"+a[r.api_name],this._encode_data_for_request(n),i,this._prepare_callback(o,n))},this),beforeSendHook:X.bind(function(n){return this._run_hook("before_send_"+r.type,n)},this),stopAllBatchingFunc:X.bind(this.stop_batch_senders,this),usePersistence:!0})},this),t=this.get_batcher_configs();this.request_batchers={events:e(t.events),people:e(t.people),groups:e(t.groups)}}this.get_config("batch_autostart")&&this.start_batch_senders()};Ve.prototype.start_batch_senders=function(){this._batchers_were_started=!0,this.are_batchers_initialized()&&(this._batch_requests=!0,X.each(this.request_batchers,function(e){e.start()}))};Ve.prototype.stop_batch_senders=function(){this._batch_requests=!1,X.each(this.request_batchers,function(e){e.stop(),e.clear()})};Ve.prototype.push=function(e){this._execute_array([e])};Ve.prototype.disable=function(e){typeof e>"u"?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)};Ve.prototype._encode_data_for_request=function(e){var t=jp(e);return this.get_config("api_payload_format")===uce&&(t=X.base64Encode(t)),{data:t}};Ve.prototype._track_or_batch=function(e,t){var r=X.truncate(e.data,255),n=e.endpoint,i=e.batcher,o=e.should_send_immediately,a=e.send_request_options||{};t=t||Ic;var s=!0,l=X.bind(function(){return a.skip_hooks||(r=this._run_hook("before_send_"+e.type,r)),r?(Fr.log("MIXPANEL REQUEST:"),Fr.log(r),this._send_request(n,this._encode_data_for_request(r),a,this._prepare_callback(t,r))):null},this);return this._batch_requests&&!o?i.enqueue(r).then(function(c){c?t(1,r):l()}):s=l(),s&&r};Ve.prototype.track=cu(function(e,t,r,n){!n&&typeof r=="function"&&(n=r,r=null),r=r||{};var i=r.transport;i&&(r.transport=i);var o=r.send_immediately;if(typeof n!="function"&&(n=Ic),X.isUndefined(e)){this.report_error("No event name provided to mixpanel.track");return}if(this._event_is_disabled(e)){n(0);return}t=X.extend({},t),t.token=this.get_config("token");var a=this.persistence.remove_event_timer(e);if(!X.isUndefined(a)){var s=new Date().getTime()-a;t.$duration=parseFloat((s/1e3).toFixed(3))}this._set_default_superprops();var l=this.get_config("track_marketing")?X.info.marketingParams():{};t=X.extend({},X.info.properties({mp_loader:this.get_config("mp_loader")}),l,this.persistence.properties(),this.unpersisted_superprops,this.get_session_recording_properties(),t);var c=this.get_config("property_blacklist");X.isArray(c)?X.each(c,function(f){delete t[f]}):this.report_error("Invalid value for property_blacklist config: "+c);var d={event:e,properties:t},u=this._track_or_batch({type:"events",data:d,endpoint:this.get_api_host("events")+"/"+this.get_config("api_routes").track,batcher:this.request_batchers.events,should_send_immediately:o,send_request_options:r},n);return u});Ve.prototype.set_group=cu(function(e,t,r){X.isArray(t)||(t=[t]);var n={};return n[e]=t,this.register(n),this.people.set(e,t,r)});Ve.prototype.add_group=cu(function(e,t,r){var n=this.get_property(e),i={};return n===void 0?(i[e]=[t],this.register(i)):n.indexOf(t)===-1&&(n.push(t),i[e]=n,this.register(i)),this.people.union(e,t,r)});Ve.prototype.remove_group=cu(function(e,t,r){var n=this.get_property(e);if(n!==void 0){var i=n.indexOf(t);i>-1&&(n.splice(i,1),this.register({group_key:n})),n.length===0&&this.unregister(e)}return this.people.remove(e,t,r)});Ve.prototype.track_with_groups=cu(function(e,t,r,n){var i=X.extend({},t||{});return X.each(r,function(o,a){o!=null&&(i[a]=o)}),this.track(e,i,n)});Ve.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)};Ve.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]};Ve.prototype.get_group=function(e,t){var r=this._create_map_key(e,t),n=this._cached_groups[r];return(n===void 0||n._group_key!==e||n._group_id!==t)&&(n=new vn,n._init(this,e,t),this._cached_groups[r]=n),n};Ve.prototype.track_pageview=cu(function(e,t){typeof e!="object"&&(e={}),t=t||{};var r=t.event_name||"$mp_web_page_view",n=X.extend(X.info.mpPageViewProperties(),X.info.campaignParams(),X.info.clickParams()),i=X.extend({},n,e);return this.track(r,i)});Ve.prototype.track_links=function(){return this._track_dom.call(this,Fp,arguments)};Ve.prototype.track_forms=function(){return this._track_dom.call(this,XR,arguments)};Ve.prototype.time_event=function(e){if(X.isUndefined(e)){this.report_error("No event name provided to mixpanel.time_event");return}this._event_is_disabled(e)||this.persistence.set_event_timer(e,new Date().getTime())};var SQe={persistent:!0},X6=function(e){var t;return X.isObject(e)?t=e:X.isUndefined(e)?t={}:t={days:e},X.extend({},SQe,t)};Ve.prototype.register=function(e,t){var r=X6(t);r.persistent?this.persistence.register(e,r.days):X.extend(this.unpersisted_superprops,e)};Ve.prototype.register_once=function(e,t,r){var n=X6(r);n.persistent?this.persistence.register_once(e,t,n.days):(typeof t>"u"&&(t="None"),X.each(e,function(i,o){(!this.unpersisted_superprops.hasOwnProperty(o)||this.unpersisted_superprops[o]===t)&&(this.unpersisted_superprops[o]=i)},this))};Ve.prototype.unregister=function(e,t){t=X6(t),t.persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e]};Ve.prototype._register_single=function(e,t){var r={};r[e]=t,this.register(r)};Ve.prototype.identify=function(e,t,r,n,i,o,a,s){var l=this.get_distinct_id();if(e&&l!==e){if(typeof e=="string"&&e.indexOf(Y6)===0)return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:e})}if(!this.get_property("$device_id")){var c=l;this.register_once({$had_persisted_distinct_id:!0,$device_id:c},"")}e!==l&&e!==this.get_property(ww)&&(this.unregister(ww),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(t,r,n,i,o,a,s),e!==l&&this.track("$identify",{distinct_id:e,$anon_distinct_id:l},{skip_hooks:!0}),e!==l&&this.flags.fetchFlags()};Ve.prototype.reset=function(){this.stop_session_recording(),this.persistence.clear(),this._flags.identify_called=!1;var e=X.UUID();this.register_once({distinct_id:Y6+e,$device_id:e},""),this._check_and_start_session_recording()};Ve.prototype.get_distinct_id=function(){return this.get_property("distinct_id")};Ve.prototype.alias=function(e,t){if(e===this.get_property(sce))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var r=this;return X.isUndefined(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single(ww,e),this.track("$create_alias",{alias:e,distinct_id:t},{skip_hooks:!0},function(){r.identify(e)})):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)};Ve.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)};Ve.prototype.set_config=function(e){if(X.isObject(e)){X.extend(this.config,e);var t=e.batch_size;t&&X.each(this.request_batchers,function(r){r.resetBatchSize()}),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),os.DEBUG=os.DEBUG||this.get_config("debug"),("autocapture"in e||"record_heatmap_data"in e)&&this.autocapture&&this.autocapture.init()}};Ve.prototype.get_config=function(e){return this.config[e]};Ve.prototype._run_hook=function(e){var t=(this.config.hooks[e]||mQe).apply(this,pc.call(arguments,1));return typeof t>"u"&&(this.report_error(e+" hook did not return a value"),t=null),t};Ve.prototype.get_property=function(e){return this.persistence.load_prop([e])};Ve.prototype.get_api_host=function(e){return this.get_config("api_hosts")[e]||this.get_config("api_host")};Ve.prototype.toString=function(){var e=this.get_config("name");return e!==Ra&&(e=Ra+"."+e),e};Ve.prototype._event_is_disabled=function(e){return X.isBlockedUA(il)||this._flags.disable_all_events||X.include(this.__disabled_events,e)};Ve.prototype._gdpr_init=function(){var e=this.get_config("opt_out_tracking_persistence_type")==="localStorage";e&&X.localStorage.is_supported()&&(!this.has_opted_in_tracking()&&this.has_opted_in_tracking({persistence_type:"cookie"})&&this.opt_in_tracking({enable_persistence:!1}),!this.has_opted_out_tracking()&&this.has_opted_out_tracking({persistence_type:"cookie"})&&this.opt_out_tracking({clear_persistence:!1}),this.clear_opt_in_out_tracking({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_tracking()?this._gdpr_update_persistence({clear_persistence:!0}):!this.has_opted_in_tracking()&&(this.get_config("opt_out_tracking_by_default")||X.cookie.get("mp_optout"))&&(X.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))};Ve.prototype._gdpr_update_persistence=function(e){var t;if(e&&e.clear_persistence)t=!0;else if(e&&e.enable_persistence)t=!1;else return;!this.get_config("disable_persistence")&&this.persistence.disabled!==t&&this.persistence.set_disabled(t),t?(this.stop_batch_senders(),this.stop_session_recording()):this._batchers_were_started&&this.start_batch_senders()};Ve.prototype._gdpr_call_func=function(e,t){return t=X.extend({track:X.bind(this.track,this),persistence_type:this.get_config("opt_out_tracking_persistence_type"),cookie_prefix:this.get_config("opt_out_tracking_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_site_cookie:this.get_config("cross_site_cookie"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),cookie_domain:this.get_config("cookie_domain"),secure_cookie:this.get_config("secure_cookie"),ignore_dnt:this.get_config("ignore_dnt")},t),X.localStorage.is_supported()||(t.persistence_type="cookie"),e(this.get_config("token"),{track:t.track,trackEventName:t.track_event_name,trackProperties:t.track_properties,persistenceType:t.persistence_type,persistencePrefix:t.cookie_prefix,cookieDomain:t.cookie_domain,cookieExpiration:t.cookie_expiration,crossSiteCookie:t.cross_site_cookie,crossSubdomainCookie:t.cross_subdomain_cookie,secureCookie:t.secure_cookie,ignoreDnt:t.ignore_dnt})};Ve.prototype.opt_in_tracking=function(e){e=X.extend({enable_persistence:!0},e),this._gdpr_call_func(jXe,e),this._gdpr_update_persistence(e)};Ve.prototype.opt_out_tracking=function(e){e=X.extend({clear_persistence:!0,delete_user:!0},e),e.delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(FXe,e),this._gdpr_update_persistence(e)};Ve.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(zXe,e)};Ve.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(Dle,e)};Ve.prototype.clear_opt_in_out_tracking=function(e){e=X.extend({enable_persistence:!0},e),this._gdpr_call_func(BXe,e),this._gdpr_update_persistence(e)};Ve.prototype.report_error=function(e,t){Fr.error.apply(Fr.error,arguments);try{!t&&!(e instanceof Error)&&(e=new Error(e)),this.get_config("error_reporter")(e,t)}catch(r){Fr.error(r)}};Ve.prototype.init=Ve.prototype.init;Ve.prototype.reset=Ve.prototype.reset;Ve.prototype.disable=Ve.prototype.disable;Ve.prototype.time_event=Ve.prototype.time_event;Ve.prototype.track=Ve.prototype.track;Ve.prototype.track_links=Ve.prototype.track_links;Ve.prototype.track_forms=Ve.prototype.track_forms;Ve.prototype.track_pageview=Ve.prototype.track_pageview;Ve.prototype.register=Ve.prototype.register;Ve.prototype.register_once=Ve.prototype.register_once;Ve.prototype.unregister=Ve.prototype.unregister;Ve.prototype.identify=Ve.prototype.identify;Ve.prototype.alias=Ve.prototype.alias;Ve.prototype.name_tag=Ve.prototype.name_tag;Ve.prototype.set_config=Ve.prototype.set_config;Ve.prototype.get_config=Ve.prototype.get_config;Ve.prototype.get_api_host=Ve.prototype.get_api_host;Ve.prototype.get_property=Ve.prototype.get_property;Ve.prototype.get_distinct_id=Ve.prototype.get_distinct_id;Ve.prototype.toString=Ve.prototype.toString;Ve.prototype.opt_out_tracking=Ve.prototype.opt_out_tracking;Ve.prototype.opt_in_tracking=Ve.prototype.opt_in_tracking;Ve.prototype.has_opted_out_tracking=Ve.prototype.has_opted_out_tracking;Ve.prototype.has_opted_in_tracking=Ve.prototype.has_opted_in_tracking;Ve.prototype.clear_opt_in_out_tracking=Ve.prototype.clear_opt_in_out_tracking;Ve.prototype.get_group=Ve.prototype.get_group;Ve.prototype.set_group=Ve.prototype.set_group;Ve.prototype.add_group=Ve.prototype.add_group;Ve.prototype.remove_group=Ve.prototype.remove_group;Ve.prototype.track_with_groups=Ve.prototype.track_with_groups;Ve.prototype.start_batch_senders=Ve.prototype.start_batch_senders;Ve.prototype.stop_batch_senders=Ve.prototype.stop_batch_senders;Ve.prototype.start_session_recording=Ve.prototype.start_session_recording;Ve.prototype.stop_session_recording=Ve.prototype.stop_session_recording;Ve.prototype.pause_session_recording=Ve.prototype.pause_session_recording;Ve.prototype.resume_session_recording=Ve.prototype.resume_session_recording;Ve.prototype.get_session_recording_properties=Ve.prototype.get_session_recording_properties;Ve.prototype.get_session_replay_url=Ve.prototype.get_session_replay_url;Ve.prototype.get_tab_id=Ve.prototype.get_tab_id;Ve.prototype.DEFAULT_API_ROUTES=fce;Ve.prototype.__get_recorder=Ve.prototype.__get_recorder;yr.prototype.properties=yr.prototype.properties;yr.prototype.update_search_keyword=yr.prototype.update_search_keyword;yr.prototype.update_referrer_info=yr.prototype.update_referrer_info;yr.prototype.get_cross_subdomain=yr.prototype.get_cross_subdomain;yr.prototype.clear=yr.prototype.clear;var qf={},CQe=function(){X.each(qf,function(e,t){t!==Ra&&(Bi[t]=e)}),Bi._=X},bQe=function(){Bi.init=function(e,t,r){if(r)return Bi[r]||(Bi[r]=qf[r]=rN(e,t,r),Bi[r]._loaded()),Bi[r];var n=Bi;qf[Ra]?n=qf[Ra]:e&&(n=rN(e,t,Ra),n._loaded(),qf[Ra]=n),Bi=n,K6===gQe&&($t[Ra]=Bi),CQe()}},wQe=function(){function e(){e.done||(e.done=!0,pce=!0,dce=!1,X.each(qf,function(n){n._dom_loaded()}))}
539function t(){try{Lr.documentElement.doScroll("left")}catch{setTimeout(t,1);return}e()}if(Lr.addEventListener)Lr.readyState==="complete"?e():Lr.addEventListener("DOMContentLoaded",e,!1);else if(Lr.attachEvent){Lr.attachEvent("onreadystatechange",e);var r=!1;try{r=$t.frameElement===null}catch{}Lr.documentElement.doScroll&&r&&t()}X.register_event($t,"load",e,!0)};function _Qe(e){return lce=e,K6=cce,Bi=new Ve,bQe(),Bi.init(),wQe(),Bi}function EQe(e,t){t()}var ai=_Qe(EQe);Zr.defaults.withCredentials=!0;Zr.defaults.headers.common.Authorization=window.localStorage.getItem("user_token");let Qr="http://localhost:8000";window.localStorage.getItem("base_url")?Qr=window.localStorage.getItem("base_url")||"":Qr="https://api.chattytutor.com";async function tS(e,t,r){try{return(await Zr.post(Qr+e,t)).data}catch(n){if(n&&n.message)throw bt.error(r+" "+n.message),n}}async function QR(e,t,r,n,i,o,a){var l;const s=[];try{const c=await fetch(`${Qr}${e}`,{method:t,body:JSON.stringify(r),credentials:"include",headers:{"Content-Type":"application/json",Authorization:window.localStorage.getItem("user_token")||""}});if(c.status!==200)throw bt.error("Chatty Tutor Error"),Error("Chatty Tutor Error");const d=(l=c.body)==null?void 0:l.getReader();if(!d)throw bt.error("Chatty Tutor Error"),Error("Chatty Tutor Error");let u=await(d==null?void 0:d.read());for(;u&&!(u!=null&&u.done);){let f=new TextDecoder("utf-8").decode(u.value);if(f.includes("error")){const h=JSON.parse(f).error;bt.error(h),o==null||o(h);return}f.split(`
540`).forEach(h=>{h.trim()&&(n==null||n(h.trim()),s.push(h.trim()))}),u=await(d==null?void 0:d.read())}i==null||i(s)}catch(c){o==null||o(c)}finally{a==null||a()}}async function Ew(e,t="EN",r="ZH"){var o;const n=(o=window.store.user)==null?void 0:o.config;n&&(r=n.translation_language.split("-")[0]);const{data:i}=await Zr.post(Qr+`/translate?apikey=${window.localStorage.getItem("apikey")}&text=${e}`,{text:e,source_lang:t,target_lang:r});return i.data}async function nN(){const e=window.localStorage.getItem("user_email"),{data:t}=await Zr.post(Qr+"/consume_quota",{email:e});if(t.error){bt.error(t.error);return}window.localStorage.setItem("user_quota",t.quota)}async function RQe(e,t,r,n,i){const{data:o}=await Zr.get(Qr+`/chat_history?page_num=${e}&page_size=${t}&conversation_id=${r||""}&skip=${i}`);return o.result}async function PQe(e,t,r,n){QR("/get_read_material","POST",{extra_description:n},i=>{e(JSON.parse(i))},t,r)}async function IQe(e,t,r,n){QR("/get_revise","POST",{user:e,conversation_id:t},i=>{r(JSON.parse(i))},n)}async function hce(e,t,r){QR("/get_advices","POST",{conversation_id:e},n=>{t(JSON.parse(n))},r,()=>{bt.error("get advices error")})}async function xQe(e,t,r,n,i,o,a){QR("/chat_streaming","POST",{text:e,uuid:t,conversation_id:r},s=>{n(JSON.parse(s))},i,o,a)}async function vce(e,t,r,n){try{const{data:i}=await Zr.post(Qr+"/reset_password",{email:e,action:t,new_password:r,token:n});return i}catch(i){throw bt.error("unable connet to server"),i}}async function Q6(e,t,r,n){try{const{data:i}=await Zr.post(Qr+"/register",{email:e,password:t,active:r,token:n});return i}catch(i){throw bt.error("unable connet to server"),i}}async function gce(e,t,r){try{return(await Zr.post(Qr+"/login",{email:e,password:t,credential:r})).data}catch(n){throw bt.error("unable connet to server"),n}}async function OQe(){const{data:e}=await Zr.post(Qr+"/logout");return Foe(),e.result}async function JR(){try{const{data:e}=await Zr.get(Qr+"/retreive_user");if(e.error==="need login"){Foe(),bt.error("Your login is expired"),setTimeout(()=>{window.location.reload()},1e3);return}const t=e.user,r=t.nickname||t.email.split("@")[0];return window.localStorage.setItem("user_nickname",r),window.localStorage.setItem("user_email",t.email),window.localStorage.setItem("user_quota",t.quota),window.localStorage.setItem("mother_language",t.mother_language),t.has_mobile&&window.localStorage.setItem("user_has_mobile","1"),{nickname:r,email:t.email,voice_quota:t.quota,voice_usage:t.voice_usage,token_quota:t.token_quota,token_usage:t.token_usage,has_mobile:t.has_mobile,subscription_type:t.subscription_type,apikey:t.apikey,conversations:t.conversations,expire_date:t.expire_date,llm_provider:t.llm_provider,llm_max_tokens:t.llm_max_tokens,mother_language:t.mother_language}}catch{throw bt.error("account invalid"),Error("retreive user error")}}async function TQe(e){try{const{data:t}=await Zr.post(Qr+"/add_conversation",{mode:e});if(t.success)return t.result;bt.error(t.error)}catch{bt.error("add conversation error")}}async function AQe(e){try{const{data:t}=await Zr.delete(Qr+`/delete_conversation?id=${e}`);return!!t.success}catch{bt.error("delete conversation error")}}async function ZR(e,t,r,n,i,o,a,s,l){try{const{data:c}=await Zr.post(Qr+"/update_conversation",{id:e,messages:t,name:r,description:n,prompt:i,revise_prompt:o,language:a,vocabularies:s,dialogue_script_id:l});return!!c.success}catch{bt.error("update conversation error")}}async function mce(e){try{const{data:t}=await Zr.get(Qr+`/get_conversation?id=${e}`);return t.result}catch{bt.error("can't get conversation")}}async function MQe(e){try{const{data:t}=await Zr.post(Qr+"/clear_context",{conversation_id:e});return t.result}catch{bt.error("can't clear the context")}}async function yce({nickname:e,password:t,apikey:r,llm_provider:n,llm_max_tokens:i,mother_language:o}){try{const{data:a}=await Zr.post(Qr+"/update_user",{nickname:e,password:t,apikey:r,llm_provider:n,llm_max_tokens:i,mother_language:o});return a.success?!0:(bt.error(a.error),!1)}catch{bt.error("update user error")}}async function Rw(){const e=window.localStorage.getItem("speech_token");let t=window.localStorage.getItem("speech_token_expire"),r=0;if(t&&(r=parseFloat(t)),e&&r>Date.now()/1e3)return{token:e};try{const{data:n}=await Zr.get(Qr+"/get_speech_token");if(n.error){["Your subscription has expired","Your token quota has been used up","Your voice quota has been used up"].includes(n.error)&&setTimeout(()=>{window.location.replace("/user/subscription"),ai.track("Redirect_to_subscription")},1e3);return}return window.localStorage.setItem("speech_token",n.result.token),window.localStorage.setItem("speech_token_expire",n.result.expire),n.result}catch{return}}async function PG(e){try{return(await Zr.post(Qr+"/tvytlx_panel",e)).data}catch(t){t&&t.message&&bt.error("get admin panel error "+t.message)}}async function $Qe(e){try{return(await Zr.post(Qr+"/get_sd_image",e)).data}catch(t){t&&t.message&&bt.error("get image error "+t.message)}}async function kQe(e){try{return(await Zr.post(Qr+"/get_image_description_for_a_word",{word:e})).data}catch(t){t&&t.message&&bt.error("get image error "+t.message)}}async function NQe(){try{return(await Zr.get(Qr+"/get_all_words")).data}catch(e){e&&e.message&&bt.error("get word error "+e.message)}}async function DQe(e){try{return(await Zr.post(Qr+"/get_story_info_by_word",{word:e})).data}catch(t){t&&t.message&&bt.error("get word error "+t.message)}}async function LQe(e){try{return(await Zr.post(Qr+"/get_words_info",{words:e})).data.result}catch(t){t&&t.message&&bt.error("get words error "+t.message)}}async function IG({conversation_id:e,vocabularies:t,schedule_new_words:r}){try{return(await Zr.post(Qr+"/update_vocabularies",{conversation_id:e,vocabularies:t,schedule_new_words:r})).data}catch(n){n&&n.message&&bt.error("update vocabularies error "+n.message)}}async function jQe(e){try{return(await Zr.post(Qr+"/upload_image",e)).data}catch(t){t&&t.message&&bt.error("upload image failed"+t.message)}}async function FQe(e,t){try{return(await Zr.post(Qr+"/search_image",{keyword:e,category:t})).data}catch(r){r&&r.message&&bt.error("search image failed"+r.message)}}async function zQe({conversation_id:e,dialogue_script_id:t}){return await tS("/set_dialogue_script",{dialogue_script_id:t,conversation_id:e},"set dialogue failed")}async function BQe({name:e,description:t,script:r}){return await tS("/create_dialogue_script",{name:e,description:t,script:r},"create dialogue failed")}async function HQe({dialogue_script_id:e,name:t,description:r,script:n,public_:i=!1}){return await tS("/update_dialogue_script",{dialogue_script_id:e,name:t,description:r,script:n,public:i},"update dialogue failed")}async function VQe({dialogue_script_id:e}){try{return(await Zr.delete(Qr+"/delete_dialogue_script",{data:{dialogue_script_id:e}})).data}catch(t){t&&t.message&&bt.error("delete dialogue failed "+t.message)}}async function UQe(){return await tS("/get_dialogue_scripts",{public:!0},"get public dialogue failed")}async function WQe({author_email:e,public_:t=!1}){return await tS("/get_dialogue_scripts",{public:t,author_email:e},"get public dialogue failed")}var qQe={},J6={};Object.defineProperty(J6,"__esModule",{value:!0});var xG=function(){function e(t,r){var n=[],i=!0,o=!1,a=void 0;try{for(var s=t[Symbol.iterator](),l;!(i=(l=s.next()).done)&&(n.push(l.value),!(r&&n.length===r));i=!0);}catch(c){o=!0,a=c}finally{try{!i&&s.return&&s.return()}finally{if(o)throw a}}return n}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);
540throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),Xu=p;function GQe(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}else return Array.from(e)}var OG=function(t,r){var n=(0,Xu.useRef)(function(){throw new Error("Cannot call an event handler while rendering.")});return(0,Xu.useEffect)(function(){n.current=t},[t].concat(GQe(r))),(0,Xu.useCallback)(function(i){var o=n.current;return o(i)},[n])},KQe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.onEnd,n=r===void 0?function(){}:r,i=t.onResult,o=i===void 0?function(){}:i,a=t.onError,s=a===void 0?function(){}:a,l=(0,Xu.useRef)(null),c=(0,Xu.useState)(!1),d=xG(c,2),u=d[0],f=d[1],h=(0,Xu.useState)(!1),v=xG(h,2),y=v[0],g=v[1],m=function(E){var _=Array.from(E.results).map(function(R){return R[0]}).map(function(R){return R.transcript}).join("");o(_)},S=function(E){E.error==="not-allowed"&&(l.current.onend=function(){},f(!1)),s(E)},C=OG(function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(u||!y)){var E=w.lang,_=E===void 0?"":E,R=w.interimResults,P=R===void 0?!0:R,I=w.continuous,O=I===void 0?!1:I,A=w.maxAlternatives,x=A===void 0?1:A,T=w.grammars;f(!0),l.current.lang=_,l.current.interimResults=P,l.current.onresult=m,l.current.onerror=S,l.current.continuous=O,l.current.maxAlternatives=x,T&&(l.current.grammars=T),l.current.onend=function(){return l.current.start()},l.current.start()}},[u,y,l]),b=OG(function(){!u||!y||(l.current.onresult=function(){},l.current.onend=function(){},l.current.onerror=function(){},f(!1),l.current.stop(),n())},[u,y,l,n]);return(0,Xu.useEffect)(function(){typeof window>"u"||(window.SpeechRecognition=window.SpeechRecognition||window.webkitSpeechRecognition,window.SpeechRecognition&&(g(!0),l.current=new window.SpeechRecognition))},[]),{listen:C,listening:u,stop:b,supported:y}};J6.default=KQe;var Z6={};Object.defineProperty(Z6,"__esModule",{value:!0});var nA=function(){function e(t,r){var n=[],i=!0,o=!1,a=void 0;try{for(var s=t[Symbol.iterator](),l;!(i=(l=s.next()).done)&&(n.push(l.value),!(r&&n.length===r));i=!0);}catch(c){o=!0,a=c}finally{try{!i&&s.return&&s.return()}finally{if(o)throw a}}return n}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),H1=p,YQe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.onEnd,n=r===void 0?function(){}:r,i=(0,H1.useState)([]),o=nA(i,2),a=o[0],s=o[1],l=(0,H1.useState)(!1),c=nA(l,2),d=c[0],u=c[1],f=(0,H1.useState)(!1),h=nA(f,2),v=h[0],y=h[1],g=function(E){s(E)},m=function(){var E=window.speechSynthesis.getVoices();if(E.length>0){g(E);return}window.speechSynthesis.onvoiceschanged=function(_){E=_.target.getVoices(),g(E)}},S=function(){u(!1),n()};(0,H1.useEffect)(function(){typeof window<"u"&&window.speechSynthesis&&(y(!0),m())},[]);var C=function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},_=E.voice,R=_===void 0?null:_,P=E.text,I=P===void 0?"":P,O=E.rate,A=O===void 0?1:O,x=E.pitch,T=x===void 0?1:x,D=E.volume,k=D===void 0?1:D;if(v){u(!0);var j=new window.SpeechSynthesisUtterance;j.text=I,j.voice=R,j.onend=S,j.rate=A,j.pitch=T,j.volume=k,window.speechSynthesis.speak(j)}},b=function(){v&&(u(!1),window.speechSynthesis.cancel())};return{supported:v,speak:C,speaking:d,cancel:b,voices:a}};Z6.default=YQe;(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=J6;Object.defineProperty(e,"useSpeechRecognition",{enumerable:!0,get:function(){return n(t).default}});var r=Z6;Object.defineProperty(e,"useSpeechSynthesis",{enumerable:!0,get:function(){return n(r).default}});function n(i){return i&&i.__esModule?i:{default:i}}})(qQe);p.createContext({voiceProvider:"",setVoiceProvider:e=>{},onTeacherFinished:()=>{},setOnTeacherFinished:e=>{}});var eL={};/*!
541 *  howler.js v2.2.4
542 *  howlerjs.com
543 *
544 *  (c) 2013-2020, James Simpson of GoldFire Studios
545 *  goldfirestudios.com
546 *
547 *  MIT License
548 */(function(e){(function(){var t=function(){this.init()};t.prototype={init:function(){var u=this||r;return u._counter=1e3,u._html5AudioPool=[],u.html5PoolSize=10,u._codecs={},u._howls=[],u._muted=!1,u._volume=1,u._canPlayEvent="canplaythrough",u._navigator=typeof window<"u"&&window.navigator?window.navigator:null,u.masterGain=null,u.noAudio=!1,u.usingWebAudio=!0,u.autoSuspend=!0,u.ctx=null,u.autoUnlock=!0,u._setup(),u},volume:function(u){var f=this||r;if(u=parseFloat(u),f.ctx||d(),typeof u<"u"&&u>=0&&u<=1){if(f._volume=u,f._muted)return f;f.usingWebAudio&&f.masterGain.gain.setValueAtTime(u,r.ctx.currentTime);for(var h=0;h<f._howls.length;h++)if(!f._howls[h]._webAudio)for(var v=f._howls[h]._getSoundIds(),y=0;y<v.length;y++){var g=f._howls[h]._soundById(v[y]);g&&g._node&&(g._node.volume=g._volume*u)}return f}return f._volume},mute:function(u){var f=this||r;f.ctx||d(),f._muted=u,f.usingWebAudio&&f.masterGain.gain.setValueAtTime(u?
vendor: 35,134 bytes, lines 548-558
5480:f._volume,r.ctx.currentTime);for(var h=0;h<f._howls.length;h++)if(!f._howls[h]._webAudio)for(var v=f._howls[h]._getSoundIds(),y=0;y<v.length;y++){var g=f._howls[h]._soundById(v[y]);g&&g._node&&(g._node.muted=u?!0:g._muted)}return f},stop:function(){for(var u=this||r,f=0;f<u._howls.length;f++)u._howls[f].stop();return u},unload:function(){for(var u=this||r,f=u._howls.length-1;f>=0;f--)u._howls[f].unload();return u.usingWebAudio&&u.ctx&&typeof u.ctx.close<"u"&&(u.ctx.close(),u.ctx=null,d()),u},codecs:function(u){return(this||r)._codecs[u.replace(/^x-/,"")]},_setup:function(){var u=this||r;if(u.state=u.ctx&&u.ctx.state||"suspended",u._autoSuspend(),!u.usingWebAudio)if(typeof Audio<"u")try{var f=new Audio;typeof f.oncanplaythrough>"u"&&(u._canPlayEvent="canplay")}catch{u.noAudio=!0}else u.noAudio=!0;try{var f=new Audio;f.muted&&(u.noAudio=!0)}catch{}return u.noAudio||u._setupCodecs(),u},_setupCodecs:function(){var u=this||r,f=null;try{f=typeof Audio<"u"?new Audio:null}catch{return u}if(!f||typeof f.canPlayType!="function")return u;var h=f.canPlayType("audio/mpeg;").replace(/^no$/,""),v=u._navigator?u._navigator.userAgent:"",y=v.match(/OPR\/(\d+)/g),g=y&&parseInt(y[0].split("/")[1],10)<33,m=v.indexOf("Safari")!==-1&&v.indexOf("Chrome")===-1,S=v.match(/Version\/(.*?) /),C=m&&S&&parseInt(S[1],10)<15;return u._codecs={mp3:!!(!g&&(h||f.canPlayType("audio/mp3;").replace(/^no$/,""))),mpeg:!!h,opus:!!f.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!f.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!f.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!(f.canPlayType('audio/wav; codecs="1"')||f.canPlayType("audio/wav")).replace(/^no$/,""),aac:!!f.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!f.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(f.canPlayType("audio/x-m4a;")||f.canPlayType("audio/m4a;")||f.canPlayType("audio/aac;")).replace(/^no$/,""),m4b:!!(f.canPlayType("audio/x-m4b;")||f.canPlayType("audio/m4b;")||f.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(f.canPlayType("audio/x-mp4;")||f.canPlayType("audio/mp4;")||f.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!!(!C&&f.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),webm:!!(!C&&f.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),dolby:!!f.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(f.canPlayType("audio/x-flac;")||f.canPlayType("audio/flac;")).replace(/^no$/,"")},u},_unlockAudio:function(){var u=this||r;if(!(u._audioUnlocked||!u.ctx)){u._audioUnlocked=!1,u.autoUnlock=!1,!u._mobileUnloaded&&u.ctx.sampleRate!==44100&&(u._mobileUnloaded=!0,u.unload()),u._scratchBuffer=u.ctx.createBuffer(1,1,22050);var f=function(h){for(;u._html5AudioPool.length<u.html5PoolSize;)try{var v=new Audio;v._unlocked=!0,u._releaseHtml5Audio(v)}catch{u.noAudio=!0;break}for(var y=0;y<u._howls.length;y++)if(!u._howls[y]._webAudio)for(var g=u._howls[y]._getSoundIds(),m=0;m<g.length;m++){var S=u._howls[y]._soundById(g[m]);S&&S._node&&!S._node._unlocked&&(S._node._unlocked=!0,S._node.load())}u._autoResume();var C=u.ctx.createBufferSource();C.buffer=u._scratchBuffer,C.connect(u.ctx.destination),typeof C.start>"u"?C.noteOn(0):C.start(0),typeof u.ctx.resume=="function"&&u.ctx.resume(),C.onended=function(){C.disconnect(0),u._audioUnlocked=!0,document.removeEventListener("touchstart",f,!0),document.removeEventListener("touchend",f,!0),document.removeEventListener("click",f,!0),document.removeEventListener("keydown",f,!0);for(var b=0;b<u._howls.length;b++)u._howls[b]._emit("unlock")}};return document.addEventListener("touchstart",f,!0),document.addEventListener("touchend",f,!0),document.addEventListener("click",f,!0),document.addEventListener("keydown",f,!0),u}},_obtainHtml5Audio:function(){var u=this||r;if(u._html5AudioPool.length)return u._html5AudioPool.pop();var f=new Audio().play();return f&&typeof Promise<"u"&&(f instanceof Promise||typeof f.then=="function")&&f.catch(function(){}),new Audio},_releaseHtml5Audio:function(u){var f=this||r;return u._unlocked&&f._html5AudioPool.push(u),f},_autoSuspend:function(){var u=this;if(!(!u.autoSuspend||!u.ctx||typeof u.ctx.suspend>"u"||!r.usingWebAudio)){for(var f=0;f<u._howls.length;f++)if(u._howls[f]._webAudio){for(var h=0;h<u._howls[f]._sounds.length;h++)if(!u._howls[f]._sounds[h]._paused)return u}return u._suspendTimer&&clearTimeout(u._suspendTimer),u._suspendTimer=setTimeout(function(){if(u.autoSuspend){u._suspendTimer=null,u.state="suspending";var v=function(){u.state="suspended",u._resumeAfterSuspend&&(delete u._resumeAfterSuspend,u._autoResume())};u.ctx.suspend().then(v,v)}},3e4),u}},_autoResume:function(){var u=this;if(!(!u.ctx||typeof u.ctx.resume>"u"||!r.usingWebAudio))return u.state==="running"&&u.ctx.state!=="interrupted"&&u._suspendTimer?(clearTimeout(u._suspendTimer),u._suspendTimer=null):u.state==="suspended"||u.state==="running"&&u.ctx.state==="interrupted"?(u.ctx.resume().then(function(){u.state="running";for(var f=0;f<u._howls.length;f++)u._howls[f]._emit("resume")}),u._suspendTimer&&(clearTimeout(u._suspendTimer),u._suspendTimer=null)):u.state==="suspending"&&(u._resumeAfterSuspend=!0),u}};var r=new t,n=function(u){var f=this;!u.src||u.src.length===0||f.init(u)};n.prototype={init:function(u){var f=this;return r.ctx||d(),f._autoplay=u.autoplay||!1,f._format=typeof u.format!="string"?u.format:[u.format],f._html5=u.html5||!1,f._muted=u.mute||!1,f._loop=u.loop||!1,f._pool=u.pool||5,f._preload=typeof u.preload=="boolean"||u.preload==="metadata"?u.preload:!0,f._rate=u.rate||1,f._sprite=u.sprite||{},f._src=typeof u.src!="string"?u.src:[u.src],f._volume=u.volume!==void 0?u.volume:1,f._xhr={method:u.xhr&&u.xhr.method?u.xhr.method:"GET",headers:u.xhr&&u.xhr.headers?u.xhr.headers:null,withCredentials:u.xhr&&u.xhr.withCredentials?u.xhr.withCredentials:!1},f._duration=0,f._state="unloaded",f._sounds=[],f._endTimers={},f._queue=[],f._playLock=!1,f._onend=u.onend?[{fn:u.onend}]:[],f._onfade=u.onfade?[{fn:u.onfade}]:[],f._onload=u.onload?[{fn:u.onload}]:[],f._onloaderror=u.onloaderror?[{fn:u.onloaderror}]:[],f._onplayerror=u.onplayerror?[{fn:u.onplayerror}]:[],f._onpause=u.onpause?[{fn:u.onpause}]:[],f._onplay=u.onplay?[{fn:u.onplay}]:[],f._onstop=u.onstop?[{fn:u.onstop}]:[],f._onmute=u.onmute?[{fn:u.onmute}]:[],f._onvolume=u.onvolume?[{fn:u.onvolume}]:[],f._onrate=u.onrate?[{fn:u.onrate}]:[],f._onseek=u.onseek?[{fn:u.onseek}]:[],f._onunlock=u.onunlock?[{fn:u.onunlock}]:[],f._onresume=[],f._webAudio=r.usingWebAudio&&!f._html5,typeof r.ctx<"u"&&r.ctx&&r.autoUnlock&&r._unlockAudio(),r._howls.push(f),f._autoplay&&f._queue.push({event:"play",action:function(){f.play()}}),f._preload&&f._preload!=="none"&&f.load(),f},load:function(){var u=this,f=null;if(r.noAudio){u._emit("loaderror",null,"No audio support.");return}typeof u._src=="string"&&(u._src=[u._src]);for(var h=0;h<u._src.length;h++){var v,y;if(u._format&&u._format[h])v=u._format[h];else{if(y=u._src[h],typeof y!="string"){u._emit("loaderror",null,"Non-string found in selected audio sources - ignoring.");continue}v=/^data:audio\/([^;,]+);/i.exec(y),v||(v=/\.([^.]+)$/.exec(y.split("?",1)[0])),v&&(v=v[1].toLowerCase())}if(v&&r.codecs(v)){f=u._src[h];break}}if(!f){u._emit("loaderror",null,"No codec support for selected audio sources.");return}return u._src=f,u._state="loading",window.location.protocol==="https:"&&f.slice(0,5)==="http:"&&(u._html5=!0,u._webAudio=!1),new i(u),u._webAudio&&a(u),u},play:function(u,f){var h=this,v=null;if(typeof u=="number")v=u,u=null;else{if(typeof u=="string"&&h._state==="loaded"&&!h._sprite[u])return null;if(typeof u>"u"&&(u="__default",!h._playLock)){for(var y=0,g=0;g<h._sounds.length;g++)h._sounds[g]._paused&&!h._sounds[g]._ended&&(y++,v=h._sounds[g]._id);y===1?u=null:v=null}}var m=v?h._soundById(v):h._inactiveSound();if(!m)return null;if(v&&!u&&(u=m._sprite||"__default"),h._state!=="loaded"){m._sprite=u,m._ended=!1;var S=m._id;return h._queue.push({event:"play",action:function(){h.play(S)}}),S}if(v&&!m._paused)return f||h._loadQueue("play"),m._id;h._webAudio&&r._autoResume();var C=Math.max(0,m._seek>0?m._seek:h._sprite[u][0]/1e3),b=Math.max(0,(h._sprite[u][0]+h._sprite[u][1])/1e3-C),w=b*1e3/Math.abs(m._rate),E=h._sprite[u][0]/1e3,_=(h._sprite[u][0]+h._sprite[u][1])/1e3;m._sprite=u,m._ended=!1;var R=function(){m._paused=!1,m._seek=C,m._start=E,m._stop=_,m._loop=!!(m._loop||h._sprite[u][2])};if(C>=_){h._ended(m);return}var P=m._node;if(h._webAudio){var I=function(){h._playLock=!1,R(),h._refreshBuffer(m);var T=m._muted||h._muted?0:m._volume;P.gain.setValueAtTime(T,r.ctx.currentTime),m._playStart=r.ctx.currentTime,typeof P.bufferSource.start>"u"?m._loop?P.bufferSource.noteGrainOn(0,C,86400):P.bufferSource.noteGrainOn(0,C,b):m._loop?P.bufferSource.start(0,C,86400):P.bufferSource.start(0,C,b),w!==1/0&&(h._endTimers[m._id]=setTimeout(h._ended.bind(h,m),w)),f||setTimeout(function(){h._emit("play",m._id),h._loadQueue()},0)};r.state==="running"&&r.ctx.state!=="interrupted"?I():(h._playLock=!0,h.once("resume",I),h._clearTimer(m._id))}else{var O=function(){P.currentTime=C,P.muted=m._muted||h._muted||r._muted||P.muted,P.volume=m._volume*r.volume(),P.playbackRate=m._rate;try{var T=P.play();if(T&&typeof Promise<"u"&&(T instanceof Promise||typeof T.then=="function")?(h._playLock=!0,R(),T.then(function(){h._playLock=!1,P._unlocked=!0,f?h._loadQueue():h._emit("play",m._id)}).catch(function(){h._playLock=!1,h._emit("playerror",m._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."),m._ended=!0,m._paused=!0})):f||(h._playLock=!1,R(),h._emit("play",m._id)),P.playbackRate=m._rate,P.paused){h._emit("playerror",m._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");return}u!=="__default"||m._loop?h._endTimers[m._id]=setTimeout(h._ended.bind(h,m),w):(h._endTimers[m._id]=function(){h._ended(m),P.removeEventListener("ended",h._endTimers[m._id],!1)},P.addEventListener("ended",h._endTimers[m._id],!1))}catch(D){h._emit("playerror",m._id,D)}};P.src==="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"&&(P.src=h._src,P.load());var A=window&&window.ejecta||!P.readyState&&r._navigator.isCocoonJS;if(P.readyState>=3||A)O();else{h._playLock=!0,h._state="loading";var x=function(){h._state="loaded",O(),P.removeEventListener(r._canPlayEvent,x,!1)};P.addEventListener(r._canPlayEvent,x,!1),h._clearTimer(m._id)}}return m._id},pause:function(u){var f=this;if(f._state!=="loaded"||f._playLock)return f._queue.push({event:"pause",action:function(){f.pause(u)}}),f;for(var h=f._getSoundIds(u),v=0;v<h.length;v++){f._clearTimer(h[v]);var y=f._soundById(h[v]);if(y&&!y._paused&&(y._seek=f.seek(h[v]),y._rateSeek=0,y._paused=!0,f._stopFade(h[v]),y._node))if(f._webAudio){if(!y._node.bufferSource)continue;typeof y._node.bufferSource.stop>"u"?y._node.bufferSource.noteOff(0):y._node.bufferSource.stop(0),f._cleanBuffer(y._node)}else(!isNaN(y._node.duration)||y._node.duration===1/0)&&y._node.pause();arguments[1]||f._emit("pause",y?y._id:null)}return f},stop:function(u,f){var h=this;if(h._state!=="loaded"||h._playLock)return h._queue.push({event:"stop",action:function(){h.stop(u)}}),h;for(var v=h._getSoundIds(u),y=0;y<v.length;y++){h._clearTimer(v[y]);var g=h._soundById(v[y]);g&&(g._seek=g._start||0,g._rateSeek=0,g._paused=!0,g._ended=!0,h._stopFade(v[y]),g._node&&(h._webAudio?g._node.bufferSource&&(typeof g._node.bufferSource.stop>"u"?g._node.bufferSource.noteOff(0):g._node.bufferSource.stop(0),h._cleanBuffer(g._node)):(!isNaN(g._node.duration)||g._node.duration===1/0)&&(g._node.currentTime=g._start||0,g._node.pause(),g._node.duration===1/0&&h._clearSound(g._node))),f||h._emit("stop",g._id))}return h},mute:function(u,f){var h=this;if(h._state!=="loaded"||h._playLock)return h._queue.push({event:"mute",action:function(){h.mute(u,f)}}),h;if(typeof f>"u")if(typeof u=="boolean")h._muted=u;else return h._muted;for(var v=h._getSoundIds(f),y=0;y<v.length;y++){var g=h._soundById(v[y]);g&&(g._muted=u,g._interval&&h._stopFade(g._id),h._webAudio&&g._node?g._node.gain.setValueAtTime(u?0:g._volume,r.ctx.currentTime):g._node&&(g._node.muted=r._muted?!0:u),h._emit("mute",g._id))}return h},volume:function(){var u=this,f=arguments,h,v;if(f.length===0)return u._volume;if(f.length===1||f.length===2&&typeof f[1]>"u"){var y=u._getSoundIds(),g=y.indexOf(f[0]);g>=0?v=parseInt(f[0],10):h=parseFloat(f[0])}else f.length>=2&&(h=parseFloat(f[0]),v=parseInt(f[1],10));var m;if(typeof h<"u"&&h>=0&&h<=1){if(u._state!=="loaded"||u._playLock)return u._queue.push({event:"volume",action:function(){u.volume.apply(u,f)}}),u;typeof v>"u"&&(u._volume=h),v=u._getSoundIds(v);for(var S=0;S<v.length;S++)m=u._soundById(v[S]),m&&(m._volume=h,f[2]||u._stopFade(v[S]),u._webAudio&&m._node&&!m._muted?m._node.gain.setValueAtTime(h,r.ctx.currentTime):m._node&&!m._muted&&(m._node.volume=h*r.volume()),u._emit("volume",m._id))}else return m=v?u._soundById(v):u._sounds[0],m?m._volume:0;return u},fade:function(u,f,h,v){var y=this;if(y._state!=="loaded"||y._playLock)return y._queue.push({event:"fade",action:function(){y.fade(u,f,h,v)}}),y;u=Math.min(Math.max(0,parseFloat(u)),1),f=Math.min(Math.max(0,parseFloat(f)),1),h=parseFloat(h),y.volume(u,v);for(var g=y._getSoundIds(v),m=0;m<g.length;m++){var S=y._soundById(g[m]);if(S){if(v||y._stopFade(g[m]),y._webAudio&&!S._muted){var C=r.ctx.currentTime,b=C+h/1e3;S._volume=u,S._node.gain.setValueAtTime(u,C),S._node.gain.linearRampToValueAtTime(f,b)}y._startFadeInterval(S,u,f,h,g[m],typeof v>"u")}}return y},_startFadeInterval:function(u,f,h,v,y,g){var m=this,S=f,C=h-f,b=Math.abs(C/.01),w=Math.max(4,b>0?v/b:v),E=Date.now();u._fadeTo=h,u._interval=setInterval(function(){var _=(Date.now()-E)/v;E=Date.now(),S+=C*_,S=Math.round(S*100)/100,C<0?S=Math.max(h,S):S=Math.min(h,S),m._webAudio?u._volume=S:m.volume(S,u._id,!0),g&&(m._volume=S),(h<f&&S<=h||h>f&&S>=h)&&(clearInterval(u._interval),u._interval=null,u._fadeTo=null,m.volume(h,u._id),m._emit("fade",u._id))},w)},_stopFade:function(u){var f=this,h=f._soundById(u);return h&&h._interval&&(f._webAudio&&h._node.gain.cancelScheduledValues(r.ctx.currentTime),clearInterval(h._interval),h._interval=null,f.volume(h._fadeTo,u),h._fadeTo=null,f._emit("fade",u)),f},loop:function(){var u=this,f=arguments,h,v,y;if(f.length===0)return u._loop;if(f.length===1)if(typeof f[0]=="boolean")h=f[0],u._loop=h;else return y=u._soundById(parseInt(f[0],10)),y?y._loop:!1;else f.length===2&&(h=f[0],v=parseInt(f[1],10));for(var g=u._getSoundIds(v),m=0;m<g.length;m++)y=u._soundById(g[m]),y&&(y._loop=h,u._webAudio&&y._node&&y._node.bufferSource&&(y._node.bufferSource.loop=h,h&&(y._node.bufferSource.loopStart=y._start||0,y._node.bufferSource.loopEnd=y._stop,u.playing(g[m])&&(u.pause(g[m],!0),u.play(g[m],!0)))));return u},rate:function(){var u=this,f=arguments,h,v;if(f.length===0)v=u._sounds[0]._id;else if(f.length===1){var y=u._getSoundIds(),g=y.indexOf(f[0]);g>=0?v=parseInt(f[0],10):h=parseFloat(f[0])}else f.length===2&&(h=parseFloat(f[0]),v=parseInt(f[1],10));var m;if(typeof h=="number"){if(u._state!=="loaded"||u._playLock)return u._queue.push({event:"rate",action:function(){u.rate.apply(u,f)}}),u;typeof v>"u"&&(u._rate=h),v=u._getSoundIds(v);for(var S=0;S<v.length;S++)if(m=u._soundById(v[S]),m){u.playing(v[S])&&(m._rateSeek=u.seek(v[S]),m._playStart=u._webAudio?r.ctx.currentTime:m._playStart),m._rate=h,u._webAudio&&m._node&&m._node.bufferSource?m._node.bufferSource.playbackRate.setValueAtTime(h,r.ctx.currentTime):m._node&&(m._node.playbackRate=h);var C=u.seek(v[S]),b=(u._sprite[m._sprite][0]+u._sprite[m._sprite][1])/1e3-C,w=b*1e3/Math.abs(m._rate);(u._endTimers[v[S]]||!m._paused)&&(u._clearTimer(v[S]),u._endTimers[v[S]]=setTimeout(u._ended.bind(u,m),w)),u._emit("rate",m._id)}}else return m=u._soundById(v),m?m._rate:u._rate;return u},seek:function(){var u=this,f=arguments,h,v;if(f.length===0)u._sounds.length&&(v=u._sounds[0]._id);else if(f.length===1){var y=u._getSoundIds(),g=y.indexOf(f[0]);g>=0?v=parseInt(f[0],10):u._sounds.length&&(v=u._sounds[0]._id,h=parseFloat(f[0]))}else f.length===2&&(h=parseFloat(f[0]),v=parseInt(f[1],10));if(typeof v>"u")return 0;if(typeof h=="number"&&(u._state!=="loaded"||u._playLock))return u._queue.push({event:"seek",action:function(){u.seek.apply(u,f)}}),u;var m=u._soundById(v);if(m)if(typeof h=="number"&&h>=0){var S=u.playing(v);S&&u.pause(v,!0),m._seek=h,m._ended=!1,u._clearTimer(v),!u._webAudio&&m._node&&!isNaN(m._node.duration)&&(m._node.currentTime=h);var C=function(){S&&u.play(v,!0),u._emit("seek",v)};if(S&&!u._webAudio){var b=function(){u._playLock?setTimeout(b,0):C()};setTimeout(b,0)}else C()}else if(u._webAudio){var w=u.playing(v)?r.ctx.currentTime-m._playStart:0,E=m._rateSeek?m._rateSeek-m._seek:0;return m._seek+(E+w*Math.abs(m._rate))}else return m._node.currentTime;return u},playing:function(u){var f=this;if(typeof u=="number"){var h=f._soundById(u);return h?!h._paused:!1}for(var v=0;v<f._sounds.length;v++)if(!f._sounds[v]._paused)return!0;return!1},duration:function(u){var f=this,h=f._duration,v=f._soundById(u);return v&&(h=f._sprite[v._sprite][1]/1e3),h},state:function(){return this._state},unload:function(){for(var u=this,f=u._sounds,h=0;h<f.length;h++)f[h]._paused||u.stop(f[h]._id),u._webAudio||(u._clearSound(f[h]._node),f[h]._node.removeEventListener("error",f[h]._errorFn,!1),f[h]._node.removeEventListener(r._canPlayEvent,f[h]._loadFn,!1),f[h]._node.removeEventListener("ended",f[h]._endFn,!1),r._releaseHtml5Audio(f[h]._node)),delete f[h]._node,u._clearTimer(f[h]._id);var v=r._howls.indexOf(u);v>=0&&r._howls.splice(v,1);var y=!0;for(h=0;h<r._howls.length;h++)if(r._howls[h]._src===u._src||u._src.indexOf(r._howls[h]._src)>=0){y=!1;break}return o&&y&&delete o[u._src],r.noAudio=!1,u._state="unloaded",u._sounds=[],u=null,null},on:function(u,f,h,v){var y=this,g=y["_on"+u];return typeof f=="function"&&g.push(v?{id:h,fn:f,once:v}:{id:h,fn:f}),y},off:function(u,f,h){var v=this,y=v["_on"+u],g=0;if(typeof f=="number"&&(h=f,f=null),f||h)for(g=0;g<y.length;g++){var m=h===y[g].id;if(f===y[g].fn&&m||!f&&m){y.splice(g,1);break}}else if(u)v["_on"+u]=[];else{var S=Object.keys(v);for(g=0;g<S.length;g++)S[g].indexOf("_on")===0&&Array.isArray(v[S[g]])&&(v[S[g]]=[])}return v},once:function(u,f,h){var v=this;return v.on(u,f,h,1),v},_emit:function(u,f,h){for(var v=this,y=v["_on"+u],g=y.length-1;g>=0;g--)(!y[g].id||y[g].id===f||u==="load")&&(setTimeout((function(m){m.call(this,f,h)}).bind(v,y[g].fn),0),y[g].once&&v.off(u,y[g].fn,y[g].id));return v._loadQueue(u),v},_loadQueue:function(u){var f=this;if(f._queue.length>0){var h=f._queue[0];h.event===u&&(f._queue.shift(),f._loadQueue()),u||h.action()}return f},_ended:function(u){var f=this,h=u._sprite;if(!f._webAudio&&u._node&&!u._node.paused&&!u._node.ended&&u._node.currentTime<u._stop)return setTimeout(f._ended.bind(f,u),100),f;var v=!!(u._loop||f._sprite[h][2]);if(f._emit("end",u._id),!f._webAudio&&v&&f.stop(u._id,!0).play(u._id),f._webAudio&&v){f._emit("play",u._id),u._seek=u._start||0,u._rateSeek=0,u._playStart=r.ctx.currentTime;var y=(u._stop-u._start)*1e3/Math.abs(u._rate);f._endTimers[u._id]=setTimeout(f._ended.bind(f,u),y)}return f._webAudio&&!v&&(u._paused=!0,u._ended=!0,u._seek=u._start||0,u._rateSeek=0,f._clearTimer(u._id),f._cleanBuffer(u._node),r._autoSuspend()),!f._webAudio&&!v&&f.stop(u._id,!0),f},_clearTimer:function(u){var f=this;if(f._endTimers[u]){if(typeof f._endTimers[u]!="function")clearTimeout(f._endTimers[u]);else{var h=f._soundById(u);h&&h._node&&h._node.removeEventListener("ended",f._endTimers[u],!1)}delete f._endTimers[u]}return f},_soundById:function(u){for(var f=this,h=0;h<f._sounds.length;h++)if(u===f._sounds[h]._id)return f._sounds[h];return null},_inactiveSound:function(){var u=this;u._drain();for(var f=0;f<u._sounds.length;f++)if(u._sounds[f]._ended)return u._sounds[f].reset();return new i(u)},_drain:function(){var u=this,f=u._pool,h=0,v=0;if(!(u._sounds.length<f)){for(v=0;v<u._sounds.length;v++)u._sounds[v]._ended&&h++;for(v=u._sounds.length-1;v>=0;v--){if(h<=f)return;u._sounds[v]._ended&&(u._webAudio&&u._sounds[v]._node&&u._sounds[v]._node.disconnect(0),u._sounds.splice(v,1),h--)}}},_getSoundIds:function(u){var f=this;if(typeof u>"u"){for(var h=[],v=0;v<f._sounds.length;v++)h.push(f._sounds[v]._id);return h}else return[u]},_refreshBuffer:function(u){var f=this;return u._node.bufferSource=r.ctx.createBufferSource(),u._node.bufferSource.buffer=o[f._src],u._panner?u._node.bufferSource.connect(u._panner):u._node.bufferSource.connect(u._node),u._node.bufferSource.loop=u._loop,u._loop&&(u._node.bufferSource.loopStart=u._start||0,u._node.bufferSource.loopEnd=u._stop||0),u._node.bufferSource.playbackRate.setValueAtTime(u._rate,r.ctx.currentTime),f},_cleanBuffer:function(u){var f=this,h=r._navigator&&r._navigator.vendor.indexOf("Apple")>=0;if(!u.bufferSource)return f;if(r._scratchBuffer&&u.bufferSource&&(u.bufferSource.onended=null,u.bufferSource.disconnect(0),h))try{u.bufferSource.buffer=r._scratchBuffer}catch{}return u.bufferSource=null,f},_clearSound:function(u){var f=/MSIE |Trident\//.test(r._navigator&&r._navigator.userAgent);f||(u.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")}};var i=function(u){this._parent=u,this.init()};i.prototype={init:function(){var u=this,f=u._parent;return u._muted=f._muted,u._loop=f._loop,u._volume=f._volume,u._rate=f._rate,u._seek=0,u._paused=!0,u._ended=!0,u._sprite="__default",u._id=++r._counter,f._sounds.push(u),u.create(),u},create:function(){var u=this,f=u._parent,h=r._muted||u._muted||u._parent._muted?0:u._volume;return f._webAudio?(u._node=typeof r.ctx.createGain>"u"?r.ctx.createGainNode():r.ctx.createGain(),u._node.gain.setValueAtTime(h,r.ctx.currentTime),u._node.paused=!0,u._node.connect(r.masterGain)):r.noAudio||(u._node=r._obtainHtml5Audio(),u._errorFn=u._errorListener.bind(u),u._node.addEventListener("error",u._errorFn,!1),u._loadFn=u._loadListener.bind(u),u._node.addEventListener(r._canPlayEvent,u._loadFn,!1),u._endFn=u._endListener.bind(u),u._node.addEventListener("ended",u._endFn,!1),u._node.src=f._src,u._node.preload=f._preload===!0?"auto":f._preload,u._node.volume=h*r.volume(),u._node.load()),u},reset:function(){var u=this,f=u._parent;return u._muted=f._muted,u._loop=f._loop,u._volume=f._volume,u._rate=f._rate,u._seek=0,u._rateSeek=0,u._paused=!0,u._ended=!0,u._sprite="__default",u._id=++r._counter,u},_errorListener:function(){var u=this;u._parent._emit("loaderror",u._id,u._node.error?u._node.error.code:0),u._node.removeEventListener("error",u._errorFn,!1)},_loadListener:function(){var u=this,f=u._parent;f._duration=Math.ceil(u._node.duration*10)/10,Object.keys(f._sprite).length===0&&(f._sprite={__default:[0,f._duration*1e3]}),f._state!=="loaded"&&(f._state="loaded",f._emit("load"),f._loadQueue()),u._node.removeEventListener(r._canPlayEvent,u._loadFn,!1)},_endListener:function(){var u=this,f=u._parent;f._duration===1/0&&(f._duration=Math.ceil(u._node.duration*10)/10,f._sprite.__default[1]===1/0&&(f._sprite.__default[1]=f._duration*1e3),f._ended(u)),u._node.removeEventListener("ended",u._endFn,!1)}};var o={},a=function(u){var f=u._src;if(o[f]){u._duration=o[f].duration,c(u);return}if(/^data:[^;]+;base64,/.test(f)){for(var h=atob(f.split(",")[1]),v=new Uint8Array(h.length),y=0;y<h.length;++y)v[y]=h.charCodeAt(y);l(v.buffer,u)}else{var g=new XMLHttpRequest;g.open(u._xhr.method,f,!0),g.withCredentials=u._xhr.withCredentials,g.responseType="arraybuffer",u._xhr.headers&&Object.keys(u._xhr.headers).forEach(function(m){g.setRequestHeader(m,u._xhr.headers[m])}),g.onload=function(){var m=(g.status+"")[0];if(m!=="0"&&m!=="2"&&m!=="3"){u._emit("loaderror",null,"Failed loading audio file with status: "+g.status+".");return}l(g.response,u)},g.onerror=function(){u._webAudio&&(u._html5=!0,u._webAudio=!1,u._sounds=[],delete o[f],u.load())},s(g)}},s=function(u){try{u.send()}catch{u.onerror()}},l=function(u,f){var h=function(){f._emit("loaderror",null,"Decoding audio data failed.")},v=function(y){y&&f._sounds.length>0?(o[f._src]=y,c(f,y)):h()};typeof Promise<"u"&&r.ctx.decodeAudioData.length===1?r.ctx.decodeAudioData(u).then(v).catch(h):r.ctx.decodeAudioData(u,v,h)},c=function(u,f){f&&!u._duration&&(u._duration=f.duration),Object.keys(u._sprite).length===0&&(u._sprite={__default:[0,u._duration*1e3]}),u._state!=="loaded"&&(u._state="loaded",u._emit("load"),u._loadQueue())},d=function(){if(r.usingWebAudio){try{typeof AudioContext<"u"?r.ctx=new AudioContext:typeof webkitAudioContext<"u"?r.ctx=new webkitAudioContext:r.usingWebAudio=!1}catch{r.usingWebAudio=!1}r.ctx||(r.usingWebAudio=!1);var u=/iP(hone|od|ad)/.test(r._navigator&&r._navigator.platform),f=r._navigator&&r._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),h=f?parseInt(f[1],10):null;if(u&&h&&h<9){var v=/safari/.test(r._navigator&&r._navigator.userAgent.toLowerCase());r._navigator&&!v&&(r.usingWebAudio=!1)}r.usingWebAudio&&(r.masterGain=typeof r.ctx.createGain>"u"?r.ctx.createGainNode():r.ctx.createGain(),r.masterGain.gain.setValueAtTime(r._muted?0:r._volume,r.ctx.currentTime),r.masterGain.connect(r.ctx.destination)),r._setup()}};e.Howler=r,e.Howl=n,typeof Ht<"u"?(Ht.HowlerGlobal=t,Ht.Howler=r,Ht.Howl=n,Ht.Sound=i):typeof window<"u"&&(window.HowlerGlobal=t,window.Howler=r,window.Howl=n,window.Sound=i)})();/*!
549 *  Spatial Plugin - Adds support for stereo and 3D audio where Web Audio is supported.
550 *  
551 *  howler.js v2.2.4
552 *  howlerjs.com
553 *
554 *  (c) 2013-2020, James Simpson of GoldFire Studios
555 *  goldfirestudios.com
556 *
557 *  MIT License
558 */(function(){HowlerGlobal.prototype._pos=[0,0,0],HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0],HowlerGlobal.prototype.stereo=function(r){var n=this;if(!n.ctx||!n.ctx.listener)return n;for(var i=n._howls.length-1;i>=0;i--)n._howls[i].stereo(r);return n},HowlerGlobal.prototype.pos=function(r,n,i){var o=this;if(!o.ctx||!o.ctx.listener)return o;if(n=typeof n!="number"?o._pos[1]:n,i=typeof i!="number"?o._pos[2]:i,typeof r=="number")o._pos=[r,n,i],typeof o.ctx.listener.positionX<"u"?(o.ctx.listener.positionX.setTargetAtTime(o._pos[0],Howler.ctx.currentTime,.1),o.ctx.listener.positionY.setTargetAtTime(o._pos[1],Howler.ctx.currentTime,.1),o.ctx.listener.positionZ.setTargetAtTime(o._pos[2],Howler.ctx.currentTime,.1)):o.ctx.listener.setPosition(o._pos[0],o._pos[1],o._pos[2]);else return o._pos;return o},HowlerGlobal.prototype.orientation=function(r,n,i,o,a,s){var l=this;if(!l.ctx||!l.ctx.listener)return l;var c=l._orientation;if(n=typeof n!="number"?c[1]:n,i=typeof i!="number"?c[2]:i,o=typeof o!="number"?c[3]:o,a=typeof a!="number"?c[4]:a,s=typeof s!="number"?c[5]:s,typeof r=="number")l._orientation=[r,n,i,o,a,s],typeof l.ctx.listener.forwardX<"u"?(l.ctx.listener.forwardX.setTargetAtTime(r,Howler.ctx.currentTime,.1),l.ctx.listener.forwardY.setTargetAtTime(n,Howler.ctx.currentTime,.1),l.ctx.listener.forwardZ.setTargetAtTime(i,Howler.ctx.currentTime,.1),l.ctx.listener.upX.setTargetAtTime(o,Howler.ctx.currentTime,.1),l.ctx.listener.upY.setTargetAtTime(a,Howler.ctx.currentTime,.1),l.ctx.listener.upZ.setTargetAtTime(s,Howler.ctx.currentTime,.1)):l.ctx.listener.setOrientation(r,n,i,o,a,s);else return c;return l},Howl.prototype.init=function(r){return function(n){var i=this;return i._orientation=n.orientation||[1,0,0],i._stereo=n.stereo||null,i._pos=n.pos||null,i._pannerAttr={coneInnerAngle:typeof n.coneInnerAngle<"u"?n.coneInnerAngle:360,coneOuterAngle:typeof n.coneOuterAngle<"u"?n.coneOuterAngle:360,coneOuterGain:typeof n.coneOuterGain<"u"?n.coneOuterGain:0,distanceModel:typeof n.distanceModel<"u"?n.distanceModel:"inverse",maxDistance:typeof n.maxDistance<"u"?n.maxDistance:1e4,panningModel:typeof n.panningModel<"u"?n.panningModel:"HRTF",refDistance:typeof n.refDistance<"u"?n.refDistance:1,rolloffFactor:typeof n.rolloffFactor<"u"?n.rolloffFactor:1},i._onstereo=n.onstereo?[{fn:n.onstereo}]:[],i._onpos=n.onpos?[{fn:n.onpos}]:[],i._onorientation=n.onorientation?[{fn:n.onorientation}]:[],r.call(this,n)}}(Howl.prototype.init),Howl.prototype.stereo=function(r,n){var i=this;if(!i._webAudio)return i;if(i._state!=="loaded")return i._queue.push({event:"stereo",action:function(){i.stereo(r,n)}}),i;var o=typeof Howler.ctx.createStereoPanner>"u"?"spatial":"stereo";if(typeof n>"u")if(typeof r=="number")i._stereo=r,i._pos=[r,0,0];else return i._stereo;for(var a=i._getSoundIds(n),s=0;s<a.length;s++){var l=i._soundById(a[s]);if(l)if(typeof r=="number")l._stereo=r,l._pos=[r,0,0],l._node&&(l._pannerAttr.panningModel="equalpower",(!l._panner||!l._panner.pan)&&t(l,o),o==="spatial"?typeof l._panner.positionX<"u"?(l._panner.positionX.setValueAtTime(r,Howler.ctx.currentTime),l._panner.positionY.setValueAtTime(0,Howler.ctx.currentTime),l._panner.positionZ.setValueAtTime(0,Howler.ctx.currentTime)):l._panner.setPosition(r,0,0):l._panner.pan.setValueAtTime(r,Howler.ctx.currentTime)),i._emit("stereo",l._id);else return l._stereo}return i},Howl.prototype.pos=function(r,n,i,o){var a=this;if(!a._webAudio)return a;if(a._state!=="loaded")return a._queue.push({event:"pos",action:function(){a.pos(r,n,i,o)}}),a;if(n=typeof n!="number"?0:n,i=typeof i!="number"?-.5:i,typeof o>"u")if(typeof r=="number")a._pos=[r,n,i];else return a._pos;for(var s=a._getSoundIds(o),l=0;l<s.length;l++){var c=a._soundById(s[l]);if(c)if(typeof r=="number")c._pos=[r,n,i],c._node&&((!c._panner||c._panner.pan)&&t(c,"spatial"),typeof c._panner.positionX<"u"?(c._panner.positionX.setValueAtTime(r,Howler.ctx.currentTime),c._panner.positionY.setValueAtTime(n,Howler.ctx.currentTime),c._panner.positionZ.setValueAtTime(i,Howler.ctx.currentTime)):c._panner.setPosition(r,n,i)),a._emit("pos",c._id);else return c._pos}return a},Howl.prototype.orientation=function(r,n,i,o){var a=this;if(!a._webAudio)return a;if(a._state!=="loaded")return a._queue.push({event:"orientation",action:function(){a.orientation(r,n,i,o)}}),a;if(n=typeof n!="number"?a._orientation[1]:n,i=typeof i!="number"?a._orientation[2]:i,typeof o>"u")if(typeof r=="number")a._orientation=[r,n,i];else return a._orientation;for(var s=a._getSoundIds(o),l=0;l<s.length;l++){var c=a._soundById(s[l]);if(c)if(typeof r=="number")c._orientation=[r,n,i],c._node&&(c._panner||(c._pos||(c._pos=a._pos||[0,0,-.5]),t(c,"spatial")),typeof c._panner.orientationX<"u"?(c._panner.orientationX.setValueAtTime(r,Howler.ctx.currentTime),c._panner.orientationY.setValueAtTime(n,Howler.ctx.currentTime),c._panner.orientationZ.setValueAtTime(i,Howler.ctx.currentTime)):c._panner.setOrientation(r,n,i)),a._emit("orientation",c._id);else return c._orientation}return a},Howl.prototype.pannerAttr=function(){var r=this,n=arguments,i,o,a;if(!r._webAudio)return r;if(n.length===0)return r._pannerAttr;if(n.length===1)if(typeof n[0]=="object")i=n[0],typeof o>"u"&&(i.pannerAttr||(i.pannerAttr={coneInnerAngle:i.coneInnerAngle,coneOuterAngle:i.coneOuterAngle,coneOuterGain:i.coneOuterGain,distanceModel:i.distanceModel,maxDistance:i.maxDistance,refDistance:i.refDistance,rolloffFactor:i.rolloffFactor,panningModel:i.panningModel}),r._pannerAttr={coneInnerAngle:typeof i.pannerAttr.coneInnerAngle<"u"?i.pannerAttr.coneInnerAngle:r._coneInnerAngle,coneOuterAngle:typeof i.pannerAttr.coneOuterAngle<"u"?i.pannerAttr.coneOuterAngle:r._coneOuterAngle,coneOuterGain:typeof i.pannerAttr.coneOuterGain<"u"?i.pannerAttr.coneOuterGain:r._coneOuterGain,distanceModel:typeof i.pannerAttr.distanceModel<"u"?i.pannerAttr.distanceModel:r._distanceModel,maxDistance:typeof i.pannerAttr.maxDistance<"u"?i.pannerAttr.maxDistance:r._maxDistance,refDistance:typeof i.pannerAttr.refDistance<"u"?i.pannerAttr.refDistance:r._refDistance,rolloffFactor:typeof i.pannerAttr.rolloffFactor<"u"?i.pannerAttr.rolloffFactor:r._rolloffFactor,panningModel:typeof i.pannerAttr.panningModel<"u"?i.pannerAttr.panningModel:r._panningModel});else return a=r._soundById(parseInt(n[0],10)),a?a._pannerAttr:r._pannerAttr;else n.length===2&&(i=n[0],o=parseInt(n[1],10));for(var s=r._getSoundIds(o),l=0;l<s.length;l++)if(a=r._soundById(s[l]),a){var c=a._pannerAttr;c={coneInnerAngle:typeof i.coneInnerAngle<"u"?i.coneInnerAngle:c.coneInnerAngle,coneOuterAngle:typeof i.coneOuterAngle<"u"?i.coneOuterAngle:c.coneOuterAngle,coneOuterGain:typeof i.coneOuterGain<"u"?i.coneOuterGain:c.coneOuterGain,distanceModel:typeof i.distanceModel<"u"?i.distanceModel:c.distanceModel,maxDistance:typeof i.maxDistance<"u"?i.maxDistance:c.maxDistance,refDistance:typeof i.refDistance<"u"?i.refDistance:c.refDistance,rolloffFactor:typeof i.rolloffFactor<"u"?i.rolloffFactor:c.rolloffFactor,panningModel:typeof i.panningModel<"u"?i.panningModel:c.panningModel};var d=a._panner;d||(a._pos||(a._pos=r._pos||[0,0,-.5]),t(a,"spatial"),d=a._panner),d.coneInnerAngle=c.coneInnerAngle,d.coneOuterAngle=c.coneOuterAngle,d.coneOuterGain=c.coneOuterGain,d.distanceModel=c.distanceModel,d.maxDistance=c.maxDistance,d.refDistance=c.refDistance,d.rolloffFactor=c.rolloffFactor,d.panningModel=c.panningModel}return r},Sound.prototype.init=function(r){return function(){var n=this,i=n._parent;n._orientation=i._orientation,n._stereo=i._stereo,n._pos=i._pos,n._pannerAttr=i._pannerAttr,r.call(this),n._stereo?i.stereo(n._stereo):n._pos&&i.pos(n._pos[0],n._pos[1],n._pos[2],n._id)}}(Sound.prototype.init),Sound.prototype.reset=function(r){return function(){var n=this,i=n._parent;return n._orientation=i._orientation,n._stereo=i._stereo,n._pos=i._pos,n._pannerAttr=i._pannerAttr,n._stereo?i.stereo(n._stereo):n._pos?i.pos(n._pos[0],n._pos[1],n._pos[2],n._id):n._panner&&(n._panner.disconnect(0),n._panner=void 0,i._refreshBuffer(n)),r.call(this)}}(Sound.prototype.reset);var t=function(r,n){n=n||"spatial",n==="spatial"?(r._panner=Howler.ctx.createPanner(),r._panner.coneInnerAngle=r._pannerAttr.coneInnerAngle,r._panner.coneOuterAngle=r._pannerAttr.coneOuterAngle,r._panner.coneOuterGain=r._pannerAttr.coneOuterGain,r._panner.distanceModel=r._pannerAttr.distanceModel,r._panner.maxDistance=r._pannerAttr.maxDistance,r._panner.refDistance=r._pannerAttr.refDistance,r._panner.rolloffFactor=r._pannerAttr.rolloffFactor,r._panner.panningModel=r._pannerAttr.panningModel,typeof r._panner.positionX<"u"?(r._panner.positionX.setValueAtTime(r._pos[0],Howler.ctx.currentTime),r._panner.positionY.setValueAtTime(r._pos[1],Howler.ctx.currentTime),r._panner.positionZ.setValueAtTime(r._pos[2],Howler.ctx.currentTime)):r._panner.setPosition(r._pos[0],r._pos[1],r._pos[2]),typeof r._panner.orientationX<"u"?(r._panner.orientationX.setValueAtTime(r._orientation[0],Howler.ctx.currentTime),r._panner.orientationY.setValueAtTime(r._orientation[1],Howler.ctx.currentTime),r._panner.orientationZ.setValueAtTime(r._orientation[2],Howler.ctx.currentTime)):r._panner.setOrientation(r._orientation[0],r._orientation[1],r._orientation[2])):(r._panner=Howler.ctx.createStereoPanner(),r._panner.pan.setValueAtTime(r._stereo,Howler.ctx.currentTime)),r._panner.connect(r._node),r._paused||r._parent.pause(r._id,!0).play(r._id,!0)}})()})(eL);function XQe(e){for(var t="",r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
558+/",n=new Uint8Array(e),i=n.byteLength,o=i%3,a=i-o,s,l,c,d,u,f=0;f<a;f=f+3)u=n[f]<<16|n[f+1]<<8|n[f+2],s=(u&16515072)>>18,l=(u&258048)>>12,c=(u&4032)>>6,d=u&63,t+=r[s]+r[l]+r[c]+r[d];return o==1?(u=n[a],s=(u&252)>>2,l=(u&3)<<4,t+=r[s]+r[l]+"=="):o==2&&(u=n[a]<<8|n[a+1],s=(u&64512)>>10,l=(u&1008)>>4,c=(u&15)<<2,t+=r[s]+r[l]+r[c]+"="),t}const QQe={"af-ZA":"af-ZA-Adri","am-ET":"am-ET-Ameha","ar-AE":"ar-AE-Fatima","ar-BH":"ar-BH-Ali","ar-DZ":"ar-DZ-Amina","ar-EG":"ar-EG-Salma","ar-IQ":"ar-IQ-Bassel","ar-JO":"ar-JO-Sana","ar-KW":"ar-KW-Fahed","ar-LY":"ar-LY-Iman","ar-MA":"ar-MA-Jamal","ar-QA":"ar-QA-Amal","ar-SA":"ar-SA-Hamed","ar-SY":"ar-SY-Amany","ar-TN":"ar-TN-Hedi","ar-YE":"ar-YE-Maryam","bg-BG":"bg-BG-Borislav","bn-BD":"bn-BD-Nabanita","bn-IN":"bn-IN-Bashkar","ca-ES":"ca-ES-Joana","cs-CZ":"cs-CZ-Antonin","cy-GB":"cy-GB-Aled","da-DK":"da-DK-Christel","de-AT":"de-AT-Ingrid","de-CH":"de-CH-Jan","de-DE":"de-DE-Katja","el-GR":"el-GR-Athina","en-AU":"en-AU-Natasha","en-CA":"en-CA-Clara","en-GB":"en-GB-Libby","en-HK":"en-HK-Sam","en-IE":"en-IE-Connor","en-IN":"en-IN-Neerja","en-KE":"en-KE-Asilia","en-NG":"en-NG-Abeo","en-NZ":"en-NZ-Mitchell","en-PH":"en-PH-James","en-SG":"en-SG-Luna","en-TZ":"en-TZ-Elimu","en-US":"en-US-Jenny","en-ZA":"en-ZA-Leah","es-AR":"es-AR-Elena","es-BO":"es-BO-Marcelo","es-CL":"es-CL-Catalina","es-CO":"es-CO-Gonzalo","es-CR":"es-CR-Juan","es-CU":"es-CU-Belkys","es-DO":"es-DO-Emilio","es-EC":"es-EC-Andrea","es-ES":"es-ES-Alvaro","es-GQ":"es-GQ-Javier","es-GT":"es-GT-Andres","es-HN":"es-HN-Carlos","es-MX":"es-MX-Dalia","es-NI":"es-NI-Federico","es-PA":"es-PA-Margarita","es-PE":"es-PE-Alex","es-PR":"es-PR-Karina","es-PY":"es-PY-Mario","es-SV":"es-SV-Lorena","es-US":"es-US-Alonso","es-UY":"es-UY-Mateo","es-VE":"es-VE-Paola","et-EE":"et-EE-Anu","fa-IR":"fa-IR-Dilara","fi-FI":"fi-FI-Selma","fil-PH":"fil-PH-Angelo","fr-BE":"fr-BE-Charline","fr-CA":"fr-CA-Sylvie","fr-CH":"fr-CH-Ariane","fr-FR":"fr-FR-Denise","ga-IE":"ga-IE-Colm","gl-ES":"gl-ES-Roi","gu-IN":"gu-IN-Dhwani","he-IL":"he-IL-Avri","hi-IN":"hi-IN-Madhur","hr-HR":"hr-HR-Gabrijela","hu-HU":"hu-HU-Noemi","id-ID":"id-ID-Ardi","is-IS":"is-IS-Gudrun","it-IT":"it-IT-Isabella","ja-JP":"ja-JP-Nanami","jv-ID":"jv-ID-Dimas","kk-KZ":"kk-KZ-Aigul","km-KH":"km-KH-Piseth","kn-IN":"kn-IN-Gagan","ko-KR":"ko-KR-SunHi","lo-LA":"lo-LA-Chanthavong","lt-LT":"lt-LT-Leonas","lv-LV":"lv-LV-Everita","mk-MK":"mk-MK-Aleksandar","ml-IN":"ml-IN-Midhun","mr-IN":"mr-IN-Aarohi","ms-MY":"ms-MY-Osman","mt-MT":"mt-MT-Grace","my-MM":"my-MM-Nilar","nb-NO":"nb-NO-Pernille","nl-BE":"nl-BE-Arnaud","nl-NL":"nl-NL-Colette","pl-PL":"pl-PL-Agnieszka","ps-AF":"ps-AF-GulNawaz","pt-BR":"pt-BR-Francisca","pt-PT":"pt-PT-Duarte","ro-RO":"ro-RO-Alina","ru-RU":"ru-RU-Svetlana","si-LK":"si-LK-Sameera","sk-SK":"sk-SK-Lukas","sl-SI":"sl-SI-Petra","so-SO":"so-SO-Muuse","sr-RS":"sr-RS-Nicholas","su-ID":"su-ID-Jajang","sv-SE":"sv-SE-Sofie","sw-KE":"sw-KE-Rafiki","sw-TZ":"sw-TZ-Daudi","ta-IN":"ta-IN-Pallavi","ta-LK":"ta-LK-Kumar","ta-SG":"ta-SG-Anbu","te-IN":"te-IN-Mohan","th-TH":"th-TH-Premwadee","tr-TR":"tr-TR-Ahmet","uk-UA":"uk-UA-Ostap","ur-IN":"ur-IN-Gul","ur-PK":"ur-PK-Asad","uz-UZ":"uz-UZ-Madina","vi-VN":"vi-VN-HoaiMy","zh-CN":"zh-CN-Xiaoxiao","zh-HK":"zh-HK-HiuMaan","zh-TW":"zh-TW-HsiaoChen","zu-ZA":"zu-ZA-Thando"},Sce=[{value:"en-US-Jenny",label:"(Best) Jenny US Female"},{value:"en-US-Aria",label:"(Best) Aria US Female"},{value:"en-US-Jane",label:"(Best) Jane US Female"},{value:"en-US-Sara",label:"(Best) Sara US Female"},{value:"en-US-Davis",label:"(Best) Davis US Male"},{value:"en-US-Jason",label:"(Best) Jason US Male"},{value:"en-US-Tony",label:"(Best) Tony US Male"},{value:"en-US-Guy",label:"(Best) Guy US Male"},{value:"en-US-Nancy",label:"Nancy-US-Female"},{value:"en-US-Amber",label:"Amber-US-Female"},{value:"en-US-Ana",label:"Aria-US-FemaleChild"},{value:"en-US-Ashley",label:"Ashley-US-Female"},{value:"en-US-Brandon",label:"Ashley-US-Male"},{value:"en-US-Christopher",label:"Christopher-US-Male"},{value:"en-US-Cora",label:"Cora-US-Female"},{value:"en-US-Elizabeth",label:"Elizabeth-US-Female"},{value:"en-US-Eric",label:"Eric-US-Male"},{value:"en-US-Jacob",label:"Jacob-US-Male"},{value:"en-US-Michelle",label:"Michelle-US-Female"},{value:"en-US-Monica",label:"Monica-US-Female"},{value:"en-US-Roger",label:"Roger-US-Male"},{value:"en-US-Steffan",label:"Steffan-US-Male"},{value:"en-GB-Abbi",label:"Abbi-Uk-Female"},{value:"en-GB-Alfie",label:"Alfie-UK-Male"},{value:"en-GB-Bella",label:"Bella-UK-Female"},{value:"en-GB-Elliot",label:"Elliot-UK-Male"},{value:"en-GB-Ethan",label:"Ethan-UK-Male"},{value:"en-GB-Hollie",label:"Hollie-UK-Female"},{value:"en-GB-Libby",label:"Libby-UK-Female"},{value:"en-GB-Maisie",label:"Maisie-UK-FemaleChild"},{value:"en-GB-Noah",label:"Noah-UK-Male"},{value:"en-GB-Oliver",label:"Oliver-UK-Male"},{value:"en-GB-Olivia",label:"Olivia-UK-Female"},{value:"en-GB-Ryan",label:"Ryan-UK-Male"},{value:"en-GB-Sonia",label:"Sonia-UK-Female"},{value:"en-GB-Thomas",label:"Thomas-UK-Male"}],JQe=[{label:"🇺🇸English",value:"en-US"},{label:"🇫🇷France",value:"fr-FR"},{label:"🇩🇪German",value:"de-DE"},{label:"🇰🇷Korea",value:"ko-KR"},{label:"🇯🇵Japan",value:"ja-JP"},{label:"🇨🇳Chinese",value:"zh-CN"}
558],ZQe={"en-US":{name:"English Teacher",description:"Chat with AI tutor",prompt:"You are an experienced English instructor, being open-minded, accessible, and understanding when interacting with students. Encourage meaningful conversations by actively listening to your student's perspectives and acknowledging their ideas and opinions."},"fr-FR":{name:"Professeur de français",description:"Vous êtes professeur de français et vous enseignez le français à vos élèves.",prompt:"Vous êtes professeur de français et vous enseignez le français à vos élèves."},"de-DE":{name:"Deutschlehrer",description:"Sie sind Deutschlehrer und unterrichten Schüler in Deutsch",prompt:"Sie sind Deutschlehrer und unterrichten Schüler in Deutsch"},"ko-KR":{name:"韓国語講師",description:"한국어 교사로 학생들에게 한국어를 가르치고 있습니다.",prompt:"한국어 교사로 학생들에게 한국어를 가르치고 있습니다."},"ja-JP":{name:"日本語教師",description:"あなたは日本語教師で、学生に日本語を教える立場です",prompt:"あなたは日本語教師で、学生に日本語を教える立場です"},"zh-CN":{name:"中文老师",description:"你是一个中文老师,你在教学生中文",prompt:"你是一个中文老师,你在教学生中文"}},eJe=[{label:"🇺🇸English",value:"en"}];class Cce{constructor(t,r,n){Qe(this,"howl");Qe(this,"utterance");Qe(this,"text");this.howl=t,this.utterance=r,this.text=n}isExpired(t){var r,n;return t&&this.text!==t?!0:((n=(r=window.store.user)==null?void 0:r.config)==null?void 0:n.voice_provider)==="web system speech"?!this.utterance:!this.howl}start(){var t,r,n,i,o;((r=(t=window.store.user)==null?void 0:t.config)==null?void 0:r.voice_provider)==="web system speech"?this.utterance&&(this.utterance.onend=null,this.utterance.onerror=null,this.utterance.rate=((i=(n=window.store.user)==null?void 0:n.config)==null?void 0:i.voice_speed)*3,window.speechSynthesis.speak(this.utterance)):(o=this.howl)==null||o.play()}stop(){var t,r,n;((r=(t=window.store.user)==null?void 0:t.config)==null?void 0:r.voice_provider)==="web system speech"?window.speechSynthesis.cancel():(n=this.howl)==null||n.stop()}}function bce(){var e;if(window.currentPlaySource){if(window.currentPlaySource==="pending"){window.currentPlaySource="cancle";return}(e=window.currentPlaySource)==null||e.stop(),window.currentPlaySource=void 0}}function tJe(e,t,r,n){var a,s;const i=window.speechSynthesis,o=new SpeechSynthesisUtterance(e);o.rate=(((s=(a=window.store.user)==null?void 0:a.config)==null?void 0:s.voice_speed)||.25)*3,o.onerror=l=>n==null?void 0:n(),o.onend=l=>r==null?void 0:r(new Cce(void 0,o,e)),i.speak(o)}function TG(e,t,r,n){var y,g,m;if(!e)return;if(((g=(y=window.store.user)==null?void 0:y.config)==null?void 0:g.voice_provider)==="web system speech"){tJe(e,t,r,n);return}const i=window.localStorage.getItem("speech_token");if(!i)return;const o=eo.SpeechConfig.fromAuthorizationToken(i,"eastasia"),a=new eo.SpeechSynthesizer(o),s=(m=window.store.user)==null?void 0:m.config;if(!s)return;let l=s.voice_character;const c=window.store.conversations_manager.current_selected_conversation;c&&c.language&&c.language!=="en-US"&&(l=QQe[c.language]);const d=s.voice_style;let u="+",f=s.voice_speed;u=f-.25>=0?"+":"-";const h=Math.floor(Math.abs(f-.25)*100),v=`
559    <speak version="1.0" 
560    xmlns="http://www.w3.org/2001/10/synthesis"
561    xmlns:mstts="https://www.w3.org/2001/mstts"
562    xmlns:emo="http://www.w3.org/2009/10/emotionml"
563    xml:lang="en-US">
564  <voice name="${l}Neural">
565    <mstts:express-as style="${d}">
566    <prosody rate="${u}${h}.00%">
567        ${e}
568    </prosody>
569    </mstts:express-as>
570  </voice>
571</speak>
572    `;a.synthesisStarted=(S,C)=>{t==null||t()},a.speakSsmlAsync(v,S=>{try{if(S.reason===eo.ResultReason.SynthesizingAudioCompleted){a.close();const C=S.audioData,b=XQe(C),w=new eL.Howl({src:"data:audio/wav;base64,"+b});setTimeout(()=>r==null?void 0:r(new Cce(w,void 0,e)),S.audioDuration/1e4)}}catch{bt.warning("Microsoft Human Voice unable to connect",3),n==null||n()}},S=>{bt.warning("Microsoft Human Voice unable to connect",3),a.close(),n==null||n()})}class eP{constructor(){Qe(this,"sentencesBuffer",new OHe);Qe(this,"headPromise",new Promise((t,r)=>{t(null)}));Qe(this,"onPlayFinish");Qe(this,"isPlaying",!1);Qe(this,"sound");Qe(this,"text_buffer",[]);Qe(this,"buffer_pinter",0);this.sentencesBuffer.onNewSentence=(t,r)=>this.play(t,r)}async playAndSave(t,r,n){var a;let i=window.store.conversations_manager.current_selected_conversation;i.scenechat_conversation&&(i=i.scenechat_conversation);const o=(a=i.getSound)==null?void 0:a.call(i,r);if(o&&!o.isExpired(t)){o.stop(),o.start();return}this.isPlaying||(this.isPlaying=!0,await Rw(),await new Promise((s,l)=>{TG(TW(t),()=>s(null),c=>{var d;(d=i.updateSound)==null||d.call(i,r,c),this.isPlaying=!1,n==null||n()},()=>{this.isPlaying=!1,n==null||n(),l()})}))}stop(t){var i;let r=window.store.conversations_manager.current_selected_conversation;r.scenechat_conversation&&(r=r.scenechat_conversation);const n=(i=r.getSound)==null?void 0:i.call(r,t);if(n){n.stop();return}}play(t,r=!0){this.text_buffer.push(t),this.consume(r)}consume(t){this.headPromise=this.headPromise.then(()=>new Promise((r,n)=>{var o,a;if(this.buffer_pinter===this.text_buffer.length){t&&(nN(),(o=this.onPlayFinish)==null||o.call(this)),r(null);return}const i=this.text_buffer.filter((s,l)=>l>=this.buffer_pinter).join(" ");this.buffer_pinter=this.text_buffer.length,i||(t&&(nN(),(a=this.onPlayFinish)==null||a.call(this)),r(null)),Rw().then(()=>{TG(TW(i),void 0,()=>{var s;t&&((s=this.onPlayFinish)==null||s.call(this)),r(null)},()=>{this.headPromise=new Promise((s,l)=>{s(null)}),n()})})}))}playStream(t,r="streaming"){r==="streaming"?this.sentencesBuffer.update(t):(this.sentencesBuffer.update("",!0),this.sentencesBuffer.clear())}clear(){this.sentencesBuffer.clear(),this.headPromise=new Promise((t,r)=>{t(null)}),this.buffer_pinter=0,this.text_buffer=[]}}class rJe{constructor(){Qe(this,"showText",!0);Qe(this,"translate",!0);Qe(this,"openMic",!1);Qe(this,"autoSend",!1);Qe(this,"aiCheck",!0);Qe(this,"advices");Qe(this,"sound",!0);Qe(this,"shadowing",!1);jl(this),this.loadFromLocal()}resetAdvices(){this.advices=void 0}
572updateAdvices(t,r){this.advices===void 0&&(this.advices=["","",""]),this.advices&&(this.advices[r]+=t)}updateField(t,r){this[t]=r,this.saveToLocal()}saveToLocal(){localStorage.setItem("aiCheck",this.aiCheck?"true":"false"),localStorage.setItem("autoSend",this.autoSend?"true":"false"),localStorage.setItem("showText",this.showText?"true":"false"),localStorage.setItem("shadowing",this.shadowing?"true":"false")}loadFromLocal(){const t=localStorage.getItem("aiCheck"),r=localStorage.getItem("autoSend"),n=localStorage.getItem("showText"),i=localStorage.getItem("shadowing");this.aiCheck=t?t==="true":!1,this.autoSend=r?r==="true":!1,this.showText=n?n==="true":!0,this.shadowing=this.shadowing?i==="true":!1}}class nJe{constructor(t,r,n,i,o,a,s,l,c,d,u,f,h){Qe(this,"voice_character","en-US-Jenny");Qe(this,"voice_style","Cheerful");Qe(this,"voice_speed",.25);Qe(this,"voice_provider","azure speech");Qe(this,"translation_language","zh-CN");Qe(this,"display_language",X$());this.nickname=t,this.email=r,this.voice_quota=n,this.voice_usage=i,this.token_quota=o,this.token_usage=a,this.has_mobile=s,this.subscription_type=l,this.apikey=c,this.expire_date=d,this.llm_provider=u,this.llm_max_tokens=f,this.mother_language=h,jl(this),this.loadFromLocal()}updateField(t,r){this[t]=r,this.saveToLocal()}saveToLocal(){localStorage.setItem("display_language",this.display_language),li.changeLanguage(this.display_language),localStorage.setItem("voice_character",this.voice_character),localStorage.setItem("voice_style",this.voice_style),localStorage.setItem("voice_speed",this.voice_speed.toString()),localStorage.setItem("voice_provider",this.voice_provider),localStorage.setItem("translation_language",this.translation_language),localStorage.setItem("mother_language",this.mother_language)}loadFromLocal(){this.display_language=localStorage.getItem("display_language")||X$(),li.changeLanguage(this.display_language),this.translation_language=localStorage.getItem("translation_language")||"zh-CN",this.voice_character=localStorage.getItem("voice_character")||"en-US-Jenny",this.voice_provider=localStorage.getItem("voice_provider")||"azure speech",this.voice_style=localStorage.getItem("voice_style")||"Cheerful",this.voice_speed=parseFloat(localStorage.getItem("voice_speed")||"0.25"),this.mother_language=localStorage.getItem("mother_language")||"English"}}const ap="thinking...";let AG=class{constructor(t,r,n,i,o,a,s,l,c,d,u){Qe(this,"current_page",0);Qe(this,"page_size",5);Qe(this,"history",[]);Qe(this,"loading",!1);Qe(this,"hasNewReply",!1);Qe(this,"voiceManager",new eP);Qe(this,"history_total",0);Qe(this,"scenechat_conversation");this.id=t,this.name=r,this.description=n,this.mode=i,this.timestamp=o,this.prompt=a,this.revise_prompt=s,this.summary=l,this.language=c,this.messages=d,this.dialogue_script=u,jl(this),this.loadMore(),this.dialogue_script&&this.attachSceneChatConversation(this.dialogue_script.id,!1)}addChatItem(t,r,n,i){this.history.push({ai:t,translate:void 0,revise:"",user:r,id:n,type:i})}get latestReply(){return this.history[this.history.length-1]}async updateTranslation(t){const r=this.history.find(n=>n.id===t);if(r)try{r.translate="translating...";const n=await Ew(r.ai);r.translate=n||void 0}catch{r.translate=void 0}}getSound(t){let r=this.history.find(n=>n.id===t);return r==null?void 0:r.sound}updateSound(t,r){const n=this.history.find(i=>i.id===t);n&&(n.sound=r)}updateAiReply(t){if(this.latestReply.ai===ap){this.latestReply.ai=t,this.hasNewReply=!0;return}this.latestReply.ai+=t}resetHasNewReply(){this.hasNewReply=!1}removeFailedReply(){this.history.pop()}async loadMore(){if(!(this.history.length&&this.history.length>=this.history_total)&&!this.loading){this.loading=!0;try{const{data:t,total:r}=await RQe(this.current_page,this.page_size,this.id,void 0,this.history.length);t.forEach(n=>{this.history.unshift(n)}),this.history_total=r}finally{this.loading=!1}}}getAdvice(){return new Promise((t,r)=>{if(this.history.length===0){bt.warning("Please send one message first at least.");return}const n=window.store.user;if(n){n.inputWidgetState.resetAdvices();try{[0,1,2].forEach(i=>
572{hce(this.id,o=>{n.inputWidgetState.updateAdvices(o,i)},()=>{t(null)})}),ai.track("Conversation_get_advice_success")}catch{r()}}})}async attachSceneChatConversation(t,r=!0){this.scenechat_conversation=new iJe(this.id,t),await this.scenechat_conversation.init(r)}async detachSceneChatConversation(){await ZR(this.id,void 0,void 0,void 0,void 0,void 0,void 0,void 0,"delete"),this.scenechat_conversation=void 0}};class iJe{constructor(t,r){Qe(this,"current_page",0);Qe(this,"page_size",5);Qe(this,"history_total",0);Qe(this,"dialogue_script_raw","");Qe(this,"dialogue_script_normalized",[]);Qe(this,"history",[]);Qe(this,"loading",!1);Qe(this,"hasNewReply",!1);Qe(this,"voiceManager",new eP);Qe(this,"name","");Qe(this,"description","");Qe(this,"mode","english_teacher");Qe(this,"timestamp",0);Qe(this,"prompt","");Qe(this,"revise_prompt","");Qe(this,"summary","");Qe(this,"language","");Qe(this,"scenechat_conversation");this.id=t,this.dialogue_script_id=r,jl(this)}async init(t=!0){let r=await zQe({conversation_id:this.id,dialogue_script_id:this.dialogue_script_id});const{script:n,name:i,description:o}=r.result;this.dialogue_script_raw=n,this.name=i,this.description=o;const a=Q$(n);if(!a||a[0].role!=="teacher"){bt.error("加载脚本出错");return}this.dialogue_script_normalized=a;const s=window.store.conversations_manager.conversations.find(c=>c.id===this.id);s!=null&&s.messages&&(s.messages=[]);const l=this.dialogue_script_normalized[0];this.addChatItem(l.text,"",zoe(),"head_msg"),t&&this.voiceManager.play(l.text)}async loadMore(){}addChatItem(t,r,n,i){this.history.push({ai:t,translate:void 0,revise:"",user:r,id:n,type:i})}get latestReply(){return this.history[this.history.length-1]}async updateTranslation(t){const r=this.history.find(n=>n.id===t);if(r)try{r.translate="translating...";const n=await Ew(r.ai);r.translate=n||void 0}catch{r.translate=void 0}}getSound(t){let r=this.history.find(n=>n.id===t);return r==null?void 0:r.sound}updateSound(t,r){const n=this.history.find(i=>i.id===t);n&&(n.sound=r)}updateAiReply(t){if(this.latestReply.ai===ap){this.latestReply.ai=t,this.hasNewReply=!0;return}this.latestReply.ai+=t}resetHasNewReply(){this.hasNewReply=!1}removeFailedReply(){this.history.pop()}getAdvice(){return new Promise((t,r)=>{if(this.history.length===0){bt.warning("Please send one message first at least.");return}const n=window.store.user;if(n){n.inputWidgetState.resetAdvices();try{[0,1,2].forEach(i=>{hce(this.id,o=>{n.inputWidgetState.updateAdvices(o,i)},()=>{t(null)})}),ai.track("Conversation_get_advice_success")}catch{r()}}})}async attachSceneChatConversation(t){throw new Error("Method not implemented.")}async detachSceneChatConversation(){throw new Error("Method not implemented.")}}class MG{constructor(t,r,n,i,o,a,s){Qe(this,"voiceManager",new eP);Qe(this,"wordsInfo");this.id=t,this.name=r,this.description=n,this.mode=i,this.timestamp=o,this.messages=a,this.vocabularies=s,jl(this)}getSound(){var t;return(t=this.voiceManager)==null?void 0:t.sound}updateSound(t,r){this.voiceManager.sound=r}async getWordsInfo(){var r,n;if(!((n=(r=this.vocabularies)==null?void 0:r.scheduled_words)!=null&&n.length))return;
572const t=await LQe(this.vocabularies.scheduled_words);this.wordsInfo=[],this.vocabularies.scheduled_words.forEach(i=>{var a;const o=t.find(s=>s.word===i);if(!o)throw Error("data error, the word can't find");(a=this.wordsInfo)==null||a.push(o)})}async updateVocabularies(t,r){this.vocabularies&&(this.vocabularies.review_words=Array.from(new Set((this.vocabularies.review_words||[]).concat(t))),this.vocabularies.remembered_words=Array.from(new Set((this.vocabularies.remembered_words||[]).concat(r))),this.vocabularies.scheduled_words=[],await IG({conversation_id:this.id,vocabularies:this.vocabularies,schedule_new_words:!1}))}async scheduleNewWords(){var r,n,i,o;if(((n=(r=window.store.user)==null?void 0:r.config)==null?void 0:n.voice_quota)!==-1&&((o=(i=this.vocabularies)==null?void 0:i.remembered_words)!=null&&o.length)){bt.warning(he("Story vocabularies free trial is ended, please upgrade your subscription for full access!")),setTimeout(()=>{window.location.replace("/user/subscription")},2e3);return}await IG({conversation_id:this.id,vocabularies:this.vocabularies,schedule_new_words:!0});const t=await mce(this.id);t.vocabularies&&(this.vocabularies={review_words:t.vocabularies.review_words,scheduled_words:t.vocabularies.scheduled_
572words,remembered_words:t.vocabularies.remembered_words},await this.getWordsInfo())}save(){ZR(this.id,{vocabularies:{scheduled_words:[],remembering_words:[],remembered_words:[]}})}}class $G{constructor(t,r,n,i,o,a){Qe(this,"ai_material","");Qe(this,"user_material","");Qe(this,"results",[]);Qe(this,"voiceManager",new eP);this.id=t,this.name=r,this.description=n,this.mode=i,this.timestamp=o,jl(this),this.user_material=(a==null?void 0:a.user_material)||"",this.ai_material=(a==null?void 0:a.ai_material)||""}getSound(){var t;return(t=this.voiceManager)==null?void 0:t.sound}updateSound(t,r){this.voiceManager.sound=r}updateAiMaterial(t){this.ai_material=t,this.save()}updateUserMaterial(t){this.user_material=t,this.save()}updateResult(t){this.results=[...t]}save(){ZR(this.id,{user_material:this.user_material,ai_material:this.ai_material})}}class oJe{constructor(){Qe(this,"conversations",[]);Qe(this,"current_selected_conversation");Qe(this,"current_mode");jl(this)}init(t){this.conversations=t.sort((r,n)=>r.timestamp>n.timestamp?-1:1).map(r=>r.mode==="read_aloud"?new $G(r.id,r.name,r.description,r.mode,r.timestamp,r.messages):r.mode==="vocabularies"?new MG(r.id,r.name,r.description,r.mode,r.timestamp,r.messages,r.vocabularies):new AG(r.id,r.name,r.description,r.mode,r.timestamp,r.prompt||"",r.revise_prompt||"",r.summary||"",r.language,r.messages,r.dialogue_script))}findFirstConversation(t){return this.conversations.find(r=>r.mode===t)}async addConversation(t){this.current_mode=t;let r=this.findFirstConversation(t);if(r&&xc.session_config.compactMode){this.current_selected_conversation=r;return}const n=await TQe(t);if(n){let i;if(t==="read_aloud")i=new $G(n.id,n.name,n.description,n.mode,n.timestamp);else if(t==="english_teacher")i=new AG(n.id,n.name,n.description,n.mode,n.timestamp,n.prompt||"",n.revise_prompt||"",n.summary||"");else if(t==="vocabularies")i=new MG(n.id,n.name,n.description,n.mode,n.timestamp,n.messages);else throw new Error("unknown mode");this.conversations.unshift(i),this.current_mode===t&&(this.current_selected_conversation=this.findFirstConversation(t))}}setCurrentConversation(t){const r=this.conversations.findIndex(n=>n.id===t);r!==-1&&(this.current_selected_conversation=this.conversations[r])}async deleteConversation(t){var n;if(await AQe(t)){const i=this.conversations.findIndex(o=>o.id===t);i!==-1&&(this.conversations.splice(i,1),bt.success("delete success"),((n=this.current_selected_conversation)==null?void 0:n.id)===t&&(this.current_selected_conversation=this.conversations.length?this.conversations[0]:void 0))}}async updateConversation(t,r){await ZR(t,r.messages,r.name,r.description,r.prompt,r.revise_prompt,r.language,r.vocabularies)&&await this.refreshConversation(t)}async refreshConversation(t){const r=await mce(t);if(r){const n=this.conversations.findIndex(i=>i.id===t);if(n!==-1){const i=this.conversations[n];i.name=r.name,i.description=r.description,i.prompt=r.prompt||"",i.revise_prompt=r.revise_prompt||"",i.summary=r.summary||"",i.language=r.language||void 0,i.messages=r.messages||void 0,i.vocabularies=r.vocabularies||void 0}}}}let aJe=class{constructor(){Qe(this,"inputWidgetState",new rJe);Qe(this,"currentInput","");Qe(this,"config");Qe(this,"sending",!1);jl(this)}updateUserConfig(t){const r=new nJe(t.nickname,t.email,t.voice_quota,t.voice_usage,t.token_quota,t.token_usage,t.has_mobile,t.subscription_type,t.apikey,t.expire_date,t.llm_provider,t.llm_max_tokens,t.mother_language);this.config=r}setCurrentInput(t){this.currentInput=t}async send(){var i;const t=zoe();let r=window.store.conversations_manager.current_selected_conversation,n=r;if(r){r.scenechat_conversation&&(r=r.scenechat_conversation);try{const o=this.currentInput;if(this.currentInput="",!o){bt.warning("Please input something");return}if(this.sending){bt.warning("Please wait for the previous message to be answered");return}r.addChatItem(ap,o,t),this.sending=!0,r.voiceManager.clear(),Rw(),(!r.language||r.language==="en-US")&&((i=window.store.user)!=null&&i.inputWidgetState.aiCheck)&&IQe(o,r.id,a=>{r.latestReply.revise+=a}),xQe(o,t,n.id,a=>{r.updateAiReply(a),r.voiceManager.playStream(a)},a=>{var s,l;
572(s=window.store.user)!=null&&s.inputWidgetState.translate&&r.latestReply.ai!==ap&&r.updateTranslation(r.latestReply.id),(l=window.store.user)!=null&&l.inputWidgetState.sound&&r.voiceManager.playStream("","end"),r.resetHasNewReply(),ai.track("Conversation_Chat_success")},a=>{setTimeout(()=>{r.removeFailedReply()},1e3),["Your subscription has expired","Your token quota has been used up","Your voice quota has been used up"].includes(a)&&setTimeout(()=>{window.location.replace("/user/subscription"),ai.track("Redirect_to_subscription")},1e3)},()=>{r.latestReply.ai===ap&&(r.latestReply.ai="I'm unable to reply to this message. Please make sure the content does not violate any policies, or try again later."),r.resetHasNewReply(),this.sending=!1})}catch{bt.error("ChattyTutor in on high demand")}}}};class sJe{constructor(){Qe(this,"secondMenuCollapsed",!0);Qe(this,"menuCollapsed",!0);Qe(this,"autoPlayIsReady",!1);Qe(this,"compactMode",!0);jl(this)}setSecondMenuCollapsed(t){this.secondMenuCollapsed=t}setMenuCollapsed(t){this.menuCollapsed=t}setCompactMode(t){this.compactMode=t}}class lJe{constructor(){Qe(this,"user");Qe(this,"conversations_manager",new oJe);Qe(this,"is_login",!1);Qe(this,"token",window.localStorage.getItem("user_token"));Qe(this,"session_config",new sJe);Qe(this,"site","chattytutor");xae(this,{})}
572async init(){try{window.location.host.endsWith("chattyart.com")&&(this.site="chattyart");const t=await JR();if(!t)throw Error("user not login");return this.user=new aJe,this.user.updateUserConfig(t),this.conversations_manager.init(t.conversations),this.is_login=!0,Woe.identify(t.email,t),ai.identify(t.email),!0}catch{return this.site==="chattyart"?window.open("https://chattyart.com/art/login","_self"):window.open("https://app.chattytutor.com/login","_self"),!1}}}let xc=new lJe;function cJe({children:e}){const t=ta(),[r,n]=de.useState(t.pathname.split("/")[1]),i=Vs(),o=eu(),a=[{path:"callchattytutor",icon:B(Ype,{}),label:he("nav.CallChattytutor"),key:"callchattytutor"},{path:"conversation",icon:B(Kpe,{}),label:he("nav.Conversation"),key:"conversation"},{path:"user",icon:B(Qpe,{}),label:he("nav.Settings"),key:"user"},{path:"user/subscription",icon:B(Xpe,{}),label:he("nav.Subscription"),key:"subscription"}];return o?B(O_,{content:B("div",{className:ua.NavDropList,children:a.map(s=>Oe("div",{className:ie(ua.NavDropItem,{[ua.NavDropItemActive]:s.path===r}),onClick:()=>{n(s.path),i(s.path)},children:[B("div",{className:ua.NavDropicon,children:s.icon}),B("div",{className:ua.NavDropiconLabel,children:s.label})]},s.path))}),placement:"bottomRight",arrow:!1,children:B("div",{className:ua.NavDropLogo,children:B("img",{alt:"",src:"/icon-gradient.png"})})}):B("div",{className:ua.LeftNav,children:Oe("div",{className:ua.NoLabel,children:[B("div",{className:ua.NavIcon,children:B("img",{alt:"",src:"/icon-gradient.png"})}),B("div",{className:ua.NavList,children:a.map(s=>B("div",{className:ie(ua.NavItem,{[ua.NavItemActive]:s.path===r}),onClick:()=>{n(s.path),i(s.path)},children:s.icon},s.path))})]})})}const Kd=({children:e,waitFunc:t})=>{const[r,n]=p.useState(!0);return p.useEffect(()=>{t(n)},[]),r?B("div",{className:"h-full w-full m-auto flex items-center justify-center",children:B(Ii,{theme:{token:{colorPrimary:"#834d9b"}},children:B(na,{size:"large"})})}):B(nn,{children:e})};if(!p.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!xae)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");function uJe(e){e()}function dJe(e){e||(e=uJe),xUe({reactionScheduler:e})}function fJe(e){return OUe(e)}var pJe=1e4,hJe=1e4,vJe=function(){function e(t){var r=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"registrations",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"sweepTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sweep",{enumerable:!0,configurable:!0,writable:!0,value:function(n){n===void 0&&(n=pJe),clearTimeout(r.sweepTimeout),r.sweepTimeout=void 0;var i=Date.now();r.registrations.forEach(function(o,a){i-o.registeredAt>=n&&(r.finalize(o.value),r.registrations.delete(a))}),r.registrations.size>0&&r.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){r.sweep(0)}})}return Object.defineProperty(e.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(t,r,n){this.registrations.set(n,{value:r,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(e.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(t){this.registrations.delete(t)}}),Object.defineProperty(e.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.sweepTimeout===void 0&&(this.sweepTimeout=setTimeout(this.sweep,hJe))}}),e}(),gJe=typeof FinalizationRegistry<"u"?FinalizationRegistry:vJe,iN=new gJe(function(e){var t;(t=e.reaction)===null||t===void 0||t.dispose(),e.reaction=null}),kG=globalThis&&globalThis.__read||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return o};function NG(e){return"observer".concat(e)}var mJe=function(){function e(){}return e}();function yJe(){return new mJe}function SJe(e,t){t===void 0&&(t="observed");var r=kG(de.useState(yJe),1),n=r[0],i=kG(de.useState(),2),o=i[1],a=function(){return o([])},s=de.useRef(null);s.current||(s.current={reaction:null,mounted:!1,changedBeforeMount:!1});var l=s.current;l.reaction||(l.reaction=new Hs(NG(t),function(){l.mounted?a():l.changedBeforeMount=!0}),iN.register(n,l,l)),de.useDebugValue(l.reaction,fJe),de.useEffect(function(){return iN.unregister(l),l.mounted=!0,l.reaction?l.changedBeforeMount&&(l.changedBeforeMount=!1,a()):(l.reaction=new Hs(NG(t),function(){a()}),a()),function(){l.reaction.dispose(),l.reaction=null,l.mounted=!1,l.changedBeforeMount=!1}},[]);var c,d;if(l.reaction.track(function(){try{c=e()}catch(u){d=u}}),d)throw d;return c}var wce=typeof Symbol=="function"&&Symbol.for,DG=wce?Symbol.for("react.forward_ref"):typeof p.forwardRef=="function"&&p.forwardRef(function(e){return null}).$$typeof,LG=wce?Symbol.for("react.memo"):typeof p.memo=="function"&&p.memo(function(e){return null}).$$typeof;function vi(e,t){var r;if(LG&&e.$$typeof===LG)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");var n=(r=t==null?void 0:t.forwardRef)!==null&&r!==void 0?r:!1,i=e,o=e.displayName||e.name;if(DG&&e.$$typeof===DG&&(n=!0,i=e.render,typeof i!="function"))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var a=function(s,l){return SJe(function(){return i(s,l)},o)};return o!==""&&(a.displayName=o),e.contextTypes&&(a.contextTypes=e.contextTypes),n&&(a=p.forwardRef(a)),a=p.memo(a),bJe(e,a),a}var CJe={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function bJe(e,t){Object.keys(e).forEach(function(r){CJe[r]||Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))})}globalThis&&globalThis.__read;var iA;dJe(Qo.unstable_batchedUpdates);iA=iN.finalizeAllImmediately;const wJe=vi(({open:e,onClose:t})=>{const[r,n]=p.useState(),[i,o]=p.useState(!1),a=async()=>
572{if(!r){bt.warning(he("Please select your native language"));return}o(!0);try{if(await yce({mother_language:r})){const l=await JR();l&&window.store.user&&window.store.user.updateUserConfig(l),RHe(),bt.success(he("Welcome! Your native language has been set successfully.")),t()}}catch{bt.error(he("Failed to update language. Please try again."))}finally{o(!1)}};return B(V_,{title:he("Welcome to ChattyTutor!"),open:e,onOk:a,onCancel:t,confirmLoading:i,okText:he("OK"),cancelText:he("Skip"),centered:!0,maskClosable:!1,closable:!1,width:480,children:Oe("div",{className:"py-4",children:[Oe("div",{className:"mb-4",children:[B("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:he("Select Your Native Language")}),B(ks,{value:r,onChange:n,placeholder:he("Select your native language"),options:Boe,className:"w-full",size:"large",showSearch:!0,filterOption:(s,l)=>((l==null?void 0:l.label)??"").toLowerCase().includes(s.toLowerCase())})]}),B("p",{className:"text-xs text-gray-500",children:he("You can change this later in your preferences.")})]})})}),_Je=()=>{const e=ta(),t=Vs(),[r,n]=p.useState(!1),i=async o=>{var s;if(e.pathname==="/login"){o(!1);return}if(e.search){let l=KD(e.search);if(l.token&&l.email){const{error:c}=await Q6(l.email,void 0,!0,l.token);if(c){bt.error(c),setTimeout(()=>{t("/login")},2e3);return}else YD(l.token)}}if(await window.store.init()){o(!1);const l=(s=window.store.user)==null?void 0:s.config,c=EHe(),d=PHe(l);!c&&d&&n(!0),window.store.site==="chattyart"?t(e.pathname==="/"?"art/index":e.pathname):t(e.pathname==="/"?"conversation":e.pathname)}};return p.useEffect(()=>{bce()},[e]),B("div",{className:kP.SitePc,children:e.pathname==="/login"?B(sM,{}):Oe(Kd,{waitFunc:i,children:[B("div",{className:kP.navbar,children:B(cJe,{})}),B("div",{className:kP.container,children:B(sM,{})}),B(wJe,{open:r,onClose:()=>n(!1)})]})})},EJe="_Chat_1euon_1",tL={Chat:EJe},RJe="_ChatContainer_hut0g_1",PJe="_ChatHeader_hut0g_22",IJe="_ThemeStar_hut0g_82",xJe="_ThemeStarRing_hut0g_91",OJe="_ChatHeaderSettingIcon_hut0g_129",TJe="_ChatHeaderTitle_hut0g_136",AJe="_ChatHeaderDesc_hut0g_146",MJe="_DialogContainer_hut0g_156",$Je="_Dialog_hut0g_156",kJe="_History_hut0g_201",NJe="_ChatItem_hut0g_210",DJe="_ChatItemAvatar_hut0g_220",LJe="_ChatItemAvatarRight_hut0g_247",jJe="_ChatItem
572ContentAI_hut0g_275",FJe="_Line_hut0g_314",zJe="_TranslationText_hut0g_321",BJe="_ChatItemContentUser_hut0g_339",HJe="_ChatItemRevise_hut0g_405",VJe="_Input_hut0g_427",UJe="_TopicTool_hut0g_443",WJe="_TopicToolInner_hut0g_449",qJe="_TopicsList_hut0g_456",GJe="_TopicsListItem_hut0g_479",KJe="_InputCard_hut0g_491",YJe="_Widget_hut0g_495",XJe="_ClearButton_hut0g_504",QJe="_RightContainer_hut0g_520",JJe="_RightContainerItem_hut0g_532",ZJe="_Title_hut0g_546",eZe="_Content_hut0g_552",tZe="_ContentText_hut0g_573",rZe="_DialogueScriptText_hut0g_576",nZe="_SuggestionContainerText_hut0g_579",iZe="_RightContainerDropdown_hut0g_583",oZe="_DropdownContent_hut0g_600",aZe="_DDTitle_hut0g_600",sZe="_DDContent_hut0g_605",lZe="_DDContentText_hut0g_626",qt={ChatContainer:RJe,ChatHeader:PJe,ThemeStar:IJe,ThemeStarRing:xJe,ChatHeaderSettingIcon:OJe,ChatHeaderTitle:TJe,ChatHeaderDesc:AJe,DialogContainer:MJe,Dialog:$Je,History:kJe,ChatItem:NJe,ChatItemAvatar:DJe,ChatItemAvatarRight:LJe,ChatItemContentAI:jJe,Line:FJe,TranslationText:zJe,ChatItemContentUser:BJe,ChatItemRevise:HJe,Input:VJe,TopicTool:UJe,TopicToolInner:WJe,TopicsList:qJe,TopicsListItem:GJe,InputCard:KJe,Widget:YJe,ClearButton:XJe,RightContainer:QJe,RightContainerItem:JJe,Title:ZJe,Content:eZe,ContentText:tZe,DialogueScriptText:rZe,SuggestionContainerText:nZe,RightContainerDropdown:iZe,DropdownContent:oZe,DDTitle:aZe,DDContent:sZe,DDContentText:lZe},cZe="_ChatInputArea_e8aut_1",uZe="_Advice_e8aut_43",dZe="_AdviceText_e8aut_49",fZe="_Transcript_e8aut_57",pZe="_Mic_e8aut_
57268",hZe="_MicSpin_e8aut_82",vZe="_MicPressed_e8aut_128",gZe="_pulsate_e8aut_1",mZe="_MicRing_e8aut_144",yZe="_ring_e8aut_1",Xa={ChatInputArea:cZe,Advice:uZe,AdviceText:dZe,Transcript:fZe,Mic:pZe,MicSpin:hZe,MicPressed:vZe,pulsate:gZe,MicRing:mZe,ring:yZe};function SZe(e,t){t===void 0&&(t=0);var r=p.useRef(!1),n=p.useRef(),i=p.useRef(e),o=p.useCallback(function(){return r.current},[]),a=p.useCallback(function(){r.current=!1,n.current&&clearTimeout(n.current),n.current=setTimeout(function(){r.current=!0,i.current()},t)},[t]),s=p.useCallback(function(){r.current=null,n.current&&clearTimeout(n.current)},[]);return p.useEffect(function(){i.current=e},[e]),p.useEffect(function(){return a(),s},[t]),[o,s,a]}function _ce(e,t,r){t===void 0&&(t=0),r===void 0&&(r=[]);var n=SZe(e,t),i=n[0],o=n[1],a=n[2];return p.useEffect(a,r),[i,o]}let Sf=[];const CZe=()=>navigator.userAgent.indexOf("Safari")>-1&&navigator.userAgent.indexOf("Chrome")<=-1;function oA(){if(CZe()||!D$.browserSupportsSpeechRecognition())return!0;const e=Ece();return!!(e&&e!=="en-US")}function Ece(){var e;return(e=window.store.conversations_manager.current_selected_conversation)==null?void 0:e.language}function bZe(e,t){const[r,n]=p.useState(""),{transcript:i,resetTranscript:o,interimTranscript:a,finalTranscript:s}=_D.useSpeechRecognition(),[l,c]=p.useState("");p.useEffect(()=>c(a),[a]);const[d,u]=p.useState("");p.useEffect(()=>u(s),[s]);const[f,h]=p.useState(!1),[v,y]=p.useState(null),g=eu();return p.useEffect(()=>{y(new tP)},[]),p.useEffect(()=>{f?!oA()&&!g?(D$.startListening({continuous:!0,language:"en-US"}),e==null||e()):v&&(v.language=Ece()||"en-US",v.start("").then(()=>{},()=>{bt.error("Speech recognition failed, please try again later."),t==null||t()}),v.onRecognizing(m=>{c(m)}),v.onRecognized((m,S)=>{u(S||""),c("")}),v.onRecognizingStart(()=>{e()})):setTimeout(()=>{v==null||v.stop(),D$.abortListening()},300)},[f]),_ce(()=>{oA()||g?n(m=>d?m?m+d:d:""):n(m=>d?m?m+", "+Sf[Sf.length-2]:Sf[Sf.length-2]:"")},1,[d]),p.useEffect(()=>{Sf.push(l)},[l]),{clearText:()=>{(oA()||g)&&(o(),Sf=[]),c(""),u("")},text:l,joinedText:r,speaking:f,setSpeaking:h}}class tP{constructor(){Qe(this,"speechRecognizer",null);Qe(this,"onRecognizingStartCb",null);Qe(this,"onRecognizingCb",null);Qe(this,"onRecognizedCb",null);Qe(this,"tokenized_reference_text",[]);Qe(this,"consumed_quota",!1);Qe(this,"language","en-US")}onRecognizingStart(t){this.onRecognizingStartCb=t}onRecognizing(t){this.onRecognizingCb=t}onRecognized(t){this.onRecognizedCb=t}async start(t){this.consumed_quota=!1,this.tokenized_reference_text=xHe(t);const{token:r}=await Rw();if(!r)throw Error("no token");const n=eo.SpeechConfig.fromAuthorizationToken(r,"eastasia"),i=eo.AudioConfig.fromDefaultMicrophoneInput();if(this.language!=="en-US"){var o=eo.AutoDetectSourceLanguageConfig.fromLanguages([this.language]);this.speechRecognizer=eo.SpeechRecognizer.FromConfig(n,o,i)}else this.speechRecognizer=new eo.SpeechRecognizer(n,i);if(t){var a=new eo.PronunciationAssessmentConfig(t,eo.PronunciationAssessmentGradingSystem.HundredMark,eo.PronunciationAssessmentGranularity.Phoneme,!0);a.applyTo(this.speechRecognizer)}this.speechRecognizer.recognizing=(s,l)=>{var c;(c=this.onRecognizingCb)==null||c.call(this,l.result.text)},this.speechRecognizer.recognized=(s,l)=>{var c;l.result.reason===eo.ResultReason.RecognizedSpeech&&((c=this.onRecognizedCb)==null||c.call(this,t?tP.format_result(l.result):void 0,l.result.text),this.consumed_quota||nN().then(()=>{this.consumed_quota=!0}))},this.speechRecognizer.startContinuousRecognitionAsync(()=>{var s;(s=this.onRecognizingStartCb)==null||s.call(this)},s=>{})}async stop(){var t,r;(t=this.speechRecognizer)==null||t.stopContinuousRecognitionAsync(()=>{}),(r=this.speechRecognizer)==null||r.close()}static format_result(t){const r=eo.PronunciationAssessmentResult.fromResult(t);return{accuracyScore:r.accuracyScore,fluencyScore:r.fluencyScore,completenessScore:r.completenessScore,overallScore:r.pronunciationScore,words:r.detailResult.Words.map(i=>{var o,a;return{phonemes:i.Phonemes.map(s=>{var l;return{phoneme:s.Phoneme||"",score:(l=s.PronunciationAssessment)==null?void 0:l.AccuracyScore}}),word:i.Word,score:(o=i.PronunciationAssessment)==null?void 0:o.AccuracyScore,error:(a=i.PronunciationAssessment)==null?void 0:a.ErrorType}})}}}const Rce=()=>B("svg",{width:"26",height:"36",viewBox:"0 0 26 36",xmlns:"http://www.w3.org/2000/svg",children:B("path",{d:"M13 25.5C14.9885 25.4979 16.8949 24.7071 18.301 23.301C19.7071 21.8949 20.4979 19.9885 20.5 18V8C20.5 6.01088 19.7098 4.10322 18.3033 2.6967C16.8968 1.29018 14.9891 0.5 13 0.5C11.0109 
5720.5 9.10322 1.29018 7.6967 2.6967C6.29018 4.10322 5.5 6.01088 5.5 8V18C5.50207 19.9885 6.29291 21.8949 7.69898 23.301C9.10506 24.7071 11.0115 25.4979 13 25.5ZM8 8C8 6.67392 8.52678 5.40215 9.46447 4.46447C10.4021 3.52678 11.6739 3 13 3C14.3261 3 15.5979 3.52678 16.5355 4.46447C17.4732 5.40215 18 6.67392 18 8V18C18 19.3261 17.4732 20.5979 16.5355 21.5355C15.5979 22.4732 14.3261 23 13 23C11.6739 23 10.4021 22.4732 9.46447 21.5355C8.52678 20.5979 8 19.3261 8 18V8ZM14.25 30.4375V34.25C14.25 34.5815 14.1183 34.8995 13.8839 35.1339C13.6495 35.3683 13.3315 35.5 13 35.5C12.6685 35.5 12.3505 35.3683 12.1161 35.1339C11.8817 34.8995 11.75 34.5815 11.75 34.25V30.4375C8.66819 30.1239 5.81213 28.6787 3.73413 26.3813C1.65613 24.084 0.503806 21.0977 0.5 18C0.5 17.6685 0.631696 17.3505 0.866117 17.1161C1.10054 16.8817 1.41848 16.75 1.75 16.75C2.08152 16.75 2.39946 16.8817 2.63388 17.1161C2.8683 17.3505 3 17.6685 3 18C3 20.6522 4.05357 23.1957 5.92893 25.0711C7.8043 26.9464 10.3478 28 13 28C15.6522 28 18.1957 26.9464 20.0711 25.0711C21.9464 23.1957 23 20.6522 23 18C23 17.6685 23.1317 17.3505 23.3661 17.1161C23.6005 16.8817 23.9185 16.75 24.25 16.75C24.5815 16.75 24.8995 16.8817 25.1339 17.1161C25.3683 17.3505 25.5 17.6685 25.5 18C25.4962 21.0977 24.3439 24.084 22.2659 26.3813C20.1879 28.6787 17.3318 30.1239 14.25 30.4375Z"})}),wZe=vi(({isLoading:e,onSelected:t})=>{var n;const r=window.store.user;return B("div",{className:Xa.Advice,children:Oe(Qg,{direction:"vertical",children:[r.currentInput&&Oe(nn,{children:[Oe("span",{className:Xa.AdviceText,children:["Origin: ",B("br",{})]}),B("span",{className:Xa.AdviceText,children:r.currentInput})]}),Oe("span",{className:Xa.AdviceText,children:["Drafts: ",B("br",{})]}),B("div",{className:"last:mb-[40px]",children:(n=r.inputWidgetState.advices)==null?void 0:n.map((i,o)=>Oe("div",{className:"mb-2",children:[B("span",{className:Xa.AdviceText,children:`${o+1}. ${i}`}),!e&&B(hn,{icon:B(u0,{}),type:"primary",size:"small",className:"ml-2",onClick:()=>{t(i)}})]},o))})]})})});let aA="";const _Ze=vi(function({children:t}){const r=window.store.user,[n,i]=p.useState(!1),[o,a]=p.useState(!1),l=eu()?"small":"middle";let c=window.store.conversations_manager.current_selected_conversation;c!=null&&c.scenechat_conversation&&(c=c.scenechat_conversation),p.useEffect(()=>{var A;(A=window.store.user)==null||A.inputWidgetState.resetAdvices(),i(!1),a(!1),w(!1),g(""),c!=null&&c.voiceManager&&(c!=null&&c.voiceManager&&r.inputWidgetState.autoSend?c.voiceManager.onPlayFinish=()=>{P()}:c.voiceManager.onPlayFinish=()=>{})},[c==null?void 0:c.id,r.inputWidgetState.autoSend,c==null?void 0:c.scenechat_conversation]);const{clearText:d,text:u,joinedText:f,speaking:h,setSpeaking:v}=bZe(()=>{w(!0),R(!1)},()=>{R(!1),I()}),[y,g]=p.useState("");p.useEffect(()=>{h&&f&&g(`${aA}${f}`)},[f,h]),p.useEffect(()=>{y&&(r.setCurrentInput(y),r.inputWidgetState.autoSend&&E())},[y]);const m=p.useRef(null),[S,C]=p.useState(4);_ce(()=>{if(!y){C(4);return}const A=m.current?MHe(m.current):1,x=Math.min(15,Math.max(4,A));C(x)},100,[y]);const[b,w]=p.useState(!1);async function E(){I(),await r.send(),g("")}const[_,R]=p.useState(!1);function P(){y?aA=y+", ":aA="",R(!0),v(!0)}function I(){u&&g(A=>(A?A+", ":"")+u),v(!1),d(),w(!1)}function O(A){if(A.key==="Enter"){if(A.ctrlKey||A.shiftKey)return;A.preventDefault();const x=y||r.currentInput;x.trim()&&(r.setCurrentInput(x),E())}}return p.useEffect(()=>{var A;return(A=m.current)==null||A.addEventListener("keydown",O),()=>{var x;(x=m.current)==null||x.removeEventListener("keydown",O)}},[m]),Oe("div",{className:Xa.ChatInputArea,children:[n?B(wZe,{isLoading:o,onSelected:A=>{i(!1),r.setCurrentInput(A),E()}}):B("textarea",{ref:m,rows:S,disabled:r.inputWidgetState.autoSend||h,value:y,onChange:A=>{const x=(A==null?void 0:A.target.value)||"";r.setCurrentInput(x),g(x)},placeholder:he("speaking or typing your magic words")}),B("div",{className:"absolute bottom-2 right-2 space-x-2",children:n?B(hn,{size:l,type:"primary",onClick:()=>{i(!1)},children:he("Back")}):Oe(nn,{children:[B(hn,{size:l,type:"primary",onClick:async()=>{var A;a(!0),i(!0);try{await((A=window.store.conversations_manager.current_selected_conversation)==null?void 0:A.getAdvice())}finally{a(!1)}},children:he("Hints")}),B(hn,{type:"primary",onClick:E,size:l,children:B("span",{className:"",children:he("Send")})})]})}),B("div",{className:Xa.Transcript,children:u}
572),Oe("div",{children:[Oe("div",{className:Xa.Mic,onClick:()=>{if(!_)if(b){I();return}else P()},children:[B("div",{className:ie(b?Xa.MicPressed:void 0)}),_?B(Ii,{theme:{token:{colorPrimary:"white"}},children:B(na,{className:Xa.MicSpin,spinning:_})}):B(Rce,{})]}),B("div",{className:ie(b?Xa.MicRing:void 0)})]})]})}),EZe="_ChatInputWidgets_tljkk_1",RZe="_Item_tljkk_35",PZe="_PurpleGradient_tljkk_61",sA={ChatInputWidgets:EZe,Item:RZe,PurpleGradient:PZe},IZe=()=>B("svg",{width:"38",height:"26",viewBox:"0 0 38 26",xmlns:"http://www.w3.org/2000/svg",children:B("path",{d:"M19 8C20.3261 8 21.5979 8.52678 22.5355 9.46447C23.4732 10.4021 24 11.6739 24 13C24 14.3261 23.4732 15.5979 22.5355 16.5355C21.5979 17.4732 20.3261 18 19 18C17.6739 18 16.4021 17.4732 15.4645 16.5355C14.5268 15.5979 14 14.3261 14 13C14 11.6739 14.5268 10.4021 15.4645 9.46447C16.4021 8.52678 17.6739 8 19 8ZM19 0.5C27.3333 0.5 34.45 5.68333 37.3333 13C34.45 20.3167 27.3333 25.5 19 25.5C10.6667 25.5 3.55 20.3167 0.666668 13C3.55 5.68333 10.6667 0.5 19 0.5ZM4.3 13C5.64709 15.7505 7.73884 18.0679 10.3375 19.6888C12.9361 21.3096 15.9373 22.1689 19 22.1689C22.0627 22.1689 25.0639 21.3096 27.6625 19.6888C30.2612 18.0679 32.3529 15.7505 33.7 13C32.3529 10.2495 30.2612 7.93209 27.6625 6.31124C25.0639 4.6904 22.0627 3.83113 19 3.83113C15.9373 3.83113 12.9361 4.6904 10.3375 6.31124C7.73884 7.93209 5.64709 10.2495 4.3 13Z"})}),xZe=vi(function({children:t}){const r=eu(),n=window.store.user.inputWidgetState,i=[{icon:B(IZe,{}),desc:he("Show text"),onClick:()=>{n.updateField("showText",!n.showText)},active:n.showText},{icon:B(US,{size:r?"small":"default",checked:n.autoSend}),desc:he("Auto send"),onClick:o=>{n.updateField("autoSend",!n.autoSend)},active:n.autoSend},{icon:B(US,{size:r?"small":"default",checked:n.aiCheck}),desc:he("AI Check"),onClick:o=>{n.updateField("aiCheck",!n.aiCheck)},active:n.aiCheck},{icon:B(US,{size:r?"small":"default",checked:n.translate}),desc:he("Translation"),onClick:o=>{n.updateField("translate",!n.translate)},active:n.translate},{icon:B(US,{size:r?"small":"default",checked:n.sound}),desc:he("Sound"),onClick:o=>{n.updateField("sound",!n.sound)},active:n.sound}];return B("div",{className:sA.ChatInputWidgets,children:i.map(o=>Oe("div",{className:ie(sA.Item,{[sA.PurpleGradient]:o.active}),onClick:a=>o.onClick(""),children:[o.icon,B(vy.Text,{ellipsis:{tooltip:o.desc},children:B("span",{children:o.desc})})]},o.desc))})}),OZe="_PrettyText_12kdq_1",jG={PrettyText:OZe};function Fu({prefix:e,content:t,className:r,suffix:n,placeHolder:i,border:o}){if(!t)return i&&!t?B("div",{className:ie(jG.PrettyText,r),style:{display:"inline-block",width:"100%",overflowY:"auto"},children:B("div",{className:"text-gray-500",children:i})}):B(nn,{});const a=t.trim().split(`
573`);return a[0]=e+a[0],B("div",{className:ie(jG.PrettyText,r),style:{display:"inline-block",width:"100%",overflowY:"auto"},children:a.map((s,l)=>n&&l===a.length-1?Oe("div",{style:{borderBottom:o?"1px solid var(--pp-300)":"none"},children:[s,n]},l):B("div",{style:{backgroundColor:o?l%2===0?"var(--sl-50)":"var(--pp-50)":"none",marginBottom:o?"20px":"none"},children:s.startsWith("##")?B("span",{className:"font-bold text-[#834d9b]",children:s.replaceAll("##","")}):s},l))})}const TZe="_ReadAloudContainer_b1im8_1",AZe="_Material_b1im8_14",MZe="_TabHLine_b1im8_18",$Ze="_TabHeaders_b1im8_23",kZe="_TabHeadersActive_b1im8_38",NZe="_TabContent_b1im8_41",DZe="_TabContentDesc_b1im8_45",LZe="_MaterialUser_b1im8_50",jZe="_User_b1im8_68",FZe="_WordResults_b1im8_73",zZe="_WordResultText_b1im8_77",BZe="_Score_b1im8_83",HZe="_ScoreItem_b1im8_95",VZe="_Mic_b1im8_106",UZe="_MicPressed_b1im8_128",WZe="_MicDesc_b1im8_131",_o={ReadAloudContainer:TZe,Material:AZe,TabHLine:MZe,TabHeaders:$Ze,TabHeadersActive:kZe,TabContent:NZe,TabContentDesc:DZe,MaterialUser:LZe,User:jZe,WordResults:FZe,WordResultText:zZe,Score:BZe,ScoreItem:HZe,Mic:VZe,MicPressed:UZe,MicDesc:WZe},ln=({children:e,onClick:t,type:r,className:n,disabled:i,icon:o,size:a,danger:s})=>{const[l,c]=p.useState(!1),d=PR(t,200,!0);return B(hn,{danger:s,size:a,icon:o,disabled:i,type:r,className:n,loading:l,onClick:async()=>{c(!0);try{await d(c)}finally{c(!1)}},children:e})};let ma=new tP;const qZe=vi(function({setReferenceText:e}){const t=window.store.conversations_manager.current_selected_conversation,[r,n]=p.useState(!1),[i,o]=p.useState(t.user_material),[a,s]=p.useState(t.ai_material);p.useEffect(()=>{o(t.user_material),s(t.ai_material)},[t]);const[l,c]=p.useState(""),[d,u]=p.useState(""),f=p.useRef(null),h=[{key:"1",label:he("Essay(GPT-3)"),children:Oe("div",{className:"h-full relative",children:[Oe
573("div",{className:"h-[35%] relative overflow-y-auto",children:[Oe("div",{className:"",children:[B(ln,{className:"mr-2",onClick:g=>(s(""),new Promise((m,S)=>{PQe(C=>s(b=>b+C),C=>{t.updateAiMaterial((C==null?void 0:C.map(b=>JSON.parse(b)).join(""))||""),m(null)},()=>{S()},d)})),children:he("Generate")}),B(ln,{icon:B(Fte,{}),className:"mr-2",disabled:a.length===0,onClick:async()=>{const g=await Ew(a);c(g)},children:he("Translate")}),B(ln,{icon:B(g0,{className:"playCircleColor"}),disabled:a.length===0,onClick:()=>t.voiceManager.playAndSave(a,void 0),children:he("Play Sound")})]}),Oe("div",{className:"flex flex-col overflow-y-auto h-full] bg-[var(--sl-100)]",children:[B("span",{className:"text-sm text-[var(--sl-500)] mt-2 bg-[var(--sl-100)]",children:he("Basic Prompt: Compose an engaging paragraph for oral practice, including diverse vocabulary, sentence structures, pronunciation challenges...")}),Oe("div",{className:"bg-[var(--sl-100)]",children:[Oe("span",{className:"text-sm text-[var(--sl-500)] mb-2 ",children:[he("Extra Prompt(Optional)"),":"]}),B(Un,{maxLength:100,className:"w-1/2 ml-1",placeholder:he("Input the extra prompt for the material, e.g. 'A story about a dog'"),value:d,onChange:g=>u(g.target.value)})]})]})]}),B(Fu,{prefix:"",content:a,suffix:B("span",{children:l}),className:"h-[65%] overflow-y-auto text-xl p-2 pt-4",placeHolder:he("No essay generated yet")})]})},{key:"2",label:he("Essay(Input)"),children:Oe("div",{className:_o.MaterialUser,children:[Oe("div",{className:"h-[10%]",children:[B(hn,{className:"mr-2",onClick:()=>n(g=>(g===!1?setTimeout(()=>{var m;(m=f.current)==null||m.focus()}):t.updateUserMaterial(i),!g)),children:he(r?"Done":"Edit")}),B(ln,{className:"mr-2",disabled:i.length===0||r,onClick:async()=>{const g=await Ew(i);c(g)},children:he("Translate")}),B(ln,{className:"mb-4",disabled:i.length===0||r,onClick:()=>t.voiceManager.playAndSave(a,void 0),children:he("Play Sound")})]}),r?B("textarea",{ref:f,placeholder:"Input your material",value:i,onChange:g=>{t.updateUserMaterial(g.target.value),o(g.target.value)}}):B(Fu,{prefix:"",content:i,className:"h-[90%] overflow-y-auto text-xl p-4",suffix:B("span",{children:l}),placeHolder:he("No essay input yet")})]})}],[v,y]=p.useState(0);return p.useEffect(()=>{bce(),v===0?(c(""),e(a)):v===1&&(c(""),e(i))},[v,a,i]),Oe("div",{className:_o.Material,children:[B("div",{className:_o.TabHeaders,children:h.map((g,m)=>B("span",{onClick:()=>y(m),className:ie(v===m?_o.TabHeadersActive:void 0),children:g.label},m))}),B("div",{className:_o.TabHLine}),B("div",{className:_o.TabContent,children:h[v].children})]})}),GZe=vi(({results:e,tokenized_reference_text:t,recognizing_text:r})=>{const n=window.store.conversations_manager.current_selected_conversation;let i=[{name:"overallScore",label:"Overall",color:"green",note:"Overall score indicating the pronunciation quality of the given speech. This is aggregated from AccuracyScore, FluencyScore, and CompletenessScore with weight.",v:0},{name:"completenessScore",label:"Completeness",color:"blue",note:"Completeness of the speech, calculated by the ratio of pronounced words to the input reference text.",v:0},{name:"accuracyScore",label:"Accuracy",color:"purple",note:"Pronunciation accuracy of the speech. Accuracy indicates how closely the phonemes match a native speaker's pronunciation. Word and full text accuracy scores are aggregated from phoneme-level accuracy score.",v:0},{name:"fluencyScore",label:"Fluency",color:"pink",note:"Fluency of the given speech. Fluency indicates how closely the speech matches a native speaker's use of silent breaks between words.",v:0}];e.forEach(s=>{i.forEach(l=>{l.name in s&&(l.v+=s[l.name])})}
573),i.forEach(s=>s.v=Math.floor(s.v/e.length));const o=[];e.forEach(s=>s.words.forEach(l=>o.push(l)));function a(s,l){if(s==="Mispronunciation")return"red";if(l&&l<90)return"orange";if(s==="None")return"green";if(s==="Omission")return"gray"}return B("div",{className:_o.User,children:Oe("div",{className:"h-full w-full p-4 text-xl",children:[Oe("div",{className:"text-sm pb-2",children:[he("Tips: The meaning of the color represents"),B(OI,{className:"ml-2",color:"#ff4d4f",children:he("Mispronunciation")}),B(OI,{color:"#ffc069",children:he("Improvement")}),B(OI,{color:"#5b8c00",children:he("Perfect")})]}),Oe("div",{className:_o.WordResults,children:[o.map((s,l)=>B(co,{title:Oe("div",{children:[Oe("div",{children:[`${s.word}: ${s.score}`,B(g0,{className:"cursor-pointer ml-2 playCircleColor",onClick:()=>{n.voiceManager.playAndSave(s.word)}})]}),B("div",{className:"flex flex-row",children:s.phonemes.map((c,d)=>Oe("div",{className:"mr-2",children:[c.phoneme,B("br",{})," ",c.score]},c.phoneme+d))})]}),color:a(s.error,s.score),children:Oe("span",{className:_o.WordResultText,style:{color:a(s.error,s.score)},children:[s.word," "]})},s.word+l)),r]}),e.length?B("div",{className:_o.Score,children:i.map((s,l)=>Oe("div",{className:_o.ScoreItem,children:[B(hy,{style:{transform:`scale(${l===0?"1":"0.8"})`},strokeWidth:13,strokeColor:s.color,strokeLinecap:"butt",type:"circle",percent:s.v,format:(c,d)=>`${c}`}),Oe("div",{children:[he(s.label+" Score"),B(co,{title:s.note,children:B(RNe,{className:"ml-2"})})]})]},s.name))}):B(nn,{})]})})}),FG={accuracyScore:92,fluencyScore:95,completenessScore:99,overallScore:97,words:[{phonemes:[],word:"Once",score:100,error:"None"},{phonemes:[],word:"upon",score:60,error:"None"},{phonemes:[],word:"a",score:100,error:"None"},{phonemes:[],word:"time",score:90,error:"None"},{phonemes:[],word:"in",score:100,error:"None"},{phonemes:[],word:"a",score:100,error:"None"},{phonemes:[],word:"quaint",score:0,error:"Mispronunciation"},{phonemes:[],word:"little",score:90,error:"None"}]},KZe=vi(function({children:t}){const[r,n]=p.useState(""),[i,o]=p.useState(""),[a,s]=p.useState([FG]),[l,c]=p.useState([]),[d,u]=p.useState(null),[f,h]=p.useState(!1),v=window.store.conversations_manager.current_selected_conversation;p.useEffect(()=>{s(v.results.length?v.results:[FG]),o(""),c([]),u(null)},[v]),p.useEffect(()=>{ma==null||ma.onRecognizingStart(()=>{h(!1),u(!0)}),ma==null||ma.onRecognizing(S=>{o(S)}),ma==null||ma.onRecognized(S=>{s(C=>{let b=[...C];return S&&(b=[...b,S]),v.updateResult(b),b}),c(ma.tokenized_reference_text),o("")})},[]);function y(){f||m()&&(s([]),c([]),o(""),h(!0),ma.start(r).then(()=>{},()=>{h(!1),g()}))}function g(){ma.stop(),u(!1)}const m=()=>r?!0:(bt.warning(he("The reading eassay shouldn't be empty.")),!1);return B("div",{className:_o.ReadAloudContainer,children:Oe(Ii,{componentSize:"small",theme:{token:{colorPrimary:"#834d9b"}},children:[B(qZe,{setReferenceText:n}),B(GZe,{results:a,tokenized_reference_text:l,recognizing_text:i}),B("div",{className:ie(_o.Mic,d?_o.MicPressed:void 0),onClick:()=>{d?g():y()},children:f?B(Ii,{theme:{token:{colorPrimary:"white"}},children:B(na,{spinning:f,style:{color:"white",zIndex:3,position:"absolute",bottom:"20px",right:"calc(50% - 10px)"}})}):B(Rce,{})})]})})}),YZe=vi(({form:e})=>B(Hr,{form:e,labelCol:{lg:{span:4},md:{}},children:B(Hr.Item,{name:"revise_prompt",label:he("Prompt"),help:B("span",{className:"text-orange-600 text-[12px]",children:he("Set your sentence checking AI tutor prompt, note that {user_text} will be replaced by your actual sentence, maximum length is 1024")}),children:B(Un.TextArea,{maxLength:1024,rows:10})})})),XZe=vi(({form:e})=>{var n;function t(i){const o=ZQe[i];e.setFieldsValue(o)}const r=(n=window.store.user)==null?void 0:n.config;return Oe(Hr,{form:e,labelCol:{lg:{span:4},md:{}},children:[B(Hr.Item,{name:"language",label:he("setting.Language"),help:B("span",{className:"text-gray-500 text-[12px]",children:he("The language you want to practice, the teacher will respond and vocalize in that language")}),children:B(ks,{options:JQe,onChange:t})}),B(Hr.Item,{name:"prompt",label:he("Prompt"),help:B("span",{className:"text-gray-500 text-[12px]",children:he("Maximum length is 1024")}),children:B(Un.TextArea,{maxLength:1024,rows:6,placeholder:"System default prompt"})}),Oe("div",{className:"flex items-center",children:[B(Df,{span:4,className:"text-right",children:he("Voice Character")+":"}),B(ks,{value:r==null?void 0:r.voice_character,onChange:i=>r==null?void 0:r.updateField("voice_character",i),className:"w-1/2",options:Sce})]}),Oe("div",{className:"flex items-center mt-6",children:[B(Df,{span:4,className:"text-right",children:he("Voice Style")+"
573:"}),B(ks,{value:r==null?void 0:r.voice_style,onChange:i=>r==null?void 0:r.updateField("voice_style",i),className:"w-1/2",options:[{label:he("Cheerful"),value:"cheerful"},{label:he("Chat"),value:"chat"},{label:he("Default"),value:"default"},{label:he("Excited"),value:"excited"},{label:he("Unfriendly"),value:"unfriendly"},{label:he("Angry"),value:"angry"}]})]}),Oe("div",{className:"flex items-center mt-6",children:[B(Df,{span:4,className:"text-right",children:he("Voice Speed")+":"}),B(ste,{className:"w-1/3",min:0,max:50,step:1,value:r!=null&&r.voice_speed?r.voice_speed*100:25,onChange:i=>{r==null||r.updateField("voice_speed",i/100)}}),B(hn,{className:"ml-2 mt-2",size:"small",onClick:()=>r==null?void 0:r.updateField("voice_speed",.25),children:he("Reset")})]}),B("div",{className:"flex items-center mt-6",children:B(Df,{span:4,className:"text-right",children:he("Translation Language")+":"})})]})});function QZe({onOk:e}){const[t,r]=p.useState(!1),[n,i]=p.useState(!1),[o,a]=p.useState("ai tutor"),[s]=Gc(),l=window.store.conversations_manager.current_selected_conversation;let c=he("AI Tutor Setting");return o==="sentence tutor"&&(c=he("Sentence Tutor Setting")),{open:n,setOpen:i,elm:()=>B(V_,{mask:!1,title:c,open:n,confirmLoading:t,cancelText:he("Cancel"),okText:he("OK"),onOk:async()=>{r(!0);try{await s.validateFields();const u=s.getFieldsValue();l&&((u.language!==l.language||u.prompt!==l.prompt||u.revise_prompt!==l.revise_prompt)&&await window.store.conversations_manager.updateConversation(l.id,{name:u.name,description:u.description,prompt:u.prompt,revise_prompt:u.revise_prompt,language:u.language}),bt.success("update success"),i(!1))}finally{r(!1),e==null||e(null)}},onCancel:()=>{i(!1)},children:B(Kd,{waitFunc:async u=>{if(n===!0){if(!l)return;await window.store.conversations_manager.refreshConversation(l.id),s.setFieldValue("name",l.name),s.setFieldValue("description",l.description),s.setFieldValue("prompt",l.prompt),s.setFieldValue("revise_prompt",l.revise_prompt),s.setFieldValue("summary",l.summary),s.setFieldValue("language",l.language),u(!1)}},children:o==="ai tutor"?B(XZe,{form:s}):B(YZe,{form:s})})}),setType:a}}const JZe="_VocabulariesContainer_1bimr_1",ZZe="_RoundCount_1bimr_12",eet="_NoScheduledWords_1bimr_39",tet="_StoryBoard_1bimr_58",ret="_StoryWordDisplay_1bimr_79",net="_StoryWord_1bimr_79",iet="_StoryWordMeaning_1bimr_114",oet="_StoryWordPhonetic_1bimr_118",aet="_StoryDisplay_1bimr_123",set="_StoryItems_1bimr_140",cet="_StoryImage_1bimr_140",uet="_StoryItemImage_1bimr_150",det="_StoryItemImageBlur_1bimr_156",fet="_StoryTitle_1bimr_162",pet="_StoryTitleInner_1bimr_183",het="_Board_1bimr_209",vet="_ImageRight_1bimr_227",get="_ImageBlur_1bimr_247",met="_Image_1bimr_227",yet="_WordDisplay_1bimr_261",Cet="_Word_1bimr_261",bet="_Meaning_1bimr_302",wet="_Phonetic_1bimr_306",_et="_Widget_1bimr_311",Eet="_Button_1bimr_318",Ret="_ButtonCenter_1bimr_358",Pet="_FinalResult_1bimr_361",Iet="_NewWordColor_1bimr_365",xet="_ReviewWordColor_1bimr_368",Oet="_RememberedWordColor_1bimr_371",Tet="_WordDot_1bimr_374",Aet="_StarGiftCard_1bimr_381",Met="_FinalResultProgressCard_1bimr_401",$et="_FinalResultItem_1bimr_411",ket="_FinalResultWordTable_1bimr_419",Net="_FinalResultWordTableItem_1bimr_446",Det="_CarouselDots_1bimr_479",dr={VocabulariesContainer:JZe,RoundCount:ZZe,NoScheduledWords:eet,StoryBoard:tet,StoryWordDisplay:ret,StoryWord:net,StoryWordMeaning:iet,StoryWordPhonetic:oet,StoryDisplay:aet,StoryItems:set,StoryImage:cet,StoryItemImage:uet,StoryItemImageBlur:det,StoryTitle:fet,StoryTitleInner:pet,Board:het,ImageRight:vet,ImageBlur:get,Image:met,WordDisplay:yet,Word:Cet,Meaning:bet,Phonetic:wet,Widget:_et,Button:Eet,ButtonCenter:Ret,FinalResult:Pet,NewWordColor:Iet,ReviewWordColor:xet,RememberedWordColor:Oet,WordDot:Tet,StarGiftCard:Aet,FinalResultProgressCard:Met,FinalResultItem:$et,FinalResultWordTable:ket,FinalResultWordTableItem:Net,CarouselDots:Det},Let=[{value:"CET4",label:"CET4"},{value:"CET6",label:"CET6"},{value:"IETLS",label:"IETLS"}];function jet({form:e}){function t(r){e.setFieldsValue({level:r.target.value})}return B(Hr,{form:e,children:B(Hr.Item,{name:"level",label:he("Level"),children:B(ks,{options:Let,onChange:t})})})}function Fet({onOk:e}){const[t,r]=p.useState(!1),[n,i]=p.useState(!1),[o]=Gc(),a=window.store.conversations_manager.current_selected_conversation;return p.useEffect(()=>{if(n===!0){if(!a)return;window.store.conversations_manager.refreshConversation(a.id).then(()=>{var l;o.setFieldValue("level",((l=a.messages)==null?void 0:l.level)||"CET4")})}},[n]),{open:n,setOpen:i,elm:()=>B(V_,{mask:!1,title:he("Vocabularies Level"),open:n,confirmLoading:t,cancelButtonProps:{style:{display:"none"}},onCancel:()=>{i(!1)},onOk:async()=>{r(!0);try{await o.validateFields();const l=o.getFieldsValue();a&&(await window.store.conversations_manager.updateConversation(a.id,{messages:{level:l.level}}),bt.success("vocabularies setting success"),i(!1))}finally{r(!1),e==null||e(null)}},children:B(jet,{form:o})})}}const zG=5;function zet({wordInfo:e,stepIndex:t}){const r=p.useRef(null);return p.useEffect(()=>{setTimeout(()=>{var n;(n=r.current)==null||n.goTo(0)},300)}
573,[e]),e?Oe("div",{className:dr.StoryBoard,children:[Oe("div",{className:dr.StoryWordDisplay,children:[B("div",{className:dr.StoryWord,children:e==null?void 0:e.word}),Oe("div",{className:dr.StoryWordPhonetic,children:[e==null?void 0:e.phonetic,B(ln,{type:"link",icon:B(g0,{className:"playCircleColor"}),onClick:async()=>{var i;let n=window.store.conversations_manager.current_selected_conversation;await((i=n==null?void 0:n.voiceManager)==null?void 0:i.playAndSave(e.word,void 0))}})]}),t===1&&B("div",{className:dr.StoryWordMeaning,children:e==null?void 0:e.explain})]}),B("div",{className:dr.StoryDisplay,children:B(Cxe,{ref:r,dots:{className:dr.CarouselDots},children:e.image_urls.map((n,i)=>B("div",{className:dr.StoryItems,children:Oe("div",{className:dr.StoryImage,children:[B(Ob,{preview:!0,rootClassName:dr.StoryItemImage,src:`https://imagedelivery.net/OQPJCp3LxePaV3s3sviYpA/${n}/public`,placeholder:B(Ob,{preview:!1,rootClassName:dr.StoryItemImageBlur,src:`https://imagedelivery.net/OQPJCp3LxePaV3s3sviYpA/${n}/small`}),fallback:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMIAAADDCAYAAADQvc6UAAABRWlDQ1BJQ0MgUHJvZmlsZQAAKJFjYGASSSwoyGFhYGDIzSspCnJ3UoiIjFJgf8LAwSDCIMogwMCcmFxc4BgQ4ANUwgCjUcG3awyMIPqyLsis7PPOq3QdDFcvjV3jOD1boQVTPQrgSkktTgbSf4A4LbmgqISBgTEFyFYuLykAsTuAbJEioKOA7DkgdjqEvQHEToKwj4DVhAQ5A9k3gGyB5IxEoBmML4BsnSQk8XQkNtReEOBxcfXxUQg1Mjc0dyHgXNJBSWpFCYh2zi+oLMpMzyhRcASGUqqCZ16yno6CkYGRAQMDKMwhqj/fAIcloxgHQqxAjIHBEugw5sUIsSQpBobtQPdLciLEVJYzMPBHMDBsayhILEqEO4DxG0txmrERhM29nYGBddr//5/DGRjYNRkY/l7////39v///y4Dmn+LgeHANwDrkl1AuO+pmgAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAwqADAAQAAAABAAAAwwAAAAD9b/HnAAAHlklEQVR4Ae3dP3PTWBSGcbGzM6GCKqlIBRV0dHRJFarQ0eUT8LH4BnRU0NHR0UEFVdIlFRV7TzRksomPY8uykTk/zewQfKw/9znv4yvJynLv4uLiV2dBoDiBf4qP3/ARuCRABEFAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghgg0Aj8i0JO4OzsrPv69Wv+hi2qPHr0qNvf39+iI97soRIh4f3z58/u7du3SXX7Xt7Z2enevHmzfQe+oSN2apSAPj09TSrb+XKI/f379+08+A0cNRE2ANkupk+ACNPvkSPcAAEibACyXUyfABGm3yNHuAECRNgAZLuYPgEirKlHu7u7XdyytGwHAd8jjNyng4OD7vnz51dbPT8/7z58+NB9+/bt6jU/TI+AGWHEnrx48eJ/EsSmHzx40L18+fLyzxF3ZVMjEyDCiEDjMYZZS5wiPXnyZFbJaxMhQIQRGzHvWR7XCyOCXsOmiDAi1HmPMMQjDpbpEiDCiL358eNHurW/5SnWdIBbXiDCiA38/Pnzrce2YyZ4//59F3ePLNMl4PbpiL2J0L979+7yDtHDhw8vtzzvdGnEXdvUigSIsCLAWavHp/+qM0BcXMd/q25n1vF57TYBp0a3mUzilePj4+7k5KSLb6gt6ydAhPUzXnoPR0dHl79WGTNCfBnn1uvSCJdegQhLI1vvCk+fPu2ePXt2tZOYEV6/fn31dz+shwAR1sP1cqvLntbEN9MxA9xcYjsxS1jWR4AIa2Ibzx0tc44fYX/16lV6NDFLXH+YL32jwiACRBiEbf5KcXoTIsQSpzXx4N28Ja4BQoK7rgXiydbHjx/P25TaQAJEGAguWy0+2Q8PD6/Ki4R8EVl+bzBOnZY95fq9rj9zAkTI2SxdidBHqG9+skdw43borCXO/ZcJdraPWdv22uIEiLA4q7nvvCug8WTqzQveOH26fodo7g6uFe/a17W3+nFBAkRYENRdb1vkkz1CH9cPsVy/jrhr27PqMYvENYNlHAIesRiBYwRy0V+8iXP8+/fvX11Mr7L7ECueb/r48eMqm7FuI2BGWDEG8cm+7G3NEOfmdcTQw4h9/55lhm7DekRYKQPZF2ArbXTAyu4kDYB2YxUzwg0gi/41ztHnfQG26HbGel/crVrm7tNY+/1btkOEAZ2M05r4FB7r9GbAIdxaZYrHdOsgJ/wCEQY0J74TmOKnbxxT9n3FgGGWWsVdowHtjt9Nnvf7yQM2aZU/TIAIAxrw6dOnAWtZZcoEnBpNuTuObWMEiLAx1HY0ZQJEmHJ3HNvGCBBhY6jtaMoEiJB0Z29vL6ls58vxPcO8/zfrdo5qvKO+d3Fx8Wu8zf1dW4p/cPzLly/dtv9Ts/EbcvGAHhHyfBIhZ6NSiIBTo0LNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiEC/wGgKKC4YMA4TAAAAABJRU5ErkJggg=="},n),B("div",{className:dr.StoryTitle,children:B("div",{className:dr.StoryTitleInner,children:e.part_of_stories[i]})})]},n)},n))})})]}):null}const Bet=vi(function({children:t}){var b,w,E,_,R,P,I,O,A,x,T,D,k,j,N,L,M,$,F,z,H,U,V;const{open:r,setOpen:n,elm:i}=Fet({onOk:async()=>{window.store.conversations_manager.refreshConversation(o.id),l(0)}}),o=window.store.conversations_manager.current_selected_conversation;p.useEffect(()=>{var W;o&&((W=o.messages)==null?void 0:W.level)===void 0&&n(!0)},[]);const a=(o==null?void 0:o.wordsInfo)||[],[s,l]=p.useState(0),[c,d]=p.useState(0),u=a[c],[f,h]=p.useState(0);p.useState(!1);const[v,y]=p.useState({review_words:void 0,remembered_words:void 0,scheduled_
573words:void 0}),[g,m]=p.useState(!1);p.useEffect(()=>{c===zG&&(l(W=>(W===2&&(m(!0),(async()=>{var K,Z;try{await o.updateVocabularies(((K=v.review_words)==null?void 0:K.map(q=>q.word))||[],((Z=v.remembered_words)==null?void 0:Z.map(q=>q.word))||[]),setTimeout(()=>{$He()},500)}finally{m(!1)}})()),W+1)),d(0)),h(0)},[c]),p.useEffect(()=>{var W,K;s===0&&((K=(W=o.vocabularies)==null?void 0:W.scheduled_words)==null?void 0:K.length)!==0&&l(1)},[s]),p.useEffect(()=>{h(0)},[s]);let S="";s===1&&(S=he("Image Mode")),s===2&&(S=he("Story Mode"));function C(W){var K,Z,q;if((K=v.remembered_words)!=null&&K.find(Y=>Y.word===W))return dr.RememberedWordColor;if((Z=v.review_words)!=null&&Z.find(Y=>Y.word===W))return dr.ReviewWordColor;if((q=v.scheduled_words)!=null&&q.find(Y=>Y.word===W))return dr.NewWordColor}return Oe(Ii,{theme:{token:{colorPrimary:"#834d9b"}},children:[Oe("div",{className:qt.ChatContainer,children:[B("div",{className:qt.ChatHeader,children:Oe("div",{className:qt.ChatHeaderTitle,children:[o.name," ",B("span",{className:qt.ChatHeaderDesc,children:o.description})]})}),B("div",{className:qt.DialogContainer,children:Oe("div",{className:dr.VocabulariesContainer,children:[!o.vocabularies||((w=(b=o.vocabularies)==null?void 0:b.scheduled_words)==null?void 0:w.length)===0&&s!==3?Oe("div",{className:dr.NoScheduledWords,children:[B("img",{alt:"",src:"new-word-welcome.png"}),B(ln,{type:"primary",onClick:async()=>{var W;if(o&&((W=o.messages)==null?void 0:W.level)===void 0){n(!0);return}await o.scheduleNewWords(),l(1)},children:he("Start learning new words!")})]}):Oe(Kd,{waitFunc:async W=>{var K;if((K=o.wordsInfo)!=null&&K.length){W(!1);return}await o.getWordsInfo(),W(!1),l(1)},children:[s!==3&&s!==0?Oe("div",{className:dr.RoundCount,children:[he(`Round ${s}`)+" "," (",S,"):"," ",c+1,"/",zG]}):B(nn,{children:" "}),s===1?Oe("div",{className:dr.Board,children:[B("div",{className:dr.ImageRight,children:B(Ob,{rootClassName:dr.Image,preview:!1,src:`https://imagedelivery.net/OQPJCp3LxePaV3s3sviYpA/${(E=u==null?void 0:u.word_image_urls)==null?void 0:E[0]}/public`,placeholder:B(Ob,{preview:!1,rootClassName:dr.ImageBlur,src:`https://imagedelivery.net/OQPJCp3LxePaV3s3sviYpA/${(_=u==null?void 0:u.word_image_urls)==null?void 0:_[0]}/small`}),fallback:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMIAAADDCAYAAADQvc6UAAABRWlDQ1BJQ0MgUHJvZmlsZQAAKJFjYGASSSwoyGFhYGDIzSspCnJ3UoiIjFJgf8LAwSDCIMogwMCcmFxc4BgQ4ANUwgCjUcG3awyMIPqyLsis7PPOq3QdDFcvjV3jOD1boQVTPQrgSkktTgbSf4A4LbmgqISBgTEFyFYuLykAsTuAbJEioKOA7DkgdjqEvQHEToKwj4DVhAQ5A9k3gGyB5IxEoBmML4BsnSQk8XQkNtReEOBxcfXxUQg1Mjc0dyHgXNJBSWpFCYh2zi+oLMpMzyhRcASGUqqCZ16yno6CkYGRAQMDKMwhqj/fAIcloxgHQqxAjIHBEugw5sUIsSQpBobtQPdLciLEVJYzMPBHMDBsayhILEqEO4DxG0txmrERhM29nYGBddr//5/DGRjYNRkY/l7////39v///y4Dmn+LgeHANwDrkl1AuO+pmgAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAwqADAAQAAAABAAAAwwAAAAD9b/HnAAAHlklEQVR4Ae3dP3PTWBSGcbGzM6GCKqlIBRV0dHRJFarQ0eUT8LH4BnRU0NHR0UEFVdIlFRV7TzRksomPY8uykTk/zewQfKw/9znv4yvJynLv4uLiV2dBoDiBf4qP3/ARuCRABEFAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghgg0Aj8i0JO4OzsrPv69Wv+hi2qPHr0qNvf39+iI97soRIh4f3z58/u7du3SXX7Xt7Z2enevHmzfQe+oSN2apSAPj09TSrb+XKI/f379+08+A0cNRE2ANkupk+ACNPvkSPcAAEibACyXUyfABGm3yNHuAECRNgAZLuYPgEirKlHu7u7XdyytGwHAd8jjNyng4OD7vnz51dbPT8/7z58+NB9+/bt6jU/TI+AGWHEnrx48eJ/EsSmHzx40L18+fLyzxF3ZVMjEyDCiEDjMYZZS5wiPXnyZFbJaxMhQIQRGzHvWR7XCyOCXsOmiDAi1HmPMMQjDpbpEiDCiL358eNHurW/5SnWdIBbXiDCiA38/Pnzrce2YyZ4//59F3ePLNMl4PbpiL2J0L979+7yDtHDhw8vtzzvdGnEXdvUigSIsCLAWavHp/+qM0BcXMd/q25n1vF57TYBp0a3mUzilePj4+7k5KSLb6gt6ydAhPUzXnoPR0dHl79WGTNCfBnn1uvSCJdegQhLI1vvCk+fPu2ePXt2tZOYEV6/fn31dz+shwAR1sP1cqvLntbEN9MxA9xcYjsxS1jWR4AIa2Ibzx0tc44fYX/16lV6NDFLXH+YL32jwiACRBiEbf5KcXoTIsQSpzXx4N28Ja4BQoK7rgXiydbHjx/P25TaQAJEGAguWy0+2Q8PD6/Ki4R8EVl+bzBOnZY95fq9rj9zAkTI2SxdidBHqG9+skdw43borCXO/ZcJdraPWdv22uIEiLA4q7nvvCug8WTqzQveOH26fodo7g6uFe/a17W3+nFBAkRYENRdb1vkkz1CH9cPsVy/jrhr27PqMYvENYNlHAIesRiBYwRy0V+8iXP8+/fvX11Mr7L7ECueb/r48eMqm7FuI2BGWDEG8cm+7G3NEOfmdcTQw4h9/55lhm7DekRYKQPZF2ArbXTAyu4kDYB2YxUzwg0gi/41ztHnfQG26HbGel/crVrm7tNY+/1btkOEAZ2M05r4FB7r9GbAIdxaZYrHdOsgJ/wCEQY0J74TmOKnbxxT9n3FgGGWWsVdowHtjt9Nnvf7yQM2aZU/TIAIAxrw6dOnAWtZZcoEnBpNuTuObWMEiLAx1HY0ZQJEmHJ3HNvGCBBhY6jtaMoEiJB0Z29vL6ls58vxPcO8/zfrdo5qvKO+d3Fx8Wu8zf1dW4p/cPzLly/dtv9Ts/EbcvGAHhHyfBIhZ6NSiIBTo0LNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiEC/wGgKKC4YMA4TAAAAABJRU5ErkJggg=="})}),Oe("div",{className:dr.WordDisplay,children:[B("div",{className:dr.Word,children:u==null?void 0:u.word}),Oe("div",{className:dr.Phonetic,children:[u==null?void 0:u.phonetic,B(ln,{type:"link",icon:B(g0,{className:"playCircleColor"}),onClick:()=>
573o.voiceManager.playAndSave(u.word,void 0)})]}),f===1&&B("div",{className:dr.Meaning,children:u==null?void 0:u.explain})]})]}):B(nn,{}),s===2?B(zet,{stepIndex:f,wordInfo:u}):B(nn,{}),s===3?g?B("div",{className:"h-full",children:B(na,{})}):Oe("div",{className:dr.FinalResult,children:[Oe("div",{className:dr.StarGiftCard,children:[B("img",{alt:"",src:"star-gift.png"}),he("You have finished learning this batch of words 🎉")]}),Oe("div",{className:dr.FinalResultProgressCard,children:[B("div",{className:ie(dr.FinalResultItem,"font-bold"),children:he("Learning Schedule Progress")}),B("div",{className:dr.FinalResultItem,children:B(co,{title:`${((P=(R=o.vocabularies)==null?void 0:R.remembered_words)==null?void 0:P.length)||0}/${(I=o.messages)!=null&&I.level?Ng[o.messages.level].count:0}`,children:B(hy,{strokeColor:"#834d9b",strokeWidth:20,percent:Math.round((((A=(O=o.vocabularies)==null?void 0:O.remembered_words)==null?void 0:A.length)||0)*100/((x=o.messages)!=null&&x.level?Ng[o.messages.level].count:0))})})}),Oe("div",{className:dr.FinalResultItem,children:[Oe("span",{className:"w-1/2",children:[he("Remembered words"),":"," ",B("span",{className:"text-2xl font-bold",children:((D=(T=o.vocabularies)==null?void 0:T.remembered_words)==null?void 0:D.length)||0})]}),Oe("span",{className:"w-1/2",children:[he("Left words"),":"," ",B("span",{className:"text-2xl font-bold",children:(k=o.messages)!=null&&k.level?Ng[o.messages.level].count-(((N=(j=o.vocabularies)==null?void 0:j.remembered_words)==null?void 0:N.length)||0):0})]})]})]}),B("div",{className:dr.FinalResultWordTable,children:a==null?void 0:a.map(W=>Oe("div",{className:dr.FinalResultWordTableItem,children:[B("div",{className:ie(C(W.word),dr.WordDot)}),W.word,B("br",{}),W.explain]}))}),B(ln,{type:"primary",onClick:async()=>{await o.scheduleNewWords(),l(1),y({remembered_words:void 0,scheduled_
573words:void 0,review_words:void 0})},children:he("To learn next batch of new words")})]}):B(nn,{}),s!==3&&s!==0?B("div",{className:dr.Widget,children:f===1?B("div",{className:ie(dr.Button,dr.ButtonCenter),onClick:()=>{d(W=>W+1)},children:he("Next Word")}):Oe(nn,{children:[B("div",{className:dr.Button,onClick:()=>{u&&s===2&&y({...v,scheduled_words:(v.scheduled_words||[]).concat([u])}),h(1),ai.track("Vocabularies-Click-I-dont-know")},children:he("I don't know")}),B("div",{className:dr.Button,onClick:()=>{u&&(s===2&&y({...v,review_words:(v.review_words||[]).concat([u])}),h(1),ai.track("Vocabularies-Click-Approximate"))},children:he("approximate")}),B("div",{className:dr.Button,onClick:()=>{u&&(s===2&&y({...v,remembered_words:(v.remembered_words||[]).concat([u])}),h(1),ai.track("Vocabularies-Click-I-know"))},children:he("I know")})]})}):B(nn,{})]}),i()]})})]}),Oe("div",{className:qt.RightContainer,children:[Oe("div",{className:qt.Title,children:[he("Progress Track")," 🏃‍♂️"]}),Oe("div",{className:qt.Content,children:[he("Current Book"),": ",(L=o.messages)==null?void 0:L.level,B(co,{title:he("You will lose all your data of the current book"),children:B(hn,{danger:!0,size:"small",className:"ml-2",onClick:async()=>{n(!0)},children:he("vocabularies.Change")})}),B("br",{}),B("br",{}),he("All Progress"),":"," ",(($=(M=o.vocabularies)==null?void 0:M.remembered_words)==null?void 0:$.length)||0,"/",(F=o.messages)!=null&&F.level?Ng[o.messages.level].count:0]})]}),B("div",{className:qt.RightContainerDropdown,children:B(O_,{content:Oe("div",{className:qt.DropdownContent,children:[Oe("div",{className:qt.DDTitle,children:[he("Progress Track")," 🏃‍♂️"]}),Oe("div",{className:qt.DDContent,children:[he("Current Book"),": ",(z=o.messages)==null?void 0:z.level,B("br",{}),he("All Progress"),":"," ",((U=(H=o.vocabularies)==null?void 0:H.remembered_words)==null?void 0:U.length)||0,"/",(V=o.messages)!=null&&V.level?Ng[o.messages.level].count:0]})]}),placement:"bottom",arrow:!1,children:B(x_,{})})})]})}),Het="_SceneChatContainer_1ccfx_1",Vet="_TopicContainer_1ccfx_1",Uet="_TopicList_1ccfx_5",Wet="_TopicItem_1ccfx_13",qet="_TopicItemImage_1ccfx_42",Get="_TopicItemRight_1ccfx_56",Ket="_TopicItemRightName_1ccfx_63",Yet="_TopicItemRightAuthor_1ccfx_69",Xet="_TopicItemRightDescription_1ccfx_76",Qet="_EnterBtn_1ccfx_82",Jet="_EnterBtnDelete_1ccfx_94",Zet="_EnterBtnEdit_1ccfx_100",So={SceneChatContainer:Het,TopicContainer:Vet,TopicList:Uet,TopicItem:Wet,TopicItemImage:qet,TopicItemRight:Get,TopicItemRightName:Ket,TopicItemRightAuthor:Yet,TopicItemRightDescription:Xet,EnterBtn:Qet,EnterBtnDelete:Jet,EnterBtnEdit:Zet},rP=p.createContext({sceneData:{},setSceneData:()=>{}}),BG=({ellipsis:e,max_length:t=20,children:r})=>{let n=r;return n.length>t&&(n=(n==null?void 0:n.toString().slice(0,t))+"..."),B(co,{title:r,children:n})};function HG(){const[e,t]=p.useState([]),[r,n]=p.useState(!1),{sceneData:i,setSceneData:o}=p.useContext(rP),a=i.action==="records",s=window.store.conversations_manager.current_selected_conversation,l=async()=>{n(!0);try{const{result:S}=await WQe({author_email:window.store.user.config.email,public_:!1}),C=S.map(b=>({...b,key:b.id}));t(C)}finally{n(!1)}},c=async()=>{n(!0);try{const{result:S}=await UQe(),C=S.map(b=>({...b,key:b.id}));C.reverse(),t(C)}finally{n(!1)}};p.useEffect(()=>{a?l():c()},[a]);const d=async S=>{await(s==null?void 0:s.attachSceneChatConversation(S)),i.setModalOpen(!1),ai.track("Topic_chat_enter")},u=async S=>{await VQe({dialogue_script_id:S}),await l(),bt.success("Delete success")},f=(S,C)=>{o({...i,action:"create",data:{dialogue_script_id:S,edit:!0,script_item:C}})};let v=eu()?3:6,[y,g]=p.useState(1),m=e.slice((y-1)*v,y*v);return Oe("div",{className:So.TopicContainer,children:[B(na,{className:"w-full",spinning:r}),e.length===0?B(Du,{className:"w-full"}):Oe(nn,{children:[B("div",{className:So.TopicList,children:m.map(S=>Oe("div",{className:So.TopicItem,children:[B("div",{className:So.TopicItemImage,children:B("img",{src:S.image_url})}),Oe("div",{className:So.TopicItemRight,children:[B("div",{className:So.TopicItemRightName,children:B(BG,{ellipsis:!0,max_length:20,children:S.name})}),Oe("div",{className:So.TopicItemRightAuthor,children:[B(FEe,{size:"small",className:"bg-purple-400 mr-2",children:S.author_display_name[0]}),S.author_email==="[email protected]"?"Teacher Jessie":S.author_display_name]}),B("div",{className:So.TopicItemRightDescription,children:B(BG,{ellipsis:!0,max_length:40,children:S.description})}),a&&Oe(nn,{children:[B(ln,{size:"small",danger:!0,onClick:async()=>await u(S.key),className:ie(So.EnterBtn,So.EnterBtnDelete),children:he("topic_chat.delete_btn")}),B(ln,{size:"small",onClick:async()=>f(S.key,S),className:ie(So.EnterBtn,So.EnterBtnEdit),children:he("topic_chat.edit_btn")})]}),B(ln,{onClick:async()=>await d(S.key),className:So.EnterBtn,children:he("topic_chat.chat_btn")})]})]},S.key))}),B("div",{className:"w-full text-center",children:B(_$e,{onChange:S=>{g(S)},pageSize:v,defaultCurrent:1,total:e.length})})]})]})}function ett(){const[e]=Gc(),{sceneData:t,setSceneData:r}=p.useContext(rP);return p.useEffect(()=>{t.data.script_item&&e.setFieldsValue(t.data.script_item)},[]),B("div",{className:"pt-4",children:Oe(Hr,{labelCol:{span:6},wrapperCol:{span:14},layout:"horizontal",size:"large",form:e,children:[B(Hr.Item,{name:"name",label:he("topic_chat.name"),rules:[{required:!0}],children:B(Un,{maxLength:120,placeholder:"e.g. Greeting"})}
573),B(Hr.Item,{name:"description",label:he("topic_chat.description"),rules:[{required:!0}],children:B(Un.TextArea,{placeholder:"e.g. Learning how to greeting others",maxLength:512})}),B(Hr.Item,{name:"script",label:he("topic_chat.script"),rules:[{required:!0}],className:"mb-10",children:B(Un.TextArea,{rows:8,maxLength:8048,placeholder:he(`A:Hi, how are you? 
574B:Hi, I'm doing well, and you? 
575A:Glad to hear that! I'm good!
576...`)})}),t.data.edit?Oe(nn,{children:[B(ln,{size:"middle",className:"absolute right-28 bottom-4",onClick:async()=>{r({...t,action:"records",data:{}}),e.resetFields()},children:he("topic_chat.clear_btn")}),B(ln,{size:"middle",className:"absolute right-6 bottom-4",onClick:async()=>{const n=e.getFieldsValue();if(!n.name||!n.description||!n.script){bt.warning("please fill in the form");return}Q$(n.script)&&(await HQe({dialogue_script_id:t.data.dialogue_script_id,name:n.name,description:n.description,script:n.script,public_:!1}),bt.success(he("Update successfully")),e.resetFields(),r({...t,action:"records",data:{}}))},children:he("Update")})]}):B(ln,{size:"middle",className:"absolute right-6 bottom-4",onClick:async()=>{const n=e.getFieldsValue();if(!n.name||!n.description||!n.script){bt.warning(he("Please fill in the empty field"));return}if(!Q$(n.script))return;(await BQe({name:n.name,description:n.description,script:n.script})).dialogue_script_id&&(bt.success(he("Create successfully")),e.resetFields(),r({...t,action:"records",data:{}}))},children:he("Submit")})]})})}function ttt({children:e,onTopicCreate:t,onTopicSelect:r}){const{sceneData:n,setSceneData:i}=p.useContext(rP);return Oe("div",{className:So.SceneChatContainer,children:[e,n.action==="community"&&B(HG,{}),n.action==="records"&&B(HG,{}),n.action==="create"&&B(ett,{})]})}const rtt=()=>B("svg",{width:"30",height:"30",viewBox:"0 0 30 30",xmlns:"http://www.w3.org/2000/svg",children:B("path",{d:"M19.0893 14.2H10.9093C10.9892 10.9062 11.5563 7.98124 12.3363 5.8763C12.7305 4.81247 13.1774 3.96271 13.6398 3.38092C14.1048 2.79571 14.5703 2.5 15 2.5C15.4297 2.5 15.8952 2.79572 16.3604 3.38093C16.8229 3.96271 17.2698 4.81247 17.6641 5.8763C18.4441 7.98124 19.0108 10.9062 19.0893 14.2ZM17.8976 27.1629C19.4918 24.8383 20.5818 20.6399 20.6923 15.8H27.4742C27.3011 18.4946 26.2603 21.0619 24.5062 23.1172C22.7857 25.133 20.471 26.5485 17.8976 27.1629ZM24.5062 6.88283C26.2603 8.9381 27.3011 11.5054 27.4742 14.2H20.6909C20.5818 9.36148 19.4931 5.16187 17.8977 2.83713C20.471 3.45156 22.7858 4.86702 24.5062 6.88283ZM12.1024 2.8371C10.5082 5.16172 9.41819 9.36008 9.30772 14.2H2.52578C2.69895 11.5054 3.73967 8.9381 5.4938 6.88283C7.21427 4.86699 9.52904 3.45151 12.1024 2.8371ZM5.4938 23.1172C3.73967 21.0619 2.69895 18.4946 2.52578 15.8H9.30909C9.41822 20.6385 10.5069 24.8381 12.1023 27.1629C9.52896 26.5484 7.21424 25.133 5.4938 23.1172ZM12.337 24.1237C11.557 22.0188 10.9899 19.0938 10.9107 15.8H19.0907C19.0108 19.0938 18.4437 22.0188 17.6637 24.1237C17.2695 25.1875 16.8226 26.0373 16.3602 26.6191C15.8952 27.2043 15.4297 27.5 15 27.5C14.5707 27.5 14.1054 27.2043 13.6404 26.6191C13.1781 26.0373 12.7312 25.1875 12.337 24.1237ZM0.9 15C0.9 22.7874 7.21257 29.1 15 29.1C22.7874 29.1 29.1 22.7874 29.1 15C29.1 7.21257 22.7874 0.9 15 0.9C7.21257 0.9 0.9 7.21257 0.9 15Z",stroke:"#686A6E",strokeWidth:"0.2"})}),ntt=()=>B("svg",{width:"28",height:"26",viewBox:"0 0 28 26",xmlns:"http://www.w3.org/2000/svg",children:B("path",{d:"M25.329 4.72818L21.8195 1.21867C21.0337 0.432861 19.9882 0 18.876 0C17.7639 0 16.7184 0.432861 15.9326 1.21867L15.9309 1.22034L15.9293 1.222L15.9209 1.23033L13.7167 3.43626C13.6784 3.47455 13.6451 3.51617 13.6151 3.55945L12.3365 4.84971C12.1812 5.00654 12.0945 5.21858 12.0955 5.43927C12.0964 5.65996 12.1849 5.87126 12.3415 6.02676C12.4983 6.18204 12.7104 6.26872 12.9311 6.26779C13.1517 6.26685 13.363 6.17837 13.5185 6.02177L14.311 5.22264C16.4687 7.42524 19.1491 10.1623 21.2651 12.3249L9.88584 23.7042C9.48101 24.1069 8.93357 24.3337 8.3625 24.3351H8.35418L1.75803 24.3068C1.72973 24.3068 1.70642 24.2969 1.68811 24.2769C1.67925 24.2673 1.67246 24.256 1.66816 24.2437C1.66387 24.2314 1.66216 24.2183 1.66314 24.2053L2.12264 18.1202C2.16093 17.6075 2.38402 17.123 2.74862 16.7584L9.79594 9.6911C9.87322 9.61377 9.93449 9.52195 9.97624 9.4209C10.018 9.31985 10.0394 9.21157 10.0392 9.10223C10.0391 8.9929 10.0174 8.88468 9.97534 8.78375C9.9333 8.68282 9.87177 8.59117 9.79428 8.51405C9.71694 8.43677 9.62512 8.3755 9.52407 8.33375C9.42303 8.292 9.31474 8.27059 9.20541 8.27075C9.09607 8.2709 8.98785 8.29262 8.88692 8.33466C8.78599 8.37669 8.69434 8.43822 8.61723 8.51572L1.57157 15.5814C0.925648 16.227 0.532809 17.083 0.464444 17.9937L0.00494475 24.0788C-0.031682 24.5649 0.136468 25.0477 0.466109 25.4056C0.79575 25.7636 1.26524 25.97 1.75137 25.9717L8.34752 26H8.3625C9.36807 26 10.352 25.5921 11.0629 24.8812L25.329 10.6168C26.9522 8.99187 26.9522 6.35141 25.329 4.72818ZM22.4438 11.1462C20.3245 8.98021 17.6407 6.2382 15.4847 4.03893L17.1113 2.39739C18.0852 1.42345 19.6702 1.42345 20.6425 2.39739L24.152 5.9069C25.1259 6.88083 25.1259 8.46411 24.152 9.43805L22.4438 11.1462ZM26.5144 25.9667H13.5885C13.129 25.9667 12.756 25.5938 12.756 25.1343C12.756 24.6748 13.129 24.3019 13.5885 24.3019H26.5127C26.9722 24.3019 27.3451 24.6748 27.3451 25.1343C27.3451 25.5938 26.9739 25.9667 26.5144 25.9667Z"})}),itt=()=>Oe("svg",{width:"25",height:"29",viewBox:"0 0 25 29",xmlns:"http://www.w3.org/2000/svg",children:[B("path",{d:"M6.74761 7.45877H10.7961C11.1924 7.45877 11.5139 7.13719 11.5139 6.74095C11.5139 6.34471 11.1924 6.02313 10.7961 6.02313H7.46543V3.22075C7.46543 2.82451 7.14384 2.50293 6.74761 2.50293C6.35137 2.50293 6.02979 2.82451 6.02979 3.22075V6.74095C6.03553 7.13719 6.35711 7.45877 6.74761 7.45877Z"}),B("path",{d:"M23.1943 2.14198H11.6747C10.44 0.826931 8.68851 0 6.74752 0C3.02634 0 0 3.02634 0 6.74752C0 9.0503 1.16 11.0832 2.92297 12.3006V27.3863C2.92297 28.2764 3.63505 29 4.51366 29H23.1885C24.0671 29 24.7792 28.2764 24.7792 27.3863V3.75564C24.785 2.86554 24.0729 2.14198 23.1943 2.14198ZM1.4299 6.74752C1.4299 3.81307 3.81307 1.4299 6.74752 1.4299C9.68198 1.4299 12.0651 3.81307 12.0651 6.74752C12.0651 9.68198 9.68198 12.0651 6.74752 12.0651C3.81881 12.0651 1.4299 9.67624 1.4299 6.74752ZM23.3091 27.3863C23.3091 27.461 23.2574 27.5242 23.1943 27.5242H4.51366C4.45049 27.5242 4.39881 27.461 4.39881 27.3863V13.0701C5.12812 13.34 5.92059 13.4893 6.74752 13.4893
576C10.4687 13.4893 13.495 10.463 13.495 6.74178C13.495 5.61624 13.2194 4.54812 12.7255 3.61782H23.1943C23.2574 3.61782 23.3091 3.68099 23.3091 3.75564V27.3863Z"}),B("path",{d:"M14.7528 11.6222H20.3116C20.7078 11.6222 21.0294 11.3006 21.0294 10.9043C21.0294 10.5081 20.7078 10.1865 20.3116 10.1865H14.7528C14.3565 10.1865 14.0349 10.5081 14.0349 10.9043C14.0349 11.3063 14.3565 11.6222 14.7528 11.6222ZM20.3231 15.6247H8.74028C8.34404 15.6247 8.02246 15.9463 8.02246 16.3426C8.02246 16.7388 8.34404 17.0604 8.74028 17.0604H20.3173C20.7135 17.0604 21.0351 16.7388 21.0351 16.3426C21.0351 15.9463 20.7193 15.6247 20.3231 15.6247ZM20.3231 21.241H8.74028C8.34404 21.241 8.02246 21.5626 8.02246 21.9588C8.02246 22.355 8.34404 22.6766 8.74028 22.6766H20.3173C20.7135 22.6766 21.0351 22.355 21.0351 21.9588C21.0351 21.5626 20.7193 21.241 20.3231 21.241Z"})]}),ott="_SceneChatModalHeader_1ezmr_1",att="_HeaderItem_1ezmr_6",stt="_HeaderItemActive_1ezmr_39",lA={SceneChatModalHeader:ott,HeaderItem:att,HeaderItemActive:stt};function ltt({onOk:e}){const[t,r]=p.useState(!1),[n,i]=p.useState(!1);window.store.conversations_manager.current_selected_conversation;const o=eu(),[a,s]=p.useState({action:"community",data:{},setModalOpen:i}),l=[{icon:B(rtt,{}),key:"community",label:he("topic_chat.community")},{icon:B(itt,{}),key:"records",label:he("topic_chat.My Records")},{icon:B(ntt,{}),key:"create",label:he("topic_chat.Create")}];return{open:n,setOpen:i,elm:()=>B(V_,{footer:null,width:o?"100%":"60%",title:B("div",{className:lA.SceneChatModalHeader,children:l.map(d=>Oe("div",{className:ie(lA.HeaderItem,a.action===d.key&&lA.HeaderItemActive),onClick:()=>{var u,f;if(d.key!=="community"&&((f=(u=window.store.user)==null?void 0:u.config)==null?void 0:f.voice_quota)!==-1){bt.warning(he("Please upgrade your subscription for full access!"));return}if(a.action==="create"&&a.data.edit){bt.warning(he("Please save the topic first"));return}s({...a,action:d.key})},children:[d.icon,B("span",{children:d.label})]},d.key))}),open:n,confirmLoading:t,onCancel:()=>{i(!1)},children:B(rP.Provider,{value:{sceneData:a,setSceneData:s},children:B(ttt,{})})})}}const ctt=()=>Oe("svg",{width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Oe("mask",{id:"path-1-outside-1_1512_766",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"26",height:"26",fill:"black",children:[B("rect",{fill:"white",width:"26",height:"26"}),B("path",{d:"M23.1829 13.2871C23.1302 13.6326 22.9131 14.1337 22.1807 14.5567C20.6029 15.4693 17.9849 16.9009 17.3203 17.2628C16.9532 17.9447 15.475 20.674 14.5791 22.2448C14.1289 23.0298 13.572 23.1949 13.1817 23.1949H13.1808C12.7726 23.1949 12.3657 23.0146 11.9732 22.6585C10.6553 21.4684 8.45396 19.3901 7.8948 18.8605C7.1195 18.7284 4.03079 18.1978 2.29217 17.8626C1.79152 17.764 1.38022 17.4699 1.16451 17.0509C1.00284 16.7367 0.877337 16.2119 1.20561 15.4975C1.95947 13.8494 3.27607 11.1001 3.60654 10.4124C3.51053 9.65553 3.13181 6.64288 2.94288 4.86098C2.89017 4.37365 3.05186 3.88145 3.38502 3.51151C3.7423 3.113 4.24161 2.91174 4.77753 2.96932C6.55591 3.14605 9.61692 3.5115 10.3802 3.60301C11.0599 3.27146 13.7623 1.95811 15.4116 1.19324C15.6885 1.0656 15.9662 1 16.2382 1C17.0412 1 17.6955 1.57612 17.8674 2.43515C18.2194 4.19341 18.7316 7.08779 18.8629 7.83527C19.3894 8.3846 21.4313 10.5155 22.6353 11.8284C23.0753 12.3054 23.2593 12.7963 23.1829 13.2871ZM21.7529 12.6392C20.3742 11.1384 17.8947 8.56133 17.8701 8.53454C17.7879 8.44886 17.7317 8.33996 17.7116 8.22172C17.7058 8.18779 17.0917 4.67714 16.6906 2.66943C16.6683 2.56011 16.5709 2.19953 16.2382 2.19953C16.1418 2.19953 16.0341 2.22764 15.918 2.28164C14.0387 3.15185 10.7799 4.74274 10.7459 4.75925C10.6428 4.80923 10.5266 4.83065 10.4114 4.81548C10.3752 4.80923 6.67873 4.36432 4.65786 4.16171C4.65563 4.16171 4.65206 4.16171 4.64983 4.16171C4.44572 4.16171 4.33899 4.24248 4.2778 4.31254C4.17507 4.42766 4.12014 4.58923 4.13623 4.73426C4.3506 6.76115 4.81372 10.3981 4.81952 10.4369C4.83381 10.5516 4.81506 10.6677 4.76459 10.7708C4.74806 10.8047 3.15413 14.1212 2.29712 15.9955C2.19753 16.2119 2.17384 16.3922 2.23146 16.5016C2.28551 16.6056 2.41548 16.664 2.52086 16.6841C4.49617 17.067 8.2369 17.7034 8.27577 17.7092C8.39279 17.7279 8.50086 17.7841 8.58615 17.8649C8.61428 17.8894 11.2792 20.4126 12.7784 21.7692C13.0106 21.9803 13.1455 21.9954 13.1817 21.9954C13.279 21.9954 13.4139 21.8665 13.5372 21.6496C14.5523 19.8681 16.3307 16.5703 16.3481 16.5378C16.4035 16.436 16.4879 16.3517 16.5897 16.2963C16.6214 16.2776 19.7856 14.5555 21.5792 13.5189C21.8221 13.3783 21.978 13.2239 21.9967 13.1043C22.0128 12.9953 21.9239 12.8266 21.7529 12.6392ZM24.8242 24.8242C24.708 24.9402 24.5535 25 24.4012 25C24.2462 25 24.0926 24.9402 23.9756 24.8242L19.1737 20.0261C18.9402 19.7918 18.9402 19.4125 19.1737 19.1768C19.4082 18.9426 19.7878 18.9426 20.0223 19.1768L24.8242 23.975C25.0586 24.2106 25.0586 24.5899 24.8242 24.8242Z"})]}),B("path",{d:"M23.1829 13.2871C23.1302 13.6326 22.9131 14.1337 22.1807 14.5567C20.6029 15.4693 17.9849 16.9009 17.3203 17.2628C16.9532 17.9447 15.475 20.674 14.5791 22.2448C14.1289 23.0298 13.572 23.1949 13.1817 23.1949H13.1808C12.7726 23.1949 12.3657 23.0146 11.9732 22.6585C10.6553 21.4684 8.45396 19.3901 7.8948 18.8605C7.1195 18.7284 4.03079 18.1978 2.29217 17.8626C1.79152 17.764 1.38022 17.4699 1.16451 17.0509C1.00284 16.7367 0.877337 16.2119 1.20561 15.4975C1.95947 13.8494 3.27607 11.1001 3.60654 10.4124C3.51053 9.65553 3.13181 6.64288 2.94288 4.8
5766098C2.89017 4.37365 3.05186 3.88145 3.38502 3.51151C3.7423 3.113 4.24161 2.91174 4.77753 2.96932C6.55591 3.14605 9.61692 3.5115 10.3802 3.60301C11.0599 3.27146 13.7623 1.95811 15.4116 1.19324C15.6885 1.0656 15.9662 1 16.2382 1C17.0412 1 17.6955 1.57612 17.8674 2.43515C18.2194 4.19341 18.7316 7.08779 18.8629 7.83527C19.3894 8.3846 21.4313 10.5155 22.6353 11.8284C23.0753 12.3054 23.2593 12.7963 23.1829 13.2871ZM21.7529 12.6392C20.3742 11.1384 17.8947 8.56133 17.8701 8.53454C17.7879 8.44886 17.7317 8.33996 17.7116 8.22172C17.7058 8.18779 17.0917 4.67714 16.6906 2.66943C16.6683 2.56011 16.5709 2.19953 16.2382 2.19953C16.1418 2.19953 16.0341 2.22764 15.918 2.28164C14.0387 3.15185 10.7799 4.74274 10.7459 4.75925C10.6428 4.80923 10.5266 4.83065 10.4114 4.81548C10.3752 4.80923 6.67873 4.36432 4.65786 4.16171C4.65563 4.16171 4.65206 4.16171 4.64983 4.16171C4.44572 4.16171 4.33899 4.24248 4.2778 4.31254C4.17507 4.42766 4.12014 4.58923 4.13623 4.73426C4.3506 6.76115 4.81372 10.3981 4.81952 10.4369C4.83381 10.5516 4.81506 10.6677 4.76459 10.7708C4.74806 10.8047 3.15413 14.1212 2.29712 15.9955C2.19753 16.2119 2.17384 16.3922 2.23146 16.5016C2.28551 16.6056 2.41548 16.664 2.52086 16.6841C4.49617 17.067 8.2369 17.7034 8.27577 17.7092C8.39279 17.7279 8.50086 17.7841 8.58615 17.8649C8.61428 17.8894 11.2792 20.4126 12.7784 21.7692C13.0106 21.9803 13.1455 21.9954 13.1817 21.9954C13.279 21.9954 13.4139 21.8665 13.5372 21.6496C14.5523 19.8681 16.3307 16.5703 16.3481 16.5378C16.4035 16.436 16.4879 16.3517 16.5897 16.2963C16.6214 16.2776 19.7856 14.5555 21.5792 13.5189C21.8221 13.3783 21.978 13.2239 21.9967 13.1043C22.0128 12.9953 21.9239 12.8266 21.7529 12.6392ZM24.8242 24.8242C24.708 24.9402 24.5535 25 24.4012 25C24.2462 25 24.0926 24.9402 23.9756 24.8242L19.1737 20.0261C18.9402 19.7918 18.9402 19.4125 19.1737 19.1768C19.4082 18.9426 19.7878 18.9426 20.0223 19.1768L24.8242 23.975C25.0586 24.2106 25.0586 24.5899 24.8242 24.8242Z"}),B("path",{d:"M23.1829 13.2871C23.1302 13.6326 22.9131 14.1337 22.1807 14.5567C20.6029 15.4693 17.9849 16.9009 17.3203 17.2628C16.9532 17.9447 15.475 20.674 14.5791 22.2448C14.1289 23.0298 13.572 23.1949 13.1817 23.1949H13.1808C12.7726 23.1949 12.3657 23.0146 11.9732 22.6585C10.6553 21.4684 8.45396 19.3901 7.8948 18.8605C7.1195 18.7284 4.03079 18.1978 2.29217 17.8626C1.79152 17.764 1.38022 17.4699 1.16451 17.0509C1.00284 16.7367 0.877337 16.2119 1.20561 15.4975C1.95947 13.8494 3.27607 11.1001 3.60654 10.4124C3.51053 9.65553 3.13181 6.64288 2.94288 4.86098C2.89017 4.37365 3.05186 3.88145 3.38502 3.51151C3.7423 3.113 4.24161 2.91174 4.77753 2.96932C6.55591 3.14605 9.61692 3.5115 10.3802 3.60301C11.0599 3.27146 13.7623 1.95811 15.4116 1.19324C15.6885 1.0656 15.9662 1 16.2382 1C17.0412 1 17.6955 1.57612 17.8674 2.43515C18.2194 4.19341 18.7316 7.08779 18.8629 7.83527C19.3894 8.3846 21.4313 10.5155 22.6353 11.8284C23.0753 12.3054 23.2593 12.7963 23.1829 13.2871ZM21.7529 12.6392C20.3742 11.1384 17.8947 8.56133 17.8701 8.53454C17.7879 8.44886 17.7317 8.33996 17.7116 8.22172C17.7058 8.18779 17.0917 4.67714 16.6906 2.66943C16.6683 2.56011 16.5709 2.19953 16.2382 2.19953C16.1418 2.19953 16.0341 2.22764 15.918 2.28164C14.0387 3.15185 10.7799 4.74274 10.7459 4.75925C10.6428 4.80923 10.5266 4.83065 10.4114 4.81548C10.3752 4.80923 6.67873 4.36432 4.65786 4.16171C4.65563 4.16171 4.65206 4.16171 4.64983 4.16171C4.44572 4.16171 4.33899 4.24248 4.2778 4.31254C4.17507 4.42766 4.12014 4.58923 4.13623 4.73426C4.3506 6.76115 4.81372 10.3981 4.81952 10.4369C4.83381 10.5516 4.81506 10.6677 4.76459 10.7708C4.74806 10.8047 3.15413 14.1212 2.29712 15.9955C2.19753 16.2119 2.17384 16.3922 2.23146 16.5016C2.28551 16.6056 2.41548 16.664 2.52086 16.6841C4.49617 17.067 8.2369 17.7034 8.27577 17.7092C8.39279 17.7279 8.50086 17.7841 8.58615 17.8649C8.61428 17.8894 11.2792 20.4126 12.7784 21.7692C13.0106 21.9803 13.1455 21.9954 13.1817 21.9954C13.279 21.9954 13.4139 21.8665 13.5372 21.6496C14.5523 19.8681 16.3307 16.5703 16.3481 16.5378C16.4035 16.436 16.4879 16.3517 16.5897 16.2963C16.6214 16.2776 19.7856 14.5555 21.5792 13.5189C21.8221 13.3783 21.978 13.2239 21.9967 13.1043C22.0128 12.9953 21.9239 12.8266 21.7529 12.6392ZM24.8242 24.8242C24.708 24.9402 24.5535 25 24.4012 25C24.2462 25 24.0926 24.9402 23.9756 24.8242L19.1737 20.0261C18.9402 19.7918 18.9402 19.4125 19.1737 19.1768C19.4082 18.9426 19.7878 18.9426 20.0223 19.1768L24.8242 23.975C25.0586 24.2106 25.0586 24.5899 24.8242 24.8242Z",strokeWidth:"0.6",mask:"url(#path-1-outside-1_1512_766)"})]}),utt=vi(()=>{var y,g,m,S,C;let e=window.store.conversations_manager.current_selected_conversation,t=e;
576const r=(y=window.store.user)==null?void 0:y.inputWidgetState;e.scenechat_conversation&&(e=e.scenechat_conversation),p.useEffect(()=>{const b=document.getElementById("history");b&&b.addEventListener("scroll",()=>{b.scrollTop===0&&e.loadMore()})},[]),p.useEffect(()=>{const b=document.getElementById("history");b&&(b.scrollTop=b.scrollHeight)},[(g=e==null?void 0:e.latestReply)==null?void 0:g.ai,(m=e==null?void 0:e.latestReply)==null?void 0:m.translate]);function n(){t.scenechat_conversation||(l("ai tutor"),a(!0),ai.track("Conversation_setting_clicked"))}function i(){l("sentence tutor"),a(!0),ai.track("Conversation_sentence_setting_clicked")}const{open:o,setOpen:a,elm:s,setType:l}=QZe({});PR((b,w)=>{e.voiceManager.playAndSave(b,w)},500,!0);const c=(S=e==null?void 0:e.latestReply)==null?void 0:S.revise,d=eu(),{open:u,setOpen:f,elm:h}=ltt({});let v="Chatty Tutor";return t.scenechat_conversation&&(v=t.scenechat_conversation.name),Oe(Ii,{theme:{token:{colorPrimary:"#834d9b"}},children:[Oe("div",{className:qt.ChatContainer,children:[Oe("div",{className:qt.ChatHeader,children:[B("div",{className:qt.ChatHeaderSettingIcon,children:t.scenechat_conversation?B("span",{children:"🌟"}):!d&&B($b,{onClick:n,className:"w-[20px] mr-2 text-[#9c62a6] h-full"})}),B("div",{className:qt.ChatHeaderTitle,children:v}),B("div",{className:qt.ThemeStar,onClick:async()=>{f(!0)},children:Oe("div",{className:qt.ThemeStarRing,children:[B(ctt,{}),d?B(nn,{}):B("span",{children:he("Topic Chat")})]})})]}),Oe("div",{className:qt.DialogContainer,id:"history",children:[B("div",{className:qt.Dialog,children:Oe("div",{className:qt.History,style:{filter:r!=null&&r.showText?"none":"blur(0.35rem)"},children:[Oe(Cb,{loading:e.history.length===0&&e.loading,active:!0,avatar:!0,children:[B(na,{spinning:e.loading,children:B("div",{className:"w-full text-center text-small text-gray-400",children:e.history.length>=e.history_total?he("- no more history -"):""})}),e==null?void 0:e.history.map((b,w)=>{var E,_;return Oe("div",{children:[b.type!=="head_msg"&&Oe(nn,{children:[Oe("div",{className:ie(qt.ChatItem,"flex justify-end"),children:[B("div",{className:qt.ChatItemContentUser,children:B(Fu,{className:qt.UserText,prefix:"",content:b.user})}),B("img",{alt:"",src:"/Alfie.png",className:qt.ChatItemAvatarRight})]}),d&&B("div",{className:ie(qt.ChatItem,"flex justify-end"),children:b.revise&&((E=window.store.user)==null?void 0:E.inputWi
576dgetState.aiCheck)&&B("div",{className:qt.ChatItemRevise,children:B(Fu,{prefix:"",content:b.revise})})})]}),Oe("div",{className:qt.ChatItem,children:[B("img",{alt:"",src:"/Jenny.png",className:qt.ChatItemAvatar}),Oe("div",{className:qt.ChatItemContentAI,children:[B(Fu,{prefix:"",content:b.ai}),B("br",{}),((_=window.store.user)==null?void 0:_.inputWidgetState.translate)&&B("span",{className:qt.TranslationText,children:b.translate}),e.hasNewReply&&w===e.history.length-1||b.ai===ap?B(nn,{}):Oe("div",{className:"float-right",children:[B(ln,{type:"text",icon:B(e4e,{className:"cursor-pointer text-[1.1rem] md:text-[1.2rem] playCircleColor "}),onClick:async()=>{await e.voiceManager.stop(b.id)}}),B(ln,{type:"text",icon:B(g0,{className:"cursor-pointer text-[1.1rem] md:text-[1.2rem] playCircleColor "}),onClick:async()=>{await e.voiceManager.playAndSave(b.ai,b.id)}}),B(ln,{onClick:async()=>{await e.updateTranslation(b.id)},type:"text",icon:B(Fte,{className:"cursor-pointer text-[1.1rem] md:text-[1.2rem] playCircleColor"})})]})]})]})]},b.id)})]}),B(Cb,{className:"mt-6",loading:e.loading,active:!0,avatar:!0})]})}),s()]}),Oe("div",{className:qt.Input,children:[B("div",{className:qt.ClearButton,children:t.scenechat_conversation?B(ln,{type:"primary",className:"mr-2 bg-red-500",onClick:async()=>{await t.detachSceneChatConversation()},icon:B(tF,{}),children:he("conversation.exit_scenechat")}):B(ln,{onClick:async()=>{const b=window.store.conversations_manager.current_selected_conversation;b&&(await MQe(b.id),bt.success(he("Memory is cleared")))},icon:B(tF,{}),children:he("conversation.clear")})}),Oe("div",{className:qt.InputCard,children:[B("div",{className:qt.Widget,children:B(xZe,{})}),B(_Ze,{})]})]})]}),Oe("div",{className:qt.RightContainer,children:[t.scenechat_conversation?Oe("div",{className:qt.RightContainerItem,children:[Oe("div",{className:qt.Title,children:[he("Dialogue Script")," 📜"]}),B("div",{className:qt.Content,children:B(Fu,{border:!0,className:qt.DialogueScriptText,prefix:"",content:t.scenechat_conversation.dialogue_script_raw})})]}):null,Oe("div",{className:qt.RightContainerItem,children:[Oe("div",{className:qt.Title,children:[B($b,{onClick:i,className:"w-[17px] mr-2"}),he("Sentence Tutor")]}),Oe("div",{className:qt.Content,children:[((C=window.store.user)==null?void 0:C.inputWidgetState.aiCheck)&&B(Fu,{className:qt.SuggestionContainerText,prefix:"",content:c||""}),c?B(nn,{}):B(Du,{className:"mt-[20%]",image:"empty.png",description:!1})]})]})]}),h()]})}),rL=vi(function({children:t}){const r=window.store.conversations_manager.current_selected_conversation,n=eu();if(!r)return Oe("div",{className:qt.ChatContainer,children:[B("div",{className:qt.ChatHeader}),B("div",{className:ie(qt.DialogContainer,"flex justify-center items-center text-2xl"),children:B(hn,{icon:B(Fee,{}),size:n?void 0:"large",onClick:()=>{window.store.conversations_manager.addConversation("english_teacher")},className:"mb-10 text-[var(--sl-600)]",children:he("Let's start Learning !")})})]});if(r.mode==="read_aloud"){let i=r;return Oe("div",{className:qt.ChatContainer,children:[B("div",{className:qt.ChatHeader,children:Oe("div",{className:qt.ChatHeaderTitle,children:[i.name,B("span",{className:qt.ChatHeaderDesc,children:i.description})]})}),B("div",{className:qt.DialogContainer,children:B(KZe,{})})]})}return r.mode==="english_teacher"?B(utt,{}):r.mode==="vocabularies"?B(Bet,{}):B(nn,{})}),dtt=vi(function({children:t}){return ta(),B("div",{className:tL.Chat,children:B(Kd,{waitFunc:async r=>{await XD("english_teacher"),r(!1)},children:B(rL,{})})})}),ftt=vi(function({children:t}){return ta(),B("div",{className:tL.Chat,children:B(Kd,{waitFunc:async r=>{await XD("vocabularies"),r(!1)},children:B(rL,{})})})}),ptt=vi(function({children:t}){return ta(),B("div",{className:tL.Chat,children:B(Kd,{waitFunc:async r=>{await XD("read_aloud"),r(!1)},children:B(rL,{})})})}),htt="_ContainerLayout_1e9xr_1",vtt="_Header_1e9xr_8",gtt="_Container_1e9xr_1",cA={ContainerLayout:htt,Header:vtt,Container:gtt};function nL({children:e,title:t}){return Oe("div",{className:cA.ContainerLayout,children:[B("div",{className:cA.Header,children:t}),B("div",{className:cA.Container,children:e})]})}const mtt="_FormLabel_f76g3_1",ytt="_FormItem_f76g3_7",Stt="_Paid_f76g3_30",Ho={FormLabel:mtt,FormItem:ytt,Paid:Stt},Ctt=vi(()=>{var i,o,a,s,l,c,d,u,f,h,v,y,g;async function e(){var S,C,b,w,E,_,R,P,I,O,A;if(!t.nickname){bt.warning("nickname cannot be empty");return}if(t.nickname.length>
57620){bt.warning("nickname cannot be longer than 20 characters");return}if(t.confirmPassword&&t.newPassword&&t.confirmPassword!==t.newPassword){bt.warning("Password not match");return}if(await yce({apikey:t==null?void 0:t.apikey,nickname:t==null?void 0:t.nickname,password:t.newPassword,llm_provider:t.llmProvider,llm_max_tokens:t.llmMaxTokens,mother_language:t.motherLanguage})){bt.success("Update success");const x=await JR();(S=window.store.user)==null||S.updateUserConfig(x),r({nickname:((b=(C=window.store.user)==null?void 0:C.config)==null?void 0:b.nickname)||"",apikey:((E=(w=window.store.user)==null?void 0:w.config)==null?void 0:E.apikey)||"",confirmPassword:"",newPassword:"",llmProvider:((R=(_=window.store.user)==null?void 0:_.config)==null?void 0:R.llm_provider)||"",llmMaxTokens:((I=(P=window.store.user)==null?void 0:P.config)==null?void 0:I.llm_max_tokens)||512,motherLanguage:((A=(O=window.store.user)==null?void 0:O.config)==null?void 0:A.mother_language)||"English"})}}const[t,r]=p.useState({nickname:((o=(i=window.store.user)==null?void 0:i.config)==null?void 0:o.nickname)||"",apikey:((s=(a=window.store.user)==null?void 0:a.config)==null?void 0:s.apikey)||"",confirmPassword:"",newPassword:"",llmProvider:((c=(l=window.store.user)==null?void 0:l.config)==null?void 0:c.llm_provider)||"",llmMaxTokens:((u=(d=window.store.user)==null?void 0:d.config)==null?void 0:u.llm_max_tokens)||512,motherLanguage:((h=(f=window.store.user)==null?void 0:f.config)==null?void 0:h.mother_language)||"English"}),n=(v=window.store.user)==null?void 0:v.config;return Gc(),B(nL,{title:he("Account"),children:Oe(Ii,{componentSize:"middle",theme:{token:{colorPrimary:"#834d9b"}},children:[B("div",{className:Ho.FormLabel,children:he("Current Subscription")}),Oe("div",{className:Ho.FormItem,children:[B("span",{children:(n==null?void 0:n.subscription_type)===0?B("div",{className:"text-gray-500 mt-3",children:he("Free Trial")}):Oe("div",{className:Ho.Paid,children:[B(Uke,{})," ",he("Paid")]})}),Oe("div",{className:"mt-4",children:[he("Voice Usage"),":"," ",(n==null?void 0:n.voice_quota)===-1?"∞ "+he("Unlimited"):B(co,{title:`${n==null?void 0:n.voice_usage}/${n==null?void 0:n.voice_quota}`,children:B(hy,{strokeLinecap:"butt",percent:n?n.voice_usage/n.voice_quota*100:0,showInfo:!1})})]}),Oe("div",{className:"mt-4",children:[he("Token Usage"),":"," ",(n==null?void 0:n.token_quota)===-1?"∞ "+he("Unlimited"):B(co,{title:`${n==null?void 0:n.token_usage}/${n==null?void 0:n.token_quota}`,children:B(hy,{strokeLinecap:"butt",percent:n?n.token_usage/n.token_quota*100:0,showInfo:!1})})]}),Oe("div",{className:"mt-4",children:[((n==null?void 0:n.subscription_type)===1||(n==null?void 0:n.subscription_type)===0)&&he("Expire Time"),(n==null?void 0:n.subscription_type)===2&&he("Renew Time"),":"," ",IHe(n==null?void 0:n.expire_date)]})]}),B("div",{className:Ho.FormLabel,children:he("Nick Name")}),B("div",{className:Ho.FormItem,children:B(Un,{className:"w-1/2",value:t==null?void 0:t.nickname,maxLength:20,onChange:m=>r({...t,nickname:m.target.value})})}),B("div",{className:Ho.FormLabel,children:he("Email")}),B("div",{className:Ho.FormItem,children:B(vy.Text,{ellipsis:!0,children:(g=(y=window.store.user)==null?void 0:y.config)==null?void 0:g.email})}),B("div",{className:Ho.FormLabel,children:he("Password")}),Oe("div",{className:Ho.FormItem,children:[B(Un,{className:"my-2 w-1/2",type:"password",placeholder:he("New Password"),value:t.newPassword,onChange:m=>r({...t,newPassword:m.target.value})}),B("br",{}),B(Un,{className:"my-2 w-1/2",type:"password",placeholder:he("Confirm Password"),value:t.confirmPassword,onChange:m=>r({...t,confirmPassword:m.target.value})})]}),B("div",{className:Ho.FormLabel,children:he("Your Native Language")}),Oe("div",{className:Ho.FormItem,children:[B("div",{className:"text-gray-500 mb-2",children:he("This will effect the translation language of the teacher reply.")}),B(ks,{className:"w-1/2",value:t.motherLanguage,onChange:m=>r({...t,motherLanguage:m}),options:Boe,showSearch:!0,filterOption:(m,S)=>((S==null?void 0:S.value)??"").toLowerCase().includes(m.toLowerCase())})]}),B("div",{className:Ho.FormLabel,children:he("LLM Max Tokens")}
576),Oe("div",{className:Ho.FormItem,children:[Oe("div",{className:"text-gray-500 mb-2",children:[he("This will effect the max length of the teacher reply."),"128 ~ 2048"]}),B(Mu,{min:128,max:2048,value:t.llmMaxTokens,onChange:m=>r({...t,llmMaxTokens:Number(m)})})," "]}),B(ln,{type:"primary",onClick:e,children:he("Save Change")}),B(ln,{type:"primary",className:"ml-2",onClick:async()=>{await OQe(),window.location.reload()},children:he("Log Out")})]})})}),btt="_FormLabel_7qay5_1",wtt="_FormItem_7qay5_7",Gl={FormLabel:btt,FormItem:wtt},_tt=vi(()=>{var t;const e=(t=window.store.user)==null?void 0:t.config;return B(nL,{title:he("Preference"),children:Oe(Ii,{theme:{token:{colorPrimary:"#834d9b"}},children:[B("div",{className:Gl.FormLabel,children:he("Display Language")}),Oe("div",{className:Gl.FormItem,children:[B("div",{className:"text-gray-500 mb-2",children:he("Change the display language of the website.")}),B(ks,{value:e==null?void 0:e.display_language,onChange:r=>e==null?void 0:e.updateField("display_language",r),className:"w-1/2",options:eJe})]}),B("div",{className:Gl.FormLabel,children:he("Voice Character")}),Oe("div",{className:Gl.FormItem,children:[B("div",{className:"text-gray-500 mb-2",children:he("Change the AI's voice character here, including accent. only effect in English, other languages has default voice.")}),B(ks,{value:e==null?void 0:e.voice_character,onChange:r=>e==null?void 0:e.updateField("voice_character",r),className:"w-1/2",options:Sce})]}),B("div",{className:Gl.FormLabel,children:he("Voice Style")}),Oe("div",{className:Gl.FormItem,children:[B("div",{className:"text-gray-500 mb-2",children:he("Change the AI's voice style")}),B(ks,{value:e==null?void 0:e.voice_style,onChange:r=>e==null?void 0:e.updateField("voice_style",r),className:"w-1/2",options:[{label:he("Cheerful"),value:"cheerful"},{label:he("Chat"),value:"chat"},{label:he("Default"),value:"default"},{label:he("Excited"),value:"excited"},{label:he("Unfriendly"),value:"unfriendly"},{label:he("Angry"),value:"angry"}]})]}),B("div",{className:Gl.FormLabel,children:he("Voice Speed")}),Oe("div",{className:Gl.FormItem,children:[B("div",{className:"text-gray-500 mb-2",children:he("Change the AI's voice speed, the larger the number, the faster the speaking")}),Oe("div",{className:"flex",children:[B(ste,{className:"w-1/3",min:0,max:50,step:1,defaultValue:e!=null&&e.voice_speed?(e==null?void 0:e.voice_speed)*100:25,onAfterChange:r=>{e==null||e.updateField("voice_speed",r/100)}}),B(hn,{className:"ml-2",size:"small",type:"link",onClick:()=>e==null?void 0:e.updateField("voice_speed",.25),children:he("Reset")})]})]})]})})}),Ett="_FormLabel_9slr6_1",Rtt="_FormItem_9slr6_7",Ptt="_FormPriceItem_9slr6_27",Itt="_Price_9slr6_46",xtt="_PriceItem_9slr6_63",Ott="_PriceItemActive_9slr6_94",Ttt="_PriceItemTitle_9slr6_98",Att="_PriceItemPrice_9slr6_113",Mtt="_Discount_9slr6_120",$tt="_Unit_9slr6_132",ktt="_Info_9slr6_137",Ntt="_GreenFont_9slr6_147",Dtt="_PriceItemDescription_9slr6_151",Ltt="_BuyButton_9slr6_162",Ba={FormLabel:Ett,FormItem:Rtt,FormPriceItem:Ptt,Price:Itt,PriceItem:xtt,PriceItemActive:Ott,PriceItemTitle:Ttt,PriceItemPrice:Att,Discount:Mtt,Unit:$tt,Info:ktt,GreenFont:Ntt,PriceItemDescription:Dtt,BuyButton:Ltt},jtt=vi(()=>{var i,o,a;let e=((o=(i=window.store.user)==null?void 0:i.config)==null?void 0:o.display_language)==="zh";const t=[{title:"🔥"+he("1 Month"),price:e?"69.00":"10.00",note:he("OVERALL UNLIMITED"),unit:e?"元":"USD",product_id:"one_month",services:[`${he("Voice Quota")}: ${he("Unlimited")}`,`${he("AI Token")}: ${he("Unlimited")}`,`${he("Topic Chat")}: ${he("Support")}`,`${he("Expire time")}: 1 ${he("Month")}`],url:"https://chattytutor.lemonsqueezy.com/checkout/buy/382e72f0-341b-4da4-b448-43dcb81266c2?embed=1"},{title:he("3 Months"),price:e?"192":"28.00",unit:e?"元":"USD",note:he("OVERALL UNLIMITED"),product_id:"three_month",discount:"-10%",services:[`${he("Voice Quota")}: ${he("Unlimited")}`,`${he("AI Token")}: ${he("Unlimited")}`,`${he("Call Realtime")}: ${he("Support")}`,`${he("Topic Chat")}: ${he("Support")}`,`${he("Expire time")}: 3 ${he("Month")}`],url:"https://chattytutor.lemonsqueezy.com/checkout/buy/72ba7564-53e2-469a-b888-6dcd21fe25c1?embed=1"},{title:he("1 Year"),price:e?"660":"95.00",unit:e?"元":"USD",product_id:"one_year",n
576ote:he("OVERALL UNLIMITED"),discount:"-20%",services:[`${he("Voice Quota")}: ${he("Unlimited")}`,`${he("AI Token")}: ${he("Unlimited")}`,`${he("Call Realtime")}: ${he("Support")}`,`${he("Topic Chat")}: ${he("Support")}`,`${he("Expire time")}: 1 ${he("Year")}`],url:"https://chattytutor.lemonsqueezy.com/checkout/buy/25850468-d9de-4007-a82a-b1dee5ec1a91?embed=1"},{title:he("Monthly"),price:e?"55":"8.00",discount:"-20%",note:he("OVERALL UNLIMITED"),unit:e?"元":"USD",product_id:"monthly_subscription",services:[`${he("Voice Quota")}: ${he("Unlimited")}`,`${he("AI Token")}: ${he("Unlimited")}`,`${he("Call Realtime")}: ${he("Support")}`,`${he("Topic Chat")}: ${he("Support")}`,`${he("Expire time")}: ${he("Renew every month")}`],url:"https://chattytutor.lemonsqueezy.com/checkout/buy/5151f9a8-38bb-4c42-9b22-a1ac9b69166d?embed=1"},{title:he("Yearly"),price:e?"579.00":"84.00",note:he("OVERALL UNLIMITED"),discount:"-30%",unit:e?"元":"USD",product_id:"yearly_subscription",services:[`${he("Voice Quota")}: ${he("Unlimited")}`,`${he("AI Token")}: ${he("Unlimited")}`,`${he("Call Realtime")}: ${he("Support")}`,`${he("Topic Chat")}: ${he("Support")}`,`${he("Expire time")}: ${he("Renew every year")}`],url:"https://chattytutor.lemonsqueezy.com/checkout/buy/d5e68e9f-1500-4553-928e-c962efa1e209?embed=1"},{title:he("💎 Lifetime"),price:e?"2200":"299.00",unit:e?"元":"USD",product_id:"lifetime",note:he("OVERALL UNLIMITED"),services:[`${he("Prioritize Your Needs")}: ${he("Support")}`,`${he("Publicity Cooperation")}: ${he("Support")}`,`${he("Voice Quota")}: ${he("Unlimited")}`,`${he("AI Token")}: ${he("Unlimited")}`,`${he("Call Realtime")}: ${he("Support")}`,`${he("Topic Chat")}: ${he("Support")}`,`${he("Expire time")}: ${he("Lifetime")}`],url:"https://chattytutor.lemonsqueezy.com/checkout/buy/39c1cb43-5839-4bfb-aa67-f54026a6d77f?embed=1"}],r=(a=window.store.user)==null?void 0:a.config;p.useRef(null);const n=t.map(s=>s.url+`&checkout[custom][email]=${r==null?void 0:r.email}&checkout[email]=${r==null?void 0:r.email}&checkout[custom][product_id]=${s.product_id}`);return p.useEffect(()=>{window.createLemonSqueezy?window.createLemonSqueezy():bt.error("Network error: can't purchase")}),B(nL,{title:he("Update Subscription Package"),children:B(Ii,{componentSize:"large",theme:{token:{colorPrimary:"#834d9b"}},children:B("div",{className:Ba.FormPriceItem,children:Oe("div",{className:"text-gray-500 text-[14px]",children:[he("Note: The following prices will vary according to the exchange rate of the US dollar."),B("br",{}),he("Note: If you encounter any problem when purchasing, please contact me "),"by email:",B(vy.Text,{className:"text-purple-500",copyable:!0,children:"[email protected]"}),B("div",{className:Ba.Price,children:t.map((s,l)=>Oe("div",{className:ie(Ba.PriceItem),children:[B("div",{className:Ba.PriceItemTitle,children:he(s.title)}),Oe("div",{className:Ba.PriceItemPrice,children:[B("span",{className:Ba.Discount,children:s.discount}),s.price," ",B("span",{className:Ba.Unit,children:s.unit})]}),Oe("div",{children:[s.note&&B("div",{className:"text-center mb-2",children:B("span",{className:ie(Ba.Info,s.note===he("OVERALL UNLIMITED")&&Ba.GreenFont),children:s.note})}),s.services.map((c,d)=>Oe("div",{className:Ba.PriceItemDescription,children:[B(u0,{})," ",B(vy.Text,{type:"secondary",children:c})]},c))]}),B("div",{className:Ba.BuyButton,children:B("a",{href:n[l],className:"lemonsqueezy-button",children:B(hn,{size:"large",type:"primary",className:"w-full bg-purple-400 text-white",children:he("Buy")})})})]},s.product_id))})]})})})})}),Ftt="_UserNavbar_1dowt_1",ztt="_Heading_1dowt_7",Btt="_Menu_1dowt_11",Htt="_MenuItem_1dowt_17",Vtt="_Title_1dowt_17",Utt="_SubMenu_1dowt_24",Wtt="_SubMenuItem_1dowt_27",qtt="_SubMenuItemActive_1dowt_51",Kl={UserNavbar:Ftt,Heading:ztt,Menu:Btt,MenuItem:Htt,Title:Vtt,SubMenu:Utt,SubMenuItem:Wtt,SubMenuItemActive:qtt};function Yl(e,t,r,n,i){return{key:t,icon:r,children:n,label:e,type:i}}function VG({children:e,onChange:t}){var l,c;const r=Vs(),n=d=>{window.store.session_config.setMenuCollapsed(!0),window.store.session_config.setSecondMenuCollapsed(!0),s(d),r(d)},i=ta(),o=[Yl(he("Account"),"grp1",B(c4e,{}),[Yl(he("Account"),"account_info"),Yl(he("Update Subscription Package"),"subscription")],"group"),Yl(he("Preference"),"preference",B($b,{}),[Yl(he("Preference"),"preference")],"group")];p.useEffect(()=>{if(i.pathname==="/user")s("account");else{const d=i.pathname.split("/");s(d[d.length-1])}},[i.pathname]);const[a,s]=p.useState("account");return((c=(l=window.store.user)==null?void 0:l.config)==null?void 0:c.email)==="[email protected]"&&(
576o[1]=Yl(he("Preference"),"preference",B($b,{}),[Yl(he("Preference"),"preference"),Yl("Admin","Admin")],"group")),Oe("div",{className:Kl.UserNavbar,children:[B("div",{className:Kl.Heading,children:he("User Setting")}),B("ul",{className:Kl.Menu,children:o==null?void 0:o.map(d=>{var u;return Oe("li",{className:Kl.MenuItem,children:[Oe("div",{className:Kl.Title,children:[d.icon," ",d.label]}),B("ul",{className:Kl.SubMenu,children:(u=d.children)==null?void 0:u.map(f=>B("li",{onClick:()=>n(f.key),className:ie(Kl.SubMenuItem,{[Kl.SubMenuItemActive]:f.key===a}),children:f.label},f.key))})]},d.key)})})]})}const Gtt="_User_1oi29_1",Ktt="_UserContainer_1oi29_9",Ytt="_RightContainerDropdown_1oi29_24",Xtt="_RightContainer_1oi29_24",Qtt="_Title_1oi29_60",Jtt="_Content_1oi29_64",Ztt="_ContentText_1oi29_85",V1={User:Gtt,UserContainer:Ktt,RightContainerDropdown:Ytt,RightContainer:Xtt,Title:Qtt,Content:Jtt,ContentText:Ztt},ert=()=>{const e=Vs(),t=ta();async function r(n){var o;const i=await JR();(o=window.store.user)==null||o.updateUserConfig(i),n(!1)}return p.useEffect(()=>{t.pathname==="/user"?e("account_info"):e(t.pathname)},[t.pathname]),Oe("div",{className:V1.User,children:[B("div",{className:V1.UserContainer,children:B(Kd,{waitFunc:r,children:B(sM,{})})}),B("div",{className:V1.RightContainer,children:B(VG,{})}),B("div",{className:V1.RightContainerDropdown,children:B(O_,{content:B(VG,{}),placement:"bottom",arrow:!1,children:B(x_,{})})})]})},trt="_Login_1ugfk_1",rrt="_Left_1ugfk_14",nrt="_Welcome_1ugfk_43",irt="_Logo_1ugfk_61",ort="_Desc_1ugfk_90",art="_Link_1ugfk_119",srt="_Right_1ugfk_123",lrt="_LoginForm_1ugfk_151",crt="_Item_1ugfk_176",urt="_Email_1ugfk_187",drt="_Password_1ugfk_201",frt="_ItemText_1ugfk_215",prt="_Forget_1ugfk_220",hrt="_Signup_1ugfk_227",vrt="_Btn_1ugfk_238",grt="_LoginBtn_1ugfk_244",mrt="_RegisterForm_1ugfk_253",yrt="_RegisterBtn_1ugfk_331",xt={Login:trt,Left:rrt,"pp-vec":"_pp-vec_1ugfk_30",Welcome:nrt,Logo:irt,Desc:ort,Link:art,Right:srt,LoginForm:lrt,Item:crt,Email:urt,Password:drt,ItemText:frt,Forget:prt,Signup:hrt,Error:"_Error_1ugfk_234",Btn:vrt,LoginBtn:grt,RegisterForm:mrt,RegisterBtn:yrt},Srt="_PurpleVector_4psqr_1",Crt={PurpleVector:Srt};function Pce({children:e}){return Oe("div",{className:Crt.PurpleVector,children:[Oe("svg",{viewBox:"0 0 495 280",xmlns:"http://www.w3.org/2000/svg",children:[B("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.4599 539.899C82.422 621.817 221.308 640.306 376.686 539.224C525.76 442.243 600.274 278.944 618.552 150.806C633.718 44.4792 564.283 -9.84476 453.233 2.56267C345.108 14.6432 214.998 93.7914 124.632 205.991C24.138 330.765 -32.9528 469.284 20.4599 539.899Z",fill:"url(#paint0_linear_329_738)"}),B("defs",{children:Oe("linearGradient",{id:"paint0_linear_329_738",x1:"117.895",y1:"493.326",x2:"601.683",y2:"51.3327",gradientUnits:"userSpaceOnUse",children:[B("stop",{stopColor:"#714AA5"}),B("stop",{offset:"1",stopColor:"#BD72A6"})]})})]}),Oe("svg",{viewBox:"0 0 766 394",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[B("defs",{children:Oe("linearGradient",{id:"paint0_linear_329_720",x1:"324.311",y1:"158.659",x2:"150.043",y2:"577.72",gradientUnits:"userSpaceOnUse",children:[B("stop",{stopColor:"#714AA5"}),B("stop",{offset:"1",stopColor:"#BD72A6"})]})}),B("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M272.345 59.5289C535.733 161.927 785.087 333.179 812.581 481.798C838.959 624.387 615.015 655.142 378.175 631.603C181.649 612.07 -36.1129 510.547 -179.338 383.212C-318.79 259.232 -353.163 132.842 -258.848 65.2547C-153.963 -9.9074 45.2988 -28.7407 272.345 59.5289Z",fill:"url(#paint0_linear_329_720)"})]})]})}const Ch=()=>B("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16",children:Oe("g",{children:[B("path",{d:"M11 6a3 3 0 1 1-6 0a3 3 0 0 1 6 0z"}),B("path",{fillRule:"evenodd",d:"M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8zm8-7a7 7 0 0 0-5.468 11.37C3.242 11.226 4.805 10 8 10s4.757 1.225 5.468 2.37A7 7 0 0 0 8 1z"})]})}),bh=()=>B("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16",children:B("path",{d:"M3.5 11.5a3.5 3.5 0 1 1 3.163-5H14L15.5 8L14 9.5l-1-1l-1 1l-1-1l-1 1l-1-1l-1 1H6.663a3.5 3.5 0 0 1-3.163 2zM2.5 9a1 1 0 1 0 0-2a1 1 0 0 0 0 2z"})});function brt(e={}){const{nonce:t,onScriptLoadSuccess:r,onScriptLoadError:n}=e,[i,o]=p.useState(!1),a=p.useRef(r);a.current=r;const s=p.useRef(n);return s.current=n,p.useEffect(()=>{const l=document.createElement("script");return l.src="https://accounts.google.com/gsi/client",l.async=!0,l.defer=!0,l.nonce=t,l.onload=()=>{var c;
576o(!0),(c=a.current)===null||c===void 0||c.call(a)},l.onerror=()=>{var c;o(!1),(c=s.current)===null||c===void 0||c.call(s)},document.body.appendChild(l),()=>{document.body.removeChild(l)}},[t]),i}const Ice=p.createContext(null);function xce({clientId:e,nonce:t,onScriptLoadSuccess:r,onScriptLoadError:n,children:i}){const o=brt({nonce:t,onScriptLoadSuccess:r,onScriptLoadError:n}),a=p.useMemo(()=>({clientId:e,scriptLoadedSuccessfully:o}),[e,o]);return de.createElement(Ice.Provider,{value:a},i)}function wrt(){const e=p.useContext(Ice);if(!e)throw new Error("Google OAuth components must be used within GoogleOAuthProvider");return e}function _rt(e){var t;return(t=e==null?void 0:e.clientId)!==null&&t!==void 0?t:e==null?void 0:e.client_id}const Ert={large:40,medium:32,small:20};function Oce({onSuccess:e,onError:t,useOneTap:r,promptMomentNotification:n,type:i="standard",theme:o="outline",size:a="large",text:s,shape:l,logo_alignment:c,width:d,locale:u,click_listener:f,containerProps:h,...v}){const y=p.useRef(null),{clientId:g,scriptLoadedSuccessfully:m}=wrt(),S=p.useRef(e);S.current=e;const C=p.useRef(t);C.current=t;const b=p.useRef(n);return b.current=n,p.useEffect(()=>{var w,E,_,R,P,I,O,A,x;if(m)return(_=(E=(w=window==null?void 0:window.google)===null||w===void 0?void 0:w.accounts)===null||E===void 0?void 0:E.id)===null||_===void 0||_.initialize({client_id:g,callback:T=>{var D;if(!(T!=null&&T.credential))return(D=C.current)===null||D===void 0?void 0:D.call(C);const{credential:k,select_by:j}=T;S.current({credential:k,clientId:_rt(T),select_by:j})},...v}),(I=(P=(R=window==null?void 0:window.google)===null||R===void 0?void 0:R.accounts)===null||P===void 0?void 0:P.id)===null||I===void 0||I.renderButton(y.current,{type:i,theme:o,size:a,text:s,shape:l,logo_alignment:c,width:d,locale:u,click_listener:f}),r&&((x=(A=(O=window==null?void 0:window.google)===null||O===void 0?void 0:O.accounts)===null||A===void 0?void 0:A.id)===null||x===void 0||x.prompt(b.current)),()=>{var T,D,k;r&&((k=(D=(T=window==null?void 0:window.google)===null||T===void 0?void 0:T.accounts)===null||D===void 0?void 0:D.id)===null||k===void 0||k.cancel())}},[g,m,r,i,o,a,s,l,c,d,u]),de.createElement("div",{...h,ref:y,style:{height:Ert[a],...h==null?void 0:h.style}})}function Pw({email:e,password:t,bypass:r}){const n={email:{message:"Email is not valid.",validate:i=>{var o=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)+$/;return!!i.match(o)}},password:{message:"Password's length should be within 24 and at least 8.",validate:i=>i.length<=24&&i.length>=6}};return!r&&(!e||!t)?(bt.error("Please input email and password"),!1):!(r!=null&&r.email)&&!n.email.validate(e)?(bt.error(n.email.message),!1):!(r!=null&&r.password)&&!n.password.validate(t)?(bt.error(n.password.message),!1):!0}function Rrt({action:e,token:t,email:r}){async function n(){if(!l){if(e==="send_email"){if(r=i.email,!Pw({...i,bypass:{password:!0}}))return}else if(!Pw({...i,bypass:{email:!0}}))return;c(!0);try{const{error:d}=await vce(r,e,i.password,t);d?bt.error(d):e==="send_email"?s("success"):(bt.success("success, now you can login with your new password"),setTimeout(()=>{window.open("/","_self")},1200))}finally{c(!1)}}}ta(),Vs();const[i,o]=p.useState({email:"",password:""}),[a,s]=p.useState(""),[l,c]=p.useState(!1);return Oe(nn,{children:[B(na,{spinning:l,className:"absolute z-10",size:"large"}),B("div",{className:xt.LoginForm,children:a==="success"?B(q_,{status:"success",title:he("Success! please check your email (please check your spam folder if you don't see it)")}):Oe(nn,{children:[B("h1",{className:xt.Item,children:he(e==="send_email"?"Reset Password":"Enter New Password")}),e==="send_email"&&Oe("div",{className:xt.Item,children:[B(Ch,{}),B("input",{placeholder:"email",className:xt.Email,type:"email",value:i.email,onChange:d=>{o({...i,email:d.target.value})}})]}),e==="reset_password"&&Oe("div",{className:xt.Item,children:[B(bh,{}),B("input",{placeholder:"password",className:xt.Password,type:"password",value:i.password,onChange:d=>{o({...i,password:d.target.value})}})]}),B("div",{className:ie(xt.Item,xt.Btn,xt.LoginBtn),onClick:n,children:he("Reset")}),B("div",{"v-if":"loading",className:xt.Loading})]})})]})}function Prt(){async function e(){if(!o&&Pw(t)){a(!0);try{const{error:s}=await Q6(t.email,t.password);s?bt.error(s):(i("success"),a(!1),setTimeout(()=>{alert(he("Link is sent to your email, please check it! (please check your spam folder if you don't see it)"))},1e3),ai.identify(t.email),ai.track("Signed Up",{"Sign Up Method":"Email"}))}finally{a(!1)}}}Vs();const[t,r]=p.useState({password:"",email:""}),[n,i]=p.useState(""),[o,a]=p.useState(!1);return Oe(nn,{children:[B(na,{spinning:o,className:"absolute z-10",size:"large"}),B("div",{className:xt.RegisterForm,children:n==="success"?B(q_,{status:"info",title:he("Activation Link is sent to your email, please check it! (please check your spam folder if you don't see it)")}):Oe(nn,{children:[B("h1",{className:xt.Item,children:he("Register")}),Oe("div",{className:xt.Item,children:[B(Ch,{}),B("input",{placeholder:"email",className:xt.Email,type:"email",value:t.email,onChange:s=>{r({...t,email:s.target.value})}})]}),Oe("div",{className:xt.Item,children:[B(bh,{}),B("input",{placeholder:"password",className:xt.Password,type:"password",value:t.password,onChange:s=>{r({...t,password:s.target.value})}})]}),B("div",{className:ie(xt.Item,xt.Btn,xt.RegisterBtn),onClick:e,children:he("Send")}),B("div",{"v-if":"loading",className:xt.Loading})]})})]})}function Irt({children:e}){const t=async()=>
576{if(!n.credential&&!Pw(n))return;const{user:E,error:_,token:R}=await gce(n.email,n.password,n.credential);_?bt.error(he(_)):(YD((E==null?void 0:E.token)||R||""),r("/"),ai.identify(n.email),ai.track("Login"))},r=Vs(),[n,i]=p.useState({password:"",email:"",credential:""}),[o,a]=p.useState(!1),[s,l]=p.useState(!1),[c,d]=p.useState(!1),[u,f]=p.useState(""),[h,v]=p.useState("send_email"),[y,g]=p.useState(""),m=ta();p.useEffect(()=>{if(m.search){let E=KD(m.search);E.reset_password&&E.token&&(d(!0),f(E.token),v("reset_password"),g(E.email))}},[]);const S=async()=>{if(!o){a(!0);try{await t()}finally{a(!1)}}},C=p.useRef(null),b=p.useRef(null);function w(E){var _;E.key==="Enter"&&((_=b.current)==null||_.click())}return p.useEffect(()=>{var E;return(E=C.current)==null||E.addEventListener("keydown",w),()=>{var _;(_=C.current)==null||_.removeEventListener("keydown",w)}},[]),B(xce,{clientId:"107325046619-te35cpas6k7op45r8abrt97b8p368cia.apps.googleusercontent.com",children:Oe("div",{className:xt.Login,children:[Oe("div",{className:xt.Left,children:[B("div",{className:xt["pp-vec"],children:B(Pce,{})}),Oe("div",{className:xt.Welcome,children:[Oe("div",{className:xt.Logo,onClick:()=>r("/"),children:[B("img",{alt:"icon",src:"/icon-white.png",className:"h-[80%] md:h-full inline-block"}),B("span",{children:" Chatty Tutor "})]}),Oe("div",{className:xt.Desc,children:[he("Welcome to Chatty Tutor"),Oe("span",{children:[he(s?"Already have an account?":"Don't hava an account?"),Oe("span",{onClick:()=>{d(!1),l(E=>!E)},className:xt.Link,children:[" ",he(s?"Login":"Register")]}),"."]})]})]})]}),B("div",{className:xt.Right,children:Oe(Ii,{theme:{token:{colorPrimary:"#834d9b"}},children:[B(na,{spinning:o,className:"absolute z-10",size:"large"}),s?B(Prt,{}):c?B(Rrt,{email:y,action:h,token:u}):Oe("div",{className:xt.LoginForm,children:[B("h1",{className:xt.Item,children:he("Login")}),Oe("div",{className:xt.Item,children:[B(Ch,{}),B("input",{placeholder:"email",className:xt.Email,type:"email",value:n.email,onChange:E=>{i({...n,email:E.target.value})}})]}),Oe("div",{className:xt.Item,children:[B(bh,{}),B("input",{ref:C,placeholder:"password",className:xt.Password,type:"password",value:n.password,onChange:E=>{i({...n,password:E.target.value})}})]}),Oe("div",{className:xt.ItemText,children:[Oe("div",{className:xt.Forget,onClick:()=>d(!0),children:[he("Forget password"),"?"]}),B("div",{className:xt.Signup,onClick:()=>l(!0),children:he("Register")})]}),B("div",{ref:b,className:ie(xt.Btn,xt.LoginBtn),onClick:S,children:he("Login")}),B("div",{className:"mt-4",children:B(Oce,{click_listener:()=>a(!0),onSuccess:async E=>{i({...n,credential:E.credential||""}),n.credential=E.credential||"",await t(),a(!1),ai.track("login",{"Login Method":"Google"})},onError:()=>{bt.error("Google login failed"),a(!1)}})})]})]})})]})})}function Iw({email:e,password:t,bypass:r}){const n={email:{message:"Email is not valid.",validate:i=>{var o=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)+$/;return!!i.match(o)}},password:{message:"Password's length should be within 24 and at least 8.",validate:i=>i.length<=24&&i.length>=6}};return!r&&(!e||!t)?(bt.error("Please input email and password"),!1):!(r!=null&&r.email)&&!n.email.validate(e)?(bt.error(n.email.message),!1):!(r!=null&&r.password)&&!n.password.validate(t)?(bt.error(n.password.message),!1):!0}function xrt({action:e,token:t,email:r}){async function n(){if(!l){if(e==="send_email"){if(r=i.email,!Iw({...i,bypass:{password:!0}}))return}else if(!Iw({...i,bypass:{email:!0}}))return;c(!0);try{const{error:d}=await vce(r,e,i.password,t);d?bt.error(d):e==="send_email"?s("success"):(bt.success("success, now you can login with your new password"),setTimeout(()=>{window.open("/","_self")},1200))}finally{c(!1)}}}ta(),Vs();const[i,o]=p.useState({email:"",password:""}),[a,s]=p.useState(""),[l,c]=p.useState(!1);return Oe(nn,{children:[B(na,{spinning:l,className:"absolute z-10",size:"large"}),B("div",{className:xt.LoginForm,children:a==="success"?B(q_,{status:"success",title:"Success! please check your email"}):Oe(nn,{children:[B("h1",{className:xt.Item,children:e==="send_email"?"Reset Password":"Enter New Password"}),e==="send_email"&&Oe("div",{className:xt.Item,children:[B(Ch,{}),B("input",{placeholder:"email",className:xt.Email,type:"email",value:i.email,onChange:d=>{o({...i,email:d.target.value})}})]}),e==="reset_password"&&Oe("div",{className:xt.Item,children:[B(bh,{}),B("input",{placeholder:"password",className:xt.Password,type:"password",value:i.password,onChange:d=>{o({...i,password:d.target.value})}})]}),B("div",{className:ie(xt.Item,xt.Btn,xt.LoginBtn),onClick:n,children:"Reset"}),B("div",{"v-if":"loading",className:xt.Loading})]})})]})}function Ort(){async function e(){if(!o&&Iw(t)){a(!0);try{const{error:s}=await Q6(t.email,t.password);s?bt.error(s):(i("success"),a(!1))}finally{a(!1)}}}Vs();const[t,r]=p.useState({password:"",email:""}),[n,i]=p.useState(""),[o,a]=p.useState(!1);return Oe(nn,{children:[B(na,{spinning:o,className:"absolute z-10",size:"large"}),B("div",{className:xt.RegisterForm,children:n==="success"?B(q_,{status:"success",title:"Success! please check your email"}):Oe(nn,{children:[B("h1",{className:xt.Item,children:"Register"}),Oe("div",{className:xt.Item,children:[B(Ch,{}),B("input",{placeholder:"email",className:xt.Email,type:"email",value:t.email,onChange:s=>{r({...t,email:s.target.value})}})]}),Oe("div",{className:xt.Item,children:[B(bh,{}),B("input",{placeholder:"password",className:xt.Password,type:"password",value:t.password,onChange:s=>{r({...t,password:s.target.value})}})]}),B("div",{className:ie(xt.Item,xt.Btn,xt.RegisterBtn),onClick:e,children:"Send"}),B("div",{"v-if":"loading",className:xt.Loading})]})})]})}function Trt({children:e}){const t=async()=>
576{if(!n.credential&&!Iw(n))return;const{user:E,error:_,token:R}=await gce(n.email,n.password,n.credential);_?bt.error(_):(YD((E==null?void 0:E.token)||R||""),r("/art/index"))},r=Vs(),[n,i]=p.useState({password:"",email:"",credential:""}),[o,a]=p.useState(!1),[s,l]=p.useState(!1),[c,d]=p.useState(!1),[u,f]=p.useState(""),[h,v]=p.useState("send_email"),[y,g]=p.useState(""),m=ta();p.useEffect(()=>{if(m.search){let E=KD(m.search);E.reset_password&&E.token&&(d(!0),f(E.token),v("reset_password"),g(E.email))}},[]);const S=async()=>{if(!o){a(!0);try{await t()}finally{a(!1)}}},C=p.useRef(null),b=p.useRef(null);function w(E){var _;E.key==="Enter"&&((_=b.current)==null||_.click())}return p.useEffect(()=>{var E;return document.title="Chatty Art",(E=C.current)==null||E.addEventListener("keydown",w),()=>{var _;(_=C.current)==null||_.removeEventListener("keydown",w)}},[]),B(xce,{clientId:"107325046619-te35cpas6k7op45r8abrt97b8p368cia.apps.googleusercontent.com",children:Oe("div",{className:xt.Login,children:[Oe("div",{className:xt.Left,children:[B("div",{className:xt["pp-vec"],children:B(Pce,{})}),Oe("div",{className:xt.Welcome,children:[Oe("div",{className:xt.Logo,onClick:()=>r("/"),children:[B("img",{alt:"icon",src:"/icon-white.png",className:"h-[80%] md:h-full inline-block"}),B("span",{children:" Chatty Art "})]}),Oe("div",{className:xt.Desc,children:["Welcome to Chatty Art",Oe("span",{children:[s?"Already have an account?":"Don't hava an account?",Oe("span",{onClick:()=>{d(!1),l(E=>!E)},className:xt.Link,children:[" ",s?"Login":"Signup"]}),"."]})]})]})]}),B("div",{className:xt.Right,children:Oe(Ii,{theme:{token:{colorPrimary:"#834d9b"}},children:[B(na,{spinning:o,className:"absolute z-10",size:"large"}),s?B(Ort,{}):c?B(xrt,{email:y,action:h,token:u}):Oe("div",{className:xt.LoginForm,children:[B("h1",{className:xt.Item,children:"Login"}),Oe("div",{className:xt.Item,children:[B(Ch,{}),B("input",{placeholder:"email",className:xt.Email,type:"email",value:n.email,onChange:E=>{i({...n,email:E.target.value})}})]}),Oe("div",{className:xt.Item,children:[B(bh,{}),B("input",{ref:C,placeholder:"password",className:xt.Password,type:"password",value:n.password,onChange:E=>{i({...n,password:E.target.value})}})]}),Oe("div",{className:xt.ItemText,children:[B("div",{className:xt.Forget,onClick:()=>d(!0),children:"Forget password?"}),B("div",{className:xt.Signup,onClick:()=>l(!0),children:"Sign Up"})]}),B("div",{ref:b,className:ie(xt.Btn,xt.LoginBtn),onClick:S,children:"Login"}),B("div",{className:"mt-4",children:B(Oce,{click_listener:()=>a(!0),onSuccess:async E=>{i({...n,credential:E.credential||""}),n.credential=E.credential||"",await t(),a(!1)},onError:()=>{bt.error("Google login failed"),a(!1)}})})]})]})})]})})}const Art="_Index_1ojdt_1",Mrt="_Head_1ojdt_25",$rt="_SwitchBtn_1ojdt_35",krt="_Images_1ojdt_41",Nrt="_ImageItem_1ojdt_49",Drt="_HistoryImages_1ojdt_69",Lrt="_Input_1ojdt_102",jrt="_Btn_1ojdt_108",Frt="_InputContent_1ojdt_117",zrt="_slide_1ojdt_1",Brt="_FormBtns_1ojdt_135",UG={Index:Art,Head:Mrt,SwitchBtn:$rt,Images:krt,ImageItem:Nrt,HistoryImages:Drt,Input:Lrt,Btn:jrt,InputContent:Frt,slide:zrt,FormBtns:Brt};function Hrt({url:e,prompt:t}){p.useState(!1);const[r]=Gc();p.useEffect(()=>{r.setFieldsValue({prompt:t,url:e})},[]);const[n,i]=p.useState(""),o=a=>{const s=new FileReader;return s.readAsDataURL(a),s.onload=()=>{var c;const l=(c=s==null?void 0:s.result)==null?void 0:c.split(",")[1];i(l)},!1};return B(Ii,{theme:{token:{colorPrimary:"#834d9b"}},children:B("div",{className:UG.Input,children:B("div",{id:"inputContent",className:UG.InputContent,tabIndex:0,children:Oe(Hr,{layout:"vertical",form:r,onValuesChange:(a,s)=>{},children:[B(Hr.Item,{label:"category",name:"category",children:B(Un,{placeholder:""})}),B(Hr.Item,{label:"url",name:"url",children:B(Un,{})}),B(Hr.Item,{label:"prompt",name:"prompt",children:B(Un,{})}),B(Hr.Item,{name:"image",label:"Image",valuePropName:"file",getValueFromEvent:a=>a&&a.file,children:Oe(ADe,{beforeUpload:o,children:[B("p",{className:"ant-upload-drag-icon",children:B(CNe,{})}),B("p",{className:"ant-upload-text",children:"Click or drag file to this area to upload"}),B("p",{className:"ant-upload-hint",children:"Support for a single upload. Strictly prohibit from uploading company data or other sensitive files."})]})}),B(Hr.Item,{className:"",children:B(ln,{className:"ml-2",type:"primary",onClick:async()=>{const a=r.getFieldsValue();if(a.image=n,!a.url&&!a.image){bt.error("fields empty");return}const s=await jQe(a);s.error?bt.error(s.error):bt.success("success")},children:"上传"})})]})})})})}function Vrt(){const[e,t]=p.useState(),[r,n]=p.useState(),[i,o]=p.useState();return Oe("div",{children:["category:",B(Un,{value:i,onChange:a=>o(a.target.value)}
576),"Keyword:",B(Un,{value:e,onChange:a=>t(a.target.value)}),B(hn,{onClick:async()=>{if(!e||!i)return;const a=await FQe(e,i);n(a.data.map(s=>({id:s.cf_id,name:s.prompt.split(" ").join("-")+"@"+s.cf_id})))},children:"Search"}),B(qte,{copyable:!0,children:JSON.stringify(r)})]})}function Urt(){const[e,t]=p.useState({url:"",prompt:""});return p.useEffect(()=>(document.body.style.background="gray",()=>{document.body.style.background=""}),[]),Oe("div",{className:"max-w-[1000px]",children:[B(Hrt,{...e}),B(Vrt,{})]})}function Wrt(){const[e]=Gc();return B("div",{className:"mx-auto mt-4 lg:w-1/2",children:Oe(Hr,{form:e,wrapperCol:{span:16},labelCol:{span:6},labelAlign:"left",labelWrap:!0,onChange:()=>{},children:[B(Hr.Item,{name:"email",label:"邮箱",rules:[{type:"email",message:"The input is not valid E-mail!"}],children:B(Un,{})}),B(Hr.Item,{name:"active",label:"active",children:B(Un,{})}),B(Hr.Item,{name:"nickname",label:"nickname",children:B(Un,{})}),B(Hr.Item,{name:"quota",label:"quota",children:B(Mu,{})}),B(Hr.Item,{name:"voice_usage",label:"voice_usage",children:B(Mu,{})}),B(Hr.Item,{name:"token_quota",label:"token_quota",children:B(Mu,{})}),B(Hr.Item,{name:"token_usage",label:"token_usage",children:B(Mu,{})}),B(Hr.Item,{name:"img_quota",label:"img_quota",children:B(Mu,{})}),B(Hr.Item,{name:"subscription_type",label:"subscription_type",children:B(Mu,{})}),B(Hr.Item,{name:"apikey",label:"apikey",children:B(Un,{})}),B(Hr.Item,{name:"expire_date",label:"expire_date",children:B(mTe,{showTime:!0})}),B(Hr.Item,{name:"llm_provider",label:"llm provider",children:B(Un,{})}),Oe(Hr.Item,{wrapperCol:{xs:{span:24,offset:0},sm:{span:16,offset:8}},children:[B(hn,{type:"primary",onClick:async()=>{e.validateFields().then(async t=>{const r=await PG({action:"get_user",user:{email:t.email}});r.user&&(bt.success("get user"),r.user.expire_date=r3.unix(r.user.expire_date),e.setFieldsValue(r.user))})},children:"查询"}),B(hn,{className:"ml-4",type:"primary",onClick:async()=>{const t=e.getFieldsValue();t.expire_date=t.expire_date.unix(),t.active=t.active==="true"||t.active===!0,(await PG({action:"update_user",user:t})).result==="success"&&bt.success("success")},children:"更新"})]})]})})}const qrt="_Admin_vqxn4_1",Grt="_ts_vqxn4_8",WG={Admin:qrt,ts:Grt},Krt=["[email protected]"];async function Yrt(e,t){return`https://imagedelivery.net/OQPJCp3LxePaV3s3sviYpA/${await $Qe({...{prompt:"a man talks to his friends, and his friends look confused.",step:35,sampler_name:"Euler a",secret:"chattytutortvytlx",cfg_scale:5,negative_prompt:"(ng_deepnegative_v1_75t:1.4), (badhandv4:0.9), nude, sexual, big ass, big boob",alwayson_scripts:{"After Detailer":{args:[{ad_model:"face_yolov8n.pt"}]}}},prompt:e+" Best quality, masterpiece, ultra high res, (photorealistic:1.1)",seed:-1})}/public`}function Xrt(){var u,f;const[e,t]=p.useState(""),[r,n]=p.useState([]);p.useState(0);function i(){n([]);const h=e.trim().split(`
577`).filter(y=>!!y.trim());h.forEach(y=>{r.push({prompt:y,wait:!0})}),n([...r]);const v=Date.now();h.forEach(async(y,g)=>{try{const m=await Yrt(y,v);r[g].src=m,r[g].wait=!1}catch(m){throw r[g].err="image generation failed",m}finally{n([...r])}})}const[o,a]=p.useState(""),[s,l]=p.useState(),[c,d]=p.useState();return B("div",{className:ie(WG.Admin,"w-full p-2 text-selectable"),children:Oe("div",{className:"flex flex-col items-center justify-center",children:[B("div",{className:"text-4xl font-bold",children:"Admin Panel"}),Oe("div",{className:"text-2xl font-bold",children:["Welcome, ",(f=(u=xc.user)==null?void 0:u.config)==null?void 0:f.email]}),Oe("div",{className:"w-full text-center",children:[B(Un,{placeholder:"input a word",value:o,onChange:h=>a(h.target.value),className:"w-full md:w-1/2 text-xl p-2"}),B(ln,{type:"primary",onClick:async()=>{const{mj_prompts:h,part_of_stories:v}=await kQe(o);t(h.join(`
578`)),l(v)},children:"Generate Word"}),B(ln,{type:"primary",onClick:async()=>{const{mj_prompts:h,part_of_stories:v,image_urls:y}=await DQe(o);t(h.join(`
579`)),l(v),n(y.map(g=>({src:`https://imagedelivery.net/OQPJCp3LxePaV3s3sviYpA/${g}/public`,wait:!1,prompt:"",desc:""})))},children:"Get Word"}),B(ln,{type:"primary",onClick:async()=>{const h=await NQe();d(h.result),a(h.result[Math.floor(Math.random()*h.result.length)])},children:"Get Word List"}),Oe("div",{className:ie(WG.ts,"w-full md:w-1/2 overflow-x-auto text-center text-2xl m-auto"),children:[(c||[]).length,": ",(c||[]).join(",")]}
579),B("textarea",{value:e,onChange:h=>{t(h.target.value)},title:"",placeholder:"input",className:"w-full md:w-1/2 text-xl p-2",rows:10})]}),Oe("div",{children:[B(hn,{type:"primary",onClick:i,children:"Run"}),B(hn,{type:"primary",onClick:()=>{n([])},className:"ml-2",children:"Clear"})]}),B("div",{className:"w-full md:w-1/2",children:r.map((h,v)=>Oe("div",{className:"text-[38px]",children:[`${v+1}. ${s==null?void 0:s[v]}`,B("br",{}),h.wait?B("div",{children:h.err||"waiting for image..."}):B("img",{alt:h.src,src:h.src})]},v))})]})})}const Qrt=()=>{const[e,t]=p.useState(!0);return p.useEffect(()=>{var r,n;Krt.includes(((n=(r=xc.user)==null?void 0:r.config)==null?void 0:n.email)||"")||window.location.replace("/chat"),setTimeout(()=>{t(!1)},1e3)},[]),Oe("div",{className:"h-full overflow-y-auto",children:[B(na,{spinning:e}),!e&&B("div",{children:B(Xrt,{})})]})};class Jrt{constructor(t){Qe(this,"analyser",null);Qe(this,"silenceTimer",null);Qe(this,"vadThreshold",10);Qe(this,"silenceDelay",1e3);Qe(this,"isActive",!1);Qe(this,"isPlaybackActive",!1);Qe(this,"audioChunks",[]);Qe(this,"audioChunksGlobal",[]);Qe(this,"events");Qe(this,"isSpeaking",!1);this.events=t}initialize(t,r){if(!t||!r)throw new Error("AudioStream and AudioContext required");r.state==="suspended"&&r.resume();try{if(t.getAudioTracks().length===0)throw new Error("No audio tracks found in stream");const i=r.createMediaStreamSource(t);this.analyser=r.createAnalyser(),this.analyser.fftSize=256,this.analyser.smoothingTimeConstant=.8,i.connect(this.analyser),setTimeout(()=>{if(this.analyser){const o=new Uint8Array(this.analyser.frequencyBinCount);this.analyser.getByteFrequencyData(o);const a=o.reduce((s,l)=>s+l,0)/o.length}},200),this.isActive=!0,setTimeout(()=>{this.startMonitoring()},500)}catch(n){throw n}}startMonitoring(){if(!this.isActive||!this.analyser)return;const t=this.analyser.frequencyBinCount,r=new Uint8Array(t),n=new Uint8Array(this.analyser.fftSize),i=()=>{if(!this.isActive||!this.analyser)return;if(this.isPlaybackActive){this.handlePlaybackState(),requestAnimationFrame(i);return}this.analyser.getByteFrequencyData(r),this.analyser.getByteTimeDomainData(n);const a=r.reduce((u,f)=>u+f,0)/t/255*100;let s=0;for(let u=0;u<n.length;u++){const f=(n[u]-128)/128;s+=f*f}const c=Math.sqrt(s/n.length)*100,d=Math.max(a,c);this.processVolumeLevel(d),requestAnimationFrame(i)};i()}processVolumeLevel(t){t>this.vadThreshold?this.handleVoiceDetected():this.handleSilenceDetected()}handleVoiceDetected(){this.silenceTimer&&(clearTimeout(this.silenceTimer),this.silenceTimer=null),this.isSpeaking=!0,this.events.onVoiceDetected()}handleSilenceDetected(){this.isSpeaking=!1,!this.silenceTimer&&this.audioChunks.length>0&&this.audioChunks.reduce((r,n)=>r+n.size,0)>1e3&&(this.silenceTimer=setTimeout(()=>{this.sendAccumulatedChunks()},this.silenceDelay))}handlePlaybackState(){this.audioChunks.length>0&&(this.audioChunks=[]),this.silenceTimer&&(clearTimeout(this.silenceTimer),this.silenceTimer=null)}sendAccumulatedChunks(){this.audioChunks.length!==0&&(this.events.onAudioChunksReady([...this.audioChunks]),this.audioChunks=[],this.silenceTimer=null)}addAudioChunk(t){!this.isPlaybackActive&&this.isSpeaking&&this.audioChunks.push(t)}setPlaybackState(t){this.isPlaybackActive,this.isPlaybackActive=t,this.events.onPlaybackStateChanged(t)}setThreshold(t){this.vadThreshold=Math.max(0,Math.min(100,t))}setSilenceDelay(t){this.silenceDelay=Math.max(100,t)}stop(){this.isActive=!1,this.silenceTimer&&(clearTimeout(this.silenceTimer),this.silenceTimer=null),this.analyser&&(this.analyser.disconnect(),this.analyser=null),this.audioChunks=[]}get threshold(){return this.vadThreshold}get delay(){return this.silenceDelay}get active(){return this.isActive}get playbackActive(){return this.isPlaybackActive}get pendingChunks(){return this.audioChunks.length}}class Zrt{constructor(t){Qe(this,"audioContext",null);Qe(this,"audioWorkletNode",null);Qe(this,"mediaStream",null);Qe(this,"sourceNode",null);Qe(this,"isRecording",!1);Qe(this,"events");this.events=t}async initialize(t){try{this.audioContext=new AudioContext({sampleRate:24e3}),this.mediaStream=t,await this.audioContext.audioWorklet.addModule(new URL("data:application/javascript;base64,LyoqCiAqIEF1ZGlvV29ya2xldCBwcm9jZXNzb3IgZm9yIGNhcHR1cmluZyByYXcgUENNMTYgYXVkaW8gZGF0YQogKiBUaGlzIHJ1bnMgaW4gYSBzZXBhcmF0ZSB0aHJlYWQgYW5kIHByb2Nlc3NlcyBhdWRpbyBzYW1wbGVzIGluIHJlYWwtdGltZQogKi8KY2xhc3MgUENNMTZBdWRpb1Byb2Nlc3NvciBleHRlbmRzIEF1ZGlvV29ya2xldFByb2Nlc3NvciB7CiAgY29uc3RydWN0b3IoKSB7CiAgICBzdXBlcigpOwogICAgdGhpcy5idWZmZXJTaXplID0gMjQwMDsgLy8gMTAwbXMgYXQgMjRrSHogKDI0MDAwIC8gMTAgPSA
579yNDAwIHNhbXBsZXMpCiAgICB0aGlzLmJ1ZmZlciA9IG5ldyBGbG9hdDMyQXJyYXkodGhpcy5idWZmZXJTaXplKTsKICAgIHRoaXMuYnVmZmVySW5kZXggPSAwOwogICAgdGhpcy5zYW1wbGVSYXRlID0gMjQwMDA7IC8vIFRhcmdldCBzYW1wbGUgcmF0ZSBmb3IgT3BlbkFJCiAgfQoKICBwcm9jZXNzKGlucHV0cywgb3V0cHV0cywgcGFyYW1ldGVycykgewogICAgY29uc3QgaW5wdXQgPSBpbnB1dHNbMF07CiAgICAKICAgIC8vIElmIG5vIGlucHV0LCBjb250aW51ZSBwcm9jZXNzaW5nCiAgICBpZiAoIWlucHV0IHx8IGlucHV0Lmxlbmd0aCA9PT0gMCkgewogICAgICByZXR1cm4gdHJ1ZTsKICAgIH0KCiAgICBjb25zdCBpbnB1dENoYW5uZWwgPSBpbnB1dFswXTsgLy8gR2V0IGZpcnN0IGNoYW5uZWwgKG1vbm8pCiAgICAKICAgIGlmICghaW5wdXRDaGFubmVsKSB7CiAgICAgIHJldHVybiB0cnVlOwogICAgfQoKICAgIC8vIFByb2Nlc3MgZWFjaCBzYW1wbGUKICAgIGZvciAobGV0IGkgPSAwOyBpIDwgaW5wdXRDaGFubmVsLmxlbmd0aDsgaSsrKSB7CiAgICAgIC8vIEFkZCBzYW1wbGUgdG8gYnVmZmVyCiAgICAgIHRoaXMuYnVmZmVyW3RoaXMuYnVmZmVySW5kZXhdID0gaW5wdXRDaGFubmVsW2ldOwogICAgICB0aGlzLmJ1ZmZlckluZGV4Kys7CgogICAgICAvLyBXaGVuIGJ1ZmZlciBpcyBmdWxsLCBzZW5kIFBDTTE2IGRhdGEKICAgICAgaWYgKHRoaXMuYnVmZmVySW5kZXggPj0gdGhpcy5idWZmZXJTaXplKSB7CiAgICAgICAgdGhpcy5zZW5kUENNMTZDaHVuaygpOwogICAgICAgIHRoaXMuYnVmZmVySW5kZXggPSAwOwogICAgICB9CiAgICB9CgogICAgcmV0dXJuIHRydWU7IC8vIEtlZXAgcHJvY2Vzc29yIGFsaXZlCiAgfQoKICBzZW5kUENNMTZDaHVuaygpIHsKICAgIC8vIENvbnZlcnQgRmxvYXQzMiBzYW1wbGVzICgtMSB0byAxKSB0byBQQ00xNiBmb3JtYXQgKDE2LWJpdCBzaWduZWQgaW50ZWdlcnMpCiAgICBjb25zdCBwY20xNkJ1ZmZlciA9IG5ldyBBcnJheUJ1ZmZlcih0aGlzLmJ1ZmZlclNpemUgKiAyKTsgLy8gMiBieXRlcyBwZXIgc2FtcGxlCiAgICBjb25zdCBwY20xNlZpZXcgPSBuZXcgRGF0YVZpZXcocGNtMTZCdWZmZXIpOwoKICAgIGZvciAobGV0IGkgPSAwOyBpIDwgdGhpcy5idWZmZXJTaXplOyBpKyspIHsKICAgICAgLy8gQ29udmVydCBmbG9hdDMyICgtMSB0byAxKSB0byBpbnQxNiAoLTMyNzY4IHRvIDMyNzY3KQogICAgICBjb25zdCBzYW1wbGUgPSBNYXRoLm1heCgtMSwgTWF0aC5taW4oMSwgdGhpcy5idWZmZXJbaV0pKTsKICAgICAgY29uc3QgaW50MTZTYW1wbGUgPSBNYXRoLnJvdW5kKHNhbXBsZSAqIDMyNzY3KTsKICAgICAgcGNtMTZWaWV3LnNldEludDE2KGkgKiAyLCBpbnQxNlNhbXBsZSwgdHJ1ZSk7IC8vIGxpdHRsZS1lbmRpYW4KICAgIH0KCiAgICAvLyBTZW5kIFBDTTE2IGRhdGEgdG8gbWFpbiB0aHJlYWQKICAgIHRoaXMucG9ydC5wb3N0TWVzc2FnZSh7CiAgICAgIHR5cGU6ICdwY20xNi1jaHVuaycsCiAgICAgIGRhdGE6IHBjbTE2QnVmZmVyLAogICAgICBzYW1wbGVSYXRlOiB0aGlzLnNhbXBsZVJhdGUsCiAgICAgIHNhbXBsZXM6IHRoaXMuYnVmZmVyU2l6ZQogICAgfSk7CiAgfQp9CgovLyBSZWdpc3RlciB0aGUgcHJvY2Vzc29yCnJlZ2lzdGVyUHJvY2Vzc29yKCdwY20xNi1hdWRpby1wcm9jZXNzb3InLCBQQ00xNkF1ZGlvUHJvY2Vzc29yKTs=",self.location)),this.audioWorkletNode=new AudioWorkletNode(this.audioContext,"pcm16-audio-processor"),this.audioWorkletNode.port.onmessage=r=>{r.data.type==="pcm16-chunk"&&this.events.onPCM16Chunk(r.data.data)},this.sourceNode=this.audioContext.createMediaStreamSource(this.mediaStream)}catch(r){throw this.events.onError(`Failed to initialize PCM16 recorder: ${r}`),r}}async startRecording(){if(!this.isRecording){if(!this.audioContext||!this.sourceNode||!this.audioWorkletNode)throw new Error("PCM16 recorder not initialized");try{this.audioContext.state==="suspended"&&await this.audioContext.resume(),this.sourceNode.connect(this.audioWorkletNode),this.isRecording=!0}catch(t){throw this.events.onError(`Failed to start recording: ${t}`),t}}}stopRecording(){if(this.isRecording)try{this.sourceNode&&this.audioWorkletNode&&this.sourceNode.disconnect(this.audioWorkletNode),this.isRecording=!1}catch{}}async destroy(){this.stopRecording();try{this.audioWorkletNode&&(this.audioWorkletNode.disconnect(),this.audioWorkletNode=null),this.sourceNode&&(this.sourceNode.disconnect(),this.sourceNode=null),this.audioContext&&(await this.audioContext.close(),this.audioContext=null),this.mediaStream&&(this.mediaStream.getTracks().forEach(t=>t.stop()),this.mediaStream=null)}catch{}}get recording(){return this.isRecording}get sampleRate(){var t;return((t=this.audioContext)==null?void 0:t.sampleRate)||24e3}}class ent{constructor(t,r){Qe(this,"audioContext");Qe(this,"gainNode");Qe(this,"audioQueue",[]);Qe(this,"isPlaying",!1);Qe(this,"nextStartTime",0);Qe(this,"currentSource",null);Qe(this,"scheduledSources",[]);Qe(this,"onPlaybackFinished");this.audioContext=t,this.onPlaybackFinished=r,this.gainNode=this.audioContext.createGain(),this.gainNode.connect(this.audioContext.destination),this.gainNode.gain.value=1}async addAudioChunk(t){try{const r=this.base64ToArrayBuffer(t),n=this.createAudioBuffer(r);
579n&&(this.audioQueue.push(r),this.isPlaying?this.scheduleNextChunk(n):this.startPlayback())}catch{}}base64ToArrayBuffer(t){const r=atob(t),n=new Uint8Array(r.length);for(let i=0;i<r.length;i++)n[i]=r.charCodeAt(i);return n.buffer}createAudioBuffer(t){try{const o=t.byteLength/2,a=this.audioContext.createBuffer(1,o,24e3),s=a.getChannelData(0),l=new DataView(t);for(let c=0;c<o;c++){const d=l.getInt16(c*2,!0);s[c]=d/32768}return a}catch{return null}}async startPlayback(){if(this.audioQueue.length!==0)for(this.isPlaying=!0,this.nextStartTime=this.audioContext.currentTime;this.audioQueue.length>0;){const t=this.audioQueue.shift(),r=this.createAudioBuffer(t);r&&this.scheduleNextChunk(r)}}scheduleNextChunk(t){const r=this.audioContext.createBufferSource();r.buffer=t;const n=this.audioContext.createGain();n.gain.value=1,r.connect(n),n.connect(this.gainNode);const i=Math.max(this.nextStartTime,this.audioContext.currentTime+.01);r.start(i);const o=.002;n.gain.setValueAtTime(0,i),n.gain.linearRampToValueAtTime(1,i+o),n.gain.setValueAtTime(1,i+t.duration-o),n.gain.linearRampToValueAtTime(0,i+t.duration),this.nextStartTime=i+t.duration,this.scheduledSources.push(r),r.onended=()=>{var a;this.scheduledSources=this.scheduledSources.filter(s=>s!==r),n.disconnect(),this.scheduledSources.length===0&&this.audioQueue.length===0&&(this.isPlaying=!1,(a=this.onPlaybackFinished)==null||a.call(this))}}stopPlayback(){this.scheduledSources.forEach(t=>{try{t.stop()}catch{}}),this.scheduledSources=[],this.audioQueue=[],this.isPlaying=!1,this.nextStartTime=0}setVolume(t,r=.1){const n=this.audioContext.currentTime;this.gainNode.gain.cancelScheduledValues(n),this.gainNode.gain.setValueAtTime(this.gainNode.gain.value,n),this.gainNode.gain.linearRampToValueAtTime(Math.max(0,Math.min(1,t)),n+r)}get playing(){return this.isPlaying}get queueLength(){return this.audioQueue.length}}class tnt{constructor(t="ws://localhost:8000/ws/realtime/"){Qe(this,"websocket",null);Qe(this,"isConnected",!1);Qe(this,"mediaRecorder",null);Qe(this,"audioStream",null);Qe(this,"audioChunks",[]);Qe(this,"isRecording",!1);Qe(this,"audioContext",null);Qe(this,"audioQueue",[]);Qe(this,"isPlaying",!1);Qe(this,"usePCM16",!0);Qe(this,"smoothPlayer",null);Qe(this,"playbackTimeout",null);Qe(this,"playbackTimeoutDelay",2e3);Qe(this,"pcm16Recorder");Qe(this,"pcm16Chunks",[]);Qe(this,"vad");Qe(this,"onConnectionEstablished");Qe(this,"onAudioReceived");Qe(this,"onTextReceived");Qe(this,"onError");Qe(this,"onDisconnected");this.serverUrl=t,this.serverUrl="wss://api.chattytutor.com/ws/realtime/",this.audioContext=new(window.AudioContext||window.webkitAudioContext),this.smoothPlayer=new ent(this.audioContext,()=>{}),this.pcm16Recorder=new Zrt({onPCM16Chunk:r=>{this.handlePCM16Chunk(r)},onError:r=>{var n;(n=this.onError)==null||n.call(this,r)}}),this.vad=new Jrt({onVoiceDetected:()=>{},onSilenceDetected:()=>{},onAudioChunksReady:r=>{this.usePCM16?this.handlePCM16ChunksReady():this.handleAudioChunksReady(r)}
579,onPlaybackStateChanged:r=>{}})}setOnConnectionEstablished(t){this.onConnectionEstablished=t}setOnAudioReceived(t){this.onAudioReceived=t}setOnTextReceived(t){this.onTextReceived=t}setOnError(t){this.onError=t}setOnDisconnected(t){this.onDisconnected=t}async connect(){var t;try{const r=xc.token,n=r?`${this.serverUrl}?token=${encodeURIComponent(r)}`:this.serverUrl;this.websocket=new WebSocket(n),this.websocket.onopen=()=>{var i;this.isConnected=!0,(i=this.onConnectionEstablished)==null||i.call(this)},this.websocket.onmessage=i=>{var o;try{const a=JSON.parse(i.data);this.handleMessage(a)}catch{(o=this.onError)==null||o.call(this,"Failed to parse server message")}},this.websocket.onclose=()=>{var i;this.isConnected=!1,(i=this.onDisconnected)==null||i.call(this)},this.websocket.onerror=i=>{var o;(o=this.onError)==null||o.call(this,"WebSocket connection error")}}catch(r){throw(t=this.onError)==null||t.call(this,"Failed to connect to server"),r}}handleMessage(t){var n,i,o,a;switch(t.type){case"connection_established":break;case"audio_response":t.audio&&((n=this.onAudioReceived)==null||n.call(this,t.audio),this.playAudioResponse(t.audio));break;case"text_response":t.text&&((i=this.onTextReceived)==null||i.call(this,t.text));break;case"error":(o=this.onError)==null||o.call(this,t.message||"Unknown server error");break;case"response.audio.delta":t.delta&&((a=this.onAudioReceived)==null||a.call(this,t.delta),this.playAudioResponse(t.delta));break;case"response.audio.done":case"response.done":this.handleResponseComplete();break}}async startRecording(){var t;if(!this.isRecording)try{this.audioStream=await navigator.mediaDevices.getUserMedia({audio:{sampleRate:24e3,channelCount:1,echoCancellation:!0,noiseSuppression:!0}}),this.usePCM16?(await this.pcm16Recorder.initialize(this.audioStream),await this.pcm16Recorder.startRecording(),this.pcm16Chunks=[]):(this.mediaRecorder=new MediaRecorder(this.audioStream,{mimeType:"audio/webm;codecs=opus"}),this.audioChunks=[],this.mediaRecorder.ondataavailable=r=>{r.data.size>0&&(this.audioChunks.push(r.data),this.vad.addAudioChunk(r.data))},this.mediaRecorder.onstop=()=>{this.processAudioChunk()},this.mediaRecorder.start(100)),this.isRecording=!0,this.audioContext&&this.vad.initialize(this.audioStream,this.audioContext)}catch(r){throw(t=this.onError)==null||t.call(this,"Failed to access microphone"),r}}stopRecording(){this.isRecording&&(this.usePCM16?this.pcm16Recorder.stopRecording():this.mediaRecorder&&(this.mediaRecorder.stop(),this.mediaRecorder=null),this.isRecording=!1,this.vad.stop(),this.audioStream&&(this.audioStream.getTracks().forEach(t=>t.stop()),this.audioStream=null))}handleAudioChunksReady(t){this.processAudioChunks(t)}handlePCM16Chunk(t){if(!this.vad.playbackActive){this.pcm16Chunks.push(t);const r=new Blob([t],{type:"audio/pcm"});this.vad.addAudioChunk(r)}}handlePCM16ChunksReady(){this.pcm16Chunks.length!==0&&(this.processPCM16Chunks([...this.pcm16Chunks]),this.pcm16Chunks=[])}async processPCM16Chunks(t){var r;if(t.length!==0)try{const n=t.reduce((l,c)=>l+c.byteLength,0),i=new ArrayBuffer(n),o=new Uint8Array(i);let a=0;for(const l of t)o.set(new Uint8Array(l),a),a+=l.byteLength;const s=await this.arrayBufferToBase64(i);this.sendAudioChunk(s,"pcm16")}catch{(r=this.onError)==null||r.call(this,"Failed to process PCM16 audio")}}async processAudioChunks(t){var r;if(t.length!==0)try{const n=new Blob(t,{type:"audio/webm"}),i=await this.blobToBase64(n);this.sendAudioChunk(i,"webm")}catch{(r=this.onError)==null||r.call(this,"Failed to process audio")}}async processAudioChunk(){var t;if(this.audioChunks.length!==0)try{const r=new Blob(this.audioChunks,{type:"audio/webm"}),n=await this.blobToBase64(r);this.sendAudioChunk(n,"webm"),this.audioChunks=[]}catch{(t=this.onError)==null||t.call(this,"Failed to process audio")}}async blobToBase64(t){return new Promise((r,n)=>{const i=new FileReader;i.onload=()=>{const a=i.result.split(",")[1];r(a)},i.onerror=n,i.readAsDataURL(t)})}async arrayBufferToBase64(t){const r=new Uint8Array(t);let n="";for(let i=0;i<r.byteLength;i++)n+=String.fromCharCode(r[i]);return btoa(n)}async convertToPCM16(t){if(!this.audioContext)throw new Error("AudioContext not available");try{const r=await t.arrayBuffer(),n=await this.audioContext.decodeAudioData(r),i=24e3,o=1,a=this.resampleAudioBuffer(n,i);return this.audioBufferToPCM16(a,o)}catch(r){throw r}}resampleAudioBuffer(t,r){if(t.sampleRate===r)return t;if(!this.audioContext)throw new Error("AudioContext not available for resampling");const n=t.sampleRate/r,i=Math.round(t.length/n),o=this.audioContext.createBuffer(1,i,r),a=t.getChannelData(0),s=o.getChannelData(0);for(let l=0;l<i;l++){const c=l*n,d=Math.floor(c),u=c-d;d+1<a.length?s[l]=a[d]*(1-u)+a[d+1]*u:s[l]=a[d]||0}return o}audioBufferToPCM16(t,r){const n=t.length*r,i=new ArrayBuffer(n*2),o=new DataView(i);let a=0;for(let s=0;s<t.length;s++)for(let l=0;l<Math.min(r,t.numberOfChannels);l++){const c=t.getChannelData(l)[s],d=Math.max(-32768,Math.min(32767,Math.round(c*32767)));o.setInt16(a,d,!0),a+=2}return i}sendAudioChunk(t,r="pcm16"){var i;if(!this.isConnected||!this.websocket)return;const n={type:"audio_chunk",audio:t,format:r};try{this.websocket.send(JSON.stringify(n))}catch{(i=this.onError)==null||i.call(this,"Failed to send audio to server")}}async playAudioResponse(t){if(!(!t||!this.smoothPlayer))try{this.isPlaying||(this.isPlaying=!0,this.vad.setPlaybackState(!0)),this.resetPlaybackTimeout(),await this.smoothPlayer.addAudioChunk(t)}catch{}}resetPlaybackTimeout(){this.playbackTimeout&&clearTimeout(this.playbackTimeout),this.playbackTimeout=setTimeout(()=>{this.handlePlaybackFinished()},this.playbackTimeoutDelay)}handleResponseComplete(){this.playbackTimeout&&(clearTimeout(this.playbackTimeout),this.playbackTimeout=null),setTimeout(()=>{this.handlePlaybackFinished()},500)}handlePlaybackFinished(){this.isPlaying&&(this.isPlaying=!1,this.vad.setPlaybackState(!1),this.playbackTimeout&&(clearTimeout(this.playbackTimeout),this.playbackTimeout=null))}async processAudioQueue(){if(this.audioQueue.length===0){this.isPlaying=!1,this.vad.setPlaybackState(!1);return}this.isPlaying=!0,this.vad.setPlaybackState(!0);const t=this.audioQueue.shift();try{const r=this.base64ToArrayBuffer(t),n=this.createWavBlob(r,24e3,1,16),i=URL.createObjectURL(n);new eL.Howl({src:[i],format:["wav"],onend:()=>{URL.revokeObjectURL(i),this.processAudioQueue()},onloaderror:(a,s)=>{URL.revokeObjectURL(i),this.processAudioQueue()}}).play()}catch{setTimeout(()=>this.processAudioQueue(),100)}}base64ToArrayBuffer(t){const r=atob(t),n=new Uint8Array(r.length);for(let i=0;i<r.length;i++)n[i]=r.charCodeAt(i);return n.buffer}createWavBlob(t,r,n,i){const o=t.byteLength,a=new ArrayBuffer(44+o),s=new DataView(a),l=(u,f)=>{for(let h=0;h<f.length;h++)s.setUint8(u+h,f.charCodeAt(h))};l(0,"RIFF"),s.setUint32(4,36+o,!0),l(8,"WAVE"),l(12,"fmt "),s.setUint32(16,16,!0),s.setUint16(20,1,!0),s.setUint16(22,n,!0),s.setUint32(24,r,!0),s.setUint32(28,r*n*i/8,!0),s.setUint16(32,n*i/8,!0),s.setUint16(34,i,!0),l(36,"data"),s.setUint32(40,o,!0);const c=new Uint8Array(t);return new Uint8Array(a,44).set(c),new Blob([a],{type:"audio/wav"})}disconnect(){this.stopRecording(),this.usePCM16&&this.pcm16Recorder.destroy(),this.websocket&&(this.websocket.close(),this.websocket=null),this.isConnected=!1,this.audioQueue=[],this.isPlaying=!1,this.pcm16Chunks=[],this.smoothPlayer&&(this.smoothPlayer.stopPlayback(),this.smoothPlayer=null),this.playbackTimeout&&(clearTimeout(this.playbackTimeout),this.playbackTimeout=null),this.audioContext&&(this.audioContext.close(),this.audioContext=null)}enablePCM16Recording(t=!0){this.usePCM16=t}setVADThreshold(t){this.vad.setThreshold(t)}setSilenceDelay(t){this.vad.setSilenceDelay(t)}setPlaybackVolume(t,r=.1){this.smoothPlayer&&this.smoothPlayer.setVolume(t,r)}setPlaybackTimeoutDelay(t){this.playbackTimeoutDelay=Math.max(500,t)}get connected(){return this.isConnected}get recording(){return this.isRecording}get vadThresholdValue(){return this.vad.threshold}get silenceDelayValue(){return this.vad.delay}}const{Title:qG,Text:uA}=vy;function rnt(){var y,g;const[e,t]=p.useState(!1),[r,n]=p.useState(!1),[i,o]=p.useState("disconnected"),[a,s]=p.useState(""),[l,c]=p.useState(""),d=p.useRef(null);p.useEffect(()=>
579(d.current=new tnt,d.current.setOnConnectionEstablished(()=>{o("connected"),t(!0),s(""),bt.success("Connected to AI teacher!")}),d.current.setOnAudioReceived(m=>{c("Received audio response from AI")}),d.current.setOnTextReceived(m=>{c(`AI: ${m}`)}),d.current.setOnError(m=>{o("error"),s(m),t(!1),n(!1),bt.error(`Connection error: ${m}`)}),d.current.setOnDisconnected(()=>{o("disconnected"),t(!1),n(!1),s(""),bt.info("Disconnected from AI teacher")}),()=>{d.current&&d.current.disconnect()}),[]);const u=async()=>{if(!d.current){bt.error("WebSocket service not initialized");return}try{o("connecting"),s(""),await d.current.connect(),await d.current.startRecording(),n(!0),bt.success("Call started! You can now speak to the AI teacher.")}catch(m){o("error"),s(m instanceof Error?m.message:"Failed to start call"),bt.error("Failed to start call. Please check your microphone permissions and try again.")}},f=()=>{if(d.current)try{d.current.stopRecording(),n(!1),d.current.disconnect(),o("disconnected"),t(!1),c(""),s(""),bt.info("Call ended")}catch{bt.error("Error ending call")}},h=()=>{switch(i){case"connected":return"#52c41a";case"connecting":return"#1890ff";case"error":return"#ff4d4f";default:return"#d9d9d9"}},v=()=>{switch(i){case"connected":return"Connected";case"connecting":return"Connecting...";case"error":return"Error";default:return"Disconnected"}};return B("div",{style:{minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center",background:"linear-gradient(135deg, #667eea 0%, #764ba2 100%)",padding:"20px"},children:B(I2e,{style:{width:"100%",maxWidth:500,textAlign:"center",boxShadow:"0 8px 32px rgba(0,0,0,0.1)",borderRadius:"16px"},bodyStyle:{padding:"40px"},children:Oe(Qg,{direction:"vertical",size:"large",style:{width:"100%"},children:[Oe("div",{children:[B(qG,{level:2,style:{margin:0,color:"#1890ff"},children:"🎓 AI Teacher Call"}),B(uA,{type:"secondary",style:{fontSize:"16px"},children:"Real-time conversation with your AI English teacher"})]}),B("div",{style:{padding:"12px 20px",borderRadius:"8px",backgroundColor:"#f5f5f5",border:`2px solid ${h()}`},children:Oe(Qg,{children:[B("div",{style:{width:"12px",height:"12px",borderRadius:"50%",backgroundColor:h()}}),B(uA,{strong:!0,style:{color:h()},children:v()})]})}),a&&B(b5,{message:"Connection Error",description:a,type:"error",showIcon:!0,style:{textAlign:"left"}}),l&&B(b5,{message:"Latest Activity",description:l,type:"info",showIcon:!0,style:{textAlign:"left"}}),r&&B("div",{style:{padding:"12px 20px",borderRadius:"8px",backgroundColor:"#fff2e8",border:"2px solid #fa8c16"},children:Oe(Qg,{children:[B(Tke,{style:{color:"#fa8c16",fontSize:"16px"}}),B(uA,{strong:!0,style:{color:"#fa8c16"},children:"Recording... Speak now!"})]})}),B(Qg,{size:"large",children:e?B(hn,{danger:!0,size:"large",icon:B(NNe,{}),onClick:f,style:{height:"60px",width:"140px",fontSize:"16px",borderRadius:"30px",background:"linear-gradient(45deg, #ff4d4f, #ff7875)",border:"none",boxShadow:"0 4px 16px rgba(255, 77, 79, 0.3)"},children:"Hang Up"}):B(hn,{type:"primary",size:"large",icon:B(zNe,{}),onClick:u,loading:i==="connecting",style:{height:"60px",width:"140px",fontSize:"16px",borderRadius:"30px",background:"linear-gradient(45deg, #52c41a, #73d13d)",border:"none",boxShadow:"0 4px 16px rgba(82, 196, 26, 0.3)"},children:"Call"})}),Oe("div",{style:{textAlign:"left",marginTop:"20px"},children:[B(qG,{level:5,children:"How to use:"}),Oe("ul",{style:{paddingLeft:"20px",color:"#666"},children:[B("li",{children:'Click "Call" to connect to the AI teacher'}),B("li",{children:"Allow microphone access when prompted"}),B("li",{children:"Speak naturally - the AI will respond with audio"}),B("li",{children:"The teacher is bilingual, you can use any language you want"}),B("li",{children:'Click "Hang Up" to end the conversation'}),B("li",{className:"text-red-500",children:"Free user is limited to 5 minutes"})]})]}),xc.user&&Oe("div",{style:{padding:"12px",backgroundColor:"#f0f2f5",borderRadius:"8px",fontSize:"12px",color:"#666"},children:["Logged in as:"," ",((y=xc.user.config)==null?void 0:y.nickname)||((g=xc.user.config)==null?void 0:g.email)]})]})})})}const nnt=Epe([{path:"/",element:B(_Je,{}),children:[{path:"conversation",element:B(dtt,{})},{path:"callchattytutor",element:B(rnt,{})},{path:"vocabulary",element:B(ftt,{})},{path:"pronounciation",element:B(ptt,{})},{path:"login",element:B(Irt,{})},{path:"admin",element:B(Qrt,{})},{path:"user",element:B(ert,{}),children:[{path:"account_info",element:B(Ctt,{})},{path:"subscription",element:B(jtt,{})},{path:"preference",element:B(_tt,{})},{path:"admin",element:B(Wrt,{})}]}]},{path:"/art/login",element:B(Trt,{})},{path:"/art/index",element:B(Urt,{})}]);Woe.init("chattytutor/chattytutor");window.store=xc;function int(){var e=navigator.userAgent.match(/(iPad)|(iPhone)|(iPod)|(android)|(webOS)/i);return e}window.isMobile=int;const ont=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,ant={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},snt=e=>ant[e],lnt=e=>e.replace(ont,snt);let GG={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:lnt};function cnt(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};GG={...GG,...e}}const unt={type:"3rdParty",init(e){cnt(e.options.react)}};li.use(unt).init({resources:{en:{translation:{"If you fill this, we will use your Api key instead of our Api key, make should you fill this only when your token is run out.":"If you fill this, we will use your Api key instead of our Api key, make sure you fill this only when your token is run out.","Activation Link is sent to your email, please check it!":"Activation Link is sent to your email, please check it!","user not active":"user not active",Register:"Register",Send:"Send",Login:"Login","Forget password":"Forget password","Already have an account?":"Already have an account?","Don't hava an account?":"Don't hava an account?","Welcome to Chatty Tutor":"Welcome to Chatty Tutor","Reset Password":"Reset Password","Enter New Password":"Enter New Password",Reset:"Reset",Chat:"Chatty",vocabularies:{Change:"Change"},setting:{Language:"Learning Language"},nav:{Vocabulary:"Vocabulary",Conversation:"Conversation",Pronunciation:"Pronunciation",Settings:"Settings",Subscription:"Subscription",CallChattytutor:"Call Chatty Tutor"},conversation:{clear:"Clear Memory",scenechat:"Topic Chat",exit_scenechat:"Exit Chat"},topic_chat:{name:"Topic Name",description:"Topic Description",script:"Topic Script",community:"Community","My Records":"My Records",Create:"Create",chat_btn:"Chat",delete_btn:"Delete",edit_btn:"Edit",clear_btn:"Back"},"Update Subscription Package":"Subscription","Welcome to ChattyTutor!":"Welcome to ChattyTutor!","Please select your native language. This helps us provide better translations and learning experiences tailored to you.":"Please select your native language. This helps us provide better translations and learning experiences tailored to you.","Your Native Language":"Your Native Language","Select your native language":"Select your native language","You can change this later in your preferences.":"You can change this later in your preferences.","Please select your native language":"Please select your native language","Welcome! Your native language has been set successfully.":"Welcome! Your native language has been set successfully.","Failed to update language. Please try again.":"Failed to update language. Please try again.",Skip:"Skip"}},zh:{translation:{Monthly:"连续包月",Yearly:"连续包年","Renew every year":"每年自动续订","Renew every month":"每月自动续订","Vocabularies Level":"单词等级",Level:"等级","Story Vocabulary":"故事记单词","Story vocabularies free trial is ended, please upgrade your subscription for full access!":"故事记单词免费体验已结束,升级您的套餐获得全部使用权限!","Please upgrade your subscription for full access!":"请升级您的套餐获得全部使用权限!",Support:"支持","Not Support":"不支持","Change the display language of the website.":"更改网站的显示语言。","Display Language":"界面语言","Add Tutor":"添加语伴","Chat with AI tutor":"昵称",Delete:"删除","- no more History -":"- 前面没有喽 -","Show text":"隐藏对话","Auto send":"自动发送","AI Check":"检查语法",Translation:"翻译",Sound:"发音","AI Tutor Setting":"AI老师设置","Sentence Tutor":"句子老师","Chatty Tutor":"对话老师","Sentence Tutor Setting":"句子老师设置","Set your sentence checking AI tutor prompt, note that {user_text} will be replaced by your actual sentence, maximum length is 1024":"设置你的句子检查AI老师的æ
579ç¤ºè¯, 注意 {user_text} 将会被你的实际句子替代, 最大长度为1024","speaking or typing your magic words":"发送语音或输入文字","System default prompt":"系统默认提示词","Maximum length is 1024":"最大长度为1024","Teacher's replying and speaking language":"老师的回复和发声的语言","Publicity Cooperation":"宣传与合作","Prioritize Your Needs":"优先支持你的需求",Hint:"提示",Send:"发送","Sentence Teacher":"句子老师",Settings:"角色设定",Name:"昵称",Description:"描述",Language:"语言",Prompt:"提示词",Memory:"内容记忆","Clear Memory":"清除记忆",Hints:"提示",Cancel:"取消",Back:"返回",OK:"确定","The reading eassay shouldn't be empty.":"朗读材料不能为空。","Read Aloud":"发音评估","Read Aloud(English Only)":"朗读(仅英文)","Essay(GPT-3)":"GPT-3生成","Essay(Input)":"手动输入",Generate:"生成",Translate:"翻译","Play Sound":"AI朗读",Mispronunciation:"发音错误",Improvement:"有待提高",Perfect:"完美","Tips: The meaning of the color represents":"提示:发音评估的颜色含义为","Basic Prompt: Compose an engaging paragraph for oral practice, including diverse vocabulary, sentence structures, pronunciation challenges...":"基础提示词:撰写一段口语练习材料,包含丰富的词汇、句子结构,具有挑战的发音练习…","Extra Prompt(Optional)":"附加提示词(可选)","Input the extra prompt for the material, e.g. 'A story about a dog'":"为材料增添额外的提示,例如:'A story about a dog'","Overall Score":"总分","Completeness Score":"完整度","Accuracy Score":"准确度","Fluency Score":"流利度",Edit:"编辑","No essay input yet":"请输入朗读材料…","No essay generated yet":"请点击生成按钮生成朗读材料…","User Setting":"用户设置",Account:"账户信息","Nick Name":"昵称",Email:"邮箱",Password:"密码","New Password":"新密码","Confirm Password":"确认密码","OpenAI Api key":"OpenAI的API密匙","If you fill this, we will use your Api key instead of our Api key, make sure you fill this only when your token is run out.":"若填写此项内容,将会切换至您的API密匙,请仅在套餐内token用光时填写",Clear:"清空","Save Change":"保存修改","Log Out":"退出登录","Renew Time":"包月更新时间",Subscription:"套餐信息","Current Subscription":"账号状态",Paid:"已支付","Voice Usage":"语音使用量","Token Usage":"Token使用量","Expire Time":"有效期","Update Subscription Package":"购买会员套餐","1 Month":"一个月",USD:"美元","Voice Quota":"语音条数",times:"条","AI Token":"AI Token","(100 tokens ~= 75 words.)":"(100 tokens ~= 75 单词.)",Month:"月",Year:"å¹´","NEED YOUR OWN OPENAI APIKEY":"需要使用您自己的API密匙","Voice Quota: 3000 times":"语音条数: 3000条","💎 Lifetime":"💎 终生",Lifetime:"终生","LIMITED QUOTA":"额度限制","3 Months":"三个月","Expire time":"有效期","Dear user, ChattyTutor can unlock all the features after purchase, wish you a happy life.":"尊敬的用户您好,ChattyTutor购买后即可解锁全部功能,祝您生活愉快。","OVERALL UNLIMITED":"无限量使用","Voice Quota: Unlimited":"语音条数无限量","OpenAI Token Unlimited":"OpenAI Token无限量","1 Year":"一年","Expire time: 1 Year":"有效期:一年",Unlimited:"无限量","Note: The following prices will vary according to the exchange rate of the US dollar.":"提示:以下价格会根据美元汇率有细微浮动。",Buy:"è´­ä¹°","Note: You can check the":"提示:您可以查看",Preview:"预览","Price Structure":"套é
579¤åŒ…表格","for detail.":"了解更多详情","Note: All subscription packages are one-time purchases with no recurring deductions":"提示:所有订阅包都是一次性购买,不会周期扣款。","Note: You can use credit card or Alipay or WechatPay, If you encounter any problem when purchasing, please contact me ":"提示:购买支持支付宝、微信或银行卡,点击购买按钮等待两秒后选择,邮箱自动会填充,卡持有人和邮编地址随意填一个就行。如果您有任何问题,都可以联系我 ","This will effect the max length of the teacher reply.":"这将影响老师回复的最大长度。","Now support ChatGPT from OpenAI, Claude from Anthropic.":"现在支持OpenAI的ChatGPT和Anthropic的Claude。","LLM Provider":"大语言模型提供厂商","LLM Max Tokens":"大语言模型回复长度","Memory is cleared":"记忆已清空",Preference:"设置","Voice Character":"语音角色","Change the AI's voice character here, including accent. only effect in English, other languages has default voice.":"在此切换语音角色(含口音)。仅在英语生效,其他语言均为默认语音模式","Voice Style":"语音风格","Change the AI's voice style":"切换AI语音风格",Cheerful:"轻松愉悦",Chat:"口语漫谈",Default:"基础人设",Angry:"义愤填膺",Excited:"热情活力",Unfriendly:"高冷傲娇","Voice Speed":"语音速度","Change the AI's voice speed, the larger the number, the faster the speaking":"调整AI语音速度—数字越大,语速越快",Reset:"重置","Voice Provider":"语音来源","Set the voice provider, the default is Microsoft Azure speech, you can also choose web system speech, it's free":"选择语音来源,默认为Microsoft Azure,另有免费系统语音可供选择","Translation Language":"翻译语言","Set the translation target language, the default is Chinese, you could set it to your native language":"设置翻译的目标语言,比如您的母语,默认为中文","Start learning new words!":"开始学习新单词!","Round 1":"第一轮初记","Round 2":"第二轮巩固","Round 3":"第三轮结果","Image Mode":"图片模式","Story Mode":"故事模式","You have finished learning this batch of words 🎉":"你已经完成了这一批单词!🎉","Learning Schedule Progress":"学习进度","Remembered words":"已记住","To learn next batch of new words":"去学习下一批单词",Shadowing:"影子跟读","Left words":"剩余","Next Word":"下一个","I don't know":"不认识",approximate:"模糊","The language you want to practice, the teacher will respond and vocalize in that language":"你想要锻炼的语言,老师的回复和发声都会以这个语言","I know":"认识","Progress Track":"进度跟踪","Current Book":"当前单词书","You will lose all your data of the current book":"您将丢失当前单词书所有数据","All Progress":"整体进度","Topic Chat":"主题聊天","Dialogue Script":"台词","Please save the topic first":"请先保存主题修改","Please fill in the empty field":"请填写空白字段","Create successfully":"创建成功","Update successfully":"更新成功",Submit:"提交",Update:"更新",setting:{Language:"学习语言"},vocabularies:{Change:"更换"},nav:{Vocabulary:"记单词",Conversation:"口语练习",Pronunciation:"发音评估",Settings:"用户设置",Subscription:"开通套餐",CallChattytutor:"连线ChattyTutor"},conversation:{clear:"清空记忆",scenechat:"主题聊天",exit_scenechat:"退出主题聊天"},topic_chat:{name:"主题聊天标题",description:"主题聊天描述",script:"主题聊天对话脚本",community:"主题社区","My Records":"我的主题",Create:"创建主题",chat_btn:"开始",delete_btn:"删除",edit_btn:"编辑",clear_btn:"返回"},"Welcome to ChattyTutor!":"欢迎使用ChattyTutor!","Please select your native language. This helps us provide better translations and learning experiences tailored to you.":"请选择您的母语。这有助于我们为您提供更好的翻译和学习体验。","Your Native Language":"您的母语","Select your native language":"选择您的母语","You can change this later in your preferences.":"您可以稍后在偏好设置中更改。","Please select your native language":"请选择您的母语","Welcome! Your native language has been set successfully.":"欢迎!您的母语设置成功。","Failed to update language. Please try again.":"语言更新失败,请重试。",Skip:"跳过"}}},lng:X$(),fallbackLng:"en",interpolation:{escapeValue:!1}});ai.init("ea719e77adaea2e61c540b17031bae52",{track_pageview:!0,persistence:"localStorage"});dA.createRoot(document.getElementById("root")).render(B(de.StrictMode,{children:B(Spe,{router:nnt})}))});export default dnt();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.