var ZU=Object.defineProperty;var $U=(e,t,A)=>t in e?ZU(e,t,{enumerable:!0,configurable:!0,writable:!0,value:A}):e[t]=A;var kt=(e,t,A)=>$U(e,typeof t!="symbol"?t+"":t,A);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))r(n);new MutationObserver(n=>{for(const i of n)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function A(n){const i={};return n.integrity&&(i.integrity=n.integrity),n.referrerPolicy&&(i.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?i.credentials="include":n.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(n){if(n.ep)return;n.ep=!0;const i=A(n);fetch(n.href,i)}})();var sO=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function e3(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var FC={exports:{}},Nd={},bC={exports:{}},mt={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Cc=Symbol.for("react.element"),t3=Symbol.for("react.portal"),A3=Symbol.for("react.fragment"),r3=Symbol.for("react.strict_mode"),n3=Symbol.for("react.profiler"),i3=Symbol.for("react.provider"),s3=Symbol.for("react.context"),o3=Symbol.for("react.forward_ref"),a3=Symbol.for("react.suspense"),l3=Symbol.for("react.memo"),u3=Symbol.for("react.lazy"),HB=Symbol.iterator;function c3(e){return e===null||typeof e!="object"?null:(e=HB&&e[HB]||e["@@iterator"],typeof e=="function"?e:null)}var xC={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},QC=Object.assign,UC={};function gl(e,t,A){this.props=e,this.context=t,this.refs=UC,this.updater=A||xC}gl.prototype.isReactComponent={};gl.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};gl.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function EC(){}EC.prototype=gl.prototype;function fm(e,t,A){this.props=e,this.context=t,this.refs=UC,this.updater=A||xC}var hm=fm.prototype=new EC;hm.constructor=fm;QC(hm,gl.prototype);hm.isPureReactComponent=!0;var PB=Array.isArray,SC=Object.prototype.hasOwnProperty,dm={current:null},LC={key:!0,ref:!0,__self:!0,__source:!0};function IC(e,t,A){var r,n={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)SC.call(t,r)&&!LC.hasOwnProperty(r)&&(n[r]=t[r]);var o=arguments.length-2;if(o===1)n.children=A;else if(1>>1,E=q[ce];if(0>>1;cen(Y,fe))$n(re,Y)?(q[ce]=re,q[$]=fe,ce=$):(q[ce]=Y,q[G]=fe,ce=G);else if($n(re,fe))q[ce]=re,q[$]=fe,ce=$;else break e}}return te}function n(q,te){var fe=q.sortIndex-te.sortIndex;return fe!==0?fe:q.id-te.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,o=s.now();e.unstable_now=function(){return s.now()-o}}var a=[],l=[],c=1,d=null,p=3,h=!1,y=!1,C=!1,U=typeof setTimeout=="function"?setTimeout:null,B=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function F(q){for(var te=A(l);te!==null;){if(te.callback===null)r(l);else if(te.startTime<=q)r(l),te.sortIndex=te.expirationTime,t(a,te);else break;te=A(l)}}function b(q){if(C=!1,F(q),!y)if(A(a)!==null)y=!0,ue(k);else{var te=A(l);te!==null&&ie(b,te.startTime-q)}}function k(q,te){y=!1,C&&(C=!1,B(H),H=-1),h=!0;var fe=p;try{for(F(te),d=A(a);d!==null&&(!(d.expirationTime>te)||q&&!L());){var ce=d.callback;if(typeof ce=="function"){d.callback=null,p=d.priorityLevel;var E=ce(d.expirationTime<=te);te=e.unstable_now(),typeof E=="function"?d.callback=E:d===A(a)&&r(a),F(te)}else r(a);d=A(a)}if(d!==null)var j=!0;else{var G=A(l);G!==null&&ie(b,G.startTime-te),j=!1}return j}finally{d=null,p=fe,h=!1}}var D=!1,W=null,H=-1,N=5,X=-1;function L(){return!(e.unstable_now()-Xq||125ce?(q.sortIndex=fe,t(l,q),A(a)===null&&q===A(l)&&(C?(B(H),H=-1):C=!0,ie(b,fe-ce))):(q.sortIndex=E,t(a,q),y||h||(y=!0,ue(k))),q},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(q){var te=p;return function(){var fe=p;p=te;try{return q.apply(this,arguments)}finally{p=fe}}}})(HC);TC.exports=HC;var C3=TC.exports;/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var F3=Ie,Yr=C3;function be(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,A=1;A"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),C0=Object.prototype.hasOwnProperty,b3=/^[: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]*$/,MB={},OB={};function x3(e){return C0.call(OB,e)?!0:C0.call(MB,e)?!1:b3.test(e)?OB[e]=!0:(MB[e]=!0,!1)}function Q3(e,t,A,r){if(A!==null&&A.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:A!==null?!A.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function U3(e,t,A,r){if(t===null||typeof t>"u"||Q3(e,t,A,r))return!0;if(r)return!1;if(A!==null)switch(A.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function xr(e,t,A,r,n,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=n,this.mustUseProperty=A,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var Ar={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ar[e]=new xr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ar[t]=new xr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ar[e]=new xr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ar[e]=new xr(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ar[e]=new xr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ar[e]=new xr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ar[e]=new xr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ar[e]=new xr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ar[e]=new xr(e,5,!1,e.toLowerCase(),null,!1,!1)});var gm=/[\-:]([a-z])/g;function mm(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(gm,mm);Ar[t]=new xr(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(gm,mm);Ar[t]=new xr(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(gm,mm);Ar[t]=new xr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ar[e]=new xr(e,1,!1,e.toLowerCase(),null,!1,!1)});Ar.xlinkHref=new xr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ar[e]=new xr(e,1,!1,e.toLowerCase(),null,!0,!0)});function Bm(e,t,A,r){var n=Ar.hasOwnProperty(t)?Ar[t]:null;(n!==null?n.type!==0:r||!(2o||n[s]!==i[o]){var a=` `+n[s].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=s&&0<=o);break}}}finally{zp=!1,Error.prepareStackTrace=A}return(e=e?e.displayName||e.name:"")?pu(e):""}function E3(e){switch(e.tag){case 5:return pu(e.type);case 16:return pu("Lazy");case 13:return pu("Suspense");case 19:return pu("SuspenseList");case 0:case 2:case 15:return e=Wp(e.type,!1),e;case 11:return e=Wp(e.type.render,!1),e;case 1:return e=Wp(e.type,!0),e;default:return""}}function Q0(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ea:return"Fragment";case Ua:return"Portal";case F0:return"Profiler";case wm:return"StrictMode";case b0:return"Suspense";case x0:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case MC:return(e.displayName||"Context")+".Consumer";case DC:return(e._context.displayName||"Context")+".Provider";case vm:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ym:return t=e.displayName||null,t!==null?t:Q0(e.type)||"Memo";case xs:t=e._payload,e=e._init;try{return Q0(e(t))}catch{}}return null}function S3(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Q0(t);case 8:return t===wm?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function zs(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function RC(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function L3(e){var t=RC(e)?"checked":"value",A=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof A<"u"&&typeof A.get=="function"&&typeof A.set=="function"){var n=A.get,i=A.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:A.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function wf(e){e._valueTracker||(e._valueTracker=L3(e))}function KC(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var A=t.getValue(),r="";return e&&(r=RC(e)?e.checked?"true":"false":e.value),e=r,e!==A?(t.setValue(e),!0):!1}function Rh(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function U0(e,t){var A=t.checked;return oA({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:A??e._wrapperState.initialChecked})}function KB(e,t){var A=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;A=zs(t.value!=null?t.value:A),e._wrapperState={initialChecked:r,initialValue:A,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function jC(e,t){t=t.checked,t!=null&&Bm(e,"checked",t,!1)}function E0(e,t){jC(e,t);var A=zs(t.value),r=t.type;if(A!=null)r==="number"?(A===0&&e.value===""||e.value!=A)&&(e.value=""+A):e.value!==""+A&&(e.value=""+A);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?S0(e,t.type,A):t.hasOwnProperty("defaultValue")&&S0(e,t.type,zs(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function jB(e,t,A){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,A||t===e.value||(e.value=t),e.defaultValue=t}A=e.name,A!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,A!==""&&(e.name=A)}function S0(e,t,A){(t!=="number"||Rh(e.ownerDocument)!==e)&&(A==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+A&&(e.defaultValue=""+A))}var gu=Array.isArray;function Wa(e,t,A,r){if(e=e.options,t){t={};for(var n=0;n"+t.valueOf().toString()+"",t=vf.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ju(e,t){if(t){var A=e.firstChild;if(A&&A===e.lastChild&&A.nodeType===3){A.nodeValue=t;return}}e.textContent=t}var Su={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},I3=["Webkit","ms","Moz","O"];Object.keys(Su).forEach(function(e){I3.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Su[t]=Su[e]})});function WC(e,t,A){return t==null||typeof t=="boolean"||t===""?"":A||typeof t!="number"||t===0||Su.hasOwnProperty(e)&&Su[e]?(""+t).trim():t+"px"}function qC(e,t){e=e.style;for(var A in t)if(t.hasOwnProperty(A)){var r=A.indexOf("--")===0,n=WC(A,t[A],r);A==="float"&&(A="cssFloat"),r?e.setProperty(A,n):e[A]=n}}var N3=oA({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 N0(e,t){if(t){if(N3[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(be(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(be(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(be(61))}if(t.style!=null&&typeof t.style!="object")throw Error(be(62))}}function _0(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var k0=null;function Cm(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var T0=null,qa=null,Xa=null;function zB(e){if(e=xc(e)){if(typeof T0!="function")throw Error(be(280));var t=e.stateNode;t&&(t=Pd(t),T0(e.stateNode,e.type,t))}}function XC(e){qa?Xa?Xa.push(e):Xa=[e]:qa=e}function JC(){if(qa){var e=qa,t=Xa;if(Xa=qa=null,zB(e),t)for(e=0;e>>=0,e===0?32:31-(j3(e)/V3|0)|0}var yf=64,Cf=4194304;function mu(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Gh(e,t){var A=e.pendingLanes;if(A===0)return 0;var r=0,n=e.suspendedLanes,i=e.pingedLanes,s=A&268435455;if(s!==0){var o=s&~n;o!==0?r=mu(o):(i&=s,i!==0&&(r=mu(i)))}else s=A&~n,s!==0?r=mu(s):i!==0&&(r=mu(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&n)&&(n=r&-r,i=t&-t,n>=i||n===16&&(i&4194240)!==0))return t;if(r&4&&(r|=A&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0A;A++)t.push(e);return t}function Fc(e,t,A){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Mn(t),e[t]=A}function q3(e,t){var A=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Iu),tw=" ",Aw=!1;function g4(e,t){switch(e){case"keyup":return CE.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function m4(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Sa=!1;function bE(e,t){switch(e){case"compositionend":return m4(t);case"keypress":return t.which!==32?null:(Aw=!0,tw);case"textInput":return e=t.data,e===tw&&Aw?null:e;default:return null}}function xE(e,t){if(Sa)return e==="compositionend"||!Lm&&g4(e,t)?(e=d4(),wh=Um=Ls=null,Sa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:A,offset:t-e};e=r}e:{for(;A;){if(A.nextSibling){A=A.nextSibling;break e}A=A.parentNode}A=void 0}A=sw(A)}}function y4(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?y4(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function C4(){for(var e=window,t=Rh();t instanceof e.HTMLIFrameElement;){try{var A=typeof t.contentWindow.location.href=="string"}catch{A=!1}if(A)e=t.contentWindow;else break;t=Rh(e.document)}return t}function Im(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function kE(e){var t=C4(),A=e.focusedElem,r=e.selectionRange;if(t!==A&&A&&A.ownerDocument&&y4(A.ownerDocument.documentElement,A)){if(r!==null&&Im(A)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in A)A.selectionStart=t,A.selectionEnd=Math.min(e,A.value.length);else if(e=(t=A.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var n=A.textContent.length,i=Math.min(r.start,n);r=r.end===void 0?i:Math.min(r.end,n),!e.extend&&i>r&&(n=r,r=i,i=n),n=ow(A,i);var s=ow(A,r);n&&s&&(e.rangeCount!==1||e.anchorNode!==n.node||e.anchorOffset!==n.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(n.node,n.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=A;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof A.focus=="function"&&A.focus(),A=0;A=document.documentMode,La=null,R0=null,_u=null,K0=!1;function aw(e,t,A){var r=A.window===A?A.document:A.nodeType===9?A:A.ownerDocument;K0||La==null||La!==Rh(r)||(r=La,"selectionStart"in r&&Im(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}),_u&&Ac(_u,r)||(_u=r,r=qh(R0,"onSelect"),0_a||(e.current=q0[_a],q0[_a]=null,_a--)}function Gt(e,t){_a++,q0[_a]=e.current,e.current=t}var Ws={},gr=$s(Ws),Ir=$s(!1),Ro=Ws;function sl(e,t){var A=e.type.contextTypes;if(!A)return Ws;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var n={},i;for(i in A)n[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=n),n}function Nr(e){return e=e.childContextTypes,e!=null}function Jh(){Jt(Ir),Jt(gr)}function pw(e,t,A){if(gr.current!==Ws)throw Error(be(168));Gt(gr,t),Gt(Ir,A)}function I4(e,t,A){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return A;r=r.getChildContext();for(var n in r)if(!(n in t))throw Error(be(108,S3(e)||"Unknown",n));return oA({},A,r)}function Yh(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ws,Ro=gr.current,Gt(gr,e),Gt(Ir,Ir.current),!0}function gw(e,t,A){var r=e.stateNode;if(!r)throw Error(be(169));A?(e=I4(e,t,Ro),r.__reactInternalMemoizedMergedChildContext=e,Jt(Ir),Jt(gr),Gt(gr,e)):Jt(Ir),Gt(Ir,A)}var Mi=null,Dd=!1,og=!1;function N4(e){Mi===null?Mi=[e]:Mi.push(e)}function zE(e){Dd=!0,N4(e)}function eo(){if(!og&&Mi!==null){og=!0;var e=0,t=Ht;try{var A=Mi;for(Ht=1;e>=s,n-=s,Ki=1<<32-Mn(t)+n|A<H?(N=W,W=null):N=W.sibling;var X=p(B,W,F[H],b);if(X===null){W===null&&(W=N);break}e&&W&&X.alternate===null&&t(B,W),v=i(X,v,H),D===null?k=X:D.sibling=X,D=X,W=N}if(H===F.length)return A(B,W),AA&&Fo(B,H),k;if(W===null){for(;HH?(N=W,W=null):N=W.sibling;var L=p(B,W,X.value,b);if(L===null){W===null&&(W=N);break}e&&W&&L.alternate===null&&t(B,W),v=i(L,v,H),D===null?k=L:D.sibling=L,D=L,W=N}if(X.done)return A(B,W),AA&&Fo(B,H),k;if(W===null){for(;!X.done;H++,X=F.next())X=d(B,X.value,b),X!==null&&(v=i(X,v,H),D===null?k=X:D.sibling=X,D=X);return AA&&Fo(B,H),k}for(W=r(B,W);!X.done;H++,X=F.next())X=h(W,B,H,X.value,b),X!==null&&(e&&X.alternate!==null&&W.delete(X.key===null?H:X.key),v=i(X,v,H),D===null?k=X:D.sibling=X,D=X);return e&&W.forEach(function(T){return t(B,T)}),AA&&Fo(B,H),k}function U(B,v,F,b){if(typeof F=="object"&&F!==null&&F.type===Ea&&F.key===null&&(F=F.props.children),typeof F=="object"&&F!==null){switch(F.$$typeof){case Bf:e:{for(var k=F.key,D=v;D!==null;){if(D.key===k){if(k=F.type,k===Ea){if(D.tag===7){A(B,D.sibling),v=n(D,F.props.children),v.return=B,B=v;break e}}else if(D.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===xs&&ww(k)===D.type){A(B,D.sibling),v=n(D,F.props),v.ref=ru(B,D,F),v.return=B,B=v;break e}A(B,D);break}else t(B,D);D=D.sibling}F.type===Ea?(v=Ho(F.props.children,B.mode,b,F.key),v.return=B,B=v):(b=Uh(F.type,F.key,F.props,null,B.mode,b),b.ref=ru(B,v,F),b.return=B,B=b)}return s(B);case Ua:e:{for(D=F.key;v!==null;){if(v.key===D)if(v.tag===4&&v.stateNode.containerInfo===F.containerInfo&&v.stateNode.implementation===F.implementation){A(B,v.sibling),v=n(v,F.children||[]),v.return=B,B=v;break e}else{A(B,v);break}else t(B,v);v=v.sibling}v=pg(F,B.mode,b),v.return=B,B=v}return s(B);case xs:return D=F._init,U(B,v,D(F._payload),b)}if(gu(F))return y(B,v,F,b);if(Zl(F))return C(B,v,F,b);Sf(B,F)}return typeof F=="string"&&F!==""||typeof F=="number"?(F=""+F,v!==null&&v.tag===6?(A(B,v.sibling),v=n(v,F),v.return=B,B=v):(A(B,v),v=dg(F,B.mode,b),v.return=B,B=v),s(B)):A(B,v)}return U}var al=H4(!0),P4=H4(!1),ed=$s(null),td=null,Ha=null,Tm=null;function Hm(){Tm=Ha=td=null}function Pm(e){var t=ed.current;Jt(ed),e._currentValue=t}function Y0(e,t,A){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===A)break;e=e.return}}function Ya(e,t){td=e,Tm=Ha=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Lr=!0),e.firstContext=null)}function yn(e){var t=e._currentValue;if(Tm!==e)if(e={context:e,memoizedValue:t,next:null},Ha===null){if(td===null)throw Error(be(308));Ha=e,td.dependencies={lanes:0,firstContext:e}}else Ha=Ha.next=e;return t}var Io=null;function Dm(e){Io===null?Io=[e]:Io.push(e)}function D4(e,t,A,r){var n=t.interleaved;return n===null?(A.next=A,Dm(t)):(A.next=n.next,n.next=A),t.interleaved=A,Ji(e,r)}function Ji(e,t){e.lanes|=t;var A=e.alternate;for(A!==null&&(A.lanes|=t),A=e,e=e.return;e!==null;)e.childLanes|=t,A=e.alternate,A!==null&&(A.childLanes|=t),A=e,e=e.return;return A.tag===3?A.stateNode:null}var Qs=!1;function Mm(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function M4(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Vi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Os(e,t,A){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Ut&2){var n=r.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),r.pending=t,Ji(e,A)}return n=r.interleaved,n===null?(t.next=t,Dm(r)):(t.next=n.next,n.next=t),r.interleaved=t,Ji(e,A)}function yh(e,t,A){if(t=t.updateQueue,t!==null&&(t=t.shared,(A&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,A|=r,t.lanes=A,bm(e,A)}}function vw(e,t){var A=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,A===r)){var n=null,i=null;if(A=A.firstBaseUpdate,A!==null){do{var s={eventTime:A.eventTime,lane:A.lane,tag:A.tag,payload:A.payload,callback:A.callback,next:null};i===null?n=i=s:i=i.next=s,A=A.next}while(A!==null);i===null?n=i=t:i=i.next=t}else n=i=t;A={baseState:r.baseState,firstBaseUpdate:n,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=A;return}e=A.lastBaseUpdate,e===null?A.firstBaseUpdate=t:e.next=t,A.lastBaseUpdate=t}function Ad(e,t,A,r){var n=e.updateQueue;Qs=!1;var i=n.firstBaseUpdate,s=n.lastBaseUpdate,o=n.shared.pending;if(o!==null){n.shared.pending=null;var a=o,l=a.next;a.next=null,s===null?i=l:s.next=l,s=a;var c=e.alternate;c!==null&&(c=c.updateQueue,o=c.lastBaseUpdate,o!==s&&(o===null?c.firstBaseUpdate=l:o.next=l,c.lastBaseUpdate=a))}if(i!==null){var d=n.baseState;s=0,c=l=a=null,o=i;do{var p=o.lane,h=o.eventTime;if((r&p)===p){c!==null&&(c=c.next={eventTime:h,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var y=e,C=o;switch(p=t,h=A,C.tag){case 1:if(y=C.payload,typeof y=="function"){d=y.call(h,d,p);break e}d=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=C.payload,p=typeof y=="function"?y.call(h,d,p):y,p==null)break e;d=oA({},d,p);break e;case 2:Qs=!0}}o.callback!==null&&o.lane!==0&&(e.flags|=64,p=n.effects,p===null?n.effects=[o]:p.push(o))}else h={eventTime:h,lane:p,tag:o.tag,payload:o.payload,callback:o.callback,next:null},c===null?(l=c=h,a=d):c=c.next=h,s|=p;if(o=o.next,o===null){if(o=n.shared.pending,o===null)break;p=o,o=p.next,p.next=null,n.lastBaseUpdate=p,n.shared.pending=null}}while(!0);if(c===null&&(a=d),n.baseState=a,n.firstBaseUpdate=l,n.lastBaseUpdate=c,t=n.shared.interleaved,t!==null){n=t;do s|=n.lane,n=n.next;while(n!==t)}else i===null&&(n.shared.lanes=0);Vo|=s,e.lanes=s,e.memoizedState=d}}function yw(e,t,A){if(e=t.effects,t.effects=null,e!==null)for(t=0;tA?A:4,e(!0);var r=lg.transition;lg.transition={};try{e(!1),t()}finally{Ht=A,lg.transition=r}}function AF(){return Cn().memoizedState}function JE(e,t,A){var r=Ks(e);if(A={lane:r,action:A,hasEagerState:!1,eagerState:null,next:null},rF(e))nF(t,A);else if(A=D4(e,t,A,r),A!==null){var n=Fr();On(A,e,r,n),iF(A,t,r)}}function YE(e,t,A){var r=Ks(e),n={lane:r,action:A,hasEagerState:!1,eagerState:null,next:null};if(rF(e))nF(t,n);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,o=i(s,A);if(n.hasEagerState=!0,n.eagerState=o,Rn(o,s)){var a=t.interleaved;a===null?(n.next=n,Dm(t)):(n.next=a.next,a.next=n),t.interleaved=n;return}}catch{}finally{}A=D4(e,t,n,r),A!==null&&(n=Fr(),On(A,e,r,n),iF(A,t,r))}}function rF(e){var t=e.alternate;return e===sA||t!==null&&t===sA}function nF(e,t){ku=nd=!0;var A=e.pending;A===null?t.next=t:(t.next=A.next,A.next=t),e.pending=t}function iF(e,t,A){if(A&4194240){var r=t.lanes;r&=e.pendingLanes,A|=r,t.lanes=A,bm(e,A)}}var id={readContext:yn,useCallback:ir,useContext:ir,useEffect:ir,useImperativeHandle:ir,useInsertionEffect:ir,useLayoutEffect:ir,useMemo:ir,useReducer:ir,useRef:ir,useState:ir,useDebugValue:ir,useDeferredValue:ir,useTransition:ir,useMutableSource:ir,useSyncExternalStore:ir,useId:ir,unstable_isNewReconciler:!1},ZE={readContext:yn,useCallback:function(e,t){return ii().memoizedState=[e,t===void 0?null:t],e},useContext:yn,useEffect:Fw,useImperativeHandle:function(e,t,A){return A=A!=null?A.concat([e]):null,Fh(4194308,4,Y4.bind(null,t,e),A)},useLayoutEffect:function(e,t){return Fh(4194308,4,e,t)},useInsertionEffect:function(e,t){return Fh(4,2,e,t)},useMemo:function(e,t){var A=ii();return t=t===void 0?null:t,e=e(),A.memoizedState=[e,t],e},useReducer:function(e,t,A){var r=ii();return t=A!==void 0?A(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=JE.bind(null,sA,e),[r.memoizedState,e]},useRef:function(e){var t=ii();return e={current:e},t.memoizedState=e},useState:Cw,useDebugValue:Wm,useDeferredValue:function(e){return ii().memoizedState=e},useTransition:function(){var e=Cw(!1),t=e[0];return e=XE.bind(null,e[1]),ii().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,A){var r=sA,n=ii();if(AA){if(A===void 0)throw Error(be(407));A=A()}else{if(A=t(),VA===null)throw Error(be(349));jo&30||j4(r,t,A)}n.memoizedState=A;var i={value:A,getSnapshot:t};return n.queue=i,Fw(G4.bind(null,r,i,e),[e]),r.flags|=2048,uc(9,V4.bind(null,r,i,A,t),void 0,null),A},useId:function(){var e=ii(),t=VA.identifierPrefix;if(AA){var A=ji,r=Ki;A=(r&~(1<<32-Mn(r)-1)).toString(32)+A,t=":"+t+"R"+A,A=ac++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(A,{is:r.is}):(e=s.createElement(A),A==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,A),e[si]=t,e[ic]=r,pF(e,t,!1,!1),t.stateNode=e;e:{switch(s=_0(A,r),A){case"dialog":qt("cancel",e),qt("close",e),n=r;break;case"iframe":case"object":case"embed":qt("load",e),n=r;break;case"video":case"audio":for(n=0;ncl&&(t.flags|=128,r=!0,nu(i,!1),t.lanes=4194304)}else{if(!r)if(e=rd(s),e!==null){if(t.flags|=128,r=!0,A=e.updateQueue,A!==null&&(t.updateQueue=A,t.flags|=4),nu(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!AA)return sr(t),null}else 2*CA()-i.renderingStartTime>cl&&A!==1073741824&&(t.flags|=128,r=!0,nu(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(A=i.last,A!==null?A.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=CA(),t.sibling=null,A=nA.current,Gt(nA,r?A&1|2:A&1),t):(sr(t),null);case 22:case 23:return $m(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Gr&1073741824&&(sr(t),t.subtreeFlags&6&&(t.flags|=8192)):sr(t),null;case 24:return null;case 25:return null}throw Error(be(156,t.tag))}function sS(e,t){switch(_m(t),t.tag){case 1:return Nr(t.type)&&Jh(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ll(),Jt(Ir),Jt(gr),Km(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Rm(t),null;case 13:if(Jt(nA),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(be(340));ol()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Jt(nA),null;case 4:return ll(),null;case 10:return Pm(t.type._context),null;case 22:case 23:return $m(),null;case 24:return null;default:return null}}var If=!1,dr=!1,oS=typeof WeakSet=="function"?WeakSet:Set,_e=null;function Pa(e,t){var A=e.ref;if(A!==null)if(typeof A=="function")try{A(null)}catch(r){hA(e,t,r)}else A.current=null}function s1(e,t,A){try{A()}catch(r){hA(e,t,r)}}var kw=!1;function aS(e,t){if(j0=zh,e=C4(),Im(e)){if("selectionStart"in e)var A={start:e.selectionStart,end:e.selectionEnd};else e:{A=(A=e.ownerDocument)&&A.defaultView||window;var r=A.getSelection&&A.getSelection();if(r&&r.rangeCount!==0){A=r.anchorNode;var n=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{A.nodeType,i.nodeType}catch{A=null;break e}var s=0,o=-1,a=-1,l=0,c=0,d=e,p=null;t:for(;;){for(var h;d!==A||n!==0&&d.nodeType!==3||(o=s+n),d!==i||r!==0&&d.nodeType!==3||(a=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(h=d.firstChild)!==null;)p=d,d=h;for(;;){if(d===e)break t;if(p===A&&++l===n&&(o=s),p===i&&++c===r&&(a=s),(h=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=h}A=o===-1||a===-1?null:{start:o,end:a}}else A=null}A=A||{start:0,end:0}}else A=null;for(V0={focusedElem:e,selectionRange:A},zh=!1,_e=t;_e!==null;)if(t=_e,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,_e=e;else for(;_e!==null;){t=_e;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var C=y.memoizedProps,U=y.memoizedState,B=t.stateNode,v=B.getSnapshotBeforeUpdate(t.elementType===t.type?C:Hn(t.type,C),U);B.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var F=t.stateNode.containerInfo;F.nodeType===1?F.textContent="":F.nodeType===9&&F.documentElement&&F.removeChild(F.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(be(163))}}catch(b){hA(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,_e=e;break}_e=t.return}return y=kw,kw=!1,y}function Tu(e,t,A){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var n=r=r.next;do{if((n.tag&e)===e){var i=n.destroy;n.destroy=void 0,i!==void 0&&s1(t,A,i)}n=n.next}while(n!==r)}}function Rd(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var A=t=t.next;do{if((A.tag&e)===e){var r=A.create;A.destroy=r()}A=A.next}while(A!==t)}}function o1(e){var t=e.ref;if(t!==null){var A=e.stateNode;switch(e.tag){case 5:e=A;break;default:e=A}typeof t=="function"?t(e):t.current=e}}function BF(e){var t=e.alternate;t!==null&&(e.alternate=null,BF(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[si],delete t[ic],delete t[W0],delete t[VE],delete t[GE])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function wF(e){return e.tag===5||e.tag===3||e.tag===4}function Tw(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||wF(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function a1(e,t,A){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?A.nodeType===8?A.parentNode.insertBefore(e,t):A.insertBefore(e,t):(A.nodeType===8?(t=A.parentNode,t.insertBefore(e,A)):(t=A,t.appendChild(e)),A=A._reactRootContainer,A!=null||t.onclick!==null||(t.onclick=Xh));else if(r!==4&&(e=e.child,e!==null))for(a1(e,t,A),e=e.sibling;e!==null;)a1(e,t,A),e=e.sibling}function l1(e,t,A){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?A.insertBefore(e,t):A.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(l1(e,t,A),e=e.sibling;e!==null;)l1(e,t,A),e=e.sibling}var YA=null,Pn=!1;function ms(e,t,A){for(A=A.child;A!==null;)vF(e,t,A),A=A.sibling}function vF(e,t,A){if(ai&&typeof ai.onCommitFiberUnmount=="function")try{ai.onCommitFiberUnmount(_d,A)}catch{}switch(A.tag){case 5:dr||Pa(A,t);case 6:var r=YA,n=Pn;YA=null,ms(e,t,A),YA=r,Pn=n,YA!==null&&(Pn?(e=YA,A=A.stateNode,e.nodeType===8?e.parentNode.removeChild(A):e.removeChild(A)):YA.removeChild(A.stateNode));break;case 18:YA!==null&&(Pn?(e=YA,A=A.stateNode,e.nodeType===8?sg(e.parentNode,A):e.nodeType===1&&sg(e,A),ec(e)):sg(YA,A.stateNode));break;case 4:r=YA,n=Pn,YA=A.stateNode.containerInfo,Pn=!0,ms(e,t,A),YA=r,Pn=n;break;case 0:case 11:case 14:case 15:if(!dr&&(r=A.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){n=r=r.next;do{var i=n,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&s1(A,t,s),n=n.next}while(n!==r)}ms(e,t,A);break;case 1:if(!dr&&(Pa(A,t),r=A.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=A.memoizedProps,r.state=A.memoizedState,r.componentWillUnmount()}catch(o){hA(A,t,o)}ms(e,t,A);break;case 21:ms(e,t,A);break;case 22:A.mode&1?(dr=(r=dr)||A.memoizedState!==null,ms(e,t,A),dr=r):ms(e,t,A);break;default:ms(e,t,A)}}function Hw(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var A=e.stateNode;A===null&&(A=e.stateNode=new oS),t.forEach(function(r){var n=mS.bind(null,e,r);A.has(r)||(A.add(r),r.then(n,n))})}}function Nn(e,t){var A=t.deletions;if(A!==null)for(var r=0;rn&&(n=s),r&=~i}if(r=n,r=CA()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*uS(r/1960))-r,10e?16:e,Is===null)var r=!1;else{if(e=Is,Is=null,ad=0,Ut&6)throw Error(be(331));var n=Ut;for(Ut|=4,_e=e.current;_e!==null;){var i=_e,s=i.child;if(_e.flags&16){var o=i.deletions;if(o!==null){for(var a=0;aCA()-Ym?To(e,0):Jm|=A),_r(e,t)}function EF(e,t){t===0&&(e.mode&1?(t=Cf,Cf<<=1,!(Cf&130023424)&&(Cf=4194304)):t=1);var A=Fr();e=Ji(e,t),e!==null&&(Fc(e,t,A),_r(e,A))}function gS(e){var t=e.memoizedState,A=0;t!==null&&(A=t.retryLane),EF(e,A)}function mS(e,t){var A=0;switch(e.tag){case 13:var r=e.stateNode,n=e.memoizedState;n!==null&&(A=n.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(be(314))}r!==null&&r.delete(t),EF(e,A)}var SF;SF=function(e,t,A){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ir.current)Lr=!0;else{if(!(e.lanes&A)&&!(t.flags&128))return Lr=!1,nS(e,t,A);Lr=!!(e.flags&131072)}else Lr=!1,AA&&t.flags&1048576&&_4(t,$h,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;bh(e,t),e=t.pendingProps;var n=sl(t,gr.current);Ya(t,A),n=Vm(null,t,r,e,n,A);var i=Gm();return t.flags|=1,typeof n=="object"&&n!==null&&typeof n.render=="function"&&n.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Nr(r)?(i=!0,Yh(t)):i=!1,t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,Mm(t),n.updater=Od,t.stateNode=n,n._reactInternals=t,$0(t,r,e,A),t=A1(null,t,r,!0,i,A)):(t.tag=0,AA&&i&&Nm(t),Cr(null,t,n,A),t=t.child),t;case 16:r=t.elementType;e:{switch(bh(e,t),e=t.pendingProps,n=r._init,r=n(r._payload),t.type=r,n=t.tag=wS(r),e=Hn(r,e),n){case 0:t=t1(null,t,r,e,A);break e;case 1:t=Iw(null,t,r,e,A);break e;case 11:t=Sw(null,t,r,e,A);break e;case 14:t=Lw(null,t,r,Hn(r.type,e),A);break e}throw Error(be(306,r,""))}return t;case 0:return r=t.type,n=t.pendingProps,n=t.elementType===r?n:Hn(r,n),t1(e,t,r,n,A);case 1:return r=t.type,n=t.pendingProps,n=t.elementType===r?n:Hn(r,n),Iw(e,t,r,n,A);case 3:e:{if(fF(t),e===null)throw Error(be(387));r=t.pendingProps,i=t.memoizedState,n=i.element,M4(e,t),Ad(t,r,null,A);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){n=ul(Error(be(423)),t),t=Nw(e,t,r,A,n);break e}else if(r!==n){n=ul(Error(be(424)),t),t=Nw(e,t,r,A,n);break e}else for(Wr=Ms(t.stateNode.containerInfo.firstChild),Xr=t,AA=!0,Dn=null,A=P4(t,null,r,A),t.child=A;A;)A.flags=A.flags&-3|4096,A=A.sibling;else{if(ol(),r===n){t=Yi(e,t,A);break e}Cr(e,t,r,A)}t=t.child}return t;case 5:return O4(t),e===null&&J0(t),r=t.type,n=t.pendingProps,i=e!==null?e.memoizedProps:null,s=n.children,G0(r,n)?s=null:i!==null&&G0(r,i)&&(t.flags|=32),cF(e,t),Cr(e,t,s,A),t.child;case 6:return e===null&&J0(t),null;case 13:return hF(e,t,A);case 4:return Om(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=al(t,null,r,A):Cr(e,t,r,A),t.child;case 11:return r=t.type,n=t.pendingProps,n=t.elementType===r?n:Hn(r,n),Sw(e,t,r,n,A);case 7:return Cr(e,t,t.pendingProps,A),t.child;case 8:return Cr(e,t,t.pendingProps.children,A),t.child;case 12:return Cr(e,t,t.pendingProps.children,A),t.child;case 10:e:{if(r=t.type._context,n=t.pendingProps,i=t.memoizedProps,s=n.value,Gt(ed,r._currentValue),r._currentValue=s,i!==null)if(Rn(i.value,s)){if(i.children===n.children&&!Ir.current){t=Yi(e,t,A);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var o=i.dependencies;if(o!==null){s=i.child;for(var a=o.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=Vi(-1,A&-A),a.tag=2;var l=i.updateQueue;if(l!==null){l=l.shared;var c=l.pending;c===null?a.next=a:(a.next=c.next,c.next=a),l.pending=a}}i.lanes|=A,a=i.alternate,a!==null&&(a.lanes|=A),Y0(i.return,A,t),o.lanes|=A;break}a=a.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(be(341));s.lanes|=A,o=s.alternate,o!==null&&(o.lanes|=A),Y0(s,A,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Cr(e,t,n.children,A),t=t.child}return t;case 9:return n=t.type,r=t.pendingProps.children,Ya(t,A),n=yn(n),r=r(n),t.flags|=1,Cr(e,t,r,A),t.child;case 14:return r=t.type,n=Hn(r,t.pendingProps),n=Hn(r.type,n),Lw(e,t,r,n,A);case 15:return lF(e,t,t.type,t.pendingProps,A);case 17:return r=t.type,n=t.pendingProps,n=t.elementType===r?n:Hn(r,n),bh(e,t),t.tag=1,Nr(r)?(e=!0,Yh(t)):e=!1,Ya(t,A),sF(t,r,n),$0(t,r,n,A),A1(null,t,r,!0,e,A);case 19:return dF(e,t,A);case 22:return uF(e,t,A)}throw Error(be(156,t.tag))};function LF(e,t){return r4(e,t)}function BS(e,t,A,r){this.tag=e,this.key=A,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function mn(e,t,A,r){return new BS(e,t,A,r)}function t2(e){return e=e.prototype,!(!e||!e.isReactComponent)}function wS(e){if(typeof e=="function")return t2(e)?1:0;if(e!=null){if(e=e.$$typeof,e===vm)return 11;if(e===ym)return 14}return 2}function js(e,t){var A=e.alternate;return A===null?(A=mn(e.tag,t,e.key,e.mode),A.elementType=e.elementType,A.type=e.type,A.stateNode=e.stateNode,A.alternate=e,e.alternate=A):(A.pendingProps=t,A.type=e.type,A.flags=0,A.subtreeFlags=0,A.deletions=null),A.flags=e.flags&14680064,A.childLanes=e.childLanes,A.lanes=e.lanes,A.child=e.child,A.memoizedProps=e.memoizedProps,A.memoizedState=e.memoizedState,A.updateQueue=e.updateQueue,t=e.dependencies,A.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},A.sibling=e.sibling,A.index=e.index,A.ref=e.ref,A}function Uh(e,t,A,r,n,i){var s=2;if(r=e,typeof e=="function")t2(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Ea:return Ho(A.children,n,i,t);case wm:s=8,n|=8;break;case F0:return e=mn(12,A,t,n|2),e.elementType=F0,e.lanes=i,e;case b0:return e=mn(13,A,t,n),e.elementType=b0,e.lanes=i,e;case x0:return e=mn(19,A,t,n),e.elementType=x0,e.lanes=i,e;case OC:return jd(A,n,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case DC:s=10;break e;case MC:s=9;break e;case vm:s=11;break e;case ym:s=14;break e;case xs:s=16,r=null;break e}throw Error(be(130,e==null?e:typeof e,""))}return t=mn(s,A,t,n),t.elementType=e,t.type=r,t.lanes=i,t}function Ho(e,t,A,r){return e=mn(7,e,r,t),e.lanes=A,e}function jd(e,t,A,r){return e=mn(22,e,r,t),e.elementType=OC,e.lanes=A,e.stateNode={isHidden:!1},e}function dg(e,t,A){return e=mn(6,e,null,t),e.lanes=A,e}function pg(e,t,A){return t=mn(4,e.children!==null?e.children:[],e.key,t),t.lanes=A,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function vS(e,t,A,r,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Xp(0),this.expirationTimes=Xp(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xp(0),this.identifierPrefix=r,this.onRecoverableError=n,this.mutableSourceEagerHydrationData=null}function A2(e,t,A,r,n,i,s,o,a){return e=new vS(e,t,A,o,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=mn(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:A,cache:null,transitions:null,pendingSuspenseBoundaries:null},Mm(i),e}function yS(e,t,A){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(kF)}catch(e){console.error(e)}}kF(),kC.exports=$r;var QS=kC.exports,Vw=QS;y0.createRoot=Vw.createRoot,y0.hydrateRoot=Vw.hydrateRoot;const s2=Ie.createContext({});function o2(e){const t=Ie.useRef(null);return t.current===null&&(t.current=e()),t.current}const qd=Ie.createContext(null),a2=Ie.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class US extends Ie.Component{getSnapshotBeforeUpdate(t){const A=this.props.childRef.current;if(A&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=A.offsetHeight||0,r.width=A.offsetWidth||0,r.top=A.offsetTop,r.left=A.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function ES({children:e,isPresent:t}){const A=Ie.useId(),r=Ie.useRef(null),n=Ie.useRef({width:0,height:0,top:0,left:0}),{nonce:i}=Ie.useContext(a2);return Ie.useInsertionEffect(()=>{const{width:s,height:o,top:a,left:l}=n.current;if(t||!r.current||!s||!o)return;r.current.dataset.motionPopId=A;const c=document.createElement("style");return i&&(c.nonce=i),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(` [data-motion-pop-id="${A}"] { position: absolute !important; width: ${s}px !important; height: ${o}px !important; top: ${a}px !important; left: ${l}px !important; } `),()=>{document.head.removeChild(c)}},[t]),se.jsx(US,{isPresent:t,childRef:r,sizeRef:n,children:Ie.cloneElement(e,{ref:r})})}const SS=({children:e,initial:t,isPresent:A,onExitComplete:r,custom:n,presenceAffectsLayout:i,mode:s})=>{const o=o2(LS),a=Ie.useId(),l=Ie.useCallback(d=>{o.set(d,!0);for(const p of o.values())if(!p)return;r&&r()},[o,r]),c=Ie.useMemo(()=>({id:a,initial:t,isPresent:A,custom:n,onExitComplete:l,register:d=>(o.set(d,!1),()=>o.delete(d))}),i?[Math.random(),l]:[A,l]);return Ie.useMemo(()=>{o.forEach((d,p)=>o.set(p,!1))},[A]),Ie.useEffect(()=>{!A&&!o.size&&r&&r()},[A]),s==="popLayout"&&(e=se.jsx(ES,{isPresent:A,children:e})),se.jsx(qd.Provider,{value:c,children:e})};function LS(){return new Map}function TF(e=!0){const t=Ie.useContext(qd);if(t===null)return[!0,null];const{isPresent:A,onExitComplete:r,register:n}=t,i=Ie.useId();Ie.useEffect(()=>{e&&n(i)},[e]);const s=Ie.useCallback(()=>e&&r&&r(i),[i,r,e]);return!A&&r?[!1,s]:[!0]}const kf=e=>e.key||"";function Gw(e){const t=[];return Ie.Children.forEach(e,A=>{Ie.isValidElement(A)&&t.push(A)}),t}const l2=typeof window<"u",HF=l2?Ie.useLayoutEffect:Ie.useEffect,IS=({children:e,custom:t,initial:A=!0,onExitComplete:r,presenceAffectsLayout:n=!0,mode:i="sync",propagate:s=!1})=>{const[o,a]=TF(s),l=Ie.useMemo(()=>Gw(e),[e]),c=s&&!o?[]:l.map(kf),d=Ie.useRef(!0),p=Ie.useRef(l),h=o2(()=>new Map),[y,C]=Ie.useState(l),[U,B]=Ie.useState(l);HF(()=>{d.current=!1,p.current=l;for(let b=0;b{const k=kf(b),D=s&&!o?!1:l===U||c.includes(k),W=()=>{if(h.has(k))h.set(k,!0);else return;let H=!0;h.forEach(N=>{N||(H=!1)}),H&&(F==null||F(),B(p.current),s&&(a==null||a()),r&&r())};return se.jsx(SS,{isPresent:D,initial:!d.current||A?void 0:!1,custom:D?void 0:t,presenceAffectsLayout:n,mode:i,onExitComplete:D?void 0:W,children:b},k)})})},Jr=e=>e;let PF=Jr;function u2(e){let t;return()=>(t===void 0&&(t=e()),t)}const fl=(e,t,A)=>{const r=t-e;return r===0?1:(A-e)/r},Gi=e=>e*1e3,zi=e=>e/1e3,NS={useManualTiming:!1};function _S(e){let t=new Set,A=new Set,r=!1,n=!1;const i=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function o(l){i.has(l)&&(a.schedule(l),e()),l(s)}const a={schedule:(l,c=!1,d=!1)=>{const h=d&&r?t:A;return c&&i.add(l),h.has(l)||h.add(l),l},cancel:l=>{A.delete(l),i.delete(l)},process:l=>{if(s=l,r){n=!0;return}r=!0,[t,A]=[A,t],t.forEach(o),t.clear(),r=!1,n&&(n=!1,a.process(l))}};return a}const Tf=["read","resolveKeyframes","update","preRender","render","postRender"],kS=40;function DF(e,t){let A=!1,r=!0;const n={delta:0,timestamp:0,isProcessing:!1},i=()=>A=!0,s=Tf.reduce((B,v)=>(B[v]=_S(i),B),{}),{read:o,resolveKeyframes:a,update:l,preRender:c,render:d,postRender:p}=s,h=()=>{const B=performance.now();A=!1,n.delta=r?1e3/60:Math.max(Math.min(B-n.timestamp,kS),1),n.timestamp=B,n.isProcessing=!0,o.process(n),a.process(n),l.process(n),c.process(n),d.process(n),p.process(n),n.isProcessing=!1,A&&t&&(r=!1,e(h))},y=()=>{A=!0,r=!0,n.isProcessing||e(h)};return{schedule:Tf.reduce((B,v)=>{const F=s[v];return B[v]=(b,k=!1,D=!1)=>(A||y(),F.schedule(b,k,D)),B},{}),cancel:B=>{for(let v=0;vzw[e].some(A=>!!t[A])};function TS(e){for(const t in e)hl[t]={...hl[t],...e[t]}}const HS=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function cd(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||HS.has(e)}let OF=e=>!cd(e);function PS(e){e&&(OF=t=>t.startsWith("on")?!cd(t):e(t))}try{PS(require("@emotion/is-prop-valid").default)}catch{}function DS(e,t,A){const r={};for(const n in e)n==="values"&&typeof e.values=="object"||(OF(n)||A===!0&&cd(n)||!t&&!cd(n)||e.draggable&&n.startsWith("onDrag"))&&(r[n]=e[n]);return r}function MS(e){if(typeof Proxy>"u")return e;const t=new Map,A=(...r)=>e(...r);return new Proxy(A,{get:(r,n)=>n==="create"?e:(t.has(n)||t.set(n,e(n)),t.get(n))})}const Xd=Ie.createContext({});function fc(e){return typeof e=="string"||Array.isArray(e)}function Jd(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const c2=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],f2=["initial",...c2];function Yd(e){return Jd(e.animate)||f2.some(t=>fc(e[t]))}function RF(e){return!!(Yd(e)||e.variants)}function OS(e,t){if(Yd(e)){const{initial:A,animate:r}=e;return{initial:A===!1||fc(A)?A:void 0,animate:fc(r)?r:void 0}}return e.inherit!==!1?t:{}}function RS(e){const{initial:t,animate:A}=OS(e,Ie.useContext(Xd));return Ie.useMemo(()=>({initial:t,animate:A}),[Ww(t),Ww(A)])}function Ww(e){return Array.isArray(e)?e.join(" "):e}const KS=Symbol.for("motionComponentSymbol");function Ma(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function jS(e,t,A){return Ie.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),A&&(typeof A=="function"?A(r):Ma(A)&&(A.current=r))},[t])}const h2=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),VS="framerAppearId",KF="data-"+h2(VS),{schedule:d2}=DF(queueMicrotask,!1),jF=Ie.createContext({});function GS(e,t,A,r,n){var i,s;const{visualElement:o}=Ie.useContext(Xd),a=Ie.useContext(MF),l=Ie.useContext(qd),c=Ie.useContext(a2).reducedMotion,d=Ie.useRef(null);r=r||a.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:o,props:A,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:c}));const p=d.current,h=Ie.useContext(jF);p&&!p.projection&&n&&(p.type==="html"||p.type==="svg")&&zS(d.current,A,n,h);const y=Ie.useRef(!1);Ie.useInsertionEffect(()=>{p&&y.current&&p.update(A,l)});const C=A[KF],U=Ie.useRef(!!C&&!(!((i=window.MotionHandoffIsComplete)===null||i===void 0)&&i.call(window,C))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,C)));return HF(()=>{p&&(y.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),d2.render(p.render),U.current&&p.animationState&&p.animationState.animateChanges())}),Ie.useEffect(()=>{p&&(!U.current&&p.animationState&&p.animationState.animateChanges(),U.current&&(queueMicrotask(()=>{var B;(B=window.MotionHandoffMarkAsComplete)===null||B===void 0||B.call(window,C)}),U.current=!1))}),p}function zS(e,t,A,r){const{layoutId:n,layout:i,drag:s,dragConstraints:o,layoutScroll:a,layoutRoot:l}=t;e.projection=new A(e.latestValues,t["data-framer-portal-id"]?void 0:VF(e.parent)),e.projection.setOptions({layoutId:n,layout:i,alwaysMeasureLayout:!!s||o&&Ma(o),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,layoutScroll:a,layoutRoot:l})}function VF(e){if(e)return e.options.allowProjection!==!1?e.projection:VF(e.parent)}function WS({preloadedFeatures:e,createVisualElement:t,useRender:A,useVisualState:r,Component:n}){var i,s;e&&TS(e);function o(l,c){let d;const p={...Ie.useContext(a2),...l,layoutId:qS(l)},{isStatic:h}=p,y=RS(l),C=r(l,h);if(!h&&l2){XS();const U=JS(p);d=U.MeasureLayout,y.visualElement=GS(n,C,p,t,U.ProjectionNode)}return se.jsxs(Xd.Provider,{value:y,children:[d&&y.visualElement?se.jsx(d,{visualElement:y.visualElement,...p}):null,A(n,l,jS(C,y.visualElement,c),C,h,y.visualElement)]})}o.displayName=`motion.${typeof n=="string"?n:`create(${(s=(i=n.displayName)!==null&&i!==void 0?i:n.name)!==null&&s!==void 0?s:""})`}`;const a=Ie.forwardRef(o);return a[KS]=n,a}function qS({layoutId:e}){const t=Ie.useContext(s2).id;return t&&e!==void 0?t+"-"+e:e}function XS(e,t){Ie.useContext(MF).strict}function JS(e){const{drag:t,layout:A}=hl;if(!t&&!A)return{};const r={...t,...A};return{MeasureLayout:t!=null&&t.isEnabled(e)||A!=null&&A.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const YS=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function p2(e){return typeof e!="string"||e.includes("-")?!1:!!(YS.indexOf(e)>-1||/[A-Z]/u.test(e))}function qw(e){const t=[{},{}];return e==null||e.values.forEach((A,r)=>{t[0][r]=A.get(),t[1][r]=A.getVelocity()}),t}function g2(e,t,A,r){if(typeof t=="function"){const[n,i]=qw(r);t=t(A!==void 0?A:e.custom,n,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[n,i]=qw(r);t=t(A!==void 0?A:e.custom,n,i)}return t}const d1=e=>Array.isArray(e),ZS=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),$S=e=>d1(e)?e[e.length-1]||0:e,pr=e=>!!(e&&e.getVelocity);function Eh(e){const t=pr(e)?e.get():e;return ZS(t)?t.toValue():t}function eL({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:A},r,n,i){const s={latestValues:tL(r,n,i,e),renderState:t()};return A&&(s.onMount=o=>A({props:r,current:o,...s}),s.onUpdate=o=>A(o)),s}const GF=e=>(t,A)=>{const r=Ie.useContext(Xd),n=Ie.useContext(qd),i=()=>eL(e,t,r,n);return A?i():o2(i)};function tL(e,t,A,r){const n={},i=r(e,{});for(const p in i)n[p]=Eh(i[p]);let{initial:s,animate:o}=e;const a=Yd(e),l=RF(e);t&&l&&!a&&e.inherit!==!1&&(s===void 0&&(s=t.initial),o===void 0&&(o=t.animate));let c=A?A.initial===!1:!1;c=c||s===!1;const d=c?o:s;if(d&&typeof d!="boolean"&&!Jd(d)){const p=Array.isArray(d)?d:[d];for(let h=0;ht=>typeof t=="string"&&t.startsWith(e),WF=zF("--"),AL=zF("var(--"),m2=e=>AL(e)?rL.test(e.split("/*")[0].trim()):!1,rL=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,qF=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Zi=(e,t,A)=>A>t?t:Atypeof e=="number",parse:parseFloat,transform:e=>e},hc={...vl,transform:e=>Zi(0,1,e)},Hf={...vl,default:1},Uc=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Cs=Uc("deg"),ui=Uc("%"),$e=Uc("px"),nL=Uc("vh"),iL=Uc("vw"),Xw={...ui,parse:e=>ui.parse(e)/100,transform:e=>ui.transform(e*100)},sL={borderWidth:$e,borderTopWidth:$e,borderRightWidth:$e,borderBottomWidth:$e,borderLeftWidth:$e,borderRadius:$e,radius:$e,borderTopLeftRadius:$e,borderTopRightRadius:$e,borderBottomRightRadius:$e,borderBottomLeftRadius:$e,width:$e,maxWidth:$e,height:$e,maxHeight:$e,top:$e,right:$e,bottom:$e,left:$e,padding:$e,paddingTop:$e,paddingRight:$e,paddingBottom:$e,paddingLeft:$e,margin:$e,marginTop:$e,marginRight:$e,marginBottom:$e,marginLeft:$e,backgroundPositionX:$e,backgroundPositionY:$e},oL={rotate:Cs,rotateX:Cs,rotateY:Cs,rotateZ:Cs,scale:Hf,scaleX:Hf,scaleY:Hf,scaleZ:Hf,skew:Cs,skewX:Cs,skewY:Cs,distance:$e,translateX:$e,translateY:$e,translateZ:$e,x:$e,y:$e,z:$e,perspective:$e,transformPerspective:$e,opacity:hc,originX:Xw,originY:Xw,originZ:$e},Jw={...vl,transform:Math.round},B2={...sL,...oL,zIndex:Jw,size:$e,fillOpacity:hc,strokeOpacity:hc,numOctaves:Jw},aL={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},lL=wl.length;function uL(e,t,A){let r="",n=!0;for(let i=0;i({style:{},transform:{},transformOrigin:{},vars:{}}),XF=()=>({...y2(),attrs:{}}),C2=e=>typeof e=="string"&&e.toLowerCase()==="svg";function JF(e,{style:t,vars:A},r,n){Object.assign(e.style,t,n&&n.getProjectionStyles(r));for(const i in A)e.style.setProperty(i,A[i])}const YF=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function ZF(e,t,A,r){JF(e,t,void 0,r);for(const n in t.attrs)e.setAttribute(YF.has(n)?n:h2(n),t.attrs[n])}const fd={};function pL(e){Object.assign(fd,e)}function $F(e,{layout:t,layoutId:A}){return Jo.has(e)||e.startsWith("origin")||(t||A!==void 0)&&(!!fd[e]||e==="opacity")}function F2(e,t,A){var r;const{style:n}=e,i={};for(const s in n)(pr(n[s])||t.style&&pr(t.style[s])||$F(s,e)||((r=A==null?void 0:A.getValue(s))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(i[s]=n[s]);return i}function eb(e,t,A){const r=F2(e,t,A);for(const n in e)if(pr(e[n])||pr(t[n])){const i=wl.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;r[i]=e[n]}return r}function gL(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const Zw=["x","y","width","height","cx","cy","r"],mL={useVisualState:GF({scrapeMotionValuesFromProps:eb,createRenderState:XF,onUpdate:({props:e,prevProps:t,current:A,renderState:r,latestValues:n})=>{if(!A)return;let i=!!e.drag;if(!i){for(const o in n)if(Jo.has(o)){i=!0;break}}if(!i)return;let s=!t;if(t)for(let o=0;o{gL(A,r),Yt.render(()=>{v2(r,n,C2(A.tagName),e.transformTemplate),ZF(A,r)})})}})},BL={useVisualState:GF({scrapeMotionValuesFromProps:F2,createRenderState:y2})};function tb(e,t,A){for(const r in t)!pr(t[r])&&!$F(r,A)&&(e[r]=t[r])}function wL({transformTemplate:e},t){return Ie.useMemo(()=>{const A=y2();return w2(A,t,e),Object.assign({},A.vars,A.style)},[t])}function vL(e,t){const A=e.style||{},r={};return tb(r,A,e),Object.assign(r,wL(e,t)),r}function yL(e,t){const A={},r=vL(e,t);return e.drag&&e.dragListener!==!1&&(A.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(A.tabIndex=0),A.style=r,A}function CL(e,t,A,r){const n=Ie.useMemo(()=>{const i=XF();return v2(i,t,C2(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};tb(i,e.style,e),n.style={...i,...n.style}}return n}function FL(e=!1){return(A,r,n,{latestValues:i},s)=>{const a=(p2(A)?CL:yL)(r,i,s,A),l=DS(r,typeof A=="string",e),c=A!==Ie.Fragment?{...l,...a,ref:n}:{},{children:d}=r,p=Ie.useMemo(()=>pr(d)?d.get():d,[d]);return Ie.createElement(A,{...c,children:p})}}function bL(e,t){return function(r,{forwardMotionProps:n}={forwardMotionProps:!1}){const s={...p2(r)?mL:BL,preloadedFeatures:e,useRender:FL(n),createVisualElement:t,Component:r};return WS(s)}}function Ab(e,t){if(!Array.isArray(t))return!1;const A=t.length;if(A!==e.length)return!1;for(let r=0;rwindow.ScrollTimeline!==void 0);class QL{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,A){for(let r=0;r{if(xL()&&n.attachTimeline)return n.attachTimeline(t);if(typeof A=="function")return A(n)});return()=>{r.forEach((n,i)=>{n&&n(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let A=0;AA[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class UL extends QL{then(t,A){return Promise.all(this.animations).then(t).catch(A)}}function b2(e,t){return e?e[t]||e.default||e:void 0}const p1=2e4;function rb(e){let t=0;const A=50;let r=e.next(t);for(;!r.done&&t=p1?1/0:t}function x2(e){return typeof e=="function"}function $w(e,t){e.timeline=t,e.onfinish=null}const Q2=e=>Array.isArray(e)&&typeof e[0]=="number",EL={linearEasing:void 0};function SL(e,t){const A=u2(e);return()=>{var r;return(r=EL[t])!==null&&r!==void 0?r:A()}}const hd=SL(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),nb=(e,t,A=10)=>{let r="";const n=Math.max(Math.round(t/A),2);for(let i=0;i`cubic-bezier(${e}, ${t}, ${A}, ${r})`,g1={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:wu([0,.65,.55,1]),circOut:wu([.55,0,1,.45]),backIn:wu([.31,.01,.66,-.59]),backOut:wu([.33,1.53,.69,.99])};function sb(e,t){if(e)return typeof e=="function"&&hd()?nb(e,t):Q2(e)?wu(e):Array.isArray(e)?e.map(A=>sb(A,t)||g1.easeOut):g1[e]}const Tn={x:!1,y:!1};function ob(){return Tn.x||Tn.y}function LL(e,t,A){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let n=document;const i=(r=void 0)!==null&&r!==void 0?r:n.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function ab(e,t){const A=LL(e),r=new AbortController,n={passive:!0,...t,signal:r.signal};return[A,n,()=>r.abort()]}function ev(e){return t=>{t.pointerType==="touch"||ob()||e(t)}}function IL(e,t,A={}){const[r,n,i]=ab(e,A),s=ev(o=>{const{target:a}=o,l=t(o);if(typeof l!="function"||!a)return;const c=ev(d=>{l(d),a.removeEventListener("pointerleave",c)});a.addEventListener("pointerleave",c,n)});return r.forEach(o=>{o.addEventListener("pointerenter",s,n)}),i}const lb=(e,t)=>t?e===t?!0:lb(e,t.parentElement):!1,U2=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,NL=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function _L(e){return NL.has(e.tagName)||e.tabIndex!==-1}const vu=new WeakSet;function tv(e){return t=>{t.key==="Enter"&&e(t)}}function mg(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const kL=(e,t)=>{const A=e.currentTarget;if(!A)return;const r=tv(()=>{if(vu.has(A))return;mg(A,"down");const n=tv(()=>{mg(A,"up")}),i=()=>mg(A,"cancel");A.addEventListener("keyup",n,t),A.addEventListener("blur",i,t)});A.addEventListener("keydown",r,t),A.addEventListener("blur",()=>A.removeEventListener("keydown",r),t)};function Av(e){return U2(e)&&!ob()}function TL(e,t,A={}){const[r,n,i]=ab(e,A),s=o=>{const a=o.currentTarget;if(!Av(o)||vu.has(a))return;vu.add(a);const l=t(o),c=(h,y)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",p),!(!Av(h)||!vu.has(a))&&(vu.delete(a),typeof l=="function"&&l(h,{success:y}))},d=h=>{c(h,A.useGlobalTarget||lb(a,h.target))},p=h=>{c(h,!1)};window.addEventListener("pointerup",d,n),window.addEventListener("pointercancel",p,n)};return r.forEach(o=>{!_L(o)&&o.getAttribute("tabindex")===null&&(o.tabIndex=0),(A.useGlobalTarget?window:o).addEventListener("pointerdown",s,n),o.addEventListener("focus",l=>kL(l,n),n)}),i}function HL(e){return e==="x"||e==="y"?Tn[e]?null:(Tn[e]=!0,()=>{Tn[e]=!1}):Tn.x||Tn.y?null:(Tn.x=Tn.y=!0,()=>{Tn.x=Tn.y=!1})}const ub=new Set(["width","height","top","left","right","bottom",...wl]);let Sh;function PL(){Sh=void 0}const ci={now:()=>(Sh===void 0&&ci.set(ZA.isProcessing||NS.useManualTiming?ZA.timestamp:performance.now()),Sh),set:e=>{Sh=e,queueMicrotask(PL)}};function E2(e,t){e.indexOf(t)===-1&&e.push(t)}function S2(e,t){const A=e.indexOf(t);A>-1&&e.splice(A,1)}class L2{constructor(){this.subscriptions=[]}add(t){return E2(this.subscriptions,t),()=>S2(this.subscriptions,t)}notify(t,A,r){const n=this.subscriptions.length;if(n)if(n===1)this.subscriptions[0](t,A,r);else for(let i=0;i!isNaN(parseFloat(e));class ML{constructor(t,A={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,n=!0)=>{const i=ci.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),n&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=A.owner}setCurrent(t){this.current=t,this.updatedAt=ci.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=DL(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,A){this.events[t]||(this.events[t]=new L2);const r=this.events[t].add(A);return t==="change"?()=>{r(),Yt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,A){this.passiveEffect=t,this.stopPassiveEffect=A}set(t,A=!0){!A||!this.passiveEffect?this.updateAndNotify(t,A):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,A,r){this.set(A),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,A=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,A&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=ci.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>rv)return 0;const A=Math.min(this.updatedAt-this.prevUpdatedAt,rv);return cb(parseFloat(this.current)-parseFloat(this.prevFrameValue),A)}start(t){return this.stop(),new Promise(A=>{this.hasAnimated=!0,this.animation=t(A),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function dc(e,t){return new ML(e,t)}function OL(e,t,A){e.hasValue(t)?e.getValue(t).set(A):e.addValue(t,dc(A))}function RL(e,t){const A=Zd(e,t);let{transitionEnd:r={},transition:n={},...i}=A||{};i={...i,...r};for(const s in i){const o=$S(i[s]);OL(e,s,o)}}function KL(e){return!!(pr(e)&&e.add)}function m1(e,t){const A=e.getValue("willChange");if(KL(A))return A.add(t)}function fb(e){return e.props[KF]}const hb=(e,t,A)=>(((1-3*A+3*t)*e+(3*A-6*t))*e+3*t)*e,jL=1e-7,VL=12;function GL(e,t,A,r,n){let i,s,o=0;do s=t+(A-t)/2,i=hb(s,r,n)-e,i>0?A=s:t=s;while(Math.abs(i)>jL&&++oGL(i,0,1,e,A);return i=>i===0||i===1?i:hb(n(i),t,r)}const db=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,pb=e=>t=>1-e(1-t),gb=Ec(.33,1.53,.69,.99),I2=pb(gb),mb=db(I2),Bb=e=>(e*=2)<1?.5*I2(e):.5*(2-Math.pow(2,-10*(e-1))),N2=e=>1-Math.sin(Math.acos(e)),wb=pb(N2),vb=db(N2),yb=e=>/^0[^.\s]+$/u.test(e);function zL(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||yb(e):!0}const Du=e=>Math.round(e*1e5)/1e5,_2=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function WL(e){return e==null}const qL=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,k2=(e,t)=>A=>!!(typeof A=="string"&&qL.test(A)&&A.startsWith(e)||t&&!WL(A)&&Object.prototype.hasOwnProperty.call(A,t)),Cb=(e,t,A)=>r=>{if(typeof r!="string")return r;const[n,i,s,o]=r.match(_2);return{[e]:parseFloat(n),[t]:parseFloat(i),[A]:parseFloat(s),alpha:o!==void 0?parseFloat(o):1}},XL=e=>Zi(0,255,e),Bg={...vl,transform:e=>Math.round(XL(e))},_o={test:k2("rgb","red"),parse:Cb("red","green","blue"),transform:({red:e,green:t,blue:A,alpha:r=1})=>"rgba("+Bg.transform(e)+", "+Bg.transform(t)+", "+Bg.transform(A)+", "+Du(hc.transform(r))+")"};function JL(e){let t="",A="",r="",n="";return e.length>5?(t=e.substring(1,3),A=e.substring(3,5),r=e.substring(5,7),n=e.substring(7,9)):(t=e.substring(1,2),A=e.substring(2,3),r=e.substring(3,4),n=e.substring(4,5),t+=t,A+=A,r+=r,n+=n),{red:parseInt(t,16),green:parseInt(A,16),blue:parseInt(r,16),alpha:n?parseInt(n,16)/255:1}}const B1={test:k2("#"),parse:JL,transform:_o.transform},Oa={test:k2("hsl","hue"),parse:Cb("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:A,alpha:r=1})=>"hsla("+Math.round(e)+", "+ui.transform(Du(t))+", "+ui.transform(Du(A))+", "+Du(hc.transform(r))+")"},fr={test:e=>_o.test(e)||B1.test(e)||Oa.test(e),parse:e=>_o.test(e)?_o.parse(e):Oa.test(e)?Oa.parse(e):B1.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?_o.transform(e):Oa.transform(e)},YL=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function ZL(e){var t,A;return isNaN(e)&&typeof e=="string"&&(((t=e.match(_2))===null||t===void 0?void 0:t.length)||0)+(((A=e.match(YL))===null||A===void 0?void 0:A.length)||0)>0}const Fb="number",bb="color",$L="var",e6="var(",nv="${}",t6=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function pc(e){const t=e.toString(),A=[],r={color:[],number:[],var:[]},n=[];let i=0;const o=t.replace(t6,a=>(fr.test(a)?(r.color.push(i),n.push(bb),A.push(fr.parse(a))):a.startsWith(e6)?(r.var.push(i),n.push($L),A.push(a)):(r.number.push(i),n.push(Fb),A.push(parseFloat(a))),++i,nv)).split(nv);return{values:A,split:o,indexes:r,types:n}}function xb(e){return pc(e).values}function Qb(e){const{split:t,types:A}=pc(e),r=t.length;return n=>{let i="";for(let s=0;stypeof e=="number"?0:e;function r6(e){const t=xb(e);return Qb(e)(t.map(A6))}const Xs={test:ZL,parse:xb,createTransformer:Qb,getAnimatableNone:r6},n6=new Set(["brightness","contrast","saturate","opacity"]);function i6(e){const[t,A]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=A.match(_2)||[];if(!r)return e;const n=A.replace(r,"");let i=n6.has(t)?1:0;return r!==A&&(i*=100),t+"("+i+n+")"}const s6=/\b([a-z-]*)\(.*?\)/gu,w1={...Xs,getAnimatableNone:e=>{const t=e.match(s6);return t?t.map(i6).join(" "):e}},o6={...B2,color:fr,backgroundColor:fr,outlineColor:fr,fill:fr,stroke:fr,borderColor:fr,borderTopColor:fr,borderRightColor:fr,borderBottomColor:fr,borderLeftColor:fr,filter:w1,WebkitFilter:w1},T2=e=>o6[e];function Ub(e,t){let A=T2(e);return A!==w1&&(A=Xs),A.getAnimatableNone?A.getAnimatableNone(t):void 0}const a6=new Set(["auto","none","0"]);function l6(e,t,A){let r=0,n;for(;re===vl||e===$e,sv=(e,t)=>parseFloat(e.split(", ")[t]),ov=(e,t)=>(A,{transform:r})=>{if(r==="none"||!r)return 0;const n=r.match(/^matrix3d\((.+)\)$/u);if(n)return sv(n[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?sv(i[1],e):0}},u6=new Set(["x","y","z"]),c6=wl.filter(e=>!u6.has(e));function f6(e){const t=[];return c6.forEach(A=>{const r=e.getValue(A);r!==void 0&&(t.push([A,r.get()]),r.set(A.startsWith("scale")?1:0))}),t}const dl={width:({x:e},{paddingLeft:t="0",paddingRight:A="0"})=>e.max-e.min-parseFloat(t)-parseFloat(A),height:({y:e},{paddingTop:t="0",paddingBottom:A="0"})=>e.max-e.min-parseFloat(t)-parseFloat(A),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:ov(4,13),y:ov(5,14)};dl.translateX=dl.x;dl.translateY=dl.y;const Po=new Set;let v1=!1,y1=!1;function Eb(){if(y1){const e=Array.from(Po).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),A=new Map;t.forEach(r=>{const n=f6(r);n.length&&(A.set(r,n),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const n=A.get(r);n&&n.forEach(([i,s])=>{var o;(o=r.getValue(i))===null||o===void 0||o.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}y1=!1,v1=!1,Po.forEach(e=>e.complete()),Po.clear()}function Sb(){Po.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(y1=!0)})}function h6(){Sb(),Eb()}class H2{constructor(t,A,r,n,i,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=A,this.name=r,this.motionValue=n,this.element=i,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Po.add(this),v1||(v1=!0,Yt.read(Sb),Yt.resolveKeyframes(Eb))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:A,element:r,motionValue:n}=this;for(let i=0;i/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),d6=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function p6(e){const t=d6.exec(e);if(!t)return[,];const[,A,r,n]=t;return[`--${A??r}`,n]}function Ib(e,t,A=1){const[r,n]=p6(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return Lb(s)?parseFloat(s):s}return m2(n)?Ib(n,t,A+1):n}const Nb=e=>t=>t.test(e),g6={test:e=>e==="auto",parse:e=>e},_b=[vl,$e,ui,Cs,iL,nL,g6],av=e=>_b.find(Nb(e));class kb extends H2{constructor(t,A,r,n,i){super(t,A,r,n,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:A,name:r}=this;if(!A||!A.current)return;super.readKeyframes();for(let a=0;a{A.getValue(a).set(l)}),this.resolveNoneKeyframes()}}const lv=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Xs.test(e)||e==="0")&&!e.startsWith("url("));function m6(e){const t=e[0];if(e.length===1)return!0;for(let A=0;Ae!==null;function $d(e,{repeat:t,repeatType:A="loop"},r){const n=e.filter(w6),i=t&&A!=="loop"&&t%2===1?0:n.length-1;return!i||r===void 0?n[i]:r}const v6=40;class Tb{constructor({autoplay:t=!0,delay:A=0,type:r="keyframes",repeat:n=0,repeatDelay:i=0,repeatType:s="loop",...o}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=ci.now(),this.options={autoplay:t,delay:A,type:r,repeat:n,repeatDelay:i,repeatType:s,...o},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>v6?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&h6(),this._resolved}onKeyframesResolved(t,A){this.resolvedAt=ci.now(),this.hasAttemptedResolve=!0;const{name:r,type:n,velocity:i,delay:s,onComplete:o,onUpdate:a,isGenerator:l}=this.options;if(!l&&!B6(t,r,n,i))if(s)this.options.duration=0;else{a&&a($d(t,this.options,A)),o&&o(),this.resolveFinishedPromise();return}const c=this.initPlayback(t,A);c!==!1&&(this._resolved={keyframes:t,finalKeyframe:A,...c},this.onPostResolved())}onPostResolved(){}then(t,A){return this.currentFinishedPromise.then(t,A)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const iA=(e,t,A)=>e+(t-e)*A;function wg(e,t,A){return A<0&&(A+=1),A>1&&(A-=1),A<1/6?e+(t-e)*6*A:A<1/2?t:A<2/3?e+(t-e)*(2/3-A)*6:e}function y6({hue:e,saturation:t,lightness:A,alpha:r}){e/=360,t/=100,A/=100;let n=0,i=0,s=0;if(!t)n=i=s=A;else{const o=A<.5?A*(1+t):A+t-A*t,a=2*A-o;n=wg(a,o,e+1/3),i=wg(a,o,e),s=wg(a,o,e-1/3)}return{red:Math.round(n*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function dd(e,t){return A=>A>0?t:e}const vg=(e,t,A)=>{const r=e*e,n=A*(t*t-r)+r;return n<0?0:Math.sqrt(n)},C6=[B1,_o,Oa],F6=e=>C6.find(t=>t.test(e));function uv(e){const t=F6(e);if(!t)return!1;let A=t.parse(e);return t===Oa&&(A=y6(A)),A}const cv=(e,t)=>{const A=uv(e),r=uv(t);if(!A||!r)return dd(e,t);const n={...A};return i=>(n.red=vg(A.red,r.red,i),n.green=vg(A.green,r.green,i),n.blue=vg(A.blue,r.blue,i),n.alpha=iA(A.alpha,r.alpha,i),_o.transform(n))},b6=(e,t)=>A=>t(e(A)),Sc=(...e)=>e.reduce(b6),C1=new Set(["none","hidden"]);function x6(e,t){return C1.has(e)?A=>A<=0?e:t:A=>A>=1?t:e}function Q6(e,t){return A=>iA(e,t,A)}function P2(e){return typeof e=="number"?Q6:typeof e=="string"?m2(e)?dd:fr.test(e)?cv:S6:Array.isArray(e)?Hb:typeof e=="object"?fr.test(e)?cv:U6:dd}function Hb(e,t){const A=[...e],r=A.length,n=e.map((i,s)=>P2(i)(i,t[s]));return i=>{for(let s=0;s{for(const i in r)A[i]=r[i](n);return A}}function E6(e,t){var A;const r=[],n={color:0,var:0,number:0};for(let i=0;i{const A=Xs.createTransformer(t),r=pc(e),n=pc(t);return r.indexes.var.length===n.indexes.var.length&&r.indexes.color.length===n.indexes.color.length&&r.indexes.number.length>=n.indexes.number.length?C1.has(e)&&!n.values.length||C1.has(t)&&!r.values.length?x6(e,t):Sc(Hb(E6(r,n),n.values),A):dd(e,t)};function Pb(e,t,A){return typeof e=="number"&&typeof t=="number"&&typeof A=="number"?iA(e,t,A):P2(e)(e,t)}const L6=5;function Db(e,t,A){const r=Math.max(t-L6,0);return cb(A-e(r),t-r)}const fA={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},yg=.001;function I6({duration:e=fA.duration,bounce:t=fA.bounce,velocity:A=fA.velocity,mass:r=fA.mass}){let n,i,s=1-t;s=Zi(fA.minDamping,fA.maxDamping,s),e=Zi(fA.minDuration,fA.maxDuration,zi(e)),s<1?(n=l=>{const c=l*s,d=c*e,p=c-A,h=F1(l,s),y=Math.exp(-d);return yg-p/h*y},i=l=>{const d=l*s*e,p=d*A+A,h=Math.pow(s,2)*Math.pow(l,2)*e,y=Math.exp(-d),C=F1(Math.pow(l,2),s);return(-n(l)+yg>0?-1:1)*((p-h)*y)/C}):(n=l=>{const c=Math.exp(-l*e),d=(l-A)*e+1;return-yg+c*d},i=l=>{const c=Math.exp(-l*e),d=(A-l)*(e*e);return c*d});const o=5/e,a=_6(n,i,o);if(e=Gi(e),isNaN(a))return{stiffness:fA.stiffness,damping:fA.damping,duration:e};{const l=Math.pow(a,2)*r;return{stiffness:l,damping:s*2*Math.sqrt(r*l),duration:e}}}const N6=12;function _6(e,t,A){let r=A;for(let n=1;ne[A]!==void 0)}function H6(e){let t={velocity:fA.velocity,stiffness:fA.stiffness,damping:fA.damping,mass:fA.mass,isResolvedFromDuration:!1,...e};if(!fv(e,T6)&&fv(e,k6))if(e.visualDuration){const A=e.visualDuration,r=2*Math.PI/(A*1.2),n=r*r,i=2*Zi(.05,1,1-(e.bounce||0))*Math.sqrt(n);t={...t,mass:fA.mass,stiffness:n,damping:i}}else{const A=I6(e);t={...t,...A,mass:fA.mass},t.isResolvedFromDuration=!0}return t}function Mb(e=fA.visualDuration,t=fA.bounce){const A=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:n}=A;const i=A.keyframes[0],s=A.keyframes[A.keyframes.length-1],o={done:!1,value:i},{stiffness:a,damping:l,mass:c,duration:d,velocity:p,isResolvedFromDuration:h}=H6({...A,velocity:-zi(A.velocity||0)}),y=p||0,C=l/(2*Math.sqrt(a*c)),U=s-i,B=zi(Math.sqrt(a/c)),v=Math.abs(U)<5;r||(r=v?fA.restSpeed.granular:fA.restSpeed.default),n||(n=v?fA.restDelta.granular:fA.restDelta.default);let F;if(C<1){const k=F1(B,C);F=D=>{const W=Math.exp(-C*B*D);return s-W*((y+C*B*U)/k*Math.sin(k*D)+U*Math.cos(k*D))}}else if(C===1)F=k=>s-Math.exp(-B*k)*(U+(y+B*U)*k);else{const k=B*Math.sqrt(C*C-1);F=D=>{const W=Math.exp(-C*B*D),H=Math.min(k*D,300);return s-W*((y+C*B*U)*Math.sinh(H)+k*U*Math.cosh(H))/k}}const b={calculatedDuration:h&&d||null,next:k=>{const D=F(k);if(h)o.done=k>=d;else{let W=0;C<1&&(W=k===0?Gi(y):Db(F,k,D));const H=Math.abs(W)<=r,N=Math.abs(s-D)<=n;o.done=H&&N}return o.value=o.done?s:D,o},toString:()=>{const k=Math.min(rb(b),p1),D=nb(W=>b.next(k*W).value,k,30);return k+"ms "+D}};return b}function hv({keyframes:e,velocity:t=0,power:A=.8,timeConstant:r=325,bounceDamping:n=10,bounceStiffness:i=500,modifyTarget:s,min:o,max:a,restDelta:l=.5,restSpeed:c}){const d=e[0],p={done:!1,value:d},h=H=>o!==void 0&&Ha,y=H=>o===void 0?a:a===void 0||Math.abs(o-H)-C*Math.exp(-H/r),F=H=>B+v(H),b=H=>{const N=v(H),X=F(H);p.done=Math.abs(N)<=l,p.value=p.done?B:X};let k,D;const W=H=>{h(p.value)&&(k=H,D=Mb({keyframes:[p.value,y(p.value)],velocity:Db(F,H,p.value),damping:n,stiffness:i,restDelta:l,restSpeed:c}))};return W(0),{calculatedDuration:null,next:H=>{let N=!1;return!D&&k===void 0&&(N=!0,b(H),W(H)),k!==void 0&&H>=k?D.next(H-k):(!N&&b(H),p)}}}const P6=Ec(.42,0,1,1),D6=Ec(0,0,.58,1),Ob=Ec(.42,0,.58,1),M6=e=>Array.isArray(e)&&typeof e[0]!="number",O6={linear:Jr,easeIn:P6,easeInOut:Ob,easeOut:D6,circIn:N2,circInOut:vb,circOut:wb,backIn:I2,backInOut:mb,backOut:gb,anticipate:Bb},dv=e=>{if(Q2(e)){PF(e.length===4);const[t,A,r,n]=e;return Ec(t,A,r,n)}else if(typeof e=="string")return O6[e];return e};function R6(e,t,A){const r=[],n=A||Pb,i=e.length-1;for(let s=0;st[0];if(i===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=R6(t,r,n),a=o.length,l=c=>{if(s&&c1)for(;dl(Zi(e[0],e[i-1],c)):l}function j6(e,t){const A=e[e.length-1];for(let r=1;r<=t;r++){const n=fl(0,t,r);e.push(iA(A,1,n))}}function V6(e){const t=[0];return j6(t,e.length-1),t}function G6(e,t){return e.map(A=>A*t)}function z6(e,t){return e.map(()=>t||Ob).splice(0,e.length-1)}function pd({duration:e=300,keyframes:t,times:A,ease:r="easeInOut"}){const n=M6(r)?r.map(dv):dv(r),i={done:!1,value:t[0]},s=G6(A&&A.length===t.length?A:V6(t),e),o=K6(s,t,{ease:Array.isArray(n)?n:z6(t,n)});return{calculatedDuration:e,next:a=>(i.value=o(a),i.done=a>=e,i)}}const W6=e=>{const t=({timestamp:A})=>e(A);return{start:()=>Yt.update(t,!0),stop:()=>qs(t),now:()=>ZA.isProcessing?ZA.timestamp:ci.now()}},q6={decay:hv,inertia:hv,tween:pd,keyframes:pd,spring:Mb},X6=e=>e/100;class D2 extends Tb{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:a}=this.options;a&&a()};const{name:A,motionValue:r,element:n,keyframes:i}=this.options,s=(n==null?void 0:n.KeyframeResolver)||H2,o=(a,l)=>this.onKeyframesResolved(a,l);this.resolver=new s(i,o,A,r,n),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:A="keyframes",repeat:r=0,repeatDelay:n=0,repeatType:i,velocity:s=0}=this.options,o=x2(A)?A:q6[A]||pd;let a,l;o!==pd&&typeof t[0]!="number"&&(a=Sc(X6,Pb(t[0],t[1])),t=[0,100]);const c=o({...this.options,keyframes:t});i==="mirror"&&(l=o({...this.options,keyframes:[...t].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=rb(c));const{calculatedDuration:d}=c,p=d+n,h=p*(r+1)-n;return{generator:c,mirroredGenerator:l,mapPercentToKeyframes:a,calculatedDuration:d,resolvedDuration:p,totalDuration:h}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,A=!1){const{resolved:r}=this;if(!r){const{keyframes:H}=this.options;return{done:!0,value:H[H.length-1]}}const{finalKeyframe:n,generator:i,mirroredGenerator:s,mapPercentToKeyframes:o,keyframes:a,calculatedDuration:l,totalDuration:c,resolvedDuration:d}=r;if(this.startTime===null)return i.next(0);const{delay:p,repeat:h,repeatType:y,repeatDelay:C,onUpdate:U}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),A?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const B=this.currentTime-p*(this.speed>=0?1:-1),v=this.speed>=0?B<0:B>c;this.currentTime=Math.max(B,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let F=this.currentTime,b=i;if(h){const H=Math.min(this.currentTime,c)/d;let N=Math.floor(H),X=H%1;!X&&H>=1&&(X=1),X===1&&N--,N=Math.min(N,h+1),!!(N%2)&&(y==="reverse"?(X=1-X,C&&(X-=C/d)):y==="mirror"&&(b=s)),F=Zi(0,1,X)*d}const k=v?{done:!1,value:a[0]}:b.next(F);o&&(k.value=o(k.value));let{done:D}=k;!v&&l!==null&&(D=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const W=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&D);return W&&n!==void 0&&(k.value=$d(a,this.options,n)),U&&U(k.value),W&&this.finish(),k}get duration(){const{resolved:t}=this;return t?zi(t.calculatedDuration):0}get time(){return zi(this.currentTime)}set time(t){t=Gi(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const A=this.playbackSpeed!==t;this.playbackSpeed=t,A&&(this.time=zi(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=W6,onPlay:A,startTime:r}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),A&&A();const n=this.driver.now();this.holdTime!==null?this.startTime=n-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=n):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const J6=new Set(["opacity","clipPath","filter","transform"]);function Y6(e,t,A,{delay:r=0,duration:n=300,repeat:i=0,repeatType:s="loop",ease:o="easeInOut",times:a}={}){const l={[t]:A};a&&(l.offset=a);const c=sb(o,n);return Array.isArray(c)&&(l.easing=c),e.animate(l,{delay:r,duration:n,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"})}const Z6=u2(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),gd=10,$6=2e4;function eI(e){return x2(e.type)||e.type==="spring"||!ib(e.ease)}function tI(e,t){const A=new D2({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const n=[];let i=0;for(;!r.done&&i<$6;)r=A.sample(i),n.push(r.value),i+=gd;return{times:void 0,keyframes:n,duration:i-gd,ease:"linear"}}const Rb={anticipate:Bb,backInOut:mb,circInOut:vb};function AI(e){return e in Rb}class pv extends Tb{constructor(t){super(t);const{name:A,motionValue:r,element:n,keyframes:i}=this.options;this.resolver=new kb(i,(s,o)=>this.onKeyframesResolved(s,o),A,r,n),this.resolver.scheduleResolve()}initPlayback(t,A){let{duration:r=300,times:n,ease:i,type:s,motionValue:o,name:a,startTime:l}=this.options;if(!o.owner||!o.owner.current)return!1;if(typeof i=="string"&&hd()&&AI(i)&&(i=Rb[i]),eI(this.options)){const{onComplete:d,onUpdate:p,motionValue:h,element:y,...C}=this.options,U=tI(t,C);t=U.keyframes,t.length===1&&(t[1]=t[0]),r=U.duration,n=U.times,i=U.ease,s="keyframes"}const c=Y6(o.owner.current,a,t,{...this.options,duration:r,times:n,ease:i});return c.startTime=l??this.calcStartTime(),this.pendingTimeline?($w(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:d}=this.options;o.set($d(t,this.options,A)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:r,times:n,type:s,ease:i,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:A}=t;return zi(A)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:A}=t;return zi(A.currentTime||0)}set time(t){const{resolved:A}=this;if(!A)return;const{animation:r}=A;r.currentTime=Gi(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:A}=t;return A.playbackRate}set speed(t){const{resolved:A}=this;if(!A)return;const{animation:r}=A;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:A}=t;return A.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:A}=t;return A.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:A}=this;if(!A)return Jr;const{animation:r}=A;$w(r,t)}return Jr}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:A}=t;A.playState==="finished"&&this.updateFinishedPromise(),A.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:A}=t;A.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:A,keyframes:r,duration:n,type:i,ease:s,times:o}=t;if(A.playState==="idle"||A.playState==="finished")return;if(this.time){const{motionValue:l,onUpdate:c,onComplete:d,element:p,...h}=this.options,y=new D2({...h,keyframes:r,duration:n,type:i,ease:s,times:o,isGenerator:!0}),C=Gi(this.time);l.setWithVelocity(y.sample(C-gd).value,y.sample(C).value,gd)}const{onStop:a}=this.options;a&&a(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:A,name:r,repeatDelay:n,repeatType:i,damping:s,type:o}=t;if(!A||!A.owner||!(A.owner.current instanceof HTMLElement))return!1;const{onUpdate:a,transformTemplate:l}=A.owner.getProps();return Z6()&&r&&J6.has(r)&&!a&&!l&&!n&&i!=="mirror"&&s!==0&&o!=="inertia"}}const rI={type:"spring",stiffness:500,damping:25,restSpeed:10},nI=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),iI={type:"keyframes",duration:.8},sI={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},oI=(e,{keyframes:t})=>t.length>2?iI:Jo.has(e)?e.startsWith("scale")?nI(t[1]):rI:sI;function aI({when:e,delay:t,delayChildren:A,staggerChildren:r,staggerDirection:n,repeat:i,repeatType:s,repeatDelay:o,from:a,elapsed:l,...c}){return!!Object.keys(c).length}const M2=(e,t,A,r={},n,i)=>s=>{const o=b2(r,e)||{},a=o.delay||r.delay||0;let{elapsed:l=0}=r;l=l-Gi(a);let c={keyframes:Array.isArray(A)?A:[null,A],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-l,onUpdate:p=>{t.set(p),o.onUpdate&&o.onUpdate(p)},onComplete:()=>{s(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:i?void 0:n};aI(o)||(c={...c,...oI(e,c)}),c.duration&&(c.duration=Gi(c.duration)),c.repeatDelay&&(c.repeatDelay=Gi(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(d=!0)),d&&!i&&t.get()!==void 0){const p=$d(c.keyframes,o);if(p!==void 0)return Yt.update(()=>{c.onUpdate(p),c.onComplete()}),new UL([])}return!i&&pv.supports(c)?new pv(c):new D2(c)};function lI({protectedKeys:e,needsAnimating:t},A){const r=e.hasOwnProperty(A)&&t[A]!==!0;return t[A]=!1,r}function Kb(e,t,{delay:A=0,transitionOverride:r,type:n}={}){var i;let{transition:s=e.getDefaultTransition(),transitionEnd:o,...a}=t;r&&(s=r);const l=[],c=n&&e.animationState&&e.animationState.getState()[n];for(const d in a){const p=e.getValue(d,(i=e.latestValues[d])!==null&&i!==void 0?i:null),h=a[d];if(h===void 0||c&&lI(c,d))continue;const y={delay:A,...b2(s||{},d)};let C=!1;if(window.MotionHandoffAnimation){const B=fb(e);if(B){const v=window.MotionHandoffAnimation(B,d,Yt);v!==null&&(y.startTime=v,C=!0)}}m1(e,d),p.start(M2(d,p,h,e.shouldReduceMotion&&ub.has(d)?{type:!1}:y,e,C));const U=p.animation;U&&l.push(U)}return o&&Promise.all(l).then(()=>{Yt.update(()=>{o&&RL(e,o)})}),l}function b1(e,t,A={}){var r;const n=Zd(e,t,A.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=n||{};A.transitionOverride&&(i=A.transitionOverride);const s=n?()=>Promise.all(Kb(e,n,A)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:p}=i;return uI(e,t,c+l,d,p,A)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,c]=a==="beforeChildren"?[s,o]:[o,s];return l().then(()=>c())}else return Promise.all([s(),o(A.delay)])}function uI(e,t,A=0,r=0,n=1,i){const s=[],o=(e.variantChildren.size-1)*r,a=n===1?(l=0)=>l*r:(l=0)=>o-l*r;return Array.from(e.variantChildren).sort(cI).forEach((l,c)=>{l.notify("AnimationStart",t),s.push(b1(l,t,{...i,delay:A+a(c)}).then(()=>l.notify("AnimationComplete",t)))}),Promise.all(s)}function cI(e,t){return e.sortNodePosition(t)}function fI(e,t,A={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const n=t.map(i=>b1(e,i,A));r=Promise.all(n)}else if(typeof t=="string")r=b1(e,t,A);else{const n=typeof t=="function"?Zd(e,t,A.custom):t;r=Promise.all(Kb(e,n,A))}return r.then(()=>{e.notify("AnimationComplete",t)})}const hI=f2.length;function jb(e){if(!e)return;if(!e.isControllingVariants){const A=e.parent?jb(e.parent)||{}:{};return e.props.initial!==void 0&&(A.initial=e.props.initial),A}const t={};for(let A=0;APromise.all(t.map(({animation:A,options:r})=>fI(e,A,r)))}function mI(e){let t=gI(e),A=gv(),r=!0;const n=a=>(l,c)=>{var d;const p=Zd(e,c,a==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(p){const{transition:h,transitionEnd:y,...C}=p;l={...l,...C,...y}}return l};function i(a){t=a(e)}function s(a){const{props:l}=e,c=jb(e.parent)||{},d=[],p=new Set;let h={},y=1/0;for(let U=0;Uy&&b,N=!1;const X=Array.isArray(F)?F:[F];let L=X.reduce(n(B),{});k===!1&&(L={});const{prevResolvedValues:T={}}=v,V={...T,...L},z=ie=>{H=!0,p.has(ie)&&(N=!0,p.delete(ie)),v.needsAnimating[ie]=!0;const q=e.getValue(ie);q&&(q.liveStyle=!1)};for(const ie in V){const q=L[ie],te=T[ie];if(h.hasOwnProperty(ie))continue;let fe=!1;d1(q)&&d1(te)?fe=!Ab(q,te):fe=q!==te,fe?q!=null?z(ie):p.add(ie):q!==void 0&&p.has(ie)?z(ie):v.protectedKeys[ie]=!0}v.prevProp=F,v.prevResolvedValues=L,v.isActive&&(h={...h,...L}),r&&e.blockInitialAnimation&&(H=!1),H&&(!(D&&W)||N)&&d.push(...X.map(ie=>({animation:ie,options:{type:B}})))}if(p.size){const U={};p.forEach(B=>{const v=e.getBaseTarget(B),F=e.getValue(B);F&&(F.liveStyle=!0),U[B]=v??null}),d.push({animation:U})}let C=!!d.length;return r&&(l.initial===!1||l.initial===l.animate)&&!e.manuallyAnimateOnMount&&(C=!1),r=!1,C?t(d):Promise.resolve()}function o(a,l){var c;if(A[a].isActive===l)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(p=>{var h;return(h=p.animationState)===null||h===void 0?void 0:h.setActive(a,l)}),A[a].isActive=l;const d=s(a);for(const p in A)A[p].protectedKeys={};return d}return{animateChanges:s,setActive:o,setAnimateFunction:i,getState:()=>A,reset:()=>{A=gv(),r=!0}}}function BI(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Ab(t,e):!1}function yo(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function gv(){return{animate:yo(!0),whileInView:yo(),whileHover:yo(),whileTap:yo(),whileDrag:yo(),whileFocus:yo(),exit:yo()}}class to{constructor(t){this.isMounted=!1,this.node=t}update(){}}class wI extends to{constructor(t){super(t),t.animationState||(t.animationState=mI(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Jd(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:A}=this.node.prevProps||{};t!==A&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let vI=0;class yI extends to{constructor(){super(...arguments),this.id=vI++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:A}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const n=this.node.animationState.setActive("exit",!t);A&&!t&&n.then(()=>A(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const CI={animation:{Feature:wI},exit:{Feature:yI}};function gc(e,t,A,r={passive:!0}){return e.addEventListener(t,A,r),()=>e.removeEventListener(t,A)}function Lc(e){return{point:{x:e.pageX,y:e.pageY}}}const FI=e=>t=>U2(t)&&e(t,Lc(t));function Mu(e,t,A,r){return gc(e,t,FI(A),r)}const mv=(e,t)=>Math.abs(e-t);function bI(e,t){const A=mv(e.x,t.x),r=mv(e.y,t.y);return Math.sqrt(A**2+r**2)}class Vb{constructor(t,A,{transformPagePoint:r,contextWindow:n,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=Fg(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,h=bI(d.offset,{x:0,y:0})>=3;if(!p&&!h)return;const{point:y}=d,{timestamp:C}=ZA;this.history.push({...y,timestamp:C});const{onStart:U,onMove:B}=this.handlers;p||(U&&U(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),B&&B(this.lastMoveEvent,d)},this.handlePointerMove=(d,p)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=Cg(p,this.transformPagePoint),Yt.update(this.updatePoint,!0)},this.handlePointerUp=(d,p)=>{this.end();const{onEnd:h,onSessionEnd:y,resumeAnimation:C}=this.handlers;if(this.dragSnapToOrigin&&C&&C(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const U=Fg(d.type==="pointercancel"?this.lastMoveEventInfo:Cg(p,this.transformPagePoint),this.history);this.startEvent&&h&&h(d,U),y&&y(d,U)},!U2(t))return;this.dragSnapToOrigin=i,this.handlers=A,this.transformPagePoint=r,this.contextWindow=n||window;const s=Lc(t),o=Cg(s,this.transformPagePoint),{point:a}=o,{timestamp:l}=ZA;this.history=[{...a,timestamp:l}];const{onSessionStart:c}=A;c&&c(t,Fg(o,this.history)),this.removeListeners=Sc(Mu(this.contextWindow,"pointermove",this.handlePointerMove),Mu(this.contextWindow,"pointerup",this.handlePointerUp),Mu(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),qs(this.updatePoint)}}function Cg(e,t){return t?{point:t(e.point)}:e}function Bv(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Fg({point:e},t){return{point:e,delta:Bv(e,Gb(t)),offset:Bv(e,xI(t)),velocity:QI(t,.1)}}function xI(e){return e[0]}function Gb(e){return e[e.length-1]}function QI(e,t){if(e.length<2)return{x:0,y:0};let A=e.length-1,r=null;const n=Gb(e);for(;A>=0&&(r=e[A],!(n.timestamp-r.timestamp>Gi(t)));)A--;if(!r)return{x:0,y:0};const i=zi(n.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const s={x:(n.x-r.x)/i,y:(n.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}const zb=1e-4,UI=1-zb,EI=1+zb,Wb=.01,SI=0-Wb,LI=0+Wb;function Zr(e){return e.max-e.min}function II(e,t,A){return Math.abs(e-t)<=A}function wv(e,t,A,r=.5){e.origin=r,e.originPoint=iA(t.min,t.max,e.origin),e.scale=Zr(A)/Zr(t),e.translate=iA(A.min,A.max,e.origin)-e.originPoint,(e.scale>=UI&&e.scale<=EI||isNaN(e.scale))&&(e.scale=1),(e.translate>=SI&&e.translate<=LI||isNaN(e.translate))&&(e.translate=0)}function Ou(e,t,A,r){wv(e.x,t.x,A.x,r?r.originX:void 0),wv(e.y,t.y,A.y,r?r.originY:void 0)}function vv(e,t,A){e.min=A.min+t.min,e.max=e.min+Zr(t)}function NI(e,t,A){vv(e.x,t.x,A.x),vv(e.y,t.y,A.y)}function yv(e,t,A){e.min=t.min-A.min,e.max=e.min+Zr(t)}function Ru(e,t,A){yv(e.x,t.x,A.x),yv(e.y,t.y,A.y)}function _I(e,{min:t,max:A},r){return t!==void 0&&eA&&(e=r?iA(A,e,r.max):Math.min(e,A)),e}function Cv(e,t,A){return{min:t!==void 0?e.min+t:void 0,max:A!==void 0?e.max+A-(e.max-e.min):void 0}}function kI(e,{top:t,left:A,bottom:r,right:n}){return{x:Cv(e.x,A,n),y:Cv(e.y,t,r)}}function Fv(e,t){let A=t.min-e.min,r=t.max-e.max;return t.max-t.minr?A=fl(t.min,t.max-r,e.min):r>n&&(A=fl(e.min,e.max-n,t.min)),Zi(0,1,A)}function PI(e,t){const A={};return t.min!==void 0&&(A.min=t.min-e.min),t.max!==void 0&&(A.max=t.max-e.min),A}const x1=.35;function DI(e=x1){return e===!1?e=0:e===!0&&(e=x1),{x:bv(e,"left","right"),y:bv(e,"top","bottom")}}function bv(e,t,A){return{min:xv(e,t),max:xv(e,A)}}function xv(e,t){return typeof e=="number"?e:e[t]||0}const Qv=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ra=()=>({x:Qv(),y:Qv()}),Uv=()=>({min:0,max:0}),vA=()=>({x:Uv(),y:Uv()});function fn(e){return[e("x"),e("y")]}function qb({top:e,left:t,right:A,bottom:r}){return{x:{min:t,max:A},y:{min:e,max:r}}}function MI({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function OI(e,t){if(!t)return e;const A=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:A.y,left:A.x,bottom:r.y,right:r.x}}function bg(e){return e===void 0||e===1}function Q1({scale:e,scaleX:t,scaleY:A}){return!bg(e)||!bg(t)||!bg(A)}function xo(e){return Q1(e)||Xb(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Xb(e){return Ev(e.x)||Ev(e.y)}function Ev(e){return e&&e!=="0%"}function md(e,t,A){const r=e-A,n=t*r;return A+n}function Sv(e,t,A,r,n){return n!==void 0&&(e=md(e,n,r)),md(e,A,r)+t}function U1(e,t=0,A=1,r,n){e.min=Sv(e.min,t,A,r,n),e.max=Sv(e.max,t,A,r,n)}function Jb(e,{x:t,y:A}){U1(e.x,t.translate,t.scale,t.originPoint),U1(e.y,A.translate,A.scale,A.originPoint)}const Lv=.999999999999,Iv=1.0000000000001;function RI(e,t,A,r=!1){const n=A.length;if(!n)return;t.x=t.y=1;let i,s;for(let o=0;oLv&&(t.x=1),t.yLv&&(t.y=1)}function Ka(e,t){e.min=e.min+t,e.max=e.max+t}function Nv(e,t,A,r,n=.5){const i=iA(e.min,e.max,n);U1(e,t,A,i,r)}function ja(e,t){Nv(e.x,t.x,t.scaleX,t.scale,t.originX),Nv(e.y,t.y,t.scaleY,t.scale,t.originY)}function Yb(e,t){return qb(OI(e.getBoundingClientRect(),t))}function KI(e,t,A){const r=Yb(e,A),{scroll:n}=t;return n&&(Ka(r.x,n.offset.x),Ka(r.y,n.offset.y)),r}const Zb=({current:e})=>e?e.ownerDocument.defaultView:null,jI=new WeakMap;class VI{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=vA(),this.visualElement=t}start(t,{snapToCursor:A=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const n=c=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),A&&this.snapToCursor(Lc(c).point)},i=(c,d)=>{const{drag:p,dragPropagation:h,onDragStart:y}=this.getProps();if(p&&!h&&(this.openDragLock&&this.openDragLock(),this.openDragLock=HL(p),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),fn(U=>{let B=this.getAxisMotionValue(U).get()||0;if(ui.test(B)){const{projection:v}=this.visualElement;if(v&&v.layout){const F=v.layout.layoutBox[U];F&&(B=Zr(F)*(parseFloat(B)/100))}}this.originPoint[U]=B}),y&&Yt.postRender(()=>y(c,d)),m1(this.visualElement,"transform");const{animationState:C}=this.visualElement;C&&C.setActive("whileDrag",!0)},s=(c,d)=>{const{dragPropagation:p,dragDirectionLock:h,onDirectionLock:y,onDrag:C}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:U}=d;if(h&&this.currentDirection===null){this.currentDirection=GI(U),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",d.point,U),this.updateAxis("y",d.point,U),this.visualElement.render(),C&&C(c,d)},o=(c,d)=>this.stop(c,d),a=()=>fn(c=>{var d;return this.getAnimationState(c)==="paused"&&((d=this.getAxisMotionValue(c).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new Vb(t,{onSessionStart:n,onStart:i,onMove:s,onSessionEnd:o,resumeAnimation:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:Zb(this.visualElement)})}stop(t,A){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:n}=A;this.startAnimation(n);const{onDragEnd:i}=this.getProps();i&&Yt.postRender(()=>i(t,A))}cancel(){this.isDragging=!1;const{projection:t,animationState:A}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),A&&A.setActive("whileDrag",!1)}updateAxis(t,A,r){const{drag:n}=this.getProps();if(!r||!Pf(t,n,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=_I(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){var t;const{dragConstraints:A,dragElastic:r}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;A&&Ma(A)?this.constraints||(this.constraints=this.resolveRefConstraints()):A&&n?this.constraints=kI(n.layoutBox,A):this.constraints=!1,this.elastic=DI(r),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&fn(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=PI(n.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:A}=this.getProps();if(!t||!Ma(t))return!1;const r=t.current,{projection:n}=this.visualElement;if(!n||!n.layout)return!1;const i=KI(r,n.root,this.visualElement.getTransformPagePoint());let s=TI(n.layout.layoutBox,i);if(A){const o=A(MI(s));this.hasMutatedConstraints=!!o,o&&(s=qb(o))}return s}startAnimation(t){const{drag:A,dragMomentum:r,dragElastic:n,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{},l=fn(c=>{if(!Pf(c,A,this.currentDirection))return;let d=a&&a[c]||{};s&&(d={min:0,max:0});const p=n?200:1e6,h=n?40:1e7,y={type:"inertia",velocity:r?t[c]:0,bounceStiffness:p,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(c,y)});return Promise.all(l).then(o)}startAxisValueAnimation(t,A){const r=this.getAxisMotionValue(t);return m1(this.visualElement,t),r.start(M2(t,r,0,A,this.visualElement,!1))}stopAnimation(){fn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){fn(t=>{var A;return(A=this.getAxisMotionValue(t).animation)===null||A===void 0?void 0:A.pause()})}getAnimationState(t){var A;return(A=this.getAxisMotionValue(t).animation)===null||A===void 0?void 0:A.state}getAxisMotionValue(t){const A=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),n=r[A];return n||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){fn(A=>{const{drag:r}=this.getProps();if(!Pf(A,r,this.currentDirection))return;const{projection:n}=this.visualElement,i=this.getAxisMotionValue(A);if(n&&n.layout){const{min:s,max:o}=n.layout.layoutBox[A];i.set(t[A]-iA(s,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:A}=this.getProps(),{projection:r}=this.visualElement;if(!Ma(A)||!r||!this.constraints)return;this.stopAnimation();const n={x:0,y:0};fn(s=>{const o=this.getAxisMotionValue(s);if(o&&this.constraints!==!1){const a=o.get();n[s]=HI({min:a,max:a},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),fn(s=>{if(!Pf(s,t,null))return;const o=this.getAxisMotionValue(s),{min:a,max:l}=this.constraints[s];o.set(iA(a,l,n[s]))})}addListeners(){if(!this.visualElement.current)return;jI.set(this.visualElement,this);const t=this.visualElement.current,A=Mu(t,"pointerdown",a=>{const{drag:l,dragListener:c=!0}=this.getProps();l&&c&&this.start(a)}),r=()=>{const{dragConstraints:a}=this.getProps();Ma(a)&&a.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,i=n.addEventListener("measure",r);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),Yt.read(r);const s=gc(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",({delta:a,hasLayoutChanged:l})=>{this.isDragging&&l&&(fn(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=a[c].translate,d.set(d.get()+a[c].translate))}),this.visualElement.render())});return()=>{s(),A(),i(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:A=!1,dragDirectionLock:r=!1,dragPropagation:n=!1,dragConstraints:i=!1,dragElastic:s=x1,dragMomentum:o=!0}=t;return{...t,drag:A,dragDirectionLock:r,dragPropagation:n,dragConstraints:i,dragElastic:s,dragMomentum:o}}}function Pf(e,t,A){return(t===!0||t===e)&&(A===null||A===e)}function GI(e,t=10){let A=null;return Math.abs(e.y)>t?A="y":Math.abs(e.x)>t&&(A="x"),A}class zI extends to{constructor(t){super(t),this.removeGroupControls=Jr,this.removeListeners=Jr,this.controls=new VI(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Jr}unmount(){this.removeGroupControls(),this.removeListeners()}}const _v=e=>(t,A)=>{e&&Yt.postRender(()=>e(t,A))};class WI extends to{constructor(){super(...arguments),this.removePointerDownListener=Jr}onPointerDown(t){this.session=new Vb(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Zb(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:A,onPan:r,onPanEnd:n}=this.node.getProps();return{onSessionStart:_v(t),onStart:_v(A),onMove:r,onEnd:(i,s)=>{delete this.session,n&&Yt.postRender(()=>n(i,s))}}}mount(){this.removePointerDownListener=Mu(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Lh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function kv(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const su={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if($e.test(e))e=parseFloat(e);else return e;const A=kv(e,t.target.x),r=kv(e,t.target.y);return`${A}% ${r}%`}},qI={correct:(e,{treeScale:t,projectionDelta:A})=>{const r=e,n=Xs.parse(e);if(n.length>5)return r;const i=Xs.createTransformer(e),s=typeof n[0]!="number"?1:0,o=A.x.scale*t.x,a=A.y.scale*t.y;n[0+s]/=o,n[1+s]/=a;const l=iA(o,a,.5);return typeof n[2+s]=="number"&&(n[2+s]/=l),typeof n[3+s]=="number"&&(n[3+s]/=l),i(n)}};class XI extends Ie.Component{componentDidMount(){const{visualElement:t,layoutGroup:A,switchLayoutGroup:r,layoutId:n}=this.props,{projection:i}=t;pL(JI),i&&(A.group&&A.group.add(i),r&&r.register&&n&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Lh.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:A,visualElement:r,drag:n,isPresent:i}=this.props,s=r.projection;return s&&(s.isPresent=i,n||t.layoutDependency!==A||A===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||Yt.postRender(()=>{const o=s.getStack();(!o||!o.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),d2.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:A,switchLayoutGroup:r}=this.props,{projection:n}=t;n&&(n.scheduleCheckAfterUnmount(),A&&A.group&&A.group.remove(n),r&&r.deregister&&r.deregister(n))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function $b(e){const[t,A]=TF(),r=Ie.useContext(s2);return se.jsx(XI,{...e,layoutGroup:r,switchLayoutGroup:Ie.useContext(jF),isPresent:t,safeToRemove:A})}const JI={borderRadius:{...su,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:su,borderTopRightRadius:su,borderBottomLeftRadius:su,borderBottomRightRadius:su,boxShadow:qI};function YI(e,t,A){const r=pr(e)?e:dc(e);return r.start(M2("",r,t,A)),r.animation}function ZI(e){return e instanceof SVGElement&&e.tagName!=="svg"}const $I=(e,t)=>e.depth-t.depth;class e8{constructor(){this.children=[],this.isDirty=!1}add(t){E2(this.children,t),this.isDirty=!0}remove(t){S2(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort($I),this.isDirty=!1,this.children.forEach(t)}}function t8(e,t){const A=ci.now(),r=({timestamp:n})=>{const i=n-A;i>=t&&(qs(r),e(i-t))};return Yt.read(r,!0),()=>qs(r)}const ex=["TopLeft","TopRight","BottomLeft","BottomRight"],A8=ex.length,Tv=e=>typeof e=="string"?parseFloat(e):e,Hv=e=>typeof e=="number"||$e.test(e);function r8(e,t,A,r,n,i){n?(e.opacity=iA(0,A.opacity!==void 0?A.opacity:1,n8(r)),e.opacityExit=iA(t.opacity!==void 0?t.opacity:1,0,i8(r))):i&&(e.opacity=iA(t.opacity!==void 0?t.opacity:1,A.opacity!==void 0?A.opacity:1,r));for(let s=0;srt?1:A(fl(e,t,r))}function Dv(e,t){e.min=t.min,e.max=t.max}function cn(e,t){Dv(e.x,t.x),Dv(e.y,t.y)}function Mv(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Ov(e,t,A,r,n){return e-=t,e=md(e,1/A,r),n!==void 0&&(e=md(e,1/n,r)),e}function s8(e,t=0,A=1,r=.5,n,i=e,s=e){if(ui.test(t)&&(t=parseFloat(t),t=iA(s.min,s.max,t/100)-s.min),typeof t!="number")return;let o=iA(i.min,i.max,r);e===i&&(o-=t),e.min=Ov(e.min,t,A,o,n),e.max=Ov(e.max,t,A,o,n)}function Rv(e,t,[A,r,n],i,s){s8(e,t[A],t[r],t[n],t.scale,i,s)}const o8=["x","scaleX","originX"],a8=["y","scaleY","originY"];function Kv(e,t,A,r){Rv(e.x,t,o8,A?A.x:void 0,r?r.x:void 0),Rv(e.y,t,a8,A?A.y:void 0,r?r.y:void 0)}function jv(e){return e.translate===0&&e.scale===1}function Ax(e){return jv(e.x)&&jv(e.y)}function Vv(e,t){return e.min===t.min&&e.max===t.max}function l8(e,t){return Vv(e.x,t.x)&&Vv(e.y,t.y)}function Gv(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function rx(e,t){return Gv(e.x,t.x)&&Gv(e.y,t.y)}function zv(e){return Zr(e.x)/Zr(e.y)}function Wv(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class u8{constructor(){this.members=[]}add(t){E2(this.members,t),t.scheduleRender()}remove(t){if(S2(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const A=this.members[this.members.length-1];A&&this.promote(A)}}relegate(t){const A=this.members.findIndex(n=>t===n);if(A===0)return!1;let r;for(let n=A;n>=0;n--){const i=this.members[n];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,A){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,A&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:n}=t.options;n===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:A,resumingFrom:r}=t;A.onExitComplete&&A.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function c8(e,t,A){let r="";const n=e.x.translate/t.x,i=e.y.translate/t.y,s=(A==null?void 0:A.z)||0;if((n||i||s)&&(r=`translate3d(${n}px, ${i}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),A){const{transformPerspective:l,rotate:c,rotateX:d,rotateY:p,skewX:h,skewY:y}=A;l&&(r=`perspective(${l}px) ${r}`),c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),p&&(r+=`rotateY(${p}deg) `),h&&(r+=`skewX(${h}deg) `),y&&(r+=`skewY(${y}deg) `)}const o=e.x.scale*t.x,a=e.y.scale*t.y;return(o!==1||a!==1)&&(r+=`scale(${o}, ${a})`),r||"none"}const Qo={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},yu=typeof window<"u"&&window.MotionDebug!==void 0,xg=["","X","Y","Z"],f8={visibility:"hidden"},qv=1e3;let h8=0;function Qg(e,t,A,r){const{latestValues:n}=t;n[e]&&(A[e]=n[e],t.setStaticValue(e,0),r&&(r[e]=0))}function nx(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const A=fb(t);if(window.MotionHasOptimisedAnimation(A,"transform")){const{layout:n,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(A,"transform",Yt,!(n||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&nx(r)}function ix({attachResizeListener:e,defaultParent:t,measureScroll:A,checkIsScrollRoot:r,resetTransform:n}){return class{constructor(s={},o=t==null?void 0:t()){this.id=h8++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,yu&&(Qo.totalNodes=Qo.resolvedTargetDeltas=Qo.recalculatedProjection=0),this.nodes.forEach(g8),this.nodes.forEach(y8),this.nodes.forEach(C8),this.nodes.forEach(m8),yu&&window.MotionDebug.record(Qo)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=o?o.root||o:this,this.path=o?[...o.path,o]:[],this.parent=o,this.depth=o?o.depth+1:0;for(let a=0;athis.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=t8(p,250),Lh.hasAnimatedSinceResize&&(Lh.hasAnimatedSinceResize=!1,this.nodes.forEach(Jv))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||l)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:p,hasRelativeTargetChanged:h,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const C=this.options.transition||c.getDefaultTransition()||U8,{onLayoutAnimationStart:U,onLayoutAnimationComplete:B}=c.getProps(),v=!this.targetLayout||!rx(this.targetLayout,y)||h,F=!p&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||F||p&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,F);const b={...b2(C,"layout"),onPlay:U,onComplete:B};(c.shouldReduceMotion||this.options.layoutRoot)&&(b.delay=0,b.type=!1),this.startAnimation(b)}else p||Jv(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,qs(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(F8),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&nx(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let a=0;a{const k=b/1e3;Yv(d.x,s.x,k),Yv(d.y,s.y,k),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ru(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),x8(this.relativeTarget,this.relativeTargetOrigin,p,k),F&&l8(this.relativeTarget,F)&&(this.isProjectionDirty=!1),F||(F=vA()),cn(F,this.relativeTarget)),C&&(this.animationValues=c,r8(c,l,this.latestValues,k,v,B)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=k},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(qs(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Yt.update(()=>{Lh.hasAnimatedSinceResize=!0,this.currentAnimation=YI(0,qv,{...s,onUpdate:o=>{this.mixTargetDelta(o),s.onUpdate&&s.onUpdate(o)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(qv),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:o,target:a,layout:l,latestValues:c}=s;if(!(!o||!a||!l)){if(this!==s&&this.layout&&l&&sx(this.options.animationType,this.layout.layoutBox,l.layoutBox)){a=this.target||vA();const d=Zr(this.layout.layoutBox.x);a.x.min=s.target.x.min,a.x.max=a.x.min+d;const p=Zr(this.layout.layoutBox.y);a.y.min=s.target.y.min,a.y.max=a.y.min+p}cn(o,a),ja(o,c),Ou(this.projectionDeltaWithTransform,this.layoutCorrected,o,c)}}registerSharedNode(s,o){this.sharedNodes.has(s)||this.sharedNodes.set(s,new u8),this.sharedNodes.get(s).add(o);const l=o.options.initialPromotionConfig;o.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(o):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:o}=this.options;return o?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:o}=this.options;return o?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:o,preserveFollowOpacity:a}={}){const l=this.getStack();l&&l.promote(this,a),s&&(this.projectionDelta=void 0,this.needsReset=!0),o&&this.setOptions({transition:o})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let o=!1;const{latestValues:a}=s;if((a.z||a.rotate||a.rotateX||a.rotateY||a.rotateZ||a.skewX||a.skewY)&&(o=!0),!o)return;const l={};a.z&&Qg("z",s,l,this.animationValues);for(let c=0;c{var o;return(o=s.currentAnimation)===null||o===void 0?void 0:o.stop()}),this.root.nodes.forEach(Xv),this.root.sharedNodes.clear()}}}function d8(e){e.updateLayout()}function p8(e){var t;const A=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&A&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:n}=e.layout,{animationType:i}=e.options,s=A.source!==e.layout.source;i==="size"?fn(d=>{const p=s?A.measuredBox[d]:A.layoutBox[d],h=Zr(p);p.min=r[d].min,p.max=p.min+h}):sx(i,A.layoutBox,r)&&fn(d=>{const p=s?A.measuredBox[d]:A.layoutBox[d],h=Zr(r[d]);p.max=p.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+h)});const o=Ra();Ou(o,r,A.layoutBox);const a=Ra();s?Ou(a,e.applyTransform(n,!0),A.measuredBox):Ou(a,r,A.layoutBox);const l=!Ax(o);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:p,layout:h}=d;if(p&&h){const y=vA();Ru(y,A.layoutBox,p.layoutBox);const C=vA();Ru(C,r,h.layoutBox),rx(y,C)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=C,e.relativeTargetOrigin=y,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:A,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function g8(e){yu&&Qo.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function m8(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function B8(e){e.clearSnapshot()}function Xv(e){e.clearMeasurements()}function w8(e){e.isLayoutDirty=!1}function v8(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Jv(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function y8(e){e.resolveTargetDelta()}function C8(e){e.calcProjection()}function F8(e){e.resetSkewAndRotation()}function b8(e){e.removeLeadSnapshot()}function Yv(e,t,A){e.translate=iA(t.translate,0,A),e.scale=iA(t.scale,1,A),e.origin=t.origin,e.originPoint=t.originPoint}function Zv(e,t,A,r){e.min=iA(t.min,A.min,r),e.max=iA(t.max,A.max,r)}function x8(e,t,A,r){Zv(e.x,t.x,A.x,r),Zv(e.y,t.y,A.y,r)}function Q8(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const U8={duration:.45,ease:[.4,0,.1,1]},$v=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),e5=$v("applewebkit/")&&!$v("chrome/")?Math.round:Jr;function t5(e){e.min=e5(e.min),e.max=e5(e.max)}function E8(e){t5(e.x),t5(e.y)}function sx(e,t,A){return e==="position"||e==="preserve-aspect"&&!II(zv(t),zv(A),.2)}function S8(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const L8=ix({attachResizeListener:(e,t)=>gc(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ug={current:void 0},ox=ix({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ug.current){const e=new L8({});e.mount(window),e.setOptions({layoutScroll:!0}),Ug.current=e}return Ug.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),I8={pan:{Feature:WI},drag:{Feature:zI,ProjectionNode:ox,MeasureLayout:$b}};function A5(e,t,A){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",A==="Start");const n="onHover"+A,i=r[n];i&&Yt.postRender(()=>i(t,Lc(t)))}class N8 extends to{mount(){const{current:t}=this.node;t&&(this.unmount=IL(t,A=>(A5(this.node,A,"Start"),r=>A5(this.node,r,"End"))))}unmount(){}}class _8 extends to{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Sc(gc(this.node.current,"focus",()=>this.onFocus()),gc(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function r5(e,t,A){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",A==="Start");const n="onTap"+(A==="End"?"":A),i=r[n];i&&Yt.postRender(()=>i(t,Lc(t)))}class k8 extends to{mount(){const{current:t}=this.node;t&&(this.unmount=TL(t,A=>(r5(this.node,A,"Start"),(r,{success:n})=>r5(this.node,r,n?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const E1=new WeakMap,Eg=new WeakMap,T8=e=>{const t=E1.get(e.target);t&&t(e)},H8=e=>{e.forEach(T8)};function P8({root:e,...t}){const A=e||document;Eg.has(A)||Eg.set(A,{});const r=Eg.get(A),n=JSON.stringify(t);return r[n]||(r[n]=new IntersectionObserver(H8,{root:e,...t})),r[n]}function D8(e,t,A){const r=P8(t);return E1.set(e,A),r.observe(e),()=>{E1.delete(e),r.unobserve(e)}}const M8={some:0,all:1};class O8 extends to{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:A,margin:r,amount:n="some",once:i}=t,s={root:A?A.current:void 0,rootMargin:r,threshold:typeof n=="number"?n:M8[n]},o=a=>{const{isIntersecting:l}=a;if(this.isInView===l||(this.isInView=l,i&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),p=l?c:d;p&&p(a)};return D8(this.node.current,s,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:A}=this.node;["amount","margin","root"].some(R8(t,A))&&this.startObserver()}unmount(){}}function R8({viewport:e={}},{viewport:t={}}={}){return A=>e[A]!==t[A]}const K8={inView:{Feature:O8},tap:{Feature:k8},focus:{Feature:_8},hover:{Feature:N8}},j8={layout:{ProjectionNode:ox,MeasureLayout:$b}},S1={current:null},ax={current:!1};function V8(){if(ax.current=!0,!!l2)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>S1.current=e.matches;e.addListener(t),t()}else S1.current=!1}const G8=[..._b,fr,Xs],z8=e=>G8.find(Nb(e)),n5=new WeakMap;function W8(e,t,A){for(const r in t){const n=t[r],i=A[r];if(pr(n))e.addValue(r,n);else if(pr(i))e.addValue(r,dc(n,{owner:e}));else if(i!==n)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(n):s.hasAnimated||s.set(n)}else{const s=e.getStaticValue(r);e.addValue(r,dc(s!==void 0?s:n,{owner:e}))}}for(const r in A)t[r]===void 0&&e.removeValue(r);return t}const i5=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class q8{scrapeMotionValuesFromProps(t,A,r){return{}}constructor({parent:t,props:A,presenceContext:r,reducedMotionConfig:n,blockInitialAnimation:i,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=H2,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=ci.now();this.renderScheduledAtthis.bindToMotionValue(r,A)),ax.current||V8(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:S1.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){n5.delete(this.current),this.projection&&this.projection.unmount(),qs(this.notifyUpdate),qs(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const A=this.features[t];A&&(A.unmount(),A.isMounted=!1)}this.current=null}bindToMotionValue(t,A){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Jo.has(t),n=A.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&Yt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=A.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,A)),this.valueSubscriptions.set(t,()=>{n(),i(),s&&s(),A.owner&&A.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in hl){const A=hl[t];if(!A)continue;const{isEnabled:r,Feature:n}=A;if(!this.features[t]&&n&&r(this.props)&&(this.features[t]=new n(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):vA()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,A){this.latestValues[t]=A}update(t,A){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=A;for(let r=0;rA.variantChildren.delete(t)}addValue(t,A){const r=this.values.get(t);A!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,A),this.values.set(t,A),this.latestValues[t]=A.get())}removeValue(t){this.values.delete(t);const A=this.valueSubscriptions.get(t);A&&(A(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,A){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&A!==void 0&&(r=dc(A===null?void 0:A,{owner:this}),this.addValue(t,r)),r}readValue(t,A){var r;let n=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return n!=null&&(typeof n=="string"&&(Lb(n)||yb(n))?n=parseFloat(n):!z8(n)&&Xs.test(A)&&(n=Ub(t,A)),this.setBaseTarget(t,pr(n)?n.get():n)),pr(n)?n.get():n}setBaseTarget(t,A){this.baseTarget[t]=A}getBaseTarget(t){var A;const{initial:r}=this.props;let n;if(typeof r=="string"||typeof r=="object"){const s=g2(this.props,r,(A=this.presenceContext)===null||A===void 0?void 0:A.custom);s&&(n=s[t])}if(r&&n!==void 0)return n;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!pr(i)?i:this.initialValues[t]!==void 0&&n===void 0?void 0:this.baseTarget[t]}on(t,A){return this.events[t]||(this.events[t]=new L2),this.events[t].add(A)}notify(t,...A){this.events[t]&&this.events[t].notify(...A)}}class lx extends q8{constructor(){super(...arguments),this.KeyframeResolver=kb}sortInstanceNodePosition(t,A){return t.compareDocumentPosition(A)&2?1:-1}getBaseTargetFromProps(t,A){return t.style?t.style[A]:void 0}removeValueFromRenderState(t,{vars:A,style:r}){delete A[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;pr(t)&&(this.childSubscription=t.on("change",A=>{this.current&&(this.current.textContent=`${A}`)}))}}function X8(e){return window.getComputedStyle(e)}class J8 extends lx{constructor(){super(...arguments),this.type="html",this.renderInstance=JF}readValueFromInstance(t,A){if(Jo.has(A)){const r=T2(A);return r&&r.default||0}else{const r=X8(t),n=(WF(A)?r.getPropertyValue(A):r[A])||0;return typeof n=="string"?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:A}){return Yb(t,A)}build(t,A,r){w2(t,A,r.transformTemplate)}scrapeMotionValuesFromProps(t,A,r){return F2(t,A,r)}}class Y8 extends lx{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=vA}getBaseTargetFromProps(t,A){return t[A]}readValueFromInstance(t,A){if(Jo.has(A)){const r=T2(A);return r&&r.default||0}return A=YF.has(A)?A:h2(A),t.getAttribute(A)}scrapeMotionValuesFromProps(t,A,r){return eb(t,A,r)}build(t,A,r){v2(t,A,this.isSVGTag,r.transformTemplate)}renderInstance(t,A,r,n){ZF(t,A,r,n)}mount(t){this.isSVGTag=C2(t.tagName),super.mount(t)}}const Z8=(e,t)=>p2(e)?new Y8(t):new J8(t,{allowProjection:e!==Ie.Fragment}),$8=bL({...CI,...K8,...I8,...j8},Z8),zr=MS($8);/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */var eN={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const tN=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),Yo=(e,t)=>{const A=Ie.forwardRef(({color:r="currentColor",size:n=24,strokeWidth:i=2,absoluteStrokeWidth:s,className:o="",children:a,...l},c)=>Ie.createElement("svg",{ref:c,...eN,width:n,height:n,stroke:r,strokeWidth:s?Number(i)*24/Number(n):i,className:["lucide",`lucide-${tN(e)}`,o].join(" "),...l},[...t.map(([d,p])=>Ie.createElement(d,p)),...Array.isArray(a)?a:[a]]));return A.displayName=`${e}`,A};/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const AN=Yo("Dice5",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["path",{d:"M16 8h.01",key:"cr5u4v"}],["path",{d:"M8 8h.01",key:"1e4136"}],["path",{d:"M8 16h.01",key:"18s6g9"}],["path",{d:"M16 16h.01",key:"1f9h7w"}],["path",{d:"M12 12h.01",key:"1mp3jc"}]]);/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ux=Yo("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const rN=Yo("Pencil",[["path",{d:"M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z",key:"5qss01"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const cx=Yo("Printer",[["polyline",{points:"6 9 6 2 18 2 18 9",key:"1306q4"}],["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"143wyd"}],["rect",{width:"12",height:"8",x:"6",y:"14",key:"5ipwut"}]]);/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const nN=Yo("Sparkles",[["path",{d:"m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z",key:"17u4zn"}],["path",{d:"M5 3v4",key:"bklmnn"}],["path",{d:"M19 17v4",key:"iiml17"}],["path",{d:"M3 5h4",key:"nem4j1"}],["path",{d:"M17 19h4",key:"lbex7p"}]]);/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const iN=Yo("Star",[["polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",key:"8f66p6"}]]);/** * @license lucide-react v0.344.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const L1=Yo("Wand2",[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72Z",key:"1bcowg"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]]);/*! * html2canvas 1.4.1 * Copyright (c) 2022 Niklas von Hertzen * Released under MIT License *//*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var I1=function(e,t){return I1=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,r){A.__proto__=r}||function(A,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(A[n]=r[n])},I1(e,t)};function jn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");I1(e,t);function A(){this.constructor=e}e.prototype=t===null?Object.create(t):(A.prototype=t.prototype,new A)}var N1=function(){return N1=Object.assign||function(t){for(var A,r=1,n=arguments.length;r0&&i[i.length-1])&&(l[0]===6||l[0]===2)){A=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]=55296&&n<=56319&&A>10)+55296,s%1024+56320)),(n+1===A||r.length>16384)&&(i+=String.fromCharCode.apply(String,r),r.length=0)}return i},s5="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",oN=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Mf=0;Mf"u"?[]:new Uint8Array(256);for(var Of=0;Of>4,c[n++]=(s&15)<<4|o>>2,c[n++]=(o&3)<<6|a&63;return l},lN=function(e){for(var t=e.length,A=[],r=0;r>Do,fN=1<>Do,dN=fx+hN,pN=dN,gN=32,mN=pN+gN,BN=65536>>O2,wN=1<=0){if(t<55296||t>56319&&t<=65535)return A=this.index[t>>Do],A=(A<>Do)],A=(A<>O2),A=this.index[A],A+=t>>Do&vN,A=this.index[A],A=(A<"u"?[]:new Uint8Array(256);for(var Rf=0;Rfu5?(n.push(!0),o-=u5):n.push(!1),["normal","auto","loose"].indexOf(t)!==-1&&[8208,8211,12316,12448].indexOf(i)!==-1)return r.push(s),A.push(T1);if(o===UN||o===_1){if(s===0)return r.push(s),A.push(Eo);var a=A[s-1];return TN.indexOf(a)===-1?(r.push(r[s-1]),A.push(a)):(r.push(s),A.push(Eo))}if(r.push(s),o===NN)return A.push(t==="strict"?H1:mc);if(o===gx||o===IN)return A.push(Eo);if(o===_N)return i>=131072&&i<=196605||i>=196608&&i<=262141?A.push(mc):A.push(Eo);A.push(o)}),[r,A,n]},_g=function(e,t,A,r){var n=r[A];if(Array.isArray(e)?e.indexOf(n)!==-1:e===n)for(var i=A;i<=r.length;){i++;var s=r[i];if(s===t)return!0;if(s!==Ns)break}if(n===Ns)for(var i=A;i>0;){i--;var o=r[i];if(Array.isArray(e)?e.indexOf(o)!==-1:e===o)for(var a=A;a<=r.length;){a++;var s=r[a];if(s===t)return!0;if(s!==Ns)break}if(o!==Ns)break}return!1},m5=function(e,t){for(var A=e;A>=0;){var r=t[A];if(r===Ns)A--;else return r}return 0},DN=function(e,t,A,r,n){if(A[r]===0)return vt;var i=r-1;if(Array.isArray(n)&&n[i]===!0)return vt;var s=i-1,o=i+1,a=t[i],l=s>=0?t[s]:0,c=t[o];if(a===hx&&c===dx)return vt;if(K1.indexOf(a)!==-1)return mx;if(K1.indexOf(c)!==-1||Bx.indexOf(c)!==-1)return vt;if(m5(i,t)===px)return Gf;if(R1.get(e[i])===_1||(a===jf||a===Vf)&&R1.get(e[o])===_1||a===c5||c===c5||a===f5||[Ns,k1,Fu].indexOf(a)===-1&&c===f5||[Kf,ou,LN,da,pa].indexOf(c)!==-1||m5(i,t)===au||_g(Ig,au,i,t)||_g([Kf,ou],H1,i,t)||_g(h5,h5,i,t))return vt;if(a===Ns)return Gf;if(a===Ig||c===Ig)return vt;if(c===T1||a===T1)return Gf;if([k1,Fu,H1].indexOf(c)!==-1||a===SN||l===M1&&HN.indexOf(a)!==-1||a===pa&&c===M1||c===d5||_i.indexOf(c)!==-1&&a===Vr||_i.indexOf(a)!==-1&&c===Vr||a===xu&&[mc,jf,Vf].indexOf(c)!==-1||[mc,jf,Vf].indexOf(a)!==-1&&c===bu||_i.indexOf(a)!==-1&&p5.indexOf(c)!==-1||p5.indexOf(a)!==-1&&_i.indexOf(c)!==-1||[xu,bu].indexOf(a)!==-1&&(c===Vr||[au,Fu].indexOf(c)!==-1&&t[o+1]===Vr)||[au,Fu].indexOf(a)!==-1&&c===Vr||a===Vr&&[Vr,pa,da].indexOf(c)!==-1)return vt;if([Vr,pa,da,Kf,ou].indexOf(c)!==-1)for(var d=i;d>=0;){var p=t[d];if(p===Vr)return vt;if([pa,da].indexOf(p)!==-1)d--;else break}if([xu,bu].indexOf(c)!==-1)for(var d=[Kf,ou].indexOf(a)!==-1?s:i;d>=0;){var p=t[d];if(p===Vr)return vt;if([pa,da].indexOf(p)!==-1)d--;else break}if(O1===a&&[O1,Ih,P1,D1].indexOf(c)!==-1||[Ih,P1].indexOf(a)!==-1&&[Ih,Nh].indexOf(c)!==-1||[Nh,D1].indexOf(a)!==-1&&c===Nh||g5.indexOf(a)!==-1&&[d5,bu].indexOf(c)!==-1||g5.indexOf(c)!==-1&&a===xu||_i.indexOf(a)!==-1&&_i.indexOf(c)!==-1||a===da&&_i.indexOf(c)!==-1||_i.concat(Vr).indexOf(a)!==-1&&c===au&&kN.indexOf(e[o])===-1||_i.concat(Vr).indexOf(c)!==-1&&a===ou)return vt;if(a===Ng&&c===Ng){for(var h=A[i],y=1;h>0&&(h--,t[h]===Ng);)y++;if(y%2!==0)return vt}return a===jf&&c===Vf?vt:Gf},MN=function(e,t){t||(t={lineBreak:"normal",wordBreak:"normal"});var A=PN(e,t.lineBreak),r=A[0],n=A[1],i=A[2];(t.wordBreak==="break-all"||t.wordBreak==="break-word")&&(n=n.map(function(o){return[Vr,Eo,gx].indexOf(o)!==-1?mc:o}));var s=t.wordBreak==="keep-all"?i.map(function(o,a){return o&&e[a]>=19968&&e[a]<=40959}):void 0;return[r,n,s]},ON=function(){function e(t,A,r,n){this.codePoints=t,this.required=A===mx,this.start=r,this.end=n}return e.prototype.slice=function(){return yA.apply(void 0,this.codePoints.slice(this.start,this.end))},e}(),RN=function(e,t){var A=tp(e),r=MN(A,t),n=r[0],i=r[1],s=r[2],o=A.length,a=0,l=0;return{next:function(){if(l>=o)return{done:!0,value:null};for(var c=vt;l=wx&&e<=57},y_=function(e){return e>=55296&&e<=57343},ga=function(e){return hr(e)||e>=Cx&&e<=bx||e>=vx&&e<=g_},C_=function(e){return e>=vx&&e<=B_},F_=function(e){return e>=Cx&&e<=v_},b_=function(e){return C_(e)||F_(e)},x_=function(e){return e>=s_},Jf=function(e){return e===Bd||e===VN||e===GN},wd=function(e){return b_(e)||x_(e)||e===XN},C5=function(e){return wd(e)||hr(e)||e===Er},Q_=function(e){return e>=u_&&e<=c_||e===f_||e>=h_&&e<=d_||e===p_},Us=function(e,t){return e!==Ku?!1:t!==Bd},Yf=function(e,t,A){return e===Er?wd(t)||Us(t,A):wd(e)?!0:!!(e===Ku&&Us(e,t))},Tg=function(e,t,A){return e===ko||e===Er?hr(t)?!0:t===Bc&&hr(A):hr(e===Bc?t:e)},U_=function(e){var t=0,A=1;(e[t]===ko||e[t]===Er)&&(e[t]===Er&&(A=-1),t++);for(var r=[];hr(e[t]);)r.push(e[t++]);var n=r.length?parseInt(yA.apply(void 0,r),10):0;e[t]===Bc&&t++;for(var i=[];hr(e[t]);)i.push(e[t++]);var s=i.length,o=s?parseInt(yA.apply(void 0,i),10):0;(e[t]===Fx||e[t]===yx)&&t++;var a=1;(e[t]===ko||e[t]===Er)&&(e[t]===Er&&(a=-1),t++);for(var l=[];hr(e[t]);)l.push(e[t++]);var c=l.length?parseInt(yA.apply(void 0,l),10):0;return A*(n+o*Math.pow(10,-s))*Math.pow(10,a*c)},E_={type:2},S_={type:3},L_={type:4},I_={type:13},N_={type:8},__={type:21},k_={type:9},T_={type:10},H_={type:11},P_={type:12},D_={type:14},Zf={type:23},M_={type:1},O_={type:25},R_={type:24},K_={type:26},j_={type:27},V_={type:28},G_={type:29},z_={type:31},j1={type:32},xx=function(){function e(){this._value=[]}return e.prototype.write=function(t){this._value=this._value.concat(tp(t))},e.prototype.read=function(){for(var t=[],A=this.consumeToken();A!==j1;)t.push(A),A=this.consumeToken();return t},e.prototype.consumeToken=function(){var t=this.consumeCodePoint();switch(t){case zf:return this.consumeStringToken(zf);case zN:var A=this.peekCodePoint(0),r=this.peekCodePoint(1),n=this.peekCodePoint(2);if(C5(A)||Us(r,n)){var i=Yf(A,r,n)?jN:KN,s=this.consumeName();return{type:5,value:s,flags:i}}break;case WN:if(this.peekCodePoint(0)===lu)return this.consumeCodePoint(),I_;break;case Wf:return this.consumeStringToken(Wf);case qf:return E_;case uu:return S_;case kg:if(this.peekCodePoint(0)===lu)return this.consumeCodePoint(),D_;break;case ko:if(Tg(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case o_:return L_;case Er:var o=t,a=this.peekCodePoint(0),l=this.peekCodePoint(1);if(Tg(o,a,l))return this.reconsumeCodePoint(t),this.consumeNumericToken();if(Yf(o,a,l))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();if(a===Er&&l===ZN)return this.consumeCodePoint(),this.consumeCodePoint(),R_;break;case Bc:if(Tg(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case w5:if(this.peekCodePoint(0)===kg)for(this.consumeCodePoint();;){var c=this.consumeCodePoint();if(c===kg&&(c=this.consumeCodePoint(),c===w5))return this.consumeToken();if(c===Ai)return this.consumeToken()}break;case a_:return K_;case l_:return j_;case YN:if(this.peekCodePoint(0)===JN&&this.peekCodePoint(1)===Er&&this.peekCodePoint(2)===Er)return this.consumeCodePoint(),this.consumeCodePoint(),O_;break;case $N:var d=this.peekCodePoint(0),p=this.peekCodePoint(1),h=this.peekCodePoint(2);if(Yf(d,p,h)){var s=this.consumeName();return{type:7,value:s}}break;case e_:return V_;case Ku:if(Us(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();break;case t_:return G_;case A_:if(this.peekCodePoint(0)===lu)return this.consumeCodePoint(),N_;break;case r_:return H_;case n_:return P_;case m_:case w_:var y=this.peekCodePoint(0),C=this.peekCodePoint(1);return y===ko&&(ga(C)||C===Xf)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(t),this.consumeIdentLikeToken();case v5:if(this.peekCodePoint(0)===lu)return this.consumeCodePoint(),k_;if(this.peekCodePoint(0)===v5)return this.consumeCodePoint(),__;break;case i_:if(this.peekCodePoint(0)===lu)return this.consumeCodePoint(),T_;break;case Ai:return j1}return Jf(t)?(this.consumeWhiteSpace(),z_):hr(t)?(this.reconsumeCodePoint(t),this.consumeNumericToken()):wd(t)?(this.reconsumeCodePoint(t),this.consumeIdentLikeToken()):{type:6,value:yA(t)}},e.prototype.consumeCodePoint=function(){var t=this._value.shift();return typeof t>"u"?-1:t},e.prototype.reconsumeCodePoint=function(t){this._value.unshift(t)},e.prototype.peekCodePoint=function(t){return t>=this._value.length?-1:this._value[t]},e.prototype.consumeUnicodeRangeToken=function(){for(var t=[],A=this.consumeCodePoint();ga(A)&&t.length<6;)t.push(A),A=this.consumeCodePoint();for(var r=!1;A===Xf&&t.length<6;)t.push(A),A=this.consumeCodePoint(),r=!0;if(r){var n=parseInt(yA.apply(void 0,t.map(function(a){return a===Xf?wx:a})),16),i=parseInt(yA.apply(void 0,t.map(function(a){return a===Xf?bx:a})),16);return{type:30,start:n,end:i}}var s=parseInt(yA.apply(void 0,t),16);if(this.peekCodePoint(0)===Er&&ga(this.peekCodePoint(1))){this.consumeCodePoint(),A=this.consumeCodePoint();for(var o=[];ga(A)&&o.length<6;)o.push(A),A=this.consumeCodePoint();var i=parseInt(yA.apply(void 0,o),16);return{type:30,start:s,end:i}}else return{type:30,start:s,end:s}},e.prototype.consumeIdentLikeToken=function(){var t=this.consumeName();return t.toLowerCase()==="url"&&this.peekCodePoint(0)===qf?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===qf?(this.consumeCodePoint(),{type:19,value:t}):{type:20,value:t}},e.prototype.consumeUrlToken=function(){var t=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Ai)return{type:22,value:""};var A=this.peekCodePoint(0);if(A===Wf||A===zf){var r=this.consumeStringToken(this.consumeCodePoint());return r.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Ai||this.peekCodePoint(0)===uu)?(this.consumeCodePoint(),{type:22,value:r.value}):(this.consumeBadUrlRemnants(),Zf)}for(;;){var n=this.consumeCodePoint();if(n===Ai||n===uu)return{type:22,value:yA.apply(void 0,t)};if(Jf(n))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Ai||this.peekCodePoint(0)===uu?(this.consumeCodePoint(),{type:22,value:yA.apply(void 0,t)}):(this.consumeBadUrlRemnants(),Zf);if(n===zf||n===Wf||n===qf||Q_(n))return this.consumeBadUrlRemnants(),Zf;if(n===Ku)if(Us(n,this.peekCodePoint(0)))t.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Zf;else t.push(n)}},e.prototype.consumeWhiteSpace=function(){for(;Jf(this.peekCodePoint(0));)this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){for(;;){var t=this.consumeCodePoint();if(t===uu||t===Ai)return;Us(t,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(t){for(var A=5e4,r="";t>0;){var n=Math.min(A,t);r+=yA.apply(void 0,this._value.splice(0,n)),t-=n}return this._value.shift(),r},e.prototype.consumeStringToken=function(t){var A="",r=0;do{var n=this._value[r];if(n===Ai||n===void 0||n===t)return A+=this.consumeStringSlice(r),{type:0,value:A};if(n===Bd)return this._value.splice(0,r),M_;if(n===Ku){var i=this._value[r+1];i!==Ai&&i!==void 0&&(i===Bd?(A+=this.consumeStringSlice(r),r=-1,this._value.shift()):Us(n,i)&&(A+=this.consumeStringSlice(r),A+=yA(this.consumeEscapedCodePoint()),r=-1))}r++}while(!0)},e.prototype.consumeNumber=function(){var t=[],A=Ic,r=this.peekCodePoint(0);for((r===ko||r===Er)&&t.push(this.consumeCodePoint());hr(this.peekCodePoint(0));)t.push(this.consumeCodePoint());r=this.peekCodePoint(0);var n=this.peekCodePoint(1);if(r===Bc&&hr(n))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),A=B5;hr(this.peekCodePoint(0));)t.push(this.consumeCodePoint());r=this.peekCodePoint(0),n=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((r===Fx||r===yx)&&((n===ko||n===Er)&&hr(i)||hr(n)))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),A=B5;hr(this.peekCodePoint(0));)t.push(this.consumeCodePoint());return[U_(t),A]},e.prototype.consumeNumericToken=function(){var t=this.consumeNumber(),A=t[0],r=t[1],n=this.peekCodePoint(0),i=this.peekCodePoint(1),s=this.peekCodePoint(2);if(Yf(n,i,s)){var o=this.consumeName();return{type:15,number:A,flags:r,unit:o}}return n===qN?(this.consumeCodePoint(),{type:16,number:A,flags:r}):{type:17,number:A,flags:r}},e.prototype.consumeEscapedCodePoint=function(){var t=this.consumeCodePoint();if(ga(t)){for(var A=yA(t);ga(this.peekCodePoint(0))&&A.length<6;)A+=yA(this.consumeCodePoint());Jf(this.peekCodePoint(0))&&this.consumeCodePoint();var r=parseInt(A,16);return r===0||y_(r)||r>1114111?y5:r}return t===Ai?y5:t},e.prototype.consumeName=function(){for(var t="";;){var A=this.consumeCodePoint();if(C5(A))t+=yA(A);else if(Us(A,this.peekCodePoint(0)))t+=yA(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(A),t}},e}(),Qx=function(){function e(t){this._tokens=t}return e.create=function(t){var A=new xx;return A.write(t),new e(A.read())},e.parseValue=function(t){return e.create(t).parseComponentValue()},e.parseValues=function(t){return e.create(t).parseComponentValues()},e.prototype.parseComponentValue=function(){for(var t=this.consumeToken();t.type===31;)t=this.consumeToken();if(t.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(t);var A=this.consumeComponentValue();do t=this.consumeToken();while(t.type===31);if(t.type===32)return A;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){for(var t=[];;){var A=this.consumeComponentValue();if(A.type===32)return t;t.push(A),t.push()}},e.prototype.consumeComponentValue=function(){var t=this.consumeToken();switch(t.type){case 11:case 28:case 2:return this.consumeSimpleBlock(t.type);case 19:return this.consumeFunction(t)}return t},e.prototype.consumeSimpleBlock=function(t){for(var A={type:t,values:[]},r=this.consumeToken();;){if(r.type===32||q_(r,t))return A;this.reconsumeToken(r),A.values.push(this.consumeComponentValue()),r=this.consumeToken()}},e.prototype.consumeFunction=function(t){for(var A={name:t.value,values:[],type:18};;){var r=this.consumeToken();if(r.type===32||r.type===3)return A;this.reconsumeToken(r),A.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var t=this._tokens.shift();return typeof t>"u"?j1:t},e.prototype.reconsumeToken=function(t){this._tokens.unshift(t)},e}(),Nc=function(e){return e.type===15},yl=function(e){return e.type===17},Pt=function(e){return e.type===20},W_=function(e){return e.type===0},V1=function(e,t){return Pt(e)&&e.value===t},Ux=function(e){return e.type!==31},pl=function(e){return e.type!==31&&e.type!==4},fi=function(e){var t=[],A=[];return e.forEach(function(r){if(r.type===4){if(A.length===0)throw new Error("Error parsing function args, zero tokens for arg");t.push(A),A=[];return}r.type!==31&&A.push(r)}),A.length&&t.push(A),t},q_=function(e,t){return t===11&&e.type===12||t===28&&e.type===29?!0:t===2&&e.type===3},Js=function(e){return e.type===17||e.type===15},SA=function(e){return e.type===16||Js(e)},Ex=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},er={type:17,number:0,flags:Ic},R2={type:16,number:50,flags:Ic},_s={type:16,number:100,flags:Ic},Qu=function(e,t,A){var r=e[0],n=e[1];return[Vt(r,t),Vt(typeof n<"u"?n:r,A)]},Vt=function(e,t){if(e.type===16)return e.number/100*t;if(Nc(e))switch(e.unit){case"rem":case"em":return 16*e.number;case"px":default:return e.number}return e.number},Sx="deg",Lx="grad",Ix="rad",Nx="turn",Ap={name:"angle",parse:function(e,t){if(t.type===15)switch(t.unit){case Sx:return Math.PI*t.number/180;case Lx:return Math.PI/200*t.number;case Ix:return t.number;case Nx:return Math.PI*2*t.number}throw new Error("Unsupported angle type")}},_x=function(e){return e.type===15&&(e.unit===Sx||e.unit===Lx||e.unit===Ix||e.unit===Nx)},kx=function(e){var t=e.filter(Pt).map(function(A){return A.value}).join(" ");switch(t){case"to bottom right":case"to right bottom":case"left top":case"top left":return[er,er];case"to top":case"bottom":return Bn(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[er,_s];case"to right":case"left":return Bn(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[_s,_s];case"to bottom":case"top":return Bn(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[_s,er];case"to left":case"right":return Bn(270)}return 0},Bn=function(e){return Math.PI*e/180},Vs={name:"color",parse:function(e,t){if(t.type===18){var A=X_[t.name];if(typeof A>"u")throw new Error('Attempting to parse an unsupported color function "'+t.name+'"');return A(e,t.values)}if(t.type===5){if(t.value.length===3){var r=t.value.substring(0,1),n=t.value.substring(1,2),i=t.value.substring(2,3);return ks(parseInt(r+r,16),parseInt(n+n,16),parseInt(i+i,16),1)}if(t.value.length===4){var r=t.value.substring(0,1),n=t.value.substring(1,2),i=t.value.substring(2,3),s=t.value.substring(3,4);return ks(parseInt(r+r,16),parseInt(n+n,16),parseInt(i+i,16),parseInt(s+s,16)/255)}if(t.value.length===6){var r=t.value.substring(0,2),n=t.value.substring(2,4),i=t.value.substring(4,6);return ks(parseInt(r,16),parseInt(n,16),parseInt(i,16),1)}if(t.value.length===8){var r=t.value.substring(0,2),n=t.value.substring(2,4),i=t.value.substring(4,6),s=t.value.substring(6,8);return ks(parseInt(r,16),parseInt(n,16),parseInt(i,16),parseInt(s,16)/255)}}if(t.type===20){var o=Wi[t.value.toUpperCase()];if(typeof o<"u")return o}return Wi.TRANSPARENT}},Gs=function(e){return(255&e)===0},RA=function(e){var t=255&e,A=255&e>>8,r=255&e>>16,n=255&e>>24;return t<255?"rgba("+n+","+r+","+A+","+t/255+")":"rgb("+n+","+r+","+A+")"},ks=function(e,t,A,r){return(e<<24|t<<16|A<<8|Math.round(r*255)<<0)>>>0},F5=function(e,t){if(e.type===17)return e.number;if(e.type===16){var A=t===3?1:255;return t===3?e.number/100*A:Math.round(e.number/100*A)}return 0},b5=function(e,t){var A=t.filter(pl);if(A.length===3){var r=A.map(F5),n=r[0],i=r[1],s=r[2];return ks(n,i,s,1)}if(A.length===4){var o=A.map(F5),n=o[0],i=o[1],s=o[2],a=o[3];return ks(n,i,s,a)}return 0};function Hg(e,t,A){return A<0&&(A+=1),A>=1&&(A-=1),A<1/6?(t-e)*A*6+e:A<1/2?t:A<2/3?(t-e)*6*(2/3-A)+e:e}var x5=function(e,t){var A=t.filter(pl),r=A[0],n=A[1],i=A[2],s=A[3],o=(r.type===17?Bn(r.number):Ap.parse(e,r))/(Math.PI*2),a=SA(n)?n.number/100:0,l=SA(i)?i.number/100:0,c=typeof s<"u"&&SA(s)?Vt(s,1):1;if(a===0)return ks(l*255,l*255,l*255,1);var d=l<=.5?l*(a+1):l+a-l*a,p=l*2-d,h=Hg(p,d,o+1/3),y=Hg(p,d,o),C=Hg(p,d,o-1/3);return ks(h*255,y*255,C*255,c)},X_={hsl:x5,hsla:x5,rgb:b5,rgba:b5},ju=function(e,t){return Vs.parse(e,Qx.create(t).parseComponentValue())},Wi={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},J_={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map(function(A){if(Pt(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Y_={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},rp=function(e,t){var A=Vs.parse(e,t[0]),r=t[1];return r&&SA(r)?{color:A,stop:r}:{color:A,stop:null}},Q5=function(e,t){var A=e[0],r=e[e.length-1];A.stop===null&&(A.stop=er),r.stop===null&&(r.stop=_s);for(var n=[],i=0,s=0;si?n.push(a):n.push(i),i=a}else n.push(null)}for(var l=null,s=0;ss.optimumDistance)?{optimumCorner:o,optimumDistance:c}:s},{optimumDistance:n?1/0:-1/0,optimumCorner:null}).optimumCorner},ek=function(e,t,A,r,n){var i=0,s=0;switch(e.size){case 0:e.shape===0?i=s=Math.min(Math.abs(t),Math.abs(t-r),Math.abs(A),Math.abs(A-n)):e.shape===1&&(i=Math.min(Math.abs(t),Math.abs(t-r)),s=Math.min(Math.abs(A),Math.abs(A-n)));break;case 2:if(e.shape===0)i=s=Math.min(kn(t,A),kn(t,A-n),kn(t-r,A),kn(t-r,A-n));else if(e.shape===1){var o=Math.min(Math.abs(A),Math.abs(A-n))/Math.min(Math.abs(t),Math.abs(t-r)),a=U5(r,n,t,A,!0),l=a[0],c=a[1];i=kn(l-t,(c-A)/o),s=o*i}break;case 1:e.shape===0?i=s=Math.max(Math.abs(t),Math.abs(t-r),Math.abs(A),Math.abs(A-n)):e.shape===1&&(i=Math.max(Math.abs(t),Math.abs(t-r)),s=Math.max(Math.abs(A),Math.abs(A-n)));break;case 3:if(e.shape===0)i=s=Math.max(kn(t,A),kn(t,A-n),kn(t-r,A),kn(t-r,A-n));else if(e.shape===1){var o=Math.max(Math.abs(A),Math.abs(A-n))/Math.max(Math.abs(t),Math.abs(t-r)),d=U5(r,n,t,A,!1),l=d[0],c=d[1];i=kn(l-t,(c-A)/o),s=o*i}break}return Array.isArray(e.size)&&(i=Vt(e.size[0],r),s=e.size.length===2?Vt(e.size[1],n):i),[i,s]},tk=function(e,t){var A=Bn(180),r=[];return fi(t).forEach(function(n,i){if(i===0){var s=n[0];if(s.type===20&&s.value==="to"){A=kx(n);return}else if(_x(s)){A=Ap.parse(e,s);return}}var o=rp(e,n);r.push(o)}),{angle:A,stops:r,type:1}},$f=function(e,t){var A=Bn(180),r=[];return fi(t).forEach(function(n,i){if(i===0){var s=n[0];if(s.type===20&&["top","left","right","bottom"].indexOf(s.value)!==-1){A=kx(n);return}else if(_x(s)){A=(Ap.parse(e,s)+Bn(270))%Bn(360);return}}var o=rp(e,n);r.push(o)}),{angle:A,stops:r,type:1}},Ak=function(e,t){var A=Bn(180),r=[],n=1,i=0,s=3,o=[];return fi(t).forEach(function(a,l){var c=a[0];if(l===0){if(Pt(c)&&c.value==="linear"){n=1;return}else if(Pt(c)&&c.value==="radial"){n=2;return}}if(c.type===18){if(c.name==="from"){var d=Vs.parse(e,c.values[0]);r.push({stop:er,color:d})}else if(c.name==="to"){var d=Vs.parse(e,c.values[0]);r.push({stop:_s,color:d})}else if(c.name==="color-stop"){var p=c.values.filter(pl);if(p.length===2){var d=Vs.parse(e,p[1]),h=p[0];yl(h)&&r.push({stop:{type:16,number:h.number*100,flags:h.flags},color:d})}}}}),n===1?{angle:(A+Bn(180))%Bn(360),stops:r,type:n}:{size:s,shape:i,stops:r,position:o,type:n}},Tx="closest-side",Hx="farthest-side",Px="closest-corner",Dx="farthest-corner",Mx="circle",Ox="ellipse",Rx="cover",Kx="contain",rk=function(e,t){var A=0,r=3,n=[],i=[];return fi(t).forEach(function(s,o){var a=!0;if(o===0){var l=!1;a=s.reduce(function(d,p){if(l)if(Pt(p))switch(p.value){case"center":return i.push(R2),d;case"top":case"left":return i.push(er),d;case"right":case"bottom":return i.push(_s),d}else(SA(p)||Js(p))&&i.push(p);else if(Pt(p))switch(p.value){case Mx:return A=0,!1;case Ox:return A=1,!1;case"at":return l=!0,!1;case Tx:return r=0,!1;case Rx:case Hx:return r=1,!1;case Kx:case Px:return r=2,!1;case Dx:return r=3,!1}else if(Js(p)||SA(p))return Array.isArray(r)||(r=[]),r.push(p),!1;return d},a)}if(a){var c=rp(e,s);n.push(c)}}),{size:r,shape:A,stops:n,position:i,type:2}},eh=function(e,t){var A=0,r=3,n=[],i=[];return fi(t).forEach(function(s,o){var a=!0;if(o===0?a=s.reduce(function(c,d){if(Pt(d))switch(d.value){case"center":return i.push(R2),!1;case"top":case"left":return i.push(er),!1;case"right":case"bottom":return i.push(_s),!1}else if(SA(d)||Js(d))return i.push(d),!1;return c},a):o===1&&(a=s.reduce(function(c,d){if(Pt(d))switch(d.value){case Mx:return A=0,!1;case Ox:return A=1,!1;case Kx:case Tx:return r=0,!1;case Hx:return r=1,!1;case Px:return r=2,!1;case Rx:case Dx:return r=3,!1}else if(Js(d)||SA(d))return Array.isArray(r)||(r=[]),r.push(d),!1;return c},a)),a){var l=rp(e,s);n.push(l)}}),{size:r,shape:A,stops:n,position:i,type:2}},nk=function(e){return e.type===1},ik=function(e){return e.type===2},K2={name:"image",parse:function(e,t){if(t.type===22){var A={url:t.value,type:0};return e.cache.addImage(t.value),A}if(t.type===18){var r=jx[t.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported image function "'+t.name+'"');return r(e,t.values)}throw new Error("Unsupported image type "+t.type)}};function sk(e){return!(e.type===20&&e.value==="none")&&(e.type!==18||!!jx[e.name])}var jx={"linear-gradient":tk,"-moz-linear-gradient":$f,"-ms-linear-gradient":$f,"-o-linear-gradient":$f,"-webkit-linear-gradient":$f,"radial-gradient":rk,"-moz-radial-gradient":eh,"-ms-radial-gradient":eh,"-o-radial-gradient":eh,"-webkit-radial-gradient":eh,"-webkit-gradient":Ak},ok={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(t.length===0)return[];var A=t[0];return A.type===20&&A.value==="none"?[]:t.filter(function(r){return pl(r)&&sk(r)}).map(function(r){return K2.parse(e,r)})}},ak={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map(function(A){if(Pt(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},lk={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(e,t){return fi(t).map(function(A){return A.filter(SA)}).map(Ex)}},uk={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(e,t){return fi(t).map(function(A){return A.filter(Pt).map(function(r){return r.value}).join(" ")}).map(ck)}},ck=function(e){switch(e){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},$a;(function(e){e.AUTO="auto",e.CONTAIN="contain",e.COVER="cover"})($a||($a={}));var fk={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(e,t){return fi(t).map(function(A){return A.filter(hk)})}},hk=function(e){return Pt(e)||SA(e)},np=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},dk=np("top"),pk=np("right"),gk=np("bottom"),mk=np("left"),ip=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:1,parse:function(t,A){return Ex(A.filter(SA))}}},Bk=ip("top-left"),wk=ip("top-right"),vk=ip("bottom-right"),yk=ip("bottom-left"),sp=function(e){return{name:"border-"+e+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(t,A){switch(A){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},Ck=sp("top"),Fk=sp("right"),bk=sp("bottom"),xk=sp("left"),op=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:0,prefix:!1,parse:function(t,A){return Nc(A)?A.number:0}}},Qk=op("top"),Uk=op("right"),Ek=op("bottom"),Sk=op("left"),Lk={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Ik={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(e,t){switch(t){case"rtl":return 1;case"ltr":default:return 0}}},Nk={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(e,t){return t.filter(Pt).reduce(function(A,r){return A|_k(r.value)},0)}},_k=function(e){switch(e){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},kk={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Tk={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(e,t){return t.type===20&&t.value==="normal"?0:t.type===17||t.type===15?t.number:0}},vd;(function(e){e.NORMAL="normal",e.STRICT="strict"})(vd||(vd={}));var Hk={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"strict":return vd.STRICT;case"normal":default:return vd.NORMAL}}},Pk={name:"line-height",initialValue:"normal",prefix:!1,type:4},E5=function(e,t){return Pt(e)&&e.value==="normal"?1.2*t:e.type===17?t*e.number:SA(e)?Vt(e,t):t},Dk={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(e,t){return t.type===20&&t.value==="none"?null:K2.parse(e,t)}},Mk={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(e,t){switch(t){case"inside":return 0;case"outside":default:return 1}}},G1={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},ap=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:4}},Ok=ap("top"),Rk=ap("right"),Kk=ap("bottom"),jk=ap("left"),Vk={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(e,t){return t.filter(Pt).map(function(A){switch(A.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},Gk={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"break-word":return"break-word";case"normal":default:return"normal"}}},lp=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},zk=lp("top"),Wk=lp("right"),qk=lp("bottom"),Xk=lp("left"),Jk={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(e,t){switch(t){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},Yk={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(e,t){switch(t){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Zk={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return t.length===1&&V1(t[0],"none")?[]:fi(t).map(function(A){for(var r={color:Wi.TRANSPARENT,offsetX:er,offsetY:er,blur:er},n=0,i=0;i"u")throw new Error('Attempting to parse an unsupported transform function "'+t.name+'"');return A(t.values)}return null}},tT=function(e){var t=e.filter(function(A){return A.type===17}).map(function(A){return A.number});return t.length===6?t:null},AT=function(e){var t=e.filter(function(a){return a.type===17}).map(function(a){return a.number}),A=t[0],r=t[1];t[2],t[3];var n=t[4],i=t[5];t[6],t[7],t[8],t[9],t[10],t[11];var s=t[12],o=t[13];return t[14],t[15],t.length===16?[A,r,n,i,s,o]:null},rT={matrix:tT,matrix3d:AT},S5={type:16,number:50,flags:Ic},nT=[S5,S5],iT={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(e,t){var A=t.filter(SA);return A.length!==2?nT:[A[0],A[1]]}},sT={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},Vu;(function(e){e.NORMAL="normal",e.BREAK_ALL="break-all",e.KEEP_ALL="keep-all"})(Vu||(Vu={}));var oT={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"break-all":return Vu.BREAK_ALL;case"keep-all":return Vu.KEEP_ALL;case"normal":default:return Vu.NORMAL}}},aT={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(e,t){if(t.type===20)return{auto:!0,order:0};if(yl(t))return{auto:!1,order:t.number};throw new Error("Invalid z-index number parsed")}},Vx={name:"time",parse:function(e,t){if(t.type===15)switch(t.unit.toLowerCase()){case"s":return 1e3*t.number;case"ms":return t.number}throw new Error("Unsupported time type")}},lT={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(e,t){return yl(t)?t.number:1}},uT={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},cT={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(e,t){return t.filter(Pt).map(function(A){switch(A.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(A){return A!==0})}},fT={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(e,t){var A=[],r=[];return t.forEach(function(n){switch(n.type){case 20:case 0:A.push(n.value);break;case 17:A.push(n.number.toString());break;case 4:r.push(A.join(" ")),A.length=0;break}}),A.length&&r.push(A.join(" ")),r.map(function(n){return n.indexOf(" ")===-1?n:"'"+n+"'"})}},hT={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},dT={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(e,t){if(yl(t))return t.number;if(Pt(t))switch(t.value){case"bold":return 700;case"normal":default:return 400}return 400}},pT={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return t.filter(Pt).map(function(A){return A.value})}},gT={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},DA=function(e,t){return(e&t)!==0},mT={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(t.length===0)return[];var A=t[0];return A.type===20&&A.value==="none"?[]:t}},BT={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(t.length===0)return null;var A=t[0];if(A.type===20&&A.value==="none")return null;for(var r=[],n=t.filter(Ux),i=0;i1?1:0],this.overflowWrap=Ne(t,Gk,A.overflowWrap),this.paddingTop=Ne(t,zk,A.paddingTop),this.paddingRight=Ne(t,Wk,A.paddingRight),this.paddingBottom=Ne(t,qk,A.paddingBottom),this.paddingLeft=Ne(t,Xk,A.paddingLeft),this.paintOrder=Ne(t,FT,A.paintOrder),this.position=Ne(t,Yk,A.position),this.textAlign=Ne(t,Jk,A.textAlign),this.textDecorationColor=Ne(t,uT,(r=A.textDecorationColor)!==null&&r!==void 0?r:A.color),this.textDecorationLine=Ne(t,cT,(n=A.textDecorationLine)!==null&&n!==void 0?n:A.textDecoration),this.textShadow=Ne(t,Zk,A.textShadow),this.textTransform=Ne(t,$k,A.textTransform),this.transform=Ne(t,eT,A.transform),this.transformOrigin=Ne(t,iT,A.transformOrigin),this.visibility=Ne(t,sT,A.visibility),this.webkitTextStrokeColor=Ne(t,bT,A.webkitTextStrokeColor),this.webkitTextStrokeWidth=Ne(t,xT,A.webkitTextStrokeWidth),this.wordBreak=Ne(t,oT,A.wordBreak),this.zIndex=Ne(t,aT,A.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},e.prototype.isTransparent=function(){return Gs(this.backgroundColor)},e.prototype.isTransformed=function(){return this.transform!==null},e.prototype.isPositioned=function(){return this.position!==0},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return this.float!==0},e.prototype.isInlineLevel=function(){return DA(this.display,4)||DA(this.display,33554432)||DA(this.display,268435456)||DA(this.display,536870912)||DA(this.display,67108864)||DA(this.display,134217728)},e}(),UT=function(){function e(t,A){this.content=Ne(t,mT,A.content),this.quotes=Ne(t,yT,A.quotes)}return e}(),I5=function(){function e(t,A){this.counterIncrement=Ne(t,BT,A.counterIncrement),this.counterReset=Ne(t,wT,A.counterReset)}return e}(),Ne=function(e,t,A){var r=new xx,n=A!==null&&typeof A<"u"?A.toString():t.initialValue;r.write(n);var i=new Qx(r.read());switch(t.type){case 2:var s=i.parseComponentValue();return t.parse(e,Pt(s)?s.value:t.initialValue);case 0:return t.parse(e,i.parseComponentValue());case 1:return t.parse(e,i.parseComponentValues());case 4:return i.parseComponentValue();case 3:switch(t.format){case"angle":return Ap.parse(e,i.parseComponentValue());case"color":return Vs.parse(e,i.parseComponentValue());case"image":return K2.parse(e,i.parseComponentValue());case"length":var o=i.parseComponentValue();return Js(o)?o:er;case"length-percentage":var a=i.parseComponentValue();return SA(a)?a:er;case"time":return Vx.parse(e,i.parseComponentValue())}break}},ET="data-html2canvas-debug",ST=function(e){var t=e.getAttribute(ET);switch(t){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},z1=function(e,t){var A=ST(e);return A===1||t===A},hi=function(){function e(t,A){if(this.context=t,this.textNodes=[],this.elements=[],this.flags=0,z1(A,3))debugger;this.styles=new QT(t,window.getComputedStyle(A,null)),X1(A)&&(this.styles.animationDuration.some(function(r){return r>0})&&(A.style.animationDuration="0s"),this.styles.transform!==null&&(A.style.transform="none")),this.bounds=ep(this.context,A),z1(A,4)&&(this.flags|=16)}return e}(),LT="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BT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ACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAA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A4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",N5="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Uu=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var th=0;th>4,c[n++]=(s&15)<<4|o>>2,c[n++]=(o&3)<<6|a&63;return l},NT=function(e){for(var t=e.length,A=[],r=0;r>Mo,TT=1<>Mo,PT=Gx+HT,DT=PT,MT=32,OT=DT+MT,RT=65536>>j2,KT=1<=0){if(t<55296||t>56319&&t<=65535)return A=this.index[t>>Mo],A=(A<>Mo)],A=(A<>j2),A=this.index[A],A+=t>>Mo&jT,A=this.index[A],A=(A<"u"?[]:new Uint8Array(256);for(var Ah=0;Ah=55296&&n<=56319&&A>10)+55296,s%1024+56320)),(n+1===A||r.length>16384)&&(i+=String.fromCharCode.apply(String,r),r.length=0)}return i},ZT=GT(LT),hn="×",Vg="÷",$T=function(e){return ZT.get(e)},eH=function(e,t,A){var r=A-2,n=t[r],i=t[A-1],s=t[A];if(i===Mg&&s===Og)return hn;if(i===Mg||i===Og||i===T5||s===Mg||s===Og||s===T5)return Vg;if(i===P5&&[P5,Rg,D5,M5].indexOf(s)!==-1||(i===D5||i===Rg)&&(s===Rg||s===Kg)||(i===M5||i===Kg)&&s===Kg||s===O5||s===H5||s===XT||i===qT)return hn;if(i===O5&&s===R5){for(;n===H5;)n=t[--r];if(n===R5)return hn}if(i===jg&&s===jg){for(var o=0;n===jg;)o++,n=t[--r];if(o%2===0)return hn}return Vg},tH=function(e){var t=JT(e),A=t.length,r=0,n=0,i=t.map($T);return{next:function(){if(r>=A)return{done:!0,value:null};for(var s=hn;rs.x||c.y>s.y;return s=c,l===0?!0:d});return e.body.removeChild(t),o},iH=function(){return typeof new Image().crossOrigin<"u"},sH=function(){return typeof new XMLHttpRequest().responseType=="string"},oH=function(e){var t=new Image,A=e.createElement("canvas"),r=A.getContext("2d");if(!r)return!1;t.src="data:image/svg+xml,";try{r.drawImage(t,0,0),A.toDataURL()}catch{return!1}return!0},K5=function(e){return e[0]===0&&e[1]===255&&e[2]===0&&e[3]===255},aH=function(e){var t=e.createElement("canvas"),A=100;t.width=A,t.height=A;var r=t.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,A,A);var n=new Image,i=t.toDataURL();n.src=i;var s=W1(A,A,0,0,n);return r.fillStyle="red",r.fillRect(0,0,A,A),j5(s).then(function(o){r.drawImage(o,0,0);var a=r.getImageData(0,0,A,A).data;r.fillStyle="red",r.fillRect(0,0,A,A);var l=e.createElement("div");return l.style.backgroundImage="url("+i+")",l.style.height=A+"px",K5(a)?j5(W1(A,A,0,0,l)):Promise.reject(!1)}).then(function(o){return r.drawImage(o,0,0),K5(r.getImageData(0,0,A,A).data)}).catch(function(){return!1})},W1=function(e,t,A,r,n){var i="http://www.w3.org/2000/svg",s=document.createElementNS(i,"svg"),o=document.createElementNS(i,"foreignObject");return s.setAttributeNS(null,"width",e.toString()),s.setAttributeNS(null,"height",t.toString()),o.setAttributeNS(null,"width","100%"),o.setAttributeNS(null,"height","100%"),o.setAttributeNS(null,"x",A.toString()),o.setAttributeNS(null,"y",r.toString()),o.setAttributeNS(null,"externalResourcesRequired","true"),s.appendChild(o),o.appendChild(n),s},j5=function(e){return new Promise(function(t,A){var r=new Image;r.onload=function(){return t(r)},r.onerror=A,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(e))})},$A={get SUPPORT_RANGE_BOUNDS(){var e=rH(document);return Object.defineProperty($A,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_WORD_BREAKING(){var e=$A.SUPPORT_RANGE_BOUNDS&&nH(document);return Object.defineProperty($A,"SUPPORT_WORD_BREAKING",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=oH(document);return Object.defineProperty($A,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e=typeof Array.from=="function"&&typeof window.fetch=="function"?aH(document):Promise.resolve(!1);return Object.defineProperty($A,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=iH();return Object.defineProperty($A,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e=sH();return Object.defineProperty($A,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty($A,"SUPPORT_CORS_XHR",{value:e}),e},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var e=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty($A,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:e}),e}},Gu=function(){function e(t,A){this.text=t,this.bounds=A}return e}(),lH=function(e,t,A,r){var n=fH(t,A),i=[],s=0;return n.forEach(function(o){if(A.textDecorationLine.length||o.trim().length>0)if($A.SUPPORT_RANGE_BOUNDS){var a=V5(r,s,o.length).getClientRects();if(a.length>1){var l=V2(o),c=0;l.forEach(function(p){i.push(new Gu(p,$i.fromDOMRectList(e,V5(r,c+s,p.length).getClientRects()))),c+=p.length})}else i.push(new Gu(o,$i.fromDOMRectList(e,a)))}else{var d=r.splitText(o.length);i.push(new Gu(o,uH(e,r))),r=d}else $A.SUPPORT_RANGE_BOUNDS||(r=r.splitText(o.length));s+=o.length}),i},uH=function(e,t){var A=t.ownerDocument;if(A){var r=A.createElement("html2canvaswrapper");r.appendChild(t.cloneNode(!0));var n=t.parentNode;if(n){n.replaceChild(r,t);var i=ep(e,r);return r.firstChild&&n.replaceChild(r.firstChild,r),i}}return $i.EMPTY},V5=function(e,t,A){var r=e.ownerDocument;if(!r)throw new Error("Node has no owner document");var n=r.createRange();return n.setStart(e,t),n.setEnd(e,t+A),n},V2=function(e){if($A.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(t.segment(e)).map(function(A){return A.segment})}return AH(e)},cH=function(e,t){if($A.SUPPORT_NATIVE_TEXT_SEGMENTATION){var A=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(A.segment(e)).map(function(r){return r.segment})}return dH(e,t)},fH=function(e,t){return t.letterSpacing!==0?V2(e):cH(e,t)},hH=[32,160,4961,65792,65793,4153,4241],dH=function(e,t){for(var A=RN(e,{lineBreak:t.lineBreak,wordBreak:t.overflowWrap==="break-word"?"break-word":t.wordBreak}),r=[],n,i=function(){if(n.value){var s=n.value.slice(),o=tp(s),a="";o.forEach(function(l){hH.indexOf(l)===-1?a+=yA(l):(a.length&&r.push(a),r.push(yA(l)),a="")}),a.length&&r.push(a)}};!(n=A.next()).done;)i();return r},pH=function(){function e(t,A,r){this.text=gH(A.data,r.textTransform),this.textBounds=lH(t,this.text,r,A)}return e}(),gH=function(e,t){switch(t){case 1:return e.toLowerCase();case 3:return e.replace(mH,BH);case 2:return e.toUpperCase();default:return e}},mH=/(^|\s|:|-|\(|\))([a-z])/g,BH=function(e,t,A){return e.length>0?t+A.toUpperCase():e},zx=function(e){jn(t,e);function t(A,r){var n=e.call(this,A,r)||this;return n.src=r.currentSrc||r.src,n.intrinsicWidth=r.naturalWidth,n.intrinsicHeight=r.naturalHeight,n.context.cache.addImage(n.src),n}return t}(hi),Wx=function(e){jn(t,e);function t(A,r){var n=e.call(this,A,r)||this;return n.canvas=r,n.intrinsicWidth=r.width,n.intrinsicHeight=r.height,n}return t}(hi),qx=function(e){jn(t,e);function t(A,r){var n=e.call(this,A,r)||this,i=new XMLSerializer,s=ep(A,r);return r.setAttribute("width",s.width+"px"),r.setAttribute("height",s.height+"px"),n.svg="data:image/svg+xml,"+encodeURIComponent(i.serializeToString(r)),n.intrinsicWidth=r.width.baseVal.value,n.intrinsicHeight=r.height.baseVal.value,n.context.cache.addImage(n.svg),n}return t}(hi),Xx=function(e){jn(t,e);function t(A,r){var n=e.call(this,A,r)||this;return n.value=r.value,n}return t}(hi),q1=function(e){jn(t,e);function t(A,r){var n=e.call(this,A,r)||this;return n.start=r.start,n.reversed=typeof r.reversed=="boolean"&&r.reversed===!0,n}return t}(hi),wH=[{type:15,flags:0,unit:"px",number:3}],vH=[{type:16,flags:0,number:50}],yH=function(e){return e.width>e.height?new $i(e.left+(e.width-e.height)/2,e.top,e.height,e.height):e.width0)A.textNodes.push(new pH(e,n,A.styles));else if(Va(n))if(iQ(n)&&n.assignedNodes)n.assignedNodes().forEach(function(o){return _h(e,o,A,r)});else{var s=$x(e,n);s.styles.isVisible()&&(xH(n,s,r)?s.flags|=4:QH(s.styles)&&(s.flags|=2),bH.indexOf(n.tagName)!==-1&&(s.flags|=8),A.elements.push(s),n.slot,n.shadowRoot?_h(e,n.shadowRoot,s,r):!Fd(n)&&!AQ(n)&&!bd(n)&&_h(e,n,s,r))}},$x=function(e,t){return J1(t)?new zx(e,t):rQ(t)?new Wx(e,t):AQ(t)?new qx(e,t):UH(t)?new Xx(e,t):EH(t)?new q1(e,t):SH(t)?new G2(e,t):bd(t)?new Jx(e,t):Fd(t)?new Yx(e,t):nQ(t)?new Zx(e,t):new hi(e,t)},eQ=function(e,t){var A=$x(e,t);return A.flags|=4,_h(e,t,A,A),A},xH=function(e,t,A){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||z2(e)&&A.styles.isTransparent()},QH=function(e){return e.isPositioned()||e.isFloating()},tQ=function(e){return e.nodeType===Node.TEXT_NODE},Va=function(e){return e.nodeType===Node.ELEMENT_NODE},X1=function(e){return Va(e)&&typeof e.style<"u"&&!kh(e)},kh=function(e){return typeof e.className=="object"},UH=function(e){return e.tagName==="LI"},EH=function(e){return e.tagName==="OL"},SH=function(e){return e.tagName==="INPUT"},LH=function(e){return e.tagName==="HTML"},AQ=function(e){return e.tagName==="svg"},z2=function(e){return e.tagName==="BODY"},rQ=function(e){return e.tagName==="CANVAS"},z5=function(e){return e.tagName==="VIDEO"},J1=function(e){return e.tagName==="IMG"},nQ=function(e){return e.tagName==="IFRAME"},W5=function(e){return e.tagName==="STYLE"},IH=function(e){return e.tagName==="SCRIPT"},Fd=function(e){return e.tagName==="TEXTAREA"},bd=function(e){return e.tagName==="SELECT"},iQ=function(e){return e.tagName==="SLOT"},q5=function(e){return e.tagName.indexOf("-")>0},NH=function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(t){var A=this.counters[t];return A&&A.length?A[A.length-1]:1},e.prototype.getCounterValues=function(t){var A=this.counters[t];return A||[]},e.prototype.pop=function(t){var A=this;t.forEach(function(r){return A.counters[r].pop()})},e.prototype.parse=function(t){var A=this,r=t.counterIncrement,n=t.counterReset,i=!0;r!==null&&r.forEach(function(o){var a=A.counters[o.counter];a&&o.increment!==0&&(i=!1,a.length||a.push(1),a[Math.max(0,a.length-1)]+=o.increment)});var s=[];return i&&n.forEach(function(o){var a=A.counters[o.counter];s.push(o.counter),a||(a=A.counters[o.counter]=[]),a.push(o.reset)}),s},e}(),X5={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},J5={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},_H={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},kH={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},ma=function(e,t,A,r,n,i){return eA?wc(e,n,i.length>0):r.integers.reduce(function(s,o,a){for(;e>=o;)e-=o,s+=r.values[a];return s},"")+i},sQ=function(e,t,A,r){var n="";do A||e--,n=r(e)+n,e/=t;while(e*t>=t);return n},wA=function(e,t,A,r,n){var i=A-t+1;return(e<0?"-":"")+(sQ(Math.abs(e),i,r,function(s){return yA(Math.floor(s%i)+t)})+n)},Co=function(e,t,A){A===void 0&&(A=". ");var r=t.length;return sQ(Math.abs(e),r,!1,function(n){return t[Math.floor(n%r)]})+A},Fa=1,Fs=2,bs=4,Eu=8,ki=function(e,t,A,r,n,i){if(e<-9999||e>9999)return wc(e,4,n.length>0);var s=Math.abs(e),o=n;if(s===0)return t[0]+o;for(var a=0;s>0&&a<=4;a++){var l=s%10;l===0&&DA(i,Fa)&&o!==""?o=t[l]+o:l>1||l===1&&a===0||l===1&&a===1&&DA(i,Fs)||l===1&&a===1&&DA(i,bs)&&e>100||l===1&&a>1&&DA(i,Eu)?o=t[l]+(a>0?A[a-1]:"")+o:l===1&&a>0&&(o=A[a-1]+o),s=Math.floor(s/10)}return(e<0?r:"")+o},Y5="十百千萬",Z5="拾佰仟萬",$5="マイナス",Gg="마이너스",wc=function(e,t,A){var r=A?". ":"",n=A?"、":"",i=A?", ":"",s=A?" ":"";switch(t){case 0:return"•"+s;case 1:return"◦"+s;case 2:return"◾"+s;case 5:var o=wA(e,48,57,!0,r);return o.length<4?"0"+o:o;case 4:return Co(e,"〇一二三四五六七八九",n);case 6:return ma(e,1,3999,X5,3,r).toLowerCase();case 7:return ma(e,1,3999,X5,3,r);case 8:return wA(e,945,969,!1,r);case 9:return wA(e,97,122,!1,r);case 10:return wA(e,65,90,!1,r);case 11:return wA(e,1632,1641,!0,r);case 12:case 49:return ma(e,1,9999,J5,3,r);case 35:return ma(e,1,9999,J5,3,r).toLowerCase();case 13:return wA(e,2534,2543,!0,r);case 14:case 30:return wA(e,6112,6121,!0,r);case 15:return Co(e,"子丑寅卯辰巳午未申酉戌亥",n);case 16:return Co(e,"甲乙丙丁戊己庚辛壬癸",n);case 17:case 48:return ki(e,"零一二三四五六七八九",Y5,"負",n,Fs|bs|Eu);case 47:return ki(e,"零壹貳參肆伍陸柒捌玖",Z5,"負",n,Fa|Fs|bs|Eu);case 42:return ki(e,"零一二三四五六七八九",Y5,"负",n,Fs|bs|Eu);case 41:return ki(e,"零壹贰叁肆伍陆柒捌玖",Z5,"负",n,Fa|Fs|bs|Eu);case 26:return ki(e,"〇一二三四五六七八九","十百千万",$5,n,0);case 25:return ki(e,"零壱弐参四伍六七八九","拾百千万",$5,n,Fa|Fs|bs);case 31:return ki(e,"영일이삼사오육칠팔구","십백천만",Gg,i,Fa|Fs|bs);case 33:return ki(e,"零一二三四五六七八九","十百千萬",Gg,i,0);case 32:return ki(e,"零壹貳參四五六七八九","拾百千",Gg,i,Fa|Fs|bs);case 18:return wA(e,2406,2415,!0,r);case 20:return ma(e,1,19999,kH,3,r);case 21:return wA(e,2790,2799,!0,r);case 22:return wA(e,2662,2671,!0,r);case 22:return ma(e,1,10999,_H,3,r);case 23:return Co(e,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Co(e,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return wA(e,3302,3311,!0,r);case 28:return Co(e,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",n);case 29:return Co(e,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",n);case 34:return wA(e,3792,3801,!0,r);case 37:return wA(e,6160,6169,!0,r);case 38:return wA(e,4160,4169,!0,r);case 39:return wA(e,2918,2927,!0,r);case 40:return wA(e,1776,1785,!0,r);case 43:return wA(e,3046,3055,!0,r);case 44:return wA(e,3174,3183,!0,r);case 45:return wA(e,3664,3673,!0,r);case 46:return wA(e,3872,3881,!0,r);case 3:default:return wA(e,48,57,!0,r)}},oQ="data-html2canvas-ignore",ey=function(){function e(t,A,r){if(this.context=t,this.options=r,this.scrolledElements=[],this.referenceElement=A,this.counters=new NH,this.quoteDepth=0,!A.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(A.ownerDocument.documentElement,!1)}return e.prototype.toIFrame=function(t,A){var r=this,n=TH(t,A);if(!n.contentWindow)return Promise.reject("Unable to find iframe window");var i=t.defaultView.pageXOffset,s=t.defaultView.pageYOffset,o=n.contentWindow,a=o.document,l=DH(n).then(function(){return yr(r,void 0,void 0,function(){var c,d;return cr(this,function(p){switch(p.label){case 0:return this.scrolledElements.forEach(KH),o&&(o.scrollTo(A.left,A.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(o.scrollY!==A.top||o.scrollX!==A.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(o.scrollX-A.left,o.scrollY-A.top,0,0))),c=this.options.onclone,d=this.clonedReferenceElement,typeof d>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:a.fonts&&a.fonts.ready?[4,a.fonts.ready]:[3,2];case 1:p.sent(),p.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,PH(a)]:[3,4];case 3:p.sent(),p.label=4;case 4:return typeof c=="function"?[2,Promise.resolve().then(function(){return c(a,d)}).then(function(){return n})]:[2,n]}})})});return a.open(),a.write(OH(document.doctype)+""),RH(this.referenceElement.ownerDocument,i,s),a.replaceChild(a.adoptNode(this.documentElement),a.documentElement),a.close(),l},e.prototype.createElementClone=function(t){if(z1(t,2))debugger;if(rQ(t))return this.createCanvasClone(t);if(z5(t))return this.createVideoClone(t);if(W5(t))return this.createStyleClone(t);var A=t.cloneNode(!1);return J1(A)&&(J1(t)&&t.currentSrc&&t.currentSrc!==t.src&&(A.src=t.currentSrc,A.srcset=""),A.loading==="lazy"&&(A.loading="eager")),q5(A)?this.createCustomElementClone(A):A},e.prototype.createCustomElementClone=function(t){var A=document.createElement("html2canvascustomelement");return zg(t.style,A),A},e.prototype.createStyleClone=function(t){try{var A=t.sheet;if(A&&A.cssRules){var r=[].slice.call(A.cssRules,0).reduce(function(i,s){return s&&typeof s.cssText=="string"?i+s.cssText:i},""),n=t.cloneNode(!1);return n.textContent=r,n}}catch(i){if(this.context.logger.error("Unable to access cssRules property",i),i.name!=="SecurityError")throw i}return t.cloneNode(!1)},e.prototype.createCanvasClone=function(t){var A;if(this.options.inlineImages&&t.ownerDocument){var r=t.ownerDocument.createElement("img");try{return r.src=t.toDataURL(),r}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",t)}}var n=t.cloneNode(!1);try{n.width=t.width,n.height=t.height;var i=t.getContext("2d"),s=n.getContext("2d");if(s)if(!this.options.allowTaint&&i)s.putImageData(i.getImageData(0,0,t.width,t.height),0,0);else{var o=(A=t.getContext("webgl2"))!==null&&A!==void 0?A:t.getContext("webgl");if(o){var a=o.getContextAttributes();(a==null?void 0:a.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",t)}s.drawImage(t,0,0)}return n}catch{this.context.logger.info("Unable to clone canvas as it is tainted",t)}return n},e.prototype.createVideoClone=function(t){var A=t.ownerDocument.createElement("canvas");A.width=t.offsetWidth,A.height=t.offsetHeight;var r=A.getContext("2d");try{return r&&(r.drawImage(t,0,0,A.width,A.height),this.options.allowTaint||r.getImageData(0,0,A.width,A.height)),A}catch{this.context.logger.info("Unable to clone video as it is tainted",t)}var n=t.ownerDocument.createElement("canvas");return n.width=t.offsetWidth,n.height=t.offsetHeight,n},e.prototype.appendChildNode=function(t,A,r){(!Va(A)||!IH(A)&&!A.hasAttribute(oQ)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(A)))&&(!this.options.copyStyles||!Va(A)||!W5(A))&&t.appendChild(this.cloneNode(A,r))},e.prototype.cloneChildNodes=function(t,A,r){for(var n=this,i=t.shadowRoot?t.shadowRoot.firstChild:t.firstChild;i;i=i.nextSibling)if(Va(i)&&iQ(i)&&typeof i.assignedNodes=="function"){var s=i.assignedNodes();s.length&&s.forEach(function(o){return n.appendChildNode(A,o,r)})}else this.appendChildNode(A,i,r)},e.prototype.cloneNode=function(t,A){if(tQ(t))return document.createTextNode(t.data);if(!t.ownerDocument)return t.cloneNode(!1);var r=t.ownerDocument.defaultView;if(r&&Va(t)&&(X1(t)||kh(t))){var n=this.createElementClone(t);n.style.transitionProperty="none";var i=r.getComputedStyle(t),s=r.getComputedStyle(t,":before"),o=r.getComputedStyle(t,":after");this.referenceElement===t&&X1(n)&&(this.clonedReferenceElement=n),z2(n)&&GH(n);var a=this.counters.parse(new I5(this.context,i)),l=this.resolvePseudoContent(t,n,s,zu.BEFORE);q5(t)&&(A=!0),z5(t)||this.cloneChildNodes(t,n,A),l&&n.insertBefore(l,n.firstChild);var c=this.resolvePseudoContent(t,n,o,zu.AFTER);return c&&n.appendChild(c),this.counters.pop(a),(i&&(this.options.copyStyles||kh(t))&&!nQ(t)||A)&&zg(i,n),(t.scrollTop!==0||t.scrollLeft!==0)&&this.scrolledElements.push([n,t.scrollLeft,t.scrollTop]),(Fd(t)||bd(t))&&(Fd(n)||bd(n))&&(n.value=t.value),n}return t.cloneNode(!1)},e.prototype.resolvePseudoContent=function(t,A,r,n){var i=this;if(r){var s=r.content,o=A.ownerDocument;if(!(!o||!s||s==="none"||s==="-moz-alt-content"||r.display==="none")){this.counters.parse(new I5(this.context,r));var a=new UT(this.context,r),l=o.createElement("html2canvaspseudoelement");zg(r,l),a.content.forEach(function(d){if(d.type===0)l.appendChild(o.createTextNode(d.value));else if(d.type===22){var p=o.createElement("img");p.src=d.value,p.style.opacity="1",l.appendChild(p)}else if(d.type===18){if(d.name==="attr"){var h=d.values.filter(Pt);h.length&&l.appendChild(o.createTextNode(t.getAttribute(h[0].value)||""))}else if(d.name==="counter"){var y=d.values.filter(pl),C=y[0],U=y[1];if(C&&Pt(C)){var B=i.counters.getCounterValue(C.value),v=U&&Pt(U)?G1.parse(i.context,U.value):3;l.appendChild(o.createTextNode(wc(B,v,!1)))}}else if(d.name==="counters"){var F=d.values.filter(pl),C=F[0],b=F[1],U=F[2];if(C&&Pt(C)){var k=i.counters.getCounterValues(C.value),D=U&&Pt(U)?G1.parse(i.context,U.value):3,W=b&&b.type===0?b.value:"",H=k.map(function(L){return wc(L,D,!1)}).join(W);l.appendChild(o.createTextNode(H))}}}else if(d.type===20)switch(d.value){case"open-quote":l.appendChild(o.createTextNode(L5(a.quotes,i.quoteDepth++,!0)));break;case"close-quote":l.appendChild(o.createTextNode(L5(a.quotes,--i.quoteDepth,!1)));break;default:l.appendChild(o.createTextNode(d.value))}}),l.className=Y1+" "+Z1;var c=n===zu.BEFORE?" "+Y1:" "+Z1;return kh(A)?A.className.baseValue+=c:A.className+=c,l}}},e.destroy=function(t){return t.parentNode?(t.parentNode.removeChild(t),!0):!1},e}(),zu;(function(e){e[e.BEFORE=0]="BEFORE",e[e.AFTER=1]="AFTER"})(zu||(zu={}));var TH=function(e,t){var A=e.createElement("iframe");return A.className="html2canvas-container",A.style.visibility="hidden",A.style.position="fixed",A.style.left="-10000px",A.style.top="0px",A.style.border="0",A.width=t.width.toString(),A.height=t.height.toString(),A.scrolling="no",A.setAttribute(oQ,"true"),e.body.appendChild(A),A},HH=function(e){return new Promise(function(t){if(e.complete){t();return}if(!e.src){t();return}e.onload=t,e.onerror=t})},PH=function(e){return Promise.all([].slice.call(e.images,0).map(HH))},DH=function(e){return new Promise(function(t,A){var r=e.contentWindow;if(!r)return A("No window assigned for iframe");var n=r.document;r.onload=e.onload=function(){r.onload=e.onload=null;var i=setInterval(function(){n.body.childNodes.length>0&&n.readyState==="complete"&&(clearInterval(i),t(e))},50)}})},MH=["all","d","content"],zg=function(e,t){for(var A=e.length-1;A>=0;A--){var r=e.item(A);MH.indexOf(r)===-1&&t.style.setProperty(r,e.getPropertyValue(r))}return t},OH=function(e){var t="";return e&&(t+=""),t},RH=function(e,t,A){e&&e.defaultView&&(t!==e.defaultView.pageXOffset||A!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(t,A)},KH=function(e){var t=e[0],A=e[1],r=e[2];t.scrollLeft=A,t.scrollTop=r},jH=":before",VH=":after",Y1="___html2canvas___pseudoelement_before",Z1="___html2canvas___pseudoelement_after",ty=`{ content: "" !important; display: none !important; }`,GH=function(e){zH(e,"."+Y1+jH+ty+` .`+Z1+VH+ty)},zH=function(e,t){var A=e.ownerDocument;if(A){var r=A.createElement("style");r.textContent=t,e.appendChild(r)}},aQ=function(){function e(){}return e.getOrigin=function(t){var A=e._link;return A?(A.href=t,A.href=A.href,A.protocol+A.hostname+A.port):"about:blank"},e.isSameOrigin=function(t){return e.getOrigin(t)===e._origin},e.setContext=function(t){e._link=t.document.createElement("a"),e._origin=e.getOrigin(t.location.href)},e._origin="about:blank",e}(),WH=function(){function e(t,A){this.context=t,this._options=A,this._cache={}}return e.prototype.addImage=function(t){var A=Promise.resolve();return this.has(t)||(qg(t)||YH(t))&&(this._cache[t]=this.loadImage(t)).catch(function(){}),A},e.prototype.match=function(t){return this._cache[t]},e.prototype.loadImage=function(t){return yr(this,void 0,void 0,function(){var A,r,n,i,s=this;return cr(this,function(o){switch(o.label){case 0:return A=aQ.isSameOrigin(t),r=!Wg(t)&&this._options.useCORS===!0&&$A.SUPPORT_CORS_IMAGES&&!A,n=!Wg(t)&&!A&&!qg(t)&&typeof this._options.proxy=="string"&&$A.SUPPORT_CORS_XHR&&!r,!A&&this._options.allowTaint===!1&&!Wg(t)&&!qg(t)&&!n&&!r?[2]:(i=t,n?[4,this.proxy(i)]:[3,2]);case 1:i=o.sent(),o.label=2;case 2:return this.context.logger.debug("Added image "+t.substring(0,256)),[4,new Promise(function(a,l){var c=new Image;c.onload=function(){return a(c)},c.onerror=l,(ZH(i)||r)&&(c.crossOrigin="anonymous"),c.src=i,c.complete===!0&&setTimeout(function(){return a(c)},500),s._options.imageTimeout>0&&setTimeout(function(){return l("Timed out ("+s._options.imageTimeout+"ms) loading image")},s._options.imageTimeout)})];case 3:return[2,o.sent()]}})})},e.prototype.has=function(t){return typeof this._cache[t]<"u"},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(t){var A=this,r=this._options.proxy;if(!r)throw new Error("No proxy defined");var n=t.substring(0,256);return new Promise(function(i,s){var o=$A.SUPPORT_RESPONSE_TYPE?"blob":"text",a=new XMLHttpRequest;a.onload=function(){if(a.status===200)if(o==="text")i(a.response);else{var d=new FileReader;d.addEventListener("load",function(){return i(d.result)},!1),d.addEventListener("error",function(p){return s(p)},!1),d.readAsDataURL(a.response)}else s("Failed to proxy resource "+n+" with status code "+a.status)},a.onerror=s;var l=r.indexOf("?")>-1?"&":"?";if(a.open("GET",""+r+l+"url="+encodeURIComponent(t)+"&responseType="+o),o!=="text"&&a instanceof XMLHttpRequest&&(a.responseType=o),A._options.imageTimeout){var c=A._options.imageTimeout;a.timeout=c,a.ontimeout=function(){return s("Timed out ("+c+"ms) proxying "+n)}}a.send()})},e}(),qH=/^data:image\/svg\+xml/i,XH=/^data:image\/.*;base64,/i,JH=/^data:image\/.*/i,YH=function(e){return $A.SUPPORT_SVG_DRAWING||!$H(e)},Wg=function(e){return JH.test(e)},ZH=function(e){return XH.test(e)},qg=function(e){return e.substr(0,4)==="blob"},$H=function(e){return e.substr(-3).toLowerCase()==="svg"||qH.test(e)},Se=function(){function e(t,A){this.type=0,this.x=t,this.y=A}return e.prototype.add=function(t,A){return new e(this.x+t,this.y+A)},e}(),Ba=function(e,t,A){return new Se(e.x+(t.x-e.x)*A,e.y+(t.y-e.y)*A)},rh=function(){function e(t,A,r,n){this.type=1,this.start=t,this.startControl=A,this.endControl=r,this.end=n}return e.prototype.subdivide=function(t,A){var r=Ba(this.start,this.startControl,t),n=Ba(this.startControl,this.endControl,t),i=Ba(this.endControl,this.end,t),s=Ba(r,n,t),o=Ba(n,i,t),a=Ba(s,o,t);return A?new e(this.start,r,s,a):new e(a,o,i,this.end)},e.prototype.add=function(t,A){return new e(this.start.add(t,A),this.startControl.add(t,A),this.endControl.add(t,A),this.end.add(t,A))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e}(),gn=function(e){return e.type===1},eP=function(){function e(t){var A=t.styles,r=t.bounds,n=Qu(A.borderTopLeftRadius,r.width,r.height),i=n[0],s=n[1],o=Qu(A.borderTopRightRadius,r.width,r.height),a=o[0],l=o[1],c=Qu(A.borderBottomRightRadius,r.width,r.height),d=c[0],p=c[1],h=Qu(A.borderBottomLeftRadius,r.width,r.height),y=h[0],C=h[1],U=[];U.push((i+a)/r.width),U.push((y+d)/r.width),U.push((s+C)/r.height),U.push((l+p)/r.height);var B=Math.max.apply(Math,U);B>1&&(i/=B,s/=B,a/=B,l/=B,d/=B,p/=B,y/=B,C/=B);var v=r.width-a,F=r.height-p,b=r.width-d,k=r.height-C,D=A.borderTopWidth,W=A.borderRightWidth,H=A.borderBottomWidth,N=A.borderLeftWidth,X=Vt(A.paddingTop,t.bounds.width),L=Vt(A.paddingRight,t.bounds.width),T=Vt(A.paddingBottom,t.bounds.width),V=Vt(A.paddingLeft,t.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||s>0?eA(r.left+N/3,r.top+D/3,i-N/3,s-D/3,It.TOP_LEFT):new Se(r.left+N/3,r.top+D/3),this.topRightBorderDoubleOuterBox=i>0||s>0?eA(r.left+v,r.top+D/3,a-W/3,l-D/3,It.TOP_RIGHT):new Se(r.left+r.width-W/3,r.top+D/3),this.bottomRightBorderDoubleOuterBox=d>0||p>0?eA(r.left+b,r.top+F,d-W/3,p-H/3,It.BOTTOM_RIGHT):new Se(r.left+r.width-W/3,r.top+r.height-H/3),this.bottomLeftBorderDoubleOuterBox=y>0||C>0?eA(r.left+N/3,r.top+k,y-N/3,C-H/3,It.BOTTOM_LEFT):new Se(r.left+N/3,r.top+r.height-H/3),this.topLeftBorderDoubleInnerBox=i>0||s>0?eA(r.left+N*2/3,r.top+D*2/3,i-N*2/3,s-D*2/3,It.TOP_LEFT):new Se(r.left+N*2/3,r.top+D*2/3),this.topRightBorderDoubleInnerBox=i>0||s>0?eA(r.left+v,r.top+D*2/3,a-W*2/3,l-D*2/3,It.TOP_RIGHT):new Se(r.left+r.width-W*2/3,r.top+D*2/3),this.bottomRightBorderDoubleInnerBox=d>0||p>0?eA(r.left+b,r.top+F,d-W*2/3,p-H*2/3,It.BOTTOM_RIGHT):new Se(r.left+r.width-W*2/3,r.top+r.height-H*2/3),this.bottomLeftBorderDoubleInnerBox=y>0||C>0?eA(r.left+N*2/3,r.top+k,y-N*2/3,C-H*2/3,It.BOTTOM_LEFT):new Se(r.left+N*2/3,r.top+r.height-H*2/3),this.topLeftBorderStroke=i>0||s>0?eA(r.left+N/2,r.top+D/2,i-N/2,s-D/2,It.TOP_LEFT):new Se(r.left+N/2,r.top+D/2),this.topRightBorderStroke=i>0||s>0?eA(r.left+v,r.top+D/2,a-W/2,l-D/2,It.TOP_RIGHT):new Se(r.left+r.width-W/2,r.top+D/2),this.bottomRightBorderStroke=d>0||p>0?eA(r.left+b,r.top+F,d-W/2,p-H/2,It.BOTTOM_RIGHT):new Se(r.left+r.width-W/2,r.top+r.height-H/2),this.bottomLeftBorderStroke=y>0||C>0?eA(r.left+N/2,r.top+k,y-N/2,C-H/2,It.BOTTOM_LEFT):new Se(r.left+N/2,r.top+r.height-H/2),this.topLeftBorderBox=i>0||s>0?eA(r.left,r.top,i,s,It.TOP_LEFT):new Se(r.left,r.top),this.topRightBorderBox=a>0||l>0?eA(r.left+v,r.top,a,l,It.TOP_RIGHT):new Se(r.left+r.width,r.top),this.bottomRightBorderBox=d>0||p>0?eA(r.left+b,r.top+F,d,p,It.BOTTOM_RIGHT):new Se(r.left+r.width,r.top+r.height),this.bottomLeftBorderBox=y>0||C>0?eA(r.left,r.top+k,y,C,It.BOTTOM_LEFT):new Se(r.left,r.top+r.height),this.topLeftPaddingBox=i>0||s>0?eA(r.left+N,r.top+D,Math.max(0,i-N),Math.max(0,s-D),It.TOP_LEFT):new Se(r.left+N,r.top+D),this.topRightPaddingBox=a>0||l>0?eA(r.left+Math.min(v,r.width-W),r.top+D,v>r.width+W?0:Math.max(0,a-W),Math.max(0,l-D),It.TOP_RIGHT):new Se(r.left+r.width-W,r.top+D),this.bottomRightPaddingBox=d>0||p>0?eA(r.left+Math.min(b,r.width-N),r.top+Math.min(F,r.height-H),Math.max(0,d-W),Math.max(0,p-H),It.BOTTOM_RIGHT):new Se(r.left+r.width-W,r.top+r.height-H),this.bottomLeftPaddingBox=y>0||C>0?eA(r.left+N,r.top+Math.min(k,r.height-H),Math.max(0,y-N),Math.max(0,C-H),It.BOTTOM_LEFT):new Se(r.left+N,r.top+r.height-H),this.topLeftContentBox=i>0||s>0?eA(r.left+N+V,r.top+D+X,Math.max(0,i-(N+V)),Math.max(0,s-(D+X)),It.TOP_LEFT):new Se(r.left+N+V,r.top+D+X),this.topRightContentBox=a>0||l>0?eA(r.left+Math.min(v,r.width+N+V),r.top+D+X,v>r.width+N+V?0:a-N+V,l-(D+X),It.TOP_RIGHT):new Se(r.left+r.width-(W+L),r.top+D+X),this.bottomRightContentBox=d>0||p>0?eA(r.left+Math.min(b,r.width-(N+V)),r.top+Math.min(F,r.height+D+X),Math.max(0,d-(W+L)),p-(H+T),It.BOTTOM_RIGHT):new Se(r.left+r.width-(W+L),r.top+r.height-(H+T)),this.bottomLeftContentBox=y>0||C>0?eA(r.left+N+V,r.top+k,Math.max(0,y-(N+V)),C-(H+T),It.BOTTOM_LEFT):new Se(r.left+N+V,r.top+r.height-(H+T))}return e}(),It;(function(e){e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=1]="TOP_RIGHT",e[e.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",e[e.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(It||(It={}));var eA=function(e,t,A,r,n){var i=4*((Math.sqrt(2)-1)/3),s=A*i,o=r*i,a=e+A,l=t+r;switch(n){case It.TOP_LEFT:return new rh(new Se(e,l),new Se(e,l-o),new Se(a-s,t),new Se(a,t));case It.TOP_RIGHT:return new rh(new Se(e,t),new Se(e+s,t),new Se(a,l-o),new Se(a,l));case It.BOTTOM_RIGHT:return new rh(new Se(a,t),new Se(a,t+o),new Se(e+s,l),new Se(e,l));case It.BOTTOM_LEFT:default:return new rh(new Se(a,l),new Se(a-s,l),new Se(e,t+o),new Se(e,t))}},xd=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},tP=function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]},Qd=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},AP=function(){function e(t,A,r){this.offsetX=t,this.offsetY=A,this.matrix=r,this.type=0,this.target=6}return e}(),nh=function(){function e(t,A){this.path=t,this.target=A,this.type=1}return e}(),rP=function(){function e(t){this.opacity=t,this.type=2,this.target=6}return e}(),nP=function(e){return e.type===0},lQ=function(e){return e.type===1},iP=function(e){return e.type===2},Ay=function(e,t){return e.length===t.length?e.some(function(A,r){return A===t[r]}):!1},sP=function(e,t,A,r,n){return e.map(function(i,s){switch(s){case 0:return i.add(t,A);case 1:return i.add(t+r,A);case 2:return i.add(t+r,A+n);case 3:return i.add(t,A+n)}return i})},uQ=function(){function e(t){this.element=t,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return e}(),cQ=function(){function e(t,A){if(this.container=t,this.parent=A,this.effects=[],this.curves=new eP(this.container),this.container.styles.opacity<1&&this.effects.push(new rP(this.container.styles.opacity)),this.container.styles.transform!==null){var r=this.container.bounds.left+this.container.styles.transformOrigin[0].number,n=this.container.bounds.top+this.container.styles.transformOrigin[1].number,i=this.container.styles.transform;this.effects.push(new AP(r,n,i))}if(this.container.styles.overflowX!==0){var s=xd(this.curves),o=Qd(this.curves);Ay(s,o)?this.effects.push(new nh(s,6)):(this.effects.push(new nh(s,2)),this.effects.push(new nh(o,4)))}}return e.prototype.getEffects=function(t){for(var A=[2,3].indexOf(this.container.styles.position)===-1,r=this.parent,n=this.effects.slice(0);r;){var i=r.effects.filter(function(a){return!lQ(a)});if(A||r.container.styles.position!==0||!r.parent){if(n.unshift.apply(n,i),A=[2,3].indexOf(r.container.styles.position)===-1,r.container.styles.overflowX!==0){var s=xd(r.curves),o=Qd(r.curves);Ay(s,o)||n.unshift(new nh(o,6))}}else n.unshift.apply(n,i);r=r.parent}return n.filter(function(a){return DA(a.target,t)})},e}(),$1=function(e,t,A,r){e.container.elements.forEach(function(n){var i=DA(n.flags,4),s=DA(n.flags,2),o=new cQ(n,e);DA(n.styles.display,2048)&&r.push(o);var a=DA(n.flags,8)?[]:r;if(i||s){var l=i||n.styles.isPositioned()?A:t,c=new uQ(o);if(n.styles.isPositioned()||n.styles.opacity<1||n.styles.isTransformed()){var d=n.styles.zIndex.order;if(d<0){var p=0;l.negativeZIndex.some(function(y,C){return d>y.element.container.styles.zIndex.order?(p=C,!1):p>0}),l.negativeZIndex.splice(p,0,c)}else if(d>0){var h=0;l.positiveZIndex.some(function(y,C){return d>=y.element.container.styles.zIndex.order?(h=C+1,!1):h>0}),l.positiveZIndex.splice(h,0,c)}else l.zeroOrAutoZIndexOrTransformedOrOpacity.push(c)}else n.styles.isFloating()?l.nonPositionedFloats.push(c):l.nonPositionedInlineLevel.push(c);$1(o,c,i?c:A,a)}else n.styles.isInlineLevel()?t.inlineLevel.push(o):t.nonInlineLevel.push(o),$1(o,t,A,a);DA(n.flags,8)&&fQ(n,a)})},fQ=function(e,t){for(var A=e instanceof q1?e.start:1,r=e instanceof q1?e.reversed:!1,n=0;n"u"?e[0]:A},dP=function(e,t,A,r,n){var i=t[0],s=t[1],o=A[0],a=A[1];switch(e){case 2:return[new Se(Math.round(r.left),Math.round(r.top+s)),new Se(Math.round(r.left+r.width),Math.round(r.top+s)),new Se(Math.round(r.left+r.width),Math.round(a+r.top+s)),new Se(Math.round(r.left),Math.round(a+r.top+s))];case 3:return[new Se(Math.round(r.left+i),Math.round(r.top)),new Se(Math.round(r.left+i+o),Math.round(r.top)),new Se(Math.round(r.left+i+o),Math.round(r.height+r.top)),new Se(Math.round(r.left+i),Math.round(r.height+r.top))];case 1:return[new Se(Math.round(r.left+i),Math.round(r.top+s)),new Se(Math.round(r.left+i+o),Math.round(r.top+s)),new Se(Math.round(r.left+i+o),Math.round(r.top+s+a)),new Se(Math.round(r.left+i),Math.round(r.top+s+a))];default:return[new Se(Math.round(n.left),Math.round(n.top)),new Se(Math.round(n.left+n.width),Math.round(n.top)),new Se(Math.round(n.left+n.width),Math.round(n.height+n.top)),new Se(Math.round(n.left),Math.round(n.height+n.top))]}},pP="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",ny="Hidden Text",gP=function(){function e(t){this._data={},this._document=t}return e.prototype.parseMetrics=function(t,A){var r=this._document.createElement("div"),n=this._document.createElement("img"),i=this._document.createElement("span"),s=this._document.body;r.style.visibility="hidden",r.style.fontFamily=t,r.style.fontSize=A,r.style.margin="0",r.style.padding="0",r.style.whiteSpace="nowrap",s.appendChild(r),n.src=pP,n.width=1,n.height=1,n.style.margin="0",n.style.padding="0",n.style.verticalAlign="baseline",i.style.fontFamily=t,i.style.fontSize=A,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode(ny)),r.appendChild(i),r.appendChild(n);var o=n.offsetTop-i.offsetTop+2;r.removeChild(i),r.appendChild(this._document.createTextNode(ny)),r.style.lineHeight="normal",n.style.verticalAlign="super";var a=n.offsetTop-r.offsetTop+2;return s.removeChild(r),{baseline:o,middle:a}},e.prototype.getMetrics=function(t,A){var r=t+" "+A;return typeof this._data[r]>"u"&&(this._data[r]=this.parseMetrics(t,A)),this._data[r]},e}(),dQ=function(){function e(t,A){this.context=t,this.options=A}return e}(),mP=1e4,BP=function(e){jn(t,e);function t(A,r){var n=e.call(this,A,r)||this;return n._activeEffects=[],n.canvas=r.canvas?r.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),r.canvas||(n.canvas.width=Math.floor(r.width*r.scale),n.canvas.height=Math.floor(r.height*r.scale),n.canvas.style.width=r.width+"px",n.canvas.style.height=r.height+"px"),n.fontMetrics=new gP(document),n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-r.x,-r.y),n.ctx.textBaseline="bottom",n._activeEffects=[],n.context.logger.debug("Canvas renderer initialized ("+r.width+"x"+r.height+") with scale "+r.scale),n}return t.prototype.applyEffects=function(A){for(var r=this;this._activeEffects.length;)this.popEffect();A.forEach(function(n){return r.applyEffect(n)})},t.prototype.applyEffect=function(A){this.ctx.save(),iP(A)&&(this.ctx.globalAlpha=A.opacity),nP(A)&&(this.ctx.translate(A.offsetX,A.offsetY),this.ctx.transform(A.matrix[0],A.matrix[1],A.matrix[2],A.matrix[3],A.matrix[4],A.matrix[5]),this.ctx.translate(-A.offsetX,-A.offsetY)),lQ(A)&&(this.path(A.path),this.ctx.clip()),this._activeEffects.push(A)},t.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},t.prototype.renderStack=function(A){return yr(this,void 0,void 0,function(){var r;return cr(this,function(n){switch(n.label){case 0:return r=A.element.container.styles,r.isVisible()?[4,this.renderStackContent(A)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}})})},t.prototype.renderNode=function(A){return yr(this,void 0,void 0,function(){return cr(this,function(r){switch(r.label){case 0:if(DA(A.container.flags,16))debugger;return A.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(A)]:[3,3];case 1:return r.sent(),[4,this.renderNodeContent(A)];case 2:r.sent(),r.label=3;case 3:return[2]}})})},t.prototype.renderTextWithLetterSpacing=function(A,r,n){var i=this;if(r===0)this.ctx.fillText(A.text,A.bounds.left,A.bounds.top+n);else{var s=V2(A.text);s.reduce(function(o,a){return i.ctx.fillText(a,o,A.bounds.top+n),o+i.ctx.measureText(a).width},A.bounds.left)}},t.prototype.createFontStyle=function(A){var r=A.fontVariant.filter(function(s){return s==="normal"||s==="small-caps"}).join(""),n=FP(A.fontFamily).join(", "),i=Nc(A.fontSize)?""+A.fontSize.number+A.fontSize.unit:A.fontSize.number+"px";return[[A.fontStyle,r,A.fontWeight,i,n].join(" "),n,i]},t.prototype.renderTextNode=function(A,r){return yr(this,void 0,void 0,function(){var n,i,s,o,a,l,c,d,p=this;return cr(this,function(h){return n=this.createFontStyle(r),i=n[0],s=n[1],o=n[2],this.ctx.font=i,this.ctx.direction=r.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",a=this.fontMetrics.getMetrics(s,o),l=a.baseline,c=a.middle,d=r.paintOrder,A.textBounds.forEach(function(y){d.forEach(function(C){switch(C){case 0:p.ctx.fillStyle=RA(r.color),p.renderTextWithLetterSpacing(y,r.letterSpacing,l);var U=r.textShadow;U.length&&y.text.trim().length&&(U.slice(0).reverse().forEach(function(B){p.ctx.shadowColor=RA(B.color),p.ctx.shadowOffsetX=B.offsetX.number*p.options.scale,p.ctx.shadowOffsetY=B.offsetY.number*p.options.scale,p.ctx.shadowBlur=B.blur.number,p.renderTextWithLetterSpacing(y,r.letterSpacing,l)}),p.ctx.shadowColor="",p.ctx.shadowOffsetX=0,p.ctx.shadowOffsetY=0,p.ctx.shadowBlur=0),r.textDecorationLine.length&&(p.ctx.fillStyle=RA(r.textDecorationColor||r.color),r.textDecorationLine.forEach(function(B){switch(B){case 1:p.ctx.fillRect(y.bounds.left,Math.round(y.bounds.top+l),y.bounds.width,1);break;case 2:p.ctx.fillRect(y.bounds.left,Math.round(y.bounds.top),y.bounds.width,1);break;case 3:p.ctx.fillRect(y.bounds.left,Math.ceil(y.bounds.top+c),y.bounds.width,1);break}}));break;case 1:r.webkitTextStrokeWidth&&y.text.trim().length&&(p.ctx.strokeStyle=RA(r.webkitTextStrokeColor),p.ctx.lineWidth=r.webkitTextStrokeWidth,p.ctx.lineJoin=window.chrome?"miter":"round",p.ctx.strokeText(y.text,y.bounds.left,y.bounds.top+l)),p.ctx.strokeStyle="",p.ctx.lineWidth=0,p.ctx.lineJoin="miter";break}})}),[2]})})},t.prototype.renderReplacedElement=function(A,r,n){if(n&&A.intrinsicWidth>0&&A.intrinsicHeight>0){var i=Ud(A),s=Qd(r);this.path(s),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,A.intrinsicWidth,A.intrinsicHeight,i.left,i.top,i.width,i.height),this.ctx.restore()}},t.prototype.renderNodeContent=function(A){return yr(this,void 0,void 0,function(){var r,n,i,s,o,a,v,v,l,c,d,p,b,h,y,k,C,U,B,v,F,b,k;return cr(this,function(D){switch(D.label){case 0:this.applyEffects(A.getEffects(4)),r=A.container,n=A.curves,i=r.styles,s=0,o=r.textNodes,D.label=1;case 1:return s0&&z>0&&(H=i.ctx.createPattern(k,"repeat"),i.renderRepeat(X,H,ue,ie))):ik(c)&&(N=Xg(A,r,[null,null,null]),X=N[0],L=N[1],T=N[2],V=N[3],z=N[4],le=c.position.length===0?[R2]:c.position,ue=Vt(le[0],V),ie=Vt(le[le.length-1],z),q=ek(c,ue,ie,V,z),te=q[0],fe=q[1],te>0&&fe>0&&(ce=i.ctx.createRadialGradient(L+ue,T+ie,0,L+ue,T+ie,te),Q5(c.stops,te*2).forEach(function(re){return ce.addColorStop(re.stop,RA(re.color))}),i.path(X),i.ctx.fillStyle=ce,te!==fe?(E=A.bounds.left+.5*A.bounds.width,j=A.bounds.top+.5*A.bounds.height,G=fe/te,Y=1/G,i.ctx.save(),i.ctx.translate(E,j),i.ctx.transform(1,0,0,G,0,0),i.ctx.translate(-E,-j),i.ctx.fillRect(L,Y*(T-j)+j,V,z*Y),i.ctx.restore()):i.ctx.fill())),$.label=6;case 6:return r--,[2]}})},i=this,s=0,o=A.styles.backgroundImage.slice(0).reverse(),l.label=1;case 1:return s0?c.style!==2?[3,5]:[4,this.renderDashedDottedBorder(c.color,c.width,o,A.curves,2)]:[3,11]):[3,13];case 4:return p.sent(),[3,11];case 5:return c.style!==3?[3,7]:[4,this.renderDashedDottedBorder(c.color,c.width,o,A.curves,3)];case 6:return p.sent(),[3,11];case 7:return c.style!==4?[3,9]:[4,this.renderDoubleBorder(c.color,c.width,o,A.curves)];case 8:return p.sent(),[3,11];case 9:return[4,this.renderSolidBorder(c.color,o,A.curves)];case 10:p.sent(),p.label=11;case 11:o++,p.label=12;case 12:return a++,[3,3];case 13:return[2]}})})},t.prototype.renderDashedDottedBorder=function(A,r,n,i,s){return yr(this,void 0,void 0,function(){var o,a,l,c,d,p,h,y,C,U,B,v,F,b,k,D,k,D;return cr(this,function(W){return this.ctx.save(),o=uP(i,n),a=ry(i,n),s===2&&(this.path(a),this.ctx.clip()),gn(a[0])?(l=a[0].start.x,c=a[0].start.y):(l=a[0].x,c=a[0].y),gn(a[1])?(d=a[1].end.x,p=a[1].end.y):(d=a[1].x,p=a[1].y),n===0||n===2?h=Math.abs(l-d):h=Math.abs(c-p),this.ctx.beginPath(),s===3?this.formatPath(o):this.formatPath(a.slice(0,2)),y=r<3?r*3:r*2,C=r<3?r*2:r,s===3&&(y=r,C=r),U=!0,h<=y*2?U=!1:h<=y*2+C?(B=h/(2*y+C),y*=B,C*=B):(v=Math.floor((h+C)/(y+C)),F=(h-v*y)/(v-1),b=(h-(v+1)*y)/v,C=b<=0||Math.abs(C-F)0){document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),o=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));n=Promise.allSettled(A.map(a=>{if(a=NP(a),a in iy)return;iy[a]=!0;const l=a.endsWith(".css"),c=l?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${a}"]${c}`))return;const d=document.createElement("link");if(d.rel=l?"stylesheet":IP,l||(d.as="script"),d.crossOrigin="",d.href=a,o&&d.setAttribute("nonce",o),document.head.appendChild(d),l)return new Promise((p,h)=>{d.addEventListener("load",p),d.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${a}`)))})}))}function i(s){const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=s,window.dispatchEvent(o),!o.defaultPrevented)throw s}return n.then(s=>{for(const o of s||[])o.status==="rejected"&&i(o.reason);return t().catch(i)})};function Tt(e){"@babel/helpers - typeof";return Tt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tt(e)}var Kn=Uint8Array,qr=Uint16Array,W2=Int32Array,q2=new Kn([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),X2=new Kn([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),sy=new Kn([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),gQ=function(e,t){for(var A=new qr(31),r=0;r<31;++r)A[r]=t+=1<>1|(Xt&21845)<<1;Bs=(Bs&52428)>>2|(Bs&13107)<<2,Bs=(Bs&61680)>>4|(Bs&3855)<<4,tm[Xt]=((Bs&65280)>>8|(Bs&255)<<8)>>1}var Wu=function(e,t,A){for(var r=e.length,n=0,i=new qr(t);n>a]=l}else for(o=new qr(r),n=0;n>15-e[n]);return o},zo=new Kn(288);for(var Xt=0;Xt<144;++Xt)zo[Xt]=8;for(var Xt=144;Xt<256;++Xt)zo[Xt]=9;for(var Xt=256;Xt<280;++Xt)zo[Xt]=7;for(var Xt=280;Xt<288;++Xt)zo[Xt]=8;var Ed=new Kn(32);for(var Xt=0;Xt<32;++Xt)Ed[Xt]=5;var TP=Wu(zo,9,0),HP=Wu(Ed,5,0),BQ=function(e){return(e+7)/8|0},PP=function(e,t,A){return(A==null||A>e.length)&&(A=e.length),new Kn(e.subarray(t,A))},Ti=function(e,t,A){A<<=t&7;var r=t/8|0;e[r]|=A,e[r+1]|=A>>8},cu=function(e,t,A){A<<=t&7;var r=t/8|0;e[r]|=A,e[r+1]|=A>>8,e[r+2]|=A>>16},Yg=function(e,t){for(var A=[],r=0;rp&&(p=i[r].s);var h=new qr(p+1),y=Am(A[c-1],h,0);if(y>t){var r=0,C=0,U=y-t,B=1<t)C+=B-(1<>=U;C>0;){var F=i[r].s;h[F]=0&&C;--r){var b=i[r].s;h[b]==t&&(--h[b],++C)}y=t}return{t:new Kn(h),l:y}},Am=function(e,t,A){return e.s==-1?Math.max(Am(e.l,t,A+1),Am(e.r,t,A+1)):t[e.s]=A},ay=function(e){for(var t=e.length;t&&!e[--t];);for(var A=new qr(++t),r=0,n=e[0],i=1,s=function(a){A[r++]=a},o=1;o<=t;++o)if(e[o]==n&&o!=t)++i;else{if(!n&&i>2){for(;i>138;i-=138)s(32754);i>2&&(s(i>10?i-11<<5|28690:i-3<<5|12305),i=0)}else if(i>3){for(s(n),--i;i>6;i-=6)s(8304);i>2&&(s(i-3<<5|8208),i=0)}for(;i--;)s(n);i=1,n=e[o]}return{c:A.subarray(0,r),n:t}},fu=function(e,t){for(var A=0,r=0;r>8,e[n+2]=e[n]^255,e[n+3]=e[n+1]^255;for(var i=0;i4&&!X[sy[T-1]];--T);var V=l+5<<3,z=fu(n,zo)+fu(i,Ed)+s,le=fu(n,p)+fu(i,C)+s+14+3*T+fu(W,X)+2*W[16]+3*W[17]+7*W[18];if(a>=0&&V<=z&&V<=le)return wQ(t,c,e.subarray(a,a+l));var ue,ie,q,te;if(Ti(t,c,1+(le15&&(Ti(t,c,j[H]>>5&127),c+=j[H]>>12)}}else ue=TP,ie=zo,q=HP,te=Ed;for(var H=0;H255){var G=Y>>18&31;cu(t,c,ue[G+257]),c+=ie[G+257],G>7&&(Ti(t,c,Y>>23&31),c+=q2[G]);var $=Y&31;cu(t,c,q[$]),c+=te[$],$>3&&(cu(t,c,Y>>5&8191),c+=X2[$])}else cu(t,c,ue[Y]),c+=ie[Y]}return cu(t,c,ue[256]),c+ie[256]},DP=new W2([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),vQ=new Kn(0),MP=function(e,t,A,r,n,i){var s=i.z||e.length,o=new Kn(r+s+5*(1+Math.ceil(s/7e3))+n),a=o.subarray(r,o.length-n),l=i.l,c=(i.r||0)&7;if(t){c&&(a[0]=i.r>>3);for(var d=DP[t-1],p=d>>13,h=d&8191,y=(1<7e3||X>24576)&&(ue>423||!l)){c=ly(e,a,0,b,k,D,H,X,T,N-T,c),X=W=H=0,T=N;for(var ie=0;ie<286;++ie)k[ie]=0;for(var ie=0;ie<30;++ie)D[ie]=0}var q=2,te=0,fe=h,ce=z-le&32767;if(ue>2&&V==F(N-ce))for(var E=Math.min(p,ue)-1,j=Math.min(32767,N),G=Math.min(258,ue);ce<=j&&--fe&&z!=le;){if(e[N+q]==e[N+q-ce]){for(var Y=0;Yq){if(q=Y,te=ce,Y>E)break;for(var $=Math.min(ce,Y-2),re=0,ie=0;ie<$;++ie){var he=N-ce+ie&32767,de=C[he],we=he-de&32767;we>re&&(re=we,le=he)}}}z=le,le=C[z],ce+=z-le&32767}if(te){b[X++]=268435456|em[q]<<18|oy[te];var xe=em[q]&31,Le=oy[te]&31;H+=q2[xe]+X2[Le],++k[257+xe],++D[Le],L=N+q,++W}else b[X++]=e[N],++k[e[N]]}}for(N=Math.max(N,L);N=s&&(a[c/8|0]=l,Ee=s),c=wQ(a,c+1,e.subarray(N,Ee))}i.i=s}return PP(o,0,r+BQ(c)+n)},yQ=function(){var e=1,t=0;return{p:function(A){for(var r=e,n=t,i=A.length|0,s=0;s!=i;){for(var o=Math.min(s+2655,i);s>16),n=(n&65535)+15*(n>>16)}e=r,t=n},d:function(){return e%=65521,t%=65521,(e&255)<<24|(e&65280)<<8|(t&255)<<8|t>>8}}},OP=function(e,t,A,r,n){if(!n&&(n={l:1},t.dictionary)){var i=t.dictionary.subarray(-32768),s=new Kn(i.length+e.length);s.set(i),s.set(e,i.length),e=s,n.w=i.length}return MP(e,t.level==null?6:t.level,t.mem==null?n.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+t.mem,A,r,n)},CQ=function(e,t,A){for(;A;++t)e[t]=A,A>>>=8},RP=function(e,t){var A=t.level,r=A==0?0:A<6?1:A==9?3:2;if(e[0]=120,e[1]=r<<6|(t.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,t.dictionary){var n=yQ();n.p(t.dictionary),CQ(e,2,n.d())}};function rm(e,t){t||(t={});var A=yQ();A.p(e);var r=OP(e,t,t.dictionary?6:2,4);return RP(r,t),CQ(r,r.length-4,A.d()),r}var KP=typeof TextDecoder<"u"&&new TextDecoder,jP=0;try{KP.decode(vQ,{stream:!0}),jP=1}catch{}function VP(e){if(Array.isArray(e))return e}function GP(e,t){var A=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(A!=null){var r,n,i,s,o=[],a=!0,l=!1;try{if(i=(A=A.call(e)).next,t!==0)for(;!(a=(r=i.call(A)).done)&&(o.push(r.value),o.length!==t);a=!0);}catch(c){l=!0,n=c}finally{try{if(!a&&A.return!=null&&(s=A.return(),Object(s)!==s))return}finally{if(l)throw n}}return o}}function uy(e,t){(t==null||t>e.length)&&(t=e.length);for(var A=0,r=Array(t);A{const e=new Uint8Array(4),t=new Uint32Array(e.buffer);return!((t[0]=1)&e[0])})(),Zg={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array};class J2{constructor(t=JP,A={}){kt(this,"buffer");kt(this,"byteLength");kt(this,"byteOffset");kt(this,"length");kt(this,"offset");kt(this,"lastWrittenByte");kt(this,"littleEndian");kt(this,"_data");kt(this,"_mark");kt(this,"_marks");let r=!1;typeof t=="number"?t=new ArrayBuffer(t):(r=!0,this.lastWrittenByte=t.byteLength);const n=A.offset?A.offset>>>0:0,i=t.byteLength-n;let s=n;(ArrayBuffer.isView(t)||t instanceof J2)&&(t.byteLength!==t.buffer.byteLength&&(s=t.byteOffset+n),t=t.buffer),r?this.lastWrittenByte=i:this.lastWrittenByte=0,this.buffer=t,this.length=i,this.byteLength=i,this.byteOffset=s,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,s,i),this._mark=0,this._marks=[]}available(t=1){return this.offset+t<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(t=1){return this.offset+=t,this}back(t=1){return this.offset-=t,this}seek(t){return this.offset=t,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){const t=this._marks.pop();if(t===void 0)throw new Error("Mark stack empty");return this.seek(t),this}rewind(){return this.offset=0,this}ensureAvailable(t=1){if(!this.available(t)){const r=(this.offset+t)*2,n=new Uint8Array(r);n.set(new Uint8Array(this.buffer)),this.buffer=n.buffer,this.length=r,this.byteLength=r,this._data=new DataView(this.buffer)}return this}readBoolean(){return this.readUint8()!==0}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(t=1){return this.readArray(t,"uint8")}readArray(t,A){const r=Zg[A].BYTES_PER_ELEMENT*t,n=this.byteOffset+this.offset,i=this.buffer.slice(n,n+r);if(this.littleEndian===YP&&A!=="uint8"&&A!=="int8"){const o=new Uint8Array(this.buffer.slice(n,n+r));o.reverse();const a=new Zg[A](o.buffer);return this.offset+=r,a.reverse(),a}const s=new Zg[A](i);return this.offset+=r,s}readInt16(){const t=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,t}readUint16(){const t=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,t}readInt32(){const t=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,t}readUint32(){const t=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat32(){const t=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat64(){const t=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,t}readBigInt64(){const t=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,t}readBigUint64(){const t=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,t}readChar(){return String.fromCharCode(this.readInt8())}readChars(t=1){let A="";for(let r=0;rthis.lastWrittenByte&&(this.lastWrittenByte=this.offset)}}function Cl(e){let t=e.length;for(;--t>=0;)e[t]=0}const ZP=3,$P=258,FQ=29,e7=256,t7=e7+1+FQ,bQ=30,A7=512,r7=new Array((t7+2)*2);Cl(r7);const n7=new Array(bQ*2);Cl(n7);const i7=new Array(A7);Cl(i7);const s7=new Array($P-ZP+1);Cl(s7);const o7=new Array(FQ);Cl(o7);const a7=new Array(bQ);Cl(a7);const l7=(e,t,A,r)=>{let n=e&65535|0,i=e>>>16&65535|0,s=0;for(;A!==0;){s=A>2e3?2e3:A,A-=s;do n=n+t[r++]|0,i=i+n|0;while(--s);n%=65521,i%=65521}return n|i<<16|0};var nm=l7;const u7=()=>{let e,t=[];for(var A=0;A<256;A++){e=A;for(var r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;t[A]=e}return t},c7=new Uint32Array(u7()),f7=(e,t,A,r)=>{const n=c7,i=r+A;e^=-1;for(let s=r;s>>8^n[(e^t[s])&255];return e^-1};var ri=f7,im={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},xQ={Z_NO_FLUSH:0,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_DEFLATED:8};const h7=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var d7=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const A=t.shift();if(A){if(typeof A!="object")throw new TypeError(A+"must be non-object");for(const r in A)h7(A,r)&&(e[r]=A[r])}}return e},p7=e=>{let t=0;for(let r=0,n=e.length;r=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;vc[254]=vc[254]=1;var g7=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,A,r,n,i,s=e.length,o=0;for(n=0;n>>6,t[i++]=128|A&63):A<65536?(t[i++]=224|A>>>12,t[i++]=128|A>>>6&63,t[i++]=128|A&63):(t[i++]=240|A>>>18,t[i++]=128|A>>>12&63,t[i++]=128|A>>>6&63,t[i++]=128|A&63);return t};const m7=(e,t)=>{if(t<65534&&e.subarray&&UQ)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let A="";for(let r=0;r{const A=t||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let r,n;const i=new Array(A*2);for(n=0,r=0;r4){i[n++]=65533,r+=o-1;continue}for(s&=o===2?31:o===3?15:7;o>1&&r1){i[n++]=65533;continue}s<65536?i[n++]=s:(s-=65536,i[n++]=55296|s>>10&1023,i[n++]=56320|s&1023)}return m7(i,n)},w7=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let A=t-1;for(;A>=0&&(e[A]&192)===128;)A--;return A<0||A===0?t:A+vc[e[A]]>t?A:t},sm={string2buf:g7,buf2string:B7,utf8border:w7};function v7(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var y7=v7;const oh=16209,C7=16191;var F7=function(t,A){let r,n,i,s,o,a,l,c,d,p,h,y,C,U,B,v,F,b,k,D,W,H,N,X;const L=t.state;r=t.next_in,N=t.input,n=r+(t.avail_in-5),i=t.next_out,X=t.output,s=i-(A-t.avail_out),o=i+(t.avail_out-257),a=L.dmax,l=L.wsize,c=L.whave,d=L.wnext,p=L.window,h=L.hold,y=L.bits,C=L.lencode,U=L.distcode,B=(1<>>24,h>>>=b,y-=b,b=F>>>16&255,b===0)X[i++]=F&65535;else if(b&16){k=F&65535,b&=15,b&&(y>>=b,y-=b),y<15&&(h+=N[r++]<>>24,h>>>=b,y-=b,b=F>>>16&255,b&16){if(D=F&65535,b&=15,ya){t.msg="invalid distance too far back",L.mode=oh;break e}if(h>>>=b,y-=b,b=i-s,D>b){if(b=D-b,b>c&&L.sane){t.msg="invalid distance too far back",L.mode=oh;break e}if(W=0,H=p,d===0){if(W+=l-b,b2;)X[i++]=H[W++],X[i++]=H[W++],X[i++]=H[W++],k-=3;k&&(X[i++]=H[W++],k>1&&(X[i++]=H[W++]))}else{W=i-D;do X[i++]=X[W++],X[i++]=X[W++],X[i++]=X[W++],k-=3;while(k>2);k&&(X[i++]=X[W++],k>1&&(X[i++]=X[W++]))}}else if(b&64){t.msg="invalid distance code",L.mode=oh;break e}else{F=U[(F&65535)+(h&(1<>3,r-=k,y-=k<<3,h&=(1<{const a=o.bits;let l=0,c=0,d=0,p=0,h=0,y=0,C=0,U=0,B=0,v=0,F,b,k,D,W,H=null,N;const X=new Uint16Array(va+1),L=new Uint16Array(va+1);let T=null,V,z,le;for(l=0;l<=va;l++)X[l]=0;for(c=0;c=1&&X[p]===0;p--);if(h>p&&(h=p),p===0)return n[i++]=1<<24|64<<16|0,n[i++]=1<<24|64<<16|0,o.bits=1,0;for(d=1;d0&&(e===py||p!==1))return-1;for(L[1]=0,l=1;lhy||e===gy&&B>dy)return 1;for(;;){V=l-C,s[c]+1=N?(z=T[s[c]-N],le=H[s[c]-N]):(z=96,le=0),F=1<>C)+b]=V<<24|z<<16|le|0;while(b!==0);for(F=1<>=1;if(F!==0?(v&=F-1,v+=F):v=0,c++,--X[l]===0){if(l===p)break;l=t[A+s[c]]}if(l>h&&(v&D)!==k){for(C===0&&(C=h),W+=d,y=l-C,U=1<hy||e===gy&&B>dy)return 1;k=v&D,n[k]=h<<24|y<<16|W-i|0}}return v!==0&&(n[W+v]=l-C<<24|64<<16|0),o.bits=h,0};var qu=E7;const S7=0,EQ=1,SQ=2,{Z_FINISH:my,Z_BLOCK:L7,Z_TREES:ah,Z_OK:Wo,Z_STREAM_END:I7,Z_NEED_DICT:N7,Z_STREAM_ERROR:Fn,Z_DATA_ERROR:LQ,Z_MEM_ERROR:IQ,Z_BUF_ERROR:_7,Z_DEFLATED:By}=xQ,up=16180,wy=16181,vy=16182,yy=16183,Cy=16184,Fy=16185,by=16186,xy=16187,Qy=16188,Uy=16189,Sd=16190,Hi=16191,e0=16192,Ey=16193,t0=16194,Sy=16195,Ly=16196,Iy=16197,Ny=16198,lh=16199,uh=16200,_y=16201,ky=16202,Ty=16203,Hy=16204,Py=16205,A0=16206,Dy=16207,My=16208,tA=16209,NQ=16210,_Q=16211,k7=852,T7=592,H7=15,P7=H7,Oy=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function D7(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const Zo=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.mode_Q?1:0},kQ=e=>{if(Zo(e))return Fn;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=up,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(k7),t.distcode=t.distdyn=new Int32Array(T7),t.sane=1,t.back=-1,Wo},TQ=e=>{if(Zo(e))return Fn;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,kQ(e)},HQ=(e,t)=>{let A;if(Zo(e))return Fn;const r=e.state;return t<0?(A=0,t=-t):(A=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?Fn:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=A,r.wbits=t,TQ(e))},PQ=(e,t)=>{if(!e)return Fn;const A=new D7;e.state=A,A.strm=e,A.window=null,A.mode=up;const r=HQ(e,t);return r!==Wo&&(e.state=null),r},M7=e=>PQ(e,P7);let Ry=!0,r0,n0;const O7=e=>{if(Ry){r0=new Int32Array(512),n0=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(qu(EQ,e.lens,0,288,r0,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;qu(SQ,e.lens,0,32,n0,0,e.work,{bits:5}),Ry=!1}e.lencode=r0,e.lenbits=9,e.distcode=n0,e.distbits=5},DQ=(e,t,A,r)=>{let n;const i=e.state;return i.window===null&&(i.wsize=1<=i.wsize?(i.window.set(t.subarray(A-i.wsize,A),0),i.wnext=0,i.whave=i.wsize):(n=i.wsize-i.wnext,n>r&&(n=r),i.window.set(t.subarray(A-r,A-r+n),i.wnext),r-=n,r?(i.window.set(t.subarray(A-r,A),0),i.wnext=r,i.whave=i.wsize):(i.wnext+=n,i.wnext===i.wsize&&(i.wnext=0),i.whave{let A,r,n,i,s,o,a,l,c,d,p,h,y,C,U=0,B,v,F,b,k,D,W,H;const N=new Uint8Array(4);let X,L;const T=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Zo(e)||!e.output||!e.input&&e.avail_in!==0)return Fn;A=e.state,A.mode===Hi&&(A.mode=e0),s=e.next_out,n=e.output,a=e.avail_out,i=e.next_in,r=e.input,o=e.avail_in,l=A.hold,c=A.bits,d=o,p=a,H=Wo;e:for(;;)switch(A.mode){case up:if(A.wrap===0){A.mode=e0;break}for(;c<16;){if(o===0)break e;o--,l+=r[i++]<>>8&255,A.check=ri(A.check,N,2,0),l=0,c=0,A.mode=wy;break}if(A.head&&(A.head.done=!1),!(A.wrap&1)||(((l&255)<<8)+(l>>8))%31){e.msg="incorrect header check",A.mode=tA;break}if((l&15)!==By){e.msg="unknown compression method",A.mode=tA;break}if(l>>>=4,c-=4,W=(l&15)+8,A.wbits===0&&(A.wbits=W),W>15||W>A.wbits){e.msg="invalid window size",A.mode=tA;break}A.dmax=1<>8&1),A.flags&512&&A.wrap&4&&(N[0]=l&255,N[1]=l>>>8&255,A.check=ri(A.check,N,2,0)),l=0,c=0,A.mode=vy;case vy:for(;c<32;){if(o===0)break e;o--,l+=r[i++]<>>8&255,N[2]=l>>>16&255,N[3]=l>>>24&255,A.check=ri(A.check,N,4,0)),l=0,c=0,A.mode=yy;case yy:for(;c<16;){if(o===0)break e;o--,l+=r[i++]<>8),A.flags&512&&A.wrap&4&&(N[0]=l&255,N[1]=l>>>8&255,A.check=ri(A.check,N,2,0)),l=0,c=0,A.mode=Cy;case Cy:if(A.flags&1024){for(;c<16;){if(o===0)break e;o--,l+=r[i++]<>>8&255,A.check=ri(A.check,N,2,0)),l=0,c=0}else A.head&&(A.head.extra=null);A.mode=Fy;case Fy:if(A.flags&1024&&(h=A.length,h>o&&(h=o),h&&(A.head&&(W=A.head.extra_len-A.length,A.head.extra||(A.head.extra=new Uint8Array(A.head.extra_len)),A.head.extra.set(r.subarray(i,i+h),W)),A.flags&512&&A.wrap&4&&(A.check=ri(A.check,r,h,i)),o-=h,i+=h,A.length-=h),A.length))break e;A.length=0,A.mode=by;case by:if(A.flags&2048){if(o===0)break e;h=0;do W=r[i+h++],A.head&&W&&A.length<65536&&(A.head.name+=String.fromCharCode(W));while(W&&h>9&1,A.head.done=!0),e.adler=A.check=0,A.mode=Hi;break;case Uy:for(;c<32;){if(o===0)break e;o--,l+=r[i++]<>>=c&7,c-=c&7,A.mode=A0;break}for(;c<3;){if(o===0)break e;o--,l+=r[i++]<>>=1,c-=1,l&3){case 0:A.mode=Ey;break;case 1:if(O7(A),A.mode=lh,t===ah){l>>>=2,c-=2;break e}break;case 2:A.mode=Ly;break;case 3:e.msg="invalid block type",A.mode=tA}l>>>=2,c-=2;break;case Ey:for(l>>>=c&7,c-=c&7;c<32;){if(o===0)break e;o--,l+=r[i++]<>>16^65535)){e.msg="invalid stored block lengths",A.mode=tA;break}if(A.length=l&65535,l=0,c=0,A.mode=t0,t===ah)break e;case t0:A.mode=Sy;case Sy:if(h=A.length,h){if(h>o&&(h=o),h>a&&(h=a),h===0)break e;n.set(r.subarray(i,i+h),s),o-=h,i+=h,a-=h,s+=h,A.length-=h;break}A.mode=Hi;break;case Ly:for(;c<14;){if(o===0)break e;o--,l+=r[i++]<>>=5,c-=5,A.ndist=(l&31)+1,l>>>=5,c-=5,A.ncode=(l&15)+4,l>>>=4,c-=4,A.nlen>286||A.ndist>30){e.msg="too many length or distance symbols",A.mode=tA;break}A.have=0,A.mode=Iy;case Iy:for(;A.have>>=3,c-=3}for(;A.have<19;)A.lens[T[A.have++]]=0;if(A.lencode=A.lendyn,A.lenbits=7,X={bits:A.lenbits},H=qu(S7,A.lens,0,19,A.lencode,0,A.work,X),A.lenbits=X.bits,H){e.msg="invalid code lengths set",A.mode=tA;break}A.have=0,A.mode=Ny;case Ny:for(;A.have>>24,v=U>>>16&255,F=U&65535,!(B<=c);){if(o===0)break e;o--,l+=r[i++]<>>=B,c-=B,A.lens[A.have++]=F;else{if(F===16){for(L=B+2;c>>=B,c-=B,A.have===0){e.msg="invalid bit length repeat",A.mode=tA;break}W=A.lens[A.have-1],h=3+(l&3),l>>>=2,c-=2}else if(F===17){for(L=B+3;c>>=B,c-=B,W=0,h=3+(l&7),l>>>=3,c-=3}else{for(L=B+7;c>>=B,c-=B,W=0,h=11+(l&127),l>>>=7,c-=7}if(A.have+h>A.nlen+A.ndist){e.msg="invalid bit length repeat",A.mode=tA;break}for(;h--;)A.lens[A.have++]=W}}if(A.mode===tA)break;if(A.lens[256]===0){e.msg="invalid code -- missing end-of-block",A.mode=tA;break}if(A.lenbits=9,X={bits:A.lenbits},H=qu(EQ,A.lens,0,A.nlen,A.lencode,0,A.work,X),A.lenbits=X.bits,H){e.msg="invalid literal/lengths set",A.mode=tA;break}if(A.distbits=6,A.distcode=A.distdyn,X={bits:A.distbits},H=qu(SQ,A.lens,A.nlen,A.ndist,A.distcode,0,A.work,X),A.distbits=X.bits,H){e.msg="invalid distances set",A.mode=tA;break}if(A.mode=lh,t===ah)break e;case lh:A.mode=uh;case uh:if(o>=6&&a>=258){e.next_out=s,e.avail_out=a,e.next_in=i,e.avail_in=o,A.hold=l,A.bits=c,F7(e,p),s=e.next_out,n=e.output,a=e.avail_out,i=e.next_in,r=e.input,o=e.avail_in,l=A.hold,c=A.bits,A.mode===Hi&&(A.back=-1);break}for(A.back=0;U=A.lencode[l&(1<>>24,v=U>>>16&255,F=U&65535,!(B<=c);){if(o===0)break e;o--,l+=r[i++]<>b)],B=U>>>24,v=U>>>16&255,F=U&65535,!(b+B<=c);){if(o===0)break e;o--,l+=r[i++]<>>=b,c-=b,A.back+=b}if(l>>>=B,c-=B,A.back+=B,A.length=F,v===0){A.mode=Py;break}if(v&32){A.back=-1,A.mode=Hi;break}if(v&64){e.msg="invalid literal/length code",A.mode=tA;break}A.extra=v&15,A.mode=_y;case _y:if(A.extra){for(L=A.extra;c>>=A.extra,c-=A.extra,A.back+=A.extra}A.was=A.length,A.mode=ky;case ky:for(;U=A.distcode[l&(1<>>24,v=U>>>16&255,F=U&65535,!(B<=c);){if(o===0)break e;o--,l+=r[i++]<>b)],B=U>>>24,v=U>>>16&255,F=U&65535,!(b+B<=c);){if(o===0)break e;o--,l+=r[i++]<>>=b,c-=b,A.back+=b}if(l>>>=B,c-=B,A.back+=B,v&64){e.msg="invalid distance code",A.mode=tA;break}A.offset=F,A.extra=v&15,A.mode=Ty;case Ty:if(A.extra){for(L=A.extra;c>>=A.extra,c-=A.extra,A.back+=A.extra}if(A.offset>A.dmax){e.msg="invalid distance too far back",A.mode=tA;break}A.mode=Hy;case Hy:if(a===0)break e;if(h=p-a,A.offset>h){if(h=A.offset-h,h>A.whave&&A.sane){e.msg="invalid distance too far back",A.mode=tA;break}h>A.wnext?(h-=A.wnext,y=A.wsize-h):y=A.wnext-h,h>A.length&&(h=A.length),C=A.window}else C=n,y=s-A.offset,h=A.length;h>a&&(h=a),a-=h,A.length-=h;do n[s++]=C[y++];while(--h);A.length===0&&(A.mode=uh);break;case Py:if(a===0)break e;n[s++]=A.length,a--,A.mode=uh;break;case A0:if(A.wrap){for(;c<32;){if(o===0)break e;o--,l|=r[i++]<{if(Zo(e))return Fn;let t=e.state;return t.window&&(t.window=null),e.state=null,Wo},j7=(e,t)=>{if(Zo(e))return Fn;const A=e.state;return A.wrap&2?(A.head=t,t.done=!1,Wo):Fn},V7=(e,t)=>{const A=t.length;let r,n,i;return Zo(e)||(r=e.state,r.wrap!==0&&r.mode!==Sd)?Fn:r.mode===Sd&&(n=1,n=nm(n,t,A,0),n!==r.check)?LQ:(i=DQ(e,t,A,A),i?(r.mode=NQ,IQ):(r.havedict=1,Wo))};var G7=TQ,z7=HQ,W7=kQ,q7=M7,X7=PQ,J7=R7,Y7=K7,Z7=j7,$7=V7,eD="pako inflate (from Nodeca project)",Oi={inflateReset:G7,inflateReset2:z7,inflateResetKeep:W7,inflateInit:q7,inflateInit2:X7,inflate:J7,inflateEnd:Y7,inflateGetHeader:Z7,inflateSetDictionary:$7,inflateInfo:eD};function tD(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var AD=tD;const MQ=Object.prototype.toString,{Z_NO_FLUSH:rD,Z_FINISH:nD,Z_OK:yc,Z_STREAM_END:i0,Z_NEED_DICT:s0,Z_STREAM_ERROR:iD,Z_DATA_ERROR:Ky,Z_MEM_ERROR:sD}=xQ;function _c(e){this.options=QQ.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new y7,this.strm.avail_out=0;let A=Oi.inflateInit2(this.strm,t.windowBits);if(A!==yc)throw new Error(im[A]);if(this.header=new AD,Oi.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=sm.string2buf(t.dictionary):MQ.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(A=Oi.inflateSetDictionary(this.strm,t.dictionary),A!==yc)))throw new Error(im[A])}_c.prototype.push=function(e,t){const A=this.strm,r=this.options.chunkSize,n=this.options.dictionary;let i,s,o;if(this.ended)return!1;for(t===~~t?s=t:s=t===!0?nD:rD,MQ.call(e)==="[object ArrayBuffer]"?A.input=new Uint8Array(e):A.input=e,A.next_in=0,A.avail_in=A.input.length;;){for(A.avail_out===0&&(A.output=new Uint8Array(r),A.next_out=0,A.avail_out=r),i=Oi.inflate(A,s),i===s0&&n&&(i=Oi.inflateSetDictionary(A,n),i===yc?i=Oi.inflate(A,s):i===Ky&&(i=s0));A.avail_in>0&&i===i0&&A.state.wrap>0&&e[A.next_in]!==0;)Oi.inflateReset(A),i=Oi.inflate(A,s);switch(i){case iD:case Ky:case s0:case sD:return this.onEnd(i),this.ended=!0,!1}if(o=A.avail_out,A.next_out&&(A.avail_out===0||i===i0))if(this.options.to==="string"){let a=sm.utf8border(A.output,A.next_out),l=A.next_out-a,c=sm.buf2string(A.output,a);A.next_out=l,A.avail_out=r-l,l&&A.output.set(A.output.subarray(a,a+l),0),this.onData(c)}else this.onData(A.output.length===A.next_out?A.output:A.output.subarray(0,A.next_out));if(!(i===yc&&o===0)){if(i===i0)return i=Oi.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,!0;if(A.avail_in===0)break}}return!0};_c.prototype.onData=function(e){this.chunks.push(e)};_c.prototype.onEnd=function(e){e===yc&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=QQ.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function oD(e,t){const A=new _c(t);if(A.push(e),A.err)throw A.msg||im[A.err];return A.result}var aD=_c,lD=oD,uD={Inflate:aD,inflate:lD};const{Inflate:cD,inflate:fD}=uD;var jy=cD,hD=fD;const OQ=[];for(let e=0;e<256;e++){let t=e;for(let A=0;A<8;A++)t&1?t=3988292384^t>>>1:t=t>>>1;OQ[e]=t}const Vy=4294967295;function dD(e,t,A){let r=e;for(let n=0;n>>8;return r}function pD(e,t){return(dD(Vy,e,t)^Vy)>>>0}function Gy(e,t,A){const r=e.readUint32(),n=pD(new Uint8Array(e.buffer,e.byteOffset+e.offset-t-4,t),t);if(n!==r)throw new Error(`CRC mismatch for chunk ${A}. Expected ${r}, found ${n}`)}function RQ(e,t,A){for(let r=0;r>1)&255}else{for(;i>1)&255;for(;i>1)&255}}function GQ(e,t,A,r,n){let i=0;if(A.length===0){for(;i=A||D>=r))for(let W=0;W>8&255}const FD=new Uint16Array([255]),bD=new Uint8Array(FD.buffer),xD=bD[0]===255,QD=new Uint8Array(0);function zy(e){const{data:t,width:A,height:r,channels:n,depth:i}=e,s=Math.ceil(i/8)*n,o=Math.ceil(i/8*n*A),a=new Uint8Array(r*o);let l=QD,c=0,d,p;for(let h=0;h>8&255}const Th=Uint8Array.of(137,80,78,71,13,10,26,10);function Wy(e){if(!ED(e.readBytes(Th.length)))throw new Error("wrong PNG signature")}function ED(e){if(e.length79)throw new Error("keyword length must be between 1 and 79")}const ND=/^[\u0000-\u00FF]*$/;function _D(e){if(!ND.test(e))throw new Error("invalid latin1 text")}function kD(e,t,A){const r=WQ(t);e[r]=TD(t,A-r.length-1)}function WQ(e){for(e.mark();e.readByte()!==LD;);const t=e.offset;e.reset();const A=zQ.decode(e.readBytes(t-e.offset-1));return e.skip(1),ID(A),A}function TD(e,t){return zQ.decode(e.readBytes(t))}const jr={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},o0={UNKNOWN:-1,DEFLATE:0},qy={UNKNOWN:-1,ADAPTIVE:0},a0={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},ch={NONE:0,BACKGROUND:1,PREVIOUS:2},l0={SOURCE:0,OVER:1};class HD extends J2{constructor(A,r={}){super(A);kt(this,"_checkCrc");kt(this,"_inflator");kt(this,"_png");kt(this,"_apng");kt(this,"_end");kt(this,"_hasPalette");kt(this,"_palette");kt(this,"_hasTransparency");kt(this,"_transparency");kt(this,"_compressionMethod");kt(this,"_filterMethod");kt(this,"_interlaceMethod");kt(this,"_colorType");kt(this,"_isAnimated");kt(this,"_numberOfFrames");kt(this,"_numberOfPlays");kt(this,"_frames");kt(this,"_writingDataChunks");const{checkCrc:n=!1}=r;this._checkCrc=n,this._inflator=new jy,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=o0.UNKNOWN,this._filterMethod=qy.UNKNOWN,this._interlaceMethod=a0.UNKNOWN,this._colorType=jr.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(Wy(this);!this._end;){const A=this.readUint32(),r=this.readChars(4);this.decodeChunk(A,r)}return this.decodeImage(),this._png}decodeApng(){for(Wy(this);!this._end;){const A=this.readUint32(),r=this.readChars(4);this.decodeApngChunk(A,r)}return this.decodeApngImage(),this._apng}decodeChunk(A,r){const n=this.offset;switch(r){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(A);break;case"IDAT":this.decodeIDAT(A);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(A);break;case"iCCP":this.decodeiCCP(A);break;case SD:kD(this._png.text,this,A);break;case"pHYs":this.decodepHYs();break;default:this.skip(A);break}if(this.offset-n!==A)throw new Error(`Length mismatch while decoding chunk ${r}`);this._checkCrc?Gy(this,A+4,r):this.skip(4)}decodeApngChunk(A,r){const n=this.offset;switch(r!=="fdAT"&&r!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),r){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(A);break;default:this.decodeChunk(A,r),this.offset=n+A;break}if(this.offset-n!==A)throw new Error(`Length mismatch while decoding chunk ${r}`);this._checkCrc?Gy(this,A+4,r):this.skip(4)}decodeIHDR(){const A=this._png;A.width=this.readUint32(),A.height=this.readUint32(),A.depth=PD(this.readUint8());const r=this.readUint8();this._colorType=r;let n;switch(r){case jr.GREYSCALE:n=1;break;case jr.TRUECOLOUR:n=3;break;case jr.INDEXED_COLOUR:n=1;break;case jr.GREYSCALE_ALPHA:n=2;break;case jr.TRUECOLOUR_ALPHA:n=4;break;case jr.UNKNOWN:default:throw new Error(`Unknown color type: ${r}`)}if(this._png.channels=n,this._compressionMethod=this.readUint8(),this._compressionMethod!==o0.DEFLATE)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){const A={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(A)}decodePLTE(A){if(A%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${A}`);const r=A/3;this._hasPalette=!0;const n=[];this._palette=n;for(let i=0;ithis._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${A/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(A/2);for(let r=0;rthis._palette.length)throw new Error(`tRNS chunk contains more alpha values than there are palette colors (${A} vs ${this._palette.length})`);let r=0;for(;r{const a=((s+r.yOffset)*this._png.width+r.xOffset+o)*this._png.channels,l=(s*r.width+o)*this._png.channels;return{index:a,frameIndex:l}};switch(r.blendOp){case l0.SOURCE:for(let s=0;s=200&&t.status<=299}function fh(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var Uo=tt.saveAs||((typeof window>"u"?"undefined":Tt(window))!=="object"||window!==tt?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(e,t,A){var r=tt.URL||tt.webkitURL,n=document.createElement("a");t=t||e.name||"download",n.download=t,n.rel="noopener",typeof e=="string"?(n.href=e,n.origin!==location.origin?Jy(n.href)?c0(e,t,A):fh(n,n.target="_blank"):fh(n)):(n.href=r.createObjectURL(e),setTimeout(function(){r.revokeObjectURL(n.href)},4e4),setTimeout(function(){fh(n)},0))}:"msSaveOrOpenBlob"in navigator?function(e,t,A){if(t=t||e.name||"download",typeof e=="string")if(Jy(e))c0(e,t,A);else{var r=document.createElement("a");r.href=e,r.target="_blank",setTimeout(function(){fh(r)})}else navigator.msSaveOrOpenBlob(function(n,i){return i===void 0?i={autoBom:!1}:Tt(i)!=="object"&&(Ot.warn("Deprecated: Expected third argument to be a object"),i={autoBom:!i}),i.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(n.type)?new Blob(["\uFEFF",n],{type:n.type}):n}(e,A),t)}:function(e,t,A,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),typeof e=="string")return c0(e,t,A);var n=e.type==="application/octet-stream",i=/constructor/i.test(tt.HTMLElement)||tt.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||n&&i)&&(typeof FileReader>"u"?"undefined":Tt(FileReader))==="object"){var o=new FileReader;o.onloadend=function(){var c=o.result;c=s?c:c.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=c:location=c,r=null},o.readAsDataURL(e)}else{var a=tt.URL||tt.webkitURL,l=a.createObjectURL(e);r?r.location=l:location.href=l,r=null,setTimeout(function(){a.revokeObjectURL(l)},4e4)}});/** * A class to parse color values * @author Stoyan Stefanov * {@link http://www.phpied.com/rgb-color-parser-in-javascript/} * @license Use it if you like it */function qQ(e){var t;e=e||"",this.ok=!1,e.charAt(0)=="#"&&(e=e.substr(1,6)),e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[e=(e=e.replace(/ /g,"")).toLowerCase()]||e;for(var A=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(o){return[parseInt(o[1]),parseInt(o[2]),parseInt(o[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(o){return[parseInt(o[1],16),parseInt(o[2],16),parseInt(o[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(o){return[parseInt(o[1]+o[1],16),parseInt(o[2]+o[2],16),parseInt(o[3]+o[3],16)]}}],r=0;r255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var o=this.r.toString(16),a=this.g.toString(16),l=this.b.toString(16);return o.length==1&&(o="0"+o),a.length==1&&(a="0"+a),l.length==1&&(l="0"+l),"#"+o+a+l}}var Hh=tt.atob.bind(tt),Yy=tt.btoa.bind(tt);/** * @license * Joseph Myers does not specify a particular license for his work. * * Author: Joseph Myers * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js * * Modified by: Owen Leong */function f0(e,t){var A=e[0],r=e[1],n=e[2],i=e[3];A=or(A,r,n,i,t[0],7,-680876936),i=or(i,A,r,n,t[1],12,-389564586),n=or(n,i,A,r,t[2],17,606105819),r=or(r,n,i,A,t[3],22,-1044525330),A=or(A,r,n,i,t[4],7,-176418897),i=or(i,A,r,n,t[5],12,1200080426),n=or(n,i,A,r,t[6],17,-1473231341),r=or(r,n,i,A,t[7],22,-45705983),A=or(A,r,n,i,t[8],7,1770035416),i=or(i,A,r,n,t[9],12,-1958414417),n=or(n,i,A,r,t[10],17,-42063),r=or(r,n,i,A,t[11],22,-1990404162),A=or(A,r,n,i,t[12],7,1804603682),i=or(i,A,r,n,t[13],12,-40341101),n=or(n,i,A,r,t[14],17,-1502002290),A=ar(A,r=or(r,n,i,A,t[15],22,1236535329),n,i,t[1],5,-165796510),i=ar(i,A,r,n,t[6],9,-1069501632),n=ar(n,i,A,r,t[11],14,643717713),r=ar(r,n,i,A,t[0],20,-373897302),A=ar(A,r,n,i,t[5],5,-701558691),i=ar(i,A,r,n,t[10],9,38016083),n=ar(n,i,A,r,t[15],14,-660478335),r=ar(r,n,i,A,t[4],20,-405537848),A=ar(A,r,n,i,t[9],5,568446438),i=ar(i,A,r,n,t[14],9,-1019803690),n=ar(n,i,A,r,t[3],14,-187363961),r=ar(r,n,i,A,t[8],20,1163531501),A=ar(A,r,n,i,t[13],5,-1444681467),i=ar(i,A,r,n,t[2],9,-51403784),n=ar(n,i,A,r,t[7],14,1735328473),A=lr(A,r=ar(r,n,i,A,t[12],20,-1926607734),n,i,t[5],4,-378558),i=lr(i,A,r,n,t[8],11,-2022574463),n=lr(n,i,A,r,t[11],16,1839030562),r=lr(r,n,i,A,t[14],23,-35309556),A=lr(A,r,n,i,t[1],4,-1530992060),i=lr(i,A,r,n,t[4],11,1272893353),n=lr(n,i,A,r,t[7],16,-155497632),r=lr(r,n,i,A,t[10],23,-1094730640),A=lr(A,r,n,i,t[13],4,681279174),i=lr(i,A,r,n,t[0],11,-358537222),n=lr(n,i,A,r,t[3],16,-722521979),r=lr(r,n,i,A,t[6],23,76029189),A=lr(A,r,n,i,t[9],4,-640364487),i=lr(i,A,r,n,t[12],11,-421815835),n=lr(n,i,A,r,t[15],16,530742520),A=ur(A,r=lr(r,n,i,A,t[2],23,-995338651),n,i,t[0],6,-198630844),i=ur(i,A,r,n,t[7],10,1126891415),n=ur(n,i,A,r,t[14],15,-1416354905),r=ur(r,n,i,A,t[5],21,-57434055),A=ur(A,r,n,i,t[12],6,1700485571),i=ur(i,A,r,n,t[3],10,-1894986606),n=ur(n,i,A,r,t[10],15,-1051523),r=ur(r,n,i,A,t[1],21,-2054922799),A=ur(A,r,n,i,t[8],6,1873313359),i=ur(i,A,r,n,t[15],10,-30611744),n=ur(n,i,A,r,t[6],15,-1560198380),r=ur(r,n,i,A,t[13],21,1309151649),A=ur(A,r,n,i,t[4],6,-145523070),i=ur(i,A,r,n,t[11],10,-1120210379),n=ur(n,i,A,r,t[2],15,718787259),r=ur(r,n,i,A,t[9],21,-343485551),e[0]=Ts(A,e[0]),e[1]=Ts(r,e[1]),e[2]=Ts(n,e[2]),e[3]=Ts(i,e[3])}function cp(e,t,A,r,n,i){return t=Ts(Ts(t,e),Ts(r,i)),Ts(t<>>32-n,A)}function or(e,t,A,r,n,i,s){return cp(t&A|~t&r,e,t,n,i,s)}function ar(e,t,A,r,n,i,s){return cp(t&r|A&~r,e,t,n,i,s)}function lr(e,t,A,r,n,i,s){return cp(t^A^r,e,t,n,i,s)}function ur(e,t,A,r,n,i,s){return cp(A^(t|~r),e,t,n,i,s)}function XQ(e){var t,A=e.length,r=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)f0(r,MD(e.substring(t-64,t)));e=e.substring(t-64);var n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t>2]|=e.charCodeAt(t)<<(t%4<<3);if(n[t>>2]|=128<<(t%4<<3),t>55)for(f0(r,n),t=0;t<16;t++)n[t]=0;return n[14]=8*A,f0(r,n),r}function MD(e){var t,A=[];for(t=0;t<64;t+=4)A[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return A}var Zy="0123456789abcdef".split("");function OD(e){for(var t="",A=0;A<4;A++)t+=Zy[e>>8*A+4&15]+Zy[e>>8*A&15];return t}function RD(e){return String.fromCharCode(255&e,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function om(e){return XQ(e).map(RD).join("")}var KD=function(e){for(var t=0;t>16)+(t>>16)+(A>>16)<<16|65535&A}return e+t&4294967295}/** * @license * FPDF is released under a permissive license: there is no usage restriction. * You may embed it freely in your application (commercial or not), with or * without modifications. * * Reference: http://www.fpdf.org/en/script/script37.php */function am(e,t){var A,r,n,i;if(e!==A){for(var s=(n=e,i=1+(256/e.length|0),new Array(i+1).join(n)),o=[],a=0;a<256;a++)o[a]=a;var l=0;for(a=0;a<256;a++){var c=o[a];l=(l+c+s.charCodeAt(a))%256,o[a]=o[l],o[l]=c}A=e,r=o}else o=r;var d=t.length,p=0,h=0,y="";for(a=0;a€/\f©þdSiz";var i=(t+this.padding).substr(0,32),s=(A+this.padding).substr(0,32);this.O=this.processOwnerPassword(i,s),this.P=-(1+(255^n)),this.encryptionKey=om(i+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=am(this.encryptionKey,this.padding)}function Qa(e){if(/[^\u0000-\u00ff]/.test(e))throw new Error("Invalid PDF Name Object: "+e+", Only accept ASCII characters.");for(var t="",A=e.length,r=0;r126?"#"+("0"+n.toString(16)).slice(-2):e[r]}return t}function eC(e){if(Tt(e)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(A,r,n){if(n=n||!1,typeof A!="string"||typeof r!="function"||typeof n!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(A)||(t[A]={});var i=Math.random().toString(35);return t[A][i]=[r,!!n],i},this.unsubscribe=function(A){for(var r in t)if(t[r][A])return delete t[r][A],Object.keys(t[r]).length===0&&delete t[r],!0;return!1},this.publish=function(A){if(t.hasOwnProperty(A)){var r=Array.prototype.slice.call(arguments,1),n=[];for(var i in t[A]){var s=t[A][i];try{s[0].apply(e,r)}catch(o){tt.console&&Ot.error("jsPDF PubSub Error",o.message,o)}s[1]&&n.push(i)}n.length&&n.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function Ld(e){if(!(this instanceof Ld))return new Ld(e);var t="opacity,stroke-opacity".split(",");for(var A in e)e.hasOwnProperty(A)&&t.indexOf(A)>=0&&(this[A]=e[A]);this.id="",this.objectNumber=-1}function JQ(e,t){this.gState=e,this.matrix=t,this.id="",this.objectNumber=-1}function So(e,t,A,r,n){if(!(this instanceof So))return new So(e,t,A,r,n);this.type=e==="axial"?2:3,this.coords=t,this.colors=A,JQ.call(this,r,n)}function Ga(e,t,A,r,n){if(!(this instanceof Ga))return new Ga(e,t,A,r,n);this.boundingBox=e,this.xStep=t,this.yStep=A,this.stream="",this.cloneIndex=0,JQ.call(this,r,n)}function je(e){var t,A=typeof arguments[0]=="string"?arguments[0]:"p",r=arguments[1],n=arguments[2],i=arguments[3],s=[],o=1,a=16,l="S",c=null;Tt(e=e||{})==="object"&&(A=e.orientation,r=e.unit||r,n=e.format||n,i=e.compress||e.compressPdf||i,(c=e.encryption||null)!==null&&(c.userPassword=c.userPassword||"",c.ownerPassword=c.ownerPassword||"",c.userPermissions=c.userPermissions||[]),o=typeof e.userUnit=="number"?Math.abs(e.userUnit):1,e.precision!==void 0&&(t=e.precision),e.floatPrecision!==void 0&&(a=e.floatPrecision),l=e.defaultPathOperation||"S"),s=e.filters||(i===!0?["FlateEncode"]:s),r=r||"mm",A=(""+(A||"P")).toLowerCase();var d=e.putOnlyUsedFonts||!1,p={},h={internal:{},__private__:{}};h.__private__.PubSub=eC;var y="1.3",C=h.__private__.getPdfVersion=function(){return y};h.__private__.setPdfVersion=function(g){y=g};var U={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};h.__private__.getPageFormats=function(){return U};var B=h.__private__.getPageFormat=function(g){return U[g]};n=n||"a4";var v="compat",F="advanced",b=v;function k(){this.saveGraphicsState(),M(new Ze(at,0,0,-at,0,uo()*at).toString()+" cm"),this.setFontSize(this.getFontSize()/at),l="n",b=F}function D(){this.restoreGraphicsState(),l="S",b=v}var W=h.__private__.combineFontStyleAndFontWeight=function(g,x){if(g=="bold"&&x=="normal"||g=="bold"&&x==400||g=="normal"&&x=="italic"||g=="bold"&&x=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return x&&(g=x==400||x==="normal"?g==="italic"?"italic":"normal":x!=700&&x!=="bold"||g!=="normal"?(x==700?"bold":x)+""+g:"bold"),g};h.advancedAPI=function(g){var x=b===v;return x&&k.call(this),typeof g!="function"||(g(this),x&&D.call(this)),this},h.compatAPI=function(g){var x=b===F;return x&&D.call(this),typeof g!="function"||(g(this),x&&k.call(this)),this},h.isAdvancedAPI=function(){return b===F};var H,N=function(g){if(b!==F)throw new Error(g+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},X=h.roundToPrecision=h.__private__.roundToPrecision=function(g,x){var K=t||x;if(isNaN(g)||isNaN(K))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return g.toFixed(K).replace(/0+$/,"")};H=h.hpf=h.__private__.hpf=typeof a=="number"?function(g){if(isNaN(g))throw new Error("Invalid argument passed to jsPDF.hpf");return X(g,a)}:a==="smart"?function(g){if(isNaN(g))throw new Error("Invalid argument passed to jsPDF.hpf");return X(g,g>-1&&g<1?16:5)}:function(g){if(isNaN(g))throw new Error("Invalid argument passed to jsPDF.hpf");return X(g,16)};var L=h.f2=h.__private__.f2=function(g){if(isNaN(g))throw new Error("Invalid argument passed to jsPDF.f2");return X(g,2)},T=h.__private__.f3=function(g){if(isNaN(g))throw new Error("Invalid argument passed to jsPDF.f3");return X(g,3)},V=h.scale=h.__private__.scale=function(g){if(isNaN(g))throw new Error("Invalid argument passed to jsPDF.scale");return b===v?g*at:b===F?g:void 0},z=function(g){return V(function(x){return b===v?uo()-x:b===F?x:void 0}(g))};h.__private__.setPrecision=h.setPrecision=function(g){typeof parseInt(g,10)=="number"&&(t=parseInt(g,10))};var le,ue="00000000000000000000000000000000",ie=h.__private__.getFileId=function(){return ue},q=h.__private__.setFileId=function(g){return ue=g!==void 0&&/^[a-fA-F0-9]{32}$/.test(g)?g.toUpperCase():ue.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),c!==null&&(IA=new xa(c.userPermissions,c.userPassword,c.ownerPassword,ue)),ue};h.setFileId=function(g){return q(g),this},h.getFileId=function(){return ie()};var te=h.__private__.convertDateToPDFDate=function(g){var x=g.getTimezoneOffset(),K=x<0?"+":"-",J=Math.floor(Math.abs(x/60)),Ae=Math.abs(x%60),me=[K,G(J),"'",G(Ae),"'"].join("");return["D:",g.getFullYear(),G(g.getMonth()+1),G(g.getDate()),G(g.getHours()),G(g.getMinutes()),G(g.getSeconds()),me].join("")},fe=h.__private__.convertPDFDateToDate=function(g){var x=parseInt(g.substr(2,4),10),K=parseInt(g.substr(6,2),10)-1,J=parseInt(g.substr(8,2),10),Ae=parseInt(g.substr(10,2),10),me=parseInt(g.substr(12,2),10),ve=parseInt(g.substr(14,2),10);return new Date(x,K,J,Ae,me,ve,0)},ce=h.__private__.setCreationDate=function(g){var x;if(g===void 0&&(g=new Date),g instanceof Date)x=te(g);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(g))throw new Error("Invalid argument passed to jsPDF.setCreationDate");x=g}return le=x},E=h.__private__.getCreationDate=function(g){var x=le;return g==="jsDate"&&(x=fe(le)),x};h.setCreationDate=function(g){return ce(g),this},h.getCreationDate=function(g){return E(g)};var j,G=h.__private__.padd2=function(g){return("0"+parseInt(g)).slice(-2)},Y=h.__private__.padd2Hex=function(g){return("00"+(g=g.toString())).substr(g.length)},$=0,re=[],he=[],de=0,we=[],xe=[],Le=!1,Ee=he;h.__private__.setCustomOutputDestination=function(g){Le=!0,Ee=g};var Ge=function(g){Le||(Ee=g)};h.__private__.resetCustomOutputDestination=function(){Le=!1,Ee=he};var M=h.__private__.out=function(g){return g=g.toString(),de+=g.length+1,Ee.push(g),Ee},Ue=h.__private__.write=function(g){return M(arguments.length===1?g.toString():Array.prototype.join.call(arguments," "))},ht=h.__private__.getArrayBuffer=function(g){for(var x=g.length,K=new ArrayBuffer(x),J=new Uint8Array(K);x--;)J[x]=g.charCodeAt(x);return K},Xe=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];h.__private__.getStandardFonts=function(){return Xe};var Ce=e.fontSize||16;h.__private__.setFontSize=h.setFontSize=function(g){return Ce=b===F?g/at:g,this};var Je,Te=h.__private__.getFontSize=h.getFontSize=function(){return b===v?Ce:Ce*at},qe=e.R2L||!1;h.__private__.setR2L=h.setR2L=function(g){return qe=g,this},h.__private__.getR2L=h.getR2L=function(){return qe};var ze,Et=h.__private__.setZoomMode=function(g){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(g))Je=g;else if(isNaN(g)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(g)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+g+'" is not recognized.');Je=g}else Je=parseInt(g,10)};h.__private__.getZoomMode=function(){return Je};var Bt,it=h.__private__.setPageMode=function(g){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(g)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+g+'" is not recognized.');ze=g};h.__private__.getPageMode=function(){return ze};var yt=h.__private__.setLayoutMode=function(g){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(g)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+g+'" is not recognized.');Bt=g};h.__private__.getLayoutMode=function(){return Bt},h.__private__.setDisplayMode=h.setDisplayMode=function(g,x,K){return Et(g),yt(x),it(K),this};var wt={title:"",subject:"",author:"",keywords:"",creator:""};h.__private__.getDocumentProperty=function(g){if(Object.keys(wt).indexOf(g)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return wt[g]},h.__private__.getDocumentProperties=function(){return wt},h.__private__.setDocumentProperties=h.setProperties=h.setDocumentProperties=function(g){for(var x in wt)wt.hasOwnProperty(x)&&g[x]&&(wt[x]=g[x]);return this},h.__private__.setDocumentProperty=function(g,x){if(Object.keys(wt).indexOf(g)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return wt[g]=x};var Oe,at,Ve,dA,bt,dt={},pt={},Zt=[],We={},Rt={},et={},st={},$t=null,gt=0,Ye=[],St=new eC(h),Ao=e.hotfixes||[],rr={},pi={},zn=[],Ze=function g(x,K,J,Ae,me,ve){if(!(this instanceof g))return new g(x,K,J,Ae,me,ve);isNaN(x)&&(x=1),isNaN(K)&&(K=0),isNaN(J)&&(J=0),isNaN(Ae)&&(Ae=1),isNaN(me)&&(me=0),isNaN(ve)&&(ve=0),this._matrix=[x,K,J,Ae,me,ve]};Object.defineProperty(Ze.prototype,"sx",{get:function(){return this._matrix[0]},set:function(g){this._matrix[0]=g}}),Object.defineProperty(Ze.prototype,"shy",{get:function(){return this._matrix[1]},set:function(g){this._matrix[1]=g}}),Object.defineProperty(Ze.prototype,"shx",{get:function(){return this._matrix[2]},set:function(g){this._matrix[2]=g}}),Object.defineProperty(Ze.prototype,"sy",{get:function(){return this._matrix[3]},set:function(g){this._matrix[3]=g}}),Object.defineProperty(Ze.prototype,"tx",{get:function(){return this._matrix[4]},set:function(g){this._matrix[4]=g}}),Object.defineProperty(Ze.prototype,"ty",{get:function(){return this._matrix[5]},set:function(g){this._matrix[5]=g}}),Object.defineProperty(Ze.prototype,"a",{get:function(){return this._matrix[0]},set:function(g){this._matrix[0]=g}}),Object.defineProperty(Ze.prototype,"b",{get:function(){return this._matrix[1]},set:function(g){this._matrix[1]=g}}),Object.defineProperty(Ze.prototype,"c",{get:function(){return this._matrix[2]},set:function(g){this._matrix[2]=g}}),Object.defineProperty(Ze.prototype,"d",{get:function(){return this._matrix[3]},set:function(g){this._matrix[3]=g}}),Object.defineProperty(Ze.prototype,"e",{get:function(){return this._matrix[4]},set:function(g){this._matrix[4]=g}}),Object.defineProperty(Ze.prototype,"f",{get:function(){return this._matrix[5]},set:function(g){this._matrix[5]=g}}),Object.defineProperty(Ze.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Ze.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Ze.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Ze.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Ze.prototype.join=function(g){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(H).join(g)},Ze.prototype.multiply=function(g){var x=g.sx*this.sx+g.shy*this.shx,K=g.sx*this.shy+g.shy*this.sy,J=g.shx*this.sx+g.sy*this.shx,Ae=g.shx*this.shy+g.sy*this.sy,me=g.tx*this.sx+g.ty*this.shx+this.tx,ve=g.tx*this.shy+g.ty*this.sy+this.ty;return new Ze(x,K,J,Ae,me,ve)},Ze.prototype.decompose=function(){var g=this.sx,x=this.shy,K=this.shx,J=this.sy,Ae=this.tx,me=this.ty,ve=Math.sqrt(g*g+x*x),Pe=(g/=ve)*K+(x/=ve)*J;K-=g*Pe,J-=x*Pe;var Re=Math.sqrt(K*K+J*J);return Pe/=Re,g*(J/=Re)>16&255,J=Re>>8&255,Ae=255&Re}if(J===void 0||me===void 0&&K===J&&J===Ae)x=typeof K=="string"?K+" "+ve[0]:g.precision===2?L(K/255)+" "+ve[0]:T(K/255)+" "+ve[0];else if(me===void 0||Tt(me)==="object"){if(me&&!isNaN(me.a)&&me.a===0)return["1.","1.","1.",ve[1]].join(" ");x=typeof K=="string"?[K,J,Ae,ve[1]].join(" "):g.precision===2?[L(K/255),L(J/255),L(Ae/255),ve[1]].join(" "):[T(K/255),T(J/255),T(Ae/255),ve[1]].join(" ")}else x=typeof K=="string"?[K,J,Ae,me,ve[2]].join(" "):g.precision===2?[L(K),L(J),L(Ae),L(me),ve[2]].join(" "):[T(K),T(J),T(Ae),T(me),ve[2]].join(" ");return x},Qn=h.__private__.getFilters=function(){return s},rn=h.__private__.putStream=function(g){var x=(g=g||{}).data||"",K=g.filters||Qn(),J=g.alreadyAppliedFilters||[],Ae=g.addLength1||!1,me=x.length,ve=g.objectId,Pe=function(NA){return NA};if(c!==null&&ve===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");c!==null&&(Pe=IA.encryptor(ve,0));var Re={};K===!0&&(K=["FlateEncode"]);var At=g.additionalKeyValues||[],lt=(Re=je.API.processDataByFilters!==void 0?je.API.processDataByFilters(x,K):{data:x,reverseChain:[]}).reverseChain+(Array.isArray(J)?J.join(" "):J.toString());if(Re.data.length!==0&&(At.push({key:"Length",value:Re.data.length}),Ae===!0&&At.push({key:"Length1",value:me})),lt.length!=0)if(lt.split("/").length-1==1)At.push({key:"Filter",value:lt});else{At.push({key:"Filter",value:"["+lt+"]"});for(var xt=0;xt>"),Re.data.length!==0&&(M("stream"),M(Pe(Re.data)),M("endstream"))},no=h.__private__.putPage=function(g){var x=g.number,K=g.data,J=g.objId,Ae=g.contentsObjId;GA(J,!0),M("<>"),M("endobj");var me=K.join(` `);return b===F&&(me+=` Q`),GA(Ae,!0),rn({data:me,filters:Qn(),objectId:Ae}),M("endobj"),J},qn=h.__private__.putPages=function(){var g,x,K=[];for(g=1;g<=gt;g++)Ye[g].objId=OA(),Ye[g].contentsObjId=OA();for(g=1;g<=gt;g++)K.push(no({number:g,data:xe[g],objId:Ye[g].objId,contentsObjId:Ye[g].contentsObjId,mediaBox:Ye[g].mediaBox,cropBox:Ye[g].cropBox,bleedBox:Ye[g].bleedBox,trimBox:Ye[g].trimBox,artBox:Ye[g].artBox,userUnit:Ye[g].userUnit,rootDictionaryObjId:ts,resourceDictionaryObjId:bn}));GA(ts,!0),M("<>"),M("endobj"),St.publish("postPutPages")},io=function(g){St.publish("putFont",{font:g,out:M,newObject:aA,putStream:rn}),g.isAlreadyPutted!==!0&&(g.objectNumber=aA(),M("<<"),M("/Type /Font"),M("/BaseFont /"+Qa(g.postScriptName)),M("/Subtype /Type1"),typeof g.encoding=="string"&&M("/Encoding /"+g.encoding),M("/FirstChar 32"),M("/LastChar 255"),M(">>"),M("endobj"))},ea=function(g){g.objectNumber=aA();var x=[];x.push({key:"Type",value:"/XObject"}),x.push({key:"Subtype",value:"/Form"}),x.push({key:"BBox",value:"["+[H(g.x),H(g.y),H(g.x+g.width),H(g.y+g.height)].join(" ")+"]"}),x.push({key:"Matrix",value:"["+g.matrix.toString()+"]"});var K=g.pages[1].join(` `);rn({data:K,additionalKeyValues:x,objectId:g.objectNumber}),M("endobj")},ta=function(g,x){x||(x=21);var K=aA(),J=function(ve,Pe){var Re,At=[],lt=1/(Pe-1);for(Re=0;Re<1;Re+=lt)At.push(Re);if(At.push(1),ve[0].offset!=0){var xt={offset:0,color:ve[0].color};ve.unshift(xt)}if(ve[ve.length-1].offset!=1){var rA={offset:1,color:ve[ve.length-1].color};ve.push(rA)}for(var UA="",Kt=0,NA=0;NAve[Kt+1].offset;)Kt++;var EA=ve[Kt].offset,zA=(Re-EA)/(ve[Kt+1].offset-EA),xi=ve[Kt].color,En=ve[Kt+1].color;UA+=Y(Math.round((1-zA)*xi[0]+zA*En[0]).toString(16))+Y(Math.round((1-zA)*xi[1]+zA*En[1]).toString(16))+Y(Math.round((1-zA)*xi[2]+zA*En[2]).toString(16))}return UA.trim()}(g.colors,x),Ae=[];Ae.push({key:"FunctionType",value:"0"}),Ae.push({key:"Domain",value:"[0.0 1.0]"}),Ae.push({key:"Size",value:"["+x+"]"}),Ae.push({key:"BitsPerSample",value:"8"}),Ae.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Ae.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),rn({data:J,additionalKeyValues:Ae,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:K}),M("endobj"),g.objectNumber=aA(),M("<< /ShadingType "+g.type),M("/ColorSpace /DeviceRGB");var me="/Coords ["+H(parseFloat(g.coords[0]))+" "+H(parseFloat(g.coords[1]))+" ";g.type===2?me+=H(parseFloat(g.coords[2]))+" "+H(parseFloat(g.coords[3])):me+=H(parseFloat(g.coords[2]))+" "+H(parseFloat(g.coords[3]))+" "+H(parseFloat(g.coords[4]))+" "+H(parseFloat(g.coords[5])),M(me+="]"),g.matrix&&M("/Matrix ["+g.matrix.toString()+"]"),M("/Function "+K+" 0 R"),M("/Extend [true true]"),M(">>"),M("endobj")},Aa=function(g,x){var K=OA(),J=aA();x.push({resourcesOid:K,objectOid:J}),g.objectNumber=J;var Ae=[];Ae.push({key:"Type",value:"/Pattern"}),Ae.push({key:"PatternType",value:"1"}),Ae.push({key:"PaintType",value:"1"}),Ae.push({key:"TilingType",value:"1"}),Ae.push({key:"BBox",value:"["+g.boundingBox.map(H).join(" ")+"]"}),Ae.push({key:"XStep",value:H(g.xStep)}),Ae.push({key:"YStep",value:H(g.yStep)}),Ae.push({key:"Resources",value:K+" 0 R"}),g.matrix&&Ae.push({key:"Matrix",value:"["+g.matrix.toString()+"]"}),rn({data:g.stream,additionalKeyValues:Ae,objectId:g.objectNumber}),M("endobj")},fp=function(g){for(var x in g.objectNumber=aA(),M("<<"),g)switch(x){case"opacity":M("/ca "+L(g[x]));break;case"stroke-opacity":M("/CA "+L(g[x]))}M(">>"),M("endobj")},bl=function(g){GA(g.resourcesOid,!0),M("<<"),M("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var x in M("/Font <<"),dt)dt.hasOwnProperty(x)&&(d===!1||d===!0&&p.hasOwnProperty(x))&&M("/"+x+" "+dt[x].objectNumber+" 0 R");M(">>")}(),function(){if(Object.keys(We).length>0){for(var x in M("/Shading <<"),We)We.hasOwnProperty(x)&&We[x]instanceof So&&We[x].objectNumber>=0&&M("/"+x+" "+We[x].objectNumber+" 0 R");St.publish("putShadingPatternDict"),M(">>")}}(),function(x){if(Object.keys(We).length>0){for(var K in M("/Pattern <<"),We)We.hasOwnProperty(K)&&We[K]instanceof h.TilingPattern&&We[K].objectNumber>=0&&We[K].objectNumber>")}}(g.objectOid),function(){if(Object.keys(et).length>0){var x;for(x in M("/ExtGState <<"),et)et.hasOwnProperty(x)&&et[x].objectNumber>=0&&M("/"+x+" "+et[x].objectNumber+" 0 R");St.publish("putGStateDict"),M(">>")}}(),function(){for(var x in M("/XObject <<"),rr)rr.hasOwnProperty(x)&&rr[x].objectNumber>=0&&M("/"+x+" "+rr[x].objectNumber+" 0 R");St.publish("putXobjectDict"),M(">>")}(),M(">>"),M("endobj")},kc=function(g){pt[g.fontName]=pt[g.fontName]||{},pt[g.fontName][g.fontStyle]=g.id},Tc=function(g,x,K,J,Ae){var me={id:"F"+(Object.keys(dt).length+1).toString(10),postScriptName:g,fontName:x,fontStyle:K,encoding:J,isStandardFont:Ae||!1,metadata:{}};return St.publish("addFont",{font:me,instance:this}),dt[me.id]=me,kc(me),me.id},nn=h.__private__.pdfEscape=h.pdfEscape=function(g,x){return function(K,J){var Ae,me,ve,Pe,Re,At,lt,xt,rA;if(ve=(J=J||{}).sourceEncoding||"Unicode",Re=J.outputEncoding,(J.autoencode||Re)&&dt[Oe].metadata&&dt[Oe].metadata[ve]&&dt[Oe].metadata[ve].encoding&&(Pe=dt[Oe].metadata[ve].encoding,!Re&&dt[Oe].encoding&&(Re=dt[Oe].encoding),!Re&&Pe.codePages&&(Re=Pe.codePages[0]),typeof Re=="string"&&(Re=Pe[Re]),Re)){for(lt=!1,At=[],Ae=0,me=K.length;Ae>8&&(lt=!0);K=At.join("")}for(Ae=K.length;lt===void 0&&Ae!==0;)K.charCodeAt(Ae-1)>>8&&(lt=!0),Ae--;if(!lt)return K;for(At=J.noBOM?[]:[254,255],Ae=0,me=K.length;Ae>8)>>8)throw new Error("Character at position "+Ae+" of string '"+K+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");At.push(rA),At.push(xt-(rA<<8))}return String.fromCharCode.apply(void 0,At)}(g,x).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},xl=h.__private__.beginPage=function(g){xe[++gt]=[],Ye[gt]={objId:0,contentsObjId:0,userUnit:Number(o),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(g[0]),topRightY:Number(g[1])}},Pc(gt),Ge(xe[j])},Hc=function(g,x){var K,J,Ae;switch(A=x||A,typeof g=="string"&&(K=B(g.toLowerCase()),Array.isArray(K)&&(J=K[0],Ae=K[1])),Array.isArray(g)&&(J=g[0]*at,Ae=g[1]*at),isNaN(J)&&(J=n[0],Ae=n[1]),(J>14400||Ae>14400)&&(Ot.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),J=Math.min(14400,J),Ae=Math.min(14400,Ae)),n=[J,Ae],A.substr(0,1)){case"l":Ae>J&&(n=[Ae,J]);break;case"p":J>Ae&&(n=[Ae,J])}xl(n),rt(El),M(sa),Ll!==0&&M(Ll+" J"),Il!==0&&M(Il+" j"),St.publish("addPage",{pageNumber:gt})},Ql=function(g){g>0&&g<=gt&&(xe.splice(g,1),Ye.splice(g,1),gt--,j>gt&&(j=gt),this.setPage(j))},Pc=function(g){g>0&&g<=gt&&(j=g)},Dc=h.__private__.getNumberOfPages=h.getNumberOfPages=function(){return xe.length-1},Mc=function(g,x,K){var J,Ae=void 0;return K=K||{},g=g!==void 0?g:dt[Oe].fontName,x=x!==void 0?x:dt[Oe].fontStyle,J=g.toLowerCase(),pt[J]!==void 0&&pt[J][x]!==void 0?Ae=pt[J][x]:pt[g]!==void 0&&pt[g][x]!==void 0?Ae=pt[g][x]:K.disableWarning===!1&&Ot.warn("Unable to look up font label for font '"+g+"', '"+x+"'. Refer to getFontList() for available fonts."),Ae||K.noFallback||(Ae=pt.times[x])==null&&(Ae=pt.times.normal),Ae},Xn=h.__private__.putInfo=function(){var g=aA(),x=function(J){return J};for(var K in c!==null&&(x=IA.encryptor(g,0)),M("<<"),M("/Producer ("+nn(x("jsPDF "+je.version))+")"),wt)wt.hasOwnProperty(K)&&wt[K]&&M("/"+K.substr(0,1).toUpperCase()+K.substr(1)+" ("+nn(x(wt[K]))+")");M("/CreationDate ("+nn(x(le))+")"),M(">>"),M("endobj")},ra=h.__private__.putCatalog=function(g){var x=(g=g||{}).rootDictionaryObjId||ts;switch(aA(),M("<<"),M("/Type /Catalog"),M("/Pages "+x+" 0 R"),Je||(Je="fullwidth"),Je){case"fullwidth":M("/OpenAction [3 0 R /FitH null]");break;case"fullheight":M("/OpenAction [3 0 R /FitV null]");break;case"fullpage":M("/OpenAction [3 0 R /Fit]");break;case"original":M("/OpenAction [3 0 R /XYZ null null 1]");break;default:var K=""+Je;K.substr(K.length-1)==="%"&&(Je=parseInt(Je)/100),typeof Je=="number"&&M("/OpenAction [3 0 R /XYZ null null "+L(Je)+"]")}switch(Bt||(Bt="continuous"),Bt){case"continuous":M("/PageLayout /OneColumn");break;case"single":M("/PageLayout /SinglePage");break;case"two":case"twoleft":M("/PageLayout /TwoColumnLeft");break;case"tworight":M("/PageLayout /TwoColumnRight")}ze&&M("/PageMode /"+ze),St.publish("putCatalog"),M(">>"),M("endobj")},hp=h.__private__.putTrailer=function(){M("trailer"),M("<<"),M("/Size "+($+1)),M("/Root "+$+" 0 R"),M("/Info "+($-1)+" 0 R"),c!==null&&M("/Encrypt "+IA.oid+" 0 R"),M("/ID [ <"+ue+"> <"+ue+"> ]"),M(">>")},QA=h.__private__.putHeader=function(){M("%PDF-"+y),M("%ºß¬à")},Oc=h.__private__.putXRef=function(){var g="0000000000";M("xref"),M("0 "+($+1)),M("0000000000 65535 f ");for(var x=1;x<=$;x++)typeof re[x]=="function"?M((g+re[x]()).slice(-10)+" 00000 n "):re[x]!==void 0?M((g+re[x]).slice(-10)+" 00000 n "):M("0000000000 00000 n ")},Jn=h.__private__.buildDocument=function(){var g;$=0,de=0,he=[],re=[],we=[],ts=OA(),bn=OA(),Ge(he),St.publish("buildDocument"),QA(),qn(),function(){St.publish("putAdditionalObjects");for(var K=0;K"),M("/O <"+IA.toHexString(IA.O)+">"),M("/P "+IA.P),M(">>"),M("endobj")),Xn(),ra();var x=de;return Oc(),hp(),M("startxref"),M(""+x),M("%%EOF"),Ge(xe[j]),he.join(` `)},na=h.__private__.getBlob=function(g){return new Blob([ht(g)],{type:"application/pdf"})},Rc=h.output=h.__private__.output=(An=function(g,x){switch(typeof(x=x||{})=="string"?x={filename:x}:x.filename=x.filename||"generated.pdf",g){case void 0:return Jn();case"save":h.save(x.filename);break;case"arraybuffer":return ht(Jn());case"blob":return na(Jn());case"bloburi":case"bloburl":if(tt.URL!==void 0&&typeof tt.URL.createObjectURL=="function")return tt.URL&&tt.URL.createObjectURL(na(Jn()))||void 0;Ot.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var K="",J=Jn();try{K=Yy(J)}catch{K=Yy(unescape(encodeURIComponent(J)))}return"data:application/pdf;filename="+x.filename+";base64,"+K;case"pdfobjectnewwindow":if(Object.prototype.toString.call(tt)==="[object Window]"){var Ae="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",me=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';x.pdfObjectUrl&&(Ae=x.pdfObjectUrl,me="");var ve='