PageSourceSearch

https://www.cotocellar.com/assets/OP8dCFE0.js

js cotocellar.com collected 2026-10-04 16:55:59 UTC 1,224,105 bytes, 215 lines download raw bytes

vendor: 5,178 bytes, lines 1-9
1var iH=Object.defineProperty;var sH=(t,e,n)=>e in t?iH(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var ti=(t,e,n)=>(sH(t,typeof e!="symbol"?e+"":e,n),n);function yP(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in t)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(t,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var Do=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Lr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Cm(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),n}var wP={exports:{}},Tm={},bP={exports:{}},pt={};/**
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 Ld=Symbol.for("react.element"),oH=Symbol.for("react.portal"),aH=Symbol.for("react.fragment"),lH=Symbol.for("react.strict_mode"),uH=Symbol.for("react.profiler"),cH=Symbol.for("react.provider"),fH=Symbol.for("react.context"),dH=Symbol.for("react.forward_ref"),pH=Symbol.for("react.suspense"),hH=Symbol.for("react.memo"),gH=Symbol.for("react.lazy"),p_=Symbol.iterator;function mH(t){return t===null||typeof t!="object"?null:(t=p_&&t[p_]||t["@@iterator"],typeof t=="function"?t:null)}var xP={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},SP=Object.assign,EP={};function Yu(t,e,n){this.props=t,this.context=e,this.refs=EP,this.updater=n||xP}Yu.prototype.isReactComponent={};Yu.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=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,t,e,"setState")};Yu.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function CP(){}CP.prototype=Yu.prototype;function cS(t,e,n){this.props=t,this.context=e,this.refs=EP,this.updater=n||xP}var fS=cS.prototype=new CP;fS.constructor=cS;SP(fS,Yu.prototype);fS.isPureReactComponent=!0;var h_=Array.isArray,TP=Object.prototype.hasOwnProperty,dS={current:null},_P={key:!0,ref:!0,__self:!0,__source:!0};function AP(t,e,n){var r,i={},s=null,a=null;if(e!=null)for(r in e.ref!==void 0&&(a=e.ref),e.key!==void 0&&(s=""+e.key),e)TP.call(e,r)&&!_P.hasOwnProperty(r)&&(i[r]=e[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1<l){for(var c=Array(l),f=0;f<l;f++)c[f]=arguments[f+2];i.children=c}if(t&&t.defaultProps)for(r in l=t.defaultProps,l)i[r]===void 0&&(i[r]=l[r]);return{$$typeof:Ld,type:t,key:s,ref:a,props:i,_owner:dS.current}}function vH(t,e){return{$$typeof:Ld,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function pS(t){return typeof t=="object"&&t!==null&&t.$$typeof===Ld}function yH(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var g_=/\/+/g;function hw(t,e){return typeof t=="object"&&t!==null&&t.key!=null?yH(""+t.key):e.toString(36)}function Eh(t,e,n,r,i){var s=typeof t;(s==="undefined"||s==="boolean")&&(t=null);var a=!1;if(t===null)a=!0;else switch(s){case"string":case"number":a=!0;break;case"object":switch(t.$$typeof){case Ld:case oH:a=!0}}if(a)return a=t,i=i(a),t=r===""?"."+hw(a,0):r,h_(i)?(n="",t!=null&&(n=t.replace(g_,"$&/")+"/"),Eh(i,e,n,"",function(f){return f})):i!=null&&(pS(i)&&(i=vH(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(g_,"$&/")+"/")+t)),e.push(i)),1;if(a=0,r=r===""?".":r+":",h_(t))for(var l=0;l<t.length;l++){s=t[l];var c=r+hw(s,l);a+=Eh(s,e,n,c,i)}else if(c=mH(t),typeof c=="function")for(t=c.call(t),l=0;!(s=t.next()).done;)s=s.value,c=r+hw(s,l++),a+=Eh(s,e,n,c,i);else if(s==="object")throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.");return a}function Np(t,e,n){if(t==null)return t;var r=[],i=0;return Eh(t,r,"","",function(s){return e.call(n,s,i++)}),r}function wH(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(n){(t._status===0||t._status===-1)&&(t._status=1,t._result=n)},function(n){(t._status===0||t._status===-1)&&(t._status=2,t._result=n)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var pr={current:null},Ch={transition:null},bH={ReactCurrentDispatcher:pr,ReactCurrentBatchConfig:Ch,ReactCurrentOwner:dS};
vendor: 12,660 bytes, lines 9-33
9pt.Children={map:Np,forEach:function(t,e,n){Np(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return Np(t,function(){e++}),e},toArray:function(t){return Np(t,function(e){return e})||[]},only:function(t){if(!pS(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};pt.Component=Yu;pt.Fragment=aH;pt.Profiler=uH;pt.PureComponent=cS;pt.StrictMode=lH;pt.Suspense=pH;pt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=bH;pt.cloneElement=function(t,e,n){if(t==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var r=SP({},t.props),i=t.key,s=t.ref,a=t._owner;if(e!=null){if(e.ref!==void 0&&(s=e.ref,a=dS.current),e.key!==void 0&&(i=""+e.key),t.type&&t.type.defaultProps)var l=t.type.defaultProps;for(c in e)TP.call(e,c)&&!_P.hasOwnProperty(c)&&(r[c]=e[c]===void 0&&l!==void 0?l[c]:e[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){l=Array(c);for(var f=0;f<c;f++)l[f]=arguments[f+2];r.children=l}return{$$typeof:Ld,type:t.type,key:i,ref:s,props:r,_owner:a}};pt.createContext=function(t){return t={$$typeof:fH,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},t.Provider={$$typeof:cH,_context:t},t.Consumer=t};pt.createElement=AP;pt.createFactory=function(t){var e=AP.bind(null,t);return e.type=t,e};pt.createRef=function(){return{current:null}};pt.forwardRef=function(t){return{$$typeof:dH,render:t}};pt.isValidElement=pS;pt.lazy=function(t){return{$$typeof:gH,_payload:{_status:-1,_result:t},_init:wH}};pt.memo=function(t,e){return{$$typeof:hH,type:t,compare:e===void 0?null:e}};pt.startTransition=function(t){var e=Ch.transition;Ch.transition={};try{t()}finally{Ch.transition=e}};pt.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};pt.useCallback=function(t,e){return pr.current.useCallback(t,e)};pt.useContext=function(t){return pr.current.useContext(t)};pt.useDebugValue=function(){};pt.useDeferredValue=function(t){return pr.current.useDeferredValue(t)};pt.useEffect=function(t,e){return pr.current.useEffect(t,e)};pt.useId=function(){return pr.current.useId()};pt.useImperativeHandle=function(t,e,n){return pr.current.useImperativeHandle(t,e,n)};pt.useInsertionEffect=function(t,e){return pr.current.useInsertionEffect(t,e)};pt.useLayoutEffect=function(t,e){return pr.current.useLayoutEffect(t,e)};pt.useMemo=function(t,e){return pr.current.useMemo(t,e)};pt.useReducer=function(t,e,n){return pr.current.useReducer(t,e,n)};pt.useRef=function(t){return pr.current.useRef(t)};pt.useState=function(t){return pr.current.useState(t)};pt.useSyncExternalStore=function(t,e,n){return pr.current.useSyncExternalStore(t,e,n)};pt.useTransition=function(){return pr.current.useTransition()};pt.version="18.2.0";bP.exports=pt;var I=bP.exports;const Ie=Lr(I),Xf=yP({__proto__:null,default:Ie},[I]);/**
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 xH=I,SH=Symbol.for("react.element"),EH=Symbol.for("react.fragment"),CH=Object.prototype.hasOwnProperty,TH=xH.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,_H={key:!0,ref:!0,__self:!0,__source:!0};function kP(t,e,n){var r,i={},s=null,a=null;n!==void 0&&(s=""+n),e.key!==void 0&&(s=""+e.key),e.ref!==void 0&&(a=e.ref);for(r in e)CH.call(e,r)&&!_H.hasOwnProperty(r)&&(i[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps,e)i[r]===void 0&&(i[r]=e[r]);return{$$typeof:SH,type:t,key:s,ref:a,props:i,_owner:TH.current}}Tm.Fragment=EH;Tm.jsx=kP;Tm.jsxs=kP;wP.exports=Tm;var ue=wP.exports;function AH(t){return typeof t=="function"}function kH(t){const e=typeof t;return e==="function"||e==="object"&&!!t}function LH(){return typeof window<"u"&&window.document}function Lxe(){if(LH()){if(!kH(window.__REACT_DEVTOOLS_GLOBAL_HOOK__))return;for(const t in window.__REACT_DEVTOOLS_GLOBAL_HOOK__){if(t==="renderers"){window.__REACT_DEVTOOLS_GLOBAL_HOOK__[t]=new Map;continue}window.__REACT_DEVTOOLS_GLOBAL_HOOK__[t]=AH(window.__REACT_DEVTOOLS_GLOBAL_HOOK__[t])?Function.prototype:null}}}var LP={exports:{}},Yr={},OP={exports:{}},IP={};/**
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(t){function e(B,Y){var Z=B.length;B.push(Y);e:for(;0<Z;){var fe=Z-1>>>1,K=B[fe];if(0<i(K,Y))B[fe]=Y,B[Z]=K,Z=fe;else break e}}function n(B){return B.length===0?null:B[0]}function r(B){if(B.length===0)return null;var Y=B[0],Z=B.pop();if(Z!==Y){B[0]=Z;e:for(var fe=0,K=B.length,N=K>>>1;fe<N;){var ie=2*(fe+1)-1,me=B[ie],ve=ie+1,ze=B[ve];if(0>i(me,Z))ve<K&&0>i(ze,me)?(B[fe]=ze,B[ve]=Z,fe=ve):(B[fe]=me,B[ie]=Z,fe=ie);else if(ve<K&&0>i(ze,Z))B[fe]=ze,B[ve]=Z,fe=ve;else break e}}return Y}function i(B,Y){var Z=B.sortIndex-Y.sortIndex;return Z!==0?Z:B.id-Y.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;t.unstable_now=function(){return s.now()}}else{var a=Date,l=a.now();t.unstable_now=function(){return a.now()-l}}var c=[],f=[],d=1,g=null,v=3,y=!1,w=!1,T=!1,E=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,b=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(B){for(var Y=n(f);Y!==null;){if(Y.callback===null)r(f);else if(Y.startTime<=B)r(f),Y.sortIndex=Y.expirationTime,e(c,Y);else break;Y=n(f)}}function A(B){if(T=!1,C(B),!w)if(n(c)!==null)w=!0,q(O);else{var Y=n(f);Y!==null&&U(A,Y.startTime-B)}}function O(B,Y){w=!1,T&&(T=!1,x($),$=-1),y=!0;var Z=v;try{for(C(Y),g=n(c);g!==null&&(!(g.expirationTime>Y)||B&&!H());){var fe=g.callback;if(typeof fe=="function"){g.callback=null,v=g.priorityLevel;var K=fe(g.expirationTime<=Y);Y=t.unstable_now(),typeof K=="function"?g.callback=K:g===n(c)&&r(c),C(Y)}else r(c);g=n(c)}if(g!==null)var N=!0;else{var ie=n(f);ie!==null&&U(A,ie.startTime-Y),N=!1}return N}finally{g=null,v=Z,y=!1}}var k=!1,R=null,$=-1,j=5,W=-1;function H(){return!(t.unstable_now()-W<j)}function V(){if(R!==null){var B=t.unstable_now();W=B;var Y=!0;try{Y=R(!0,B)}finally{Y?F():(k=!1,R=null)}}else k=!1}var F;if(typeof b=="function")F=function(){b(V)};else if(typeof MessageChannel<"u"){var z=new MessageChannel,M=z.port2;z.port1.onmessage=V,F=function(){M.postMessage(null)}}else F=function(){E(V,0)};function q(B){R=B,k||(k=!0,F())}function U(B,Y){$=E(function(){B(t.unstable_now())},Y)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(B){B.callback=null},t.unstable_continueExecution=function(){w||y||(w=!0,q(O))},t.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):j=0<B?Math.floor(1e3/B):5},t.unstable_getCurrentPriorityLevel=function(){return v},t.unstable_getFirstCallbackNode=function(){return n(c)},t.unstable_next=function(B){switch(v){case 1:case 2:case 3:var Y=3;break;default:Y=v}var Z=v;v=Y;try{return B()}finally{v=Z}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(B,Y){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var Z=v;v=B;try{return Y()}finally{v=Z}},t.unstable_scheduleCallback=function(B,Y,Z){var fe=t.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?fe+Z:fe):Z=fe,B){case 1:var K=-1;break;case 2:K=250;break;case 5:K=1073741823;break;case 4:K=1e4;break;default:K=5e3}return K=Z+K,B={id:d++,callback:Y,priorityLevel:B,startTime:Z,expirationTime:K,sortIndex:-1},Z>fe?(B.sortIndex=Z,e(f,B),n(c)===null&&B===n(f)&&(T?(x($),$=-1):T=!0,U(A,Z-fe))):(B.sortIndex=K,e(c,B),w||y||(w=!0,q(O))),B},t.unstable_shouldYield=H,t.unstable_wrapCallback=function(B){var Y=v;return function(){var Z=v;v=Y;try{return B.apply(this,arguments)}finally{v=Z}}}})(IP);OP.exports=IP;var OH=OP.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 PP=I,Ur=OH;function we(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var RP=new Set,Qf={};function gl(t,e){Lu(t,e),Lu(t+"Capture",e)}function Lu(t,e){for(Qf[t]=e,t=0;t<e.length;t++)RP.add(e[t])}var qs=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),tb=Object.prototype.hasOwnProperty,IH=/^[: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]*$/,m_={},v_={};function PH(t){return tb.call(v_,t)?!0:tb.call(m_,t)?!1:IH.test(t)?v_[t]=!0:(m_[t]=!0,!1)}function RH(t,e,n,r){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function MH(t,e,n,r){if(e===null||typeof e>"u"||RH(t,e,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function hr(t,e,n,r,i,s,a){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=s,this.removeEmptyString=a}var zn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){zn[t]=new hr(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];zn[e]=new hr(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){zn[t]=new hr(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){zn[t]=new hr(t,2,!1,t,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(t){zn[t]=new hr(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){zn[t]=new hr(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){zn[t]=new hr(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){zn[t]=new hr(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){zn[t]=new hr(t,5,!1,t.toLowerCase(),null,!1,!1)});var hS=/[\-:]([a-z])/g;function gS(t){return t[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
33-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(t){var e=t.replace(hS,gS);zn[e]=new hr(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(hS,gS);zn[e]=new hr(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(hS,gS);zn[e]=new hr(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){zn[t]=new hr(t,1,!1,t.toLowerCase(),null,!1,!1)});zn.xlinkHref=new hr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){zn[t]=new hr(t,1,!1,t.toLowerCase(),null,!0,!0)});function mS(t,e,n,r){var i=zn.hasOwnProperty(e)?zn[e]:null;(i!==null?i.type!==0:r||!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N")&&(MH(e,n,i,r)&&(n=null),r||i===null?PH(e)&&(n===null?t.removeAttribute(e):t.setAttribute(e,""+n)):i.mustUseProperty?t[i.propertyName]=n===null?i.type===3?!1:"":n:(e=i.attributeName,r=i.attributeNamespace,n===null?t.removeAttribute(e):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?t.setAttributeNS(r,e,n):t.setAttribute(e,n))))}var oo=PP.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,$p=Symbol.for("react.element"),iu=Symbol.for("react.portal"),su=Symbol.for("react.fragment"),vS=Symbol.for("react.strict_mode"),nb=Symbol.for("react.profiler"),MP=Symbol.for("react.provider"),DP=Symbol.for("react.context"),yS=Symbol.for("react.forward_ref"),rb=Symbol.for("react.suspense"),ib=Symbol.for("react.suspense_list"),wS=Symbol.for("react.memo"),Oo=Symbol.for("react.lazy"),NP=Symbol.for("react.offscreen"),y_=Symbol.iterator;function rf(t){return t===null||typeof t!="object"?null:(t=y_&&t[y_]||t["@@iterator"],typeof t=="function"?t:null)}var Zt=Object.assign,gw;function _f(t){if(gw===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);gw=e&&e[1]||""}return`
34`+gw+t}var mw=!1;function vw(t,e){if(!t||mw)return"";mw=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(e,[])}catch(f){var r=f}Reflect.construct(t,[],e)}else{try{e.call()}catch(f){r=f}t.call(e.prototype)}else{try{throw Error()}catch(f){r=f}t()}}catch(f){if(f&&r&&typeof f.stack=="string"){for(var i=f.stack.split(`
35`),s=r.stack.split(`
36`),a=i.length-1,l=s.length-1;1<=a&&0<=l&&i[a]!==s[l];)l--;for(;1<=a&&0<=l;a--,l--)if(i[a]!==s[l]){if(a!==1||l!==1)do if(a--,l--,0>l||i[a]!==s[l]){var c=`
37`+i[a].replace(" at new "," at ");return t.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",t.displayName)),c}while(1<=a&&0<=l);break}}}finally{mw=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?_f(t):""}function DH(t){switch(t.tag){case 5:return _f(t.type);case 16:return _f("Lazy");case 13:return _f("Suspense");case 19:return _f("SuspenseList");case 0:case 2:case 15:return t=vw(t.type,!1),t;case 11:return t=vw(t.type.render,!1),t;case 1:return t=vw(t.type,!0),t;default:return""}}function sb(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case su:return"Fragment";case iu:return"Portal";case nb:return"Profiler";case vS:return"StrictMode";case rb:return"Suspense";case ib:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case DP:return(t.displayName||"Context")+".Consumer";case MP:return(t._context.displayName||"Context")+".Provider";case yS:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case wS:return e=t.displayName||null,e!==null?e:sb(t.type)||"Memo";case Oo:e=t._payload,t=t._init;try{return sb(t(e))}catch{}}return null}function NH(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return sb(e);case 8:return e===vS?"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 e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Xo(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function $P(t){var e=t.type;
vendor: 12,262 bytes, line 37
37return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function $H(t){var e=$P(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,s.call(this,a)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Fp(t){t._valueTracker||(t._valueTracker=$H(t))}function FP(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=$P(t)?t.checked?"true":"false":t.value),t=r,t!==n?(e.setValue(t),!0):!1}function ig(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function ob(t,e){var n=e.checked;return Zt({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function w_(t,e){var n=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;n=Xo(e.value!=null?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function zP(t,e){e=e.checked,e!=null&&mS(t,"checked",e,!1)}function ab(t,e){zP(t,e);var n=Xo(e.value),r=e.type;if(n!=null)r==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(r==="submit"||r==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?lb(t,e.type,n):e.hasOwnProperty("defaultValue")&&lb(t,e.type,Xo(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function b_(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!(r!=="submit"&&r!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function lb(t,e,n){(e!=="number"||ig(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var Af=Array.isArray;function wu(t,e,n,r){if(t=t.options,e){e={};for(var i=0;i<n.length;i++)e["$"+n[i]]=!0;for(n=0;n<t.length;n++)i=e.hasOwnProperty("$"+t[n].value),t[n].selected!==i&&(t[n].selected=i),i&&r&&(t[n].defaultSelected=!0)}else{for(n=""+Xo(n),e=null,i=0;i<t.length;i++){if(t[i].value===n){t[i].selected=!0,r&&(t[i].defaultSelected=!0);return}e!==null||t[i].disabled||(e=t[i])}e!==null&&(e.selected=!0)}}function ub(t,e){if(e.dangerouslySetInnerHTML!=null)throw Error(we(91));return Zt({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function x_(t,e){var n=e.value;if(n==null){if(n=e.children,e=e.defaultValue,n!=null){if(e!=null)throw Error(we(92));if(Af(n)){if(1<n.length)throw Error(we(93));n=n[0]}e=n}e==null&&(e=""),n=e}t._wrapperState={initialValue:Xo(n)}}function BP(t,e){var n=Xo(e.value),r=Xo(e.defaultValue);n!=null&&(n=""+n,n!==t.value&&(t.value=n),e.defaultValue==null&&t.defaultValue!==n&&(t.defaultValue=n)),r!=null&&(t.defaultValue=""+r)}function S_(t){var e=t.textContent;e===t._wrapperState.initialValue&&e!==""&&e!==null&&(t.value=e)}function jP(t){switch(t){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 cb(t,e){return t==null||t==="http://www.w3.org/1999/xhtml"?jP(e):t==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var zp,UP=function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,n,r,i){MSApp.execUnsafeLocalFunction(function(){return t(e,n,r,i)})}:t}(function(t,e){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=e;else{for(zp=zp||document.createElement("div"),zp.innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=zp.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function Jf(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Df={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},FH=["Webkit","ms","Moz","O"];Object.keys(Df).forEach(function(t){FH.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Df[e]=Df[t]})});function HP(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||Df.hasOwnProperty(t)&&Df[t]?(""+e).trim():e+"px"}function WP(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=HP(n,e[n],r);n==="float"&&(n="cssFloat"),r?t.setProperty(n,i):t[n]=i}}var zH=Zt({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 fb(t,e){if(e){if(zH[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(we(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(we(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(we(61))}if(e.style!=null&&typeof e.style!="object")throw Error(we(62))}}function db(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){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 pb=null;function bS(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var hb=null,bu=null,xu=null;function E_(t){if(t=Pd(t)){if(typeof hb!="function")throw Error(we(280));var e=t.stateNode;e&&(e=Om(e),hb(t.stateNode,t.type,e))}}function VP(t){bu?xu?xu.push(t):xu=[t]:bu=t}function KP(){if(bu){var t=bu,e=xu;if(xu=bu=null,E_(t),e)for(t=0;t<e.length;t++)E_(e[t])}}function qP(t,e){return t(e)}function GP(){}var yw=!1;function YP(t,e,n){if(yw)return t(e,n);yw=!0;try{return qP(t,e,n)}finally{yw=!1,(bu!==null||xu!==null)&&(GP(),KP())}}function Zf(t,e){var n=t.stateNode;if(n===null)return null;var r=Om(n);if(r===null)return null;n=r[e];e:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(t=t.type,r=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!r;break e;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(we(231,e,typeof n));return n}var gb=!1;if(qs)try{var sf={};Object.defineProperty(sf,"passive",{get:function(){gb=!0}}),window.addEventListener("test",sf,sf),window.removeEventListener("test",sf,sf)}catch{gb=!1}function BH(t,e,n,r,i,s,a,l,c){var f=Array.prototype.slice.call(arguments,3);try{e.apply(n,f)}catch(d){this.onError(d)}}var Nf=!1,sg=null,og=!1,mb=null,jH={onError:function(t){Nf=!0,sg=t}};function UH(t,e,n,r,i,s,a,l,c){Nf=!1,sg=null,BH.apply(jH,arguments)}function HH(t,e,n,r,i,s,a,l,c){if(UH.apply(this,arguments),Nf){if(Nf){var f=sg;Nf=!1,sg=null}else throw Error(we(198));og||(og=!0,mb=f)}}function ml(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,e.flags&4098&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function XP(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function C_(t){if(ml(t)!==t)throw Error(we(188))}function WH(t){var e=t.alternate;if(!e){if(e=ml(t),e===null)throw Error(we(188));return e!==t?null:t}for(var n=t,r=e;;){var i=n.return;if(i===null)break;var s=i.alternate;if(s===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return C_(i),t;if(s===r)return C_(i),e;s=s.sibling}throw Error(we(188))}if(n.return!==r.return)n=i,r=s;else{for(var a=!1,l=i.child;l;){if(l===n){a=!0,n=i,r=s;break}if(l===r){a=!0,r=i,n=s;break}l=l.sibling}if(!a){for(l=s.child;l;){if(l===n){a=!0,n=s,r=i;break}if(l===r){a=!0,r=s,n=i;break}l=l.sibling}if(!a)throw Error(we(189))}}if(n.alternate!==r)throw Error(we(190))}if(n.tag!==3)throw Error(we(188));return n.stateNode.current===n?t:e}function QP(t){return t=WH(t),t!==null?JP(t):null}function JP(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var e=JP(t);if(e!==null)return e;t=t.sibling}return null}var ZP=Ur.unstable_scheduleCallback,T_=Ur.unstable_cancelCallback,VH=Ur.unstable_shouldYield,KH=Ur.unstable_requestPaint,dn=Ur.unstable_now,qH=Ur.unstable_getCurrentPriorityLevel,xS=Ur.unstable_ImmediatePriority,eR=Ur.unstable_UserBlockingPriority,ag=Ur.unstable_NormalPriority,GH=Ur.unstable_LowPriority,tR=Ur.unstable_IdlePriority,_m=null,ms=null;function YH(t){if(ms&&typeof ms.onCommitFiberRoot=="function")try{ms.onCommitFiberRoot(_m,t,void 0,(t.current.flags&128)===128)}catch{}}var zi=Math.clz32?Math.clz32:JH,XH=Math.log,QH=Math.LN2;function JH(t){return t>>>=0,t===0?32:31-(XH(t)/QH|0)|0}var Bp=64,jp=4194304;function kf(t){switch(t&-t){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 t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function lg(t,e){var n=t.pendingLanes;if(n===0)return 0;var r=0,i=t.suspendedLanes,s=t.pingedLanes,a=n&268435455;if(a!==0){var l=a&~i;l!==0?r=kf(l):(s&=a,s!==0&&(r=kf(s)))}else a=n&~i,a!==0?r=kf(a):s!==0&&(r=kf(s));if(r===0)return 0;if(e!==0&&e!==r&&!(e&i)&&(i=r&-r,s=e&-e,i>=s||i===16&&(s&4194240)!==0))return e;if(r&4&&(r|=n&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=r;0<e;)n=31-zi(e),i=1<<n,r|=t[n],e&=~i;return r}function ZH(t,e){switch(t){case 1:case 2:case 4:return e+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 e+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 e3(t,e){for(var n=t.suspendedLanes,r=t.pingedLanes,i=t.expirationTimes,s=t.pendingLanes;0<s;){var a=31-zi(s),l=1<<a,c=i[a];c===-1?(!(l&n)||l&r)&&(i[a]=ZH(l,e)):c<=e&&(t.expiredLanes|=l),s&=~l}}function vb(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function nR(){var t=Bp;return Bp<<=1,!(Bp&4194240)&&(Bp=64),t}function ww(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Od(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-zi(e),t[e]=n}function t3(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var r=t.eventTimes;for(t=t.expirationTimes;0<n;){var i=31-zi(n),s=1<<i;e[i]=0,r[i]=-1,t[i]=-1,n&=~s}}function SS(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var r=31-zi(n),i=1<<r;i&e|t[r]&e&&(t[r]|=e),n&=~i}}var Ct=0;function rR(t){return t&=-t,1<t?4<t?t&268435455?16:536870912:4:1}
vendor: 5,042 bytes, line 37
37var iR,ES,sR,oR,aR,yb=!1,Up=[],jo=null,Uo=null,Ho=null,ed=new Map,td=new Map,Ro=[],n3="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function __(t,e){switch(t){case"focusin":case"focusout":jo=null;break;case"dragenter":case"dragleave":Uo=null;break;case"mouseover":case"mouseout":Ho=null;break;case"pointerover":case"pointerout":ed.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":td.delete(e.pointerId)}}function of(t,e,n,r,i,s){return t===null||t.nativeEvent!==s?(t={blockedOn:e,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[i]},e!==null&&(e=Pd(e),e!==null&&ES(e)),t):(t.eventSystemFlags|=r,e=t.targetContainers,i!==null&&e.indexOf(i)===-1&&e.push(i),t)}function r3(t,e,n,r,i){switch(e){case"focusin":return jo=of(jo,t,e,n,r,i),!0;case"dragenter":return Uo=of(Uo,t,e,n,r,i),!0;case"mouseover":return Ho=of(Ho,t,e,n,r,i),!0;case"pointerover":var s=i.pointerId;return ed.set(s,of(ed.get(s)||null,t,e,n,r,i)),!0;case"gotpointercapture":return s=i.pointerId,td.set(s,of(td.get(s)||null,t,e,n,r,i)),!0}return!1}function lR(t){var e=Da(t.target);if(e!==null){var n=ml(e);if(n!==null){if(e=n.tag,e===13){if(e=XP(n),e!==null){t.blockedOn=e,aR(t.priority,function(){sR(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Th(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=wb(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(n===null){n=t.nativeEvent;var r=new n.constructor(n.type,n);pb=r,n.target.dispatchEvent(r),pb=null}else return e=Pd(n),e!==null&&ES(e),t.blockedOn=n,!1;e.shift()}return!0}function A_(t,e,n){Th(t)&&n.delete(e)}function i3(){yb=!1,jo!==null&&Th(jo)&&(jo=null),Uo!==null&&Th(Uo)&&(Uo=null),Ho!==null&&Th(Ho)&&(Ho=null),ed.forEach(A_),td.forEach(A_)}function af(t,e){t.blockedOn===e&&(t.blockedOn=null,yb||(yb=!0,Ur.unstable_scheduleCallback(Ur.unstable_NormalPriority,i3)))}function nd(t){function e(i){return af(i,t)}if(0<Up.length){af(Up[0],t);for(var n=1;n<Up.length;n++){var r=Up[n];r.blockedOn===t&&(r.blockedOn=null)}}for(jo!==null&&af(jo,t),Uo!==null&&af(Uo,t),Ho!==null&&af(Ho,t),ed.forEach(e),td.forEach(e),n=0;n<Ro.length;n++)r=Ro[n],r.blockedOn===t&&(r.blockedOn=null);for(;0<Ro.length&&(n=Ro[0],n.blockedOn===null);)lR(n),n.blockedOn===null&&Ro.shift()}var Su=oo.ReactCurrentBatchConfig,ug=!0;function s3(t,e,n,r){var i=Ct,s=Su.transition;Su.transition=null;try{Ct=1,CS(t,e,n,r)}finally{Ct=i,Su.transition=s}}function o3(t,e,n,r){var i=Ct,s=Su.transition;Su.transition=null;try{Ct=4,CS(t,e,n,r)}finally{Ct=i,Su.transition=s}}function CS(t,e,n,r){if(ug){var i=wb(t,e,n,r);if(i===null)Lw(t,e,r,cg,n),__(t,r);else if(r3(i,t,e,n,r))r.stopPropagation();else if(__(t,r),e&4&&-1<n3.indexOf(t)){for(;i!==null;){var s=Pd(i);if(s!==null&&iR(s),s=wb(t,e,n,r),s===null&&Lw(t,e,r,cg,n),s===i)break;i=s}i!==null&&r.stopPropagation()}else Lw(t,e,r,null,n)}}var cg=null;function wb(t,e,n,r){if(cg=null,t=bS(r),t=Da(t),t!==null)if(e=ml(t),e===null)t=null;else if(n=e.tag,n===13){if(t=XP(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null);return cg=t,null}function uR(t){switch(t){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(qH()){case xS:return 1;case eR:return 4;case ag:case GH:return 16;case tR:return 536870912;default:return 16}default:return 16}}var No=null,TS=null,_h=null;function cR(){if(_h)return _h;var t,e=TS,n=e.length,r,i="value"in No?No.value:No.textContent,s=i.length;for(t=0;t<n&&e[t]===i[t];t++);var a=n-t;for(r=1;r<=a&&e[n-r]===i[s-r];r++);return _h=i.slice(t,1<r?1-r:void 0)}function Ah(t){var e=t.keyCode;
vendor: 6,308 bytes, line 37
37return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Hp(){return!0}function k_(){return!1}function Xr(t){function e(n,r,i,s,a){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=s,this.target=a,this.currentTarget=null;for(var l in t)t.hasOwnProperty(l)&&(n=t[l],this[l]=n?n(s):s[l]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Hp:k_,this.isPropagationStopped=k_,this}return Zt(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Hp)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Hp)},persist:function(){},isPersistent:Hp}),e}var Xu={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},_S=Xr(Xu),Id=Zt({},Xu,{view:0,detail:0}),a3=Xr(Id),bw,xw,lf,Am=Zt({},Id,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:AS,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==lf&&(lf&&t.type==="mousemove"?(bw=t.screenX-lf.screenX,xw=t.screenY-lf.screenY):xw=bw=0,lf=t),bw)},movementY:function(t){return"movementY"in t?t.movementY:xw}}),L_=Xr(Am),l3=Zt({},Am,{dataTransfer:0}),u3=Xr(l3),c3=Zt({},Id,{relatedTarget:0}),Sw=Xr(c3),f3=Zt({},Xu,{animationName:0,elapsedTime:0,pseudoElement:0}),d3=Xr(f3),p3=Zt({},Xu,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),h3=Xr(p3),g3=Zt({},Xu,{data:0}),O_=Xr(g3),m3={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},v3={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"},y3={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function w3(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=y3[t])?!!e[t]:!1}function AS(){return w3}var b3=Zt({},Id,{key:function(t){if(t.key){var e=m3[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Ah(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?v3[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:AS,charCode:function(t){return t.type==="keypress"?Ah(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Ah(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),x3=Xr(b3),S3=Zt({},Am,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),I_=Xr(S3),E3=Zt({},Id,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:AS}),C3=Xr(E3),T3=Zt({},Xu,{propertyName:0,elapsedTime:0,pseudoElement:0}),_3=Xr(T3),A3=Zt({},Am,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),k3=Xr(A3),L3=[9,13,27,32],kS=qs&&"CompositionEvent"in window,$f=null;qs&&"documentMode"in document&&($f=document.documentMode);var O3=qs&&"TextEvent"in window&&!$f,fR=qs&&(!kS||$f&&8<$f&&11>=$f),P_=" ",R_=!1;function dR(t,e){switch(t){case"keyup":return L3.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function pR(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var ou=!1;function I3(t,e){switch(t){case"compositionend":return pR(e);case"keypress":return e.which!==32?null:(R_=!0,P_);case"textInput":return t=e.data,t===P_&&R_?null:t;default:return null}}function P3(t,e){if(ou)return t==="compositionend"||!kS&&dR(t,e)?(t=cR(),_h=TS=No=null,ou=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return fR&&e.locale!=="ko"?null:e.data;default:return null}}var R3={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 M_(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!R3[t.type]:e==="textarea"}function hR(t,e,n,r){VP(r),e=fg(e,"onChange"),0<e.length&&(n=new _S("onChange","change",null,n,r),t.push({event:n,listeners:e}))}var Ff=null,rd=null;function M3(t){TR(t,0)}function km(t){var e=uu(t);if(FP(e))return t}function D3(t,e){if(t==="change")return e}var gR=!1;if(qs){var Ew;if(qs){var Cw="oninput"in document;if(!Cw){var D_=document.createElement("div");D_.setAttribute("oninput","return;"),Cw=typeof D_.oninput=="function"}Ew=Cw}else Ew=!1;gR=Ew&&(!document.documentMode||9<document.documentMode)}function N_(){Ff&&(Ff.detachEvent("onpropertychange",mR),rd=Ff=null)}function mR(t){if(t.propertyName==="value"&&km(rd)){var e=[];hR(e,rd,t,bS(t)),YP(M3,e)}}function N3(t,e,n){t==="focusin"?(N_(),Ff=e,rd=n,Ff.attachEvent("onpropertychange",mR)):t==="focusout"&&N_()}function $3(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return km(rd)}function F3(t,e){if(t==="click")return km(e)}function z3(t,e){if(t==="input"||t==="change")return km(e)}function B3(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Ui=typeof Object.is=="function"?Object.is:B3;function id(t,e){if(Ui(t,e))return!0;
vendor: 4,808 bytes, line 37
37if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!tb.call(e,i)||!Ui(t[i],e[i]))return!1}return!0}function $_(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function F_(t,e){var n=$_(t);t=0;for(var r;n;){if(n.nodeType===3){if(r=t+n.textContent.length,t<=e&&r>=e)return{node:n,offset:e-t};t=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=$_(n)}}function vR(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?vR(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function yR(){for(var t=window,e=ig();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=ig(t.document)}return e}function LS(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function j3(t){var e=yR(),n=t.focusedElem,r=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&vR(n.ownerDocument.documentElement,n)){if(r!==null&&LS(n)){if(e=r.start,t=r.end,t===void 0&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if(t=(e=n.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!t.extend&&s>r&&(i=r,r=s,s=i),i=F_(n,s);var a=F_(n,r);i&&a&&(t.rangeCount!==1||t.anchorNode!==i.node||t.anchorOffset!==i.offset||t.focusNode!==a.node||t.focusOffset!==a.offset)&&(e=e.createRange(),e.setStart(i.node,i.offset),t.removeAllRanges(),s>r?(t.addRange(e),t.extend(a.node,a.offset)):(e.setEnd(a.node,a.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<e.length;n++)t=e[n],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var U3=qs&&"documentMode"in document&&11>=document.documentMode,au=null,bb=null,zf=null,xb=!1;function z_(t,e,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;xb||au==null||au!==ig(r)||(r=au,"selectionStart"in r&&LS(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),zf&&id(zf,r)||(zf=r,r=fg(bb,"onSelect"),0<r.length&&(e=new _S("onSelect","select",null,e,n),t.push({event:e,listeners:r}),e.target=au)))}function Wp(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var lu={animationend:Wp("Animation","AnimationEnd"),animationiteration:Wp("Animation","AnimationIteration"),animationstart:Wp("Animation","AnimationStart"),transitionend:Wp("Transition","TransitionEnd")},Tw={},wR={};qs&&(wR=document.createElement("div").style,"AnimationEvent"in window||(delete lu.animationend.animation,delete lu.animationiteration.animation,delete lu.animationstart.animation),"TransitionEvent"in window||delete lu.transitionend.transition);function Lm(t){if(Tw[t])return Tw[t];if(!lu[t])return t;var e=lu[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in wR)return Tw[t]=e[n];return t}var bR=Lm("animationend"),xR=Lm("animationiteration"),SR=Lm("animationstart"),ER=Lm("transitionend"),CR=new Map,B_="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 sa(t,e){CR.set(t,e),gl(e,[t])}for(var _w=0;_w<B_.length;_w++){var Aw=B_[_w],H3=Aw.toLowerCase(),W3=Aw[0].toUpperCase()+Aw.slice(1);sa(H3,"on"+W3)}sa(bR,"onAnimationEnd");sa(xR,"onAnimationIteration");sa(SR,"onAnimationStart");sa("dblclick","onDoubleClick");sa("focusin","onFocus");sa("focusout","onBlur");sa(ER,"onTransitionEnd");Lu("onMouseEnter",["mouseout","mouseover"]);Lu("onMouseLeave",["mouseout","mouseover"]);Lu("onPointerEnter",["pointerout","pointerover"]);Lu("onPointerLeave",["pointerout","pointerover"]);gl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));
vendor: 4,383 bytes, line 37
37gl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));gl("onBeforeInput",["compositionend","keypress","textInput","paste"]);gl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));gl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));gl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Lf="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(" "),V3=new Set("cancel close invalid load scroll toggle".split(" ").concat(Lf));function j_(t,e,n){var r=t.type||"unknown-event";t.currentTarget=n,HH(r,e,void 0,t),t.currentTarget=null}function TR(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var r=t[n],i=r.event;r=r.listeners;e:{var s=void 0;if(e)for(var a=r.length-1;0<=a;a--){var l=r[a],c=l.instance,f=l.currentTarget;if(l=l.listener,c!==s&&i.isPropagationStopped())break e;j_(i,l,f),s=c}else for(a=0;a<r.length;a++){if(l=r[a],c=l.instance,f=l.currentTarget,l=l.listener,c!==s&&i.isPropagationStopped())break e;j_(i,l,f),s=c}}}if(og)throw t=mb,og=!1,mb=null,t}function Ft(t,e){var n=e[_b];n===void 0&&(n=e[_b]=new Set);var r=t+"__bubble";n.has(r)||(_R(e,t,2,!1),n.add(r))}function kw(t,e,n){var r=0;e&&(r|=4),_R(n,t,r,e)}var Vp="_reactListening"+Math.random().toString(36).slice(2);function sd(t){if(!t[Vp]){t[Vp]=!0,RP.forEach(function(n){n!=="selectionchange"&&(V3.has(n)||kw(n,!1,t),kw(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Vp]||(e[Vp]=!0,kw("selectionchange",!1,e))}}function _R(t,e,n,r){switch(uR(e)){case 1:var i=s3;break;case 4:i=o3;break;default:i=CS}n=i.bind(null,e,n,t),i=void 0,!gb||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(i=!0),r?i!==void 0?t.addEventListener(e,n,{capture:!0,passive:i}):t.addEventListener(e,n,!0):i!==void 0?t.addEventListener(e,n,{passive:i}):t.addEventListener(e,n,!1)}function Lw(t,e,n,r,i){var s=r;if(!(e&1)&&!(e&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var l=r.stateNode.containerInfo;if(l===i||l.nodeType===8&&l.parentNode===i)break;if(a===4)for(a=r.return;a!==null;){var c=a.tag;if((c===3||c===4)&&(c=a.stateNode.containerInfo,c===i||c.nodeType===8&&c.parentNode===i))return;a=a.return}for(;l!==null;){if(a=Da(l),a===null)return;if(c=a.tag,c===5||c===6){r=s=a;continue e}l=l.parentNode}}r=r.return}YP(function(){var f=s,d=bS(n),g=[];e:{var v=CR.get(t);if(v!==void 0){var y=_S,w=t;switch(t){case"keypress":if(Ah(n)===0)break e;case"keydown":case"keyup":y=x3;break;case"focusin":w="focus",y=Sw;break;case"focusout":w="blur",y=Sw;break;case"beforeblur":case"afterblur":y=Sw;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":y=L_;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=u3;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=C3;break;case bR:case xR:case SR:y=d3;break;case ER:y=_3;break;case"scroll":y=a3;break;case"wheel":y=k3;break;case"copy":case"cut":case"paste":y=h3;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=I_}var T=(e&4)!==0,E=!T&&t==="scroll",x=T?v!==null?v+"Capture":null:v;T=[];for(var b=f,C;b!==null;){C=b;var A=C.stateNode;if(C.tag===5&&A!==null&&(C=A,x!==null&&(A=Zf(b,x),A!=null&&T.push(od(b,A,C)))),E)break;b=b.return}0<T.length&&(v=new y(v,w,null,n,d),g.push({event:v,listeners:T}))}}if(!(e&7)){e:{if(v=t==="mouseover"||t==="pointerover",y=t==="mouseout"||t==="pointerout",v&&n!==pb&&(w=n.relatedTarget||n.fromElement)&&(Da(w)||w[Gs]))break e;if((y||v)&&(v=d.window===d?d:(v=d.ownerDocument)?v.defaultView||v.parentWindow:window,y?(w=n.relatedTarget||n.toElement,y=f,w=w?Da(w):null,w!==null&&(E=ml(w),w!==E||w.tag!==5&&w.tag!==6)&&(w=null)):(y=null,w=f),y!==w)){if(T=L_,A="onMouseLeave",x="onMouseEnter",b="mouse",(t==="pointerout"||t==="pointerover")&&(T=I_,A="onPointerLeave",x="onPointerEnter",b="pointer"),E=y==null?v:uu(y),C=w==null?v:uu(w),v=new T(A,b+"leave",
vendor: 4,402 bytes, lines 37-38
37y,n,d),v.target=E,v.relatedTarget=C,A=null,Da(d)===f&&(T=new T(x,b+"enter",w,n,d),T.target=C,T.relatedTarget=E,A=T),E=A,y&&w)t:{for(T=y,x=w,b=0,C=T;C;C=Wl(C))b++;for(C=0,A=x;A;A=Wl(A))C++;for(;0<b-C;)T=Wl(T),b--;for(;0<C-b;)x=Wl(x),C--;for(;b--;){if(T===x||x!==null&&T===x.alternate)break t;T=Wl(T),x=Wl(x)}T=null}else T=null;y!==null&&U_(g,v,y,T,!1),w!==null&&E!==null&&U_(g,E,w,T,!0)}}e:{if(v=f?uu(f):window,y=v.nodeName&&v.nodeName.toLowerCase(),y==="select"||y==="input"&&v.type==="file")var O=D3;else if(M_(v))if(gR)O=z3;else{O=$3;var k=N3}else(y=v.nodeName)&&y.toLowerCase()==="input"&&(v.type==="checkbox"||v.type==="radio")&&(O=F3);if(O&&(O=O(t,f))){hR(g,O,n,d);break e}k&&k(t,v,f),t==="focusout"&&(k=v._wrapperState)&&k.controlled&&v.type==="number"&&lb(v,"number",v.value)}switch(k=f?uu(f):window,t){case"focusin":(M_(k)||k.contentEditable==="true")&&(au=k,bb=f,zf=null);break;case"focusout":zf=bb=au=null;break;case"mousedown":xb=!0;break;case"contextmenu":case"mouseup":case"dragend":xb=!1,z_(g,n,d);break;case"selectionchange":if(U3)break;case"keydown":case"keyup":z_(g,n,d)}var R;if(kS)e:{switch(t){case"compositionstart":var $="onCompositionStart";break e;case"compositionend":$="onCompositionEnd";break e;case"compositionupdate":$="onCompositionUpdate";break e}$=void 0}else ou?dR(t,n)&&($="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&($="onCompositionStart");$&&(fR&&n.locale!=="ko"&&(ou||$!=="onCompositionStart"?$==="onCompositionEnd"&&ou&&(R=cR()):(No=d,TS="value"in No?No.value:No.textContent,ou=!0)),k=fg(f,$),0<k.length&&($=new O_($,t,null,n,d),g.push({event:$,listeners:k}),R?$.data=R:(R=pR(n),R!==null&&($.data=R)))),(R=O3?I3(t,n):P3(t,n))&&(f=fg(f,"onBeforeInput"),0<f.length&&(d=new O_("onBeforeInput","beforeinput",null,n,d),g.push({event:d,listeners:f}),d.data=R))}TR(g,e)})}function od(t,e,n){return{instance:t,listener:e,currentTarget:n}}function fg(t,e){for(var n=e+"Capture",r=[];t!==null;){var i=t,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=Zf(t,n),s!=null&&r.unshift(od(t,s,i)),s=Zf(t,e),s!=null&&r.push(od(t,s,i))),t=t.return}return r}function Wl(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function U_(t,e,n,r,i){for(var s=e._reactName,a=[];n!==null&&n!==r;){var l=n,c=l.alternate,f=l.stateNode;if(c!==null&&c===r)break;l.tag===5&&f!==null&&(l=f,i?(c=Zf(n,s),c!=null&&a.unshift(od(n,c,l))):i||(c=Zf(n,s),c!=null&&a.push(od(n,c,l)))),n=n.return}a.length!==0&&t.push({event:e,listeners:a})}var K3=/\r\n?/g,q3=/\u0000|\uFFFD/g;function H_(t){return(typeof t=="string"?t:""+t).replace(K3,`
38`).replace(q3,"")}function Kp(t,e,n){if(e=H_(e),H_(t)!==e&&n)throw Error(we(425))}function dg(){}var Sb=null,Eb=null;function Cb(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Tb=typeof setTimeout=="function"?setTimeout:void 0,G3=typeof clearTimeout=="function"?clearTimeout:void 0,W_=typeof Promise=="function"?Promise:void 0,Y3=typeof queueMicrotask=="function"?queueMicrotask:typeof W_<"u"?function(t){return W_.resolve(null).then(t).catch(X3)}:Tb;function X3(t){setTimeout(function(){throw t})}function Ow(t,e){var n=e,r=0;do{var i=n.nextSibling;if(t.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){t.removeChild(i),nd(e);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);nd(e)}function Wo(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?")break;if(e==="/$")return null}}return t}function V_(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"){if(e===0)return t;e--}else n==="/$"&&e++}t=t.previousSibling}return null}var Qu=Math.random().toString(36).slice(2),ds="__reactFiber$"+Qu,ad="__reactProps$"+Qu,Gs="__reactContainer$"+Qu,_b="__reactEvents$"+Qu,Q3="__reactListeners$"+Qu,J3="__reactHandles$"+Qu;function Da(t){var e=t[ds];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Gs]||n[ds]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=V_(t);t!==null;){if(n=t[ds])return n;t=V_(t)}return e}t=n,n=t.parentNode}return null}function Pd(t){return t=t[ds]||t[Gs],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function uu(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(we(33))}
vendor: 7,567 bytes, line 38
38function Om(t){return t[ad]||null}var Ab=[],cu=-1;function oa(t){return{current:t}}function Ut(t){0>cu||(t.current=Ab[cu],Ab[cu]=null,cu--)}function Nt(t,e){cu++,Ab[cu]=t.current,t.current=e}var Qo={},Jn=oa(Qo),xr=oa(!1),el=Qo;function Ou(t,e){var n=t.type.contextTypes;if(!n)return Qo;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=e[s];return r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=i),i}function Sr(t){return t=t.childContextTypes,t!=null}function pg(){Ut(xr),Ut(Jn)}function K_(t,e,n){if(Jn.current!==Qo)throw Error(we(168));Nt(Jn,e),Nt(xr,n)}function AR(t,e,n){var r=t.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in e))throw Error(we(108,NH(t)||"Unknown",i));return Zt({},n,r)}function hg(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Qo,el=Jn.current,Nt(Jn,t),Nt(xr,xr.current),!0}function q_(t,e,n){var r=t.stateNode;if(!r)throw Error(we(169));n?(t=AR(t,e,el),r.__reactInternalMemoizedMergedChildContext=t,Ut(xr),Ut(Jn),Nt(Jn,t)):Ut(xr),Nt(xr,n)}var Ns=null,Im=!1,Iw=!1;function kR(t){Ns===null?Ns=[t]:Ns.push(t)}function Z3(t){Im=!0,kR(t)}function aa(){if(!Iw&&Ns!==null){Iw=!0;var t=0,e=Ct;try{var n=Ns;for(Ct=1;t<n.length;t++){var r=n[t];do r=r(!0);while(r!==null)}Ns=null,Im=!1}catch(i){throw Ns!==null&&(Ns=Ns.slice(t+1)),ZP(xS,aa),i}finally{Ct=e,Iw=!1}}return null}var fu=[],du=0,gg=null,mg=0,oi=[],ai=0,tl=null,Bs=1,js="";function Oa(t,e){fu[du++]=mg,fu[du++]=gg,gg=t,mg=e}function LR(t,e,n){oi[ai++]=Bs,oi[ai++]=js,oi[ai++]=tl,tl=t;var r=Bs;t=js;var i=32-zi(r)-1;r&=~(1<<i),n+=1;var s=32-zi(e)+i;if(30<s){var a=i-i%5;s=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Bs=1<<32-zi(e)+i|n<<i|r,js=s+t}else Bs=1<<s|n<<i|r,js=t}function OS(t){t.return!==null&&(Oa(t,1),LR(t,1,0))}function IS(t){for(;t===gg;)gg=fu[--du],fu[du]=null,mg=fu[--du],fu[du]=null;for(;t===tl;)tl=oi[--ai],oi[ai]=null,js=oi[--ai],oi[ai]=null,Bs=oi[--ai],oi[ai]=null}var Br=null,Nr=null,Vt=!1,Di=null;function OR(t,e){var n=fi(5,null,null,0);n.elementType="DELETED",n.stateNode=e,n.return=t,e=t.deletions,e===null?(t.deletions=[n],t.flags|=16):e.push(n)}function G_(t,e){switch(t.tag){case 5:var n=t.type;return e=e.nodeType!==1||n.toLowerCase()!==e.nodeName.toLowerCase()?null:e,e!==null?(t.stateNode=e,Br=t,Nr=Wo(e.firstChild),!0):!1;case 6:return e=t.pendingProps===""||e.nodeType!==3?null:e,e!==null?(t.stateNode=e,Br=t,Nr=null,!0):!1;case 13:return e=e.nodeType!==8?null:e,e!==null?(n=tl!==null?{id:Bs,overflow:js}:null,t.memoizedState={dehydrated:e,treeContext:n,retryLane:1073741824},n=fi(18,null,null,0),n.stateNode=e,n.return=t,t.child=n,Br=t,Nr=null,!0):!1;default:return!1}}function kb(t){return(t.mode&1)!==0&&(t.flags&128)===0}function Lb(t){if(Vt){var e=Nr;if(e){var n=e;if(!G_(t,e)){if(kb(t))throw Error(we(418));e=Wo(n.nextSibling);var r=Br;e&&G_(t,e)?OR(r,n):(t.flags=t.flags&-4097|2,Vt=!1,Br=t)}}else{if(kb(t))throw Error(we(418));t.flags=t.flags&-4097|2,Vt=!1,Br=t}}}function Y_(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;Br=t}function qp(t){if(t!==Br)return!1;if(!Vt)return Y_(t),Vt=!0,!1;var e;if((e=t.tag!==3)&&!(e=t.tag!==5)&&(e=t.type,e=e!=="head"&&e!=="body"&&!Cb(t.type,t.memoizedProps)),e&&(e=Nr)){if(kb(t))throw IR(),Error(we(418));for(;e;)OR(t,e),e=Wo(e.nextSibling)}if(Y_(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(we(317));e:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"){if(e===0){Nr=Wo(t.nextSibling);break e}e--}else n!=="$"&&n!=="$!"&&n!=="$?"||e++}t=t.nextSibling}Nr=null}}else Nr=Br?Wo(t.stateNode.nextSibling):null;return!0}function IR(){for(var t=Nr;t;)t=Wo(t.nextSibling)}function Iu(){Nr=Br=null,Vt=!1}function PS(t){Di===null?Di=[t]:Di.push(t)}var eW=oo.ReactCurrentBatchConfig;function Pi(t,e){if(t&&t.defaultProps){e=Zt({},e),t=t.defaultProps;for(var n in t)e[n]===void 0&&(e[n]=t[n]);return e}return e}var vg=oa(null),yg=null,pu=null,RS=null;function MS(){RS=pu=yg=null}function DS(t){var e=vg.current;Ut(vg),t._currentValue=e}function Ob(t,e,n){for(;t!==null;){var r=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,r!==null&&(r.childLanes|=e)):r!==null&&(r.childLanes&e)!==e&&(r.childLanes|=e),t===n)break;t=t.return}}function Eu(t,e){yg=t,RS=pu=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(br=!0),t.firstContext=null)}function gi(t){var e=t._currentValue;if(RS!==t)if(t={context:t,memoizedValue:e,next:null},pu===null){if(yg===null)throw Error(we(308));pu=t,yg.dependencies={lanes:0,firstContext:t}}else pu=pu.next=t;return e}var Na=null;function NS(t){Na===null?Na=[t]:Na.push(t)}function PR(t,e,n,r){var i=e.interleaved;return i===null?(n.next=n,NS(e)):(n.next=i.next,i.next=n),e.interleaved=n,Ys(t,r)}function Ys(t,e){t.lanes|=e;var n=t.alternate;for(n!==null&&(n.lanes|=e),n=t,t=t.return;t!==null;)t.childLanes|=e,n=t.alternate,n!==null&&(n.childLanes|=e),n=t,t=t.return;return n.tag===3?n.stateNode:null}var Io=!1;function $S(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function RR(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function Us(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function Vo(t,e,n){var r=t.updateQueue;if(r===null)return null;if(r=r.shared,yt&2){var i=r.pending;return i===null?e.next=e:(e.next=i.next,i.next=e),r.pending=e,Ys(t,n)}return i=r.interleaved,i===null?(e.next=e,NS(r)):(e.next=i.next,i.next=e),r.interleaved=e,Ys(t,n)}function kh(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194240)!==0)){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,SS(t,n)}}function X_(t,e){var n=t.updateQueue,r=t.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?i=s=a:s=s.next=a,n=n.next}while(n!==null);s===null?i=s=e:s=s.next=e}else i=s=e;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:r.shared,effects:r.effects},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}function wg(t,e,n,r){var i=t.updateQueue;Io=!1;var s=i.firstBaseUpdate,a=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var c=l,f=c.next;c.next=null,a===null?s=f:a.next=f,a=c;var d=t.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==a&&(l===null?d.firstBaseUpdate=f:l.next=f,d.lastBaseUpdate=c))}if(s!==null){var g=i.baseState;a=0,d=f=c=null,l=s;do{var v=l.lane,y=l.eventTime;if((r&v)===v){d!==null&&(d=d.next={eventTime:y,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var w=t,T=l;switch(v=e,y=n,T.tag){case 1:if(w=T.payload,typeof w=="function"){g=w.call(y,g,v);break e}g=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=T.payload,v=typeof w=="function"?w.call(y,g,v):w,v==null)break e;g=Zt({},g,v);break e;case 2:Io=!0}}l.callback!==null&&l.lane!==0&&(t.flags|=64,v=i.effects,v===null?i.effects=[l]:v.push(l))}else y={eventTime:y,lane:v,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(f=d=y,c=g):d=d.next=y,a|=v;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;
vendor: 6,303 bytes, line 38
38v=l,l=v.next,v.next=null,i.lastBaseUpdate=v,i.shared.pending=null}}while(!0);if(d===null&&(c=g),i.baseState=c,i.firstBaseUpdate=f,i.lastBaseUpdate=d,e=i.shared.interleaved,e!==null){i=e;do a|=i.lane,i=i.next;while(i!==e)}else s===null&&(i.shared.lanes=0);rl|=a,t.lanes=a,t.memoizedState=g}}function Q_(t,e,n){if(t=e.effects,e.effects=null,t!==null)for(e=0;e<t.length;e++){var r=t[e],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(we(191,i));i.call(r)}}}var MR=new PP.Component().refs;function Ib(t,e,n,r){e=t.memoizedState,n=n(r,e),n=n==null?e:Zt({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var Pm={isMounted:function(t){return(t=t._reactInternals)?ml(t)===t:!1},enqueueSetState:function(t,e,n){t=t._reactInternals;var r=lr(),i=qo(t),s=Us(r,i);s.payload=e,n!=null&&(s.callback=n),e=Vo(t,s,i),e!==null&&(Bi(e,t,i,r),kh(e,t,i))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var r=lr(),i=qo(t),s=Us(r,i);s.tag=1,s.payload=e,n!=null&&(s.callback=n),e=Vo(t,s,i),e!==null&&(Bi(e,t,i,r),kh(e,t,i))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=lr(),r=qo(t),i=Us(n,r);i.tag=2,e!=null&&(i.callback=e),e=Vo(t,i,r),e!==null&&(Bi(e,t,r,n),kh(e,t,r))}};function J_(t,e,n,r,i,s,a){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(r,s,a):e.prototype&&e.prototype.isPureReactComponent?!id(n,r)||!id(i,s):!0}function DR(t,e,n){var r=!1,i=Qo,s=e.contextType;return typeof s=="object"&&s!==null?s=gi(s):(i=Sr(e)?el:Jn.current,r=e.contextTypes,s=(r=r!=null)?Ou(t,i):Qo),e=new e(n,s),t.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=Pm,t.stateNode=e,e._reactInternals=t,r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=i,t.__reactInternalMemoizedMaskedChildContext=s),e}function Z_(t,e,n,r){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,r),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,r),e.state!==t&&Pm.enqueueReplaceState(e,e.state,null)}function Pb(t,e,n,r){var i=t.stateNode;i.props=n,i.state=t.memoizedState,i.refs=MR,$S(t);var s=e.contextType;typeof s=="object"&&s!==null?i.context=gi(s):(s=Sr(e)?el:Jn.current,i.context=Ou(t,s)),i.state=t.memoizedState,s=e.getDerivedStateFromProps,typeof s=="function"&&(Ib(t,e,s,n),i.state=t.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(e=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),e!==i.state&&Pm.enqueueReplaceState(i,i.state,null),wg(t,n,i,r),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308)}function uf(t,e,n){if(t=n.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(we(309));var r=n.stateNode}if(!r)throw Error(we(147,t));var i=r,s=""+t;return e!==null&&e.ref!==null&&typeof e.ref=="function"&&e.ref._stringRef===s?e.ref:(e=function(a){var l=i.refs;l===MR&&(l=i.refs={}),a===null?delete l[s]:l[s]=a},e._stringRef=s,e)}if(typeof t!="string")throw Error(we(284));if(!n._owner)throw Error(we(290,t))}return t}function Gp(t,e){throw t=Object.prototype.toString.call(e),Error(we(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t))}function eA(t){var e=t._init;return e(t._payload)}function NR(t){function e(x,b){if(t){var C=x.deletions;C===null?(x.deletions=[b],x.flags|=16):C.push(b)}}function n(x,b){if(!t)return null;for(;b!==null;)e(x,b),b=b.sibling;return null}function r(x,b){for(x=new Map;b!==null;)b.key!==null?x.set(b.key,b):x.set(b.index,b),b=b.sibling;return x}function i(x,b){return x=Go(x,b),x.index=0,x.sibling=null,x}function s(x,b,C){return x.index=C,t?(C=x.alternate,C!==null?(C=C.index,C<b?(x.flags|=2,b):C):(x.flags|=2,b)):(x.flags|=1048576,b)}function a(x){return t&&x.alternate===null&&(x.flags|=2),x}function l(x,b,C,A){return b===null||b.tag!==6?(b=Fw(C,x.mode,A),b.return=x,b):(b=i(b,C),b.return=x,b)}function c(x,b,C,A){var O=C.type;return O===su?d(x,b,C.props.children,A,C.key):b!==null&&(b.elementType===O||typeof O=="object"&&O!==null&&O.$$typeof===Oo&&eA(O)===b.type)?(A=i(b,C.props),A.ref=uf(x,b,C),A.return=x,A):(A=Mh(C.type,C.key,C.props,null,x.mode,A),A.ref=uf(x,b,C),A.return=x,A)}function f(x,b,C,A){return b===null||b.tag!==4||b.stateNode.containerInfo!==C.containerInfo||b.stateNode.implementation!==C.implementation?(b=zw(C,x.mode,A),b.return=x,b):(b=i(b,C.children||[]),b.return=x,b)}function d(x,b,C,A,O){return b===null||b.tag!==7?(b=Ga(C,x.mode,A,O),b.return=x,b):(b=i(b,C),b.return=x,b)}function g(x,b,C){if(typeof b=="string"&&b!==""||typeof b=="number")return b=Fw(""+b,x.mode,C),b.return=x,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case $p:return C=Mh(b.type,b.key,b.props,null,x.mode,C),C.ref=uf(x,null,b),C.return=x,C;case iu:return b=zw(b,x.mode,C),b.return=x,b;case Oo:var A=b._init;return g(x,A(b._payload),C)}if(Af(b)||rf(b))return b=Ga(b,x.mode,C,null),b.return=x,b;Gp(x,b)}return null}function v(x,b,C,A){var O=b!==null?b.key:null;if(typeof C=="string"&&C!==""||typeof C=="number")return O!==null?null:l(x,b,""+C,A);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case $p:return C.key===O?c(x,b,C,A):null;case iu:return C.key===O?f(x,b,C,A):null;case Oo:return O=C._init,v(x,b,O(C._payload),A)}if(Af(C)||rf(C))return O!==null?null:d(x,b,C,A,null);Gp(x,C)}return null}function y(x,b,C,A,O){if(typeof A=="string"&&A!==""||typeof A=="number")return x=x.get(C)||null,l(b,x,""+A,O);if(typeof A=="object"&&A!==null){switch(A.$$typeof){case $p:return x=x.get(A.key===null?C:A.key)||null,c(b,x,A,O);case iu:return x=x.get(A.key===null?C:A.key)||null,f(b,x,A,O);case Oo:var k=A._init;return y(x,b,C,k(A._payload),O)}if(Af(A)||rf(A))return x=x.get(C)||null,d(b,x,A,O,null);Gp(b,A)}return null}function w(x,b,C,A){for(var O=null,k=null,R=b,$=b=0,j=null;R!==null&&$<C.length;$++){R.index>$?(j=R,R=null):j=R.sibling;var W=v(x,R,C[$],A);if(W===null){R===null&&(R=j);break}t&&R&&W.alternate===null&&e(x,R),b=s(W,b,$),k===null?O=W:k.sibling=W,k=W,R=j}if($===C.length)return n(x,R),Vt&&Oa(x,$),O;
vendor: 23,429 bytes, lines 38-40
38if(R===null){for(;$<C.length;$++)R=g(x,C[$],A),R!==null&&(b=s(R,b,$),k===null?O=R:k.sibling=R,k=R);return Vt&&Oa(x,$),O}for(R=r(x,R);$<C.length;$++)j=y(R,x,$,C[$],A),j!==null&&(t&&j.alternate!==null&&R.delete(j.key===null?$:j.key),b=s(j,b,$),k===null?O=j:k.sibling=j,k=j);return t&&R.forEach(function(H){return e(x,H)}),Vt&&Oa(x,$),O}function T(x,b,C,A){var O=rf(C);if(typeof O!="function")throw Error(we(150));if(C=O.call(C),C==null)throw Error(we(151));for(var k=O=null,R=b,$=b=0,j=null,W=C.next();R!==null&&!W.done;$++,W=C.next()){R.index>$?(j=R,R=null):j=R.sibling;var H=v(x,R,W.value,A);if(H===null){R===null&&(R=j);break}t&&R&&H.alternate===null&&e(x,R),b=s(H,b,$),k===null?O=H:k.sibling=H,k=H,R=j}if(W.done)return n(x,R),Vt&&Oa(x,$),O;if(R===null){for(;!W.done;$++,W=C.next())W=g(x,W.value,A),W!==null&&(b=s(W,b,$),k===null?O=W:k.sibling=W,k=W);return Vt&&Oa(x,$),O}for(R=r(x,R);!W.done;$++,W=C.next())W=y(R,x,$,W.value,A),W!==null&&(t&&W.alternate!==null&&R.delete(W.key===null?$:W.key),b=s(W,b,$),k===null?O=W:k.sibling=W,k=W);return t&&R.forEach(function(V){return e(x,V)}),Vt&&Oa(x,$),O}function E(x,b,C,A){if(typeof C=="object"&&C!==null&&C.type===su&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case $p:e:{for(var O=C.key,k=b;k!==null;){if(k.key===O){if(O=C.type,O===su){if(k.tag===7){n(x,k.sibling),b=i(k,C.props.children),b.return=x,x=b;break e}}else if(k.elementType===O||typeof O=="object"&&O!==null&&O.$$typeof===Oo&&eA(O)===k.type){n(x,k.sibling),b=i(k,C.props),b.ref=uf(x,k,C),b.return=x,x=b;break e}n(x,k);break}else e(x,k);k=k.sibling}C.type===su?(b=Ga(C.props.children,x.mode,A,C.key),b.return=x,x=b):(A=Mh(C.type,C.key,C.props,null,x.mode,A),A.ref=uf(x,b,C),A.return=x,x=A)}return a(x);case iu:e:{for(k=C.key;b!==null;){if(b.key===k)if(b.tag===4&&b.stateNode.containerInfo===C.containerInfo&&b.stateNode.implementation===C.implementation){n(x,b.sibling),b=i(b,C.children||[]),b.return=x,x=b;break e}else{n(x,b);break}else e(x,b);b=b.sibling}b=zw(C,x.mode,A),b.return=x,x=b}return a(x);case Oo:return k=C._init,E(x,b,k(C._payload),A)}if(Af(C))return w(x,b,C,A);if(rf(C))return T(x,b,C,A);Gp(x,C)}return typeof C=="string"&&C!==""||typeof C=="number"?(C=""+C,b!==null&&b.tag===6?(n(x,b.sibling),b=i(b,C),b.return=x,x=b):(n(x,b),b=Fw(C,x.mode,A),b.return=x,x=b),a(x)):n(x,b)}return E}var Pu=NR(!0),$R=NR(!1),Rd={},vs=oa(Rd),ld=oa(Rd),ud=oa(Rd);function $a(t){if(t===Rd)throw Error(we(174));return t}function FS(t,e){switch(Nt(ud,e),Nt(ld,t),Nt(vs,Rd),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:cb(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=cb(e,t)}Ut(vs),Nt(vs,e)}function Ru(){Ut(vs),Ut(ld),Ut(ud)}function FR(t){$a(ud.current);var e=$a(vs.current),n=cb(e,t.type);e!==n&&(Nt(ld,t),Nt(vs,n))}function zS(t){ld.current===t&&(Ut(vs),Ut(ld))}var Xt=oa(0);function bg(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Pw=[];function BS(){for(var t=0;t<Pw.length;t++)Pw[t]._workInProgressVersionPrimary=null;Pw.length=0}var Lh=oo.ReactCurrentDispatcher,Rw=oo.ReactCurrentBatchConfig,nl=0,Jt=null,Cn=null,Ln=null,xg=!1,Bf=!1,cd=0,tW=0;function qn(){throw Error(we(321))}function jS(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!Ui(t[n],e[n]))return!1;return!0}function US(t,e,n,r,i,s){if(nl=s,Jt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,Lh.current=t===null||t.memoizedState===null?sW:oW,t=n(r,i),Bf){s=0;do{if(Bf=!1,cd=0,25<=s)throw Error(we(301));s+=1,Ln=Cn=null,e.updateQueue=null,Lh.current=aW,t=n(r,i)}while(Bf)}if(Lh.current=Sg,e=Cn!==null&&Cn.next!==null,nl=0,Ln=Cn=Jt=null,xg=!1,e)throw Error(we(300));return t}function HS(){var t=cd!==0;return cd=0,t}function fs(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ln===null?Jt.memoizedState=Ln=t:Ln=Ln.next=t,Ln}function mi(){if(Cn===null){var t=Jt.alternate;t=t!==null?t.memoizedState:null}else t=Cn.next;var e=Ln===null?Jt.memoizedState:Ln.next;if(e!==null)Ln=e,Cn=t;else{if(t===null)throw Error(we(310));Cn=t,t={memoizedState:Cn.memoizedState,baseState:Cn.baseState,baseQueue:Cn.baseQueue,queue:Cn.queue,next:null},Ln===null?Jt.memoizedState=Ln=t:Ln=Ln.next=t}return Ln}function fd(t,e){return typeof e=="function"?e(t):e}function Mw(t){var e=mi(),n=e.queue;if(n===null)throw Error(we(311));n.lastRenderedReducer=t;var r=Cn,i=r.baseQueue,s=n.pending;if(s!==null){if(i!==null){var a=i.next;i.next=s.next,s.next=a}r.baseQueue=i=s,n.pending=null}if(i!==null){s=i.next,r=r.baseState;var l=a=null,c=null,f=s;do{var d=f.lane;if((nl&d)===d)c!==null&&(c=c.next={lane:0,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null}),r=f.hasEagerState?f.eagerState:t(r,f.action);else{var g={lane:d,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null};c===null?(l=c=g,a=r):c=c.next=g,Jt.lanes|=d,rl|=d}f=f.next}while(f!==null&&f!==s);c===null?a=r:c.next=l,Ui(r,e.memoizedState)||(br=!0),e.memoizedState=r,e.baseState=a,e.baseQueue=c,n.lastRenderedState=r}if(t=n.interleaved,t!==null){i=t;do s=i.lane,Jt.lanes|=s,rl|=s,i=i.next;while(i!==t)}else i===null&&(n.lanes=0);return[e.memoizedState,n.dispatch]}function Dw(t){var e=mi(),n=e.queue;if(n===null)throw Error(we(311));n.lastRenderedReducer=t;var r=n.dispatch,i=n.pending,s=e.memoizedState;if(i!==null){n.pending=null;var a=i=i.next;do s=t(s,a.action),a=a.next;while(a!==i);Ui(s,e.memoizedState)||(br=!0),e.memoizedState=s,e.baseQueue===null&&(e.baseState=s),n.lastRenderedState=s}return[s,r]}function zR(){}function BR(t,e){var n=Jt,r=mi(),i=e(),s=!Ui(r.memoizedState,i);if(s&&(r.memoizedState=i,br=!0),r=r.queue,WS(HR.bind(null,n,r,t),[t]),r.getSnapshot!==e||s||Ln!==null&&Ln.memoizedState.tag&1){if(n.flags|=2048,dd(9,UR.bind(null,n,r,i,e),void 0,null),On===null)throw Error(we(349));nl&30||jR(n,e,i)}return i}function jR(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=Jt.updateQueue,e===null?(e={lastEffect:null,stores:null},Jt.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function UR(t,e,n,r){e.value=n,e.getSnapshot=r,WR(e)&&VR(t)}function HR(t,e,n){return n(function(){WR(e)&&VR(t)})}function WR(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!Ui(t,n)}catch{return!0}}function VR(t){var e=Ys(t,1);e!==null&&Bi(e,t,1,-1)}function tA(t){var e=fs();return typeof t=="function"&&(t=t()),e.memoizedState=e.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:fd,lastRenderedState:t},e.queue=t,t=t.dispatch=iW.bind(null,Jt,t),[e.memoizedState,t]}function dd(t,e,n,r){return t={tag:t,create:e,destroy:n,deps:r,next:null},e=Jt.updateQueue,e===null?(e={lastEffect:null,stores:null},Jt.updateQueue=e,e.lastEffect=t.next=t):(n=e.lastEffect,n===null?e.lastEffect=t.next=t:(r=n.next,n.next=t,t.next=r,e.lastEffect=t)),t}function KR(){return mi().memoizedState}function Oh(t,e,n,r){var i=fs();Jt.flags|=t,i.memoizedState=dd(1|e,n,void 0,r===void 0?null:r)}function Rm(t,e,n,r){var i=mi();r=r===void 0?null:r;var s=void 0;if(Cn!==null){var a=Cn.memoizedState;if(s=a.destroy,r!==null&&jS(r,a.deps)){i.memoizedState=dd(e,n,s,r);return}}Jt.flags|=t,i.memoizedState=dd(1|e,n,s,r)}function nA(t,e){return Oh(8390656,8,t,e)}function WS(t,e){return Rm(2048,8,t,e)}function qR(t,e){return Rm(4,2,t,e)}function GR(t,e){return Rm(4,4,t,e)}function YR(t,e){if(typeof e=="function")return t=t(),e(t),function(){e(null)};if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function XR(t,e,n){return n=n!=null?n.concat([t]):null,Rm(4,4,YR.bind(null,e,t),n)}function VS(){}function QR(t,e){var n=mi();e=e===void 0?null:e;var r=n.memoizedState;return r!==null&&e!==null&&jS(e,r[1])?r[0]:(n.memoizedState=[t,e],t)}function JR(t,e){var n=mi();e=e===void 0?null:e;var r=n.memoizedState;return r!==null&&e!==null&&jS(e,r[1])?r[0]:(t=t(),n.memoizedState=[t,e],t)}function ZR(t,e,n){return nl&21?(Ui(n,e)||(n=nR(),Jt.lanes|=n,rl|=n,t.baseState=!0),e):(t.baseState&&(t.baseState=!1,br=!0),t.memoizedState=n)}function nW(t,e){var n=Ct;Ct=n!==0&&4>n?n:4,t(!0);var r=Rw.transition;Rw.transition={};try{t(!1),e()}finally{Ct=n,Rw.transition=r}}function eM(){return mi().memoizedState}function rW(t,e,n){var r=qo(t);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},tM(t))nM(e,n);else if(n=PR(t,e,n,r),n!==null){var i=lr();Bi(n,t,r,i),rM(n,e,r)}}function iW(t,e,n){var r=qo(t),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(tM(t))nM(e,i);else{var s=t.alternate;if(t.lanes===0&&(s===null||s.lanes===0)&&(s=e.lastRenderedReducer,s!==null))try{var a=e.lastRenderedState,l=s(a,n);if(i.hasEagerState=!0,i.eagerState=l,Ui(l,a)){var c=e.interleaved;c===null?(i.next=i,NS(e)):(i.next=c.next,c.next=i),e.interleaved=i;return}}catch{}finally{}n=PR(t,e,i,r),n!==null&&(i=lr(),Bi(n,t,r,i),rM(n,e,r))}}function tM(t){var e=t.alternate;return t===Jt||e!==null&&e===Jt}function nM(t,e){Bf=xg=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function rM(t,e,n){if(n&4194240){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,SS(t,n)}}var Sg={readContext:gi,useCallback:qn,useContext:qn,useEffect:qn,useImperativeHandle:qn,useInsertionEffect:qn,useLayoutEffect:qn,useMemo:qn,useReducer:qn,useRef:qn,useState:qn,useDebugValue:qn,useDeferredValue:qn,useTransition:qn,useMutableSource:qn,useSyncExternalStore:qn,useId:qn,unstable_isNewReconciler:!1},sW={readContext:gi,useCallback:function(t,e){return fs().memoizedState=[t,e===void 0?null:e],t},useContext:gi,useEffect:nA,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,Oh(4194308,4,YR.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Oh(4194308,4,t,e)},useInsertionEffect:function(t,e){return Oh(4,2,t,e)},useMemo:function(t,e){var n=fs();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=fs();return e=n!==void 0?n(e):e,r.memoizedState=r.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},r.queue=t,t=t.dispatch=rW.bind(null,Jt,t),[r.memoizedState,t]},useRef:function(t){var e=fs();return t={current:t},e.memoizedState=t},useState:tA,useDebugValue:VS,useDeferredValue:function(t){return fs().memoizedState=t},useTransition:function(){var t=tA(!1),e=t[0];return t=nW.bind(null,t[1]),fs().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var r=Jt,i=fs();if(Vt){if(n===void 0)throw Error(we(407));n=n()}else{if(n=e(),On===null)throw Error(we(349));nl&30||jR(r,e,n)}i.memoizedState=n;var s={value:n,getSnapshot:e};return i.queue=s,nA(HR.bind(null,r,s,t),[t]),r.flags|=2048,dd(9,UR.bind(null,r,s,n,e),void 0,null),n},useId:function(){var t=fs(),e=On.identifierPrefix;if(Vt){var n=js,r=Bs;n=(r&~(1<<32-zi(r)-1)).toString(32)+n,e=":"+e+"R"+n,n=cd++,0<n&&(e+="H"+n.toString(32)),e+=":"}else n=tW++,e=":"+e+"r"+n.toString(32)+":";return t.memoizedState=e},unstable_isNewReconciler:!1},oW={readContext:gi,useCallback:QR,useContext:gi,useEffect:WS,useImperativeHandle:XR,useInsertionEffect:qR,useLayoutEffect:GR,useMemo:JR,useReducer:Mw,useRef:KR,useState:function(){return Mw(fd)},useDebugValue:VS,useDeferredValue:function(t){var e=mi();return ZR(e,Cn.memoizedState,t)},useTransition:function(){var t=Mw(fd)[0],e=mi().memoizedState;return[t,e]},useMutableSource:zR,useSyncExternalStore:BR,useId:eM,unstable_isNewReconciler:!1},aW={readContext:gi,useCallback:QR,useContext:gi,useEffect:WS,useImperativeHandle:XR,useInsertionEffect:qR,useLayoutEffect:GR,useMemo:JR,useReducer:Dw,useRef:KR,useState:function(){return Dw(fd)},useDebugValue:VS,useDeferredValue:function(t){var e=mi();return Cn===null?e.memoizedState=t:ZR(e,Cn.memoizedState,t)},useTransition:function(){var t=Dw(fd)[0],e=mi().memoizedState;return[t,e]},useMutableSource:zR,useSyncExternalStore:BR,useId:eM,unstable_isNewReconciler:!1};function Mu(t,e){try{var n="",r=e;do n+=DH(r),r=r.return;while(r);var i=n}catch(s){i=`
39Error generating stack: `+s.message+`
40`+s.stack}return{value:t,source:e,stack:i,digest:null}}function Nw(t,e,n){return{value:t,source:null,stack:n??null,digest:e??null}}function Rb(t,e){try{console.error(e.value)}catch(n){setTimeout(function(){throw n})}}var lW=typeof WeakMap=="function"?WeakMap:Map;function iM(t,e,n){n=Us(-1,n),n.tag=3,n.payload={element:null};var r=e.value;return n.callback=function(){Cg||(Cg=!0,Hb=r),Rb(t,e)},n}function sM(t,e,n){n=Us(-1,n),n.tag=3;var r=t.type.getDerivedStateFromError;if(typeof r=="function"){var i=e.value;n.payload=function(){return r(i)},n.callback=function(){Rb(t,e)}}var s=t.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){Rb(t,e),typeof r!="function"&&(Ko===null?Ko=new Set([this]):Ko.add(this));var a=e.stack;this.componentDidCatch(e.value,{componentStack:a!==null?a:""})}),n}function rA(t,e,n){var r=t.pingCache;if(r===null){r=t.pingCache=new lW;var i=new Set;r.set(e,i)}else i=r.get(e),i===void 0&&(i=new Set,r.set(e,i));i.has(n)||(i.add(n),t=SW.bind(null,t,e,n),e.then(t,t))}function iA(t){do{var e;if((e=t.tag===13)&&(e=t.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return t;t=t.return}while(t!==null);return null}function sA(t,e,n,r,i){return t.mode&1?(t.flags|=65536,t.lanes=i,t):(t===e?t.flags|=65536:(t.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(e=Us(-1,1),e.tag=2,Vo(n,e,1))),n.lanes|=1),t)}var uW=oo.ReactCurrentOwner,br=!1;function or(t,e,n,r){e.child=t===null?$R(e,null,n,r):Pu(e,t.child,n,r)}function oA(t,e,n,r,i){n=n.render;var s=e.ref;return Eu(e,i),r=US(t,e,n,r,s,i),n=HS(),t!==null&&!br?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,Xs(t,e,i)):(Vt&&n&&OS(e),e.flags|=1,or(t,e,r,i),e.child)}function aA(t,e,n,r,i){if(t===null){var s=n.type;return typeof s=="function"&&!ZS(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(e.tag=15,e.type=s,oM(t,e,s,r,i)):(t=Mh(n.type,null,r,e,e.mode,i),t.ref=e.ref,t.return=e,e.child=t)}if(s=t.child,!(t.lanes&i)){var a=s.memoizedProps;if(n=n.compare,n=n!==null?n:id,n(a,r)&&t.ref===e.ref)return Xs(t,e,i)}return e.flags|=1,t=Go(s,r),t.ref=e.ref,t.return=e,e.child=t}function oM(t,e,n,r,i){if(t!==null){var s=t.memoizedProps;if(id(s,r)&&t.ref===e.ref)if(br=!1,e.pendingProps=r=s,(t.lanes&i)!==0)t.flags&131072&&(br=!0);else return e.lanes=t.lanes,Xs(t,e,i)}return Mb(t,e,n,r,i)}function aM(t,e,n){var r=e.pendingProps,i=r.children,s=t!==null?t.memoizedState:null;if(r.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},Nt(gu,Pr),Pr|=n;else{if(!(n&1073741824))return t=s!==null?s.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,Nt(gu,Pr),Pr|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,Nt(gu,Pr),Pr|=r}else s!==null?(r=s.baseLanes|n,e.memoizedState=null):r=n,Nt(gu,Pr),Pr|=r;return or(t,e,i,n),e.child}function lM(t,e){var n=e.ref;(t===null&&n!==null||t!==null&&t.ref!==n)&&(e.flags|=512,e.flags|=2097152)}function Mb(t,e,n,r,i){var s=Sr(n)?el:Jn.current;return s=Ou(e,s),Eu(e,i),n=US(t,e,n,r,s,i),r=HS(),t!==null&&!br?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,Xs(t,e,i)):(Vt&&r&&OS(e),e.flags|=1,or(t,e,n,i),e.child)}function lA(t,e,n,r,i){if(Sr(n)){var s=!0;hg(e)}else s=!1;if(Eu(e,i),e.stateNode===null)Ih(t,e),DR(e,n,r),Pb(e,n,r,i),r=!0;else if(t===null){var a=e.stateNode,l=e.memoizedProps;a.props=l;var c=a.context,f=n.contextType;typeof f=="object"&&f!==null?f=gi(f):(f=Sr(n)?el:Jn.current,f=Ou(e,f));var d=n.getDerivedStateFromProps,g=typeof d=="function"||typeof a.getSnapshotBeforeUpdate=="function";g||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==r||c!==f)&&Z_(e,a,r,f),Io=!1;var v=e.memoizedState;a.state=v,wg(e,r,a,i),c=e.memoizedState,l!==r||v!==c||xr.current||Io?(typeof d=="function"&&(Ib(e,n,d,r),c=e.memoizedState),(l=Io||J_(e,n,l,r,v,c,f))?(g||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"&&(e.flags|=4194308)):(typeof a.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=r,e.memoizedState=c),a.props=r,a.state=c,a.context=f,r=l):(typeof a.componentDidMount=="function"&&(e.flags|=4194308),r=!1)}else{a=e.stateNode,RR(t,e),l=e.memoizedProps,f=e.type===e.elementType?l:Pi(e.type,l),a.props=f,g=e.pendingProps,v=a.context,c=n.contextType,typeof c=="object"&&c!==null?c=gi(c):(c=Sr(n)?el:Jn.current,c=Ou(e,c));var y=n.getDerivedStateFromProps;(d=typeof y=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==g||v!==c)&&Z_(e,a,r,c),Io=!1,v=e.memoizedState,a.state=v,wg(e,r,a,i);var w=e.memoizedState;l!==g||v!==w||xr.current||Io?(typeof y=="function"&&(Ib(e,n,y,r),w=e.memoizedState),(f=Io||J_(e,n,f,r,v,w,c)||!1)?(d||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,w,c),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,w,c)),typeof a.componentDidUpdate=="function"&&(e.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof a.componentDidUpdate!="function"||l===t.memoizedProps&&v===t.memoizedState||(e.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===t.memoizedProps&&v===t.memoizedState||(e.flags|=1024),e.memoizedProps=r,e.memoizedState=w),a.props=r,a.state=w,a.context=c,r=f):(typeof a.componentDidUpdate!="function"||l===t.memoizedProps&&v===t.memoizedState||(e.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===t.memoizedProps&&v===t.memoizedState||(e.flags|=1024),r=!1)}return Db(t,e,n,r,s,i)}function Db(t,e,n,r,i,s){lM(t,e);var a=(e.flags&128)!==0;if(!r&&!a)return i&&q_(e,n,!1),Xs(t,e,s);r=e.stateNode,uW.current=e;var l=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return e.flags|=1,t!==null&&a?(e.child=Pu(e,t.child,null,s),e.child=Pu(e,null,l,s)):or(t,e,l,s),e.memoizedState=r.state,i&&q_(e,n,!0),e.child}function uM(t){var e=t.stateNode;e.pendingContext?K_(t,e.pendingContext,e.pendingContext!==e.context):e.context&&K_(t,e.context,!1),FS(t,e.containerInfo)}function uA(t,e,n,r,i){return Iu(),PS(i),e.flags|=256,or(t,e,n,r),e.child}var Nb={dehydrated:null,treeContext:null,retryLane:0};function $b(t){return{baseLanes:t,cachePool:null,transitions:null}}function cM(t,e,n){var r=e.pendingProps,i=Xt.current,s=!1,a=(e.flags&128)!==0,l;if((l=a)||(l=t!==null&&t.memoizedState===null?!1:(i&2)!==0),l?(s=!0,e.flags&=-129):(t===null||t.memoizedState!==null)&&(i|=1),Nt(Xt,i&1),t===null)return Lb(e),t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?(e.mode&1?t.data==="$!"?e.lanes=8:e.lanes=1073741824:e.lanes=1,null):(a=r.children,t=r.fallback,s?(r=e.mode,s=e.child,a={mode:"hidden",children:a},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=a):s=Nm(a,r,0,null),t=Ga(t,r,n,null),s.return=e,t.return=e,s.sibling=t,e.child=s,e.child.memoizedState=$b(n),e.memoizedState=Nb,t):KS(e,a));if(i=t.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return cW(t,e,a,r,l,i,n);if(s){s=r.fallback,a=e.mode,i=t.child,l=i.sibling;var c={mode:"hidden",children:r.children};return!(a&1)&&e.child!==i?(r=e.child,r.childLanes=0,r.pendingProps=c,e.deletions=null):(r=Go(i,c),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?s=Go(l,s):(s=Ga(s,a,n,null),s.flags|=2),s.return=e,r.return=e,r.sibling=s,e.child=r,r=s,s=e.child,a=t.child.memoizedState,a=a===null?$b(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},s.memoizedState=a,s.childLanes=t.childLanes&~n,e.memoizedState=Nb,r}return s=t.child,t=s.sibling,r=Go(s,{mode:"visible",children:r.children}),!(e.mode&1)&&(r.lanes=n),r.return=e,r.sibling=null,t!==null&&(n=e.deletions,n===null?(e.deletions=[t],e.flags|=16):n.push(t)),e.child=r,e.memoizedState=null,r}function KS(t,e){return e=Nm({mode:"visible",children:e},t.mode,0,null),e.return=t,t.child=e}function Yp(t,e,n,r){return r!==null&&PS(r),Pu(e,t.child,null,n),t=KS(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function cW(t,e,n,r,i,s,a){if(n)return e.flags&256?(e.flags&=-257,r=Nw(Error(we(422))),Yp(t,e,a,r)):e.memoizedState!==null?(e.child=t.child,e.flags|=128,null):(s=r.fallback,i=e.mode,r=Nm({mode:"visible",children:r.children},i,0,null),s=Ga(s,i,a,null),s.flags|=2,r.return=e,s.return=e,r.sibling=s,e.child=r,e.mode&1&&Pu(e,t.child,null,a),e.child.memoizedState=$b(a),e.memoizedState=Nb,s);if(!(e.mode&1))return Yp(t,e,a,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var l=r.dgst;return r=l,s=Error(we(419)),r=Nw(s,r,void 0),Yp(t,e,a,r)}if(l=(a&t.childLanes)!==0,br||l){if(r=On,r!==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&(r.suspendedLanes|a)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,Ys(t,i),Bi(r,t,i,-1))}return JS(),r=Nw(Error(we(421))),Yp(t,e,a,r)}return i.data==="$?"?(e.flags|=128,e.child=t.child,e=EW.bind(null,t),i._reactRetry=e,null):(t=s.treeContext,Nr=Wo(i.nextSibling),Br=e,Vt=!0,Di=null,t!==null&&(oi[ai++]=Bs,oi[ai++]=js,oi[ai++]=tl,Bs=t.id,js=t.overflow,tl=e),e=KS(e,r.children),e.flags|=4096,e)}function cA(t,e,n){t.lanes|=e;var r=t.alternate;r!==null&&(r.lanes|=e),Ob(t.return,e,n)}function $w(t,e,n,r,i){var s=t.memoizedState;s===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(s.isBackwards=e,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i)}function fM(t,e,n){var r=e.pendingProps,i=r.revealOrder,s=r.tail;if(or(t,e,r.children,n),r=Xt.current,r&2)r=r&1|2,e.flags|=128;else{if(t!==null&&t.flags&128)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&cA(t,n,e);else if(t.tag===19)cA(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}r&=1}if(Nt(Xt,r),!(e.mode&1))e.memoizedState=null;else switch(i){case"forwards":for(n=e.child,i=null;n!==null;)t=n.alternate,t!==null&&bg(t)===null&&(i=n),n=n.sibling;n=i,n===null?(i=e.child,e.child=null):(i=n.sibling,n.sibling=null),$w(e,!1,i,n,s);break;case"backwards":for(n=null,i=e.child,e.child=null;i!==null;){if(t=i.alternate,t!==null&&bg(t)===null){e.child=i;break}t=i.sibling,i.sibling=n,n=i,i=t}$w(e,!0,n,null,s);break;case"together":$w(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function Ih(t,e){!(e.mode&1)&&t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2)}
vendor: 5,610 bytes, line 40
40function Xs(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),rl|=e.lanes,!(n&e.childLanes))return null;if(t!==null&&e.child!==t.child)throw Error(we(153));if(e.child!==null){for(t=e.child,n=Go(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=Go(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function fW(t,e,n){switch(e.tag){case 3:uM(e),Iu();break;case 5:FR(e);break;case 1:Sr(e.type)&&hg(e);break;case 4:FS(e,e.stateNode.containerInfo);break;case 10:var r=e.type._context,i=e.memoizedProps.value;Nt(vg,r._currentValue),r._currentValue=i;break;case 13:if(r=e.memoizedState,r!==null)return r.dehydrated!==null?(Nt(Xt,Xt.current&1),e.flags|=128,null):n&e.child.childLanes?cM(t,e,n):(Nt(Xt,Xt.current&1),t=Xs(t,e,n),t!==null?t.sibling:null);Nt(Xt,Xt.current&1);break;case 19:if(r=(n&e.childLanes)!==0,t.flags&128){if(r)return fM(t,e,n);e.flags|=128}if(i=e.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Nt(Xt,Xt.current),r)break;return null;case 22:case 23:return e.lanes=0,aM(t,e,n)}return Xs(t,e,n)}var dM,Fb,pM,hM;dM=function(t,e){for(var n=e.child;n!==null;){if(n.tag===5||n.tag===6)t.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Fb=function(){};pM=function(t,e,n,r){var i=t.memoizedProps;if(i!==r){t=e.stateNode,$a(vs.current);var s=null;switch(n){case"input":i=ob(t,i),r=ob(t,r),s=[];break;case"select":i=Zt({},i,{value:void 0}),r=Zt({},r,{value:void 0}),s=[];break;case"textarea":i=ub(t,i),r=ub(t,r),s=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(t.onclick=dg)}fb(n,r);var a;n=null;for(f in i)if(!r.hasOwnProperty(f)&&i.hasOwnProperty(f)&&i[f]!=null)if(f==="style"){var l=i[f];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else f!=="dangerouslySetInnerHTML"&&f!=="children"&&f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&f!=="autoFocus"&&(Qf.hasOwnProperty(f)?s||(s=[]):(s=s||[]).push(f,null));for(f in r){var c=r[f];if(l=i!=null?i[f]:void 0,r.hasOwnProperty(f)&&c!==l&&(c!=null||l!=null))if(f==="style")if(l){for(a in l)!l.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&l[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(s||(s=[]),s.push(f,n)),n=c;else f==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,l=l?l.__html:void 0,c!=null&&l!==c&&(s=s||[]).push(f,c)):f==="children"?typeof c!="string"&&typeof c!="number"||(s=s||[]).push(f,""+c):f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&(Qf.hasOwnProperty(f)?(c!=null&&f==="onScroll"&&Ft("scroll",t),s||l===c||(s=[])):(s=s||[]).push(f,c))}n&&(s=s||[]).push("style",n);var f=s;(e.updateQueue=f)&&(e.flags|=4)}};hM=function(t,e,n,r){n!==r&&(e.flags|=4)};function cf(t,e){if(!Vt)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:r.sibling=null}}function Gn(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,r=0;if(e)for(var i=t.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=t,i=i.sibling;else for(i=t.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=t,i=i.sibling;return t.subtreeFlags|=r,t.childLanes=n,e}function dW(t,e,n){var r=e.pendingProps;switch(IS(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Gn(e),null;case 1:return Sr(e.type)&&pg(),Gn(e),null;case 3:return r=e.stateNode,Ru(),Ut(xr),Ut(Jn),BS(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(t===null||t.child===null)&&(qp(e)?e.flags|=4:t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,Di!==null&&(Kb(Di),Di=null))),Fb(t,e),Gn(e),null;case 5:zS(e);var i=$a(ud.current);if(n=e.type,t!==null&&e.stateNode!=null)pM(t,e,n,r,i),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!r){if(e.stateNode===null)throw Error(we(166));return Gn(e),null}if(t=$a(vs.current),qp(e)){r=e.stateNode,n=e.type;var s=e.memoizedProps;switch(r[ds]=e,r[ad]=s,t=(e.mode&1)!==0,n){case"dialog":Ft("cancel",r),Ft("close",r);break;case"iframe":case"object":case"embed":Ft("load",r);break;case"video":case"audio":for(i=0;i<Lf.length;i++)Ft(Lf[i],r);break;case"source":Ft("error",r);break;case"img":case"image":case"link":Ft("error",r),Ft("load",r);break;case"details":Ft("toggle",r);break;case"input":w_(r,s),Ft("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Ft("invalid",r);break;case"textarea":x_(r,s),Ft("invalid",r)}fb(n,s),i=null;for(var a in s)if(s.hasOwnProperty(a)){var l=s[a];a==="children"?typeof l=="string"?r.textContent!==l&&(s.suppressHydrationWarning!==!0&&Kp(r.textContent,l,t),i=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(s.suppressHydrationWarning!==!0&&Kp(r.textContent,l,t),i=["children",""+l]):Qf.hasOwnProperty(a)&&l!=null&&a==="onScroll"&&Ft("scroll",r)}switch(n){case"input":Fp(r),b_(r,s,!0);break;case"textarea":Fp(r),S_(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=dg)}r=i,e.updateQueue=r,r!==null&&(e.flags|=4)}else{a=i.nodeType===9?i:i.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=jP(n)),t==="http://www.w3.org/1999/xhtml"?n==="script"?(t=a.createElement("div"),t.innerHTML="<script><\/script>
40",t=t.removeChild(t.firstChild)):typeof r.is=="string"?t=a.createElement(n,{is:r.is}):(t=a.createElement(n),n==="select"&&(a=t,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):t=a.createElementNS(t,n),t[ds]=e,t[ad]=r,dM(t,e,!1,!1),e.stateNode=t;e:{switch(a=db(n,r),n){case"dialog":Ft("cancel",t),Ft("close",t),i=r;break;case"iframe":case"object":case"embed":Ft("load",t),i=r;break;case"video":case"audio":for(i=0;i<Lf.length;i++)Ft(Lf[i],t);i=r;break;case"source":Ft("error",t),i=r;break;case"img":case"image":case"link":Ft("error",t),Ft("load",t),i=r;break;case"details":Ft("toggle",t),i=r;break;case"input":w_(t,r),i=ob(t,r),Ft("invalid",t);break;case"option":i=r;break;case"select":t._wrapperState={wasMultiple:!!r.multiple},i=Zt({},r,{value:void 0}),Ft("invalid",t);break;case"textarea":x_(t,r),i=ub(t,r),Ft("invalid",t);break;default:i=r}fb(n,i),l=i;for(s in l)if(l.hasOwnProperty(s)){var c=l[s];s==="style"?WP(t,c):s==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&UP(t,c)):s==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&Jf(t,c):typeof c=="number"&&Jf(t,""+c):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Qf.hasOwnProperty(s)?c!=null&&s==="onScroll"&&Ft("scroll",t):c!=null&&mS(t,s,c,a))}switch(n){case"input":Fp(t),b_(t,r,!1);break;case"textarea":Fp(t),S_(t);break;case"option":r.value!=null&&t.setAttribute("value",""+Xo(r.value));break;case"select":t.multiple=!!r.multiple,s=r.value,s!=null?wu(t,!!r.multiple,s,!1):r.defaultValue!=null&&wu(t,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(t.onclick=dg)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(e.flags|=4)}e.ref!==null&&(e.flags|=512,e.flags|=2097152)}return Gn(e),null;case 6:if(t&&e.stateNode!=null)hM(t,e,t.memoizedProps,r);else{if(typeof r!="string"&&e.stateNode===null)throw Error(we(166));if(n=$a(ud.current),$a(vs.current),qp(e)){if(r=e.stateNode,n=e.memoizedProps,r[ds]=e,(s=r.nodeValue!==n)&&(t=Br,t!==null))switch(t.tag){case 3:Kp(r.nodeValue,n,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&Kp(r.nodeValue,n,(t.mode&1)!==0)}s&&(e.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[ds]=e,e.stateNode=r}return Gn(e),null;case 13:if(Ut(Xt),r=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(Vt&&Nr!==null&&e.mode&1&&!(e.flags&128))IR(),Iu(),e.flags|=98560,s=!1;else if(s=qp(e),r!==null&&r.dehydrated!==null){if(t===null){if(!s)throw Error(we(318));if(s=e.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(we(317));s[ds]=e}else Iu(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;Gn(e),s=!1}else Di!==null&&(Kb(Di),Di=null),s=!0;if(!s)return e.flags&65536?e:null}return e.flags&128?(e.lanes=n,e):(r=r!==null,r!==(t!==null&&t.memoizedState!==null)&&r&&(e.child.flags|=8192,e.mode&1&&(t===null||Xt.current&1?Tn===0&&(Tn=3):JS())),e.updateQueue!==null&&(e.flags|=4),Gn(e),null);case 4:return Ru(),Fb(t,e),t===null&&sd(e.stateNode.containerInfo),Gn(e),null;
vendor: 28,723 bytes, line 40
40case 10:return DS(e.type._context),Gn(e),null;case 17:return Sr(e.type)&&pg(),Gn(e),null;case 19:if(Ut(Xt),s=e.memoizedState,s===null)return Gn(e),null;if(r=(e.flags&128)!==0,a=s.rendering,a===null)if(r)cf(s,!1);else{if(Tn!==0||t!==null&&t.flags&128)for(t=e.child;t!==null;){if(a=bg(t),a!==null){for(e.flags|=128,cf(s,!1),r=a.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),e.subtreeFlags=0,r=n,n=e.child;n!==null;)s=n,t=r,s.flags&=14680066,a=s.alternate,a===null?(s.childLanes=0,s.lanes=t,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=a.childLanes,s.lanes=a.lanes,s.child=a.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=a.memoizedProps,s.memoizedState=a.memoizedState,s.updateQueue=a.updateQueue,s.type=a.type,t=a.dependencies,s.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),n=n.sibling;return Nt(Xt,Xt.current&1|2),e.child}t=t.sibling}s.tail!==null&&dn()>Du&&(e.flags|=128,r=!0,cf(s,!1),e.lanes=4194304)}else{if(!r)if(t=bg(a),t!==null){if(e.flags|=128,r=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),cf(s,!0),s.tail===null&&s.tailMode==="hidden"&&!a.alternate&&!Vt)return Gn(e),null}else 2*dn()-s.renderingStartTime>Du&&n!==1073741824&&(e.flags|=128,r=!0,cf(s,!1),e.lanes=4194304);s.isBackwards?(a.sibling=e.child,e.child=a):(n=s.last,n!==null?n.sibling=a:e.child=a,s.last=a)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=dn(),e.sibling=null,n=Xt.current,Nt(Xt,r?n&1|2:n&1),e):(Gn(e),null);case 22:case 23:return QS(),r=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==r&&(e.flags|=8192),r&&e.mode&1?Pr&1073741824&&(Gn(e),e.subtreeFlags&6&&(e.flags|=8192)):Gn(e),null;case 24:return null;case 25:return null}throw Error(we(156,e.tag))}function pW(t,e){switch(IS(e),e.tag){case 1:return Sr(e.type)&&pg(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Ru(),Ut(xr),Ut(Jn),BS(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return zS(e),null;case 13:if(Ut(Xt),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(we(340));Iu()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Ut(Xt),null;case 4:return Ru(),null;case 10:return DS(e.type._context),null;case 22:case 23:return QS(),null;case 24:return null;default:return null}}var Xp=!1,Xn=!1,hW=typeof WeakSet=="function"?WeakSet:Set,Me=null;function hu(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){sn(t,e,r)}else n.current=null}function zb(t,e,n){try{n()}catch(r){sn(t,e,r)}}var fA=!1;function gW(t,e){if(Sb=ug,t=yR(),LS(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else e:{n=(n=t.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var a=0,l=-1,c=-1,f=0,d=0,g=t,v=null;t:for(;;){for(var y;g!==n||i!==0&&g.nodeType!==3||(l=a+i),g!==s||r!==0&&g.nodeType!==3||(c=a+r),g.nodeType===3&&(a+=g.nodeValue.length),(y=g.firstChild)!==null;)v=g,g=y;for(;;){if(g===t)break t;if(v===n&&++f===i&&(l=a),v===s&&++d===r&&(c=a),(y=g.nextSibling)!==null)break;g=v,v=g.parentNode}g=y}n=l===-1||c===-1?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(Eb={focusedElem:t,selectionRange:n},ug=!1,Me=e;Me!==null;)if(e=Me,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Me=t;else for(;Me!==null;){e=Me;try{var w=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var T=w.memoizedProps,E=w.memoizedState,x=e.stateNode,b=x.getSnapshotBeforeUpdate(e.elementType===e.type?T:Pi(e.type,T),E);x.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var C=e.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(we(163))}}catch(A){sn(e,e.return,A)}if(t=e.sibling,t!==null){t.return=e.return,Me=t;break}Me=e.return}return w=fA,fA=!1,w}function jf(t,e,n){var r=e.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&t)===t){var s=i.destroy;i.destroy=void 0,s!==void 0&&zb(e,n,s)}i=i.next}while(i!==r)}}function Mm(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var r=n.create;n.destroy=r()}n=n.next}while(n!==e)}}function Bb(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function gM(t){var e=t.alternate;e!==null&&(t.alternate=null,gM(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[ds],delete e[ad],delete e[_b],delete e[Q3],delete e[J3])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function mM(t){return t.tag===5||t.tag===3||t.tag===4}function dA(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||mM(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function jb(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=dg));else if(r!==4&&(t=t.child,t!==null))for(jb(t,e,n),t=t.sibling;t!==null;)jb(t,e,n),t=t.sibling}function Ub(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(r!==4&&(t=t.child,t!==null))for(Ub(t,e,n),t=t.sibling;t!==null;)Ub(t,e,n),t=t.sibling}var Nn=null,Ri=!1;function Eo(t,e,n){for(n=n.child;n!==null;)vM(t,e,n),n=n.sibling}function vM(t,e,n){if(ms&&typeof ms.onCommitFiberUnmount=="function")try{ms.onCommitFiberUnmount(_m,n)}catch{}switch(n.tag){case 5:Xn||hu(n,e);case 6:var r=Nn,i=Ri;Nn=null,Eo(t,e,n),Nn=r,Ri=i,Nn!==null&&(Ri?(t=Nn,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):Nn.removeChild(n.stateNode));break;case 18:Nn!==null&&(Ri?(t=Nn,n=n.stateNode,t.nodeType===8?Ow(t.parentNode,n):t.nodeType===1&&Ow(t,n),nd(t)):Ow(Nn,n.stateNode));break;case 4:r=Nn,i=Ri,Nn=n.stateNode.containerInfo,Ri=!0,Eo(t,e,n),Nn=r,Ri=i;break;case 0:case 11:case 14:case 15:if(!Xn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,a=s.destroy;s=s.tag,a!==void 0&&(s&2||s&4)&&zb(n,e,a),i=i.next}while(i!==r)}Eo(t,e,n);break;case 1:if(!Xn&&(hu(n,e),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){sn(n,e,l)}Eo(t,e,n);break;case 21:Eo(t,e,n);break;case 22:n.mode&1?(Xn=(r=Xn)||n.memoizedState!==null,Eo(t,e,n),Xn=r):Eo(t,e,n);break;default:Eo(t,e,n)}}function pA(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new hW),e.forEach(function(r){var i=CW.bind(null,t,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Oi(t,e){var n=e.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var s=t,a=e,l=a;e:for(;l!==null;){switch(l.tag){case 5:Nn=l.stateNode,Ri=!1;break e;case 3:Nn=l.stateNode.containerInfo,Ri=!0;break e;case 4:Nn=l.stateNode.containerInfo,Ri=!0;break e}l=l.return}if(Nn===null)throw Error(we(160));vM(s,a,i),Nn=null,Ri=!1;var c=i.alternate;c!==null&&(c.return=null),i.return=null}catch(f){sn(i,e,f)}}if(e.subtreeFlags&12854)for(e=e.child;e!==null;)yM(e,t),e=e.sibling}function yM(t,e){var n=t.alternate,r=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(Oi(e,t),as(t),r&4){try{jf(3,t,t.return),Mm(3,t)}catch(T){sn(t,t.return,T)}try{jf(5,t,t.return)}catch(T){sn(t,t.return,T)}}break;case 1:Oi(e,t),as(t),r&512&&n!==null&&hu(n,n.return);break;case 5:if(Oi(e,t),as(t),r&512&&n!==null&&hu(n,n.return),t.flags&32){var i=t.stateNode;try{Jf(i,"")}catch(T){sn(t,t.return,T)}}if(r&4&&(i=t.stateNode,i!=null)){var s=t.memoizedProps,a=n!==null?n.memoizedProps:s,l=t.type,c=t.updateQueue;if(t.updateQueue=null,c!==null)try{l==="input"&&s.type==="radio"&&s.name!=null&&zP(i,s),db(l,a);var f=db(l,s);for(a=0;a<c.length;a+=2){var d=c[a],g=c[a+1];d==="style"?WP(i,g):d==="dangerouslySetInnerHTML"?UP(i,g):d==="children"?Jf(i,g):mS(i,d,g,f)}switch(l){case"input":ab(i,s);break;case"textarea":BP(i,s);break;case"select":var v=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var y=s.value;y!=null?wu(i,!!s.multiple,y,!1):v!==!!s.multiple&&(s.defaultValue!=null?wu(i,!!s.multiple,s.defaultValue,!0):wu(i,!!s.multiple,s.multiple?[]:"",!1))}i[ad]=s}catch(T){sn(t,t.return,T)}}break;case 6:if(Oi(e,t),as(t),r&4){if(t.stateNode===null)throw Error(we(162));i=t.stateNode,s=t.memoizedProps;try{i.nodeValue=s}catch(T){sn(t,t.return,T)}}break;case 3:if(Oi(e,t),as(t),r&4&&n!==null&&n.memoizedState.isDehydrated)try{nd(e.containerInfo)}catch(T){sn(t,t.return,T)}break;case 4:Oi(e,t),as(t);break;case 13:Oi(e,t),as(t),i=t.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(YS=dn())),r&4&&pA(t);break;case 22:if(d=n!==null&&n.memoizedState!==null,t.mode&1?(Xn=(f=Xn)||d,Oi(e,t),Xn=f):Oi(e,t),as(t),r&8192){if(f=t.memoizedState!==null,(t.stateNode.isHidden=f)&&!d&&t.mode&1)for(Me=t,d=t.child;d!==null;){for(g=Me=d;Me!==null;){switch(v=Me,y=v.child,v.tag){case 0:case 11:case 14:case 15:jf(4,v,v.return);break;case 1:hu(v,v.return);var w=v.stateNode;if(typeof w.componentWillUnmount=="function"){r=v,n=v.return;try{e=r,w.props=e.memoizedProps,w.state=e.memoizedState,w.componentWillUnmount()}catch(T){sn(r,n,T)}}break;case 5:hu(v,v.return);break;case 22:if(v.memoizedState!==null){gA(g);continue}}y!==null?(y.return=v,Me=y):gA(g)}d=d.sibling}e:for(d=null,g=t;;){if(g.tag===5){if(d===null){d=g;try{i=g.stateNode,f?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(l=g.stateNode,c=g.memoizedProps.style,a=c!=null&&c.hasOwnProperty("display")?c.display:null,l.style.display=HP("display",a))}catch(T){sn(t,t.return,T)}}}else if(g.tag===6){if(d===null)try{g.stateNode.nodeValue=f?"":g.memoizedProps}catch(T){sn(t,t.return,T)}}else if((g.tag!==22&&g.tag!==23||g.memoizedState===null||g===t)&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===t)break e;for(;g.sibling===null;){if(g.return===null||g.return===t)break e;d===g&&(d=null),g=g.return}d===g&&(d=null),g.sibling.return=g.return,g=g.sibling}}break;case 19:Oi(e,t),as(t),r&4&&pA(t);break;case 21:break;default:Oi(e,t),as(t)}}function as(t){var e=t.flags;if(e&2){try{e:{for(var n=t.return;n!==null;){if(mM(n)){var r=n;break e}n=n.return}throw Error(we(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Jf(i,""),r.flags&=-33);var s=dA(t);Ub(t,s,i);break;case 3:case 4:var a=r.stateNode.containerInfo,l=dA(t);jb(t,l,a);break;default:throw Error(we(161))}}catch(c){sn(t,t.return,c)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function mW(t,e,n){Me=t,wM(t)}function wM(t,e,n){for(var r=(t.mode&1)!==0;Me!==null;){var i=Me,s=i.child;if(i.tag===22&&r){var a=i.memoizedState!==null||Xp;if(!a){var l=i.alternate,c=l!==null&&l.memoizedState!==null||Xn;l=Xp;var f=Xn;if(Xp=a,(Xn=c)&&!f)for(Me=i;Me!==null;)a=Me,c=a.child,a.tag===22&&a.memoizedState!==null?mA(i):c!==null?(c.return=a,Me=c):mA(i);for(;s!==null;)Me=s,wM(s),s=s.sibling;Me=i,Xp=l,Xn=f}hA(t)}else i.subtreeFlags&8772&&s!==null?(s.return=i,Me=s):hA(t)}}function hA(t){for(;Me!==null;){var e=Me;if(e.flags&8772){var n=e.alternate;try{if(e.flags&8772)switch(e.tag){case 0:case 11:case 15:Xn||Mm(5,e);break;case 1:var r=e.stateNode;if(e.flags&4&&!Xn)if(n===null)r.componentDidMount();else{var i=e.elementType===e.type?n.memoizedProps:Pi(e.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=e.updateQueue;s!==null&&Q_(e,s,r);break;case 3:var a=e.updateQueue;if(a!==null){if(n=null,e.child!==null)switch(e.child.tag){case 5:n=e.child.stateNode;break;case 1:n=e.child.stateNode}Q_(e,a,n)}break;case 5:var l=e.stateNode;if(n===null&&e.flags&4){n=l;var c=e.memoizedProps;switch(e.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(e.memoizedState===null){var f=e.alternate;if(f!==null){var d=f.memoizedState;if(d!==null){var g=d.dehydrated;g!==null&&nd(g)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(we(163))}Xn||e.flags&512&&Bb(e)}catch(v){sn(e,e.return,v)}}if(e===t){Me=null;break}if(n=e.sibling,n!==null){n.return=e.return,Me=n;break}Me=e.return}}function gA(t){for(;Me!==null;){var e=Me;if(e===t){Me=null;break}var n=e.sibling;if(n!==null){n.return=e.return,Me=n;break}Me=e.return}}function mA(t){for(;Me!==null;){var e=Me;try{switch(e.tag){case 0:case 11:case 15:var n=e.return;try{Mm(4,e)}catch(c){sn(e,n,c)}break;case 1:var r=e.stateNode;if(typeof r.componentDidMount=="function"){var i=e.return;try{r.componentDidMount()}catch(c){sn(e,i,c)}}var s=e.return;try{Bb(e)}catch(c){sn(e,s,c)}break;case 5:var a=e.return;try{Bb(e)}catch(c){sn(e,a,c)}}}catch(c){sn(e,e.return,c)}if(e===t){Me=null;break}var l=e.sibling;if(l!==null){l.return=e.return,Me=l;break}Me=e.return}}var vW=Math.ceil,Eg=oo.ReactCurrentDispatcher,qS=oo.ReactCurrentOwner,pi=oo.ReactCurrentBatchConfig,yt=0,On=null,mn=null,Fn=0,Pr=0,gu=oa(0),Tn=0,pd=null,rl=0,Dm=0,GS=0,Uf=null,yr=null,YS=0,Du=1/0,Ms=null,Cg=!1,Hb=null,Ko=null,Qp=!1,$o=null,Tg=0,Hf=0,Wb=null,Ph=-1,Rh=0;function lr(){return yt&6?dn():Ph!==-1?Ph:Ph=dn()}function qo(t){return t.mode&1?yt&2&&Fn!==0?Fn&-Fn:eW.transition!==null?(Rh===0&&(Rh=nR()),Rh):(t=Ct,t!==0||(t=window.event,t=t===void 0?16:uR(t.type)),t):1}function Bi(t,e,n,r){if(50<Hf)throw Hf=0,Wb=null,Error(we(185));Od(t,n,r),(!(yt&2)||t!==On)&&(t===On&&(!(yt&2)&&(Dm|=n),Tn===4&&Mo(t,Fn)),Er(t,r),n===1&&yt===0&&!(e.mode&1)&&(Du=dn()+500,Im&&aa()))}function Er(t,e){var n=t.callbackNode;e3(t,e);var r=lg(t,t===On?Fn:0);if(r===0)n!==null&&T_(n),t.callbackNode=null,t.callbackPriority=0;else if(e=r&-r,t.callbackPriority!==e){if(n!=null&&T_(n),e===1)t.tag===0?Z3(vA.bind(null,t)):kR(vA.bind(null,t)),Y3(function(){!(yt&6)&&aa()}),n=null;else{switch(rR(r)){case 1:n=xS;break;case 4:n=eR;break;case 16:n=ag;break;case 536870912:n=tR;break;default:n=ag}n=AM(n,bM.bind(null,t))}t.callbackPriority=e,t.callbackNode=n}}function bM(t,e){if(Ph=-1,Rh=0,yt&6)throw Error(we(327));var n=t.callbackNode;if(Cu()&&t.callbackNode!==n)return null;var r=lg(t,t===On?Fn:0);if(r===0)return null;if(r&30||r&t.expiredLanes||e)e=_g(t,r);else{e=r;var i=yt;yt|=2;var s=SM();(On!==t||Fn!==e)&&(Ms=null,Du=dn()+500,qa(t,e));do try{bW();break}catch(l){xM(t,l)}while(!0);MS(),Eg.current=s,yt=i,mn!==null?e=0:(On=null,Fn=0,e=Tn)}if(e!==0){if(e===2&&(i=vb(t),i!==0&&(r=i,e=Vb(t,i))),e===1)throw n=pd,qa(t,0),Mo(t,r),Er(t,dn()),n;if(e===6)Mo(t,r);else{if(i=t.current.alternate,!(r&30)&&!yW(i)&&(e=_g(t,r),e===2&&(s=vb(t),s!==0&&(r=s,e=Vb(t,s))),e===1))throw n=pd,qa(t,0),Mo(t,r),Er(t,dn()),n;switch(t.finishedWork=i,t.finishedLanes=r,e){case 0:case 1:throw Error(we(345));case 2:Ia(t,yr,Ms);break;case 3:if(Mo(t,r),(r&130023424)===r&&(e=YS+500-dn(),10<e)){if(lg(t,0)!==0)break;if(i=t.suspendedLanes,(i&r)!==r){lr(),t.pingedLanes|=t.suspendedLanes&i;break}t.timeoutHandle=Tb(Ia.bind(null,t,yr,Ms),e);break}Ia(t,yr,Ms);break;case 4:if(Mo(t,r),(r&4194240)===r)break;for(e=t.eventTimes,i=-1;0<r;){var a=31-zi(r);s=1<<a,a=e[a],a>i&&(i=a),r&=~s}if(r=i,r=dn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*vW(r/1960))-r,10<r){t.timeoutHandle=Tb(Ia.bind(null,t,yr,Ms),r);break}Ia(t,yr,Ms);break;case 5:Ia(t,yr,Ms);break;default:throw Error(we(329))}}}return Er(t,dn()),t.callbackNode===n?bM.bind(null,t):null}function Vb(t,e){var n=Uf;return t.current.memoizedState.isDehydrated&&(qa(t,e).flags|=256),t=_g(t,e),t!==2&&(e=yr,yr=n,e!==null&&Kb(e)),t}function Kb(t){yr===null?yr=t:yr.push.apply(yr,t)}function yW(t){for(var e=t;;){if(e.flags&16384){var n=e.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],s=i.getSnapshot;i=i.value;try{if(!Ui(s(),i))return!1}catch{return!1}}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Mo(t,e){for(e&=~GS,e&=~Dm,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var n=31-zi(e),r=1<<n;t[n]=-1,e&=~r}}function vA(t){if(yt&6)throw Error(we(327));Cu();var e=lg(t,0);if(!(e&1))return Er(t,dn()),null;var n=_g(t,e);if(t.tag!==0&&n===2){var r=vb(t);r!==0&&(e=r,n=Vb(t,r))}if(n===1)throw n=pd,qa(t,0),Mo(t,e),Er(t,dn()),n;if(n===6)throw Error(we(345));return t.finishedWork=t.current.alternate,t.finishedLanes=e,Ia(t,yr,Ms),Er(t,dn()),null}function XS(t,e){var n=yt;yt|=1;try{return t(e)}finally{yt=n,yt===0&&(Du=dn()+500,Im&&aa())}}function il(t){$o!==null&&$o.tag===0&&!(yt&6)&&Cu();var e=yt;yt|=1;var n=pi.transition,r=Ct;try{if(pi.transition=null,Ct=1,t)return t()}finally{Ct=r,pi.transition=n,yt=e,!(yt&6)&&aa()}}function QS(){Pr=gu.current,Ut(gu)}function qa(t,e){t.finishedWork=null,t.finishedLanes=0;var n=t.timeoutHandle;if(n!==-1&&(t.timeoutHandle=-1,G3(n)),mn!==null)for(n=mn.return;n!==null;){var r=n;switch(IS(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&pg();break;case 3:Ru(),Ut(xr),Ut(Jn),BS();break;case 5:zS(r);break;case 4:Ru();break;case 13:Ut(Xt);break;case 19:Ut(Xt);break;case 10:DS(r.type._context);break;case 22:case 23:QS()}n=n.return}if(On=t,mn=t=Go(t.current,null),Fn=Pr=e,Tn=0,pd=null,GS=Dm=rl=0,yr=Uf=null,Na!==null){for(e=0;e<Na.length;e++)if(n=Na[e],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,s=n.pending;if(s!==null){var a=s.next;s.next=i,r.next=a}n.pending=r}Na=null}return t}function xM(t,e){do{var n=mn;try{if(MS(),Lh.current=Sg,xg){for(var r=Jt.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}xg=!1}if(nl=0,Ln=Cn=Jt=null,Bf=!1,cd=0,qS.current=null,n===null||n.return===null){Tn=1,pd=e,mn=null;break}e:{var s=t,a=n.return,l=n,c=e;if(e=Fn,l.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var f=c,d=l,g=d.tag;if(!(d.mode&1)&&(g===0||g===11||g===15)){var v=d.alternate;v?(d.updateQueue=v.updateQueue,d.memoizedState=v.memoizedState,d.lanes=v.lanes):(d.updateQueue=null,d.memoizedState=null)}var y=iA(a);if(y!==null){y.flags&=-257,sA(y,a,l,s,e),y.mode&1&&rA(s,f,e),e=y,c=f;var w=e.updateQueue;if(w===null){var T=new Set;T.add(c),e.updateQueue=T}else w.add(c);break e}else{if(!(e&1)){rA(s,f,e),JS();break e}c=Error(we(426))}}else if(Vt&&l.mode&1){var E=iA(a);if(E!==null){!(E.flags&65536)&&(E.flags|=256),sA(E,a,l,s,e),PS(Mu(c,l));break e}}s=c=Mu(c,l),Tn!==4&&(Tn=2),Uf===null?Uf=[s]:Uf.push(s),s=a;do{switch(s.tag){case 3:s.flags|=65536,e&=-e,s.lanes|=e;var x=iM(s,c,e);X_(s,x);break e;case 1:l=c;var b=s.type,C=s.stateNode;if(!(s.flags&128)&&(typeof b.getDerivedStateFromError=="function"||C!==null&&typeof C.componentDidCatch=="function"&&(Ko===null||!Ko.has(C)))){s.flags|=65536,e&=-e,s.lanes|=e;var A=sM(s,l,e);X_(s,A);break e}}s=s.return}while(s!==null)}CM(n)}catch(O){e=O,mn===n&&n!==null&&(mn=n=n.return);continue}break}while(!0)}function SM(){var t=Eg.current;return Eg.current=Sg,t===null?Sg:t}function JS(){(Tn===0||Tn===3||Tn===2)&&(Tn=4),On===null||!(rl&268435455)&&!(Dm&268435455)||Mo(On,Fn)}function _g(t,e){var n=yt;yt|=2;var r=SM();(On!==t||Fn!==e)&&(Ms=null,qa(t,e));do try{wW();break}catch(i){xM(t,i)}while(!0);if(MS(),yt=n,Eg.current=r,mn!==null)throw Error(we(261));return On=null,Fn=0,Tn}function wW(){for(;mn!==null;)EM(mn)}function bW(){for(;mn!==null&&!VH();)EM(mn)}function EM(t){var e=_M(t.alternate,t,Pr);t.memoizedProps=t.pendingProps,e===null?CM(t):mn=e,qS.current=null}function CM(t){var e=t;do{var n=e.alternate;if(t=e.return,e.flags&32768){if(n=pW(n,e),n!==null){n.flags&=32767,mn=n;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{Tn=6,mn=null;return}}else if(n=dW(n,e,Pr),n!==null){mn=n;return}if(e=e.sibling,e!==null){mn=e;return}mn=e=t}while(e!==null);Tn===0&&(Tn=5)}function Ia(t,e,n){var r=Ct,i=pi.transition;try{pi.transition=null,Ct=1,xW(t,e,n,r)}finally{pi.transition=i,Ct=r}return null}function xW(t,e,n,r){do Cu();while($o!==null);if(yt&6)throw Error(we(327));n=t.finishedWork;var i=t.finishedLanes;if(n===null)return null;if(t.finishedWork=null,t.finishedLanes=0,n===t.current)throw Error(we(177));t.callbackNode=null,t.callbackPriority=0;var s=n.lanes|n.childLanes;if(t3(t,s),t===On&&(mn=On=null,Fn=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Qp||(Qp=!0,AM(ag,function(){return Cu(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=pi.transition,pi.transition=null;var a=Ct;Ct=1;var l=yt;yt|=4,qS.current=null,gW(t,n),yM(n,t),j3(Eb),ug=!!Sb,Eb=Sb=null,t.current=n,mW(n),KH(),yt=l,Ct=a,pi.transition=s}else t.current=n;if(Qp&&(Qp=!1,$o=t,Tg=i),s=t.pendingLanes,s===0&&(Ko=null),YH(n.stateNode),Er(t,dn()),e!==null)for(r=t.onRecoverableError,n=0;n<e.length;n++)i=e[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Cg)throw Cg=!1,t=Hb,Hb=null,t;return Tg&1&&t.tag!==0&&Cu(),s=t.pendingLanes,s&1?t===Wb?Hf++:(Hf=0,Wb=t):Hf=0,aa(),null}function Cu(){if($o!==null){var t=rR(Tg),e=pi.transition,n=Ct;try{if(pi.transition=null,Ct=16>t?16:t,$o===null)var r=!1;else{if(t=$o,$o=null,Tg=0,yt&6)throw Error(we(331));var i=yt;for(yt|=4,Me=t.current;Me!==null;){var s=Me,a=s.child;if(Me.flags&16){var l=s.deletions;if(l!==null){for(var c=0;c<l.length;c++){var f=l[c];for(Me=f;Me!==null;){var d=Me;switch(d.tag){case 0:case 11:case 15:jf(8,d,s)}var g=d.child;if(g!==null)g.return=d,Me=g;else for(;Me!==null;){d=Me;var v=d.sibling,y=d.return;if(gM(d),d===f){Me=null;break}if(v!==null){v.return=y,Me=v;break}Me=y}}}var w=s.alternate;if(w!==null){var T=w.child;if(T!==null){w.child=null;do{var E=T.sibling;T.sibling=null,T=E}while(T!==null)}}Me=s}}if(s.subtreeFlags&2064&&a!==null)a.return=s,Me=a;else e:for(;Me!==null;){if(s=Me,s.flags&2048)switch(s.tag){case 0:case 11:case 15:jf(9,s,s.return)}var x=s.sibling;if(x!==null){x.return=s.return,Me=x;break e}Me=s.return}}var b=t.current;for(Me=b;Me!==null;){a=Me;var C=a.child;if(a.subtreeFlags&2064&&C!==null)C.return=a,Me=C;else e:for(a=b;Me!==null;){if(l=Me,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Mm(9,l)}}catch(O){sn(l,l.return,O)}if(l===a){Me=null;break e}var A=l.sibling;if(A!==null){A.return=l.return,Me=A;break e}Me=l.return}}if(yt=i,aa(),ms&&typeof ms.onPostCommitFiberRoot=="function")try{ms.onPostCommitFiberRoot(_m,t)}catch{}r=!0}return r}finally{Ct=n,pi.transition=e}}return!1}function yA(t,e,n){e=Mu(n,e),e=iM(t,e,1),t=Vo(t,e,1),e=lr(),t!==null&&(Od(t,1,e),Er(t,e))}function sn(t,e,n){if(t.tag===3)yA(t,t,n);else for(;e!==null;){if(e.tag===3){yA(e,t,n);break}else if(e.tag===1){var r=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Ko===null||!Ko.has(r))){t=Mu(n,t),t=sM(e,t,1),e=Vo(e,t,1),t=lr(),e!==null&&(Od(e,1,t),Er(e,t));break}}e=e.return}}function SW(t,e,n){var r=t.pingCache;r!==null&&r.delete(e),e=lr(),t.pingedLanes|=t.suspendedLanes&n,On===t&&(Fn&n)===n&&(Tn===4||Tn===3&&(Fn&130023424)===Fn&&500>dn()-YS?qa(t,0):GS|=n),Er(t,e)}function TM(t,e){e===0&&(t.mode&1?(e=jp,jp<<=1,!(jp&130023424)&&(jp=4194304)):e=1);var n=lr();t=Ys(t,e),t!==null&&(Od(t,e,n),Er(t,n))}function EW(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),TM(t,n)}function CW(t,e){var n=0;switch(t.tag){case 13:var r=t.stateNode,i=t.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=t.stateNode;break;default:throw Error(we(314))}r!==null&&r.delete(e),TM(t,n)}var _M;_M=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||xr.current)br=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return br=!1,fW(t,e,n);br=!!(t.flags&131072)}else br=!1,Vt&&e.flags&1048576&&LR(e,mg,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;Ih(t,e),t=e.pendingProps;var i=Ou(e,Jn.current);Eu(e,n),i=US(null,e,r,t,i,n);var s=HS();return e.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,Sr(r)?(s=!0,hg(e)):s=!1,e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,$S(e),i.updater=Pm,e.stateNode=i,i._reactInternals=e,Pb(e,r,t,n),e=Db(null,e,r,!0,s,n)):(e.tag=0,Vt&&s&&OS(e),or(null,e,i,n),e=e.child),e;case 16:r=e.elementType;e:{switch(Ih(t,e),t=e.pendingProps,i=r._init,r=i(r._payload),e.type=r,i=e.tag=_W(r),t=Pi(r,t),i){case 0:e=Mb(null,e,r,t,n);break e;case 1:e=lA(null,e,r,t,n);break e;case 11:e=oA(null,e,r,t,n);break e;case 14:e=aA(null,e,r,Pi(r.type,t),n);break e}throw Error(we(306,r,""))}return e;case 0:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:Pi(r,i),Mb(t,e,r,i,n);case 1:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:Pi(r,i),lA(t,e,r,i,n);case 3:e:{if(uM(e),t===null)throw Error(we(387));r=e.pendingProps,s=e.memoizedState,i=s.element,RR(t,e),wg(e,r,null,n);var a=e.memoizedState;if(r=a.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},e.updateQueue.baseState=s,e.memoizedState=s,e.flags&256){i=Mu(Error(we(423)),e),e=uA(t,e,r,n,i);break e}else if(r!==i){i=Mu(Error(we(424)),e),e=uA(t,e,r,n,i);break e}else for(Nr=Wo(e.stateNode.containerInfo.firstChild),Br=e,Vt=!0,Di=null,n=$R(e,null,r,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Iu(),r===i){e=Xs(t,e,n);break e}or(t,e,r,n)}e=e.child}return e;case 5:return FR(e),t===null&&Lb(e),r=e.type,i=e.pendingProps,s=t!==null?t.memoizedProps:null,a=i.children,Cb(r,i)?a=null:s!==null&&Cb(r,s)&&(e.flags|=32),lM(t,e),or(t,e,a,n),e.child;case 6:return t===null&&Lb(e),null;case 13:return cM(t,e,n);case 4:return FS(e,e.stateNode.containerInfo),r=e.pendingProps,t===null?e.child=Pu(e,null,r,n):or(t,e,r,n),e.child;case 11:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:Pi(r,i),oA(t,e,r,i,n);case 7:return or(t,e,e.pendingProps,n),e.child;case 8:return or(t,e,e.pendingProps.children,n),e.child;case 12:return or(t,e,e.pendingProps.children,n),e.child;case 10:e:{if(r=e.type._context,i=e.pendingProps,s=e.memoizedProps,a=i.value,Nt(vg,r._currentValue),r._currentValue=a,s!==null)if(Ui(s.value,a)){if(s.children===i.children&&!xr.current){e=Xs(t,e,n);break e}}else for(s=e.child,s!==null&&(s.return=e);s!==null;){var l=s.dependencies;if(l!==null){a=s.child;for(var c=l.firstContext;c!==null;){if(c.context===r){if(s.tag===1){c=Us(-1,n&-n),c.tag=2;var f=s.updateQueue;if(f!==null){f=f.shared;var d=f.pending;d===null?c.next=c:(c.next=d.next,d.next=c),f.pending=c}}s.lanes|=n,c=s.alternate,c!==null&&(c.lanes|=n),Ob(s.return,n,e),l.lanes|=n;break}c=c.next}}else if(s.tag===10)a=s.type===e.type?null:s.child;else if(s.tag===18){if(a=s.return,a===null)throw Error(we(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Ob(a,n,e),a=s.sibling}else a=s.child;if(a!==null)a.return=s;else for(a=s;a!==null;){if(a===e){a=null;break}if(s=a.sibling,s!==null){s.return=a.return,a=s;break}a=a.return}s=a}or(t,e,i.children,n),e=e.child}return e;case 9:return i=e.type,r=e.pendingProps.children,Eu(e,n),i=gi(i),r=r(i),e.flags|=1,or(t,e,r,n),e.child;case 14:return r=e.type,i=Pi(r,e.pendingProps),i=Pi(r.type,i),aA(t,e,r,i,n);case 15:return oM(t,e,e.type,e.pendingProps,n);case 17:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:Pi(r,i),Ih(t,e),e.tag=1,Sr(r)?(t=!0,hg(e)):t=!1,Eu(e,n),DR(e,r,i),Pb(e,r,i,n),Db(null,e,r,!0,t,n);case 19:return fM(t,e,n);case 22:return aM(t,e,n)}throw Error(we(156,e.tag))};function AM(t,e){return ZP(t,e)}function TW(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function fi(t,e,n,r){return new TW(t,e,n,r)}function ZS(t){return t=t.prototype,!(!t||!t.isReactComponent)}function _W(t){if(typeof t=="function")return ZS(t)?1:0;if(t!=null){if(t=t.$$typeof,t===yS)return 11;if(t===wS)return 14}return 2}function Go(t,e){var n=t.alternate;return n===null?(n=fi(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deleti
vendor: 10,775 bytes, lines 40-48
40ons=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function Mh(t,e,n,r,i,s){var a=2;if(r=t,typeof t=="function")ZS(t)&&(a=1);else if(typeof t=="string")a=5;else e:switch(t){case su:return Ga(n.children,i,s,e);case vS:a=8,i|=8;break;case nb:return t=fi(12,n,e,i|2),t.elementType=nb,t.lanes=s,t;case rb:return t=fi(13,n,e,i),t.elementType=rb,t.lanes=s,t;case ib:return t=fi(19,n,e,i),t.elementType=ib,t.lanes=s,t;case NP:return Nm(n,i,s,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case MP:a=10;break e;case DP:a=9;break e;case yS:a=11;break e;case wS:a=14;break e;case Oo:a=16,r=null;break e}throw Error(we(130,t==null?t:typeof t,""))}return e=fi(a,n,e,i),e.elementType=t,e.type=r,e.lanes=s,e}function Ga(t,e,n,r){return t=fi(7,t,r,e),t.lanes=n,t}function Nm(t,e,n,r){return t=fi(22,t,r,e),t.elementType=NP,t.lanes=n,t.stateNode={isHidden:!1},t}function Fw(t,e,n){return t=fi(6,t,null,e),t.lanes=n,t}function zw(t,e,n){return e=fi(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function AW(t,e,n,r,i){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ww(0),this.expirationTimes=ww(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ww(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function eE(t,e,n,r,i,s,a,l,c){return t=new AW(t,e,n,l,c),e===1?(e=1,s===!0&&(e|=8)):e=0,s=fi(3,null,null,e),t.current=s,s.stateNode=t,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},$S(s),t}function kW(t,e,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:iu,key:r==null?null:""+r,children:t,containerInfo:e,implementation:n}}function kM(t){if(!t)return Qo;t=t._reactInternals;e:{if(ml(t)!==t||t.tag!==1)throw Error(we(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break e;case 1:if(Sr(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break e}}e=e.return}while(e!==null);throw Error(we(171))}if(t.tag===1){var n=t.type;if(Sr(n))return AR(t,n,e)}return e}function LM(t,e,n,r,i,s,a,l,c){return t=eE(n,r,!0,t,i,s,a,l,c),t.context=kM(null),n=t.current,r=lr(),i=qo(n),s=Us(r,i),s.callback=e??null,Vo(n,s,i),t.current.lanes=i,Od(t,i,r),Er(t,r),t}function $m(t,e,n,r){var i=e.current,s=lr(),a=qo(i);return n=kM(n),e.context===null?e.context=n:e.pendingContext=n,e=Us(s,a),e.payload={element:t},r=r===void 0?null:r,r!==null&&(e.callback=r),t=Vo(i,e,a),t!==null&&(Bi(t,i,a,s),kh(t,i,a)),a}function Ag(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function wA(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function tE(t,e){wA(t,e),(t=t.alternate)&&wA(t,e)}function LW(){return null}var OM=typeof reportError=="function"?reportError:function(t){console.error(t)};function nE(t){this._internalRoot=t}Fm.prototype.render=nE.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(we(409));$m(t,e,null,null)};Fm.prototype.unmount=nE.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;il(function(){$m(null,t,null,null)}),e[Gs]=null}};function Fm(t){this._internalRoot=t}Fm.prototype.unstable_scheduleHydration=function(t){if(t){var e=oR();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Ro.length&&e!==0&&e<Ro[n].priority;n++);Ro.splice(n,0,t),n===0&&lR(t)}};function rE(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function zm(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function bA(){}function OW(t,e,n,r,i){if(i){if(typeof r=="function"){var s=r;r=function(){var f=Ag(a);s.call(f)}}var a=LM(e,r,t,0,null,!1,!1,"",bA);return t._reactRootContainer=a,t[Gs]=a.current,sd(t.nodeType===8?t.parentNode:t),il(),a}for(;i=t.lastChild;)t.removeChild(i);if(typeof r=="function"){var l=r;r=function(){var f=Ag(c);l.call(f)}}var c=eE(t,0,!1,null,null,!1,!1,"",bA);return t._reactRootContainer=c,t[Gs]=c.current,sd(t.nodeType===8?t.parentNode:t),il(function(){$m(e,c,n,r)}),c}function Bm(t,e,n,r,i){var s=n._reactRootContainer;if(s){var a=s;if(typeof i=="function"){var l=i;i=function(){var c=Ag(a);l.call(c)}}$m(e,a,t,i)}else a=OW(n,e,t,i,r);return Ag(a)}iR=function(t){switch(t.tag){case 3:var e=t.stateNode;if(e.current.memoizedState.isDehydrated){var n=kf(e.pendingLanes);n!==0&&(SS(e,n|1),Er(e,dn()),!(yt&6)&&(Du=dn()+500,aa()))}break;case 13:il(function(){var r=Ys(t,1);if(r!==null){var i=lr();Bi(r,t,1,i)}}),tE(t,1)}};ES=function(t){if(t.tag===13){var e=Ys(t,134217728);if(e!==null){var n=lr();Bi(e,t,134217728,n)}tE(t,134217728)}};sR=function(t){if(t.tag===13){var e=qo(t),n=Ys(t,e);if(n!==null){var r=lr();Bi(n,t,e,r)}tE(t,e)}};oR=function(){return Ct};aR=function(t,e){var n=Ct;try{return Ct=t,e()}finally{Ct=n}};hb=function(t,e,n){switch(e){case"input":if(ab(t,n),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<n.length;e++){var r=n[e];if(r!==t&&r.form===t.form){var i=Om(r);if(!i)throw Error(we(90));FP(r),ab(r,i)}}}break;case"textarea":BP(t,n);break;case"select":e=n.value,e!=null&&wu(t,!!n.multiple,e,!1)}};qP=XS;GP=il;var IW={usingClientEntryPoint:!1,Events:[Pd,uu,Om,VP,KP,XS]},ff={findFiberByHostInstance:Da,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},PW={bundleType:ff.bundleType,version:ff.version,rendererPackageName:ff.rendererPackageName,rendererConfig:ff.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:oo.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=QP(t),t===null?null:t.stateNode},findFiberByHostInstance:ff.findFiberByHostInstance||LW,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Jp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Jp.isDisabled&&Jp.supportsFiber)try{_m=Jp.inject(PW),ms=Jp}catch{}}Yr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=IW;Yr.createPortal=function(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!rE(e))throw Error(we(200));return kW(t,e,null,n)};Yr.createRoot=function(t,e){if(!rE(t))throw Error(we(299));var n=!1,r="",i=OM;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(r=e.identifierPrefix),e.onRecoverableError!==void 0&&(i=e.onRecoverableError)),e=eE(t,1,!1,null,null,n,!1,r,i),t[Gs]=e.current,sd(t.nodeType===8?t.parentNode:t),new nE(e)};Yr.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(we(188)):(t=Object.keys(t).join(","),Error(we(268,t)));return t=QP(e),t=t===null?null:t.stateNode,t};Yr.flushSync=function(t){return il(t)};Yr.hydrate=function(t,e,n){if(!zm(e))throw Error(we(200));return Bm(null,t,e,!0,n)};Yr.hydrateRoot=function(t,e,n){if(!rE(t))throw Error(we(405));var r=n!=null&&n.hydratedSources||null,i=!1,s="",a=OM;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),e=LM(e,null,t,1,n??null,i,!1,s,a),t[Gs]=e.current,sd(t),r)for(t=0;t<r.length;t++)n=r[t],i=n._getVersion,i=i(n._source),e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[n,i]:e.mutableSourceEagerHydrationData.push(n,i);return new Fm(e)};Yr.render=function(t,e,n){if(!zm(e))throw Error(we(200));return Bm(null,t,e,!1,n)};Yr.unmountComponentAtNode=function(t){if(!zm(t))throw Error(we(40));return t._reactRootContainer?(il(function(){Bm(null,null,t,!1,function(){t._reactRootContainer=null,t[Gs]=null})}),!0):!1};Yr.unstable_batchedUpdates=XS;Yr.unstable_renderSubtreeIntoContainer=function(t,e,n,r){if(!zm(n))throw Error(we(200));if(t==null||t._reactInternals===void 0)throw Error(we(38));return Bm(t,e,n,!1,r)};Yr.version="18.2.0-next-9e3b772b8-20220608";function IM(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(IM)}catch(t){console.error(t)}}IM(),LP.exports=Yr;var iE=LP.exports;const Fa=Lr(iE),RW=yP({__proto__:null,default:Fa},[iE]);var MW,xA=iE;MW=xA.createRoot,xA.hydrateRoot;var PM={exports:{}},RM={};/**
41 * @license React
42 * use-sync-external-store-with-selector.production.min.js
43 *
44 * Copyright (c) Facebook, Inc. and its affiliates.
45 *
46 * This source code is licensed under the MIT license found in the
47 * LICENSE file in the root directory of this source tree.
48 */var Md=I;function DW(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var NW=typeof Object.is=="function"?Object.is:DW,$W=Md.useSyncExternalStore,FW=Md.useRef,zW=Md.useEffect,BW=Md.useMemo,jW=Md.useDebugValue;RM.useSyncExternalStoreWithSelector=function(t,e,n,r,i){var s=FW(null);if(s.current===null){var a={hasValue:!1,value:null};s.current=a}else a=s.current;s=BW(function(){function c(y){if(!f){if(f=!0,d=y,y=r(y),i!==void 0&&a.hasValue){var w=a.value;if(i(w,y))return g=w}return g=y}if(w=g,NW(d,y))return w;var T=r(y);return i!==void 0&&i(w,T)?w:(d=y,g=T)}var f=!1,d,g,v=n===void 0?null:n;return[function(){return c(e())},v===null?void 0:function(){return c(v())}]},[e,n,r,i]);var l=$W(t,s[0],s[1]);return zW(function(){a.hasValue=!0,a.value=l},[l]),jW(l),l};PM.exports=RM;var UW=PM.exports,$r="default"in Xf?Ie:Xf,SA=Symbol.for("react-redux-context"),EA=typeof globalThis<"u"?globalThis:{};function HW(){if(!$r.createContext)return{};const t=EA[SA]??(EA[SA]=new Map);let e=t.get($r.createContext);return e||(e=$r.createContext(null),t.set($r.createContext,e)),e}var Jo=HW(),WW=()=>{throw new Error("uSES not initialized!")};function sE(t=Jo){return function(){return $r.useContext(t)}
48}var MM=sE(),DM=WW,VW=t=>{DM=t},KW=(t,e)=>t===e;function qW(t=Jo){const e=t===Jo?MM:sE(t),n=(r,i={})=>{const{equalityFn:s=KW,devModeChecks:a={}}=typeof i=="function"?{equalityFn:i}:i,{store:l,subscription:c,getServerState:f,stabilityCheck:d,identityFunctionCheck:g}=e();$r.useRef(!0);const v=$r.useCallback({[r.name](w){return r(w)}}[r.name],[r,d,a.stabilityCheck]),y=DM(c.addNestedSub,l.getState,f||l.getState,v,s);return $r.useDebugValue(y),y};return Object.assign(n,{withTypes:()=>n}),n}var Oxe=qW();function GW(t){t()}function YW(){let t=null,e=null;return{clear(){t=null,e=null},notify(){GW(()=>{let n=t;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=t;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const i=e={callback:n,next:null,prev:e};return i.prev?i.prev.next=i:t=i,function(){!r||t===null||(r=!1,i.next?i.next.prev=i.prev:e=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}var CA={notify(){},get:()=>[]};function XW(t,e){let n,r=CA,i=0,s=!1;function a(T){d();const E=r.subscribe(T);let x=!1;return()=>{x||(x=!0,E(),g())}}function l(){r.notify()}function c(){w.onStateChange&&w.onStateChange()}function f(){return s}function d(){i++,n||(n=e?e.addNestedSub(c):t.subscribe(c),r=YW())}function g(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=CA)}function v(){s||(s=!0,d())}function y(){s&&(s=!1,g())}const w={addNestedSub:a,notifyNestedSubs:l,handleChangeWrapper:c,isSubscribed:f,trySubscribe:v,tryUnsubscribe:y,getListeners:()=>r};return w}var QW=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",JW=QW?$r.useLayoutEffect:$r.useEffect;function ZW({store:t,context:e,children:n,serverState:r,stabilityCheck:i="once",identityFunctionCheck:s="once"}){const a=$r.useMemo(()=>{const f=XW(t);return{store:t,subscription:f,getServerState:r?()=>r:void 0,stabilityCheck:i,identityFunctionCheck:s}},[t,r,i,s]),l=$r.useMemo(()=>t.getState(),[t]);JW(()=>{const{subscription:f}=a;return f.onStateChange=f.notifyNestedSubs,f.trySubscribe(),l!==t.getState()&&f.notifyNestedSubs(),()=>{f.tryUnsubscribe(),f.onStateChange=void 0}},[a,l]);const c=e||Jo;return $r.createElement(c.Provider,{value:a},n)}var Ixe=ZW;function NM(t=Jo){const e=t===Jo?MM:sE(t),n=()=>{const{store:r}=e();return r};return Object.assign(n,{withTypes:()=>n}),n}var e4=NM();function t4(t=Jo){const e=t===Jo?e4:NM(t),n=()=>e().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var Pxe=t4();VW(UW.useSyncExternalStoreWithSelector);function Dn(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var n4=typeof Symbol=="function"&&Symbol.observable||"@@observable",TA=n4,Bw=()=>Math.random().toString(36).substring(7).split("").join("."),r4={INIT:`@@redux/INIT${Bw()}`,REPLACE:`@@redux/REPLACE${Bw()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Bw()}`},kg=r4;function oE(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function $M(t,e,n){if(typeof t!="function")throw new Error(Dn(2));if(typeof e=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Dn(0));if(typeof e=="function"&&typeof n>"u"&&(n=e,e=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Dn(1));return n($M)(t,e)}let r=t,i=e,s=new Map,a=s,l=0,c=!1;
48function f(){a===s&&(a=new Map,s.forEach((E,x)=>{a.set(x,E)}))}function d(){if(c)throw new Error(Dn(3));return i}function g(E){if(typeof E!="function")throw new Error(Dn(4));if(c)throw new Error(Dn(5));let x=!0;f();const b=l++;return a.set(b,E),function(){if(x){if(c)throw new Error(Dn(6));x=!1,f(),a.delete(b),s=null}}}function v(E){if(!oE(E))throw new Error(Dn(7));if(typeof E.type>"u")throw new Error(Dn(8));if(typeof E.type!="string")throw new Error(Dn(17));if(c)throw new Error(Dn(9));try{c=!0,i=r(i,E)}finally{c=!1}return(s=a).forEach(b=>{b()}),E}function y(E){if(typeof E!="function")throw new Error(Dn(10));r=E,v({type:kg.REPLACE})}function w(){const E=g;return{subscribe(x){if(typeof x!="object"||x===null)throw new Error(Dn(11));function b(){const A=x;A.next&&A.next(d())}return b(),{unsubscribe:E(b)}},[TA](){return this}}}return v({type:kg.INIT}),{dispatch:v,subscribe:g,getState:d,replaceReducer:y,[TA]:w}}function i4(t){Object.keys(t).forEach(e=>{const n=t[e];if(typeof n(void 0,{type:kg.INIT})>"u")throw new Error(Dn(12));if(typeof n(void 0,{type:kg.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Dn(13))})}function s4(t){const e=Object.keys(t),n={};for(let s=0;s<e.length;s++){const a=e[s];typeof t[a]=="function"&&(n[a]=t[a])}const r=Object.keys(n);let i;try{i4(n)}catch(s){i=s}return function(a={},l){if(i)throw i;let c=!1;const f={};for(let d=0;d<r.length;d++){const g=r[d],v=n[g],y=a[g],w=v(y,l);if(typeof w>"u")throw l&&l.type,new Error(Dn(14));f[g]=w,c=c||w!==y}return c=c||r.length!==Object.keys(a).length,c?f:a}}function Lg(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,n)=>(...r)=>e(n(...r)))}function o4(...t){return e=>(n,r)=>{const i=e(n,r);let s=()=>{throw new Error(Dn(15))};const a={getState:i.getState,dispatch:(c,...f)=>s(c,...f)},l=t.map(c=>c(a));return s=Lg(...l)(i.dispatch),{...i,dispatch:s}}}function a4(t){return oE(t)&&"type"in t&&typeof t.type=="string"}var FM=Symbol.for("immer-nothing"),_A=Symbol.for("immer-draftable"),Hr=Symbol.for("immer-state");function $i(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var Nu=Object.getPrototypeOf;function Zo(t){return!!t&&!!t[Hr]}function Qs(t){var e;return t?zM(t)||Array.isArray(t)||!!t[_A]||!!((e=t.constructor)!=null&&e[_A])||Um(t)||Hm(t):!1}var l4=Object.prototype.constructor.toString();function zM(t){if(!t||typeof t!="object")return!1;const e=Nu(t);if(e===null)return!0;const n=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===l4}function hd(t,e){jm(t)===0?Object.entries(t).forEach(([n,r])=>{e(n,r,t)}):t.forEach((n,r)=>e(r,n,t))}function jm(t){const e=t[Hr];return e?e.type_:Array.isArray(t)?1:Um(t)?2:Hm(t)?3:0}function qb(t,e){return jm(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function BM(t,e,n){const r=jm(t);r===2?t.set(e,n):r===3?t.add(n):t[e]=n}function u4(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}function Um(t){return t instanceof Map}function Hm(t){return t instanceof Set}function Pa(t){return t.copy_||t.base_}function Gb(t,e){if(Um(t))return new Map(t);if(Hm(t))return new Set(t);if(Array.isArray(t))return Array.prototype.slice.call(t);if(!e&&zM(t))return Nu(t)?{...t}:Object.assign(Object.create(null),t);const n=Object.getOwnPropertyDescriptors(t);delete n[Hr];let r=Reflect.ownKeys(n);for(let i=0;i<r.length;i++){const s=r[i],a=n[s];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(n[s]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[s]})}return Object.create(Nu(t),n)}function aE(t,e=!1){return Wm(t)||Zo(t)||!Qs(t)||(jm(t)>1&&(t.set=t.add=t.clear=t.delete=c4),Object.freeze(t),e&&hd(t,(n,r)=>aE(r,!0))),t}function c4(){$i(2)}function Wm(t){return Object.isFrozen(t)}var f4={};function sl(t){const e=f4[t];return e||$i(0,t),e}var gd;function jM(){return gd}function d4(t,e){return{drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function AA(t,e){e&&(sl("Patches"),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function Yb(t){Xb(t),t.drafts_.forEach(p4),t.drafts_=null}function Xb(t){t===gd&&(gd=t.parent_)}function kA(t){return gd=d4(gd,t)}function p4(t){const e=t[Hr];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function LA(t,e){e.unfinalizedDrafts_=e.drafts_.length;const n=e.drafts_[0];return t!==void 0&&t!==n?(n[Hr].modified_&&(Yb(e),$i(4)),Qs(t)&&(t=Og(e,t),e.parent_||Ig(e,t)),e.patches_&&sl("Patches").generateReplacementPatches_(n[Hr].base_,t,e.patches_,e.inversePatches_)):t=Og(e,n,[]),Yb(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==FM?t:void 0}function Og(t,e,n){if(Wm(e))return e;const r=e[Hr];if(!r)return hd(e,(i,s)=>
48OA(t,r,e,i,s,n)),e;if(r.scope_!==t)return e;if(!r.modified_)return Ig(t,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let s=i,a=!1;r.type_===3&&(s=new Set(i),i.clear(),a=!0),hd(s,(l,c)=>OA(t,r,i,l,c,n,a)),Ig(t,i,!1),n&&t.patches_&&sl("Patches").generatePatches_(r,n,t.patches_,t.inversePatches_)}return r.copy_}function OA(t,e,n,r,i,s,a){if(Zo(i)){const l=s&&e&&e.type_!==3&&!qb(e.assigned_,r)?s.concat(r):void 0,c=Og(t,i,l);if(BM(n,r,c),Zo(c))t.canAutoFreeze_=!1;else return}else a&&n.add(i);if(Qs(i)&&!Wm(i)){if(!t.immer_.autoFreeze_&&t.unfinalizedDrafts_<1)return;Og(t,i),(!e||!e.scope_.parent_)&&Ig(t,i)}}function Ig(t,e,n=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&aE(e,n)}function h4(t,e){const n=Array.isArray(t),r={type_:n?1:0,scope_:e?e.scope_:jM(),modified_:!1,finalized_:!1,assigned_:{},parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,s=lE;n&&(i=[r],s=md);const{revoke:a,proxy:l}=Proxy.revocable(i,s);return r.draft_=l,r.revoke_=a,l}var lE={get(t,e){if(e===Hr)return t;const n=Pa(t);if(!qb(n,e))return g4(t,n,e);const r=n[e];return t.finalized_||!Qs(r)?r:r===jw(t.base_,e)?(Uw(t),t.copy_[e]=Jb(r,t)):r},has(t,e){return e in Pa(t)},ownKeys(t){return Reflect.ownKeys(Pa(t))},set(t,e,n){const r=UM(Pa(t),e);if(r!=null&&r.set)return r.set.call(t.draft_,n),!0;if(!t.modified_){const i=jw(Pa(t),e),s=i==null?void 0:i[Hr];if(s&&s.base_===n)return t.copy_[e]=n,t.assigned_[e]=!1,!0;if(u4(n,i)&&(n!==void 0||qb(t.base_,e)))return!0;Uw(t),Qb(t)}return t.copy_[e]===n&&(n!==void 0||e in t.copy_)||Number.isNaN(n)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=n,t.assigned_[e]=!0),!0},deleteProperty(t,e){return jw(t.base_,e)!==void 0||e in t.base_?(t.assigned_[e]=!1,Uw(t),Qb(t)):delete t.assigned_[e],t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){const n=Pa(t),r=Reflect.getOwnPropertyDescriptor(n,e);return r&&{writable:!0,configurable:t.type_!==1||e!=="length",enumerable:r.enumerable,value:n[e]}},defineProperty(){$i(11)},getPrototypeOf(t){return Nu(t.base_)},setPrototypeOf(){$i(12)}},md={};hd(lE,(t,e)=>{md[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}});md.deleteProperty=function(t,e){return md.set.call(this,t,e,void 0)};md.set=function(t,e,n){return lE.set.call(this,t[0],e,n,t[0])};function jw(t,e){const n=t[Hr];return(n?Pa(n):t)[e]}function g4(t,e,n){var i;const r=UM(e,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(t.draft_):void 0}function UM(t,e){if(!(e in t))return;let n=Nu(t);for(;n;){const r=Object.getOwnPropertyDescriptor(n,e);if(r)return r;n=Nu(n)}}function Qb(t){t.modified_||(t.modified_=!0,t.parent_&&Qb(t.parent_))}function Uw(t){t.copy_||(t.copy_=Gb(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var m4=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,n,r)=>{if(typeof e=="function"&&typeof n!="function"){const s=n;n=e;const a=this;return function(c=s,...f){return a.produce(c,d=>n.call(this,d,...f))}}typeof n!="function"&&$i(6),r!==void 0&&typeof r!="function"&&$i(7);let i;if(Qs(e)){const s=kA(this),a=Jb(e,void 0);let l=!0;try{i=n(a),l=!1}finally{l?Yb(s):Xb(s)}return AA(s,r),LA(i,s)}else if(!e||typeof e!="object"){if(i=n(e),i===void 0&&(i=e),i===FM&&(i=void 0),this.autoFreeze_&&aE(i,!0),r){const s=[],a=[];sl("Patches").generateReplacementPatches_(e,i,s,a),r(s,a)}return i}else $i(1,e)},this.produceWithPatches=(e,n)=>{if(typeof e=="function")return(a,...l)=>this.produceWithPatches(a,c=>e(c,...l));let r,i;return[this.produce(e,n,(a,l)=>{r=a,i=l}),r,i]},typeof(t==null?void 0:t.autoFreeze)=="boolean"&&this.setAutoFreeze(t.autoFreeze),typeof(t==null?void 0:t.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(t.useStrictShallowCopy)}createDraft(t){Qs(t)||$i(8),Zo(t)&&(t=HM(t));const e=kA(this),n=Jb(t,void 0);return n[Hr].isManual_=!0,Xb(e),n}finishDraft(t,e){const n=t&&t[Hr];(!n||!n.isManual_)&&$i(9);const{scope_:r}=n;return AA(r,e),LA(void 0,r)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}applyPatches(t,e){let n;for(n=e.length-1;n>=0;n--){const i=e[n];
48if(i.path.length===0&&i.op==="replace"){t=i.value;break}}n>-1&&(e=e.slice(n+1));const r=sl("Patches").applyPatches_;return Zo(t)?r(t,e):this.produce(t,i=>r(i,e))}};function Jb(t,e){const n=Um(t)?sl("MapSet").proxyMap_(t,e):Hm(t)?sl("MapSet").proxySet_(t,e):h4(t,e);return(e?e.scope_:jM()).drafts_.push(n),n}function HM(t){return Zo(t)||$i(10,t),WM(t)}function WM(t){if(!Qs(t)||Wm(t))return t;const e=t[Hr];let n;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,n=Gb(t,e.scope_.immer_.useStrictShallowCopy_)}else n=Gb(t,!0);return hd(n,(r,i)=>{BM(n,r,WM(i))}),e&&(e.finalized_=!1),n}var Wr=new m4,VM=Wr.produce;Wr.produceWithPatches.bind(Wr);Wr.setAutoFreeze.bind(Wr);Wr.setUseStrictShallowCopy.bind(Wr);Wr.applyPatches.bind(Wr);Wr.createDraft.bind(Wr);Wr.finishDraft.bind(Wr);function v4(t,e=`expected a function, instead received ${typeof t}`){if(typeof t!="function")throw new TypeError(e)}function y4(t,e=`expected an object, instead received ${typeof t}`){if(typeof t!="object")throw new TypeError(e)}function w4(t,e="expected all items to be functions, instead received the following types: "){if(!t.every(n=>typeof n=="function")){const n=t.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${e}[${n}]`)}}var IA=t=>Array.isArray(t)?t:[t];function b4(t){const e=Array.isArray(t[0])?t[0]:t;return w4(e,"createSelector expects all input-selectors to be functions, but received the following types: "),e}function x4(t,e){const n=[],{length:r}=t;for(let i=0;i<r;i++)n.push(t[i].apply(null,e));return n}var S4=class{constructor(t){this.value=t}deref(){return this.value}},E4=typeof WeakRef<"u"?WeakRef:S4,C4=0,PA=1;function Zp(){return{s:C4,v:void 0,o:null,p:null}}function uE(t,e={}){let n=Zp();const{resultEqualityCheck:r}=e;let i,s=0;function a(){var g;let l=n;const{length:c}=arguments;for(let v=0,y=c;v<y;v++){const w=arguments[v];if(typeof w=="function"||typeof w=="object"&&w!==null){let T=l.o;T===null&&(l.o=T=new WeakMap);const E=T.get(w);E===void 0?(l=Zp(),T.set(w,l)):l=E}else{let T=l.p;T===null&&(l.p=T=new Map);const E=T.get(w);E===void 0?(l=Zp(),T.set(w,l)):l=E}}const f=l;let d;if(l.s===PA?d=l.v:(d=t.apply(null,arguments),s++),f.s=PA,r){const v=((g=i==null?void 0:i.deref)==null?void 0:g.call(i))??i;v!=null&&r(v,d)&&(d=v,s!==0&&s--),i=typeof d=="object"&&d!==null||typeof d=="function"?new E4(d):d}return f.v=d,d}return a.clearCache=()=>{n=Zp(),a.resetResultsCount()},a.resultsCount=()=>s,a.resetResultsCount=()=>{s=0},a}function KM(t,...e){const n=typeof t=="function"?{memoize:t,memoizeOptions:e}:t,r=(...i)=>{let s=0,a=0,l,c={},f=i.pop();typeof f=="object"&&(c=f,f=i.pop()),v4(f,`createSelector expects an output function after the inputs, but received: [${typeof f}]`);const d={...n,...c},{memoize:g,memoizeOptions:v=[],argsMemoize:y=uE,argsMemoizeOptions:w=[],devModeChecks:T={}}=d,E=IA(v),x=IA(w),b=b4(i),C=g(function(){return s++,f.apply(null,arguments)},...E),A=y(function(){a++;const k=x4(b,arguments);return l=C.apply(null,k),l},...x);return Object.assign(A,{resultFunc:f,memoizedResultFunc:C,dependencies:b,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>l,recomputations:()=>s,resetRecomputations:()=>{s=0},memoize:g,argsMemoize:y})};return Object.assign(r,{withTypes:()=>r}),r}var T4=KM(uE),_4=Object.assign((t,e=T4)=>{y4(t,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof t}`);const n=Object.keys(t),r=n.map(s=>t[s]);return e(r,(...s)=>s.reduce((a,l,c)=>(a[n[c]]=l,a),{}))},{withTypes:()=>_4});function qM(t){return({dispatch:n,getState:r})=>i=>s=>typeof s=="function"?s(n,r,t):i(s)}var A4=qM(),k4=qM,L4=(...t)=>{const e=KM(...t),n=Object.assign((...r)=>{const i=e(...r),s=(a,...l)=>i(Zo(a)?HM(a):a,...l);return Object.assign(s,i),s},{withTypes:()=>n});return n};L4(uE);var O4=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Lg:Lg.apply(null,arguments)},I4=t=>t&&typeof t.match=="function";function Hs(t,e){function n(...r){if(e){let i=e(...r);if(!i)throw new Error(Cr(0));return{type:t,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:t,payload:r[0]}}return n.toString=()=>`${t}`,n.type=t,n.match=r=>a4(r)&&r.type===t,n}var GM=class Of extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,Of.prototype)}static get[Symbol.species](){return Of}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new Of(...e[0].concat(this)):new Of(...e.concat(this))}};function RA(t){return Qs(t)?VM(t,()=>{}):t}function MA(t,e,n){if(t.has(e)){let i=t.get(e);return n.update&&(i=n.update(i,e,t),t.set(e,i)),i}if(!n.insert)throw new Error(Cr(10));const r=n.insert(e,t);return t.set(e,r),r}function P4(t){return typeof t=="boolean"}var R4=()=>function(e){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:s=!0}=e??{};let a=new GM;return n&&(P4(n)?a.push(A4):a.push(k4(n.extraArgument))),a},M4="RTK_autoBatch",YM=t=>e=>{setTimeout(e,t)},D4=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:YM(10),N4=(t={type:"raf"})=>e=>(...n)=>{const r=e(...n);let i=!0,s=!1,a=!1;const l=new Set,c=t.type==="tick"?queueMicrotask:t.type==="raf"?D4:t.type==="callback"?t.queueNotification:YM(t.timeout),f=()=>{a=!1,s&&(s=!1,l.forEach(d=>d()))};return Object.assign({},r,{subscribe(d){const g=()=>i&&d(),v=r.subscribe(g);return l.add(d),()=>{v(),l.delete(d)}},dispatch(d){var g;try{return i=!((g=d==null?void 0:d.meta)!=null&&g[M4]),s=!i,s&&(a||(a=!0,c(f))),r.dispatch(d)}finally{i=!0}}})},$4=t=>function(n){const{autoBatch:r=!0}=n??{};let i=new GM(t);return r&&i.push(N4(typeof r=="object"?r:void 0)),i},F4=!0;function Rxe(t){const e=R4(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:s=void 0,enhancers:a=void 0}=t||{};let l;if(typeof n=="function")l=n;else if(oE(n))l=s4(n);else throw new Error(Cr(1));let c;typeof r=="function"?c=r(e):c=e();let f=Lg;i&&(f=O4({trace:!F4,...typeof i=="object"&&i}));const d=o4(...c),g=$4(d);let v=typeof a=="function"?a(g):g();const y=f(...v);return $M(l,s,y)}function XM(t){const e={},n=[];let r;const i={addCase(s,a){const l=typeof s=="string"?s:s.type;if(!l)throw new Error(Cr(28));if(l in e)throw new Error(Cr(29));return e[l]=a,i},addMatcher(s,a){return n.push({matcher:s,reducer:a}),i},addDefaultCase(s){return r=s,i}};return t(i),[e,n,r]}function z4(t){return typeof t=="function"}function B4(t,e){let[n,r,i]=XM(e),s;if(z4(t))s=()=>RA(t());else{const l=RA(t);s=()=>l}function a(l=s(),c){let f=[n[c.type],...r.filter(({matcher:d})=>d(c)).map(({reducer:d})=>d)];return f.filter(d=>!!d).length===0&&(f=[i]),f.reduce((d,g)=>{if(g)if(Zo(d)){const y=g(d,c);return y===void 0?d:y}else{if(Qs(d))return VM(d,v=>g(v,c));{const v=g(d,c);if(v===void 0){if(d===null)return d;throw new Error(Cr(9))}return v}}return d},l)}return a.getInitialState=s,a}var j4="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",QM=(t=21)=>{let e="",n=t;
48for(;n--;)e+=j4[Math.random()*64|0];return e},U4=(t,e)=>I4(t)?t.match(e):t(e);function H4(...t){return e=>t.some(n=>U4(n,e))}var W4=["name","message","stack","code"],Hw=class{constructor(t,e){ti(this,"_type");this.payload=t,this.meta=e}},DA=class{constructor(t,e){ti(this,"_type");this.payload=t,this.meta=e}},V4=t=>{if(typeof t=="object"&&t!==null){const e={};for(const n of W4)typeof t[n]=="string"&&(e[n]=t[n]);return e}return{message:String(t)}},Mxe=(()=>{function t(e,n,r){const i=Hs(e+"/fulfilled",(c,f,d,g)=>({payload:c,meta:{...g||{},arg:d,requestId:f,requestStatus:"fulfilled"}})),s=Hs(e+"/pending",(c,f,d)=>({payload:void 0,meta:{...d||{},arg:f,requestId:c,requestStatus:"pending"}})),a=Hs(e+"/rejected",(c,f,d,g,v)=>({payload:g,error:(r&&r.serializeError||V4)(c||"Rejected"),meta:{...v||{},arg:d,requestId:f,rejectedWithValue:!!g,requestStatus:"rejected",aborted:(c==null?void 0:c.name)==="AbortError",condition:(c==null?void 0:c.name)==="ConditionError"}}));function l(c){return(f,d,g)=>{const v=r!=null&&r.idGenerator?r.idGenerator(c):QM(),y=new AbortController;let w,T;function E(b){T=b,y.abort()}const x=async function(){var A,O;let b;try{let k=(A=r==null?void 0:r.condition)==null?void 0:A.call(r,c,{getState:d,extra:g});if(q4(k)&&(k=await k),k===!1||y.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const R=new Promise(($,j)=>{w=()=>{j({name:"AbortError",message:T||"Aborted"})},y.signal.addEventListener("abort",w)});f(s(v,c,(O=r==null?void 0:r.getPendingMeta)==null?void 0:O.call(r,{requestId:v,arg:c},{getState:d,extra:g}))),b=await Promise.race([R,Promise.resolve(n(c,{dispatch:f,getState:d,extra:g,requestId:v,signal:y.signal,abort:E,rejectWithValue:($,j)=>new Hw($,j),fulfillWithValue:($,j)=>new DA($,j)})).then($=>{if($ instanceof Hw)throw $;return $ instanceof DA?i($.payload,v,c,$.meta):i($,v,c)})])}catch(k){b=k instanceof Hw?a(null,v,c,k.payload,k.meta):a(k,v,c)}finally{w&&y.signal.removeEventListener("abort",w)}return r&&!r.dispatchConditionRejection&&a.match(b)&&b.meta.condition||f(b),b}();return Object.assign(x,{abort:E,requestId:v,arg:c,unwrap(){return x.then(K4)}})}}return Object.assign(l,{pending:s,rejected:a,fulfilled:i,settled:H4(a,i),typePrefix:e})}return t.withTypes=()=>t,t})();function K4(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function q4(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var G4=Symbol.for("rtk-slice-createasyncthunk");function Y4(t,e){return`${t}/${e}`}function X4({creators:t}={}){var n;const e=(n=t==null?void 0:t.asyncThunk)==null?void 0:n[G4];return function(i){const{name:s,reducerPath:a=s}=i;if(!s)throw new Error(Cr(11));typeof process<"u";const l=(typeof i.reducers=="function"?i.reducers(J4()):i.reducers)||{},c=Object.keys(l),f={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},d={addCase(C,A){const O=typeof C=="string"?C:C.type;if(!O)throw new Error(Cr(12));if(O in f.sliceCaseReducersByType)throw new Error(Cr(13));return f.sliceCaseReducersByType[O]=A,d},addMatcher(C,A){return f.sliceMatchers.push({matcher:C,reducer:A}),d},exposeAction(C,A){return f.actionCreators[C]=A,d},exposeCaseReducer(C,A){return f.sliceCaseReducersByName[C]=A,d}};c.forEach(C=>{const A=l[C],O={reducerName:C,type:Y4(s,C),createNotation:typeof i.reducers=="function"};e5(A)?n5(O,A,d,e):Z4(O,A,d)});function g(){const[C={},A=[],O=void 0]=typeof i.extraReducers=="function"?XM(i.extraReducers):[i.extraReducers],k={...C,...f.sliceCaseReducersByType};return B4(i.initialState,R=>{for(let $ in k)R.addCase($,k[$]);for(let $ of f.sliceMatchers)R.addMatcher($.matcher,$.reducer);for(let $ of A)R.addMatcher($.matcher,$.reducer);O&&R.addDefaultCase(O)})}const v=C=>C,y=new Map;let w;function T(C,A){return w||(w=g()),w(C,A)}function E(){return w||(w=g()),w.getInitialState()}function x(C,A=!1){function O(R){let $=R[C];return typeof $>"u"&&A&&($=E()),$}function k(R=v){const $=MA(y,A,{insert:()=>new WeakMap});return MA($,R,{insert:()=>{const j={};for(const[W,H]of Object.entries(i.selectors??{}))j[W]=Q4(H,R,E,A);return j}})}return{reducerPath:C,getSelectors:k,get selectors(){return k(O)},selectSlice:O}}const b={name:s,reducer:T,actions:f.actionCreators,caseReducers:f.sliceCaseReducersByName,getInitialState:E,...x(a),injectInto(C,{reducerPath:A,...O}={}){const k=A??a;return C.inject({reducerPath:k,reducer:T},O),{...b,...x(k,!0)}}};return b}}function Q4(t,e,n,r){function i(s,...a){let l=e(s);return typeof l>"u"&&r&&(l=n()),t(l,...a)}return i.unwrapped=t,i}var Dxe=X4();function J4(){function t(e,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...n}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...n){return e(...n)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:n}},asyncThunk:t}}function Z4({type:t,reducerName:e,createNotation:n},r,i){let s,a;if("reducer"in r){if(n&&!t5(r))throw new Error(Cr(17));s=r.reducer,a=r.prepare}else s=r;i.addCase(t,s).exposeCaseReducer(e,s).exposeAction(e,a?Hs(t,a):Hs(t))}function e5(t){return t._reducerDefinitionType==="asyncThunk"}function t5(t){return t._reducerDefinitionType==="reducerWithPrepare"}function n5({type:t,reducerName:e},n,r,i){if(!i)throw new Error(Cr(18));const{payloadCreator:s,fulfilled:a,pending:l,rejected:c,settled:f,options:d}=n,g=i(t,s,d);r.exposeAction(e,g),a&&r.addCase(g.fulfilled,a),l&&r.addCase(g.pen
48ding,l),c&&r.addCase(g.rejected,c),f&&r.addMatcher(g.settled,f),r.exposeCaseReducer(e,{fulfilled:a||eh,pending:l||eh,rejected:c||eh,settled:f||eh})}function eh(){}var r5=(t,e)=>{if(typeof t!="function")throw new Error(Cr(32))},cE="listenerMiddleware",i5=t=>{let{type:e,actionCreator:n,matcher:r,predicate:i,effect:s}=t;if(e)i=Hs(e).match;else if(n)e=n.type,i=n.match;else if(r)i=r;else if(!i)throw new Error(Cr(21));return r5(s),{predicate:i,type:e,effect:s}},s5=Object.assign(t=>{const{type:e,predicate:n,effect:r}=i5(t);return{id:QM(),effect:r,type:e,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(Cr(22))}}},{withTypes:()=>s5}),o5=Object.assign(Hs(`${cE}/add`),{withTypes:()=>o5});Hs(`${cE}/removeAll`);var a5=Object.assign(Hs(`${cE}/remove`),{withTypes:()=>a5});function Cr(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var jt={};function l5(t){return!!(t&&typeof t.then=="function")}function Pg(t){return t||(t=0),new Promise(function(e){return setTimeout(e,t)})}function u5(t,e){return Math.floor(Math.random()*(e-t+1)+t)}function Vm(){return Math.random().toString(36).substring(2)}var NA=0,Ww=0;function Km(){var t=new Date().getTime();return t===NA?(Ww++,t*1e3+Ww):(NA=t,Ww=0,t*1e3)}var Dd=Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]",c5=Km,f5="native";function d5(t){var e={messagesCallback:null,bc:new BroadcastChannel(t),subFns:[]};return e.bc.onmessage=function(n){e.messagesCallback&&e.messagesCallback(n.data)},e}function p5(t){t.bc.close(),t.subFns=[]}function h5(t,e){try{return t.bc.postMessage(e,!1),Promise.resolve()}catch(n){return Promise.reject(n)}}function g5(t,e){t.messagesCallback=e}function m5(){if(Dd&&typeof window>"u")return!1;if(typeof BroadcastChannel=="function"){if(BroadcastChannel._pubkey)throw new Error("BroadcastChannel: Do not overwrite window.BroadcastChannel with this module, this is not a polyfill");return!0}else return!1}function v5(){return 150}const y5={create:d5,close:p5,onMessage:g5,postMessage:h5,canBeUsed:m5,type:f5,averageResponseTime:v5,microSeconds:c5};var JM=function(){function t(e){this.ttl=e,this.set=new Set,this.timeMap=new Map}return t.prototype.has=function(e){return this.set.has(e)},t.prototype.add=function(e){var n=this;this.timeMap.set(e,ZM()),this.set.add(e),setTimeout(function(){w5(n)},0)},t.prototype.clear=function(){this.set.clear(),this.timeMap.clear()},t}();function w5(t){for(var e=ZM()-t.ttl,n=t.set[Symbol.iterator]();;){var r=n.next().value;if(!r)return;var i=t.timeMap.get(r);if(i<e)t.timeMap.delete(r),t.set.delete(r);else return}}function ZM(){return new Date().getTime()}function qm(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=JSON.parse(JSON.stringify(t));return typeof e.webWorkerSupport>"u"&&(e.webWorkerSupport=!0),e.idb||(e.idb={}),e.idb.ttl||(e.idb.ttl=1e3*45),e.idb.fallbackInterval||(e.idb.fallbackInterval=150),t.idb&&typeof t.idb.onclose=="function"&&(e.idb.onclose=t.idb.onclose),e.localstorage||(e.localstorage={}),e.localstorage.removeTimeout||(e.localstorage.removeTimeout=1e3*60),t.methods&&(e.methods=t.methods),e.node||(e.node={}),e.node.ttl||(e.node.ttl=1e3*60*2),typeof e.node.useFastPath>"u"&&(e.node.useFastPath=!0),e}var b5=Km,x5="pubkey.broadcast-channel-0-",Js="messages",S5="idb";function eD(){if(typeof indexedDB<"u")return indexedDB;if(typeof window<"u"){if(typeof window.mozIndexedDB<"u")return window.mozIndexedDB;if(typeof window.webkitIndexedDB<"u")return window.webkitIndexedDB;if(typeof window.msIndexedDB<"u")return window.msIndexedDB}return!1}function E5(t){var e=eD(),n=x5+t,r=e.open(n,1);r.onupgradeneeded=function(s){var a=s.target.result;a.createObjectStore(Js,{keyPath:"id",autoIncrement:!0})};var i=new Promise(function(s,a){r.onerror=function(l){return a(l)},r.onsuccess=function(){s(r.result)}});return i}function C5(t,e,n){var r=new Date().getTime(),i={uuid:e,time:r,data:n},s=t.transaction([Js],"readwrite");return new Promise(function(a,l){s.oncomplete=function(){return a()},s.onerror=function(f){return l(f)};var c=s.objectStore(Js);c.add(i)})}function T5(t,e){var n=t.transaction(Js).objectStore(Js),r=[];function i(){try{var s=IDBKeyRange.bound(e+1,1/0);return n.openCursor(s)}catch{return n.openCursor()}}return new Promise(function(s){i().onsuccess=function(a){var l=a.target.result;l?l.value.id<e+1?l.continue(e+1):(r.push(l.value),l.continue()):s(r)}})}function _5(t,e){var n=t.transaction([Js],"readwrite").objectStore(Js).delete(e);return new Promise(function(r){n.onsuccess=function(){return r()}})}function A5(t,e){var n=new Date().getTime()-e,r=t.transaction(Js).objectStore(Js),i=[];return new Promise(function(s){r.openCursor().onsuccess=function(a){var l=a.target.result;if(l){var c=l.value;if(c.time<n)i.push(c),l.continue();else{s(i);return}}else s(i)}})}function k5(t,e){return A5(t,e).then(function(n){return Promise.all(n.map(function(r){return _5(t,r.id)}))})}function L5(t,e){return e=qm(e),E5(t).then(function(n){var r={closed:!1,lastCursorId:0,channelName:t,options:e,uuid:Vm(),eMIs:new JM(e.idb.ttl*2),writeBlockPromise:Promise.resolve(),messagesCallback:null,readQueuePromises:[],db:n};
48return n.onclose=function(){r.closed=!0,e.idb.onclose&&e.idb.onclose()},tD(r),r})}function tD(t){t.closed||nD(t).then(function(){return Pg(t.options.idb.fallbackInterval)}).then(function(){return tD(t)})}function O5(t,e){return!(t.uuid===e.uuid||e.eMIs.has(t.id)||t.data.time<e.messagesCallbackTime)}function nD(t){return t.closed||!t.messagesCallback?Promise.resolve():T5(t.db,t.lastCursorId).then(function(e){var n=e.filter(function(r){return!!r}).map(function(r){return r.id>t.lastCursorId&&(t.lastCursorId=r.id),r}).filter(function(r){return O5(r,t)}).sort(function(r,i){return r.time-i.time});return n.forEach(function(r){t.messagesCallback&&(t.eMIs.add(r.id),t.messagesCallback(r.data))}),Promise.resolve()})}function I5(t){t.closed=!0,t.db.close()}function P5(t,e){return t.writeBlockPromise=t.writeBlockPromise.then(function(){return C5(t.db,t.uuid,e)}).then(function(){u5(0,10)===0&&k5(t.db,t.options.idb.ttl)}),t.writeBlockPromise}function R5(t,e,n){t.messagesCallbackTime=n,t.messagesCallback=e,nD(t)}function M5(){if(Dd)return!1;var t=eD();return!!t}function D5(t){return t.idb.fallbackInterval*2}const N5={create:L5,close:I5,onMessage:R5,postMessage:P5,canBeUsed:M5,type:S5,averageResponseTime:D5,microSeconds:b5};var $5=Km,F5="pubkey.broadcastChannel-",z5="localstorage";function rD(){var t;if(typeof window>"u")return null;try{t=window.localStorage,t=window["ie8-eventlistener/storage"]||window.localStorage}catch{}return t}function iD(t){return F5+t}function B5(t,e){return new Promise(function(n){Pg().then(function(){var r=iD(t.channelName),i={token:Vm(),time:new Date().getTime(),data:e,uuid:t.uuid},s=JSON.stringify(i);rD().setItem(r,s);var a=document.createEvent("Event");a.initEvent("storage",!0,!0),a.key=r,a.newValue=s,window.dispatchEvent(a),n()})})}function j5(t,e){var n=iD(t),r=function(s){s.key===n&&e(JSON.parse(s.newValue))};return window.addEventListener("storage",r),r}function U5(t){window.removeEventListener("storage",t)}function H5(t,e){if(e=qm(e),!sD())throw new Error("BroadcastChannel: localstorage cannot be used");var n=Vm(),r=new JM(e.localstorage.removeTimeout),i={channelName:t,uuid:n,eMIs:r};return i.listener=j5(t,function(s){i.messagesCallback&&s.uuid!==n&&(!s.token||r.has(s.token)||s.data.time&&s.data.time<i.messagesCallbackTime||(r.add(s.token),i.messagesCallback(s.data)))}),i}function W5(t){U5(t.listener)}function V5(t,e,n){t.messagesCallbackTime=n,t.messagesCallback=e}function sD(){if(Dd)return!1;var t=rD();if(!t)return!1;try{var e="__broadcastchannel_check";t.setItem(e,"works"),t.removeItem(e)}catch{return!1}return!0}function K5(){var t=120,e=navigator.userAgent.toLowerCase();return e.includes("safari")&&!e.includes("chrome")?t*2:t}const q5={create:H5,close:W5,onMessage:V5,postMessage:B5,canBeUsed:sD,type:z5,averageResponseTime:K5,microSeconds:$5};var G5=Km,Y5="simulate",fE=new Set;function X5(t){var e={name:t,messagesCallback:null};return fE.add(e),e}function Q5(t){fE.delete(t)}function J5(t,e){return new Promise(function(n){return setTimeout(function(){var r=Array.from(fE);r.filter(function(i){return i.name===t.name}).filter(function(i){return i!==t}).filter(function(i){return!!i.messagesCallback}).forEach(function(i){return i.messagesCallback(e)}),n()},5)})}function Z5(t,e){t.messagesCallback=e}function e6(){return!0}function t6(){return 5}const n6={create:X5,close:Q5,onMessage:Z5,postMessage:J5,canBeUsed:e6,type:Y5,averageResponseTime:t6,microSeconds:G5};var Zb=[y5,N5,q5];if(Dd){var $A=require("../../src/methods/node.js");typeof $A.canBeUsed=="function"&&Zb.push($A)}function oD(t){var e=[].concat(t.methods,Zb).filter(Boolean);if(t.type){if(t.type==="simulate")return n6;var n=e.find(function(i){return i.type===t.type});if(n)return n;throw new Error("method-type "+t.type+" not found")}!t.webWorkerSupport&&!Dd&&(e=e.filter(function(i){return i.type!=="idb"}));var r=e.find(function(i){return i.canBeUsed()});if(r)return r;throw new Error("No useable methode found:"+JSON.stringify(Zb.map(function(i){return i.type})))}var dE=function(e,n){this.name=e,ex&&(n=ex),this.options=qm(n),this.method=oD(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,s6(this)};dE._pubkey=!0;function r6(t){t=qm(t);var e=oD(t);return e.type==="node"?e.clearNodeFolder().then(function(){return!0}):Promise.resolve(!1)}var ex;function i6(t){ex=t}dE.prototype={postMessage:function(e){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed");return FA(this,"message",e)},postInternal:function(e){return FA(this,"internal",e)},set onmessage(t){var e=this.method.microSeconds(),n={time:e,fn:t};BA(this,"message",this._onML),t&&typeof t=="function"?(this._onML=n,zA(this,"message",n)):this._onML=null},addEventListener:function(e,n){var r=this.method.microSeconds(),i={time:r,fn:n};zA(this,e,i)},removeEventListener:function(e,n){var r=this._addEL[e].find(function(i){return i.fn===n});BA(this,e,r)},close:function(){var e=this;if(!this.closed){this.closed=!0;var n=this._prepP?this._prepP:Promise.resolve();return this._onML=null,this._addEL.message=[],n.then(function(){return Promise.all(Array.from(e._uMP))}).then(function(){return Promise.all(e._befC.map(function(r){return r()}))}).then(function(){return e.method.close(e._state)})}}
48,get type(){return this.method.type},get isClosed(){return this.closed}};function FA(t,e,n){var r=t.method.microSeconds(),i={time:r,type:e,data:n},s=t._prepP?t._prepP:Promise.resolve();return s.then(function(){var a=t.method.postMessage(t._state,i);return t._uMP.add(a),a.catch().then(function(){return t._uMP.delete(a)}),a})}function s6(t){var e=t.method.create(t.name,t.options);l5(e)?(t._prepP=e,e.then(function(n){t._state=n})):t._state=e}function aD(t){return t._addEL.message.length>0||t._addEL.internal.length>0}function zA(t,e,n){t._addEL[e].push(n),o6(t)}function BA(t,e,n){t._addEL[e]=t._addEL[e].filter(function(r){return r!==n}),a6(t)}function o6(t){if(!t._iL&&aD(t)){var e=function(i){t._addEL[i.type].forEach(function(s){i.time>=s.time&&s.fn(i.data)})},n=t.method.microSeconds();t._prepP?t._prepP.then(function(){t._iL=!0,t.method.onMessage(t._state,e,n)}):(t._iL=!0,t.method.onMessage(t._state,e,n))}}function a6(t){if(t._iL&&!aD(t)){t._iL=!1;var e=t.method.microSeconds();t.method.onMessage(t._state,null,e)}}const l6=Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]";function u6(t){if(!(typeof WorkerGlobalScope=="function"&&self instanceof WorkerGlobalScope)){if(typeof window.addEventListener!="function")return;window.addEventListener("beforeunload",function(){t()},!0),window.addEventListener("unload",function(){t()},!0)}}const c6={add:u6},lD={},f6=Object.freeze(Object.defineProperty({__proto__:null,default:lD},Symbol.toStringTag,{value:"Module"}));var d6=l6?lD:c6,Ya=new Set,jA=!1;function p6(){jA||(jA=!0,d6.add(uD))}function h6(t){if(p6(),typeof t!="function")throw new Error("Listener is no function");Ya.add(t);var e={remove:function(){return Ya.delete(t)},run:function(){return Ya.delete(t),t()}};return e}function uD(){var t=[];return Ya.forEach(function(e){t.push(e()),Ya.delete(e)}),Promise.all(t)}function g6(){Ya.clear()}function m6(){return Ya.size}const v6={add:h6,runAll:uD,removeAll:g6,getSize:m6};var cD=function(e,n){this._channel=e,this._options=n,this.isLeader=!1,this.isDead=!1,this.token=Vm(),this._isApl=!1,this._reApply=!1,this._unl=[],this._lstns=[],this._invs=[],this._dpL=function(){},this._dpLC=!1};cD.prototype={applyOnce:function(){var e=this;if(this.isLeader||this.isDead)return Promise.resolve(!1);if(this._isApl)return this._reApply=!0,Promise.resolve(!1);this._isApl=!0;var n=!1,r=function(a){a.context==="leader"&&a.token!=e.token&&(a.action==="apply"&&a.token>e.token&&(n=!0),a.action==="tell"&&(n=!0))};this._channel.addEventListener("internal",r);var i=za(this,"apply").then(function(){return Pg(e._options.responseTime)}).then(function(){return n?Promise.reject(new Error):za(e,"apply")}).then(function(){return Pg(e._options.responseTime)}).then(function(){return n?Promise.reject(new Error):za(e)}).then(function(){return fD(e)}).then(function(){return!0}).catch(function(){return!1}).then(function(s){return e._channel.removeEventListener("internal",r),e._isApl=!1,!s&&e._reApply?(e._reApply=!1,e.applyOnce()):s});return i},awaitLeadership:function(){return this._aLP||(this._aLP=y6(this)),this._aLP},set onduplicate(t){this._dpL=t},die:function(){var e=this;if(!this.isDead)return this.isDead=!0,this._lstns.forEach(function(n){return e._channel.removeEventListener("internal",n)}),this._invs.forEach(function(n){return clearInterval(n)}),this._unl.forEach(function(n){n.remove()}),za(this,"death")}};function y6(t){return t.isLeader?Promise.resolve():new Promise(function(e){var n=!1;function r(){n||(n=!0,clearInterval(i),t._channel.removeEventListener("internal",s),e(!0))}t.applyOnce().then(function(){t.isLeader&&r()});var i=setInterval(function(){t.applyOnce().then(function(){t.isLeader&&r()})},t._options.fallbackInterval);t._invs.push(i);var s=function(l){l.context==="leader"&&l.action==="death"&&t.applyOnce().then(function(){t.isLeader&&r()})};t._channel.addEventListener("internal",s),t._lstns.push(s)})}function za(t,e){var n={context:"leader",action:e,token:t.token};return t._channel.postInternal(n)}function fD(t){t.isLeader=!0;var e=v6.add(function(){return t.die()});t._unl.push(e);var n=function(i){i.context==="leader"&&i.action==="apply"&&za(t,"tell"),i.context==="leader"&&i.action==="tell"&&!t._dpLC&&(t._dpLC=!0,t._dpL(),za(t,"tell"))};return t._channel.addEventListener("internal",n),t._lstns.push(n),za(t,"tell")}function w6(t,e){return t||(t={}),t=JSON.parse(JSON.stringify(t)),t.fallbackInterval||(t.fallbackInterval=3e3),t.responseTime||(t.responseTime=e.method.averageResponseTime(e.options)),t}function b6(t,e){if(t._leaderElector)throw new Error("BroadcastChannel already has a leader-elector");e=w6(e,t);var n=new cD(t,e);return t._befC.push(function(){return n.die()}),t._leaderElector=n,n}const x6=Object.freeze(Object.defineProperty({__proto__:null,BroadcastChannel:dE,beLeader:fD,clearNodeFolder:r6,createLeaderElection:b6,enforceOptions:i6},Symbol.toStringTag,{value:"Module"}
48)),S6=Cm(x6);var dD,pD,hD;Object.defineProperty(jt,"__esModule",{value:!0});jt.initMessageListener=hD=jt.initStateWithPrevTab=pD=jt.withReduxStateSync=jt.createReduxStateSync=dD=jt.createStateSyncMiddleware=jt.WINDOW_STATE_SYNC_ID=jt.INIT_MESSAGE_LISTENER=jt.RECEIVE_INIT_STATE=jt.SEND_INIT_STATE=jt.GET_INIT_STATE=void 0;jt.generateUuidForAction=vD;jt.isActionAllowed=yD;jt.isActionSynced=L6;jt.MessageListener=wD;var E6=S6,tx=0,pE=jt.GET_INIT_STATE="&_GET_INIT_STATE",hE=jt.SEND_INIT_STATE="&_SEND_INIT_STATE",gE=jt.RECEIVE_INIT_STATE="&_RECEIVE_INIT_STATE",C6=jt.INIT_MESSAGE_LISTENER="&_INIT_MESSAGE_LISTENER",nx={channel:"redux_state_sync",predicate:null,blacklist:[],whitelist:[],broadcastChannelOption:void 0,prepareState:function(e){return e},receiveState:function(e,n){return n}},T6=function(){return{type:pE}},_6=function(){return{type:hE}},A6=function(e){return{type:gE,payload:e}},k6=function(){return{type:C6}};function Co(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)}function gD(){return""+Co()+Co()+"-"+Co()+"-"+Co()+"-"+Co()+"-"+Co()+Co()+Co()}var mD=jt.WINDOW_STATE_SYNC_ID=gD();function vD(t){var e=t;return e.$uuid=gD(),e.$wuid=mD,e}function yD(t){var e=t.predicate,n=t.blacklist,r=t.whitelist,i=function(){return!0};return e&&typeof e=="function"?i=e:Array.isArray(n)?i=function(a){return n.indexOf(a.type)<0}:Array.isArray(r)&&(i=function(a){return r.indexOf(a.type)>=0}),i}function L6(t){return!!t.$isSync}function wD(t){var e=t.channel,n=t.dispatch,r=t.allowed,i=!1,s={};this.handleOnMessage=function(a){a.$wuid!==mD&&a.type!==gE&&a.$uuid&&a.$uuid!==tx&&(a.type===pE&&!s[a.$wuid]?(s[a.$wuid]=!0,n(_6())):a.type===hE&&!s[a.$wuid]?i||(i=!0,n(A6(a.payload))):r(a)&&(tx=a.$uuid,n(Object.assign(a,{$isSync:!0}))))},this.messageChannel=e,this.messageChannel.onmessage=this.handleOnMessage}dD=jt.createStateSyncMiddleware=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:nx,n=yD(e),r=new E6.BroadcastChannel(e.channel,e.broadcastChannelOption),i=e.prepareState||nx.prepareState,s=null;return function(a){var l=a.getState,c=a.dispatch;return function(f){return function(d){if(s||(s=new wD({channel:r,dispatch:c,allowed:n})),d&&!d.$uuid){var g=vD(d);tx=g.$uuid;try{if(d.type===hE)return l()&&(g.payload=i(l()),r.postMessage(g)),f(d);(n(g)||d.type===pE)&&r.postMessage(g)}catch{console.error("Your browser doesn't support cross tab communication")}}return f(Object.assign(d,{$isSync:typeof d.$isSync>"u"?!1:d.$isSync}))}}}};var O6=jt.createReduxStateSync=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:nx.receiveState;return function(r,i){var s=r;return i.type===gE&&(s=n(r,i.payload)),e(s,i)}};pD=jt.withReduxStateSync=O6;hD=jt.initStateWithPrevTab=function(e){var n=e.dispatch;n(T6())};jt.initMessageListener=function(e){var n=e.dispatch;n(k6())};var Ii;(function(t){t.DEBUG="DEBUG",t.ERROR="ERROR",t.INFO="INFO",t.WARN="WARN",t.VERBOSE="VERBOSE"})(Ii||(Ii={}));const I6="Logging",P6="NoHubcallbackProvidedException",UA={VERBOSE:1,DEBUG:2,INFO:3,WARN:4,ERROR:5};class bs{constructor(e,n=Ii.WARN){this.name=e,this.level=n,this._pluggables=[]}_padding(e){return e<10?"0"+e:""+e}_ts(){const e=new Date;return[this._padding(e.getMinutes()),this._padding(e.getSeconds())].join(":")+"."+e.getMilliseconds()}configure(e){return e?(this._config=e,this._config):this._config}_log(e,...n){let r=this.level;bs.LOG_LEVEL&&(r=bs.LOG_LEVEL),typeof window<"u"&&window.LOG_LEVEL&&(r=window.LOG_LEVEL);const i=UA[r];if(!(UA[e]>=i))return;let a=console.log.bind(console);e===Ii.ERROR&&console.error&&(a=console.error.bind(console)),e===Ii.WARN&&console.warn&&(a=console.warn.bind(console));const l=`[${e}] ${this._ts()} ${this.name}`;let c="";if(n.length===1&&typeof n[0]=="string")c=`${l} - ${n[0]}`,a(c);else if(n.length===1)c=`${l} ${n[0]}`,a(l,n[0]);else if(typeof n[0]=="string"){let f=n.slice(1);f.length===1&&(f=f[0]),c=`${l} - ${n[0]} ${f}`,a(`${l} - ${n[0]}`,f)}else c=`${l} ${n}`,a(l,n);for(const f of this._pluggables){const d={message:c,timestamp:Date.now()};f.pushLogs([d])}}log(...e){this._log(Ii.INFO,...e)}info(...e){this._log(Ii.INFO,...e)}warn(...e){this._log(Ii.WARN,...e)}error(...e){this._log(Ii.ERROR,...e)}debug(...e){this._log(Ii.DEBUG,...e)}verbose(...e){this._log(Ii.VERBOSE,...e)}addPluggable(e){e&&e.getCategoryName()===I6&&(this._pluggables.push(e),e.configure(this._config))}listPluggables(){return this._pluggables}}bs.LOG_LEVEL=null;
48class vi extends Error{constructor({message:e,name:n,recoverySuggestion:r,underlyingError:i}){super(e),this.name=n,this.underlyingError=i,this.recoverySuggestion=r,this.constructor=vi,Object.setPrototypeOf(this,vi.prototype)}}var Rg;(function(t){t.NoEndpointId="NoEndpointId",t.PlatformNotSupported="PlatformNotSupported",t.Unknown="Unknown"})(Rg||(Rg={}));const bD=(t,e=vi)=>(n,r,i)=>{const{message:s,recoverySuggestion:a}=t[r];if(!n)throw new e({name:r,message:i?`${s} ${i}`:s,recoverySuggestion:a})},xs=typeof Symbol<"u"?Symbol("amplify_default"):"@@amplify_default",df=new bs("Hub");class xD{constructor(e){this.listeners=new Map,this.protectedChannels=["core","auth","api","analytics","interactions","pubsub","storage","ui","xr"],this.name=e}_remove(e,n){const r=this.listeners.get(e);if(!r){df.warn(`No listeners for ${e}`);return}this.listeners.set(e,[...r.filter(({callback:i})=>i!==n)])}dispatch(e,n,r,i){typeof e=="string"&&this.protectedChannels.indexOf(e)>-1&&(i===xs||df.warn(`WARNING: ${e} is protected and dispatching on it can have unintended consequences`));const s={channel:e,payload:{...n},source:r,patternInfo:[]};try{this._toListeners(s)}catch(a){df.error(a)}}listen(e,n,r="noname"){let i;if(typeof n!="function")throw new vi({name:P6,message:"No callback supplied to Hub"});i=n;let s=this.listeners.get(e);return s||(s=[],this.listeners.set(e,s)),s.push({name:r,callback:i}),()=>{this._remove(e,i)}}_toListeners(e){const{channel:n,payload:r}=e,i=this.listeners.get(n);i&&i.forEach(s=>{df.debug(`Dispatching to ${n} with `,r);try{s.callback(e)}catch(a){df.error(a)}})}}const Zs=new xD("__default__"),HA=new xD("internal-hub");var ps;(function(t){t.AuthTokenConfigException="AuthTokenConfigException",t.AuthUserPoolAndIdentityPoolException="AuthUserPoolAndIdentityPoolException",t.AuthUserPoolException="AuthUserPoolException",t.InvalidIdentityPoolIdException="InvalidIdentityPoolIdException",t.OAuthNotConfigureException="OAuthNotConfigureException"})(ps||(ps={}));const R6={[ps.AuthTokenConfigException]:{message:"Auth Token Provider not configured.",recoverySuggestion:"Make sure to call Amplify.configure in your app."},[ps.AuthUserPoolAndIdentityPoolException]:{message:"Auth UserPool or IdentityPool not configured.",recoverySuggestion:"Make sure to call Amplify.configure in your app with UserPoolId and IdentityPoolId."},[ps.AuthUserPoolException]:{message:"Auth UserPool not configured.",recoverySuggestion:"Make sure to call Amplify.configure in your app with userPoolId and userPoolClientId."},[ps.InvalidIdentityPoolIdException]:{message:"Invalid identity pool id provided.",recoverySuggestion:"Make sure a valid identityPoolId is given in the config."},[ps.OAuthNotConfigureException]:{message:"oauth param not configured.",recoverySuggestion:"Make sure to call Amplify.configure with oauth parameter in your app."}},mE=bD(R6),M6=()=>{if(typeof window=="object"&&typeof window.crypto=="object")return window.crypto;if(typeof crypto=="object")return crypto;throw new vi({name:"MissingPolyfill",message:"Cannot resolve the `crypto` function from the environment."})},D6=()=>{if(typeof window<"u"&&typeof window.btoa=="function")return window.btoa;if(typeof btoa=="function")return btoa;throw new vi({name:"Base64EncoderError",message:"Cannot resolve the `btoa` function from the environment."})},N6=()=>{if(typeof window<"u"&&typeof window.atob=="function")return window.atob;if(typeof atob=="function")return atob;throw new vi({name:"Base64EncoderError",message:"Cannot resolve the `atob` function from the environment."})},SD={convert(t){return N6()(t)}};function Ot(t){let e=!0;return t?e=!!t.userPoolId&&!!t.userPoolClientId:e=!1,mE(e,ps.AuthUserPoolException)}function ED(t){var n,r,i,s,a,l,c,f;const e=!!((r=(n=t==null?void 0:t.loginWith)==null?void 0:n.oauth)!=null&&r.domain)&&!!((s=(i=t==null?void 0:t.loginWith)==null?void 0:i.oauth)!=null&&s.redirectSignOut)&&!!((l=(a=t==null?void 0:t.loginWith)==null?void 0:a.oauth)!=null&&l.redirectSignIn)&&!!((f=(c=t==null?void 0:t.loginWith)==null?void 0:c.oauth)!=null&&f.responseType);return mE(e,ps.OAuthNotConfigureException)}function Dh(t){const e=!!(t!=null&&t.identityPoolId);return mE(e,ps.InvalidIdentityPoolIdException)}function ol(t){const e=t.split(".");if(e.length!==3)throw new Error("Invalid token");try{const r=e[1].replace(/-/g,"+").replace(/_/g,"/"),i=decodeURIComponent(SD.convert(r).split("").map(a=>`%${`00${a.charCodeAt(0).toString(16)}`.slice(-2)}`).join("")),s=JSON.parse(i);return{toString:()=>t,payload:s}}catch{throw new Error("Invalid token payload")}}function WA({expiresAt:t,clockDrift:e}){return Date.now()+e>t}class $6{constructor(){}configure(e,n){this.authConfig=e,this.authOptions=n}async fetchAuthSession(e={}){var s,a,l,c,f,d;let n,r,i;return n=await this.getTokens(e),n?(i=(a=(s=n.accessToken)==null?void 0:s.payload)==null?void 0:a.sub,r=await((c=(l=this.authOptions)==null?void 0:l.credentialsProvider)==null?void 0:c.getCredentialsAndIdentityId({authConfig:this.authConfig,tokens:n,authenticated:!0,forceRefresh:e.forceRefresh}))):r=await((d=(f=this.authOptions)==null?void 0:f.credentialsProvider)==null?void 0:d.getCredentialsAndIdentityId({authConfig:this.authConfig,authenticated:!1,forceRefresh:e.forceRefresh})),{tokens:n,credentials:r==null?void 0:r.credentials,identityId:r==null?void 0:r.identityId,userSub:i}}async clearCredentials(){var e;if((e=this.authOptions)!=null&&e.credentialsProvider)return await this.authOptions.credentialsProvider.clearCredentialsAndIdentityId()}async getTokens(e){var n,r;return await((r=(n=this.authOptions)==null?void 0:n.tokenProvider)==null?void 0:r.getTokens(e))??void 0}}const F6=new bs("parseAWSExports"),z6={API_KEY:"apiKey",AWS_IAM:"iam",AMAZON_COGNITO_USER_POOLS:"userPool",OPENID_CONNECT:"oidc",NONE:"none",LAMBDA:"lambda"},CD=(t={})=>{var ie,me,ve,ze,it,qe;if(!Object.prototype.hasOwnProperty.call(t,"aws_project_region"))throw new vi({name:"InvalidParameterException",message:"Invalid config parameter.",recoverySuggestion:"Ensure passing the config object imported from  `amplifyconfiguration.json`."});const{aws_appsync_apiKey:e,aws_appsync_authenticationType:n,aws_appsync_graphqlEndpoint:r,aws_appsync_regi
48on:i,aws_bots_config:s,aws_cognito_identity_pool_id:a,aws_cognito_sign_up_verification_method:l,aws_cognito_mfa_configuration:c,aws_cognito_mfa_types:f,aws_cognito_password_protection_settings:d,aws_cognito_verification_mechanisms:g,aws_cognito_signup_attributes:v,aws_cognito_social_providers:y,aws_cognito_username_attributes:w,aws_mandatory_sign_in:T,aws_mobile_analytics_app_id:E,aws_mobile_analytics_app_region:x,aws_user_files_s3_bucket:b,aws_user_files_s3_bucket_region:C,aws_user_files_s3_dangerously_connect_to_http_endpoint_for_testing:A,aws_user_pools_id:O,aws_user_pools_web_client_id:k,geo:R,oauth:$,predictions:j,aws_cloud_logic_custom:W,Notifications:H,modelIntrospection:V}=t,F={};E&&(F.Analytics={Pinpoint:{appId:E,region:x}});const{InAppMessaging:z,Push:M}=H??{};if(z!=null&&z.AWSPinpoint||M!=null&&M.AWSPinpoint){if(z!=null&&z.AWSPinpoint){const{appId:Le,region:Oe}=z.AWSPinpoint;F.Notifications={InAppMessaging:{Pinpoint:{appId:Le,region:Oe}}}}if(M!=null&&M.AWSPinpoint){const{appId:Le,region:Oe}=M.AWSPinpoint;F.Notifications={PushNotification:{Pinpoint:{appId:Le,region:Oe}}}}}if(Array.isArray(s)&&(F.Interactions={LexV1:Object.fromEntries(s.map(Le=>[Le.name,Le]))}),r){const Le=z6[n];Le||F6.debug(`Invalid authentication type ${n}. Falling back to IAM.`),F.API={GraphQL:{endpoint:r,apiKey:e,region:i,defaultAuthMode:Le??"iam"}},V&&(F.API.GraphQL.modelIntrospection=V)}const q=c?{status:c&&c.toLowerCase(),totpEnabled:(f==null?void 0:f.includes("TOTP"))??!1,smsEnabled:(f==null?void 0:f.includes("SMS"))??!1}:void 0,U=d?{minLength:d.passwordPolicyMinLength,requireLowercase:((ie=d.passwordPolicyCharacters)==null?void 0:ie.includes("REQUIRES_LOWERCASE"))??!1,requireUppercase:((me=d.passwordPolicyCharacters)==null?void 0:me.includes("REQUIRES_UPPERCASE"))??!1,requireNumbers:((ve=d.passwordPolicyCharacters)==null?void 0:ve.includes("REQUIRES_NUMBERS"))??!1,requireSpecialCharacters:((ze=d.passwordPolicyCharacters)==null?void 0:ze.includes("REQUIRES_SYMBOLS"))??!1}:void 0,Y=Array.from(new Set([...g??[],...v??[]])).reduce((Le,Oe)=>({...Le,[Oe.toLowerCase()]:{required:!0}}),{}),Z=(w==null?void 0:w.includes("EMAIL"))??!1,fe=(w==null?void 0:w.includes("PHONE_NUMBER"))??!1;(a||O)&&(F.Auth={Cognito:{identityPoolId:a,allowGuestAccess:T!=="enable",signUpVerificationMethod:l,userAttributes:Y,userPoolClientId:k,userPoolId:O,mfa:q,passwordFormat:U,loginWith:{username:!(Z||fe),email:Z,phone:fe}}});const K=$?Object.keys($).length>0:!1,N=y?y.length>0:!1;if(F.Auth&&K&&(F.Auth.Cognito.loginWith={...F.Auth.Cognito.loginWith,oauth:{...B6($),...N&&{providers:j6(y)}}}),b&&(F.Storage={S3:{bucket:b,region:C,dangerouslyConnectToHttpEndpointForTesting:A}}),R){const{amazon_location_service:Le}=R;F.Geo=Le?{LocationService:{...Le,searchIndices:Le.search_indices,region:Le.region}}:{...R}}if(W&&(F.API={...F.API,REST:W.reduce((Le,Oe)=>{const{name:$e,endpoint:et,region:ct,service:Ge}=Oe;return{...Le,[$e]:{endpoint:et,...Ge?{service:Ge}:void 0,...ct?{region:ct}:void 0}}},{})}),j){const{VoiceId:Le}=((qe=(it=j==null?void 0:j.convert)==null?void 0:it.speechGenerator)==null?void 0:qe.defaults)??{};F.Predictions=Le?{...j,convert:{...j.convert,speechGenerator:{...j.convert.speechGenerator,defaults:{voiceId:Le}}}}:j}return F},VA=t=>(t==null?void 0:t.split(","))??[],B6=({domain:t,scope:e,redirectSignIn:n,redirectSignOut:r,responseType:i})=>({domain:t,scopes:e,redirectSignIn:VA(n),redirectSignOut:VA(r),responseType:i}),j6=t=>t.map(e=>{const n=e.toLowerCase();return n.charAt(0).toUpperCase()+n.slice(1)}),TD=t=>{const e=Reflect.ownKeys(t);for(const n of e){const r=t[n];(r&&typeof r=="object"||typeof r=="function")&&TD(r)}return Object.freeze(t)},U6=Symbol("oauth-listener");class H6{constructor(){this.oAuthListener=void 0,this.resourcesConfig={},this.libraryOptions={},this.Auth=new $6}configure(e,n){let r;Object.keys(e).some(i=>i.startsWith("aws_"))?r=CD(e):r=e,this.resourcesConfig=r,n&&(this.libraryOptions=n),this.resourcesConfig=TD(this.resourcesConfig),this.Auth.configure(this.resourcesConfig.Auth,this.libraryOptions.Auth),Zs.dispatch("core",{event:"configure",data:e},"Configure",xs),this.notifyOAuthListener()}getConfig(){return this.resourcesConfig}[U6](e){var n,r,i;(r=(n=this.resourcesConfig.Auth)==null?void 0:n.Cognito.loginWith)!=null&&r.oauth?e((i=this.resourcesConfig.Auth)==null?void 0:i.Cognito):this.oAuthListener=e}notifyOAuthListener(){var e,n,r;!((n=(e=this.resourcesConfig.Auth)==null?void 0:e.Cognito.loginWith)!=null&&n.oauth)||!this.oAuthListener||(this.oAuthListener((r=this.resourcesConfig.Auth)==null?void 0:r.Cognito),this.oAuthListener=void 0)}}const Qt=new H6,_D=(t,e)=>t.Auth.fetchAuthSession(e),W6=t=>_D(Qt,t);function AD(){return Qt.Auth.clearCredentials()}const kD={id:"aws",outputs:{dnsSuffix:"amazonaws.com"},regionRegex:"^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",regions:["aws-global"]},V6={partitions:[kD,{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn"},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:["aws-cn-global"]}]},LD=t=>{const{partitions:e}=V6;for(const{regions:n,outputs:r,regionRegex:i}
48of e){const s=new RegExp(i);if(n.includes(t)||s.test(t))return r.dnsSuffix}return kD.outputs.dnsSuffix},K6=3,q6=({maxAttempts:t=K6,retryDecider:e,computeDelay:n,abortSignal:r})=>{if(t<1)throw new Error("maxAttempts must be greater than 0");return(i,s)=>async function(l){let c,f=s.attemptsCount??0,d;const g=()=>{if(d)return KA(d,f),d;throw KA(c,f),c};for(;!(r!=null&&r.aborted)&&f<t;){try{d=await i(l),c=void 0}catch(v){c=v,d=void 0}if(f=(s.attemptsCount??0)>f?s.attemptsCount??0:f+1,s.attemptsCount=f,await e(d,c)){if(!(r!=null&&r.aborted)&&f<t){const v=n(f);await G6(v,r)}continue}else return g()}if(r!=null&&r.aborted)throw new Error("Request aborted.");return g()}},G6=(t,e)=>{if(e!=null&&e.aborted)return Promise.resolve();let n,r;const i=new Promise(s=>{r=s,n=setTimeout(s,t)});return e==null||e.addEventListener("abort",function s(a){clearTimeout(n),e==null||e.removeEventListener("abort",s),r()}),i},KA=(t,e)=>{Object.prototype.toString.call(t)==="[object Object]"&&(t.$metadata={...t.$metadata??{},attempts:e})},Y6=({userAgentHeader:t="x-amz-user-agent",userAgentValue:e=""})=>n=>async function(i){if(e.trim().length===0)return await n(i);{const s=t.toLowerCase();return i.headers[s]=i.headers[s]?`${i.headers[s]} ${e}`:e,await n(i)}},vE=(t,e)=>(n,r)=>{const i={};let s=a=>t(a,r);for(let a=e.length-1;a>=0;a--){const l=e[a];s=l(r)(s,i)}return s(n)},Vw=t=>{let e;return()=>(e||(e=t()),e)},X6=t=>!["HEAD","GET","DELETE"].includes(t.toUpperCase()),Q6=async({url:t,method:e,headers:n,body:r},{abortSignal:i,cache:s,withCrossDomainCredentials:a})=>{var g;let l;try{l=await fetch(t,{method:e,headers:n,body:X6(e)?r:void 0,signal:i,cache:s,credentials:a?"include":"same-origin"})}catch(v){throw v instanceof TypeError?new Error("Network error"):v}const c={};(g=l.headers)==null||g.forEach((v,y)=>{c[y.toLowerCase()]=v});const f={statusCode:l.status,headers:c,body:null},d=Object.assign(l.body??{},{text:Vw(()=>l.text()),blob:Vw(()=>l.blob()),json:Vw(()=>l.json())});return{...f,body:d}},OD=vE(Q6,[Y6,q6]),J6=5*60*1e3;function Z6(t=J6){return r=>{const i=2**r*100+100*Math.random();return i>t?!1:i}}const qA=5*60*1e3,ID=t=>{const n=Z6(qA)(t);return n===!1?qA:n},e8=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch","BadRequestException"],t8=t=>!!t&&e8.includes(t),PD=t=>async(e,n)=>{const r=n??await t(e)??void 0,i=r==null?void 0:r.code,s=e==null?void 0:e.statusCode;return s8(n)||i8(s,i)||t8(i)||o8(s,i)},n8=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException"],r8=["TimeoutError","RequestTimeout","RequestTimeoutException"],i8=(t,e)=>t===429||!!e&&n8.includes(e),s8=t=>(t==null?void 0:t.name)==="Network error",o8=(t,e)=>!!t&&[500,502,503,504].includes(t)||!!e&&r8.includes(e);var Xa=function(){return Xa=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},Xa.apply(this,arguments)};function a8(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function vl(t,e,n,r){function i(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function l(d){try{f(r.next(d))}catch(g){a(g)}}function c(d){try{f(r.throw(d))}catch(g){a(g)}}function f(d){d.done?s(d.value):i(d.value).then(l,c)}f((r=r.apply(t,e||[])).next())})}function yl(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,i,s,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(f){return function(d){return c([f,d])}}function c(f){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,f[0]&&(n=0)),n;)try{if(r=1,i&&(s=f[0]&2?i.return:f[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,f[1])).done)return s;switch(i=0,s&&(f=[f[0]&2,s.value]),f[0]){case 0:case 1:s=f;break;case 4:return n.label++,{value:f[1],done:!1};case 5:n.label++,i=f[1],f=[0];continue;case 7:f=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!s||f[1]>s[0]&&f[1]<s[3])){n.label=f[1];break}if(f[0]===6&&n.label<s[1]){n.label=s[1],s=f;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(f);break}s[2]&&n.ops.pop(),n.trys.pop();continue}f=e.call(t,n)}catch(d){f=[6,d],i=0}finally{r=s=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}}function GA(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,s=[],a;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(l){a={error:l}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return s}function YA(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,s;r<i;r++)(s||!(r in e))&&(s||(s=Array.prototype.slice.call(e,0,r)),s[r]=e[r]);return t.concat(s||Array.prototype.slice.call(e))}var ii=64,l8=32,u8=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756
48734187,3204031479,3329325298]),c8=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],f8=Math.pow(2,53)-1,Nh=function(){function t(){this.state=Int32Array.from(c8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return t.prototype.update=function(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");var n=0,r=e.byteLength;if(this.bytesHashed+=r,this.bytesHashed*8>f8)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;r>0;)this.buffer[this.bufferLength++]=e[n++],r--,this.bufferLength===ii&&(this.hashBuffer(),this.bufferLength=0)},t.prototype.digest=function(){if(!this.finished){var e=this.bytesHashed*8,n=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),r=this.bufferLength;if(n.setUint8(this.bufferLength++,128),r%ii>=ii-8){for(var i=this.bufferLength;i<ii;i++)n.setUint8(i,0);this.hashBuffer(),this.bufferLength=0}for(var i=this.bufferLength;i<ii-8;i++)n.setUint8(i,0);n.setUint32(ii-8,Math.floor(e/4294967296),!0),n.setUint32(ii-4,e),this.hashBuffer(),this.finished=!0}for(var s=new Uint8Array(l8),i=0;i<8;i++)s[i*4]=this.state[i]>>>24&255,s[i*4+1]=this.state[i]>>>16&255,s[i*4+2]=this.state[i]>>>8&255,s[i*4+3]=this.state[i]>>>0&255;return s},t.prototype.hashBuffer=function(){for(var e=this,n=e.buffer,r=e.state,i=r[0],s=r[1],a=r[2],l=r[3],c=r[4],f=r[5],d=r[6],g=r[7],v=0;v<ii;v++){if(v<16)this.temp[v]=(n[v*4]&255)<<24|(n[v*4+1]&255)<<16|(n[v*4+2]&255)<<8|n[v*4+3]&255;else{var y=this.temp[v-2],w=(y>>>17|y<<15)^(y>>>19|y<<13)^y>>>10;y=this.temp[v-15];var T=(y>>>7|y<<25)^(y>>>18|y<<14)^y>>>3;this.temp[v]=(w+this.temp[v-7]|0)+(T+this.temp[v-16]|0)}var E=(((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))+(c&f^~c&d)|0)+(g+(u8[v]+this.temp[v]|0)|0)|0,x=((i>>>2|i<<30)^(i>>>13|i<<19)^(i>>>22|i<<10))+(i&s^i&a^s&a)|0;g=d,d=f,f=c,c=l+E|0,l=a,a=s,s=i,i=E+x|0}r[0]+=i,r[1]+=s,r[2]+=a,r[3]+=l,r[4]+=c,r[5]+=f,r[6]+=d,r[7]+=g},t}();const d8=t=>new TextEncoder().encode(t);var p8=typeof Buffer<"u"&&Buffer.from?function(t){return Buffer.from(t,"utf8")}:d8;function RD(t){return t instanceof Uint8Array?t:typeof t=="string"?p8(t):ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(t)}function h8(t){return typeof t=="string"?t.length===0:t.byteLength===0}var Mg=function(){function t(e){this.secret=e,this.hash=new Nh,this.reset()}return t.prototype.update=function(e){if(!(h8(e)||this.error))try{this.hash.update(RD(e))}catch(n){this.error=n}},t.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},t.prototype.digest=function(){return vl(this,void 0,void 0,function(){return yl(this,function(e){return[2,this.digestSync()]})})},t.prototype.reset=function(){if(this.hash=new Nh,this.secret){this.outer=new Nh;var e=g8(this.secret),n=new Uint8Array(ii);n.set(e);for(var r=0;r<ii;r++)e[r]^=54,n[r]^=92;this.hash.update(e),this.outer.update(n);for(var r=0;r<e.byteLength;r++)e[r]=0}},t}();function g8(t){var e=RD(t);if(e.byteLength>ii){var n=new Nh;n.update(e),e=n.digest()}var r=new Uint8Array(ii);return r.set(e),r}for(let t=0;t<256;t++){let e=t.toString(16).toLowerCase();e.length===1&&(e=`0${e}`)}const Dg=URL,Gm=t=>{const{headers:e,statusCode:n}=t;return{...m8(t)?t.$metadata:{},httpStatusCode:n,requestId:e["x-amzn-requestid"]??e["x-amzn-request-id"]??e["x-amz-request-id"],extendedRequestId:e["x-amz-id-2"],cfId:e["x-amz-cf-id"]}},m8=t=>typeof(t==null?void 0:t.$metadata)=="object",Nd=async t=>{if(!t||t.statusCode<300)return;const e=await Ym(t),r=(a=>{const[l]=a.toString().split(/[\,\:]+/);return l.includes("#")?l.split("#")[1]:l})(t.headers["x-amzn-errortype"]??e.code??e.__type??"UnknownError"),i=e.message??e.Message??"Unknown error",s=new Error(i);return Object.assign(s,{name:r,$metadata:Gm(t)})},Ym=async t=>{if(!t.body)throw new Error("Missing response payload");const e=await t.body.json();return Object.assign(e,{$metadata:Gm(t)})};var gn;(function(t){t.WebUnknown="0",t.React="1",t.NextJs="2",t.Angular="3",t.VueJs="4",t.Nuxt="5",t.Svelte="6",t.ServerSideUnknown="100",t.ReactSSR="101",t.NextJsSSR="102",t.AngularSSR="103",t.VueJsSSR="104",t.NuxtSSR="105",t.SvelteSSR="106",t.ReactNative="201",t.Expo="202"})(gn||(gn={}));var rx;(function(t){t.API="api",t.Auth="auth",t.Analytics="analytics",t.DataStore="datastore",t.Geo="geo",t.InAppMessaging="inappmessaging",t.Interactions="interactions",t.Predictions="predictions",t.PubSub="pubsub",t.PushNotification="pushnotification",t.Storage="storage"})(rx||(rx={}));var XA;(function(t){t.Record="1",t.IdentifyUser="2"})(XA||(XA={}));var QA;(function(t){t.GraphQl="1",t.Get="2",t.Post="3",t.Put="4",t.Patch="5",t.Del="6",t.Head="7"})(QA||(QA={}));var Vr;(function(t){t.SignUp="1",t.ConfirmSignUp="2",t.ResendSignUpCode="3",t.
48SignIn="4",t.FetchMFAPreference="6",t.UpdateMFAPreference="7",t.SetUpTOTP="10",t.VerifyTOTPSetup="11",t.ConfirmSignIn="12",t.DeleteUserAttributes="15",t.DeleteUser="16",t.UpdateUserAttributes="17",t.FetchUserAttributes="18",t.ConfirmUserAttribute="22",t.SignOut="26",t.UpdatePassword="27",t.ResetPassword="28",t.ConfirmResetPassword="29",t.FederatedSignIn="30",t.RememberDevice="32",t.ForgetDevice="33",t.FetchDevices="34",t.SendUserAttributeVerificationCode="35",t.SignInWithRedirect="36"})(Vr||(Vr={}));var JA;(function(t){t.Subscribe="1",t.GraphQl="2"})(JA||(JA={}));var ZA;(function(t){t.SearchByText="0",t.SearchByCoordinates="1",t.SearchForSuggestions="2",t.SearchByPlaceId="3",t.SaveGeofences="4",t.GetGeofence="5",t.ListGeofences="6",t.DeleteGeofences="7"})(ZA||(ZA={}));var ek;(function(t){t.SyncMessages="1",t.IdentifyUser="2",t.NotifyMessageInteraction="3"})(ek||(ek={}));var tk;(function(t){t.None="0"})(tk||(tk={}));var nk;(function(t){t.Convert="1",t.Identify="2",t.Interpret="3"})(nk||(nk={}));var rk;(function(t){t.Subscribe="1"})(rk||(rk={}));var ik;(function(t){t.InitializePushNotifications="1",t.IdentifyUser="2"})(ik||(ik={}));var sk;(function(t){t.UploadData="1",t.DownloadData="2",t.List="3",t.Copy="4",t.Remove="5",t.GetProperties="6",t.GetUrl="7"})(sk||(sk={}));const v8="6.0.12",Xm=()=>typeof global<"u",Ju=()=>typeof window<"u",MD=()=>typeof document<"u",yE=()=>typeof process<"u",vd=(t,e)=>!!Object.keys(t).find(n=>n.startsWith(e));var ok={};function y8(){const t=r=>r.startsWith("_react")||r.startsWith("__react"),e=r=>Object.keys(r).find(t),n=()=>Array.from(document.querySelectorAll("[id]"));return MD()&&n().some(e)}function w8(){return yE()&&typeof ok<"u"&&!!Object.keys(ok).find(t=>t.includes("react"))}function b8(){return Ju()&&vd(window,"__VUE")}function x8(){return Xm()&&vd(global,"__VUE")}var ak={};function S8(){return Ju()&&vd(window,"__SVELTE")}function E8(){return yE()&&typeof ak<"u"&&!!Object.keys(ak).find(t=>t.includes("svelte"))}function C8(){return Ju()&&window.next&&typeof window.next=="object"}function T8(){return Xm()&&(vd(global,"__next")||vd(global,"__NEXT"))}function _8(){return Ju()&&(window.__NUXT__!==void 0||window.$nuxt!==void 0)}function A8(){return Xm()&&typeof global.__NUXT_PATHS__<"u"}var lk={};function k8(){const t=!!(MD()&&document.querySelector("[ng-version]")),e=!!(Ju()&&typeof window.ng<"u");return t||e}function L8(){var t;return yE()&&typeof lk=="object"&&((t=lk.npm_lifecycle_script)==null?void 0:t.startsWith("ng "))||!1}function O8(){return typeof navigator<"u"&&typeof navigator.product<"u"&&navigator.product==="ReactNative"}function I8(){return Xm()&&typeof global.expo<"u"}function P8(){return Ju()}const R8=[{platform:gn.Expo,detectionMethod:I8},{platform:gn.ReactNative,detectionMethod:O8},{platform:gn.NextJs,detectionMethod:C8},{platform:gn.Nuxt,detectionMethod:_8},{platform:gn.Angular,detectionMethod:k8},{platform:gn.React,detectionMethod:y8},{platform:gn.VueJs,detectionMethod:b8},{platform:gn.Svelte,detectionMethod:S8},{platform:gn.WebUnknown,detectionMethod:P8},{platform:gn.NextJsSSR,detectionMethod:T8},{platform:gn.NuxtSSR,detectionMethod:A8},{platform:gn.ReactSSR,detectionMethod:w8},{platform:gn.VueJsSSR,detectionMethod:x8},{platform:gn.AngularSSR,detectionMethod:L8},{platform:gn.SvelteSSR,detectionMethod:E8}];function M8(){var t;return((t=R8.find(e=>e.detectionMethod()))==null?void 0:t.platform)||gn.ServerSideUnknown}let Wf;const $h=[];let Ng=!1;const D8=10,N8=10,$8=1e3,DD=()=>{var t;if(!Wf){if(Wf=M8(),Ng)for(;$h.length;)(t=$h.pop())==null||t();else $h.forEach(e=>e());uk(gn.ServerSideUnknown,D8),uk(gn.WebUnknown,N8)}return Wf},F8=t=>{Ng||$h.push(t)};function z8(){Wf=void 0}function uk(t,e){Wf===t&&!Ng&&setTimeout(()=>{z8(),Ng=!0,setTimeout(DD,$8)},e)}const B8={},j8=(t,e)=>{var n,r;return(r=(n=B8[t])==null?void 0:n[e])==null?void 0:r.additionalDetails},U8="aws-amplify",H8=({category:t,action:e,framework:n}={})=>{const r=[[U8,v8]];if(t&&r.push([t,e]),r.push(["framework",DD()]),t&&e){const i=j8(t,e);i&&i.forEach(s=>{r.push(s)})}return r},Qm=t=>H8(t).map(([r,i])=>r&&i?`${r}/${i}`:r).join(" "),W8="cognito-identity",V8=({region:t})=>({url:new Dg(`https://cognito-identity.${t}.${LD(t)}`)}),K8=()=>(t,e)=>async function(r){return r.headers["cache-control"]="no-store",t(r)},ND=vE(OD,[K8]),wE={service:W8,endpointResolver:V8,retryDecider:PD(Nd),c
48omputeDelay:ID,userAgentValue:Qm(),cache:"no-store"};F8(()=>{wE.userAgentValue=Qm()});const $D=t=>({"content-type":"application/x-amz-json-1.1","x-amz-target":`AWSCognitoIdentityService.${t}`}),FD=({url:t},e,n)=>({headers:e,url:t,body:n,method:"POST"}),Qr=(t,e,n,r)=>async(i,s)=>{const a={...r,...i},l=await a.endpointResolver(a,s),c=await e(s,l),f=await t(c,{...a});return await n(f)},q8=(t,e)=>{const n=$D("GetId"),r=JSON.stringify(t);return FD(e,n,r)},G8=async t=>{if(t.statusCode>=300)throw await Nd(t);return{IdentityId:(await Ym(t)).IdentityId,$metadata:Gm(t)}},Y8=Qr(ND,q8,G8,wE),X8=(t,e)=>{const n=$D("GetCredentialsForIdentity"),r=JSON.stringify(t);return FD(e,n,r)},Q8=async t=>{if(t.statusCode>=300)throw await Nd(t);{const e=await Ym(t);return{IdentityId:e.IdentityId,Credentials:J8(e.Credentials),$metadata:Gm(t)}}},J8=({AccessKeyId:t,SecretKey:e,SessionToken:n,Expiration:r}={})=>({AccessKeyId:t,SecretKey:e,SessionToken:n,Expiration:r&&new Date(r*1e3)}),ck=Qr(ND,X8,Q8,wE);class th extends vi{constructor(){super({name:Rg.PlatformNotSupported,message:"Function not supported on current platform"})}}class zD{constructor(e){this.storage=e}async setItem(e,n){if(!this.storage)throw new th;this.storage.setItem(e,n)}async getItem(e){if(!this.storage)throw new th;return this.storage.getItem(e)}async removeItem(e){if(!this.storage)throw new th;this.storage.removeItem(e)}async clear(){if(!this.storage)throw new th;this.storage.clear()}}class BD{constructor(){this.storage=new Map}get length(){return this.storage.size}key(e){return e>this.length-1?null:Array.from(this.storage.keys())[e]}setItem(e,n){this.storage.set(e,n)}getItem(e){return this.storage.get(e)??null}removeItem(e){this.storage.delete(e)}clear(){this.storage.clear()}}const Z8=()=>typeof window<"u"&&window.localStorage?window.localStorage:new BD,eV=()=>typeof window<"u"&&window.sessionStorage?window.sessionStorage:new BD;class tV extends zD{constructor(){super(Z8())}}class nV extends zD{constructor(){super(eV())}}/*! js-cookie v3.0.5 | MIT */function nh(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}var rV={read:function(t){return t[0]==='"'&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function ix(t,e){function n(i,s,a){if(!(typeof document>"u")){a=nh({},e,a),typeof a.expires=="number"&&(a.expires=new Date(Date.now()+a.expires*864e5)),a.expires&&(a.expires=a.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var c in a)a[c]&&(l+="; "+c,a[c]!==!0&&(l+="="+a[c].split(";")[0]));return document.cookie=i+"="+t.write(s,i)+l}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var s=document.cookie?document.cookie.split("; "):[],a={},l=0;l<s.length;l++){var c=s[l].split("="),f=c.slice(1).join("=");try{var d=decodeURIComponent(c[0]);if(a[d]=t.read(f,d),i===d)break}catch{}}return i?a[i]:a}}return Object.create({set:n,get:r,remove:function(i,s){n(i,"",nh({},s,{expires:-1}))},withAttributes:function(i){return ix(this.converter,nh({},this.attributes,i))},withConverter:function(i){return ix(nh({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(t)}})}var rh=ix(rV,{path:"/"});class fk{constructor(e={}){const{path:n,domain:r,expires:i,sameSite:s,secure:a}=e;if(this.domain=r,this.path=n||"/",this.expires=e.hasOwnProperty("expires")?i:365,this.secure=e.hasOwnProperty("secure")?a:!0,e.hasOwnProperty("sameSite")){if(!s||!["strict","lax","none"].includes(s))throw new Error('The sameSite value of cookieStorage must be "lax", "strict" or "none".');if(s==="none"&&!this.secure)throw new Error("sameSite = None requires the Secure attribute in latest browser versions.");this.sameSite=s}}async setItem(e,n){rh.set(e,n,this.getData())}async getItem(e){return rh.get(e)??null}async removeItem(e){rh.remove(e,this.getData())}async clear(){const e=rh.get(),n=Object.keys(e).map(r=>this.removeItem(r));await Promise.all(n)}getData(){return{path:this.path,expires:this.expires,domain:this.domain,secure:this.secure,...this.sameSite&&{sameSite:this.sameSite}}}}const yd=new tV;new nV;function iV(){return M6().getRandomValues(new Uint32Array(1))[0]}function sV(t){const e=t.words,n=t.sigBytes,r=[];for(let i=0;i<n;i++){const s=e[i>>>2]>>>24-i%4*8&255;r.push((s>>>4).toString(16)),r.push((s&15).toString(16))}return r.join("")}class bE{constructor(e,n){this.words=[];let r=e;r=this.words=r||[],n!==void 0?this.sigBytes=n:this.sigBytes=r.length*4}random(e){const n=[];for(let r=0;r<e;r+=4)n.push(iV());return new bE(n,e)}toString(){return sV(this)}}function oV(t){return Array.from(t,e=>String.fromCodePoint(e)).join("")}const $g={convert(t,{urlSafe:e}={urlSafe:!1}){const n=typeof t=="string"?t:oV(t),r=D6()(n);return e?r.replace(/\+/g,"-").replace(/\//g,"_"):r}},jD="cognito-idp",aV=({region:t})=>{var i;const e=(i=Qt.getConfig().Auth)==null?void 0:i.Cognito,n=e==null?void 0:e.userPoolEndpoint,r=new Dg(`https://${jD}.${t}.${LD(t)}`);return{url:n?new Dg(n):r}},lV=()=>(t,e)=>async function(r){return r.headers["cache-control"]="no-store",t(r)},Vi=vE(OD,[lV]),Ki={service:jD,endpointResolver:aV,retryDecider:PD(Nd),c
48omputeDelay:ID,userAgentValue:Qm(),cache:"no-store"},uV=t=>({"content-type":"application/x-amz-json-1.1","x-amz-target":`AWSCognitoIdentityProviderService.${t}`}),cV=({url:t},e,n)=>({headers:e,url:t,body:n,method:"POST"});class wt extends vi{constructor(e){super(e),this.constructor=wt,Object.setPrototypeOf(this,wt.prototype)}}function Zu(t){if(!t||t.name==="Error"||t instanceof TypeError)throw new wt({name:Rg.Unknown,message:"An unknown error has occurred.",underlyingError:t})}const qi=t=>(e,n)=>{const r=uV(t),i=JSON.stringify(e);return cV(n,r,i)},Gi=()=>async t=>{if(t.statusCode>=300){const e=await Nd(t);throw Zu(e),new wt({name:e.name,message:e.message})}else return await Ym(t)},$d=Qr(Vi,qi("InitiateAuth"),Gi(),Ki),fV=Qr(Vi,qi("RevokeToken"),Gi(),Ki),dV=Qr(Vi,qi("ConfirmSignUp"),Gi(),Ki),pV=Qr(Vi,qi("ForgotPassword"),Gi(),Ki),hV=Qr(Vi,qi("ConfirmForgotPassword"),Gi(),Ki),xE=Qr(Vi,qi("RespondToAuthChallenge"),Gi(),Ki),gV=Qr(Vi,qi("AssociateSoftwareToken"),Gi(),Ki),mV=Qr(Vi,qi("GetUser"),Gi(),Ki),vV=Qr(Vi,qi("ChangePassword"),Gi(),Ki),yV=Qr(Vi,qi("ConfirmDevice"),Gi(),Ki),wV=Qr(Vi,qi("GlobalSignOut"),Gi(),Ki);var gt;(function(t){t.EmptySignInUsername="EmptySignInUsername",t.EmptySignInPassword="EmptySignInPassword",t.CustomAuthSignInPassword="CustomAuthSignInPassword",t.EmptySignUpUsername="EmptySignUpUsername",t.EmptySignUpPassword="EmptySignUpPassword",t.EmptyConfirmSignUpUsername="EmptyConfirmSignUpUsername",t.EmptyConfirmSignUpCode="EmptyConfirmSignUpCode",t.EmptyResendSignUpCodeUsername="EmptyresendSignUpCodeUsername",t.EmptyChallengeResponse="EmptyChallengeResponse",t.EmptyConfirmResetPasswordUsername="EmptyConfirmResetPasswordUsername",t.EmptyConfirmResetPasswordNewPassword="EmptyConfirmResetPasswordNewPassword",t.EmptyConfirmResetPasswordConfirmationCode="EmptyConfirmResetPasswordConfirmationCode",t.EmptyResetPasswordUsername="EmptyResetPasswordUsername",t.EmptyVerifyTOTPSetupCode="EmptyVerifyTOTPSetupCode",t.EmptyConfirmUserAttributeCode="EmptyConfirmUserAttributeCode",t.IncorrectMFAMethod="IncorrectMFAMethod",t.EmptyUpdatePassword="EmptyUpdatePassword"})(gt||(gt={}));const bV={[gt.EmptyChallengeResponse]:{message:"challengeResponse is required to confirmSignIn"},[gt.EmptyConfirmResetPasswordUsername]:{message:"username is required to confirmResetPassword"},[gt.EmptyConfirmSignUpCode]:{message:"code is required to confirmSignUp"},[gt.EmptyConfirmSignUpUsername]:{message:"username is required to confirmSignUp"},[gt.EmptyConfirmResetPasswordConfirmationCode]:{message:"confirmationCode is required to confirmResetPassword"},[gt.EmptyConfirmResetPasswordNewPassword]:{message:"newPassword is required to confirmResetPassword"},[gt.EmptyResendSignUpCodeUsername]:{message:"username is required to confirmSignUp"},[gt.EmptyResetPasswordUsername]:{message:"username is required to resetPassword"},[gt.EmptySignInPassword]:{message:"password is required to signIn"},[gt.EmptySignInUsername]:{message:"username is required to signIn"},[gt.EmptySignUpPassword]:{message:"password is required to signUp"},[gt.EmptySignUpUsername]:{message:"username is required to signUp"},[gt.CustomAuthSignInPassword]:{message:"A password is not needed when signing in with CUSTOM_WITHOUT_SRP",recoverySuggestion:"Do not include a password in your signIn call."},[gt.IncorrectMFAMethod]:{message:"Incorrect MFA method was chosen. It should be either SMS or TOTP",recoverySuggestion:"Try to pass TOTP or SMS as the challengeResponse"},[gt.EmptyVerifyTOTPSetupCode]:{message:"code is required to verifyTotpSetup"},[gt.EmptyUpdatePassword]:{message:"oldPassword and newPassword are required to changePassword"},[gt.EmptyConfirmUserAttributeCode]:{message:"confirmation code is required to confirmUserAttribute"}};var dk;(function(t){t.DEFAULT_MSG="Authentication Error",t.EMPTY_EMAIL="Email cannot be empty",t.EMPTY_PHONE="Phone number cannot be empty",t.EMPTY_USERNAME="Username cannot be empty",t.INVALID_USERNAME="The username should either be a string or one of the sign in types",t.EMPTY_PASSWORD="Password cannot be empty",t.EMPTY_CODE="Confirmation code cannot be empty",t.SIGN_UP_ERROR="Error creating account",t.NO_MFA="No valid MFA method provided",t.INVALID_MFA="Invalid MFA type",t.EMPTY_CHALLENGE="Challenge response cannot be empty",t.NO_USER_SESSION="Failed to get the session because the user is empty",t.NETWORK_E
48RROR="Network Error",t.DEVICE_CONFIG="Device tracking has not been configured in this User Pool",t.AUTOSIGNIN_ERROR="Please use your credentials to sign in",t.OAUTH_ERROR="Couldn't finish OAuth flow, check your User Pool HostedUI settings"})(dk||(dk={}));var Fg;(function(t){t.SignInException="SignInException",t.OAuthSignInError="OAuthSignInException"})(Fg||(Fg={}));function Qn(t,e){const{message:n,recoverySuggestion:r}=bV[e];if(!t)throw new wt({name:e,message:n,recoverySuggestion:r})}function Bn(t){const e=t==null?void 0:t.split("_")[0];if(!t||t.indexOf("_")<0||!e||typeof e!="string")throw new wt({name:"InvalidUserPoolId",message:"Invalid user pool id provided."});return e}function sx(t){if(!t||!t.includes(":"))throw new wt({name:"InvalidIdentityPoolIdException",message:"Invalid identity pool id provided.",recoverySuggestion:"Make sure a valid identityPoolId is given in the config."});return t.split(":")[0]}function xV(t){const e={};return t==null||t.forEach(n=>{n.Name&&(e[n.Name]=n.Value)}),e}function Ne(t,e){t!=null&&this.fromString(t,e)}function ur(){return new Ne(null,null)}let Yo;const SV=0xdeadbeefcafe,pk=(SV&16777215)===15715070;function EV(t,e,n,r,i,s){for(;--s>=0;){const a=e*this[t++]+n[r]+i;i=Math.floor(a/67108864),n[r++]=a&67108863}return i}function CV(t,e,n,r,i,s){const a=e&32767,l=e>>15;for(;--s>=0;){let c=this[t]&32767;const f=this[t++]>>15,d=l*c+f*a;c=a*c+((d&32767)<<15)+n[r]+(i&1073741823),i=(c>>>30)+(d>>>15)+l*f+(i>>>30),n[r++]=c&1073741823}return i}function TV(t,e,n,r,i,s){const a=e&16383,l=e>>14;for(;--s>=0;){let c=this[t]&16383;const f=this[t++]>>14,d=l*c+f*a;c=a*c+((d&16383)<<14)+n[r]+i,i=(c>>28)+(d>>14)+l*f,n[r++]=c&268435455}return i}const hk=typeof navigator<"u";hk&&pk&&navigator.appName==="Microsoft Internet Explorer"?(Ne.prototype.am=CV,Yo=30):hk&&pk&&navigator.appName!=="Netscape"?(Ne.prototype.am=EV,Yo=26):(Ne.prototype.am=TV,Yo=28);Ne.prototype.DB=Yo;Ne.prototype.DM=(1<<Yo)-1;Ne.prototype.DV=1<<Yo;const SE=52;Ne.prototype.FV=Math.pow(2,SE);Ne.prototype.F1=SE-Yo;Ne.prototype.F2=2*Yo-SE;const _V="0123456789abcdefghijklmnopqrstuvwxyz",Jm=new Array;let ec,di;ec=48;for(di=0;di<=9;++di)Jm[ec++]=di;ec=97;for(di=10;di<36;++di)Jm[ec++]=di;ec=65;for(di=10;di<36;++di)Jm[ec++]=di;function gk(t){return _V.charAt(t)}function AV(t,e){var n=Jm[t.charCodeAt(e)];return n??-1}function kV(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s}function LV(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0}function EE(t){var e=ur();return e.fromInt(t),e}function OV(t,e){let n;if(e===16)n=4;else if(e===8)n=3;else if(e===2)n=1;else if(e===32)n=5;else if(e===4)n=2;else throw new Error("Only radix 2, 4, 8, 16, 32 are supported");this.t=0,this.s=0;let r=t.length,i=!1,s=0;for(;--r>=0;){const a=AV(t,r);if(a<0){t.charAt(r)==="-"&&(i=!0);continue}i=!1,s===0?this[this.t++]=a:s+n>this.DB?(this[this.t-1]|=(a&(1<<this.DB-s)-1)<<s,this[this.t++]=a>>this.DB-s):this[this.t-1]|=a<<s,s+=n,s>=this.DB&&(s-=this.DB)}this.clamp(),i&&Ne.ZERO.subTo(this,this)}function IV(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t}function PV(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(t==16)e=4;else if(t===8)e=3;else if(t===2)e=1;else if(t===32)e=5;else if(t===4)e=2;else throw new Error("Only radix 2, 4, 8, 16, 32 are supported");let n=(1<<e)-1,r,i=!1,s="",a=this.t,l=this.DB-a*this.DB%e;if(a-- >0)for(l<this.DB&&(r=this[a]>>l)>0&&(i=!0,s=gk(r));a>=0;)l<e?(r=(this[a]&(1<<l)-1)<<e-l,r|=this[--a]>>(l+=this.DB-e)):(r=this[a]>>(l-=e)&n,l<=0&&(l+=this.DB,--a)),r>0&&(i=!0),i&&(s+=gk(r));return i?s:"0"}function RV(){var t=ur();return Ne.ZERO.subTo(this,t),t}function MV(){return this.s<0?this.negate():this}function DV(t){var e=this.s-t.s;if(e!=0)return e;var n=this.t;if(e=n-t.t,e!=0)return this.s<0?-e:e;for(;--n>=0;)if((e=this[n]-t[n])!=0)return e;return 0}function CE(t){var e=1,n;return(n=t>>>16)!==0&&(t=n,e+=16),(n=t>>8)!==0&&(t=n,e+=8),(n=t>>4)!==0&&(t=n,e+=4),(n=t>>2)!==0&&(t=n,e+=2),(n=t>>1)!==0&&(t=n,e+=1),e}function NV(){return this.t<=0?0:this.DB*(this.t-1)+CE(this[this.t-1]^this.s&this.DM)}function $V(t,e){let n;for(n=this.t-1;n>=0;--n)e[n+t]=this[n];for(n=t-1;n>=0;--n)e[n]=0;e.t=this.t+t,e.s=this.s}function FV(t,e){for(let n=t;n<this.t;++n)e[n-t]=this[n];e.t=Math.max(this.t-t,0),e.s=this.s}function zV(t,e){const n=t%this.DB,r=this.DB-n,i=(1<<r)-1;let s=Math.floor(t/this.DB),a=this.s<<n&this.DM,l;for(l=this.t-1;l>=0;--l)e[l+s+1]=this[l]>>r|a,a=(this[l]&i)<<n;for(l=s-1;l>=0;--l)e[l]=0;e[s]=a,e.t=this.t+s+1,e.s=this.s,e.clamp()}function BV(t,e){e.s=this.s;const n=Math.floor(t/this.DB);if(n>=this.t){e.t=0;return}const r=t%this.DB,i=this.DB-r,s=(1<<r)-1;e[0]=this[n]>>r;
vendor: 4,967 bytes, line 48
48for(let a=n+1;a<this.t;++a)e[a-n-1]|=(this[a]&s)<<i,e[a-n]=this[a]>>r;r>0&&(e[this.t-n-1]|=(this.s&s)<<i),e.t=this.t-n,e.clamp()}function jV(t,e){let n=0,r=0,i=Math.min(t.t,this.t);for(;n<i;)r+=this[n]-t[n],e[n++]=r&this.DM,r>>=this.DB;if(t.t<this.t){for(r-=t.s;n<this.t;)r+=this[n],e[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<t.t;)r-=t[n],e[n++]=r&this.DM,r>>=this.DB;r-=t.s}e.s=r<0?-1:0,r<-1?e[n++]=this.DV+r:r>0&&(e[n++]=r),e.t=n,e.clamp()}function UV(t,e){const n=this.abs(),r=t.abs();let i=n.t;for(e.t=i+r.t;--i>=0;)e[i]=0;for(i=0;i<r.t;++i)e[i+n.t]=n.am(0,r[i],e,i,0,n.t);e.s=0,e.clamp(),this.s!==t.s&&Ne.ZERO.subTo(e,e)}function HV(t){for(var e=this.abs(),n=t.t=2*e.t;--n>=0;)t[n]=0;for(n=0;n<e.t-1;++n){var r=e.am(n,e[n],t,2*n,0,1);(t[n+e.t]+=e.am(n+1,2*e[n],t,2*n+1,r,e.t-n-1))>=e.DV&&(t[n+e.t]-=e.DV,t[n+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(n,e[n],t,2*n,0,1)),t.s=0,t.clamp()}function WV(t,e,n){var r=t.abs();if(r.t<=0)return;var i=this.abs();if(i.t<r.t){e!=null&&e.fromInt(0),n!=null&&this.copyTo(n);return}n===null&&(n=ur());var s=ur(),a=this.s,l=t.s,c=this.DB-CE(r[r.t-1]);c>0?(r.lShiftTo(c,s),i.lShiftTo(c,n)):(r.copyTo(s),i.copyTo(n));const f=s.t,d=s[f-1];if(d===0)return;const g=d*(1<<this.F1)+(f>1?s[f-2]>>this.F2:0),v=this.FV/g,y=(1<<this.F1)/g,w=1<<this.F2;let T=n.t,E=T-f,x=e===null?ur():e;for(s.dlShiftTo(E,x),n.compareTo(x)>=0&&(n[n.t++]=1,n.subTo(x,n)),Ne.ONE.dlShiftTo(f,x),x.subTo(s,s);s.t<f;)s[s.t++]=0;for(;--E>=0;){var b=n[--T]===d?this.DM:Math.floor(n[T]*v+(n[T-1]+w)*y);if((n[T]+=s.am(0,b,n,E,0,f))<b)for(s.dlShiftTo(E,x),n.subTo(x,n);n[T]<--b;)n.subTo(x,n)}e!==null&&(n.drShiftTo(f,e),a!==l&&Ne.ZERO.subTo(e,e)),n.t=f,n.clamp(),c>0&&n.rShiftTo(c,n),a<0&&Ne.ZERO.subTo(n,n)}function VV(t){var e=ur();return this.abs().divRemTo(t,null,e),this.s<0&&e.compareTo(Ne.ZERO)>0&&t.subTo(e,e),e}function KV(){if(this.t<1)return 0;var t=this[0];if(!(t&1))return 0;var e=t&3;return e=e*(2-(t&15)*e)&15,e=e*(2-(t&255)*e)&255,e=e*(2-((t&65535)*e&65535))&65535,e=e*(2-t*e%this.DV)%this.DV,e>0?this.DV-e:-e}function qV(t){return this.compareTo(t)===0}function GV(t,e){let n=0,r=0,i=Math.min(t.t,this.t);for(;n<i;)r+=this[n]+t[n],e[n++]=r&this.DM,r>>=this.DB;if(t.t<this.t){for(r+=t.s;n<this.t;)r+=this[n],e[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<t.t;)r+=t[n],e[n++]=r&this.DM,r>>=this.DB;r+=t.s}e.s=r<0?-1:0,r>0?e[n++]=r:r<-1&&(e[n++]=this.DV+r),e.t=n,e.clamp()}function YV(t){var e=ur();return this.addTo(t,e),e}function XV(t){var e=ur();return this.subTo(t,e),e}function QV(t){var e=ur();return this.multiplyTo(t,e),e}function JV(t){var e=ur();return this.divRemTo(t,e,null),e}function tc(t){this.m=t,this.mp=t.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}function ZV(t){var e=ur();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(Ne.ZERO)>0&&this.m.subTo(e,e),e}function eK(t){var e=ur();return t.copyTo(e),this.reduce(e),e}function tK(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var n=t[e]&32767,r=n*this.mpl+((n*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;for(n=e+this.m.t,t[n]+=this.m.am(0,r,t,e,0,this.m.t);t[n]>=t.DV;)t[n]-=t.DV,t[++n]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)}function nK(t,e){t.squareTo(e),this.reduce(e)}function rK(t,e,n){t.multiplyTo(e,n),this.reduce(n)}tc.prototype.convert=ZV;tc.prototype.revert=eK;tc.prototype.reduce=tK;tc.prototype.mulTo=rK;tc.prototype.sqrTo=nK;function iK(t,e,n){let r=t.bitLength(),i,s=EE(1),a=new tc(e);if(r<=0)return s;r<18?i=1:r<48?i=3:r<144?i=4:r<768?i=5:i=6;let l=new Array,c=3,f=i-1,d=(1<<i)-1;if(l[1]=a.convert(this),i>1){const x=ur();for(a.sqrTo(l[1],x);c<=d;)l[c]=ur(),a.mulTo(x,l[c-2],l[c]),c+=2}let g=t.t-1,v,y=!0,w=ur(),T;for(r=CE(t[g])-1;g>=0;){for(r>=f?v=t[g]>>r-f&d:(v=(t[g]&(1<<r+1)-1)<<f-r,g>0&&(v|=t[g-1]>>this.DB+r-f)),c=i;!(v&1);)v>>=1,--c;if((r-=c)<0&&(r+=this.DB,--g),y)l[v].copyTo(s),y=!1;else{for(;c>1;)a.sqrTo(s,w),a.sqrTo(w,s),c-=2;c>0?a.sqrTo(s,w):(T=s,s=w,w=T),a.mulTo(w,l[v],s)}for(;g>=0&&!(t[g]&1<<r);)a.sqrTo(s,w),T=s,s=w,w=T,--r<0&&(r=this.DB-1,--g)}var E=a.revert(s);return n(null,E),E}Ne.prototype.copyTo=kV;Ne.prototype.fromInt=LV;Ne.prototype.fromString=OV;Ne.prototype.clamp=IV;Ne.prototype.dlShiftTo=$V;Ne.prototype.drShiftTo=FV;Ne.prototype.lShiftTo=zV;Ne.prototype.rShiftTo=BV;Ne.prototype.subTo=jV;Ne.prototype.multiplyTo=UV;Ne.prototype.squareTo=HV;Ne.prototype.divRemTo=WV;Ne.prototype.invDigit=KV;Ne.prototype.addTo=GV;Ne.prototype.toString=PV;Ne.prototype.negate=RV;Ne.prototype.abs=MV;Ne.prototype.compareTo=DV;Ne.prototype.bitLength=NV;Ne.prototype.mod=VV;Ne.prototype.equals=qV;Ne.prototype.add=YV;Ne.prototype.subtract=XV;Ne.prototype.multiply=QV;Ne.prototype.divide=JV;Ne.prototype.modPow=iK;Ne.ZERO=EE(0);Ne.ONE=EE(1);const Fh={convert(t){return new TextEncoder().encode(t)}},sK=async({a:t,g:e,k:n,x:r,B:i,N:s,U:a})=>new Promise((l,c)=>{e.modPow(r,s,(f,d)=>{if(f){c(f);return}
48i.subtract(n.multiply(d)).modPow(t.add(a.multiply(r)),s,(g,v)=>{if(g){c(g);return}l(v.mod(s))})})}),oK="FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD129024E088A67CC74020BBEA63B139B22514A08798E3404DDEF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7EDEE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3DC2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F83655D23DCA3AD961C62F356208552BB9ED529077096966D670C354E4ABC9804F1746C08CA18217C32905E462E36CE3BE39E772C180E86039B2783A2EC07A28FB5C55DF06F4C52C9DE2BCBF6955817183995497CEA956AE515D2261898FA051015728E5A8AAAC42DAD33170D04507A33A85521ABDF1CBA64ECFB850458DBEF0A8AEA71575D060C7DB3970F85A6E1E4C7ABF5AE8CDB0933D71E8C94E04A25619DCEE3D2261AD2EE6BF12FFA06D98A0864D87602733EC86A64521F2B18177B200CBBE117577A615D6C770988C0BAD946E208E24FA074E5AB3143DB5BFCE0FD108E4B82D120A93AD2CAFFFFFFFFFFFFFFFF",UD={},ox={};for(let t=0;t<256;t++){let e=t.toString(16).toLowerCase();e.length===1&&(e=`0${e}`),UD[t]=e,ox[e]=t}const $u=t=>{if(t.length%2!==0)throw new Error("Hex encoded strings must have an even number length");const e=new Uint8Array(t.length/2);for(let n=0;n<t.length;n+=2){const r=t.slice(n,n+2).toLowerCase();if(r in ox)e[n/2]=ox[r];else throw new Error(`Cannot decode unrecognized sequence ${r} as hexadecimal`)}return e},TE=t=>{let e="";for(let n=0;n<t.byteLength;n++)e+=UD[t[n]];return e},ax=t=>{const e=new Mg;e.update(t);const n=e.digestSync(),r=TE(n);return new Array(64-r.length).join("0")+r},zh=t=>ax($u(t)),aK=/^[89a-f]/i,Ds=t=>{if(!(t instanceof Ne))throw new Error("Not a BigInteger");const e=t.compareTo(Ne.ZERO)<0;let n=t.abs().toString(16);if(n=n.length%2!==0?`0${n}`:n,n=aK.test(n)?`00${n}`:n,e){const r=n.split("").map(s=>{const a=~parseInt(s,16)&15;return"0123456789ABCDEF".charAt(a)}).join("");n=new Ne(r,16).add(Ne.ONE).toString(16),n.toUpperCase().startsWith("FF8")&&(n=n.substring(2))}return n},lK=({A:t,B:e})=>{const n=new Ne(zh(Ds(t)+Ds(e)),16);if(n.equals(Ne.ZERO))throw new Error("U cannot be zero.");return n},uK=(t,e,n)=>{const r=new Mg(e);r.update(t);const i=r.digestSync(),s=new Mg(i);return s.update(n),s.digestSync().slice(0,16)},_E=t=>{const e=new bE().random(t).toString();return $u(e)},cK=()=>$g.convert(_E(40));class fK{constructor({userPoolName:e,a:n,g:r,A:i,N:s}){this.encoder=Fh,this.userPoolName=e,this.a=n,this.g=r,this.A=i,this.N=s,this.k=new Ne(zh(`${Ds(s)}${Ds(r)}`),16)}getRandomPassword(){if(!this.randomPassword)throw new wt({name:"EmptyBigIntegerRandomPassword",message:"random password is empty"});return this.randomPassword}getSaltToHashDevices(){if(!this.saltToHashDevices)throw new wt({name:"EmptyBigIntegersaltToHashDevices",message:"saltToHashDevices is empty"});return this.saltToHashDevices}getVerifierDevices(){if(!this.verifierDevices)throw new wt({name:"EmptyBigIntegerVerifierDevices",message:"verifyDevices is empty"});return this.verifierDevices}async generateHashDevice(e,n){this.randomPassword=cK();const r=`${e}${n}:${this.randomPassword}`,i=ax(r),s=TE(_E(16));return this.saltToHashDevices=Ds(new Ne(s,16)),new Promise((a,l)=>{this.g.modPow(new Ne(zh(this.saltToHashDevices+i),16),this.N,(c,f)=>{if(c){l(c);return}this.verifierDevices=Ds(f),a()})})}async getPasswordAuthenticationKey({username:e,password:n,serverBValue:r,salt:i}){if(r.mod(this.N).equals(Ne.ZERO))throw new Error("B cannot be zero.");const s=lK({A:this.A,B:r}),a=`${this.userPoolName}${e}:${n}`,l=ax(a),c=new Ne(zh(Ds(i)+l),16),f=await sK({a:this.a,g:this.g,k:this.k,x:c,B:r,N:this.N,U:s}),d=this.encoder.convert("Caldera Derived Key"),g=this.encoder.convert("�"),v=new Uint8Array(d.byteLength+g.byteLength);return v.set(d,0),v.set(g,d.byteLength),uK($u(Ds(f)),$u(Ds(s)),v)}}const dK=async({a:t,g:e,N:n})=>new Promise((r,i)=>{e.modPow(t,n,(s,a)=>{if(s){i(s);return}if(a.mod(n).equals(Ne.ZERO)){i(new Error("Illegal parameter. A mod N cannot be 0."));return}r(a)})}),Zm=async t=>{const e=new Ne(oK,16),n=new Ne("2",16),r=pK(),i=await dK({a:r,g:n,N:e});return new fK({userPoolName:t,a:r,g:n,A:i,N:e})},pK=()=>{const t=TE(_E(128));return new Ne(t,16)},hK=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],gK=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],HD=()=>{const t=new Date,e=gK[t.getUTCDay()],n=hK[t.getUTCMonth()],r=t.getUTCDate();let i=t.getUTCHours();i<10&&(i=`0${i}`);let s=t.getUTCMinutes();s<10&&(s=`0${s}`);let a=t.getUTCSeconds();a<10&&(a=`0${a}`);const l=t.getUTCFullYear();return`${e} ${n} ${r} ${i}:${s}:${a} UTC ${l}`},WD=({userPoolName:t,username:e,challengeParameters:n,dateNow:r,hkdf:i})=>
48{const s=Fh.convert(t),a=Fh.convert(e),l=mK(n.SECRET_BLOCK),c=Fh.convert(r),f=new Uint8Array(s.byteLength+a.byteLength+l.byteLength+c.byteLength);f.set(s,0),f.set(a,s.byteLength),f.set(l,s.byteLength+a.byteLength),f.set(c,s.byteLength+a.byteLength+l.byteLength);const d=new Mg(i);d.update(f);const g=d.digestSync();return $g.convert(g)},mK=t=>{const e="=".repeat((4-t.length%4)%4),n=(t+e).replace(/\-/g,"+").replace(/_/g,"/"),r=SD.convert(n),i=new Uint8Array(r.length);for(let s=0;s<r.length;++s)i[s]=r.charCodeAt(s);return i};var mk;(function(t){t.ConcurrentModificationException="ConcurrentModificationException",t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidParameterException="InvalidParameterException",t.NotAuthorizedException="NotAuthorizedException",t.ResourceNotFoundException="ResourceNotFoundException",t.SoftwareTokenMFANotFoundException="SoftwareTokenMFANotFoundException"})(mk||(mk={}));var vk;(function(t){t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidParameterException="InvalidParameterException",t.InvalidPasswordException="InvalidPasswordException",t.LimitExceededException="LimitExceededException",t.NotAuthorizedException="NotAuthorizedException",t.PasswordResetRequiredException="PasswordResetRequiredException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UserNotConfirmedException="UserNotConfirmedException",t.UserNotFoundException="UserNotFoundException"})(vk||(vk={}));var yk;(function(t){t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidLambdaResponseException="InvalidLambdaResponseException",t.InvalidParameterException="InvalidParameterException",t.InvalidPasswordException="InvalidPasswordException",t.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",t.NotAuthorizedException="NotAuthorizedException",t.PasswordResetRequiredException="PasswordResetRequiredException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UsernameExistsException="UsernameExistsException",t.UserNotConfirmedException="UserNotConfirmedException",t.UserNotFoundException="UserNotFoundException"})(yk||(yk={}));var wk;(function(t){t.CodeMismatchException="CodeMismatchException",t.ExpiredCodeException="ExpiredCodeException",t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidLambdaResponseException="InvalidLambdaResponseException",t.InvalidParameterException="InvalidParameterException",t.InvalidPasswordException="InvalidPasswordException",t.LimitExceededException="LimitExceededException",t.NotAuthorizedException="NotAuthorizedException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyFailedAttemptsException="TooManyFailedAttemptsException",t.TooManyRequestsException="TooManyRequestsException",t.UnexpectedLambdaException="UnexpectedLambdaException",t.UserLambdaValidationException="UserLambdaValidationException",t.UserNotConfirmedException="UserNotConfirmedException",t.UserNotFoundException="UserNotFoundException"})(wk||(wk={}));var bk;(function(t){t.AliasExistsException="AliasExistsException",t.CodeMismatchException="CodeMismatchException",t.ExpiredCodeException="ExpiredCodeException",t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidLambdaResponseException="InvalidLambdaResponseException",t.InvalidParameterException="InvalidParameterException",t.LimitExceededException="LimitExceededException",t.NotAuthorizedException="NotAuthorizedException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyFailedAttemptsException="TooManyFailedAttemptsException",t.TooManyRequestsException="TooManyRequestsException",t.UnexpectedLambdaException="UnexpectedLambdaException",t.UserLambdaValidationException="UserLambdaValidationException",t.UserNotFoundException="UserNotFoundException"})(bk||(bk={}));var xk;(function(t){t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidParameterException="InvalidParameterException",t.NotAuthorizedException="NotAuthorizedException",t.PasswordResetRequiredException="PasswordResetRequiredException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UserNotConfirmedException="UserNotConfirmedException",t.UserNotFoundException="UserNotFoundException"})(xk||(xk={}));var Sk;(function(t){t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidParameterException="InvalidParameterException",t.NotAuthorizedException="NotAuthorizedException",t.PasswordResetRequiredException="PasswordResetRequiredException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UserNotConfirmedException="UserNotConfirmedException",t.UserNotFoundException="UserNotFoundException"})(Sk||(Sk={}));var Ek;(function(t){t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidParameterException="InvalidParameterException",t.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",t.NotAuthorizedException="NotAuthorizedException",t.PasswordResetRequiredException="PasswordResetRequiredException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UserNotConfirmedException="UserNotConfirmedException",t.UserNotFoundException="UserNotFoundException"})(Ek||(Ek={}));var Ck;(function(t){t.CodeDeliveryFailureException="CodeDeliveryFailureException",t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidEmailRoleAccessPol
48icyException="InvalidEmailRoleAccessPolicyException",t.InvalidLambdaResponseException="InvalidLambdaResponseException",t.InvalidParameterException="InvalidParameterException",t.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",t.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",t.LimitExceededException="LimitExceededException",t.NotAuthorizedException="NotAuthorizedException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UnexpectedLambdaException="UnexpectedLambdaException",t.UserLambdaValidationException="UserLambdaValidationException",t.UserNotFoundException="UserNotFoundException"})(Ck||(Ck={}));var Tk;(function(t){t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidParameterException="InvalidParameterException",t.NotAuthorizedException="NotAuthorizedException",t.PasswordResetRequiredException="PasswordResetRequiredException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UserNotConfirmedException="UserNotConfirmedException",t.UserNotFoundException="UserNotFoundException"})(Tk||(Tk={}));var _k;(function(t){t.ExternalServiceException="ExternalServiceException",t.InternalErrorException="InternalErrorException",t.InvalidParameterException="InvalidParameterException",t.LimitExceededException="LimitExceededException",t.NotAuthorizedException="NotAuthorizedException",t.ResourceConflictException="ResourceConflictException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException"})(_k||(_k={}));var Ak;(function(t){t.ExternalServiceException="ExternalServiceException",t.InternalErrorException="InternalErrorException",t.InvalidIdentityPoolConfigurationException="InvalidIdentityPoolConfigurationException",t.InvalidParameterException="InvalidParameterException",t.NotAuthorizedException="NotAuthorizedException",t.ResourceConflictException="ResourceConflictException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException"})(Ak||(Ak={}));var kk;(function(t){t.CodeDeliveryFailureException="CodeDeliveryFailureException",t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidEmailRoleAccessPolicyException="InvalidEmailRoleAccessPolicyException",t.InvalidLambdaResponseException="InvalidLambdaResponseException",t.InvalidParameterException="InvalidParameterException",t.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",t.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",t.LimitExceededException="LimitExceededException",t.NotAuthorizedException="NotAuthorizedException",t.PasswordResetRequiredException="PasswordResetRequiredException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UnexpectedLambdaException="UnexpectedLambdaException",t.UserLambdaValidationException="UserLambdaValidationException",t.UserNotConfirmedException="UserNotConfirmedException",t.UserNotFoundException="UserNotFoundException"})(kk||(kk={}));var Lk;(function(t){t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidParameterException="InvalidParameterException",t.NotAuthorizedException="NotAuthorizedException",t.PasswordResetRequiredException="PasswordResetRequiredException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UserNotConfirmedException="UserNotConfirmedException"})(Lk||(Lk={}));var zg;(function(t){t.PasswordResetRequiredException="PasswordResetRequiredException",t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidLambdaResponseException="InvalidLambdaResponseException",t.InvalidParameterException="InvalidParameterException",t.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",t.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",t.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",t.NotAuthorizedException="NotAuthorizedException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UnexpectedLambdaException="UnexpectedLambdaException",t.UserLambdaValidationException="UserLambdaValidationException",t.UserNotConfirmedException="UserNotConfirmedException",t.UserNotFoundException="UserNotFoundException"})(zg||(zg={}));var Ok;(function(t){t.CodeDeliveryFailureException="CodeDeliveryFailureException",t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidEmailRoleAccessPol
48icyException="InvalidEmailRoleAccessPolicyException",t.InvalidLambdaResponseException="InvalidLambdaResponseException",t.InvalidParameterException="InvalidParameterException",t.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",t.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",t.LimitExceededException="LimitExceededException",t.NotAuthorizedException="NotAuthorizedException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UnexpectedLambdaException="UnexpectedLambdaException",t.UserLambdaValidationException="UserLambdaValidationException",t.UserNotFoundException="UserNotFoundException"})(Ok||(Ok={}));var Ik;(function(t){t.AliasExistsException="AliasExistsException",t.CodeMismatchException="CodeMismatchException",t.ExpiredCodeException="ExpiredCodeException",t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidLambdaResponseException="InvalidLambdaResponseException",t.InvalidParameterException="InvalidParameterException",t.InvalidPasswordException="InvalidPasswordException",t.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",t.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",t.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",t.MFAMethodNotFoundException="MFAMethodNotFoundException",t.NotAuthorizedException="NotAuthorizedException",t.PasswordResetRequiredException="PasswordResetRequiredException",t.ResourceNotFoundException="ResourceNotFoundException",t.SoftwareTokenMFANotFoundException="SoftwareTokenMFANotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UnexpectedLambdaException="UnexpectedLambdaException",t.UserLambdaValidationException="UserLambdaValidationException",t.UserNotConfirmedException="UserNotConfirmedException",t.UserNotFoundException="UserNotFoundException"})(Ik||(Ik={}));var Pk;(function(t){t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidParameterException="InvalidParameterException",t.NotAuthorizedException="NotAuthorizedException",t.PasswordResetRequiredException="PasswordResetRequiredException",t.ResourceNotFoundException="ResourceNotFoundException",t.UserNotConfirmedException="UserNotConfirmedException",t.UserNotFoundException="UserNotFoundException"})(Pk||(Pk={}));var Rk;(function(t){t.CodeDeliveryFailureException="CodeDeliveryFailureException",t.InternalErrorException="InternalErrorException",t.InvalidEmailRoleAccessPolicyException="InvalidEmailRoleAccessPolicyException",t.InvalidLambdaResponseException="InvalidLambdaResponseException",t.InvalidParameterException="InvalidParameterException",t.InvalidPasswordException="InvalidPasswordException",t.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",t.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",t.NotAuthorizedException="NotAuthorizedException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UnexpectedLambdaException="UnexpectedLambdaException",t.UserLambdaValidationException="UserLambdaValidationException",t.UsernameExistsException="UsernameExistsException"})(Rk||(Rk={}));var Mk;(function(t){t.AliasExistsException="AliasExistsException",t.CodeDeliveryFailureException="CodeDeliveryFailureException",t.CodeMismatchException="CodeMismatchException",t.ExpiredCodeException="ExpiredCodeException",t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidEmailRoleAccessPolicyException="InvalidEmailRoleAccessPolicyException",t.InvalidLambdaResponseException="InvalidLambdaResponseException",t.InvalidParameterException="InvalidParameterException",t.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",t.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",t.NotAuthorizedException="NotAuthorizedException",t.PasswordResetRequiredException="PasswordResetRequiredException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UnexpectedLambdaException="UnexpectedLambdaException",t.UserLambdaValidationException="UserLambdaValidationException",t.UserNotConfirmedException="UserNotConfirmedException",t.UserNotFoundException="UserNotFoundException"})(Mk||(Mk={}));var Dk;(function(t){t.CodeMismatchException="CodeMismatchException",t.EnableSoftw
48areTokenMFAException="EnableSoftwareTokenMFAException",t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidParameterException="InvalidParameterException",t.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",t.NotAuthorizedException="NotAuthorizedException",t.PasswordResetRequiredException="PasswordResetRequiredException",t.ResourceNotFoundException="ResourceNotFoundException",t.SoftwareTokenMFANotFoundException="SoftwareTokenMFANotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UserNotConfirmedException="UserNotConfirmedException",t.UserNotFoundException="UserNotFoundException"})(Dk||(Dk={}));var Nk;(function(t){t.AliasExistsException="AliasExistsException",t.CodeMismatchException="CodeMismatchException",t.ExpiredCodeException="ExpiredCodeException",t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidParameterException="InvalidParameterException",t.LimitExceededException="LimitExceededException",t.NotAuthorizedException="NotAuthorizedException",t.PasswordResetRequiredException="PasswordResetRequiredException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UserNotConfirmedException="UserNotConfirmedException",t.UserNotFoundException="UserNotFoundException"})(Nk||(Nk={}));var $k;(function(t){t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidParameterException="InvalidParameterException",t.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",t.NotAuthorizedException="NotAuthorizedException",t.PasswordResetRequiredException="PasswordResetRequiredException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UserNotConfirmedException="UserNotConfirmedException",t.UserNotFoundException="UserNotFoundException"})($k||($k={}));var Fk;(function(t){t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidParameterException="InvalidParameterException",t.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",t.NotAuthorizedException="NotAuthorizedException",t.PasswordResetRequiredException="PasswordResetRequiredException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UserNotConfirmedException="UserNotConfirmedException",t.UserNotFoundException="UserNotFoundException"})(Fk||(Fk={}));const vK=(t,e)=>{switch(e.type){case"SET_SIGN_IN_SESSION":return{...t,signInSession:e.value};case"SET_SIGN_IN_STATE":return{...e.value};case"SET_CHALLENGE_NAME":return{...t,challengeName:e.value};case"SET_USERNAME":return{...t,username:e.value};case"SET_INITIAL_STATE":return VD();default:return t}};function VD(){return{username:void 0,challengeName:void 0,signInSession:void 0}}const yK=t=>{let e=t(VD(),{type:"SET_INITIAL_STATE"});return{getState:()=>e,dispatch:n=>{e=t(e,n)}}},Fu=yK(vK);function ev(t){Fu.dispatch({type:"SET_SIGN_IN_STATE",value:t})}function ea(){Fu.dispatch({type:"SET_INITIAL_STATE"})}const AE="UserUnAuthenticatedException",wK="UserAlreadyAuthenticatedException",bK="DeviceMetadataNotFoundException",xK="InvalidRedirectException",SK=new wt({name:xK,message:"signInRedirect or signOutRedirect had an invalid format or was not found.",recoverySuggestion:"Please make sure the signIn/Out redirect in your oauth config is valid."}),EK="InvalidOriginException",CK=new wt({name:EK,message:"redirect is coming from a different origin. The oauth flow needs to be initiated from the same origin",recoverySuggestion:"Please call signInWithRedirect from the same origin."}),TK="OAuthSignOutException",_K="TokenRefreshException";function tv(t){if(!t||!t.accessToken)throw new wt({name:AE,message:"User needs to be authenticated to call this API.",recoverySuggestion:"Sign in before calling this API again."})}function AK(t){if(!t||!t.idToken)throw new wt({name:AE,message:"User needs to be authenticated to call this API.",recoverySuggestion:"Sign in before calling this API again."})}const kK=new wt({name:_K,message:`Token refresh is not supported when authenticated with the 'implicit grant' (token) oauth flow. 
49	Please change your oauth configuration to use 'code grant' flow.`,recoverySuggestion:`Please logout and change your Amplify configuration to use "code grant" flow. 
50	E.g { responseType: 'code' }`}),LK=new wt({name:AE,message:"User needs to be authenticated to call this API.",recoverySuggestion:"Sign in before calling this API again."});function KD(t){if(PK(t))throw kK;if(!IK(t))throw LK}function qD(t){if(!t||!t.deviceKey||!t.deviceGroupKey||!t.randomPassword)throw new wt({name:bK,message:"Either deviceKey, deviceGroupKey or secretPassword were not found during the sign-in process.",recoverySuggestion:"Make sure to not clear storage after calling the signIn API."})}const OK={inflightOAuth:"inflightOAuth",oauthSignIn:"oauthSignIn",oauthPKCE:"oauthPKCE",oauthState:"oauthState"};function GD(t){return(t==null?void 0:t.accessToken)||(t==null?void 0:t.idToken)}function IK(t){return GD(t)&&(t==null?void 0:t.refreshToken)}function PK(t){return GD(t)&&!(t!=null&&t.refreshToken)}const RK=async t=>{var l,c;const e=(l=t.getConfig().Auth)==null?void 0:l.Cognito;Ot(e);const n=await t.Auth.getTokens({forceRefresh:!1});tv(n);const{"cognito:username":r,sub:i}=((c=n.idToken)==null?void 0:c.payload)??{},s={username:r,userId:i},a=MK(n);
50return a&&(s.signInDetails=a),s};function MK(t){return t==null?void 0:t.signInDetails}const Fd=async()=>RK(Qt),Yi=(t,e)=>Qm({category:rx.Auth,action:t,...e});function Es({username:t,userPoolId:e,userPoolClientId:n}){if(typeof window>"u")return;const r=window.AmazonCognitoAdvancedSecurityData;if(typeof r>"u")return;const i=r.getData(t,e,n);return i?{EncodedData:i}:{}}const zk="userAttributes.";async function DK(t,e,n,r,i){var y,w;const{userPoolClientId:s,userPoolId:a}=r,l={USERNAME:t,PASSWORD:e},c=await i.getDeviceMetadata(t);c&&c.deviceKey&&(l.DEVICE_KEY=c.deviceKey);const f=Es({username:t,userPoolId:a,userPoolClientId:s}),d={AuthFlow:"USER_PASSWORD_AUTH",AuthParameters:l,ClientMetadata:n,ClientId:s,UserContextData:f},g=await $d({region:Bn(a),userAgentValue:Yi(Vr.SignIn)},d),v=((y=g.ChallengeParameters)==null?void 0:y.USERNAME)??((w=g.ChallengeParameters)==null?void 0:w.USER_ID_FOR_SRP)??t;return ov(v),g.ChallengeName==="DEVICE_SRP_AUTH"?kE({username:v,config:r,clientMetadata:n,session:g.Session,tokenOrchestrator:i}):g}async function NK(t,e,n,r,i){const{userPoolId:s,userPoolClientId:a}=r,l=(s==null?void 0:s.split("_")[1])||"",c=await Zm(l),f={USERNAME:t,SRP_A:c.A.toString(16)},d=Es({username:t,userPoolId:s,userPoolClientId:a}),g={AuthFlow:"USER_SRP_AUTH",AuthParameters:f,ClientMetadata:n,ClientId:a,UserContextData:d},v=await $d({region:Bn(s),userAgentValue:Yi(Vr.SignIn)},g),{ChallengeParameters:y,Session:w}=v,T=(y==null?void 0:y.USERNAME)??t;return ov(T),sv(YD,[e,y,n,w,c,r,i],T,i)}async function $K(t,e,n,r){var v;const{userPoolClientId:i,userPoolId:s}=n,a={USERNAME:t},l=await r.getDeviceMetadata(t);l&&l.deviceKey&&(a.DEVICE_KEY=l.deviceKey);const c=Es({username:t,userPoolId:s,userPoolClientId:i}),f={AuthFlow:"CUSTOM_AUTH",AuthParameters:a,ClientMetadata:e,ClientId:i,UserContextData:c},d=await $d({region:Bn(s),userAgentValue:Yi(Vr.SignIn)},f),g=((v=d.ChallengeParameters)==null?void 0:v.USERNAME)??t;return ov(g),d.ChallengeName==="DEVICE_SRP_AUTH"?kE({username:g,config:n,clientMetadata:e,session:d.Session,tokenOrchestrator:r}):d}async function FK(t,e,n,r,i){Ot(r);const{userPoolId:s,userPoolClientId:a}=r,l=(s==null?void 0:s.split("_")[1])||"",c=await Zm(l),f={USERNAME:t,SRP_A:c.A.toString(16),CHALLENGE_NAME:"SRP_A"},d=Es({username:t,userPoolId:s,userPoolClientId:a}),g={AuthFlow:"CUSTOM_AUTH",AuthParameters:f,ClientMetadata:n,ClientId:a,UserContextData:d},{ChallengeParameters:v,Session:y}=await $d({region:Bn(s),userAgentValue:Yi(Vr.SignIn)},g),w=(v==null?void 0:v.USERNAME)??t;return ov(w),sv(YD,[e,v,n,y,c,r,i],w,i)}async function kE({username:t,config:e,clientMetadata:n,session:r,tokenOrchestrator:i}){const s=e.userPoolId,a=e.userPoolClientId,l=await(i==null?void 0:i.getDeviceMetadata(t));qD(l);const c=await Zm(l.deviceGroupKey),f={USERNAME:t,SRP_A:c.A.toString(16),DEVICE_KEY:l.deviceKey},d={ChallengeName:"DEVICE_SRP_AUTH",ClientId:a,ChallengeResponses:f,ClientMetadata:n,Session:r},{ChallengeParameters:g,Session:v}=await xE({region:Bn(s)},d);return zK(t,g,n,v,c,e,i)}async function zK(t,e,n,r,i,{userPoolId:s,userPoolClientId:a},l){const c=await(l==null?void 0:l.getDeviceMetadata(t));qD(c);const f=new Ne(e==null?void 0:e.SRP_B,16),d=new Ne(e==null?void 0:e.SALT,16),g=c.deviceKey,v=c.deviceGroupKey,y=await i.getPasswordAuthenticationKey({username:c.deviceKey,password:c.randomPassword,serverBValue:f,salt:d}),w=HD(),T={USERNAME:(e==null?void 0:e.USERNAME)??t,PASSWORD_CLAIM_SECRET_BLOCK:e==null?void 0:e.SECRET_BLOCK,TIMESTAMP:w,PASSWORD_CLAIM_SIGNATURE:WD({username:g,userPoolName:v,challengeParameters:e,dateNow:w,hkdf:y}),DEVICE_KEY:g},E=Es({username:t,userPoolId:s,userPoolClientId:a}),x={ChallengeName:"DEVICE_PASSWORD_VERIFIER",ClientId:a,ChallengeResponses:T,Session:r,ClientMetadata:n,UserContextData:E};return xE({region:Bn(s)},x)}async function YD(t,e,n,r,i,s,a){const{userPoolId:l,userPoolClientId:c}=s,f=(l==null?void 0:l.split("_")[1])||"",d=new Ne(e==null?void 0:e.SRP_B,16),g=new Ne(e==null?void 0:e.SALT,16),v=e==null?void 0:e.USER_ID_FOR_SRP;if(!v)throw new wt({name:"EmptyUserIdForSRPException",message:"USER_ID_FOR_SRP was not found in challengeParameters"});const y=await i.getPasswordAuthenticationKey({username:v,password:t,serverBValue:d,salt:g}),w=HD(),T={USERNAME:v,PASSWORD_CLAIM_SECRET_BLOCK:e==null?void 0:e.SECRET_BLOCK,TIMESTAMP:w,PASSWORD_CLAIM_SIGNATURE:WD({username:v,userPoolName:f,challengeParameters:e,dateNow:w,hkdf:y})},E=await a.getDeviceMetadata(v);E&&E.deviceKey&&(T.DEVICE_KEY=E.deviceKey);const x=Es({username:v,userPoolId:l,userPoolClientId:c}),b={ChallengeName:"PASSWORD_VERIFIER",ChallengeResponses:T,ClientMetadata:n,Session:r,ClientId:c,UserContextData:x},C=await xE({region:Bn(l)},b);return C.ChallengeName==="DEVICE_SRP_AUTH"?kE({username:v,config:s,clientMetadata:n,session:C.Session,tokenOrchestrator:a}):C}async function nv(t){var i;const{challengeName:e,challengeParameters:n}=t,r=(i=Qt.getConfig().Auth)==null?void 0:i.Cognito;switch(Ot(r),e){case"CUSTOM_CHALLENGE":return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_IN_WITH_CUSTOM_CHALLENGE",additionalInfo:n}};case"MFA_SETUP":const{signInSession:s,username:a}=Fu.getState();if(!HK(n,"TOTP"))throw new wt({name:Fg.SignInException,message:`Cannot initiate MFA setup from available types: ${lx(ux(n.MFAS_CAN_SETUP))}`});const{Session:l,SecretCode:c}=await gV({region:Bn(r.userPoolId)},{Session:s});return Fu.dispatch({type:"SET_SIGN_IN_SESSION",value:l}),{isSignedIn:!1,nextStep:{signInStep:"CONTINUE_SIGN_IN_WITH_TOTP_SETUP",totpSetupDetails:BK(c,a)}};case"NEW_PASSWORD_REQUIRED":return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_IN_WITH_NEW_PASSWORD_REQUIRED",missingAttributes:jK(n.requiredAttributes)}};case"SELECT_MFA_TYPE":return{isSignedIn:!1,nextStep:{signInStep:"CONTINUE_SIGN_IN_WITH_MFA_SELECTION",allowedMFATypes:lx(ux(n.MFAS_CAN_CHOOSE))}};case"SMS_MFA":return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_IN_WITH_SMS_CODE",codeDeliveryDetails:{deliveryMedium:n.CODE_DELIVERY_DELIVERY_MEDIUM,destination:n.CODE_DELIVERY_DESTINATION}}};case"SOFTWARE_TOKEN_MFA":return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_IN_WITH_TOTP_CODE"}}}throw new wt({name:Fg.SignInException,message:`An error occurred during the sign in process. ${e} challengeName returned by the underlying service was not addressed.`})}function BK(t,e){return{sharedSecret:t,getSetupUri:(n,r)=>{const i=`otpauth://totp/${n}:${r??e}?secret=${t}&issuer=${n}`;return new Dg(i)}}}function rv(t){if(t===zg.PasswordResetRequiredException)return{isSignedIn:!1,nextStep:{signInStep:"RESET_PASSWORD"}};if(t===zg.UserNotConfirmedException)return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_UP"}}
50}function jK(t){return t?JSON.parse(t).map(n=>n.includes(zk)?n.replace(zk,""):n):[]}function UK(t){if(t==="SMS_MFA")return"SMS";if(t==="SOFTWARE_TOKEN_MFA")return"TOTP"}function lx(t){if(t)return t.map(UK).filter(Boolean)}function ux(t){return t?JSON.parse(t):[]}function HK(t,e){const{MFAS_CAN_SETUP:n}=t,r=lx(ux(n));return r?r.includes(e):!1}async function WK(){let t;try{t=await Fd()}catch{}if(t&&t.userId&&t.username)throw new wt({name:wK,message:"There is already a signed in user.",recoverySuggestion:"Call signOut before calling signIn again."})}async function iv(t,e,n){if(!e)return;const r=t.split("_")[1]||"",i=await Zm(r),s=e==null?void 0:e.DeviceKey,a=e==null?void 0:e.DeviceGroupKey;try{await i.generateHashDevice(a??"",s??"")}catch{return}const l={Salt:$g.convert($u(i.getSaltToHashDevices())),PasswordVerifier:$g.convert($u(i.getVerifierDevices()))},c=i.getRandomPassword();try{return await yV({region:Bn(t)},{AccessToken:n,DeviceKey:e==null?void 0:e.DeviceKey,DeviceSecretVerifierConfig:l}),{deviceKey:s,deviceGroupKey:a,randomPassword:c}}catch{return}}async function sv(t,e,n,r){try{return await t(...e)}catch(i){if(i instanceof wt&&i.name==="ResourceNotFoundException"&&i.message.includes("Device does not exist."))return await r.clearDeviceMetadata(n),await t(...e);throw i}}function ov(t){const{dispatch:e}=Fu;e({type:"SET_USERNAME",value:t})}function av(t){return Fu.getState().username??t}const VK=async({tokens:t,authConfig:e,username:n})=>{var v,y;Ot(e==null?void 0:e.Cognito);const r=Bn(e.Cognito.userPoolId);KD(t);const i=t.refreshToken,s={REFRESH_TOKEN:i};(v=t.deviceMetadata)!=null&&v.deviceKey&&(s.DEVICE_KEY=t.deviceMetadata.deviceKey);const a=Es({username:n,userPoolId:e.Cognito.userPoolId,userPoolClientId:e.Cognito.userPoolClientId}),{AuthenticationResult:l}=await $d({region:r},{ClientId:(y=e==null?void 0:e.Cognito)==null?void 0:y.userPoolClientId,AuthFlow:"REFRESH_TOKEN_AUTH",AuthParameters:s,UserContextData:a}),c=ol((l==null?void 0:l.AccessToken)??""),f=l!=null&&l.IdToken?ol(l.IdToken):void 0,d=c.payload.iat;if(!d)throw new wt({name:"iatNotFoundException",message:"iat not found in access token"});const g=d*1e3-new Date().getTime();return{accessToken:c,idToken:f,clockDrift:g,refreshToken:i,username:n}},KK={accessToken:"accessToken",idToken:"idToken",oidcProvider:"oidcProvider",clockDrift:"clockDrift",refreshToken:"refreshToken",deviceKey:"deviceKey",randomPasswordKey:"randomPasswordKey",deviceGroupKey:"deviceGroupKey",signInDetails:"signInDetails"};var Bg;(function(t){t.InvalidAuthTokens="InvalidAuthTokens"})(Bg||(Bg={}));const qK={[Bg.InvalidAuthTokens]:{message:"Invalid tokens.",recoverySuggestion:"Make sure the tokens are valid."}},GK=bD(qK);class YK{constructor(){this.name="CognitoIdentityServiceProvider"}getKeyValueStorage(){if(!this.keyValueStorage)throw new wt({name:"KeyValueStorageNotFoundException",message:"KeyValueStorage was not found in TokenStore"});return this.keyValueStorage}setKeyValueStorage(e){this.keyValueStorage=e}setAuthConfig(e){this.authConfig=e}async loadTokens(){try{const e=await this.getAuthKeys(),n=await this.getKeyValueStorage().getItem(e.accessToken);if(!n)throw new wt({name:"NoSessionFoundException",message:"Auth session was not found. Make sure to call signIn."});const r=ol(n),i=await this.getKeyValueStorage().getItem(e.idToken),s=i?ol(i):void 0,a=await this.getKeyValueStorage().getItem(e.refreshToken)??void 0,l=await this.getKeyValueStorage().getItem(e.clockDrift)??"0",c=Number.parseInt(l),f=await this.getKeyValueStorage().getItem(e.signInDetails),d={accessToken:r,idToken:s,refreshToken:a,deviceMetadata:await this.getDeviceMetadata()??void 0,clockDrift:c,username:await this.getLastAuthUser()};return f&&(d.signInDetails=JSON.parse(f)),d}catch{return null}}async storeTokens(e){GK(e!==void 0,Bg.InvalidAuthTokens),await this.clearTokens();const n=e.username;await this.getKeyValueStorage().setItem(this.getLastAuthUserKey(),n);const r=await this.getAuthKeys();await this.getKeyValueStorage().setItem(r.accessToken,e.accessToken.toString()),e.idToken&&await this.getKeyValueStorage().setItem(r.idToken,e.idToken.toString()),e.refreshToken&&await this.getKeyValueStorage().setItem(r.refreshToken,e.refreshToken),e.deviceMetadata&&(e.deviceMetadata.deviceKey&&await this.getKeyValueStorage().setItem(r.deviceKey,e.deviceMetadata.deviceKey),e.deviceMetadata.deviceGroupKey&&await this.getKeyValueStorage().setItem(r.deviceGroupKey,e.deviceMetadata.deviceGroupKey),await this.getKeyValueStorage().setItem(r.randomPasswordKey,e.deviceMetadata.randomPassword)),e.signInDetail
50s&&await this.getKeyValueStorage().setItem(r.signInDetails,JSON.stringify(e.signInDetails)),await this.getKeyValueStorage().setItem(r.clockDrift,`${e.clockDrift}`)}async clearTokens(){const e=await this.getAuthKeys();await Promise.all([this.getKeyValueStorage().removeItem(e.accessToken),this.getKeyValueStorage().removeItem(e.idToken),this.getKeyValueStorage().removeItem(e.clockDrift),this.getKeyValueStorage().removeItem(e.refreshToken),this.getKeyValueStorage().removeItem(e.signInDetails),this.getKeyValueStorage().removeItem(this.getLastAuthUserKey())])}async getDeviceMetadata(e){const n=await this.getAuthKeys(e),r=await this.getKeyValueStorage().getItem(n.deviceKey),i=await this.getKeyValueStorage().getItem(n.deviceGroupKey),s=await this.getKeyValueStorage().getItem(n.randomPasswordKey);return s?{deviceKey:r??void 0,deviceGroupKey:i??void 0,randomPassword:s}:null}async clearDeviceMetadata(e){const n=await this.getAuthKeys(e);await Promise.all([this.getKeyValueStorage().removeItem(n.deviceKey),this.getKeyValueStorage().removeItem(n.deviceGroupKey),this.getKeyValueStorage().removeItem(n.randomPasswordKey)])}async getAuthKeys(e){var r;Ot((r=this.authConfig)==null?void 0:r.Cognito);const n=e??await this.getLastAuthUser();return XK(this.name,`${this.authConfig.Cognito.userPoolClientId}.${n}`)}getLastAuthUserKey(){var n;Ot((n=this.authConfig)==null?void 0:n.Cognito);const e=this.authConfig.Cognito.userPoolClientId;return`${this.name}.${e}.LastAuthUser`}async getLastAuthUser(){return await this.getKeyValueStorage().getItem(this.getLastAuthUserKey())??"username"}}const XK=(t,e)=>LE(KK)(`${t}`,e);function LE(t){const e=Object.values({...t});return(n,r)=>e.reduce((i,s)=>({...i,[s]:`${n}.${r}.${s}`}),{})}class QK{constructor(){this.waitForInflightOAuth=async()=>{}}setAuthConfig(e){this.authConfig=e}setTokenRefresher(e){this.tokenRefresher=e}setAuthTokenStore(e){this.tokenStore=e}setWaitForInflightOAuth(e){this.waitForInflightOAuth=e}getTokenStore(){if(!this.tokenStore)throw new wt({name:"EmptyTokenStoreException",message:"TokenStore not set"});return this.tokenStore}getTokenRefresher(){if(!this.tokenRefresher)throw new wt({name:"EmptyTokenRefresherException",message:"TokenRefresher not set"});return this.tokenRefresher}async getTokens(e){var a,l,c,f,d;let n;try{Ot((a=this.authConfig)==null?void 0:a.Cognito)}catch{return null}await this.waitForInflightOAuth(),n=await this.getTokenStore().loadTokens();const r=await this.getTokenStore().getLastAuthUser();if(n===null)return null;const i=!!(n!=null&&n.idToken)&&WA({expiresAt:(((c=(l=n.idToken)==null?void 0:l.payload)==null?void 0:c.exp)??0)*1e3,clockDrift:n.clockDrift??0}),s=WA({expiresAt:(((d=(f=n.accessToken)==null?void 0:f.payload)==null?void 0:d.exp)??0)*1e3,clockDrift:n.clockDrift??0});return(e!=null&&e.forceRefresh||i||s)&&(n=await this.refreshTokens({tokens:n,username:r}),n===null)?null:{accessToken:n==null?void 0:n.accessToken,idToken:n==null?void 0:n.idToken,signInDetails:n==null?void 0:n.signInDetails}}async refreshTokens({tokens:e,username:n}){try{const r=await this.getTokenRefresher()({tokens:e,authConfig:this.authConfig,username:n});return await this.setTokens({tokens:r}),Zs.dispatch("auth",{event:"tokenRefresh"},"Auth",xs),r}catch(r){return this.handleErrors(r)}}handleErrors(e){if(Zu(e),e.message!=="Network error"&&this.clearTokens(),Zs.dispatch("auth",{event:"tokenRefresh_failure",data:{error:e}},"Auth",xs),e.name.startsWith("NotAuthorizedException"))return null;throw e}async setTokens({tokens:e}){return this.getTokenStore().storeTokens(e)}async clearTokens(){return this.getTokenStore().clearTokens()}getDeviceMetadata(e){return this.getTokenStore().getDeviceMetadata(e)}clearDeviceMetadata(e){return this.getTokenStore().clearDeviceMetadata(e)}}class JK{constructor(){this.authTokenStore=new YK,this.authTokenStore.setKeyValueStorage(yd),this.tokenOrchestrator=new QK,this.tokenOrchestrator.setAuthTokenStore(this.authTokenStore),this.tokenOrchestrator.setTokenRefresher(VK)}getTokens({forceRefresh:e}={forceRefresh:!1}){return this.tokenOrchestrator.getTokens({forceRefresh:e})}setKeyValueStorage(e){this.authTokenStore.setKeyValueStorage(e)}setWaitForInflightOAuth(e){this.tokenOrchestrator.setWaitForInflightOAuth(e)}setAuthConfig(e){this.authTokenStore.setAuthConfig(e),this.tokenOrchestrator.setAuthConfig(e)}}const If=new JK,Hi=If.tokenOrchestrator;async function lv(t){if(t.AccessToken){const e=ol(t.AccessToken),n=(e.payload.iat||0)*1e3,r=new Date().getTime(),i=n>0?n-r:0;let s,a,l;t.RefreshToken&&(a=t.RefreshToken),t.IdToken&&(s=ol(t.IdToken)),t!=null&&t.NewDeviceMetadata&&(l=t.NewDeviceMetadata);const c={accessToken:e,idToken:s,refreshToken:a,clockDrift:i,deviceMetadata:l,username:t.username};
50t!=null&&t.signInDetails&&(c.signInDetails=t.signInDetails),await Hi.setTokens({tokens:c})}else throw new vi({message:"Invalid tokens",name:"InvalidTokens",recoverySuggestion:"Check Cognito UserPool settings"})}async function ZK(t){var l;const e=(l=Qt.getConfig().Auth)==null?void 0:l.Cognito;Ot(e);const{username:n,password:r,options:i}=t,s={loginId:n,authFlowType:"CUSTOM_WITHOUT_SRP"},a=i==null?void 0:i.clientMetadata;Qn(!!n,gt.EmptySignInUsername),Qn(!r,gt.CustomAuthSignInPassword);try{const{ChallengeName:c,ChallengeParameters:f,AuthenticationResult:d,Session:g}=await sv($K,[n,a,e,Hi],n,Hi),v=av(n);return ev({signInSession:g,username:v,challengeName:c,signInDetails:s}),d?(ea(),await lv({username:v,...d,NewDeviceMetadata:await iv(e.userPoolId,d.NewDeviceMetadata,d.AccessToken),signInDetails:s}),Zs.dispatch("auth",{event:"signedIn",data:await Fd()},"Auth",xs),{isSignedIn:!0,nextStep:{signInStep:"DONE"}}):nv({challengeName:c,challengeParameters:f})}catch(c){ea(),Zu(c);const f=rv(c.name);if(f)return f;throw c}}async function e9(t){var l;const{username:e,password:n,options:r}=t,i={loginId:e,authFlowType:"CUSTOM_WITH_SRP"},s=(l=Qt.getConfig().Auth)==null?void 0:l.Cognito;Ot(s);const a=r==null?void 0:r.clientMetadata;Qn(!!e,gt.EmptySignInUsername),Qn(!!n,gt.EmptySignInPassword);try{const{ChallengeName:c,ChallengeParameters:f,AuthenticationResult:d,Session:g}=await FK(e,n,a,s,Hi),v=av(e);return ev({signInSession:g,username:v,challengeName:c,signInDetails:i}
50),d?(await lv({username:v,...d,NewDeviceMetadata:await iv(s.userPoolId,d.NewDeviceMetadata,d.AccessToken),signInDetails:i}),ea(),Zs.dispatch("auth",{event:"signedIn",data:await Fd()},"Auth",xs),{isSignedIn:!0,nextStep:{signInStep:"DONE"}}):nv({challengeName:c,challengeParameters:f})}catch(c){ea(),Zu(c);const f=rv(c.name);if(f)return f;throw c}}async function Bk(t){var a,l;const{username:e,password:n}=t,r=(a=Qt.getConfig().Auth)==null?void 0:a.Cognito,i={loginId:e,authFlowType:"USER_SRP_AUTH"};Ot(r);const s=(l=t.options)==null?void 0:l.clientMetadata;Qn(!!e,gt.EmptySignInUsername),Qn(!!n,gt.EmptySignInPassword);try{const{ChallengeName:c,ChallengeParameters:f,AuthenticationResult:d,Session:g}=await NK(e,n,s,r,Hi),v=av(e);return ev({signInSession:g,username:v,challengeName:c,signInDetails:i}),d?(ea(),await lv({username:v,...d,NewDeviceMetadata:await iv(r.userPoolId,d.NewDeviceMetadata,d.AccessToken),signInDetails:i}),Zs.dispatch("auth",{event:"signedIn",data:await Fd()},"Auth",xs),{isSignedIn:!0,nextStep:{signInStep:"DONE"}}):nv({challengeName:c,challengeParameters:f})}catch(c){ea(),Zu(c);const f=rv(c.name);if(f)return f;throw c}}async function t9(t){var l;const{username:e,password:n,options:r}=t,i=(l=Qt.getConfig().Auth)==null?void 0:l.Cognito,s={loginId:e,authFlowType:"USER_PASSWORD_AUTH"};Ot(i);const a=r==null?void 0:r.clientMetadata;Qn(!!e,gt.EmptySignInUsername),Qn(!!n,gt.EmptySignInPassword);try{const{ChallengeName:c,ChallengeParameters:f,AuthenticationResult:d,Session:g}=await sv(DK,[e,n,a,i,Hi],e,Hi),v=av(e);return ev({signInSession:g,username:v,challengeName:c,signInDetails:s}),d?(await lv({...d,username:v,NewDeviceMetadata:await iv(i.userPoolId,d.NewDeviceMetadata,d.AccessToken),signInDetails:s}),ea(),Zs.dispatch("auth",{event:"signedIn",data:await Fd()},"Auth",xs),{isSignedIn:!0,nextStep:{signInStep:"DONE"}}):nv({challengeName:c,challengeParameters:f})}catch(c){ea(),Zu(c);const f=rv(c.name);if(f)return f;throw c}}async function Nxe(t){var n;const e=(n=t.options)==null?void 0:n.authFlowType;switch(await WK(),e){case"USER_SRP_AUTH":return Bk(t);case"USER_PASSWORD_AUTH":return t9(t);case"CUSTOM_WITHOUT_SRP":return ZK(t);case"CUSTOM_WITH_SRP":return e9(t);default:return Bk(t)}}let XD=!1,QD;function n9(t){QD=t}function r9(t){return QD===t}function i9(){return XD}function s9(t){t===!1&&n9(void 0),XD=t}async function $xe(t){var f,d;const e=t.username;Qn(!!e,gt.EmptyResetPasswordUsername);const n=(f=Qt.getConfig().Auth)==null?void 0:f.Cognito;Ot(n);const{userPoolClientId:r,userPoolId:i}=n,s=(d=t.options)==null?void 0:d.clientMetadata,a=Es({username:e,userPoolId:i,userPoolClientId:r}),c=(await pV({region:Bn(n.userPoolId),userAgentValue:Yi(Vr.ResetPassword)},{Username:e,ClientMetadata:s,ClientId:n.userPoolClientId,UserContextData:a})).CodeDeliveryDetails;return{isPasswordReset:!1,nextStep:{resetPasswordStep:"CONFIRM_RESET_PASSWORD_WITH_CODE",codeDeliveryDetails:{deliveryMedium:c==null?void 0:c.DeliveryMedium,destination:c==null?void 0:c.Destination,attributeName:c==null?void 0:c.AttributeName}}}}async function Fxe(t){var f,d;const e=(f=Qt.getConfig().Auth)==null?void 0:f.Cognito;Ot(e);const{userPoolClientId:n,userPoolId:r}=e,{username:i,newPassword:s}=t;Qn(!!i,gt.EmptyConfirmResetPasswordUsername),Qn(!!s,gt.EmptyConfirmResetPasswordNewPassword);const a=t.confirmationCode;Qn(!!a,gt.EmptyConfirmResetPasswordConfirmationCode);const l=(d=t.options)==null?void 0:d.clientMetadata,c=Es({username:i,userPoolId:r,userPoolClientId:n});await hV({region:Bn(e.userPoolId),userAgentValue:Yi(Vr.ConfirmResetPassword)},{Username:i,ConfirmationCode:a,Password:s,ClientMetadata:l,ClientId:e.userPoolClientId,UserContextData:c})}async function zxe(t){var f;const{username:e,confirmationCode:n,options:r}=t,i=(f=Qt.getConfig().Auth)==null?void 0:f.Cognito;Ot(i);const{userPoolId:s,userPoolClientId:a}=i,l=r==null?void 0:r.clientMetadata;Qn(!!e,gt.EmptyConfirmSignUpUsername),Qn(!!n,gt.EmptyConfirmSignUpCode);const c=Es({username:e,userPoolId:s,userPoolClientId:a});return await dV({region:Bn(i.userPoolId),userAgentValue:Yi(Vr.ConfirmSignUp)},{Username:e,ConfirmationCode:n,ClientMetadata:l,ForceAliasCreation:r==null?void 0:r.forceAliasCreation,ClientId:i.userPoolClientId,UserContextData:c}),new Promise((d,g)=>{try{const v={isSignUpComplete:!0,nextStep:{signUpStep:"DONE"}};if(!i9()||!r9(e))return d(v);const y=HA.listen("auth-internal",({payload:w})=>{switch(w.event){case"autoSignIn":d({isSignUpComplete:!0,nextStep:{signUpStep:"COMPLETE_AUTO_SIGN_IN"}}),s9(!1),y()}});HA.dispatch("auth-internal",{event:"confirmSignUp",data:v})}catch(v){g(v)}})}async function Bxe(t){var s;const e=(s=Qt.getConfig().Auth)==null?void 0:s.Cognito;Ot(e);const{oldPassword:n,newPassword:r}=t;Qn(!!n,gt.EmptyUpdatePassword),Qn(!!r,gt.EmptyUpdatePassword);const{tokens:i}=await W6({forceRefresh:!1});tv(i),await vV({region:Bn(e.userPoolId),userAgentValue:Yi(Vr.UpdatePassword)},{AccessToken:i.accessToken.toString(),PreviousPassword:n,ProposedPassword:r})}
50const jk="amplify-signin-with-hostedUI",ls="CognitoIdentityServiceProvider";class o9{constructor(e){this.keyValueStorage=e}async clearOAuthInflightData(){Ot(this.cognitoConfig);const e=us(ls,this.cognitoConfig.userPoolClientId);await Promise.all([this.keyValueStorage.removeItem(e.inflightOAuth),this.keyValueStorage.removeItem(e.oauthPKCE),this.keyValueStorage.removeItem(e.oauthState)])}async clearOAuthData(){Ot(this.cognitoConfig);const e=us(ls,this.cognitoConfig.userPoolClientId);return await this.clearOAuthInflightData(),await this.keyValueStorage.removeItem(jk),this.keyValueStorage.removeItem(e.oauthSignIn)}loadOAuthState(){Ot(this.cognitoConfig);const e=us(ls,this.cognitoConfig.userPoolClientId);return this.keyValueStorage.getItem(e.oauthState)}storeOAuthState(e){Ot(this.cognitoConfig);const n=us(ls,this.cognitoConfig.userPoolClientId);return this.keyValueStorage.setItem(n.oauthState,e)}loadPKCE(){Ot(this.cognitoConfig);const e=us(ls,this.cognitoConfig.userPoolClientId);return this.keyValueStorage.getItem(e.oauthPKCE)}storePKCE(e){Ot(this.cognitoConfig);const n=us(ls,this.cognitoConfig.userPoolClientId);return this.keyValueStorage.setItem(n.oauthPKCE,e)}setAuthConfig(e){this.cognitoConfig=e}async loadOAuthInFlight(){Ot(this.cognitoConfig);const e=us(ls,this.cognitoConfig.userPoolClientId);return await this.keyValueStorage.getItem(e.inflightOAuth)==="true"}async storeOAuthInFlight(e){Ot(this.cognitoConfig);const n=us(ls,this.cognitoConfig.userPoolClientId);return await this.keyValueStorage.setItem(n.inflightOAuth,`${e}`)}async loadOAuthSignIn(){var s;Ot(this.cognitoConfig);const e=us(ls,this.cognitoConfig.userPoolClientId),n=await this.keyValueStorage.getItem(jk),[r,i]=((s=await this.keyValueStorage.getItem(e.oauthSignIn))==null?void 0:s.split(","))??[];return{isOAuthSignIn:r==="true"||n==="true",preferPrivateSession:i==="true"}}async storeOAuthSignIn(e,n=!1){Ot(this.cognitoConfig);const r=us(ls,this.cognitoConfig.userPoolClientId);return await this.keyValueStorage.setItem(r.oauthSignIn,`${e},${n}`)}}const us=(t,e)=>LE(OK)(t,e);function a9(t){const e=(t==null?void 0:t.find(l9))??(t==null?void 0:t.find(u9)),n=(t==null?void 0:t.find(f9))??(t==null?void 0:t.find(c9));if(e)return e;throw n?CK:SK}const l9=t=>t.startsWith(String(window.location.origin+window.location.pathname)),u9=t=>t.includes(String(window.location.hostname)),c9=t=>t.startsWith("http://"),f9=t=>t.startsWith("https://"),d9=async t=>{window!=null&&window.location&&(window.location.href=t.replace("http://","https://"))},p9=async t=>{var i;const e=(i=t.getConfig().Auth)==null?void 0:i.Cognito;Ot(e);const{tokens:n}=await _D(t,{forceRefresh:!1});tv(n);const{UserAttributes:r}=await mV({region:Bn(e.userPoolId),userAgentValue:Yi(Vr.FetchUserAttributes)},{AccessToken:n.accessToken.toString()});return xV(r)},jxe=()=>p9(Qt),h9=async t=>{await t.clearOAuthData(),Hi.clearTokens(),await AD(),Zs.dispatch("auth",{event:"signedOut"},"Auth",xs)},g9=async(t,e=!1)=>{ED(t);const{loginWith:n,userPoolClientId:r}=t,{domain:i,redirectSignOut:s}=n.oauth,a=a9(s),l=`https://${i}/logout?${Object.entries({client_id:r,logout_uri:encodeURIComponent(a)}).map(([c,f])=>`${c}=${f}`).join("&")}`;return d9(l)},m9=async(t,e)=>{const{isOAuthSignIn:n}=await e.loadOAuthSignIn();if(await h9(e),n)return g9(t)},JD=new bs("Auth");async function Uxe(t){var r;const e=(r=Qt.getConfig().Auth)==null?void 0:r.Cognito;Ot(e),t!=null&&t.global?await y9(e):await v9(e);let n;try{ED(e),n=!0}catch{n=!1}if(n){const i=new o9(yd);i.setAuthConfig(e);const{type:s}=await m9(e,i)??{};if(s==="error")throw new wt({name:TK,message:"An error occurred when attempting to log out from OAuth provider."})}else Hi.clearTokens(),await AD(),Zs.dispatch("auth",{event:"signedOut"},"Auth",xs)}async function v9(t){try{const e=await Hi.getTokenStore().loadTokens();KD(e),w9(e.accessToken)&&await fV({region:Bn(t.userPoolId),userAgentValue:Yi(Vr.SignOut)},{ClientId:t.userPoolClientId,Token:e.refreshToken})}catch{JD.debug("Client signOut error caught but will proceed with token removal")}}async function y9(t){try{const e=await Hi.getTokenStore().loadTokens();tv(e),await wV({region:Bn(t.userPoolId),userAgentValue:Yi(Vr.SignOut)}
50,{AccessToken:e.accessToken.toString()})}catch{JD.debug("Global signOut error caught but will proceed with token removal")}}const w9=t=>{var e;return!!((e=t==null?void 0:t.payload)!=null&&e.origin_jti)},b9={identityId:"identityId"},x9=new bs("DefaultIdentityIdStore");class S9{setAuthConfig(e){Dh(e.Cognito),this.authConfig=e,this._authKeys=E9("Cognito",e.Cognito.identityPoolId)}constructor(e){this._authKeys={},this.keyValueStorage=e}async loadIdentityId(){var e;Dh((e=this.authConfig)==null?void 0:e.Cognito);try{if(this._primaryIdentityId)return{id:this._primaryIdentityId,type:"primary"};{const n=await this.keyValueStorage.getItem(this._authKeys.identityId);return n?{id:n,type:"guest"}:null}}catch(n){return x9.log("Error getting stored IdentityId.",n),null}}async storeIdentityId(e){var n;Dh((n=this.authConfig)==null?void 0:n.Cognito),e.type==="guest"?(this.keyValueStorage.setItem(this._authKeys.identityId,e.id),this._primaryIdentityId=void 0):(this._primaryIdentityId=e.id,this.keyValueStorage.removeItem(this._authKeys.identityId))}async clearIdentityId(){this._primaryIdentityId=void 0,await this.keyValueStorage.removeItem(this._authKeys.identityId)}}const E9=(t,e)=>LE(b9)(`com.amplify.${t}`,e);function ZD(t){const e=ol(t).payload.iss,n={};if(!e)throw new wt({name:"InvalidIdTokenException",message:"Invalid Idtoken."});let r=e.replace(/(^\w+:|^)\/\//,"");return n[r]=t,n}const C9=new bs("CognitoIdentityIdProvider");async function T9({tokens:t,authConfig:e,identityIdStore:n}){n.setAuthConfig({Cognito:e});let r=await n.loadIdentityId();if(t){if(r&&r.type==="primary")return r.id;{const i=t.idToken?ZD(t.idToken.toString()):{},s=await Uk(i,e);r&&r.id===s&&C9.debug(`The guest identity ${r.id} has become the primary identity.`),r={id:s,type:"primary"}}}else{if(r&&r.type==="guest")return r.id;r={id:await Uk({},e),type:"guest"}}return n.storeIdentityId(r),r.id}async function Uk(t,e){const n=e==null?void 0:e.identityPoolId,r=sx(n),i=(await Y8({region:r},{IdentityPoolId:n,Logins:t})).IdentityId;if(!i)throw new wt({name:"GetIdResponseException",message:"Received undefined response from getId operation",recoverySuggestion:"Make sure to pass a valid identityPoolId in the configuration."});return i}const ih=new bs("CognitoCredentialsProvider"),Hk=50*60*1e3;class _9{constructor(e){this._nextCredentialsRefresh=0,this._identityIdStore=e}async clearCredentialsAndIdentityId(){ih.debug("Clearing out credentials and identityId"),this._credentialsAndIdentityId=void 0,await this._identityIdStore.clearIdentityId()}async clearCredentials(){ih.debug("Clearing out in-memory credentials"),this._credentialsAndIdentityId=void 0}async getCredentialsAndIdentityId(e){const n=e.authenticated,r=e.tokens,i=e.authConfig;try{Dh(i==null?void 0:i.Cognito)}catch{return}if(!n&&!i.Cognito.allowGuestAccess)return;const s=e.forceRefresh,a=this.hasTokenChanged(r),l=await T9({tokens:r,authConfig:i.Cognito,identityIdStore:this._identityIdStore});return(s||a)&&this.clearCredentials(),n?(AK(r),this.credsForOIDCTokens(i.Cognito,r,l)):this.getGuestCredentials(l,i.Cognito)}async getGuestCredentials(e,n){if(this._credentialsAndIdentityId&&!this.isPastTTL()&&this._credentialsAndIdentityId.isAuthenticatedCreds===!1)return ih.info("returning stored credentials as they neither past TTL nor expired."),this._credentialsAndIdentityId;this.clearCredentials();const r=sx(n.identityPoolId),i=await ck({region:r},{IdentityId:e});if(i.Credentials&&i.Credentials.AccessKeyId&&i.Credentials.SecretKey){this._nextCredentialsRefresh=new Date().getTime()+Hk;const s={credentials:{accessKeyId:i.Credentials.AccessKeyId,secretAccessKey:i.Credentials.SecretKey,sessionToken:i.Credentials.SessionToken,expiration:i.Credentials.Expiration},identityId:e},a=i.IdentityId;return a&&(s.identityId=a,this._identityIdStore.storeIdentityId({id:a,type:"guest"})),this._credentialsAndIdentityId={...s,isAuthenticatedCreds:!1},s}else throw new wt({name:"CredentialsNotFoundException",message:"Cognito did not respond with either Credentials, AccessKeyId or SecretKey."})}async credsForOIDCTokens(e,n,r){var l;if(this._credentialsAndIdentityId&&!this.isPastTTL()&&this._credentialsAndIdentityId.isAuthenticatedCreds===!0)return ih.debug("returning stored credentials as they neither past TTL n
50or expired."),this._credentialsAndIdentityId;this.clearCredentials();const i=n.idToken?ZD(n.idToken.toString()):{},s=sx(e.identityPoolId),a=await ck({region:s},{IdentityId:r,Logins:i});if(a.Credentials&&a.Credentials.AccessKeyId&&a.Credentials.SecretKey){const c={credentials:{accessKeyId:a.Credentials.AccessKeyId,secretAccessKey:a.Credentials.SecretKey,sessionToken:a.Credentials.SessionToken,expiration:a.Credentials.Expiration},identityId:r};this._credentialsAndIdentityId={...c,isAuthenticatedCreds:!0,associatedIdToken:(l=n.idToken)==null?void 0:l.toString()},this._nextCredentialsRefresh=new Date().getTime()+Hk;const f=a.IdentityId;return f&&(c.identityId=f,this._identityIdStore.storeIdentityId({id:f,type:"primary"})),c}else throw new wt({name:"CredentialsException",message:"Cognito did not respond with either Credentials, AccessKeyId or SecretKey."})}isPastTTL(){return this._nextCredentialsRefresh===void 0?!0:this._nextCredentialsRefresh<=Date.now()}hasTokenChanged(e){var n,r;return!!e&&!!((n=this._credentialsAndIdentityId)!=null&&n.associatedIdToken)&&((r=e.idToken)==null?void 0:r.toString())!==this._credentialsAndIdentityId.associatedIdToken}}const A9=new _9(new S9(yd)),Hxe={configure(t,e){let n;if(Object.keys(t).some(r=>r.startsWith("aws_"))?n=CD(t):n=t,!n.Auth||e!=null&&e.Auth)return Qt.configure(n,e);if(!Qt.libraryOptions.Auth)return If.setAuthConfig(n.Auth),If.setKeyValueStorage(e!=null&&e.ssr?new fk({sameSite:"lax"}):yd),Qt.configure(n,{...e,Auth:{tokenProvider:If,credentialsProvider:A9}});if(e)return e.ssr!==void 0&&If.setKeyValueStorage(e.ssr?new fk({sameSite:"lax"}):yd),Qt.configure(n,{Auth:Qt.libraryOptions.Auth,...e});Qt.configure(n)},getConfig(){return Qt.getConfig()}};function eN(t,e){return function(){return t.apply(e,arguments)}}const{toString:k9}=Object.prototype,{getPrototypeOf:OE}=Object,uv=(t=>e=>{const n=k9.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Xi=t=>(t=t.toLowerCase(),e=>uv(e)===t),cv=t=>e=>typeof e===t,{isArray:nc}=Array,wd=cv("undefined");function L9(t){return t!==null&&!wd(t)&&t.constructor!==null&&!wd(t.constructor)&&jr(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const tN=Xi("ArrayBuffer");function O9(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&tN(t.buffer),e}const I9=cv("string"),jr=cv("function"),nN=cv("number"),fv=t=>t!==null&&typeof t=="object",P9=t=>t===!0||t===!1,Bh=t=>{if(uv(t)!=="object")return!1;const e=OE(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},R9=Xi("Date"),M9=Xi("File"),D9=Xi("Blob"),N9=Xi("FileList"),$9=t=>fv(t)&&jr(t.pipe),F9=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||jr(t.append)&&((e=uv(t))==="formdata"||e==="object"&&jr(t.toString)&&t.toString()==="[object FormData]"))},z9=Xi("URLSearchParams"),[B9,j9,U9,H9]=["ReadableStream","Request","Response","Headers"].map(Xi),W9=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function zd(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,i;if(typeof t!="object"&&(t=[t]),nc(t))for(r=0,i=t.length;r<i;r++)e.call(null,t[r],r,t);else{const s=n?Object.getOwnPropertyNames(t):Object.keys(t),a=s.length;let l;for(r=0;r<a;r++)l=s[r],e.call(null,t[l],l,t)}}function rN(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,i;for(;r-- >0;)if(i=n[r],e===i.toLowerCase())return i;return null}const Ba=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,iN=t=>!wd(t)&&t!==Ba;function cx(){const{caseless:t}=iN(this)&&this||{},e={},n=(r,i)=>{const s=t&&rN(e,i)||i;Bh(e[s])&&Bh(r)?e[s]=cx(e[s],r):Bh(r)?e[s]=cx({},r):nc(r)?e[s]=r.slice():e[s]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&zd(arguments[r],n);return e}const V9=(t,e,n,{allOwnKeys:r}={})=>(zd(e,(i,s)=>{n&&jr(i)?t[s]=eN(i,n):t[s]=i},{allOwnKeys:r}),t),K9=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),q9=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},G9=(t,e,n,r)=>{let i,s,a;const l={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),s=i.length;s-- >0;
vendor: 4,115 bytes, line 50
50)a=i[s],(!r||r(a,t,e))&&!l[a]&&(e[a]=t[a],l[a]=!0);t=n!==!1&&OE(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},Y9=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},X9=t=>{if(!t)return null;if(nc(t))return t;let e=t.length;if(!nN(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},Q9=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&OE(Uint8Array)),J9=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let i;for(;(i=r.next())&&!i.done;){const s=i.value;e.call(t,s[0],s[1])}},Z9=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},eq=Xi("HTMLFormElement"),tq=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),Wk=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),nq=Xi("RegExp"),sN=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};zd(n,(i,s)=>{let a;(a=e(i,s,t))!==!1&&(r[s]=a||i)}),Object.defineProperties(t,r)},rq=t=>{sN(t,(e,n)=>{if(jr(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(jr(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},iq=(t,e)=>{const n={},r=i=>{i.forEach(s=>{n[s]=!0})};return nc(t)?r(t):r(String(t).split(e)),n},sq=()=>{},oq=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,Kw="abcdefghijklmnopqrstuvwxyz",Vk="0123456789",oN={DIGIT:Vk,ALPHA:Kw,ALPHA_DIGIT:Kw+Kw.toUpperCase()+Vk},aq=(t=16,e=oN.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function lq(t){return!!(t&&jr(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const uq=t=>{const e=new Array(10),n=(r,i)=>{if(fv(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[i]=r;const s=nc(r)?[]:{};return zd(r,(a,l)=>{const c=n(a,i+1);!wd(c)&&(s[l]=c)}),e[i]=void 0,s}}return r};return n(t,0)},cq=Xi("AsyncFunction"),fq=t=>t&&(fv(t)||jr(t))&&jr(t.then)&&jr(t.catch),aN=((t,e)=>t?setImmediate:e?((n,r)=>(Ba.addEventListener("message",({source:i,data:s})=>{i===Ba&&s===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Ba.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",jr(Ba.postMessage)),dq=typeof queueMicrotask<"u"?queueMicrotask.bind(Ba):typeof process<"u"&&process.nextTick||aN,le={isArray:nc,isArrayBuffer:tN,isBuffer:L9,isFormData:F9,isArrayBufferView:O9,isString:I9,isNumber:nN,isBoolean:P9,isObject:fv,isPlainObject:Bh,isReadableStream:B9,isRequest:j9,isResponse:U9,isHeaders:H9,isUndefined:wd,isDate:R9,isFile:M9,isBlob:D9,isRegExp:nq,isFunction:jr,isStream:$9,isURLSearchParams:z9,isTypedArray:Q9,isFileList:N9,forEach:zd,merge:cx,extend:V9,trim:W9,stripBOM:K9,inherits:q9,toFlatObject:G9,kindOf:uv,kindOfTest:Xi,endsWith:Y9,toArray:X9,forEachEntry:J9,matchAll:Z9,isHTMLForm:eq,hasOwnProperty:Wk,hasOwnProp:Wk,reduceDescriptors:sN,freezeMethods:rq,toObjectSet:iq,toCamelCase:tq,noop:sq,toFiniteNumber:oq,findKey:rN,global:Ba,isContextDefined:iN,ALPHABET:oN,generateString:aq,isSpecCompliantForm:lq,toJSONObject:uq,isAsyncFn:cq,isThenable:fq,setImmediate:aN,asap:dq};function lt(t,e,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}le.inherits(lt,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:le.toJSONObject(this.config),code:this.code,status:this.status}}});const lN=lt.prototype,uN={};["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(t=>{uN[t]={value:t}});Object.defineProperties(lt,uN);Object.defineProperty(lN,"isAxiosError",{value:!0});lt.from=(t,e,n,r,i,s)=>
vendor: 2,026 bytes, line 50
50{const a=Object.create(lN);return le.toFlatObject(t,a,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),lt.call(a,t.message,e,n,r,i),a.cause=t,a.name=t.name,s&&Object.assign(a,s),a};const pq=null;function fx(t){return le.isPlainObject(t)||le.isArray(t)}function cN(t){return le.endsWith(t,"[]")?t.slice(0,-2):t}function Kk(t,e,n){return t?t.concat(e).map(function(i,s){return i=cN(i),!n&&s?"["+i+"]":i}).join(n?".":""):e}function hq(t){return le.isArray(t)&&!t.some(fx)}const gq=le.toFlatObject(le,{},null,function(e){return/^is[A-Z]/.test(e)});function dv(t,e,n){if(!le.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=le.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(T,E){return!le.isUndefined(E[T])});const r=n.metaTokens,i=n.visitor||d,s=n.dots,a=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&le.isSpecCompliantForm(e);if(!le.isFunction(i))throw new TypeError("visitor must be a function");function f(w){if(w===null)return"";if(le.isDate(w))return w.toISOString();if(!c&&le.isBlob(w))throw new lt("Blob is not supported. Use a Buffer instead.");return le.isArrayBuffer(w)||le.isTypedArray(w)?c&&typeof Blob=="function"?new Blob([w]):Buffer.from(w):w}function d(w,T,E){let x=w;if(w&&!E&&typeof w=="object"){if(le.endsWith(T,"{}"))T=r?T:T.slice(0,-2),w=JSON.stringify(w);else if(le.isArray(w)&&hq(w)||(le.isFileList(w)||le.endsWith(T,"[]"))&&(x=le.toArray(w)))return T=cN(T),x.forEach(function(C,A){!(le.isUndefined(C)||C===null)&&e.append(a===!0?Kk([T],A,s):a===null?T:T+"[]",f(C))}),!1}return fx(w)?!0:(e.append(Kk(E,T,s),f(w)),!1)}const g=[],v=Object.assign(gq,{defaultVisitor:d,convertValue:f,isVisitable:fx});function y(w,T){if(!le.isUndefined(w)){if(g.indexOf(w)!==-1)throw Error("Circular reference detected in "+T.join("."));g.push(w),le.forEach(w,function(x,b){(!(le.isUndefined(x)||x===null)&&i.call(e,x,le.isString(b)?b.trim():b,T,v))===!0&&y(x,T?T.concat(b):[b])}),g.pop()}}if(!le.isObject(t))throw new TypeError("data must be an object");return y(t),e}
vendor: 12,160 bytes, lines 50-52
50function qk(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function IE(t,e){this._pairs=[],t&&dv(t,this,e)}const fN=IE.prototype;fN.append=function(e,n){this._pairs.push([e,n])};fN.toString=function(e){const n=e?function(r){return e.call(this,r,qk)}:qk;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function mq(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function dN(t,e,n){if(!e)return t;const r=n&&n.encode||mq,i=n&&n.serialize;let s;if(i?s=i(e,n):s=le.isURLSearchParams(e)?e.toString():new IE(e,n).toString(r),s){const a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+s}return t}class vq{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){le.forEach(this.handlers,function(r){r!==null&&e(r)})}}const Gk=vq,pN={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},yq=typeof URLSearchParams<"u"?URLSearchParams:IE,wq=typeof FormData<"u"?FormData:null,bq=typeof Blob<"u"?Blob:null,xq={isBrowser:!0,classes:{URLSearchParams:yq,FormData:wq,Blob:bq},protocols:["http","https","file","blob","url","data"]},PE=typeof window<"u"&&typeof document<"u",dx=typeof navigator=="object"&&navigator||void 0,Sq=PE&&(!dx||["ReactNative","NativeScript","NS"].indexOf(dx.product)<0),Eq=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Cq=PE&&window.location.href||"http://localhost",Tq=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:PE,hasStandardBrowserEnv:Sq,hasStandardBrowserWebWorkerEnv:Eq,navigator:dx,origin:Cq},Symbol.toStringTag,{value:"Module"})),Tr={...Tq,...xq};function _q(t,e){return dv(t,new Tr.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,s){return Tr.isNode&&le.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},e))}function Aq(t){return le.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function kq(t){const e={},n=Object.keys(t);let r;const i=n.length;let s;for(r=0;r<i;r++)s=n[r],e[s]=t[s];return e}function hN(t){function e(n,r,i,s){let a=n[s++];if(a==="__proto__")return!0;const l=Number.isFinite(+a),c=s>=n.length;return a=!a&&le.isArray(i)?i.length:a,c?(le.hasOwnProp(i,a)?i[a]=[i[a],r]:i[a]=r,!l):((!i[a]||!le.isObject(i[a]))&&(i[a]=[]),e(n,r,i[a],s)&&le.isArray(i[a])&&(i[a]=kq(i[a])),!l)}if(le.isFormData(t)&&le.isFunction(t.entries)){const n={};return le.forEachEntry(t,(r,i)=>{e(Aq(r),i,n,0)}),n}return null}function Lq(t,e,n){if(le.isString(t))try{return(e||JSON.parse)(t),le.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const RE={transitional:pN,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,s=le.isObject(e);if(s&&le.isHTMLForm(e)&&(e=new FormData(e)),le.isFormData(e))return i?JSON.stringify(hN(e)):e;if(le.isArrayBuffer(e)||le.isBuffer(e)||le.isStream(e)||le.isFile(e)||le.isBlob(e)||le.isReadableStream(e))return e;if(le.isArrayBufferView(e))return e.buffer;if(le.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let l;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return _q(e,this.formSerializer).toString();if((l=le.isFileList(e))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return dv(l?{"files[]":e}:e,c&&new c,this.formSerializer)}}return s||i?(n.setContentType("application/json",!1),Lq(e)):e}],transformResponse:[function(e){const n=this.transitional||RE.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(le.isResponse(e)||le.isReadableStream(e))return e;if(e&&le.isString(e)&&(r&&!this.responseType||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(l){if(a)throw l.name==="SyntaxError"?lt.from(l,lt.ERR_BAD_RESPONSE,this,null,this.response):l}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Tr.classes.FormData,Blob:Tr.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};le.forEach(["delete","get","head","post","put","patch"],t=>{RE.headers[t]={}});const ME=RE,Oq=le.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"]),Iq=t=>{const e={};let n,r,i;return t&&t.split(`
51`).forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!n||e[n]&&Oq[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},Yk=Symbol("internals");function pf(t){return t&&String(t).trim().toLowerCase()}function jh(t){return t===!1||t==null?t:le.isArray(t)?t.map(jh):String(t)}function Pq(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const Rq=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function qw(t,e,n,r,i){if(le.isFunction(r))return r.call(this,e,n);if(i&&(e=n),!!le.isString(e)){if(le.isString(r))return e.indexOf(r)!==-1;if(le.isRegExp(r))return r.test(e)}}function Mq(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function Dq(t,e){const n=le.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(i,s,a){return this[r].call(this,e,i,s,a)},configurable:!0})})}class pv{constructor(e){e&&this.set(e)}set(e,n,r){const i=this;function s(l,c,f){const d=pf(c);if(!d)throw new Error("header name must be a non-empty string");const g=le.findKey(i,d);(!g||i[g]===void 0||f===!0||f===void 0&&i[g]!==!1)&&(i[g||c]=jh(l))}const a=(l,c)=>le.forEach(l,(f,d)=>s(f,d,c));if(le.isPlainObject(e)||e instanceof this.constructor)a(e,n);else if(le.isString(e)&&(e=e.trim())&&!Rq(e))a(Iq(e),n);else if(le.isHeaders(e))for(const[l,c]of e.entries())s(c,l,r);else e!=null&&s(n,e,r);return this}get(e,n){if(e=pf(e),e){const r=le.findKey(this,e);if(r){const i=this[r];if(!n)return i;if(n===!0)return Pq(i);if(le.isFunction(n))return n.call(this,i,r);if(le.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=pf(e),e){const r=le.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||qw(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let i=!1;function s(a){if(a=pf(a),a){const l=le.findKey(r,a);l&&(!n||qw(r,r[l],l,n))&&(delete r[l],i=!0)}}return le.isArray(e)?e.forEach(s):s(e),i}clear(e){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const s=n[r];(!e||qw(this,this[s],s,e,!0))&&(delete this[s],i=!0)}return i}normalize(e){const n=this,r={};return le.forEach(this,(i,s)=>{const a=le.findKey(r,s);if(a){n[a]=jh(i),delete n[s];return}const l=e?Mq(s):String(s).trim();l!==s&&delete n[s],n[l]=jh(i),r[l]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return le.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=e&&le.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
52`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(i=>r.set(i)),r}static accessor(e){const r=(this[Yk]=this[Yk]={accessors:{}}).accessors,i=this.prototype;function s(a){const l=pf(a);r[l]||(Dq(i,a),r[l]=!0)}return le.isArray(e)?e.forEach(s):s(e),this}}pv.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);le.reduceDescriptors(pv.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}});le.freezeMethods(pv);const ji=pv;function Gw(t,e){const n=this||ME,r=e||n,i=ji.from(r.headers);let s=r.data;return le.forEach(t,function(l){s=l.call(n,s,i.normalize(),e?e.status:void 0)}),i.normalize(),s}function gN(t){return!!(t&&t.__CANCEL__)}function rc(t,e,n){lt.call(this,t??"canceled",lt.ERR_CANCELED,e,n),this.name="CanceledError"}le.inherits(rc,lt,{__CANCEL__:!0});function mN(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new lt("Request failed with status code "+n.status,[lt.ERR_BAD_REQUEST,lt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Nq(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function $q(t,e){t=t||10;const n=new Array(t),r=new Array(t);let i=0,s=0,a;return e=e!==void 0?e:1e3,function(c){const f=Date.now(),d=r[s];a||(a=f),n[i]=c,r[i]=f;let g=s,v=0;for(;g!==i;)v+=n[g++],g=g%t;if(i=(i+1)%t,i===s&&(s=(s+1)%t),f-a<e)return;const y=d&&f-d;return y?Math.round(v*1e3/y):void 0}}function Fq(t,e){let n=0,r=1e3/e,i,s;const a=(f,d=Date.now())=>{n=d,i=null,s&&(clearTimeout(s),s=null),t.apply(null,f)};return[(...f)=>{const d=Date.now(),g=d-n;g>=r?a(f,d):(i=f,s||(s=setTimeout(()=>{s=null,a(i)},r-g)))},()=>i&&a(i)]}const jg=(t,e,n=3)=>{let r=0;const i=$q(50,250);return Fq(s=>{const a=s.loaded,l=s.lengthComputable?s.total:void 0,c=a-r,f=i(c),d=a<=l;r=a;const g={loaded:a,total:l,progress:l?a/l:void 0,bytes:c,rate:f||void 0,estimated:f&&l&&d?(l-a)/f:void 0,event:s,lengthComputable:l!=null,[e?"download":"upload"]:!0};t(g)},n)},Xk=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},Qk=t=>(...e)=>le.asap(()=>t(...e)),zq=Tr.hasStandardBrowserEnv?function(){const e=Tr.navigator&&/(msie|trident)/i.test(Tr.navigator.userAgent),n=document.createElement("a");let r;function i(s){let a=s;return e&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(a){const l=le.isString(a)?i(a):a;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}(),Bq=Tr.hasStandardBrowserEnv?{write(t,e,n,r,i,s){const a=[t+"="+encodeURIComponent(e)];le.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),le.isString(r)&&a.push("path="+r),le.isString(i)&&a.push("domain="+i),s===!0&&a.push("secure"),document.cookie=a.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function jq(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Uq(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function vN(t,e){return t&&!jq(e)?Uq(t,e):e}const Jk=t=>t instanceof ji?{...t}:t;function al(t,e){e=e||{};const n={};function r(f,d,g){return le.isPlainObject(f)&&le.isPlainObject(d)?le.merge.call({caseless:g},f,d):le.isPlainObject(d)?le.merge({},d):le.isArray(d)?d.slice():d}function i(f,d,g){if(le.isUndefined(d)){if(!le.isUndefined(f))return r(void 0,f,g)}else return r(f,d,g)}function s(f,d){if(!le.isUndefined(d))return r(void 0,d)}function a(f,d){if(le.isUndefined(d)){if(!le.isUndefined(f))return r(void 0,f)}else return r(void 0,d)}function l(f,d,g){if(g in e)return r(f,d);if(g in t)return r(void 0,f)}const c={url:s,method:s,data:s,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,maxBo
vendor: 12,707 bytes, lines 52-55
52dyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l,headers:(f,d)=>i(Jk(f),Jk(d),!0)};return le.forEach(Object.keys(Object.assign({},t,e)),function(d){const g=c[d]||i,v=g(t[d],e[d],d);le.isUndefined(v)&&g!==l||(n[d]=v)}),n}const yN=t=>{const e=al({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:s,headers:a,auth:l}=e;e.headers=a=ji.from(a),e.url=dN(vN(e.baseURL,e.url),t.params,t.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let c;if(le.isFormData(n)){if(Tr.hasStandardBrowserEnv||Tr.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((c=a.getContentType())!==!1){const[f,...d]=c?c.split(";").map(g=>g.trim()).filter(Boolean):[];a.setContentType([f||"multipart/form-data",...d].join("; "))}}if(Tr.hasStandardBrowserEnv&&(r&&le.isFunction(r)&&(r=r(e)),r||r!==!1&&zq(e.url))){const f=i&&s&&Bq.read(s);f&&a.set(i,f)}return e},Hq=typeof XMLHttpRequest<"u",Wq=Hq&&function(t){return new Promise(function(n,r){const i=yN(t);let s=i.data;const a=ji.from(i.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:f}=i,d,g,v,y,w;function T(){y&&y(),w&&w(),i.cancelToken&&i.cancelToken.unsubscribe(d),i.signal&&i.signal.removeEventListener("abort",d)}let E=new XMLHttpRequest;E.open(i.method.toUpperCase(),i.url,!0),E.timeout=i.timeout;function x(){if(!E)return;const C=ji.from("getAllResponseHeaders"in E&&E.getAllResponseHeaders()),O={data:!l||l==="text"||l==="json"?E.responseText:E.response,status:E.status,statusText:E.statusText,headers:C,config:t,request:E};mN(function(R){n(R),T()},function(R){r(R),T()},O),E=null}"onloadend"in E?E.onloadend=x:E.onreadystatechange=function(){!E||E.readyState!==4||E.status===0&&!(E.responseURL&&E.responseURL.indexOf("file:")===0)||setTimeout(x)},E.onabort=function(){E&&(r(new lt("Request aborted",lt.ECONNABORTED,t,E)),E=null)},E.onerror=function(){r(new lt("Network Error",lt.ERR_NETWORK,t,E)),E=null},E.ontimeout=function(){let A=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const O=i.transitional||pN;i.timeoutErrorMessage&&(A=i.timeoutErrorMessage),r(new lt(A,O.clarifyTimeoutError?lt.ETIMEDOUT:lt.ECONNABORTED,t,E)),E=null},s===void 0&&a.setContentType(null),"setRequestHeader"in E&&le.forEach(a.toJSON(),function(A,O){E.setRequestHeader(O,A)}),le.isUndefined(i.withCredentials)||(E.withCredentials=!!i.withCredentials),l&&l!=="json"&&(E.responseType=i.responseType),f&&([v,w]=jg(f,!0),E.addEventListener("progress",v)),c&&E.upload&&([g,y]=jg(c),E.upload.addEventListener("progress",g),E.upload.addEventListener("loadend",y)),(i.cancelToken||i.signal)&&(d=C=>{E&&(r(!C||C.type?new rc(null,t,E):C),E.abort(),E=null)},i.cancelToken&&i.cancelToken.subscribe(d),i.signal&&(i.signal.aborted?d():i.signal.addEventListener("abort",d)));const b=Nq(i.url);if(b&&Tr.protocols.indexOf(b)===-1){r(new lt("Unsupported protocol "+b+":",lt.ERR_BAD_REQUEST,t));return}E.send(s||null)})},Vq=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let r=new AbortController,i;const s=function(f){if(!i){i=!0,l();const d=f instanceof Error?f:this.reason;r.abort(d instanceof lt?d:new rc(d instanceof Error?d.message:d))}};let a=e&&setTimeout(()=>{a=null,s(new lt(`timeout ${e} of ms exceeded`,lt.ETIMEDOUT))},e);const l=()=>{t&&(a&&clearTimeout(a),a=null,t.forEach(f=>{f.unsubscribe?f.unsubscribe(s):f.removeEventListener("abort",s)}),t=null)};t.forEach(f=>f.addEventListener("abort",s));const{signal:c}=r;return c.unsubscribe=()=>le.asap(l),c}},Kq=Vq,qq=function*(t,e){let n=t.byteLength;if(!e||n<e){yield t;return}let r=0,i;for(;r<n;)i=r+e,yield t.slice(r,i),r=i},Gq=async function*(t,e){for await(const n of Yq(t))yield*qq(n,e)},Yq=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:r}=await e.read();if(n)break;yield r}}finally{await e.cancel()}},Zk=(t,e,n,r)=>{const i=Gq(t,e);let s=0,a,l=c=>{a||(a=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:f,value:d}=await i.next();if(f){l(),c.close();return}let g=d.byteLength;if(n){let v=s+=g;n(v)}c.enqueue(new Uint8Array(d))}catch(f){throw l(f),f}},cancel(c){return l(c),i.return()}},{highWaterMark:2})},hv=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",wN=hv&&typeof ReadableStream=="function",Xq=hv&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),bN=(t,...e)=>{try{return!!t(...e)}catch{return!1}},Qq=wN&&bN(()=>{let t=!1;const e=new Request(Tr.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),eL=64*1024,px=wN&&bN(()=>le.isReadableStream(new Response("").body)),Ug={stream:px&&(t=>t.body)};hv&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!Ug[e]&&(Ug[e]=le.isFunction(t[e])?n=>n[e]():(n,r)=>{throw new lt(`Response type '${e}' is not supported`,lt.ERR_NOT_SUPPORT,r)})})})(new Response);const Jq=async t=>{if(t==null)return 0;if(le.isBlob(t))return t.size;if(le.isSpecCompliantForm(t))return(await new Request(Tr.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(le.isArrayBufferView(t)||le.isArrayBuffer(t))return t.byteLength;if(le.isURLSearchParams(t)&&(t=t+""),le.isString(t))return(await Xq(t)).byteLength},Zq=async(t,e)=>{const n=le.toFiniteNumber(t.getContentLength());return n??Jq(e)},e7=hv&&(async t=>{let{url:e,method:n,data:r,signal:i,cancelToken:s,timeout:a,onDownloadProgress:l,onUploadProgress:c,responseType:f,headers:d,withCredentials:g="same-origin",fetchOptions:v}=yN(t);f=f?(f+"").toLowerCase():"text";let y=Kq([i,s&&s.toAbortSignal()],a),w;const T=y&&y.unsubscribe&&(()=>{y.unsubscribe()});let E;try{if(c&&Qq&&n!=="get"&&n!=="head"&&(E=await Zq(d,r))!==0){let O=new Request(e,{method:"POST",body:r,duplex:"half"}),k;if(le.isFormData(r)&&(k=O.headers.get("content-type"))&&d.setContentType(k),O.body){const[R,$]=Xk(E,jg(Qk(c)));r=Zk(O.body,eL,R,$)}}le.isString(g)||(g=g?"include":"omit");const x="credentials"in Request.prototype;w=new Request(e,{...v,signal:y,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:x?g:void 0});let b=await fetch(w);const C=px&&(f==="stream"||f==="response");if(px&&(l||C&&T)){const O={};["status","statusText","headers"].forEach(j=>{O[j]=b[j]});const k=le.toFiniteNumber(b.headers.get("content-length")),[R,$]=l&&Xk(k,jg(Qk(l),!0))||[];b=new Response(Zk(b.body,eL,R,()=>{$&&$(),T&&T()}),O)}f=f||"text";let A=await Ug[le.findKey(Ug,f)||"text"](b,t);return!C&&T&&T(),await new Promise((O,k)=>{mN(O,k,{data:A,headers:ji.from(b.headers),status:b.status,statusText:b.statusText,config:t,request:w})})}catch(x){throw T&&T(),x&&x.name==="TypeError"&&/fetch/i.test(x.message)?Object.assign(new lt("Network Error",lt.ERR_NETWORK,t,w),{cause:x.cause||x}):lt.from(x,x&&x.code,t,w)}}),hx={http:pq,xhr:Wq,fetch:e7};le.forEach(hx,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const tL=t=>`- ${t}`,t7=t=>le.isFunction(t)||t===null||t===!1,xN={getAdapter:t=>{t=le.isArray(t)?t:[t];const{length:e}=t;let n,r;const i={};for(let s=0;s<e;s++){n=t[s];let a;if(r=n,!t7(n)&&(r=hx[(a=String(n)).toLowerCase()],r===void 0))throw new lt(`Unknown adapter '${a}'`);if(r)break;i[a||"#"+s]=r}if(!r){const s=Object.entries(i).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=e?s.length>1?`since :
53`+s.map(tL).join(`
54`):" "+tL(s[0]):"as no adapter specified";throw new lt("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:hx};function Yw(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new rc(null,t)}function nL(t){return Yw(t),t.headers=ji.from(t.headers),t.data=Gw.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),xN.getAdapter(t.adapter||ME.adapter)(t).then(function(r){return Yw(t),r.data=Gw.call(t,t.transformResponse,r),r.headers=ji.from(r.headers),r},function(r){return gN(r)||(Yw(t),r&&r.response&&(r.response.data=Gw.call(t,t.transformResponse,r.response),r.response.headers=ji.from(r.response.headers))),Promise.reject(r)})}const SN="1.7.7",DE={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{DE[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const rL={};DE.transitional=function(e,n,r){function i(s,a){return"[Axios v"+SN+"] Transitional option '"+s+"'"+a+(r?". "+r:"")}return(s,a,l)=>{if(e===!1)throw new lt(i(a," has been removed"+(n?" in "+n:"")),lt.ERR_DEPRECATED);return n&&!rL[a]&&(rL[a]=!0,console.warn(i(a," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(s,a,l):!0}};function n7(t,e,n){if(typeof t!="object")throw new lt("options must be an object",lt.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let i=r.length;for(;i-- >0;){const s=r[i],a=e[s];if(a){const l=t[s],c=l===void 0||a(l,s,t);if(c!==!0)throw new lt("option "+s+" must be "+c,lt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new lt("Unknown option "+s,lt.ERR_BAD_OPTION)}}const gx={assertOptions:n7,validators:DE},To=gx.validators;let Hg=class{constructor(e){this.defaults=e,this.interceptors={request:new Gk,response:new Gk}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const s=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=`
55`+s):r.stack=s}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=al(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:s}=n;r!==void 0&&gx.assertOptions(r,{silentJSONParsing:To.transitional(To.boolean),forcedJSONParsing:To.transitional(To.boolean),clarifyTimeoutError:To.transitional(To.boolean)},!1),i!=null&&(le.isFunction(i)?n.paramsSerializer={serialize:i}:gx.assertOptions(i,{encode:To.function,serialize:To.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=s&&le.merge(s.common,s[n.method]);s&&le.forEach(["delete","get","head","post","put","patch","common"],w=>{delete s[w]}),n.headers=ji.concat(a,s);const l=[];let c=!0;this.interceptors.request.forEach(function(T){typeof T.runWhen=="function"&&T.runWhen(n)===!1||(c=c&&T.synchronous,l.unshift(T.fulfilled,T.rejected))});const f=[];this.interceptors.response.forEach(function(T){f.push(T.fulfilled,T.rejected)});let d,g=0,v;if(!c){const w=[nL.bind(this),void 0];for(w.unshift.apply(w,l),w.push.apply(w,f),v=w.length,d=Promise.resolve(n);g<v;)d=d.then(w[g++],w[g++]);return d}v=l.length;let y=n;for(g=0;g<v;){const w=l[g++],T=l[g++];try{y=w(y)}catch(E){T.call(this,E);break}}try{d=nL.call(this,y)}catch(w){return Promise.reject(w)}for(g=0,v=f.length;g<v;)d=d.then(f[g++],f[g++]);return d}getUri(e){e=al(this.defaults,e);const n=vN(e.baseURL,e.url);return dN(n,e.params,e.paramsSerializer)}};le.forEach(["delete","get","head","options"],function(e){Hg.prototype[e]=function(n,r){return this.request(al(r||{},{method:e,url:n,data:(r||{}).data}))}});le.forEach(["post","put","patch"],function(e){function n(r){return function(s,a,l){return this.request(al(l||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:a}))}}Hg.prototype[e]=n(),Hg.prototype[e+"Form"]=n(!0)});const Uh=Hg;class NE{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(i=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](i);r._listeners=null}),this.promise.then=i=>{let s;const a=new Promise(l=>{r.subscribe(l),s=l}).then(i);return a.cancel=function(){r.unsubscribe(s)},a},e(function(s,a,l){r.reason||(r.reason=new rc(s,a,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=r=>{e.abort(r)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new NE(function(i){e=i}),cancel:e}}}const r7=NE;function i7(t){return function(n){return t.apply(null,n)}}function s7(t){return le.isObject(t)&&t.isAxiosError===!0}const mx
vendor: 1,211 bytes, line 55
55={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(
55mx).forEach(([t,e])=>{mx[e]=t});const o7=mx;function EN(t){const e=new Uh(t),n=eN(Uh.prototype.request,e);return le.extend(n,Uh.prototype,e,{allOwnKeys:!0}),le.extend(n,e,null,{allOwnKeys:!0}),n.create=function(i){return EN(al(t,i))},n}const vn=EN(ME);vn.Axios=Uh;vn.CanceledError=rc;vn.CancelToken=r7;vn.isCancel=gN;vn.VERSION=SN;vn.toFormData=dv;vn.AxiosError=lt;vn.Cancel=vn.CanceledError;vn.all=function(e){return Promise.all(e)};vn.spread=i7;vn.isAxiosError=s7;vn.mergeConfig=al;vn.AxiosHeaders=ji;vn.formToJSON=t=>hN(le.isHTMLForm(t)?new FormData(t):t);vn.getAdapter=xN.getAdapter;vn.HttpStatusCode=o7;vn.default=vn;const Vxe=vn;var cr="top",Kr="bottom",qr="right",fr="left",gv="auto",ic=[cr,Kr,qr,fr],ll="start",zu="end",CN="clippingParents",$E="viewport",eu="popper",TN="reference",vx=ic.reduce(function(t,e){return t.concat([e+"-"+ll,e+"-"+zu])},[]),FE=[].concat(ic,[gv]).reduce(function(t,e){return t.concat([e,e+"-"+ll,e+"-"+zu])},[]),_N="beforeRead",AN="read",kN="afterRead",LN="beforeMain",ON="main",IN="afterMain",PN="beforeWrite",RN="write",MN="afterWrite",DN=[_N,AN,kN,LN,ON,IN,PN,RN,MN];function Ss(t){return t?(t.nodeName||"").toLowerCase():null}function Gr(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function ul(t){var e=Gr(t).Element;return t instanceof e||t instanceof Element}function hi(t){var e=Gr(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function zE(t){if(typeof ShadowRoot>"u")return!1;var e=Gr(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function a7(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},i=e.attributes[n]||{},s=e.elements[n];
vendor: 15,485 bytes, line 55
55!hi(s)||!Ss(s)||(Object.assign(s.style,r),Object.keys(i).forEach(function(a){var l=i[a];l===!1?s.removeAttribute(a):s.setAttribute(a,l===!0?"":l)}))})}function l7(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var i=e.elements[r],s=e.attributes[r]||{},a=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),l=a.reduce(function(c,f){return c[f]="",c},{});!hi(i)||!Ss(i)||(Object.assign(i.style,l),Object.keys(s).forEach(function(c){i.removeAttribute(c)}))})}}const BE={name:"applyStyles",enabled:!0,phase:"write",fn:a7,effect:l7,requires:["computeStyles"]};function ys(t){return t.split("-")[0]}var Qa=Math.max,Wg=Math.min,Bu=Math.round;function yx(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function NN(){return!/^((?!chrome|android).)*safari/i.test(yx())}function ju(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),i=1,s=1;e&&hi(t)&&(i=t.offsetWidth>0&&Bu(r.width)/t.offsetWidth||1,s=t.offsetHeight>0&&Bu(r.height)/t.offsetHeight||1);var a=ul(t)?Gr(t):window,l=a.visualViewport,c=!NN()&&n,f=(r.left+(c&&l?l.offsetLeft:0))/i,d=(r.top+(c&&l?l.offsetTop:0))/s,g=r.width/i,v=r.height/s;return{width:g,height:v,top:d,right:f+g,bottom:d+v,left:f,x:f,y:d}}function jE(t){var e=ju(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function $N(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&zE(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function eo(t){return Gr(t).getComputedStyle(t)}function u7(t){return["table","td","th"].indexOf(Ss(t))>=0}function la(t){return((ul(t)?t.ownerDocument:t.document)||window.document).documentElement}function mv(t){return Ss(t)==="html"?t:t.assignedSlot||t.parentNode||(zE(t)?t.host:null)||la(t)}function iL(t){return!hi(t)||eo(t).position==="fixed"?null:t.offsetParent}function c7(t){var e=/firefox/i.test(yx()),n=/Trident/i.test(yx());if(n&&hi(t)){var r=eo(t);if(r.position==="fixed")return null}var i=mv(t);for(zE(i)&&(i=i.host);hi(i)&&["html","body"].indexOf(Ss(i))<0;){var s=eo(i);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||e&&s.willChange==="filter"||e&&s.filter&&s.filter!=="none")return i;i=i.parentNode}return null}function Bd(t){for(var e=Gr(t),n=iL(t);n&&u7(n)&&eo(n).position==="static";)n=iL(n);return n&&(Ss(n)==="html"||Ss(n)==="body"&&eo(n).position==="static")?e:n||c7(t)||e}function UE(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Vf(t,e,n){return Qa(t,Wg(e,n))}function f7(t,e,n){var r=Vf(t,e,n);return r>n?n:r}function FN(){return{top:0,right:0,bottom:0,left:0}}function zN(t){return Object.assign({},FN(),t)}function BN(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var d7=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,zN(typeof e!="number"?e:BN(e,ic))};function p7(t){var e,n=t.state,r=t.name,i=t.options,s=n.elements.arrow,a=n.modifiersData.popperOffsets,l=ys(n.placement),c=UE(l),f=[fr,qr].indexOf(l)>=0,d=f?"height":"width";if(!(!s||!a)){var g=d7(i.padding,n),v=jE(s),y=c==="y"?cr:fr,w=c==="y"?Kr:qr,T=n.rects.reference[d]+n.rects.reference[c]-a[c]-n.rects.popper[d],E=a[c]-n.rects.reference[c],x=Bd(s),b=x?c==="y"?x.clientHeight||0:x.clientWidth||0:0,C=T/2-E/2,A=g[y],O=b-v[d]-g[w],k=b/2-v[d]/2+C,R=Vf(A,k,O),$=c;n.modifiersData[r]=(e={},e[$]=R,e.centerOffset=R-k,e)}}function h7(t){var e=t.state,n=t.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=e.elements.popper.querySelector(i),!i)||$N(e.elements.popper,i)&&(e.elements.arrow=i))}const HE={name:"arrow",enabled:!0,phase:"main",fn:p7,effect:h7,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Uu(t){return t.split("-")[1]}var g7={top:"auto",right:"auto",bottom:"auto",left:"auto"};function m7(t,e){var n=t.x,r=t.y,i=e.devicePixelRatio||1;return{x:Bu(n*i)/i||0,y:Bu(r*i)/i||0}}function sL(t){var e,n=t.popper,r=t.popperRect,i=t.placement,s=t.variation,a=t.offsets,l=t.position,c=t.gpuAcceleration,f=t.adaptive,d=t.roundOffsets,g=t.isFixed,v=a.x,y=v===void 0?0:v,w=a.y,T=w===void 0?0:w,E=typeof d=="function"?d({x:y,y:T}):{x:y,y:T};y=E.x,T=E.y;var x=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),C=fr,A=cr,O=window;if(f){var k=Bd(n),R="clientHeight",$="clientWidth";if(k===Gr(n)&&(k=la(n),eo(k).position!=="static"&&l==="absolute"&&(R="scrollHeight",$="scrollWidth")),k=k,i===cr||(i===fr||i===qr)&&s===zu){A=Kr;var j=g&&k===O&&O.visualViewport?O.visualViewport.height:k[R];T-=j-r.height,T*=c?1:-1}if(i===fr||(i===cr||i===Kr)&&s===zu){C=qr;var W=g&&k===O&&O.visualViewport?O.visualViewport.width:k[$];y-=W-r.width,y*=c?1:-1}}var H=Object.assign({position:l},f&&g7),V=d===!0?m7({x:y,y:T},Gr(n)):{x:y,y:T};if(y=V.x,T=V.y,c){var F;return Object.assign({},H,(F={},F[A]=b?"0":"",F[C]=x?"0":"",F.transform=(O.devicePixelRatio||1)<=1?"translate("+y+"px, "+T+"px)":"translate3d("+y+"px, "+T+"px, 0)",F))}return Object.assign({},H,(e={},e[A]=b?T+"px":"",e[C]=x?y+"px":"",e.transform="",e))}function v7(t){var e=t.state,n=t.options,r=n.gpuAcceleration,i=r===void 0?!0:r,s=n.adaptive,a=s===void 0?!0:s,l=n.roundOffsets,c=l===void 0?!0:l,f={placement:ys(e.placement),variation:Uu(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,sL(Object.assign({},f,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:c})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,sL(Object.assign({},f,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const vv={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:v7,data:{}};var sh={passive:!0};function y7(t){var e=t.state,n=t.instance,r=t.options,i=r.scroll,s=i===void 0?!0:i,a=r.resize,l=a===void 0?!0:a,c=Gr(e.elements.popper),f=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&f.forEach(function(d){d.addEventListener("scroll",n.update,sh)}),l&&c.addEventListener("resize",n.update,sh),function(){s&&f.forEach(function(d){d.removeEventListener("scroll",n.update,sh)}),l&&c.removeEventListener("resize",n.update,sh)}}const yv={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:y7,data:{}};var w7={left:"right",right:"left",bottom:"top",top:"bottom"};function Hh(t){return t.replace(/left|right|bottom|top/g,function(e){return w7[e]})}var b7={start:"end",end:"start"};function oL(t){return t.replace(/start|end/g,function(e){return b7[e]})}function WE(t){var e=Gr(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function VE(t){return ju(la(t)).left+WE(t).scrollLeft}function x7(t,e){var n=Gr(t),r=la(t),i=n.visualViewport,s=r.clientWidth,a=r.clientHeight,l=0,c=0;if(i){s=i.width,a=i.height;var f=NN();(f||!f&&e==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:s,height:a,x:l+VE(t),y:c}}function S7(t){var e,n=la(t),r=WE(t),i=(e=t.ownerDocument)==null?void 0:e.body,s=Qa(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Qa(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-r.scrollLeft+VE(t),c=-r.scrollTop;return eo(i||n).direction==="rtl"&&(l+=Qa(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:a,x:l,y:c}}function KE(t){var e=eo(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function jN(t){return["html","body","#document"].indexOf(Ss(t))>=0?t.ownerDocument.body:hi(t)&&KE(t)?t:jN(mv(t))}function Kf(t,e){var n;e===void 0&&(e=[]);var r=jN(t),i=r===((n=t.ownerDocument)==null?void 0:n.body),s=Gr(r),a=i?[s].concat(s.visualViewport||[],KE(r)?r:[]):r,l=e.concat(a);return i?l:l.concat(Kf(mv(a)))}function wx(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function E7(t,e){var n=ju(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function aL(t,e,n){return e===$E?wx(x7(t,n)):ul(e)?E7(e,n):wx(S7(la(t)))}function C7(t){var e=Kf(mv(t)),n=["absolute","fixed"].indexOf(eo(t).position)>=0,r=n&&hi(t)?Bd(t):t;return ul(r)?e.filter(function(i){return ul(i)&&$N(i,r)&&Ss(i)!=="body"}):[]}function T7(t,e,n,r){var i=e==="clippingParents"?C7(t):[].concat(e),s=[].concat(i,[n]),a=s[0],l=s.reduce(function(c,f){var d=aL(t,f,r);return c.top=Qa(d.top,c.top),c.right=Wg(d.right,c.right),c.bottom=Wg(d.bottom,c.bottom),c.left=Qa(d.left,c.left),c},aL(t,a,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function UN(t){var e=t.reference,n=t.element,r=t.placement,i=r?ys(r):null,s=r?Uu(r):null,a=e.x+e.width/2-n.width/2,l=e.y+e.height/2-n.height/2,c;switch(i){case cr:c={x:a,y:e.y-n.height};break;case Kr:c={x:a,y:e.y+e.height};break;case qr:c={x:e.x+e.width,y:l};break;case fr:c={x:e.x-n.width,y:l};break;default:c={x:e.x,y:e.y}}var f=i?UE(i):null;if(f!=null){var d=f==="y"?"height":"width";switch(s){case ll:c[f]=c[f]-(e[d]/2-n[d]/2);break;case zu:c[f]=c[f]+(e[d]/2-n[d]/2);break}}return c}function Hu(t,e){e===void 0&&(e={});var n=e,r=n.placement,i=r===void 0?t.placement:r,s=n.strategy,a=s===void 0?t.strategy:s,l=n.boundary,c=l===void 0?CN:l,f=n.rootBoundary,d=f===void 0?$E:f,g=n.elementContext,v=g===void 0?eu:g,y=n.altBoundary,w=y===void 0?!1:y,T=n.padding,E=T===void 0?0:T,x=zN(typeof E!="number"?E:BN(E,ic)),b=v===eu?TN:eu,C=t.rects.popper,A=t.elements[w?b:v],O=T7(ul(A)?A:A.contextElement||la(t.elements.popper),c,d,a),k=ju(t.elements.reference),R=UN({reference:k,element:C,strategy:"absolute",placement:i}),$=wx(Object.assign({},C,R)),j=v===eu?$:k,W={top:O.top-j.top+x.top,bottom:j.bottom-O.bottom+x.bottom,left:O.left-j.left+x.left,right:j.right-O.right+x.right},H=t.modifiersData.offset;if(v===eu&&H){var V=H[i];Object.keys(W).forEach(function(F){var z=[qr,Kr].indexOf(F)>=0?1:-1,M=[cr,Kr].indexOf(F)>=0?"y":"x";W[F]+=V[M]*z})}return W}function _7(t,e){e===void 0&&(e={});var n=e,r=n.placement,i=n.boundary,s=n.rootBoundary,a=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,f=c===void 0?FE:c,d=Uu(r),g=d?l?vx:vx.filter(function(w){return Uu(w)===d}):ic,v=g.filter(function(w){return f.indexOf(w)>=0});v.length===0&&(v=g);var y=v.reduce(function(w,T){return w[T]=Hu(t,{placement:T,boundary:i,rootBoundary:s,padding:a})[ys(T)],w},{});return Object.keys(y).sort(function(w,T){return y[w]-y[T]})}function A7(t){if(ys(t)===gv)return[];var e=Hh(t);return[oL(t),e,oL(e)]}function k7(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var i=n.mainAxis,s=i===void 0?!0:i,a=n.altAxis,l=a===void 0?!0:a,c=n.fallbackPlacements,f=n.padding,d=n.boundary,g=n.rootBoundary,v=n.altBoundary,y=n.flipVariations,w=y===void 0?!0:y,T=n.allowedAutoPlacements,E=e.options.placement,x=ys(E),b=x===E,C=c||(b||!w?[Hh(E)]:A7(E)),A=[E].concat(C).reduce(function(ie,me){return ie.concat(ys(me)===gv?_7(e,{placement:me,boundary:d,rootBoundary:g,padding:f,flipVariations:w,allowedAutoPlacements:T}):me)},[]),O=e.rects.reference,k=e.rects.popper,R=new Map,$=!0,j=A[0],W=0;W<A.length;W++){var H=A[W],V=ys(H),F=Uu(H)===ll,z=[cr,Kr].indexOf(V)>=0,M=z?"width":"height",q=Hu(e,{placement:H,boundary:d,rootBoundary:g,altBoundary:v,padding:f}),U=z?F?qr:fr:F?Kr:cr;O[M]>k[M]&&(U=Hh(U));var B=Hh(U),Y=[];if(s&&Y.push(q[V]<=0),l&&Y.push(q[U]<=0,q[B]<=0),Y.every(function(ie){return ie})){j=H,$=!1;break}R.set(H,Y)}if($)for(var Z=w?3:1,fe=function(me){var ve=A.find(function(ze){var it=R.get(ze);if(it)return it.slice(0,me).every(function(qe){return qe})});if(ve)return j=ve,"break"},K=Z;K>0;K--){var N=fe(K);if(N==="break")break}e.placement!==j&&(e.modifiersData[r]._skip=!0,e.placement=j,e.reset=!0)}}const qE={name:"flip",enabled:!0,phase:"main",fn:k7,requiresIfExists:["offset"],data:{_skip:!1}};function lL(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function uL(t){return[cr,qr,Kr,fr].some(function(e){return t[e]>=0})}function L7(t){var e=t.state,n=t.name,r=e.rects.reference,i=e.rects.popper,s=e.modifiersData.preventOverflow,a=Hu(e,{elementContext:"reference"}),l=Hu(e,{altBoundary:!0}),c=lL(a,r),f=lL(l,i,s),d=uL(c),g=uL(f);e.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:f,isReferenceHidden:d,hasPopperEscaped:g},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":g})}const GE={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:L7};function O7(t,e,n){var r=ys(t),i=[fr,cr].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,a=s[0],l=s[1];return a=a||0,l=(l||0)*i,[fr,qr].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}function I7(t){var e=t.state,n=t.options,r=t.name,i=n.offset,s=i===void 0?[0,0]:i,a=FE.reduce(function(d,g){return d[g]=O7(g,e.rects,s),d},{}),l=a[e.placement],c=l.x,f=l.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=f),e.modifiersData[r]=a}const YE={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:I7};function P7(t){var e=t.state,n=t.name;e.modifiersData[n]=UN({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const wv={name:"popperOffsets",enabled:!0,phase:"read",fn:P7,data:{}};function R7(t){return t==="x"?"y":"x"}function M7(t){var e=t.state,n=t.options,r=t.name,i=n.mainAxis,s=i===void 0?!0:i,a=n.altAxis,l=a===void 0?!1:a,c=n.boundary,f=n.rootBoundary,d=n.altBoundary,g=n.padding,v=n.tether,y=v===void 0?!0:v,w=n.tetherOffset,T=w===void 0?0:w,E=Hu(e,{boundary:c,rootBoundary:f,padding:g,altBoundary:d}),x=ys(e.placement),b=Uu(e.placement),C=!b,A=UE(x),O=R7(A),k=e.modifiersData.popperOffsets,R=e.rects.reference,$=e.rects.popper,j=typeof T=="function"?T(Object.assign({},e.rects,{placement:e.placement})):T,W=typeof j=="number"?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),H=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,V={x:0,y:0};if(k){if(s){var F,z=A==="y"?cr:fr,M=A==="y"?Kr:qr,q=A==="y"?"height":"width",U=k[A],B=U+E[z],Y=U-E[M],Z=y?-$[q]/2:0,fe=b===ll?R[q]:$[q],K=b===ll?-$[q]:-R[q],N=e.elements.arrow,ie=y&&N?jE(N):{width:0,height:0},me=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:FN(),ve=me[z],ze=me[M],it=Vf(0,R[q],ie[q]),qe=C?R[q]/2-Z-it-ve-W.mainAxis:fe-it-ve-W.mainAxis,Le=C?-R[q]/2+Z+it+ze+W.mainAxis:K+it+ze+W.mainAxis,Oe=e.elements.arrow&&Bd(e.elements.arrow),$e=Oe?A==="y"?Oe.clientTop||0:Oe.clientLeft||0:0,et=(F=H==null?void 0:H[A])!=null?F:0,ct=U+qe-et-$e,Ge=U+Le-et,Tt=Vf(y?Wg(B,ct):B,U,y?Qa(Y,Ge):Y);k[A]=Tt,V[A]=Tt-U}if(l){var vt,_t=A==="x"?cr:fr,Q=A==="x"?Kr:qr,te=k[O],oe=O==="y"?"height":"width",Te=te+E[_t],be=te-E[Q
vendor: 6,946 bytes, lines 55-59
55],re=[cr,fr].indexOf(x)!==-1,pe=(vt=H==null?void 0:H[O])!=null?vt:0,Se=re?Te:te-R[oe]-$[oe]-pe+W.altAxis,Ve=re?te+R[oe]+$[oe]-pe-W.altAxis:be,ht=y&&re?f7(Se,te,Ve):Vf(y?Se:Te,te,y?Ve:be);k[O]=ht,V[O]=ht-te}e.modifiersData[r]=V}}const XE={name:"preventOverflow",enabled:!0,phase:"main",fn:M7,requiresIfExists:["offset"]};function D7(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function N7(t){return t===Gr(t)||!hi(t)?WE(t):D7(t)}function $7(t){var e=t.getBoundingClientRect(),n=Bu(e.width)/t.offsetWidth||1,r=Bu(e.height)/t.offsetHeight||1;return n!==1||r!==1}function F7(t,e,n){n===void 0&&(n=!1);var r=hi(e),i=hi(e)&&$7(e),s=la(e),a=ju(t,i,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Ss(e)!=="body"||KE(s))&&(l=N7(e)),hi(e)?(c=ju(e,!0),c.x+=e.clientLeft,c.y+=e.clientTop):s&&(c.x=VE(s))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function z7(t){var e=new Map,n=new Set,r=[];t.forEach(function(s){e.set(s.name,s)});function i(s){n.add(s.name);var a=[].concat(s.requires||[],s.requiresIfExists||[]);a.forEach(function(l){if(!n.has(l)){var c=e.get(l);c&&i(c)}}),r.push(s)}return t.forEach(function(s){n.has(s.name)||i(s)}),r}function B7(t){var e=z7(t);return DN.reduce(function(n,r){return n.concat(e.filter(function(i){return i.phase===r}))},[])}function j7(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function U7(t){var e=t.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var cL={placement:"bottom",modifiers:[],strategy:"absolute"};function fL(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function jd(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,i=e.defaultOptions,s=i===void 0?cL:i;return function(l,c,f){f===void 0&&(f=s);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},cL,s),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},g=[],v=!1,y={state:d,setOptions:function(x){var b=typeof x=="function"?x(d.options):x;T(),d.options=Object.assign({},s,d.options,b),d.scrollParents={reference:ul(l)?Kf(l):l.contextElement?Kf(l.contextElement):[],popper:Kf(c)};var C=B7(U7([].concat(r,d.options.modifiers)));return d.orderedModifiers=C.filter(function(A){return A.enabled}),w(),y.update()},forceUpdate:function(){if(!v){var x=d.elements,b=x.reference,C=x.popper;if(fL(b,C)){d.rects={reference:F7(b,Bd(C),d.options.strategy==="fixed"),popper:jE(C)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(W){return d.modifiersData[W.name]=Object.assign({},W.data)});for(var A=0;A<d.orderedModifiers.length;A++){if(d.reset===!0){d.reset=!1,A=-1;continue}var O=d.orderedModifiers[A],k=O.fn,R=O.options,$=R===void 0?{}:R,j=O.name;typeof k=="function"&&(d=k({state:d,options:$,name:j,instance:y})||d)}}}},update:j7(function(){return new Promise(function(E){y.forceUpdate(),E(d)})}),destroy:function(){T(),v=!0}};if(!fL(l,c))return y;y.setOptions(f).then(function(E){!v&&f.onFirstUpdate&&f.onFirstUpdate(E)});function w(){d.orderedModifiers.forEach(function(E){var x=E.name,b=E.options,C=b===void 0?{}:b,A=E.effect;if(typeof A=="function"){var O=A({state:d,name:x,instance:y,options:C}),k=function(){};g.push(O||k)}})}function T(){g.forEach(function(E){return E()}),g=[]}return y}}var H7=jd(),W7=[yv,wv,vv,BE],V7=jd({defaultModifiers:W7}),K7=[yv,wv,vv,BE,YE,qE,XE,HE,GE],QE=jd({defaultModifiers:K7});const HN=Object.freeze(Object.defineProperty({__proto__:null,afterMain:IN,afterRead:kN,afterWrite:MN,applyStyles:BE,arrow:HE,auto:gv,basePlacements:ic,beforeMain:LN,beforeRead:_N,beforeWrite:PN,bottom:Kr,clippingParents:CN,computeStyles:vv,createPopper:QE,createPopperBase:H7,createPopperLite:V7,detectOverflow:Hu,end:zu,eventListeners:yv,flip:qE,hide:GE,left:fr,main:ON,modifierPhases:DN,offset:YE,placements:FE,popper:eu,popperGenerator:jd,popperOffsets:wv,preventOverflow:XE,read:AN,reference:TN,right:qr,start:ll,top:cr,variationPlacements:vx,viewport:$E,write:RN},Symbol.toStringTag,{value:"Module"}));/*!
56  * Bootstrap v5.3.2 (https://getbootstrap.com/)
57  * Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
58  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
59  */const _o=new Map,Xw={set(t,e,n){_o.has(t)||_o.set(t,new Map);const r=_o.get(t);if(!r.has(e)&&r.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(r.keys())[0]}.`);return}r.set(e,n)},get(t,e){return _o.has(t)&&_o.get(t).get(e)||null},remove(t,e){if(!_o.has(t))return;const n=_o.get(t);n.delete(e),n.size===0&&_o.delete(t)}},q7=1e6,G7=1e3,bx="transitionend",WN=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,(e,n)=>`#${CSS.escape(n)}`)),t),Y7=t=>t==null?`${t}`:Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),X7=t=>{do t+=Math.floor(Math.random()*q7);while(document.getElementById(t));return t},Q7=t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:n}=window.getComputedStyle(t);const r=Number.parseFloat(e),i=Number.parseFloat(n);return!r&&!i?0:(e=e.split(",")[0],n=n.split(",")[0],(Number.parseFloat(e)+Number.parseFloat(n))*G7)},VN=t=>{t.dispatchEvent(new Event(bx))},Ws=t=>!t||typeof t!="object"?!1:(typeof t.jquery<"u"&&(t=t[0]),typeof t.nodeType<"u"),ta=t=>Ws(t)?t.jquery?t[0]:t:typeof t=="string"&&t.length>0?document.querySelector(WN(t)):null,sc=t=>{if(!Ws(t)||t.getClientRects().length===0)return!1;const e=getComputedStyle(t).getPropertyValue("visibility")==="visible",n=t.closest("details:not([open])");if(!n)return e;if(n!==t){const r=t.closest("summary");if(r&&r.parentNode!==n||r===null)return!1}return e},na=t=>!t||t.nodeType!==Node.ELEMENT_NODE||t.classList.contains("disabled")?!0:typeof t.disabled<"u"?t.disabled:t.hasAttribute("disabled")&&t.getAttribute("disabled")!=="false",KN=t=>{if(!document.documentElement.attachShadow)return null;if(typeof t.getRootNode=="function"){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?KN(t.parentNode):null},Vg=()=>{},Ud=t=>{t.offsetHeight},qN=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Qw=[],J7=t=>{document.readyState==="loading"?(Qw.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of Qw)e()}),Qw.push(t)):t()},yi=()=>document.documentElement.dir==="rtl",bi=t=>{J7(()=>{const e=qN();if(e){const n=t.NAME,r=e.fn[n];e.fn[n]=t.jQueryInterface,e.fn[n].Constructor=t,e.fn[n].noConflict=()=>(e.fn[n]=r,t.jQueryInterface)}})},wr=(t,e=[],n=t)=>typeof t=="function"?t(...e):n,GN=(t,e,n=!0)=>
vendor: 7,962 bytes, line 59
59{if(!n){wr(t);return}const r=5,i=Q7(e)+r;let s=!1;const a=({target:l})=>{l===e&&(s=!0,e.removeEventListener(bx,a),wr(t))};e.addEventListener(bx,a),setTimeout(()=>{s||VN(e)},i)},JE=(t,e,n,r)=>{const i=t.length;let s=t.indexOf(e);return s===-1?!n&&r?t[i-1]:t[0]:(s+=n?1:-1,r&&(s=(s+i)%i),t[Math.max(0,Math.min(s,i-1))])},Z7=/[^.]*(?=\..*)\.|.*/,eG=/\..*/,tG=/::\d+$/,Jw={};let dL=1;const YN={mouseenter:"mouseover",mouseleave:"mouseout"},nG=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function XN(t,e){return e&&`${e}::${dL++}`||t.uidEvent||dL++}function QN(t){const e=XN(t);return t.uidEvent=e,Jw[e]=Jw[e]||{},Jw[e]}function rG(t,e){return function n(r){return ZE(r,{delegateTarget:t}),n.oneOff&&ge.off(t,r.type,e),e.apply(t,[r])}}function iG(t,e,n){return function r(i){const s=t.querySelectorAll(e);for(let{target:a}=i;a&&a!==this;a=a.parentNode)for(const l of s)if(l===a)return ZE(i,{delegateTarget:a}),r.oneOff&&ge.off(t,i.type,e,n),n.apply(a,[i])}}function JN(t,e,n=null){return Object.values(t).find(r=>r.callable===e&&r.delegationSelector===n)}function ZN(t,e,n){const r=typeof e=="string",i=r?n:e||n;let s=e$(t);return nG.has(s)||(s=t),[r,i,s]}function pL(t,e,n,r,i){if(typeof e!="string"||!t)return;let[s,a,l]=ZN(e,n,r);e in YN&&(a=(w=>function(T){if(!T.relatedTarget||T.relatedTarget!==T.delegateTarget&&!T.delegateTarget.contains(T.relatedTarget))return w.call(this,T)})(a));const c=QN(t),f=c[l]||(c[l]={}),d=JN(f,a,s?n:null);if(d){d.oneOff=d.oneOff&&i;return}const g=XN(a,e.replace(Z7,"")),v=s?iG(t,n,a):rG(t,a);v.delegationSelector=s?n:null,v.callable=a,v.oneOff=i,v.uidEvent=g,f[g]=v,t.addEventListener(l,v,s)}function xx(t,e,n,r,i){const s=JN(e[n],r,i);s&&(t.removeEventListener(n,s,!!i),delete e[n][s.uidEvent])}function sG(t,e,n,r){const i=e[n]||{};for(const[s,a]of Object.entries(i))s.includes(r)&&xx(t,e,n,a.callable,a.delegationSelector)}function e$(t){return t=t.replace(eG,""),YN[t]||t}const ge={on(t,e,n,r){pL(t,e,n,r,!1)},one(t,e,n,r){pL(t,e,n,r,!0)},off(t,e,n,r){if(typeof e!="string"||!t)return;const[i,s,a]=ZN(e,n,r),l=a!==e,c=QN(t),f=c[a]||{},d=e.startsWith(".");if(typeof s<"u"){if(!Object.keys(f).length)return;xx(t,c,a,s,i?n:null);return}if(d)for(const g of Object.keys(c))sG(t,c,g,e.slice(1));for(const[g,v]of Object.entries(f)){const y=g.replace(tG,"");(!l||e.includes(y))&&xx(t,c,a,v.callable,v.delegationSelector)}},trigger(t,e,n){if(typeof e!="string"||!t)return null;const r=qN(),i=e$(e),s=e!==i;let a=null,l=!0,c=!0,f=!1;s&&r&&(a=r.Event(e,n),r(t).trigger(a),l=!a.isPropagationStopped(),c=!a.isImmediatePropagationStopped(),f=a.isDefaultPrevented());const d=ZE(new Event(e,{bubbles:l,cancelable:!0}),n);return f&&d.preventDefault(),c&&t.dispatchEvent(d),d.defaultPrevented&&a&&a.preventDefault(),d}};function ZE(t,e={}){for(const[n,r]of Object.entries(e))try{t[n]=r}catch{Object.defineProperty(t,n,{configurable:!0,get(){return r}})}return t}function hL(t){if(t==="true")return!0;if(t==="false")return!1;if(t===Number(t).toString())return Number(t);if(t===""||t==="null")return null;if(typeof t!="string")return t;try{return JSON.parse(decodeURIComponent(t))}catch{return t}}function Zw(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const Vs={setDataAttribute(t,e,n){t.setAttribute(`data-bs-${Zw(e)}`,n)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${Zw(e)}`)},getDataAttributes(t){if(!t)return{};const e={},n=Object.keys(t.dataset).filter(r=>r.startsWith("bs")&&!r.startsWith("bsConfig"));for(const r of n){let i=r.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),e[i]=hL(t.dataset[r])}return e},getDataAttribute(t,e){return hL(t.getAttribute(`data-bs-${Zw(e)}`))}};class Hd{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,n){const r=Ws(n)?Vs.getDataAttribute(n,"config"):{};return{...this.constructor.Default,...typeof r=="object"?r:{},...Ws(n)?Vs.getDataAttributes(n):{},...typeof e=="object"?e:{}}}_typeCheckConfig(e,n=this.constructor.DefaultType){for(const[r,i]of Object.entries(n)){const s=e[r],a=Ws(s)?"element":Y7(s);if(!new RegExp(i).test(a))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${r}" provided type "${a}" but expected type "${i}".`)}}}const oG="5.3.2";class Qi extends Hd{constructor(e,n){super(),e=ta(e),e&&(this._element=e,this._config=this._getConfig(n),Xw.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Xw.remove(this._element,this.constructor.DATA_KEY),ge.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,n,r=!0){GN(e,n,r)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return Xw.get(ta(e),this.DATA_KEY)}static getOrCreateInstance(e,n={}){return this.getInstance(e)||new this(e,typeof n=="object"?n:null)}static get VERSION(){return oG}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const e0=t=>{let e=t.getAttribute("data-bs-target");if(!e||e==="#"){let n=t.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n=`#${n.split("#")[1]}`),e=n&&n!=="#"?WN(n.trim()):null}return e},Xe={find(t,e=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(e,t))},findOne(t,e=document.documentElement){return Element.prototype.querySelector.call(e,t)},children(t,e){return[].concat(...t.children).filter(n=>n.matches(e))},parents(t,e){const n=[];let r=t.parentNode.closest(e);for(;r;)n.push(r),r=r.parentNode.closest(e);return n},prev(t,e){let n=t.previousElementSibling;for(;n;){if(n.matches(e))return[n];n=n.previousElementSibling}return[]},next(t,e){let n=t.nextElementSibling;for(;n;){if(n.matches(e))return[n];n=n.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(n=>`${n}:not([tabindex^="-"])`).join(",");return this.find(e,t).filter(n=>!na(n)&&sc(n))},getSelectorFromElement(t){const e=e0(t);return e&&Xe.findOne(e)?e:null},getElementFromSelector(t){const e=e0(t);return e?Xe.findOne(e):null},getMultipleElementsFromSelector(t){const e=e0(t);return e?Xe.find(e):[]}},bv=(t,e="hide")=>{const n=`click.dismiss${t.EVENT_KEY}`,r=t.NAME;ge.on(document,n,`[data-bs-dismiss="${r}"]`,function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),na(this))return;const s=Xe.getElementFromSelector(this)||this.closest(`.${r}`);t.getOrCreateInstance(s)[e]()})},aG="alert",lG="bs.alert",t$=`.${lG}`,uG=`close${t$}`,cG=`closed${t$}`,fG="fade",dG="show";class xv extends Qi{static get NAME(){return aG}close(){if(ge.trigger(this._element,uG).defaultPrevented)return;this._element.classList.remove(dG);const n=this._element.classList.contains(fG);this._queueCallback(()=>this._destroyElement(),this._element,n)}_destroyElement(){this._element.remove(),ge.trigger(this._element,cG),this.dispose()}static jQueryInterface(e){return this.each(function(){const n=xv.getOrCreateInstance(this);if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method n
59amed "${e}"`);n[e](this)}})}}bv(xv,"close");bi(xv);const pG="button",hG="bs.button",gG=`.${hG}`,mG=".data-api",vG="active",gL='[data-bs-toggle="button"]',yG=`click${gG}${mG}`;let n$=class r$ extends Qi{static get NAME(){return pG}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(vG))}static jQueryInterface(e){return this.each(function(){const n=r$.getOrCreateInstance(this);e==="toggle"&&n[e]()})}};ge.on(document,yG,gL,t=>{t.preventDefault();const e=t.target.closest(gL);n$.getOrCreateInstance(e).toggle()});bi(n$);const wG="swipe",oc=".bs.swipe",bG=`touchstart${oc}`,xG=`touchmove${oc}`,SG=`touchend${oc}`,EG=`pointerdown${oc}`,CG=`pointerup${oc}`,TG="touch",_G="pen",AG="pointer-event",kG=40,LG={endCallback:null,leftCallback:null,rightCallback:null},OG={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Kg extends Hd{constructor(e,n){super(),this._element=e,!(!e||!Kg.isSupported())&&(this._config=this._getConfig(n),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return LG}static get DefaultType(){return OG}static get NAME(){return wG}dispose(){ge.off(this._element,oc)}_start(e){if(!this._supportPointerEvents){this._deltaX=e.touches[0].clientX;return}this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX)}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),wr(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=kG)return;const n=e/this._deltaX;this._deltaX=0,n&&wr(n>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(ge.on(this._element,EG,e=>this._start(e)),ge.on(this._element,CG,e=>this._end(e)),this._element.classList.add(AG)):(ge.on(this._element,bG,e=>this._start(e)),ge.on(this._element,xG,e=>this._move(e)),ge.on(this._element,SG,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===_G||e.pointerType===TG)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const IG="carousel",PG="bs.carousel",ua=`.${PG}`,i$=".data-api",RG="ArrowLeft",MG="ArrowRight",DG=500,hf="next",Vl="prev",tu="left",Wh="right",NG=`slide${ua}`,t0=`slid${ua}`,$G=`keydown${ua}`,FG=`mouseenter${ua}`,zG=`mouseleave${ua}`,BG=`dragstart${ua}`,jG=`load${ua}${i$}`,UG=`click${ua}${i$}`,s$="carousel",oh="active",HG="slide",WG="carousel-item-end",VG="carousel-item-start",KG="carousel-item-next",qG="carousel-item-prev",o$=".active",a$=".carousel-item",GG=o$+a$,YG=".carousel-item img",XG=".carousel-indicators",QG="[data-bs-slide], [data-bs-slide-to]",JG='[data-bs-ride="carousel"]',ZG={[RG]:Wh,[MG]:tu},eY={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},tY={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Wd extends Qi{constructor(e,n){super(e,n),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=Xe.findOne(XG,this._element),this._addEventListeners(),this._config.ride===s$&&this.cycle()}static get Default(){return eY}static get DefaultType(){return tY}static get NAME(){return IG}next(){this._slide(hf)}nextWhenVisible(){!document.hidden&&sc(this._element)&&this.next()}prev(){this._slide(Vl)}pause(){this._isSliding&&VN(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){ge.one(this._element,t0,()=>this.cycle());return}this.cycle()}}to(e){const n=this._getItems();if(e>n.length-1||e<0)return;if(this._isSliding){ge.one(this._element,t0,()=>this.to(e));return}const r=this._getItemIndex(this._getActive());if(r===e)return;const i=e>r?hf:Vl;this._slide(i,n[e])}
vendor: 23,828 bytes, line 59
59dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&ge.on(this._element,$G,e=>this._keydown(e)),this._config.pause==="hover"&&(ge.on(this._element,FG,()=>this.pause()),ge.on(this._element,zG,()=>this._maybeEnableCycle())),this._config.touch&&Kg.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const r of Xe.find(YG,this._element))ge.on(r,BG,i=>i.preventDefault());const n={leftCallback:()=>this._slide(this._directionToOrder(tu)),rightCallback:()=>this._slide(this._directionToOrder(Wh)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),DG+this._config.interval))}};this._swipeHelper=new Kg(this._element,n)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const n=ZG[e.key];n&&(e.preventDefault(),this._slide(this._directionToOrder(n)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const n=Xe.findOne(o$,this._indicatorsElement);n.classList.remove(oh),n.removeAttribute("aria-current");const r=Xe.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);r&&(r.classList.add(oh),r.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const n=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=n||this._config.defaultInterval}_slide(e,n=null){if(this._isSliding)return;const r=this._getActive(),i=e===hf,s=n||JE(this._getItems(),r,i,this._config.wrap);if(s===r)return;const a=this._getItemIndex(s),l=y=>ge.trigger(this._element,y,{relatedTarget:s,direction:this._orderToDirection(e),from:this._getItemIndex(r),to:a});if(l(NG).defaultPrevented||!r||!s)return;const f=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(a),this._activeElement=s;const d=i?VG:WG,g=i?KG:qG;s.classList.add(g),Ud(s),r.classList.add(d),s.classList.add(d);const v=()=>{s.classList.remove(d,g),s.classList.add(oh),r.classList.remove(oh,g,d),this._isSliding=!1,l(t0)};this._queueCallback(v,r,this._isAnimated()),f&&this.cycle()}_isAnimated(){return this._element.classList.contains(HG)}_getActive(){return Xe.findOne(GG,this._element)}_getItems(){return Xe.find(a$,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return yi()?e===tu?Vl:hf:e===tu?hf:Vl}_orderToDirection(e){return yi()?e===Vl?tu:Wh:e===Vl?Wh:tu}static jQueryInterface(e){return this.each(function(){const n=Wd.getOrCreateInstance(this,e);if(typeof e=="number"){n.to(e);return}if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e]()}})}}ge.on(document,UG,QG,function(t){const e=Xe.getElementFromSelector(this);if(!e||!e.classList.contains(s$))return;t.preventDefault();const n=Wd.getOrCreateInstance(e),r=this.getAttribute("data-bs-slide-to");if(r){n.to(r),n._maybeEnableCycle();return}if(Vs.getDataAttribute(this,"slide")==="next"){n.next(),n._maybeEnableCycle();return}n.prev(),n._maybeEnableCycle()});ge.on(window,jG,()=>{const t=Xe.find(JG);for(const e of t)Wd.getOrCreateInstance(e)});bi(Wd);const nY="collapse",rY="bs.collapse",Vd=`.${rY}`,iY=".data-api",sY=`show${Vd}`,oY=`shown${Vd}`,aY=`hide${Vd}`,lY=`hidden${Vd}`,uY=`click${Vd}${iY}`,n0="show",mu="collapse",ah="collapsing",cY="collapsed",fY=`:scope .${mu} .${mu}`,dY="collapse-horizontal",pY="width",hY="height",gY=".collapse.show, .collapse.collapsing",Sx='[data-bs-toggle="collapse"]',mY={parent:null,toggle:!0},vY={parent:"(null|element)",toggle:"boolean"};let l$=class Ex extends Qi{constructor(e,n){super(e,n),this._isTransitioning=!1,this._triggerArray=[];const r=Xe.find(Sx);for(const i of r){const s=Xe.getSelectorFromElement(i),a=Xe.find(s).filter(l=>l===this._element);s!==null&&a.length&&this._triggerArray.push(i)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return mY}static get DefaultType(){return vY}static get NAME(){return nY}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(gY).filter(l=>l!==this._element).map(l=>Ex.getOrCreateInstance(l,{toggle:!1}))),e.length&&e[0]._isTransitioning||ge.trigger(this._element,sY).defaultPrevented)return;for(const l of e)l.hide();const r=this._getDimension();this._element.classList.remove(mu),this._element.classList.add(ah),this._element.style[r]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const i=()=>{this._isTransitioning=!1,this._element.classList.remove(ah),this._element.classList.add(mu,n0),this._element.style[r]="",ge.trigger(this._element,oY)},a=`scroll${r[0].toUpperCase()+r.slice(1)}`;this._queueCallback(i,this._element,!0),this._element.style[r]=`${this._element[a]}px`}hide(){if(this._isTransitioning||!this._isShown()||ge.trigger(this._element,aY).defaultPrevented)return;const n=this._getDimension();this._element.style[n]=`${this._element.getBoundingClientRect()[n]}px`,Ud(this._element),this._element.classList.add(ah),this._element.classList.remove(mu,n0);for(const i of this._triggerArray){const s=Xe.getElementFromSelector(i);s&&!this._isShown(s)&&this._addAriaAndCollapsedClass([i],!1)}this._isTransitioning=!0;const r=()=>{this._isTransitioning=!1,this._element.classList.remove(ah),this._element.classList.add(mu),ge.trigger(this._element,lY)};this._element.style[n]="",this._queueCallback(r,this._element,!0)}_isShown(e=this._element){return e.classList.contains(n0)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=ta(e.parent),e}_getDimension(){return this._element.classList.contains(dY)?pY:hY}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(Sx);for(const n of e){const r=Xe.getElementFromSelector(n);r&&this._addAriaAndCollapsedClass([n],this._isShown(r))}}_getFirstLevelChildren(e){const n=Xe.find(fY,this._config.parent);return Xe.find(e,this._config.parent).filter(r=>!n.includes(r))}_addAriaAndCollapsedClass(e,n){if(e.length)for(const r of e)r.classList.toggle(cY,!n),r.setAttribute("aria-expanded",n)}static jQueryInterface(e){const n={};return typeof e=="string"&&/show|hide/.test(e)&&(n.toggle=!1),this.each(function(){const r=Ex.getOrCreateInstance(this,n);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e]()}})}};ge.on(document,uY,Sx,function(t){(t.target.tagName==="A"||t.delegateTarget&&t.delegateTarget.tagName==="A")&&t.preventDefault();for(const e of Xe.getMultipleElementsFromSelector(this))l$.getOrCreateInstance(e,{toggle:!1}).toggle()});bi(l$);const mL="dropdown",yY="bs.dropdown",wl=`.${yY}`,e1=".data-api",wY="Escape",vL="Tab",bY="ArrowUp",yL="ArrowDown",xY=2,SY=`hide${wl}`,EY=`hidden${wl}`,CY=`show${wl}`,TY=`shown${wl}`,u$=`click${wl}${e1}`,c$=`keydown${wl}${e1}`,_Y=`keyup${wl}${e1}`,nu="show",AY="dropup",kY="dropend",LY="dropstart",OY="dropup-center",IY="dropdown-center",ja='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',PY=`${ja}.${nu}`,Vh=".dropdown-menu",RY=".navbar",MY=".navbar-nav",DY=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",NY=yi()?"top-end":"top-start",$Y=yi()?"top-start":"top-end",FY=yi()?"bottom-end":"bottom-start",zY=yi()?"bottom-start":"bottom-end",BY=yi()?"left-start":"right-start",jY=yi()?"right-start":"left-start",UY="top",HY="bottom",WY={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},VY={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};let ac=class Kh extends Qi{constructor(e,n){super(e,n),this._popper=null,this._parent=this._element.parentNode,this._menu=Xe.next(this._element,Vh)[0]||Xe.prev(this._element,Vh)[0]||Xe.findOne(Vh,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return WY}static get DefaultType(){return VY}static get NAME(){return mL}toggle(){return this._isShown()?this.hide():this.show()}show(){if(na(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!ge.trigger(this._element,CY,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(MY))for(const r of[].concat(...document.body.children))ge.on(r,"mouseover",Vg);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(nu),this._element.classList.add(nu),ge.trigger(this._element,TY,e)}}hide(){if(na(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!ge.trigger(this._element,SY,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const r of[].concat(...document.body.children))ge.off(r,"mouseover",Vg);this._popper&&this._popper.destroy(),this._menu.classList.remove(nu),this._element.classList.remove(nu),this._element.setAttribute("aria-expanded","false"),Vs.removeDataAttribute(this._menu,"popper"),ge.trigger(this._element,EY,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference=="object"&&!Ws(e.reference)&&typeof e.reference.getBoundingClientRect!="function")throw new TypeError(`${mL.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(typeof HN>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;this._config.reference==="parent"?e=this._parent:Ws(this._config.reference)?e=ta(this._config.reference):typeof this._config.reference=="object"&&(e=this._config.reference);const n=this._getPopperConfig();this._popper=QE(e,this._menu,n)}_isShown(){return this._menu.classList.contains(nu)}_getPlacement(){const e=this._parent;if(e.classList.contains(kY))return BY;if(e.classList.contains(LY))return jY;if(e.classList.contains(OY))return UY;if(e.classList.contains(IY))return HY;const n=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains(AY)?n?$Y:NY:n?zY:FY}_detectNavbar(){return this._element.closest(RY)!==null}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(n=>Number.parseInt(n,10)):typeof e=="function"?n=>e(n,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(Vs.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...wr(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:n}){const r=Xe.find(DY,this._menu).filter(i=>sc(i));r.length&&JE(r,n,e===yL,!r.includes(n)).focus()}static jQueryInterface(e){return this.each(function(){const n=Kh.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}static clearMenus(e){if(e.button===xY||e.type==="keyup"&&e.key!==vL)return;const n=Xe.find(PY);for(const r of n){const i=Kh.getInstance(r);if(!i||i._config.autoClose===!1)continue;const s=e.composedPath(),a=s.includes(i._menu);if(s.includes(i._element)||i._config.autoClose==="inside"&&!a||i._config.autoClose==="outside"&&a||i._menu.contains(e.target)&&(e.type==="keyup"&&e.key===vL||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const l={relatedTarget:i._element};e.type==="click"&&(l.clickEvent=e),i._completeHide(l)}}static dataApiKeydownHandler(e){const n=/input|textarea/i.test(e.target.tagName),r=e.key===wY,i=[bY,yL].includes(e.key);if(!i&&!r||n&&!r)return;e.preventDefault();const s=this.matches(ja)?this:Xe.prev(this,ja)[0]||Xe.next(this,ja)[0]||Xe.findOne(ja,e.delegateTarget.parentNode),a=Kh.getOrCreateInstance(s);if(i){e.stopPropagation(),a.show(),a._selectMenuItem(e);return}a._isShown()&&(e.stopPropagation(),a.hide(),s.focus())}};ge.on(document,c$,ja,ac.dataApiKeydownHandler);ge.on(document,c$,Vh,ac.dataApiKeydownHandler);ge.on(document,u$,ac.clearMenus);ge.on(document,_Y,ac.clearMenus);ge.on(document,u$,ja,function(t){t.preventDefault(),ac.getOrCreateInstance(this).toggle()});bi(ac);const f$="backdrop",KY="fade",wL="show",bL=`mousedown.bs.${f$}`,qY={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},GY={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class d$ extends Hd{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return qY}static get DefaultType(){return GY}static get NAME(){return f$}show(e){if(!this._config.isVisible){wr(e);return}this._append();const n=this._getElement();this._config.isAnimated&&Ud(n),n.classList.add(wL),this._emulateAnimation(()=>{wr(e)})}hide(e){if(!this._config.isVisible){wr(e);return}this._getElement().classList.remove(wL),this._emulateAnimation(()=>{this.dispose(),wr(e)})}dispose(){this._isAppended&&(ge.off(this._element,bL),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add(KY),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=ta(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),ge.on(e,bL,()=>{wr(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){GN(e,this._getElement(),this._config.isAnimated)}}const YY="focustrap",XY="bs.focustrap",qg=`.${XY}`,QY=`focusin${qg}`,JY=`keydown.tab${qg}`,ZY="Tab",eX="forward",xL="backward",tX={autofocus:!0,trapElement:null},nX={autofocus:"boolean",trapElement:"element"};class p$ extends Hd{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return tX}static get DefaultType(){return nX}static get NAME(){return YY}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),ge.off(document,qg),ge.on(document,QY,e=>this._handleFocusin(e)),ge.on(document,JY,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,ge.off(document,qg))}_handleFocusin(e){const{trapElement:n}=this._config;if(e.target===document||e.target===n||n.contains(e.target))return;const r=Xe.focusableChildren(n);r.length===0?n.focus():this._lastTabNavDirection===xL?r[r.length-1].focus():r[0].focus()}_handleKeydown(e){e.key===ZY&&(this._lastTabNavDirection=e.shiftKey?xL:eX)}}const SL=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",EL=".sticky-top",lh="padding-right",CL="margin-right";class Cx{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,lh,n=>n+e),this._setElementAttributes(SL,lh,n=>n+e),this._setElementAttributes(EL,CL,n=>n-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,lh),this._resetElementAttributes(SL,lh),this._resetElementAttributes(EL,CL)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,n,r){const i=this.getWidth(),s=a=>{if(a!==this._element&&window.innerWidth>a.clientWidth+i)return;this._saveInitialAttribute(a,n);const l=window.getComputedStyle(a).getPropertyValue(n);a.style.setProperty(n,`${r(Number.parseFloat(l))}px`)};this._applyManipulationCallback(e,s)}_saveInitialAttribute(e,n){const r=e.style.getPropertyValue(n);r&&Vs.setDataAttribute(e,n,r)}_resetElementAttributes(e,n){const r=i=>{const s=Vs.getDataAttribute(i,n);if(s===null){i.style.removeProperty(n);return}Vs.removeDataAttribute(i,n),i.style.setProperty(n,s)};this._applyManipulationCallback(e,r)}_applyManipulationCallback(e,n){if(Ws(e)){n(e);return}for(const r of Xe.find(e,this._element))n(r)}}const rX="modal",iX="bs.modal",wi=`.${iX}`,sX=".data-api",oX="Escape",aX=`hide${wi}`,lX=`hidePrevented${wi}`,h$=`hidden${wi}`,g$=`show${wi}`,uX=`shown${wi}`,cX=`resize${wi}`,fX=`click.dismiss${wi}`,dX=`mousedown.dismiss${wi}`,pX=`keydown.dismiss${wi}`,hX=`click${wi}${sX}`,TL="modal-open",gX="fade",_L="show",r0="modal-static",mX=".modal.show",vX=".modal-dialog",yX=".modal-body",wX='[data-bs-toggle="modal"]',bX={backdrop:!0,focus:!0,keyboard:!0},xX={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};let Gg=class m$ extends Qi{constructor(e,n){super(e,n),this._dialog=Xe.findOne(vX,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Cx,this._addEventListeners()}static get Default(){return bX}static get DefaultType(){return xX}static get NAME(){return rX}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||ge.trigger(this._element,g$,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(TL),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||ge.trigger(this._element,aX).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(_L),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){ge.off(window,wi),ge.off(this._dialog,wi),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new d$({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new p$({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const n=Xe.findOne(yX,this._dialog);n&&(n.scrollTop=0),Ud(this._element),this._element.classList.add(_L);const r=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,ge.trigger(this._element,uX,{relatedTarget:e})};this._queueCallback(r,this._dialog,this._isAnimated())}_addEventListeners(){ge.on(this._element,pX,e=>{if(e.key===oX){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),ge.on(window,cX,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),ge.on(this._element,dX,e=>{ge.one(this._element,fX,n=>{if(!(this._element!==e.target||this._element!==n.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(TL),this._resetAdjustments(),this._scrollBar.reset(),ge.trigger(this._element,h$)})}_isAnimated(){return this._element.classList.contains(gX)}_triggerBackdropTransition(){if(ge.trigger(this._element,lX).defaultPrevented)return;const n=this._element.scrollHeight>document.documentElement.clientHeight,r=this._element.style.overflowY;r==="hidden"||this._element.classList.contains(r0)||(n||(this._element.style.overflowY="hidden"),this._element.classList.add(r0),this._queueCallback(()=>{this._element.classList.remove(r0),this._queueCallback(()=>{this._element.style.overflowY=r},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,n=this._scrollBar.getWidth(),r=n>0;if(r&&!e){const i=yi()?"paddingLeft":"paddingRight";this._element.style[i]=`${n}px`}if(!r&&e){const i=yi()?"paddingRight":"paddingLeft";this._element.style[i]=`${n}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,n){return this.each(function(){const r=m$.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e](n)}})}};ge.on(document,hX,wX,function(t){const e=Xe.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),ge.one(e,g$,i=>{i.defaultPrevented||ge.one(e,h$,()=>{sc(this)&&this.focus()})});const n=Xe.findOne(mX);n&&Gg.getInstance(n).hide(),Gg.getOrCreateInstance(e).toggle(this)});bv(Gg);bi(Gg);const SX="offcanvas",EX="bs.offcanvas",ao=`.${EX}`,v$=".data-api",CX=`load${ao}${v$}`,TX="Escape",AL="show",kL="showing",LL="hiding",_X="offcanvas-backdrop",y$=".offcanvas.show",AX=`show${ao}`,kX=`shown${ao}`,LX=`hide${ao}`,OL=`hidePrevented${ao}`,w$=`hidden${ao}`,OX=`resize${ao}`,IX=`click${ao}${v$}`,PX=`keydown.dismiss${ao}`,RX='[data-bs-toggle="offcanvas"]',MX={backdrop:!0,keyboard:!0,scroll:!1},DX={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};let Wu=class b$ extends Qi{constructor(e,n){super(e,n),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return MX}static get DefaultType(){return DX}static get NAME(){return SX}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||ge.trigger(this._element,AX,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new Cx().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(kL);const r=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(AL),this._element.classList.remove(kL),ge.trigger(this._element,kX,{relatedTarget:e})};this._queueCallback(r,this._element,!0)}hide(){if(!this._isShown||ge.trigger(this._element,LX).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(LL),this._backdrop.hide();const n=()=>{this._element.classList.remove(AL,LL),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new Cx().reset(),ge.trigger(this._element,w$)};this._queueCallback(n,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=()=>{if(this._config.backdrop==="static"){ge.trigger(this._element,OL);return}this.hide()},n=!!this._config.backdrop;return new d$({className:_X,isVisible:n,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:n?e:null})}_initializeFocusTrap(){return new p$({trapElement:this._element})}_addEventListeners(){ge.on(this._element,PX,e=>{if(e.key===TX){if(this._config.keyboard){this.hide();return}ge.trigger(this._element,OL)}})}static jQueryInterface(e){return this.each(function(){const n=b$.getOrCreateInstance(this,e);if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method n
59amed "${e}"`);n[e](this)}})}};ge.on(document,IX,RX,function(t){const e=Xe.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),na(this))return;ge.one(e,w$,()=>{sc(this)&&this.focus()});const n=Xe.findOne(y$);n&&n!==e&&Wu.getInstance(n).hide(),Wu.getOrCreateInstance(e).toggle(this)});ge.on(window,CX,()=>{for(const t of Xe.find(y$))Wu.getOrCreateInstance(t).show()});ge.on(window,OX,()=>{for(const t of Xe.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(t).position!=="fixed"&&Wu.getOrCreateInstance(t).hide()});bv(Wu);bi(Wu);const NX=/^aria-[\w-]*$/i,x$={"*":["class","dir","id","lang","role",NX],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},$X=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),FX=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,zX=(t,e)=>{const n=t.nodeName.toLowerCase();return e.includes(n)?$X.has(n)?!!FX.test(t.nodeValue):!0:e.filter(r=>r instanceof RegExp).some(r=>r.test(n))};function BX(t,e,n){if(!t.length)return t;if(n&&typeof n=="function")return n(t);const i=new window.DOMParser().parseFromString(t,"text/html"),s=[].concat(...i.body.querySelectorAll("*"));for(const a of s){const l=a.nodeName.toLowerCase();if(!Object.keys(e).includes(l)){a.remove();continue}const c=[].concat(...a.attributes),f=[].concat(e["*"]||[],e[l]||[]);for(const d of c)zX(d,f)||a.removeAttribute(d.nodeName)}return i.body.innerHTML}const jX="TemplateFactory",UX={allowList:x$,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},HX={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},WX={entry:"(string|element|function|null)",selector:"(string|element)"};class VX extends Hd{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return UX}static get DefaultType(){return HX}static get NAME(){return jX}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[i,s]of Object.entries(this._config.content))this._setContent(e,s,i);const n=e.children[0],r=this._resolvePossibleFunction(this._config.extraClass);return r&&n.classList.add(...r.split(" ")),n}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[n,r]of Object.entries(e))super._typeCheckConfig({selector:n,entry:r},WX)}_setContent(e,n,r){const i=Xe.findOne(r,e);if(i){if(n=this._resolvePossibleFunction(n),!n){i.remove();return}if(Ws(n)){this._putElementInTemplate(ta(n),i);return}if(this._config.html){i.innerHTML=this._maybeSanitize(n);return}i.textContent=n}}_maybeSanitize(e){return this._config.sanitize?BX(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return wr(e,[this])}_putElementInTemplate(e,n){if(this._config.html){n.innerHTML="",n.append(e);return}n.textContent=e.textContent}}const KX="tooltip",qX=new Set(["sanitize","allowList","sanitizeFn"]),i0="fade",GX="modal",uh="show",YX=".tooltip-inner",IL=`.${GX}`,PL="hide.bs.modal",gf="hover",s0="focus",XX="click",QX="manual",JX="hide",ZX="hidden",eQ="show",tQ="shown",nQ="inserted",rQ="click",iQ="focusin",sQ="focusout",oQ="mouseenter",aQ="mouseleave",lQ={AUTO:"auto",TOP:"top",RIGHT:yi()?"left":"right",BOTTOM:"bottom",LEFT:yi()?"right":"left"},uQ={allowList:x$,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"}
vendor: 18,413 bytes, line 59
59,cQ={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class lc extends Qi{constructor(e,n){if(typeof HN>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e,n),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return uQ}static get DefaultType(){return cQ}static get NAME(){return KX}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),ge.off(this._element.closest(IL),PL,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const e=ge.trigger(this._element,this.constructor.eventName(eQ)),r=(KN(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!r)return;this._disposePopper();const i=this._getTipElement();this._element.setAttribute("aria-describedby",i.getAttribute("id"));const{container:s}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(s.append(i),ge.trigger(this._element,this.constructor.eventName(nQ))),this._popper=this._createPopper(i),i.classList.add(uh),"ontouchstart"in document.documentElement)for(const l of[].concat(...document.body.children))ge.on(l,"mouseover",Vg);const a=()=>{ge.trigger(this._element,this.constructor.eventName(tQ)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(a,this.tip,this._isAnimated())}hide(){if(!this._isShown()||ge.trigger(this._element,this.constructor.eventName(JX)).defaultPrevented)return;if(this._getTipElement().classList.remove(uh),"ontouchstart"in document.documentElement)for(const i of[].concat(...document.body.children))ge.off(i,"mouseover",Vg);this._activeTrigger[XX]=!1,this._activeTrigger[s0]=!1,this._activeTrigger[gf]=!1,this._isHovered=null;const r=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),ge.trigger(this._element,this.constructor.eventName(ZX)))};this._queueCallback(r,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const n=this._getTemplateFactory(e).toHtml();if(!n)return null;n.classList.remove(i0,uh),n.classList.add(`bs-${this.constructor.NAME}-auto`);const r=X7(this.constructor.NAME).toString();return n.setAttribute("id",r),this._isAnimated()&&n.classList.add(i0),n}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new VX({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[YX]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(i0)}_isShown(){return this.tip&&this.tip.classList.contains(uh)}_createPopper(e){const n=wr(this._config.placement,[this,e,this._element]),r=lQ[n.toUpperCase()];return QE(this._element,e,this._getPopperConfig(r))}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(n=>Number.parseInt(n,10)):typeof e=="function"?n=>e(n,this._element):e}_resolvePossibleFunction(e){return wr(e,[this._element])}_getPopperConfig(e){const n={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:r=>{this._getTipElement().setAttribute("data-popper-placement",r.state.placement)}}]};return{...n,...wr(this._config.popperConfig,[n])}}_setListeners(){const e=this._config.trigger.split(" ");for(const n of e)if(n==="click")ge.on(this._element,this.constructor.eventName(rQ),this._config.selector,r=>{this._initializeOnDelegatedTarget(r).toggle()});else if(n!==QX){const r=n===gf?this.constructor.eventName(oQ):this.constructor.eventName(iQ),i=n===gf?this.constructor.eventName(aQ):this.constructor.eventName(sQ);ge.on(this._element,r,this._config.selector,s=>{const a=this._initializeOnDelegatedTarget(s);a._activeTrigger[s.type==="focusin"?s0:gf]=!0,a._enter()}),ge.on(this._element,i,this._config.selector,s=>{const a=this._initializeOnDelegatedTarget(s);a._activeTrigger[s.type==="focusout"?s0:gf]=a._element.contains(s.relatedTarget),a._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},ge.on(this._element.closest(IL),PL,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,n){clearTimeout(this._timeout),this._timeout=setTimeout(e,n)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const n=Vs.getDataAttributes(this._element);for(const r of Object.keys(n))qX.has(r)&&delete n[r];return e={...n,...typeof e=="object"&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=e.container===!1?document.body:ta(e.container),typeof e.delay=="number"&&(e.delay={show:e.delay,hide:e.delay}),typeof e.title=="number"&&(e.title=e.title.toString()),typeof e.content=="number"&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[n,r]of Object.entries(this._config))this.constructor.Default[n]!==r&&(e[n]=r);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){const n=lc.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}}bi(lc);const fQ="popover",dQ=".popover-header",pQ=".popover-body",hQ={...lc.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},gQ={...lc.DefaultType,content:"(null|string|element|function)"};class t1 extends lc{static get Default(){return hQ}static get DefaultType(){return gQ}static get NAME(){return fQ}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[dQ]:this._getTitle(),[pQ]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const n=t1.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}}bi(t1);const mQ="scrollspy",vQ="bs.scrollspy",n1=`.${vQ}`,yQ=".data-api",wQ=`activate${n1}`,RL=`click${n1}`,bQ=`load${n1}${yQ}`,xQ="dropdown-item",Kl="active",SQ='[data-bs-spy="scroll"]',o0="[href]",EQ=".nav, .list-group",ML=".nav-link",CQ=".nav-item",TQ=".list-group-item",_Q=`${ML}, ${CQ} > ${ML}, ${TQ}`,AQ=".dropdown",kQ=".dropdown-toggle",LQ={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},OQ={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Sv extends Qi{constructor(e,n){super(e,n),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return LQ}static get DefaultType(){return OQ}static get NAME(){return mQ}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=ta(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,typeof e.threshold=="string"&&(e.threshold=e.threshold.split(",").map(n=>Number.parseFloat(n))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(ge.off(this._config.target,RL),ge.on(this._config.target,RL,o0,e=>{const n=this._observableSections.get(e.target.hash);if(n){e.preventDefault();const r=this._rootElement||window,i=n.offsetTop-this._element.offsetTop;if(r.scrollTo){r.scrollTo({top:i,behavior:"smooth"});return}r.scrollTop=i}}))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(n=>this._observerCallback(n),e)}_observerCallback(e){const n=a=>this._targetLinks.get(`#${a.target.id}`),r=a=>{this._previousScrollData.visibleEntryTop=a.target.offsetTop,this._process(n(a))},i=(this._rootElement||document.documentElement).scrollTop,s=i>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=i;for(const a of e){if(!a.isIntersecting){this._activeTarget=null,this._clearActiveClass(n(a));continue}const l=a.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(s&&l){if(r(a),!i)return;continue}!s&&!l&&r(a)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=Xe.find(o0,this._config.target);for(const n of e){if(!n.hash||na(n))continue;const r=Xe.findOne(decodeURI(n.hash),this._element);sc(r)&&(this._targetLinks.set(decodeURI(n.hash),n),this._observableSections.set(n.hash,r))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(Kl),this._activateParents(e),ge.trigger(this._element,wQ,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(xQ)){Xe.findOne(kQ,e.closest(AQ)).classList.add(Kl);return}for(const n of Xe.parents(e,EQ))for(const r of Xe.prev(n,_Q))r.classList.add(Kl)}_clearActiveClass(e){e.classList.remove(Kl);const n=Xe.find(`${o0}.${Kl}`,e);for(const r of n)r.classList.remove(Kl)}static jQueryInterface(e){return this.each(function(){const n=Sv.getOrCreateInstance(this,e);if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e]()}})}}ge.on(window,bQ,()=>{for(const t of Xe.find(SQ))Sv.getOrCreateInstance(t)});bi(Sv);const IQ="tab",PQ="bs.tab",bl=`.${PQ}`,RQ=`hide${bl}`,MQ=`hidden${bl}`,DQ=`show${bl}`,NQ=`shown${bl}`,$Q=`click${bl}`,FQ=`keydown${bl}`,zQ=`load${bl}`,BQ="ArrowLeft",DL="ArrowRight",jQ="ArrowUp",NL="ArrowDown",a0="Home",$L="End",Ua="active",FL="fade",l0="show",UQ="dropdown",S$=".dropdown-toggle",HQ=".dropdown-menu",u0=`:not(${S$})`,WQ='.list-group, .nav, [role="tablist"]',VQ=".nav-item, .list-group-item",KQ=`.nav-link${u0}, .list-group-item${u0}, [role="tab"]${u0}`,E$='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',c0=`${KQ}, ${E$}`,qQ=`.${Ua}[data-bs-toggle="tab"], .${Ua}[data-bs-toggle="pill"], .${Ua}[data-bs-toggle="list"]`;let r1=class Tx extends Qi{constructor(e){super(e),this._parent=this._element.closest(WQ),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),ge.on(this._element,FQ,n=>this._keydown(n)))}static get NAME(){return IQ}show(){const e=this._element;if(this._elemIsActive(e))return;const n=this._getActiveElem(),r=n?ge.trigger(n,RQ,{relatedTarget:e}):null;ge.trigger(e,DQ,{relatedTarget:n}).defaultPrevented||r&&r.defaultPrevented||(this._deactivate(n,e),this._activate(e,n))}_activate(e,n){if(!e)return;e.classList.add(Ua),this._activate(Xe.getElementFromSelector(e));const r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.add(l0);return}e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),ge.trigger(e,NQ,{relatedTarget:n})};this._queueCallback(r,e,e.classList.contains(FL))}_deactivate(e,n){if(!e)return;e.classList.remove(Ua),e.blur(),this._deactivate(Xe.getElementFromSelector(e));const r=()=>{if(e.getAttribute("role")!=="tab"){e.classList.remove(l0);return}e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),ge.trigger(e,MQ,{relatedTarget:n})};this._queueCallback(r,e,e.classList.contains(FL))}_keydown(e){if(![BQ,DL,jQ,NL,a0,$L].includes(e.key))return;e.stopPropagation(),e.preventDefault();const n=this._getChildren().filter(i=>!na(i));let r;if([a0,$L].includes(e.key))r=n[e.key===a0?0:n.length-1];else{const i=[DL,NL].includes(e.key);r=JE(n,e.target,i,!0)}r&&(r.focus({preventScroll:!0}),Tx.getOrCreateInstance(r).show())}_getChildren(){return Xe.find(c0,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,n){this._setAttributeIfNotExists(e,"role","tablist");for(const r of n)this._setInitialAttributesOnChild(r)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const n=this._elemIsActive(e),r=this._getOuterElement(e);e.setAttribute("aria-selected",n),r!==e&&this._setAttributeIfNotExists(r,"role","presentation"),n||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const n=Xe.getElementFromSelector(e);n&&(this._setAttributeIfNotExists(n,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(n,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,n){const r=this._getOuterElement(e);if(!r.classList.contains(UQ))return;const i=(s,a)=>{const l=Xe.findOne(s,r);l&&l.classList.toggle(a,n)};i(S$,Ua),i(HQ,l0),r.setAttribute("aria-expanded",n)}_setAttributeIfNotExists(e,n,r){e.hasAttribute(n)||e.setAttribute(n,r)}_elemIsActive(e){return e.classList.contains(Ua)}_getInnerElement(e){return e.matches(c0)?e:Xe.findOne(c0,e)}_getOuterElement(e){return e.closest(VQ)||e}static jQueryInterface(e){return this.each(function(){const n=Tx.getOrCreateInstance(this);if(typeof e=="string"){if(n[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);n[e]()}})}};ge.on(document,$Q,E$,function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),!na(this)&&r1.getOrCreateInstance(this).show()});ge.on(window,zQ,()=>{for(const t of Xe.find(qQ))r1.getOrCreateInstance(t)});bi(r1);const GQ="toast",YQ="bs.toast",ca=`.${YQ}`,XQ=`mouseover${ca}`,QQ=`mouseout${ca}`,JQ=`focusin${ca}`,ZQ=`focusout${ca}`,eJ=`hide${ca}`,tJ=`hidden${ca}`,nJ=`show${ca}`,rJ=`shown${ca}`,iJ="fade",zL="hide",ch="show",fh="showing",sJ={animation:"boolean",autohide:"boolean",delay:"number"},oJ={animation:!0,autohide:!0,delay:5e3};let C$=class T$ extends Qi{constructor(e,n){super(e,n),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return oJ}static get DefaultType(){return sJ}static get NAME(){return GQ}show(){if(ge.trigger(this._element,nJ).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(iJ);const n=()=>{this._element.classList.remove(fh),ge.trigger(this._element,rJ),this._maybeScheduleHide()};this._element.classList.remove(zL),Ud(this._element),this._element.classList.add(ch,fh),this._queueCallback(n,this._element,this._config.animation)}hide(){if(!this.isShown()||ge.trigger(this._element,eJ).defaultPrevented)return;const n=()=>{this._element.classList.add(zL),this._element.classList.remove(fh,ch),ge.trigger(this._element,tJ)};this._element.classList.add(fh),this._queueCallback(n,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(ch),super.dispose()}isShown(){return this._element.classList.contains(ch)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,n){switch(e.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=n;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=n;break}}if(n){this._clearTimeout();return}const r=e.relatedTarget;this._element===r||this._element.contains(r)||this._maybeScheduleHide()}_setListeners(){ge.on(this._element,XQ,e=>this._onInteraction(e,!0)),ge.on(this._element,QQ,e=>this._onInteraction(e,!1)),ge.on(this._element,JQ,e=>this._onInteraction(e,!0)),ge.on(this._element,ZQ,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const n=T$.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>
vendor: 4,099 bytes, line 59
59"u")throw new TypeError(`No method named "${e}"`);n[e](this)}})}};bv(C$);bi(C$);var _$={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(Do,function(){var n=1e3,r=6e4,i=36e5,s="millisecond",a="second",l="minute",c="hour",f="day",d="week",g="month",v="quarter",y="year",w="date",T="Invalid Date",E=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={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(z){var M=["th","st","nd","rd"],q=z%100;return"["+z+(M[(q-20)%10]||M[q]||M[0])+"]"}},C=function(z,M,q){var U=String(z);return!U||U.length>=M?z:""+Array(M+1-U.length).join(q)+z},A={s:C,z:function(z){var M=-z.utcOffset(),q=Math.abs(M),U=Math.floor(q/60),B=q%60;return(M<=0?"+":"-")+C(U,2,"0")+":"+C(B,2,"0")},m:function z(M,q){if(M.date()<q.date())return-z(q,M);var U=12*(q.year()-M.year())+(q.month()-M.month()),B=M.clone().add(U,g),Y=q-B<0,Z=M.clone().add(U+(Y?-1:1),g);return+(-(U+(q-B)/(Y?B-Z:Z-B))||0)},a:function(z){return z<0?Math.ceil(z)||0:Math.floor(z)},p:function(z){return{M:g,y,w:d,d:f,D:w,h:c,m:l,s:a,ms:s,Q:v}[z]||String(z||"").toLowerCase().replace(/s$/,"")},u:function(z){return z===void 0}},O="en",k={};k[O]=b;var R="$isDayjsObject",$=function(z){return z instanceof V||!(!z||!z[R])},j=function z(M,q,U){var B;if(!M)return O;if(typeof M=="string"){var Y=M.toLowerCase();k[Y]&&(B=Y),q&&(k[Y]=q,B=Y);var Z=M.split("-");if(!B&&Z.length>1)return z(Z[0])}else{var fe=M.name;k[fe]=M,B=fe}return!U&&B&&(O=B),B||!U&&O},W=function(z,M){if($(z))return z.clone();var q=typeof M=="object"?M:{};return q.date=z,q.args=arguments,new V(q)},H=A;H.l=j,H.i=$,H.w=function(z,M){return W(z,{locale:M.$L,utc:M.$u,x:M.$x,$offset:M.$offset})};var V=function(){function z(q){this.$L=j(q.locale,null,!0),this.parse(q),this.$x=this.$x||q.x||{},this[R]=!0}var M=z.prototype;return M.parse=function(q){this.$d=function(U){var B=U.date,Y=U.utc;if(B===null)return new Date(NaN);if(H.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var Z=B.match(E);if(Z){var fe=Z[2]-1||0,K=(Z[7]||"0").substring(0,3);return Y?new Date(Date.UTC(Z[1],fe,Z[3]||1,Z[4]||0,Z[5]||0,Z[6]||0,K)):new Date(Z[1],fe,Z[3]||1,Z[4]||0,Z[5]||0,Z[6]||0,K)}}return new Date(B)}(q),this.init()},M.init=function(){var q=this.$d;this.$y=q.getFullYear(),this.$M=q.getMonth(),this.$D=q.getDate(),this.$W=q.getDay(),this.$H=q.getHours(),this.$m=q.getMinutes(),this.$s=q.getSeconds(),this.$ms=q.getMilliseconds()},M.$utils=function(){return H},M.isValid=function(){return this.$d.toString()!==T},M.isSame=function(q,U){var B=W(q);return this.startOf(U)<=B&&B<=this.endOf(U)},M.isAfter=function(q,U){return W(q)<this.startOf(U)},M.isBefore=function(q,U){return this.endOf(U)<W(q)},M.$g=function(q,U,B){return H.u(q)?this[U]:this.set(B,q)},M.unix=function(){return Math.floor(this.valueOf()/1e3)},M.valueOf=function(){return this.$d.getTime()},M.startOf=function(q,U){var B=this,Y=!!H.u(U)||U,Z=H.p(q),fe=function(qe,Le){var Oe=H.w(B.$u?Date.UTC(B.$y,Le,qe):new Date(B.$y,Le,qe),B);return Y?Oe:Oe.endOf(f)},K=function(qe,Le){return H.w(B.toDate()[qe].apply(B.toDate("s"),(Y?[0,0,0,0]:[23,59,59,999]).slice(Le)),B)},N=this.$W,ie=this.$M,me=this.$D,ve="set"+(this.$u?"UTC":"");switch(Z){case y:return Y?fe(1,0):fe(31,11);case g:return Y?fe(1,ie):fe(0,ie+1);case d:var ze=this.$locale().weekStart||0,it=(N<ze?N+7:N)-ze;return fe(Y?me-it:me+(6-it),ie);case f:case w:return K(ve+"Hours",0);case c:return K(ve+"Minutes",1);case l:return K(ve+"Seconds",2);case a:return K(ve+"Milliseconds",3);default:return this.clone()}},M.endOf=function(q){return this.startOf(q,!1)},M.$set=function(q,U){var B,Y=H.p(q),Z="set"+(this.$u?"UTC":""),fe=(B={},B[f]=Z+"Date",B[w]=Z+"Date",B[g]=Z+"Month",B[y]=Z+"FullYear",B[c]=Z+"Hours",B[l]=Z+"Minutes",B[a]=Z+"Seconds",B[s]=Z+"Milliseconds",B)[Y],K=Y===f?this.$D+(U-this.$W):U;
59if(Y===g||Y===y){var N=this.clone().set(w,1);N.$d[fe](K),N.init(),this.$d=N.set(w,Math.min(this.$D,N.daysInMonth())).$d}else fe&&this.$d[fe](K);return this.init(),this},M.set=function(q,U){return this.clone().$set(q,U)},M.get=function(q){return this[H.p(q)]()},M.add=function(q,U){var B,Y=this;q=Number(q);var Z=H.p(U),fe=function(ie){var me=W(Y);return H.w(me.date(me.date()+Math.round(ie*q)),Y)};if(Z===g)return this.set(g,this.$M+q);if(Z===y)return this.set(y,this.$y+q);if(Z===f)return fe(1);if(Z===d)return fe(7);var K=(B={},B[l]=r,B[c]=i,B[a]=n,B)[Z]||1,N=this.$d.getTime()+q*K;return H.w(N,this)},M.subtract=function(q,U){return this.add(-1*q,U)},M.format=function(q){var U=this,B=this.$locale();if(!this.isValid())return B.invalidDate||T;var Y=q||"YYYY-MM-DDTHH:mm:ssZ",Z=H.z(this),fe=this.$H,K=this.$m,N=this.$M,ie=B.weekdays,me=B.months,ve=B.meridiem,ze=function(Le,Oe,$e,et){return Le&&(Le[Oe]||Le(U,Y))||$e[Oe].slice(0,et)},it=function(Le){return H.s(fe%12||12,Le,"0")},qe=ve||function(Le,Oe,$e){var et=Le<12?"AM":"PM";return $e?et.toLowerCase():et};return Y.replace(x,function(Le,Oe){return Oe||function($e){switch($e){case"YY":return String(U.$y).slice(-2);case"YYYY":return H.s(U.$y,4,"0");case"M":return N+1;case"MM":return H.s(N+1,2,"0");case"MMM":return ze(B.monthsShort,N,me,3);case"MMMM":return ze(me,N);case"D":return U.$D;case"DD":return H.s(U.$D,2,"0");case"d":return String(U.$W);case"dd":return ze(B.weekdaysMin,U.$W,ie,2);case"ddd":return ze(B.weekdaysShort,U.$W,ie,3);case"dddd":return ie[U.$W];case"H":return String(fe);case"HH":return H.s(fe,2,"0");case"h":return it(1);case"hh":return it(2);case"a":return qe(fe,K,!0);case"A":return qe(fe,K,!1);case"m":return String(K);case"mm":return H.s(K,2,"0");case"s":return String(U.$s);case"ss":return H.s(U.$s,2,"0");case"SSS":return H.s(U.$ms,3,"0");case"Z":return Z}return null}(Le)||Z.replace(":","")})},M.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},M.diff=function(q,U,B){var Y,Z=this,fe=H.p(U),K=W(q),N=(K.utcOffset()-this.utcOffset())*r,ie=this-K,me=function(){return H.m(Z,K)};switch(fe){case y:Y=me()/12;break;case g:Y=me();break;case v:Y=me()/3;break;case d:Y=(ie-N)/6048e5;break;case f:Y=(ie-N)/864e5;break;case c:Y=ie/i;break;case l:Y=ie/r;break;case a:Y=ie/n;break;default:Y=ie}return B?Y:H.a(Y)},M.daysInMonth=function(){return this.endOf(g).$D},M.$locale=function(){return k[this.$L]},M.locale=function(q,U){if(!q)return this.$L;var B=this.clone(),Y=j(q,U,!0);return Y&&(B.$L=Y),B},M.clone=function(){return H.w(this.$d,this)},M.toDate=function(){return new Date(this.valueOf())},M.toJSON=function(){return this.isValid()?this.toISOString():null},M.toISOString=function(){return this.$d.toISOString()},M.toString=function(){return this.$d.toUTCString()},z}(),F=V.prototype;return W.prototype=F,[["$ms",s],["$s",a],["$m",l],["$H",c],["$W",f],["$M",g],["$y",y],["$D",w]].forEach(function(z){F[z[1]]=function(M){return this.$g(M,z[0],z[1])}}),W.extend=function(z,M){return z.$i||(z(M,V,W),z.$i=!0),W},W.locale=j,W.isDayjs=$,W.unix=function(z){return W(1e3*z)},W.en=k[O],W.Ls=k,W.p={},W})})(_$);var A$=_$.exports;const Kxe=Lr(A$);var aJ={exports:{}};(function(t,e){(function(n,r){t.exports=r(A$)})(Do,function(n){function r(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var i=r(n),s={name:"ja",weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(a){return a+"日"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiem:function(a){return a<12?"午前":"午後"},relativeTime:{future:"%s後",past:"%s前",s:"数秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}};return i.default.locale(s,null,!0),s})})(aJ);var k$={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(Do,function(){var n={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"};return function(r,i,s){var a=i.prototype,l=a.format;s.en.formats=n,a.format=function(c){c===void 0&&(c="YYYY-MM-DDTHH:mm:ssZ");var f=this.$locale().formats,d=function(g,v){return g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(y,w,T){var E=T&&T.toUpperCase();return w||v[T]||n[T]||v[E].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(x,b,C){return b||C.slice(1)})})}(c,f===void 0?{}:f);return l.call(this,d)}}})})(k$);var lJ=k$.exports;const qxe=Lr(lJ),uJ={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){console&&console[t]&&console[t].apply(console,e)}};class Yg{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,n)}init(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=e||uJ,this.options=n,this.debug=n.debug}log(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(e,n,r,i){return i&&!this.debug?null:(typeof e[0]=="string"&&(e[0]=`${r}${this.prefix} ${e[0]}`),this.logger[n](e))}create(e){return new Yg(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new Yg(this.logger,e)}}var hs=new Yg;class Ev{constructor(){this.observers={}}on(e,n){return e.split(" ").forEach(r=>{this.observers[r]=this.observers[r]||[],this.observers[r].push(n)}),this}
vendor: 5,367 bytes, line 59
59off(e,n){if(this.observers[e]){if(!n){delete this.observers[e];return}this.observers[e]=this.observers[e].filter(r=>r!==n)}}emit(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];this.observers[e]&&[].concat(this.observers[e]).forEach(a=>{a(...r)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(a=>{a.apply(a,[e,...r])})}}function mf(){let t,e;const n=new Promise((r,i)=>{t=r,e=i});return n.resolve=t,n.reject=e,n}function BL(t){return t==null?"":""+t}function cJ(t,e,n){t.forEach(r=>{e[r]&&(n[r]=e[r])})}function i1(t,e,n){function r(a){return a&&a.indexOf("###")>-1?a.replace(/###/g,"."):a}function i(){return!t||typeof t=="string"}const s=typeof e!="string"?[].concat(e):e.split(".");for(;s.length>1;){if(i())return{};const a=r(s.shift());!t[a]&&n&&(t[a]=new n),Object.prototype.hasOwnProperty.call(t,a)?t=t[a]:t={}}return i()?{}:{obj:t,k:r(s.shift())}}function jL(t,e,n){const{obj:r,k:i}=i1(t,e,Object);r[i]=n}function fJ(t,e,n,r){const{obj:i,k:s}=i1(t,e,Object);i[s]=i[s]||[],r&&(i[s]=i[s].concat(n)),r||i[s].push(n)}function Xg(t,e){const{obj:n,k:r}=i1(t,e);if(n)return n[r]}function dJ(t,e,n){const r=Xg(t,n);return r!==void 0?r:Xg(e,n)}function L$(t,e,n){for(const r in e)r!=="__proto__"&&r!=="constructor"&&(r in t?typeof t[r]=="string"||t[r]instanceof String||typeof e[r]=="string"||e[r]instanceof String?n&&(t[r]=e[r]):L$(t[r],e[r],n):t[r]=e[r]);return t}function ql(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var pJ={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function hJ(t){return typeof t=="string"?t.replace(/[&<>"'\/]/g,e=>pJ[e]):t}const gJ=[" ",",","?","!",";"];function mJ(t,e,n){e=e||"",n=n||"";const r=gJ.filter(a=>e.indexOf(a)<0&&n.indexOf(a)<0);if(r.length===0)return!0;const i=new RegExp(`(${r.map(a=>a==="?"?"\\?":a).join("|")})`);let s=!i.test(t);if(!s){const a=t.indexOf(n);a>0&&!i.test(t.substring(0,a))&&(s=!0)}return s}function Qg(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!t)return;if(t[e])return t[e];const r=e.split(n);let i=t;for(let s=0;s<r.length;++s){if(!i||typeof i[r[s]]=="string"&&s+1<r.length)return;if(i[r[s]]===void 0){let a=2,l=r.slice(s,s+a).join(n),c=i[l];for(;c===void 0&&r.length>s+a;)a++,l=r.slice(s,s+a).join(n),c=i[l];if(c===void 0)return;if(c===null)return null;if(e.endsWith(l)){if(typeof c=="string")return c;if(l&&typeof c[l]=="string")return c[l]}const f=r.slice(s+a).join(n);return f?Qg(c,f,n):void 0}i=i[r[s]]}return i}function Jg(t){return t&&t.indexOf("_")>0?t.replace("_","-"):t}class UL extends Ev{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const n=this.options.ns.indexOf(e);n>-1&&this.options.ns.splice(n,1)}getResource(e,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,a=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let l=[e,n];r&&typeof r!="string"&&(l=l.concat(r)),r&&typeof r=="string"&&(l=l.concat(s?r.split(s):r)),e.indexOf(".")>-1&&(l=e.split("."));const c=Xg(this.data,l);return c||!a||typeof r!="string"?c:Qg(this.data&&this.data[e]&&this.data[e][n],r,s)}addResource(e,n,r,i){let s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const a=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let l=[e,n];r&&(l=l.concat(a?r.split(a):r)),e.indexOf(".")>-1&&(l=e.split("."),i=n,n=l[1]),this.addNamespaces(n),jL(this.data,l,i),s.silent||this.emit("added",e,n,r,i)}addResources(e,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const s in r)(typeof r[s]=="string"||Object.prototype.toString.apply(r[s])==="[object Array]")&&this.addResource(e,n,s,r[s],{silent:!0});i.silent||this.emit("added",e,n,r)}addResourceBundle(e,n,r,i,s){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},l=[e,n];e.indexOf(".")>-1&&(l=e.split("."),i=r,r=n,n=l[1]),this.addNamespaces(n);let c=Xg(this.data,l)||{};i?L$(c,r,s):c={...c,...r},jL(this.data,l,c),a.silent||this.emit("added",e,n,r)}removeResourceBundle(e,n){this.hasResourceBundle(e,n)&&delete this.data[e][n],this.removeNamespaces(n),this.emit("removed",e,n)}hasResourceBundle(e,n){return this.getResource(e,n)!==void 0}getResourceBundle(e,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(e,n)}:this.getResource(e,n)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const n=this.getDataByLanguage(e);return!!(n&&Object.keys(n)||[]).find(i=>n[i]&&Object.keys(n[i]).length>0)}toJSON(){return this.data}}var O$={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,n,r,i){return t.forEach(s=>{this.processors[s]&&(e=this.processors[s].process(e,n,r,i))}),e}};const HL={};class Zg extends Ev{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),cJ(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
59i18nFormat","utils"],e,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=hs.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;const r=this.resolve(e,n);return r&&r.res!==void 0}extractFromKey(e,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let s=n.ns||this.options.defaultNS||[];const a=r&&e.indexOf(r)>-1,l=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!mJ(e,r,i);if(a&&!l){const c=e.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:e,namespaces:s};const f=e.split(r);(r!==i||r===i&&this.options.ns.indexOf(f[0])>-1)&&(s=f.shift()),e=f.join(i)}return typeof s=="string"&&(s=[s]),{key:e,namespaces:s}}translate(e,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const i=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,s=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:a,namespaces:l}=this.extractFromKey(e[e.length-1],n),c=l[l.length-1],f=n.lng||this.language,d=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&f.toLowerCase()==="cimode"){if(d){const A=n.nsSeparator||this.options.nsSeparator;return i?{res:`${c}${A}${a}`,usedKey:a,exactUsedKey:a,usedLng:f,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:`${c}${A}${a}`}return i?{res:a,usedKey:a,exactUsedKey:a,usedLng:f,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:a}const g=this.resolve(e,n);let v=g&&g.res;const y=g&&g.usedKey||a,w=g&&g.exactUsedKey||a,T=Object.prototype.toString.apply(v),E=["[object Number]","[object Function]","[object RegExp]"],x=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject;if(b&&v&&(typeof v!="string"&&typeof v!="boolean"&&typeof v!="number")&&E.indexOf(T)<0&&!(typeof x=="string"&&T==="[object Array]")){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const A=this.options.returnedObjectHandler?this.options.returnedObjectHandler(y,v,{...n,ns:l}):`key '${a} (${this.language})' returned an object instead of string.`;return i?(g.res=A,g.usedParams=this.getUsedParamsDetails(n),g):A}if(s){const A=T==="[object Array]",O=A?[]:{},k=A?w:y;for(const R in v)if(Object.prototype.hasOwnProperty.call(v,R)){const $=`${k}${s}${R}`;O[R]=this.translate($,{...n,joinArrays:!1,ns:l}),O[R]===$&&(O[R]=v[R])}v=O}}else if(b&&typeof x=="string"&&T==="[object Array]")v=v.join(x),v&&(v=this.extendTranslation(v,e,n,r));else{let A=!1,O=!1;const k=n.count!==void 0&&typeof n.count!="string",R=Zg.hasDefaultValue(n),$=k?this.pluralResolver.getSuffix(f,n.count,n):"",j=n.ordinal&&k?this.pluralResolver.getSuffix(f,n.count,{ordinal:!1}):"",W=n[`defaultValue${$}`]||n[`defaultValue${j}`]||n.defaultValue;!this.isValidLookup(v)&&R&&(A=!0,v=W),this.isValidLookup(v)||(O=!0,v=a);const V=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&O?void 0:v,F=R&&W!==v&&this.options.updateMissing;if(O||A||F){if(this.logger.log(F?"updateKey":"missingKey",f,c,a,F?W:v),s){const U=this.resolve(a,{...n,keySeparator:!1});U&&U.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 z=[];const M=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&M&&M[0])for(let U=0;U<M.length;U++)z.push(M[U]);else this.options.saveMissingTo==="all"?z=this.languageUtils.toResolveHierarchy(n.lng||this.language):z.push(n.lng||this.language);const q=(U,B,Y)=>{const Z=R&&Y!==v?Y:V;this.options.missingKeyHandler?this.options.missingKeyHandler(U,c,B,Z,F,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(U,c,B,Z,F,n),this.emit
vendor: 24,907 bytes, line 59
59("missingKey",U,c,B,v)};this.options.saveMissing&&(this.options.saveMissingPlurals&&k?z.forEach(U=>{this.pluralResolver.getSuffixes(U,n).forEach(B=>{q([U],a+B,n[`defaultValue${B}`]||W)})}):q(z,a,W))}v=this.extendTranslation(v,e,n,g,r),O&&v===a&&this.options.appendNamespaceToMissingKey&&(v=`${c}:${a}`),(O||A)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?v=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${a}`:a,A?v:void 0):v=this.options.parseMissingKeyHandler(v))}return i?(g.res=v,g.usedParams=this.getUsedParamsDetails(n),g):v}extendTranslation(e,n,r,i,s){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const f=typeof e=="string"&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(f){const v=e.match(this.interpolator.nestingRegexp);d=v&&v.length}let g=r.replace&&typeof r.replace!="string"?r.replace:r;if(this.options.interpolation.defaultVariables&&(g={...this.options.interpolation.defaultVariables,...g}),e=this.interpolator.interpolate(e,g,r.lng||this.language,r),f){const v=e.match(this.interpolator.nestingRegexp),y=v&&v.length;d<y&&(r.nest=!1)}!r.lng&&this.options.compatibilityAPI!=="v1"&&i&&i.res&&(r.lng=i.usedLng),r.nest!==!1&&(e=this.interpolator.nest(e,function(){for(var v=arguments.length,y=new Array(v),w=0;w<v;w++)y[w]=arguments[w];return s&&s[0]===y[0]&&!r.context?(a.logger.warn(`It seems you are nesting recursively key: ${y[0]} in key: ${n[0]}`),null):a.translate(...y,n)},r)),r.interpolation&&this.interpolator.reset()}const l=r.postProcess||this.options.postProcess,c=typeof l=="string"?[l]:l;return e!=null&&c&&c.length&&r.applyPostProcessor!==!1&&(e=O$.handle(c,e,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),e}resolve(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,i,s,a,l;return typeof e=="string"&&(e=[e]),e.forEach(c=>{if(this.isValidLookup(r))return;const f=this.extractFromKey(c,n),d=f.key;i=d;let g=f.namespaces;this.options.fallbackNS&&(g=g.concat(this.options.fallbackNS));const v=n.count!==void 0&&typeof n.count!="string",y=v&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),w=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",T=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);g.forEach(E=>{this.isValidLookup(r)||(l=E,!HL[`${T[0]}-${E}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(HL[`${T[0]}-${E}`]=!0,this.logger.warn(`key "${i}" for languages "${T.join(", ")}" won't get resolved as namespace "${l}" 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!!!")),T.forEach(x=>{if(this.isValidLookup(r))return;a=x;const b=[d];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(b,d,x,E,n);else{let A;v&&(A=this.pluralResolver.getSuffix(x,n.count,n));const O=`${this.options.pluralSeparator}zero`,k=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(v&&(b.push(d+A),n.ordinal&&A.indexOf(k)===0&&b.push(d+A.replace(k,this.options.pluralSeparator)),y&&b.push(d+O)),w){const R=`${d}${this.options.contextSeparator}${n.context}`;b.push(R),v&&(b.push(R+A),n.ordinal&&A.indexOf(k)===0&&b.push(R+A.replace(k,this.options.pluralSeparator)),y&&b.push(R+O))}}let C;for(;C=b.pop();)this.isValidLookup(r)||(s=C,r=this.getResource(x,E,C,n))}))})}),{res:r,usedKey:i,exactUsedKey:s,usedLng:a,usedNS:l}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,n,r,i):this.resourceStore.getResource(e,n,r,i)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=e.replace&&typeof e.replace!="string";let i=r?e.replace:e;if(r&&typeof e.count<"u"&&(i.count=e.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!r){i={...i};for(const s of n)delete i[s]}return i}static hasDefaultValue(e){const n="defaultValue";for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&n===r.substring(0,n.length)&&e[r]!==void 0)return!0;return!1}}function f0(t){return t.charAt(0).toUpperCase()+t.slice(1)}class WL{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=hs.create("languageUtils")}getScriptPartFromCode(e){if(e=Jg(e),!e||e.indexOf("-")<0)return null;const n=e.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(e){if(e=Jg(e),!e||e.indexOf("-")<0)return e;const n=e.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(e){if(typeof e=="string"&&e.indexOf("-")>-1){const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=e.split("-");return this.options.lowerCaseLng?r=r.map(i=>i.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=f0(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=f0(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=f0(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let n;return e.forEach(r=>{if(n)return;const i=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(i))&&(n=i)}),!n&&this.options.supportedLngs&&e.forEach(r=>{if(n)return;const i=this.getLanguagePartFromCode(r);if(this.isSupportedCode(i))return n=i;n=this.options.supportedLngs.find(s=>{if(s===i)return s;if(!(s.indexOf("-")<0&&i.indexOf("-")<0)&&s.indexOf(i)===0)return s})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(e,n){if(!e)return[];if(typeof e=="function"&&(e=e(n)),typeof e=="string"&&(e=[e]),Object.prototype.toString.apply(e)==="[object Array]")return e;if(!n)return e.default||[];let r=e[n];return r||(r=e[this.getScriptPartFromCode(n)]),r||(r=e[this.formatLanguageCode(n)]),r||(r=e[this.getLanguagePartFromCode(n)]),r||(r=e.default),r||[]}toResolveHierarchy(e,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],e),i=[],s=a=>{a&&(this.isSupportedCode(a)?i.push(a):this.logger.warn(`rejecting language code not found in supportedLngs: ${a}`))};return typeof e=="string"&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(e))):typeof e=="string"&&s(this.formatLanguageCode(e)),r.forEach(a=>{i.indexOf(a)<0&&s(this.formatLanguageCode(a))}),i}}let vJ=[{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}],yJ={1:function(t){return+(t>1)},2:function(t){return+(t!=1)},3:function(t){return 0},4:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},5:function(t){return t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},6:function(t){return t==1?0:t>=2&&t<=4?1:2},7:function(t){return t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},8:function(t){return t==1?0:t==2?1:t!=8&&t!=11?2:3},9:function(t){return+(t>=2)},10:function(t){return t==1?0:t==2?1:t<7?2:t<11?3:4},11:function(t){return t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3},12:function(t){return+(t%10!=1||t%100==11)},13:function(t){return+(t!==0)},14:function(t){return t==1?0:t==2?1:t==3?2:3},15:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2},16:function(t){return t%10==1&&t%100!=11?0:t!==0?1:2},17:function(t){return t==1||t%10==1&&t%100!=11?0:1},18:function(t){return t==0?0:t==1?1:2},19:function(t){return t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3},20:function(t){return t==1?0:t==0||t%100>0&&t%100<20?1:2},21:function(t){return t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0},22:function(t){return t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3}};const wJ=["v1","v2","v3"],bJ=["v4"],VL={zero:0,one:1,two:2,few:3,many:4,other:5};function xJ(){const t={};return vJ.forEach(e=>{e.lngs.forEach(n=>{t[n]={numbers:e.nr,plurals:yJ[e.fc]}})}),t}class SJ{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=n,this.logger=hs.create("pluralResolver"),(!this.options.compatibilityJSON||bJ.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=xJ()}addRule(e,n){this.rules[e]=n}getRule(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(Jg(e),{type:n.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(e,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,r).map(i=>`${n}${i}`)}getSuffixes(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(e,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((i,s)=>VL[i]-VL[s]).map(i=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i}`):r.numbers.map(i=>this.getSuffix(e,i,n)):[]}getSuffix(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=this.getRule(e,r);return i?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(n)}`:this.getSuffixRetroCompatible(i,n):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,n){const r=e.noAbs?e.plurals(n):e.plurals(Math.abs(n));let i=e.numbers[r];this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1&&(i===2?i="plural":i===1&&(i=""));const s=()=>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()}`:s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1?s():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!wJ.includes(this.options.compatibilityJSON)}}function KL(t,e,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=dJ(t,e,n);return!s&&i&&typeof n=="string"&&(s=Qg(t,n,r),s===void 0&&(s=Qg(e,n,r))),s}class EJ{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=hs.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(n=>n),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const n=e.interpolation;this.escape=n.escape!==void 0?n.escape:hJ,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?ql(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?ql(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?ql(n.nestingPrefix):n.nestingPrefixEscaped||ql("$t("),this.nestingSuffix=n.nestingSuffix?ql(n.nestingSuffix):n.nestingSuffixEscaped||ql(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0?n.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(e,"g");const n=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(n,"g");const r=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(r,"g")}interpolate(e,n,r,i){let s,a,l;const c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function f(w){return w.replace(/\$/g,"$$$$")}const d=w=>{if(w.indexOf(this.formatSeparator)<0){const b=KL(n,c,w,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(b,void 0,r,{...i,...n,interpolationkey:w}):b}const T=w.split(this.formatSeparator),E=T.shift().trim(),x=T.join(this.formatSeparator).trim();return this.format(KL(n,c,E,this.options.keySeparator,this.options.ignoreJSONStructure),x,r,{...i,...n,interpolationkey:E})};this.resetRegExp();const g=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,v=i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:w=>f(w)},{regex:this.regexp,safeValue:w=>this.escapeValue?f(this.escape(w)):f(w)}].forEach(w=>{for(l=0;s=w.regex.exec(e);){const T=s[1].trim();if(a=d(T),a===void 0)if(typeof g=="function"){const x=g(e,s,i);a=typeof x=="string"?x:""}else if(i&&Object.prototype.hasOwnProperty.call(i,T))a="";else if(v){a=s[0];continue}else this.logger.warn(`missed to pass in variable ${T} for interpolating ${e}`),a="";else typeof a!="string"&&!this.useRawValueToEscape&&(a=BL(a));const E=w.safeValue(a);if(e=e.replace(s[0],E),v?(w.regex.lastIndex+=a.length,w.regex.lastIndex-=s[0].length):w.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),e}nest(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,s,a;function l(c,f){const d=this.nestingOptionsSeparator;if(c.indexOf(d)<0)return c;const g=c.split(new RegExp(`${d}[ ]*{`));let v=`{${g[1]}`;c=g[0],v=this.interpolate(v,a);const y=v.match(/'/g),w=v.match(/"/g);(y&&y.length%2===0&&!w||w.length%2!==0)&&(v=v.replace(/'/g,'"'));try{a=JSON.parse(v),f&&(a={...f,...a})}catch(T){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,T),`${c}${d}${v}`}return delete a.defaultValue,c}for(;i=this.nestingRegexp.exec(e);){let c=[];a={...r},a=a.replace&&typeof a.replace!="string"?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let f=!1;if(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){const d=i[1].split(this.formatSeparator).map(g=>g.trim());i[1]=d.shift(),c=d,f=!0}if(s=n(l.call(this,i[1].trim(),a),a),s&&i[0]===e&&typeof s!="string")return s;typeof s!="string"&&(s=BL(s)),s||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`),s=""),f&&(s=c.reduce((d,g)=>this.format(d,g,r.lng,{...r,interpolationkey:i[1].trim()}),s.trim())),e=e.replace(i[0],s),this.regexp.lastIndex=0}return e}}function CJ(t){let e=t.toLowerCase().trim();const n={};if(t.indexOf("(")>-1){const r=t.split("(");e=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);e==="currency"&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):e==="relativetime"&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach(a=>{if(!a)return;const[l,...c]=a.split(":"),f=c.join(":").trim().replace(/^'+|'+$/g,"");n[l.trim()]||(n[l.trim()]=f),f==="false"&&(n[l.trim()]=!1),f==="true"&&(n[l.trim()]=!0),isNaN(f)||(n[l.trim()]=parseInt(f,10))})}return{formatName:e,formatOptions:n}}function Gl(t){const e={};return function(r,i,s){const a=i+JSON.stringify(s);let l=e[a];return l||(l=t(Jg(i),s),e[a]=l),l(r)}}class TJ{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=hs.create("formatter"),this.options=e,this.formats={number:Gl((n,r)=>{const i=new Intl.NumberFormat(n,{...r});return s=>i.format(s)}),currency:Gl((n,r)=>{const i=new Intl.NumberFormat(n,{...r,style:"currency"});return s=>i.format(s)}),datetime:Gl((n,r)=>{const i=new Intl.DateTimeFormat(n,{...r});return s=>i.format(s)}),relativetime:Gl((n,r)=>{const i=new Intl.RelativeTimeFormat(n,{...r});return s=>i.format(s,r.range||"day")}),list:Gl((n,r)=>{const i=new Intl.ListFormat(n,{...r});return s=>i.format(s)})},this.init(e)}init(e){const r=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","}add(e,n){this.formats[e.toLowerCase().trim()]=n}addCached(e,n){this.formats[e.toLowerCase().trim()]=Gl(n)}format(e,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return n.split(this.formatSeparator).reduce((l,c)=>{const{formatName:f,formatOptions:d}=CJ(c);if(this.formats[f]){let g=l;try{const v=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},y=v.locale||v.lng||i.locale||i.lng||r;g=this.formats[f](l,y,{...d,...i,...v})}catch(v){this.logger.warn(v)}return g}else this.logger.warn(`there was no format function for ${f}`);return l},e)}}function _J(t,e){t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)}class AJ extends Ev{constructor(e,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=i,this.logger=hs.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(r,i.backend,i)}queueLoad(e,n,r,i){const s={},a={},l={},c={};return e.forEach(f=>{let d=!0;n.forEach(g=>{const v=`${f}|${g}`;!r.reload&&this.store.hasResourceBundle(f,g)?this.state[v]=2:this.state[v]<0||(this.state[v]===1?a[v]===void 0&&(a[v]=!0):(this.state[v]=1,d=!1,a[v]===void 0&&(a[v]=!0),s[v]===void 0&&(s[v]=!0),c[g]===void 0&&(c[g]=!0)))}),d||(l[f]=!0)}),(Object.keys(s).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(s),pending:Object.keys(a),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(c)}}loaded(e,n,r){const i=e.split("|"),s=i[0],a=i[1];n&&this.emit("failedLoading",s,a,n),r&&this.store.addResourceBundle(s,a,r),this.state[e]=n?-1:2;const l={};this.queue.forEach(c=>{fJ(c.loaded,[s],a),_J(c,e),n&&c.errors.push(n),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(f=>{l[f]||(l[f]={});const d=c.loaded[f];d.length&&d.forEach(g=>{l[f][g]===void 0&&(l[f][g]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(c=>!c.done)}read(e,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:n,fcName:r,tried:i,wait:s,callback:a});return}this.readingCalls++;const l=(f,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const g=this.waitingReads.shift();this.read(g.lng,g.ns,g.fcName,g.tried,g.wait,g.callback)}if(f&&d&&i<this.maxRetries){setTimeout(()=>{this.read.call(this,e,n,r,i+1,s*2,a)},s);return}a(f,d)},c=this.backend[r].bind(this.backend);if(c.length===2){try{const f=c(e,n);f&&typeof f.then=="function"?f.then(d=>l(null,d)).catch(l):l(null,f)}catch(f){l(f)}return}return c(e,n,l)}prepareLoading(e,n){let r=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();typeof e=="string"&&(e=this.languageUtils.toResolveHierarchy(e)),typeof n=="string"&&(n=[n]);const s=this.queueLoad(e,n,r,i);if(!s.toLoad.length)return s.pending.length||i(),null;s.toLoad.forEach(a=>{this.loadOne(a)})}load(e,n,r){this.prepareLoading(e,n,{},r)}reload(e,n,r){this.prepareLoading(e,n,{reload:!0},r)}loadOne(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=e.split("|"),i=r[0],s=r[1];this.read(i,s,"read",void 0,void 0,(a,l)=>{a&&this.logger.warn(`${n}loading namespace ${s} for language ${i} failed`,a),!a&&l&&this.logger.log(`${n}loaded namespace ${s} for language ${i}`,l),this.loaded(e,a,l)})}saveMissing(e,n,r,i,s){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" 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(!(r==null||r==="")){if(this.backend&&this.backend.create){const c={...a,isUpdate:s},f=this.backend.create.bind(this.backend);if(f.length<6)try{let d;f.length===5?d=f(e,n,r,i,c):d=f(e,n,r,i),d&&typeof d.then=="function"?d.then(g=>l(null,g)).catch(l):l(null,d)}catch(d){l(d)}else f(e,n,r,i,l,c)}!e||!e[0]||this.store.addResource(e[0],n,r,i)}}}function qL(){return{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:function(e){let n={};if(typeof e[1]=="object"&&(n=e[1]),typeof e[1]=="string"&&(n.defaultValue=e[1]),typeof e[2]=="str
59ing"&&(n.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const r=e[3]||e[2];Object.keys(r).forEach(i=>{n[i]=r[i]})}return n},interpolation:{escapeValue:!0,format:(t,e,n,r)=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function GL(t){return typeof t.ns=="string"&&(t.ns=[t.ns]),typeof t.fallbackLng=="string"&&(t.fallbackLng=[t.fallbackLng]),typeof t.fallbackNS=="string"&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function dh(){}function kJ(t){Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(n=>{typeof t[n]=="function"&&(t[n]=t[n].bind(t))})}class bd extends Ev{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=GL(e),this.services={},this.logger=hs,this.modules={external:[]},kJ(this),n&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,n),this;setTimeout(()=>{this.init(e,n)},0)}}init(){var e=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const i=qL();this.options={...i,...this.options,...GL(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...i.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);function s(d){return d?typeof d=="function"?new d:d:null}if(!this.options.isClone){this.modules.logger?hs.init(s(this.modules.logger),this.options):hs.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:typeof Intl<"u"&&(d=TJ);const g=new WL(this.options);this.store=new UL(this.options.resources,this.options);const v=this.services;v.logger=hs,v.resourceStore=this.store,v.languageUtils=g,v.pluralResolver=new SJ(g,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(v.formatter=s(d),v.formatter.init(v,this.options),this.options.interpolation.format=v.formatter.format.bind(v.formatter)),v.interpolator=new EJ(this.options),v.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},v.backendConnector=new AJ(s(this.modules.backend),v.resourceStore,v,this.options),v.backendConnector.on("*",function(y){for(var w=arguments.length,T=new Array(w>1?w-1:0),E=1;E<w;E++)T[E-1]=arguments[E];e.emit(y,...T)}),this.modules.languageDetector&&(v.languageDetector=s(this.modules.languageDetector),v.languageDetector.init&&v.languageDetector.init(v,this.options.detection,this.options)),this.modules.i18nFormat&&(v.i18nFormat=s(this.modules.i18nFormat),v.i18nFormat.init&&v.i18nFormat.init(this)),this.translator=new Zg(this.services,this.options),this.translator.on("*",function(y){for(var w=arguments.length,T=new Array(w>1?w-1:0),E=1;E<w;E++)T[E-1]=arguments[E];e.emit(y,...T)}),this.modules.external.forEach(y=>{y.init&&y.init(this)})}if(this.format=this.options.interpolation.format,r||(r=dh),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 e.store[d](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=function(){return e.store[d](...arguments),e}});const c=mf(),f=()=>{const d=(g,v)=>{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
vendor: 10,381 bytes, line 59
59("initialized",this.options),c.resolve(v),r(g,v)};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?f():setTimeout(f,0),c}loadResources(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:dh;const i=typeof e=="string"?e:this.language;if(typeof e=="function"&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(i&&i.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const s=[],a=l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(f=>{f!=="cimode"&&s.indexOf(f)<0&&s.push(f)})};i?a(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(c=>a(c)),this.options.preload&&this.options.preload.forEach(l=>a(l)),this.services.backendConnector.load(s,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(l)})}else r(null)}reloadResources(e,n,r){const i=mf();return e||(e=this.languages),n||(n=this.options.ns),r||(r=dh),this.services.backendConnector.reload(e,n,s=>{i.resolve(),r(s)}),i}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&O$.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1))for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(e,n){var r=this;this.isLanguageChangingTo=e;const i=mf();this.emit("languageChanging",e);const s=c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},a=(c,f)=>{f?(s(f),this.translator.changeLanguage(f),this.isLanguageChangingTo=void 0,this.emit("languageChanged",f),this.logger.log("languageChanged",f)):this.isLanguageChangingTo=void 0,i.resolve(function(){return r.t(...arguments)}),n&&n(c,function(){return r.t(...arguments)})},l=c=>{!e&&!c&&this.services.languageDetector&&(c=[]);const f=typeof c=="string"?c:this.services.languageUtils.getBestMatchFromCodes(c);f&&(this.language||s(f),this.translator.language||this.translator.changeLanguage(f),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(f)),this.loadResources(f,d=>{a(d,f)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(e),i}getFixedT(e,n,r){var i=this;const s=function(a,l){let c;if(typeof l!="object"){for(var f=arguments.length,d=new Array(f>2?f-2:0),g=2;g<f;g++)d[g-2]=arguments[g];c=i.options.overloadTranslationOptionHandler([a,l].concat(d))}else c={...l};c.lng=c.lng||s.lng,c.lngs=c.lngs||s.lngs,c.ns=c.ns||s.ns,c.keyPrefix=c.keyPrefix||r||s.keyPrefix;const v=i.options.keySeparator||".";let y;return c.keyPrefix&&Array.isArray(a)?y=a.map(w=>`${c.keyPrefix}${v}${w}`):y=c.keyPrefix?`${c.keyPrefix}${v}${a}`:a,i.t(y,c)};return typeof e=="string"?s.lng=e:s.lngs=e,s.ns=n,s.keyPrefix=r,s}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let n=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 r=n.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,s=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const a=(l,c)=>{const f=this.services.backendConnector.state[`${l}|${c}`];return f===-1||f===2};if(n.precheck){const l=n.precheck(this,a);if(l!==void 0)return l}return!!(this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(r,e)&&(!i||a(s,e)))}loadNamespaces(e,n){const r=mf();return this.options.ns?(typeof e=="string"&&(e=[e]),e.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}loadLanguages(e,n){const r=mf();typeof e=="string"&&(e=[e]);const i=this.options.preload||[],s=e.filter(a=>i.indexOf(a)<0);return s.length?(this.options.preload=i.concat(s),this.loadResources(a=>{r.resolve(),n&&n(a)}),r):(n&&n(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const n=["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"],r=this.services&&this.services.languageUtils||new WL(qL());return n.indexOf(r.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new bd(e,n)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:dh;const r=e.forkResourceStore;r&&delete e.forkResourceStore;const i={...this.options,...e,isClone:!0},s=new bd(i);return(e.debug!==void 0||e.prefix!==void 0)&&(s.logger=s.logger.clone(e)),["store","services","language"].forEach(l=>{s[l]=this[l]}),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},r&&(s.store=new UL(this.store.data,i),s.services.resourceStore=s.store),s.translator=new Zg(s.services,i),s.translator.on("*",function(l){for(var c=arguments.length,f=new Array(c>1?c-1:0),d=1;d<c;d++)f[d-1]=arguments[d];s.emit(l,...f)}),s.init(i,n),s.translator.options=i,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const gr=bd.createInstance();gr.createInstance=bd.createInstance;gr.createInstance;gr.dir;gr.init;gr.loadResources;gr.reloadResources;gr.use;gr.changeLanguage;gr.getFixedT;gr.t;gr.exists;gr.setDefaultNamespace;gr.hasLoadedNamespace;gr.loadNamespaces;gr.loadLanguages;function em(){return em=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},em.apply(null,arguments)}function LJ(){if(console&&console.warn){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];typeof e[0]=="string"&&(e[0]=`react-i18next:: ${e[0]}`),console.warn(...e)}}const YL={};function _x(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];typeof e[0]=="string"&&YL[e[0]]||(typeof e[0]=="string"&&(YL[e[0]]=new Date),LJ(...e))}const I$=(t,e)=>()=>{if(t.isInitialized)e();else{const n=()=>{setTimeout(()=>{t.off("initialized",n)},0),e()};t.on("initialized",n)}};function XL(t,e,n){t.loadNamespaces(e,I$(t,n))}function QL(t,e,n,r){typeof n=="string"&&(n=[n]),n.forEach(i=>{t.options.ns.indexOf(i)<0&&t.options.ns.push(i)}),t.loadLanguages(e,I$(t,r))}function OJ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=e.languages[0],i=e.options?e.options.fallbackLng:!1,s=e.languages[e.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const a=(l,c)=>{const f=e.services.backendConnector.state[`${l}|${c}`];return f===-1||f===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&e.services.backendConnector.backend&&e.isLanguageChangingTo&&!a(e.isLanguageChangingTo,t)?!1:!!(e.hasResourceBundle(r,t)||!e.services.backendConnector.backend||e.options.resources&&!e.options.partialBundledLanguages||a(r,t)&&(!i||a(s,t)))}function IJ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!e.languages||!e.languages.length?(_x("i18n.languages were undefined or empty",e.languages),!0):e.options.ignoreJSONStructure!==void 0?e.hasLoadedNamespace(t,{lng:n.lng,precheck:(i,s)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!s(i.isLanguageChangingTo,t))return!1}}):OJ(t,e,n)}const PJ=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,RJ={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},MJ=t=>RJ[t],DJ=t=>t.replace(PJ,MJ);let Ax={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:DJ};function NJ(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ax={...Ax,...t}}function $J(){return Ax}let P$;function FJ(t){P$=t}function zJ(){return P$}const Gxe={type:"3rdParty",init(t){NJ(t.options.react),FJ(t)}},BJ=I.createContext();
59class jJ{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const UJ=(t,e)=>{const n=I.useRef();return I.useEffect(()=>{n.current=e?n.current:t},[t,e]),n.current};function Yxe(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:n}=e,{i18n:r,defaultNS:i}=I.useContext(BJ)||{},s=n||r||zJ();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new jJ),!s){_x("You will need to pass in an i18next instance by using initReactI18next");const C=(O,k)=>typeof k=="string"?k:k&&typeof k=="object"&&typeof k.defaultValue=="string"?k.defaultValue:Array.isArray(O)?O[O.length-1]:O,A=[C,{},!1];return A.t=C,A.i18n={},A.ready=!1,A}s.options.react&&s.options.react.wait!==void 0&&_x("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const a={...$J(),...s.options.react,...e},{useSuspense:l,keyPrefix:c}=a;let f=t||i||s.options&&s.options.defaultNS;f=typeof f=="string"?[f]:f||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(f);const d=(s.isInitialized||s.initializedStoreOnce)&&f.every(C=>IJ(C,s,a));function g(){return s.getFixedT(e.lng||null,a.nsMode==="fallback"?f:f[0],c)}const[v,y]=I.useState(g);let w=f.join();e.lng&&(w=`${e.lng}${w}`);const T=UJ(w),E=I.useRef(!0);I.useEffect(()=>{const{bindI18n:C,bindI18nStore:A}=a;E.current=!0,!d&&!l&&(e.lng?QL(s,e.lng,f,()=>{E.current&&y(g)}):XL(s,f,()=>{E.current&&y(g)})),d&&T&&T!==w&&E.current&&y(g);function O(){E.current&&y(g)}return C&&s&&s.on(C,O),A&&s&&s.store.on(A,O),()=>{E.current=!1,C&&s&&C.split(" ").forEach(k=>s.off(k,O)),A&&s&&A.split(" ").forEach(k=>s.store.off(k,O))}},[s,w]);const x=I.useRef(!0);I.useEffect(()=>{E.current&&!x.current&&y(g),x.current=!1},[s,c]);const b=[v,s,d];if(b.t=v,b.i18n=s,b.ready=d,d||!d&&!l)return b;throw new Promise(C=>{e.lng?QL(s,e.lng,f,()=>C()):XL(s,f,()=>C())})}function JL(t){return t!==null&&typeof t=="object"&&"constructor"in t&&t.constructor===Object}function s1(t,e){t===void 0&&(t={}),e===void 0&&(e={}),Object.keys(e).forEach(n=>{typeof t[n]>"u"?t[n]=e[n]:JL(e[n])&&JL(t[n])&&Object.keys(e[n]).length>0&&s1(t[n],e[n])})}const R$={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function dr(){const t=typeof document<"u"?document:{};return s1(t,R$),t}const HJ={document:R$,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(t){return typeof setTimeout>"u"?(t(),null):setTimeout(t,0)},cancelAnimationFrame(t){typeof setTimeout>"u"||clearTimeout(t)}};function an(){const t=typeof window<"u"?window:{};return s1(t,HJ),t}function ko(t){return t===void 0&&(t=""),t.trim().split(" ").filter(e=>!!e.trim())}function WJ(t){const e=t;Object.keys(e).forEach(n=>{try{e[n]=null}catch{}try{delete e[n]}catch{}})}function cl(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function ui(){return Date.now()}function VJ(t){const e=an();let n;return e.getComputedStyle&&(n=e.getComputedStyle(t,null)),!n&&t.currentStyle&&(n=t.currentStyle),n||(n=t.style),n}function kx(t,e){e===void 0&&(e="x");const n=an();let r,i,s;const a=VJ(t);return n.WebKitCSSMatrix?(i=a.transform||a.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map(l=>l.replace(",",".")).join(", ")),s=new n.WebKitCSSMatrix(i==="none"?"":i)):(s=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=s.toString().split(",")),e==="x"&&(n.WebKitCSSMatrix?i=s.m41:r.length===16?i=parseFloat(r[12]):i=parseFloat(r[4])),e==="y"&&(n.WebKitCSSMatrix?i=s.m42:r.length===16?i=parseFloat(r[13]):i=parseFloat(r[5])),i||0}function Pf(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function KJ(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function Dr(){const t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let n=1;n<arguments.length;n+=1){const r=n<0||arguments.length<=n?void 0:arguments[n];if(r!=null&&!KJ(r)){const i=Object.keys(Object(r)).filter(s=>e.indexOf(s)<0);for(let s=0,a=i.length;s<a;s+=1){const l=i[s],c=Object.getOwnPropertyDescriptor(r,l);c!==void 0&&c.enumerable&&(Pf(t[l])&&Pf(r[l])?r[l].__swiper__?t[l]=r[l]:Dr(t[l],r[l]):!Pf(t[l])&&Pf(r[l])?(t[l]={},r[l].__swiper__?t[l]=r[l]:Dr(t[l],r[l])):t[l]=r[l])}}}return t}function Rf(t,e,n){t.style.setProperty(e,n)}function M$(t){let{swiper:e,targetPosition:n,side:r}=t;const i=an(),s=-e.translate;let a=null,l;const c=e.params.speed;e.wrapperEl.style.scrollSnapType="none",i.cancelAnimationFrame(e.cssModeFrameID);const f=n>s?"next":"prev",d=(v,y)=>f==="next"&&v>=y||f==="prev"&&v<=y,g=()=>{l=new Date().getTime(),a===null&&(a=l);const v=Math.max(Math.min((l-a)/c,1),0),y=.5-Math.cos(v*Math.PI)/2;let w=s+y*(n-s);if(d(w,n)&&(w=n),e.wrapperEl.scrollTo({[r]:w}),d(w,n)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[r]:w})}),i.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=i.requestAnimationFrame(g)};g()}function xl(t){return t.querySelector(".swiper-slide-transform")||t.shadowRoot&&t.shadowRoot.querySelector(".swiper-slide-transform")||t}function $n(t,e){return e===void 0&&(e=""),[...t.children].filter(n=>n.matches(e))}function tm(t){try{console.warn(t);return}catch{}}function Fr(t,e){e===void 0&&(e=[]);const n=document.createElement(t);return n.classList.add(...Array.isArray(e)?e:ko(e)),n}function nm(t){const e=an(),n=dr(),r=t.getBoundingClientRect(),i=n.body,s=t.clientTop||i.clientTop||0,a=t.clientLeft||i.clientLeft||0,l=t===e?e.scrollY:t.scrollTop,c=t===e?e.scrollX:t.scrollLeft;return{top:r.top+l-s,left:r.left+c-a}}function qJ(t,e){const n=[];for(;t.previousElementSibling;){const r=t.previousElementSibling;e?r.matches(e)&&n.push(r):n.push(r),t=r}return n}function GJ(t,e){const n=[];for(;t.nextElementSibling;){const r=t.nextElementSibling;e?r.matches(e)&&n.push(r):n.push(r),t=r}return n}function Fo(t,e){return an().getComputedStyle(t,null).getPropertyValue(e)}function xd(t){let e=t,n;if(e){for(n=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(n+=1);return n}}function Ja(t,e){const n=[];let r=t.parentElement;for(;r;)e?r.matches(e)&&n.push(r):n.push(r),r=r.parentElement;return n}function qf(t,e){function n(r){r.target===t&&(e.call(t,r),t.removeEventListener("transitionend",n))}e&&t.addEventListener("transitionend",n)}function Lx(t,e,n){const r=an();return n?t[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom")):t.offsetWidth}function mt(t){return(Array.isArray(t)?t:[t]).filter(e=>!!e)}let d0;function YJ(){const t=an(),e=dr();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function D$(){return d0||(d0=YJ()),d0}let p0;function XJ(t){let{userAgent:e}=t===void 0?{}:t;const n=D$(),r=an(),i=r.navigator.platform,s=e||r.navigator.userAgent,a={ios:!1,android:!1},l=r.screen.width,c=r.screen.height,f=s.match(/(Android);?[\s\/]+([\d.]+)?/);let d=s.match(/(iPad).*OS\s([\d_]+)/);const g=s.match(/(iPod)(.*OS\s([\d_]+))?/),v=!d&&s.match(/(iPhone\sOS|iOS)\s([\d_]+)/),y=i==="Win32";let w=i==="MacIntel";const T=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];
vendor: 4,119 bytes, line 59
59return!d&&w&&n.touch&&T.indexOf(`${l}x${c}`)>=0&&(d=s.match(/(Version)\/([\d.]+)/),d||(d=[0,1,"13_0_0"]),w=!1),f&&!y&&(a.os="android",a.android=!0),(d||v||g)&&(a.os="ios",a.ios=!0),a}function N$(t){return t===void 0&&(t={}),p0||(p0=XJ(t)),p0}let h0;function QJ(){const t=an(),e=N$();let n=!1;function r(){const l=t.navigator.userAgent.toLowerCase();return l.indexOf("safari")>=0&&l.indexOf("chrome")<0&&l.indexOf("android")<0}if(r()){const l=String(t.navigator.userAgent);if(l.includes("Version/")){const[c,f]=l.split("Version/")[1].split(" ")[0].split(".").map(d=>Number(d));n=c<16||c===16&&f<2}}const i=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),s=r(),a=s||i&&e.ios;return{isSafari:n||s,needPerspectiveFix:n,need3dFix:a,isWebView:i}}function JJ(){return h0||(h0=QJ()),h0}function ZJ(t){let{swiper:e,on:n,emit:r}=t;const i=an();let s=null,a=null;const l=()=>{!e||e.destroyed||!e.initialized||(r("beforeResize"),r("resize"))},c=()=>{!e||e.destroyed||!e.initialized||(s=new ResizeObserver(g=>{a=i.requestAnimationFrame(()=>{const{width:v,height:y}=e;let w=v,T=y;g.forEach(E=>{let{contentBoxSize:x,contentRect:b,target:C}=E;C&&C!==e.el||(w=b?b.width:(x[0]||x).inlineSize,T=b?b.height:(x[0]||x).blockSize)}),(w!==v||T!==y)&&l()})}),s.observe(e.el))},f=()=>{a&&i.cancelAnimationFrame(a),s&&s.unobserve&&e.el&&(s.unobserve(e.el),s=null)},d=()=>{!e||e.destroyed||!e.initialized||r("orientationchange")};n("init",()=>{if(e.params.resizeObserver&&typeof i.ResizeObserver<"u"){c();return}i.addEventListener("resize",l),i.addEventListener("orientationchange",d)}),n("destroy",()=>{f(),i.removeEventListener("resize",l),i.removeEventListener("orientationchange",d)})}function eZ(t){let{swiper:e,extendParams:n,on:r,emit:i}=t;const s=[],a=an(),l=function(d,g){g===void 0&&(g={});const v=a.MutationObserver||a.WebkitMutationObserver,y=new v(w=>{if(e.__preventObserver__)return;if(w.length===1){i("observerUpdate",w[0]);return}const T=function(){i("observerUpdate",w[0])};a.requestAnimationFrame?a.requestAnimationFrame(T):a.setTimeout(T,0)});y.observe(d,{attributes:typeof g.attributes>"u"?!0:g.attributes,childList:typeof g.childList>"u"?!0:g.childList,characterData:typeof g.characterData>"u"?!0:g.characterData}),s.push(y)},c=()=>{if(e.params.observer){if(e.params.observeParents){const d=Ja(e.hostEl);for(let g=0;g<d.length;g+=1)l(d[g])}l(e.hostEl,{childList:e.params.observeSlideChildren}),l(e.wrapperEl,{attributes:!1})}},f=()=>{s.forEach(d=>{d.disconnect()}),s.splice(0,s.length)};n({observer:!1,observeParents:!1,observeSlideChildren:!1}),r("init",c),r("destroy",f)}var tZ={on(t,e,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof e!="function")return r;const i=n?"unshift":"push";return t.split(" ").forEach(s=>{r.eventsListeners[s]||(r.eventsListeners[s]=[]),r.eventsListeners[s][i](e)}),r},once(t,e,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof e!="function")return r;function i(){r.off(t,i),i.__emitterProxy&&delete i.__emitterProxy;for(var s=arguments.length,a=new Array(s),l=0;l<s;l++)a[l]=arguments[l];e.apply(r,a)}return i.__emitterProxy=e,r.on(t,i,n)},onAny(t,e){const n=this;if(!n.eventsListeners||n.destroyed||typeof t!="function")return n;const r=e?"unshift":"push";return n.eventsAnyListeners.indexOf(t)<0&&n.eventsAnyListeners[r](t),n},offAny(t){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsAnyListeners)return e;const n=e.eventsAnyListeners.indexOf(t);return n>=0&&e.eventsAnyListeners.splice(n,1),e},off(t,e){const n=this;return!n.eventsListeners||n.destroyed||!n.eventsListeners||t.split(" ").forEach(r=>{typeof e>"u"?n.eventsListeners[r]=[]:n.eventsListeners[r]&&n.eventsListeners[r].forEach((i,s)=>{(i===e||i.__emitterProxy&&i.__emitterProxy===e)&&n.eventsListeners[r].splice(s,1)})}),n},emit(){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let e,n,r;for(var i=arguments.length,s=new Array(i),a=0;a<i;a++)s[a]=arguments[a];return typeof s[0]=="string"||Array.isArray(s[0])?(e=s[0],n=s.slice(1,s.length),r=t):(e=s[0].events,n=s[0].data,r=s[0].context||t),n.unshift(r),(Array.isArray(e)?e:e.split(" ")).forEac
vendor: 4,182 bytes, line 59
59h(c=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(f=>{f.apply(r,[c,...n])}),t.eventsListeners&&t.eventsListeners[c]&&t.eventsListeners[c].forEach(f=>{f.apply(r,n)})}),t}};function nZ(){const t=this;let e,n;const r=t.el;typeof t.params.width<"u"&&t.params.width!==null?e=t.params.width:e=r.clientWidth,typeof t.params.height<"u"&&t.params.height!==null?n=t.params.height:n=r.clientHeight,!(e===0&&t.isHorizontal()||n===0&&t.isVertical())&&(e=e-parseInt(Fo(r,"padding-left")||0,10)-parseInt(Fo(r,"padding-right")||0,10),n=n-parseInt(Fo(r,"padding-top")||0,10)-parseInt(Fo(r,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(n)&&(n=0),Object.assign(t,{width:e,height:n,size:t.isHorizontal()?e:n}))}function rZ(){const t=this;function e(W,H){return parseFloat(W.getPropertyValue(t.getDirectionLabel(H))||0)}const n=t.params,{wrapperEl:r,slidesEl:i,size:s,rtlTranslate:a,wrongRTL:l}=t,c=t.virtual&&n.virtual.enabled,f=c?t.virtual.slides.length:t.slides.length,d=$n(i,`.${t.params.slideClass}, swiper-slide`),g=c?t.virtual.slides.length:d.length;let v=[];const y=[],w=[];let T=n.slidesOffsetBefore;typeof T=="function"&&(T=n.slidesOffsetBefore.call(t));let E=n.slidesOffsetAfter;typeof E=="function"&&(E=n.slidesOffsetAfter.call(t));const x=t.snapGrid.length,b=t.slidesGrid.length;let C=n.spaceBetween,A=-T,O=0,k=0;if(typeof s>"u")return;typeof C=="string"&&C.indexOf("%")>=0?C=parseFloat(C.replace("%",""))/100*s:typeof C=="string"&&(C=parseFloat(C)),t.virtualSize=-C,d.forEach(W=>{a?W.style.marginLeft="":W.style.marginRight="",W.style.marginBottom="",W.style.marginTop=""}),n.centeredSlides&&n.cssMode&&(Rf(r,"--swiper-centered-offset-before",""),Rf(r,"--swiper-centered-offset-after",""));const R=n.grid&&n.grid.rows>1&&t.grid;R?t.grid.initSlides(d):t.grid&&t.grid.unsetSlides();let $;const j=n.slidesPerView==="auto"&&n.breakpoints&&Object.keys(n.breakpoints).filter(W=>typeof n.breakpoints[W].slidesPerView<"u").length>0;for(let W=0;W<g;W+=1){$=0;let H;if(d[W]&&(H=d[W]),R&&t.grid.updateSlide(W,H,d),!(d[W]&&Fo(H,"display")==="none")){if(n.slidesPerView==="auto"){j&&(d[W].style[t.getDirectionLabel("width")]="");const V=getComputedStyle(H),F=H.style.transform,z=H.style.webkitTransform;if(F&&(H.style.transform="none"),z&&(H.style.webkitTransform="none"),n.roundLengths)$=t.isHorizontal()?Lx(H,"width",!0):Lx(H,"height",!0);else{const M=e(V,"width"),q=e(V,"padding-left"),U=e(V,"padding-right"),B=e(V,"margin-left"),Y=e(V,"margin-right"),Z=V.getPropertyValue("box-sizing");if(Z&&Z==="border-box")$=M+B+Y;else{const{clientWidth:fe,offsetWidth:K}=H;$=M+q+U+B+Y+(K-fe)}}F&&(H.style.transform=F),z&&(H.style.webkitTransform=z),n.roundLengths&&($=Math.floor($))}else $=(s-(n.slidesPerView-1)*C)/n.slidesPerView,n.roundLengths&&($=Math.floor($)),d[W]&&(d[W].style[t.getDirectionLabel("width")]=`${$}px`);d[W]&&(d[W].swiperSlideSize=$),w.push($),n.centeredSlides?(A=A+$/2+O/2+C,O===0&&W!==0&&(A=A-s/2-C),W===0&&(A=A-s/2-C),Math.abs(A)<1/1e3&&(A=0),n.roundLengths&&(A=Math.floor(A)),k%n.slidesPerGroup===0&&v.push(A),y.push(A)):(n.roundLengths&&(A=Math.floor(A)),(k-Math.min(t.params.slidesPerGroupSkip,k))%t.params.slidesPerGroup===0&&v.push(A),y.push(A),A=A+$+C),t.virtualSize+=$+C,O=$,k+=1}}if(t.virtualSize=Math.max(t.virtualSize,s)+E,a&&l&&(n.effect==="slide"||n.effect==="coverflow")&&(r.style.width=`${t.virtualSize+C}px`),n.setWrapperSize&&(r.style[t.getDirectionLabel("width")]=`${t.virtualSize+C}px`),R&&t.grid.updateWrapperSize($,v),!n.centeredSlides){const W=[];for(let H=0;H<v.length;H+=1){let V=v[H];n.roundLengths&&(V=Math.floor(V)),v[H]<=t.virtualSize-s&&W.push(V)}v=W,Math.floor(t.virtualSize-s)-Math.floor(v[v.length-1])>1&&v.push(t.virtualSize-s)}if(c&&n.loop){const W=w[0]+C;if(n.slidesPerGroup>1){const H=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/n.slidesPerGroup),V=W*n.slidesPerGroup;for(let F=0;F<H;F+=1)v.push(v[v.length-1]+V)}for(let H=0;H<t.virtual.slidesBefore+t.virtual.slidesAfter;H+=1)n.slidesPerGroup===1&&v.push(v[v.length-1]+W),y.push(y[y.length-1]+W),t.virtualSize+=W}if(v.length===0&&(v=[0]),C!==0){const W=t.isHorizontal()&&a?"marginLeft":t.getDirectionLabel("marginRight");d.filter((H,V)=>
vendor: 7,910 bytes, line 59
59!n.cssMode||n.loop?!0:V!==d.length-1).forEach(H=>{H.style[W]=`${C}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let W=0;w.forEach(V=>{W+=V+(C||0)}),W-=C;const H=W-s;v=v.map(V=>V<=0?-T:V>H?H+E:V)}if(n.centerInsufficientSlides){let W=0;if(w.forEach(H=>{W+=H+(C||0)}),W-=C,W<s){const H=(s-W)/2;v.forEach((V,F)=>{v[F]=V-H}),y.forEach((V,F)=>{y[F]=V+H})}}if(Object.assign(t,{slides:d,snapGrid:v,slidesGrid:y,slidesSizesGrid:w}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){Rf(r,"--swiper-centered-offset-before",`${-v[0]}px`),Rf(r,"--swiper-centered-offset-after",`${t.size/2-w[w.length-1]/2}px`);const W=-t.snapGrid[0],H=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(V=>V+W),t.slidesGrid=t.slidesGrid.map(V=>V+H)}if(g!==f&&t.emit("slidesLengthChange"),v.length!==x&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),y.length!==b&&t.emit("slidesGridLengthChange"),n.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!c&&!n.cssMode&&(n.effect==="slide"||n.effect==="fade")){const W=`${n.containerModifierClass}backface-hidden`,H=t.el.classList.contains(W);g<=n.maxBackfaceHiddenSlides?H||t.el.classList.add(W):H&&t.el.classList.remove(W)}}function iZ(t){const e=this,n=[],r=e.virtual&&e.params.virtual.enabled;let i=0,s;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);const a=l=>r?e.slides[e.getSlideIndexByData(l)]:e.slides[l];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(l=>{n.push(l)});else for(s=0;s<Math.ceil(e.params.slidesPerView);s+=1){const l=e.activeIndex+s;if(l>e.slides.length&&!r)break;n.push(a(l))}else n.push(a(e.activeIndex));for(s=0;s<n.length;s+=1)if(typeof n[s]<"u"){const l=n[s].offsetHeight;i=l>i?l:i}(i||i===0)&&(e.wrapperEl.style.height=`${i}px`)}function sZ(){const t=this,e=t.slides,n=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let r=0;r<e.length;r+=1)e[r].swiperSlideOffset=(t.isHorizontal()?e[r].offsetLeft:e[r].offsetTop)-n-t.cssOverflowAdjustment()}function oZ(t){t===void 0&&(t=this&&this.translate||0);const e=this,n=e.params,{slides:r,rtlTranslate:i,snapGrid:s}=e;if(r.length===0)return;typeof r[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let a=-t;i&&(a=t),r.forEach(c=>{c.classList.remove(n.slideVisibleClass,n.slideFullyVisibleClass)}),e.visibleSlidesIndexes=[],e.visibleSlides=[];let l=n.spaceBetween;typeof l=="string"&&l.indexOf("%")>=0?l=parseFloat(l.replace("%",""))/100*e.size:typeof l=="string"&&(l=parseFloat(l));for(let c=0;c<r.length;c+=1){const f=r[c];let d=f.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(d-=r[0].swiperSlideOffset);const g=(a+(n.centeredSlides?e.minTranslate():0)-d)/(f.swiperSlideSize+l),v=(a-s[0]+(n.centeredSlides?e.minTranslate():0)-d)/(f.swiperSlideSize+l),y=-(a-d),w=y+e.slidesSizesGrid[c],T=y>=0&&y<=e.size-e.slidesSizesGrid[c];(y>=0&&y<e.size-1||w>1&&w<=e.size||y<=0&&w>=e.size)&&(e.visibleSlides.push(f),e.visibleSlidesIndexes.push(c),r[c].classList.add(n.slideVisibleClass)),T&&r[c].classList.add(n.slideFullyVisibleClass),f.progress=i?-g:g,f.originalProgress=i?-v:v}}function aZ(t){const e=this;if(typeof t>"u"){const d=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*d||0}const n=e.params,r=e.maxTranslate()-e.minTranslate();let{progress:i,isBeginning:s,isEnd:a,progressLoop:l}=e;const c=s,f=a;if(r===0)i=0,s=!0,a=!0;else{i=(t-e.minTranslate())/r;const d=Math.abs(t-e.minTranslate())<1,g=Math.abs(t-e.maxTranslate())<1;s=d||i<=0,a=g||i>=1,d&&(i=0),g&&(i=1)}if(n.loop){const d=e.getSlideIndexByData(0),g=e.getSlideIndexByData(e.slides.length-1),v=e.slidesGrid[d],y=e.slidesGrid[g],w=e.slidesGrid[e.slidesGrid.length-1],T=Math.abs(t);T>=v?l=(T-v)/w:l=(T+w-y)/w,l>1&&(l-=1)}Object.assign(e,{progress:i,progressLoop:l,isBeginning:s,isEnd:a}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&e.updateSlidesProgress(t),s&&!c&&e.emit("reachBeginning toEdge"),a&&!f&&e.emit("reachEnd toEdge"),(c&&!s||f&&!a)&&e.emit("fromEdge"),e.emit("progress",i)}function lZ(){const t=this,{slides:e,params:n,slidesEl:r,activeIndex:i}=t,s=t.virtual&&n.virtual.enabled,a=t.grid&&n.grid&&n.grid.rows>1,l=g=>$n(r,`.${n.slideClass}${g}, swiper-slide${g}`)[0];e.forEach(g=>{g.classList.remove(n.slideActiveClass,n.slideNextClass,n.slidePrevClass)});let c,f,d;if(s)if(n.loop){let g=i-t.virtual.slidesBefore;g<0&&(g=t.virtual.slides.length+g),g>=t.virtual.slides.length&&(g-=t.virtual.slides.length),c=l(`[data-swiper-slide-index="${g}"]`)}else c=l(`[data-swiper-slide-index="${i}"]`);else a?(c=e.filter(g=>g.column===i)[0],d=e.filter(g=>g.column===i+1)[0],f=e.filter(g=>g.column===i-1)[0]):c=e[i];c&&(c.classList.add(n.slideActiveClass),a?(d&&d.classList.add(n.slideNextClass),f&&f.classList.add(n.slidePrevClass)):(d=GJ(c,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!d&&(d=e[0]),d&&d.classList.add(n.slideNextClass),f=qJ(c,`.${n.slideClass}, swiper-slide`)[0],n.loop&&!f===0&&(f=e[e.length-1]),f&&f.classList.add(n.slidePrevClass))),t.emitSlidesClasses()}const qh=(t,e)=>{if(!t||t.destroyed||!t.params)return;const n=()=>t.isElement?"swiper-slide":`.${t.params.slideClass}`,r=e.closest(n());if(r){let i=r.querySelector(`.${t.params.lazyPreloaderClass}`);!i&&t.isElement&&(r.shadowRoot?i=r.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{r.shadowRoot&&(i=r.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),i&&i.remove())})),i&&i.remove()}},g0=(t,e)=>{if(!t.slides[e])return;const n=t.slides[e].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},Ox=t=>{if(!t||t.destroyed||!t.params)return;let e=t.params.lazyPreloadPrevNext;const n=t.slides.length;if(!n||!e||e<0)return;e=Math.min(e,n);const r=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),i=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const a=i,l=[a-e];l.push(...Array.from({length:e}).map((c,f)=>a+r+f)),t.slides.forEach((c,f)=>{l.includes(c.column)&&g0(t,f)});return}const s=i+r-1;if(t.params.rewind||t.params.loop)for(let a=i-e;a<=s+e;a+=1){const l=(a%n+n)%n;(l<i||l>s)&&g0(t,l)}else for(let a=Math.max(i-e,0);a<=Math.min(s+e,n-1);a+=1)a!==i&&(a>s||a<i)&&g0(t,a)};function uZ(t){const{slidesGrid:e,params:n}=t,r=t.rtlTranslate?t.translate:-t.translate;let i;for(let s=0;s<e.length;s+=1)typeof e[s+1]<"u"?r>=e[s]&&r<e[s+1]-(e[s+1]-e[s])/2?i=s:r>=e[s]&&r<e[s+1]&&(i=s+1):r>=e[s]&&(i=s);return n.normalizeSlideIndex&&(i<0||typeof i>"u")&&(i=0),i}function cZ(t){const e=this,n=e.rtlTranslate?e.translate:-e.translate,{snapGrid:r,params:i,activeIndex:s,realIndex:a,snapIndex:l}=e;let c=t,f;const d=y=>{let w=y-e.virtual.slidesBefore;return w<0&&(w=e.virtual.slides.length+w),w>=e.virtual.slides.length&&(w-=e.virtual.slides.length),w};if(typeof c>"u"&&(c=uZ(e)),r.indexOf(n)>=0)f=r.indexOf(n);else{const y=Math.min(i.slidesPerGroupSkip,c);f=y+Math.floor((c-y)/i.slidesPerGroup)}if(f>=r.length&&(f=r.length-1),c===s&&!e.params.loop){f!==l&&(e.snapIndex=f,e.emit("snapIndexChange"));return}if(c===s&&e.params.loop&&e.virtual&&e.params.virtual.enabled){e.realIndex=d(c);return}const g=e.grid&&i.grid&&i.grid.rows>1;let v;if(e.virtual&&i.virtual.enabled&&i.loop)v=d(c);else if(g){const y=e.slides.filter(T=>T.column===c)[0];let w=parseInt(y.getAttribute("data-swiper-slide-index"),10);Number.isNaN(w)&&(w=Math.max(e.slides.indexOf(y),0)),v=Math.floor(w/i.grid.rows)}else if(e.slides[c]){const y=e.slides[c].getAttribute("data-swiper-slide-index");y?v=parseInt(y,10):v=c}else v=c;Object.assign(e,{previousSnapIndex:l,snapIndex:f,previousRealIndex:a,realIndex:v,previousIndex:s,activeIndex:c}),e.initialized&&Ox(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(a!==v&&e.emit("realIndexChange"),e.emit("slideChange"))}function fZ(t,e){const n=this,r=n.params;let i=t.closest(`.${r.slideClass}, swiper-slide`);!i&&n.isElement&&e&&e.length>
vendor: 7,945 bytes, line 59
591&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(l=>{!i&&l.matches&&l.matches(`.${r.slideClass}, swiper-slide`)&&(i=l)});let s=!1,a;if(i){for(let l=0;l<n.slides.length;l+=1)if(n.slides[l]===i){s=!0,a=l;break}}if(i&&s)n.clickedSlide=i,n.virtual&&n.params.virtual.enabled?n.clickedIndex=parseInt(i.getAttribute("data-swiper-slide-index"),10):n.clickedIndex=a;else{n.clickedSlide=void 0,n.clickedIndex=void 0;return}r.slideToClickedSlide&&n.clickedIndex!==void 0&&n.clickedIndex!==n.activeIndex&&n.slideToClickedSlide()}var dZ={updateSize:nZ,updateSlides:rZ,updateAutoHeight:iZ,updateSlidesOffset:sZ,updateSlidesProgress:oZ,updateProgress:aZ,updateSlidesClasses:lZ,updateActiveIndex:cZ,updateClickedSlide:fZ};function pZ(t){t===void 0&&(t=this.isHorizontal()?"x":"y");const e=this,{params:n,rtlTranslate:r,translate:i,wrapperEl:s}=e;if(n.virtualTranslate)return r?-i:i;if(n.cssMode)return i;let a=kx(s,t);return a+=e.cssOverflowAdjustment(),r&&(a=-a),a||0}function hZ(t,e){const n=this,{rtlTranslate:r,params:i,wrapperEl:s,progress:a}=n;let l=0,c=0;const f=0;n.isHorizontal()?l=r?-t:t:c=t,i.roundLengths&&(l=Math.floor(l),c=Math.floor(c)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?l:c,i.cssMode?s[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-l:-c:i.virtualTranslate||(n.isHorizontal()?l-=n.cssOverflowAdjustment():c-=n.cssOverflowAdjustment(),s.style.transform=`translate3d(${l}px, ${c}px, ${f}px)`);let d;const g=n.maxTranslate()-n.minTranslate();g===0?d=0:d=(t-n.minTranslate())/g,d!==a&&n.updateProgress(t),n.emit("setTranslate",n.translate,e)}function gZ(){return-this.snapGrid[0]}function mZ(){return-this.snapGrid[this.snapGrid.length-1]}function vZ(t,e,n,r,i){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),n===void 0&&(n=!0),r===void 0&&(r=!0);const s=this,{params:a,wrapperEl:l}=s;if(s.animating&&a.preventInteractionOnTransition)return!1;const c=s.minTranslate(),f=s.maxTranslate();let d;if(r&&t>c?d=c:r&&t<f?d=f:d=t,s.updateProgress(d),a.cssMode){const g=s.isHorizontal();if(e===0)l[g?"scrollLeft":"scrollTop"]=-d;else{if(!s.support.smoothScroll)return M$({swiper:s,targetPosition:-d,side:g?"left":"top"}),!0;l.scrollTo({[g?"left":"top"]:-d,behavior:"smooth"})}return!0}return e===0?(s.setTransition(0),s.setTranslate(d),n&&(s.emit("beforeTransitionStart",e,i),s.emit("transitionEnd"))):(s.setTransition(e),s.setTranslate(d),n&&(s.emit("beforeTransitionStart",e,i),s.emit("transitionStart")),s.animating||(s.animating=!0,s.onTranslateToWrapperTransitionEnd||(s.onTranslateToWrapperTransitionEnd=function(v){!s||s.destroyed||v.target===this&&(s.wrapperEl.removeEventListener("transitionend",s.onTranslateToWrapperTransitionEnd),s.onTranslateToWrapperTransitionEnd=null,delete s.onTranslateToWrapperTransitionEnd,n&&s.emit("transitionEnd"))}),s.wrapperEl.addEventListener("transitionend",s.onTranslateToWrapperTransitionEnd))),!0}var yZ={getTranslate:pZ,setTranslate:hZ,minTranslate:gZ,maxTranslate:mZ,translateTo:vZ};function wZ(t,e){const n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${t}ms`,n.wrapperEl.style.transitionDelay=t===0?"0ms":""),n.emit("setTransition",t,e)}function $$(t){let{swiper:e,runCallbacks:n,direction:r,step:i}=t;const{activeIndex:s,previousIndex:a}=e;let l=r;if(l||(s>a?l="next":s<a?l="prev":l="reset"),e.emit(`transition${i}`),n&&s!==a){if(l==="reset"){e.emit(`slideResetTransition${i}`);return}e.emit(`slideChangeTransition${i}`),l==="next"?e.emit(`slideNextTransition${i}`):e.emit(`slidePrevTransition${i}`)}}function bZ(t,e){t===void 0&&(t=!0);const n=this,{params:r}=n;r.cssMode||(r.autoHeight&&n.updateAutoHeight(),$$({swiper:n,runCallbacks:t,direction:e,step:"Start"}))}function xZ(t,e){t===void 0&&(t=!0);const n=this,{params:r}=n;n.animating=!1,!r.cssMode&&(n.setTransition(0),$$({swiper:n,runCallbacks:t,direction:e,step:"End"}))}var SZ={setTransition:wZ,transitionStart:bZ,transitionEnd:xZ};function EZ(t,e,n,r,i){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),n===void 0&&(n=!0),typeof t=="string"&&(t=parseInt(t,10));const s=this;let a=t;a<0&&(a=0);const{params:l,snapGrid:c,slidesGrid:f,previousIndex:d,activeIndex:g,rtlTranslate:v,wrapperEl:y,enabled:w}=s;if(s.animating&&l.preventInteractionOnTransition||!w&&!r&&!i||s.destroyed)return!1;const T=Math.min(s.params.slidesPerGroupSkip,a);let E=T+Math.floor((a-T)/s.params.slidesPerGroup);E>=c.length&&(E=c.length-1);const x=-c[E];if(l.normalizeSlideIndex)for(let C=0;C<f.length;C+=1){const A=-Math.floor(x*100),O=Math.floor(f[C]*100),k=Math.floor(f[C+1]*100);typeof f[C+1]<"u"?A>=O&&A<k-(k-O)/2?a=C:A>=O&&A<k&&(a=C+1):A>=O&&(a=C)}if(s.initialized&&a!==g&&(!s.allowSlideNext&&(v?x>s.translate&&x>s.minTranslate():x<s.translate&&x<s.minTranslate())||!s.allowSlidePrev&&x>s.translate&&x>s.maxTranslate()&&(g||0)!==a))return!1;a!==(d||0)&&n&&s.emit("beforeSlideChangeStart"),s.updateProgress(x);let b;if(a>g?b="next":a<g?b="prev":b="reset",v&&-x===s.translate||!v&&x===s.translate)return s.updateActiveIndex(a),l.autoHeight&&s.updateAutoHeight(),s.updateSlidesClasses(),l.effect!=="slide"&&s.setTranslate(x),b!=="reset"&&(s.transitionStart(n,b),s.transitionEnd(n,b)),!1;if(l.cssMode){const C=s.isHorizontal(),A=v?x:-x;if(e===0){const O=s.virtual&&s.params.virtual.enabled;O&&(s.wrapperEl.style.scrollSnapType="none",s._immediateVirtual=!0),O&&!s._cssModeVirtualInitialSet&&s.params.initialSlide>0?(s._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{y[C?"scrollLeft":"scrollTop"]=A})):y[C?"scrollLeft":"scrollTop"]=A,O&&requestAnimationFrame(()=>{s.wrapperEl.style.scrollSnapType="",s._immediateVirtual=!1})}else{if(!s.support.smoothScroll)return M$({swiper:s,targetPosition:A,side:C?"left":"top"}),!0;y.scrollTo({[C?"left":"top"]:A,behavior:"smooth"})}return!0}return s.setTransition(e),s.setTranslate(x),s.updateActiveIndex(a),s.updateSlidesClasses(),s.emit("beforeTransitionStart",e,r),s.transitionStart(n,b),e===0?s.transitionEnd(n,b):s.animating||(s.animating=!0,s.onSlideToWrapperTransitionEnd||(s.onSlideToWrapperTransitionEnd=function(A){!s||s.destroyed||A.target===this&&(s.wrapperEl.removeEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.onSlideToWrapperTransitionEnd=null,delete s.onSlideToWrapperTransitionEnd,s.transitionEnd(n,b))}),s.wrapperEl.addEventListener("transitionend",s.onSlideToWrapperTransitionEnd)),!0}function CZ(t,e,n,r){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),n===void 0&&(n=!0),typeof t=="string"&&(t=parseInt(t,10));const i=this;if(i.destroyed)return;const s=i.grid&&i.params.grid&&i.params.grid.rows>1;let a=t;if(i.params.loop)if(i.virtual&&i.params.virtual.enabled)a=a+i.virtual.slidesBefore;else{let l;if(s){const v=a*i.params.grid.rows;l=i.slides.filter(y=>y.getAttribute("data-swiper-slide-index")*1===v)[0].column}else l=i.getSlideIndexByData(a);const c=s?Math.ceil(i.slides.length/i.params.grid.rows):i.slides.length,{centeredSlides:f}=i.params;let d=i.params.slidesPerView;d==="auto"?d=i.slidesPerViewDynamic():(d=Math.ceil(parseFloat(i.params.slidesPerView,10)),f&&d%2===0&&(d=d+1));let g=c-l<d;if(f&&(g=g||l<Math.ceil(d/2)),g){const v=f?l<i.activeIndex?"prev":"next":l-i.activeIndex-1<i.params.slidesPerView?"next":"prev";i.loopFix({direction:v,slideTo:!0,activeSlideIndex:v==="next"?l+1:l-c+1,slideRealIndex:v==="next"?i.realIndex:void 0})}if(s){const v=a*i.params.grid.rows;a=i.slides.filter(y=>y.getAttribute("data-swiper-slide-index")*1===v)[0].column}else a=i.getSlideIndexByData(a)}return requestAnimationFrame(()=>{i.slideTo(a,e,n,r)}),i}function TZ(t,e,n){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0);const r=this,{enabled:i,params:s,animating:a}=r;if(!i||r.destroyed)return r;let l=s.slidesPerGroup;s.slidesPerView==="auto"&&s.slidesPerGroup===1&&s.slidesPerGroupAuto&&(l=Math.max(r.slidesPerViewDynamic("current",!0),1));const c=r.activeIndex<s.slidesPerGroupSkip?1:l,f=r.virtual&&s.virtual.enabled;if(s.loop){if(a&&!f&&s.loopPreventsSliding)return!1;if(r.loopFix({direction:"next"}
59),r._clientLeft=r.wrapperEl.clientLeft,r.activeIndex===r.slides.length-1&&s.cssMode)return requestAnimationFrame(()=>{r.slideTo(r.activeIndex+c,t,e,n)}),!0}return s.rewind&&r.isEnd?r.slideTo(0,t,e,n):r.slideTo(r.activeIndex+c,t,e,n)}function _Z(t,e,n){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0);const r=this,{params:i,snapGrid:s,slidesGrid:a,rtlTranslate:l,enabled:c,animating:f}=r;if(!c||r.destroyed)return r;const d=r.virtual&&i.virtual.enabled;if(i.loop){if(f&&!d&&i.loopPreventsSliding)return!1;r.loopFix({direction:"prev"}),r._clientLeft=r.wrapperEl.clientLeft}const g=l?r.translate:-r.translate;function v(x){return x<0?-Math.floor(Math.abs(x)):Math.floor(x)}const y=v(g),w=s.map(x=>v(x));let T=s[w.indexOf(y)-1];if(typeof T>"u"&&i.cssMode){let x;s.forEach((b,C)=>{y>=b&&(x=C)}),typeof x<"u"&&(T=s[x>0?x-1:x])}let E=0;if(typeof T<"u"&&(E=a.indexOf(T),E<0&&(E=r.activeIndex-1),i.slidesPerView==="auto"&&i.slidesPerGroup===1&&i.slidesPerGroupAuto&&(E=E-r.slidesPerViewDynamic("previous",!0)+1,E=Math.max(E,0))),i.rewind&&r.isBeginning){const x=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(x,t,e,n)}else if(i.loop&&r.activeIndex===0&&i.cssMode)return requestAnimationFrame(()=>{r.slideTo(E,t,e,n)}),!0;return r.slideTo(E,t,e,n)}function AZ(t,e,n){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0);const r=this;if(!r.destroyed)return r.slideTo(r.activeIndex,t,e,n)}function kZ(t,e,n,r){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0),r===void 0&&(r=.5);const i=this;if(i.destroyed)return;let s=i.activeIndex;const a=Math.min(i.params.slidesPerGroupSkip,s),l=a+Math.floor((s-a)/i.params.slidesPerGroup),c=i.rtlTranslate?i.translate:-i.translate;if(c>=i.snapGrid[l]){const f=i.snapGrid[l],d=i.snapGrid[l+1];c-f>(d-f)*r&&(s+=i.params.slidesPerGroup)}else{const f=i.snapGrid[l-1],d=i.snapGrid[l];c-f<=(d-f)*r&&(s-=i.params.slidesPerGroup)}return s=Math.max(s,0),s=Math.min(s,i.slidesGrid.length-1),i.slideTo(s,t,e,n)}function LZ(){const t=this;if(t.destroyed)return;const{params:e,slidesEl:n}=t,r=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let i=t.clickedIndex,s;const a=t.isElement?"swiper-slide":`.${e.slideClass}`;if(e.loop){if(t.animating)return;s=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?i<t.loopedSlides-r/2||i>t.slides.length-t.loopedSlides+r/2?(t.loopFix(),i=t.getSlideIndex($n(n,`${a}[data-swiper-slide-index="${s}"]`)[0]),cl(()=>{t.slideTo(i)})):t.slideTo(i):i>t.slides.length-r?(t.loopFix(),i=t.getSlideIndex($n(n,`${a}[data-swiper-slide-index="${s}"]`)[0]),cl(()=>{t.slideTo(i)})):t.slideTo(i)}else t.slideTo(i)}var OZ={slideTo:EZ,slideToLoop:CZ,slideNext:TZ,slidePrev:_Z,slideReset:AZ,slideToClosest:kZ,slideToClickedSlide:LZ};function IZ(t){const e=this,{params:n,slidesEl:r}=e;if(!n.loop||e.virtual&&e.params.virtual.enabled)return;const i=()=>{$n(r,`.${n.slideClass}, swiper-slide`).forEach((g,v)=>{g.setAttribute("data-swiper-slide-index",v)})},s=e.grid&&n.grid&&n.grid.rows>1,a=n.slidesPerGroup*(s?n.grid.rows:1),l=e.slides.length%a!==0,c=s&&e.slides.length%n.grid.rows!==0,f=d=>{for(let g=0;g<d;g+=1){const v=e.isElement?Fr("swiper-slide",[n.slideBlankClass]):Fr("div",[n.slideClass,n.slideBlankClass]);e.slidesEl.append(v)}};if(l){if(n.loopAddBlankSlides){const d=a-e.slides.length%a;f(d),e.recalcSlides(),e.updateSlides()}else tm("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");i()}else if(c){if(n.loopAddBlankSlides){const d=n.grid.rows-e.slides.length%n.grid.rows;f(d),e.recalcSlides(),e.updateSlides()}else tm("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");i()}else i();e.loopFix({slideRealIndex:t,direction:n.centeredSlides?void 0:"next"})}function PZ(t){let{slideRealIndex:e,slideTo:n=!0,direction:r,setTranslate:i,activeSlideIndex:s,byController:a,byMousewheel:l}=t===void 0?{}:t;const c=this;if(!c.params.loop)return;c.emit("beforeLoopFix");const{slides:f,allowSlidePrev:d,allowSlideNext:g,slidesEl:v,params:y}=c,{centeredSlides:w}=y;if(c.allowSlidePrev=!0,c.allowSlideNext=!0,c.virtual&&y.virtual.enabled){n&&(!y.centeredSlides&&c.snapIndex===0?c.slideTo(c.virtual.slides.length,0,!1,!0):y.centeredSlides&&c.snapIndex<y.slidesPerView?c.slideTo(c.virtual.slides.length+c.snapIndex,0,!1,!0):c.snapIndex===c.snapGrid.length-1&&
vendor: 21,105 bytes, line 59
59c.slideTo(c.virtual.slidesBefore,0,!1,!0)),c.allowSlidePrev=d,c.allowSlideNext=g,c.emit("loopFix");return}let T=y.slidesPerView;T==="auto"?T=c.slidesPerViewDynamic():(T=Math.ceil(parseFloat(y.slidesPerView,10)),w&&T%2===0&&(T=T+1));const E=y.slidesPerGroupAuto?T:y.slidesPerGroup;let x=E;x%E!==0&&(x+=E-x%E),x+=y.loopAdditionalSlides,c.loopedSlides=x;const b=c.grid&&y.grid&&y.grid.rows>1;f.length<T+x?tm("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled and not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):b&&y.grid.fill==="row"&&tm("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const C=[],A=[];let O=c.activeIndex;typeof s>"u"?s=c.getSlideIndex(f.filter(F=>F.classList.contains(y.slideActiveClass))[0]):O=s;const k=r==="next"||!r,R=r==="prev"||!r;let $=0,j=0;const W=b?Math.ceil(f.length/y.grid.rows):f.length,V=(b?f[s].column:s)+(w&&typeof i>"u"?-T/2+.5:0);if(V<x){$=Math.max(x-V,E);for(let F=0;F<x-V;F+=1){const z=F-Math.floor(F/W)*W;if(b){const M=W-z-1;for(let q=f.length-1;q>=0;q-=1)f[q].column===M&&C.push(q)}else C.push(W-z-1)}}else if(V+T>W-x){j=Math.max(V-(W-x*2),E);for(let F=0;F<j;F+=1){const z=F-Math.floor(F/W)*W;b?f.forEach((M,q)=>{M.column===z&&A.push(q)}):A.push(z)}}if(c.__preventObserver__=!0,requestAnimationFrame(()=>{c.__preventObserver__=!1}),R&&C.forEach(F=>{f[F].swiperLoopMoveDOM=!0,v.prepend(f[F]),f[F].swiperLoopMoveDOM=!1}),k&&A.forEach(F=>{f[F].swiperLoopMoveDOM=!0,v.append(f[F]),f[F].swiperLoopMoveDOM=!1}),c.recalcSlides(),y.slidesPerView==="auto"?c.updateSlides():b&&(C.length>0&&R||A.length>0&&k)&&c.slides.forEach((F,z)=>{c.grid.updateSlide(z,F,c.slides)}),y.watchSlidesProgress&&c.updateSlidesOffset(),n){if(C.length>0&&R){if(typeof e>"u"){const F=c.slidesGrid[O],M=c.slidesGrid[O+$]-F;l?c.setTranslate(c.translate-M):(c.slideTo(O+$,0,!1,!0),i&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-M,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-M))}else if(i){const F=b?C.length/y.grid.rows:C.length;c.slideTo(c.activeIndex+F,0,!1,!0),c.touchEventsData.currentTranslate=c.translate}}else if(A.length>0&&k)if(typeof e>"u"){const F=c.slidesGrid[O],M=c.slidesGrid[O-j]-F;l?c.setTranslate(c.translate-M):(c.slideTo(O-j,0,!1,!0),i&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-M,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-M))}else{const F=b?A.length/y.grid.rows:A.length;c.slideTo(c.activeIndex-F,0,!1,!0)}}if(c.allowSlidePrev=d,c.allowSlideNext=g,c.controller&&c.controller.control&&!a){const F={slideRealIndex:e,direction:r,setTranslate:i,activeSlideIndex:s,byController:!0};Array.isArray(c.controller.control)?c.controller.control.forEach(z=>{!z.destroyed&&z.params.loop&&z.loopFix({...F,slideTo:z.params.slidesPerView===y.slidesPerView?n:!1})}):c.controller.control instanceof c.constructor&&c.controller.control.params.loop&&c.controller.control.loopFix({...F,slideTo:c.controller.control.params.slidesPerView===y.slidesPerView?n:!1})}c.emit("loopFix")}function RZ(){const t=this,{params:e,slidesEl:n}=t;if(!e.loop||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const r=[];t.slides.forEach(i=>{const s=typeof i.swiperSlideIndex>"u"?i.getAttribute("data-swiper-slide-index")*1:i.swiperSlideIndex;r[s]=i}),t.slides.forEach(i=>{i.removeAttribute("data-swiper-slide-index")}),r.forEach(i=>{n.append(i)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var MZ={loopCreate:IZ,loopFix:PZ,loopDestroy:RZ};function DZ(t){const e=this;if(!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const n=e.params.touchEventsTarget==="container"?e.el:e.wrapperEl;e.isElement&&(e.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=t?"grabbing":"grab",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1})}function NZ(){const t=this;t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t.isElement&&(t.__preventObserver__=!0),t[t.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1}))}var $Z={setGrabCursor:DZ,unsetGrabCursor:NZ};function FZ(t,e){e===void 0&&(e=this);function n(r){if(!r||r===dr()||r===an())return null;r.assignedSlot&&(r=r.assignedSlot);const i=r.closest(t);return!i&&!r.getRootNode?null:i||n(r.getRootNode().host)}return n(e)}function ZL(t,e,n){const r=an(),{params:i}=t,s=i.edgeSwipeDetection,a=i.edgeSwipeThreshold;return s&&(n<=a||n>=r.innerWidth-a)?s==="prevent"?(e.preventDefault(),!0):!1:!0}function zZ(t){const e=this,n=dr();let r=t;r.originalEvent&&(r=r.originalEvent);const i=e.touchEventsData;if(r.type==="pointerdown"){if(i.pointerId!==null&&i.pointerId!==r.pointerId)return;i.pointerId=r.pointerId}else r.type==="touchstart"&&r.targetTouches.length===1&&(i.touchId=r.targetTouches[0].identifier);if(r.type==="touchstart"){ZL(e,r,r.targetTouches[0].pageX);return}const{params:s,touches:a,enabled:l}=e;if(!l||!s.simulateTouch&&r.pointerType==="mouse"||e.animating&&s.preventInteractionOnTransition)return;!e.animating&&s.cssMode&&s.loop&&e.loopFix();let c=r.target;if(s.touchEventsTarget==="wrapper"&&!e.wrapperEl.contains(c)||"which"in r&&r.which===3||"button"in r&&r.button>0||i.isTouched&&i.isMoved)return;const f=!!s.noSwipingClass&&s.noSwipingClass!=="",d=r.composedPath?r.composedPath():r.path;f&&r.target&&r.target.shadowRoot&&d&&(c=d[0]);const g=s.noSwipingSelector?s.noSwipingSelector:`.${s.noSwipingClass}`,v=!!(r.target&&r.target.shadowRoot);if(s.noSwiping&&(v?FZ(g,c):c.closest(g))){e.allowClick=!0;return}if(s.swipeHandler&&!c.closest(s.swipeHandler))return;a.currentX=r.pageX,a.currentY=r.pageY;const y=a.currentX,w=a.currentY;if(!ZL(e,r,y))return;Object.assign(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=y,a.startY=w,i.touchStartTime=ui(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,s.threshold>0&&(i.allowThresholdMove=!1);let T=!0;c.matches(i.focusableElements)&&(T=!1,c.nodeName==="SELECT"&&(i.isTouched=!1)),n.activeElement&&n.activeElement.matches(i.focusableElements)&&n.activeElement!==c&&n.activeElement.blur();const E=T&&e.allowTouchMove&&s.touchStartPreventDefault;(s.touchStartForcePreventDefault||E)&&!c.isContentEditable&&r.preventDefault(),s.freeMode&&s.freeMode.enabled&&e.freeMode&&e.animating&&!s.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",r)}function BZ(t){const e=dr(),n=this,r=n.touchEventsData,{params:i,touches:s,rtlTranslate:a,enabled:l}=n;if(!l||!i.simulateTouch&&t.pointerType==="mouse")return;let c=t;if(c.originalEvent&&(c=c.originalEvent),c.type==="pointermove"&&(r.touchId!==null||c.pointerId!==r.pointerId))return;let f;if(c.type==="touchmove"){if(f=[...c.changedTouches].filter(k=>k.identifier===r.touchId)[0],!f||f.identifier!==r.touchId)return}else f=c;if(!r.isTouched){r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",c);return}const d=f.pageX,g=f.pageY;if(c.preventedByNestedSwiper){s.startX=d,s.startY=g;return}if(!n.allowTouchMove){c.target.matches(r.focusableElements)||(n.allowClick=!1),r.isTouched&&(Object.assign(s,{startX:d,startY:g,currentX:d,currentY:g}),r.touchStartTime=ui());return}if(i.touchReleaseOnEdges&&!i.loop){if(n.isVertical()){if(g<s.startY&&n.translate<=n.maxTranslate()||g>s.startY&&n.translate>=n.minTranslate()){r.isTouched=!1,r.isMoved=!1;return}}else if(d<s.startX&&n.translate<=n.maxTranslate()||d>s.startX&&n.translate>=n.minTranslate())return}if(e.activeElement&&c.target===e.activeElement&&c.target.matches(r.focusableElements)){r.isMoved=!0,n.allowClick=!1;return}r.allowTouchCallbacks&&n.emit("touchMove",c),s.previousX=s.currentX,s.previousY=s.currentY,s.currentX=d,s.currentY=g;const v=s.currentX-s.startX,y=s.currentY-s.startY;if(n.params.threshold&&Math.sqrt(v**2+y**2)<n.params.threshold)return;if(typeof r.isScrolling>"u"){let k;n.isHorizontal()&&s.currentY===s.startY||n.isVertical()&&s.currentX===s.startX?r.isScrolling=!1:v*v+y*y>=25&&(k=Math.atan2(Math.abs(y),Math.abs(v))*180/Math.PI,r.isScrolling=n.isHorizontal()?k>i.touchAngle:90-k>i.touchAngle)}if(r.isScrolling&&n.emit("touchMoveOpposite",c),typeof r.startMoving>"u"&&(s.currentX!==s.startX||s.currentY!==s.startY)&&(r.startMoving=!0),r.isScrolling){r.isTouched=!1;return}if(!r.startMoving)return;n.allowClick=!1,!i.cssMode&&c.cancelable&&c.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&c.stopPropagation();let w=n.isHorizontal()?v:y,T=n.isHorizontal()?s.currentX-s.previousX:s.currentY-s.previousY;i.oneWayMovement&&(w=Math.abs(w)*(a?1:-1),T=Math.abs(T)*(a?1:-1)),s.diff=w,w*=i.touchRatio,a&&(w=-w,T=-T);const E=n.touchesDirection;n.swipeDirection=w>0?"prev":"next",n.touchesDirection=T>0?"prev":"next";const x=n.params.loop&&!i.cssMode,b=n.touchesDirection==="next"&&n.allowSlideNext||n.touchesDirection==="prev"&&n.allowSlidePrev;if(!r.isMoved){if(x&&b&&n.loopFix({direction:n.swipeDirection}),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const k=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});n.wrapperEl.dispatchEvent(k)}r.allowMomentumBounce=!1,i.grabCursor&&(n.allowSlideNext===!0||n.allowSlidePrev===!0)&&n.setGrabCursor(!0),n.emit("sliderFirstMove",c)}let C;if(new Date().getTime(),r.isMoved&&r.allowThresholdMove&&E!==n.touchesDirection&&x&&b&&Math.abs(w)>=1){Object.assign(s,{startX:d,startY:g,currentX:d,currentY:g,startTranslate:r.currentTranslate}),r.loopSwapReset=!0,r.startTranslate=r.currentTranslate;return}n.emit("sliderMove",c),r.isMoved=!0,r.currentTranslate=w+r.startTranslate;let A=!0,O=i.resistanceRatio;if(i.touchReleaseOnEdges&&(O=0),w>0?(x&&b&&!C&&r.allowThresholdMove&&r.currentTranslate>(i.centeredSlides?n.minTranslate()-n.slidesSizesGrid[n.activeIndex+1]:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>n.minTranslate()&&(A=!1,i.resistance&&(r.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+r.startTranslate+w)**O))):w<0&&(x&&b&&!C&&r.allowThresholdMove&&r.currentTranslate<(i.centeredSlides?n.maxTranslate()+n.slidesSizesGrid[n.slidesSizesGrid.length-1]:n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-(i.slidesPerView==="auto"?n.slidesPerViewDynamic():Math.ceil(parseFloat(i.slidesPerView,10)))}),r.currentTranslate<n.maxTranslate()&&(A=!1,i.resistance&&(r.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-r.startTranslate-w)**O))),A&&(c.preventedByNestedSwiper=!0),!n.allowSlideNext&&n.swipeDirection==="next"&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&n.swipeDirection==="prev"&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&!n.allowSlideNext&&(r.currentTranslate=r.startTranslate),i.threshold>0)if(Math.abs(w)>i.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,r.currentTranslate=r.startTranslate,s.diff=n.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY;return}}else{r.currentTranslate=r.startTranslate;return}!i.followFinger||i.cssMode||((i.freeMode&&i.freeMode.enabled&&n.freeMode||i.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),i.freeMode&&i.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}function jZ(t){const e=this,n=e.touchEventsData;let r=t;r.originalEvent&&(r=r.originalEvent);let i;if(r.type==="touchend"||r.type==="touchcancel"){if(i=[...r.changedTouches].filter(O=>O.identifier===n.touchId)[0],!i||i.identifier!==n.touchId)return}else{if(n.touchId!==null||r.pointerId!==n.pointerId)return;i=r}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(r.type)&&!(["pointercancel","contextmenu"].includes(r.type)&&(e.browser.isSafari||e.browser.isWebView)))return;n.pointerId=null,n.touchId=null;const{params:a,touches:l,rtlTranslate:c,slidesGrid:f,enabled:d}=e;if(!d||!a.simulateTouch&&r.pointerType==="mouse")return;if(n.allowTouchCallbacks&&e.emit("touchEnd",r),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&a.grabCursor&&e.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}a.grabCursor&&n.isMoved&&n.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const g=ui(),v=g-n.touchStartTime;if(e.allowClick){const O=r.path||r.composedPath&&r.composedPath();e.updateClickedSlide(O&&O[0]||r.target,O),e.emit("tap click",r),v<300&&g-n.lastClickTime<300&&e.emit("doubleTap doubleClick",r)}if(n.lastClickTime=ui(),cl(()=>{e.destroyed||(e.allowClick=!0)}),!n.isTouched||!n.isMoved||!e.swipeDirection||l.diff===0&&!n.loopSwapReset||n.currentTranslate===n.startTranslate&&!n.loopSwapReset){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;let y;if(a.followFinger?y=c?e.translate:-e.translate:y=-n.currentTranslate,a.cssMode)return;if(a.freeMode&&a.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:y});return}const w=y>=-e.maxTranslate()&&!e.params.loop;let T=0,E=e.slidesSizesGrid[0];for(let O=0;O<f.length;O+=O<a.slidesPerGroupSkip?1:a.slidesPerGroup){const k=O<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;typeof f[O+k]<"u"?(w||y>=f[O]&&y<f[O+k])&&(T=O,E=f[O+k]-f[O]):(w||y>=f[O])&&(T=O,E=f[f.length-1]-f[f.length-2])}let x=null,b=null;a.rewind&&(e.isBeginning?b=a.virtual&&a.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(x=0));const C=(y-f[T])/E,A=T<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;if(v>a.longSwipesMs){if(!a.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(C>=a.longSwipesRatio?e.slideTo(a.rewind&&e.isEnd?x:T+A):e.slideTo(T)),e.swipeDirection==="prev"&&(C>1-a.longSwipesRatio?e.slideTo(T+A):b!==null&&C<0&&Math.abs(C)>a.longSwipesRatio?e.slideTo(b):e.slideTo(T))}else{if(!a.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(r.target===e.navigation.nextEl||r.target===e.navigation.prevEl)?r.target===e.navigation.nextEl?e.slideTo(T+A):e.slideTo(T):(e.swipeDirection==="next"&&e.slideTo(x!==null?x:T+A),e.swipeDirection==="prev"&&e.slideTo(b!==null?b:T))}}function eO(){const t=this,{params:e,el:n}=t;if(n&&n.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:i,snapGrid:s}=t,a=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const l=a&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!l?t.slideTo(t.slides.length-1,0,!1,!0):t.params.loop&&!a?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&(clearTimeout(t.autoplay.resizeTimeout),t.autoplay.resizeTimeout=setTimeout(()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()},500)),t.allowSlidePrev=i,t.allowSlideNext=r,t.params.watchOverflow&&s!==t.snapGrid&&t.checkOverflow()}function UZ(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function HZ(){const t=this,{wrapperEl:e,rtlTranslate:n,enabled:r}=t;if(!r)return;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-e.scrollLeft:t.translate=-e.scrollTop,t.translate===0&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();let i;const s=t.maxTranslate()-t.minTranslate();s===0?i=0:i=(t.translate-t.minTranslate())/s,i!==t.progress&&t.updateProgress(n?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function WZ(t){const e=this;qh(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}function VZ(){const t=this;t.documentTouchHandlerProceeded||(t.documentTouchHandlerProceeded=!0,t.params.touchReleaseOnEdges&&(t.el.style.touchAction="auto"))}const F$=(t,e)=>{const n=dr(),{params:r,el:i,wrapperEl:s,device:a}=t,l=!!r.nested,c=e==="on"?"addEventListener":"removeEventListener",f=e;n[c]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:l}),i[c]("touchstart",t.onTouchStart,{passive:!1}),i[c]("pointerdown",t.onTouchStart,{passive:!1}),n[c]("touchmove",t.onTouchMove,{passive:!1,capture:l}),n[c]("pointermove",t.onTouchMove,{passive:!1,capture:l}),n[c]("touchend",t.onTouchEnd,{passive:!0}),n[c]("pointerup",t.onTouchEnd,{passive:!0}),n[c]("pointercancel",t.onTouchEnd,{passive:!0}),n[c]("touchcancel",t.onTouchEnd,{passive:!0}),n[c]("pointerout",t.onTouchEnd,{passive:!0}),n[c]("pointerleave",t.onTouchEnd,{passive:!0}),n[c]("contextmenu",t.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&i[c]("click",t.onClick,!0),r.cssMode&&s[c]("scroll",t.onScroll),r.updateOnWindowResize?t[f](a.ios||a.android?"resize orientationchange observerUpdate":"resize observerUpdate",eO,!0):t[f]("observerUpdate",eO,!0),i[c]("load",t.onLoad,{capture:!0})};function KZ(){const t=this,{params:e}=t;t.onTouchStart=zZ.bind(t),t.onTouchMove=BZ.bind(t),t.onTouchEnd=jZ.bind(t),t.onDocumentTouchStart=VZ.bind(t),e.cssMode&&(t.onScroll=HZ.bind(t)),t.onClick=UZ.bind(t),t.onLoad=WZ.bind(t),F$(t,"on")}function qZ(){F$(this,"off")}var GZ={attachEvents:KZ,detachEvents:qZ};const tO=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function YZ(){const t=this,{realIndex:e,initialized:n,params:r,el:i}=t,s=r.breakpoints;if(!s||s&&Object.keys(s).length===0)return;const a=t.getBreakpoint(s,t.params.breakpointsBase,t.el);if(!a||t.currentBreakpoint===a)return;const c=(a in s?s[a]:void 0)||t.originalParams,f=tO(t,r),d=tO(t,c),g=r.enabled;f&&!d?(i.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),t.emitContainerClasses()):!f&&d&&(i.classList.add(`${r.containerModifierClass}grid`),(c.grid.fill&&c.grid.fill==="column"||!c.grid.fill&&r.grid.fill==="column")&&i.classList.add(`${r.containerModifierClass}grid-column`),t.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(x=>{if(typeof c[x]>"u")return;const b=r[x]&&r[x].enabled,C=c[x]&&c[x].enabled;b&&!C&&t[x].disable(),!b&&C&&t[x].enable()});const v=c.direction&&c.direction!==r.direction,y=r.loop&&(c.slidesPerView!==r.slidesPerView||v),w=r.loop;v&&n&&t.changeDirection(),Dr(t.params,c);const T=t.params.enabled,E=t.params.loop;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),g&&!T?t.disable():!g&&T&&t.enable(),t.currentBreakpoint=a,t.emit("_beforeBreakpoint",c),n&&(y?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!w&&E?(t.loopCreate(e),t.updateSlides()):w&&!E&&t.loopDestroy()),t.emit("breakpoint",c)}function XZ(t,e,n){if(e===void 0&&(e="window"),!t||e==="container"&&!n)return;let r=!1;const i=an(),s=e==="window"?i.innerHeight:n.clientHeight,a=Object.keys(t).map(l=>{if(typeof l=="string"&&l.indexOf("@")===0){const c=parseFloat(l.substr(1));return{value:s*c,point:l}}return{value:l,point:l}});a.sort((l,c)=>parseInt(l.value,10)-parseInt(c.value,10));for(let l=0;l<a.length;l+=1){const{point:c,value:f}=a[l];e==="window"?i.matchMedia(`(min-width: ${f}px)`).matches&&(r=c):f<=n.clientWidth&&(r=c)}return r||"max"}var QZ={setBreakpoint:YZ,getBreakpoint:XZ};function JZ(t,e){const n=[];return t.forEach(r=>{typeof r=="object"?Object.keys(r).forEach(i=>{r[i]&&n.push(e+i)}):typeof r=="string"&&n.push(e+r)}),n}function ZZ(){const t=this,{classNames:e,params:n,rtl:r,el:i,device:s}=t,a=JZ(["initialized",n.direction,{"free-mode":t.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:r},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&n.grid.fill==="column"},{android:s.android},{ios:s.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);e.push(...a),i.classList.add(...e),t.emitContainerClasses()}function eee(){const t=this,{el:e,classNames:n}=t;e.classList.remove(...n),t.emitContainerClasses()}var tee={addClasses:ZZ,removeClasses:eee};function nee(){const t=this,{isLocked:e,params:n}=t,{slidesOffsetBefore:r}=n;if(r){const i=t.slides.length-1,s=t.slidesGrid[i]+t.slidesSizesGrid[i]+r*2;t.isLocked=t.size>s}else t.isLocked=t.snapGrid.length===1;n.allowSlideNext===!0&&(t.allowSlideNext=!t.isLocked),n.allowSlidePrev===!0&&(t.allowSlidePrev=!t.isLocked),e&&e!==t.isLocked&&(t.isEnd=!1),e!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock")}var ree={checkOverflow:nee},Ix={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",
vendor: 2,933 bytes, line 59
59spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function iee(t,e){return function(r){r===void 0&&(r={});const i=Object.keys(r)[0],s=r[i];if(typeof s!="object"||s===null){Dr(e,r);return}if(t[i]===!0&&(t[i]={enabled:!0}),i==="navigation"&&t[i]&&t[i].enabled&&!t[i].prevEl&&!t[i].nextEl&&(t[i].auto=!0),["pagination","scrollbar"].indexOf(i)>=0&&t[i]&&t[i].enabled&&!t[i].el&&(t[i].auto=!0),!(i in t&&"enabled"in s)){Dr(e,r);return}typeof t[i]=="object"&&!("enabled"in t[i])&&(t[i].enabled=!0),t[i]||(t[i]={enabled:!1}),Dr(e,r)}}const m0={eventsEmitter:tZ,update:dZ,translate:yZ,transition:SZ,slide:OZ,loop:MZ,grabCursor:$Z,events:GZ,breakpoints:QZ,checkOverflow:ree,classes:tee},v0={};class Rr{constructor(){let e,n;for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];i.length===1&&i[0].constructor&&Object.prototype.toString.call(i[0]).slice(8,-1)==="Object"?n=i[0]:[e,n]=i,n||(n={}),n=Dr({},n),e&&!n.el&&(n.el=e);const a=dr();if(n.el&&typeof n.el=="string"&&a.querySelectorAll(n.el).length>1){const d=[];return a.querySelectorAll(n.el).forEach(g=>{const v=Dr({},n,{el:g});d.push(new Rr(v))}),d}const l=this;l.__swiper__=!0,l.support=D$(),l.device=N$({userAgent:n.userAgent}),l.browser=JJ(),l.eventsListeners={},l.eventsAnyListeners=[],l.modules=[...l.__modules__],n.modules&&Array.isArray(n.modules)&&l.modules.push(...n.modules);const c={};l.modules.forEach(d=>{d({params:n,swiper:l,extendParams:iee(n,c),on:l.on.bind(l),once:l.once.bind(l),off:l.off.bind(l),emit:l.emit.bind(l)})});const f=Dr({},Ix,c);return l.params=Dr({},f,v0,n),l.originalParams=Dr({},l.params),l.passedParams=Dr({}
vendor: 4,263 bytes, line 59
59,n),l.params&&l.params.on&&Object.keys(l.params.on).forEach(d=>{l.on(d,l.params.on[d])}),l.params&&l.params.onAny&&l.onAny(l.params.onAny),Object.assign(l,{enabled:l.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return l.params.direction==="horizontal"},isVertical(){return l.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:l.params.allowSlideNext,allowSlidePrev:l.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:l.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:l.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),l.emit("_swiper"),l.params.init&&l.init(),l}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:n,params:r}=this,i=$n(n,`.${r.slideClass}, swiper-slide`),s=xd(i[0]);return xd(e)-s}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter(n=>n.getAttribute("data-swiper-slide-index")*1===e)[0])}recalcSlides(){const e=this,{slidesEl:n,params:r}=e;e.slides=$n(n,`.${r.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,n){const r=this;e=Math.min(Math.max(e,0),1);const i=r.minTranslate(),a=(r.maxTranslate()-i)*e+i;r.translateTo(a,typeof n>"u"?0:n),r.updateActiveIndex(),r.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const n=e.el.className.split(" ").filter(r=>r.indexOf("swiper")===0||r.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",n.join(" "))}getSlideClasses(e){const n=this;return n.destroyed?"":e.className.split(" ").filter(r=>r.indexOf("swiper-slide")===0||r.indexOf(n.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const n=[];e.slides.forEach(r=>{const i=e.getSlideClasses(r);n.push({slideEl:r,classNames:i}),e.emit("_slideClass",r,i)}),e.emit("_slideClasses",n)}slidesPerViewDynamic(e,n){e===void 0&&(e="current"),n===void 0&&(n=!1);const r=this,{params:i,slides:s,slidesGrid:a,slidesSizesGrid:l,size:c,activeIndex:f}=r;let d=1;if(typeof i.slidesPerView=="number")return i.slidesPerView;if(i.centeredSlides){let g=s[f]?Math.ceil(s[f].swiperSlideSize):0,v;for(let y=f+1;y<s.length;y+=1)s[y]&&!v&&(g+=Math.ceil(s[y].swiperSlideSize),d+=1,g>c&&(v=!0));for(let y=f-1;y>=0;y-=1)s[y]&&!v&&(g+=s[y].swiperSlideSize,d+=1,g>c&&(v=!0))}else if(e==="current")for(let g=f+1;g<s.length;g+=1)(n?a[g]+l[g]-a[f]<c:a[g]-a[f]<c)&&(d+=1);else for(let g=f-1;g>=0;g-=1)a[f]-a[g]<c&&(d+=1);return d}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:n,params:r}=e;r.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(a=>{a.complete&&qh(e,a)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function i(){const a=e.rtlTranslate?e.translate*-1:e.translate,l=Math.min(Math.max(a,e.maxTranslate()),e.minTranslate());e.setTranslate(l),e.updateActiveIndex(),e.updateSlidesClasses()}let s;if(r.freeMode&&r.freeMode.enabled&&!r.cssMode)i(),r.autoHeight&&e.updateAutoHeight();else{if((r.slidesPerView==="auto"||r.slidesPerView>1)&&e.isEnd&&!r.centeredSlides){const a=e.virtual&&r.virtual.enabled?e.virtual.slides:e.slides;s=e.slideTo(a.length-1,0,!1,!0)}else s=e.slideTo(e.activeIndex,0,!1,!0);s||i()}r.watchOverflow&&n!==e.snapGrid&&e.checkOverflow(),e.emit("update")}
vendor: 4,145 bytes, line 59
59changeDirection(e,n){n===void 0&&(n=!0);const r=this,i=r.params.direction;return e||(e=i==="horizontal"?"vertical":"horizontal"),e===i||e!=="horizontal"&&e!=="vertical"||(r.el.classList.remove(`${r.params.containerModifierClass}${i}`),r.el.classList.add(`${r.params.containerModifierClass}${e}`),r.emitContainerClasses(),r.params.direction=e,r.slides.forEach(s=>{e==="vertical"?s.style.width="":s.style.height=""}),r.emit("changeDirection"),n&&r.update()),r}changeLanguageDirection(e){const n=this;n.rtl&&e==="rtl"||!n.rtl&&e==="ltr"||(n.rtl=e==="rtl",n.rtlTranslate=n.params.direction==="horizontal"&&n.rtl,n.rtl?(n.el.classList.add(`${n.params.containerModifierClass}rtl`),n.el.dir="rtl"):(n.el.classList.remove(`${n.params.containerModifierClass}rtl`),n.el.dir="ltr"),n.update())}mount(e){const n=this;if(n.mounted)return!0;let r=e||n.params.el;if(typeof r=="string"&&(r=document.querySelector(r)),!r)return!1;r.swiper=n,r.parentNode&&r.parentNode.host&&r.parentNode.host.nodeName===n.params.swiperElementNodeName.toUpperCase()&&(n.isElement=!0);const i=()=>`.${(n.params.wrapperClass||"").trim().split(" ").join(".")}`;let a=r&&r.shadowRoot&&r.shadowRoot.querySelector?r.shadowRoot.querySelector(i()):$n(r,i())[0];return!a&&n.params.createElements&&(a=Fr("div",n.params.wrapperClass),r.append(a),$n(r,`.${n.params.slideClass}`).forEach(l=>{a.append(l)})),Object.assign(n,{el:r,wrapperEl:a,slidesEl:n.isElement&&!r.parentNode.host.slideSlots?r.parentNode.host:a,hostEl:n.isElement?r.parentNode.host:r,mounted:!0,rtl:r.dir.toLowerCase()==="rtl"||Fo(r,"direction")==="rtl",rtlTranslate:n.params.direction==="horizontal"&&(r.dir.toLowerCase()==="rtl"||Fo(r,"direction")==="rtl"),wrongRTL:Fo(a,"display")==="-webkit-box"}),!0}init(e){const n=this;if(n.initialized||n.mount(e)===!1)return n;n.emit("beforeInit"),n.params.breakpoints&&n.setBreakpoint(),n.addClasses(),n.updateSize(),n.updateSlides(),n.params.watchOverflow&&n.checkOverflow(),n.params.grabCursor&&n.enabled&&n.setGrabCursor(),n.params.loop&&n.virtual&&n.params.virtual.enabled?n.slideTo(n.params.initialSlide+n.virtual.slidesBefore,0,n.params.runCallbacksOnInit,!1,!0):n.slideTo(n.params.initialSlide,0,n.params.runCallbacksOnInit,!1,!0),n.params.loop&&n.loopCreate(),n.attachEvents();const i=[...n.el.querySelectorAll('[loading="lazy"]')];return n.isElement&&i.push(...n.hostEl.querySelectorAll('[loading="lazy"]')),i.forEach(s=>{s.complete?qh(n,s):s.addEventListener("load",a=>{qh(n,a.target)})}),Ox(n),n.initialized=!0,Ox(n),n.emit("init"),n.emit("afterInit"),n}destroy(e,n){e===void 0&&(e=!0),n===void 0&&(n=!0);const r=this,{params:i,el:s,wrapperEl:a,slides:l}=r;return typeof r.params>"u"||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),i.loop&&r.loopDestroy(),n&&(r.removeClasses(),s.removeAttribute("style"),a.removeAttribute("style"),l&&l.length&&l.forEach(c=>{c.classList.remove(i.slideVisibleClass,i.slideFullyVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass),c.removeAttribute("style"),c.removeAttribute("data-swiper-slide-index")})),r.emit("destroy"),Object.keys(r.eventsListeners).forEach(c=>{r.off(c)}),e!==!1&&(r.el.swiper=null,WJ(r)),r.destroyed=!0),null}static extendDefaults(e){Dr(v0,e)}static get extendedDefaults(){return v0}static get defaults(){return Ix}static installModule(e){Rr.prototype.__modules__||(Rr.prototype.__modules__=[]);const n=Rr.prototype.__modules__;typeof e=="function"&&n.indexOf(e)<0&&n.push(e)}static use(e){return Array.isArray(e)?(e.forEach(n=>Rr.installModule(n)),Rr):(Rr.installModule(e),Rr)}}Object.keys(m0).forEach(t=>{Object.keys(m0[t]).forEach(e=>{Rr.prototype[e]=m0[t][e]})});Rr.use([ZJ,eZ]);function see(t){let{swiper:e,extendParams:n,on:r,emit:i}=t;n({virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}});let s;const a=dr();e.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesGrid:[]};const l=a.createElement("div");function c(w,T){const E=e.params.virtual;if(E.cache&&e.virtual.cache[T])return e.virtual.cache[T];let x;return E.renderSlide?(x=E.renderSlide.call(e,w,T),typeof x=="str
59ing"&&(l.innerHTML=x,x=l.children[0])):e.isElement?x=Fr("swiper-slide"):x=Fr("div",e.params.slideClass),x.setAttribute("data-swiper-slide-index",T),E.renderSlide||(x.innerHTML=w),E.cache&&(e.virtual.cache[T]=x),x}function f(w){const{slidesPerView:T,slidesPerGroup:E,centeredSlides:x,loop:b}=e.params,{addSlidesBefore:C,addSlidesAfter:A}=e.params.virtual,{from:O,to:k,slides:R,slidesGrid:$,offset:j}=e.virtual;e.params.cssMode||e.updateActiveIndex();const W=e.activeIndex||0;let H;e.rtlTranslate?H="right":H=e.isHorizontal()?"left":"top";let V,F;x?(V=Math.floor(T/2)+E+A,F=Math.floor(T/2)+E+C):(V=T+(E-1)+A,F=(b?T:E)+C);let z=W-F,M=W+V;b||(z=Math.max(z,0),M=Math.min(M,R.length-1));let q=(e.slidesGrid[z]||0)-(e.slidesGrid[0]||0);b&&W>=F?(z-=F,x||(q+=e.slidesGrid[0])):b&&W<F&&(z=-F,x&&(q+=e.slidesGrid[0])),Object.assign(e.virtual,{from:z,to:M,offset:q,slidesGrid:e.slidesGrid,slidesBefore:F,slidesAfter:V});function U(){e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),i("virtualUpdate")}if(O===z&&k===M&&!w){e.slidesGrid!==$&&q!==j&&e.slides.forEach(N=>{N.style[H]=`${q-Math.abs(e.cssOverflowAdjustment())}px`}),e.updateProgress(),i("virtualUpdate");return}if(e.params.virtual.renderExternal){e.params.virtual.renderExternal.call(e,{offset:q,from:z,to:M,slides:function(){const ie=[];for(let me=z;me<=M;me+=1)ie.push(R[me]);return ie}()}),e.params.virtual.renderExternalUpdate?U():i("virtualUpdate");return}const B=[],Y=[],Z=N=>{let ie=N;return N<0?ie=R.length+N:ie>=R.length&&(ie=ie-R.length),ie};if(w)e.slides.filter(N=>N.matches(`.${e.params.slideClass}, swiper-slide`)).forEach(N=>{N.remove()});else for(let N=O;N<=k;N+=1)if(N<z||N>M){const ie=Z(N);e.slides.filter(me=>me.matches(`.${e.params.slideClass}[data-swiper-slide-index="${ie}"], swiper-slide[data-swiper-slide-index="${ie}"]`)).forEach(me=>{me.remove()})}const fe=b?-R.length:0,K=b?R.length*2:R.length;for(let N=fe;N<K;N+=1)if(N>=z&&N<=M){const ie=Z(N);typeof k>"u"||w?Y.push(ie):(N>k&&Y.push(ie),N<O&&B.push(ie))}if(Y.forEach(N=>{e.slidesEl.append(c(R[N],N))}),b)for(let N=B.length-1;N>=0;N-=1){const ie=B[N];e.slidesEl.prepend(c(R[ie],ie))}else B.sort((N,ie)=>ie-N),B.forEach(N=>{e.slidesEl.prepend(c(R[N],N))});$n(e.slidesEl,".swiper-slide, swiper-slide").forEach(N=>{N.style[H]=`${q-Math.abs(e.cssOverflowAdjustment())}px`}),U()}function d(w){if(typeof w=="object"&&"length"in w)for(let T=0;T<w.length;T+=1)w[T]&&e.virtual.slides.push(w[T]);else e.virtual.slides.push(w);f(!0)}function g(w){const T=e.activeIndex;let E=T+1,x=1;if(Array.isArray(w)){for(let b=0;b<w.length;b+=1)w[b]&&e.virtual.slides.unshift(w[b]);E=T+w.length,x=w.length}else e.virtual.slides.unshift(w);if(e.params.virtual.cache){const b=e.virtual.cache,C={};Object.keys(b).forEach(A=>{const O=b[A],k=O.getAttribute("data-swiper-slide-index");k&&O.setAttribute("data-swiper-slide-index",parseInt(k,10)+x),C[parseInt(A,10)+x]=O}),e.virtual.cache=C}f(!0),e.slideTo(E,0)}function v(w){if(typeof w>"u"||w===null)return;let T=e.activeIndex;if(Array.isArray(w))for(let E=w.length-1;E>=0;E-=1)e.params.virtual.cache&&(delete e.virtual.cache[w[E]],Object.keys(e.virtual.cache).forEach(x=>{x>w&&(e.virtual.cache[x-1]=e.virtual.cache[x],e.virtual.cache[x-1].setAttribute("data-swiper-slide-index",x-1),delete e.virtual.cache[x])})),e.virtual.slides.splice(w[E],1),w[E]<T&&(T-=1),T=Math.max(T,0);else e.params.virtual.cache&&(delete e.virtual.cache[w],Object.keys(e.virtual.cache).forEach(E=>{E>w&&(e.virtual.cache[E-1]=e.virtual.cache[E],e.virtual.cache[E-1].setAttribute("data-swiper-slide-index",E-1),delete e.virtual.cache[E])})),e.virtual.slides.splice(w,1),w<T&&(T-=1),T=Math.max(T,0);f(!0),e.slideTo(T,0)}function y(){e.virtual.slides=[],e.params.virtual.cache&&(e.virtual.cache={}),f(!0),e.slideTo(0,0)}r("beforeInit",()=>{if(!e.params.virtual.enabled)return;let w;if(typeof e.passedParams.virtual.slides>"u"){const T=[...e.slidesEl.children].filter(E=>E.matches(`.${e.params.slideClass}, swiper-slide`));T&&T.length&&(e.virtual.slides=[...T],w=!0,T.forEach((E,x)=>{E.setAttribute("data-swiper-slide-index",x),e.virtual.cache[x]=E,E.remove()}))}w||(e.virtual.slides=e.params.virtual.slides),e.classNames.push(`${e.params.containerModifierClass}virtual`),e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0,f()}),r("setTranslate",()=>{e.params.virtual.enabled&&(e.params.cssMode&&!e._immediateVirtual?(clearTimeout(s),s=setTimeout(()=>{f()},100)):f())}),r("init update resize",()=>{e.params.virtual.enabled&&e.params.cssMode&&Rf(e.wrapperEl,"--swiper-virtual-size",`${e.virtualSize}px`)}),Object.assign(e.virtual,{appendSlide:d,prependSlide:g,removeSlide:v,removeAllSlides:y,update:f})}function oee(t){let{swiper:e,extendParams:n,on:r,emit:i}=t;const s=dr(),a=an();e.keyboard={enabled:!1},n({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function l(d){if(!e.enabled)return;const{rtlTranslate:g}=e;let v=d;v.originalEvent&&(v=v.originalEvent);const y=v.keyCode||v.charCode,w=e.params.keyboard.pageUpDown,T=w&&y===33,E=w&&y===34,x=y===37,b=y===39,C=y===38,A=y===40;if(!e.allowSlideNext&&(e.isHorizontal()&&b||e.isVertical()&&A||E)||!e.allowSlidePrev&&(e.isHorizontal()&&x||e.isVertical()&&C||T))return!1;if(!(v.shiftKey||v.altKey||v.ctrlKey||v.metaKey)&&!(s.activeElement&&s.activeElement.nodeName&&(s.activeElement.nodeName.toLowerCase()==="input"||s.activeElement.nodeName.toLowerCase()==="textarea"))){if(e.params.keyboard.onlyInViewport&&(T||E||x||b||C||A)){let O=!1;if(Ja(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&Ja(e.el,`.${e.params.slideActiveClass}`).length===0)return;const k=e.el,R=k.clientWidth,$=k.clientHeight,j=a.innerWidth,W=a.innerHeight,H=nm(k);g&&(H.left-=k.scrollLeft);const V=[[H.left,H.top],[H.left+R,H.top],[H.left,H.top+$],[H.left+R,H.top+$]];for(let F=0;F<V.length;F+=1){const z=V[F];if(z[0]>=0&&z[0]<=j&&z[1]>=0&&z[1]<=W){if(z[0]===0&&z[1]===0)continue;O=!0}}if(!O)return}e.isHorizontal()?((T||E||x||b)&&(v.preventDefault?v.preventDefault():v.returnValue=!1),((E||b)&&!g||(T||x)&&g)&&e.slideNext(),((T||x)&&!g||(E||b)&&g)&&e.slidePrev()):((T||E||C||A)&&(v.preventDefault?v.preventDefault():v.returnValue=!1),(E||A)&&e.slideNext(),(T||C)&&e.slidePrev()),i("keyPress",y)}}function c(){e.keyboard.enabled||(s.addEventListener("keydown",l),e.keyboard.enabled=!0)}function f(){e.keyboard.enabled&&(s.removeEventListener("keydown",l),e.keyboard.enabled=!1)}r("init",()=>{e.params.keyboard.enabled&&c()}),r("destroy",()=>{e.keyboard.enabled&&f()}),Object.assign(e.keyboard,{enable:c,disable:f})}function aee(t){let{swiper:e,extendParams:n,on:r,emit:i}=t;const s=an();n({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),e.mousewheel={enabled:!1};let a,l=ui(),c;const f=[];function d(C){let R=0,$=0,j=0,W=0;return"detail"in C&&($=C.detail),"wheelDelta"in C&&($=-C.wheelDelta/120),"wheelDeltaY"in C&&($=-C.wheelDeltaY/120
vendor: 4,294 bytes, line 59
59),"wheelDeltaX"in C&&(R=-C.wheelDeltaX/120),"axis"in C&&C.axis===C.HORIZONTAL_AXIS&&(R=$,$=0),j=R*10,W=$*10,"deltaY"in C&&(W=C.deltaY),"deltaX"in C&&(j=C.deltaX),C.shiftKey&&!j&&(j=W,W=0),(j||W)&&C.deltaMode&&(C.deltaMode===1?(j*=40,W*=40):(j*=800,W*=800)),j&&!R&&(R=j<1?-1:1),W&&!$&&($=W<1?-1:1),{spinX:R,spinY:$,pixelX:j,pixelY:W}}function g(){e.enabled&&(e.mouseEntered=!0)}function v(){e.enabled&&(e.mouseEntered=!1)}function y(C){return e.params.mousewheel.thresholdDelta&&C.delta<e.params.mousewheel.thresholdDelta||e.params.mousewheel.thresholdTime&&ui()-l<e.params.mousewheel.thresholdTime?!1:C.delta>=6&&ui()-l<60?!0:(C.direction<0?(!e.isEnd||e.params.loop)&&!e.animating&&(e.slideNext(),i("scroll",C.raw)):(!e.isBeginning||e.params.loop)&&!e.animating&&(e.slidePrev(),i("scroll",C.raw)),l=new s.Date().getTime(),!1)}function w(C){const A=e.params.mousewheel;if(C.direction<0){if(e.isEnd&&!e.params.loop&&A.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&A.releaseOnEdges)return!0;return!1}function T(C){let A=C,O=!0;if(!e.enabled||C.target.closest(`.${e.params.mousewheel.noMousewheelClass}`))return;const k=e.params.mousewheel;e.params.cssMode&&A.preventDefault();let R=e.el;e.params.mousewheel.eventsTarget!=="container"&&(R=document.querySelector(e.params.mousewheel.eventsTarget));const $=R&&R.contains(A.target);if(!e.mouseEntered&&!$&&!k.releaseOnEdges)return!0;A.originalEvent&&(A=A.originalEvent);let j=0;const W=e.rtlTranslate?-1:1,H=d(A);if(k.forceToAxis)if(e.isHorizontal())if(Math.abs(H.pixelX)>Math.abs(H.pixelY))j=-H.pixelX*W;else return!0;else if(Math.abs(H.pixelY)>Math.abs(H.pixelX))j=-H.pixelY;else return!0;else j=Math.abs(H.pixelX)>Math.abs(H.pixelY)?-H.pixelX*W:-H.pixelY;if(j===0)return!0;k.invert&&(j=-j);let V=e.getTranslate()+j*k.sensitivity;if(V>=e.minTranslate()&&(V=e.minTranslate()),V<=e.maxTranslate()&&(V=e.maxTranslate()),O=e.params.loop?!0:!(V===e.minTranslate()||V===e.maxTranslate()),O&&e.params.nested&&A.stopPropagation(),!e.params.freeMode||!e.params.freeMode.enabled){const F={time:ui(),delta:Math.abs(j),direction:Math.sign(j),raw:C};f.length>=2&&f.shift();const z=f.length?f[f.length-1]:void 0;if(f.push(F),z?(F.direction!==z.direction||F.delta>z.delta||F.time>z.time+150)&&y(F):y(F),w(F))return!0}else{const F={time:ui(),delta:Math.abs(j),direction:Math.sign(j)},z=c&&F.time<c.time+500&&F.delta<=c.delta&&F.direction===c.direction;if(!z){c=void 0;let M=e.getTranslate()+j*k.sensitivity;const q=e.isBeginning,U=e.isEnd;if(M>=e.minTranslate()&&(M=e.minTranslate()),M<=e.maxTranslate()&&(M=e.maxTranslate()),e.setTransition(0),e.setTranslate(M),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses(),(!q&&e.isBeginning||!U&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:F.direction<0?"next":"prev",byMousewheel:!0}),e.params.freeMode.sticky){clearTimeout(a),a=void 0,f.length>=15&&f.shift();const B=f.length?f[f.length-1]:void 0,Y=f[0];if(f.push(F),B&&(F.delta>B.delta||F.direction!==B.direction))f.splice(0);else if(f.length>=15&&F.time-Y.time<500&&Y.delta-F.delta>=1&&F.delta<=6){const Z=j>0?.8:.2;c=F,f.splice(0),a=cl(()=>{e.slideToClosest(e.params.speed,!0,void 0,Z)},0)}a||(a=cl(()=>{c=F,f.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5)},500))}if(z||i("scroll",A),e.params.autoplay&&e.params.autoplayDisableOnInteraction&&e.autoplay.stop(),k.releaseOnEdges&&(M===e.minTranslate()||M===e.maxTranslate()))return!0}}return A.preventDefault?A.preventDefault():A.returnValue=!1,!1}function E(C){let A=e.el;e.params.mousewheel.eventsTarget!=="container"&&(A=document.querySelector(e.params.mousewheel.eventsTarget)),A[C]("mouseenter",g),A[C]("mouseleave",v),A[C]("wheel",T)}function x(){return e.params.cssMode?(e.wrapperEl.removeEventListener("wheel",T),!0):e.mousewheel.enabled?!1:(E("addEventListener"),e.mousewheel.enabled=!0,!0)}function b(){return e.params.cssMode?(e.wrapperEl.addEventListener(event,T),!0):e.mousewheel.enabled?(E("removeEventListener"),e.mousewheel.enabled=!1,!0):!1}r("init",()=>{!e.params.mousewheel.enabled&&e.params.cssMode&&b(),e.params.mousewheel.enabled&&x()}),r("destroy",()=>{e.params.cssMode&&x(),e.mousewheel.enabled&&b()}),Object.assign(e.mousewheel,{enable:x,disable:b})}function o1(t,e,n,r){return t.params.createElements&&Object.keys(r).forEach(i=>
vendor: 4,994 bytes, line 59
59{if(!n[i]&&n.auto===!0){let s=$n(t.el,`.${r[i]}`)[0];s||(s=Fr("div",r[i]),s.className=r[i],t.el.append(s)),n[i]=s,e[i]=s}}),n}function lee(t){let{swiper:e,extendParams:n,on:r,emit:i}=t;n({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};function s(w){let T;return w&&typeof w=="string"&&e.isElement&&(T=e.el.querySelector(w),T)?T:(w&&(typeof w=="string"&&(T=[...document.querySelectorAll(w)]),e.params.uniqueNavElements&&typeof w=="string"&&T.length>1&&e.el.querySelectorAll(w).length===1&&(T=e.el.querySelector(w))),w&&!T?w:T)}function a(w,T){const E=e.params.navigation;w=mt(w),w.forEach(x=>{x&&(x.classList[T?"add":"remove"](...E.disabledClass.split(" ")),x.tagName==="BUTTON"&&(x.disabled=T),e.params.watchOverflow&&e.enabled&&x.classList[e.isLocked?"add":"remove"](E.lockClass))})}function l(){const{nextEl:w,prevEl:T}=e.navigation;if(e.params.loop){a(T,!1),a(w,!1);return}a(T,e.isBeginning&&!e.params.rewind),a(w,e.isEnd&&!e.params.rewind)}function c(w){w.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),i("navigationPrev"))}function f(w){w.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),i("navigationNext"))}function d(){const w=e.params.navigation;if(e.params.navigation=o1(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(w.nextEl||w.prevEl))return;let T=s(w.nextEl),E=s(w.prevEl);Object.assign(e.navigation,{nextEl:T,prevEl:E}),T=mt(T),E=mt(E);const x=(b,C)=>{b&&b.addEventListener("click",C==="next"?f:c),!e.enabled&&b&&b.classList.add(...w.lockClass.split(" "))};T.forEach(b=>x(b,"next")),E.forEach(b=>x(b,"prev"))}function g(){let{nextEl:w,prevEl:T}=e.navigation;w=mt(w),T=mt(T);const E=(x,b)=>{x.removeEventListener("click",b==="next"?f:c),x.classList.remove(...e.params.navigation.disabledClass.split(" "))};w.forEach(x=>E(x,"next")),T.forEach(x=>E(x,"prev"))}r("init",()=>{e.params.navigation.enabled===!1?y():(d(),l())}),r("toEdge fromEdge lock unlock",()=>{l()}),r("destroy",()=>{g()}),r("enable disable",()=>{let{nextEl:w,prevEl:T}=e.navigation;if(w=mt(w),T=mt(T),e.enabled){l();return}[...w,...T].filter(E=>!!E).forEach(E=>E.classList.add(e.params.navigation.lockClass))}),r("click",(w,T)=>{let{nextEl:E,prevEl:x}=e.navigation;E=mt(E),x=mt(x);const b=T.target;if(e.params.navigation.hideOnClick&&!x.includes(b)&&!E.includes(b)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===b||e.pagination.el.contains(b)))return;let C;E.length?C=E[0].classList.contains(e.params.navigation.hiddenClass):x.length&&(C=x[0].classList.contains(e.params.navigation.hiddenClass)),i(C===!0?"navigationShow":"navigationHide"),[...E,...x].filter(A=>!!A).forEach(A=>A.classList.toggle(e.params.navigation.hiddenClass))}});const v=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),d(),l()},y=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),g()};Object.assign(e.navigation,{enable:v,disable:y,update:l,init:d,destroy:g})}function Fs(t){return t===void 0&&(t=""),`.${t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function uee(t){let{swiper:e,extendParams:n,on:r,emit:i}=t;const s="swiper-pagination";n({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:x=>x,formatFractionTotal:x=>x,bulletClass:`${s}-bullet`,bulletActiveClass:`${s}-bullet-active`,modifierClass:`${s}-`,currentClass:`${s}-current`,totalClass:`${s}-total`,hiddenClass:`${s}-hidden`,progressbarFillClass:`${s}-progressbar-fill`,progressbarOppositeClass:`${s}-progressbar-opposite`,clickableClass:`${s}-clickable`,lockClass:`${s}-lock`,horizontalClass:`${s}-horizontal`,verticalClass:`${s}-vertical`,paginationDisabledClass:`${s}-disabled`}}),e.pagination={el:null,bullets:[]};let a,l=0;function c(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function f(x,b){const{bulletActiveClass:C}=e.params.pagination;x&&(x=x[`${b==="prev"?"previous":"next"}ElementSibling`],x&&(x.classList.add(`${C}-${b}`),x=x[`${b==="prev"?"previous":"next"}ElementSibling`],x&&x.classList.add(`${C}-${b}-${b}`)))}function d(x){const b=x.target.closest(Fs(e.params.pagination.bulletClass));if(!b)return;x.preventDefault();const C=xd(b)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===C)return;e.slideToLoop(C)}else e.slideTo(C)}function g(){const x=e.rtl,b=e.params.pagination;if(c())return;let C=e.pagination.el;C=mt(C);let A,O;const k=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,R=e.params.loop?Math.
vendor: 5,176 bytes, line 59
59ceil(k/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(O=e.previousRealIndex||0,A=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(A=e.snapIndex,O=e.previousSnapIndex):(O=e.previousIndex||0,A=e.activeIndex||0),b.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const $=e.pagination.bullets;let j,W,H;if(b.dynamicBullets&&(a=Lx($[0],e.isHorizontal()?"width":"height",!0),C.forEach(V=>{V.style[e.isHorizontal()?"width":"height"]=`${a*(b.dynamicMainBullets+4)}px`}),b.dynamicMainBullets>1&&O!==void 0&&(l+=A-(O||0),l>b.dynamicMainBullets-1?l=b.dynamicMainBullets-1:l<0&&(l=0)),j=Math.max(A-l,0),W=j+(Math.min($.length,b.dynamicMainBullets)-1),H=(W+j)/2),$.forEach(V=>{const F=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(z=>`${b.bulletActiveClass}${z}`)].map(z=>typeof z=="string"&&z.includes(" ")?z.split(" "):z).flat();V.classList.remove(...F)}),C.length>1)$.forEach(V=>{const F=xd(V);F===A?V.classList.add(...b.bulletActiveClass.split(" ")):e.isElement&&V.setAttribute("part","bullet"),b.dynamicBullets&&(F>=j&&F<=W&&V.classList.add(...`${b.bulletActiveClass}-main`.split(" ")),F===j&&f(V,"prev"),F===W&&f(V,"next"))});else{const V=$[A];if(V&&V.classList.add(...b.bulletActiveClass.split(" ")),e.isElement&&$.forEach((F,z)=>{F.setAttribute("part",z===A?"bullet-active":"bullet")}),b.dynamicBullets){const F=$[j],z=$[W];for(let M=j;M<=W;M+=1)$[M]&&$[M].classList.add(...`${b.bulletActiveClass}-main`.split(" "));f(F,"prev"),f(z,"next")}}if(b.dynamicBullets){const V=Math.min($.length,b.dynamicMainBullets+4),F=(a*V-a)/2-H*a,z=x?"right":"left";$.forEach(M=>{M.style[e.isHorizontal()?z:"top"]=`${F}px`})}}C.forEach(($,j)=>{if(b.type==="fraction"&&($.querySelectorAll(Fs(b.currentClass)).forEach(W=>{W.textContent=b.formatFractionCurrent(A+1)}),$.querySelectorAll(Fs(b.totalClass)).forEach(W=>{W.textContent=b.formatFractionTotal(R)})),b.type==="progressbar"){let W;b.progressbarOpposite?W=e.isHorizontal()?"vertical":"horizontal":W=e.isHorizontal()?"horizontal":"vertical";const H=(A+1)/R;let V=1,F=1;W==="horizontal"?V=H:F=H,$.querySelectorAll(Fs(b.progressbarFillClass)).forEach(z=>{z.style.transform=`translate3d(0,0,0) scaleX(${V}) scaleY(${F})`,z.style.transitionDuration=`${e.params.speed}ms`})}b.type==="custom"&&b.renderCustom?($.innerHTML=b.renderCustom(e,A+1,R),j===0&&i("paginationRender",$)):(j===0&&i("paginationRender",$),i("paginationUpdate",$)),e.params.watchOverflow&&e.enabled&&$.classList[e.isLocked?"add":"remove"](b.lockClass)})}function v(){const x=e.params.pagination;if(c())return;const b=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.grid&&e.params.grid.rows>1?e.slides.length/Math.ceil(e.params.grid.rows):e.slides.length;let C=e.pagination.el;C=mt(C);let A="";if(x.type==="bullets"){let O=e.params.loop?Math.ceil(b/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&O>b&&(O=b);for(let k=0;k<O;k+=1)x.renderBullet?A+=x.renderBullet.call(e,k,x.bulletClass):A+=`<${x.bulletElement} ${e.isElement?'part="bullet"':""} class="${x.bulletClass}"></${x.bulletElement}>`}x.type==="fraction"&&(x.renderFraction?A=x.renderFraction.call(e,x.currentClass,x.totalClass):A=`<span class="${x.currentClass}"></span> / <span class="${x.totalClass}"></span>`),x.type==="progressbar"&&(x.renderProgressbar?A=x.renderProgressbar.call(e,x.progressbarFillClass):A=`<span class="${x.progressbarFillClass}"></span>`),e.pagination.bullets=[],C.forEach(O=>{x.type!=="custom"&&(O.innerHTML=A||""),x.type==="bullets"&&e.pagination.bullets.push(...O.querySelectorAll(Fs(x.bulletClass)))}),x.type!=="custom"&&i("paginationRender",C[0])}function y(){e.params.pagination=o1(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const x=e.params.pagination;if(!x.el)return;let b;typeof x.el=="string"&&e.isElement&&(b=e.el.querySelector(x.el)),!b&&typeof x.el=="string"&&(b=[...document.querySelectorAll(x.el)]),b||(b=x.el),!(!b||b.length===0)&&(e.params.uniqueNavElements&&typeof x.el=="string"&&Array.isArray(b)&&b.length>1&&(b=[...e.el.querySelectorAll(x.el)],b.length>1&&(b=b.filter(C=>Ja(C,".swiper")[0]===e.el)[0])),Array.isArray(b)&&b.length===1&&(b=b[0]),Object.assign(e.pagination,{el:b}),b=mt(b),b.forEach(C=>{x.type==="bullets"&&x.clickable&&C.classList.add(...(x.clickableClass||"").split(" ")),C.classList.add(x.modifierClass+x.type),C.classList.add(e.isHorizontal()?x.horizontalClass:x.verticalClass),x.type==="bullets"&&x.dynamicBullets&&(C.classList.add(`${x.modifierClass}${x.type}-dynamic`),l=0,x.dynamicMainBullets<1&&(x.dynamicMainBullets=1)),x.type==="progressbar"&&x.progressbarOpposite&&C.classList.add(x.progressbarOppositeClass),x.clickable&&C.addEventListener("click",d),e.enabled||C.classList.add(x.lockClass)}))}function w(){const x=e.params.pagination;if(c())return;let b=e.pagination.el;b&&(b=mt(b),b.forEach(C=>{C.classList.remove(x.hiddenClass),C.classList.remove(x.modifierClass+x.type),C.classList.remove(e.isHorizontal()?x.horizontalClass:x.verticalClass),x.clickable&&(C.classList.remove(...(x.clickableClass||"").split(" ")),C.removeEventListener("click",d))}
vendor: 6,764 bytes, line 59
59)),e.pagination.bullets&&e.pagination.bullets.forEach(C=>C.classList.remove(...x.bulletActiveClass.split(" ")))}r("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const x=e.params.pagination;let{el:b}=e.pagination;b=mt(b),b.forEach(C=>{C.classList.remove(x.horizontalClass,x.verticalClass),C.classList.add(e.isHorizontal()?x.horizontalClass:x.verticalClass)})}),r("init",()=>{e.params.pagination.enabled===!1?E():(y(),v(),g())}),r("activeIndexChange",()=>{typeof e.snapIndex>"u"&&g()}),r("snapIndexChange",()=>{g()}),r("snapGridLengthChange",()=>{v(),g()}),r("destroy",()=>{w()}),r("enable disable",()=>{let{el:x}=e.pagination;x&&(x=mt(x),x.forEach(b=>b.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),r("lock unlock",()=>{g()}),r("click",(x,b)=>{const C=b.target,A=mt(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&A&&A.length>0&&!C.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&C===e.navigation.nextEl||e.navigation.prevEl&&C===e.navigation.prevEl))return;const O=A[0].classList.contains(e.params.pagination.hiddenClass);i(O===!0?"paginationShow":"paginationHide"),A.forEach(k=>k.classList.toggle(e.params.pagination.hiddenClass))}});const T=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:x}=e.pagination;x&&(x=mt(x),x.forEach(b=>b.classList.remove(e.params.pagination.paginationDisabledClass))),y(),v(),g()},E=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:x}=e.pagination;x&&(x=mt(x),x.forEach(b=>b.classList.add(e.params.pagination.paginationDisabledClass))),w()};Object.assign(e.pagination,{enable:T,disable:E,render:v,update:g,init:y,destroy:w})}function cee(t){let{swiper:e,extendParams:n,on:r,emit:i}=t;const s=dr();let a=!1,l=null,c=null,f,d,g,v;n({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),e.scrollbar={el:null,dragEl:null};function y(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:V,rtlTranslate:F}=e,{dragEl:z,el:M}=V,q=e.params.scrollbar,U=e.params.loop?e.progressLoop:e.progress;let B=d,Y=(g-d)*U;F?(Y=-Y,Y>0?(B=d-Y,Y=0):-Y+d>g&&(B=g+Y)):Y<0?(B=d+Y,Y=0):Y+d>g&&(B=g-Y),e.isHorizontal()?(z.style.transform=`translate3d(${Y}px, 0, 0)`,z.style.width=`${B}px`):(z.style.transform=`translate3d(0px, ${Y}px, 0)`,z.style.height=`${B}px`),q.hide&&(clearTimeout(l),M.style.opacity=1,l=setTimeout(()=>{M.style.opacity=0,M.style.transitionDuration="400ms"},1e3))}function w(V){!e.params.scrollbar.el||!e.scrollbar.el||(e.scrollbar.dragEl.style.transitionDuration=`${V}ms`)}function T(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:V}=e,{dragEl:F,el:z}=V;F.style.width="",F.style.height="",g=e.isHorizontal()?z.offsetWidth:z.offsetHeight,v=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0)),e.params.scrollbar.dragSize==="auto"?d=g*v:d=parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?F.style.width=`${d}px`:F.style.height=`${d}px`,v>=1?z.style.display="none":z.style.display="",e.params.scrollbar.hide&&(z.style.opacity=0),e.params.watchOverflow&&e.enabled&&V.el.classList[e.isLocked?"add":"remove"](e.params.scrollbar.lockClass)}function E(V){return e.isHorizontal()?V.clientX:V.clientY}function x(V){const{scrollbar:F,rtlTranslate:z}=e,{el:M}=F;let q;q=(E(V)-nm(M)[e.isHorizontal()?"left":"top"]-(f!==null?f:d/2))/(g-d),q=Math.max(Math.min(q,1),0),z&&(q=1-q);const U=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*q;e.updateProgress(U),e.setTranslate(U),e.updateActiveIndex(),e.updateSlidesClasses()}function b(V){const F=e.params.scrollbar,{scrollbar:z,wrapperEl:M}=e,{el:q,dragEl:U}=z;a=!0,f=V.target===U?E(V)-V.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,V.preventDefault(),V.stopPropagation(),M.style.transitionDuration="100ms",U.style.transitionDuration="100ms",x(V),clearTimeout(c),q.style.transitionDuration="0ms",F.hide&&(q.style.opacity=1),e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="none"),i("scrollbarDragStart",V)}function C(V){const{scrollbar:F,wrapperEl:z}=e,{el:M,dragEl:q}=F;a&&(V.preventDefault?V.preventDefault():V.returnValue=!1,x(V),z.style.transitionDuration="0ms",M.style.transitionDuration="0ms",q.style.transitionDuration="0ms",i("scrollbarDragMove",V))}function A(V){const F=e.params.scrollbar,{scrollbar:z,wrapperEl:M}=e,{el:q}=z;a&&(a=!1,e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="",M.style.transitionDuration=""),F.hide&&(clearTimeout(c),c=cl(()=>{q.style.opacity=0,q.style.transitionDuration="400ms"},1e3)),i("scrollbarDragEnd",V),F.snapOnRelease&&e.slideToClosest())}function O(V){const{scrollbar:F,params:z}=e,M=F.el;if(!M)return;const q=M,U=z.passiveListeners?{passive:!1,capture:!1}:!1,B=z.passiveListeners?{passive:!0,capture:!1}:!1;if(!q)return;const Y=V==="on"?"addEventListener":"removeEventListener";q[Y]("pointerdown",b,U),s[Y]("pointermove",C,U),s[Y]("pointerup",A,B)}function k(){!e.params.scrollbar.el||!e.scrollbar.el||O("on")}function R(){!e.params.scrollbar.el||!e.scrollbar.el||O("off")}function $(){const{scrollbar:V,el:F}=e;e.params.scrollbar=o1(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});const z=e.params.scrollbar;if(!z.el)return;let M;if(typeof z.el=="string"&&e.isElement&&(M=e.el.querySelector(z.el)),!M&&typeof z.el=="string"){if(M=s.querySelectorAll(z.el),!M.length)return}else M||(M=z.el);e.params.uniqueNavElements&&typeof z.el=="string"&&M.length>1&&F.querySelectorAll(z.el).length===1&&(M=F.querySelector(z.el)),M.length>0&&(M=M[0]),M.classList.add(e.isHorizontal()?z.horizontalClass:z.verticalClass);let q;M&&(q=M.querySelector(Fs(e.params.scrollbar.dragClass)),q||(q=Fr("div",e.params.scrollbar.dragClass),M.append(q))),Object.assign(V,{el:M,dragEl:q}),z.draggable&&k(),M&&M.classList[e.enabled?"remove":"add"](...ko(e.params.scrollbar.lockClass))}function j(){const V=e.params.scrollbar,F=e.scrollbar.el;F&&F.classList.remove(...ko(e.isHorizontal()?V.horizontalClass:V.verticalClass)),R()}r("changeDirection",()=>{if(!e.scrollbar||!e.scrollbar.el)return;const V=e.params.scrollbar;let{el:F}=e.scrollbar;F=mt(F),F.forEach(z=>{z.classList.remove(V.horizontalClass,V.verticalClass),z.classList.add(e.isHorizontal()?V.horizontalClass:V.verticalClass)})}),r("init",()=>{e.params.scrollbar.enabled===!1?H():($(),T(),y())}),r("update resize observerUpdate lock unlock changeDirection",()=>{T()}),r("setTranslate",()=>{y()}),r("setTransition",(V,F)=>{w(F)}),r("enable disable",()=>{const{el:V}=e.scrollbar;
59V&&V.classList[e.enabled?"remove":"add"](...ko(e.params.scrollbar.lockClass))}),r("destroy",()=>{j()});const W=()=>{e.el.classList.remove(...ko(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.remove(...ko(e.params.scrollbar.scrollbarDisabledClass)),$(),T(),y()},H=()=>{e.el.classList.add(...ko(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.add(...ko(e.params.scrollbar.scrollbarDisabledClass)),j()};Object.assign(e.scrollbar,{enable:W,disable:H,updateSize:T,setTranslate:y,init:$,destroy:j})}function fee(t){let{swiper:e,extendParams:n,on:r}=t;n({parallax:{enabled:!1}});const i="[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]",s=(c,f)=>{const{rtl:d}=e,g=d?-1:1,v=c.getAttribute("data-swiper-parallax")||"0";let y=c.getAttribute("data-swiper-parallax-x"),w=c.getAttribute("data-swiper-parallax-y");const T=c.getAttribute("data-swiper-parallax-scale"),E=c.getAttribute("data-swiper-parallax-opacity"),x=c.getAttribute("data-swiper-parallax-rotate");if(y||w?(y=y||"0",w=w||"0"):e.isHorizontal()?(y=v,w="0"):(w=v,y="0"),y.indexOf("%")>=0?y=`${parseInt(y,10)*f*g}%`:y=`${y*f*g}px`,w.indexOf("%")>=0?w=`${parseInt(w,10)*f}%`:w=`${w*f}px`,typeof E<"u"&&E!==null){const C=E-(E-1)*(1-Math.abs(f));c.style.opacity=C}let b=`translate3d(${y}, ${w}, 0px)`;if(typeof T<"u"&&T!==null){const C=T-(T-1)*(1-Math.abs(f));b+=` scale(${C})`}if(x&&typeof x<"u"&&x!==null){const C=x*f*-1;b+=` rotate(${C}deg)`}c.style.transform=b},a=()=>{const{el:c,slides:f,progress:d,snapGrid:g,isElement:v}=e,y=$n(c,i);e.isElement&&y.push(...$n(e.hostEl,i)),y.forEach(w=>{s(w,d)}),f.forEach((w,T)=>{let E=w.progress;e.params.slidesPerGroup>1&&e.params.slidesPerView!=="auto"&&(E+=Math.ceil(T/2)-d*(g.length-1)),E=Math.min(Math.max(E,-1),1),w.querySelectorAll(`${i}, [data-swiper-parallax-rotate]`).forEach(x=>{s(x,E)})})},l=function(c){c===void 0&&(c=e.params.speed);const{el:f,hostEl:d}=e,g=[...f.querySelectorAll(i)];e.isElement&&g.push(...d.querySelectorAll(i)),g.forEach(v=>{let y=parseInt(v.getAttribute("data-swiper-parallax-duration"),10)||c;c===0&&(y=0),v.style.transitionDuration=`${y}ms`})};r("beforeInit",()=>{e.params.parallax.enabled&&(e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0)}),r("init",()=>{e.params.parallax.enabled&&a()}),r("setTranslate",()=>{e.params.parallax.enabled&&a()}),r("setTransition",(c,f)=>{e.params.parallax.enabled&&l(f)})}function dee(t){let{swiper:e,extendParams:n,on:r,emit:i}=t;const s=an();n({zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}}),e.zoom={enabled:!1};let a=1,l=!1,c,f;const d=[],g={originX:0,originY:0,slideEl:void 0,slideWidth:void 0,slideHeight:void 0,imageEl:void 0,imageWrapEl:void 0,maxRatio:3},v={isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},y={x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0};let w=1;Object.defineProperty(e.zoom,"scale",{get(){return w},set(U){if(w!==U){const B=g.imageEl,Y=g.slideEl;i("zoomChange",U,B,Y)}w=U}});function T(){if(d.length<2)return 1;const U=d[0].pageX,B=d[0].pageY,Y=d[1].pageX,Z=d[1].pageY;return Math.sqrt((Y-U)**2+(Z-B)**2)}function E(){if(d.length<2)return{x:null,y:null};const U=g.imageEl.getBoundingClientRect();return[(d[0].pageX+(d[1].pageX-d[0].pageX)/2-U.x-s.scrollX)/a,(d[0].pageY+(d[1].pageY-d[0].pageY)/2-U.y-s.scrollY)/a]}function x(){return e.isElement?"swiper-slide":`.${e.params.slideClass}`}function b(U){const B=x();return!!(U.target.matches(B)||e.slides.filter(Y=>Y.contains(U.target)).length>0)}function C(U){const B=`.${e.params.zoom.containerClass}`;return!!(U.target.matches(B)||[...e.hostEl.querySelectorAll(B)].filter(Y=>Y.contains(U.target)).length>0)}function A(U){if(U.pointerType==="mouse"&&d.splice(0,d.length),!b(U))return;const B=e.params.zoom;if(c=!1,f=!1,d.push(U),!(d.length<2)){if(c=!0,g.scaleStart=T(),!g.slideEl){g.slideEl=U.target.closest(`.${e.params.slideClass}, swiper-slide`),g.slideEl||(g.slideEl=e.slides[e.activeIndex]);let Y=g.slideEl.querySelector(`.${B.containerClass}`);
vendor: 4,805 bytes, line 59
59if(Y&&(Y=Y.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),g.imageEl=Y,Y?g.imageWrapEl=Ja(g.imageEl,`.${B.containerClass}`)[0]:g.imageWrapEl=void 0,!g.imageWrapEl){g.imageEl=void 0;return}g.maxRatio=g.imageWrapEl.getAttribute("data-swiper-zoom")||B.maxRatio}if(g.imageEl){const[Y,Z]=E();g.originX=Y,g.originY=Z,g.imageEl.style.transitionDuration="0ms"}l=!0}}function O(U){if(!b(U))return;const B=e.params.zoom,Y=e.zoom,Z=d.findIndex(fe=>fe.pointerId===U.pointerId);Z>=0&&(d[Z]=U),!(d.length<2)&&(f=!0,g.scaleMove=T(),g.imageEl&&(Y.scale=g.scaleMove/g.scaleStart*a,Y.scale>g.maxRatio&&(Y.scale=g.maxRatio-1+(Y.scale-g.maxRatio+1)**.5),Y.scale<B.minRatio&&(Y.scale=B.minRatio+1-(B.minRatio-Y.scale+1)**.5),g.imageEl.style.transform=`translate3d(0,0,0) scale(${Y.scale})`))}function k(U){if(!b(U)||U.pointerType==="mouse"&&U.type==="pointerout")return;const B=e.params.zoom,Y=e.zoom,Z=d.findIndex(fe=>fe.pointerId===U.pointerId);Z>=0&&d.splice(Z,1),!(!c||!f)&&(c=!1,f=!1,g.imageEl&&(Y.scale=Math.max(Math.min(Y.scale,g.maxRatio),B.minRatio),g.imageEl.style.transitionDuration=`${e.params.speed}ms`,g.imageEl.style.transform=`translate3d(0,0,0) scale(${Y.scale})`,a=Y.scale,l=!1,Y.scale>1&&g.slideEl?g.slideEl.classList.add(`${B.zoomedSlideClass}`):Y.scale<=1&&g.slideEl&&g.slideEl.classList.remove(`${B.zoomedSlideClass}`),Y.scale===1&&(g.originX=0,g.originY=0,g.slideEl=void 0)))}function R(U){const B=e.device;if(!g.imageEl||v.isTouched)return;B.android&&U.cancelable&&U.preventDefault(),v.isTouched=!0;const Y=d.length>0?d[0]:U;v.touchesStart.x=Y.pageX,v.touchesStart.y=Y.pageY}function $(U){if(!b(U)||!C(U))return;const B=e.zoom;if(!g.imageEl||!v.isTouched||!g.slideEl)return;v.isMoved||(v.width=g.imageEl.offsetWidth,v.height=g.imageEl.offsetHeight,v.startX=kx(g.imageWrapEl,"x")||0,v.startY=kx(g.imageWrapEl,"y")||0,g.slideWidth=g.slideEl.offsetWidth,g.slideHeight=g.slideEl.offsetHeight,g.imageWrapEl.style.transitionDuration="0ms");const Y=v.width*B.scale,Z=v.height*B.scale;if(Y<g.slideWidth&&Z<g.slideHeight)return;if(v.minX=Math.min(g.slideWidth/2-Y/2,0),v.maxX=-v.minX,v.minY=Math.min(g.slideHeight/2-Z/2,0),v.maxY=-v.minY,v.touchesCurrent.x=d.length>0?d[0].pageX:U.pageX,v.touchesCurrent.y=d.length>0?d[0].pageY:U.pageY,Math.max(Math.abs(v.touchesCurrent.x-v.touchesStart.x),Math.abs(v.touchesCurrent.y-v.touchesStart.y))>5&&(e.allowClick=!1),!v.isMoved&&!l){if(e.isHorizontal()&&(Math.floor(v.minX)===Math.floor(v.startX)&&v.touchesCurrent.x<v.touchesStart.x||Math.floor(v.maxX)===Math.floor(v.startX)&&v.touchesCurrent.x>v.touchesStart.x)){v.isTouched=!1;return}if(!e.isHorizontal()&&(Math.floor(v.minY)===Math.floor(v.startY)&&v.touchesCurrent.y<v.touchesStart.y||Math.floor(v.maxY)===Math.floor(v.startY)&&v.touchesCurrent.y>v.touchesStart.y)){v.isTouched=!1;return}}U.cancelable&&U.preventDefault(),U.stopPropagation(),v.isMoved=!0;const K=(B.scale-a)/(g.maxRatio-e.params.zoom.minRatio),{originX:N,originY:ie}=g;v.currentX=v.touchesCurrent.x-v.touchesStart.x+v.startX+K*(v.width-N*2),v.currentY=v.touchesCurrent.y-v.touchesStart.y+v.startY+K*(v.height-ie*2),v.currentX<v.minX&&(v.currentX=v.minX+1-(v.minX-v.currentX+1)**.8),v.currentX>v.maxX&&(v.currentX=v.maxX-1+(v.currentX-v.maxX+1)**.8),v.currentY<v.minY&&(v.currentY=v.minY+1-(v.minY-v.currentY+1)**.8),v.currentY>v.maxY&&(v.currentY=v.maxY-1+(v.currentY-v.maxY+1)**.8),y.prevPositionX||(y.prevPositionX=v.touchesCurrent.x),y.prevPositionY||(y.prevPositionY=v.touchesCurrent.y),y.prevTime||(y.prevTime=Date.now()),y.x=(v.touchesCurrent.x-y.prevPositionX)/(Date.now()-y.prevTime)/2,y.y=(v.touchesCurrent.y-y.prevPositionY)/(Date.now()-y.prevTime)/2,Math.abs(v.touchesCurrent.x-y.prevPositionX)<2&&(y.x=0),Math.abs(v.touchesCurrent.y-y.prevPositionY)<2&&(y.y=0),y.prevPositionX=v.touchesCurrent.x,y.prevPositionY=v.touchesCurrent.y,y.prevTime=Date.now(),g.imageWrapEl.style.transform=`translate3d(${v.currentX}px, ${v.currentY}px,0)`}function j(){const U=e.zoom;if(!g.imageEl)return;if(!v.isTouched||!v.isMoved){v.isTouched=!1,v.isMoved=!1;return}v.isTouched=!1,v.isMoved=!1;let B=300,Y=300;const Z=y.x*B,fe=v.currentX+Z,K=y.y*Y,N=v.currentY+K;y.x!==0&&(B=Math.abs((fe-v.currentX)/y.x)),y.y!==0&&(Y=Math.abs((N-v.currentY)/y.y));const ie=Math.max(B,Y);v.currentX=fe,v.currentY=N;const me=v.width*U.scale,ve=v.height*U.scale;v.minX=Math.min(g.slideWidth/2-me/2,0),v.maxX=-v.minX,v.minY=Math.min(g.slideHeight/2-ve/2,0),v.maxY=-v.minY,v.currentX=Math.max(Math.min(v.currentX,v.maxX),v.minX),v.currentY=Math.max(Math.min(v.currentY,v.maxY),v.minY),g.imageWrapEl.style.transitionDuration=`${ie}ms`,g.imageWrapEl.style.transform=`translate3d(${v.currentX}px, ${v.currentY}px,0)`}function W(){const U=e.zoom;g.slideEl&&e.activeIndex!==e.slides.indexOf(g.slideEl)&&(g.imageEl&&(g.imageEl.style.transform="translate3d(0,
590,0) scale(1)"),g.imageWrapEl&&(g.imageWrapEl.style.transform="translate3d(0,0,0)"),g.slideEl.classList.remove(`${e.params.zoom.zoomedSlideClass}`),U.scale=1,a=1,g.slideEl=void 0,g.imageEl=void 0,g.imageWrapEl=void 0,g.originX=0,g.originY=0)}function H(U){const B=e.zoom,Y=e.params.zoom;if(!g.slideEl){U&&U.target&&(g.slideEl=U.target.closest(`.${e.params.slideClass}, swiper-slide`)),g.slideEl||(e.params.virtual&&e.params.virtual.enabled&&e.virtual?g.slideEl=$n(e.slidesEl,`.${e.params.slideActiveClass}`)[0]:g.slideEl=e.slides[e.activeIndex]);let Q=g.slideEl.querySelector(`.${Y.containerClass}`);Q&&(Q=Q.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),g.imageEl=Q,Q?g.imageWrapEl=Ja(g.imageEl,`.${Y.containerClass}`)[0]:g.imageWrapEl=void 0}if(!g.imageEl||!g.imageWrapEl)return;e.params.cssMode&&(e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.touchAction="none"),g.slideEl.classList.add(`${Y.zoomedSlideClass}`);let Z,fe,K,N,ie,me,ve,ze,it,qe,Le,Oe,$e,et,ct,Ge,Tt,vt;typeof v.touchesStart.x>"u"&&U?(Z=U.pageX,fe=U.pageY):(Z=v.touchesStart.x,fe=v.touchesStart.y);const _t=typeof U=="number"?U:null;a===1&&_t&&(Z=void 0,fe=void 0),B.scale=_t||g.imageWrapEl.getAttribute("data-swiper-zoom")||Y.maxRatio,a=_t||g.imageWrapEl.getAttribute("data-swiper-zoom")||Y.maxRatio,U&&!(a===1&&_t)?(Tt=g.slideEl.offsetWidth,vt=g.slideEl.offsetHeight,K=nm(g.slideEl).left+s.scrollX,N=nm(g.slideEl).top+s.scrollY,ie=K+Tt/2-Z,me=N+vt/2-fe,it=g.imageEl.offsetWidth,qe=g.imageEl.offsetHeight,Le=it*B.scale,Oe=qe*B.scale,$e=Math.min(Tt/2-Le/2,0),et=Math.min(vt/2-Oe/2,0),ct=-$e,Ge=-et,ve=ie*B.scale,ze=me*B.scale,ve<$e&&(ve=$e),ve>ct&&(ve=ct),ze<et&&(ze=et),ze>Ge&&(ze=Ge)):(ve=0,ze=0),_t&&B.scale===1&&(g.originX=0,g.originY=0),g.imageWrapEl.style.transitionDuration="300ms",g.imageWrapEl.style.transform=`translate3d(${ve}px, ${ze}px,0)`,g.imageEl.style.transitionDuration="300ms",g.imageEl.style.transform=`translate3d(0,0,0) scale(${B.scale})`}function V(){const U=e.zoom,B=e.params.zoom;if(!g.slideEl){e.params.virtual&&e.params.virtual.enabled&&e.virtual?g.slideEl=$n(e.slidesEl,`.${e.params.slideActiveClass}`)[0]:g.slideEl=e.slides[e.activeIndex];let Y=g.slideEl.querySelector(`.${B.containerClass}`);Y&&(Y=Y.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),g.imageEl=Y,Y?g.imageWrapEl=Ja(g.imageEl,`.${B.containerClass}`)[0]:g.imageWrapEl=void 0}!g.imageEl||!g.imageWrapEl||(e.params.cssMode&&(e.wrapperEl.style.overflow="",e.wrapperEl.style.touchAction=""),U.scale=1,a=1,g.imageWrapEl.style.transitionDuration="300ms",g.imageWrapEl.style.transform="translate3d(0,0,0)",g.imageEl.style.transitionDuration="300ms",g.imageEl.style.transform="translate3d(0,0,0) scale(1)",g.slideEl.classList.remove(`${B.zoomedSlideClass}`),g.slideEl=void 0,g.originX=0,g.originY=0)}function F(U){const B=e.zoom;B.scale&&B.scale!==1?V():H(U)}function z(){const U=e.params.passiveListeners?{passive:!0,capture:!1}:!1,B=e.params.passiveListeners?{passive:!1,capture:!0}:!0;return{passiveListener:U,activeListenerWithCapture:B}}function M(){const U=e.zoom;if(U.enabled)return;U.enabled=!0;const{passiveListener:B,activeListenerWithCapture:Y}=z();e.wrapperEl.addEventListener("pointerdown",A,B),e.wrapperEl.addEventListener("pointermove",O,Y),["pointerup","pointercancel","pointerout"].forEach(Z=>{e.wrapperEl.addEventListener(Z,k,B)}),e.wrapperEl.addEventListener("pointermove",$,Y)}function q(){const U=e.zoom;if(!U.enabled)return;U.enabled=!1;const{passiveListener:B,activeListenerWithCapture:Y}=z();e.wrapperEl.removeEventListener("pointerdown",A,B),e.wrapperEl.removeEventListener("pointermove",O,Y),["pointerup","pointercancel","pointerout"].forEach(Z=>{e.wrapperEl.removeEventListener(Z,k,B)}),e.wrapperEl.removeEventListener("pointermove",$,Y)}r("init",()=>{e.params.zoom.enabled&&M()}),r("destroy",()=>{q()}),r("touchStart",(U,B)=>{e.zoom.enabled&&R(B)}),r("touchEnd",(U,B)=>{e.zoom.enabled&&j()}),r("doubleTap",(U,B)=>{!e.animating&&e.params.zoom.enabled&&e.zoom.enabled&&e.params.zoom.toggle&&F(B)}),r("transitionEnd",()=>{e.zoom.enabled&&e.params.zoom.enabled&&W()}),r("slideChange",()=>{e.zoom.enabled&&e.params.zoom.enabled&&e.params.cssMode&&W()}
vendor: 4,999 bytes, line 59
59),Object.assign(e.zoom,{enable:M,disable:q,in:H,out:V,toggle:F})}function pee(t){let{swiper:e,extendParams:n,on:r}=t;n({controller:{control:void 0,inverse:!1,by:"slide"}}),e.controller={control:void 0};function i(f,d){const g=function(){let T,E,x;return(b,C)=>{for(E=-1,T=b.length;T-E>1;)x=T+E>>1,b[x]<=C?E=x:T=x;return T}}();this.x=f,this.y=d,this.lastIndex=f.length-1;let v,y;return this.interpolate=function(T){return T?(y=g(this.x,T),v=y-1,(T-this.x[v])*(this.y[y]-this.y[v])/(this.x[y]-this.x[v])+this.y[v]):0},this}function s(f){e.controller.spline=e.params.loop?new i(e.slidesGrid,f.slidesGrid):new i(e.snapGrid,f.snapGrid)}function a(f,d){const g=e.controller.control;let v,y;const w=e.constructor;function T(E){if(E.destroyed)return;const x=e.rtlTranslate?-e.translate:e.translate;e.params.controller.by==="slide"&&(s(E),y=-e.controller.spline.interpolate(-x)),(!y||e.params.controller.by==="container")&&(v=(E.maxTranslate()-E.minTranslate())/(e.maxTranslate()-e.minTranslate()),(Number.isNaN(v)||!Number.isFinite(v))&&(v=1),y=(x-e.minTranslate())*v+E.minTranslate()),e.params.controller.inverse&&(y=E.maxTranslate()-y),E.updateProgress(y),E.setTranslate(y,e),E.updateActiveIndex(),E.updateSlidesClasses()}if(Array.isArray(g))for(let E=0;E<g.length;E+=1)g[E]!==d&&g[E]instanceof w&&T(g[E]);else g instanceof w&&d!==g&&T(g)}function l(f,d){const g=e.constructor,v=e.controller.control;let y;function w(T){T.destroyed||(T.setTransition(f,e),f!==0&&(T.transitionStart(),T.params.autoHeight&&cl(()=>{T.updateAutoHeight()}),qf(T.wrapperEl,()=>{v&&T.transitionEnd()})))}if(Array.isArray(v))for(y=0;y<v.length;y+=1)v[y]!==d&&v[y]instanceof g&&w(v[y]);else v instanceof g&&d!==v&&w(v)}function c(){e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)}r("beforeInit",()=>{if(typeof window<"u"&&(typeof e.params.controller.control=="string"||e.params.controller.control instanceof HTMLElement)){const f=document.querySelector(e.params.controller.control);if(f&&f.swiper)e.controller.control=f.swiper;else if(f){const d=g=>{e.controller.control=g.detail[0],e.update(),f.removeEventListener("init",d)};f.addEventListener("init",d)}return}e.controller.control=e.params.controller.control}),r("update",()=>{c()}),r("resize",()=>{c()}),r("observerUpdate",()=>{c()}),r("setTranslate",(f,d,g)=>{!e.controller.control||e.controller.control.destroyed||e.controller.setTranslate(d,g)}),r("setTransition",(f,d,g)=>{!e.controller.control||e.controller.control.destroyed||e.controller.setTransition(d,g)}),Object.assign(e.controller,{setTranslate:a,setTransition:l})}function hee(t){let{swiper:e,extendParams:n,on:r}=t;n({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null}}),e.a11y={clicked:!1};let i=null;function s(F){const z=i;z.length!==0&&(z.innerHTML="",z.innerHTML=F)}function a(F){F===void 0&&(F=16);const z=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(F).replace(/x/g,z)}function l(F){F=mt(F),F.forEach(z=>{z.setAttribute("tabIndex","0")})}function c(F){F=mt(F),F.forEach(z=>{z.setAttribute("tabIndex","-1")})}function f(F,z){F=mt(F),F.forEach(M=>{M.setAttribute("role",z)})}function d(F,z){F=mt(F),F.forEach(M=>{M.setAttribute("aria-roledescription",z)})}function g(F,z){F=mt(F),F.forEach(M=>{M.setAttribute("aria-controls",z)})}function v(F,z){F=mt(F),F.forEach(M=>{M.setAttribute("aria-label",z)})}function y(F,z){F=mt(F),F.forEach(M=>{M.setAttribute("id",z)})}function w(F,z){F=mt(F),F.forEach(M=>{M.setAttribute("aria-live",z)})}function T(F){F=mt(F),F.forEach(z=>{z.setAttribute("aria-disabled",!0)})}function E(F){F=mt(F),F.forEach(z=>{z.setAttribute("aria-disabled",!1)})}function x(F){if(F.keyCode!==13&&F.keyCode!==32)return;const z=e.params.a11y,M=F.target;e.pagination&&e.pagination.el&&(M===e.pagination.el||e.pagination.el.contains(F.target))&&!F.target.matches(Fs(e.params.pagination.bulletClass))||(e.navigation&&e.navigation.nextEl&&M===e.navigation.nextEl&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?s(z.lastSlideMessage):s(z.nextSlideMessage)),e.navigation&&e.navigation.prevEl&&M===e.navigation.prevEl&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?s(z.firstSlideMessage):s(z.prevSlideMessage)),e.pagination&&M.matches(Fs(e.params.pagination.bulletClass))&&M.click())}function b(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{nextEl:F,prevEl:z}=e.navigation;z&&(e.isBeginning?(T(z),c(z)):(E(z),l(z))),F&&(e.isEnd?(T(F),c(F)):(E(F),l(F)))}function C(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function A(){return C()&&e.params.pagination.clickable}function O(){const F=e.params.a11y;
59C()&&e.pagination.bullets.forEach(z=>{e.params.pagination.clickable&&(l(z),e.params.pagination.renderBullet||(f(z,"button"),v(z,F.paginationBulletMessage.replace(/\{\{index\}\}/,xd(z)+1)))),z.matches(Fs(e.params.pagination.bulletActiveClass))?z.setAttribute("aria-current","true"):z.removeAttribute("aria-current")})}const k=(F,z,M)=>{l(F),F.tagName!=="BUTTON"&&(f(F,"button"),F.addEventListener("keydown",x)),v(F,M),g(F,z)},R=()=>{e.a11y.clicked=!0},$=()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},j=F=>{if(e.a11y.clicked)return;const z=F.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!z||!e.slides.includes(z))return;const M=e.slides.indexOf(z)===e.activeIndex,q=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(z);M||q||F.sourceCapabilities&&F.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,e.slideTo(e.slides.indexOf(z),0))},W=()=>{const F=e.params.a11y;F.itemRoleDescriptionMessage&&d(e.slides,F.itemRoleDescriptionMessage),F.slideRole&&f(e.slides,F.slideRole);const z=e.slides.length;F.slideLabelMessage&&e.slides.forEach((M,q)=>{const U=e.params.loop?parseInt(M.getAttribute("data-swiper-slide-index"),10):q,B=F.slideLabelMessage.replace(/\{\{index\}\}/,U+1).replace(/\{\{slidesLength\}\}/,z);v(M,B)})},H=()=>{const F=e.params.a11y;e.el.append(i);const z=e.el;F.containerRoleDescriptionMessage&&d(z,F.containerRoleDescriptionMessage),F.containerMessage&&v(z,F.containerMessage);const M=e.wrapperEl,q=F.id||M.getAttribute("id")||`swiper-wrapper-${a(16)}`,U=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";y(M,q),w(M,U),W();let{nextEl:B,prevEl:Y}=e.navigation?e.navigation:{};B=mt(B),Y=mt(Y),B&&B.forEach(Z=>k(Z,q,F.nextSlideMessage)),Y&&Y.forEach(Z=>k(Z,q,F.prevSlideMessage)),A()&&mt(e.pagination.el).forEach(fe=>{fe.addEventListener("keydown",x)}),e.el.addEventListener("focus",j,!0),e.el.addEventListener("pointerdown",R,!0),e.el.addEventListener("pointerup",$,!0)};function V(){i&&i.remove();let{nextEl:F,prevEl:z}=e.navigation?e.navigation:{};F=mt(F),z=mt(z),F&&F.forEach(M=>M.removeEventListener("keydown",x)),z&&z.forEach(M=>M.removeEventListener("keydown",x)),A()&&mt(e.pagination.el).forEach(q=>{q.removeEventListener("keydown",x)}),e.el.removeEventListener("focus",j,!0),e.el.removeEventListener("pointerdown",R,!0),e.el.removeEventListener("pointerup",$,!0)}r("beforeInit",()=>{i=Fr("span",e.params.a11y.notificationClass),i.setAttribute("aria-live","assertive"),i.setAttribute("aria-atomic","true")}),r("afterInit",()=>{e.params.a11y.enabled&&H()}),r("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{e.params.a11y.enabled&&W()}),r("fromEdge toEdge afterInit lock unlock",()=>{e.params.a11y.enabled&&b()}),r("paginationUpdate",()=>{e.params.a11y.enabled&&O()}),r("destroy",()=>{e.params.a11y.enabled&&V()})}function gee(t){let{swiper:e,extendParams:n,on:r}=t;n({history:{enabled:!1,root:"",replaceState:!1,key:"slides",keepQuery:!1}});let i=!1,s={};const a=y=>y.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),l=y=>{const w=an();let T;y?T=new URL(y):T=w.location;const E=T.pathname.slice(1).split("/").filter(A=>A!==""),x=E.length,b=E[x-2],C=E[x-1];return{key:b,value:C}},c=(y,w)=>{const T=an();if(!i||!e.params.history.enabled)return;let E;e.params.url?E=new URL(e.params.url):E=T.location;const x=e.slides[w];let b=a(x.getAttribute("data-history"));if(e.params.history.root.length>0){let A=e.params.history.root;A[A.length-1]==="/"&&(A=A.slice(0,A.length-1)),b=`${A}/${y?`${y}/`:""}${b}`}else E.pathname.includes(y)||(b=`${y?`${y}/`:""}${b}`);e.params.history.keepQuery&&(b+=E.search);const C=T.history.state;C&&C.value===b||(e.params.history.replaceState?T.history.replaceState({value:b},null,b):T.history.pushState({value:b},null,b))},f=(y,w,T)=>{if(w)for(let E=0,x=e.slides.length;E<x;E+=1){const b=e.slides[E];if(a(b.getAttribute("data-history"))===w){const A=e.getSlideIndex(b);e.slideTo(A,y,T)}}else e.slideTo(0,y,T)},d=()=>{s=l(e.params.url),f(e.params.speed,s.value,!1)},g=()=>{const y=an();
vendor: 4,190 bytes, line 59
59if(e.params.history){if(!y.history||!y.history.pushState){e.params.history.enabled=!1,e.params.hashNavigation.enabled=!0;return}if(i=!0,s=l(e.params.url),!s.key&&!s.value){e.params.history.replaceState||y.addEventListener("popstate",d);return}f(0,s.value,e.params.runCallbacksOnInit),e.params.history.replaceState||y.addEventListener("popstate",d)}},v=()=>{const y=an();e.params.history.replaceState||y.removeEventListener("popstate",d)};r("init",()=>{e.params.history.enabled&&g()}),r("destroy",()=>{e.params.history.enabled&&v()}),r("transitionEnd _freeModeNoMomentumRelease",()=>{i&&c(e.params.history.key,e.activeIndex)}),r("slideChange",()=>{i&&e.params.cssMode&&c(e.params.history.key,e.activeIndex)})}function mee(t){let{swiper:e,extendParams:n,emit:r,on:i}=t,s=!1;const a=dr(),l=an();n({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1,getSlideIndex(v,y){if(e.virtual&&e.params.virtual.enabled){const w=e.slides.filter(E=>E.getAttribute("data-hash")===y)[0];return w?parseInt(w.getAttribute("data-swiper-slide-index"),10):0}return e.getSlideIndex($n(e.slidesEl,`.${e.params.slideClass}[data-hash="${y}"], swiper-slide[data-hash="${y}"]`)[0])}}});const c=()=>{r("hashChange");const v=a.location.hash.replace("#",""),y=e.virtual&&e.params.virtual.enabled?e.slidesEl.querySelector(`[data-swiper-slide-index="${e.activeIndex}"]`):e.slides[e.activeIndex],w=y?y.getAttribute("data-hash"):"";if(v!==w){const T=e.params.hashNavigation.getSlideIndex(e,v);if(typeof T>"u"||Number.isNaN(T))return;e.slideTo(T)}},f=()=>{if(!s||!e.params.hashNavigation.enabled)return;const v=e.virtual&&e.params.virtual.enabled?e.slidesEl.querySelector(`[data-swiper-slide-index="${e.activeIndex}"]`):e.slides[e.activeIndex],y=v?v.getAttribute("data-hash")||v.getAttribute("data-history"):"";e.params.hashNavigation.replaceState&&l.history&&l.history.replaceState?(l.history.replaceState(null,null,`#${y}`||""),r("hashSet")):(a.location.hash=y||"",r("hashSet"))},d=()=>{if(!e.params.hashNavigation.enabled||e.params.history&&e.params.history.enabled)return;s=!0;const v=a.location.hash.replace("#","");if(v){const w=e.params.hashNavigation.getSlideIndex(e,v);e.slideTo(w||0,0,e.params.runCallbacksOnInit,!0)}e.params.hashNavigation.watchState&&l.addEventListener("hashchange",c)},g=()=>{e.params.hashNavigation.watchState&&l.removeEventListener("hashchange",c)};i("init",()=>{e.params.hashNavigation.enabled&&d()}),i("destroy",()=>{e.params.hashNavigation.enabled&&g()}),i("transitionEnd _freeModeNoMomentumRelease",()=>{s&&f()}),i("slideChange",()=>{s&&e.params.cssMode&&f()})}function vee(t){let{swiper:e,extendParams:n,on:r,emit:i,params:s}=t;e.autoplay={running:!1,paused:!1,timeLeft:0},n({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let a,l,c=s&&s.autoplay?s.autoplay.delay:3e3,f=s&&s.autoplay?s.autoplay.delay:3e3,d,g=new Date().getTime(),v,y,w,T,E,x,b;function C(B){!e||e.destroyed||!e.wrapperEl||B.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",C),!b&&W())}const A=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?v=!0:v&&(f=d,v=!1);const B=e.autoplay.paused?d:g+f-new Date().getTime();e.autoplay.timeLeft=B,i("autoplayTimeLeft",B,B/c),l=requestAnimationFrame(()=>{A()})},O=()=>{let B;return e.virtual&&e.params.virtual.enabled?B=e.slides.filter(Z=>Z.classList.contains("swiper-slide-active"))[0]:B=e.slides[e.activeIndex],B?parseInt(B.getAttribute("data-swiper-autoplay"),10):void 0},k=B=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(l),A();let Y=typeof B>"u"?e.params.autoplay.delay:B;c=e.params.autoplay.delay,f=e.params.autoplay.delay;const Z=O();!Number.isNaN(Z)&&Z>0&&typeof B>"u"&&(Y=Z,c=Z,f=Z),d=Y;const fe=e.params.speed,K=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(fe,!0,!0),i("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,fe,!0,!0),i("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(fe,!0,!0),i("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,fe,!0,!0),i("autoplay")),e.params.cssMode&&(g=ne
vendor: 5,098 bytes, line 59
59w Date().getTime(),requestAnimationFrame(()=>{k()})))};return Y>0?(clearTimeout(a),a=setTimeout(()=>{K()},Y)):requestAnimationFrame(()=>{K()}),Y},R=()=>{g=new Date().getTime(),e.autoplay.running=!0,k(),i("autoplayStart")},$=()=>{e.autoplay.running=!1,clearTimeout(a),cancelAnimationFrame(l),i("autoplayStop")},j=(B,Y)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(a),B||(x=!0);const Z=()=>{i("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",C):W()};if(e.autoplay.paused=!0,Y){E&&(d=e.params.autoplay.delay),E=!1,Z();return}d=(d||e.params.autoplay.delay)-(new Date().getTime()-g),!(e.isEnd&&d<0&&!e.params.loop)&&(d<0&&(d=0),Z())},W=()=>{e.isEnd&&d<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(g=new Date().getTime(),x?(x=!1,k(d)):k(),e.autoplay.paused=!1,i("autoplayResume"))},H=()=>{if(e.destroyed||!e.autoplay.running)return;const B=dr();B.visibilityState==="hidden"&&(x=!0,j(!0)),B.visibilityState==="visible"&&W()},V=B=>{B.pointerType==="mouse"&&(x=!0,b=!0,!(e.animating||e.autoplay.paused)&&j(!0))},F=B=>{B.pointerType==="mouse"&&(b=!1,e.autoplay.paused&&W())},z=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",V),e.el.addEventListener("pointerleave",F))},M=()=>{e.el.removeEventListener("pointerenter",V),e.el.removeEventListener("pointerleave",F)},q=()=>{dr().addEventListener("visibilitychange",H)},U=()=>{dr().removeEventListener("visibilitychange",H)};r("init",()=>{e.params.autoplay.enabled&&(z(),q(),R())}),r("destroy",()=>{M(),U(),e.autoplay.running&&$()}),r("_freeModeStaticRelease",()=>{(w||x)&&W()}),r("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?$():j(!0,!0)}),r("beforeTransitionStart",(B,Y,Z)=>{e.destroyed||!e.autoplay.running||(Z||!e.params.autoplay.disableOnInteraction?j(!0,!0):$())}),r("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){$();return}y=!0,w=!1,x=!1,T=setTimeout(()=>{x=!0,w=!0,j(!0)},200)}}),r("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!y)){if(clearTimeout(T),clearTimeout(a),e.params.autoplay.disableOnInteraction){w=!1,y=!1;return}w&&e.params.cssMode&&W(),w=!1,y=!1}}),r("slideChange",()=>{e.destroyed||!e.autoplay.running||(E=!0)}),Object.assign(e.autoplay,{start:R,stop:$,pause:j,resume:W})}function yee(t){let{swiper:e,extendParams:n,on:r}=t;n({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let i=!1,s=!1;e.thumbs={swiper:null};function a(){const f=e.thumbs.swiper;if(!f||f.destroyed)return;const d=f.clickedIndex,g=f.clickedSlide;if(g&&g.classList.contains(e.params.thumbs.slideThumbActiveClass)||typeof d>"u"||d===null)return;let v;f.params.loop?v=parseInt(f.clickedSlide.getAttribute("data-swiper-slide-index"),10):v=d,e.params.loop?e.slideToLoop(v):e.slideTo(v)}function l(){const{thumbs:f}=e.params;if(i)return!1;i=!0;const d=e.constructor;if(f.swiper instanceof d)e.thumbs.swiper=f.swiper,Object.assign(e.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(e.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}),e.thumbs.swiper.update();else if(Pf(f.swiper)){const g=Object.assign({},f.swiper);Object.assign(g,{watchSlidesProgress:!0,slideToClickedSlide:!1}),e.thumbs.swiper=new d(g),s=!0}return e.thumbs.swiper.el.classList.add(e.params.thumbs.thumbsContainerClass),e.thumbs.swiper.on("tap",a),!0}function c(f){const d=e.thumbs.swiper;if(!d||d.destroyed)return;const g=d.params.slidesPerView==="auto"?d.slidesPerViewDynamic():d.params.slidesPerView;let v=1;const y=e.params.thumbs.slideThumbActiveClass;if(e.params.slidesPerView>1&&!e.params.centeredSlides&&(v=e.params.slidesPerView),e.params.thumbs.multipleActiveThumbs||(v=1),v=Math.floor(v),d.slides.forEach(E=>E.classList.remove(y)),d.params.loop||d.params.virtual&&d.params.virtual.enabled)for(let E=0;E<v;E+=1)$n(d.slidesEl,`[data-swiper-slide-index="${e.realIndex+E}"]`).forEach(x=>{x.classList.add(y)});else for(let E=0;E<v;E+=1)d.slides[e.realIndex+E]&&d.slides[e.realIndex+E].classList.add(y);const w=e.params.thumbs.autoScrollOffset,T=w&&!d.params.loop;if(e.realIndex!==d.realIndex||T){const E=d.activeIndex;let x,b;if(d.params.loop){const C=d.slides.filter(A=>A.getAttribute("data-swiper-slide-index")===`${e.realIndex}`)[0];x=d.slides.indexOf(C),b=e.activeIndex>e.previousIndex?"next":"prev"}else x=e.realIndex,b=x>e.previousIndex?"next":"prev";T&&(x+=b==="next"?w:-1*w),d.visibleSlidesIndexes&&d.visibleSlidesIndexes.indexOf(x)<0&&(d.params.centeredSlides?x>E?x=x-Math.floor(g/2)+1:x=x+Math.floor(g/2)-1:x>E&&d.params.slidesPerGroup,d.slideTo(x,f?0:void 0))}}r("beforeInit",()=>{const{thumbs:f}=e.params;if(!(!f||!f.swiper))if(typeof f.swiper=="string"||f.swiper instanceof HTMLElement){const d=dr(),g=()=>{const y=typeof f.swiper=="string"?d.querySelector(f.swiper):f.swiper;if(y&&y.swiper)f.swiper=y.swiper,l(),c(!0);else if(y){const w=T=>{f.swiper=T.detail[0],y.removeEventListener("init",w),l(),c(!0),f.swiper.update(
59),e.update()};y.addEventListener("init",w)}return y},v=()=>{if(e.destroyed)return;g()||requestAnimationFrame(v)};requestAnimationFrame(v)}else l(),c(!0)}),r("slideChange update resize observerUpdate",()=>{c()}),r("setTransition",(f,d)=>{const g=e.thumbs.swiper;!g||g.destroyed||g.setTransition(d)}),r("beforeDestroy",()=>{const f=e.thumbs.swiper;!f||f.destroyed||s&&f.destroy()}),Object.assign(e.thumbs,{init:l,update:c})}function wee(t){let{swiper:e,extendParams:n,emit:r,once:i}=t;n({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}});function s(){if(e.params.cssMode)return;const c=e.getTranslate();e.setTranslate(c),e.setTransition(0),e.touchEventsData.velocities.length=0,e.freeMode.onTouchEnd({currentPos:e.rtl?e.translate:-e.translate})}function a(){if(e.params.cssMode)return;const{touchEventsData:c,touches:f}=e;c.velocities.length===0&&c.velocities.push({position:f[e.isHorizontal()?"startX":"startY"],time:c.touchStartTime}),c.velocities.push({position:f[e.isHorizontal()?"currentX":"currentY"],time:ui()})}function l(c){let{currentPos:f}=c;if(e.params.cssMode)return;const{params:d,wrapperEl:g,rtlTranslate:v,snapGrid:y,touchEventsData:w}=e,E=ui()-w.touchStartTime;if(f<-e.minTranslate()){e.slideTo(e.activeIndex);return}if(f>-e.maxTranslate()){e.slides.length<y.length?e.slideTo(y.length-1):e.slideTo(e.slides.length-1);return}if(d.freeMode.momentum){if(w.velocities.length>1){const $=w.velocities.pop(),j=w.velocities.pop(),W=$.position-j.position,H=$.time-j.time;e.velocity=W/H,e.velocity/=2,Math.abs(e.velocity)<d.freeMode.minimumVelocity&&(e.velocity=0),(H>150||ui()-$.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=d.freeMode.momentumVelocityRatio,w.velocities.length=0;let x=1e3*d.freeMode.momentumRatio;const b=e.velocity*x;let C=e.translate+b;v&&(C=-C);let A=!1,O;const k=Math.abs(e.velocity)*20*d.freeMode.momentumBounceRatio;let R;if(C<e.maxTranslate())d.freeMode.momentumBounce?(C+e.maxTranslate()<-k&&(C=e.maxTranslate()-k),O=e.maxTranslate(),A=!0,w.allowMomentumBounce=!0):C=e.maxTranslate(),d.loop&&d.centeredSlides&&(R=!0);else if(C>e.minTranslate())d.freeMode.momentumBounce?(C-e.minTranslate()>
vendor: 4,511 bytes, line 59
59k&&(C=e.minTranslate()+k),O=e.minTranslate(),A=!0,w.allowMomentumBounce=!0):C=e.minTranslate(),d.loop&&d.centeredSlides&&(R=!0);else if(d.freeMode.sticky){let $;for(let j=0;j<y.length;j+=1)if(y[j]>-C){$=j;break}Math.abs(y[$]-C)<Math.abs(y[$-1]-C)||e.swipeDirection==="next"?C=y[$]:C=y[$-1],C=-C}if(R&&i("transitionEnd",()=>{e.loopFix()}),e.velocity!==0){if(v?x=Math.abs((-C-e.translate)/e.velocity):x=Math.abs((C-e.translate)/e.velocity),d.freeMode.sticky){const $=Math.abs((v?-C:C)-e.translate),j=e.slidesSizesGrid[e.activeIndex];$<j?x=d.speed:$<2*j?x=d.speed*1.5:x=d.speed*2.5}}else if(d.freeMode.sticky){e.slideToClosest();return}d.freeMode.momentumBounce&&A?(e.updateProgress(O),e.setTransition(x),e.setTranslate(C),e.transitionStart(!0,e.swipeDirection),e.animating=!0,qf(g,()=>{!e||e.destroyed||!w.allowMomentumBounce||(r("momentumBounce"),e.setTransition(d.speed),setTimeout(()=>{e.setTranslate(O),qf(g,()=>{!e||e.destroyed||e.transitionEnd()})},0))})):e.velocity?(r("_freeModeNoMomentumRelease"),e.updateProgress(C),e.setTransition(x),e.setTranslate(C),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,qf(g,()=>{!e||e.destroyed||e.transitionEnd()}))):e.updateProgress(C),e.updateActiveIndex(),e.updateSlidesClasses()}else if(d.freeMode.sticky){e.slideToClosest();return}else d.freeMode&&r("_freeModeNoMomentumRelease");(!d.freeMode.momentum||E>=d.longSwipesMs)&&(r("_freeModeStaticRelease"),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}Object.assign(e,{freeMode:{onTouchStart:s,onTouchMove:a,onTouchEnd:l}})}function bee(t){let{swiper:e,extendParams:n,on:r}=t;n({grid:{rows:1,fill:"column"}});let i,s,a,l;const c=()=>{let T=e.params.spaceBetween;return typeof T=="string"&&T.indexOf("%")>=0?T=parseFloat(T.replace("%",""))/100*e.size:typeof T=="string"&&(T=parseFloat(T)),T},f=T=>{const{slidesPerView:E}=e.params,{rows:x,fill:b}=e.params.grid,C=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:T.length;a=Math.floor(C/x),Math.floor(C/x)===C/x?i=C:i=Math.ceil(C/x)*x,E!=="auto"&&b==="row"&&(i=Math.max(i,E*x)),s=i/x},d=()=>{e.slides&&e.slides.forEach(T=>{T.swiperSlideGridSet&&(T.style.height="",T.style[e.getDirectionLabel("margin-top")]="")})},g=(T,E,x)=>{const{slidesPerGroup:b}=e.params,C=c(),{rows:A,fill:O}=e.params.grid,k=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:x.length;let R,$,j;if(O==="row"&&b>1){const W=Math.floor(T/(b*A)),H=T-A*b*W,V=W===0?b:Math.min(Math.ceil((k-W*A*b)/A),b);j=Math.floor(H/V),$=H-j*V+W*b,R=$+j*i/A,E.style.order=R}else O==="column"?($=Math.floor(T/A),j=T-$*A,($>a||$===a&&j===A-1)&&(j+=1,j>=A&&(j=0,$+=1))):(j=Math.floor(T/s),$=T-j*s);E.row=j,E.column=$,E.style.height=`calc((100% - ${(A-1)*C}px) / ${A})`,E.style[e.getDirectionLabel("margin-top")]=j!==0?C&&`${C}px`:"",E.swiperSlideGridSet=!0},v=(T,E)=>{const{centeredSlides:x,roundLengths:b}=e.params,C=c(),{rows:A}=e.params.grid;if(e.virtualSize=(T+C)*i,e.virtualSize=Math.ceil(e.virtualSize/A)-C,e.params.cssMode||(e.wrapperEl.style[e.getDirectionLabel("width")]=`${e.virtualSize+C}px`),x){const O=[];for(let k=0;k<E.length;k+=1){let R=E[k];b&&(R=Math.floor(R)),E[k]<e.virtualSize+E[0]&&O.push(R)}E.splice(0,E.length),E.push(...O)}},y=()=>{l=e.params.grid&&e.params.grid.rows>1},w=()=>{const{params:T,el:E}=e,x=T.grid&&T.grid.rows>1;l&&!x?(E.classList.remove(`${T.containerModifierClass}grid`,`${T.containerModifierClass}grid-column`),a=1,e.emitContainerClasses()):!l&&x&&(E.classList.add(`${T.containerModifierClass}grid`),T.grid.fill==="column"&&E.classList.add(`${T.containerModifierClass}grid-column`),e.emitContainerClasses()),l=x};r("init",y),r("update",w),e.grid={initSlides:f,unsetSlides:d,updateSlide:g,updateWrapperSize:v}}function xee(t){const e=this,{params:n,slidesEl:r}=e;n.loop&&e.loopDestroy();const i=s=>{if(typeof s=="string"){const a=document.createElement("div");a.innerHTML=s,r.append(a.children[0]),a.innerHTML=""}else r.append(s)};if(typeof t=="object"&&"length"in t)for(let s=0;s<t.length;s+=1)t[s]&&i(t[s]);else i(t);e.recalcSlides(),n.loop&&e.loopCreate(),(!n.observer||e.isElement)&&e.update()}function See(t){const e=this,{params:n,activeIndex:r,slidesEl:i}=e;n.loop&&e.loopDestroy();let s=r+1;const a=l=>{if(typeof l=="string"){const c=document.createElement("div");c.innerHTML=l,i.prepend(c.children[0]),c.innerHTML=""}else i.prepend(l)};if(typeof t=="object"&&"length"in t){for(let l=0;l<t.length;l+=1)t[l]&&a(t[l]);s=r+t.length}else a(t);e.recalcSlides(),n.loop&&e.loopCreate(),(!n.observer||e.isElement)&&e.update(
59),e.slideTo(s,0,!1)}function Eee(t,e){const n=this,{params:r,activeIndex:i,slidesEl:s}=n;let a=i;r.loop&&(a-=n.loopedSlides,n.loopDestroy(),n.recalcSlides());const l=n.slides.length;if(t<=0){n.prependSlide(e);return}if(t>=l){n.appendSlide(e);return}let c=a>t?a+1:a;const f=[];for(let d=l-1;d>=t;d-=1){const g=n.slides[d];g.remove(),f.unshift(g)}if(typeof e=="object"&&"length"in e){for(let d=0;d<e.length;d+=1)e[d]&&s.append(e[d]);c=a>t?a+e.length:a}else s.append(e);for(let d=0;d<f.length;d+=1)s.append(f[d]);n.recalcSlides(),r.loop&&n.loopCreate(),(!r.observer||n.isElement)&&n.update(),r.loop?n.slideTo(c+n.loopedSlides,0,!1):n.slideTo(c,0,!1)}function Cee(t){const e=this,{params:n,activeIndex:r}=e;let i=r;n.loop&&(i-=e.loopedSlides,e.loopDestroy());let s=i,a;if(typeof t=="object"&&"length"in t){for(let l=0;l<t.length;l+=1)a=t[l],e.slides[a]&&e.slides[a].remove(),a<s&&(s-=1);s=Math.max(s,0)}else a=t,e.slides[a]&&e.slides[a].remove(),a<s&&(s-=1),s=Math.max(s,0);e.recalcSlides(),n.loop&&e.loopCreate(),(!n.observer||e.isElement)&&e.update(),n.loop?e.slideTo(s+e.loopedSlides,0,!1):e.slideTo(s,0,!1)}function Tee(){const t=this,e=[];for(let n=0;n<t.slides.length;n+=1)e.push(n);t.removeSlide(e)}function _ee(t){let{swiper:e}=t;Object.assign(e,{appendSlide:xee.bind(e),prependSlide:See.bind(e),addSlide:Eee.bind(e),removeSlide:Cee.bind(e),removeAllSlides:Tee.bind(e)})}function uc(t){const{effect:e,swiper:n,on:r,setTranslate:i,setTransition:s,overwriteParams:a,perspective:l,recreateShadows:c,getEffectParams:f}=t;r("beforeInit",()=>{if(n.params.effect!==e)return;n.classNames.push(`${n.params.containerModifierClass}${e}`),l&&l()&&n.classNames.push(`${n.params.containerModifierClass}3d`);const g=a?a():{};Object.assign(n.params,g),Object.assign(n.originalParams,g)}),r("setTranslate",()=>{n.params.effect===e&&i()}),r("setTransition",(g,v)=>{n.params.effect===e&&s(v)}),r("transitionEnd",()=>{if(n.params.effect===e&&c){if(!f||!f().slideShadows)return;n.slides.forEach(g=>{g.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(v=>v.remove())}),c()}});let d;r("virtualUpdate",()=>{n.params.effect===e&&(n.slides.length||(d=!0),requestAnimationFrame(()=>{d&&n.slides&&n.slides.length&&(i(),d=!1)}))})}function Kd(t,e){const n=xl(e);return n!==e&&(n.style.backfaceVisibility="hidden",n.style["-webkit-backface-visibility"]="hidden"),n}function Cv(t){let{swiper:e,duration:n,transformElements:r,allSlides:i}=t;const{activeIndex:s}=e,a=l=>l.parentElement?l.parentElement:e.slides.filter(f=>f.shadowRoot&&f.shadowRoot===l.parentNode)[0];if(e.params.virtualTranslate&&n!==0){let l=!1,c;i?c=r:c=r.filter(f=>{const d=f.classList.contains("swiper-slide-transform")?a(f):f;return e.getSlideIndex(d)===s}),c.forEach(f=>{qf(f,()=>{if(l||!e||e.destroyed)return;l=!0,e.animating=!1;const d=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});e.wrapperEl.dispatchEvent(d)})})}}function Aee(t){let{swiper:e,extendParams:n,on:r}=t;n({fadeEffect:{crossFade:!1}}),uc({effect:"fade",swiper:e,on:r,setTranslate:()=>{const{slides:a}=e,l=e.params.fadeEffect;for(let c=0;c<a.length;c+=1){const f=e.slides[c];let g=-f.swiperSlideOffset;e.params.virtualTranslate||(g-=e.translate);let v=0;e.isHorizontal()||(v=g,g=0);const y=e.params.fadeEffect.crossFade?Math.max(1-Math.abs(f.progress),0):1+Math.min(Math.max(f.progress,-1),0),w=Kd(l,f);w.style.opacity=y,w.style.transform=`translate3d(${g}px, ${v}px, 0px)`}},setTransition:a=>{const l=e.slides.map(c=>xl(c));l.forEach(c=>{c.style.transitionDuration=`${a}ms`}),Cv({swiper:e,duration:a,transformElements:l,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!e.params.cssMode})})}function kee(t){let{swiper:e,extendParams:n,on:r}=t;n({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});const i=(c,f,d)=>{let g=d?c.querySelector(".swiper-slide-shadow-left"):c.querySelector(".swiper-slide-shadow-top"),v=d?c.querySelector(".swiper-slide-shadow-right"):c.querySelector(".swiper-slide-shadow-bottom");g||(g=Fr("div",`swiper-slide-shadow-cube swiper-slide-shadow-${d?"left":"top"}`.split(" ")),c.append(g)),v||(v=Fr("div",`swiper-slide-shadow-cube swiper-slide-shadow-${d?"right":"bottom"}`.split(" ")),c.append(v)),g&&(g.style.opacity=Math.max(-f,0)),v&&(v.style.opacity=Math.max(f,0))};uc({effect:"cube",swiper:e,on:r,setTranslate:()=>{const{el:c,wrapperEl:f,slides:d,width:g,height:v,rtlTranslate:y,size:w,browser:T}=e,E=e.params.cubeEffect,x=e.isHorizontal(),b=e.virtual&&e.params.virtual.enabled;let C=0,A;E.shadow&&(x?(A=e.wrapperEl.querySelector(".swiper-cube-shadow"),A||(A=Fr("div","swiper-cube-shadow"),e.wrapperEl.append(A)),A.style.height=`${g}px`):(A=c.querySelector(".swiper-cube-shadow"),A||(A=Fr("div","swiper-cube-shadow"),c.append(A))));for(let k=0;k<d.length;k+=1){const R=d[k];let $=k;b&&($=parseInt(R.getAttribute("data-swiper-slide-index"),10));let j=$*90,W=Math.floor(j/360);y&&(j=-j,W=Math.floor(-j/360));
59const H=Math.max(Math.min(R.progress,1),-1);let V=0,F=0,z=0;$%4===0?(V=-W*4*w,z=0):($-1)%4===0?(V=0,z=-W*4*w):($-2)%4===0?(V=w+W*4*w,z=w):($-3)%4===0&&(V=-w,z=3*w+w*4*W),y&&(V=-V),x||(F=V,V=0);const M=`rotateX(${x?0:-j}deg) rotateY(${x?j:0}deg) translate3d(${V}px, ${F}px, ${z}px)`;H<=1&&H>-1&&(C=$*90+H*90,y&&(C=-$*90-H*90),e.browser&&e.browser.need3dFix&&Math.abs(C)/90%2===1&&(C+=.001)),R.style.transform=M,E.slideShadows&&i(R,H,x)}if(f.style.transformOrigin=`50% 50% -${w/2}px`,f.style["-webkit-transform-origin"]=`50% 50% -${w/2}px`,E.shadow)if(x)A.style.transform=`translate3d(0px, ${g/2+E.shadowOffset}px, ${-g/2}px) rotateX(89.99deg) rotateZ(0deg) scale(${E.shadowScale})`;else{const k=Math.abs(C)-Math.floor(Math.abs(C)/90)*90,R=1.5-(Math.sin(k*2*Math.PI/360)/2+Math.cos(k*2*Math.PI/360)/2),$=E.shadowScale,j=E.shadowScale/R,W=E.shadowOffset;A.style.transform=`scale3d(${$}, 1, ${j}) translate3d(0px, ${v/2+W}px, ${-v/2/j}px) rotateX(-89.99deg)`}const O=(T.isSafari||T.isWebView)&&T.needPerspectiveFix?-w/2:0;f.style.transform=`translate3d(0px,0,${O}px) rotateX(${e.isHorizontal()?0:C}deg) rotateY(${e.isHorizontal()?-C:0}deg)`,f.style.setProperty("--swiper-cube-translate-z",`${O}px`)},setTransition:c=>{const{el:f,slides:d}=e;if(d.forEach(g=>{g.style.transitionDuration=`${c}ms`,g.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(v=>{v.style.transitionDuration=`${c}ms`})}),e.params.cubeEffect.shadow&&!e.isHorizontal()){const g=f.querySelector(".swiper-cube-shadow");g&&(g.style.transitionDuration=`${c}ms`)}},recreateShadows:()=>{const c=e.isHorizontal();e.slides.forEach(f=>{const d=Math.max(Math.min(f.progress,1),-1);i(f,d,c)})},getEffectParams:()=>e.params.cubeEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})}function Vu(t,e,n){const r=`swiper-slide-shadow${n?`-${n}`:""}${t?` swiper-slide-shadow-${t}`:""}`,i=xl(e);let s=i.querySelector(`.${r.split(" ").join(".")}`);return s||(s=Fr("div",r.split(" ")),i.append(s)),s}function Lee(t){let{swiper:e,extendParams:n,on:r}=t;n({flipEffect:{slideShadows:!0,limitRotation:!0}});const i=(c,f)=>{let d=e.isHorizontal()?c.querySelector(".swiper-slide-shadow-left"):c.querySelector(".swiper-slide-shadow-top"),g=e.isHorizontal()?c.querySelector(".swiper-slide-shadow-right"):c.querySelector(".swiper-slide-shadow-bottom");d||(d=Vu("flip",c,e.isHorizontal()?"left":"top")),g||(g=Vu("flip",c,e.isHorizontal()?"right":"bottom")),d&&(d.style.opacity=Math.max(-f,0)),g&&(g.style.opacity=Math.max(f,0))};uc({effect:"flip",swiper:e,on:r,setTranslate:()=>{const{slides:c,rtlTranslate:f}=e,d=e.params.flipEffect;for(let g=0;g<c.length;g+=1){const v=c[g];let y=v.progress;e.params.flipEffect.limitRotation&&(y=Math.max(Math.min(v.progress,1),-1));const w=v.swiperSlideOffset;let E=-180*y,x=0,b=e.params.cssMode?-w-e.translate:-w,C=0;e.isHorizontal()?f&&(E=-E):(C=b,b=0,x=-E,E=0),e.browser&&e.browser.need3dFix&&(Math.abs(E)/90%2===1&&(E+=.001),Math.abs(x)/90%2===1&&(x+=.001)),v.style.zIndex=-Math.abs(Math.round(y))+c.length,d.slideShadows&&i(v,y);const A=`translate3d(${b}px, ${C}px, 0px) rotateX(${x}deg) rotateY(${E}deg)`,O=Kd(d,v);O.style.transform=A}},setTransition:c=>{const f=e.slides.map(d=>xl(d));f.forEach(d=>{d.style.transitionDuration=`${c}ms`,d.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(g=>{g.style.transitionDuration=`${c}ms`})}),Cv({swiper:e,duration:c,transformElements:f})},recreateShadows:()=>{e.params.flipEffect,e.slides.forEach(c=>{let f=c.progress;e.params.flipEffect.limitRotation&&(f=Math.max(Math.min(c.progress,1),-1)),i(c,f)})},getEffectParams:()=>e.params.flipEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!e.params.cssMode})})}function Oee(t){let{swiper:e,extendParams:n,on:r}=t;n({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}}),uc({effect:"coverflow",swiper:e,on:r,setTranslate:()=>{const{width:a,height:l,slides:c,slidesSizesGrid:f}=e,d=e.params.coverflowEffect,g=e.isHorizontal(),v=e.translate,y=g?-v+a/2:-v+l/2,w=g?d.rotate:-d.rotate,T=d.depth;for(let E=0,x=c.length;E<x;E+=1){const b=c[E],C=f[E],A=b.swiperSlideOffset,O=(y-A-C/2)/C,k=typeof d.modifier=="function"?d.modifier(O):O*d.modifier;let R=g?w*k:0,$=g?0:w*k,j=-T*Math.abs(k),W=d.stretch;typeof W=="string"&&W.indexOf("%")!==-1&&(W=parseFloat(d.stretch)/100*C);let H=g?0:W*k,V=g?W*k:0,F=1-(1-d.scale)*Math.abs(k);Math.abs(V)<.001&&(V=0),Math.abs(H)<.001&&(H=0),Math.abs(j)<.001&&(j=0),Math.abs(R)<.001&&(R=0),Math.abs($)<.001&&($=0),Math.abs(F)<.001&&(F=0),e.browser&&e.browser.need3dFix&&(Math.abs(R)/90%2===1&&(R+=.001),Math.abs($)/90%2===1&&($+=.001));const z=`translate3d(${V}px,${H}px,${j}px)  rotateX(${$}deg) rotateY(${R}deg) scale(${F})`,M=Kd(d,b);if(M.style.transform=z,b.style.zIndex=-Math.abs(Math.round(k))+1,d.slideShadows){let q=g?b.querySelector(".swiper-slide-shadow-left"):b.querySelector(".swiper-slide-shadow-top"),U=g?b.querySelector(".swiper-slide-shadow-right"):b.querySelector(".swiper-slide-shadow-bottom");
59q||(q=Vu("coverflow",b,g?"left":"top")),U||(U=Vu("coverflow",b,g?"right":"bottom")),q&&(q.style.opacity=k>0?k:0),U&&(U.style.opacity=-k>0?-k:0)}}},setTransition:a=>{e.slides.map(c=>xl(c)).forEach(c=>{c.style.transitionDuration=`${a}ms`,c.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(f=>{f.style.transitionDuration=`${a}ms`})})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})}function Iee(t){let{swiper:e,extendParams:n,on:r}=t;n({creativeEffect:{limitProgress:1,shadowPerProgress:!1,progressMultiplier:1,perspective:!0,prev:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1},next:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1}}});const i=l=>typeof l=="string"?l:`${l}px`;uc({effect:"creative",swiper:e,on:r,setTranslate:()=>{const{slides:l,wrapperEl:c,slidesSizesGrid:f}=e,d=e.params.creativeEffect,{progressMultiplier:g}=d,v=e.params.centeredSlides;if(v){const y=f[0]/2-e.params.slidesOffsetBefore||0;c.style.transform=`translateX(calc(50% - ${y}px))`}for(let y=0;y<l.length;y+=1){const w=l[y],T=w.progress,E=Math.min(Math.max(w.progress,-d.limitProgress),d.limitProgress);let x=E;v||(x=Math.min(Math.max(w.originalProgress,-d.limitProgress),d.limitProgress));const b=w.swiperSlideOffset,C=[e.params.cssMode?-b-e.translate:-b,0,0],A=[0,0,0];let O=!1;e.isHorizontal()||(C[1]=C[0],C[0]=0);let k={translate:[0,0,0],rotate:[0,0,0],scale:1,opacity:1};E<0?(k=d.next,O=!0):E>0&&(k=d.prev,O=!0),C.forEach((F,z)=>{C[z]=`calc(${F}px + (${i(k.translate[z])} * ${Math.abs(E*g)}))`}),A.forEach((F,z)=>{let M=k.rotate[z]*Math.abs(E*g);e.browser&&e.browser.need3dFix&&Math.abs(M)/90%2===1&&(M+=.001),A[z]=M}),w.style.zIndex=-Math.abs(Math.round(T))+l.length;const R=C.join(", "),$=`rotateX(${A[0]}deg) rotateY(${A[1]}deg) rotateZ(${A[2]}deg)`,j=x<0?`scale(${1+(1-k.scale)*x*g})`:`scale(${1-(1-k.scale)*x*g})`,W=x<0?1+(1-k.opacity)*x*g:1-(1-k.opacity)*x*g,H=`translate3d(${R}) ${$} ${j}`;if(O&&k.shadow||!O){let F=w.querySelector(".swiper-slide-shadow");if(!F&&k.shadow&&(F=Vu("creative",w)),F){const z=d.shadowPerProgress?E*(1/d.limitProgress):E;F.style.opacity=Math.min(Math.max(Math.abs(z),0),1)}}const V=Kd(d,w);V.style.transform=H,V.style.opacity=W,k.origin&&(V.style.transformOrigin=k.origin)}},setTransition:l=>{const c=e.slides.map(f=>xl(f));c.forEach(f=>{f.style.transitionDuration=`${l}ms`,f.querySelectorAll(".swiper-slide-shadow").forEach(d=>{d.style.transitionDuration=`${l}ms`})}),Cv({swiper:e,duration:l,transformElements:c,allSlides:!0})},perspective:()=>e.params.creativeEffect.perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!e.params.cssMode})})}function Pee(t){let{swiper:e,extendParams:n,on:r}=t;n({cardsEffect:{slideShadows:!0,rotate:!0,perSlideRotate:2,perSlideOffset:8}}),uc({effect:"cards",swiper:e,on:r,setTranslate:()=>{const{slides:a,activeIndex:l,rtlTranslate:c}=e,f=e.params.cardsEffect,{startTranslate:d,isTouched:g}=e.touchEventsData,v=c?-e.translate:e.translate;for(let y=0;y<a.length;y+=1){const w=a[y],T=w.progress,E=Math.min(Math.max(T,-4),4);let x=w.swiperSlideOffset;e.params.centeredSlides&&!e.params.cssMode&&(e.wrapperEl.style.transform=`translateX(${e.minTranslate()}px)`),e.params.centeredSlides&&e.params.cssMode&&(x-=a[0].swiperSlideOffset);let b=e.params.cssMode?-x-e.translate:-x,C=0;const A=-100*Math.abs(E);let O=1,k=-f.perSlideRotate*E,R=f.perSlideOffset-Math.abs(E)*.75;const $=e.virtual&&e.params.virtual.enabled?e.virtual.from+y:y,j=($===l||$===l-1)&&E>0&&E<1&&(g||e.params.cssMode)&&v<d,W=($===l||$===l+1)&&E<0&&E>-1&&(g||e.params.cssMode)&&v>d;if(j||W){const z=(1-Math.abs((Math.abs(E)-.5)/.5))**.5;k+=-28*E*z,O+=-.5*z,R+=96*z,C=`${-25*z*Math.abs(E)}%`}if(E<0?b=`calc(${b}px ${c?"-":"+"} (${R*Math.abs(E)}%))`:E>0?b=`calc(${b}px ${c?"-":"+"} (-${R*Math.abs(E)}%))`:b=`${b}px`,!e.isHorizontal()){const z=C;C=b,b=z}const H=E<0?`${1+(1-O)*E}`:`${1-(1-O)*E}`,V=`
60        translate3d(${b}, ${C}, ${A}px)
61        rotateZ(${f.rotate?c?-k:k:0}deg)
62        scale(${H})
63      `;if(f.slideShadows){let z=w.querySelector(".swiper-slide-shadow");z||(z=Vu("cards",w)),z&&(z.style.opacity=Math.min(Math.max((Math.abs(E)-.5)/.5,0),1))}w.style.zIndex=-Math.abs(Math.round(T))+a.length;const F=Kd(f,w);F.style.transform=V}},setTransition:a=>{const l=e.slides.map(c=>xl(c));l.forEach(c=>{c.style.transitionDuration=`${a}ms`,c.querySelectorAll(".swiper-slide-shadow").forEach(f=>{f.style.transitionDuration=`${a}ms`})}),Cv({swiper:e,duration:a,transformElements:l})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!e.params.cssMode})})}const Ree=[see,oee,aee,lee,uee,cee,fee,dee,pee,hee,gee,mee,vee,yee,wee,bee,_ee,Aee,kee,Lee,Oee,Iee,Pee];Rr.use(Ree);const Tv=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesB
63ounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function Ku(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"&&!t.__swiper__}function Px(t,e){const n=["__proto__","constructor","prototype"];Object.keys(e).filter(r=>n.indexOf(r)<0).forEach(r=>{typeof t[r]>"u"?t[r]=e[r]:Ku(e[r])&&Ku(t[r])&&Object.keys(e[r]).length>0?e[r].__swiper__?t[r]=e[r]:Px(t[r],e[r]):t[r]=e[r]})}function Mee(t){return t===void 0&&(t={}),t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function Dee(t){return t===void 0&&(t={}),t.pagination&&typeof t.pagination.el>"u"}function Nee(t){return t===void 0&&(t={}),t.scrollbar&&typeof t.scrollbar.el>"u"}function Gh(t){return t===void 0&&(t=""),t.replace(/-[a-z]/g,e=>e.toUpperCase().replace("-",""))}function $ee(t){let{swiper:e,slides:n,passedParams:r,changedParams:i,nextEl:s,prevEl:a,scrollbarEl:l,paginationEl:c}=t;const f=i.filter(j=>j!=="children"&&j!=="direction"&&j!=="wrapperClass"),{params:d,pagination:g,navigation:v,scrollbar:y,virtual:w,thumbs:T}=e;let E,x,b,C,A,O,k,R;i.includes("thumbs")&&r.thumbs&&r.thumbs.swiper&&d.thumbs&&!d.thumbs.swiper&&(E=!0),i.includes("controller")&&r.controller&&r.controller.control&&d.controller&&!d.controller.control&&(x=!0),i.includes("pagination")&&r.pagination&&(r.pagination.el||c)&&(d.pagination||d.pagination===!1)&&g&&!g.el&&(b=!0),i.includes("scrollbar")&&r.scrollbar&&(r.scrollbar.el||l)&&(d.scrollbar||d.scrollbar===!1)&&y&&!y.el&&(C=!0),i.includes("navigation")&&r.navigation&&(r.navigation.prevEl||a)&&(r.navigation.nextEl||s)&&(d.navigation||d.navigation===!1)&&v&&!v.prevEl&&!v.nextEl&&(A=!0);const $=j=>{e[j]&&(e[j].destroy(),j==="navigation"?(e.isElement&&(e[j].prevEl.remove(),e[j].nextEl.remove()),d[j].prevEl=void 0,d[j].nextEl=void 0,e[j].prevEl=void 0,e[j].nextEl=void 0):(e.isElement&&e[j].el.remove(),d[j].el=void 0,e[j].el=void 0))};i.includes("loop")&&e.isElement&&(d.loop&&!r.loop?O=!0:!d.loop&&r.loop?k=!0:R=!0),f.forEach(j=>{if(Ku(d[j])&&Ku(r[j]))Object.assign(d[j],r[j]),(j==="navigation"||j==="pagination"||j==="scrollbar")&&"enabled"in r[j]&&!r[j].enabled&&$(j);else{const W=r[j];(W===!0||W===!1)&&(j==="navigation"||j==="pagination"||j==="scrollbar")?W===!1&&$(j):d[j]=r[j]}}),f.includes("controller")&&!x&&e.controller&&e.controller.control&&d.controller&&d.controller.control&&(e.controller.control=d.controller.control),i.includes("children")&&n&&w&&d.virtual.enabled?(w.slides=n,w.update(!0)):i.includes("virtual")&&w&&d.virtual.enabled&&(n&&(w.slides=n),w.update(!0)),i.includes("children")&&n&&d.loop&&(R=!0),E&&T.init()&&T.update(!0),x&&(e.controller.control=d.controller.control),b&&(e.isElement&&(!c||typeof c=="string")&&(c=document.createElement("div"),c.classList.add("swiper-pagination"),c.part.add("pagination"),e.el.appendChild(c)),c&&(d.pagination.el=c),g.init(),g.render(),g.update(
63)),C&&(e.isElement&&(!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-scrollbar"),l.part.add("scrollbar"),e.el.appendChild(l)),l&&(d.scrollbar.el=l),y.init(),y.updateSize(),y.setTranslate()),A&&(e.isElement&&((!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-button-next"),s.innerHTML=e.hostEl.constructor.nextButtonSvg,s.part.add("button-next"),e.el.appendChild(s)),(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-button-prev"),a.innerHTML=e.hostEl.constructor.prevButtonSvg,a.part.add("button-prev"),e.el.appendChild(a))),s&&(d.navigation.nextEl=s),a&&(d.navigation.prevEl=a),v.init(),v.update()),i.includes("allowSlideNext")&&(e.allowSlideNext=r.allowSlideNext),i.includes("allowSlidePrev")&&(e.allowSlidePrev=r.allowSlidePrev),i.includes("direction")&&e.changeDirection(r.direction,!1),(O||R)&&e.loopDestroy(),(k||R)&&e.loopCreate(),e.update()}const nO=t=>{if(parseFloat(t)===Number(t))return Number(t);if(t==="true"||t==="")return!0;if(t==="false")return!1;if(t==="null")return null;if(t!=="undefined"){if(typeof t=="string"&&t.includes("{")&&t.includes("}")&&t.includes('"')){let e;try{e=JSON.parse(t)}catch{e=t}return e}return t}},rO=["a11y","autoplay","controller","cards-effect","coverflow-effect","creative-effect","cube-effect","fade-effect","flip-effect","free-mode","grid","hash-navigation","history","keyboard","mousewheel","navigation","pagination","parallax","scrollbar","thumbs","virtual","zoom"];function iO(t,e,n){const r={},i={};Px(r,Ix);const s=[...Tv,"on"],a=s.map(c=>c.replace(/_/,""));s.forEach(c=>{c=c.replace("_",""),typeof t[c]<"u"&&(i[c]=t[c])});const l=[...t.attributes];return typeof e=="string"&&typeof n<"u"&&l.push({name:e,value:Ku(n)?{...n}:n}),l.forEach(c=>{const f=rO.filter(d=>c.name.indexOf(`${d}-`)===0)[0];if(f){const d=Gh(f),g=Gh(c.name.split(`${f}-`)[1]);typeof i[d]>"u"&&(i[d]={}),i[d]===!0&&(i[d]={enabled:!0}),i[d][g]=nO(c.value)}else{const d=Gh(c.name);if(!a.includes(d))return;const g=nO(c.value);i[d]&&rO.includes(c.name)&&!Ku(g)?(i[d].constructor!==Object&&(i[d]={}),i[d].enabled=!!g):i[d]=g}}),Px(r,i),r.navigation?r.navigation={prevEl:".swiper-button-prev",nextEl:".swiper-button-next",...r.navigation!==!0?r.navigation:{}}:r.navigation===!1&&delete r.navigation,r.scrollbar?r.scrollbar={el:".swiper-scrollbar",...r.scrollbar!==!0?r.scrollbar:{}}:r.scrollbar===!1&&delete r.scrollbar,r.pagination?r.pagination={el:".swiper-pagination",...r.pagination!==!0?r.pagination:{}}:r.pagination===!1&&delete r.pagination,{params:r,passedParams:i}}const Fee=
vendor: 11,666 bytes, line 63
63":host{--swiper-theme-color:#007aff}:host{position:relative;display:block;margin-left:auto;margin-right:auto;z-index:1}.swiper{width:100%;height:100%;margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function,initial);box-sizing:content-box}.swiper-android ::slotted(swiper-slide),.swiper-ios ::slotted(swiper-slide),.swiper-wrapper{transform:translate3d(0px,0,0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}::slotted(swiper-slide){flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform;display:block}::slotted(.swiper-slide-invisible-blank){visibility:hidden}.swiper-autoheight,.swiper-autoheight ::slotted(swiper-slide){height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden ::slotted(swiper-slide){transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-cube-shadow,.swiper-3d ::slotted(swiper-slide){transform-style:preserve-3d}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode ::slotted(swiper-slide){scroll-snap-align:start start}.swiper-css-mode.swiper-horizontal>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-css-mode.swiper-vertical>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode ::slotted(swiper-slide){scroll-snap-align:none}.swiper-css-mode.swiper-centered>.swiper-wrapper::before{content:'';flex-shrink:0;order:9999}.swiper-css-mode.swiper-centered ::slotted(swiper-slide){scroll-snap-align:center center;scroll-snap-stop:always}.swiper-css-mode.swiper-centered.swiper-horizontal ::slotted(swiper-slide):first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-css-mode.swiper-centered.swiper-vertical ::slotted(swiper-slide):first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-virtual ::slotted(swiper-slide){-webkit-backface-visibility:hidden;transform:translateZ(0)}.swiper-virtual.swiper-css-mode .swiper-wrapper::after{content:'';position:absolute;left:0;top:0;pointer-events:none}.swiper-virtual.swiper-css-mode.swiper-horizontal .swiper-wrapper::after{height:1px;width:var(--swiper-virtual-size)}.swiper-virtual.swiper-css-mode.swiper-vertical .swiper-wrapper::after{width:1px;height:var(--swiper-virtual-size)}:host{--swiper-navigation-size:44px}.swiper-button-next,.swiper-button-prev{position:absolute;top:var(--swiper-navigation-top-offset,50%);width:calc(var(--swiper-navigation-size)/ 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - (var(--swiper-navigation-size)/ 2));z-index:10;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--swiper-navigation-color,var(--swiper-theme-color))}.swiper-button-next.swiper-button-disabled,.swiper-button-prev.swiper-button-disabled{opacity:.35;cursor:auto;pointer-events:none}.swiper-button-next.swiper-button-hidden,.swiper-button-prev.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-next,.swiper-navigation-disabled .swiper-button-prev{display:none!important}.swiper-button-next svg,.swiper-button-prev svg{width:100%;height:100%;object-fit:contain;transform-origin:center}.swiper-rtl .swiper-button-next svg,.swiper-rtl .swiper-button-prev svg{transform:rotate(180deg)}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset,10px);right:auto}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset,10px);left:auto}.swiper-button-lock{display:none}.swiper-pagination{position:absolute;text-align:center;transition:.3s opacity;transform:translate3d(0,0,0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:var(--swiper-pagination-bottom,8px);top:var(--swiper-pagination-top,auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,8px));height:var(--swiper-pagination-bullet-height,var(--swiper-pagination-bullet-size,8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius,50%);background:var(--swiper-pagination-bullet-inactive-color,#000);opacity:var(--swiper-pagination-bullet-inactive-opacity, .2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;-webkit-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color,var(--swiper-theme-color))}.swiper-pagination-vertical.swiper-pagination-bullets,.swiper-vertical>.swiper-pagination-bullets{right:var(--swiper-pagination-right,8px);left:var(--swiper-pagination-left,auto);top:50%;transform:translate3d(0px,-50%,0)}.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap,6px) 0;display:block}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:.2s transform,.2s top}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap,4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s left}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s right}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color,inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color,rgba(0,0,0,.25));position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;transform:scale(0);transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size,4px);left:0;top:0}.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-vertical>.swiper-pagination-progressbar{width:var(--swiper-pagination-progressbar-size,4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.swiper-scrollbar{border-radius:var(--swiper-scrollbar-border-radius,10px);position:relative;touch-action:none;background:var(--swiper-scrollbar-bg-color,rgba(0,0,0,.1))}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none!important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:var(--swiper-scrollbar-sides-offset,1%);bottom:var(--swiper-scrollbar-bottom,4px);top:var(--swiper-scrollbar-top,auto);z-index:50;height:var(--swiper-scrollbar-size,4px);width:calc(100% - 2 * var(--swiper-scrollbar-sides-offset,1%))}.swiper-scrollbar.swiper-scrollbar-vertical,.swiper-vertical>.swiper-scrollbar{position:absolute;left:var(--swiper-scrollbar-left,auto);right:var(--swiper-scrollbar-right,4px);top:var(--swiper-scrollbar-sides-offset,1%);z-index:50;width:var(--swiper-scrollbar-size,4px);height:calc(100% - 2 * var(--swiper-scrollbar-sides-offset,1%))}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:var(--swiper-scrollbar-drag-bg-color,rgba(0,0,0,.5));border-radius:var(--swiper-scrollbar-border-radius,10px);left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}::slotted(.swiper-slide-zoomed){cursor:move;touch-action:none}.swiper .swiper-notification{position:absolute;left:0;top:0;pointer-events:none;opacity:0;z-index:-1000}.swiper-free-mode>.swiper-wrapper{transition-timing-function:ease-out;margin:0 auto}.swiper-grid>.swiper-wrapper{flex-wrap:wrap}.swiper-grid-column>.swiper-wrapper{flex-wrap:wrap;flex-direction:column}.swiper-fade.swiper-free-mode ::slotted(swiper-slide){transition-timing-function:ease-out}.swiper-fade ::slotted(swiper-slide){pointer-events:none;transition-property:opacity}.swiper-fade ::slotted(swiper-slide) ::slotted(swiper-slide){pointer-events:none}.swiper-fade ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-fade ::slotted(.swiper-slide-active) ::slotted(.swiper-slide-active){pointer-events:auto}.swiper
63-cube{overflow:visible}.swiper-cube ::slotted(swiper-slide){pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1;visibility:hidden;transform-origin:0 0;width:100%;height:100%}.swiper-cube ::slotted(swiper-slide) ::slotted(swiper-slide){pointer-events:none}.swiper-cube.swiper-rtl ::slotted(swiper-slide){transform-origin:100% 0}.swiper-cube ::slotted(.swiper-slide-active),.swiper-cube ::slotted(.swiper-slide-active) ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-cube ::slotted(.swiper-slide-active),.swiper-cube ::slotted(.swiper-slide-next),.swiper-cube ::slotted(.swiper-slide-prev){pointer-events:auto;visibility:visible}.swiper-cube .swiper-cube-shadow{position:absolute;left:0;bottom:0px;width:100%;height:100%;opacity:.6;z-index:0}.swiper-cube .swiper-cube-shadow:before{content:'';background:#000;position:absolute;left:0;top:0;bottom:0;right:0;filter:blur(50px)}.swiper-cube ::slotted(.swiper-slide-next)+::slotted(swiper-slide){pointer-events:auto;visibility:visible}.swiper-flip{overflow:visible}.swiper-flip ::slotted(swiper-slide){pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1}.swiper-flip ::slotted(swiper-slide) ::slotted(swiper-slide){pointer-events:none}.swiper-flip ::slotted(.swiper-slide-active),.swiper-flip ::slotted(.swiper-slide-active) ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-creative ::slotted(swiper-slide){-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden;transition-property:transform,opacity,height}.swiper-cards{overflow:visible}.swiper-cards ::slotted(swiper-slide){transform-origin:center bottom;-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden}",zee="::slotted(.swiper-slide-shadow),::slotted(.swiper-slide-shadow-bottom),::slotted(.swiper-slide-shadow-left),::slotted(.swiper-slide-shadow-right),::slotted(.swiper-slide-shadow-top){position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}::slotted(.swiper-slide-shadow){background:rgba(0,0,0,.15)}::slotted(.swiper-slide-shadow-left){background-image:linear-gradient(to left,rgba(0,0,0,.5),rgba(0,0,0,0))}::slotted(.swiper-slide-shadow-right){background-image:linear-gradient(to right,rgba(0,0,0,.5),rgba(0,0,0,0))}::slotted(.swiper-slide-shadow-top){background-image:linear-gradient(to top,rgba(0,0,0,.5),rgba(0,0,0,0))}::slotted(.swiper-slide-shadow-bottom){background-image:linear-gradient(to bottom,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-lazy-preloader{animation:swiper-preloader-spin 1s infinite linear;width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}@keyframes swiper-preloader-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-bottom),::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-left),::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-right),::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-top){z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-bottom),::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-left),::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-right),::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-top){z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}::slotted(.swiper-zoom-container){width:100%;height:100%;display:flex;justify-content:center;align-items:center;text-align:center}::slotted(.swiper-zoom-container)>canvas,::slotted(.swiper-zoom-container)>img,::slotted(.swiper-zoom-container)>svg{max-width:100%;max-height:100%;object-fit:contain}";class Bee{}const z$=typeof window>"u"||typeof HTMLElement>"u"?Bee:HTMLElement,sO=`<svg width="11" height="20" viewBox="0 0 11 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.38296 20.0762C0.111788 19.805 0.111788 19.3654 0.38296 19.0942L9.19758 10.2796L0.38296 1.46497C0.111788 1.19379 0.111788 0.754138 0.38296 0.482966C0.654131 0.211794 1.09379 0.211794 1.36496 0.482966L10.4341 9.55214C10.8359 9.9539 10.8359 10.6053 10.4341 11.007L1.36496 20.0762C1.09379 20.3474 0.654131 20.3474 0.38296 20.0762Z" fill="currentColor"/></svg>
64    `,B$=(t,e)=>{if(typeof CSSStyleSheet<"u"&&t.adoptedStyleSheets){const n=new CSSStyleSheet;n.replaceSync(e),t.adoptedStyleSheets=[n]}else{const n=document.createElement("style");n.rel="stylesheet",n.textContent=e,t.appendChild(n)}};
64class j$ extends z${constructor(){super(),this.attachShadow({mode:"open"})}static get nextButtonSvg(){return sO}static get prevButtonSvg(){return sO.replace("/></svg>",' transform-origin="center" transform="rotate(180)"/></svg>')}cssStyles(){return[Fee,...this.injectStyles&&Array.isArray(this.injectStyles)?this.injectStyles:[]].join(`
65`)}cssLinks(){return this.injectStylesUrls||[]}calcSlideSlots(){const e=this.slideSlots||0,n=[...this.querySelectorAll("[slot^=slide-]")].map(r=>parseInt(r.getAttribute("slot").split("slide-")[1],10));if(this.slideSlots=n.length?Math.max(...n)+1:0,!!this.rendered){if(this.slideSlots>e)for(let r=e;r<this.slideSlots;r+=1){const i=document.createElement("swiper-slide");i.setAttribute("part",`slide slide-${r+1}`);const s=document.createElement("slot");s.setAttribute("name",`slide-${r+1}`),i.appendChild(s),this.shadowRoot.querySelector(".swiper-wrapper").appendChild(i)}else if(this.slideSlots<e){const r=this.swiper.slides;for(let i=r.length-1;i>=0;i-=1)i>this.slideSlots&&r[i].remove()}}}render(){if(this.rendered)return;this.calcSlideSlots();let e=this.cssStyles();this.slideSlots>0&&(e=e.replace(/::slotted\(([a-z-0-9.]*)\)/g,"$1")),e.length&&B$(this.shadowRoot,e),this.cssLinks().forEach(r=>{if(this.shadowRoot.querySelector(`link[href="${r}"]`))return;const s=document.createElement("link");s.rel="stylesheet",s.href=r,this.shadowRoot.appendChild(s)});const n=document.createElement("div");n.classList.add("swiper"),n.part="container",n.innerHTML=`
66      <slot name="container-start"></slot>
67      <div class="swiper-wrapper" part="wrapper">
68        <slot></slot>
69        ${Array.from({length:this.slideSlots}).map((r,i)=>`
70        <swiper-slide part="slide slide-${i}">
71          <slot name="slide-${i}"></slot>
72        </swiper-slide>
73        `).join("")}
74      </div>
75      <slot name="container-end"></slot>
76      ${Mee(this.passedParams)?`
77        <div part="button-prev" class="swiper-button-prev">${this.constructor.prevButtonSvg}</div>
78        <div part="button-next" class="swiper-button-next">${this.constructor.nextButtonSvg}</div>
79      `:""}
80      ${Dee(this.passedParams)?`
81        <div part="pagination" class="swiper-pagination"></div>
82      `:""}
83      ${Nee(this.passedParams)?`
84        <div part="scrollbar" class="swiper-scrollbar"></div>
85      `:""}
86    `,this.shadowRoot.appendChild(n),this.rendered=!0}initialize(){var e=this;if(this.initialized)return;this.initialized=!0;const{params:n,passedParams:r}=iO(this);this.swiperParams=n,this.passedParams=r,delete this.swiperParams.init,this.render(),this.swiper=new Rr(this.shadowRoot.querySelector(".swiper"),{...n.virtual?{}:{observer:!0,observeSlideChildren:this.slideSlots>0},...n,touchEventsTarget:"container",onAny:function(i){i==="observerUpdate"&&e.calcSlideSlots();const s=n.eventsPrefix?`${n.eventsPrefix}${i.toLowerCase()}`:i.toLowerCase();for(var a=arguments.length,l=new Array(a>1?a-1:0),c=1;c<a;c++)l[c-1]=arguments[c];const f=new CustomEvent(s,{detail:l,bubbles:i!=="hashChange",cancelable:!0});e.dispatchEvent(f)}})}connectedCallback(){this.initialized&&this.nested&&this.closest("swiper-slide")&&this.closest("swiper-slide").swiperLoopMoveDOM||this.init===!1||this.getAttribute("init")==="false"||this.initialize()}disconnectedCallback(){this.nested&&this.closest("swiper-slide")&&this.closest("swiper-slide").swiperLoopMoveDOM||(this.swiper&&this.swiper.destroy&&this.swiper.destroy(),this.initialized=!1)}updateSwiperOnPropChange(e,n){const{params:r,passedParams:i}=iO(this,e,n);this.passedParams=i,this.swiperParams=r,!(this.swiper&&this.swiper.params[e]===n)&&$ee({swiper:this.swiper,passedParams:this.passedParams,changedParams:[Gh(e)],...e==="navigation"&&i[e]?{prevEl:".swiper-button-prev",nextEl:".swiper-button-next"}:{},...e==="pagination"&&i[e]?{paginationEl:".swiper-pagination"}:{},...e==="scrollbar"&&i[e]?{scrollbarEl:".swiper-scrollbar"}:{}})}attributeChangedCallback(e,n,r){this.initialized&&(n==="true"&&r===null&&(r=!1),this.updateSwiperOnPropChange(e,r))}static get observedAttributes(){return Tv.filter(n=>n.includes("_")).map(n=>n.replace(/[A-Z]/g,r=>`-${r}`).replace("_","").toLowerCase())}}Tv.forEach(t=>{t!=="init"&&(t=t.replace("_",""),Object.defineProperty(j$.prototype,t,{configurable:!0,get(){return(this.passedParams||{})[t]},set(e){this.passedParams||(this.passedParams={}),this.passedParams[t]=e,this.initialized&&this.updateSwiperOnPropChange(t,e)}}))});
86class jee extends z${constructor(){super(),this.attachShadow({mode:"open"})}render(){const e=this.lazy||this.getAttribute("lazy")===""||this.getAttribute("lazy")==="true";if(B$(this.shadowRoot,zee),this.shadowRoot.appendChild(document.createElement("slot")),e){const n=document.createElement("div");n.classList.add("swiper-lazy-preloader"),n.part.add("preloader"),this.shadowRoot.appendChild(n)}}initialize(){this.render()}connectedCallback(){this.initialize()}}const Xxe=()=>{typeof window>"u"||(window.customElements.get("swiper-container")||window.customElements.define("swiper-container",j$),window.customElements.get("swiper-slide")||window.customElements.define("swiper-slide",jee))};typeof window<"u"&&(window.SwiperElementRegisterParams=t=>{Tv.push(...t)});const Uee=I.createContext(null),y0={didCatch:!1,error:null};class Qxe extends I.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=y0}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){const{error:e}=this.state;if(e!==null){for(var n,r,i=arguments.length,s=new Array(i),a=0;a<i;a++)s[a]=arguments[a];(n=(r=this.props).onReset)===null||n===void 0||n.call(r,{args:s,reason:"imperative-api"}),this.setState(y0)}}componentDidCatch(e,n){var r,i;(r=(i=this.props).onError)===null||r===void 0||r.call(i,e,n)}componentDidUpdate(e,n){const{didCatch:r}=this.state,{resetKeys:i}=this.props;if(r&&n.error!==null&&Hee(e.resetKeys,i)){var s,a;(s=(a=this.props).onReset)===null||s===void 0||s.call(a,{next:i,prev:e.resetKeys,reason:"keys"}),this.setState(y0)}}render(){const{children:e,fallbackRender:n,FallbackComponent:r,fallback:i}=this.props,{didCatch:s,error:a}=this.state;let l=e;if(s){const c={error:a,resetErrorBoundary:this.resetErrorBoundary};if(I.isValidElement(i))l=i;else if(typeof n=="function")l=n(c);else if(r)l=I.createElement(r,c);else throw a}return I.createElement(Uee.Provider,{value:{didCatch:s,error:a,resetErrorBoundary:this.resetErrorBoundary}},l)}}function Hee(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return t.length!==e.length||t.some((n,r)=>!Object.is(n,e[r]))}var Wee=typeof Element<"u",Vee=typeof Map=="function",Kee=typeof Set=="function",qee=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Yh(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var n,r,i;if(Array.isArray(t)){if(n=t.length,n!=e.length)return!1;for(r=n;r--!==0;)if(!Yh(t[r],e[r]))return!1;return!0}var s;if(Vee&&t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(s=t.entries();!(r=s.next()).done;)if(!e.has(r.value[0]))return!1;for(s=t.entries();!(r=s.next()).done;)if(!Yh(r.value[1],e.get(r.value[0])))return!1;return!0}if(Kee&&t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(s=t.entries();!(r=s.next()).done;)if(!e.has(r.value[0]))return!1;return!0}if(qee&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(e)){if(n=t.length,n!=e.length)return!1;for(r=n;r--!==0;)if(t[r]!==e[r])return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf&&typeof t.valueOf=="function"&&typeof e.valueOf=="function")return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString&&typeof t.toString=="function"&&typeof e.toString=="function")return t.toString()===e.toString();if(i=Object.keys(t),n=i.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(e,i[r]))return!1;if(Wee&&t instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&t.$$typeof)&&!Yh(t[i[r]],e[i[r]]))return!1;return!0}return t!==t&&e!==e}var Gee=function(e,n){try{return Yh(e,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const Yee=Lr(Gee);var Xee=function(t,e,n,r,i,s,a,l){if(!t){var c;if(e===void 0)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var f=[n,r,i,s,a,l],d=0;c=new Error(e.replace(/%s/g,function(){return f[d++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}},Qee=Xee;const oO=Lr(Qee);
86var Jee=function(e,n,r,i){var s=r?r.call(i,e,n):void 0;if(s!==void 0)return!!s;if(e===n)return!0;if(typeof e!="object"||!e||typeof n!="object"||!n)return!1;var a=Object.keys(e),l=Object.keys(n);if(a.length!==l.length)return!1;for(var c=Object.prototype.hasOwnProperty.bind(n),f=0;f<a.length;f++){var d=a[f];if(!c(d))return!1;var g=e[d],v=n[d];if(s=r?r.call(i,g,v,d):void 0,s===!1||s===void 0&&g!==v)return!1}return!0};const Zee=Lr(Jee);var U$=(t=>(t.BASE="base",t.BODY="body",t.HEAD="head",t.HTML="html",t.LINK="link",t.META="meta",t.NOSCRIPT="noscript",t.SCRIPT="script",t.STYLE="style",t.TITLE="title",t.FRAGMENT="Symbol(react.fragment)",t))(U$||{}),w0={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},aO=Object.values(U$),a1={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},ete=Object.entries(a1).reduce((t,[e,n])=>(t[n]=e,t),{}),Fi="data-rh",Tu={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},_u=(t,e)=>{for(let n=t.length-1;n>=0;n-=1){const r=t[n];if(Object.prototype.hasOwnProperty.call(r,e))return r[e]}return null},tte=t=>{let e=_u(t,"title");const n=_u(t,Tu.TITLE_TEMPLATE);if(Array.isArray(e)&&(e=e.join("")),n&&e)return n.replace(/%s/g,()=>e);const r=_u(t,Tu.DEFAULT_TITLE);return e||r||void 0},nte=t=>_u(t,Tu.ON_CHANGE_CLIENT_STATE)||(()=>{}),b0=(t,e)=>e.filter(n=>typeof n[t]<"u").map(n=>n[t]).reduce((n,r)=>({...n,...r}),{}),rte=(t,e)=>e.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,r)=>{if(!n.length){const i=Object.keys(r);for(let s=0;s<i.length;s+=1){const l=i[s].toLowerCase();if(t.indexOf(l)!==-1&&r[l])return n.concat(r)}}return n},[]),ite=t=>console&&typeof console.warn=="function"&&console.warn(t),vf=(t,e,n)=>{const r={};return n.filter(i=>Array.isArray(i[t])?!0:(typeof i[t]<"u"&&ite(`Helmet: ${t} should be of type "Array". Instead found type "${typeof i[t]}"`),!1)).map(i=>i[t]).reverse().reduce((i,s)=>{const a={};s.filter(c=>{let f;const d=Object.keys(c);for(let v=0;v<d.length;v+=1){const y=d[v],w=y.toLowerCase();e.indexOf(w)!==-1&&!(f==="rel"&&c[f].toLowerCase()==="canonical")&&!(w==="rel"&&c[w].toLowerCase()==="stylesheet")&&(f=w),e.indexOf(y)!==-1&&(y==="innerHTML"||y==="cssText"||y==="itemprop")&&(f=y)}if(!f||!c[f])return!1;const g=c[f].toLowerCase();return r[f]||(r[f]={}),a[f]||(a[f]={}),r[f][g]?!1:(a[f][g]=!0,!0)}).reverse().forEach(c=>i.push(c));const l=Object.keys(a);for(let c=0;c<l.length;c+=1){const f=l[c],d={...r[f],...a[f]};r[f]=d}return i},[]).reverse()},ste=(t,e)=>{if(Array.isArray(t)&&t.length){for(let n=0;n<t.length;n+=1)if(t[n][e])return!0}return!1},ote=t=>({baseTag:rte(["href"],t),bodyAttributes:b0("bodyAttributes",t),defer:_u(t,Tu.DEFER),encode:_u(t,Tu.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:b0("htmlAttributes",t),linkTags:vf("link",["rel","href"],t),metaTags:vf("meta",["name","charset","http-equiv","property","itemprop"],t),noscriptTags:vf("noscript",["innerHTML"],t),onChangeClientState:nte(t),scriptTags:vf("script",["src","innerHTML"],t),styleTags:vf("style",["cssText"],t),title:tte(t),titleAttributes:b0("titleAttributes",t),prioritizeSeoTags:ste(t,Tu.PRIORITIZE_SEO_TAGS)}),H$=t=>Array.isArray(t)?t.join(""):t,ate=(t,e)=>{const n=Object.keys(t);for(let r=0;r<n.length;r+=1)if(e[n[r]]&&e[n[r]].includes(t[n[r]]))return!0;return!1},x0=(t,e)=>Array.isArray(t)?t.reduce((n,r)=>(ate(r,e)?n.priority.push(r):n.default.push(r),n),{priority:[],default:[]}):{default:t,priority:[]},lO=(t,e)=>({...t,[e]:void 0}),lte=["noscript","script","style"],Rx=(t,e=!0)=>e===!1?String(t):String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;"),W$=t=>Object.keys(t).reduce((e,n)=>{const r=typeof t[n]<"u"?`${n}
86="${t[n]}"`:`${n}`;return e?`${e} ${r}`:r},""),ute=(t,e,n,r)=>{const i=W$(n),s=H$(e);return i?`<${t} ${Fi}="true" ${i}>${Rx(s,r)}</${t}>`:`<${t} ${Fi}="true">${Rx(s,r)}</${t}>`},cte=(t,e,n=!0)=>e.reduce((r,i)=>{const s=i,a=Object.keys(s).filter(f=>!(f==="innerHTML"||f==="cssText")).reduce((f,d)=>{const g=typeof s[d]>"u"?d:`${d}="${Rx(s[d],n)}"`;return f?`${f} ${g}`:g},""),l=s.innerHTML||s.cssText||"",c=lte.indexOf(t)===-1;return`${r}<${t} ${Fi}="true" ${a}${c?"/>":`>${l}</${t}>`}`},""),V$=(t,e={})=>Object.keys(t).reduce((n,r)=>{const i=a1[r];return n[i||r]=t[r],n},e),fte=(t,e,n)=>{const r={key:e,[Fi]:!0},i=V$(n,r);return[Ie.createElement("title",i,e)]},Xh=(t,e)=>e.map((n,r)=>{const i={key:r,[Fi]:!0};return Object.keys(n).forEach(s=>{const l=a1[s]||s;if(l==="innerHTML"||l==="cssText"){const c=n.innerHTML||n.cssText;i.dangerouslySetInnerHTML={__html:c}}else i[l]=n[s]}),Ie.createElement(t,i)}),ri=(t,e,n=!0)=>{switch(t){case"title":return{toComponent:()=>fte(t,e.title,e.titleAttributes),toString:()=>ute(t,e.title,e.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>V$(e),toString:()=>W$(e)};default:return{toComponent:()=>Xh(t,e),toString:()=>cte(t,e,n)}}},dte=({metaTags:t,linkTags:e,scriptTags:n,encode:r})=>{const i=x0(t,w0.meta),s=x0(e,w0.link),a=x0(n,w0.script);return{priorityMethods:{toComponent:()=>[...Xh("meta",i.priority),...Xh("link",s.priority),...Xh("script",a.priority)],toString:()=>`${ri("meta",i.priority,r)} ${ri("link",s.priority,r)} ${ri("script",a.priority,r)}`},metaTags:i.default,linkTags:s.default,scriptTags:a.default}},pte=t=>{const{baseTag:e,bodyAttributes:n,encode:r=!0,htmlAttributes:i,noscriptTags:s,styleTags:a,title:l="",titleAttributes:c,prioritizeSeoTags:f}=t;let{linkTags:d,metaTags:g,scriptTags:v}=t,y={toComponent:()=>{},toString:()=>""};return f&&({priorityMethods:y,linkTags:d,metaTags:g,scriptTags:v}=dte(t)),{priority:y,base:ri("base",e,r),bodyAttributes:ri("bodyAttributes",n,r),htmlAttributes:ri("htmlAttributes",i,r),link:ri("link",d,r),meta:ri("meta",g,r),noscript:ri("noscript",s,r),script:ri("script",v,r),style:ri("style",a,r),title:ri("title",{title:l,titleAttributes:c},r)}},Mx=pte,ph=[],K$=!!(typeof window<"u"&&window.document&&window.document.createElement),Dx=class{constructor(t,e){ti(this,"instances",[]);ti(this,"canUseDOM",K$);ti(this,"context");ti(this,"value",{setHelmet:t=>{this.context.helmet=t},helmetInstances:{get:()=>this.canUseDOM?ph:this.instances,add:t=>{(this.canUseDOM?ph:this.instances).push(t)},remove:t=>{const e=(this.canUseDOM?ph:this.instances).indexOf(t);(this.canUseDOM?ph:this.instances).splice(e,1)}}});this.context=t,this.canUseDOM=e||!1,e||(t.helmet=Mx({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},hte={},q$=Ie.createContext(hte),ku,gte=(ku=class extends I.Component{constructor(n){super(n);ti(this,"helmetData");this.helmetData=new Dx(this.props.context||{},ku.canUseDOM)}render(){return Ie.createElement(q$.Provider,{value:this.helmetData.value},this.props.children)}},ti(ku,"canUseDOM",K$),ku),Yl=(t,e)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${t}[${Fi}]`),i=[].slice.call(r),s=[];let a;return e&&e.length&&e.forEach(l=>{const c=document.createElement(t);for(const f in l)if(Object.prototype.hasOwnProperty.call(l,f))if(f==="innerHTML")c.innerHTML=l.innerHTML;else if(f==="cssText")c.styleSheet?c.styleSheet.cssText=l.cssText:c.appendChild(document.createTextNode(l.cssText));else{const d=f,g=typeof l[d]>"u"?"":l[d];c.setAttribute(f,g)}c.setAttribute(Fi,"true"),i.some((f,d)=>(a=d,c.isEqualNode(f)))?i.splice(a,1):s.push(c)}
86),i.forEach(l=>{var c;return(c=l.parentNode)==null?void 0:c.removeChild(l)}),s.forEach(l=>n.appendChild(l)),{oldTags:i,newTags:s}},Nx=(t,e)=>{const n=document.getElementsByTagName(t)[0];if(!n)return;const r=n.getAttribute(Fi),i=r?r.split(","):[],s=[...i],a=Object.keys(e);for(const l of a){const c=e[l]||"";n.getAttribute(l)!==c&&n.setAttribute(l,c),i.indexOf(l)===-1&&i.push(l);const f=s.indexOf(l);f!==-1&&s.splice(f,1)}for(let l=s.length-1;l>=0;l-=1)n.removeAttribute(s[l]);i.length===s.length?n.removeAttribute(Fi):n.getAttribute(Fi)!==a.join(",")&&n.setAttribute(Fi,a.join(","))},mte=(t,e)=>{typeof t<"u"&&document.title!==t&&(document.title=H$(t)),Nx("title",e)},uO=(t,e)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:i,linkTags:s,metaTags:a,noscriptTags:l,onChangeClientState:c,scriptTags:f,styleTags:d,title:g,titleAttributes:v}=t;Nx("body",r),Nx("html",i),mte(g,v);const y={baseTag:Yl("base",n),linkTags:Yl("link",s),metaTags:Yl("meta",a),noscriptTags:Yl("noscript",l),scriptTags:Yl("script",f),styleTags:Yl("style",d)},w={},T={};Object.keys(y).forEach(E=>{const{newTags:x,oldTags:b}=y[E];x.length&&(w[E]=x),b.length&&(T[E]=y[E].oldTags)}),e&&e(),c(t,w,T)},yf=null,vte=t=>{yf&&cancelAnimationFrame(yf),t.defer?yf=requestAnimationFrame(()=>{uO(t,()=>{yf=null})}):(uO(t),yf=null)},yte=vte,cO=class extends I.Component{constructor(){super(...arguments);ti(this,"rendered",!1)}shouldComponentUpdate(e){return!Zee(e,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:e}=this.props.context;e.remove(this),this.emitChange()}emitChange(){const{helmetInstances:e,setHelmet:n}=this.props.context;let r=null;const i=ote(e.get().map(s=>{const a={...s.props};return delete a.context,a}));gte.canUseDOM?yte(i):Mx&&(r=Mx(i)),n(r)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:e}=this.props.context;e.add(this),this.emitChange()}render(){return this.init(),null}},eb,Jxe=(eb=class extends I.Component{shouldComponentUpdate(t){return!Yee(lO(this.props,"helmetData"),lO(t,"helmetData"))}mapNestedChildrenToProps(t,e){if(!e)return null;switch(t.type){case"script":case"noscript":return{innerHTML:e};case"style":return{cssText:e};default:throw new Error(`<${t.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(t,e,n,r){return{...e,[t.type]:[...e[t.type]||[],{...n,...this.mapNestedChildrenToProps(t,r)}]}}mapObjectTypeChildren(t,e,n,r){switch(t.type){case"title":return{...e,[t.type]:r,titleAttributes:{...n}};case"body":return{...e,bodyAttributes:{...n}};case"html":return{...e,htmlAttributes:{...n}};default:return{...e,[t.type]:{...n}}}}mapArrayTypeChildrenToProps(t,e){let n={...e};return Object.keys(t).forEach(r=>{n={...n,[r]:t[r]}}),n}warnOnInvalidChildren(t,e){return oO(aO.some(n=>t.type===n),typeof t.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${aO.join(", ")} are allowed. Helmet does not support rendering <${t.type}> elements. Refer to our API for more information.`),oO(!e||typeof e=="string"||Array.isArray(e)&&!e.some(n=>typeof n!="string"),`Helmet expects a string as a child of <${t.type}>. Did you forget to wrap your children in braces? ( <${t.type}>{\`\`}</${t.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(t,e){let n={};return Ie.Children.forEach(t,r=>{if(!r||!r.props)return;const{children:i,...s}=r.props,a=Object.keys(s).reduce((c,f)=>(c[ete[f]||f]=s[f],c),{});let{type:l}=r;
86switch(typeof l=="symbol"?l=l.toString():this.warnOnInvalidChildren(r,i),l){case"Symbol(react.fragment)":e=this.mapChildrenToProps(i,e);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(r,n,a,i);break;default:e=this.mapObjectTypeChildren(r,e,a,i);break}}),this.mapArrayTypeChildrenToProps(n,e)}render(){const{children:t,...e}=this.props;let n={...e},{helmetData:r}=e;if(t&&(n=this.mapChildrenToProps(t,n)),r&&!(r instanceof Dx)){const i=r;r=new Dx(i.context,!0),delete n.helmetData}return r?Ie.createElement(cO,{...n,context:r.value}):Ie.createElement(q$.Consumer,null,i=>Ie.createElement(cO,{...n,context:i}))}},ti(eb,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),eb);/**
87 * @remix-run/router v1.15.3
88 *
89 * Copyright (c) Remix Software Inc.
90 *
91 * This source code is licensed under the MIT license found in the
92 * LICENSE.md file in the root directory of this source tree.
93 *
94 * @license MIT
95 */function Wt(){return Wt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Wt.apply(this,arguments)}var Mt;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(Mt||(Mt={}));const fO="popstate";function G$(t){t===void 0&&(t={});let{initialEntries:e=["/"],initialIndex:n,v5Compat:r=!1}=t,i;i=e.map((y,w)=>d(y,typeof y=="string"?null:y.state,w===0?"default":void 0));let s=c(n??i.length-1),a=Mt.Pop,l=null;function c(y){return Math.min(Math.max(y,0),i.length-1)}function f(){return i[s]}function d(y,w,T){w===void 0&&(w=null);let E=fl(i?f().pathname:"/",y,w,T);return to(E.pathname.charAt(0)==="/","relative pathnames are not supported in memory history: "+JSON.stringify(y)),E}function g(y){return typeof y=="string"?y:Wi(y)}return{get index(){return s},get action(){return a},get location(){return f()},createHref:g,createURL(y){return new URL(g(y),"http://localhost")},encodeLocation(y){let w=typeof y=="string"?xi(y):y;return{pathname:w.pathname||"",search:w.search||"",hash:w.hash||""}},push(y,w){a=Mt.Push;let T=d(y,w);s+=1,i.splice(s,i.length,T),r&&l&&l({action:a,location:T,delta:1})},replace(y,w){a=Mt.Replace;let T=d(y,w);i[s]=T,r&&l&&l({action:a,location:T,delta:0})},go(y){a=Mt.Pop;let w=c(s+y),T=i[w];s=w,l&&l({action:a,location:T,delta:y})},listen(y){return l=y,()=>{l=null}}}}function Y$(t){t===void 0&&(t={});function e(r,i){let{pathname:s,search:a,hash:l}=r.location;return fl("",{pathname:s,search:a,hash:l},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:Wi(i)}return Q$(e,n,null,t)}function X$(t){t===void 0&&(t={});function e(i,s){let{pathname:a="/",search:l="",hash:c=""}=xi(i.location.hash.substr(1));return!a.startsWith("/")&&!a.startsWith(".")&&(a="/"+a),fl("",{pathname:a,search:l,hash:c},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(i,s){let a=i.document.querySelector("base"),l="";if(a&&a.getAttribute("href")){let c=i.location.href,f=c.indexOf("#");l=f===-1?c:c.slice(0,f)}return l+"#"+(typeof s=="string"?s:Wi(s))}function r(i,s){to(i.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(s)+")")}return Q$(e,n,r,t)}function Ye(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function to(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function wte(){return Math.random().toString(36).substr(2,8)}function dO(t,e){return{usr:t.state,key:t.key,idx:e}}function fl(t,e,n,r){return n===void 0&&(n=null),Wt({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?xi(e):e,{state:n,key:e&&e.key||r||wte()})}function Wi(t){let{pathname:e="/",search:n="",hash:r=""}=t;return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function xi(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let r=t.indexOf("?");r>=0&&(e.search=t.substr(r),t=t.substr(0,r)),t&&(e.pathname=t)}return e}function Q$(t,e,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:s=!1}=r,a=i.history,l=Mt.Pop,c=null,f=d();f==null&&(f=0,a.replaceState(Wt({},a.state,{idx:f}),""));function d(){return(a.state||{idx:null}).idx}function g(){l=Mt.Pop;let E=d(),x=E==null?null:E-f;f=E,c&&c({action:l,location:T.location,delta:x})}function v(E,x){l=Mt.Push;let b=fl(T.location,E,x);n&&n(b,E),f=d()+1;let C=dO(b,f),A=T.createHref(b);try{a.pushState(C,"",A)}catch(O){if(O instanceof DOMException&&O.name==="DataCloneError")throw O;i.location.assign(A)}s&&c&&c({action:l,location:T.location,delta:1})}function y(E,x){l=Mt.Replace;let b=fl(T.location,E,x);n&&n(b,E),f=d();let C=dO(b,f),A=T.createHref(b);a.replaceState(C,"",A),s&&c&&c({action:l,location:T.location,delta:0})}function w(E){let x=i.location.origin!=="null"?i.location.origin:i.location.href,b=typeof E=="string"?E:Wi(E);return b=b.replace(/ $/,"%20"),Ye(x,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,x)}let T={get action(){return l},get location(){return t(i,a)},listen(E){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(fO,g),c=E,()=>{i.removeEventListener(fO,g),c=null}},createHref(E){return e(i,E)},createURL:w,encodeLocation(E){let x=w(E);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:v,replace:y,go(E){return a.go(E)}};return T}var rn;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(rn||(rn={}));
vendor: 2,867 bytes, line 95
95const bte=new Set(["lazy","caseSensitive","path","id","index","children"]);function xte(t){return t.index===!0}function $x(t,e,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),t.map((i,s)=>{let a=[...n,s],l=typeof i.id=="string"?i.id:a.join("-");if(Ye(i.index!==!0||!i.children,"Cannot specify children on an index route"),Ye(!r[l],'Found a route id collision on id "'+l+`".  Route id's must be globally unique within Data Router usages`),xte(i)){let c=Wt({},i,e(i),{id:l});return r[l]=c,c}else{let c=Wt({},i,e(i),{id:l,children:void 0});return r[l]=c,i.children&&(c.children=$x(i.children,e,a,r)),c}})}function Ha(t,e,n){n===void 0&&(n="/");let r=typeof e=="string"?xi(e):e,i=Ar(r.pathname||"/",n);if(i==null)return null;let s=Z$(t);Ste(s);let a=null;for(let l=0;a==null&&l<s.length;++l){let c=Mte(i);a=Ite(s[l],c)}return a}function J$(t,e){let{route:n,pathname:r,params:i}=t;return{id:n.id,pathname:r,params:i,data:e[n.id],handle:n.handle}}function Z$(t,e,n,r){e===void 0&&(e=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(s,a,l)=>{let c={relativePath:l===void 0?s.path||"":l,caseSensitive:s.caseSensitive===!0,childrenIndex:a,route:s};c.relativePath.startsWith("/")&&(Ye(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let f=ws([r,c.relativePath]),d=n.concat(c);s.children&&s.children.length>0&&(Ye(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+f+'".')),Z$(s.children,e,d,f)),!(s.path==null&&!s.index)&&e.push({path:f,score:Lte(f,s.index),routesMeta:d})};return t.forEach((s,a)=>{var l;if(s.path===""||!((l=s.path)!=null&&l.includes("?")))i(s,a);else for(let c of eF(s.path))i(s,a,c)}),e}function eF(t){let e=t.split("/");if(e.length===0)return[];let[n,...r]=e,i=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return i?[s,""]:[s];let a=eF(r.join("/")),l=[];return l.push(...a.map(c=>c===""?s:[s,c].join("/"))),i&&l.push(...a),l.map(c=>t.startsWith("/")&&c===""?"/":c)}function Ste(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:Ote(e.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Ete=/^:[\w-]+$/,Cte=3,Tte=2,_te=1,Ate=10,kte=-2,pO=t=>t==="*";function Lte(t,e){let n=t.split("/"),r=n.length;return n.some(pO)&&(r+=kte),e&&(r+=Tte),n.filter(i=>!pO(i)).reduce((i,s)=>i+(Ete.test(s)?Cte:s===""?_te:Ate),r)}function Ote(t,e){return t.length===e.length&&t.slice(0,-1).every((r,i)=>r===e[i])?t[t.length-1]-e[e.length-1]:0}function Ite(t,e){let{routesMeta:n}=t,r={},i="/",s=[];for(let a=0;a<n.length;++a){let l=n[a],c=a===n.length-1,f=i==="/"?e:e.slice(i.length)||"/",d=Sd({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},f);if(!d)return null;
95Object.assign(r,d.params);let g=l.route;s.push({params:r,pathname:ws([i,d.pathname]),pathnameBase:Nte(ws([i,d.pathnameBase])),route:g}),d.pathnameBase!=="/"&&(i=ws([i,d.pathnameBase]))}return s}function Pte(t,e){e===void 0&&(e={});let n=t;n.endsWith("*")&&n!=="*"&&!n.endsWith("/*")&&(to(!1,'Route path "'+n+'" will be treated as if it were '+('"'+n.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+n.replace(/\*$/,"/*")+'".')),n=n.replace(/\*$/,"/*"));const r=n.startsWith("/")?"/":"",i=a=>a==null?"":typeof a=="string"?a:String(a),s=n.split(/\/+/).map((a,l,c)=>{if(l===c.length-1&&a==="*")return i(e["*"]);const d=a.match(/^:([\w-]+)(\??)$/);if(d){const[,g,v]=d;let y=e[g];return Ye(v==="?"||y!=null,'Missing ":'+g+'" param'),i(y)}return a.replace(/\?$/g,"")}).filter(a=>!!a);return r+s.join("/")}function Sd(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[n,r]=Rte(t.path,t.caseSensitive,t.end),i=e.match(n);if(!i)return null;let s=i[0],a=s.replace(/(.)\/+$/,"$1"),l=i.slice(1);return{params:r.reduce((f,d,g)=>{let{paramName:v,isOptional:y}=d;if(v==="*"){let T=l[g]||"";a=s.slice(0,s.length-T.length).replace(/(.)\/+$/,"$1")}const w=l[g];return y&&!w?f[v]=void 0:f[v]=(w||"").replace(/%2F/g,"/"),f},{}),pathname:s,pathnameBase:a,pattern:t}}function Rte(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!0),to(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let r=[],i="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,c)=>(r.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(r.push({paramName:"*"}),i+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":t!==""&&t!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,e?void 0:"i"),r]}function Mte(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return to(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function Ar(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,r=t.charAt(n);return r&&r!=="/"?null:t.slice(n)||"/"}function tF(t,e){e===void 0&&(e="/");let{pathname:n,search:r="",hash:i=""}=typeof t=="string"?xi(t):t;return{pathname:n?n.startsWith("/")?n:Dte(n,e):e,search:$te(r),hash:Fte(i)}}function Dte(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function S0(t,e,n,r){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(r)+"].  Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function nF(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function _v(t,e){let n=nF(t);return e?n.map((r,i)=>i===t.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Av(t,e,n,r){r===void 0&&(r=!1);let i;typeof t=="string"?i=xi(t):(i=Wt({},t),Ye(!i.pathname||!i.pathname.includes("?"),S0("?","pathname","search",i)),Ye(!i.pathname||!i.pathname.includes("#"),S0("#","pathname","hash",i)),Ye(!i.search||!i.search.includes("#"),S0("#","search","hash",i)));let s=t===""||i.pathname==="",a=s?"/":i.pathname,l;if(a==null)l=n;else{let g=e.length-1;if(!r&&a.startsWith("..")){let v=a.split("/");for(;v[0]==="..";)v.shift(),g-=1;i.pathname=v.join("/")}l=g>=0?e[g]:"/"}let c=tF(i,l),f=a&&a!=="/"&&a.endsWith("/"),d=(s||a===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(f||d)&&(c.pathname+="/"),c}const ws=t=>t.join("/").replace(/\/\/+/g,"/"),Nte=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),$te=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,Fte=t=>
95!t||t==="#"?"":t.startsWith("#")?t:"#"+t,zte=function(e,n){n===void 0&&(n={});let r=typeof n=="number"?{status:n}:n,i=new Headers(r.headers);return i.has("Content-Type")||i.set("Content-Type","application/json; charset=utf-8"),new Response(JSON.stringify(e),Wt({},r,{headers:i}))};class rm extends Error{}class Bte{constructor(e,n){this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],Ye(e&&typeof e=="object"&&!Array.isArray(e),"defer() only accepts plain objects");let r;this.abortPromise=new Promise((s,a)=>r=a),this.controller=new AbortController;let i=()=>r(new rm("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",i),this.controller.signal.addEventListener("abort",i),this.data=Object.entries(e).reduce((s,a)=>{let[l,c]=a;return Object.assign(s,{[l]:this.trackPromise(l,c)})},{}),this.done&&this.unlistenAbortSignal(),this.init=n}trackPromise(e,n){if(!(n instanceof Promise))return n;this.deferredKeys.push(e),this.pendingKeysSet.add(e);let r=Promise.race([n,this.abortPromise]).then(i=>this.onSettle(r,e,void 0,i),i=>this.onSettle(r,e,i));return r.catch(()=>{}),Object.defineProperty(r,"_tracked",{get:()=>!0}),r}onSettle(e,n,r,i){if(this.controller.signal.aborted&&r instanceof rm)return this.unlistenAbortSignal(),Object.defineProperty(e,"_error",{get:()=>r}),Promise.reject(r);if(this.pendingKeysSet.delete(n),this.done&&this.unlistenAbortSignal(),r===void 0&&i===void 0){let s=new Error('Deferred data for key "'+n+'" resolved/rejected with `undefined`, you must resolve/reject with a value or `null`.');return Object.defineProperty(e,"_error",{get:()=>s}),this.emit(!1,n),Promise.reject(s)}return i===void 0?(Object.defineProperty(e,"_error",{get:()=>r}),this.emit(!1,n),Promise.reject(r)):(Object.defineProperty(e,"_data",{get:()=>i}),this.emit(!1,n),i)}emit(e,n){this.subscribers.forEach(r=>r(e,n))}subscribe(e){return this.subscribers.add(e),()=>this.subscribers.delete(e)}cancel(){this.controller.abort(),this.pendingKeysSet.forEach((e,n)=>this.pendingKeysSet.delete(n)),this.emit(!0)}async resolveData(e){let n=!1;if(!this.done){let r=()=>this.cancel();e.addEventListener("abort",r),n=await new Promise(i=>{this.subscribe(s=>{e.removeEventListener("abort",r),(s||this.done)&&i(s)})})}return n}get done(){return this.pendingKeysSet.size===0}get unwrappedData(){return Ye(this.data!==null&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((e,n)=>{let[r,i]=n;return Object.assign(e,{[r]:Ute(i)})},{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}function jte(t){return t instanceof Promise&&t._tracked===!0}function Ute(t){if(!jte(t))return t;if(t._error)throw t._error;return t._data}
95const Hte=function(e,n){n===void 0&&(n={});let r=typeof n=="number"?{status:n}:n;return new Bte(e,r)},rF=function(e,n){n===void 0&&(n=302);let r=n;typeof r=="number"?r={status:r}:typeof r.status>"u"&&(r.status=302);let i=new Headers(r.headers);return i.set("Location",e),new Response(null,Wt({},r,{headers:i}))},Wte=(t,e)=>{let n=rF(t,e);return n.headers.set("X-Remix-Reload-Document","true"),n};class l1{constructor(e,n,r,i){i===void 0&&(i=!1),this.status=e,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function u1(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const iF=["post","put","patch","delete"],Vte=new Set(iF),Kte=["get",...iF],qte=new Set(Kte),Gte=new Set([301,302,303,307,308]),Yte=new Set([307,308]),E0={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},sF={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ru={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},oF=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Xte=t=>({hasErrorBoundary:!!t.hasErrorBoundary}),aF="remix-router-transitions";function c1(t){const e=t.window?t.window:typeof window<"u"?window:void 0,n=typeof e<"u"&&typeof e.document<"u"&&typeof e.document.createElement<"u",r=!n;Ye(t.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(t.mapRouteProperties)i=t.mapRouteProperties;else if(t.detectErrorBoundary){let ee=t.detectErrorBoundary;i=se=>({hasErrorBoundary:ee(se)})}else i=Xte;let s={},a=$x(t.routes,i,void 0,s),l,c=t.basename||"/",f=Wt({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},t.future),d=null,g=new Set,v=null,y=null,w=null,T=t.hydrationData!=null,E=Ha(a,t.history.location,c),x=null;if(E==null){let ee=si(404,{pathname:t.history.location.pathname}),{matches:se,route:ce}=xO(a);E=se,x={[ce.id]:ee}}let b,C=E.some(ee=>ee.route.lazy),A=E.some(ee=>ee.route.loader);if(C)b=!1;else if(!A)b=!0;else if(f.v7_partialHydration){let ee=t.hydrationData?t.hydrationData.loaderData:null,se=t.hydrationData?t.hydrationData.errors:null,ce=xe=>xe.route.loader?xe.route.loader.hydrate===!0?!1:ee&&ee[xe.route.id]!==void 0||se&&se[xe.route.id]!==void 0:!0;if(se){let xe=E.findIndex(ke=>se[ke.route.id]!==void 0);b=E.slice(0,xe+1).every(ce)}else b=E.every(ce)}else b=t.hydrationData!=null;let O,k={historyAction:t.history.action,location:t.history.location,matches:E,initialized:b,navigation:E0,restoreScrollPosition:t.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:t.hydrationData&&t.hydrationData.loaderData||{},actionData:t.hydrationData&&t.hydrationData.actionData||null,errors:t.hydrationData&&t.hydrationData.errors||x,fetchers:new Map,blockers:new Map},R=Mt.Pop,$=!1,j,W=!1,H=new Map,V=null,F=!1,z=!1,M=[],q=[],U=new Map,B=0,Y=-1,Z=new Map,fe=new Set,K=new Map,N=new Map,ie=new Set,me=new Map,ve=new Map,ze=!1;function it(){if(d=t.history.listen(ee=>{let{action:se,location:ce,delta:xe}=ee;if(ze){ze=!1;return}to(ve.size===0||xe!=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 ke=Ei({currentLocation:k.location,nextLocation:ce,historyAction:se});if(ke&&xe!=null){ze=!0,t.history.go(xe*-1),Hn(ke,{state:"blocked",location:ce,proceed(){Hn(ke,{state:"proceeding",proceed:void 0,reset:void 0,location:ce}),t.history.go(xe)},reset(){let ut=new Map(k.blockers);ut.set(ke,ru),Oe({blockers:ut})}});return}return Ge(se,ce)}),n){ane(e,H);let ee=()=>lne(e,H);e.addEventListener("pagehide",ee),V=()=>e.removeEventListener("pagehide",ee)}return k.initialized||Ge(Mt.Pop,k.location,{initialHydration:!0}),O}function qe(){d&&d(),V&&V(),g.clear(),j&&j.abort(),k.fetchers.forEac
vendor: 4,250 bytes, line 95
95h((ee,se)=>Ve(se)),k.blockers.forEach((ee,se)=>Un(se))}function Le(ee){return g.add(ee),()=>g.delete(ee)}function Oe(ee,se){se===void 0&&(se={}),k=Wt({},k,ee);let ce=[],xe=[];f.v7_fetcherPersist&&k.fetchers.forEach((ke,ut)=>{ke.state==="idle"&&(ie.has(ut)?xe.push(ut):ce.push(ut))}),[...g].forEach(ke=>ke(k,{deletedFetchers:xe,unstable_viewTransitionOpts:se.viewTransitionOpts,unstable_flushSync:se.flushSync===!0})),f.v7_fetcherPersist&&(ce.forEach(ke=>k.fetchers.delete(ke)),xe.forEach(ke=>Ve(ke)))}function $e(ee,se,ce){var xe,ke;let{flushSync:ut}=ce===void 0?{}:ce,Ze=k.actionData!=null&&k.navigation.formMethod!=null&&Mi(k.navigation.formMethod)&&k.navigation.state==="loading"&&((xe=ee.state)==null?void 0:xe._isRedirect)!==!0,Ke;se.actionData?Object.keys(se.actionData).length>0?Ke=se.actionData:Ke=null:Ze?Ke=k.actionData:Ke=null;let He=se.loaderData?bO(k.loaderData,se.loaderData,se.matches||[],se.errors):k.loaderData,ft=k.blockers;ft.size>0&&(ft=new Map(ft),ft.forEach((At,ln)=>ft.set(ln,ru)));let pn=$===!0||k.navigation.formMethod!=null&&Mi(k.navigation.formMethod)&&((ke=ee.state)==null?void 0:ke._isRedirect)!==!0;l&&(a=l,l=void 0),F||R===Mt.Pop||(R===Mt.Push?t.history.push(ee,ee.state):R===Mt.Replace&&t.history.replace(ee,ee.state));let st;if(R===Mt.Pop){let At=H.get(k.location.pathname);At&&At.has(ee.pathname)?st={currentLocation:k.location,nextLocation:ee}:H.has(ee.pathname)&&(st={currentLocation:ee,nextLocation:k.location})}else if(W){let At=H.get(k.location.pathname);At?At.add(ee.pathname):(At=new Set([ee.pathname]),H.set(k.location.pathname,At)),st={currentLocation:k.location,nextLocation:ee}}Oe(Wt({},se,{actionData:Ke,loaderData:He,historyAction:R,location:ee,initialized:!0,navigation:E0,revalidation:"idle",restoreScrollPosition:Wn(ee,se.matches||k.matches),preventScrollReset:pn,blockers:ft}),{viewTransitionOpts:st,flushSync:ut===!0}),R=Mt.Pop,$=!1,W=!1,F=!1,z=!1,M=[],q=[]}async function et(ee,se){if(typeof ee=="number"){t.history.go(ee);return}let ce=Fx(k.location,k.matches,c,f.v7_prependBasename,ee,f.v7_relativeSplatPath,se==null?void 0:se.fromRouteId,se==null?void 0:se.relative),{path:xe,submission:ke,error:ut}=hO(f.v7_normalizeFormMethod,!1,ce,se),Ze=k.location,Ke=fl(k.location,xe,se&&se.state);Ke=Wt({},Ke,t.history.encodeLocation(Ke));let He=se&&se.replace!=null?se.replace:void 0,ft=Mt.Push;He===!0?ft=Mt.Replace:He===!1||ke!=null&&Mi(ke.formMethod)&&ke.formAction===k.location.pathname+k.location.search&&(ft=Mt.Replace);let pn=se&&"preventScrollReset"in se?se.preventScrollReset===!0:void 0,st=(se&&se.unstable_flushSync)===!0,At=Ei({currentLocation:Ze,nextLocation:Ke,historyAction:ft});if(At){Hn(At,{state:"blocked",location:Ke,proceed(){Hn(At,{state:"proceeding",proceed:void 0,reset:void 0,location:Ke}),et(ee,se)},reset(){let ln=new Map(k.blockers);ln.set(At,ru),Oe({blockers:ln})}});return}return await Ge(ft,Ke,{submission:ke,pendingError:ut,preventScrollReset:pn,replace:se&&se.replace,enableViewTransition:se&&se.unstable_viewTransition,flushSync:st})}function ct(){if(be(),Oe({revalidation:"loading"}),k.navigation.state!=="submitting"){if(k.navigation.state==="idle"){Ge(k.historyAction,k.location,{startUninterruptedRevalidation:!0});return}Ge(R||k.historyAction,k.navigation.location,{overrideNavigation:k.navigation})}}async function Ge(ee,se,ce){j&&j.abort(),j=null,R=ee,F=(ce&&ce.startUninterruptedRevalidation)===!0,_c(k.location,k.matches),$=(ce&&ce.preventScrollReset)===!0,W=(ce&&ce.enableViewTransition)===!0;let xe=l||a,ke=ce&&ce.overrideNavigation,ut=Ha(xe,se,c),Ze=(ce&&ce.flushSync)===!0;if(!ut){let ln=si(404,{pathname:se.pathname}),{matches:er,route:en}=xO(xe);In(),$e(se,{matches:er,loaderData:{},errors:{[en.id]:ln}},{flushSync:Ze});return}if(k.initialized&&!z&&tne(k.location,se)&&!(ce&&ce.submission&&Mi(ce.submission.formMethod))){$e(se,{matches:ut},{flushSync:Ze});return}j=new AbortController;let Ke=bf(t.history,se,j.signal,ce&&ce.submission),He,ft;if(ce&&ce.pendingError)ft={[Gf(ut).route.id]:ce.pendingError};else if(ce&&ce.submission&&Mi(ce.submission.formMethod)){let ln=await Tt(Ke,se,ce.submission,ut,{replace:ce.replace,flushSync:Ze});if(ln.shortCircuited)return;He=ln.pendingActionData,ft=ln.pendingActionError,ke=C0(se,ce.submission),Ze=!1,Ke=new Request
95(Ke.url,{signal:Ke.signal})}let{shortCircuited:pn,loaderData:st,errors:At}=await vt(Ke,se,ut,ke,ce&&ce.submission,ce&&ce.fetcherSubmission,ce&&ce.replace,ce&&ce.initialHydration===!0,Ze,He,ft);pn||(j=null,$e(se,Wt({matches:ut},He?{actionData:He}:{},{loaderData:st,errors:At})))}async function Tt(ee,se,ce,xe,ke){ke===void 0&&(ke={}),be();let ut=sne(se,ce);Oe({navigation:ut},{flushSync:ke.flushSync===!0});let Ze,Ke=Bx(xe,se);if(!Ke.route.action&&!Ke.route.lazy)Ze={type:rn.error,error:si(405,{method:ee.method,pathname:se.pathname,routeId:Ke.route.id})};else if(Ze=await wf("action",ee,Ke,xe,s,i,c,f.v7_relativeSplatPath),ee.signal.aborted)return{shortCircuited:!0};if(Va(Ze)){let He;return ke&&ke.replace!=null?He=ke.replace:He=Ze.location===k.location.pathname+k.location.search,await oe(k,Ze,{submission:ce,replace:He}),{shortCircuited:!0}}if(vu(Ze)){let He=Gf(xe,Ke.route.id);return(ke&&ke.replace)!==!0&&(R=Mt.Push),{pendingActionData:{},pendingActionError:{[He.route.id]:Ze.error}}}if(Wa(Ze))throw si(400,{type:"defer-action"});return{pendingActionData:{[Ke.route.id]:Ze.data}}}async function vt(ee,se,ce,xe,ke,ut,Ze,Ke,He,ft,pn){let st=xe||C0(se,ke),At=ke||ut||CO(st),ln=l||a,[er,en]=gO(t.history,k,ce,At,se,f.v7_partialHydration&&Ke===!0,z,M,q,ie,K,fe,ln,c,ft,pn);if(In(dt=>!(ce&&ce.some(xt=>xt.route.id===dt))||er&&er.some(xt=>xt.route.id===dt)),Y=++B,er.length===0&&en.length===0){let dt=Or();return $e(se,Wt({matches:ce,loaderData:{},errors:pn||null},ft?{actionData:ft}:{},dt?{fetchers:new Map(k.fetchers)}:{}),{flushSync:He}),{shortCircuited:!0}}if(!F&&(!f.v7_partialHydration||!Ke)){en.forEach(xt=>{let tn=k.fetchers.get(xt.key),po=xf(void 0,tn?tn.data:void 0);k.fetchers.set(xt.key,po)});let dt=ft||k.actionData;Oe(Wt({navigation:st},dt?Object.keys(dt).length===0?{actionData:null}:{actionData:dt}:{},en.length>0?{fetchers:new Map(k.fetchers)}:{}),{flushSync:He})}en.forEach(dt=>{U.has(dt.key)&&Kt(dt.key),dt.controller&&U.set(dt.key,dt.controller)});let co=()=>en.forEach(dt=>Kt(dt.key));j&&j.signal.addEventListener("abort",co);let{results:Ac,loaderResults:Zi,fetcherResults:es}=await Te(k.matches,ce,er,en,ee);if(ee.signal.aborted)return{shortCircuited:!0};
95j&&j.signal.removeEventListener("abort",co),en.forEach(dt=>U.delete(dt.key));let Ci=SO(Ac);if(Ci){if(Ci.idx>=er.length){let dt=en[Ci.idx-er.length].key;fe.add(dt)}return await oe(k,Ci.result,{replace:Ze}),{shortCircuited:!0}}let{loaderData:ts,errors:va}=wO(k,ce,er,Zi,pn,en,es,me);me.forEach((dt,xt)=>{dt.subscribe(tn=>{(tn||dt.done)&&me.delete(xt)})}),f.v7_partialHydration&&Ke&&k.errors&&Object.entries(k.errors).filter(dt=>{let[xt]=dt;return!er.some(tn=>tn.route.id===xt)}).forEach(dt=>{let[xt,tn]=dt;va=Object.assign(va||{},{[xt]:tn})});let kc=Or(),Ti=jn(Y),fo=kc||Ti||en.length>0;return Wt({loaderData:ts,errors:va},fo?{fetchers:new Map(k.fetchers)}:{})}function _t(ee,se,ce,xe){if(r)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.");U.has(ee)&&Kt(ee);let ke=(xe&&xe.unstable_flushSync)===!0,ut=l||a,Ze=Fx(k.location,k.matches,c,f.v7_prependBasename,ce,f.v7_relativeSplatPath,se,xe==null?void 0:xe.relative),Ke=Ha(ut,Ze,c);if(!Ke){pe(ee,se,si(404,{pathname:Ze}),{flushSync:ke});return}let{path:He,submission:ft,error:pn}=hO(f.v7_normalizeFormMethod,!0,Ze,xe);if(pn){pe(ee,se,pn,{flushSync:ke});return}let st=Bx(Ke,He);if($=(xe&&xe.preventScrollReset)===!0,ft&&Mi(ft.formMethod)){Q(ee,se,He,st,Ke,ke,ft);return}K.set(ee,{routeId:se,path:He}),te(ee,se,He,st,Ke,ke,ft)}async function Q(ee,se,ce,xe,ke,ut,Ze){if(be(),K.delete(ee),!xe.route.action&&!xe.route.lazy){let xt=si(405,{method:Ze.formMethod,pathname:ce,routeId:se});pe(ee,se,xt,{flushSync:ut});return}let Ke=k.fetchers.get(ee);re(ee,one(Ze,Ke),{flushSync:ut});let He=new AbortController,ft=bf(t.history,ce,He.signal,Ze);U.set(ee,He);let pn=B,st=await wf("action",ft,xe,ke,s,i,c,f.v7_relativeSplatPath);if(ft.signal.aborted){U.get(ee)===He&&U.delete(ee);return}if(f.v7_fetcherPersist&&ie.has(ee)){if(Va(st)||vu(st)){re(ee,Lo(void 0));return}}else{if(Va(st))if(U.delete(ee),Y>pn){re(ee,Lo(void 0));return}else return fe.add(ee),re(ee,xf(Ze)),oe(k,st,{fetcherSubmission:Ze});if(vu(st)){pe(ee,se,st.error);return}}if(Wa(st))throw si(400,{type:"defer-action"});let At=k.navigation.location||k.location,ln=bf(t.history,At,He.signal),er=l||a,en=k.navigation.state!=="idle"?Ha(er,k.navigation.location,c):k.matches;Ye(en,"Didn't find any matches after fetcher action");let co=++B;Z.set(ee,co);let Ac=xf(Ze,st.data);k.fetchers.set(ee,Ac);let[Zi,es]=gO(t.history,k,en,Ze,At,!1,z,M,q,ie,K,fe,er,c,{[xe.route.id]:st.data},void 0);es.filter(xt=>xt.key!==ee).forEach(xt=>{let tn=xt.key,po=k.fetchers.get(tn),rp=xf(void 0,po?po.data:void 0);k.fetchers.set(tn,rp),U.has(tn)&&Kt(tn),xt.controller&&U.set(tn,xt.controller)}),Oe({fetchers:new Map(k.fetchers)});let Ci=()=>es.forEach(xt=>Kt(xt.key));He.signal.addEventListener("abort",Ci);let{results:ts,loaderResults:va,fetcherResults:kc}=await Te(k.matches,en,Zi,es,ln);if(He.signal.aborted)return;He.signal.removeEventListener("abort",Ci),Z.delete(ee),U.delete(ee),es.forEach(xt=>U.delete(xt.key));let Ti=SO(ts);if(Ti){if(Ti.idx>=Zi.length){let xt=es[Ti.idx-Zi.length].key;fe.add(xt)}return oe(k,Ti.result)}let{loaderData:fo,errors:dt}=wO(k,k.matches,Zi,va,void 0,es,kc,me);if(k.fetchers.has(ee)){let xt=Lo(st.data);k.fetchers.set(ee,xt)}jn(co),k.navigation.state==="loading"&&co>Y?(Ye(R,"Expected pending action"),j&&j.abort(),$e(k.navigation.location,{matches:en,loaderData:fo,errors:dt,fetchers:new Map(k.fetchers)})):(Oe({errors:dt,loaderData:bO(k.loaderData,fo,en,dt),fetchers:new Map(k.fetchers)}),z=!1)}async function te(ee,se,ce,xe,ke,ut,Ze){let Ke=k.fetchers.get(ee);re(ee,xf(Ze,Ke?Ke.data:void 0),{flushSync:ut});let He=new AbortController,ft=bf(t.history,ce,He.signal);U.set(ee,He);let pn=B,st=await wf("loader",ft,xe,ke,s,i,c,f.v7_relativeSplatPath);if(Wa(st)&&(st=await cF(st,ft.signal,!0)||st),U.get(ee)===He&&U.delete(ee),!ft.signal.aborted){if(ie.has(ee)){re(ee,Lo(void 0));return}if(Va(st))if(Y>pn){re(ee,Lo(void 0));return}else{fe.add(ee),await oe(k,st);return}if(vu(st)){pe(ee,se,st.error);return}Ye(!Wa(st),"Unhandled fetcher deferred data"),re(ee,Lo(st.data))}}async function oe(ee,se,ce){let{submission:xe,fetcherSubmission:ke,replace:ut}=ce===void 0?{}:ce;se.revalidate&&(z=!0);let Ze=fl(ee.location,se.location,{_isRedirect:!0});if(Ye(Ze,"Expected a location on the redirect navigation"),n){let At=!1;
95if(se.reloadDocument)At=!0;else if(oF.test(se.location)){const ln=t.history.createURL(se.location);At=ln.origin!==e.location.origin||Ar(ln.pathname,c)==null}if(At){ut?e.location.replace(se.location):e.location.assign(se.location);return}}j=null;let Ke=ut===!0?Mt.Replace:Mt.Push,{formMethod:He,formAction:ft,formEncType:pn}=ee.navigation;!xe&&!ke&&He&&ft&&pn&&(xe=CO(ee.navigation));let st=xe||ke;if(Yte.has(se.status)&&st&&Mi(st.formMethod))await Ge(Ke,Ze,{submission:Wt({},st,{formAction:se.location}),preventScrollReset:$});else{let At=C0(Ze,xe);await Ge(Ke,Ze,{overrideNavigation:At,fetcherSubmission:ke,preventScrollReset:$})}}async function Te(ee,se,ce,xe,ke){let ut=await Promise.all([...ce.map(He=>wf("loader",ke,He,se,s,i,c,f.v7_relativeSplatPath)),...xe.map(He=>He.matches&&He.match&&He.controller?wf("loader",bf(t.history,He.path,He.controller.signal),He.match,He.matches,s,i,c,f.v7_relativeSplatPath):{type:rn.error,error:si(404,{pathname:He.path})})]),Ze=ut.slice(0,ce.length),Ke=ut.slice(ce.length);return await Promise.all([EO(ee,ce,Ze,Ze.map(()=>ke.signal),!1,k.loaderData),EO(ee,xe.map(He=>He.match),Ke,xe.map(He=>He.controller?He.controller.signal:null),!0)]),{results:ut,loaderResults:Ze,fetcherResults:Ke}}function be(){z=!0,M.push(...In()),K.forEach((ee,se)=>{U.has(se)&&(q.push(se),Kt(se))})}function re(ee,se,ce){ce===void 0&&(ce={}),k.fetchers.set(ee,se),Oe({fetchers:new Map(k.fetchers)},{flushSync:(ce&&ce.flushSync)===!0})}function pe(ee,se,ce,xe){xe===void 0&&(xe={});let ke=Gf(k.matches,se);Ve(ee),Oe({errors:{[ke.route.id]:ce},fetchers:new Map(k.fetchers)},{flushSync:(xe&&xe.flushSync)===!0})}function Se(ee){return f.v7_fetcherPersist&&(N.set(ee,(N.get(ee)||0)+1),ie.has(ee)&&ie.delete(ee)),k.fetchers.get(ee)||sF}function Ve(ee){let se=k.fetchers.get(ee);U.has(ee)&&!(se&&se.state==="loading"&&Z.has(ee))&&Kt(ee),K.delete(ee),Z.delete(ee),fe.delete(ee),ie.delete(ee),k.fetchers.delete(ee)}function ht(ee){if(f.v7_fetcherPersist){let se=(N.get(ee)||0)-1;se<=0?(N.delete(ee),ie.add(ee)):N.set(ee,se)}else Ve(ee);Oe({fetchers:new Map(k.fetchers)})}function Kt(ee){let se=U.get(ee);Ye(se,"Expected fetch controller: "+ee),se.abort(),U.delete(ee)}function Zn(ee){for(let se of ee){let ce=Se(se),xe=Lo(ce.data);k.fetchers.set(se,xe)}}function Or(){let ee=[],se=!1;for(let ce of fe){let xe=k.fetchers.get(ce);Ye(xe,"Expected fetcher: "+ce),xe.state==="loading"&&(fe.delete(ce),ee.push(ce),se=!0)}return Zn(ee),se}function jn(ee){let se=[];for(let[ce,xe]of Z)if(xe<ee){let ke=k.fetchers.get(ce);Ye(ke,"Expected fetcher: "+ce),ke.state==="loading"&&(Kt(ce),Z.delete(ce),se.push(ce))}return Zn(se),se.length>0}function Ts(ee,se){let ce=k.blockers.get(ee)||ru;return ve.get(ee)!==se&&ve.set(ee,se),ce}function Un(ee){k.blockers.delete(ee),ve.delete(ee)}function Hn(ee,se){let ce=k.blockers.get(ee)||ru;Ye(ce.state==="unblocked"&&se.state==="blocked"||ce.state==="blocked"&&se.state==="blocked"||ce.state==="blocked"&&se.state==="proceeding"||ce.state==="blocked"&&se.state==="unblocked"||ce.state==="proceeding"&&se.state==="unblocked","Invalid blocker state transition: "+ce.state+" -> "+se.state);let xe=new Map(k.blockers);xe.set(ee,se),Oe({blockers:xe})}function Ei(ee){let{currentLocation:se,nextLocation:ce,historyAction:xe}=ee;if(ve.size===0)return;ve.size>1&&to(!1,"A router only supports one blocker at a time");let ke=Array.from(ve.entries()),[ut,Ze]=ke[ke.length-1],Ke=k.blockers.get(ut);if(!(Ke&&Ke.state==="proceeding")&&Ze({currentLocation:se,nextLocation:ce,historyAction:xe}))return ut}function In(ee){let se=[];return me.forEach((ce,xe)=>{(!ee||ee(xe))&&(ce.cancel(),se.push(xe),me.delete(xe))}),se}function uo(ee,se,ce){if(v=ee,w=se,y=ce||null,!T&&k.navigation===E0){T=!0;let xe=Wn(k.location,k.matches);xe!=null&&Oe({restoreScrollPosition:xe})}return()=>{v=null,w=null,y=null}}function Ue(ee,se){return y&&y(ee,se.map(xe=>J$(xe,k.loaderData)))||ee.key}function _c(ee,se){if(v&&w){let ce=Ue(ee,se);v[ce]=w()}}function Wn(ee,se){if(v){let ce=Ue(ee,se),xe=v[ce];if(typeof xe=="number")return xe}return null}function qt(ee){s={},l=$x(ee,i,void 0,s)}return O={get basename(){return c},get future(){return f},get state(){return k},get routes(){return a},get window(){return e},initialize:it,subscribe:Le,enableScrollRestoration:uo,navigate:et,fetch:_t,revalidate:ct,createHref:ee=>t.history.createHref(ee),encodeLocation:ee=>t.history.encodeLocation(ee),getFetcher:Se,deleteFetcher:ht,dispose:qe,getBlocker:Ts,deleteBlocker:Un,_internalFetchControllers:U,_internalActiveDeferreds:me,_internalSetRoutes:qt},O}function Qte(t){return t!=null&&("formData"in t&&t.formData!=null||"body"in t&&t.body!==void 0)}function Fx(t,e,n,r,i,s,a,l){let c,f;if(a){c=[];for(let g of e)if(c.push(g),g.route.id===a){f=g;break}}else c=e,f=e[e.length-1];let d=Av(i||".",_v(c,s),Ar(t.pathname,n)||t.pathname,l==="path");return i==null&&(d.search=t.search,d.hash=t.hash),(i==null||i===""||i===".")&&f&&f.route.index&&!f1(d.search)&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(d.pathname=d.pathname==="/"?n:ws([n,d.pathname])),Wi(d)}function hO(t,e,n,r){if(!r||!Qte(r))return{path:n};if(r.formMethod&&!ine(r.formMethod))return{path:n,error:si(405,{method:r.formMethod})};let i=()=>({path:n,error:si(400,{type:"invalid-body"})}),s=r.formMethod||"get",a=t?s.toUpperCase():s.toLowerCase(),l=uF(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Mi(a))return i();
95let v=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((y,w)=>{let[T,E]=w;return""+y+T+"="+E+`
96`},""):String(r.body);return{path:n,submission:{formMethod:a,formAction:l,formEncType:r.formEncType,formData:void 0,json:void 0,text:v}}}else if(r.formEncType==="application/json"){if(!Mi(a))return i();try{let v=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:a,formAction:l,formEncType:r.formEncType,formData:void 0,json:v,text:void 0}}}catch{return i()}}}Ye(typeof FormData=="function","FormData is not available in this environment");let c,f;if(r.formData)c=zx(r.formData),f=r.formData;else if(r.body instanceof FormData)c=zx(r.body),f=r.body;else if(r.body instanceof URLSearchParams)c=r.body,f=yO(c);else if(r.body==null)c=new URLSearchParams,f=new FormData;else try{c=new URLSearchParams(r.body),f=yO(c)}catch{return i()}let d={formMethod:a,formAction:l,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:f,json:void 0,text:void 0};if(Mi(d.formMethod))return{path:n,submission:d};let g=xi(n);return e&&g.search&&f1(g.search)&&c.append("index",""),g.search="?"+c,{path:Wi(g),submission:d}}function Jte(t,e){let n=t;if(e){let r=t.findIndex(i=>i.route.id===e);r>=0&&(n=t.slice(0,r))}return n}function gO(t,e,n,r,i,s,a,l,c,f,d,g,v,y,w,T){let E=T?Object.values(T)[0]:w?Object.values(w)[0]:void 0,x=t.createURL(e.location),b=t.createURL(i),C=T?Object.keys(T)[0]:void 0,O=Jte(n,C).filter((R,$)=>{let{route:j}=R;if(j.lazy)return!0;if(j.loader==null)return!1;if(s)return j.loader.hydrate?!0:e.loaderData[j.id]===void 0&&(!e.errors||e.errors[j.id]===void 0);if(Zte(e.loaderData,e.matches[$],R)||l.some(V=>V===R.route.id))return!0;let W=e.matches[$],H=R;return mO(R,Wt({currentUrl:x,currentParams:W.params,nextUrl:b,nextParams:H.params},r,{actionResult:E,defaultShouldRevalidate:a||x.pathname+x.search===b.pathname+b.search||x.search!==b.search||lF(W,H)}))}),k=[];return d.forEach((R,$)=>{if(s||!n.some(F=>F.route.id===R.routeId)||f.has($))return;let j=Ha(v,R.path,y);if(!j){k.push({key:$,routeId:R.routeId,path:R.path,matches:null,match:null,controller:null});return}let W=e.fetchers.get($),H=Bx(j,R.path),V=!1;g.has($)?V=!1:c.includes($)?V=!0:W&&W.state!=="idle"&&W.data===void 0?V=a:V=mO(H,Wt({currentUrl:x,currentParams:e.matches[e.matches.length-1].params,nextUrl:b,nextParams:n[n.length-1].params},r,{actionResult:E,defaultShouldRevalidate:a})),V&&k.push({key:$,routeId:R.routeId,path:R.path,matches:j,match:H,controller:new AbortController})}),[O,k]}function Zte(t,e,n){let r=!e||n.route.id!==e.route.id,i=t[n.route.id]===void 0;return r||i}function lF(t,e){let n=t.route.path;return t.pathname!==e.pathname||n!=null&&n.endsWith("*")&&t.params["*"]!==e.params["*"]}function mO(t,e){if(t.route.shouldRevalidate){let n=t.route.shouldRevalidate(e);if(typeof n=="boolean")return n}return e.defaultShouldRevalidate}async function vO(t,e,n){if(!t.lazy)return;let r=await t.lazy();if(!t.lazy)return;let i=n[t.id];Ye(i,"No route found in manifest");let s={};for(let a in r){let c=i[a]!==void 0&&a!=="hasErrorBoundary";to(!c,'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.')),!c&&!bte.has(a)&&(s[a]=r[a])}Object.assign(i,s),Object.assign(i,Wt({},e(i),{lazy:void 0}))}async function wf(t,e,n,r,i,s,a,l,c){c===void 0&&(c={});let f,d,g,v=T=>{let E,x=new Promise((b,C)=>E=C);return g=()=>E(),e.signal.addEventListener("abort",g),Promise.race([T({request:e,params:n.params,context:c.requestContext}),x])};try{let T=n.route[t];if(n.route.lazy)if(T){let E,x=await Promise.all([v(T).catch(b=>{E=b}),vO(n.route,s,i)]);if(E)throw E;d=x[0]}else if(await vO(n.route,s,i),T=n.route[t],T)d=await v(T);else if(t==="action"){let E=new URL(e.url),x=E.pathname+E.search;throw si(405,{method:e.method,pathname:x,routeId:n.route.id})}else return{type:rn.data,data:void 0};else if(T)d=await v(T);else{let E=new URL(e.url),x=E.pathname+E.search;throw si(404,{pathname:x})}Ye(d!==void 0,"You defined "+(t==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+t+"` ")+"function. Please return a value or `null`.")}catch(T){f=rn.error,d=T}finally{g&&e.signal.removeEventListener("abort",g)}if(rne(d)){let T=d.status;if(Gte.has(T)){let x=d.headers.get("Location");if(Ye(x,"Redirects returned/thrown from loaders/actions must have a Location header"),!oF.test(x))x=Fx(new URL(e.url),r.slice(0,r.indexOf(n)+1),a,!0,x,l);else if(!c.isStaticRequest){let b=new URL(e.url),C=x.startsWith("//")?new URL(b.protocol+x):new URL(x),A=Ar(C.pathname,a)!=null;C.origin===b.origin&&A&&(x=C.pathname+C.search+C.hash)}if(c.isStaticRequest)throw d.headers.set("Location",x),d;return{type:rn.redirect,status:T,location:x,revalidate:d.headers.get("X-Remix-Revalidate")!==null,reloadDocument:d.headers.get("X-Remix-Reload-Document")!==null}}if(c.isRouteRequest)throw{type:f===rn.error?rn.error:rn.data,response:d};let E;try{let x=d.headers.get("Content-Type");x&&/\bapplication\/json\b/.test(x)?d.body==null?E=null:E=await d.json():E=await d.text()}catch(x){return{type:rn.error,error:x}}return f===rn.error?{type:f,error:new l1(T,d.statusText,E),headers:d.headers}:{type:rn.data,data:E,statusCode:d.status,headers:d.headers}}if(f===rn.error)return{type:f,error:d};if(nne(d)){var y,w;return{type:rn.deferred,deferredData:d,statusCode:(y=d.init)==null?void 0:y.status,headers:((w=d.init)==null?void 0:w.headers)&&new Headers(d.init.headers)}}return{type:rn.data,data:d}}function bf(t,e,n,r){let i=t.createURL(uF(e)).toString(),s={signal:n};if(r&&Mi(r.formMethod)){let{formMethod:a,formEncType:l}=r;s.method=a.toUpperCase(),l==="application/json"?(s.headers=new Headers({"Content-Type":l}),s.body=JSON.stringify(r.json)):l==="text/plain"?s.body=r.text:l==="application/x-www-form-urlencoded"&&r.formData?s.body=zx(r.formData):s.body=r.formData}
vendor: 9,791 bytes, lines 96-105
96return new Request(i,s)}function zx(t){let e=new URLSearchParams;for(let[n,r]of t.entries())e.append(n,typeof r=="string"?r:r.name);return e}function yO(t){let e=new FormData;for(let[n,r]of t.entries())e.append(n,r);return e}function ene(t,e,n,r,i){let s={},a=null,l,c=!1,f={};return n.forEach((d,g)=>{let v=e[g].route.id;if(Ye(!Va(d),"Cannot handle redirect results in processLoaderData"),vu(d)){let y=Gf(t,v),w=d.error;r&&(w=Object.values(r)[0],r=void 0),a=a||{},a[y.route.id]==null&&(a[y.route.id]=w),s[v]=void 0,c||(c=!0,l=u1(d.error)?d.error.status:500),d.headers&&(f[v]=d.headers)}else Wa(d)?(i.set(v,d.deferredData),s[v]=d.deferredData.data):s[v]=d.data,d.statusCode!=null&&d.statusCode!==200&&!c&&(l=d.statusCode),d.headers&&(f[v]=d.headers)}),r&&(a=r,s[Object.keys(r)[0]]=void 0),{loaderData:s,errors:a,statusCode:l||200,loaderHeaders:f}}function wO(t,e,n,r,i,s,a,l){let{loaderData:c,errors:f}=ene(e,n,r,i,l);for(let d=0;d<s.length;d++){let{key:g,match:v,controller:y}=s[d];Ye(a!==void 0&&a[d]!==void 0,"Did not find corresponding fetcher result");let w=a[d];if(!(y&&y.signal.aborted))if(vu(w)){let T=Gf(t.matches,v==null?void 0:v.route.id);f&&f[T.route.id]||(f=Wt({},f,{[T.route.id]:w.error})),t.fetchers.delete(g)}else if(Va(w))Ye(!1,"Unhandled fetcher revalidation redirect");else if(Wa(w))Ye(!1,"Unhandled fetcher deferred data");else{let T=Lo(w.data);t.fetchers.set(g,T)}}return{loaderData:c,errors:f}}function bO(t,e,n,r){let i=Wt({},e);for(let s of n){let a=s.route.id;if(e.hasOwnProperty(a)?e[a]!==void 0&&(i[a]=e[a]):t[a]!==void 0&&s.route.loader&&(i[a]=t[a]),r&&r.hasOwnProperty(a))break}return i}function Gf(t,e){return(e?t.slice(0,t.findIndex(r=>r.route.id===e)+1):[...t]).reverse().find(r=>r.route.hasErrorBoundary===!0)||t[0]}function xO(t){let e=t.length===1?t[0]:t.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:e}],route:e}}function si(t,e){let{pathname:n,routeId:r,method:i,type:s}=e===void 0?{}:e,a="Unknown Server Error",l="Unknown @remix-run/router error";return t===400?(a="Bad Request",i&&n&&r?l="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":s==="defer-action"?l="defer() is not supported in actions":s==="invalid-body"&&(l="Unable to encode submission body")):t===403?(a="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):t===404?(a="Not Found",l='No route matches URL "'+n+'"'):t===405&&(a="Method Not Allowed",i&&n&&r?l="You made a "+i.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(l='Invalid request method "'+i.toUpperCase()+'"')),new l1(t||500,a,new Error(l),!0)}function SO(t){for(let e=t.length-1;e>=0;e--){let n=t[e];if(Va(n))return{result:n,idx:e}}}function uF(t){let e=typeof t=="string"?xi(t):t;return Wi(Wt({},e,{hash:""}))}function tne(t,e){return t.pathname!==e.pathname||t.search!==e.search?!1:t.hash===""?e.hash!=="":t.hash===e.hash?!0:e.hash!==""}function Wa(t){return t.type===rn.deferred}function vu(t){return t.type===rn.error}function Va(t){return(t&&t.type)===rn.redirect}function nne(t){let e=t;return e&&typeof e=="object"&&typeof e.data=="object"&&typeof e.subscribe=="function"&&typeof e.cancel=="function"&&typeof e.resolveData=="function"}function rne(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.headers=="object"&&typeof t.body<"u"}function ine(t){return qte.has(t.toLowerCase())}function Mi(t){return Vte.has(t.toLowerCase())}async function EO(t,e,n,r,i,s){for(let a=0;a<n.length;a++){let l=n[a],c=e[a];if(!c)continue;let f=t.find(g=>g.route.id===c.route.id),d=f!=null&&!lF(f,c)&&(s&&s[c.route.id])!==void 0;if(Wa(l)&&(i||d)){let g=r[a];Ye(g,"Expected an AbortSignal for revalidating fetcher deferred result"),await cF(l,g,i).then(v=>{v&&(n[a]=v||n[a])})}}}async function cF(t,e,n){if(n===void 0&&(n=!1),!await t.deferredData.resolveData(e)){if(n)try{return{type:rn.data,data:t.deferredData.unwrappedData}}catch(i){return{type:rn.error,error:i}}return{type:rn.data,data:t.deferredData.data}}}function f1(t){return new URLSearchParams(t).getAll("index").some(e=>e==="")}function Bx(t,e){let n=typeof e=="string"?xi(e).search:e.search;if(t[t.length-1].route.index&&f1(n||""))return t[t.length-1];let r=nF(t);return r[r.length-1]}function CO(t){let{formMethod:e,formAction:n,formEncType:r,text:i,formData:s,json:a}=t;if(!(!e||!n||!r)){if(i!=null)return{formMethod:e,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(s!=null)return{formMethod:e,formAction:n,formEncType:r,formData:s,json:void 0,text:void 0};if(a!==void 0)return{formMethod:e,formAction:n,formEncType:r,formData:void 0,json:a,text:void 0}}}function C0(t,e){return e?{state:"loading",location:t,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}:{state:"loading",location:t,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function sne(t,e){return{state:"submitting",location:t,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}}function xf(t,e){return t?{state:"loading",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:e}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function one(t,e){return{state:"submitting",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:e?e.data:void 0}}function Lo(t){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function ane(t,e){try{let n=t.sessionStorage.getItem(aF);if(n){let r=JSON.parse(n);for(let[i,s]of Object.entries(r||{}))s&&Array.isArray(s)&&e.set(i,new Set(s||[]))}}catch{}}function lne(t,e){if(e.size>0){let n={};for(let[r,i]of e)n[r]=[...i];try{t.sessionStorage.setItem(aF,JSON.stringify(n))}catch(r){to(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/**
97 * React Router v6.22.3
98 *
99 * Copyright (c) Remix Software Inc.
100 *
101 * This source code is licensed under the MIT license found in the
102 * LICENSE.md file in the root directory of this source tree.
103 *
104 * @license MIT
105 */function ra(){return ra=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ra.apply(this,arguments)}const cc=I.createContext(null),qd=I.createContext(null),im=I.createContext(null),Jr=I.createContext(null),fc=I.createContext(null),Zr=I.createContext({outlet:null,matches:[],isDataRoute:!1}),fF=I.createContext(null);function dF(t,e){let{relative:n}=e===void 0?{}:e;fa()||Ye(!1);let{basename:r,navigator:i}=I.useContext(Jr),{hash:s,pathname:a,search:l}=dc(t,{relative:n}),c=a;return r!=="/"&&(c=a==="/"?r:ws([r,a])),i.createHref({pathname:c,search:l,hash:s})}function fa(){return I.useContext(fc)!=null}function Ji(){return fa()||Ye(!1),I.useContext(fc).location}function une(){return I.useContext(fc).navigationType}function cne(t){fa()||Ye(!1);let{pathname:e}=Ji();return I.useMemo(()=>Sd(t,e),[e,t])}function pF(t){I.useContext(Jr).static||I.useLayoutEffect(t)}function kv(){let{isDataRoute:t}=I.useContext(Zr);return t?Tne():fne()}function fne(){fa()||Ye(!1);let t=I.useContext(cc),{basename:e,future:n,navigator:r}=I.useContext(Jr),{matches:i}=I.useContext(Zr),{pathname:s}=Ji(),a=JSON.stringify(_v(i,n.v7_relativeSplatPath)),l=I.useRef(!1);return pF(()=>{l.current=!0}),I.useCallback(function(f,d){if(d===void 0&&(d={}),!l.current)return;if(typeof f=="number"){r.go(f);return}let g=Av(f,JSON.parse(a),s,d.relative==="path");t==null&&e!=="/"&&(g.pathname=g.pathname==="/"?e:ws([e,g.pathname])),(d.replace?r.replace:r.push)(g,d.state,d)},[e,r,a,s,t])}const hF=I.createContext(null);function dne(){return I.useContext(hF)}function gF(t){let e=I.useContext(Zr).outlet;return e&&I.createElement(hF.Provider,{value:t},e)}function pne(){let{matches:t}=I.useContext(Zr),e=t[t.length-1];return e?e.params:{}}function dc(t,e){let{relative:n}=e===void 0?{}:e,{future:r}=I.useContext(Jr),{matches:i}=I.useContext(Zr),{pathname:s}=Ji(),a=JSON.stringify(_v(i,r.v7_relativeSplatPath));return I.useMemo(()=>Av(t,JSON.parse(a),s,n==="path"),[t,a,s,n])}function mF(t,e){return vF(t,e)}function vF(t,e,n,r){fa()||Ye(!1);let{navigator:i}=I.useContext(Jr),{matches:s}=I.useContext(Zr),a=s[s.length-1],l=a?a.params:{};a&&a.pathname;let c=a?a.pathnameBase:"/";a&&a.route;let f=Ji(),d;if(e){var g;let E=typeof e=="string"?xi(e):e;c==="/"||(g=E.pathname)!=null&&g.startsWith(c)||Ye(!1),d=E}else d=f;let v=d.pathname||"/",y=v;if(c!=="/"){let E=c.replace(/^\//,"").split("/");y="/"+v.replace(/^\//,"").split("/").slice(E.length).join("/")}let w=Ha(t,{pathname:y}),T=yF(w&&w.map(E=>Object.assign({},E,{params:Object.assign({},l,E.params),pathname:ws([c,i.encodeLocation?i.encodeLocation(E.pathname).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?c:ws([c,i.encodeLocation?i.encodeLocation(E.pathnameBase).pathname:E.pathnameBase])})),s,n,r);return e&&T?I.createElement(fc.Provider,{value:{location:ra({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Mt.Pop}},T):T}function hne(){let t=SF(),e=u1(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},s=null;return I.createElement(I.Fragment,null,I.createElement("h2",null,"Unexpected Application 
105Error!"),I.createElement("h3",{style:{fontStyle:"italic"}},e),n?I.createElement("pre",{style:i},n):null,s)}const gne=I.createElement(hne,null);class mne extends I.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error!==void 0?I.createElement(Zr.Provider,{value:this.props.routeContext},I.createElement(fF.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function vne(t){let{routeContext:e,match:n,children:r}=t,i=I.useContext(cc);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),I.createElement(Zr.Provider,{value:e},r)}function yF(t,e,n,r){var i;if(e===void 0&&(e=[]),n===void 0&&(n=null),r===void 0&&(r=null),t==null){var s;if((s=n)!=null&&s.errors)t=n.matches;else return null}let a=t,l=(i=n)==null?void 0:i.errors;if(l!=null){let d=a.findIndex(g=>g.route.id&&(l==null?void 0:l[g.route.id]));d>=0||Ye(!1),a=a.slice(0,Math.min(a.length,d+1))}let c=!1,f=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<a.length;d++){let g=a[d];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(f=d),g.route.id){let{loaderData:v,errors:y}=n,w=g.route.loader&&v[g.route.id]===void 0&&(!y||y[g.route.id]===void 0);if(g.route.lazy||w){c=!0,f>=0?a=a.slice(0,f+1):a=[a[0]];break}}}return a.reduceRight((d,g,v)=>{let y,w=!1,T=null,E=null;n&&(y=l&&g.route.id?l[g.route.id]:void 0,T=g.route.errorElement||gne,c&&(f<0&&v===0?(_ne("route-fallback",!1),w=!0,E=null):f===v&&(w=!0,E=g.route.hydrateFallbackElement||null)));let x=e.concat(a.slice(0,v+1)),b=()=>{let C;return y?C=T:w?C=E:g.route.Component?C=I.createElement(g.route.Component,null):g.route.element?C=g.route.element:C=d,I.createElement(vne,{match:g,routeContext:{outlet:d,matches:x,isDataRoute:n!=null},children:C})};return n&&(g.route.ErrorBoundary||g.route.errorElement||v===0)?I.createElement(mne,{location:n.location,revalidation:n.revalidation,component:T,error:y,children:b(),routeContext:{outlet:null,matches:x,isDataRoute:!0}}):b()},null)}var Lv=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(Lv||{}),kr=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(kr||{});function d1(t){let e=I.useContext(cc);return e||Ye(!1),e}function da(t){let e=I.useContext(qd);return e||Ye(!1),e}function yne(t){let e=I.useContext(Zr);return e||Ye(!1),e}function Gd(t){let e=yne(),n=e.matches[e.matches.length-1];return n.route.id||Ye(!1),n.route.id}function wF(){return Gd(kr.UseRouteId)}function bF(){return da(kr.UseNavigation).navigation}function wne(){let t=d1(Lv.UseRevalidator),e=da(kr.UseRevalidator);return I.useMemo(()=>({revalidate:t.router.revalidate,state:e.revalidation}),[t.router.revalidate,e.revalidation])}function xF(){let{matches:t,loaderData:e}=da(kr.UseMatches);return I.useMemo(()=>t.map(n=>J$(n,e)),[t,e])}function bne(){let t=da(kr.UseLoaderData),e=Gd(kr.UseLoaderData);if(t.errors&&t.errors[e]!=null){console.error("You cannot `useLoaderData` in an errorElement (routeId: "+e+")");return}return t.loaderData[e]}function xne(t){return da(kr.UseRouteLoaderData).loaderData[t]}function Sne(){let t=da(kr.UseActionData),e=Gd(kr.UseLoaderData);return t.actionData?t.actionData[e]:void 0}function SF(){var t;let e=I.useContext(fF),n=da(kr.UseRouteError),r=Gd(kr.UseRouteError);return e!==void 0?e:(t=n.errors)==null?void 0:t[r]}function EF(){let t=I.useContext(im);return t==null?void 0:t._data}function Ene(){let t=I.useContext(im);return t==null?void 0:t._error}let Cne=0;function CF(t){let{router:e,basename:n}=d1(Lv.UseBlocker),r=da(kr.UseBlocker),[i,s]=I.useState(""),a=I.useCallback(l=>{if(typeof t!="function")return!!t;if(n==="/")return t(l);let{currentLocation:c,nextLocation:f,historyAction:d}=l;return t({currentLocation:ra({},c,{pathname:Ar(c.pathname,n)||c.pathname}),nextLocation:ra({},f,{pathname:Ar(f.pathname,n)||f.pathname}),historyAction:d})},[n,t]);return I.useEffect(()=>{let l=String(++Cne);return s(l),()=>e.deleteBlocker(l)},[e]),I.useEffect(()=>{i!==""&&e.getBlocker(i,a)},[e,i,a]),i&&r.blockers.has(i)?r.blockers.get(i):ru}function Tne(){let{router:t}=d1(Lv.UseNavigateStable),e=Gd(kr.UseNavigateStable),n=I.useRef(!1);return pF(()=>{n.current=!0}),I.useCallback(function(i,s){s===void 0&&(s={}),n.current&&(typeof i=="number"?t.navigate(i):t.navigate(i,ra({fromRouteId:e},s)))},[t,e])}const TO={};function _ne(t,e,n){!e&&!TO[t]&&(TO[t]=!0)}const Ane="startTransition",_O=Xf[Ane];function kne(t){let{basename:e,children:n,initialEntries:r,initialIndex:i,future:s}=t,a=I.useRef();a.current==null&&(a.current=G$({initialEntries:r,initialIndex:i,v5Compat:!0}));
105let l=a.current,[c,f]=I.useState({action:l.action,location:l.location}),{v7_startTransition:d}=s||{},g=I.useCallback(v=>{d&&_O?_O(()=>f(v)):f(v)},[f,d]);return I.useLayoutEffect(()=>l.listen(g),[l,g]),I.createElement(pc,{basename:e,children:n,location:c.location,navigationType:c.action,navigator:l,future:s})}function Lne(t){let{to:e,replace:n,state:r,relative:i}=t;fa()||Ye(!1);let{future:s,static:a}=I.useContext(Jr),{matches:l}=I.useContext(Zr),{pathname:c}=Ji(),f=kv(),d=Av(e,_v(l,s.v7_relativeSplatPath),c,i==="path"),g=JSON.stringify(d);return I.useEffect(()=>f(JSON.parse(g),{replace:n,state:r,relative:i}),[f,g,i,n,r]),null}function One(t){return gF(t.context)}function TF(t){Ye(!1)}function pc(t){let{basename:e="/",children:n=null,location:r,navigationType:i=Mt.Pop,navigator:s,static:a=!1,future:l}=t;fa()&&Ye(!1);let c=e.replace(/^\/*/,"/"),f=I.useMemo(()=>({basename:c,navigator:s,static:a,future:ra({v7_relativeSplatPath:!1},l)}),[c,l,s,a]);typeof r=="string"&&(r=xi(r));let{pathname:d="/",search:g="",hash:v="",state:y=null,key:w="default"}=r,T=I.useMemo(()=>{let E=Ar(d,c);return E==null?null:{location:{pathname:E,search:g,hash:v,state:y,key:w},navigationType:i}},[c,d,g,v,y,w,i]);return T==null?null:I.createElement(Jr.Provider,{value:f},I.createElement(fc.Provider,{children:n,value:T}))}function Ine(t){let{children:e,location:n}=t;return mF(Ed(e),n)}function Pne(t){let{children:e,errorElement:n,resolve:r}=t;return I.createElement(Mne,{resolve:r,errorElement:n},I.createElement(Dne,null,e))}var ni=function(t){return t[t.pending=0]="pending",t[t.success=1]="success",t[t.error=2]="error",t}(ni||{});const Rne=new Promise(()=>{});class Mne extends I.Component{constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,n){console.error("<Await> caught the following error during render",e,n)}render(){let{children:e,errorElement:n,resolve:r}=this.props,i=null,s=ni.pending;if(!(r instanceof Promise))s=ni.success,i=Promise.resolve(),Object.defineProperty(i,"_tracked",{get:()=>!0}),Object.defineProperty(i,"_data",{get:()=>r});else if(this.state.error){s=ni.error;let a=this.state.error;i=Promise.reject().catch(()=>{}),Object.defineProperty(i,"_tracked",{get:()=>!0}),Object.defineProperty(i,"_error",{get:()=>a})}else r._tracked?(i=r,s=i._error!==void 0?ni.error:i._data!==void 0?ni.success:ni.pending):(s=ni.pending,Object.defineProperty(r,"_tracked",{get:()=>!0}),i=r.then(a=>Object.defineProperty(r,"_data",{get:()=>a}),a=>Object.defineProperty(r,"_error",{get:()=>a})));if(s===ni.error&&i._error instanceof rm)throw Rne;if(s===ni.error&&!n)throw i._error;if(s===ni.error)return I.createElement(im.Provider,{value:i,children:n});if(s===ni.success)return I.createElement(im.Provider,{value:i,children:e});throw i}}function Dne(t){let{children:e}=t,n=EF(),r=typeof e=="function"?e(n):e;return I.createElement(I.Fragment,null,r)}function Ed(t,e){e===void 0&&(e=[]);let n=[];return I.Children.forEach(t,(r,i)=>{if(!I.isValidElement(r))return;let s=[...e,i];if(r.type===I.Fragment){n.push.apply(n,Ed(r.props.children,s));return}r.type!==TF&&Ye(!1),!r.props.index||!r.props.children||Ye(!1);let a={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=Ed(r.props.children,s)),n.push(a)}),n}function Nne(t){return yF(t)}function p1(t){let e={hasErrorBoundary:t.ErrorBoundary!=null||t.errorElement!=null};return t.Component&&Object.assign(e,{element:I.createElement(t.Component),Component:void 0}),t.HydrateFallback&&Object.assign(e,{hydrateFallbackElement:I.createElement(t.HydrateFallback),HydrateFallback:void 0}),t.ErrorBoundary&&Object.assign(e,{errorElement:I.createElement(t.ErrorBoundary),ErrorBoundary:void 0}),e}function $ne(t,e){return c1({basename:e==null?void 0:e.basename,future:ra({}
105,e==null?void 0:e.future,{v7_prependBasename:!0}),history:G$({initialEntries:e==null?void 0:e.initialEntries,initialIndex:e==null?void 0:e.initialIndex}),hydrationData:e==null?void 0:e.hydrationData,routes:t,mapRouteProperties:p1}).initialize()}/**
106 * React Router DOM v6.22.3
107 *
108 * Copyright (c) Remix Software Inc.
109 *
110 * This source code is licensed under the MIT license found in the
111 * LICENSE.md file in the root directory of this source tree.
112 *
113 * @license MIT
114 */function _r(){return _r=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},_r.apply(this,arguments)}function h1(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,s;for(s=0;s<r.length;s++)i=r[s],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}const Qh="get",T0="application/x-www-form-urlencoded";function Ov(t){return t!=null&&typeof t.tagName=="string"}function Fne(t){return Ov(t)&&t.tagName.toLowerCase()==="button"}function zne(t){return Ov(t)&&t.tagName.toLowerCase()==="form"}function Bne(t){return Ov(t)&&t.tagName.toLowerCase()==="input"}function jne(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function Une(t,e){return t.button===0&&(!e||e==="_self")&&!jne(t)}function sm(t){return t===void 0&&(t=""),new URLSearchParams(typeof t=="string"||Array.isArray(t)||t instanceof URLSearchParams?t:Object.keys(t).reduce((e,n)=>{let r=t[n];return e.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function Hne(t,e){let n=sm(t);return e&&e.forEach((r,i)=>{n.has(i)||e.getAll(i).forEach(s=>{n.append(i,s)})}),n}let hh=null;function Wne(){if(hh===null)try{new FormData(document.createElement("form"),0),hh=!1}catch{hh=!0}return hh}const Vne=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function _0(t){return t!=null&&!Vne.has(t)?null:t}function Kne(t,e){let n,r,i,s,a;if(zne(t)){let l=t.getAttribute("action");r=l?Ar(l,e):null,n=t.getAttribute("method")||Qh,i=_0(t.getAttribute("enctype"))||T0,s=new FormData(t)}else if(Fne(t)||Bne(t)&&(t.type==="submit"||t.type==="image")){let l=t.form;if(l==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let c=t.getAttribute("formaction")||l.getAttribute("action");if(r=c?Ar(c,e):null,n=t.getAttribute("formmethod")||l.getAttribute("method")||Qh,i=_0(t.getAttribute("formenctype"))||_0(l.getAttribute("enctype"))||T0,s=new FormData(l,t),!Wne()){let{name:f,type:d,value:g}=t;if(d==="image"){let v=f?f+".":"";s.append(v+"x","0"),s.append(v+"y","0")}else f&&s.append(f,g)}}else{if(Ov(t))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Qh,r=null,i=T0,a=t}return s&&i==="text/plain"&&(a=s,s=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:s,body:a}}const qne=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],Gne=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"],Yne=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","unstable_viewTransition"],Xne="6";try{window.__reactRouterVersion=Xne}catch{}function Qne(t,e){return c1({basename:e==null?void 0:e.basename,future:_r({},e==null?void 0:e.future,{v7_prependBasename:!0}),history:Y$({window:e==null?void 0:e.window}),hydrationData:(e==null?void 0:e.hydrationData)||_F(),routes:t,mapRouteProperties:p1,window:e==null?void 0:e.window}).initialize()}function Jne(t,e){return c1({basename:e==null?void 0:e.basename,future:_r({},e==null?void 0:e.future,{v7_prependBasename:!0}),history:X$({window:e==null?void 0:e.window}),hydrationData:(e==null?void 0:e.hydrationData)||_F(),routes:t,mapRouteProperties:p1,window:e==null?void 0:e.window}).initialize()}function _F(){var t;let e=(t=window)==null?void 0:t.__staticRouterHydrationData;return e&&e.errors&&(e=_r({},e,{errors:Zne(e.errors)})),e}function Zne(t){if(!t)return null;let e=Object.entries(t),n={};for(let[r,i]of e)if(i&&i.__type==="RouteErrorResponse")n[r]=new l1(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let s=window[i.__subType];if(typeof s=="function")try{let a=new s(i.message);a.stack="",n[r]=a}catch{}}if(n[r]==null){let s=new Error(i.message);s.stack="",n[r]=s}}else n[r]=i;return n}const g1=I.createContext({isTransitioning:!1}),m1=I.createContext(new Map),ere="startTransition",ia=Xf[ere],tre="flushSync",AO=RW[tre],nre="useId",kO=Xf[nre];function rre(t){ia?ia(t):t()}function Sf(t){AO?AO(t):t()}class ire{constructor(){this.status="pending",this.promise=new Promise((e,n
114)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",e(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",n(r))}})}}function sre(t){let{fallbackElement:e,router:n,future:r}=t,[i,s]=I.useState(n.state),[a,l]=I.useState(),[c,f]=I.useState({isTransitioning:!1}),[d,g]=I.useState(),[v,y]=I.useState(),[w,T]=I.useState(),E=I.useRef(new Map),{v7_startTransition:x}=r||{},b=I.useCallback(R=>{x?rre(R):R()},[x]),C=I.useCallback((R,$)=>{let{deletedFetchers:j,unstable_flushSync:W,unstable_viewTransitionOpts:H}=$;j.forEach(F=>E.current.delete(F)),R.fetchers.forEach((F,z)=>{F.data!==void 0&&E.current.set(z,F.data)});let V=n.window==null||typeof n.window.document.startViewTransition!="function";if(!H||V){W?Sf(()=>s(R)):b(()=>s(R));return}if(W){Sf(()=>{v&&(d&&d.resolve(),v.skipTransition()),f({isTransitioning:!0,flushSync:!0,currentLocation:H.currentLocation,nextLocation:H.nextLocation})});let F=n.window.document.startViewTransition(()=>{Sf(()=>s(R))});F.finished.finally(()=>{Sf(()=>{g(void 0),y(void 0),l(void 0),f({isTransitioning:!1})})}),Sf(()=>y(F));return}v?(d&&d.resolve(),v.skipTransition(),T({state:R,currentLocation:H.currentLocation,nextLocation:H.nextLocation})):(l(R),f({isTransitioning:!0,flushSync:!1,currentLocation:H.currentLocation,nextLocation:H.nextLocation}))},[n.window,v,d,E,b]);I.useLayoutEffect(()=>n.subscribe(C),[n,C]),I.useEffect(()=>{c.isTransitioning&&!c.flushSync&&g(new ire)},[c]),I.useEffect(()=>{if(d&&a&&n.window){let R=a,$=d.promise,j=n.window.document.startViewTransition(async()=>{b(()=>s(R)),await $});j.finished.finally(()=>{g(void 0),y(void 0),l(void 0),f({isTransitioning:!1})}),y(j)}},[b,a,d,n.window]),I.useEffect(()=>{d&&a&&i.location.key===a.location.key&&d.resolve()},[d,v,i.location,a]),I.useEffect(()=>{!c.isTransitioning&&w&&(l(w.state),f({isTransitioning:!0,flushSync:!1,currentLocation:w.currentLocation,nextLocation:w.nextLocation}),T(void 0))},[c.isTransitioning,w]),I.useEffect(()=>{},[]);let A=I.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:R=>n.navigate(R),push:(R,$,j)=>n.navigate(R,{state:$,preventScrollReset:j==null?void 0:j.preventScrollReset}),replace:(R,$,j)=>n.navigate(R,{replace:!0,state:$,preventScrollReset:j==null?void 0:j.preventScrollReset})}),[n]),O=n.basename||"/",k=I.useMemo(()=>({router:n,navigator:A,static:!1,basename:O}),[n,A,O]);return I.createElement(I.Fragment,null,I.createElement(cc.Provider,{value:k},I.createElement(qd.Provider,{value:i},I.createElement(m1.Provider,{value:E.current},I.createElement(g1.Provider,{value:c},I.createElement(pc,{basename:O,location:i.location,navigationType:i.historyAction,navigator:A,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},i.initialized||n.future.v7_partialHydration?I.createElement(ore,{routes:n.routes,future:n.future,state:i}):e))))),null)}function ore(t){let{routes:e,future:n,state:r}=t;return vF(e,void 0,r,n)}function are(t){let{basename:e,children:n,future:r,window:i}=t,s=I.useRef();s.current==null&&(s.current=Y$({window:i,v5Compat:!0}));let a=s.current,[l,c]=I.useState({action:a.action,location:a.location}),{v7_startTransition:f}=r||{},d=I.useCallback(g=>{f&&ia?ia(()=>c(g)):c(g)},[c,f]);return I.useLayoutEffect(()=>a.listen(d),[a,d]),I.createElement(pc,{basename:e,children:n,location:l.location,navigationType:l.action,navigator:a,future:r})}function lre(t){let{basename:e,children:n,future:r,window:i}=t,s=I.useRef();s.current==null&&(s.current=X$({window:i,v5Compat:!0}));let a=s.current,[l,c]=I.useState({action:a.action,location:a.location}),{v7_startTransition:f}=r||{},d=I.useCallback(g=>{f&&ia?ia(()=>c(g)):c(g)},[c,f]);return I.useLayoutEffect(()=>a.listen(d),[a,d]),I.createElement(pc,{basename:e,children:n,location:l.location,navigationType:l.action,navigator:a,future:r})}function ure(t){let{basename:e,children:n,future:r,history:i}=t,[s,a]=I.useState({action:i.action,location:i.location}),{v7_startTransition:l}=r||{},c=I.useCallback(f=>{l&&ia?ia(()=>a(f)):a(f)},[a,l]);return I.useLayoutEffect(()=>i.listen(c),[i,c]),I.createElement(pc,{basename:e,children:n,location:s.location,navigationType:s.action,navigator:i,future:r})}const cre=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",fre=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,AF=I.forwardRef(function(e,n){let{onClick:r,relative:i,reloadDocument:s,replace:a,state:l,target:c,to:f,preventScrollReset:d,unstable_viewTransition:g}=e,v=h1(e,qne),{basename:y}=I.useContext(Jr),w,T=!1;if(typeof f=="string"&&fre.test(f)&&(w=f,cre))try{let C=new URL(window.location.href),A=f.startsWith("//")?new URL(C.protocol+f):new URL(f),O=Ar(A.pathname,y);A.origin===C.origin&&O!=null?f=O+A.search+A.hash:T=!0}catch{}let E=dF(f,{relative:i}),x=LF(f,{replace:a,state:l,target:c,preventScrollReset:d,relative:i,unstable_viewTransition:g});function b(C){r&&r(C),C.defaultPrevented||x(C)}return I.createElement("a",_r({},v,{href:w||E,onClick:T||s?r:b,ref:n,target:c}))}),dre=I.forwardRef(function(e,n){let{"aria-current":r="page",caseSensitive:i=!1,className:s="",end:a=!1,style:l,to:c,unstable_viewTransition:f,children:d}=e,g=h1(e,Gne),v=dc(c,{relative:g.relative}),y=Ji(),w=I.useContext(qd),{navigator:T,basename:E}=I.useContext(Jr),x=w!=null&&RF(v)&&f===!0,b=T.encodeLocation?T.encodeLocation(v).pathname:v.pathname,C=y.pathname,A=w&&w.navigation&&w.navigation.location?w.navigation.location.pathname:null;i||(C=C.toLowerCase(),A=A?A.toLowerCase():null,b=b.toLowerCase()),A&&E&&(A=Ar(A,E)||A);const O=b!=="/"&&b.endsWith("/")?b.length-1:b.length;let k=C===b||!a&&C.startsWith(b)&&C.charAt(O)==="/",R=A!=null&&(A===b||!a&&A.startsWith(b)&&A.charAt(b.length)==="/"),$={isActive:k,isPending:R,isTransitioning:x},j=k?r:void 0,W;typeof s=="function"?W=s($):W=[s,k?"active":null,R?"pending":null,x?"transitioning":null].filter(
114Boolean).join(" ");let H=typeof l=="function"?l($):l;return I.createElement(AF,_r({},g,{"aria-current":j,className:W,ref:n,style:H,to:c,unstable_viewTransition:f}),typeof d=="function"?d($):d)}),kF=I.forwardRef((t,e)=>{let{fetcherKey:n,navigate:r,reloadDocument:i,replace:s,state:a,method:l=Qh,action:c,onSubmit:f,relative:d,preventScrollReset:g,unstable_viewTransition:v}=t,y=h1(t,Yne),w=y1(),T=IF(c,{relative:d}),E=l.toLowerCase()==="get"?"get":"post",x=b=>{if(f&&f(b),b.defaultPrevented)return;b.preventDefault();let C=b.nativeEvent.submitter,A=(C==null?void 0:C.getAttribute("formmethod"))||l;w(C||b.currentTarget,{fetcherKey:n,method:A,navigate:r,replace:s,state:a,relative:d,preventScrollReset:g,unstable_viewTransition:v})};return I.createElement("form",_r({ref:e,method:E,action:T,onSubmit:i?f:x},y))});function pre(t){let{getKey:e,storageKey:n}=t;return PF({getKey:e,storageKey:n}),null}var qu;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(qu||(qu={}));var Cd;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(Cd||(Cd={}));function Iv(t){let e=I.useContext(cc);return e||Ye(!1),e}function v1(t){let e=I.useContext(qd);return e||Ye(!1),e}function LF(t,e){let{target:n,replace:r,state:i,preventScrollReset:s,relative:a,unstable_viewTransition:l}=e===void 0?{}:e,c=kv(),f=Ji(),d=dc(t,{relative:a});return I.useCallback(g=>{if(Une(g,n)){g.preventDefault();let v=r!==void 0?r:Wi(f)===Wi(d);c(t,{replace:v,state:i,preventScrollReset:s,relative:a,unstable_viewTransition:l})}},[f,c,d,r,i,n,t,s,a,l])}function hre(t){let e=I.useRef(sm(t)),n=I.useRef(!1),r=Ji(),i=I.useMemo(()=>Hne(r.search,n.current?null:e.current),[r.search]),s=kv(),a=I.useCallback((l,c)=>{const f=sm(typeof l=="function"?l(i):l);n.current=!0,s("?"+f,c)},[s,i]);return[i,a]}function gre(){if(typeof document>"u")throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}let mre=0,OF=()=>"__"+String(++mre)+"__";function y1(){let{router:t}
114=Iv(qu.UseSubmit),{basename:e}=I.useContext(Jr),n=wF();return I.useCallback(function(r,i){i===void 0&&(i={}),gre();let{action:s,method:a,encType:l,formData:c,body:f}=Kne(r,e);if(i.navigate===!1){let d=i.fetcherKey||OF();t.fetch(d,n,i.action||s,{preventScrollReset:i.preventScrollReset,formData:c,body:f,formMethod:i.method||a,formEncType:i.encType||l,unstable_flushSync:i.unstable_flushSync})}else t.navigate(i.action||s,{preventScrollReset:i.preventScrollReset,formData:c,body:f,formMethod:i.method||a,formEncType:i.encType||l,replace:i.replace,state:i.state,fromRouteId:n,unstable_flushSync:i.unstable_flushSync,unstable_viewTransition:i.unstable_viewTransition})},[t,e,n])}function IF(t,e){let{relative:n}=e===void 0?{}:e,{basename:r}=I.useContext(Jr),i=I.useContext(Zr);i||Ye(!1);let[s]=i.matches.slice(-1),a=_r({},dc(t||".",{relative:n})),l=Ji();if(t==null){a.search=l.search;let c=new URLSearchParams(a.search);c.has("index")&&c.get("index")===""&&(c.delete("index"),a.search=c.toString()?"?"+c.toString():"")}return(!t||t===".")&&s.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(
114a.pathname=a.pathname==="/"?r:ws([r,a.pathname])),Wi(a)}function vre(t){var e;let{key:n}=t===void 0?{}:t,{router:r}=Iv(qu.UseFetcher),i=v1(Cd.UseFetcher),s=I.useContext(m1),a=I.useContext(Zr),l=(e=a.matches[a.matches.length-1])==null?void 0:e.route.id;s||Ye(!1),a||Ye(!1),l==null&&Ye(!1);let c=kO?kO():"",[f,d]=I.useState(n||c);n&&n!==f?d(n):f||d(OF()),I.useEffect(()=>(r.getFetcher(f),()=>{r.deleteFetcher(f)}),[r,f]);let g=I.useCallback((b,C)=>{l||Ye(!1),r.fetch(f,l,b,C)},[f,l,r]),v=y1(),y=I.useCallback((b,C)=>{v(b,_r({},C,{navigate:!1,fetcherKey:f}))},[f,v]),w=I.useMemo(()=>I.forwardRef((C,A)=>I.createElement(kF,_r({},C,{navigate:!1,fetcherKey:f,ref:A}))),[f]),T=i.fetchers.get(f)||sF,E=s.get(f);return I.useMemo(()=>_r({Form:w,submit:y,load:g},T,{data:E}),[w,y,g,T,E])}function yre(){let t=v1(Cd.UseFetchers);return Array.from(t.fetchers.entries()).map(e=>{let[n,r]=e;return _r({},r,{key:n})})}const LO="react-router-scroll-positions";let gh={};function PF(t){let{getKey:e,storageKey:n}=t===void 0?{}:t,{router:r}=Iv(qu.UseScrollRestoration),{restoreScrollPosition:i,preventScrollReset:s}=v1(Cd.UseScrollRestoration),{basename:a}=I.useContext(Jr),l=Ji(),c=xF(),f=bF();I.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),bre(I.useCallback(()=>{if(f.state==="idle"){let d=(e?e(l,c):null)||l.key;gh[d]=window.scrollY}try{sessionStorage.setItem(n||LO,JSON.stringify(gh))}catch{}window.history.scrollRestoration="auto"},[n,e,f.state,l,c])),typeof document<"u"&&(I.useLayoutEffect(()=>{try{let d=sessionStorage.getItem(n||LO);d&&(gh=JSON.parse(d))}catch{}},[n]),I.useLayoutEffect(()=>{let d=e&&a!=="/"?(v,y)=>e(_r({},v,{pathname:Ar(v.pathname,a)||v.pathname}),y):e,g=r==null?void 0:r.enableScrollRestoration(gh,()=>window.scrollY,d);return()=>g&&g()},[r,a,e]),I.useLayoutEffect(()=>{if(i!==!1){if(typeof i=="number"){window.scrollTo(0,i);return}if(l.hash){let d=document.getElementById(decodeURIComponent(l.hash.slice(1)));if(d){d.scrollIntoView();return}}s!==!0&&window.scrollTo(0,0)}},[l,i,s]))}function wre(t,e){let{capture:n}=e||{};I.useEffect(()=>{let r=n!=null?{capture:n}:void 0;return window.addEventListener("beforeunload",t,r),()=>{window.removeEventListener("beforeunload",t,r)}},[t,n])}function bre(t,e){let{capture:n}=e||{};I.useEffect(()=>{let r=n!=null?{capture:n}:void 0;return window.addEventListener("pagehide",t,r),()=>{window.removeEventListener("pagehide",t,r)}},[t,n])}function xre(t){let{when:e,message:n}=t,r=CF(e);I.useEffect(()=>{r.state==="blocked"&&(window.confirm(n)?setTimeout(r.proceed,0):r.reset())},[r,n]),I.useEffect(()=>{r.state==="blocked"&&!e&&r.reset()},[r,e])}function RF(t,e){e===void 0&&(e={});let n=I.useContext(g1);n==null&&Ye(!1);let{basename:r}=Iv(qu.useViewTransitionState),i=dc(t,{relative:e.relative});if(!n.isTransitioning)return!1;let s=Ar(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=Ar(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Sd(i.pathname,a)!=null||Sd(i.pathname,s)!=null}const Sre=Object.freeze(Object.defineProperty({__proto__:null,AbortedDeferredError:rm,Await:Pne,BrowserRouter:are,Form:kF,HashRouter:lre,Link:AF,MemoryRouter:kne,NavLink:dre,Navigate:Lne,get NavigationType(){return Mt},Outlet:One,Route:TF,Router:pc,RouterProvider:sre,Routes:Ine,ScrollRestoration:pre,UNSAFE_DataRouterContext:cc,UNSAFE_DataRouterStateContext:qd,UNSAFE_FetchersContext:m1,UNSAFE_LocationContext:fc,UNSAFE_NavigationContext:Jr,UNSAFE_RouteContext:Zr,UNSAFE_ViewTransitionContext:g1,UNSAFE_useRouteId:wF,UNSAFE_useScrollRestoration:PF,createBrowserRouter:Qne,createHashRouter:Jne,createMemoryRouter:$ne,createPath:Wi,createRoutesFromChildren:Ed,createRoutesFromElements:Ed,createSearchParams:sm,defer:Hte,generatePath:Pte,isRouteErrorResponse:u1,json:zte,matchPath:Sd,matchRoutes:Ha,parsePath:xi,redirect:rF,redirectDocument:Wte,renderMatches:Nne,resolvePath:tF,unstable_HistoryRouter:ure,unstable_usePrompt:xre,unstable_useViewTransitionState:RF,useActionData:Sne,useAsyncError:Ene,useAsyncValue:EF,useBeforeUnload:wre,useBlocker:CF,useFetcher:vre,useFetchers:yre,useFormAction:IF,useHref:dF,useInRouterContext:fa,useLinkClickHandler:L
114F,useLoaderData:bne,useLocation:Ji,useMatch:cne,useMatches:xF,useNavigate:kv,useNavigation:bF,useNavigationType:une,useOutlet:gF,useOutletContext:dne,useParams:pne,useResolvedPath:dc,useRevalidator:wne,useRouteError:SF,useRouteLoaderData:xne,useRoutes:mF,useSearchParams:hre,useSubmit:y1},Symbol.toStringTag,{value:"Module"}));function MF(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t))for(e=0;e<t.length;e++)t[e]&&(n=MF(t[e]))&&(r&&(r+=" "),r+=n);else for(e in t)t[e]&&(r&&(r+=" "),r+=e);return r}function Zxe(){for(var t,e,n=0,r="";n<arguments.length;)(t=arguments[n++])&&(e=MF(t))&&(r&&(r+=" "),r+=e);return r}function Ere(){var t=I.useRef(!0);return t.current?(t.current=!1,!0):t.current}var Cre=function(t,e){var n=Ere();I.useEffect(function(){if(!n)return t()},e)};const eSe=Cre;function Tre(){var t=I.useRef(!1),e=I.useCallback(function(){return t.current},[]);return I.useEffect(function(){return t.current=!0,function(){t.current=!1}},[]),e}function _re(t,e,n){e===void 0&&(e=[]),n===void 0&&(n={loading:!1});var r=I.useRef(0),i=Tre(),s=I.useState(n),a=s[0],l=s[1],c=I.useCallback(function(){for(var f=[],d=0;d<arguments.length;d++)f[d]=arguments[d];var g=++r.current;return a.loading||l(function(v){return Xa(Xa({},v),{loading:!0})}),t.apply(void 0,f).then(function(v){return i()&&g===r.current&&l({value:v,loading:!1}),v},function(v){return i()&&g===r.current&&l({error:v,loading:!1}),v})},e);return[a,c]}function tSe(t,e){e===void 0&&(e=[]);var n=_re(t,e,{loading:!0}),r=n[0],i=n[1];return I.useEffect(function(){i()},[i]),r}function Jh(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];t&&t.addEventListener&&t.addEventListener.apply(t,e)}function Zh(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];t&&t.removeEventListener&&t.removeEventListener.apply(t,e)}var Pv=typeof window<"u",Are=function(t,e){return typeof e=="boolean"?e:!t},kre=function(t){return I.useReducer(Are,t)};const nSe=kre;function Lre(t,e){e===void 0&&(e=0);var n=I.useRef(!1),r=I.useRef(),i=I.useRef(t),s=I.useCallback(function(){return n.current},[]),a=I.useCallback(function(){n.current=!1,r.current&&clearTimeout(r.current),r.current=setTimeout(function(){n.current=!0,i.current()},e)},[e]),l=I.useCallback(function(){n.current=null,r.current&&clearTimeout(r.current)},[]);return I.useEffect(function(){i.current=t},[t]),I.useEffect(function(){return a(),l},[e]),[s,l,a]}function rSe(t,e,n){e===void 0&&(e=0),n===void 0&&(n=[]);var r=Lre(t,e),i=r[0],s=r[1],a=r[2];return I.useEffect(a,n),[i,s]}var Ore=function(t){I.useEffect(t,[])};const Ire=Ore;var Pre=Pv?window:null,OO=function(t){return!!t.addEventListener},IO=function(t){return!!t.on},Rre=function(t,e,n,r){n===void 0&&(n=Pre),I.useEffect(function(){if(e&&n)return OO(n)?Jh(n,t,e,r):IO(n)&&n.on(t,e,r),function(){OO(n)?Zh(n,t,e,r):IO(n)&&n.off(t,e,r)}},[t,e,n,JSON.stringify(r)])};const iSe=Rre;var Mre=function(t,e){var n=I.useRef(function(){});I.useEffect(function(){n.current=t}),I.useEffect(function(){if(e!==null){var r=setInterval(function(){return n.current()},e||0);return function(){return clearInterval(r)}}},[e])};const sSe=Mre;var PO=function(t){var e=window.history,n=e[t];e[t]=function(r){var i=n.apply(this,arguments),s=new Event(t.toLowerCase());return s.state=r,window.dispatchEvent(s),i}};Pv&&(PO("pushState"),PO("replaceState"));var Dre=function(){return{trigger:"load",length:1}},mh=function(t){var e=window.history,n=e.state,r=e.length,i=window.location,s=i.hash,a=i.host,l=i.hostname,c=i.href,f=i.origin,d=i.pathname,g=i.port,v=i.protocol,y=i.search;return{trigger:t,state:n,length:r,hash:s,host:a,hostname:l,href:c,origin:f,pathname:d,port:g,protocol:v,search:y}},Nre=function(){var t=I.useState(mh("load")),e=t[0],n=t[1];return I.useEffect(function(){var r=function(){return n(mh("popstate"))},i=function(){return n(mh("pushstate"))},s=function(){return n(mh("replacestate"))};return Jh(window,"popstate",r),Jh(window,"pushstate",i),Jh(window,"replacestate",s),function(){Zh(window,"popstate",r),Zh(window,"pushstate",i),Zh(window,"replacestate",s)}},[]),e},$re=typeof Event=="function";const oSe=Pv&&$re?Nre:Dre;var Fre=function(t){t===void 0&&(t={});var e=I.useState(t),n=e[0],r=e[1],i=I.useMemo(function(){return{set:function(a,l){r(function(c){var f;return Xa(Xa({},c),(f={},f[a]=l,f))})},setAll:function(a){r(a)},remove:function(a){r(function(l){var c=l,f=a;c[f];var d=a8(c,[typeof f=="symbol"?f:f+""]);return d})},reset:function(){return r(t)}}},[r]),s=Xa({get:I.useCallback(function(a){return n[a]},[n])},i);return[n,s]};const aSe=Fre;var zre=function(t,e){return e!==void 0?e:Pv?window.matchMedia(t).matches:!1},Bre=function(t,e){var n=I.useState(zre(t,e)),r=n[0],i=n[1];return I.useEffect(function(){var s=!0,a=window.matchMedia(t),l=function(){s&&i(!!a.matches)};return a.addEventListener("change",l),i(a.matches),function(){s=!1,a.removeEventListener("change",l)}},[t]),r};const lSe=Bre;var jre=function(t){var e=I.useRef(t);e.current=t,Ire(function(){return function(){return e.current()}})};const uSe=jre;var DF={exports:{}};/*!
115	Copyright (c) 2018 Jed Watson.
116	Licensed under the MIT License (MIT), see
117	http://jedwatson.github.io/classnames
118*/(function(t){(function(){var e={}.hasOwnProperty;function n(){for(var r=[],i=0;i<arguments.length;i++){var s=arguments[i];if(s){var a=typeof s;
118if(a==="string"||a==="number")r.push(s);else if(Array.isArray(s)){if(s.length){var l=n.apply(null,s);l&&r.push(l)}}else if(a==="object"){if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]")){r.push(s.toString());continue}for(var c in s)e.call(s,c)&&s[c]&&r.push(c)}}}return r.join(" ")}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(DF);var Ure=DF.exports;const je=Lr(Ure);function w1(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.includes(r))continue;n[r]=t[r]}return n}function RO(t){return"default"+t.charAt(0).toUpperCase()+t.substr(1)}function Hre(t){var e=Wre(t,"string");return typeof e=="symbol"?e:String(e)}function Wre(t,e){if(typeof t!="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Vre(t,e,n){var r=I.useRef(t!==void 0),i=I.useState(e),s=i[0],a=i[1],l=t!==void 0,c=r.current;return r.current=l,!l&&c&&s!==e&&a(e),[l?t:s,I.useCallback(function(f){for(var d=arguments.length,g=new Array(d>1?d-1:0),v=1;v<d;v++)g[v-1]=arguments[v];n&&n.apply(void 0,[f].concat(g)),a(f)},[n])]}function NF(t,e){return Object.keys(e).reduce(function(n,r){var i,s=n,a=s[RO(r)],l=s[r],c=w1(s,[RO(r),r].map(Hre)),f=e[r],d=Vre(l,a,t[f]),g=d[0],v=d[1];return em({},c,(i={},i[r]=g,i[f]=v,i))},t)}function jx(t,e){return jx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},jx(t,e)}function $F(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,jx(t,e)}const Kre=["xxl","xl","lg","md","sm","xs"],qre="xs",Rv=I.createContext({prefixes:{},breakpoints:Kre,minBreakpoint:qre});function tt(t,e){const{prefixes:n}=I.useContext(Rv);return t||n[e]||e}function FF(){const{breakpoints:t}=I.useContext(Rv);return t}function zF(){const{minBreakpoint:t}=I.useContext(Rv);return t}function BF(){const{dir:t}=I.useContext(Rv);return t==="rtl"}function Yd(t){return t&&t.ownerDocument||document}function Gre(t){var e=Yd(t);return e&&e.defaultView||window}function Yre(t,e){return Gre(t).getComputedStyle(t,e)}var Xre=/([A-Z])/g;function Qre(t){return t.replace(Xre,"-$1").toLowerCase()}var Jre=/^ms-/;function vh(t){return Qre(t).replace(Jre,"-ms-")}var Zre=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function eie(t){return!!(t&&Zre.test(t))}function Ks(t,e){var n="",r="";if(typeof e=="string")return t.style.getPropertyValue(vh(e))||Yre(t).getPropertyValue(vh(e));Object.keys(e).forEach(function(i){var s=e[i];!s&&s!==0?t.style.removeProperty(vh(i)):eie(i)?r+=i+"("+s+") ":n+=vh(i)+": "+s+";"}),r&&(n+="transform: "+r+";"),t.style.cssText+=";"+n}var jF={exports:{}},tie="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",nie=tie,rie=nie;function UF(){}function HF(){}HF.resetWarningCache=UF;var iie=function(){function t(r,i,s,a,l,c){if(c!==rie){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}t.isRequired=t;function e(){return t}var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:HF,resetWarningCache:UF};return n.PropTypes=n,n};jF.exports=iie();var WF=jF.exports;const ot=Lr(WF),MO={disabled:!1},VF=Ie.createContext(null);var KF=function(e){return e.scrollTop},Mf="unmounted",Po="exited",li="entering",zs="entered",Gu="exiting",lo=function(t){$F(e,t);function e(r,i){var s;s=t.call(this,r,i)||this;var a=i,l=a&&!a.isMounting?r.enter:r.appear,c;return s.appearStatus=null,r.in?l?(c=Po,s.appearStatus=li):c=zs:r.unmountOnExit||r.mountOnEnter?c=Mf:c=Po,s.state={status:c},s.nextCallback=null,s}e.getDerivedStateFromProps=function(i,s){var a=i.in;return a&&s.status===Mf?{status:Po}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var s=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==li&&a!==zs&&(s=li):(a===li||a===zs)&&(s=Gu)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,s,a,l;return s=a=l=i,i!=null&&typeof i!="number"&&(s=i.exit,a=i.enter,l=i.appear!==void 0?i.appear:a),{exit:s,enter
118:a,appear:l}},n.updateStatus=function(i,s){if(i===void 0&&(i=!1),s!==null)if(this.cancelNextCallback(),s===li){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Fa.findDOMNode(this);a&&KF(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Po&&this.setState({status:Mf})},n.performEnter=function(i){var s=this,a=this.props.enter,l=this.context?this.context.isMounting:i,c=this.props.nodeRef?[l]:[Fa.findDOMNode(this),l],f=c[0],d=c[1],g=this.getTimeouts(),v=l?g.appear:g.enter;if(!i&&!a||MO.disabled){this.safeSetState({status:zs},function(){s.props.onEntered(f)});return}this.props.onEnter(f,d),this.safeSetState({status:li},function(){s.props.onEntering(f,d),s.onTransitionEnd(v,function(){s.safeSetState({status:zs},function(){s.props.onEntered(f,d)})})})},n.performExit=function(){var i=this,s=this.props.exit,a=this.getTimeouts(),l=this.props.nodeRef?void 0:Fa.findDOMNode(this);if(!s||MO.disabled){this.safeSetState({status:Po},function(){i.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:Gu},function(){i.props.onExiting(l),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:Po},function(){i.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,s){s=this.setNextCallback(s),this.setState(i,s)},n.setNextCallback=function(i){var s=this,a=!0;return this.nextCallback=function(l){a&&(a=!1,s.nextCallback=null,i(l))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(i,s){this.setNextCallback(s);var a=this.props.nodeRef?this.props.nodeRef.current:Fa.findDOMNode(this),l=i==null&&!this.props.addEndListener;if(!a||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],f=c[0],d=c[1];this.props.addEndListener(f,d)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===Mf)return null;var s=this.props,a=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var l=w1(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Ie.createElement(VF.Provider,{value:null},typeof a=="function"?a(i,l):Ie.cloneElement(Ie.Children.only(a),l))},e}(Ie.Component);lo.contextType=VF;lo.propTypes={};function Xl(){}lo.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Xl,onEntering:Xl,onEntered:Xl,onExit:Xl,onExiting:Xl,onExited:Xl};lo.UNMOUNTED=Mf;lo.EXITED=Po;lo.ENTERING=li;lo.ENTERED=zs;lo.EXITING=Gu;const qF=lo,hc=!!(typeof window<"u"&&window.document&&window.document.createElement);var Ux=!1,Hx=!1;try{var A0={get passive(){return Ux=!0},get once(){return Hx=Ux=!0}};hc&&(window.addEventListener("test",A0,A0),window.removeEventListener("test",A0,!0))}catch{}function b1(t,e,n,r){if(r&&typeof r!="boolean"&&!Hx){var i=r.once,s=r.capture,a=n;!Hx&&i&&(a=n.__once||function l(c){this.removeEventListener(e,l,s),n.call(this,c)},n.__once=a),t.addEventListener(e,a,Ux?r:s)}t.addEventListener(e,n,r)}function Wx(t,e,n,r){var i=r&&typeof r!="boolean"?r.capture:r;t.removeEventListener(e,n,i),n.__once&&t.removeEventListener(e,n.__once,i)}function zo(t,e,n,r){return b1(t,e,n,r),function(){Wx(t,e,n,r)}}function sie(t,e,n,r){if(n===void 0&&(n=!1),r===void 0&&(r=!0),t){var i=document.createEvent("HTMLEvents");i.initEvent(e,n,r),t.dispatchEvent(i)}}function oie(t){var e=Ks(t,"transitionDuration")||"",n=e.indexOf("ms")===-1?1e3:1;return parseFloat(e)*n}function aie(t,e,n){n===void 0&&(n=5);var r=!1,i=setTimeout(function(){r||sie(t,"transitionend",!0)},e+n),s=zo(t,"transitionend",function(){r=!0},{once:!0});return function(){clearTimeout(i),s()}}function GF(t,e,n,r){n==null&&(n=oie(t)||0);var i=aie(t,n,r),s=zo(t,"transitionend",e);return function(){i(),s()}}function DO(t,e){const n=Ks(t,e)||"",r=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*r}function x1(t,e){const n=DO(t,"transitionDuration"),r=DO(t,"transitionDelay"),i=GF(t,s=>{s.target===t&&(i(),e(s))},n+r)}function Ef(...t){return t.filter(e=>e!=null).reduce((e,n)=>{if(typeof n!="function")throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return e===null?n:function(...i){e.apply(this,i),n.apply(this,i)}},null)}function YF(t){t.offsetHeight}const NO=t=>!t||typeof t=="function"?t:e=>{t.current=e};function lie(t,e){const n=NO(t),r=NO(e);return i=>{n&&n(i),r&&r(i)}}function pa(t,e){return I.useMemo(()=>lie(t,e),[t,e])}function uie(t){return t&&"setState"in t?Fa.findDOMNode(t):t??null}const cie=Ie.forwardRef(({onEnter:t,onEntering:e,onEntered:n,onExit:r,onExiting:i,onExited:s,addEndListener:a,children:l,childRef:c,...f},d)=>{const g=I.useRef(null),v=pa(g,c),y=k=>{v(uie(k))},w=k=>R=>{k&&g.current&&k(g.current,R)},T=I.useCallback(w(t),[t]),E=I.useCallback(w(e),[e]),x=I.useCallback(w(n),[n]),b=I.useCallback(w(r),[r]),C=I.useCallback(w(i),[i]),A=
118I.useCallback(w(s),[s]),O=I.useCallback(w(a),[a]);return ue.jsx(qF,{ref:d,...f,onEnter:T,onEntered:x,onEntering:E,onExit:b,onExited:A,onExiting:C,addEndListener:O,nodeRef:g,children:typeof l=="function"?(k,R)=>l(k,{...R,ref:y}):Ie.cloneElement(l,{ref:y})})}),S1=cie,fie={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function die(t,e){const n=`offset${t[0].toUpperCase()}${t.slice(1)}`,r=e[n],i=fie[t];return r+parseInt(Ks(e,i[0]),10)+parseInt(Ks(e,i[1]),10)}const pie={[Po]:"collapse",[Gu]:"collapsing",[li]:"collapsing",[zs]:"collapse show"},hie=Ie.forwardRef(({onEnter:t,onEntering:e,onEntered:n,onExit:r,onExiting:i,className:s,children:a,dimension:l="height",in:c=!1,timeout:f=300,mountOnEnter:d=!1,unmountOnExit:g=!1,appear:v=!1,getDimensionValue:y=die,...w},T)=>{const E=typeof l=="function"?l():l,x=I.useMemo(()=>Ef(k=>{k.style[E]="0"},t),[E,t]),b=I.useMemo(()=>Ef(k=>{const R=`scroll${E[0].toUpperCase()}${E.slice(1)}`;k.style[E]=`${k[R]}px`},e),[E,e]),C=I.useMemo(()=>Ef(k=>{k.style[E]=null},n),[E,n]),A=I.useMemo(()=>Ef(k=>{k.style[E]=`${y(E,k)}px`,YF(k)},r),[r,y,E]),O=I.useMemo(()=>Ef(k=>{k.style[E]=null},i),[E,i]);return ue.jsx(S1,{ref:T,addEndListener:x1,...w,"aria-expanded":w.role?c:null,onEnter:x,onEntering:b,onEntered:C,onExit:A,onExiting:O,childRef:a.ref,in:c,timeout:f,mountOnEnter:d,unmountOnExit:g,appear:v,children:(k,R)=>Ie.cloneElement(a,{...R,className:je(s,a.props.className,pie[k],E==="width"&&"collapse-horizontal")})})}),cSe=hie;function gie(t){const e=I.useRef(t);return I.useEffect(()=>{e.current=t},[t]),e}function on(t){const e=gie(t);return I.useCallback(function(...n){return e.current&&e.current(...n)},[e])}const XF=t=>I.forwardRef((e,n)=>ue.jsx("div",{...e,ref:n,className:je(e.className,t)}));function QF(){return I.useState(null)}function mie(t,e,n,r=!1){const i=on(n);I.useEffect(()=>{const s=typeof t=="function"?t():t;return s.addEventListener(e,i,r),()=>s.removeEventListener(e,i,r)},[t])}function E1(){const t=I.useRef(!0),e=I.useRef(()=>t.current);return I.useEffect(()=>(t.current=!0,()=>{t.current=!1}),[]),e.current}function JF(t){const e=I.useRef(null);return I.useEffect(()=>{e.current=t}),e.current}const vie=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",yie=typeof document<"u",om=yie||vie?I.useLayoutEffect:I.useEffect,wie=["as","disabled"];function bie(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}function xie(t){return!t||t.trim()==="#"}function C1({tagName:t,disabled:e,href:n,target:r,rel:i,role:s,onClick:a,tabIndex:l=0,type:c}){t||(n!=null||r!=null||i!=null?t="a":t="button");const f={tagName:t};if(t==="button")return[{type:c||"button",disabled:e},f];const d=v=>{if((e||t==="a"&&xie(n))&&v.preventDefault(),e){v.stopPropagation();return}a==null||a(v)},g=v=>{v.key===" "&&(v.preventDefault(),d(v))};return t==="a"&&(n||(n="#"),e&&(n=void 0)),[{role:s??"button",disabled:void 0,tabIndex:e?void 0:l,href:n,target:t==="a"?r:void 0,"aria-disabled":e||void 0,rel:t==="a"?i:void 0,onClick:d,onKeyDown:g},f]}const T1=I.forwardRef((t,e)=>{let{as:n,disabled:r}=t,i=bie(t,wie);const[s,{tagName:a}]=C1(Object.assign({tagName:n,disabled:r},i));return ue.jsx(a,Object.assign({},i,s,{ref:e}))});T1.displayName="Button";const Sie=["onKeyDown"];function Eie(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}function Cie(t){return!t||t.trim()==="#"}const ZF=I.forwardRef((t,e)=>{let{onKeyDown:n}=t,r=Eie(t,Sie);const[i]=C1(Object.assign({tagName:"a"},r)),s=on(a=>{i.onKeyDown(a),n==null||n(a)});return Cie(r.href)||r.role==="button"?ue.jsx("a",Object.assign({ref:e},r,i,{onKeyDown:s})):ue.jsx("a",Object.assign({ref:e},r,{onKeyDown:n}))});ZF.displayName="Anchor";const Mv=ZF;function Tie(t){return t.code==="Escape"||t.keyCode===27}function e2(){const t=I.version.split(".");return{major:+t[0],minor:+t[1],patch:+t[2]}}const _ie={[li]:"show",[zs]:"show"},t2=I.forwardRef(({className:t,children:e,transitionClasses:n={},onEnter:r,...i},s)=>{const a={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...i},l=I.useCallback((d,g)=>{YF(d),r==null||r(d,g)},[r]),{major:c}=e2(),f=c>=19?e.props.ref:e.ref;return ue.jsx(S1,{ref:s,addEndListener:x1,...a,onEnter:l,childRef:f,children:(d,g)=>I.cloneElement(e,{...g,className:je("fade",t,e.props.className,_ie[d],n[d])})})});t2.displayName="Fade";const gc=t2,Aie={"aria-label":ot.string,onClick:ot.func,variant:ot.oneOf(["white"])},_1=I.forwardRef(({className:t,variant:e,"aria-label":n="Close",...r},i)=>ue.jsx("button",{ref:i,type:"button",className:je("btn-close",e&&`btn-close-${e}`,t),"aria-label":n,...r}));_1.displayName="CloseButton";_1.propTypes=Aie;const n2=_1,r2=I.forwardRef(({bsPrefix:t,active:e=!1,children:n,className:r,as:i="li",linkAs:s=Mv,linkProps:a={},href:l,title:c,target:f,...d},g)=>{const v=tt(t,"breadcrumb-item");return ue.jsx(i,{ref:g,...d,className:je(v,r,{active:e}),"aria-current":e?"page":void 0,children:e?n:ue.jsx(s,{...a,href:l,title:c,target:f,children:n})})});r2.displayName="BreadcrumbItem";const kie=r2,i2=I.forwardRef(({bsPrefix:t,className:e,listProps:n={},children:r,label:i="breadcrumb",as:s="nav",...a},l)=>{const c=tt(t,"breadcrumb");return ue.jsx(s,{"aria-label":i,className:e,ref:l,...a,children:ue.jsx("ol",{...n,className:je(c,n==null?void 0:n.className),children:r})})});i2.displayName="Breadcrumb";const fSe=Object.assign(i2,{Item:kie}),s2=I.forwardRef(({as:t,bsPrefix:e,variant:n="primary",size:r,active:i=!1,disabled:s=!1,className:a,...l},c)=>{const f=tt(e,"btn"),[d,{tagName:g}]=C1({tagName:t,disabled:s,...l}),v=g;return ue.jsx(v,{...d,...l,ref:c,disabled:s,className:je(a,f,i&&"active",n&&`${f}-${n}`,r&&`${f}-${r}`,l.href&&s&&"disabled")})});s2.displayName="Button";const Lie=s2,o2=I.createContext(null);
118o2.displayName="CardHeaderContext";const Oie=o2;function Iie(t){const e=I.useRef(t);return e.current=t,e}function A1(t){const e=Iie(t);I.useEffect(()=>()=>e.current(),[])}const Vx=2**31-1;function a2(t,e,n){const r=n-Date.now();t.current=r<=Vx?setTimeout(e,r):setTimeout(()=>a2(t,e,n),Vx)}function Pie(){const t=E1(),e=I.useRef();return A1(()=>clearTimeout(e.current)),I.useMemo(()=>{const n=()=>clearTimeout(e.current);function r(i,s=0){t()&&(n(),s<=Vx?e.current=setTimeout(i,s):a2(e,i,Date.now()+s))}return{set:r,clear:n,handleRef:e}},[])}function Rie(t,e){let n=0;return I.Children.map(t,r=>I.isValidElement(r)?e(r,n++):r)}function Mie(t,e){return I.Children.toArray(t).some(n=>I.isValidElement(n)&&n.type===e)}function Die({as:t,bsPrefix:e,className:n,...r}){e=tt(e,"col");const i=FF(),s=zF(),a=[],l=[];return i.forEach(c=>{const f=r[c];delete r[c];let d,g,v;typeof f=="object"&&f!=null?{span:d,offset:g,order:v}=f:d=f;const y=c!==s?`-${c}`:"";d&&a.push(d===!0?`${e}${y}`:`${e}${y}-${d}`),v!=null&&l.push(`order${y}-${v}`),g!=null&&l.push(`offset${y}-${g}`)}),[{...r,className:je(n,...a,...l)},{as:t,bsPrefix:e,spans:a}]}const l2=I.forwardRef((t,e)=>{const[{className:n,...r},{as:i="div",bsPrefix:s,spans:a}]=Die(t);return ue.jsx(i,{...r,ref:e,className:je(n,!a.length&&s)})});l2.displayName="Col";const Nie=l2,u2=I.forwardRef(({bsPrefix:t,fluid:e=!1,as:n="div",className:r,...i},s)=>{const a=tt(t,"container"),l=typeof e=="string"?`-${e}`:"-fluid";return ue.jsx(n,{ref:s,...i,className:je(r,e?`${a}${l}`:a)})});u2.displayName="Container";const dSe=u2;var $ie=Function.prototype.bind.call(Function.prototype.call,[].slice);function $s(t,e){return $ie(t.querySelectorAll(e))}function c2(t,e,n){const r=I.useRef(t!==void 0),[i,s]=I.useState(e),a=t!==void 0,l=r.current;return r.current=a,!a&&l&&i!==e&&s(e),[a?t:i,I.useCallback((...c)=>{const[f,...d]=c;let g=n==null?void 0:n(f,...d);return s(f),g},[n])]}function f2(){const[,t]=I.useReducer(e=>!e,!1);return t}const Fie=I.createContext(null),Dv=Fie;var $O=Object.prototype.hasOwnProperty;function FO(t,e,n){for(n of t.keys())if(Yf(n,e))return n}function Yf(t,e){var n,r,i;if(t===e)return!0;if(t&&e&&(n=t.constructor)===e.constructor){if(n===Date)return t.getTime()===e.getTime();if(n===RegExp)return t.toString()===e.toString();if(n===Array){if((r=t.length)===e.length)for(;r--&&Yf(t[r],e[r]););return r===-1}if(n===Set){if(t.size!==e.size)return!1;for(r of t)if(i=r,i&&typeof i=="object"&&(i=FO(e,i),!i)||!e.has(i))return!1;return!0}if(n===Map){if(t.size!==e.size)return!1;for(r of t)if(i=r[0],i&&typeof i=="object"&&(i=FO(e,i),!i)||!Yf(r[1],e.get(i)))return!1;return!0}if(n===ArrayBuffer)t=new Uint8Array(t),e=new Uint8Array(e);else if(n===DataView){if((r=t.byteLength)===e.byteLength)for(;r--&&t.getInt8(r)===e.getInt8(r););return r===-1}if(ArrayBuffer.isView(t)){if((r=t.byteLength)===e.byteLength)for(;r--&&t[r]===e[r];);return r===-1}if(!n||typeof t=="object"){r=0;for(n in t)if($O.call(t,n)&&++r&&!$O.call(e,n)||!(n in e)||!Yf(t[n],e[n]))return!1;return Object.keys(e).length===r}}return t!==t&&e!==e}function zie(t){const e=E1();return[t[0],I.useCallback(n=>{if(e())return t[1](n)},[e,t[1]])]}const Bie=jd({defaultModifiers:[GE,wv,vv,yv,YE,qE,XE,HE]}),jie=["enabled","placement","strategy","modifiers"];function Uie(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}const Hie={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},Wie={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:t})=>()=>{const{reference:e,popper:n}=t.elements;if("removeAttribute"in e){const r=(e.getAttribute("aria-describedby")||"").split(",").filter(i=>i.trim()!==n.id);r.length?e.setAttribute("aria-describedby",r.join(",")):e.removeAttribute("aria-describedby")}},fn:({state:t})=>{var e;const{popper:n,reference:r}=t.elements,i=(e=n.getAttribute("role"))==null?void 0:e.toLowerCase();if(n.id&&i==="tooltip"&&"setAttribute"in r){const s=r.getAttribute("aria-describedby");if(s&&s.split(",").indexOf(n.id)!==-1)return;r.setAttribute("aria-describedby",s?`${s},${n.id}`:n.id)}}},Vie=[];function Kie(t,e,n={}){let{enabled:r=!0,placement:i="bottom",strategy:s="absolute",modifiers:a=Vie}=n,l=Uie(n,jie);const c=I.useRef(a),f=I.useRef(),d=I.useCallback(()=>{var E;(E=f.current)==null||E.update()},[]),g=I.useCallback(()=>{var E;(E=f.current)==null||E.forceUpdate()},[]),[v,y]=zie(I.useState({placement:i,update:d,forceUpdate:g,attributes:{},styles:{popper:{},arrow:{}}})),w=I.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:E})=>{const x={},b={};
118Object.keys(E.elements).forEach(C=>{x[C]=E.styles[C],b[C]=E.attributes[C]}),y({state:E,styles:x,attributes:b,update:d,forceUpdate:g,placement:E.placement})}}),[d,g,y]),T=I.useMemo(()=>(Yf(c.current,a)||(c.current=a),c.current),[a]);return I.useEffect(()=>{!f.current||!r||f.current.setOptions({placement:i,strategy:s,modifiers:[...T,w,Hie]})},[s,i,w,r,T]),I.useEffect(()=>{if(!(!r||t==null||e==null))return f.current=Bie(t,e,Object.assign({},l,{placement:i,strategy:s,modifiers:[...T,Wie,w]})),()=>{f.current!=null&&(f.current.destroy(),f.current=void 0,y(E=>Object.assign({},E,{attributes:{},styles:{popper:{}}})))}},[r,t,e]),v}function am(t,e){if(t.contains)return t.contains(e);if(t.compareDocumentPosition)return t===e||!!(t.compareDocumentPosition(e)&16)}var qie=function(){},Gie=qie;const Yie=Lr(Gie),zO=()=>{};function Xie(t){return t.button===0}function Qie(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}const k0=t=>t&&("current"in t?t.current:t),BO={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function Jie(t,e=zO,{disabled:n,clickTrigger:r="click"}={}){const i=I.useRef(!1),s=I.useRef(!1),a=I.useCallback(f=>{const d=k0(t);Yie(!!d,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),i.current=!d||Qie(f)||!Xie(f)||!!am(d,f.target)||s.current,s.current=!1},[t]),l=on(f=>{const d=k0(t);d&&am(d,f.target)&&(s.current=!0)}),c=on(f=>{i.current||e(f)});I.useEffect(()=>{var f,d;if(n||t==null)return;const g=Yd(k0(t)),v=g.defaultView||window;let y=(f=v.event)!=null?f:(d=v.parent)==null?void 0:d.event,w=null;BO[r]&&(w=zo(g,BO[r],l,!0));const T=zo(g,r,a,!0),E=zo(g,r,b=>{if(b===y){y=void 0;return}c(b)});let x=[];return"ontouchstart"in g.documentElement&&(x=[].slice.call(g.body.children).map(b=>zo(b,"mousemove",zO))),()=>{w==null||w(),T(),E(),x.forEach(b=>b())}},[t,n,r,a,l,c])}function Zie(t){const e={};return Array.isArray(t)?(t==null||t.forEach(n=>{e[n.name]=n}),e):t||e}function ese(t={}){return Array.isArray(t)?t:Object.keys(t).map(e=>(t[e].name=e,t[e]))}function tse({enabled:t,enableEvents:e,placement:n,flip:r,offset:i,fixed:s,containerPadding:a,arrowElement:l,popperConfig:c={}}){var f,d,g,v,y;const w=Zie(c.modifiers);return Object.assign({},c,{placement:n,enabled:t,strategy:s?"fixed":c.strategy,modifiers:ese(Object.assign({},w,{eventListeners:{enabled:e,options:(f=w.eventListeners)==null?void 0:f.options},preventOverflow:Object.assign({},w.preventOverflow,{options:a?Object.assign({padding:a},(d=w.preventOverflow)==null?void 0:d.options):(g=w.preventOverflow)==null?void 0:g.options}),offset:{options:Object.assign({offset:i},(v=w.offset)==null?void 0:v.options)},arrow:Object.assign({},w.arrow,{enabled:!!l,options:Object.assign({},(y=w.arrow)==null?void 0:y.options,{element:l})}),flip:Object.assign({enabled:!!r},w.flip)}))})}const nse=["children","usePopper"];function rse(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}const ise=()=>{};function d2(t={}){const e=I.useContext(Dv),[n,r]=QF(),i=I.useRef(!1),{flip:s,offset:a,rootCloseEvent:l,fixed:c=!1,placement:f,popperConfig:d={},enableEventListeners:g=!0,usePopper:v=!!e}=t,y=(e==null?void 0:e.show)==null?!!t.show:e.show;y&&!i.current&&(i.current=!0);const w=k=>{e==null||e.toggle(!1,k)},{placement:T,setMenu:E,menuElement:x,toggleElement:b}=e||{},C=Kie(b,x,tse({placement:f||T||"bottom-start",enabled:v,enableEvents:g??y,offset:a,flip:s,fixed:c,arrowElement:n,popperConfig:d})),A=Object.assign({ref:E||ise,"aria-labelledby":b==null?void 0:b.id},C.attributes.popper,{style:C.styles.popper}),O={show:y,placement:T,hasShown:i.current,toggle:e==null?void 0:e.toggle,popper:v?C:null,arrowProps:v?Object.assign({ref:r},C.attributes.arrow,{style:C.styles.arrow}):{}};return Jie(x,w,{clickTrigger:l,disabled:!y}),[A,O]}function p2(t){let{children:e,usePopper:n=!0}=t,r=rse(t,nse);const[i,s]=d2(Object.assign({},r,{usePopper:n}));return ue.jsx(ue.Fragment,{children:e(i,s)})}p2.displayName="DropdownMenu";const lm={prefix:String(Math.round(Math.random()*1e10)),current:0}
118,h2=Ie.createContext(lm),sse=Ie.createContext(!1);let ose=!!(typeof window<"u"&&window.document&&window.document.createElement),L0=new WeakMap;function ase(t=!1){let e=I.useContext(h2),n=I.useRef(null);if(n.current===null&&!t){var r,i;let s=(i=Ie.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(s){let a=L0.get(s);a==null?L0.set(s,{id:e.current,state:s.memoizedState}):s.memoizedState!==a.state&&(e.current=a.id,L0.delete(s))}n.current=++e.current}return n.current}function lse(t){let e=I.useContext(h2);e===lm&&!ose&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=ase(!!t),r=`react-aria${e.prefix}`;return t||`${r}-${n}`}function use(t){let e=Ie.useId(),[n]=I.useState(pse()),r=n?"react-aria":`react-aria${lm.prefix}`;return t||`${r}-${e}`}const g2=typeof Ie.useId=="function"?use:lse;function cse(){return!1}function fse(){return!0}function dse(t){return()=>{}}function pse(){return typeof Ie.useSyncExternalStore=="function"?Ie.useSyncExternalStore(dse,cse,fse):I.useContext(sse)}const m2=t=>{var e;return((e=t.getAttribute("role"))==null?void 0:e.toLowerCase())==="menu"},jO=()=>{};function v2(){const t=g2(),{show:e=!1,toggle:n=jO,setToggle:r,menuElement:i}=I.useContext(Dv)||{},s=I.useCallback(l=>{n(!e,l)},[e,n]),a={id:t,ref:r||jO,onClick:s,"aria-expanded":!!e};return i&&m2(i)&&(a["aria-haspopup"]=!0),[a,{show:e,toggle:n}]}function y2({children:t}){const[e,n]=v2();return ue.jsx(ue.Fragment,{children:t(e,n)})}y2.displayName="DropdownToggle";const hse=I.createContext(null),dl=(t,e=null)=>t!=null?String(t):e||null,no=hse,w2=I.createContext(null);w2.displayName="NavContext";const k1=w2,gse="data-rr-ui-",mse="rrUi";function mc(t){return`${gse}${t}`}function vse(t){return`${mse}${t}`}const yse=["eventKey","disabled","onClick","active","as"];function wse(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}function b2({key:t,href:e,active:n,disabled:r,onClick:i}){const s=I.useContext(no),a=I.useContext(k1),{activeKey:l}=a||{},c=dl(t,e),f=n==null&&t!=null?dl(l)===c:n;return[{onClick:on(g=>{r||(i==null||i(g),s&&!g.isPropagationStopped()&&s(c,g))}),"aria-disabled":r||void 0,"aria-selected":f,[mc("dropdown-item")]:""},{isActive:f}]}const x2=I.forwardRef((t,e)=>{let{eventKey:n,disabled:r,onClick:i,active:s,as:a=T1}=t,l=wse(t,yse);const[c]=b2({key:n,href:l.href,disabled:r,onClick:i,active:s});return ue.jsx(a,Object.assign({},l,{ref:e},c))});x2.displayName="DropdownItem";const S2=I.createContext(hc?window:void 0);S2.Provider;function Nv(){return I.useContext(S2)}function UO(){const t=f2(),e=I.useRef(null),n=I.useCallback(r=>{e.current=r,t()},[t]);return[e,n]}function Xd({defaultShow:t,show:e,onSelect:n,onToggle:r,itemSelector:i=`* [${mc("dropdown-item")}]`,focusFirstItemOnShow:s,placement:a="bottom-start",children:l}){const c=Nv(),[f,d]=c2(e,t,r),[g,v]=UO(),y=g.current,[w,T]=UO(),E=w.current,x=JF(f),b=I.useRef(null),C=I.useRef(!1),A=I.useContext(no),O=I.useCallback((H,V,F=V==null?void 0:V.type)=>{d(H,{originalEvent:V,source:F})},[d]),k=on((H,V)=>{n==null||n(H,V),O(!1,V,"select"),V.isPropagationStopped()||A==null||A(H,V)}),R=I.useMemo(()=>({toggle:O,placement:a,show:f,menuElement:y,toggleElement:E,setMenu:v,setToggle:T}),[O,a,f,y,E,v,T]);y&&x&&!f&&(C.current=y.contains(y.ownerDocument.activeElement));const $=on(()=>{E&&E.focus&&E.focus()}),j=on(()=>{const H=b.current;let V=s;if(V==null&&(V=g.current&&m2(g.current)?"keyboard":!1),V===!1||V==="keyboard"&&!/^key.+$/.test(H))return;const F=$s(g.current,i)[0];F&&F.focus&&F.focus()});I.useEffect(()=>{f?j():C.current&&(C.current=!1,$())},[f,C,$,j]),I.useEffect(()=>{b.current=null});const W=(H,V)=>{if(!g.current)return null;const F=$s(g.current,i);let z=F.indexOf(H)+V;return z=Math.max(0,Math.min(z,F.length)),F[z]};return mie(I.useCallback(()=>c.document,[c]),"keydown",H=>{var V,F;const{key:z}=H,M=H.target,q=(V=g.current)==null?void 0:V.contains(M),U=(F=w.current)==null?void 0:F.contains(M);if(/input|textarea/i.test(M.tagName)&&(z===" "||z!=="Escape"&&q||z==="Escape"&&M.type==="search")||!q&&!U||z==="Tab"&&(!g.current||!f))return;b.current=H.type;const Y={originalEvent:H,source:H.type};switch(z){case"ArrowUp":{const Z=W(M,-1);Z&&Z.focus&&Z.focus(),H.preventDefault();return}case"ArrowDown":if(H.preventDefault(),!f)d(!0,Y);else{const Z=W(M,1);Z&&Z.focus&&Z.focus()}return;case"Tab":b1(M.ownerDocument,"keyup",Z=>{var fe;(Z.key==="Tab"&&!Z.target||!((fe=g.current)!=null&&fe.contains(Z.target)))&&d(!1,Y)},{once:!0});break;case"Escape":z==="Escape"&&(H.preventDefault(),H.stopPropagation()),d(!1,Y);break}}),ue.jsx(no.Provider,{value:k,children:ue.jsx(Dv.Provider,{value:R,children:l})})}Xd.displayName="Dropdown";Xd.Menu=p2;Xd.Toggle=y2;Xd.Item=x2;const E2=I.createContext({});E2.displayName="DropdownContext";const C2=E2,T2=I.forwardRef(({className:t,bsPrefix:e,as:n="hr",role:r="separator",...i},s)=>(e=tt(e,"dropdown-divider"),ue.jsx(n,{ref:s,className:je(t,e),role:r,...i})));T2.displayName="DropdownDivider";const bse=T2,_2=I.forwardRef(({className:t,bsPrefix:e,as:n="div",role:r="heading",...i},s)=>(e=tt(e,"dropdown-header"),ue.jsx(n,{ref:s,className:je(t,e),role:r,...i})));_2.displayName="DropdownHeader";
118const xse=_2,A2=I.forwardRef(({bsPrefix:t,className:e,eventKey:n,disabled:r=!1,onClick:i,active:s,as:a=Mv,...l},c)=>{const f=tt(t,"dropdown-item"),[d,g]=b2({key:n,href:l.href,disabled:r,onClick:i,active:s});return ue.jsx(a,{...l,...d,ref:c,className:je(e,f,g.isActive&&"active",r&&"disabled")})});A2.displayName="DropdownItem";const Sse=A2,k2=I.forwardRef(({className:t,bsPrefix:e,as:n="span",...r},i)=>(e=tt(e,"dropdown-item-text"),ue.jsx(n,{ref:i,className:je(t,e),...r})));k2.displayName="DropdownItemText";const Ese=k2,L2=I.createContext(null);L2.displayName="InputGroupContext";const O2=L2,I2=I.createContext(null);I2.displayName="NavbarContext";const P2=I2;function R2(t,e){return t}function M2(t,e,n){const r=n?"top-end":"top-start",i=n?"top-start":"top-end",s=n?"bottom-end":"bottom-start",a=n?"bottom-start":"bottom-end",l=n?"right-start":"left-start",c=n?"right-end":"left-end",f=n?"left-start":"right-start",d=n?"left-end":"right-end";let g=t?a:s;return e==="up"?g=t?i:r:e==="end"?g=t?d:f:e==="start"?g=t?c:l:e==="down-centered"?g="bottom":e==="up-centered"&&(g="top"),g}const D2=I.forwardRef(({bsPrefix:t,className:e,align:n,rootCloseEvent:r,flip:i=!0,show:s,renderOnMount:a,as:l="div",popperConfig:c,variant:f,...d},g)=>{let v=!1;const y=I.useContext(P2),w=tt(t,"dropdown-menu"),{align:T,drop:E,isRTL:x}=I.useContext(C2);n=n||T;const b=I.useContext(O2),C=[];if(n)if(typeof n=="object"){const H=Object.keys(n);if(H.length){const V=H[0],F=n[V];v=F==="start",C.push(`${w}-${V}-${F}`)}}else n==="end"&&(v=!0);const A=M2(v,E,x),[O,{hasShown:k,popper:R,show:$,toggle:j}]=d2({flip:i,rootCloseEvent:r,show:s,usePopper:!y&&C.length===0,offset:[0,2],popperConfig:c,placement:A});if(O.ref=pa(R2(g),O.ref),om(()=>{$&&(R==null||R.update())},[$]),!k&&!a&&!b)return null;typeof l!="string"&&(O.show=$,O.close=()=>j==null?void 0:j(!1),O.align=n);let W=d.style;return R!=null&&R.placement&&(W={...d.style,...O.style},d["x-placement"]=R.placement),ue.jsx(l,{...d,...O,style:W,...(C.length||y)&&{"data-bs-popper":"static"},className:je(e,w,$&&"show",v&&`${w}-end`,f&&`${w}-${f}`,...C)})});D2.displayName="DropdownMenu";const Cse=D2,N2=I.forwardRef(({bsPrefix:t,split:e,className:n,childBsPrefix:r,as:i=Lie,...s},a)=>{const l=tt(t,"dropdown-toggle"),c=I.useContext(Dv);r!==void 0&&(s.bsPrefix=r);const[f]=v2();return f.ref=pa(f.ref,R2(a)),ue.jsx(i,{className:je(n,l,e&&`${l}-split`,(c==null?void 0:c.show)&&"show"),...f,...s})});N2.displayName="DropdownToggle";const Tse=N2,$2=I.forwardRef((t,e)=>{const{bsPrefix:n,drop:r="down",show:i,className:s,align:a="start",onSelect:l,onToggle:c,focusFirstItemOnShow:f,as:d="div",navbar:g,autoClose:v=!0,...y}=NF(t,{show:"onToggle"}),w=I.useContext(O2),T=tt(n,"dropdown"),E=BF(),x=R=>v===!1?R==="click":v==="inside"?R!=="rootClose":v==="outside"?R!=="select":!0,b=on((R,$)=>{var j;!((j=$.originalEvent)==null||(j=j.target)==null)&&j.classList.contains("dropdown-toggle")&&$.source==="mousedown"||($.originalEvent.currentTarget===document&&($.source!=="keydown"||$.originalEvent.key==="Escape")&&($.source="rootClose"),x($.source)&&(c==null||c(R,$)))}),A=M2(a==="end",r,E),O=I.useMemo(()=>({align:a,drop:r,isRTL:E}),[a,r,E]),k={down:T,"down-centered":`${T}-center`,up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"};return ue.jsx(C2.Provider,{value:O,children:ue.jsx(Xd,{placement:A,show:i,onSelect:l,onToggle:b,focusFirstItemOnShow:f,itemSelector:`.${T}-item:not(.disabled):not(:disabled)`,children:w?y.children:ue.jsx(d,{...y,ref:e,className:je(s,i&&"show",k[r])})})})});$2.displayName="Dropdown";const pSe=Object.assign($2,{Toggle:Tse,Menu:Cse,Item:Sse,ItemText:Ese,Divider:bse,Header:xse}),_se={type:ot.string,tooltip:ot.bool,as:ot.elementType},L1=I.forwardRef(({as:t="div",className:e,type:n="valid",tooltip:r=!1,...i},s)=>ue.jsx(t,{...i,ref:s,className:je(e,`${n}-${r?"tooltip":"feedback"}`)}));L1.displayName="Feedback";L1.propTypes=_se;const F2=L1,Ase=I.createContext({}),ro=Ase,z2=I.forwardRef(({id:t,bsPrefix:e,className:n,type:r="checkbox",isValid:i=!1,isInvalid:s=!1,as:a="input",...l},c)=>{const{controlId:f}=I.useContext(ro);return e=tt(e,"form-check-input"),ue.jsx(a,{...l,ref:c,type:r,id:t||f,className:je(n,e,i&&"is-valid",s&&"is-invalid")})});z2.displayName="FormCheckInput";const B2=z2,j2=I.forwardRef(({bsPrefix:t,className:e,htmlFor:n,...r},i)=>{const{controlId:s}=I.useContext(ro);return t=tt(t,"form-check-label"),ue.jsx("label",{...r,ref:i,htmlFor:n||s,className:je(e,t)})});j2.displayName="FormCheckLabel";const Kx=j2,U2=I.forwardRef(({id:t,bsPrefix:e,bsSwitchPrefix:n,inline:r=!1,reverse:i=!1,disabled:s=!1,isValid:a=!1,isInvalid:l=!1,feedbackTooltip:c=!1,feedback:f,feedbackType:d,className:g,style:v,title:y="",type:w="checkbox",label:T,children:E,as:x="input",...b}
118,C)=>{e=tt(e,"form-check"),n=tt(n,"form-switch");const{controlId:A}=I.useContext(ro),O=I.useMemo(()=>({controlId:t||A}),[A,t]),k=!E&&T!=null&&T!==!1||Mie(E,Kx),R=ue.jsx(B2,{...b,type:w==="switch"?"checkbox":w,ref:C,isValid:a,isInvalid:l,disabled:s,as:x});return ue.jsx(ro.Provider,{value:O,children:ue.jsx("div",{style:v,className:je(g,k&&e,r&&`${e}-inline`,i&&`${e}-reverse`,w==="switch"&&n),children:E||ue.jsxs(ue.Fragment,{children:[R,k&&ue.jsx(Kx,{title:y,children:T}),f&&ue.jsx(F2,{type:d,tooltip:c,children:f})]})})})});U2.displayName="FormCheck";const um=Object.assign(U2,{Input:B2,Label:Kx}),H2=I.forwardRef(({bsPrefix:t,type:e,size:n,htmlSize:r,id:i,className:s,isValid:a=!1,isInvalid:l=!1,plaintext:c,readOnly:f,as:d="input",...g},v)=>{const{controlId:y}=I.useContext(ro);return t=tt(t,"form-control"),ue.jsx(d,{...g,type:e,size:r,ref:v,readOnly:f,id:i||y,className:je(s,c?`${t}-plaintext`:t,n&&`${t}-${n}`,e==="color"&&`${t}-color`,a&&"is-valid",l&&"is-invalid")})});H2.displayName="FormControl";const kse=Object.assign(H2,{Feedback:F2}),W2=I.forwardRef(({className:t,bsPrefix:e,as:n="div",...r},i)=>(e=tt(e,"form-floating"),ue.jsx(n,{ref:i,className:je(t,e),...r})));W2.displayName="FormFloating";const Lse=W2,V2=I.forwardRef(({controlId:t,as:e="div",...n},r)=>{const i=I.useMemo(()=>({controlId:t}),[t]);return ue.jsx(ro.Provider,{value:i,children:ue.jsx(e,{...n,ref:r})})});V2.displayName="FormGroup";const K2=V2,q2=I.forwardRef(({as:t="label",bsPrefix:e,column:n=!1,visuallyHidden:r=!1,className:i,htmlFor:s,...a},l)=>{const{controlId:c}=I.useContext(ro);e=tt(e,"form-label");let f="col-form-label";typeof n=="string"&&(f=`${f} ${f}-${n}`);const d=je(i,e,r&&"visually-hidden",n&&f);return s=s||c,n?ue.jsx(Nie,{ref:l,as:"label",className:d,htmlFor:s,...a}):ue.jsx(t,{ref:l,className:d,htmlFor:s,...a})});q2.displayName="FormLabel";const Ose=q2,G2=I.forwardRef(({bsPrefix:t,className:e,id:n,...r},i)=>{const{controlId:s}=I.useContext(ro);return t=tt(t,"form-range"),ue.jsx("input",{...r,type:"range",ref:i,className:je(e,t),id:n||s})});G2.displayName="FormRange";const Ise=G2,Y2=I.forwardRef(({bsPrefix:t,size:e,htmlSize:n,className:r,isValid:i=!1,isInvalid:s=!1,id:a,...l},c)=>{const{controlId:f}=I.useContext(ro);return t=tt(t,"form-select"),ue.jsx("select",{...l,size:n,ref:c,className:je(r,t,e&&`${t}-${e}`,i&&"is-valid",s&&"is-invalid"),id:a||f})});Y2.displayName="FormSelect";const Pse=Y2,X2=I.forwardRef(({bsPrefix:t,className:e,as:n="small",muted:r,...i},s)=>(t=tt(t,"form-text"),ue.jsx(n,{...i,ref:s,className:je(e,t,r&&"text-muted")})));X2.displayName="FormText";const Rse=X2,Q2=I.forwardRef((t,e)=>ue.jsx(um,{...t,ref:e,type:"switch"}));Q2.displayName="Switch";const Mse=Object.assign(Q2,{Input:um.Input,Label:um.Label}),J2=I.forwardRef(({bsPrefix:t,className:e,children:n,controlId:r,label:i,...s},a)=>(t=tt(t,"form-floating"),ue.jsxs(K2,{ref:a,className:je(e,t),controlId:r,...s,children:[n,ue.jsx("label",{htmlFor:r,children:i})]})));J2.displayName="FloatingLabel";const Dse=J2,Nse={_ref:ot.any,validated:ot.bool,as:ot.elementType},O1=I.forwardRef(({className:t,validated:e,as:n="form",...r},i)=>ue.jsx(n,{...r,ref:i,className:je(t,e&&"was-validated")}));O1.displayName="Form";O1.propTypes=Nse;const hSe=Object.assign(O1,{Group:K2,Control:kse,Floating:Lse,Check:um,Switch:Mse,Label:Ose,Text:Rse,Range:Ise,Select:Pse,FloatingLabel:Dse}),$se=I.createContext(null),vc=$se,Fse=["as","active","eventKey"];function zse(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}function Z2({key:t,onClick:e,active:n,id:r,role:i,disabled:s}){const a=I.useContext(no),l=I.useContext(k1),c=I.useContext(vc);let f=n;const d={role:i};if(l){!i&&l.role==="tablist"&&(d.role="tab");const g=l.getControllerId(t??null),v=l.getControlledId(t??null);d[mc("event-key")]=t,d.id=g||r,f=n==null&&t!=null?l.activeKey===t:n,(f||!(c!=null&&c.unmountOnExit)&&!(c!=null&&c.mountOnEnter))&&(d["aria-controls"]=v)}return d.role==="tab"&&(d["aria-selected"]=f,f||(d.tabIndex=-1),s&&(d.tabIndex=-1,d["aria-disabled"]=!0)),d.onClick=on(g=>{s||(e==null||e(g),t!=null&&a&&!g.isPropagationStopped()&&a(t,g))}),[d,{isActive:f}]}const ez=I.forwardRef((t,e)=>
118{let{as:n=T1,active:r,eventKey:i}=t,s=zse(t,Fse);const[a,l]=Z2(Object.assign({key:dl(i,s.href),active:r},s));return a[mc("active")]=l.isActive,ue.jsx(n,Object.assign({},s,a,{ref:e}))});ez.displayName="NavItem";const Bse=ez,jse=["as","onSelect","activeKey","role","onKeyDown"];function Use(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}const HO=()=>{},WO=mc("event-key"),tz=I.forwardRef((t,e)=>{let{as:n="div",onSelect:r,activeKey:i,role:s,onKeyDown:a}=t,l=Use(t,jse);const c=f2(),f=I.useRef(!1),d=I.useContext(no),g=I.useContext(vc);let v,y;g&&(s=s||"tablist",i=g.activeKey,v=g.getControlledId,y=g.getControllerId);const w=I.useRef(null),T=C=>{const A=w.current;if(!A)return null;const O=$s(A,`[${WO}]:not([aria-disabled=true])`),k=A.querySelector("[aria-selected=true]");if(!k||k!==document.activeElement)return null;const R=O.indexOf(k);if(R===-1)return null;let $=R+C;return $>=O.length&&($=0),$<0&&($=O.length-1),O[$]},E=(C,A)=>{C!=null&&(r==null||r(C,A),d==null||d(C,A))},x=C=>{if(a==null||a(C),!g)return;let A;switch(C.key){case"ArrowLeft":case"ArrowUp":A=T(-1);break;case"ArrowRight":case"ArrowDown":A=T(1);break;default:return}A&&(C.preventDefault(),E(A.dataset[vse("EventKey")]||null,C),f.current=!0,c())};I.useEffect(()=>{if(w.current&&f.current){const C=w.current.querySelector(`[${WO}][aria-selected=true]`);C==null||C.focus()}f.current=!1});const b=pa(e,w);return ue.jsx(no.Provider,{value:E,children:ue.jsx(k1.Provider,{value:{role:s,activeKey:dl(i),getControlledId:v||HO,getControllerId:y||HO},children:ue.jsx(n,Object.assign({},l,{onKeyDown:x,ref:b,role:s}))})})});tz.displayName="Nav";const Hse=Object.assign(tz,{Item:Bse});var yh;function VO(t){if((!yh&&yh!==0||t)&&hc){var e=document.createElement("div");e.style.position="absolute",e.style.top="-9999px",e.style.width="50px",e.style.height="50px",e.style.overflow="scroll",document.body.appendChild(e),yh=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return yh}function O0(t){t===void 0&&(t=Yd());try{var e=t.activeElement;return!e||!e.nodeName?null:e}catch{return t.body}}function Wse(t=document){const e=t.defaultView;return Math.abs(e.innerWidth-t.documentElement.clientWidth)}const KO=mc("modal-open");class Vse{constructor({ownerDocument:e,handleContainerOverflow:n=!0,isRTL:r=!1}={}){this.handleContainerOverflow=n,this.isRTL=r,this.modals=[],this.ownerDocument=e}getScrollbarWidth(){return Wse(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(e){}removeModalAttributes(e){}setContainerStyle(e){const n={overflow:"hidden"},r=this.isRTL?"paddingLeft":"paddingRight",i=this.getElement();e.style={overflow:i.style.overflow,[r]:i.style[r]},e.scrollBarWidth&&(n[r]=`${parseInt(Ks(i,r)||"0",10)+e.scrollBarWidth}px`),i.setAttribute(KO,""),Ks(i,n)}reset(){[...this.modals].forEach(e=>this.remove(e))}
118removeContainerStyle(e){const n=this.getElement();n.removeAttribute(KO),Object.assign(n.style,e.style)}add(e){let n=this.modals.indexOf(e);return n!==-1||(n=this.modals.length,this.modals.push(e),this.setModalAttributes(e),n!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),n}remove(e){const n=this.modals.indexOf(e);n!==-1&&(this.modals.splice(n,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(e))}isTopModal(e){return!!this.modals.length&&this.modals[this.modals.length-1]===e}}const I1=Vse,I0=(t,e)=>hc?t==null?(e||Yd()).body:(typeof t=="function"&&(t=t()),t&&"current"in t&&(t=t.current),t&&("nodeType"in t||t.getBoundingClientRect)?t:null):null;function Kse(t,e){const n=Nv(),[r,i]=I.useState(()=>I0(t,n==null?void 0:n.document));if(!r){const s=I0(t);s&&i(s)}return I.useEffect(()=>{e&&r&&e(r)},[e,r]),I.useEffect(()=>{const s=I0(t);s!==r&&i(s)},[t,r]),r}function P1({children:t,in:e,onExited:n,mountOnEnter:r,unmountOnExit:i}){const s=I.useRef(null),a=I.useRef(e),l=on(n);I.useEffect(()=>{e?a.current=!0:l(s.current)},[e,l]);const c=pa(s,t.ref),f=I.cloneElement(t,{ref:c});return e?f:i||!a.current&&r?null:f}const qse=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function Gse(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}function Yse(t){let{onEnter:e,onEntering:n,onEntered:r,onExit:i,onExiting:s,onExited:a,addEndListener:l,children:c}=t,f=Gse(t,qse);const{major:d}=e2(),g=d>=19?c.props.ref:c.ref,v=I.useRef(null),y=pa(v,typeof c=="function"?null:g),w=k=>R=>{k&&v.current&&k(v.current,R)},T=I.useCallback(w(e),[e]),E=I.useCallback(w(n),[n]),x=I.useCallback(w(r),[r]),b=I.useCallback(w(i),[i]),C=I.useCallback(w(s),[s]),A=I.useCallback(w(a),[a]),O=I.useCallback(w(l),[l]);return Object.assign({},f,{nodeRef:v},e&&{onEnter:T},n&&{onEntering:E},r&&{onEntered:x},i&&{onExit:b},s&&{onExiting:C},a&&{onExited:A},l&&{addEndListener:O},{children:typeof c=="function"?(k,R)=>c(k,Object.assign({},R,{ref:y})):I.cloneElement(c,{ref:y})})}const Xse=["component"];function Qse(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}const Jse=I.forwardRef((t,e)=>{let{component:n}=t,r=Qse(t,Xse);const i=Yse(r);return ue.jsx(n,Object.assign({ref:e},i))}),Zse=Jse;function eoe({in:t,onTransition:e}){const n=I.useRef(null),r=I.useRef(!0),i=on(e);return om(()=>{if(!n.current)return;let s=!1;return i({in:t,element:n.current,initial:r.current,isStale:()=>s}),()=>{s=!0}},[t,i]),om(()=>(r.current=!1,()=>{r.current=!0}),[]),n}function toe({children:t,in:e,onExited:n,onEntered:r,transition:i}){const[s,a]=I.useState(!e);e&&s&&a(!1);const l=eoe({in:!!e,onTransition:f=>{const d=()=>{f.isStale()||(f.in?r==null||r(f.element,f.initial):(a(!0),n==null||n(f.element)))};Promise.resolve(i(f)).then(d,g=>{throw f.in||a(!0),g})}}),c=pa(l,t.ref);return s&&!e?null:I.cloneElement(t,{ref:c})}function qO(t,e,n){return t?ue.jsx(Zse,Object.assign({},n,{component:t})):e?ue.jsx(toe,Object.assign({},n,{transition:e})):ue.jsx(P1,Object.assign({},n))}const noe=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function roe(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}let P0;function ioe(t){return P0||(P0=new I1({ownerDocument:t==null?void 0:t.document})),P0}function soe(t){const e=Nv(),n=t||ioe(e),r=I.useRef({dialog:null,backdrop:null});return Object.assign(r.current,{add:()=>n.add(r.current),remove:()=>n.remove(r.current),isTopModal:()=>n.isTopModal(r.current),setDialogRef:I.useCallback(i=>{r.current.dialog=i},[]),setBackdropRef:I.useCallback(i=>{r.current.backdrop=i},[])})}const nz=I.forwardRef((t,e)=>{let{show:n=!1,role:r="dialog",className:i,style:s,children:a,backdrop:l=!0,keyboard:c=!0,onBackdropClick:f,onEscapeKeyDown:d,transition:g,runTransition:v,backdropTransition:y,runBackdropTransition:w,autoFocus:T=!0,enforceFocus:E=!0,restoreFocus:x=!0,restoreFocusOptions:b,renderDialog:C,renderBackdrop:A=Ge=>ue.jsx("div",Object.assign({},Ge)),manager:O,container:k,onShow:R,onHide:$=()=>{},onExit:j,onExited:W,onExiting:H,onEnter:V,onEntering:F,onEntered:z}=t,M=roe(t,noe);const q=Nv(),U=Kse(k),B=soe(O),Y=E1(),Z=JF(n),[fe,K]=I.useState(!n),N=I.useRef(null);I.useImperativeHandle(e,()=>B,[B]),hc&&!Z&&n&&(N.current=O0(q==null?void 0:q.document)),n&&fe&&K(!1);const ie=on(()=>
118{if(B.add(),Le.current=zo(document,"keydown",it),qe.current=zo(document,"focus",()=>setTimeout(ve),!0),R&&R(),T){var Ge,Tt;const vt=O0((Ge=(Tt=B.dialog)==null?void 0:Tt.ownerDocument)!=null?Ge:q==null?void 0:q.document);B.dialog&&vt&&!am(B.dialog,vt)&&(N.current=vt,B.dialog.focus())}}),me=on(()=>{if(B.remove(),Le.current==null||Le.current(),qe.current==null||qe.current(),x){var Ge;(Ge=N.current)==null||Ge.focus==null||Ge.focus(b),N.current=null}});I.useEffect(()=>{!n||!U||ie()},[n,U,ie]),I.useEffect(()=>{fe&&me()},[fe,me]),A1(()=>{me()});const ve=on(()=>{if(!E||!Y()||!B.isTopModal())return;const Ge=O0(q==null?void 0:q.document);B.dialog&&Ge&&!am(B.dialog,Ge)&&B.dialog.focus()}),ze=on(Ge=>{Ge.target===Ge.currentTarget&&(f==null||f(Ge),l===!0&&$())}),it=on(Ge=>{c&&Tie(Ge)&&B.isTopModal()&&(d==null||d(Ge),Ge.defaultPrevented||$())}),qe=I.useRef(),Le=I.useRef(),Oe=(...Ge)=>{K(!0),W==null||W(...Ge)};if(!U)return null;const $e=Object.assign({role:r,ref:B.setDialogRef,"aria-modal":r==="dialog"?!0:void 0},M,{style:s,className:i,tabIndex:-1});let et=C?C($e):ue.jsx("div",Object.assign({},$e,{children:I.cloneElement(a,{role:"document"})}));et=qO(g,v,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:j,onExiting:H,onExited:Oe,onEnter:V,onEntering:F,onEntered:z,children:et});let ct=null;return l&&(ct=A({ref:B.setBackdropRef,onClick:ze}),ct=qO(y,w,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:ct})),ue.jsx(ue.Fragment,{children:Fa.createPortal(ue.jsxs(ue.Fragment,{children:[ct,et]}),U)})});nz.displayName="Modal";const rz=Object.assign(nz,{Manager:I1});function ooe(t,e){return t.classList?!!e&&t.classList.contains(e):(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+e+" ")!==-1}function iz(t,e){t.classList?t.classList.add(e):ooe(t,e)||(typeof t.className=="string"?t.className=t.className+" "+e:t.setAttribute("class",(t.className&&t.className.baseVal||"")+" "+e))}function GO(t,e){return t.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function sz(t,e){t.classList?t.classList.remove(e):typeof t.className=="string"?t.className=GO(t.className,e):t.setAttribute("class",GO(t.className&&t.className.baseVal||"",e))}const Ql={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class oz extends I1{adjustAndStore(e,n,r){const i=n.style[e];n.dataset[e]=i,Ks(n,{[e]:`${parseFloat(Ks(n,e))+r}px`})}restore(e,n){const r=n.dataset[e];r!==void 0&&(delete n.dataset[e],Ks(n,{[e]:r}))}setContainerStyle(e){super.setContainerStyle(e);const n=this.getElement();if(iz(n,"modal-open"),!e.scrollBarWidth)return;const r=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";$s(n,Ql.FIXED_CONTENT).forEach(s=>this.adjustAndStore(r,s,e.scrollBarWidth)),$s(n,Ql.STICKY_CONTENT).forEach(s=>this.adjustAndStore(i,s,-e.scrollBarWidth)),$s(n,Ql.NAVBAR_TOGGLER).forEach(s=>this.adjustAndStore(i,s,e.scrollBarWidth))}removeContainerStyle(e){super.removeContainerStyle(e);const n=this.getElement();sz(n,"modal-open");const r=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";$s(n,Ql.FIXED_CONTENT).forEach(s=>this.restore(r,s)),$s(n,Ql.STICKY_CONTENT).forEach(s=>this.restore(i,s)),$s(n,Ql.NAVBAR_TOGGLER).forEach(s=>this.restore(i,s))}}let R0;function az(t){return R0||(R0=new oz(t)),R0}const lz=I.forwardRef(({className:t,bsPrefix:e,as:n="div",...r},i)=>(e=tt(e,"modal-body"),ue.jsx(n,{ref:i,className:je(t,e),...r})));
118lz.displayName="ModalBody";const aoe=lz,loe=I.createContext({onHide(){}}),R1=loe,uz=I.forwardRef(({bsPrefix:t,className:e,contentClassName:n,centered:r,size:i,fullscreen:s,children:a,scrollable:l,...c},f)=>{t=tt(t,"modal");const d=`${t}-dialog`,g=typeof s=="string"?`${t}-fullscreen-${s}`:`${t}-fullscreen`;return ue.jsx("div",{...c,ref:f,className:je(d,e,i&&`${t}-${i}`,r&&`${d}-centered`,l&&`${d}-scrollable`,s&&g),children:ue.jsx("div",{className:je(`${t}-content`,n),children:a})})});uz.displayName="ModalDialog";const cz=uz,fz=I.forwardRef(({className:t,bsPrefix:e,as:n="div",...r},i)=>(e=tt(e,"modal-footer"),ue.jsx(n,{ref:i,className:je(t,e),...r})));fz.displayName="ModalFooter";const uoe=fz,coe=I.forwardRef(({closeLabel:t="Close",closeVariant:e,closeButton:n=!1,onHide:r,children:i,...s},a)=>{const l=I.useContext(R1),c=on(()=>{l==null||l.onHide(),r==null||r()});return ue.jsxs("div",{ref:a,...s,children:[i,n&&ue.jsx(n2,{"aria-label":t,variant:e,onClick:c})]})}),dz=coe,pz=I.forwardRef(({bsPrefix:t,className:e,closeLabel:n="Close",closeButton:r=!1,...i},s)=>(t=tt(t,"modal-header"),ue.jsx(dz,{ref:s,...i,className:je(e,t),closeLabel:n,closeButton:r})));pz.displayName="ModalHeader";const foe=pz,doe=XF("h4"),hz=I.forwardRef(({className:t,bsPrefix:e,as:n=doe,...r},i)=>(e=tt(e,"modal-title"),ue.jsx(n,{ref:i,className:je(t,e),...r})));hz.displayName="ModalTitle";const poe=hz;function hoe(t){return ue.jsx(gc,{...t,timeout:null})}function goe(t){return ue.jsx(gc,{...t,timeout:null})}const gz=I.forwardRef(({bsPrefix:t,className:e,style:n,dialogClassName:r,contentClassName:i,children:s,dialogAs:a=cz,"data-bs-theme":l,"aria-labelledby":c,"aria-describedby":f,"aria-label":d,show:g=!1,animation:v=!0,backdrop:y=!0,keyboard:w=!0,onEscapeKeyDown:T,onShow:E,onHide:x,container:b,autoFocus:C=!0,enforceFocus:A=!0,restoreFocus:O=!0,restoreFocusOptions:k,onEntered:R,onExit:$,onExiting:j,onEnter:W,onEntering:H,onExited:V,backdropClassName:F,manager:z,...M},q)=>{const[U,B]=I.useState({}),[Y,Z]=I.useState(!1),fe=I.useRef(!1),K=I.useRef(!1),N=I.useRef(null),[ie,me]=QF(),ve=pa(q,me),ze=on(x),it=BF();t=tt(t,"modal");const qe=I.useMemo(()=>({onHide:ze}),[ze]);function Le(){return z||az({isRTL:it})}function Oe(Se){if(!hc)return;const Ve=Le().getScrollbarWidth()>0,ht=Se.scrollHeight>Yd(Se).documentElement.clientHeight;B({paddingRight:Ve&&!ht?VO():void 0,paddingLeft:!Ve&&ht?VO():void 0})}const $e=on(()=>{ie&&Oe(ie.dialog)});A1(()=>{Wx(window,"resize",$e),N.current==null||N.current()});const et=()=>{fe.current=!0},ct=Se=>{fe.current&&ie&&Se.target===ie.dialog&&(K.current=!0),fe.current=!1},Ge=()=>{Z(!0),N.current=GF(ie.dialog,()=>{Z(!1)})},Tt=Se=>{Se.target===Se.currentTarget&&Ge()},vt=Se=>{if(y==="static"){Tt(Se);return}if(K.current||Se.target!==Se.currentTarget){K.current=!1;return}x==null||x()},_t=Se=>{w?T==null||T(Se):(Se.preventDefault(),y==="static"&&Ge())},Q=(Se,Ve)=>{Se&&Oe(Se),W==null||W(Se,Ve)},te=Se=>{N.current==null||N.current(),$==null||$(Se)},oe=(Se,Ve)=>{H==null||H(Se,Ve),b1(window,"resize",$e)},Te=Se=>{Se&&(Se.style.display=""),V==null||V(Se),Wx(window,"resize",$e)},be=I.useCallback(Se=>ue.jsx("div",{...Se,className:je(`${t}-backdrop`,F,!v&&"show")}),[v,F,t]),re={...n,...U};re.display="block";const pe=Se=>ue.jsx("div",{role:"dialog",...Se,style:re,className:je(e,t,Y&&`${t}-static`,!v&&"show"),onClick:y?vt:void 0,onMouseUp:ct,"data-bs-theme":l,"aria-label":d,"aria-labelledby":c,"aria-describedby":f,children:ue.jsx(a,{...M,onMouseDown:et,className:r,contentClassName:i,children:s})});return ue.jsx(R1.Provider,{value:qe,children:ue.jsx(rz,{show:g,ref:ve,backdrop:y,container:b,keyboard:!0,autoFocus:C,enforceFocus:A,restoreFocus:O,restoreFocusOptions:k,onEscapeKeyDown:_t,onShow:E,onHide:x,onEnter:Q,onEntering:oe,onEntered:R,onExit:te,onExiting:j,onExited:Te,manager:Le(),transition:v?hoe:void 0,backdropTransition:v?goe:void 0,renderBackdrop:be,renderDialog:pe})})});gz.displayName="Modal";const gSe=Object.assign(gz,{Body:aoe,Header:foe,Title:poe,Footer:uoe,Dialog:cz,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150});var YO={exports:{}},qx={exports:{}};
118(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;function n(r){function i(a,l,c,f,d,g){var v=f||"<<anonymous>>",y=g||c;if(l[c]==null)return a?new Error("Required "+d+" `"+y+"` was not specified "+("in `"+v+"`.")):null;for(var w=arguments.length,T=Array(w>6?w-6:0),E=6;E<w;E++)T[E-6]=arguments[E];return r.apply(void 0,[l,c,v,d,y].concat(T))}var s=i.bind(null,!1);return s.isRequired=i.bind(null,!0),s}t.exports=e.default})(qx,qx.exports);var moe=qx.exports;(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var n=moe,r=i(n);function i(a){return a&&a.__esModule?a:{default:a}}function s(){for(var a=arguments.length,l=Array(a),c=0;c<a;c++)l[c]=arguments[c];function f(){for(var d=arguments.length,g=Array(d),v=0;v<d;v++)g[v]=arguments[v];var y=null;return l.forEach(function(w){if(y==null){var T=w.apply(void 0,g);T!=null&&(y=T)}}),y}return(0,r.default)(f)}t.exports=e.default})(YO,YO.exports);const mz=I.forwardRef(({className:t,bsPrefix:e,as:n="div",...r},i)=>(e=tt(e,"nav-item"),ue.jsx(n,{ref:i,className:je(t,e),...r})));mz.displayName="NavItem";const voe=mz,vz=I.forwardRef(({bsPrefix:t,className:e,as:n=Mv,active:r,eventKey:i,disabled:s=!1,...a},l)=>{t=tt(t,"nav-link");const[c,f]=Z2({key:dl(i,a.href),active:r,disabled:s,...a});return ue.jsx(n,{...a,...c,ref:l,disabled:s,className:je(e,t,s&&"disabled",f.isActive&&"active")})});vz.displayName="NavLink";const yoe=vz,yz=I.forwardRef((t,e)=>{const{as:n="div",bsPrefix:r,variant:i,fill:s=!1,justify:a=!1,navbar:l,navbarScroll:c,className:f,activeKey:d,...g}=NF(t,{activeKey:"onSelect"}),v=tt(r,"nav");let y,w,T=!1;const E=I.useContext(P2),x=I.useContext(Oie);return E?(y=E.bsPrefix,T=l??!0):x&&({cardHeaderBsPrefix:w}=x),ue.jsx(Hse,{as:n,ref:e,activeKey:d,className:je(f,{[v]:!T,[`${y}-nav`]:T,[`${y}-nav-scroll`]:T&&c,[`${w}-${i}`]:!!w,[`${v}-${i}`]:!!i,[`${v}-fill`]:s,[`${v}-justified`]:a}),...g})});yz.displayName="Nav";const mSe=Object.assign(yz,{Item:voe,Link:yoe}),Gx=new WeakMap,XO=(t,e)=>{if(!t||!e)return;const n=Gx.get(e)||new Map;Gx.set(e,n);let r=n.get(t);return r||(r=e.matchMedia(t),r.refCount=0,n.set(r.media,r)),r};function woe(t,e=typeof window>"u"?void 0:window){const n=XO(t,e),[r,i]=I.useState(()=>n?n.matches:!1);return om(()=>{let s=XO(t,e);if(!s)return i(!1);let a=Gx.get(e);const l=()=>{i(s.matches)};return s.refCount++,s.addListener(l),l(),()=>{s.removeListener(l),s.refCount--,s.refCount<=0&&(a==null||a.delete(s.media)),s=void 0}},[t]),r}function boe(t){const e=Object.keys(t);function n(l,c){return l===c?c:l?`${l} and ${c}`:c}function r(l){return e[Math.min(e.indexOf(l)+1,e.length-1)]}function i(l){const c=r(l);let f=t[c];return typeof f=="number"?f=`${f-.2}px`:f=`calc(${f} - 0.2px)`,`(max-width: ${f})`}function s(l){let c=t[l];return typeof c=="number"&&(c=`${c}px`),`(min-width: ${c})`}function a(l,c,f){let d;typeof l=="object"?(d=l,f=c,c=!0):(c=c||!0,d={[l]:c});let g=I.useMemo(()=>Object.entries(d).reduce((v,[y,w])=>((w==="up"||w===!0)&&(v=n(v,s(y))),(w==="down"||w===!0)&&(v=n(v,i(y))),v),""),[JSON.stringify(d)]);return woe(g,f)}return a}const xoe=boe({xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400}),wz=I.forwardRef(({className:t,bsPrefix:e,as:n="div",...r},i)=>(e=tt(e,"offcanvas-body"),ue.jsx(n,{ref:i,className:je(t,e),...r})));wz.displayName="OffcanvasBody";const Soe=wz,Eoe={[li]:"show",[zs]:"show"},bz=I.forwardRef(({bsPrefix:t,className:e,children:n,in:r=!1,mountOnEnter:i=!1,unmountOnExit:s=!1,appear:a=!1,...l},c)=>(t=tt(t,"offcanvas"),ue.jsx(S1,{ref:c,addEndListener:x1,in:r,mountOnEnter:i,unmountOnExit:s,appear:a,...l,childRef:n.ref,children:(f,d)=>I.cloneElement(n,{...d,className:je(e,n.props.className,(f===li||f===Gu)&&`${t}-toggling`,Eoe[f])})})));bz.displayName="OffcanvasToggling";const Coe=bz,xz=I.forwardRef(({bsPrefix:t,className:e,closeLabel:n="Close",closeButton:r=!1,...i},s)=>(t=tt(t,"offcanvas-header"),ue.jsx(dz,{ref:s,...i,className:je(e,t),closeLabel:n,closeButton:r})));xz.displayName="OffcanvasHeader";const Toe=xz,_oe=XF("h5"),Sz=I.forwardRef(({className:t,bsPrefix:e,as:n=_oe,...r},i)=>(e=tt(e,"offcanvas-title"),ue.jsx(n,{ref:i,className:je(t,e),...r})));Sz.displayName="OffcanvasTitle";const Aoe=Sz;function koe(t){return ue.jsx(Coe,{...t})}function Loe(t){return ue.jsx(gc,{...t})}const Ez=I.forwardRef(({bsPrefix:t,className:e,children:n,"aria-labelledby":r,placement:i="start",responsive:s,show:a=!1,backdrop:l=!0,keyboard:c=!0,scroll:f=!1,onEscapeKeyDown:d,onShow:g,onHide:v,container:y,autoFocus:w=!0,enforceFocus:T=!0,restoreFocus:E=!0,restoreFocusOptions:x,onEntered:b,onExit:C,onExiting:A,onEnter:O,onEntering:k,onExited:R,backdropClassName:$,manager:j,renderStaticNode:W=!1,...H},V)=>{const F=I.useRef();t=tt(t,"offcanvas");const[z,M]=I.useState(!1),q=on(v),U=xoe(s||"xs","up");I.useEffect(()=>{M(s?a&&!U:a)},[a,s,U]);const B=I.useMemo(()=>({onHide:q}),[q]);
118function Y(){return j||(f?(F.current||(F.current=new oz({handleContainerOverflow:!1})),F.current):az())}const Z=(ie,...me)=>{ie&&(ie.style.visibility="visible"),O==null||O(ie,...me)},fe=(ie,...me)=>{ie&&(ie.style.visibility=""),R==null||R(...me)},K=I.useCallback(ie=>ue.jsx("div",{...ie,className:je(`${t}-backdrop`,$)}),[$,t]),N=ie=>ue.jsx("div",{...ie,...H,className:je(e,s?`${t}-${s}`:t,`${t}-${i}`),"aria-labelledby":r,children:n});return ue.jsxs(ue.Fragment,{children:[!z&&(s||W)&&N({}),ue.jsx(R1.Provider,{value:B,children:ue.jsx(rz,{show:z,ref:V,backdrop:l,container:y,keyboard:c,autoFocus:w,enforceFocus:T&&!f,restoreFocus:E,restoreFocusOptions:x,onEscapeKeyDown:d,onShow:g,onHide:q,onEnter:Z,onEntering:k,onEntered:b,onExit:C,onExiting:A,onExited:fe,manager:Y(),transition:koe,backdropTransition:Loe,renderBackdrop:K,renderDialog:N})})]})});Ez.displayName="Offcanvas";const vSe=Object.assign(Ez,{Body:Soe,Header:Toe,Title:Aoe}),M1=I.forwardRef(({active:t=!1,disabled:e=!1,className:n,style:r,activeLabel:i="(current)",children:s,linkStyle:a,linkClassName:l,as:c=Mv,...f},d)=>{const g=t||e?"span":c;return ue.jsx("li",{ref:d,style:r,className:je(n,"page-item",{active:t,disabled:e}),children:ue.jsxs(g,{className:je("page-link",l),style:a,...f,children:[s,t&&i&&ue.jsx("span",{className:"visually-hidden",children:i})]})})});M1.displayName="PageItem";const Ooe=M1;function Qd(t,e,n=t){const r=I.forwardRef(({children:i,...s},a)=>ue.jsxs(M1,{...s,ref:a,children:[ue.jsx("span",{"aria-hidden":"true",children:i||e}),ue.jsx("span",{className:"visually-hidden",children:n})]}));return r.displayName=t,r}const Ioe=Qd("First","«"),Poe=Qd("Prev","‹","Previous"),Roe=Qd("Ellipsis","…","More"),Moe=Qd("Next","›"),Doe=Qd("Last","»"),Cz=I.forwardRef(({bsPrefix:t,className:e,size:n,...r},i)=>{const s=tt(t,"pagination");return ue.jsx("ul",{ref:i,...r,className:je(e,s,n&&`${s}-${n}`)})});Cz.displayName="Pagination";const ySe=Object.assign(Cz,{First:Ioe,Prev:Poe,Ellipsis:Roe,Item:Ooe,Next:Moe,Last:Doe}),QO=1e3;function Noe(t,e,n){const r=(t-e)/(n-e)*100;return Math.round(r*QO)/QO}function JO({min:t,now:e,max:n,label:r,visuallyHidden:i,striped:s,animated:a,className:l,style:c,variant:f,bsPrefix:d,...g},v){return ue.jsx("div",{ref:v,...g,role:"progressbar",className:je(l,`${d}-bar`,{[`bg-${f}`]:f,[`${d}-bar-animated`]:a,[`${d}-bar-striped`]:a||s}),style:{width:`${Noe(e,t,n)}%`,...c},"aria-valuenow":e,"aria-valuemin":t,"aria-valuemax":n,children:i?ue.jsx("span",{className:"visually-hidden",children:r}):r})}const Tz=I.forwardRef(({isChild:t=!1,...e},n)=>{const r={min:0,max:100,animated:!1,visuallyHidden:!1,striped:!1,...e};if(r.bsPrefix=tt(r.bsPrefix,"progress"),t)return JO(r,n);const{min:i,now:s,max:a,label:l,visuallyHidden:c,striped:f,animated:d,bsPrefix:g,variant:v,className:y,children:w,...T}=r;return ue.jsx("div",{ref:n,...T,className:je(y,g),children:w?Rie(w,E=>I.cloneElement(E,{isChild:!0})):JO({min:i,now:s,max:a,label:l,visuallyHidden:c,striped:f,animated:d,bsPrefix:g,variant:v},n)})});Tz.displayName="ProgressBar";const wSe=Tz,_z=I.forwardRef(({bsPrefix:t,className:e,as:n="div",...r},i)=>{const s=tt(t,"row"),a=FF(),l=zF(),c=`${s}-cols`,f=[];return a.forEach(d=>{const g=r[d];delete r[d];let v;g!=null&&typeof g=="object"?{cols:v}=g:v=g;const y=d!==l?`-${d}`:"";v!=null&&f.push(`${c}${y}-${v}`)}),ue.jsx(n,{ref:i,...r,className:je(e,s,...f)})});_z.displayName="Row";const bSe=_z,Az=I.forwardRef(({bsPrefix:t,variant:e,animation:n="border",size:r,as:i="div",className:s,...a},l)=>{t=tt(t,"spinner");const c=`${t}-${n}`;return ue.jsx(i,{ref:l,...a,className:je(s,c,r&&`${c}-${r}`,e&&`text-${e}`)})});Az.displayName="Spinner";const xSe=Az,$oe=["active","eventKey","mountOnEnter","transition","unmountOnExit","role","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],Foe=["activeKey","getControlledId","getControllerId"],zoe=["as"];function Yx(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}function kz(t){let{active:e,eventKey:n,mountOnEnter:r,transition:i,unmountOnExit:s,role:a="tabpanel",onEnter:l,onEntering:c,onEntered:f,onExit:d,onExiting:g,onExited:v}=t,y=Yx(t,$oe);const w=I.useContext(vc);if(!w)return[Object.assign({},y,{role:a}),{eventKey:n,isActive:e,mountOnEnter:r,transition:i,unmountOnExit:s,onEnter:l,onEntering:c,onEntered:f,onExit:d,onExiting:g,onExited:v}];const{activeKey:T,getControlledId:E,getControllerId:x}=w,b=Yx(w,Foe),C=dl(n);return[Object.assign({},y,{role:a,id:E(n),"aria-labelledby":x(n)}
118),{eventKey:n,isActive:e==null&&C!=null?dl(T)===C:e,transition:i||b.transition,mountOnEnter:r??b.mountOnEnter,unmountOnExit:s??b.unmountOnExit,onEnter:l,onEntering:c,onEntered:f,onExit:d,onExiting:g,onExited:v}]}const Lz=I.forwardRef((t,e)=>{let{as:n="div"}=t,r=Yx(t,zoe);const[i,{isActive:s,onEnter:a,onEntering:l,onEntered:c,onExit:f,onExiting:d,onExited:g,mountOnEnter:v,unmountOnExit:y,transition:w=P1}]=kz(r);return ue.jsx(vc.Provider,{value:null,children:ue.jsx(no.Provider,{value:null,children:ue.jsx(w,{in:s,onEnter:a,onEntering:l,onEntered:c,onExit:f,onExiting:d,onExited:g,mountOnEnter:v,unmountOnExit:y,children:ue.jsx(n,Object.assign({},i,{ref:e,hidden:!s,"aria-hidden":!s}))})})})});Lz.displayName="TabPanel";const Oz=t=>{const{id:e,generateChildId:n,onSelect:r,activeKey:i,defaultActiveKey:s,transition:a,mountOnEnter:l,unmountOnExit:c,children:f}=t,[d,g]=c2(i,s,r),v=g2(e),y=I.useMemo(()=>n||((T,E)=>v?`${v}-${E}-${T}`:null),[v,n]),w=I.useMemo(()=>({onSelect:g,activeKey:d,transition:a,mountOnEnter:l||!1,unmountOnExit:c||!1,getControlledId:T=>y(T,"tabpane"),getControllerId:T=>y(T,"tab")}),[g,d,a,l,c,y]);return ue.jsx(vc.Provider,{value:w,children:ue.jsx(no.Provider,{value:g||null,children:f})})};Oz.Panel=Lz;const Boe=Oz;function Iz(t){return typeof t=="boolean"?t?gc:P1:t}const Pz=({transition:t,...e})=>ue.jsx(Boe,{...e,transition:Iz(t)});Pz.displayName="TabContainer";const joe=Pz,Rz=I.forwardRef(({className:t,bsPrefix:e,as:n="div",...r},i)=>(e=tt(e,"tab-content"),ue.jsx(n,{ref:i,className:je(t,e),...r})));Rz.displayName="TabContent";const Uoe=Rz,Mz=I.forwardRef(({bsPrefix:t,transition:e,...n},r)=>{const[{className:i,as:s="div",...a},{isActive:l,onEnter:c,onEntering:f,onEntered:d,onExit:g,onExiting:v,onExited:y,mountOnEnter:w,unmountOnExit:T,transition:E=gc}]=kz({...n,transition:Iz(e)}),x=tt(t,"tab-pane");return ue.jsx(vc.Provider,{value:null,children:ue.jsx(no.Provider,{value:null,children:ue.jsx(E,{in:l,onEnter:c,onEntering:f,onEntered:d,onExit:g,onExiting:v,onExited:y,mountOnEnter:w,unmountOnExit:T,children:ue.jsx(s,{...a,ref:r,className:je(i,x,l&&"active")})})})})});Mz.displayName="TabPane";const Hoe=Mz,Woe={eventKey:ot.oneOfType([ot.string,ot.number]),title:ot.node.isRequired,disabled:ot.bool,tabClassName:ot.string,tabAttrs:ot.object},Dz=()=>{throw new Error("ReactBootstrap: The `Tab` component is not meant to be rendered! It's an abstract component that is only valid as a direct Child of the `Tabs` Component. For custom tabs components use TabPane and TabsContainer directly")};Dz.propTypes=Woe;const SSe=Object.assign(Dz,{Container:joe,Content:Uoe,Pane:Hoe}),Voe=I.forwardRef(({bsPrefix:t,className:e,striped:n,bordered:r,borderless:i,hover:s,size:a,variant:l,responsive:c,...f},d)=>{const g=tt(t,"table"),v=je(e,g,l&&`${g}-${l}`,a&&`${g}-${a}`,n&&`${g}-${typeof n=="string"?`striped-${n}`:"striped"}`,r&&`${g}-bordered`,i&&`${g}-borderless`,s&&`${g}-hover`),y=ue.jsx("table",{...f,className:v,ref:d});if(c){let w=`${g}-responsive`;return typeof c=="string"&&(w=`${w}-${c}`),ue.jsx("div",{className:w,children:y})}return y}),ESe=Voe,Koe={[li]:"showing",[Gu]:"showing show"},Nz=I.forwardRef((t,e)=>ue.jsx(gc,{...t,ref:e,transitionClasses:Koe}));Nz.displayName="ToastFade";const qoe=Nz,Goe=I.createContext({onClose(){}}),$z=Goe,Fz=I.forwardRef(({bsPrefix:t,closeLabel:e="Close",closeVariant:n,closeButton:r=!0,className:i,children:s,...a},l)=>{t=tt(t,"toast-header");const c=I.useContext($z),f=on(d=>{c==null||c.onClose==null||c.onClose(d)});return ue.jsxs("div",{ref:l,...a,className:je(t,i),children:[s,r&&ue.jsx(n2,{"aria-label":e,variant:n,onClick:f,"data-dismiss":"toast"})]})});Fz.displayName="ToastHeader";const Yoe=Fz,zz=I.forwardRef(({className:t,bsPrefix:e,as:n="div",...r},i)=>(e=tt(e,"toast-body"),ue.jsx(n,{ref:i,className:je(t,e),...r})));zz.displayName="ToastBody";const Xoe=zz,Bz=I.forwardRef(({bsPrefix:t,className:e,transition:n=qoe,show:r=!0,animation:i=!0,delay:s=5e3,autohide:a=!1,onClose:l,onEntered:c,onExit:f,onExiting:d,onEnter:g,onEntering:v,onExited:y,bg:w,...T},E)=>{t=tt(t,"toast");const x=I.useRef(s),b=I.useRef(l);I.useEffect(()=>{x.current=s,b.current=l},[s,l]);const C=Pie(),A=!!(a&&r),O=I.useCallback(()=>{A&&(b.current==null||b.current())},[A]);I.useEffect(()=>{C.set(O,x.current)},[C,O]);const k=I.useMemo(()=>({onClose:l}),[l]),R=!!(n&&i),$=ue.jsx("div",{...T,ref:E,className:je(t,e,w&&`bg-${w}`,!R&&(r?"show":"hide")),role:"alert","aria-live":"assertive","aria-atomic":"true"});return ue.jsx($z.Provider,{value:k,children:R&&n?ue.jsx(n,{in:r,onEnter:g,onEntering:v,onEntered:c,onExit:f,onExiting:d,onExited:y,unmountOnExit:!0,children:$}):$})});Bz.displayName="Toast";const CSe=Object.assign(Bz,{Body:Xoe,Header:Yoe}),Qoe={"top-start":"top-0 start-0","top-center":"top-0 start-50 translate-middle-x","top-end":"top-0 end-0","middle-start":"top-50 start-0 translate-middle-y","middle-center":"top-50 start-50 translate-middle","middle-end":"top-
11850 end-0 translate-middle-y","bottom-start":"bottom-0 start-0","bottom-center":"bottom-0 start-50 translate-middle-x","bottom-end":"bottom-0 end-0"},jz=I.forwardRef(({bsPrefix:t,position:e,containerPosition:n,className:r,as:i="div",...s},a)=>(t=tt(t,"toast-container"),ue.jsx(i,{ref:a,...s,className:je(t,e&&Qoe[e],n&&`position-${n}`,r)})));jz.displayName="ToastContainer";const TSe=jz;var Joe={},Uz={};const Zoe=Cm(Sre);(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var e=s(I),n=s(WF),r=Zoe,i=["children","onClick","replace","to","state","activeClassName","className","activeStyle","style","isActive"];function s(T){return T&&T.__esModule?T:{default:T}}function a(T,E){var x=Object.keys(T);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(T);E&&(b=b.filter(function(C){return Object.getOwnPropertyDescriptor(T,C).enumerable})),x.push.apply(x,b)}return x}function l(T){for(var E=1;E<arguments.length;E++){var x=arguments[E]!=null?arguments[E]:{};E%2?a(Object(x),!0).forEach(function(b){c(T,b,x[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(T,Object.getOwnPropertyDescriptors(x)):a(Object(x)).forEach(function(b){Object.defineProperty(T,b,Object.getOwnPropertyDescriptor(x,b))})}return T}function c(T,E,x){return E in T?Object.defineProperty(T,E,{value:x,enumerable:!0,configurable:!0,writable:!0}):T[E]=x,T}function f(T){"@babel/helpers - typeof";return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(E){return typeof E}:function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E},f(T)}function d(T,E){if(T==null)return{};var x=g(T,E),b,C;if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(T);for(C=0;C<A.length;C++)b=A[C],!(E.indexOf(b)>=0)&&Object.prototype.propertyIsEnumerable.call(T,b)&&(x[b]=T[b])}return x}function g(T,E){if(T==null)return{};var x={},b=Object.keys(T),C,A;for(A=0;A<b.length;A++)C=b[A],!(E.indexOf(C)>=0)&&(x[C]=T[C]);return x}var v=function(E){return!!(E.metaKey||E.altKey||E.ctrlKey||E.shiftKey)},y=function(E){var x=E.children,b=E.onClick,C=E.replace,A=E.to,O=E.state,k=E.activeClassName,R=E.className,$=E.activeStyle,j=E.style,W=E.isActive,H=d(E,i),V=f(A)==="object"?A.pathname||"":A,F=(0,r.useNavigate)(),z=(0,r.useHref)(typeof A=="string"?{pathname:A}:A),M=(0,r.useMatch)(V),q=(0,r.useLocation)(),U=e.default.Children.only(x),B=!!(W?typeof W=="function"?W(M,q):W:M),Y=function(fe){x.props.onClick&&x.props.onClick(fe),b&&b(fe),!fe.defaultPrevented&&fe.button===0&&!v(fe)&&(fe.preventDefault(),F(A,{replace:C,state:O}))};return e.default.cloneElement(U,l(l({},H),{},{className:[R,U.props.className,B?k:null].join(" ").trim(),style:B?l(l({},j),$):j,href:z,onClick:Y}))};y.propTypes={children:n.default.element.isRequired,onClick:n.default.func,replace:n.default.bool,to:n.default.oneOfType([n.default.string,n.default.object]).isRequired,state:n.default.object,className:n.default.string,activeClassName:n.default.string,style:n.default.objectOf(n.default.oneOfType([n.default.string,n.default.number])),activeStyle:n.default.objectOf(n.default.oneOfType([n.default.string,n.default.number])),isActive:n.default.oneOfType([n.default.func,n.default.bool])},y.defaultProps={replace:!1,activeClassName:"active",onClick:null,className:null,style:null,activeStyle:null,isActive:null};var w=y;t.default=w})(Uz);(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LinkContainer",{enumerable:!0,get:function(){return e.default}});var e=n(Uz);function n(r){return r&&r.__esModule?r:{default:r}}})(Joe);var eae=Array.isArray,Si=eae,tae=typeof Do=="object"&&Do&&Do.Object===Object&&Do,Hz=tae,nae=Hz,rae=typeof self=="object"&&self&&self.Object===Object&&self,iae=nae||rae||Function("return this")(),Cs=iae,sae=Cs,oae=sae.Symbol,yc=oae,ZO=yc,Wz=Object.prototype,aae=Wz.hasOwnProperty,lae=Wz.toString,Cf=ZO?ZO.toStringTag:void 0;function uae(t){var e=aae.call(t,Cf),n=t[Cf];try{t[Cf]=void 0;var r=!0}catch{}var i=lae.call(t);return r&&(e?t[Cf]=n:delete t[Cf]),i}var cae=uae,fae=Object.prototype,dae=fae.toString;function pae(t){return dae.call(t)}var hae=pae,eI=yc,gae=cae,mae=hae,vae="[object Null]",yae="[object Undef
118ined]",tI=eI?eI.toStringTag:void 0;function wae(t){return t==null?t===void 0?yae:vae:tI&&tI in Object(t)?gae(t):mae(t)}var Jd=wae;function bae(t){return t!=null&&typeof t=="object"}var Sl=bae,xae=Jd,Sae=Sl,Eae="[object Symbol]";function Cae(t){return typeof t=="symbol"||Sae(t)&&xae(t)==Eae}var $v=Cae,Tae=Si,_ae=$v,Aae=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,kae=/^\w*$/;function Lae(t,e){if(Tae(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||_ae(t)?!0:kae.test(t)||!Aae.test(t)||e!=null&&t in Object(e)}var D1=Lae;function Oae(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var El=Oae,Iae=Jd,Pae=El,Rae="[object AsyncFunction]",Mae="[object Function]",Dae="[object GeneratorFunction]",Nae="[object Proxy]";function $ae(t){if(!Pae(t))return!1;var e=Iae(t);return e==Mae||e==Dae||e==Rae||e==Nae}var Vz=$ae,Fae=Cs,zae=Fae["__core-js_shared__"],Bae=zae,M0=Bae,nI=function(){var t=/[^.]+$/.exec(M0&&M0.keys&&M0.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function jae(t){return!!nI&&nI in t}var Uae=jae,Hae=Function.prototype,Wae=Hae.toString;function Vae(t){if(t!=null){try{return Wae.call(t)}catch{}try{return t+""}catch{}}return""}var Kz=Vae,Kae=Vz,qae=Uae,Gae=El,Yae=Kz,Xae=/[\\^$.*+?()[\]{}|]/g,Qae=/^\[object .+?Constructor\]$/,Jae=Function.prototype,Zae=Object.prototype,ele=Jae.toString,tle=Zae.hasOwnProperty,nle=RegExp("^"+ele.call(tle).replace(Xae,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function rle(t){if(!Gae(t)||qae(t))return!1;var e=Kae(t)?nle:Qae;return e.test(Yae(t))}var ile=rle;function sle(t,e){return t==null?void 0:t[e]}var ole=sle,ale=ile,lle=ole;function ule(t,e){var n=lle(t,e);return ale(n)?n:void 0}var Cl=ule,cle=Cl,fle=cle(Object,"create"),Fv=fle,rI=Fv;function dle(){this.__data__=rI?rI(null):{},this.size=0}var ple=dle;function hle(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var gle=hle,mle=Fv,vle="__lodash_hash_undefined__",yle=Object.prototype,wle=yle.hasOwnProperty;function ble(t){var e=this.__data__;if(mle){var n=e[t];return n===vle?void 0:n}return wle.call(e,t)?e[t]:void 0}var xle=ble,Sle=Fv,Ele=Object.prototype,Cle=Ele.hasOwnProperty;function Tle(t){var e=this.__data__;return Sle?e[t]!==void 0:Cle.call(e,t)}var _le=Tle,Ale=Fv,kle="__lodash_hash_undefined__";function Lle(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Ale&&e===void 0?kle:e,this}var Ole=Lle,Ile=ple,Ple=gle,Rle=xle,Mle=_le,Dle=Ole;function wc(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}wc.prototype.clear=Ile;wc.prototype.delete=Ple;wc.prototype.get=Rle;wc.prototype.has=Mle;wc.prototype.set=Dle;var Nle=wc;function $le(){this.__data__=[],this.size=0}var Fle=$le;function zle(t,e){return t===e||t!==t&&e!==e}var N1=zle,Ble=N1;function jle(t,e){for(var n=t.length;n--;)if(Ble(t[n][0],e))return n;return-1}var zv=jle,Ule=zv,Hle=Array.prototype,Wle=Hle.splice;function Vle(t){var e=this.__data__,n=Ule(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():Wle.call(e,n,1),--this.size,!0}var Kle=Vle,qle=zv;function Gle(t){var e=this.__data__,n=qle(e,t);return n<0?void 0:e[n][1]}var Yle=Gle,Xle=zv;function Qle(t){return Xle(this.__data__,t)>-1}var Jle=Qle,Zle=zv;function eue(t,e){var n=this.__data__,r=Zle(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}var tue=eue,nue=Fle,rue=Kle,iue=Yle,sue=Jle,oue=tue;function bc(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}bc.prototype.clear=nue;bc.prototype.delete=rue;bc.prototype.get=iue;bc.prototype.has=sue;bc.prototype.set=oue;var Bv=bc,aue=Cl,lue=Cs,uue=aue(lue,"Map"),$1=uue,iI=Nle,cue=Bv,fue=$1;function due(){this.size=0,this.__data__={hash:new iI,map:new(fue||cue),string:new iI}}var pue=due;function hue(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var gue=hue,mue=gue;function vue(t,e){var n=t.__data__;return mue(e)?n[typeof e=="string"?"string":"hash"]:n.map}var jv=vue,yue=jv;function wue(t){var e=yue(this,t).delete(t);return this.size-=e?1:0,e}var bue=wue,xue=jv;function Sue(t){return xue(this,t).get(t)}var Eue=Sue,Cue=jv;function Tue(t){return Cue(this,t).has(t)}var _ue=Tue,Aue=jv;function kue(t,e){var n=Aue(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}var Lue=kue,Oue=pue,Iue=bue,Pue=Eue,Rue=_ue,Mue=Lue;function xc(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}xc.prototype.clear=Oue;xc.prototype.delete=Iue;xc.prototype.get=Pue;xc.prototype.has=Rue;xc.prototype.set=Mue;var F1=xc,qz=F1,Due="Expected a function";function z1(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(Due);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],s=n.cache;if(s.has(i))return s.get(i);
118var a=t.apply(this,r);return n.cache=s.set(i,a)||s,a};return n.cache=new(z1.Cache||qz),n}z1.Cache=qz;var Nue=z1,$ue=Nue,Fue=500;function zue(t){var e=$ue(t,function(r){return n.size===Fue&&n.clear(),r}),n=e.cache;return e}var Bue=zue,jue=Bue,Uue=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Hue=/\\(\\)?/g,Wue=jue(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(Uue,function(n,r,i,s){e.push(i?s.replace(Hue,"$1"):r||n)}),e}),Vue=Wue;function Kue(t,e){for(var n=-1,r=t==null?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}var Gz=Kue,sI=yc,que=Gz,Gue=Si,Yue=$v,Xue=1/0,oI=sI?sI.prototype:void 0,aI=oI?oI.toString:void 0;function Yz(t){if(typeof t=="string")return t;if(Gue(t))return que(t,Yz)+"";if(Yue(t))return aI?aI.call(t):"";var e=t+"";return e=="0"&&1/t==-Xue?"-0":e}var Que=Yz,Jue=Que;function Zue(t){return t==null?"":Jue(t)}var ece=Zue,tce=Si,nce=D1,rce=Vue,ice=ece;function sce(t,e){return tce(t)?t:nce(t,e)?[t]:rce(ice(t))}var Uv=sce,oce=$v,ace=1/0;function lce(t){if(typeof t=="string"||oce(t))return t;var e=t+"";return e=="0"&&1/t==-ace?"-0":e}var Zd=lce,uce=Uv,cce=Zd;function fce(t,e){e=uce(e,t);for(var n=0,r=e.length;t!=null&&n<r;)t=t[cce(e[n++])];return n&&n==r?t:void 0}var Hv=fce,dce=Cl,pce=function(){try{var t=dce(Object,"defineProperty");return t({},"",{}),t}catch{}}(),Xz=pce,lI=Xz;function hce(t,e,n){e=="__proto__"&&lI?lI(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var Qz=hce,gce=Qz,mce=N1,vce=Object.prototype,yce=vce.hasOwnProperty;function wce(t,e,n){var r=t[e];(!(yce.call(t,e)&&mce(r,n))||n===void 0&&!(e in t))&&gce(t,e,n)}var B1=wce,bce=9007199254740991,xce=/^(?:0|[1-9]\d*)$/;function Sce(t,e){var n=typeof t;return e=e??bce,!!e&&(n=="number"||n!="symbol"&&xce.test(t))&&t>-1&&t%1==0&&t<e}var j1=Sce,Ece=B1,Cce=Uv,Tce=j1,uI=El,_ce=Zd;function Ace(t,e,n,r){if(!uI(t))return t;e=Cce(e,t);for(var i=-1,s=e.length,a=s-1,l=t;l!=null&&++i<s;){var c=_ce(e[i]),f=n;if(c==="__proto__"||c==="constructor"||c==="prototype")return t;if(i!=a){var d=l[c];f=r?r(d,c,l):void 0,f===void 0&&(f=uI(d)?d:Tce(e[i+1])?[]:{})}Ece(l,c,f),l=l[c]}return t}var kce=Ace,Lce=Hv,Oce=kce,Ice=Uv;function Pce(t,e,n){for(var r=-1,i=e.length,s={};++r<i;){var a=e[r],l=Lce(t,a);n(l,a)&&Oce(s,Ice(a,t),l)}return s}var Rce=Pce;function Mce(t,e){return t!=null&&e in Object(t)}var Dce=Mce,Nce=Jd,$ce=Sl,Fce="[object Arguments]";function zce(t){return $ce(t)&&Nce(t)==Fce}var Bce=zce,cI=Bce,jce=Sl,Jz=Object.prototype,Uce=Jz.hasOwnProperty,Hce=Jz.propertyIsEnumerable,Wce=cI(function(){return arguments}())?cI:function(t){return jce(t)&&Uce.call(t,"callee")&&!Hce.call(t,"callee")},U1=Wce,Vce=9007199254740991;function Kce(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Vce}var H1=Kce,qce=Uv,Gce=U1,Yce=Si,Xce=j1,Qce=H1,Jce=Zd;function Zce(t,e,n){e=qce(e,t);for(var r=-1,i=e.length,s=!1;++r<i;){var a=Jce(e[r]);if(!(s=t!=null&&n(t,a)))break;t=t[a]}return s||++r!=i?s:(i=t==null?0:t.length,!!i&&Qce(i)&&Xce(a,i)&&(Yce(t)||Gce(t)))}var efe=Zce,tfe=Dce,nfe=efe;function rfe(t,e){return t!=null&&nfe(t,e,tfe)}var Zz=rfe,ife=Rce,sfe=Zz;function ofe(t,e){return ife(t,e,function(n,r){return sfe(t,r)})}var afe=ofe;function lfe(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}var W1=lfe,fI=yc,ufe=U1,cfe=Si,dI=fI?fI.isConcatSpreadable:void 0;function ffe(t){return cfe(t)||ufe(t)||!!(dI&&t&&t[dI])}var dfe=ffe,pfe=W1,hfe=dfe;function eB(t,e,n,r,i){var s=-1,a=t.length;for(n||(n=hfe),i||(i=[]);++s<a;){var l=t[s];e>0&&n(l)?e>1?eB(l,e-1,n,r,i):pfe(i,l):r||(i[i.length]=l)}return i}var gfe=eB,mfe=gfe;function vfe(t){var e=t==null?0:t.length;return e?mfe(t,1):[]}var yfe=vfe;function wfe(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var bfe=wfe,xfe=bfe,pI=Math.max;function Sfe(t,e,n){return e=pI(e===void 0?t.length-1:e,0),function(){for(var r=arguments,i=-1,s=pI(r.length-e,0),a=Array(s);++i<s;)a[i]=r[e+i];i=-1;for(var l=Array(e+1);++i<e;)l[i]=r[i];return l[e]=n(a),xfe(t,this,l)}}var Efe=Sfe;function Cfe(t){return function(){return t}}var Tfe=Cfe;function _fe(t){return t}var V1=_fe,Afe=Tfe,hI=Xz,kfe=V1,Lfe=hI?function(t,e){return hI(t,"toString",{configurable:!0,enumerable:!1,value:Afe(e),writable:!0})}:kfe,Ofe=Lfe,Ife=800,Pfe=16,Rfe=Date.now;function Mfe(t){var e=0,n=0;return function(){var r=Rfe(),i=Pfe-(r-n);if(n=r,i>0){if(++e>=Ife)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var Dfe=Mfe,Nfe=Ofe,$fe=Dfe,Ffe=$fe(Nfe),zfe=Ffe,Bfe=yfe,jfe=Efe,Ufe=zfe;function Hfe(t){return Ufe(jfe(t,void 0,Bfe),t+"")}var Wfe=Hfe,Vfe=afe,Kfe=Wfe,qfe=Kfe(function(t,e){return t==null?{}:Vfe(t,e)}),Gfe=qfe;const _Se=Lr(Gfe);var ep=t=>t.type==="checkbox",yu=t=>t instanceof Date,ar=t=>t==null;const tB=t=>typeof t=="object";var _n=t=>!ar(t)&&!Array.isArray(t)&&tB(t)&&!yu(t),nB=t=>_n(t)&&t.target?ep(t.target)?t.target.checked:t.target.value:t,Yfe=t=>t.substring(0,t.search(/\.\d+(\.|$)/))||t,rB=(t,e)=>t.has(Yfe(e)),Xfe=t=>{const e=t.constructor&&t.constructor.prototype;return _n(e)&&e.hasOwnProperty("isPrototypeOf")},K1=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function En(t){let e;const n=Array.isArray(t);if(t instanceof Date)e=new Date(t);else if(t instanceof Set)e=new Set(t);else if(!(K1&&(t instanceof Blob||t instanceof FileList))&&(n||_n(t)))if(e=n?[]:{},!n&&!Xfe(t))e=t;else for(const r in t)t.hasOwnProperty(r)&&(e[r]=En(t[r]));else return t;return e}var Sc=t=>Array.isArray(t)?t.filter(Boolean):[],Dt=t=>t===void 0,Ae=(t,e,n)=>{if(!e||!_n(t))return n;const r=Sc(e.split(/[,[\].]+?/)).reduce((i,s)=>ar(i)?i:i[s],t);return Dt(r)||r===t?Dt(t[e])?n:t[e]:r},Ni=t=>typeof t=="boolean";const cm={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},ci={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Ps={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Qfe=Ie.createContext(null),Wv=()=>Ie.useContext(Qfe);var iB=(t,e,n,r=!0)=>{const i={defaultValues:e._defaultValues};for(const s in t)Object.defineProperty(i,s,{get:()=>{const a=s;return e._proxyFormState[a]!==ci.all&&(e._proxyFormState[a]=!r||ci.all),n&&(n[a]=!0),t[a]}});return i},Mr=t=>_n(t)&&!Object.keys(t).length,sB=(t,e,n,r)=>{n(t);const{name:i,...s}=t;return Mr(s)||Object.keys(s).length>=Object.keys(e).length||Object.keys(s).find(a=>e[a]===(!r||ci.all))},zr=t=>Array.isArray(t)?t:[t],oB=(t,e,n)=>!t||!e||t===e||zr(t).some(r=>r&&(n?r===e:r.startsWith(e)||e.startsWith(r)));function Vv(t){const e=Ie.useRef(t);e.current=t,Ie.useEffect(()=>{const n=!t.disabled&&e.current.subject&&e.current.subject.subscribe({next:e.current.next});return()=>{n&&n.unsubscribe()}},[t.disabled])}function Jfe(t){const e=Wv(),{control:n=e.control,disabled:r,name:i,exact:s}=t||{},[a,l]=Ie.useState(n._formState),c=Ie.useRef(!0),f=Ie.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),d=Ie.useRef(i);return d.current=i,Vv({disabled:r,next:g=>
118c.current&&oB(d.current,g.name,s)&&sB(g,f.current,n._updateFormState)&&l({...n._formState,...g}),subject:n._subjects.state}),Ie.useEffect(()=>(c.current=!0,f.current.isValid&&n._updateValid(!0),()=>{c.current=!1}),[n]),iB(a,n,f.current,!1)}var gs=t=>typeof t=="string",aB=(t,e,n,r,i)=>gs(t)?(r&&e.watch.add(t),Ae(n,t,i)):Array.isArray(t)?t.map(s=>(r&&e.watch.add(s),Ae(n,s))):(r&&(e.watchAll=!0),n);function Zfe(t){const e=Wv(),{control:n=e.control,name:r,defaultValue:i,disabled:s,exact:a}=t||{},l=Ie.useRef(r);l.current=r,Vv({disabled:s,subject:n._subjects.values,next:d=>{oB(l.current,d.name,a)&&f(En(aB(l.current,n._names,d.values||n._formValues,!1,i)))}});const[c,f]=Ie.useState(n._getWatch(r,i));return Ie.useEffect(()=>n._removeUnmounted()),c}var q1=t=>/^\w*$/.test(t),lB=t=>Sc(t.replace(/["|']|\]/g,"").split(/\.|\[/)),Lt=(t,e,n)=>{let r=-1;const i=q1(e)?[e]:lB(e),s=i.length,a=s-1;for(;++r<s;){const l=i[r];let c=n;if(r!==a){const f=t[l];c=_n(f)||Array.isArray(f)?f:isNaN(+i[r+1])?{}:[]}t[l]=c,t=t[l]}return t};function ede(t){const e=Wv(),{name:n,disabled:r,control:i=e.control,shouldUnregister:s}=t,a=rB(i._names.array,n),l=Zfe({control:i,name:n,defaultValue:Ae(i._formValues,n,Ae(i._defaultValues,n,t.defaultValue)),exact:!0}),c=Jfe({control:i,name:n}),f=Ie.useRef(i.register(n,{...t.rules,value:l,...Ni(t.disabled)?{disabled:t.disabled}:{}}));return Ie.useEffect(()=>{const d=i._options.shouldUnregister||s,g=(v,y)=>{const w=Ae(i._fields,v);w&&(w._f.mount=y)};if(g(n,!0),d){const v=En(Ae(i._options.defaultValues,n));Lt(i._defaultValues,n,v),Dt(Ae(i._formValues,n))&&Lt(i._formValues,n,v)}return()=>{(a?d&&!i._state.action:d)?i.unregister(n):g(n,!1)}},[n,i,a,s]),Ie.useEffect(()=>{Ae(i._fields,n)&&i._updateDisabledField({disabled:r,fields:i._fields,name:n,value:Ae(i._fields,n)._f.value})},[r,n,i]),{field:{name:n,value:l,...Ni(r)||c.disabled?{disabled:c.disabled||r}:{},onChange:Ie.useCallback(d=>f.current.onChange({target:{value:nB(d),name:n},type:cm.CHANGE}),[n]),onBlur:Ie.useCallback(()=>f.current.onBlur({target:{value:Ae(i._formValues,n),name:n},type:cm.BLUR}),[n,i]),ref:d=>{const g=Ae(i._fields,n);g&&d&&(g._f.ref={focus:()=>d.focus(),select:()=>d.select(),setCustomValidity:v=>d.setCustomValidity(v),reportValidity:()=>d.reportValidity()})}},formState:c,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Ae(c.errors,n)},isDirty:{enumerable:!0,get:()=>!!Ae(c.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Ae(c.touchedFields,n)},error:{enumerable:!0,get:()=>Ae(c.errors,n)}})}}const ASe=t=>t.render(ede(t));var tde=(t,e,n,r,i)=>e?{...n[t],types:{...n[t]&&n[t].types?n[t].types:{},[r]:i||!0}}:{},Ao=()=>{const t=typeof performance>"u"?Date.now():performance.now()*1e3;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const n=(Math.random()*16+t)%16|0;return(e=="x"?n:n&3|8).toString(16)})},D0=(t,e,n={})=>n.shouldFocus||Dt(n.shouldFocus)?n.focusName||`${t}.${Dt(n.focusIndex)?e:n.focusIndex}.`:"",Xx=t=>({isOnSubmit:!t||t===ci.onSubmit,isOnBlur:t===ci.onBlur,isOnChange:t===ci.onChange,isOnAll:t===ci.all,isOnTouch:t===ci.onTouched}),Qx=(t,e,n)=>!n&&(e.watchAll||e.watch.has(t)||[...e.watch].some(r=>t.startsWith(r)&&/^\.\w+/.test(t.slice(r.length))));const Au=(t,e,n,r)=>{for(const i of n||Object.keys(t)){const s=Ae(t,i);if(s){const{_f:a,...l}=s;if(a){if(a.refs&&a.refs[0]&&e(a.refs[0],i)&&!r)break;if(a.ref&&e(a.ref,a.name)&&!r)break;Au(l,e)}else _n(l)&&Au(l,e)}}};var uB=(t,e,n)=>{const r=Sc(Ae(t,n));return Lt(r,"root",e[n]),Lt(t,n,r),t},G1=t=>t.type==="file",Bo=t=>typeof t=="function",fm=t=>{if(!K1)return!1;const e=t?t.ownerDocument:0;return t instanceof(e&&e.defaultView?e.defaultView.HTMLElement:HTMLElement)},eg=t=>gs(t),Y1=t=>t.type==="radio",dm=t=>t instanceof RegExp;const gI={value:!1,isValid:!1},mI={value:!0,isValid:!0};var cB=t=>{if(Array.isArray(t)){if(t.length>1){const e=t.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:e,isValid:!!e.length}}return t[0].checked&&!t[0].disabled?t[0].attributes&&!Dt(t[0].attributes.value)?Dt(t[0].value)||t[0].value===""?mI:{value:t[0].value,isValid:!0}:mI:gI}return gI};const vI={isValid:!1,value:null};var fB=t=>Array.isArray(t)?t.reduce((e,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:e,vI):vI;function yI(t,e,n="validate"){if(eg(t)||Array.isArray(t)&&t.every(eg)||Ni(t)&&!t)return{type:n,message:eg(t)?t:"",ref:e}}var Jl=t=>_n(t)&&!dm(t)?t:{value:t,message:""},Jx=async(t,e,n,r,i)=>{const{ref:s,refs:a,required:l,maxLength:c,minLength:f,min:d,max:g,pattern:v,validate:y,name:w,valueAsNumber:T,mount:E,disabled:x}=t._f,b=Ae(e,w);if(!E||x)return{};const C=a?a[0]:s,A=V=>{r&&C.reportValidity&&(C.setCustomValidity(Ni(V)?"":V||""),C.reportValidity())},O={},k=Y1(s),R=ep(s),$=k||R,j=(T||G1(s))&&Dt(s.value)&&Dt(b)||fm(s)&&s.value===""||b===""||Array.isArray(b)&&!b.length,W=tde.bind(null,w,n,O),H=(V,F,z,M=Ps.maxLength,q=Ps.minLength)=>{const U=V?F:z;O[w]={type:V?M:q,message:U,ref:s,...W(V?M:q,U)}};if(i?!Array.isArray(b)||!b.length:l&&(!$&&(j||ar(b))||Ni(b)&&!b||R&&!cB(a).isValid||k&&!fB(a).isValid)){const{value:V,message:F}=eg(l)?{value:!!l,message:l}:Jl(l);
118if(V&&(O[w]={type:Ps.required,message:F,ref:C,...W(Ps.required,F)},!n))return A(F),O}if(!j&&(!ar(d)||!ar(g))){let V,F;const z=Jl(g),M=Jl(d);if(!ar(b)&&!isNaN(b)){const q=s.valueAsNumber||b&&+b;ar(z.value)||(V=q>z.value),ar(M.value)||(F=q<M.value)}else{const q=s.valueAsDate||new Date(b),U=Z=>new Date(new Date().toDateString()+" "+Z),B=s.type=="time",Y=s.type=="week";gs(z.value)&&b&&(V=B?U(b)>U(z.value):Y?b>z.value:q>new Date(z.value)),gs(M.value)&&b&&(F=B?U(b)<U(M.value):Y?b<M.value:q<new Date(M.value))}if((V||F)&&(H(!!V,z.message,M.message,Ps.max,Ps.min),!n))return A(O[w].message),O}if((c||f)&&!j&&(gs(b)||i&&Array.isArray(b))){const V=Jl(c),F=Jl(f),z=!ar(V.value)&&b.length>+V.value,M=!ar(F.value)&&b.length<+F.value;if((z||M)&&(H(z,V.message,F.message),!n))return A(O[w].message),O}if(v&&!j&&gs(b)){const{value:V,message:F}=Jl(v);if(dm(V)&&!b.match(V)&&(O[w]={type:Ps.pattern,message:F,ref:s,...W(Ps.pattern,F)},!n))return A(F),O}if(y){if(Bo(y)){const V=await y(b,e),F=yI(V,C);if(F&&(O[w]={...F,...W(Ps.validate,F.message)},!n))return A(F.message),O}else if(_n(y)){let V={};for(const F in y){if(!Mr(V)&&!n)break;const z=yI(await y[F](b,e),C,F);z&&(V={...z,...W(F,z.message)},A(z.message),n&&(O[w]=V))}if(!Mr(V)&&(O[w]={ref:C,...V},!n))return O}}return A(!0),O},N0=(t,e)=>[...t,...zr(e)],$0=t=>Array.isArray(t)?t.map(()=>{}):void 0;function F0(t,e,n){return[...t.slice(0,e),...zr(n),...t.slice(e)]}var z0=(t,e,n)=>Array.isArray(t)?(Dt(t[n])&&(t[n]=void 0),t.splice(n,0,t.splice(e,1)[0]),t):[],B0=(t,e)=>[...zr(e),...zr(t)];function nde(t,e){let n=0;const r=[...t];for(const i of e)r.splice(i-n,1),n++;return Sc(r).length?r:[]}var j0=(t,e)=>Dt(e)?[]:nde(t,zr(e).sort((n,r)=>n-r)),U0=(t,e,n)=>{[t[e],t[n]]=[t[n],t[e]]};function rde(t,e){const n=e.slice(0,-1).length;let r=0;for(;r<n;)t=Dt(t)?r++:t[e[r++]];return t}function ide(t){for(const e in t)if(t.hasOwnProperty(e)&&!Dt(t[e]))return!1;return!0}function kn(t,e){const n=Array.isArray(e)?e:q1(e)?[e]:lB(e),r=n.length===1?t:rde(t,n),i=n.length-1,s=n[i];return r&&delete r[s],i!==0&&(_n(r)&&Mr(r)||Array.isArray(r)&&ide(r))&&kn(t,n.slice(0,-1)),t}var wI=(t,e,n)=>(t[e]=n,t);function kSe(t){const e=Wv(),{control:n=e.control,name:r,keyName:i="id",shouldUnregister:s}=t,[a,l]=Ie.useState(n._getFieldArray(r)),c=Ie.useRef(n._getFieldArray(r).map(Ao)),f=Ie.useRef(a),d=Ie.useRef(r),g=Ie.useRef(!1);d.current=r,f.current=a,n._names.array.add(r),t.rules&&n.register(r,t.rules),Vv({next:({values:O,name:k})=>{if(k===d.current||!k){const R=Ae(O,d.current);Array.isArray(R)&&(l(R),c.current=R.map(Ao))}},subject:n._subjects.array});const v=Ie.useCallback(O=>{g.current=!0,n._updateFieldArray(r,O)},[n,r]),y=(O,k)=>{const R=zr(En(O)),$=N0(n._getFieldArray(r),R);n._names.focus=D0(r,$.length-1,k),c.current=N0(c.current,R.map(Ao)),v($),l($),n._updateFieldArray(r,$,N0,{argA:$0(O)})},w=(O,k)=>{const R=zr(En(O)),$=B0(n._getFieldArray(r),R);n._names.focus=D0(r,0,k),c.current=B0(c.current,R.map(Ao)),v($),l($),n._updateFieldArray(r,$,B0,{argA:$0(O)})},T=O=>{const k=j0(n._getFieldArray(r),O);c.current=j0(c.current,O),v(k),l(k),n._updateFieldArray(r,k,j0,{argA:O})},E=(O,k,R)=>{const $=zr(En(k)),j=F0(n._getFieldArray(r),O,$);n._names.focus=D0(r,O,R),c.current=F0(c.current,O,$.map(Ao)),v(j),l(j),n._updateFieldArray(r,j,F0,{argA:O,argB:$0(k)})},x=(O,k)=>{const R=n._getFieldArray(r);U0(R,O,k),U0(c.current,O,k),v(R),l(R),n._updateFieldArray(r,R,U0,{argA:O,argB:k},!1)},b=(O,k)=>{const R=n._getFieldArray(r);z0(R,O,k),z0(c.current,O,k),v(R),l(R),n._updateFieldArray(r,R,z0,{argA:O,argB:k},!1)},C=(O,k)=>{const R=En(k),$=wI(n._getFieldArray(r),O,R);c.current=[...$].map((j,W)=>!j||W===O?Ao():c.current[W]),v($),l([...$]),n._updateFieldArray(r,$,wI,{argA:O,argB:R},!0,!1)},A=O=>{const k=zr(En(O));c.current=k.map(Ao),v([...k]),l([...k]),n._updateFieldArray(r,[...k],R=>R,{},!0,!1)};return Ie.useEffect(()=>{if(n._state.action=!1,Qx(r,n._names)&&n._subjects.state.next({...n._formState}),g.current&&(!Xx(n._options.mode).isOnSubmit||n._formState.isSubmitted))if(n._options.resolver)n._executeSchema([r]).then(O=>{const k=Ae(O.errors,r),R=Ae(n._formState.errors,r);(R?!k&&R.type||k&&(R.type!==k.type||R.message!==k.message):k&&k.type)&&(k?Lt(n._formState.errors,r,k):kn(n._formState.errors,r),n._subjects.state.next({errors:n._formState.errors}))});else{const O=Ae(n._fields,r);O&&O._f&&Jx(O,n._formValues,n._options.criteriaMode===ci.all,n._options.shouldUseNativeValidation,!0).then(k=>!Mr(k)&&n._subjects.state.next({errors:uB(n._formState.errors,k,r)}))}n._subjects.values.next({name:r,values:{...n._formValues}}
vendor: 6,618 bytes, line 118
118),n._names.focus&&Au(n._fields,(O,k)=>{if(n._names.focus&&k.startsWith(n._names.focus)&&O.focus)return O.focus(),1}),n._names.focus="",n._updateValid(),g.current=!1},[a,r,n]),Ie.useEffect(()=>(!Ae(n._formValues,r)&&n._updateFieldArray(r),()=>{(n._options.shouldUnregister||s)&&n.unregister(r)}),[r,n,i,s]),{swap:Ie.useCallback(x,[v,r,n]),move:Ie.useCallback(b,[v,r,n]),prepend:Ie.useCallback(w,[v,r,n]),append:Ie.useCallback(y,[v,r,n]),remove:Ie.useCallback(T,[v,r,n]),insert:Ie.useCallback(E,[v,r,n]),update:Ie.useCallback(C,[v,r,n]),replace:Ie.useCallback(A,[v,r,n]),fields:Ie.useMemo(()=>a.map((O,k)=>({...O,[i]:c.current[k]||Ao()})),[a,i])}}var H0=()=>{let t=[];return{get observers(){return t},next:i=>{for(const s of t)s.next&&s.next(i)},subscribe:i=>(t.push(i),{unsubscribe:()=>{t=t.filter(s=>s!==i)}}),unsubscribe:()=>{t=[]}}},pm=t=>ar(t)||!tB(t);function Ka(t,e){if(pm(t)||pm(e))return t===e;if(yu(t)&&yu(e))return t.getTime()===e.getTime();const n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(const i of n){const s=t[i];if(!r.includes(i))return!1;if(i!=="ref"){const a=e[i];if(yu(s)&&yu(a)||_n(s)&&_n(a)||Array.isArray(s)&&Array.isArray(a)?!Ka(s,a):s!==a)return!1}}return!0}var dB=t=>t.type==="select-multiple",sde=t=>Y1(t)||ep(t),W0=t=>fm(t)&&t.isConnected,pB=t=>{for(const e in t)if(Bo(t[e]))return!0;return!1};function hm(t,e={}){const n=Array.isArray(t);if(_n(t)||n)for(const r in t)Array.isArray(t[r])||_n(t[r])&&!pB(t[r])?(e[r]=Array.isArray(t[r])?[]:{},hm(t[r],e[r])):ar(t[r])||(e[r]=!0);return e}function hB(t,e,n){const r=Array.isArray(t);if(_n(t)||r)for(const i in t)Array.isArray(t[i])||_n(t[i])&&!pB(t[i])?Dt(e)||pm(n[i])?n[i]=Array.isArray(t[i])?hm(t[i],[]):{...hm(t[i])}:hB(t[i],ar(e)?{}:e[i],n[i]):n[i]=!Ka(t[i],e[i]);return n}var V0=(t,e)=>hB(t,e,hm(e)),gB=(t,{valueAsNumber:e,valueAsDate:n,setValueAs:r})=>Dt(t)?t:e?t===""?NaN:t&&+t:n&&gs(t)?new Date(t):r?r(t):t;function K0(t){const e=t.ref;if(!(t.refs?t.refs.every(n=>n.disabled):e.disabled))return G1(e)?e.files:Y1(e)?fB(t.refs).value:dB(e)?[...e.selectedOptions].map(({value:n})=>n):ep(e)?cB(t.refs).value:gB(Dt(e.value)?t.ref.value:e.value,t)}var ode=(t,e,n,r)=>{const i={};for(const s of t){const a=Ae(e,s);a&&Lt(i,s,a._f)}return{criteriaMode:n,names:[...t],fields:i,shouldUseNativeValidation:r}},Tf=t=>Dt(t)?t:dm(t)?t.source:_n(t)?dm(t.value)?t.value.source:t.value:t,ade=t=>t.mount&&(t.required||t.min||t.max||t.maxLength||t.minLength||t.pattern||t.validate);function bI(t,e,n){const r=Ae(t,n);if(r||q1(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const s=i.join("."),a=Ae(e,s),l=Ae(t,s);if(a&&!Array.isArray(a)&&n!==s)return{name:n};if(l&&l.type)return{name:s,error:l};i.pop()}return{name:n}}var lde=(t,e,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(e||t):(n?r.isOnBlur:i.isOnBlur)?!t:(n?r.isOnChange:i.isOnChange)?t:!0,ude=(t,e)=>!Sc(Ae(t,e)).length&&kn(t,e);const cde={mode:ci.onSubmit,reValidateMode:ci.onChange,shouldFocusError:!0};function fde(t={},e){let n={...cde,...t},r={submitCount:0,isDirty:!1,isLoading:Bo(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:n.errors||{},disabled:n.disabled||!1},i={},s=_n(n.defaultValues)||_n(n.values)?En(n.defaultValues||n.values)||{}:{},a=n.shouldUnregister?{}:En(s),l={action:!1,mount:!1,watch:!1},c={mount:new Set,unMount:new Set,array:new Set,watch:new Set},f,d=0;const g={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},v={values:H0(),array:H0(),state:H0()},y=Xx(n.mode),w=Xx(n.reValidateMode),T=n.criteriaMode===ci.all,E=Q=>te=>{clearTimeout(d),d=setTimeout(Q,te)},x=async Q=>{if(g.isValid||Q){const te=n.resolver?Mr((await j()).errors):await H(i,!0);te!==r.isValid&&v.state.next({isValid:te})}},b=Q=>g.isValidating&&v.state.next({isValidating:Q}),C=(Q,te=[],oe,Te,be=!0,re=!0)=>{if(Te&&oe){if(l.action=!0,re&&Array.isArray(Ae(i,Q))){const pe=oe(Ae(i,Q),Te.argA,Te.argB);be&&Lt(i,Q,pe)}if(re&&Array.isArray(Ae(r.errors,Q))){const pe=oe(Ae(r.errors,Q),Te.argA,Te.argB);be&&Lt(r.errors,Q,pe),ude(r.errors,Q)}if(g.touchedFields&&re&&Array.isArray(Ae(r.touchedFields,Q))){const pe=oe(Ae(r.touchedFields,Q),Te.argA,Te.argB);be&&Lt(r.touchedFields,Q,pe)}g.dirtyFields&&(r.dirtyFields=V0(s,a)),v.state.next({name:Q,isDirty:F(Q,te),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Lt(a,Q,te)},A=(Q,te)=>{Lt(r.errors,Q,te),v.state.next({errors:r.errors})},O=Q=>{r.errors=Q,v.state.next({errors:r.errors,isValid:!1})},k=(Q,te,oe,Te)=>{const be=Ae(i,Q);if(be){const re=Ae(a,Q,Dt(oe)?Ae(s,Q):oe);Dt(re)||Te&&Te.defaultChecked||te?Lt(a,Q,te?re:K0(be._f)):q(Q,re),l.mount&&x()}},R=(Q,te,oe,Te,be)=>{let re=!1,pe=!1;const Se={name:Q},Ve=!!(Ae(i,Q)&&Ae(i,Q)._f.disabled);if(!oe||Te){g.isDirty&&(pe=r.isDirty,r.isDirty=Se.isDirty=F(),re=pe!==Se.isDirty);const ht=Ve||Ka(Ae(s,Q),te);pe=!!(!Ve&&Ae(r.dirtyFields,Q)),ht||Ve?kn(r.dirtyFields,Q):Lt(r.dirtyFields,Q,!0),Se.dirtyFields=r.dirtyFields,re=re||g.dirtyFields&&pe!==!ht}if(oe){const ht=Ae(r.touchedFields,Q);ht||(Lt(r.touchedFields,Q,oe),Se.touchedFields=r.touchedFields,re=re||g.touchedFields&&ht!==oe)}return re&&be&&v.state.next(Se),re?Se:{}},$=(Q,te,oe,Te)=>{const be=Ae(r.errors,Q),re=g.isValid&&Ni(te)&&r.isValid!==te;if(t.delayError&&oe?(f=E(()=>A(Q,oe)),f(t.delayError)):(clearTimeout(d),f=null,oe?Lt(r.errors,Q,oe):kn(r.errors,Q)),(oe?!Ka(be,oe):be)||!Mr(Te)||re){const pe={...Te,...re&&Ni(te)?{isValid:te}:{},errors:r.errors,name:Q};r={...r,...pe},v.state.next(pe)}b(!1)},j=async Q=>n.resolver(a,n.context,ode(Q||c.mount,i,n.criteriaMode,n.shouldUseNativeValidation)),W=async Q=>{const{errors:te}=await j(Q);if(Q)for(const oe of Q){const Te=Ae(te,oe);Te?Lt(r.errors,oe,Te):kn(r.errors,oe)}else r.errors=te;return te},H=async(Q,te,oe={valid:!0})=>{for(const Te in Q){const be=Q[Te];if(be){const{_f:re,...pe}=be;if(re){const Se=c.array.has(re.name),Ve=await Jx(be,a,T,n.shouldUseNativeValidation&&!te,Se);if(Ve[re.name]&&(oe.valid=!1,te))break;!te&&(Ae(Ve,re.name)?Se?uB(r.errors,Ve,re.name):Lt(r.errors,re.name,Ve[re.name]):kn(r.errors,re.name))}pe&&await H(pe,te,oe)}}return oe.valid},V=()=>{for(const Q of c.unMount){const te=Ae(i,Q);te&&(te._f.refs?te._f.refs.every(oe=>!W0(oe)):!W0(te._f.ref))&&ze(Q)}c.unMount=new Set},F=(Q,te)=>(Q&&te&&Lt(a,Q,te),!Ka(K(),s)),z=(Q,te,oe)=>aB(Q,c,{...l.mount?a:Dt(te)?s:gs(Q)?{[Q]:te}:te},oe,te),M=Q=>Sc(Ae(l.mount?a:s,Q,t.shouldUnregister?Ae(s,Q,[]):[])),q=(Q,te,oe={})=>{const Te=Ae(i,Q);let be=te;if(Te){const re=Te._f;re&&(!re.disabled&&Lt(a,Q,gB(te,re)),be=fm(re.ref)&&ar(te)?"":te,dB(re.ref)?[...re.ref.options].forEac
vendor: 4,735 bytes, line 118
118h(pe=>pe.selected=be.includes(pe.value)):re.refs?ep(re.ref)?re.refs.length>1?re.refs.forEach(pe=>(!pe.defaultChecked||!pe.disabled)&&(pe.checked=Array.isArray(be)?!!be.find(Se=>Se===pe.value):be===pe.value)):re.refs[0]&&(re.refs[0].checked=!!be):re.refs.forEach(pe=>pe.checked=pe.value===be):G1(re.ref)?re.ref.value="":(re.ref.value=be,re.ref.type||v.values.next({name:Q,values:{...a}})))}(oe.shouldDirty||oe.shouldTouch)&&R(Q,be,oe.shouldTouch,oe.shouldDirty,!0),oe.shouldValidate&&fe(Q)},U=(Q,te,oe)=>{for(const Te in te){const be=te[Te],re=`${Q}.${Te}`,pe=Ae(i,re);(c.array.has(Q)||!pm(be)||pe&&!pe._f)&&!yu(be)?U(re,be,oe):q(re,be,oe)}},B=(Q,te,oe={})=>{const Te=Ae(i,Q),be=c.array.has(Q),re=En(te);Lt(a,Q,re),be?(v.array.next({name:Q,values:{...a}}),(g.isDirty||g.dirtyFields)&&oe.shouldDirty&&v.state.next({name:Q,dirtyFields:V0(s,a),isDirty:F(Q,re)})):Te&&!Te._f&&!ar(re)?U(Q,re,oe):q(Q,re,oe),Qx(Q,c)&&v.state.next({...r}),v.values.next({name:Q,values:{...a}}),!l.mount&&e()},Y=async Q=>{const te=Q.target;let oe=te.name,Te=!0;const be=Ae(i,oe),re=()=>te.type?K0(be._f):nB(Q),pe=Se=>{Te=Number.isNaN(Se)||Se===Ae(a,oe,Se)};if(be){let Se,Ve;const ht=re(),Kt=Q.type===cm.BLUR||Q.type===cm.FOCUS_OUT,Zn=!ade(be._f)&&!n.resolver&&!Ae(r.errors,oe)&&!be._f.deps||lde(Kt,Ae(r.touchedFields,oe),r.isSubmitted,w,y),Or=Qx(oe,c,Kt);Lt(a,oe,ht),Kt?(be._f.onBlur&&be._f.onBlur(Q),f&&f(0)):be._f.onChange&&be._f.onChange(Q);const jn=R(oe,ht,Kt,!1),Ts=!Mr(jn)||Or;if(!Kt&&v.values.next({name:oe,type:Q.type,values:{...a}}),Zn)return g.isValid&&x(),Ts&&v.state.next({name:oe,...Or?{}:jn});if(!Kt&&Or&&v.state.next({...r}),b(!0),n.resolver){const{errors:Un}=await j([oe]);if(pe(ht),Te){const Hn=bI(r.errors,i,oe),Ei=bI(Un,i,Hn.name||oe);Se=Ei.error,oe=Ei.name,Ve=Mr(Un)}}else Se=(await Jx(be,a,T,n.shouldUseNativeValidation))[oe],pe(ht),Te&&(Se?Ve=!1:g.isValid&&(Ve=await H(i,!0)));Te&&(be._f.deps&&fe(be._f.deps),$(oe,Ve,Se,jn))}},Z=(Q,te)=>{if(Ae(r.errors,te)&&Q.focus)return Q.focus(),1},fe=async(Q,te={})=>{let oe,Te;const be=zr(Q);if(b(!0),n.resolver){const re=await W(Dt(Q)?Q:be);oe=Mr(re),Te=Q?!be.some(pe=>Ae(re,pe)):oe}else Q?(Te=(await Promise.all(be.map(async re=>{const pe=Ae(i,re);return await H(pe&&pe._f?{[re]:pe}:pe)}))).every(Boolean),!(!Te&&!r.isValid)&&x()):Te=oe=await H(i);return v.state.next({...!gs(Q)||g.isValid&&oe!==r.isValid?{}:{name:Q},...n.resolver||!Q?{isValid:oe}:{},errors:r.errors,isValidating:!1}),te.shouldFocus&&!Te&&Au(i,Z,Q?be:c.mount),Te},K=Q=>{const te={...s,...l.mount?a:{}};return Dt(Q)?te:gs(Q)?Ae(te,Q):Q.map(oe=>Ae(te,oe))},N=(Q,te)=>({invalid:!!Ae((te||r).errors,Q),isDirty:!!Ae((te||r).dirtyFields,Q),isTouched:!!Ae((te||r).touchedFields,Q),error:Ae((te||r).errors,Q)}),ie=Q=>{Q&&zr(Q).forEach(te=>kn(r.errors,te)),v.state.next({errors:Q?r.errors:{}})},me=(Q,te,oe)=>{const Te=(Ae(i,Q,{_f:{}})._f||{}).ref;Lt(r.errors,Q,{...te,ref:Te}),v.state.next({name:Q,errors:r.errors,isValid:!1}),oe&&oe.shouldFocus&&Te&&Te.focus&&Te.focus()},ve=(Q,te)=>Bo(Q)?v.values.subscribe({next:oe=>Q(z(void 0,te),oe)}):z(Q,te,!0),ze=(Q,te={})=>{for(const oe of Q?zr(Q):c.mount)c.mount.delete(oe),c.array.delete(oe),te.keepValue||(kn(i,oe),kn(a,oe)),!te.keepError&&kn(r.errors,oe),!te.keepDirty&&kn(r.dirtyFields,oe),!te.keepTouched&&kn(r.touchedFields,oe),!n.shouldUnregister&&!te.keepDefaultValue&&kn(s,oe);v.values.next({values:{...a}}),v.state.next({...r,...te.keepDirty?{isDirty:F()}:{}}),!te.keepIsValid&&x()},it=({disabled:Q,name:te,field:oe,fields:Te,value:be})=>{if(Ni(Q)){const re=Q?void 0:Dt(be)?K0(oe?oe._f:Ae(Te,te)._f):be;Lt(a,te,re),R(te,re,!1,!1,!0)}},qe=(Q,te={})=>{let oe=Ae(i,Q);const Te=Ni(te.disabled);return Lt(i,Q,{...oe||{},_f:{...oe&&oe._f?oe._f:{ref:{name:Q}},name:Q,mount:!0,...te}}),c.mount.add(Q),oe?it({field:oe,disabled:te.disabled,name:Q,value:te.value}):k(Q,!0,te.value),{...Te?{disabled:te.disabled}:{},...n.progressive?{required:!!te.required,min:Tf(te.min),max:Tf(te.max),minLength:Tf(te.minLength),maxLength:Tf(te.maxLength),pattern:Tf(te.pattern)}:{},name:Q,onChange:Y,onBlur:Y,ref:be=>{if(be){qe(Q,te),oe=Ae(i,Q);const re=Dt(be.value)&&be.querySelectorAll&&be.querySelectorAll("input,select,textarea")[0]||be,pe=sde(re),Se=oe._f.refs||[];if(pe?Se.find(Ve=>Ve===re):re===oe._f.ref)return;Lt(i,Q,{_f:{...oe._f,...pe?{refs:[...Se.filter(W0),re,...Array.isArray(Ae(s,Q))?[{}]:[]],ref:{type:re.type,name:Q}}:{ref:re}}}),k(Q,!1,void 0,re)}else oe=Ae(i,Q,{}),oe._f&&(oe._f.mount=!1),(n.shouldUnregister||te.shouldUnregister)&&!(rB(c.array,Q)&&l.action)&&c.unMount.add(Q)}}},Le=()=>n.shouldFocusError&&Au(i,Z,c.mount),Oe=Q=>{Ni(Q)&&(v.state.next({disabled:Q}),Au(i,(te,oe)=>{let Te=Q;const be=Ae(i,oe);be&&Ni(be._f.disabled)&&(Te||(Te=be._f.disabled)),te.disabled=Te},0,!1))},$e=(Q,te)=>
118async oe=>{oe&&(oe.preventDefault&&oe.preventDefault(),oe.persist&&oe.persist());let Te=En(a);if(v.state.next({isSubmitting:!0}),n.resolver){const{errors:be,values:re}=await j();r.errors=be,Te=re}else await H(i);kn(r.errors,"root"),Mr(r.errors)?(v.state.next({errors:{}}),await Q(Te,oe)):(te&&await te({...r.errors},oe),Le(),setTimeout(Le)),v.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Mr(r.errors),submitCount:r.submitCount+1,errors:r.errors})},et=(Q,te={})=>{Ae(i,Q)&&(Dt(te.defaultValue)?B(Q,En(Ae(s,Q))):(B(Q,te.defaultValue),Lt(s,Q,En(te.defaultValue))),te.keepTouched||kn(r.touchedFields,Q),te.keepDirty||(kn(r.dirtyFields,Q),r.isDirty=te.defaultValue?F(Q,En(Ae(s,Q))):F()),te.keepError||(kn(r.errors,Q),g.isValid&&x()),v.state.next({...r}))},ct=(Q,te={})=>{const oe=Q?En(Q):s,Te=En(oe),be=Q&&!Mr(Q)?Te:s;if(te.keepDefaultValues||(s=oe),!te.keepValues){if(te.keepDirtyValues)for(const re of c.mount)Ae(r.dirtyFields,re)?Lt(be,re,Ae(a,re)):B(re,Ae(be,re));else{if(K1&&Dt(Q))for(const re of c.mount){const pe=Ae(i,re);if(pe&&pe._f){const Se=Array.isArray(pe._f.refs)?pe._f.refs[0]:pe._f.ref;if(fm(Se)){const Ve=Se.closest("form");if(Ve){Ve.reset();break}}}}i={}}a=t.shouldUnregister?te.keepDefaultValues?En(s):{}:En(be),v.array.next({values:{...be}}),v.values.next({values:{...be}})}c={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!l.mount&&e(),l.mount=!g.isValid||!!te.keepIsValid,l.watch=!!t.shouldUnregister,v.state.next({submitCount:te.keepSubmitCount?r.submitCount:0,isDirty:te.keepDirty?r.isDirty:!!(te.keepDefaultValues&&!Ka(Q,s)),isSubmitted:te.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:te.keepDirtyValues?r.dirtyFields:te.keepDefaultValues&&Q?V0(s,Q):{},touchedFields:te.keepTouched?r.touchedFields:{},errors:te.keepErrors?r.errors:{},isSubmitSuccessful:te.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},Ge=(Q,te)=>ct(Bo(Q)?Q(a):Q,te);return{control:{register:qe,unregister:ze,getFieldState:N,handleSubmit:$e,setError:me,_executeSchema:j,_getWatch:z,_getDirty:F,_updateValid:x,_removeUnmounted:V,_updateFieldArray:C,_updateDisabledField:it,_getFieldArray:M,_reset:ct,_resetDefaultValues:()=>Bo(n.defaultValues)&&n.defaultValues().then(Q=>{Ge(Q,n.resetOptions),v.state.next({isLoading:!1})}),_updateFormState:Q=>{r={...r,...Q}},_disableForm:Oe,_subjects:v,_proxyFormState:g,_setErrors:O,get _fields(){return i},get _formValues(){return a},get _state(){return l},set _state(Q){l=Q},get _defaultValues(){return s},get _names(){return c},set _names(Q){c=Q},get _formState(){return r},set _formState(Q){r=Q},get _options(){return n},set _options(Q){n={...n,...Q}}},trigger:fe,register:qe,handleSubmit:$e,watch:ve,setValue:B,getValues:K,reset:Ge,resetField:et,clearErrors:ie,unregister:ze,setError:me,setFocus:(Q,te={})=>{const oe=Ae(i,Q),Te=oe&&oe._f;if(Te){const be=Te.refs?Te.refs[0]:Te.ref;be.focus&&(be.focus(),te.shouldSelect&&be.select())}},getFieldState:N}}function LSe(t={}){const e=Ie.useRef(),n=Ie.useRef(),[r,i]=Ie.useState({isDirty:!1,isValidating:!1,isLoading:Bo(t.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:t.errors||{},disabled:t.disabled||!1,defaultValues:Bo(t.defaultValues)?void 0:t.defaultValues});e.current||(e.current={...fde(t,()=>i(a=>({...a}))),formState:r});const s=e.current.control;return s._options=t,Vv({subject:s._subjects.state,next:a=>{sB(a,s._proxyFormState,s._updateFormState,!0)&&i({...s._formState})}}),Ie.useEffect(()=>s._disableForm(t.disabled),[s,t.disabled]),Ie.useEffect(()=>{if(s._proxyFormState.isDirty){const a=s._getDirty();a!==r.isDirty&&s._subjects.state.next({isDirty:a})}},[s,r.isDirty]),Ie.useEffect(()=>{t.values&&!Ka(t.values,n.current)?(s._reset(t.values,s._options.resetOptions),n.current=t.values,i(a=>({...a}))):s._resetDefaultValues()},[t.values,s]),Ie.useEffect(()=>{t.errors&&s._setErrors(t.errors)},[t.errors,s]),Ie.useEffect(()=>{s._state.mount||(s._updateValid(),s._state.mount=!0),s._state.watch&&(s._state.watch=!1,s._subjects.state.next({...s._formState})),s._removeUnmounted()}),e.current.formState=iB(r,s),e.current}var mB={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(Do,function(){var n=navigator.userAgent,r=navigator.platform,i=/gecko\/\d/i.test(n),s=/MSIE \d/.test(n),a=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(n),l=/Edge\/(\d+)/.exec(n),c=s||a||l,f=c&&(s?document.documentMode||6:+(l||a)[1]),d=!l&&/WebKit\//.test(n),g=d&&/Qt\/\d+\.\d+/.test(n),v=!l&&/Chrome\/(\d+)/.exec(n),y=v&&+v[1],w=/Opera\//.test(n),T=/Apple Computer/.test(navigator.vendor),E=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(n),x=/PhantomJS/.test(n),b=T&&(/Mobile\/\w+/.test(n)||navigator.maxTouchPoints>2),C=/Android/.test(n),A=b||C||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(n),O=b||/Mac/.test(r),k=/\bCrOS\b/.test(n),R=/win/i.test(r),$=w&&n.match(/Version\/(\d*\.\d*)/);$&&($=Number($[1])),$&&$>=15&&(w=!1,d=!0);var j=O&&(g||w&&($==null||$<12.11)),W=i||c&&f>=9;function H(o){return new RegExp("(^|\\s)"+o+"(?:$|\\s)\\s*")}var V=function(o,u){var h=o.className,p=H(u).exec(h);if(p){var m=h.slice(p.index+p[0].length);o.className=h.slice(0,p.index)+(m?p[1]+m:"")}};function F(o){for(var u=o.childNodes.length;u>0;--u)o.removeChild(o.firstChild);return o}function z(o,u){return F(o).appendChild(u)}function M(o,u,h,p){var m=document.createElement(o);if(h&&(m.className=h),p&&(m.style.cssText=p),typeof u=="string")m.appendChild(document.createTextNode(u));else if(u)for(var S=0;S<u.length;++S)m.appendChild(u[S]);return m}function q(o,u,h,p){var m=M(o,u,h,p);return m.setAttribute("role","presentation"),m}var U;document.createRange?U=function(o,u,h,p){var m=document.createRange();return m.setEnd(p||o,h),m.setStart(o,u),m}:U=function(o,u,h){var p=document.body.createTextRange();try{p.moveToElementText(o.parentNode)}catch{return p}return p.collapse(!0),p.moveEnd("character",h),p.moveStart("character",u),p};function B(o,u){if(u.nodeType==3&&(u=u.parentNode),o.contains)return o.contains(u);do if(u.nodeType==11&&(u=u.host),u==o)return!0;while(u=u.parentNode)}function Y(o){var u=o.ownerDocument||o,h;try{h=o.activeElement}catch{h=u.body||null}for(;h&&h.shadowRoot&&h.shadowRoot.activeElement;)h=h.shadowRoot.activeElement;return h}function Z(o,u){var h=o.className;H(u).test(h)||(o.className+=(h?" ":"")+u)}function fe(o,u){for(var h=o.split(" "),p=0;p<h.length;p++)h[p]&&!H(h[p]).test(u)&&(u+=" "+h[p]);return u}var K=function(o){o.select()};b?K=function(o){o.selectionStart=0,o.selectionEnd=o.value.length}:c&&(K=function(o){try{o.select()}catch{}});function N(o){return o.display.wrapper.ownerDocument}function ie(o){return me(o.display.wrapper)}function me(o){return o.getRootNode?o.getRootNode():o.ownerDocument}function ve(o){return N(o).defaultView}
vendor: 172,731 bytes, lines 118-141
118function ze(o){var u=Array.prototype.slice.call(arguments,1);return function(){return o.apply(null,u)}}function it(o,u,h){u||(u={});for(var p in o)o.hasOwnProperty(p)&&(h!==!1||!u.hasOwnProperty(p))&&(u[p]=o[p]);return u}function qe(o,u,h,p,m){u==null&&(u=o.search(/[^\s\u00a0]/),u==-1&&(u=o.length));for(var S=p||0,_=m||0;;){var L=o.indexOf("	",S);if(L<0||L>=u)return _+(u-S);_+=L-S,_+=h-_%h,S=L+1}}var Le=function(){this.id=null,this.f=null,this.time=0,this.handler=ze(this.onTimeout,this)};Le.prototype.onTimeout=function(o){o.id=0,o.time<=+new Date?o.f():setTimeout(o.handler,o.time-+new Date)},Le.prototype.set=function(o,u){this.f=u;var h=+new Date+o;(!this.id||h<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,o),this.time=h)};function Oe(o,u){for(var h=0;h<o.length;++h)if(o[h]==u)return h;return-1}var $e=50,et={toString:function(){return"CodeMirror.Pass"}},ct={scroll:!1},Ge={origin:"*mouse"},Tt={origin:"+move"};function vt(o,u,h){for(var p=0,m=0;;){var S=o.indexOf("	",p);S==-1&&(S=o.length);var _=S-p;if(S==o.length||m+_>=u)return p+Math.min(_,u-m);if(m+=S-p,m+=h-m%h,p=S+1,m>=u)return p}}var _t=[""];function Q(o){for(;_t.length<=o;)_t.push(te(_t)+" ");return _t[o]}function te(o){return o[o.length-1]}function oe(o,u){for(var h=[],p=0;p<o.length;p++)h[p]=u(o[p],p);return h}function Te(o,u,h){for(var p=0,m=h(u);p<o.length&&h(o[p])<=m;)p++;o.splice(p,0,u)}function be(){}function re(o,u){var h;return Object.create?h=Object.create(o):(be.prototype=o,h=new be),u&&it(u,h),h}var pe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Se(o){return/\w/.test(o)||o>"€"&&(o.toUpperCase()!=o.toLowerCase()||pe.test(o))}function Ve(o,u){return u?u.source.indexOf("\\w")>-1&&Se(o)?!0:u.test(o):Se(o)}function ht(o){for(var u in o)if(o.hasOwnProperty(u)&&o[u])return!1;return!0}var Kt=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Zn(o){return o.charCodeAt(0)>=768&&Kt.test(o)}function Or(o,u,h){for(;(h<0?u>0:u<o.length)&&Zn(o.charAt(u));)u+=h;return u}function jn(o,u,h){for(var p=u>h?-1:1;;){if(u==h)return u;var m=(u+h)/2,S=p<0?Math.ceil(m):Math.floor(m);if(S==u)return o(S)?u:h;o(S)?h=S:u=S+p}}function Ts(o,u,h,p){if(!o)return p(u,h,"ltr",0);for(var m=!1,S=0;S<o.length;++S){var _=o[S];(_.from<h&&_.to>u||u==h&&_.to==u)&&(p(Math.max(_.from,u),Math.min(_.to,h),_.level==1?"rtl":"ltr",S),m=!0)}m||p(u,h,"ltr")}var Un=null;function Hn(o,u,h){var p;Un=null;for(var m=0;m<o.length;++m){var S=o[m];if(S.from<u&&S.to>u)return m;S.to==u&&(S.from!=S.to&&h=="before"?p=m:Un=m),S.from==u&&(S.from!=S.to&&h!="before"?p=m:Un=m)}return p??Un}var Ei=function(){var o="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",u="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function h(D){return D<=247?o.charAt(D):1424<=D&&D<=1524?"R":1536<=D&&D<=1785?u.charAt(D-1536):1774<=D&&D<=2220?"r":8192<=D&&D<=8203?"w":D==8204?"b":"L"}var p=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,m=/[stwN]/,S=/[LRr]/,_=/[Lb1n]/,L=/[1n]/;function P(D,G,X){this.level=D,this.from=G,this.to=X}return function(D,G){var X=G=="ltr"?"L":"R";if(D.length==0||G=="ltr"&&!p.test(D))return!1;for(var ne=D.length,J=[],ae=0;ae<ne;++ae)J.push(h(D.charCodeAt(ae)));for(var de=0,ye=X;de<ne;++de){var Ee=J[de];Ee=="m"?J[de]=ye:ye=Ee}for(var _e=0,Ce=X;_e<ne;++_e){var Re=J[_e];Re=="1"&&Ce=="r"?J[_e]="n":S.test(Re)&&(Ce=Re,Re=="r"&&(J[_e]="R"))}for(var We=1,Be=J[0];We<ne-1;++We){var at=J[We];at=="+"&&Be=="1"&&J[We+1]=="1"?J[We]="1":at==","&&Be==J[We+1]&&(Be=="1"||Be=="n")&&(J[We]=Be),Be=at}for(var kt=0;kt<ne;++kt){var xn=J[kt];if(xn==",")J[kt]="N";else if(xn=="%"){var Ht=void 0;for(Ht=kt+1;Ht<ne&&J[Ht]=="%";++Ht);for(var vr=kt&&J[kt-1]=="!"||Ht<ne&&J[Ht]=="1"?"1":"N",rr=kt;rr<Ht;++rr)J[rr]=vr;kt=Ht-1}}for(var cn=0,ir=X;cn<ne;++cn){var An=J[cn];ir=="L"&&An=="1"?J[cn]="L":S.test(An)&&(ir=An)}for(var hn=0;hn<ne;++hn)if(m.test(J[hn])){var fn=void 0;for(fn=hn+1;fn<ne&&m.test(J[fn]);++fn);for(var Gt=(hn?J[hn-1]:X)=="L",sr=(fn<ne?J[fn]:X)=="L",Ul=Gt==sr?Gt?"L":"R":X,So=hn;So<fn;++So)J[So]=Ul;hn=fn-1}for(var Rn=[],os,Sn=0;Sn<ne;)if(_.test(J[Sn])){var dw=Sn;for(++Sn;Sn<ne&&_.test(J[Sn]);++Sn);Rn.push(new P(0,dw,Sn))}else{var Is=Sn,ka=Rn.length,La=G=="rtl"?1:0;for(++Sn;Sn<ne&&J[Sn]!="L";++Sn);for(var Kn=Is;Kn<Sn;)if(L.test(J[Kn])){Is<Kn&&(Rn.splice(ka,0,new P(1,Is,Kn)),ka+=La);var Hl=Kn;for(++Kn;Kn<Sn&&L.test(J[Kn]);++Kn);Rn.splice(ka,0,new P(2,Hl,Kn)),ka+=La,Is=Kn}else++Kn;Is<Sn&&Rn.splice(ka,0,new P(1,Is,Sn))}return G=="ltr"&&(Rn[0].level==1&&(os=D.match(/^\s+/))&&(Rn[0].from=os[0].length,Rn.unshift(new P(0,0,os[0].length))),te(Rn).level==1&&(os=D.match(/\s+$/))&&(te(Rn).to-=os[0].length,Rn.push(new P(0,ne-os[0].length,ne)))),G=="rtl"?Rn.reverse():Rn}}();function In(o,u){var h=o.order;return h==null&&(h=o.order=Ei(o.text,u)),h}var uo=[],Ue=function(o,u,h){if(o.addEventListener)o.addEventListener(u,h,!1);else if(o.attachEvent)o.attachEvent("on"+u,h);else{var p=o._handlers||(o._handlers={});p[u]=(p[u]||uo).concat(h)}};function _c(o,u){return o._handlers&&o._handlers[u]||uo}function Wn(o,u,h){if(o.removeEventListener)o.removeEventListener(u,h,!1);else if(o.detachEvent)o.detachEvent("on"+u,h);else{var p=o._handlers,m=p&&p[u];if(m){var S=Oe(m,h);S>-1&&(p[u]=m.slice(0,S).concat(m.slice(S+1)))}}}function qt(o,u){var h=_c(o,u);if(h.length)for(var p=Array.prototype.slice.call(arguments,2),m=0;m<h.length;++m)h[m].apply(null,p)}function ee(o,u,h){return typeof u=="string"&&(u={type:u,preventDefault:function(){this.defaultPrevented=!0}}),qt(o,h||u.type,o,u),Ze(u)||u.codemirrorIgnore}function se(o){var u=o._handlers&&o._handlers.cursorActivity;if(u)for(var h=o.curOp.cursorActivityHandlers||(o.curOp.cursorActivityHandlers=[]),p=0;p<u.length;++p)Oe(h,u[p])==-1&&h.push(u[p])}function ce(o,u){return _c(o,u).length>0}function xe(o){o.prototype.on=function(u,h){Ue(this,u,h)},o.prototype.off=function(u,h){Wn(this,u,h)}}function ke(o){o.preventDefault?o.preventDefault():o.returnValue=!1}function ut(o){o.stopPropagation?o.stopPropagation():o.cancelBubble=!0}function Ze(o){return o.defaultPrevented!=null?o.defaultPrevented:o.returnValue==!1}function Ke(o){ke(o),ut(o)}function He(o){return o.target||o.srcElement}function ft(o){var u=o.which;return u==null&&(o.button&1?u=1:o.button&2?u=3:o.button&4&&(u=2)),O&&o.ctrlKey&&u==1&&(u=3),u}var pn=function(){if(c&&f<9)return!1;var o=M("div");return"draggable"in o||"dragDrop"in o}(),st;function At(o){if(st==null){var u=M("span","​");z(o,M("span",[u,document.createTextNode("x")])),o.firstChild.offsetHeight!=0&&(st=u.offsetWidth<=1&&u.offsetHeight>2&&!(c&&f<8))}var h=st?M("span","​"):M("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return h.setAttribute("cm-text",""),h}var ln;function er(o){if(ln!=null)return ln;var u=z(o,document.createTextNode("AخA")),h=U(u,0,1).getBoundingClientRect(),p=U(u,1,2).getBoundingClientRect();return F(o),!h||h.left==h.right?!1:ln=p.right-h.right<3}var en=`
119
120b`.split(/\n/).length!=3?function(o){for(var u=0,h=[],p=o.length;u<=p;){var m=o.indexOf(`
121`,u);m==-1&&(m=o.length);var S=o.slice(u,o.charAt(m-1)=="\r"?m-1:m),_=S.indexOf("\r");_!=-1?(h.push(S.slice(0,_)),u+=_+1):(h.push(S),u=m+1)}return h}:function(o){return o.split(/\r\n?|\n/)},co=window.getSelection?function(o){try{return o.selectionStart!=o.selectionEnd}catch{return!1}}:function(o){var u;try{u=o.ownerDocument.selection.createRange()}catch{}return!u||u.parentElement()!=o?!1:u.compareEndPoints("StartToEnd",u)!=0},Ac=function(){var o=M("div");return"oncopy"in o?!0:(o.setAttribute("oncopy","return;"),typeof o.oncopy=="function")}(),Zi=null;function es(o){if(Zi!=null)return Zi;var u=z(o,M("span","x")),h=u.getBoundingClientRect(),p=U(u,0,1).getBoundingClientRect();return Zi=Math.abs(h.left-p.left)>1}var Ci={},ts={};function va(o,u){arguments.length>2&&(u.dependencies=Array.prototype.slice.call(arguments,2)),Ci[o]=u}function kc(o,u){ts[o]=u}function Ti(o){if(typeof o=="string"&&ts.hasOwnProperty(o))o=ts[o];else if(o&&typeof o.name=="string"&&ts.hasOwnProperty(o.name)){var u=ts[o.name];typeof u=="string"&&(u={name:u}),o=re(u,o),o.name=u.name}else{if(typeof o=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(o))return Ti("application/xml");if(typeof o=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(o))return Ti("application/json")}return typeof o=="string"?{name:o}:o||{name:"null"}}function fo(o,u){u=Ti(u);var h=Ci[u.name];if(!h)return fo(o,"text/plain");var p=h(o,u);if(dt.hasOwnProperty(u.name)){var m=dt[u.name];for(var S in m)m.hasOwnProperty(S)&&(p.hasOwnProperty(S)&&(p["_"+S]=p[S]),p[S]=m[S])}if(p.name=u.name,u.helperType&&(p.helperType=u.helperType),u.modeProps)for(var _ in u.modeProps)p[_]=u.modeProps[_];return p}var dt={};function xt(o,u){var h=dt.hasOwnProperty(o)?dt[o]:dt[o]={};it(u,h)}function tn(o,u){if(u===!0)return u;if(o.copyState)return o.copyState(u);var h={};for(var p in u){var m=u[p];m instanceof Array&&(m=m.concat([])),h[p]=m}return h}function po(o,u){for(var h;o.innerMode&&(h=o.innerMode(u),!(!h||h.mode==o));)u=h.state,o=h.mode;return h||{mode:o,state:u}}function rp(o,u,h){return o.startState?o.startState(u,h):!0}var un=function(o,u,h){this.pos=this.start=0,this.string=o,this.tabSize=u||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=h};un.prototype.eol=function(){return this.pos>=this.string.length},un.prototype.sol=function(){return this.pos==this.lineStart},un.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},un.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},un.prototype.eat=function(o){var u=this.string.charAt(this.pos),h;if(typeof o=="string"?h=u==o:h=u&&(o.test?o.test(u):o(u)),h)return++this.pos,u},un.prototype.eatWhile=function(o){for(var u=this.pos;this.eat(o););return this.pos>u},un.prototype.eatSpace=function(){for(var o=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>o},un.prototype.skipToEnd=function(){this.pos=this.string.length},un.prototype.skipTo=function(o){var u=this.string.indexOf(o,this.pos);if(u>-1)return this.pos=u,!0},un.prototype.backUp=function(o){this.pos-=o},un.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=qe(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?qe(this.string,this.lineStart,this.tabSize):0)},un.prototype.indentation=function(){return qe(this.string,null,this.tabSize)-(this.lineStart?qe(this.string,this.lineStart,this.tabSize):0)},un.prototype.match=function(o,u,h){if(typeof o=="string"){var p=function(_){return h?_.toLowerCase():_},m=this.string.substr(this.pos,o.length);if(p(m)==p(o))return u!==!1&&(this.pos+=o.length),!0}else{var S=this.string.slice(this.pos).match(o);return S&&S.index>0?null:(S&&u!==!1&&(this.pos+=S[0].length),S)}},un.prototype.current=function(){return this.string.slice(this.start,this.pos)},un.prototype.hideFirstChars=function(o,u){this.lineStart+=o;try{return u()}finally{this.lineStart-=o}},un.prototype.lookAhead=function(o){var u=this.lineOracle;return u&&u.lookAhead(o)},un.prototype.baseToken=function(){var o=this.lineOracle;return o&&o.baseToken(this.pos)};function Fe(o,u){if(u-=o.first,u<0||u>=o.size)throw new Error("There is no line "+(u+o.first)+" in the document.");for(var h=o;!h.lines;)for(var p=0;;++p){var m=h.children[p],S=m.chunkSize();if(u<S){h=m;break}u-=S}return h.lines[u]}function ya(o,u,h){var p=[],m=u.line;return o.iter(u.line,h.line+1,function(S){var _=S.text;m==h.line&&(_=_.slice(0,h.ch)),m==u.line&&(_=_.slice(u.ch)),p.push(_),++m}),p}function vy(o,u,h){var p=[];return o.iter(u,h,function(m){p.push(m.text)}),p}function ns(o,u){var h=u-o.height;if(h)for(var p=o;p;p=p.parent)p.height+=h}function St(o){if(o.parent==null)return null;for(var u=o.parent,h=Oe(u.lines,o),p=u.parent;p;u=p,p=p.parent)for(var m=0;p.children[m]!=u;++m)h+=p.children[m].chunkSize();return h+u.first}function wa(o,u){var h=o.first;e:do{for(var p=0;p<o.children.length;++p){var m=o.children[p],S=m.height;if(u<S){o=m;continue e}u-=S,h+=m.chunkSize()}return h}while(!o.lines);for(var _=0;_<o.lines.length;++_){var L=o.lines[_],P=L.height;if(u<P)break;u-=P}return h+_}function Lc(o,u){return u>=o.first&&u<o.first+o.size}function yy(o,u){return String(o.lineNumberFormatter(u+o.firstLineNumber))}function he(o,u,h){if(h===void 0&&(h=null),!(this instanceof he))return new he(o,u,h);this.line=o,this.ch=u,this.sticky=h}function nt(o,u){return o.line-u.line||o.ch-u.ch}function wy(o,u){return o.sticky==u.sticky&&nt(o,u)==0}function by(o){return he(o.line,o.ch)}function ip(o,u){return nt(o,u)<0?u:o}function sp(o,u){return nt(o,u)<0?o:u}function hC(o,u){return Math.max(o.first,Math.min(u,o.first+o.size-1))}function rt(o,u){if(u.line<o.first)return he(o.first,0);var h=o.first+o.size-1;return u.line>h?he(h,Fe(o,h).text.length):sj(u,Fe(o,u.line).text.length)}function sj(o,u){var h=o.ch;return h==null||h>u?he(o.line,u):h<0?he(o.line,0):o}function gC(o,u){for(var h=[],p=0;p<u.length;p++)h[p]=rt(o,u[p]);return h}var op=function(o,u){this.state=o,this.lookAhead=u},rs=function(o,u,h,p){this.state=u,this.doc=o,this.line=h,this.maxLookAhead=p||0,this.baseTokens=null,this.baseTokenPos=1};rs.prototype.lookAhead=function(o){var u=this.doc.getLine(this.line+o);return u!=null&&o>this.maxLookAhead&&(this.maxLookAhead=o),u},rs.prototype.baseToken=function(o){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=o;)this.baseTokenPos+=2;var u=this.baseTokens[this.baseTokenPos+1];return{type:u&&u.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-o}},rs.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},rs.fromSaved=function(o,u,h){return u instanceof op?new rs(o,tn(o.mode,u.state),h,u.lookAhead):new rs(o,tn(o.mode,u),h)},rs.prototype.save=function(o){var u=o!==!1?tn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new op(u,this.maxLookAhead):u};function mC(o,u,h,p){var m=[o.state.modeGen],S={};SC(o,u.text,o.doc.mode,h,function(D,G){return m.push(D,G)},S,p);for(var _=h.state,L=function(D){h.baseTokens=m;var G=o.state.overlays[D],X=1,ne=0;h.state=!0,SC(o,u.text,G.mode,h,function(J,ae){for(var de=X;ne<J;){var ye=m[X];ye>J&&m.splice(X,1,J,m[X+1],ye),X+=2,ne=Math.min(J,ye)}if(ae)if(G.opaque)m.splice(de,X-de,J,"overlay "+ae),X=de+2;else for(;de<X;de+=2){var Ee=m[de+1];m[de+1]=(Ee?Ee+" ":"")+"overlay "+ae}},S),h.state=_,h.baseTokens=null,h.baseTokenPos=1},P=0;P<o.state.overlays.length;++P)L(P);return{styles:m,classes:S.bgClass||S.textClass?S:null}}function vC(o,u,h){if(!u.styles||u.styles[0]!=o.state.modeGen){var p=Oc(o,St(u)),m=u.text.length>o.options.maxHighlightLength&&tn(o.doc.mode,p.state),S=mC(o,u,p);m&&(p.state=m),u.stateAfter=p.save(!m),u.styles=S.styles,S.classes?u.styleClasses=S.classes:u.styleClasses&&(u.styleClasses=null),h===o.doc.highlightFrontier&&(o.doc.modeFrontier=Math.max(o.doc.modeFrontier,++o.doc.highlightFrontier))}return u.styles}function Oc(o,u,h){var p=o.doc,m=o.display;if(!p.mode.startState)return new rs(p,!0,u);var S=oj(o,u,h),_=S>p.first&&Fe(p,S-1).stateAfter,L=_?rs.fromSaved(p,_,S):new rs(p,rp(p.mode),S);return p.iter(S,u,function(P){xy(o,P.text,L);var D=L.line;P.stateAfter=D==u-1||D%5==0||D>=m.viewFrom&&D<m.viewTo?L.save():null,L.nextLine()}),h&&(p.modeFrontier=L.line),L}function xy(o,u,h,p){var m=o.doc.mode,S=new un(u,o.options.tabSize,h);for(S.start=S.pos=p||0,u==""&&yC(m,h.state);!S.eol();)Sy(m,S,h.state),S.start=S.pos}function yC(o,u){if(o.blankLine)return o.blankLine(u);if(o.innerMode){var h=po(o,u);if(h.mode.blankLine)return h.mode.blankLine(h.state)}}function Sy(o,u,h,p){for(var m=0;m<10;m++){p&&(p[0]=po(o,h).mode);var S=o.token(u,h);if(u.pos>u.start)return S}throw new Error("Mode "+o.name+" failed to advance stream.")}var wC=function(o,u,h){this.start=o.start,this.end=o.pos,this.string=o.current(),this.type=u||null,this.state=h};function bC(o,u,h,p){var m=o.doc,S=m.mode,_;u=rt(m,u);var L=Fe(m,u.line),P=Oc(o,u.line,h),D=new un(L.text,o.options.tabSize,P),G;for(p&&(G=[]);(p||D.pos<u.ch)&&!D.eol();)D.start=D.pos,_=Sy(S,D,P.state),p&&G.push(new wC(D,_,tn(m.mode,P.state)));return p?G:new wC(D,_,P.state)}function xC(o,u){if(o)for(;;){var h=o.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!h)break;o=o.slice(0,h.index)+o.slice(h.index+h[0].length);var p=h[1]?"bgClass":"textClass";u[p]==null?u[p]=h[2]:new RegExp("(?:^|\\s)"+h[2]+"(?:$|\\s)").test(u[p])||(u[p]+=" "+h[2])}return o}function SC(o,u,h,p,m,S,_){var L=h.flattenSpans;L==null&&(L=o.options.flattenSpans);var P=0,D=null,G=new un(u,o.options.tabSize,p),X,ne=o.options.addModeClass&&[null];for(u==""&&xC(yC(h,p.state),S);!G.eol();){if(G.pos>o.options.maxHighlightLength?(L=!1,_&&xy(o,u,p,G.pos),G.pos=u.length,X=null):X=xC(Sy(h,G,p.state,ne),S),ne){var J=ne[0].name;J&&(X="m-"+(X?J+" "+X:J))}if(!L||D!=X){for(;P<G.start;)P=Math.min(G.start,P+5e3),m(P,D);D=X}G.start=G.pos}for(;P<G.pos;){var ae=Math.min(G.pos,P+5e3);m(ae,D),P=ae}}function oj(o,u,h){for(var p,m,S=o.doc,_=h?-1:u-(o.doc.mode.innerMode?1e3:100),L=u;L>_;--L){if(L<=S.first)return S.first;var P=Fe(S,L-1),D=P.stateAfter;if(D&&(!h||L+(D instanceof op?D.lookAhead:0)<=S.modeFrontier))return L;var G=qe(P.text,null,o.options.tabSize);(m==null||p>G)&&(m=L-1,p=G)}return m}function aj(o,u){if(o.modeFrontier=Math.min(o.modeFrontier,u),!(o.highlightFrontier<u-10)){for(var h=o.first,p=u-1;p>h;p--){var m=Fe(o,p).stateAfter;if(m&&(!(m instanceof op)||p+m.lookAhead<u)){h=p+1;break}}o.highlightFrontier=Math.min(o.highlightFrontier,h)}}var EC=!1,_s=!1;function lj(){EC=!0}function uj(){_s=!0}function ap(o,u,h){this.marker=o,this.from=u,this.to=h}function Ic(o,u){if(o)for(var h=0;h<o.length;++h){var p=o[h];if(p.marker==u)return p}}function cj(o,u){for(var h,p=0;p<o.length;++p)o[p]!=u&&(h||(h=[])).push(o[p]);return h}function fj(o,u,h){var p=h&&window.WeakSet&&(h.markedSpans||(h.markedSpans=new WeakSet));p&&o.markedSpans&&p.has(o.markedSpans)?o.markedSpans.push(u):(o.markedSpans=o.markedSpans?o.markedSpans.concat([u]):[u],p&&p.add(o.markedSpans)),u.marker.attachLine(o)}function dj(o,u,h){var p;if(o)for(var m=0;m<o.length;++m){var S=o[m],_=S.marker,L=S.from==null||(_.inclusiveLeft?S.from<=u:S.from<u);if(L||S.from==u&&_.type=="bookmark"&&(!h||!S.marker.insertLeft)){var P=S.to==null||(_.inclusiveRight?S.to>=u:S.to>u);(p||(p=[])).push(new ap(_,S.from,P?null:S.to))}}return p}function pj(o,u,h){var p;if(o)for(var m=0;m<o.length;++m){var S=o[m],_=S.marker,L=S.to==null||(_.inclusiveRight?S.to>=u:S.to>u);if(L||S.from==u&&_.type=="bookmark"&&(!h||S.marker.insertLeft)){var P=S.from==null||(_.inclusiveLeft?S.from<=u:S.from<u);(p||(p=[])).push(new ap(_,P?null:S.from-u,S.to==null?null:S.to-u))}}return p}function Ey(o,u){if(u.full)return null;var h=Lc(o,u.from.line)&&Fe(o,u.from.line).markedSpans,p=Lc(o,u.to.line)&&Fe(o,u.to.line).markedSpans;if(!h&&!p)return null;var m=u.from.ch,S=u.to.ch,_=nt(u.from,u.to)==0,L=dj(h,m,_),P=pj(p,S,_),D=u.text.length==1,G=te(u.text).length+(D?m:0);if(L)for(var X=0;X<L.length;++X){var ne=L[X];if(ne.to==null){var J=Ic(P,ne.marker);J?D&&(ne.to=J.to==null?null:J.to+G):ne.to=m}}if(P)for(var ae=0;ae<P.length;++ae){var de=P[ae];if(de.to!=null&&(de.to+=G),de.from==null){var ye=Ic(L,de.marker);ye||(de.from=G,D&&(L||(L=[])).push(de))}else de.from+=G,D&&(L||(L=[])).push(de)}L&&(L=CC(L)),P&&P!=L&&(P=CC(P));var Ee=[L];if(!D){var _e=u.text.length-2,Ce;if(_e>0&&L)for(var Re=0;Re<L.length;++Re)L[Re].to==null&&(Ce||(Ce=[])).push(new ap(L[Re].marker,null,null));for(var We=0;We<_e;++We)Ee.push(Ce);Ee.push(P)}return Ee}function CC(o){for(var u=0;u<o.length;++u){var h=o[u];h.from!=null&&h.from==h.to&&h.marker.clearWhenEmpty!==!1&&o.splice(u--,1)}return o.length?o:null}function hj(o,u,h){var p=null;if(o.iter(u.line,h.line+1,function(J){if(J.markedSpans)for(var ae=0;ae<J.markedSpans.length;++ae){var de=J.markedSpans[ae].marker;de.readOnly&&(!p||Oe(p,de)==-1)&&(p||(p=[])).push(de)}}),!p)return null;for(var m=[{from:u,to:h}],S=0;S<p.length;++S)for(var _=p[S],L=_.find(0),P=0;P<m.length;++P){var D=m[P];if(!(nt(D.to,L.from)<0||nt(D.from,L.to)>0)){var G=[P,1],X=nt(D.from,L.from),ne=nt(D.to,L.to);(X<0||!_.inclusiveLeft&&!X)&&G.push({from:D.from,to:L.from}),(ne>0||!_.inclusiveRight&&!ne)&&G.push({from:L.to,to:D.to}),m.splice.apply(m,G),P+=G.length-3}}return m}function TC(o){var u=o.markedSpans;if(u){for(var h=0;h<u.length;++h)u[h].marker.detachLine(o);o.markedSpans=null}}function _C(o,u){if(u){for(var h=0;h<u.length;++h)u[h].marker.attachLine(o);o.markedSpans=u}}function lp(o){return o.inclusiveLeft?-1:0}function up(o){return o.inclusiveRight?1:0}function Cy(o,u){var h=o.lines.length-u.lines.length;if(h!=0)return h;var p=o.find(),m=u.find(),S=nt(p.from,m.from)||lp(o)-lp(u);if(S)return-S;var _=nt(p.to,m.to)||up(o)-up(u);return _||u.id-o.id}function AC(o,u){var h=_s&&o.markedSpans,p;if(h)for(var m=void 0,S=0;S<h.length;++S)m=h[S],m.marker.collapsed&&(u?m.from:m.to)==null&&(!p||Cy(p,m.marker)<0)&&(p=m.marker);return p}function kC(o){return AC(o,!0)}function cp(o){return AC(o,!1)}function gj(o,u){var h=_s&&o.markedSpans,p;if(h)for(var m=0;m<h.length;++m){var S=h[m];S.marker.collapsed&&(S.from==null||S.from<u)&&(S.to==null||S.to>u)&&(!p||Cy(p,S.marker)<0)&&(p=S.marker)}return p}function LC(o,u,h,p,m){var S=Fe(o,u),_=_s&&S.markedSpans;if(_)for(var L=0;L<_.length;++L){var P=_[L];if(P.marker.collapsed){var D=P.marker.find(0),G=nt(D.from,h)||lp(P.marker)-lp(m),X=nt(D.to,p)||up(P.marker)-up(m);if(!(G>=0&&X<=0||G<=0&&X>=0)&&(G<=0&&(P.marker.inclusiveRight&&m.inclusiveLeft?nt(D.to,h)>=0:nt(D.to,h)>0)||G>=0&&(P.marker.inclusiveRight&&m.inclusiveLeft?nt(D.from,p)<=0:nt(D.from,p)<0)))return!0}}}function _i(o){for(var u;u=kC(o);)o=u.find(-1,!0).line;return o}function mj(o){for(var u;u=cp(o);)o=u.find(1,!0).line;return o}function vj(o){for(var u,h;u=cp(o);)o=u.find(1,!0).line,(h||(h=[])).push(o);return h}function Ty(o,u){var h=Fe(o,u),p=_i(h);return h==p?u:St(p)}function OC(o,u){if(u>o.lastLine())return u;var h=Fe(o,u),p;if(!ho(o,h))return u;for(;p=cp(h);)h=p.find(1,!0).line;return St(h)+1}function ho(o,u){var h=_s&&u.markedSpans;if(h){for(var p=void 0,m=0;m<h.length;++m)if(p=h[m],!!p.marker.collapsed){if(p.from==null)return!0;if(!p.marker.widgetNode&&p.from==0&&p.marker.inclusiveLeft&&_y(o,u,p))return!0}}}function _y(o,u,h){if(h.to==null){var p=h.marker.find(1,!0);return _y(o,p.line,Ic(p.line.markedSpans,h.marker))}if(h.marker.inclusiveRight&&h.to==u.text.length)return!0;for(var m=void 0,S=0;S<u.markedSpans.length;++S)if(m=u.markedSpans[S],m.marker.collapsed&&!m.marker.widgetNode&&m.from==h.to&&(m.to==null||m.to!=h.from)&&(m.marker.inclusiveLeft||h.marker.inclusiveRight)&&_y(o,u,m))return!0}function As(o){o=_i(o);for(var u=0,h=o.parent,p=0;p<h.lines.length;++p){var m=h.lines[p];if(m==o)break;u+=m.height}for(var S=h.parent;S;h=S,S=h.parent)for(var _=0;_<S.children.length;++_){var L=S.children[_];if(L==h)break;u+=L.height}return u}function fp(o){if(o.height==0)return 0;for(var u=o.text.length,h,p=o;h=kC(p);){var m=h.find(0,!0);p=m.from.line,u+=m.from.ch-m.to.ch}for(p=o;h=cp(p);){var S=h.find(0,!0);u-=p.text.length-S.from.ch,p=S.to.line,u+=p.text.length-S.to.ch}return u}function Ay(o){var u=o.display,h=o.doc;u.maxLine=Fe(h,h.first),u.maxLineLength=fp(u.maxLine),u.maxLineChanged=!0,h.iter(function(p){var m=fp(p);m>u.maxLineLength&&(u.maxLineLength=m,u.maxLine=p)})}var Tl=function(o,u,h){this.text=o,_C(this,u),this.height=h?h(this):1};Tl.prototype.lineNo=function(){return St(this)},xe(Tl);function yj(o,u,h,p){o.text=u,o.stateAfter&&(o.stateAfter=null),o.styles&&(o.styles=null),o.order!=null&&(o.order=null),TC(o),_C(o,h);var m=p?p(o):1;m!=o.height&&ns(o,m)}function wj(o){o.parent=null,TC(o)}var bj={},xj={};function IC(o,u){if(!o||/^\s*$/.test(o))return null;var h=u.addModeClass?xj:bj;return h[o]||(h[o]=o.replace(/\S+/g,"cm-$&"))}function PC(o,u){var h=q("span",null,null,d?"padding-right: .1px":null),p={pre:q("pre",[h],"CodeMirror-line"),content:h,col:0,pos:0,cm:o,trailingSpace:!1,splitSpaces:o.getOption("lineWrapping")};u.measure={};for(var m=0;m<=(u.rest?u.rest.length:0);m++){var S=m?u.rest[m-1]:u.line,_=void 0;p.pos=0,p.addToken=Ej,er(o.display.measure)&&(_=In(S,o.doc.direction))&&(p.addToken=Tj(p.addToken,_)),p.map=[];var L=u!=o.display.externalMeasured&&St(S);_j(S,p,vC(o,S,L)),S.styleClasses&&(S.styleClasses.bgClass&&(p.bgClass=fe(S.styleClasses.bgClass,p.bgClass||"")),S.styleClasses.textClass&&(p.textClass=fe(S.styleClasses.textClass,p.textClass||""))),p.map.length==0&&p.map.push(0,0,p.content.appendChild(At(o.display.measure))),m==0?(u.measure.map=p.map,u.measure.cache={}):((u.measure.maps||(u.measure.maps=[])).push(p.map),(u.measure.caches||(u.measure.caches=[])).push({}))}if(d){var P=p.content.lastChild;(/\bcm-tab\b/.test(P.className)||P.querySelector&&P.querySelector(".cm-tab"))&&(p.content.className="cm-tab-wrap-hack")}return qt(o,"renderLine",o,u.line,p.pre),p.pre.className&&(p.textClass=fe(p.pre.className,p.textClass||"")),p}function Sj(o){var u=M("span","•","cm-invalidchar");return u.title="\\u"+o.charCodeAt(0).toString(16),u.setAttribute("aria-label",u.title),u}function Ej(o,u,h,p,m,S,_){if(u){var L=o.splitSpaces?Cj(u,o.trailingSpace):u,P=o.cm.state.specialChars,D=!1,G;if(!P.test(u))o.col+=u.length,G=document.createTextNode(L),o.map.push(o.pos,o.pos+u.length,G),c&&f<9&&(D=!0),o.pos+=u.length;else{G=document.createDocumentFragment();for(var X=0;;){P.lastIndex=X;var ne=P.exec(u),J=ne?ne.index-X:u.length-X;if(J){var ae=document.createTextNode(L.slice(X,X+J));c&&f<9?G.appendChild(M("span",[ae])):G.appendChild(ae),o.map.push(o.pos,o.pos+J,ae),o.col+=J,o.pos+=J}if(!ne)break;X+=J+1;var de=void 0;if(ne[0]=="	"){var ye=o.cm.options.tabSize,Ee=ye-o.col%ye;de=G.appendChild(M("span",Q(Ee),"cm-tab")),de.setAttribute("role","presentation"),de.setAttribute("cm-text","	"),o.col+=Ee}else ne[0]=="\r"||ne[0]==`
122`?(de=G.appendChild(M("span",ne[0]=="\r"?"␍":"␤","cm-invalidchar")),de.setAttribute("cm-text",ne[0]),o.col+=1):(de=o.cm.options.specialCharPlaceholder(ne[0]),de.setAttribute("cm-text",ne[0]),c&&f<9?G.appendChild(M("span",[de])):G.appendChild(de),o.col+=1);o.map.push(o.pos,o.pos+1,de),o.pos++}}if(o.trailingSpace=L.charCodeAt(u.length-1)==32,h||p||m||D||S||_){var _e=h||"";p&&(_e+=p),m&&(_e+=m);var Ce=M("span",[G],_e,S);if(_)for(var Re in _)_.hasOwnProperty(Re)&&Re!="style"&&Re!="class"&&Ce.setAttribute(Re,_[Re]);return o.content.appendChild(Ce)}o.content.appendChild(G)}}function Cj(o,u){if(o.length>1&&!/  /.test(o))return o;for(var h=u,p="",m=0;m<o.length;m++){var S=o.charAt(m);S==" "&&h&&(m==o.length-1||o.charCodeAt(m+1)==32)&&(S=" "),p+=S,h=S==" "}return p}function Tj(o,u){return function(h,p,m,S,_,L,P){m=m?m+" cm-force-border":"cm-force-border";for(var D=h.pos,G=D+p.length;;){for(var X=void 0,ne=0;ne<u.length&&(X=u[ne],!(X.to>D&&X.from<=D));ne++);if(X.to>=G)return o(h,p,m,S,_,L,P);o(h,p.slice(0,X.to-D),m,S,null,L,P),S=null,p=p.slice(X.to-D),D=X.to}}}function RC(o,u,h,p){var m=!p&&h.widgetNode;m&&o.map.push(o.pos,o.pos+u,m),!p&&o.cm.display.input.needsContentAttribute&&(m||(m=o.content.appendChild(document.createElement("span"))),m.setAttribute("cm-marker",h.id)),m&&(o.cm.display.input.setUneditable(m),o.content.appendChild(m)),o.pos+=u,o.trailingSpace=!1}function _j(o,u,h){var p=o.markedSpans,m=o.text,S=0;if(!p){for(var _=1;_<h.length;_+=2)u.addToken(u,m.slice(S,S=h[_]),IC(h[_+1],u.cm.options));return}for(var L=m.length,P=0,D=1,G="",X,ne,J=0,ae,de,ye,Ee,_e;;){if(J==P){ae=de=ye=ne="",_e=null,Ee=null,J=1/0;for(var Ce=[],Re=void 0,We=0;We<p.length;++We){var Be=p[We],at=Be.marker;if(at.type=="bookmark"&&Be.from==P&&at.widgetNode)Ce.push(at);else if(Be.from<=P&&(Be.to==null||Be.to>P||at.collapsed&&Be.to==P&&Be.from==P)){if(Be.to!=null&&Be.to!=P&&J>Be.to&&(J=Be.to,de=""),at.className&&(ae+=" "+at.className),at.css&&(ne=(ne?ne+";":"")+at.css),at.startStyle&&Be.from==P&&(ye+=" "+at.startStyle),at.endStyle&&Be.to==J&&(Re||(Re=[])).push(at.endStyle,Be.to),at.title&&((_e||(_e={})).title=at.title),at.attributes)for(var kt in at.attributes)(_e||(_e={}))[kt]=at.attributes[kt];at.collapsed&&(!Ee||Cy(Ee.marker,at)<0)&&(Ee=Be)}else Be.from>P&&J>Be.from&&(J=Be.from)}if(Re)for(var xn=0;xn<Re.length;xn+=2)Re[xn+1]==J&&(de+=" "+Re[xn]);if(!Ee||Ee.from==P)for(var Ht=0;Ht<Ce.length;++Ht)RC(u,0,Ce[Ht]);if(Ee&&(Ee.from||0)==P){if(RC(u,(Ee.to==null?L+1:Ee.to)-P,Ee.marker,Ee.from==null),Ee.to==null)return;Ee.to==P&&(Ee=!1)}}if(P>=L)break;for(var vr=Math.min(L,J);;){if(G){var rr=P+G.length;if(!Ee){var cn=rr>vr?G.slice(0,vr-P):G;u.addToken(u,cn,X?X+ae:ae,ye,P+cn.length==J?de:"",ne,_e)}if(rr>=vr){G=G.slice(vr-P),P=vr;break}P=rr,ye=""}G=m.slice(S,S=h[D++]),X=IC(h[D++],u.cm.options)}}}function MC(o,u,h){this.line=u,this.rest=vj(u),this.size=this.rest?St(te(this.rest))-h+1:1,this.node=this.text=null,this.hidden=ho(o,u)}function dp(o,u,h){for(var p=[],m,S=u;S<h;S=m){var _=new MC(o.doc,Fe(o.doc,S),S);m=S+_.size,p.push(_)}return p}var _l=null;function Aj(o){_l?_l.ops.push(o):o.ownsGroup=_l={ops:[o],delayedCallbacks:[]}}function kj(o){var u=o.delayedCallbacks,h=0;do{for(;h<u.length;h++)u[h].call(null);for(var p=0;p<o.ops.length;p++){var m=o.ops[p];if(m.cursorActivityHandlers)for(;m.cursorActivityCalled<m.cursorActivityHandlers.length;)m.cursorActivityHandlers[m.cursorActivityCalled++].call(null,m.cm)}}while(h<u.length)}function Lj(o,u){var h=o.ownsGroup;if(h)try{kj(h)}finally{_l=null,u(h)}}var Pc=null;function yn(o,u){var h=_c(o,u);if(h.length){var p=Array.prototype.slice.call(arguments,2),m;_l?m=_l.delayedCallbacks:Pc?m=Pc:(m=Pc=[],setTimeout(Oj,0));for(var S=function(L){m.push(function(){return h[L].apply(null,p)})},_=0;_<h.length;++_)S(_)}}function Oj(){var o=Pc;Pc=null;for(var u=0;u<o.length;++u)o[u]()}function DC(o,u,h,p){for(var m=0;m<u.changes.length;m++){var S=u.changes[m];S=="text"?Pj(o,u):S=="gutter"?$C(o,u,h,p):S=="class"?ky(o,u):S=="widget"&&Rj(o,u,p)}u.changes=null}function Rc(o){return o.node==o.text&&(o.node=M("div",null,null,"position: relative"),o.text.parentNode&&o.text.parentNode.replaceChild(o.node,o.text),o.node.appendChild(o.text),c&&f<8&&(o.node.style.zIndex=2)),o.node}function Ij(o,u){var h=u.bgClass?u.bgClass+" "+(u.line.bgClass||""):u.line.bgClass;if(h&&(h+=" CodeMirror-linebackground"),u.background)h?u.background.className=h:(u.background.parentNode.removeChild(u.background),u.background=null);else if(h){var p=Rc(u);u.background=p.insertBefore(M("div",null,h),p.firstChild),o.display.input.setUneditable(u.background)}}function NC(o,u){var h=o.display.externalMeasured;return h&&h.line==u.line?(o.display.externalMeasured=null,u.measure=h.measure,h.built):PC(o,u)}function Pj(o,u){var h=u.text.className,p=NC(o,u);u.text==u.node&&(u.node=p.pre),u.text.parentNode.replaceChild(p.pre,u.text),u.text=p.pre,p.bgClass!=u.bgClass||p.textClass!=u.textClass?(u.bgClass=p.bgClass,u.textClass=p.textClass,ky(o,u)):h&&(u.text.className=h)}function ky(o,u){Ij(o,u),u.line.wrapClass?Rc(u).className=u.line.wrapClass:u.node!=u.text&&(u.node.className="");var h=u.textClass?u.textClass+" "+(u.line.textClass||""):u.line.textClass;u.text.className=h||""}function $C(o,u,h,p){if(u.gutter&&(u.node.removeChild(u.gutter),u.gutter=null),u.gutterBackground&&(u.node.removeChild(u.gutterBackground),u.gutterBackground=null),u.line.gutterClass){var m=Rc(u);u.gutterBackground=M("div",null,"CodeMirror-gutter-background "+u.line.gutterClass,"left: "+(o.options.fixedGutter?p.fixedPos:-p.gutterTotalWidth)+"px; width: "+p.gutterTotalWidth+"px"),o.display.input.setUneditable(u.gutterBackground),m.insertBefore(u.gutterBackground,u.text)}var S=u.line.gutterMarkers;if(o.options.lineNumbers||S){var _=Rc(u),L=u.gutter=M("div",null,"CodeMirror-gutter-wrapper","left: "+(o.options.fixedGutter?p.fixedPos:-p.gutterTotalWidth)+"px");if(L.setAttribute("aria-hidden","true"),o.display.input.setUneditable(L),_.insertBefore(L,u.text),u.line.gutterClass&&(L.className+=" "+u.line.gutterClass),o.options.lineNumbers&&(!S||!S["CodeMirror-linenumbers"])&&(u.lineNumber=L.appendChild(M("div",yy(o.options,h),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+p.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+o.display.lineNumInnerWidth+"px"))),S)for(var P=0;P<o.display.gutterSpecs.length;++P){var D=o.display.gutterSpecs[P].className,G=S.hasOwnProperty(D)&&S[D];G&&L.appendChild(M("div",[G],"CodeMirror-gutter-elt","left: "+p.gutterLeft[D]+"px; width: "+p.gutterWidth[D]+"px"))}}}function Rj(o,u,h){u.alignable&&(u.alignable=null);for(var p=H("CodeMirror-linewidget"),m=u.node.firstChild,S=void 0;m;m=S)S=m.nextSibling,p.test(m.className)&&u.node.removeChild(m);FC(o,u,h)}function Mj(o,u,h,p){var m=NC(o,u);return u.text=u.node=m.pre,m.bgClass&&(u.bgClass=m.bgClass),m.textClass&&(u.textClass=m.textClass),ky(o,u),$C(o,u,h,p),FC(o,u,p),u.node}function FC(o,u,h){if(zC(o,u.line,u,h,!0),u.rest)for(var p=0;p<u.rest.length;p++)zC(o,u.rest[p],u,h,!1)}function zC(o,u,h,p,m){if(u.widgets)for(var S=Rc(h),_=0,L=u.widgets;_<L.length;++_){var P=L[_],D=M("div",[P.node],"CodeMirror-linewidget"+(P.className?" "+P.className:""));P.handleMouseEvents||D.setAttribute("cm-ignore-events","true"),Dj(P,D,h,p),o.display.input.setUneditable(D),m&&P.above?S.insertBefore(D,h.gutter||h.text):S.appendChild(D),yn(P,"redraw")}}function Dj(o,u,h,p){if(o.noHScroll){(h.alignable||(h.alignable=[])).push(u);var m=p.wrapperWidth;u.style.left=p.fixedPos+"px",o.coverGutter||(m-=p.gutterTotalWidth,u.style.paddingLeft=p.gutterTotalWidth+"px"),u.style.width=m+"px"}o.coverGutter&&(u.style.zIndex=5,u.style.position="relative",o.noHScroll||(u.style.marginLeft=-p.gutterTotalWidth+"px"))}function Mc(o){if(o.height!=null)return o.height;var u=o.doc.cm;if(!u)return 0;if(!B(document.body,o.node)){var h="position: relative;";o.coverGutter&&(h+="margin-left: -"+u.display.gutters.offsetWidth+"px;"),o.noHScroll&&(h+="width: "+u.display.wrapper.clientWidth+"px;"),z(u.display.measure,M("div",[o.node],null,h))}return o.height=o.node.parentNode.offsetHeight}function ks(o,u){for(var h=He(u);h!=o.wrapper;h=h.parentNode)if(!h||h.nodeType==1&&h.getAttribute("cm-ignore-events")=="true"||h.parentNode==o.sizer&&h!=o.mover)return!0}function pp(o){return o.lineSpace.offsetTop}function Ly(o){return o.mover.offsetHeight-o.lineSpace.offsetHeight}function BC(o){if(o.cachedPaddingH)return o.cachedPaddingH;var u=z(o.measure,M("pre","x","CodeMirror-line-like")),h=window.getComputedStyle?window.getComputedStyle(u):u.currentStyle,p={left:parseInt(h.paddingLeft),right:parseInt(h.paddingRight)};return!isNaN(p.left)&&!isNaN(p.right)&&(o.cachedPaddingH=p),p}function is(o){return $e-o.display.nativeBarWidth}function ba(o){return o.display.scroller.clientWidth-is(o)-o.display.barWidth}function Oy(o){return o.display.scroller.clientHeight-is(o)-o.display.barHeight}function Nj(o,u,h){var p=o.options.lineWrapping,m=p&&ba(o);if(!u.measure.heights||p&&u.measure.width!=m){var S=u.measure.heights=[];if(p){u.measure.width=m;for(var _=u.text.firstChild.getClientRects(),L=0;L<_.length-1;L++){var P=_[L],D=_[L+1];Math.abs(P.bottom-D.bottom)>2&&S.push((P.bottom+D.top)/2-h.top)}}S.push(h.bottom-h.top)}}function jC(o,u,h){if(o.line==u)return{map:o.measure.map,cache:o.measure.cache};if(o.rest){for(var p=0;p<o.rest.length;p++)if(o.rest[p]==u)return{map:o.measure.maps[p],cache:o.measure.caches[p]};for(var m=0;m<o.rest.length;m++)if(St(o.rest[m])>h)return{map:o.measure.maps[m],cache:o.measure.caches[m],before:!0}}}function $j(o,u){u=_i(u);var h=St(u),p=o.display.externalMeasured=new MC(o.doc,u,h);p.lineN=h;var m=p.built=PC(o,p);return p.text=m.pre,z(o.display.lineMeasure,m.pre),p}function UC(o,u,h,p){return ss(o,Al(o,u),h,p)}function Iy(o,u){if(u>=o.display.viewFrom&&u<o.display.viewTo)return o.display.view[Ea(o,u)];var h=o.display.externalMeasured;if(h&&u>=h.lineN&&u<h.lineN+h.size)return h}function Al(o,u){var h=St(u),p=Iy(o,h);p&&!p.text?p=null:p&&p.changes&&(DC(o,p,h,Ny(o)),o.curOp.forceUpdate=!0),p||(p=$j(o,u));var m=jC(p,u,h);return{line:u,view:p,rect:null,map:m.map,cache:m.cache,before:m.before,hasHeights:!1}}function ss(o,u,h,p,m){u.before&&(h=-1);var S=h+(p||""),_;return u.cache.hasOwnProperty(S)?_=u.cache[S]:(u.rect||(u.rect=u.view.text.getBoundingClientRect()),u.hasHeights||(Nj(o,u.view,u.rect),u.hasHeights=!0),_=zj(o,u,h,p),_.bogus||(u.cache[S]=_)),{left:_.left,right:_.right,top:m?_.rtop:_.top,bottom:m?_.rbottom:_.bottom}}var HC={left:0,right:0,top:0,bottom:0};function WC(o,u,h){for(var p,m,S,_,L,P,D=0;D<o.length;D+=3)if(L=o[D],P=o[D+1],u<L?(m=0,S=1,_="left"):u<P?(m=u-L,S=m+1):(D==o.length-3||u==P&&o[D+3]>u)&&(S=P-L,m=S-1,u>=P&&(_="right")),m!=null){if(p=o[D+2],L==P&&h==(p.insertLeft?"left":"right")&&(_=h),h=="left"&&m==0)for(;D&&o[D-2]==o[D-3]&&o[D-1].insertLeft;)p=o[(D-=3)+2],_="left";if(h=="right"&&m==P-L)for(;D<o.length-3&&o[D+3]==o[D+4]&&!o[D+5].insertLeft;)p=o[(D+=3)+2],_="right";break}return{node:p,start:m,end:S,collapse:_,coverStart:L,coverEnd:P}}function Fj(o,u){var h=HC;if(u=="left")for(var p=0;p<o.length&&(h=o[p]).left==h.right;p++);else for(var m=o.length-1;m>=0&&(h=o[m]).left==h.right;m--);return h}function zj(o,u,h,p){var m=WC(u.map,h,p),S=m.node,_=m.start,L=m.end,P=m.collapse,D;if(S.nodeType==3){for(var G=0;G<4;G++){for(;_&&Zn(u.line.text.charAt(m.coverStart+_));)--_;for(;m.coverStart+L<m.coverEnd&&Zn(u.line.text.charAt(m.coverStart+L));)++L;if(c&&f<9&&_==0&&L==m.coverEnd-m.coverStart?D=S.parentNode.getBoundingClientRect():D=Fj(U(S,_,L).getClientRects(),p),D.left||D.right||_==0)break;L=_,_=_-1,P="right"}c&&f<11&&(D=Bj(o.display.measure,D))}else{_>0&&(P=p="right");var X;o.options.lineWrapping&&(X=S.getClientRects()).length>1?D=X[p=="right"?X.length-1:0]:D=S.getBoundingClientRect()}if(c&&f<9&&!_&&(!D||!D.left&&!D.right)){var ne=S.parentNode.getClientRects()[0];ne?D={left:ne.left,right:ne.left+Ll(o.display),top:ne.top,bottom:ne.bottom}:D=HC}for(var J=D.top-u.rect.top,ae=D.bottom-u.rect.top,de=(J+ae)/2,ye=u.view.measure.heights,Ee=0;Ee<ye.length-1&&!(de<ye[Ee]);Ee++);var _e=Ee?ye[Ee-1]:0,Ce=ye[Ee],Re={left:(P=="right"?D.right:D.left)-u.rect.left,right:(P=="left"?D.left:D.right)-u.rect.left,top:_e,bottom:Ce};return!D.left&&!D.right&&(Re.bogus=!0),o.options.singleCursorHeightPerLine||(Re.rtop=J,Re.rbottom=ae),Re}function Bj(o,u){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!es(o))return u;var h=screen.logicalXDPI/screen.deviceXDPI,p=screen.logicalYDPI/screen.deviceYDPI;return{left:u.left*h,right:u.right*h,top:u.top*p,bottom:u.bottom*p}}function VC(o){if(o.measure&&(o.measure.cache={},o.measure.heights=null,o.rest))for(var u=0;u<o.rest.length;u++)o.measure.caches[u]={}}function KC(o){o.display.externalMeasure=null,F(o.display.lineMeasure);for(var u=0;u<o.display.view.length;u++)VC(o.display.view[u])}function Dc(o){KC(o),o.display.cachedCharWidth=o.display.cachedTextHeight=o.display.cachedPaddingH=null,o.options.lineWrapping||(o.display.maxLineChanged=!0),o.display.lineNumChars=null}function qC(o){return v&&C?-(o.body.getBoundingClientRect().left-parseInt(getComputedStyle(o.body).marginLeft)):o.defaultView.pageXOffset||(o.documentElement||o.body).scrollLeft}function GC(o){return v&&C?-(o.body.getBoundingClientRect().top-parseInt(getComputedStyle(o.body).marginTop)):o.defaultView.pageYOffset||(o.documentElement||o.body).scrollTop}function Py(o){var u=_i(o),h=u.widgets,p=0;if(h)for(var m=0;m<h.length;++m)h[m].above&&(p+=Mc(h[m]));return p}function hp(o,u,h,p,m){if(!m){var S=Py(u);h.top+=S,h.bottom+=S}if(p=="line")return h;p||(p="local");var _=As(u);if(p=="local"?_+=pp(o.display):_-=o.display.viewOffset,p=="page"||p=="window"){var L=o.display.lineSpace.getBoundingClientRect();_+=L.top+(p=="window"?0:GC(N(o)));var P=L.left+(p=="window"?0:qC(N(o)));h.left+=P,h.right+=P}return h.top+=_,h.bottom+=_,h}function YC(o,u,h){if(h=="div")return u;var p=u.left,m=u.top;if(h=="page")p-=qC(N(o)),m-=GC(N(o));else if(h=="local"||!h){var S=o.display.sizer.getBoundingClientRect();p+=S.left,m+=S.top}var _=o.display.lineSpace.getBoundingClientRect();return{left:p-_.left,top:m-_.top}}function gp(o,u,h,p,m){return p||(p=Fe(o.doc,u.line)),hp(o,p,UC(o,p,u.ch,m),h)}function Ai(o,u,h,p,m,S){p=p||Fe(o.doc,u.line),m||(m=Al(o,p));function _(ae,de){var ye=ss(o,m,ae,de?"right":"left",S);return de?ye.left=ye.right:ye.right=ye.left,hp(o,p,ye,h)}var L=In(p,o.doc.direction),P=u.ch,D=u.sticky;if(P>=p.text.length?(P=p.text.length,D="before"):P<=0&&(P=0,D="after"),!L)return _(D=="before"?P-1:P,D=="before");function G(ae,de,ye){var Ee=L[de],_e=Ee.level==1;return _(ye?ae-1:ae,_e!=ye)}var X=Hn(L,P,D),ne=Un,J=G(P,X,D=="before");return ne!=null&&(J.other=G(P,ne,D!="before")),J}function XC(o,u){var h=0;u=rt(o.doc,u),o.options.lineWrapping||(h=Ll(o.display)*u.ch);var p=Fe(o.doc,u.line),m=As(p)+pp(o.display);return{left:h,right:h,top:m,bottom:m+p.height}}function Ry(o,u,h,p,m){var S=he(o,u,h);return S.xRel=m,p&&(S.outside=p),S}function My(o,u,h){var p=o.doc;if(h+=o.display.viewOffset,h<0)return Ry(p.first,0,null,-1,-1);var m=wa(p,h),S=p.first+p.size-1;if(m>S)return Ry(p.first+p.size-1,Fe(p,S).text.length,null,1,1);u<0&&(u=0);for(var _=Fe(p,m);;){var L=jj(o,_,m,u,h),P=gj(_,L.ch+(L.xRel>0||L.outside>0?1:0));if(!P)return L;var D=P.find(1);if(D.line==m)return D;_=Fe(p,m=D.line)}}function QC(o,u,h,p){p-=Py(u);var m=u.text.length,S=jn(function(_){return ss(o,h,_-1).bottom<=p},m,0);return m=jn(function(_){return ss(o,h,_).top>p},S,m),{begin:S,end:m}}function JC(o,u,h,p){h||(h=Al(o,u));var m=hp(o,u,ss(o,h,p),"line").top;return QC(o,u,h,m)}function Dy(o,u,h,p){return o.bottom<=h?!1:o.top>h?!0:(p?o.left:o.right)>u}function jj(o,u,h,p,m){m-=As(u);var S=Al(o,u),_=Py(u),L=0,P=u.text.length,D=!0,G=In(u,o.doc.direction);if(G){var X=(o.options.lineWrapping?Hj:Uj)(o,u,h,S,G,p,m);D=X.level!=1,L=D?X.from:X.to-1,P=D?X.to:X.from-1}var ne=null,J=null,ae=jn(function(We){var Be=ss(o,S,We);return Be.top+=_,Be.bottom+=_,Dy(Be,p,m,!1)?(Be.top<=m&&Be.left<=p&&(ne=We,J=Be),!0):!1},L,P),de,ye,Ee=!1;if(J){var _e=p-J.left<J.right-p,Ce=_e==D;ae=ne+(Ce?0:1),ye=Ce?"after":"before",de=_e?J.left:J.right}else{!D&&(ae==P||ae==L)&&ae++,ye=ae==0?"after":ae==u.text.length?"before":ss(o,S,ae-(D?1:0)).bottom+_<=m==D?"after":"before";var Re=Ai(o,he(h,ae,ye),"line",u,S);de=Re.left,Ee=m<Re.top?-1:m>=Re.bottom?1:0}return ae=Or(u.text,ae,1),Ry(h,ae,ye,Ee,p-de)}function Uj(o,u,h,p,m,S,_){var L=jn(function(X){var ne=m[X],J=ne.level!=1;return Dy(Ai(o,he(h,J?ne.to:ne.from,J?"before":"after"),"line",u,p),S,_,!0)},0,m.length-1),P=m[L];if(L>0){var D=P.level!=1,G=Ai(o,he(h,D?P.from:P.to,D?"after":"before"),"line",u,p);Dy(G,S,_,!0)&&G.top>_&&(P=m[L-1])}return P}function Hj(o,u,h,p,m,S,_){var L=QC(o,u,p,_),P=L.begin,D=L.end;/\s/.test(u.text.charAt(D-1))&&D--;for(var G=null,X=null,ne=0;ne<m.length;ne++){var J=m[ne];if(!(J.from>=D||J.to<=P)){var ae=J.level!=1,de=ss(o,p,ae?Math.min(D,J.to)-1:Math.max(P,J.from)).right,ye=de<S?S-de+1e9:de-S;(!G||X>ye)&&(G=J,X=ye)}}return G||(G=m[m.length-1]),G.from<P&&(G={from:P,to:G.to,level:G.level}),G.to>D&&(G={from:G.from,to:D,level:G.level}),G}var xa;function kl(o){if(o.cachedTextHeight!=null)return o.cachedTextHeight;if(xa==null){xa=M("pre",null,"CodeMirror-line-like");for(var u=0;u<49;++u)xa.appendChild(document.createTextNode("x")),xa.appendChild(M("br"));xa.appendChild(document.createTextNode("x"))}z(o.measure,xa);var h=xa.offsetHeight/50;return h>3&&(o.cachedTextHeight=h),F(o.measure),h||1}function Ll(o){if(o.cachedCharWidth!=null)return o.cachedCharWidth;var u=M("span","xxxxxxxxxx"),h=M("pre",[u],"CodeMirror-line-like");z(o.measure,h);var p=u.getBoundingClientRect(),m=(p.right-p.left)/10;return m>2&&(o.cachedCharWidth=m),m||10}function Ny(o){for(var u=o.display,h={},p={},m=u.gutters.clientLeft,S=u.gutters.firstChild,_=0;S;S=S.nextSibling,++_){var L=o.display.gutterSpecs[_].className;h[L]=S.offsetLeft+S.clientLeft+m,p[L]=S.clientWidth}return{fixedPos:$y(u),gutterTotalWidth:u.gutters.offsetWidth,gutterLeft:h,gutterWidth:p,wrapperWidth:u.wrapper.clientWidth}}function $y(o){return o.scroller.getBoundingClientRect().left-o.sizer.getBoundingClientRect().left}function ZC(o){var u=kl(o.display),h=o.options.lineWrapping,p=h&&Math.max(5,o.display.scroller.clientWidth/Ll(o.display)-3);return function(m){if(ho(o.doc,m))return 0;var S=0;if(m.widgets)for(var _=0;_<m.widgets.length;_++)m.widgets[_].height&&(S+=m.widgets[_].height);return h?S+(Math.ceil(m.text.length/p)||1)*u:S+u}}function Fy(o){var u=o.doc,h=ZC(o);u.iter(function(p){var m=h(p);m!=p.height&&ns(p,m)})}function Sa(o,u,h,p){var m=o.display;if(!h&&He(u).getAttribute("cm-not-content")=="true")return null;var S,_,L=m.lineSpace.getBoundingClientRect();try{S=u.clientX-L.left,_=u.clientY-L.top}catch{return null}var P=My(o,S,_),D;if(p&&P.xRel>0&&(D=Fe(o.doc,P.line).text).length==P.ch){var G=qe(D,D.length,o.options.tabSize)-D.length;P=he(P.line,Math.max(0,Math.round((S-BC(o.display).left)/Ll(o.display))-G))}return P}function Ea(o,u){if(u>=o.display.viewTo||(u-=o.display.viewFrom,u<0))return null;for(var h=o.display.view,p=0;p<h.length;p++)if(u-=h[p].size,u<0)return p}function tr(o,u,h,p){u==null&&(u=o.doc.first),h==null&&(h=o.doc.first+o.doc.size),p||(p=0);var m=o.display;if(p&&h<m.viewTo&&(m.updateLineNumbers==null||m.updateLineNumbers>u)&&(m.updateLineNumbers=u),o.curOp.viewChanged=!0,u>=m.viewTo)_s&&Ty(o.doc,u)<m.viewTo&&mo(o);else if(h<=m.viewFrom)_s&&OC(o.doc,h+p)>m.viewFrom?mo(o):(m.viewFrom+=p,m.viewTo+=p);else if(u<=m.viewFrom&&h>=m.viewTo)mo(o);else if(u<=m.viewFrom){var S=mp(o,h,h+p,1);S?(m.view=m.view.slice(S.index),m.viewFrom=S.lineN,m.viewTo+=p):mo(o)}else if(h>=m.viewTo){var _=mp(o,u,u,-1);_?(m.view=m.view.slice(0,_.index),m.viewTo=_.lineN):mo(o)}else{var L=mp(o,u,u,-1),P=mp(o,h,h+p,1);L&&P?(m.view=m.view.slice(0,L.index).concat(dp(o,L.lineN,P.lineN)).concat(m.view.slice(P.index)),m.viewTo+=p):mo(o)}var D=m.externalMeasured;D&&(h<D.lineN?D.lineN+=p:u<D.lineN+D.size&&(m.externalMeasured=null))}function go(o,u,h){o.curOp.viewChanged=!0;var p=o.display,m=o.display.externalMeasured;if(m&&u>=m.lineN&&u<m.lineN+m.size&&(p.externalMeasured=null),!(u<p.viewFrom||u>=p.viewTo)){var S=p.view[Ea(o,u)];if(S.node!=null){var _=S.changes||(S.changes=[]);Oe(_,h)==-1&&_.push(h)}}}function mo(o){o.display.viewFrom=o.display.viewTo=o.doc.first,o.display.view=[],o.display.viewOffset=0}function mp(o,u,h,p){var m=Ea(o,u),S,_=o.display.view;if(!_s||h==o.doc.first+o.doc.size)return{index:m,lineN:h};for(var L=o.display.viewFrom,P=0;P<m;P++)L+=_[P].size;if(L!=u){if(p>0){if(m==_.length-1)return null;S=L+_[m].size-u,m++}else S=L-u;u+=S,h+=S}for(;Ty(o.doc,h)!=h;){if(m==(p<0?0:_.length-1))return null;h+=p*_[m-(p<0?1:0)].size,m+=p}return{index:m,lineN:h}}function Wj(o,u,h){var p=o.display,m=p.view;m.length==0||u>=p.viewTo||h<=p.viewFrom?(p.view=dp(o,u,h),p.viewFrom=u):(p.viewFrom>u?p.view=dp(o,u,p.viewFrom).concat(p.view):p.viewFrom<u&&(p.view=p.view.slice(Ea(o,u))),p.viewFrom=u,p.viewTo<h?p.view=p.view.concat(dp(o,p.viewTo,h)):p.viewTo>h&&(p.view=p.view.slice(0,Ea(o,h)))),p.viewTo=h}function eT(o){for(var u=o.display.view,h=0,p=0;p<u.length;p++){var m=u[p];!m.hidden&&(!m.node||m.changes)&&++h}return h}function Nc(o){o.display.input.showSelection(o.display.input.prepareSelection())}function tT(o,u){u===void 0&&(u=!0);var h=o.doc,p={},m=p.cursors=document.createDocumentFragment(),S=p.selection=document.createDocumentFragment(),_=o.options.$customCursor;_&&(u=!0);for(var L=0;L<h.sel.ranges.length;L++)if(!(!u&&L==h.sel.primIndex)){var P=h.sel.ranges[L];if(!(P.from().line>=o.display.viewTo||P.to().line<o.display.viewFrom)){var D=P.empty();if(_){var G=_(o,P);G&&zy(o,G,m)}else(D||o.options.showCursorWhenSelecting)&&zy(o,P.head,m);D||Vj(o,P,S)}}return p}function zy(o,u,h){var p=Ai(o,u,"div",null,null,!o.options.singleCursorHeightPerLine),m=h.appendChild(M("div"," ","CodeMirror-cursor"));if(m.style.left=p.left+"px",m.style.top=p.top+"px",m.style.height=Math.max(0,p.bottom-p.top)*o.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(o.getWrapperElement().className)){var S=gp(o,u,"div",null,null),_=S.right-S.left;m.style.width=(_>0?_:o.defaultCharWidth())+"px"}if(p.other){var L=h.appendChild(M("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));L.style.display="",L.style.left=p.other.left+"px",L.style.top=p.other.top+"px",L.style.height=(p.other.bottom-p.other.top)*.85+"px"}}function vp(o,u){return o.top-u.top||o.left-u.left}function Vj(o,u,h){var p=o.display,m=o.doc,S=document.createDocumentFragment(),_=BC(o.display),L=_.left,P=Math.max(p.sizerWidth,ba(o)-p.sizer.offsetLeft)-_.right,D=m.direction=="ltr";function G(Ce,Re,We,Be){Re<0&&(Re=0),Re=Math.round(Re),Be=Math.round(Be),S.appendChild(M("div",null,"CodeMirror-selected","position: absolute; left: "+Ce+`px;
123                             top: `+Re+"px; width: "+(We??P-Ce)+`px;
124                             height: `+(Be-Re)+"px"))}function X(Ce,Re,We){var Be=Fe(m,Ce),at=Be.text.length,kt,xn;function Ht(cn,ir){return gp(o,he(Ce,cn),"div",Be,ir)}function vr(cn,ir,An){var hn=JC(o,Be,null,cn),fn=ir=="ltr"==(An=="after")?"left":"right",Gt=An=="after"?hn.begin:hn.end-(/\s/.test(Be.text.charAt(hn.end-1))?2:1);return Ht(Gt,fn)[fn]}var rr=In(Be,m.direction);return Ts(rr,Re||0,We??at,function(cn,ir,An,hn){var fn=An=="ltr",Gt=Ht(cn,fn?"left":"right"),sr=Ht(ir-1,fn?"right":"left"),Ul=Re==null&&cn==0,So=We==null&&ir==at,Rn=hn==0,os=!rr||hn==rr.length-1;if(sr.top-Gt.top<=3){var Sn=(D?Ul:So)&&Rn,dw=(D?So:Ul)&&os,Is=Sn?L:(fn?Gt:sr).left,ka=dw?P:(fn?sr:Gt).right;G(Is,Gt.top,ka-Is,Gt.bottom)}else{var La,Kn,Hl,pw;fn?(La=D&&Ul&&Rn?L:Gt.left,Kn=D?P:vr(cn,An,"before"),Hl=D?L:vr(ir,An,"after"),pw=D&&So&&os?P:sr.right):(La=D?vr(cn,An,"before"):L,Kn=!D&&Ul&&Rn?P:Gt.right,Hl=!D&&So&&os?L:sr.left,pw=D?vr(ir,An,"after"):P),G(La,Gt.top,Kn-La,Gt.bottom),Gt.bottom<sr.top&&G(L,Gt.bottom,null,sr.top),G(Hl,sr.top,pw-Hl,sr.bottom)}(!kt||vp(Gt,kt)<0)&&(kt=Gt),vp(sr,kt)<0&&(kt=sr),(!xn||vp(Gt,xn)<0)&&(xn=Gt),vp(sr,xn)<0&&(xn=sr)}),{start:kt,end:xn}}var ne=u.from(),J=u.to();if(ne.line==J.line)X(ne.line,ne.ch,J.ch);else{var ae=Fe(m,ne.line),de=Fe(m,J.line),ye=_i(ae)==_i(de),Ee=X(ne.line,ne.ch,ye?ae.text.length+1:null).end,_e=X(J.line,ye?0:null,J.ch).start;ye&&(Ee.top<_e.top-2?(G(Ee.right,Ee.top,null,Ee.bottom),G(L,_e.top,_e.left,_e.bottom)):G(Ee.right,Ee.top,_e.left-Ee.right,Ee.bottom)),Ee.bottom<_e.top&&G(L,Ee.bottom,null,_e.top)}h.appendChild(S)}function By(o){if(o.state.focused){var u=o.display;clearInterval(u.blinker);var h=!0;u.cursorDiv.style.visibility="",o.options.cursorBlinkRate>0?u.blinker=setInterval(function(){o.hasFocus()||Ol(o),u.cursorDiv.style.visibility=(h=!h)?"":"hidden"},o.options.cursorBlinkRate):o.options.cursorBlinkRate<0&&(u.cursorDiv.style.visibility="hidden")}}function nT(o){o.hasFocus()||(o.display.input.focus(),o.state.focused||Uy(o))}function jy(o){o.state.delayingBlurEvent=!0,setTimeout(function(){o.state.delayingBlurEvent&&(o.state.delayingBlurEvent=!1,o.state.focused&&Ol(o))},100)}function Uy(o,u){o.state.delayingBlurEvent&&!o.state.draggingText&&(o.state.delayingBlurEvent=!1),o.options.readOnly!="nocursor"&&(o.state.focused||(qt(o,"focus",o,u),o.state.focused=!0,Z(o.display.wrapper,"CodeMirror-focused"),!o.curOp&&o.display.selForContextMenu!=o.doc.sel&&(o.display.input.reset(),d&&setTimeout(function(){return o.display.input.reset(!0)},20)),o.display.input.receivedFocus()),By(o))}function Ol(o,u){o.state.delayingBlurEvent||(o.state.focused&&(qt(o,"blur",o,u),o.state.focused=!1,V(o.display.wrapper,"CodeMirror-focused")),clearInterval(o.display.blinker),setTimeout(function(){o.state.focused||(o.display.shift=!1)},150))}function yp(o){for(var u=o.display,h=u.lineDiv.offsetTop,p=Math.max(0,u.scroller.getBoundingClientRect().top),m=u.lineDiv.getBoundingClientRect().top,S=0,_=0;_<u.view.length;_++){var L=u.view[_],P=o.options.lineWrapping,D=void 0,G=0;if(!L.hidden){if(m+=L.line.height,c&&f<8){var X=L.node.offsetTop+L.node.offsetHeight;D=X-h,h=X}else{var ne=L.node.getBoundingClientRect();D=ne.bottom-ne.top,!P&&L.text.firstChild&&(G=L.text.firstChild.getBoundingClientRect().right-ne.left-1)}var J=L.line.height-D;if((J>.005||J<-.005)&&(m<p&&(S-=J),ns(L.line,D),rT(L.line),L.rest))for(var ae=0;ae<L.rest.length;ae++)rT(L.rest[ae]);if(G>o.display.sizerWidth){var de=Math.ceil(G/Ll(o.display));de>o.display.maxLineLength&&(o.display.maxLineLength=de,o.display.maxLine=L.line,o.display.maxLineChanged=!0)}}}Math.abs(S)>2&&(u.scroller.scrollTop+=S)}function rT(o){if(o.widgets)for(var u=0;u<o.widgets.length;++u){var h=o.widgets[u],p=h.node.parentNode;p&&(h.height=p.offsetHeight)}}function wp(o,u,h){var p=h&&h.top!=null?Math.max(0,h.top):o.scroller.scrollTop;p=Math.floor(p-pp(o));var m=h&&h.bottom!=null?h.bottom:p+o.wrapper.clientHeight,S=wa(u,p),_=wa(u,m);if(h&&h.ensure){var L=h.ensure.from.line,P=h.ensure.to.line;L<S?(S=L,_=wa(u,As(Fe(u,L))+o.wrapper.clientHeight)):Math.min(P,u.lastLine())>=_&&(S=wa(u,As(Fe(u,P))-o.wrapper.clientHeight),_=P)}return{from:S,to:Math.max(_,S+1)}}function Kj(o,u){if(!ee(o,"scrollCursorIntoView")){var h=o.display,p=h.sizer.getBoundingClientRect(),m=null,S=h.wrapper.ownerDocument;if(u.top+p.top<0?m=!0:u.bottom+p.top>(S.defaultView.innerHeight||S.documentElement.clientHeight)&&(m=!1),m!=null&&!x){var _=M("div","​",null,`position: absolute;
125                         top: `+(u.top-h.viewOffset-pp(o.display))+`px;
126                         height: `+(u.bottom-u.top+is(o)+h.barHeight)+`px;
127                         left: `+u.left+"px; width: "+Math.max(2,u.right-u.left)+"px;");o.display.lineSpace.appendChild(_),_.scrollIntoView(m),o.display.lineSpace.removeChild(_)}}}function qj(o,u,h,p){p==null&&(p=0);var m;!o.options.lineWrapping&&u==h&&(h=u.sticky=="before"?he(u.line,u.ch+1,"before"):u,u=u.ch?he(u.line,u.sticky=="before"?u.ch-1:u.ch,"after"):u);for(var S=0;S<5;S++){var _=!1,L=Ai(o,u),P=!h||h==u?L:Ai(o,h);m={left:Math.min(L.left,P.left),top:Math.min(L.top,P.top)-p,right:Math.max(L.left,P.left),bottom:Math.max(L.bottom,P.bottom)+p};var D=Hy(o,m),G=o.doc.scrollTop,X=o.doc.scrollLeft;if(D.scrollTop!=null&&(Fc(o,D.scrollTop),Math.abs(o.doc.scrollTop-G)>1&&(_=!0)),D.scrollLeft!=null&&(Ca(o,D.scrollLeft),Math.abs(o.doc.scrollLeft-X)>1&&(_=!0)),!_)break}return m}function Gj(o,u){var h=Hy(o,u);h.scrollTop!=null&&Fc(o,h.scrollTop),h.scrollLeft!=null&&Ca(o,h.scrollLeft)}function Hy(o,u){var h=o.display,p=kl(o.display);u.top<0&&(u.top=0);var m=o.curOp&&o.curOp.scrollTop!=null?o.curOp.scrollTop:h.scroller.scrollTop,S=Oy(o),_={};u.bottom-u.top>S&&(u.bottom=u.top+S);var L=o.doc.height+Ly(h),P=u.top<p,D=u.bottom>L-p;if(u.top<m)_.scrollTop=P?0:u.top;else if(u.bottom>m+S){var G=Math.min(u.top,(D?L:u.bottom)-S);G!=m&&(_.scrollTop=G)}var X=o.options.fixedGutter?0:h.gutters.offsetWidth,ne=o.curOp&&o.curOp.scrollLeft!=null?o.curOp.scrollLeft:h.scroller.scrollLeft-X,J=ba(o)-h.gutters.offsetWidth,ae=u.right-u.left>J;return ae&&(u.right=u.left+J),u.left<10?_.scrollLeft=0:u.left<ne?_.scrollLeft=Math.max(0,u.left+X-(ae?0:10)):u.right>J+ne-3&&(_.scrollLeft=u.right+(ae?0:10)-J),_}function Wy(o,u){u!=null&&(bp(o),o.curOp.scrollTop=(o.curOp.scrollTop==null?o.doc.scrollTop:o.curOp.scrollTop)+u)}function Il(o){bp(o);var u=o.getCursor();o.curOp.scrollToPos={from:u,to:u,margin:o.options.cursorScrollMargin}}function $c(o,u,h){(u!=null||h!=null)&&bp(o),u!=null&&(o.curOp.scrollLeft=u),h!=null&&(o.curOp.scrollTop=h)}function Yj(o,u){bp(o),o.curOp.scrollToPos=u}function bp(o){var u=o.curOp.scrollToPos;if(u){o.curOp.scrollToPos=null;var h=XC(o,u.from),p=XC(o,u.to);iT(o,h,p,u.margin)}}function iT(o,u,h,p){var m=Hy(o,{left:Math.min(u.left,h.left),top:Math.min(u.top,h.top)-p,right:Math.max(u.right,h.right),bottom:Math.max(u.bottom,h.bottom)+p});$c(o,m.scrollLeft,m.scrollTop)}function Fc(o,u){Math.abs(o.doc.scrollTop-u)<2||(i||Ky(o,{top:u}),sT(o,u,!0),i&&Ky(o),jc(o,100))}function sT(o,u,h){u=Math.max(0,Math.min(o.display.scroller.scrollHeight-o.display.scroller.clientHeight,u)),!(o.display.scroller.scrollTop==u&&!h)&&(o.doc.scrollTop=u,o.display.scrollbars.setScrollTop(u),o.display.scroller.scrollTop!=u&&(o.display.scroller.scrollTop=u))}function Ca(o,u,h,p){u=Math.max(0,Math.min(u,o.display.scroller.scrollWidth-o.display.scroller.clientWidth)),!((h?u==o.doc.scrollLeft:Math.abs(o.doc.scrollLeft-u)<2)&&!p)&&(o.doc.scrollLeft=u,cT(o),o.display.scroller.scrollLeft!=u&&(o.display.scroller.scrollLeft=u),o.display.scrollbars.setScrollLeft(u))}function zc(o){var u=o.display,h=u.gutters.offsetWidth,p=Math.round(o.doc.height+Ly(o.display));return{clientHeight:u.scroller.clientHeight,viewHeight:u.wrapper.clientHeight,scrollWidth:u.scroller.scrollWidth,clientWidth:u.scroller.clientWidth,viewWidth:u.wrapper.clientWidth,barLeft:o.options.fixedGutter?h:0,docHeight:p,scrollHeight:p+is(o)+u.barHeight,nativeBarWidth:u.nativeBarWidth,gutterWidth:h}}var Ta=function(o,u,h){this.cm=h;var p=this.vert=M("div",[M("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),m=this.horiz=M("div",[M("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");p.tabIndex=m.tabIndex=-1,o(p),o(m),Ue(p,"scroll",function(){p.clientHeight&&u(p.scrollTop,"vertical")}),Ue(m,"scroll",function(){m.clientWidth&&u(m.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,c&&f<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ta.prototype.update=function(o){var u=o.scrollWidth>o.clientWidth+1,h=o.scrollHeight>o.clientHeight+1,p=o.nativeBarWidth;if(h){this.vert.style.display="block",this.vert.style.bottom=u?p+"px":"0";var m=o.viewHeight-(u?p:0);this.vert.firstChild.style.height=Math.max(0,o.scrollHeight-o.clientHeight+m)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(u){this.horiz.style.display="block",this.horiz.style.right=h?p+"px":"0",this.horiz.style.left=o.barLeft+"px";var S=o.viewWidth-o.barLeft-(h?p:0);this.horiz.firstChild.style.width=Math.max(0,o.scrollWidth-o.clientWidth+S)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&o.clientHeight>0&&(p==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:h?p:0,bottom:u?p:0}},Ta.prototype.setScrollLeft=function(o){this.horiz.scrollLeft!=o&&(this.horiz.scrollLeft=o),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ta.prototype.setScrollTop=function(o){this.vert.scrollTop!=o&&(this.vert.scrollTop=o),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ta.prototype.zeroWidthHack=function(){var o=O&&!E?"12px":"18px";this.horiz.style.height=this.vert.style.width=o,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new Le,this.disableVert=new Le},Ta.prototype.enableZeroWidthBar=function(o,u,h){o.style.visibility="";function p(){var m=o.getBoundingClientRect(),S=h=="vert"?document.elementFromPoint(m.right-1,(m.top+m.bottom)/2):document.elementFromPoint((m.right+m.left)/2,m.bottom-1);S!=o?o.style.visibility="hidden":u.set(1e3,p)}u.set(1e3,p)},Ta.prototype.clear=function(){var o=this.horiz.parentNode;o.removeChild(this.horiz),o.removeChild(this.vert)};var Bc=function(){};Bc.prototype.update=function(){return{bottom:0,right:0}},Bc.prototype.setScrollLeft=function(){},Bc.prototype.setScrollTop=function(){},Bc.prototype.clear=function(){};function Pl(o,u){u||(u=zc(o));var h=o.display.barWidth,p=o.display.barHeight;oT(o,u);for(var m=0;m<4&&h!=o.display.barWidth||p!=o.display.barHeight;m++)h!=o.display.barWidth&&o.options.lineWrapping&&yp(o),oT(o,zc(o)),h=o.display.barWidth,p=o.display.barHeight}function oT(o,u){var h=o.display,p=h.scrollbars.update(u);h.sizer.style.paddingRight=(h.barWidth=p.right)+"px",h.sizer.style.paddingBottom=(h.barHeight=p.bottom)+"px",h.heightForcer.style.borderBottom=p.bottom+"px solid transparent",p.right&&p.bottom?(h.scrollbarFiller.style.display="block",h.scrollbarFiller.style.height=p.bottom+"px",h.scrollbarFiller.style.width=p.right+"px"):h.scrollbarFiller.style.display="",p.bottom&&o.options.coverGutterNextToScrollbar&&o.options.fixedGutter?(h.gutterFiller.style.display="block",h.gutterFiller.style.height=p.bottom+"px",h.gutterFiller.style.width=u.gutterWidth+"px"):h.gutterFiller.style.display=""}var aT={native:Ta,null:Bc};function lT(o){o.display.scrollbars&&(o.display.scrollbars.clear(),o.display.scrollbars.addClass&&V(o.display.wrapper,o.display.scrollbars.addClass)),o.display.scrollbars=new aT[o.options.scrollbarStyle](function(u){o.display.wrapper.insertBefore(u,o.display.scrollbarFiller),Ue(u,"mousedown",function(){o.state.focused&&setTimeout(function(){return o.display.input.focus()},0)}),u.setAttribute("cm-not-content","true")},function(u,h){h=="horizontal"?Ca(o,u):Fc(o,u)},o),o.display.scrollbars.addClass&&Z(o.display.wrapper,o.display.scrollbars.addClass)}var Xj=0;function _a(o){o.curOp={cm:o,viewChanged:!1,startHeight:o.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Xj,markArrays:null},Aj(o.curOp)}function Aa(o){var u=o.curOp;u&&Lj(u,function(h){for(var p=0;p<h.ops.length;p++)h.ops[p].cm.curOp=null;Qj(h)})}function Qj(o){for(var u=o.ops,h=0;h<u.length;h++)Jj(u[h]);for(var p=0;p<u.length;p++)Zj(u[p]);for(var m=0;m<u.length;m++)eU(u[m]);for(var S=0;S<u.length;S++)tU(u[S]);for(var _=0;_<u.length;_++)nU(u[_])}function Jj(o){var u=o.cm,h=u.display;iU(u),o.updateMaxLine&&Ay(u),o.mustUpdate=o.viewChanged||o.forceUpdate||o.scrollTop!=null||o.scrollToPos&&(o.scrollToPos.from.line<h.viewFrom||o.scrollToPos.to.line>=h.viewTo)||h.maxLineChanged&&u.options.lineWrapping,o.update=o.mustUpdate&&new xp(u,o.mustUpdate&&{top:o.scrollTop,ensure:o.scrollToPos},o.forceUpdate)}function Zj(o){o.updatedDisplay=o.mustUpdate&&Vy(o.cm,o.update)}function eU(o){var u=o.cm,h=u.display;o.updatedDisplay&&yp(u),o.barMeasure=zc(u),h.maxLineChanged&&!u.options.lineWrapping&&(o.adjustWidthTo=UC(u,h.maxLine,h.maxLine.text.length).left+3,u.display.sizerWidth=o.adjustWidthTo,o.barMeasure.scrollWidth=Math.max(h.scroller.clientWidth,h.sizer.offsetLeft+o.adjustWidthTo+is(u)+u.display.barWidth),o.maxScrollLeft=Math.max(0,h.sizer.offsetLeft+o.adjustWidthTo-ba(u))),(o.updatedDisplay||o.selectionChanged)&&(o.preparedSelection=h.input.prepareSelection())}function tU(o){var u=o.cm;o.adjustWidthTo!=null&&(u.display.sizer.style.minWidth=o.adjustWidthTo+"px",o.maxScrollLeft<u.doc.scrollLeft&&Ca(u,Math.min(u.display.scroller.scrollLeft,o.maxScrollLeft),!0),u.display.maxLineChanged=!1);var h=o.focus&&o.focus==Y(ie(u));o.preparedSelection&&u.display.input.showSelection(o.preparedSelection,h),(o.updatedDisplay||o.startHeight!=u.doc.height)&&Pl(u,o.barMeasure),o.updatedDisplay&&Gy(u,o.barMeasure),o.selectionChanged&&By(u),u.state.focused&&o.updateInput&&u.display.input.reset(o.typing),h&&nT(o.cm)}function nU(o){var u=o.cm,h=u.display,p=u.doc;if(o.updatedDisplay&&uT(u,o.update),h.wheelStartX!=null&&(o.scrollTop!=null||o.scrollLeft!=null||o.scrollToPos)&&(h.wheelStartX=h.wheelStartY=null),o.scrollTop!=null&&sT(u,o.scrollTop,o.forceScroll),o.scrollLeft!=null&&Ca(u,o.scrollLeft,!0,!0),o.scrollToPos){var m=qj(u,rt(p,o.scrollToPos.from),rt(p,o.scrollToPos.to),o.scrollToPos.margin);Kj(u,m)}var S=o.maybeHiddenMarkers,_=o.maybeUnhiddenMarkers;if(S)for(var L=0;L<S.length;++L)S[L].lines.length||qt(S[L],"hide");if(_)for(var P=0;P<_.length;++P)_[P].lines.length&&qt(_[P],"unhide");h.wrapper.offsetHeight&&(p.scrollTop=u.display.scroller.scrollTop),o.changeObjs&&qt(u,"changes",u,o.changeObjs),o.update&&o.update.finish()}function mr(o,u){if(o.curOp)return u();_a(o);try{return u()}finally{Aa(o)}}function wn(o,u){return function(){if(o.curOp)return u.apply(o,arguments);_a(o);try{return u.apply(o,arguments)}finally{Aa(o)}}}function Vn(o){return function(){if(this.curOp)return o.apply(this,arguments);_a(this);try{return o.apply(this,arguments)}finally{Aa(this)}}}function bn(o){return function(){var u=this.cm;if(!u||u.curOp)return o.apply(this,arguments);_a(u);try{return o.apply(this,arguments)}finally{Aa(u)}}}function jc(o,u){o.doc.highlightFrontier<o.display.viewTo&&o.state.highlight.set(u,ze(rU,o))}function rU(o){var u=o.doc;if(!(u.highlightFrontier>=o.display.viewTo)){var h=+new Date+o.options.workTime,p=Oc(o,u.highlightFrontier),m=[];u.iter(p.line,Math.min(u.first+u.size,o.display.viewTo+500),function(S){if(p.line>=o.display.viewFrom){var _=S.styles,L=S.text.length>o.options.maxHighlightLength?tn(u.mode,p.state):null,P=mC(o,S,p,!0);L&&(p.state=L),S.styles=P.styles;var D=S.styleClasses,G=P.classes;G?S.styleClasses=G:D&&(S.styleClasses=null);for(var X=!_||_.length!=S.styles.length||D!=G&&(!D||!G||D.bgClass!=G.bgClass||D.textClass!=G.textClass),ne=0;!X&&ne<_.length;++ne)X=_[ne]!=S.styles[ne];X&&m.push(p.line),S.stateAfter=p.save(),p.nextLine()}else S.text.length<=o.options.maxHighlightLength&&xy(o,S.text,p),S.stateAfter=p.line%5==0?p.save():null,p.nextLine();if(+new Date>h)return jc(o,o.options.workDelay),!0}),u.highlightFrontier=p.line,u.modeFrontier=Math.max(u.modeFrontier,p.line),m.length&&mr(o,function(){for(var S=0;S<m.length;S++)go(o,m[S],"text")})}}var xp=function(o,u,h){var p=o.display;this.viewport=u,this.visible=wp(p,o.doc,u),this.editorIsHidden=!p.wrapper.offsetWidth,this.wrapperHeight=p.wrapper.clientHeight,this.wrapperWidth=p.wrapper.clientWidth,this.oldDisplayWidth=ba(o),this.force=h,this.dims=Ny(o),this.events=[]};xp.prototype.signal=function(o,u){ce(o,u)&&this.events.push(arguments)},xp.prototype.finish=function(){for(var o=0;o<this.events.length;o++)qt.apply(null,this.events[o])};function iU(o){var u=o.display;!u.scrollbarsClipped&&u.scroller.offsetWidth&&(u.nativeBarWidth=u.scroller.offsetWidth-u.scroller.clientWidth,u.heightForcer.style.height=is(o)+"px",u.sizer.style.marginBottom=-u.nativeBarWidth+"px",u.sizer.style.borderRightWidth=is(o)+"px",u.scrollbarsClipped=!0)}function sU(o){if(o.hasFocus())return null;var u=Y(ie(o));if(!u||!B(o.display.lineDiv,u))return null;var h={activeElt:u};if(window.getSelection){var p=ve(o).getSelection();p.anchorNode&&p.extend&&B(o.display.lineDiv,p.anchorNode)&&(h.anchorNode=p.anchorNode,h.anchorOffset=p.anchorOffset,h.focusNode=p.focusNode,h.focusOffset=p.focusOffset)}return h}function oU(o){if(!(!o||!o.activeElt||o.activeElt==Y(me(o.activeElt)))&&(o.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(o.activeElt.nodeName)&&o.anchorNode&&B(document.body,o.anchorNode)&&B(document.body,o.focusNode))){var u=o.activeElt.ownerDocument,h=u.defaultView.getSelection(),p=u.createRange();p.setEnd(o.anchorNode,o.anchorOffset),p.collapse(!1),h.removeAllRanges(),h.addRange(p),h.extend(o.focusNode,o.focusOffset)}}function Vy(o,u){var h=o.display,p=o.doc;if(u.editorIsHidden)return mo(o),!1;if(!u.force&&u.visible.from>=h.viewFrom&&u.visible.to<=h.viewTo&&(h.updateLineNumbers==null||h.updateLineNumbers>=h.viewTo)&&h.renderedView==h.view&&eT(o)==0)return!1;fT(o)&&(mo(o),u.dims=Ny(o));var m=p.first+p.size,S=Math.max(u.visible.from-o.options.viewportMargin,p.first),_=Math.min(m,u.visible.to+o.options.viewportMargin);h.viewFrom<S&&S-h.viewFrom<20&&(S=Math.max(p.first,h.viewFrom)),h.viewTo>_&&h.viewTo-_<20&&(_=Math.min(m,h.viewTo)),_s&&(S=Ty(o.doc,S),_=OC(o.doc,_));var L=S!=h.viewFrom||_!=h.viewTo||h.lastWrapHeight!=u.wrapperHeight||h.lastWrapWidth!=u.wrapperWidth;Wj(o,S,_),h.viewOffset=As(Fe(o.doc,h.viewFrom)),o.display.mover.style.top=h.viewOffset+"px";var P=eT(o);if(!L&&P==0&&!u.force&&h.renderedView==h.view&&(h.updateLineNumbers==null||h.updateLineNumbers>=h.viewTo))return!1;var D=sU(o);return P>4&&(h.lineDiv.style.display="none"),aU(o,h.updateLineNumbers,u.dims),P>4&&(h.lineDiv.style.display=""),h.renderedView=h.view,oU(D),F(h.cursorDiv),F(h.selectionDiv),h.gutters.style.height=h.sizer.style.minHeight=0,L&&(h.lastWrapHeight=u.wrapperHeight,h.lastWrapWidth=u.wrapperWidth,jc(o,400)),h.updateLineNumbers=null,!0}function uT(o,u){for(var h=u.viewport,p=!0;;p=!1){if(!p||!o.options.lineWrapping||u.oldDisplayWidth==ba(o)){if(h&&h.top!=null&&(h={top:Math.min(o.doc.height+Ly(o.display)-Oy(o),h.top)}),u.visible=wp(o.display,o.doc,h),u.visible.from>=o.display.viewFrom&&u.visible.to<=o.display.viewTo)break}else p&&(u.visible=wp(o.display,o.doc,h));if(!Vy(o,u))break;yp(o);var m=zc(o);Nc(o),Pl(o,m),Gy(o,m),u.force=!1}u.signal(o,"update",o),(o.display.viewFrom!=o.display.reportedViewFrom||o.display.viewTo!=o.display.reportedViewTo)&&(u.signal(o,"viewportChange",o,o.display.viewFrom,o.display.viewTo),o.display.reportedViewFrom=o.display.viewFrom,o.display.reportedViewTo=o.display.viewTo)}function Ky(o,u){var h=new xp(o,u);if(Vy(o,h)){yp(o),uT(o,h);var p=zc(o);Nc(o),Pl(o,p),Gy(o,p),h.finish()}}function aU(o,u,h){var p=o.display,m=o.options.lineNumbers,S=p.lineDiv,_=S.firstChild;function L(ae){var de=ae.nextSibling;return d&&O&&o.display.currentWheelTarget==ae?ae.style.display="none":ae.parentNode.removeChild(ae),de}for(var P=p.view,D=p.viewFrom,G=0;G<P.length;G++){var X=P[G];if(!X.hidden)if(!X.node||X.node.parentNode!=S){var ne=Mj(o,X,D,h);S.insertBefore(ne,_)}else{for(;_!=X.node;)_=L(_);var J=m&&u!=null&&u<=D&&X.lineNumber;X.changes&&(Oe(X.changes,"gutter")>-1&&(J=!1),DC(o,X,D,h)),J&&(F(X.lineNumber),X.lineNumber.appendChild(document.createTextNode(yy(o.options,D)))),_=X.node.nextSibling}D+=X.size}for(;_;)_=L(_)}function qy(o){var u=o.gutters.offsetWidth;o.sizer.style.marginLeft=u+"px",yn(o,"gutterChanged",o)}function Gy(o,u){o.display.sizer.style.minHeight=u.docHeight+"px",o.display.heightForcer.style.top=u.docHeight+"px",o.display.gutters.style.height=u.docHeight+o.display.barHeight+is(o)+"px"}function cT(o){var u=o.display,h=u.view;if(!(!u.alignWidgets&&(!u.gutters.firstChild||!o.options.fixedGutter))){for(var p=$y(u)-u.scroller.scrollLeft+o.doc.scrollLeft,m=u.gutters.offsetWidth,S=p+"px",_=0;_<h.length;_++)if(!h[_].hidden){o.options.fixedGutter&&(h[_].gutter&&(h[_].gutter.style.left=S),h[_].gutterBackground&&(h[_].gutterBackground.style.left=S));var L=h[_].alignable;if(L)for(var P=0;P<L.length;P++)L[P].style.left=S}o.options.fixedGutter&&(u.gutters.style.left=p+m+"px")}}function fT(o){if(!o.options.lineNumbers)return!1;var u=o.doc,h=yy(o.options,u.first+u.size-1),p=o.display;if(h.length!=p.lineNumChars){var m=p.measure.appendChild(M("div",[M("div",h)],"CodeMirror-linenumber CodeMirror-gutter-elt")),S=m.firstChild.offsetWidth,_=m.offsetWidth-S;return p.lineGutter.style.width="",p.lineNumInnerWidth=Math.max(S,p.lineGutter.offsetWidth-_)+1,p.lineNumWidth=p.lineNumInnerWidth+_,p.lineNumChars=p.lineNumInnerWidth?h.length:-1,p.lineGutter.style.width=p.lineNumWidth+"px",qy(o.display),!0}return!1}function Yy(o,u){for(var h=[],p=!1,m=0;m<o.length;m++){var S=o[m],_=null;if(typeof S!="string"&&(_=S.style,S=S.className),S=="CodeMirror-linenumbers")if(u)p=!0;else continue;h.push({className:S,style:_})}return u&&!p&&h.push({className:"CodeMirror-linenumbers",style:null}),h}function dT(o){var u=o.gutters,h=o.gutterSpecs;F(u),o.lineGutter=null;for(var p=0;p<h.length;++p){var m=h[p],S=m.className,_=m.style,L=u.appendChild(M("div",null,"CodeMirror-gutter "+S));_&&(L.style.cssText=_),S=="CodeMirror-linenumbers"&&(o.lineGutter=L,L.style.width=(o.lineNumWidth||1)+"px")}u.style.display=h.length?"":"none",qy(o)}function Uc(o){dT(o.display),tr(o),cT(o)}function lU(o,u,h,p){var m=this;this.input=h,m.scrollbarFiller=M("div",null,"CodeMirror-scrollbar-filler"),m.scrollbarFiller.setAttribute("cm-not-content","true"),m.gutterFiller=M("div",null,"CodeMirror-gutter-filler"),m.gutterFiller.setAttribute("cm-not-content","true"),m.lineDiv=q("div",null,"CodeMirror-code"),m.selectionDiv=M("div",null,null,"position: relative; z-index: 1"),m.cursorDiv=M("div",null,"CodeMirror-cursors"),m.measure=M("div",null,"CodeMirror-measure"),m.lineMeasure=M("div",null,"CodeMirror-measure"),m.lineSpace=q("div",[m.measure,m.lineMeasure,m.selectionDiv,m.cursorDiv,m.lineDiv],null,"position: relative; outline: none");var S=q("div",[m.lineSpace],"CodeMirror-lines");m.mover=M("div",[S],null,"position: relative"),m.sizer=M("div",[m.mover],"CodeMirror-sizer"),m.sizerWidth=null,m.heightForcer=M("div",null,null,"position: absolute; height: "+$e+"px; width: 1px;"),m.gutters=M("div",null,"CodeMirror-gutters"),m.lineGutter=null,m.scroller=M("div",[m.sizer,m.heightForcer,m.gutters],"CodeMirror-scroll"),m.scroller.setAttribute("tabIndex","-1"),m.wrapper=M("div",[m.scrollbarFiller,m.gutterFiller,m.scroller],"CodeMirror"),v&&y>=105&&(m.wrapper.style.clipPath="inset(0px)"),m.wrapper.setAttribute("translate","no"),c&&f<8&&(m.gutters.style.zIndex=-1,m.scroller.style.paddingRight=0),!d&&!(i&&A)&&(m.scroller.draggable=!0),o&&(o.appendChild?o.appendChild(m.wrapper):o(m.wrapper)),m.viewFrom=m.viewTo=u.first,m.reportedViewFrom=m.reportedViewTo=u.first,m.view=[],m.renderedView=null,m.externalMeasured=null,m.viewOffset=0,m.lastWrapHeight=m.lastWrapWidth=0,m.updateLineNumbers=null,m.nativeBarWidth=m.barHeight=m.barWidth=0,m.scrollbarsClipped=!1,m.lineNumWidth=m.lineNumInnerWidth=m.lineNumChars=null,m.alignWidgets=!1,m.cachedCharWidth=m.cachedTextHeight=m.cachedPaddingH=null,m.maxLine=null,m.maxLineLength=0,m.maxLineChanged=!1,m.wheelDX=m.wheelDY=m.wheelStartX=m.wheelStartY=null,m.shift=!1,m.selForContextMenu=null,m.activeTouch=null,m.gutterSpecs=Yy(p.gutters,p.lineNumbers),dT(m),h.init(m)}var Sp=0,Ls=null;c?Ls=-.53:i?Ls=15:v?Ls=-.7:T&&(Ls=-1/3);function pT(o){var u=o.wheelDeltaX,h=o.wheelDeltaY;return u==null&&o.detail&&o.axis==o.HORIZONTAL_AXIS&&(u=o.detail),h==null&&o.detail&&o.axis==o.VERTICAL_AXIS?h=o.detail:h==null&&(h=o.wheelDelta),{x:u,y:h}}function uU(o){var u=pT(o);return u.x*=Ls,u.y*=Ls,u}function hT(o,u){v&&y==102&&(o.display.chromeScrollHack==null?o.display.sizer.style.pointerEvents="none":clearTimeout(o.display.chromeScrollHack),o.display.chromeScrollHack=setTimeout(function(){o.display.chromeScrollHack=null,o.display.sizer.style.pointerEvents=""},100));var h=pT(u),p=h.x,m=h.y,S=Ls;u.deltaMode===0&&(p=u.deltaX,m=u.deltaY,S=1);var _=o.display,L=_.scroller,P=L.scrollWidth>L.clientWidth,D=L.scrollHeight>L.clientHeight;if(p&&P||m&&D){if(m&&O&&d){e:for(var G=u.target,X=_.view;G!=L;G=G.parentNode)for(var ne=0;ne<X.length;ne++)if(X[ne].node==G){o.display.currentWheelTarget=G;break e}}if(p&&!i&&!w&&S!=null){m&&D&&Fc(o,Math.max(0,L.scrollTop+m*S)),Ca(o,Math.max(0,L.scrollLeft+p*S)),(!m||m&&D)&&ke(u),_.wheelStartX=null;return}if(m&&S!=null){var J=m*S,ae=o.doc.scrollTop,de=ae+_.wrapper.clientHeight;J<0?ae=Math.max(0,ae+J-50):de=Math.min(o.doc.height,de+J+50),Ky(o,{top:ae,bottom:de})}Sp<20&&u.deltaMode!==0&&(_.wheelStartX==null?(_.wheelStartX=L.scrollLeft,_.wheelStartY=L.scrollTop,_.wheelDX=p,_.wheelDY=m,setTimeout(function(){if(_.wheelStartX!=null){var ye=L.scrollLeft-_.wheelStartX,Ee=L.scrollTop-_.wheelStartY,_e=Ee&&_.wheelDY&&Ee/_.wheelDY||ye&&_.wheelDX&&ye/_.wheelDX;_.wheelStartX=_.wheelStartY=null,_e&&(Ls=(Ls*Sp+_e)/(Sp+1),++Sp)}},200)):(_.wheelDX+=p,_.wheelDY+=m))}}var Ir=function(o,u){this.ranges=o,this.primIndex=u};Ir.prototype.primary=function(){return this.ranges[this.primIndex]},Ir.prototype.equals=function(o){if(o==this)return!0;if(o.primIndex!=this.primIndex||o.ranges.length!=this.ranges.length)return!1;for(var u=0;u<this.ranges.length;u++){var h=this.ranges[u],p=o.ranges[u];if(!wy(h.anchor,p.anchor)||!wy(h.head,p.head))return!1}return!0},Ir.prototype.deepCopy=function(){for(var o=[],u=0;u<this.ranges.length;u++)o[u]=new bt(by(this.ranges[u].anchor),by(this.ranges[u].head));return new Ir(o,this.primIndex)},Ir.prototype.somethingSelected=function(){for(var o=0;o<this.ranges.length;o++)if(!this.ranges[o].empty())return!0;return!1},Ir.prototype.contains=function(o,u){u||(u=o);for(var h=0;h<this.ranges.length;h++){var p=this.ranges[h];if(nt(u,p.from())>=0&&nt(o,p.to())<=0)return h}return-1};var bt=function(o,u){this.anchor=o,this.head=u};bt.prototype.from=function(){return sp(this.anchor,this.head)},bt.prototype.to=function(){return ip(this.anchor,this.head)},bt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function ki(o,u,h){var p=o&&o.options.selectionsMayTouch,m=u[h];u.sort(function(ne,J){return nt(ne.from(),J.from())}),h=Oe(u,m);for(var S=1;S<u.length;S++){var _=u[S],L=u[S-1],P=nt(L.to(),_.from());if(p&&!_.empty()?P>0:P>=0){var D=sp(L.from(),_.from()),G=ip(L.to(),_.to()),X=L.empty()?_.from()==_.head:L.from()==L.head;S<=h&&--h,u.splice(--S,2,new bt(X?G:D,X?D:G))}}return new Ir(u,h)}function vo(o,u){return new Ir([new bt(o,u||o)],0)}function yo(o){return o.text?he(o.from.line+o.text.length-1,te(o.text).length+(o.text.length==1?o.from.ch:0)):o.to}function gT(o,u){if(nt(o,u.from)<0)return o;if(nt(o,u.to)<=0)return yo(u);var h=o.line+u.text.length-(u.to.line-u.from.line)-1,p=o.ch;return o.line==u.to.line&&(p+=yo(u).ch-u.to.ch),he(h,p)}function Xy(o,u){for(var h=[],p=0;p<o.sel.ranges.length;p++){var m=o.sel.ranges[p];h.push(new bt(gT(m.anchor,u),gT(m.head,u)))}return ki(o.cm,h,o.sel.primIndex)}function mT(o,u,h){return o.line==u.line?he(h.line,o.ch-u.ch+h.ch):he(h.line+(o.line-u.line),o.ch)}function cU(o,u,h){for(var p=[],m=he(o.first,0),S=m,_=0;_<u.length;_++){var L=u[_],P=mT(L.from,m,S),D=mT(yo(L),m,S);if(m=L.to,S=D,h=="around"){var G=o.sel.ranges[_],X=nt(G.head,G.anchor)<0;p[_]=new bt(X?D:P,X?P:D)}else p[_]=new bt(P,P)}return new Ir(p,o.sel.primIndex)}function Qy(o){o.doc.mode=fo(o.options,o.doc.modeOption),Hc(o)}function Hc(o){o.doc.iter(function(u){u.stateAfter&&(u.stateAfter=null),u.styles&&(u.styles=null)}),o.doc.modeFrontier=o.doc.highlightFrontier=o.doc.first,jc(o,100),o.state.modeGen++,o.curOp&&tr(o)}function vT(o,u){return u.from.ch==0&&u.to.ch==0&&te(u.text)==""&&(!o.cm||o.cm.options.wholeLineUpdateBefore)}function Jy(o,u,h,p){function m(_e){return h?h[_e]:null}function S(_e,Ce,Re){yj(_e,Ce,Re,p),yn(_e,"change",_e,u)}function _(_e,Ce){for(var Re=[],We=_e;We<Ce;++We)Re.push(new Tl(D[We],m(We),p));return Re}var L=u.from,P=u.to,D=u.text,G=Fe(o,L.line),X=Fe(o,P.line),ne=te(D),J=m(D.length-1),ae=P.line-L.line;if(u.full)o.insert(0,_(0,D.length)),o.remove(D.length,o.size-D.length);else if(vT(o,u)){var de=_(0,D.length-1);S(X,X.text,J),ae&&o.remove(L.line,ae),de.length&&o.insert(L.line,de)}else if(G==X)if(D.length==1)S(G,G.text.slice(0,L.ch)+ne+G.text.slice(P.ch),J);else{var ye=_(1,D.length-1);ye.push(new Tl(ne+G.text.slice(P.ch),J,p)),S(G,G.text.slice(0,L.ch)+D[0],m(0)),o.insert(L.line+1,ye)}else if(D.length==1)S(G,G.text.slice(0,L.ch)+D[0]+X.text.slice(P.ch),m(0)),o.remove(L.line+1,ae);else{S(G,G.text.slice(0,L.ch)+D[0],m(0)),S(X,ne+X.text.slice(P.ch),J);var Ee=_(1,D.length-1);ae>1&&o.remove(L.line+1,ae-1),o.insert(L.line+1,Ee)}yn(o,"change",o,u)}function wo(o,u,h){function p(m,S,_){if(m.linked)for(var L=0;L<m.linked.length;++L){var P=m.linked[L];if(P.doc!=S){var D=_&&P.sharedHist;h&&!D||(u(P.doc,D),p(P.doc,m,D))}}}p(o,null,!0)}function yT(o,u){if(u.cm)throw new Error("This document is already in use.");o.doc=u,u.cm=o,Fy(o),Qy(o),wT(o),o.options.direction=u.direction,o.options.lineWrapping||Ay(o),o.options.mode=u.modeOption,tr(o)}function wT(o){(o.doc.direction=="rtl"?Z:V)(o.display.lineDiv,"CodeMirror-rtl")}function fU(o){mr(o,function(){wT(o),tr(o)})}function Ep(o){this.done=[],this.undone=[],this.undoDepth=o?o.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=o?o.maxGeneration:1}function Zy(o,u){var h={from:by(u.from),to:yo(u),text:ya(o,u.from,u.to)};return ST(o,h,u.from.line,u.to.line+1),wo(o,function(p){return ST(p,h,u.from.line,u.to.line+1)},!0),h}function bT(o){for(;o.length;){var u=te(o);if(u.ranges)o.pop();else break}}function dU(o,u){if(u)return bT(o.done),te(o.done);if(o.done.length&&!te(o.done).ranges)return te(o.done);if(o.done.length>1&&!o.done[o.done.length-2].ranges)return o.done.pop(),te(o.done)}function xT(o,u,h,p){var m=o.history;m.undone.length=0;var S=+new Date,_,L;if((m.lastOp==p||m.lastOrigin==u.origin&&u.origin&&(u.origin.charAt(0)=="+"&&m.lastModTime>S-(o.cm?o.cm.options.historyEventDelay:500)||u.origin.charAt(0)=="*"))&&(_=dU(m,m.lastOp==p)))L=te(_.changes),nt(u.from,u.to)==0&&nt(u.from,L.to)==0?L.to=yo(u):_.changes.push(Zy(o,u));else{var P=te(m.done);for((!P||!P.ranges)&&Cp(o.sel,m.done),_={changes:[Zy(o,u)],generation:m.generation},m.done.push(_);m.done.length>m.undoDepth;)m.done.shift(),m.done[0].ranges||m.done.shift()}m.done.push(h),m.generation=++m.maxGeneration,m.lastModTime=m.lastSelTime=S,m.lastOp=m.lastSelOp=p,m.lastOrigin=m.lastSelOrigin=u.origin,L||qt(o,"historyAdded")}function pU(o,u,h,p){var m=u.charAt(0);return m=="*"||m=="+"&&h.ranges.length==p.ranges.length&&h.somethingSelected()==p.somethingSelected()&&new Date-o.history.lastSelTime<=(o.cm?o.cm.options.historyEventDelay:500)}function hU(o,u,h,p){var m=o.history,S=p&&p.origin;h==m.lastSelOp||S&&m.lastSelOrigin==S&&(m.lastModTime==m.lastSelTime&&m.lastOrigin==S||pU(o,S,te(m.done),u))?m.done[m.done.length-1]=u:Cp(u,m.done),m.lastSelTime=+new Date,m.lastSelOrigin=S,m.lastSelOp=h,p&&p.clearRedo!==!1&&bT(m.undone)}function Cp(o,u){var h=te(u);h&&h.ranges&&h.equals(o)||u.push(o)}function ST(o,u,h,p){var m=u["spans_"+o.id],S=0;o.iter(Math.max(o.first,h),Math.min(o.first+o.size,p),function(_){_.markedSpans&&((m||(m=u["spans_"+o.id]={}))[S]=_.markedSpans),++S})}function gU(o){if(!o)return null;for(var u,h=0;h<o.length;++h)o[h].marker.explicitlyCleared?u||(u=o.slice(0,h)):u&&u.push(o[h]);return u?u.length?u:null:o}function mU(o,u){var h=u["spans_"+o.id];if(!h)return null;for(var p=[],m=0;m<u.text.length;++m)p.push(gU(h[m]));return p}function ET(o,u){var h=mU(o,u),p=Ey(o,u);if(!h)return p;if(!p)return h;for(var m=0;m<h.length;++m){var S=h[m],_=p[m];if(S&&_)e:for(var L=0;L<_.length;++L){for(var P=_[L],D=0;D<S.length;++D)if(S[D].marker==P.marker)continue e;S.push(P)}else _&&(h[m]=_)}return h}function Rl(o,u,h){for(var p=[],m=0;m<o.length;++m){var S=o[m];if(S.ranges){p.push(h?Ir.prototype.deepCopy.call(S):S);continue}var _=S.changes,L=[];p.push({changes:L});for(var P=0;P<_.length;++P){var D=_[P],G=void 0;if(L.push({from:D.from,to:D.to,text:D.text}),u)for(var X in D)(G=X.match(/^spans_(\d+)$/))&&Oe(u,Number(G[1]))>-1&&(te(L)[X]=D[X],delete D[X])}}return p}function ew(o,u,h,p){if(p){var m=o.anchor;if(h){var S=nt(u,m)<0;S!=nt(h,m)<0?(m=u,u=h):S!=nt(u,h)<0&&(u=h)}return new bt(m,u)}else return new bt(h||u,u)}function Tp(o,u,h,p,m){m==null&&(m=o.cm&&(o.cm.display.shift||o.extend)),Pn(o,new Ir([ew(o.sel.primary(),u,h,m)],0),p)}function CT(o,u,h){for(var p=[],m=o.cm&&(o.cm.display.shift||o.extend),S=0;S<o.sel.ranges.length;S++)p[S]=ew(o.sel.ranges[S],u[S],null,m);var _=ki(o.cm,p,o.sel.primIndex);Pn(o,_,h)}function tw(o,u,h,p){var m=o.sel.ranges.slice(0);m[u]=h,Pn(o,ki(o.cm,m,o.sel.primIndex),p)}function TT(o,u,h,p){Pn(o,vo(u,h),p)}function vU(o,u,h){var p={ranges:u.ranges,update:function(m){this.ranges=[];for(var S=0;S<m.length;S++)this.ranges[S]=new bt(rt(o,m[S].anchor),rt(o,m[S].head))},origin:h&&h.origin};return qt(o,"beforeSelectionChange",o,p),o.cm&&qt(o.cm,"beforeSelectionChange",o.cm,p),p.ranges!=u.ranges?ki(o.cm,p.ranges,p.ranges.length-1):u}function _T(o,u,h){var p=o.history.done,m=te(p);m&&m.ranges?(p[p.length-1]=u,_p(o,u,h)):Pn(o,u,h)}function Pn(o,u,h){_p(o,u,h),hU(o,o.sel,o.cm?o.cm.curOp.id:NaN,h)}function _p(o,u,h){(ce(o,"beforeSelectionChange")||o.cm&&ce(o.cm,"beforeSelectionChange"))&&(u=vU(o,u,h));var p=h&&h.bias||(nt(u.primary().head,o.sel.primary().head)<0?-1:1);AT(o,LT(o,u,p,!0)),!(h&&h.scroll===!1)&&o.cm&&o.cm.getOption("readOnly")!="nocursor"&&Il(o.cm)}function AT(o,u){u.equals(o.sel)||(o.sel=u,o.cm&&(o.cm.curOp.updateInput=1,o.cm.curOp.selectionChanged=!0,se(o.cm)),yn(o,"cursorActivity",o))}function kT(o){AT(o,LT(o,o.sel,null,!1))}function LT(o,u,h,p){for(var m,S=0;S<u.ranges.length;S++){var _=u.ranges[S],L=u.ranges.length==o.sel.ranges.length&&o.sel.ranges[S],P=Ap(o,_.anchor,L&&L.anchor,h,p),D=_.head==_.anchor?P:Ap(o,_.head,L&&L.head,h,p);(m||P!=_.anchor||D!=_.head)&&(m||(m=u.ranges.slice(0,S)),m[S]=new bt(P,D))}return m?ki(o.cm,m,u.primIndex):u}function Ml(o,u,h,p,m){var S=Fe(o,u.line);if(S.markedSpans)for(var _=0;_<S.markedSpans.length;++_){var L=S.markedSpans[_],P=L.marker,D="selectLeft"in P?!P.selectLeft:P.inclusiveLeft,G="selectRight"in P?!P.selectRight:P.inclusiveRight;if((L.from==null||(D?L.from<=u.ch:L.from<u.ch))&&(L.to==null||(G?L.to>=u.ch:L.to>u.ch))){if(m&&(qt(P,"beforeCursorEnter"),P.explicitlyCleared))if(S.markedSpans){--_;continue}else break;if(!P.atomic)continue;if(h){var X=P.find(p<0?1:-1),ne=void 0;if((p<0?G:D)&&(X=OT(o,X,-p,X&&X.line==u.line?S:null)),X&&X.line==u.line&&(ne=nt(X,h))&&(p<0?ne<0:ne>0))return Ml(o,X,u,p,m)}var J=P.find(p<0?-1:1);return(p<0?D:G)&&(J=OT(o,J,p,J.line==u.line?S:null)),J?Ml(o,J,u,p,m):null}}return u}function Ap(o,u,h,p,m){var S=p||1,_=Ml(o,u,h,S,m)||!m&&Ml(o,u,h,S,!0)||Ml(o,u,h,-S,m)||!m&&Ml(o,u,h,-S,!0);return _||(o.cantEdit=!0,he(o.first,0))}function OT(o,u,h,p){return h<0&&u.ch==0?u.line>o.first?rt(o,he(u.line-1)):null:h>0&&u.ch==(p||Fe(o,u.line)).text.length?u.line<o.first+o.size-1?he(u.line+1,0):null:new he(u.line,u.ch+h)}function IT(o){o.setSelection(he(o.firstLine(),0),he(o.lastLine()),ct)}function PT(o,u,h){var p={canceled:!1,from:u.from,to:u.to,text:u.text,origin:u.origin,cancel:function(){return p.canceled=!0}};return h&&(p.update=function(m,S,_,L){m&&(p.from=rt(o,m)),S&&(p.to=rt(o,S)),_&&(p.text=_),L!==void 0&&(p.origin=L)}),qt(o,"beforeChange",o,p),o.cm&&qt(o.cm,"beforeChange",o.cm,p),p.canceled?(o.cm&&(o.cm.curOp.updateInput=2),null):{from:p.from,to:p.to,text:p.text,origin:p.origin}}function Dl(o,u,h){if(o.cm){if(!o.cm.curOp)return wn(o.cm,Dl)(o,u,h);if(o.cm.state.suppressEdits)return}if(!((ce(o,"beforeChange")||o.cm&&ce(o.cm,"beforeChange"))&&(u=PT(o,u,!0),!u))){var p=EC&&!h&&hj(o,u.from,u.to);if(p)for(var m=p.length-1;m>=0;--m)RT(o,{from:p[m].from,to:p[m].to,text:m?[""]:u.text,origin:u.origin});else RT(o,u)}}function RT(o,u){if(!(u.text.length==1&&u.text[0]==""&&nt(u.from,u.to)==0)){var h=Xy(o,u);xT(o,u,h,o.cm?o.cm.curOp.id:NaN),Wc(o,u,h,Ey(o,u));var p=[];wo(o,function(m,S){!S&&Oe(p,m.history)==-1&&($T(m.history,u),p.push(m.history)),Wc(m,u,null,Ey(m,u))})}}function kp(o,u,h){var p=o.cm&&o.cm.state.suppressEdits;if(!(p&&!h)){for(var m=o.history,S,_=o.sel,L=u=="undo"?m.done:m.undone,P=u=="undo"?m.undone:m.done,D=0;D<L.length&&(S=L[D],!(h?S.ranges&&!S.equals(o.sel):!S.ranges));D++);if(D!=L.length){for(m.lastOrigin=m.lastSelOrigin=null;;)if(S=L.pop(),S.ranges){if(Cp(S,P),h&&!S.equals(o.sel)){Pn(o,S,{clearRedo:!1});return}_=S}else if(p){L.push(S);return}else break;var G=[];Cp(_,P),P.push({changes:G,generation:m.generation}),m.generation=S.generation||++m.maxGeneration;for(var X=ce(o,"beforeChange")||o.cm&&ce(o.cm,"beforeChange"),ne=function(de){var ye=S.changes[de];if(ye.origin=u,X&&!PT(o,ye,!1))return L.length=0,{};G.push(Zy(o,ye));var Ee=de?Xy(o,ye):te(L);Wc(o,ye,Ee,ET(o,ye)),!de&&o.cm&&o.cm.scrollIntoView({from:ye.from,to:yo(ye)});var _e=[];wo(o,function(Ce,Re){!Re&&Oe(_e,Ce.history)==-1&&($T(Ce.history,ye),_e.push(Ce.history)),Wc(Ce,ye,null,ET(Ce,ye))})},J=S.changes.length-1;J>=0;--J){var ae=ne(J);if(ae)return ae.v}}}}function MT(o,u){if(u!=0&&(o.first+=u,o.sel=new Ir(oe(o.sel.ranges,function(m){return new bt(he(m.anchor.line+u,m.anchor.ch),he(m.head.line+u,m.head.ch))}),o.sel.primIndex),o.cm)){tr(o.cm,o.first,o.first-u,u);for(var h=o.cm.display,p=h.viewFrom;p<h.viewTo;p++)go(o.cm,p,"gutter")}}function Wc(o,u,h,p){if(o.cm&&!o.cm.curOp)return wn(o.cm,Wc)(o,u,h,p);if(u.to.line<o.first){MT(o,u.text.length-1-(u.to.line-u.from.line));return}if(!(u.from.line>o.lastLine())){if(u.from.line<o.first){var m=u.text.length-1-(o.first-u.from.line);MT(o,m),u={from:he(o.first,0),to:he(u.to.line+m,u.to.ch),text:[te(u.text)],origin:u.origin}}var S=o.lastLine();u.to.line>S&&(u={from:u.from,to:he(S,Fe(o,S).text.length),text:[u.text[0]],origin:u.origin}),u.removed=ya(o,u.from,u.to),h||(h=Xy(o,u)),o.cm?yU(o.cm,u,p):Jy(o,u,p),_p(o,h,ct),o.cantEdit&&Ap(o,he(o.firstLine(),0))&&(o.cantEdit=!1)}}function yU(o,u,h){var p=o.doc,m=o.display,S=u.from,_=u.to,L=!1,P=S.line;o.options.lineWrapping||(P=St(_i(Fe(p,S.line))),p.iter(P,_.line+1,function(J){if(J==m.maxLine)return L=!0,!0})),p.sel.contains(u.from,u.to)>-1&&se(o),Jy(p,u,h,ZC(o)),o.options.lineWrapping||(p.iter(P,S.line+u.text.length,function(J){var ae=fp(J);ae>m.maxLineLength&&(m.maxLine=J,m.maxLineLength=ae,m.maxLineChanged=!0,L=!1)}),L&&(o.curOp.updateMaxLine=!0)),aj(p,S.line),jc(o,400);var D=u.text.length-(_.line-S.line)-1;u.full?tr(o):S.line==_.line&&u.text.length==1&&!vT(o.doc,u)?go(o,S.line,"text"):tr(o,S.line,_.line+1,D);var G=ce(o,"changes"),X=ce(o,"change");if(X||G){var ne={from:S,to:_,text:u.text,removed:u.removed,origin:u.origin};X&&yn(o,"change",o,ne),G&&(o.curOp.changeObjs||(o.curOp.changeObjs=[])).push(ne)}o.display.selForContextMenu=null}function Nl(o,u,h,p,m){var S;p||(p=h),nt(p,h)<0&&(S=[p,h],h=S[0],p=S[1]),typeof u=="string"&&(u=o.splitLines(u)),Dl(o,{from:h,to:p,text:u,origin:m})}function DT(o,u,h,p){h<o.line?o.line+=p:u<o.line&&(o.line=u,o.ch=0)}function NT(o,u,h,p){for(var m=0;m<o.length;++m){var S=o[m],_=!0;if(S.ranges){S.copied||(S=o[m]=S.deepCopy(),S.copied=!0);for(var L=0;L<S.ranges.length;L++)DT(S.ranges[L].anchor,u,h,p),DT(S.ranges[L].head,u,h,p);continue}for(var P=0;P<S.changes.length;++P){var D=S.changes[P];if(h<D.from.line)D.from=he(D.from.line+p,D.from.ch),D.to=he(D.to.line+p,D.to.ch);else if(u<=D.to.line){_=!1;break}}_||(o.splice(0,m+1),m=0)}}function $T(o,u){var h=u.from.line,p=u.to.line,m=u.text.length-(p-h)-1;NT(o.done,h,p,m),NT(o.undone,h,p,m)}function Vc(o,u,h,p){var m=u,S=u;return typeof u=="number"?S=Fe(o,hC(o,u)):m=St(u),m==null?null:(p(S,m)&&o.cm&&go(o.cm,m,h),S)}function Kc(o){this.lines=o,this.parent=null;for(var u=0,h=0;h<o.length;++h)o[h].parent=this,u+=o[h].height;this.height=u}Kc.prototype={chunkSize:function(){return this.lines.length},removeInner:function(o,u){for(var h=o,p=o+u;h<p;++h){var m=this.lines[h];this.height-=m.height,wj(m),yn(m,"delete")}this.lines.splice(o,u)},collapse:function(o){o.push.apply(o,this.lines)},insertInner:function(o,u,h){this.height+=h,this.lines=this.lines.slice(0,o).concat(u).concat(this.lines.slice(o));for(var p=0;p<u.length;++p)u[p].parent=this},iterN:function(o,u,h){for(var p=o+u;o<p;++o)if(h(this.lines[o]))return!0}};function qc(o){this.children=o;for(var u=0,h=0,p=0;p<o.length;++p){var m=o[p];u+=m.chunkSize(),h+=m.height,m.parent=this}this.size=u,this.height=h,this.parent=null}qc.prototype={chunkSize:function(){return this.size},removeInner:function(o,u){this.size-=u;for(var h=0;h<this.children.length;++h){var p=this.children[h],m=p.chunkSize();if(o<m){var S=Math.min(u,m-o),_=p.height;if(p.removeInner(o,S),this.height-=_-p.height,m==S&&(this.children.splice(h--,1),p.parent=null),(u-=S)==0)break;o=0}else o-=m}if(this.size-u<25&&(this.children.length>1||!(this.children[0]instanceof Kc))){var L=[];this.collapse(L),this.children=[new Kc(L)],this.children[0].parent=this}},collapse:function(o){for(var u=0;u<this.children.length;++u)this.children[u].collapse(o)},insertInner:function(o,u,h){this.size+=u.length,this.height+=h;for(var p=0;p<this.children.length;++p){var m=this.children[p],S=m.chunkSize();if(o<=S){if(m.insertInner(o,u,h),m.lines&&m.lines.length>50){for(var _=m.lines.length%25+25,L=_;L<m.lines.length;){var P=new Kc(m.lines.slice(L,L+=25));m.height-=P.height,this.children.splice(++p,0,P),P.parent=this}m.lines=m.lines.slice(0,_),this.maybeSpill()}break}o-=S}},maybeSpill:function(){if(!(this.children.length<=10)){var o=this;do{var u=o.children.splice(o.children.length-5,5),h=new qc(u);if(o.parent){o.size-=h.size,o.height-=h.height;var m=Oe(o.parent.children,o);o.parent.children.splice(m+1,0,h)}else{var p=new qc(o.children);p.parent=o,o.children=[p,h],o=p}h.parent=o.parent}while(o.children.length>10);o.parent.maybeSpill()}},iterN:function(o,u,h){for(var p=0;p<this.children.length;++p){var m=this.children[p],S=m.chunkSize();if(o<S){var _=Math.min(u,S-o);if(m.iterN(o,_,h))return!0;if((u-=_)==0)break;o=0}else o-=S}}};var Gc=function(o,u,h){if(h)for(var p in h)h.hasOwnProperty(p)&&(this[p]=h[p]);this.doc=o,this.node=u};Gc.prototype.clear=function(){var o=this.doc.cm,u=this.line.widgets,h=this.line,p=St(h);if(!(p==null||!u)){for(var m=0;m<u.length;++m)u[m]==this&&u.splice(m--,1);u.length||(h.widgets=null);var S=Mc(this);ns(h,Math.max(0,h.height-S)),o&&(mr(o,function(){FT(o,h,-S),go(o,p,"widget")}),yn(o,"lineWidgetCleared",o,this,p))}},Gc.prototype.changed=function(){var o=this,u=this.height,h=this.doc.cm,p=this.line;this.height=null;var m=Mc(this)-u;m&&(ho(this.doc,p)||ns(p,p.height+m),h&&mr(h,function(){h.curOp.forceUpdate=!0,FT(h,p,m),yn(h,"lineWidgetChanged",h,o,St(p))}))},xe(Gc);function FT(o,u,h){As(u)<(o.curOp&&o.curOp.scrollTop||o.doc.scrollTop)&&Wy(o,h)}function wU(o,u,h,p){var m=new Gc(o,h,p),S=o.cm;return S&&m.noHScroll&&(S.display.alignWidgets=!0),Vc(o,u,"widget",function(_){var L=_.widgets||(_.widgets=[]);if(m.insertAt==null?L.push(m):L.splice(Math.min(L.length,Math.max(0,m.insertAt)),0,m),m.line=_,S&&!ho(o,_)){var P=As(_)<o.scrollTop;ns(_,_.height+Mc(m)),P&&Wy(S,m.height),S.curOp.forceUpdate=!0}return!0}),S&&yn(S,"lineWidgetAdded",S,m,typeof u=="number"?u:St(u)),m}var zT=0,bo=function(o,u){this.lines=[],this.type=u,this.doc=o,this.id=++zT};bo.prototype.clear=function(){if(!this.explicitlyCleared){var o=this.doc.cm,u=o&&!o.curOp;if(u&&_a(o),ce(this,"clear")){var h=this.find();h&&yn(this,"clear",h.from,h.to)}for(var p=null,m=null,S=0;S<this.lines.length;++S){var _=this.lines[S],L=Ic(_.markedSpans,this);o&&!this.collapsed?go(o,St(_),"text"):o&&(L.to!=null&&(m=St(_)),L.from!=null&&(p=St(_))),_.markedSpans=cj(_.markedSpans,L),L.from==null&&this.collapsed&&!ho(this.doc,_)&&o&&ns(_,kl(o.display))}if(o&&this.collapsed&&!o.options.lineWrapping)for(var P=0;P<this.lines.length;++P){var D=_i(this.lines[P]),G=fp(D);G>o.display.maxLineLength&&(o.display.maxLine=D,o.display.maxLineLength=G,o.display.maxLineChanged=!0)}p!=null&&o&&this.collapsed&&tr(o,p,m+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,o&&kT(o.doc)),o&&yn(o,"markerCleared",o,this,p,m),u&&Aa(o),this.parent&&this.parent.clear()}},bo.prototype.find=function(o,u){o==null&&this.type=="bookmark"&&(o=1);for(var h,p,m=0;m<this.lines.length;++m){var S=this.lines[m],_=Ic(S.markedSpans,this);if(_.from!=null&&(h=he(u?S:St(S),_.from),o==-1))return h;if(_.to!=null&&(p=he(u?S:St(S),_.to),o==1))return p}return h&&{from:h,to:p}},bo.prototype.changed=function(){var o=this,u=this.find(-1,!0),h=this,p=this.doc.cm;!u||!p||mr(p,function(){var m=u.line,S=St(u.line),_=Iy(p,S);if(_&&(VC(_),p.curOp.selectionChanged=p.curOp.forceUpdate=!0),p.curOp.updateMaxLine=!0,!ho(h.doc,m)&&h.height!=null){var L=h.height;h.height=null;var P=Mc(h)-L;P&&ns(m,m.height+P)}yn(p,"markerChanged",p,o)})},bo.prototype.attachLine=function(o){if(!this.lines.length&&this.doc.cm){var u=this.doc.cm.curOp;(!u.maybeHiddenMarkers||Oe(u.maybeHiddenMarkers,this)==-1)&&(u.maybeUnhiddenMarkers||(u.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(o)},bo.prototype.detachLine=function(o){if(this.lines.splice(Oe(this.lines,o),1),!this.lines.length&&this.doc.cm){var u=this.doc.cm.curOp;(u.maybeHiddenMarkers||(u.maybeHiddenMarkers=[])).push(this)}},xe(bo);function $l(o,u,h,p,m){if(p&&p.shared)return bU(o,u,h,p,m);if(o.cm&&!o.cm.curOp)return wn(o.cm,$l)(o,u,h,p,m);var S=new bo(o,m),_=nt(u,h);if(p&&it(p,S,!1),_>0||_==0&&S.clearWhenEmpty!==!1)return S;if(S.replacedWith&&(S.collapsed=!0,S.widgetNode=q("span",[S.replacedWith],"CodeMirror-widget"),p.handleMouseEvents||S.widgetNode.setAttribute("cm-ignore-events","true"),p.insertLeft&&(S.widgetNode.insertLeft=!0)),S.collapsed){if(LC(o,u.line,u,h,S)||u.line!=h.line&&LC(o,h.line,u,h,S))throw new Error("Inserting collapsed marker partially overlapping an existing one");uj()}S.addToHistory&&xT(o,{from:u,to:h,origin:"markText"},o.sel,NaN);var L=u.line,P=o.cm,D;if(o.iter(L,h.line+1,function(X){P&&S.collapsed&&!P.options.lineWrapping&&_i(X)==P.display.maxLine&&(D=!0),S.collapsed&&L!=u.line&&ns(X,0),fj(X,new ap(S,L==u.line?u.ch:null,L==h.line?h.ch:null),o.cm&&o.cm.curOp),++L}),S.collapsed&&o.iter(u.line,h.line+1,function(X){ho(o,X)&&ns(X,0)}),S.clearOnEnter&&Ue(S,"beforeCursorEnter",function(){return S.clear()}),S.readOnly&&(lj(),(o.history.done.length||o.history.undone.length)&&o.clearHistory()),S.collapsed&&(S.id=++zT,S.atomic=!0),P){if(D&&(P.curOp.updateMaxLine=!0),S.collapsed)tr(P,u.line,h.line+1);else if(S.className||S.startStyle||S.endStyle||S.css||S.attributes||S.title)for(var G=u.line;G<=h.line;G++)go(P,G,"text");S.atomic&&kT(P.doc),yn(P,"markerAdded",P,S)}return S}var Yc=function(o,u){this.markers=o,this.primary=u;for(var h=0;h<o.length;++h)o[h].parent=this};Yc.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var o=0;o<this.markers.length;++o)this.markers[o].clear();yn(this,"clear")}},Yc.prototype.find=function(o,u){return this.primary.find(o,u)},xe(Yc);function bU(o,u,h,p,m){p=it(p),p.shared=!1;var S=[$l(o,u,h,p,m)],_=S[0],L=p.widgetNode;return wo(o,function(P){L&&(p.widgetNode=L.cloneNode(!0)),S.push($l(P,rt(P,u),rt(P,h),p,m));for(var D=0;D<P.linked.length;++D)if(P.linked[D].isParent)return;_=te(S)}),new Yc(S,_)}function BT(o){return o.findMarks(he(o.first,0),o.clipPos(he(o.lastLine())),function(u){return u.parent})}function xU(o,u){for(var h=0;h<u.length;h++){var p=u[h],m=p.find(),S=o.clipPos(m.from),_=o.clipPos(m.to);if(nt(S,_)){var L=$l(o,S,_,p.primary,p.primary.type);p.markers.push(L),L.parent=p}}}function SU(o){for(var u=function(p){var m=o[p],S=[m.primary.doc];wo(m.primary.doc,function(P){return S.push(P)});for(var _=0;_<m.markers.length;_++){var L=m.markers[_];Oe(S,L.doc)==-1&&(L.parent=null,m.markers.splice(_--,1))}},h=0;h<o.length;h++)u(h)}var EU=0,nr=function(o,u,h,p,m){if(!(this instanceof nr))return new nr(o,u,h,p,m);h==null&&(h=0),qc.call(this,[new Kc([new Tl("",null)])]),this.first=h,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=h;var S=he(h,0);this.sel=vo(S),this.history=new Ep(null),this.id=++EU,this.modeOption=u,this.lineSep=p,this.direction=m=="rtl"?"rtl":"ltr",this.extend=!1,typeof o=="string"&&(o=this.splitLines(o)),Jy(this,{from:S,to:S,text:o}),Pn(this,vo(S),ct)};nr.prototype=re(qc.prototype,{constructor:nr,iter:function(o,u,h){h?this.iterN(o-this.first,u-o,h):this.iterN(this.first,this.first+this.size,o)},insert:function(o,u){for(var h=0,p=0;p<u.length;++p)h+=u[p].height;this.insertInner(o-this.first,u,h)},remove:function(o,u){this.removeInner(o-this.first,u)},getValue:function(o){var u=vy(this,this.first,this.first+this.size);return o===!1?u:u.join(o||this.lineSeparator())},setValue:bn(function(o){var u=he(this.first,0),h=this.first+this.size-1;Dl(this,{from:u,to:he(h,Fe(this,h).text.length),text:this.splitLines(o),origin:"setValue",full:!0},!0),this.cm&&$c(this.cm,0,0),Pn(this,vo(u),ct)}),replaceRange:function(o,u,h,p){u=rt(this,u),h=h?rt(this,h):u,Nl(this,o,u,h,p)},getRange:function(o,u,h){var p=ya(this,rt(this,o),rt(this,u));return h===!1?p:h===""?p.join(""):p.join(h||this.lineSeparator())},getLine:function(o){var u=this.getLineHandle(o);return u&&u.text},getLineHandle:function(o){if(Lc(this,o))return Fe(this,o)},getLineNumber:function(o){return St(o)},getLineHandleVisualStart:function(o){return typeof o=="number"&&(o=Fe(this,o)),_i(o)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(o){return rt(this,o)},getCursor:function(o){var u=this.sel.primary(),h;return o==null||o=="head"?h=u.head:o=="anchor"?h=u.anchor:o=="end"||o=="to"||o===!1?h=u.to():h=u.from(),h},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:bn(function(o,u,h){TT(this,rt(this,typeof o=="number"?he(o,u||0):o),null,h)}),setSelection:bn(function(o,u,h){TT(this,rt(this,o),rt(this,u||o),h)}),extendSelection:bn(function(o,u,h){Tp(this,rt(this,o),u&&rt(this,u),h)}),extendSelections:bn(function(o,u){CT(this,gC(this,o),u)}),extendSelectionsBy:bn(function(o,u){var h=oe(this.sel.ranges,o);CT(this,gC(this,h),u)}),setSelections:bn(function(o,u,h){if(o.length){for(var p=[],m=0;m<o.length;m++)p[m]=new bt(rt(this,o[m].anchor),rt(this,o[m].head||o[m].anchor));u==null&&(u=Math.min(o.length-1,this.sel.primIndex)),Pn(this,ki(this.cm,p,u),h)}}),addSelection:bn(function(o,u,h){var p=this.sel.ranges.slice(0);p.push(new bt(rt(this,o),rt(this,u||o))),Pn(this,ki(this.cm,p,p.length-1),h)}),getSelection:function(o){for(var u=this.sel.ranges,h,p=0;p<u.length;p++){var m=ya(this,u[p].from(),u[p].to());h=h?h.concat(m):m}return o===!1?h:h.join(o||this.lineSeparator())},getSelections:function(o){for(var u=[],h=this.sel.ranges,p=0;p<h.length;p++){var m=ya(this,h[p].from(),h[p].to());o!==!1&&(m=m.join(o||this.lineSeparator())),u[p]=m}return u},replaceSelection:function(o,u,h){for(var p=[],m=0;m<this.sel.ranges.length;m++)p[m]=o;this.replaceSelections(p,u,h||"+input")},replaceSelections:bn(function(o,u,h){for(var p=[],m=this.sel,S=0;S<m.ranges.length;S++){var _=m.ranges[S];p[S]={from:_.from(),to:_.to(),text:this.splitLines(o[S]),origin:h}}for(var L=u&&u!="end"&&cU(this,p,u),P=p.length-1;P>=0;P--)Dl(this,p[P]);L?_T(this,L):this.cm&&Il(this.cm)}),undo:bn(function(){kp(this,"undo")}),redo:bn(function(){kp(this,"redo")}),undoSelection:bn(function(){kp(this,"undo",!0)}),redoSelection:bn(function(){kp(this,"redo",!0)}),setExtending:function(o){this.extend=o},getExtending:function(){return this.extend},historySize:function(){for(var o=this.history,u=0,h=0,p=0;p<o.done.length;p++)o.done[p].ranges||++u;for(var m=0;m<o.undone.length;m++)o.undone[m].ranges||++h;return{undo:u,redo:h}},clearHistory:function(){var o=this;this.history=new Ep(this.history),wo(this,function(u){return u.history=o.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(o){return o&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(o){return this.history.generation==(o||this.cleanGeneration)},getHistory:function(){return{done:Rl(this.history.done),undone:Rl(this.history.undone)}},setHistory:function(o){var u=this.history=new Ep(this.history);u.done=Rl(o.done.slice(0),null,!0),u.undone=Rl(o.undone.slice(0),null,!0)},setGutterMarker:bn(function(o,u,h){return Vc(this,o,"gutter",function(p){var m=p.gutterMarkers||(p.gutterMarkers={});return m[u]=h,!h&&ht(m)&&(p.gutterMarkers=null),!0})}),clearGutter:bn(function(o){var u=this;this.iter(function(h){h.gutterMarkers&&h.gutterMarkers[o]&&Vc(u,h,"gutter",function(){return h.gutterMarkers[o]=null,ht(h.gutterMarkers)&&(h.gutterMarkers=null),!0})})}),lineInfo:function(o){var u;if(typeof o=="number"){if(!Lc(this,o)||(u=o,o=Fe(this,o),!o))return null}else if(u=St(o),u==null)return null;return{line:u,handle:o,text:o.text,gutterMarkers:o.gutterMarkers,textClass:o.textClass,bgClass:o.bgClass,wrapClass:o.wrapClass,widgets:o.widgets}},addLineClass:bn(function(o,u,h){return Vc(this,o,u=="gutter"?"gutter":"class",function(p){var m=u=="text"?"textClass":u=="background"?"bgClass":u=="gutter"?"gutterClass":"wrapClass";if(!p[m])p[m]=h;else{if(H(h).test(p[m]))return!1;p[m]+=" "+h}return!0})}),removeLineClass:bn(function(o,u,h){return Vc(this,o,u=="gutter"?"gutter":"class",function(p){var m=u=="text"?"textClass":u=="background"?"bgClass":u=="gutter"?"gutterClass":"wrapClass",S=p[m];if(S)if(h==null)p[m]=null;else{var _=S.match(H(h));if(!_)return!1;var L=_.index+_[0].length;p[m]=S.slice(0,_.index)+(!_.index||L==S.length?"":" ")+S.slice(L)||null}else return!1;return!0})}),addLineWidget:bn(function(o,u,h){return wU(this,o,u,h)}),removeLineWidget:function(o){o.clear()},markText:function(o,u,h){return $l(this,rt(this,o),rt(this,u),h,h&&h.type||"range")},setBookmark:function(o,u){var h={replacedWith:u&&(u.nodeType==null?u.widget:u),insertLeft:u&&u.insertLeft,clearWhenEmpty:!1,shared:u&&u.shared,handleMouseEvents:u&&u.handleMouseEvents};return o=rt(this,o),$l(this,o,o,h,"bookmark")},findMarksAt:function(o){o=rt(this,o);var u=[],h=Fe(this,o.line).markedSpans;if(h)for(var p=0;p<h.length;++p){var m=h[p];(m.from==null||m.from<=o.ch)&&(m.to==null||m.to>=o.ch)&&u.push(m.marker.parent||m.marker)}return u},findMarks:function(o,u,h){o=rt(this,o),u=rt(this,u);var p=[],m=o.line;return this.iter(o.line,u.line+1,function(S){var _=S.markedSpans;if(_)for(var L=0;L<_.length;L++){var P=_[L];!(P.to!=null&&m==o.line&&o.ch>=P.to||P.from==null&&m!=o.line||P.from!=null&&m==u.line&&P.from>=u.ch)&&(!h||h(P.marker))&&p.push(P.marker.parent||P.marker)}++m}),p},getAllMarks:function(){var o=[];return this.iter(function(u){var h=u.markedSpans;if(h)for(var p=0;p<h.length;++p)h[p].from!=null&&o.push(h[p].marker)}),o},posFromIndex:function(o){var u,h=this.first,p=this.lineSeparator().length;return this.iter(function(m){var S=m.text.length+p;if(S>o)return u=o,!0;o-=S,++h}),rt(this,he(h,u))},indexFromPos:function(o){o=rt(this,o);var u=o.ch;if(o.line<this.first||o.ch<0)return 0;var h=this.lineSeparator().length;return this.iter(this.first,o.line,function(p){u+=p.text.length+h}),u},copy:function(o){var u=new nr(vy(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return u.scrollTop=this.scrollTop,u.scrollLeft=this.scrollLeft,u.sel=this.sel,u.extend=!1,o&&(u.history.undoDepth=this.history.undoDepth,u.setHistory(this.getHistory())),u},linkedDoc:function(o){o||(o={});var u=this.first,h=this.first+this.size;o.from!=null&&o.from>u&&(u=o.from),o.to!=null&&o.to<h&&(h=o.to);var p=new nr(vy(this,u,h),o.mode||this.modeOption,u,this.lineSep,this.direction);return o.sharedHist&&(p.history=this.history),(this.linked||(this.linked=[])).push({doc:p,sharedHist:o.sharedHist}),p.linked=[{doc:this,isParent:!0,sharedHist:o.sharedHist}],xU(p,BT(this)),p},unlinkDoc:function(o){if(o instanceof $t&&(o=o.doc),this.linked)for(var u=0;u<this.linked.length;++u){var h=this.linked[u];if(h.doc==o){this.linked.splice(u,1),o.unlinkDoc(this),SU(BT(this));break}}if(o.history==this.history){var p=[o.id];wo(o,function(m){return p.push(m.id)},!0),o.history=new Ep(null),o.history.done=Rl(this.history.done,p),o.history.undone=Rl(this.history.undone,p)}},iterLinkedDocs:function(o){wo(this,o)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(o){return this.lineSep?o.split(this.lineSep):en(o)},lineSeparator:function(){return this.lineSep||`
128`},setDirection:bn(function(o){o!="rtl"&&(o="ltr"),o!=this.direction&&(this.direction=o,this.iter(function(u){return u.order=null}),this.cm&&fU(this.cm))})}),nr.prototype.eachLine=nr.prototype.iter;var jT=0;function CU(o){var u=this;if(UT(u),!(ee(u,o)||ks(u.display,o))){ke(o),c&&(jT=+new Date);var h=Sa(u,o,!0),p=o.dataTransfer.files;if(!(!h||u.isReadOnly()))if(p&&p.length&&window.FileReader&&window.File)for(var m=p.length,S=Array(m),_=0,L=function(){++_==m&&wn(u,function(){h=rt(u.doc,h);var J={from:h,to:h,text:u.doc.splitLines(S.filter(function(ae){return ae!=null}).join(u.doc.lineSeparator())),origin:"paste"};Dl(u.doc,J),_T(u.doc,vo(rt(u.doc,h),rt(u.doc,yo(J))))})()},P=function(J,ae){if(u.options.allowDropFileTypes&&Oe(u.options.allowDropFileTypes,J.type)==-1){L();return}var de=new FileReader;de.onerror=function(){return L()},de.onload=function(){var ye=de.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(ye)){L();return}S[ae]=ye,L()},de.readAsText(J)},D=0;D<p.length;D++)P(p[D],D);else{if(u.state.draggingText&&u.doc.sel.contains(h)>-1){u.state.draggingText(o),setTimeout(function(){return u.display.input.focus()},20);return}try{var G=o.dataTransfer.getData("Text");if(G){var X;if(u.state.draggingText&&!u.state.draggingText.copy&&(X=u.listSelections()),_p(u.doc,vo(h,h)),X)for(var ne=0;ne<X.length;++ne)Nl(u.doc,"",X[ne].anchor,X[ne].head,"drag");u.replaceSelection(G,"around","paste"),u.display.input.focus()}}catch{}}}}function TU(o,u){if(c&&(!o.state.draggingText||+new Date-jT<100)){Ke(u);return}if(!(ee(o,u)||ks(o.display,u))&&(u.dataTransfer.setData("Text",o.getSelection()),u.dataTransfer.effectAllowed="copyMove",u.dataTransfer.setDragImage&&!T)){var h=M("img",null,null,"position: fixed; left: 0; top: 0;");h.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",w&&(h.width=h.height=1,o.display.wrapper.appendChild(h),h._top=h.offsetTop),u.dataTransfer.setDragImage(h,0,0),w&&h.parentNode.removeChild(h)}}function _U(o,u){var h=Sa(o,u);if(h){var p=document.createDocumentFragment();zy(o,h,p),o.display.dragCursor||(o.display.dragCursor=M("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),o.display.lineSpace.insertBefore(o.display.dragCursor,o.display.cursorDiv)),z(o.display.dragCursor,p)}}function UT(o){o.display.dragCursor&&(o.display.lineSpace.removeChild(o.display.dragCursor),o.display.dragCursor=null)}function HT(o){if(document.getElementsByClassName){for(var u=document.getElementsByClassName("CodeMirror"),h=[],p=0;p<u.length;p++){var m=u[p].CodeMirror;m&&h.push(m)}h.length&&h[0].operation(function(){for(var S=0;S<h.length;S++)o(h[S])})}}var WT=!1;function AU(){WT||(kU(),WT=!0)}function kU(){var o;Ue(window,"resize",function(){o==null&&(o=setTimeout(function(){o=null,HT(LU)},100))}),Ue(window,"blur",function(){return HT(Ol)})}function LU(o){var u=o.display;u.cachedCharWidth=u.cachedTextHeight=u.cachedPaddingH=null,u.scrollbarsClipped=!1,o.setSize()}for(var xo={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Xc=0;Xc<10;Xc++)xo[Xc+48]=xo[Xc+96]=String(Xc);for(var Lp=65;Lp<=90;Lp++)xo[Lp]=String.fromCharCode(Lp);for(var Qc=1;Qc<=12;Qc++)xo[Qc+111]=xo[Qc+63235]="F"+Qc;var Os={};Os.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Os.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Os.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Os.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Os.default=O?Os.macDefault:Os.pcDefault;function OU(o){var u=o.split(/-(?!$)/);o=u[u.length-1];for(var h,p,m,S,_=0;_<u.length-1;_++){var L=u[_];if(/^(cmd|meta|m)$/i.test(L))S=!0;else if(/^a(lt)?$/i.test(L))h=!0;else if(/^(c|ctrl|control)$/i.test(L))p=!0;else if(/^s(hift)?$/i.test(L))m=!0;else throw new Error("Unrecognized modifier name: "+L)}return h&&(o="Alt-"+o),p&&(o="Ctrl-"+o),S&&(o="Cmd-"+o),m&&(o="Shift-"+o),o}function IU(o){var u={};for(var h in o)if(o.hasOwnProperty(h)){var p=o[h];if(/^(name|fallthrough|(de|at)tach)$/.test(h))continue;if(p=="..."){delete o[h];continue}for(var m=oe(h.split(" "),OU),S=0;S<m.length;S++){var _=void 0,L=void 0;S==m.length-1?(L=m.join(" "),_=p):(L=m.slice(0,S+1).join(" "),_="...");var P=u[L];if(!P)u[L]=_;else if(P!=_)throw new Error("Inconsistent bindings for "+L)}delete o[h]}for(var D in u)o[D]=u[D];return o}function Fl(o,u,h,p){u=Op(u);var m=u.call?u.call(o,p):u[o];if(m===!1)return"nothing";if(m==="...")return"multi";if(m!=null&&h(m))return"handled";if(u.fallthrough){if(Object.prototype.toString.call(u.fallthrough)!="[object Array]")return Fl(o,u.fallthrough,h,p);for(var S=0;S<u.fallthrough.length;S++){var _=Fl(o,u.fallthrough[S],h,p);if(_)return _}}}function VT(o){var u=typeof o=="string"?o:xo[o.keyCode];return u=="Ctrl"||u=="Alt"||u=="Shift"||u=="Mod"}function KT(o,u,h){var p=o;return u.altKey&&p!="Alt"&&(o="Alt-"+o),(j?u.metaKey:u.ctrlKey)&&p!="Ctrl"&&(o="Ctrl-"+o),(j?u.ctrlKey:u.metaKey)&&p!="Mod"&&(o="Cmd-"+o),!h&&u.shiftKey&&p!="Shift"&&(o="Shift-"+o),o}function qT(o,u){if(w&&o.keyCode==34&&o.char)return!1;var h=xo[o.keyCode];return h==null||o.altGraphKey?!1:(o.keyCode==3&&o.code&&(h=o.code),KT(h,o,u))}function Op(o){return typeof o=="string"?Os[o]:o}function zl(o,u){for(var h=o.doc.sel.ranges,p=[],m=0;m<h.length;m++){for(var S=u(h[m]);p.length&&nt(S.from,te(p).to)<=0;){var _=p.pop();if(nt(_.from,S.from)<0){S.from=_.from;break}}p.push(S)}mr(o,function(){for(var L=p.length-1;L>=0;L--)Nl(o.doc,"",p[L].from,p[L].to,"+delete");Il(o)})}function nw(o,u,h){var p=Or(o.text,u+h,h);return p<0||p>o.text.length?null:p}function rw(o,u,h){var p=nw(o,u.ch,h);return p==null?null:new he(u.line,p,h<0?"after":"before")}function iw(o,u,h,p,m){if(o){u.doc.direction=="rtl"&&(m=-m);var S=In(h,u.doc.direction);if(S){var _=m<0?te(S):S[0],L=m<0==(_.level==1),P=L?"after":"before",D;if(_.level>0||u.doc.direction=="rtl"){var G=Al(u,h);D=m<0?h.text.length-1:0;var X=ss(u,G,D).top;D=jn(function(ne){return ss(u,G,ne).top==X},m<0==(_.level==1)?_.from:_.to-1,D),P=="before"&&(D=nw(h,D,1))}else D=m<0?_.to:_.from;return new he(p,D,P)}}return new he(p,m<0?h.text.length:0,m<0?"before":"after")}function PU(o,u,h,p){var m=In(u,o.doc.direction);if(!m)return rw(u,h,p);h.ch>=u.text.length?(h.ch=u.text.length,h.sticky="before"):h.ch<=0&&(h.ch=0,h.sticky="after");var S=Hn(m,h.ch,h.sticky),_=m[S];if(o.doc.direction=="ltr"&&_.level%2==0&&(p>0?_.to>h.ch:_.from<h.ch))return rw(u,h,p);var L=function(Ee,_e){return nw(u,Ee instanceof he?Ee.ch:Ee,_e)},P,D=function(Ee){return o.options.lineWrapping?(P=P||Al(o,u),JC(o,u,P,Ee)):{begin:0,end:u.text.length}},G=D(h.sticky=="before"?L(h,-1):h.ch);if(o.doc.direction=="rtl"||_.level==1){var X=_.level==1==p<0,ne=L(h,X?1:-1);if(ne!=null&&(X?ne<=_.to&&ne<=G.end:ne>=_.from&&ne>=G.begin)){var J=X?"before":"after";return new he(h.line,ne,J)}}var ae=function(Ee,_e,Ce){for(var Re=function(kt,xn){return xn?new he(h.line,L(kt,1),"before"):new he(h.line,kt,"after")};Ee>=0&&Ee<m.length;Ee+=_e){var We=m[Ee],Be=_e>0==(We.level!=1),at=Be?Ce.begin:L(Ce.end,-1);if(We.from<=at&&at<We.to||(at=Be?We.from:L(We.to,-1),Ce.begin<=at&&at<Ce.end))return Re(at,Be)}},de=ae(S+p,p,G);if(de)return de;var ye=p>0?G.end:L(G.begin,-1);return ye!=null&&!(p>0&&ye==u.text.length)&&(de=ae(p>0?0:m.length-1,p,D(ye)),de)?de:null}var Jc={selectAll:IT,singleSelection:function(o){return o.setSelection(o.getCursor("anchor"),o.getCursor("head"),ct)},killLine:function(o){return zl(o,function(u){if(u.empty()){var h=Fe(o.doc,u.head.line).text.length;return u.head.ch==h&&u.head.line<o.lastLine()?{from:u.head,to:he(u.head.line+1,0)}:{from:u.head,to:he(u.head.line,h)}}else return{from:u.from(),to:u.to()}})},deleteLine:function(o){return zl(o,function(u){return{from:he(u.from().line,0),to:rt(o.doc,he(u.to().line+1,0))}})},delLineLeft:function(o){return zl(o,function(u){return{from:he(u.from().line,0),to:u.from()}})},delWrappedLineLeft:function(o){return zl(o,function(u){var h=o.charCoords(u.head,"div").top+5,p=o.coordsChar({left:0,top:h},"div");return{from:p,to:u.from()}})},delWrappedLineRight:function(o){return zl(o,function(u){var h=o.charCoords(u.head,"div").top+5,p=o.coordsChar({left:o.display.lineDiv.offsetWidth+100,top:h},"div");return{from:u.from(),to:p}})},undo:function(o){return o.undo()},redo:function(o){return o.redo()},undoSelection:function(o){return o.undoSelection()},redoSelection:function(o){return o.redoSelection()},goDocStart:function(o){return o.extendSelection(he(o.firstLine(),0))},goDocEnd:function(o){return o.extendSelection(he(o.lastLine()))},goLineStart:function(o){return o.extendSelectionsBy(function(u){return GT(o,u.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(o){return o.extendSelectionsBy(function(u){return YT(o,u.head)},{origin:"+move",bias:1})},goLineEnd:function(o){return o.extendSelectionsBy(function(u){return RU(o,u.head.line)},{origin:"+move",bias:-1})},goLineRight:function(o){return o.extendSelectionsBy(function(u){var h=o.cursorCoords(u.head,"div").top+5;return o.coordsChar({left:o.display.lineDiv.offsetWidth+100,top:h},"div")},Tt)},goLineLeft:function(o){return o.extendSelectionsBy(function(u){var h=o.cursorCoords(u.head,"div").top+5;return o.coordsChar({left:0,top:h},"div")},Tt)},goLineLeftSmart:function(o){return o.extendSelectionsBy(function(u){var h=o.cursorCoords(u.head,"div").top+5,p=o.coordsChar({left:0,top:h},"div");return p.ch<o.getLine(p.line).search(/\S/)?YT(o,u.head):p},Tt)},goLineUp:function(o){return o.moveV(-1,"line")},goLineDown:function(o){return o.moveV(1,"line")},goPageUp:function(o){return o.moveV(-1,"page")},goPageDown:function(o){return o.moveV(1,"page")},goCharLeft:function(o){return o.moveH(-1,"char")},goCharRight:function(o){return o.moveH(1,"char")},goColumnLeft:function(o){return o.moveH(-1,"column")},goColumnRight:function(o){return o.moveH(1,"column")},goWordLeft:function(o){return o.moveH(-1,"word")},goGroupRight:function(o){return o.moveH(1,"group")},goGroupLeft:function(o){return o.moveH(-1,"group")},goWordRight:function(o){return o.moveH(1,"word")},delCharBefore:function(o){return o.deleteH(-1,"codepoint")},delCharAfter:function(o){return o.deleteH(1,"char")},delWordBefore:function(o){return o.deleteH(-1,"word")},delWordAfter:function(o){return o.deleteH(1,"word")},delGroupBefore:function(o){return o.deleteH(-1,"group")},delGroupAfter:function(o){return o.deleteH(1,"group")},indentAuto:function(o){return o.indentSelection("smart")},indentMore:function(o){return o.indentSelection("add")},indentLess:function(o){return o.indentSelection("subtract")},insertTab:function(o){return o.replaceSelection("	")},insertSoftTab:function(o){for(var u=[],h=o.listSelections(),p=o.options.tabSize,m=0;m<h.length;m++){var S=h[m].from(),_=qe(o.getLine(S.line),S.ch,p);u.push(Q(p-_%p))}o.replaceSelections(u)},defaultTab:function(o){o.somethingSelected()?o.indentSelection("add"):o.execCommand("insertTab")},transposeChars:function(o){return mr(o,function(){for(var u=o.listSelections(),h=[],p=0;p<u.length;p++)if(u[p].empty()){var m=u[p].head,S=Fe(o.doc,m.line).text;if(S){if(m.ch==S.length&&(m=new he(m.line,m.ch-1)),m.ch>0)m=new he(m.line,m.ch+1),o.replaceRange(S.charAt(m.ch-1)+S.charAt(m.ch-2),he(m.line,m.ch-2),m,"+transpose");else if(m.line>o.doc.first){var _=Fe(o.doc,m.line-1).text;_&&(m=new he(m.line,1),o.replaceRange(S.charAt(0)+o.doc.lineSeparator()+_.charAt(_.length-1),he(m.line-1,_.length-1),m,"+transpose"))}}h.push(new bt(m,m))}o.setSelections(h)})},newlineAndIndent:function(o){return mr(o,function(){for(var u=o.listSelections(),h=u.length-1;h>=0;h--)o.replaceRange(o.doc.lineSeparator(),u[h].anchor,u[h].head,"+input");u=o.listSelections();for(var p=0;p<u.length;p++)o.indentLine(u[p].from().line,null,!0);Il(o)})},openLine:function(o){return o.replaceSelection(`
129`,"start")},toggleOverwrite:function(o){return o.toggleOverwrite()}};function GT(o,u){var h=Fe(o.doc,u),p=_i(h);return p!=h&&(u=St(p)),iw(!0,o,p,u,1)}function RU(o,u){var h=Fe(o.doc,u),p=mj(h);return p!=h&&(u=St(p)),iw(!0,o,h,u,-1)}function YT(o,u){var h=GT(o,u.line),p=Fe(o.doc,h.line),m=In(p,o.doc.direction);if(!m||m[0].level==0){var S=Math.max(h.ch,p.text.search(/\S/)),_=u.line==h.line&&u.ch<=S&&u.ch;return he(h.line,_?0:S,h.sticky)}return h}function Ip(o,u,h){if(typeof u=="string"&&(u=Jc[u],!u))return!1;o.display.input.ensurePolled();var p=o.display.shift,m=!1;try{o.isReadOnly()&&(o.state.suppressEdits=!0),h&&(o.display.shift=!1),m=u(o)!=et}finally{o.display.shift=p,o.state.suppressEdits=!1}return m}function MU(o,u,h){for(var p=0;p<o.state.keyMaps.length;p++){var m=Fl(u,o.state.keyMaps[p],h,o);if(m)return m}return o.options.extraKeys&&Fl(u,o.options.extraKeys,h,o)||Fl(u,o.options.keyMap,h,o)}var DU=new Le;function Zc(o,u,h,p){var m=o.state.keySeq;if(m){if(VT(u))return"handled";if(/\'$/.test(u)?o.state.keySeq=null:DU.set(50,function(){o.state.keySeq==m&&(o.state.keySeq=null,o.display.input.reset())}),XT(o,m+" "+u,h,p))return!0}return XT(o,u,h,p)}function XT(o,u,h,p){var m=MU(o,u,p);return m=="multi"&&(o.state.keySeq=u),m=="handled"&&yn(o,"keyHandled",o,u,h),(m=="handled"||m=="multi")&&(ke(h),By(o)),!!m}function QT(o,u){var h=qT(u,!0);return h?u.shiftKey&&!o.state.keySeq?Zc(o,"Shift-"+h,u,function(p){return Ip(o,p,!0)})||Zc(o,h,u,function(p){if(typeof p=="string"?/^go[A-Z]/.test(p):p.motion)return Ip(o,p)}):Zc(o,h,u,function(p){return Ip(o,p)}):!1}function NU(o,u,h){return Zc(o,"'"+h+"'",u,function(p){return Ip(o,p,!0)})}var sw=null;function JT(o){var u=this;if(!(o.target&&o.target!=u.display.input.getField())&&(u.curOp.focus=Y(ie(u)),!ee(u,o))){c&&f<11&&o.keyCode==27&&(o.returnValue=!1);var h=o.keyCode;u.display.shift=h==16||o.shiftKey;var p=QT(u,o);w&&(sw=p?h:null,!p&&h==88&&!Ac&&(O?o.metaKey:o.ctrlKey)&&u.replaceSelection("",null,"cut")),i&&!O&&!p&&h==46&&o.shiftKey&&!o.ctrlKey&&document.execCommand&&document.execCommand("cut"),h==18&&!/\bCodeMirror-crosshair\b/.test(u.display.lineDiv.className)&&$U(u)}}function $U(o){var u=o.display.lineDiv;Z(u,"CodeMirror-crosshair");function h(p){(p.keyCode==18||!p.altKey)&&(V(u,"CodeMirror-crosshair"),Wn(document,"keyup",h),Wn(document,"mouseover",h))}Ue(document,"keyup",h),Ue(document,"mouseover",h)}function ZT(o){o.keyCode==16&&(this.doc.sel.shift=!1),ee(this,o)}function e_(o){var u=this;if(!(o.target&&o.target!=u.display.input.getField())&&!(ks(u.display,o)||ee(u,o)||o.ctrlKey&&!o.altKey||O&&o.metaKey)){var h=o.keyCode,p=o.charCode;if(w&&h==sw){sw=null,ke(o);return}if(!(w&&(!o.which||o.which<10)&&QT(u,o))){var m=String.fromCharCode(p??h);m!="\b"&&(NU(u,o,m)||u.display.input.onKeyPress(o))}}}var FU=400,ow=function(o,u,h){this.time=o,this.pos=u,this.button=h};ow.prototype.compare=function(o,u,h){return this.time+FU>o&&nt(u,this.pos)==0&&h==this.button};var ef,tf;function zU(o,u){var h=+new Date;return tf&&tf.compare(h,o,u)?(ef=tf=null,"triple"):ef&&ef.compare(h,o,u)?(tf=new ow(h,o,u),ef=null,"double"):(ef=new ow(h,o,u),tf=null,"single")}function t_(o){var u=this,h=u.display;if(!(ee(u,o)||h.activeTouch&&h.input.supportsTouch())){if(h.input.ensurePolled(),h.shift=o.shiftKey,ks(h,o)){d||(h.scroller.draggable=!1,setTimeout(function(){return h.scroller.draggable=!0},100));return}if(!aw(u,o)){var p=Sa(u,o),m=ft(o),S=p?zU(p,m):"single";ve(u).focus(),m==1&&u.state.selectingText&&u.state.selectingText(o),!(p&&BU(u,m,p,S,o))&&(m==1?p?UU(u,p,S,o):He(o)==h.scroller&&ke(o):m==2?(p&&Tp(u.doc,p),setTimeout(function(){return h.input.focus()},20)):m==3&&(W?u.display.input.onContextMenu(o):jy(u)))}}}function BU(o,u,h,p,m){var S="Click";return p=="double"?S="Double"+S:p=="triple"&&(S="Triple"+S),S=(u==1?"Left":u==2?"Middle":"Right")+S,Zc(o,KT(S,m),m,function(_){if(typeof _=="string"&&(_=Jc[_]),!_)return!1;var L=!1;try{o.isReadOnly()&&(o.state.suppressEdits=!0),L=_(o,h)!=et}finally{o.state.suppressEdits=!1}return L})}function jU(o,u,h){var p=o.getOption("configureMouse"),m=p?p(o,u,h):{};if(m.unit==null){var S=k?h.shiftKey&&h.metaKey:h.altKey;m.unit=S?"rectangle":u=="single"?"char":u=="double"?"word":"line"}return(m.extend==null||o.doc.extend)&&(m.extend=o.doc.extend||h.shiftKey),m.addNew==null&&(m.addNew=O?h.metaKey:h.ctrlKey),m.moveOnDrag==null&&(m.moveOnDrag=!(O?h.altKey:h.ctrlKey)),m}function UU(o,u,h,p){c?setTimeout(ze(nT,o),0):o.curOp.focus=Y(ie(o));var m=jU(o,h,p),S=o.doc.sel,_;o.options.dragDrop&&pn&&!o.isReadOnly()&&h=="single"&&(_=S.contains(u))>-1&&(nt((_=S.ranges[_]).from(),u)<0||u.xRel>0)&&(nt(_.to(),u)>0||u.xRel<0)?HU(o,p,u,m):WU(o,p,u,m)}function HU(o,u,h,p){var m=o.display,S=!1,_=wn(o,function(D){d&&(m.scroller.draggable=!1),o.state.draggingText=!1,o.state.delayingBlurEvent&&(o.hasFocus()?o.state.delayingBlurEvent=!1:jy(o)),Wn(m.wrapper.ownerDocument,"mouseup",_),Wn(m.wrapper.ownerDocument,"mousemove",L),Wn(m.scroller,"dragstart",P),Wn(m.scroller,"drop",_),S||(ke(D),p.addNew||Tp(o.doc,h,null,null,p.extend),d&&!T||c&&f==9?setTimeout(function(){m.wrapper.ownerDocument.body.focus({preventScroll:!0}),m.input.focus()},20):m.input.focus())}),L=function(D){S=S||Math.abs(u.clientX-D.clientX)+Math.abs(u.clientY-D.clientY)>=10},P=function(){return S=!0};d&&(m.scroller.draggable=!0),o.state.draggingText=_,_.copy=!p.moveOnDrag,Ue(m.wrapper.ownerDocument,"mouseup",_),Ue(m.wrapper.ownerDocument,"mousemove",L),Ue(m.scroller,"dragstart",P),Ue(m.scroller,"drop",_),o.state.delayingBlurEvent=!0,setTimeout(function(){return m.input.focus()},20),m.scroller.dragDrop&&m.scroller.dragDrop()}function n_(o,u,h){if(h=="char")return new bt(u,u);if(h=="word")return o.findWordAt(u);if(h=="line")return new bt(he(u.line,0),rt(o.doc,he(u.line+1,0)));var p=h(o,u);return new bt(p.from,p.to)}function WU(o,u,h,p){c&&jy(o);var m=o.display,S=o.doc;ke(u);var _,L,P=S.sel,D=P.ranges;if(p.addNew&&!p.extend?(L=S.sel.contains(h),L>-1?_=D[L]:_=new bt(h,h)):(_=S.sel.primary(),L=S.sel.primIndex),p.unit=="rectangle")p.addNew||(_=new bt(h,h)),h=Sa(o,u,!0,!0),L=-1;else{var G=n_(o,h,p.unit);p.extend?_=ew(_,G.anchor,G.head,p.extend):_=G}p.addNew?L==-1?(L=D.length,Pn(S,ki(o,D.concat([_]),L),{scroll:!1,origin:"*mouse"})):D.length>1&&D[L].empty()&&p.unit=="char"&&!p.extend?(Pn(S,ki(o,D.slice(0,L).concat(D.slice(L+1)),0),{scroll:!1,origin:"*mouse"}),P=S.sel):tw(S,L,_,Ge):(L=0,Pn(S,new Ir([_],0),Ge),P=S.sel);var X=h;function ne(Ce){if(nt(X,Ce)!=0)if(X=Ce,p.unit=="rectangle"){for(var Re=[],We=o.options.tabSize,Be=qe(Fe(S,h.line).text,h.ch,We),at=qe(Fe(S,Ce.line).text,Ce.ch,We),kt=Math.min(Be,at),xn=Math.max(Be,at),Ht=Math.min(h.line,Ce.line),vr=Math.min(o.lastLine(),Math.max(h.line,Ce.line));Ht<=vr;Ht++){var rr=Fe(S,Ht).text,cn=vt(rr,kt,We);kt==xn?Re.push(new bt(he(Ht,cn),he(Ht,cn))):rr.length>cn&&Re.push(new bt(he(Ht,cn),he(Ht,vt(rr,xn,We))))}Re.length||Re.push(new bt(h,h)),Pn(S,ki(o,P.ranges.slice(0,L).concat(Re),L),{origin:"*mouse",scroll:!1}),o.scrollIntoView(Ce)}else{var ir=_,An=n_(o,Ce,p.unit),hn=ir.anchor,fn;nt(An.anchor,hn)>0?(fn=An.head,hn=sp(ir.from(),An.anchor)):(fn=An.anchor,hn=ip(ir.to(),An.head));var Gt=P.ranges.slice(0);Gt[L]=VU(o,new bt(rt(S,hn),fn)),Pn(S,ki(o,Gt,L),Ge)}}var J=m.wrapper.getBoundingClientRect(),ae=0;function de(Ce){var Re=++ae,We=Sa(o,Ce,!0,p.unit=="rectangle");if(We)if(nt(We,X)!=0){o.curOp.focus=Y(ie(o)),ne(We);var Be=wp(m,S);(We.line>=Be.to||We.line<Be.from)&&setTimeout(wn(o,function(){ae==Re&&de(Ce)}),150)}else{var at=Ce.clientY<J.top?-20:Ce.clientY>J.bottom?20:0;at&&setTimeout(wn(o,function(){ae==Re&&(m.scroller.scrollTop+=at,de(Ce))}),50)}}function ye(Ce){o.state.selectingText=!1,ae=1/0,Ce&&(ke(Ce),m.input.focus()),Wn(m.wrapper.ownerDocument,"mousemove",Ee),Wn(m.wrapper.ownerDocument,"mouseup",_e),S.history.lastSelOrigin=null}var Ee=wn(o,function(Ce){Ce.buttons===0||!ft(Ce)?ye(Ce):de(Ce)}),_e=wn(o,ye);o.state.selectingText=_e,Ue(m.wrapper.ownerDocument,"mousemove",Ee),Ue(m.wrapper.ownerDocument,"mouseup",_e)}function VU(o,u){var h=u.anchor,p=u.head,m=Fe(o.doc,h.line);if(nt(h,p)==0&&h.sticky==p.sticky)return u;var S=In(m);if(!S)return u;var _=Hn(S,h.ch,h.sticky),L=S[_];if(L.from!=h.ch&&L.to!=h.ch)return u;var P=_+(L.from==h.ch==(L.level!=1)?0:1);if(P==0||P==S.length)return u;var D;if(p.line!=h.line)D=(p.line-h.line)*(o.doc.direction=="ltr"?1:-1)>0;else{var G=Hn(S,p.ch,p.sticky),X=G-_||(p.ch-h.ch)*(L.level==1?-1:1);G==P-1||G==P?D=X<0:D=X>0}var ne=S[P+(D?-1:0)],J=D==(ne.level==1),ae=J?ne.from:ne.to,de=J?"after":"before";return h.ch==ae&&h.sticky==de?u:new bt(new he(h.line,ae,de),p)}function r_(o,u,h,p){var m,S;if(u.touches)m=u.touches[0].clientX,S=u.touches[0].clientY;else try{m=u.clientX,S=u.clientY}catch{return!1}if(m>=Math.floor(o.display.gutters.getBoundingClientRect().right))return!1;p&&ke(u);var _=o.display,L=_.lineDiv.getBoundingClientRect();if(S>L.bottom||!ce(o,h))return Ze(u);S-=L.top-_.viewOffset;for(var P=0;P<o.display.gutterSpecs.length;++P){var D=_.gutters.childNodes[P];if(D&&D.getBoundingClientRect().right>=m){var G=wa(o.doc,S),X=o.display.gutterSpecs[P];return qt(o,h,o,G,X.className,u),Ze(u)}}}function aw(o,u){return r_(o,u,"gutterClick",!0)}function i_(o,u){ks(o.display,u)||KU(o,u)||ee(o,u,"contextmenu")||W||o.display.input.onContextMenu(u)}function KU(o,u){return ce(o,"gutterContextMenu")?r_(o,u,"gutterContextMenu",!1):!1}function s_(o){o.display.wrapper.className=o.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+o.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Dc(o)}var Bl={toString:function(){return"CodeMirror.Init"}},o_={},Pp={};function qU(o){var u=o.optionHandlers;function h(p,m,S,_){o.defaults[p]=m,S&&(u[p]=_?function(L,P,D){D!=Bl&&S(L,P,D)}:S)}o.defineOption=h,o.Init=Bl,h("value","",function(p,m){return p.setValue(m)},!0),h("mode",null,function(p,m){p.doc.modeOption=m,Qy(p)},!0),h("indentUnit",2,Qy,!0),h("indentWithTabs",!1),h("smartIndent",!0),h("tabSize",4,function(p){Hc(p),Dc(p),tr(p)},!0),h("lineSeparator",null,function(p,m){if(p.doc.lineSep=m,!!m){var S=[],_=p.doc.first;p.doc.iter(function(P){for(var D=0;;){var G=P.text.indexOf(m,D);if(G==-1)break;D=G+m.length,S.push(he(_,G))}_++});for(var L=S.length-1;L>=0;L--)Nl(p.doc,m,S[L],he(S[L].line,S[L].ch+m.length))}}),h("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(p,m,S){p.state.specialChars=new RegExp(m.source+(m.test("	")?"":"|	"),"g"),S!=Bl&&p.refresh()}),h("specialCharPlaceholder",Sj,function(p){return p.refresh()},!0),h("electricChars",!0),h("inputStyle",A?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),h("spellcheck",!1,function(p,m){return p.getInputField().spellcheck=m},!0),h("autocorrect",!1,function(p,m){return p.getInputField().autocorrect=m},!0),h("autocapitalize",!1,function(p,m){return p.getInputField().autocapitalize=m},!0),h("rtlMoveVisually",!R),h("wholeLineUpdateBefore",!0),h("theme","default",function(p){s_(p),Uc(p)},!0),h("keyMap","default",function(p,m,S){var _=Op(m),L=S!=Bl&&Op(S);L&&L.detach&&L.detach(p,_),_.attach&&_.attach(p,L||null)}),h("extraKeys",null),h("configureMouse",null),h("lineWrapping",!1,YU,!0),h("gutters",[],function(p,m){p.display.gutterSpecs=Yy(m,p.options.lineNumbers),Uc(p)},!0),h("fixedGutter",!0,function(p,m){p.display.gutters.style.left=m?$y(p.display)+"px":"0",p.refresh()},!0),h("coverGutterNextToScrollbar",!1,function(p){return Pl(p)},!0),h("scrollbarStyle","native",function(p){lT(p),Pl(p),p.display.scrollbars.setScrollTop(p.doc.scrollTop),p.display.scrollbars.setScrollLeft(p.doc.scrollLeft)},!0),h("lineNumbers",!1,function(p,m){p.display.gutterSpecs=Yy(p.options.gutters,m),Uc(p)},!0),h("firstLineNumber",1,Uc,!0),h("lineNumberFormatter",function(p){return p},Uc,!0),h("showCursorWhenSelecting",!1,Nc,!0),h("resetSelectionOnContextMenu",!0),h("lineWiseCopyCut",!0),h("pasteLinesPerSelection",!0),h("selectionsMayTouch",!1),h("readOnly",!1,function(p,m){m=="nocursor"&&(Ol(p),p.display.input.blur()),p.display.input.readOnlyChanged(m)}),h("screenReaderLabel",null,function(p,m){m=m===""?null:m,p.display.input.screenReaderLabelChanged(m)}),h("disableInput",!1,function(p,m){m||p.display.input.reset()},!0),h("dragDrop",!0,GU),h("allowDropFileTypes",null),h("cursorBlinkRate",530),h("cursorScrollMargin",0),h("cursorHeight",1,Nc,!0),h("singleCursorHeightPerLine",!0,Nc,!0),h("workTime",100),h("workDelay",100),h("flattenSpans",!0,Hc,!0),h("addModeClass",!1,Hc,!0),h("pollInterval",100),h("undoDepth",200,function(p,m){return p.doc.history.undoDepth=m}),h("historyEventDelay",1250),h("viewportMargin",10,function(p){return p.refresh()},!0),h("maxHighlightLength",1e4,Hc,!0),h("moveInputWithCursor",!0,function(p,m){m||p.display.input.resetPosition()}),h("tabindex",null,function(p,m){return p.display.input.getField().tabIndex=m||""}),h("autofocus",null),h("direction","ltr",function(p,m){return p.doc.setDirection(m)},!0),h("phrases",null)}function GU(o,u,h){var p=h&&h!=Bl;if(!u!=!p){var m=o.display.dragFunctions,S=u?Ue:Wn;S(o.display.scroller,"dragstart",m.start),S(o.display.scroller,"dragenter",m.enter),S(o.display.scroller,"dragover",m.over),S(o.display.scroller,"dragleave",m.leave),S(o.display.scroller,"drop",m.drop)}}function YU(o){o.options.lineWrapping?(Z(o.display.wrapper,"CodeMirror-wrap"),o.display.sizer.style.minWidth="",o.display.sizerWidth=null):(V(o.display.wrapper,"CodeMirror-wrap"),Ay(o)),Fy(o),tr(o),Dc(o),setTimeout(function(){return Pl(o)},100)}function $t(o,u){var h=this;if(!(this instanceof $t))return new $t(o,u);this.options=u=u?it(u):{},it(o_,u,!1);var p=u.value;typeof p=="string"?p=new nr(p,u.mode,null,u.lineSeparator,u.direction):u.mode&&(p.modeOption=u.mode),this.doc=p;var m=new $t.inputStyles[u.inputStyle](this),S=this.display=new lU(o,p,m,u);S.wrapper.CodeMirror=this,s_(this),u.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),lT(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new Le,keySeq:null,specialChars:null},u.autofocus&&!A&&S.input.focus(),c&&f<11&&setTimeout(function(){return h.display.input.reset(!0)},20),XU(this),AU(),_a(this),this.curOp.forceUpdate=!0,yT(this,p),u.autofocus&&!A||this.hasFocus()?setTimeout(function(){h.hasFocus()&&!h.state.focused&&Uy(h)},20):Ol(this);for(var _ in Pp)Pp.hasOwnProperty(_)&&Pp[_](this,u[_],Bl);fT(this),u.finishInit&&u.finishInit(this);for(var L=0;L<lw.length;++L)lw[L](this);Aa(this),d&&u.lineWrapping&&getComputedStyle(S.lineDiv).textRendering=="optimizelegibility"&&(S.lineDiv.style.textRendering="auto")}$t.defaults=o_,$t.optionHandlers=Pp;function XU(o){var u=o.display;Ue(u.scroller,"mousedown",wn(o,t_)),c&&f<11?Ue(u.scroller,"dblclick",wn(o,function(P){if(!ee(o,P)){var D=Sa(o,P);if(!(!D||aw(o,P)||ks(o.display,P))){ke(P);var G=o.findWordAt(D);Tp(o.doc,G.anchor,G.head)}}})):Ue(u.scroller,"dblclick",function(P){return ee(o,P)||ke(P)}),Ue(u.scroller,"contextmenu",function(P){return i_(o,P)}),Ue(u.input.getField(),"contextmenu",function(P){u.scroller.contains(P.target)||i_(o,P)});var h,p={end:0};function m(){u.activeTouch&&(h=setTimeout(function(){return u.activeTouch=null},1e3),p=u.activeTouch,p.end=+new Date)}function S(P){if(P.touches.length!=1)return!1;var D=P.touches[0];return D.radiusX<=1&&D.radiusY<=1}function _(P,D){if(D.left==null)return!0;var G=D.left-P.left,X=D.top-P.top;return G*G+X*X>20*20}Ue(u.scroller,"touchstart",function(P){if(!ee(o,P)&&!S(P)&&!aw(o,P)){u.input.ensurePolled(),clearTimeout(h);var D=+new Date;u.activeTouch={start:D,moved:!1,prev:D-p.end<=300?p:null},P.touches.length==1&&(u.activeTouch.left=P.touches[0].pageX,u.activeTouch.top=P.touches[0].pageY)}}),Ue(u.scroller,"touchmove",function(){u.activeTouch&&(u.activeTouch.moved=!0)}),Ue(u.scroller,"touchend",function(P){var D=u.activeTouch;if(D&&!ks(u,P)&&D.left!=null&&!D.moved&&new Date-D.start<300){var G=o.coordsChar(u.activeTouch,"page"),X;!D.prev||_(D,D.prev)?X=new bt(G,G):!D.prev.prev||_(D,D.prev.prev)?X=o.findWordAt(G):X=new bt(he(G.line,0),rt(o.doc,he(G.line+1,0))),o.setSelection(X.anchor,X.head),o.focus(),ke(P)}m()}),Ue(u.scroller,"touchcancel",m),Ue(u.scroller,"scroll",function(){u.scroller.clientHeight&&(Fc(o,u.scroller.scrollTop),Ca(o,u.scroller.scrollLeft,!0),qt(o,"scroll",o))}),Ue(u.scroller,"mousewheel",function(P){return hT(o,P)}),Ue(u.scroller,"DOMMouseScroll",function(P){return hT(o,P)}),Ue(u.wrapper,"scroll",function(){return u.wrapper.scrollTop=u.wrapper.scrollLeft=0}),u.dragFunctions={enter:function(P){ee(o,P)||Ke(P)},over:function(P){ee(o,P)||(_U(o,P),Ke(P))},start:function(P){return TU(o,P)},drop:wn(o,CU),leave:function(P){ee(o,P)||UT(o)}};var L=u.input.getField();Ue(L,"keyup",function(P){return ZT.call(o,P)}),Ue(L,"keydown",wn(o,JT)),Ue(L,"keypress",wn(o,e_)),Ue(L,"focus",function(P){return Uy(o,P)}),Ue(L,"blur",function(P){return Ol(o,P)})}var lw=[];$t.defineInitHook=function(o){return lw.push(o)};function nf(o,u,h,p){var m=o.doc,S;h==null&&(h="add"),h=="smart"&&(m.mode.indent?S=Oc(o,u).state:h="prev");var _=o.options.tabSize,L=Fe(m,u),P=qe(L.text,null,_);L.stateAfter&&(L.stateAfter=null);var D=L.text.match(/^\s*/)[0],G;if(!p&&!/\S/.test(L.text))G=0,h="not";else if(h=="smart"&&(G=m.mode.indent(S,L.text.slice(D.length),L.text),G==et||G>150)){if(!p)return;h="prev"}h=="prev"?u>m.first?G=qe(Fe(m,u-1).text,null,_):G=0:h=="add"?G=P+o.options.indentUnit:h=="subtract"?G=P-o.options.indentUnit:typeof h=="number"&&(G=P+h),G=Math.max(0,G);var X="",ne=0;if(o.options.indentWithTabs)for(var J=Math.floor(G/_);J;--J)ne+=_,X+="	";if(ne<G&&(X+=Q(G-ne)),X!=D)return Nl(m,X,he(u,0),he(u,D.length),"+input"),L.stateAfter=null,!0;for(var ae=0;ae<m.sel.ranges.length;ae++){var de=m.sel.ranges[ae];if(de.head.line==u&&de.head.ch<D.length){var ye=he(u,D.length);tw(m,ae,new bt(ye,ye));break}}}var Li=null;function Rp(o){Li=o}function uw(o,u,h,p,m){var S=o.doc;o.display.shift=!1,p||(p=S.sel);var _=+new Date-200,L=m=="paste"||o.state.pasteIncoming>_,P=en(u),D=null;if(L&&p.ranges.length>1)if(Li&&Li.text.join(`
130`)==u){if(p.ranges.length%Li.text.length==0){D=[];for(var G=0;G<Li.text.length;G++)D.push(S.splitLines(Li.text[G]))}}else P.length==p.ranges.length&&o.options.pasteLinesPerSelection&&(D=oe(P,function(Ee){return[Ee]}));for(var X=o.curOp.updateInput,ne=p.ranges.length-1;ne>=0;ne--){var J=p.ranges[ne],ae=J.from(),de=J.to();J.empty()&&(h&&h>0?ae=he(ae.line,ae.ch-h):o.state.overwrite&&!L?de=he(de.line,Math.min(Fe(S,de.line).text.length,de.ch+te(P).length)):L&&Li&&Li.lineWise&&Li.text.join(`
131`)==P.join(`
132`)&&(ae=de=he(ae.line,0)));var ye={from:ae,to:de,text:D?D[ne%D.length]:P,origin:m||(L?"paste":o.state.cutIncoming>_?"cut":"+input")};Dl(o.doc,ye),yn(o,"inputRead",o,ye)}u&&!L&&l_(o,u),Il(o),o.curOp.updateInput<2&&(o.curOp.updateInput=X),o.curOp.typing=!0,o.state.pasteIncoming=o.state.cutIncoming=-1}function a_(o,u){var h=o.clipboardData&&o.clipboardData.getData("Text");if(h)return o.preventDefault(),!u.isReadOnly()&&!u.options.disableInput&&u.hasFocus()&&mr(u,function(){return uw(u,h,0,null,"paste")}),!0}function l_(o,u){if(!(!o.options.electricChars||!o.options.smartIndent))for(var h=o.doc.sel,p=h.ranges.length-1;p>=0;p--){var m=h.ranges[p];if(!(m.head.ch>100||p&&h.ranges[p-1].head.line==m.head.line)){var S=o.getModeAt(m.head),_=!1;if(S.electricChars){for(var L=0;L<S.electricChars.length;L++)if(u.indexOf(S.electricChars.charAt(L))>-1){_=nf(o,m.head.line,"smart");break}}else S.electricInput&&S.electricInput.test(Fe(o.doc,m.head.line).text.slice(0,m.head.ch))&&(_=nf(o,m.head.line,"smart"));_&&yn(o,"electricInput",o,m.head.line)}}}function u_(o){for(var u=[],h=[],p=0;p<o.doc.sel.ranges.length;p++){var m=o.doc.sel.ranges[p].head.line,S={anchor:he(m,0),head:he(m+1,0)};h.push(S),u.push(o.getRange(S.anchor,S.head))}return{text:u,ranges:h}}function cw(o,u,h,p){o.setAttribute("autocorrect",h?"on":"off"),o.setAttribute("autocapitalize",p?"on":"off"),o.setAttribute("spellcheck",!!u)}function c_(){var o=M("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),u=M("div",[o],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return d?o.style.width="1000px":o.setAttribute("wrap","off"),b&&(o.style.border="1px solid black"),u}function QU(o){var u=o.optionHandlers,h=o.helpers={};o.prototype={constructor:o,focus:function(){ve(this).focus(),this.display.input.focus()},setOption:function(p,m){var S=this.options,_=S[p];S[p]==m&&p!="mode"||(S[p]=m,u.hasOwnProperty(p)&&wn(this,u[p])(this,m,_),qt(this,"optionChange",this,p))},getOption:function(p){return this.options[p]},getDoc:function(){return this.doc},addKeyMap:function(p,m){this.state.keyMaps[m?"push":"unshift"](Op(p))},removeKeyMap:function(p){for(var m=this.state.keyMaps,S=0;S<m.length;++S)if(m[S]==p||m[S].name==p)return m.splice(S,1),!0},addOverlay:Vn(function(p,m){var S=p.token?p:o.getMode(this.options,p);if(S.startState)throw new Error("Overlays may not be stateful.");Te(this.state.overlays,{mode:S,modeSpec:p,opaque:m&&m.opaque,priority:m&&m.priority||0},function(_){return _.priority}),this.state.modeGen++,tr(this)}),removeOverlay:Vn(function(p){for(var m=this.state.overlays,S=0;S<m.length;++S){var _=m[S].modeSpec;if(_==p||typeof p=="string"&&_.name==p){m.splice(S,1),this.state.modeGen++,tr(this);return}}}),indentLine:Vn(function(p,m,S){typeof m!="string"&&typeof m!="number"&&(m==null?m=this.options.smartIndent?"smart":"prev":m=m?"add":"subtract"),Lc(this.doc,p)&&nf(this,p,m,S)}),indentSelection:Vn(function(p){for(var m=this.doc.sel.ranges,S=-1,_=0;_<m.length;_++){var L=m[_];if(L.empty())L.head.line>S&&(nf(this,L.head.line,p,!0),S=L.head.line,_==this.doc.sel.primIndex&&Il(this));else{var P=L.from(),D=L.to(),G=Math.max(S,P.line);S=Math.min(this.lastLine(),D.line-(D.ch?0:1))+1;for(var X=G;X<S;++X)nf(this,X,p);var ne=this.doc.sel.ranges;P.ch==0&&m.length==ne.length&&ne[_].from().ch>0&&tw(this.doc,_,new bt(P,ne[_].to()),ct)}}}),getTokenAt:function(p,m){return bC(this,p,m)},getLineTokens:function(p,m){return bC(this,he(p),m,!0)},getTokenTypeAt:function(p){p=rt(this.doc,p);var m=vC(this,Fe(this.doc,p.line)),S=0,_=(m.length-1)/2,L=p.ch,P;if(L==0)P=m[2];else for(;;){var D=S+_>>1;if((D?m[D*2-1]:0)>=L)_=D;else if(m[D*2+1]<L)S=D+1;else{P=m[D*2+2];break}}var G=P?P.indexOf("overlay "):-1;return G<0?P:G==0?null:P.slice(0,G-1)},getModeAt:function(p){var m=this.doc.mode;return m.innerMode?o.innerMode(m,this.getTokenAt(p).state).mode:m},getHelper:function(p,m){return this.getHelpers(p,m)[0]},getHelpers:function(p,m){var S=[];if(!h.hasOwnProperty(m))return S;var _=h[m],L=this.getModeAt(p);if(typeof L[m]=="string")_[L[m]]&&S.push(_[L[m]]);else if(L[m])for(var P=0;P<L[m].length;P++){var D=_[L[m][P]];D&&S.push(D)}else L.helperType&&_[L.helperType]?S.push(_[L.helperType]):_[L.name]&&S.push(_[L.name]);for(var G=0;G<_._global.length;G++){var X=_._global[G];X.pred(L,this)&&Oe(S,X.val)==-1&&S.push(X.val)}return S},getStateAfter:function(p,m){var S=this.doc;return p=hC(S,p??S.first+S.size-1),Oc(this,p+1,m).state},cursorCoords:function(p,m){var S,_=this.doc.sel.primary();return p==null?S=_.head:typeof p=="object"?S=rt(this.doc,p):S=p?_.from():_.to(),Ai(this,S,m||"page")},charCoords:function(p,m){return gp(this,rt(this.doc,p),m||"page")},coordsChar:function(p,m){return p=YC(this,p,m||"page"),My(this,p.left,p.top)},lineAtHeight:function(p,m){return p=YC(this,{top:p,left:0},m||"page").top,wa(this.doc,p+this.display.viewOffset)},heightAtLine:function(p,m,S){var _=!1,L;if(typeof p=="number"){var P=this.doc.first+this.doc.size-1;p<this.doc.first?p=this.doc.first:p>P&&(p=P,_=!0),L=Fe(this.doc,p)}else L=p;return hp(this,L,{top:0,left:0},m||"page",S||_).top+(_?this.doc.height-As(L):0)},defaultTextHeight:function(){return kl(this.display)},defaultCharWidth:function(){return Ll(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(p,m,S,_,L){var P=this.display;p=Ai(this,rt(this.doc,p));var D=p.bottom,G=p.left;if(m.style.position="absolute",m.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(m),P.sizer.appendChild(m),_=="over")D=p.top;else if(_=="above"||_=="near"){var X=Math.max(P.wrapper.clientHeight,this.doc.height),ne=Math.max(P.sizer.clientWidth,P.lineSpace.clientWidth);(_=="above"||p.bottom+m.offsetHeight>X)&&p.top>m.offsetHeight?D=p.top-m.offsetHeight:p.bottom+m.offsetHeight<=X&&(D=p.bottom),G+m.offsetWidth>ne&&(G=ne-m.offsetWidth)}m.style.top=D+"px",m.style.left=m.style.right="",L=="right"?(G=P.sizer.clientWidth-m.offsetWidth,m.style.right="0px"):(L=="left"?G=0:L=="middle"&&(G=(P.sizer.clientWidth-m.offsetWidth)/2),m.style.left=G+"px"),S&&Gj(this,{left:G,top:D,right:G+m.offsetWidth,bottom:D+m.offsetHeight})},triggerOnKeyDown:Vn(JT),triggerOnKeyPress:Vn(e_),triggerOnKeyUp:ZT,triggerOnMouseDown:Vn(t_),execCommand:function(p){if(Jc.hasOwnProperty(p))return Jc[p].call(null,this)},triggerElectric:Vn(function(p){l_(this,p)}),findPosH:function(p,m,S,_){var L=1;m<0&&(L=-1,m=-m);for(var P=rt(this.doc,p),D=0;D<m&&(P=fw(this.doc,P,L,S,_),!P.hitSide);++D);return P},moveH:Vn(function(p,m){var S=this;this.extendSelectionsBy(function(_){return S.display.shift||S.doc.extend||_.empty()?fw(S.doc,_.head,p,m,S.options.rtlMoveVisually):p<0?_.from():_.to()},Tt)}),deleteH:Vn(function(p,m){var S=this.doc.sel,_=this.doc;S.somethingSelected()?_.replaceSelection("",null,"+delete"):zl(this,function(L){var P=fw(_,L.head,p,m,!1);return p<0?{from:P,to:L.head}:{from:L.head,to:P}})}),findPosV:function(p,m,S,_){var L=1,P=_;m<0&&(L=-1,m=-m);for(var D=rt(this.doc,p),G=0;G<m;++G){var X=Ai(this,D,"div");if(P==null?P=X.left:X.left=P,D=f_(this,X,L,S),D.hitSide)break}return D},moveV:Vn(function(p,m){var S=this,_=this.doc,L=[],P=!this.display.shift&&!_.extend&&_.sel.somethingSelected();if(_.extendSelectionsBy(function(G){if(P)return p<0?G.from():G.to();var X=Ai(S,G.head,"div");G.goalColumn!=null&&(X.left=G.goalColumn),L.push(X.left);var ne=f_(S,X,p,m);return m=="page"&&G==_.sel.primary()&&Wy(S,gp(S,ne,"div").top-X.top),ne},Tt),L.length)for(var D=0;D<_.sel.ranges.length;D++)_.sel.ranges[D].goalColumn=L[D]}),findWordAt:function(p){var m=this.doc,S=Fe(m,p.line).text,_=p.ch,L=p.ch;if(S){var P=this.getHelper(p,"wordChars");(p.sticky=="before"||L==S.length)&&_?--_:++L;for(var D=S.charAt(_),G=Ve(D,P)?function(X){return Ve(X,P)}:/\s/.test(D)?function(X){return/\s/.test(X)}:function(X){return!/\s/.test(X)&&!Ve(X)};_>0&&G(S.charAt(_-1));)--_;for(;L<S.length&&G(S.charAt(L));)++L}return new bt(he(p.line,_),he(p.line,L))},toggleOverwrite:function(p){p!=null&&p==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Z(this.display.cursorDiv,"CodeMirror-overwrite"):V(this.display.cursorDiv,"CodeMirror-overwrite"),qt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Y(ie(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Vn(function(p,m){$c(this,p,m)}),getScrollInfo:function(){var p=this.display.scroller;return{left:p.scrollLeft,top:p.scrollTop,height:p.scrollHeight-is(this)-this.display.barHeight,width:p.scrollWidth-is(this)-this.display.barWidth,clientHeight:Oy(this),clientWidth:ba(this)}},scrollIntoView:Vn(function(p,m){p==null?(p={from:this.doc.sel.primary().head,to:null},m==null&&(m=this.options.cursorScrollMargin)):typeof p=="number"?p={from:he(p,0),to:null}:p.from==null&&(p={from:p,to:null}),p.to||(p.to=p.from),p.margin=m||0,p.from.line!=null?Yj(this,p):iT(this,p.from,p.to,p.margin)}),setSize:Vn(function(p,m){var S=this,_=function(P){return typeof P=="number"||/^\d+$/.test(String(P))?P+"px":P};p!=null&&(this.display.wrapper.style.width=_(p)),m!=null&&(this.display.wrapper.style.height=_(m)),this.options.lineWrapping&&KC(this);var L=this.display.viewFrom;this.doc.iter(L,this.display.viewTo,function(P){if(P.widgets){for(var D=0;D<P.widgets.length;D++)if(P.widgets[D].noHScroll){go(S,L,"widget");break}}++L}),this.curOp.forceUpdate=!0,qt(this,"refresh",this)}),operation:function(p){return mr(this,p)},startOperation:function(){return _a(this)},endOperation:function(){return Aa(this)},refresh:Vn(function(){var p=this.display.cachedTextHeight;tr(this),this.curOp.forceUpdate=!0,Dc(this),$c(this,this.doc.scrollLeft,this.doc.scrollTop),qy(this.display),(p==null||Math.abs(p-kl(this.display))>.5||this.options.lineWrapping)&&Fy(this),qt(this,"refresh",this)}),swapDoc:Vn(function(p){var m=this.doc;return m.cm=null,this.state.selectingText&&this.state.selectingText(),yT(this,p),Dc(this),this.display.input.reset(),$c(this,p.scrollLeft,p.scrollTop),this.curOp.forceScroll=!0,yn(this,"swapDoc",this,m),m}),phrase:function(p){var m=this.options.phrases;return m&&Object.prototype.hasOwnProperty.call(m,p)?m[p]:p},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},xe(o),o.registerHelper=function(p,m,S){h.hasOwnProperty(p)||(h[p]=o[p]={_global:[]}),h[p][m]=S},o.registerGlobalHelper=function(p,m,S,_){o.registerHelper(p,m,_),h[p]._global.push({pred:S,val:_})}}function fw(o,u,h,p,m){var S=u,_=h,L=Fe(o,u.line),P=m&&o.direction=="rtl"?-h:h;function D(){var _e=u.line+P;return _e<o.first||_e>=o.first+o.size?!1:(u=new he(_e,u.ch,u.sticky),L=Fe(o,_e))}function G(_e){var Ce;if(p=="codepoint"){var Re=L.text.charCodeAt(u.ch+(h>0?0:-1));if(isNaN(Re))Ce=null;else{var We=h>0?Re>=55296&&Re<56320:Re>=56320&&Re<57343;Ce=new he(u.line,Math.max(0,Math.min(L.text.length,u.ch+h*(We?2:1))),-h)}}else m?Ce=PU(o.cm,L,u,h):Ce=rw(L,u,h);if(Ce==null)if(!_e&&D())u=iw(m,o.cm,L,u.line,P);else return!1;else u=Ce;return!0}if(p=="char"||p=="codepoint")G();else if(p=="column")G(!0);else if(p=="word"||p=="group")for(var X=null,ne=p=="group",J=o.cm&&o.cm.getHelper(u,"wordChars"),ae=!0;!(h<0&&!G(!ae));ae=!1){var de=L.text.charAt(u.ch)||`
133`,ye=Ve(de,J)?"w":ne&&de==`
134`?"n":!ne||/\s/.test(de)?null:"p";if(ne&&!ae&&!ye&&(ye="s"),X&&X!=ye){h<0&&(h=1,G(),u.sticky="after");break}if(ye&&(X=ye),h>0&&!G(!ae))break}var Ee=Ap(o,u,S,_,!0);return wy(S,Ee)&&(Ee.hitSide=!0),Ee}function f_(o,u,h,p){var m=o.doc,S=u.left,_;if(p=="page"){var L=Math.min(o.display.wrapper.clientHeight,ve(o).innerHeight||m(o).documentElement.clientHeight),P=Math.max(L-.5*kl(o.display),3);_=(h>0?u.bottom:u.top)+h*P}else p=="line"&&(_=h>0?u.bottom+3:u.top-3);for(var D;D=My(o,S,_),!!D.outside;){if(h<0?_<=0:_>=m.height){D.hitSide=!0;break}_+=h*5}return D}var Et=function(o){this.cm=o,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Le,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Et.prototype.init=function(o){var u=this,h=this,p=h.cm,m=h.div=o.lineDiv;m.contentEditable=!0,cw(m,p.options.spellcheck,p.options.autocorrect,p.options.autocapitalize);function S(L){for(var P=L.target;P;P=P.parentNode){if(P==m)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(P.className))break}return!1}Ue(m,"paste",function(L){!S(L)||ee(p,L)||a_(L,p)||f<=11&&setTimeout(wn(p,function(){return u.updateFromDOM()}),20)}),Ue(m,"compositionstart",function(L){u.composing={data:L.data,done:!1}}),Ue(m,"compositionupdate",function(L){u.composing||(u.composing={data:L.data,done:!1})}),Ue(m,"compositionend",function(L){u.composing&&(L.data!=u.composing.data&&u.readFromDOMSoon(),u.composing.done=!0)}),Ue(m,"touchstart",function(){return h.forceCompositionEnd()}),Ue(m,"input",function(){u.composing||u.readFromDOMSoon()});function _(L){if(!(!S(L)||ee(p,L))){if(p.somethingSelected())Rp({lineWise:!1,text:p.getSelections()}),L.type=="cut"&&p.replaceSelection("",null,"cut");else if(p.options.lineWiseCopyCut){var P=u_(p);Rp({lineWise:!0,text:P.text}),L.type=="cut"&&p.operation(function(){p.setSelections(P.ranges,0,ct),p.replaceSelection("",null,"cut")})}else return;if(L.clipboardData){L.clipboardData.clearData();var D=Li.text.join(`
135`);if(L.clipboardData.setData("Text",D),L.clipboardData.getData("Text")==D){L.preventDefault();return}}var G=c_(),X=G.firstChild;cw(X),p.display.lineSpace.insertBefore(G,p.display.lineSpace.firstChild),X.value=Li.text.join(`
136`);var ne=Y(me(m));K(X),setTimeout(function(){p.display.lineSpace.removeChild(G),ne.focus(),ne==m&&h.showPrimarySelection()},50)}}Ue(m,"copy",_),Ue(m,"cut",_)},Et.prototype.screenReaderLabelChanged=function(o){o?this.div.setAttribute("aria-label",o):this.div.removeAttribute("aria-label")},Et.prototype.prepareSelection=function(){var o=tT(this.cm,!1);return o.focus=Y(me(this.div))==this.div,o},Et.prototype.showSelection=function(o,u){!o||!this.cm.display.view.length||((o.focus||u)&&this.showPrimarySelection(),this.showMultipleSelections(o))},Et.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Et.prototype.showPrimarySelection=function(){var o=this.getSelection(),u=this.cm,h=u.doc.sel.primary(),p=h.from(),m=h.to();if(u.display.viewTo==u.display.viewFrom||p.line>=u.display.viewTo||m.line<u.display.viewFrom){o.removeAllRanges();return}var S=Mp(u,o.anchorNode,o.anchorOffset),_=Mp(u,o.focusNode,o.focusOffset);if(!(S&&!S.bad&&_&&!_.bad&&nt(sp(S,_),p)==0&&nt(ip(S,_),m)==0)){var L=u.display.view,P=p.line>=u.display.viewFrom&&d_(u,p)||{node:L[0].measure.map[2],offset:0},D=m.line<u.display.viewTo&&d_(u,m);if(!D){var G=L[L.length-1].measure,X=G.maps?G.maps[G.maps.length-1]:G.map;D={node:X[X.length-1],offset:X[X.length-2]-X[X.length-3]}}if(!P||!D){o.removeAllRanges();return}var ne=o.rangeCount&&o.getRangeAt(0),J;try{J=U(P.node,P.offset,D.offset,D.node)}catch{}J&&(!i&&u.state.focused?(o.collapse(P.node,P.offset),J.collapsed||(o.removeAllRanges(),o.addRange(J))):(o.removeAllRanges(),o.addRange(J)),ne&&o.anchorNode==null?o.addRange(ne):i&&this.startGracePeriod()),this.rememberSelection()}},Et.prototype.startGracePeriod=function(){var o=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){o.gracePeriod=!1,o.selectionChanged()&&o.cm.operation(function(){return o.cm.curOp.selectionChanged=!0})},20)},Et.prototype.showMultipleSelections=function(o){z(this.cm.display.cursorDiv,o.cursors),z(this.cm.display.selectionDiv,o.selection)},Et.prototype.rememberSelection=function(){var o=this.getSelection();this.lastAnchorNode=o.anchorNode,this.lastAnchorOffset=o.anchorOffset,this.lastFocusNode=o.focusNode,this.lastFocusOffset=o.focusOffset},Et.prototype.selectionInEditor=function(){var o=this.getSelection();if(!o.rangeCount)return!1;var u=o.getRangeAt(0).commonAncestorContainer;return B(this.div,u)},Et.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||Y(me(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Et.prototype.blur=function(){this.div.blur()},Et.prototype.getField=function(){return this.div},Et.prototype.supportsTouch=function(){return!0},Et.prototype.receivedFocus=function(){var o=this,u=this;this.selectionInEditor()?setTimeout(function(){return o.pollSelection()},20):mr(this.cm,function(){return u.cm.curOp.selectionChanged=!0});function h(){u.cm.state.focused&&(u.pollSelection(),u.polling.set(u.cm.options.pollInterval,h))}this.polling.set(this.cm.options.pollInterval,h)},Et.prototype.selectionChanged=function(){var o=this.getSelection();return o.anchorNode!=this.lastAnchorNode||o.anchorOffset!=this.lastAnchorOffset||o.focusNode!=this.lastFocusNode||o.focusOffset!=this.lastFocusOffset},Et.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var o=this.getSelection(),u=this.cm;if(C&&v&&this.cm.display.gutterSpecs.length&&JU(o.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var h=Mp(u,o.anchorNode,o.anchorOffset),p=Mp(u,o.focusNode,o.focusOffset);h&&p&&mr(u,function(){Pn(u.doc,vo(h,p),ct),(h.bad||p.bad)&&(u.curOp.selectionChanged=!0)})}}},Et.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var o=this.cm,u=o.display,h=o.doc.sel.primary(),p=h.from(),m=h.to();if(p.ch==0&&p.line>o.firstLine()&&(p=he(p.line-1,Fe(o.doc,p.line-1).length)),m.ch==Fe(o.doc,m.line).text.length&&m.line<o.lastLine()&&(m=he(m.line+1,0)),p.line<u.viewFrom||m.line>u.viewTo-1)return!1;var S,_,L;p.line==u.viewFrom||(S=Ea(o,p.line))==0?(_=St(u.view[0].line),L=u.view[0].node):(_=St(u.view[S].line),L=u.view[S-1].node.nextSibling);var P=Ea(o,m.line),D,G;if(P==u.view.length-1?(D=u.viewTo-1,G=u.lineDiv.lastChild):(D=St(u.view[P+1].line)-1,G=u.view[P+1].node.previousSibling),!L)return!1;for(var X=o.doc.splitLines(ZU(o,L,G,_,D)),ne=ya(o.doc,he(_,0),he(D,Fe(o.doc,D).text.length));X.length>1&&ne.length>1;)if(te(X)==te(ne))X.pop(),ne.pop(),D--;else if(X[0]==ne[0])X.shift(),ne.shift(),_++;else break;for(var J=0,ae=0,de=X[0],ye=ne[0],Ee=Math.min(de.length,ye.length);J<Ee&&de.charCodeAt(J)==ye.charCodeAt(J);)++J;for(var _e=te(X),Ce=te(ne),Re=Math.min(_e.length-(X.length==1?J:0),Ce.length-(ne.length==1?J:0));ae<Re&&_e.charCodeAt(_e.length-ae-1)==Ce.charCodeAt(Ce.length-ae-1);)++ae;if(X.length==1&&ne.length==1&&_==p.line)for(;J&&J>p.ch&&_e.charCodeAt(_e.length-ae-1)==Ce.charCodeAt(Ce.length-ae-1);)J--,ae++;X[X.length-1]=_e.slice(0,_e.length-ae).replace(/^\u200b+/,""),X[0]=X[0].slice(J).replace(/\u200b+$/,"");var We=he(_,J),Be=he(D,ne.length?te(ne).length-ae:0);if(X.length>1||X[0]||nt(We,Be))return Nl(o.doc,X,We,Be,"+input"),!0},Et.prototype.ensurePolled=function(){this.forceCompositionEnd()},Et.prototype.reset=function(){this.forceCompositionEnd()},Et.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Et.prototype.readFromDOMSoon=function(){var o=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(o.readDOMTimeout=null,o.composing)if(o.composing.done)o.composing=null;else return;o.updateFromDOM()},80))},Et.prototype.updateFromDOM=function(){var o=this;(this.cm.isReadOnly()||!this.pollContent())&&mr(this.cm,function(){return tr(o.cm)})},Et.prototype.setUneditable=function(o){o.contentEditable="false"},Et.prototype.onKeyPress=function(o){o.charCode==0||this.composing||(o.preventDefault(),this.cm.isReadOnly()||wn(this.cm,uw)(this.cm,String.fromCharCode(o.charCode==null?o.keyCode:o.charCode),0))},Et.prototype.readOnlyChanged=function(o){this.div.contentEditable=String(o!="nocursor")},Et.prototype.onContextMenu=function(){},Et.prototype.resetPosition=function(){},Et.prototype.needsContentAttribute=!0;function d_(o,u){var h=Iy(o,u.line);if(!h||h.hidden)return null;var p=Fe(o.doc,u.line),m=jC(h,p,u.line),S=In(p,o.doc.direction),_="left";if(S){var L=Hn(S,u.ch);_=L%2?"right":"left"}var P=WC(m.map,u.ch,_);return P.offset=P.collapse=="right"?P.end:P.start,P}function JU(o){for(var u=o;u;u=u.parentNode)if(/CodeMirror-gutter-wrapper/.test(u.className))return!0;return!1}function jl(o,u){return u&&(o.bad=!0),o}function ZU(o,u,h,p,m){var S="",_=!1,L=o.doc.lineSeparator(),P=!1;function D(J){return function(ae){return ae.id==J}}function G(){_&&(S+=L,P&&(S+=L),_=P=!1)}function X(J){J&&(G(),S+=J)}function ne(J){if(J.nodeType==1){var ae=J.getAttribute("cm-text");if(ae){X(ae);return}var de=J.getAttribute("cm-marker"),ye;if(de){var Ee=o.findMarks(he(p,0),he(m+1,0),D(+de));Ee.length&&(ye=Ee[0].find(0))&&X(ya(o.doc,ye.from,ye.to).join(L));return}if(J.getAttribute("contenteditable")=="false")return;var _e=/^(pre|div|p|li|table|br)$/i.test(J.nodeName);if(!/^br$/i.test(J.nodeName)&&J.textContent.length==0)return;_e&&G();for(var Ce=0;Ce<J.childNodes.length;Ce++)ne(J.childNodes[Ce]);/^(pre|p)$/i.test(J.nodeName)&&(P=!0),_e&&(_=!0)}else J.nodeType==3&&X(J.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;ne(u),u!=h;)u=u.nextSibling,P=!1;return S}function Mp(o,u,h){var p;if(u==o.display.lineDiv){if(p=o.display.lineDiv.childNodes[h],!p)return jl(o.clipPos(he(o.display.viewTo-1)),!0);u=null,h=0}else for(p=u;;p=p.parentNode){if(!p||p==o.display.lineDiv)return null;if(p.parentNode&&p.parentNode==o.display.lineDiv)break}for(var m=0;m<o.display.view.length;m++){var S=o.display.view[m];if(S.node==p)return eH(S,u,h)}}function eH(o,u,h){var p=o.text.firstChild,m=!1;if(!u||!B(p,u))return jl(he(St(o.line),0),!0);if(u==p&&(m=!0,u=p.childNodes[h],h=0,!u)){var S=o.rest?te(o.rest):o.line;return jl(he(St(S),S.text.length),m)}var _=u.nodeType==3?u:null,L=u;for(!_&&u.childNodes.length==1&&u.firstChild.nodeType==3&&(_=u.firstChild,h&&(h=_.nodeValue.length));L.parentNode!=p;)L=L.parentNode;var P=o.measure,D=P.maps;function G(ye,Ee,_e){for(var Ce=-1;Ce<(D?D.length:0);Ce++)for(var Re=Ce<0?P.map:D[Ce],We=0;We<Re.length;We+=3){var Be=Re[We+2];if(Be==ye||Be==Ee){var at=St(Ce<0?o.line:o.rest[Ce]),kt=Re[We]+_e;return(_e<0||Be!=ye)&&(kt=Re[We+(_e?1:0)]),he(at,kt)}}}var X=G(_,L,h);if(X)return jl(X,m);for(var ne=L.nextSibling,J=_?_.nodeValue.length-h:0;ne;ne=ne.nextSibling){if(X=G(ne,ne.firstChild,0),X)return jl(he(X.line,X.ch-J),m);J+=ne.textContent.length}for(var ae=L.previousSibling,de=h;ae;ae=ae.previousSibling){if(X=G(ae,ae.firstChild,-1),X)return jl(he(X.line,X.ch+de),m);de+=ae.textContent.length}}var nn=function(o){this.cm=o,this.prevInput="",this.pollingFast=!1,this.polling=new Le,this.hasSelection=!1,this.composing=null,this.resetting=!1};nn.prototype.init=function(o){var u=this,h=this,p=this.cm;this.createField(o);var m=this.textarea;o.wrapper.insertBefore(this.wrapper,o.wrapper.firstChild),b&&(m.style.width="0px"),Ue(m,"input",function(){c&&f>=9&&u.hasSelection&&(u.hasSelection=null),h.poll()}),Ue(m,"paste",function(_){ee(p,_)||a_(_,p)||(p.state.pasteIncoming=+new Date,h.fastPoll())});function S(_){if(!ee(p,_)){if(p.somethingSelected())Rp({lineWise:!1,text:p.getSelections()});else if(p.options.lineWiseCopyCut){var L=u_(p);Rp({lineWise:!0,text:L.text}),_.type=="cut"?p.setSelections(L.ranges,null,ct):(h.prevInput="",m.value=L.text.join(`
137`),K(m))}else return;_.type=="cut"&&(p.state.cutIncoming=+new Date)}}Ue(m,"cut",S),Ue(m,"copy",S),Ue(o.scroller,"paste",function(_){if(!(ks(o,_)||ee(p,_))){if(!m.dispatchEvent){p.state.pasteIncoming=+new Date,h.focus();return}var L=new Event("paste");L.clipboardData=_.clipboardData,m.dispatchEvent(L)}}),Ue(o.lineSpace,"selectstart",function(_){ks(o,_)||ke(_)}),Ue(m,"compositionstart",function(){var _=p.getCursor("from");h.composing&&h.composing.range.clear(),h.composing={start:_,range:p.markText(_,p.getCursor("to"),{className:"CodeMirror-composing"})}}),Ue(m,"compositionend",function(){h.composing&&(h.poll(),h.composing.range.clear(),h.composing=null)})},nn.prototype.createField=function(o){this.wrapper=c_(),this.textarea=this.wrapper.firstChild;var u=this.cm.options;cw(this.textarea,u.spellcheck,u.autocorrect,u.autocapitalize)},nn.prototype.screenReaderLabelChanged=function(o){o?this.textarea.setAttribute("aria-label",o):this.textarea.removeAttribute("aria-label")},nn.prototype.prepareSelection=function(){var o=this.cm,u=o.display,h=o.doc,p=tT(o);if(o.options.moveInputWithCursor){var m=Ai(o,h.sel.primary().head,"div"),S=u.wrapper.getBoundingClientRect(),_=u.lineDiv.getBoundingClientRect();p.teTop=Math.max(0,Math.min(u.wrapper.clientHeight-10,m.top+_.top-S.top)),p.teLeft=Math.max(0,Math.min(u.wrapper.clientWidth-10,m.left+_.left-S.left))}return p},nn.prototype.showSelection=function(o){var u=this.cm,h=u.display;z(h.cursorDiv,o.cursors),z(h.selectionDiv,o.selection),o.teTop!=null&&(this.wrapper.style.top=o.teTop+"px",this.wrapper.style.left=o.teLeft+"px")},nn.prototype.reset=function(o){if(!(this.contextMenuPending||this.composing&&o)){var u=this.cm;if(this.resetting=!0,u.somethingSelected()){this.prevInput="";var h=u.getSelection();this.textarea.value=h,u.state.focused&&K(this.textarea),c&&f>=9&&(this.hasSelection=h)}else o||(this.prevInput=this.textarea.value="",c&&f>=9&&(this.hasSelection=null));this.resetting=!1}},nn.prototype.getField=function(){return this.textarea},nn.prototype.supportsTouch=function(){return!1},nn.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!A||Y(me(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},nn.prototype.blur=function(){this.textarea.blur()},nn.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},nn.prototype.receivedFocus=function(){this.slowPoll()},nn.prototype.slowPoll=function(){var o=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){o.poll(),o.cm.state.focused&&o.slowPoll()})},nn.prototype.fastPoll=function(){var o=!1,u=this;u.pollingFast=!0;function h(){var p=u.poll();!p&&!o?(o=!0,u.polling.set(60,h)):(u.pollingFast=!1,u.slowPoll())}u.polling.set(20,h)},nn.prototype.poll=function(){var o=this,u=this.cm,h=this.textarea,p=this.prevInput;if(this.contextMenuPending||this.resetting||!u.state.focused||co(h)&&!p&&!this.composing||u.isReadOnly()||u.options.disableInput||u.state.keySeq)return!1;var m=h.value;if(m==p&&!u.somethingSelected())return!1;if(c&&f>=9&&this.hasSelection===m||O&&/[\uf700-\uf7ff]/.test(m))return u.display.input.reset(),!1;if(u.doc.sel==u.display.selForContextMenu){var S=m.charCodeAt(0);if(S==8203&&!p&&(p="​"),S==8666)return this.reset(),this.cm.execCommand("undo")}for(var _=0,L=Math.min(p.length,m.length);_<L&&p.charCodeAt(_)==m.charCodeAt(_);)++_;return mr(u,function(){uw(u,m.slice(_),p.length-_,null,o.composing?"*compose":null),m.length>1e3||m.indexOf(`
138`)>-1?h.value=o.prevInput="":o.prevInput=m,o.composing&&(o.composing.range.clear(),o.composing.range=u.markText(o.composing.start,u.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},nn.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},nn.prototype.onKeyPress=function(){c&&f>=9&&(this.hasSelection=null),this.fastPoll()},nn.prototype.onContextMenu=function(o){var u=this,h=u.cm,p=h.display,m=u.textarea;u.contextMenuPending&&u.contextMenuPending();var S=Sa(h,o),_=p.scroller.scrollTop;if(!S||w)return;var L=h.options.resetSelectionOnContextMenu;L&&h.doc.sel.contains(S)==-1&&wn(h,Pn)(h.doc,vo(S),ct);var P=m.style.cssText,D=u.wrapper.style.cssText,G=u.wrapper.offsetParent.getBoundingClientRect();u.wrapper.style.cssText="position: static",m.style.cssText=`position: absolute; width: 30px; height: 30px;
139      top: `+(o.clientY-G.top-5)+"px; left: "+(o.clientX-G.left-5)+`px;
140      z-index: 1000; background: `+(c?"rgba(255, 255, 255, .05)":"transparent")+`;
141      outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var X;d&&(X=m.ownerDocument.defaultView.scrollY),p.input.focus(),d&&m.ownerDocument.defaultView.scrollTo(null,X),p.input.reset(),h.somethingSelected()||(m.value=u.prevInput=" "),u.contextMenuPending=J,p.selForContextMenu=h.doc.sel,clearTimeout(p.detectingSelectAll);function ne(){if(m.selectionStart!=null){var de=h.somethingSelected(),ye="​"+(de?m.value:"");m.value="⇚",m.value=ye,u.prevInput=de?"":"​",m.selectionStart=1,m.selectionEnd=ye.length,p.selForContextMenu=h.doc.sel}}function J(){if(u.contextMenuPending==J&&(u.contextMenuPending=!1,u.wrapper.style.cssText=D,m.style.cssText=P,c&&f<9&&p.scrollbars.setScrollTop(p.scroller.scrollTop=_),m.selectionStart!=null)){(!c||c&&f<9)&&ne();var de=0,ye=function(){p.selForContextMenu==h.doc.sel&&m.selectionStart==0&&m.selectionEnd>0&&u.prevInput=="​"?wn(h,IT)(h):de++<10?p.detectingSelectAll=setTimeout(ye,500):(p.selForContextMenu=null,p.input.reset())};p.detectingSelectAll=setTimeout(ye,200)}}if(c&&f>=9&&ne(),W){Ke(o);var ae=function(){Wn(window,"mouseup",ae),setTimeout(J,20)};Ue(window,"mouseup",ae)}else setTimeout(J,50)},nn.prototype.readOnlyChanged=function(o){o||this.reset(),this.textarea.disabled=o=="nocursor",this.textarea.readOnly=!!o},nn.prototype.setUneditable=function(){},nn.prototype.needsContentAttribute=!1;function tH(o,u){if(u=u?it(u):{},u.value=o.value,!u.tabindex&&o.tabIndex&&(u.tabindex=o.tabIndex),!u.placeholder&&o.placeholder&&(u.placeholder=o.placeholder),u.autofocus==null){var h=Y(me(o));u.autofocus=h==o||o.getAttribute("autofocus")!=null&&h==document.body}function p(){o.value=L.getValue()}var m;if(o.form&&(Ue(o.form,"submit",p),!u.leaveSubmitMethodAlone)){var S=o.form;m=S.submit;try{var _=S.submit=function(){p(),S.submit=m,S.submit(),S.submit=_}}catch{}}u.finishInit=function(P){P.save=p,P.getTextArea=function(){return o},P.toTextArea=function(){P.toTextArea=isNaN,p(),o.parentNode.removeChild(P.getWrapperElement()),o.style.display="",o.form&&(Wn(o.form,"submit",p),!u.leaveSubmitMethodAlone&&typeof o.form.submit=="function"&&(o.form.submit=m))}},o.style.display="none";var L=$t(function(P){return o.parentNode.insertBefore(P,o.nextSibling)},u);return L}function nH(o){o.off=Wn,o.on=Ue,o.wheelEventPixels=uU,o.Doc=nr,o.splitLines=en,o.countColumn=qe,o.findColumn=vt,o.isWordChar=Se,o.Pass=et,o.signal=qt,o.Line=Tl,o.changeEnd=yo,o.scrollbarModel=aT,o.Pos=he,o.cmpPos=nt,o.modes=Ci,o.mimeModes=ts,o.resolveMode=Ti,o.getMode=fo,o.modeExtensions=dt,o.extendMode=xt,o.copyState=tn,o.startState=rp,o.innerMode=po,o.commands=Jc,o.keyMap=Os,o.keyName=qT,o.isModifierKey=VT,o.lookupKey=Fl,o.normalizeKeyMap=IU,o.StringStream=un,o.SharedTextMarker=Yc,o.TextMarker=bo,o.LineWidget=Gc,o.e_preventDefault=ke,o.e_stopPropagation=ut,o.e_stop=Ke,o.addClass=Z,o.contains=B,o.rmClass=V,o.keyNames=xo}qU($t),QU($t);var rH="iter insert remove copy getEditor constructor".split(" ");for(var Dp in nr.prototype)nr.prototype.hasOwnProperty(Dp)&&Oe(rH,Dp)<0&&($t.prototype[Dp]=function(o){return function(){return o.apply(this.doc,arguments)}}(nr.prototype[Dp]));return xe(nr),$t.inputStyles={textarea:nn,contenteditable:Et},$t.defineMode=function(o){!$t.defaults.mode&&o!="null"&&($t.defaults.mode=o),va.apply(this,arguments)},$t.defineMIME=kc,$t.defineMode("null",function(){return{token:function(o){return o.skipToEnd()}}}
141),$t.defineMIME("text/plain","null"),$t.defineExtension=function(o,u){$t.prototype[o]=u},$t.defineDocExtension=function(o,u){nr.prototype[o]=u},$t.fromTextArea=tH,nH($t),$t.version="5.65.16",$t})})(mB);var ei=mB.exports;(function(t,e){(function(n){n(ei)})(function(n){var r=/^(\s*)(>[> ]*|[*+-] \[[x ]\]\s|[*+-]\s|(\d+)([.)]))(\s*)/,i=/^(\s*)(>[> ]*|[*+-] \[[x ]\]|[*+-]|(\d+)[.)])(\s*)$/,s=/[*+-]\s/;n.commands.newlineAndIndentContinueMarkdownList=function(l){if(l.getOption("disableInput"))return n.Pass;for(var c=l.listSelections(),f=[],d=0;d<c.length;d++){var g=c[d].head,v=l.getStateAfter(g.line),y=n.innerMode(l.getMode(),v);if(y.mode.name!=="markdown"&&y.mode.helperType!=="markdown"){l.execCommand("newlineAndIndent");return}else v=y.state;var w=v.list!==!1,T=v.quote!==0,E=l.getLine(g.line),x=r.exec(E),b=/^\s*$/.test(E.slice(0,g.ch));if(!c[d].empty()||!w&&!T||!x||b){l.execCommand("newlineAndIndent");return}if(i.test(E)){var C=T&&/>\s*$/.test(E),A=!/>\s*$/.test(E);(C||A)&&l.replaceRange("",{line:g.line,ch:0},{line:g.line,ch:g.ch+1}),f[d]=`
142`}else{var O=x[1],k=x[5],R=!(s.test(x[2])||x[2].indexOf(">")>=0),$=R?parseInt(x[3],10)+1+x[4]:x[2].replace("x"," ");f[d]=`
143`+O+$+k,R&&a(l,g)}}l.replaceSelections(f)};function a(l,c){var f=c.line,d=0,g=0,v=r.exec(l.getLine(f)),y=v[1];do{d+=1;var w=f+d,T=l.getLine(w),E=r.exec(T);if(E){var x=E[1],b=parseInt(v[3],10)+d-g,C=parseInt(E[3],10),A=C;if(y===x&&!isNaN(C))b===C&&(A=C+1),b>C&&(A=b+1),l.replaceRange(T.replace(r,x+A+E[4]+E[5]),{line:w,ch:0},{line:w,ch:T.length});else{if(y.length>x.length||y.length<x.length&&d===1)return;g+=1}}}while(E)}})})();var vB=ei;vB.commands.tabAndIndentMarkdownList=function(t){var e=t.listSelections(),n=e[0].head,r=t.getStateAfter(n.line),i=r.list!==!1;if(i){t.execCommand("indentMore");return}if(t.options.indentWithTabs)t.execCommand("insertTab");else{var s=Array(t.options.tabSize+1).join(" ");t.replaceSelection(s)}};vB.commands.shiftTabAndUnindentMarkdownList=function(t){var e=t.listSelections(),n=e[0].head,r=t.getStateAfter(n.line),i=r.list!==!1;if(i){t.execCommand("indentLess");return}if(t.options.indentWithTabs)t.execCommand("insertTab");else{var s=Array(t.options.tabSize+1).join(" ");t.replaceSelection(s)}};(function(t,e){(function(n){n(ei)})(function(n){n.defineOption("fullScreen",!1,function(s,a,l){l==n.Init&&(l=!1),!l!=!a&&(a?r(s):i(s))});function r(s){var a=s.getWrapperElement();s.state.fullScreenRestore={scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,width:a.style.width,height:a.style.height},a.style.width="",a.style.height="auto",a.className+=" CodeMirror-fullscreen",document.documentElement.style.overflow="hidden",s.refresh()}function i(s){var a=s.getWrapperElement();a.className=a.className.replace(/\s*CodeMirror-fullscreen\b/,""),document.documentElement.style.overflow="";var l=s.state.fullScreenRestore;a.style.width=l.width,a.style.height=l.height,window.scrollTo(l.scrollLeft,l.scrollTop),s.refresh()}})})();var dde={exports:{}},pde={exports:{}};(function(t,e){(function(n){n(ei)})(function(n){var r={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},i={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};n.defineMode("xml",function(s,a){var l=s.indentUnit,c={},f=a.htmlMode?r:i;for(var d in f)c[d]=f[d];for(var d in a)c[d]=a[d];var g,v;function y(M,q){function U(Z){return q.tokenize=Z,Z(M,q)}var B=M.next();if(B=="<")return M.eat("!")?M.eat("[")?M.match("CDATA[")?U(E("atom","]]>")):null:M.match("--")?U(E("comment","-->")):M.match("DOCTYPE",!0,!0)?(M.eatWhile(/[\w\._\-]/),U(x(1))):null:M.eat("?")?(M.eatWhile(/[\w\._\-]/),q.tokenize=E("meta","?>"),"meta"):(g=M.eat("/")?"closeTag":"openTag",q.tokenize=w,"tag bracket");if(B=="&"){var Y;
143return M.eat("#")?M.eat("x")?Y=M.eatWhile(/[a-fA-F\d]/)&&M.eat(";"):Y=M.eatWhile(/[\d]/)&&M.eat(";"):Y=M.eatWhile(/[\w\.\-:]/)&&M.eat(";"),Y?"atom":"error"}else return M.eatWhile(/[^&<]/),null}y.isInText=!0;function w(M,q){var U=M.next();if(U==">"||U=="/"&&M.eat(">"))return q.tokenize=y,g=U==">"?"endTag":"selfcloseTag","tag bracket";if(U=="=")return g="equals",null;if(U=="<"){q.tokenize=y,q.state=k,q.tagName=q.tagStart=null;var B=q.tokenize(M,q);return B?B+" tag error":"tag error"}else return/[\'\"]/.test(U)?(q.tokenize=T(U),q.stringStartCol=M.column(),q.tokenize(M,q)):(M.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function T(M){var q=function(U,B){for(;!U.eol();)if(U.next()==M){B.tokenize=w;break}return"string"};return q.isInAttribute=!0,q}function E(M,q){return function(U,B){for(;!U.eol();){if(U.match(q)){B.tokenize=y;break}U.next()}return M}}function x(M){return function(q,U){for(var B;(B=q.next())!=null;){if(B=="<")return U.tokenize=x(M+1),U.tokenize(q,U);if(B==">")if(M==1){U.tokenize=y;break}else return U.tokenize=x(M-1),U.tokenize(q,U)}return"meta"}}function b(M){return M&&M.toLowerCase()}function C(M,q,U){this.prev=M.context,this.tagName=q||"",this.indent=M.indented,this.startOfLine=U,(c.doNotIndent.hasOwnProperty(q)||M.context&&M.context.noIndent)&&(this.noIndent=!0)}function A(M){M.context&&(M.context=M.context.prev)}function O(M,q){for(var U;;){if(!M.context||(U=M.context.tagName,!c.contextGrabbers.hasOwnProperty(b(U))||!c.contextGrabbers[b(U)].hasOwnProperty(b(q))))return;A(M)}}function k(M,q,U){return M=="openTag"?(U.tagStart=q.column(),R):M=="closeTag"?$:k}function R(M,q,U){return M=="word"?(U.tagName=q.current(),v="tag",H):c.allowMissingTagName&&M=="endTag"?(v="tag bracket",H(M,q,U)):(v="error",R)}function $(M,q,U){if(M=="word"){var B=q.current();return U.context&&U.context.tagName!=B&&c.implicitlyClosed.hasOwnProperty(b(U.context.tagName))&&A(U),U.context&&U.context.tagName==B||c.matchClosing===!1?(v="tag",j):(v="tag error",W)}else return c.allowMissingTagName&&M=="endTag"?(v="tag bracket",j(M,q,U)):(v="error",W)}function j(M,q,U){return M!="endTag"?(v="error",j):(A(U),k)}function W(M,q,U){return v="error",j(M,q,U)}function H(M,q,U){if(M=="word")return v="attribute",V;if(M=="endTag"||M=="selfcloseTag"){var B=U.tagName,Y=U.tagStart;return U.tagName=U.tagStart=null,M=="selfcloseTag"||c.autoSelfClosers.hasOwnProperty(b(B))?O(U,B):(O(U,B),U.context=new C(U,B,Y==U.indented)),k}return v="error",H}function V(M,q,U){return M=="equals"?F:(c.allowMissing||(v="error"),H(M,q,U))}function F(M,q,U){return M=="string"?z:M=="word"&&c.allowUnquoted?(v="string",H):(v="error",H(M,q,U))}function z(M,q,U){return M=="string"?z:H(M,q,U)}return{startState:function(M){var q={tokenize:y,state:k,indented:M||0,tagName:null,tagStart:null,context:null};return M!=null&&(q.baseIndent=M),q},token:function(M,q){if(!q.tagName&&M.sol()&&(q.indented=M.indentation()),M.eatSpace())return null;g=null;var U=q.tokenize(M,q);return(U||g)&&U!="comment"&&(v=null,q.state=q.state(g||U,M,q),v&&(U=v=="error"?U+" error":v)),U},indent:function(M,q,U){var B=M.context;if(M.tokenize.isInAttribute)return M.tagStart==M.indented?M.stringStartCol+1:M.indented+l;if(B&&B.noIndent)return n.Pass;if(M.tokenize!=w&&M.tokenize!=y)return U?U.match(/^(\s*)/)[0].length:0;if(M.tagName)return c.multilineTagIndentPastTag!==!1?M.tagStart+M.tagName.length+2:M.tagStart+l*(c.multilineTagIndentFactor||1);if(c.alignCDATA&&/<!\[CDATA\[/.test(q))return 0;var Y=q&&/^<(\/)?([\w_:\.-]*)/.exec(q);if(Y&&Y[1])for(;B;)if(B.tagName==Y[2]){B=B.prev;break}else if(c.implicitlyClosed.hasOwnProperty(b(B.tagName)))B=B.prev;else break;else if(Y)for(;B;){var Z=c.contextGrabbers[b(B.tagName)];if(Z&&Z.hasOwnProperty(b(Y[2])))B=B.prev;else break}for(;B&&B.prev&&!B.startOfLine;)B=B.prev;return B?B.indent+l:M.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:c.htmlMode?"html":"xml",helperType:c.htmlMode?"html":"xml",skipAttribute:function(M){M.state==F&&(M.state=H)},xmlCurrentTag:function(M){return M.tagName?{name:M.tagName,close:M.type=="closeTag"}:null},xmlCurrentContext:function(M){for(var q=[],U=M.context;U;U=U.prev)q.push(U.tagName);return q.reverse()}}}),n.defineMIME("text/xml","xml"),n.defineMIME("application/xml","xml"),n.mimeModes.hasOwnProperty("text/html")||n.defineMIME("text/html",{name:"xml",htmlMode:!0})})})();
143var hde=pde.exports,xI={exports:{}},SI;function gde(){return SI||(SI=1,function(t,e){(function(n){n(ei)})(function(n){n.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy","cbl"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded JavaScript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]}
143,{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"],alias:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var r=0;r<n.modeInfo.length;r++){var i=n.modeInfo[r];i.mimes&&(i.mime=i.mimes[0])}n.findModeByMIME=function(s){s=s.toLowerCase();for(var a=0;a<n.modeInfo.length;a++){var l=n.modeInfo[a];if(l.mime==s)return l;if(l.mimes){for(var c=0;c<l.mimes.length;c++)if(l.mimes[c]==s)return l}}if(/\+xml$/.test(s))return n.findModeByMIME("application/xml");if(/\+json$/.test(s))return n.findModeByMIME("application/json")},n.findModeByExtension=function(s){s=s.toLowerCase();for(var a=0;a<n.modeInfo.length;a++){var l=n.modeInfo[a];if(l.ext){for(var c=0;c<l.ext.length;c++)if(l.ext[c]==s)return l}}},n.findModeByFileName=function(s){for(var a=0;a<n.modeInfo.length;a++){var l=n.modeInfo[a];if(l.file&&l.file.test(s))return l}var c=s.lastIndexOf("."),f=c>-1&&s.substring(c+1,s.length);if(f)return n.findModeByExtension(f)},n.findModeByName=function(s){s=s.toLowerCase();for(var a=0;a<n.modeInfo.length;a++){var l=n.modeInfo[a];if(l.name.toLowerCase()==s)return l;if(l.alias){for(var c=0;c<l.alias.length;c++)if(l.alias[c].toLowerCase()==s)return l}}}})}()),xI.exports}(function(t,e){(function(n){n(ei,hde,gde())})(function(n){n.defineMode("markdown",function(r,i){var s=n.getMode(r,"text/html"),a=s.name=="null";function l(K){if(n.findModeByName){var N=n.findModeByName(K);
143N&&(K=N.mime||N.mimes[0])}var ie=n.getMode(r,K);return ie.name=="null"?null:ie}i.highlightFormatting===void 0&&(i.highlightFormatting=!1),i.maxBlockquoteDepth===void 0&&(i.maxBlockquoteDepth=0),i.taskLists===void 0&&(i.taskLists=!1),i.strikethrough===void 0&&(i.strikethrough=!1),i.emoji===void 0&&(i.emoji=!1),i.fencedCodeBlockHighlighting===void 0&&(i.fencedCodeBlockHighlighting=!0),i.fencedCodeBlockDefaultMode===void 0&&(i.fencedCodeBlockDefaultMode="text/plain"),i.xml===void 0&&(i.xml=!0),i.tokenTypeOverrides===void 0&&(i.tokenTypeOverrides={});var c={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var f in c)c.hasOwnProperty(f)&&i.tokenTypeOverrides[f]&&(c[f]=i.tokenTypeOverrides[f]);var d=/^([*\-_])(?:\s*\1){2,}\s*$/,g=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,v=/^\[(x| )\](?=\s)/i,y=i.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,w=/^ {0,3}(?:\={1,}|-{2,})\s*$/,T=/^[^#!\[\]*_\\<>` "'(~:]+/,E=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,x=/^\s*\[[^\]]+?\]:.*$/,b=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,C="    ";function A(K,N,ie){return N.f=N.inline=ie,ie(K,N)}function O(K,N,ie){return N.f=N.block=ie,ie(K,N)}function k(K){return!K||!/\S/.test(K.string)}function R(K){if(K.linkTitle=!1,K.linkHref=!1,K.linkText=!1,K.em=!1,K.strong=!1,K.strikethrough=!1,K.quote=0,K.indentedCode=!1,K.f==j){var N=a;if(!N){var ie=n.innerMode(s,K.htmlState);N=ie.mode.name=="xml"&&ie.state.tagStart===null&&!ie.state.context&&ie.state.tokenize.isInText}N&&(K.f=F,K.block=$,K.htmlState=null)}return K.trailingSpace=0,K.trailingSpaceNewLine=!1,K.prevLine=K.thisLine,K.thisLine={stream:null},null}function $(K,N){var ie=K.column()===N.indentation,me=k(N.prevLine.stream),ve=N.indentedCode,ze=N.prevLine.hr,it=N.list!==!1,qe=(N.listStack[N.listStack.length-1]||0)+3;N.indentedCode=!1;var Le=N.indentation;if(N.indentationDiff===null&&(N.indentationDiff=N.indentation,it)){for(N.list=null;Le<N.listStack[N.listStack.length-1];)N.listStack.pop(),N.listStack.length?N.indentation=N.listStack[N.listStack.length-1]:N.list=!1;N.list!==!1&&(N.indentationDiff=Le-N.listStack[N.listStack.length-1])}var Oe=!me&&!ze&&!N.prevLine.header&&(!it||!ve)&&!N.prevLine.fencedCodeEnd,$e=(N.list===!1||ze||me)&&N.indentation<=qe&&K.match(d),et=null;if(N.indentationDiff>=4&&(ve||N.prevLine.fencedCodeEnd||N.prevLine.header||me))return K.skipToEnd(),N.indentedCode=!0,c.code;if(K.eatSpace())return null;if(ie&&N.indentation<=qe&&(et=K.match(y))&&et[1].length<=6)return N.quote=0,N.header=et[1].length,N.thisLine.header=!0,i.highlightFormatting&&(N.formatting="header"),N.f=N.inline,H(N);if(N.indentation<=qe&&K.eat(">"))return N.quote=ie?1:N.quote+1,i.highlightFormatting&&(N.formatting="quote"),K.eatSpace(),H(N);if(!$e&&!N.setext&&ie&&N.indentation<=qe&&(et=K.match(g))){var ct=et[1]?"ol"
143:"ul";return N.indentation=Le+K.current().length,N.list=!0,N.quote=0,N.listStack.push(N.indentation),N.em=!1,N.strong=!1,N.code=!1,N.strikethrough=!1,i.taskLists&&K.match(v,!1)&&(N.taskList=!0),N.f=N.inline,i.highlightFormatting&&(N.formatting=["list","list-"+ct]),H(N)}else{if(ie&&N.indentation<=qe&&(et=K.match(E,!0)))return N.quote=0,N.fencedEndRE=new RegExp(et[1]+"+ *$"),N.localMode=i.fencedCodeBlockHighlighting&&l(et[2]||i.fencedCodeBlockDefaultMode),N.localMode&&(N.localState=n.startState(N.localMode)),N.f=N.block=W,i.highlightFormatting&&(N.formatting="code-block"),N.code=-1,H(N);if(N.setext||(!Oe||!it)&&!N.quote&&N.list===!1&&!N.code&&!$e&&!x.test(K.string)&&(et=K.lookAhead(1))&&(et=et.match(w)))return N.setext?(N.header=N.setext,N.setext=0,K.skipToEnd(),i.highlightFormatting&&(N.formatting="header")):(N.header=et[0].charAt(0)=="="?1:2,N.setext=N.header),N.thisLine.header=!0,N.f=N.inline,H(N);if($e)return K.skipToEnd(),N.hr=!0,N.thisLine.hr=!0,c.hr;if(K.peek()==="[")return A(K,N,B)}return A(K,N,N.inline)}function j(K,N){var ie=s.token(K,N.htmlState);if(!a){var me=n.innerMode(s,N.htmlState);(me.mode.name=="xml"&&me.state.tagStart===null&&!me.state.context&&me.state.tokenize.isInText||N.md_inside&&K.current().indexOf(">")>-1)&&(N.f=F,N.block=$,N.htmlState=null)}return ie}function W(K,N){var ie=N.listStack[N.listStack.length-1]||0,me=N.indentation<ie,ve=ie+3;if(N.fencedEndRE&&N.indentation<=ve&&(me||K.match(N.fencedEndRE))){i.highlightFormatting&&(N.formatting="code-block");var ze;return me||(ze=H(N)),N.localMode=N.localState=null,N.block=$,N.f=F,N.fencedEndRE=null,N.code=0,N.thisLine.fencedCodeEnd=!0,me?O(K,N,N.block):ze}else return N.localMode?N.localMode.token(K,N.localState):(K.skipToEnd(),c.code)}function H(K){var N=[];if(K.formatting){N.push(c.formatting),typeof K.formatting=="string"&&(K.formatting=[K.formatting]);for(var ie=0;ie<K.formatting.length;ie++)N.push(c.formatting+"-"+K.formatting[ie]),K.formatting[ie]==="header"&&N.push(c.formatting+"-"+K.formatting[ie]+"-"+K.header),K.formatting[ie]==="quote"&&(!i.maxBlockquoteDepth||i.maxBlockquoteDepth>=K.quote?N.push(c.formatting+"-"+K.formatting[ie]+"-"+K.quote):N.push("error"))}if(K.taskOpen)return N.push("meta"),N.length?N.join(" "):null;if(K.taskClosed)return N.push("property"),N.length?N.join(" "):null;if(K.linkHref?N.push(c.linkHref,"url"):(K.strong&&N.push(c.strong),K.em&&N.push(c.em),K.strikethrough&&N.push(c.strikethrough),K.emoji&&N.push(c.emoji),K.linkText&&N.push(c.linkText),K.code&&N.push(c.code),K.image&&N.push(c.image),K.imageAltText&&N.push(c.imageAltText,"link"),K.imageMarker&&N.push(c.imageMarker)),K.header&&N.push(c.header,c.header+"-"+K.header),K.quote&&(N.push(c.quote),!i.maxBlockquoteDepth||i.maxBlockquoteDepth>=K.quote?N.push(c.quote+"-"+K.quote):N.push(c.quote+"-"+i.maxBlockquoteDepth)),K.list!==!1){var me=(K.listStack.length-1)%3;me?me===1?N.push(c.list2):N.push(c.list3):N.push(c.list1)}return K.trailingSpaceNewLine?N.push("trailing-space-new-line"):K.trailingSpace&&N.push("trailing-space-"+(K.trailingSpace%2?"a":"b")),N.length?N.join(" "):null}function V(K,N){if(K.match(T,!0))return H(N)}function F(K,N){var ie=N.text(K,N);if(typeof ie<"u")return ie;if(N.list)return N.list=null,H(N);if(N.taskList){var me=K.match(v,!0)[1]===" ";return me?N.taskOpen=!0:N.taskClosed=!0,i.highlightFormatting&&(N.formatting="task"),N.taskList=!1,H(N)}if(N.taskOpen=!1,N.taskClosed=!1,N.header&&K.match(/^#+$/,!0))return i.highlightFormatting&&(N.formatting="header"),H(N);var ve=K.next();if(N.linkTitle){N.linkTitle=!1;var ze=ve;ve==="("&&(ze=")"),ze=(ze+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var it="^\\s*(?:[^"+ze+"\\\\]+|\\\\\\\\|\\\\.)"+ze;if(K.match(new RegExp(it),!0))return c.linkHref}if(ve==="`"){var qe=N.formatting;i.highlightFormatting&&(N.formatting="code"),K.eatWhile("`");var Le=K.current().length;if(N.code==0&&(!N.quote||Le==1))return N.code=Le,H(N);if(Le==N.code){var Oe=H(N);return N.code=0,Oe}else return N.formatting=qe,H(N)}else if(N.code)return H(N);if(ve==="\\"&&(K.next(),i.highlightFormatting)){var $e=H(N),et=c.formatting+"-escape";return $e?$e+" "+et:et}if(ve==="!"&&K.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return N.imageMarker=!0,N.image=!0,i.highlightFormatting&&(N.formatting="image"),H(N);if(ve==="["&&N.imageMarker&&K.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return N.imageMarker=!1,N.imageAltText=!0,i.highlightFormatting&&(N.formatting="image"),H(N);if(ve==="]"&&N.imageAltText){i.highlightFormatting&&(N.formatting="image");var $e=H(N);return N.imageAltText=!1,N.image=!1,N.inline=N.f=M,$e}
143if(ve==="["&&!N.image)return N.linkText&&K.match(/^.*?\]/)||(N.linkText=!0,i.highlightFormatting&&(N.formatting="link")),H(N);if(ve==="]"&&N.linkText){i.highlightFormatting&&(N.formatting="link");var $e=H(N);return N.linkText=!1,N.inline=N.f=K.match(/\(.*?\)| ?\[.*?\]/,!1)?M:F,$e}if(ve==="<"&&K.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){N.f=N.inline=z,i.highlightFormatting&&(N.formatting="link");var $e=H(N);return $e?$e+=" ":$e="",$e+c.linkInline}if(ve==="<"&&K.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){N.f=N.inline=z,i.highlightFormatting&&(N.formatting="link");var $e=H(N);return $e?$e+=" ":$e="",$e+c.linkEmail}if(i.xml&&ve==="<"&&K.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var ct=K.string.indexOf(">",K.pos);if(ct!=-1){var Ge=K.string.substring(K.start,ct);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Ge)&&(N.md_inside=!0)}return K.backUp(1),N.htmlState=n.startState(s),O(K,N,j)}if(i.xml&&ve==="<"&&K.match(/^\/\w*?>/))return N.md_inside=!1,"tag";if(ve==="*"||ve==="_"){for(var Tt=1,vt=K.pos==1?" ":K.string.charAt(K.pos-2);Tt<3&&K.eat(ve);)Tt++;var _t=K.peek()||" ",Q=!/\s/.test(_t)&&(!b.test(_t)||/\s/.test(vt)||b.test(vt)),te=!/\s/.test(vt)&&(!b.test(vt)||/\s/.test(_t)||b.test(_t)),oe=null,Te=null;if(Tt%2&&(!N.em&&Q&&(ve==="*"||!te||b.test(vt))?oe=!0:N.em==ve&&te&&(ve==="*"||!Q||b.test(_t))&&(oe=!1)),Tt>1&&(!N.strong&&Q&&(ve==="*"||!te||b.test(vt))?Te=!0:N.strong==ve&&te&&(ve==="*"||!Q||b.test(_t))&&(Te=!1)),Te!=null||oe!=null){i.highlightFormatting&&(N.formatting=oe==null?"strong":Te==null?"em":"strong em"),oe===!0&&(N.em=ve),Te===!0&&(N.strong=ve);var Oe=H(N);return oe===!1&&(N.em=!1),Te===!1&&(N.strong=!1),Oe}}else if(ve===" "&&(K.eat("*")||K.eat("_"))){if(K.peek()===" ")return H(N);K.backUp(1)}if(i.strikethrough){if(ve==="~"&&K.eatWhile(ve)){if(N.strikethrough){i.highlightFormatting&&(N.formatting="strikethrough");var Oe=H(N);return N.strikethrough=!1,Oe}else if(K.match(/^[^\s]/,!1))return N.strikethrough=!0,i.highlightFormatting&&(N.formatting="strikethrough"),H(N)}else if(ve===" "&&K.match("~~",!0)){if(K.peek()===" ")return H(N);K.backUp(2)}}if(i.emoji&&ve===":"&&K.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){N.emoji=!0,i.highlightFormatting&&(N.formatting="emoji");var be=H(N);return N.emoji=!1,be}return ve===" "&&(K.match(/^ +$/,!1)?N.trailingSpace++:N.trailingSpace&&(N.trailingSpaceNewLine=!0)),H(N)}function z(K,N){var ie=K.next();if(ie===">"){N.f=N.inline=F,i.highlightFormatting&&(N.formatting="link");var me=H(N);return me?me+=" ":me="",me+c.linkInline}return K.match(/^[^>]+/,!0),c.linkInline}function M(K,N){if(K.eatSpace())return null;var ie=K.next();return ie==="("||ie==="["?(N.f=N.inline=U(ie==="("?")":"]"),i.highlightFormatting&&(N.formatting="link-string"),N.linkHref=!0,H(N)):"error"}var q={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function U(K){return function(N,ie){var me=N.next();if(me===K){ie.f=ie.inline=F,i.highlightFormatting&&(ie.formatting="link-string");var ve=H(ie);return ie.linkHref=!1,ve}return N.match(q[K]),ie.linkHref=!0,H(ie)}}function B(K,N){return K.match(/^([^\]\\]|\\.)*\]:/,!1)?(N.f=Y,K.next(),i.highlightFormatting&&(N.formatting="link"),N.linkText=!0,H(N)):A(K,N,F)}function Y(K,N){if(K.match("]:",!0)){N.f=N.inline=Z,i.highlightFormatting&&(N.formatting="link");var ie=H(N);return N.linkText=!1,ie}return K.match(/^([^\]\\]|\\.)+/,!0),c.linkText}function Z(K,N){return K.eatSpace()?null:(K.match(/^[^\s]+/,!0),K.peek()===void 0?N.linkTitle=!0:K.match(/^(?:\s+(?:"(?:[^"\\]|\\.)+"|'(?:[^'\\]|\\.)+'|\((?:[^)\\]|\\.)+\)))?/,!0),N.f=N.inline=F,c.linkHref+" url")}var fe={startState:function(){return{f:$,prevLine:{stream:null},thisLine:{stream:null},block:$,htmlState:null,indentation:0,inline:F,text:V,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(K){return{f:K.f,prevLine:K.prevLine,thisLine:K.thisLine,block:K.block,htmlState:K.htmlState&&n.copyState(s,K.htmlState),indentation:K.indentation,localMode:K.localMode,localState:K.localMode?n.copyState(K.localMode,K.localState):null,inline:K.inline,text:K.text,formatting:!1,linkText:K.linkText,linkTitle:K.linkTitle,linkHref:K.linkHref,code:K.code,em:K.em,strong:K.strong,strikethrough:K.strikethrough,emoji:K.emoji,header:K.header,setext:K.setext,hr:K.hr,taskList:K.taskList,list:K.list,listStack:K.listStack.slice(0),quote:K.quote,indentedCode:K.indentedCode,trailingSpace:K.trailingSpace,trailingSpaceNewLine:K.trailingSpaceNewLine,md_inside:K.md_inside,fencedEndRE:K.fencedEndRE}},token:function(K,N){if(N.formatting=!1,K!=N.thisLine.stream){if(N.header=0,N.hr=!1,K.match(/^\s*$/,!0))return R(N),null;
143if(N.prevLine=N.thisLine,N.thisLine={stream:K},N.taskList=!1,N.trailingSpace=0,N.trailingSpaceNewLine=!1,!N.localState&&(N.f=N.block,N.f!=j)){var ie=K.match(/^\s*/,!0)[0].replace(/\t/g,C).length;if(N.indentation=ie,N.indentationDiff=null,ie>0)return null}}return N.f(K,N)},innerMode:function(K){return K.block==j?{state:K.htmlState,mode:s}:K.localState?{state:K.localState,mode:K.localMode}:{state:K,mode:fe}},indent:function(K,N,ie){return K.block==j&&s.indent?s.indent(K.htmlState,N,ie):K.localState&&K.localMode.indent?K.localMode.indent(K.localState,N,ie):n.Pass},blankLine:R,getType:H,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return fe},"xml"),n.defineMIME("text/markdown","markdown"),n.defineMIME("text/x-markdown","markdown")})})();var mde=dde.exports,vde={exports:{}};(function(t,e){(function(n){n(ei)})(function(n){n.overlayMode=function(r,i,s){return{startState:function(){return{base:n.startState(r),overlay:n.startState(i),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(a){return{base:n.copyState(r,a.base),overlay:n.copyState(i,a.overlay),basePos:a.basePos,baseCur:null,overlayPos:a.overlayPos,overlayCur:null}},token:function(a,l){return(a!=l.streamSeen||Math.min(l.basePos,l.overlayPos)<a.start)&&(l.streamSeen=a,l.basePos=l.overlayPos=a.start),a.start==l.basePos&&(l.baseCur=r.token(a,l.base),l.basePos=a.pos),a.start==l.overlayPos&&(a.pos=a.start,l.overlayCur=i.token(a,l.overlay),l.overlayPos=a.pos),a.pos=Math.min(l.basePos,l.overlayPos),l.overlayCur==null?l.baseCur:l.baseCur!=null&&l.overlay.combineTokens||s&&l.overlay.combineTokens==null?l.baseCur+" "+l.overlayCur:l.overlayCur},indent:r.indent&&function(a,l,c){return r.indent(a.base,l,c)},electricChars:r.electricChars,innerMode:function(a){return{state:a.base,mode:r}},blankLine:function(a){var l,c;return r.blankLine&&(l=r.blankLine(a.base)),i.blankLine&&(c=i.blankLine(a.overlay)),c==null?l:s&&l!=null?l+" "+c:c}}}})})();var yde=vde.exports;(function(t,e){(function(n){n(ei)})(function(n){n.defineOption("placeholder","",function(f,d,g){var v=g&&g!=n.Init;if(d&&!v)f.on("blur",a),f.on("change",l),f.on("swapDoc",l),n.on(f.getInputField(),"compositionupdate",f.state.placeholderCompose=function(){s(f)}),l(f);else if(!d&&v){f.off("blur",a),f.off("change",l),f.off("swapDoc",l),n.off(f.getInputField(),"compositionupdate",f.state.placeholderCompose),r(f);var y=f.getWrapperElement();y.className=y.className.replace(" CodeMirror-empty","")}d&&!f.hasFocus()&&a(f)});function r(f){f.state.placeholder&&(f.state.placeholder.parentNode.removeChild(f.state.placeholder),f.state.placeholder=null)}function i(f){r(f);var d=f.state.placeholder=document.createElement("pre");d.style.cssText="height: 0; overflow: visible",d.style.direction=f.getOption("direction"),d.className="CodeMirror-placeholder CodeMirror-line-like";var g=f.getOption("placeholder");typeof g=="string"&&(g=document.createTextNode(g)),d.appendChild(g),f.display.lineSpace.insertBefore(d,f.display.lineSpace.firstChild)}function s(f){setTimeout(function(){var d=!1;if(f.lineCount()==1){var g=f.getInputField();d=g.nodeName=="TEXTAREA"?!f.getLine(0).length:!/[^\u200b]/.test(g.querySelector(".CodeMirror-line").textContent)}d?i(f):r(f)},20)}function a(f){c(f)&&i(f)}function l(f){var d=f.getWrapperElement(),g=c(f);d.className=d.className.replace(" CodeMirror-empty","")+(g?" CodeMirror-empty":""),g?i(f):r(f)}function c(f){return f.lineCount()===1&&f.getLine(0)===""}})})();(function(t,e){(function(n){n(ei)})(function(n){n.defineOption("autoRefresh",!1,function(s,a){s.state.autoRefresh&&(i(s,s.state.autoRefresh),s.state.autoRefresh=null),a&&s.display.wrapper.offsetHeight==0&&r(s,s.state.autoRefresh={delay:a.delay||250})});function r(s,a){function l(){s.display.wrapper.offsetHeight?(i(s,a),s.display.lastWrapHeight!=s.display.wrapper.clientHeight&&s.refresh()):a.timeout=setTimeout(l,a.delay)}a.timeout=setTimeout(l,a.delay),a.hurry=function(){clearTimeout(a.timeout),a.timeout=setTimeout(l,50)},n.on(window,"mouseup",a.hurry),n.on(window,"keyup",a.hurry)}function i(s,a){clearTimeout(a.timeout),n.off(window,"mouseup",a.hurry),n.off(window,"keyup",a.hurry)}})})();(function(t,e){(function(n){n(ei)})(function(n){n.defineOption("styleSelectedText",!1,function(v,y,w){var T=w&&w!=n.Init;y&&!T?(v.state.markedSelection=[],v.state.markedSelectionStyle=typeof y=="string"?y:"CodeMirror-selectedtext",d(v),v.on("cursorActivity",r),v.on("change",i
143)):!y&&T&&(v.off("cursorActivity",r),v.off("change",i),f(v),v.state.markedSelection=v.state.markedSelectionStyle=null)});function r(v){v.state.markedSelection&&v.operation(function(){g(v)})}function i(v){v.state.markedSelection&&v.state.markedSelection.length&&v.operation(function(){f(v)})}var s=8,a=n.Pos,l=n.cmpPos;function c(v,y,w,T){if(l(y,w)!=0)for(var E=v.state.markedSelection,x=v.state.markedSelectionStyle,b=y.line;;){var C=b==y.line?y:a(b,0),A=b+s,O=A>=w.line,k=O?w:a(A,0),R=v.markText(C,k,{className:x});if(T==null?E.push(R):E.splice(T++,0,R),O)break;b=A}}function f(v){for(var y=v.state.markedSelection,w=0;w<y.length;++w)y[w].clear();y.length=0}function d(v){f(v);for(var y=v.listSelections(),w=0;w<y.length;w++)c(v,y[w].from(),y[w].to())}function g(v){if(!v.somethingSelected())return f(v);if(v.listSelections().length>1)return d(v);var y=v.getCursor("start"),w=v.getCursor("end"),T=v.state.markedSelection;if(!T.length)return c(v,y,w);var E=T[0].find(),x=T[T.length-1].find();if(!E||!x||w.line-y.line<=s||l(y,x.to)>=0||l(w,E.from)<=0)return d(v);for(;l(y,E.from)>0;)T.shift().clear(),E=T[0].find();for(l(y,E.from)<0&&(E.to.line-y.line<s?(T.shift().clear(),c(v,y,E.to,0)):c(v,y,E.from,0));l(w,x.to)<0;)T.pop().clear(),x=T[T.length-1].find();l(w,x.to)>0&&(w.line-x.from.line<s?(T.pop().clear(),c(v,x.from,w)):c(v,x.to,w))}})})();(function(t,e){(function(n){n(ei)})(function(n){var r=n.Pos;function i(b){var C=b.flags;return C??(b.ignoreCase?"i":"")+(b.global?"g":"")+(b.multiline?"m":"")}function s(b,C){for(var A=i(b),O=A,k=0;k<C.length;k++)O.indexOf(C.charAt(k))==-1&&(O+=C.charAt(k));return A==O?b:new RegExp(b.source,O)}function a(b){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(b.source)}function l(b,C,A){C=s(C,"g");for(var O=A.line,k=A.ch,R=b.lastLine();O<=R;O++,k=0){C.lastIndex=k;var $=b.getLine(O),j=C.exec($);if(j)return{from:r(O,j.index),to:r(O,j.index+j[0].length),match:j}}}function c(b,C,A){if(!a(C))return l(b,C,A);C=s(C,"gm");for(var O,k=1,R=A.line,$=b.lastLine();R<=$;){for(var j=0;j<k&&!(R>$);j++){var W=b.getLine(R++);O=O==null?W:O+`
144`+W}k=k*2,C.lastIndex=A.ch;var H=C.exec(O);if(H){var V=O.slice(0,H.index).split(`
145`),F=H[0].split(`
146`),z=A.line+V.length-1,M=V[V.length-1].length;return{from:r(z,M),to:r(z+F.length-1,F.length==1?M+F[0].length:F[F.length-1].length),match:H}}}}function f(b,C,A){for(var O,k=0;k<=b.length;){C.lastIndex=k;var R=C.exec(b);if(!R)break;var $=R.index+R[0].length;if($>b.length-A)break;(!O||$>O.index+O[0].length)&&(O=R),k=R.index+1}return O}function d(b,C,A){C=s(C,"g");for(var O=A.line,k=A.ch,R=b.firstLine();O>=R;O--,k=-1){var $=b.getLine(O),j=f($,C,k<0?0:$.length-k);if(j)return{from:r(O,j.index),to:r(O,j.index+j[0].length),match:j}}}function g(b,C,A){if(!a(C))return d(b,C,A);C=s(C,"gm");for(var O,k=1,R=b.getLine(A.line).length-A.ch,$=A.line,j=b.firstLine();$>=j;){for(var W=0;W<k&&$>=j;W++){var H=b.getLine($--);O=O==null?H:H+`
147`+O}k*=2;var V=f(O,C,R);if(V){var F=O.slice(0,V.index).split(`
148`),z=V[0].split(`
149`),M=$+F.length,q=F[F.length-1].length;return{from:r(M,q),to:r(M+z.length-1,z.length==1?q+z[0].length:z[z.length-1].length),match:V}}}}var v,y;String.prototype.normalize?(v=function(b){return b.normalize("NFD").toLowerCase()},y=function(b){return b.normalize("NFD")}):(v=function(b){return b.toLowerCase()},y=function(b){return b});function w(b,C,A,O){if(b.length==C.length)return A;for(var k=0,R=A+Math.max(0,b.length-C.length);;){if(k==R)return k;var $=k+R>>1,j=O(b.slice(0,$)).length;if(j==A)return $;j>A?R=$:k=$+1}}function T(b,C,A,O){if(!C.length)return null;var k=O?v:y,R=k(C).split(/\r|\n\r?/);e:for(var $=A.line,j=A.ch,W=b.lastLine()+1-R.length;$<=W;$++,j=0){var H=b.getLine($).slice(j),V=k(H);if(R.length==1){var F=V.indexOf(R[0]);if(F==-1)continue e;var A=w(H,V,F,k)+j;return{from:r($,w(H,V,F,k)+j),to:r($,w(H,V,F+R[0].length,k)+j)}}else{var z=V.length-R[0].length;if(V.slice(z)!=R[0])continue e;for(var M=1;M<R.length-1;M++)if(k(b.getLine($+M))!=R[M])continue e;var q=b.getLine($+R.length-1),U=k(q),B=R[R.length-1];if(U.slice(0,B.length)!=B)continue e;return{from:r($,w(H,V,z,k)+j),to:r($+R.length-1,w(q,U,B.length,k))}}}}function E(b,C,A,O){if(!C.length)return null;var k=O?v:y,R=k(C).split(/\r|\n\r?/);e:for(var $=A.line,j=A.ch,W=b.firstLine()-1+R.length;$>=W;$--,j=-1){var H=b.getLine($);j>-1&&(H=H.slice(0,j));var V=k(H);if(R.length==1){var F=V.lastIndexOf(R[0]);if(F==-1)continue e;return{from:r($,w(H,V,F,k)),to:r($,w(H,V,F+R[0].length,k))}}else{var z=R[R.length-1];if(V.slice(0,z.length)!=z)continue e;
149for(var M=1,A=$-R.length+1;M<R.length-1;M++)if(k(b.getLine(A+M))!=R[M])continue e;var q=b.getLine($+1-R.length),U=k(q);if(U.slice(U.length-R[0].length)!=R[0])continue e;return{from:r($+1-R.length,w(q,U,q.length-R[0].length,k)),to:r($,w(H,V,z.length,k))}}}}function x(b,C,A,O){this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=b,A=A?b.clipPos(A):r(0,0),this.pos={from:A,to:A};var k;typeof O=="object"?k=O.caseFold:(k=O,O=null),typeof C=="string"?(k==null&&(k=!1),this.matches=function(R,$){return(R?E:T)(b,C,$,k)}):(C=s(C,"gm"),!O||O.multiline!==!1?this.matches=function(R,$){return(R?g:c)(b,C,$)}:this.matches=function(R,$){return(R?d:l)(b,C,$)})}x.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(b){var C=this.doc.clipPos(b?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(C=r(C.line,C.ch),b?(C.ch--,C.ch<0&&(C.line--,C.ch=(this.doc.getLine(C.line)||"").length)):(C.ch++,C.ch>(this.doc.getLine(C.line)||"").length&&(C.ch=0,C.line++)),n.cmpPos(C,this.doc.clipPos(C))!=0))return this.atOccurrence=!1;var A=this.matches(b,C);if(this.afterEmptyMatch=A&&n.cmpPos(A.from,A.to)==0,A)return this.pos=A,this.atOccurrence=!0,this.pos.match||!0;var O=r(b?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:O,to:O},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(b,C){if(this.atOccurrence){var A=n.splitLines(b);this.doc.replaceRange(A,this.pos.from,this.pos.to,C),this.pos.to=r(this.pos.from.line+A.length-1,A[A.length-1].length+(A.length==1?this.pos.from.ch:0))}}},n.defineExtension("getSearchCursor",function(b,C,A){return new x(this.doc,b,C,A)}),n.defineDocExtension("getSearchCursor",function(b,C,A){return new x(this,b,C,A)}),n.defineExtension("selectMatches",function(b,C){for(var A=[],O=this.getSearchCursor(b,this.getCursor("from"),C);O.findNext()&&!(n.cmpPos(O.to(),this.getCursor("to"))>0);)A.push({anchor:O.from(),head:O.to()});A.length&&this.setSelections(A,0)})})})();(function(t,e){(function(n){n(ei,mde,yde)})(function(n){var r=/^((?:(?:aaas?|about|acap|adiumxtra|af[ps]|aim|apt|attachment|aw|beshare|bitcoin|bolo|callto|cap|chrome(?:-extension)?|cid|coap|com-eventbrite-attendee|content|crid|cvs|data|dav|dict|dlna-(?:playcontainer|playsingle)|dns|doi|dtn|dvb|ed2k|facetime|feed|file|finger|fish|ftp|geo|gg|git|gizmoproject|go|gopher|gtalk|h323|hcp|https?|iax|icap|icon|im|imap|info|ipn|ipp|irc[6s]?|iris(?:\.beep|\.lwz|\.xpc|\.xpcs)?|itms|jar|javascript|jms|keyparc|lastfm|ldaps?|magnet|mailto|maps|market|message|mid|mms|ms-help|msnim|msrps?|mtqp|mumble|mupdate|mvn|news|nfs|nih?|nntp|notes|oid|opaquelocktoken|palm|paparazzi|platform|pop|pres|proxy|psyc|query|res(?:ource)?|rmi|rsync|rtmp|rtsp|secondlife|service|session|sftp|sgn|shttp|sieve|sips?|skype|sm[bs]|snmp|soap\.beeps?|soldat|spotify|ssh|steam|svn|tag|teamspeak|tel(?:net)?|tftp|things|thismessage|tip|tn3270|tv|udp|unreal|urn|ut2004|vemmi|ventrilo|view-source|webcal|wss?|wtai|wyciwyg|xcon(?:-userid)?|xfire|xmlrpc\.beeps?|xmpp|xri|ymsgr|z39\.50[rs]?):(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]|\([^\s()<>]*\))+(?:\([^\s()<>]*\)|[^\s`*!()\[\]{};:'".,<>?«»“”‘’]))/i;n.defineMode("gfm",function(i,s){var a=0;function l(g){return g.code=!1,null}var c={startState:function(){return{code:!1,codeBlock:!1,ateSpace:!1}},copyState:function(g){return{code:g.code,codeBlock:g.codeBlock,ateSpace:g.ateSpace}},token:function(g,v){if(v.combineTokens=null,v.codeBlock)return g.match(/^```+/)?(v.codeBlock=!1,null):(g.skipToEnd(),null);
149if(g.sol()&&(v.code=!1),g.sol()&&g.match(/^```+/))return g.skipToEnd(),v.codeBlock=!0,null;if(g.peek()==="`"){g.next();var y=g.pos;g.eatWhile("`");var w=1+g.pos-y;return v.code?w===a&&(v.code=!1):(a=w,v.code=!0),null}else if(v.code)return g.next(),null;if(g.eatSpace())return v.ateSpace=!0,null;if((g.sol()||v.ateSpace)&&(v.ateSpace=!1,s.gitHubSpice!==!1)){if(g.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+@)?(?=.{0,6}\d)(?:[a-f0-9]{7,40}\b)/))return v.combineTokens=!0,"link";if(g.match(/^(?:[a-zA-Z0-9\-_]+\/)?(?:[a-zA-Z0-9\-_]+)?#[0-9]+\b/))return v.combineTokens=!0,"link"}return g.match(r)&&g.string.slice(g.start-2,g.start)!="]("&&(g.start==0||/\W/.test(g.string.charAt(g.start-1)))?(v.combineTokens=!0,"link"):(g.next(),null)},blankLine:l},f={taskLists:!0,strikethrough:!0,emoji:!0};for(var d in s)f[d]=s[d];return f.name="markdown",n.overlayMode(n.getMode(i,f),c)},"markdown"),n.defineMIME("text/x-gfm","gfm")})})();function wde(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var yB={exports:{}};const bde=Cm(f6);(function(t){var e;(function(){e=function(n,r,i,s){s=s||{},this.dictionary=null,this.rules={},this.dictionaryTable={},this.compoundRules=[],this.compoundRuleCodes={},this.replacementTable=[],this.flags=s.flags||{},this.memoized={},this.loaded=!1;var a=this,l,c,f,d,g;n&&(a.dictionary=n,r&&i?T():typeof window<"u"&&"chrome"in window&&"extension"in window.chrome&&"getURL"in window.chrome.extension?(s.dictionaryPath?l=s.dictionaryPath:l="typo/dictionaries",r||v(chrome.extension.getURL(l+"/"+n+"/"+n+".aff"),y),i||v(chrome.extension.getURL(l+"/"+n+"/"+n+".dic"),w)):(s.dictionaryPath?l=s.dictionaryPath:typeof __dirname<"u"?l=__dirname+"/dictionaries":l="./dictionaries",r||v(l+"/"+n+"/"+n+".aff",y),i||v(l+"/"+n+"/"+n+".dic",w)));function v(E,x){var b=a._readFile(E,null,s.asyncLoad);s.asyncLoad?b.then(function(C){x(C)}):x(b)}function y(E){r=E,i&&T()}function w(E){i=E,r&&T()}function T(){for(a.rules=a._parseAFF(r),a.compoundRuleCodes={},c=0,d=a.compoundRules.length;c<d;c++){var E=a.compoundRules[c];for(f=0,g=E.length;f<g;f++)a.compoundRuleCodes[E[f]]=[]}"ONLYINCOMPOUND"in a.flags&&(a.compoundRuleCodes[a.flags.ONLYINCOMPOUND]=[]),a.dictionaryTable=a._parseDIC(i);for(c in a.compoundRuleCodes)a.compoundRuleCodes[c].length===0&&delete a.compoundRuleCodes[c];for(c=0,d=a.compoundRules.length;c<d;c++){var x=a.compoundRules[c],b="";for(f=0,g=x.length;f<g;f++){var C=x[f];C in a.compoundRuleCodes?b+="("+a.compoundRuleCodes[C].join("|")+")":b+=C}a.compoundRules[c]=new RegExp(b,"i")}a.loaded=!0,s.asyncLoad&&s.loadedCallback&&s.loadedCallback(a)}return this},e.prototype={load:function(n){for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);return this},_readFile:function(n,r,i){if(r=r||"utf8",typeof XMLHttpRequest<"u"){var s,a=new XMLHttpRequest;return a.open("GET",n,i),i&&(s=new Promise(function(c,f){a.onload=function(){a.status===200?c(a.responseText):f(a.statusText)},a.onerror=function(){f(a.statusText)}}
149)),a.overrideMimeType&&a.overrideMimeType("text/plain; charset="+r),a.send(null),i?s:a.responseText}else if(typeof wde<"u"){var l=bde;try{if(l.existsSync(n))return l.readFileSync(n,r);console.log("Path "+n+" does not exist.")}catch(c){return console.log(c),""}}},_parseAFF:function(n){var r={},i,s,a,l,c,f,d,g,v=n.split(/\r?\n/);for(c=0,d=v.length;c<d;c++)if(i=this._removeAffixComments(v[c]),i=i.trim(),!!i){var y=i.split(/\s+/),w=y[0];if(w=="PFX"||w=="SFX"){var T=y[1],E=y[2];a=parseInt(y[3],10);var x=[];for(f=c+1,g=c+1+a;f<g;f++){s=v[f],l=s.split(/\s+/);var b=l[2],C=l[3].split("/"),A=C[0];A==="0"&&(A="");var O=this.parseRuleCodes(C[1]),k=l[4],R={};R.add=A,O.length>0&&(R.continuationClasses=O),k!=="."&&(w==="SFX"?R.match=new RegExp(k+"$"):R.match=new RegExp("^"+k)),b!="0"&&(w==="SFX"?R.remove=new RegExp(b+"$"):R.remove=b),x.push(R)}r[T]={type:w,combineable:E=="Y",entries:x},c+=a}else if(w==="COMPOUNDRULE"){for(a=parseInt(y[1],10),f=c+1,g=c+1+a;f<g;f++)i=v[f],l=i.split(/\s+/),this.compoundRules.push(l[1]);c+=a}else w==="REP"?(l=i.split(/\s+/),l.length===3&&this.replacementTable.push([l[1],l[2]])):this.flags[w]=y[1]}return r},_removeAffixComments:function(n){return n.match(/^\s*#/,"")?"":n},_parseDIC:function(n){n=this._removeDicComments(n);var r=n.split(/\r?\n/),i={};function s(H,V){i.hasOwnProperty(H)||(i[H]=null),V.length>0&&(i[H]===null&&(i[H]=[]),i[H].push(V))}for(var a=1,l=r.length;a<l;a++){var c=r[a];if(c){var f=c.split("/",2),d=f[0];if(f.length>1){var g=this.parseRuleCodes(f[1]);(!("NEEDAFFIX"in this.flags)||g.indexOf(this.flags.NEEDAFFIX)==-1)&&s(d,g);for(var v=0,y=g.length;v<y;v++){var w=g[v],T=this.rules[w];if(T)for(var E=this._applyRule(d,T),x=0,b=E.length;x<b;x++){var C=E[x];if(s(C,[]),T.combineable)for(var A=v+1;A<y;A++){var O=g[A],k=this.rules[O];if(k&&k.combineable&&T.type!=k.type)for(var R=this._applyRule(C,k),$=0,j=R.length;$<j;$++){var W=R[$];s(W,[])}}}w in this.compoundRuleCodes&&this.compoundRuleCodes[w].push(d)}}else s(d.trim(),[])}}return i},_removeDicComments:function(n){return n=n.replace(/^\t.*$/mg,""),n},parseRuleCodes:function(n){if(n)if("FLAG"in this.flags)if(this.flags.FLAG==="long"){for(var r=[],i=0,s=n.length;i<s;i+=2)r.push(n.substr(i,2));return r}else return this.flags.FLAG==="num"?n.split(","):this.flags.FLAG==="UTF-8"?Array.from(n):n.split("");else return n.split("");else return[]},_applyRule:function(n,r){for(var i=r.entries,s=[],a=0,l=i.length;a<l;a++){var c=i[a];if(!c.match||n.match(c.match)){var f=n;if(c.remove&&(f=f.replace(c.remove,"")),r.type==="SFX"?f=f+c.add:f=c.add+f,s.push(f),"continuationClasses"in c)for(var d=0,g=c.continuationClasses.length;d<g;d++){var v=this.rules[c.continuationClasses[d]];v&&(s=s.concat(this._applyRule(f,v)))}}}return s},check:function(n){if(!this.loaded)throw"Dictionary not loaded.";if(!n)return!1;var r=n.replace(/^\s\s*/,"").replace(/\s\s*$/,"");if(this.checkExact(r))return!0;if(r.toUpperCase()===r){var i=r[0]+r.substring(1).toLowerCase();if(this.hasFlag(i,"KEEPCASE"))return!1;if(this.checkExact(i)||this.checkExact(r.toLowerCase()))return!0}var s=r[0].toLowerCase()+r.substring(1);if(s!==r){if(this.hasFlag(s,"KEEPCASE"))return!1;if(this.checkExact(s))return!0}return!1},checkExact:function(n){if(!this.loaded)throw"Dictionary not loaded.";var r=this.dictionaryTable[n],i,s;if(typeof r>"u"){if("COMPOUNDMIN"in this.flags&&n.length>=this.flags.COMPOUNDMIN){for(i=0,s=this.compoundRules.length;i<s;i++)if(n.match(this.compoundRules[i]))return!0}}else{if(r===null)return!0;if(typeof r=="object"){for(i=0,s=r.length;i<s;i++)if(!this.hasFlag(n,"ONLYINCOMPOUND",r[i]))return!0}}return!1},hasFlag:function(n,r,i){if(!this.loaded)throw"Dictionary not loaded.";return!!(r in this.flags&&(typeof i>"u"&&(i=Array.prototype.concat.apply([],this.dictionaryTable[n])),i&&i.indexOf(this.flags[r])!==-1))},alphabet:"",suggest:function(n,r){if(!this.loaded)throw"Dictionary not loaded.";if(r=r||5,this.memoized.hasOwnProperty(n)){var i=this.memoized[n].limit;if(r<=i||this.memoized[n].suggestions.length<i)return this.memoized[n].suggestions.slice(0,r)}if(this.check(n))return[];for(var s=0,a=this.replacementTable.length;s<a;s++){var l=this.replacementTable[s];if(n.indexOf(l[0])!==-1){var c=n.replace(l[0],l[1]);if(this.check(c))return[c]}}if(!this.alphabet){this.alphabet="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ","TRY"in this.flags&&(this.alphabet+=this.flags.TRY),"WORDCHARS"in this.flags&&(this.alphabet+=this.flags.WORDCHARS);var f=this.alphabet.split("");
149f.sort();for(var d={},s=0;s<f.length;s++)d[f[s]]=!0;this.alphabet="";for(var s in d)this.alphabet+=s}var g=this;function v(w,T){var E={},x,b,C,A,O=g.alphabet.length;if(typeof w=="string"){var k=w;w={},w[k]=!0}for(var k in w)for(x=0,C=k.length+1;x<C;x++){var R=[k.substring(0,x),k.substring(x)];if(R[1]&&(A=R[0]+R[1].substring(1),(!T||g.check(A))&&(A in E?E[A]+=1:E[A]=1)),R[1].length>1&&R[1][1]!==R[1][0]&&(A=R[0]+R[1][1]+R[1][0]+R[1].substring(2),(!T||g.check(A))&&(A in E?E[A]+=1:E[A]=1)),R[1]){var $=R[1].substring(0,1).toUpperCase()===R[1].substring(0,1)?"uppercase":"lowercase";for(b=0;b<O;b++){var j=g.alphabet[b];$==="uppercase"&&(j=j.toUpperCase()),j!=R[1].substring(0,1)&&(A=R[0]+j+R[1].substring(1),(!T||g.check(A))&&(A in E?E[A]+=1:E[A]=1))}}if(R[1])for(b=0;b<O;b++){var $=R[0].substring(-1).toUpperCase()===R[0].substring(-1)&&R[1].substring(0,1).toUpperCase()===R[1].substring(0,1)?"uppercase":"lowercase",j=g.alphabet[b];$==="uppercase"&&(j=j.toUpperCase()),A=R[0]+j+R[1],(!T||g.check(A))&&(A in E?E[A]+=1:E[A]=1)}}return E}function y(w){var T=v(w),E=v(T,!0),x=E;for(var b in T)g.check(b)&&(b in x?x[b]+=T[b]:x[b]=T[b]);var C,A=[];for(C in x)x.hasOwnProperty(C)&&A.push([C,x[C]]);function O(j,W){var H=j[1],V=W[1];return H<V?-1:H>V?1:W[0].localeCompare(j[0])}A.sort(O).reverse();var k=[],R="lowercase";w.toUpperCase()===w?R="uppercase":w.substr(0,1).toUpperCase()+w.substr(1).toLowerCase()===w&&(R="capitalized");var $=r;for(C=0;C<Math.min($,A.length);C++)R==="uppercase"?A[C][0]=A[C][0].toUpperCase():R==="capitalized"&&(A[C][0]=A[C][0].substr(0,1).toUpperCase()+A[C][0].substr(1)),!g.hasFlag(A[C][0],"NOSUGGEST")&&k.indexOf(A[C][0])==-1?k.push(A[C][0]):$++;return k}return this.memoized[n]={suggestions:y(n),limit:r},this.memoized[n].suggestions}}})(),t.exports=e})(yB);var xde=yB.exports,EI=xde;function zt(t){if(t=t||{},typeof t.codeMirrorInstance!="function"||typeof t.codeMirrorInstance.defineMode!="function"){console.log("CodeMirror Spell Checker: You must provide an instance of CodeMirror via the option `codeMirrorInstance`");return}String.prototype.includes||(String.prototype.includes=function(){return String.prototype.indexOf.apply(this,arguments)!==-1}),t.codeMirrorInstance.defineMode("spell-checker",function(e){if(!zt.aff_loading){zt.aff_loading=!0;var n=new XMLHttpRequest;n.open("GET","https://cdn.jsdelivr.net/codemirror.spell-checker/latest/en_US.aff",!0),n.onload=function(){n.readyState===4&&n.status===200&&(zt.aff_data=n.responseText,zt.num_loaded++,zt.num_loaded==2&&(zt.typo=new EI("en_US",zt.aff_data,zt.dic_data,{platform:"any"})))},n.send(null)}if(!zt.dic_loading){zt.dic_loading=!0;var r=new XMLHttpRequest;r.open("GET","https://cdn.jsdelivr.net/codemirror.spell-checker/latest/en_US.dic",!0),r.onload=function(){r.readyState===4&&r.status===200&&(zt.dic_data=r.responseText,zt.num_loaded++,zt.num_loaded==2&&(zt.typo=new EI("en_US",zt.aff_data,zt.dic_data,{platform:"any"})))},r.send(null)}var i='!"#$%&()*+,-./:;<=>?@[\\]^_`{|}~ ',s={token:function(l){var c=l.peek(),f="";if(i.includes(c))return l.next(),null;for(;(c=l.peek())!=null&&!i.includes(c);)f+=c,l.next();return zt.typo&&!zt.typo.check(f)?"spell-error":null}},a=t.codeMirrorInstance.getMode(e,e.backdrop||"text/plain");return t.codeMirrorInstance.overlayMode(a,s,!0)})}zt.num_loaded=0;zt.aff_loading=!1;zt.dic_loading=!1;zt.aff_data="";zt.dic_data="";zt.typo;var Sde=zt;function X1(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let ha=X1();function Ede(t){ha=t}const wB=/[&<>"']/,Cde=new RegExp(wB.source,"g"),bB=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Tde=new RegExp(bB.source,"g"),_de={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},CI=t=>_de[t];function Yn(t,e){if(e){if(wB.test(t))return t.replace(Cde,CI)}else if(bB.test(t))return t.replace(Tde,CI);return t}const Ade=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function xB(t){return t.replace(Ade,(e,n)=>(n=n.toLowerCase(),n==="colon"?":":n.charAt(0)==="#"?n.charAt(1)==="x"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1)):""))}const kde=/(^|[^\[])\^/g;function It(t,e){t=typeof t=="string"?t:t.source,e=e||"";const n={replace:(r,i)=>(i=i.source||i,i=i.replace(kde,"$1"),t=t.replace(r,i),n),getRegex:()=>new RegExp(t,e)};return n}const Lde=/[^\w:]/g,Ode=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function TI(t,e,n){if(t){let r;try{r=decodeURIComponent(xB(n)).replace(Lde,"").toLowerCase()}catch{return null}if(r.indexOf("javascript:")===0||r.indexOf("vbscript:")===0||r.indexOf("data:")===0)return null}e&&!Ode.test(n)&&(n=Mde(e,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch{return null}return n}const wh={},Ide=/^[^:]+:\/*[^/]*$/,Pde=/^([^:]+:)[\s\S]*$/,Rde=/^([^:]+:\/*[^/]*)[\s\S]*$/;function Mde(t,e){wh[" "+t]||(Ide.test(t)?wh[" "+t]=t+"/":wh[" "+t]=tg(t,"/",!0)),t=wh[" "+t];const n=t.indexOf(":")===-1;return e.substring(0,2)==="//"?n?e:t.replace(Pde,"$1")+e:e.charAt(0)==="/"?n?e:t.replace(Rde,"$1")+e:t+e}const gm={exec:function(){}};function _I(t,e){const n=t.replace(/\|/g,(s,a,l)=>{let c=!1,f=a;for(;--f>=0&&l[f]==="\\";)c=!c;return c?"|":" |"}),r=n.split(/ \|/);let i=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),r.length>e)r.splice(e);else for(;r.length<e;)r.push("");for(;i<r.length;i++)r[i]=r[i].trim().replace(/\\\|/g,"|");return r}function tg(t,e,n){const r=t.length;if(r===0)return"";let i=0;for(;i<r;){const s=t.charAt(r-i-1);if(s===e&&!n)i++;else if(s!==e&&n)i++;else break}return t.slice(0,r-i)}function Dde(t,e){if(t.indexOf(e[1])===-1)return-1;const n=t.length;let r=0,i=0;for(;i<n;i++)if(t[i]==="\\")i++;else if(t[i]===e[0])r++;else if(t[i]===e[1]&&(r--,r<0))return i;return-1}function Nde(t){t&&t.sanitize&&!t.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function AI(t,e){if(e<1)return"";let n="";for(;e>1;)e&1&&(n+=t),e>>=1,t+=t;return n+t}function kI(t,e,n,r){const i=e.href,s=e.title?Yn(e.title):null,a=t[1].replace(/\\([\[\]])/g,"$1");if(t[0].charAt(0)!=="!"){r.state.inLink=!0;const l={type:"link",raw:n,href:i,title:s,text:a,tokens:r.inlineTokens(a)};return r.state.inLink=!1,l}return{type:"image",raw:n,href:i,title:s,text:Yn(a)}}function $de(t,e){const n=t.match(/^(\s+)(?:```)/);if(n===null)return e;const r=n[1];return e.split(`
150`).map(i=>{const s=i.match(/^\s+/);if(s===null)return i;const[a]=s;return a.length>
vendor: 23,466 bytes, lines 150-172
150=r.length?i.slice(r.length):i}).join(`
151`)}class Kv{constructor(e){this.options=e||ha}space(e){const n=this.rules.block.newline.exec(e);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(e){const n=this.rules.block.code.exec(e);if(n){const r=n[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?r:tg(r,`
152`)}}}fences(e){const n=this.rules.block.fences.exec(e);if(n){const r=n[0],i=$de(r,n[3]||"");return{type:"code",raw:r,lang:n[2]?n[2].trim().replace(this.rules.inline._escapes,"$1"):n[2],text:i}}}heading(e){const n=this.rules.block.heading.exec(e);if(n){let r=n[2].trim();if(/#$/.test(r)){const i=tg(r,"#");(this.options.pedantic||!i||/ $/.test(i))&&(r=i.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(e){const n=this.rules.block.hr.exec(e);if(n)return{type:"hr",raw:n[0]}}blockquote(e){const n=this.rules.block.blockquote.exec(e);if(n){const r=n[0].replace(/^ *>[ \t]?/gm,""),i=this.lexer.state.top;this.lexer.state.top=!0;const s=this.lexer.blockTokens(r);return this.lexer.state.top=i,{type:"blockquote",raw:n[0],tokens:s,text:r}}}list(e){let n=this.rules.block.list.exec(e);if(n){let r,i,s,a,l,c,f,d,g,v,y,w,T=n[1].trim();const E=T.length>1,x={type:"list",raw:"",ordered:E,start:E?+T.slice(0,-1):"",loose:!1,items:[]};T=E?`\\d{1,9}\\${T.slice(-1)}`:`\\${T}`,this.options.pedantic&&(T=E?T:"[*+-]");const b=new RegExp(`^( {0,3}${T})((?:[	 ][^\\n]*)?(?:\\n|$))`);for(;e&&(w=!1,!(!(n=b.exec(e))||this.rules.block.hr.test(e)));){if(r=n[0],e=e.substring(r.length),d=n[2].split(`
153`,1)[0].replace(/^\t+/,A=>" ".repeat(3*A.length)),g=e.split(`
154`,1)[0],this.options.pedantic?(a=2,y=d.trimLeft()):(a=n[2].search(/[^ ]/),a=a>4?1:a,y=d.slice(a),a+=n[1].length),c=!1,!d&&/^ *$/.test(g)&&(r+=g+`
155`,e=e.substring(g.length+1),w=!0),!w){const A=new RegExp(`^ {0,${Math.min(3,a-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ 	][^\\n]*)?(?:\\n|$))`),O=new RegExp(`^ {0,${Math.min(3,a-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),k=new RegExp(`^ {0,${Math.min(3,a-1)}}(?:\`\`\`|~~~)`),R=new RegExp(`^ {0,${Math.min(3,a-1)}}#`);for(;e&&(v=e.split(`
156`,1)[0],g=v,this.options.pedantic&&(g=g.replace(/^ {1,4}(?=( {4})*[^ ])/g,"  ")),!(k.test(g)||R.test(g)||A.test(g)||O.test(e)));){if(g.search(/[^ ]/)>=a||!g.trim())y+=`
157`+g.slice(a);else{if(c||d.search(/[^ ]/)>=4||k.test(d)||R.test(d)||O.test(d))break;y+=`
158`+g}!c&&!g.trim()&&(c=!0),r+=v+`
159`,e=e.substring(v.length+1),d=g.slice(a)}}x.loose||(f?x.loose=!0:/\n *\n *$/.test(r)&&(f=!0)),this.options.gfm&&(i=/^\[[ xX]\] /.exec(y),i&&(s=i[0]!=="[ ] ",y=y.replace(/^\[[ xX]\] +/,""))),x.items.push({type:"list_item",raw:r,task:!!i,checked:s,loose:!1,text:y}),x.raw+=r}x.items[x.items.length-1].raw=r.trimRight(),x.items[x.items.length-1].text=y.trimRight(),x.raw=x.raw.trimRight();const C=x.items.length;for(l=0;l<C;l++)if(this.lexer.state.top=!1,x.items[l].tokens=this.lexer.blockTokens(x.items[l].text,[]),!x.loose){const A=x.items[l].tokens.filter(k=>k.type==="space"),O=A.length>0&&A.some(k=>/\n.*\n/.test(k.raw));x.loose=O}if(x.loose)for(l=0;l<C;l++)x.items[l].loose=!0;return x}}html(e){const n=this.rules.block.html.exec(e);if(n){const r={type:"html",raw:n[0],pre:!this.options.sanitizer&&(n[1]==="pre"||n[1]==="script"||n[1]==="style"),text:n[0]};if(this.options.sanitize){const i=this.options.sanitizer?this.options.sanitizer(n[0]):Yn(n[0]);r.type="paragraph",r.text=i,r.tokens=this.lexer.inline(i)}return r}}def(e){const n=this.rules.block.def.exec(e);if(n){const r=n[1].toLowerCase().replace(/\s+/g," "),i=n[2]?n[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",s=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline._escapes,"$1"):n[3];return{type:"def",tag:r,raw:n[0],href:i,title:s}}}table(e){const n=this.rules.block.table.exec(e);if(n){const r={type:"table",header:_I(n[1]).map(i=>({text:i})),align:n[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:n[3]&&n[3].trim()?n[3].replace(/\n[ \t]*$/,"").split(`
160`):[]};if(r.header.length===r.align.length){r.raw=n[0];let i=r.align.length,s,a,l,c;for(s=0;s<i;s++)/^ *-+: *$/.test(r.align[s])?r.align[s]="right":/^ *:-+: *$/.test(r.align[s])?r.align[s]="center":/^ *:-+ *$/.test(r.align[s])?r.align[s]="left":r.align[s]=null;for(i=r.rows.length,s=0;s<i;s++)r.rows[s]=_I(r.rows[s],r.header.length).map(f=>({text:f}));for(i=r.header.length,a=0;a<i;a++)r.header[a].tokens=this.lexer.inline(r.header[a].text);for(i=r.rows.length,a=0;a<i;a++)for(c=r.rows[a],l=0;l<c.length;l++)c[l].tokens=this.lexer.inline(c[l].text);return r}}}lheading(e){const n=this.rules.block.lheading.exec(e);if(n)return{type:"heading",raw:n[0],depth:n[2].charAt(0)==="="?1:2,text:n[1],tokens:this.lexer.inline(n[1])}}paragraph(e){const n=this.rules.block.paragraph.exec(e);if(n){const r=n[1].charAt(n[1].length-1)===`
161`?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:r,tokens:this.lexer.inline(r)}}}text(e){const n=this.rules.block.text.exec(e);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(e){const n=this.rules.inline.escape.exec(e);if(n)return{type:"escape",raw:n[0],text:Yn(n[1])}}tag(e){const n=this.rules.inline.tag.exec(e);if(n)return!this.lexer.state.inLink&&/^<a /i.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):Yn(n[0]):n[0]}}link(e){const n=this.rules.inline.link.exec(e);if(n){const r=n[2].trim();if(!this.options.pedantic&&/^</.test(r)){if(!/>$/.test(r))return;const a=tg(r.slice(0,-1),"\\");if((r.length-a.length)%2===0)return}else{const a=Dde(n[2],"()");if(a>-1){const c=(n[0].indexOf("!")===0?5:4)+n[1].length+a;n[2]=n[2].substring(0,a),n[0]=n[0].substring(0,c).trim(),n[3]=""}}let i=n[2],s="";if(this.options.pedantic){const a=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i);a&&(i=a[1],s=a[3])}else s=n[3]?n[3].slice(1,-1):"";return i=i.trim(),/^</.test(i)&&(this.options.pedantic&&!/>$/.test(r)?i=i.slice(1):i=i.slice(1,-1)),kI(n,{href:i&&i.replace(this.rules.inline._escapes,"$1"),title:s&&s.replace(this.rules.inline._escapes,"$1")},n[0],this.lexer)}}reflink(e,n){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){let i=(r[2]||r[1]).replace(/\s+/g," ");if(i=n[i.toLowerCase()],!i){const s=r[0].charAt(0);return{type:"text",raw:s,text:s}}return kI(r,i,r[0],this.lexer)}}emStrong(e,n,r=""){let i=this.rules.inline.emStrong.lDelim.exec(e);if(!i||i[3]&&r.match(/[\p{L}\p{N}]/u))return;const s=i[1]||i[2]||"";if(!s||s&&(r===""||this.rules.inline.punctuation.exec(r))){const a=i[0].length-1;let l,c,f=a,d=0;const g=i[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(g.lastIndex=0,n=n.slice(-1*e.length+a);(i=g.exec(n))!=null;){if(l=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!l)continue;if(c=l.length,i[3]||i[4]){f+=c;continue}else if((i[5]||i[6])&&a%3&&!((a+c)%3)){d+=c;continue}if(f-=c,f>0)continue;c=Math.min(c,c+f+d);const v=e.slice(0,a+i.index+(i[0].length-l.length)+c);if(Math.min(a,c)%2){const w=v.slice(1,-1);return{type:"em",raw:v,text:w,tokens:this.lexer.inlineTokens(w)}}const y=v.slice(2,-2);return{type:"strong",raw:v,text:y,tokens:this.lexer.inlineTokens(y)}}}}codespan(e){const n=this.rules.inline.code.exec(e);if(n){let r=n[2].replace(/\n/g," ");const i=/[^ ]/.test(r),s=/^ /.test(r)&&/ $/.test(r);return i&&s&&(r=r.substring(1,r.length-1)),r=Yn(r,!0),{type:"codespan",raw:n[0],text:r}}}br(e){const n=this.rules.inline.br.exec(e);if(n)return{type:"br",raw:n[0]}}del(e){const n=this.rules.inline.del.exec(e);if(n)return{type:"del",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2])}}autolink(e,n){const r=this.rules.inline.autolink.exec(e);if(r){let i,s;return r[2]==="@"?(i=Yn(this.options.mangle?n(r[1]):r[1]),s="mailto:"+i):(i=Yn(r[1]),s=i),{type:"link",raw:r[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}url(e,n){let r;if(r=this.rules.inline.url.exec(e)){let i,s;if(r[2]==="@")i=Yn(this.options.mangle?n(r[0]):r[0]),s="mailto:"+i;else{let a;do a=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])[0];while(a!==r[0]);i=Yn(r[0]),r[1]==="www."?s="http://"+r[0]:s=r[0]}return{type:"link",raw:r[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(e,n){const r=this.rules.inline.text.exec(e);if(r){let i;return this.lexer.state.inRawBlock?i=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):Yn(r[0]):r[0]:i=Yn(this.options.smartypants?n(r[0]):r[0]),{type:"text",raw:r[0],text:i}}}}const Je={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:gm,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};Je._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/;Je._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;Je.def=It(Je.def).replace("label",Je._label).replace("title",Je._title).getRegex();Je.bullet=/(?:[*+-]|\d{1,9}[.)])/;Je.listItemStart=It(/^( *)(bull) */).replace("bull",Je.bullet).getRegex();Je.list=It(Je.list).replace(/bull/g,Je.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Je.def.source+")").getRegex();Je._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";Je._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/;Je.html=It(Je.html,"i").replace("comment",Je._comment).replace("tag",Je._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();Je.paragraph=It(Je._paragraph).replace("hr",Je.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Je._tag).getRegex();Je.blockquote=It(Je.blockquote).replace("paragraph",Je.paragraph).getRegex();Je.normal={...Je};Je.gfm={...Je.normal,table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"};Je.gfm.table=It(Je.gfm.table).replace("hr",Je.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Je._tag).getRegex();Je.gfm.paragraph=It(Je._paragraph).replace("hr",Je.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",Je.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Je._tag).getRegex();Je.pedantic={...Je.normal,html:It(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Je._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:gm,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:It(Je.normal._paragraph).replace("hr",Je.hr).replace("heading",` *#{1,6} *[^
162]`).replace("lheading",Je.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const De={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:gm,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:gm,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};De._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~";De.punctuation=It(De.punctuation).replace(/punctuation/g,De._punctuation).getRegex();De.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g;De.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g;De._comment=It(Je._comment).replace("(?:-->|$)","-->").getRegex();De.emStrong.lDelim=It(De.emStrong.lDelim).replace(/punct/g,De._punctuation).getRegex();De.emStrong.rDelimAst=It(De.emStrong.rDelimAst,"g").replace(/punct/g,De._punctuation).getRegex();De.emStrong.rDelimUnd=It(De.emStrong.rDelimUnd,"g").replace(/punct/g,De._punctuation).getRegex();De._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g;De._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;De._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/;De.autolink=It(De.autolink).replace("scheme",De._scheme).replace("email",De._email).getRegex();De._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;De.tag=It(De.tag).replace("comment",De._comment).replace("attribute",De._attribute).getRegex();De._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;De._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;De._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;De.link=It(De.link).replace("label",De._label).replace("href",De._href).replace("title",De._title).getRegex();De.reflink=It(De.reflink).replace("label",De._label).replace("ref",Je._label).getRegex();De.nolink=It(De.nolink).replace("ref",Je._label).getRegex();De.reflinkSearch=It(De.reflinkSearch,"g").replace("reflink",De.reflink).replace("nolink",De.nolink).getRegex();De.normal={...De};De.pedantic={...De.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:It(/^!?\[(label)\]\((.*?)\)/).replace("label",De._label).getRegex(),reflink:It(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",De._label).getRegex()};De.gfm={...De.normal,escape:It(De.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/};De.gfm.url=It(De.gfm.url,"i").replace("email",De.gfm._extended_email).getRegex();De.breaks={...De.gfm,br:It(De.br).replace("{2,}","*").getRegex(),text:It(De.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()};function Fde(t){return t.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function LI(t){let e="",n,r;const i=t.length;for(n=0;n<i;n++)r=t.charCodeAt(n),Math.random()>.5&&(r="x"+r.toString(16)),e+="&#"+r+";";return e}class io{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||ha,this.options.tokenizer=this.options.tokenizer||new Kv,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const n={block:Je.normal,inline:De.normal};this.options.pedantic?(n.block=Je.pedantic,n.inline=De.pedantic):this.options.gfm&&(n.block=Je.gfm,this.options.breaks?n.inline=De.breaks:n.inline=De.gfm),this.tokenizer.rules=n}static get rules(){return{block:Je,inline:De}}static lex(e,n){return new io(n).lex(e)}static lexInline(e,n){return new io(n).inlineTokens(e)}lex(e){e=e.replace(/\r\n|\r/g,`
163`),this.blockTokens(e,this.tokens);let n;for(;n=this.inlineQueue.shift();)this.inlineTokens(n.src,n.tokens);return this.tokens}blockTokens(e,n=[]){this.options.pedantic?e=e.replace(/\t/g,"    ").replace(/^ +$/gm,""):e=e.replace(/^( *)(\t+)/gm,(l,c,f)=>c+"    ".repeat(f.length));let r,i,s,a;for(;e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(l=>(r=l.call({lexer:this},e,n))?(e=e.substring(r.raw.length),n.push(r),!0):!1))){if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length),r.raw.length===1&&n.length>0?n[n.length-1].raw+=`
164`:n.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length),i=n[n.length-1],i&&(i.type==="paragraph"||i.type==="text")?(i.raw+=`
165`+r.raw,i.text+=`
166`+r.text,this.inlineQueue[this.inlineQueue.length-1].src=i.text):n.push(r);continue}if(r=this.tokenizer.fences(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.heading(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.hr(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.blockquote(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.list(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.html(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length),i=n[n.length-1],i&&(i.type==="paragraph"||i.type==="text")?(i.raw+=`
167`+r.raw,i.text+=`
168`+r.raw,this.inlineQueue[this.inlineQueue.length-1].src=i.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title});continue}if(r=this.tokenizer.table(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.lheading(e)){e=e.substring(r.raw.length),n.push(r);continue}if(s=e,this.options.extensions&&this.options.extensions.startBlock){let l=1/0;const c=e.slice(1);let f;this.options.extensions.startBlock.forEach(function(d){f=d.call({lexer:this},c),typeof f=="number"&&f>=0&&(l=Math.min(l,f))}),l<1/0&&l>=0&&(s=e.substring(0,l+1))}if(this.state.top&&(r=this.tokenizer.paragraph(s))){i=n[n.length-1],a&&i.type==="paragraph"?(i.raw+=`
169`+r.raw,i.text+=`
170`+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):n.push(r),a=s.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length),i=n[n.length-1],i&&i.type==="text"?(i.raw+=`
171`+r.raw,i.text+=`
172`+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):n.push(r);continue}if(e){const l="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(l);break}else throw new Error(l)}}return this.state.top=!0,n}inline(e,n=[]){return this.inlineQueue.push({src:e,tokens:n}),n}inlineTokens(e,n=[]){let r,i,s,a=e,l,c,f;if(this.tokens.links){const d=Object.keys(this.tokens.links);if(d.length>0)for(;(l=this.tokenizer.rules.inline.reflinkSearch.exec(a))!=null;)d.includes(l[0].slice(l[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,l.index)+"["+AI("a",l[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(l=this.tokenizer.rules.inline.blockSkip.exec(a))!=null;)a=a.slice(0,l.index)+"["+AI("a",l[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(l=this.tokenizer.rules.inline.escapedEmSt.exec(a))!=null;)a=a.slice(0,l.index+l[0].length-2)+"++"+a.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;e;)if(c||(f=""),c=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(d=>(r=d.call({lexer:this},e,n))?(e=e.substring(r.raw.length),n.push(r),!0):!1))){if(r=this.tokenizer.escape(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.tag(e)){e=e.substring(r.raw.length),i=n[n.length-1],i&&r.type==="text"&&i.type==="text"?(i.raw+=r.raw,i.text+=r.text):n.push(r);continue}if(r=this.tokenizer.link(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length),i=n[n.length-1],i&&r.type==="text"&&i.type==="text"?(i.raw+=r.raw,i.text+=r.text):n.push(r);continue}if(r=this.tokenizer.emStrong(e,a,f)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.codespan(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.br(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.del(e)){e=e.substring(r.raw.length),n.push(r);continue}if(r=this.tokenizer.autolink(e,LI)){e=e.substring(r.raw.length),n.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(e,LI))){e=e.substring(r.raw.length),n.push(r);continue}if(s=e,this.options.extensions&&this.options.extensions.startInline){let d=1/0;const g=e.slice(1);let v;this.options.extensions.startInline.forEach(function(y){v=y.call({lexer:this},g),typeof v=="number"&&v>
vendor: 6,949 bytes, lines 172-194
172=0&&(d=Math.min(d,v))}),d<1/0&&d>=0&&(s=e.substring(0,d+1))}if(r=this.tokenizer.inlineText(s,Fde)){e=e.substring(r.raw.length),r.raw.slice(-1)!=="_"&&(f=r.raw.slice(-1)),c=!0,i=n[n.length-1],i&&i.type==="text"?(i.raw+=r.raw,i.text+=r.text):n.push(r);continue}if(e){const d="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(d);break}else throw new Error(d)}}return n}}class qv{constructor(e){this.options=e||ha}code(e,n,r){const i=(n||"").match(/\S*/)[0];if(this.options.highlight){const s=this.options.highlight(e,i);s!=null&&s!==e&&(r=!0,e=s)}return e=e.replace(/\n$/,"")+`
173`,i?'<pre><code class="'+this.options.langPrefix+Yn(i)+'">'+(r?e:Yn(e,!0))+`</code></pre>
174`:"<pre><code>"+(r?e:Yn(e,!0))+`</code></pre>
175`}blockquote(e){return`<blockquote>
176${e}</blockquote>
177`}html(e){return e}heading(e,n,r,i){if(this.options.headerIds){const s=this.options.headerPrefix+i.slug(r);return`<h${n} id="${s}">${e}</h${n}>
178`}return`<h${n}>${e}</h${n}>
179`}hr(){return this.options.xhtml?`<hr/>
180`:`<hr>
181`}list(e,n,r){const i=n?"ol":"ul",s=n&&r!==1?' start="'+r+'"':"";return"<"+i+s+`>
182`+e+"</"+i+`>
183`}listitem(e){return`<li>${e}</li>
184`}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(e){return`<p>${e}</p>
185`}table(e,n){return n&&(n=`<tbody>${n}</tbody>`),`<table>
186<thead>
187`+e+`</thead>
188`+n+`</table>
189`}tablerow(e){return`<tr>
190${e}</tr>
191`}tablecell(e,n){const r=n.header?"th":"td";return(n.align?`<${r} align="${n.align}">`:`<${r}>`)+e+`</${r}>
192`}strong(e){return`<strong>${e}</strong>`}em(e){return`<em>${e}</em>`}codespan(e){return`<code>${e}</code>`}br(){return this.options.xhtml?"<br/>":"<br>"}del(e){return`<del>${e}</del>`}link(e,n,r){if(e=TI(this.options.sanitize,this.options.baseUrl,e),e===null)return r;let i='<a href="'+e+'"';return n&&(i+=' title="'+n+'"'),i+=">"+r+"</a>",i}image(e,n,r){if(e=TI(this.options.sanitize,this.options.baseUrl,e),e===null)return r;let i=`<img src="${e}" alt="${r}"`;return n&&(i+=` title="${n}"`),i+=this.options.xhtml?"/>":">",i}text(e){return e}}class Q1{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,n,r){return""+r}image(e,n,r){return""+r}br(){return""}}class J1{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,n){let r=e,i=0;if(this.seen.hasOwnProperty(r)){i=this.seen[e];do i++,r=e+"-"+i;while(this.seen.hasOwnProperty(r))}return n||(this.seen[e]=i,this.seen[r]=0),r}slug(e,n={}){const r=this.serialize(e);return this.getNextSafeSlug(r,n.dryrun)}}class so{constructor(e){this.options=e||ha,this.options.renderer=this.options.renderer||new qv,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Q1,this.slugger=new J1}static parse(e,n){return new so(n).parse(e)}static parseInline(e,n){return new so(n).parseInline(e)}parse(e,n=!0){let r="",i,s,a,l,c,f,d,g,v,y,w,T,E,x,b,C,A,O,k;const R=e.length;for(i=0;i<R;i++){if(y=e[i],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[y.type]&&(k=this.options.extensions.renderers[y.type].call({parser:this},y),k!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(y.type))){r+=k||"";continue}switch(y.type){case"space":continue;case"hr":{r+=this.renderer.hr();continue}case"heading":{r+=this.renderer.heading(this.parseInline(y.tokens),y.depth,xB(this.parseInline(y.tokens,this.textRenderer)),this.slugger);continue}case"code":{r+=this.renderer.code(y.text,y.lang,y.escaped);continue}case"table":{for(g="",d="",l=y.header.length,s=0;s<l;s++)d+=this.renderer.tablecell(this.parseInline(y.header[s].tokens),{header:!0,align:y.align[s]});for(g+=this.renderer.tablerow(d),v="",l=y.rows.length,s=0;s<l;s++){for(f=y.rows[s],d="",c=f.length,a=0;a<c;a++)d+=this.renderer.tablecell(this.parseInline(f[a].tokens),{header:!1,align:y.align[a]});v+=this.renderer.tablerow(d)}r+=this.renderer.table(g,v);continue}case"blockquote":{v=this.parse(y.tokens),r+=this.renderer.blockquote(v);continue}case"list":{for(w=y.ordered,T=y.start,E=y.loose,l=y.items.length,v="",s=0;s<l;s++)b=y.items[s],C=b.checked,A=b.task,x="",b.task&&(O=this.renderer.checkbox(C),E?b.tokens.length>0&&b.tokens[0].type==="paragraph"?(b.tokens[0].text=O+" "+b.tokens[0].text,b.tokens[0].tokens&&b.tokens[0].tokens.length>0&&b.tokens[0].tokens[0].type==="text"&&(b.tokens[0].tokens[0].text=O+" "+b.tokens[0].tokens[0].text)):b.tokens.unshift({type:"text",text:O}):x+=O),x+=this.parse(b.tokens,E),v+=this.renderer.listitem(x,A,C);r+=this.renderer.list(v,w,T);continue}case"html":{r+=this.renderer.html(y.text);continue}case"paragraph":{r+=this.renderer.paragraph(this.parseInline(y.tokens));continue}case"text":{for(v=y.tokens?this.parseInline(y.tokens):y.text;i+1<R&&e[i+1].type==="text";)y=e[++i],v+=`
193`+(y.tokens?this.parseInline(y.tokens):y.text);r+=n?this.renderer.paragraph(v):v;continue}default:{const $='Token with "'+y.type+'" type was not found.';if(this.options.silent){console.error($);return}else throw new Error($)}}}return r}parseInline(e,n){n=n||this.renderer;let r="",i,s,a;const l=e.length;for(i=0;i<l;i++){if(s=e[i],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[s.type]&&(a=this.options.extensions.renderers[s.type].call({parser:this},s),a!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type))){r+=a||"";continue}switch(s.type){case"escape":{r+=n.text(s.text);break}case"html":{r+=n.html(s.text);break}case"link":{r+=n.link(s.href,s.title,this.parseInline(s.tokens,n));break}case"image":{r+=n.image(s.href,s.title,s.text);break}case"strong":{r+=n.strong(this.parseInline(s.tokens,n));break}case"em":{r+=n.em(this.parseInline(s.tokens,n));break}case"codespan":{r+=n.codespan(s.text);break}case"br":{r+=n.br();break}case"del":{r+=n.del(this.parseInline(s.tokens,n));break}case"text":{r+=n.text(s.text);break}default:{const c='Token with "'+s.type+'" type was not found.';if(this.options.silent){console.error(c);return}else throw new Error(c)}}}return r}}class Td{constructor(e){this.options=e||ha}preprocess(e){return e}postprocess(e){return e}}ti(Td,"passThroughHooks",new Set(["preprocess","postprocess"]));function zde(t,e,n){return r=>{if(r.message+=`
194Please report this to https://github.com/markedjs/marked.`,t){const i="<p>An error occurred:</p><pre>"+Yn(r.message+"",!0)+"</pre>";if(e)return Promise.resolve(i);if(n){n(null,i);return}return i}if(e)return Promise.reject(r);if(n){n(r);return}throw r}}function SB(t,e){return(n,r,i)=>{typeof r=="function"&&(i=r,r=null);const s={...r};r={...Qe.defaults,...s};const a=zde(r.silent,r.async,i);if(typeof n>"u"||n===null)return a(new Error("marked(): input parameter is undefined or null"));
194if(typeof n!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(Nde(r),r.hooks&&(r.hooks.options=r),i){const l=r.highlight;let c;try{r.hooks&&(n=r.hooks.preprocess(n)),c=t(n,r)}catch(g){return a(g)}const f=function(g){let v;if(!g)try{r.walkTokens&&Qe.walkTokens(c,r.walkTokens),v=e(c,r),r.hooks&&(v=r.hooks.postprocess(v))}catch(y){g=y}return r.highlight=l,g?a(g):i(null,v)};if(!l||l.length<3||(delete r.highlight,!c.length))return f();let d=0;Qe.walkTokens(c,function(g){g.type==="code"&&(d++,setTimeout(()=>{l(g.text,g.lang,function(v,y){if(v)return f(v);y!=null&&y!==g.text&&(g.text=y,g.escaped=!0),d--,d===0&&f()})},0))}),d===0&&f();return}if(r.async)return Promise.resolve(r.hooks?r.hooks.preprocess(n):n).then(l=>t(l,r)).then(l=>r.walkTokens?Promise.all(Qe.walkTokens(l,r.walkTokens)).then(()=>l):l).then(l=>e(l,r)).then(l=>r.hooks?r.hooks.postprocess(l):l).catch(a);try{r.hooks&&(n=r.hooks.preprocess(n));const l=t(n,r);r.walkTokens&&Qe.walkTokens(l,r.walkTokens);let c=e(l,r);return r.hooks&&(c=r.hooks.postprocess(c)),c}catch(l){return a(l)}}}function Qe(t,e,n){return SB(io.lex,so.parse)(t,e,n)}Qe.options=Qe.setOptions=function(t){return Qe.defaults={...Qe.defaults,...t},Ede(Qe.defaults),Qe};Qe.getDefaults=X1;Qe.defaults=ha;Qe.use=function(...t){const e=Qe.defaults.extensions||{renderers:{},childTokens:{}};t.forEach(n=>{const r={...n};if(r.async=Qe.defaults.async||r.async||!1,n.extensions&&(n.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if(i.renderer){const s=e.renderers[i.name];s?e.renderers[i.name]=function(...a){let l=i.renderer.apply(this,a);return l===!1&&(l=s.apply(this,a)),l}:e.renderers[i.name]=i.renderer}if(i.tokenizer){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");e[i.level]?e[i.level].unshift(i.tokenizer):e[i.level]=[i.tokenizer],i.start&&(i.level==="block"?e.startBlock?e.startBlock.push(i.start):e.startBlock=[i.start]:i.level==="inline"&&(e.startInline?e.startInline.push(i.start):e.startInline=[i.start]))}i.childTokens&&(e.childTokens[i.name]=i.childTokens)}),r.extensions=e),n.renderer){const i=Qe.defaults.renderer||new qv;for(const s in n.renderer){const a=i[s];i[s]=(...l)=>{let c=n.renderer[s].apply(i,l);return c===!1&&(c=a.apply(i,l)),c}}r.renderer=i}if(n.tokenizer){const i=Qe.defaults.tokenizer||new Kv;for(const s in n.tokenizer){const a=i[s];i[s]=(...l)=>{let c=n.tokenizer[s].apply(i,l);return c===!1&&(c=a.apply(i,l)),c}}r.tokenizer=i}if(n.hooks){const i=Qe.defaults.hooks||new Td;for(const s in n.hooks){const a=i[s];Td.passThroughHooks.has(s)?i[s]=l=>{if(Qe.defaults.async)return Promise.resolve(n.hooks[s].call(i,l)).then(f=>a.call(i,f));const c=n.hooks[s].call(i,l);return a.call(i,c)}:i[s]=(...l)=>{let c=n.hooks[s].apply(i,l);return c===!1&&(c=a.apply(i,l)),c}}r.hooks=i}if(n.walkTokens){const i=Qe.defaults.walkTokens;r.walkTokens=function(s){let a=[];return a.push(n.walkTokens.call(this,s)),i&&(a=a.concat(i.call(this,s))),a}}Qe.setOptions(r)})};Qe.walkTokens=function(t,e){let n=[];for(const r of t)switch(n=n.concat(e.call(Qe,r)),r.type){case"table":{for(const i of r.header)n=n.concat(Qe.walkTokens(i.tokens,e));for(const i of r.rows)for(const s of i)n=n.concat(Qe.walkTokens(s.tokens,e));break}case"list":{n=n.concat(Qe.walkTokens(r.items,e));break}default:Qe.defaults.extensions&&Qe.defaults.extensions.childTokens&&Qe.defaults.extensions.childTokens[r.type]?Qe.defaults.extensions.childTokens[r.type].forEach(function(i){n=n.concat(Qe.walkTokens(r[i],e))}):r.tokens&&(n=n.concat(Qe.walkTokens(r.tokens,e)))}return n};Qe.parseInline=SB(io.lexInline,so.parseInline);Qe.Parser=so;Qe.parser=so.parse;Qe.Renderer=qv;Qe.TextRenderer=Q1;Qe.Lexer=io;Qe.lexer=io.lex;Qe.Tokenizer=Kv;Qe.Slugger=J1;Qe.Hooks=Td;Qe.parse=Qe;const Bde=Qe.options,jde=Qe.setOptions,Ude=Qe.use,Hde=Qe.walkTokens,Wde=Qe.parseInline,Vde=Qe,Kde=so.parse,qde=io.lex,Gde=Object.freeze(Object.defineProperty({__proto__:null,Hooks:Td,Lexer:io,Parser:so,Renderer:qv,Slugger:J1,TextRenderer:Q1,Tokenizer:Kv,get defaults(){return ha},getDefaults:X1,lexer:qde,marked:Qe,options:Bde,parse:Vde,parseInline:Wde,parser:Kde,setOptions:jde,use:Ude,walkTokens:Hde},Symbol.toStringTag,{value:"Module"})),Yde=Cm(Gde);var Zl=ei,Xde=Sde,q0=Yde.marked,EB=/Mac/.test(navigator.platform),Qde=new RegExp(/(<a.*?https?:\/\/.*?[^a]>)+?/g),_d={toggleBold:Gv,toggleItalic:Yv,drawLink:oy,toggleHeadingSmaller:Ad,toggleHeadingBigger:Zv,drawImage:ay,toggleBlockquote:Jv,toggleOrderedList:iy,toggleUnorderedList:ry,toggleCodeBlock:Qv,togglePreview:dy,toggleStrikethrough:Xv,toggleHeading1:ey,toggleHeading2:ty,toggleHeading3:ny,toggleHeading4:Z1,toggleHeading5:eC,toggleHeading6:tC,cleanBlock:sy,drawTable:ly,drawHorizontalRule:uy,undo:cy,redo:fy,toggleSideBySide:Ec,toggleFullScreen:pl},Jde={toggleBold:"Cmd-B",toggleItalic:"Cmd-I",drawLink:"Cmd-K",toggleHeadingSmaller:"Cmd-H",toggleHeadingBigger:"Shift-Cmd-H",toggleHeading1:"Ctrl+Alt+1",toggleHeading2:"Ctrl+Alt+2",toggleHeading3:"Ctrl+Alt+3",toggleHeading4:"Ctrl+Alt+4",toggleHeading5:"Ctrl+Alt+5",toggleHeading6:"Ctrl+Alt+6",cleanBlock:"Cmd-E",drawImage:"Cmd-Alt-I",toggleBlockquote:"Cmd-'",toggleOrderedList:"Cmd-Alt-L",toggleUnorderedList:"Cmd-L",toggleCodeBlock:"Cmd-Alt-C",togglePreview:"Cmd-P",toggleSideBySide:"F9",toggleFullScreen:"F11"},Zde=function(t){for(var e in _d)if(_d[e]===t)return e;return null},Zx=function(){var t=!1;return function(e){(/(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.substr(0,4)))&&(t=!0)}(navigator.userAgent||navigator.vendor||window.opera),t};function epe(t){for(var e;(e=Qde.exec(t))!==null;){var n=e[0];if(n.indexOf("target=")===-1){var r=n.replace(/>$/,' target="_blank">');t=t.replace(n,r)}}return t}function tpe(t){for(var e=new DOMParser,n=e.parseFromString(t,"text/html"),r=n.getElementsByTagName("li"),i=0;i<r.length;i++)for(var s=r[i],a=0;a<s.children.length;a++){var l=s.children[a];l instanceof HTMLInputElement&&l.type==="checkbox"&&(s.style.marginLeft="-1.5em",s.style.listStyleType="none")}return n.documentElement.innerHTML}function CB(t){return EB?t=t.replace("Ctrl","Cmd"):t=t.replace("Cmd","Ctrl"),t}function npe(t,e,n,r){var i=ng(t,!1,e,n,"button",r);i.classList.add("easymde-dropdown"),i.onclick=function(){i.focus()};var s=document.createElement("div");s.className="easymde-dropdown-content";for(var a=0;a<t.children.length;a++){var l=t.children[a],c;typeof l=="string"&&l in Za?c=ng(Za[l],!0,e,n,"button",r):c=ng(l,!0,e,n,"button",r),c.addEventListener("click",function(f){f.stopPropagation()},!1),s.appendChild(c)}return i.appendChild(s),i}function ng(t,e,n,r,i,s){t=t||{};var a=document.createElement(i);if(t.attributes)for(var l in t.attributes)Object.prototype.hasOwnProperty.call(t.attributes,l)&&a.setAttribute(l,t.attributes[l]);var c=s.options.toolbarButtonClassPrefix?s.options.toolbarButtonClassPrefix+"-":"";a.className=c+t.name,a.setAttribute("type",i),n=n??!0,t.text&&(a.innerText=t.text),t.name&&t.name in r&&(_d[t.name]=t.action),t.title&&n&&(a.title=ipe(t.title,t.action,r),EB&&(a.title=a.title.replace("Ctrl","⌘"),a.title=a.title.replace("Alt","⌥"))),t.title&&a.setAttribute("aria-label",t.title),t.noDisable&&a.classList.add("no-disable"),t.noMobile&&a.classList.add("no-mobile");var f=[];typeof t.className<"u"&&(f=t.className.split(" "));for(var d=[],g=0;g<f.length;g++){var v=f[g];v.match(/^fa([srlb]|(-[\w-]*)|$)/)?d.push(v):a.classList.add(v)}if(a.tabIndex=-1,d.length>0){for(var y=document.createElement("i"),w=0;w<d.length;w++){var T=d[w];y.classList.add(T)}a.appendChild(y)}return typeof t.icon<"u"&&(a.innerHTML=t.icon),t.action&&e&&(typeof t.action=="function"?a.onclick=function(E){E.preventDefault(),t.action(s)}
194:typeof t.action=="string"&&(a.onclick=function(E){E.preventDefault(),window.open(t.action,"_blank")})),a}function rpe(){var t=document.createElement("i");return t.className="separator",t.innerHTML="|",t}function ipe(t,e,n){var r,i=t;return e&&(r=Zde(e),n[r]&&(i+=" ("+CB(n[r])+")")),i}function ga(t,e){e=e||t.getCursor("start");var n=t.getTokenAt(e);if(!n.type)return{};for(var r=n.type.split(" "),i={},s,a,l=0;l<r.length;l++)s=r[l],s==="strong"?i.bold=!0:s==="variable-2"?(a=t.getLine(e.line),/^\s*\d+\.\s/.test(a)?i["ordered-list"]=!0:i["unordered-list"]=!0):s==="atom"?i.quote=!0:s==="em"?i.italic=!0:s==="quote"?i.quote=!0:s==="strikethrough"?i.strikethrough=!0:s==="comment"?i.code=!0:s==="link"&&!i.image?i.link=!0:s==="image"?i.image=!0:s.match(/^header(-[1-6])?$/)&&(i[s.replace("header","heading")]=!0);return i}var OI="";function pl(t){var e=t.codemirror;e.setOption("fullScreen",!e.getOption("fullScreen")),e.getOption("fullScreen")?(OI=document.body.style.overflow,document.body.style.overflow="hidden"):document.body.style.overflow=OI;var n=e.getWrapperElement(),r=n.nextSibling;if(r.classList.contains("editor-preview-active-side"))if(t.options.sideBySideFullscreen===!1){var i=n.parentNode;e.getOption("fullScreen")?i.classList.remove("sided--no-fullscreen"):i.classList.add("sided--no-fullscreen")}else Ec(t);if(t.options.onToggleFullScreen&&t.options.onToggleFullScreen(e.getOption("fullScreen")||!1),typeof t.options.maxHeight<"u"&&(e.getOption("fullScreen")?(e.getScrollerElement().style.removeProperty("height"),r.style.removeProperty("height")):(e.getScrollerElement().style.height=t.options.maxHeight,t.setPreviewMaxHeight())),t.toolbar_div.classList.toggle("fullscreen"),t.toolbarElements&&t.toolbarElements.fullscreen){var s=t.toolbarElements.fullscreen;s.classList.toggle("active")}}function Gv(t){iC(t,"bold",t.options.blockStyles.bold)}function Yv(t){iC(t,"italic",t.options.blockStyles.italic)}function Xv(t){iC(t,"strikethrough","~~")}function Qv(t){var e=t.options.blockStyles.code;function n(z){if(typeof z!="object")throw"fencing_line() takes a 'line' object (not a line number, or line text).  Got: "+typeof z+": "+z;return z.styles&&z.styles[2]&&z.styles[2].indexOf("formatting-code-block")!==-1}function r(z){return z.state.base.base||z.state.base}function i(z,M,q,U,B){q=q||z.getLineHandle(M),U=U||z.getTokenAt({line:M,ch:1}),B=B||!!q.text&&z.getTokenAt({line:M,ch:q.text.length-1});var Y=U.type?U.type.split(" "):[];return B&&r(B).indentedCode?"indented":Y.indexOf("comment")===-1?!1:r(U).fencedChars||r(B).fencedChars||n(q)?"fenced":"single"}function s(z,M,q,U){var B=M.line+1,Y=q.line+1,Z=M.line!==q.line,fe=U+`
195`,K=`
196`+U;Z&&Y++,Z&&q.ch===0&&(K=U+`
197`,Y--),hl(z,!1,[fe,K]),z.setSelection({line:B,ch:0},{line:Y,ch:0})}var a=t.codemirror,l=a.getCursor("start"),c=a.getCursor("end"),f=a.getTokenAt({line:l.line,ch:l.ch||1}),d=a.getLineHandle(l.line),g=i(a,l.line,d,f),v,y,w;if(g==="single"){var T=d.text.slice(0,l.ch).replace("`",""),E=d.text.slice(l.ch).replace("`","");a.replaceRange(T+E,{line:l.line,ch:0},{line:l.line,ch:99999999999999}),l.ch--,l!==c&&c.ch--,a.setSelection(l,c),a.focus()}else if(g==="fenced")if(l.line!==c.line||l.ch!==c.ch){for(v=l.line;v>=0&&(d=a.getLineHandle(v),!n(d));v--);var x=a.getTokenAt({line:v,ch:1}),b=r(x).fencedChars,C,A,O,k;n(a.getLineHandle(l.line))?(C="",A=l.line):n(a.getLineHandle(l.line-1))?(C="",A=l.line-1):(C=b+`
198`,A=l.line),n(a.getLineHandle(c.line))?(O="",k=c.line,c.ch===0&&(k+=1)):c.ch!==0&&n(a.getLineHandle(c.line+1))?(O="",k=c.line+1):(O=b+`
199`,k=c.line+1),c.ch===0&&(k-=1),a.operation(function(){a.replaceRange(O,{line:k,ch:0},{line:k+(O?0:1),ch:0}),a.replaceRange(C,{line:A,ch:0},{line:A+(C?0:1),ch:0})}),a.setSelection({line:A+(C?1:0),ch:0},{line:k+(C?1:-1),ch:0}),a.focus()}else{var R=l.line;if(n(a.getLineHandle(l.line))&&(i(a,l.line+1)==="fenced"?(v=l.line,R=l.line+1):(y=l.line,R=l.line-1)),v===void 0)for(v=R;v>=0&&(d=a.getLineHandle(v),!n(d));v--);if(y===void 0)for(w=a.lineCount(),y=R;y<w&&(d=a.getLineHandle(y),!n(d));y++);a.operation(function(){a.replaceRange("",{line:v,ch:0},{line:v+1,ch:0}),a.replaceRange("",{line:y-1,ch:0},{line:y,ch:0})}),a.focus()}else if(g==="indented"){if(l.line!==c.line||l.ch!==c.ch)v=l.line,y=c.line,c.ch===0&&y--;else{for(v=l.line;v>=0;v--)if(d=a.getLineHandle(v),!d.text.match(/^\s*$/)&&i(a,v,d)!=="indented"){v+=1;break}for(w=a.lineCount(),y=l.line;y<w;y++)if(d=a.getLineHandle(y),!d.text.match(/^\s*$/)&&i(a,y,d)!=="indented"){y-=1;break}}var $=a.getLineHandle(y+1),j=$&&a.getTokenAt({line:y+1,ch:$.text.length-1}),W=j&&r(j).indentedCode;W&&a.replaceRange(`
200`,{line:y+1,ch:0});for(var H=v;H<=y;H++)a.indentLine(H,"subtract");a.focus()}else{var V=l.line===c.line&&l.ch===c.ch&&l.ch===0,F=l.line!==c.line;V||F?s(a,l,c,e):hl(a,!1,["`","`"])}}function Jv(t){rC(t.codemirror,"quote")}function Ad(t){ma(t.codemirror,"smaller")}function Zv(t){ma(t.codemirror,"bigger")}function ey(t){ma(t.codemirror,void 0,1)}function ty(t){ma(t.codemirror,void 0,2)}function ny(t){ma(t.codemirror,void 0,3)}function Z1(t){ma(t.codemirror,void 0,4)}function eC(t){ma(t.codemirror,void 0,5)}function tC(t){ma(t.codemirror,void 0,6)}function ry(t){var e=t.codemirror,n="*";["-","+","*"].includes(t.options.unorderedListStyle)&&(n=t.options.unorderedListStyle),rC(e,"unordered-list",n)}function iy(t){rC(t.codemirror,"ordered-list")}function sy(t){spe(t.codemirror)}function oy(t){var e=t.options,n="https://";if(e.promptURLs){var r=prompt(e.promptTexts.link,n);if(!r)return!1;n=TB(r)}AB(t,"link",e.insertTexts.link,n)}function ay(t){var e=t.options,n="https://";if(e.promptURLs){var r=prompt(e.promptTexts.image,n);if(!r)return!1;n=TB(r)}AB(t,"image",e.insertTexts.image,n)}function TB(t){return encodeURI(t).replace(/([\\()])/g,"\\$1")}function nC(t){t.openBrowseFileWindow()}function _B(t,e){var n=t.codemirror,r=ga(n),i=t.options,s=e.substr(e.lastIndexOf("/")+1),a=s.substring(s.lastIndexOf(".")+1).replace(/\?.*$/,"").toLowerCase();if(["png","jpg","jpeg","gif","svg","apng","avif","webp"].includes(a))hl(n,r.image,i.insertTexts.uploadedImage,e);else{var l=i.insertTexts.link;l[0]="["+s,hl(n,r.link,l,e)}t.updateStatusBar("upload-image",t.options.imageTexts.sbOnUploaded.replace("#image_name#",s)),setTimeout(function(){t.updateStatusBar("upload-image",t.options.imageTexts.sbInit)},1e3)}function ly(t){var e=t.codemirror,n=ga(e),r=t.options;hl(e,n.table,r.insertTexts.table)}function uy(t){var e=t.codemirror,n=ga(e),r=t.options;hl(e,n.image,r.insertTexts.horizontalRule)}function cy(t){var e=t.codemirror;e.undo(),e.focus()}function fy(t){var e=t.codemirror;e.redo(),e.focus()}function Ec(t){var e=t.codemirror,n=e.getWrapperElement(),r=n.nextSibling,i=t.toolbarElements&&t.toolbarElements["side-by-side"],s=!1,a=n.parentNode;r.classList.contains("editor-preview-active-side")?(t.options.sideBySideFullscreen===!1&&a.classList.remove("sided--no-fullscreen"),r.classList.remove("editor-preview-active-side"),i&&i.classList.remove("active"),n.classList.remove("CodeMirror-sided")):(setTimeout(function(){e.getOption("fullScreen")||(t.options.sideBySideFullscreen===!1?a.classList.add("sided--no-fullscreen"):pl(t)),r.classList.add("editor-preview-active-side")},1),i&&i.classList.add("active"),n.classList.add("CodeMirror-sided"),s=!0);var l=n.lastChild;if(l.classList.contains("editor-preview-active")){l.classList.remove("editor-preview-active");var c=t.toolbarElements.preview,f=t.toolbar_div;c.classList.remove("active"),f.classList.remove("disabled-for-preview")}var d=function(){var v=t.options.previewRender(t.value(),r);v!=null&&(r.innerHTML=v)};if(e.sideBySideRenderingFunction||(e.sideBySideRenderingFunction=d),s){var g=t.options.previewRender(t.value(),r);g!=null&&(r.innerHTML=g),e.on("update",e.sideBySideRenderingFunction)}else e.off("update",e.sideBySideRenderingFunction);e.refresh()}function dy(t){var e=t.codemirror,n=e.getWrapperElement(),r=t.toolbar_div,i=t.options.toolbar?t.toolbarElements.preview:!1,s=n.lastChild,a=e.getWrapperElement().nextSibling;if(a.classList.contains("editor-preview-active-side")&&Ec(t),!s||!s.classList.contains("editor-preview-full")){if(s=document.createElement("div"),s.className="editor-preview-full",t.options.previewClass)if(Array.isArray(t.options.previewClass))for(var l=0;l<t.options.previewClass.length;l++)s.classList.add(t.options.previewClass[l]);else typeof t.options.previewClass=="string"&&s.classList.add(t.options.previewClass);n.appendChild(s)}s.classList.contains("editor-preview-active")?(s.classList.remove("editor-preview-active"),i&&(i.classList.remove("active"),r.classList.remove("disabled-for-preview"))):(setTimeout(function(){s.classList.add("editor-preview-active")},1),i&&(i.classList.add("active"),r.classList.add("disabled-for-preview")));var c=t.options.previewRender(t.value(),s);c!==null&&(s.innerHTML=c)}function hl(t,e,n,r){if(!t.getWrapperElement().lastChild.classList.contains("editor-preview-active")){var i,s=n[0],a=n[1],l={},c={};
200Object.assign(l,t.getCursor("start")),Object.assign(c,t.getCursor("end")),r&&(s=s.replace("#url#",r),a=a.replace("#url#",r)),e?(i=t.getLine(l.line),s=i.slice(0,l.ch),a=i.slice(l.ch),t.replaceRange(s+a,{line:l.line,ch:0})):(i=t.getSelection(),t.replaceSelection(s+i+a),l.ch+=s.length,l!==c&&(c.ch+=s.length)),t.setSelection(l,c),t.focus()}}function ma(t,e,n){if(!t.getWrapperElement().lastChild.classList.contains("editor-preview-active")){for(var r=t.getCursor("start"),i=t.getCursor("end"),s=r.line;s<=i.line;s++)(function(a){var l=t.getLine(a),c=l.search(/[^#]/);e!==void 0?c<=0?e=="bigger"?l="###### "+l:l="# "+l:c==6&&e=="smaller"?l=l.substr(7):c==1&&e=="bigger"?l=l.substr(2):e=="bigger"?l=l.substr(1):l="#"+l:c<=0?l="#".repeat(n)+" "+l:c==n?l=l.substr(c+1):l="#".repeat(n)+" "+l.substr(c+1),t.replaceRange(l,{line:a,ch:0},{line:a,ch:99999999999999})})(s);t.focus()}}function rC(t,e,n){if(!t.getWrapperElement().lastChild.classList.contains("editor-preview-active")){for(var r=/^(\s*)(\*|-|\+|\d*\.)(\s+)/,i=/^\s*/,s=ga(t),a=t.getCursor("start"),l=t.getCursor("end"),c={quote:/^(\s*)>\s+/,"unordered-list":r,"ordered-list":r},f=function(w,T){var E={quote:">","unordered-list":n,"ordered-list":"%%i."};return E[w].replace("%%i",T)},d=function(w,T){var E={quote:">","unordered-list":"\\"+n,"ordered-list":"\\d+."},x=new RegExp(E[w]);return T&&x.test(T)},g=function(w,T,E){var x=r.exec(T),b=f(w,v);return x!==null?(d(w,x[2])&&(b=""),T=x[1]+b+x[3]+T.replace(i,"").replace(c[w],"$1")):E==!1&&(T=b+" "+T),T},v=1,y=a.line;y<=l.line;y++)(function(w){var T=t.getLine(w);s[e]?T=T.replace(c[e],"$1"):(e=="unordered-list"&&(T=g("ordered-list",T,!0)),T=g(e,T,!1),v+=1),t.replaceRange(T,{line:w,ch:0},{line:w,ch:99999999999999})})(y);t.focus()}}function AB(t,e,n,r){if(!(!t.codemirror||t.isPreviewActive())){var i=t.codemirror,s=ga(i),a=s[e];if(!a){hl(i,a,n,r);return}var l=i.getCursor("start"),c=i.getCursor("end"),f=i.getLine(l.line),d=f.slice(0,l.ch),g=f.slice(l.ch);e=="link"?d=d.replace(/(.*)[^!]\[/,"$1"):e=="image"&&(d=d.replace(/(.*)!\[$/,"$1")),g=g.replace(/]\(.*?\)/,""),i.replaceRange(d+g,{line:l.line,ch:0},{line:l.line,ch:99999999999999}),l.ch-=n[0].length,l!==c&&(c.ch-=n[0].length),i.setSelection(l,c),i.focus()}}function iC(t,e,n,r){if(!(!t.codemirror||t.isPreviewActive())){r=typeof r>"u"?n:r;var i=t.codemirror,s=ga(i),a,l=n,c=r,f=i.getCursor("start"),d=i.getCursor("end");s[e]?(a=i.getLine(f.line),l=a.slice(0,f.ch),c=a.slice(f.ch),e=="bold"?(l=l.replace(/(\*\*|__)(?![\s\S]*(\*\*|__))/,""),c=c.replace(/(\*\*|__)/,"")):e=="italic"?(l=l.replace(/(\*|_)(?![\s\S]*(\*|_))/,""),c=c.replace(/(\*|_)/,"")):e=="strikethrough"&&(l=l.replace(/(\*\*|~~)(?![\s\S]*(\*\*|~~))/,""),c=c.replace(/(\*\*|~~)/,"")),i.replaceRange(l+c,{line:f.line,ch:0},{line:f.line,ch:99999999999999}),e=="bold"||e=="strikethrough"?(f.ch-=2,f!==d&&(d.ch-=2)):e=="italic"&&(f.ch-=1,f!==d&&(d.ch-=1))):(a=i.getSelection(),e=="bold"?(a=a.split("**").join(""),a=a.split("__").join("")):e=="italic"?(a=a.split("*").join(""),a=a.split("_").join("")):e=="strikethrough"&&(a=a.split("~~").join("")),i.replaceSelection(l+a+c),f.ch+=n.length,d.ch=f.ch+a.length),i.setSelection(f,d),i.focus()}}function spe(t){if(!t.getWrapperElement().lastChild.classList.contains("editor-preview-active"))for(var e=t.getCursor("start"),n=t.getCursor("end"),r,i=e.line;i<=n.line;i++)r=t.getLine(i),r=r.replace(/^[ ]*([# ]+|\*|-|[> ]+|[0-9]+(.|\)))[ ]*/,""),t.replaceRange(r,{line:i,ch:0},{line:i,ch:99999999999999})}function mm(t,e){if(Math.abs(t)<1024)return""+t+e[0];var n=0;do t/=1024,++n;while(Math.abs(t)>=1024&&n<e.length);return""+t.toFixed(1)+e[n]}function kB(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]instanceof Array?t[n]=e[n].concat(t[n]instanceof Array?t[n]:[]):e[n]!==null&&typeof e[n]=="object"&&e[n].constructor===Object?t[n]=kB(t[n]||{},e[n]):t[n]=e[n]);return t}function Rs(t){for(var e=1;e<arguments.length;e++)t=kB(t,arguments[e]);return t}function II(t){var e=/[a-zA-Z0-9_\u00A0-\u02AF\u0392-\u03c9\u0410-\u04F9]+|[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af]+/g,n=t.match(e),r=0;if(n===null)return r;for(var i=0;i<n.length;
200i++)n[i].charCodeAt(0)>=19968?r+=n[i].length:r+=1;return r}var Pt={bold:"fa fa-bold",italic:"fa fa-italic",strikethrough:"fa fa-strikethrough",heading:"fa fa-header fa-heading","heading-smaller":"fa fa-header fa-heading header-smaller","heading-bigger":"fa fa-header fa-heading header-bigger","heading-1":"fa fa-header fa-heading header-1","heading-2":"fa fa-header fa-heading header-2","heading-3":"fa fa-header fa-heading header-3",code:"fa fa-code",quote:"fa fa-quote-left","ordered-list":"fa fa-list-ol","unordered-list":"fa fa-list-ul","clean-block":"fa fa-eraser",link:"fa fa-link",image:"fa fa-image","upload-image":"fa fa-image",table:"fa fa-table","horizontal-rule":"fa fa-minus",preview:"fa fa-eye","side-by-side":"fa fa-columns",fullscreen:"fa fa-arrows-alt",guide:"fa fa-question-circle",undo:"fa fa-undo",redo:"fa fa-repeat fa-redo"},Za={bold:{name:"bold",action:Gv,className:Pt.bold,title:"Bold",default:!0},italic:{name:"italic",action:Yv,className:Pt.italic,title:"Italic",default:!0},strikethrough:{name:"strikethrough",action:Xv,className:Pt.strikethrough,title:"Strikethrough"},heading:{name:"heading",action:Ad,className:Pt.heading,title:"Heading",default:!0},"heading-smaller":{name:"heading-smaller",action:Ad,className:Pt["heading-smaller"],title:"Smaller Heading"},"heading-bigger":{name:"heading-bigger",action:Zv,className:Pt["heading-bigger"],title:"Bigger Heading"},"heading-1":{name:"heading-1",action:ey,className:Pt["heading-1"],title:"Big Heading"},"heading-2":{name:"heading-2",action:ty,className:Pt["heading-2"],title:"Medium Heading"},"heading-3":{name:"heading-3",action:ny,className:Pt["heading-3"],title:"Small Heading"},"separator-1":{name:"separator-1"},code:{name:"code",action:Qv,className:Pt.code,title:"Code"},quote:{name:"quote",action:Jv,className:Pt.quote,title:"Quote",default:!0},"unordered-list":{name:"unordered-list",action:ry,className:Pt["unordered-list"],title:"Generic List",default:!0},"ordered-list":{name:"ordered-list",action:iy,className:Pt["ordered-list"],title:"Numbered List",default:!0},"clean-block":{name:"clean-block",action:sy,className:Pt["clean-block"],title:"Clean block"},"separator-2":{name:"separator-2"},link:{name:"link",action:oy,className:Pt.link,title:"Create Link",default:!0},image:{name:"image",action:ay,className:Pt.image,title:"Insert Image",default:!0},"upload-image":{name:"upload-image",action:nC,className:Pt["upload-image"],title:"Import an image"},table:{name:"table",action:ly,className:Pt.table,title:"Insert Table"},"horizontal-rule":{name:"horizontal-rule",action:uy,className:Pt["horizontal-rule"],title:"Insert Horizontal Line"},"separator-3":{name:"separator-3"},preview:{name:"preview",action:dy,className:Pt.preview,noDisable:!0,title:"Toggle Preview",default:!0},"side-by-side":{name:"side-by-side",action:Ec,className:Pt["side-by-side"],noDisable:!0,noMobile:!0,title:"Toggle Side by Side",default:!0},fullscreen:{name:"fullscreen",action:pl,className:Pt.fullscreen,noDisable:!0,noMobile:!0,title:"Toggle Fullscreen",default:!0},"separator-4":{name:"separator-4"},guide:{name:"guide",action:"https://www.markdownguide.org/basic-syntax/",className:Pt.guide,noDisable:!0,title:"Markdown Guide",default:!0},"separator-5":{name:"separator-5"},undo:{name:"undo",action:cy,className:Pt.undo,noDisable:!0,title:"Undo"},redo:{name:"redo",action:fy,className:Pt.redo,noDisable:!0,title:"Redo"}},ope={link:["[","](#url#)"],image:["![","](#url#)"],uploadedImage:["![](#url#)",""],table:["",`
201
202| Column 1 | Column 2 | Column 3 |
203| -------- | -------- | -------- |
204| Text     | Text     | Text     |
205
206`],horizontalRule:["",`
207
208-----
209
210`]},ape={link:"URL for the link:",image:"URL of the image:"},lpe={locale:"en-US",format:{hour:"2-digit",minute:"2-digit"}},upe={bold:"**",code:"```",italic:"*"},cpe={sbInit:"Attach files by drag and dropping or pasting from clipboard.",sbOnDragEnter:"Drop image to upload it.",sbOnDrop:"Uploading image #images_names#...",sbProgress:"Uploading #file_name#: #progress#%",sbOnUploaded:"Uploaded #image_name#",sizeUnits:" B, KB, MB"},fpe={noFileGiven:"You must select a file.",typeNotAllowed:"This image type is not allowed.",fileTooLarge:`Image #image_name# is too big (#image_size#).
211Maximum file size is #image_max_size#.`,importError:"Something went wrong when uploading the image #image_name#."};function Pe(t){t=t||{},t.parent=this;var e=!0;if(t.autoDownloadFontAwesome===!1&&(e=!1),t.autoDownloadFontAwesome!==!0)for(var n=document.styleSheets,r=0;r<n.length;r++)n[r].href&&n[r].href.indexOf("//maxcdn.bootstrapcdn.com/font-awesome/")>-1&&(e=!1);if(e){var i=document.createElement("link");i.rel="stylesheet",i.href="https://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css",document.getElementsByTagName("head")[0].appendChild(i)}if(t.element)this.element=t.element;else if(t.element===null){console.log("EasyMDE: Error. No element was found.");return}if(t.toolbar===void 0){t.toolbar=[];for(var s in Za)Object.prototype.hasOwnProperty.call(Za,s)&&(s.indexOf("separator-")!=-1&&t.toolbar.push("|"),(Za[s].default===!0||t.showIcons&&t.showIcons.constructor===Array&&t.showIcons.indexOf(s)!=-1)&&t.toolbar.push(s))}if(Object.prototype.hasOwnProperty.call(t,"previewClass")||(t.previewClass="editor-preview"),Object.prototype.hasOwnProperty.call(t,"status")||(t.status=["autosave","lines","words","cursor"],t.uploadImage&&t.status.unshift("upload-image")),t.previewRender||(t.previewRender=function(l){return this.parent.markdown(l)}),t.parsingConfig=Rs({highlightFormatting:!0},t.parsingConfig||{}),t.insertTexts=Rs({},ope,t.insertTexts||{}),t.promptTexts=Rs({},ape,t.promptTexts||{}),t.blockStyles=Rs({},upe,t.blockStyles||{}),t.autosave!=null&&(t.autosave.timeFormat=Rs({},lpe,t.autosave.timeFormat||{})),t.iconClassMap=Rs({},Pt,t.iconClassMap||{}),t.shortcuts=Rs({},Jde,t.shortcuts||{}),t.maxHeight=t.maxHeight||void 0,t.direction=t.direction||"ltr",typeof t.maxHeight<"u"?t.minHeight=t.maxHeight:t.minHeight=t.minHeight||"300px",t.errorCallback=t.errorCallback||function(l){alert(l)},t.uploadImage=t.uploadImage||!1,t.imageMaxSize=t.imageMaxSize||2097152,t.imageAccept=t.imageAccept||"image/png, image/jpeg, image/gif, image/avif",t.imageTexts=Rs({},cpe,t.imageTexts||{}),t.errorMessages=Rs({},fpe,t.errorMessages||{}),t.imagePathAbsolute=t.imagePathAbsolute||!1,t.imageCSRFName=t.imageCSRFName||"csrfmiddlewaretoken",t.imageCSRFHeader=t.imageCSRFHeader||!1,t.autosave!=null&&t.autosave.unique_id!=null&&t.autosave.unique_id!=""&&(t.autosave.uniqueId=t.autosave.unique_id),t.overlayMode&&t.overlayMode.combine===void 0&&(t.overlayMode.combine=!0),this.options=t,this.render(),t.initialValue&&(!this.options.autosave||this.options.autosave.foun
211dSavedValue!==!0)&&this.value(t.initialValue),t.uploadImage){var a=this;this.codemirror.on("dragenter",function(l,c){a.updateStatusBar("upload-image",a.options.imageTexts.sbOnDragEnter),c.stopPropagation(),c.preventDefault()}),this.codemirror.on("dragend",function(l,c){a.updateStatusBar("upload-image",a.options.imageTexts.sbInit),c.stopPropagation(),c.preventDefault()}),this.codemirror.on("dragleave",function(l,c){a.updateStatusBar("upload-image",a.options.imageTexts.sbInit),c.stopPropagation(),c.preventDefault()}),this.codemirror.on("dragover",function(l,c){a.updateStatusBar("upload-image",a.options.imageTexts.sbOnDragEnter),c.stopPropagation(),c.preventDefault()}),this.codemirror.on("drop",function(l,c){c.stopPropagation(),c.preventDefault(),t.imageUploadFunction?a.uploadImagesUsingCustomFunction(t.imageUploadFunction,c.dataTransfer.files):a.uploadImages(c.dataTransfer.files)}),this.codemirror.on("paste",function(l,c){t.imageUploadFunction?a.uploadImagesUsingCustomFunction(t.imageUploadFunction,c.clipboardData.files):a.uploadImages(c.clipboardData.files)})}}Pe.prototype.uploadImages=function(t,e,n){if(t.length!==0){for(var r=[],i=0;i<t.length;i++)r.push(t[i].name),this.uploadImage(t[i],e,n);this.updateStatusBar("upload-image",this.options.imageTexts.sbOnDrop.replace("#images_names#",r.join(", ")))}};Pe.prototype.uploadImagesUsingCustomFunction=function(t,e){if(e.length!==0){for(var n=[],r=0;r<e.length;r++)n.push(e[r].name),this.uploadImageUsingCustomFunction(t,e[r]);this.updateStatusBar("upload-image",this.options.imageTexts.sbOnDrop.replace("#images_names#",n.join(", ")))}};Pe.prototype.updateStatusBar=function(t,e){if(this.gui.statusbar){var n=this.gui.statusbar.getElementsByClassName(t);n.length===1?this.gui.statusbar.getElementsByClassName(t)[0].textContent=e:n.length===0?console.log("EasyMDE: status bar item "+t+" was not found."):console.log("EasyMDE: Several status bar items named "+t+" was found.")}};Pe.prototype.markdown=function(t){if(q0){var e;if(this.options&&this.options.renderingConfig&&this.options.renderingConfig.markedOptions?e=this.options.renderingConfig.markedOptions:e={},this.options&&this.options.renderingConfig&&this.options.renderingConfig.singleLineBreaks===!1?e.breaks=!1:e.breaks=!0,this.options&&this.options.renderingConfig&&this.options.renderingConfig.codeSyntaxHighlighting===!0){var n=this.options.renderingConfig.hljs||window.hljs;n&&(e.highlight=function(i,s){return s&&n.getLanguage(s)?n.highlight(s,i).value:n.highlightAuto(i).value})}q0.setOptions(e);var r=q0.parse(t);return this.options.renderingConfig&&typeof this.options.renderingConfig.sanitizerFunction=="function"&&(r=this.options.renderingConfig.sanitizerFunction.call(this,r)),r=epe(r),r=tpe(r),r}};Pe.prototype.render=function(t){if(t||(t=this.element||document.getElementsByTagName("textarea")[0]),this._rendered&&this._rendered===t)return;this.element=t;var e=this.options,n=this,r={};for(var i in e.shortcuts)e.shortcuts[i]!==null&&_d[i]!==null&&function(E){r[CB(e.shortcuts[E])]=function(){var x=_d[E];typeof x=="function"?x(n):typeof x=="string"&&window.open(x,"_blank")}}(i);r.Enter="newlineAndIndentContinueMarkdownList",r.Tab="tabAndIndentMarkdownList",r["Shift-Tab"]="shiftTabAndUnindentMarkdownList",r.Esc=function(E){E.getOption("fullScreen")&&pl(n)},this.documentOnKeyDown=function(E){E=E||window.event,E.keyCode==27&&n.codemirror.getOption("fullScreen")&&pl(n)},document.addEventListener("keydown",this.documentOnKeyDown,!1);var s,a;e.overlayMode?(Zl.defineMode("overlay-mode",function(E){return Zl.overlayMode(Zl.getMode(E,e.spellChecker!==!1?"spell-checker":"gfm"),e.overlayMode.mode,e.overlayMode.combine)}),s="overlay-mode",a=e.parsingConfig,a.gitHubSpice=!1):(s=e.parsingConfig,s.name="gfm",s.gitHubSpice=!1),e.spellChecker!==!1&&(s="spell-checker",a=e.parsingConfig,a.name="gfm",a.gitHubSpice=!1,typeof e.spellChecker=="function"?e.spellChecker({codeMirrorInstance:Zl}):Xde({codeMirrorInstance:Zl}));function l(E,x,b){return{addNew:!1}}if(this.codemirror=Zl.fromTextArea(t,{mode:s,backdrop:a,theme:e.theme!=null?e.theme:"easymde",tabSize:e.tabSize!=null?e.tabSize:2,indentUnit:e.tabSize!=null?e.tabSize:2,indentWithTabs:e.indentWithTabs!==!1,lineNumbers:e.lineNumbers===!0,autofocus:e.autofocus===!0,extraKeys:r,direction:e.direction,lineWrapping:e.lineWrapping!==!1,allowDropFileTypes:["text/plain"],placeholder:e.placeholder||t.getAttribute("placeholder")||"",styleSelectedText:e.styleSelectedText!=null?e.styleSelectedText:!Zx(),scrollbarStyle:e.scrollbarStyle!=null?e.scrollbarStyle:"native",configureMouse:l,inputStyle:e.inputStyle!=null?e.inputStyle:Zx()?"contenteditable":"textarea",spellcheck:e.nativeSpellcheck!=null?e.nativeSpellcheck:!0,autoRefresh:e.autoRefresh!=null?e.autoRefresh:!1}),this.codemirror.getScrollerElement().style.minHeight=e.minHeight,typeof e.maxHeight<"u"&&(this.codemirror.getScrollerElement().style.height=e.maxHeight),e.forceSync===!0){var c=this.codemirror;c.on("change",function(){c.save()})}this.gui={};var f=document.createElement("div");f.classList.add("EasyMDEContainer"),f.setAttribute("role","application");var d=this.codemirror.getWrapperElement();d.parentNode.insertBefore(f,d),f.appendChild(d),e.toolbar!==!1&&(this.gui.toolbar=this.createToolbar()),e.status!==!1&&(this.gui.statusbar=this.createStatusbar()),e.autosave!=null&&e.autosave.enabled===!0&&(this.autosave(),this.codemirror.on("change",function(){clearTimeout(n._autosave_timeout),n._autosave_timeout=setTimeout(function(){n.autosave()},n.options.autosave.submit_delay||n.options.autosave.delay||1e3)}));function g(E,x){var b,C=window.getComputedStyle(document.querySelector(".CodeMirror-sizer")).width.replace("px","");return E<C?b=x+"px":b=x/E*100+"%",b}var v=this;function y(E,x){E.setAttribute("data-img-src",x.url),E.setAttribute("style","--bg-image:url("+x.url+");
211--width:"+x.naturalWidth+"px;--height:"+g(x.naturalWidth,x.naturalHeight)),v.codemirror.setSize()}function w(){e.previewImagesInEditor&&f.querySelectorAll(".cm-image-marker").forEach(function(E){var x=E.parentElement;if(x.innerText.match(/^!\[.*?\]\(.*\)/g)&&!x.hasAttribute("data-img-src")){var b=x.innerText.match("\\((.*)\\)");if(window.EMDEimagesCache||(window.EMDEimagesCache={}),b&&b.length>=2){var C=b[1];if(e.imagesPreviewHandler){var A=e.imagesPreviewHandler(b[1]);typeof A=="string"&&(C=A)}if(window.EMDEimagesCache[C])y(x,window.EMDEimagesCache[C]);else{var O=document.createElement("img");O.onload=function(){window.EMDEimagesCache[C]={naturalWidth:O.naturalWidth,naturalHeight:O.naturalHeight,url:C},y(x,window.EMDEimagesCache[C])},O.src=C}}}})}this.codemirror.on("update",function(){w()}),this.gui.sideBySide=this.createSideBySide(),this._rendered=this.element,(e.autofocus===!0||t.autofocus)&&this.codemirror.focus();var T=this.codemirror;setTimeout((function(){T.refresh()}).bind(T),0)};Pe.prototype.cleanup=function(){document.removeEventListener("keydown",this.documentOnKeyDown)};function LB(){if(typeof localStorage=="object")try{localStorage.setItem("smde_localStorage",1),localStorage.removeItem("smde_localStorage")}catch{return!1}else return!1;return!0}Pe.prototype.autosave=function(){if(LB()){var t=this;if(this.options.autosave.uniqueId==null||this.options.autosave.uniqueId==""){console.log("EasyMDE: You must set a uniqueId to use the autosave feature");return}this.options.autosave.binded!==!0&&(t.element.form!=null&&t.element.form!=null&&t.element.form.addEventListener("submit",function(){clearTimeout(t.autosaveTimeoutId),t.autosaveTimeoutId=void 0,localStorage.removeItem("smde_"+t.options.autosave.uniqueId)}),this.options.autosave.binded=!0),this.options.autosave.loaded!==!0&&(typeof localStorage.getItem("smde_"+this.options.autosave.uniqueId)=="string"&&localStorage.getItem("smde_"+this.options.autosave.uniqueId)!=""&&(this.codemirror.setValue(localStorage.getItem("smde_"+this.options.autosave.uniqueId)),this.options.autosave.foundSavedValue=!0),this.options.autosave.loaded=!0);var e=t.value();e!==""?localStorage.setItem("smde_"+this.options.autosave.uniqueId,e):localStorage.removeItem("smde_"+this.options.autosave.uniqueId);var n=document.getElementById("autosaved");if(n!=null&&n!=null&&n!=""){var r=new Date,i=new Intl.DateTimeFormat([this.options.autosave.timeFormat.locale,"en-US"],this.options.autosave.timeFormat.format).format(r),s=this.options.autosave.text==null?"Autosaved: ":this.options.autosave.text;n.innerHTML=s+i}}else console.log("EasyMDE: localStorage not available, cannot autosave")};Pe.prototype.clearAutosavedValue=function(){if(LB()){if(this.options.autosave==null||this.options.autosave.uniqueId==null||this.options.autosave.uniqueId==""){console.log("EasyMDE: You must set a uniqueId to clear the autosave value");return}localStorage.removeItem("smde_"+this.options.autosave.uniqueId)}else console.log("EasyMDE: localStorage not available, cannot autosave")};Pe.prototype.openBrowseFileWindow=function(t,e){var n=this,r=this.gui.toolbar.getElementsByClassName("imageInput")[0];r.click();function i(s){n.options.imageUploadFunction?n.uploadImagesUsingCustomFunction(n.options.imageUploadFunction,s.target.files):n.uploadImages(s.target.files,t,e),r.removeEventListener("change",i)}r.addEventListener("change",i)};Pe.prototype.uploadImage=function(t,e,n){var r=this;e=e||function(f){_B(r,f)};function i(c){r.updateStatusBar("upload-image",c),setTimeout(function(){r.updateStatusBar("upload-image",r.options.imageTexts.sbInit)},1e4),n&&typeof n=="function"&&n(c),r.options.errorCallback(c)}function s(c){var f=r.options.imageTexts.sizeUnits.split(",");return c.replace("#image_name#",t.name).replace("#image_size#",mm(t.size,f)).replace("#image_max_size#",mm(r.options.imageMaxSize,f))}if(t.size>this.options.imageMaxSize){i(s(this.options.errorMessages.fileTooLarge));return}var a=new FormData;a.append("image",t),r.options.imageCSRFToken&&!r.options.imageCSRFHeader&&a.append(r.options.imageCSRFName,r.options.imageCSRFToken);var l=new XMLHttpRequest;l.upload.onprogress=function(c){if(c.lengthComputable){var f=""+Math.round(c.loaded*100/c.total);r.updateStatusBar("upload-image",r.options.imageTexts.sbProgress.replace("#file_name#",t.name).replace("#progress#",f))}},l.open("POST",this.options.imageUploadEndpoint),r.options.imageCSRFToken&&r.options.imageCSRFHeader&&l.setRequestHeader(r.options.imageCSRFName,r.options.imageCSRFToken),l.onload=function(){try{var c=JSON.parse(this.responseText)}catch{console.error("EasyMDE: The server did not return a valid json."),i(s(r.options.errorMessages.importError));return}this.status===200&&c&&!c.error&&c.data&&c.data.filePath?e((r.options.imagePathAbsolute?"":window.location.origin+"/")+c.data.filePath):c.error&&c.error in r.options.errorMessages?i(s(r.options.errorMessages[c.error])):c.error?i(s(c.error)):(console.error("EasyMDE: Received an unexpected response after uploading the image."+this.status+" ("+this.statusText+")"),i(s(r.options.errorMessages.importError)))},l.onerror=function(c){console.error("EasyMDE: An unexpected error occurred when trying to upload the image."+c.target.status+" ("+c.target.statusText+")"),i(r.options.errorMessages.importError)},l.send(a)};Pe.prototype.uploadImageUsingCustomFunction=function(t,e){var n=this;function r(a){_B(n,a)}function i(a){var l=s(a);n.updateStatusBar("upload-image",l),setTimeout(function(){n.updateStatusBar("upload-image",n.options.imageTexts.sbInit)},1e4),n.options.errorCallback(l)}function s(a){var l=n.options.imageTexts.sizeUnits.split(",");return a.replace("#image_name#",e.name).replace("#image_size#",mm(e.size,l)).replace("#image_max_size#",mm(n.options.imageMaxSize,l))}t.apply(this,[e,r,i])};Pe.prototype.setPreviewMaxHeight=function(){var t=this.codemirror,e=t.getWrapperElement(),n=e.nextSibling,r=parseInt(window.getComputedStyle(e).paddingTop),i=parseInt(window.getComputedStyle(e).borderTopWidth),s=parseInt(this.options.maxHeight),a=s+r*2+i*2,l=a.toString()+"px";n.style.height=l};Pe.prototype.createSideBySide=function(){var t=this.codemirror,e=t.getWrapperElement(),n=e.nextSibling;if(!n||!n.classList.contains("editor-preview-side")){if(n=document.createElement("div"),n.className="editor-preview-side",this.options.previewClass)if(Array.isArray(this.options.previewClass))for(var r=0;r<this.options.previewClass.length;r++)n.classList.add(this.options.previewClass[r]);else typeof this.options.previewClass=="string"&&n.classList.add(this.options.previewClass);e.parentNode.insertBefore(n,e.nextSibling)}if(typeof this.options.maxHeight<"u"&&this.setPreviewMaxHeight(),this.options.syncSideBySidePreviewScroll===!1)return n;var i=!1,s=!1;
211return t.on("scroll",function(a){if(i){i=!1;return}s=!0;var l=a.getScrollInfo().height-a.getScrollInfo().clientHeight,c=parseFloat(a.getScrollInfo().top)/l,f=(n.scrollHeight-n.clientHeight)*c;n.scrollTop=f}),n.onscroll=function(){if(s){s=!1;return}i=!0;var a=n.scrollHeight-n.clientHeight,l=parseFloat(n.scrollTop)/a,c=(t.getScrollInfo().height-t.getScrollInfo().clientHeight)*l;t.scrollTo(0,c)},n};Pe.prototype.createToolbar=function(t){if(t=t||this.options.toolbar,!(!t||t.length===0)){var e;for(e=0;e<t.length;e++)Za[t[e]]!=null&&(t[e]=Za[t[e]]);var n=document.createElement("div");n.className="editor-toolbar",n.setAttribute("role","toolbar");var r=this,i={};for(r.toolbar=t,e=0;e<t.length;e++)if(!(t[e].name=="guide"&&r.options.toolbarGuideIcon===!1)&&!(r.options.hideIcons&&r.options.hideIcons.indexOf(t[e].name)!=-1)&&!((t[e].name=="fullscreen"||t[e].name=="side-by-side")&&Zx())){if(t[e]==="|"){for(var s=!1,a=e+1;a<t.length;a++)t[a]!=="|"&&(!r.options.hideIcons||r.options.hideIcons.indexOf(t[a].name)==-1)&&(s=!0);if(!s)continue}(function(f){var d;if(f==="|"?d=rpe():f.children?d=npe(f,r.options.toolbarTips,r.options.shortcuts,r):d=ng(f,!0,r.options.toolbarTips,r.options.shortcuts,"button",r),i[f.name||f]=d,n.appendChild(d),f.name==="upload-image"){var g=document.createElement("input");g.className="imageInput",g.type="file",g.multiple=!0,g.name="image",g.accept=r.options.imageAccept,g.style.display="none",g.style.opacity=0,n.appendChild(g)}})(t[e])}r.toolbar_div=n,r.toolbarElements=i;var l=this.codemirror;l.on("cursorActivity",function(){var f=ga(l);for(var d in i)(function(g){var v=i[g];f[g]?v.classList.add("active"):g!="fullscreen"&&g!="side-by-side"&&v.classList.remove("active")})(d)});var c=l.getWrapperElement();return c.parentNode.insertBefore(n,c),n}};Pe.prototype.createStatusbar=function(t){t=t||this.options.status;var e=this.options,n=this.codemirror;if(!(!t||t.length===0)){var r=[],i,s,a,l;for(i=0;i<t.length;i++)if(s=void 0,a=void 0,l=void 0,typeof t[i]=="object")r.push({className:t[i].className,defaultValue:t[i].defaultValue,onUpdate:t[i].onUpdate,onActivity:t[i].onActivity});else{var c=t[i];c==="words"?(l=function(y){y.innerHTML=II(n.getValue())},s=function(y){y.innerHTML=II(n.getValue())}):c==="lines"?(l=function(y){y.innerHTML=n.lineCount()},s=function(y){y.innerHTML=n.lineCount()}):c==="cursor"?(l=function(y){y.innerHTML="1:1"},a=function(y){var w=n.getCursor(),T=w.line+1,E=w.ch+1;y.innerHTML=T+":"+E}):c==="autosave"?l=function(y){e.autosave!=null&&e.autosave.enabled===!0&&y.setAttribute("id","autosaved")}:c==="upload-image"&&(l=function(y){y.innerHTML=e.imageTexts.sbInit}),r.push({className:c,defaultValue:l,onUpdate:s,onActivity:a})}var f=document.createElement("div");for(f.className="editor-statusbar",i=0;i<r.length;i++){var d=r[i],g=document.createElement("span");g.className=d.className,typeof d.defaultValue=="function"&&d.defaultValue(g),typeof d.onUpdate=="function"&&this.codemirror.on("update",function(y,w){return function(){w.onUpdate(y)}}(g,d)),typeof d.onActivity=="function"&&this.codemirror.on("cursorActivity",function(y,w){return function(){w.onActivity(y)}}(g,d)),f.appendChild(g)}var v=this.codemirror.getWrapperElement();return v.parentNode.insertBefore(f,v.nextSibling),f}};Pe.prototype.value=function(t){var e=this.codemirror;if(t===void 0)return e.getValue();if(e.getDoc().setValue(t),this.isPreviewActive()){var n=e.getWrapperElement(),r=n.lastChild,i=this.options.previewRender(t,r);i!==null&&(r.innerHTML=i)}return this};Pe.toggleBold=Gv;Pe.toggleItalic=Yv;Pe.toggleStrikethrough=Xv;Pe.toggleBlockquote=Jv;Pe.toggleHeadingSmaller=Ad;Pe.toggleHeadingBigger=Zv;Pe.toggleHeading1=ey;Pe.toggleHeading2=ty;Pe.toggleHeading3=ny;Pe.toggleHeading4=Z1;Pe.toggleHeading5=eC;Pe.toggleHeading6=tC;Pe.toggleCodeBlock=Qv;Pe.toggleUnorderedList=ry;Pe.toggleOrderedList=iy;Pe.cleanBlock=sy;Pe.drawLink=oy;Pe.drawImage=ay;Pe.drawUploadedImage=nC;Pe.drawTable=ly;Pe.drawHorizontalRule=uy;Pe.undo=cy;Pe.redo=fy;Pe.togglePreview=dy;Pe.toggleSideBySide=Ec;Pe.toggleFullScreen=pl;Pe.prototype.toggleBold=function(){Gv(this)};Pe.prototype.toggleItalic=function(){Yv(this)};Pe.prototype.toggleStrikethrough=function(){Xv(this)};Pe.prototype.toggleBlockquote=function(){Jv(this)};Pe.prototype.toggleHeadingSmaller=function(){Ad(this)};Pe.prototype.toggleHeadingBigger=function(){Zv(this)};Pe.prototype.toggleHeading1=function(){ey(this)};Pe.prototype.toggleHeading2=function(){ty(this)};Pe.prototype.toggleHeading3=function(){ny(this)};Pe.prototype.toggleHeading4=function(){Z1(this)};Pe.prototype.toggleHeading5=function(){eC(this)};Pe.prototype.toggleHeading6=function(){tC(this)};Pe.prototype.toggleCodeBlock=function(){Qv(this)};Pe.prototype.toggleUnorderedList=function(){ry(this)};Pe.prototype.toggleOrderedList=function(){iy(this)};Pe.prototype.cleanBlock=function(){sy(this)};Pe.prototype.drawLink=function(){oy(this)};Pe.prototype.drawImage=function(){ay(this)};Pe.prototype.drawUploadedImage=function(){nC(this)};Pe.prototype.drawTable=function(){ly(this)};Pe.prototype.drawHorizontalRule=function(){uy(this)};Pe.prototype.undo=function(){cy(this)};Pe.prototype.redo=function(){fy(this)};Pe.prototype.togglePreview=function(){dy(this)};Pe.prototype.toggleSideBySide=function(){Ec(this)};Pe.prototype.toggleFullScreen=function(){pl(this)};Pe.prototype.isPreviewActive=function(){var t=this.codemirror,e=t.getWrapperElement(),n=e.lastChild;return n.classList.contains("editor-preview-active")};Pe.prototype.isSideBySideActive=function(){var t=this.codemirror,e=t.getWrapperElement(),n=e.nextSibling;return n.classList.contains("editor-preview-active-side")};Pe.prototype.isFullscreenActive=function(){var t=this.codemirror;return t.getOption("fullScreen")};Pe.prototype.getState=function(){var t=this.codemirror;return ga(t)};Pe.prototype.toTextArea=function(){var t=this.codemirror,e=t.getWrapperElement(),n=e.parentNode;n&&(this.gui.toolbar&&n.removeChild(this.gui.toolbar),this.gui.statusbar&&n.removeChild(this.gui.statusbar),this.gui.sideBySide&&n.removeChild(this.gui.sideBySide)),n.parentNode.insertBefore(e,n),n.remove(),t.toTextArea(),this.autosaveTimeoutId&&(clearTimeout(this.autosaveTimeoutId),this.autosaveTimeoutId=void 0,this.clearAutosavedValue())};var dpe=Pe;const ppe=Lr(dpe);var hpe=0,gpe=()=>`simplemde-editor-${++hpe}`,mpe=({options:t,id:e,currentValueRef:n,textRef:r})=>{const[i,s]=I.useState(null),a=I.useCallback((f,d,g)=>{const v=t==null?void 0:t.imageUploadFunction;v&&v(f,w=>{d(w)},g)},[t==null?void 0:t.imageUploadFunction]),l=I.useRef(i);l.current=i,I.useEffect(()=>{let f;if(r){const d={element:r,initialValue:n.current},g=t!=null&&t.imageUploadFunction?a:void 0;f=new ppe(Object.assign({},d,t,{imageUploadFunction:g})),s(f)}return()=>{f==null||f.toTextArea(),f==null||f.cleanup()}},[r,n,e,a,t]);const c=I.useMemo(()=>i==null?void 0:i.codemirror,[i==null?void 0:i.codemirror]);return{editor:i,codemirror:c}},OB=Ie.forwardRef((t,e)=>{const{events:n,value:r,options:i,children:s,extraKeys:a,getLineAndCursor:l,getMdeInstance:c,getCodemirrorInstance:f,onChange:d,id:g,placeholder:v,textareaProps:y,...w}=t,T=I.useMemo(()=>g??gpe(),[g]),E=I.useRef(null),x=I.useRef(!0),b=I.useRef(r);b.current=r;const[C,A]=I.useState(null),{editor:O,codemirror:k}=mpe({options:i,id:T,currentValueRef:b,textRef:C});I.useEffect(()=>{x.current&&(O==null||O.value(r??"")),x.current=!0},[O,r]);const R=I.useCallback((W,H)=>{(O==null?void 0:O.value())!==b.current&&(x.current=!1,d==null||d((O==null?void 0:O.value())??"",H))},[O,d]);I.useEffect(()=>{i!=null&&i.autofocus&&(k==null||k.focus(),k==null||k.setCursor(k==null?void 0:k.lineCount(),0))},[k,i==null?void 0:i.autofocus]);const $=I.useCallback(()=>{k&&(l==null||l(k.getDoc().getCursor()))},[k,l]);I.useEffect(()=>{$()},[$]),I.useEffect(()=>{O&&(c==null||c(O))},[O,c]),I.useEffect(()=>{k&&(f==null||f(k))},[k,f,c]),I.useEffect(()=>{a&&k&&k.setOption("extraKeys",Object.assign({},k.getOption("extraKeys"),a))},[k,a]),I.useEffect(()=>{var W;const H=(W=E.current)==null?void 0:W.getElementsByClassName("editor-toolbarNode")[0],V=k&&R;return V?(H==null||H.addEventListener("click",V),()=>{H==null||H.removeEventListener("click",V)}):()=>{}},[k,R]),I.useEffect(()=>(k==null||k.on("change",R),k==null||k.on("cursorActivity",$),()=>{k==null||k.off("change",R),k==null||k.off("cursorActivity",$)}),[k,$,R]);const j=I.useRef(n);return I.useEffect(()=>(n!==j.current&&j.current&&Object.entries(j.current).forEach(([H,V])=>{V&&(k==null||k.off(H,V))}
211),n&&Object.entries(n).forEach(([H,V])=>{V&&(k==null||k.on(H,V))}),j.current=n,()=>{n&&Object.entries(n).forEach(([H,V])=>{V&&(k==null||k.off(H,V))})}),[k,n]),Ie.createElement("div",{id:`${T}-wrapper`,...w,ref:W=>{typeof e=="function"?e(W):e&&(e.current=W),E.current=W}},Ie.createElement("textarea",{...y,id:T,placeholder:v,ref:A,style:{display:"none"}}))});OB.displayName="SimpleMdeReact";var OSe=OB,vpe=Bv;function ype(){this.__data__=new vpe,this.size=0}var wpe=ype;function bpe(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}var xpe=bpe;function Spe(t){return this.__data__.get(t)}var Epe=Spe;function Cpe(t){return this.__data__.has(t)}var Tpe=Cpe,_pe=Bv,Ape=$1,kpe=F1,Lpe=200;function Ope(t,e){var n=this.__data__;if(n instanceof _pe){var r=n.__data__;if(!Ape||r.length<Lpe-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new kpe(r)}return n.set(t,e),this.size=n.size,this}var Ipe=Ope,Ppe=Bv,Rpe=wpe,Mpe=xpe,Dpe=Epe,Npe=Tpe,$pe=Ipe;function Cc(t){var e=this.__data__=new Ppe(t);this.size=e.size}Cc.prototype.clear=Rpe;Cc.prototype.delete=Mpe;Cc.prototype.get=Dpe;Cc.prototype.has=Npe;Cc.prototype.set=$pe;var sC=Cc;function Fpe(t,e){for(var n=-1,r=t==null?0:t.length;++n<r&&e(t[n],n,t)!==!1;);return t}var zpe=Fpe,Bpe=B1,jpe=Qz;function Upe(t,e,n,r){var i=!n;n||(n={});for(var s=-1,a=e.length;++s<a;){var l=e[s],c=r?r(n[l],t[l],l,n,t):void 0;c===void 0&&(c=t[l]),i?jpe(n,l,c):Bpe(n,l,c)}return n}var py=Upe;function Hpe(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}var Wpe=Hpe,vm={exports:{}};function Vpe(){return!1}var Kpe=Vpe;vm.exports;(function(t,e){var n=Cs,r=Kpe,i=e&&!e.nodeType&&e,s=i&&!0&&t&&!t.nodeType&&t,a=s&&s.exports===i,l=a?n.Buffer:void 0,c=l?l.isBuffer:void 0,f=c||r;t.exports=f})(vm,vm.exports);var oC=vm.exports,qpe=Jd,Gpe=H1,Ype=Sl,Xpe="[object Arguments]",Qpe="[object Array]",Jpe="[object Boolean]",Zpe="[object Date]",ehe="[object Error]",the="[object Function]",nhe="[object Map]",rhe="[object Number]",ihe="[object Object]",she="[object RegExp]",ohe="[object Set]",ahe="[object String]",lhe="[object WeakMap]",uhe="[object ArrayBuffer]",che="[object DataView]",fhe="[object Float32Array]",dhe="[object Float64Array]",phe="[object Int8Array]",hhe="[object Int16Array]",ghe="[object Int32Array]",mhe="[object Uint8Array]",vhe="[object Uint8ClampedArray]",yhe="[object Uint16Array]",whe="[object Uint32Array]",Bt={};Bt[fhe]=Bt[dhe]=Bt[phe]=Bt[hhe]=Bt[ghe]=Bt[mhe]=Bt[vhe]=Bt[yhe]=Bt[whe]=!0;Bt[Xpe]=Bt[Qpe]=Bt[uhe]=Bt[Jpe]=Bt[che]=Bt[Zpe]=Bt[ehe]=Bt[the]=Bt[nhe]=Bt[rhe]=Bt[ihe]=Bt[she]=Bt[ohe]=Bt[ahe]=Bt[lhe]=!1;function bhe(t){return Ype(t)&&Gpe(t.length)&&!!Bt[qpe(t)]}var xhe=bhe;function She(t){return function(e){return t(e)}}var hy=She,ym={exports:{}};
vendor: 6,362 bytes, line 211
211ym.exports;(function(t,e){var n=Hz,r=e&&!e.nodeType&&e,i=r&&!0&&t&&!t.nodeType&&t,s=i&&i.exports===r,a=s&&n.process,l=function(){try{var c=i&&i.require&&i.require("util").types;return c||a&&a.binding&&a.binding("util")}catch{}}();t.exports=l})(ym,ym.exports);var aC=ym.exports,Ehe=xhe,Che=hy,PI=aC,RI=PI&&PI.isTypedArray,The=RI?Che(RI):Ehe,IB=The,_he=Wpe,Ahe=U1,khe=Si,Lhe=oC,Ohe=j1,Ihe=IB,Phe=Object.prototype,Rhe=Phe.hasOwnProperty;function Mhe(t,e){var n=khe(t),r=!n&&Ahe(t),i=!n&&!r&&Lhe(t),s=!n&&!r&&!i&&Ihe(t),a=n||r||i||s,l=a?_he(t.length,String):[],c=l.length;for(var f in t)(e||Rhe.call(t,f))&&!(a&&(f=="length"||i&&(f=="offset"||f=="parent")||s&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||Ohe(f,c)))&&l.push(f);return l}var PB=Mhe,Dhe=Object.prototype;function Nhe(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||Dhe;return t===n}var lC=Nhe;function $he(t,e){return function(n){return t(e(n))}}var RB=$he,Fhe=RB,zhe=Fhe(Object.keys,Object),Bhe=zhe,jhe=lC,Uhe=Bhe,Hhe=Object.prototype,Whe=Hhe.hasOwnProperty;function Vhe(t){if(!jhe(t))return Uhe(t);var e=[];for(var n in Object(t))Whe.call(t,n)&&n!="constructor"&&e.push(n);return e}var Khe=Vhe,qhe=Vz,Ghe=H1;function Yhe(t){return t!=null&&Ghe(t.length)&&!qhe(t)}var gy=Yhe,Xhe=PB,Qhe=Khe,Jhe=gy;function Zhe(t){return Jhe(t)?Xhe(t):Qhe(t)}var tp=Zhe,ege=py,tge=tp;function nge(t,e){return t&&ege(e,tge(e),t)}var rge=nge;function ige(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var sge=ige,oge=El,age=lC,lge=sge,uge=Object.prototype,cge=uge.hasOwnProperty;function fge(t){if(!oge(t))return lge(t);var e=age(t),n=[];for(var r in t)r=="constructor"&&(e||!cge.call(t,r))||n.push(r);return n}var dge=fge,pge=PB,hge=dge,gge=gy;function mge(t){return gge(t)?pge(t,!0):hge(t)}var uC=mge,vge=py,yge=uC;function wge(t,e){return t&&vge(e,yge(e),t)}var bge=wge,wm={exports:{}};wm.exports;(function(t,e){var n=Cs,r=e&&!e.nodeType&&e,i=r&&!0&&t&&!t.nodeType&&t,s=i&&i.exports===r,a=s?n.Buffer:void 0,l=a?a.allocUnsafe:void 0;function c(f,d){if(d)return f.slice();var g=f.length,v=l?l(g):new f.constructor(g);return f.copy(v),v}t.exports=c})(wm,wm.exports);var xge=wm.exports;function Sge(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}var Ege=Sge;function Cge(t,e){for(var n=-1,r=t==null?0:t.length,i=0,s=[];++n<r;){var a=t[n];e(a,n,t)&&(s[i++]=a)}return s}var Tge=Cge;function _ge(){return[]}var MB=_ge,Age=Tge,kge=MB,Lge=Object.prototype,Oge=Lge.propertyIsEnumerable,MI=Object.getOwnPropertySymbols,Ige=MI?function(t){return t==null?[]:(t=Object(t),Age(MI(t),function(e){return Oge.call(t,e)}))}:kge,cC=Ige,Pge=py,Rge=cC;function Mge(t,e){return Pge(t,Rge(t),e)}var Dge=Mge,Nge=RB,$ge=Nge(Object.getPrototypeOf,Object),DB=$ge,Fge=W1,zge=DB,Bge=cC,jge=MB,Uge=Object.getOwnPropertySymbols,Hge=Uge?function(t){for(var e=[];t;)Fge(e,Bge(t)),t=zge(t);return e}:jge,NB=Hge,Wge=py,Vge=NB;function Kge(t,e){return Wge(t,Vge(t),e)}var qge=Kge,Gge=W1,Yge=Si;function Xge(t,e,n){var r=e(t);return Yge(t)?r:Gge(r,n(t))}var $B=Xge,Qge=$B,Jge=cC,Zge=tp;function eme(t){return Qge(t,Zge,Jge)}var FB=eme,tme=$B,nme=NB,rme=uC;function ime(t){return tme(t,rme,nme)}var sme=ime,ome=Cl,ame=Cs,lme=ome(ame,"DataView"),ume=lme,cme=Cl,fme=Cs,dme=cme(fme,"Promise"),pme=dme,hme=Cl,gme=Cs,mme=hme(gme,"Set"),vme=mme,yme=Cl,wme=Cs,bme=yme(wme,"WeakMap"),xme=bme,eS=ume,tS=$1,nS=pme,rS=vme,iS=xme,zB=Jd,Tc=Kz,DI="[object Map]",Sme="[object Object]",NI="[object Promise]",$I="[object Set]",FI="[object WeakMap]",zI="[object DataView]",Eme=Tc(eS),Cme=Tc(tS),Tme=Tc(nS),_me=Tc(rS),Ame=Tc(iS),Ra=zB;(eS&&Ra(new eS(new ArrayBuffer(1)))!=zI||tS&&Ra(new tS)!=DI||nS&&Ra(nS.resolve())!=NI||rS&&Ra(new rS)!=$I||iS&&Ra(new iS)!=FI)&&(Ra=function(t){var e=zB(t),n=e==Sme?t.constructor:void 0,r=n?Tc(n):"";if(r)switch(r){case Eme:return zI;case Cme:return DI;case Tme:return NI;case _me:return $I;case Ame:return FI}return e});var my=Ra,kme=Object.prototype,Lme=kme.hasOwnProperty;function Ome(t){var e=t.length,n=new t.constructor(e);return e&&typeof t[0]=="string"&&Lme.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var Ime=Ome,Pme=Cs,Rme=Pme.Uint8Array,BB=Rme,BI=BB;function Mme(t){var e=new t.constructor(t.byteLength);return new BI(e).set(new BI(t)),e}var fC=Mme,Dme=fC;function Nme(t,e){var n=e?Dme(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var $me=Nme,Fme=/\w*$/;function zme(t){var e=new t.constructor(t.source,Fme.exec(t));return e.lastIndex=t.lastIndex,e}var Bme=zme,jI=yc,UI=jI?jI.prototype:void 0,HI=UI?UI.valueOf:void 0;function jme(t){return HI?Object(HI.call(t)):{}}var Ume=jme,Hme=fC;function Wme(t,e){var n=e?Hme(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var Vme=Wme,Kme=fC,qme=$me,Gme=Bme,Yme=Ume,Xme=Vme,Qme="[object Boolean]",Jme="[object Date]",Zme="[object Map]",eve="[object Number]",tve="[object RegExp]",nve="[object Set]",rve="[object String]",ive="[object Symbol]",sve="[object ArrayBuffer]",ove="[object DataView]",ave="[object Float32Array]",lve="[object Float64Array]",uve="[object Int8Array]",cve="[object Int16Array]",fve="[object Int32Array]",dve="[object Uint8Array]",pve="[object Uint8ClampedArray]",hve="[object Uint16Array]",gve="[object Uint32Array]";function mve(t,e,n){var r=t.constructor;switch(e){case sve:return Kme(t);case Qme:case Jme:return new r(+t);case ove:return qme(t,n);case ave:case lve:case uve:case cve:case fve:case dve:case pve:case hve:case gve:return Xme(t,n);case Zme:return new r;case eve:case rve:return new r(t);case tve:return Gme(t);case nve:return new r;case ive:return Yme(t)}}var vve=mve,yve=El,WI=Object.create,wve=function(){function t(){}return function(e){if(!yve(e))return{};if(WI)return WI(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}(),bve=wve,xve=bve,Sve=DB,Eve=lC;function Cve(t){return typeof t.constructor=="function"&&!Eve(t)?xve(Sve(t)):{}}var Tve=Cve,_ve=my,Ave=Sl,kve="[object Map]";function Lve(t){return Ave(t)&&_ve(t)==kve}var Ove=Lve,Ive=Ove,Pve=hy,VI=aC,KI=VI&&VI.isMap,Rve=KI?Pve(KI):Ive,Mve=Rve,Dve=my,Nve=Sl,$ve="[object Set]";function Fve(t){return Nve(t)&&Dve(t)==$ve}var zve=Fve,Bve=zve,jve=hy,qI=aC,GI=qI&&qI.isSet,Uve=GI?jve(GI):Bve,Hve=Uve,Wve=sC,Vve=zpe,Kve=B1,qve=rge,Gve=bge,Yve=xge,Xve=Ege,Qve=Dge,Jve=qge,Zve=FB,eye=sme,tye=my,nye=Ime,rye=vve,iye=Tve,sye=Si,oye=oC,aye=Mve,lye=El,uye=Hve,cye=tp,fye=uC,dye
vendor: 2,672 bytes, line 211
211=1,pye=2,hye=4,jB="[object Arguments]",gye="[object Array]",mye="[object Boolean]",vye="[object Date]",yye="[object Error]",UB="[object Function]",wye="[object GeneratorFunction]",bye="[object Map]",xye="[object Number]",HB="[object Object]",Sye="[object RegExp]",Eye="[object Set]",Cye="[object String]",Tye="[object Symbol]",_ye="[object WeakMap]",Aye="[object ArrayBuffer]",kye="[object DataView]",Lye="[object Float32Array]",Oye="[object Float64Array]",Iye="[object Int8Array]",Pye="[object Int16Array]",Rye="[object Int32Array]",Mye="[object Uint8Array]",Dye="[object Uint8ClampedArray]",Nye="[object Uint16Array]",$ye="[object Uint32Array]",Rt={};Rt[jB]=Rt[gye]=Rt[Aye]=Rt[kye]=Rt[mye]=Rt[vye]=Rt[Lye]=Rt[Oye]=Rt[Iye]=Rt[Pye]=Rt[Rye]=Rt[bye]=Rt[xye]=Rt[HB]=Rt[Sye]=Rt[Eye]=Rt[Cye]=Rt[Tye]=Rt[Mye]=Rt[Dye]=Rt[Nye]=Rt[$ye]=!0;Rt[yye]=Rt[UB]=Rt[_ye]=!1;function rg(t,e,n,r,i,s){var a,l=e&dye,c=e&pye,f=e&hye;if(n&&(a=i?n(t,r,i,s):n(t)),a!==void 0)return a;if(!lye(t))return t;var d=sye(t);if(d){if(a=nye(t),!l)return Xve(t,a)}else{var g=tye(t),v=g==UB||g==wye;if(oye(t))return Yve(t,l);if(g==HB||g==jB||v&&!i){if(a=c||v?{}:iye(t),!l)return c?Jve(t,Gve(a,t)):Qve(t,qve(a,t))}else{if(!Rt[g])return i?t:{};a=rye(t,g,l)}}s||(s=new Wve);var y=s.get(t);if(y)return y;s.set(t,a),uye(t)?t.forEach(function(E){a.add(rg(E,e,n,E,t,s))}):aye(t)&&t.forEach(function(E,x){a.set(x,rg(E,e,n,x,t,s))});var w=f?c?eye:Zve:c?fye:cye,T=d?void 0:w(t);return Vve(T||t,function(E,x){T&&(x=E,E=t[x]),Kve(a,x,rg(E,e,n,x,t,s))}),a}var Fye=rg,zye=Fye,Bye=1,jye=4;function Uye(t){return zye(t,Bye|jye)}var Hye=Uye;const ISe=Lr(Hye);function PSe(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var bh,Wye=new Uint8Array(16);function Vye(){if(!bh&&(bh=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!bh))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return bh(Wye)}const Kye=/^(?:[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 qye(t){return typeof t=="string"&&Kye.test(t)}var Mn=[];for(var G0=0;G0<256;++G0)Mn.push((G0+256).toString(16).substr(1));function Gye(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(Mn[t[e+0]]+Mn[t[e+1]]+Mn[t[e+2]]+Mn[t[e+3]]+"-"+Mn[t[e+4]]+Mn[t[e+5]]+"-"+Mn[t[e+6]]+Mn[t[e+7]]+"-"+Mn[t[e+8]]+Mn[t[e+9]]+"-"+Mn[t[e+10]]+Mn[t[e+11]]+Mn[t[e+12]]+Mn[t[e+13]]+Mn[t[e+14]]+Mn[t[e+15]]).toLowerCase();
211if(!qye(n))throw TypeError("Stringified UUID is invalid");return n}function RSe(t,e,n){t=t||{};var r=t.random||(t.rng||Vye)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,e){n=n||0;for(var i=0;i<16;++i)e[n+i]=r[i];return e}return Gye(r)}var Yye=Hv;function Xye(t,e,n){var r=t==null?void 0:Yye(t,e);return r===void 0?n:r}var Qye=Xye,Jye=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function np(t,e){var n=Zye(t);if(typeof n.path!="string"){var r=t.webkitRelativePath;Object.defineProperty(n,"path",{value:typeof e=="string"?e:typeof r=="string"&&r.length>0?r:t.name,writable:!1,configurable:!1,enumerable:!0})}return n}function Zye(t){var e=t.name,n=e&&e.lastIndexOf(".")!==-1;if(n&&!t.type){var r=e.split(".").pop().toLowerCase(),i=Jye.get(r);i&&Object.defineProperty(t,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return t}var ewe=[".DS_Store","Thumbs.db"];function twe(t){return vl(this,void 0,void 0,function(){return yl(this,function(e){return bm(t)&&nwe(t.dataTransfer)?[2,owe(t.dataTransfer,t.type)]:rwe(t)?[2,iwe(t)]:Array.isArray(t)&&t.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,swe(t)]:[2,[]]})})}function nwe(t){return bm(t)}function rwe(t){return bm(t)&&bm(t.target)}function bm(t){return typeof t=="object"&&t!==null}function iwe(t){return sS(t.target.files).map(function(e){return np(e)})}function swe(t){return vl(this,void 0,void 0,function(){var e;return yl(this,function(n){switch(n.label){case 0:return[4,Promise.all(t.map(function(r){return r.getFile()}))];case 1:return e=n.sent(),[2,e.map(function(r){return np(r)})]}})})}function owe(t,e){return vl(this,void 0,void 0,function(){var n,r;return yl(this,function(i){switch(i.label){case 0:return t.items?(n=sS(t.items).filter(function(s){return s.kind==="file"}),e!=="drop"?[2,n]:[4,Promise.all(n.map(awe))]):[3,2];case 1:return r=i.sent(),[2,YI(WB(r))];case 2:return[2,YI(sS(t.files).map(function(s){return np(s)}))]}})})}function YI(t){return t.filter(function(e){return ewe.indexOf(e.name)===-1})}function sS(t){if(t===null)return[];for(var e=[],n=0;n<t.length;n++){var r=t[n];e.push(r)}return e}function awe(t){if(typeof t.webkitGetAsEntry!="function")return XI(t);var e=t.webkitGetAsEntry();return e&&e.isDirectory?VB(e):XI(t)}function WB(t){return t.reduce(function(e,n){return YA(YA([],GA(e),!1),GA(Array.isArray(n)?WB(n):[n]),!1)},[])}function XI(t){var e=t.getAsFile();if(!e)return Promise.reject("".concat(t," is not a File"));var n=np(e);return Promise.resolve(n)}function lwe(t){return vl(this,void 0,void 0,function(){return yl(this,function(e){return[2,t.isDirectory?VB(t):u
211we(t)]})})}function VB(t){var e=t.createReader();return new Promise(function(n,r){var i=[];function s(){var a=this;e.readEntries(function(l){return vl(a,void 0,void 0,function(){var c,f,d;return yl(this,function(g){switch(g.label){case 0:if(l.length)return[3,5];g.label=1;case 1:return g.trys.push([1,3,,4]),[4,Promise.all(i)];case 2:return c=g.sent(),n(c),[3,4];case 3:return f=g.sent(),r(f),[3,4];case 4:return[3,6];case 5:d=Promise.all(l.map(lwe)),i.push(d),s(),g.label=6;case 6:return[2]}})})},function(l){r(l)})}s()})}function uwe(t){return vl(this,void 0,void 0,function(){return yl(this,function(e){return[2,new Promise(function(n,r){t.file(function(i){var s=np(i,t.fullPath);n(s)},function(i){r(i)})})]})})}var cwe=function(t,e){if(t&&e){var n=Array.isArray(e)?e:e.split(","),r=t.name||"",i=(t.type||"").toLowerCase(),s=i.replace(/\/.*$/,"");return n.some(function(a){var l=a.trim().toLowerCase();return l.charAt(0)==="."?r.toLowerCase().endsWith(l):l.endsWith("/*")?s===l.replace(/\/.*$/,""):i===l})}return!0};function QI(t){return pwe(t)||dwe(t)||qB(t)||fwe()}function fwe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
212In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dwe(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function pwe(t){if(Array.isArray(t))return oS(t)}function JI(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function ZI(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?JI(Object(n),!0).forEach(function(r){KB(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):JI(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function KB(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function kd(t,e){return mwe(t)||gwe(t,e)||qB(t,e)||hwe()}function hwe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
213In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qB(t,e){if(t){if(typeof t=="string")return oS(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oS(t,e)}}function oS(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function gwe(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,s=!1,a,l;try{for(n=n.call(t);!(i=(a=n.next()).done)&&(r.push(a.value),!(e&&r.length===e));i=!0);}catch(c){s=!0,l=c}finally{try{!i&&n.return!=null&&n.return()}finally{if(s)throw l}}return r}}function mwe(t){if(Array.isArray(t))return t}var vwe="file-invalid-type",ywe="file-too-large",wwe="file-too-small",b
vendor: 9,818 bytes, lines 213-215
213we="too-many-files",xwe=function(e){e=Array.isArray(e)&&e.length===1?e[0]:e;var n=Array.isArray(e)?"one of ".concat(e.join(", ")):e;return{code:vwe,message:"File type must be ".concat(n)}},eP=function(e){return{code:ywe,message:"File is larger than ".concat(e," ").concat(e===1?"byte":"bytes")}},tP=function(e){return{code:wwe,message:"File is smaller than ".concat(e," ").concat(e===1?"byte":"bytes")}},Swe={code:bwe,message:"Too many files"};function GB(t,e){var n=t.type==="application/x-moz-file"||cwe(t,e);return[n,n?null:xwe(e)]}function YB(t,e,n){if(Ma(t.size))if(Ma(e)&&Ma(n)){if(t.size>n)return[!1,eP(n)];if(t.size<e)return[!1,tP(e)]}else{if(Ma(e)&&t.size<e)return[!1,tP(e)];if(Ma(n)&&t.size>n)return[!1,eP(n)]}return[!0,null]}function Ma(t){return t!=null}function Ewe(t){var e=t.files,n=t.accept,r=t.minSize,i=t.maxSize,s=t.multiple,a=t.maxFiles,l=t.validator;return!s&&e.length>1||s&&a>=1&&e.length>a?!1:e.every(function(c){var f=GB(c,n),d=kd(f,1),g=d[0],v=YB(c,r,i),y=kd(v,1),w=y[0],T=l?l(c):null;return g&&w&&!T})}function xm(t){return typeof t.isPropagationStopped=="function"?t.isPropagationStopped():typeof t.cancelBubble<"u"?t.cancelBubble:!1}function xh(t){return t.dataTransfer?Array.prototype.some.call(t.dataTransfer.types,function(e){return e==="Files"||e==="application/x-moz-file"}):!!t.target&&!!t.target.files}function nP(t){t.preventDefault()}function Cwe(t){return t.indexOf("MSIE")!==-1||t.indexOf("Trident/")!==-1}function Twe(t){return t.indexOf("Edge/")!==-1}function _we(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return Cwe(t)||Twe(t)}function cs(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(r){for(var i=arguments.length,s=new Array(i>1?i-1:0),a=1;a<i;a++)s[a-1]=arguments[a];return e.some(function(l){return!xm(r)&&l&&l.apply(void 0,[r].concat(s)),xm(r)})}}function Awe(){return"showOpenFilePicker"in window}function kwe(t){if(Ma(t)){var e=Object.entries(t).filter(function(n){var r=kd(n,2),i=r[0],s=r[1],a=!0;return XB(i)||(console.warn('Skipped "'.concat(i,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),a=!1),(!Array.isArray(s)||!s.every(QB))&&(console.warn('Skipped "'.concat(i,'" because an invalid file extension was provided.')),a=!1),a}).reduce(function(n,r){var i=kd(r,2),s=i[0],a=i[1];return ZI(ZI({},n),{},KB({},s,a))},{});return[{description:"Files",accept:e}]}return t}function Lwe(t){if(Ma(t))return Object.entries(t).reduce(function(e,n){var r=kd(n,2),i=r[0],s=r[1];return[].concat(QI(e),[i],QI(s))},[]).filter(function(e){return XB(e)||QB(e)}).join(",")}function Owe(t){return t instanceof DOMException&&(t.name==="AbortError"||t.code===t.ABORT_ERR)}function Iwe(t){return t instanceof DOMException&&(t.name==="SecurityError"||t.code===t.SECURITY_ERR)}function XB(t){return t==="audio/*"||t==="video/*"||t==="image/*"||t==="text/*"||/\w+\/[-+.\w]+/g.test(t)}function QB(t){return/^.*\.[\w]+$/.test(t)}var Pwe=["children"],Rwe=["open"],Mwe=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Dwe=["refKey","onChange","onClick"];function Nwe(t){return zwe(t)||Fwe(t)||JB(t)||$we()}function $we(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
214In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fwe(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function zwe(t){if(Array.isArray(t))return aS(t)}function Y0(t,e){return Uwe(t)||jwe(t,e)||JB(t,e)||Bwe()}function Bwe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
215In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function JB(t,e){if(t){if(typeof t=="string")return aS(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return aS(t,e)}}function aS(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function jwe(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,s=!1,a,l;try{for(n=n.call(t);!(i=(a=n.next()).done)&&(r.push(a.value),!(e&&r.length===e));i=!0);}catch(c){s=!0,l=c}finally{try{!i&&n.return!=null&&n.return()}finally{if(s)throw l}}return r}}function Uwe(t){if(Array.isArray(t))return t}function rP(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Yt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?rP(Object(n),!0).forEach(function(r){lS(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):rP(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function lS(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Sm(t,e){if(t==null)return{};var n=Hwe(t,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function Hwe(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,s;for(s=0;s<r.length;s++)i=r[s],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}var dC=I.forwardRef(function(t,e){var n=t.children,r=Sm(t,Pwe),i=Wwe(r),s=i.open,a=Sm(i,Rwe);return I.useImperativeHandle(e,function(){return{open:s}},[s]),Ie.createElement(I.Fragment,null,n(Yt(Yt({},a),{},{open:s})))});dC.displayName="Dropzone";var ZB={disabled:!1,getFilesFromEvent:twe,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};dC.defaultProps=ZB;dC.propTypes={children:ot.func,accept:ot.objectOf(ot.arrayOf(ot.string)),multiple:ot.bool,preventDropOnDocument:ot.bool,noClick:ot.bool,noKeyboard:ot.bool,noDrag:ot.bool,noDragEventsBubbling:ot.bool,minSize:ot.number,maxSize:ot.number,maxFiles:ot.number,disabled:ot.bool,getFilesFromEvent:ot.func,onFileDialogCancel:ot.func,onFileDialogOpen:ot.func,useFsAccessApi:ot.bool,autoFocus:ot.bool,onDragEnter:ot.func,onDragLeave:ot.func,onDragOver:ot.func,onDrop:ot.func,onDropAccepted:ot.func,onDropRejected:ot.func,onError:ot.func,validator:ot.func};var uS={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Wwe(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=Yt(Yt({},ZB),t),n=e.accept,r=e.disabled,i=e.getFilesFromEvent,s=e.maxSize,a=e.minSize,l=e.multiple,c=e.maxFiles,f=e.onDragEnter,d=e.onDragLeave,g=e.onDragOver,v=e.onDrop,y=e.onDropAccepted,w=e.onDropRejected,T=e.onFileDialogCancel,E=e.onFileDialogOpen,x=e.useFsAccessApi,b=e.autoFocus,C=e.preventDropOnDocument,A=e.noClick,O=e.noKeyboard,k=e.noDrag,R=e.noDragEventsBubbling,$=e.onError,j=e.validator,W=I.useMemo(function(){return Lwe(n)},[n]),H=I.useMemo(function(){return kwe(n)},[n]),V=I.useMemo(function(){return typeof E=="function"?E:iP},[E]),F=I.useMemo(function(){return typeof T=="function"?T:iP},[T]),z=I.useRef(null),M=I.useRef(null),q=I.useReducer(Vwe,uS),U=Y0(q,2),B=U[0],Y=U[1],Z=B.isFocused,fe=B.isFileDialogActive,K=I.useRef(typeof window<"u"&&window.isSecureContext&&x&&Awe()),N=function(){!K.current&&fe&&setTimeout(function(){if(M.current){var pe=M.current.files;pe.length||(Y({type:"closeDialog"}),F())}},300)};I.useEffect(function(){return window.addEventListener("focus",N,!1),function(){window.removeEventListener("focus",N,!1)}},[M,fe,F,K]);var ie=I.useRef([]),me=function(pe){z.current&&z.current.contains(pe.target)||(pe.preventDefault(),ie.current=[])};I.useEffect(function(){return C&&(document.addEventListener("dragover",nP,!1),document.addEventListener("drop",me,!1)),function(){C&&(document.removeEventListener("dragover",nP),document.removeEventListener("drop",me))}},[z,C]),I.useEffect(function(){return!r&&b&&z.current&&z.current.focus(),function(){}},[z,b,r]);var ve=I.useCallback(function(re){$?$(re):console.error(re)},[$]),ze=I.useCallback(function(re){re.preventDefault(),re.persist(),te(re),ie.current=[].concat(Nwe(ie.current),[re.target]),xh(re)&&Promise.resolve(i(re)).then(function(pe){if(!(xm(re)&&!R)){var Se=pe.length,Ve=Se>0&&Ewe({files:pe,accept:W,minSize:a,maxSize:s,multiple:l,maxFiles:c,validator:j}),ht=Se>0&&!Ve;Y({isDragAccept:Ve,isDragReject:ht,isDragActive:!0,type:"setDraggedFiles"}),f&&f(re)}}).catch(function(pe){return ve(pe)})},[i,f,ve,R,W,a,s,l,c,j]),it=I.useCallback(function(re){re.preventDefault(),re.persist(),te(re);var pe=xh(re);if(pe&&re.dataTransfer)try{re.dataTransfer.dropEffect="copy"}catch{}return pe&&g&&g(re),!1},[g,R]),qe=I.useCallback(function(re){re.preventDefault(),re.persist(),te(re);var pe=ie.current.filter(function(Ve){return z.current&&z.current.contains(Ve)}),Se=pe.indexOf(re.target);Se!==-1&&pe.splice(Se,1),ie.current=pe,!(pe.length>0)&&(Y({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),xh(re)&&d&&d(re))},[z,d,R]),Le=I.useCallback(function(re,pe){var Se=[],Ve=[];re.forEach(function(ht){var Kt=GB(ht,W),Zn=Y0(Kt,2),Or=Zn[0],jn=Zn[1],Ts=YB(ht,a,s),Un=Y0(Ts,2),Hn=Un[0],Ei=Un[1],In=j?j(ht):null;if(Or&&Hn&&!In)Se.push(ht);else{var uo=[jn,Ei];In&&(uo=uo.concat(In)),Ve.push({file:ht,errors:uo.filter(function(Ue){return Ue})})}}),(!l&&Se.length>1||l&&c>=1&&Se.length>
215c)&&(Se.forEach(function(ht){Ve.push({file:ht,errors:[Swe]})}),Se.splice(0)),Y({acceptedFiles:Se,fileRejections:Ve,type:"setFiles"}),v&&v(Se,Ve,pe),Ve.length>0&&w&&w(Ve,pe),Se.length>0&&y&&y(Se,pe)},[Y,l,W,a,s,c,v,y,w,j]),Oe=I.useCallback(function(re){re.preventDefault(),re.persist(),te(re),ie.current=[],xh(re)&&Promise.resolve(i(re)).then(function(pe){xm(re)&&!R||Le(pe,re)}).catch(function(pe){return ve(pe)}),Y({type:"reset"})},[i,Le,ve,R]),$e=I.useCallback(function(){if(K.current){Y({type:"openDialog"}),V();var re={multiple:l,types:H};window.showOpenFilePicker(re).then(function(pe){return i(pe)}).then(function(pe){Le(pe,null),Y({type:"closeDialog"})}).catch(function(pe){Owe(pe)?(F(pe),Y({type:"closeDialog"})):Iwe(pe)?(K.current=!1,M.current?(M.current.value=null,M.current.click()):ve(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):ve(pe)});return}M.current&&(Y({type:"openDialog"}),V(),M.current.value=null,M.current.click())},[Y,V,F,x,Le,ve,H,l]),et=I.useCallback(function(re){!z.current||!z.current.isEqualNode(re.target)||(re.key===" "||re.key==="Enter"||re.keyCode===32||re.keyCode===13)&&(re.preventDefault(),$e())},[z,$e]),ct=I.useCallback(function(){Y({type:"focus"})},[]),Ge=I.useCallback(function(){Y({type:"blur"})},[]),Tt=I.useCallback(function(){A||(_we()?setTimeout($e,0):$e())},[A,$e]),vt=function(pe){return r?null:pe},_t=function(pe){return O?null:vt(pe)},Q=function(pe){return k?null:vt(pe)},te=function(pe){R&&pe.stopPropagation()},oe=I.useMemo(function(){return function(){var re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},pe=re.refKey,Se=pe===void 0?"ref":pe,Ve=re.role,ht=re.onKeyDown,Kt=re.onFocus,Zn=re.onBlur,Or=re.onClick,jn=re.onDragEnter,Ts=re.onDragOver,Un=re.onDragLeave,Hn=re.onDrop,Ei=Sm(re,Mwe);return Yt(Yt(lS({onKeyDown:_t(cs(ht,et)),onFocus:_t(cs(Kt,ct)),onBlur:_t(cs(Zn,Ge)),onClick:vt(cs(Or,Tt)),onDragEnter:Q(cs(jn,ze)),onDragOver:Q(cs(Ts,it)),onDragLeave:Q(cs(Un,qe)),onDrop:Q(cs(Hn,Oe)),role:typeof Ve=="string"&&Ve!==""?Ve:"presentation"},Se,z),!r&&!O?{tabIndex:0}:{}),Ei)}},[z,et,ct,Ge,Tt,ze,it,qe,Oe,O,k,r]),Te=I.useCallback(function(re){re.stopPropagation()},[]),be=I.useMemo(function(){return function(){var re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},pe=re.refKey,Se=pe===void 0?"ref":pe,Ve=re.onChange,ht=re.onClick,Kt=Sm(re,Dwe),Zn=lS({accept:W,multiple:l,type:"file",style:{display:"none"},onChange:vt(cs(Ve,Oe)),onClick:vt(cs(ht,Te)),tabIndex:-1},Se,M);return Yt(Yt({},Zn),Kt)}},[M,n,l,Oe,r]);return Yt(Yt({},B),{},{isFocused:Z&&!r,getRootProps:oe,getInputProps:be,rootRef:z,inputRef:M,open:vt($e)})}function Vwe(t,e){switch(e.type){case"focus":return Yt(Yt({},t),{},{isFocused:!0});case"blur":return Yt(Yt({},t),{},{isFocused:!1});case"openDialog":return Yt(Yt({},uS),{},{isFileDialogActive:!0});case"closeDialog":return Yt(Yt({},t),{},{isFileDialogActive:!1});case"setDraggedFiles":return Yt(Yt({},t),{},{isDragActive:e.isDragActive,isDragAccept:e.isDragAccept,isDragReject:e.isDragReject});case"setFiles":return Yt(Yt({},t),{},{acceptedFiles:e.acceptedFiles,fileRejections:e.fileRejections});case"reset":return Yt({},uS);default:return t}}function iP(){}var Kwe="__lodash_hash_undefined__";function qwe(t){return this.__data__.set(t,Kwe),this}var Gwe=qwe;function Ywe(t){return this.__data__.has(t)}var Xwe=Ywe,Qwe=F1,Jwe=Gwe,Zwe=Xwe;function Em(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new Qwe;++e<n;)this.add(t[e])}Em.prototype.add=Em.prototype.push=Jwe;Em.prototype.has=Zwe;var e0e=Em;function t0e(t,e){for(var n=-1,r=t==null?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}var n0e=t0e;function r0e(t,e){return t.has(e)}var i0e=r0e,s0e=e0e,o0e=n0e,a0e=i0e,l0e=1,u0e=2;function c0e(t,e,n,r,i,s){var a=n&l0e,l=t.length,c=e.length;if(l!=c&&!(a&&c>l))return!1;var f=s.get(t),d=s.get(e);if(f&&d)return f==e&&d==t;var g=-1,v=!0,y=n&u0e?new s0e:void 0;for(s.set(t,e),s.set(e,t);++g<l;){var w=t[g],T=e[g];if(r)var E=a?r(T,w,g,e,t,s):r(w,T,g,t,e,s);if(E!==void 0){if(E)continue;v=!1;break}if(y){if(!o0e(e,function(x,b){if(!a0e(y,b)&&(w===x||i(w,x,n,r,s)))return y.push(b)})){v=!1;break}}else if(!(w===T||i(w,T,n,r,s))){v=!1;break}}return s.delete(t),s.delete(e),v}var ej=c0e;function f0e(t){var e=-1,n=Array(t.size);return t.forEach(function(r,i){n[++e]=[i,r]}),n}var d0e=f0e;function p0e(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}var h0e=p0e,sP=yc,oP=BB,g0e=N1,m0e=ej,v0e=d0e,y0e=h0e,w0e=1,b0e=2,x0e="[object Boolean]",S0e="[object Date]",E0e="[object Error]",C0e="[object Map]",T0e="[object Number]",_0e="[object RegExp]",A0e="[object Set]",k0e="[object String]",L0e="[object Symbol]",O0e="[object ArrayBuffer]",I0e="[object DataView]",aP=sP?sP.prototype:void 0,X0=aP?aP.valueOf:void 0;function P0e(t,e,n,r,i,s,a){switch(n){case I0e:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case O0e:return!(t.byteLength!=e.byteLength||!s(new oP(t),new oP(e)));case x0e:case S0e:case T0e:return g0e(+t,+e);case E0e:return t.name==e.name&&t.message==e.message;case _0e:case k0e:return t==e+"";case C0e:var l=v0e;case A0e:var c=r&w0e;if(l||(l=y0e),t.size!=e.size&&!c)return!1;var f=a.get(t);if(f)return f==e;r|=b0e,a.set(t,e);var d=m0e(l(t),l(e),r,i,s,a);return a.delete(t),d;case L0e:if(X0)return X0.call(t)==X0.call(e)}return!1}var R0e=P0e,lP=FB,M0e=1,D0e=Object.prototype,N0e=D0e.hasOwnProperty;function $0e(t,e,n,r,i,s){var a=n&M0e,l=lP(t),c=l.length,f=lP(e),d=f.length;if(c!=d&&!a)return!1;for(var g=c;g--;){var v=l[g];if(!(a?v in e:N0e.call(e,v)))return!1}var y=s.get(t),w=s.get(e);if(y&&w)return y==e&&w==t;var T=!0;s.set(t,e),s.set(e,t);for(var E=a;++g<c;){v=l[g];var x=t[v],b=e[v];if(r)var C=a?r(b,x,v,e,t,s):r(x,b,v,t,e,s);if(!(C===void 0?x===b||i(x,b,n,r,s):C)){T=!1;break}E||(E=v=="constructor")}if(T&&!E){var A=t.constructor,O=e.constructor;A!=O&&"constructor"in t&&"constructor"in e&&!(typeof A=="function"&&A instanceof A&&typeof O=="function"&&O instanceof O)&&(T=!1)}return s.delete(t),s.delete(e),T}var F0e=$0e,Q0=sC,z0e=ej,B0e=R0e,j0e=F0e,uP=my,cP=Si,fP=oC,U0e=IB,H0e=1,dP="[object Arguments]",pP="[object Array]",Sh="[object Object]",W0e=Object.prototype,hP=W0e.hasOwnProperty;function V0e(t,e,n,r,i,s){var a=cP(t),l=cP(e),c=a?pP:uP(t),f=l?pP:uP(e);c=c==dP?Sh:c,f=f==dP?Sh:f;var d=c==Sh,g=f==Sh,v=c==f;if(v&&fP(t)){if(!fP(e))return!1;a=!0,d=!1}if(v&&!d)return s||(s=new Q0),a||U0e(t)?z0e(t,e,n,r,i,s):B0e(t,e,c,n,r,i,s);if(!(n&H0e)){var y=d&&hP.call(t,"__wrapped__"),w=g&&hP.call(e,"__wrapped__");
215if(y||w){var T=y?t.value():t,E=w?e.value():e;return s||(s=new Q0),i(T,E,n,r,s)}}return v?(s||(s=new Q0),j0e(t,e,n,r,i,s)):!1}var K0e=V0e,q0e=K0e,gP=Sl;function tj(t,e,n,r,i){return t===e?!0:t==null||e==null||!gP(t)&&!gP(e)?t!==t&&e!==e:q0e(t,e,n,r,tj,i)}var nj=tj,G0e=sC,Y0e=nj,X0e=1,Q0e=2;function J0e(t,e,n,r){var i=n.length,s=i,a=!r;if(t==null)return!s;for(t=Object(t);i--;){var l=n[i];if(a&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++i<s;){l=n[i];var c=l[0],f=t[c],d=l[1];if(a&&l[2]){if(f===void 0&&!(c in t))return!1}else{var g=new G0e;if(r)var v=r(f,d,c,t,e,g);if(!(v===void 0?Y0e(d,f,X0e|Q0e,r,g):v))return!1}}return!0}var Z0e=J0e,ebe=El;function tbe(t){return t===t&&!ebe(t)}var rj=tbe,nbe=rj,rbe=tp;function ibe(t){for(var e=rbe(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,nbe(i)]}return e}var sbe=ibe;function obe(t,e){return function(n){return n==null?!1:n[t]===e&&(e!==void 0||t in Object(n))}}var ij=obe,abe=Z0e,lbe=sbe,ube=ij;function cbe(t){var e=lbe(t);return e.length==1&&e[0][2]?ube(e[0][0],e[0][1]):function(n){return n===t||abe(n,t,e)}}var fbe=cbe,dbe=nj,pbe=Qye,hbe=Zz,gbe=D1,mbe=rj,vbe=ij,ybe=Zd,wbe=1,bbe=2;function xbe(t,e){return gbe(t)&&mbe(e)?vbe(ybe(t),e):function(n){var r=pbe(n,t);return r===void 0&&r===e?hbe(n,t):dbe(e,r,wbe|bbe)}}var Sbe=xbe;function Ebe(t){return function(e){return e==null?void 0:e[t]}}var Cbe=Ebe,Tbe=Hv;function _be(t){return function(e){return Tbe(e,t)}}var Abe=_be,kbe=Cbe,Lbe=Abe,Obe=D1,Ibe=Zd;function Pbe(t){return Obe(t)?kbe(Ibe(t)):Lbe(t)}var Rbe=Pbe,Mbe=fbe,Dbe=Sbe,Nbe=V1,$be=Si,Fbe=Rbe;function zbe(t){return typeof t=="function"?t:t==null?Nbe:typeof t=="object"?$be(t)?Dbe(t[0],t[1]):Mbe(t):Fbe(t)}var Bbe=zbe;function jbe(t){return function(e,n,r){for(var i=-1,s=Object(e),a=r(e),l=a.length;l--;){var c=a[t?l:++i];if(n(s[c],c,s)===!1)break}return e}}var Ube=jbe,Hbe=Ube,Wbe=Hbe(),Vbe=Wbe,Kbe=Vbe,qbe=tp;function Gbe(t,e){return t&&Kbe(t,e,qbe)}var Ybe=Gbe,Xbe=gy;function Qbe(t,e){return function(n,r){if(n==null)return n;if(!Xbe(n))return t(n,r);for(var i=n.length,s=e?i:-1,a=Object(n);(e?s--:++s<i)&&r(a[s],s,a)!==!1;);return n}}var Jbe=Qbe,Zbe=Ybe,exe=Jbe,txe=exe(Zbe),nxe=txe,rxe=nxe,ixe=gy;function sxe(t,e){var n=-1,r=ixe(t)?Array(t.length):[];return rxe(t,function(i,s,a){r[++n]=e(i,s,a)}),r}var oxe=sxe;function axe(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}var lxe=axe,mP=$v;function uxe(t,e){if(t!==e){var n=t!==void 0,r=t===null,i=t===t,s=mP(t),a=e!==void 0,l=e===null,c=e===e,f=mP(e);if(!l&&!f&&!s&&t>e||s&&a&&c&&!l&&!f||r&&a&&c||!n&&c||!i)return 1;if(!r&&!s&&!f&&t<e||f&&n&&i&&!r&&!s||l&&n&&i||!a&&i||!c)return-1}return 0}var cxe=uxe,fxe=cxe;function dxe(t,e,n){for(var r=-1,i=t.criteria,s=e.criteria,a=i.length,l=n.length;++r<a;){var c=fxe(i[r],s[r]);if(c){if(r>=l)return c;var f=n[r];return c*(f=="desc"?-1:1)}}return t.index-e.index}var pxe=dxe,J0=Gz,hxe=Hv,gxe=Bbe,mxe=oxe,vxe=lxe,yxe=hy,wxe=pxe,bxe=V1,xxe=Si;function Sxe(t,e,n){e.length?e=J0(e,function(s){return xxe(s)?function(a){return hxe(a,s.length===1?s[0]:s)}:s}):e=[bxe];var r=-1;e=J0(e,yxe(gxe));var i=mxe(t,function(s,a,l){var c=J0(e,function(f){return f(s)});return{criteria:c,index:++r,value:s}});return vxe(i,function(s,a){return wxe(s,a,n)})}var Exe=Sxe,Cxe=Exe,vP=Si;function Txe(t,e,n,r){return t==null?[]:(vP(e)||(e=e==null?[]:[e]),n=r?void 0:n,vP(n)||(n=n==null?[]:[n]),Cxe(t,e,n))}var _xe=Txe;const MSe=Lr(_xe);var Axe=function(e,n){return e&&n&&n.split(" ").forEach(function(r){return iz(e,r)})},Z0=function(e,n){return e&&n&&n.split(" ").forEach(function(r){return sz(e,r)})},pC=function(t){$F(e,t);function e(){for(var r,i=arguments.length,s=new Array(i),a=0;a<i;a++)s[a]=arguments[a];return r=t.call.apply(t,[this].concat(s))||this,r.appliedClasses={appear:{},enter:{},exit:{}},r.onEnter=function(l,c){var f=r.resolveArguments(l,c),d=f[0],g=f[1];r.removeClasses(d,"exit"),r.addClass(d,g?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(l,c)},r.onEntering=function(l,c){var f=r.resolveArguments(l,c),d=f[0],g=f[1],v=g?"appear":"enter";r.addClass(d,v,"active"),r.props.onEntering&&r.props.onEntering(l,c)},r.onEntered=function(l,c){var f=r.resolveArguments(l,c),d=f[0],g=f[1],v=g?"appear":"enter";r.removeClasses(d,v),r.addClass(d,v,"done"),r.props.onEntered&&r.props.onEntered(l,c)},r.onExit=function(l){var c=r.resolveArguments(l),f=c[0];r.removeClasses(f,"appear"),r.removeClasses(f,"enter"),r.addClass(f,"exit","base"),r.props.onExit&&r.props.onExit(l)},r.onExiting=function(l){var c=r.resolveArguments(l),f=c[0];r.addClass(f,"exit","active"),r.props.onExiting&&r.props.onExiting(l)},r.onExited=function(l){var c=r.resolveArguments(l),f=c[0];r.removeClasses(f,"exit"),r.addClass(f,"exit","done"),r.props.onExited&&r.props.onExited(l)},r.resolveArguments=function(l,c){return r.props.nodeRef?[r.props.nodeRef.current,l]:[l,c]},r.getClassNames=function(l){var c=r.props.classNames,f=typeof c=="string",d=f&&c?c+"-":"",g=f?""+d+l:c[l],v=f?g+"-active":c[l+"Active"],y=f?g+"-done":c[l+"Done"];return{baseClassName:g,activeClassName:v,doneClassName:y}},r}var n=e.prototype;return n.addClass=function(i,s,a){var l=this.getClassNames(s)[a+"ClassName"],c=this.getClassNames("enter"),f=c.doneClassName;s==="appear"&&a==="done"&&f&&(l+=" "+f),a==="active"&&i&&KF(i),l&&(this.appliedClasse
215s[s][a]=l,Axe(i,l))},n.removeClasses=function(i,s){var a=this.appliedClasses[s],l=a.base,c=a.active,f=a.done;this.appliedClasses[s]={},l&&Z0(i,l),c&&Z0(i,c),f&&Z0(i,f)},n.render=function(){var i=this.props;i.classNames;var s=w1(i,["classNames"]);return Ie.createElement(qF,em({},s,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},e}(Ie.Component);pC.defaultProps={classNames:""};pC.propTypes={};const DSe=pC;export{sSe as $,Vxe as A,Pxe as B,Oxe as C,Hxe as D,T4 as E,nSe as F,ue as G,Zxe as H,fSe as I,Lie as J,Joe as K,AF as L,Qe as M,OSe as N,hre as O,Ire as P,rSe as Q,Jxe as R,xSe as S,Yxe as T,gSe as U,TSe as V,CSe as W,Qxe as X,gte as Y,are as Z,tSe as _,Gxe as a,Lre as a0,kv as a1,One as a2,LSe as a3,hSe as a4,Zfe as a5,uSe as a6,eSe as a7,ISe as a8,RSe as a9,PSe as aA,Yee as aB,QE as aC,Yie as aD,je as aE,Fa as aF,ASe as aG,ESe as aH,aSe as aI,wSe as aJ,SSe as aK,mSe as aL,Wwe as aa,oSe as ab,iSe as ac,kSe as ad,MSe as ae,pSe as af,Pte as ag,sm as ah,bse as ai,DSe as aj,dSe as ak,bSe as al,Nie as am,Lne as an,pne as ao,mF as ap,Lxe as aq,MW as ar,Ixe as as,cSe as at,_Se as au,vSe as av,Ie as aw,kie as ax,ySe as ay,jx as az,Uxe as b,$xe as c,Kxe as d,Fxe as e,W6 as f,zxe as g,jxe as h,gr as i,Mxe as j,Dxe as k,qxe as l,s4 as m,dD as n,Rxe as o,hD as p,Do as q,Xxe as r,Nxe as s,I as t,Bxe as u,WF as v,pD as w,iE as x,Ji as y,lSe as z};

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.