var H3=Object.defineProperty;var P3=(e,t,A)=>t in e?H3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:A}):e[t]=A;var Vt=(e,t,A)=>P3(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 fR=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function D3(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var A4={exports:{}},Xd={},r4={exports:{}},Ut={};/** * @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 Rc=Symbol.for("react.element"),M3=Symbol.for("react.portal"),O3=Symbol.for("react.fragment"),R3=Symbol.for("react.strict_mode"),K3=Symbol.for("react.profiler"),j3=Symbol.for("react.provider"),V3=Symbol.for("react.context"),G3=Symbol.for("react.forward_ref"),z3=Symbol.for("react.suspense"),W3=Symbol.for("react.memo"),q3=Symbol.for("react.lazy"),oB=Symbol.iterator;function X3(e){return e===null||typeof e!="object"?null:(e=oB&&e[oB]||e["@@iterator"],typeof e=="function"?e:null)}var n4={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},i4=Object.assign,s4={};function Nl(e,t,A){this.props=e,this.context=t,this.refs=s4,this.updater=A||n4}Nl.prototype.isReactComponent={};Nl.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")};Nl.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function o4(){}o4.prototype=Nl.prototype;function Pm(e,t,A){this.props=e,this.context=t,this.refs=s4,this.updater=A||n4}var Dm=Pm.prototype=new o4;Dm.constructor=Pm;i4(Dm,Nl.prototype);Dm.isPureReactComponent=!0;var aB=Array.isArray,a4=Object.prototype.hasOwnProperty,Mm={current:null},l4={key:!0,ref:!0,__self:!0,__source:!0};function u4(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)a4.call(t,r)&&!l4.hasOwnProperty(r)&&(n[r]=t[r]);var o=arguments.length-2;if(o===1)n.children=A;else if(1>>1,E=q[oe];if(0>>1;oen(X,he))Zn(ne,X)?(q[oe]=ne,q[Z]=he,oe=Z):(q[oe]=X,q[G]=he,oe=G);else if(Zn(ne,he))q[oe]=ne,q[Z]=he,oe=Z;else break e}}return Ae}function n(q,Ae){var he=q.sortIndex-Ae.sortIndex;return he!==0?he:q.id-Ae.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,v=!1,C=!1,U=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,y=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 Ae=A(l);Ae!==null;){if(Ae.callback===null)r(l);else if(Ae.startTime<=q)r(l),Ae.sortIndex=Ae.expirationTime,t(a,Ae);else break;Ae=A(l)}}function b(q){if(C=!1,F(q),!v)if(A(a)!==null)v=!0,fe(N);else{var Ae=A(l);Ae!==null&&se(b,Ae.startTime-q)}}function N(q,Ae){v=!1,C&&(C=!1,w(H),H=-1),h=!0;var he=p;try{for(F(Ae),d=A(a);d!==null&&(!(d.expirationTime>Ae)||q&&!S());){var oe=d.callback;if(typeof oe=="function"){d.callback=null,p=d.priorityLevel;var E=oe(d.expirationTime<=Ae);Ae=e.unstable_now(),typeof E=="function"?d.callback=E:d===A(a)&&r(a),F(Ae)}else r(a);d=A(a)}if(d!==null)var O=!0;else{var G=A(l);G!==null&&se(b,G.startTime-Ae),O=!1}return O}finally{d=null,p=he,h=!1}}var D=!1,W=null,H=-1,_=5,Y=-1;function S(){return!(e.unstable_now()-Y<_)}function k(){if(W!==null){var q=e.unstable_now();Y=q;var Ae=!0;try{Ae=W(!0,q)}finally{Ae?V():(D=!1,W=null)}}else D=!1}var V;if(typeof y=="function")V=function(){y(k)};else if(typeof MessageChannel<"u"){var z=new MessageChannel,ue=z.port2;z.port1.onmessage=k,V=function(){ue.postMessage(null)}}else V=function(){U(k,0)};function fe(q){W=q,D||(D=!0,V())}function se(q,Ae){H=U(function(){q(e.unstable_now())},Ae)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(q){q.callback=null},e.unstable_continueExecution=function(){v||h||(v=!0,fe(N))},e.unstable_forceFrameRate=function(q){0>q||125oe?(q.sortIndex=he,t(l,q),A(a)===null&&q===A(l)&&(C?(w(H),H=-1):C=!0,se(b,he-oe))):(q.sortIndex=E,t(a,q),v||h||(v=!0,fe(N))),q},e.unstable_shouldYield=S,e.unstable_wrapCallback=function(q){var Ae=p;return function(){var he=p;p=Ae;try{return q.apply(this,arguments)}finally{p=he}}}})(p4);d4.exports=p4;var sE=d4.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 oE=Ne,Cn=sE;function Qe(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"),V0=Object.prototype.hasOwnProperty,aE=/^[: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]*$/,uB={},cB={};function lE(e){return V0.call(cB,e)?!0:V0.call(uB,e)?!1:aE.test(e)?cB[e]=!0:(uB[e]=!0,!1)}function uE(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 cE(e,t,A,r){if(t===null||typeof t>"u"||uE(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 Vr(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 gr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){gr[e]=new Vr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];gr[t]=new Vr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){gr[e]=new Vr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){gr[e]=new Vr(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){gr[e]=new Vr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){gr[e]=new Vr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){gr[e]=new Vr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){gr[e]=new Vr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){gr[e]=new Vr(e,5,!1,e.toLowerCase(),null,!1,!1)});var Rm=/[\-:]([a-z])/g;function Km(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(Rm,Km);gr[t]=new Vr(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(Rm,Km);gr[t]=new Vr(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(Rm,Km);gr[t]=new Vr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){gr[e]=new Vr(e,1,!1,e.toLowerCase(),null,!1,!1)});gr.xlinkHref=new Vr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){gr[e]=new Vr(e,1,!1,e.toLowerCase(),null,!0,!0)});function jm(e,t,A,r){var n=gr.hasOwnProperty(t)?gr[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{ag=!1,Error.prepareStackTrace=A}return(e=e?e.displayName||e.name:"")?Tu(e):""}function fE(e){switch(e.tag){case 5:return Tu(e.type);case 16:return Tu("Lazy");case 13:return Tu("Suspense");case 19:return Tu("SuspenseList");case 0:case 2:case 15:return e=lg(e.type,!1),e;case 11:return e=lg(e.type.render,!1),e;case 1:return e=lg(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 Ga:return"Fragment";case Va:return"Portal";case G0:return"Profiler";case Vm:return"StrictMode";case z0:return"Suspense";case W0:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case w4:return(e.displayName||"Context")+".Consumer";case m4:return(e._context.displayName||"Context")+".Provider";case Gm:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case zm:return t=e.displayName||null,t!==null?t:q0(e.type)||"Memo";case Ws:t=e._payload,e=e._init;try{return q0(e(t))}catch{}}return null}function hE(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===Vm?"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 po(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function v4(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function dE(e){var t=v4(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 Nf(e){e._valueTracker||(e._valueTracker=dE(e))}function y4(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var A=t.getValue(),r="";return e&&(r=v4(e)?e.checked?"true":"false":e.value),e=r,e!==A?(t.setValue(e),!0):!1}function nd(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 X0(e,t){var A=t.checked;return BA({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:A??e._wrapperState.initialChecked})}function hB(e,t){var A=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;A=po(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 C4(e,t){t=t.checked,t!=null&&jm(e,"checked",t,!1)}function Y0(e,t){C4(e,t);var A=po(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")?J0(e,t.type,A):t.hasOwnProperty("defaultValue")&&J0(e,t.type,po(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function dB(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 J0(e,t,A){(t!=="number"||nd(e.ownerDocument)!==e)&&(A==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+A&&(e.defaultValue=""+A))}var ku=Array.isArray;function ul(e,t,A,r){if(e=e.options,t){t={};for(var n=0;n"+t.valueOf().toString()+"",t=Tf.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function pc(e,t){if(t){var A=e.firstChild;if(A&&A===e.lastChild&&A.nodeType===3){A.nodeValue=t;return}}e.textContent=t}var qu={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},pE=["Webkit","ms","Moz","O"];Object.keys(qu).forEach(function(e){pE.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),qu[t]=qu[e]})});function U4(e,t,A){return t==null||typeof t=="boolean"||t===""?"":A||typeof t!="number"||t===0||qu.hasOwnProperty(e)&&qu[e]?(""+t).trim():t+"px"}function Q4(e,t){e=e.style;for(var A in t)if(t.hasOwnProperty(A)){var r=A.indexOf("--")===0,n=U4(A,t[A],r);A==="float"&&(A="cssFloat"),r?e.setProperty(A,n):e[A]=n}}var gE=BA({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 e1(e,t){if(t){if(gE[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Qe(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Qe(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Qe(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Qe(62))}}function t1(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 A1=null;function Wm(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var r1=null,cl=null,fl=null;function mB(e){if(e=Vc(e)){if(typeof r1!="function")throw Error(Qe(280));var t=e.stateNode;t&&(t=ep(t),r1(e.stateNode,e.type,t))}}function E4(e){cl?fl?fl.push(e):fl=[e]:cl=e}function S4(){if(cl){var e=cl,t=fl;if(fl=cl=null,mB(e),t)for(e=0;e>>=0,e===0?32:31-(QE(e)/EE|0)|0}var kf=64,Hf=4194304;function Hu(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 ad(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=Hu(o):(i&=s,i!==0&&(r=Hu(i)))}else s=A&~n,s!==0?r=Hu(s):i!==0&&(r=Hu(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 Kc(e,t,A){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-li(t),e[t]=A}function _E(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=Yu),UB=" ",QB=!1;function X4(e,t){switch(e){case"keyup":return sS.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Y4(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var za=!1;function aS(e,t){switch(e){case"compositionend":return Y4(t);case"keypress":return t.which!==32?null:(QB=!0,UB);case"textInput":return e=t.data,e===UB&&QB?null:e;default:return null}}function lS(e,t){if(za)return e==="compositionend"||!t2&&X4(e,t)?(e=W4(),kh=$m=$s=null,za=!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=IB(A)}}function eF(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?eF(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function tF(){for(var e=window,t=nd();t instanceof e.HTMLIFrameElement;){try{var A=typeof t.contentWindow.location.href=="string"}catch{A=!1}if(A)e=t.contentWindow;else break;t=nd(e.document)}return t}function A2(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 wS(e){var t=tF(),A=e.focusedElem,r=e.selectionRange;if(t!==A&&A&&A.ownerDocument&&eF(A.ownerDocument.documentElement,A)){if(r!==null&&A2(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=_B(A,i);var s=_B(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,Wa=null,l1=null,$u=null,u1=!1;function NB(e,t,A){var r=A.window===A?A.document:A.nodeType===9?A:A.ownerDocument;u1||Wa==null||Wa!==nd(r)||(r=Wa,"selectionStart"in r&&A2(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&&yc($u,r)||($u=r,r=cd(l1,"onSelect"),0Ya||(e.current=g1[Ya],g1[Ya]=null,Ya--)}function AA(e,t){Ya++,g1[Ya]=e.current,e.current=t}var go={},Lr=Co(go),en=Co(!1),oa=go;function Fl(e,t){var A=e.type.contextTypes;if(!A)return go;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 tn(e){return e=e.childContextTypes,e!=null}function hd(){aA(en),aA(Lr)}function OB(e,t,A){if(Lr.current!==go)throw Error(Qe(168));AA(Lr,t),AA(en,A)}function uF(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(Qe(108,hE(e)||"Unknown",n));return BA({},A,r)}function dd(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||go,oa=Lr.current,AA(Lr,e),AA(en,en.current),!0}function RB(e,t,A){var r=e.stateNode;if(!r)throw Error(Qe(169));A?(e=uF(e,t,oa),r.__reactInternalMemoizedMergedChildContext=e,aA(en),aA(Lr),AA(Lr,e)):aA(en),AA(en,A)}var os=null,tp=!1,Fg=!1;function cF(e){os===null?os=[e]:os.push(e)}function LS(e){tp=!0,cF(e)}function Fo(){if(!Fg&&os!==null){Fg=!0;var e=0,t=zt;try{var A=os;for(zt=1;e>=s,n-=s,us=1<<32-li(t)+n|A<H?(_=W,W=null):_=W.sibling;var Y=p(w,W,F[H],b);if(Y===null){W===null&&(W=_);break}e&&W&&Y.alternate===null&&t(w,W),y=i(Y,y,H),D===null?N=Y:D.sibling=Y,D=Y,W=_}if(H===F.length)return A(w,W),hA&&jo(w,H),N;if(W===null){for(;HH?(_=W,W=null):_=W.sibling;var S=p(w,W,Y.value,b);if(S===null){W===null&&(W=_);break}e&&W&&S.alternate===null&&t(w,W),y=i(S,y,H),D===null?N=S:D.sibling=S,D=S,W=_}if(Y.done)return A(w,W),hA&&jo(w,H),N;if(W===null){for(;!Y.done;H++,Y=F.next())Y=d(w,Y.value,b),Y!==null&&(y=i(Y,y,H),D===null?N=Y:D.sibling=Y,D=Y);return hA&&jo(w,H),N}for(W=r(w,W);!Y.done;H++,Y=F.next())Y=h(W,w,H,Y.value,b),Y!==null&&(e&&Y.alternate!==null&&W.delete(Y.key===null?H:Y.key),y=i(Y,y,H),D===null?N=Y:D.sibling=Y,D=Y);return e&&W.forEach(function(k){return t(w,k)}),hA&&jo(w,H),N}function U(w,y,F,b){if(typeof F=="object"&&F!==null&&F.type===Ga&&F.key===null&&(F=F.props.children),typeof F=="object"&&F!==null){switch(F.$$typeof){case _f:e:{for(var N=F.key,D=y;D!==null;){if(D.key===N){if(N=F.type,N===Ga){if(D.tag===7){A(w,D.sibling),y=n(D,F.props.children),y.return=w,w=y;break e}}else if(D.elementType===N||typeof N=="object"&&N!==null&&N.$$typeof===Ws&&VB(N)===D.type){A(w,D.sibling),y=n(D,F.props),y.ref=mu(w,D,F),y.return=w,w=y;break e}A(w,D);break}else t(w,D);D=D.sibling}F.type===Ga?(y=Aa(F.props.children,w.mode,b,F.key),y.return=w,w=y):(b=jh(F.type,F.key,F.props,null,w.mode,b),b.ref=mu(w,y,F),b.return=w,w=b)}return s(w);case Va:e:{for(D=F.key;y!==null;){if(y.key===D)if(y.tag===4&&y.stateNode.containerInfo===F.containerInfo&&y.stateNode.implementation===F.implementation){A(w,y.sibling),y=n(y,F.children||[]),y.return=w,w=y;break e}else{A(w,y);break}else t(w,y);y=y.sibling}y=Ig(F,w.mode,b),y.return=w,w=y}return s(w);case Ws:return D=F._init,U(w,y,D(F._payload),b)}if(ku(F))return v(w,y,F,b);if(fu(F))return C(w,y,F,b);jf(w,F)}return typeof F=="string"&&F!==""||typeof F=="number"?(F=""+F,y!==null&&y.tag===6?(A(w,y.sibling),y=n(y,F),y.return=w,w=y):(A(w,y),y=Lg(F,w.mode,b),y.return=w,w=y),s(w)):A(w,y)}return U}var xl=pF(!0),gF=pF(!1),md=Co(null),wd=null,Za=null,s2=null;function o2(){s2=Za=wd=null}function a2(e){var t=md.current;aA(md),e._currentValue=t}function B1(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 dl(e,t){wd=e,s2=Za=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Zr=!0),e.firstContext=null)}function zn(e){var t=e._currentValue;if(s2!==e)if(e={context:e,memoizedValue:t,next:null},Za===null){if(wd===null)throw Error(Qe(308));Za=e,wd.dependencies={lanes:0,firstContext:e}}else Za=Za.next=e;return t}var Jo=null;function l2(e){Jo===null?Jo=[e]:Jo.push(e)}function mF(e,t,A,r){var n=t.interleaved;return n===null?(A.next=A,l2(t)):(A.next=n.next,n.next=A),t.interleaved=A,ws(e,r)}function ws(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 u2(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function wF(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 fs(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ao(e,t,A){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,kt&2){var n=r.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),r.pending=t,ws(e,A)}return n=r.interleaved,n===null?(t.next=t,l2(r)):(t.next=n.next,n.next=t),r.interleaved=t,ws(e,A)}function Ph(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,Xm(e,A)}}function GB(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 Bd(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 v=e,C=o;switch(p=t,h=A,C.tag){case 1:if(v=C.payload,typeof v=="function"){d=v.call(h,d,p);break e}d=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=C.payload,p=typeof v=="function"?v.call(h,d,p):v,p==null)break e;d=BA({},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);ua|=s,e.lanes=s,e.memoizedState=d}}function zB(e,t,A){if(e=t.effects,t.effects=null,e!==null)for(t=0;tA?A:4,e(!0);var r=xg.transition;xg.transition={};try{e(!1),t()}finally{zt=A,xg.transition=r}}function kF(){return Wn().memoizedState}function TS(e,t,A){var r=uo(e);if(A={lane:r,action:A,hasEagerState:!1,eagerState:null,next:null},HF(e))PF(t,A);else if(A=mF(e,t,A,r),A!==null){var n=Or();ui(A,e,r,n),DF(A,t,r)}}function kS(e,t,A){var r=uo(e),n={lane:r,action:A,hasEagerState:!1,eagerState:null,next:null};if(HF(e))PF(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,ci(o,s)){var a=t.interleaved;a===null?(n.next=n,l2(t)):(n.next=a.next,a.next=n),t.interleaved=n;return}}catch{}finally{}A=mF(e,t,n,r),A!==null&&(n=Or(),ui(A,e,r,n),DF(A,t,r))}}function HF(e){var t=e.alternate;return e===wA||t!==null&&t===wA}function PF(e,t){Zu=yd=!0;var A=e.pending;A===null?t.next=t:(t.next=A.next,A.next=t),e.pending=t}function DF(e,t,A){if(A&4194240){var r=t.lanes;r&=e.pendingLanes,A|=r,t.lanes=A,Xm(e,A)}}var Cd={readContext:zn,useCallback:Br,useContext:Br,useEffect:Br,useImperativeHandle:Br,useInsertionEffect:Br,useLayoutEffect:Br,useMemo:Br,useReducer:Br,useRef:Br,useState:Br,useDebugValue:Br,useDeferredValue:Br,useTransition:Br,useMutableSource:Br,useSyncExternalStore:Br,useId:Br,unstable_isNewReconciler:!1},HS={readContext:zn,useCallback:function(e,t){return Si().memoizedState=[e,t===void 0?null:t],e},useContext:zn,useEffect:qB,useImperativeHandle:function(e,t,A){return A=A!=null?A.concat([e]):null,Mh(4194308,4,LF.bind(null,t,e),A)},useLayoutEffect:function(e,t){return Mh(4194308,4,e,t)},useInsertionEffect:function(e,t){return Mh(4,2,e,t)},useMemo:function(e,t){var A=Si();return t=t===void 0?null:t,e=e(),A.memoizedState=[e,t],e},useReducer:function(e,t,A){var r=Si();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=TS.bind(null,wA,e),[r.memoizedState,e]},useRef:function(e){var t=Si();return e={current:e},t.memoizedState=e},useState:WB,useDebugValue:w2,useDeferredValue:function(e){return Si().memoizedState=e},useTransition:function(){var e=WB(!1),t=e[0];return e=NS.bind(null,e[1]),Si().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,A){var r=wA,n=Si();if(hA){if(A===void 0)throw Error(Qe(407));A=A()}else{if(A=t(),ir===null)throw Error(Qe(349));la&30||CF(r,t,A)}n.memoizedState=A;var i={value:A,getSnapshot:t};return n.queue=i,qB(bF.bind(null,r,i,e),[e]),r.flags|=2048,Sc(9,FF.bind(null,r,i,A,t),void 0,null),A},useId:function(){var e=Si(),t=ir.identifierPrefix;if(hA){var A=cs,r=us;A=(r&~(1<<32-li(r)-1)).toString(32)+A,t=":"+t+"R"+A,A=Qc++,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[Li]=t,e[bc]=r,qF(e,t,!1,!1),t.stateNode=e;e:{switch(s=t1(A,r),A){case"dialog":sA("cancel",e),sA("close",e),n=r;break;case"iframe":case"object":case"embed":sA("load",e),n=r;break;case"video":case"audio":for(n=0;nEl&&(t.flags|=128,r=!0,wu(i,!1),t.lanes=4194304)}else{if(!r)if(e=vd(s),e!==null){if(t.flags|=128,r=!0,A=e.updateQueue,A!==null&&(t.updateQueue=A,t.flags|=4),wu(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!hA)return vr(t),null}else 2*TA()-i.renderingStartTime>El&&A!==1073741824&&(t.flags|=128,r=!0,wu(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=TA(),t.sibling=null,A=gA.current,AA(gA,r?A&1|2:A&1),t):(vr(t),null);case 22:case 23:return b2(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?gn&1073741824&&(vr(t),t.subtreeFlags&6&&(t.flags|=8192)):vr(t),null;case 24:return null;case 25:return null}throw Error(Qe(156,t.tag))}function VS(e,t){switch(n2(t),t.tag){case 1:return tn(t.type)&&hd(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ul(),aA(en),aA(Lr),h2(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return f2(t),null;case 13:if(aA(gA),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Qe(340));bl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return aA(gA),null;case 4:return Ul(),null;case 10:return a2(t.type._context),null;case 22:case 23:return b2(),null;case 24:return null;default:return null}}var Gf=!1,Er=!1,GS=typeof WeakSet=="function"?WeakSet:Set,Pe=null;function el(e,t){var A=e.ref;if(A!==null)if(typeof A=="function")try{A(null)}catch(r){UA(e,t,r)}else A.current=null}function E1(e,t,A){try{A()}catch(r){UA(e,t,r)}}var iv=!1;function zS(e,t){if(c1=ld,e=tF(),A2(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(f1={focusedElem:e,selectionRange:A},ld=!1,Pe=t;Pe!==null;)if(t=Pe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Pe=e;else for(;Pe!==null;){t=Pe;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var C=v.memoizedProps,U=v.memoizedState,w=t.stateNode,y=w.getSnapshotBeforeUpdate(t.elementType===t.type?C:si(t.type,C),U);w.__reactInternalSnapshotBeforeUpdate=y}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(Qe(163))}}catch(b){UA(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,Pe=e;break}Pe=t.return}return v=iv,iv=!1,v}function ec(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&&E1(t,A,i)}n=n.next}while(n!==r)}}function np(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 S1(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 JF(e){var t=e.alternate;t!==null&&(e.alternate=null,JF(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Li],delete t[bc],delete t[p1],delete t[ES],delete t[SS])),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 $F(e){return e.tag===5||e.tag===3||e.tag===4}function sv(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||$F(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 L1(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=fd));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}function I1(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(I1(e,t,A),e=e.sibling;e!==null;)I1(e,t,A),e=e.sibling}var cr=null,oi=!1;function Ms(e,t,A){for(A=A.child;A!==null;)ZF(e,t,A),A=A.sibling}function ZF(e,t,A){if(_i&&typeof _i.onCommitFiberUnmount=="function")try{_i.onCommitFiberUnmount(Yd,A)}catch{}switch(A.tag){case 5:Er||el(A,t);case 6:var r=cr,n=oi;cr=null,Ms(e,t,A),cr=r,oi=n,cr!==null&&(oi?(e=cr,A=A.stateNode,e.nodeType===8?e.parentNode.removeChild(A):e.removeChild(A)):cr.removeChild(A.stateNode));break;case 18:cr!==null&&(oi?(e=cr,A=A.stateNode,e.nodeType===8?Cg(e.parentNode,A):e.nodeType===1&&Cg(e,A),Bc(e)):Cg(cr,A.stateNode));break;case 4:r=cr,n=oi,cr=A.stateNode.containerInfo,oi=!0,Ms(e,t,A),cr=r,oi=n;break;case 0:case 11:case 14:case 15:if(!Er&&(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)&&E1(A,t,s),n=n.next}while(n!==r)}Ms(e,t,A);break;case 1:if(!Er&&(el(A,t),r=A.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=A.memoizedProps,r.state=A.memoizedState,r.componentWillUnmount()}catch(o){UA(A,t,o)}Ms(e,t,A);break;case 21:Ms(e,t,A);break;case 22:A.mode&1?(Er=(r=Er)||A.memoizedState!==null,Ms(e,t,A),Er=r):Ms(e,t,A);break;default:Ms(e,t,A)}}function ov(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var A=e.stateNode;A===null&&(A=e.stateNode=new GS),t.forEach(function(r){var n=tL.bind(null,e,r);A.has(r)||(A.add(r),r.then(n,n))})}}function ti(e,t){var A=t.deletions;if(A!==null)for(var r=0;rn&&(n=s),r&=~i}if(r=n,r=TA()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*qS(r/1960))-r,10e?16:e,Zs===null)var r=!1;else{if(e=Zs,Zs=null,xd=0,kt&6)throw Error(Qe(331));var n=kt;for(kt|=4,Pe=e.current;Pe!==null;){var i=Pe,s=i.child;if(Pe.flags&16){var o=i.deletions;if(o!==null){for(var a=0;aTA()-C2?ta(e,0):y2|=A),An(e,t)}function ob(e,t){t===0&&(e.mode&1?(t=Hf,Hf<<=1,!(Hf&130023424)&&(Hf=4194304)):t=1);var A=Or();e=ws(e,t),e!==null&&(Kc(e,t,A),An(e,A))}function eL(e){var t=e.memoizedState,A=0;t!==null&&(A=t.retryLane),ob(e,A)}function tL(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(Qe(314))}r!==null&&r.delete(t),ob(e,A)}var ab;ab=function(e,t,A){if(e!==null)if(e.memoizedProps!==t.pendingProps||en.current)Zr=!0;else{if(!(e.lanes&A)&&!(t.flags&128))return Zr=!1,KS(e,t,A);Zr=!!(e.flags&131072)}else Zr=!1,hA&&t.flags&1048576&&fF(t,gd,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Oh(e,t),e=t.pendingProps;var n=Fl(t,Lr.current);dl(t,A),n=p2(null,t,r,e,n,A);var i=g2();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,tn(r)?(i=!0,dd(t)):i=!1,t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,u2(t),n.updater=rp,t.stateNode=n,n._reactInternals=t,y1(t,r,e,A),t=b1(null,t,r,!0,i,A)):(t.tag=0,hA&&i&&r2(t),Mr(null,t,n,A),t=t.child),t;case 16:r=t.elementType;e:{switch(Oh(e,t),e=t.pendingProps,n=r._init,r=n(r._payload),t.type=r,n=t.tag=rL(r),e=si(r,e),n){case 0:t=F1(null,t,r,e,A);break e;case 1:t=Av(null,t,r,e,A);break e;case 11:t=ev(null,t,r,e,A);break e;case 14:t=tv(null,t,r,si(r.type,e),A);break e}throw Error(Qe(306,r,""))}return t;case 0:return r=t.type,n=t.pendingProps,n=t.elementType===r?n:si(r,n),F1(e,t,r,n,A);case 1:return r=t.type,n=t.pendingProps,n=t.elementType===r?n:si(r,n),Av(e,t,r,n,A);case 3:e:{if(GF(t),e===null)throw Error(Qe(387));r=t.pendingProps,i=t.memoizedState,n=i.element,wF(e,t),Bd(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=Ql(Error(Qe(423)),t),t=rv(e,t,r,A,n);break e}else if(r!==n){n=Ql(Error(Qe(424)),t),t=rv(e,t,r,A,n);break e}else for(wn=oo(t.stateNode.containerInfo.firstChild),vn=t,hA=!0,ai=null,A=gF(t,null,r,A),t.child=A;A;)A.flags=A.flags&-3|4096,A=A.sibling;else{if(bl(),r===n){t=Bs(e,t,A);break e}Mr(e,t,r,A)}t=t.child}return t;case 5:return BF(t),e===null&&w1(t),r=t.type,n=t.pendingProps,i=e!==null?e.memoizedProps:null,s=n.children,h1(r,n)?s=null:i!==null&&h1(r,i)&&(t.flags|=32),VF(e,t),Mr(e,t,s,A),t.child;case 6:return e===null&&w1(t),null;case 13:return zF(e,t,A);case 4:return c2(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=xl(t,null,r,A):Mr(e,t,r,A),t.child;case 11:return r=t.type,n=t.pendingProps,n=t.elementType===r?n:si(r,n),ev(e,t,r,n,A);case 7:return Mr(e,t,t.pendingProps,A),t.child;case 8:return Mr(e,t,t.pendingProps.children,A),t.child;case 12:return Mr(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,AA(md,r._currentValue),r._currentValue=s,i!==null)if(ci(i.value,s)){if(i.children===n.children&&!en.current){t=Bs(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=fs(-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),B1(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(Qe(341));s.lanes|=A,o=s.alternate,o!==null&&(o.lanes|=A),B1(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}Mr(e,t,n.children,A),t=t.child}return t;case 9:return n=t.type,r=t.pendingProps.children,dl(t,A),n=zn(n),r=r(n),t.flags|=1,Mr(e,t,r,A),t.child;case 14:return r=t.type,n=si(r,t.pendingProps),n=si(r.type,n),tv(e,t,r,n,A);case 15:return KF(e,t,t.type,t.pendingProps,A);case 17:return r=t.type,n=t.pendingProps,n=t.elementType===r?n:si(r,n),Oh(e,t),t.tag=1,tn(r)?(e=!0,dd(t)):e=!1,dl(t,A),MF(t,r,n),y1(t,r,n,A),b1(null,t,r,!0,e,A);case 19:return WF(e,t,A);case 22:return jF(e,t,A)}throw Error(Qe(156,t.tag))};function lb(e,t){return H4(e,t)}function AL(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 Kn(e,t,A,r){return new AL(e,t,A,r)}function U2(e){return e=e.prototype,!(!e||!e.isReactComponent)}function rL(e){if(typeof e=="function")return U2(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Gm)return 11;if(e===zm)return 14}return 2}function co(e,t){var A=e.alternate;return A===null?(A=Kn(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 jh(e,t,A,r,n,i){var s=2;if(r=e,typeof e=="function")U2(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Ga:return Aa(A.children,n,i,t);case Vm:s=8,n|=8;break;case G0:return e=Kn(12,A,t,n|2),e.elementType=G0,e.lanes=i,e;case z0:return e=Kn(13,A,t,n),e.elementType=z0,e.lanes=i,e;case W0:return e=Kn(19,A,t,n),e.elementType=W0,e.lanes=i,e;case B4:return sp(A,n,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case m4:s=10;break e;case w4:s=9;break e;case Gm:s=11;break e;case zm:s=14;break e;case Ws:s=16,r=null;break e}throw Error(Qe(130,e==null?e:typeof e,""))}return t=Kn(s,A,t,n),t.elementType=e,t.type=r,t.lanes=i,t}function Aa(e,t,A,r){return e=Kn(7,e,r,t),e.lanes=A,e}function sp(e,t,A,r){return e=Kn(22,e,r,t),e.elementType=B4,e.lanes=A,e.stateNode={isHidden:!1},e}function Lg(e,t,A){return e=Kn(6,e,null,t),e.lanes=A,e}function Ig(e,t,A){return t=Kn(4,e.children!==null?e.children:[],e.key,t),t.lanes=A,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function nL(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=cg(0),this.expirationTimes=cg(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=cg(0),this.identifierPrefix=r,this.onRecoverableError=n,this.mutableSourceEagerHydrationData=null}function Q2(e,t,A,r,n,i,s,o,a){return e=new nL(e,t,A,o,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Kn(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:A,cache:null,transitions:null,pendingSuspenseBoundaries:null},u2(i),e}function iL(e,t,A){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(hb)}catch(e){console.error(e)}}hb(),h4.exports=bn;var uL=h4.exports,pv=uL;j0.createRoot=pv.createRoot,j0.hydrateRoot=pv.hydrateRoot;const I2=Ne.createContext({});function _2(e){const t=Ne.useRef(null);return t.current===null&&(t.current=e()),t.current}const cp=Ne.createContext(null),N2=Ne.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class cL extends Ne.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 fL({children:e,isPresent:t}){const A=Ne.useId(),r=Ne.useRef(null),n=Ne.useRef({width:0,height:0,top:0,left:0}),{nonce:i}=Ne.useContext(N2);return Ne.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]),ae.jsx(cL,{isPresent:t,childRef:r,sizeRef:n,children:Ne.cloneElement(e,{ref:r})})}const hL=({children:e,initial:t,isPresent:A,onExitComplete:r,custom:n,presenceAffectsLayout:i,mode:s})=>{const o=_2(dL),a=Ne.useId(),l=Ne.useCallback(d=>{o.set(d,!0);for(const p of o.values())if(!p)return;r&&r()},[o,r]),c=Ne.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 Ne.useMemo(()=>{o.forEach((d,p)=>o.set(p,!1))},[A]),Ne.useEffect(()=>{!A&&!o.size&&r&&r()},[A]),s==="popLayout"&&(e=ae.jsx(fL,{isPresent:A,children:e})),ae.jsx(cp.Provider,{value:c,children:e})};function dL(){return new Map}function db(e=!0){const t=Ne.useContext(cp);if(t===null)return[!0,null];const{isPresent:A,onExitComplete:r,register:n}=t,i=Ne.useId();Ne.useEffect(()=>{e&&n(i)},[e]);const s=Ne.useCallback(()=>e&&r&&r(i),[i,r,e]);return!A&&r?[!1,s]:[!0]}const qf=e=>e.key||"";function gv(e){const t=[];return Ne.Children.forEach(e,A=>{Ne.isValidElement(A)&&t.push(A)}),t}const T2=typeof window<"u",pb=T2?Ne.useLayoutEffect:Ne.useEffect,pL=({children:e,custom:t,initial:A=!0,onExitComplete:r,presenceAffectsLayout:n=!0,mode:i="sync",propagate:s=!1})=>{const[o,a]=db(s),l=Ne.useMemo(()=>gv(e),[e]),c=s&&!o?[]:l.map(qf),d=Ne.useRef(!0),p=Ne.useRef(l),h=_2(()=>new Map),[v,C]=Ne.useState(l),[U,w]=Ne.useState(l);pb(()=>{d.current=!1,p.current=l;for(let b=0;b{const N=qf(b),D=s&&!o?!1:l===U||c.includes(N),W=()=>{if(h.has(N))h.set(N,!0);else return;let H=!0;h.forEach(_=>{_||(H=!1)}),H&&(F==null||F(),w(p.current),s&&(a==null||a()),r&&r())};return ae.jsx(hL,{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},N)})})},yn=e=>e;let gb=yn;function k2(e){let t;return()=>(t===void 0&&(t=e()),t)}const Sl=(e,t,A)=>{const r=t-e;return r===0?1:(A-e)/r},hs=e=>e*1e3,ds=e=>e/1e3,gL={useManualTiming:!1};function mL(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 Xf=["read","resolveKeyframes","update","preRender","render","postRender"],wL=40;function mb(e,t){let A=!1,r=!0;const n={delta:0,timestamp:0,isProcessing:!1},i=()=>A=!0,s=Xf.reduce((w,y)=>(w[y]=mL(i),w),{}),{read:o,resolveKeyframes:a,update:l,preRender:c,render:d,postRender:p}=s,h=()=>{const w=performance.now();A=!1,n.delta=r?1e3/60:Math.max(Math.min(w-n.timestamp,wL),1),n.timestamp=w,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))},v=()=>{A=!0,r=!0,n.isProcessing||e(h)};return{schedule:Xf.reduce((w,y)=>{const F=s[y];return w[y]=(b,N=!1,D=!1)=>(A||v(),F.schedule(b,N,D)),w},{}),cancel:w=>{for(let y=0;ymv[e].some(A=>!!t[A])};function BL(e){for(const t in e)Ll[t]={...Ll[t],...e[t]}}const vL=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 Ed(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||vL.has(e)}let Bb=e=>!Ed(e);function yL(e){e&&(Bb=t=>t.startsWith("on")?!Ed(t):e(t))}try{yL(require("@emotion/is-prop-valid").default)}catch{}function CL(e,t,A){const r={};for(const n in e)n==="values"&&typeof e.values=="object"||(Bb(n)||A===!0&&Ed(n)||!t&&!Ed(n)||e.draggable&&n.startsWith("onDrag"))&&(r[n]=e[n]);return r}function FL(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 fp=Ne.createContext({});function Ic(e){return typeof e=="string"||Array.isArray(e)}function hp(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const H2=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],P2=["initial",...H2];function dp(e){return hp(e.animate)||P2.some(t=>Ic(e[t]))}function vb(e){return!!(dp(e)||e.variants)}function bL(e,t){if(dp(e)){const{initial:A,animate:r}=e;return{initial:A===!1||Ic(A)?A:void 0,animate:Ic(r)?r:void 0}}return e.inherit!==!1?t:{}}function xL(e){const{initial:t,animate:A}=bL(e,Ne.useContext(fp));return Ne.useMemo(()=>({initial:t,animate:A}),[wv(t),wv(A)])}function wv(e){return Array.isArray(e)?e.join(" "):e}const UL=Symbol.for("motionComponentSymbol");function Al(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function QL(e,t,A){return Ne.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),A&&(typeof A=="function"?A(r):Al(A)&&(A.current=r))},[t])}const D2=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),EL="framerAppearId",yb="data-"+D2(EL),{schedule:M2}=mb(queueMicrotask,!1),Cb=Ne.createContext({});function SL(e,t,A,r,n){var i,s;const{visualElement:o}=Ne.useContext(fp),a=Ne.useContext(wb),l=Ne.useContext(cp),c=Ne.useContext(N2).reducedMotion,d=Ne.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=Ne.useContext(Cb);p&&!p.projection&&n&&(p.type==="html"||p.type==="svg")&&LL(d.current,A,n,h);const v=Ne.useRef(!1);Ne.useInsertionEffect(()=>{p&&v.current&&p.update(A,l)});const C=A[yb],U=Ne.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 pb(()=>{p&&(v.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),M2.render(p.render),U.current&&p.animationState&&p.animationState.animateChanges())}),Ne.useEffect(()=>{p&&(!U.current&&p.animationState&&p.animationState.animateChanges(),U.current&&(queueMicrotask(()=>{var w;(w=window.MotionHandoffMarkAsComplete)===null||w===void 0||w.call(window,C)}),U.current=!1))}),p}function LL(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:Fb(e.parent)),e.projection.setOptions({layoutId:n,layout:i,alwaysMeasureLayout:!!s||o&&Al(o),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,layoutScroll:a,layoutRoot:l})}function Fb(e){if(e)return e.options.allowProjection!==!1?e.projection:Fb(e.parent)}function IL({preloadedFeatures:e,createVisualElement:t,useRender:A,useVisualState:r,Component:n}){var i,s;e&&BL(e);function o(l,c){let d;const p={...Ne.useContext(N2),...l,layoutId:_L(l)},{isStatic:h}=p,v=xL(l),C=r(l,h);if(!h&&T2){NL();const U=TL(p);d=U.MeasureLayout,v.visualElement=SL(n,C,p,t,U.ProjectionNode)}return ae.jsxs(fp.Provider,{value:v,children:[d&&v.visualElement?ae.jsx(d,{visualElement:v.visualElement,...p}):null,A(n,l,QL(C,v.visualElement,c),C,h,v.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=Ne.forwardRef(o);return a[UL]=n,a}function _L({layoutId:e}){const t=Ne.useContext(I2).id;return t&&e!==void 0?t+"-"+e:e}function NL(e,t){Ne.useContext(wb).strict}function TL(e){const{drag:t,layout:A}=Ll;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 kL=["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 O2(e){return typeof e!="string"||e.includes("-")?!1:!!(kL.indexOf(e)>-1||/[A-Z]/u.test(e))}function Bv(e){const t=[{},{}];return e==null||e.values.forEach((A,r)=>{t[0][r]=A.get(),t[1][r]=A.getVelocity()}),t}function R2(e,t,A,r){if(typeof t=="function"){const[n,i]=Bv(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]=Bv(r);t=t(A!==void 0?A:e.custom,n,i)}return t}const H1=e=>Array.isArray(e),HL=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),PL=e=>H1(e)?e[e.length-1]||0:e,Sr=e=>!!(e&&e.getVelocity);function Vh(e){const t=Sr(e)?e.get():e;return HL(t)?t.toValue():t}function DL({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:A},r,n,i){const s={latestValues:ML(r,n,i,e),renderState:t()};return A&&(s.onMount=o=>A({props:r,current:o,...s}),s.onUpdate=o=>A(o)),s}const bb=e=>(t,A)=>{const r=Ne.useContext(fp),n=Ne.useContext(cp),i=()=>DL(e,t,r,n);return A?i():_2(i)};function ML(e,t,A,r){const n={},i=r(e,{});for(const p in i)n[p]=Vh(i[p]);let{initial:s,animate:o}=e;const a=dp(e),l=vb(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"&&!hp(d)){const p=Array.isArray(d)?d:[d];for(let h=0;ht=>typeof t=="string"&&t.startsWith(e),Ub=xb("--"),OL=xb("var(--"),K2=e=>OL(e)?RL.test(e.split("/*")[0].trim()):!1,RL=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Qb=(e,t)=>t&&typeof e=="number"?t.transform(e):e,vs=(e,t,A)=>A>t?t:Atypeof e=="number",parse:parseFloat,transform:e=>e},_c={...Pl,transform:e=>vs(0,1,e)},Yf={...Pl,default:1},zc=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Vs=zc("deg"),Ti=zc("%"),it=zc("px"),KL=zc("vh"),jL=zc("vw"),vv={...Ti,parse:e=>Ti.parse(e)/100,transform:e=>Ti.transform(e*100)},VL={borderWidth:it,borderTopWidth:it,borderRightWidth:it,borderBottomWidth:it,borderLeftWidth:it,borderRadius:it,radius:it,borderTopLeftRadius:it,borderTopRightRadius:it,borderBottomRightRadius:it,borderBottomLeftRadius:it,width:it,maxWidth:it,height:it,maxHeight:it,top:it,right:it,bottom:it,left:it,padding:it,paddingTop:it,paddingRight:it,paddingBottom:it,paddingLeft:it,margin:it,marginTop:it,marginRight:it,marginBottom:it,marginLeft:it,backgroundPositionX:it,backgroundPositionY:it},GL={rotate:Vs,rotateX:Vs,rotateY:Vs,rotateZ:Vs,scale:Yf,scaleX:Yf,scaleY:Yf,scaleZ:Yf,skew:Vs,skewX:Vs,skewY:Vs,distance:it,translateX:it,translateY:it,translateZ:it,x:it,y:it,z:it,perspective:it,transformPerspective:it,opacity:_c,originX:vv,originY:vv,originZ:it},yv={...Pl,transform:Math.round},j2={...VL,...GL,zIndex:yv,size:it,fillOpacity:_c,strokeOpacity:_c,numOctaves:yv},zL={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},WL=Hl.length;function qL(e,t,A){let r="",n=!0;for(let i=0;i({style:{},transform:{},transformOrigin:{},vars:{}}),Eb=()=>({...z2(),attrs:{}}),W2=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Sb(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 Lb=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 Ib(e,t,A,r){Sb(e,t,void 0,r);for(const n in t.attrs)e.setAttribute(Lb.has(n)?n:D2(n),t.attrs[n])}const Sd={};function ZL(e){Object.assign(Sd,e)}function _b(e,{layout:t,layoutId:A}){return ga.has(e)||e.startsWith("origin")||(t||A!==void 0)&&(!!Sd[e]||e==="opacity")}function q2(e,t,A){var r;const{style:n}=e,i={};for(const s in n)(Sr(n[s])||t.style&&Sr(t.style[s])||_b(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 Nb(e,t,A){const r=q2(e,t,A);for(const n in e)if(Sr(e[n])||Sr(t[n])){const i=Hl.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;r[i]=e[n]}return r}function eI(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 Fv=["x","y","width","height","cx","cy","r"],tI={useVisualState:bb({scrapeMotionValuesFromProps:Nb,createRenderState:Eb,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(ga.has(o)){i=!0;break}}if(!i)return;let s=!t;if(t)for(let o=0;o{eI(A,r),lA.render(()=>{G2(r,n,W2(A.tagName),e.transformTemplate),Ib(A,r)})})}})},AI={useVisualState:bb({scrapeMotionValuesFromProps:q2,createRenderState:z2})};function Tb(e,t,A){for(const r in t)!Sr(t[r])&&!_b(r,A)&&(e[r]=t[r])}function rI({transformTemplate:e},t){return Ne.useMemo(()=>{const A=z2();return V2(A,t,e),Object.assign({},A.vars,A.style)},[t])}function nI(e,t){const A=e.style||{},r={};return Tb(r,A,e),Object.assign(r,rI(e,t)),r}function iI(e,t){const A={},r=nI(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 sI(e,t,A,r){const n=Ne.useMemo(()=>{const i=Eb();return G2(i,t,W2(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 oI(e=!1){return(A,r,n,{latestValues:i},s)=>{const a=(O2(A)?sI:iI)(r,i,s,A),l=CL(r,typeof A=="string",e),c=A!==Ne.Fragment?{...l,...a,ref:n}:{},{children:d}=r,p=Ne.useMemo(()=>Sr(d)?d.get():d,[d]);return Ne.createElement(A,{...c,children:p})}}function aI(e,t){return function(r,{forwardMotionProps:n}={forwardMotionProps:!1}){const s={...O2(r)?tI:AI,preloadedFeatures:e,useRender:oI(n),createVisualElement:t,Component:r};return IL(s)}}function kb(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 uI{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(lI()&&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 cI extends uI{then(t,A){return Promise.all(this.animations).then(t).catch(A)}}function X2(e,t){return e?e[t]||e.default||e:void 0}const P1=2e4;function Hb(e){let t=0;const A=50;let r=e.next(t);for(;!r.done&&t=P1?1/0:t}function Y2(e){return typeof e=="function"}function bv(e,t){e.timeline=t,e.onfinish=null}const J2=e=>Array.isArray(e)&&typeof e[0]=="number",fI={linearEasing:void 0};function hI(e,t){const A=k2(e);return()=>{var r;return(r=fI[t])!==null&&r!==void 0?r:A()}}const Ld=hI(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Pb=(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})`,D1={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Du([0,.65,.55,1]),circOut:Du([.55,0,1,.45]),backIn:Du([.31,.01,.66,-.59]),backOut:Du([.33,1.53,.69,.99])};function Mb(e,t){if(e)return typeof e=="function"&&Ld()?Pb(e,t):J2(e)?Du(e):Array.isArray(e)?e.map(A=>Mb(A,t)||D1.easeOut):D1[e]}const ni={x:!1,y:!1};function Ob(){return ni.x||ni.y}function dI(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 Rb(e,t){const A=dI(e),r=new AbortController,n={passive:!0,...t,signal:r.signal};return[A,n,()=>r.abort()]}function xv(e){return t=>{t.pointerType==="touch"||Ob()||e(t)}}function pI(e,t,A={}){const[r,n,i]=Rb(e,A),s=xv(o=>{const{target:a}=o,l=t(o);if(typeof l!="function"||!a)return;const c=xv(d=>{l(d),a.removeEventListener("pointerleave",c)});a.addEventListener("pointerleave",c,n)});return r.forEach(o=>{o.addEventListener("pointerenter",s,n)}),i}const Kb=(e,t)=>t?e===t?!0:Kb(e,t.parentElement):!1,$2=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,gI=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function mI(e){return gI.has(e.tagName)||e.tabIndex!==-1}const Mu=new WeakSet;function Uv(e){return t=>{t.key==="Enter"&&e(t)}}function Ng(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const wI=(e,t)=>{const A=e.currentTarget;if(!A)return;const r=Uv(()=>{if(Mu.has(A))return;Ng(A,"down");const n=Uv(()=>{Ng(A,"up")}),i=()=>Ng(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 Qv(e){return $2(e)&&!Ob()}function BI(e,t,A={}){const[r,n,i]=Rb(e,A),s=o=>{const a=o.currentTarget;if(!Qv(o)||Mu.has(a))return;Mu.add(a);const l=t(o),c=(h,v)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",p),!(!Qv(h)||!Mu.has(a))&&(Mu.delete(a),typeof l=="function"&&l(h,{success:v}))},d=h=>{c(h,A.useGlobalTarget||Kb(a,h.target))},p=h=>{c(h,!1)};window.addEventListener("pointerup",d,n),window.addEventListener("pointercancel",p,n)};return r.forEach(o=>{!mI(o)&&o.getAttribute("tabindex")===null&&(o.tabIndex=0),(A.useGlobalTarget?window:o).addEventListener("pointerdown",s,n),o.addEventListener("focus",l=>wI(l,n),n)}),i}function vI(e){return e==="x"||e==="y"?ni[e]?null:(ni[e]=!0,()=>{ni[e]=!1}):ni.x||ni.y?null:(ni.x=ni.y=!0,()=>{ni.x=ni.y=!1})}const jb=new Set(["width","height","top","left","right","bottom",...Hl]);let Gh;function yI(){Gh=void 0}const ki={now:()=>(Gh===void 0&&ki.set(fr.isProcessing||gL.useManualTiming?fr.timestamp:performance.now()),Gh),set:e=>{Gh=e,queueMicrotask(yI)}};function Z2(e,t){e.indexOf(t)===-1&&e.push(t)}function ew(e,t){const A=e.indexOf(t);A>-1&&e.splice(A,1)}class tw{constructor(){this.subscriptions=[]}add(t){return Z2(this.subscriptions,t),()=>ew(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 FI{constructor(t,A={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,n=!0)=>{const i=ki.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=ki.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=CI(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 tw);const r=this.events[t].add(A);return t==="change"?()=>{r(),lA.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=ki.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Ev)return 0;const A=Math.min(this.updatedAt-this.prevUpdatedAt,Ev);return Vb(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 Nc(e,t){return new FI(e,t)}function bI(e,t,A){e.hasValue(t)?e.getValue(t).set(A):e.addValue(t,Nc(A))}function xI(e,t){const A=pp(e,t);let{transitionEnd:r={},transition:n={},...i}=A||{};i={...i,...r};for(const s in i){const o=PL(i[s]);bI(e,s,o)}}function UI(e){return!!(Sr(e)&&e.add)}function M1(e,t){const A=e.getValue("willChange");if(UI(A))return A.add(t)}function Gb(e){return e.props[yb]}const zb=(e,t,A)=>(((1-3*A+3*t)*e+(3*A-6*t))*e+3*t)*e,QI=1e-7,EI=12;function SI(e,t,A,r,n){let i,s,o=0;do s=t+(A-t)/2,i=zb(s,r,n)-e,i>0?A=s:t=s;while(Math.abs(i)>QI&&++oSI(i,0,1,e,A);return i=>i===0||i===1?i:zb(n(i),t,r)}const Wb=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,qb=e=>t=>1-e(1-t),Xb=Wc(.33,1.53,.69,.99),Aw=qb(Xb),Yb=Wb(Aw),Jb=e=>(e*=2)<1?.5*Aw(e):.5*(2-Math.pow(2,-10*(e-1))),rw=e=>1-Math.sin(Math.acos(e)),$b=qb(rw),Zb=Wb(rw),ex=e=>/^0[^.\s]+$/u.test(e);function LI(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||ex(e):!0}const rc=e=>Math.round(e*1e5)/1e5,nw=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function II(e){return e==null}const _I=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,iw=(e,t)=>A=>!!(typeof A=="string"&&_I.test(A)&&A.startsWith(e)||t&&!II(A)&&Object.prototype.hasOwnProperty.call(A,t)),tx=(e,t,A)=>r=>{if(typeof r!="string")return r;const[n,i,s,o]=r.match(nw);return{[e]:parseFloat(n),[t]:parseFloat(i),[A]:parseFloat(s),alpha:o!==void 0?parseFloat(o):1}},NI=e=>vs(0,255,e),Tg={...Pl,transform:e=>Math.round(NI(e))},Zo={test:iw("rgb","red"),parse:tx("red","green","blue"),transform:({red:e,green:t,blue:A,alpha:r=1})=>"rgba("+Tg.transform(e)+", "+Tg.transform(t)+", "+Tg.transform(A)+", "+rc(_c.transform(r))+")"};function TI(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 O1={test:iw("#"),parse:TI,transform:Zo.transform},rl={test:iw("hsl","hue"),parse:tx("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:A,alpha:r=1})=>"hsla("+Math.round(e)+", "+Ti.transform(rc(t))+", "+Ti.transform(rc(A))+", "+rc(_c.transform(r))+")"},Ur={test:e=>Zo.test(e)||O1.test(e)||rl.test(e),parse:e=>Zo.test(e)?Zo.parse(e):rl.test(e)?rl.parse(e):O1.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Zo.transform(e):rl.transform(e)},kI=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function HI(e){var t,A;return isNaN(e)&&typeof e=="string"&&(((t=e.match(nw))===null||t===void 0?void 0:t.length)||0)+(((A=e.match(kI))===null||A===void 0?void 0:A.length)||0)>0}const Ax="number",rx="color",PI="var",DI="var(",Sv="${}",MI=/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 Tc(e){const t=e.toString(),A=[],r={color:[],number:[],var:[]},n=[];let i=0;const o=t.replace(MI,a=>(Ur.test(a)?(r.color.push(i),n.push(rx),A.push(Ur.parse(a))):a.startsWith(DI)?(r.var.push(i),n.push(PI),A.push(a)):(r.number.push(i),n.push(Ax),A.push(parseFloat(a))),++i,Sv)).split(Sv);return{values:A,split:o,indexes:r,types:n}}function nx(e){return Tc(e).values}function ix(e){const{split:t,types:A}=Tc(e),r=t.length;return n=>{let i="";for(let s=0;stypeof e=="number"?0:e;function RI(e){const t=nx(e);return ix(e)(t.map(OI))}const wo={test:HI,parse:nx,createTransformer:ix,getAnimatableNone:RI},KI=new Set(["brightness","contrast","saturate","opacity"]);function jI(e){const[t,A]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=A.match(nw)||[];if(!r)return e;const n=A.replace(r,"");let i=KI.has(t)?1:0;return r!==A&&(i*=100),t+"("+i+n+")"}const VI=/\b([a-z-]*)\(.*?\)/gu,R1={...wo,getAnimatableNone:e=>{const t=e.match(VI);return t?t.map(jI).join(" "):e}},GI={...j2,color:Ur,backgroundColor:Ur,outlineColor:Ur,fill:Ur,stroke:Ur,borderColor:Ur,borderTopColor:Ur,borderRightColor:Ur,borderBottomColor:Ur,borderLeftColor:Ur,filter:R1,WebkitFilter:R1},sw=e=>GI[e];function sx(e,t){let A=sw(e);return A!==R1&&(A=wo),A.getAnimatableNone?A.getAnimatableNone(t):void 0}const zI=new Set(["auto","none","0"]);function WI(e,t,A){let r=0,n;for(;re===Pl||e===it,Iv=(e,t)=>parseFloat(e.split(", ")[t]),_v=(e,t)=>(A,{transform:r})=>{if(r==="none"||!r)return 0;const n=r.match(/^matrix3d\((.+)\)$/u);if(n)return Iv(n[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?Iv(i[1],e):0}},qI=new Set(["x","y","z"]),XI=Hl.filter(e=>!qI.has(e));function YI(e){const t=[];return XI.forEach(A=>{const r=e.getValue(A);r!==void 0&&(t.push([A,r.get()]),r.set(A.startsWith("scale")?1:0))}),t}const Il={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:_v(4,13),y:_v(5,14)};Il.translateX=Il.x;Il.translateY=Il.y;const ra=new Set;let K1=!1,j1=!1;function ox(){if(j1){const e=Array.from(ra).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),A=new Map;t.forEach(r=>{const n=YI(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)})}j1=!1,K1=!1,ra.forEach(e=>e.complete()),ra.clear()}function ax(){ra.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(j1=!0)})}function JI(){ax(),ox()}class ow{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?(ra.add(this),K1||(K1=!0,lA.read(ax),lA.resolveKeyframes(ox))):(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),$I=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ZI(e){const t=$I.exec(e);if(!t)return[,];const[,A,r,n]=t;return[`--${A??r}`,n]}function ux(e,t,A=1){const[r,n]=ZI(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return lx(s)?parseFloat(s):s}return K2(n)?ux(n,t,A+1):n}const cx=e=>t=>t.test(e),e6={test:e=>e==="auto",parse:e=>e},fx=[Pl,it,Ti,Vs,jL,KL,e6],Nv=e=>fx.find(cx(e));class hx extends ow{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 Tv=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(wo.test(e)||e==="0")&&!e.startsWith("url("));function t6(e){const t=e[0];if(e.length===1)return!0;for(let A=0;Ae!==null;function gp(e,{repeat:t,repeatType:A="loop"},r){const n=e.filter(r6),i=t&&A!=="loop"&&t%2===1?0:n.length-1;return!i||r===void 0?n[i]:r}const n6=40;class dx{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=ki.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>n6?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&JI(),this._resolved}onKeyframesResolved(t,A){this.resolvedAt=ki.now(),this.hasAttemptedResolve=!0;const{name:r,type:n,velocity:i,delay:s,onComplete:o,onUpdate:a,isGenerator:l}=this.options;if(!l&&!A6(t,r,n,i))if(s)this.options.duration=0;else{a&&a(gp(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 mA=(e,t,A)=>e+(t-e)*A;function kg(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 i6({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=kg(a,o,e+1/3),i=kg(a,o,e),s=kg(a,o,e-1/3)}return{red:Math.round(n*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function Id(e,t){return A=>A>0?t:e}const Hg=(e,t,A)=>{const r=e*e,n=A*(t*t-r)+r;return n<0?0:Math.sqrt(n)},s6=[O1,Zo,rl],o6=e=>s6.find(t=>t.test(e));function kv(e){const t=o6(e);if(!t)return!1;let A=t.parse(e);return t===rl&&(A=i6(A)),A}const Hv=(e,t)=>{const A=kv(e),r=kv(t);if(!A||!r)return Id(e,t);const n={...A};return i=>(n.red=Hg(A.red,r.red,i),n.green=Hg(A.green,r.green,i),n.blue=Hg(A.blue,r.blue,i),n.alpha=mA(A.alpha,r.alpha,i),Zo.transform(n))},a6=(e,t)=>A=>t(e(A)),qc=(...e)=>e.reduce(a6),V1=new Set(["none","hidden"]);function l6(e,t){return V1.has(e)?A=>A<=0?e:t:A=>A>=1?t:e}function u6(e,t){return A=>mA(e,t,A)}function aw(e){return typeof e=="number"?u6:typeof e=="string"?K2(e)?Id:Ur.test(e)?Hv:h6:Array.isArray(e)?px:typeof e=="object"?Ur.test(e)?Hv:c6:Id}function px(e,t){const A=[...e],r=A.length,n=e.map((i,s)=>aw(i)(i,t[s]));return i=>{for(let s=0;s{for(const i in r)A[i]=r[i](n);return A}}function f6(e,t){var A;const r=[],n={color:0,var:0,number:0};for(let i=0;i{const A=wo.createTransformer(t),r=Tc(e),n=Tc(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?V1.has(e)&&!n.values.length||V1.has(t)&&!r.values.length?l6(e,t):qc(px(f6(r,n),n.values),A):Id(e,t)};function gx(e,t,A){return typeof e=="number"&&typeof t=="number"&&typeof A=="number"?mA(e,t,A):aw(e)(e,t)}const d6=5;function mx(e,t,A){const r=Math.max(t-d6,0);return Vb(A-e(r),t-r)}const xA={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},Pg=.001;function p6({duration:e=xA.duration,bounce:t=xA.bounce,velocity:A=xA.velocity,mass:r=xA.mass}){let n,i,s=1-t;s=vs(xA.minDamping,xA.maxDamping,s),e=vs(xA.minDuration,xA.maxDuration,ds(e)),s<1?(n=l=>{const c=l*s,d=c*e,p=c-A,h=G1(l,s),v=Math.exp(-d);return Pg-p/h*v},i=l=>{const d=l*s*e,p=d*A+A,h=Math.pow(s,2)*Math.pow(l,2)*e,v=Math.exp(-d),C=G1(Math.pow(l,2),s);return(-n(l)+Pg>0?-1:1)*((p-h)*v)/C}):(n=l=>{const c=Math.exp(-l*e),d=(l-A)*e+1;return-Pg+c*d},i=l=>{const c=Math.exp(-l*e),d=(A-l)*(e*e);return c*d});const o=5/e,a=m6(n,i,o);if(e=hs(e),isNaN(a))return{stiffness:xA.stiffness,damping:xA.damping,duration:e};{const l=Math.pow(a,2)*r;return{stiffness:l,damping:s*2*Math.sqrt(r*l),duration:e}}}const g6=12;function m6(e,t,A){let r=A;for(let n=1;ne[A]!==void 0)}function v6(e){let t={velocity:xA.velocity,stiffness:xA.stiffness,damping:xA.damping,mass:xA.mass,isResolvedFromDuration:!1,...e};if(!Pv(e,B6)&&Pv(e,w6))if(e.visualDuration){const A=e.visualDuration,r=2*Math.PI/(A*1.2),n=r*r,i=2*vs(.05,1,1-(e.bounce||0))*Math.sqrt(n);t={...t,mass:xA.mass,stiffness:n,damping:i}}else{const A=p6(e);t={...t,...A,mass:xA.mass},t.isResolvedFromDuration=!0}return t}function wx(e=xA.visualDuration,t=xA.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}=v6({...A,velocity:-ds(A.velocity||0)}),v=p||0,C=l/(2*Math.sqrt(a*c)),U=s-i,w=ds(Math.sqrt(a/c)),y=Math.abs(U)<5;r||(r=y?xA.restSpeed.granular:xA.restSpeed.default),n||(n=y?xA.restDelta.granular:xA.restDelta.default);let F;if(C<1){const N=G1(w,C);F=D=>{const W=Math.exp(-C*w*D);return s-W*((v+C*w*U)/N*Math.sin(N*D)+U*Math.cos(N*D))}}else if(C===1)F=N=>s-Math.exp(-w*N)*(U+(v+w*U)*N);else{const N=w*Math.sqrt(C*C-1);F=D=>{const W=Math.exp(-C*w*D),H=Math.min(N*D,300);return s-W*((v+C*w*U)*Math.sinh(H)+N*U*Math.cosh(H))/N}}const b={calculatedDuration:h&&d||null,next:N=>{const D=F(N);if(h)o.done=N>=d;else{let W=0;C<1&&(W=N===0?hs(v):mx(F,N,D));const H=Math.abs(W)<=r,_=Math.abs(s-D)<=n;o.done=H&&_}return o.value=o.done?s:D,o},toString:()=>{const N=Math.min(Hb(b),P1),D=Pb(W=>b.next(N*W).value,N,30);return N+"ms "+D}};return b}function Dv({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,v=H=>o===void 0?a:a===void 0||Math.abs(o-H)-C*Math.exp(-H/r),F=H=>w+y(H),b=H=>{const _=y(H),Y=F(H);p.done=Math.abs(_)<=l,p.value=p.done?w:Y};let N,D;const W=H=>{h(p.value)&&(N=H,D=wx({keyframes:[p.value,v(p.value)],velocity:mx(F,H,p.value),damping:n,stiffness:i,restDelta:l,restSpeed:c}))};return W(0),{calculatedDuration:null,next:H=>{let _=!1;return!D&&N===void 0&&(_=!0,b(H),W(H)),N!==void 0&&H>=N?D.next(H-N):(!_&&b(H),p)}}}const y6=Wc(.42,0,1,1),C6=Wc(0,0,.58,1),Bx=Wc(.42,0,.58,1),F6=e=>Array.isArray(e)&&typeof e[0]!="number",b6={linear:yn,easeIn:y6,easeInOut:Bx,easeOut:C6,circIn:rw,circInOut:Zb,circOut:$b,backIn:Aw,backInOut:Yb,backOut:Xb,anticipate:Jb},Mv=e=>{if(J2(e)){gb(e.length===4);const[t,A,r,n]=e;return Wc(t,A,r,n)}else if(typeof e=="string")return b6[e];return e};function x6(e,t,A){const r=[],n=A||gx,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=x6(t,r,n),a=o.length,l=c=>{if(s&&c1)for(;dl(vs(e[0],e[i-1],c)):l}function Q6(e,t){const A=e[e.length-1];for(let r=1;r<=t;r++){const n=Sl(0,t,r);e.push(mA(A,1,n))}}function E6(e){const t=[0];return Q6(t,e.length-1),t}function S6(e,t){return e.map(A=>A*t)}function L6(e,t){return e.map(()=>t||Bx).splice(0,e.length-1)}function _d({duration:e=300,keyframes:t,times:A,ease:r="easeInOut"}){const n=F6(r)?r.map(Mv):Mv(r),i={done:!1,value:t[0]},s=S6(A&&A.length===t.length?A:E6(t),e),o=U6(s,t,{ease:Array.isArray(n)?n:L6(t,n)});return{calculatedDuration:e,next:a=>(i.value=o(a),i.done=a>=e,i)}}const I6=e=>{const t=({timestamp:A})=>e(A);return{start:()=>lA.update(t,!0),stop:()=>mo(t),now:()=>fr.isProcessing?fr.timestamp:ki.now()}},_6={decay:Dv,inertia:Dv,tween:_d,keyframes:_d,spring:wx},N6=e=>e/100;class lw extends dx{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)||ow,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=Y2(A)?A:_6[A]||_d;let a,l;o!==_d&&typeof t[0]!="number"&&(a=qc(N6,gx(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=Hb(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:v,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 w=this.currentTime-p*(this.speed>=0?1:-1),y=this.speed>=0?w<0:w>c;this.currentTime=Math.max(w,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 _=Math.floor(H),Y=H%1;!Y&&H>=1&&(Y=1),Y===1&&_--,_=Math.min(_,h+1),!!(_%2)&&(v==="reverse"?(Y=1-Y,C&&(Y-=C/d)):v==="mirror"&&(b=s)),F=vs(0,1,Y)*d}const N=y?{done:!1,value:a[0]}:b.next(F);o&&(N.value=o(N.value));let{done:D}=N;!y&&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&&(N.value=gp(a,this.options,n)),U&&U(N.value),W&&this.finish(),N}get duration(){const{resolved:t}=this;return t?ds(t.calculatedDuration):0}get time(){return ds(this.currentTime)}set time(t){t=hs(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=ds(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=I6,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 T6=new Set(["opacity","clipPath","filter","transform"]);function k6(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=Mb(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 H6=k2(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Nd=10,P6=2e4;function D6(e){return Y2(e.type)||e.type==="spring"||!Db(e.ease)}function M6(e,t){const A=new lw({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const n=[];let i=0;for(;!r.done&&ithis.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"&&Ld()&&O6(i)&&(i=vx[i]),D6(this.options)){const{onComplete:d,onUpdate:p,motionValue:h,element:v,...C}=this.options,U=M6(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=k6(o.owner.current,a,t,{...this.options,duration:r,times:n,ease:i});return c.startTime=l??this.calcStartTime(),this.pendingTimeline?(bv(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:d}=this.options;o.set(gp(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 ds(A)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:A}=t;return ds(A.currentTime||0)}set time(t){const{resolved:A}=this;if(!A)return;const{animation:r}=A;r.currentTime=hs(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 yn;const{animation:r}=A;bv(r,t)}return yn}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,v=new lw({...h,keyframes:r,duration:n,type:i,ease:s,times:o,isGenerator:!0}),C=hs(this.time);l.setWithVelocity(v.sample(C-Nd).value,v.sample(C).value,Nd)}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 H6()&&r&&T6.has(r)&&!a&&!l&&!n&&i!=="mirror"&&s!==0&&o!=="inertia"}}const R6={type:"spring",stiffness:500,damping:25,restSpeed:10},K6=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),j6={type:"keyframes",duration:.8},V6={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},G6=(e,{keyframes:t})=>t.length>2?j6:ga.has(e)?e.startsWith("scale")?K6(t[1]):R6:V6;function z6({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 uw=(e,t,A,r={},n,i)=>s=>{const o=X2(r,e)||{},a=o.delay||r.delay||0;let{elapsed:l=0}=r;l=l-hs(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};z6(o)||(c={...c,...G6(e,c)}),c.duration&&(c.duration=hs(c.duration)),c.repeatDelay&&(c.repeatDelay=hs(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=gp(c.keyframes,o);if(p!==void 0)return lA.update(()=>{c.onUpdate(p),c.onComplete()}),new cI([])}return!i&&Ov.supports(c)?new Ov(c):new lw(c)};function W6({protectedKeys:e,needsAnimating:t},A){const r=e.hasOwnProperty(A)&&t[A]!==!0;return t[A]=!1,r}function yx(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&&W6(c,d))continue;const v={delay:A,...X2(s||{},d)};let C=!1;if(window.MotionHandoffAnimation){const w=Gb(e);if(w){const y=window.MotionHandoffAnimation(w,d,lA);y!==null&&(v.startTime=y,C=!0)}}M1(e,d),p.start(uw(d,p,h,e.shouldReduceMotion&&jb.has(d)?{type:!1}:v,e,C));const U=p.animation;U&&l.push(U)}return o&&Promise.all(l).then(()=>{lA.update(()=>{o&&xI(e,o)})}),l}function z1(e,t,A={}){var r;const n=pp(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(yx(e,n,A)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:p}=i;return q6(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 q6(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(X6).forEach((l,c)=>{l.notify("AnimationStart",t),s.push(z1(l,t,{...i,delay:A+a(c)}).then(()=>l.notify("AnimationComplete",t)))}),Promise.all(s)}function X6(e,t){return e.sortNodePosition(t)}function Y6(e,t,A={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const n=t.map(i=>z1(e,i,A));r=Promise.all(n)}else if(typeof t=="string")r=z1(e,t,A);else{const n=typeof t=="function"?pp(e,t,A.custom):t;r=Promise.all(yx(e,n,A))}return r.then(()=>{e.notify("AnimationComplete",t)})}const J6=P2.length;function Cx(e){if(!e)return;if(!e.isControllingVariants){const A=e.parent?Cx(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})=>Y6(e,A,r)))}function t_(e){let t=e_(e),A=Rv(),r=!0;const n=a=>(l,c)=>{var d;const p=pp(e,c,a==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(p){const{transition:h,transitionEnd:v,...C}=p;l={...l,...C,...v}}return l};function i(a){t=a(e)}function s(a){const{props:l}=e,c=Cx(e.parent)||{},d=[],p=new Set;let h={},v=1/0;for(let U=0;Uv&&b,_=!1;const Y=Array.isArray(F)?F:[F];let S=Y.reduce(n(w),{});N===!1&&(S={});const{prevResolvedValues:k={}}=y,V={...k,...S},z=se=>{H=!0,p.has(se)&&(_=!0,p.delete(se)),y.needsAnimating[se]=!0;const q=e.getValue(se);q&&(q.liveStyle=!1)};for(const se in V){const q=S[se],Ae=k[se];if(h.hasOwnProperty(se))continue;let he=!1;H1(q)&&H1(Ae)?he=!kb(q,Ae):he=q!==Ae,he?q!=null?z(se):p.add(se):q!==void 0&&p.has(se)?z(se):y.protectedKeys[se]=!0}y.prevProp=F,y.prevResolvedValues=S,y.isActive&&(h={...h,...S}),r&&e.blockInitialAnimation&&(H=!1),H&&(!(D&&W)||_)&&d.push(...Y.map(se=>({animation:se,options:{type:w}})))}if(p.size){const U={};p.forEach(w=>{const y=e.getBaseTarget(w),F=e.getValue(w);F&&(F.liveStyle=!0),U[w]=y??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=Rv(),r=!0}}}function A_(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!kb(t,e):!1}function Ro(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Rv(){return{animate:Ro(!0),whileInView:Ro(),whileHover:Ro(),whileTap:Ro(),whileDrag:Ro(),whileFocus:Ro(),exit:Ro()}}class bo{constructor(t){this.isMounted=!1,this.node=t}update(){}}class r_ extends bo{constructor(t){super(t),t.animationState||(t.animationState=t_(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();hp(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 n_=0;class i_ extends bo{constructor(){super(...arguments),this.id=n_++}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 s_={animation:{Feature:r_},exit:{Feature:i_}};function kc(e,t,A,r={passive:!0}){return e.addEventListener(t,A,r),()=>e.removeEventListener(t,A)}function Xc(e){return{point:{x:e.pageX,y:e.pageY}}}const o_=e=>t=>$2(t)&&e(t,Xc(t));function nc(e,t,A,r){return kc(e,t,o_(A),r)}const Kv=(e,t)=>Math.abs(e-t);function a_(e,t){const A=Kv(e.x,t.x),r=Kv(e.y,t.y);return Math.sqrt(A**2+r**2)}class Fx{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=Mg(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,h=a_(d.offset,{x:0,y:0})>=3;if(!p&&!h)return;const{point:v}=d,{timestamp:C}=fr;this.history.push({...v,timestamp:C});const{onStart:U,onMove:w}=this.handlers;p||(U&&U(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),w&&w(this.lastMoveEvent,d)},this.handlePointerMove=(d,p)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=Dg(p,this.transformPagePoint),lA.update(this.updatePoint,!0)},this.handlePointerUp=(d,p)=>{this.end();const{onEnd:h,onSessionEnd:v,resumeAnimation:C}=this.handlers;if(this.dragSnapToOrigin&&C&&C(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const U=Mg(d.type==="pointercancel"?this.lastMoveEventInfo:Dg(p,this.transformPagePoint),this.history);this.startEvent&&h&&h(d,U),v&&v(d,U)},!$2(t))return;this.dragSnapToOrigin=i,this.handlers=A,this.transformPagePoint=r,this.contextWindow=n||window;const s=Xc(t),o=Dg(s,this.transformPagePoint),{point:a}=o,{timestamp:l}=fr;this.history=[{...a,timestamp:l}];const{onSessionStart:c}=A;c&&c(t,Mg(o,this.history)),this.removeListeners=qc(nc(this.contextWindow,"pointermove",this.handlePointerMove),nc(this.contextWindow,"pointerup",this.handlePointerUp),nc(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),mo(this.updatePoint)}}function Dg(e,t){return t?{point:t(e.point)}:e}function jv(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Mg({point:e},t){return{point:e,delta:jv(e,bx(t)),offset:jv(e,l_(t)),velocity:u_(t,.1)}}function l_(e){return e[0]}function bx(e){return e[e.length-1]}function u_(e,t){if(e.length<2)return{x:0,y:0};let A=e.length-1,r=null;const n=bx(e);for(;A>=0&&(r=e[A],!(n.timestamp-r.timestamp>hs(t)));)A--;if(!r)return{x:0,y:0};const i=ds(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 xx=1e-4,c_=1-xx,f_=1+xx,Ux=.01,h_=0-Ux,d_=0+Ux;function Fn(e){return e.max-e.min}function p_(e,t,A){return Math.abs(e-t)<=A}function Vv(e,t,A,r=.5){e.origin=r,e.originPoint=mA(t.min,t.max,e.origin),e.scale=Fn(A)/Fn(t),e.translate=mA(A.min,A.max,e.origin)-e.originPoint,(e.scale>=c_&&e.scale<=f_||isNaN(e.scale))&&(e.scale=1),(e.translate>=h_&&e.translate<=d_||isNaN(e.translate))&&(e.translate=0)}function ic(e,t,A,r){Vv(e.x,t.x,A.x,r?r.originX:void 0),Vv(e.y,t.y,A.y,r?r.originY:void 0)}function Gv(e,t,A){e.min=A.min+t.min,e.max=e.min+Fn(t)}function g_(e,t,A){Gv(e.x,t.x,A.x),Gv(e.y,t.y,A.y)}function zv(e,t,A){e.min=t.min-A.min,e.max=e.min+Fn(t)}function sc(e,t,A){zv(e.x,t.x,A.x),zv(e.y,t.y,A.y)}function m_(e,{min:t,max:A},r){return t!==void 0&&eA&&(e=r?mA(A,e,r.max):Math.min(e,A)),e}function Wv(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 w_(e,{top:t,left:A,bottom:r,right:n}){return{x:Wv(e.x,A,n),y:Wv(e.y,t,r)}}function qv(e,t){let A=t.min-e.min,r=t.max-e.max;return t.max-t.minr?A=Sl(t.min,t.max-r,e.min):r>n&&(A=Sl(e.min,e.max-n,t.min)),vs(0,1,A)}function y_(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 W1=.35;function C_(e=W1){return e===!1?e=0:e===!0&&(e=W1),{x:Xv(e,"left","right"),y:Xv(e,"top","bottom")}}function Xv(e,t,A){return{min:Yv(e,t),max:Yv(e,A)}}function Yv(e,t){return typeof e=="number"?e:e[t]||0}const Jv=()=>({translate:0,scale:1,origin:0,originPoint:0}),nl=()=>({x:Jv(),y:Jv()}),$v=()=>({min:0,max:0}),_A=()=>({x:$v(),y:$v()});function Pn(e){return[e("x"),e("y")]}function Qx({top:e,left:t,right:A,bottom:r}){return{x:{min:t,max:A},y:{min:e,max:r}}}function F_({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function b_(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 Og(e){return e===void 0||e===1}function q1({scale:e,scaleX:t,scaleY:A}){return!Og(e)||!Og(t)||!Og(A)}function Go(e){return q1(e)||Ex(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Ex(e){return Zv(e.x)||Zv(e.y)}function Zv(e){return e&&e!=="0%"}function Td(e,t,A){const r=e-A,n=t*r;return A+n}function e5(e,t,A,r,n){return n!==void 0&&(e=Td(e,n,r)),Td(e,A,r)+t}function X1(e,t=0,A=1,r,n){e.min=e5(e.min,t,A,r,n),e.max=e5(e.max,t,A,r,n)}function Sx(e,{x:t,y:A}){X1(e.x,t.translate,t.scale,t.originPoint),X1(e.y,A.translate,A.scale,A.originPoint)}const t5=.999999999999,A5=1.0000000000001;function x_(e,t,A,r=!1){const n=A.length;if(!n)return;t.x=t.y=1;let i,s;for(let o=0;ot5&&(t.x=1),t.yt5&&(t.y=1)}function il(e,t){e.min=e.min+t,e.max=e.max+t}function r5(e,t,A,r,n=.5){const i=mA(e.min,e.max,n);X1(e,t,A,i,r)}function sl(e,t){r5(e.x,t.x,t.scaleX,t.scale,t.originX),r5(e.y,t.y,t.scaleY,t.scale,t.originY)}function Lx(e,t){return Qx(b_(e.getBoundingClientRect(),t))}function U_(e,t,A){const r=Lx(e,A),{scroll:n}=t;return n&&(il(r.x,n.offset.x),il(r.y,n.offset.y)),r}const Ix=({current:e})=>e?e.ownerDocument.defaultView:null,Q_=new WeakMap;class E_{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=_A(),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(Xc(c).point)},i=(c,d)=>{const{drag:p,dragPropagation:h,onDragStart:v}=this.getProps();if(p&&!h&&(this.openDragLock&&this.openDragLock(),this.openDragLock=vI(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),Pn(U=>{let w=this.getAxisMotionValue(U).get()||0;if(Ti.test(w)){const{projection:y}=this.visualElement;if(y&&y.layout){const F=y.layout.layoutBox[U];F&&(w=Fn(F)*(parseFloat(w)/100))}}this.originPoint[U]=w}),v&&lA.postRender(()=>v(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:v,onDrag:C}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:U}=d;if(h&&this.currentDirection===null){this.currentDirection=S_(U),this.currentDirection!==null&&v&&v(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=()=>Pn(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 Fx(t,{onSessionStart:n,onStart:i,onMove:s,onSessionEnd:o,resumeAnimation:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:Ix(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&&lA.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||!Jf(t,n,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=m_(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&&Al(A)?this.constraints||(this.constraints=this.resolveRefConstraints()):A&&n?this.constraints=w_(n.layoutBox,A):this.constraints=!1,this.elastic=C_(r),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&Pn(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=y_(n.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:A}=this.getProps();if(!t||!Al(t))return!1;const r=t.current,{projection:n}=this.visualElement;if(!n||!n.layout)return!1;const i=U_(r,n.root,this.visualElement.getTransformPagePoint());let s=B_(n.layout.layoutBox,i);if(A){const o=A(F_(s));this.hasMutatedConstraints=!!o,o&&(s=Qx(o))}return s}startAnimation(t){const{drag:A,dragMomentum:r,dragElastic:n,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{},l=Pn(c=>{if(!Jf(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,v={type:"inertia",velocity:r?t[c]:0,bounceStiffness:p,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(c,v)});return Promise.all(l).then(o)}startAxisValueAnimation(t,A){const r=this.getAxisMotionValue(t);return M1(this.visualElement,t),r.start(uw(t,r,0,A,this.visualElement,!1))}stopAnimation(){Pn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Pn(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){Pn(A=>{const{drag:r}=this.getProps();if(!Jf(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]-mA(s,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:A}=this.getProps(),{projection:r}=this.visualElement;if(!Al(A)||!r||!this.constraints)return;this.stopAnimation();const n={x:0,y:0};Pn(s=>{const o=this.getAxisMotionValue(s);if(o&&this.constraints!==!1){const a=o.get();n[s]=v_({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(),Pn(s=>{if(!Jf(s,t,null))return;const o=this.getAxisMotionValue(s),{min:a,max:l}=this.constraints[s];o.set(mA(a,l,n[s]))})}addListeners(){if(!this.visualElement.current)return;Q_.set(this.visualElement,this);const t=this.visualElement.current,A=nc(t,"pointerdown",a=>{const{drag:l,dragListener:c=!0}=this.getProps();l&&c&&this.start(a)}),r=()=>{const{dragConstraints:a}=this.getProps();Al(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()),lA.read(r);const s=kc(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",({delta:a,hasLayoutChanged:l})=>{this.isDragging&&l&&(Pn(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=W1,dragMomentum:o=!0}=t;return{...t,drag:A,dragDirectionLock:r,dragPropagation:n,dragConstraints:i,dragElastic:s,dragMomentum:o}}}function Jf(e,t,A){return(t===!0||t===e)&&(A===null||A===e)}function S_(e,t=10){let A=null;return Math.abs(e.y)>t?A="y":Math.abs(e.x)>t&&(A="x"),A}class L_ extends bo{constructor(t){super(t),this.removeGroupControls=yn,this.removeListeners=yn,this.controls=new E_(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||yn}unmount(){this.removeGroupControls(),this.removeListeners()}}const n5=e=>(t,A)=>{e&&lA.postRender(()=>e(t,A))};class I_ extends bo{constructor(){super(...arguments),this.removePointerDownListener=yn}onPointerDown(t){this.session=new Fx(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Ix(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:A,onPan:r,onPanEnd:n}=this.node.getProps();return{onSessionStart:n5(t),onStart:n5(A),onMove:r,onEnd:(i,s)=>{delete this.session,n&&lA.postRender(()=>n(i,s))}}}mount(){this.removePointerDownListener=nc(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 zh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function i5(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const vu={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(it.test(e))e=parseFloat(e);else return e;const A=i5(e,t.target.x),r=i5(e,t.target.y);return`${A}% ${r}%`}},__={correct:(e,{treeScale:t,projectionDelta:A})=>{const r=e,n=wo.parse(e);if(n.length>5)return r;const i=wo.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=mA(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 N_ extends Ne.Component{componentDidMount(){const{visualElement:t,layoutGroup:A,switchLayoutGroup:r,layoutId:n}=this.props,{projection:i}=t;ZL(T_),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()})),zh.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()||lA.postRender(()=>{const o=s.getStack();(!o||!o.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),M2.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 _x(e){const[t,A]=db(),r=Ne.useContext(I2);return ae.jsx(N_,{...e,layoutGroup:r,switchLayoutGroup:Ne.useContext(Cb),isPresent:t,safeToRemove:A})}const T_={borderRadius:{...vu,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:vu,borderTopRightRadius:vu,borderBottomLeftRadius:vu,borderBottomRightRadius:vu,boxShadow:__};function k_(e,t,A){const r=Sr(e)?e:Nc(e);return r.start(uw("",r,t,A)),r.animation}function H_(e){return e instanceof SVGElement&&e.tagName!=="svg"}const P_=(e,t)=>e.depth-t.depth;class D_{constructor(){this.children=[],this.isDirty=!1}add(t){Z2(this.children,t),this.isDirty=!0}remove(t){ew(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(P_),this.isDirty=!1,this.children.forEach(t)}}function M_(e,t){const A=ki.now(),r=({timestamp:n})=>{const i=n-A;i>=t&&(mo(r),e(i-t))};return lA.read(r,!0),()=>mo(r)}const Nx=["TopLeft","TopRight","BottomLeft","BottomRight"],O_=Nx.length,s5=e=>typeof e=="string"?parseFloat(e):e,o5=e=>typeof e=="number"||it.test(e);function R_(e,t,A,r,n,i){n?(e.opacity=mA(0,A.opacity!==void 0?A.opacity:1,K_(r)),e.opacityExit=mA(t.opacity!==void 0?t.opacity:1,0,j_(r))):i&&(e.opacity=mA(t.opacity!==void 0?t.opacity:1,A.opacity!==void 0?A.opacity:1,r));for(let s=0;srt?1:A(Sl(e,t,r))}function l5(e,t){e.min=t.min,e.max=t.max}function Hn(e,t){l5(e.x,t.x),l5(e.y,t.y)}function u5(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function c5(e,t,A,r,n){return e-=t,e=Td(e,1/A,r),n!==void 0&&(e=Td(e,1/n,r)),e}function V_(e,t=0,A=1,r=.5,n,i=e,s=e){if(Ti.test(t)&&(t=parseFloat(t),t=mA(s.min,s.max,t/100)-s.min),typeof t!="number")return;let o=mA(i.min,i.max,r);e===i&&(o-=t),e.min=c5(e.min,t,A,o,n),e.max=c5(e.max,t,A,o,n)}function f5(e,t,[A,r,n],i,s){V_(e,t[A],t[r],t[n],t.scale,i,s)}const G_=["x","scaleX","originX"],z_=["y","scaleY","originY"];function h5(e,t,A,r){f5(e.x,t,G_,A?A.x:void 0,r?r.x:void 0),f5(e.y,t,z_,A?A.y:void 0,r?r.y:void 0)}function d5(e){return e.translate===0&&e.scale===1}function kx(e){return d5(e.x)&&d5(e.y)}function p5(e,t){return e.min===t.min&&e.max===t.max}function W_(e,t){return p5(e.x,t.x)&&p5(e.y,t.y)}function g5(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Hx(e,t){return g5(e.x,t.x)&&g5(e.y,t.y)}function m5(e){return Fn(e.x)/Fn(e.y)}function w5(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class q_{constructor(){this.members=[]}add(t){Z2(this.members,t),t.scheduleRender()}remove(t){if(ew(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 X_(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:v}=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) `),v&&(r+=`skewY(${v}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 zo={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Ou=typeof window<"u"&&window.MotionDebug!==void 0,Rg=["","X","Y","Z"],Y_={visibility:"hidden"},B5=1e3;let J_=0;function Kg(e,t,A,r){const{latestValues:n}=t;n[e]&&(A[e]=n[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Px(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const A=Gb(t);if(window.MotionHasOptimisedAnimation(A,"transform")){const{layout:n,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(A,"transform",lA,!(n||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Px(r)}function Dx({attachResizeListener:e,defaultParent:t,measureScroll:A,checkIsScrollRoot:r,resetTransform:n}){return class{constructor(s={},o=t==null?void 0:t()){this.id=J_++,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,Ou&&(zo.totalNodes=zo.resolvedTargetDeltas=zo.recalculatedProjection=0),this.nodes.forEach(eN),this.nodes.forEach(iN),this.nodes.forEach(sN),this.nodes.forEach(tN),Ou&&window.MotionDebug.record(zo)},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=M_(p,250),zh.hasAnimatedSinceResize&&(zh.hasAnimatedSinceResize=!1,this.nodes.forEach(y5))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||l)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:p,hasRelativeTargetChanged:h,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const C=this.options.transition||c.getDefaultTransition()||cN,{onLayoutAnimationStart:U,onLayoutAnimationComplete:w}=c.getProps(),y=!this.targetLayout||!Hx(this.targetLayout,v)||h,F=!p&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||F||p&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,F);const b={...X2(C,"layout"),onPlay:U,onComplete:w};(c.shouldReduceMotion||this.options.layoutRoot)&&(b.delay=0,b.type=!1),this.startAnimation(b)}else p||y5(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=v})}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,mo(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(oN),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&&Px(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 N=b/1e3;C5(d.x,s.x,N),C5(d.y,s.y,N),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(sc(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),lN(this.relativeTarget,this.relativeTargetOrigin,p,N),F&&W_(this.relativeTarget,F)&&(this.isProjectionDirty=!1),F||(F=_A()),Hn(F,this.relativeTarget)),C&&(this.animationValues=c,R_(c,l,this.latestValues,N,y,w)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=N},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&&(mo(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=lA.update(()=>{zh.hasAnimatedSinceResize=!0,this.currentAnimation=k_(0,B5,{...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(B5),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&&Mx(this.options.animationType,this.layout.layoutBox,l.layoutBox)){a=this.target||_A();const d=Fn(this.layout.layoutBox.x);a.x.min=s.target.x.min,a.x.max=a.x.min+d;const p=Fn(this.layout.layoutBox.y);a.y.min=s.target.y.min,a.y.max=a.y.min+p}Hn(o,a),sl(o,c),ic(this.projectionDeltaWithTransform,this.layoutCorrected,o,c)}}registerSharedNode(s,o){this.sharedNodes.has(s)||this.sharedNodes.set(s,new q_),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&&Kg("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(v5),this.root.sharedNodes.clear()}}}function $_(e){e.updateLayout()}function Z_(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"?Pn(d=>{const p=s?A.measuredBox[d]:A.layoutBox[d],h=Fn(p);p.min=r[d].min,p.max=p.min+h}):Mx(i,A.layoutBox,r)&&Pn(d=>{const p=s?A.measuredBox[d]:A.layoutBox[d],h=Fn(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=nl();ic(o,r,A.layoutBox);const a=nl();s?ic(a,e.applyTransform(n,!0),A.measuredBox):ic(a,r,A.layoutBox);const l=!kx(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 v=_A();sc(v,A.layoutBox,p.layoutBox);const C=_A();sc(C,r,h.layoutBox),Hx(v,C)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=C,e.relativeTargetOrigin=v,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 eN(e){Ou&&zo.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 tN(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function AN(e){e.clearSnapshot()}function v5(e){e.clearMeasurements()}function rN(e){e.isLayoutDirty=!1}function nN(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function y5(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function iN(e){e.resolveTargetDelta()}function sN(e){e.calcProjection()}function oN(e){e.resetSkewAndRotation()}function aN(e){e.removeLeadSnapshot()}function C5(e,t,A){e.translate=mA(t.translate,0,A),e.scale=mA(t.scale,1,A),e.origin=t.origin,e.originPoint=t.originPoint}function F5(e,t,A,r){e.min=mA(t.min,A.min,r),e.max=mA(t.max,A.max,r)}function lN(e,t,A,r){F5(e.x,t.x,A.x,r),F5(e.y,t.y,A.y,r)}function uN(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const cN={duration:.45,ease:[.4,0,.1,1]},b5=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),x5=b5("applewebkit/")&&!b5("chrome/")?Math.round:yn;function U5(e){e.min=x5(e.min),e.max=x5(e.max)}function fN(e){U5(e.x),U5(e.y)}function Mx(e,t,A){return e==="position"||e==="preserve-aspect"&&!p_(m5(t),m5(A),.2)}function hN(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const dN=Dx({attachResizeListener:(e,t)=>kc(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),jg={current:void 0},Ox=Dx({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!jg.current){const e=new dN({});e.mount(window),e.setOptions({layoutScroll:!0}),jg.current=e}return jg.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),pN={pan:{Feature:I_},drag:{Feature:L_,ProjectionNode:Ox,MeasureLayout:_x}};function Q5(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&&lA.postRender(()=>i(t,Xc(t)))}class gN extends bo{mount(){const{current:t}=this.node;t&&(this.unmount=pI(t,A=>(Q5(this.node,A,"Start"),r=>Q5(this.node,r,"End"))))}unmount(){}}class mN extends bo{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=qc(kc(this.node.current,"focus",()=>this.onFocus()),kc(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function E5(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&&lA.postRender(()=>i(t,Xc(t)))}class wN extends bo{mount(){const{current:t}=this.node;t&&(this.unmount=BI(t,A=>(E5(this.node,A,"Start"),(r,{success:n})=>E5(this.node,r,n?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Y1=new WeakMap,Vg=new WeakMap,BN=e=>{const t=Y1.get(e.target);t&&t(e)},vN=e=>{e.forEach(BN)};function yN({root:e,...t}){const A=e||document;Vg.has(A)||Vg.set(A,{});const r=Vg.get(A),n=JSON.stringify(t);return r[n]||(r[n]=new IntersectionObserver(vN,{root:e,...t})),r[n]}function CN(e,t,A){const r=yN(t);return Y1.set(e,A),r.observe(e),()=>{Y1.delete(e),r.unobserve(e)}}const FN={some:0,all:1};class bN extends bo{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:FN[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 CN(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(xN(t,A))&&this.startObserver()}unmount(){}}function xN({viewport:e={}},{viewport:t={}}={}){return A=>e[A]!==t[A]}const UN={inView:{Feature:bN},tap:{Feature:wN},focus:{Feature:mN},hover:{Feature:gN}},QN={layout:{ProjectionNode:Ox,MeasureLayout:_x}},J1={current:null},Rx={current:!1};function EN(){if(Rx.current=!0,!!T2)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>J1.current=e.matches;e.addListener(t),t()}else J1.current=!1}const SN=[...fx,Ur,wo],LN=e=>SN.find(cx(e)),S5=new WeakMap;function IN(e,t,A){for(const r in t){const n=t[r],i=A[r];if(Sr(n))e.addValue(r,n);else if(Sr(i))e.addValue(r,Nc(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,Nc(s!==void 0?s:n,{owner:e}))}}for(const r in A)t[r]===void 0&&e.removeValue(r);return t}const L5=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class _N{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=ow,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=ki.now();this.renderScheduledAtthis.bindToMotionValue(r,A)),Rx.current||EN(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:J1.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){S5.delete(this.current),this.projection&&this.projection.unmount(),mo(this.notifyUpdate),mo(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=ga.has(t),n=A.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&lA.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 Ll){const A=Ll[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):_A()}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=Nc(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"&&(lx(n)||ex(n))?n=parseFloat(n):!LN(n)&&wo.test(A)&&(n=sx(t,A)),this.setBaseTarget(t,Sr(n)?n.get():n)),Sr(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=R2(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&&!Sr(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 tw),this.events[t].add(A)}notify(t,...A){this.events[t]&&this.events[t].notify(...A)}}class Kx extends _N{constructor(){super(...arguments),this.KeyframeResolver=hx}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;Sr(t)&&(this.childSubscription=t.on("change",A=>{this.current&&(this.current.textContent=`${A}`)}))}}function NN(e){return window.getComputedStyle(e)}class TN extends Kx{constructor(){super(...arguments),this.type="html",this.renderInstance=Sb}readValueFromInstance(t,A){if(ga.has(A)){const r=sw(A);return r&&r.default||0}else{const r=NN(t),n=(Ub(A)?r.getPropertyValue(A):r[A])||0;return typeof n=="string"?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:A}){return Lx(t,A)}build(t,A,r){V2(t,A,r.transformTemplate)}scrapeMotionValuesFromProps(t,A,r){return q2(t,A,r)}}class kN extends Kx{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=_A}getBaseTargetFromProps(t,A){return t[A]}readValueFromInstance(t,A){if(ga.has(A)){const r=sw(A);return r&&r.default||0}return A=Lb.has(A)?A:D2(A),t.getAttribute(A)}scrapeMotionValuesFromProps(t,A,r){return Nb(t,A,r)}build(t,A,r){G2(t,A,this.isSVGTag,r.transformTemplate)}renderInstance(t,A,r,n){Ib(t,A,r,n)}mount(t){this.isSVGTag=W2(t.tagName),super.mount(t)}}const HN=(e,t)=>O2(e)?new kN(t):new TN(t,{allowProjection:e!==Ne.Fragment}),PN=aI({...s_,...UN,...pN,...QN},HN),mn=FL(PN);/** * @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 DN={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 MN=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),ma=(e,t)=>{const A=Ne.forwardRef(({color:r="currentColor",size:n=24,strokeWidth:i=2,absoluteStrokeWidth:s,className:o="",children:a,...l},c)=>Ne.createElement("svg",{ref:c,...DN,width:n,height:n,stroke:r,strokeWidth:s?Number(i)*24/Number(n):i,className:["lucide",`lucide-${MN(e)}`,o].join(" "),...l},[...t.map(([d,p])=>Ne.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 ON=ma("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 jx=ma("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=ma("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 Vx=ma("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 KN=ma("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 jN=ma("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 $1=ma("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 Z1=function(e,t){return Z1=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])},Z1(e,t)};function hi(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Z1(e,t);function A(){this.constructor=e}e.prototype=t===null?Object.create(t):(A.prototype=t.prototype,new A)}var em=function(){return em=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},I5="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",GN=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Zf=0;Zf"u"?[]:new Uint8Array(256);for(var eh=0;eh<_5.length;eh++)Ru[_5.charCodeAt(eh)]=eh;var zN=function(e){var t=e.length*.75,A=e.length,r,n=0,i,s,o,a;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);var l=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(t):new Array(t),c=Array.isArray(l)?l:new Uint8Array(l);for(r=0;r>4,c[n++]=(s&15)<<4|o>>2,c[n++]=(o&3)<<6|a&63;return l},WN=function(e){for(var t=e.length,A=[],r=0;r>na,YN=1<>na,$N=Gx+JN,ZN=$N,e8=32,t8=ZN+e8,A8=65536>>cw,r8=1<=0){if(t<55296||t>56319&&t<=65535)return A=this.index[t>>na],A=(A<>na)],A=(A<>cw),A=this.index[A],A+=t>>na&n8,A=this.index[A],A=(A<"u"?[]:new Uint8Array(256);for(var th=0;thk5?(n.push(!0),o-=k5):n.push(!1),["normal","auto","loose"].indexOf(t)!==-1&&[8208,8211,12316,12448].indexOf(i)!==-1)return r.push(s),A.push(rm);if(o===c8||o===tm){if(s===0)return r.push(s),A.push(qo);var a=A[s-1];return B8.indexOf(a)===-1?(r.push(r[s-1]),A.push(a)):(r.push(s),A.push(qo))}if(r.push(s),o===g8)return A.push(t==="strict"?nm:Hc);if(o===Xx||o===p8)return A.push(qo);if(o===m8)return i>=131072&&i<=196605||i>=196608&&i<=262141?A.push(Hc):A.push(qo);A.push(o)}),[r,A,n]},Xg=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!==eo)break}if(n===eo)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!==eo)break}if(o!==eo)break}return!1},K5=function(e,t){for(var A=e;A>=0;){var r=t[A];if(r===eo)A--;else return r}return 0},C8=function(e,t,A,r,n){if(A[r]===0)return Et;var i=r-1;if(Array.isArray(n)&&n[i]===!0)return Et;var s=i-1,o=i+1,a=t[i],l=s>=0?t[s]:0,c=t[o];if(a===zx&&c===Wx)return Et;if(um.indexOf(a)!==-1)return Yx;if(um.indexOf(c)!==-1||Jx.indexOf(c)!==-1)return Et;if(K5(i,t)===qx)return ih;if(lm.get(e[i])===tm||(a===rh||a===nh)&&lm.get(e[o])===tm||a===H5||c===H5||a===P5||[eo,Am,Ku].indexOf(a)===-1&&c===P5||[Ah,yu,d8,Ia,_a].indexOf(c)!==-1||K5(i,t)===Cu||Xg(Wg,Cu,i,t)||Xg([Ah,yu],nm,i,t)||Xg(D5,D5,i,t))return Et;if(a===eo)return ih;if(a===Wg||c===Wg)return Et;if(c===rm||a===rm)return ih;if([Am,Ku,nm].indexOf(c)!==-1||a===h8||l===om&&v8.indexOf(a)!==-1||a===_a&&c===om||c===M5||ts.indexOf(c)!==-1&&a===pn||ts.indexOf(a)!==-1&&c===pn||a===Vu&&[Hc,rh,nh].indexOf(c)!==-1||[Hc,rh,nh].indexOf(a)!==-1&&c===ju||ts.indexOf(a)!==-1&&O5.indexOf(c)!==-1||O5.indexOf(a)!==-1&&ts.indexOf(c)!==-1||[Vu,ju].indexOf(a)!==-1&&(c===pn||[Cu,Ku].indexOf(c)!==-1&&t[o+1]===pn)||[Cu,Ku].indexOf(a)!==-1&&c===pn||a===pn&&[pn,_a,Ia].indexOf(c)!==-1)return Et;if([pn,_a,Ia,Ah,yu].indexOf(c)!==-1)for(var d=i;d>=0;){var p=t[d];if(p===pn)return Et;if([_a,Ia].indexOf(p)!==-1)d--;else break}if([Vu,ju].indexOf(c)!==-1)for(var d=[Ah,yu].indexOf(a)!==-1?s:i;d>=0;){var p=t[d];if(p===pn)return Et;if([_a,Ia].indexOf(p)!==-1)d--;else break}if(am===a&&[am,Wh,im,sm].indexOf(c)!==-1||[Wh,im].indexOf(a)!==-1&&[Wh,qh].indexOf(c)!==-1||[qh,sm].indexOf(a)!==-1&&c===qh||R5.indexOf(a)!==-1&&[M5,ju].indexOf(c)!==-1||R5.indexOf(c)!==-1&&a===Vu||ts.indexOf(a)!==-1&&ts.indexOf(c)!==-1||a===Ia&&ts.indexOf(c)!==-1||ts.concat(pn).indexOf(a)!==-1&&c===Cu&&w8.indexOf(e[o])===-1||ts.concat(pn).indexOf(c)!==-1&&a===yu)return Et;if(a===qg&&c===qg){for(var h=A[i],v=1;h>0&&(h--,t[h]===qg);)v++;if(v%2!==0)return Et}return a===rh&&c===nh?Et:ih},F8=function(e,t){t||(t={lineBreak:"normal",wordBreak:"normal"});var A=y8(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[pn,qo,Xx].indexOf(o)!==-1?Hc: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]},b8=function(){function e(t,A,r,n){this.codePoints=t,this.required=A===Yx,this.start=r,this.end=n}return e.prototype.slice=function(){return NA.apply(void 0,this.codePoints.slice(this.start,this.end))},e}(),x8=function(e,t){var A=wp(e),r=F8(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=Et;l=$x&&e<=57},iT=function(e){return e>=55296&&e<=57343},Na=function(e){return Qr(e)||e>=tU&&e<=rU||e>=Zx&&e<=eT},sT=function(e){return e>=Zx&&e<=AT},oT=function(e){return e>=tU&&e<=nT},aT=function(e){return sT(e)||oT(e)},lT=function(e){return e>=V8},uh=function(e){return e===kd||e===E8||e===S8},Hd=function(e){return aT(e)||lT(e)||e===N8},W5=function(e){return Hd(e)||Qr(e)||e===Jr},uT=function(e){return e>=q8&&e<=X8||e===Y8||e>=J8&&e<=$8||e===Z8},Xs=function(e,t){return e!==oc?!1:t!==kd},ch=function(e,t,A){return e===Jr?Hd(t)||Xs(t,A):Hd(e)?!0:!!(e===oc&&Xs(e,t))},Jg=function(e,t,A){return e===ea||e===Jr?Qr(t)?!0:t===Pc&&Qr(A):Qr(e===Pc?t:e)},cT=function(e){var t=0,A=1;(e[t]===ea||e[t]===Jr)&&(e[t]===Jr&&(A=-1),t++);for(var r=[];Qr(e[t]);)r.push(e[t++]);var n=r.length?parseInt(NA.apply(void 0,r),10):0;e[t]===Pc&&t++;for(var i=[];Qr(e[t]);)i.push(e[t++]);var s=i.length,o=s?parseInt(NA.apply(void 0,i),10):0;(e[t]===AU||e[t]===eU)&&t++;var a=1;(e[t]===ea||e[t]===Jr)&&(e[t]===Jr&&(a=-1),t++);for(var l=[];Qr(e[t]);)l.push(e[t++]);var c=l.length?parseInt(NA.apply(void 0,l),10):0;return A*(n+o*Math.pow(10,-s))*Math.pow(10,a*c)},fT={type:2},hT={type:3},dT={type:4},pT={type:13},gT={type:8},mT={type:21},wT={type:9},BT={type:10},vT={type:11},yT={type:12},CT={type:14},fh={type:23},FT={type:1},bT={type:25},xT={type:24},UT={type:26},QT={type:27},ET={type:28},ST={type:29},LT={type:31},cm={type:32},nU=function(){function e(){this._value=[]}return e.prototype.write=function(t){this._value=this._value.concat(wp(t))},e.prototype.read=function(){for(var t=[],A=this.consumeToken();A!==cm;)t.push(A),A=this.consumeToken();return t},e.prototype.consumeToken=function(){var t=this.consumeCodePoint();switch(t){case sh:return this.consumeStringToken(sh);case L8:var A=this.peekCodePoint(0),r=this.peekCodePoint(1),n=this.peekCodePoint(2);if(W5(A)||Xs(r,n)){var i=ch(A,r,n)?Q8:U8,s=this.consumeName();return{type:5,value:s,flags:i}}break;case I8:if(this.peekCodePoint(0)===Fu)return this.consumeCodePoint(),pT;break;case oh:return this.consumeStringToken(oh);case ah:return fT;case bu:return hT;case Yg:if(this.peekCodePoint(0)===Fu)return this.consumeCodePoint(),CT;break;case ea:if(Jg(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case G8:return dT;case Jr:var o=t,a=this.peekCodePoint(0),l=this.peekCodePoint(1);if(Jg(o,a,l))return this.reconsumeCodePoint(t),this.consumeNumericToken();if(ch(o,a,l))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();if(a===Jr&&l===H8)return this.consumeCodePoint(),this.consumeCodePoint(),xT;break;case Pc:if(Jg(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case V5:if(this.peekCodePoint(0)===Yg)for(this.consumeCodePoint();;){var c=this.consumeCodePoint();if(c===Yg&&(c=this.consumeCodePoint(),c===V5))return this.consumeToken();if(c===xi)return this.consumeToken()}break;case z8:return UT;case W8:return QT;case k8:if(this.peekCodePoint(0)===T8&&this.peekCodePoint(1)===Jr&&this.peekCodePoint(2)===Jr)return this.consumeCodePoint(),this.consumeCodePoint(),bT;break;case P8:var d=this.peekCodePoint(0),p=this.peekCodePoint(1),h=this.peekCodePoint(2);if(ch(d,p,h)){var s=this.consumeName();return{type:7,value:s}}break;case D8:return ET;case oc:if(Xs(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();break;case M8:return ST;case O8:if(this.peekCodePoint(0)===Fu)return this.consumeCodePoint(),gT;break;case R8:return vT;case K8:return yT;case tT:case rT:var v=this.peekCodePoint(0),C=this.peekCodePoint(1);return v===ea&&(Na(C)||C===lh)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(t),this.consumeIdentLikeToken();case G5:if(this.peekCodePoint(0)===Fu)return this.consumeCodePoint(),wT;if(this.peekCodePoint(0)===G5)return this.consumeCodePoint(),mT;break;case j8:if(this.peekCodePoint(0)===Fu)return this.consumeCodePoint(),BT;break;case xi:return cm}return uh(t)?(this.consumeWhiteSpace(),LT):Qr(t)?(this.reconsumeCodePoint(t),this.consumeNumericToken()):Hd(t)?(this.reconsumeCodePoint(t),this.consumeIdentLikeToken()):{type:6,value:NA(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();Na(A)&&t.length<6;)t.push(A),A=this.consumeCodePoint();for(var r=!1;A===lh&&t.length<6;)t.push(A),A=this.consumeCodePoint(),r=!0;if(r){var n=parseInt(NA.apply(void 0,t.map(function(a){return a===lh?$x:a})),16),i=parseInt(NA.apply(void 0,t.map(function(a){return a===lh?rU:a})),16);return{type:30,start:n,end:i}}var s=parseInt(NA.apply(void 0,t),16);if(this.peekCodePoint(0)===Jr&&Na(this.peekCodePoint(1))){this.consumeCodePoint(),A=this.consumeCodePoint();for(var o=[];Na(A)&&o.length<6;)o.push(A),A=this.consumeCodePoint();var i=parseInt(NA.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)===ah?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===ah?(this.consumeCodePoint(),{type:19,value:t}):{type:20,value:t}},e.prototype.consumeUrlToken=function(){var t=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===xi)return{type:22,value:""};var A=this.peekCodePoint(0);if(A===oh||A===sh){var r=this.consumeStringToken(this.consumeCodePoint());return r.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===xi||this.peekCodePoint(0)===bu)?(this.consumeCodePoint(),{type:22,value:r.value}):(this.consumeBadUrlRemnants(),fh)}for(;;){var n=this.consumeCodePoint();if(n===xi||n===bu)return{type:22,value:NA.apply(void 0,t)};if(uh(n))return this.consumeWhiteSpace(),this.peekCodePoint(0)===xi||this.peekCodePoint(0)===bu?(this.consumeCodePoint(),{type:22,value:NA.apply(void 0,t)}):(this.consumeBadUrlRemnants(),fh);if(n===sh||n===oh||n===ah||uT(n))return this.consumeBadUrlRemnants(),fh;if(n===oc)if(Xs(n,this.peekCodePoint(0)))t.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),fh;else t.push(n)}},e.prototype.consumeWhiteSpace=function(){for(;uh(this.peekCodePoint(0));)this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){for(;;){var t=this.consumeCodePoint();if(t===bu||t===xi)return;Xs(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+=NA.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===xi||n===void 0||n===t)return A+=this.consumeStringSlice(r),{type:0,value:A};if(n===kd)return this._value.splice(0,r),FT;if(n===oc){var i=this._value[r+1];i!==xi&&i!==void 0&&(i===kd?(A+=this.consumeStringSlice(r),r=-1,this._value.shift()):Xs(n,i)&&(A+=this.consumeStringSlice(r),A+=NA(this.consumeEscapedCodePoint()),r=-1))}r++}while(!0)},e.prototype.consumeNumber=function(){var t=[],A=Yc,r=this.peekCodePoint(0);for((r===ea||r===Jr)&&t.push(this.consumeCodePoint());Qr(this.peekCodePoint(0));)t.push(this.consumeCodePoint());r=this.peekCodePoint(0);var n=this.peekCodePoint(1);if(r===Pc&&Qr(n))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),A=j5;Qr(this.peekCodePoint(0));)t.push(this.consumeCodePoint());r=this.peekCodePoint(0),n=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((r===AU||r===eU)&&((n===ea||n===Jr)&&Qr(i)||Qr(n)))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),A=j5;Qr(this.peekCodePoint(0));)t.push(this.consumeCodePoint());return[cT(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(ch(n,i,s)){var o=this.consumeName();return{type:15,number:A,flags:r,unit:o}}return n===_8?(this.consumeCodePoint(),{type:16,number:A,flags:r}):{type:17,number:A,flags:r}},e.prototype.consumeEscapedCodePoint=function(){var t=this.consumeCodePoint();if(Na(t)){for(var A=NA(t);Na(this.peekCodePoint(0))&&A.length<6;)A+=NA(this.consumeCodePoint());uh(this.peekCodePoint(0))&&this.consumeCodePoint();var r=parseInt(A,16);return r===0||iT(r)||r>1114111?z5:r}return t===xi?z5:t},e.prototype.consumeName=function(){for(var t="";;){var A=this.consumeCodePoint();if(W5(A))t+=NA(A);else if(Xs(A,this.peekCodePoint(0)))t+=NA(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(A),t}},e}(),iU=function(){function e(t){this._tokens=t}return e.create=function(t){var A=new nU;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||_T(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"?cm:t},e.prototype.reconsumeToken=function(t){this._tokens.unshift(t)},e}(),Jc=function(e){return e.type===15},Dl=function(e){return e.type===17},qt=function(e){return e.type===20},IT=function(e){return e.type===0},fm=function(e,t){return qt(e)&&e.value===t},sU=function(e){return e.type!==31},_l=function(e){return e.type!==31&&e.type!==4},Hi=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},_T=function(e,t){return t===11&&e.type===12||t===28&&e.type===29?!0:t===2&&e.type===3},Bo=function(e){return e.type===17||e.type===15},VA=function(e){return e.type===16||Bo(e)},oU=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},dr={type:17,number:0,flags:Yc},fw={type:16,number:50,flags:Yc},to={type:16,number:100,flags:Yc},Gu=function(e,t,A){var r=e[0],n=e[1];return[tA(r,t),tA(typeof n<"u"?n:r,A)]},tA=function(e,t){if(e.type===16)return e.number/100*t;if(Jc(e))switch(e.unit){case"rem":case"em":return 16*e.number;case"px":default:return e.number}return e.number},aU="deg",lU="grad",uU="rad",cU="turn",Bp={name:"angle",parse:function(e,t){if(t.type===15)switch(t.unit){case aU:return Math.PI*t.number/180;case lU:return Math.PI/200*t.number;case uU:return t.number;case cU:return Math.PI*2*t.number}throw new Error("Unsupported angle type")}},fU=function(e){return e.type===15&&(e.unit===aU||e.unit===lU||e.unit===uU||e.unit===cU)},hU=function(e){var t=e.filter(qt).map(function(A){return A.value}).join(" ");switch(t){case"to bottom right":case"to right bottom":case"left top":case"top left":return[dr,dr];case"to top":case"bottom":return jn(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[dr,to];case"to right":case"left":return jn(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[to,to];case"to bottom":case"top":return jn(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[to,dr];case"to left":case"right":return jn(270)}return 0},jn=function(e){return Math.PI*e/180},fo={name:"color",parse:function(e,t){if(t.type===18){var A=NT[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 Ao(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 Ao(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 Ao(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 Ao(parseInt(r,16),parseInt(n,16),parseInt(i,16),parseInt(s,16)/255)}}if(t.type===20){var o=ps[t.value.toUpperCase()];if(typeof o<"u")return o}return ps.TRANSPARENT}},ho=function(e){return(255&e)===0},Ar=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+")"},Ao=function(e,t,A,r){return(e<<24|t<<16|A<<8|Math.round(r*255)<<0)>>>0},q5=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},X5=function(e,t){var A=t.filter(_l);if(A.length===3){var r=A.map(q5),n=r[0],i=r[1],s=r[2];return Ao(n,i,s,1)}if(A.length===4){var o=A.map(q5),n=o[0],i=o[1],s=o[2],a=o[3];return Ao(n,i,s,a)}return 0};function $g(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 Y5=function(e,t){var A=t.filter(_l),r=A[0],n=A[1],i=A[2],s=A[3],o=(r.type===17?jn(r.number):Bp.parse(e,r))/(Math.PI*2),a=VA(n)?n.number/100:0,l=VA(i)?i.number/100:0,c=typeof s<"u"&&VA(s)?tA(s,1):1;if(a===0)return Ao(l*255,l*255,l*255,1);var d=l<=.5?l*(a+1):l+a-l*a,p=l*2-d,h=$g(p,d,o+1/3),v=$g(p,d,o),C=$g(p,d,o-1/3);return Ao(h*255,v*255,C*255,c)},NT={hsl:Y5,hsla:Y5,rgb:X5,rgba:X5},ac=function(e,t){return fo.parse(e,iU.create(t).parseComponentValue())},ps={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},TT={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map(function(A){if(qt(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},kT={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},vp=function(e,t){var A=fo.parse(e,t[0]),r=t[1];return r&&VA(r)?{color:A,stop:r}:{color:A,stop:null}},J5=function(e,t){var A=e[0],r=e[e.length-1];A.stop===null&&(A.stop=dr),r.stop===null&&(r.stop=to);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},DT=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(ri(t,A),ri(t,A-n),ri(t-r,A),ri(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=$5(r,n,t,A,!0),l=a[0],c=a[1];i=ri(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(ri(t,A),ri(t,A-n),ri(t-r,A),ri(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=$5(r,n,t,A,!1),l=d[0],c=d[1];i=ri(l-t,(c-A)/o),s=o*i}break}return Array.isArray(e.size)&&(i=tA(e.size[0],r),s=e.size.length===2?tA(e.size[1],n):i),[i,s]},MT=function(e,t){var A=jn(180),r=[];return Hi(t).forEach(function(n,i){if(i===0){var s=n[0];if(s.type===20&&s.value==="to"){A=hU(n);return}else if(fU(s)){A=Bp.parse(e,s);return}}var o=vp(e,n);r.push(o)}),{angle:A,stops:r,type:1}},hh=function(e,t){var A=jn(180),r=[];return Hi(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=hU(n);return}else if(fU(s)){A=(Bp.parse(e,s)+jn(270))%jn(360);return}}var o=vp(e,n);r.push(o)}),{angle:A,stops:r,type:1}},OT=function(e,t){var A=jn(180),r=[],n=1,i=0,s=3,o=[];return Hi(t).forEach(function(a,l){var c=a[0];if(l===0){if(qt(c)&&c.value==="linear"){n=1;return}else if(qt(c)&&c.value==="radial"){n=2;return}}if(c.type===18){if(c.name==="from"){var d=fo.parse(e,c.values[0]);r.push({stop:dr,color:d})}else if(c.name==="to"){var d=fo.parse(e,c.values[0]);r.push({stop:to,color:d})}else if(c.name==="color-stop"){var p=c.values.filter(_l);if(p.length===2){var d=fo.parse(e,p[1]),h=p[0];Dl(h)&&r.push({stop:{type:16,number:h.number*100,flags:h.flags},color:d})}}}}),n===1?{angle:(A+jn(180))%jn(360),stops:r,type:n}:{size:s,shape:i,stops:r,position:o,type:n}},dU="closest-side",pU="farthest-side",gU="closest-corner",mU="farthest-corner",wU="circle",BU="ellipse",vU="cover",yU="contain",RT=function(e,t){var A=0,r=3,n=[],i=[];return Hi(t).forEach(function(s,o){var a=!0;if(o===0){var l=!1;a=s.reduce(function(d,p){if(l)if(qt(p))switch(p.value){case"center":return i.push(fw),d;case"top":case"left":return i.push(dr),d;case"right":case"bottom":return i.push(to),d}else(VA(p)||Bo(p))&&i.push(p);else if(qt(p))switch(p.value){case wU:return A=0,!1;case BU:return A=1,!1;case"at":return l=!0,!1;case dU:return r=0,!1;case vU:case pU:return r=1,!1;case yU:case gU:return r=2,!1;case mU:return r=3,!1}else if(Bo(p)||VA(p))return Array.isArray(r)||(r=[]),r.push(p),!1;return d},a)}if(a){var c=vp(e,s);n.push(c)}}),{size:r,shape:A,stops:n,position:i,type:2}},dh=function(e,t){var A=0,r=3,n=[],i=[];return Hi(t).forEach(function(s,o){var a=!0;if(o===0?a=s.reduce(function(c,d){if(qt(d))switch(d.value){case"center":return i.push(fw),!1;case"top":case"left":return i.push(dr),!1;case"right":case"bottom":return i.push(to),!1}else if(VA(d)||Bo(d))return i.push(d),!1;return c},a):o===1&&(a=s.reduce(function(c,d){if(qt(d))switch(d.value){case wU:return A=0,!1;case BU:return A=1,!1;case yU:case dU:return r=0,!1;case pU:return r=1,!1;case gU:return r=2,!1;case vU:case mU:return r=3,!1}else if(Bo(d)||VA(d))return Array.isArray(r)||(r=[]),r.push(d),!1;return c},a)),a){var l=vp(e,s);n.push(l)}}),{size:r,shape:A,stops:n,position:i,type:2}},KT=function(e){return e.type===1},jT=function(e){return e.type===2},hw={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=CU[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 VT(e){return!(e.type===20&&e.value==="none")&&(e.type!==18||!!CU[e.name])}var CU={"linear-gradient":MT,"-moz-linear-gradient":hh,"-ms-linear-gradient":hh,"-o-linear-gradient":hh,"-webkit-linear-gradient":hh,"radial-gradient":RT,"-moz-radial-gradient":dh,"-ms-radial-gradient":dh,"-o-radial-gradient":dh,"-webkit-radial-gradient":dh,"-webkit-gradient":OT},GT={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 _l(r)&&VT(r)}).map(function(r){return hw.parse(e,r)})}},zT={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map(function(A){if(qt(A))switch(A.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},WT={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(e,t){return Hi(t).map(function(A){return A.filter(VA)}).map(oU)}},qT={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(e,t){return Hi(t).map(function(A){return A.filter(qt).map(function(r){return r.value}).join(" ")}).map(XT)}},XT=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}},gl;(function(e){e.AUTO="auto",e.CONTAIN="contain",e.COVER="cover"})(gl||(gl={}));var YT={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(e,t){return Hi(t).map(function(A){return A.filter(JT)})}},JT=function(e){return qt(e)||VA(e)},yp=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},$T=yp("top"),ZT=yp("right"),ek=yp("bottom"),tk=yp("left"),Cp=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:1,parse:function(t,A){return oU(A.filter(VA))}}},Ak=Cp("top-left"),rk=Cp("top-right"),nk=Cp("bottom-right"),ik=Cp("bottom-left"),Fp=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}}},sk=Fp("top"),ok=Fp("right"),ak=Fp("bottom"),lk=Fp("left"),bp=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:0,prefix:!1,parse:function(t,A){return Jc(A)?A.number:0}}},uk=bp("top"),ck=bp("right"),fk=bp("bottom"),hk=bp("left"),dk={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},pk={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(e,t){switch(t){case"rtl":return 1;case"ltr":default:return 0}}},gk={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(e,t){return t.filter(qt).reduce(function(A,r){return A|mk(r.value)},0)}},mk=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},wk={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}},Bk={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}},Pd;(function(e){e.NORMAL="normal",e.STRICT="strict"})(Pd||(Pd={}));var vk={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"strict":return Pd.STRICT;case"normal":default:return Pd.NORMAL}}},yk={name:"line-height",initialValue:"normal",prefix:!1,type:4},Z5=function(e,t){return qt(e)&&e.value==="normal"?1.2*t:e.type===17?t*e.number:VA(e)?tA(e,t):t},Ck={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(e,t){return t.type===20&&t.value==="none"?null:hw.parse(e,t)}},Fk={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}}},hm={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}}},xp=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:4}},bk=xp("top"),xk=xp("right"),Uk=xp("bottom"),Qk=xp("left"),Ek={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(e,t){return t.filter(qt).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}})}},Sk={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"}}},Up=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Lk=Up("top"),Ik=Up("right"),_k=Up("bottom"),Nk=Up("left"),Tk={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}}},kk={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}},Hk={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return t.length===1&&fm(t[0],"none")?[]:Hi(t).map(function(A){for(var r={color:ps.TRANSPARENT,offsetX:dr,offsetY:dr,blur:dr},n=0,i=0;i"u")throw new Error('Attempting to parse an unsupported transform function "'+t.name+'"');return A(t.values)}return null}},Mk=function(e){var t=e.filter(function(A){return A.type===17}).map(function(A){return A.number});return t.length===6?t:null},Ok=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},Rk={matrix:Mk,matrix3d:Ok},ey={type:16,number:50,flags:Yc},Kk=[ey,ey],jk={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(e,t){var A=t.filter(VA);return A.length!==2?Kk:[A[0],A[1]]}},Vk={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}}},lc;(function(e){e.NORMAL="normal",e.BREAK_ALL="break-all",e.KEEP_ALL="keep-all"})(lc||(lc={}));var Gk={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"break-all":return lc.BREAK_ALL;case"keep-all":return lc.KEEP_ALL;case"normal":default:return lc.NORMAL}}},zk={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(e,t){if(t.type===20)return{auto:!0,order:0};if(Dl(t))return{auto:!1,order:t.number};throw new Error("Invalid z-index number parsed")}},FU={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")}},Wk={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(e,t){return Dl(t)?t.number:1}},qk={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Xk={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(e,t){return t.filter(qt).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})}},Yk={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+"'"})}},Jk={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},$k={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(e,t){if(Dl(t))return t.number;if(qt(t))switch(t.value){case"bold":return 700;case"normal":default:return 400}return 400}},Zk={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return t.filter(qt).map(function(A){return A.value})}},eH={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"}}},er=function(e,t){return(e&t)!==0},tH={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}},AH={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(sU),i=0;i1?1:0],this.overflowWrap=Te(t,Sk,A.overflowWrap),this.paddingTop=Te(t,Lk,A.paddingTop),this.paddingRight=Te(t,Ik,A.paddingRight),this.paddingBottom=Te(t,_k,A.paddingBottom),this.paddingLeft=Te(t,Nk,A.paddingLeft),this.paintOrder=Te(t,oH,A.paintOrder),this.position=Te(t,kk,A.position),this.textAlign=Te(t,Tk,A.textAlign),this.textDecorationColor=Te(t,qk,(r=A.textDecorationColor)!==null&&r!==void 0?r:A.color),this.textDecorationLine=Te(t,Xk,(n=A.textDecorationLine)!==null&&n!==void 0?n:A.textDecoration),this.textShadow=Te(t,Hk,A.textShadow),this.textTransform=Te(t,Pk,A.textTransform),this.transform=Te(t,Dk,A.transform),this.transformOrigin=Te(t,jk,A.transformOrigin),this.visibility=Te(t,Vk,A.visibility),this.webkitTextStrokeColor=Te(t,aH,A.webkitTextStrokeColor),this.webkitTextStrokeWidth=Te(t,lH,A.webkitTextStrokeWidth),this.wordBreak=Te(t,Gk,A.wordBreak),this.zIndex=Te(t,zk,A.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},e.prototype.isTransparent=function(){return ho(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 er(this.display,4)||er(this.display,33554432)||er(this.display,268435456)||er(this.display,536870912)||er(this.display,67108864)||er(this.display,134217728)},e}(),cH=function(){function e(t,A){this.content=Te(t,tH,A.content),this.quotes=Te(t,iH,A.quotes)}return e}(),Ay=function(){function e(t,A){this.counterIncrement=Te(t,AH,A.counterIncrement),this.counterReset=Te(t,rH,A.counterReset)}return e}(),Te=function(e,t,A){var r=new nU,n=A!==null&&typeof A<"u"?A.toString():t.initialValue;r.write(n);var i=new iU(r.read());switch(t.type){case 2:var s=i.parseComponentValue();return t.parse(e,qt(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 Bp.parse(e,i.parseComponentValue());case"color":return fo.parse(e,i.parseComponentValue());case"image":return hw.parse(e,i.parseComponentValue());case"length":var o=i.parseComponentValue();return Bo(o)?o:dr;case"length-percentage":var a=i.parseComponentValue();return VA(a)?a:dr;case"time":return FU.parse(e,i.parseComponentValue())}break}},fH="data-html2canvas-debug",hH=function(e){var t=e.getAttribute(fH);switch(t){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},dm=function(e,t){var A=hH(e);return A===1||t===A},Pi=function(){function e(t,A){if(this.context=t,this.textNodes=[],this.elements=[],this.flags=0,dm(A,3))debugger;this.styles=new uH(t,window.getComputedStyle(A,null)),mm(A)&&(this.styles.animationDuration.some(function(r){return r>0})&&(A.style.animationDuration="0s"),this.styles.transform!==null&&(A.style.transform="none")),this.bounds=mp(this.context,A),dm(A,4)&&(this.flags|=16)}return e}(),dH="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",ry="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",zu=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var ph=0;ph>4,c[n++]=(s&15)<<4|o>>2,c[n++]=(o&3)<<6|a&63;return l},gH=function(e){for(var t=e.length,A=[],r=0;r>ia,BH=1<>ia,yH=bU+vH,CH=yH,FH=32,bH=CH+FH,xH=65536>>dw,UH=1<=0){if(t<55296||t>56319&&t<=65535)return A=this.index[t>>ia],A=(A<>ia)],A=(A<>dw),A=this.index[A],A+=t>>ia&QH,A=this.index[A],A=(A<"u"?[]:new Uint8Array(256);for(var gh=0;gh=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},HH=SH(dH),Dn="×",s0="÷",PH=function(e){return HH.get(e)},DH=function(e,t,A){var r=A-2,n=t[r],i=t[A-1],s=t[A];if(i===t0&&s===A0)return Dn;if(i===t0||i===A0||i===sy||s===t0||s===A0||s===sy)return s0;if(i===ay&&[ay,r0,ly,uy].indexOf(s)!==-1||(i===ly||i===r0)&&(s===r0||s===n0)||(i===uy||i===n0)&&s===n0||s===cy||s===oy||s===NH||i===_H)return Dn;if(i===cy&&s===fy){for(;n===oy;)n=t[--r];if(n===fy)return Dn}if(i===i0&&s===i0){for(var o=0;n===i0;)o++,n=t[--r];if(o%2===0)return Dn}return s0},MH=function(e){var t=TH(e),A=t.length,r=0,n=0,i=t.map(PH);return{next:function(){if(r>=A)return{done:!0,value:null};for(var s=Dn;rs.x||c.y>s.y;return s=c,l===0?!0:d});return e.body.removeChild(t),o},jH=function(){return typeof new Image().crossOrigin<"u"},VH=function(){return typeof new XMLHttpRequest().responseType=="string"},GH=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},hy=function(e){return e[0]===0&&e[1]===255&&e[2]===0&&e[3]===255},zH=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=pm(A,A,0,0,n);return r.fillStyle="red",r.fillRect(0,0,A,A),dy(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",hy(a)?dy(pm(A,A,0,0,l)):Promise.reject(!1)}).then(function(o){return r.drawImage(o,0,0),hy(r.getImageData(0,0,A,A).data)}).catch(function(){return!1})},pm=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},dy=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))})},hr={get SUPPORT_RANGE_BOUNDS(){var e=RH(document);return Object.defineProperty(hr,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_WORD_BREAKING(){var e=hr.SUPPORT_RANGE_BOUNDS&&KH(document);return Object.defineProperty(hr,"SUPPORT_WORD_BREAKING",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=GH(document);return Object.defineProperty(hr,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e=typeof Array.from=="function"&&typeof window.fetch=="function"?zH(document):Promise.resolve(!1);return Object.defineProperty(hr,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=jH();return Object.defineProperty(hr,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e=VH();return Object.defineProperty(hr,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(hr,"SUPPORT_CORS_XHR",{value:e}),e},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var e=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(hr,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:e}),e}},uc=function(){function e(t,A){this.text=t,this.bounds=A}return e}(),WH=function(e,t,A,r){var n=YH(t,A),i=[],s=0;return n.forEach(function(o){if(A.textDecorationLine.length||o.trim().length>0)if(hr.SUPPORT_RANGE_BOUNDS){var a=py(r,s,o.length).getClientRects();if(a.length>1){var l=pw(o),c=0;l.forEach(function(p){i.push(new uc(p,ys.fromDOMRectList(e,py(r,c+s,p.length).getClientRects()))),c+=p.length})}else i.push(new uc(o,ys.fromDOMRectList(e,a)))}else{var d=r.splitText(o.length);i.push(new uc(o,qH(e,r))),r=d}else hr.SUPPORT_RANGE_BOUNDS||(r=r.splitText(o.length));s+=o.length}),i},qH=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=mp(e,r);return r.firstChild&&n.replaceChild(r.firstChild,r),i}}return ys.EMPTY},py=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},pw=function(e){if(hr.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 OH(e)},XH=function(e,t){if(hr.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 $H(e,t)},YH=function(e,t){return t.letterSpacing!==0?pw(e):XH(e,t)},JH=[32,160,4961,65792,65793,4153,4241],$H=function(e,t){for(var A=x8(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=wp(s),a="";o.forEach(function(l){JH.indexOf(l)===-1?a+=NA(l):(a.length&&r.push(a),r.push(NA(l)),a="")}),a.length&&r.push(a)}};!(n=A.next()).done;)i();return r},ZH=function(){function e(t,A,r){this.text=eP(A.data,r.textTransform),this.textBounds=WH(t,this.text,r,A)}return e}(),eP=function(e,t){switch(t){case 1:return e.toLowerCase();case 3:return e.replace(tP,AP);case 2:return e.toUpperCase();default:return e}},tP=/(^|\s|:|-|\(|\))([a-z])/g,AP=function(e,t,A){return e.length>0?t+A.toUpperCase():e},xU=function(e){hi(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}(Pi),UU=function(e){hi(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}(Pi),QU=function(e){hi(t,e);function t(A,r){var n=e.call(this,A,r)||this,i=new XMLSerializer,s=mp(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}(Pi),EU=function(e){hi(t,e);function t(A,r){var n=e.call(this,A,r)||this;return n.value=r.value,n}return t}(Pi),gm=function(e){hi(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}(Pi),rP=[{type:15,flags:0,unit:"px",number:3}],nP=[{type:16,flags:0,number:50}],iP=function(e){return e.width>e.height?new ys(e.left+(e.width-e.height)/2,e.top,e.height,e.height):e.width0)A.textNodes.push(new ZH(e,n,A.styles));else if(ol(n))if(DU(n)&&n.assignedNodes)n.assignedNodes().forEach(function(o){return Xh(e,o,A,r)});else{var s=_U(e,n);s.styles.isVisible()&&(lP(n,s,r)?s.flags|=4:uP(s.styles)&&(s.flags|=2),aP.indexOf(n.tagName)!==-1&&(s.flags|=8),A.elements.push(s),n.slot,n.shadowRoot?Xh(e,n.shadowRoot,s,r):!Od(n)&&!kU(n)&&!Rd(n)&&Xh(e,n,s,r))}},_U=function(e,t){return wm(t)?new xU(e,t):HU(t)?new UU(e,t):kU(t)?new QU(e,t):cP(t)?new EU(e,t):fP(t)?new gm(e,t):hP(t)?new gw(e,t):Rd(t)?new SU(e,t):Od(t)?new LU(e,t):PU(t)?new IU(e,t):new Pi(e,t)},NU=function(e,t){var A=_U(e,t);return A.flags|=4,Xh(e,t,A,A),A},lP=function(e,t,A){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||mw(e)&&A.styles.isTransparent()},uP=function(e){return e.isPositioned()||e.isFloating()},TU=function(e){return e.nodeType===Node.TEXT_NODE},ol=function(e){return e.nodeType===Node.ELEMENT_NODE},mm=function(e){return ol(e)&&typeof e.style<"u"&&!Yh(e)},Yh=function(e){return typeof e.className=="object"},cP=function(e){return e.tagName==="LI"},fP=function(e){return e.tagName==="OL"},hP=function(e){return e.tagName==="INPUT"},dP=function(e){return e.tagName==="HTML"},kU=function(e){return e.tagName==="svg"},mw=function(e){return e.tagName==="BODY"},HU=function(e){return e.tagName==="CANVAS"},my=function(e){return e.tagName==="VIDEO"},wm=function(e){return e.tagName==="IMG"},PU=function(e){return e.tagName==="IFRAME"},wy=function(e){return e.tagName==="STYLE"},pP=function(e){return e.tagName==="SCRIPT"},Od=function(e){return e.tagName==="TEXTAREA"},Rd=function(e){return e.tagName==="SELECT"},DU=function(e){return e.tagName==="SLOT"},By=function(e){return e.tagName.indexOf("-")>0},gP=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}(),vy={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"]},yy={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:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},mP={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:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},wP={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:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Ta=function(e,t,A,r,n,i){return eA?Dc(e,n,i.length>0):r.integers.reduce(function(s,o,a){for(;e>=o;)e-=o,s+=r.values[a];return s},"")+i},MU=function(e,t,A,r){var n="";do A||e--,n=r(e)+n,e/=t;while(e*t>=t);return n},IA=function(e,t,A,r,n){var i=A-t+1;return(e<0?"-":"")+(MU(Math.abs(e),i,r,function(s){return NA(Math.floor(s%i)+t)})+n)},Ko=function(e,t,A){A===void 0&&(A=". ");var r=t.length;return MU(Math.abs(e),r,!1,function(n){return t[Math.floor(n%r)]})+A},Oa=1,Gs=2,zs=4,Wu=8,As=function(e,t,A,r,n,i){if(e<-9999||e>9999)return Dc(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&&er(i,Oa)&&o!==""?o=t[l]+o:l>1||l===1&&a===0||l===1&&a===1&&er(i,Gs)||l===1&&a===1&&er(i,zs)&&e>100||l===1&&a>1&&er(i,Wu)?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},Cy="十百千萬",Fy="拾佰仟萬",by="マイナス",o0="마이너스",Dc=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=IA(e,48,57,!0,r);return o.length<4?"0"+o:o;case 4:return Ko(e,"〇一二三四五六七八九",n);case 6:return Ta(e,1,3999,vy,3,r).toLowerCase();case 7:return Ta(e,1,3999,vy,3,r);case 8:return IA(e,945,969,!1,r);case 9:return IA(e,97,122,!1,r);case 10:return IA(e,65,90,!1,r);case 11:return IA(e,1632,1641,!0,r);case 12:case 49:return Ta(e,1,9999,yy,3,r);case 35:return Ta(e,1,9999,yy,3,r).toLowerCase();case 13:return IA(e,2534,2543,!0,r);case 14:case 30:return IA(e,6112,6121,!0,r);case 15:return Ko(e,"子丑寅卯辰巳午未申酉戌亥",n);case 16:return Ko(e,"甲乙丙丁戊己庚辛壬癸",n);case 17:case 48:return As(e,"零一二三四五六七八九",Cy,"負",n,Gs|zs|Wu);case 47:return As(e,"零壹貳參肆伍陸柒捌玖",Fy,"負",n,Oa|Gs|zs|Wu);case 42:return As(e,"零一二三四五六七八九",Cy,"负",n,Gs|zs|Wu);case 41:return As(e,"零壹贰叁肆伍陆柒捌玖",Fy,"负",n,Oa|Gs|zs|Wu);case 26:return As(e,"〇一二三四五六七八九","十百千万",by,n,0);case 25:return As(e,"零壱弐参四伍六七八九","拾百千万",by,n,Oa|Gs|zs);case 31:return As(e,"영일이삼사오육칠팔구","십백천만",o0,i,Oa|Gs|zs);case 33:return As(e,"零一二三四五六七八九","十百千萬",o0,i,0);case 32:return As(e,"零壹貳參四五六七八九","拾百千",o0,i,Oa|Gs|zs);case 18:return IA(e,2406,2415,!0,r);case 20:return Ta(e,1,19999,wP,3,r);case 21:return IA(e,2790,2799,!0,r);case 22:return IA(e,2662,2671,!0,r);case 22:return Ta(e,1,10999,mP,3,r);case 23:return Ko(e,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Ko(e,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return IA(e,3302,3311,!0,r);case 28:return Ko(e,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",n);case 29:return Ko(e,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",n);case 34:return IA(e,3792,3801,!0,r);case 37:return IA(e,6160,6169,!0,r);case 38:return IA(e,4160,4169,!0,r);case 39:return IA(e,2918,2927,!0,r);case 40:return IA(e,1776,1785,!0,r);case 43:return IA(e,3046,3055,!0,r);case 44:return IA(e,3174,3183,!0,r);case 45:return IA(e,3664,3673,!0,r);case 46:return IA(e,3872,3881,!0,r);case 3:default:return IA(e,48,57,!0,r)}},OU="data-html2canvas-ignore",xy=function(){function e(t,A,r){if(this.context=t,this.options=r,this.scrolledElements=[],this.referenceElement=A,this.counters=new gP,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=BP(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=CP(n).then(function(){return Dr(r,void 0,void 0,function(){var c,d;return xr(this,function(p){switch(p.label){case 0:return this.scrolledElements.forEach(UP),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,yP(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(bP(document.doctype)+""),xP(this.referenceElement.ownerDocument,i,s),a.replaceChild(a.adoptNode(this.documentElement),a.documentElement),a.close(),l},e.prototype.createElementClone=function(t){if(dm(t,2))debugger;if(HU(t))return this.createCanvasClone(t);if(my(t))return this.createVideoClone(t);if(wy(t))return this.createStyleClone(t);var A=t.cloneNode(!1);return wm(A)&&(wm(t)&&t.currentSrc&&t.currentSrc!==t.src&&(A.src=t.currentSrc,A.srcset=""),A.loading==="lazy"&&(A.loading="eager")),By(A)?this.createCustomElementClone(A):A},e.prototype.createCustomElementClone=function(t){var A=document.createElement("html2canvascustomelement");return a0(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){(!ol(A)||!pP(A)&&!A.hasAttribute(OU)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(A)))&&(!this.options.copyStyles||!ol(A)||!wy(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(ol(i)&&DU(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(TU(t))return document.createTextNode(t.data);if(!t.ownerDocument)return t.cloneNode(!1);var r=t.ownerDocument.defaultView;if(r&&ol(t)&&(mm(t)||Yh(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&&mm(n)&&(this.clonedReferenceElement=n),mw(n)&&SP(n);var a=this.counters.parse(new Ay(this.context,i)),l=this.resolvePseudoContent(t,n,s,cc.BEFORE);By(t)&&(A=!0),my(t)||this.cloneChildNodes(t,n,A),l&&n.insertBefore(l,n.firstChild);var c=this.resolvePseudoContent(t,n,o,cc.AFTER);return c&&n.appendChild(c),this.counters.pop(a),(i&&(this.options.copyStyles||Yh(t))&&!PU(t)||A)&&a0(i,n),(t.scrollTop!==0||t.scrollLeft!==0)&&this.scrolledElements.push([n,t.scrollLeft,t.scrollTop]),(Od(t)||Rd(t))&&(Od(n)||Rd(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 Ay(this.context,r));var a=new cH(this.context,r),l=o.createElement("html2canvaspseudoelement");a0(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(qt);h.length&&l.appendChild(o.createTextNode(t.getAttribute(h[0].value)||""))}else if(d.name==="counter"){var v=d.values.filter(_l),C=v[0],U=v[1];if(C&&qt(C)){var w=i.counters.getCounterValue(C.value),y=U&&qt(U)?hm.parse(i.context,U.value):3;l.appendChild(o.createTextNode(Dc(w,y,!1)))}}else if(d.name==="counters"){var F=d.values.filter(_l),C=F[0],b=F[1],U=F[2];if(C&&qt(C)){var N=i.counters.getCounterValues(C.value),D=U&&qt(U)?hm.parse(i.context,U.value):3,W=b&&b.type===0?b.value:"",H=N.map(function(S){return Dc(S,D,!1)}).join(W);l.appendChild(o.createTextNode(H))}}}else if(d.type===20)switch(d.value){case"open-quote":l.appendChild(o.createTextNode(ty(a.quotes,i.quoteDepth++,!0)));break;case"close-quote":l.appendChild(o.createTextNode(ty(a.quotes,--i.quoteDepth,!1)));break;default:l.appendChild(o.createTextNode(d.value))}}),l.className=Bm+" "+vm;var c=n===cc.BEFORE?" "+Bm:" "+vm;return Yh(A)?A.className.baseValue+=c:A.className+=c,l}}},e.destroy=function(t){return t.parentNode?(t.parentNode.removeChild(t),!0):!1},e}(),cc;(function(e){e[e.BEFORE=0]="BEFORE",e[e.AFTER=1]="AFTER"})(cc||(cc={}));var BP=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(OU,"true"),e.body.appendChild(A),A},vP=function(e){return new Promise(function(t){if(e.complete){t();return}if(!e.src){t();return}e.onload=t,e.onerror=t})},yP=function(e){return Promise.all([].slice.call(e.images,0).map(vP))},CP=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)}})},FP=["all","d","content"],a0=function(e,t){for(var A=e.length-1;A>=0;A--){var r=e.item(A);FP.indexOf(r)===-1&&t.style.setProperty(r,e.getPropertyValue(r))}return t},bP=function(e){var t="";return e&&(t+=""),t},xP=function(e,t,A){e&&e.defaultView&&(t!==e.defaultView.pageXOffset||A!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(t,A)},UP=function(e){var t=e[0],A=e[1],r=e[2];t.scrollLeft=A,t.scrollTop=r},QP=":before",EP=":after",Bm="___html2canvas___pseudoelement_before",vm="___html2canvas___pseudoelement_after",Uy=`{ content: "" !important; display: none !important; }`,SP=function(e){LP(e,"."+Bm+QP+Uy+` .`+vm+EP+Uy)},LP=function(e,t){var A=e.ownerDocument;if(A){var r=A.createElement("style");r.textContent=t,e.appendChild(r)}},RU=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}(),IP=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)||(u0(t)||kP(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 Dr(this,void 0,void 0,function(){var A,r,n,i,s=this;return xr(this,function(o){switch(o.label){case 0:return A=RU.isSameOrigin(t),r=!l0(t)&&this._options.useCORS===!0&&hr.SUPPORT_CORS_IMAGES&&!A,n=!l0(t)&&!A&&!u0(t)&&typeof this._options.proxy=="string"&&hr.SUPPORT_CORS_XHR&&!r,!A&&this._options.allowTaint===!1&&!l0(t)&&!u0(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,(HP(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=hr.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}(),_P=/^data:image\/svg\+xml/i,NP=/^data:image\/.*;base64,/i,TP=/^data:image\/.*/i,kP=function(e){return hr.SUPPORT_SVG_DRAWING||!PP(e)},l0=function(e){return TP.test(e)},HP=function(e){return NP.test(e)},u0=function(e){return e.substr(0,4)==="blob"},PP=function(e){return e.substr(-3).toLowerCase()==="svg"||_P.test(e)},_e=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}(),ka=function(e,t,A){return new _e(e.x+(t.x-e.x)*A,e.y+(t.y-e.y)*A)},mh=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=ka(this.start,this.startControl,t),n=ka(this.startControl,this.endControl,t),i=ka(this.endControl,this.end,t),s=ka(r,n,t),o=ka(n,i,t),a=ka(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}(),Rn=function(e){return e.type===1},DP=function(){function e(t){var A=t.styles,r=t.bounds,n=Gu(A.borderTopLeftRadius,r.width,r.height),i=n[0],s=n[1],o=Gu(A.borderTopRightRadius,r.width,r.height),a=o[0],l=o[1],c=Gu(A.borderBottomRightRadius,r.width,r.height),d=c[0],p=c[1],h=Gu(A.borderBottomLeftRadius,r.width,r.height),v=h[0],C=h[1],U=[];U.push((i+a)/r.width),U.push((v+d)/r.width),U.push((s+C)/r.height),U.push((l+p)/r.height);var w=Math.max.apply(Math,U);w>1&&(i/=w,s/=w,a/=w,l/=w,d/=w,p/=w,v/=w,C/=w);var y=r.width-a,F=r.height-p,b=r.width-d,N=r.height-C,D=A.borderTopWidth,W=A.borderRightWidth,H=A.borderBottomWidth,_=A.borderLeftWidth,Y=tA(A.paddingTop,t.bounds.width),S=tA(A.paddingRight,t.bounds.width),k=tA(A.paddingBottom,t.bounds.width),V=tA(A.paddingLeft,t.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||s>0?cA(r.left+_/3,r.top+D/3,i-_/3,s-D/3,Ot.TOP_LEFT):new _e(r.left+_/3,r.top+D/3),this.topRightBorderDoubleOuterBox=i>0||s>0?cA(r.left+y,r.top+D/3,a-W/3,l-D/3,Ot.TOP_RIGHT):new _e(r.left+r.width-W/3,r.top+D/3),this.bottomRightBorderDoubleOuterBox=d>0||p>0?cA(r.left+b,r.top+F,d-W/3,p-H/3,Ot.BOTTOM_RIGHT):new _e(r.left+r.width-W/3,r.top+r.height-H/3),this.bottomLeftBorderDoubleOuterBox=v>0||C>0?cA(r.left+_/3,r.top+N,v-_/3,C-H/3,Ot.BOTTOM_LEFT):new _e(r.left+_/3,r.top+r.height-H/3),this.topLeftBorderDoubleInnerBox=i>0||s>0?cA(r.left+_*2/3,r.top+D*2/3,i-_*2/3,s-D*2/3,Ot.TOP_LEFT):new _e(r.left+_*2/3,r.top+D*2/3),this.topRightBorderDoubleInnerBox=i>0||s>0?cA(r.left+y,r.top+D*2/3,a-W*2/3,l-D*2/3,Ot.TOP_RIGHT):new _e(r.left+r.width-W*2/3,r.top+D*2/3),this.bottomRightBorderDoubleInnerBox=d>0||p>0?cA(r.left+b,r.top+F,d-W*2/3,p-H*2/3,Ot.BOTTOM_RIGHT):new _e(r.left+r.width-W*2/3,r.top+r.height-H*2/3),this.bottomLeftBorderDoubleInnerBox=v>0||C>0?cA(r.left+_*2/3,r.top+N,v-_*2/3,C-H*2/3,Ot.BOTTOM_LEFT):new _e(r.left+_*2/3,r.top+r.height-H*2/3),this.topLeftBorderStroke=i>0||s>0?cA(r.left+_/2,r.top+D/2,i-_/2,s-D/2,Ot.TOP_LEFT):new _e(r.left+_/2,r.top+D/2),this.topRightBorderStroke=i>0||s>0?cA(r.left+y,r.top+D/2,a-W/2,l-D/2,Ot.TOP_RIGHT):new _e(r.left+r.width-W/2,r.top+D/2),this.bottomRightBorderStroke=d>0||p>0?cA(r.left+b,r.top+F,d-W/2,p-H/2,Ot.BOTTOM_RIGHT):new _e(r.left+r.width-W/2,r.top+r.height-H/2),this.bottomLeftBorderStroke=v>0||C>0?cA(r.left+_/2,r.top+N,v-_/2,C-H/2,Ot.BOTTOM_LEFT):new _e(r.left+_/2,r.top+r.height-H/2),this.topLeftBorderBox=i>0||s>0?cA(r.left,r.top,i,s,Ot.TOP_LEFT):new _e(r.left,r.top),this.topRightBorderBox=a>0||l>0?cA(r.left+y,r.top,a,l,Ot.TOP_RIGHT):new _e(r.left+r.width,r.top),this.bottomRightBorderBox=d>0||p>0?cA(r.left+b,r.top+F,d,p,Ot.BOTTOM_RIGHT):new _e(r.left+r.width,r.top+r.height),this.bottomLeftBorderBox=v>0||C>0?cA(r.left,r.top+N,v,C,Ot.BOTTOM_LEFT):new _e(r.left,r.top+r.height),this.topLeftPaddingBox=i>0||s>0?cA(r.left+_,r.top+D,Math.max(0,i-_),Math.max(0,s-D),Ot.TOP_LEFT):new _e(r.left+_,r.top+D),this.topRightPaddingBox=a>0||l>0?cA(r.left+Math.min(y,r.width-W),r.top+D,y>r.width+W?0:Math.max(0,a-W),Math.max(0,l-D),Ot.TOP_RIGHT):new _e(r.left+r.width-W,r.top+D),this.bottomRightPaddingBox=d>0||p>0?cA(r.left+Math.min(b,r.width-_),r.top+Math.min(F,r.height-H),Math.max(0,d-W),Math.max(0,p-H),Ot.BOTTOM_RIGHT):new _e(r.left+r.width-W,r.top+r.height-H),this.bottomLeftPaddingBox=v>0||C>0?cA(r.left+_,r.top+Math.min(N,r.height-H),Math.max(0,v-_),Math.max(0,C-H),Ot.BOTTOM_LEFT):new _e(r.left+_,r.top+r.height-H),this.topLeftContentBox=i>0||s>0?cA(r.left+_+V,r.top+D+Y,Math.max(0,i-(_+V)),Math.max(0,s-(D+Y)),Ot.TOP_LEFT):new _e(r.left+_+V,r.top+D+Y),this.topRightContentBox=a>0||l>0?cA(r.left+Math.min(y,r.width+_+V),r.top+D+Y,y>r.width+_+V?0:a-_+V,l-(D+Y),Ot.TOP_RIGHT):new _e(r.left+r.width-(W+S),r.top+D+Y),this.bottomRightContentBox=d>0||p>0?cA(r.left+Math.min(b,r.width-(_+V)),r.top+Math.min(F,r.height+D+Y),Math.max(0,d-(W+S)),p-(H+k),Ot.BOTTOM_RIGHT):new _e(r.left+r.width-(W+S),r.top+r.height-(H+k)),this.bottomLeftContentBox=v>0||C>0?cA(r.left+_+V,r.top+N,Math.max(0,v-(_+V)),C-(H+k),Ot.BOTTOM_LEFT):new _e(r.left+_+V,r.top+r.height-(H+k))}return e}(),Ot;(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"})(Ot||(Ot={}));var cA=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 Ot.TOP_LEFT:return new mh(new _e(e,l),new _e(e,l-o),new _e(a-s,t),new _e(a,t));case Ot.TOP_RIGHT:return new mh(new _e(e,t),new _e(e+s,t),new _e(a,l-o),new _e(a,l));case Ot.BOTTOM_RIGHT:return new mh(new _e(a,t),new _e(a,t+o),new _e(e+s,l),new _e(e,l));case Ot.BOTTOM_LEFT:default:return new mh(new _e(a,l),new _e(a-s,l),new _e(e,t+o),new _e(e,t))}},Kd=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},MP=function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]},jd=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},OP=function(){function e(t,A,r){this.offsetX=t,this.offsetY=A,this.matrix=r,this.type=0,this.target=6}return e}(),wh=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}(),KP=function(e){return e.type===0},KU=function(e){return e.type===1},jP=function(e){return e.type===2},Qy=function(e,t){return e.length===t.length?e.some(function(A,r){return A===t[r]}):!1},VP=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})},jU=function(){function e(t){this.element=t,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return e}(),VU=function(){function e(t,A){if(this.container=t,this.parent=A,this.effects=[],this.curves=new DP(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 OP(r,n,i))}if(this.container.styles.overflowX!==0){var s=Kd(this.curves),o=jd(this.curves);Qy(s,o)?this.effects.push(new wh(s,6)):(this.effects.push(new wh(s,2)),this.effects.push(new wh(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!KU(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=Kd(r.curves),o=jd(r.curves);Qy(s,o)||n.unshift(new wh(o,6))}}else n.unshift.apply(n,i);r=r.parent}return n.filter(function(a){return er(a.target,t)})},e}(),ym=function(e,t,A,r){e.container.elements.forEach(function(n){var i=er(n.flags,4),s=er(n.flags,2),o=new VU(n,e);er(n.styles.display,2048)&&r.push(o);var a=er(n.flags,8)?[]:r;if(i||s){var l=i||n.styles.isPositioned()?A:t,c=new jU(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(v,C){return d>v.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(v,C){return d>=v.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);ym(o,c,i?c:A,a)}else n.styles.isInlineLevel()?t.inlineLevel.push(o):t.nonInlineLevel.push(o),ym(o,t,A,a);er(n.flags,8)&&GU(n,a)})},GU=function(e,t){for(var A=e instanceof gm?e.start:1,r=e instanceof gm?e.reversed:!1,n=0;n"u"?e[0]:A},$P=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 _e(Math.round(r.left),Math.round(r.top+s)),new _e(Math.round(r.left+r.width),Math.round(r.top+s)),new _e(Math.round(r.left+r.width),Math.round(a+r.top+s)),new _e(Math.round(r.left),Math.round(a+r.top+s))];case 3:return[new _e(Math.round(r.left+i),Math.round(r.top)),new _e(Math.round(r.left+i+o),Math.round(r.top)),new _e(Math.round(r.left+i+o),Math.round(r.height+r.top)),new _e(Math.round(r.left+i),Math.round(r.height+r.top))];case 1:return[new _e(Math.round(r.left+i),Math.round(r.top+s)),new _e(Math.round(r.left+i+o),Math.round(r.top+s)),new _e(Math.round(r.left+i+o),Math.round(r.top+s+a)),new _e(Math.round(r.left+i),Math.round(r.top+s+a))];default:return[new _e(Math.round(n.left),Math.round(n.top)),new _e(Math.round(n.left+n.width),Math.round(n.top)),new _e(Math.round(n.left+n.width),Math.round(n.height+n.top)),new _e(Math.round(n.left),Math.round(n.height+n.top))]}},ZP="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Sy="Hidden Text",eD=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=ZP,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(Sy)),r.appendChild(i),r.appendChild(n);var o=n.offsetTop-i.offsetTop+2;r.removeChild(i),r.appendChild(this._document.createTextNode(Sy)),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}(),WU=function(){function e(t,A){this.context=t,this.options=A}return e}(),tD=1e4,AD=function(e){hi(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 eD(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(),jP(A)&&(this.ctx.globalAlpha=A.opacity),KP(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)),KU(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 Dr(this,void 0,void 0,function(){var r;return xr(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 Dr(this,void 0,void 0,function(){return xr(this,function(r){switch(r.label){case 0:if(er(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=pw(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=oD(A.fontFamily).join(", "),i=Jc(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 Dr(this,void 0,void 0,function(){var n,i,s,o,a,l,c,d,p=this;return xr(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(v){d.forEach(function(C){switch(C){case 0:p.ctx.fillStyle=Ar(r.color),p.renderTextWithLetterSpacing(v,r.letterSpacing,l);var U=r.textShadow;U.length&&v.text.trim().length&&(U.slice(0).reverse().forEach(function(w){p.ctx.shadowColor=Ar(w.color),p.ctx.shadowOffsetX=w.offsetX.number*p.options.scale,p.ctx.shadowOffsetY=w.offsetY.number*p.options.scale,p.ctx.shadowBlur=w.blur.number,p.renderTextWithLetterSpacing(v,r.letterSpacing,l)}),p.ctx.shadowColor="",p.ctx.shadowOffsetX=0,p.ctx.shadowOffsetY=0,p.ctx.shadowBlur=0),r.textDecorationLine.length&&(p.ctx.fillStyle=Ar(r.textDecorationColor||r.color),r.textDecorationLine.forEach(function(w){switch(w){case 1:p.ctx.fillRect(v.bounds.left,Math.round(v.bounds.top+l),v.bounds.width,1);break;case 2:p.ctx.fillRect(v.bounds.left,Math.round(v.bounds.top),v.bounds.width,1);break;case 3:p.ctx.fillRect(v.bounds.left,Math.ceil(v.bounds.top+c),v.bounds.width,1);break}}));break;case 1:r.webkitTextStrokeWidth&&v.text.trim().length&&(p.ctx.strokeStyle=Ar(r.webkitTextStrokeColor),p.ctx.lineWidth=r.webkitTextStrokeWidth,p.ctx.lineJoin=window.chrome?"miter":"round",p.ctx.strokeText(v.text,v.bounds.left,v.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=Vd(A),s=jd(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 Dr(this,void 0,void 0,function(){var r,n,i,s,o,a,y,y,l,c,d,p,b,h,v,N,C,U,w,y,F,b,N;return xr(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(N,"repeat"),i.renderRepeat(Y,H,fe,se))):jT(c)&&(_=c0(A,r,[null,null,null]),Y=_[0],S=_[1],k=_[2],V=_[3],z=_[4],ue=c.position.length===0?[fw]:c.position,fe=tA(ue[0],V),se=tA(ue[ue.length-1],z),q=DT(c,fe,se,V,z),Ae=q[0],he=q[1],Ae>0&&he>0&&(oe=i.ctx.createRadialGradient(S+fe,k+se,0,S+fe,k+se,Ae),J5(c.stops,Ae*2).forEach(function(ne){return oe.addColorStop(ne.stop,Ar(ne.color))}),i.path(Y),i.ctx.fillStyle=oe,Ae!==he?(E=A.bounds.left+.5*A.bounds.width,O=A.bounds.top+.5*A.bounds.height,G=he/Ae,X=1/G,i.ctx.save(),i.ctx.translate(E,O),i.ctx.transform(1,0,0,G,0,0),i.ctx.translate(-E,-O),i.ctx.fillRect(S,X*(k-O)+O,V,z*X),i.ctx.restore()):i.ctx.fill())),Z.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 Dr(this,void 0,void 0,function(){var o,a,l,c,d,p,h,v,C,U,w,y,F,b,N,D,N,D;return xr(this,function(W){return this.ctx.save(),o=qP(i,n),a=Ey(i,n),s===2&&(this.path(a),this.ctx.clip()),Rn(a[0])?(l=a[0].start.x,c=a[0].start.y):(l=a[0].x,c=a[0].y),Rn(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)),v=r<3?r*3:r*2,C=r<3?r*2:r,s===3&&(v=r,C=r),U=!0,h<=v*2?U=!1:h<=v*2+C?(w=h/(2*v+C),v*=w,C*=w):(y=Math.floor((h+C)/(v+C)),F=(h-y*v)/(y-1),b=(h-(y+1)*v)/y,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=gD(a),a in Ly)return;Ly[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":pD,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 Gt(e){"@babel/helpers - typeof";return Gt=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},Gt(e)}var fi=Uint8Array,Bn=Uint16Array,ww=Int32Array,Bw=new fi([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]),vw=new fi([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]),Iy=new fi([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),XU=function(e,t){for(var A=new Bn(31),r=0;r<31;++r)A[r]=t+=1<>1|(oA&21845)<<1;Os=(Os&52428)>>2|(Os&13107)<<2,Os=(Os&61680)>>4|(Os&3855)<<4,Fm[oA]=((Os&65280)>>8|(Os&255)<<8)>>1}var fc=function(e,t,A){for(var r=e.length,n=0,i=new Bn(t);n>a]=l}else for(o=new Bn(r),n=0;n>15-e[n]);return o},fa=new fi(288);for(var oA=0;oA<144;++oA)fa[oA]=8;for(var oA=144;oA<256;++oA)fa[oA]=9;for(var oA=256;oA<280;++oA)fa[oA]=7;for(var oA=280;oA<288;++oA)fa[oA]=8;var Gd=new fi(32);for(var oA=0;oA<32;++oA)Gd[oA]=5;var BD=fc(fa,9,0),vD=fc(Gd,5,0),JU=function(e){return(e+7)/8|0},yD=function(e,t,A){return(A==null||A>e.length)&&(A=e.length),new fi(e.subarray(t,A))},rs=function(e,t,A){A<<=t&7;var r=t/8|0;e[r]|=A,e[r+1]|=A>>8},xu=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},h0=function(e,t){for(var A=[],r=0;rp&&(p=i[r].s);var h=new Bn(p+1),v=bm(A[c-1],h,0);if(v>t){var r=0,C=0,U=v-t,w=1<t)C+=w-(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)}v=t}return{t:new fi(h),l:v}},bm=function(e,t,A){return e.s==-1?Math.max(bm(e.l,t,A+1),bm(e.r,t,A+1)):t[e.s]=A},Ny=function(e){for(var t=e.length;t&&!e[--t];);for(var A=new Bn(++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}},Uu=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&&!Y[Iy[k-1]];--k);var V=l+5<<3,z=Uu(n,fa)+Uu(i,Gd)+s,ue=Uu(n,p)+Uu(i,C)+s+14+3*k+Uu(W,Y)+2*W[16]+3*W[17]+7*W[18];if(a>=0&&V<=z&&V<=ue)return $U(t,c,e.subarray(a,a+l));var fe,se,q,Ae;if(rs(t,c,1+(ue15&&(rs(t,c,O[H]>>5&127),c+=O[H]>>12)}}else fe=BD,se=fa,q=vD,Ae=Gd;for(var H=0;H255){var G=X>>18&31;xu(t,c,fe[G+257]),c+=se[G+257],G>7&&(rs(t,c,X>>23&31),c+=Bw[G]);var Z=X&31;xu(t,c,q[Z]),c+=Ae[Z],Z>3&&(xu(t,c,X>>5&8191),c+=vw[Z])}else xu(t,c,fe[X]),c+=se[X]}return xu(t,c,fe[256]),c+se[256]},CD=new ww([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),ZU=new fi(0),FD=function(e,t,A,r,n,i){var s=i.z||e.length,o=new fi(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=CD[t-1],p=d>>13,h=d&8191,v=(1<7e3||Y>24576)&&(fe>423||!l)){c=Ty(e,a,0,b,N,D,H,Y,k,_-k,c),Y=W=H=0,k=_;for(var se=0;se<286;++se)N[se]=0;for(var se=0;se<30;++se)D[se]=0}var q=2,Ae=0,he=h,oe=z-ue&32767;if(fe>2&&V==F(_-oe))for(var E=Math.min(p,fe)-1,O=Math.min(32767,_),G=Math.min(258,fe);oe<=O&&--he&&z!=ue;){if(e[_+q]==e[_+q-oe]){for(var X=0;Xq){if(q=X,Ae=oe,X>E)break;for(var Z=Math.min(oe,X-2),ne=0,se=0;sene&&(ne=Be,ue=de)}}}z=ue,ue=C[z],oe+=z-ue&32767}if(Ae){b[Y++]=268435456|Cm[q]<<18|_y[Ae];var Ue=Cm[q]&31,Ie=_y[Ae]&31;H+=Bw[Ue]+vw[Ie],++N[257+Ue],++D[Ie],S=_+q,++W}else b[Y++]=e[_],++N[e[_]]}}for(_=Math.max(_,S);_=s&&(a[c/8|0]=l,Ee=s),c=$U(a,c+1,e.subarray(_,Ee))}i.i=s}return yD(o,0,r+JU(c)+n)},eQ=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}}},bD=function(e,t,A,r,n){if(!n&&(n={l:1},t.dictionary)){var i=t.dictionary.subarray(-32768),s=new fi(i.length+e.length);s.set(i),s.set(e,i.length),e=s,n.w=i.length}return FD(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)},tQ=function(e,t,A){for(;A;++t)e[t]=A,A>>>=8},xD=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=eQ();n.p(t.dictionary),tQ(e,2,n.d())}};function xm(e,t){t||(t={});var A=eQ();A.p(e);var r=bD(e,t,t.dictionary?6:2,4);return xD(r,t),tQ(r,r.length-4,A.d()),r}var UD=typeof TextDecoder<"u"&&new TextDecoder,QD=0;try{UD.decode(ZU,{stream:!0}),QD=1}catch{}function ED(e){if(Array.isArray(e))return e}function SD(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 ky(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])})(),d0={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 yw{constructor(t=TD,A={}){Vt(this,"buffer");Vt(this,"byteLength");Vt(this,"byteOffset");Vt(this,"length");Vt(this,"offset");Vt(this,"lastWrittenByte");Vt(this,"littleEndian");Vt(this,"_data");Vt(this,"_mark");Vt(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 yw)&&(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=d0[A].BYTES_PER_ELEMENT*t,n=this.byteOffset+this.offset,i=this.buffer.slice(n,n+r);if(this.littleEndian===kD&&A!=="uint8"&&A!=="int8"){const o=new Uint8Array(this.buffer.slice(n,n+r));o.reverse();const a=new d0[A](o.buffer);return this.offset+=r,a.reverse(),a}const s=new d0[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 Ml(e){let t=e.length;for(;--t>=0;)e[t]=0}const HD=3,PD=258,AQ=29,DD=256,MD=DD+1+AQ,rQ=30,OD=512,RD=new Array((MD+2)*2);Ml(RD);const KD=new Array(rQ*2);Ml(KD);const jD=new Array(OD);Ml(jD);const VD=new Array(PD-HD+1);Ml(VD);const GD=new Array(AQ);Ml(GD);const zD=new Array(rQ);Ml(zD);const WD=(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 Um=WD;const qD=()=>{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},XD=new Uint32Array(qD()),YD=(e,t,A,r)=>{const n=XD,i=r+A;e^=-1;for(let s=r;s>>8^n[(e^t[s])&255];return e^-1};var Ui=YD,Qm={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"},nQ={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 JD=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var $D=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)JD(A,r)&&(e[r]=A[r])}}return e},ZD=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;Mc[254]=Mc[254]=1;var e7=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 t7=(e,t)=>{if(t<65534&&e.subarray&&sQ)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 t7(i,n)},r7=(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+Mc[e[A]]>t?A:t},Em={string2buf:e7,buf2string:A7,utf8border:r7};function n7(){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 i7=n7;const yh=16209,s7=16191;var o7=function(t,A){let r,n,i,s,o,a,l,c,d,p,h,v,C,U,w,y,F,b,N,D,W,H,_,Y;const S=t.state;r=t.next_in,_=t.input,n=r+(t.avail_in-5),i=t.next_out,Y=t.output,s=i-(A-t.avail_out),o=i+(t.avail_out-257),a=S.dmax,l=S.wsize,c=S.whave,d=S.wnext,p=S.window,h=S.hold,v=S.bits,C=S.lencode,U=S.distcode,w=(1<>>24,h>>>=b,v-=b,b=F>>>16&255,b===0)Y[i++]=F&65535;else if(b&16){N=F&65535,b&=15,b&&(v>>=b,v-=b),v<15&&(h+=_[r++]<>>24,h>>>=b,v-=b,b=F>>>16&255,b&16){if(D=F&65535,b&=15,va){t.msg="invalid distance too far back",S.mode=yh;break e}if(h>>>=b,v-=b,b=i-s,D>b){if(b=D-b,b>c&&S.sane){t.msg="invalid distance too far back",S.mode=yh;break e}if(W=0,H=p,d===0){if(W+=l-b,b2;)Y[i++]=H[W++],Y[i++]=H[W++],Y[i++]=H[W++],N-=3;N&&(Y[i++]=H[W++],N>1&&(Y[i++]=H[W++]))}else{W=i-D;do Y[i++]=Y[W++],Y[i++]=Y[W++],Y[i++]=Y[W++],N-=3;while(N>2);N&&(Y[i++]=Y[W++],N>1&&(Y[i++]=Y[W++]))}}else if(b&64){t.msg="invalid distance code",S.mode=yh;break e}else{F=U[(F&65535)+(h&(1<>3,r-=N,v-=N<<3,h&=(1<{const a=o.bits;let l=0,c=0,d=0,p=0,h=0,v=0,C=0,U=0,w=0,y=0,F,b,N,D,W,H=null,_;const Y=new Uint16Array(Pa+1),S=new Uint16Array(Pa+1);let k=null,V,z,ue;for(l=0;l<=Pa;l++)Y[l]=0;for(c=0;c=1&&Y[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===Oy||p!==1))return-1;for(S[1]=0,l=1;lDy||e===Ry&&w>My)return 1;for(;;){V=l-C,s[c]+1<_?(z=0,ue=s[c]):s[c]>=_?(z=k[s[c]-_],ue=H[s[c]-_]):(z=96,ue=0),F=1<>C)+b]=V<<24|z<<16|ue|0;while(b!==0);for(F=1<>=1;if(F!==0?(y&=F-1,y+=F):y=0,c++,--Y[l]===0){if(l===p)break;l=t[A+s[c]]}if(l>h&&(y&D)!==N){for(C===0&&(C=h),W+=d,v=l-C,U=1<Dy||e===Ry&&w>My)return 1;N=y&D,n[N]=h<<24|v<<16|W-i|0}}return y!==0&&(n[W+y]=l-C<<24|64<<16|0),o.bits=h,0};var hc=f7;const h7=0,oQ=1,aQ=2,{Z_FINISH:Ky,Z_BLOCK:d7,Z_TREES:Ch,Z_OK:ha,Z_STREAM_END:p7,Z_NEED_DICT:g7,Z_STREAM_ERROR:qn,Z_DATA_ERROR:lQ,Z_MEM_ERROR:uQ,Z_BUF_ERROR:m7,Z_DEFLATED:jy}=nQ,Qp=16180,Vy=16181,Gy=16182,zy=16183,Wy=16184,qy=16185,Xy=16186,Yy=16187,Jy=16188,$y=16189,zd=16190,ns=16191,g0=16192,Zy=16193,m0=16194,eC=16195,tC=16196,AC=16197,rC=16198,Fh=16199,bh=16200,nC=16201,iC=16202,sC=16203,oC=16204,aC=16205,w0=16206,lC=16207,uC=16208,fA=16209,cQ=16210,fQ=16211,w7=852,B7=592,v7=15,y7=v7,cC=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function C7(){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 wa=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.modefQ?1:0},hQ=e=>{if(wa(e))return qn;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=Qp,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(w7),t.distcode=t.distdyn=new Int32Array(B7),t.sane=1,t.back=-1,ha},dQ=e=>{if(wa(e))return qn;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,hQ(e)},pQ=(e,t)=>{let A;if(wa(e))return qn;const r=e.state;return t<0?(A=0,t=-t):(A=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?qn:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=A,r.wbits=t,dQ(e))},gQ=(e,t)=>{if(!e)return qn;const A=new C7;e.state=A,A.strm=e,A.window=null,A.mode=Qp;const r=pQ(e,t);return r!==ha&&(e.state=null),r},F7=e=>gQ(e,y7);let fC=!0,B0,v0;const b7=e=>{if(fC){B0=new Int32Array(512),v0=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(hc(oQ,e.lens,0,288,B0,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;hc(aQ,e.lens,0,32,v0,0,e.work,{bits:5}),fC=!1}e.lencode=B0,e.lenbits=9,e.distcode=v0,e.distbits=5},mQ=(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,v,C,U=0,w,y,F,b,N,D,W,H;const _=new Uint8Array(4);let Y,S;const k=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(wa(e)||!e.output||!e.input&&e.avail_in!==0)return qn;A=e.state,A.mode===ns&&(A.mode=g0),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=ha;e:for(;;)switch(A.mode){case Qp:if(A.wrap===0){A.mode=g0;break}for(;c<16;){if(o===0)break e;o--,l+=r[i++]<>>8&255,A.check=Ui(A.check,_,2,0),l=0,c=0,A.mode=Vy;break}if(A.head&&(A.head.done=!1),!(A.wrap&1)||(((l&255)<<8)+(l>>8))%31){e.msg="incorrect header check",A.mode=fA;break}if((l&15)!==jy){e.msg="unknown compression method",A.mode=fA;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=fA;break}A.dmax=1<>8&1),A.flags&512&&A.wrap&4&&(_[0]=l&255,_[1]=l>>>8&255,A.check=Ui(A.check,_,2,0)),l=0,c=0,A.mode=Gy;case Gy:for(;c<32;){if(o===0)break e;o--,l+=r[i++]<>>8&255,_[2]=l>>>16&255,_[3]=l>>>24&255,A.check=Ui(A.check,_,4,0)),l=0,c=0,A.mode=zy;case zy:for(;c<16;){if(o===0)break e;o--,l+=r[i++]<>8),A.flags&512&&A.wrap&4&&(_[0]=l&255,_[1]=l>>>8&255,A.check=Ui(A.check,_,2,0)),l=0,c=0,A.mode=Wy;case Wy:if(A.flags&1024){for(;c<16;){if(o===0)break e;o--,l+=r[i++]<>>8&255,A.check=Ui(A.check,_,2,0)),l=0,c=0}else A.head&&(A.head.extra=null);A.mode=qy;case qy: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=Ui(A.check,r,h,i)),o-=h,i+=h,A.length-=h),A.length))break e;A.length=0,A.mode=Xy;case Xy: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=ns;break;case $y:for(;c<32;){if(o===0)break e;o--,l+=r[i++]<>>=c&7,c-=c&7,A.mode=w0;break}for(;c<3;){if(o===0)break e;o--,l+=r[i++]<>>=1,c-=1,l&3){case 0:A.mode=Zy;break;case 1:if(b7(A),A.mode=Fh,t===Ch){l>>>=2,c-=2;break e}break;case 2:A.mode=tC;break;case 3:e.msg="invalid block type",A.mode=fA}l>>>=2,c-=2;break;case Zy: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=fA;break}if(A.length=l&65535,l=0,c=0,A.mode=m0,t===Ch)break e;case m0:A.mode=eC;case eC: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=ns;break;case tC: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=fA;break}A.have=0,A.mode=AC;case AC:for(;A.have>>=3,c-=3}for(;A.have<19;)A.lens[k[A.have++]]=0;if(A.lencode=A.lendyn,A.lenbits=7,Y={bits:A.lenbits},H=hc(h7,A.lens,0,19,A.lencode,0,A.work,Y),A.lenbits=Y.bits,H){e.msg="invalid code lengths set",A.mode=fA;break}A.have=0,A.mode=rC;case rC:for(;A.have>>24,y=U>>>16&255,F=U&65535,!(w<=c);){if(o===0)break e;o--,l+=r[i++]<>>=w,c-=w,A.lens[A.have++]=F;else{if(F===16){for(S=w+2;c>>=w,c-=w,A.have===0){e.msg="invalid bit length repeat",A.mode=fA;break}W=A.lens[A.have-1],h=3+(l&3),l>>>=2,c-=2}else if(F===17){for(S=w+3;c>>=w,c-=w,W=0,h=3+(l&7),l>>>=3,c-=3}else{for(S=w+7;c>>=w,c-=w,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=fA;break}for(;h--;)A.lens[A.have++]=W}}if(A.mode===fA)break;if(A.lens[256]===0){e.msg="invalid code -- missing end-of-block",A.mode=fA;break}if(A.lenbits=9,Y={bits:A.lenbits},H=hc(oQ,A.lens,0,A.nlen,A.lencode,0,A.work,Y),A.lenbits=Y.bits,H){e.msg="invalid literal/lengths set",A.mode=fA;break}if(A.distbits=6,A.distcode=A.distdyn,Y={bits:A.distbits},H=hc(aQ,A.lens,A.nlen,A.ndist,A.distcode,0,A.work,Y),A.distbits=Y.bits,H){e.msg="invalid distances set",A.mode=fA;break}if(A.mode=Fh,t===Ch)break e;case Fh:A.mode=bh;case bh: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,o7(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===ns&&(A.back=-1);break}for(A.back=0;U=A.lencode[l&(1<>>24,y=U>>>16&255,F=U&65535,!(w<=c);){if(o===0)break e;o--,l+=r[i++]<>b)],w=U>>>24,y=U>>>16&255,F=U&65535,!(b+w<=c);){if(o===0)break e;o--,l+=r[i++]<>>=b,c-=b,A.back+=b}if(l>>>=w,c-=w,A.back+=w,A.length=F,y===0){A.mode=aC;break}if(y&32){A.back=-1,A.mode=ns;break}if(y&64){e.msg="invalid literal/length code",A.mode=fA;break}A.extra=y&15,A.mode=nC;case nC:if(A.extra){for(S=A.extra;c>>=A.extra,c-=A.extra,A.back+=A.extra}A.was=A.length,A.mode=iC;case iC:for(;U=A.distcode[l&(1<>>24,y=U>>>16&255,F=U&65535,!(w<=c);){if(o===0)break e;o--,l+=r[i++]<>b)],w=U>>>24,y=U>>>16&255,F=U&65535,!(b+w<=c);){if(o===0)break e;o--,l+=r[i++]<>>=b,c-=b,A.back+=b}if(l>>>=w,c-=w,A.back+=w,y&64){e.msg="invalid distance code",A.mode=fA;break}A.offset=F,A.extra=y&15,A.mode=sC;case sC:if(A.extra){for(S=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=fA;break}A.mode=oC;case oC: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=fA;break}h>A.wnext?(h-=A.wnext,v=A.wsize-h):v=A.wnext-h,h>A.length&&(h=A.length),C=A.window}else C=n,v=s-A.offset,h=A.length;h>a&&(h=a),a-=h,A.length-=h;do n[s++]=C[v++];while(--h);A.length===0&&(A.mode=bh);break;case aC:if(a===0)break e;n[s++]=A.length,a--,A.mode=bh;break;case w0:if(A.wrap){for(;c<32;){if(o===0)break e;o--,l|=r[i++]<{if(wa(e))return qn;let t=e.state;return t.window&&(t.window=null),e.state=null,ha},Q7=(e,t)=>{if(wa(e))return qn;const A=e.state;return A.wrap&2?(A.head=t,t.done=!1,ha):qn},E7=(e,t)=>{const A=t.length;let r,n,i;return wa(e)||(r=e.state,r.wrap!==0&&r.mode!==zd)?qn:r.mode===zd&&(n=1,n=Um(n,t,A,0),n!==r.check)?lQ:(i=mQ(e,t,A,A),i?(r.mode=cQ,uQ):(r.havedict=1,ha))};var S7=dQ,L7=pQ,I7=hQ,_7=F7,N7=gQ,T7=x7,k7=U7,H7=Q7,P7=E7,D7="pako inflate (from Nodeca project)",as={inflateReset:S7,inflateReset2:L7,inflateResetKeep:I7,inflateInit:_7,inflateInit2:N7,inflate:T7,inflateEnd:k7,inflateGetHeader:H7,inflateSetDictionary:P7,inflateInfo:D7};function M7(){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 O7=M7;const wQ=Object.prototype.toString,{Z_NO_FLUSH:R7,Z_FINISH:K7,Z_OK:Oc,Z_STREAM_END:y0,Z_NEED_DICT:C0,Z_STREAM_ERROR:j7,Z_DATA_ERROR:hC,Z_MEM_ERROR:V7}=nQ;function $c(e){this.options=iQ.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 i7,this.strm.avail_out=0;let A=as.inflateInit2(this.strm,t.windowBits);if(A!==Oc)throw new Error(Qm[A]);if(this.header=new O7,as.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=Em.string2buf(t.dictionary):wQ.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(A=as.inflateSetDictionary(this.strm,t.dictionary),A!==Oc)))throw new Error(Qm[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?K7:R7,wQ.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=as.inflate(A,s),i===C0&&n&&(i=as.inflateSetDictionary(A,n),i===Oc?i=as.inflate(A,s):i===hC&&(i=C0));A.avail_in>0&&i===y0&&A.state.wrap>0&&e[A.next_in]!==0;)as.inflateReset(A),i=as.inflate(A,s);switch(i){case j7:case hC:case C0:case V7:return this.onEnd(i),this.ended=!0,!1}if(o=A.avail_out,A.next_out&&(A.avail_out===0||i===y0))if(this.options.to==="string"){let a=Em.utf8border(A.output,A.next_out),l=A.next_out-a,c=Em.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===Oc&&o===0)){if(i===y0)return i=as.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===Oc&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=iQ.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function G7(e,t){const A=new $c(t);if(A.push(e),A.err)throw A.msg||Qm[A.err];return A.result}var z7=$c,W7=G7,q7={Inflate:z7,inflate:W7};const{Inflate:X7,inflate:Y7}=q7;var dC=X7,J7=Y7;const BQ=[];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;BQ[e]=t}const pC=4294967295;function $7(e,t,A){let r=e;for(let n=0;n>>8;return r}function Z7(e,t){return($7(pC,e,t)^pC)>>>0}function gC(e,t,A){const r=e.readUint32(),n=Z7(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 vQ(e,t,A){for(let r=0;r>1)&255}else{for(;i>1)&255;for(;i>1)&255}}function bQ(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 oM=new Uint16Array([255]),aM=new Uint8Array(oM.buffer),lM=aM[0]===255,uM=new Uint8Array(0);function mC(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=uM,c=0,d,p;for(let h=0;h>8&255}const Jh=Uint8Array.of(137,80,78,71,13,10,26,10);function wC(e){if(!fM(e.readBytes(Jh.length)))throw new Error("wrong PNG signature")}function fM(e){if(e.length79)throw new Error("keyword length must be between 1 and 79")}const gM=/^[\u0000-\u00FF]*$/;function mM(e){if(!gM.test(e))throw new Error("invalid latin1 text")}function wM(e,t,A){const r=UQ(t);e[r]=BM(t,A-r.length-1)}function UQ(e){for(e.mark();e.readByte()!==dM;);const t=e.offset;e.reset();const A=xQ.decode(e.readBytes(t-e.offset-1));return e.skip(1),pM(A),A}function BM(e,t){return xQ.decode(e.readBytes(t))}const dn={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},F0={UNKNOWN:-1,DEFLATE:0},BC={UNKNOWN:-1,ADAPTIVE:0},b0={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},xh={NONE:0,BACKGROUND:1,PREVIOUS:2},x0={SOURCE:0,OVER:1};class vM extends yw{constructor(A,r={}){super(A);Vt(this,"_checkCrc");Vt(this,"_inflator");Vt(this,"_png");Vt(this,"_apng");Vt(this,"_end");Vt(this,"_hasPalette");Vt(this,"_palette");Vt(this,"_hasTransparency");Vt(this,"_transparency");Vt(this,"_compressionMethod");Vt(this,"_filterMethod");Vt(this,"_interlaceMethod");Vt(this,"_colorType");Vt(this,"_isAnimated");Vt(this,"_numberOfFrames");Vt(this,"_numberOfPlays");Vt(this,"_frames");Vt(this,"_writingDataChunks");const{checkCrc:n=!1}=r;this._checkCrc=n,this._inflator=new dC,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=F0.UNKNOWN,this._filterMethod=BC.UNKNOWN,this._interlaceMethod=b0.UNKNOWN,this._colorType=dn.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(wC(this);!this._end;){const A=this.readUint32(),r=this.readChars(4);this.decodeChunk(A,r)}return this.decodeImage(),this._png}decodeApng(){for(wC(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 hM:wM(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?gC(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?gC(this,A+4,r):this.skip(4)}decodeIHDR(){const A=this._png;A.width=this.readUint32(),A.height=this.readUint32(),A.depth=yM(this.readUint8());const r=this.readUint8();this._colorType=r;let n;switch(r){case dn.GREYSCALE:n=1;break;case dn.TRUECOLOUR:n=3;break;case dn.INDEXED_COLOUR:n=1;break;case dn.GREYSCALE_ALPHA:n=2;break;case dn.TRUECOLOUR_ALPHA:n=4;break;case dn.UNKNOWN:default:throw new Error(`Unknown color type: ${r}`)}if(this._png.channels=n,this._compressionMethod=this.readUint8(),this._compressionMethod!==F0.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 x0.SOURCE:for(let s=0;s=200&&t.status<=299}function Uh(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 Wo=at.saveAs||((typeof window>"u"?"undefined":Gt(window))!=="object"||window!==at?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(e,t,A){var r=at.URL||at.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?yC(n.href)?Q0(e,t,A):Uh(n,n.target="_blank"):Uh(n)):(n.href=r.createObjectURL(e),setTimeout(function(){r.revokeObjectURL(n.href)},4e4),setTimeout(function(){Uh(n)},0))}:"msSaveOrOpenBlob"in navigator?function(e,t,A){if(t=t||e.name||"download",typeof e=="string")if(yC(e))Q0(e,t,A);else{var r=document.createElement("a");r.href=e,r.target="_blank",setTimeout(function(){Uh(r)})}else navigator.msSaveOrOpenBlob(function(n,i){return i===void 0?i={autoBom:!1}:Gt(i)!=="object"&&(Jt.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 Q0(e,t,A);var n=e.type==="application/octet-stream",i=/constructor/i.test(at.HTMLElement)||at.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||n&&i)&&(typeof FileReader>"u"?"undefined":Gt(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=at.URL||at.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 $h=at.atob.bind(at),CC=at.btoa.bind(at);/** * @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 E0(e,t){var A=e[0],r=e[1],n=e[2],i=e[3];A=yr(A,r,n,i,t[0],7,-680876936),i=yr(i,A,r,n,t[1],12,-389564586),n=yr(n,i,A,r,t[2],17,606105819),r=yr(r,n,i,A,t[3],22,-1044525330),A=yr(A,r,n,i,t[4],7,-176418897),i=yr(i,A,r,n,t[5],12,1200080426),n=yr(n,i,A,r,t[6],17,-1473231341),r=yr(r,n,i,A,t[7],22,-45705983),A=yr(A,r,n,i,t[8],7,1770035416),i=yr(i,A,r,n,t[9],12,-1958414417),n=yr(n,i,A,r,t[10],17,-42063),r=yr(r,n,i,A,t[11],22,-1990404162),A=yr(A,r,n,i,t[12],7,1804603682),i=yr(i,A,r,n,t[13],12,-40341101),n=yr(n,i,A,r,t[14],17,-1502002290),A=Cr(A,r=yr(r,n,i,A,t[15],22,1236535329),n,i,t[1],5,-165796510),i=Cr(i,A,r,n,t[6],9,-1069501632),n=Cr(n,i,A,r,t[11],14,643717713),r=Cr(r,n,i,A,t[0],20,-373897302),A=Cr(A,r,n,i,t[5],5,-701558691),i=Cr(i,A,r,n,t[10],9,38016083),n=Cr(n,i,A,r,t[15],14,-660478335),r=Cr(r,n,i,A,t[4],20,-405537848),A=Cr(A,r,n,i,t[9],5,568446438),i=Cr(i,A,r,n,t[14],9,-1019803690),n=Cr(n,i,A,r,t[3],14,-187363961),r=Cr(r,n,i,A,t[8],20,1163531501),A=Cr(A,r,n,i,t[13],5,-1444681467),i=Cr(i,A,r,n,t[2],9,-51403784),n=Cr(n,i,A,r,t[7],14,1735328473),A=Fr(A,r=Cr(r,n,i,A,t[12],20,-1926607734),n,i,t[5],4,-378558),i=Fr(i,A,r,n,t[8],11,-2022574463),n=Fr(n,i,A,r,t[11],16,1839030562),r=Fr(r,n,i,A,t[14],23,-35309556),A=Fr(A,r,n,i,t[1],4,-1530992060),i=Fr(i,A,r,n,t[4],11,1272893353),n=Fr(n,i,A,r,t[7],16,-155497632),r=Fr(r,n,i,A,t[10],23,-1094730640),A=Fr(A,r,n,i,t[13],4,681279174),i=Fr(i,A,r,n,t[0],11,-358537222),n=Fr(n,i,A,r,t[3],16,-722521979),r=Fr(r,n,i,A,t[6],23,76029189),A=Fr(A,r,n,i,t[9],4,-640364487),i=Fr(i,A,r,n,t[12],11,-421815835),n=Fr(n,i,A,r,t[15],16,530742520),A=br(A,r=Fr(r,n,i,A,t[2],23,-995338651),n,i,t[0],6,-198630844),i=br(i,A,r,n,t[7],10,1126891415),n=br(n,i,A,r,t[14],15,-1416354905),r=br(r,n,i,A,t[5],21,-57434055),A=br(A,r,n,i,t[12],6,1700485571),i=br(i,A,r,n,t[3],10,-1894986606),n=br(n,i,A,r,t[10],15,-1051523),r=br(r,n,i,A,t[1],21,-2054922799),A=br(A,r,n,i,t[8],6,1873313359),i=br(i,A,r,n,t[15],10,-30611744),n=br(n,i,A,r,t[6],15,-1560198380),r=br(r,n,i,A,t[13],21,1309151649),A=br(A,r,n,i,t[4],6,-145523070),i=br(i,A,r,n,t[11],10,-1120210379),n=br(n,i,A,r,t[2],15,718787259),r=br(r,n,i,A,t[9],21,-343485551),e[0]=ro(A,e[0]),e[1]=ro(r,e[1]),e[2]=ro(n,e[2]),e[3]=ro(i,e[3])}function Ep(e,t,A,r,n,i){return t=ro(ro(t,e),ro(r,i)),ro(t<>>32-n,A)}function yr(e,t,A,r,n,i,s){return Ep(t&A|~t&r,e,t,n,i,s)}function Cr(e,t,A,r,n,i,s){return Ep(t&r|A&~r,e,t,n,i,s)}function Fr(e,t,A,r,n,i,s){return Ep(t^A^r,e,t,n,i,s)}function br(e,t,A,r,n,i,s){return Ep(A^(t|~r),e,t,n,i,s)}function EQ(e){var t,A=e.length,r=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)E0(r,FM(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(E0(r,n),t=0;t<16;t++)n[t]=0;return n[14]=8*A,E0(r,n),r}function FM(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 FC="0123456789abcdef".split("");function bM(e){for(var t="",A=0;A<4;A++)t+=FC[e>>8*A+4&15]+FC[e>>8*A&15];return t}function xM(e){return String.fromCharCode(255&e,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function Sm(e){return EQ(e).map(xM).join("")}var UM=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 Lm(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,v="";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=Sm(i+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=Lm(this.encryptionKey,this.padding)}function ja(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 xC(e){if(Gt(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){at.console&&Jt.error("jsPDF PubSub Error",o.message,o)}s[1]&&n.push(i)}n.length&&n.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function Wd(e){if(!(this instanceof Wd))return new Wd(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 SQ(e,t){this.gState=e,this.matrix=t,this.id="",this.objectNumber=-1}function Xo(e,t,A,r,n){if(!(this instanceof Xo))return new Xo(e,t,A,r,n);this.type=e==="axial"?2:3,this.coords=t,this.colors=A,SQ.call(this,r,n)}function al(e,t,A,r,n){if(!(this instanceof al))return new al(e,t,A,r,n);this.boundingBox=e,this.xStep=t,this.yStep=A,this.stream="",this.cloneIndex=0,SQ.call(this,r,n)}function Ye(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;Gt(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=xC;var v="1.3",C=h.__private__.getPdfVersion=function(){return v};h.__private__.setPdfVersion=function(g){v=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 w=h.__private__.getPageFormat=function(g){return U[g]};n=n||"a4";var y="compat",F="advanced",b=y;function N(){this.saveGraphicsState(),M(new At(ct,0,0,-ct,0,Io()*ct).toString()+" cm"),this.setFontSize(this.getFontSize()/ct),l="n",b=F}function D(){this.restoreGraphicsState(),l="S",b=y}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===y;return x&&N.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&&N.call(this)),this},h.isAdvancedAPI=function(){return b===F};var H,_=function(g){if(b!==F)throw new Error(g+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},Y=h.roundToPrecision=h.__private__.roundToPrecision=function(g,x){var j=t||x;if(isNaN(g)||isNaN(j))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return g.toFixed(j).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 Y(g,a)}:a==="smart"?function(g){if(isNaN(g))throw new Error("Invalid argument passed to jsPDF.hpf");return Y(g,g>-1&&g<1?16:5)}:function(g){if(isNaN(g))throw new Error("Invalid argument passed to jsPDF.hpf");return Y(g,16)};var S=h.f2=h.__private__.f2=function(g){if(isNaN(g))throw new Error("Invalid argument passed to jsPDF.f2");return Y(g,2)},k=h.__private__.f3=function(g){if(isNaN(g))throw new Error("Invalid argument passed to jsPDF.f3");return Y(g,3)},V=h.scale=h.__private__.scale=function(g){if(isNaN(g))throw new Error("Invalid argument passed to jsPDF.scale");return b===y?g*ct:b===F?g:void 0},z=function(g){return V(function(x){return b===y?Io()-x:b===F?x:void 0}(g))};h.__private__.setPrecision=h.setPrecision=function(g){typeof parseInt(g,10)=="number"&&(t=parseInt(g,10))};var ue,fe="00000000000000000000000000000000",se=h.__private__.getFileId=function(){return fe},q=h.__private__.setFileId=function(g){return fe=g!==void 0&&/^[a-fA-F0-9]{32}$/.test(g)?g.toUpperCase():fe.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),c!==null&&(WA=new Ka(c.userPermissions,c.userPassword,c.ownerPassword,fe)),fe};h.setFileId=function(g){return q(g),this},h.getFileId=function(){return se()};var Ae=h.__private__.convertDateToPDFDate=function(g){var x=g.getTimezoneOffset(),j=x<0?"+":"-",J=Math.floor(Math.abs(x/60)),re=Math.abs(x%60),we=[j,G(J),"'",G(re),"'"].join("");return["D:",g.getFullYear(),G(g.getMonth()+1),G(g.getDate()),G(g.getHours()),G(g.getMinutes()),G(g.getSeconds()),we].join("")},he=h.__private__.convertPDFDateToDate=function(g){var x=parseInt(g.substr(2,4),10),j=parseInt(g.substr(6,2),10)-1,J=parseInt(g.substr(8,2),10),re=parseInt(g.substr(10,2),10),we=parseInt(g.substr(12,2),10),ye=parseInt(g.substr(14,2),10);return new Date(x,j,J,re,we,ye,0)},oe=h.__private__.setCreationDate=function(g){var x;if(g===void 0&&(g=new Date),g instanceof Date)x=Ae(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 ue=x},E=h.__private__.getCreationDate=function(g){var x=ue;return g==="jsDate"&&(x=he(ue)),x};h.setCreationDate=function(g){return oe(g),this},h.getCreationDate=function(g){return E(g)};var O,G=h.__private__.padd2=function(g){return("0"+parseInt(g)).slice(-2)},X=h.__private__.padd2Hex=function(g){return("00"+(g=g.toString())).substr(g.length)},Z=0,ne=[],de=[],pe=0,Be=[],Ue=[],Ie=!1,Ee=de;h.__private__.setCustomOutputDestination=function(g){Ie=!0,Ee=g};var ze=function(g){Ie||(Ee=g)};h.__private__.resetCustomOutputDestination=function(){Ie=!1,Ee=de};var M=h.__private__.out=function(g){return g=g.toString(),pe+=g.length+1,Ee.push(g),Ee},Le=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,j=new ArrayBuffer(x),J=new Uint8Array(j);x--;)J[x]=g.charCodeAt(x);return j},qe=[["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 qe};var Fe=e.fontSize||16;h.__private__.setFontSize=h.setFontSize=function(g){return Fe=b===F?g/ct:g,this};var $e,He=h.__private__.getFontSize=h.getFontSize=function(){return b===y?Fe:Fe*ct},tt=e.R2L||!1;h.__private__.setR2L=h.setR2L=function(g){return tt=g,this},h.__private__.getR2L=h.getR2L=function(){return tt};var Ze,Lt=h.__private__.setZoomMode=function(g){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(g))$e=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.');$e=g}else $e=parseInt(g,10)};h.__private__.getZoomMode=function(){return $e};var mt,nt=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 lt=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.');mt=g};h.__private__.getLayoutMode=function(){return mt},h.__private__.setDisplayMode=h.setDisplayMode=function(g,x,j){return Lt(g),lt(x),nt(j),this};var Ct={title:"",subject:"",author:"",keywords:"",creator:""};h.__private__.getDocumentProperty=function(g){if(Object.keys(Ct).indexOf(g)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Ct[g]},h.__private__.getDocumentProperties=function(){return Ct},h.__private__.setDocumentProperties=h.setProperties=h.setDocumentProperties=function(g){for(var x in Ct)Ct.hasOwnProperty(x)&&g[x]&&(Ct[x]=g[x]);return this},h.__private__.setDocumentProperty=function(g,x){if(Object.keys(Ct).indexOf(g)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Ct[g]=x};var Ke,ct,je,uA,bt,dt={},st={},Pt=[],Je={},Dt={},rt={},ot={},Rt=null,Ft=0,et=[],Ht=new xC(h),Mi=e.hotfixes||[],Qt={},mr={},Un=[],At=function g(x,j,J,re,we,ye){if(!(this instanceof g))return new g(x,j,J,re,we,ye);isNaN(x)&&(x=1),isNaN(j)&&(j=0),isNaN(J)&&(J=0),isNaN(re)&&(re=1),isNaN(we)&&(we=0),isNaN(ye)&&(ye=0),this._matrix=[x,j,J,re,we,ye]};Object.defineProperty(At.prototype,"sx",{get:function(){return this._matrix[0]},set:function(g){this._matrix[0]=g}}),Object.defineProperty(At.prototype,"shy",{get:function(){return this._matrix[1]},set:function(g){this._matrix[1]=g}}),Object.defineProperty(At.prototype,"shx",{get:function(){return this._matrix[2]},set:function(g){this._matrix[2]=g}}),Object.defineProperty(At.prototype,"sy",{get:function(){return this._matrix[3]},set:function(g){this._matrix[3]=g}}),Object.defineProperty(At.prototype,"tx",{get:function(){return this._matrix[4]},set:function(g){this._matrix[4]=g}}),Object.defineProperty(At.prototype,"ty",{get:function(){return this._matrix[5]},set:function(g){this._matrix[5]=g}}),Object.defineProperty(At.prototype,"a",{get:function(){return this._matrix[0]},set:function(g){this._matrix[0]=g}}),Object.defineProperty(At.prototype,"b",{get:function(){return this._matrix[1]},set:function(g){this._matrix[1]=g}}),Object.defineProperty(At.prototype,"c",{get:function(){return this._matrix[2]},set:function(g){this._matrix[2]=g}}),Object.defineProperty(At.prototype,"d",{get:function(){return this._matrix[3]},set:function(g){this._matrix[3]=g}}),Object.defineProperty(At.prototype,"e",{get:function(){return this._matrix[4]},set:function(g){this._matrix[4]=g}}),Object.defineProperty(At.prototype,"f",{get:function(){return this._matrix[5]},set:function(g){this._matrix[5]=g}}),Object.defineProperty(At.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(At.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(At.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(At.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),At.prototype.join=function(g){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(H).join(g)},At.prototype.multiply=function(g){var x=g.sx*this.sx+g.shy*this.shx,j=g.sx*this.shy+g.shy*this.sy,J=g.shx*this.sx+g.sy*this.shx,re=g.shx*this.shy+g.sy*this.sy,we=g.tx*this.sx+g.ty*this.shx+this.tx,ye=g.tx*this.shy+g.ty*this.sy+this.ty;return new At(x,j,J,re,we,ye)},At.prototype.decompose=function(){var g=this.sx,x=this.shy,j=this.shx,J=this.sy,re=this.tx,we=this.ty,ye=Math.sqrt(g*g+x*x),Re=(g/=ye)*j+(x/=ye)*J;j-=g*Re,J-=x*Re;var We=Math.sqrt(j*j+J*J);return Re/=We,g*(J/=We)>16&255,J=We>>8&255,re=255&We}if(J===void 0||we===void 0&&j===J&&J===re)x=typeof j=="string"?j+" "+ye[0]:g.precision===2?S(j/255)+" "+ye[0]:k(j/255)+" "+ye[0];else if(we===void 0||Gt(we)==="object"){if(we&&!isNaN(we.a)&&we.a===0)return["1.","1.","1.",ye[1]].join(" ");x=typeof j=="string"?[j,J,re,ye[1]].join(" "):g.precision===2?[S(j/255),S(J/255),S(re/255),ye[1]].join(" "):[k(j/255),k(J/255),k(re/255),ye[1]].join(" ")}else x=typeof j=="string"?[j,J,re,we,ye[2]].join(" "):g.precision===2?[S(j),S(J),S(re),S(we),ye[2]].join(" "):[k(j),k(J),k(re),k(we),ye[2]].join(" ");return x},qr=h.__private__.getFilters=function(){return s},_r=h.__private__.putStream=function(g){var x=(g=g||{}).data||"",j=g.filters||qr(),J=g.alreadyAppliedFilters||[],re=g.addLength1||!1,we=x.length,ye=g.objectId,Re=function(qA){return qA};if(c!==null&&ye===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");c!==null&&(Re=WA.encryptor(ye,0));var We={};j===!0&&(j=["FlateEncode"]);var ut=g.additionalKeyValues||[],wt=(We=Ye.API.processDataByFilters!==void 0?Ye.API.processDataByFilters(x,j):{data:x,reverseChain:[]}).reverseChain+(Array.isArray(J)?J.join(" "):J.toString());if(We.data.length!==0&&(ut.push({key:"Length",value:We.data.length}),re===!0&&ut.push({key:"Length1",value:we})),wt.length!=0)if(wt.split("/").length-1==1)ut.push({key:"Filter",value:wt});else{ut.push({key:"Filter",value:"["+wt+"]"});for(var Nt=0;Nt>"),We.data.length!==0&&(M("stream"),M(Re(We.data)),M("endstream"))},mi=h.__private__.putPage=function(g){var x=g.number,j=g.data,J=g.objId,re=g.contentsObjId;MA(J,!0),M("<>"),M("endobj");var we=j.join(` `);return b===F&&(we+=` Q`),MA(re,!0),_r({data:we,filters:qr(),objectId:re}),M("endobj"),J},Sn=h.__private__.putPages=function(){var g,x,j=[];for(g=1;g<=Ft;g++)et[g].objId=$t(),et[g].contentsObjId=$t();for(g=1;g<=Ft;g++)j.push(mi({number:g,data:Ue[g],objId:et[g].objId,contentsObjId:et[g].contentsObjId,mediaBox:et[g].mediaBox,cropBox:et[g].cropBox,bleedBox:et[g].bleedBox,trimBox:et[g].trimBox,artBox:et[g].artBox,userUnit:et[g].userUnit,rootDictionaryObjId:En,resourceDictionaryObjId:zr}));MA(En,!0),M("<>"),M("endobj"),Ht.publish("postPutPages")},Oe=function(g){Ht.publish("putFont",{font:g,out:M,newObject:_t,putStream:_r}),g.isAlreadyPutted!==!0&&(g.objectNumber=_t(),M("<<"),M("/Type /Font"),M("/BaseFont /"+ja(g.postScriptName)),M("/Subtype /Type1"),typeof g.encoding=="string"&&M("/Encoding /"+g.encoding),M("/FirstChar 32"),M("/LastChar 255"),M(">>"),M("endobj"))},$=function(g){g.objectNumber=_t();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 j=g.pages[1].join(` `);_r({data:j,additionalKeyValues:x,objectId:g.objectNumber}),M("endobj")},be=function(g,x){x||(x=21);var j=_t(),J=function(ye,Re){var We,ut=[],wt=1/(Re-1);for(We=0;We<1;We+=wt)ut.push(We);if(ut.push(1),ye[0].offset!=0){var Nt={offset:0,color:ye[0].color};ye.unshift(Nt)}if(ye[ye.length-1].offset!=1){var pA={offset:1,color:ye[ye.length-1].color};ye.push(pA)}for(var KA="",Zt=0,qA=0;qAye[Zt+1].offset;)Zt++;var jA=ye[Zt].offset,sr=(We-jA)/(ye[Zt+1].offset-jA),Wi=ye[Zt].color,Jn=ye[Zt+1].color;KA+=X(Math.round((1-sr)*Wi[0]+sr*Jn[0]).toString(16))+X(Math.round((1-sr)*Wi[1]+sr*Jn[1]).toString(16))+X(Math.round((1-sr)*Wi[2]+sr*Jn[2]).toString(16))}return KA.trim()}(g.colors,x),re=[];re.push({key:"FunctionType",value:"0"}),re.push({key:"Domain",value:"[0.0 1.0]"}),re.push({key:"Size",value:"["+x+"]"}),re.push({key:"BitsPerSample",value:"8"}),re.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),re.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),_r({data:J,additionalKeyValues:re,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:j}),M("endobj"),g.objectNumber=_t(),M("<< /ShadingType "+g.type),M("/ColorSpace /DeviceRGB");var we="/Coords ["+H(parseFloat(g.coords[0]))+" "+H(parseFloat(g.coords[1]))+" ";g.type===2?we+=H(parseFloat(g.coords[2]))+" "+H(parseFloat(g.coords[3])):we+=H(parseFloat(g.coords[2]))+" "+H(parseFloat(g.coords[3]))+" "+H(parseFloat(g.coords[4]))+" "+H(parseFloat(g.coords[5])),M(we+="]"),g.matrix&&M("/Matrix ["+g.matrix.toString()+"]"),M("/Function "+j+" 0 R"),M("/Extend [true true]"),M(">>"),M("endobj")},ke=function(g,x){var j=$t(),J=_t();x.push({resourcesOid:j,objectOid:J}),g.objectNumber=J;var re=[];re.push({key:"Type",value:"/Pattern"}),re.push({key:"PatternType",value:"1"}),re.push({key:"PaintType",value:"1"}),re.push({key:"TilingType",value:"1"}),re.push({key:"BBox",value:"["+g.boundingBox.map(H).join(" ")+"]"}),re.push({key:"XStep",value:H(g.xStep)}),re.push({key:"YStep",value:H(g.yStep)}),re.push({key:"Resources",value:j+" 0 R"}),g.matrix&&re.push({key:"Matrix",value:"["+g.matrix.toString()+"]"}),_r({data:g.stream,additionalKeyValues:re,objectId:g.objectNumber}),M("endobj")},Wt=function(g){for(var x in g.objectNumber=_t(),M("<<"),g)switch(x){case"opacity":M("/ca "+S(g[x]));break;case"stroke-opacity":M("/CA "+S(g[x]))}M(">>"),M("endobj")},vA=function(g){MA(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(Je).length>0){for(var x in M("/Shading <<"),Je)Je.hasOwnProperty(x)&&Je[x]instanceof Xo&&Je[x].objectNumber>=0&&M("/"+x+" "+Je[x].objectNumber+" 0 R");Ht.publish("putShadingPatternDict"),M(">>")}}(),function(x){if(Object.keys(Je).length>0){for(var j in M("/Pattern <<"),Je)Je.hasOwnProperty(j)&&Je[j]instanceof h.TilingPattern&&Je[j].objectNumber>=0&&Je[j].objectNumber>")}}(g.objectOid),function(){if(Object.keys(rt).length>0){var x;for(x in M("/ExtGState <<"),rt)rt.hasOwnProperty(x)&&rt[x].objectNumber>=0&&M("/"+x+" "+rt[x].objectNumber+" 0 R");Ht.publish("putGStateDict"),M(">>")}}(),function(){for(var x in M("/XObject <<"),Qt)Qt.hasOwnProperty(x)&&Qt[x].objectNumber>=0&&M("/"+x+" "+Qt[x].objectNumber+" 0 R");Ht.publish("putXobjectDict"),M(">>")}(),M(">>"),M("endobj")},rA=function(g){st[g.fontName]=st[g.fontName]||{},st[g.fontName][g.fontStyle]=g.id},zA=function(g,x,j,J,re){var we={id:"F"+(Object.keys(dt).length+1).toString(10),postScriptName:g,fontName:x,fontStyle:j,encoding:J,isStandardFont:re||!1,metadata:{}};return Ht.publish("addFont",{font:we,instance:this}),dt[we.id]=we,rA(we),we.id},yA=h.__private__.pdfEscape=h.pdfEscape=function(g,x){return function(j,J){var re,we,ye,Re,We,ut,wt,Nt,pA;if(ye=(J=J||{}).sourceEncoding||"Unicode",We=J.outputEncoding,(J.autoencode||We)&&dt[Ke].metadata&&dt[Ke].metadata[ye]&&dt[Ke].metadata[ye].encoding&&(Re=dt[Ke].metadata[ye].encoding,!We&&dt[Ke].encoding&&(We=dt[Ke].encoding),!We&&Re.codePages&&(We=Re.codePages[0]),typeof We=="string"&&(We=Re[We]),We)){for(wt=!1,ut=[],re=0,we=j.length;re>8&&(wt=!0);j=ut.join("")}for(re=j.length;wt===void 0&&re!==0;)j.charCodeAt(re-1)>>8&&(wt=!0),re--;if(!wt)return j;for(ut=J.noBOM?[]:[254,255],re=0,we=j.length;re>8)>>8)throw new Error("Character at position "+re+" of string '"+j+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");ut.push(pA),ut.push(Nt-(pA<<8))}return String.fromCharCode.apply(void 0,ut)}(g,x).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Ln=h.__private__.beginPage=function(g){Ue[++Ft]=[],et[Ft]={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])}},xo(Ft),ze(Ue[O])},Fs=function(g,x){var j,J,re;switch(A=x||A,typeof g=="string"&&(j=w(g.toLowerCase()),Array.isArray(j)&&(J=j[0],re=j[1])),Array.isArray(g)&&(J=g[0]*ct,re=g[1]*ct),isNaN(J)&&(J=n[0],re=n[1]),(J>14400||re>14400)&&(Jt.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),re=Math.min(14400,re)),n=[J,re],A.substr(0,1)){case"l":re>J&&(n=[re,J]);break;case"p":J>re&&(n=[re,J])}Ln(n),ft(Kl),M(Fa),Vl!==0&&M(Vl+" J"),Gl!==0&&M(Gl+" j"),Ht.publish("addPage",{pageNumber:Ft})},dA=function(g){g>0&&g<=Ft&&(Ue.splice(g,1),et.splice(g,1),Ft--,O>Ft&&(O=Ft),this.setPage(O))},xo=function(g){g>0&&g<=Ft&&(O=g)},Uo=h.__private__.getNumberOfPages=h.getNumberOfPages=function(){return Ue.length-1},Zc=function(g,x,j){var J,re=void 0;return j=j||{},g=g!==void 0?g:dt[Ke].fontName,x=x!==void 0?x:dt[Ke].fontStyle,J=g.toLowerCase(),st[J]!==void 0&&st[J][x]!==void 0?re=st[J][x]:st[g]!==void 0&&st[g][x]!==void 0?re=st[g][x]:j.disableWarning===!1&&Jt.warn("Unable to look up font label for font '"+g+"', '"+x+"'. Refer to getFontList() for available fonts."),re||j.noFallback||(re=st.times[x])==null&&(re=st.times.normal),re},wi=h.__private__.putInfo=function(){var g=_t(),x=function(J){return J};for(var j in c!==null&&(x=WA.encryptor(g,0)),M("<<"),M("/Producer ("+yA(x("jsPDF "+Ye.version))+")"),Ct)Ct.hasOwnProperty(j)&&Ct[j]&&M("/"+j.substr(0,1).toUpperCase()+j.substr(1)+" ("+yA(x(Ct[j]))+")");M("/CreationDate ("+yA(x(ue))+")"),M(">>"),M("endobj")},va=h.__private__.putCatalog=function(g){var x=(g=g||{}).rootDictionaryObjId||En;switch(_t(),M("<<"),M("/Type /Catalog"),M("/Pages "+x+" 0 R"),$e||($e="fullwidth"),$e){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 j=""+$e;j.substr(j.length-1)==="%"&&($e=parseInt($e)/100),typeof $e=="number"&&M("/OpenAction [3 0 R /XYZ null null "+S($e)+"]")}switch(mt||(mt="continuous"),mt){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),Ht.publish("putCatalog"),M(">>"),M("endobj")},Sp=h.__private__.putTrailer=function(){M("trailer"),M("<<"),M("/Size "+(Z+1)),M("/Root "+Z+" 0 R"),M("/Info "+(Z-1)+" 0 R"),c!==null&&M("/Encrypt "+WA.oid+" 0 R"),M("/ID [ <"+fe+"> <"+fe+"> ]"),M(">>")},RA=h.__private__.putHeader=function(){M("%PDF-"+v),M("%ºß¬à")},ef=h.__private__.putXRef=function(){var g="0000000000";M("xref"),M("0 "+(Z+1)),M("0000000000 65535 f ");for(var x=1;x<=Z;x++)typeof ne[x]=="function"?M((g+ne[x]()).slice(-10)+" 00000 n "):ne[x]!==void 0?M((g+ne[x]).slice(-10)+" 00000 n "):M("0000000000 00000 n ")},Bi=h.__private__.buildDocument=function(){var g;Z=0,pe=0,de=[],ne=[],Be=[],En=$t(),zr=$t(),ze(de),Ht.publish("buildDocument"),RA(),Sn(),function(){Ht.publish("putAdditionalObjects");for(var j=0;j"),M("/O <"+WA.toHexString(WA.O)+">"),M("/P "+WA.P),M(">>"),M("endobj")),wi(),va();var x=pe;return ef(),Sp(),M("startxref"),M(""+x),M("%%EOF"),ze(Ue[O]),de.join(` `)},ya=h.__private__.getBlob=function(g){return new Blob([ht(g)],{type:"application/pdf"})},tf=h.output=h.__private__.output=(Gr=function(g,x){switch(typeof(x=x||{})=="string"?x={filename:x}:x.filename=x.filename||"generated.pdf",g){case void 0:return Bi();case"save":h.save(x.filename);break;case"arraybuffer":return ht(Bi());case"blob":return ya(Bi());case"bloburi":case"bloburl":if(at.URL!==void 0&&typeof at.URL.createObjectURL=="function")return at.URL&&at.URL.createObjectURL(ya(Bi()))||void 0;Jt.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var j="",J=Bi();try{j=CC(J)}catch{j=CC(unescape(encodeURIComponent(J)))}return"data:application/pdf;filename="+x.filename+";base64,"+j;case"pdfobjectnewwindow":if(Object.prototype.toString.call(at)==="[object Window]"){var re="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",we=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';x.pdfObjectUrl&&(re=x.pdfObjectUrl,we="");var ye='